diff --git a/.github/workflows/akeyless_action_code_tests.yml b/.github/workflows/akeyless_action_code_tests.yml index e654b74..c14d0a0 100644 --- a/.github/workflows/akeyless_action_code_tests.yml +++ b/.github/workflows/akeyless_action_code_tests.yml @@ -9,12 +9,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Set up Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: - node-version: '20' + node-version: '24' - name: Install dependencies run: npm ci diff --git a/.github/workflows/akeyless_github_actions_tests.yml b/.github/workflows/akeyless_github_actions_tests.yml index 2c3051f..da88d3f 100644 --- a/.github/workflows/akeyless_github_actions_tests.yml +++ b/.github/workflows/akeyless_github_actions_tests.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Akeyless Authentication and fetch secret uses: ./ diff --git a/.github/workflows/merge_main.yaml b/.github/workflows/merge_main.yaml index dc01d00..bb0bb6a 100644 --- a/.github/workflows/merge_main.yaml +++ b/.github/workflows/merge_main.yaml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Check out akeyless-github-action code - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Fetch history run: git fetch --prune --unshallow diff --git a/.github/workflows/validate_version.yaml b/.github/workflows/validate_version.yaml index 1fc3f94..0eda1b0 100644 --- a/.github/workflows/validate_version.yaml +++ b/.github/workflows/validate_version.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Fetch history run: git fetch --prune --unshallow diff --git a/.gitignore b/.gitignore index 41fe2e4..12e69b5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ # Ignore node_modules directory node_modules/ +# Ignore Jest coverage output +coverage/ # Ignore JetBrains IDE files .idea/ diff --git a/dist/index.js b/dist/index.js index fe34e21..02b87a0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -8,7 +8,11 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -21,7 +25,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; @@ -83,13 +87,13 @@ class Command { } } function escapeData(s) { - return utils_1.toCommandValue(s) + return (0, utils_1.toCommandValue)(s) .replace(/%/g, '%25') .replace(/\r/g, '%0D') .replace(/\n/g, '%0A'); } function escapeProperty(s) { - return utils_1.toCommandValue(s) + return (0, utils_1.toCommandValue)(s) .replace(/%/g, '%25') .replace(/\r/g, '%0D') .replace(/\n/g, '%0A') @@ -107,7 +111,11 @@ function escapeProperty(s) { var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -120,7 +128,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; @@ -134,7 +142,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; +exports.platform = exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = exports.markdownSummary = exports.summary = exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; const command_1 = __nccwpck_require__(44914); const file_command_1 = __nccwpck_require__(24753); const utils_1 = __nccwpck_require__(30302); @@ -154,7 +162,7 @@ var ExitCode; * A code indicating that the action was a failure */ ExitCode[ExitCode["Failure"] = 1] = "Failure"; -})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); +})(ExitCode || (exports.ExitCode = ExitCode = {})); //----------------------------------------------------------------------- // Variables //----------------------------------------------------------------------- @@ -165,13 +173,13 @@ var ExitCode; */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function exportVariable(name, val) { - const convertedVal = utils_1.toCommandValue(val); + const convertedVal = (0, utils_1.toCommandValue)(val); process.env[name] = convertedVal; const filePath = process.env['GITHUB_ENV'] || ''; if (filePath) { - return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val)); + return (0, file_command_1.issueFileCommand)('ENV', (0, file_command_1.prepareKeyValueMessage)(name, val)); } - command_1.issueCommand('set-env', { name }, convertedVal); + (0, command_1.issueCommand)('set-env', { name }, convertedVal); } exports.exportVariable = exportVariable; /** @@ -179,7 +187,7 @@ exports.exportVariable = exportVariable; * @param secret value of the secret */ function setSecret(secret) { - command_1.issueCommand('add-mask', {}, secret); + (0, command_1.issueCommand)('add-mask', {}, secret); } exports.setSecret = setSecret; /** @@ -189,10 +197,10 @@ exports.setSecret = setSecret; function addPath(inputPath) { const filePath = process.env['GITHUB_PATH'] || ''; if (filePath) { - file_command_1.issueFileCommand('PATH', inputPath); + (0, file_command_1.issueFileCommand)('PATH', inputPath); } else { - command_1.issueCommand('add-path', {}, inputPath); + (0, command_1.issueCommand)('add-path', {}, inputPath); } process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; } @@ -267,10 +275,10 @@ exports.getBooleanInput = getBooleanInput; function setOutput(name, value) { const filePath = process.env['GITHUB_OUTPUT'] || ''; if (filePath) { - return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value)); + return (0, file_command_1.issueFileCommand)('OUTPUT', (0, file_command_1.prepareKeyValueMessage)(name, value)); } process.stdout.write(os.EOL); - command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value)); + (0, command_1.issueCommand)('set-output', { name }, (0, utils_1.toCommandValue)(value)); } exports.setOutput = setOutput; /** @@ -279,7 +287,7 @@ exports.setOutput = setOutput; * */ function setCommandEcho(enabled) { - command_1.issue('echo', enabled ? 'on' : 'off'); + (0, command_1.issue)('echo', enabled ? 'on' : 'off'); } exports.setCommandEcho = setCommandEcho; //----------------------------------------------------------------------- @@ -310,7 +318,7 @@ exports.isDebug = isDebug; * @param message debug message */ function debug(message) { - command_1.issueCommand('debug', {}, message); + (0, command_1.issueCommand)('debug', {}, message); } exports.debug = debug; /** @@ -319,7 +327,7 @@ exports.debug = debug; * @param properties optional properties to add to the annotation. */ function error(message, properties = {}) { - command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); + (0, command_1.issueCommand)('error', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); } exports.error = error; /** @@ -328,7 +336,7 @@ exports.error = error; * @param properties optional properties to add to the annotation. */ function warning(message, properties = {}) { - command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); + (0, command_1.issueCommand)('warning', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); } exports.warning = warning; /** @@ -337,7 +345,7 @@ exports.warning = warning; * @param properties optional properties to add to the annotation. */ function notice(message, properties = {}) { - command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); + (0, command_1.issueCommand)('notice', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); } exports.notice = notice; /** @@ -356,14 +364,14 @@ exports.info = info; * @param name The name of the output group */ function startGroup(name) { - command_1.issue('group', name); + (0, command_1.issue)('group', name); } exports.startGroup = startGroup; /** * End an output group. */ function endGroup() { - command_1.issue('endgroup'); + (0, command_1.issue)('endgroup'); } exports.endGroup = endGroup; /** @@ -401,9 +409,9 @@ exports.group = group; function saveState(name, value) { const filePath = process.env['GITHUB_STATE'] || ''; if (filePath) { - return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value)); + return (0, file_command_1.issueFileCommand)('STATE', (0, file_command_1.prepareKeyValueMessage)(name, value)); } - command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value)); + (0, command_1.issueCommand)('save-state', { name }, (0, utils_1.toCommandValue)(value)); } exports.saveState = saveState; /** @@ -439,6 +447,10 @@ var path_utils_1 = __nccwpck_require__(31976); Object.defineProperty(exports, "toPosixPath", ({ enumerable: true, get: function () { return path_utils_1.toPosixPath; } })); Object.defineProperty(exports, "toWin32Path", ({ enumerable: true, get: function () { return path_utils_1.toWin32Path; } })); Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: function () { return path_utils_1.toPlatformPath; } })); +/** + * Platform utilities exports + */ +exports.platform = __importStar(__nccwpck_require__(18968)); //# sourceMappingURL=core.js.map /***/ }), @@ -451,7 +463,11 @@ Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: funct // For internal use, subject to change. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -464,7 +480,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; @@ -472,9 +488,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.prepareKeyValueMessage = exports.issueFileCommand = void 0; // We use any as a valid input type /* eslint-disable @typescript-eslint/no-explicit-any */ +const crypto = __importStar(__nccwpck_require__(76982)); const fs = __importStar(__nccwpck_require__(79896)); const os = __importStar(__nccwpck_require__(70857)); -const uuid_1 = __nccwpck_require__(12048); const utils_1 = __nccwpck_require__(30302); function issueFileCommand(command, message) { const filePath = process.env[`GITHUB_${command}`]; @@ -484,14 +500,14 @@ function issueFileCommand(command, message) { if (!fs.existsSync(filePath)) { throw new Error(`Missing file at path: ${filePath}`); } - fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, { + fs.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os.EOL}`, { encoding: 'utf8' }); } exports.issueFileCommand = issueFileCommand; function prepareKeyValueMessage(key, value) { - const delimiter = `ghadelimiter_${uuid_1.v4()}`; - const convertedValue = utils_1.toCommandValue(value); + const delimiter = `ghadelimiter_${crypto.randomUUID()}`; + const convertedValue = (0, utils_1.toCommandValue)(value); // These should realistically never happen, but just in case someone finds a // way to exploit uuid generation let's not allow keys or values that contain // the delimiter. @@ -558,7 +574,7 @@ class OidcClient { .catch(error => { throw new Error(`Failed to get ID Token. \n Error Code : ${error.statusCode}\n - Error Message: ${error.result.message}`); + Error Message: ${error.message}`); }); const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; if (!id_token) { @@ -576,9 +592,9 @@ class OidcClient { const encodedAudience = encodeURIComponent(audience); id_token_url = `${id_token_url}&audience=${encodedAudience}`; } - core_1.debug(`ID token url is ${id_token_url}`); + (0, core_1.debug)(`ID token url is ${id_token_url}`); const id_token = yield OidcClient.getCall(id_token_url); - core_1.setSecret(id_token); + (0, core_1.setSecret)(id_token); return id_token; } catch (error) { @@ -599,7 +615,11 @@ exports.OidcClient = OidcClient; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -612,7 +632,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; @@ -657,6 +677,107 @@ exports.toPlatformPath = toPlatformPath; /***/ }), +/***/ 18968: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getDetails = exports.isLinux = exports.isMacOS = exports.isWindows = exports.arch = exports.platform = void 0; +const os_1 = __importDefault(__nccwpck_require__(70857)); +const exec = __importStar(__nccwpck_require__(95236)); +const getWindowsInfo = () => __awaiter(void 0, void 0, void 0, function* () { + const { stdout: version } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', undefined, { + silent: true + }); + const { stdout: name } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"', undefined, { + silent: true + }); + return { + name: name.trim(), + version: version.trim() + }; +}); +const getMacOsInfo = () => __awaiter(void 0, void 0, void 0, function* () { + var _a, _b, _c, _d; + const { stdout } = yield exec.getExecOutput('sw_vers', undefined, { + silent: true + }); + const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : ''; + const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : ''; + return { + name, + version + }; +}); +const getLinuxInfo = () => __awaiter(void 0, void 0, void 0, function* () { + const { stdout } = yield exec.getExecOutput('lsb_release', ['-i', '-r', '-s'], { + silent: true + }); + const [name, version] = stdout.trim().split('\n'); + return { + name, + version + }; +}); +exports.platform = os_1.default.platform(); +exports.arch = os_1.default.arch(); +exports.isWindows = exports.platform === 'win32'; +exports.isMacOS = exports.platform === 'darwin'; +exports.isLinux = exports.platform === 'linux'; +function getDetails() { + return __awaiter(this, void 0, void 0, function* () { + return Object.assign(Object.assign({}, (yield (exports.isWindows + ? getWindowsInfo() + : exports.isMacOS + ? getMacOsInfo() + : getLinuxInfo()))), { platform: exports.platform, + arch: exports.arch, + isWindows: exports.isWindows, + isMacOS: exports.isMacOS, + isLinux: exports.isLinux }); + }); +} +exports.getDetails = getDetails; +//# sourceMappingURL=platform.js.map + +/***/ }), + /***/ 71847: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { @@ -994,6 +1115,741 @@ exports.toCommandProperties = toCommandProperties; /***/ }), +/***/ 95236: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getExecOutput = exports.exec = void 0; +const string_decoder_1 = __nccwpck_require__(13193); +const tr = __importStar(__nccwpck_require__(6665)); +/** + * Exec a command. + * Output will be streamed to the live console. + * Returns promise with return code + * + * @param commandLine command to execute (can include additional args). Must be correctly escaped. + * @param args optional arguments for tool. Escaping is handled by the lib. + * @param options optional exec options. See ExecOptions + * @returns Promise exit code + */ +function exec(commandLine, args, options) { + return __awaiter(this, void 0, void 0, function* () { + const commandArgs = tr.argStringToArray(commandLine); + if (commandArgs.length === 0) { + throw new Error(`Parameter 'commandLine' cannot be null or empty.`); + } + // Path to tool to execute should be first arg + const toolPath = commandArgs[0]; + args = commandArgs.slice(1).concat(args || []); + const runner = new tr.ToolRunner(toolPath, args, options); + return runner.exec(); + }); +} +exports.exec = exec; +/** + * Exec a command and get the output. + * Output will be streamed to the live console. + * Returns promise with the exit code and collected stdout and stderr + * + * @param commandLine command to execute (can include additional args). Must be correctly escaped. + * @param args optional arguments for tool. Escaping is handled by the lib. + * @param options optional exec options. See ExecOptions + * @returns Promise exit code, stdout, and stderr + */ +function getExecOutput(commandLine, args, options) { + var _a, _b; + return __awaiter(this, void 0, void 0, function* () { + let stdout = ''; + let stderr = ''; + //Using string decoder covers the case where a mult-byte character is split + const stdoutDecoder = new string_decoder_1.StringDecoder('utf8'); + const stderrDecoder = new string_decoder_1.StringDecoder('utf8'); + const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout; + const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr; + const stdErrListener = (data) => { + stderr += stderrDecoder.write(data); + if (originalStdErrListener) { + originalStdErrListener(data); + } + }; + const stdOutListener = (data) => { + stdout += stdoutDecoder.write(data); + if (originalStdoutListener) { + originalStdoutListener(data); + } + }; + const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), { stdout: stdOutListener, stderr: stdErrListener }); + const exitCode = yield exec(commandLine, args, Object.assign(Object.assign({}, options), { listeners })); + //flush any remaining characters + stdout += stdoutDecoder.end(); + stderr += stderrDecoder.end(); + return { + exitCode, + stdout, + stderr + }; + }); +} +exports.getExecOutput = getExecOutput; +//# sourceMappingURL=exec.js.map + +/***/ }), + +/***/ 6665: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.argStringToArray = exports.ToolRunner = void 0; +const os = __importStar(__nccwpck_require__(70857)); +const events = __importStar(__nccwpck_require__(24434)); +const child = __importStar(__nccwpck_require__(35317)); +const path = __importStar(__nccwpck_require__(16928)); +const io = __importStar(__nccwpck_require__(94994)); +const ioUtil = __importStar(__nccwpck_require__(75207)); +const timers_1 = __nccwpck_require__(53557); +/* eslint-disable @typescript-eslint/unbound-method */ +const IS_WINDOWS = process.platform === 'win32'; +/* + * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way. + */ +class ToolRunner extends events.EventEmitter { + constructor(toolPath, args, options) { + super(); + if (!toolPath) { + throw new Error("Parameter 'toolPath' cannot be null or empty."); + } + this.toolPath = toolPath; + this.args = args || []; + this.options = options || {}; + } + _debug(message) { + if (this.options.listeners && this.options.listeners.debug) { + this.options.listeners.debug(message); + } + } + _getCommandString(options, noPrefix) { + const toolPath = this._getSpawnFileName(); + const args = this._getSpawnArgs(options); + let cmd = noPrefix ? '' : '[command]'; // omit prefix when piped to a second tool + if (IS_WINDOWS) { + // Windows + cmd file + if (this._isCmdFile()) { + cmd += toolPath; + for (const a of args) { + cmd += ` ${a}`; + } + } + // Windows + verbatim + else if (options.windowsVerbatimArguments) { + cmd += `"${toolPath}"`; + for (const a of args) { + cmd += ` ${a}`; + } + } + // Windows (regular) + else { + cmd += this._windowsQuoteCmdArg(toolPath); + for (const a of args) { + cmd += ` ${this._windowsQuoteCmdArg(a)}`; + } + } + } + else { + // OSX/Linux - this can likely be improved with some form of quoting. + // creating processes on Unix is fundamentally different than Windows. + // on Unix, execvp() takes an arg array. + cmd += toolPath; + for (const a of args) { + cmd += ` ${a}`; + } + } + return cmd; + } + _processLineBuffer(data, strBuffer, onLine) { + try { + let s = strBuffer + data.toString(); + let n = s.indexOf(os.EOL); + while (n > -1) { + const line = s.substring(0, n); + onLine(line); + // the rest of the string ... + s = s.substring(n + os.EOL.length); + n = s.indexOf(os.EOL); + } + return s; + } + catch (err) { + // streaming lines to console is best effort. Don't fail a build. + this._debug(`error processing line. Failed with error ${err}`); + return ''; + } + } + _getSpawnFileName() { + if (IS_WINDOWS) { + if (this._isCmdFile()) { + return process.env['COMSPEC'] || 'cmd.exe'; + } + } + return this.toolPath; + } + _getSpawnArgs(options) { + if (IS_WINDOWS) { + if (this._isCmdFile()) { + let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`; + for (const a of this.args) { + argline += ' '; + argline += options.windowsVerbatimArguments + ? a + : this._windowsQuoteCmdArg(a); + } + argline += '"'; + return [argline]; + } + } + return this.args; + } + _endsWith(str, end) { + return str.endsWith(end); + } + _isCmdFile() { + const upperToolPath = this.toolPath.toUpperCase(); + return (this._endsWith(upperToolPath, '.CMD') || + this._endsWith(upperToolPath, '.BAT')); + } + _windowsQuoteCmdArg(arg) { + // for .exe, apply the normal quoting rules that libuv applies + if (!this._isCmdFile()) { + return this._uvQuoteCmdArg(arg); + } + // otherwise apply quoting rules specific to the cmd.exe command line parser. + // the libuv rules are generic and are not designed specifically for cmd.exe + // command line parser. + // + // for a detailed description of the cmd.exe command line parser, refer to + // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912 + // need quotes for empty arg + if (!arg) { + return '""'; + } + // determine whether the arg needs to be quoted + const cmdSpecialChars = [ + ' ', + '\t', + '&', + '(', + ')', + '[', + ']', + '{', + '}', + '^', + '=', + ';', + '!', + "'", + '+', + ',', + '`', + '~', + '|', + '<', + '>', + '"' + ]; + let needsQuotes = false; + for (const char of arg) { + if (cmdSpecialChars.some(x => x === char)) { + needsQuotes = true; + break; + } + } + // short-circuit if quotes not needed + if (!needsQuotes) { + return arg; + } + // the following quoting rules are very similar to the rules that by libuv applies. + // + // 1) wrap the string in quotes + // + // 2) double-up quotes - i.e. " => "" + // + // this is different from the libuv quoting rules. libuv replaces " with \", which unfortunately + // doesn't work well with a cmd.exe command line. + // + // note, replacing " with "" also works well if the arg is passed to a downstream .NET console app. + // for example, the command line: + // foo.exe "myarg:""my val""" + // is parsed by a .NET console app into an arg array: + // [ "myarg:\"my val\"" ] + // which is the same end result when applying libuv quoting rules. although the actual + // command line from libuv quoting rules would look like: + // foo.exe "myarg:\"my val\"" + // + // 3) double-up slashes that precede a quote, + // e.g. hello \world => "hello \world" + // hello\"world => "hello\\""world" + // hello\\"world => "hello\\\\""world" + // hello world\ => "hello world\\" + // + // technically this is not required for a cmd.exe command line, or the batch argument parser. + // the reasons for including this as a .cmd quoting rule are: + // + // a) this is optimized for the scenario where the argument is passed from the .cmd file to an + // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule. + // + // b) it's what we've been doing previously (by deferring to node default behavior) and we + // haven't heard any complaints about that aspect. + // + // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be + // escaped when used on the command line directly - even though within a .cmd file % can be escaped + // by using %%. + // + // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts + // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing. + // + // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would + // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the + // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args + // to an external program. + // + // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file. + // % can be escaped within a .cmd file. + let reverse = '"'; + let quoteHit = true; + for (let i = arg.length; i > 0; i--) { + // walk the string in reverse + reverse += arg[i - 1]; + if (quoteHit && arg[i - 1] === '\\') { + reverse += '\\'; // double the slash + } + else if (arg[i - 1] === '"') { + quoteHit = true; + reverse += '"'; // double the quote + } + else { + quoteHit = false; + } + } + reverse += '"'; + return reverse + .split('') + .reverse() + .join(''); + } + _uvQuoteCmdArg(arg) { + // Tool runner wraps child_process.spawn() and needs to apply the same quoting as + // Node in certain cases where the undocumented spawn option windowsVerbatimArguments + // is used. + // + // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV, + // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details), + // pasting copyright notice from Node within this function: + // + // Copyright Joyent, Inc. and other Node contributors. All rights reserved. + // + // Permission is hereby granted, free of charge, to any person obtaining a copy + // of this software and associated documentation files (the "Software"), to + // deal in the Software without restriction, including without limitation the + // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + // sell copies of the Software, and to permit persons to whom the Software is + // furnished to do so, subject to the following conditions: + // + // The above copyright notice and this permission notice shall be included in + // all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + // IN THE SOFTWARE. + if (!arg) { + // Need double quotation for empty argument + return '""'; + } + if (!arg.includes(' ') && !arg.includes('\t') && !arg.includes('"')) { + // No quotation needed + return arg; + } + if (!arg.includes('"') && !arg.includes('\\')) { + // No embedded double quotes or backslashes, so I can just wrap + // quote marks around the whole thing. + return `"${arg}"`; + } + // Expected input/output: + // input : hello"world + // output: "hello\"world" + // input : hello""world + // output: "hello\"\"world" + // input : hello\world + // output: hello\world + // input : hello\\world + // output: hello\\world + // input : hello\"world + // output: "hello\\\"world" + // input : hello\\"world + // output: "hello\\\\\"world" + // input : hello world\ + // output: "hello world\\" - note the comment in libuv actually reads "hello world\" + // but it appears the comment is wrong, it should be "hello world\\" + let reverse = '"'; + let quoteHit = true; + for (let i = arg.length; i > 0; i--) { + // walk the string in reverse + reverse += arg[i - 1]; + if (quoteHit && arg[i - 1] === '\\') { + reverse += '\\'; + } + else if (arg[i - 1] === '"') { + quoteHit = true; + reverse += '\\'; + } + else { + quoteHit = false; + } + } + reverse += '"'; + return reverse + .split('') + .reverse() + .join(''); + } + _cloneExecOptions(options) { + options = options || {}; + const result = { + cwd: options.cwd || process.cwd(), + env: options.env || process.env, + silent: options.silent || false, + windowsVerbatimArguments: options.windowsVerbatimArguments || false, + failOnStdErr: options.failOnStdErr || false, + ignoreReturnCode: options.ignoreReturnCode || false, + delay: options.delay || 10000 + }; + result.outStream = options.outStream || process.stdout; + result.errStream = options.errStream || process.stderr; + return result; + } + _getSpawnOptions(options, toolPath) { + options = options || {}; + const result = {}; + result.cwd = options.cwd; + result.env = options.env; + result['windowsVerbatimArguments'] = + options.windowsVerbatimArguments || this._isCmdFile(); + if (options.windowsVerbatimArguments) { + result.argv0 = `"${toolPath}"`; + } + return result; + } + /** + * Exec a tool. + * Output will be streamed to the live console. + * Returns promise with return code + * + * @param tool path to tool to exec + * @param options optional exec options. See ExecOptions + * @returns number + */ + exec() { + return __awaiter(this, void 0, void 0, function* () { + // root the tool path if it is unrooted and contains relative pathing + if (!ioUtil.isRooted(this.toolPath) && + (this.toolPath.includes('/') || + (IS_WINDOWS && this.toolPath.includes('\\')))) { + // prefer options.cwd if it is specified, however options.cwd may also need to be rooted + this.toolPath = path.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath); + } + // if the tool is only a file name, then resolve it from the PATH + // otherwise verify it exists (add extension on Windows if necessary) + this.toolPath = yield io.which(this.toolPath, true); + return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + this._debug(`exec tool: ${this.toolPath}`); + this._debug('arguments:'); + for (const arg of this.args) { + this._debug(` ${arg}`); + } + const optionsNonNull = this._cloneExecOptions(this.options); + if (!optionsNonNull.silent && optionsNonNull.outStream) { + optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + os.EOL); + } + const state = new ExecState(optionsNonNull, this.toolPath); + state.on('debug', (message) => { + this._debug(message); + }); + if (this.options.cwd && !(yield ioUtil.exists(this.options.cwd))) { + return reject(new Error(`The cwd: ${this.options.cwd} does not exist!`)); + } + const fileName = this._getSpawnFileName(); + const cp = child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName)); + let stdbuffer = ''; + if (cp.stdout) { + cp.stdout.on('data', (data) => { + if (this.options.listeners && this.options.listeners.stdout) { + this.options.listeners.stdout(data); + } + if (!optionsNonNull.silent && optionsNonNull.outStream) { + optionsNonNull.outStream.write(data); + } + stdbuffer = this._processLineBuffer(data, stdbuffer, (line) => { + if (this.options.listeners && this.options.listeners.stdline) { + this.options.listeners.stdline(line); + } + }); + }); + } + let errbuffer = ''; + if (cp.stderr) { + cp.stderr.on('data', (data) => { + state.processStderr = true; + if (this.options.listeners && this.options.listeners.stderr) { + this.options.listeners.stderr(data); + } + if (!optionsNonNull.silent && + optionsNonNull.errStream && + optionsNonNull.outStream) { + const s = optionsNonNull.failOnStdErr + ? optionsNonNull.errStream + : optionsNonNull.outStream; + s.write(data); + } + errbuffer = this._processLineBuffer(data, errbuffer, (line) => { + if (this.options.listeners && this.options.listeners.errline) { + this.options.listeners.errline(line); + } + }); + }); + } + cp.on('error', (err) => { + state.processError = err.message; + state.processExited = true; + state.processClosed = true; + state.CheckComplete(); + }); + cp.on('exit', (code) => { + state.processExitCode = code; + state.processExited = true; + this._debug(`Exit code ${code} received from tool '${this.toolPath}'`); + state.CheckComplete(); + }); + cp.on('close', (code) => { + state.processExitCode = code; + state.processExited = true; + state.processClosed = true; + this._debug(`STDIO streams have closed for tool '${this.toolPath}'`); + state.CheckComplete(); + }); + state.on('done', (error, exitCode) => { + if (stdbuffer.length > 0) { + this.emit('stdline', stdbuffer); + } + if (errbuffer.length > 0) { + this.emit('errline', errbuffer); + } + cp.removeAllListeners(); + if (error) { + reject(error); + } + else { + resolve(exitCode); + } + }); + if (this.options.input) { + if (!cp.stdin) { + throw new Error('child process missing stdin'); + } + cp.stdin.end(this.options.input); + } + })); + }); + } +} +exports.ToolRunner = ToolRunner; +/** + * Convert an arg string to an array of args. Handles escaping + * + * @param argString string of arguments + * @returns string[] array of arguments + */ +function argStringToArray(argString) { + const args = []; + let inQuotes = false; + let escaped = false; + let arg = ''; + function append(c) { + // we only escape double quotes. + if (escaped && c !== '"') { + arg += '\\'; + } + arg += c; + escaped = false; + } + for (let i = 0; i < argString.length; i++) { + const c = argString.charAt(i); + if (c === '"') { + if (!escaped) { + inQuotes = !inQuotes; + } + else { + append(c); + } + continue; + } + if (c === '\\' && escaped) { + append(c); + continue; + } + if (c === '\\' && inQuotes) { + escaped = true; + continue; + } + if (c === ' ' && !inQuotes) { + if (arg.length > 0) { + args.push(arg); + arg = ''; + } + continue; + } + append(c); + } + if (arg.length > 0) { + args.push(arg.trim()); + } + return args; +} +exports.argStringToArray = argStringToArray; +class ExecState extends events.EventEmitter { + constructor(options, toolPath) { + super(); + this.processClosed = false; // tracks whether the process has exited and stdio is closed + this.processError = ''; + this.processExitCode = 0; + this.processExited = false; // tracks whether the process has exited + this.processStderr = false; // tracks whether stderr was written to + this.delay = 10000; // 10 seconds + this.done = false; + this.timeout = null; + if (!toolPath) { + throw new Error('toolPath must not be empty'); + } + this.options = options; + this.toolPath = toolPath; + if (options.delay) { + this.delay = options.delay; + } + } + CheckComplete() { + if (this.done) { + return; + } + if (this.processClosed) { + this._setResult(); + } + else if (this.processExited) { + this.timeout = timers_1.setTimeout(ExecState.HandleTimeout, this.delay, this); + } + } + _debug(message) { + this.emit('debug', message); + } + _setResult() { + // determine whether there is an error + let error; + if (this.processExited) { + if (this.processError) { + error = new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`); + } + else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) { + error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`); + } + else if (this.processStderr && this.options.failOnStdErr) { + error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`); + } + } + // clear the timeout + if (this.timeout) { + clearTimeout(this.timeout); + this.timeout = null; + } + this.done = true; + this.emit('done', error, this.processExitCode); + } + static HandleTimeout(state) { + if (state.done) { + return; + } + if (!state.processClosed && state.processExited) { + const message = `The STDIO streams did not close within ${state.delay / + 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`; + state._debug(message); + } + state._setResult(); + } +} +//# sourceMappingURL=toolrunner.js.map + +/***/ }), + /***/ 44552: /***/ (function(__unused_webpack_module, exports) { @@ -1090,7 +1946,11 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand /* eslint-disable @typescript-eslint/no-explicit-any */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -1103,7 +1963,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; @@ -1122,6 +1982,7 @@ const http = __importStar(__nccwpck_require__(58611)); const https = __importStar(__nccwpck_require__(65692)); const pm = __importStar(__nccwpck_require__(54988)); const tunnel = __importStar(__nccwpck_require__(20770)); +const undici_1 = __nccwpck_require__(46752); var HttpCodes; (function (HttpCodes) { HttpCodes[HttpCodes["OK"] = 200] = "OK"; @@ -1151,16 +2012,16 @@ var HttpCodes; HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway"; HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable"; HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout"; -})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {})); +})(HttpCodes || (exports.HttpCodes = HttpCodes = {})); var Headers; (function (Headers) { Headers["Accept"] = "accept"; Headers["ContentType"] = "content-type"; -})(Headers = exports.Headers || (exports.Headers = {})); +})(Headers || (exports.Headers = Headers = {})); var MediaTypes; (function (MediaTypes) { MediaTypes["ApplicationJson"] = "application/json"; -})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {})); +})(MediaTypes || (exports.MediaTypes = MediaTypes = {})); /** * Returns the proxy URL, depending upon the supplied url and proxy environment variables. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com @@ -1529,6 +2390,15 @@ class HttpClient { const parsedUrl = new URL(serverUrl); return this._getAgent(parsedUrl); } + getAgentDispatcher(serverUrl) { + const parsedUrl = new URL(serverUrl); + const proxyUrl = pm.getProxyUrl(parsedUrl); + const useProxy = proxyUrl && proxyUrl.hostname; + if (!useProxy) { + return; + } + return this._getProxyAgentDispatcher(parsedUrl, proxyUrl); + } _prepareRequest(method, requestUrl, headers) { const info = {}; info.parsedUrl = requestUrl; @@ -1576,7 +2446,7 @@ class HttpClient { if (this._keepAlive && useProxy) { agent = this._proxyAgent; } - if (this._keepAlive && !useProxy) { + if (!useProxy) { agent = this._agent; } // if agent is already assigned use that agent. @@ -1608,16 +2478,12 @@ class HttpClient { agent = tunnelAgent(agentOptions); this._proxyAgent = agent; } - // if reusing agent across request and tunneling agent isn't assigned create a new agent - if (this._keepAlive && !agent) { + // if tunneling agent isn't assigned create a new agent + if (!agent) { const options = { keepAlive: this._keepAlive, maxSockets }; agent = usingSsl ? new https.Agent(options) : new http.Agent(options); this._agent = agent; } - // if not using private agent and tunnel agent isn't setup then use global agent - if (!agent) { - agent = usingSsl ? https.globalAgent : http.globalAgent; - } if (usingSsl && this._ignoreSslError) { // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options @@ -1628,6 +2494,30 @@ class HttpClient { } return agent; } + _getProxyAgentDispatcher(parsedUrl, proxyUrl) { + let proxyAgent; + if (this._keepAlive) { + proxyAgent = this._proxyAgentDispatcher; + } + // if agent is already assigned use that agent. + if (proxyAgent) { + return proxyAgent; + } + const usingSsl = parsedUrl.protocol === 'https:'; + proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && { + token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}` + }))); + this._proxyAgentDispatcher = proxyAgent; + if (usingSsl && this._ignoreSslError) { + // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process + // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options + // we have to cast it to any and change it directly + proxyAgent.options = Object.assign(proxyAgent.options.requestTls || {}, { + rejectUnauthorized: false + }); + } + return proxyAgent; + } _performExponentialBackoff(retryNumber) { return __awaiter(this, void 0, void 0, function* () { retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); @@ -1729,11 +2619,11 @@ function getProxyUrl(reqUrl) { })(); if (proxyVar) { try { - return new URL(proxyVar); + return new DecodedURL(proxyVar); } catch (_a) { if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://')) - return new URL(`http://${proxyVar}`); + return new DecodedURL(`http://${proxyVar}`); } } else { @@ -1792,229298 +2682,184887 @@ function isLoopbackAddress(host) { hostLower.startsWith('[::1]') || hostLower.startsWith('[0:0:0:0:0:0:0:1]')); } +class DecodedURL extends URL { + constructor(url, base) { + super(url, base); + this._decodedUsername = decodeURIComponent(super.username); + this._decodedPassword = decodeURIComponent(super.password); + } + get username() { + return this._decodedUsername; + } + get password() { + return this._decodedPassword; + } +} //# sourceMappingURL=proxy.js.map /***/ }), -/***/ 62886: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { +/***/ 75207: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -/* module decorator */ module = __nccwpck_require__.nmd(module); -// 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. +"use strict"; -/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ -(function(global, factory) { /* global define, require, module */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var _a; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readlink = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0; +const fs = __importStar(__nccwpck_require__(79896)); +const path = __importStar(__nccwpck_require__(16928)); +_a = fs.promises +// export const {open} = 'fs' +, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.open = _a.open, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rm = _a.rm, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink; +// export const {open} = 'fs' +exports.IS_WINDOWS = process.platform === 'win32'; +// See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691 +exports.UV_FS_O_EXLOCK = 0x10000000; +exports.READONLY = fs.constants.O_RDONLY; +function exists(fsPath) { + return __awaiter(this, void 0, void 0, function* () { + try { + yield exports.stat(fsPath); + } + catch (err) { + if (err.code === 'ENOENT') { + return false; + } + throw err; + } + return true; + }); +} +exports.exists = exists; +function isDirectory(fsPath, useStat = false) { + return __awaiter(this, void 0, void 0, function* () { + const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath); + return stats.isDirectory(); + }); +} +exports.isDirectory = isDirectory; +/** + * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like: + * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases). + */ +function isRooted(p) { + p = normalizeSeparators(p); + if (!p) { + throw new Error('isRooted() parameter "p" cannot be empty'); + } + if (exports.IS_WINDOWS) { + return (p.startsWith('\\') || /^[A-Z]:/i.test(p) // e.g. \ or \hello or \\hello + ); // e.g. C: or C:\hello + } + return p.startsWith('/'); +} +exports.isRooted = isRooted; +/** + * Best effort attempt to determine whether a file exists and is executable. + * @param filePath file path to check + * @param extensions additional file extensions to try + * @return if file exists and is executable, returns the file path. otherwise empty string. + */ +function tryGetExecutablePath(filePath, extensions) { + return __awaiter(this, void 0, void 0, function* () { + let stats = undefined; + try { + // test file exists + stats = yield exports.stat(filePath); + } + catch (err) { + if (err.code !== 'ENOENT') { + // eslint-disable-next-line no-console + console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`); + } + } + if (stats && stats.isFile()) { + if (exports.IS_WINDOWS) { + // on Windows, test for valid extension + const upperExt = path.extname(filePath).toUpperCase(); + if (extensions.some(validExt => validExt.toUpperCase() === upperExt)) { + return filePath; + } + } + else { + if (isUnixExecutable(stats)) { + return filePath; + } + } + } + // try each extension + const originalFilePath = filePath; + for (const extension of extensions) { + filePath = originalFilePath + extension; + stats = undefined; + try { + stats = yield exports.stat(filePath); + } + catch (err) { + if (err.code !== 'ENOENT') { + // eslint-disable-next-line no-console + console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`); + } + } + if (stats && stats.isFile()) { + if (exports.IS_WINDOWS) { + // preserve the case of the actual file (since an extension was appended) + try { + const directory = path.dirname(filePath); + const upperName = path.basename(filePath).toUpperCase(); + for (const actualName of yield exports.readdir(directory)) { + if (upperName === actualName.toUpperCase()) { + filePath = path.join(directory, actualName); + break; + } + } + } + catch (err) { + // eslint-disable-next-line no-console + console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`); + } + return filePath; + } + else { + if (isUnixExecutable(stats)) { + return filePath; + } + } + } + } + return ''; + }); +} +exports.tryGetExecutablePath = tryGetExecutablePath; +function normalizeSeparators(p) { + p = p || ''; + if (exports.IS_WINDOWS) { + // convert slashes on Windows + p = p.replace(/\//g, '\\'); + // remove redundant slashes + return p.replace(/\\\\+/g, '\\'); + } + // remove redundant slashes + return p.replace(/\/\/+/g, '/'); +} +// on Mac/Linux, test the execute bit +// R W X R W X R W X +// 256 128 64 32 16 8 4 2 1 +function isUnixExecutable(stats) { + return ((stats.mode & 1) > 0 || + ((stats.mode & 8) > 0 && stats.gid === process.getgid()) || + ((stats.mode & 64) > 0 && stats.uid === process.getuid())); +} +// Get the path of cmd.exe in windows +function getCmdPath() { + var _a; + return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`; +} +exports.getCmdPath = getCmdPath; +//# sourceMappingURL=io-util.js.map - /* AMD */ if (typeof define === 'function' && define.amd) - define(["protobufjs/minimal"], factory); +/***/ }), - /* CommonJS */ else if ( true && module && module.exports) - module.exports = factory((__nccwpck_require__(71529).protobufMinimal)); +/***/ 94994: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -})(this, function($protobuf) { - "use strict"; +"use strict"; - // Common aliases - var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; - - // Exported root namespace - var $root = $protobuf.roots._google_cloud_iam_credentials_protos || ($protobuf.roots._google_cloud_iam_credentials_protos = {}); - - $root.google = (function() { - +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0; +const assert_1 = __nccwpck_require__(42613); +const path = __importStar(__nccwpck_require__(16928)); +const ioUtil = __importStar(__nccwpck_require__(75207)); +/** + * Copies a file or folder. + * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js + * + * @param source source path + * @param dest destination path + * @param options optional. See CopyOptions. + */ +function cp(source, dest, options = {}) { + return __awaiter(this, void 0, void 0, function* () { + const { force, recursive, copySourceDirectory } = readCopyOptions(options); + const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null; + // Dest is an existing file, but not forcing + if (destStat && destStat.isFile() && !force) { + return; + } + // If dest is an existing directory, should copy inside. + const newDest = destStat && destStat.isDirectory() && copySourceDirectory + ? path.join(dest, path.basename(source)) + : dest; + if (!(yield ioUtil.exists(source))) { + throw new Error(`no such file or directory: ${source}`); + } + const sourceStat = yield ioUtil.stat(source); + if (sourceStat.isDirectory()) { + if (!recursive) { + throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`); + } + else { + yield cpDirRecursive(source, newDest, 0, force); + } + } + else { + if (path.relative(source, newDest) === '') { + // a file cannot be copied to itself + throw new Error(`'${newDest}' and '${source}' are the same file`); + } + yield copyFile(source, newDest, force); + } + }); +} +exports.cp = cp; +/** + * Moves a path. + * + * @param source source path + * @param dest destination path + * @param options optional. See MoveOptions. + */ +function mv(source, dest, options = {}) { + return __awaiter(this, void 0, void 0, function* () { + if (yield ioUtil.exists(dest)) { + let destExists = true; + if (yield ioUtil.isDirectory(dest)) { + // If dest is directory copy src into dest + dest = path.join(dest, path.basename(source)); + destExists = yield ioUtil.exists(dest); + } + if (destExists) { + if (options.force == null || options.force) { + yield rmRF(dest); + } + else { + throw new Error('Destination already exists'); + } + } + } + yield mkdirP(path.dirname(dest)); + yield ioUtil.rename(source, dest); + }); +} +exports.mv = mv; +/** + * Remove a path recursively with force + * + * @param inputPath path to remove + */ +function rmRF(inputPath) { + return __awaiter(this, void 0, void 0, function* () { + if (ioUtil.IS_WINDOWS) { + // Check for invalid characters + // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file + if (/[*"<>|]/.test(inputPath)) { + throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows'); + } + } + try { + // note if path does not exist, error is silent + yield ioUtil.rm(inputPath, { + force: true, + maxRetries: 3, + recursive: true, + retryDelay: 300 + }); + } + catch (err) { + throw new Error(`File was unable to be removed ${err}`); + } + }); +} +exports.rmRF = rmRF; +/** + * Make a directory. Creates the full path with folders in between + * Will throw if it fails + * + * @param fsPath path to create + * @returns Promise + */ +function mkdirP(fsPath) { + return __awaiter(this, void 0, void 0, function* () { + assert_1.ok(fsPath, 'a path argument must be provided'); + yield ioUtil.mkdir(fsPath, { recursive: true }); + }); +} +exports.mkdirP = mkdirP; +/** + * Returns path of a tool had the tool actually been invoked. Resolves via paths. + * If you check and the tool does not exist, it will throw. + * + * @param tool name of the tool + * @param check whether to check if tool exists + * @returns Promise path to tool + */ +function which(tool, check) { + return __awaiter(this, void 0, void 0, function* () { + if (!tool) { + throw new Error("parameter 'tool' is required"); + } + // recursive when check=true + if (check) { + const result = yield which(tool, false); + if (!result) { + if (ioUtil.IS_WINDOWS) { + throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`); + } + else { + throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`); + } + } + return result; + } + const matches = yield findInPath(tool); + if (matches && matches.length > 0) { + return matches[0]; + } + return ''; + }); +} +exports.which = which; +/** + * Returns a list of all occurrences of the given tool on the system path. + * + * @returns Promise the paths of the tool + */ +function findInPath(tool) { + return __awaiter(this, void 0, void 0, function* () { + if (!tool) { + throw new Error("parameter 'tool' is required"); + } + // build the list of extensions to try + const extensions = []; + if (ioUtil.IS_WINDOWS && process.env['PATHEXT']) { + for (const extension of process.env['PATHEXT'].split(path.delimiter)) { + if (extension) { + extensions.push(extension); + } + } + } + // if it's rooted, return it if exists. otherwise return empty. + if (ioUtil.isRooted(tool)) { + const filePath = yield ioUtil.tryGetExecutablePath(tool, extensions); + if (filePath) { + return [filePath]; + } + return []; + } + // if any path separators, return empty + if (tool.includes(path.sep)) { + return []; + } + // build the list of directories + // + // Note, technically "where" checks the current directory on Windows. From a toolkit perspective, + // it feels like we should not do this. Checking the current directory seems like more of a use + // case of a shell, and the which() function exposed by the toolkit should strive for consistency + // across platforms. + const directories = []; + if (process.env.PATH) { + for (const p of process.env.PATH.split(path.delimiter)) { + if (p) { + directories.push(p); + } + } + } + // find all matches + const matches = []; + for (const directory of directories) { + const filePath = yield ioUtil.tryGetExecutablePath(path.join(directory, tool), extensions); + if (filePath) { + matches.push(filePath); + } + } + return matches; + }); +} +exports.findInPath = findInPath; +function readCopyOptions(options) { + const force = options.force == null ? true : options.force; + const recursive = Boolean(options.recursive); + const copySourceDirectory = options.copySourceDirectory == null + ? true + : Boolean(options.copySourceDirectory); + return { force, recursive, copySourceDirectory }; +} +function cpDirRecursive(sourceDir, destDir, currentDepth, force) { + return __awaiter(this, void 0, void 0, function* () { + // Ensure there is not a run away recursive copy + if (currentDepth >= 255) + return; + currentDepth++; + yield mkdirP(destDir); + const files = yield ioUtil.readdir(sourceDir); + for (const fileName of files) { + const srcFile = `${sourceDir}/${fileName}`; + const destFile = `${destDir}/${fileName}`; + const srcFileStat = yield ioUtil.lstat(srcFile); + if (srcFileStat.isDirectory()) { + // Recurse + yield cpDirRecursive(srcFile, destFile, currentDepth, force); + } + else { + yield copyFile(srcFile, destFile, force); + } + } + // Change the mode for the newly created directory + yield ioUtil.chmod(destDir, (yield ioUtil.stat(sourceDir)).mode); + }); +} +// Buffered file copy +function copyFile(srcFile, destFile, force) { + return __awaiter(this, void 0, void 0, function* () { + if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) { + // unlink/re-link it + try { + yield ioUtil.lstat(destFile); + yield ioUtil.unlink(destFile); + } + catch (e) { + // Try to override file permission + if (e.code === 'EPERM') { + yield ioUtil.chmod(destFile, '0666'); + yield ioUtil.unlink(destFile); + } + // other errors = it doesn't exist, no work to do + } + // Copy over symlink + const symlinkFull = yield ioUtil.readlink(srcFile); + yield ioUtil.symlink(symlinkFull, destFile, ioUtil.IS_WINDOWS ? 'junction' : null); + } + else if (!(yield ioUtil.exists(destFile)) || force) { + yield ioUtil.copyFile(srcFile, destFile); + } + }); +} +//# sourceMappingURL=io.js.map + +/***/ }), + +/***/ 69237: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RawSha256 = void 0; +var constants_1 = __nccwpck_require__(75897); +/** + * @internal + */ +var RawSha256 = /** @class */ (function () { + function RawSha256() { + this.state = Int32Array.from(constants_1.INIT); + this.temp = new Int32Array(64); + this.buffer = new Uint8Array(64); + this.bufferLength = 0; + this.bytesHashed = 0; /** - * Namespace google. - * @exports google - * @namespace + * @internal */ - var google = {}; - - google.iam = (function() { - - /** - * Namespace iam. - * @memberof google - * @namespace - */ - var iam = {}; - - iam.credentials = (function() { - - /** - * Namespace credentials. - * @memberof google.iam - * @namespace - */ - var credentials = {}; - - credentials.v1 = (function() { - - /** - * Namespace v1. - * @memberof google.iam.credentials - * @namespace - */ - var v1 = {}; - - v1.GenerateAccessTokenRequest = (function() { - - /** - * Properties of a GenerateAccessTokenRequest. - * @memberof google.iam.credentials.v1 - * @interface IGenerateAccessTokenRequest - * @property {string|null} [name] GenerateAccessTokenRequest name - * @property {Array.|null} [delegates] GenerateAccessTokenRequest delegates - * @property {Array.|null} [scope] GenerateAccessTokenRequest scope - * @property {google.protobuf.IDuration|null} [lifetime] GenerateAccessTokenRequest lifetime - */ - - /** - * Constructs a new GenerateAccessTokenRequest. - * @memberof google.iam.credentials.v1 - * @classdesc Represents a GenerateAccessTokenRequest. - * @implements IGenerateAccessTokenRequest - * @constructor - * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest=} [properties] Properties to set - */ - function GenerateAccessTokenRequest(properties) { - this.delegates = []; - this.scope = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + this.finished = false; + } + RawSha256.prototype.update = function (data) { + if (this.finished) { + throw new Error("Attempted to update an already finished hash."); + } + var position = 0; + var byteLength = data.byteLength; + this.bytesHashed += byteLength; + if (this.bytesHashed * 8 > constants_1.MAX_HASHABLE_LENGTH) { + throw new Error("Cannot hash more than 2^53 - 1 bits"); + } + while (byteLength > 0) { + this.buffer[this.bufferLength++] = data[position++]; + byteLength--; + if (this.bufferLength === constants_1.BLOCK_SIZE) { + this.hashBuffer(); + this.bufferLength = 0; + } + } + }; + RawSha256.prototype.digest = function () { + if (!this.finished) { + var bitsHashed = this.bytesHashed * 8; + var bufferView = new DataView(this.buffer.buffer, this.buffer.byteOffset, this.buffer.byteLength); + var undecoratedLength = this.bufferLength; + bufferView.setUint8(this.bufferLength++, 0x80); + // Ensure the final block has enough room for the hashed length + if (undecoratedLength % constants_1.BLOCK_SIZE >= constants_1.BLOCK_SIZE - 8) { + for (var i = this.bufferLength; i < constants_1.BLOCK_SIZE; i++) { + bufferView.setUint8(i, 0); + } + this.hashBuffer(); + this.bufferLength = 0; + } + for (var i = this.bufferLength; i < constants_1.BLOCK_SIZE - 8; i++) { + bufferView.setUint8(i, 0); + } + bufferView.setUint32(constants_1.BLOCK_SIZE - 8, Math.floor(bitsHashed / 0x100000000), true); + bufferView.setUint32(constants_1.BLOCK_SIZE - 4, bitsHashed); + this.hashBuffer(); + this.finished = true; + } + // The value in state is little-endian rather than big-endian, so flip + // each word into a new Uint8Array + var out = new Uint8Array(constants_1.DIGEST_LENGTH); + for (var i = 0; i < 8; i++) { + out[i * 4] = (this.state[i] >>> 24) & 0xff; + out[i * 4 + 1] = (this.state[i] >>> 16) & 0xff; + out[i * 4 + 2] = (this.state[i] >>> 8) & 0xff; + out[i * 4 + 3] = (this.state[i] >>> 0) & 0xff; + } + return out; + }; + RawSha256.prototype.hashBuffer = function () { + var _a = this, buffer = _a.buffer, state = _a.state; + var state0 = state[0], state1 = state[1], state2 = state[2], state3 = state[3], state4 = state[4], state5 = state[5], state6 = state[6], state7 = state[7]; + for (var i = 0; i < constants_1.BLOCK_SIZE; i++) { + if (i < 16) { + this.temp[i] = + ((buffer[i * 4] & 0xff) << 24) | + ((buffer[i * 4 + 1] & 0xff) << 16) | + ((buffer[i * 4 + 2] & 0xff) << 8) | + (buffer[i * 4 + 3] & 0xff); + } + else { + var u = this.temp[i - 2]; + var t1_1 = ((u >>> 17) | (u << 15)) ^ ((u >>> 19) | (u << 13)) ^ (u >>> 10); + u = this.temp[i - 15]; + var t2_1 = ((u >>> 7) | (u << 25)) ^ ((u >>> 18) | (u << 14)) ^ (u >>> 3); + this.temp[i] = + ((t1_1 + this.temp[i - 7]) | 0) + ((t2_1 + this.temp[i - 16]) | 0); + } + var t1 = ((((((state4 >>> 6) | (state4 << 26)) ^ + ((state4 >>> 11) | (state4 << 21)) ^ + ((state4 >>> 25) | (state4 << 7))) + + ((state4 & state5) ^ (~state4 & state6))) | + 0) + + ((state7 + ((constants_1.KEY[i] + this.temp[i]) | 0)) | 0)) | + 0; + var t2 = ((((state0 >>> 2) | (state0 << 30)) ^ + ((state0 >>> 13) | (state0 << 19)) ^ + ((state0 >>> 22) | (state0 << 10))) + + ((state0 & state1) ^ (state0 & state2) ^ (state1 & state2))) | + 0; + state7 = state6; + state6 = state5; + state5 = state4; + state4 = (state3 + t1) | 0; + state3 = state2; + state2 = state1; + state1 = state0; + state0 = (t1 + t2) | 0; + } + state[0] += state0; + state[1] += state1; + state[2] += state2; + state[3] += state3; + state[4] += state4; + state[5] += state5; + state[6] += state6; + state[7] += state7; + }; + return RawSha256; +}()); +exports.RawSha256 = RawSha256; +//# sourceMappingURL=RawSha256.js.map + +/***/ }), + +/***/ 75897: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MAX_HASHABLE_LENGTH = exports.INIT = exports.KEY = exports.DIGEST_LENGTH = exports.BLOCK_SIZE = void 0; +/** + * @internal + */ +exports.BLOCK_SIZE = 64; +/** + * @internal + */ +exports.DIGEST_LENGTH = 32; +/** + * @internal + */ +exports.KEY = new Uint32Array([ + 0x428a2f98, + 0x71374491, + 0xb5c0fbcf, + 0xe9b5dba5, + 0x3956c25b, + 0x59f111f1, + 0x923f82a4, + 0xab1c5ed5, + 0xd807aa98, + 0x12835b01, + 0x243185be, + 0x550c7dc3, + 0x72be5d74, + 0x80deb1fe, + 0x9bdc06a7, + 0xc19bf174, + 0xe49b69c1, + 0xefbe4786, + 0x0fc19dc6, + 0x240ca1cc, + 0x2de92c6f, + 0x4a7484aa, + 0x5cb0a9dc, + 0x76f988da, + 0x983e5152, + 0xa831c66d, + 0xb00327c8, + 0xbf597fc7, + 0xc6e00bf3, + 0xd5a79147, + 0x06ca6351, + 0x14292967, + 0x27b70a85, + 0x2e1b2138, + 0x4d2c6dfc, + 0x53380d13, + 0x650a7354, + 0x766a0abb, + 0x81c2c92e, + 0x92722c85, + 0xa2bfe8a1, + 0xa81a664b, + 0xc24b8b70, + 0xc76c51a3, + 0xd192e819, + 0xd6990624, + 0xf40e3585, + 0x106aa070, + 0x19a4c116, + 0x1e376c08, + 0x2748774c, + 0x34b0bcb5, + 0x391c0cb3, + 0x4ed8aa4a, + 0x5b9cca4f, + 0x682e6ff3, + 0x748f82ee, + 0x78a5636f, + 0x84c87814, + 0x8cc70208, + 0x90befffa, + 0xa4506ceb, + 0xbef9a3f7, + 0xc67178f2 +]); +/** + * @internal + */ +exports.INIT = [ + 0x6a09e667, + 0xbb67ae85, + 0x3c6ef372, + 0xa54ff53a, + 0x510e527f, + 0x9b05688c, + 0x1f83d9ab, + 0x5be0cd19 +]; +/** + * @internal + */ +exports.MAX_HASHABLE_LENGTH = Math.pow(2, 53) - 1; +//# sourceMappingURL=constants.js.map + +/***/ }), + +/***/ 23156: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +var tslib_1 = __nccwpck_require__(61860); +tslib_1.__exportStar(__nccwpck_require__(26797), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 26797: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Sha256 = void 0; +var tslib_1 = __nccwpck_require__(61860); +var constants_1 = __nccwpck_require__(75897); +var RawSha256_1 = __nccwpck_require__(69237); +var util_1 = __nccwpck_require__(95667); +var Sha256 = /** @class */ (function () { + function Sha256(secret) { + this.secret = secret; + this.hash = new RawSha256_1.RawSha256(); + this.reset(); + } + Sha256.prototype.update = function (toHash) { + if ((0, util_1.isEmptyData)(toHash) || this.error) { + return; + } + try { + this.hash.update((0, util_1.convertToBuffer)(toHash)); + } + catch (e) { + this.error = e; + } + }; + /* This synchronous method keeps compatibility + * with the v2 aws-sdk. + */ + Sha256.prototype.digestSync = function () { + if (this.error) { + throw this.error; + } + if (this.outer) { + if (!this.outer.finished) { + this.outer.update(this.hash.digest()); + } + return this.outer.digest(); + } + return this.hash.digest(); + }; + /* The underlying digest method here is synchronous. + * To keep the same interface with the other hash functions + * the default is to expose this as an async method. + * However, it can sometimes be useful to have a sync method. + */ + Sha256.prototype.digest = function () { + return tslib_1.__awaiter(this, void 0, void 0, function () { + return tslib_1.__generator(this, function (_a) { + return [2 /*return*/, this.digestSync()]; + }); + }); + }; + Sha256.prototype.reset = function () { + this.hash = new RawSha256_1.RawSha256(); + if (this.secret) { + this.outer = new RawSha256_1.RawSha256(); + var inner = bufferFromSecret(this.secret); + var outer = new Uint8Array(constants_1.BLOCK_SIZE); + outer.set(inner); + for (var i = 0; i < constants_1.BLOCK_SIZE; i++) { + inner[i] ^= 0x36; + outer[i] ^= 0x5c; + } + this.hash.update(inner); + this.outer.update(outer); + // overwrite the copied key in memory + for (var i = 0; i < inner.byteLength; i++) { + inner[i] = 0; + } + } + }; + return Sha256; +}()); +exports.Sha256 = Sha256; +function bufferFromSecret(secret) { + var input = (0, util_1.convertToBuffer)(secret); + if (input.byteLength > constants_1.BLOCK_SIZE) { + var bufferHash = new RawSha256_1.RawSha256(); + bufferHash.update(input); + input = bufferHash.digest(); + } + var buffer = new Uint8Array(constants_1.BLOCK_SIZE); + buffer.set(input); + return buffer; +} +//# sourceMappingURL=jsSha256.js.map + +/***/ }), + +/***/ 45675: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.convertToBuffer = void 0; +var util_utf8_1 = __nccwpck_require__(71577); +// Quick polyfill +var fromUtf8 = typeof Buffer !== "undefined" && Buffer.from + ? function (input) { return Buffer.from(input, "utf8"); } + : util_utf8_1.fromUtf8; +function convertToBuffer(data) { + // Already a Uint8, do nothing + if (data instanceof Uint8Array) + return data; + if (typeof data === "string") { + return fromUtf8(data); + } + if (ArrayBuffer.isView(data)) { + return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); + } + return new Uint8Array(data); +} +exports.convertToBuffer = convertToBuffer; +//# sourceMappingURL=convertToBuffer.js.map + +/***/ }), + +/***/ 95667: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.uint32ArrayFrom = exports.numToUint8 = exports.isEmptyData = exports.convertToBuffer = void 0; +var convertToBuffer_1 = __nccwpck_require__(45675); +Object.defineProperty(exports, "convertToBuffer", ({ enumerable: true, get: function () { return convertToBuffer_1.convertToBuffer; } })); +var isEmptyData_1 = __nccwpck_require__(14658); +Object.defineProperty(exports, "isEmptyData", ({ enumerable: true, get: function () { return isEmptyData_1.isEmptyData; } })); +var numToUint8_1 = __nccwpck_require__(35436); +Object.defineProperty(exports, "numToUint8", ({ enumerable: true, get: function () { return numToUint8_1.numToUint8; } })); +var uint32ArrayFrom_1 = __nccwpck_require__(50673); +Object.defineProperty(exports, "uint32ArrayFrom", ({ enumerable: true, get: function () { return uint32ArrayFrom_1.uint32ArrayFrom; } })); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 14658: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isEmptyData = void 0; +function isEmptyData(data) { + if (typeof data === "string") { + return data.length === 0; + } + return data.byteLength === 0; +} +exports.isEmptyData = isEmptyData; +//# sourceMappingURL=isEmptyData.js.map + +/***/ }), + +/***/ 35436: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.numToUint8 = void 0; +function numToUint8(num) { + return new Uint8Array([ + (num & 0xff000000) >> 24, + (num & 0x00ff0000) >> 16, + (num & 0x0000ff00) >> 8, + num & 0x000000ff, + ]); +} +exports.numToUint8 = numToUint8; +//# sourceMappingURL=numToUint8.js.map + +/***/ }), + +/***/ 50673: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.uint32ArrayFrom = void 0; +// IE 11 does not support Array.from, so we do it manually +function uint32ArrayFrom(a_lookUpTable) { + if (!Uint32Array.from) { + var return_array = new Uint32Array(a_lookUpTable.length); + var a_index = 0; + while (a_index < a_lookUpTable.length) { + return_array[a_index] = a_lookUpTable[a_index]; + a_index += 1; + } + return return_array; + } + return Uint32Array.from(a_lookUpTable); +} +exports.uint32ArrayFrom = uint32ArrayFrom; +//# sourceMappingURL=uint32ArrayFrom.js.map + +/***/ }), + +/***/ 5152: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { Retry, RETRY_MODES } = __nccwpck_require__(23609); +const { HttpRequest, parseUrl } = __nccwpck_require__(93422); +const { InvokeStore } = __nccwpck_require__(29320); +const { normalizeProvider } = __nccwpck_require__(90402); +const { platform, release } = __nccwpck_require__(48161); +const { versions, env } = __nccwpck_require__(1708); +const { isValidHostLabel, isIpAddress, customEndpointFunctions } = __nccwpck_require__(62085); +const { EndpointError, resolveEndpoint } = __nccwpck_require__(62085); +exports.EndpointError = EndpointError; +exports.isIpAddress = isIpAddress; +exports.resolveEndpoint = resolveEndpoint; +const { loadConfig, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS } = __nccwpck_require__(47291); +const { REGION_ENV_NAME, REGION_INI_NAME, resolveRegionConfig } = __nccwpck_require__(47291); +exports.NODE_REGION_CONFIG_FILE_OPTIONS = NODE_REGION_CONFIG_FILE_OPTIONS; +exports.NODE_REGION_CONFIG_OPTIONS = NODE_REGION_CONFIG_OPTIONS; +exports.REGION_ENV_NAME = REGION_ENV_NAME; +exports.REGION_INI_NAME = REGION_INI_NAME; +exports.resolveRegionConfig = resolveRegionConfig; + +const state = { + warningEmitted: false, +}; +const emitWarningIfUnsupportedVersion = (version) => { + if (version && !state.warningEmitted) { + if (process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED === "true") { + state.warningEmitted = true; + return; + } + const userMajorVersion = parseInt(version.substring(1, version.indexOf("."))); + const vv = 22; + if (userMajorVersion < vv) { + state.warningEmitted = true; + process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3) +versions published after the first week of January 2027 +will require node >=${vv}. You are running node ${version}. + +To continue receiving updates to AWS services, bug fixes, +and security updates please upgrade to node >=${vv}. + +More information can be found at: https://a.co/c895JFp`); + } + } +}; + +const longPollMiddleware = () => (next, context) => async (args) => { + context.__retryLongPoll = true; + return next(args); +}; +const longPollMiddlewareOptions = { + name: "longPollMiddleware", + tags: ["RETRY"], + step: "initialize", + override: true, +}; +const getLongPollPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add(longPollMiddleware(), longPollMiddlewareOptions); + }, +}); + +function setCredentialFeature(credentials, feature, value) { + if (!credentials.$source) { + credentials.$source = {}; + } + credentials.$source[feature] = value; + return credentials; +} + +Retry.v2026 ||= typeof process === "object" && process.env?.AWS_NEW_RETRIES_2026 === "true"; +function setFeature(context, feature, value) { + if (!context.__aws_sdk_context) { + context.__aws_sdk_context = { + features: {}, + }; + } + else if (!context.__aws_sdk_context.features) { + context.__aws_sdk_context.features = {}; + } + context.__aws_sdk_context.features[feature] = value; +} + +function setTokenFeature(token, feature, value) { + if (!token.$source) { + token.$source = {}; + } + token.$source[feature] = value; + return token; +} + +function resolveHostHeaderConfig(input) { + return input; +} +const hostHeaderMiddleware = (options) => (next) => async (args) => { + if (!HttpRequest.isInstance(args.request)) + return next(args); + const { request } = args; + const { handlerProtocol = "" } = options.requestHandler.metadata || {}; + if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) { + delete request.headers["host"]; + request.headers[":authority"] = request.hostname + (request.port ? ":" + request.port : ""); + } + else if (!request.headers["host"]) { + let host = request.hostname; + if (request.port != null) + host += `:${request.port}`; + request.headers["host"] = host; + } + return next(args); +}; +const hostHeaderMiddlewareOptions = { + name: "hostHeaderMiddleware", + step: "build", + priority: "low", + tags: ["HOST"], + override: true, +}; +const getHostHeaderPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions); + }, +}); + +const loggerMiddleware = () => (next, context) => async (args) => { + try { + const response = await next(args); + const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; + const { overrideInputFilterSensitiveLog, overrideOutputFilterSensitiveLog } = dynamoDbDocumentClientOptions; + const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog; + const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog ?? context.outputFilterSensitiveLog; + const { $metadata, ...outputWithoutMetadata } = response.output; + logger?.info?.({ + clientName, + commandName, + input: inputFilterSensitiveLog(args.input), + output: outputFilterSensitiveLog(outputWithoutMetadata), + metadata: $metadata, + }); + return response; + } + catch (error) { + const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; + const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions; + const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog; + logger?.error?.({ + clientName, + commandName, + input: inputFilterSensitiveLog(args.input), + error, + metadata: error.$metadata, + }); + throw error; + } +}; +const loggerMiddlewareOptions = { + name: "loggerMiddleware", + tags: ["LOGGER"], + step: "initialize", + override: true, +}; +const getLoggerPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add(loggerMiddleware(), loggerMiddlewareOptions); + }, +}); + +const recursionDetectionMiddlewareOptions = { + step: "build", + tags: ["RECURSION_DETECTION", "TRACE_CONTEXT_PROPAGATION"], + name: "recursionDetectionMiddleware", + override: true, + priority: "low", +}; + +const AWS_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; +const _X_AMZN_TRACE_ID = "_X_AMZN_TRACE_ID"; +const X_AMZN_TRACE_ID = "X-Amzn-Trace-Id"; +const TRACEPARENT = "traceparent"; +const TRACESTATE = "tracestate"; +const BAGGAGE = "baggage"; +const recursionDetectionMiddleware = () => (next) => async (args) => { + const { request } = args; + if (!HttpRequest.isInstance(request)) { + return next(args); + } + let invokeStore; + { + const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === X_AMZN_TRACE_ID.toLowerCase()) ?? + X_AMZN_TRACE_ID; + if (!request.headers.hasOwnProperty(traceIdHeader)) { + const functionName = process.env[AWS_LAMBDA_FUNCTION_NAME]; + const traceIdFromEnv = process.env[_X_AMZN_TRACE_ID]; + invokeStore ??= await InvokeStore.getInstanceAsync(); + const traceIdFromInvokeStore = invokeStore?.getXRayTraceId(); + const traceId = traceIdFromInvokeStore ?? traceIdFromEnv; + const nonEmptyString = (str) => typeof str === "string" && str.length > 0; + if (nonEmptyString(functionName) && nonEmptyString(traceId)) { + request.headers[X_AMZN_TRACE_ID] = traceId; + } + } + } + { + sanitizeTraceHeaders(request.headers); + const existingTraceparent = request.headers[TRACEPARENT]; + if (!existingTraceparent) { + const traceparent = (invokeStore ??= await InvokeStore.getInstanceAsync())?.getTraceparent?.(); + if (traceparent) { + request.headers[TRACEPARENT] = traceparent; + const tracestate = invokeStore?.getTracestate?.(); + if (tracestate) { + request.headers[TRACESTATE] = tracestate; + } + const baggage = invokeStore?.getBaggage?.(); + if (baggage) { + request.headers[BAGGAGE] = baggage; + } + } + } + } + return next(args); +}; +function sanitizeTraceHeaders(headers) { + for (const header of Object.keys(headers)) { + const lower = header.toLowerCase(); + if (header !== lower && (lower === TRACEPARENT || lower === TRACESTATE || lower === BAGGAGE)) { + headers[lower] = headers[header]; + delete headers[header]; + } + } +} + +const getRecursionDetectionPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add(recursionDetectionMiddleware(), recursionDetectionMiddlewareOptions); + }, +}); + +const DEFAULT_UA_APP_ID = undefined; +function isValidUserAgentAppId(appId) { + if (appId === undefined) { + return true; + } + return typeof appId === "string" && appId.length <= 50; +} +function resolveUserAgentConfig(input) { + const normalizedAppIdProvider = normalizeProvider(input.userAgentAppId ?? DEFAULT_UA_APP_ID); + const { customUserAgent } = input; + return Object.assign(input, { + customUserAgent: typeof customUserAgent === "string" ? [[customUserAgent]] : customUserAgent, + userAgentAppId: async () => { + const appId = await normalizedAppIdProvider(); + if (!isValidUserAgentAppId(appId)) { + const logger = input.logger?.constructor?.name === "NoOpLogger" || !input.logger ? console : input.logger; + if (typeof appId !== "string") { + logger?.warn("userAgentAppId must be a string or undefined."); + } + else if (appId.length > 50) { + logger?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters."); + } + } + return appId; + }, + }); +} + +const partitionsInfo = { + "partitions": [ + { + "id": "aws", + "outputs": { + "dnsSuffix": "amazonaws.com", + "dualStackDnsSuffix": "api.aws", + "implicitGlobalRegion": "us-east-1", + "name": "aws", + "supportsDualStack": true, + "supportsFIPS": true + }, + "regionRegex": "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$", + "regions": { + "af-south-1": { + "description": "Africa (Cape Town)" + }, + "ap-east-1": { + "description": "Asia Pacific (Hong Kong)" + }, + "ap-east-2": { + "description": "Asia Pacific (Taipei)" + }, + "ap-northeast-1": { + "description": "Asia Pacific (Tokyo)" + }, + "ap-northeast-2": { + "description": "Asia Pacific (Seoul)" + }, + "ap-northeast-3": { + "description": "Asia Pacific (Osaka)" + }, + "ap-south-1": { + "description": "Asia Pacific (Mumbai)" + }, + "ap-south-2": { + "description": "Asia Pacific (Hyderabad)" + }, + "ap-southeast-1": { + "description": "Asia Pacific (Singapore)" + }, + "ap-southeast-2": { + "description": "Asia Pacific (Sydney)" + }, + "ap-southeast-3": { + "description": "Asia Pacific (Jakarta)" + }, + "ap-southeast-4": { + "description": "Asia Pacific (Melbourne)" + }, + "ap-southeast-5": { + "description": "Asia Pacific (Malaysia)" + }, + "ap-southeast-6": { + "description": "Asia Pacific (New Zealand)" + }, + "ap-southeast-7": { + "description": "Asia Pacific (Thailand)" + }, + "aws-global": { + "description": "aws global region" + }, + "ca-central-1": { + "description": "Canada (Central)" + }, + "ca-west-1": { + "description": "Canada West (Calgary)" + }, + "eu-central-1": { + "description": "Europe (Frankfurt)" + }, + "eu-central-2": { + "description": "Europe (Zurich)" + }, + "eu-north-1": { + "description": "Europe (Stockholm)" + }, + "eu-south-1": { + "description": "Europe (Milan)" + }, + "eu-south-2": { + "description": "Europe (Spain)" + }, + "eu-west-1": { + "description": "Europe (Ireland)" + }, + "eu-west-2": { + "description": "Europe (London)" + }, + "eu-west-3": { + "description": "Europe (Paris)" + }, + "il-central-1": { + "description": "Israel (Tel Aviv)" + }, + "me-central-1": { + "description": "Middle East (UAE)" + }, + "me-south-1": { + "description": "Middle East (Bahrain)" + }, + "mx-central-1": { + "description": "Mexico (Central)" + }, + "sa-east-1": { + "description": "South America (Sao Paulo)" + }, + "us-east-1": { + "description": "US East (N. Virginia)" + }, + "us-east-2": { + "description": "US East (Ohio)" + }, + "us-west-1": { + "description": "US West (N. California)" + }, + "us-west-2": { + "description": "US West (Oregon)" + } + } + }, + { + "id": "aws-cn", + "outputs": { + "dnsSuffix": "amazonaws.com.cn", + "dualStackDnsSuffix": "api.amazonwebservices.com.cn", + "implicitGlobalRegion": "cn-northwest-1", + "name": "aws-cn", + "supportsDualStack": true, + "supportsFIPS": true + }, + "regionRegex": "^cn\\-\\w+\\-\\d+$", + "regions": { + "aws-cn-global": { + "description": "aws-cn global region" + }, + "cn-north-1": { + "description": "China (Beijing)" + }, + "cn-northwest-1": { + "description": "China (Ningxia)" + } + } + }, + { + "id": "aws-eusc", + "outputs": { + "dnsSuffix": "amazonaws.eu", + "dualStackDnsSuffix": "api.amazonwebservices.eu", + "implicitGlobalRegion": "eusc-de-east-1", + "name": "aws-eusc", + "supportsDualStack": true, + "supportsFIPS": true + }, + "regionRegex": "^eusc\\-(de)\\-\\w+\\-\\d+$", + "regions": { + "eusc-de-east-1": { + "description": "AWS European Sovereign Cloud (Germany)" + } + } + }, + { + "id": "aws-iso", + "outputs": { + "dnsSuffix": "c2s.ic.gov", + "dualStackDnsSuffix": "api.aws.ic.gov", + "implicitGlobalRegion": "us-iso-east-1", + "name": "aws-iso", + "supportsDualStack": true, + "supportsFIPS": true + }, + "regionRegex": "^us\\-iso\\-\\w+\\-\\d+$", + "regions": { + "aws-iso-global": { + "description": "aws-iso global region" + }, + "us-iso-east-1": { + "description": "US ISO East" + }, + "us-iso-west-1": { + "description": "US ISO WEST" + } + } + }, + { + "id": "aws-iso-b", + "outputs": { + "dnsSuffix": "sc2s.sgov.gov", + "dualStackDnsSuffix": "api.aws.scloud", + "implicitGlobalRegion": "us-isob-east-1", + "name": "aws-iso-b", + "supportsDualStack": true, + "supportsFIPS": true + }, + "regionRegex": "^us\\-isob\\-\\w+\\-\\d+$", + "regions": { + "aws-iso-b-global": { + "description": "aws-iso-b global region" + }, + "us-isob-east-1": { + "description": "US ISOB East (Ohio)" + }, + "us-isob-west-1": { + "description": "US ISOB West" + } + } + }, + { + "id": "aws-iso-e", + "outputs": { + "dnsSuffix": "cloud.adc-e.uk", + "dualStackDnsSuffix": "api.cloud-aws.adc-e.uk", + "implicitGlobalRegion": "eu-isoe-west-1", + "name": "aws-iso-e", + "supportsDualStack": true, + "supportsFIPS": true + }, + "regionRegex": "^eu\\-isoe\\-\\w+\\-\\d+$", + "regions": { + "aws-iso-e-global": { + "description": "aws-iso-e global region" + }, + "eu-isoe-west-1": { + "description": "EU ISOE West" + } + } + }, + { + "id": "aws-iso-f", + "outputs": { + "dnsSuffix": "csp.hci.ic.gov", + "dualStackDnsSuffix": "api.aws.hci.ic.gov", + "implicitGlobalRegion": "us-isof-south-1", + "name": "aws-iso-f", + "supportsDualStack": true, + "supportsFIPS": true + }, + "regionRegex": "^us\\-isof\\-\\w+\\-\\d+$", + "regions": { + "aws-iso-f-global": { + "description": "aws-iso-f global region" + }, + "us-isof-east-1": { + "description": "US ISOF EAST" + }, + "us-isof-south-1": { + "description": "US ISOF SOUTH" + } + } + }, + { + "id": "aws-us-gov", + "outputs": { + "dnsSuffix": "amazonaws.com", + "dualStackDnsSuffix": "api.aws", + "implicitGlobalRegion": "us-gov-west-1", + "name": "aws-us-gov", + "supportsDualStack": true, + "supportsFIPS": true + }, + "regionRegex": "^us\\-gov\\-\\w+\\-\\d+$", + "regions": { + "aws-us-gov-global": { + "description": "aws-us-gov global region" + }, + "us-gov-east-1": { + "description": "AWS GovCloud (US-East)" + }, + "us-gov-west-1": { + "description": "AWS GovCloud (US-West)" + } + } + } + ], + "version": "1.1" +}; + +let selectedPartitionsInfo = partitionsInfo; +let selectedUserAgentPrefix = ""; +const partition = (value) => { + const { partitions } = selectedPartitionsInfo; + for (const partition of partitions) { + const { regions, outputs } = partition; + for (const [region, regionData] of Object.entries(regions)) { + if (region === value) { + return { + ...outputs, + ...regionData, + }; + } + } + } + for (const partition of partitions) { + const { regionRegex, outputs } = partition; + if (new RegExp(regionRegex).test(value)) { + return { + ...outputs, + }; + } + } + const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws"); + if (!DEFAULT_PARTITION) { + throw new Error("Provided region was not found in the partition array or regex," + + " and default partition with id 'aws' doesn't exist."); + } + return { + ...DEFAULT_PARTITION.outputs, + }; +}; +const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => { + selectedPartitionsInfo = partitionsInfo; + selectedUserAgentPrefix = userAgentPrefix; +}; +const useDefaultPartitionInfo = () => { + setPartitionInfo(partitionsInfo, ""); +}; +const getUserAgentPrefix = () => selectedUserAgentPrefix; + +const ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/; +async function checkFeatures(context, config, args) { + const request = args.request; + if (request?.headers?.["smithy-protocol"] === "rpc-v2-cbor") { + setFeature(context, "PROTOCOL_RPC_V2_CBOR", "M"); + } + if (typeof config.retryStrategy === "function") { + const retryStrategy = await config.retryStrategy(); + if (typeof retryStrategy.mode === "string") { + switch (retryStrategy.mode) { + case RETRY_MODES.ADAPTIVE: + setFeature(context, "RETRY_MODE_ADAPTIVE", "F"); + break; + case RETRY_MODES.STANDARD: + setFeature(context, "RETRY_MODE_STANDARD", "E"); + break; + } + } + } + if (typeof config.accountIdEndpointMode === "function") { + const endpointV2 = context.endpointV2; + if (String(endpointV2?.url?.hostname).match(ACCOUNT_ID_ENDPOINT_REGEX)) { + setFeature(context, "ACCOUNT_ID_ENDPOINT", "O"); + } + switch (await config.accountIdEndpointMode?.()) { + case "disabled": + setFeature(context, "ACCOUNT_ID_MODE_DISABLED", "Q"); + break; + case "preferred": + setFeature(context, "ACCOUNT_ID_MODE_PREFERRED", "P"); + break; + case "required": + setFeature(context, "ACCOUNT_ID_MODE_REQUIRED", "R"); + break; + } + } + const identity = context.__smithy_context?.selectedHttpAuthScheme?.identity; + if (identity?.$source) { + const credentials = identity; + if (credentials.accountId) { + setFeature(context, "RESOLVED_ACCOUNT_ID", "T"); + } + for (const [key, value] of Object.entries(credentials.$source ?? {})) { + setFeature(context, key, value); + } + } +} + +const USER_AGENT = "user-agent"; +const X_AMZ_USER_AGENT = "x-amz-user-agent"; +const SPACE = " "; +const UA_NAME_SEPARATOR = "/"; +const UA_NAME_ESCAPE_REGEX = /[^!$%&'*+\-.^_`|~\w]/g; +const UA_VALUE_ESCAPE_REGEX = /[^!$%&'*+\-.^_`|~\w#]/g; +const UA_ESCAPE_CHAR = "-"; + +const BYTE_LIMIT = 1024; +function encodeFeatures(features) { + let buffer = ""; + for (const key in features) { + const val = features[key]; + if (buffer.length + val.length + 1 <= BYTE_LIMIT) { + if (buffer.length) { + buffer += "," + val; + } + else { + buffer += val; + } + continue; + } + break; + } + return buffer; +} + +const userAgentMiddleware = (options) => (next, context) => async (args) => { + const { request } = args; + if (!HttpRequest.isInstance(request)) { + return next(args); + } + const { headers } = request; + const userAgent = context?.userAgent?.map(escapeUserAgent) || []; + const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); + await checkFeatures(context, options, args); + const awsContext = context; + defaultUserAgent.push(`m/${encodeFeatures(Object.assign({}, context.__smithy_context?.features, awsContext.__aws_sdk_context?.features))}`); + const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || []; + const appId = await options.userAgentAppId(); + if (appId) { + defaultUserAgent.push(escapeUserAgent([`app`, `${appId}`])); + } + const prefix = getUserAgentPrefix(); + const sdkUserAgentValue = (prefix ? [prefix] : []) + .concat([...defaultUserAgent, ...userAgent, ...customUserAgent]) + .join(SPACE); + const normalUAValue = [ + ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), + ...customUserAgent, + ].join(SPACE); + if (options.runtime !== "browser") { + if (normalUAValue) { + headers[X_AMZ_USER_AGENT] = headers[X_AMZ_USER_AGENT] + ? `${headers[USER_AGENT]} ${normalUAValue}` + : normalUAValue; + } + headers[USER_AGENT] = sdkUserAgentValue; + } + else { + headers[X_AMZ_USER_AGENT] = sdkUserAgentValue; + } + return next({ + ...args, + request, + }); +}; +const escapeUserAgent = (userAgentPair) => { + const name = userAgentPair[0] + .split(UA_NAME_SEPARATOR) + .map((part) => part.replace(UA_NAME_ESCAPE_REGEX, UA_ESCAPE_CHAR)) + .join(UA_NAME_SEPARATOR); + const version = userAgentPair[1]?.replace(UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR); + const prefixSeparatorIndex = name.indexOf(UA_NAME_SEPARATOR); + const prefix = name.substring(0, prefixSeparatorIndex); + let uaName = name.substring(prefixSeparatorIndex + 1); + if (prefix === "api") { + uaName = uaName.toLowerCase(); + } + return [prefix, uaName, version] + .filter((item) => item && item.length > 0) + .reduce((acc, item, index) => { + switch (index) { + case 0: + return item; + case 1: + return `${acc}/${item}`; + default: + return `${acc}#${item}`; + } + }, ""); +}; +const getUserAgentMiddlewareOptions = { + name: "getUserAgentMiddleware", + step: "build", + priority: "low", + tags: ["SET_USER_AGENT", "USER_AGENT"], + override: true, +}; +const getUserAgentPlugin = (config) => ({ + applyToStack: (clientStack) => { + clientStack.add(userAgentMiddleware(config), getUserAgentMiddlewareOptions); + }, +}); + +const getRuntimeUserAgentPair = () => { + const runtimesToCheck = ["deno", "bun", "llrt"]; + for (const runtime of runtimesToCheck) { + if (versions[runtime]) { + return [`md/${runtime}`, versions[runtime]]; + } + } + return ["md/nodejs", versions.node]; +}; + +const crtAvailability = { + isCrtAvailable: false, +}; + +const isCrtAvailable = () => { + if (crtAvailability.isCrtAvailable) { + return ["md/crt-avail"]; + } + return null; +}; + +const createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => { + const runtimeUserAgentPair = getRuntimeUserAgentPair(); + return async (config) => { + const sections = [ + ["aws-sdk-js", clientVersion], + ["ua", "2.1"], + [`os/${platform()}`, release()], + ["lang/js"], + runtimeUserAgentPair, + ]; + const crtAvailable = isCrtAvailable(); + if (crtAvailable) { + sections.push(crtAvailable); + } + if (serviceId) { + sections.push([`api/${serviceId}`, clientVersion]); + } + if (env.AWS_EXECUTION_ENV) { + sections.push([`exec-env/${env.AWS_EXECUTION_ENV}`]); + } + const appId = await config?.userAgentAppId?.(); + const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections]; + return resolvedUserAgent; + }; +}; +const defaultUserAgent = createDefaultUserAgentProvider; + +const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; +const UA_APP_ID_INI_NAME = "sdk_ua_app_id"; +const UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id"; +const NODE_APP_ID_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[UA_APP_ID_ENV_NAME], + configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED], + default: DEFAULT_UA_APP_ID, +}; + +const createUserAgentStringParsingProvider = ({ serviceId, clientVersion }) => async (config) => { + const module = __nccwpck_require__(9449); + const parse = module.parse ?? module.default.parse ?? (() => ""); + const parsedUA = typeof window !== "undefined" && window?.navigator?.userAgent ? parse(window.navigator.userAgent) : undefined; + const sections = [ + ["aws-sdk-js", clientVersion], + ["ua", "2.1"], + [`os/${parsedUA?.os?.name || "other"}`, parsedUA?.os?.version], + ["lang/js"], + ["md/browser", `${parsedUA?.browser?.name ?? "unknown"}_${parsedUA?.browser?.version ?? "unknown"}`], + ]; + if (serviceId) { + sections.push([`api/${serviceId}`, clientVersion]); + } + const appId = await config?.userAgentAppId?.(); + if (appId) { + sections.push([`app/${appId}`]); + } + return sections; +}; + +const fallback = { + os(ua) { + if (/iPhone|iPad|iPod/.test(ua)) + return "iOS"; + if (/Macintosh|Mac OS X/.test(ua)) + return "macOS"; + if (/Windows NT/.test(ua)) + return "Windows"; + if (/Android/.test(ua)) + return "Android"; + if (/Linux/.test(ua)) + return "Linux"; + return undefined; + }, + browser(ua) { + if (/EdgiOS|EdgA|Edg\//.test(ua)) + return "Microsoft Edge"; + if (/Firefox\//.test(ua)) + return "Firefox"; + if (/Chrome\//.test(ua)) + return "Chrome"; + if (/Safari\//.test(ua)) + return "Safari"; + return undefined; + }, +}; + +const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => { + if (allowSubDomains) { + for (const label of value.split(".")) { + if (!isVirtualHostableS3Bucket(label)) { + return false; + } + } + return true; + } + if (!isValidHostLabel(value)) { + return false; + } + if (value.length < 3 || value.length > 63) { + return false; + } + if (value !== value.toLowerCase()) { + return false; + } + if (isIpAddress(value)) { + return false; + } + return true; +}; + +const ARN_DELIMITER = ":"; +const RESOURCE_DELIMITER = "/"; +const parseArn = (value) => { + const segments = value.split(ARN_DELIMITER); + if (segments.length < 6) + return null; + const [arn, partition, service, region, accountId, ...resourcePath] = segments; + if (arn !== "arn" || partition === "" || service === "" || resourcePath.join(ARN_DELIMITER) === "") + return null; + const resourceId = resourcePath.map((resource) => resource.split(RESOURCE_DELIMITER)).flat(); + return { + partition, + service, + region, + accountId, + resourceId, + }; +}; + +const awsEndpointFunctions = { + isVirtualHostableS3Bucket: isVirtualHostableS3Bucket, + parseArn: parseArn, + partition: partition, +}; +customEndpointFunctions.aws = awsEndpointFunctions; + +const resolveDefaultAwsRegionalEndpointsConfig = (input) => { + if (typeof input.endpointProvider !== "function") { + throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client."); + } + const { endpoint } = input; + if (endpoint === undefined) { + input.endpoint = async () => { + return toEndpointV1(input.endpointProvider({ + Region: typeof input.region === "function" ? await input.region() : input.region, + UseDualStack: typeof input.useDualstackEndpoint === "function" + ? await input.useDualstackEndpoint() + : input.useDualstackEndpoint, + UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint, + Endpoint: undefined, + }, { logger: input.logger })); + }; + } + return input; +}; +const toEndpointV1 = (endpoint) => parseUrl(endpoint.url); + +function stsRegionDefaultResolver(loaderConfig = {}) { + return loadConfig({ + ...NODE_REGION_CONFIG_OPTIONS, + async default() { + if (!warning.silence) { + console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly."); + } + return "us-east-1"; + }, + }, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }); +} +const warning = { + silence: false, +}; + +const getAwsRegionExtensionConfiguration = (runtimeConfig) => { + return { + setRegion(region) { + runtimeConfig.region = region; + }, + region() { + return runtimeConfig.region; + }, + }; +}; +const resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) => { + return { + region: awsRegionExtensionConfiguration.region(), + }; +}; + +exports.DEFAULT_UA_APP_ID = DEFAULT_UA_APP_ID; +exports.NODE_APP_ID_CONFIG_OPTIONS = NODE_APP_ID_CONFIG_OPTIONS; +exports.UA_APP_ID_ENV_NAME = UA_APP_ID_ENV_NAME; +exports.UA_APP_ID_INI_NAME = UA_APP_ID_INI_NAME; +exports.awsEndpointFunctions = awsEndpointFunctions; +exports.createDefaultUserAgentProvider = createDefaultUserAgentProvider; +exports.createUserAgentStringParsingProvider = createUserAgentStringParsingProvider; +exports.crtAvailability = crtAvailability; +exports.defaultUserAgent = defaultUserAgent; +exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion; +exports.fallback = fallback; +exports.getAwsRegionExtensionConfiguration = getAwsRegionExtensionConfiguration; +exports.getHostHeaderPlugin = getHostHeaderPlugin; +exports.getLoggerPlugin = getLoggerPlugin; +exports.getLongPollPlugin = getLongPollPlugin; +exports.getRecursionDetectionPlugin = getRecursionDetectionPlugin; +exports.getUserAgentMiddlewareOptions = getUserAgentMiddlewareOptions; +exports.getUserAgentPlugin = getUserAgentPlugin; +exports.getUserAgentPrefix = getUserAgentPrefix; +exports.hostHeaderMiddleware = hostHeaderMiddleware; +exports.hostHeaderMiddlewareOptions = hostHeaderMiddlewareOptions; +exports.isVirtualHostableS3Bucket = isVirtualHostableS3Bucket; +exports.loggerMiddleware = loggerMiddleware; +exports.loggerMiddlewareOptions = loggerMiddlewareOptions; +exports.parseArn = parseArn; +exports.partition = partition; +exports.recursionDetectionMiddleware = recursionDetectionMiddleware; +exports.recursionDetectionMiddlewareOptions = recursionDetectionMiddlewareOptions; +exports.resolveAwsRegionExtensionConfiguration = resolveAwsRegionExtensionConfiguration; +exports.resolveDefaultAwsRegionalEndpointsConfig = resolveDefaultAwsRegionalEndpointsConfig; +exports.resolveHostHeaderConfig = resolveHostHeaderConfig; +exports.resolveUserAgentConfig = resolveUserAgentConfig; +exports.setCredentialFeature = setCredentialFeature; +exports.setFeature = setFeature; +exports.setPartitionInfo = setPartitionInfo; +exports.setTokenFeature = setTokenFeature; +exports.state = state; +exports.stsRegionDefaultResolver = stsRegionDefaultResolver; +exports.stsRegionWarning = warning; +exports.toEndpointV1 = toEndpointV1; +exports.useDefaultPartitionInfo = useDefaultPartitionInfo; +exports.userAgentMiddleware = userAgentMiddleware; + + +/***/ }), + +/***/ 97523: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { HttpResponse, HttpRequest } = __nccwpck_require__(93422); +const { normalizeProvider, memoizeIdentityProvider, isIdentityExpired, doesIdentityRequireRefresh } = __nccwpck_require__(90402); +const { ProviderError } = __nccwpck_require__(47291); +const { setCredentialFeature } = __nccwpck_require__(5152); +const { SignatureV4 } = __nccwpck_require__(75118); + +const getDateHeader = (response) => HttpResponse.isInstance(response) ? (response.headers?.date ?? response.headers?.Date) : undefined; + +const getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset); + +const isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 300000; + +const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => { + const clockTimeInMs = Date.parse(clockTime); + if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) { + return clockTimeInMs - Date.now(); + } + return currentSystemClockOffset; +}; + +const throwSigningPropertyError = (name, property) => { + if (!property) { + throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`); + } + return property; +}; +const validateSigningProperties = async (signingProperties) => { + const context = throwSigningPropertyError("context", signingProperties.context); + const config = throwSigningPropertyError("config", signingProperties.config); + const authScheme = context.endpointV2?.properties?.authSchemes?.[0]; + const signerFunction = throwSigningPropertyError("signer", config.signer); + const signer = await signerFunction(authScheme); + const signingRegion = signingProperties?.signingRegion; + const signingRegionSet = signingProperties?.signingRegionSet; + const signingName = signingProperties?.signingName; + return { + config, + signer, + signingRegion, + signingRegionSet, + signingName, + }; +}; +class AwsSdkSigV4Signer { + async sign(httpRequest, identity, signingProperties) { + if (!HttpRequest.isInstance(httpRequest)) { + throw new Error("The request is not an instance of `HttpRequest` and cannot be signed"); + } + const validatedProps = await validateSigningProperties(signingProperties); + const { config, signer } = validatedProps; + let { signingRegion, signingName } = validatedProps; + const handlerExecutionContext = signingProperties.context; + if (handlerExecutionContext?.authSchemes?.length ?? 0 > 1) { + const [first, second] = handlerExecutionContext.authSchemes; + if (first?.name === "sigv4a" && second?.name === "sigv4") { + signingRegion = second?.signingRegion ?? signingRegion; + signingName = second?.signingName ?? signingName; + } + } + signingProperties._preRequestSystemClockOffset = config.systemClockOffset; + const signedRequest = await signer.sign(httpRequest, { + signingDate: getSkewCorrectedDate(config.systemClockOffset), + signingRegion: signingRegion, + signingService: signingName, + }); + return signedRequest; + } + errorHandler(signingProperties) { + return (error) => { + const errorException = error; + const serverTime = errorException.ServerTime ?? getDateHeader(errorException.$response); + if (serverTime) { + const config = throwSigningPropertyError("config", signingProperties.config); + const preRequestOffset = signingProperties._preRequestSystemClockOffset; + const newOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset); + const isLocalCorrection = newOffset !== config.systemClockOffset; + const isConcurrentCorrection = preRequestOffset !== undefined && preRequestOffset !== newOffset; + const clockSkewCorrected = isLocalCorrection || isConcurrentCorrection; + if (clockSkewCorrected && errorException.$metadata) { + config.systemClockOffset = newOffset; + errorException.$metadata.clockSkewCorrected = true; + } + } + throw error; + }; + } + successHandler(httpResponse, signingProperties) { + const dateHeader = getDateHeader(httpResponse); + if (dateHeader) { + const config = throwSigningPropertyError("config", signingProperties.config); + config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset); + } + } +} +const AWSSDKSigV4Signer = AwsSdkSigV4Signer; + +class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer { + async sign(httpRequest, identity, signingProperties) { + if (!HttpRequest.isInstance(httpRequest)) { + throw new Error("The request is not an instance of `HttpRequest` and cannot be signed"); + } + const { config, signer, signingRegion, signingRegionSet, signingName } = await validateSigningProperties(signingProperties); + const configResolvedSigningRegionSet = await config.sigv4aSigningRegionSet?.(); + const multiRegionOverride = (configResolvedSigningRegionSet ?? + signingRegionSet ?? [signingRegion]).join(","); + signingProperties._preRequestSystemClockOffset = config.systemClockOffset; + const signedRequest = await signer.sign(httpRequest, { + signingDate: getSkewCorrectedDate(config.systemClockOffset), + signingRegion: multiRegionOverride, + signingService: signingName, + }); + return signedRequest; + } +} + +const getArrayForCommaSeparatedString = (str) => typeof str === "string" && str.length > 0 ? str.split(",").map((item) => item.trim()) : []; + +const getBearerTokenEnvKey = (signingName) => `AWS_BEARER_TOKEN_${signingName.replace(/[\s-]/g, "_").toUpperCase()}`; + +const NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = "AWS_AUTH_SCHEME_PREFERENCE"; +const NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = "auth_scheme_preference"; +const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = { + environmentVariableSelector: (env, options) => { + if (options?.signingName) { + const bearerTokenKey = getBearerTokenEnvKey(options.signingName); + if (bearerTokenKey in env) + return ["httpBearerAuth"]; + } + if (!(NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY in env)) + return undefined; + return getArrayForCommaSeparatedString(env[NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY]); + }, + configFileSelector: (profile) => { + if (!(NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY in profile)) + return undefined; + return getArrayForCommaSeparatedString(profile[NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY]); + }, + default: [], +}; + +const resolveAwsSdkSigV4AConfig = (config) => { + config.sigv4aSigningRegionSet = normalizeProvider(config.sigv4aSigningRegionSet); + return config; +}; +const NODE_SIGV4A_CONFIG_OPTIONS = { + environmentVariableSelector(env) { + if (env.AWS_SIGV4A_SIGNING_REGION_SET) { + return env.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_) => _.trim()); + } + throw new ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.", { + tryNextLink: true, + }); + }, + configFileSelector(profile) { + if (profile.sigv4a_signing_region_set) { + return (profile.sigv4a_signing_region_set ?? "").split(",").map((_) => _.trim()); + } + throw new ProviderError("sigv4a_signing_region_set not set in profile.", { + tryNextLink: true, + }); + }, + default: undefined, +}; + +const resolveAwsSdkSigV4Config = (config) => { + let inputCredentials = config.credentials; + let isUserSupplied = !!config.credentials; + let resolvedCredentials = undefined; + Object.defineProperty(config, "credentials", { + set(credentials) { + if (credentials && credentials !== inputCredentials && credentials !== resolvedCredentials) { + isUserSupplied = true; + } + inputCredentials = credentials; + const memoizedProvider = normalizeCredentialProvider(config, { + credentials: inputCredentials, + credentialDefaultProvider: config.credentialDefaultProvider, + }); + const boundProvider = bindCallerConfig(config, memoizedProvider); + if (isUserSupplied && !boundProvider.attributed) { + const isCredentialObject = typeof inputCredentials === "object" && inputCredentials !== null; + resolvedCredentials = async (options) => { + const creds = await boundProvider(options); + const attributedCreds = creds; + if (isCredentialObject && (!attributedCreds.$source || Object.keys(attributedCreds.$source).length === 0)) { + return setCredentialFeature(attributedCreds, "CREDENTIALS_CODE", "e"); + } + return attributedCreds; + }; + resolvedCredentials.memoized = boundProvider.memoized; + resolvedCredentials.configBound = boundProvider.configBound; + resolvedCredentials.attributed = true; + } + else { + resolvedCredentials = boundProvider; + } + }, + get() { + return resolvedCredentials; + }, + enumerable: true, + configurable: true, + }); + config.credentials = inputCredentials; + const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256, } = config; + let signer; + if (config.signer) { + signer = normalizeProvider(config.signer); + } + else if (config.regionInfoProvider) { + signer = () => normalizeProvider(config.region)() + .then(async (region) => [ + (await config.regionInfoProvider(region, { + useFipsEndpoint: await config.useFipsEndpoint(), + useDualstackEndpoint: await config.useDualstackEndpoint(), + })) || {}, + region, + ]) + .then(([regionInfo, region]) => { + const { signingRegion, signingService } = regionInfo; + config.signingRegion = config.signingRegion || signingRegion || region; + config.signingName = config.signingName || signingService || config.serviceId; + const params = { + ...config, + credentials: config.credentials, + region: config.signingRegion, + service: config.signingName, + sha256, + uriEscapePath: signingEscapePath, + }; + const SignerCtor = config.signerConstructor || SignatureV4; + return new SignerCtor(params); + }); + } + else { + signer = async (authScheme) => { + authScheme = Object.assign({}, { + name: "sigv4", + signingName: config.signingName || config.defaultSigningName, + signingRegion: await normalizeProvider(config.region)(), + properties: {}, + }, authScheme); + const signingRegion = authScheme.signingRegion; + const signingService = authScheme.signingName; + config.signingRegion = config.signingRegion || signingRegion; + config.signingName = config.signingName || signingService || config.serviceId; + const params = { + ...config, + credentials: config.credentials, + region: config.signingRegion, + service: config.signingName, + sha256, + uriEscapePath: signingEscapePath, + }; + const SignerCtor = config.signerConstructor || SignatureV4; + return new SignerCtor(params); + }; + } + const resolvedConfig = Object.assign(config, { + systemClockOffset, + signingEscapePath, + signer, + }); + return resolvedConfig; +}; +const resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config; +function normalizeCredentialProvider(config, { credentials, credentialDefaultProvider, }) { + let credentialsProvider; + if (credentials) { + if (!credentials?.memoized) { + credentialsProvider = memoizeIdentityProvider(credentials, isIdentityExpired, doesIdentityRequireRefresh); + } + else { + credentialsProvider = credentials; + } + } + else { + if (credentialDefaultProvider) { + credentialsProvider = normalizeProvider(credentialDefaultProvider(Object.assign({}, config, { + parentClientConfig: config, + }))); + } + else { + credentialsProvider = async () => { + throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured."); + }; + } + } + credentialsProvider.memoized = true; + return credentialsProvider; +} +function bindCallerConfig(config, credentialsProvider) { + if (credentialsProvider.configBound) { + return credentialsProvider; + } + const fn = async (options) => credentialsProvider({ ...options, callerClientConfig: config }); + fn.memoized = credentialsProvider.memoized; + fn.configBound = true; + return fn; +} + +exports.AWSSDKSigV4Signer = AWSSDKSigV4Signer; +exports.AwsSdkSigV4ASigner = AwsSdkSigV4ASigner; +exports.AwsSdkSigV4Signer = AwsSdkSigV4Signer; +exports.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = NODE_AUTH_SCHEME_PREFERENCE_OPTIONS; +exports.NODE_SIGV4A_CONFIG_OPTIONS = NODE_SIGV4A_CONFIG_OPTIONS; +exports.getBearerTokenEnvKey = getBearerTokenEnvKey; +exports.resolveAWSSDKSigV4Config = resolveAWSSDKSigV4Config; +exports.resolveAwsSdkSigV4AConfig = resolveAwsSdkSigV4AConfig; +exports.resolveAwsSdkSigV4Config = resolveAwsSdkSigV4Config; +exports.validateSigningProperties = validateSigningProperties; + + +/***/ }), + +/***/ 37288: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { SmithyRpcV2CborProtocol, loadSmithyRpcV2CborErrorCode } = __nccwpck_require__(64645); +const { TypeRegistry, NormalizedSchema, deref } = __nccwpck_require__(26890); +const { decorateServiceException, getValueFromTextNode } = __nccwpck_require__(92658); +const { collectBody, determineTimestampFormat, RpcProtocol, HttpBindingProtocol, HttpInterceptingShapeSerializer, HttpInterceptingShapeDeserializer, FromStringShapeDeserializer, extendedEncodeURIComponent } = __nccwpck_require__(93422); +const { NumericValue, toUtf8, fromBase64, LazyJsonString, parseEpochTimestamp, parseRfc7231DateTime, parseRfc3339DateTimeWithOffset, toBase64, dateToUtcString, generateIdempotencyToken, expectUnion } = __nccwpck_require__(92430); +const { parseXML, XmlNode, XmlText } = __nccwpck_require__(94274); + +class ProtocolLib { + queryCompat; + errorRegistry; + constructor(queryCompat = false) { + this.queryCompat = queryCompat; + } + resolveRestContentType(defaultContentType, inputSchema) { + const members = inputSchema.getMemberSchemas(); + const httpPayloadMember = Object.values(members).find((m) => { + return !!m.getMergedTraits().httpPayload; + }); + if (httpPayloadMember) { + const mediaType = httpPayloadMember.getMergedTraits().mediaType; + if (mediaType) { + return mediaType; + } + else if (httpPayloadMember.isStringSchema()) { + return "text/plain"; + } + else if (httpPayloadMember.isBlobSchema()) { + return "application/octet-stream"; + } + else { + return defaultContentType; + } + } + else if (!inputSchema.isUnitSchema()) { + const hasBody = Object.values(members).find((m) => { + const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits(); + const noPrefixHeaders = httpPrefixHeaders === void 0; + return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && noPrefixHeaders; + }); + if (hasBody) { + return defaultContentType; + } + } + } + async getErrorSchemaOrThrowBaseException(errorIdentifier, defaultNamespace, response, dataObject, metadata, getErrorSchema) { + let errorName = errorIdentifier; + if (errorIdentifier.includes("#")) { + [, errorName] = errorIdentifier.split("#"); + } + const errorMetadata = { + $metadata: metadata, + $fault: response.statusCode < 500 ? "client" : "server", + }; + if (!this.errorRegistry) { + throw new Error("@aws-sdk/core/protocols - error handler not initialized."); + } + try { + const errorSchema = getErrorSchema?.(this.errorRegistry, errorName) ?? + this.errorRegistry.getSchema(errorIdentifier); + return { errorSchema, errorMetadata }; + } + catch (e) { + dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError"; + const synthetic = this.errorRegistry; + const baseExceptionSchema = synthetic.getBaseException(); + if (baseExceptionSchema) { + const ErrorCtor = synthetic.getErrorCtor(baseExceptionSchema) ?? Error; + throw this.decorateServiceException(Object.assign(new ErrorCtor({ name: errorName }), errorMetadata), dataObject); + } + const d = dataObject; + const message = d?.message ?? d?.Message ?? d?.Error?.Message ?? d?.Error?.message; + throw this.decorateServiceException(Object.assign(new Error(message), { + name: errorName, + }, errorMetadata), dataObject); + } + } + compose(composite, errorIdentifier, defaultNamespace) { + let namespace = defaultNamespace; + if (errorIdentifier.includes("#")) { + [namespace] = errorIdentifier.split("#"); + } + const staticRegistry = TypeRegistry.for(namespace); + const defaultSyntheticRegistry = TypeRegistry.for("smithy.ts.sdk.synthetic." + defaultNamespace); + composite.copyFrom(staticRegistry); + composite.copyFrom(defaultSyntheticRegistry); + this.errorRegistry = composite; + } + decorateServiceException(exception, additions = {}) { + if (this.queryCompat) { + const msg = exception.Message ?? additions.Message; + const error = decorateServiceException(exception, additions); + if (msg) { + error.message = msg; + } + const errorObj = error.Error ?? {}; + errorObj.Type = error.Error?.Type; + errorObj.Code = error.Error?.Code; + errorObj.Message = error.Error?.message ?? error.Error?.Message ?? msg; + error.Error = errorObj; + const reqId = error.$metadata.requestId; + if (reqId) { + error.RequestId = reqId; + } + return error; + } + return decorateServiceException(exception, additions); + } + setQueryCompatError(output, response) { + const queryErrorHeader = response.headers?.["x-amzn-query-error"]; + if (output !== undefined && queryErrorHeader != null) { + const [Code, Type] = queryErrorHeader.split(";"); + const keys = Object.keys(output); + const Error = { + Code, + Type, + }; + output.Code = Code; + output.Type = Type; + for (let i = 0; i < keys.length; i++) { + const k = keys[i]; + Error[k === "message" ? "Message" : k] = output[k]; + } + delete Error.__type; + output.Error = Error; + } + } + queryCompatOutput(queryCompatErrorData, errorData) { + if (queryCompatErrorData.Error) { + errorData.Error = queryCompatErrorData.Error; + } + if (queryCompatErrorData.Type) { + errorData.Type = queryCompatErrorData.Type; + } + if (queryCompatErrorData.Code) { + errorData.Code = queryCompatErrorData.Code; + } + } + findQueryCompatibleError(registry, errorName) { + try { + return registry.getSchema(errorName); + } + catch (e) { + return registry.find((schema) => NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName); + } + } +} + +class AwsSmithyRpcV2CborProtocol extends SmithyRpcV2CborProtocol { + awsQueryCompatible; + mixin; + constructor({ defaultNamespace, errorTypeRegistries, awsQueryCompatible, }) { + super({ defaultNamespace, errorTypeRegistries }); + this.awsQueryCompatible = !!awsQueryCompatible; + this.mixin = new ProtocolLib(this.awsQueryCompatible); + } + async serializeRequest(operationSchema, input, context) { + const request = await super.serializeRequest(operationSchema, input, context); + if (this.awsQueryCompatible) { + request.headers["x-amzn-query-mode"] = "true"; + } + return request; + } + async handleError(operationSchema, context, response, dataObject, metadata) { + if (this.awsQueryCompatible) { + this.mixin.setQueryCompatError(dataObject, response); + } + const errorName = (() => { + const compatHeader = response.headers["x-amzn-query-error"]; + if (compatHeader && this.awsQueryCompatible) { + return compatHeader.split(";")[0]; + } + return loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown"; + })(); + this.mixin.compose(this.compositeErrorRegistry, errorName, this.options.defaultNamespace); + const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined); + const ns = NormalizedSchema.of(errorSchema); + const message = dataObject.message ?? dataObject.Message ?? "UnknownError"; + const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error; + const exception = new ErrorCtor({}); + const output = {}; + for (const [name, member] of ns.structIterator()) { + if (dataObject[name] != null) { + output[name] = this.deserializer.readValue(member, dataObject[name]); + } + } + if (this.awsQueryCompatible) { + this.mixin.queryCompatOutput(dataObject, output); + } + throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, { + $fault: ns.getMergedTraits().error, + message, + }, output), dataObject); + } +} + +const _toStr = (val) => { + if (val == null) { + return val; + } + if (typeof val === "number" || typeof val === "bigint") { + const warning = new Error(`Received number ${val} where a string was expected.`); + warning.name = "Warning"; + console.warn(warning); + return String(val); + } + if (typeof val === "boolean") { + const warning = new Error(`Received boolean ${val} where a string was expected.`); + warning.name = "Warning"; + console.warn(warning); + return String(val); + } + return val; +}; +const _toBool = (val) => { + if (val == null) { + return val; + } + if (typeof val === "string") { + const lowercase = val.toLowerCase(); + if (val !== "" && lowercase !== "false" && lowercase !== "true") { + const warning = new Error(`Received string "${val}" where a boolean was expected.`); + warning.name = "Warning"; + console.warn(warning); + } + return val !== "" && lowercase !== "false"; + } + return val; +}; +const _toNum = (val) => { + if (val == null) { + return val; + } + if (typeof val === "string") { + const num = Number(val); + if (num.toString() !== val) { + const warning = new Error(`Received string "${val}" where a number was expected.`); + warning.name = "Warning"; + console.warn(warning); + return val; + } + return num; + } + return val; +}; + +class SerdeContextConfig { + serdeContext; + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + } +} + +class UnionSerde { + from; + to; + keys; + constructor(from, to) { + this.from = from; + this.to = to; + const keys = Object.keys(this.from); + const set = new Set(keys); + set.delete("__type"); + this.keys = set; + } + mark(key) { + this.keys.delete(key); + } + hasUnknown() { + return this.keys.size === 1 && Object.keys(this.to).length === 0; + } + writeUnknown() { + if (this.hasUnknown()) { + const k = this.keys.values().next().value; + const v = this.from[k]; + this.to.$unknown = [k, v]; + } + } +} + +function jsonReviver(key, value, context) { + if (context?.source) { + const numericString = context.source; + if (typeof value === "number") { + if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) { + const isFractional = numericString.includes("."); + if (isFractional) { + return new NumericValue(numericString, "bigDecimal"); + } + else { + return BigInt(numericString); + } + } + } + } + return value; +} + +const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? toUtf8)(body)); + +const parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + try { + return JSON.parse(encoded); + } + catch (e) { + if (e?.name === "SyntaxError") { + Object.defineProperty(e, "$responseBodyText", { + value: encoded, + }); + } + throw e; + } + } + return {}; +}); +const parseJsonErrorBody = async (errorBody, context) => { + const value = await parseJsonBody(errorBody, context); + value.message = value.message ?? value.Message; + return value; +}; +const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); +const sanitizeErrorCode = (rawValue) => { + let cleanValue = rawValue; + if (typeof cleanValue === "number") { + cleanValue = cleanValue.toString(); + } + if (cleanValue.indexOf(",") >= 0) { + cleanValue = cleanValue.split(",")[0]; + } + if (cleanValue.indexOf(":") >= 0) { + cleanValue = cleanValue.split(":")[0]; + } + if (cleanValue.indexOf("#") >= 0) { + cleanValue = cleanValue.split("#")[1]; + } + return cleanValue; +}; +const loadRestJsonErrorCode = (output, data) => { + return loadErrorCode(output, data, ["header", "code", "type"]); +}; +const loadJsonRpcErrorCode = (output, data, queryCompat = false) => { + return loadErrorCode(output, data, queryCompat ? ["code", "header", "type"] : ["type", "code", "header"]); +}; +const loadErrorCode = ({ headers }, data, order) => { + while (order.length > 0) { + const location = order.shift(); + switch (location) { + case "header": + const headerKey = findKey(headers ?? {}, "x-amzn-errortype"); + if (headerKey !== undefined) { + return sanitizeErrorCode(headers[headerKey]); + } + break; + case "code": + const codeKey = findKey(data ?? {}, "code"); + if (codeKey && data[codeKey] !== undefined) { + return sanitizeErrorCode(data[codeKey]); + } + break; + case "type": + if (data?.__type !== undefined) { + return sanitizeErrorCode(data.__type); + } + break; + } + } +}; + +class JsonShapeDeserializer extends SerdeContextConfig { + settings; + constructor(settings) { + super(); + this.settings = settings; + } + async read(schema, data) { + return this._read(schema, typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext)); + } + readObject(schema, data) { + return this._read(schema, data); + } + _read(schema, value) { + const isObject = value !== null && typeof value === "object"; + const ns = NormalizedSchema.of(schema); + if (isObject) { + if (ns.isStructSchema()) { + const record = value; + const union = ns.isUnionSchema(); + const out = {}; + let nameMap = void 0; + const { jsonName } = this.settings; + if (jsonName) { + nameMap = {}; + } + let unionSerde; + if (union) { + unionSerde = new UnionSerde(record, out); + } + for (const [memberName, memberSchema] of ns.structIterator()) { + let fromKey = memberName; + if (jsonName) { + fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey; + nameMap[fromKey] = memberName; + } + if (union) { + unionSerde.mark(fromKey); + } + if (record[fromKey] != null) { + out[memberName] = this._read(memberSchema, record[fromKey]); + } + } + if (union) { + unionSerde.writeUnknown(); + } + else if (typeof record.__type === "string") { + for (const k in record) { + const v = record[k]; + const t = jsonName ? (nameMap[k] ?? k) : k; + if (!(t in out)) { + out[t] = v; } - - /** - * GenerateAccessTokenRequest name. - * @member {string} name - * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest - * @instance - */ - GenerateAccessTokenRequest.prototype.name = ""; - - /** - * GenerateAccessTokenRequest delegates. - * @member {Array.} delegates - * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest - * @instance - */ - GenerateAccessTokenRequest.prototype.delegates = $util.emptyArray; - - /** - * GenerateAccessTokenRequest scope. - * @member {Array.} scope - * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest - * @instance - */ - GenerateAccessTokenRequest.prototype.scope = $util.emptyArray; - - /** - * GenerateAccessTokenRequest lifetime. - * @member {google.protobuf.IDuration|null|undefined} lifetime - * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest - * @instance - */ - GenerateAccessTokenRequest.prototype.lifetime = null; - - /** - * Creates a new GenerateAccessTokenRequest instance using the specified properties. - * @function create - * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest - * @static - * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest=} [properties] Properties to set - * @returns {google.iam.credentials.v1.GenerateAccessTokenRequest} GenerateAccessTokenRequest instance - */ - GenerateAccessTokenRequest.create = function create(properties) { - return new GenerateAccessTokenRequest(properties); - }; - - /** - * Encodes the specified GenerateAccessTokenRequest message. Does not implicitly {@link google.iam.credentials.v1.GenerateAccessTokenRequest.verify|verify} messages. - * @function encode - * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest - * @static - * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest} message GenerateAccessTokenRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenerateAccessTokenRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.delegates != null && message.delegates.length) - for (var i = 0; i < message.delegates.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.delegates[i]); - if (message.scope != null && message.scope.length) - for (var i = 0; i < message.scope.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.scope[i]); - if (message.lifetime != null && Object.hasOwnProperty.call(message, "lifetime")) - $root.google.protobuf.Duration.encode(message.lifetime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GenerateAccessTokenRequest message, length delimited. Does not implicitly {@link google.iam.credentials.v1.GenerateAccessTokenRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest - * @static - * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest} message GenerateAccessTokenRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenerateAccessTokenRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GenerateAccessTokenRequest message from the specified reader or buffer. - * @function decode - * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.iam.credentials.v1.GenerateAccessTokenRequest} GenerateAccessTokenRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenerateAccessTokenRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.GenerateAccessTokenRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - if (!(message.delegates && message.delegates.length)) - message.delegates = []; - message.delegates.push(reader.string()); - break; - } - case 4: { - if (!(message.scope && message.scope.length)) - message.scope = []; - message.scope.push(reader.string()); - break; - } - case 7: { - message.lifetime = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GenerateAccessTokenRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.iam.credentials.v1.GenerateAccessTokenRequest} GenerateAccessTokenRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenerateAccessTokenRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GenerateAccessTokenRequest message. - * @function verify - * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GenerateAccessTokenRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.delegates != null && message.hasOwnProperty("delegates")) { - if (!Array.isArray(message.delegates)) - return "delegates: array expected"; - for (var i = 0; i < message.delegates.length; ++i) - if (!$util.isString(message.delegates[i])) - return "delegates: string[] expected"; - } - if (message.scope != null && message.hasOwnProperty("scope")) { - if (!Array.isArray(message.scope)) - return "scope: array expected"; - for (var i = 0; i < message.scope.length; ++i) - if (!$util.isString(message.scope[i])) - return "scope: string[] expected"; - } - if (message.lifetime != null && message.hasOwnProperty("lifetime")) { - var error = $root.google.protobuf.Duration.verify(message.lifetime); - if (error) - return "lifetime." + error; - } - return null; - }; - - /** - * Creates a GenerateAccessTokenRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest - * @static - * @param {Object.} object Plain object - * @returns {google.iam.credentials.v1.GenerateAccessTokenRequest} GenerateAccessTokenRequest - */ - GenerateAccessTokenRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.iam.credentials.v1.GenerateAccessTokenRequest) - return object; - var message = new $root.google.iam.credentials.v1.GenerateAccessTokenRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.delegates) { - if (!Array.isArray(object.delegates)) - throw TypeError(".google.iam.credentials.v1.GenerateAccessTokenRequest.delegates: array expected"); - message.delegates = []; - for (var i = 0; i < object.delegates.length; ++i) - message.delegates[i] = String(object.delegates[i]); - } - if (object.scope) { - if (!Array.isArray(object.scope)) - throw TypeError(".google.iam.credentials.v1.GenerateAccessTokenRequest.scope: array expected"); - message.scope = []; - for (var i = 0; i < object.scope.length; ++i) - message.scope[i] = String(object.scope[i]); - } - if (object.lifetime != null) { - if (typeof object.lifetime !== "object") - throw TypeError(".google.iam.credentials.v1.GenerateAccessTokenRequest.lifetime: object expected"); - message.lifetime = $root.google.protobuf.Duration.fromObject(object.lifetime); - } - return message; - }; - - /** - * Creates a plain object from a GenerateAccessTokenRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest - * @static - * @param {google.iam.credentials.v1.GenerateAccessTokenRequest} message GenerateAccessTokenRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GenerateAccessTokenRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.delegates = []; - object.scope = []; - } - if (options.defaults) { - object.name = ""; - object.lifetime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.delegates && message.delegates.length) { - object.delegates = []; - for (var j = 0; j < message.delegates.length; ++j) - object.delegates[j] = message.delegates[j]; - } - if (message.scope && message.scope.length) { - object.scope = []; - for (var j = 0; j < message.scope.length; ++j) - object.scope[j] = message.scope[j]; - } - if (message.lifetime != null && message.hasOwnProperty("lifetime")) - object.lifetime = $root.google.protobuf.Duration.toObject(message.lifetime, options); - return object; - }; - - /** - * Converts this GenerateAccessTokenRequest to JSON. - * @function toJSON - * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest - * @instance - * @returns {Object.} JSON object - */ - GenerateAccessTokenRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GenerateAccessTokenRequest - * @function getTypeUrl - * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GenerateAccessTokenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.iam.credentials.v1.GenerateAccessTokenRequest"; - }; - - return GenerateAccessTokenRequest; - })(); - - v1.GenerateAccessTokenResponse = (function() { - - /** - * Properties of a GenerateAccessTokenResponse. - * @memberof google.iam.credentials.v1 - * @interface IGenerateAccessTokenResponse - * @property {string|null} [accessToken] GenerateAccessTokenResponse accessToken - * @property {google.protobuf.ITimestamp|null} [expireTime] GenerateAccessTokenResponse expireTime - */ - - /** - * Constructs a new GenerateAccessTokenResponse. - * @memberof google.iam.credentials.v1 - * @classdesc Represents a GenerateAccessTokenResponse. - * @implements IGenerateAccessTokenResponse - * @constructor - * @param {google.iam.credentials.v1.IGenerateAccessTokenResponse=} [properties] Properties to set - */ - function GenerateAccessTokenResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + } + } + return out; + } + if (Array.isArray(value) && ns.isListSchema()) { + const listMember = ns.getValueSchema(); + const out = []; + for (const item of value) { + out.push(this._read(listMember, item)); + } + return out; + } + if (ns.isMapSchema()) { + const mapMember = ns.getValueSchema(); + const out = {}; + for (const _k in value) { + out[_k] = this._read(mapMember, value[_k]); + } + return out; + } + } + if (ns.isBlobSchema() && typeof value === "string") { + return fromBase64(value); + } + const mediaType = ns.getMergedTraits().mediaType; + if (ns.isStringSchema() && typeof value === "string" && mediaType) { + const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); + if (isJson) { + return LazyJsonString.from(value); + } + return value; + } + if (ns.isTimestampSchema() && value != null) { + const format = determineTimestampFormat(ns, this.settings); + switch (format) { + case 5: + return parseRfc3339DateTimeWithOffset(value); + case 6: + return parseRfc7231DateTime(value); + case 7: + return parseEpochTimestamp(value); + default: + console.warn("Missing timestamp format, parsing value with Date constructor:", value); + return new Date(value); + } + } + if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) { + return BigInt(value); + } + if (ns.isBigDecimalSchema() && value != undefined) { + if (value instanceof NumericValue) { + return value; + } + const untyped = value; + if (untyped.type === "bigDecimal" && "string" in untyped) { + return new NumericValue(untyped.string, untyped.type); + } + return new NumericValue(String(value), "bigDecimal"); + } + if (ns.isNumericSchema() && typeof value === "string") { + switch (value) { + case "Infinity": + return Infinity; + case "-Infinity": + return -Infinity; + case "NaN": + return NaN; + } + return value; + } + if (ns.isDocumentSchema()) { + if (isObject) { + const out = Array.isArray(value) ? [] : {}; + for (const k in value) { + const v = value[k]; + if (v instanceof NumericValue) { + out[k] = v; + } + else { + out[k] = this._read(ns, v); + } + } + return out; + } + else { + return structuredClone(value); + } + } + return value; + } +} + +const NUMERIC_CONTROL_CHAR = String.fromCharCode(925); +class JsonReplacer { + values = new Map(); + counter = 0; + stage = 0; + createReplacer() { + if (this.stage === 1) { + throw new Error("@aws-sdk/core/protocols - JsonReplacer already created."); + } + if (this.stage === 2) { + throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted."); + } + this.stage = 1; + return (key, value) => { + if (value instanceof NumericValue) { + const v = `${NUMERIC_CONTROL_CHAR + "nv" + this.counter++}_` + value.string; + this.values.set(`"${v}"`, value.string); + return v; + } + if (typeof value === "bigint") { + const s = value.toString(); + const v = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s; + this.values.set(`"${v}"`, s); + return v; + } + return value; + }; + } + replaceInJson(json) { + if (this.stage === 0) { + throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet."); + } + if (this.stage === 2) { + throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted."); + } + this.stage = 2; + if (this.counter === 0) { + return json; + } + for (const [key, value] of this.values) { + json = json.replace(key, value); + } + return json; + } +} + +class JsonShapeSerializer extends SerdeContextConfig { + settings; + buffer; + useReplacer = false; + rootSchema; + constructor(settings) { + super(); + this.settings = settings; + } + write(schema, value) { + this.rootSchema = NormalizedSchema.of(schema); + this.buffer = this._write(this.rootSchema, value); + } + flush() { + const { rootSchema, useReplacer } = this; + this.rootSchema = undefined; + this.useReplacer = false; + if (rootSchema?.isStructSchema() || rootSchema?.isDocumentSchema()) { + if (!useReplacer) { + return JSON.stringify(this.buffer); + } + const replacer = new JsonReplacer(); + return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0)); + } + return this.buffer; + } + writeDiscriminatedDocument(schema, value) { + this.write(schema, value); + if (typeof this.buffer === "object") { + this.buffer.__type = NormalizedSchema.of(schema).getName(true); + } + } + _write(schema, value, container) { + const isObject = value !== null && typeof value === "object"; + const ns = NormalizedSchema.of(schema); + if (isObject) { + if (ns.isStructSchema()) { + const record = value; + const out = {}; + const { jsonName } = this.settings; + let nameMap = void 0; + if (jsonName) { + nameMap = {}; + } + let outCount = 0; + for (const [memberName, memberSchema] of ns.structIterator()) { + const serializableValue = this._write(memberSchema, record[memberName], ns); + if (serializableValue !== undefined) { + let targetKey = memberName; + if (jsonName) { + targetKey = memberSchema.getMergedTraits().jsonName ?? memberName; + nameMap[memberName] = targetKey; } - - /** - * GenerateAccessTokenResponse accessToken. - * @member {string} accessToken - * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse - * @instance - */ - GenerateAccessTokenResponse.prototype.accessToken = ""; - - /** - * GenerateAccessTokenResponse expireTime. - * @member {google.protobuf.ITimestamp|null|undefined} expireTime - * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse - * @instance - */ - GenerateAccessTokenResponse.prototype.expireTime = null; - - /** - * Creates a new GenerateAccessTokenResponse instance using the specified properties. - * @function create - * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse - * @static - * @param {google.iam.credentials.v1.IGenerateAccessTokenResponse=} [properties] Properties to set - * @returns {google.iam.credentials.v1.GenerateAccessTokenResponse} GenerateAccessTokenResponse instance - */ - GenerateAccessTokenResponse.create = function create(properties) { - return new GenerateAccessTokenResponse(properties); - }; - - /** - * Encodes the specified GenerateAccessTokenResponse message. Does not implicitly {@link google.iam.credentials.v1.GenerateAccessTokenResponse.verify|verify} messages. - * @function encode - * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse - * @static - * @param {google.iam.credentials.v1.IGenerateAccessTokenResponse} message GenerateAccessTokenResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenerateAccessTokenResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.accessToken != null && Object.hasOwnProperty.call(message, "accessToken")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.accessToken); - if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) - $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GenerateAccessTokenResponse message, length delimited. Does not implicitly {@link google.iam.credentials.v1.GenerateAccessTokenResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse - * @static - * @param {google.iam.credentials.v1.IGenerateAccessTokenResponse} message GenerateAccessTokenResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenerateAccessTokenResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GenerateAccessTokenResponse message from the specified reader or buffer. - * @function decode - * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.iam.credentials.v1.GenerateAccessTokenResponse} GenerateAccessTokenResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenerateAccessTokenResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.GenerateAccessTokenResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.accessToken = reader.string(); - break; - } - case 3: { - message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GenerateAccessTokenResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.iam.credentials.v1.GenerateAccessTokenResponse} GenerateAccessTokenResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenerateAccessTokenResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GenerateAccessTokenResponse message. - * @function verify - * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GenerateAccessTokenResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.accessToken != null && message.hasOwnProperty("accessToken")) - if (!$util.isString(message.accessToken)) - return "accessToken: string expected"; - if (message.expireTime != null && message.hasOwnProperty("expireTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.expireTime); - if (error) - return "expireTime." + error; - } - return null; - }; - - /** - * Creates a GenerateAccessTokenResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse - * @static - * @param {Object.} object Plain object - * @returns {google.iam.credentials.v1.GenerateAccessTokenResponse} GenerateAccessTokenResponse - */ - GenerateAccessTokenResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.iam.credentials.v1.GenerateAccessTokenResponse) - return object; - var message = new $root.google.iam.credentials.v1.GenerateAccessTokenResponse(); - if (object.accessToken != null) - message.accessToken = String(object.accessToken); - if (object.expireTime != null) { - if (typeof object.expireTime !== "object") - throw TypeError(".google.iam.credentials.v1.GenerateAccessTokenResponse.expireTime: object expected"); - message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); - } - return message; - }; - - /** - * Creates a plain object from a GenerateAccessTokenResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse - * @static - * @param {google.iam.credentials.v1.GenerateAccessTokenResponse} message GenerateAccessTokenResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GenerateAccessTokenResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.accessToken = ""; - object.expireTime = null; - } - if (message.accessToken != null && message.hasOwnProperty("accessToken")) - object.accessToken = message.accessToken; - if (message.expireTime != null && message.hasOwnProperty("expireTime")) - object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); - return object; - }; - - /** - * Converts this GenerateAccessTokenResponse to JSON. - * @function toJSON - * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse - * @instance - * @returns {Object.} JSON object - */ - GenerateAccessTokenResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GenerateAccessTokenResponse - * @function getTypeUrl - * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GenerateAccessTokenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.iam.credentials.v1.GenerateAccessTokenResponse"; - }; - - return GenerateAccessTokenResponse; - })(); - - v1.SignBlobRequest = (function() { - - /** - * Properties of a SignBlobRequest. - * @memberof google.iam.credentials.v1 - * @interface ISignBlobRequest - * @property {string|null} [name] SignBlobRequest name - * @property {Array.|null} [delegates] SignBlobRequest delegates - * @property {Uint8Array|null} [payload] SignBlobRequest payload - */ - - /** - * Constructs a new SignBlobRequest. - * @memberof google.iam.credentials.v1 - * @classdesc Represents a SignBlobRequest. - * @implements ISignBlobRequest - * @constructor - * @param {google.iam.credentials.v1.ISignBlobRequest=} [properties] Properties to set - */ - function SignBlobRequest(properties) { - this.delegates = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + out[targetKey] = serializableValue; + outCount++; + } + } + if (ns.isUnionSchema() && outCount === 0) { + const { $unknown } = record; + if (Array.isArray($unknown)) { + const [k, v] = $unknown; + out[k] = this._write(15, v); + } + } + else if (typeof record.__type === "string") { + for (const k in record) { + const v = record[k]; + const targetKey = jsonName ? (nameMap[k] ?? k) : k; + if (!(targetKey in out)) { + out[targetKey] = this._write(15, v); } - - /** - * SignBlobRequest name. - * @member {string} name - * @memberof google.iam.credentials.v1.SignBlobRequest - * @instance - */ - SignBlobRequest.prototype.name = ""; - - /** - * SignBlobRequest delegates. - * @member {Array.} delegates - * @memberof google.iam.credentials.v1.SignBlobRequest - * @instance - */ - SignBlobRequest.prototype.delegates = $util.emptyArray; - - /** - * SignBlobRequest payload. - * @member {Uint8Array} payload - * @memberof google.iam.credentials.v1.SignBlobRequest - * @instance - */ - SignBlobRequest.prototype.payload = $util.newBuffer([]); - - /** - * Creates a new SignBlobRequest instance using the specified properties. - * @function create - * @memberof google.iam.credentials.v1.SignBlobRequest - * @static - * @param {google.iam.credentials.v1.ISignBlobRequest=} [properties] Properties to set - * @returns {google.iam.credentials.v1.SignBlobRequest} SignBlobRequest instance - */ - SignBlobRequest.create = function create(properties) { - return new SignBlobRequest(properties); - }; - - /** - * Encodes the specified SignBlobRequest message. Does not implicitly {@link google.iam.credentials.v1.SignBlobRequest.verify|verify} messages. - * @function encode - * @memberof google.iam.credentials.v1.SignBlobRequest - * @static - * @param {google.iam.credentials.v1.ISignBlobRequest} message SignBlobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignBlobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.delegates != null && message.delegates.length) - for (var i = 0; i < message.delegates.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.delegates[i]); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.payload); - return writer; - }; - - /** - * Encodes the specified SignBlobRequest message, length delimited. Does not implicitly {@link google.iam.credentials.v1.SignBlobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.iam.credentials.v1.SignBlobRequest - * @static - * @param {google.iam.credentials.v1.ISignBlobRequest} message SignBlobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignBlobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SignBlobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.iam.credentials.v1.SignBlobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.iam.credentials.v1.SignBlobRequest} SignBlobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignBlobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.SignBlobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 3: { - if (!(message.delegates && message.delegates.length)) - message.delegates = []; - message.delegates.push(reader.string()); - break; - } - case 5: { - message.payload = reader.bytes(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SignBlobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.iam.credentials.v1.SignBlobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.iam.credentials.v1.SignBlobRequest} SignBlobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignBlobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SignBlobRequest message. - * @function verify - * @memberof google.iam.credentials.v1.SignBlobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignBlobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.delegates != null && message.hasOwnProperty("delegates")) { - if (!Array.isArray(message.delegates)) - return "delegates: array expected"; - for (var i = 0; i < message.delegates.length; ++i) - if (!$util.isString(message.delegates[i])) - return "delegates: string[] expected"; - } - if (message.payload != null && message.hasOwnProperty("payload")) - if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload))) - return "payload: buffer expected"; - return null; - }; - - /** - * Creates a SignBlobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.iam.credentials.v1.SignBlobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.iam.credentials.v1.SignBlobRequest} SignBlobRequest - */ - SignBlobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.iam.credentials.v1.SignBlobRequest) - return object; - var message = new $root.google.iam.credentials.v1.SignBlobRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.delegates) { - if (!Array.isArray(object.delegates)) - throw TypeError(".google.iam.credentials.v1.SignBlobRequest.delegates: array expected"); - message.delegates = []; - for (var i = 0; i < object.delegates.length; ++i) - message.delegates[i] = String(object.delegates[i]); - } - if (object.payload != null) - if (typeof object.payload === "string") - $util.base64.decode(object.payload, message.payload = $util.newBuffer($util.base64.length(object.payload)), 0); - else if (object.payload.length >= 0) - message.payload = object.payload; - return message; - }; - - /** - * Creates a plain object from a SignBlobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.iam.credentials.v1.SignBlobRequest - * @static - * @param {google.iam.credentials.v1.SignBlobRequest} message SignBlobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SignBlobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.delegates = []; - if (options.defaults) { - object.name = ""; - if (options.bytes === String) - object.payload = ""; - else { - object.payload = []; - if (options.bytes !== Array) - object.payload = $util.newBuffer(object.payload); - } - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.delegates && message.delegates.length) { - object.delegates = []; - for (var j = 0; j < message.delegates.length; ++j) - object.delegates[j] = message.delegates[j]; - } - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = options.bytes === String ? $util.base64.encode(message.payload, 0, message.payload.length) : options.bytes === Array ? Array.prototype.slice.call(message.payload) : message.payload; - return object; - }; - - /** - * Converts this SignBlobRequest to JSON. - * @function toJSON - * @memberof google.iam.credentials.v1.SignBlobRequest - * @instance - * @returns {Object.} JSON object - */ - SignBlobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for SignBlobRequest - * @function getTypeUrl - * @memberof google.iam.credentials.v1.SignBlobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SignBlobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.iam.credentials.v1.SignBlobRequest"; - }; - - return SignBlobRequest; - })(); - - v1.SignBlobResponse = (function() { - - /** - * Properties of a SignBlobResponse. - * @memberof google.iam.credentials.v1 - * @interface ISignBlobResponse - * @property {string|null} [keyId] SignBlobResponse keyId - * @property {Uint8Array|null} [signedBlob] SignBlobResponse signedBlob - */ - - /** - * Constructs a new SignBlobResponse. - * @memberof google.iam.credentials.v1 - * @classdesc Represents a SignBlobResponse. - * @implements ISignBlobResponse - * @constructor - * @param {google.iam.credentials.v1.ISignBlobResponse=} [properties] Properties to set - */ - function SignBlobResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + } + } + return out; + } + if (Array.isArray(value) && ns.isListSchema()) { + const listMember = ns.getValueSchema(); + const out = []; + const sparse = !!ns.getMergedTraits().sparse; + for (const item of value) { + if (sparse || item != null) { + out.push(this._write(listMember, item)); + } + } + return out; + } + if (ns.isMapSchema()) { + const mapMember = ns.getValueSchema(); + const out = {}; + const sparse = !!ns.getMergedTraits().sparse; + for (const _k in value) { + const _v = value[_k]; + if (sparse || _v != null) { + out[_k] = this._write(mapMember, _v); + } + } + return out; + } + if (value instanceof Uint8Array && (ns.isBlobSchema() || ns.isDocumentSchema())) { + if (ns === this.rootSchema) { + return value; + } + return (this.serdeContext?.base64Encoder ?? toBase64)(value); + } + if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) { + const format = determineTimestampFormat(ns, this.settings); + switch (format) { + case 5: + return value.toISOString().replace(".000Z", "Z"); + case 6: + return dateToUtcString(value); + case 7: + return value.getTime() / 1000; + default: + console.warn("Missing timestamp format, using epoch seconds", value); + return value.getTime() / 1000; + } + } + if (value instanceof NumericValue) { + this.useReplacer = true; + } + } + if (value === null && container?.isStructSchema()) { + return void 0; + } + if (ns.isStringSchema()) { + if (typeof value === "undefined" && ns.isIdempotencyToken()) { + return generateIdempotencyToken(); + } + const mediaType = ns.getMergedTraits().mediaType; + if (value != null && mediaType) { + const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); + if (isJson) { + return LazyJsonString.from(value); + } + } + return value; + } + if (typeof value === "number" && ns.isNumericSchema()) { + if (Math.abs(value) === Infinity || isNaN(value)) { + return String(value); + } + return value; + } + if (typeof value === "string" && ns.isBlobSchema()) { + if (ns === this.rootSchema) { + return value; + } + return (this.serdeContext?.base64Encoder ?? toBase64)(value); + } + if (typeof value === "bigint") { + this.useReplacer = true; + } + if (ns.isDocumentSchema()) { + if (isObject) { + const out = Array.isArray(value) ? [] : {}; + for (const k in value) { + const v = value[k]; + if (v instanceof NumericValue) { + this.useReplacer = true; + out[k] = v; + } + else { + out[k] = this._write(ns, v); + } + } + return out; + } + else { + return structuredClone(value); + } + } + return value; + } +} + +class JsonCodec extends SerdeContextConfig { + settings; + constructor(settings) { + super(); + this.settings = settings; + } + createSerializer() { + const serializer = new JsonShapeSerializer(this.settings); + serializer.setSerdeContext(this.serdeContext); + return serializer; + } + createDeserializer() { + const deserializer = new JsonShapeDeserializer(this.settings); + deserializer.setSerdeContext(this.serdeContext); + return deserializer; + } +} + +class AwsJsonRpcProtocol extends RpcProtocol { + serializer; + deserializer; + serviceTarget; + codec; + mixin; + awsQueryCompatible; + constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }) { + super({ + defaultNamespace, + errorTypeRegistries, + }); + this.serviceTarget = serviceTarget; + this.codec = + jsonCodec ?? + new JsonCodec({ + timestampFormat: { + useTrait: true, + default: 7, + }, + jsonName: false, + }); + this.serializer = this.codec.createSerializer(); + this.deserializer = this.codec.createDeserializer(); + this.awsQueryCompatible = !!awsQueryCompatible; + this.mixin = new ProtocolLib(this.awsQueryCompatible); + } + async serializeRequest(operationSchema, input, context) { + const request = await super.serializeRequest(operationSchema, input, context); + if (!request.path.endsWith("/")) { + request.path += "/"; + } + request.headers["content-type"] = `application/x-amz-json-${this.getJsonRpcVersion()}`; + request.headers["x-amz-target"] = `${this.serviceTarget}.${operationSchema.name}`; + if (this.awsQueryCompatible) { + request.headers["x-amzn-query-mode"] = "true"; + } + if (deref(operationSchema.input) === "unit" || !request.body) { + request.body = "{}"; + } + return request; + } + getPayloadCodec() { + return this.codec; + } + async handleError(operationSchema, context, response, dataObject, metadata) { + const { awsQueryCompatible } = this; + if (awsQueryCompatible) { + this.mixin.setQueryCompatError(dataObject, response); + } + const errorIdentifier = loadJsonRpcErrorCode(response, dataObject, awsQueryCompatible) ?? "Unknown"; + this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace); + const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata, awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined); + const ns = NormalizedSchema.of(errorSchema); + const message = dataObject.message ?? dataObject.Message ?? "UnknownError"; + const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error; + const exception = new ErrorCtor({}); + const output = {}; + const errorDeserializer = this.codec.createDeserializer(); + for (const [name, member] of ns.structIterator()) { + if (dataObject[name] != null) { + output[name] = errorDeserializer.readObject(member, dataObject[name]); + } + } + if (awsQueryCompatible) { + this.mixin.queryCompatOutput(dataObject, output); + } + throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, { + $fault: ns.getMergedTraits().error, + message, + }, output), dataObject); + } +} + +class AwsJson1_0Protocol extends AwsJsonRpcProtocol { + constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }) { + super({ + defaultNamespace, + errorTypeRegistries, + serviceTarget, + awsQueryCompatible, + jsonCodec, + }); + } + getShapeId() { + return "aws.protocols#awsJson1_0"; + } + getJsonRpcVersion() { + return "1.0"; + } + getDefaultContentType() { + return "application/x-amz-json-1.0"; + } +} + +class AwsJson1_1Protocol extends AwsJsonRpcProtocol { + constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }) { + super({ + defaultNamespace, + errorTypeRegistries, + serviceTarget, + awsQueryCompatible, + jsonCodec, + }); + } + getShapeId() { + return "aws.protocols#awsJson1_1"; + } + getJsonRpcVersion() { + return "1.1"; + } + getDefaultContentType() { + return "application/x-amz-json-1.1"; + } +} + +class AwsRestJsonProtocol extends HttpBindingProtocol { + serializer; + deserializer; + codec; + mixin = new ProtocolLib(); + constructor({ defaultNamespace, errorTypeRegistries, }) { + super({ + defaultNamespace, + errorTypeRegistries, + }); + const settings = { + timestampFormat: { + useTrait: true, + default: 7, + }, + httpBindings: true, + jsonName: true, + }; + this.codec = new JsonCodec(settings); + this.serializer = new HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings); + this.deserializer = new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings); + } + getShapeId() { + return "aws.protocols#restJson1"; + } + getPayloadCodec() { + return this.codec; + } + setSerdeContext(serdeContext) { + this.codec.setSerdeContext(serdeContext); + super.setSerdeContext(serdeContext); + } + async serializeRequest(operationSchema, input, context) { + const request = await super.serializeRequest(operationSchema, input, context); + const inputSchema = NormalizedSchema.of(operationSchema.input); + if (!request.headers["content-type"]) { + const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema); + if (contentType) { + request.headers["content-type"] = contentType; + } + } + if (request.body == null && request.headers["content-type"] === this.getDefaultContentType()) { + request.body = "{}"; + } + return request; + } + async deserializeResponse(operationSchema, context, response) { + const output = await super.deserializeResponse(operationSchema, context, response); + const outputSchema = NormalizedSchema.of(operationSchema.output); + for (const [name, member] of outputSchema.structIterator()) { + if (member.getMemberTraits().httpPayload && !(name in output)) { + output[name] = null; + } + } + return output; + } + async handleError(operationSchema, context, response, dataObject, metadata) { + const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown"; + this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace); + const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata); + const ns = NormalizedSchema.of(errorSchema); + const message = dataObject.message ?? dataObject.Message ?? "UnknownError"; + const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error; + const exception = new ErrorCtor({}); + await this.deserializeHttpMessage(errorSchema, context, response, dataObject); + const output = {}; + const errorDeserializer = this.codec.createDeserializer(); + for (const [name, member] of ns.structIterator()) { + const target = member.getMergedTraits().jsonName ?? name; + output[name] = errorDeserializer.readObject(member, dataObject[target]); + } + throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, { + $fault: ns.getMergedTraits().error, + message, + }, output), dataObject); + } + getDefaultContentType() { + return "application/json"; + } +} + +const awsExpectUnion = (value) => { + if (value == null) { + return undefined; + } + if (typeof value === "object" && "__type" in value) { + delete value.__type; + } + return expectUnion(value); +}; + +class XmlShapeDeserializer extends SerdeContextConfig { + settings; + stringDeserializer; + constructor(settings) { + super(); + this.settings = settings; + this.stringDeserializer = new FromStringShapeDeserializer(settings); + } + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + this.stringDeserializer.setSerdeContext(serdeContext); + } + read(schema, bytes, key) { + const ns = NormalizedSchema.of(schema); + const memberSchemas = ns.getMemberSchemas(); + const isEventPayload = ns.isStructSchema() && + ns.isMemberSchema() && + !!Object.values(memberSchemas).find((memberNs) => { + return !!memberNs.getMemberTraits().eventPayload; + }); + if (isEventPayload) { + const output = {}; + const memberName = Object.keys(memberSchemas)[0]; + const eventMemberSchema = memberSchemas[memberName]; + if (eventMemberSchema.isBlobSchema()) { + output[memberName] = bytes; + } + else { + output[memberName] = this.read(memberSchemas[memberName], bytes); + } + return output; + } + const xmlString = (this.serdeContext?.utf8Encoder ?? toUtf8)(bytes); + const parsedObject = this.parseXml(xmlString); + return this.readSchema(schema, key ? parsedObject[key] : parsedObject); + } + readSchema(_schema, value) { + const ns = NormalizedSchema.of(_schema); + if (ns.isUnitSchema()) { + return; + } + const traits = ns.getMergedTraits(); + if (ns.isListSchema() && !Array.isArray(value)) { + return this.readSchema(ns, [value]); + } + if (value == null) { + return value; + } + if (typeof value === "object") { + const flat = !!traits.xmlFlattened; + if (ns.isListSchema()) { + const listValue = ns.getValueSchema(); + const buffer = []; + const sourceKey = listValue.getMergedTraits().xmlName ?? "member"; + const source = flat ? value : (value[0] ?? value)[sourceKey]; + if (source == null) { + return buffer; + } + const sourceArray = Array.isArray(source) ? source : [source]; + for (const v of sourceArray) { + buffer.push(this.readSchema(listValue, v)); + } + return buffer; + } + const buffer = {}; + if (ns.isMapSchema()) { + const keyNs = ns.getKeySchema(); + const memberNs = ns.getValueSchema(); + let entries; + if (flat) { + entries = Array.isArray(value) ? value : [value]; + } + else { + entries = Array.isArray(value.entry) ? value.entry : [value.entry]; + } + const keyProperty = keyNs.getMergedTraits().xmlName ?? "key"; + const valueProperty = memberNs.getMergedTraits().xmlName ?? "value"; + for (const entry of entries) { + const key = entry[keyProperty]; + const value = entry[valueProperty]; + buffer[key] = this.readSchema(memberNs, value); + } + return buffer; + } + if (ns.isStructSchema()) { + const union = ns.isUnionSchema(); + let unionSerde; + if (union) { + unionSerde = new UnionSerde(value, buffer); + } + for (const [memberName, memberSchema] of ns.structIterator()) { + const memberTraits = memberSchema.getMergedTraits(); + const xmlObjectKey = !memberTraits.httpPayload + ? (memberSchema.getMemberTraits().xmlName ?? memberName) + : (memberTraits.xmlName ?? memberSchema.getName()); + if (union) { + unionSerde.mark(xmlObjectKey); + } + if (value[xmlObjectKey] != null) { + buffer[memberName] = this.readSchema(memberSchema, value[xmlObjectKey]); + } + } + if (union) { + unionSerde.writeUnknown(); + } + return buffer; + } + if (ns.isDocumentSchema()) { + return value; + } + throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${ns.getName(true)}`); + } + if (ns.isListSchema()) { + return []; + } + if (ns.isMapSchema() || ns.isStructSchema()) { + return {}; + } + return this.stringDeserializer.read(ns, value); + } + parseXml(xml) { + if (xml.length) { + let parsedObj; + try { + parsedObj = parseXML(xml); + } + catch (e) { + if (e && typeof e === "object") { + Object.defineProperty(e, "$responseBodyText", { + value: xml, + }); + } + throw e; + } + const textNodeName = "#text"; + const key = Object.keys(parsedObj)[0]; + const parsedObjToReturn = parsedObj[key]; + if (parsedObjToReturn[textNodeName]) { + parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; + delete parsedObjToReturn[textNodeName]; + } + return getValueFromTextNode(parsedObjToReturn); + } + return {}; + } +} + +class QueryShapeSerializer extends SerdeContextConfig { + settings; + buffer; + constructor(settings) { + super(); + this.settings = settings; + } + write(schema, value, prefix = "") { + if (this.buffer === undefined) { + this.buffer = ""; + } + const ns = NormalizedSchema.of(schema); + if (prefix && !prefix.endsWith(".")) { + prefix += "."; + } + if (ns.isBlobSchema()) { + if (typeof value === "string" || value instanceof Uint8Array) { + this.writeKey(prefix); + this.writeValue((this.serdeContext?.base64Encoder ?? toBase64)(value)); + } + } + else if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isStringSchema()) { + if (value != null) { + this.writeKey(prefix); + this.writeValue(String(value)); + } + else if (ns.isIdempotencyToken()) { + this.writeKey(prefix); + this.writeValue(generateIdempotencyToken()); + } + } + else if (ns.isBigIntegerSchema()) { + if (value != null) { + this.writeKey(prefix); + this.writeValue(String(value)); + } + } + else if (ns.isBigDecimalSchema()) { + if (value != null) { + this.writeKey(prefix); + this.writeValue(value instanceof NumericValue ? value.string : String(value)); + } + } + else if (ns.isTimestampSchema()) { + if (value instanceof Date) { + this.writeKey(prefix); + const format = determineTimestampFormat(ns, this.settings); + switch (format) { + case 5: + this.writeValue(value.toISOString().replace(".000Z", "Z")); + break; + case 6: + this.writeValue(dateToUtcString(value)); + break; + case 7: + this.writeValue(String(value.getTime() / 1000)); + break; + } + } + } + else if (ns.isDocumentSchema()) { + if (Array.isArray(value)) { + this.write(64 | 15, value, prefix); + } + else if (value instanceof Date) { + this.write(4, value, prefix); + } + else if (value instanceof Uint8Array) { + this.write(21, value, prefix); + } + else if (value && typeof value === "object") { + this.write(128 | 15, value, prefix); + } + else { + this.writeKey(prefix); + this.writeValue(String(value)); + } + } + else if (ns.isListSchema()) { + if (Array.isArray(value)) { + if (value.length === 0) { + if (this.settings.serializeEmptyLists) { + this.writeKey(prefix); + this.writeValue(""); + } + } + else { + const member = ns.getValueSchema(); + const flat = this.settings.flattenLists || ns.getMergedTraits().xmlFlattened; + let i = 1; + for (const item of value) { + if (item == null) { + continue; } - - /** - * SignBlobResponse keyId. - * @member {string} keyId - * @memberof google.iam.credentials.v1.SignBlobResponse - * @instance - */ - SignBlobResponse.prototype.keyId = ""; - - /** - * SignBlobResponse signedBlob. - * @member {Uint8Array} signedBlob - * @memberof google.iam.credentials.v1.SignBlobResponse - * @instance - */ - SignBlobResponse.prototype.signedBlob = $util.newBuffer([]); - - /** - * Creates a new SignBlobResponse instance using the specified properties. - * @function create - * @memberof google.iam.credentials.v1.SignBlobResponse - * @static - * @param {google.iam.credentials.v1.ISignBlobResponse=} [properties] Properties to set - * @returns {google.iam.credentials.v1.SignBlobResponse} SignBlobResponse instance - */ - SignBlobResponse.create = function create(properties) { - return new SignBlobResponse(properties); - }; - - /** - * Encodes the specified SignBlobResponse message. Does not implicitly {@link google.iam.credentials.v1.SignBlobResponse.verify|verify} messages. - * @function encode - * @memberof google.iam.credentials.v1.SignBlobResponse - * @static - * @param {google.iam.credentials.v1.ISignBlobResponse} message SignBlobResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignBlobResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.keyId != null && Object.hasOwnProperty.call(message, "keyId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyId); - if (message.signedBlob != null && Object.hasOwnProperty.call(message, "signedBlob")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.signedBlob); - return writer; - }; - - /** - * Encodes the specified SignBlobResponse message, length delimited. Does not implicitly {@link google.iam.credentials.v1.SignBlobResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.iam.credentials.v1.SignBlobResponse - * @static - * @param {google.iam.credentials.v1.ISignBlobResponse} message SignBlobResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignBlobResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SignBlobResponse message from the specified reader or buffer. - * @function decode - * @memberof google.iam.credentials.v1.SignBlobResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.iam.credentials.v1.SignBlobResponse} SignBlobResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignBlobResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.SignBlobResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.keyId = reader.string(); - break; - } - case 4: { - message.signedBlob = reader.bytes(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SignBlobResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.iam.credentials.v1.SignBlobResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.iam.credentials.v1.SignBlobResponse} SignBlobResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignBlobResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SignBlobResponse message. - * @function verify - * @memberof google.iam.credentials.v1.SignBlobResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignBlobResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keyId != null && message.hasOwnProperty("keyId")) - if (!$util.isString(message.keyId)) - return "keyId: string expected"; - if (message.signedBlob != null && message.hasOwnProperty("signedBlob")) - if (!(message.signedBlob && typeof message.signedBlob.length === "number" || $util.isString(message.signedBlob))) - return "signedBlob: buffer expected"; - return null; - }; - - /** - * Creates a SignBlobResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.iam.credentials.v1.SignBlobResponse - * @static - * @param {Object.} object Plain object - * @returns {google.iam.credentials.v1.SignBlobResponse} SignBlobResponse - */ - SignBlobResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.iam.credentials.v1.SignBlobResponse) - return object; - var message = new $root.google.iam.credentials.v1.SignBlobResponse(); - if (object.keyId != null) - message.keyId = String(object.keyId); - if (object.signedBlob != null) - if (typeof object.signedBlob === "string") - $util.base64.decode(object.signedBlob, message.signedBlob = $util.newBuffer($util.base64.length(object.signedBlob)), 0); - else if (object.signedBlob.length >= 0) - message.signedBlob = object.signedBlob; - return message; - }; - - /** - * Creates a plain object from a SignBlobResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.iam.credentials.v1.SignBlobResponse - * @static - * @param {google.iam.credentials.v1.SignBlobResponse} message SignBlobResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SignBlobResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.keyId = ""; - if (options.bytes === String) - object.signedBlob = ""; - else { - object.signedBlob = []; - if (options.bytes !== Array) - object.signedBlob = $util.newBuffer(object.signedBlob); - } - } - if (message.keyId != null && message.hasOwnProperty("keyId")) - object.keyId = message.keyId; - if (message.signedBlob != null && message.hasOwnProperty("signedBlob")) - object.signedBlob = options.bytes === String ? $util.base64.encode(message.signedBlob, 0, message.signedBlob.length) : options.bytes === Array ? Array.prototype.slice.call(message.signedBlob) : message.signedBlob; - return object; - }; - - /** - * Converts this SignBlobResponse to JSON. - * @function toJSON - * @memberof google.iam.credentials.v1.SignBlobResponse - * @instance - * @returns {Object.} JSON object - */ - SignBlobResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for SignBlobResponse - * @function getTypeUrl - * @memberof google.iam.credentials.v1.SignBlobResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SignBlobResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.iam.credentials.v1.SignBlobResponse"; - }; - - return SignBlobResponse; - })(); - - v1.SignJwtRequest = (function() { - - /** - * Properties of a SignJwtRequest. - * @memberof google.iam.credentials.v1 - * @interface ISignJwtRequest - * @property {string|null} [name] SignJwtRequest name - * @property {Array.|null} [delegates] SignJwtRequest delegates - * @property {string|null} [payload] SignJwtRequest payload - */ - - /** - * Constructs a new SignJwtRequest. - * @memberof google.iam.credentials.v1 - * @classdesc Represents a SignJwtRequest. - * @implements ISignJwtRequest - * @constructor - * @param {google.iam.credentials.v1.ISignJwtRequest=} [properties] Properties to set - */ - function SignJwtRequest(properties) { - this.delegates = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SignJwtRequest name. - * @member {string} name - * @memberof google.iam.credentials.v1.SignJwtRequest - * @instance - */ - SignJwtRequest.prototype.name = ""; - - /** - * SignJwtRequest delegates. - * @member {Array.} delegates - * @memberof google.iam.credentials.v1.SignJwtRequest - * @instance - */ - SignJwtRequest.prototype.delegates = $util.emptyArray; - - /** - * SignJwtRequest payload. - * @member {string} payload - * @memberof google.iam.credentials.v1.SignJwtRequest - * @instance - */ - SignJwtRequest.prototype.payload = ""; - - /** - * Creates a new SignJwtRequest instance using the specified properties. - * @function create - * @memberof google.iam.credentials.v1.SignJwtRequest - * @static - * @param {google.iam.credentials.v1.ISignJwtRequest=} [properties] Properties to set - * @returns {google.iam.credentials.v1.SignJwtRequest} SignJwtRequest instance - */ - SignJwtRequest.create = function create(properties) { - return new SignJwtRequest(properties); - }; - - /** - * Encodes the specified SignJwtRequest message. Does not implicitly {@link google.iam.credentials.v1.SignJwtRequest.verify|verify} messages. - * @function encode - * @memberof google.iam.credentials.v1.SignJwtRequest - * @static - * @param {google.iam.credentials.v1.ISignJwtRequest} message SignJwtRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignJwtRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.delegates != null && message.delegates.length) - for (var i = 0; i < message.delegates.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.delegates[i]); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.payload); - return writer; - }; - - /** - * Encodes the specified SignJwtRequest message, length delimited. Does not implicitly {@link google.iam.credentials.v1.SignJwtRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.iam.credentials.v1.SignJwtRequest - * @static - * @param {google.iam.credentials.v1.ISignJwtRequest} message SignJwtRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignJwtRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SignJwtRequest message from the specified reader or buffer. - * @function decode - * @memberof google.iam.credentials.v1.SignJwtRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.iam.credentials.v1.SignJwtRequest} SignJwtRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignJwtRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.SignJwtRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 3: { - if (!(message.delegates && message.delegates.length)) - message.delegates = []; - message.delegates.push(reader.string()); - break; - } - case 5: { - message.payload = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SignJwtRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.iam.credentials.v1.SignJwtRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.iam.credentials.v1.SignJwtRequest} SignJwtRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignJwtRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SignJwtRequest message. - * @function verify - * @memberof google.iam.credentials.v1.SignJwtRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignJwtRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.delegates != null && message.hasOwnProperty("delegates")) { - if (!Array.isArray(message.delegates)) - return "delegates: array expected"; - for (var i = 0; i < message.delegates.length; ++i) - if (!$util.isString(message.delegates[i])) - return "delegates: string[] expected"; - } - if (message.payload != null && message.hasOwnProperty("payload")) - if (!$util.isString(message.payload)) - return "payload: string expected"; - return null; - }; - - /** - * Creates a SignJwtRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.iam.credentials.v1.SignJwtRequest - * @static - * @param {Object.} object Plain object - * @returns {google.iam.credentials.v1.SignJwtRequest} SignJwtRequest - */ - SignJwtRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.iam.credentials.v1.SignJwtRequest) - return object; - var message = new $root.google.iam.credentials.v1.SignJwtRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.delegates) { - if (!Array.isArray(object.delegates)) - throw TypeError(".google.iam.credentials.v1.SignJwtRequest.delegates: array expected"); - message.delegates = []; - for (var i = 0; i < object.delegates.length; ++i) - message.delegates[i] = String(object.delegates[i]); - } - if (object.payload != null) - message.payload = String(object.payload); - return message; - }; - - /** - * Creates a plain object from a SignJwtRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.iam.credentials.v1.SignJwtRequest - * @static - * @param {google.iam.credentials.v1.SignJwtRequest} message SignJwtRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SignJwtRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.delegates = []; - if (options.defaults) { - object.name = ""; - object.payload = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.delegates && message.delegates.length) { - object.delegates = []; - for (var j = 0; j < message.delegates.length; ++j) - object.delegates[j] = message.delegates[j]; - } - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = message.payload; - return object; - }; - - /** - * Converts this SignJwtRequest to JSON. - * @function toJSON - * @memberof google.iam.credentials.v1.SignJwtRequest - * @instance - * @returns {Object.} JSON object - */ - SignJwtRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for SignJwtRequest - * @function getTypeUrl - * @memberof google.iam.credentials.v1.SignJwtRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SignJwtRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.iam.credentials.v1.SignJwtRequest"; - }; - - return SignJwtRequest; - })(); - - v1.SignJwtResponse = (function() { - - /** - * Properties of a SignJwtResponse. - * @memberof google.iam.credentials.v1 - * @interface ISignJwtResponse - * @property {string|null} [keyId] SignJwtResponse keyId - * @property {string|null} [signedJwt] SignJwtResponse signedJwt - */ - - /** - * Constructs a new SignJwtResponse. - * @memberof google.iam.credentials.v1 - * @classdesc Represents a SignJwtResponse. - * @implements ISignJwtResponse - * @constructor - * @param {google.iam.credentials.v1.ISignJwtResponse=} [properties] Properties to set - */ - function SignJwtResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SignJwtResponse keyId. - * @member {string} keyId - * @memberof google.iam.credentials.v1.SignJwtResponse - * @instance - */ - SignJwtResponse.prototype.keyId = ""; - - /** - * SignJwtResponse signedJwt. - * @member {string} signedJwt - * @memberof google.iam.credentials.v1.SignJwtResponse - * @instance - */ - SignJwtResponse.prototype.signedJwt = ""; - - /** - * Creates a new SignJwtResponse instance using the specified properties. - * @function create - * @memberof google.iam.credentials.v1.SignJwtResponse - * @static - * @param {google.iam.credentials.v1.ISignJwtResponse=} [properties] Properties to set - * @returns {google.iam.credentials.v1.SignJwtResponse} SignJwtResponse instance - */ - SignJwtResponse.create = function create(properties) { - return new SignJwtResponse(properties); - }; - - /** - * Encodes the specified SignJwtResponse message. Does not implicitly {@link google.iam.credentials.v1.SignJwtResponse.verify|verify} messages. - * @function encode - * @memberof google.iam.credentials.v1.SignJwtResponse - * @static - * @param {google.iam.credentials.v1.ISignJwtResponse} message SignJwtResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignJwtResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.keyId != null && Object.hasOwnProperty.call(message, "keyId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyId); - if (message.signedJwt != null && Object.hasOwnProperty.call(message, "signedJwt")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.signedJwt); - return writer; - }; - - /** - * Encodes the specified SignJwtResponse message, length delimited. Does not implicitly {@link google.iam.credentials.v1.SignJwtResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.iam.credentials.v1.SignJwtResponse - * @static - * @param {google.iam.credentials.v1.ISignJwtResponse} message SignJwtResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignJwtResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SignJwtResponse message from the specified reader or buffer. - * @function decode - * @memberof google.iam.credentials.v1.SignJwtResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.iam.credentials.v1.SignJwtResponse} SignJwtResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignJwtResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.SignJwtResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.keyId = reader.string(); - break; - } - case 2: { - message.signedJwt = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SignJwtResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.iam.credentials.v1.SignJwtResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.iam.credentials.v1.SignJwtResponse} SignJwtResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignJwtResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SignJwtResponse message. - * @function verify - * @memberof google.iam.credentials.v1.SignJwtResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignJwtResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keyId != null && message.hasOwnProperty("keyId")) - if (!$util.isString(message.keyId)) - return "keyId: string expected"; - if (message.signedJwt != null && message.hasOwnProperty("signedJwt")) - if (!$util.isString(message.signedJwt)) - return "signedJwt: string expected"; - return null; - }; - - /** - * Creates a SignJwtResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.iam.credentials.v1.SignJwtResponse - * @static - * @param {Object.} object Plain object - * @returns {google.iam.credentials.v1.SignJwtResponse} SignJwtResponse - */ - SignJwtResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.iam.credentials.v1.SignJwtResponse) - return object; - var message = new $root.google.iam.credentials.v1.SignJwtResponse(); - if (object.keyId != null) - message.keyId = String(object.keyId); - if (object.signedJwt != null) - message.signedJwt = String(object.signedJwt); - return message; - }; - - /** - * Creates a plain object from a SignJwtResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.iam.credentials.v1.SignJwtResponse - * @static - * @param {google.iam.credentials.v1.SignJwtResponse} message SignJwtResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SignJwtResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.keyId = ""; - object.signedJwt = ""; - } - if (message.keyId != null && message.hasOwnProperty("keyId")) - object.keyId = message.keyId; - if (message.signedJwt != null && message.hasOwnProperty("signedJwt")) - object.signedJwt = message.signedJwt; - return object; - }; - - /** - * Converts this SignJwtResponse to JSON. - * @function toJSON - * @memberof google.iam.credentials.v1.SignJwtResponse - * @instance - * @returns {Object.} JSON object - */ - SignJwtResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for SignJwtResponse - * @function getTypeUrl - * @memberof google.iam.credentials.v1.SignJwtResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SignJwtResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.iam.credentials.v1.SignJwtResponse"; - }; - - return SignJwtResponse; - })(); - - v1.GenerateIdTokenRequest = (function() { - - /** - * Properties of a GenerateIdTokenRequest. - * @memberof google.iam.credentials.v1 - * @interface IGenerateIdTokenRequest - * @property {string|null} [name] GenerateIdTokenRequest name - * @property {Array.|null} [delegates] GenerateIdTokenRequest delegates - * @property {string|null} [audience] GenerateIdTokenRequest audience - * @property {boolean|null} [includeEmail] GenerateIdTokenRequest includeEmail - */ - - /** - * Constructs a new GenerateIdTokenRequest. - * @memberof google.iam.credentials.v1 - * @classdesc Represents a GenerateIdTokenRequest. - * @implements IGenerateIdTokenRequest - * @constructor - * @param {google.iam.credentials.v1.IGenerateIdTokenRequest=} [properties] Properties to set - */ - function GenerateIdTokenRequest(properties) { - this.delegates = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GenerateIdTokenRequest name. - * @member {string} name - * @memberof google.iam.credentials.v1.GenerateIdTokenRequest - * @instance - */ - GenerateIdTokenRequest.prototype.name = ""; - - /** - * GenerateIdTokenRequest delegates. - * @member {Array.} delegates - * @memberof google.iam.credentials.v1.GenerateIdTokenRequest - * @instance - */ - GenerateIdTokenRequest.prototype.delegates = $util.emptyArray; - - /** - * GenerateIdTokenRequest audience. - * @member {string} audience - * @memberof google.iam.credentials.v1.GenerateIdTokenRequest - * @instance - */ - GenerateIdTokenRequest.prototype.audience = ""; - - /** - * GenerateIdTokenRequest includeEmail. - * @member {boolean} includeEmail - * @memberof google.iam.credentials.v1.GenerateIdTokenRequest - * @instance - */ - GenerateIdTokenRequest.prototype.includeEmail = false; - - /** - * Creates a new GenerateIdTokenRequest instance using the specified properties. - * @function create - * @memberof google.iam.credentials.v1.GenerateIdTokenRequest - * @static - * @param {google.iam.credentials.v1.IGenerateIdTokenRequest=} [properties] Properties to set - * @returns {google.iam.credentials.v1.GenerateIdTokenRequest} GenerateIdTokenRequest instance - */ - GenerateIdTokenRequest.create = function create(properties) { - return new GenerateIdTokenRequest(properties); - }; - - /** - * Encodes the specified GenerateIdTokenRequest message. Does not implicitly {@link google.iam.credentials.v1.GenerateIdTokenRequest.verify|verify} messages. - * @function encode - * @memberof google.iam.credentials.v1.GenerateIdTokenRequest - * @static - * @param {google.iam.credentials.v1.IGenerateIdTokenRequest} message GenerateIdTokenRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenerateIdTokenRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.delegates != null && message.delegates.length) - for (var i = 0; i < message.delegates.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.delegates[i]); - if (message.audience != null && Object.hasOwnProperty.call(message, "audience")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.audience); - if (message.includeEmail != null && Object.hasOwnProperty.call(message, "includeEmail")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.includeEmail); - return writer; - }; - - /** - * Encodes the specified GenerateIdTokenRequest message, length delimited. Does not implicitly {@link google.iam.credentials.v1.GenerateIdTokenRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.iam.credentials.v1.GenerateIdTokenRequest - * @static - * @param {google.iam.credentials.v1.IGenerateIdTokenRequest} message GenerateIdTokenRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenerateIdTokenRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GenerateIdTokenRequest message from the specified reader or buffer. - * @function decode - * @memberof google.iam.credentials.v1.GenerateIdTokenRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.iam.credentials.v1.GenerateIdTokenRequest} GenerateIdTokenRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenerateIdTokenRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.GenerateIdTokenRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - if (!(message.delegates && message.delegates.length)) - message.delegates = []; - message.delegates.push(reader.string()); - break; - } - case 3: { - message.audience = reader.string(); - break; - } - case 4: { - message.includeEmail = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GenerateIdTokenRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.iam.credentials.v1.GenerateIdTokenRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.iam.credentials.v1.GenerateIdTokenRequest} GenerateIdTokenRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenerateIdTokenRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GenerateIdTokenRequest message. - * @function verify - * @memberof google.iam.credentials.v1.GenerateIdTokenRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GenerateIdTokenRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.delegates != null && message.hasOwnProperty("delegates")) { - if (!Array.isArray(message.delegates)) - return "delegates: array expected"; - for (var i = 0; i < message.delegates.length; ++i) - if (!$util.isString(message.delegates[i])) - return "delegates: string[] expected"; - } - if (message.audience != null && message.hasOwnProperty("audience")) - if (!$util.isString(message.audience)) - return "audience: string expected"; - if (message.includeEmail != null && message.hasOwnProperty("includeEmail")) - if (typeof message.includeEmail !== "boolean") - return "includeEmail: boolean expected"; - return null; - }; - - /** - * Creates a GenerateIdTokenRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.iam.credentials.v1.GenerateIdTokenRequest - * @static - * @param {Object.} object Plain object - * @returns {google.iam.credentials.v1.GenerateIdTokenRequest} GenerateIdTokenRequest - */ - GenerateIdTokenRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.iam.credentials.v1.GenerateIdTokenRequest) - return object; - var message = new $root.google.iam.credentials.v1.GenerateIdTokenRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.delegates) { - if (!Array.isArray(object.delegates)) - throw TypeError(".google.iam.credentials.v1.GenerateIdTokenRequest.delegates: array expected"); - message.delegates = []; - for (var i = 0; i < object.delegates.length; ++i) - message.delegates[i] = String(object.delegates[i]); - } - if (object.audience != null) - message.audience = String(object.audience); - if (object.includeEmail != null) - message.includeEmail = Boolean(object.includeEmail); - return message; - }; - - /** - * Creates a plain object from a GenerateIdTokenRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.iam.credentials.v1.GenerateIdTokenRequest - * @static - * @param {google.iam.credentials.v1.GenerateIdTokenRequest} message GenerateIdTokenRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GenerateIdTokenRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.delegates = []; - if (options.defaults) { - object.name = ""; - object.audience = ""; - object.includeEmail = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.delegates && message.delegates.length) { - object.delegates = []; - for (var j = 0; j < message.delegates.length; ++j) - object.delegates[j] = message.delegates[j]; - } - if (message.audience != null && message.hasOwnProperty("audience")) - object.audience = message.audience; - if (message.includeEmail != null && message.hasOwnProperty("includeEmail")) - object.includeEmail = message.includeEmail; - return object; - }; - - /** - * Converts this GenerateIdTokenRequest to JSON. - * @function toJSON - * @memberof google.iam.credentials.v1.GenerateIdTokenRequest - * @instance - * @returns {Object.} JSON object - */ - GenerateIdTokenRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GenerateIdTokenRequest - * @function getTypeUrl - * @memberof google.iam.credentials.v1.GenerateIdTokenRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GenerateIdTokenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.iam.credentials.v1.GenerateIdTokenRequest"; - }; - - return GenerateIdTokenRequest; - })(); - - v1.GenerateIdTokenResponse = (function() { - - /** - * Properties of a GenerateIdTokenResponse. - * @memberof google.iam.credentials.v1 - * @interface IGenerateIdTokenResponse - * @property {string|null} [token] GenerateIdTokenResponse token - */ - - /** - * Constructs a new GenerateIdTokenResponse. - * @memberof google.iam.credentials.v1 - * @classdesc Represents a GenerateIdTokenResponse. - * @implements IGenerateIdTokenResponse - * @constructor - * @param {google.iam.credentials.v1.IGenerateIdTokenResponse=} [properties] Properties to set - */ - function GenerateIdTokenResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GenerateIdTokenResponse token. - * @member {string} token - * @memberof google.iam.credentials.v1.GenerateIdTokenResponse - * @instance - */ - GenerateIdTokenResponse.prototype.token = ""; - - /** - * Creates a new GenerateIdTokenResponse instance using the specified properties. - * @function create - * @memberof google.iam.credentials.v1.GenerateIdTokenResponse - * @static - * @param {google.iam.credentials.v1.IGenerateIdTokenResponse=} [properties] Properties to set - * @returns {google.iam.credentials.v1.GenerateIdTokenResponse} GenerateIdTokenResponse instance - */ - GenerateIdTokenResponse.create = function create(properties) { - return new GenerateIdTokenResponse(properties); - }; - - /** - * Encodes the specified GenerateIdTokenResponse message. Does not implicitly {@link google.iam.credentials.v1.GenerateIdTokenResponse.verify|verify} messages. - * @function encode - * @memberof google.iam.credentials.v1.GenerateIdTokenResponse - * @static - * @param {google.iam.credentials.v1.IGenerateIdTokenResponse} message GenerateIdTokenResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenerateIdTokenResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.token != null && Object.hasOwnProperty.call(message, "token")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.token); - return writer; - }; - - /** - * Encodes the specified GenerateIdTokenResponse message, length delimited. Does not implicitly {@link google.iam.credentials.v1.GenerateIdTokenResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.iam.credentials.v1.GenerateIdTokenResponse - * @static - * @param {google.iam.credentials.v1.IGenerateIdTokenResponse} message GenerateIdTokenResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GenerateIdTokenResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GenerateIdTokenResponse message from the specified reader or buffer. - * @function decode - * @memberof google.iam.credentials.v1.GenerateIdTokenResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.iam.credentials.v1.GenerateIdTokenResponse} GenerateIdTokenResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenerateIdTokenResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.GenerateIdTokenResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.token = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GenerateIdTokenResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.iam.credentials.v1.GenerateIdTokenResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.iam.credentials.v1.GenerateIdTokenResponse} GenerateIdTokenResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GenerateIdTokenResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GenerateIdTokenResponse message. - * @function verify - * @memberof google.iam.credentials.v1.GenerateIdTokenResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GenerateIdTokenResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - /** - * Creates a GenerateIdTokenResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.iam.credentials.v1.GenerateIdTokenResponse - * @static - * @param {Object.} object Plain object - * @returns {google.iam.credentials.v1.GenerateIdTokenResponse} GenerateIdTokenResponse - */ - GenerateIdTokenResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.iam.credentials.v1.GenerateIdTokenResponse) - return object; - var message = new $root.google.iam.credentials.v1.GenerateIdTokenResponse(); - if (object.token != null) - message.token = String(object.token); - return message; - }; - - /** - * Creates a plain object from a GenerateIdTokenResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.iam.credentials.v1.GenerateIdTokenResponse - * @static - * @param {google.iam.credentials.v1.GenerateIdTokenResponse} message GenerateIdTokenResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GenerateIdTokenResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.token = ""; - if (message.token != null && message.hasOwnProperty("token")) - object.token = message.token; - return object; - }; - - /** - * Converts this GenerateIdTokenResponse to JSON. - * @function toJSON - * @memberof google.iam.credentials.v1.GenerateIdTokenResponse - * @instance - * @returns {Object.} JSON object - */ - GenerateIdTokenResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GenerateIdTokenResponse - * @function getTypeUrl - * @memberof google.iam.credentials.v1.GenerateIdTokenResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GenerateIdTokenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.iam.credentials.v1.GenerateIdTokenResponse"; - }; - - return GenerateIdTokenResponse; - })(); - - v1.IAMCredentials = (function() { - - /** - * Constructs a new IAMCredentials service. - * @memberof google.iam.credentials.v1 - * @classdesc Represents a IAMCredentials - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function IAMCredentials(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (IAMCredentials.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IAMCredentials; - - /** - * Creates new IAMCredentials service using the specified rpc implementation. - * @function create - * @memberof google.iam.credentials.v1.IAMCredentials - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {IAMCredentials} RPC service. Useful where requests and/or responses are streamed. - */ - IAMCredentials.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.iam.credentials.v1.IAMCredentials|generateAccessToken}. - * @memberof google.iam.credentials.v1.IAMCredentials - * @typedef GenerateAccessTokenCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.iam.credentials.v1.GenerateAccessTokenResponse} [response] GenerateAccessTokenResponse - */ - - /** - * Calls GenerateAccessToken. - * @function generateAccessToken - * @memberof google.iam.credentials.v1.IAMCredentials - * @instance - * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest} request GenerateAccessTokenRequest message or plain object - * @param {google.iam.credentials.v1.IAMCredentials.GenerateAccessTokenCallback} callback Node-style callback called with the error, if any, and GenerateAccessTokenResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IAMCredentials.prototype.generateAccessToken = function generateAccessToken(request, callback) { - return this.rpcCall(generateAccessToken, $root.google.iam.credentials.v1.GenerateAccessTokenRequest, $root.google.iam.credentials.v1.GenerateAccessTokenResponse, request, callback); - }, "name", { value: "GenerateAccessToken" }); - - /** - * Calls GenerateAccessToken. - * @function generateAccessToken - * @memberof google.iam.credentials.v1.IAMCredentials - * @instance - * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest} request GenerateAccessTokenRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.iam.credentials.v1.IAMCredentials|generateIdToken}. - * @memberof google.iam.credentials.v1.IAMCredentials - * @typedef GenerateIdTokenCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.iam.credentials.v1.GenerateIdTokenResponse} [response] GenerateIdTokenResponse - */ - - /** - * Calls GenerateIdToken. - * @function generateIdToken - * @memberof google.iam.credentials.v1.IAMCredentials - * @instance - * @param {google.iam.credentials.v1.IGenerateIdTokenRequest} request GenerateIdTokenRequest message or plain object - * @param {google.iam.credentials.v1.IAMCredentials.GenerateIdTokenCallback} callback Node-style callback called with the error, if any, and GenerateIdTokenResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IAMCredentials.prototype.generateIdToken = function generateIdToken(request, callback) { - return this.rpcCall(generateIdToken, $root.google.iam.credentials.v1.GenerateIdTokenRequest, $root.google.iam.credentials.v1.GenerateIdTokenResponse, request, callback); - }, "name", { value: "GenerateIdToken" }); - - /** - * Calls GenerateIdToken. - * @function generateIdToken - * @memberof google.iam.credentials.v1.IAMCredentials - * @instance - * @param {google.iam.credentials.v1.IGenerateIdTokenRequest} request GenerateIdTokenRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.iam.credentials.v1.IAMCredentials|signBlob}. - * @memberof google.iam.credentials.v1.IAMCredentials - * @typedef SignBlobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.iam.credentials.v1.SignBlobResponse} [response] SignBlobResponse - */ - - /** - * Calls SignBlob. - * @function signBlob - * @memberof google.iam.credentials.v1.IAMCredentials - * @instance - * @param {google.iam.credentials.v1.ISignBlobRequest} request SignBlobRequest message or plain object - * @param {google.iam.credentials.v1.IAMCredentials.SignBlobCallback} callback Node-style callback called with the error, if any, and SignBlobResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IAMCredentials.prototype.signBlob = function signBlob(request, callback) { - return this.rpcCall(signBlob, $root.google.iam.credentials.v1.SignBlobRequest, $root.google.iam.credentials.v1.SignBlobResponse, request, callback); - }, "name", { value: "SignBlob" }); - - /** - * Calls SignBlob. - * @function signBlob - * @memberof google.iam.credentials.v1.IAMCredentials - * @instance - * @param {google.iam.credentials.v1.ISignBlobRequest} request SignBlobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.iam.credentials.v1.IAMCredentials|signJwt}. - * @memberof google.iam.credentials.v1.IAMCredentials - * @typedef SignJwtCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.iam.credentials.v1.SignJwtResponse} [response] SignJwtResponse - */ - - /** - * Calls SignJwt. - * @function signJwt - * @memberof google.iam.credentials.v1.IAMCredentials - * @instance - * @param {google.iam.credentials.v1.ISignJwtRequest} request SignJwtRequest message or plain object - * @param {google.iam.credentials.v1.IAMCredentials.SignJwtCallback} callback Node-style callback called with the error, if any, and SignJwtResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IAMCredentials.prototype.signJwt = function signJwt(request, callback) { - return this.rpcCall(signJwt, $root.google.iam.credentials.v1.SignJwtRequest, $root.google.iam.credentials.v1.SignJwtResponse, request, callback); - }, "name", { value: "SignJwt" }); - - /** - * Calls SignJwt. - * @function signJwt - * @memberof google.iam.credentials.v1.IAMCredentials - * @instance - * @param {google.iam.credentials.v1.ISignJwtRequest} request SignJwtRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return IAMCredentials; - })(); - - return v1; - })(); - - return credentials; - })(); - - return iam; - })(); - - google.api = (function() { - - /** - * Namespace api. - * @memberof google - * @namespace - */ - var api = {}; - - /** - * FieldBehavior enum. - * @name google.api.FieldBehavior - * @enum {number} - * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value - * @property {number} OPTIONAL=1 OPTIONAL value - * @property {number} REQUIRED=2 REQUIRED value - * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value - * @property {number} INPUT_ONLY=4 INPUT_ONLY value - * @property {number} IMMUTABLE=5 IMMUTABLE value - * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value - * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value - * @property {number} IDENTIFIER=8 IDENTIFIER value - */ - api.FieldBehavior = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; - values[valuesById[1] = "OPTIONAL"] = 1; - values[valuesById[2] = "REQUIRED"] = 2; - values[valuesById[3] = "OUTPUT_ONLY"] = 3; - values[valuesById[4] = "INPUT_ONLY"] = 4; - values[valuesById[5] = "IMMUTABLE"] = 5; - values[valuesById[6] = "UNORDERED_LIST"] = 6; - values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; - values[valuesById[8] = "IDENTIFIER"] = 8; - return values; - })(); - - api.ResourceDescriptor = (function() { - - /** - * Properties of a ResourceDescriptor. - * @memberof google.api - * @interface IResourceDescriptor - * @property {string|null} [type] ResourceDescriptor type - * @property {Array.|null} [pattern] ResourceDescriptor pattern - * @property {string|null} [nameField] ResourceDescriptor nameField - * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history - * @property {string|null} [plural] ResourceDescriptor plural - * @property {string|null} [singular] ResourceDescriptor singular - * @property {Array.|null} [style] ResourceDescriptor style - */ - - /** - * Constructs a new ResourceDescriptor. - * @memberof google.api - * @classdesc Represents a ResourceDescriptor. - * @implements IResourceDescriptor - * @constructor - * @param {google.api.IResourceDescriptor=} [properties] Properties to set - */ - function ResourceDescriptor(properties) { - this.pattern = []; - this.style = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ResourceDescriptor type. - * @member {string} type - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.type = ""; - - /** - * ResourceDescriptor pattern. - * @member {Array.} pattern - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.pattern = $util.emptyArray; - - /** - * ResourceDescriptor nameField. - * @member {string} nameField - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.nameField = ""; - - /** - * ResourceDescriptor history. - * @member {google.api.ResourceDescriptor.History} history - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.history = 0; - - /** - * ResourceDescriptor plural. - * @member {string} plural - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.plural = ""; - - /** - * ResourceDescriptor singular. - * @member {string} singular - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.singular = ""; - - /** - * ResourceDescriptor style. - * @member {Array.} style - * @memberof google.api.ResourceDescriptor - * @instance - */ - ResourceDescriptor.prototype.style = $util.emptyArray; - - /** - * Creates a new ResourceDescriptor instance using the specified properties. - * @function create - * @memberof google.api.ResourceDescriptor - * @static - * @param {google.api.IResourceDescriptor=} [properties] Properties to set - * @returns {google.api.ResourceDescriptor} ResourceDescriptor instance - */ - ResourceDescriptor.create = function create(properties) { - return new ResourceDescriptor(properties); - }; - - /** - * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. - * @function encode - * @memberof google.api.ResourceDescriptor - * @static - * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourceDescriptor.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.pattern != null && message.pattern.length) - for (var i = 0; i < message.pattern.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]); - if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField); - if (message.history != null && Object.hasOwnProperty.call(message, "history")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history); - if (message.plural != null && Object.hasOwnProperty.call(message, "plural")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural); - if (message.singular != null && Object.hasOwnProperty.call(message, "singular")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular); - if (message.style != null && message.style.length) { - writer.uint32(/* id 10, wireType 2 =*/82).fork(); - for (var i = 0; i < message.style.length; ++i) - writer.int32(message.style[i]); - writer.ldelim(); - } - return writer; - }; - - /** - * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.ResourceDescriptor - * @static - * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ResourceDescriptor message from the specified reader or buffer. - * @function decode - * @memberof google.api.ResourceDescriptor - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.ResourceDescriptor} ResourceDescriptor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourceDescriptor.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.type = reader.string(); - break; - } - case 2: { - if (!(message.pattern && message.pattern.length)) - message.pattern = []; - message.pattern.push(reader.string()); - break; - } - case 3: { - message.nameField = reader.string(); - break; - } - case 4: { - message.history = reader.int32(); - break; - } - case 5: { - message.plural = reader.string(); - break; - } - case 6: { - message.singular = reader.string(); - break; - } - case 10: { - if (!(message.style && message.style.length)) - message.style = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.style.push(reader.int32()); - } else - message.style.push(reader.int32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.ResourceDescriptor - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.ResourceDescriptor} ResourceDescriptor - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ResourceDescriptor message. - * @function verify - * @memberof google.api.ResourceDescriptor - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResourceDescriptor.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.pattern != null && message.hasOwnProperty("pattern")) { - if (!Array.isArray(message.pattern)) - return "pattern: array expected"; - for (var i = 0; i < message.pattern.length; ++i) - if (!$util.isString(message.pattern[i])) - return "pattern: string[] expected"; - } - if (message.nameField != null && message.hasOwnProperty("nameField")) - if (!$util.isString(message.nameField)) - return "nameField: string expected"; - if (message.history != null && message.hasOwnProperty("history")) - switch (message.history) { - default: - return "history: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.plural != null && message.hasOwnProperty("plural")) - if (!$util.isString(message.plural)) - return "plural: string expected"; - if (message.singular != null && message.hasOwnProperty("singular")) - if (!$util.isString(message.singular)) - return "singular: string expected"; - if (message.style != null && message.hasOwnProperty("style")) { - if (!Array.isArray(message.style)) - return "style: array expected"; - for (var i = 0; i < message.style.length; ++i) - switch (message.style[i]) { - default: - return "style: enum value[] expected"; - case 0: - case 1: - break; - } - } - return null; - }; - - /** - * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.ResourceDescriptor - * @static - * @param {Object.} object Plain object - * @returns {google.api.ResourceDescriptor} ResourceDescriptor - */ - ResourceDescriptor.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.ResourceDescriptor) - return object; - var message = new $root.google.api.ResourceDescriptor(); - if (object.type != null) - message.type = String(object.type); - if (object.pattern) { - if (!Array.isArray(object.pattern)) - throw TypeError(".google.api.ResourceDescriptor.pattern: array expected"); - message.pattern = []; - for (var i = 0; i < object.pattern.length; ++i) - message.pattern[i] = String(object.pattern[i]); - } - if (object.nameField != null) - message.nameField = String(object.nameField); - switch (object.history) { - default: - if (typeof object.history === "number") { - message.history = object.history; - break; - } - break; - case "HISTORY_UNSPECIFIED": - case 0: - message.history = 0; - break; - case "ORIGINALLY_SINGLE_PATTERN": - case 1: - message.history = 1; - break; - case "FUTURE_MULTI_PATTERN": - case 2: - message.history = 2; - break; - } - if (object.plural != null) - message.plural = String(object.plural); - if (object.singular != null) - message.singular = String(object.singular); - if (object.style) { - if (!Array.isArray(object.style)) - throw TypeError(".google.api.ResourceDescriptor.style: array expected"); - message.style = []; - for (var i = 0; i < object.style.length; ++i) - switch (object.style[i]) { - default: - if (typeof object.style[i] === "number") { - message.style[i] = object.style[i]; - break; - } - case "STYLE_UNSPECIFIED": - case 0: - message.style[i] = 0; - break; - case "DECLARATIVE_FRIENDLY": - case 1: - message.style[i] = 1; - break; - } - } - return message; - }; - - /** - * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.ResourceDescriptor - * @static - * @param {google.api.ResourceDescriptor} message ResourceDescriptor - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResourceDescriptor.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.pattern = []; - object.style = []; - } - if (options.defaults) { - object.type = ""; - object.nameField = ""; - object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0; - object.plural = ""; - object.singular = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.pattern && message.pattern.length) { - object.pattern = []; - for (var j = 0; j < message.pattern.length; ++j) - object.pattern[j] = message.pattern[j]; - } - if (message.nameField != null && message.hasOwnProperty("nameField")) - object.nameField = message.nameField; - if (message.history != null && message.hasOwnProperty("history")) - object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] === undefined ? message.history : $root.google.api.ResourceDescriptor.History[message.history] : message.history; - if (message.plural != null && message.hasOwnProperty("plural")) - object.plural = message.plural; - if (message.singular != null && message.hasOwnProperty("singular")) - object.singular = message.singular; - if (message.style && message.style.length) { - object.style = []; - for (var j = 0; j < message.style.length; ++j) - object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] === undefined ? message.style[j] : $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; - } - return object; - }; - - /** - * Converts this ResourceDescriptor to JSON. - * @function toJSON - * @memberof google.api.ResourceDescriptor - * @instance - * @returns {Object.} JSON object - */ - ResourceDescriptor.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ResourceDescriptor - * @function getTypeUrl - * @memberof google.api.ResourceDescriptor - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ResourceDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.ResourceDescriptor"; - }; - - /** - * History enum. - * @name google.api.ResourceDescriptor.History - * @enum {number} - * @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value - * @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value - * @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value - */ - ResourceDescriptor.History = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0; - values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1; - values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2; - return values; - })(); - - /** - * Style enum. - * @name google.api.ResourceDescriptor.Style - * @enum {number} - * @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value - * @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value - */ - ResourceDescriptor.Style = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0; - values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1; - return values; - })(); - - return ResourceDescriptor; - })(); - - api.ResourceReference = (function() { - - /** - * Properties of a ResourceReference. - * @memberof google.api - * @interface IResourceReference - * @property {string|null} [type] ResourceReference type - * @property {string|null} [childType] ResourceReference childType - */ - - /** - * Constructs a new ResourceReference. - * @memberof google.api - * @classdesc Represents a ResourceReference. - * @implements IResourceReference - * @constructor - * @param {google.api.IResourceReference=} [properties] Properties to set - */ - function ResourceReference(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ResourceReference type. - * @member {string} type - * @memberof google.api.ResourceReference - * @instance - */ - ResourceReference.prototype.type = ""; - - /** - * ResourceReference childType. - * @member {string} childType - * @memberof google.api.ResourceReference - * @instance - */ - ResourceReference.prototype.childType = ""; - - /** - * Creates a new ResourceReference instance using the specified properties. - * @function create - * @memberof google.api.ResourceReference - * @static - * @param {google.api.IResourceReference=} [properties] Properties to set - * @returns {google.api.ResourceReference} ResourceReference instance - */ - ResourceReference.create = function create(properties) { - return new ResourceReference(properties); - }; - - /** - * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. - * @function encode - * @memberof google.api.ResourceReference - * @static - * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourceReference.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.childType != null && Object.hasOwnProperty.call(message, "childType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType); - return writer; - }; - - /** - * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.ResourceReference - * @static - * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourceReference.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ResourceReference message from the specified reader or buffer. - * @function decode - * @memberof google.api.ResourceReference - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.ResourceReference} ResourceReference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourceReference.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.type = reader.string(); - break; - } - case 2: { - message.childType = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ResourceReference message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.ResourceReference - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.ResourceReference} ResourceReference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourceReference.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ResourceReference message. - * @function verify - * @memberof google.api.ResourceReference - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResourceReference.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.childType != null && message.hasOwnProperty("childType")) - if (!$util.isString(message.childType)) - return "childType: string expected"; - return null; - }; - - /** - * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.ResourceReference - * @static - * @param {Object.} object Plain object - * @returns {google.api.ResourceReference} ResourceReference - */ - ResourceReference.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.ResourceReference) - return object; - var message = new $root.google.api.ResourceReference(); - if (object.type != null) - message.type = String(object.type); - if (object.childType != null) - message.childType = String(object.childType); - return message; - }; - - /** - * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.ResourceReference - * @static - * @param {google.api.ResourceReference} message ResourceReference - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResourceReference.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = ""; - object.childType = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.childType != null && message.hasOwnProperty("childType")) - object.childType = message.childType; - return object; - }; - - /** - * Converts this ResourceReference to JSON. - * @function toJSON - * @memberof google.api.ResourceReference - * @instance - * @returns {Object.} JSON object - */ - ResourceReference.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ResourceReference - * @function getTypeUrl - * @memberof google.api.ResourceReference - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.ResourceReference"; - }; - - return ResourceReference; - })(); - - api.Http = (function() { - - /** - * Properties of a Http. - * @memberof google.api - * @interface IHttp - * @property {Array.|null} [rules] Http rules - * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion - */ - - /** - * Constructs a new Http. - * @memberof google.api - * @classdesc Represents a Http. - * @implements IHttp - * @constructor - * @param {google.api.IHttp=} [properties] Properties to set - */ - function Http(properties) { - this.rules = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Http rules. - * @member {Array.} rules - * @memberof google.api.Http - * @instance - */ - Http.prototype.rules = $util.emptyArray; - - /** - * Http fullyDecodeReservedExpansion. - * @member {boolean} fullyDecodeReservedExpansion - * @memberof google.api.Http - * @instance - */ - Http.prototype.fullyDecodeReservedExpansion = false; - - /** - * Creates a new Http instance using the specified properties. - * @function create - * @memberof google.api.Http - * @static - * @param {google.api.IHttp=} [properties] Properties to set - * @returns {google.api.Http} Http instance - */ - Http.create = function create(properties) { - return new Http(properties); - }; - - /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @function encode - * @memberof google.api.Http - * @static - * @param {google.api.IHttp} message Http message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Http.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); - return writer; - }; - - /** - * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.Http - * @static - * @param {google.api.IHttp} message Http message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Http.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Http message from the specified reader or buffer. - * @function decode - * @memberof google.api.Http - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.Http} Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Http.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; - } - case 2: { - message.fullyDecodeReservedExpansion = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Http message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.Http - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.Http} Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Http.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Http message. - * @function verify - * @memberof google.api.Http - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Http.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.google.api.HttpRule.verify(message.rules[i]); - if (error) - return "rules." + error; - } - } - if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) - if (typeof message.fullyDecodeReservedExpansion !== "boolean") - return "fullyDecodeReservedExpansion: boolean expected"; - return null; - }; - - /** - * Creates a Http message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.Http - * @static - * @param {Object.} object Plain object - * @returns {google.api.Http} Http - */ - Http.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.Http) - return object; - var message = new $root.google.api.Http(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".google.api.Http.rules: array expected"); - message.rules = []; - for (var i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".google.api.Http.rules: object expected"); - message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); - } - } - if (object.fullyDecodeReservedExpansion != null) - message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion); - return message; - }; - - /** - * Creates a plain object from a Http message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.Http - * @static - * @param {google.api.Http} message Http - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Http.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.rules = []; - if (options.defaults) - object.fullyDecodeReservedExpansion = false; - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); - } - if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) - object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion; - return object; - }; - - /** - * Converts this Http to JSON. - * @function toJSON - * @memberof google.api.Http - * @instance - * @returns {Object.} JSON object - */ - Http.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Http - * @function getTypeUrl - * @memberof google.api.Http - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.Http"; - }; - - return Http; - })(); - - api.HttpRule = (function() { - - /** - * Properties of a HttpRule. - * @memberof google.api - * @interface IHttpRule - * @property {string|null} [selector] HttpRule selector - * @property {string|null} [get] HttpRule get - * @property {string|null} [put] HttpRule put - * @property {string|null} [post] HttpRule post - * @property {string|null} ["delete"] HttpRule delete - * @property {string|null} [patch] HttpRule patch - * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom - * @property {string|null} [body] HttpRule body - * @property {string|null} [responseBody] HttpRule responseBody - * @property {Array.|null} [additionalBindings] HttpRule additionalBindings - */ - - /** - * Constructs a new HttpRule. - * @memberof google.api - * @classdesc Represents a HttpRule. - * @implements IHttpRule - * @constructor - * @param {google.api.IHttpRule=} [properties] Properties to set - */ - function HttpRule(properties) { - this.additionalBindings = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * HttpRule selector. - * @member {string} selector - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.selector = ""; - - /** - * HttpRule get. - * @member {string|null|undefined} get - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.get = null; - - /** - * HttpRule put. - * @member {string|null|undefined} put - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.put = null; - - /** - * HttpRule post. - * @member {string|null|undefined} post - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.post = null; - - /** - * HttpRule delete. - * @member {string|null|undefined} delete - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype["delete"] = null; - - /** - * HttpRule patch. - * @member {string|null|undefined} patch - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.patch = null; - - /** - * HttpRule custom. - * @member {google.api.ICustomHttpPattern|null|undefined} custom - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.custom = null; - - /** - * HttpRule body. - * @member {string} body - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.body = ""; - - /** - * HttpRule responseBody. - * @member {string} responseBody - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.responseBody = ""; - - /** - * HttpRule additionalBindings. - * @member {Array.} additionalBindings - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.additionalBindings = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * HttpRule pattern. - * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern - * @memberof google.api.HttpRule - * @instance - */ - Object.defineProperty(HttpRule.prototype, "pattern", { - get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new HttpRule instance using the specified properties. - * @function create - * @memberof google.api.HttpRule - * @static - * @param {google.api.IHttpRule=} [properties] Properties to set - * @returns {google.api.HttpRule} HttpRule instance - */ - HttpRule.create = function create(properties) { - return new HttpRule(properties); - }; - - /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @function encode - * @memberof google.api.HttpRule - * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HttpRule.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); - if (message.get != null && Object.hasOwnProperty.call(message, "get")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); - if (message.put != null && Object.hasOwnProperty.call(message, "put")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); - if (message.post != null && Object.hasOwnProperty.call(message, "post")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); - if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); - if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); - if (message.body != null && Object.hasOwnProperty.call(message, "body")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); - if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) - $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.additionalBindings != null && message.additionalBindings.length) - for (var i = 0; i < message.additionalBindings.length; ++i) - $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); - return writer; - }; - - /** - * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.HttpRule - * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HttpRule.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a HttpRule message from the specified reader or buffer. - * @function decode - * @memberof google.api.HttpRule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.HttpRule} HttpRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HttpRule.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.selector = reader.string(); - break; - } - case 2: { - message.get = reader.string(); - break; - } - case 3: { - message.put = reader.string(); - break; - } - case 4: { - message.post = reader.string(); - break; - } - case 5: { - message["delete"] = reader.string(); - break; - } - case 6: { - message.patch = reader.string(); - break; - } - case 8: { - message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); - break; - } - case 7: { - message.body = reader.string(); - break; - } - case 12: { - message.responseBody = reader.string(); - break; - } - case 11: { - if (!(message.additionalBindings && message.additionalBindings.length)) - message.additionalBindings = []; - message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a HttpRule message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.HttpRule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.HttpRule} HttpRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HttpRule.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a HttpRule message. - * @function verify - * @memberof google.api.HttpRule - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - HttpRule.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.selector != null && message.hasOwnProperty("selector")) - if (!$util.isString(message.selector)) - return "selector: string expected"; - if (message.get != null && message.hasOwnProperty("get")) { - properties.pattern = 1; - if (!$util.isString(message.get)) - return "get: string expected"; - } - if (message.put != null && message.hasOwnProperty("put")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.put)) - return "put: string expected"; - } - if (message.post != null && message.hasOwnProperty("post")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.post)) - return "post: string expected"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message["delete"])) - return "delete: string expected"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.patch)) - return "patch: string expected"; - } - if (message.custom != null && message.hasOwnProperty("custom")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - { - var error = $root.google.api.CustomHttpPattern.verify(message.custom); - if (error) - return "custom." + error; - } - } - if (message.body != null && message.hasOwnProperty("body")) - if (!$util.isString(message.body)) - return "body: string expected"; - if (message.responseBody != null && message.hasOwnProperty("responseBody")) - if (!$util.isString(message.responseBody)) - return "responseBody: string expected"; - if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { - if (!Array.isArray(message.additionalBindings)) - return "additionalBindings: array expected"; - for (var i = 0; i < message.additionalBindings.length; ++i) { - var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); - if (error) - return "additionalBindings." + error; - } - } - return null; - }; - - /** - * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.HttpRule - * @static - * @param {Object.} object Plain object - * @returns {google.api.HttpRule} HttpRule - */ - HttpRule.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.HttpRule) - return object; - var message = new $root.google.api.HttpRule(); - if (object.selector != null) - message.selector = String(object.selector); - if (object.get != null) - message.get = String(object.get); - if (object.put != null) - message.put = String(object.put); - if (object.post != null) - message.post = String(object.post); - if (object["delete"] != null) - message["delete"] = String(object["delete"]); - if (object.patch != null) - message.patch = String(object.patch); - if (object.custom != null) { - if (typeof object.custom !== "object") - throw TypeError(".google.api.HttpRule.custom: object expected"); - message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); - } - if (object.body != null) - message.body = String(object.body); - if (object.responseBody != null) - message.responseBody = String(object.responseBody); - if (object.additionalBindings) { - if (!Array.isArray(object.additionalBindings)) - throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); - message.additionalBindings = []; - for (var i = 0; i < object.additionalBindings.length; ++i) { - if (typeof object.additionalBindings[i] !== "object") - throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); - message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a HttpRule message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.HttpRule - * @static - * @param {google.api.HttpRule} message HttpRule - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - HttpRule.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.additionalBindings = []; - if (options.defaults) { - object.selector = ""; - object.body = ""; - object.responseBody = ""; - } - if (message.selector != null && message.hasOwnProperty("selector")) - object.selector = message.selector; - if (message.get != null && message.hasOwnProperty("get")) { - object.get = message.get; - if (options.oneofs) - object.pattern = "get"; - } - if (message.put != null && message.hasOwnProperty("put")) { - object.put = message.put; - if (options.oneofs) - object.pattern = "put"; - } - if (message.post != null && message.hasOwnProperty("post")) { - object.post = message.post; - if (options.oneofs) - object.pattern = "post"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - object["delete"] = message["delete"]; - if (options.oneofs) - object.pattern = "delete"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - object.patch = message.patch; - if (options.oneofs) - object.pattern = "patch"; - } - if (message.body != null && message.hasOwnProperty("body")) - object.body = message.body; - if (message.custom != null && message.hasOwnProperty("custom")) { - object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); - if (options.oneofs) - object.pattern = "custom"; - } - if (message.additionalBindings && message.additionalBindings.length) { - object.additionalBindings = []; - for (var j = 0; j < message.additionalBindings.length; ++j) - object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); - } - if (message.responseBody != null && message.hasOwnProperty("responseBody")) - object.responseBody = message.responseBody; - return object; - }; - - /** - * Converts this HttpRule to JSON. - * @function toJSON - * @memberof google.api.HttpRule - * @instance - * @returns {Object.} JSON object - */ - HttpRule.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for HttpRule - * @function getTypeUrl - * @memberof google.api.HttpRule - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.HttpRule"; - }; - - return HttpRule; - })(); - - api.CustomHttpPattern = (function() { - - /** - * Properties of a CustomHttpPattern. - * @memberof google.api - * @interface ICustomHttpPattern - * @property {string|null} [kind] CustomHttpPattern kind - * @property {string|null} [path] CustomHttpPattern path - */ - - /** - * Constructs a new CustomHttpPattern. - * @memberof google.api - * @classdesc Represents a CustomHttpPattern. - * @implements ICustomHttpPattern - * @constructor - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set - */ - function CustomHttpPattern(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CustomHttpPattern kind. - * @member {string} kind - * @memberof google.api.CustomHttpPattern - * @instance - */ - CustomHttpPattern.prototype.kind = ""; - - /** - * CustomHttpPattern path. - * @member {string} path - * @memberof google.api.CustomHttpPattern - * @instance - */ - CustomHttpPattern.prototype.path = ""; - - /** - * Creates a new CustomHttpPattern instance using the specified properties. - * @function create - * @memberof google.api.CustomHttpPattern - * @static - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set - * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance - */ - CustomHttpPattern.create = function create(properties) { - return new CustomHttpPattern(properties); - }; - - /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @function encode - * @memberof google.api.CustomHttpPattern - * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomHttpPattern.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); - return writer; - }; - - /** - * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.CustomHttpPattern - * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. - * @function decode - * @memberof google.api.CustomHttpPattern - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.CustomHttpPattern} CustomHttpPattern - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomHttpPattern.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.kind = reader.string(); - break; - } - case 2: { - message.path = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.CustomHttpPattern - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.CustomHttpPattern} CustomHttpPattern - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CustomHttpPattern message. - * @function verify - * @memberof google.api.CustomHttpPattern - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CustomHttpPattern.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - if (!$util.isString(message.kind)) - return "kind: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - return null; - }; - - /** - * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.CustomHttpPattern - * @static - * @param {Object.} object Plain object - * @returns {google.api.CustomHttpPattern} CustomHttpPattern - */ - CustomHttpPattern.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.CustomHttpPattern) - return object; - var message = new $root.google.api.CustomHttpPattern(); - if (object.kind != null) - message.kind = String(object.kind); - if (object.path != null) - message.path = String(object.path); - return message; - }; - - /** - * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.CustomHttpPattern - * @static - * @param {google.api.CustomHttpPattern} message CustomHttpPattern - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CustomHttpPattern.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.kind = ""; - object.path = ""; - } - if (message.kind != null && message.hasOwnProperty("kind")) - object.kind = message.kind; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; - return object; - }; - - /** - * Converts this CustomHttpPattern to JSON. - * @function toJSON - * @memberof google.api.CustomHttpPattern - * @instance - * @returns {Object.} JSON object - */ - CustomHttpPattern.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CustomHttpPattern - * @function getTypeUrl - * @memberof google.api.CustomHttpPattern - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.CustomHttpPattern"; - }; - - return CustomHttpPattern; - })(); - - api.CommonLanguageSettings = (function() { - - /** - * Properties of a CommonLanguageSettings. - * @memberof google.api - * @interface ICommonLanguageSettings - * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri - * @property {Array.|null} [destinations] CommonLanguageSettings destinations - */ - - /** - * Constructs a new CommonLanguageSettings. - * @memberof google.api - * @classdesc Represents a CommonLanguageSettings. - * @implements ICommonLanguageSettings - * @constructor - * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set - */ - function CommonLanguageSettings(properties) { - this.destinations = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CommonLanguageSettings referenceDocsUri. - * @member {string} referenceDocsUri - * @memberof google.api.CommonLanguageSettings - * @instance - */ - CommonLanguageSettings.prototype.referenceDocsUri = ""; - - /** - * CommonLanguageSettings destinations. - * @member {Array.} destinations - * @memberof google.api.CommonLanguageSettings - * @instance - */ - CommonLanguageSettings.prototype.destinations = $util.emptyArray; - - /** - * Creates a new CommonLanguageSettings instance using the specified properties. - * @function create - * @memberof google.api.CommonLanguageSettings - * @static - * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set - * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance - */ - CommonLanguageSettings.create = function create(properties) { - return new CommonLanguageSettings(properties); - }; - - /** - * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages. - * @function encode - * @memberof google.api.CommonLanguageSettings - * @static - * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CommonLanguageSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri); - if (message.destinations != null && message.destinations.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.destinations.length; ++i) - writer.int32(message.destinations[i]); - writer.ldelim(); - } - return writer; - }; - - /** - * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.CommonLanguageSettings - * @static - * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CommonLanguageSettings message from the specified reader or buffer. - * @function decode - * @memberof google.api.CommonLanguageSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CommonLanguageSettings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.referenceDocsUri = reader.string(); - break; - } - case 2: { - if (!(message.destinations && message.destinations.length)) - message.destinations = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.destinations.push(reader.int32()); - } else - message.destinations.push(reader.int32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.CommonLanguageSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CommonLanguageSettings message. - * @function verify - * @memberof google.api.CommonLanguageSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CommonLanguageSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri")) - if (!$util.isString(message.referenceDocsUri)) - return "referenceDocsUri: string expected"; - if (message.destinations != null && message.hasOwnProperty("destinations")) { - if (!Array.isArray(message.destinations)) - return "destinations: array expected"; - for (var i = 0; i < message.destinations.length; ++i) - switch (message.destinations[i]) { - default: - return "destinations: enum value[] expected"; - case 0: - case 10: - case 20: - break; - } - } - return null; - }; - - /** - * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.CommonLanguageSettings - * @static - * @param {Object.} object Plain object - * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings - */ - CommonLanguageSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.CommonLanguageSettings) - return object; - var message = new $root.google.api.CommonLanguageSettings(); - if (object.referenceDocsUri != null) - message.referenceDocsUri = String(object.referenceDocsUri); - if (object.destinations) { - if (!Array.isArray(object.destinations)) - throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected"); - message.destinations = []; - for (var i = 0; i < object.destinations.length; ++i) - switch (object.destinations[i]) { - default: - if (typeof object.destinations[i] === "number") { - message.destinations[i] = object.destinations[i]; - break; - } - case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED": - case 0: - message.destinations[i] = 0; - break; - case "GITHUB": - case 10: - message.destinations[i] = 10; - break; - case "PACKAGE_MANAGER": - case 20: - message.destinations[i] = 20; - break; - } - } - return message; - }; - - /** - * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.CommonLanguageSettings - * @static - * @param {google.api.CommonLanguageSettings} message CommonLanguageSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CommonLanguageSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.destinations = []; - if (options.defaults) - object.referenceDocsUri = ""; - if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri")) - object.referenceDocsUri = message.referenceDocsUri; - if (message.destinations && message.destinations.length) { - object.destinations = []; - for (var j = 0; j < message.destinations.length; ++j) - object.destinations[j] = options.enums === String ? $root.google.api.ClientLibraryDestination[message.destinations[j]] === undefined ? message.destinations[j] : $root.google.api.ClientLibraryDestination[message.destinations[j]] : message.destinations[j]; - } - return object; - }; - - /** - * Converts this CommonLanguageSettings to JSON. - * @function toJSON - * @memberof google.api.CommonLanguageSettings - * @instance - * @returns {Object.} JSON object - */ - CommonLanguageSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CommonLanguageSettings - * @function getTypeUrl - * @memberof google.api.CommonLanguageSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.CommonLanguageSettings"; - }; - - return CommonLanguageSettings; - })(); - - api.ClientLibrarySettings = (function() { - - /** - * Properties of a ClientLibrarySettings. - * @memberof google.api - * @interface IClientLibrarySettings - * @property {string|null} [version] ClientLibrarySettings version - * @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage - * @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums - * @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings - * @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings - * @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings - * @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings - * @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings - * @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings - * @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings - * @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings - */ - - /** - * Constructs a new ClientLibrarySettings. - * @memberof google.api - * @classdesc Represents a ClientLibrarySettings. - * @implements IClientLibrarySettings - * @constructor - * @param {google.api.IClientLibrarySettings=} [properties] Properties to set - */ - function ClientLibrarySettings(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ClientLibrarySettings version. - * @member {string} version - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.version = ""; - - /** - * ClientLibrarySettings launchStage. - * @member {google.api.LaunchStage} launchStage - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.launchStage = 0; - - /** - * ClientLibrarySettings restNumericEnums. - * @member {boolean} restNumericEnums - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.restNumericEnums = false; - - /** - * ClientLibrarySettings javaSettings. - * @member {google.api.IJavaSettings|null|undefined} javaSettings - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.javaSettings = null; - - /** - * ClientLibrarySettings cppSettings. - * @member {google.api.ICppSettings|null|undefined} cppSettings - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.cppSettings = null; - - /** - * ClientLibrarySettings phpSettings. - * @member {google.api.IPhpSettings|null|undefined} phpSettings - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.phpSettings = null; - - /** - * ClientLibrarySettings pythonSettings. - * @member {google.api.IPythonSettings|null|undefined} pythonSettings - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.pythonSettings = null; - - /** - * ClientLibrarySettings nodeSettings. - * @member {google.api.INodeSettings|null|undefined} nodeSettings - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.nodeSettings = null; - - /** - * ClientLibrarySettings dotnetSettings. - * @member {google.api.IDotnetSettings|null|undefined} dotnetSettings - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.dotnetSettings = null; - - /** - * ClientLibrarySettings rubySettings. - * @member {google.api.IRubySettings|null|undefined} rubySettings - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.rubySettings = null; - - /** - * ClientLibrarySettings goSettings. - * @member {google.api.IGoSettings|null|undefined} goSettings - * @memberof google.api.ClientLibrarySettings - * @instance - */ - ClientLibrarySettings.prototype.goSettings = null; - - /** - * Creates a new ClientLibrarySettings instance using the specified properties. - * @function create - * @memberof google.api.ClientLibrarySettings - * @static - * @param {google.api.IClientLibrarySettings=} [properties] Properties to set - * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance - */ - ClientLibrarySettings.create = function create(properties) { - return new ClientLibrarySettings(properties); - }; - - /** - * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages. - * @function encode - * @memberof google.api.ClientLibrarySettings - * @static - * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ClientLibrarySettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); - if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage); - if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums); - if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings")) - $root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings")) - $root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); - if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings")) - $root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); - if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings")) - $root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); - if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings")) - $root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); - if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings")) - $root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); - if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings")) - $root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); - if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings")) - $root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.ClientLibrarySettings - * @static - * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ClientLibrarySettings message from the specified reader or buffer. - * @function decode - * @memberof google.api.ClientLibrarySettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ClientLibrarySettings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.version = reader.string(); - break; - } - case 2: { - message.launchStage = reader.int32(); - break; - } - case 3: { - message.restNumericEnums = reader.bool(); - break; - } - case 21: { - message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32()); - break; - } - case 22: { - message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32()); - break; - } - case 23: { - message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32()); - break; - } - case 24: { - message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32()); - break; - } - case 25: { - message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32()); - break; - } - case 26: { - message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32()); - break; - } - case 27: { - message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32()); - break; - } - case 28: { - message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.ClientLibrarySettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ClientLibrarySettings message. - * @function verify - * @memberof google.api.ClientLibrarySettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ClientLibrarySettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.launchStage != null && message.hasOwnProperty("launchStage")) - switch (message.launchStage) { - default: - return "launchStage: enum value expected"; - case 0: - case 6: - case 7: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums")) - if (typeof message.restNumericEnums !== "boolean") - return "restNumericEnums: boolean expected"; - if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) { - var error = $root.google.api.JavaSettings.verify(message.javaSettings); - if (error) - return "javaSettings." + error; - } - if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) { - var error = $root.google.api.CppSettings.verify(message.cppSettings); - if (error) - return "cppSettings." + error; - } - if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) { - var error = $root.google.api.PhpSettings.verify(message.phpSettings); - if (error) - return "phpSettings." + error; - } - if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) { - var error = $root.google.api.PythonSettings.verify(message.pythonSettings); - if (error) - return "pythonSettings." + error; - } - if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) { - var error = $root.google.api.NodeSettings.verify(message.nodeSettings); - if (error) - return "nodeSettings." + error; - } - if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) { - var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings); - if (error) - return "dotnetSettings." + error; - } - if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) { - var error = $root.google.api.RubySettings.verify(message.rubySettings); - if (error) - return "rubySettings." + error; - } - if (message.goSettings != null && message.hasOwnProperty("goSettings")) { - var error = $root.google.api.GoSettings.verify(message.goSettings); - if (error) - return "goSettings." + error; - } - return null; - }; - - /** - * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.ClientLibrarySettings - * @static - * @param {Object.} object Plain object - * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings - */ - ClientLibrarySettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.ClientLibrarySettings) - return object; - var message = new $root.google.api.ClientLibrarySettings(); - if (object.version != null) - message.version = String(object.version); - switch (object.launchStage) { - default: - if (typeof object.launchStage === "number") { - message.launchStage = object.launchStage; - break; - } - break; - case "LAUNCH_STAGE_UNSPECIFIED": - case 0: - message.launchStage = 0; - break; - case "UNIMPLEMENTED": - case 6: - message.launchStage = 6; - break; - case "PRELAUNCH": - case 7: - message.launchStage = 7; - break; - case "EARLY_ACCESS": - case 1: - message.launchStage = 1; - break; - case "ALPHA": - case 2: - message.launchStage = 2; - break; - case "BETA": - case 3: - message.launchStage = 3; - break; - case "GA": - case 4: - message.launchStage = 4; - break; - case "DEPRECATED": - case 5: - message.launchStage = 5; - break; - } - if (object.restNumericEnums != null) - message.restNumericEnums = Boolean(object.restNumericEnums); - if (object.javaSettings != null) { - if (typeof object.javaSettings !== "object") - throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected"); - message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings); - } - if (object.cppSettings != null) { - if (typeof object.cppSettings !== "object") - throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected"); - message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings); - } - if (object.phpSettings != null) { - if (typeof object.phpSettings !== "object") - throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected"); - message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings); - } - if (object.pythonSettings != null) { - if (typeof object.pythonSettings !== "object") - throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected"); - message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings); - } - if (object.nodeSettings != null) { - if (typeof object.nodeSettings !== "object") - throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected"); - message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings); - } - if (object.dotnetSettings != null) { - if (typeof object.dotnetSettings !== "object") - throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected"); - message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings); - } - if (object.rubySettings != null) { - if (typeof object.rubySettings !== "object") - throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected"); - message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings); - } - if (object.goSettings != null) { - if (typeof object.goSettings !== "object") - throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected"); - message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings); - } - return message; - }; - - /** - * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.ClientLibrarySettings - * @static - * @param {google.api.ClientLibrarySettings} message ClientLibrarySettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ClientLibrarySettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.version = ""; - object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0; - object.restNumericEnums = false; - object.javaSettings = null; - object.cppSettings = null; - object.phpSettings = null; - object.pythonSettings = null; - object.nodeSettings = null; - object.dotnetSettings = null; - object.rubySettings = null; - object.goSettings = null; - } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.launchStage != null && message.hasOwnProperty("launchStage")) - object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage; - if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums")) - object.restNumericEnums = message.restNumericEnums; - if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) - object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options); - if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) - object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options); - if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) - object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options); - if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) - object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options); - if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) - object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options); - if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) - object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options); - if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) - object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options); - if (message.goSettings != null && message.hasOwnProperty("goSettings")) - object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options); - return object; - }; - - /** - * Converts this ClientLibrarySettings to JSON. - * @function toJSON - * @memberof google.api.ClientLibrarySettings - * @instance - * @returns {Object.} JSON object - */ - ClientLibrarySettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ClientLibrarySettings - * @function getTypeUrl - * @memberof google.api.ClientLibrarySettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.ClientLibrarySettings"; - }; - - return ClientLibrarySettings; - })(); - - api.Publishing = (function() { - - /** - * Properties of a Publishing. - * @memberof google.api - * @interface IPublishing - * @property {Array.|null} [methodSettings] Publishing methodSettings - * @property {string|null} [newIssueUri] Publishing newIssueUri - * @property {string|null} [documentationUri] Publishing documentationUri - * @property {string|null} [apiShortName] Publishing apiShortName - * @property {string|null} [githubLabel] Publishing githubLabel - * @property {Array.|null} [codeownerGithubTeams] Publishing codeownerGithubTeams - * @property {string|null} [docTagPrefix] Publishing docTagPrefix - * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization - * @property {Array.|null} [librarySettings] Publishing librarySettings - * @property {string|null} [protoReferenceDocumentationUri] Publishing protoReferenceDocumentationUri - */ - - /** - * Constructs a new Publishing. - * @memberof google.api - * @classdesc Represents a Publishing. - * @implements IPublishing - * @constructor - * @param {google.api.IPublishing=} [properties] Properties to set - */ - function Publishing(properties) { - this.methodSettings = []; - this.codeownerGithubTeams = []; - this.librarySettings = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Publishing methodSettings. - * @member {Array.} methodSettings - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.methodSettings = $util.emptyArray; - - /** - * Publishing newIssueUri. - * @member {string} newIssueUri - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.newIssueUri = ""; - - /** - * Publishing documentationUri. - * @member {string} documentationUri - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.documentationUri = ""; - - /** - * Publishing apiShortName. - * @member {string} apiShortName - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.apiShortName = ""; - - /** - * Publishing githubLabel. - * @member {string} githubLabel - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.githubLabel = ""; - - /** - * Publishing codeownerGithubTeams. - * @member {Array.} codeownerGithubTeams - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.codeownerGithubTeams = $util.emptyArray; - - /** - * Publishing docTagPrefix. - * @member {string} docTagPrefix - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.docTagPrefix = ""; - - /** - * Publishing organization. - * @member {google.api.ClientLibraryOrganization} organization - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.organization = 0; - - /** - * Publishing librarySettings. - * @member {Array.} librarySettings - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.librarySettings = $util.emptyArray; - - /** - * Publishing protoReferenceDocumentationUri. - * @member {string} protoReferenceDocumentationUri - * @memberof google.api.Publishing - * @instance - */ - Publishing.prototype.protoReferenceDocumentationUri = ""; - - /** - * Creates a new Publishing instance using the specified properties. - * @function create - * @memberof google.api.Publishing - * @static - * @param {google.api.IPublishing=} [properties] Properties to set - * @returns {google.api.Publishing} Publishing instance - */ - Publishing.create = function create(properties) { - return new Publishing(properties); - }; - - /** - * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages. - * @function encode - * @memberof google.api.Publishing - * @static - * @param {google.api.IPublishing} message Publishing message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Publishing.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.methodSettings != null && message.methodSettings.length) - for (var i = 0; i < message.methodSettings.length; ++i) - $root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri")) - writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri); - if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri")) - writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri); - if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName")) - writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName); - if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel")) - writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel); - if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length) - for (var i = 0; i < message.codeownerGithubTeams.length; ++i) - writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]); - if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix")) - writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix); - if (message.organization != null && Object.hasOwnProperty.call(message, "organization")) - writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization); - if (message.librarySettings != null && message.librarySettings.length) - for (var i = 0; i < message.librarySettings.length; ++i) - $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); - if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri")) - writer.uint32(/* id 110, wireType 2 =*/882).string(message.protoReferenceDocumentationUri); - return writer; - }; - - /** - * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.Publishing - * @static - * @param {google.api.IPublishing} message Publishing message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Publishing.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Publishing message from the specified reader or buffer. - * @function decode - * @memberof google.api.Publishing - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.Publishing} Publishing - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Publishing.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - if (!(message.methodSettings && message.methodSettings.length)) - message.methodSettings = []; - message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32())); - break; - } - case 101: { - message.newIssueUri = reader.string(); - break; - } - case 102: { - message.documentationUri = reader.string(); - break; - } - case 103: { - message.apiShortName = reader.string(); - break; - } - case 104: { - message.githubLabel = reader.string(); - break; - } - case 105: { - if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length)) - message.codeownerGithubTeams = []; - message.codeownerGithubTeams.push(reader.string()); - break; - } - case 106: { - message.docTagPrefix = reader.string(); - break; - } - case 107: { - message.organization = reader.int32(); - break; - } - case 109: { - if (!(message.librarySettings && message.librarySettings.length)) - message.librarySettings = []; - message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32())); - break; - } - case 110: { - message.protoReferenceDocumentationUri = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Publishing message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.Publishing - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.Publishing} Publishing - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Publishing.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Publishing message. - * @function verify - * @memberof google.api.Publishing - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Publishing.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.methodSettings != null && message.hasOwnProperty("methodSettings")) { - if (!Array.isArray(message.methodSettings)) - return "methodSettings: array expected"; - for (var i = 0; i < message.methodSettings.length; ++i) { - var error = $root.google.api.MethodSettings.verify(message.methodSettings[i]); - if (error) - return "methodSettings." + error; - } - } - if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri")) - if (!$util.isString(message.newIssueUri)) - return "newIssueUri: string expected"; - if (message.documentationUri != null && message.hasOwnProperty("documentationUri")) - if (!$util.isString(message.documentationUri)) - return "documentationUri: string expected"; - if (message.apiShortName != null && message.hasOwnProperty("apiShortName")) - if (!$util.isString(message.apiShortName)) - return "apiShortName: string expected"; - if (message.githubLabel != null && message.hasOwnProperty("githubLabel")) - if (!$util.isString(message.githubLabel)) - return "githubLabel: string expected"; - if (message.codeownerGithubTeams != null && message.hasOwnProperty("codeownerGithubTeams")) { - if (!Array.isArray(message.codeownerGithubTeams)) - return "codeownerGithubTeams: array expected"; - for (var i = 0; i < message.codeownerGithubTeams.length; ++i) - if (!$util.isString(message.codeownerGithubTeams[i])) - return "codeownerGithubTeams: string[] expected"; - } - if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix")) - if (!$util.isString(message.docTagPrefix)) - return "docTagPrefix: string expected"; - if (message.organization != null && message.hasOwnProperty("organization")) - switch (message.organization) { - default: - return "organization: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) { - if (!Array.isArray(message.librarySettings)) - return "librarySettings: array expected"; - for (var i = 0; i < message.librarySettings.length; ++i) { - var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i]); - if (error) - return "librarySettings." + error; - } - } - if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri")) - if (!$util.isString(message.protoReferenceDocumentationUri)) - return "protoReferenceDocumentationUri: string expected"; - return null; - }; - - /** - * Creates a Publishing message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.Publishing - * @static - * @param {Object.} object Plain object - * @returns {google.api.Publishing} Publishing - */ - Publishing.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.Publishing) - return object; - var message = new $root.google.api.Publishing(); - if (object.methodSettings) { - if (!Array.isArray(object.methodSettings)) - throw TypeError(".google.api.Publishing.methodSettings: array expected"); - message.methodSettings = []; - for (var i = 0; i < object.methodSettings.length; ++i) { - if (typeof object.methodSettings[i] !== "object") - throw TypeError(".google.api.Publishing.methodSettings: object expected"); - message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]); - } - } - if (object.newIssueUri != null) - message.newIssueUri = String(object.newIssueUri); - if (object.documentationUri != null) - message.documentationUri = String(object.documentationUri); - if (object.apiShortName != null) - message.apiShortName = String(object.apiShortName); - if (object.githubLabel != null) - message.githubLabel = String(object.githubLabel); - if (object.codeownerGithubTeams) { - if (!Array.isArray(object.codeownerGithubTeams)) - throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected"); - message.codeownerGithubTeams = []; - for (var i = 0; i < object.codeownerGithubTeams.length; ++i) - message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]); - } - if (object.docTagPrefix != null) - message.docTagPrefix = String(object.docTagPrefix); - switch (object.organization) { - default: - if (typeof object.organization === "number") { - message.organization = object.organization; - break; - } - break; - case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED": - case 0: - message.organization = 0; - break; - case "CLOUD": - case 1: - message.organization = 1; - break; - case "ADS": - case 2: - message.organization = 2; - break; - case "PHOTOS": - case 3: - message.organization = 3; - break; - case "STREET_VIEW": - case 4: - message.organization = 4; - break; - case "SHOPPING": - case 5: - message.organization = 5; - break; - case "GEO": - case 6: - message.organization = 6; - break; - case "GENERATIVE_AI": - case 7: - message.organization = 7; - break; - } - if (object.librarySettings) { - if (!Array.isArray(object.librarySettings)) - throw TypeError(".google.api.Publishing.librarySettings: array expected"); - message.librarySettings = []; - for (var i = 0; i < object.librarySettings.length; ++i) { - if (typeof object.librarySettings[i] !== "object") - throw TypeError(".google.api.Publishing.librarySettings: object expected"); - message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]); - } - } - if (object.protoReferenceDocumentationUri != null) - message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri); - return message; - }; - - /** - * Creates a plain object from a Publishing message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.Publishing - * @static - * @param {google.api.Publishing} message Publishing - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Publishing.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.methodSettings = []; - object.codeownerGithubTeams = []; - object.librarySettings = []; - } - if (options.defaults) { - object.newIssueUri = ""; - object.documentationUri = ""; - object.apiShortName = ""; - object.githubLabel = ""; - object.docTagPrefix = ""; - object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0; - object.protoReferenceDocumentationUri = ""; - } - if (message.methodSettings && message.methodSettings.length) { - object.methodSettings = []; - for (var j = 0; j < message.methodSettings.length; ++j) - object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options); - } - if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri")) - object.newIssueUri = message.newIssueUri; - if (message.documentationUri != null && message.hasOwnProperty("documentationUri")) - object.documentationUri = message.documentationUri; - if (message.apiShortName != null && message.hasOwnProperty("apiShortName")) - object.apiShortName = message.apiShortName; - if (message.githubLabel != null && message.hasOwnProperty("githubLabel")) - object.githubLabel = message.githubLabel; - if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) { - object.codeownerGithubTeams = []; - for (var j = 0; j < message.codeownerGithubTeams.length; ++j) - object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j]; - } - if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix")) - object.docTagPrefix = message.docTagPrefix; - if (message.organization != null && message.hasOwnProperty("organization")) - object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization; - if (message.librarySettings && message.librarySettings.length) { - object.librarySettings = []; - for (var j = 0; j < message.librarySettings.length; ++j) - object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options); - } - if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri")) - object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri; - return object; - }; - - /** - * Converts this Publishing to JSON. - * @function toJSON - * @memberof google.api.Publishing - * @instance - * @returns {Object.} JSON object - */ - Publishing.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Publishing - * @function getTypeUrl - * @memberof google.api.Publishing - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.Publishing"; - }; - - return Publishing; - })(); - - api.JavaSettings = (function() { - - /** - * Properties of a JavaSettings. - * @memberof google.api - * @interface IJavaSettings - * @property {string|null} [libraryPackage] JavaSettings libraryPackage - * @property {Object.|null} [serviceClassNames] JavaSettings serviceClassNames - * @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common - */ - - /** - * Constructs a new JavaSettings. - * @memberof google.api - * @classdesc Represents a JavaSettings. - * @implements IJavaSettings - * @constructor - * @param {google.api.IJavaSettings=} [properties] Properties to set - */ - function JavaSettings(properties) { - this.serviceClassNames = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * JavaSettings libraryPackage. - * @member {string} libraryPackage - * @memberof google.api.JavaSettings - * @instance - */ - JavaSettings.prototype.libraryPackage = ""; - - /** - * JavaSettings serviceClassNames. - * @member {Object.} serviceClassNames - * @memberof google.api.JavaSettings - * @instance - */ - JavaSettings.prototype.serviceClassNames = $util.emptyObject; - - /** - * JavaSettings common. - * @member {google.api.ICommonLanguageSettings|null|undefined} common - * @memberof google.api.JavaSettings - * @instance - */ - JavaSettings.prototype.common = null; - - /** - * Creates a new JavaSettings instance using the specified properties. - * @function create - * @memberof google.api.JavaSettings - * @static - * @param {google.api.IJavaSettings=} [properties] Properties to set - * @returns {google.api.JavaSettings} JavaSettings instance - */ - JavaSettings.create = function create(properties) { - return new JavaSettings(properties); - }; - - /** - * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages. - * @function encode - * @memberof google.api.JavaSettings - * @static - * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - JavaSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage); - if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames")) - for (var keys = Object.keys(message.serviceClassNames), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.serviceClassNames[keys[i]]).ldelim(); - if (message.common != null && Object.hasOwnProperty.call(message, "common")) - $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.JavaSettings - * @static - * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - JavaSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a JavaSettings message from the specified reader or buffer. - * @function decode - * @memberof google.api.JavaSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.JavaSettings} JavaSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - JavaSettings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.libraryPackage = reader.string(); - break; - } - case 2: { - if (message.serviceClassNames === $util.emptyObject) - message.serviceClassNames = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.serviceClassNames[key] = value; - break; - } - case 3: { - message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a JavaSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.JavaSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.JavaSettings} JavaSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - JavaSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a JavaSettings message. - * @function verify - * @memberof google.api.JavaSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - JavaSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage")) - if (!$util.isString(message.libraryPackage)) - return "libraryPackage: string expected"; - if (message.serviceClassNames != null && message.hasOwnProperty("serviceClassNames")) { - if (!$util.isObject(message.serviceClassNames)) - return "serviceClassNames: object expected"; - var key = Object.keys(message.serviceClassNames); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.serviceClassNames[key[i]])) - return "serviceClassNames: string{k:string} expected"; - } - if (message.common != null && message.hasOwnProperty("common")) { - var error = $root.google.api.CommonLanguageSettings.verify(message.common); - if (error) - return "common." + error; - } - return null; - }; - - /** - * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.JavaSettings - * @static - * @param {Object.} object Plain object - * @returns {google.api.JavaSettings} JavaSettings - */ - JavaSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.JavaSettings) - return object; - var message = new $root.google.api.JavaSettings(); - if (object.libraryPackage != null) - message.libraryPackage = String(object.libraryPackage); - if (object.serviceClassNames) { - if (typeof object.serviceClassNames !== "object") - throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected"); - message.serviceClassNames = {}; - for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i) - message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]); - } - if (object.common != null) { - if (typeof object.common !== "object") - throw TypeError(".google.api.JavaSettings.common: object expected"); - message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); - } - return message; - }; - - /** - * Creates a plain object from a JavaSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.JavaSettings - * @static - * @param {google.api.JavaSettings} message JavaSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - JavaSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) - object.serviceClassNames = {}; - if (options.defaults) { - object.libraryPackage = ""; - object.common = null; - } - if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage")) - object.libraryPackage = message.libraryPackage; - var keys2; - if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) { - object.serviceClassNames = {}; - for (var j = 0; j < keys2.length; ++j) - object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]]; - } - if (message.common != null && message.hasOwnProperty("common")) - object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); - return object; - }; - - /** - * Converts this JavaSettings to JSON. - * @function toJSON - * @memberof google.api.JavaSettings - * @instance - * @returns {Object.} JSON object - */ - JavaSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for JavaSettings - * @function getTypeUrl - * @memberof google.api.JavaSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.JavaSettings"; - }; - - return JavaSettings; - })(); - - api.CppSettings = (function() { - - /** - * Properties of a CppSettings. - * @memberof google.api - * @interface ICppSettings - * @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common - */ - - /** - * Constructs a new CppSettings. - * @memberof google.api - * @classdesc Represents a CppSettings. - * @implements ICppSettings - * @constructor - * @param {google.api.ICppSettings=} [properties] Properties to set - */ - function CppSettings(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CppSettings common. - * @member {google.api.ICommonLanguageSettings|null|undefined} common - * @memberof google.api.CppSettings - * @instance - */ - CppSettings.prototype.common = null; - - /** - * Creates a new CppSettings instance using the specified properties. - * @function create - * @memberof google.api.CppSettings - * @static - * @param {google.api.ICppSettings=} [properties] Properties to set - * @returns {google.api.CppSettings} CppSettings instance - */ - CppSettings.create = function create(properties) { - return new CppSettings(properties); - }; - - /** - * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages. - * @function encode - * @memberof google.api.CppSettings - * @static - * @param {google.api.ICppSettings} message CppSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CppSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.common != null && Object.hasOwnProperty.call(message, "common")) - $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.CppSettings - * @static - * @param {google.api.ICppSettings} message CppSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CppSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CppSettings message from the specified reader or buffer. - * @function decode - * @memberof google.api.CppSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.CppSettings} CppSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CppSettings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CppSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.CppSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.CppSettings} CppSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CppSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CppSettings message. - * @function verify - * @memberof google.api.CppSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CppSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.common != null && message.hasOwnProperty("common")) { - var error = $root.google.api.CommonLanguageSettings.verify(message.common); - if (error) - return "common." + error; - } - return null; - }; - - /** - * Creates a CppSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.CppSettings - * @static - * @param {Object.} object Plain object - * @returns {google.api.CppSettings} CppSettings - */ - CppSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.CppSettings) - return object; - var message = new $root.google.api.CppSettings(); - if (object.common != null) { - if (typeof object.common !== "object") - throw TypeError(".google.api.CppSettings.common: object expected"); - message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); - } - return message; - }; - - /** - * Creates a plain object from a CppSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.CppSettings - * @static - * @param {google.api.CppSettings} message CppSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CppSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.common = null; - if (message.common != null && message.hasOwnProperty("common")) - object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); - return object; - }; - - /** - * Converts this CppSettings to JSON. - * @function toJSON - * @memberof google.api.CppSettings - * @instance - * @returns {Object.} JSON object - */ - CppSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CppSettings - * @function getTypeUrl - * @memberof google.api.CppSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.CppSettings"; - }; - - return CppSettings; - })(); - - api.PhpSettings = (function() { - - /** - * Properties of a PhpSettings. - * @memberof google.api - * @interface IPhpSettings - * @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common - */ - - /** - * Constructs a new PhpSettings. - * @memberof google.api - * @classdesc Represents a PhpSettings. - * @implements IPhpSettings - * @constructor - * @param {google.api.IPhpSettings=} [properties] Properties to set - */ - function PhpSettings(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PhpSettings common. - * @member {google.api.ICommonLanguageSettings|null|undefined} common - * @memberof google.api.PhpSettings - * @instance - */ - PhpSettings.prototype.common = null; - - /** - * Creates a new PhpSettings instance using the specified properties. - * @function create - * @memberof google.api.PhpSettings - * @static - * @param {google.api.IPhpSettings=} [properties] Properties to set - * @returns {google.api.PhpSettings} PhpSettings instance - */ - PhpSettings.create = function create(properties) { - return new PhpSettings(properties); - }; - - /** - * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages. - * @function encode - * @memberof google.api.PhpSettings - * @static - * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PhpSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.common != null && Object.hasOwnProperty.call(message, "common")) - $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.PhpSettings - * @static - * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PhpSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PhpSettings message from the specified reader or buffer. - * @function decode - * @memberof google.api.PhpSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.PhpSettings} PhpSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PhpSettings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PhpSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.PhpSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.PhpSettings} PhpSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PhpSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PhpSettings message. - * @function verify - * @memberof google.api.PhpSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PhpSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.common != null && message.hasOwnProperty("common")) { - var error = $root.google.api.CommonLanguageSettings.verify(message.common); - if (error) - return "common." + error; - } - return null; - }; - - /** - * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.PhpSettings - * @static - * @param {Object.} object Plain object - * @returns {google.api.PhpSettings} PhpSettings - */ - PhpSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.PhpSettings) - return object; - var message = new $root.google.api.PhpSettings(); - if (object.common != null) { - if (typeof object.common !== "object") - throw TypeError(".google.api.PhpSettings.common: object expected"); - message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); - } - return message; - }; - - /** - * Creates a plain object from a PhpSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.PhpSettings - * @static - * @param {google.api.PhpSettings} message PhpSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PhpSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.common = null; - if (message.common != null && message.hasOwnProperty("common")) - object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); - return object; - }; - - /** - * Converts this PhpSettings to JSON. - * @function toJSON - * @memberof google.api.PhpSettings - * @instance - * @returns {Object.} JSON object - */ - PhpSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for PhpSettings - * @function getTypeUrl - * @memberof google.api.PhpSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.PhpSettings"; - }; - - return PhpSettings; - })(); - - api.PythonSettings = (function() { - - /** - * Properties of a PythonSettings. - * @memberof google.api - * @interface IPythonSettings - * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common - */ - - /** - * Constructs a new PythonSettings. - * @memberof google.api - * @classdesc Represents a PythonSettings. - * @implements IPythonSettings - * @constructor - * @param {google.api.IPythonSettings=} [properties] Properties to set - */ - function PythonSettings(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PythonSettings common. - * @member {google.api.ICommonLanguageSettings|null|undefined} common - * @memberof google.api.PythonSettings - * @instance - */ - PythonSettings.prototype.common = null; - - /** - * Creates a new PythonSettings instance using the specified properties. - * @function create - * @memberof google.api.PythonSettings - * @static - * @param {google.api.IPythonSettings=} [properties] Properties to set - * @returns {google.api.PythonSettings} PythonSettings instance - */ - PythonSettings.create = function create(properties) { - return new PythonSettings(properties); - }; - - /** - * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages. - * @function encode - * @memberof google.api.PythonSettings - * @static - * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PythonSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.common != null && Object.hasOwnProperty.call(message, "common")) - $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.PythonSettings - * @static - * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PythonSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PythonSettings message from the specified reader or buffer. - * @function decode - * @memberof google.api.PythonSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.PythonSettings} PythonSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PythonSettings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PythonSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.PythonSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.PythonSettings} PythonSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PythonSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PythonSettings message. - * @function verify - * @memberof google.api.PythonSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PythonSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.common != null && message.hasOwnProperty("common")) { - var error = $root.google.api.CommonLanguageSettings.verify(message.common); - if (error) - return "common." + error; - } - return null; - }; - - /** - * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.PythonSettings - * @static - * @param {Object.} object Plain object - * @returns {google.api.PythonSettings} PythonSettings - */ - PythonSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.PythonSettings) - return object; - var message = new $root.google.api.PythonSettings(); - if (object.common != null) { - if (typeof object.common !== "object") - throw TypeError(".google.api.PythonSettings.common: object expected"); - message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); - } - return message; - }; - - /** - * Creates a plain object from a PythonSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.PythonSettings - * @static - * @param {google.api.PythonSettings} message PythonSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PythonSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.common = null; - if (message.common != null && message.hasOwnProperty("common")) - object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); - return object; - }; - - /** - * Converts this PythonSettings to JSON. - * @function toJSON - * @memberof google.api.PythonSettings - * @instance - * @returns {Object.} JSON object - */ - PythonSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for PythonSettings - * @function getTypeUrl - * @memberof google.api.PythonSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.PythonSettings"; - }; - - return PythonSettings; - })(); - - api.NodeSettings = (function() { - - /** - * Properties of a NodeSettings. - * @memberof google.api - * @interface INodeSettings - * @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common - */ - - /** - * Constructs a new NodeSettings. - * @memberof google.api - * @classdesc Represents a NodeSettings. - * @implements INodeSettings - * @constructor - * @param {google.api.INodeSettings=} [properties] Properties to set - */ - function NodeSettings(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeSettings common. - * @member {google.api.ICommonLanguageSettings|null|undefined} common - * @memberof google.api.NodeSettings - * @instance - */ - NodeSettings.prototype.common = null; - - /** - * Creates a new NodeSettings instance using the specified properties. - * @function create - * @memberof google.api.NodeSettings - * @static - * @param {google.api.INodeSettings=} [properties] Properties to set - * @returns {google.api.NodeSettings} NodeSettings instance - */ - NodeSettings.create = function create(properties) { - return new NodeSettings(properties); - }; - - /** - * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages. - * @function encode - * @memberof google.api.NodeSettings - * @static - * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.common != null && Object.hasOwnProperty.call(message, "common")) - $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.NodeSettings - * @static - * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NodeSettings message from the specified reader or buffer. - * @function decode - * @memberof google.api.NodeSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.NodeSettings} NodeSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeSettings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NodeSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.NodeSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.NodeSettings} NodeSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NodeSettings message. - * @function verify - * @memberof google.api.NodeSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.common != null && message.hasOwnProperty("common")) { - var error = $root.google.api.CommonLanguageSettings.verify(message.common); - if (error) - return "common." + error; - } - return null; - }; - - /** - * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.NodeSettings - * @static - * @param {Object.} object Plain object - * @returns {google.api.NodeSettings} NodeSettings - */ - NodeSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.NodeSettings) - return object; - var message = new $root.google.api.NodeSettings(); - if (object.common != null) { - if (typeof object.common !== "object") - throw TypeError(".google.api.NodeSettings.common: object expected"); - message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); - } - return message; - }; - - /** - * Creates a plain object from a NodeSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.NodeSettings - * @static - * @param {google.api.NodeSettings} message NodeSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NodeSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.common = null; - if (message.common != null && message.hasOwnProperty("common")) - object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); - return object; - }; - - /** - * Converts this NodeSettings to JSON. - * @function toJSON - * @memberof google.api.NodeSettings - * @instance - * @returns {Object.} JSON object - */ - NodeSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for NodeSettings - * @function getTypeUrl - * @memberof google.api.NodeSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.NodeSettings"; - }; - - return NodeSettings; - })(); - - api.DotnetSettings = (function() { - - /** - * Properties of a DotnetSettings. - * @memberof google.api - * @interface IDotnetSettings - * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common - * @property {Object.|null} [renamedServices] DotnetSettings renamedServices - * @property {Object.|null} [renamedResources] DotnetSettings renamedResources - * @property {Array.|null} [ignoredResources] DotnetSettings ignoredResources - * @property {Array.|null} [forcedNamespaceAliases] DotnetSettings forcedNamespaceAliases - * @property {Array.|null} [handwrittenSignatures] DotnetSettings handwrittenSignatures - */ - - /** - * Constructs a new DotnetSettings. - * @memberof google.api - * @classdesc Represents a DotnetSettings. - * @implements IDotnetSettings - * @constructor - * @param {google.api.IDotnetSettings=} [properties] Properties to set - */ - function DotnetSettings(properties) { - this.renamedServices = {}; - this.renamedResources = {}; - this.ignoredResources = []; - this.forcedNamespaceAliases = []; - this.handwrittenSignatures = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DotnetSettings common. - * @member {google.api.ICommonLanguageSettings|null|undefined} common - * @memberof google.api.DotnetSettings - * @instance - */ - DotnetSettings.prototype.common = null; - - /** - * DotnetSettings renamedServices. - * @member {Object.} renamedServices - * @memberof google.api.DotnetSettings - * @instance - */ - DotnetSettings.prototype.renamedServices = $util.emptyObject; - - /** - * DotnetSettings renamedResources. - * @member {Object.} renamedResources - * @memberof google.api.DotnetSettings - * @instance - */ - DotnetSettings.prototype.renamedResources = $util.emptyObject; - - /** - * DotnetSettings ignoredResources. - * @member {Array.} ignoredResources - * @memberof google.api.DotnetSettings - * @instance - */ - DotnetSettings.prototype.ignoredResources = $util.emptyArray; - - /** - * DotnetSettings forcedNamespaceAliases. - * @member {Array.} forcedNamespaceAliases - * @memberof google.api.DotnetSettings - * @instance - */ - DotnetSettings.prototype.forcedNamespaceAliases = $util.emptyArray; - - /** - * DotnetSettings handwrittenSignatures. - * @member {Array.} handwrittenSignatures - * @memberof google.api.DotnetSettings - * @instance - */ - DotnetSettings.prototype.handwrittenSignatures = $util.emptyArray; - - /** - * Creates a new DotnetSettings instance using the specified properties. - * @function create - * @memberof google.api.DotnetSettings - * @static - * @param {google.api.IDotnetSettings=} [properties] Properties to set - * @returns {google.api.DotnetSettings} DotnetSettings instance - */ - DotnetSettings.create = function create(properties) { - return new DotnetSettings(properties); - }; - - /** - * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages. - * @function encode - * @memberof google.api.DotnetSettings - * @static - * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DotnetSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.common != null && Object.hasOwnProperty.call(message, "common")) - $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices")) - for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedServices[keys[i]]).ldelim(); - if (message.renamedResources != null && Object.hasOwnProperty.call(message, "renamedResources")) - for (var keys = Object.keys(message.renamedResources), i = 0; i < keys.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedResources[keys[i]]).ldelim(); - if (message.ignoredResources != null && message.ignoredResources.length) - for (var i = 0; i < message.ignoredResources.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.ignoredResources[i]); - if (message.forcedNamespaceAliases != null && message.forcedNamespaceAliases.length) - for (var i = 0; i < message.forcedNamespaceAliases.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.forcedNamespaceAliases[i]); - if (message.handwrittenSignatures != null && message.handwrittenSignatures.length) - for (var i = 0; i < message.handwrittenSignatures.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.handwrittenSignatures[i]); - return writer; - }; - - /** - * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.DotnetSettings - * @static - * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DotnetSettings message from the specified reader or buffer. - * @function decode - * @memberof google.api.DotnetSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.DotnetSettings} DotnetSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DotnetSettings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); - break; - } - case 2: { - if (message.renamedServices === $util.emptyObject) - message.renamedServices = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.renamedServices[key] = value; - break; - } - case 3: { - if (message.renamedResources === $util.emptyObject) - message.renamedResources = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.renamedResources[key] = value; - break; - } - case 4: { - if (!(message.ignoredResources && message.ignoredResources.length)) - message.ignoredResources = []; - message.ignoredResources.push(reader.string()); - break; - } - case 5: { - if (!(message.forcedNamespaceAliases && message.forcedNamespaceAliases.length)) - message.forcedNamespaceAliases = []; - message.forcedNamespaceAliases.push(reader.string()); - break; - } - case 6: { - if (!(message.handwrittenSignatures && message.handwrittenSignatures.length)) - message.handwrittenSignatures = []; - message.handwrittenSignatures.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DotnetSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.DotnetSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.DotnetSettings} DotnetSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DotnetSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DotnetSettings message. - * @function verify - * @memberof google.api.DotnetSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DotnetSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.common != null && message.hasOwnProperty("common")) { - var error = $root.google.api.CommonLanguageSettings.verify(message.common); - if (error) - return "common." + error; - } - if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) { - if (!$util.isObject(message.renamedServices)) - return "renamedServices: object expected"; - var key = Object.keys(message.renamedServices); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.renamedServices[key[i]])) - return "renamedServices: string{k:string} expected"; - } - if (message.renamedResources != null && message.hasOwnProperty("renamedResources")) { - if (!$util.isObject(message.renamedResources)) - return "renamedResources: object expected"; - var key = Object.keys(message.renamedResources); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.renamedResources[key[i]])) - return "renamedResources: string{k:string} expected"; - } - if (message.ignoredResources != null && message.hasOwnProperty("ignoredResources")) { - if (!Array.isArray(message.ignoredResources)) - return "ignoredResources: array expected"; - for (var i = 0; i < message.ignoredResources.length; ++i) - if (!$util.isString(message.ignoredResources[i])) - return "ignoredResources: string[] expected"; - } - if (message.forcedNamespaceAliases != null && message.hasOwnProperty("forcedNamespaceAliases")) { - if (!Array.isArray(message.forcedNamespaceAliases)) - return "forcedNamespaceAliases: array expected"; - for (var i = 0; i < message.forcedNamespaceAliases.length; ++i) - if (!$util.isString(message.forcedNamespaceAliases[i])) - return "forcedNamespaceAliases: string[] expected"; - } - if (message.handwrittenSignatures != null && message.hasOwnProperty("handwrittenSignatures")) { - if (!Array.isArray(message.handwrittenSignatures)) - return "handwrittenSignatures: array expected"; - for (var i = 0; i < message.handwrittenSignatures.length; ++i) - if (!$util.isString(message.handwrittenSignatures[i])) - return "handwrittenSignatures: string[] expected"; - } - return null; - }; - - /** - * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.DotnetSettings - * @static - * @param {Object.} object Plain object - * @returns {google.api.DotnetSettings} DotnetSettings - */ - DotnetSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.DotnetSettings) - return object; - var message = new $root.google.api.DotnetSettings(); - if (object.common != null) { - if (typeof object.common !== "object") - throw TypeError(".google.api.DotnetSettings.common: object expected"); - message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); - } - if (object.renamedServices) { - if (typeof object.renamedServices !== "object") - throw TypeError(".google.api.DotnetSettings.renamedServices: object expected"); - message.renamedServices = {}; - for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i) - message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]); - } - if (object.renamedResources) { - if (typeof object.renamedResources !== "object") - throw TypeError(".google.api.DotnetSettings.renamedResources: object expected"); - message.renamedResources = {}; - for (var keys = Object.keys(object.renamedResources), i = 0; i < keys.length; ++i) - message.renamedResources[keys[i]] = String(object.renamedResources[keys[i]]); - } - if (object.ignoredResources) { - if (!Array.isArray(object.ignoredResources)) - throw TypeError(".google.api.DotnetSettings.ignoredResources: array expected"); - message.ignoredResources = []; - for (var i = 0; i < object.ignoredResources.length; ++i) - message.ignoredResources[i] = String(object.ignoredResources[i]); - } - if (object.forcedNamespaceAliases) { - if (!Array.isArray(object.forcedNamespaceAliases)) - throw TypeError(".google.api.DotnetSettings.forcedNamespaceAliases: array expected"); - message.forcedNamespaceAliases = []; - for (var i = 0; i < object.forcedNamespaceAliases.length; ++i) - message.forcedNamespaceAliases[i] = String(object.forcedNamespaceAliases[i]); - } - if (object.handwrittenSignatures) { - if (!Array.isArray(object.handwrittenSignatures)) - throw TypeError(".google.api.DotnetSettings.handwrittenSignatures: array expected"); - message.handwrittenSignatures = []; - for (var i = 0; i < object.handwrittenSignatures.length; ++i) - message.handwrittenSignatures[i] = String(object.handwrittenSignatures[i]); - } - return message; - }; - - /** - * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.DotnetSettings - * @static - * @param {google.api.DotnetSettings} message DotnetSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DotnetSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.ignoredResources = []; - object.forcedNamespaceAliases = []; - object.handwrittenSignatures = []; - } - if (options.objects || options.defaults) { - object.renamedServices = {}; - object.renamedResources = {}; - } - if (options.defaults) - object.common = null; - if (message.common != null && message.hasOwnProperty("common")) - object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); - var keys2; - if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) { - object.renamedServices = {}; - for (var j = 0; j < keys2.length; ++j) - object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]]; - } - if (message.renamedResources && (keys2 = Object.keys(message.renamedResources)).length) { - object.renamedResources = {}; - for (var j = 0; j < keys2.length; ++j) - object.renamedResources[keys2[j]] = message.renamedResources[keys2[j]]; - } - if (message.ignoredResources && message.ignoredResources.length) { - object.ignoredResources = []; - for (var j = 0; j < message.ignoredResources.length; ++j) - object.ignoredResources[j] = message.ignoredResources[j]; - } - if (message.forcedNamespaceAliases && message.forcedNamespaceAliases.length) { - object.forcedNamespaceAliases = []; - for (var j = 0; j < message.forcedNamespaceAliases.length; ++j) - object.forcedNamespaceAliases[j] = message.forcedNamespaceAliases[j]; - } - if (message.handwrittenSignatures && message.handwrittenSignatures.length) { - object.handwrittenSignatures = []; - for (var j = 0; j < message.handwrittenSignatures.length; ++j) - object.handwrittenSignatures[j] = message.handwrittenSignatures[j]; - } - return object; - }; - - /** - * Converts this DotnetSettings to JSON. - * @function toJSON - * @memberof google.api.DotnetSettings - * @instance - * @returns {Object.} JSON object - */ - DotnetSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for DotnetSettings - * @function getTypeUrl - * @memberof google.api.DotnetSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.DotnetSettings"; - }; - - return DotnetSettings; - })(); - - api.RubySettings = (function() { - - /** - * Properties of a RubySettings. - * @memberof google.api - * @interface IRubySettings - * @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common - */ - - /** - * Constructs a new RubySettings. - * @memberof google.api - * @classdesc Represents a RubySettings. - * @implements IRubySettings - * @constructor - * @param {google.api.IRubySettings=} [properties] Properties to set - */ - function RubySettings(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RubySettings common. - * @member {google.api.ICommonLanguageSettings|null|undefined} common - * @memberof google.api.RubySettings - * @instance - */ - RubySettings.prototype.common = null; - - /** - * Creates a new RubySettings instance using the specified properties. - * @function create - * @memberof google.api.RubySettings - * @static - * @param {google.api.IRubySettings=} [properties] Properties to set - * @returns {google.api.RubySettings} RubySettings instance - */ - RubySettings.create = function create(properties) { - return new RubySettings(properties); - }; - - /** - * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages. - * @function encode - * @memberof google.api.RubySettings - * @static - * @param {google.api.IRubySettings} message RubySettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RubySettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.common != null && Object.hasOwnProperty.call(message, "common")) - $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.RubySettings - * @static - * @param {google.api.IRubySettings} message RubySettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RubySettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RubySettings message from the specified reader or buffer. - * @function decode - * @memberof google.api.RubySettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.RubySettings} RubySettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RubySettings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RubySettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.RubySettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.RubySettings} RubySettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RubySettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RubySettings message. - * @function verify - * @memberof google.api.RubySettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RubySettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.common != null && message.hasOwnProperty("common")) { - var error = $root.google.api.CommonLanguageSettings.verify(message.common); - if (error) - return "common." + error; - } - return null; - }; - - /** - * Creates a RubySettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.RubySettings - * @static - * @param {Object.} object Plain object - * @returns {google.api.RubySettings} RubySettings - */ - RubySettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.RubySettings) - return object; - var message = new $root.google.api.RubySettings(); - if (object.common != null) { - if (typeof object.common !== "object") - throw TypeError(".google.api.RubySettings.common: object expected"); - message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); - } - return message; - }; - - /** - * Creates a plain object from a RubySettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.RubySettings - * @static - * @param {google.api.RubySettings} message RubySettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RubySettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.common = null; - if (message.common != null && message.hasOwnProperty("common")) - object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); - return object; - }; - - /** - * Converts this RubySettings to JSON. - * @function toJSON - * @memberof google.api.RubySettings - * @instance - * @returns {Object.} JSON object - */ - RubySettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for RubySettings - * @function getTypeUrl - * @memberof google.api.RubySettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.RubySettings"; - }; - - return RubySettings; - })(); - - api.GoSettings = (function() { - - /** - * Properties of a GoSettings. - * @memberof google.api - * @interface IGoSettings - * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common - */ - - /** - * Constructs a new GoSettings. - * @memberof google.api - * @classdesc Represents a GoSettings. - * @implements IGoSettings - * @constructor - * @param {google.api.IGoSettings=} [properties] Properties to set - */ - function GoSettings(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GoSettings common. - * @member {google.api.ICommonLanguageSettings|null|undefined} common - * @memberof google.api.GoSettings - * @instance - */ - GoSettings.prototype.common = null; - - /** - * Creates a new GoSettings instance using the specified properties. - * @function create - * @memberof google.api.GoSettings - * @static - * @param {google.api.IGoSettings=} [properties] Properties to set - * @returns {google.api.GoSettings} GoSettings instance - */ - GoSettings.create = function create(properties) { - return new GoSettings(properties); - }; - - /** - * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages. - * @function encode - * @memberof google.api.GoSettings - * @static - * @param {google.api.IGoSettings} message GoSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GoSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.common != null && Object.hasOwnProperty.call(message, "common")) - $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.GoSettings - * @static - * @param {google.api.IGoSettings} message GoSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GoSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GoSettings message from the specified reader or buffer. - * @function decode - * @memberof google.api.GoSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.GoSettings} GoSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GoSettings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GoSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.GoSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.GoSettings} GoSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GoSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GoSettings message. - * @function verify - * @memberof google.api.GoSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GoSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.common != null && message.hasOwnProperty("common")) { - var error = $root.google.api.CommonLanguageSettings.verify(message.common); - if (error) - return "common." + error; - } - return null; - }; - - /** - * Creates a GoSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.GoSettings - * @static - * @param {Object.} object Plain object - * @returns {google.api.GoSettings} GoSettings - */ - GoSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.GoSettings) - return object; - var message = new $root.google.api.GoSettings(); - if (object.common != null) { - if (typeof object.common !== "object") - throw TypeError(".google.api.GoSettings.common: object expected"); - message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); - } - return message; - }; - - /** - * Creates a plain object from a GoSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.GoSettings - * @static - * @param {google.api.GoSettings} message GoSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GoSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.common = null; - if (message.common != null && message.hasOwnProperty("common")) - object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); - return object; - }; - - /** - * Converts this GoSettings to JSON. - * @function toJSON - * @memberof google.api.GoSettings - * @instance - * @returns {Object.} JSON object - */ - GoSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GoSettings - * @function getTypeUrl - * @memberof google.api.GoSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GoSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.GoSettings"; - }; - - return GoSettings; - })(); - - api.MethodSettings = (function() { - - /** - * Properties of a MethodSettings. - * @memberof google.api - * @interface IMethodSettings - * @property {string|null} [selector] MethodSettings selector - * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning - * @property {Array.|null} [autoPopulatedFields] MethodSettings autoPopulatedFields - */ - - /** - * Constructs a new MethodSettings. - * @memberof google.api - * @classdesc Represents a MethodSettings. - * @implements IMethodSettings - * @constructor - * @param {google.api.IMethodSettings=} [properties] Properties to set - */ - function MethodSettings(properties) { - this.autoPopulatedFields = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MethodSettings selector. - * @member {string} selector - * @memberof google.api.MethodSettings - * @instance - */ - MethodSettings.prototype.selector = ""; - - /** - * MethodSettings longRunning. - * @member {google.api.MethodSettings.ILongRunning|null|undefined} longRunning - * @memberof google.api.MethodSettings - * @instance - */ - MethodSettings.prototype.longRunning = null; - - /** - * MethodSettings autoPopulatedFields. - * @member {Array.} autoPopulatedFields - * @memberof google.api.MethodSettings - * @instance - */ - MethodSettings.prototype.autoPopulatedFields = $util.emptyArray; - - /** - * Creates a new MethodSettings instance using the specified properties. - * @function create - * @memberof google.api.MethodSettings - * @static - * @param {google.api.IMethodSettings=} [properties] Properties to set - * @returns {google.api.MethodSettings} MethodSettings instance - */ - MethodSettings.create = function create(properties) { - return new MethodSettings(properties); - }; - - /** - * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages. - * @function encode - * @memberof google.api.MethodSettings - * @static - * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MethodSettings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); - if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning")) - $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.autoPopulatedFields != null && message.autoPopulatedFields.length) - for (var i = 0; i < message.autoPopulatedFields.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.autoPopulatedFields[i]); - return writer; - }; - - /** - * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.MethodSettings - * @static - * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MethodSettings.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MethodSettings message from the specified reader or buffer. - * @function decode - * @memberof google.api.MethodSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.MethodSettings} MethodSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MethodSettings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.selector = reader.string(); - break; - } - case 2: { - message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32()); - break; - } - case 3: { - if (!(message.autoPopulatedFields && message.autoPopulatedFields.length)) - message.autoPopulatedFields = []; - message.autoPopulatedFields.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MethodSettings message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.MethodSettings - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.MethodSettings} MethodSettings - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MethodSettings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MethodSettings message. - * @function verify - * @memberof google.api.MethodSettings - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MethodSettings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.selector != null && message.hasOwnProperty("selector")) - if (!$util.isString(message.selector)) - return "selector: string expected"; - if (message.longRunning != null && message.hasOwnProperty("longRunning")) { - var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning); - if (error) - return "longRunning." + error; - } - if (message.autoPopulatedFields != null && message.hasOwnProperty("autoPopulatedFields")) { - if (!Array.isArray(message.autoPopulatedFields)) - return "autoPopulatedFields: array expected"; - for (var i = 0; i < message.autoPopulatedFields.length; ++i) - if (!$util.isString(message.autoPopulatedFields[i])) - return "autoPopulatedFields: string[] expected"; - } - return null; - }; - - /** - * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.MethodSettings - * @static - * @param {Object.} object Plain object - * @returns {google.api.MethodSettings} MethodSettings - */ - MethodSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.MethodSettings) - return object; - var message = new $root.google.api.MethodSettings(); - if (object.selector != null) - message.selector = String(object.selector); - if (object.longRunning != null) { - if (typeof object.longRunning !== "object") - throw TypeError(".google.api.MethodSettings.longRunning: object expected"); - message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning); - } - if (object.autoPopulatedFields) { - if (!Array.isArray(object.autoPopulatedFields)) - throw TypeError(".google.api.MethodSettings.autoPopulatedFields: array expected"); - message.autoPopulatedFields = []; - for (var i = 0; i < object.autoPopulatedFields.length; ++i) - message.autoPopulatedFields[i] = String(object.autoPopulatedFields[i]); - } - return message; - }; - - /** - * Creates a plain object from a MethodSettings message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.MethodSettings - * @static - * @param {google.api.MethodSettings} message MethodSettings - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MethodSettings.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.autoPopulatedFields = []; - if (options.defaults) { - object.selector = ""; - object.longRunning = null; - } - if (message.selector != null && message.hasOwnProperty("selector")) - object.selector = message.selector; - if (message.longRunning != null && message.hasOwnProperty("longRunning")) - object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options); - if (message.autoPopulatedFields && message.autoPopulatedFields.length) { - object.autoPopulatedFields = []; - for (var j = 0; j < message.autoPopulatedFields.length; ++j) - object.autoPopulatedFields[j] = message.autoPopulatedFields[j]; - } - return object; - }; - - /** - * Converts this MethodSettings to JSON. - * @function toJSON - * @memberof google.api.MethodSettings - * @instance - * @returns {Object.} JSON object - */ - MethodSettings.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for MethodSettings - * @function getTypeUrl - * @memberof google.api.MethodSettings - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MethodSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.MethodSettings"; - }; - - MethodSettings.LongRunning = (function() { - - /** - * Properties of a LongRunning. - * @memberof google.api.MethodSettings - * @interface ILongRunning - * @property {google.protobuf.IDuration|null} [initialPollDelay] LongRunning initialPollDelay - * @property {number|null} [pollDelayMultiplier] LongRunning pollDelayMultiplier - * @property {google.protobuf.IDuration|null} [maxPollDelay] LongRunning maxPollDelay - * @property {google.protobuf.IDuration|null} [totalPollTimeout] LongRunning totalPollTimeout - */ - - /** - * Constructs a new LongRunning. - * @memberof google.api.MethodSettings - * @classdesc Represents a LongRunning. - * @implements ILongRunning - * @constructor - * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set - */ - function LongRunning(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LongRunning initialPollDelay. - * @member {google.protobuf.IDuration|null|undefined} initialPollDelay - * @memberof google.api.MethodSettings.LongRunning - * @instance - */ - LongRunning.prototype.initialPollDelay = null; - - /** - * LongRunning pollDelayMultiplier. - * @member {number} pollDelayMultiplier - * @memberof google.api.MethodSettings.LongRunning - * @instance - */ - LongRunning.prototype.pollDelayMultiplier = 0; - - /** - * LongRunning maxPollDelay. - * @member {google.protobuf.IDuration|null|undefined} maxPollDelay - * @memberof google.api.MethodSettings.LongRunning - * @instance - */ - LongRunning.prototype.maxPollDelay = null; - - /** - * LongRunning totalPollTimeout. - * @member {google.protobuf.IDuration|null|undefined} totalPollTimeout - * @memberof google.api.MethodSettings.LongRunning - * @instance - */ - LongRunning.prototype.totalPollTimeout = null; - - /** - * Creates a new LongRunning instance using the specified properties. - * @function create - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set - * @returns {google.api.MethodSettings.LongRunning} LongRunning instance - */ - LongRunning.create = function create(properties) { - return new LongRunning(properties); - }; - - /** - * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages. - * @function encode - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LongRunning.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay")) - $root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.pollDelayMultiplier); - if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay")) - $root.google.protobuf.Duration.encode(message.maxPollDelay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout")) - $root.google.protobuf.Duration.encode(message.totalPollTimeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LongRunning.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a LongRunning message from the specified reader or buffer. - * @function decode - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.MethodSettings.LongRunning} LongRunning - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LongRunning.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 2: { - message.pollDelayMultiplier = reader.float(); - break; - } - case 3: { - message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 4: { - message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a LongRunning message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.MethodSettings.LongRunning} LongRunning - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LongRunning.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LongRunning message. - * @function verify - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LongRunning.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) { - var error = $root.google.protobuf.Duration.verify(message.initialPollDelay); - if (error) - return "initialPollDelay." + error; - } - if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier")) - if (typeof message.pollDelayMultiplier !== "number") - return "pollDelayMultiplier: number expected"; - if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) { - var error = $root.google.protobuf.Duration.verify(message.maxPollDelay); - if (error) - return "maxPollDelay." + error; - } - if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) { - var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout); - if (error) - return "totalPollTimeout." + error; - } - return null; - }; - - /** - * Creates a LongRunning message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {Object.} object Plain object - * @returns {google.api.MethodSettings.LongRunning} LongRunning - */ - LongRunning.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.MethodSettings.LongRunning) - return object; - var message = new $root.google.api.MethodSettings.LongRunning(); - if (object.initialPollDelay != null) { - if (typeof object.initialPollDelay !== "object") - throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected"); - message.initialPollDelay = $root.google.protobuf.Duration.fromObject(object.initialPollDelay); - } - if (object.pollDelayMultiplier != null) - message.pollDelayMultiplier = Number(object.pollDelayMultiplier); - if (object.maxPollDelay != null) { - if (typeof object.maxPollDelay !== "object") - throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected"); - message.maxPollDelay = $root.google.protobuf.Duration.fromObject(object.maxPollDelay); - } - if (object.totalPollTimeout != null) { - if (typeof object.totalPollTimeout !== "object") - throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected"); - message.totalPollTimeout = $root.google.protobuf.Duration.fromObject(object.totalPollTimeout); - } - return message; - }; - - /** - * Creates a plain object from a LongRunning message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {google.api.MethodSettings.LongRunning} message LongRunning - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LongRunning.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.initialPollDelay = null; - object.pollDelayMultiplier = 0; - object.maxPollDelay = null; - object.totalPollTimeout = null; - } - if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) - object.initialPollDelay = $root.google.protobuf.Duration.toObject(message.initialPollDelay, options); - if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier")) - object.pollDelayMultiplier = options.json && !isFinite(message.pollDelayMultiplier) ? String(message.pollDelayMultiplier) : message.pollDelayMultiplier; - if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) - object.maxPollDelay = $root.google.protobuf.Duration.toObject(message.maxPollDelay, options); - if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) - object.totalPollTimeout = $root.google.protobuf.Duration.toObject(message.totalPollTimeout, options); - return object; - }; - - /** - * Converts this LongRunning to JSON. - * @function toJSON - * @memberof google.api.MethodSettings.LongRunning - * @instance - * @returns {Object.} JSON object - */ - LongRunning.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for LongRunning - * @function getTypeUrl - * @memberof google.api.MethodSettings.LongRunning - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LongRunning.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.api.MethodSettings.LongRunning"; - }; - - return LongRunning; - })(); - - return MethodSettings; - })(); - - /** - * ClientLibraryOrganization enum. - * @name google.api.ClientLibraryOrganization - * @enum {number} - * @property {number} CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED=0 CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED value - * @property {number} CLOUD=1 CLOUD value - * @property {number} ADS=2 ADS value - * @property {number} PHOTOS=3 PHOTOS value - * @property {number} STREET_VIEW=4 STREET_VIEW value - * @property {number} SHOPPING=5 SHOPPING value - * @property {number} GEO=6 GEO value - * @property {number} GENERATIVE_AI=7 GENERATIVE_AI value - */ - api.ClientLibraryOrganization = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"] = 0; - values[valuesById[1] = "CLOUD"] = 1; - values[valuesById[2] = "ADS"] = 2; - values[valuesById[3] = "PHOTOS"] = 3; - values[valuesById[4] = "STREET_VIEW"] = 4; - values[valuesById[5] = "SHOPPING"] = 5; - values[valuesById[6] = "GEO"] = 6; - values[valuesById[7] = "GENERATIVE_AI"] = 7; - return values; - })(); - - /** - * ClientLibraryDestination enum. - * @name google.api.ClientLibraryDestination - * @enum {number} - * @property {number} CLIENT_LIBRARY_DESTINATION_UNSPECIFIED=0 CLIENT_LIBRARY_DESTINATION_UNSPECIFIED value - * @property {number} GITHUB=10 GITHUB value - * @property {number} PACKAGE_MANAGER=20 PACKAGE_MANAGER value - */ - api.ClientLibraryDestination = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"] = 0; - values[valuesById[10] = "GITHUB"] = 10; - values[valuesById[20] = "PACKAGE_MANAGER"] = 20; - return values; - })(); - - /** - * LaunchStage enum. - * @name google.api.LaunchStage - * @enum {number} - * @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value - * @property {number} UNIMPLEMENTED=6 UNIMPLEMENTED value - * @property {number} PRELAUNCH=7 PRELAUNCH value - * @property {number} EARLY_ACCESS=1 EARLY_ACCESS value - * @property {number} ALPHA=2 ALPHA value - * @property {number} BETA=3 BETA value - * @property {number} GA=4 GA value - * @property {number} DEPRECATED=5 DEPRECATED value - */ - api.LaunchStage = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0; - values[valuesById[6] = "UNIMPLEMENTED"] = 6; - values[valuesById[7] = "PRELAUNCH"] = 7; - values[valuesById[1] = "EARLY_ACCESS"] = 1; - values[valuesById[2] = "ALPHA"] = 2; - values[valuesById[3] = "BETA"] = 3; - values[valuesById[4] = "GA"] = 4; - values[valuesById[5] = "DEPRECATED"] = 5; - return values; - })(); - - return api; - })(); - - google.protobuf = (function() { - - /** - * Namespace protobuf. - * @memberof google - * @namespace - */ - var protobuf = {}; - - protobuf.FileDescriptorSet = (function() { - - /** - * Properties of a FileDescriptorSet. - * @memberof google.protobuf - * @interface IFileDescriptorSet - * @property {Array.|null} [file] FileDescriptorSet file - */ - - /** - * Constructs a new FileDescriptorSet. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorSet. - * @implements IFileDescriptorSet - * @constructor - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set - */ - function FileDescriptorSet(properties) { - this.file = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FileDescriptorSet file. - * @member {Array.} file - * @memberof google.protobuf.FileDescriptorSet - * @instance - */ - FileDescriptorSet.prototype.file = $util.emptyArray; - - /** - * Creates a new FileDescriptorSet instance using the specified properties. - * @function create - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance - */ - FileDescriptorSet.create = function create(properties) { - return new FileDescriptorSet(properties); - }; - - /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorSet.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.file != null && message.file.length) - for (var i = 0; i < message.file.length; ++i) - $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorSet.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.file && message.file.length)) - message.file = []; - message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FileDescriptorSet message. - * @function verify - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileDescriptorSet.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.file != null && message.hasOwnProperty("file")) { - if (!Array.isArray(message.file)) - return "file: array expected"; - for (var i = 0; i < message.file.length; ++i) { - var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); - if (error) - return "file." + error; - } - } - return null; - }; - - /** - * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - */ - FileDescriptorSet.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileDescriptorSet) - return object; - var message = new $root.google.protobuf.FileDescriptorSet(); - if (object.file) { - if (!Array.isArray(object.file)) - throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); - message.file = []; - for (var i = 0; i < object.file.length; ++i) { - if (typeof object.file[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); - message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileDescriptorSet.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.file = []; - if (message.file && message.file.length) { - object.file = []; - for (var j = 0; j < message.file.length; ++j) - object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); - } - return object; - }; - - /** - * Converts this FileDescriptorSet to JSON. - * @function toJSON - * @memberof google.protobuf.FileDescriptorSet - * @instance - * @returns {Object.} JSON object - */ - FileDescriptorSet.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FileDescriptorSet - * @function getTypeUrl - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FileDescriptorSet"; - }; - - return FileDescriptorSet; - })(); - - /** - * Edition enum. - * @name google.protobuf.Edition - * @enum {number} - * @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value - * @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value - * @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value - * @property {number} EDITION_2023=1000 EDITION_2023 value - * @property {number} EDITION_2024=1001 EDITION_2024 value - * @property {number} EDITION_1_TEST_ONLY=1 EDITION_1_TEST_ONLY value - * @property {number} EDITION_2_TEST_ONLY=2 EDITION_2_TEST_ONLY value - * @property {number} EDITION_99997_TEST_ONLY=99997 EDITION_99997_TEST_ONLY value - * @property {number} EDITION_99998_TEST_ONLY=99998 EDITION_99998_TEST_ONLY value - * @property {number} EDITION_99999_TEST_ONLY=99999 EDITION_99999_TEST_ONLY value - * @property {number} EDITION_MAX=2147483647 EDITION_MAX value - */ - protobuf.Edition = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "EDITION_UNKNOWN"] = 0; - values[valuesById[998] = "EDITION_PROTO2"] = 998; - values[valuesById[999] = "EDITION_PROTO3"] = 999; - values[valuesById[1000] = "EDITION_2023"] = 1000; - values[valuesById[1001] = "EDITION_2024"] = 1001; - values[valuesById[1] = "EDITION_1_TEST_ONLY"] = 1; - values[valuesById[2] = "EDITION_2_TEST_ONLY"] = 2; - values[valuesById[99997] = "EDITION_99997_TEST_ONLY"] = 99997; - values[valuesById[99998] = "EDITION_99998_TEST_ONLY"] = 99998; - values[valuesById[99999] = "EDITION_99999_TEST_ONLY"] = 99999; - values[valuesById[2147483647] = "EDITION_MAX"] = 2147483647; - return values; - })(); - - protobuf.FileDescriptorProto = (function() { - - /** - * Properties of a FileDescriptorProto. - * @memberof google.protobuf - * @interface IFileDescriptorProto - * @property {string|null} [name] FileDescriptorProto name - * @property {string|null} ["package"] FileDescriptorProto package - * @property {Array.|null} [dependency] FileDescriptorProto dependency - * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency - * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency - * @property {Array.|null} [messageType] FileDescriptorProto messageType - * @property {Array.|null} [enumType] FileDescriptorProto enumType - * @property {Array.|null} [service] FileDescriptorProto service - * @property {Array.|null} [extension] FileDescriptorProto extension - * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options - * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo - * @property {string|null} [syntax] FileDescriptorProto syntax - * @property {google.protobuf.Edition|null} [edition] FileDescriptorProto edition - */ - - /** - * Constructs a new FileDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorProto. - * @implements IFileDescriptorProto - * @constructor - * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set - */ - function FileDescriptorProto(properties) { - this.dependency = []; - this.publicDependency = []; - this.weakDependency = []; - this.messageType = []; - this.enumType = []; - this.service = []; - this.extension = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FileDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.name = ""; - - /** - * FileDescriptorProto package. - * @member {string} package - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype["package"] = ""; - - /** - * FileDescriptorProto dependency. - * @member {Array.} dependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.dependency = $util.emptyArray; - - /** - * FileDescriptorProto publicDependency. - * @member {Array.} publicDependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.publicDependency = $util.emptyArray; - - /** - * FileDescriptorProto weakDependency. - * @member {Array.} weakDependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.weakDependency = $util.emptyArray; - - /** - * FileDescriptorProto messageType. - * @member {Array.} messageType - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.messageType = $util.emptyArray; - - /** - * FileDescriptorProto enumType. - * @member {Array.} enumType - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.enumType = $util.emptyArray; - - /** - * FileDescriptorProto service. - * @member {Array.} service - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.service = $util.emptyArray; - - /** - * FileDescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.extension = $util.emptyArray; - - /** - * FileDescriptorProto options. - * @member {google.protobuf.IFileOptions|null|undefined} options - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.options = null; - - /** - * FileDescriptorProto sourceCodeInfo. - * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.sourceCodeInfo = null; - - /** - * FileDescriptorProto syntax. - * @member {string} syntax - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.syntax = ""; - - /** - * FileDescriptorProto edition. - * @member {google.protobuf.Edition} edition - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.edition = 0; - - /** - * Creates a new FileDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance - */ - FileDescriptorProto.create = function create(properties) { - return new FileDescriptorProto(properties); - }; - - /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); - if (message.dependency != null && message.dependency.length) - for (var i = 0; i < message.dependency.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); - if (message.messageType != null && message.messageType.length) - for (var i = 0; i < message.messageType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.enumType != null && message.enumType.length) - for (var i = 0; i < message.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.service != null && message.service.length) - for (var i = 0; i < message.service.length; ++i) - $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (var i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) - $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.publicDependency != null && message.publicDependency.length) - for (var i = 0; i < message.publicDependency.length; ++i) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); - if (message.weakDependency != null && message.weakDependency.length) - for (var i = 0; i < message.weakDependency.length; ++i) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); - if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); - if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) - writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition); - return writer; - }; - - /** - * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message["package"] = reader.string(); - break; - } - case 3: { - if (!(message.dependency && message.dependency.length)) - message.dependency = []; - message.dependency.push(reader.string()); - break; - } - case 10: { - if (!(message.publicDependency && message.publicDependency.length)) - message.publicDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.publicDependency.push(reader.int32()); - } else - message.publicDependency.push(reader.int32()); - break; - } - case 11: { - if (!(message.weakDependency && message.weakDependency.length)) - message.weakDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.weakDependency.push(reader.int32()); - } else - message.weakDependency.push(reader.int32()); - break; - } - case 4: { - if (!(message.messageType && message.messageType.length)) - message.messageType = []; - message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - } - case 5: { - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 6: { - if (!(message.service && message.service.length)) - message.service = []; - message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 7: { - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 8: { - message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); - break; - } - case 9: { - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); - break; - } - case 12: { - message.syntax = reader.string(); - break; - } - case 14: { - message.edition = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FileDescriptorProto message. - * @function verify - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message["package"] != null && message.hasOwnProperty("package")) - if (!$util.isString(message["package"])) - return "package: string expected"; - if (message.dependency != null && message.hasOwnProperty("dependency")) { - if (!Array.isArray(message.dependency)) - return "dependency: array expected"; - for (var i = 0; i < message.dependency.length; ++i) - if (!$util.isString(message.dependency[i])) - return "dependency: string[] expected"; - } - if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { - if (!Array.isArray(message.publicDependency)) - return "publicDependency: array expected"; - for (var i = 0; i < message.publicDependency.length; ++i) - if (!$util.isInteger(message.publicDependency[i])) - return "publicDependency: integer[] expected"; - } - if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { - if (!Array.isArray(message.weakDependency)) - return "weakDependency: array expected"; - for (var i = 0; i < message.weakDependency.length; ++i) - if (!$util.isInteger(message.weakDependency[i])) - return "weakDependency: integer[] expected"; - } - if (message.messageType != null && message.hasOwnProperty("messageType")) { - if (!Array.isArray(message.messageType)) - return "messageType: array expected"; - for (var i = 0; i < message.messageType.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); - if (error) - return "messageType." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (!Array.isArray(message.enumType)) - return "enumType: array expected"; - for (var i = 0; i < message.enumType.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); - if (error) - return "enumType." + error; - } - } - if (message.service != null && message.hasOwnProperty("service")) { - if (!Array.isArray(message.service)) - return "service: array expected"; - for (var i = 0; i < message.service.length; ++i) { - var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); - if (error) - return "service." + error; - } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); - if (error) - return "extension." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FileOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { - var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); - if (error) - return "sourceCodeInfo." + error; - } - if (message.syntax != null && message.hasOwnProperty("syntax")) - if (!$util.isString(message.syntax)) - return "syntax: string expected"; - if (message.edition != null && message.hasOwnProperty("edition")) - switch (message.edition) { - default: - return "edition: enum value expected"; - case 0: - case 998: - case 999: - case 1000: - case 1001: - case 1: - case 2: - case 99997: - case 99998: - case 99999: - case 2147483647: - break; - } - return null; - }; - - /** - * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - */ - FileDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileDescriptorProto) - return object; - var message = new $root.google.protobuf.FileDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object["package"] != null) - message["package"] = String(object["package"]); - if (object.dependency) { - if (!Array.isArray(object.dependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); - message.dependency = []; - for (var i = 0; i < object.dependency.length; ++i) - message.dependency[i] = String(object.dependency[i]); - } - if (object.publicDependency) { - if (!Array.isArray(object.publicDependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); - message.publicDependency = []; - for (var i = 0; i < object.publicDependency.length; ++i) - message.publicDependency[i] = object.publicDependency[i] | 0; - } - if (object.weakDependency) { - if (!Array.isArray(object.weakDependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); - message.weakDependency = []; - for (var i = 0; i < object.weakDependency.length; ++i) - message.weakDependency[i] = object.weakDependency[i] | 0; - } - if (object.messageType) { - if (!Array.isArray(object.messageType)) - throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); - message.messageType = []; - for (var i = 0; i < object.messageType.length; ++i) { - if (typeof object.messageType[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); - message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); - } - } - if (object.enumType) { - if (!Array.isArray(object.enumType)) - throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); - message.enumType = []; - for (var i = 0; i < object.enumType.length; ++i) { - if (typeof object.enumType[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); - message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); - } - } - if (object.service) { - if (!Array.isArray(object.service)) - throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); - message.service = []; - for (var i = 0; i < object.service.length; ++i) { - if (typeof object.service[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); - message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); - } - } - if (object.extension) { - if (!Array.isArray(object.extension)) - throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); - message.extension = []; - for (var i = 0; i < object.extension.length; ++i) { - if (typeof object.extension[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); - message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); - } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.FileOptions.fromObject(object.options); - } - if (object.sourceCodeInfo != null) { - if (typeof object.sourceCodeInfo !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); - } - if (object.syntax != null) - message.syntax = String(object.syntax); - switch (object.edition) { - default: - if (typeof object.edition === "number") { - message.edition = object.edition; - break; - } - break; - case "EDITION_UNKNOWN": - case 0: - message.edition = 0; - break; - case "EDITION_PROTO2": - case 998: - message.edition = 998; - break; - case "EDITION_PROTO3": - case 999: - message.edition = 999; - break; - case "EDITION_2023": - case 1000: - message.edition = 1000; - break; - case "EDITION_2024": - case 1001: - message.edition = 1001; - break; - case "EDITION_1_TEST_ONLY": - case 1: - message.edition = 1; - break; - case "EDITION_2_TEST_ONLY": - case 2: - message.edition = 2; - break; - case "EDITION_99997_TEST_ONLY": - case 99997: - message.edition = 99997; - break; - case "EDITION_99998_TEST_ONLY": - case 99998: - message.edition = 99998; - break; - case "EDITION_99999_TEST_ONLY": - case 99999: - message.edition = 99999; - break; - case "EDITION_MAX": - case 2147483647: - message.edition = 2147483647; - break; - } - return message; - }; - - /** - * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.dependency = []; - object.messageType = []; - object.enumType = []; - object.service = []; - object.extension = []; - object.publicDependency = []; - object.weakDependency = []; - } - if (options.defaults) { - object.name = ""; - object["package"] = ""; - object.options = null; - object.sourceCodeInfo = null; - object.syntax = ""; - object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message["package"] != null && message.hasOwnProperty("package")) - object["package"] = message["package"]; - if (message.dependency && message.dependency.length) { - object.dependency = []; - for (var j = 0; j < message.dependency.length; ++j) - object.dependency[j] = message.dependency[j]; - } - if (message.messageType && message.messageType.length) { - object.messageType = []; - for (var j = 0; j < message.messageType.length; ++j) - object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); - } - if (message.enumType && message.enumType.length) { - object.enumType = []; - for (var j = 0; j < message.enumType.length; ++j) - object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); - } - if (message.service && message.service.length) { - object.service = []; - for (var j = 0; j < message.service.length; ++j) - object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); - } - if (message.extension && message.extension.length) { - object.extension = []; - for (var j = 0; j < message.extension.length; ++j) - object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) - object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); - if (message.publicDependency && message.publicDependency.length) { - object.publicDependency = []; - for (var j = 0; j < message.publicDependency.length; ++j) - object.publicDependency[j] = message.publicDependency[j]; - } - if (message.weakDependency && message.weakDependency.length) { - object.weakDependency = []; - for (var j = 0; j < message.weakDependency.length; ++j) - object.weakDependency[j] = message.weakDependency[j]; - } - if (message.syntax != null && message.hasOwnProperty("syntax")) - object.syntax = message.syntax; - if (message.edition != null && message.hasOwnProperty("edition")) - object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; - return object; - }; - - /** - * Converts this FileDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.FileDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - FileDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FileDescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FileDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FileDescriptorProto"; - }; - - return FileDescriptorProto; - })(); - - protobuf.DescriptorProto = (function() { - - /** - * Properties of a DescriptorProto. - * @memberof google.protobuf - * @interface IDescriptorProto - * @property {string|null} [name] DescriptorProto name - * @property {Array.|null} [field] DescriptorProto field - * @property {Array.|null} [extension] DescriptorProto extension - * @property {Array.|null} [nestedType] DescriptorProto nestedType - * @property {Array.|null} [enumType] DescriptorProto enumType - * @property {Array.|null} [extensionRange] DescriptorProto extensionRange - * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl - * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options - * @property {Array.|null} [reservedRange] DescriptorProto reservedRange - * @property {Array.|null} [reservedName] DescriptorProto reservedName - */ - - /** - * Constructs a new DescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a DescriptorProto. - * @implements IDescriptorProto - * @constructor - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set - */ - function DescriptorProto(properties) { - this.field = []; - this.extension = []; - this.nestedType = []; - this.enumType = []; - this.extensionRange = []; - this.oneofDecl = []; - this.reservedRange = []; - this.reservedName = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DescriptorProto name. - * @member {string} name - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.name = ""; - - /** - * DescriptorProto field. - * @member {Array.} field - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.field = $util.emptyArray; - - /** - * DescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.extension = $util.emptyArray; - - /** - * DescriptorProto nestedType. - * @member {Array.} nestedType - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.nestedType = $util.emptyArray; - - /** - * DescriptorProto enumType. - * @member {Array.} enumType - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.enumType = $util.emptyArray; - - /** - * DescriptorProto extensionRange. - * @member {Array.} extensionRange - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.extensionRange = $util.emptyArray; - - /** - * DescriptorProto oneofDecl. - * @member {Array.} oneofDecl - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.oneofDecl = $util.emptyArray; - - /** - * DescriptorProto options. - * @member {google.protobuf.IMessageOptions|null|undefined} options - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.options = null; - - /** - * DescriptorProto reservedRange. - * @member {Array.} reservedRange - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.reservedRange = $util.emptyArray; - - /** - * DescriptorProto reservedName. - * @member {Array.} reservedName - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.reservedName = $util.emptyArray; - - /** - * Creates a new DescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto} DescriptorProto instance - */ - DescriptorProto.create = function create(properties) { - return new DescriptorProto(properties); - }; - - /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.field != null && message.field.length) - for (var i = 0; i < message.field.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.nestedType != null && message.nestedType.length) - for (var i = 0; i < message.nestedType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.enumType != null && message.enumType.length) - for (var i = 0; i < message.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.extensionRange != null && message.extensionRange.length) - for (var i = 0; i < message.extensionRange.length; ++i) - $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (var i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.oneofDecl != null && message.oneofDecl.length) - for (var i = 0; i < message.oneofDecl.length; ++i) - $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.reservedRange != null && message.reservedRange.length) - for (var i = 0; i < message.reservedRange.length; ++i) - $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.reservedName != null && message.reservedName.length) - for (var i = 0; i < message.reservedName.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); - return writer; - }; - - /** - * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto} DescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - if (!(message.field && message.field.length)) - message.field = []; - message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 6: { - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 3: { - if (!(message.nestedType && message.nestedType.length)) - message.nestedType = []; - message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - } - case 4: { - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 5: { - if (!(message.extensionRange && message.extensionRange.length)) - message.extensionRange = []; - message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); - break; - } - case 8: { - if (!(message.oneofDecl && message.oneofDecl.length)) - message.oneofDecl = []; - message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 7: { - message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); - break; - } - case 9: { - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); - break; - } - case 10: { - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto} DescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DescriptorProto message. - * @function verify - * @memberof google.protobuf.DescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.field != null && message.hasOwnProperty("field")) { - if (!Array.isArray(message.field)) - return "field: array expected"; - for (var i = 0; i < message.field.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); - if (error) - return "field." + error; - } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); - if (error) - return "extension." + error; - } - } - if (message.nestedType != null && message.hasOwnProperty("nestedType")) { - if (!Array.isArray(message.nestedType)) - return "nestedType: array expected"; - for (var i = 0; i < message.nestedType.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); - if (error) - return "nestedType." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (!Array.isArray(message.enumType)) - return "enumType: array expected"; - for (var i = 0; i < message.enumType.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); - if (error) - return "enumType." + error; - } - } - if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { - if (!Array.isArray(message.extensionRange)) - return "extensionRange: array expected"; - for (var i = 0; i < message.extensionRange.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); - if (error) - return "extensionRange." + error; - } - } - if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { - if (!Array.isArray(message.oneofDecl)) - return "oneofDecl: array expected"; - for (var i = 0; i < message.oneofDecl.length; ++i) { - var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); - if (error) - return "oneofDecl." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MessageOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { - if (!Array.isArray(message.reservedRange)) - return "reservedRange: array expected"; - for (var i = 0; i < message.reservedRange.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); - if (error) - return "reservedRange." + error; - } - } - if (message.reservedName != null && message.hasOwnProperty("reservedName")) { - if (!Array.isArray(message.reservedName)) - return "reservedName: array expected"; - for (var i = 0; i < message.reservedName.length; ++i) - if (!$util.isString(message.reservedName[i])) - return "reservedName: string[] expected"; - } - return null; - }; - - /** - * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.DescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto} DescriptorProto - */ - DescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto) - return object; - var message = new $root.google.protobuf.DescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.field) { - if (!Array.isArray(object.field)) - throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); - message.field = []; - for (var i = 0; i < object.field.length; ++i) { - if (typeof object.field[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); - message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); - } - } - if (object.extension) { - if (!Array.isArray(object.extension)) - throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); - message.extension = []; - for (var i = 0; i < object.extension.length; ++i) { - if (typeof object.extension[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); - message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); - } - } - if (object.nestedType) { - if (!Array.isArray(object.nestedType)) - throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); - message.nestedType = []; - for (var i = 0; i < object.nestedType.length; ++i) { - if (typeof object.nestedType[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); - message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); - } - } - if (object.enumType) { - if (!Array.isArray(object.enumType)) - throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); - message.enumType = []; - for (var i = 0; i < object.enumType.length; ++i) { - if (typeof object.enumType[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); - message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); - } - } - if (object.extensionRange) { - if (!Array.isArray(object.extensionRange)) - throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); - message.extensionRange = []; - for (var i = 0; i < object.extensionRange.length; ++i) { - if (typeof object.extensionRange[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); - message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); - } - } - if (object.oneofDecl) { - if (!Array.isArray(object.oneofDecl)) - throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); - message.oneofDecl = []; - for (var i = 0; i < object.oneofDecl.length; ++i) { - if (typeof object.oneofDecl[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); - message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); - } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); - message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); - } - if (object.reservedRange) { - if (!Array.isArray(object.reservedRange)) - throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); - message.reservedRange = []; - for (var i = 0; i < object.reservedRange.length; ++i) { - if (typeof object.reservedRange[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); - message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); - } - } - if (object.reservedName) { - if (!Array.isArray(object.reservedName)) - throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); - message.reservedName = []; - for (var i = 0; i < object.reservedName.length; ++i) - message.reservedName[i] = String(object.reservedName[i]); - } - return message; - }; - - /** - * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.DescriptorProto} message DescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.field = []; - object.nestedType = []; - object.enumType = []; - object.extensionRange = []; - object.extension = []; - object.oneofDecl = []; - object.reservedRange = []; - object.reservedName = []; - } - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.field && message.field.length) { - object.field = []; - for (var j = 0; j < message.field.length; ++j) - object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); - } - if (message.nestedType && message.nestedType.length) { - object.nestedType = []; - for (var j = 0; j < message.nestedType.length; ++j) - object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); - } - if (message.enumType && message.enumType.length) { - object.enumType = []; - for (var j = 0; j < message.enumType.length; ++j) - object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); - } - if (message.extensionRange && message.extensionRange.length) { - object.extensionRange = []; - for (var j = 0; j < message.extensionRange.length; ++j) - object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); - } - if (message.extension && message.extension.length) { - object.extension = []; - for (var j = 0; j < message.extension.length; ++j) - object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); - if (message.oneofDecl && message.oneofDecl.length) { - object.oneofDecl = []; - for (var j = 0; j < message.oneofDecl.length; ++j) - object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); - } - if (message.reservedRange && message.reservedRange.length) { - object.reservedRange = []; - for (var j = 0; j < message.reservedRange.length; ++j) - object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); - } - if (message.reservedName && message.reservedName.length) { - object.reservedName = []; - for (var j = 0; j < message.reservedName.length; ++j) - object.reservedName[j] = message.reservedName[j]; - } - return object; - }; - - /** - * Converts this DescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.DescriptorProto - * @instance - * @returns {Object.} JSON object - */ - DescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for DescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.DescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.DescriptorProto"; - }; - - DescriptorProto.ExtensionRange = (function() { - - /** - * Properties of an ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @interface IExtensionRange - * @property {number|null} [start] ExtensionRange start - * @property {number|null} [end] ExtensionRange end - * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options - */ - - /** - * Constructs a new ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents an ExtensionRange. - * @implements IExtensionRange - * @constructor - * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set - */ - function ExtensionRange(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExtensionRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.start = 0; - - /** - * ExtensionRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.end = 0; - - /** - * ExtensionRange options. - * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.options = null; - - /** - * Creates a new ExtensionRange instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance - */ - ExtensionRange.create = function create(properties) { - return new ExtensionRange(properties); - }; - - /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExtensionRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.start = reader.int32(); - break; - } - case 2: { - message.end = reader.int32(); - break; - } - case 3: { - message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExtensionRange message. - * @function verify - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExtensionRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - /** - * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange - */ - ExtensionRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) - return object; - var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); - message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options); - } - return message; - }; - - /** - * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExtensionRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.start = 0; - object.end = 0; - object.options = null; - } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options); - return object; - }; - - /** - * Converts this ExtensionRange to JSON. - * @function toJSON - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - * @returns {Object.} JSON object - */ - ExtensionRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ExtensionRange - * @function getTypeUrl - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ExtensionRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.DescriptorProto.ExtensionRange"; - }; - - return ExtensionRange; - })(); - - DescriptorProto.ReservedRange = (function() { - - /** - * Properties of a ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @interface IReservedRange - * @property {number|null} [start] ReservedRange start - * @property {number|null} [end] ReservedRange end - */ - - /** - * Constructs a new ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents a ReservedRange. - * @implements IReservedRange - * @constructor - * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set - */ - function ReservedRange(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ReservedRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - */ - ReservedRange.prototype.start = 0; - - /** - * ReservedRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - */ - ReservedRange.prototype.end = 0; - - /** - * Creates a new ReservedRange instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance - */ - ReservedRange.create = function create(properties) { - return new ReservedRange(properties); - }; - - /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReservedRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - return writer; - }; - - /** - * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ReservedRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReservedRange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.start = reader.int32(); - break; - } - case 2: { - message.end = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ReservedRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReservedRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ReservedRange message. - * @function verify - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ReservedRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; - - /** - * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - */ - ReservedRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) - return object; - var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; - return message; - }; - - /** - * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ReservedRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.start = 0; - object.end = 0; - } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - return object; - }; - - /** - * Converts this ReservedRange to JSON. - * @function toJSON - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - * @returns {Object.} JSON object - */ - ReservedRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ReservedRange - * @function getTypeUrl - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.DescriptorProto.ReservedRange"; - }; - - return ReservedRange; - })(); - - return DescriptorProto; - })(); - - protobuf.ExtensionRangeOptions = (function() { - - /** - * Properties of an ExtensionRangeOptions. - * @memberof google.protobuf - * @interface IExtensionRangeOptions - * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption - * @property {Array.|null} [declaration] ExtensionRangeOptions declaration - * @property {google.protobuf.IFeatureSet|null} [features] ExtensionRangeOptions features - * @property {google.protobuf.ExtensionRangeOptions.VerificationState|null} [verification] ExtensionRangeOptions verification - */ - - /** - * Constructs a new ExtensionRangeOptions. - * @memberof google.protobuf - * @classdesc Represents an ExtensionRangeOptions. - * @implements IExtensionRangeOptions - * @constructor - * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set - */ - function ExtensionRangeOptions(properties) { - this.uninterpretedOption = []; - this.declaration = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExtensionRangeOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.ExtensionRangeOptions - * @instance - */ - ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * ExtensionRangeOptions declaration. - * @member {Array.} declaration - * @memberof google.protobuf.ExtensionRangeOptions - * @instance - */ - ExtensionRangeOptions.prototype.declaration = $util.emptyArray; - - /** - * ExtensionRangeOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.ExtensionRangeOptions - * @instance - */ - ExtensionRangeOptions.prototype.features = null; - - /** - * ExtensionRangeOptions verification. - * @member {google.protobuf.ExtensionRangeOptions.VerificationState} verification - * @memberof google.protobuf.ExtensionRangeOptions - * @instance - */ - ExtensionRangeOptions.prototype.verification = 1; - - /** - * Creates a new ExtensionRangeOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance - */ - ExtensionRangeOptions.create = function create(properties) { - return new ExtensionRangeOptions(properties); - }; - - /** - * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRangeOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.declaration != null && message.declaration.length) - for (var i = 0; i < message.declaration.length; ++i) - $root.google.protobuf.ExtensionRangeOptions.Declaration.encode(message.declaration[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.verification != null && Object.hasOwnProperty.call(message, "verification")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.verification); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRangeOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - case 2: { - if (!(message.declaration && message.declaration.length)) - message.declaration = []; - message.declaration.push($root.google.protobuf.ExtensionRangeOptions.Declaration.decode(reader, reader.uint32())); - break; - } - case 50: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); - break; - } - case 3: { - message.verification = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExtensionRangeOptions message. - * @function verify - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExtensionRangeOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message.declaration != null && message.hasOwnProperty("declaration")) { - if (!Array.isArray(message.declaration)) - return "declaration: array expected"; - for (var i = 0; i < message.declaration.length; ++i) { - var error = $root.google.protobuf.ExtensionRangeOptions.Declaration.verify(message.declaration[i]); - if (error) - return "declaration." + error; - } - } - if (message.features != null && message.hasOwnProperty("features")) { - var error = $root.google.protobuf.FeatureSet.verify(message.features); - if (error) - return "features." + error; - } - if (message.verification != null && message.hasOwnProperty("verification")) - switch (message.verification) { - default: - return "verification: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - - /** - * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions - */ - ExtensionRangeOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ExtensionRangeOptions) - return object; - var message = new $root.google.protobuf.ExtensionRangeOptions(); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object.declaration) { - if (!Array.isArray(object.declaration)) - throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: array expected"); - message.declaration = []; - for (var i = 0; i < object.declaration.length; ++i) { - if (typeof object.declaration[i] !== "object") - throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: object expected"); - message.declaration[i] = $root.google.protobuf.ExtensionRangeOptions.Declaration.fromObject(object.declaration[i]); - } - } - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.ExtensionRangeOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); - } - switch (object.verification) { - case "DECLARATION": - case 0: - message.verification = 0; - break; - default: - if (typeof object.verification === "number") { - message.verification = object.verification; - break; - } - break; - case "UNVERIFIED": - case 1: - message.verification = 1; - break; - } - return message; - }; - - /** - * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExtensionRangeOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.declaration = []; - object.uninterpretedOption = []; - } - if (options.defaults) { - object.verification = options.enums === String ? "UNVERIFIED" : 1; - object.features = null; - } - if (message.declaration && message.declaration.length) { - object.declaration = []; - for (var j = 0; j < message.declaration.length; ++j) - object.declaration[j] = $root.google.protobuf.ExtensionRangeOptions.Declaration.toObject(message.declaration[j], options); - } - if (message.verification != null && message.hasOwnProperty("verification")) - object.verification = options.enums === String ? $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] === undefined ? message.verification : $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] : message.verification; - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - return object; - }; - - /** - * Converts this ExtensionRangeOptions to JSON. - * @function toJSON - * @memberof google.protobuf.ExtensionRangeOptions - * @instance - * @returns {Object.} JSON object - */ - ExtensionRangeOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ExtensionRangeOptions - * @function getTypeUrl - * @memberof google.protobuf.ExtensionRangeOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ExtensionRangeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions"; - }; - - ExtensionRangeOptions.Declaration = (function() { - - /** - * Properties of a Declaration. - * @memberof google.protobuf.ExtensionRangeOptions - * @interface IDeclaration - * @property {number|null} [number] Declaration number - * @property {string|null} [fullName] Declaration fullName - * @property {string|null} [type] Declaration type - * @property {boolean|null} [reserved] Declaration reserved - * @property {boolean|null} [repeated] Declaration repeated - */ - - /** - * Constructs a new Declaration. - * @memberof google.protobuf.ExtensionRangeOptions - * @classdesc Represents a Declaration. - * @implements IDeclaration - * @constructor - * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set - */ - function Declaration(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Declaration number. - * @member {number} number - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @instance - */ - Declaration.prototype.number = 0; - - /** - * Declaration fullName. - * @member {string} fullName - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @instance - */ - Declaration.prototype.fullName = ""; - - /** - * Declaration type. - * @member {string} type - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @instance - */ - Declaration.prototype.type = ""; - - /** - * Declaration reserved. - * @member {boolean} reserved - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @instance - */ - Declaration.prototype.reserved = false; - - /** - * Declaration repeated. - * @member {boolean} repeated - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @instance - */ - Declaration.prototype.repeated = false; - - /** - * Creates a new Declaration instance using the specified properties. - * @function create - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set - * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration instance - */ - Declaration.create = function create(properties) { - return new Declaration(properties); - }; - - /** - * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Declaration.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.number); - if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullName); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); - if (message.reserved != null && Object.hasOwnProperty.call(message, "reserved")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reserved); - if (message.repeated != null && Object.hasOwnProperty.call(message, "repeated")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.repeated); - return writer; - }; - - /** - * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Declaration.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Declaration message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Declaration.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions.Declaration(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.number = reader.int32(); - break; - } - case 2: { - message.fullName = reader.string(); - break; - } - case 3: { - message.type = reader.string(); - break; - } - case 5: { - message.reserved = reader.bool(); - break; - } - case 6: { - message.repeated = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Declaration message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Declaration.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Declaration message. - * @function verify - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Declaration.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.reserved != null && message.hasOwnProperty("reserved")) - if (typeof message.reserved !== "boolean") - return "reserved: boolean expected"; - if (message.repeated != null && message.hasOwnProperty("repeated")) - if (typeof message.repeated !== "boolean") - return "repeated: boolean expected"; - return null; - }; - - /** - * Creates a Declaration message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration - */ - Declaration.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ExtensionRangeOptions.Declaration) - return object; - var message = new $root.google.protobuf.ExtensionRangeOptions.Declaration(); - if (object.number != null) - message.number = object.number | 0; - if (object.fullName != null) - message.fullName = String(object.fullName); - if (object.type != null) - message.type = String(object.type); - if (object.reserved != null) - message.reserved = Boolean(object.reserved); - if (object.repeated != null) - message.repeated = Boolean(object.repeated); - return message; - }; - - /** - * Creates a plain object from a Declaration message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {google.protobuf.ExtensionRangeOptions.Declaration} message Declaration - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Declaration.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.number = 0; - object.fullName = ""; - object.type = ""; - object.reserved = false; - object.repeated = false; - } - if (message.number != null && message.hasOwnProperty("number")) - object.number = message.number; - if (message.fullName != null && message.hasOwnProperty("fullName")) - object.fullName = message.fullName; - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.reserved != null && message.hasOwnProperty("reserved")) - object.reserved = message.reserved; - if (message.repeated != null && message.hasOwnProperty("repeated")) - object.repeated = message.repeated; - return object; - }; - - /** - * Converts this Declaration to JSON. - * @function toJSON - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @instance - * @returns {Object.} JSON object - */ - Declaration.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Declaration - * @function getTypeUrl - * @memberof google.protobuf.ExtensionRangeOptions.Declaration - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Declaration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions.Declaration"; - }; - - return Declaration; - })(); - - /** - * VerificationState enum. - * @name google.protobuf.ExtensionRangeOptions.VerificationState - * @enum {number} - * @property {number} DECLARATION=0 DECLARATION value - * @property {number} UNVERIFIED=1 UNVERIFIED value - */ - ExtensionRangeOptions.VerificationState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DECLARATION"] = 0; - values[valuesById[1] = "UNVERIFIED"] = 1; - return values; - })(); - - return ExtensionRangeOptions; - })(); - - protobuf.FieldDescriptorProto = (function() { - - /** - * Properties of a FieldDescriptorProto. - * @memberof google.protobuf - * @interface IFieldDescriptorProto - * @property {string|null} [name] FieldDescriptorProto name - * @property {number|null} [number] FieldDescriptorProto number - * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label - * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type - * @property {string|null} [typeName] FieldDescriptorProto typeName - * @property {string|null} [extendee] FieldDescriptorProto extendee - * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue - * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex - * @property {string|null} [jsonName] FieldDescriptorProto jsonName - * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options - * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional - */ - - /** - * Constructs a new FieldDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FieldDescriptorProto. - * @implements IFieldDescriptorProto - * @constructor - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set - */ - function FieldDescriptorProto(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FieldDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.name = ""; - - /** - * FieldDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.number = 0; - - /** - * FieldDescriptorProto label. - * @member {google.protobuf.FieldDescriptorProto.Label} label - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.label = 1; - - /** - * FieldDescriptorProto type. - * @member {google.protobuf.FieldDescriptorProto.Type} type - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.type = 1; - - /** - * FieldDescriptorProto typeName. - * @member {string} typeName - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.typeName = ""; - - /** - * FieldDescriptorProto extendee. - * @member {string} extendee - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.extendee = ""; - - /** - * FieldDescriptorProto defaultValue. - * @member {string} defaultValue - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.defaultValue = ""; - - /** - * FieldDescriptorProto oneofIndex. - * @member {number} oneofIndex - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.oneofIndex = 0; - - /** - * FieldDescriptorProto jsonName. - * @member {string} jsonName - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.jsonName = ""; - - /** - * FieldDescriptorProto options. - * @member {google.protobuf.IFieldOptions|null|undefined} options - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.options = null; - - /** - * FieldDescriptorProto proto3Optional. - * @member {boolean} proto3Optional - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.proto3Optional = false; - - /** - * Creates a new FieldDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance - */ - FieldDescriptorProto.create = function create(properties) { - return new FieldDescriptorProto(properties); - }; - - /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); - if (message.label != null && Object.hasOwnProperty.call(message, "label")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); - if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); - if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); - if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); - return writer; - }; - - /** - * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 3: { - message.number = reader.int32(); - break; - } - case 4: { - message.label = reader.int32(); - break; - } - case 5: { - message.type = reader.int32(); - break; - } - case 6: { - message.typeName = reader.string(); - break; - } - case 2: { - message.extendee = reader.string(); - break; - } - case 7: { - message.defaultValue = reader.string(); - break; - } - case 9: { - message.oneofIndex = reader.int32(); - break; - } - case 10: { - message.jsonName = reader.string(); - break; - } - case 8: { - message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); - break; - } - case 17: { - message.proto3Optional = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FieldDescriptorProto message. - * @function verify - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FieldDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.label != null && message.hasOwnProperty("label")) - switch (message.label) { - default: - return "label: enum value expected"; - case 1: - case 3: - case 2: - break; - } - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - break; - } - if (message.typeName != null && message.hasOwnProperty("typeName")) - if (!$util.isString(message.typeName)) - return "typeName: string expected"; - if (message.extendee != null && message.hasOwnProperty("extendee")) - if (!$util.isString(message.extendee)) - return "extendee: string expected"; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - if (!$util.isString(message.defaultValue)) - return "defaultValue: string expected"; - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) - if (!$util.isInteger(message.oneofIndex)) - return "oneofIndex: integer expected"; - if (message.jsonName != null && message.hasOwnProperty("jsonName")) - if (!$util.isString(message.jsonName)) - return "jsonName: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FieldOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) - if (typeof message.proto3Optional !== "boolean") - return "proto3Optional: boolean expected"; - return null; - }; - - /** - * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - */ - FieldDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldDescriptorProto) - return object; - var message = new $root.google.protobuf.FieldDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.number != null) - message.number = object.number | 0; - switch (object.label) { - default: - if (typeof object.label === "number") { - message.label = object.label; - break; - } - break; - case "LABEL_OPTIONAL": - case 1: - message.label = 1; - break; - case "LABEL_REPEATED": - case 3: - message.label = 3; - break; - case "LABEL_REQUIRED": - case 2: - message.label = 2; - break; - } - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "TYPE_DOUBLE": - case 1: - message.type = 1; - break; - case "TYPE_FLOAT": - case 2: - message.type = 2; - break; - case "TYPE_INT64": - case 3: - message.type = 3; - break; - case "TYPE_UINT64": - case 4: - message.type = 4; - break; - case "TYPE_INT32": - case 5: - message.type = 5; - break; - case "TYPE_FIXED64": - case 6: - message.type = 6; - break; - case "TYPE_FIXED32": - case 7: - message.type = 7; - break; - case "TYPE_BOOL": - case 8: - message.type = 8; - break; - case "TYPE_STRING": - case 9: - message.type = 9; - break; - case "TYPE_GROUP": - case 10: - message.type = 10; - break; - case "TYPE_MESSAGE": - case 11: - message.type = 11; - break; - case "TYPE_BYTES": - case 12: - message.type = 12; - break; - case "TYPE_UINT32": - case 13: - message.type = 13; - break; - case "TYPE_ENUM": - case 14: - message.type = 14; - break; - case "TYPE_SFIXED32": - case 15: - message.type = 15; - break; - case "TYPE_SFIXED64": - case 16: - message.type = 16; - break; - case "TYPE_SINT32": - case 17: - message.type = 17; - break; - case "TYPE_SINT64": - case 18: - message.type = 18; - break; - } - if (object.typeName != null) - message.typeName = String(object.typeName); - if (object.extendee != null) - message.extendee = String(object.extendee); - if (object.defaultValue != null) - message.defaultValue = String(object.defaultValue); - if (object.oneofIndex != null) - message.oneofIndex = object.oneofIndex | 0; - if (object.jsonName != null) - message.jsonName = String(object.jsonName); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); - } - if (object.proto3Optional != null) - message.proto3Optional = Boolean(object.proto3Optional); - return message; - }; - - /** - * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FieldDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.extendee = ""; - object.number = 0; - object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; - object.type = options.enums === String ? "TYPE_DOUBLE" : 1; - object.typeName = ""; - object.defaultValue = ""; - object.options = null; - object.oneofIndex = 0; - object.jsonName = ""; - object.proto3Optional = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.extendee != null && message.hasOwnProperty("extendee")) - object.extendee = message.extendee; - if (message.number != null && message.hasOwnProperty("number")) - object.number = message.number; - if (message.label != null && message.hasOwnProperty("label")) - object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] === undefined ? message.label : $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] === undefined ? message.type : $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; - if (message.typeName != null && message.hasOwnProperty("typeName")) - object.typeName = message.typeName; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - object.defaultValue = message.defaultValue; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) - object.oneofIndex = message.oneofIndex; - if (message.jsonName != null && message.hasOwnProperty("jsonName")) - object.jsonName = message.jsonName; - if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) - object.proto3Optional = message.proto3Optional; - return object; - }; - - /** - * Converts this FieldDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.FieldDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - FieldDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FieldDescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FieldDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FieldDescriptorProto"; - }; - - /** - * Type enum. - * @name google.protobuf.FieldDescriptorProto.Type - * @enum {number} - * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value - * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value - * @property {number} TYPE_INT64=3 TYPE_INT64 value - * @property {number} TYPE_UINT64=4 TYPE_UINT64 value - * @property {number} TYPE_INT32=5 TYPE_INT32 value - * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value - * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value - * @property {number} TYPE_BOOL=8 TYPE_BOOL value - * @property {number} TYPE_STRING=9 TYPE_STRING value - * @property {number} TYPE_GROUP=10 TYPE_GROUP value - * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value - * @property {number} TYPE_BYTES=12 TYPE_BYTES value - * @property {number} TYPE_UINT32=13 TYPE_UINT32 value - * @property {number} TYPE_ENUM=14 TYPE_ENUM value - * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value - * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value - * @property {number} TYPE_SINT32=17 TYPE_SINT32 value - * @property {number} TYPE_SINT64=18 TYPE_SINT64 value - */ - FieldDescriptorProto.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "TYPE_DOUBLE"] = 1; - values[valuesById[2] = "TYPE_FLOAT"] = 2; - values[valuesById[3] = "TYPE_INT64"] = 3; - values[valuesById[4] = "TYPE_UINT64"] = 4; - values[valuesById[5] = "TYPE_INT32"] = 5; - values[valuesById[6] = "TYPE_FIXED64"] = 6; - values[valuesById[7] = "TYPE_FIXED32"] = 7; - values[valuesById[8] = "TYPE_BOOL"] = 8; - values[valuesById[9] = "TYPE_STRING"] = 9; - values[valuesById[10] = "TYPE_GROUP"] = 10; - values[valuesById[11] = "TYPE_MESSAGE"] = 11; - values[valuesById[12] = "TYPE_BYTES"] = 12; - values[valuesById[13] = "TYPE_UINT32"] = 13; - values[valuesById[14] = "TYPE_ENUM"] = 14; - values[valuesById[15] = "TYPE_SFIXED32"] = 15; - values[valuesById[16] = "TYPE_SFIXED64"] = 16; - values[valuesById[17] = "TYPE_SINT32"] = 17; - values[valuesById[18] = "TYPE_SINT64"] = 18; - return values; - })(); - - /** - * Label enum. - * @name google.protobuf.FieldDescriptorProto.Label - * @enum {number} - * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value - * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value - * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value - */ - FieldDescriptorProto.Label = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "LABEL_OPTIONAL"] = 1; - values[valuesById[3] = "LABEL_REPEATED"] = 3; - values[valuesById[2] = "LABEL_REQUIRED"] = 2; - return values; - })(); - - return FieldDescriptorProto; - })(); - - protobuf.OneofDescriptorProto = (function() { - - /** - * Properties of an OneofDescriptorProto. - * @memberof google.protobuf - * @interface IOneofDescriptorProto - * @property {string|null} [name] OneofDescriptorProto name - * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options - */ - - /** - * Constructs a new OneofDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an OneofDescriptorProto. - * @implements IOneofDescriptorProto - * @constructor - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set - */ - function OneofDescriptorProto(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * OneofDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.OneofDescriptorProto - * @instance - */ - OneofDescriptorProto.prototype.name = ""; - - /** - * OneofDescriptorProto options. - * @member {google.protobuf.IOneofOptions|null|undefined} options - * @memberof google.protobuf.OneofDescriptorProto - * @instance - */ - OneofDescriptorProto.prototype.options = null; - - /** - * Creates a new OneofDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance - */ - OneofDescriptorProto.create = function create(properties) { - return new OneofDescriptorProto(properties); - }; - - /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an OneofDescriptorProto message. - * @function verify - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OneofDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.OneofOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - /** - * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - */ - OneofDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.OneofDescriptorProto) - return object; - var message = new $root.google.protobuf.OneofDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); - } - return message; - }; - - /** - * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OneofDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); - return object; - }; - - /** - * Converts this OneofDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.OneofDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - OneofDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for OneofDescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OneofDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.OneofDescriptorProto"; - }; - - return OneofDescriptorProto; - })(); - - protobuf.EnumDescriptorProto = (function() { - - /** - * Properties of an EnumDescriptorProto. - * @memberof google.protobuf - * @interface IEnumDescriptorProto - * @property {string|null} [name] EnumDescriptorProto name - * @property {Array.|null} [value] EnumDescriptorProto value - * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options - * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange - * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName - */ - - /** - * Constructs a new EnumDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an EnumDescriptorProto. - * @implements IEnumDescriptorProto - * @constructor - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set - */ - function EnumDescriptorProto(properties) { - this.value = []; - this.reservedRange = []; - this.reservedName = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EnumDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.name = ""; - - /** - * EnumDescriptorProto value. - * @member {Array.} value - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.value = $util.emptyArray; - - /** - * EnumDescriptorProto options. - * @member {google.protobuf.IEnumOptions|null|undefined} options - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.options = null; - - /** - * EnumDescriptorProto reservedRange. - * @member {Array.} reservedRange - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; - - /** - * EnumDescriptorProto reservedName. - * @member {Array.} reservedName - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.reservedName = $util.emptyArray; - - /** - * Creates a new EnumDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance - */ - EnumDescriptorProto.create = function create(properties) { - return new EnumDescriptorProto(properties); - }; - - /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.value != null && message.value.length) - for (var i = 0; i < message.value.length; ++i) - $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.reservedRange != null && message.reservedRange.length) - for (var i = 0; i < message.reservedRange.length; ++i) - $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.reservedName != null && message.reservedName.length) - for (var i = 0; i < message.reservedName.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); - return writer; - }; - - /** - * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - if (!(message.value && message.value.length)) - message.value = []; - message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 3: { - message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); - break; - } - case 4: { - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); - break; - } - case 5: { - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnumDescriptorProto message. - * @function verify - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.value != null && message.hasOwnProperty("value")) { - if (!Array.isArray(message.value)) - return "value: array expected"; - for (var i = 0; i < message.value.length; ++i) { - var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); - if (error) - return "value." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { - if (!Array.isArray(message.reservedRange)) - return "reservedRange: array expected"; - for (var i = 0; i < message.reservedRange.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i]); - if (error) - return "reservedRange." + error; - } - } - if (message.reservedName != null && message.hasOwnProperty("reservedName")) { - if (!Array.isArray(message.reservedName)) - return "reservedName: array expected"; - for (var i = 0; i < message.reservedName.length; ++i) - if (!$util.isString(message.reservedName[i])) - return "reservedName: string[] expected"; - } - return null; - }; - - /** - * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto - */ - EnumDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumDescriptorProto) - return object; - var message = new $root.google.protobuf.EnumDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.value) { - if (!Array.isArray(object.value)) - throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); - message.value = []; - for (var i = 0; i < object.value.length; ++i) { - if (typeof object.value[i] !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); - message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); - } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); - } - if (object.reservedRange) { - if (!Array.isArray(object.reservedRange)) - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); - message.reservedRange = []; - for (var i = 0; i < object.reservedRange.length; ++i) { - if (typeof object.reservedRange[i] !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); - message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]); - } - } - if (object.reservedName) { - if (!Array.isArray(object.reservedName)) - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); - message.reservedName = []; - for (var i = 0; i < object.reservedName.length; ++i) - message.reservedName[i] = String(object.reservedName[i]); - } - return message; - }; - - /** - * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EnumDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.value = []; - object.reservedRange = []; - object.reservedName = []; - } - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.value && message.value.length) { - object.value = []; - for (var j = 0; j < message.value.length; ++j) - object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); - if (message.reservedRange && message.reservedRange.length) { - object.reservedRange = []; - for (var j = 0; j < message.reservedRange.length; ++j) - object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options); - } - if (message.reservedName && message.reservedName.length) { - object.reservedName = []; - for (var j = 0; j < message.reservedName.length; ++j) - object.reservedName[j] = message.reservedName[j]; - } - return object; - }; - - /** - * Converts this EnumDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.EnumDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - EnumDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for EnumDescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EnumDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto"; - }; - - EnumDescriptorProto.EnumReservedRange = (function() { - - /** - * Properties of an EnumReservedRange. - * @memberof google.protobuf.EnumDescriptorProto - * @interface IEnumReservedRange - * @property {number|null} [start] EnumReservedRange start - * @property {number|null} [end] EnumReservedRange end - */ - - /** - * Constructs a new EnumReservedRange. - * @memberof google.protobuf.EnumDescriptorProto - * @classdesc Represents an EnumReservedRange. - * @implements IEnumReservedRange - * @constructor - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set - */ - function EnumReservedRange(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EnumReservedRange start. - * @member {number} start - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - */ - EnumReservedRange.prototype.start = 0; - - /** - * EnumReservedRange end. - * @member {number} end - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - */ - EnumReservedRange.prototype.end = 0; - - /** - * Creates a new EnumReservedRange instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance - */ - EnumReservedRange.create = function create(properties) { - return new EnumReservedRange(properties); - }; - - /** - * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumReservedRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - return writer; - }; - - /** - * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EnumReservedRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumReservedRange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.start = reader.int32(); - break; - } - case 2: { - message.end = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnumReservedRange message. - * @function verify - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumReservedRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; - - /** - * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - */ - EnumReservedRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) - return object; - var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; - return message; - }; - - /** - * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EnumReservedRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.start = 0; - object.end = 0; - } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - return object; - }; - - /** - * Converts this EnumReservedRange to JSON. - * @function toJSON - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - * @returns {Object.} JSON object - */ - EnumReservedRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for EnumReservedRange - * @function getTypeUrl - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EnumReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto.EnumReservedRange"; - }; - - return EnumReservedRange; - })(); - - return EnumDescriptorProto; - })(); - - protobuf.EnumValueDescriptorProto = (function() { - - /** - * Properties of an EnumValueDescriptorProto. - * @memberof google.protobuf - * @interface IEnumValueDescriptorProto - * @property {string|null} [name] EnumValueDescriptorProto name - * @property {number|null} [number] EnumValueDescriptorProto number - * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options - */ - - /** - * Constructs a new EnumValueDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an EnumValueDescriptorProto. - * @implements IEnumValueDescriptorProto - * @constructor - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set - */ - function EnumValueDescriptorProto(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EnumValueDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - */ - EnumValueDescriptorProto.prototype.name = ""; - - /** - * EnumValueDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - */ - EnumValueDescriptorProto.prototype.number = 0; - - /** - * EnumValueDescriptorProto options. - * @member {google.protobuf.IEnumValueOptions|null|undefined} options - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - */ - EnumValueDescriptorProto.prototype.options = null; - - /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance - */ - EnumValueDescriptorProto.create = function create(properties) { - return new EnumValueDescriptorProto(properties); - }; - - /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.number = reader.int32(); - break; - } - case 3: { - message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnumValueDescriptorProto message. - * @function verify - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumValueDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumValueOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - /** - * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto - */ - EnumValueDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) - return object; - var message = new $root.google.protobuf.EnumValueDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.number != null) - message.number = object.number | 0; - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); - } - return message; - }; - - /** - * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EnumValueDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.number = 0; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.number != null && message.hasOwnProperty("number")) - object.number = message.number; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); - return object; - }; - - /** - * Converts this EnumValueDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - EnumValueDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for EnumValueDescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EnumValueDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.EnumValueDescriptorProto"; - }; - - return EnumValueDescriptorProto; - })(); - - protobuf.ServiceDescriptorProto = (function() { - - /** - * Properties of a ServiceDescriptorProto. - * @memberof google.protobuf - * @interface IServiceDescriptorProto - * @property {string|null} [name] ServiceDescriptorProto name - * @property {Array.|null} [method] ServiceDescriptorProto method - * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options - */ - - /** - * Constructs a new ServiceDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a ServiceDescriptorProto. - * @implements IServiceDescriptorProto - * @constructor - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set - */ - function ServiceDescriptorProto(properties) { - this.method = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ServiceDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - */ - ServiceDescriptorProto.prototype.name = ""; - - /** - * ServiceDescriptorProto method. - * @member {Array.} method - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - */ - ServiceDescriptorProto.prototype.method = $util.emptyArray; - - /** - * ServiceDescriptorProto options. - * @member {google.protobuf.IServiceOptions|null|undefined} options - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - */ - ServiceDescriptorProto.prototype.options = null; - - /** - * Creates a new ServiceDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance - */ - ServiceDescriptorProto.create = function create(properties) { - return new ServiceDescriptorProto(properties); - }; - - /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.method != null && message.method.length) - for (var i = 0; i < message.method.length; ++i) - $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - if (!(message.method && message.method.length)) - message.method = []; - message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); - break; - } - case 3: { - message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceDescriptorProto message. - * @function verify - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ServiceDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.method != null && message.hasOwnProperty("method")) { - if (!Array.isArray(message.method)) - return "method: array expected"; - for (var i = 0; i < message.method.length; ++i) { - var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); - if (error) - return "method." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.ServiceOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - /** - * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto - */ - ServiceDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ServiceDescriptorProto) - return object; - var message = new $root.google.protobuf.ServiceDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.method) { - if (!Array.isArray(object.method)) - throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); - message.method = []; - for (var i = 0; i < object.method.length; ++i) { - if (typeof object.method[i] !== "object") - throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); - message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); - } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); - } - return message; - }; - - /** - * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ServiceDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.method = []; - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.method && message.method.length) { - object.method = []; - for (var j = 0; j < message.method.length; ++j) - object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); - return object; - }; - - /** - * Converts this ServiceDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - ServiceDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ServiceDescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ServiceDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.ServiceDescriptorProto"; - }; - - return ServiceDescriptorProto; - })(); - - protobuf.MethodDescriptorProto = (function() { - - /** - * Properties of a MethodDescriptorProto. - * @memberof google.protobuf - * @interface IMethodDescriptorProto - * @property {string|null} [name] MethodDescriptorProto name - * @property {string|null} [inputType] MethodDescriptorProto inputType - * @property {string|null} [outputType] MethodDescriptorProto outputType - * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options - * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming - * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming - */ - - /** - * Constructs a new MethodDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a MethodDescriptorProto. - * @implements IMethodDescriptorProto - * @constructor - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set - */ - function MethodDescriptorProto(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MethodDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.name = ""; - - /** - * MethodDescriptorProto inputType. - * @member {string} inputType - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.inputType = ""; - - /** - * MethodDescriptorProto outputType. - * @member {string} outputType - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.outputType = ""; - - /** - * MethodDescriptorProto options. - * @member {google.protobuf.IMethodOptions|null|undefined} options - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.options = null; - - /** - * MethodDescriptorProto clientStreaming. - * @member {boolean} clientStreaming - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.clientStreaming = false; - - /** - * MethodDescriptorProto serverStreaming. - * @member {boolean} serverStreaming - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.serverStreaming = false; - - /** - * Creates a new MethodDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance - */ - MethodDescriptorProto.create = function create(properties) { - return new MethodDescriptorProto(properties); - }; - - /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MethodDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); - if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); - if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); - return writer; - }; - - /** - * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MethodDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.inputType = reader.string(); - break; - } - case 3: { - message.outputType = reader.string(); - break; - } - case 4: { - message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); - break; - } - case 5: { - message.clientStreaming = reader.bool(); - break; - } - case 6: { - message.serverStreaming = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MethodDescriptorProto message. - * @function verify - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MethodDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.inputType != null && message.hasOwnProperty("inputType")) - if (!$util.isString(message.inputType)) - return "inputType: string expected"; - if (message.outputType != null && message.hasOwnProperty("outputType")) - if (!$util.isString(message.outputType)) - return "outputType: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MethodOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) - if (typeof message.clientStreaming !== "boolean") - return "clientStreaming: boolean expected"; - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) - if (typeof message.serverStreaming !== "boolean") - return "serverStreaming: boolean expected"; - return null; - }; - - /** - * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto - */ - MethodDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MethodDescriptorProto) - return object; - var message = new $root.google.protobuf.MethodDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.inputType != null) - message.inputType = String(object.inputType); - if (object.outputType != null) - message.outputType = String(object.outputType); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); - } - if (object.clientStreaming != null) - message.clientStreaming = Boolean(object.clientStreaming); - if (object.serverStreaming != null) - message.serverStreaming = Boolean(object.serverStreaming); - return message; - }; - - /** - * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MethodDescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.inputType = ""; - object.outputType = ""; - object.options = null; - object.clientStreaming = false; - object.serverStreaming = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.inputType != null && message.hasOwnProperty("inputType")) - object.inputType = message.inputType; - if (message.outputType != null && message.hasOwnProperty("outputType")) - object.outputType = message.outputType; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) - object.clientStreaming = message.clientStreaming; - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) - object.serverStreaming = message.serverStreaming; - return object; - }; - - /** - * Converts this MethodDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.MethodDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - MethodDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for MethodDescriptorProto - * @function getTypeUrl - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MethodDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.MethodDescriptorProto"; - }; - - return MethodDescriptorProto; - })(); - - protobuf.FileOptions = (function() { - - /** - * Properties of a FileOptions. - * @memberof google.protobuf - * @interface IFileOptions - * @property {string|null} [javaPackage] FileOptions javaPackage - * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname - * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles - * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash - * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 - * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor - * @property {string|null} [goPackage] FileOptions goPackage - * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices - * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices - * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices - * @property {boolean|null} [deprecated] FileOptions deprecated - * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas - * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix - * @property {string|null} [csharpNamespace] FileOptions csharpNamespace - * @property {string|null} [swiftPrefix] FileOptions swiftPrefix - * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix - * @property {string|null} [phpNamespace] FileOptions phpNamespace - * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace - * @property {string|null} [rubyPackage] FileOptions rubyPackage - * @property {google.protobuf.IFeatureSet|null} [features] FileOptions features - * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption - * @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition - */ - - /** - * Constructs a new FileOptions. - * @memberof google.protobuf - * @classdesc Represents a FileOptions. - * @implements IFileOptions - * @constructor - * @param {google.protobuf.IFileOptions=} [properties] Properties to set - */ - function FileOptions(properties) { - this.uninterpretedOption = []; - this[".google.api.resourceDefinition"] = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FileOptions javaPackage. - * @member {string} javaPackage - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaPackage = ""; - - /** - * FileOptions javaOuterClassname. - * @member {string} javaOuterClassname - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaOuterClassname = ""; - - /** - * FileOptions javaMultipleFiles. - * @member {boolean} javaMultipleFiles - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaMultipleFiles = false; - - /** - * FileOptions javaGenerateEqualsAndHash. - * @member {boolean} javaGenerateEqualsAndHash - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaGenerateEqualsAndHash = false; - - /** - * FileOptions javaStringCheckUtf8. - * @member {boolean} javaStringCheckUtf8 - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaStringCheckUtf8 = false; - - /** - * FileOptions optimizeFor. - * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.optimizeFor = 1; - - /** - * FileOptions goPackage. - * @member {string} goPackage - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.goPackage = ""; - - /** - * FileOptions ccGenericServices. - * @member {boolean} ccGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.ccGenericServices = false; - - /** - * FileOptions javaGenericServices. - * @member {boolean} javaGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaGenericServices = false; - - /** - * FileOptions pyGenericServices. - * @member {boolean} pyGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.pyGenericServices = false; - - /** - * FileOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.deprecated = false; - - /** - * FileOptions ccEnableArenas. - * @member {boolean} ccEnableArenas - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.ccEnableArenas = true; - - /** - * FileOptions objcClassPrefix. - * @member {string} objcClassPrefix - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.objcClassPrefix = ""; - - /** - * FileOptions csharpNamespace. - * @member {string} csharpNamespace - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.csharpNamespace = ""; - - /** - * FileOptions swiftPrefix. - * @member {string} swiftPrefix - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.swiftPrefix = ""; - - /** - * FileOptions phpClassPrefix. - * @member {string} phpClassPrefix - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.phpClassPrefix = ""; - - /** - * FileOptions phpNamespace. - * @member {string} phpNamespace - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.phpNamespace = ""; - - /** - * FileOptions phpMetadataNamespace. - * @member {string} phpMetadataNamespace - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.phpMetadataNamespace = ""; - - /** - * FileOptions rubyPackage. - * @member {string} rubyPackage - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.rubyPackage = ""; - - /** - * FileOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.features = null; - - /** - * FileOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * FileOptions .google.api.resourceDefinition. - * @member {Array.} .google.api.resourceDefinition - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype[".google.api.resourceDefinition"] = $util.emptyArray; - - /** - * Creates a new FileOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.IFileOptions=} [properties] Properties to set - * @returns {google.protobuf.FileOptions} FileOptions instance - */ - FileOptions.create = function create(properties) { - return new FileOptions(properties); - }; - - /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); - if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); - if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); - if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); - if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); - if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); - if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); - if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); - if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); - if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) - writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); - if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) - writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); - if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) - writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); - if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) - writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); - if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) - writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); - if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) - writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); - if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) - writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); - if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) - writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); - if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) - writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.resourceDefinition"] != null && message[".google.api.resourceDefinition"].length) - for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) - $root.google.api.ResourceDescriptor.encode(message[".google.api.resourceDefinition"][i], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FileOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileOptions} FileOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.javaPackage = reader.string(); - break; - } - case 8: { - message.javaOuterClassname = reader.string(); - break; - } - case 10: { - message.javaMultipleFiles = reader.bool(); - break; - } - case 20: { - message.javaGenerateEqualsAndHash = reader.bool(); - break; - } - case 27: { - message.javaStringCheckUtf8 = reader.bool(); - break; - } - case 9: { - message.optimizeFor = reader.int32(); - break; - } - case 11: { - message.goPackage = reader.string(); - break; - } - case 16: { - message.ccGenericServices = reader.bool(); - break; - } - case 17: { - message.javaGenericServices = reader.bool(); - break; - } - case 18: { - message.pyGenericServices = reader.bool(); - break; - } - case 23: { - message.deprecated = reader.bool(); - break; - } - case 31: { - message.ccEnableArenas = reader.bool(); - break; - } - case 36: { - message.objcClassPrefix = reader.string(); - break; - } - case 37: { - message.csharpNamespace = reader.string(); - break; - } - case 39: { - message.swiftPrefix = reader.string(); - break; - } - case 40: { - message.phpClassPrefix = reader.string(); - break; - } - case 41: { - message.phpNamespace = reader.string(); - break; - } - case 44: { - message.phpMetadataNamespace = reader.string(); - break; - } - case 45: { - message.rubyPackage = reader.string(); - break; - } - case 50: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); - break; - } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - case 1053: { - if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) - message[".google.api.resourceDefinition"] = []; - message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FileOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileOptions} FileOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FileOptions message. - * @function verify - * @memberof google.protobuf.FileOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) - if (!$util.isString(message.javaPackage)) - return "javaPackage: string expected"; - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) - if (!$util.isString(message.javaOuterClassname)) - return "javaOuterClassname: string expected"; - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) - if (typeof message.javaMultipleFiles !== "boolean") - return "javaMultipleFiles: boolean expected"; - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) - if (typeof message.javaGenerateEqualsAndHash !== "boolean") - return "javaGenerateEqualsAndHash: boolean expected"; - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) - if (typeof message.javaStringCheckUtf8 !== "boolean") - return "javaStringCheckUtf8: boolean expected"; - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - switch (message.optimizeFor) { - default: - return "optimizeFor: enum value expected"; - case 1: - case 2: - case 3: - break; - } - if (message.goPackage != null && message.hasOwnProperty("goPackage")) - if (!$util.isString(message.goPackage)) - return "goPackage: string expected"; - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) - if (typeof message.ccGenericServices !== "boolean") - return "ccGenericServices: boolean expected"; - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) - if (typeof message.javaGenericServices !== "boolean") - return "javaGenericServices: boolean expected"; - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) - if (typeof message.pyGenericServices !== "boolean") - return "pyGenericServices: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) - if (typeof message.ccEnableArenas !== "boolean") - return "ccEnableArenas: boolean expected"; - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) - if (!$util.isString(message.objcClassPrefix)) - return "objcClassPrefix: string expected"; - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) - if (!$util.isString(message.csharpNamespace)) - return "csharpNamespace: string expected"; - if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) - if (!$util.isString(message.swiftPrefix)) - return "swiftPrefix: string expected"; - if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) - if (!$util.isString(message.phpClassPrefix)) - return "phpClassPrefix: string expected"; - if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) - if (!$util.isString(message.phpNamespace)) - return "phpNamespace: string expected"; - if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) - if (!$util.isString(message.phpMetadataNamespace)) - return "phpMetadataNamespace: string expected"; - if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) - if (!$util.isString(message.rubyPackage)) - return "rubyPackage: string expected"; - if (message.features != null && message.hasOwnProperty("features")) { - var error = $root.google.protobuf.FeatureSet.verify(message.features); - if (error) - return "features." + error; - } - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.resourceDefinition"] != null && message.hasOwnProperty(".google.api.resourceDefinition")) { - if (!Array.isArray(message[".google.api.resourceDefinition"])) - return ".google.api.resourceDefinition: array expected"; - for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) { - var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resourceDefinition"][i]); - if (error) - return ".google.api.resourceDefinition." + error; - } - } - return null; - }; - - /** - * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FileOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FileOptions} FileOptions - */ - FileOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileOptions) - return object; - var message = new $root.google.protobuf.FileOptions(); - if (object.javaPackage != null) - message.javaPackage = String(object.javaPackage); - if (object.javaOuterClassname != null) - message.javaOuterClassname = String(object.javaOuterClassname); - if (object.javaMultipleFiles != null) - message.javaMultipleFiles = Boolean(object.javaMultipleFiles); - if (object.javaGenerateEqualsAndHash != null) - message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); - if (object.javaStringCheckUtf8 != null) - message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); - switch (object.optimizeFor) { - default: - if (typeof object.optimizeFor === "number") { - message.optimizeFor = object.optimizeFor; - break; - } - break; - case "SPEED": - case 1: - message.optimizeFor = 1; - break; - case "CODE_SIZE": - case 2: - message.optimizeFor = 2; - break; - case "LITE_RUNTIME": - case 3: - message.optimizeFor = 3; - break; - } - if (object.goPackage != null) - message.goPackage = String(object.goPackage); - if (object.ccGenericServices != null) - message.ccGenericServices = Boolean(object.ccGenericServices); - if (object.javaGenericServices != null) - message.javaGenericServices = Boolean(object.javaGenericServices); - if (object.pyGenericServices != null) - message.pyGenericServices = Boolean(object.pyGenericServices); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.ccEnableArenas != null) - message.ccEnableArenas = Boolean(object.ccEnableArenas); - if (object.objcClassPrefix != null) - message.objcClassPrefix = String(object.objcClassPrefix); - if (object.csharpNamespace != null) - message.csharpNamespace = String(object.csharpNamespace); - if (object.swiftPrefix != null) - message.swiftPrefix = String(object.swiftPrefix); - if (object.phpClassPrefix != null) - message.phpClassPrefix = String(object.phpClassPrefix); - if (object.phpNamespace != null) - message.phpNamespace = String(object.phpNamespace); - if (object.phpMetadataNamespace != null) - message.phpMetadataNamespace = String(object.phpMetadataNamespace); - if (object.rubyPackage != null) - message.rubyPackage = String(object.rubyPackage); - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.FileOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); - } - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.resourceDefinition"]) { - if (!Array.isArray(object[".google.api.resourceDefinition"])) - throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected"); - message[".google.api.resourceDefinition"] = []; - for (var i = 0; i < object[".google.api.resourceDefinition"].length; ++i) { - if (typeof object[".google.api.resourceDefinition"][i] !== "object") - throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected"); - message[".google.api.resourceDefinition"][i] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resourceDefinition"][i]); - } - } - return message; - }; - - /** - * Creates a plain object from a FileOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.FileOptions} message FileOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FileOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.uninterpretedOption = []; - object[".google.api.resourceDefinition"] = []; - } - if (options.defaults) { - object.javaPackage = ""; - object.javaOuterClassname = ""; - object.optimizeFor = options.enums === String ? "SPEED" : 1; - object.javaMultipleFiles = false; - object.goPackage = ""; - object.ccGenericServices = false; - object.javaGenericServices = false; - object.pyGenericServices = false; - object.javaGenerateEqualsAndHash = false; - object.deprecated = false; - object.javaStringCheckUtf8 = false; - object.ccEnableArenas = true; - object.objcClassPrefix = ""; - object.csharpNamespace = ""; - object.swiftPrefix = ""; - object.phpClassPrefix = ""; - object.phpNamespace = ""; - object.phpMetadataNamespace = ""; - object.rubyPackage = ""; - object.features = null; - } - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) - object.javaPackage = message.javaPackage; - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) - object.javaOuterClassname = message.javaOuterClassname; - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] === undefined ? message.optimizeFor : $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) - object.javaMultipleFiles = message.javaMultipleFiles; - if (message.goPackage != null && message.hasOwnProperty("goPackage")) - object.goPackage = message.goPackage; - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) - object.ccGenericServices = message.ccGenericServices; - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) - object.javaGenericServices = message.javaGenericServices; - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) - object.pyGenericServices = message.pyGenericServices; - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) - object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) - object.javaStringCheckUtf8 = message.javaStringCheckUtf8; - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) - object.ccEnableArenas = message.ccEnableArenas; - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) - object.objcClassPrefix = message.objcClassPrefix; - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) - object.csharpNamespace = message.csharpNamespace; - if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) - object.swiftPrefix = message.swiftPrefix; - if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) - object.phpClassPrefix = message.phpClassPrefix; - if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) - object.phpNamespace = message.phpNamespace; - if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) - object.phpMetadataNamespace = message.phpMetadataNamespace; - if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) - object.rubyPackage = message.rubyPackage; - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length) { - object[".google.api.resourceDefinition"] = []; - for (var j = 0; j < message[".google.api.resourceDefinition"].length; ++j) - object[".google.api.resourceDefinition"][j] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resourceDefinition"][j], options); - } - return object; - }; - - /** - * Converts this FileOptions to JSON. - * @function toJSON - * @memberof google.protobuf.FileOptions - * @instance - * @returns {Object.} JSON object - */ - FileOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FileOptions - * @function getTypeUrl - * @memberof google.protobuf.FileOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FileOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FileOptions"; - }; - - /** - * OptimizeMode enum. - * @name google.protobuf.FileOptions.OptimizeMode - * @enum {number} - * @property {number} SPEED=1 SPEED value - * @property {number} CODE_SIZE=2 CODE_SIZE value - * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value - */ - FileOptions.OptimizeMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "SPEED"] = 1; - values[valuesById[2] = "CODE_SIZE"] = 2; - values[valuesById[3] = "LITE_RUNTIME"] = 3; - return values; - })(); - - return FileOptions; - })(); - - protobuf.MessageOptions = (function() { - - /** - * Properties of a MessageOptions. - * @memberof google.protobuf - * @interface IMessageOptions - * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat - * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor - * @property {boolean|null} [deprecated] MessageOptions deprecated - * @property {boolean|null} [mapEntry] MessageOptions mapEntry - * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts - * @property {google.protobuf.IFeatureSet|null} [features] MessageOptions features - * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption - * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource - */ - - /** - * Constructs a new MessageOptions. - * @memberof google.protobuf - * @classdesc Represents a MessageOptions. - * @implements IMessageOptions - * @constructor - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set - */ - function MessageOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MessageOptions messageSetWireFormat. - * @member {boolean} messageSetWireFormat - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.messageSetWireFormat = false; - - /** - * MessageOptions noStandardDescriptorAccessor. - * @member {boolean} noStandardDescriptorAccessor - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.noStandardDescriptorAccessor = false; - - /** - * MessageOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.deprecated = false; - - /** - * MessageOptions mapEntry. - * @member {boolean} mapEntry - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.mapEntry = false; - - /** - * MessageOptions deprecatedLegacyJsonFieldConflicts. - * @member {boolean} deprecatedLegacyJsonFieldConflicts - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false; - - /** - * MessageOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.features = null; - - /** - * MessageOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * MessageOptions .google.api.resource. - * @member {google.api.IResourceDescriptor|null|undefined} .google.api.resource - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype[".google.api.resource"] = null; - - /** - * Creates a new MessageOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set - * @returns {google.protobuf.MessageOptions} MessageOptions instance - */ - MessageOptions.create = function create(properties) { - return new MessageOptions(properties); - }; - - /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MessageOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); - if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); - if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.resource"] != null && Object.hasOwnProperty.call(message, ".google.api.resource")) - $root.google.api.ResourceDescriptor.encode(message[".google.api.resource"], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MessageOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.MessageOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MessageOptions} MessageOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MessageOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.messageSetWireFormat = reader.bool(); - break; - } - case 2: { - message.noStandardDescriptorAccessor = reader.bool(); - break; - } - case 3: { - message.deprecated = reader.bool(); - break; - } - case 7: { - message.mapEntry = reader.bool(); - break; - } - case 11: { - message.deprecatedLegacyJsonFieldConflicts = reader.bool(); - break; - } - case 12: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); - break; - } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - case 1053: { - message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MessageOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.MessageOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MessageOptions} MessageOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MessageOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MessageOptions message. - * @function verify - * @memberof google.protobuf.MessageOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MessageOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) - if (typeof message.messageSetWireFormat !== "boolean") - return "messageSetWireFormat: boolean expected"; - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) - if (typeof message.noStandardDescriptorAccessor !== "boolean") - return "noStandardDescriptorAccessor: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) - if (typeof message.mapEntry !== "boolean") - return "mapEntry: boolean expected"; - if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) - if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean") - return "deprecatedLegacyJsonFieldConflicts: boolean expected"; - if (message.features != null && message.hasOwnProperty("features")) { - var error = $root.google.protobuf.FeatureSet.verify(message.features); - if (error) - return "features." + error; - } - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) { - var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resource"]); - if (error) - return ".google.api.resource." + error; - } - return null; - }; - - /** - * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.MessageOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.MessageOptions} MessageOptions - */ - MessageOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MessageOptions) - return object; - var message = new $root.google.protobuf.MessageOptions(); - if (object.messageSetWireFormat != null) - message.messageSetWireFormat = Boolean(object.messageSetWireFormat); - if (object.noStandardDescriptorAccessor != null) - message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.mapEntry != null) - message.mapEntry = Boolean(object.mapEntry); - if (object.deprecatedLegacyJsonFieldConflicts != null) - message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.MessageOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); - } - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.resource"] != null) { - if (typeof object[".google.api.resource"] !== "object") - throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected"); - message[".google.api.resource"] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resource"]); - } - return message; - }; - - /** - * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.MessageOptions} message MessageOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MessageOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) { - object.messageSetWireFormat = false; - object.noStandardDescriptorAccessor = false; - object.deprecated = false; - object.mapEntry = false; - object.deprecatedLegacyJsonFieldConflicts = false; - object.features = null; - object[".google.api.resource"] = null; - } - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) - object.messageSetWireFormat = message.messageSetWireFormat; - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) - object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) - object.mapEntry = message.mapEntry; - if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) - object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) - object[".google.api.resource"] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resource"], options); - return object; - }; - - /** - * Converts this MessageOptions to JSON. - * @function toJSON - * @memberof google.protobuf.MessageOptions - * @instance - * @returns {Object.} JSON object - */ - MessageOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for MessageOptions - * @function getTypeUrl - * @memberof google.protobuf.MessageOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MessageOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.MessageOptions"; - }; - - return MessageOptions; - })(); - - protobuf.FieldOptions = (function() { - - /** - * Properties of a FieldOptions. - * @memberof google.protobuf - * @interface IFieldOptions - * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype - * @property {boolean|null} [packed] FieldOptions packed - * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype - * @property {boolean|null} [lazy] FieldOptions lazy - * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy - * @property {boolean|null} [deprecated] FieldOptions deprecated - * @property {boolean|null} [weak] FieldOptions weak - * @property {boolean|null} [debugRedact] FieldOptions debugRedact - * @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention - * @property {Array.|null} [targets] FieldOptions targets - * @property {Array.|null} [editionDefaults] FieldOptions editionDefaults - * @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features - * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption - * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior - * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference - */ - - /** - * Constructs a new FieldOptions. - * @memberof google.protobuf - * @classdesc Represents a FieldOptions. - * @implements IFieldOptions - * @constructor - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set - */ - function FieldOptions(properties) { - this.targets = []; - this.editionDefaults = []; - this.uninterpretedOption = []; - this[".google.api.fieldBehavior"] = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FieldOptions ctype. - * @member {google.protobuf.FieldOptions.CType} ctype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.ctype = 0; - - /** - * FieldOptions packed. - * @member {boolean} packed - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.packed = false; - - /** - * FieldOptions jstype. - * @member {google.protobuf.FieldOptions.JSType} jstype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.jstype = 0; - - /** - * FieldOptions lazy. - * @member {boolean} lazy - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.lazy = false; - - /** - * FieldOptions unverifiedLazy. - * @member {boolean} unverifiedLazy - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.unverifiedLazy = false; - - /** - * FieldOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.deprecated = false; - - /** - * FieldOptions weak. - * @member {boolean} weak - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.weak = false; - - /** - * FieldOptions debugRedact. - * @member {boolean} debugRedact - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.debugRedact = false; - - /** - * FieldOptions retention. - * @member {google.protobuf.FieldOptions.OptionRetention} retention - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.retention = 0; - - /** - * FieldOptions targets. - * @member {Array.} targets - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.targets = $util.emptyArray; - - /** - * FieldOptions editionDefaults. - * @member {Array.} editionDefaults - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.editionDefaults = $util.emptyArray; - - /** - * FieldOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.features = null; - - /** - * FieldOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * FieldOptions .google.api.fieldBehavior. - * @member {Array.} .google.api.fieldBehavior - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; - - /** - * FieldOptions .google.api.resourceReference. - * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype[".google.api.resourceReference"] = null; - - /** - * Creates a new FieldOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.FieldOptions - * @static - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set - * @returns {google.protobuf.FieldOptions} FieldOptions instance - */ - FieldOptions.create = function create(properties) { - return new FieldOptions(properties); - }; - - /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldOptions - * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); - if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); - if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); - if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); - if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) - writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); - if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact); - if (message.retention != null && Object.hasOwnProperty.call(message, "retention")) - writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention); - if (message.targets != null && message.targets.length) - for (var i = 0; i < message.targets.length; ++i) - writer.uint32(/* id 19, wireType 0 =*/152).int32(message.targets[i]); - if (message.editionDefaults != null && message.editionDefaults.length) - for (var i = 0; i < message.editionDefaults.length; ++i) - $root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) { - writer.uint32(/* id 1052, wireType 2 =*/8418).fork(); - for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) - writer.int32(message[".google.api.fieldBehavior"][i]); - writer.ldelim(); - } - if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) - $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FieldOptions - * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FieldOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldOptions} FieldOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.ctype = reader.int32(); - break; - } - case 2: { - message.packed = reader.bool(); - break; - } - case 6: { - message.jstype = reader.int32(); - break; - } - case 5: { - message.lazy = reader.bool(); - break; - } - case 15: { - message.unverifiedLazy = reader.bool(); - break; - } - case 3: { - message.deprecated = reader.bool(); - break; - } - case 10: { - message.weak = reader.bool(); - break; - } - case 16: { - message.debugRedact = reader.bool(); - break; - } - case 17: { - message.retention = reader.int32(); - break; - } - case 19: { - if (!(message.targets && message.targets.length)) - message.targets = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.targets.push(reader.int32()); - } else - message.targets.push(reader.int32()); - break; - } - case 20: { - if (!(message.editionDefaults && message.editionDefaults.length)) - message.editionDefaults = []; - message.editionDefaults.push($root.google.protobuf.FieldOptions.EditionDefault.decode(reader, reader.uint32())); - break; - } - case 21: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); - break; - } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - case 1052: { - if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) - message[".google.api.fieldBehavior"] = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message[".google.api.fieldBehavior"].push(reader.int32()); - } else - message[".google.api.fieldBehavior"].push(reader.int32()); - break; - } - case 1055: { - message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FieldOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FieldOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldOptions} FieldOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FieldOptions message. - * @function verify - * @memberof google.protobuf.FieldOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FieldOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ctype != null && message.hasOwnProperty("ctype")) - switch (message.ctype) { - default: - return "ctype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.packed != null && message.hasOwnProperty("packed")) - if (typeof message.packed !== "boolean") - return "packed: boolean expected"; - if (message.jstype != null && message.hasOwnProperty("jstype")) - switch (message.jstype) { - default: - return "jstype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.lazy != null && message.hasOwnProperty("lazy")) - if (typeof message.lazy !== "boolean") - return "lazy: boolean expected"; - if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) - if (typeof message.unverifiedLazy !== "boolean") - return "unverifiedLazy: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.weak != null && message.hasOwnProperty("weak")) - if (typeof message.weak !== "boolean") - return "weak: boolean expected"; - if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) - if (typeof message.debugRedact !== "boolean") - return "debugRedact: boolean expected"; - if (message.retention != null && message.hasOwnProperty("retention")) - switch (message.retention) { - default: - return "retention: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.targets != null && message.hasOwnProperty("targets")) { - if (!Array.isArray(message.targets)) - return "targets: array expected"; - for (var i = 0; i < message.targets.length; ++i) - switch (message.targets[i]) { - default: - return "targets: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - } - if (message.editionDefaults != null && message.hasOwnProperty("editionDefaults")) { - if (!Array.isArray(message.editionDefaults)) - return "editionDefaults: array expected"; - for (var i = 0; i < message.editionDefaults.length; ++i) { - var error = $root.google.protobuf.FieldOptions.EditionDefault.verify(message.editionDefaults[i]); - if (error) - return "editionDefaults." + error; - } - } - if (message.features != null && message.hasOwnProperty("features")) { - var error = $root.google.protobuf.FeatureSet.verify(message.features); - if (error) - return "features." + error; - } - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) { - if (!Array.isArray(message[".google.api.fieldBehavior"])) - return ".google.api.fieldBehavior: array expected"; - for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) - switch (message[".google.api.fieldBehavior"][i]) { - default: - return ".google.api.fieldBehavior: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - } - if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) { - var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]); - if (error) - return ".google.api.resourceReference." + error; - } - return null; - }; - - /** - * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FieldOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FieldOptions} FieldOptions - */ - FieldOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldOptions) - return object; - var message = new $root.google.protobuf.FieldOptions(); - switch (object.ctype) { - default: - if (typeof object.ctype === "number") { - message.ctype = object.ctype; - break; - } - break; - case "STRING": - case 0: - message.ctype = 0; - break; - case "CORD": - case 1: - message.ctype = 1; - break; - case "STRING_PIECE": - case 2: - message.ctype = 2; - break; - } - if (object.packed != null) - message.packed = Boolean(object.packed); - switch (object.jstype) { - default: - if (typeof object.jstype === "number") { - message.jstype = object.jstype; - break; - } - break; - case "JS_NORMAL": - case 0: - message.jstype = 0; - break; - case "JS_STRING": - case 1: - message.jstype = 1; - break; - case "JS_NUMBER": - case 2: - message.jstype = 2; - break; - } - if (object.lazy != null) - message.lazy = Boolean(object.lazy); - if (object.unverifiedLazy != null) - message.unverifiedLazy = Boolean(object.unverifiedLazy); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.weak != null) - message.weak = Boolean(object.weak); - if (object.debugRedact != null) - message.debugRedact = Boolean(object.debugRedact); - switch (object.retention) { - default: - if (typeof object.retention === "number") { - message.retention = object.retention; - break; - } - break; - case "RETENTION_UNKNOWN": - case 0: - message.retention = 0; - break; - case "RETENTION_RUNTIME": - case 1: - message.retention = 1; - break; - case "RETENTION_SOURCE": - case 2: - message.retention = 2; - break; - } - if (object.targets) { - if (!Array.isArray(object.targets)) - throw TypeError(".google.protobuf.FieldOptions.targets: array expected"); - message.targets = []; - for (var i = 0; i < object.targets.length; ++i) - switch (object.targets[i]) { - default: - if (typeof object.targets[i] === "number") { - message.targets[i] = object.targets[i]; - break; - } - case "TARGET_TYPE_UNKNOWN": - case 0: - message.targets[i] = 0; - break; - case "TARGET_TYPE_FILE": - case 1: - message.targets[i] = 1; - break; - case "TARGET_TYPE_EXTENSION_RANGE": - case 2: - message.targets[i] = 2; - break; - case "TARGET_TYPE_MESSAGE": - case 3: - message.targets[i] = 3; - break; - case "TARGET_TYPE_FIELD": - case 4: - message.targets[i] = 4; - break; - case "TARGET_TYPE_ONEOF": - case 5: - message.targets[i] = 5; - break; - case "TARGET_TYPE_ENUM": - case 6: - message.targets[i] = 6; - break; - case "TARGET_TYPE_ENUM_ENTRY": - case 7: - message.targets[i] = 7; - break; - case "TARGET_TYPE_SERVICE": - case 8: - message.targets[i] = 8; - break; - case "TARGET_TYPE_METHOD": - case 9: - message.targets[i] = 9; - break; - } - } - if (object.editionDefaults) { - if (!Array.isArray(object.editionDefaults)) - throw TypeError(".google.protobuf.FieldOptions.editionDefaults: array expected"); - message.editionDefaults = []; - for (var i = 0; i < object.editionDefaults.length; ++i) { - if (typeof object.editionDefaults[i] !== "object") - throw TypeError(".google.protobuf.FieldOptions.editionDefaults: object expected"); - message.editionDefaults[i] = $root.google.protobuf.FieldOptions.EditionDefault.fromObject(object.editionDefaults[i]); - } - } - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.FieldOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); - } - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.fieldBehavior"]) { - if (!Array.isArray(object[".google.api.fieldBehavior"])) - throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected"); - message[".google.api.fieldBehavior"] = []; - for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) - switch (object[".google.api.fieldBehavior"][i]) { - default: - if (typeof object[".google.api.fieldBehavior"][i] === "number") { - message[".google.api.fieldBehavior"][i] = object[".google.api.fieldBehavior"][i]; - break; - } - case "FIELD_BEHAVIOR_UNSPECIFIED": - case 0: - message[".google.api.fieldBehavior"][i] = 0; - break; - case "OPTIONAL": - case 1: - message[".google.api.fieldBehavior"][i] = 1; - break; - case "REQUIRED": - case 2: - message[".google.api.fieldBehavior"][i] = 2; - break; - case "OUTPUT_ONLY": - case 3: - message[".google.api.fieldBehavior"][i] = 3; - break; - case "INPUT_ONLY": - case 4: - message[".google.api.fieldBehavior"][i] = 4; - break; - case "IMMUTABLE": - case 5: - message[".google.api.fieldBehavior"][i] = 5; - break; - case "UNORDERED_LIST": - case 6: - message[".google.api.fieldBehavior"][i] = 6; - break; - case "NON_EMPTY_DEFAULT": - case 7: - message[".google.api.fieldBehavior"][i] = 7; - break; - case "IDENTIFIER": - case 8: - message[".google.api.fieldBehavior"][i] = 8; - break; - } - } - if (object[".google.api.resourceReference"] != null) { - if (typeof object[".google.api.resourceReference"] !== "object") - throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); - message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]); - } - return message; - }; - - /** - * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FieldOptions - * @static - * @param {google.protobuf.FieldOptions} message FieldOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FieldOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.targets = []; - object.editionDefaults = []; - object.uninterpretedOption = []; - object[".google.api.fieldBehavior"] = []; - } - if (options.defaults) { - object.ctype = options.enums === String ? "STRING" : 0; - object.packed = false; - object.deprecated = false; - object.lazy = false; - object.jstype = options.enums === String ? "JS_NORMAL" : 0; - object.weak = false; - object.unverifiedLazy = false; - object.debugRedact = false; - object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0; - object.features = null; - object[".google.api.resourceReference"] = null; - } - if (message.ctype != null && message.hasOwnProperty("ctype")) - object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; - if (message.packed != null && message.hasOwnProperty("packed")) - object.packed = message.packed; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.lazy != null && message.hasOwnProperty("lazy")) - object.lazy = message.lazy; - if (message.jstype != null && message.hasOwnProperty("jstype")) - object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] === undefined ? message.jstype : $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; - if (message.weak != null && message.hasOwnProperty("weak")) - object.weak = message.weak; - if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) - object.unverifiedLazy = message.unverifiedLazy; - if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) - object.debugRedact = message.debugRedact; - if (message.retention != null && message.hasOwnProperty("retention")) - object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention; - if (message.targets && message.targets.length) { - object.targets = []; - for (var j = 0; j < message.targets.length; ++j) - object.targets[j] = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] === undefined ? message.targets[j] : $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] : message.targets[j]; - } - if (message.editionDefaults && message.editionDefaults.length) { - object.editionDefaults = []; - for (var j = 0; j < message.editionDefaults.length; ++j) - object.editionDefaults[j] = $root.google.protobuf.FieldOptions.EditionDefault.toObject(message.editionDefaults[j], options); - } - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { - object[".google.api.fieldBehavior"] = []; - for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) - object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] === undefined ? message[".google.api.fieldBehavior"][j] : $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; - } - if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) - object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); - return object; - }; - - /** - * Converts this FieldOptions to JSON. - * @function toJSON - * @memberof google.protobuf.FieldOptions - * @instance - * @returns {Object.} JSON object - */ - FieldOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FieldOptions - * @function getTypeUrl - * @memberof google.protobuf.FieldOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FieldOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FieldOptions"; - }; - - /** - * CType enum. - * @name google.protobuf.FieldOptions.CType - * @enum {number} - * @property {number} STRING=0 STRING value - * @property {number} CORD=1 CORD value - * @property {number} STRING_PIECE=2 STRING_PIECE value - */ - FieldOptions.CType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STRING"] = 0; - values[valuesById[1] = "CORD"] = 1; - values[valuesById[2] = "STRING_PIECE"] = 2; - return values; - })(); - - /** - * JSType enum. - * @name google.protobuf.FieldOptions.JSType - * @enum {number} - * @property {number} JS_NORMAL=0 JS_NORMAL value - * @property {number} JS_STRING=1 JS_STRING value - * @property {number} JS_NUMBER=2 JS_NUMBER value - */ - FieldOptions.JSType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "JS_NORMAL"] = 0; - values[valuesById[1] = "JS_STRING"] = 1; - values[valuesById[2] = "JS_NUMBER"] = 2; - return values; - })(); - - /** - * OptionRetention enum. - * @name google.protobuf.FieldOptions.OptionRetention - * @enum {number} - * @property {number} RETENTION_UNKNOWN=0 RETENTION_UNKNOWN value - * @property {number} RETENTION_RUNTIME=1 RETENTION_RUNTIME value - * @property {number} RETENTION_SOURCE=2 RETENTION_SOURCE value - */ - FieldOptions.OptionRetention = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RETENTION_UNKNOWN"] = 0; - values[valuesById[1] = "RETENTION_RUNTIME"] = 1; - values[valuesById[2] = "RETENTION_SOURCE"] = 2; - return values; - })(); - - /** - * OptionTargetType enum. - * @name google.protobuf.FieldOptions.OptionTargetType - * @enum {number} - * @property {number} TARGET_TYPE_UNKNOWN=0 TARGET_TYPE_UNKNOWN value - * @property {number} TARGET_TYPE_FILE=1 TARGET_TYPE_FILE value - * @property {number} TARGET_TYPE_EXTENSION_RANGE=2 TARGET_TYPE_EXTENSION_RANGE value - * @property {number} TARGET_TYPE_MESSAGE=3 TARGET_TYPE_MESSAGE value - * @property {number} TARGET_TYPE_FIELD=4 TARGET_TYPE_FIELD value - * @property {number} TARGET_TYPE_ONEOF=5 TARGET_TYPE_ONEOF value - * @property {number} TARGET_TYPE_ENUM=6 TARGET_TYPE_ENUM value - * @property {number} TARGET_TYPE_ENUM_ENTRY=7 TARGET_TYPE_ENUM_ENTRY value - * @property {number} TARGET_TYPE_SERVICE=8 TARGET_TYPE_SERVICE value - * @property {number} TARGET_TYPE_METHOD=9 TARGET_TYPE_METHOD value - */ - FieldOptions.OptionTargetType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TARGET_TYPE_UNKNOWN"] = 0; - values[valuesById[1] = "TARGET_TYPE_FILE"] = 1; - values[valuesById[2] = "TARGET_TYPE_EXTENSION_RANGE"] = 2; - values[valuesById[3] = "TARGET_TYPE_MESSAGE"] = 3; - values[valuesById[4] = "TARGET_TYPE_FIELD"] = 4; - values[valuesById[5] = "TARGET_TYPE_ONEOF"] = 5; - values[valuesById[6] = "TARGET_TYPE_ENUM"] = 6; - values[valuesById[7] = "TARGET_TYPE_ENUM_ENTRY"] = 7; - values[valuesById[8] = "TARGET_TYPE_SERVICE"] = 8; - values[valuesById[9] = "TARGET_TYPE_METHOD"] = 9; - return values; - })(); - - FieldOptions.EditionDefault = (function() { - - /** - * Properties of an EditionDefault. - * @memberof google.protobuf.FieldOptions - * @interface IEditionDefault - * @property {google.protobuf.Edition|null} [edition] EditionDefault edition - * @property {string|null} [value] EditionDefault value - */ - - /** - * Constructs a new EditionDefault. - * @memberof google.protobuf.FieldOptions - * @classdesc Represents an EditionDefault. - * @implements IEditionDefault - * @constructor - * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set - */ - function EditionDefault(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EditionDefault edition. - * @member {google.protobuf.Edition} edition - * @memberof google.protobuf.FieldOptions.EditionDefault - * @instance - */ - EditionDefault.prototype.edition = 0; - - /** - * EditionDefault value. - * @member {string} value - * @memberof google.protobuf.FieldOptions.EditionDefault - * @instance - */ - EditionDefault.prototype.value = ""; - - /** - * Creates a new EditionDefault instance using the specified properties. - * @function create - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set - * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault instance - */ - EditionDefault.create = function create(properties) { - return new EditionDefault(properties); - }; - - /** - * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EditionDefault.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); - if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition); - return writer; - }; - - /** - * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EditionDefault.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EditionDefault message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EditionDefault.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.EditionDefault(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 3: { - message.edition = reader.int32(); - break; - } - case 2: { - message.value = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EditionDefault message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EditionDefault.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EditionDefault message. - * @function verify - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EditionDefault.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.edition != null && message.hasOwnProperty("edition")) - switch (message.edition) { - default: - return "edition: enum value expected"; - case 0: - case 998: - case 999: - case 1000: - case 1001: - case 1: - case 2: - case 99997: - case 99998: - case 99999: - case 2147483647: - break; - } - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - - /** - * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault - */ - EditionDefault.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldOptions.EditionDefault) - return object; - var message = new $root.google.protobuf.FieldOptions.EditionDefault(); - switch (object.edition) { - default: - if (typeof object.edition === "number") { - message.edition = object.edition; - break; - } - break; - case "EDITION_UNKNOWN": - case 0: - message.edition = 0; - break; - case "EDITION_PROTO2": - case 998: - message.edition = 998; - break; - case "EDITION_PROTO3": - case 999: - message.edition = 999; - break; - case "EDITION_2023": - case 1000: - message.edition = 1000; - break; - case "EDITION_2024": - case 1001: - message.edition = 1001; - break; - case "EDITION_1_TEST_ONLY": - case 1: - message.edition = 1; - break; - case "EDITION_2_TEST_ONLY": - case 2: - message.edition = 2; - break; - case "EDITION_99997_TEST_ONLY": - case 99997: - message.edition = 99997; - break; - case "EDITION_99998_TEST_ONLY": - case 99998: - message.edition = 99998; - break; - case "EDITION_99999_TEST_ONLY": - case 99999: - message.edition = 99999; - break; - case "EDITION_MAX": - case 2147483647: - message.edition = 2147483647; - break; - } - if (object.value != null) - message.value = String(object.value); - return message; - }; - - /** - * Creates a plain object from an EditionDefault message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EditionDefault.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.value = ""; - object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; - } - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - if (message.edition != null && message.hasOwnProperty("edition")) - object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; - return object; - }; - - /** - * Converts this EditionDefault to JSON. - * @function toJSON - * @memberof google.protobuf.FieldOptions.EditionDefault - * @instance - * @returns {Object.} JSON object - */ - EditionDefault.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for EditionDefault - * @function getTypeUrl - * @memberof google.protobuf.FieldOptions.EditionDefault - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault"; - }; - - return EditionDefault; - })(); - - return FieldOptions; - })(); - - protobuf.OneofOptions = (function() { - - /** - * Properties of an OneofOptions. - * @memberof google.protobuf - * @interface IOneofOptions - * @property {google.protobuf.IFeatureSet|null} [features] OneofOptions features - * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption - */ - - /** - * Constructs a new OneofOptions. - * @memberof google.protobuf - * @classdesc Represents an OneofOptions. - * @implements IOneofOptions - * @constructor - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set - */ - function OneofOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * OneofOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.OneofOptions - * @instance - */ - OneofOptions.prototype.features = null; - - /** - * OneofOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.OneofOptions - * @instance - */ - OneofOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new OneofOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set - * @returns {google.protobuf.OneofOptions} OneofOptions instance - */ - OneofOptions.create = function create(properties) { - return new OneofOptions(properties); - }; - - /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an OneofOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.OneofOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofOptions} OneofOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); - break; - } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an OneofOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.OneofOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofOptions} OneofOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an OneofOptions message. - * @function verify - * @memberof google.protobuf.OneofOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OneofOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.features != null && message.hasOwnProperty("features")) { - var error = $root.google.protobuf.FeatureSet.verify(message.features); - if (error) - return "features." + error; - } - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - /** - * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.OneofOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.OneofOptions} OneofOptions - */ - OneofOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.OneofOptions) - return object; - var message = new $root.google.protobuf.OneofOptions(); - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.OneofOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); - } - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.OneofOptions} message OneofOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OneofOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) - object.features = null; - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - return object; - }; - - /** - * Converts this OneofOptions to JSON. - * @function toJSON - * @memberof google.protobuf.OneofOptions - * @instance - * @returns {Object.} JSON object - */ - OneofOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for OneofOptions - * @function getTypeUrl - * @memberof google.protobuf.OneofOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OneofOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.OneofOptions"; - }; - - return OneofOptions; - })(); - - protobuf.EnumOptions = (function() { - - /** - * Properties of an EnumOptions. - * @memberof google.protobuf - * @interface IEnumOptions - * @property {boolean|null} [allowAlias] EnumOptions allowAlias - * @property {boolean|null} [deprecated] EnumOptions deprecated - * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts - * @property {google.protobuf.IFeatureSet|null} [features] EnumOptions features - * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption - */ - - /** - * Constructs a new EnumOptions. - * @memberof google.protobuf - * @classdesc Represents an EnumOptions. - * @implements IEnumOptions - * @constructor - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set - */ - function EnumOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EnumOptions allowAlias. - * @member {boolean} allowAlias - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.allowAlias = false; - - /** - * EnumOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.deprecated = false; - - /** - * EnumOptions deprecatedLegacyJsonFieldConflicts. - * @member {boolean} deprecatedLegacyJsonFieldConflicts - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false; - - /** - * EnumOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.features = null; - - /** - * EnumOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new EnumOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set - * @returns {google.protobuf.EnumOptions} EnumOptions instance - */ - EnumOptions.create = function create(properties) { - return new EnumOptions(properties); - }; - - /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EnumOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumOptions} EnumOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - message.allowAlias = reader.bool(); - break; - } - case 3: { - message.deprecated = reader.bool(); - break; - } - case 6: { - message.deprecatedLegacyJsonFieldConflicts = reader.bool(); - break; - } - case 7: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); - break; - } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EnumOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumOptions} EnumOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnumOptions message. - * @function verify - * @memberof google.protobuf.EnumOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) - if (typeof message.allowAlias !== "boolean") - return "allowAlias: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) - if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean") - return "deprecatedLegacyJsonFieldConflicts: boolean expected"; - if (message.features != null && message.hasOwnProperty("features")) { - var error = $root.google.protobuf.FeatureSet.verify(message.features); - if (error) - return "features." + error; - } - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - /** - * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumOptions} EnumOptions - */ - EnumOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumOptions) - return object; - var message = new $root.google.protobuf.EnumOptions(); - if (object.allowAlias != null) - message.allowAlias = Boolean(object.allowAlias); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.deprecatedLegacyJsonFieldConflicts != null) - message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.EnumOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); - } - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.EnumOptions} message EnumOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EnumOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) { - object.allowAlias = false; - object.deprecated = false; - object.deprecatedLegacyJsonFieldConflicts = false; - object.features = null; - } - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) - object.allowAlias = message.allowAlias; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) - object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - return object; - }; - - /** - * Converts this EnumOptions to JSON. - * @function toJSON - * @memberof google.protobuf.EnumOptions - * @instance - * @returns {Object.} JSON object - */ - EnumOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for EnumOptions - * @function getTypeUrl - * @memberof google.protobuf.EnumOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EnumOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.EnumOptions"; - }; - - return EnumOptions; - })(); - - protobuf.EnumValueOptions = (function() { - - /** - * Properties of an EnumValueOptions. - * @memberof google.protobuf - * @interface IEnumValueOptions - * @property {boolean|null} [deprecated] EnumValueOptions deprecated - * @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features - * @property {boolean|null} [debugRedact] EnumValueOptions debugRedact - * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption - */ - - /** - * Constructs a new EnumValueOptions. - * @memberof google.protobuf - * @classdesc Represents an EnumValueOptions. - * @implements IEnumValueOptions - * @constructor - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set - */ - function EnumValueOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EnumValueOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumValueOptions - * @instance - */ - EnumValueOptions.prototype.deprecated = false; - - /** - * EnumValueOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.EnumValueOptions - * @instance - */ - EnumValueOptions.prototype.features = null; - - /** - * EnumValueOptions debugRedact. - * @member {boolean} debugRedact - * @memberof google.protobuf.EnumValueOptions - * @instance - */ - EnumValueOptions.prototype.debugRedact = false; - - /** - * EnumValueOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.EnumValueOptions - * @instance - */ - EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new EnumValueOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance - */ - EnumValueOptions.create = function create(properties) { - return new EnumValueOptions(properties); - }; - - /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EnumValueOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.deprecated = reader.bool(); - break; - } - case 2: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); - break; - } - case 3: { - message.debugRedact = reader.bool(); - break; - } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnumValueOptions message. - * @function verify - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumValueOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.features != null && message.hasOwnProperty("features")) { - var error = $root.google.protobuf.FeatureSet.verify(message.features); - if (error) - return "features." + error; - } - if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) - if (typeof message.debugRedact !== "boolean") - return "debugRedact: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - /** - * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions - */ - EnumValueOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumValueOptions) - return object; - var message = new $root.google.protobuf.EnumValueOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.EnumValueOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); - } - if (object.debugRedact != null) - message.debugRedact = Boolean(object.debugRedact); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.EnumValueOptions} message EnumValueOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EnumValueOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) { - object.deprecated = false; - object.features = null; - object.debugRedact = false; - } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); - if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) - object.debugRedact = message.debugRedact; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - return object; - }; - - /** - * Converts this EnumValueOptions to JSON. - * @function toJSON - * @memberof google.protobuf.EnumValueOptions - * @instance - * @returns {Object.} JSON object - */ - EnumValueOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for EnumValueOptions - * @function getTypeUrl - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - EnumValueOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.EnumValueOptions"; - }; - - return EnumValueOptions; - })(); - - protobuf.ServiceOptions = (function() { - - /** - * Properties of a ServiceOptions. - * @memberof google.protobuf - * @interface IServiceOptions - * @property {google.protobuf.IFeatureSet|null} [features] ServiceOptions features - * @property {boolean|null} [deprecated] ServiceOptions deprecated - * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption - * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost - * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes - */ - - /** - * Constructs a new ServiceOptions. - * @memberof google.protobuf - * @classdesc Represents a ServiceOptions. - * @implements IServiceOptions - * @constructor - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set - */ - function ServiceOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ServiceOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype.features = null; - - /** - * ServiceOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype.deprecated = false; - - /** - * ServiceOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * ServiceOptions .google.api.defaultHost. - * @member {string} .google.api.defaultHost - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype[".google.api.defaultHost"] = ""; - - /** - * ServiceOptions .google.api.oauthScopes. - * @member {string} .google.api.oauthScopes - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype[".google.api.oauthScopes"] = ""; - - /** - * Creates a new ServiceOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set - * @returns {google.protobuf.ServiceOptions} ServiceOptions instance - */ - ServiceOptions.create = function create(properties) { - return new ServiceOptions(properties); - }; - - /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) - writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); - if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) - writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); - return writer; - }; - - /** - * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ServiceOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ServiceOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceOptions} ServiceOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 34: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); - break; - } - case 33: { - message.deprecated = reader.bool(); - break; - } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - case 1049: { - message[".google.api.defaultHost"] = reader.string(); - break; - } - case 1050: { - message[".google.api.oauthScopes"] = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.ServiceOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceOptions} ServiceOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ServiceOptions message. - * @function verify - * @memberof google.protobuf.ServiceOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ServiceOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.features != null && message.hasOwnProperty("features")) { - var error = $root.google.protobuf.FeatureSet.verify(message.features); - if (error) - return "features." + error; - } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) - if (!$util.isString(message[".google.api.defaultHost"])) - return ".google.api.defaultHost: string expected"; - if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) - if (!$util.isString(message[".google.api.oauthScopes"])) - return ".google.api.oauthScopes: string expected"; - return null; - }; - - /** - * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.ServiceOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.ServiceOptions} ServiceOptions - */ - ServiceOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ServiceOptions) - return object; - var message = new $root.google.protobuf.ServiceOptions(); - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.ServiceOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); - } - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.defaultHost"] != null) - message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]); - if (object[".google.api.oauthScopes"] != null) - message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]); - return message; - }; - - /** - * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.ServiceOptions} message ServiceOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ServiceOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) { - object.deprecated = false; - object.features = null; - object[".google.api.defaultHost"] = ""; - object[".google.api.oauthScopes"] = ""; - } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) - object[".google.api.defaultHost"] = message[".google.api.defaultHost"]; - if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) - object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"]; - return object; - }; - - /** - * Converts this ServiceOptions to JSON. - * @function toJSON - * @memberof google.protobuf.ServiceOptions - * @instance - * @returns {Object.} JSON object - */ - ServiceOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ServiceOptions - * @function getTypeUrl - * @memberof google.protobuf.ServiceOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ServiceOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.ServiceOptions"; - }; - - return ServiceOptions; - })(); - - protobuf.MethodOptions = (function() { - - /** - * Properties of a MethodOptions. - * @memberof google.protobuf - * @interface IMethodOptions - * @property {boolean|null} [deprecated] MethodOptions deprecated - * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel - * @property {google.protobuf.IFeatureSet|null} [features] MethodOptions features - * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption - * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http - * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature - */ - - /** - * Constructs a new MethodOptions. - * @memberof google.protobuf - * @classdesc Represents a MethodOptions. - * @implements IMethodOptions - * @constructor - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set - */ - function MethodOptions(properties) { - this.uninterpretedOption = []; - this[".google.api.methodSignature"] = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MethodOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype.deprecated = false; - - /** - * MethodOptions idempotencyLevel. - * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype.idempotencyLevel = 0; - - /** - * MethodOptions features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype.features = null; - - /** - * MethodOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * MethodOptions .google.api.http. - * @member {google.api.IHttpRule|null|undefined} .google.api.http - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype[".google.api.http"] = null; - - /** - * MethodOptions .google.api.methodSignature. - * @member {Array.} .google.api.methodSignature - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray; - - /** - * Creates a new MethodOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set - * @returns {google.protobuf.MethodOptions} MethodOptions instance - */ - MethodOptions.create = function create(properties) { - return new MethodOptions(properties); - }; - - /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MethodOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) - writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) - for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) - writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); - if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) - $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MethodOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.MethodOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodOptions} MethodOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MethodOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 33: { - message.deprecated = reader.bool(); - break; - } - case 34: { - message.idempotencyLevel = reader.int32(); - break; - } - case 35: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); - break; - } - case 999: { - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - } - case 72295728: { - message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); - break; - } - case 1051: { - if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) - message[".google.api.methodSignature"] = []; - message[".google.api.methodSignature"].push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MethodOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.MethodOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodOptions} MethodOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MethodOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MethodOptions message. - * @function verify - * @memberof google.protobuf.MethodOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MethodOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) - switch (message.idempotencyLevel) { - default: - return "idempotencyLevel: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.features != null && message.hasOwnProperty("features")) { - var error = $root.google.protobuf.FeatureSet.verify(message.features); - if (error) - return "features." + error; - } - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { - var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); - if (error) - return ".google.api.http." + error; - } - if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) { - if (!Array.isArray(message[".google.api.methodSignature"])) - return ".google.api.methodSignature: array expected"; - for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) - if (!$util.isString(message[".google.api.methodSignature"][i])) - return ".google.api.methodSignature: string[] expected"; - } - return null; - }; - - /** - * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.MethodOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.MethodOptions} MethodOptions - */ - MethodOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MethodOptions) - return object; - var message = new $root.google.protobuf.MethodOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - switch (object.idempotencyLevel) { - default: - if (typeof object.idempotencyLevel === "number") { - message.idempotencyLevel = object.idempotencyLevel; - break; - } - break; - case "IDEMPOTENCY_UNKNOWN": - case 0: - message.idempotencyLevel = 0; - break; - case "NO_SIDE_EFFECTS": - case 1: - message.idempotencyLevel = 1; - break; - case "IDEMPOTENT": - case 2: - message.idempotencyLevel = 2; - break; - } - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.MethodOptions.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); - } - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.http"] != null) { - if (typeof object[".google.api.http"] !== "object") - throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); - message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); - } - if (object[".google.api.methodSignature"]) { - if (!Array.isArray(object[".google.api.methodSignature"])) - throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected"); - message[".google.api.methodSignature"] = []; - for (var i = 0; i < object[".google.api.methodSignature"].length; ++i) - message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]); - } - return message; - }; - - /** - * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.MethodOptions} message MethodOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MethodOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.uninterpretedOption = []; - object[".google.api.methodSignature"] = []; - } - if (options.defaults) { - object.deprecated = false; - object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; - object.features = null; - object[".google.api.http"] = null; - } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) - object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length) { - object[".google.api.methodSignature"] = []; - for (var j = 0; j < message[".google.api.methodSignature"].length; ++j) - object[".google.api.methodSignature"][j] = message[".google.api.methodSignature"][j]; - } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) - object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); - return object; - }; - - /** - * Converts this MethodOptions to JSON. - * @function toJSON - * @memberof google.protobuf.MethodOptions - * @instance - * @returns {Object.} JSON object - */ - MethodOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for MethodOptions - * @function getTypeUrl - * @memberof google.protobuf.MethodOptions - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MethodOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.MethodOptions"; - }; - - /** - * IdempotencyLevel enum. - * @name google.protobuf.MethodOptions.IdempotencyLevel - * @enum {number} - * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value - * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value - * @property {number} IDEMPOTENT=2 IDEMPOTENT value - */ - MethodOptions.IdempotencyLevel = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; - values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; - values[valuesById[2] = "IDEMPOTENT"] = 2; - return values; - })(); - - return MethodOptions; - })(); - - protobuf.UninterpretedOption = (function() { - - /** - * Properties of an UninterpretedOption. - * @memberof google.protobuf - * @interface IUninterpretedOption - * @property {Array.|null} [name] UninterpretedOption name - * @property {string|null} [identifierValue] UninterpretedOption identifierValue - * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue - * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue - * @property {number|null} [doubleValue] UninterpretedOption doubleValue - * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue - * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue - */ - - /** - * Constructs a new UninterpretedOption. - * @memberof google.protobuf - * @classdesc Represents an UninterpretedOption. - * @implements IUninterpretedOption - * @constructor - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set - */ - function UninterpretedOption(properties) { - this.name = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UninterpretedOption name. - * @member {Array.} name - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.name = $util.emptyArray; - - /** - * UninterpretedOption identifierValue. - * @member {string} identifierValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.identifierValue = ""; - - /** - * UninterpretedOption positiveIntValue. - * @member {number|Long} positiveIntValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * UninterpretedOption negativeIntValue. - * @member {number|Long} negativeIntValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * UninterpretedOption doubleValue. - * @member {number} doubleValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.doubleValue = 0; - - /** - * UninterpretedOption stringValue. - * @member {Uint8Array} stringValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.stringValue = $util.newBuffer([]); - - /** - * UninterpretedOption aggregateValue. - * @member {string} aggregateValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.aggregateValue = ""; - - /** - * Creates a new UninterpretedOption instance using the specified properties. - * @function create - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance - */ - UninterpretedOption.create = function create(properties) { - return new UninterpretedOption(properties); - }; - - /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UninterpretedOption.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.name.length) - for (var i = 0; i < message.name.length; ++i) - $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); - if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); - if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); - if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) - writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); - if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); - return writer; - }; - - /** - * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UninterpretedOption message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UninterpretedOption.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - if (!(message.name && message.name.length)) - message.name = []; - message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); - break; - } - case 3: { - message.identifierValue = reader.string(); - break; - } - case 4: { - message.positiveIntValue = reader.uint64(); - break; - } - case 5: { - message.negativeIntValue = reader.int64(); - break; - } - case 6: { - message.doubleValue = reader.double(); - break; - } - case 7: { - message.stringValue = reader.bytes(); - break; - } - case 8: { - message.aggregateValue = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UninterpretedOption message. - * @function verify - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UninterpretedOption.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) { - if (!Array.isArray(message.name)) - return "name: array expected"; - for (var i = 0; i < message.name.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); - if (error) - return "name." + error; - } - } - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) - if (!$util.isString(message.identifierValue)) - return "identifierValue: string expected"; - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) - return "positiveIntValue: integer|Long expected"; - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) - return "negativeIntValue: integer|Long expected"; - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) - if (typeof message.doubleValue !== "number") - return "doubleValue: number expected"; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) - return "stringValue: buffer expected"; - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) - if (!$util.isString(message.aggregateValue)) - return "aggregateValue: string expected"; - return null; - }; - - /** - * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption - */ - UninterpretedOption.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.UninterpretedOption) - return object; - var message = new $root.google.protobuf.UninterpretedOption(); - if (object.name) { - if (!Array.isArray(object.name)) - throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); - message.name = []; - for (var i = 0; i < object.name.length; ++i) { - if (typeof object.name[i] !== "object") - throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); - message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); - } - } - if (object.identifierValue != null) - message.identifierValue = String(object.identifierValue); - if (object.positiveIntValue != null) - if ($util.Long) - (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; - else if (typeof object.positiveIntValue === "string") - message.positiveIntValue = parseInt(object.positiveIntValue, 10); - else if (typeof object.positiveIntValue === "number") - message.positiveIntValue = object.positiveIntValue; - else if (typeof object.positiveIntValue === "object") - message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); - if (object.negativeIntValue != null) - if ($util.Long) - (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; - else if (typeof object.negativeIntValue === "string") - message.negativeIntValue = parseInt(object.negativeIntValue, 10); - else if (typeof object.negativeIntValue === "number") - message.negativeIntValue = object.negativeIntValue; - else if (typeof object.negativeIntValue === "object") - message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); - if (object.doubleValue != null) - message.doubleValue = Number(object.doubleValue); - if (object.stringValue != null) - if (typeof object.stringValue === "string") - $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); - else if (object.stringValue.length >= 0) - message.stringValue = object.stringValue; - if (object.aggregateValue != null) - message.aggregateValue = String(object.aggregateValue); - return message; - }; - - /** - * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {google.protobuf.UninterpretedOption} message UninterpretedOption - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UninterpretedOption.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.name = []; - if (options.defaults) { - object.identifierValue = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.positiveIntValue = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.negativeIntValue = options.longs === String ? "0" : 0; - object.doubleValue = 0; - if (options.bytes === String) - object.stringValue = ""; - else { - object.stringValue = []; - if (options.bytes !== Array) - object.stringValue = $util.newBuffer(object.stringValue); - } - object.aggregateValue = ""; - } - if (message.name && message.name.length) { - object.name = []; - for (var j = 0; j < message.name.length; ++j) - object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); - } - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) - object.identifierValue = message.identifierValue; - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - if (typeof message.positiveIntValue === "number") - object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; - else - object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - if (typeof message.negativeIntValue === "number") - object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; - else - object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) - object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) - object.aggregateValue = message.aggregateValue; - return object; - }; - - /** - * Converts this UninterpretedOption to JSON. - * @function toJSON - * @memberof google.protobuf.UninterpretedOption - * @instance - * @returns {Object.} JSON object - */ - UninterpretedOption.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for UninterpretedOption - * @function getTypeUrl - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UninterpretedOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.UninterpretedOption"; - }; - - UninterpretedOption.NamePart = (function() { - - /** - * Properties of a NamePart. - * @memberof google.protobuf.UninterpretedOption - * @interface INamePart - * @property {string} namePart NamePart namePart - * @property {boolean} isExtension NamePart isExtension - */ - - /** - * Constructs a new NamePart. - * @memberof google.protobuf.UninterpretedOption - * @classdesc Represents a NamePart. - * @implements INamePart - * @constructor - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - */ - function NamePart(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamePart namePart. - * @member {string} namePart - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.namePart = ""; - - /** - * NamePart isExtension. - * @member {boolean} isExtension - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.isExtension = false; - - /** - * Creates a new NamePart instance using the specified properties. - * @function create - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance - */ - NamePart.create = function create(properties) { - return new NamePart(properties); - }; - - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); - return writer; - }; - - /** - * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NamePart message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.namePart = reader.string(); - break; - } - case 2: { - message.isExtension = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - if (!message.hasOwnProperty("namePart")) - throw $util.ProtocolError("missing required 'namePart'", { instance: message }); - if (!message.hasOwnProperty("isExtension")) - throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); - return message; - }; - - /** - * Decodes a NamePart message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NamePart message. - * @function verify - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamePart.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (!$util.isString(message.namePart)) - return "namePart: string expected"; - if (typeof message.isExtension !== "boolean") - return "isExtension: boolean expected"; - return null; - }; - - /** - * Creates a NamePart message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - */ - NamePart.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) - return object; - var message = new $root.google.protobuf.UninterpretedOption.NamePart(); - if (object.namePart != null) - message.namePart = String(object.namePart); - if (object.isExtension != null) - message.isExtension = Boolean(object.isExtension); - return message; - }; - - /** - * Creates a plain object from a NamePart message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NamePart.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.namePart = ""; - object.isExtension = false; - } - if (message.namePart != null && message.hasOwnProperty("namePart")) - object.namePart = message.namePart; - if (message.isExtension != null && message.hasOwnProperty("isExtension")) - object.isExtension = message.isExtension; - return object; - }; - - /** - * Converts this NamePart to JSON. - * @function toJSON - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - * @returns {Object.} JSON object - */ - NamePart.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for NamePart - * @function getTypeUrl - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - NamePart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.UninterpretedOption.NamePart"; - }; - - return NamePart; - })(); - - return UninterpretedOption; - })(); - - protobuf.FeatureSet = (function() { - - /** - * Properties of a FeatureSet. - * @memberof google.protobuf - * @interface IFeatureSet - * @property {google.protobuf.FeatureSet.FieldPresence|null} [fieldPresence] FeatureSet fieldPresence - * @property {google.protobuf.FeatureSet.EnumType|null} [enumType] FeatureSet enumType - * @property {google.protobuf.FeatureSet.RepeatedFieldEncoding|null} [repeatedFieldEncoding] FeatureSet repeatedFieldEncoding - * @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation - * @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding - * @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat - */ - - /** - * Constructs a new FeatureSet. - * @memberof google.protobuf - * @classdesc Represents a FeatureSet. - * @implements IFeatureSet - * @constructor - * @param {google.protobuf.IFeatureSet=} [properties] Properties to set - */ - function FeatureSet(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FeatureSet fieldPresence. - * @member {google.protobuf.FeatureSet.FieldPresence} fieldPresence - * @memberof google.protobuf.FeatureSet - * @instance - */ - FeatureSet.prototype.fieldPresence = 0; - - /** - * FeatureSet enumType. - * @member {google.protobuf.FeatureSet.EnumType} enumType - * @memberof google.protobuf.FeatureSet - * @instance - */ - FeatureSet.prototype.enumType = 0; - - /** - * FeatureSet repeatedFieldEncoding. - * @member {google.protobuf.FeatureSet.RepeatedFieldEncoding} repeatedFieldEncoding - * @memberof google.protobuf.FeatureSet - * @instance - */ - FeatureSet.prototype.repeatedFieldEncoding = 0; - - /** - * FeatureSet utf8Validation. - * @member {google.protobuf.FeatureSet.Utf8Validation} utf8Validation - * @memberof google.protobuf.FeatureSet - * @instance - */ - FeatureSet.prototype.utf8Validation = 0; - - /** - * FeatureSet messageEncoding. - * @member {google.protobuf.FeatureSet.MessageEncoding} messageEncoding - * @memberof google.protobuf.FeatureSet - * @instance - */ - FeatureSet.prototype.messageEncoding = 0; - - /** - * FeatureSet jsonFormat. - * @member {google.protobuf.FeatureSet.JsonFormat} jsonFormat - * @memberof google.protobuf.FeatureSet - * @instance - */ - FeatureSet.prototype.jsonFormat = 0; - - /** - * Creates a new FeatureSet instance using the specified properties. - * @function create - * @memberof google.protobuf.FeatureSet - * @static - * @param {google.protobuf.IFeatureSet=} [properties] Properties to set - * @returns {google.protobuf.FeatureSet} FeatureSet instance - */ - FeatureSet.create = function create(properties) { - return new FeatureSet(properties); - }; - - /** - * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FeatureSet - * @static - * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSet.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fieldPresence != null && Object.hasOwnProperty.call(message, "fieldPresence")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.fieldPresence); - if (message.enumType != null && Object.hasOwnProperty.call(message, "enumType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enumType); - if (message.repeatedFieldEncoding != null && Object.hasOwnProperty.call(message, "repeatedFieldEncoding")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatedFieldEncoding); - if (message.utf8Validation != null && Object.hasOwnProperty.call(message, "utf8Validation")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.utf8Validation); - if (message.messageEncoding != null && Object.hasOwnProperty.call(message, "messageEncoding")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding); - if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat); - return writer; - }; - - /** - * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FeatureSet - * @static - * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSet.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FeatureSet message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FeatureSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FeatureSet} FeatureSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSet.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.fieldPresence = reader.int32(); - break; - } - case 2: { - message.enumType = reader.int32(); - break; - } - case 3: { - message.repeatedFieldEncoding = reader.int32(); - break; - } - case 4: { - message.utf8Validation = reader.int32(); - break; - } - case 5: { - message.messageEncoding = reader.int32(); - break; - } - case 6: { - message.jsonFormat = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FeatureSet message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FeatureSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FeatureSet} FeatureSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSet.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FeatureSet message. - * @function verify - * @memberof google.protobuf.FeatureSet - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeatureSet.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence")) - switch (message.fieldPresence) { - default: - return "fieldPresence: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.enumType != null && message.hasOwnProperty("enumType")) - switch (message.enumType) { - default: - return "enumType: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding")) - switch (message.repeatedFieldEncoding) { - default: - return "repeatedFieldEncoding: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation")) - switch (message.utf8Validation) { - default: - return "utf8Validation: enum value expected"; - case 0: - case 2: - case 3: - break; - } - if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding")) - switch (message.messageEncoding) { - default: - return "messageEncoding: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat")) - switch (message.jsonFormat) { - default: - return "jsonFormat: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - /** - * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FeatureSet - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FeatureSet} FeatureSet - */ - FeatureSet.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FeatureSet) - return object; - var message = new $root.google.protobuf.FeatureSet(); - switch (object.fieldPresence) { - default: - if (typeof object.fieldPresence === "number") { - message.fieldPresence = object.fieldPresence; - break; - } - break; - case "FIELD_PRESENCE_UNKNOWN": - case 0: - message.fieldPresence = 0; - break; - case "EXPLICIT": - case 1: - message.fieldPresence = 1; - break; - case "IMPLICIT": - case 2: - message.fieldPresence = 2; - break; - case "LEGACY_REQUIRED": - case 3: - message.fieldPresence = 3; - break; - } - switch (object.enumType) { - default: - if (typeof object.enumType === "number") { - message.enumType = object.enumType; - break; - } - break; - case "ENUM_TYPE_UNKNOWN": - case 0: - message.enumType = 0; - break; - case "OPEN": - case 1: - message.enumType = 1; - break; - case "CLOSED": - case 2: - message.enumType = 2; - break; - } - switch (object.repeatedFieldEncoding) { - default: - if (typeof object.repeatedFieldEncoding === "number") { - message.repeatedFieldEncoding = object.repeatedFieldEncoding; - break; - } - break; - case "REPEATED_FIELD_ENCODING_UNKNOWN": - case 0: - message.repeatedFieldEncoding = 0; - break; - case "PACKED": - case 1: - message.repeatedFieldEncoding = 1; - break; - case "EXPANDED": - case 2: - message.repeatedFieldEncoding = 2; - break; - } - switch (object.utf8Validation) { - default: - if (typeof object.utf8Validation === "number") { - message.utf8Validation = object.utf8Validation; - break; - } - break; - case "UTF8_VALIDATION_UNKNOWN": - case 0: - message.utf8Validation = 0; - break; - case "VERIFY": - case 2: - message.utf8Validation = 2; - break; - case "NONE": - case 3: - message.utf8Validation = 3; - break; - } - switch (object.messageEncoding) { - default: - if (typeof object.messageEncoding === "number") { - message.messageEncoding = object.messageEncoding; - break; - } - break; - case "MESSAGE_ENCODING_UNKNOWN": - case 0: - message.messageEncoding = 0; - break; - case "LENGTH_PREFIXED": - case 1: - message.messageEncoding = 1; - break; - case "DELIMITED": - case 2: - message.messageEncoding = 2; - break; - } - switch (object.jsonFormat) { - default: - if (typeof object.jsonFormat === "number") { - message.jsonFormat = object.jsonFormat; - break; - } - break; - case "JSON_FORMAT_UNKNOWN": - case 0: - message.jsonFormat = 0; - break; - case "ALLOW": - case 1: - message.jsonFormat = 1; - break; - case "LEGACY_BEST_EFFORT": - case 2: - message.jsonFormat = 2; - break; - } - return message; - }; - - /** - * Creates a plain object from a FeatureSet message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FeatureSet - * @static - * @param {google.protobuf.FeatureSet} message FeatureSet - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeatureSet.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.fieldPresence = options.enums === String ? "FIELD_PRESENCE_UNKNOWN" : 0; - object.enumType = options.enums === String ? "ENUM_TYPE_UNKNOWN" : 0; - object.repeatedFieldEncoding = options.enums === String ? "REPEATED_FIELD_ENCODING_UNKNOWN" : 0; - object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0; - object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0; - object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0; - } - if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence")) - object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence; - if (message.enumType != null && message.hasOwnProperty("enumType")) - object.enumType = options.enums === String ? $root.google.protobuf.FeatureSet.EnumType[message.enumType] === undefined ? message.enumType : $root.google.protobuf.FeatureSet.EnumType[message.enumType] : message.enumType; - if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding")) - object.repeatedFieldEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] === undefined ? message.repeatedFieldEncoding : $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] : message.repeatedFieldEncoding; - if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation")) - object.utf8Validation = options.enums === String ? $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] === undefined ? message.utf8Validation : $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] : message.utf8Validation; - if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding")) - object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding; - if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat")) - object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat; - return object; - }; - - /** - * Converts this FeatureSet to JSON. - * @function toJSON - * @memberof google.protobuf.FeatureSet - * @instance - * @returns {Object.} JSON object - */ - FeatureSet.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FeatureSet - * @function getTypeUrl - * @memberof google.protobuf.FeatureSet - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FeatureSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FeatureSet"; - }; - - /** - * FieldPresence enum. - * @name google.protobuf.FeatureSet.FieldPresence - * @enum {number} - * @property {number} FIELD_PRESENCE_UNKNOWN=0 FIELD_PRESENCE_UNKNOWN value - * @property {number} EXPLICIT=1 EXPLICIT value - * @property {number} IMPLICIT=2 IMPLICIT value - * @property {number} LEGACY_REQUIRED=3 LEGACY_REQUIRED value - */ - FeatureSet.FieldPresence = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FIELD_PRESENCE_UNKNOWN"] = 0; - values[valuesById[1] = "EXPLICIT"] = 1; - values[valuesById[2] = "IMPLICIT"] = 2; - values[valuesById[3] = "LEGACY_REQUIRED"] = 3; - return values; - })(); - - /** - * EnumType enum. - * @name google.protobuf.FeatureSet.EnumType - * @enum {number} - * @property {number} ENUM_TYPE_UNKNOWN=0 ENUM_TYPE_UNKNOWN value - * @property {number} OPEN=1 OPEN value - * @property {number} CLOSED=2 CLOSED value - */ - FeatureSet.EnumType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ENUM_TYPE_UNKNOWN"] = 0; - values[valuesById[1] = "OPEN"] = 1; - values[valuesById[2] = "CLOSED"] = 2; - return values; - })(); - - /** - * RepeatedFieldEncoding enum. - * @name google.protobuf.FeatureSet.RepeatedFieldEncoding - * @enum {number} - * @property {number} REPEATED_FIELD_ENCODING_UNKNOWN=0 REPEATED_FIELD_ENCODING_UNKNOWN value - * @property {number} PACKED=1 PACKED value - * @property {number} EXPANDED=2 EXPANDED value - */ - FeatureSet.RepeatedFieldEncoding = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "REPEATED_FIELD_ENCODING_UNKNOWN"] = 0; - values[valuesById[1] = "PACKED"] = 1; - values[valuesById[2] = "EXPANDED"] = 2; - return values; - })(); - - /** - * Utf8Validation enum. - * @name google.protobuf.FeatureSet.Utf8Validation - * @enum {number} - * @property {number} UTF8_VALIDATION_UNKNOWN=0 UTF8_VALIDATION_UNKNOWN value - * @property {number} VERIFY=2 VERIFY value - * @property {number} NONE=3 NONE value - */ - FeatureSet.Utf8Validation = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UTF8_VALIDATION_UNKNOWN"] = 0; - values[valuesById[2] = "VERIFY"] = 2; - values[valuesById[3] = "NONE"] = 3; - return values; - })(); - - /** - * MessageEncoding enum. - * @name google.protobuf.FeatureSet.MessageEncoding - * @enum {number} - * @property {number} MESSAGE_ENCODING_UNKNOWN=0 MESSAGE_ENCODING_UNKNOWN value - * @property {number} LENGTH_PREFIXED=1 LENGTH_PREFIXED value - * @property {number} DELIMITED=2 DELIMITED value - */ - FeatureSet.MessageEncoding = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MESSAGE_ENCODING_UNKNOWN"] = 0; - values[valuesById[1] = "LENGTH_PREFIXED"] = 1; - values[valuesById[2] = "DELIMITED"] = 2; - return values; - })(); - - /** - * JsonFormat enum. - * @name google.protobuf.FeatureSet.JsonFormat - * @enum {number} - * @property {number} JSON_FORMAT_UNKNOWN=0 JSON_FORMAT_UNKNOWN value - * @property {number} ALLOW=1 ALLOW value - * @property {number} LEGACY_BEST_EFFORT=2 LEGACY_BEST_EFFORT value - */ - FeatureSet.JsonFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "JSON_FORMAT_UNKNOWN"] = 0; - values[valuesById[1] = "ALLOW"] = 1; - values[valuesById[2] = "LEGACY_BEST_EFFORT"] = 2; - return values; - })(); - - return FeatureSet; - })(); - - protobuf.FeatureSetDefaults = (function() { - - /** - * Properties of a FeatureSetDefaults. - * @memberof google.protobuf - * @interface IFeatureSetDefaults - * @property {Array.|null} [defaults] FeatureSetDefaults defaults - * @property {google.protobuf.Edition|null} [minimumEdition] FeatureSetDefaults minimumEdition - * @property {google.protobuf.Edition|null} [maximumEdition] FeatureSetDefaults maximumEdition - */ - - /** - * Constructs a new FeatureSetDefaults. - * @memberof google.protobuf - * @classdesc Represents a FeatureSetDefaults. - * @implements IFeatureSetDefaults - * @constructor - * @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set - */ - function FeatureSetDefaults(properties) { - this.defaults = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FeatureSetDefaults defaults. - * @member {Array.} defaults - * @memberof google.protobuf.FeatureSetDefaults - * @instance - */ - FeatureSetDefaults.prototype.defaults = $util.emptyArray; - - /** - * FeatureSetDefaults minimumEdition. - * @member {google.protobuf.Edition} minimumEdition - * @memberof google.protobuf.FeatureSetDefaults - * @instance - */ - FeatureSetDefaults.prototype.minimumEdition = 0; - - /** - * FeatureSetDefaults maximumEdition. - * @member {google.protobuf.Edition} maximumEdition - * @memberof google.protobuf.FeatureSetDefaults - * @instance - */ - FeatureSetDefaults.prototype.maximumEdition = 0; - - /** - * Creates a new FeatureSetDefaults instance using the specified properties. - * @function create - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set - * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults instance - */ - FeatureSetDefaults.create = function create(properties) { - return new FeatureSetDefaults(properties); - }; - - /** - * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSetDefaults.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.defaults != null && message.defaults.length) - for (var i = 0; i < message.defaults.length; ++i) - $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.encode(message.defaults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.minimumEdition != null && Object.hasOwnProperty.call(message, "minimumEdition")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.minimumEdition); - if (message.maximumEdition != null && Object.hasOwnProperty.call(message, "maximumEdition")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maximumEdition); - return writer; - }; - - /** - * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSetDefaults.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FeatureSetDefaults message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSetDefaults.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.defaults && message.defaults.length)) - message.defaults = []; - message.defaults.push($root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.decode(reader, reader.uint32())); - break; - } - case 4: { - message.minimumEdition = reader.int32(); - break; - } - case 5: { - message.maximumEdition = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSetDefaults.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FeatureSetDefaults message. - * @function verify - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeatureSetDefaults.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.defaults != null && message.hasOwnProperty("defaults")) { - if (!Array.isArray(message.defaults)) - return "defaults: array expected"; - for (var i = 0; i < message.defaults.length; ++i) { - var error = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify(message.defaults[i]); - if (error) - return "defaults." + error; - } - } - if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition")) - switch (message.minimumEdition) { - default: - return "minimumEdition: enum value expected"; - case 0: - case 998: - case 999: - case 1000: - case 1001: - case 1: - case 2: - case 99997: - case 99998: - case 99999: - case 2147483647: - break; - } - if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition")) - switch (message.maximumEdition) { - default: - return "maximumEdition: enum value expected"; - case 0: - case 998: - case 999: - case 1000: - case 1001: - case 1: - case 2: - case 99997: - case 99998: - case 99999: - case 2147483647: - break; - } - return null; - }; - - /** - * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults - */ - FeatureSetDefaults.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FeatureSetDefaults) - return object; - var message = new $root.google.protobuf.FeatureSetDefaults(); - if (object.defaults) { - if (!Array.isArray(object.defaults)) - throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: array expected"); - message.defaults = []; - for (var i = 0; i < object.defaults.length; ++i) { - if (typeof object.defaults[i] !== "object") - throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: object expected"); - message.defaults[i] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fromObject(object.defaults[i]); - } - } - switch (object.minimumEdition) { - default: - if (typeof object.minimumEdition === "number") { - message.minimumEdition = object.minimumEdition; - break; - } - break; - case "EDITION_UNKNOWN": - case 0: - message.minimumEdition = 0; - break; - case "EDITION_PROTO2": - case 998: - message.minimumEdition = 998; - break; - case "EDITION_PROTO3": - case 999: - message.minimumEdition = 999; - break; - case "EDITION_2023": - case 1000: - message.minimumEdition = 1000; - break; - case "EDITION_2024": - case 1001: - message.minimumEdition = 1001; - break; - case "EDITION_1_TEST_ONLY": - case 1: - message.minimumEdition = 1; - break; - case "EDITION_2_TEST_ONLY": - case 2: - message.minimumEdition = 2; - break; - case "EDITION_99997_TEST_ONLY": - case 99997: - message.minimumEdition = 99997; - break; - case "EDITION_99998_TEST_ONLY": - case 99998: - message.minimumEdition = 99998; - break; - case "EDITION_99999_TEST_ONLY": - case 99999: - message.minimumEdition = 99999; - break; - case "EDITION_MAX": - case 2147483647: - message.minimumEdition = 2147483647; - break; - } - switch (object.maximumEdition) { - default: - if (typeof object.maximumEdition === "number") { - message.maximumEdition = object.maximumEdition; - break; - } - break; - case "EDITION_UNKNOWN": - case 0: - message.maximumEdition = 0; - break; - case "EDITION_PROTO2": - case 998: - message.maximumEdition = 998; - break; - case "EDITION_PROTO3": - case 999: - message.maximumEdition = 999; - break; - case "EDITION_2023": - case 1000: - message.maximumEdition = 1000; - break; - case "EDITION_2024": - case 1001: - message.maximumEdition = 1001; - break; - case "EDITION_1_TEST_ONLY": - case 1: - message.maximumEdition = 1; - break; - case "EDITION_2_TEST_ONLY": - case 2: - message.maximumEdition = 2; - break; - case "EDITION_99997_TEST_ONLY": - case 99997: - message.maximumEdition = 99997; - break; - case "EDITION_99998_TEST_ONLY": - case 99998: - message.maximumEdition = 99998; - break; - case "EDITION_99999_TEST_ONLY": - case 99999: - message.maximumEdition = 99999; - break; - case "EDITION_MAX": - case 2147483647: - message.maximumEdition = 2147483647; - break; - } - return message; - }; - - /** - * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {google.protobuf.FeatureSetDefaults} message FeatureSetDefaults - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeatureSetDefaults.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.defaults = []; - if (options.defaults) { - object.minimumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0; - object.maximumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0; - } - if (message.defaults && message.defaults.length) { - object.defaults = []; - for (var j = 0; j < message.defaults.length; ++j) - object.defaults[j] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.toObject(message.defaults[j], options); - } - if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition")) - object.minimumEdition = options.enums === String ? $root.google.protobuf.Edition[message.minimumEdition] === undefined ? message.minimumEdition : $root.google.protobuf.Edition[message.minimumEdition] : message.minimumEdition; - if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition")) - object.maximumEdition = options.enums === String ? $root.google.protobuf.Edition[message.maximumEdition] === undefined ? message.maximumEdition : $root.google.protobuf.Edition[message.maximumEdition] : message.maximumEdition; - return object; - }; - - /** - * Converts this FeatureSetDefaults to JSON. - * @function toJSON - * @memberof google.protobuf.FeatureSetDefaults - * @instance - * @returns {Object.} JSON object - */ - FeatureSetDefaults.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FeatureSetDefaults - * @function getTypeUrl - * @memberof google.protobuf.FeatureSetDefaults - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FeatureSetDefaults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults"; - }; - - FeatureSetDefaults.FeatureSetEditionDefault = (function() { - - /** - * Properties of a FeatureSetEditionDefault. - * @memberof google.protobuf.FeatureSetDefaults - * @interface IFeatureSetEditionDefault - * @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition - * @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features - */ - - /** - * Constructs a new FeatureSetEditionDefault. - * @memberof google.protobuf.FeatureSetDefaults - * @classdesc Represents a FeatureSetEditionDefault. - * @implements IFeatureSetEditionDefault - * @constructor - * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set - */ - function FeatureSetEditionDefault(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FeatureSetEditionDefault edition. - * @member {google.protobuf.Edition} edition - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @instance - */ - FeatureSetEditionDefault.prototype.edition = 0; - - /** - * FeatureSetEditionDefault features. - * @member {google.protobuf.IFeatureSet|null|undefined} features - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @instance - */ - FeatureSetEditionDefault.prototype.features = null; - - /** - * Creates a new FeatureSetEditionDefault instance using the specified properties. - * @function create - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set - * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault instance - */ - FeatureSetEditionDefault.create = function create(properties) { - return new FeatureSetEditionDefault(properties); - }; - - /** - * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSetEditionDefault.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.features != null && Object.hasOwnProperty.call(message, "features")) - $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition); - return writer; - }; - - /** - * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSetEditionDefault.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FeatureSetEditionDefault message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSetEditionDefault.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 3: { - message.edition = reader.int32(); - break; - } - case 2: { - message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSetEditionDefault.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FeatureSetEditionDefault message. - * @function verify - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeatureSetEditionDefault.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.edition != null && message.hasOwnProperty("edition")) - switch (message.edition) { - default: - return "edition: enum value expected"; - case 0: - case 998: - case 999: - case 1000: - case 1001: - case 1: - case 2: - case 99997: - case 99998: - case 99999: - case 2147483647: - break; - } - if (message.features != null && message.hasOwnProperty("features")) { - var error = $root.google.protobuf.FeatureSet.verify(message.features); - if (error) - return "features." + error; - } - return null; - }; - - /** - * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault - */ - FeatureSetEditionDefault.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault) - return object; - var message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault(); - switch (object.edition) { - default: - if (typeof object.edition === "number") { - message.edition = object.edition; - break; - } - break; - case "EDITION_UNKNOWN": - case 0: - message.edition = 0; - break; - case "EDITION_PROTO2": - case 998: - message.edition = 998; - break; - case "EDITION_PROTO3": - case 999: - message.edition = 999; - break; - case "EDITION_2023": - case 1000: - message.edition = 1000; - break; - case "EDITION_2024": - case 1001: - message.edition = 1001; - break; - case "EDITION_1_TEST_ONLY": - case 1: - message.edition = 1; - break; - case "EDITION_2_TEST_ONLY": - case 2: - message.edition = 2; - break; - case "EDITION_99997_TEST_ONLY": - case 99997: - message.edition = 99997; - break; - case "EDITION_99998_TEST_ONLY": - case 99998: - message.edition = 99998; - break; - case "EDITION_99999_TEST_ONLY": - case 99999: - message.edition = 99999; - break; - case "EDITION_MAX": - case 2147483647: - message.edition = 2147483647; - break; - } - if (object.features != null) { - if (typeof object.features !== "object") - throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected"); - message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); - } - return message; - }; - - /** - * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} message FeatureSetEditionDefault - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeatureSetEditionDefault.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.features = null; - object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; - } - if (message.features != null && message.hasOwnProperty("features")) - object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); - if (message.edition != null && message.hasOwnProperty("edition")) - object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; - return object; - }; - - /** - * Converts this FeatureSetEditionDefault to JSON. - * @function toJSON - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @instance - * @returns {Object.} JSON object - */ - FeatureSetEditionDefault.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FeatureSetEditionDefault - * @function getTypeUrl - * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FeatureSetEditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"; - }; - - return FeatureSetEditionDefault; - })(); - - return FeatureSetDefaults; - })(); - - protobuf.SourceCodeInfo = (function() { - - /** - * Properties of a SourceCodeInfo. - * @memberof google.protobuf - * @interface ISourceCodeInfo - * @property {Array.|null} [location] SourceCodeInfo location - */ - - /** - * Constructs a new SourceCodeInfo. - * @memberof google.protobuf - * @classdesc Represents a SourceCodeInfo. - * @implements ISourceCodeInfo - * @constructor - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set - */ - function SourceCodeInfo(properties) { - this.location = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SourceCodeInfo location. - * @member {Array.} location - * @memberof google.protobuf.SourceCodeInfo - * @instance - */ - SourceCodeInfo.prototype.location = $util.emptyArray; - - /** - * Creates a new SourceCodeInfo instance using the specified properties. - * @function create - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance - */ - SourceCodeInfo.create = function create(properties) { - return new SourceCodeInfo(properties); - }; - - /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @function encode - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SourceCodeInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.location != null && message.location.length) - for (var i = 0; i < message.location.length; ++i) - $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SourceCodeInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.location && message.location.length)) - message.location = []; - message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SourceCodeInfo message. - * @function verify - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SourceCodeInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.location != null && message.hasOwnProperty("location")) { - if (!Array.isArray(message.location)) - return "location: array expected"; - for (var i = 0; i < message.location.length; ++i) { - var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); - if (error) - return "location." + error; - } - } - return null; - }; - - /** - * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo - */ - SourceCodeInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.SourceCodeInfo) - return object; - var message = new $root.google.protobuf.SourceCodeInfo(); - if (object.location) { - if (!Array.isArray(object.location)) - throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); - message.location = []; - for (var i = 0; i < object.location.length; ++i) { - if (typeof object.location[i] !== "object") - throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); - message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SourceCodeInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.location = []; - if (message.location && message.location.length) { - object.location = []; - for (var j = 0; j < message.location.length; ++j) - object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); - } - return object; - }; - - /** - * Converts this SourceCodeInfo to JSON. - * @function toJSON - * @memberof google.protobuf.SourceCodeInfo - * @instance - * @returns {Object.} JSON object - */ - SourceCodeInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for SourceCodeInfo - * @function getTypeUrl - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SourceCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.SourceCodeInfo"; - }; - - SourceCodeInfo.Location = (function() { - - /** - * Properties of a Location. - * @memberof google.protobuf.SourceCodeInfo - * @interface ILocation - * @property {Array.|null} [path] Location path - * @property {Array.|null} [span] Location span - * @property {string|null} [leadingComments] Location leadingComments - * @property {string|null} [trailingComments] Location trailingComments - * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments - */ - - /** - * Constructs a new Location. - * @memberof google.protobuf.SourceCodeInfo - * @classdesc Represents a Location. - * @implements ILocation - * @constructor - * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set - */ - function Location(properties) { - this.path = []; - this.span = []; - this.leadingDetachedComments = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Location path. - * @member {Array.} path - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.path = $util.emptyArray; - - /** - * Location span. - * @member {Array.} span - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.span = $util.emptyArray; - - /** - * Location leadingComments. - * @member {string} leadingComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leadingComments = ""; - - /** - * Location trailingComments. - * @member {string} trailingComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.trailingComments = ""; - - /** - * Location leadingDetachedComments. - * @member {Array.} leadingDetachedComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leadingDetachedComments = $util.emptyArray; - - /** - * Creates a new Location instance using the specified properties. - * @function create - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set - * @returns {google.protobuf.SourceCodeInfo.Location} Location instance - */ - Location.create = function create(properties) { - return new Location(properties); - }; - - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.span != null && message.span.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.span.length; ++i) - writer.int32(message.span[i]); - writer.ldelim(); - } - if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); - if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); - if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) - for (var i = 0; i < message.leadingDetachedComments.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); - return writer; - }; - - /** - * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Location message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - } - case 2: { - if (!(message.span && message.span.length)) - message.span = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.span.push(reader.int32()); - } else - message.span.push(reader.int32()); - break; - } - case 3: { - message.leadingComments = reader.string(); - break; - } - case 4: { - message.trailingComments = reader.string(); - break; - } - case 6: { - if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) - message.leadingDetachedComments = []; - message.leadingDetachedComments.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Location message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Location message. - * @function verify - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Location.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.span != null && message.hasOwnProperty("span")) { - if (!Array.isArray(message.span)) - return "span: array expected"; - for (var i = 0; i < message.span.length; ++i) - if (!$util.isInteger(message.span[i])) - return "span: integer[] expected"; - } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) - if (!$util.isString(message.leadingComments)) - return "leadingComments: string expected"; - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) - if (!$util.isString(message.trailingComments)) - return "trailingComments: string expected"; - if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { - if (!Array.isArray(message.leadingDetachedComments)) - return "leadingDetachedComments: array expected"; - for (var i = 0; i < message.leadingDetachedComments.length; ++i) - if (!$util.isString(message.leadingDetachedComments[i])) - return "leadingDetachedComments: string[] expected"; - } - return null; - }; - - /** - * Creates a Location message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.SourceCodeInfo.Location} Location - */ - Location.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) - return object; - var message = new $root.google.protobuf.SourceCodeInfo.Location(); - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); - message.path = []; - for (var i = 0; i < object.path.length; ++i) - message.path[i] = object.path[i] | 0; - } - if (object.span) { - if (!Array.isArray(object.span)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); - message.span = []; - for (var i = 0; i < object.span.length; ++i) - message.span[i] = object.span[i] | 0; - } - if (object.leadingComments != null) - message.leadingComments = String(object.leadingComments); - if (object.trailingComments != null) - message.trailingComments = String(object.trailingComments); - if (object.leadingDetachedComments) { - if (!Array.isArray(object.leadingDetachedComments)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); - message.leadingDetachedComments = []; - for (var i = 0; i < object.leadingDetachedComments.length; ++i) - message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); - } - return message; - }; - - /** - * Creates a plain object from a Location message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.Location} message Location - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Location.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.path = []; - object.span = []; - object.leadingDetachedComments = []; - } - if (options.defaults) { - object.leadingComments = ""; - object.trailingComments = ""; - } - if (message.path && message.path.length) { - object.path = []; - for (var j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; - } - if (message.span && message.span.length) { - object.span = []; - for (var j = 0; j < message.span.length; ++j) - object.span[j] = message.span[j]; - } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) - object.leadingComments = message.leadingComments; - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) - object.trailingComments = message.trailingComments; - if (message.leadingDetachedComments && message.leadingDetachedComments.length) { - object.leadingDetachedComments = []; - for (var j = 0; j < message.leadingDetachedComments.length; ++j) - object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; - } - return object; - }; - - /** - * Converts this Location to JSON. - * @function toJSON - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - * @returns {Object.} JSON object - */ - Location.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Location - * @function getTypeUrl - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.SourceCodeInfo.Location"; - }; - - return Location; - })(); - - return SourceCodeInfo; - })(); - - protobuf.GeneratedCodeInfo = (function() { - - /** - * Properties of a GeneratedCodeInfo. - * @memberof google.protobuf - * @interface IGeneratedCodeInfo - * @property {Array.|null} [annotation] GeneratedCodeInfo annotation - */ - - /** - * Constructs a new GeneratedCodeInfo. - * @memberof google.protobuf - * @classdesc Represents a GeneratedCodeInfo. - * @implements IGeneratedCodeInfo - * @constructor - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set - */ - function GeneratedCodeInfo(properties) { - this.annotation = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GeneratedCodeInfo annotation. - * @member {Array.} annotation - * @memberof google.protobuf.GeneratedCodeInfo - * @instance - */ - GeneratedCodeInfo.prototype.annotation = $util.emptyArray; - - /** - * Creates a new GeneratedCodeInfo instance using the specified properties. - * @function create - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance - */ - GeneratedCodeInfo.create = function create(properties) { - return new GeneratedCodeInfo(properties); - }; - - /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @function encode - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GeneratedCodeInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.annotation != null && message.annotation.length) - for (var i = 0; i < message.annotation.length; ++i) - $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GeneratedCodeInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.annotation && message.annotation.length)) - message.annotation = []; - message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GeneratedCodeInfo message. - * @function verify - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GeneratedCodeInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.annotation != null && message.hasOwnProperty("annotation")) { - if (!Array.isArray(message.annotation)) - return "annotation: array expected"; - for (var i = 0; i < message.annotation.length; ++i) { - var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); - if (error) - return "annotation." + error; - } - } - return null; - }; - - /** - * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo - */ - GeneratedCodeInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.GeneratedCodeInfo) - return object; - var message = new $root.google.protobuf.GeneratedCodeInfo(); - if (object.annotation) { - if (!Array.isArray(object.annotation)) - throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); - message.annotation = []; - for (var i = 0; i < object.annotation.length; ++i) { - if (typeof object.annotation[i] !== "object") - throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); - message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GeneratedCodeInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.annotation = []; - if (message.annotation && message.annotation.length) { - object.annotation = []; - for (var j = 0; j < message.annotation.length; ++j) - object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); - } - return object; - }; - - /** - * Converts this GeneratedCodeInfo to JSON. - * @function toJSON - * @memberof google.protobuf.GeneratedCodeInfo - * @instance - * @returns {Object.} JSON object - */ - GeneratedCodeInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GeneratedCodeInfo - * @function getTypeUrl - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GeneratedCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo"; - }; - - GeneratedCodeInfo.Annotation = (function() { - - /** - * Properties of an Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @interface IAnnotation - * @property {Array.|null} [path] Annotation path - * @property {string|null} [sourceFile] Annotation sourceFile - * @property {number|null} [begin] Annotation begin - * @property {number|null} [end] Annotation end - * @property {google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null} [semantic] Annotation semantic - */ - - /** - * Constructs a new Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @classdesc Represents an Annotation. - * @implements IAnnotation - * @constructor - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set - */ - function Annotation(properties) { - this.path = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Annotation path. - * @member {Array.} path - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.path = $util.emptyArray; - - /** - * Annotation sourceFile. - * @member {string} sourceFile - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.sourceFile = ""; - - /** - * Annotation begin. - * @member {number} begin - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.begin = 0; - - /** - * Annotation end. - * @member {number} end - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.end = 0; - - /** - * Annotation semantic. - * @member {google.protobuf.GeneratedCodeInfo.Annotation.Semantic} semantic - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.semantic = 0; - - /** - * Creates a new Annotation instance using the specified properties. - * @function create - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance - */ - Annotation.create = function create(properties) { - return new Annotation(properties); - }; - - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); - if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); - if (message.semantic != null && Object.hasOwnProperty.call(message, "semantic")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.semantic); - return writer; - }; - - /** - * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an Annotation message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - } - case 2: { - message.sourceFile = reader.string(); - break; - } - case 3: { - message.begin = reader.int32(); - break; - } - case 4: { - message.end = reader.int32(); - break; - } - case 5: { - message.semantic = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an Annotation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Annotation message. - * @function verify - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Annotation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) - if (!$util.isString(message.sourceFile)) - return "sourceFile: string expected"; - if (message.begin != null && message.hasOwnProperty("begin")) - if (!$util.isInteger(message.begin)) - return "begin: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - if (message.semantic != null && message.hasOwnProperty("semantic")) - switch (message.semantic) { - default: - return "semantic: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - /** - * Creates an Annotation message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - */ - Annotation.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) - return object; - var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); - message.path = []; - for (var i = 0; i < object.path.length; ++i) - message.path[i] = object.path[i] | 0; - } - if (object.sourceFile != null) - message.sourceFile = String(object.sourceFile); - if (object.begin != null) - message.begin = object.begin | 0; - if (object.end != null) - message.end = object.end | 0; - switch (object.semantic) { - default: - if (typeof object.semantic === "number") { - message.semantic = object.semantic; - break; - } - break; - case "NONE": - case 0: - message.semantic = 0; - break; - case "SET": - case 1: - message.semantic = 1; - break; - case "ALIAS": - case 2: - message.semantic = 2; - break; - } - return message; - }; - - /** - * Creates a plain object from an Annotation message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Annotation.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.path = []; - if (options.defaults) { - object.sourceFile = ""; - object.begin = 0; - object.end = 0; - object.semantic = options.enums === String ? "NONE" : 0; - } - if (message.path && message.path.length) { - object.path = []; - for (var j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; - } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) - object.sourceFile = message.sourceFile; - if (message.begin != null && message.hasOwnProperty("begin")) - object.begin = message.begin; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - if (message.semantic != null && message.hasOwnProperty("semantic")) - object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] === undefined ? message.semantic : $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; - return object; - }; - - /** - * Converts this Annotation to JSON. - * @function toJSON - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - * @returns {Object.} JSON object - */ - Annotation.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Annotation - * @function getTypeUrl - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Annotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo.Annotation"; - }; - - /** - * Semantic enum. - * @name google.protobuf.GeneratedCodeInfo.Annotation.Semantic - * @enum {number} - * @property {number} NONE=0 NONE value - * @property {number} SET=1 SET value - * @property {number} ALIAS=2 ALIAS value - */ - Annotation.Semantic = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NONE"] = 0; - values[valuesById[1] = "SET"] = 1; - values[valuesById[2] = "ALIAS"] = 2; - return values; - })(); - - return Annotation; - })(); - - return GeneratedCodeInfo; - })(); - - protobuf.Duration = (function() { - - /** - * Properties of a Duration. - * @memberof google.protobuf - * @interface IDuration - * @property {number|Long|null} [seconds] Duration seconds - * @property {number|null} [nanos] Duration nanos - */ - - /** - * Constructs a new Duration. - * @memberof google.protobuf - * @classdesc Represents a Duration. - * @implements IDuration - * @constructor - * @param {google.protobuf.IDuration=} [properties] Properties to set - */ - function Duration(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Duration seconds. - * @member {number|Long} seconds - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Duration nanos. - * @member {number} nanos - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.nanos = 0; - - /** - * Creates a new Duration instance using the specified properties. - * @function create - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration=} [properties] Properties to set - * @returns {google.protobuf.Duration} Duration instance - */ - Duration.create = function create(properties) { - return new Duration(properties); - }; - - /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Duration.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); - return writer; - }; - - /** - * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Duration.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Duration message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Duration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Duration} Duration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Duration.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.seconds = reader.int64(); - break; - } - case 2: { - message.nanos = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Duration message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.Duration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Duration} Duration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Duration.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Duration message. - * @function verify - * @memberof google.protobuf.Duration - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Duration.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; - return null; - }; - - /** - * Creates a Duration message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.Duration - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.Duration} Duration - */ - Duration.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Duration) - return object; - var message = new $root.google.protobuf.Duration(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; - return message; - }; - - /** - * Creates a plain object from a Duration message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.Duration} message Duration - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Duration.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; - } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; - return object; - }; - - /** - * Converts this Duration to JSON. - * @function toJSON - * @memberof google.protobuf.Duration - * @instance - * @returns {Object.} JSON object - */ - Duration.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Duration - * @function getTypeUrl - * @memberof google.protobuf.Duration - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.Duration"; - }; - - return Duration; - })(); - - protobuf.Timestamp = (function() { - - /** - * Properties of a Timestamp. - * @memberof google.protobuf - * @interface ITimestamp - * @property {number|Long|null} [seconds] Timestamp seconds - * @property {number|null} [nanos] Timestamp nanos - */ - - /** - * Constructs a new Timestamp. - * @memberof google.protobuf - * @classdesc Represents a Timestamp. - * @implements ITimestamp - * @constructor - * @param {google.protobuf.ITimestamp=} [properties] Properties to set - */ - function Timestamp(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Timestamp seconds. - * @member {number|Long} seconds - * @memberof google.protobuf.Timestamp - * @instance - */ - Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Timestamp nanos. - * @member {number} nanos - * @memberof google.protobuf.Timestamp - * @instance - */ - Timestamp.prototype.nanos = 0; - - /** - * Creates a new Timestamp instance using the specified properties. - * @function create - * @memberof google.protobuf.Timestamp - * @static - * @param {google.protobuf.ITimestamp=} [properties] Properties to set - * @returns {google.protobuf.Timestamp} Timestamp instance - */ - Timestamp.create = function create(properties) { - return new Timestamp(properties); - }; - - /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Timestamp - * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Timestamp.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); - return writer; - }; - - /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.Timestamp - * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Timestamp.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Timestamp message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Timestamp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Timestamp} Timestamp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Timestamp.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.seconds = reader.int64(); - break; - } - case 2: { - message.nanos = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.Timestamp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Timestamp} Timestamp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Timestamp.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Timestamp message. - * @function verify - * @memberof google.protobuf.Timestamp - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Timestamp.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; - return null; - }; - - /** - * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.Timestamp - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.Timestamp} Timestamp - */ - Timestamp.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Timestamp) - return object; - var message = new $root.google.protobuf.Timestamp(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; - return message; - }; - - /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.Timestamp - * @static - * @param {google.protobuf.Timestamp} message Timestamp - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Timestamp.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; - } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; - return object; - }; - - /** - * Converts this Timestamp to JSON. - * @function toJSON - * @memberof google.protobuf.Timestamp - * @instance - * @returns {Object.} JSON object - */ - Timestamp.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Timestamp - * @function getTypeUrl - * @memberof google.protobuf.Timestamp - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.Timestamp"; - }; - - return Timestamp; - })(); - - return protobuf; - })(); - - return google; - })(); - - return $root; -}); - - -/***/ }), - -/***/ 58815: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"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 -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// ** This file is automatically generated by synthtool. ** -// ** https://github.com/googleapis/synthtool ** -// ** All changes to this file may be overwritten. ** -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.protos = exports.IAMCredentialsClient = exports.v1 = void 0; -const v1 = __nccwpck_require__(22060); -exports.v1 = v1; -const IAMCredentialsClient = v1.IAMCredentialsClient; -exports.IAMCredentialsClient = IAMCredentialsClient; -exports["default"] = { v1, IAMCredentialsClient }; -const protos = __nccwpck_require__(62886); -exports.protos = protos; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 8038: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"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 -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// ** This file is automatically generated by gapic-generator-typescript. ** -// ** https://github.com/googleapis/gapic-generator-typescript ** -// ** All changes to this file may be overwritten. ** -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.IAMCredentialsClient = void 0; -const jsonProtos = __nccwpck_require__(41530); -/** - * Client JSON configuration object, loaded from - * `src/v1/i_a_m_credentials_client_config.json`. - * This file defines retry strategy and timeouts for all API methods in this library. - */ -const gapicConfig = __nccwpck_require__(10289); -const version = (__nccwpck_require__(73486)/* .version */ .rE); -/** - * A service account is a special type of Google account that belongs to your - * application or a virtual machine (VM), instead of to an individual end user. - * Your application assumes the identity of the service account to call Google - * APIs, so that the users aren't directly involved. - * - * Service account credentials are used to temporarily assume the identity - * of the service account. Supported credential types include OAuth 2.0 access - * tokens, OpenID Connect ID tokens, self-signed JSON Web Tokens (JWTs), and - * more. - * @class - * @memberof v1 - */ -class IAMCredentialsClient { - /** - * Construct an instance of IAMCredentialsClient. - * - * @param {object} [options] - The configuration object. - * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). - * The common options are: - * @param {object} [options.credentials] - Credentials object. - * @param {string} [options.credentials.client_email] - * @param {string} [options.credentials.private_key] - * @param {string} [options.email] - Account email address. Required when - * using a .pem or .p12 keyFilename. - * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or - * .p12 key downloaded from the Google Developers Console. If you provide - * a path to a JSON file, the projectId option below is not necessary. - * NOTE: .pem and .p12 require you to specify options.email as well. - * @param {number} [options.port] - The port on which to connect to - * the remote host. - * @param {string} [options.projectId] - The project ID from the Google - * Developer's Console, e.g. 'grape-spaceship-123'. We will also check - * the environment variable GCLOUD_PROJECT for your project ID. If your - * app is running in an environment which supports - * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, - * your project ID will be detected automatically. - * @param {string} [options.apiEndpoint] - The domain name of the - * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. - * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. - * For more information, please check the - * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. - * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you - * need to avoid loading the default gRPC version and want to use the fallback - * HTTP implementation. Load only fallback version and pass it to the constructor: - * ``` - * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC - * const client = new IAMCredentialsClient({fallback: true}, gax); - * ``` - */ - constructor(opts, gaxInstance) { - var _a, _b, _c, _d, _e; - this._terminated = false; - this.descriptors = { - page: {}, - stream: {}, - longrunning: {}, - batching: {}, - }; - // Ensure that options include all the required fields. - const staticMembers = this.constructor; - if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) && - (opts === null || opts === void 0 ? void 0 : opts.universeDomain) && - (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) { - 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; - this._universeDomain = - (_c = (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com'; - this._servicePath = 'iamcredentials.' + this._universeDomain; - const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath; - this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint)); - const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port; - const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {}; - const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function'); - opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts); - // Request numeric enum values if REST transport is used. - opts.numericEnums = true; - // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== this._servicePath && !('scopes' in opts)) { - opts['scopes'] = staticMembers.scopes; - } - // Load google-gax module synchronously if needed - if (!gaxInstance) { - gaxInstance = __nccwpck_require__(83232); - } - // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; - // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. - this._gaxGrpc = new this._gaxModule.GrpcClient(opts); - // Save options to use in initialize() method. - this._opts = opts; - // Save the auth object to the client, for use by other methods. - this.auth = this._gaxGrpc.auth; - // Set useJWTAccessWithScope on the auth object. - this.auth.useJWTAccessWithScope = true; - // Set defaultServicePath on the auth object. - this.auth.defaultServicePath = this._servicePath; - // Set the default scopes in auth client if needed. - if (servicePath === this._servicePath) { - this.auth.defaultScopes = staticMembers.scopes; - } - // Determine the client header string. - const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; - if (typeof process === 'object' && 'versions' in process) { - clientHeader.push(`gl-node/${process.versions.node}`); - } - else { - clientHeader.push(`gl-web/${this._gaxModule.version}`); - } - if (!opts.fallback) { - clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); - } - else { - clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); - } - if (opts.libName && opts.libVersion) { - clientHeader.push(`${opts.libName}/${opts.libVersion}`); - } - // Load the applicable protos. - this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); - // Put together the default options sent with requests. - this._defaults = this._gaxGrpc.constructSettings('google.iam.credentials.v1.IAMCredentials', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') }); - // Set up a dictionary of "inner API calls"; the core implementation - // of calling the API is handled in `google-gax`, with this code - // merely providing the destination and request information. - this.innerApiCalls = {}; - // Add a warn function to the client constructor so it can be easily tested. - this.warn = this._gaxModule.warn; - } - /** - * Initialize the client. - * Performs asynchronous operations (such as authentication) and prepares the client. - * This function will be called automatically when any class method is called for the - * first time, but if you need to initialize it before calling an actual method, - * feel free to call initialize() directly. - * - * You can await on this method if you want to make sure the client is initialized. - * - * @returns {Promise} A promise that resolves to an authenticated service stub. - */ - initialize() { - // If the client stub promise is already initialized, return immediately. - if (this.iAMCredentialsStub) { - return this.iAMCredentialsStub; - } - // Put together the "service stub" for - // google.iam.credentials.v1.IAMCredentials. - this.iAMCredentialsStub = this._gaxGrpc.createStub(this._opts.fallback - ? this._protos.lookupService('google.iam.credentials.v1.IAMCredentials') - : // eslint-disable-next-line @typescript-eslint/no-explicit-any - this._protos.google.iam.credentials.v1.IAMCredentials, this._opts, this._providedCustomServicePath); - // Iterate over each of the methods that the service provides - // and create an API call method for each. - const iAMCredentialsStubMethods = [ - 'generateAccessToken', - 'generateIdToken', - 'signBlob', - 'signJwt', - ]; - for (const methodName of iAMCredentialsStubMethods) { - const callPromise = this.iAMCredentialsStub.then(stub => (...args) => { - if (this._terminated) { - return Promise.reject('The client has already been closed.'); - } - const func = stub[methodName]; - return func.apply(stub, args); - }, (err) => () => { - throw err; - }); - const descriptor = undefined; - const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback); - this.innerApiCalls[methodName] = apiCall; - } - return this.iAMCredentialsStub; - } - /** - * The DNS address for this API service. - * @deprecated Use the apiEndpoint method of the client instance. - * @returns {string} The DNS address for this service. - */ - static get servicePath() { - if (typeof process === 'object' && - typeof process.emitWarning === 'function') { - process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); - } - return 'iamcredentials.googleapis.com'; - } - /** - * The DNS address for this API service - same as servicePath. - * @deprecated Use the apiEndpoint method of the client instance. - * @returns {string} The DNS address for this service. - */ - static get apiEndpoint() { - if (typeof process === 'object' && - typeof process.emitWarning === 'function') { - process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); - } - return 'iamcredentials.googleapis.com'; - } - /** - * The DNS address for this API service. - * @returns {string} The DNS address for this service. - */ - get apiEndpoint() { - return this._servicePath; - } - get universeDomain() { - return this._universeDomain; - } - /** - * The port for this API service. - * @returns {number} The default port for this service. - */ - static get port() { - return 443; - } - /** - * The scopes needed to make gRPC calls for every method defined - * in this service. - * @returns {string[]} List of default scopes. - */ - static get scopes() { - return ['https://www.googleapis.com/auth/cloud-platform']; - } - /** - * Return the project ID used by this class. - * @returns {Promise} A promise that resolves to string containing the project ID. - */ - getProjectId(callback) { - if (callback) { - this.auth.getProjectId(callback); - return; - } - return this.auth.getProjectId(); - } - generateAccessToken(request, optionsOrCallback, callback) { - var _a; - request = request || {}; - let options; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } - else { - options = optionsOrCallback; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - this._gaxModule.routingHeader.fromParams({ - name: (_a = request.name) !== null && _a !== void 0 ? _a : '', - }); - this.initialize(); - return this.innerApiCalls.generateAccessToken(request, options, callback); - } - generateIdToken(request, optionsOrCallback, callback) { - var _a; - request = request || {}; - let options; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } - else { - options = optionsOrCallback; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - this._gaxModule.routingHeader.fromParams({ - name: (_a = request.name) !== null && _a !== void 0 ? _a : '', - }); - this.initialize(); - return this.innerApiCalls.generateIdToken(request, options, callback); - } - signBlob(request, optionsOrCallback, callback) { - var _a; - request = request || {}; - let options; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } - else { - options = optionsOrCallback; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - this._gaxModule.routingHeader.fromParams({ - name: (_a = request.name) !== null && _a !== void 0 ? _a : '', - }); - this.initialize(); - return this.innerApiCalls.signBlob(request, options, callback); - } - signJwt(request, optionsOrCallback, callback) { - var _a; - request = request || {}; - let options; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } - else { - options = optionsOrCallback; - } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - this._gaxModule.routingHeader.fromParams({ - name: (_a = request.name) !== null && _a !== void 0 ? _a : '', - }); - this.initialize(); - return this.innerApiCalls.signJwt(request, options, callback); - } - /** - * Terminate the gRPC channel and close the client. - * - * The client will no longer be usable and all future behavior is undefined. - * @returns {Promise} A promise that resolves when the client is closed. - */ - close() { - if (this.iAMCredentialsStub && !this._terminated) { - return this.iAMCredentialsStub.then(stub => { - this._terminated = true; - stub.close(); - }); - } - return Promise.resolve(); - } -} -exports.IAMCredentialsClient = IAMCredentialsClient; -//# sourceMappingURL=i_a_m_credentials_client.js.map - -/***/ }), - -/***/ 22060: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"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 -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// ** This file is automatically generated by gapic-generator-typescript. ** -// ** https://github.com/googleapis/gapic-generator-typescript ** -// ** All changes to this file may be overwritten. ** -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.IAMCredentialsClient = void 0; -var i_a_m_credentials_client_1 = __nccwpck_require__(8038); -Object.defineProperty(exports, "IAMCredentialsClient", ({ enumerable: true, get: function () { return i_a_m_credentials_client_1.IAMCredentialsClient; } })); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 52914: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2021 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.registerAdminService = registerAdminService; -exports.addAdminServicesToServer = addAdminServicesToServer; -const registeredAdminServices = []; -function registerAdminService(getServiceDefinition, getHandlers) { - registeredAdminServices.push({ getServiceDefinition, getHandlers }); -} -function addAdminServicesToServer(server) { - for (const { getServiceDefinition, getHandlers } of registeredAdminServices) { - server.addService(getServiceDefinition(), getHandlers()); - } -} -//# sourceMappingURL=admin.js.map - -/***/ }), - -/***/ 14643: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BackoffTimeout = void 0; -const constants_1 = __nccwpck_require__(68288); -const logging = __nccwpck_require__(8536); -const TRACER_NAME = 'backoff'; -const INITIAL_BACKOFF_MS = 1000; -const BACKOFF_MULTIPLIER = 1.6; -const MAX_BACKOFF_MS = 120000; -const BACKOFF_JITTER = 0.2; -/** - * Get a number uniformly at random in the range [min, max) - * @param min - * @param max - */ -function uniformRandom(min, max) { - return Math.random() * (max - min) + min; -} -class BackoffTimeout { - constructor(callback, options) { - this.callback = callback; - /** - * The delay time at the start, and after each reset. - */ - this.initialDelay = INITIAL_BACKOFF_MS; - /** - * The exponential backoff multiplier. - */ - this.multiplier = BACKOFF_MULTIPLIER; - /** - * The maximum delay time - */ - this.maxDelay = MAX_BACKOFF_MS; - /** - * The maximum fraction by which the delay time can randomly vary after - * applying the multiplier. - */ - this.jitter = BACKOFF_JITTER; - /** - * Indicates whether the timer is currently running. - */ - this.running = false; - /** - * Indicates whether the timer should keep the Node process running if no - * other async operation is doing so. - */ - this.hasRef = true; - /** - * The time that the currently running timer was started. Only valid if - * running is true. - */ - this.startTime = new Date(); - /** - * The approximate time that the currently running timer will end. Only valid - * if running is true. - */ - this.endTime = new Date(); - this.id = BackoffTimeout.getNextId(); - if (options) { - if (options.initialDelay) { - this.initialDelay = options.initialDelay; - } - if (options.multiplier) { - this.multiplier = options.multiplier; - } - if (options.jitter) { - this.jitter = options.jitter; - } - if (options.maxDelay) { - this.maxDelay = options.maxDelay; - } - } - this.trace('constructed initialDelay=' + this.initialDelay + ' multiplier=' + this.multiplier + ' jitter=' + this.jitter + ' maxDelay=' + this.maxDelay); - this.nextDelay = this.initialDelay; - this.timerId = setTimeout(() => { }, 0); - clearTimeout(this.timerId); - } - static getNextId() { - return this.nextId++; - } - trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '{' + this.id + '} ' + text); - } - runTimer(delay) { - var _a, _b; - this.trace('runTimer(delay=' + delay + ')'); - this.endTime = this.startTime; - this.endTime.setMilliseconds(this.endTime.getMilliseconds() + delay); - clearTimeout(this.timerId); - this.timerId = setTimeout(() => { - this.trace('timer fired'); - this.running = false; - this.callback(); - }, delay); - if (!this.hasRef) { - (_b = (_a = this.timerId).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - } - /** - * Call the callback after the current amount of delay time - */ - runOnce() { - this.trace('runOnce()'); - this.running = true; - this.startTime = new Date(); - this.runTimer(this.nextDelay); - const nextBackoff = Math.min(this.nextDelay * this.multiplier, this.maxDelay); - const jitterMagnitude = nextBackoff * this.jitter; - this.nextDelay = - nextBackoff + uniformRandom(-jitterMagnitude, jitterMagnitude); - } - /** - * Stop the timer. The callback will not be called until `runOnce` is called - * again. - */ - stop() { - this.trace('stop()'); - clearTimeout(this.timerId); - this.running = false; - } - /** - * Reset the delay time to its initial value. If the timer is still running, - * retroactively apply that reset to the current timer. - */ - reset() { - this.trace('reset() running=' + this.running); - this.nextDelay = this.initialDelay; - if (this.running) { - const now = new Date(); - const newEndTime = this.startTime; - newEndTime.setMilliseconds(newEndTime.getMilliseconds() + this.nextDelay); - clearTimeout(this.timerId); - if (now < newEndTime) { - this.runTimer(newEndTime.getTime() - now.getTime()); - } - else { - this.running = false; - } - } - } - /** - * Check whether the timer is currently running. - */ - isRunning() { - return this.running; - } - /** - * Set that while the timer is running, it should keep the Node process - * running. - */ - ref() { - var _a, _b; - this.hasRef = true; - (_b = (_a = this.timerId).ref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - /** - * Set that while the timer is running, it should not keep the Node process - * running. - */ - unref() { - var _a, _b; - this.hasRef = false; - (_b = (_a = this.timerId).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - /** - * Get the approximate timestamp of when the timer will fire. Only valid if - * this.isRunning() is true. - */ - getEndTime() { - return this.endTime; - } -} -exports.BackoffTimeout = BackoffTimeout; -BackoffTimeout.nextId = 0; -//# sourceMappingURL=backoff-timeout.js.map - -/***/ }), - -/***/ 73161: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CallCredentials = void 0; -const metadata_1 = __nccwpck_require__(36100); -function isCurrentOauth2Client(client) { - return ('getRequestHeaders' in client && - typeof client.getRequestHeaders === 'function'); -} -/** - * A class that represents a generic method of adding authentication-related - * metadata on a per-request basis. - */ -class CallCredentials { - /** - * Creates a new CallCredentials object from a given function that generates - * Metadata objects. - * @param metadataGenerator A function that accepts a set of options, and - * generates a Metadata object based on these options, which is passed back - * to the caller via a supplied (err, metadata) callback. - */ - static createFromMetadataGenerator(metadataGenerator) { - return new SingleCallCredentials(metadataGenerator); - } - /** - * Create a gRPC credential from a Google credential object. - * @param googleCredentials The authentication client to use. - * @return The resulting CallCredentials object. - */ - static createFromGoogleCredential(googleCredentials) { - return CallCredentials.createFromMetadataGenerator((options, callback) => { - let getHeaders; - if (isCurrentOauth2Client(googleCredentials)) { - getHeaders = googleCredentials.getRequestHeaders(options.service_url); - } - else { - getHeaders = new Promise((resolve, reject) => { - googleCredentials.getRequestMetadata(options.service_url, (err, headers) => { - if (err) { - reject(err); - return; - } - if (!headers) { - reject(new Error('Headers not set by metadata plugin')); - return; - } - resolve(headers); - }); - }); - } - getHeaders.then(headers => { - const metadata = new metadata_1.Metadata(); - for (const key of Object.keys(headers)) { - metadata.add(key, headers[key]); - } - callback(null, metadata); - }, err => { - callback(err); - }); - }); - } - static createEmpty() { - return new EmptyCallCredentials(); - } -} -exports.CallCredentials = CallCredentials; -class ComposedCallCredentials extends CallCredentials { - constructor(creds) { - super(); - this.creds = creds; - } - async generateMetadata(options) { - const base = new metadata_1.Metadata(); - const generated = await Promise.all(this.creds.map(cred => cred.generateMetadata(options))); - for (const gen of generated) { - base.merge(gen); - } - return base; - } - compose(other) { - return new ComposedCallCredentials(this.creds.concat([other])); - } - _equals(other) { - if (this === other) { - return true; - } - if (other instanceof ComposedCallCredentials) { - return this.creds.every((value, index) => value._equals(other.creds[index])); - } - else { - return false; - } - } -} -class SingleCallCredentials extends CallCredentials { - constructor(metadataGenerator) { - super(); - this.metadataGenerator = metadataGenerator; - } - generateMetadata(options) { - return new Promise((resolve, reject) => { - this.metadataGenerator(options, (err, metadata) => { - if (metadata !== undefined) { - resolve(metadata); - } - else { - reject(err); - } - }); - }); - } - compose(other) { - return new ComposedCallCredentials([this, other]); - } - _equals(other) { - if (this === other) { - return true; - } - if (other instanceof SingleCallCredentials) { - return this.metadataGenerator === other.metadataGenerator; - } - else { - return false; - } - } -} -class EmptyCallCredentials extends CallCredentials { - generateMetadata(options) { - return Promise.resolve(new metadata_1.Metadata()); - } - compose(other) { - return other; - } - _equals(other) { - return other instanceof EmptyCallCredentials; - } -} -//# sourceMappingURL=call-credentials.js.map - -/***/ }), - -/***/ 61803: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.InterceptingListenerImpl = void 0; -exports.statusOrFromValue = statusOrFromValue; -exports.statusOrFromError = statusOrFromError; -exports.isInterceptingListener = isInterceptingListener; -const metadata_1 = __nccwpck_require__(36100); -function statusOrFromValue(value) { - return { - ok: true, - value: value - }; -} -function statusOrFromError(error) { - var _a; - return { - ok: false, - error: Object.assign(Object.assign({}, error), { metadata: (_a = error.metadata) !== null && _a !== void 0 ? _a : new metadata_1.Metadata() }) - }; -} -function isInterceptingListener(listener) { - return (listener.onReceiveMetadata !== undefined && - listener.onReceiveMetadata.length === 1); -} -class InterceptingListenerImpl { - constructor(listener, nextListener) { - this.listener = listener; - this.nextListener = nextListener; - this.processingMetadata = false; - this.hasPendingMessage = false; - this.processingMessage = false; - this.pendingStatus = null; - } - processPendingMessage() { - if (this.hasPendingMessage) { - this.nextListener.onReceiveMessage(this.pendingMessage); - this.pendingMessage = null; - this.hasPendingMessage = false; - } - } - processPendingStatus() { - if (this.pendingStatus) { - this.nextListener.onReceiveStatus(this.pendingStatus); - } - } - onReceiveMetadata(metadata) { - this.processingMetadata = true; - this.listener.onReceiveMetadata(metadata, metadata => { - this.processingMetadata = false; - this.nextListener.onReceiveMetadata(metadata); - this.processPendingMessage(); - this.processPendingStatus(); - }); - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - onReceiveMessage(message) { - /* If this listener processes messages asynchronously, the last message may - * be reordered with respect to the status */ - this.processingMessage = true; - this.listener.onReceiveMessage(message, msg => { - this.processingMessage = false; - if (this.processingMetadata) { - this.pendingMessage = msg; - this.hasPendingMessage = true; - } - else { - this.nextListener.onReceiveMessage(msg); - this.processPendingStatus(); - } - }); - } - onReceiveStatus(status) { - this.listener.onReceiveStatus(status, processedStatus => { - if (this.processingMetadata || this.processingMessage) { - this.pendingStatus = processedStatus; - } - else { - this.nextListener.onReceiveStatus(processedStatus); - } - }); - } -} -exports.InterceptingListenerImpl = InterceptingListenerImpl; -//# sourceMappingURL=call-interface.js.map - -/***/ }), - -/***/ 35675: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getNextCallNumber = getNextCallNumber; -let nextCallNumber = 0; -function getNextCallNumber() { - return nextCallNumber++; -} -//# sourceMappingURL=call-number.js.map - -/***/ }), - -/***/ 91161: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ClientDuplexStreamImpl = exports.ClientWritableStreamImpl = exports.ClientReadableStreamImpl = exports.ClientUnaryCallImpl = void 0; -exports.callErrorFromStatus = callErrorFromStatus; -const events_1 = __nccwpck_require__(24434); -const stream_1 = __nccwpck_require__(2203); -const constants_1 = __nccwpck_require__(68288); -/** - * Construct a ServiceError from a StatusObject. This function exists primarily - * as an attempt to make the error stack trace clearly communicate that the - * error is not necessarily a problem in gRPC itself. - * @param status - */ -function callErrorFromStatus(status, callerStack) { - const message = `${status.code} ${constants_1.Status[status.code]}: ${status.details}`; - const error = new Error(message); - const stack = `${error.stack}\nfor call at\n${callerStack}`; - return Object.assign(new Error(message), status, { stack }); -} -class ClientUnaryCallImpl extends events_1.EventEmitter { - constructor() { - super(); - } - cancel() { - var _a; - (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client'); - } - getPeer() { - var _a, _b; - return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown'; - } - getAuthContext() { - var _a, _b; - return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getAuthContext()) !== null && _b !== void 0 ? _b : null; - } -} -exports.ClientUnaryCallImpl = ClientUnaryCallImpl; -class ClientReadableStreamImpl extends stream_1.Readable { - constructor(deserialize) { - super({ objectMode: true }); - this.deserialize = deserialize; - } - cancel() { - var _a; - (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client'); - } - getPeer() { - var _a, _b; - return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown'; - } - getAuthContext() { - var _a, _b; - return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getAuthContext()) !== null && _b !== void 0 ? _b : null; - } - _read(_size) { - var _a; - (_a = this.call) === null || _a === void 0 ? void 0 : _a.startRead(); - } -} -exports.ClientReadableStreamImpl = ClientReadableStreamImpl; -class ClientWritableStreamImpl extends stream_1.Writable { - constructor(serialize) { - super({ objectMode: true }); - this.serialize = serialize; - } - cancel() { - var _a; - (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client'); - } - getPeer() { - var _a, _b; - return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown'; - } - getAuthContext() { - var _a, _b; - return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getAuthContext()) !== null && _b !== void 0 ? _b : null; - } - _write(chunk, encoding, cb) { - var _a; - const context = { - callback: cb, - }; - const flags = Number(encoding); - if (!Number.isNaN(flags)) { - context.flags = flags; - } - (_a = this.call) === null || _a === void 0 ? void 0 : _a.sendMessageWithContext(context, chunk); - } - _final(cb) { - var _a; - (_a = this.call) === null || _a === void 0 ? void 0 : _a.halfClose(); - cb(); - } -} -exports.ClientWritableStreamImpl = ClientWritableStreamImpl; -class ClientDuplexStreamImpl extends stream_1.Duplex { - constructor(serialize, deserialize) { - super({ objectMode: true }); - this.serialize = serialize; - this.deserialize = deserialize; - } - cancel() { - var _a; - (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client'); - } - getPeer() { - var _a, _b; - return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown'; - } - getAuthContext() { - var _a, _b; - return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getAuthContext()) !== null && _b !== void 0 ? _b : null; - } - _read(_size) { - var _a; - (_a = this.call) === null || _a === void 0 ? void 0 : _a.startRead(); - } - _write(chunk, encoding, cb) { - var _a; - const context = { - callback: cb, - }; - const flags = Number(encoding); - if (!Number.isNaN(flags)) { - context.flags = flags; - } - (_a = this.call) === null || _a === void 0 ? void 0 : _a.sendMessageWithContext(context, chunk); - } - _final(cb) { - var _a; - (_a = this.call) === null || _a === void 0 ? void 0 : _a.halfClose(); - cb(); - } -} -exports.ClientDuplexStreamImpl = ClientDuplexStreamImpl; -//# sourceMappingURL=call.js.map - -/***/ }), - -/***/ 27974: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2024 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.FileWatcherCertificateProvider = void 0; -const fs = __nccwpck_require__(79896); -const logging = __nccwpck_require__(8536); -const constants_1 = __nccwpck_require__(68288); -const util_1 = __nccwpck_require__(39023); -const TRACER_NAME = 'certificate_provider'; -function trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); -} -const readFilePromise = (0, util_1.promisify)(fs.readFile); -class FileWatcherCertificateProvider { - constructor(config) { - this.config = config; - this.refreshTimer = null; - this.fileResultPromise = null; - this.latestCaUpdate = undefined; - this.caListeners = new Set(); - this.latestIdentityUpdate = undefined; - this.identityListeners = new Set(); - this.lastUpdateTime = null; - if ((config.certificateFile === undefined) !== (config.privateKeyFile === undefined)) { - throw new Error('certificateFile and privateKeyFile must be set or unset together'); - } - if (config.certificateFile === undefined && config.caCertificateFile === undefined) { - throw new Error('At least one of certificateFile and caCertificateFile must be set'); - } - trace('File watcher constructed with config ' + JSON.stringify(config)); - } - updateCertificates() { - if (this.fileResultPromise) { - return; - } - this.fileResultPromise = Promise.allSettled([ - this.config.certificateFile ? readFilePromise(this.config.certificateFile) : Promise.reject(), - this.config.privateKeyFile ? readFilePromise(this.config.privateKeyFile) : Promise.reject(), - this.config.caCertificateFile ? readFilePromise(this.config.caCertificateFile) : Promise.reject() - ]); - this.fileResultPromise.then(([certificateResult, privateKeyResult, caCertificateResult]) => { - if (!this.refreshTimer) { - return; - } - trace('File watcher read certificates certificate ' + certificateResult.status + ', privateKey ' + privateKeyResult.status + ', CA certificate ' + caCertificateResult.status); - this.lastUpdateTime = new Date(); - this.fileResultPromise = null; - if (certificateResult.status === 'fulfilled' && privateKeyResult.status === 'fulfilled') { - this.latestIdentityUpdate = { - certificate: certificateResult.value, - privateKey: privateKeyResult.value - }; - } - else { - this.latestIdentityUpdate = null; - } - if (caCertificateResult.status === 'fulfilled') { - this.latestCaUpdate = { - caCertificate: caCertificateResult.value - }; - } - else { - this.latestCaUpdate = null; - } - for (const listener of this.identityListeners) { - listener(this.latestIdentityUpdate); - } - for (const listener of this.caListeners) { - listener(this.latestCaUpdate); - } - }); - trace('File watcher initiated certificate update'); - } - maybeStartWatchingFiles() { - if (!this.refreshTimer) { - /* Perform the first read immediately, but only if there was not already - * a recent read, to avoid reading from the filesystem significantly more - * frequently than configured if the provider quickly switches between - * used and unused. */ - const timeSinceLastUpdate = this.lastUpdateTime ? (new Date()).getTime() - this.lastUpdateTime.getTime() : Infinity; - if (timeSinceLastUpdate > this.config.refreshIntervalMs) { - this.updateCertificates(); - } - if (timeSinceLastUpdate > this.config.refreshIntervalMs * 2) { - // Clear out old updates if they are definitely stale - this.latestCaUpdate = undefined; - this.latestIdentityUpdate = undefined; - } - this.refreshTimer = setInterval(() => this.updateCertificates(), this.config.refreshIntervalMs); - trace('File watcher started watching'); - } - } - maybeStopWatchingFiles() { - if (this.caListeners.size === 0 && this.identityListeners.size === 0) { - this.fileResultPromise = null; - if (this.refreshTimer) { - clearInterval(this.refreshTimer); - this.refreshTimer = null; - } - } - } - addCaCertificateListener(listener) { - this.caListeners.add(listener); - this.maybeStartWatchingFiles(); - if (this.latestCaUpdate !== undefined) { - process.nextTick(listener, this.latestCaUpdate); - } - } - removeCaCertificateListener(listener) { - this.caListeners.delete(listener); - this.maybeStopWatchingFiles(); - } - addIdentityCertificateListener(listener) { - this.identityListeners.add(listener); - this.maybeStartWatchingFiles(); - if (this.latestIdentityUpdate !== undefined) { - process.nextTick(listener, this.latestIdentityUpdate); - } - } - removeIdentityCertificateListener(listener) { - this.identityListeners.delete(listener); - this.maybeStopWatchingFiles(); - } -} -exports.FileWatcherCertificateProvider = FileWatcherCertificateProvider; -//# sourceMappingURL=certificate-provider.js.map - -/***/ }), - -/***/ 32257: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ChannelCredentials = void 0; -exports.createCertificateProviderChannelCredentials = createCertificateProviderChannelCredentials; -const tls_1 = __nccwpck_require__(64756); -const call_credentials_1 = __nccwpck_require__(73161); -const tls_helpers_1 = __nccwpck_require__(68876); -const uri_parser_1 = __nccwpck_require__(56027); -const resolver_1 = __nccwpck_require__(76255); -const logging_1 = __nccwpck_require__(8536); -const constants_1 = __nccwpck_require__(68288); -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function verifyIsBufferOrNull(obj, friendlyName) { - if (obj && !(obj instanceof Buffer)) { - throw new TypeError(`${friendlyName}, if provided, must be a Buffer.`); - } -} -/** - * A class that contains credentials for communicating over a channel, as well - * as a set of per-call credentials, which are applied to every method call made - * over a channel initialized with an instance of this class. - */ -class ChannelCredentials { - /** - * Returns a copy of this object with the included set of per-call credentials - * expanded to include callCredentials. - * @param callCredentials A CallCredentials object to associate with this - * instance. - */ - compose(callCredentials) { - return new ComposedChannelCredentialsImpl(this, callCredentials); - } - /** - * Return a new ChannelCredentials instance with a given set of credentials. - * The resulting instance can be used to construct a Channel that communicates - * over TLS. - * @param rootCerts The root certificate data. - * @param privateKey The client certificate private key, if available. - * @param certChain The client certificate key chain, if available. - * @param verifyOptions Additional options to modify certificate verification - */ - static createSsl(rootCerts, privateKey, certChain, verifyOptions) { - var _a; - verifyIsBufferOrNull(rootCerts, 'Root certificate'); - verifyIsBufferOrNull(privateKey, 'Private key'); - verifyIsBufferOrNull(certChain, 'Certificate chain'); - if (privateKey && !certChain) { - throw new Error('Private key must be given with accompanying certificate chain'); - } - if (!privateKey && certChain) { - throw new Error('Certificate chain must be given with accompanying private key'); - } - const secureContext = (0, tls_1.createSecureContext)({ - ca: (_a = rootCerts !== null && rootCerts !== void 0 ? rootCerts : (0, tls_helpers_1.getDefaultRootsData)()) !== null && _a !== void 0 ? _a : undefined, - key: privateKey !== null && privateKey !== void 0 ? privateKey : undefined, - cert: certChain !== null && certChain !== void 0 ? certChain : undefined, - ciphers: tls_helpers_1.CIPHER_SUITES, - }); - return new SecureChannelCredentialsImpl(secureContext, verifyOptions !== null && verifyOptions !== void 0 ? verifyOptions : {}); - } - /** - * Return a new ChannelCredentials instance with credentials created using - * the provided secureContext. The resulting instances can be used to - * construct a Channel that communicates over TLS. gRPC will not override - * anything in the provided secureContext, so the environment variables - * GRPC_SSL_CIPHER_SUITES and GRPC_DEFAULT_SSL_ROOTS_FILE_PATH will - * not be applied. - * @param secureContext The return value of tls.createSecureContext() - * @param verifyOptions Additional options to modify certificate verification - */ - static createFromSecureContext(secureContext, verifyOptions) { - return new SecureChannelCredentialsImpl(secureContext, verifyOptions !== null && verifyOptions !== void 0 ? verifyOptions : {}); - } - /** - * Return a new ChannelCredentials instance with no credentials. - */ - static createInsecure() { - return new InsecureChannelCredentialsImpl(); - } -} -exports.ChannelCredentials = ChannelCredentials; -class InsecureChannelCredentialsImpl extends ChannelCredentials { - constructor() { - super(); - } - compose(callCredentials) { - throw new Error('Cannot compose insecure credentials'); - } - _isSecure() { - return false; - } - _equals(other) { - return other instanceof InsecureChannelCredentialsImpl; - } - _createSecureConnector(channelTarget, options, callCredentials) { - return { - connect(socket) { - return Promise.resolve({ - socket, - secure: false - }); - }, - waitForReady: () => { - return Promise.resolve(); - }, - getCallCredentials: () => { - return callCredentials !== null && callCredentials !== void 0 ? callCredentials : call_credentials_1.CallCredentials.createEmpty(); - }, - destroy() { } - }; - } -} -function getConnectionOptions(secureContext, verifyOptions, channelTarget, options) { - var _a, _b; - const connectionOptions = { - secureContext: secureContext - }; - let realTarget = channelTarget; - if ('grpc.http_connect_target' in options) { - const parsedTarget = (0, uri_parser_1.parseUri)(options['grpc.http_connect_target']); - if (parsedTarget) { - realTarget = parsedTarget; - } - } - const targetPath = (0, resolver_1.getDefaultAuthority)(realTarget); - const hostPort = (0, uri_parser_1.splitHostPort)(targetPath); - const remoteHost = (_a = hostPort === null || hostPort === void 0 ? void 0 : hostPort.host) !== null && _a !== void 0 ? _a : targetPath; - connectionOptions.host = remoteHost; - if (verifyOptions.checkServerIdentity) { - connectionOptions.checkServerIdentity = verifyOptions.checkServerIdentity; - } - if (verifyOptions.rejectUnauthorized !== undefined) { - connectionOptions.rejectUnauthorized = verifyOptions.rejectUnauthorized; - } - connectionOptions.ALPNProtocols = ['h2']; - if (options['grpc.ssl_target_name_override']) { - const sslTargetNameOverride = options['grpc.ssl_target_name_override']; - const originalCheckServerIdentity = (_b = connectionOptions.checkServerIdentity) !== null && _b !== void 0 ? _b : tls_1.checkServerIdentity; - connectionOptions.checkServerIdentity = (host, cert) => { - return originalCheckServerIdentity(sslTargetNameOverride, cert); - }; - connectionOptions.servername = sslTargetNameOverride; - } - else { - connectionOptions.servername = remoteHost; - } - if (options['grpc-node.tls_enable_trace']) { - connectionOptions.enableTrace = true; - } - return connectionOptions; -} -class SecureConnectorImpl { - constructor(connectionOptions, callCredentials) { - this.connectionOptions = connectionOptions; - this.callCredentials = callCredentials; - } - connect(socket) { - const tlsConnectOptions = Object.assign({ socket: socket }, this.connectionOptions); - return new Promise((resolve, reject) => { - const tlsSocket = (0, tls_1.connect)(tlsConnectOptions, () => { - var _a; - if (((_a = this.connectionOptions.rejectUnauthorized) !== null && _a !== void 0 ? _a : true) && !tlsSocket.authorized) { - reject(tlsSocket.authorizationError); - return; - } - resolve({ - socket: tlsSocket, - secure: true - }); - }); - tlsSocket.on('error', (error) => { - reject(error); - }); - }); - } - waitForReady() { - return Promise.resolve(); - } - getCallCredentials() { - return this.callCredentials; - } - destroy() { } -} -class SecureChannelCredentialsImpl extends ChannelCredentials { - constructor(secureContext, verifyOptions) { - super(); - this.secureContext = secureContext; - this.verifyOptions = verifyOptions; - } - _isSecure() { - return true; - } - _equals(other) { - if (this === other) { - return true; - } - if (other instanceof SecureChannelCredentialsImpl) { - return (this.secureContext === other.secureContext && - this.verifyOptions.checkServerIdentity === - other.verifyOptions.checkServerIdentity); - } - else { - return false; - } - } - _createSecureConnector(channelTarget, options, callCredentials) { - const connectionOptions = getConnectionOptions(this.secureContext, this.verifyOptions, channelTarget, options); - return new SecureConnectorImpl(connectionOptions, callCredentials !== null && callCredentials !== void 0 ? callCredentials : call_credentials_1.CallCredentials.createEmpty()); - } -} -class CertificateProviderChannelCredentialsImpl extends ChannelCredentials { - constructor(caCertificateProvider, identityCertificateProvider, verifyOptions) { - super(); - this.caCertificateProvider = caCertificateProvider; - this.identityCertificateProvider = identityCertificateProvider; - this.verifyOptions = verifyOptions; - this.refcount = 0; - /** - * `undefined` means that the certificates have not yet been loaded. `null` - * means that an attempt to load them has completed, and has failed. - */ - this.latestCaUpdate = undefined; - /** - * `undefined` means that the certificates have not yet been loaded. `null` - * means that an attempt to load them has completed, and has failed. - */ - this.latestIdentityUpdate = undefined; - this.caCertificateUpdateListener = this.handleCaCertificateUpdate.bind(this); - this.identityCertificateUpdateListener = this.handleIdentityCertitificateUpdate.bind(this); - this.secureContextWatchers = []; - } - _isSecure() { - return true; - } - _equals(other) { - var _a, _b; - if (this === other) { - return true; - } - if (other instanceof CertificateProviderChannelCredentialsImpl) { - return this.caCertificateProvider === other.caCertificateProvider && - this.identityCertificateProvider === other.identityCertificateProvider && - ((_a = this.verifyOptions) === null || _a === void 0 ? void 0 : _a.checkServerIdentity) === ((_b = other.verifyOptions) === null || _b === void 0 ? void 0 : _b.checkServerIdentity); - } - else { - return false; - } - } - ref() { - var _a; - if (this.refcount === 0) { - this.caCertificateProvider.addCaCertificateListener(this.caCertificateUpdateListener); - (_a = this.identityCertificateProvider) === null || _a === void 0 ? void 0 : _a.addIdentityCertificateListener(this.identityCertificateUpdateListener); - } - this.refcount += 1; - } - unref() { - var _a; - this.refcount -= 1; - if (this.refcount === 0) { - this.caCertificateProvider.removeCaCertificateListener(this.caCertificateUpdateListener); - (_a = this.identityCertificateProvider) === null || _a === void 0 ? void 0 : _a.removeIdentityCertificateListener(this.identityCertificateUpdateListener); - } - } - _createSecureConnector(channelTarget, options, callCredentials) { - this.ref(); - return new CertificateProviderChannelCredentialsImpl.SecureConnectorImpl(this, channelTarget, options, callCredentials !== null && callCredentials !== void 0 ? callCredentials : call_credentials_1.CallCredentials.createEmpty()); - } - maybeUpdateWatchers() { - if (this.hasReceivedUpdates()) { - for (const watcher of this.secureContextWatchers) { - watcher(this.getLatestSecureContext()); - } - this.secureContextWatchers = []; - } - } - handleCaCertificateUpdate(update) { - this.latestCaUpdate = update; - this.maybeUpdateWatchers(); - } - handleIdentityCertitificateUpdate(update) { - this.latestIdentityUpdate = update; - this.maybeUpdateWatchers(); - } - hasReceivedUpdates() { - if (this.latestCaUpdate === undefined) { - return false; - } - if (this.identityCertificateProvider && this.latestIdentityUpdate === undefined) { - return false; - } - return true; - } - getSecureContext() { - if (this.hasReceivedUpdates()) { - return Promise.resolve(this.getLatestSecureContext()); - } - else { - return new Promise(resolve => { - this.secureContextWatchers.push(resolve); - }); - } - } - getLatestSecureContext() { - var _a, _b; - if (!this.latestCaUpdate) { - return null; - } - if (this.identityCertificateProvider !== null && !this.latestIdentityUpdate) { - return null; - } - try { - return (0, tls_1.createSecureContext)({ - ca: this.latestCaUpdate.caCertificate, - key: (_a = this.latestIdentityUpdate) === null || _a === void 0 ? void 0 : _a.privateKey, - cert: (_b = this.latestIdentityUpdate) === null || _b === void 0 ? void 0 : _b.certificate, - ciphers: tls_helpers_1.CIPHER_SUITES - }); - } - catch (e) { - (0, logging_1.log)(constants_1.LogVerbosity.ERROR, 'Failed to createSecureContext with error ' + e.message); - return null; - } - } -} -CertificateProviderChannelCredentialsImpl.SecureConnectorImpl = class { - constructor(parent, channelTarget, options, callCredentials) { - this.parent = parent; - this.channelTarget = channelTarget; - this.options = options; - this.callCredentials = callCredentials; - } - connect(socket) { - return new Promise((resolve, reject) => { - const secureContext = this.parent.getLatestSecureContext(); - if (!secureContext) { - reject(new Error('Failed to load credentials')); - return; - } - if (socket.closed) { - reject(new Error('Socket closed while loading credentials')); - } - const connnectionOptions = getConnectionOptions(secureContext, this.parent.verifyOptions, this.channelTarget, this.options); - const tlsConnectOptions = Object.assign({ socket: socket }, connnectionOptions); - const closeCallback = () => { - reject(new Error('Socket closed')); - }; - const errorCallback = (error) => { - reject(error); - }; - const tlsSocket = (0, tls_1.connect)(tlsConnectOptions, () => { - var _a; - tlsSocket.removeListener('close', closeCallback); - tlsSocket.removeListener('error', errorCallback); - if (((_a = this.parent.verifyOptions.rejectUnauthorized) !== null && _a !== void 0 ? _a : true) && !tlsSocket.authorized) { - reject(tlsSocket.authorizationError); - return; - } - resolve({ - socket: tlsSocket, - secure: true - }); - }); - tlsSocket.once('close', closeCallback); - tlsSocket.once('error', errorCallback); - }); - } - async waitForReady() { - await this.parent.getSecureContext(); - } - getCallCredentials() { - return this.callCredentials; - } - destroy() { - this.parent.unref(); - } -}; -function createCertificateProviderChannelCredentials(caCertificateProvider, identityCertificateProvider, verifyOptions) { - return new CertificateProviderChannelCredentialsImpl(caCertificateProvider, identityCertificateProvider, verifyOptions !== null && verifyOptions !== void 0 ? verifyOptions : {}); -} -class ComposedChannelCredentialsImpl extends ChannelCredentials { - constructor(channelCredentials, callCredentials) { - super(); - this.channelCredentials = channelCredentials; - this.callCredentials = callCredentials; - if (!channelCredentials._isSecure()) { - throw new Error('Cannot compose insecure credentials'); - } - } - compose(callCredentials) { - const combinedCallCredentials = this.callCredentials.compose(callCredentials); - return new ComposedChannelCredentialsImpl(this.channelCredentials, combinedCallCredentials); - } - _isSecure() { - return true; - } - _equals(other) { - if (this === other) { - return true; - } - if (other instanceof ComposedChannelCredentialsImpl) { - return (this.channelCredentials._equals(other.channelCredentials) && - this.callCredentials._equals(other.callCredentials)); - } - else { - return false; - } - } - _createSecureConnector(channelTarget, options, callCredentials) { - const combinedCallCredentials = this.callCredentials.compose(callCredentials !== null && callCredentials !== void 0 ? callCredentials : call_credentials_1.CallCredentials.createEmpty()); - return this.channelCredentials._createSecureConnector(channelTarget, options, combinedCallCredentials); - } -} -//# sourceMappingURL=channel-credentials.js.map - -/***/ }), - -/***/ 86793: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.recognizedOptions = void 0; -exports.channelOptionsEqual = channelOptionsEqual; -/** - * This is for checking provided options at runtime. This is an object for - * easier membership checking. - */ -exports.recognizedOptions = { - 'grpc.ssl_target_name_override': true, - 'grpc.primary_user_agent': true, - 'grpc.secondary_user_agent': true, - 'grpc.default_authority': true, - 'grpc.keepalive_time_ms': true, - 'grpc.keepalive_timeout_ms': true, - 'grpc.keepalive_permit_without_calls': true, - 'grpc.service_config': true, - 'grpc.max_concurrent_streams': true, - 'grpc.initial_reconnect_backoff_ms': true, - 'grpc.max_reconnect_backoff_ms': true, - 'grpc.use_local_subchannel_pool': true, - 'grpc.max_send_message_length': true, - 'grpc.max_receive_message_length': true, - 'grpc.enable_http_proxy': true, - 'grpc.enable_channelz': true, - 'grpc.dns_min_time_between_resolutions_ms': true, - 'grpc.enable_retries': true, - 'grpc.per_rpc_retry_buffer_size': true, - 'grpc.retry_buffer_size': true, - 'grpc.max_connection_age_ms': true, - 'grpc.max_connection_age_grace_ms': true, - 'grpc-node.max_session_memory': true, - 'grpc.service_config_disable_resolution': true, - 'grpc.client_idle_timeout_ms': true, - 'grpc-node.tls_enable_trace': true, - 'grpc.lb.ring_hash.ring_size_cap': true, - 'grpc-node.retry_max_attempts_limit': true, - 'grpc-node.flow_control_window': true, - 'grpc.server_call_metric_recording': true -}; -function channelOptionsEqual(options1, options2) { - const keys1 = Object.keys(options1).sort(); - const keys2 = Object.keys(options2).sort(); - if (keys1.length !== keys2.length) { - return false; - } - for (let i = 0; i < keys1.length; i += 1) { - if (keys1[i] !== keys2[i]) { - return false; - } - if (options1[keys1[i]] !== options2[keys2[i]]) { - return false; - } - } - return true; -} -//# sourceMappingURL=channel-options.js.map - -/***/ }), - -/***/ 86918: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ChannelImplementation = void 0; -const channel_credentials_1 = __nccwpck_require__(32257); -const internal_channel_1 = __nccwpck_require__(40114); -class ChannelImplementation { - constructor(target, credentials, options) { - if (typeof target !== 'string') { - throw new TypeError('Channel target must be a string'); - } - if (!(credentials instanceof channel_credentials_1.ChannelCredentials)) { - throw new TypeError('Channel credentials must be a ChannelCredentials object'); - } - if (options) { - if (typeof options !== 'object') { - throw new TypeError('Channel options must be an object'); - } - } - this.internalChannel = new internal_channel_1.InternalChannel(target, credentials, options); - } - close() { - this.internalChannel.close(); - } - getTarget() { - return this.internalChannel.getTarget(); - } - getConnectivityState(tryToConnect) { - return this.internalChannel.getConnectivityState(tryToConnect); - } - watchConnectivityState(currentState, deadline, callback) { - this.internalChannel.watchConnectivityState(currentState, deadline, callback); - } - /** - * Get the channelz reference object for this channel. The returned value is - * garbage if channelz is disabled for this channel. - * @returns - */ - getChannelzRef() { - return this.internalChannel.getChannelzRef(); - } - createCall(method, deadline, host, parentCall, propagateFlags) { - if (typeof method !== 'string') { - throw new TypeError('Channel#createCall: method must be a string'); - } - if (!(typeof deadline === 'number' || deadline instanceof Date)) { - throw new TypeError('Channel#createCall: deadline must be a number or Date'); - } - return this.internalChannel.createCall(method, deadline, host, parentCall, propagateFlags); - } -} -exports.ChannelImplementation = ChannelImplementation; -//# sourceMappingURL=channel.js.map - -/***/ }), - -/***/ 68198: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2021 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.registerChannelzSocket = exports.registerChannelzServer = exports.registerChannelzSubchannel = exports.registerChannelzChannel = exports.ChannelzCallTrackerStub = exports.ChannelzCallTracker = exports.ChannelzChildrenTrackerStub = exports.ChannelzChildrenTracker = exports.ChannelzTrace = exports.ChannelzTraceStub = void 0; -exports.unregisterChannelzRef = unregisterChannelzRef; -exports.getChannelzHandlers = getChannelzHandlers; -exports.getChannelzServiceDefinition = getChannelzServiceDefinition; -exports.setup = setup; -const net_1 = __nccwpck_require__(69278); -const ordered_map_1 = __nccwpck_require__(60137); -const connectivity_state_1 = __nccwpck_require__(60778); -const constants_1 = __nccwpck_require__(68288); -const subchannel_address_1 = __nccwpck_require__(97021); -const admin_1 = __nccwpck_require__(52914); -const make_client_1 = __nccwpck_require__(76983); -function channelRefToMessage(ref) { - return { - channel_id: ref.id, - name: ref.name, - }; -} -function subchannelRefToMessage(ref) { - return { - subchannel_id: ref.id, - name: ref.name, - }; -} -function serverRefToMessage(ref) { - return { - server_id: ref.id, - }; -} -function socketRefToMessage(ref) { - return { - socket_id: ref.id, - name: ref.name, - }; -} -/** - * The loose upper bound on the number of events that should be retained in a - * trace. This may be exceeded by up to a factor of 2. Arbitrarily chosen as a - * number that should be large enough to contain the recent relevant - * information, but small enough to not use excessive memory. - */ -const TARGET_RETAINED_TRACES = 32; -/** - * Default number of sockets/servers/channels/subchannels to return - */ -const DEFAULT_MAX_RESULTS = 100; -class ChannelzTraceStub { - constructor() { - this.events = []; - this.creationTimestamp = new Date(); - this.eventsLogged = 0; - } - addTrace() { } - getTraceMessage() { - return { - creation_timestamp: dateToProtoTimestamp(this.creationTimestamp), - num_events_logged: this.eventsLogged, - events: [], - }; - } -} -exports.ChannelzTraceStub = ChannelzTraceStub; -class ChannelzTrace { - constructor() { - this.events = []; - this.eventsLogged = 0; - this.creationTimestamp = new Date(); - } - addTrace(severity, description, child) { - const timestamp = new Date(); - this.events.push({ - description: description, - severity: severity, - timestamp: timestamp, - childChannel: (child === null || child === void 0 ? void 0 : child.kind) === 'channel' ? child : undefined, - childSubchannel: (child === null || child === void 0 ? void 0 : child.kind) === 'subchannel' ? child : undefined, - }); - // Whenever the trace array gets too large, discard the first half - if (this.events.length >= TARGET_RETAINED_TRACES * 2) { - this.events = this.events.slice(TARGET_RETAINED_TRACES); - } - this.eventsLogged += 1; - } - getTraceMessage() { - return { - creation_timestamp: dateToProtoTimestamp(this.creationTimestamp), - num_events_logged: this.eventsLogged, - events: this.events.map(event => { - return { - description: event.description, - severity: event.severity, - timestamp: dateToProtoTimestamp(event.timestamp), - channel_ref: event.childChannel - ? channelRefToMessage(event.childChannel) - : null, - subchannel_ref: event.childSubchannel - ? subchannelRefToMessage(event.childSubchannel) - : null, - }; - }), - }; - } -} -exports.ChannelzTrace = ChannelzTrace; -class ChannelzChildrenTracker { - constructor() { - this.channelChildren = new ordered_map_1.OrderedMap(); - this.subchannelChildren = new ordered_map_1.OrderedMap(); - this.socketChildren = new ordered_map_1.OrderedMap(); - this.trackerMap = { - ["channel" /* EntityTypes.channel */]: this.channelChildren, - ["subchannel" /* EntityTypes.subchannel */]: this.subchannelChildren, - ["socket" /* EntityTypes.socket */]: this.socketChildren, - }; - } - refChild(child) { - const tracker = this.trackerMap[child.kind]; - const trackedChild = tracker.find(child.id); - if (trackedChild.equals(tracker.end())) { - tracker.setElement(child.id, { - ref: child, - count: 1, - }, trackedChild); - } - else { - trackedChild.pointer[1].count += 1; - } - } - unrefChild(child) { - const tracker = this.trackerMap[child.kind]; - const trackedChild = tracker.getElementByKey(child.id); - if (trackedChild !== undefined) { - trackedChild.count -= 1; - if (trackedChild.count === 0) { - tracker.eraseElementByKey(child.id); - } - } - } - getChildLists() { - return { - channels: this.channelChildren, - subchannels: this.subchannelChildren, - sockets: this.socketChildren, - }; - } -} -exports.ChannelzChildrenTracker = ChannelzChildrenTracker; -class ChannelzChildrenTrackerStub extends ChannelzChildrenTracker { - refChild() { } - unrefChild() { } -} -exports.ChannelzChildrenTrackerStub = ChannelzChildrenTrackerStub; -class ChannelzCallTracker { - constructor() { - this.callsStarted = 0; - this.callsSucceeded = 0; - this.callsFailed = 0; - this.lastCallStartedTimestamp = null; - } - addCallStarted() { - this.callsStarted += 1; - this.lastCallStartedTimestamp = new Date(); - } - addCallSucceeded() { - this.callsSucceeded += 1; - } - addCallFailed() { - this.callsFailed += 1; - } -} -exports.ChannelzCallTracker = ChannelzCallTracker; -class ChannelzCallTrackerStub extends ChannelzCallTracker { - addCallStarted() { } - addCallSucceeded() { } - addCallFailed() { } -} -exports.ChannelzCallTrackerStub = ChannelzCallTrackerStub; -const entityMaps = { - ["channel" /* EntityTypes.channel */]: new ordered_map_1.OrderedMap(), - ["subchannel" /* EntityTypes.subchannel */]: new ordered_map_1.OrderedMap(), - ["server" /* EntityTypes.server */]: new ordered_map_1.OrderedMap(), - ["socket" /* EntityTypes.socket */]: new ordered_map_1.OrderedMap(), -}; -const generateRegisterFn = (kind) => { - let nextId = 1; - function getNextId() { - return nextId++; - } - const entityMap = entityMaps[kind]; - return (name, getInfo, channelzEnabled) => { - const id = getNextId(); - const ref = { id, name, kind }; - if (channelzEnabled) { - entityMap.setElement(id, { ref, getInfo }); - } - return ref; - }; -}; -exports.registerChannelzChannel = generateRegisterFn("channel" /* EntityTypes.channel */); -exports.registerChannelzSubchannel = generateRegisterFn("subchannel" /* EntityTypes.subchannel */); -exports.registerChannelzServer = generateRegisterFn("server" /* EntityTypes.server */); -exports.registerChannelzSocket = generateRegisterFn("socket" /* EntityTypes.socket */); -function unregisterChannelzRef(ref) { - entityMaps[ref.kind].eraseElementByKey(ref.id); -} -/** - * Parse a single section of an IPv6 address as two bytes - * @param addressSection A hexadecimal string of length up to 4 - * @returns The pair of bytes representing this address section - */ -function parseIPv6Section(addressSection) { - const numberValue = Number.parseInt(addressSection, 16); - return [(numberValue / 256) | 0, numberValue % 256]; -} -/** - * Parse a chunk of an IPv6 address string to some number of bytes - * @param addressChunk Some number of segments of up to 4 hexadecimal - * characters each, joined by colons. - * @returns The list of bytes representing this address chunk - */ -function parseIPv6Chunk(addressChunk) { - if (addressChunk === '') { - return []; - } - const bytePairs = addressChunk - .split(':') - .map(section => parseIPv6Section(section)); - const result = []; - return result.concat(...bytePairs); -} -function isIPv6MappedIPv4(ipAddress) { - return (0, net_1.isIPv6)(ipAddress) && ipAddress.toLowerCase().startsWith('::ffff:') && (0, net_1.isIPv4)(ipAddress.substring(7)); -} -/** - * Prerequisite: isIPv4(ipAddress) - * @param ipAddress - * @returns - */ -function ipv4AddressStringToBuffer(ipAddress) { - return Buffer.from(Uint8Array.from(ipAddress.split('.').map(segment => Number.parseInt(segment)))); -} -/** - * Converts an IPv4 or IPv6 address from string representation to binary - * representation - * @param ipAddress an IP address in standard IPv4 or IPv6 text format - * @returns - */ -function ipAddressStringToBuffer(ipAddress) { - if ((0, net_1.isIPv4)(ipAddress)) { - return ipv4AddressStringToBuffer(ipAddress); - } - else if (isIPv6MappedIPv4(ipAddress)) { - return ipv4AddressStringToBuffer(ipAddress.substring(7)); - } - else if ((0, net_1.isIPv6)(ipAddress)) { - let leftSection; - let rightSection; - const doubleColonIndex = ipAddress.indexOf('::'); - if (doubleColonIndex === -1) { - leftSection = ipAddress; - rightSection = ''; - } - else { - leftSection = ipAddress.substring(0, doubleColonIndex); - rightSection = ipAddress.substring(doubleColonIndex + 2); - } - const leftBuffer = Buffer.from(parseIPv6Chunk(leftSection)); - const rightBuffer = Buffer.from(parseIPv6Chunk(rightSection)); - const middleBuffer = Buffer.alloc(16 - leftBuffer.length - rightBuffer.length, 0); - return Buffer.concat([leftBuffer, middleBuffer, rightBuffer]); - } - else { - return null; - } -} -function connectivityStateToMessage(state) { - switch (state) { - case connectivity_state_1.ConnectivityState.CONNECTING: - return { - state: 'CONNECTING', - }; - case connectivity_state_1.ConnectivityState.IDLE: - return { - state: 'IDLE', - }; - case connectivity_state_1.ConnectivityState.READY: - return { - state: 'READY', - }; - case connectivity_state_1.ConnectivityState.SHUTDOWN: - return { - state: 'SHUTDOWN', - }; - case connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE: - return { - state: 'TRANSIENT_FAILURE', - }; - default: - return { - state: 'UNKNOWN', - }; - } -} -function dateToProtoTimestamp(date) { - if (!date) { - return null; - } - const millisSinceEpoch = date.getTime(); - return { - seconds: (millisSinceEpoch / 1000) | 0, - nanos: (millisSinceEpoch % 1000) * 1000000, - }; -} -function getChannelMessage(channelEntry) { - const resolvedInfo = channelEntry.getInfo(); - const channelRef = []; - const subchannelRef = []; - resolvedInfo.children.channels.forEach(el => { - channelRef.push(channelRefToMessage(el[1].ref)); - }); - resolvedInfo.children.subchannels.forEach(el => { - subchannelRef.push(subchannelRefToMessage(el[1].ref)); - }); - return { - ref: channelRefToMessage(channelEntry.ref), - data: { - target: resolvedInfo.target, - state: connectivityStateToMessage(resolvedInfo.state), - calls_started: resolvedInfo.callTracker.callsStarted, - calls_succeeded: resolvedInfo.callTracker.callsSucceeded, - calls_failed: resolvedInfo.callTracker.callsFailed, - last_call_started_timestamp: dateToProtoTimestamp(resolvedInfo.callTracker.lastCallStartedTimestamp), - trace: resolvedInfo.trace.getTraceMessage(), - }, - channel_ref: channelRef, - subchannel_ref: subchannelRef, - }; -} -function GetChannel(call, callback) { - const channelId = parseInt(call.request.channel_id, 10); - const channelEntry = entityMaps["channel" /* EntityTypes.channel */].getElementByKey(channelId); - if (channelEntry === undefined) { - callback({ - code: constants_1.Status.NOT_FOUND, - details: 'No channel data found for id ' + channelId, - }); - return; - } - callback(null, { channel: getChannelMessage(channelEntry) }); -} -function GetTopChannels(call, callback) { - const maxResults = parseInt(call.request.max_results, 10) || DEFAULT_MAX_RESULTS; - const resultList = []; - const startId = parseInt(call.request.start_channel_id, 10); - const channelEntries = entityMaps["channel" /* EntityTypes.channel */]; - let i; - for (i = channelEntries.lowerBound(startId); !i.equals(channelEntries.end()) && resultList.length < maxResults; i = i.next()) { - resultList.push(getChannelMessage(i.pointer[1])); - } - callback(null, { - channel: resultList, - end: i.equals(channelEntries.end()), - }); -} -function getServerMessage(serverEntry) { - const resolvedInfo = serverEntry.getInfo(); - const listenSocket = []; - resolvedInfo.listenerChildren.sockets.forEach(el => { - listenSocket.push(socketRefToMessage(el[1].ref)); - }); - return { - ref: serverRefToMessage(serverEntry.ref), - data: { - calls_started: resolvedInfo.callTracker.callsStarted, - calls_succeeded: resolvedInfo.callTracker.callsSucceeded, - calls_failed: resolvedInfo.callTracker.callsFailed, - last_call_started_timestamp: dateToProtoTimestamp(resolvedInfo.callTracker.lastCallStartedTimestamp), - trace: resolvedInfo.trace.getTraceMessage(), - }, - listen_socket: listenSocket, - }; -} -function GetServer(call, callback) { - const serverId = parseInt(call.request.server_id, 10); - const serverEntries = entityMaps["server" /* EntityTypes.server */]; - const serverEntry = serverEntries.getElementByKey(serverId); - if (serverEntry === undefined) { - callback({ - code: constants_1.Status.NOT_FOUND, - details: 'No server data found for id ' + serverId, - }); - return; - } - callback(null, { server: getServerMessage(serverEntry) }); -} -function GetServers(call, callback) { - const maxResults = parseInt(call.request.max_results, 10) || DEFAULT_MAX_RESULTS; - const startId = parseInt(call.request.start_server_id, 10); - const serverEntries = entityMaps["server" /* EntityTypes.server */]; - const resultList = []; - let i; - for (i = serverEntries.lowerBound(startId); !i.equals(serverEntries.end()) && resultList.length < maxResults; i = i.next()) { - resultList.push(getServerMessage(i.pointer[1])); - } - callback(null, { - server: resultList, - end: i.equals(serverEntries.end()), - }); -} -function GetSubchannel(call, callback) { - const subchannelId = parseInt(call.request.subchannel_id, 10); - const subchannelEntry = entityMaps["subchannel" /* EntityTypes.subchannel */].getElementByKey(subchannelId); - if (subchannelEntry === undefined) { - callback({ - code: constants_1.Status.NOT_FOUND, - details: 'No subchannel data found for id ' + subchannelId, - }); - return; - } - const resolvedInfo = subchannelEntry.getInfo(); - const listenSocket = []; - resolvedInfo.children.sockets.forEach(el => { - listenSocket.push(socketRefToMessage(el[1].ref)); - }); - const subchannelMessage = { - ref: subchannelRefToMessage(subchannelEntry.ref), - data: { - target: resolvedInfo.target, - state: connectivityStateToMessage(resolvedInfo.state), - calls_started: resolvedInfo.callTracker.callsStarted, - calls_succeeded: resolvedInfo.callTracker.callsSucceeded, - calls_failed: resolvedInfo.callTracker.callsFailed, - last_call_started_timestamp: dateToProtoTimestamp(resolvedInfo.callTracker.lastCallStartedTimestamp), - trace: resolvedInfo.trace.getTraceMessage(), - }, - socket_ref: listenSocket, - }; - callback(null, { subchannel: subchannelMessage }); -} -function subchannelAddressToAddressMessage(subchannelAddress) { - var _a; - if ((0, subchannel_address_1.isTcpSubchannelAddress)(subchannelAddress)) { - return { - address: 'tcpip_address', - tcpip_address: { - ip_address: (_a = ipAddressStringToBuffer(subchannelAddress.host)) !== null && _a !== void 0 ? _a : undefined, - port: subchannelAddress.port, - }, - }; - } - else { - return { - address: 'uds_address', - uds_address: { - filename: subchannelAddress.path, - }, - }; - } -} -function GetSocket(call, callback) { - var _a, _b, _c, _d, _e; - const socketId = parseInt(call.request.socket_id, 10); - const socketEntry = entityMaps["socket" /* EntityTypes.socket */].getElementByKey(socketId); - if (socketEntry === undefined) { - callback({ - code: constants_1.Status.NOT_FOUND, - details: 'No socket data found for id ' + socketId, - }); - return; - } - const resolvedInfo = socketEntry.getInfo(); - const securityMessage = resolvedInfo.security - ? { - model: 'tls', - tls: { - cipher_suite: resolvedInfo.security.cipherSuiteStandardName - ? 'standard_name' - : 'other_name', - standard_name: (_a = resolvedInfo.security.cipherSuiteStandardName) !== null && _a !== void 0 ? _a : undefined, - other_name: (_b = resolvedInfo.security.cipherSuiteOtherName) !== null && _b !== void 0 ? _b : undefined, - local_certificate: (_c = resolvedInfo.security.localCertificate) !== null && _c !== void 0 ? _c : undefined, - remote_certificate: (_d = resolvedInfo.security.remoteCertificate) !== null && _d !== void 0 ? _d : undefined, - }, - } - : null; - const socketMessage = { - ref: socketRefToMessage(socketEntry.ref), - local: resolvedInfo.localAddress - ? subchannelAddressToAddressMessage(resolvedInfo.localAddress) - : null, - remote: resolvedInfo.remoteAddress - ? subchannelAddressToAddressMessage(resolvedInfo.remoteAddress) - : null, - remote_name: (_e = resolvedInfo.remoteName) !== null && _e !== void 0 ? _e : undefined, - security: securityMessage, - data: { - keep_alives_sent: resolvedInfo.keepAlivesSent, - streams_started: resolvedInfo.streamsStarted, - streams_succeeded: resolvedInfo.streamsSucceeded, - streams_failed: resolvedInfo.streamsFailed, - last_local_stream_created_timestamp: dateToProtoTimestamp(resolvedInfo.lastLocalStreamCreatedTimestamp), - last_remote_stream_created_timestamp: dateToProtoTimestamp(resolvedInfo.lastRemoteStreamCreatedTimestamp), - messages_received: resolvedInfo.messagesReceived, - messages_sent: resolvedInfo.messagesSent, - last_message_received_timestamp: dateToProtoTimestamp(resolvedInfo.lastMessageReceivedTimestamp), - last_message_sent_timestamp: dateToProtoTimestamp(resolvedInfo.lastMessageSentTimestamp), - local_flow_control_window: resolvedInfo.localFlowControlWindow - ? { value: resolvedInfo.localFlowControlWindow } - : null, - remote_flow_control_window: resolvedInfo.remoteFlowControlWindow - ? { value: resolvedInfo.remoteFlowControlWindow } - : null, - }, - }; - callback(null, { socket: socketMessage }); -} -function GetServerSockets(call, callback) { - const serverId = parseInt(call.request.server_id, 10); - const serverEntry = entityMaps["server" /* EntityTypes.server */].getElementByKey(serverId); - if (serverEntry === undefined) { - callback({ - code: constants_1.Status.NOT_FOUND, - details: 'No server data found for id ' + serverId, - }); - return; - } - const startId = parseInt(call.request.start_socket_id, 10); - const maxResults = parseInt(call.request.max_results, 10) || DEFAULT_MAX_RESULTS; - const resolvedInfo = serverEntry.getInfo(); - // If we wanted to include listener sockets in the result, this line would - // instead say - // const allSockets = resolvedInfo.listenerChildren.sockets.concat(resolvedInfo.sessionChildren.sockets).sort((ref1, ref2) => ref1.id - ref2.id); - const allSockets = resolvedInfo.sessionChildren.sockets; - const resultList = []; - let i; - for (i = allSockets.lowerBound(startId); !i.equals(allSockets.end()) && resultList.length < maxResults; i = i.next()) { - resultList.push(socketRefToMessage(i.pointer[1].ref)); - } - callback(null, { - socket_ref: resultList, - end: i.equals(allSockets.end()), - }); -} -function getChannelzHandlers() { - return { - GetChannel, - GetTopChannels, - GetServer, - GetServers, - GetSubchannel, - GetSocket, - GetServerSockets, - }; -} -let loadedChannelzDefinition = null; -function getChannelzServiceDefinition() { - if (loadedChannelzDefinition) { - return loadedChannelzDefinition; - } - /* The purpose of this complexity is to avoid loading @grpc/proto-loader at - * runtime for users who will not use/enable channelz. */ - const loaderLoadSync = (__nccwpck_require__(73066)/* .loadSync */ .Yi); - const loadedProto = loaderLoadSync('channelz.proto', { - keepCase: true, - longs: String, - enums: String, - defaults: true, - oneofs: true, - includeDirs: [__nccwpck_require__.ab + "proto"], - }); - const channelzGrpcObject = (0, make_client_1.loadPackageDefinition)(loadedProto); - loadedChannelzDefinition = - channelzGrpcObject.grpc.channelz.v1.Channelz.service; - return loadedChannelzDefinition; -} -function setup() { - (0, admin_1.registerAdminService)(getChannelzServiceDefinition, getChannelzHandlers); -} -//# sourceMappingURL=channelz.js.map - -/***/ }), - -/***/ 82451: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.InterceptingCall = exports.RequesterBuilder = exports.ListenerBuilder = exports.InterceptorConfigurationError = void 0; -exports.getInterceptingCall = getInterceptingCall; -const metadata_1 = __nccwpck_require__(36100); -const call_interface_1 = __nccwpck_require__(61803); -const constants_1 = __nccwpck_require__(68288); -const error_1 = __nccwpck_require__(98219); -/** - * Error class associated with passing both interceptors and interceptor - * providers to a client constructor or as call options. - */ -class InterceptorConfigurationError extends Error { - constructor(message) { - super(message); - this.name = 'InterceptorConfigurationError'; - Error.captureStackTrace(this, InterceptorConfigurationError); - } -} -exports.InterceptorConfigurationError = InterceptorConfigurationError; -class ListenerBuilder { - constructor() { - this.metadata = undefined; - this.message = undefined; - this.status = undefined; - } - withOnReceiveMetadata(onReceiveMetadata) { - this.metadata = onReceiveMetadata; - return this; - } - withOnReceiveMessage(onReceiveMessage) { - this.message = onReceiveMessage; - return this; - } - withOnReceiveStatus(onReceiveStatus) { - this.status = onReceiveStatus; - return this; - } - build() { - return { - onReceiveMetadata: this.metadata, - onReceiveMessage: this.message, - onReceiveStatus: this.status, - }; - } -} -exports.ListenerBuilder = ListenerBuilder; -class RequesterBuilder { - constructor() { - this.start = undefined; - this.message = undefined; - this.halfClose = undefined; - this.cancel = undefined; - } - withStart(start) { - this.start = start; - return this; - } - withSendMessage(sendMessage) { - this.message = sendMessage; - return this; - } - withHalfClose(halfClose) { - this.halfClose = halfClose; - return this; - } - withCancel(cancel) { - this.cancel = cancel; - return this; - } - build() { - return { - start: this.start, - sendMessage: this.message, - halfClose: this.halfClose, - cancel: this.cancel, - }; - } -} -exports.RequesterBuilder = RequesterBuilder; -/** - * A Listener with a default pass-through implementation of each method. Used - * for filling out Listeners with some methods omitted. - */ -const defaultListener = { - onReceiveMetadata: (metadata, next) => { - next(metadata); - }, - onReceiveMessage: (message, next) => { - next(message); - }, - onReceiveStatus: (status, next) => { - next(status); - }, -}; -/** - * A Requester with a default pass-through implementation of each method. Used - * for filling out Requesters with some methods omitted. - */ -const defaultRequester = { - start: (metadata, listener, next) => { - next(metadata, listener); - }, - sendMessage: (message, next) => { - next(message); - }, - halfClose: next => { - next(); - }, - cancel: next => { - next(); - }, -}; -class InterceptingCall { - constructor(nextCall, requester) { - var _a, _b, _c, _d; - this.nextCall = nextCall; - /** - * Indicates that metadata has been passed to the requester's start - * method but it has not been passed to the corresponding next callback - */ - this.processingMetadata = false; - /** - * Message context for a pending message that is waiting for - */ - this.pendingMessageContext = null; - /** - * Indicates that a message has been passed to the requester's sendMessage - * method but it has not been passed to the corresponding next callback - */ - this.processingMessage = false; - /** - * Indicates that a status was received but could not be propagated because - * a message was still being processed. - */ - this.pendingHalfClose = false; - if (requester) { - this.requester = { - start: (_a = requester.start) !== null && _a !== void 0 ? _a : defaultRequester.start, - sendMessage: (_b = requester.sendMessage) !== null && _b !== void 0 ? _b : defaultRequester.sendMessage, - halfClose: (_c = requester.halfClose) !== null && _c !== void 0 ? _c : defaultRequester.halfClose, - cancel: (_d = requester.cancel) !== null && _d !== void 0 ? _d : defaultRequester.cancel, - }; - } - else { - this.requester = defaultRequester; - } - } - cancelWithStatus(status, details) { - this.requester.cancel(() => { - this.nextCall.cancelWithStatus(status, details); - }); - } - getPeer() { - return this.nextCall.getPeer(); - } - processPendingMessage() { - if (this.pendingMessageContext) { - this.nextCall.sendMessageWithContext(this.pendingMessageContext, this.pendingMessage); - this.pendingMessageContext = null; - this.pendingMessage = null; - } - } - processPendingHalfClose() { - if (this.pendingHalfClose) { - this.nextCall.halfClose(); - } - } - start(metadata, interceptingListener) { - var _a, _b, _c, _d, _e, _f; - const fullInterceptingListener = { - onReceiveMetadata: (_b = (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMetadata) === null || _a === void 0 ? void 0 : _a.bind(interceptingListener)) !== null && _b !== void 0 ? _b : (metadata => { }), - onReceiveMessage: (_d = (_c = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMessage) === null || _c === void 0 ? void 0 : _c.bind(interceptingListener)) !== null && _d !== void 0 ? _d : (message => { }), - onReceiveStatus: (_f = (_e = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveStatus) === null || _e === void 0 ? void 0 : _e.bind(interceptingListener)) !== null && _f !== void 0 ? _f : (status => { }), - }; - this.processingMetadata = true; - this.requester.start(metadata, fullInterceptingListener, (md, listener) => { - var _a, _b, _c; - this.processingMetadata = false; - let finalInterceptingListener; - if ((0, call_interface_1.isInterceptingListener)(listener)) { - finalInterceptingListener = listener; - } - else { - const fullListener = { - onReceiveMetadata: (_a = listener.onReceiveMetadata) !== null && _a !== void 0 ? _a : defaultListener.onReceiveMetadata, - onReceiveMessage: (_b = listener.onReceiveMessage) !== null && _b !== void 0 ? _b : defaultListener.onReceiveMessage, - onReceiveStatus: (_c = listener.onReceiveStatus) !== null && _c !== void 0 ? _c : defaultListener.onReceiveStatus, - }; - finalInterceptingListener = new call_interface_1.InterceptingListenerImpl(fullListener, fullInterceptingListener); - } - this.nextCall.start(md, finalInterceptingListener); - this.processPendingMessage(); - this.processPendingHalfClose(); - }); - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - sendMessageWithContext(context, message) { - this.processingMessage = true; - this.requester.sendMessage(message, finalMessage => { - this.processingMessage = false; - if (this.processingMetadata) { - this.pendingMessageContext = context; - this.pendingMessage = message; - } - else { - this.nextCall.sendMessageWithContext(context, finalMessage); - this.processPendingHalfClose(); - } - }); - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - sendMessage(message) { - this.sendMessageWithContext({}, message); - } - startRead() { - this.nextCall.startRead(); - } - halfClose() { - this.requester.halfClose(() => { - if (this.processingMetadata || this.processingMessage) { - this.pendingHalfClose = true; - } - else { - this.nextCall.halfClose(); - } - }); - } - getAuthContext() { - return this.nextCall.getAuthContext(); - } -} -exports.InterceptingCall = InterceptingCall; -function getCall(channel, path, options) { - var _a, _b; - const deadline = (_a = options.deadline) !== null && _a !== void 0 ? _a : Infinity; - const host = options.host; - const parent = (_b = options.parent) !== null && _b !== void 0 ? _b : null; - const propagateFlags = options.propagate_flags; - const credentials = options.credentials; - const call = channel.createCall(path, deadline, host, parent, propagateFlags); - if (credentials) { - call.setCredentials(credentials); - } - return call; -} -/** - * InterceptingCall implementation that directly owns the underlying Call - * object and handles serialization and deseraizliation. - */ -class BaseInterceptingCall { - constructor(call, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - methodDefinition) { - this.call = call; - this.methodDefinition = methodDefinition; - } - cancelWithStatus(status, details) { - this.call.cancelWithStatus(status, details); - } - getPeer() { - return this.call.getPeer(); - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - sendMessageWithContext(context, message) { - let serialized; - try { - serialized = this.methodDefinition.requestSerialize(message); - } - catch (e) { - this.call.cancelWithStatus(constants_1.Status.INTERNAL, `Request message serialization failure: ${(0, error_1.getErrorMessage)(e)}`); - return; - } - this.call.sendMessageWithContext(context, serialized); - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - sendMessage(message) { - this.sendMessageWithContext({}, message); - } - start(metadata, interceptingListener) { - let readError = null; - this.call.start(metadata, { - onReceiveMetadata: metadata => { - var _a; - (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMetadata) === null || _a === void 0 ? void 0 : _a.call(interceptingListener, metadata); - }, - onReceiveMessage: message => { - var _a; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - let deserialized; - try { - deserialized = this.methodDefinition.responseDeserialize(message); - } - catch (e) { - readError = { - code: constants_1.Status.INTERNAL, - details: `Response message parsing error: ${(0, error_1.getErrorMessage)(e)}`, - metadata: new metadata_1.Metadata(), - }; - this.call.cancelWithStatus(readError.code, readError.details); - return; - } - (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMessage) === null || _a === void 0 ? void 0 : _a.call(interceptingListener, deserialized); - }, - onReceiveStatus: status => { - var _a, _b; - if (readError) { - (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveStatus) === null || _a === void 0 ? void 0 : _a.call(interceptingListener, readError); - } - else { - (_b = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveStatus) === null || _b === void 0 ? void 0 : _b.call(interceptingListener, status); - } - }, - }); - } - startRead() { - this.call.startRead(); - } - halfClose() { - this.call.halfClose(); - } - getAuthContext() { - return this.call.getAuthContext(); - } -} -/** - * BaseInterceptingCall with special-cased behavior for methods with unary - * responses. - */ -class BaseUnaryInterceptingCall extends BaseInterceptingCall { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - constructor(call, methodDefinition) { - super(call, methodDefinition); - } - start(metadata, listener) { - var _a, _b; - let receivedMessage = false; - const wrapperListener = { - onReceiveMetadata: (_b = (_a = listener === null || listener === void 0 ? void 0 : listener.onReceiveMetadata) === null || _a === void 0 ? void 0 : _a.bind(listener)) !== null && _b !== void 0 ? _b : (metadata => { }), - // eslint-disable-next-line @typescript-eslint/no-explicit-any - onReceiveMessage: (message) => { - var _a; - receivedMessage = true; - (_a = listener === null || listener === void 0 ? void 0 : listener.onReceiveMessage) === null || _a === void 0 ? void 0 : _a.call(listener, message); - }, - onReceiveStatus: (status) => { - var _a, _b; - if (!receivedMessage) { - (_a = listener === null || listener === void 0 ? void 0 : listener.onReceiveMessage) === null || _a === void 0 ? void 0 : _a.call(listener, null); - } - (_b = listener === null || listener === void 0 ? void 0 : listener.onReceiveStatus) === null || _b === void 0 ? void 0 : _b.call(listener, status); - }, - }; - super.start(metadata, wrapperListener); - this.call.startRead(); - } -} -/** - * BaseInterceptingCall with special-cased behavior for methods with streaming - * responses. - */ -class BaseStreamingInterceptingCall extends BaseInterceptingCall { -} -function getBottomInterceptingCall(channel, options, -// eslint-disable-next-line @typescript-eslint/no-explicit-any -methodDefinition) { - const call = getCall(channel, methodDefinition.path, options); - if (methodDefinition.responseStream) { - return new BaseStreamingInterceptingCall(call, methodDefinition); - } - else { - return new BaseUnaryInterceptingCall(call, methodDefinition); - } -} -function getInterceptingCall(interceptorArgs, -// eslint-disable-next-line @typescript-eslint/no-explicit-any -methodDefinition, options, channel) { - if (interceptorArgs.clientInterceptors.length > 0 && - interceptorArgs.clientInterceptorProviders.length > 0) { - throw new InterceptorConfigurationError('Both interceptors and interceptor_providers were passed as options ' + - 'to the client constructor. Only one of these is allowed.'); - } - if (interceptorArgs.callInterceptors.length > 0 && - interceptorArgs.callInterceptorProviders.length > 0) { - throw new InterceptorConfigurationError('Both interceptors and interceptor_providers were passed as call ' + - 'options. Only one of these is allowed.'); - } - let interceptors = []; - // Interceptors passed to the call override interceptors passed to the client constructor - if (interceptorArgs.callInterceptors.length > 0 || - interceptorArgs.callInterceptorProviders.length > 0) { - interceptors = [] - .concat(interceptorArgs.callInterceptors, interceptorArgs.callInterceptorProviders.map(provider => provider(methodDefinition))) - .filter(interceptor => interceptor); - // Filter out falsy values when providers return nothing - } - else { - interceptors = [] - .concat(interceptorArgs.clientInterceptors, interceptorArgs.clientInterceptorProviders.map(provider => provider(methodDefinition))) - .filter(interceptor => interceptor); - // Filter out falsy values when providers return nothing - } - const interceptorOptions = Object.assign({}, options, { - method_definition: methodDefinition, - }); - /* For each interceptor in the list, the nextCall function passed to it is - * based on the next interceptor in the list, using a nextCall function - * constructed with the following interceptor in the list, and so on. The - * initialValue, which is effectively at the end of the list, is a nextCall - * function that invokes getBottomInterceptingCall, the result of which - * handles (de)serialization and also gets the underlying call from the - * channel. */ - const getCall = interceptors.reduceRight((nextCall, nextInterceptor) => { - return currentOptions => nextInterceptor(currentOptions, nextCall); - }, (finalOptions) => getBottomInterceptingCall(channel, finalOptions, methodDefinition)); - return getCall(interceptorOptions); -} -//# sourceMappingURL=client-interceptors.js.map - -/***/ }), - -/***/ 54210: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Client = void 0; -const call_1 = __nccwpck_require__(91161); -const channel_1 = __nccwpck_require__(86918); -const connectivity_state_1 = __nccwpck_require__(60778); -const constants_1 = __nccwpck_require__(68288); -const metadata_1 = __nccwpck_require__(36100); -const client_interceptors_1 = __nccwpck_require__(82451); -const CHANNEL_SYMBOL = Symbol(); -const INTERCEPTOR_SYMBOL = Symbol(); -const INTERCEPTOR_PROVIDER_SYMBOL = Symbol(); -const CALL_INVOCATION_TRANSFORMER_SYMBOL = Symbol(); -function isFunction(arg) { - return typeof arg === 'function'; -} -function getErrorStackString(error) { - var _a; - return ((_a = error.stack) === null || _a === void 0 ? void 0 : _a.split('\n').slice(1).join('\n')) || 'no stack trace available'; -} -/** - * A generic gRPC client. Primarily useful as a base class for all generated - * clients. - */ -class Client { - constructor(address, credentials, options = {}) { - var _a, _b; - options = Object.assign({}, options); - this[INTERCEPTOR_SYMBOL] = (_a = options.interceptors) !== null && _a !== void 0 ? _a : []; - delete options.interceptors; - this[INTERCEPTOR_PROVIDER_SYMBOL] = (_b = options.interceptor_providers) !== null && _b !== void 0 ? _b : []; - delete options.interceptor_providers; - if (this[INTERCEPTOR_SYMBOL].length > 0 && - this[INTERCEPTOR_PROVIDER_SYMBOL].length > 0) { - throw new Error('Both interceptors and interceptor_providers were passed as options ' + - 'to the client constructor. Only one of these is allowed.'); - } - this[CALL_INVOCATION_TRANSFORMER_SYMBOL] = - options.callInvocationTransformer; - delete options.callInvocationTransformer; - if (options.channelOverride) { - this[CHANNEL_SYMBOL] = options.channelOverride; - } - else if (options.channelFactoryOverride) { - const channelFactoryOverride = options.channelFactoryOverride; - delete options.channelFactoryOverride; - this[CHANNEL_SYMBOL] = channelFactoryOverride(address, credentials, options); - } - else { - this[CHANNEL_SYMBOL] = new channel_1.ChannelImplementation(address, credentials, options); - } - } - close() { - this[CHANNEL_SYMBOL].close(); - } - getChannel() { - return this[CHANNEL_SYMBOL]; - } - waitForReady(deadline, callback) { - const checkState = (err) => { - if (err) { - callback(new Error('Failed to connect before the deadline')); - return; - } - let newState; - try { - newState = this[CHANNEL_SYMBOL].getConnectivityState(true); - } - catch (e) { - callback(new Error('The channel has been closed')); - return; - } - if (newState === connectivity_state_1.ConnectivityState.READY) { - callback(); - } - else { - try { - this[CHANNEL_SYMBOL].watchConnectivityState(newState, deadline, checkState); - } - catch (e) { - callback(new Error('The channel has been closed')); - } - } - }; - setImmediate(checkState); - } - checkOptionalUnaryResponseArguments(arg1, arg2, arg3) { - if (isFunction(arg1)) { - return { metadata: new metadata_1.Metadata(), options: {}, callback: arg1 }; - } - else if (isFunction(arg2)) { - if (arg1 instanceof metadata_1.Metadata) { - return { metadata: arg1, options: {}, callback: arg2 }; - } - else { - return { metadata: new metadata_1.Metadata(), options: arg1, callback: arg2 }; - } - } - else { - if (!(arg1 instanceof metadata_1.Metadata && - arg2 instanceof Object && - isFunction(arg3))) { - throw new Error('Incorrect arguments passed'); - } - return { metadata: arg1, options: arg2, callback: arg3 }; - } - } - makeUnaryRequest(method, serialize, deserialize, argument, metadata, options, callback) { - var _a, _b; - const checkedArguments = this.checkOptionalUnaryResponseArguments(metadata, options, callback); - const methodDefinition = { - path: method, - requestStream: false, - responseStream: false, - requestSerialize: serialize, - responseDeserialize: deserialize, - }; - let callProperties = { - argument: argument, - metadata: checkedArguments.metadata, - call: new call_1.ClientUnaryCallImpl(), - channel: this[CHANNEL_SYMBOL], - methodDefinition: methodDefinition, - callOptions: checkedArguments.options, - callback: checkedArguments.callback, - }; - if (this[CALL_INVOCATION_TRANSFORMER_SYMBOL]) { - callProperties = this[CALL_INVOCATION_TRANSFORMER_SYMBOL](callProperties); - } - const emitter = callProperties.call; - const interceptorArgs = { - clientInterceptors: this[INTERCEPTOR_SYMBOL], - clientInterceptorProviders: this[INTERCEPTOR_PROVIDER_SYMBOL], - callInterceptors: (_a = callProperties.callOptions.interceptors) !== null && _a !== void 0 ? _a : [], - callInterceptorProviders: (_b = callProperties.callOptions.interceptor_providers) !== null && _b !== void 0 ? _b : [], - }; - const call = (0, client_interceptors_1.getInterceptingCall)(interceptorArgs, callProperties.methodDefinition, callProperties.callOptions, callProperties.channel); - /* This needs to happen before the emitter is used. Unfortunately we can't - * enforce this with the type system. We need to construct this emitter - * before calling the CallInvocationTransformer, and we need to create the - * call after that. */ - emitter.call = call; - let responseMessage = null; - let receivedStatus = false; - let callerStackError = new Error(); - call.start(callProperties.metadata, { - onReceiveMetadata: metadata => { - emitter.emit('metadata', metadata); - }, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - onReceiveMessage(message) { - if (responseMessage !== null) { - call.cancelWithStatus(constants_1.Status.UNIMPLEMENTED, 'Too many responses received'); - } - responseMessage = message; - }, - onReceiveStatus(status) { - if (receivedStatus) { - return; - } - receivedStatus = true; - if (status.code === constants_1.Status.OK) { - if (responseMessage === null) { - const callerStack = getErrorStackString(callerStackError); - callProperties.callback((0, call_1.callErrorFromStatus)({ - code: constants_1.Status.UNIMPLEMENTED, - details: 'No message received', - metadata: status.metadata, - }, callerStack)); - } - else { - callProperties.callback(null, responseMessage); - } - } - else { - const callerStack = getErrorStackString(callerStackError); - callProperties.callback((0, call_1.callErrorFromStatus)(status, callerStack)); - } - /* Avoid retaining the callerStackError object in the call context of - * the status event handler. */ - callerStackError = null; - emitter.emit('status', status); - }, - }); - call.sendMessage(argument); - call.halfClose(); - return emitter; - } - makeClientStreamRequest(method, serialize, deserialize, metadata, options, callback) { - var _a, _b; - const checkedArguments = this.checkOptionalUnaryResponseArguments(metadata, options, callback); - const methodDefinition = { - path: method, - requestStream: true, - responseStream: false, - requestSerialize: serialize, - responseDeserialize: deserialize, - }; - let callProperties = { - metadata: checkedArguments.metadata, - call: new call_1.ClientWritableStreamImpl(serialize), - channel: this[CHANNEL_SYMBOL], - methodDefinition: methodDefinition, - callOptions: checkedArguments.options, - callback: checkedArguments.callback, - }; - if (this[CALL_INVOCATION_TRANSFORMER_SYMBOL]) { - callProperties = this[CALL_INVOCATION_TRANSFORMER_SYMBOL](callProperties); - } - const emitter = callProperties.call; - const interceptorArgs = { - clientInterceptors: this[INTERCEPTOR_SYMBOL], - clientInterceptorProviders: this[INTERCEPTOR_PROVIDER_SYMBOL], - callInterceptors: (_a = callProperties.callOptions.interceptors) !== null && _a !== void 0 ? _a : [], - callInterceptorProviders: (_b = callProperties.callOptions.interceptor_providers) !== null && _b !== void 0 ? _b : [], - }; - const call = (0, client_interceptors_1.getInterceptingCall)(interceptorArgs, callProperties.methodDefinition, callProperties.callOptions, callProperties.channel); - /* This needs to happen before the emitter is used. Unfortunately we can't - * enforce this with the type system. We need to construct this emitter - * before calling the CallInvocationTransformer, and we need to create the - * call after that. */ - emitter.call = call; - let responseMessage = null; - let receivedStatus = false; - let callerStackError = new Error(); - call.start(callProperties.metadata, { - onReceiveMetadata: metadata => { - emitter.emit('metadata', metadata); - }, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - onReceiveMessage(message) { - if (responseMessage !== null) { - call.cancelWithStatus(constants_1.Status.UNIMPLEMENTED, 'Too many responses received'); - } - responseMessage = message; - call.startRead(); - }, - onReceiveStatus(status) { - if (receivedStatus) { - return; - } - receivedStatus = true; - if (status.code === constants_1.Status.OK) { - if (responseMessage === null) { - const callerStack = getErrorStackString(callerStackError); - callProperties.callback((0, call_1.callErrorFromStatus)({ - code: constants_1.Status.UNIMPLEMENTED, - details: 'No message received', - metadata: status.metadata, - }, callerStack)); - } - else { - callProperties.callback(null, responseMessage); - } - } - else { - const callerStack = getErrorStackString(callerStackError); - callProperties.callback((0, call_1.callErrorFromStatus)(status, callerStack)); - } - /* Avoid retaining the callerStackError object in the call context of - * the status event handler. */ - callerStackError = null; - emitter.emit('status', status); - }, - }); - return emitter; - } - checkMetadataAndOptions(arg1, arg2) { - let metadata; - let options; - if (arg1 instanceof metadata_1.Metadata) { - metadata = arg1; - if (arg2) { - options = arg2; - } - else { - options = {}; - } - } - else { - if (arg1) { - options = arg1; - } - else { - options = {}; - } - metadata = new metadata_1.Metadata(); - } - return { metadata, options }; - } - makeServerStreamRequest(method, serialize, deserialize, argument, metadata, options) { - var _a, _b; - const checkedArguments = this.checkMetadataAndOptions(metadata, options); - const methodDefinition = { - path: method, - requestStream: false, - responseStream: true, - requestSerialize: serialize, - responseDeserialize: deserialize, - }; - let callProperties = { - argument: argument, - metadata: checkedArguments.metadata, - call: new call_1.ClientReadableStreamImpl(deserialize), - channel: this[CHANNEL_SYMBOL], - methodDefinition: methodDefinition, - callOptions: checkedArguments.options, - }; - if (this[CALL_INVOCATION_TRANSFORMER_SYMBOL]) { - callProperties = this[CALL_INVOCATION_TRANSFORMER_SYMBOL](callProperties); - } - const stream = callProperties.call; - const interceptorArgs = { - clientInterceptors: this[INTERCEPTOR_SYMBOL], - clientInterceptorProviders: this[INTERCEPTOR_PROVIDER_SYMBOL], - callInterceptors: (_a = callProperties.callOptions.interceptors) !== null && _a !== void 0 ? _a : [], - callInterceptorProviders: (_b = callProperties.callOptions.interceptor_providers) !== null && _b !== void 0 ? _b : [], - }; - const call = (0, client_interceptors_1.getInterceptingCall)(interceptorArgs, callProperties.methodDefinition, callProperties.callOptions, callProperties.channel); - /* This needs to happen before the emitter is used. Unfortunately we can't - * enforce this with the type system. We need to construct this emitter - * before calling the CallInvocationTransformer, and we need to create the - * call after that. */ - stream.call = call; - let receivedStatus = false; - let callerStackError = new Error(); - call.start(callProperties.metadata, { - onReceiveMetadata(metadata) { - stream.emit('metadata', metadata); - }, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - onReceiveMessage(message) { - stream.push(message); - }, - onReceiveStatus(status) { - if (receivedStatus) { - return; - } - receivedStatus = true; - stream.push(null); - if (status.code !== constants_1.Status.OK) { - const callerStack = getErrorStackString(callerStackError); - stream.emit('error', (0, call_1.callErrorFromStatus)(status, callerStack)); - } - /* Avoid retaining the callerStackError object in the call context of - * the status event handler. */ - callerStackError = null; - stream.emit('status', status); - }, - }); - call.sendMessage(argument); - call.halfClose(); - return stream; - } - makeBidiStreamRequest(method, serialize, deserialize, metadata, options) { - var _a, _b; - const checkedArguments = this.checkMetadataAndOptions(metadata, options); - const methodDefinition = { - path: method, - requestStream: true, - responseStream: true, - requestSerialize: serialize, - responseDeserialize: deserialize, - }; - let callProperties = { - metadata: checkedArguments.metadata, - call: new call_1.ClientDuplexStreamImpl(serialize, deserialize), - channel: this[CHANNEL_SYMBOL], - methodDefinition: methodDefinition, - callOptions: checkedArguments.options, - }; - if (this[CALL_INVOCATION_TRANSFORMER_SYMBOL]) { - callProperties = this[CALL_INVOCATION_TRANSFORMER_SYMBOL](callProperties); - } - const stream = callProperties.call; - const interceptorArgs = { - clientInterceptors: this[INTERCEPTOR_SYMBOL], - clientInterceptorProviders: this[INTERCEPTOR_PROVIDER_SYMBOL], - callInterceptors: (_a = callProperties.callOptions.interceptors) !== null && _a !== void 0 ? _a : [], - callInterceptorProviders: (_b = callProperties.callOptions.interceptor_providers) !== null && _b !== void 0 ? _b : [], - }; - const call = (0, client_interceptors_1.getInterceptingCall)(interceptorArgs, callProperties.methodDefinition, callProperties.callOptions, callProperties.channel); - /* This needs to happen before the emitter is used. Unfortunately we can't - * enforce this with the type system. We need to construct this emitter - * before calling the CallInvocationTransformer, and we need to create the - * call after that. */ - stream.call = call; - let receivedStatus = false; - let callerStackError = new Error(); - call.start(callProperties.metadata, { - onReceiveMetadata(metadata) { - stream.emit('metadata', metadata); - }, - onReceiveMessage(message) { - stream.push(message); - }, - onReceiveStatus(status) { - if (receivedStatus) { - return; - } - receivedStatus = true; - stream.push(null); - if (status.code !== constants_1.Status.OK) { - const callerStack = getErrorStackString(callerStackError); - stream.emit('error', (0, call_1.callErrorFromStatus)(status, callerStack)); - } - /* Avoid retaining the callerStackError object in the call context of - * the status event handler. */ - callerStackError = null; - stream.emit('status', status); - }, - }); - return stream; - } -} -exports.Client = Client; -//# sourceMappingURL=client.js.map - -/***/ }), - -/***/ 24130: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2021 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CompressionAlgorithms = void 0; -var CompressionAlgorithms; -(function (CompressionAlgorithms) { - CompressionAlgorithms[CompressionAlgorithms["identity"] = 0] = "identity"; - CompressionAlgorithms[CompressionAlgorithms["deflate"] = 1] = "deflate"; - CompressionAlgorithms[CompressionAlgorithms["gzip"] = 2] = "gzip"; -})(CompressionAlgorithms || (exports.CompressionAlgorithms = CompressionAlgorithms = {})); -//# sourceMappingURL=compression-algorithms.js.map - -/***/ }), - -/***/ 43430: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CompressionFilterFactory = exports.CompressionFilter = void 0; -const zlib = __nccwpck_require__(43106); -const compression_algorithms_1 = __nccwpck_require__(24130); -const constants_1 = __nccwpck_require__(68288); -const filter_1 = __nccwpck_require__(81467); -const logging = __nccwpck_require__(8536); -const isCompressionAlgorithmKey = (key) => { - return (typeof key === 'number' && typeof compression_algorithms_1.CompressionAlgorithms[key] === 'string'); -}; -class CompressionHandler { - /** - * @param message Raw uncompressed message bytes - * @param compress Indicates whether the message should be compressed - * @return Framed message, compressed if applicable - */ - async writeMessage(message, compress) { - let messageBuffer = message; - if (compress) { - messageBuffer = await this.compressMessage(messageBuffer); - } - const output = Buffer.allocUnsafe(messageBuffer.length + 5); - output.writeUInt8(compress ? 1 : 0, 0); - output.writeUInt32BE(messageBuffer.length, 1); - messageBuffer.copy(output, 5); - return output; - } - /** - * @param data Framed message, possibly compressed - * @return Uncompressed message - */ - async readMessage(data) { - const compressed = data.readUInt8(0) === 1; - let messageBuffer = data.slice(5); - if (compressed) { - messageBuffer = await this.decompressMessage(messageBuffer); - } - return messageBuffer; - } -} -class IdentityHandler extends CompressionHandler { - async compressMessage(message) { - return message; - } - async writeMessage(message, compress) { - const output = Buffer.allocUnsafe(message.length + 5); - /* With "identity" compression, messages should always be marked as - * uncompressed */ - output.writeUInt8(0, 0); - output.writeUInt32BE(message.length, 1); - message.copy(output, 5); - return output; - } - decompressMessage(message) { - return Promise.reject(new Error('Received compressed message but "grpc-encoding" header was identity')); - } -} -class DeflateHandler extends CompressionHandler { - constructor(maxRecvMessageLength) { - super(); - this.maxRecvMessageLength = maxRecvMessageLength; - } - compressMessage(message) { - return new Promise((resolve, reject) => { - zlib.deflate(message, (err, output) => { - if (err) { - reject(err); - } - else { - resolve(output); - } - }); - }); - } - decompressMessage(message) { - return new Promise((resolve, reject) => { - let totalLength = 0; - const messageParts = []; - const decompresser = zlib.createInflate(); - decompresser.on('data', (chunk) => { - messageParts.push(chunk); - totalLength += chunk.byteLength; - if (this.maxRecvMessageLength !== -1 && totalLength > this.maxRecvMessageLength) { - decompresser.destroy(); - reject({ - code: constants_1.Status.RESOURCE_EXHAUSTED, - details: `Received message that decompresses to a size larger than ${this.maxRecvMessageLength}` - }); - } - }); - decompresser.on('end', () => { - resolve(Buffer.concat(messageParts)); - }); - decompresser.write(message); - decompresser.end(); - }); - } -} -class GzipHandler extends CompressionHandler { - constructor(maxRecvMessageLength) { - super(); - this.maxRecvMessageLength = maxRecvMessageLength; - } - compressMessage(message) { - return new Promise((resolve, reject) => { - zlib.gzip(message, (err, output) => { - if (err) { - reject(err); - } - else { - resolve(output); - } - }); - }); - } - decompressMessage(message) { - return new Promise((resolve, reject) => { - let totalLength = 0; - const messageParts = []; - const decompresser = zlib.createGunzip(); - decompresser.on('data', (chunk) => { - messageParts.push(chunk); - totalLength += chunk.byteLength; - if (this.maxRecvMessageLength !== -1 && totalLength > this.maxRecvMessageLength) { - decompresser.destroy(); - reject({ - code: constants_1.Status.RESOURCE_EXHAUSTED, - details: `Received message that decompresses to a size larger than ${this.maxRecvMessageLength}` - }); - } - }); - decompresser.on('end', () => { - resolve(Buffer.concat(messageParts)); - }); - decompresser.write(message); - decompresser.end(); - }); - } -} -class UnknownHandler extends CompressionHandler { - constructor(compressionName) { - super(); - this.compressionName = compressionName; - } - compressMessage(message) { - return Promise.reject(new Error(`Received message compressed with unsupported compression method ${this.compressionName}`)); - } - decompressMessage(message) { - // This should be unreachable - return Promise.reject(new Error(`Compression method not supported: ${this.compressionName}`)); - } -} -function getCompressionHandler(compressionName, maxReceiveMessageSize) { - switch (compressionName) { - case 'identity': - return new IdentityHandler(); - case 'deflate': - return new DeflateHandler(maxReceiveMessageSize); - case 'gzip': - return new GzipHandler(maxReceiveMessageSize); - default: - return new UnknownHandler(compressionName); - } -} -class CompressionFilter extends filter_1.BaseFilter { - constructor(channelOptions, sharedFilterConfig) { - var _a, _b, _c; - super(); - this.sharedFilterConfig = sharedFilterConfig; - this.sendCompression = new IdentityHandler(); - this.receiveCompression = new IdentityHandler(); - this.currentCompressionAlgorithm = 'identity'; - const compressionAlgorithmKey = channelOptions['grpc.default_compression_algorithm']; - this.maxReceiveMessageLength = (_a = channelOptions['grpc.max_receive_message_length']) !== null && _a !== void 0 ? _a : constants_1.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH; - this.maxSendMessageLength = (_b = channelOptions['grpc.max_send_message_length']) !== null && _b !== void 0 ? _b : constants_1.DEFAULT_MAX_SEND_MESSAGE_LENGTH; - if (compressionAlgorithmKey !== undefined) { - if (isCompressionAlgorithmKey(compressionAlgorithmKey)) { - const clientSelectedEncoding = compression_algorithms_1.CompressionAlgorithms[compressionAlgorithmKey]; - const serverSupportedEncodings = (_c = sharedFilterConfig.serverSupportedEncodingHeader) === null || _c === void 0 ? void 0 : _c.split(','); - /** - * There are two possible situations here: - * 1) We don't have any info yet from the server about what compression it supports - * In that case we should just use what the client tells us to use - * 2) We've previously received a response from the server including a grpc-accept-encoding header - * In that case we only want to use the encoding chosen by the client if the server supports it - */ - if (!serverSupportedEncodings || - serverSupportedEncodings.includes(clientSelectedEncoding)) { - this.currentCompressionAlgorithm = clientSelectedEncoding; - this.sendCompression = getCompressionHandler(this.currentCompressionAlgorithm, -1); - } - } - else { - logging.log(constants_1.LogVerbosity.ERROR, `Invalid value provided for grpc.default_compression_algorithm option: ${compressionAlgorithmKey}`); - } - } - } - async sendMetadata(metadata) { - const headers = await metadata; - headers.set('grpc-accept-encoding', 'identity,deflate,gzip'); - headers.set('accept-encoding', 'identity'); - // No need to send the header if it's "identity" - behavior is identical; save the bandwidth - if (this.currentCompressionAlgorithm === 'identity') { - headers.remove('grpc-encoding'); - } - else { - headers.set('grpc-encoding', this.currentCompressionAlgorithm); - } - return headers; - } - receiveMetadata(metadata) { - const receiveEncoding = metadata.get('grpc-encoding'); - if (receiveEncoding.length > 0) { - const encoding = receiveEncoding[0]; - if (typeof encoding === 'string') { - this.receiveCompression = getCompressionHandler(encoding, this.maxReceiveMessageLength); - } - } - metadata.remove('grpc-encoding'); - /* Check to see if the compression we're using to send messages is supported by the server - * If not, reset the sendCompression filter and have it use the default IdentityHandler */ - const serverSupportedEncodingsHeader = metadata.get('grpc-accept-encoding')[0]; - if (serverSupportedEncodingsHeader) { - this.sharedFilterConfig.serverSupportedEncodingHeader = - serverSupportedEncodingsHeader; - const serverSupportedEncodings = serverSupportedEncodingsHeader.split(','); - if (!serverSupportedEncodings.includes(this.currentCompressionAlgorithm)) { - this.sendCompression = new IdentityHandler(); - this.currentCompressionAlgorithm = 'identity'; - } - } - metadata.remove('grpc-accept-encoding'); - return metadata; - } - async sendMessage(message) { - var _a; - /* This filter is special. The input message is the bare message bytes, - * and the output is a framed and possibly compressed message. For this - * reason, this filter should be at the bottom of the filter stack */ - const resolvedMessage = await message; - if (this.maxSendMessageLength !== -1 && resolvedMessage.message.length > this.maxSendMessageLength) { - throw { - code: constants_1.Status.RESOURCE_EXHAUSTED, - details: `Attempted to send message with a size larger than ${this.maxSendMessageLength}` - }; - } - let compress; - if (this.sendCompression instanceof IdentityHandler) { - compress = false; - } - else { - compress = (((_a = resolvedMessage.flags) !== null && _a !== void 0 ? _a : 0) & 2 /* WriteFlags.NoCompress */) === 0; - } - return { - message: await this.sendCompression.writeMessage(resolvedMessage.message, compress), - flags: resolvedMessage.flags, - }; - } - async receiveMessage(message) { - /* This filter is also special. The input message is framed and possibly - * compressed, and the output message is deframed and uncompressed. So - * this is another reason that this filter should be at the bottom of the - * filter stack. */ - return this.receiveCompression.readMessage(await message); - } -} -exports.CompressionFilter = CompressionFilter; -class CompressionFilterFactory { - constructor(channel, options) { - this.options = options; - this.sharedFilterConfig = {}; - } - createFilter() { - return new CompressionFilter(this.options, this.sharedFilterConfig); - } -} -exports.CompressionFilterFactory = CompressionFilterFactory; -//# sourceMappingURL=compression-filter.js.map - -/***/ }), - -/***/ 60778: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2021 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ConnectivityState = void 0; -var ConnectivityState; -(function (ConnectivityState) { - ConnectivityState[ConnectivityState["IDLE"] = 0] = "IDLE"; - ConnectivityState[ConnectivityState["CONNECTING"] = 1] = "CONNECTING"; - ConnectivityState[ConnectivityState["READY"] = 2] = "READY"; - ConnectivityState[ConnectivityState["TRANSIENT_FAILURE"] = 3] = "TRANSIENT_FAILURE"; - ConnectivityState[ConnectivityState["SHUTDOWN"] = 4] = "SHUTDOWN"; -})(ConnectivityState || (exports.ConnectivityState = ConnectivityState = {})); -//# sourceMappingURL=connectivity-state.js.map - -/***/ }), - -/***/ 68288: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH = exports.DEFAULT_MAX_SEND_MESSAGE_LENGTH = exports.Propagate = exports.LogVerbosity = exports.Status = void 0; -var Status; -(function (Status) { - Status[Status["OK"] = 0] = "OK"; - Status[Status["CANCELLED"] = 1] = "CANCELLED"; - Status[Status["UNKNOWN"] = 2] = "UNKNOWN"; - Status[Status["INVALID_ARGUMENT"] = 3] = "INVALID_ARGUMENT"; - Status[Status["DEADLINE_EXCEEDED"] = 4] = "DEADLINE_EXCEEDED"; - Status[Status["NOT_FOUND"] = 5] = "NOT_FOUND"; - Status[Status["ALREADY_EXISTS"] = 6] = "ALREADY_EXISTS"; - Status[Status["PERMISSION_DENIED"] = 7] = "PERMISSION_DENIED"; - Status[Status["RESOURCE_EXHAUSTED"] = 8] = "RESOURCE_EXHAUSTED"; - Status[Status["FAILED_PRECONDITION"] = 9] = "FAILED_PRECONDITION"; - Status[Status["ABORTED"] = 10] = "ABORTED"; - Status[Status["OUT_OF_RANGE"] = 11] = "OUT_OF_RANGE"; - Status[Status["UNIMPLEMENTED"] = 12] = "UNIMPLEMENTED"; - Status[Status["INTERNAL"] = 13] = "INTERNAL"; - Status[Status["UNAVAILABLE"] = 14] = "UNAVAILABLE"; - Status[Status["DATA_LOSS"] = 15] = "DATA_LOSS"; - Status[Status["UNAUTHENTICATED"] = 16] = "UNAUTHENTICATED"; -})(Status || (exports.Status = Status = {})); -var LogVerbosity; -(function (LogVerbosity) { - LogVerbosity[LogVerbosity["DEBUG"] = 0] = "DEBUG"; - LogVerbosity[LogVerbosity["INFO"] = 1] = "INFO"; - LogVerbosity[LogVerbosity["ERROR"] = 2] = "ERROR"; - LogVerbosity[LogVerbosity["NONE"] = 3] = "NONE"; -})(LogVerbosity || (exports.LogVerbosity = LogVerbosity = {})); -/** - * NOTE: This enum is not currently used in any implemented API in this - * library. It is included only for type parity with the other implementation. - */ -var Propagate; -(function (Propagate) { - Propagate[Propagate["DEADLINE"] = 1] = "DEADLINE"; - Propagate[Propagate["CENSUS_STATS_CONTEXT"] = 2] = "CENSUS_STATS_CONTEXT"; - Propagate[Propagate["CENSUS_TRACING_CONTEXT"] = 4] = "CENSUS_TRACING_CONTEXT"; - Propagate[Propagate["CANCELLATION"] = 8] = "CANCELLATION"; - // https://github.com/grpc/grpc/blob/master/include/grpc/impl/codegen/propagation_bits.h#L43 - Propagate[Propagate["DEFAULTS"] = 65535] = "DEFAULTS"; -})(Propagate || (exports.Propagate = Propagate = {})); -// -1 means unlimited -exports.DEFAULT_MAX_SEND_MESSAGE_LENGTH = -1; -// 4 MB default -exports.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH = 4 * 1024 * 1024; -//# sourceMappingURL=constants.js.map - -/***/ }), - -/***/ 39962: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.restrictControlPlaneStatusCode = restrictControlPlaneStatusCode; -const constants_1 = __nccwpck_require__(68288); -const INAPPROPRIATE_CONTROL_PLANE_CODES = [ - constants_1.Status.OK, - constants_1.Status.INVALID_ARGUMENT, - constants_1.Status.NOT_FOUND, - constants_1.Status.ALREADY_EXISTS, - constants_1.Status.FAILED_PRECONDITION, - constants_1.Status.ABORTED, - constants_1.Status.OUT_OF_RANGE, - constants_1.Status.DATA_LOSS, -]; -function restrictControlPlaneStatusCode(code, details) { - if (INAPPROPRIATE_CONTROL_PLANE_CODES.includes(code)) { - return { - code: constants_1.Status.INTERNAL, - details: `Invalid status from control plane: ${code} ${constants_1.Status[code]} ${details}`, - }; - } - else { - return { code, details }; - } -} -//# sourceMappingURL=control-plane-status.js.map - -/***/ }), - -/***/ 52173: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.minDeadline = minDeadline; -exports.getDeadlineTimeoutString = getDeadlineTimeoutString; -exports.getRelativeTimeout = getRelativeTimeout; -exports.deadlineToString = deadlineToString; -exports.formatDateDifference = formatDateDifference; -function minDeadline(...deadlineList) { - let minValue = Infinity; - for (const deadline of deadlineList) { - const deadlineMsecs = deadline instanceof Date ? deadline.getTime() : deadline; - if (deadlineMsecs < minValue) { - minValue = deadlineMsecs; - } - } - return minValue; -} -const units = [ - ['m', 1], - ['S', 1000], - ['M', 60 * 1000], - ['H', 60 * 60 * 1000], -]; -function getDeadlineTimeoutString(deadline) { - const now = new Date().getTime(); - if (deadline instanceof Date) { - deadline = deadline.getTime(); - } - const timeoutMs = Math.max(deadline - now, 0); - for (const [unit, factor] of units) { - const amount = timeoutMs / factor; - if (amount < 1e8) { - return String(Math.ceil(amount)) + unit; - } - } - throw new Error('Deadline is too far in the future'); -} -/** - * See https://nodejs.org/api/timers.html#settimeoutcallback-delay-args - * In particular, "When delay is larger than 2147483647 or less than 1, the - * delay will be set to 1. Non-integer delays are truncated to an integer." - * This number of milliseconds is almost 25 days. - */ -const MAX_TIMEOUT_TIME = 2147483647; -/** - * Get the timeout value that should be passed to setTimeout now for the timer - * to end at the deadline. For any deadline before now, the timer should end - * immediately, represented by a value of 0. For any deadline more than - * MAX_TIMEOUT_TIME milliseconds in the future, a timer cannot be set that will - * end at that time, so it is treated as infinitely far in the future. - * @param deadline - * @returns - */ -function getRelativeTimeout(deadline) { - const deadlineMs = deadline instanceof Date ? deadline.getTime() : deadline; - const now = new Date().getTime(); - const timeout = deadlineMs - now; - if (timeout < 0) { - return 0; - } - else if (timeout > MAX_TIMEOUT_TIME) { - return Infinity; - } - else { - return timeout; - } -} -function deadlineToString(deadline) { - if (deadline instanceof Date) { - return deadline.toISOString(); - } - else { - const dateDeadline = new Date(deadline); - if (Number.isNaN(dateDeadline.getTime())) { - return '' + deadline; - } - else { - return dateDeadline.toISOString(); - } - } -} -/** - * Calculate the difference between two dates as a number of seconds and format - * it as a string. - * @param startDate - * @param endDate - * @returns - */ -function formatDateDifference(startDate, endDate) { - return ((endDate.getTime() - startDate.getTime()) / 1000).toFixed(3) + 's'; -} -//# sourceMappingURL=deadline.js.map - -/***/ }), - -/***/ 63929: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.durationMessageToDuration = durationMessageToDuration; -exports.msToDuration = msToDuration; -exports.durationToMs = durationToMs; -exports.isDuration = isDuration; -exports.isDurationMessage = isDurationMessage; -exports.parseDuration = parseDuration; -exports.durationToString = durationToString; -function durationMessageToDuration(message) { - return { - seconds: Number.parseInt(message.seconds), - nanos: message.nanos - }; -} -function msToDuration(millis) { - return { - seconds: (millis / 1000) | 0, - nanos: ((millis % 1000) * 1000000) | 0, - }; -} -function durationToMs(duration) { - return (duration.seconds * 1000 + duration.nanos / 1000000) | 0; -} -function isDuration(value) { - return typeof value.seconds === 'number' && typeof value.nanos === 'number'; -} -function isDurationMessage(value) { - return typeof value.seconds === 'string' && typeof value.nanos === 'number'; -} -const durationRegex = /^(\d+)(?:\.(\d+))?s$/; -function parseDuration(value) { - const match = value.match(durationRegex); - if (!match) { - return null; - } - return { - seconds: Number.parseInt(match[1], 10), - nanos: match[2] ? Number.parseInt(match[2].padEnd(9, '0'), 10) : 0 - }; -} -function durationToString(duration) { - if (duration.nanos === 0) { - return `${duration.seconds}s`; - } - let scaleFactor; - if (duration.nanos % 1000000 === 0) { - scaleFactor = 1000000; - } - else if (duration.nanos % 1000 === 0) { - scaleFactor = 1000; - } - else { - scaleFactor = 1; - } - return `${duration.seconds}.${duration.nanos / scaleFactor}s`; -} -//# sourceMappingURL=duration.js.map - -/***/ }), - -/***/ 16964: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2024 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -var _a; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GRPC_NODE_USE_ALTERNATIVE_RESOLVER = void 0; -exports.GRPC_NODE_USE_ALTERNATIVE_RESOLVER = ((_a = process.env.GRPC_NODE_USE_ALTERNATIVE_RESOLVER) !== null && _a !== void 0 ? _a : 'false') === 'true'; -//# sourceMappingURL=environment.js.map - -/***/ }), - -/***/ 98219: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getErrorMessage = getErrorMessage; -exports.getErrorCode = getErrorCode; -function getErrorMessage(error) { - if (error instanceof Error) { - return error.message; - } - else { - return String(error); - } -} -function getErrorCode(error) { - if (typeof error === 'object' && - error !== null && - 'code' in error && - typeof error.code === 'number') { - return error.code; - } - else { - return null; - } -} -//# sourceMappingURL=error.js.map - -/***/ }), - -/***/ 20079: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX = exports.createCertificateProviderChannelCredentials = exports.FileWatcherCertificateProvider = exports.createCertificateProviderServerCredentials = exports.createServerCredentialsWithInterceptors = exports.BaseSubchannelWrapper = exports.registerAdminService = exports.FilterStackFactory = exports.BaseFilter = exports.statusOrFromError = exports.statusOrFromValue = exports.PickResultType = exports.QueuePicker = exports.UnavailablePicker = exports.ChildLoadBalancerHandler = exports.EndpointMap = exports.endpointHasAddress = exports.endpointToString = exports.subchannelAddressToString = exports.LeafLoadBalancer = exports.isLoadBalancerNameRegistered = exports.parseLoadBalancingConfig = exports.selectLbConfigFromList = exports.registerLoadBalancerType = exports.createChildChannelControlHelper = exports.BackoffTimeout = exports.parseDuration = exports.durationToMs = exports.splitHostPort = exports.uriToString = exports.CHANNEL_ARGS_CONFIG_SELECTOR_KEY = exports.createResolver = exports.registerResolver = exports.log = exports.trace = void 0; -var logging_1 = __nccwpck_require__(8536); -Object.defineProperty(exports, "trace", ({ enumerable: true, get: function () { return logging_1.trace; } })); -Object.defineProperty(exports, "log", ({ enumerable: true, get: function () { return logging_1.log; } })); -var resolver_1 = __nccwpck_require__(76255); -Object.defineProperty(exports, "registerResolver", ({ enumerable: true, get: function () { return resolver_1.registerResolver; } })); -Object.defineProperty(exports, "createResolver", ({ enumerable: true, get: function () { return resolver_1.createResolver; } })); -Object.defineProperty(exports, "CHANNEL_ARGS_CONFIG_SELECTOR_KEY", ({ enumerable: true, get: function () { return resolver_1.CHANNEL_ARGS_CONFIG_SELECTOR_KEY; } })); -var uri_parser_1 = __nccwpck_require__(56027); -Object.defineProperty(exports, "uriToString", ({ enumerable: true, get: function () { return uri_parser_1.uriToString; } })); -Object.defineProperty(exports, "splitHostPort", ({ enumerable: true, get: function () { return uri_parser_1.splitHostPort; } })); -var duration_1 = __nccwpck_require__(63929); -Object.defineProperty(exports, "durationToMs", ({ enumerable: true, get: function () { return duration_1.durationToMs; } })); -Object.defineProperty(exports, "parseDuration", ({ enumerable: true, get: function () { return duration_1.parseDuration; } })); -var backoff_timeout_1 = __nccwpck_require__(14643); -Object.defineProperty(exports, "BackoffTimeout", ({ enumerable: true, get: function () { return backoff_timeout_1.BackoffTimeout; } })); -var load_balancer_1 = __nccwpck_require__(7000); -Object.defineProperty(exports, "createChildChannelControlHelper", ({ enumerable: true, get: function () { return load_balancer_1.createChildChannelControlHelper; } })); -Object.defineProperty(exports, "registerLoadBalancerType", ({ enumerable: true, get: function () { return load_balancer_1.registerLoadBalancerType; } })); -Object.defineProperty(exports, "selectLbConfigFromList", ({ enumerable: true, get: function () { return load_balancer_1.selectLbConfigFromList; } })); -Object.defineProperty(exports, "parseLoadBalancingConfig", ({ enumerable: true, get: function () { return load_balancer_1.parseLoadBalancingConfig; } })); -Object.defineProperty(exports, "isLoadBalancerNameRegistered", ({ enumerable: true, get: function () { return load_balancer_1.isLoadBalancerNameRegistered; } })); -var load_balancer_pick_first_1 = __nccwpck_require__(78639); -Object.defineProperty(exports, "LeafLoadBalancer", ({ enumerable: true, get: function () { return load_balancer_pick_first_1.LeafLoadBalancer; } })); -var subchannel_address_1 = __nccwpck_require__(97021); -Object.defineProperty(exports, "subchannelAddressToString", ({ enumerable: true, get: function () { return subchannel_address_1.subchannelAddressToString; } })); -Object.defineProperty(exports, "endpointToString", ({ enumerable: true, get: function () { return subchannel_address_1.endpointToString; } })); -Object.defineProperty(exports, "endpointHasAddress", ({ enumerable: true, get: function () { return subchannel_address_1.endpointHasAddress; } })); -Object.defineProperty(exports, "EndpointMap", ({ enumerable: true, get: function () { return subchannel_address_1.EndpointMap; } })); -var load_balancer_child_handler_1 = __nccwpck_require__(99069); -Object.defineProperty(exports, "ChildLoadBalancerHandler", ({ enumerable: true, get: function () { return load_balancer_child_handler_1.ChildLoadBalancerHandler; } })); -var picker_1 = __nccwpck_require__(71663); -Object.defineProperty(exports, "UnavailablePicker", ({ enumerable: true, get: function () { return picker_1.UnavailablePicker; } })); -Object.defineProperty(exports, "QueuePicker", ({ enumerable: true, get: function () { return picker_1.QueuePicker; } })); -Object.defineProperty(exports, "PickResultType", ({ enumerable: true, get: function () { return picker_1.PickResultType; } })); -var call_interface_1 = __nccwpck_require__(61803); -Object.defineProperty(exports, "statusOrFromValue", ({ enumerable: true, get: function () { return call_interface_1.statusOrFromValue; } })); -Object.defineProperty(exports, "statusOrFromError", ({ enumerable: true, get: function () { return call_interface_1.statusOrFromError; } })); -var filter_1 = __nccwpck_require__(81467); -Object.defineProperty(exports, "BaseFilter", ({ enumerable: true, get: function () { return filter_1.BaseFilter; } })); -var filter_stack_1 = __nccwpck_require__(95726); -Object.defineProperty(exports, "FilterStackFactory", ({ enumerable: true, get: function () { return filter_stack_1.FilterStackFactory; } })); -var admin_1 = __nccwpck_require__(52914); -Object.defineProperty(exports, "registerAdminService", ({ enumerable: true, get: function () { return admin_1.registerAdminService; } })); -var subchannel_interface_1 = __nccwpck_require__(70098); -Object.defineProperty(exports, "BaseSubchannelWrapper", ({ enumerable: true, get: function () { return subchannel_interface_1.BaseSubchannelWrapper; } })); -var server_credentials_1 = __nccwpck_require__(36545); -Object.defineProperty(exports, "createServerCredentialsWithInterceptors", ({ enumerable: true, get: function () { return server_credentials_1.createServerCredentialsWithInterceptors; } })); -Object.defineProperty(exports, "createCertificateProviderServerCredentials", ({ enumerable: true, get: function () { return server_credentials_1.createCertificateProviderServerCredentials; } })); -var certificate_provider_1 = __nccwpck_require__(27974); -Object.defineProperty(exports, "FileWatcherCertificateProvider", ({ enumerable: true, get: function () { return certificate_provider_1.FileWatcherCertificateProvider; } })); -var channel_credentials_1 = __nccwpck_require__(32257); -Object.defineProperty(exports, "createCertificateProviderChannelCredentials", ({ enumerable: true, get: function () { return channel_credentials_1.createCertificateProviderChannelCredentials; } })); -var internal_channel_1 = __nccwpck_require__(40114); -Object.defineProperty(exports, "SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX", ({ enumerable: true, get: function () { return internal_channel_1.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX; } })); -//# sourceMappingURL=experimental.js.map - -/***/ }), - -/***/ 95726: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.FilterStackFactory = exports.FilterStack = void 0; -class FilterStack { - constructor(filters) { - this.filters = filters; - } - sendMetadata(metadata) { - let result = metadata; - for (let i = 0; i < this.filters.length; i++) { - result = this.filters[i].sendMetadata(result); - } - return result; - } - receiveMetadata(metadata) { - let result = metadata; - for (let i = this.filters.length - 1; i >= 0; i--) { - result = this.filters[i].receiveMetadata(result); - } - return result; - } - sendMessage(message) { - let result = message; - for (let i = 0; i < this.filters.length; i++) { - result = this.filters[i].sendMessage(result); - } - return result; - } - receiveMessage(message) { - let result = message; - for (let i = this.filters.length - 1; i >= 0; i--) { - result = this.filters[i].receiveMessage(result); - } - return result; - } - receiveTrailers(status) { - let result = status; - for (let i = this.filters.length - 1; i >= 0; i--) { - result = this.filters[i].receiveTrailers(result); - } - return result; - } - push(filters) { - this.filters.unshift(...filters); - } - getFilters() { - return this.filters; - } -} -exports.FilterStack = FilterStack; -class FilterStackFactory { - constructor(factories) { - this.factories = factories; - } - push(filterFactories) { - this.factories.unshift(...filterFactories); - } - clone() { - return new FilterStackFactory([...this.factories]); - } - createFilter() { - return new FilterStack(this.factories.map(factory => factory.createFilter())); - } -} -exports.FilterStackFactory = FilterStackFactory; -//# sourceMappingURL=filter-stack.js.map - -/***/ }), - -/***/ 81467: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BaseFilter = void 0; -class BaseFilter { - async sendMetadata(metadata) { - return metadata; - } - receiveMetadata(metadata) { - return metadata; - } - async sendMessage(message) { - return message; - } - async receiveMessage(message) { - return message; - } - receiveTrailers(status) { - return status; - } -} -exports.BaseFilter = BaseFilter; -//# sourceMappingURL=filter.js.map - -/***/ }), - -/***/ 18954: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.parseCIDR = parseCIDR; -exports.mapProxyName = mapProxyName; -exports.getProxiedConnection = getProxiedConnection; -const logging_1 = __nccwpck_require__(8536); -const constants_1 = __nccwpck_require__(68288); -const net_1 = __nccwpck_require__(69278); -const http = __nccwpck_require__(58611); -const logging = __nccwpck_require__(8536); -const subchannel_address_1 = __nccwpck_require__(97021); -const uri_parser_1 = __nccwpck_require__(56027); -const url_1 = __nccwpck_require__(87016); -const resolver_dns_1 = __nccwpck_require__(51149); -const TRACER_NAME = 'proxy'; -function trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); -} -function getProxyInfo() { - let proxyEnv = ''; - let envVar = ''; - /* Prefer using 'grpc_proxy'. Fallback on 'http_proxy' if it is not set. - * Also prefer using 'https_proxy' with fallback on 'http_proxy'. The - * fallback behavior can be removed if there's a demand for it. - */ - if (process.env.grpc_proxy) { - envVar = 'grpc_proxy'; - proxyEnv = process.env.grpc_proxy; - } - else if (process.env.https_proxy) { - envVar = 'https_proxy'; - proxyEnv = process.env.https_proxy; - } - else if (process.env.http_proxy) { - envVar = 'http_proxy'; - proxyEnv = process.env.http_proxy; - } - else { - return {}; - } - let proxyUrl; - try { - proxyUrl = new url_1.URL(proxyEnv); - } - catch (e) { - (0, logging_1.log)(constants_1.LogVerbosity.ERROR, `cannot parse value of "${envVar}" env var`); - return {}; - } - if (proxyUrl.protocol !== 'http:') { - (0, logging_1.log)(constants_1.LogVerbosity.ERROR, `"${proxyUrl.protocol}" scheme not supported in proxy URI`); - return {}; - } - let userCred = null; - if (proxyUrl.username) { - if (proxyUrl.password) { - (0, logging_1.log)(constants_1.LogVerbosity.INFO, 'userinfo found in proxy URI'); - userCred = decodeURIComponent(`${proxyUrl.username}:${proxyUrl.password}`); - } - else { - userCred = proxyUrl.username; - } - } - const hostname = proxyUrl.hostname; - let port = proxyUrl.port; - /* The proxy URL uses the scheme "http:", which has a default port number of - * 80. We need to set that explicitly here if it is omitted because otherwise - * it will use gRPC's default port 443. */ - if (port === '') { - port = '80'; - } - const result = { - address: `${hostname}:${port}`, - }; - if (userCred) { - result.creds = userCred; - } - trace('Proxy server ' + result.address + ' set by environment variable ' + envVar); - return result; -} -function getNoProxyHostList() { - /* Prefer using 'no_grpc_proxy'. Fallback on 'no_proxy' if it is not set. */ - let noProxyStr = process.env.no_grpc_proxy; - let envVar = 'no_grpc_proxy'; - if (!noProxyStr) { - noProxyStr = process.env.no_proxy; - envVar = 'no_proxy'; - } - if (noProxyStr) { - trace('No proxy server list set by environment variable ' + envVar); - return noProxyStr.split(','); - } - else { - return []; - } -} -/* - * The groups correspond to CIDR parts as follows: - * 1. ip - * 2. prefixLength - */ -function parseCIDR(cidrString) { - const splitRange = cidrString.split('/'); - if (splitRange.length !== 2) { - return null; - } - const prefixLength = parseInt(splitRange[1], 10); - if (!(0, net_1.isIPv4)(splitRange[0]) || Number.isNaN(prefixLength) || prefixLength < 0 || prefixLength > 32) { - return null; - } - return { - ip: ipToInt(splitRange[0]), - prefixLength: prefixLength - }; -} -function ipToInt(ip) { - return ip.split(".").reduce((acc, octet) => (acc << 8) + parseInt(octet, 10), 0); -} -function isIpInCIDR(cidr, serverHost) { - const ip = cidr.ip; - const mask = -1 << (32 - cidr.prefixLength); - const hostIP = ipToInt(serverHost); - return (hostIP & mask) === (ip & mask); -} -function hostMatchesNoProxyList(serverHost) { - for (const host of getNoProxyHostList()) { - const parsedCIDR = parseCIDR(host); - // host is a CIDR and serverHost is an IP address - if ((0, net_1.isIPv4)(serverHost) && parsedCIDR && isIpInCIDR(parsedCIDR, serverHost)) { - return true; - } - else if (serverHost.endsWith(host)) { - // host is a single IP or a domain name suffix - return true; - } - } - return false; -} -function mapProxyName(target, options) { - var _a; - const noProxyResult = { - target: target, - extraOptions: {}, - }; - if (((_a = options['grpc.enable_http_proxy']) !== null && _a !== void 0 ? _a : 1) === 0) { - return noProxyResult; - } - if (target.scheme === 'unix') { - return noProxyResult; - } - const proxyInfo = getProxyInfo(); - if (!proxyInfo.address) { - return noProxyResult; - } - const hostPort = (0, uri_parser_1.splitHostPort)(target.path); - if (!hostPort) { - return noProxyResult; - } - const serverHost = hostPort.host; - if (hostMatchesNoProxyList(serverHost)) { - trace('Not using proxy for target in no_proxy list: ' + (0, uri_parser_1.uriToString)(target)); - return noProxyResult; - } - const extraOptions = { - 'grpc.http_connect_target': (0, uri_parser_1.uriToString)(target), - }; - if (proxyInfo.creds) { - extraOptions['grpc.http_connect_creds'] = proxyInfo.creds; - } - return { - target: { - scheme: 'dns', - path: proxyInfo.address, - }, - extraOptions: extraOptions, - }; -} -function getProxiedConnection(address, channelOptions) { - var _a; - if (!('grpc.http_connect_target' in channelOptions)) { - return Promise.resolve(null); - } - const realTarget = channelOptions['grpc.http_connect_target']; - const parsedTarget = (0, uri_parser_1.parseUri)(realTarget); - if (parsedTarget === null) { - return Promise.resolve(null); - } - const splitHostPost = (0, uri_parser_1.splitHostPort)(parsedTarget.path); - if (splitHostPost === null) { - return Promise.resolve(null); - } - const hostPort = `${splitHostPost.host}:${(_a = splitHostPost.port) !== null && _a !== void 0 ? _a : resolver_dns_1.DEFAULT_PORT}`; - const options = { - method: 'CONNECT', - path: hostPort, - }; - const headers = { - Host: hostPort, - }; - // Connect to the subchannel address as a proxy - if ((0, subchannel_address_1.isTcpSubchannelAddress)(address)) { - options.host = address.host; - options.port = address.port; - } - else { - options.socketPath = address.path; - } - if ('grpc.http_connect_creds' in channelOptions) { - headers['Proxy-Authorization'] = - 'Basic ' + - Buffer.from(channelOptions['grpc.http_connect_creds']).toString('base64'); - } - options.headers = headers; - const proxyAddressString = (0, subchannel_address_1.subchannelAddressToString)(address); - trace('Using proxy ' + proxyAddressString + ' to connect to ' + options.path); - return new Promise((resolve, reject) => { - const request = http.request(options); - request.once('connect', (res, socket, head) => { - request.removeAllListeners(); - socket.removeAllListeners(); - if (res.statusCode === 200) { - trace('Successfully connected to ' + - options.path + - ' through proxy ' + - proxyAddressString); - // The HTTP client may have already read a few bytes of the proxied - // connection. If that's the case, put them back into the socket. - // See https://github.com/grpc/grpc-node/issues/2744. - if (head.length > 0) { - socket.unshift(head); - } - trace('Successfully established a plaintext connection to ' + - options.path + - ' through proxy ' + - proxyAddressString); - resolve(socket); - } - else { - (0, logging_1.log)(constants_1.LogVerbosity.ERROR, 'Failed to connect to ' + - options.path + - ' through proxy ' + - proxyAddressString + - ' with status ' + - res.statusCode); - reject(); - } - }); - request.once('error', err => { - request.removeAllListeners(); - (0, logging_1.log)(constants_1.LogVerbosity.ERROR, 'Failed to connect to proxy ' + - proxyAddressString + - ' with error ' + - err.message); - reject(); - }); - request.end(); - }); -} -//# sourceMappingURL=http_proxy.js.map - -/***/ }), - -/***/ 5414: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.experimental = exports.ServerMetricRecorder = exports.ServerInterceptingCall = exports.ResponderBuilder = exports.ServerListenerBuilder = exports.addAdminServicesToServer = exports.getChannelzHandlers = exports.getChannelzServiceDefinition = exports.InterceptorConfigurationError = exports.InterceptingCall = exports.RequesterBuilder = exports.ListenerBuilder = exports.StatusBuilder = exports.getClientChannel = exports.ServerCredentials = exports.Server = exports.setLogVerbosity = exports.setLogger = exports.load = exports.loadObject = exports.CallCredentials = exports.ChannelCredentials = exports.waitForClientReady = exports.closeClient = exports.Channel = exports.makeGenericClientConstructor = exports.makeClientConstructor = exports.loadPackageDefinition = exports.Client = exports.compressionAlgorithms = exports.propagate = exports.connectivityState = exports.status = exports.logVerbosity = exports.Metadata = exports.credentials = void 0; -const call_credentials_1 = __nccwpck_require__(73161); -Object.defineProperty(exports, "CallCredentials", ({ enumerable: true, get: function () { return call_credentials_1.CallCredentials; } })); -const channel_1 = __nccwpck_require__(86918); -Object.defineProperty(exports, "Channel", ({ enumerable: true, get: function () { return channel_1.ChannelImplementation; } })); -const compression_algorithms_1 = __nccwpck_require__(24130); -Object.defineProperty(exports, "compressionAlgorithms", ({ enumerable: true, get: function () { return compression_algorithms_1.CompressionAlgorithms; } })); -const connectivity_state_1 = __nccwpck_require__(60778); -Object.defineProperty(exports, "connectivityState", ({ enumerable: true, get: function () { return connectivity_state_1.ConnectivityState; } })); -const channel_credentials_1 = __nccwpck_require__(32257); -Object.defineProperty(exports, "ChannelCredentials", ({ enumerable: true, get: function () { return channel_credentials_1.ChannelCredentials; } })); -const client_1 = __nccwpck_require__(54210); -Object.defineProperty(exports, "Client", ({ enumerable: true, get: function () { return client_1.Client; } })); -const constants_1 = __nccwpck_require__(68288); -Object.defineProperty(exports, "logVerbosity", ({ enumerable: true, get: function () { return constants_1.LogVerbosity; } })); -Object.defineProperty(exports, "status", ({ enumerable: true, get: function () { return constants_1.Status; } })); -Object.defineProperty(exports, "propagate", ({ enumerable: true, get: function () { return constants_1.Propagate; } })); -const logging = __nccwpck_require__(8536); -const make_client_1 = __nccwpck_require__(76983); -Object.defineProperty(exports, "loadPackageDefinition", ({ enumerable: true, get: function () { return make_client_1.loadPackageDefinition; } })); -Object.defineProperty(exports, "makeClientConstructor", ({ enumerable: true, get: function () { return make_client_1.makeClientConstructor; } })); -Object.defineProperty(exports, "makeGenericClientConstructor", ({ enumerable: true, get: function () { return make_client_1.makeClientConstructor; } })); -const metadata_1 = __nccwpck_require__(36100); -Object.defineProperty(exports, "Metadata", ({ enumerable: true, get: function () { return metadata_1.Metadata; } })); -const server_1 = __nccwpck_require__(12390); -Object.defineProperty(exports, "Server", ({ enumerable: true, get: function () { return server_1.Server; } })); -const server_credentials_1 = __nccwpck_require__(36545); -Object.defineProperty(exports, "ServerCredentials", ({ enumerable: true, get: function () { return server_credentials_1.ServerCredentials; } })); -const status_builder_1 = __nccwpck_require__(7901); -Object.defineProperty(exports, "StatusBuilder", ({ enumerable: true, get: function () { return status_builder_1.StatusBuilder; } })); -/**** Client Credentials ****/ -// Using assign only copies enumerable properties, which is what we want -exports.credentials = { - /** - * Combine a ChannelCredentials with any number of CallCredentials into a - * single ChannelCredentials object. - * @param channelCredentials The ChannelCredentials object. - * @param callCredentials Any number of CallCredentials objects. - * @return The resulting ChannelCredentials object. - */ - combineChannelCredentials: (channelCredentials, ...callCredentials) => { - return callCredentials.reduce((acc, other) => acc.compose(other), channelCredentials); - }, - /** - * Combine any number of CallCredentials into a single CallCredentials - * object. - * @param first The first CallCredentials object. - * @param additional Any number of additional CallCredentials objects. - * @return The resulting CallCredentials object. - */ - combineCallCredentials: (first, ...additional) => { - return additional.reduce((acc, other) => acc.compose(other), first); - }, - // from channel-credentials.ts - createInsecure: channel_credentials_1.ChannelCredentials.createInsecure, - createSsl: channel_credentials_1.ChannelCredentials.createSsl, - createFromSecureContext: channel_credentials_1.ChannelCredentials.createFromSecureContext, - // from call-credentials.ts - createFromMetadataGenerator: call_credentials_1.CallCredentials.createFromMetadataGenerator, - createFromGoogleCredential: call_credentials_1.CallCredentials.createFromGoogleCredential, - createEmpty: call_credentials_1.CallCredentials.createEmpty, -}; -/** - * Close a Client object. - * @param client The client to close. - */ -const closeClient = (client) => client.close(); -exports.closeClient = closeClient; -const waitForClientReady = (client, deadline, callback) => client.waitForReady(deadline, callback); -exports.waitForClientReady = waitForClientReady; -/* eslint-enable @typescript-eslint/no-explicit-any */ -/**** Unimplemented function stubs ****/ -/* eslint-disable @typescript-eslint/no-explicit-any */ -const loadObject = (value, options) => { - throw new Error('Not available in this library. Use @grpc/proto-loader and loadPackageDefinition instead'); -}; -exports.loadObject = loadObject; -const load = (filename, format, options) => { - throw new Error('Not available in this library. Use @grpc/proto-loader and loadPackageDefinition instead'); -}; -exports.load = load; -const setLogger = (logger) => { - logging.setLogger(logger); -}; -exports.setLogger = setLogger; -const setLogVerbosity = (verbosity) => { - logging.setLoggerVerbosity(verbosity); -}; -exports.setLogVerbosity = setLogVerbosity; -const getClientChannel = (client) => { - return client_1.Client.prototype.getChannel.call(client); -}; -exports.getClientChannel = getClientChannel; -var client_interceptors_1 = __nccwpck_require__(82451); -Object.defineProperty(exports, "ListenerBuilder", ({ enumerable: true, get: function () { return client_interceptors_1.ListenerBuilder; } })); -Object.defineProperty(exports, "RequesterBuilder", ({ enumerable: true, get: function () { return client_interceptors_1.RequesterBuilder; } })); -Object.defineProperty(exports, "InterceptingCall", ({ enumerable: true, get: function () { return client_interceptors_1.InterceptingCall; } })); -Object.defineProperty(exports, "InterceptorConfigurationError", ({ enumerable: true, get: function () { return client_interceptors_1.InterceptorConfigurationError; } })); -var channelz_1 = __nccwpck_require__(68198); -Object.defineProperty(exports, "getChannelzServiceDefinition", ({ enumerable: true, get: function () { return channelz_1.getChannelzServiceDefinition; } })); -Object.defineProperty(exports, "getChannelzHandlers", ({ enumerable: true, get: function () { return channelz_1.getChannelzHandlers; } })); -var admin_1 = __nccwpck_require__(52914); -Object.defineProperty(exports, "addAdminServicesToServer", ({ enumerable: true, get: function () { return admin_1.addAdminServicesToServer; } })); -var server_interceptors_1 = __nccwpck_require__(42151); -Object.defineProperty(exports, "ServerListenerBuilder", ({ enumerable: true, get: function () { return server_interceptors_1.ServerListenerBuilder; } })); -Object.defineProperty(exports, "ResponderBuilder", ({ enumerable: true, get: function () { return server_interceptors_1.ResponderBuilder; } })); -Object.defineProperty(exports, "ServerInterceptingCall", ({ enumerable: true, get: function () { return server_interceptors_1.ServerInterceptingCall; } })); -var orca_1 = __nccwpck_require__(82124); -Object.defineProperty(exports, "ServerMetricRecorder", ({ enumerable: true, get: function () { return orca_1.ServerMetricRecorder; } })); -const experimental = __nccwpck_require__(20079); -exports.experimental = experimental; -const resolver_dns = __nccwpck_require__(51149); -const resolver_uds = __nccwpck_require__(69252); -const resolver_ip = __nccwpck_require__(52617); -const load_balancer_pick_first = __nccwpck_require__(78639); -const load_balancer_round_robin = __nccwpck_require__(71936); -const load_balancer_outlier_detection = __nccwpck_require__(95343); -const load_balancer_weighted_round_robin = __nccwpck_require__(47616); -const channelz = __nccwpck_require__(68198); -(() => { - resolver_dns.setup(); - resolver_uds.setup(); - resolver_ip.setup(); - load_balancer_pick_first.setup(); - load_balancer_round_robin.setup(); - load_balancer_outlier_detection.setup(); - load_balancer_weighted_round_robin.setup(); - channelz.setup(); -})(); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 40114: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.InternalChannel = exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX = void 0; -const channel_credentials_1 = __nccwpck_require__(32257); -const resolving_load_balancer_1 = __nccwpck_require__(63962); -const subchannel_pool_1 = __nccwpck_require__(48695); -const picker_1 = __nccwpck_require__(71663); -const metadata_1 = __nccwpck_require__(36100); -const constants_1 = __nccwpck_require__(68288); -const filter_stack_1 = __nccwpck_require__(95726); -const compression_filter_1 = __nccwpck_require__(43430); -const resolver_1 = __nccwpck_require__(76255); -const logging_1 = __nccwpck_require__(8536); -const http_proxy_1 = __nccwpck_require__(18954); -const uri_parser_1 = __nccwpck_require__(56027); -const connectivity_state_1 = __nccwpck_require__(60778); -const channelz_1 = __nccwpck_require__(68198); -const load_balancing_call_1 = __nccwpck_require__(58944); -const deadline_1 = __nccwpck_require__(52173); -const resolving_call_1 = __nccwpck_require__(8023); -const call_number_1 = __nccwpck_require__(35675); -const control_plane_status_1 = __nccwpck_require__(39962); -const retrying_call_1 = __nccwpck_require__(2532); -const subchannel_interface_1 = __nccwpck_require__(70098); -/** - * See https://nodejs.org/api/timers.html#timers_setinterval_callback_delay_args - */ -const MAX_TIMEOUT_TIME = 2147483647; -const MIN_IDLE_TIMEOUT_MS = 1000; -// 30 minutes -const DEFAULT_IDLE_TIMEOUT_MS = 30 * 60 * 1000; -const RETRY_THROTTLER_MAP = new Map(); -const DEFAULT_RETRY_BUFFER_SIZE_BYTES = 1 << 24; // 16 MB -const DEFAULT_PER_RPC_RETRY_BUFFER_SIZE_BYTES = 1 << 20; // 1 MB -class ChannelSubchannelWrapper extends subchannel_interface_1.BaseSubchannelWrapper { - constructor(childSubchannel, channel) { - super(childSubchannel); - this.channel = channel; - this.refCount = 0; - this.subchannelStateListener = (subchannel, previousState, newState, keepaliveTime) => { - channel.throttleKeepalive(keepaliveTime); - }; - } - ref() { - if (this.refCount === 0) { - this.child.addConnectivityStateListener(this.subchannelStateListener); - this.channel.addWrappedSubchannel(this); - } - this.child.ref(); - this.refCount += 1; - } - unref() { - this.child.unref(); - this.refCount -= 1; - if (this.refCount <= 0) { - this.child.removeConnectivityStateListener(this.subchannelStateListener); - this.channel.removeWrappedSubchannel(this); - } - } -} -class ShutdownPicker { - pick(pickArgs) { - return { - pickResultType: picker_1.PickResultType.DROP, - status: { - code: constants_1.Status.UNAVAILABLE, - details: 'Channel closed before call started', - metadata: new metadata_1.Metadata() - }, - subchannel: null, - onCallStarted: null, - onCallEnded: null - }; - } -} -exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX = 'grpc.internal.no_subchannel'; -class ChannelzInfoTracker { - constructor(target) { - this.target = target; - this.trace = new channelz_1.ChannelzTrace(); - this.callTracker = new channelz_1.ChannelzCallTracker(); - this.childrenTracker = new channelz_1.ChannelzChildrenTracker(); - this.state = connectivity_state_1.ConnectivityState.IDLE; - } - getChannelzInfoCallback() { - return () => { - return { - target: this.target, - state: this.state, - trace: this.trace, - callTracker: this.callTracker, - children: this.childrenTracker.getChildLists() - }; - }; - } -} -class InternalChannel { - constructor(target, credentials, options) { - var _a, _b, _c, _d, _e, _f; - this.credentials = credentials; - this.options = options; - this.connectivityState = connectivity_state_1.ConnectivityState.IDLE; - this.currentPicker = new picker_1.UnavailablePicker(); - /** - * Calls queued up to get a call config. Should only be populated before the - * first time the resolver returns a result, which includes the ConfigSelector. - */ - this.configSelectionQueue = []; - this.pickQueue = []; - this.connectivityStateWatchers = []; - /** - * This timer does not do anything on its own. Its purpose is to hold the - * event loop open while there are any pending calls for the channel that - * have not yet been assigned to specific subchannels. In other words, - * the invariant is that callRefTimer is reffed if and only if pickQueue - * is non-empty. In addition, the timer is null while the state is IDLE or - * SHUTDOWN and there are no pending calls. - */ - this.callRefTimer = null; - this.configSelector = null; - /** - * This is the error from the name resolver if it failed most recently. It - * is only used to end calls that start while there is no config selector - * and the name resolver is in backoff, so it should be nulled if - * configSelector becomes set or the channel state becomes anything other - * than TRANSIENT_FAILURE. - */ - this.currentResolutionError = null; - this.wrappedSubchannels = new Set(); - this.callCount = 0; - this.idleTimer = null; - // Channelz info - this.channelzEnabled = true; - /** - * Randomly generated ID to be passed to the config selector, for use by - * ring_hash in xDS. An integer distributed approximately uniformly between - * 0 and MAX_SAFE_INTEGER. - */ - this.randomChannelId = Math.floor(Math.random() * Number.MAX_SAFE_INTEGER); - if (typeof target !== 'string') { - throw new TypeError('Channel target must be a string'); - } - if (!(credentials instanceof channel_credentials_1.ChannelCredentials)) { - throw new TypeError('Channel credentials must be a ChannelCredentials object'); - } - if (options) { - if (typeof options !== 'object') { - throw new TypeError('Channel options must be an object'); - } - } - this.channelzInfoTracker = new ChannelzInfoTracker(target); - const originalTargetUri = (0, uri_parser_1.parseUri)(target); - if (originalTargetUri === null) { - throw new Error(`Could not parse target name "${target}"`); - } - /* This ensures that the target has a scheme that is registered with the - * resolver */ - const defaultSchemeMapResult = (0, resolver_1.mapUriDefaultScheme)(originalTargetUri); - if (defaultSchemeMapResult === null) { - throw new Error(`Could not find a default scheme for target name "${target}"`); - } - if (this.options['grpc.enable_channelz'] === 0) { - this.channelzEnabled = false; - } - this.channelzRef = (0, channelz_1.registerChannelzChannel)(target, this.channelzInfoTracker.getChannelzInfoCallback(), this.channelzEnabled); - if (this.channelzEnabled) { - this.channelzInfoTracker.trace.addTrace('CT_INFO', 'Channel created'); - } - if (this.options['grpc.default_authority']) { - this.defaultAuthority = this.options['grpc.default_authority']; - } - else { - this.defaultAuthority = (0, resolver_1.getDefaultAuthority)(defaultSchemeMapResult); - } - const proxyMapResult = (0, http_proxy_1.mapProxyName)(defaultSchemeMapResult, options); - this.target = proxyMapResult.target; - this.options = Object.assign({}, this.options, proxyMapResult.extraOptions); - /* The global boolean parameter to getSubchannelPool has the inverse meaning to what - * the grpc.use_local_subchannel_pool channel option means. */ - this.subchannelPool = (0, subchannel_pool_1.getSubchannelPool)(((_a = this.options['grpc.use_local_subchannel_pool']) !== null && _a !== void 0 ? _a : 0) === 0); - this.retryBufferTracker = new retrying_call_1.MessageBufferTracker((_b = this.options['grpc.retry_buffer_size']) !== null && _b !== void 0 ? _b : DEFAULT_RETRY_BUFFER_SIZE_BYTES, (_c = this.options['grpc.per_rpc_retry_buffer_size']) !== null && _c !== void 0 ? _c : DEFAULT_PER_RPC_RETRY_BUFFER_SIZE_BYTES); - this.keepaliveTime = (_d = this.options['grpc.keepalive_time_ms']) !== null && _d !== void 0 ? _d : -1; - this.idleTimeoutMs = Math.max((_e = this.options['grpc.client_idle_timeout_ms']) !== null && _e !== void 0 ? _e : DEFAULT_IDLE_TIMEOUT_MS, MIN_IDLE_TIMEOUT_MS); - const channelControlHelper = { - createSubchannel: (subchannelAddress, subchannelArgs) => { - const finalSubchannelArgs = {}; - for (const [key, value] of Object.entries(subchannelArgs)) { - if (!key.startsWith(exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX)) { - finalSubchannelArgs[key] = value; - } - } - const subchannel = this.subchannelPool.getOrCreateSubchannel(this.target, subchannelAddress, finalSubchannelArgs, this.credentials); - subchannel.throttleKeepalive(this.keepaliveTime); - if (this.channelzEnabled) { - this.channelzInfoTracker.trace.addTrace('CT_INFO', 'Created subchannel or used existing subchannel', subchannel.getChannelzRef()); - } - const wrappedSubchannel = new ChannelSubchannelWrapper(subchannel, this); - return wrappedSubchannel; - }, - updateState: (connectivityState, picker) => { - this.currentPicker = picker; - const queueCopy = this.pickQueue.slice(); - this.pickQueue = []; - if (queueCopy.length > 0) { - this.callRefTimerUnref(); - } - for (const call of queueCopy) { - call.doPick(); - } - this.updateState(connectivityState); - }, - requestReresolution: () => { - // This should never be called. - throw new Error('Resolving load balancer should never call requestReresolution'); - }, - addChannelzChild: (child) => { - if (this.channelzEnabled) { - this.channelzInfoTracker.childrenTracker.refChild(child); - } - }, - removeChannelzChild: (child) => { - if (this.channelzEnabled) { - this.channelzInfoTracker.childrenTracker.unrefChild(child); - } - }, - }; - this.resolvingLoadBalancer = new resolving_load_balancer_1.ResolvingLoadBalancer(this.target, channelControlHelper, this.options, (serviceConfig, configSelector) => { - var _a; - if (serviceConfig.retryThrottling) { - RETRY_THROTTLER_MAP.set(this.getTarget(), new retrying_call_1.RetryThrottler(serviceConfig.retryThrottling.maxTokens, serviceConfig.retryThrottling.tokenRatio, RETRY_THROTTLER_MAP.get(this.getTarget()))); - } - else { - RETRY_THROTTLER_MAP.delete(this.getTarget()); - } - if (this.channelzEnabled) { - this.channelzInfoTracker.trace.addTrace('CT_INFO', 'Address resolution succeeded'); - } - (_a = this.configSelector) === null || _a === void 0 ? void 0 : _a.unref(); - this.configSelector = configSelector; - this.currentResolutionError = null; - /* We process the queue asynchronously to ensure that the corresponding - * load balancer update has completed. */ - process.nextTick(() => { - const localQueue = this.configSelectionQueue; - this.configSelectionQueue = []; - if (localQueue.length > 0) { - this.callRefTimerUnref(); - } - for (const call of localQueue) { - call.getConfig(); - } - }); - }, status => { - if (this.channelzEnabled) { - this.channelzInfoTracker.trace.addTrace('CT_WARNING', 'Address resolution failed with code ' + - status.code + - ' and details "' + - status.details + - '"'); - } - if (this.configSelectionQueue.length > 0) { - this.trace('Name resolution failed with calls queued for config selection'); - } - if (this.configSelector === null) { - this.currentResolutionError = Object.assign(Object.assign({}, (0, control_plane_status_1.restrictControlPlaneStatusCode)(status.code, status.details)), { metadata: status.metadata }); - } - const localQueue = this.configSelectionQueue; - this.configSelectionQueue = []; - if (localQueue.length > 0) { - this.callRefTimerUnref(); - } - for (const call of localQueue) { - call.reportResolverError(status); - } - }); - this.filterStackFactory = new filter_stack_1.FilterStackFactory([ - new compression_filter_1.CompressionFilterFactory(this, this.options), - ]); - this.trace('Channel constructed with options ' + - JSON.stringify(options, undefined, 2)); - const error = new Error(); - if ((0, logging_1.isTracerEnabled)('channel_stacktrace')) { - (0, logging_1.trace)(constants_1.LogVerbosity.DEBUG, 'channel_stacktrace', '(' + - this.channelzRef.id + - ') ' + - 'Channel constructed \n' + - ((_f = error.stack) === null || _f === void 0 ? void 0 : _f.substring(error.stack.indexOf('\n') + 1))); - } - this.lastActivityTimestamp = new Date(); - } - trace(text, verbosityOverride) { - (0, logging_1.trace)(verbosityOverride !== null && verbosityOverride !== void 0 ? verbosityOverride : constants_1.LogVerbosity.DEBUG, 'channel', '(' + this.channelzRef.id + ') ' + (0, uri_parser_1.uriToString)(this.target) + ' ' + text); - } - callRefTimerRef() { - var _a, _b, _c, _d; - if (!this.callRefTimer) { - this.callRefTimer = setInterval(() => { }, MAX_TIMEOUT_TIME); - } - // If the hasRef function does not exist, always run the code - if (!((_b = (_a = this.callRefTimer).hasRef) === null || _b === void 0 ? void 0 : _b.call(_a))) { - this.trace('callRefTimer.ref | configSelectionQueue.length=' + - this.configSelectionQueue.length + - ' pickQueue.length=' + - this.pickQueue.length); - (_d = (_c = this.callRefTimer).ref) === null || _d === void 0 ? void 0 : _d.call(_c); - } - } - callRefTimerUnref() { - var _a, _b, _c; - // If the timer or the hasRef function does not exist, always run the code - if (!((_a = this.callRefTimer) === null || _a === void 0 ? void 0 : _a.hasRef) || this.callRefTimer.hasRef()) { - this.trace('callRefTimer.unref | configSelectionQueue.length=' + - this.configSelectionQueue.length + - ' pickQueue.length=' + - this.pickQueue.length); - (_c = (_b = this.callRefTimer) === null || _b === void 0 ? void 0 : _b.unref) === null || _c === void 0 ? void 0 : _c.call(_b); - } - } - removeConnectivityStateWatcher(watcherObject) { - const watcherIndex = this.connectivityStateWatchers.findIndex(value => value === watcherObject); - if (watcherIndex >= 0) { - this.connectivityStateWatchers.splice(watcherIndex, 1); - } - } - updateState(newState) { - (0, logging_1.trace)(constants_1.LogVerbosity.DEBUG, 'connectivity_state', '(' + - this.channelzRef.id + - ') ' + - (0, uri_parser_1.uriToString)(this.target) + - ' ' + - connectivity_state_1.ConnectivityState[this.connectivityState] + - ' -> ' + - connectivity_state_1.ConnectivityState[newState]); - if (this.channelzEnabled) { - this.channelzInfoTracker.trace.addTrace('CT_INFO', 'Connectivity state change to ' + connectivity_state_1.ConnectivityState[newState]); - } - this.connectivityState = newState; - this.channelzInfoTracker.state = newState; - const watchersCopy = this.connectivityStateWatchers.slice(); - for (const watcherObject of watchersCopy) { - if (newState !== watcherObject.currentState) { - if (watcherObject.timer) { - clearTimeout(watcherObject.timer); - } - this.removeConnectivityStateWatcher(watcherObject); - watcherObject.callback(); - } - } - if (newState !== connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { - this.currentResolutionError = null; - } - } - throttleKeepalive(newKeepaliveTime) { - if (newKeepaliveTime > this.keepaliveTime) { - this.keepaliveTime = newKeepaliveTime; - for (const wrappedSubchannel of this.wrappedSubchannels) { - wrappedSubchannel.throttleKeepalive(newKeepaliveTime); - } - } - } - addWrappedSubchannel(wrappedSubchannel) { - this.wrappedSubchannels.add(wrappedSubchannel); - } - removeWrappedSubchannel(wrappedSubchannel) { - this.wrappedSubchannels.delete(wrappedSubchannel); - } - doPick(metadata, extraPickInfo) { - return this.currentPicker.pick({ - metadata: metadata, - extraPickInfo: extraPickInfo, - }); - } - queueCallForPick(call) { - this.pickQueue.push(call); - this.callRefTimerRef(); - } - getConfig(method, metadata) { - if (this.connectivityState !== connectivity_state_1.ConnectivityState.SHUTDOWN) { - this.resolvingLoadBalancer.exitIdle(); - } - if (this.configSelector) { - return { - type: 'SUCCESS', - config: this.configSelector.invoke(method, metadata, this.randomChannelId), - }; - } - else { - if (this.currentResolutionError) { - return { - type: 'ERROR', - error: this.currentResolutionError, - }; - } - else { - return { - type: 'NONE', - }; - } - } - } - queueCallForConfig(call) { - this.configSelectionQueue.push(call); - this.callRefTimerRef(); - } - enterIdle() { - this.resolvingLoadBalancer.destroy(); - this.updateState(connectivity_state_1.ConnectivityState.IDLE); - this.currentPicker = new picker_1.QueuePicker(this.resolvingLoadBalancer); - if (this.idleTimer) { - clearTimeout(this.idleTimer); - this.idleTimer = null; - } - if (this.callRefTimer) { - clearInterval(this.callRefTimer); - this.callRefTimer = null; - } - } - startIdleTimeout(timeoutMs) { - var _a, _b; - this.idleTimer = setTimeout(() => { - if (this.callCount > 0) { - /* If there is currently a call, the channel will not go idle for a - * period of at least idleTimeoutMs, so check again after that time. - */ - this.startIdleTimeout(this.idleTimeoutMs); - return; - } - const now = new Date(); - const timeSinceLastActivity = now.valueOf() - this.lastActivityTimestamp.valueOf(); - if (timeSinceLastActivity >= this.idleTimeoutMs) { - this.trace('Idle timer triggered after ' + - this.idleTimeoutMs + - 'ms of inactivity'); - this.enterIdle(); - } - else { - /* Whenever the timer fires with the latest activity being too recent, - * set the timer again for the time when the time since the last - * activity is equal to the timeout. This should result in the timer - * firing no more than once every idleTimeoutMs/2 on average. */ - this.startIdleTimeout(this.idleTimeoutMs - timeSinceLastActivity); - } - }, timeoutMs); - (_b = (_a = this.idleTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - maybeStartIdleTimer() { - if (this.connectivityState !== connectivity_state_1.ConnectivityState.SHUTDOWN && - !this.idleTimer) { - this.startIdleTimeout(this.idleTimeoutMs); - } - } - onCallStart() { - if (this.channelzEnabled) { - this.channelzInfoTracker.callTracker.addCallStarted(); - } - this.callCount += 1; - } - onCallEnd(status) { - if (this.channelzEnabled) { - if (status.code === constants_1.Status.OK) { - this.channelzInfoTracker.callTracker.addCallSucceeded(); - } - else { - this.channelzInfoTracker.callTracker.addCallFailed(); - } - } - this.callCount -= 1; - this.lastActivityTimestamp = new Date(); - this.maybeStartIdleTimer(); - } - createLoadBalancingCall(callConfig, method, host, credentials, deadline) { - const callNumber = (0, call_number_1.getNextCallNumber)(); - this.trace('createLoadBalancingCall [' + callNumber + '] method="' + method + '"'); - return new load_balancing_call_1.LoadBalancingCall(this, callConfig, method, host, credentials, deadline, callNumber); - } - createRetryingCall(callConfig, method, host, credentials, deadline) { - const callNumber = (0, call_number_1.getNextCallNumber)(); - this.trace('createRetryingCall [' + callNumber + '] method="' + method + '"'); - return new retrying_call_1.RetryingCall(this, callConfig, method, host, credentials, deadline, callNumber, this.retryBufferTracker, RETRY_THROTTLER_MAP.get(this.getTarget())); - } - createResolvingCall(method, deadline, host, parentCall, propagateFlags) { - const callNumber = (0, call_number_1.getNextCallNumber)(); - this.trace('createResolvingCall [' + - callNumber + - '] method="' + - method + - '", deadline=' + - (0, deadline_1.deadlineToString)(deadline)); - const finalOptions = { - deadline: deadline, - flags: propagateFlags !== null && propagateFlags !== void 0 ? propagateFlags : constants_1.Propagate.DEFAULTS, - host: host !== null && host !== void 0 ? host : this.defaultAuthority, - parentCall: parentCall, - }; - const call = new resolving_call_1.ResolvingCall(this, method, finalOptions, this.filterStackFactory.clone(), callNumber); - this.onCallStart(); - call.addStatusWatcher(status => { - this.onCallEnd(status); - }); - return call; - } - close() { - var _a; - this.resolvingLoadBalancer.destroy(); - this.updateState(connectivity_state_1.ConnectivityState.SHUTDOWN); - this.currentPicker = new ShutdownPicker(); - for (const call of this.configSelectionQueue) { - call.cancelWithStatus(constants_1.Status.UNAVAILABLE, 'Channel closed before call started'); - } - this.configSelectionQueue = []; - for (const call of this.pickQueue) { - call.cancelWithStatus(constants_1.Status.UNAVAILABLE, 'Channel closed before call started'); - } - this.pickQueue = []; - if (this.callRefTimer) { - clearInterval(this.callRefTimer); - } - if (this.idleTimer) { - clearTimeout(this.idleTimer); - } - if (this.channelzEnabled) { - (0, channelz_1.unregisterChannelzRef)(this.channelzRef); - } - this.subchannelPool.unrefUnusedSubchannels(); - (_a = this.configSelector) === null || _a === void 0 ? void 0 : _a.unref(); - this.configSelector = null; - } - getTarget() { - return (0, uri_parser_1.uriToString)(this.target); - } - getConnectivityState(tryToConnect) { - const connectivityState = this.connectivityState; - if (tryToConnect) { - this.resolvingLoadBalancer.exitIdle(); - this.lastActivityTimestamp = new Date(); - this.maybeStartIdleTimer(); - } - return connectivityState; - } - watchConnectivityState(currentState, deadline, callback) { - if (this.connectivityState === connectivity_state_1.ConnectivityState.SHUTDOWN) { - throw new Error('Channel has been shut down'); - } - let timer = null; - if (deadline !== Infinity) { - const deadlineDate = deadline instanceof Date ? deadline : new Date(deadline); - const now = new Date(); - if (deadline === -Infinity || deadlineDate <= now) { - process.nextTick(callback, new Error('Deadline passed without connectivity state change')); - return; - } - timer = setTimeout(() => { - this.removeConnectivityStateWatcher(watcherObject); - callback(new Error('Deadline passed without connectivity state change')); - }, deadlineDate.getTime() - now.getTime()); - } - const watcherObject = { - currentState, - callback, - timer, - }; - this.connectivityStateWatchers.push(watcherObject); - } - /** - * Get the channelz reference object for this channel. The returned value is - * garbage if channelz is disabled for this channel. - * @returns - */ - getChannelzRef() { - return this.channelzRef; - } - createCall(method, deadline, host, parentCall, propagateFlags) { - if (typeof method !== 'string') { - throw new TypeError('Channel#createCall: method must be a string'); - } - if (!(typeof deadline === 'number' || deadline instanceof Date)) { - throw new TypeError('Channel#createCall: deadline must be a number or Date'); - } - if (this.connectivityState === connectivity_state_1.ConnectivityState.SHUTDOWN) { - throw new Error('Channel has been shut down'); - } - return this.createResolvingCall(method, deadline, host, parentCall, propagateFlags); - } - getOptions() { - return this.options; - } -} -exports.InternalChannel = InternalChannel; -//# sourceMappingURL=internal-channel.js.map - -/***/ }), - -/***/ 99069: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2020 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ChildLoadBalancerHandler = void 0; -const load_balancer_1 = __nccwpck_require__(7000); -const connectivity_state_1 = __nccwpck_require__(60778); -const TYPE_NAME = 'child_load_balancer_helper'; -class ChildLoadBalancerHandler { - constructor(channelControlHelper) { - this.channelControlHelper = channelControlHelper; - this.currentChild = null; - this.pendingChild = null; - this.latestConfig = null; - this.ChildPolicyHelper = class { - constructor(parent) { - this.parent = parent; - this.child = null; - } - createSubchannel(subchannelAddress, subchannelArgs) { - return this.parent.channelControlHelper.createSubchannel(subchannelAddress, subchannelArgs); - } - updateState(connectivityState, picker, errorMessage) { - var _a; - if (this.calledByPendingChild()) { - if (connectivityState === connectivity_state_1.ConnectivityState.CONNECTING) { - return; - } - (_a = this.parent.currentChild) === null || _a === void 0 ? void 0 : _a.destroy(); - this.parent.currentChild = this.parent.pendingChild; - this.parent.pendingChild = null; - } - else if (!this.calledByCurrentChild()) { - return; - } - this.parent.channelControlHelper.updateState(connectivityState, picker, errorMessage); - } - requestReresolution() { - var _a; - const latestChild = (_a = this.parent.pendingChild) !== null && _a !== void 0 ? _a : this.parent.currentChild; - if (this.child === latestChild) { - this.parent.channelControlHelper.requestReresolution(); - } - } - setChild(newChild) { - this.child = newChild; - } - addChannelzChild(child) { - this.parent.channelControlHelper.addChannelzChild(child); - } - removeChannelzChild(child) { - this.parent.channelControlHelper.removeChannelzChild(child); - } - calledByPendingChild() { - return this.child === this.parent.pendingChild; - } - calledByCurrentChild() { - return this.child === this.parent.currentChild; - } - }; - } - configUpdateRequiresNewPolicyInstance(oldConfig, newConfig) { - return oldConfig.getLoadBalancerName() !== newConfig.getLoadBalancerName(); - } - /** - * Prerequisites: lbConfig !== null and lbConfig.name is registered - * @param endpointList - * @param lbConfig - * @param attributes - */ - updateAddressList(endpointList, lbConfig, options, resolutionNote) { - let childToUpdate; - if (this.currentChild === null || - this.latestConfig === null || - this.configUpdateRequiresNewPolicyInstance(this.latestConfig, lbConfig)) { - const newHelper = new this.ChildPolicyHelper(this); - const newChild = (0, load_balancer_1.createLoadBalancer)(lbConfig, newHelper); - newHelper.setChild(newChild); - if (this.currentChild === null) { - this.currentChild = newChild; - childToUpdate = this.currentChild; - } - else { - if (this.pendingChild) { - this.pendingChild.destroy(); - } - this.pendingChild = newChild; - childToUpdate = this.pendingChild; - } - } - else { - if (this.pendingChild === null) { - childToUpdate = this.currentChild; - } - else { - childToUpdate = this.pendingChild; - } - } - this.latestConfig = lbConfig; - return childToUpdate.updateAddressList(endpointList, lbConfig, options, resolutionNote); - } - exitIdle() { - if (this.currentChild) { - this.currentChild.exitIdle(); - if (this.pendingChild) { - this.pendingChild.exitIdle(); - } - } - } - resetBackoff() { - if (this.currentChild) { - this.currentChild.resetBackoff(); - if (this.pendingChild) { - this.pendingChild.resetBackoff(); - } - } - } - destroy() { - /* Note: state updates are only propagated from the child balancer if that - * object is equal to this.currentChild or this.pendingChild. Since this - * function sets both of those to null, no further state updates will - * occur after this function returns. */ - if (this.currentChild) { - this.currentChild.destroy(); - this.currentChild = null; - } - if (this.pendingChild) { - this.pendingChild.destroy(); - this.pendingChild = null; - } - } - getTypeName() { - return TYPE_NAME; - } -} -exports.ChildLoadBalancerHandler = ChildLoadBalancerHandler; -//# sourceMappingURL=load-balancer-child-handler.js.map - -/***/ }), - -/***/ 95343: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -var _a; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.OutlierDetectionLoadBalancer = exports.OutlierDetectionLoadBalancingConfig = void 0; -exports.setup = setup; -const connectivity_state_1 = __nccwpck_require__(60778); -const constants_1 = __nccwpck_require__(68288); -const duration_1 = __nccwpck_require__(63929); -const experimental_1 = __nccwpck_require__(20079); -const load_balancer_1 = __nccwpck_require__(7000); -const load_balancer_child_handler_1 = __nccwpck_require__(99069); -const picker_1 = __nccwpck_require__(71663); -const subchannel_address_1 = __nccwpck_require__(97021); -const subchannel_interface_1 = __nccwpck_require__(70098); -const logging = __nccwpck_require__(8536); -const TRACER_NAME = 'outlier_detection'; -function trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); -} -const TYPE_NAME = 'outlier_detection'; -const OUTLIER_DETECTION_ENABLED = ((_a = process.env.GRPC_EXPERIMENTAL_ENABLE_OUTLIER_DETECTION) !== null && _a !== void 0 ? _a : 'true') === 'true'; -const defaultSuccessRateEjectionConfig = { - stdev_factor: 1900, - enforcement_percentage: 100, - minimum_hosts: 5, - request_volume: 100, -}; -const defaultFailurePercentageEjectionConfig = { - threshold: 85, - enforcement_percentage: 100, - minimum_hosts: 5, - request_volume: 50, -}; -function validateFieldType(obj, fieldName, expectedType, objectName) { - if (fieldName in obj && - obj[fieldName] !== undefined && - typeof obj[fieldName] !== expectedType) { - const fullFieldName = objectName ? `${objectName}.${fieldName}` : fieldName; - throw new Error(`outlier detection config ${fullFieldName} parse error: expected ${expectedType}, got ${typeof obj[fieldName]}`); - } -} -function validatePositiveDuration(obj, fieldName, objectName) { - const fullFieldName = objectName ? `${objectName}.${fieldName}` : fieldName; - if (fieldName in obj && obj[fieldName] !== undefined) { - if (!(0, duration_1.isDuration)(obj[fieldName])) { - throw new Error(`outlier detection config ${fullFieldName} parse error: expected Duration, got ${typeof obj[fieldName]}`); - } - if (!(obj[fieldName].seconds >= 0 && - obj[fieldName].seconds <= 315576000000 && - obj[fieldName].nanos >= 0 && - obj[fieldName].nanos <= 999999999)) { - throw new Error(`outlier detection config ${fullFieldName} parse error: values out of range for non-negative Duaration`); - } - } -} -function validatePercentage(obj, fieldName, objectName) { - const fullFieldName = objectName ? `${objectName}.${fieldName}` : fieldName; - validateFieldType(obj, fieldName, 'number', objectName); - if (fieldName in obj && - obj[fieldName] !== undefined && - !(obj[fieldName] >= 0 && obj[fieldName] <= 100)) { - throw new Error(`outlier detection config ${fullFieldName} parse error: value out of range for percentage (0-100)`); - } -} -class OutlierDetectionLoadBalancingConfig { - constructor(intervalMs, baseEjectionTimeMs, maxEjectionTimeMs, maxEjectionPercent, successRateEjection, failurePercentageEjection, childPolicy) { - this.childPolicy = childPolicy; - if (childPolicy.getLoadBalancerName() === 'pick_first') { - throw new Error('outlier_detection LB policy cannot have a pick_first child policy'); - } - this.intervalMs = intervalMs !== null && intervalMs !== void 0 ? intervalMs : 10000; - this.baseEjectionTimeMs = baseEjectionTimeMs !== null && baseEjectionTimeMs !== void 0 ? baseEjectionTimeMs : 30000; - this.maxEjectionTimeMs = maxEjectionTimeMs !== null && maxEjectionTimeMs !== void 0 ? maxEjectionTimeMs : 300000; - this.maxEjectionPercent = maxEjectionPercent !== null && maxEjectionPercent !== void 0 ? maxEjectionPercent : 10; - this.successRateEjection = successRateEjection - ? Object.assign(Object.assign({}, defaultSuccessRateEjectionConfig), successRateEjection) : null; - this.failurePercentageEjection = failurePercentageEjection - ? Object.assign(Object.assign({}, defaultFailurePercentageEjectionConfig), failurePercentageEjection) : null; - } - getLoadBalancerName() { - return TYPE_NAME; - } - toJsonObject() { - var _a, _b; - return { - outlier_detection: { - interval: (0, duration_1.msToDuration)(this.intervalMs), - base_ejection_time: (0, duration_1.msToDuration)(this.baseEjectionTimeMs), - max_ejection_time: (0, duration_1.msToDuration)(this.maxEjectionTimeMs), - max_ejection_percent: this.maxEjectionPercent, - success_rate_ejection: (_a = this.successRateEjection) !== null && _a !== void 0 ? _a : undefined, - failure_percentage_ejection: (_b = this.failurePercentageEjection) !== null && _b !== void 0 ? _b : undefined, - child_policy: [this.childPolicy.toJsonObject()], - }, - }; - } - getIntervalMs() { - return this.intervalMs; - } - getBaseEjectionTimeMs() { - return this.baseEjectionTimeMs; - } - getMaxEjectionTimeMs() { - return this.maxEjectionTimeMs; - } - getMaxEjectionPercent() { - return this.maxEjectionPercent; - } - getSuccessRateEjectionConfig() { - return this.successRateEjection; - } - getFailurePercentageEjectionConfig() { - return this.failurePercentageEjection; - } - getChildPolicy() { - return this.childPolicy; - } - static createFromJson(obj) { - var _a; - validatePositiveDuration(obj, 'interval'); - validatePositiveDuration(obj, 'base_ejection_time'); - validatePositiveDuration(obj, 'max_ejection_time'); - validatePercentage(obj, 'max_ejection_percent'); - if ('success_rate_ejection' in obj && - obj.success_rate_ejection !== undefined) { - if (typeof obj.success_rate_ejection !== 'object') { - throw new Error('outlier detection config success_rate_ejection must be an object'); - } - validateFieldType(obj.success_rate_ejection, 'stdev_factor', 'number', 'success_rate_ejection'); - validatePercentage(obj.success_rate_ejection, 'enforcement_percentage', 'success_rate_ejection'); - validateFieldType(obj.success_rate_ejection, 'minimum_hosts', 'number', 'success_rate_ejection'); - validateFieldType(obj.success_rate_ejection, 'request_volume', 'number', 'success_rate_ejection'); - } - if ('failure_percentage_ejection' in obj && - obj.failure_percentage_ejection !== undefined) { - if (typeof obj.failure_percentage_ejection !== 'object') { - throw new Error('outlier detection config failure_percentage_ejection must be an object'); - } - validatePercentage(obj.failure_percentage_ejection, 'threshold', 'failure_percentage_ejection'); - validatePercentage(obj.failure_percentage_ejection, 'enforcement_percentage', 'failure_percentage_ejection'); - validateFieldType(obj.failure_percentage_ejection, 'minimum_hosts', 'number', 'failure_percentage_ejection'); - validateFieldType(obj.failure_percentage_ejection, 'request_volume', 'number', 'failure_percentage_ejection'); - } - if (!('child_policy' in obj) || !Array.isArray(obj.child_policy)) { - throw new Error('outlier detection config child_policy must be an array'); - } - const childPolicy = (0, load_balancer_1.selectLbConfigFromList)(obj.child_policy); - if (!childPolicy) { - throw new Error('outlier detection config child_policy: no valid recognized policy found'); - } - return new OutlierDetectionLoadBalancingConfig(obj.interval ? (0, duration_1.durationToMs)(obj.interval) : null, obj.base_ejection_time ? (0, duration_1.durationToMs)(obj.base_ejection_time) : null, obj.max_ejection_time ? (0, duration_1.durationToMs)(obj.max_ejection_time) : null, (_a = obj.max_ejection_percent) !== null && _a !== void 0 ? _a : null, obj.success_rate_ejection, obj.failure_percentage_ejection, childPolicy); - } -} -exports.OutlierDetectionLoadBalancingConfig = OutlierDetectionLoadBalancingConfig; -class OutlierDetectionSubchannelWrapper extends subchannel_interface_1.BaseSubchannelWrapper { - constructor(childSubchannel, mapEntry) { - super(childSubchannel); - this.mapEntry = mapEntry; - this.refCount = 0; - } - ref() { - this.child.ref(); - this.refCount += 1; - } - unref() { - this.child.unref(); - this.refCount -= 1; - if (this.refCount <= 0) { - if (this.mapEntry) { - const index = this.mapEntry.subchannelWrappers.indexOf(this); - if (index >= 0) { - this.mapEntry.subchannelWrappers.splice(index, 1); - } - } - } - } - eject() { - this.setHealthy(false); - } - uneject() { - this.setHealthy(true); - } - getMapEntry() { - return this.mapEntry; - } - getWrappedSubchannel() { - return this.child; - } -} -function createEmptyBucket() { - return { - success: 0, - failure: 0, - }; -} -class CallCounter { - constructor() { - this.activeBucket = createEmptyBucket(); - this.inactiveBucket = createEmptyBucket(); - } - addSuccess() { - this.activeBucket.success += 1; - } - addFailure() { - this.activeBucket.failure += 1; - } - switchBuckets() { - this.inactiveBucket = this.activeBucket; - this.activeBucket = createEmptyBucket(); - } - getLastSuccesses() { - return this.inactiveBucket.success; - } - getLastFailures() { - return this.inactiveBucket.failure; - } -} -class OutlierDetectionPicker { - constructor(wrappedPicker, countCalls) { - this.wrappedPicker = wrappedPicker; - this.countCalls = countCalls; - } - pick(pickArgs) { - const wrappedPick = this.wrappedPicker.pick(pickArgs); - if (wrappedPick.pickResultType === picker_1.PickResultType.COMPLETE) { - const subchannelWrapper = wrappedPick.subchannel; - const mapEntry = subchannelWrapper.getMapEntry(); - if (mapEntry) { - let onCallEnded = wrappedPick.onCallEnded; - if (this.countCalls) { - onCallEnded = (statusCode, details, metadata) => { - var _a; - if (statusCode === constants_1.Status.OK) { - mapEntry.counter.addSuccess(); - } - else { - mapEntry.counter.addFailure(); - } - (_a = wrappedPick.onCallEnded) === null || _a === void 0 ? void 0 : _a.call(wrappedPick, statusCode, details, metadata); - }; - } - return Object.assign(Object.assign({}, wrappedPick), { subchannel: subchannelWrapper.getWrappedSubchannel(), onCallEnded: onCallEnded }); - } - else { - return Object.assign(Object.assign({}, wrappedPick), { subchannel: subchannelWrapper.getWrappedSubchannel() }); - } - } - else { - return wrappedPick; - } - } -} -class OutlierDetectionLoadBalancer { - constructor(channelControlHelper) { - this.entryMap = new subchannel_address_1.EndpointMap(); - this.latestConfig = null; - this.timerStartTime = null; - this.childBalancer = new load_balancer_child_handler_1.ChildLoadBalancerHandler((0, experimental_1.createChildChannelControlHelper)(channelControlHelper, { - createSubchannel: (subchannelAddress, subchannelArgs) => { - const originalSubchannel = channelControlHelper.createSubchannel(subchannelAddress, subchannelArgs); - const mapEntry = this.entryMap.getForSubchannelAddress(subchannelAddress); - const subchannelWrapper = new OutlierDetectionSubchannelWrapper(originalSubchannel, mapEntry); - if ((mapEntry === null || mapEntry === void 0 ? void 0 : mapEntry.currentEjectionTimestamp) !== null) { - // If the address is ejected, propagate that to the new subchannel wrapper - subchannelWrapper.eject(); - } - mapEntry === null || mapEntry === void 0 ? void 0 : mapEntry.subchannelWrappers.push(subchannelWrapper); - return subchannelWrapper; - }, - updateState: (connectivityState, picker, errorMessage) => { - if (connectivityState === connectivity_state_1.ConnectivityState.READY) { - channelControlHelper.updateState(connectivityState, new OutlierDetectionPicker(picker, this.isCountingEnabled()), errorMessage); - } - else { - channelControlHelper.updateState(connectivityState, picker, errorMessage); - } - }, - })); - this.ejectionTimer = setInterval(() => { }, 0); - clearInterval(this.ejectionTimer); - } - isCountingEnabled() { - return (this.latestConfig !== null && - (this.latestConfig.getSuccessRateEjectionConfig() !== null || - this.latestConfig.getFailurePercentageEjectionConfig() !== null)); - } - getCurrentEjectionPercent() { - let ejectionCount = 0; - for (const mapEntry of this.entryMap.values()) { - if (mapEntry.currentEjectionTimestamp !== null) { - ejectionCount += 1; - } - } - return (ejectionCount * 100) / this.entryMap.size; - } - runSuccessRateCheck(ejectionTimestamp) { - if (!this.latestConfig) { - return; - } - const successRateConfig = this.latestConfig.getSuccessRateEjectionConfig(); - if (!successRateConfig) { - return; - } - trace('Running success rate check'); - // Step 1 - const targetRequestVolume = successRateConfig.request_volume; - let addresesWithTargetVolume = 0; - const successRates = []; - for (const [endpoint, mapEntry] of this.entryMap.entries()) { - const successes = mapEntry.counter.getLastSuccesses(); - const failures = mapEntry.counter.getLastFailures(); - trace('Stats for ' + - (0, subchannel_address_1.endpointToString)(endpoint) + - ': successes=' + - successes + - ' failures=' + - failures + - ' targetRequestVolume=' + - targetRequestVolume); - if (successes + failures >= targetRequestVolume) { - addresesWithTargetVolume += 1; - successRates.push(successes / (successes + failures)); - } - } - trace('Found ' + - addresesWithTargetVolume + - ' success rate candidates; currentEjectionPercent=' + - this.getCurrentEjectionPercent() + - ' successRates=[' + - successRates + - ']'); - if (addresesWithTargetVolume < successRateConfig.minimum_hosts) { - return; - } - // Step 2 - const successRateMean = successRates.reduce((a, b) => a + b) / successRates.length; - let successRateDeviationSum = 0; - for (const rate of successRates) { - const deviation = rate - successRateMean; - successRateDeviationSum += deviation * deviation; - } - const successRateVariance = successRateDeviationSum / successRates.length; - const successRateStdev = Math.sqrt(successRateVariance); - const ejectionThreshold = successRateMean - - successRateStdev * (successRateConfig.stdev_factor / 1000); - trace('stdev=' + successRateStdev + ' ejectionThreshold=' + ejectionThreshold); - // Step 3 - for (const [address, mapEntry] of this.entryMap.entries()) { - // Step 3.i - if (this.getCurrentEjectionPercent() >= - this.latestConfig.getMaxEjectionPercent()) { - break; - } - // Step 3.ii - const successes = mapEntry.counter.getLastSuccesses(); - const failures = mapEntry.counter.getLastFailures(); - if (successes + failures < targetRequestVolume) { - continue; - } - // Step 3.iii - const successRate = successes / (successes + failures); - trace('Checking candidate ' + address + ' successRate=' + successRate); - if (successRate < ejectionThreshold) { - const randomNumber = Math.random() * 100; - trace('Candidate ' + - address + - ' randomNumber=' + - randomNumber + - ' enforcement_percentage=' + - successRateConfig.enforcement_percentage); - if (randomNumber < successRateConfig.enforcement_percentage) { - trace('Ejecting candidate ' + address); - this.eject(mapEntry, ejectionTimestamp); - } - } - } - } - runFailurePercentageCheck(ejectionTimestamp) { - if (!this.latestConfig) { - return; - } - const failurePercentageConfig = this.latestConfig.getFailurePercentageEjectionConfig(); - if (!failurePercentageConfig) { - return; - } - trace('Running failure percentage check. threshold=' + - failurePercentageConfig.threshold + - ' request volume threshold=' + - failurePercentageConfig.request_volume); - // Step 1 - let addressesWithTargetVolume = 0; - for (const mapEntry of this.entryMap.values()) { - const successes = mapEntry.counter.getLastSuccesses(); - const failures = mapEntry.counter.getLastFailures(); - if (successes + failures >= failurePercentageConfig.request_volume) { - addressesWithTargetVolume += 1; - } - } - if (addressesWithTargetVolume < failurePercentageConfig.minimum_hosts) { - return; - } - // Step 2 - for (const [address, mapEntry] of this.entryMap.entries()) { - // Step 2.i - if (this.getCurrentEjectionPercent() >= - this.latestConfig.getMaxEjectionPercent()) { - break; - } - // Step 2.ii - const successes = mapEntry.counter.getLastSuccesses(); - const failures = mapEntry.counter.getLastFailures(); - trace('Candidate successes=' + successes + ' failures=' + failures); - if (successes + failures < failurePercentageConfig.request_volume) { - continue; - } - // Step 2.iii - const failurePercentage = (failures * 100) / (failures + successes); - if (failurePercentage > failurePercentageConfig.threshold) { - const randomNumber = Math.random() * 100; - trace('Candidate ' + - address + - ' randomNumber=' + - randomNumber + - ' enforcement_percentage=' + - failurePercentageConfig.enforcement_percentage); - if (randomNumber < failurePercentageConfig.enforcement_percentage) { - trace('Ejecting candidate ' + address); - this.eject(mapEntry, ejectionTimestamp); - } - } - } - } - eject(mapEntry, ejectionTimestamp) { - mapEntry.currentEjectionTimestamp = new Date(); - mapEntry.ejectionTimeMultiplier += 1; - for (const subchannelWrapper of mapEntry.subchannelWrappers) { - subchannelWrapper.eject(); - } - } - uneject(mapEntry) { - mapEntry.currentEjectionTimestamp = null; - for (const subchannelWrapper of mapEntry.subchannelWrappers) { - subchannelWrapper.uneject(); - } - } - switchAllBuckets() { - for (const mapEntry of this.entryMap.values()) { - mapEntry.counter.switchBuckets(); - } - } - startTimer(delayMs) { - var _a, _b; - this.ejectionTimer = setTimeout(() => this.runChecks(), delayMs); - (_b = (_a = this.ejectionTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - runChecks() { - const ejectionTimestamp = new Date(); - trace('Ejection timer running'); - this.switchAllBuckets(); - if (!this.latestConfig) { - return; - } - this.timerStartTime = ejectionTimestamp; - this.startTimer(this.latestConfig.getIntervalMs()); - this.runSuccessRateCheck(ejectionTimestamp); - this.runFailurePercentageCheck(ejectionTimestamp); - for (const [address, mapEntry] of this.entryMap.entries()) { - if (mapEntry.currentEjectionTimestamp === null) { - if (mapEntry.ejectionTimeMultiplier > 0) { - mapEntry.ejectionTimeMultiplier -= 1; - } - } - else { - const baseEjectionTimeMs = this.latestConfig.getBaseEjectionTimeMs(); - const maxEjectionTimeMs = this.latestConfig.getMaxEjectionTimeMs(); - const returnTime = new Date(mapEntry.currentEjectionTimestamp.getTime()); - returnTime.setMilliseconds(returnTime.getMilliseconds() + - Math.min(baseEjectionTimeMs * mapEntry.ejectionTimeMultiplier, Math.max(baseEjectionTimeMs, maxEjectionTimeMs))); - if (returnTime < new Date()) { - trace('Unejecting ' + address); - this.uneject(mapEntry); - } - } - } - } - updateAddressList(endpointList, lbConfig, options, resolutionNote) { - if (!(lbConfig instanceof OutlierDetectionLoadBalancingConfig)) { - return false; - } - trace('Received update with config: ' + JSON.stringify(lbConfig.toJsonObject(), undefined, 2)); - if (endpointList.ok) { - for (const endpoint of endpointList.value) { - if (!this.entryMap.has(endpoint)) { - trace('Adding map entry for ' + (0, subchannel_address_1.endpointToString)(endpoint)); - this.entryMap.set(endpoint, { - counter: new CallCounter(), - currentEjectionTimestamp: null, - ejectionTimeMultiplier: 0, - subchannelWrappers: [], - }); - } - } - this.entryMap.deleteMissing(endpointList.value); - } - const childPolicy = lbConfig.getChildPolicy(); - this.childBalancer.updateAddressList(endpointList, childPolicy, options, resolutionNote); - if (lbConfig.getSuccessRateEjectionConfig() || - lbConfig.getFailurePercentageEjectionConfig()) { - if (this.timerStartTime) { - trace('Previous timer existed. Replacing timer'); - clearTimeout(this.ejectionTimer); - const remainingDelay = lbConfig.getIntervalMs() - - (new Date().getTime() - this.timerStartTime.getTime()); - this.startTimer(remainingDelay); - } - else { - trace('Starting new timer'); - this.timerStartTime = new Date(); - this.startTimer(lbConfig.getIntervalMs()); - this.switchAllBuckets(); - } - } - else { - trace('Counting disabled. Cancelling timer.'); - this.timerStartTime = null; - clearTimeout(this.ejectionTimer); - for (const mapEntry of this.entryMap.values()) { - this.uneject(mapEntry); - mapEntry.ejectionTimeMultiplier = 0; - } - } - this.latestConfig = lbConfig; - return true; - } - exitIdle() { - this.childBalancer.exitIdle(); - } - resetBackoff() { - this.childBalancer.resetBackoff(); - } - destroy() { - clearTimeout(this.ejectionTimer); - this.childBalancer.destroy(); - } - getTypeName() { - return TYPE_NAME; - } -} -exports.OutlierDetectionLoadBalancer = OutlierDetectionLoadBalancer; -function setup() { - if (OUTLIER_DETECTION_ENABLED) { - (0, experimental_1.registerLoadBalancerType)(TYPE_NAME, OutlierDetectionLoadBalancer, OutlierDetectionLoadBalancingConfig); - } -} -//# sourceMappingURL=load-balancer-outlier-detection.js.map - -/***/ }), - -/***/ 78639: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LeafLoadBalancer = exports.PickFirstLoadBalancer = exports.PickFirstLoadBalancingConfig = void 0; -exports.shuffled = shuffled; -exports.setup = setup; -const load_balancer_1 = __nccwpck_require__(7000); -const connectivity_state_1 = __nccwpck_require__(60778); -const picker_1 = __nccwpck_require__(71663); -const subchannel_address_1 = __nccwpck_require__(97021); -const logging = __nccwpck_require__(8536); -const constants_1 = __nccwpck_require__(68288); -const subchannel_address_2 = __nccwpck_require__(97021); -const net_1 = __nccwpck_require__(69278); -const call_interface_1 = __nccwpck_require__(61803); -const TRACER_NAME = 'pick_first'; -function trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); -} -const TYPE_NAME = 'pick_first'; -/** - * Delay after starting a connection on a subchannel before starting a - * connection on the next subchannel in the list, for Happy Eyeballs algorithm. - */ -const CONNECTION_DELAY_INTERVAL_MS = 250; -class PickFirstLoadBalancingConfig { - constructor(shuffleAddressList) { - this.shuffleAddressList = shuffleAddressList; - } - getLoadBalancerName() { - return TYPE_NAME; - } - toJsonObject() { - return { - [TYPE_NAME]: { - shuffleAddressList: this.shuffleAddressList, - }, - }; - } - getShuffleAddressList() { - return this.shuffleAddressList; - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - static createFromJson(obj) { - if ('shuffleAddressList' in obj && - !(typeof obj.shuffleAddressList === 'boolean')) { - throw new Error('pick_first config field shuffleAddressList must be a boolean if provided'); - } - return new PickFirstLoadBalancingConfig(obj.shuffleAddressList === true); - } -} -exports.PickFirstLoadBalancingConfig = PickFirstLoadBalancingConfig; -/** - * Picker for a `PickFirstLoadBalancer` in the READY state. Always returns the - * picked subchannel. - */ -class PickFirstPicker { - constructor(subchannel) { - this.subchannel = subchannel; - } - pick(pickArgs) { - return { - pickResultType: picker_1.PickResultType.COMPLETE, - subchannel: this.subchannel, - status: null, - onCallStarted: null, - onCallEnded: null, - }; - } -} -/** - * Return a new array with the elements of the input array in a random order - * @param list The input array - * @returns A shuffled array of the elements of list - */ -function shuffled(list) { - const result = list.slice(); - for (let i = result.length - 1; i > 1; i--) { - const j = Math.floor(Math.random() * (i + 1)); - const temp = result[i]; - result[i] = result[j]; - result[j] = temp; - } - return result; -} -/** - * Interleave addresses in addressList by family in accordance with RFC-8304 section 4 - * @param addressList - * @returns - */ -function interleaveAddressFamilies(addressList) { - if (addressList.length === 0) { - return []; - } - const result = []; - const ipv6Addresses = []; - const ipv4Addresses = []; - const ipv6First = (0, subchannel_address_2.isTcpSubchannelAddress)(addressList[0]) && (0, net_1.isIPv6)(addressList[0].host); - for (const address of addressList) { - if ((0, subchannel_address_2.isTcpSubchannelAddress)(address) && (0, net_1.isIPv6)(address.host)) { - ipv6Addresses.push(address); - } - else { - ipv4Addresses.push(address); - } - } - const firstList = ipv6First ? ipv6Addresses : ipv4Addresses; - const secondList = ipv6First ? ipv4Addresses : ipv6Addresses; - for (let i = 0; i < Math.max(firstList.length, secondList.length); i++) { - if (i < firstList.length) { - result.push(firstList[i]); - } - if (i < secondList.length) { - result.push(secondList[i]); - } - } - return result; -} -const REPORT_HEALTH_STATUS_OPTION_NAME = 'grpc-node.internal.pick-first.report_health_status'; -class PickFirstLoadBalancer { - /** - * Load balancer that attempts to connect to each backend in the address list - * in order, and picks the first one that connects, using it for every - * request. - * @param channelControlHelper `ChannelControlHelper` instance provided by - * this load balancer's owner. - */ - constructor(channelControlHelper) { - this.channelControlHelper = channelControlHelper; - /** - * The list of subchannels this load balancer is currently attempting to - * connect to. - */ - this.children = []; - /** - * The current connectivity state of the load balancer. - */ - this.currentState = connectivity_state_1.ConnectivityState.IDLE; - /** - * The index within the `subchannels` array of the subchannel with the most - * recently started connection attempt. - */ - this.currentSubchannelIndex = 0; - /** - * The currently picked subchannel used for making calls. Populated if - * and only if the load balancer's current state is READY. In that case, - * the subchannel's current state is also READY. - */ - this.currentPick = null; - /** - * Listener callback attached to each subchannel in the `subchannels` list - * while establishing a connection. - */ - this.subchannelStateListener = (subchannel, previousState, newState, keepaliveTime, errorMessage) => { - this.onSubchannelStateUpdate(subchannel, previousState, newState, errorMessage); - }; - this.pickedSubchannelHealthListener = () => this.calculateAndReportNewState(); - /** - * The LB policy enters sticky TRANSIENT_FAILURE mode when all - * subchannels have failed to connect at least once, and it stays in that - * mode until a connection attempt is successful. While in sticky TF mode, - * the LB policy continuously attempts to connect to all of its subchannels. - */ - this.stickyTransientFailureMode = false; - this.reportHealthStatus = false; - /** - * The most recent error reported by any subchannel as it transitioned to - * TRANSIENT_FAILURE. - */ - this.lastError = null; - this.latestAddressList = null; - this.latestOptions = {}; - this.latestResolutionNote = ''; - this.connectionDelayTimeout = setTimeout(() => { }, 0); - clearTimeout(this.connectionDelayTimeout); - } - allChildrenHaveReportedTF() { - return this.children.every(child => child.hasReportedTransientFailure); - } - resetChildrenReportedTF() { - this.children.every(child => child.hasReportedTransientFailure = false); - } - calculateAndReportNewState() { - var _a; - if (this.currentPick) { - if (this.reportHealthStatus && !this.currentPick.isHealthy()) { - const errorMessage = `Picked subchannel ${this.currentPick.getAddress()} is unhealthy`; - this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ - details: errorMessage, - }), errorMessage); - } - else { - this.updateState(connectivity_state_1.ConnectivityState.READY, new PickFirstPicker(this.currentPick), null); - } - } - else if (((_a = this.latestAddressList) === null || _a === void 0 ? void 0 : _a.length) === 0) { - const errorMessage = `No connection established. Last error: ${this.lastError}. Resolution note: ${this.latestResolutionNote}`; - this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ - details: errorMessage, - }), errorMessage); - } - else if (this.children.length === 0) { - this.updateState(connectivity_state_1.ConnectivityState.IDLE, new picker_1.QueuePicker(this), null); - } - else { - if (this.stickyTransientFailureMode) { - const errorMessage = `No connection established. Last error: ${this.lastError}. Resolution note: ${this.latestResolutionNote}`; - this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ - details: errorMessage, - }), errorMessage); - } - else { - this.updateState(connectivity_state_1.ConnectivityState.CONNECTING, new picker_1.QueuePicker(this), null); - } - } - } - requestReresolution() { - this.channelControlHelper.requestReresolution(); - } - maybeEnterStickyTransientFailureMode() { - if (!this.allChildrenHaveReportedTF()) { - return; - } - this.requestReresolution(); - this.resetChildrenReportedTF(); - if (this.stickyTransientFailureMode) { - this.calculateAndReportNewState(); - return; - } - this.stickyTransientFailureMode = true; - for (const { subchannel } of this.children) { - subchannel.startConnecting(); - } - this.calculateAndReportNewState(); - } - removeCurrentPick() { - if (this.currentPick !== null) { - this.currentPick.removeConnectivityStateListener(this.subchannelStateListener); - this.channelControlHelper.removeChannelzChild(this.currentPick.getChannelzRef()); - this.currentPick.removeHealthStateWatcher(this.pickedSubchannelHealthListener); - // Unref last, to avoid triggering listeners - this.currentPick.unref(); - this.currentPick = null; - } - } - onSubchannelStateUpdate(subchannel, previousState, newState, errorMessage) { - var _a; - if ((_a = this.currentPick) === null || _a === void 0 ? void 0 : _a.realSubchannelEquals(subchannel)) { - if (newState !== connectivity_state_1.ConnectivityState.READY) { - this.removeCurrentPick(); - this.calculateAndReportNewState(); - } - return; - } - for (const [index, child] of this.children.entries()) { - if (subchannel.realSubchannelEquals(child.subchannel)) { - if (newState === connectivity_state_1.ConnectivityState.READY) { - this.pickSubchannel(child.subchannel); - } - if (newState === connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { - child.hasReportedTransientFailure = true; - if (errorMessage) { - this.lastError = errorMessage; - } - this.maybeEnterStickyTransientFailureMode(); - if (index === this.currentSubchannelIndex) { - this.startNextSubchannelConnecting(index + 1); - } - } - child.subchannel.startConnecting(); - return; - } - } - } - startNextSubchannelConnecting(startIndex) { - clearTimeout(this.connectionDelayTimeout); - for (const [index, child] of this.children.entries()) { - if (index >= startIndex) { - const subchannelState = child.subchannel.getConnectivityState(); - if (subchannelState === connectivity_state_1.ConnectivityState.IDLE || - subchannelState === connectivity_state_1.ConnectivityState.CONNECTING) { - this.startConnecting(index); - return; - } - } - } - this.maybeEnterStickyTransientFailureMode(); - } - /** - * Have a single subchannel in the `subchannels` list start connecting. - * @param subchannelIndex The index into the `subchannels` list. - */ - startConnecting(subchannelIndex) { - var _a, _b; - clearTimeout(this.connectionDelayTimeout); - this.currentSubchannelIndex = subchannelIndex; - if (this.children[subchannelIndex].subchannel.getConnectivityState() === - connectivity_state_1.ConnectivityState.IDLE) { - trace('Start connecting to subchannel with address ' + - this.children[subchannelIndex].subchannel.getAddress()); - process.nextTick(() => { - var _a; - (_a = this.children[subchannelIndex]) === null || _a === void 0 ? void 0 : _a.subchannel.startConnecting(); - }); - } - this.connectionDelayTimeout = setTimeout(() => { - this.startNextSubchannelConnecting(subchannelIndex + 1); - }, CONNECTION_DELAY_INTERVAL_MS); - (_b = (_a = this.connectionDelayTimeout).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - /** - * Declare that the specified subchannel should be used to make requests. - * This functions the same independent of whether subchannel is a member of - * this.children and whether it is equal to this.currentPick. - * Prerequisite: subchannel.getConnectivityState() === READY. - * @param subchannel - */ - pickSubchannel(subchannel) { - trace('Pick subchannel with address ' + subchannel.getAddress()); - this.stickyTransientFailureMode = false; - /* Ref before removeCurrentPick and resetSubchannelList to avoid the - * refcount dropping to 0 during this process. */ - subchannel.ref(); - this.channelControlHelper.addChannelzChild(subchannel.getChannelzRef()); - this.removeCurrentPick(); - this.resetSubchannelList(); - subchannel.addConnectivityStateListener(this.subchannelStateListener); - subchannel.addHealthStateWatcher(this.pickedSubchannelHealthListener); - this.currentPick = subchannel; - clearTimeout(this.connectionDelayTimeout); - this.calculateAndReportNewState(); - } - updateState(newState, picker, errorMessage) { - trace(connectivity_state_1.ConnectivityState[this.currentState] + - ' -> ' + - connectivity_state_1.ConnectivityState[newState]); - this.currentState = newState; - this.channelControlHelper.updateState(newState, picker, errorMessage); - } - resetSubchannelList() { - for (const child of this.children) { - /* Always remoev the connectivity state listener. If the subchannel is - getting picked, it will be re-added then. */ - child.subchannel.removeConnectivityStateListener(this.subchannelStateListener); - /* Refs are counted independently for the children list and the - * currentPick, so we call unref whether or not the child is the - * currentPick. Channelz child references are also refcounted, so - * removeChannelzChild can be handled the same way. */ - child.subchannel.unref(); - this.channelControlHelper.removeChannelzChild(child.subchannel.getChannelzRef()); - } - this.currentSubchannelIndex = 0; - this.children = []; - } - connectToAddressList(addressList, options) { - trace('connectToAddressList([' + addressList.map(address => (0, subchannel_address_1.subchannelAddressToString)(address)) + '])'); - const newChildrenList = addressList.map(address => ({ - subchannel: this.channelControlHelper.createSubchannel(address, options), - hasReportedTransientFailure: false, - })); - for (const { subchannel } of newChildrenList) { - if (subchannel.getConnectivityState() === connectivity_state_1.ConnectivityState.READY) { - this.pickSubchannel(subchannel); - return; - } - } - /* Ref each subchannel before resetting the list, to ensure that - * subchannels shared between the list don't drop to 0 refs during the - * transition. */ - for (const { subchannel } of newChildrenList) { - subchannel.ref(); - this.channelControlHelper.addChannelzChild(subchannel.getChannelzRef()); - } - this.resetSubchannelList(); - this.children = newChildrenList; - for (const { subchannel } of this.children) { - subchannel.addConnectivityStateListener(this.subchannelStateListener); - } - for (const child of this.children) { - if (child.subchannel.getConnectivityState() === - connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { - child.hasReportedTransientFailure = true; - } - } - this.startNextSubchannelConnecting(0); - this.calculateAndReportNewState(); - } - updateAddressList(maybeEndpointList, lbConfig, options, resolutionNote) { - if (!(lbConfig instanceof PickFirstLoadBalancingConfig)) { - return false; - } - if (!maybeEndpointList.ok) { - if (this.children.length === 0 && this.currentPick === null) { - this.channelControlHelper.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker(maybeEndpointList.error), maybeEndpointList.error.details); - } - return true; - } - let endpointList = maybeEndpointList.value; - this.reportHealthStatus = options[REPORT_HEALTH_STATUS_OPTION_NAME]; - /* Previously, an update would be discarded if it was identical to the - * previous update, to minimize churn. Now the DNS resolver is - * rate-limited, so that is less of a concern. */ - if (lbConfig.getShuffleAddressList()) { - endpointList = shuffled(endpointList); - } - const rawAddressList = [].concat(...endpointList.map(endpoint => endpoint.addresses)); - trace('updateAddressList([' + rawAddressList.map(address => (0, subchannel_address_1.subchannelAddressToString)(address)) + '])'); - const addressList = interleaveAddressFamilies(rawAddressList); - this.latestAddressList = addressList; - this.latestOptions = options; - this.connectToAddressList(addressList, options); - this.latestResolutionNote = resolutionNote; - if (rawAddressList.length > 0) { - return true; - } - else { - this.lastError = 'No addresses resolved'; - return false; - } - } - exitIdle() { - if (this.currentState === connectivity_state_1.ConnectivityState.IDLE && - this.latestAddressList) { - this.connectToAddressList(this.latestAddressList, this.latestOptions); - } - } - resetBackoff() { - /* The pick first load balancer does not have a connection backoff, so this - * does nothing */ - } - destroy() { - this.resetSubchannelList(); - this.removeCurrentPick(); - } - getTypeName() { - return TYPE_NAME; - } -} -exports.PickFirstLoadBalancer = PickFirstLoadBalancer; -const LEAF_CONFIG = new PickFirstLoadBalancingConfig(false); -/** - * This class handles the leaf load balancing operations for a single endpoint. - * It is a thin wrapper around a PickFirstLoadBalancer with a different API - * that more closely reflects how it will be used as a leaf balancer. - */ -class LeafLoadBalancer { - constructor(endpoint, channelControlHelper, options, resolutionNote) { - this.endpoint = endpoint; - this.options = options; - this.resolutionNote = resolutionNote; - this.latestState = connectivity_state_1.ConnectivityState.IDLE; - const childChannelControlHelper = (0, load_balancer_1.createChildChannelControlHelper)(channelControlHelper, { - updateState: (connectivityState, picker, errorMessage) => { - this.latestState = connectivityState; - this.latestPicker = picker; - channelControlHelper.updateState(connectivityState, picker, errorMessage); - }, - }); - this.pickFirstBalancer = new PickFirstLoadBalancer(childChannelControlHelper); - this.latestPicker = new picker_1.QueuePicker(this.pickFirstBalancer); - } - startConnecting() { - this.pickFirstBalancer.updateAddressList((0, call_interface_1.statusOrFromValue)([this.endpoint]), LEAF_CONFIG, Object.assign(Object.assign({}, this.options), { [REPORT_HEALTH_STATUS_OPTION_NAME]: true }), this.resolutionNote); - } - /** - * Update the endpoint associated with this LeafLoadBalancer to a new - * endpoint. Does not trigger connection establishment if a connection - * attempt is not already in progress. - * @param newEndpoint - */ - updateEndpoint(newEndpoint, newOptions) { - this.options = newOptions; - this.endpoint = newEndpoint; - if (this.latestState !== connectivity_state_1.ConnectivityState.IDLE) { - this.startConnecting(); - } - } - getConnectivityState() { - return this.latestState; - } - getPicker() { - return this.latestPicker; - } - getEndpoint() { - return this.endpoint; - } - exitIdle() { - this.pickFirstBalancer.exitIdle(); - } - destroy() { - this.pickFirstBalancer.destroy(); - } -} -exports.LeafLoadBalancer = LeafLoadBalancer; -function setup() { - (0, load_balancer_1.registerLoadBalancerType)(TYPE_NAME, PickFirstLoadBalancer, PickFirstLoadBalancingConfig); - (0, load_balancer_1.registerDefaultLoadBalancerType)(TYPE_NAME); -} -//# sourceMappingURL=load-balancer-pick-first.js.map - -/***/ }), - -/***/ 71936: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.RoundRobinLoadBalancer = void 0; -exports.setup = setup; -const load_balancer_1 = __nccwpck_require__(7000); -const connectivity_state_1 = __nccwpck_require__(60778); -const picker_1 = __nccwpck_require__(71663); -const logging = __nccwpck_require__(8536); -const constants_1 = __nccwpck_require__(68288); -const subchannel_address_1 = __nccwpck_require__(97021); -const load_balancer_pick_first_1 = __nccwpck_require__(78639); -const TRACER_NAME = 'round_robin'; -function trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); -} -const TYPE_NAME = 'round_robin'; -class RoundRobinLoadBalancingConfig { - getLoadBalancerName() { - return TYPE_NAME; - } - constructor() { } - toJsonObject() { - return { - [TYPE_NAME]: {}, - }; - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - static createFromJson(obj) { - return new RoundRobinLoadBalancingConfig(); - } -} -class RoundRobinPicker { - constructor(children, nextIndex = 0) { - this.children = children; - this.nextIndex = nextIndex; - } - pick(pickArgs) { - const childPicker = this.children[this.nextIndex].picker; - this.nextIndex = (this.nextIndex + 1) % this.children.length; - return childPicker.pick(pickArgs); - } - /** - * Check what the next subchannel returned would be. Used by the load - * balancer implementation to preserve this part of the picker state if - * possible when a subchannel connects or disconnects. - */ - peekNextEndpoint() { - return this.children[this.nextIndex].endpoint; - } -} -function rotateArray(list, startIndex) { - return [...list.slice(startIndex), ...list.slice(0, startIndex)]; -} -class RoundRobinLoadBalancer { - constructor(channelControlHelper) { - this.channelControlHelper = channelControlHelper; - this.children = []; - this.currentState = connectivity_state_1.ConnectivityState.IDLE; - this.currentReadyPicker = null; - this.updatesPaused = false; - this.lastError = null; - this.childChannelControlHelper = (0, load_balancer_1.createChildChannelControlHelper)(channelControlHelper, { - updateState: (connectivityState, picker, errorMessage) => { - /* Ensure that name resolution is requested again after active - * connections are dropped. This is more aggressive than necessary to - * accomplish that, so we are counting on resolvers to have - * reasonable rate limits. */ - if (this.currentState === connectivity_state_1.ConnectivityState.READY && connectivityState !== connectivity_state_1.ConnectivityState.READY) { - this.channelControlHelper.requestReresolution(); - } - if (errorMessage) { - this.lastError = errorMessage; - } - this.calculateAndUpdateState(); - }, - }); - } - countChildrenWithState(state) { - return this.children.filter(child => child.getConnectivityState() === state) - .length; - } - calculateAndUpdateState() { - if (this.updatesPaused) { - return; - } - if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.READY) > 0) { - const readyChildren = this.children.filter(child => child.getConnectivityState() === connectivity_state_1.ConnectivityState.READY); - let index = 0; - if (this.currentReadyPicker !== null) { - const nextPickedEndpoint = this.currentReadyPicker.peekNextEndpoint(); - index = readyChildren.findIndex(child => (0, subchannel_address_1.endpointEqual)(child.getEndpoint(), nextPickedEndpoint)); - if (index < 0) { - index = 0; - } - } - this.updateState(connectivity_state_1.ConnectivityState.READY, new RoundRobinPicker(readyChildren.map(child => ({ - endpoint: child.getEndpoint(), - picker: child.getPicker(), - })), index), null); - } - else if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.CONNECTING) > 0) { - this.updateState(connectivity_state_1.ConnectivityState.CONNECTING, new picker_1.QueuePicker(this), null); - } - else if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) > 0) { - const errorMessage = `round_robin: No connection established. Last error: ${this.lastError}`; - this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ - details: errorMessage, - }), errorMessage); - } - else { - this.updateState(connectivity_state_1.ConnectivityState.IDLE, new picker_1.QueuePicker(this), null); - } - /* round_robin should keep all children connected, this is how we do that. - * We can't do this more efficiently in the individual child's updateState - * callback because that doesn't have a reference to which child the state - * change is associated with. */ - for (const child of this.children) { - if (child.getConnectivityState() === connectivity_state_1.ConnectivityState.IDLE) { - child.exitIdle(); - } - } - } - updateState(newState, picker, errorMessage) { - trace(connectivity_state_1.ConnectivityState[this.currentState] + - ' -> ' + - connectivity_state_1.ConnectivityState[newState]); - if (newState === connectivity_state_1.ConnectivityState.READY) { - this.currentReadyPicker = picker; - } - else { - this.currentReadyPicker = null; - } - this.currentState = newState; - this.channelControlHelper.updateState(newState, picker, errorMessage); - } - resetSubchannelList() { - for (const child of this.children) { - child.destroy(); - } - this.children = []; - } - updateAddressList(maybeEndpointList, lbConfig, options, resolutionNote) { - if (!(lbConfig instanceof RoundRobinLoadBalancingConfig)) { - return false; - } - if (!maybeEndpointList.ok) { - if (this.children.length === 0) { - this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker(maybeEndpointList.error), maybeEndpointList.error.details); - } - return true; - } - const startIndex = (Math.random() * maybeEndpointList.value.length) | 0; - const endpointList = rotateArray(maybeEndpointList.value, startIndex); - this.resetSubchannelList(); - if (endpointList.length === 0) { - const errorMessage = `No addresses resolved. Resolution note: ${resolutionNote}`; - this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ details: errorMessage }), errorMessage); - } - trace('Connect to endpoint list ' + endpointList.map(subchannel_address_1.endpointToString)); - this.updatesPaused = true; - this.children = endpointList.map(endpoint => new load_balancer_pick_first_1.LeafLoadBalancer(endpoint, this.childChannelControlHelper, options, resolutionNote)); - for (const child of this.children) { - child.startConnecting(); - } - this.updatesPaused = false; - this.calculateAndUpdateState(); - return true; - } - exitIdle() { - /* The round_robin LB policy is only in the IDLE state if it has no - * addresses to try to connect to and it has no picked subchannel. - * In that case, there is no meaningful action that can be taken here. */ - } - resetBackoff() { - // This LB policy has no backoff to reset - } - destroy() { - this.resetSubchannelList(); - } - getTypeName() { - return TYPE_NAME; - } -} -exports.RoundRobinLoadBalancer = RoundRobinLoadBalancer; -function setup() { - (0, load_balancer_1.registerLoadBalancerType)(TYPE_NAME, RoundRobinLoadBalancer, RoundRobinLoadBalancingConfig); -} -//# sourceMappingURL=load-balancer-round-robin.js.map - -/***/ }), - -/***/ 47616: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2025 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.WeightedRoundRobinLoadBalancingConfig = void 0; -exports.setup = setup; -const connectivity_state_1 = __nccwpck_require__(60778); -const constants_1 = __nccwpck_require__(68288); -const duration_1 = __nccwpck_require__(63929); -const load_balancer_1 = __nccwpck_require__(7000); -const load_balancer_pick_first_1 = __nccwpck_require__(78639); -const logging = __nccwpck_require__(8536); -const orca_1 = __nccwpck_require__(82124); -const picker_1 = __nccwpck_require__(71663); -const priority_queue_1 = __nccwpck_require__(58291); -const subchannel_address_1 = __nccwpck_require__(97021); -const TRACER_NAME = 'weighted_round_robin'; -function trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); -} -const TYPE_NAME = 'weighted_round_robin'; -const DEFAULT_OOB_REPORTING_PERIOD_MS = 10000; -const DEFAULT_BLACKOUT_PERIOD_MS = 10000; -const DEFAULT_WEIGHT_EXPIRATION_PERIOD_MS = 3 * 60000; -const DEFAULT_WEIGHT_UPDATE_PERIOD_MS = 1000; -const DEFAULT_ERROR_UTILIZATION_PENALTY = 1; -function validateFieldType(obj, fieldName, expectedType) { - if (fieldName in obj && - obj[fieldName] !== undefined && - typeof obj[fieldName] !== expectedType) { - throw new Error(`weighted round robin config ${fieldName} parse error: expected ${expectedType}, got ${typeof obj[fieldName]}`); - } -} -function parseDurationField(obj, fieldName) { - if (fieldName in obj && obj[fieldName] !== undefined && obj[fieldName] !== null) { - let durationObject; - if ((0, duration_1.isDuration)(obj[fieldName])) { - durationObject = obj[fieldName]; - } - else if ((0, duration_1.isDurationMessage)(obj[fieldName])) { - durationObject = (0, duration_1.durationMessageToDuration)(obj[fieldName]); - } - else if (typeof obj[fieldName] === 'string') { - const parsedDuration = (0, duration_1.parseDuration)(obj[fieldName]); - if (!parsedDuration) { - throw new Error(`weighted round robin config ${fieldName}: failed to parse duration string ${obj[fieldName]}`); - } - durationObject = parsedDuration; - } - else { - throw new Error(`weighted round robin config ${fieldName}: expected duration, got ${typeof obj[fieldName]}`); - } - return (0, duration_1.durationToMs)(durationObject); - } - return null; -} -class WeightedRoundRobinLoadBalancingConfig { - constructor(enableOobLoadReport, oobLoadReportingPeriodMs, blackoutPeriodMs, weightExpirationPeriodMs, weightUpdatePeriodMs, errorUtilizationPenalty) { - this.enableOobLoadReport = enableOobLoadReport !== null && enableOobLoadReport !== void 0 ? enableOobLoadReport : false; - this.oobLoadReportingPeriodMs = oobLoadReportingPeriodMs !== null && oobLoadReportingPeriodMs !== void 0 ? oobLoadReportingPeriodMs : DEFAULT_OOB_REPORTING_PERIOD_MS; - this.blackoutPeriodMs = blackoutPeriodMs !== null && blackoutPeriodMs !== void 0 ? blackoutPeriodMs : DEFAULT_BLACKOUT_PERIOD_MS; - this.weightExpirationPeriodMs = weightExpirationPeriodMs !== null && weightExpirationPeriodMs !== void 0 ? weightExpirationPeriodMs : DEFAULT_WEIGHT_EXPIRATION_PERIOD_MS; - this.weightUpdatePeriodMs = Math.max(weightUpdatePeriodMs !== null && weightUpdatePeriodMs !== void 0 ? weightUpdatePeriodMs : DEFAULT_WEIGHT_UPDATE_PERIOD_MS, 100); - this.errorUtilizationPenalty = errorUtilizationPenalty !== null && errorUtilizationPenalty !== void 0 ? errorUtilizationPenalty : DEFAULT_ERROR_UTILIZATION_PENALTY; - } - getLoadBalancerName() { - return TYPE_NAME; - } - toJsonObject() { - return { - enable_oob_load_report: this.enableOobLoadReport, - oob_load_reporting_period: (0, duration_1.durationToString)((0, duration_1.msToDuration)(this.oobLoadReportingPeriodMs)), - blackout_period: (0, duration_1.durationToString)((0, duration_1.msToDuration)(this.blackoutPeriodMs)), - weight_expiration_period: (0, duration_1.durationToString)((0, duration_1.msToDuration)(this.weightExpirationPeriodMs)), - weight_update_period: (0, duration_1.durationToString)((0, duration_1.msToDuration)(this.weightUpdatePeriodMs)), - error_utilization_penalty: this.errorUtilizationPenalty - }; - } - static createFromJson(obj) { - validateFieldType(obj, 'enable_oob_load_report', 'boolean'); - validateFieldType(obj, 'error_utilization_penalty', 'number'); - if (obj.error_utilization_penalty < 0) { - throw new Error('weighted round robin config error_utilization_penalty < 0'); - } - return new WeightedRoundRobinLoadBalancingConfig(obj.enable_oob_load_report, parseDurationField(obj, 'oob_load_reporting_period'), parseDurationField(obj, 'blackout_period'), parseDurationField(obj, 'weight_expiration_period'), parseDurationField(obj, 'weight_update_period'), obj.error_utilization_penalty); - } - getEnableOobLoadReport() { - return this.enableOobLoadReport; - } - getOobLoadReportingPeriodMs() { - return this.oobLoadReportingPeriodMs; - } - getBlackoutPeriodMs() { - return this.blackoutPeriodMs; - } - getWeightExpirationPeriodMs() { - return this.weightExpirationPeriodMs; - } - getWeightUpdatePeriodMs() { - return this.weightUpdatePeriodMs; - } - getErrorUtilizationPenalty() { - return this.errorUtilizationPenalty; - } -} -exports.WeightedRoundRobinLoadBalancingConfig = WeightedRoundRobinLoadBalancingConfig; -class WeightedRoundRobinPicker { - constructor(children, metricsHandler) { - this.metricsHandler = metricsHandler; - this.queue = new priority_queue_1.PriorityQueue((a, b) => a.deadline < b.deadline); - const positiveWeight = children.filter(picker => picker.weight > 0); - let averageWeight; - if (positiveWeight.length < 2) { - averageWeight = 1; - } - else { - let weightSum = 0; - for (const { weight } of positiveWeight) { - weightSum += weight; - } - averageWeight = weightSum / positiveWeight.length; - } - for (const child of children) { - const period = child.weight > 0 ? 1 / child.weight : averageWeight; - this.queue.push({ - endpointName: child.endpointName, - picker: child.picker, - period: period, - deadline: Math.random() * period - }); - } - } - pick(pickArgs) { - const entry = this.queue.pop(); - this.queue.push(Object.assign(Object.assign({}, entry), { deadline: entry.deadline + entry.period })); - const childPick = entry.picker.pick(pickArgs); - if (childPick.pickResultType === picker_1.PickResultType.COMPLETE) { - if (this.metricsHandler) { - return Object.assign(Object.assign({}, childPick), { onCallEnded: (0, orca_1.createMetricsReader)(loadReport => this.metricsHandler(loadReport, entry.endpointName), childPick.onCallEnded) }); - } - else { - const subchannelWrapper = childPick.subchannel; - return Object.assign(Object.assign({}, childPick), { subchannel: subchannelWrapper.getWrappedSubchannel() }); - } - } - else { - return childPick; - } - } -} -class WeightedRoundRobinLoadBalancer { - constructor(channelControlHelper) { - this.channelControlHelper = channelControlHelper; - this.latestConfig = null; - this.children = new Map(); - this.currentState = connectivity_state_1.ConnectivityState.IDLE; - this.updatesPaused = false; - this.lastError = null; - this.weightUpdateTimer = null; - } - countChildrenWithState(state) { - let count = 0; - for (const entry of this.children.values()) { - if (entry.child.getConnectivityState() === state) { - count += 1; - } - } - return count; - } - updateWeight(entry, loadReport) { - var _a, _b; - const qps = loadReport.rps_fractional; - let utilization = loadReport.application_utilization; - if (utilization > 0 && qps > 0) { - utilization += (loadReport.eps / qps) * ((_b = (_a = this.latestConfig) === null || _a === void 0 ? void 0 : _a.getErrorUtilizationPenalty()) !== null && _b !== void 0 ? _b : 0); - } - const newWeight = utilization === 0 ? 0 : qps / utilization; - if (newWeight === 0) { - return; - } - const now = new Date(); - if (entry.nonEmptySince === null) { - entry.nonEmptySince = now; - } - entry.lastUpdated = now; - entry.weight = newWeight; - } - getWeight(entry) { - if (!this.latestConfig) { - return 0; - } - const now = new Date().getTime(); - if (now - entry.lastUpdated.getTime() >= this.latestConfig.getWeightExpirationPeriodMs()) { - entry.nonEmptySince = null; - return 0; - } - const blackoutPeriod = this.latestConfig.getBlackoutPeriodMs(); - if (blackoutPeriod > 0 && (entry.nonEmptySince === null || now - entry.nonEmptySince.getTime() < blackoutPeriod)) { - return 0; - } - return entry.weight; - } - calculateAndUpdateState() { - if (this.updatesPaused || !this.latestConfig) { - return; - } - if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.READY) > 0) { - const weightedPickers = []; - for (const [endpoint, entry] of this.children) { - if (entry.child.getConnectivityState() !== connectivity_state_1.ConnectivityState.READY) { - continue; - } - weightedPickers.push({ - endpointName: endpoint, - picker: entry.child.getPicker(), - weight: this.getWeight(entry) - }); - } - trace('Created picker with weights: ' + weightedPickers.map(entry => entry.endpointName + ':' + entry.weight).join(',')); - let metricsHandler; - if (!this.latestConfig.getEnableOobLoadReport()) { - metricsHandler = (loadReport, endpointName) => { - const childEntry = this.children.get(endpointName); - if (childEntry) { - this.updateWeight(childEntry, loadReport); - } - }; - } - else { - metricsHandler = null; - } - this.updateState(connectivity_state_1.ConnectivityState.READY, new WeightedRoundRobinPicker(weightedPickers, metricsHandler), null); - } - else if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.CONNECTING) > 0) { - this.updateState(connectivity_state_1.ConnectivityState.CONNECTING, new picker_1.QueuePicker(this), null); - } - else if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) > 0) { - const errorMessage = `weighted_round_robin: No connection established. Last error: ${this.lastError}`; - this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ - details: errorMessage, - }), errorMessage); - } - else { - this.updateState(connectivity_state_1.ConnectivityState.IDLE, new picker_1.QueuePicker(this), null); - } - /* round_robin should keep all children connected, this is how we do that. - * We can't do this more efficiently in the individual child's updateState - * callback because that doesn't have a reference to which child the state - * change is associated with. */ - for (const { child } of this.children.values()) { - if (child.getConnectivityState() === connectivity_state_1.ConnectivityState.IDLE) { - child.exitIdle(); - } - } - } - updateState(newState, picker, errorMessage) { - trace(connectivity_state_1.ConnectivityState[this.currentState] + - ' -> ' + - connectivity_state_1.ConnectivityState[newState]); - this.currentState = newState; - this.channelControlHelper.updateState(newState, picker, errorMessage); - } - updateAddressList(maybeEndpointList, lbConfig, options, resolutionNote) { - var _a, _b; - if (!(lbConfig instanceof WeightedRoundRobinLoadBalancingConfig)) { - return false; - } - if (!maybeEndpointList.ok) { - if (this.children.size === 0) { - this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker(maybeEndpointList.error), maybeEndpointList.error.details); - } - return true; - } - if (maybeEndpointList.value.length === 0) { - const errorMessage = `No addresses resolved. Resolution note: ${resolutionNote}`; - this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ details: errorMessage }), errorMessage); - return false; - } - trace('Connect to endpoint list ' + maybeEndpointList.value.map(subchannel_address_1.endpointToString)); - const now = new Date(); - const seenEndpointNames = new Set(); - this.updatesPaused = true; - this.latestConfig = lbConfig; - for (const endpoint of maybeEndpointList.value) { - const name = (0, subchannel_address_1.endpointToString)(endpoint); - seenEndpointNames.add(name); - let entry = this.children.get(name); - if (!entry) { - entry = { - child: new load_balancer_pick_first_1.LeafLoadBalancer(endpoint, (0, load_balancer_1.createChildChannelControlHelper)(this.channelControlHelper, { - updateState: (connectivityState, picker, errorMessage) => { - /* Ensure that name resolution is requested again after active - * connections are dropped. This is more aggressive than necessary to - * accomplish that, so we are counting on resolvers to have - * reasonable rate limits. */ - if (this.currentState === connectivity_state_1.ConnectivityState.READY && connectivityState !== connectivity_state_1.ConnectivityState.READY) { - this.channelControlHelper.requestReresolution(); - } - if (connectivityState === connectivity_state_1.ConnectivityState.READY) { - entry.nonEmptySince = null; - } - if (errorMessage) { - this.lastError = errorMessage; - } - this.calculateAndUpdateState(); - }, - createSubchannel: (subchannelAddress, subchannelArgs) => { - const subchannel = this.channelControlHelper.createSubchannel(subchannelAddress, subchannelArgs); - if (entry === null || entry === void 0 ? void 0 : entry.oobMetricsListener) { - return new orca_1.OrcaOobMetricsSubchannelWrapper(subchannel, entry.oobMetricsListener, this.latestConfig.getOobLoadReportingPeriodMs()); - } - else { - return subchannel; - } - } - }), options, resolutionNote), - lastUpdated: now, - nonEmptySince: null, - weight: 0, - oobMetricsListener: null - }; - this.children.set(name, entry); - } - if (lbConfig.getEnableOobLoadReport()) { - entry.oobMetricsListener = loadReport => { - this.updateWeight(entry, loadReport); - }; - } - else { - entry.oobMetricsListener = null; - } - } - for (const [endpointName, entry] of this.children) { - if (seenEndpointNames.has(endpointName)) { - entry.child.startConnecting(); - } - else { - entry.child.destroy(); - this.children.delete(endpointName); - } - } - this.updatesPaused = false; - this.calculateAndUpdateState(); - if (this.weightUpdateTimer) { - clearInterval(this.weightUpdateTimer); - } - this.weightUpdateTimer = (_b = (_a = setInterval(() => { - if (this.currentState === connectivity_state_1.ConnectivityState.READY) { - this.calculateAndUpdateState(); - } - }, lbConfig.getWeightUpdatePeriodMs())).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - return true; - } - exitIdle() { - /* The weighted_round_robin LB policy is only in the IDLE state if it has - * no addresses to try to connect to and it has no picked subchannel. - * In that case, there is no meaningful action that can be taken here. */ - } - resetBackoff() { - // This LB policy has no backoff to reset - } - destroy() { - for (const entry of this.children.values()) { - entry.child.destroy(); - } - this.children.clear(); - if (this.weightUpdateTimer) { - clearInterval(this.weightUpdateTimer); - } - } - getTypeName() { - return TYPE_NAME; - } -} -function setup() { - (0, load_balancer_1.registerLoadBalancerType)(TYPE_NAME, WeightedRoundRobinLoadBalancer, WeightedRoundRobinLoadBalancingConfig); -} -//# sourceMappingURL=load-balancer-weighted-round-robin.js.map - -/***/ }), - -/***/ 7000: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.createChildChannelControlHelper = createChildChannelControlHelper; -exports.registerLoadBalancerType = registerLoadBalancerType; -exports.registerDefaultLoadBalancerType = registerDefaultLoadBalancerType; -exports.createLoadBalancer = createLoadBalancer; -exports.isLoadBalancerNameRegistered = isLoadBalancerNameRegistered; -exports.parseLoadBalancingConfig = parseLoadBalancingConfig; -exports.getDefaultConfig = getDefaultConfig; -exports.selectLbConfigFromList = selectLbConfigFromList; -const logging_1 = __nccwpck_require__(8536); -const constants_1 = __nccwpck_require__(68288); -/** - * Create a child ChannelControlHelper that overrides some methods of the - * parent while letting others pass through to the parent unmodified. This - * allows other code to create these children without needing to know about - * all of the methods to be passed through. - * @param parent - * @param overrides - */ -function createChildChannelControlHelper(parent, overrides) { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; - return { - createSubchannel: (_b = (_a = overrides.createSubchannel) === null || _a === void 0 ? void 0 : _a.bind(overrides)) !== null && _b !== void 0 ? _b : parent.createSubchannel.bind(parent), - updateState: (_d = (_c = overrides.updateState) === null || _c === void 0 ? void 0 : _c.bind(overrides)) !== null && _d !== void 0 ? _d : parent.updateState.bind(parent), - requestReresolution: (_f = (_e = overrides.requestReresolution) === null || _e === void 0 ? void 0 : _e.bind(overrides)) !== null && _f !== void 0 ? _f : parent.requestReresolution.bind(parent), - addChannelzChild: (_h = (_g = overrides.addChannelzChild) === null || _g === void 0 ? void 0 : _g.bind(overrides)) !== null && _h !== void 0 ? _h : parent.addChannelzChild.bind(parent), - removeChannelzChild: (_k = (_j = overrides.removeChannelzChild) === null || _j === void 0 ? void 0 : _j.bind(overrides)) !== null && _k !== void 0 ? _k : parent.removeChannelzChild.bind(parent), - }; -} -const registeredLoadBalancerTypes = {}; -let defaultLoadBalancerType = null; -function registerLoadBalancerType(typeName, loadBalancerType, loadBalancingConfigType) { - registeredLoadBalancerTypes[typeName] = { - LoadBalancer: loadBalancerType, - LoadBalancingConfig: loadBalancingConfigType, - }; -} -function registerDefaultLoadBalancerType(typeName) { - defaultLoadBalancerType = typeName; -} -function createLoadBalancer(config, channelControlHelper) { - const typeName = config.getLoadBalancerName(); - if (typeName in registeredLoadBalancerTypes) { - return new registeredLoadBalancerTypes[typeName].LoadBalancer(channelControlHelper); - } - else { - return null; - } -} -function isLoadBalancerNameRegistered(typeName) { - return typeName in registeredLoadBalancerTypes; -} -function parseLoadBalancingConfig(rawConfig) { - const keys = Object.keys(rawConfig); - if (keys.length !== 1) { - throw new Error('Provided load balancing config has multiple conflicting entries'); - } - const typeName = keys[0]; - if (typeName in registeredLoadBalancerTypes) { - try { - return registeredLoadBalancerTypes[typeName].LoadBalancingConfig.createFromJson(rawConfig[typeName]); - } - catch (e) { - throw new Error(`${typeName}: ${e.message}`); - } - } - else { - throw new Error(`Unrecognized load balancing config name ${typeName}`); - } -} -function getDefaultConfig() { - if (!defaultLoadBalancerType) { - throw new Error('No default load balancer type registered'); - } - return new registeredLoadBalancerTypes[defaultLoadBalancerType].LoadBalancingConfig(); -} -function selectLbConfigFromList(configs, fallbackTodefault = false) { - for (const config of configs) { - try { - return parseLoadBalancingConfig(config); - } - catch (e) { - (0, logging_1.log)(constants_1.LogVerbosity.DEBUG, 'Config parsing failed with error', e.message); - continue; - } - } - if (fallbackTodefault) { - if (defaultLoadBalancerType) { - return new registeredLoadBalancerTypes[defaultLoadBalancerType].LoadBalancingConfig(); - } - else { - return null; - } - } - else { - return null; - } -} -//# sourceMappingURL=load-balancer.js.map - -/***/ }), - -/***/ 58944: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LoadBalancingCall = void 0; -const connectivity_state_1 = __nccwpck_require__(60778); -const constants_1 = __nccwpck_require__(68288); -const deadline_1 = __nccwpck_require__(52173); -const metadata_1 = __nccwpck_require__(36100); -const picker_1 = __nccwpck_require__(71663); -const uri_parser_1 = __nccwpck_require__(56027); -const logging = __nccwpck_require__(8536); -const control_plane_status_1 = __nccwpck_require__(39962); -const http2 = __nccwpck_require__(85675); -const TRACER_NAME = 'load_balancing_call'; -class LoadBalancingCall { - constructor(channel, callConfig, methodName, host, credentials, deadline, callNumber) { - var _a, _b; - this.channel = channel; - this.callConfig = callConfig; - this.methodName = methodName; - this.host = host; - this.credentials = credentials; - this.deadline = deadline; - this.callNumber = callNumber; - this.child = null; - this.readPending = false; - this.pendingMessage = null; - this.pendingHalfClose = false; - this.ended = false; - this.metadata = null; - this.listener = null; - this.onCallEnded = null; - this.childStartTime = null; - const splitPath = this.methodName.split('/'); - let serviceName = ''; - /* The standard path format is "/{serviceName}/{methodName}", so if we split - * by '/', the first item should be empty and the second should be the - * service name */ - if (splitPath.length >= 2) { - serviceName = splitPath[1]; - } - const hostname = (_b = (_a = (0, uri_parser_1.splitHostPort)(this.host)) === null || _a === void 0 ? void 0 : _a.host) !== null && _b !== void 0 ? _b : 'localhost'; - /* Currently, call credentials are only allowed on HTTPS connections, so we - * can assume that the scheme is "https" */ - this.serviceUrl = `https://${hostname}/${serviceName}`; - this.startTime = new Date(); - } - getDeadlineInfo() { - var _a, _b; - const deadlineInfo = []; - if (this.childStartTime) { - if (this.childStartTime > this.startTime) { - if ((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.getOptions().waitForReady) { - deadlineInfo.push('wait_for_ready'); - } - deadlineInfo.push(`LB pick: ${(0, deadline_1.formatDateDifference)(this.startTime, this.childStartTime)}`); - } - deadlineInfo.push(...this.child.getDeadlineInfo()); - return deadlineInfo; - } - else { - if ((_b = this.metadata) === null || _b === void 0 ? void 0 : _b.getOptions().waitForReady) { - deadlineInfo.push('wait_for_ready'); - } - deadlineInfo.push('Waiting for LB pick'); - } - return deadlineInfo; - } - trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '[' + this.callNumber + '] ' + text); - } - outputStatus(status, progress) { - var _a, _b; - if (!this.ended) { - this.ended = true; - this.trace('ended with status: code=' + - status.code + - ' details="' + - status.details + - '" start time=' + - this.startTime.toISOString()); - const finalStatus = Object.assign(Object.assign({}, status), { progress }); - (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onReceiveStatus(finalStatus); - (_b = this.onCallEnded) === null || _b === void 0 ? void 0 : _b.call(this, finalStatus.code, finalStatus.details, finalStatus.metadata); - } - } - doPick() { - var _a, _b; - if (this.ended) { - return; - } - if (!this.metadata) { - throw new Error('doPick called before start'); - } - this.trace('Pick called'); - const finalMetadata = this.metadata.clone(); - const pickResult = this.channel.doPick(finalMetadata, this.callConfig.pickInformation); - const subchannelString = pickResult.subchannel - ? '(' + - pickResult.subchannel.getChannelzRef().id + - ') ' + - pickResult.subchannel.getAddress() - : '' + pickResult.subchannel; - this.trace('Pick result: ' + - picker_1.PickResultType[pickResult.pickResultType] + - ' subchannel: ' + - subchannelString + - ' status: ' + - ((_a = pickResult.status) === null || _a === void 0 ? void 0 : _a.code) + - ' ' + - ((_b = pickResult.status) === null || _b === void 0 ? void 0 : _b.details)); - switch (pickResult.pickResultType) { - case picker_1.PickResultType.COMPLETE: - const combinedCallCredentials = this.credentials.compose(pickResult.subchannel.getCallCredentials()); - combinedCallCredentials - .generateMetadata({ method_name: this.methodName, service_url: this.serviceUrl }) - .then(credsMetadata => { - var _a; - /* If this call was cancelled (e.g. by the deadline) before - * metadata generation finished, we shouldn't do anything with - * it. */ - if (this.ended) { - this.trace('Credentials metadata generation finished after call ended'); - return; - } - finalMetadata.merge(credsMetadata); - if (finalMetadata.get('authorization').length > 1) { - this.outputStatus({ - code: constants_1.Status.INTERNAL, - details: '"authorization" metadata cannot have multiple values', - metadata: new metadata_1.Metadata(), - }, 'PROCESSED'); - } - if (pickResult.subchannel.getConnectivityState() !== - connectivity_state_1.ConnectivityState.READY) { - this.trace('Picked subchannel ' + - subchannelString + - ' has state ' + - connectivity_state_1.ConnectivityState[pickResult.subchannel.getConnectivityState()] + - ' after getting credentials metadata. Retrying pick'); - this.doPick(); - return; - } - if (this.deadline !== Infinity) { - finalMetadata.set('grpc-timeout', (0, deadline_1.getDeadlineTimeoutString)(this.deadline)); - } - try { - this.child = pickResult - .subchannel.getRealSubchannel() - .createCall(finalMetadata, this.host, this.methodName, { - onReceiveMetadata: metadata => { - this.trace('Received metadata'); - this.listener.onReceiveMetadata(metadata); - }, - onReceiveMessage: message => { - this.trace('Received message'); - this.listener.onReceiveMessage(message); - }, - onReceiveStatus: status => { - this.trace('Received status'); - if (status.rstCode === - http2.constants.NGHTTP2_REFUSED_STREAM) { - this.outputStatus(status, 'REFUSED'); - } - else { - this.outputStatus(status, 'PROCESSED'); - } - }, - }); - this.childStartTime = new Date(); - } - catch (error) { - this.trace('Failed to start call on picked subchannel ' + - subchannelString + - ' with error ' + - error.message); - this.outputStatus({ - code: constants_1.Status.INTERNAL, - details: 'Failed to start HTTP/2 stream with error ' + - error.message, - metadata: new metadata_1.Metadata(), - }, 'NOT_STARTED'); - return; - } - (_a = pickResult.onCallStarted) === null || _a === void 0 ? void 0 : _a.call(pickResult); - this.onCallEnded = pickResult.onCallEnded; - this.trace('Created child call [' + this.child.getCallNumber() + ']'); - if (this.readPending) { - this.child.startRead(); - } - if (this.pendingMessage) { - this.child.sendMessageWithContext(this.pendingMessage.context, this.pendingMessage.message); - } - if (this.pendingHalfClose) { - this.child.halfClose(); - } - }, (error) => { - // We assume the error code isn't 0 (Status.OK) - const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(typeof error.code === 'number' ? error.code : constants_1.Status.UNKNOWN, `Getting metadata from plugin failed with error: ${error.message}`); - this.outputStatus({ - code: code, - details: details, - metadata: new metadata_1.Metadata(), - }, 'PROCESSED'); - }); - break; - case picker_1.PickResultType.DROP: - const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(pickResult.status.code, pickResult.status.details); - setImmediate(() => { - this.outputStatus({ code, details, metadata: pickResult.status.metadata }, 'DROP'); - }); - break; - case picker_1.PickResultType.TRANSIENT_FAILURE: - if (this.metadata.getOptions().waitForReady) { - this.channel.queueCallForPick(this); - } - else { - const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(pickResult.status.code, pickResult.status.details); - setImmediate(() => { - this.outputStatus({ code, details, metadata: pickResult.status.metadata }, 'PROCESSED'); - }); - } - break; - case picker_1.PickResultType.QUEUE: - this.channel.queueCallForPick(this); - } - } - cancelWithStatus(status, details) { - var _a; - this.trace('cancelWithStatus code: ' + status + ' details: "' + details + '"'); - (_a = this.child) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(status, details); - this.outputStatus({ code: status, details: details, metadata: new metadata_1.Metadata() }, 'PROCESSED'); - } - getPeer() { - var _a, _b; - return (_b = (_a = this.child) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : this.channel.getTarget(); - } - start(metadata, listener) { - this.trace('start called'); - this.listener = listener; - this.metadata = metadata; - this.doPick(); - } - sendMessageWithContext(context, message) { - this.trace('write() called with message of length ' + message.length); - if (this.child) { - this.child.sendMessageWithContext(context, message); - } - else { - this.pendingMessage = { context, message }; - } - } - startRead() { - this.trace('startRead called'); - if (this.child) { - this.child.startRead(); - } - else { - this.readPending = true; - } - } - halfClose() { - this.trace('halfClose called'); - if (this.child) { - this.child.halfClose(); - } - else { - this.pendingHalfClose = true; - } - } - setCredentials(credentials) { - throw new Error('Method not implemented.'); - } - getCallNumber() { - return this.callNumber; - } - getAuthContext() { - if (this.child) { - return this.child.getAuthContext(); - } - else { - return null; - } - } -} -exports.LoadBalancingCall = LoadBalancingCall; -//# sourceMappingURL=load-balancing-call.js.map - -/***/ }), - -/***/ 8536: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -var _a, _b, _c, _d; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.log = exports.setLoggerVerbosity = exports.setLogger = exports.getLogger = void 0; -exports.trace = trace; -exports.isTracerEnabled = isTracerEnabled; -const constants_1 = __nccwpck_require__(68288); -const process_1 = __nccwpck_require__(932); -const clientVersion = (__nccwpck_require__(9943)/* .version */ .rE); -const DEFAULT_LOGGER = { - error: (message, ...optionalParams) => { - console.error('E ' + message, ...optionalParams); - }, - info: (message, ...optionalParams) => { - console.error('I ' + message, ...optionalParams); - }, - debug: (message, ...optionalParams) => { - console.error('D ' + message, ...optionalParams); - }, -}; -let _logger = DEFAULT_LOGGER; -let _logVerbosity = constants_1.LogVerbosity.ERROR; -const verbosityString = (_b = (_a = process.env.GRPC_NODE_VERBOSITY) !== null && _a !== void 0 ? _a : process.env.GRPC_VERBOSITY) !== null && _b !== void 0 ? _b : ''; -switch (verbosityString.toUpperCase()) { - case 'DEBUG': - _logVerbosity = constants_1.LogVerbosity.DEBUG; - break; - case 'INFO': - _logVerbosity = constants_1.LogVerbosity.INFO; - break; - case 'ERROR': - _logVerbosity = constants_1.LogVerbosity.ERROR; - break; - case 'NONE': - _logVerbosity = constants_1.LogVerbosity.NONE; - break; - default: - // Ignore any other values -} -const getLogger = () => { - return _logger; -}; -exports.getLogger = getLogger; -const setLogger = (logger) => { - _logger = logger; -}; -exports.setLogger = setLogger; -const setLoggerVerbosity = (verbosity) => { - _logVerbosity = verbosity; -}; -exports.setLoggerVerbosity = setLoggerVerbosity; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -const log = (severity, ...args) => { - let logFunction; - if (severity >= _logVerbosity) { - switch (severity) { - case constants_1.LogVerbosity.DEBUG: - logFunction = _logger.debug; - break; - case constants_1.LogVerbosity.INFO: - logFunction = _logger.info; - break; - case constants_1.LogVerbosity.ERROR: - logFunction = _logger.error; - break; - } - /* Fall back to _logger.error when other methods are not available for - * compatiblity with older behavior that always logged to _logger.error */ - if (!logFunction) { - logFunction = _logger.error; - } - if (logFunction) { - logFunction.bind(_logger)(...args); - } - } -}; -exports.log = log; -const tracersString = (_d = (_c = process.env.GRPC_NODE_TRACE) !== null && _c !== void 0 ? _c : process.env.GRPC_TRACE) !== null && _d !== void 0 ? _d : ''; -const enabledTracers = new Set(); -const disabledTracers = new Set(); -for (const tracerName of tracersString.split(',')) { - if (tracerName.startsWith('-')) { - disabledTracers.add(tracerName.substring(1)); - } - else { - enabledTracers.add(tracerName); - } -} -const allEnabled = enabledTracers.has('all'); -function trace(severity, tracer, text) { - if (isTracerEnabled(tracer)) { - (0, exports.log)(severity, new Date().toISOString() + - ' | v' + - clientVersion + - ' ' + - process_1.pid + - ' | ' + - tracer + - ' | ' + - text); - } -} -function isTracerEnabled(tracer) { - return (!disabledTracers.has(tracer) && (allEnabled || enabledTracers.has(tracer))); -} -//# sourceMappingURL=logging.js.map - -/***/ }), - -/***/ 76983: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.makeClientConstructor = makeClientConstructor; -exports.loadPackageDefinition = loadPackageDefinition; -const client_1 = __nccwpck_require__(54210); -/** - * Map with short names for each of the requester maker functions. Used in - * makeClientConstructor - * @private - */ -const requesterFuncs = { - unary: client_1.Client.prototype.makeUnaryRequest, - server_stream: client_1.Client.prototype.makeServerStreamRequest, - client_stream: client_1.Client.prototype.makeClientStreamRequest, - bidi: client_1.Client.prototype.makeBidiStreamRequest, -}; -/** - * Returns true, if given key is included in the blacklisted - * keys. - * @param key key for check, string. - */ -function isPrototypePolluted(key) { - return ['__proto__', 'prototype', 'constructor'].includes(key); -} -/** - * Creates a constructor for a client with the given methods, as specified in - * the methods argument. The resulting class will have an instance method for - * each method in the service, which is a partial application of one of the - * [Client]{@link grpc.Client} request methods, depending on `requestSerialize` - * and `responseSerialize`, with the `method`, `serialize`, and `deserialize` - * arguments predefined. - * @param methods An object mapping method names to - * method attributes - * @param serviceName The fully qualified name of the service - * @param classOptions An options object. - * @return New client constructor, which is a subclass of - * {@link grpc.Client}, and has the same arguments as that constructor. - */ -function makeClientConstructor(methods, serviceName, classOptions) { - if (!classOptions) { - classOptions = {}; - } - class ServiceClientImpl extends client_1.Client { - } - Object.keys(methods).forEach(name => { - if (isPrototypePolluted(name)) { - return; - } - const attrs = methods[name]; - let methodType; - // TODO(murgatroid99): Verify that we don't need this anymore - if (typeof name === 'string' && name.charAt(0) === '$') { - throw new Error('Method names cannot start with $'); - } - if (attrs.requestStream) { - if (attrs.responseStream) { - methodType = 'bidi'; - } - else { - methodType = 'client_stream'; - } - } - else { - if (attrs.responseStream) { - methodType = 'server_stream'; - } - else { - methodType = 'unary'; - } - } - const serialize = attrs.requestSerialize; - const deserialize = attrs.responseDeserialize; - const methodFunc = partial(requesterFuncs[methodType], attrs.path, serialize, deserialize); - ServiceClientImpl.prototype[name] = methodFunc; - // Associate all provided attributes with the method - Object.assign(ServiceClientImpl.prototype[name], attrs); - if (attrs.originalName && !isPrototypePolluted(attrs.originalName)) { - ServiceClientImpl.prototype[attrs.originalName] = - ServiceClientImpl.prototype[name]; - } - }); - ServiceClientImpl.service = methods; - ServiceClientImpl.serviceName = serviceName; - return ServiceClientImpl; -} -function partial(fn, path, serialize, deserialize) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - return function (...args) { - return fn.call(this, path, serialize, deserialize, ...args); - }; -} -function isProtobufTypeDefinition(obj) { - return 'format' in obj; -} -/** - * Load a gRPC package definition as a gRPC object hierarchy. - * @param packageDef The package definition object. - * @return The resulting gRPC object. - */ -function loadPackageDefinition(packageDef) { - const result = {}; - for (const serviceFqn in packageDef) { - if (Object.prototype.hasOwnProperty.call(packageDef, serviceFqn)) { - const service = packageDef[serviceFqn]; - const nameComponents = serviceFqn.split('.'); - if (nameComponents.some((comp) => isPrototypePolluted(comp))) { - continue; - } - const serviceName = nameComponents[nameComponents.length - 1]; - let current = result; - for (const packageName of nameComponents.slice(0, -1)) { - if (!current[packageName]) { - current[packageName] = {}; - } - current = current[packageName]; - } - if (isProtobufTypeDefinition(service)) { - current[serviceName] = service; - } - else { - current[serviceName] = makeClientConstructor(service, serviceName, {}); - } - } - } - return result; -} -//# sourceMappingURL=make-client.js.map - -/***/ }), - -/***/ 36100: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Metadata = void 0; -const logging_1 = __nccwpck_require__(8536); -const constants_1 = __nccwpck_require__(68288); -const error_1 = __nccwpck_require__(98219); -const LEGAL_KEY_REGEX = /^[:0-9a-z_.-]+$/; -const LEGAL_NON_BINARY_VALUE_REGEX = /^[ -~]*$/; -function isLegalKey(key) { - return LEGAL_KEY_REGEX.test(key); -} -function isLegalNonBinaryValue(value) { - return LEGAL_NON_BINARY_VALUE_REGEX.test(value); -} -function isBinaryKey(key) { - return key.endsWith('-bin'); -} -function isCustomMetadata(key) { - return !key.startsWith('grpc-'); -} -function normalizeKey(key) { - return key.toLowerCase(); -} -function validate(key, value) { - if (!isLegalKey(key)) { - throw new Error('Metadata key "' + key + '" contains illegal characters'); - } - if (value !== null && value !== undefined) { - if (isBinaryKey(key)) { - if (!Buffer.isBuffer(value)) { - throw new Error("keys that end with '-bin' must have Buffer values"); - } - } - else { - if (Buffer.isBuffer(value)) { - throw new Error("keys that don't end with '-bin' must have String values"); - } - if (!isLegalNonBinaryValue(value)) { - throw new Error('Metadata string value "' + value + '" contains illegal characters'); - } - } - } -} -/** - * A class for storing metadata. Keys are normalized to lowercase ASCII. - */ -class Metadata { - constructor(options = {}) { - this.internalRepr = new Map(); - this.opaqueData = new Map(); - this.options = options; - } - /** - * Sets the given value for the given key by replacing any other values - * associated with that key. Normalizes the key. - * @param key The key to whose value should be set. - * @param value The value to set. Must be a buffer if and only - * if the normalized key ends with '-bin'. - */ - set(key, value) { - key = normalizeKey(key); - validate(key, value); - this.internalRepr.set(key, [value]); - } - /** - * Adds the given value for the given key by appending to a list of previous - * values associated with that key. Normalizes the key. - * @param key The key for which a new value should be appended. - * @param value The value to add. Must be a buffer if and only - * if the normalized key ends with '-bin'. - */ - add(key, value) { - key = normalizeKey(key); - validate(key, value); - const existingValue = this.internalRepr.get(key); - if (existingValue === undefined) { - this.internalRepr.set(key, [value]); - } - else { - existingValue.push(value); - } - } - /** - * Removes the given key and any associated values. Normalizes the key. - * @param key The key whose values should be removed. - */ - remove(key) { - key = normalizeKey(key); - // validate(key); - this.internalRepr.delete(key); - } - /** - * Gets a list of all values associated with the key. Normalizes the key. - * @param key The key whose value should be retrieved. - * @return A list of values associated with the given key. - */ - get(key) { - key = normalizeKey(key); - // validate(key); - return this.internalRepr.get(key) || []; - } - /** - * Gets a plain object mapping each key to the first value associated with it. - * This reflects the most common way that people will want to see metadata. - * @return A key/value mapping of the metadata. - */ - getMap() { - const result = {}; - for (const [key, values] of this.internalRepr) { - if (values.length > 0) { - const v = values[0]; - result[key] = Buffer.isBuffer(v) ? Buffer.from(v) : v; - } - } - return result; - } - /** - * Clones the metadata object. - * @return The newly cloned object. - */ - clone() { - const newMetadata = new Metadata(this.options); - const newInternalRepr = newMetadata.internalRepr; - for (const [key, value] of this.internalRepr) { - const clonedValue = value.map(v => { - if (Buffer.isBuffer(v)) { - return Buffer.from(v); - } - else { - return v; - } - }); - newInternalRepr.set(key, clonedValue); - } - return newMetadata; - } - /** - * Merges all key-value pairs from a given Metadata object into this one. - * If both this object and the given object have values in the same key, - * values from the other Metadata object will be appended to this object's - * values. - * @param other A Metadata object. - */ - merge(other) { - for (const [key, values] of other.internalRepr) { - const mergedValue = (this.internalRepr.get(key) || []).concat(values); - this.internalRepr.set(key, mergedValue); - } - } - setOptions(options) { - this.options = options; - } - getOptions() { - return this.options; - } - /** - * Creates an OutgoingHttpHeaders object that can be used with the http2 API. - */ - toHttp2Headers() { - // NOTE: Node <8.9 formats http2 headers incorrectly. - const result = {}; - for (const [key, values] of this.internalRepr) { - if (key.startsWith(':')) { - continue; - } - // We assume that the user's interaction with this object is limited to - // through its public API (i.e. keys and values are already validated). - result[key] = values.map(bufToString); - } - return result; - } - /** - * This modifies the behavior of JSON.stringify to show an object - * representation of the metadata map. - */ - toJSON() { - const result = {}; - for (const [key, values] of this.internalRepr) { - result[key] = values; - } - return result; - } - /** - * Attach additional data of any type to the metadata object, which will not - * be included when sending headers. The data can later be retrieved with - * `getOpaque`. Keys with the prefix `grpc` are reserved for use by this - * library. - * @param key - * @param value - */ - setOpaque(key, value) { - this.opaqueData.set(key, value); - } - /** - * Retrieve data previously added with `setOpaque`. - * @param key - * @returns - */ - getOpaque(key) { - return this.opaqueData.get(key); - } - /** - * Returns a new Metadata object based fields in a given IncomingHttpHeaders - * object. - * @param headers An IncomingHttpHeaders object. - */ - static fromHttp2Headers(headers) { - const result = new Metadata(); - for (const key of Object.keys(headers)) { - // Reserved headers (beginning with `:`) are not valid keys. - if (key.charAt(0) === ':') { - continue; - } - const values = headers[key]; - try { - if (isBinaryKey(key)) { - if (Array.isArray(values)) { - values.forEach(value => { - result.add(key, Buffer.from(value, 'base64')); - }); - } - else if (values !== undefined) { - if (isCustomMetadata(key)) { - values.split(',').forEach(v => { - result.add(key, Buffer.from(v.trim(), 'base64')); - }); - } - else { - result.add(key, Buffer.from(values, 'base64')); - } - } - } - else { - if (Array.isArray(values)) { - values.forEach(value => { - result.add(key, value); - }); - } - else if (values !== undefined) { - result.add(key, values); - } - } - } - catch (error) { - const message = `Failed to add metadata entry ${key}: ${values}. ${(0, error_1.getErrorMessage)(error)}. For more information see https://github.com/grpc/grpc-node/issues/1173`; - (0, logging_1.log)(constants_1.LogVerbosity.ERROR, message); - } - } - return result; - } -} -exports.Metadata = Metadata; -const bufToString = (val) => { - return Buffer.isBuffer(val) ? val.toString('base64') : val; -}; -//# sourceMappingURL=metadata.js.map - -/***/ }), - -/***/ 82124: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2025 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.OrcaOobMetricsSubchannelWrapper = exports.GRPC_METRICS_HEADER = exports.ServerMetricRecorder = exports.PerRequestMetricRecorder = void 0; -exports.createOrcaClient = createOrcaClient; -exports.createMetricsReader = createMetricsReader; -const make_client_1 = __nccwpck_require__(76983); -const duration_1 = __nccwpck_require__(63929); -const channel_credentials_1 = __nccwpck_require__(32257); -const subchannel_interface_1 = __nccwpck_require__(70098); -const constants_1 = __nccwpck_require__(68288); -const backoff_timeout_1 = __nccwpck_require__(14643); -const connectivity_state_1 = __nccwpck_require__(60778); -const loadedOrcaProto = null; -function loadOrcaProto() { - if (loadedOrcaProto) { - return loadedOrcaProto; - } - /* The purpose of this complexity is to avoid loading @grpc/proto-loader at - * runtime for users who will not use/enable ORCA. */ - const loaderLoadSync = (__nccwpck_require__(73066)/* .loadSync */ .Yi); - const loadedProto = loaderLoadSync('xds/service/orca/v3/orca.proto', { - keepCase: true, - longs: String, - enums: String, - defaults: true, - oneofs: true, - includeDirs: [ - __nccwpck_require__.ab + "xds", - __nccwpck_require__.ab + "protoc-gen-validate" - ], - }); - return (0, make_client_1.loadPackageDefinition)(loadedProto); -} -/** - * ORCA metrics recorder for a single request - */ -class PerRequestMetricRecorder { - constructor() { - this.message = {}; - } - /** - * Records a request cost metric measurement for the call. - * @param name - * @param value - */ - recordRequestCostMetric(name, value) { - if (!this.message.request_cost) { - this.message.request_cost = {}; - } - this.message.request_cost[name] = value; - } - /** - * Records a request cost metric measurement for the call. - * @param name - * @param value - */ - recordUtilizationMetric(name, value) { - if (!this.message.utilization) { - this.message.utilization = {}; - } - this.message.utilization[name] = value; - } - /** - * Records an opaque named metric measurement for the call. - * @param name - * @param value - */ - recordNamedMetric(name, value) { - if (!this.message.named_metrics) { - this.message.named_metrics = {}; - } - this.message.named_metrics[name] = value; - } - /** - * Records the CPU utilization metric measurement for the call. - * @param value - */ - recordCPUUtilizationMetric(value) { - this.message.cpu_utilization = value; - } - /** - * Records the memory utilization metric measurement for the call. - * @param value - */ - recordMemoryUtilizationMetric(value) { - this.message.mem_utilization = value; - } - /** - * Records the memory utilization metric measurement for the call. - * @param value - */ - recordApplicationUtilizationMetric(value) { - this.message.application_utilization = value; - } - /** - * Records the queries per second measurement. - * @param value - */ - recordQpsMetric(value) { - this.message.rps_fractional = value; - } - /** - * Records the errors per second measurement. - * @param value - */ - recordEpsMetric(value) { - this.message.eps = value; - } - serialize() { - const orcaProto = loadOrcaProto(); - return orcaProto.xds.data.orca.v3.OrcaLoadReport.serialize(this.message); - } -} -exports.PerRequestMetricRecorder = PerRequestMetricRecorder; -const DEFAULT_REPORT_INTERVAL_MS = 30000; -class ServerMetricRecorder { - constructor() { - this.message = {}; - this.serviceImplementation = { - StreamCoreMetrics: call => { - const reportInterval = call.request.report_interval ? - (0, duration_1.durationToMs)((0, duration_1.durationMessageToDuration)(call.request.report_interval)) : - DEFAULT_REPORT_INTERVAL_MS; - const reportTimer = setInterval(() => { - call.write(this.message); - }, reportInterval); - call.on('cancelled', () => { - clearInterval(reportTimer); - }); - } - }; - } - putUtilizationMetric(name, value) { - if (!this.message.utilization) { - this.message.utilization = {}; - } - this.message.utilization[name] = value; - } - setAllUtilizationMetrics(metrics) { - this.message.utilization = Object.assign({}, metrics); - } - deleteUtilizationMetric(name) { - var _a; - (_a = this.message.utilization) === null || _a === void 0 ? true : delete _a[name]; - } - setCpuUtilizationMetric(value) { - this.message.cpu_utilization = value; - } - deleteCpuUtilizationMetric() { - delete this.message.cpu_utilization; - } - setApplicationUtilizationMetric(value) { - this.message.application_utilization = value; - } - deleteApplicationUtilizationMetric() { - delete this.message.application_utilization; - } - setQpsMetric(value) { - this.message.rps_fractional = value; - } - deleteQpsMetric() { - delete this.message.rps_fractional; - } - setEpsMetric(value) { - this.message.eps = value; - } - deleteEpsMetric() { - delete this.message.eps; - } - addToServer(server) { - const serviceDefinition = loadOrcaProto().xds.service.orca.v3.OpenRcaService.service; - server.addService(serviceDefinition, this.serviceImplementation); - } -} -exports.ServerMetricRecorder = ServerMetricRecorder; -function createOrcaClient(channel) { - const ClientClass = loadOrcaProto().xds.service.orca.v3.OpenRcaService; - return new ClientClass('unused', channel_credentials_1.ChannelCredentials.createInsecure(), { channelOverride: channel }); -} -exports.GRPC_METRICS_HEADER = 'endpoint-load-metrics-bin'; -const PARSED_LOAD_REPORT_KEY = 'grpc_orca_load_report'; -/** - * Create an onCallEnded callback for use in a picker. - * @param listener The listener to handle metrics, whenever they are provided. - * @param previousOnCallEnded The previous onCallEnded callback to propagate - * to, if applicable. - * @returns - */ -function createMetricsReader(listener, previousOnCallEnded) { - return (code, details, metadata) => { - let parsedLoadReport = metadata.getOpaque(PARSED_LOAD_REPORT_KEY); - if (parsedLoadReport) { - listener(parsedLoadReport); - } - else { - const serializedLoadReport = metadata.get(exports.GRPC_METRICS_HEADER); - if (serializedLoadReport.length > 0) { - const orcaProto = loadOrcaProto(); - parsedLoadReport = orcaProto.xds.data.orca.v3.OrcaLoadReport.deserialize(serializedLoadReport[0]); - listener(parsedLoadReport); - metadata.setOpaque(PARSED_LOAD_REPORT_KEY, parsedLoadReport); - } - } - if (previousOnCallEnded) { - previousOnCallEnded(code, details, metadata); - } - }; -} -const DATA_PRODUCER_KEY = 'orca_oob_metrics'; -class OobMetricsDataWatcher { - constructor(metricsListener, intervalMs) { - this.metricsListener = metricsListener; - this.intervalMs = intervalMs; - this.dataProducer = null; - } - setSubchannel(subchannel) { - const producer = subchannel.getOrCreateDataProducer(DATA_PRODUCER_KEY, createOobMetricsDataProducer); - this.dataProducer = producer; - producer.addDataWatcher(this); - } - destroy() { - var _a; - (_a = this.dataProducer) === null || _a === void 0 ? void 0 : _a.removeDataWatcher(this); - } - getInterval() { - return this.intervalMs; - } - onMetricsUpdate(metrics) { - this.metricsListener(metrics); - } -} -class OobMetricsDataProducer { - constructor(subchannel) { - this.subchannel = subchannel; - this.dataWatchers = new Set(); - this.orcaSupported = true; - this.metricsCall = null; - this.currentInterval = Infinity; - this.backoffTimer = new backoff_timeout_1.BackoffTimeout(() => this.updateMetricsSubscription()); - this.subchannelStateListener = () => this.updateMetricsSubscription(); - const channel = subchannel.getChannel(); - this.client = createOrcaClient(channel); - subchannel.addConnectivityStateListener(this.subchannelStateListener); - } - addDataWatcher(dataWatcher) { - this.dataWatchers.add(dataWatcher); - this.updateMetricsSubscription(); - } - removeDataWatcher(dataWatcher) { - var _a; - this.dataWatchers.delete(dataWatcher); - if (this.dataWatchers.size === 0) { - this.subchannel.removeDataProducer(DATA_PRODUCER_KEY); - (_a = this.metricsCall) === null || _a === void 0 ? void 0 : _a.cancel(); - this.metricsCall = null; - this.client.close(); - this.subchannel.removeConnectivityStateListener(this.subchannelStateListener); - } - else { - this.updateMetricsSubscription(); - } - } - updateMetricsSubscription() { - var _a; - if (this.dataWatchers.size === 0 || !this.orcaSupported || this.subchannel.getConnectivityState() !== connectivity_state_1.ConnectivityState.READY) { - return; - } - const newInterval = Math.min(...Array.from(this.dataWatchers).map(watcher => watcher.getInterval())); - if (!this.metricsCall || newInterval !== this.currentInterval) { - (_a = this.metricsCall) === null || _a === void 0 ? void 0 : _a.cancel(); - this.currentInterval = newInterval; - const metricsCall = this.client.streamCoreMetrics({ report_interval: (0, duration_1.msToDuration)(newInterval) }); - this.metricsCall = metricsCall; - metricsCall.on('data', (report) => { - this.dataWatchers.forEach(watcher => { - watcher.onMetricsUpdate(report); - }); - }); - metricsCall.on('error', (error) => { - this.metricsCall = null; - if (error.code === constants_1.Status.UNIMPLEMENTED) { - this.orcaSupported = false; - return; - } - if (error.code === constants_1.Status.CANCELLED) { - return; - } - this.backoffTimer.runOnce(); - }); - } - } -} -class OrcaOobMetricsSubchannelWrapper extends subchannel_interface_1.BaseSubchannelWrapper { - constructor(child, metricsListener, intervalMs) { - super(child); - this.addDataWatcher(new OobMetricsDataWatcher(metricsListener, intervalMs)); - } - getWrappedSubchannel() { - return this.child; - } -} -exports.OrcaOobMetricsSubchannelWrapper = OrcaOobMetricsSubchannelWrapper; -function createOobMetricsDataProducer(subchannel) { - return new OobMetricsDataProducer(subchannel); -} -//# sourceMappingURL=orca.js.map - -/***/ }), - -/***/ 71663: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.QueuePicker = exports.UnavailablePicker = exports.PickResultType = void 0; -const metadata_1 = __nccwpck_require__(36100); -const constants_1 = __nccwpck_require__(68288); -var PickResultType; -(function (PickResultType) { - PickResultType[PickResultType["COMPLETE"] = 0] = "COMPLETE"; - PickResultType[PickResultType["QUEUE"] = 1] = "QUEUE"; - PickResultType[PickResultType["TRANSIENT_FAILURE"] = 2] = "TRANSIENT_FAILURE"; - PickResultType[PickResultType["DROP"] = 3] = "DROP"; -})(PickResultType || (exports.PickResultType = PickResultType = {})); -/** - * A standard picker representing a load balancer in the TRANSIENT_FAILURE - * state. Always responds to every pick request with an UNAVAILABLE status. - */ -class UnavailablePicker { - constructor(status) { - this.status = Object.assign({ code: constants_1.Status.UNAVAILABLE, details: 'No connection established', metadata: new metadata_1.Metadata() }, status); - } - pick(pickArgs) { - return { - pickResultType: PickResultType.TRANSIENT_FAILURE, - subchannel: null, - status: this.status, - onCallStarted: null, - onCallEnded: null, - }; - } -} -exports.UnavailablePicker = UnavailablePicker; -/** - * A standard picker representing a load balancer in the IDLE or CONNECTING - * state. Always responds to every pick request with a QUEUE pick result - * indicating that the pick should be tried again with the next `Picker`. Also - * reports back to the load balancer that a connection should be established - * once any pick is attempted. - * If the childPicker is provided, delegate to it instead of returning the - * hardcoded QUEUE pick result, but still calls exitIdle. - */ -class QueuePicker { - // Constructed with a load balancer. Calls exitIdle on it the first time pick is called - constructor(loadBalancer, childPicker) { - this.loadBalancer = loadBalancer; - this.childPicker = childPicker; - this.calledExitIdle = false; - } - pick(pickArgs) { - if (!this.calledExitIdle) { - process.nextTick(() => { - this.loadBalancer.exitIdle(); - }); - this.calledExitIdle = true; - } - if (this.childPicker) { - return this.childPicker.pick(pickArgs); - } - else { - return { - pickResultType: PickResultType.QUEUE, - subchannel: null, - status: null, - onCallStarted: null, - onCallEnded: null, - }; - } - } -} -exports.QueuePicker = QueuePicker; -//# sourceMappingURL=picker.js.map - -/***/ }), - -/***/ 58291: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2025 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PriorityQueue = void 0; -const top = 0; -const parent = (i) => Math.floor(i / 2); -const left = (i) => i * 2 + 1; -const right = (i) => i * 2 + 2; -/** - * A generic priority queue implemented as an array-based binary heap. - * Adapted from https://stackoverflow.com/a/42919752/159388 - */ -class PriorityQueue { - /** - * - * @param comparator Returns true if the first argument should precede the - * second in the queue. Defaults to `(a, b) => a > b` - */ - constructor(comparator = (a, b) => a > b) { - this.comparator = comparator; - this.heap = []; - } - /** - * @returns The number of items currently in the queue - */ - size() { - return this.heap.length; - } - /** - * @returns True if there are no items in the queue, false otherwise - */ - isEmpty() { - return this.size() == 0; - } - /** - * Look at the front item that would be popped, without modifying the contents - * of the queue - * @returns The front item in the queue, or undefined if the queue is empty - */ - peek() { - return this.heap[top]; - } - /** - * Add the items to the queue - * @param values The items to add - * @returns The new size of the queue after adding the items - */ - push(...values) { - values.forEach(value => { - this.heap.push(value); - this.siftUp(); - }); - return this.size(); - } - /** - * Remove the front item in the queue and return it - * @returns The front item in the queue, or undefined if the queue is empty - */ - pop() { - const poppedValue = this.peek(); - const bottom = this.size() - 1; - if (bottom > top) { - this.swap(top, bottom); - } - this.heap.pop(); - this.siftDown(); - return poppedValue; - } - /** - * Simultaneously remove the front item in the queue and add the provided - * item. - * @param value The item to add - * @returns The front item in the queue, or undefined if the queue is empty - */ - replace(value) { - const replacedValue = this.peek(); - this.heap[top] = value; - this.siftDown(); - return replacedValue; - } - greater(i, j) { - return this.comparator(this.heap[i], this.heap[j]); - } - swap(i, j) { - [this.heap[i], this.heap[j]] = [this.heap[j], this.heap[i]]; - } - siftUp() { - let node = this.size() - 1; - while (node > top && this.greater(node, parent(node))) { - this.swap(node, parent(node)); - node = parent(node); - } - } - siftDown() { - let node = top; - while ((left(node) < this.size() && this.greater(left(node), node)) || - (right(node) < this.size() && this.greater(right(node), node))) { - let maxChild = (right(node) < this.size() && this.greater(right(node), left(node))) ? right(node) : left(node); - this.swap(node, maxChild); - node = maxChild; - } - } -} -exports.PriorityQueue = PriorityQueue; -//# sourceMappingURL=priority-queue.js.map - -/***/ }), - -/***/ 51149: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DEFAULT_PORT = void 0; -exports.setup = setup; -const resolver_1 = __nccwpck_require__(76255); -const dns_1 = __nccwpck_require__(72250); -const service_config_1 = __nccwpck_require__(70005); -const constants_1 = __nccwpck_require__(68288); -const call_interface_1 = __nccwpck_require__(61803); -const metadata_1 = __nccwpck_require__(36100); -const logging = __nccwpck_require__(8536); -const constants_2 = __nccwpck_require__(68288); -const uri_parser_1 = __nccwpck_require__(56027); -const net_1 = __nccwpck_require__(69278); -const backoff_timeout_1 = __nccwpck_require__(14643); -const environment_1 = __nccwpck_require__(16964); -const TRACER_NAME = 'dns_resolver'; -function trace(text) { - logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, text); -} -/** - * The default TCP port to connect to if not explicitly specified in the target. - */ -exports.DEFAULT_PORT = 443; -const DEFAULT_MIN_TIME_BETWEEN_RESOLUTIONS_MS = 30000; -/** - * Resolver implementation that handles DNS names and IP addresses. - */ -class DnsResolver { - constructor(target, listener, channelOptions) { - var _a, _b, _c; - this.target = target; - this.listener = listener; - this.pendingLookupPromise = null; - this.pendingTxtPromise = null; - this.latestLookupResult = null; - this.latestServiceConfigResult = null; - this.continueResolving = false; - this.isNextResolutionTimerRunning = false; - this.isServiceConfigEnabled = true; - this.returnedIpResult = false; - this.alternativeResolver = new dns_1.promises.Resolver(); - trace('Resolver constructed for target ' + (0, uri_parser_1.uriToString)(target)); - if (target.authority) { - this.alternativeResolver.setServers([target.authority]); - } - const hostPort = (0, uri_parser_1.splitHostPort)(target.path); - if (hostPort === null) { - this.ipResult = null; - this.dnsHostname = null; - this.port = null; - } - else { - if ((0, net_1.isIPv4)(hostPort.host) || (0, net_1.isIPv6)(hostPort.host)) { - this.ipResult = [ - { - addresses: [ - { - host: hostPort.host, - port: (_a = hostPort.port) !== null && _a !== void 0 ? _a : exports.DEFAULT_PORT, - }, - ], - }, - ]; - this.dnsHostname = null; - this.port = null; - } - else { - this.ipResult = null; - this.dnsHostname = hostPort.host; - this.port = (_b = hostPort.port) !== null && _b !== void 0 ? _b : exports.DEFAULT_PORT; - } - } - this.percentage = Math.random() * 100; - if (channelOptions['grpc.service_config_disable_resolution'] === 1) { - this.isServiceConfigEnabled = false; - } - this.defaultResolutionError = { - code: constants_1.Status.UNAVAILABLE, - details: `Name resolution failed for target ${(0, uri_parser_1.uriToString)(this.target)}`, - metadata: new metadata_1.Metadata(), - }; - const backoffOptions = { - initialDelay: channelOptions['grpc.initial_reconnect_backoff_ms'], - maxDelay: channelOptions['grpc.max_reconnect_backoff_ms'], - }; - this.backoff = new backoff_timeout_1.BackoffTimeout(() => { - if (this.continueResolving) { - this.startResolutionWithBackoff(); - } - }, backoffOptions); - this.backoff.unref(); - this.minTimeBetweenResolutionsMs = - (_c = channelOptions['grpc.dns_min_time_between_resolutions_ms']) !== null && _c !== void 0 ? _c : DEFAULT_MIN_TIME_BETWEEN_RESOLUTIONS_MS; - this.nextResolutionTimer = setTimeout(() => { }, 0); - clearTimeout(this.nextResolutionTimer); - } - /** - * If the target is an IP address, just provide that address as a result. - * Otherwise, initiate A, AAAA, and TXT lookups - */ - startResolution() { - if (this.ipResult !== null) { - if (!this.returnedIpResult) { - trace('Returning IP address for target ' + (0, uri_parser_1.uriToString)(this.target)); - setImmediate(() => { - this.listener((0, call_interface_1.statusOrFromValue)(this.ipResult), {}, null, ''); - }); - this.returnedIpResult = true; - } - this.backoff.stop(); - this.backoff.reset(); - this.stopNextResolutionTimer(); - return; - } - if (this.dnsHostname === null) { - trace('Failed to parse DNS address ' + (0, uri_parser_1.uriToString)(this.target)); - setImmediate(() => { - this.listener((0, call_interface_1.statusOrFromError)({ - code: constants_1.Status.UNAVAILABLE, - details: `Failed to parse DNS address ${(0, uri_parser_1.uriToString)(this.target)}` - }), {}, null, ''); - }); - this.stopNextResolutionTimer(); - } - else { - if (this.pendingLookupPromise !== null) { - return; - } - trace('Looking up DNS hostname ' + this.dnsHostname); - /* We clear out latestLookupResult here to ensure that it contains the - * latest result since the last time we started resolving. That way, the - * TXT resolution handler can use it, but only if it finishes second. We - * don't clear out any previous service config results because it's - * better to use a service config that's slightly out of date than to - * revert to an effectively blank one. */ - this.latestLookupResult = null; - const hostname = this.dnsHostname; - this.pendingLookupPromise = this.lookup(hostname); - this.pendingLookupPromise.then(addressList => { - if (this.pendingLookupPromise === null) { - return; - } - this.pendingLookupPromise = null; - this.latestLookupResult = (0, call_interface_1.statusOrFromValue)(addressList.map(address => ({ - addresses: [address], - }))); - const allAddressesString = '[' + - addressList.map(addr => addr.host + ':' + addr.port).join(',') + - ']'; - trace('Resolved addresses for target ' + - (0, uri_parser_1.uriToString)(this.target) + - ': ' + - allAddressesString); - /* If the TXT lookup has not yet finished, both of the last two - * arguments will be null, which is the equivalent of getting an - * empty TXT response. When the TXT lookup does finish, its handler - * can update the service config by using the same address list */ - const healthStatus = this.listener(this.latestLookupResult, {}, this.latestServiceConfigResult, ''); - this.handleHealthStatus(healthStatus); - }, err => { - if (this.pendingLookupPromise === null) { - return; - } - trace('Resolution error for target ' + - (0, uri_parser_1.uriToString)(this.target) + - ': ' + - err.message); - this.pendingLookupPromise = null; - this.stopNextResolutionTimer(); - this.listener((0, call_interface_1.statusOrFromError)(this.defaultResolutionError), {}, this.latestServiceConfigResult, ''); - }); - /* If there already is a still-pending TXT resolution, we can just use - * that result when it comes in */ - if (this.isServiceConfigEnabled && this.pendingTxtPromise === null) { - /* We handle the TXT query promise differently than the others because - * the name resolution attempt as a whole is a success even if the TXT - * lookup fails */ - this.pendingTxtPromise = this.resolveTxt(hostname); - this.pendingTxtPromise.then(txtRecord => { - if (this.pendingTxtPromise === null) { - return; - } - this.pendingTxtPromise = null; - let serviceConfig; - try { - serviceConfig = (0, service_config_1.extractAndSelectServiceConfig)(txtRecord, this.percentage); - if (serviceConfig) { - this.latestServiceConfigResult = (0, call_interface_1.statusOrFromValue)(serviceConfig); - } - else { - this.latestServiceConfigResult = null; - } - } - catch (err) { - this.latestServiceConfigResult = (0, call_interface_1.statusOrFromError)({ - code: constants_1.Status.UNAVAILABLE, - details: `Parsing service config failed with error ${err.message}` - }); - } - if (this.latestLookupResult !== null) { - /* We rely here on the assumption that calling this function with - * identical parameters will be essentialy idempotent, and calling - * it with the same address list and a different service config - * should result in a fast and seamless switchover. */ - this.listener(this.latestLookupResult, {}, this.latestServiceConfigResult, ''); - } - }, err => { - /* If TXT lookup fails we should do nothing, which means that we - * continue to use the result of the most recent successful lookup, - * or the default null config object if there has never been a - * successful lookup. We do not set the latestServiceConfigError - * here because that is specifically used for response validation - * errors. We still need to handle this error so that it does not - * bubble up as an unhandled promise rejection. */ - }); - } - } - } - /** - * The ResolverListener returns a boolean indicating whether the LB policy - * accepted the resolution result. A false result on an otherwise successful - * resolution should be treated as a resolution failure. - * @param healthStatus - */ - handleHealthStatus(healthStatus) { - if (healthStatus) { - this.backoff.stop(); - this.backoff.reset(); - } - else { - this.continueResolving = true; - } - } - async lookup(hostname) { - if (environment_1.GRPC_NODE_USE_ALTERNATIVE_RESOLVER) { - trace('Using alternative DNS resolver.'); - const records = await Promise.allSettled([ - this.alternativeResolver.resolve4(hostname), - this.alternativeResolver.resolve6(hostname), - ]); - if (records.every(result => result.status === 'rejected')) { - throw new Error(records[0].reason); - } - return records - .reduce((acc, result) => { - return result.status === 'fulfilled' - ? [...acc, ...result.value] - : acc; - }, []) - .map(addr => ({ - host: addr, - port: +this.port, - })); - } - /* We lookup both address families here and then split them up later - * because when looking up a single family, dns.lookup outputs an error - * if the name exists but there are no records for that family, and that - * error is indistinguishable from other kinds of errors */ - const addressList = await dns_1.promises.lookup(hostname, { all: true }); - return addressList.map(addr => ({ host: addr.address, port: +this.port })); - } - async resolveTxt(hostname) { - if (environment_1.GRPC_NODE_USE_ALTERNATIVE_RESOLVER) { - trace('Using alternative DNS resolver.'); - return this.alternativeResolver.resolveTxt(hostname); - } - return dns_1.promises.resolveTxt(hostname); - } - startNextResolutionTimer() { - var _a, _b; - clearTimeout(this.nextResolutionTimer); - this.nextResolutionTimer = setTimeout(() => { - this.stopNextResolutionTimer(); - if (this.continueResolving) { - this.startResolutionWithBackoff(); - } - }, this.minTimeBetweenResolutionsMs); - (_b = (_a = this.nextResolutionTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - this.isNextResolutionTimerRunning = true; - } - stopNextResolutionTimer() { - clearTimeout(this.nextResolutionTimer); - this.isNextResolutionTimerRunning = false; - } - startResolutionWithBackoff() { - if (this.pendingLookupPromise === null) { - this.continueResolving = false; - this.backoff.runOnce(); - this.startNextResolutionTimer(); - this.startResolution(); - } - } - updateResolution() { - /* If there is a pending lookup, just let it finish. Otherwise, if the - * nextResolutionTimer or backoff timer is running, set the - * continueResolving flag to resolve when whichever of those timers - * fires. Otherwise, start resolving immediately. */ - if (this.pendingLookupPromise === null) { - if (this.isNextResolutionTimerRunning || this.backoff.isRunning()) { - if (this.isNextResolutionTimerRunning) { - trace('resolution update delayed by "min time between resolutions" rate limit'); - } - else { - trace('resolution update delayed by backoff timer until ' + - this.backoff.getEndTime().toISOString()); - } - this.continueResolving = true; - } - else { - this.startResolutionWithBackoff(); - } - } - } - /** - * Reset the resolver to the same state it had when it was created. In-flight - * DNS requests cannot be cancelled, but they are discarded and their results - * will be ignored. - */ - destroy() { - this.continueResolving = false; - this.backoff.reset(); - this.backoff.stop(); - this.stopNextResolutionTimer(); - this.pendingLookupPromise = null; - this.pendingTxtPromise = null; - this.latestLookupResult = null; - this.latestServiceConfigResult = null; - this.returnedIpResult = false; - } - /** - * Get the default authority for the given target. For IP targets, that is - * the IP address. For DNS targets, it is the hostname. - * @param target - */ - static getDefaultAuthority(target) { - return target.path; - } -} -/** - * Set up the DNS resolver class by registering it as the handler for the - * "dns:" prefix and as the default resolver. - */ -function setup() { - (0, resolver_1.registerResolver)('dns', DnsResolver); - (0, resolver_1.registerDefaultScheme)('dns'); -} -//# sourceMappingURL=resolver-dns.js.map - -/***/ }), - -/***/ 52617: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2021 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.setup = setup; -const net_1 = __nccwpck_require__(69278); -const call_interface_1 = __nccwpck_require__(61803); -const constants_1 = __nccwpck_require__(68288); -const metadata_1 = __nccwpck_require__(36100); -const resolver_1 = __nccwpck_require__(76255); -const subchannel_address_1 = __nccwpck_require__(97021); -const uri_parser_1 = __nccwpck_require__(56027); -const logging = __nccwpck_require__(8536); -const TRACER_NAME = 'ip_resolver'; -function trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); -} -const IPV4_SCHEME = 'ipv4'; -const IPV6_SCHEME = 'ipv6'; -/** - * The default TCP port to connect to if not explicitly specified in the target. - */ -const DEFAULT_PORT = 443; -class IpResolver { - constructor(target, listener, channelOptions) { - var _a; - this.listener = listener; - this.endpoints = []; - this.error = null; - this.hasReturnedResult = false; - trace('Resolver constructed for target ' + (0, uri_parser_1.uriToString)(target)); - const addresses = []; - if (!(target.scheme === IPV4_SCHEME || target.scheme === IPV6_SCHEME)) { - this.error = { - code: constants_1.Status.UNAVAILABLE, - details: `Unrecognized scheme ${target.scheme} in IP resolver`, - metadata: new metadata_1.Metadata(), - }; - return; - } - const pathList = target.path.split(','); - for (const path of pathList) { - const hostPort = (0, uri_parser_1.splitHostPort)(path); - if (hostPort === null) { - this.error = { - code: constants_1.Status.UNAVAILABLE, - details: `Failed to parse ${target.scheme} address ${path}`, - metadata: new metadata_1.Metadata(), - }; - return; - } - if ((target.scheme === IPV4_SCHEME && !(0, net_1.isIPv4)(hostPort.host)) || - (target.scheme === IPV6_SCHEME && !(0, net_1.isIPv6)(hostPort.host))) { - this.error = { - code: constants_1.Status.UNAVAILABLE, - details: `Failed to parse ${target.scheme} address ${path}`, - metadata: new metadata_1.Metadata(), - }; - return; - } - addresses.push({ - host: hostPort.host, - port: (_a = hostPort.port) !== null && _a !== void 0 ? _a : DEFAULT_PORT, - }); - } - this.endpoints = addresses.map(address => ({ addresses: [address] })); - trace('Parsed ' + target.scheme + ' address list ' + addresses.map(subchannel_address_1.subchannelAddressToString)); - } - updateResolution() { - if (!this.hasReturnedResult) { - this.hasReturnedResult = true; - process.nextTick(() => { - if (this.error) { - this.listener((0, call_interface_1.statusOrFromError)(this.error), {}, null, ''); - } - else { - this.listener((0, call_interface_1.statusOrFromValue)(this.endpoints), {}, null, ''); - } - }); - } - } - destroy() { - this.hasReturnedResult = false; - } - static getDefaultAuthority(target) { - return target.path.split(',')[0]; - } -} -function setup() { - (0, resolver_1.registerResolver)(IPV4_SCHEME, IpResolver); - (0, resolver_1.registerResolver)(IPV6_SCHEME, IpResolver); -} -//# sourceMappingURL=resolver-ip.js.map - -/***/ }), - -/***/ 69252: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.setup = setup; -const resolver_1 = __nccwpck_require__(76255); -const call_interface_1 = __nccwpck_require__(61803); -class UdsResolver { - constructor(target, listener, channelOptions) { - this.listener = listener; - this.hasReturnedResult = false; - this.endpoints = []; - let path; - if (target.authority === '') { - path = '/' + target.path; - } - else { - path = target.path; - } - this.endpoints = [{ addresses: [{ path }] }]; - } - updateResolution() { - if (!this.hasReturnedResult) { - this.hasReturnedResult = true; - process.nextTick(this.listener, (0, call_interface_1.statusOrFromValue)(this.endpoints), {}, null, ''); - } - } - destroy() { - this.hasReturnedResult = false; - } - static getDefaultAuthority(target) { - return 'localhost'; - } -} -function setup() { - (0, resolver_1.registerResolver)('unix', UdsResolver); -} -//# sourceMappingURL=resolver-uds.js.map - -/***/ }), - -/***/ 76255: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CHANNEL_ARGS_CONFIG_SELECTOR_KEY = void 0; -exports.registerResolver = registerResolver; -exports.registerDefaultScheme = registerDefaultScheme; -exports.createResolver = createResolver; -exports.getDefaultAuthority = getDefaultAuthority; -exports.mapUriDefaultScheme = mapUriDefaultScheme; -const uri_parser_1 = __nccwpck_require__(56027); -exports.CHANNEL_ARGS_CONFIG_SELECTOR_KEY = 'grpc.internal.config_selector'; -const registeredResolvers = {}; -let defaultScheme = null; -/** - * Register a resolver class to handle target names prefixed with the `prefix` - * string. This prefix should correspond to a URI scheme name listed in the - * [gRPC Name Resolution document](https://github.com/grpc/grpc/blob/master/doc/naming.md) - * @param prefix - * @param resolverClass - */ -function registerResolver(scheme, resolverClass) { - registeredResolvers[scheme] = resolverClass; -} -/** - * Register a default resolver to handle target names that do not start with - * any registered prefix. - * @param resolverClass - */ -function registerDefaultScheme(scheme) { - defaultScheme = scheme; -} -/** - * Create a name resolver for the specified target, if possible. Throws an - * error if no such name resolver can be created. - * @param target - * @param listener - */ -function createResolver(target, listener, options) { - if (target.scheme !== undefined && target.scheme in registeredResolvers) { - return new registeredResolvers[target.scheme](target, listener, options); - } - else { - throw new Error(`No resolver could be created for target ${(0, uri_parser_1.uriToString)(target)}`); - } -} -/** - * Get the default authority for the specified target, if possible. Throws an - * error if no registered name resolver can parse that target string. - * @param target - */ -function getDefaultAuthority(target) { - if (target.scheme !== undefined && target.scheme in registeredResolvers) { - return registeredResolvers[target.scheme].getDefaultAuthority(target); - } - else { - throw new Error(`Invalid target ${(0, uri_parser_1.uriToString)(target)}`); - } -} -function mapUriDefaultScheme(target) { - if (target.scheme === undefined || !(target.scheme in registeredResolvers)) { - if (defaultScheme !== null) { - return { - scheme: defaultScheme, - authority: undefined, - path: (0, uri_parser_1.uriToString)(target), - }; - } - else { - return null; - } - } - return target; -} -//# sourceMappingURL=resolver.js.map - -/***/ }), - -/***/ 8023: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ResolvingCall = void 0; -const call_credentials_1 = __nccwpck_require__(73161); -const constants_1 = __nccwpck_require__(68288); -const deadline_1 = __nccwpck_require__(52173); -const metadata_1 = __nccwpck_require__(36100); -const logging = __nccwpck_require__(8536); -const control_plane_status_1 = __nccwpck_require__(39962); -const TRACER_NAME = 'resolving_call'; -class ResolvingCall { - constructor(channel, method, options, filterStackFactory, callNumber) { - this.channel = channel; - this.method = method; - this.filterStackFactory = filterStackFactory; - this.callNumber = callNumber; - this.child = null; - this.readPending = false; - this.pendingMessage = null; - this.pendingHalfClose = false; - this.ended = false; - this.readFilterPending = false; - this.writeFilterPending = false; - this.pendingChildStatus = null; - this.metadata = null; - this.listener = null; - this.statusWatchers = []; - this.deadlineTimer = setTimeout(() => { }, 0); - this.filterStack = null; - this.deadlineStartTime = null; - this.configReceivedTime = null; - this.childStartTime = null; - /** - * Credentials configured for this specific call. Does not include - * call credentials associated with the channel credentials used to create - * the channel. - */ - this.credentials = call_credentials_1.CallCredentials.createEmpty(); - this.deadline = options.deadline; - this.host = options.host; - if (options.parentCall) { - if (options.flags & constants_1.Propagate.CANCELLATION) { - options.parentCall.on('cancelled', () => { - this.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled by parent call'); - }); - } - if (options.flags & constants_1.Propagate.DEADLINE) { - this.trace('Propagating deadline from parent: ' + - options.parentCall.getDeadline()); - this.deadline = (0, deadline_1.minDeadline)(this.deadline, options.parentCall.getDeadline()); - } - } - this.trace('Created'); - this.runDeadlineTimer(); - } - trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '[' + this.callNumber + '] ' + text); - } - runDeadlineTimer() { - clearTimeout(this.deadlineTimer); - this.deadlineStartTime = new Date(); - this.trace('Deadline: ' + (0, deadline_1.deadlineToString)(this.deadline)); - const timeout = (0, deadline_1.getRelativeTimeout)(this.deadline); - if (timeout !== Infinity) { - this.trace('Deadline will be reached in ' + timeout + 'ms'); - const handleDeadline = () => { - if (!this.deadlineStartTime) { - this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, 'Deadline exceeded'); - return; - } - const deadlineInfo = []; - const deadlineEndTime = new Date(); - deadlineInfo.push(`Deadline exceeded after ${(0, deadline_1.formatDateDifference)(this.deadlineStartTime, deadlineEndTime)}`); - if (this.configReceivedTime) { - if (this.configReceivedTime > this.deadlineStartTime) { - deadlineInfo.push(`name resolution: ${(0, deadline_1.formatDateDifference)(this.deadlineStartTime, this.configReceivedTime)}`); - } - if (this.childStartTime) { - if (this.childStartTime > this.configReceivedTime) { - deadlineInfo.push(`metadata filters: ${(0, deadline_1.formatDateDifference)(this.configReceivedTime, this.childStartTime)}`); - } - } - else { - deadlineInfo.push('waiting for metadata filters'); - } - } - else { - deadlineInfo.push('waiting for name resolution'); - } - if (this.child) { - deadlineInfo.push(...this.child.getDeadlineInfo()); - } - this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, deadlineInfo.join(',')); - }; - if (timeout <= 0) { - process.nextTick(handleDeadline); - } - else { - this.deadlineTimer = setTimeout(handleDeadline, timeout); - } - } - } - outputStatus(status) { - if (!this.ended) { - this.ended = true; - if (!this.filterStack) { - this.filterStack = this.filterStackFactory.createFilter(); - } - clearTimeout(this.deadlineTimer); - const filteredStatus = this.filterStack.receiveTrailers(status); - this.trace('ended with status: code=' + - filteredStatus.code + - ' details="' + - filteredStatus.details + - '"'); - this.statusWatchers.forEach(watcher => watcher(filteredStatus)); - process.nextTick(() => { - var _a; - (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onReceiveStatus(filteredStatus); - }); - } - } - sendMessageOnChild(context, message) { - if (!this.child) { - throw new Error('sendMessageonChild called with child not populated'); - } - const child = this.child; - this.writeFilterPending = true; - this.filterStack.sendMessage(Promise.resolve({ message: message, flags: context.flags })).then(filteredMessage => { - this.writeFilterPending = false; - child.sendMessageWithContext(context, filteredMessage.message); - if (this.pendingHalfClose) { - child.halfClose(); - } - }, (status) => { - this.cancelWithStatus(status.code, status.details); - }); - } - getConfig() { - if (this.ended) { - return; - } - if (!this.metadata || !this.listener) { - throw new Error('getConfig called before start'); - } - const configResult = this.channel.getConfig(this.method, this.metadata); - if (configResult.type === 'NONE') { - this.channel.queueCallForConfig(this); - return; - } - else if (configResult.type === 'ERROR') { - if (this.metadata.getOptions().waitForReady) { - this.channel.queueCallForConfig(this); - } - else { - this.outputStatus(configResult.error); - } - return; - } - // configResult.type === 'SUCCESS' - this.configReceivedTime = new Date(); - const config = configResult.config; - if (config.status !== constants_1.Status.OK) { - const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(config.status, 'Failed to route call to method ' + this.method); - this.outputStatus({ - code: code, - details: details, - metadata: new metadata_1.Metadata(), - }); - return; - } - if (config.methodConfig.timeout) { - const configDeadline = new Date(); - configDeadline.setSeconds(configDeadline.getSeconds() + config.methodConfig.timeout.seconds); - configDeadline.setMilliseconds(configDeadline.getMilliseconds() + - config.methodConfig.timeout.nanos / 1000000); - this.deadline = (0, deadline_1.minDeadline)(this.deadline, configDeadline); - this.runDeadlineTimer(); - } - this.filterStackFactory.push(config.dynamicFilterFactories); - this.filterStack = this.filterStackFactory.createFilter(); - this.filterStack.sendMetadata(Promise.resolve(this.metadata)).then(filteredMetadata => { - this.child = this.channel.createRetryingCall(config, this.method, this.host, this.credentials, this.deadline); - this.trace('Created child [' + this.child.getCallNumber() + ']'); - this.childStartTime = new Date(); - this.child.start(filteredMetadata, { - onReceiveMetadata: metadata => { - this.trace('Received metadata'); - this.listener.onReceiveMetadata(this.filterStack.receiveMetadata(metadata)); - }, - onReceiveMessage: message => { - this.trace('Received message'); - this.readFilterPending = true; - this.filterStack.receiveMessage(message).then(filteredMesssage => { - this.trace('Finished filtering received message'); - this.readFilterPending = false; - this.listener.onReceiveMessage(filteredMesssage); - if (this.pendingChildStatus) { - this.outputStatus(this.pendingChildStatus); - } - }, (status) => { - this.cancelWithStatus(status.code, status.details); - }); - }, - onReceiveStatus: status => { - this.trace('Received status'); - if (this.readFilterPending) { - this.pendingChildStatus = status; - } - else { - this.outputStatus(status); - } - }, - }); - if (this.readPending) { - this.child.startRead(); - } - if (this.pendingMessage) { - this.sendMessageOnChild(this.pendingMessage.context, this.pendingMessage.message); - } - else if (this.pendingHalfClose) { - this.child.halfClose(); - } - }, (status) => { - this.outputStatus(status); - }); - } - reportResolverError(status) { - var _a; - if ((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.getOptions().waitForReady) { - this.channel.queueCallForConfig(this); - } - else { - this.outputStatus(status); - } - } - cancelWithStatus(status, details) { - var _a; - this.trace('cancelWithStatus code: ' + status + ' details: "' + details + '"'); - (_a = this.child) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(status, details); - this.outputStatus({ - code: status, - details: details, - metadata: new metadata_1.Metadata(), - }); - } - getPeer() { - var _a, _b; - return (_b = (_a = this.child) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : this.channel.getTarget(); - } - start(metadata, listener) { - this.trace('start called'); - this.metadata = metadata.clone(); - this.listener = listener; - this.getConfig(); - } - sendMessageWithContext(context, message) { - this.trace('write() called with message of length ' + message.length); - if (this.child) { - this.sendMessageOnChild(context, message); - } - else { - this.pendingMessage = { context, message }; - } - } - startRead() { - this.trace('startRead called'); - if (this.child) { - this.child.startRead(); - } - else { - this.readPending = true; - } - } - halfClose() { - this.trace('halfClose called'); - if (this.child && !this.writeFilterPending) { - this.child.halfClose(); - } - else { - this.pendingHalfClose = true; - } - } - setCredentials(credentials) { - this.credentials = credentials; - } - addStatusWatcher(watcher) { - this.statusWatchers.push(watcher); - } - getCallNumber() { - return this.callNumber; - } - getAuthContext() { - if (this.child) { - return this.child.getAuthContext(); - } - else { - return null; - } - } -} -exports.ResolvingCall = ResolvingCall; -//# sourceMappingURL=resolving-call.js.map - -/***/ }), - -/***/ 63962: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ResolvingLoadBalancer = void 0; -const load_balancer_1 = __nccwpck_require__(7000); -const service_config_1 = __nccwpck_require__(70005); -const connectivity_state_1 = __nccwpck_require__(60778); -const resolver_1 = __nccwpck_require__(76255); -const picker_1 = __nccwpck_require__(71663); -const backoff_timeout_1 = __nccwpck_require__(14643); -const constants_1 = __nccwpck_require__(68288); -const metadata_1 = __nccwpck_require__(36100); -const logging = __nccwpck_require__(8536); -const constants_2 = __nccwpck_require__(68288); -const uri_parser_1 = __nccwpck_require__(56027); -const load_balancer_child_handler_1 = __nccwpck_require__(99069); -const TRACER_NAME = 'resolving_load_balancer'; -function trace(text) { - logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, text); -} -/** - * Name match levels in order from most to least specific. This is the order in - * which searches will be performed. - */ -const NAME_MATCH_LEVEL_ORDER = [ - 'SERVICE_AND_METHOD', - 'SERVICE', - 'EMPTY', -]; -function hasMatchingName(service, method, methodConfig, matchLevel) { - for (const name of methodConfig.name) { - switch (matchLevel) { - case 'EMPTY': - if (!name.service && !name.method) { - return true; - } - break; - case 'SERVICE': - if (name.service === service && !name.method) { - return true; - } - break; - case 'SERVICE_AND_METHOD': - if (name.service === service && name.method === method) { - return true; - } - } - } - return false; -} -function findMatchingConfig(service, method, methodConfigs, matchLevel) { - for (const config of methodConfigs) { - if (hasMatchingName(service, method, config, matchLevel)) { - return config; - } - } - return null; -} -function getDefaultConfigSelector(serviceConfig) { - return { - invoke(methodName, metadata) { - var _a, _b; - const splitName = methodName.split('/').filter(x => x.length > 0); - const service = (_a = splitName[0]) !== null && _a !== void 0 ? _a : ''; - const method = (_b = splitName[1]) !== null && _b !== void 0 ? _b : ''; - if (serviceConfig && serviceConfig.methodConfig) { - /* Check for the following in order, and return the first method - * config that matches: - * 1. A name that exactly matches the service and method - * 2. A name with no method set that matches the service - * 3. An empty name - */ - for (const matchLevel of NAME_MATCH_LEVEL_ORDER) { - const matchingConfig = findMatchingConfig(service, method, serviceConfig.methodConfig, matchLevel); - if (matchingConfig) { - return { - methodConfig: matchingConfig, - pickInformation: {}, - status: constants_1.Status.OK, - dynamicFilterFactories: [], - }; - } - } - } - return { - methodConfig: { name: [] }, - pickInformation: {}, - status: constants_1.Status.OK, - dynamicFilterFactories: [], - }; - }, - unref() { } - }; -} -class ResolvingLoadBalancer { - /** - * Wrapper class that behaves like a `LoadBalancer` and also handles name - * resolution internally. - * @param target The address of the backend to connect to. - * @param channelControlHelper `ChannelControlHelper` instance provided by - * this load balancer's owner. - * @param defaultServiceConfig The default service configuration to be used - * if none is provided by the name resolver. A `null` value indicates - * that the default behavior should be the default unconfigured behavior. - * In practice, that means using the "pick first" load balancer - * implmentation - */ - constructor(target, channelControlHelper, channelOptions, onSuccessfulResolution, onFailedResolution) { - this.target = target; - this.channelControlHelper = channelControlHelper; - this.channelOptions = channelOptions; - this.onSuccessfulResolution = onSuccessfulResolution; - this.onFailedResolution = onFailedResolution; - this.latestChildState = connectivity_state_1.ConnectivityState.IDLE; - this.latestChildPicker = new picker_1.QueuePicker(this); - this.latestChildErrorMessage = null; - /** - * This resolving load balancer's current connectivity state. - */ - this.currentState = connectivity_state_1.ConnectivityState.IDLE; - /** - * The service config object from the last successful resolution, if - * available. A value of null indicates that we have not yet received a valid - * service config from the resolver. - */ - this.previousServiceConfig = null; - /** - * Indicates whether we should attempt to resolve again after the backoff - * timer runs out. - */ - this.continueResolving = false; - if (channelOptions['grpc.service_config']) { - this.defaultServiceConfig = (0, service_config_1.validateServiceConfig)(JSON.parse(channelOptions['grpc.service_config'])); - } - else { - this.defaultServiceConfig = { - loadBalancingConfig: [], - methodConfig: [], - }; - } - this.updateState(connectivity_state_1.ConnectivityState.IDLE, new picker_1.QueuePicker(this), null); - this.childLoadBalancer = new load_balancer_child_handler_1.ChildLoadBalancerHandler({ - createSubchannel: channelControlHelper.createSubchannel.bind(channelControlHelper), - requestReresolution: () => { - /* If the backoffTimeout is running, we're still backing off from - * making resolve requests, so we shouldn't make another one here. - * In that case, the backoff timer callback will call - * updateResolution */ - if (this.backoffTimeout.isRunning()) { - trace('requestReresolution delayed by backoff timer until ' + - this.backoffTimeout.getEndTime().toISOString()); - this.continueResolving = true; - } - else { - this.updateResolution(); - } - }, - updateState: (newState, picker, errorMessage) => { - this.latestChildState = newState; - this.latestChildPicker = picker; - this.latestChildErrorMessage = errorMessage; - this.updateState(newState, picker, errorMessage); - }, - addChannelzChild: channelControlHelper.addChannelzChild.bind(channelControlHelper), - removeChannelzChild: channelControlHelper.removeChannelzChild.bind(channelControlHelper), - }); - this.innerResolver = (0, resolver_1.createResolver)(target, this.handleResolverResult.bind(this), channelOptions); - const backoffOptions = { - initialDelay: channelOptions['grpc.initial_reconnect_backoff_ms'], - maxDelay: channelOptions['grpc.max_reconnect_backoff_ms'], - }; - this.backoffTimeout = new backoff_timeout_1.BackoffTimeout(() => { - if (this.continueResolving) { - this.updateResolution(); - this.continueResolving = false; - } - else { - this.updateState(this.latestChildState, this.latestChildPicker, this.latestChildErrorMessage); - } - }, backoffOptions); - this.backoffTimeout.unref(); - } - handleResolverResult(endpointList, attributes, serviceConfig, resolutionNote) { - var _a, _b; - this.backoffTimeout.stop(); - this.backoffTimeout.reset(); - let resultAccepted = true; - let workingServiceConfig = null; - if (serviceConfig === null) { - workingServiceConfig = this.defaultServiceConfig; - } - else if (serviceConfig.ok) { - workingServiceConfig = serviceConfig.value; - } - else { - if (this.previousServiceConfig !== null) { - workingServiceConfig = this.previousServiceConfig; - } - else { - resultAccepted = false; - this.handleResolutionFailure(serviceConfig.error); - } - } - if (workingServiceConfig !== null) { - const workingConfigList = (_a = workingServiceConfig === null || workingServiceConfig === void 0 ? void 0 : workingServiceConfig.loadBalancingConfig) !== null && _a !== void 0 ? _a : []; - const loadBalancingConfig = (0, load_balancer_1.selectLbConfigFromList)(workingConfigList, true); - if (loadBalancingConfig === null) { - resultAccepted = false; - this.handleResolutionFailure({ - code: constants_1.Status.UNAVAILABLE, - details: 'All load balancer options in service config are not compatible', - metadata: new metadata_1.Metadata(), - }); - } - else { - resultAccepted = this.childLoadBalancer.updateAddressList(endpointList, loadBalancingConfig, Object.assign(Object.assign({}, this.channelOptions), attributes), resolutionNote); - } - } - if (resultAccepted) { - this.onSuccessfulResolution(workingServiceConfig, (_b = attributes[resolver_1.CHANNEL_ARGS_CONFIG_SELECTOR_KEY]) !== null && _b !== void 0 ? _b : getDefaultConfigSelector(workingServiceConfig)); - } - return resultAccepted; - } - updateResolution() { - this.innerResolver.updateResolution(); - if (this.currentState === connectivity_state_1.ConnectivityState.IDLE) { - /* this.latestChildPicker is initialized as new QueuePicker(this), which - * is an appropriate value here if the child LB policy is unset. - * Otherwise, we want to delegate to the child here, in case that - * triggers something. */ - this.updateState(connectivity_state_1.ConnectivityState.CONNECTING, this.latestChildPicker, this.latestChildErrorMessage); - } - this.backoffTimeout.runOnce(); - } - updateState(connectivityState, picker, errorMessage) { - trace((0, uri_parser_1.uriToString)(this.target) + - ' ' + - connectivity_state_1.ConnectivityState[this.currentState] + - ' -> ' + - connectivity_state_1.ConnectivityState[connectivityState]); - // Ensure that this.exitIdle() is called by the picker - if (connectivityState === connectivity_state_1.ConnectivityState.IDLE) { - picker = new picker_1.QueuePicker(this, picker); - } - this.currentState = connectivityState; - this.channelControlHelper.updateState(connectivityState, picker, errorMessage); - } - handleResolutionFailure(error) { - if (this.latestChildState === connectivity_state_1.ConnectivityState.IDLE) { - this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker(error), error.details); - this.onFailedResolution(error); - } - } - exitIdle() { - if (this.currentState === connectivity_state_1.ConnectivityState.IDLE || - this.currentState === connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { - if (this.backoffTimeout.isRunning()) { - this.continueResolving = true; - } - else { - this.updateResolution(); - } - } - this.childLoadBalancer.exitIdle(); - } - updateAddressList(endpointList, lbConfig) { - throw new Error('updateAddressList not supported on ResolvingLoadBalancer'); - } - resetBackoff() { - this.backoffTimeout.reset(); - this.childLoadBalancer.resetBackoff(); - } - destroy() { - this.childLoadBalancer.destroy(); - this.innerResolver.destroy(); - this.backoffTimeout.reset(); - this.backoffTimeout.stop(); - this.latestChildState = connectivity_state_1.ConnectivityState.IDLE; - this.latestChildPicker = new picker_1.QueuePicker(this); - this.currentState = connectivity_state_1.ConnectivityState.IDLE; - this.previousServiceConfig = null; - this.continueResolving = false; - } - getTypeName() { - return 'resolving_load_balancer'; - } -} -exports.ResolvingLoadBalancer = ResolvingLoadBalancer; -//# sourceMappingURL=resolving-load-balancer.js.map - -/***/ }), - -/***/ 2532: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.RetryingCall = exports.MessageBufferTracker = exports.RetryThrottler = void 0; -const constants_1 = __nccwpck_require__(68288); -const deadline_1 = __nccwpck_require__(52173); -const metadata_1 = __nccwpck_require__(36100); -const logging = __nccwpck_require__(8536); -const TRACER_NAME = 'retrying_call'; -class RetryThrottler { - constructor(maxTokens, tokenRatio, previousRetryThrottler) { - this.maxTokens = maxTokens; - this.tokenRatio = tokenRatio; - if (previousRetryThrottler) { - /* When carrying over tokens from a previous config, rescale them to the - * new max value */ - this.tokens = - previousRetryThrottler.tokens * - (maxTokens / previousRetryThrottler.maxTokens); - } - else { - this.tokens = maxTokens; - } - } - addCallSucceeded() { - this.tokens = Math.min(this.tokens + this.tokenRatio, this.maxTokens); - } - addCallFailed() { - this.tokens = Math.max(this.tokens - 1, 0); - } - canRetryCall() { - return this.tokens > (this.maxTokens / 2); - } -} -exports.RetryThrottler = RetryThrottler; -class MessageBufferTracker { - constructor(totalLimit, limitPerCall) { - this.totalLimit = totalLimit; - this.limitPerCall = limitPerCall; - this.totalAllocated = 0; - this.allocatedPerCall = new Map(); - } - allocate(size, callId) { - var _a; - const currentPerCall = (_a = this.allocatedPerCall.get(callId)) !== null && _a !== void 0 ? _a : 0; - if (this.limitPerCall - currentPerCall < size || - this.totalLimit - this.totalAllocated < size) { - return false; - } - this.allocatedPerCall.set(callId, currentPerCall + size); - this.totalAllocated += size; - return true; - } - free(size, callId) { - var _a; - if (this.totalAllocated < size) { - throw new Error(`Invalid buffer allocation state: call ${callId} freed ${size} > total allocated ${this.totalAllocated}`); - } - this.totalAllocated -= size; - const currentPerCall = (_a = this.allocatedPerCall.get(callId)) !== null && _a !== void 0 ? _a : 0; - if (currentPerCall < size) { - throw new Error(`Invalid buffer allocation state: call ${callId} freed ${size} > allocated for call ${currentPerCall}`); - } - this.allocatedPerCall.set(callId, currentPerCall - size); - } - freeAll(callId) { - var _a; - const currentPerCall = (_a = this.allocatedPerCall.get(callId)) !== null && _a !== void 0 ? _a : 0; - if (this.totalAllocated < currentPerCall) { - throw new Error(`Invalid buffer allocation state: call ${callId} allocated ${currentPerCall} > total allocated ${this.totalAllocated}`); - } - this.totalAllocated -= currentPerCall; - this.allocatedPerCall.delete(callId); - } -} -exports.MessageBufferTracker = MessageBufferTracker; -const PREVIONS_RPC_ATTEMPTS_METADATA_KEY = 'grpc-previous-rpc-attempts'; -const DEFAULT_MAX_ATTEMPTS_LIMIT = 5; -class RetryingCall { - constructor(channel, callConfig, methodName, host, credentials, deadline, callNumber, bufferTracker, retryThrottler) { - var _a; - this.channel = channel; - this.callConfig = callConfig; - this.methodName = methodName; - this.host = host; - this.credentials = credentials; - this.deadline = deadline; - this.callNumber = callNumber; - this.bufferTracker = bufferTracker; - this.retryThrottler = retryThrottler; - this.listener = null; - this.initialMetadata = null; - this.underlyingCalls = []; - this.writeBuffer = []; - /** - * The offset of message indices in the writeBuffer. For example, if - * writeBufferOffset is 10, message 10 is in writeBuffer[0] and message 15 - * is in writeBuffer[5]. - */ - this.writeBufferOffset = 0; - /** - * Tracks whether a read has been started, so that we know whether to start - * reads on new child calls. This only matters for the first read, because - * once a message comes in the child call becomes committed and there will - * be no new child calls. - */ - this.readStarted = false; - this.transparentRetryUsed = false; - /** - * Number of attempts so far - */ - this.attempts = 0; - this.hedgingTimer = null; - this.committedCallIndex = null; - this.initialRetryBackoffSec = 0; - this.nextRetryBackoffSec = 0; - const maxAttemptsLimit = (_a = channel.getOptions()['grpc-node.retry_max_attempts_limit']) !== null && _a !== void 0 ? _a : DEFAULT_MAX_ATTEMPTS_LIMIT; - if (channel.getOptions()['grpc.enable_retries'] === 0) { - this.state = 'NO_RETRY'; - this.maxAttempts = 1; - } - else if (callConfig.methodConfig.retryPolicy) { - this.state = 'RETRY'; - const retryPolicy = callConfig.methodConfig.retryPolicy; - this.nextRetryBackoffSec = this.initialRetryBackoffSec = Number(retryPolicy.initialBackoff.substring(0, retryPolicy.initialBackoff.length - 1)); - this.maxAttempts = Math.min(retryPolicy.maxAttempts, maxAttemptsLimit); - } - else if (callConfig.methodConfig.hedgingPolicy) { - this.state = 'HEDGING'; - this.maxAttempts = Math.min(callConfig.methodConfig.hedgingPolicy.maxAttempts, maxAttemptsLimit); - } - else { - this.state = 'TRANSPARENT_ONLY'; - this.maxAttempts = 1; - } - this.startTime = new Date(); - } - getDeadlineInfo() { - if (this.underlyingCalls.length === 0) { - return []; - } - const deadlineInfo = []; - const latestCall = this.underlyingCalls[this.underlyingCalls.length - 1]; - if (this.underlyingCalls.length > 1) { - deadlineInfo.push(`previous attempts: ${this.underlyingCalls.length - 1}`); - } - if (latestCall.startTime > this.startTime) { - deadlineInfo.push(`time to current attempt start: ${(0, deadline_1.formatDateDifference)(this.startTime, latestCall.startTime)}`); - } - deadlineInfo.push(...latestCall.call.getDeadlineInfo()); - return deadlineInfo; - } - getCallNumber() { - return this.callNumber; - } - trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '[' + this.callNumber + '] ' + text); - } - reportStatus(statusObject) { - this.trace('ended with status: code=' + - statusObject.code + - ' details="' + - statusObject.details + - '" start time=' + - this.startTime.toISOString()); - this.bufferTracker.freeAll(this.callNumber); - this.writeBufferOffset = this.writeBufferOffset + this.writeBuffer.length; - this.writeBuffer = []; - process.nextTick(() => { - var _a; - // Explicitly construct status object to remove progress field - (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onReceiveStatus({ - code: statusObject.code, - details: statusObject.details, - metadata: statusObject.metadata, - }); - }); - } - cancelWithStatus(status, details) { - this.trace('cancelWithStatus code: ' + status + ' details: "' + details + '"'); - this.reportStatus({ code: status, details, metadata: new metadata_1.Metadata() }); - for (const { call } of this.underlyingCalls) { - call.cancelWithStatus(status, details); - } - } - getPeer() { - if (this.committedCallIndex !== null) { - return this.underlyingCalls[this.committedCallIndex].call.getPeer(); - } - else { - return 'unknown'; - } - } - getBufferEntry(messageIndex) { - var _a; - return ((_a = this.writeBuffer[messageIndex - this.writeBufferOffset]) !== null && _a !== void 0 ? _a : { - entryType: 'FREED', - allocated: false, - }); - } - getNextBufferIndex() { - return this.writeBufferOffset + this.writeBuffer.length; - } - clearSentMessages() { - if (this.state !== 'COMMITTED') { - return; - } - let earliestNeededMessageIndex; - if (this.underlyingCalls[this.committedCallIndex].state === 'COMPLETED') { - /* If the committed call is completed, clear all messages, even if some - * have not been sent. */ - earliestNeededMessageIndex = this.getNextBufferIndex(); - } - else { - earliestNeededMessageIndex = - this.underlyingCalls[this.committedCallIndex].nextMessageToSend; - } - for (let messageIndex = this.writeBufferOffset; messageIndex < earliestNeededMessageIndex; messageIndex++) { - const bufferEntry = this.getBufferEntry(messageIndex); - if (bufferEntry.allocated) { - this.bufferTracker.free(bufferEntry.message.message.length, this.callNumber); - } - } - this.writeBuffer = this.writeBuffer.slice(earliestNeededMessageIndex - this.writeBufferOffset); - this.writeBufferOffset = earliestNeededMessageIndex; - } - commitCall(index) { - var _a, _b; - if (this.state === 'COMMITTED') { - return; - } - this.trace('Committing call [' + - this.underlyingCalls[index].call.getCallNumber() + - '] at index ' + - index); - this.state = 'COMMITTED'; - (_b = (_a = this.callConfig).onCommitted) === null || _b === void 0 ? void 0 : _b.call(_a); - this.committedCallIndex = index; - for (let i = 0; i < this.underlyingCalls.length; i++) { - if (i === index) { - continue; - } - if (this.underlyingCalls[i].state === 'COMPLETED') { - continue; - } - this.underlyingCalls[i].state = 'COMPLETED'; - this.underlyingCalls[i].call.cancelWithStatus(constants_1.Status.CANCELLED, 'Discarded in favor of other hedged attempt'); - } - this.clearSentMessages(); - } - commitCallWithMostMessages() { - if (this.state === 'COMMITTED') { - return; - } - let mostMessages = -1; - let callWithMostMessages = -1; - for (const [index, childCall] of this.underlyingCalls.entries()) { - if (childCall.state === 'ACTIVE' && - childCall.nextMessageToSend > mostMessages) { - mostMessages = childCall.nextMessageToSend; - callWithMostMessages = index; - } - } - if (callWithMostMessages === -1) { - /* There are no active calls, disable retries to force the next call that - * is started to be committed. */ - this.state = 'TRANSPARENT_ONLY'; - } - else { - this.commitCall(callWithMostMessages); - } - } - isStatusCodeInList(list, code) { - return list.some(value => { - var _a; - return value === code || - value.toString().toLowerCase() === ((_a = constants_1.Status[code]) === null || _a === void 0 ? void 0 : _a.toLowerCase()); - }); - } - getNextRetryJitter() { - /* Jitter of +-20% is applied: https://github.com/grpc/proposal/blob/master/A6-client-retries.md#exponential-backoff */ - return Math.random() * (1.2 - 0.8) + 0.8; - } - getNextRetryBackoffMs() { - var _a; - const retryPolicy = (_a = this.callConfig) === null || _a === void 0 ? void 0 : _a.methodConfig.retryPolicy; - if (!retryPolicy) { - return 0; - } - const jitter = this.getNextRetryJitter(); - const nextBackoffMs = jitter * this.nextRetryBackoffSec * 1000; - const maxBackoffSec = Number(retryPolicy.maxBackoff.substring(0, retryPolicy.maxBackoff.length - 1)); - this.nextRetryBackoffSec = Math.min(this.nextRetryBackoffSec * retryPolicy.backoffMultiplier, maxBackoffSec); - return nextBackoffMs; - } - maybeRetryCall(pushback, callback) { - if (this.state !== 'RETRY') { - callback(false); - return; - } - if (this.attempts >= this.maxAttempts) { - callback(false); - return; - } - let retryDelayMs; - if (pushback === null) { - retryDelayMs = this.getNextRetryBackoffMs(); - } - else if (pushback < 0) { - this.state = 'TRANSPARENT_ONLY'; - callback(false); - return; - } - else { - retryDelayMs = pushback; - this.nextRetryBackoffSec = this.initialRetryBackoffSec; - } - setTimeout(() => { - var _a, _b; - if (this.state !== 'RETRY') { - callback(false); - return; - } - if ((_b = (_a = this.retryThrottler) === null || _a === void 0 ? void 0 : _a.canRetryCall()) !== null && _b !== void 0 ? _b : true) { - callback(true); - this.attempts += 1; - this.startNewAttempt(); - } - else { - this.trace('Retry attempt denied by throttling policy'); - callback(false); - } - }, retryDelayMs); - } - countActiveCalls() { - let count = 0; - for (const call of this.underlyingCalls) { - if ((call === null || call === void 0 ? void 0 : call.state) === 'ACTIVE') { - count += 1; - } - } - return count; - } - handleProcessedStatus(status, callIndex, pushback) { - var _a, _b, _c; - switch (this.state) { - case 'COMMITTED': - case 'NO_RETRY': - case 'TRANSPARENT_ONLY': - this.commitCall(callIndex); - this.reportStatus(status); - break; - case 'HEDGING': - if (this.isStatusCodeInList((_a = this.callConfig.methodConfig.hedgingPolicy.nonFatalStatusCodes) !== null && _a !== void 0 ? _a : [], status.code)) { - (_b = this.retryThrottler) === null || _b === void 0 ? void 0 : _b.addCallFailed(); - let delayMs; - if (pushback === null) { - delayMs = 0; - } - else if (pushback < 0) { - this.state = 'TRANSPARENT_ONLY'; - this.commitCall(callIndex); - this.reportStatus(status); - return; - } - else { - delayMs = pushback; - } - setTimeout(() => { - this.maybeStartHedgingAttempt(); - // If after trying to start a call there are no active calls, this was the last one - if (this.countActiveCalls() === 0) { - this.commitCall(callIndex); - this.reportStatus(status); - } - }, delayMs); - } - else { - this.commitCall(callIndex); - this.reportStatus(status); - } - break; - case 'RETRY': - if (this.isStatusCodeInList(this.callConfig.methodConfig.retryPolicy.retryableStatusCodes, status.code)) { - (_c = this.retryThrottler) === null || _c === void 0 ? void 0 : _c.addCallFailed(); - this.maybeRetryCall(pushback, retried => { - if (!retried) { - this.commitCall(callIndex); - this.reportStatus(status); - } - }); - } - else { - this.commitCall(callIndex); - this.reportStatus(status); - } - break; - } - } - getPushback(metadata) { - const mdValue = metadata.get('grpc-retry-pushback-ms'); - if (mdValue.length === 0) { - return null; - } - try { - return parseInt(mdValue[0]); - } - catch (e) { - return -1; - } - } - handleChildStatus(status, callIndex) { - var _a; - if (this.underlyingCalls[callIndex].state === 'COMPLETED') { - return; - } - this.trace('state=' + - this.state + - ' handling status with progress ' + - status.progress + - ' from child [' + - this.underlyingCalls[callIndex].call.getCallNumber() + - '] in state ' + - this.underlyingCalls[callIndex].state); - this.underlyingCalls[callIndex].state = 'COMPLETED'; - if (status.code === constants_1.Status.OK) { - (_a = this.retryThrottler) === null || _a === void 0 ? void 0 : _a.addCallSucceeded(); - this.commitCall(callIndex); - this.reportStatus(status); - return; - } - if (this.state === 'NO_RETRY') { - this.commitCall(callIndex); - this.reportStatus(status); - return; - } - if (this.state === 'COMMITTED') { - this.reportStatus(status); - return; - } - const pushback = this.getPushback(status.metadata); - switch (status.progress) { - case 'NOT_STARTED': - // RPC never leaves the client, always safe to retry - this.startNewAttempt(); - break; - case 'REFUSED': - // RPC reaches the server library, but not the server application logic - if (this.transparentRetryUsed) { - this.handleProcessedStatus(status, callIndex, pushback); - } - else { - this.transparentRetryUsed = true; - this.startNewAttempt(); - } - break; - case 'DROP': - this.commitCall(callIndex); - this.reportStatus(status); - break; - case 'PROCESSED': - this.handleProcessedStatus(status, callIndex, pushback); - break; - } - } - maybeStartHedgingAttempt() { - if (this.state !== 'HEDGING') { - return; - } - if (!this.callConfig.methodConfig.hedgingPolicy) { - return; - } - if (this.attempts >= this.maxAttempts) { - return; - } - this.attempts += 1; - this.startNewAttempt(); - this.maybeStartHedgingTimer(); - } - maybeStartHedgingTimer() { - var _a, _b, _c; - if (this.hedgingTimer) { - clearTimeout(this.hedgingTimer); - } - if (this.state !== 'HEDGING') { - return; - } - if (!this.callConfig.methodConfig.hedgingPolicy) { - return; - } - const hedgingPolicy = this.callConfig.methodConfig.hedgingPolicy; - if (this.attempts >= this.maxAttempts) { - return; - } - const hedgingDelayString = (_a = hedgingPolicy.hedgingDelay) !== null && _a !== void 0 ? _a : '0s'; - const hedgingDelaySec = Number(hedgingDelayString.substring(0, hedgingDelayString.length - 1)); - this.hedgingTimer = setTimeout(() => { - this.maybeStartHedgingAttempt(); - }, hedgingDelaySec * 1000); - (_c = (_b = this.hedgingTimer).unref) === null || _c === void 0 ? void 0 : _c.call(_b); - } - startNewAttempt() { - const child = this.channel.createLoadBalancingCall(this.callConfig, this.methodName, this.host, this.credentials, this.deadline); - this.trace('Created child call [' + - child.getCallNumber() + - '] for attempt ' + - this.attempts); - const index = this.underlyingCalls.length; - this.underlyingCalls.push({ - state: 'ACTIVE', - call: child, - nextMessageToSend: 0, - startTime: new Date(), - }); - const previousAttempts = this.attempts - 1; - const initialMetadata = this.initialMetadata.clone(); - if (previousAttempts > 0) { - initialMetadata.set(PREVIONS_RPC_ATTEMPTS_METADATA_KEY, `${previousAttempts}`); - } - let receivedMetadata = false; - child.start(initialMetadata, { - onReceiveMetadata: metadata => { - this.trace('Received metadata from child [' + child.getCallNumber() + ']'); - this.commitCall(index); - receivedMetadata = true; - if (previousAttempts > 0) { - metadata.set(PREVIONS_RPC_ATTEMPTS_METADATA_KEY, `${previousAttempts}`); - } - if (this.underlyingCalls[index].state === 'ACTIVE') { - this.listener.onReceiveMetadata(metadata); - } - }, - onReceiveMessage: message => { - this.trace('Received message from child [' + child.getCallNumber() + ']'); - this.commitCall(index); - if (this.underlyingCalls[index].state === 'ACTIVE') { - this.listener.onReceiveMessage(message); - } - }, - onReceiveStatus: status => { - this.trace('Received status from child [' + child.getCallNumber() + ']'); - if (!receivedMetadata && previousAttempts > 0) { - status.metadata.set(PREVIONS_RPC_ATTEMPTS_METADATA_KEY, `${previousAttempts}`); - } - this.handleChildStatus(status, index); - }, - }); - this.sendNextChildMessage(index); - if (this.readStarted) { - child.startRead(); - } - } - start(metadata, listener) { - this.trace('start called'); - this.listener = listener; - this.initialMetadata = metadata; - this.attempts += 1; - this.startNewAttempt(); - this.maybeStartHedgingTimer(); - } - handleChildWriteCompleted(childIndex, messageIndex) { - var _a, _b; - (_b = (_a = this.getBufferEntry(messageIndex)).callback) === null || _b === void 0 ? void 0 : _b.call(_a); - this.clearSentMessages(); - const childCall = this.underlyingCalls[childIndex]; - childCall.nextMessageToSend += 1; - this.sendNextChildMessage(childIndex); - } - sendNextChildMessage(childIndex) { - const childCall = this.underlyingCalls[childIndex]; - if (childCall.state === 'COMPLETED') { - return; - } - const messageIndex = childCall.nextMessageToSend; - if (this.getBufferEntry(messageIndex)) { - const bufferEntry = this.getBufferEntry(messageIndex); - switch (bufferEntry.entryType) { - case 'MESSAGE': - childCall.call.sendMessageWithContext({ - callback: error => { - // Ignore error - this.handleChildWriteCompleted(childIndex, messageIndex); - }, - }, bufferEntry.message.message); - // Optimization: if the next entry is HALF_CLOSE, send it immediately - // without waiting for the message callback. This is safe because the message - // has already been passed to the underlying transport. - const nextEntry = this.getBufferEntry(messageIndex + 1); - if (nextEntry.entryType === 'HALF_CLOSE') { - this.trace('Sending halfClose immediately after message to child [' + - childCall.call.getCallNumber() + - '] - optimizing for unary/final message'); - childCall.nextMessageToSend += 1; - childCall.call.halfClose(); - } - break; - case 'HALF_CLOSE': - childCall.nextMessageToSend += 1; - childCall.call.halfClose(); - break; - case 'FREED': - // Should not be possible - break; - } - } - } - sendMessageWithContext(context, message) { - this.trace('write() called with message of length ' + message.length); - const writeObj = { - message, - flags: context.flags, - }; - const messageIndex = this.getNextBufferIndex(); - const bufferEntry = { - entryType: 'MESSAGE', - message: writeObj, - allocated: this.bufferTracker.allocate(message.length, this.callNumber), - }; - this.writeBuffer.push(bufferEntry); - if (bufferEntry.allocated) { - // Run this in next tick to avoid suspending the current execution context - // otherwise it might cause half closing the call before sending message - process.nextTick(() => { - var _a; - (_a = context.callback) === null || _a === void 0 ? void 0 : _a.call(context); - }); - for (const [callIndex, call] of this.underlyingCalls.entries()) { - if (call.state === 'ACTIVE' && - call.nextMessageToSend === messageIndex) { - call.call.sendMessageWithContext({ - callback: error => { - // Ignore error - this.handleChildWriteCompleted(callIndex, messageIndex); - }, - }, message); - } - } - } - else { - this.commitCallWithMostMessages(); - // commitCallWithMostMessages can fail if we are between ping attempts - if (this.committedCallIndex === null) { - return; - } - const call = this.underlyingCalls[this.committedCallIndex]; - bufferEntry.callback = context.callback; - if (call.state === 'ACTIVE' && call.nextMessageToSend === messageIndex) { - call.call.sendMessageWithContext({ - callback: error => { - // Ignore error - this.handleChildWriteCompleted(this.committedCallIndex, messageIndex); - }, - }, message); - } - } - } - startRead() { - this.trace('startRead called'); - this.readStarted = true; - for (const underlyingCall of this.underlyingCalls) { - if ((underlyingCall === null || underlyingCall === void 0 ? void 0 : underlyingCall.state) === 'ACTIVE') { - underlyingCall.call.startRead(); - } - } - } - halfClose() { - this.trace('halfClose called'); - const halfCloseIndex = this.getNextBufferIndex(); - this.writeBuffer.push({ - entryType: 'HALF_CLOSE', - allocated: false, - }); - for (const call of this.underlyingCalls) { - if ((call === null || call === void 0 ? void 0 : call.state) === 'ACTIVE') { - // Send halfClose to call when either: - // - nextMessageToSend === halfCloseIndex - 1: last message sent, callback pending (optimization) - // - nextMessageToSend === halfCloseIndex: all messages sent and acknowledged - if (call.nextMessageToSend === halfCloseIndex - || call.nextMessageToSend === halfCloseIndex - 1) { - this.trace('Sending halfClose immediately to child [' + - call.call.getCallNumber() + - '] - all messages already sent'); - call.nextMessageToSend += 1; - call.call.halfClose(); - } - // Otherwise, halfClose will be sent by sendNextChildMessage when message callbacks complete - } - } - } - setCredentials(newCredentials) { - throw new Error('Method not implemented.'); - } - getMethod() { - return this.methodName; - } - getHost() { - return this.host; - } - getAuthContext() { - if (this.committedCallIndex !== null) { - return this.underlyingCalls[this.committedCallIndex].call.getAuthContext(); - } - else { - return null; - } - } -} -exports.RetryingCall = RetryingCall; -//# sourceMappingURL=retrying-call.js.map - -/***/ }), - -/***/ 34615: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ServerDuplexStreamImpl = exports.ServerWritableStreamImpl = exports.ServerReadableStreamImpl = exports.ServerUnaryCallImpl = void 0; -exports.serverErrorToStatus = serverErrorToStatus; -const events_1 = __nccwpck_require__(24434); -const stream_1 = __nccwpck_require__(2203); -const constants_1 = __nccwpck_require__(68288); -const metadata_1 = __nccwpck_require__(36100); -function serverErrorToStatus(error, overrideTrailers) { - var _a; - const status = { - code: constants_1.Status.UNKNOWN, - details: 'message' in error ? error.message : 'Unknown Error', - metadata: (_a = overrideTrailers !== null && overrideTrailers !== void 0 ? overrideTrailers : error.metadata) !== null && _a !== void 0 ? _a : null, - }; - if ('code' in error && - typeof error.code === 'number' && - Number.isInteger(error.code)) { - status.code = error.code; - if ('details' in error && typeof error.details === 'string') { - status.details = error.details; - } - } - return status; -} -class ServerUnaryCallImpl extends events_1.EventEmitter { - constructor(path, call, metadata, request) { - super(); - this.path = path; - this.call = call; - this.metadata = metadata; - this.request = request; - this.cancelled = false; - } - getPeer() { - return this.call.getPeer(); - } - sendMetadata(responseMetadata) { - this.call.sendMetadata(responseMetadata); - } - getDeadline() { - return this.call.getDeadline(); - } - getPath() { - return this.path; - } - getHost() { - return this.call.getHost(); - } - getAuthContext() { - return this.call.getAuthContext(); - } - getMetricsRecorder() { - return this.call.getMetricsRecorder(); - } -} -exports.ServerUnaryCallImpl = ServerUnaryCallImpl; -class ServerReadableStreamImpl extends stream_1.Readable { - constructor(path, call, metadata) { - super({ objectMode: true }); - this.path = path; - this.call = call; - this.metadata = metadata; - this.cancelled = false; - } - _read(size) { - this.call.startRead(); - } - getPeer() { - return this.call.getPeer(); - } - sendMetadata(responseMetadata) { - this.call.sendMetadata(responseMetadata); - } - getDeadline() { - return this.call.getDeadline(); - } - getPath() { - return this.path; - } - getHost() { - return this.call.getHost(); - } - getAuthContext() { - return this.call.getAuthContext(); - } - getMetricsRecorder() { - return this.call.getMetricsRecorder(); - } -} -exports.ServerReadableStreamImpl = ServerReadableStreamImpl; -class ServerWritableStreamImpl extends stream_1.Writable { - constructor(path, call, metadata, request) { - super({ objectMode: true }); - this.path = path; - this.call = call; - this.metadata = metadata; - this.request = request; - this.pendingStatus = { - code: constants_1.Status.OK, - details: 'OK', - }; - this.cancelled = false; - this.trailingMetadata = new metadata_1.Metadata(); - this.on('error', err => { - this.pendingStatus = serverErrorToStatus(err); - this.end(); - }); - } - getPeer() { - return this.call.getPeer(); - } - sendMetadata(responseMetadata) { - this.call.sendMetadata(responseMetadata); - } - getDeadline() { - return this.call.getDeadline(); - } - getPath() { - return this.path; - } - getHost() { - return this.call.getHost(); - } - getAuthContext() { - return this.call.getAuthContext(); - } - getMetricsRecorder() { - return this.call.getMetricsRecorder(); - } - _write(chunk, encoding, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - callback) { - this.call.sendMessage(chunk, callback); - } - _final(callback) { - var _a; - callback(null); - this.call.sendStatus(Object.assign(Object.assign({}, this.pendingStatus), { metadata: (_a = this.pendingStatus.metadata) !== null && _a !== void 0 ? _a : this.trailingMetadata })); - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - end(metadata) { - if (metadata) { - this.trailingMetadata = metadata; - } - return super.end(); - } -} -exports.ServerWritableStreamImpl = ServerWritableStreamImpl; -class ServerDuplexStreamImpl extends stream_1.Duplex { - constructor(path, call, metadata) { - super({ objectMode: true }); - this.path = path; - this.call = call; - this.metadata = metadata; - this.pendingStatus = { - code: constants_1.Status.OK, - details: 'OK', - }; - this.cancelled = false; - this.trailingMetadata = new metadata_1.Metadata(); - this.on('error', err => { - this.pendingStatus = serverErrorToStatus(err); - this.end(); - }); - } - getPeer() { - return this.call.getPeer(); - } - sendMetadata(responseMetadata) { - this.call.sendMetadata(responseMetadata); - } - getDeadline() { - return this.call.getDeadline(); - } - getPath() { - return this.path; - } - getHost() { - return this.call.getHost(); - } - getAuthContext() { - return this.call.getAuthContext(); - } - getMetricsRecorder() { - return this.call.getMetricsRecorder(); - } - _read(size) { - this.call.startRead(); - } - _write(chunk, encoding, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - callback) { - this.call.sendMessage(chunk, callback); - } - _final(callback) { - var _a; - callback(null); - this.call.sendStatus(Object.assign(Object.assign({}, this.pendingStatus), { metadata: (_a = this.pendingStatus.metadata) !== null && _a !== void 0 ? _a : this.trailingMetadata })); - } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - end(metadata) { - if (metadata) { - this.trailingMetadata = metadata; - } - return super.end(); - } -} -exports.ServerDuplexStreamImpl = ServerDuplexStreamImpl; -//# sourceMappingURL=server-call.js.map - -/***/ }), - -/***/ 36545: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ServerCredentials = void 0; -exports.createCertificateProviderServerCredentials = createCertificateProviderServerCredentials; -exports.createServerCredentialsWithInterceptors = createServerCredentialsWithInterceptors; -const tls_helpers_1 = __nccwpck_require__(68876); -class ServerCredentials { - constructor(serverConstructorOptions, contextOptions) { - this.serverConstructorOptions = serverConstructorOptions; - this.watchers = new Set(); - this.latestContextOptions = null; - this.latestContextOptions = contextOptions !== null && contextOptions !== void 0 ? contextOptions : null; - } - _addWatcher(watcher) { - this.watchers.add(watcher); - } - _removeWatcher(watcher) { - this.watchers.delete(watcher); - } - getWatcherCount() { - return this.watchers.size; - } - updateSecureContextOptions(options) { - this.latestContextOptions = options; - for (const watcher of this.watchers) { - watcher(this.latestContextOptions); - } - } - _isSecure() { - return this.serverConstructorOptions !== null; - } - _getSecureContextOptions() { - return this.latestContextOptions; - } - _getConstructorOptions() { - return this.serverConstructorOptions; - } - _getInterceptors() { - return []; - } - static createInsecure() { - return new InsecureServerCredentials(); - } - static createSsl(rootCerts, keyCertPairs, checkClientCertificate = false) { - var _a; - if (rootCerts !== null && !Buffer.isBuffer(rootCerts)) { - throw new TypeError('rootCerts must be null or a Buffer'); - } - if (!Array.isArray(keyCertPairs)) { - throw new TypeError('keyCertPairs must be an array'); - } - if (typeof checkClientCertificate !== 'boolean') { - throw new TypeError('checkClientCertificate must be a boolean'); - } - const cert = []; - const key = []; - for (let i = 0; i < keyCertPairs.length; i++) { - const pair = keyCertPairs[i]; - if (pair === null || typeof pair !== 'object') { - throw new TypeError(`keyCertPair[${i}] must be an object`); - } - if (!Buffer.isBuffer(pair.private_key)) { - throw new TypeError(`keyCertPair[${i}].private_key must be a Buffer`); - } - if (!Buffer.isBuffer(pair.cert_chain)) { - throw new TypeError(`keyCertPair[${i}].cert_chain must be a Buffer`); - } - cert.push(pair.cert_chain); - key.push(pair.private_key); - } - return new SecureServerCredentials({ - requestCert: checkClientCertificate, - ciphers: tls_helpers_1.CIPHER_SUITES, - }, { - ca: (_a = rootCerts !== null && rootCerts !== void 0 ? rootCerts : (0, tls_helpers_1.getDefaultRootsData)()) !== null && _a !== void 0 ? _a : undefined, - cert, - key, - }); - } -} -exports.ServerCredentials = ServerCredentials; -class InsecureServerCredentials extends ServerCredentials { - constructor() { - super(null); - } - _getSettings() { - return null; - } - _equals(other) { - return other instanceof InsecureServerCredentials; - } -} -class SecureServerCredentials extends ServerCredentials { - constructor(constructorOptions, contextOptions) { - super(constructorOptions, contextOptions); - this.options = Object.assign(Object.assign({}, constructorOptions), contextOptions); - } - /** - * Checks equality by checking the options that are actually set by - * createSsl. - * @param other - * @returns - */ - _equals(other) { - if (this === other) { - return true; - } - if (!(other instanceof SecureServerCredentials)) { - return false; - } - // options.ca equality check - if (Buffer.isBuffer(this.options.ca) && Buffer.isBuffer(other.options.ca)) { - if (!this.options.ca.equals(other.options.ca)) { - return false; - } - } - else { - if (this.options.ca !== other.options.ca) { - return false; - } - } - // options.cert equality check - if (Array.isArray(this.options.cert) && Array.isArray(other.options.cert)) { - if (this.options.cert.length !== other.options.cert.length) { - return false; - } - for (let i = 0; i < this.options.cert.length; i++) { - const thisCert = this.options.cert[i]; - const otherCert = other.options.cert[i]; - if (Buffer.isBuffer(thisCert) && Buffer.isBuffer(otherCert)) { - if (!thisCert.equals(otherCert)) { - return false; - } - } - else { - if (thisCert !== otherCert) { - return false; - } - } - } - } - else { - if (this.options.cert !== other.options.cert) { - return false; - } - } - // options.key equality check - if (Array.isArray(this.options.key) && Array.isArray(other.options.key)) { - if (this.options.key.length !== other.options.key.length) { - return false; - } - for (let i = 0; i < this.options.key.length; i++) { - const thisKey = this.options.key[i]; - const otherKey = other.options.key[i]; - if (Buffer.isBuffer(thisKey) && Buffer.isBuffer(otherKey)) { - if (!thisKey.equals(otherKey)) { - return false; - } - } - else { - if (thisKey !== otherKey) { - return false; - } - } - } - } - else { - if (this.options.key !== other.options.key) { - return false; - } - } - // options.requestCert equality check - if (this.options.requestCert !== other.options.requestCert) { - return false; - } - /* ciphers is derived from a value that is constant for the process, so no - * equality check is needed. */ - return true; - } -} -class CertificateProviderServerCredentials extends ServerCredentials { - constructor(identityCertificateProvider, caCertificateProvider, requireClientCertificate) { - super({ - requestCert: caCertificateProvider !== null, - rejectUnauthorized: requireClientCertificate, - ciphers: tls_helpers_1.CIPHER_SUITES - }); - this.identityCertificateProvider = identityCertificateProvider; - this.caCertificateProvider = caCertificateProvider; - this.requireClientCertificate = requireClientCertificate; - this.latestCaUpdate = null; - this.latestIdentityUpdate = null; - this.caCertificateUpdateListener = this.handleCaCertificateUpdate.bind(this); - this.identityCertificateUpdateListener = this.handleIdentityCertitificateUpdate.bind(this); - } - _addWatcher(watcher) { - var _a; - if (this.getWatcherCount() === 0) { - (_a = this.caCertificateProvider) === null || _a === void 0 ? void 0 : _a.addCaCertificateListener(this.caCertificateUpdateListener); - this.identityCertificateProvider.addIdentityCertificateListener(this.identityCertificateUpdateListener); - } - super._addWatcher(watcher); - } - _removeWatcher(watcher) { - var _a; - super._removeWatcher(watcher); - if (this.getWatcherCount() === 0) { - (_a = this.caCertificateProvider) === null || _a === void 0 ? void 0 : _a.removeCaCertificateListener(this.caCertificateUpdateListener); - this.identityCertificateProvider.removeIdentityCertificateListener(this.identityCertificateUpdateListener); - } - } - _equals(other) { - if (this === other) { - return true; - } - if (!(other instanceof CertificateProviderServerCredentials)) { - return false; - } - return (this.caCertificateProvider === other.caCertificateProvider && - this.identityCertificateProvider === other.identityCertificateProvider && - this.requireClientCertificate === other.requireClientCertificate); - } - calculateSecureContextOptions() { - var _a; - if (this.latestIdentityUpdate === null) { - return null; - } - if (this.caCertificateProvider !== null && this.latestCaUpdate === null) { - return null; - } - return { - ca: (_a = this.latestCaUpdate) === null || _a === void 0 ? void 0 : _a.caCertificate, - cert: [this.latestIdentityUpdate.certificate], - key: [this.latestIdentityUpdate.privateKey], - }; - } - finalizeUpdate() { - const secureContextOptions = this.calculateSecureContextOptions(); - this.updateSecureContextOptions(secureContextOptions); - } - handleCaCertificateUpdate(update) { - this.latestCaUpdate = update; - this.finalizeUpdate(); - } - handleIdentityCertitificateUpdate(update) { - this.latestIdentityUpdate = update; - this.finalizeUpdate(); - } -} -function createCertificateProviderServerCredentials(caCertificateProvider, identityCertificateProvider, requireClientCertificate) { - return new CertificateProviderServerCredentials(caCertificateProvider, identityCertificateProvider, requireClientCertificate); -} -class InterceptorServerCredentials extends ServerCredentials { - constructor(childCredentials, interceptors) { - super({}); - this.childCredentials = childCredentials; - this.interceptors = interceptors; - } - _isSecure() { - return this.childCredentials._isSecure(); - } - _equals(other) { - if (!(other instanceof InterceptorServerCredentials)) { - return false; - } - if (!(this.childCredentials._equals(other.childCredentials))) { - return false; - } - if (this.interceptors.length !== other.interceptors.length) { - return false; - } - for (let i = 0; i < this.interceptors.length; i++) { - if (this.interceptors[i] !== other.interceptors[i]) { - return false; - } - } - return true; - } - _getInterceptors() { - return this.interceptors; - } - _addWatcher(watcher) { - this.childCredentials._addWatcher(watcher); - } - _removeWatcher(watcher) { - this.childCredentials._removeWatcher(watcher); - } - _getConstructorOptions() { - return this.childCredentials._getConstructorOptions(); - } - _getSecureContextOptions() { - return this.childCredentials._getSecureContextOptions(); - } -} -function createServerCredentialsWithInterceptors(credentials, interceptors) { - return new InterceptorServerCredentials(credentials, interceptors); -} -//# sourceMappingURL=server-credentials.js.map - -/***/ }), - -/***/ 42151: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2024 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BaseServerInterceptingCall = exports.ServerInterceptingCall = exports.ResponderBuilder = exports.ServerListenerBuilder = void 0; -exports.isInterceptingServerListener = isInterceptingServerListener; -exports.getServerInterceptingCall = getServerInterceptingCall; -const metadata_1 = __nccwpck_require__(36100); -const constants_1 = __nccwpck_require__(68288); -const http2 = __nccwpck_require__(85675); -const error_1 = __nccwpck_require__(98219); -const zlib = __nccwpck_require__(43106); -const stream_decoder_1 = __nccwpck_require__(47956); -const logging = __nccwpck_require__(8536); -const tls_1 = __nccwpck_require__(64756); -const orca_1 = __nccwpck_require__(82124); -const TRACER_NAME = 'server_call'; -function trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); -} -class ServerListenerBuilder { - constructor() { - this.metadata = undefined; - this.message = undefined; - this.halfClose = undefined; - this.cancel = undefined; - } - withOnReceiveMetadata(onReceiveMetadata) { - this.metadata = onReceiveMetadata; - return this; - } - withOnReceiveMessage(onReceiveMessage) { - this.message = onReceiveMessage; - return this; - } - withOnReceiveHalfClose(onReceiveHalfClose) { - this.halfClose = onReceiveHalfClose; - return this; - } - withOnCancel(onCancel) { - this.cancel = onCancel; - return this; - } - build() { - return { - onReceiveMetadata: this.metadata, - onReceiveMessage: this.message, - onReceiveHalfClose: this.halfClose, - onCancel: this.cancel, - }; - } -} -exports.ServerListenerBuilder = ServerListenerBuilder; -function isInterceptingServerListener(listener) { - return (listener.onReceiveMetadata !== undefined && - listener.onReceiveMetadata.length === 1); -} -class InterceptingServerListenerImpl { - constructor(listener, nextListener) { - this.listener = listener; - this.nextListener = nextListener; - /** - * Once the call is cancelled, ignore all other events. - */ - this.cancelled = false; - this.processingMetadata = false; - this.hasPendingMessage = false; - this.pendingMessage = null; - this.processingMessage = false; - this.hasPendingHalfClose = false; - } - processPendingMessage() { - if (this.hasPendingMessage) { - this.nextListener.onReceiveMessage(this.pendingMessage); - this.pendingMessage = null; - this.hasPendingMessage = false; - } - } - processPendingHalfClose() { - if (this.hasPendingHalfClose) { - this.nextListener.onReceiveHalfClose(); - this.hasPendingHalfClose = false; - } - } - onReceiveMetadata(metadata) { - if (this.cancelled) { - return; - } - this.processingMetadata = true; - this.listener.onReceiveMetadata(metadata, interceptedMetadata => { - this.processingMetadata = false; - if (this.cancelled) { - return; - } - this.nextListener.onReceiveMetadata(interceptedMetadata); - this.processPendingMessage(); - this.processPendingHalfClose(); - }); - } - onReceiveMessage(message) { - if (this.cancelled) { - return; - } - this.processingMessage = true; - this.listener.onReceiveMessage(message, msg => { - this.processingMessage = false; - if (this.cancelled) { - return; - } - if (this.processingMetadata) { - this.pendingMessage = msg; - this.hasPendingMessage = true; - } - else { - this.nextListener.onReceiveMessage(msg); - this.processPendingHalfClose(); - } - }); - } - onReceiveHalfClose() { - if (this.cancelled) { - return; - } - this.listener.onReceiveHalfClose(() => { - if (this.cancelled) { - return; - } - if (this.processingMetadata || this.processingMessage) { - this.hasPendingHalfClose = true; - } - else { - this.nextListener.onReceiveHalfClose(); - } - }); - } - onCancel() { - this.cancelled = true; - this.listener.onCancel(); - this.nextListener.onCancel(); - } -} -class ResponderBuilder { - constructor() { - this.start = undefined; - this.metadata = undefined; - this.message = undefined; - this.status = undefined; - } - withStart(start) { - this.start = start; - return this; - } - withSendMetadata(sendMetadata) { - this.metadata = sendMetadata; - return this; - } - withSendMessage(sendMessage) { - this.message = sendMessage; - return this; - } - withSendStatus(sendStatus) { - this.status = sendStatus; - return this; - } - build() { - return { - start: this.start, - sendMetadata: this.metadata, - sendMessage: this.message, - sendStatus: this.status, - }; - } -} -exports.ResponderBuilder = ResponderBuilder; -const defaultServerListener = { - onReceiveMetadata: (metadata, next) => { - next(metadata); - }, - onReceiveMessage: (message, next) => { - next(message); - }, - onReceiveHalfClose: next => { - next(); - }, - onCancel: () => { }, -}; -const defaultResponder = { - start: next => { - next(); - }, - sendMetadata: (metadata, next) => { - next(metadata); - }, - sendMessage: (message, next) => { - next(message); - }, - sendStatus: (status, next) => { - next(status); - }, -}; -class ServerInterceptingCall { - constructor(nextCall, responder) { - var _a, _b, _c, _d; - this.nextCall = nextCall; - this.processingMetadata = false; - this.sentMetadata = false; - this.processingMessage = false; - this.pendingMessage = null; - this.pendingMessageCallback = null; - this.pendingStatus = null; - this.responder = { - start: (_a = responder === null || responder === void 0 ? void 0 : responder.start) !== null && _a !== void 0 ? _a : defaultResponder.start, - sendMetadata: (_b = responder === null || responder === void 0 ? void 0 : responder.sendMetadata) !== null && _b !== void 0 ? _b : defaultResponder.sendMetadata, - sendMessage: (_c = responder === null || responder === void 0 ? void 0 : responder.sendMessage) !== null && _c !== void 0 ? _c : defaultResponder.sendMessage, - sendStatus: (_d = responder === null || responder === void 0 ? void 0 : responder.sendStatus) !== null && _d !== void 0 ? _d : defaultResponder.sendStatus, - }; - } - processPendingMessage() { - if (this.pendingMessageCallback) { - this.nextCall.sendMessage(this.pendingMessage, this.pendingMessageCallback); - this.pendingMessage = null; - this.pendingMessageCallback = null; - } - } - processPendingStatus() { - if (this.pendingStatus) { - this.nextCall.sendStatus(this.pendingStatus); - this.pendingStatus = null; - } - } - start(listener) { - this.responder.start(interceptedListener => { - var _a, _b, _c, _d; - const fullInterceptedListener = { - onReceiveMetadata: (_a = interceptedListener === null || interceptedListener === void 0 ? void 0 : interceptedListener.onReceiveMetadata) !== null && _a !== void 0 ? _a : defaultServerListener.onReceiveMetadata, - onReceiveMessage: (_b = interceptedListener === null || interceptedListener === void 0 ? void 0 : interceptedListener.onReceiveMessage) !== null && _b !== void 0 ? _b : defaultServerListener.onReceiveMessage, - onReceiveHalfClose: (_c = interceptedListener === null || interceptedListener === void 0 ? void 0 : interceptedListener.onReceiveHalfClose) !== null && _c !== void 0 ? _c : defaultServerListener.onReceiveHalfClose, - onCancel: (_d = interceptedListener === null || interceptedListener === void 0 ? void 0 : interceptedListener.onCancel) !== null && _d !== void 0 ? _d : defaultServerListener.onCancel, - }; - const finalInterceptingListener = new InterceptingServerListenerImpl(fullInterceptedListener, listener); - this.nextCall.start(finalInterceptingListener); - }); - } - sendMetadata(metadata) { - this.processingMetadata = true; - this.sentMetadata = true; - this.responder.sendMetadata(metadata, interceptedMetadata => { - this.processingMetadata = false; - this.nextCall.sendMetadata(interceptedMetadata); - this.processPendingMessage(); - this.processPendingStatus(); - }); - } - sendMessage(message, callback) { - this.processingMessage = true; - if (!this.sentMetadata) { - this.sendMetadata(new metadata_1.Metadata()); - } - this.responder.sendMessage(message, interceptedMessage => { - this.processingMessage = false; - if (this.processingMetadata) { - this.pendingMessage = interceptedMessage; - this.pendingMessageCallback = callback; - } - else { - this.nextCall.sendMessage(interceptedMessage, callback); - } - }); - } - sendStatus(status) { - this.responder.sendStatus(status, interceptedStatus => { - if (this.processingMetadata || this.processingMessage) { - this.pendingStatus = interceptedStatus; - } - else { - this.nextCall.sendStatus(interceptedStatus); - } - }); - } - startRead() { - this.nextCall.startRead(); - } - getPeer() { - return this.nextCall.getPeer(); - } - getDeadline() { - return this.nextCall.getDeadline(); - } - getHost() { - return this.nextCall.getHost(); - } - getAuthContext() { - return this.nextCall.getAuthContext(); - } - getConnectionInfo() { - return this.nextCall.getConnectionInfo(); - } - getMetricsRecorder() { - return this.nextCall.getMetricsRecorder(); - } -} -exports.ServerInterceptingCall = ServerInterceptingCall; -const GRPC_ACCEPT_ENCODING_HEADER = 'grpc-accept-encoding'; -const GRPC_ENCODING_HEADER = 'grpc-encoding'; -const GRPC_MESSAGE_HEADER = 'grpc-message'; -const GRPC_STATUS_HEADER = 'grpc-status'; -const GRPC_TIMEOUT_HEADER = 'grpc-timeout'; -const DEADLINE_REGEX = /(\d{1,8})\s*([HMSmun])/; -const deadlineUnitsToMs = { - H: 3600000, - M: 60000, - S: 1000, - m: 1, - u: 0.001, - n: 0.000001, -}; -const defaultCompressionHeaders = { - // TODO(cjihrig): Remove these encoding headers from the default response - // once compression is integrated. - [GRPC_ACCEPT_ENCODING_HEADER]: 'identity,deflate,gzip', - [GRPC_ENCODING_HEADER]: 'identity', -}; -const defaultResponseHeaders = { - [http2.constants.HTTP2_HEADER_STATUS]: http2.constants.HTTP_STATUS_OK, - [http2.constants.HTTP2_HEADER_CONTENT_TYPE]: 'application/grpc+proto', -}; -const defaultResponseOptions = { - waitForTrailers: true, -}; -class BaseServerInterceptingCall { - constructor(stream, headers, callEventTracker, handler, options) { - var _a, _b; - this.stream = stream; - this.callEventTracker = callEventTracker; - this.handler = handler; - this.listener = null; - this.deadlineTimer = null; - this.deadline = Infinity; - this.maxSendMessageSize = constants_1.DEFAULT_MAX_SEND_MESSAGE_LENGTH; - this.maxReceiveMessageSize = constants_1.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH; - this.cancelled = false; - this.metadataSent = false; - this.wantTrailers = false; - this.cancelNotified = false; - this.incomingEncoding = 'identity'; - this.readQueue = []; - this.isReadPending = false; - this.receivedHalfClose = false; - this.streamEnded = false; - this.metricsRecorder = new orca_1.PerRequestMetricRecorder(); - this.stream.once('error', (err) => { - /* We need an error handler to avoid uncaught error event exceptions, but - * there is nothing we can reasonably do here. Any error event should - * have a corresponding close event, which handles emitting the cancelled - * event. And the stream is now in a bad state, so we can't reasonably - * expect to be able to send an error over it. */ - }); - this.stream.once('close', () => { - var _a; - trace('Request to method ' + - ((_a = this.handler) === null || _a === void 0 ? void 0 : _a.path) + - ' stream closed with rstCode ' + - this.stream.rstCode); - if (this.callEventTracker && !this.streamEnded) { - this.streamEnded = true; - this.callEventTracker.onStreamEnd(false); - this.callEventTracker.onCallEnd({ - code: constants_1.Status.CANCELLED, - details: 'Stream closed before sending status', - metadata: null, - }); - } - this.notifyOnCancel(); - }); - this.stream.on('data', (data) => { - this.handleDataFrame(data); - }); - this.stream.pause(); - this.stream.on('end', () => { - this.handleEndEvent(); - }); - if ('grpc.max_send_message_length' in options) { - this.maxSendMessageSize = options['grpc.max_send_message_length']; - } - if ('grpc.max_receive_message_length' in options) { - this.maxReceiveMessageSize = options['grpc.max_receive_message_length']; - } - this.host = (_a = headers[':authority']) !== null && _a !== void 0 ? _a : headers.host; - this.decoder = new stream_decoder_1.StreamDecoder(this.maxReceiveMessageSize); - const metadata = metadata_1.Metadata.fromHttp2Headers(headers); - if (logging.isTracerEnabled(TRACER_NAME)) { - trace('Request to ' + - this.handler.path + - ' received headers ' + - JSON.stringify(metadata.toJSON())); - } - const timeoutHeader = metadata.get(GRPC_TIMEOUT_HEADER); - if (timeoutHeader.length > 0) { - this.handleTimeoutHeader(timeoutHeader[0]); - } - const encodingHeader = metadata.get(GRPC_ENCODING_HEADER); - if (encodingHeader.length > 0) { - this.incomingEncoding = encodingHeader[0]; - } - // Remove several headers that should not be propagated to the application - metadata.remove(GRPC_TIMEOUT_HEADER); - metadata.remove(GRPC_ENCODING_HEADER); - metadata.remove(GRPC_ACCEPT_ENCODING_HEADER); - metadata.remove(http2.constants.HTTP2_HEADER_ACCEPT_ENCODING); - metadata.remove(http2.constants.HTTP2_HEADER_TE); - metadata.remove(http2.constants.HTTP2_HEADER_CONTENT_TYPE); - this.metadata = metadata; - const socket = (_b = stream.session) === null || _b === void 0 ? void 0 : _b.socket; - this.connectionInfo = { - localAddress: socket === null || socket === void 0 ? void 0 : socket.localAddress, - localPort: socket === null || socket === void 0 ? void 0 : socket.localPort, - remoteAddress: socket === null || socket === void 0 ? void 0 : socket.remoteAddress, - remotePort: socket === null || socket === void 0 ? void 0 : socket.remotePort - }; - this.shouldSendMetrics = !!options['grpc.server_call_metric_recording']; - } - handleTimeoutHeader(timeoutHeader) { - const match = timeoutHeader.toString().match(DEADLINE_REGEX); - if (match === null) { - const status = { - code: constants_1.Status.INTERNAL, - details: `Invalid ${GRPC_TIMEOUT_HEADER} value "${timeoutHeader}"`, - metadata: null, - }; - // Wait for the constructor to complete before sending the error. - process.nextTick(() => { - this.sendStatus(status); - }); - return; - } - const timeout = (+match[1] * deadlineUnitsToMs[match[2]]) | 0; - const now = new Date(); - this.deadline = now.setMilliseconds(now.getMilliseconds() + timeout); - this.deadlineTimer = setTimeout(() => { - const status = { - code: constants_1.Status.DEADLINE_EXCEEDED, - details: 'Deadline exceeded', - metadata: null, - }; - this.sendStatus(status); - }, timeout); - } - checkCancelled() { - /* In some cases the stream can become destroyed before the close event - * fires. That creates a race condition that this check works around */ - if (!this.cancelled && (this.stream.destroyed || this.stream.closed)) { - this.notifyOnCancel(); - this.cancelled = true; - } - return this.cancelled; - } - notifyOnCancel() { - if (this.cancelNotified) { - return; - } - this.cancelNotified = true; - this.cancelled = true; - process.nextTick(() => { - var _a; - (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onCancel(); - }); - if (this.deadlineTimer) { - clearTimeout(this.deadlineTimer); - } - // Flush incoming data frames - this.stream.resume(); - } - /** - * A server handler can start sending messages without explicitly sending - * metadata. In that case, we need to send headers before sending any - * messages. This function does that if necessary. - */ - maybeSendMetadata() { - if (!this.metadataSent) { - this.sendMetadata(new metadata_1.Metadata()); - } - } - /** - * Serialize a message to a length-delimited byte string. - * @param value - * @returns - */ - serializeMessage(value) { - const messageBuffer = this.handler.serialize(value); - const byteLength = messageBuffer.byteLength; - const output = Buffer.allocUnsafe(byteLength + 5); - /* Note: response compression is currently not supported, so this - * compressed bit is always 0. */ - output.writeUInt8(0, 0); - output.writeUInt32BE(byteLength, 1); - messageBuffer.copy(output, 5); - return output; - } - decompressMessage(message, encoding) { - const messageContents = message.subarray(5); - if (encoding === 'identity') { - return messageContents; - } - else if (encoding === 'deflate' || encoding === 'gzip') { - let decompresser; - if (encoding === 'deflate') { - decompresser = zlib.createInflate(); - } - else { - decompresser = zlib.createGunzip(); - } - return new Promise((resolve, reject) => { - let totalLength = 0; - const messageParts = []; - decompresser.on('data', (chunk) => { - messageParts.push(chunk); - totalLength += chunk.byteLength; - if (this.maxReceiveMessageSize !== -1 && totalLength > this.maxReceiveMessageSize) { - decompresser.destroy(); - reject({ - code: constants_1.Status.RESOURCE_EXHAUSTED, - details: `Received message that decompresses to a size larger than ${this.maxReceiveMessageSize}` - }); - } - }); - decompresser.on('end', () => { - resolve(Buffer.concat(messageParts)); - }); - decompresser.write(messageContents); - decompresser.end(); - }); - } - else { - return Promise.reject({ - code: constants_1.Status.UNIMPLEMENTED, - details: `Received message compressed with unsupported encoding "${encoding}"`, - }); - } - } - async decompressAndMaybePush(queueEntry) { - if (queueEntry.type !== 'COMPRESSED') { - throw new Error(`Invalid queue entry type: ${queueEntry.type}`); - } - const compressed = queueEntry.compressedMessage.readUInt8(0) === 1; - const compressedMessageEncoding = compressed - ? this.incomingEncoding - : 'identity'; - let decompressedMessage; - try { - decompressedMessage = await this.decompressMessage(queueEntry.compressedMessage, compressedMessageEncoding); - } - catch (err) { - this.sendStatus(err); - return; - } - try { - queueEntry.parsedMessage = this.handler.deserialize(decompressedMessage); - } - catch (err) { - this.sendStatus({ - code: constants_1.Status.INTERNAL, - details: `Error deserializing request: ${err.message}`, - }); - return; - } - queueEntry.type = 'READABLE'; - this.maybePushNextMessage(); - } - maybePushNextMessage() { - if (this.listener && - this.isReadPending && - this.readQueue.length > 0 && - this.readQueue[0].type !== 'COMPRESSED') { - this.isReadPending = false; - const nextQueueEntry = this.readQueue.shift(); - if (nextQueueEntry.type === 'READABLE') { - this.listener.onReceiveMessage(nextQueueEntry.parsedMessage); - } - else { - // nextQueueEntry.type === 'HALF_CLOSE' - this.listener.onReceiveHalfClose(); - } - } - } - handleDataFrame(data) { - var _a; - if (this.checkCancelled()) { - return; - } - trace('Request to ' + - this.handler.path + - ' received data frame of size ' + - data.length); - let rawMessages; - try { - rawMessages = this.decoder.write(data); - } - catch (e) { - this.sendStatus({ code: constants_1.Status.RESOURCE_EXHAUSTED, details: e.message }); - return; - } - for (const messageBytes of rawMessages) { - this.stream.pause(); - const queueEntry = { - type: 'COMPRESSED', - compressedMessage: messageBytes, - parsedMessage: null, - }; - this.readQueue.push(queueEntry); - this.decompressAndMaybePush(queueEntry); - (_a = this.callEventTracker) === null || _a === void 0 ? void 0 : _a.addMessageReceived(); - } - } - handleEndEvent() { - this.readQueue.push({ - type: 'HALF_CLOSE', - compressedMessage: null, - parsedMessage: null, - }); - this.receivedHalfClose = true; - this.maybePushNextMessage(); - } - start(listener) { - trace('Request to ' + this.handler.path + ' start called'); - if (this.checkCancelled()) { - return; - } - this.listener = listener; - listener.onReceiveMetadata(this.metadata); - } - sendMetadata(metadata) { - if (this.checkCancelled()) { - return; - } - if (this.metadataSent) { - return; - } - this.metadataSent = true; - const custom = metadata ? metadata.toHttp2Headers() : null; - const headers = Object.assign(Object.assign(Object.assign({}, defaultResponseHeaders), defaultCompressionHeaders), custom); - this.stream.respond(headers, defaultResponseOptions); - } - sendMessage(message, callback) { - if (this.checkCancelled()) { - return; - } - let response; - try { - response = this.serializeMessage(message); - } - catch (e) { - this.sendStatus({ - code: constants_1.Status.INTERNAL, - details: `Error serializing response: ${(0, error_1.getErrorMessage)(e)}`, - metadata: null, - }); - return; - } - if (this.maxSendMessageSize !== -1 && - response.length - 5 > this.maxSendMessageSize) { - this.sendStatus({ - code: constants_1.Status.RESOURCE_EXHAUSTED, - details: `Sent message larger than max (${response.length} vs. ${this.maxSendMessageSize})`, - metadata: null, - }); - return; - } - this.maybeSendMetadata(); - trace('Request to ' + - this.handler.path + - ' sent data frame of size ' + - response.length); - this.stream.write(response, error => { - var _a; - if (error) { - this.sendStatus({ - code: constants_1.Status.INTERNAL, - details: `Error writing message: ${(0, error_1.getErrorMessage)(error)}`, - metadata: null, - }); - return; - } - (_a = this.callEventTracker) === null || _a === void 0 ? void 0 : _a.addMessageSent(); - callback(); - }); - } - sendStatus(status) { - var _a, _b, _c; - if (this.checkCancelled()) { - return; - } - trace('Request to method ' + - ((_a = this.handler) === null || _a === void 0 ? void 0 : _a.path) + - ' ended with status code: ' + - constants_1.Status[status.code] + - ' details: ' + - status.details); - const statusMetadata = (_c = (_b = status.metadata) === null || _b === void 0 ? void 0 : _b.clone()) !== null && _c !== void 0 ? _c : new metadata_1.Metadata(); - if (this.shouldSendMetrics) { - statusMetadata.set(orca_1.GRPC_METRICS_HEADER, this.metricsRecorder.serialize()); - } - if (this.metadataSent) { - if (!this.wantTrailers) { - this.wantTrailers = true; - this.stream.once('wantTrailers', () => { - if (this.callEventTracker && !this.streamEnded) { - this.streamEnded = true; - this.callEventTracker.onStreamEnd(true); - this.callEventTracker.onCallEnd(status); - } - const trailersToSend = Object.assign({ [GRPC_STATUS_HEADER]: status.code, [GRPC_MESSAGE_HEADER]: encodeURI(status.details) }, statusMetadata.toHttp2Headers()); - this.stream.sendTrailers(trailersToSend); - this.notifyOnCancel(); - }); - this.stream.end(); - } - else { - this.notifyOnCancel(); - } - } - else { - if (this.callEventTracker && !this.streamEnded) { - this.streamEnded = true; - this.callEventTracker.onStreamEnd(true); - this.callEventTracker.onCallEnd(status); - } - // Trailers-only response - const trailersToSend = Object.assign(Object.assign({ [GRPC_STATUS_HEADER]: status.code, [GRPC_MESSAGE_HEADER]: encodeURI(status.details) }, defaultResponseHeaders), statusMetadata.toHttp2Headers()); - this.stream.respond(trailersToSend, { endStream: true }); - this.notifyOnCancel(); - } - } - startRead() { - trace('Request to ' + this.handler.path + ' startRead called'); - if (this.checkCancelled()) { - return; - } - this.isReadPending = true; - if (this.readQueue.length === 0) { - if (!this.receivedHalfClose) { - this.stream.resume(); - } - } - else { - this.maybePushNextMessage(); - } - } - getPeer() { - var _a; - const socket = (_a = this.stream.session) === null || _a === void 0 ? void 0 : _a.socket; - if (socket === null || socket === void 0 ? void 0 : socket.remoteAddress) { - if (socket.remotePort) { - return `${socket.remoteAddress}:${socket.remotePort}`; - } - else { - return socket.remoteAddress; - } - } - else { - return 'unknown'; - } - } - getDeadline() { - return this.deadline; - } - getHost() { - return this.host; - } - getAuthContext() { - var _a; - if (((_a = this.stream.session) === null || _a === void 0 ? void 0 : _a.socket) instanceof tls_1.TLSSocket) { - const peerCertificate = this.stream.session.socket.getPeerCertificate(); - return { - transportSecurityType: 'ssl', - sslPeerCertificate: peerCertificate.raw ? peerCertificate : undefined - }; - } - else { - return {}; - } - } - getConnectionInfo() { - return this.connectionInfo; - } - getMetricsRecorder() { - return this.metricsRecorder; - } -} -exports.BaseServerInterceptingCall = BaseServerInterceptingCall; -function getServerInterceptingCall(interceptors, stream, headers, callEventTracker, handler, options) { - const methodDefinition = { - path: handler.path, - requestStream: handler.type === 'clientStream' || handler.type === 'bidi', - responseStream: handler.type === 'serverStream' || handler.type === 'bidi', - requestDeserialize: handler.deserialize, - responseSerialize: handler.serialize, - }; - const baseCall = new BaseServerInterceptingCall(stream, headers, callEventTracker, handler, options); - return interceptors.reduce((call, interceptor) => { - return interceptor(methodDefinition, call); - }, baseCall); -} -//# sourceMappingURL=server-interceptors.js.map - -/***/ }), - -/***/ 12390: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { - var useValue = arguments.length > 2; - for (var i = 0; i < initializers.length; i++) { - value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); - } - return useValue ? value : void 0; -}; -var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { - function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } - var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; - var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; - var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); - var _, done = false; - for (var i = decorators.length - 1; i >= 0; i--) { - var context = {}; - for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; - for (var p in contextIn.access) context.access[p] = contextIn.access[p]; - context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; - var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); - if (kind === "accessor") { - if (result === void 0) continue; - if (result === null || typeof result !== "object") throw new TypeError("Object expected"); - if (_ = accept(result.get)) descriptor.get = _; - if (_ = accept(result.set)) descriptor.set = _; - if (_ = accept(result.init)) initializers.unshift(_); - } - else if (_ = accept(result)) { - if (kind === "field") initializers.unshift(_); - else descriptor[key] = _; - } - } - if (target) Object.defineProperty(target, contextIn.name, descriptor); - done = true; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Server = void 0; -const http2 = __nccwpck_require__(85675); -const util = __nccwpck_require__(39023); -const constants_1 = __nccwpck_require__(68288); -const server_call_1 = __nccwpck_require__(34615); -const server_credentials_1 = __nccwpck_require__(36545); -const resolver_1 = __nccwpck_require__(76255); -const logging = __nccwpck_require__(8536); -const subchannel_address_1 = __nccwpck_require__(97021); -const uri_parser_1 = __nccwpck_require__(56027); -const channelz_1 = __nccwpck_require__(68198); -const server_interceptors_1 = __nccwpck_require__(42151); -const UNLIMITED_CONNECTION_AGE_MS = ~(1 << 31); -const KEEPALIVE_MAX_TIME_MS = ~(1 << 31); -const KEEPALIVE_TIMEOUT_MS = 20000; -const MAX_CONNECTION_IDLE_MS = ~(1 << 31); -const { HTTP2_HEADER_PATH } = http2.constants; -const TRACER_NAME = 'server'; -const kMaxAge = Buffer.from('max_age'); -function serverCallTrace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, 'server_call', text); -} -function noop() { } -/** - * Decorator to wrap a class method with util.deprecate - * @param message The message to output if the deprecated method is called - * @returns - */ -function deprecate(message) { - return function (target, context) { - return util.deprecate(target, message); - }; -} -function getUnimplementedStatusResponse(methodName) { - return { - code: constants_1.Status.UNIMPLEMENTED, - details: `The server does not implement the method ${methodName}`, - }; -} -function getDefaultHandler(handlerType, methodName) { - const unimplementedStatusResponse = getUnimplementedStatusResponse(methodName); - switch (handlerType) { - case 'unary': - return (call, callback) => { - callback(unimplementedStatusResponse, null); - }; - case 'clientStream': - return (call, callback) => { - callback(unimplementedStatusResponse, null); - }; - case 'serverStream': - return (call) => { - call.emit('error', unimplementedStatusResponse); - }; - case 'bidi': - return (call) => { - call.emit('error', unimplementedStatusResponse); - }; - default: - throw new Error(`Invalid handlerType ${handlerType}`); - } -} -let Server = (() => { - var _a; - let _instanceExtraInitializers = []; - let _start_decorators; - return _a = class Server { - constructor(options) { - var _b, _c, _d, _e, _f, _g; - this.boundPorts = (__runInitializers(this, _instanceExtraInitializers), new Map()); - this.http2Servers = new Map(); - this.sessionIdleTimeouts = new Map(); - this.handlers = new Map(); - this.sessions = new Map(); - /** - * This field only exists to ensure that the start method throws an error if - * it is called twice, as it did previously. - */ - this.started = false; - this.shutdown = false; - this.serverAddressString = 'null'; - // Channelz Info - this.channelzEnabled = true; - this.options = options !== null && options !== void 0 ? options : {}; - if (this.options['grpc.enable_channelz'] === 0) { - this.channelzEnabled = false; - this.channelzTrace = new channelz_1.ChannelzTraceStub(); - this.callTracker = new channelz_1.ChannelzCallTrackerStub(); - this.listenerChildrenTracker = new channelz_1.ChannelzChildrenTrackerStub(); - this.sessionChildrenTracker = new channelz_1.ChannelzChildrenTrackerStub(); - } - else { - this.channelzTrace = new channelz_1.ChannelzTrace(); - this.callTracker = new channelz_1.ChannelzCallTracker(); - this.listenerChildrenTracker = new channelz_1.ChannelzChildrenTracker(); - this.sessionChildrenTracker = new channelz_1.ChannelzChildrenTracker(); - } - this.channelzRef = (0, channelz_1.registerChannelzServer)('server', () => this.getChannelzInfo(), this.channelzEnabled); - this.channelzTrace.addTrace('CT_INFO', 'Server created'); - this.maxConnectionAgeMs = - (_b = this.options['grpc.max_connection_age_ms']) !== null && _b !== void 0 ? _b : UNLIMITED_CONNECTION_AGE_MS; - this.maxConnectionAgeGraceMs = - (_c = this.options['grpc.max_connection_age_grace_ms']) !== null && _c !== void 0 ? _c : UNLIMITED_CONNECTION_AGE_MS; - this.keepaliveTimeMs = - (_d = this.options['grpc.keepalive_time_ms']) !== null && _d !== void 0 ? _d : KEEPALIVE_MAX_TIME_MS; - this.keepaliveTimeoutMs = - (_e = this.options['grpc.keepalive_timeout_ms']) !== null && _e !== void 0 ? _e : KEEPALIVE_TIMEOUT_MS; - this.sessionIdleTimeout = - (_f = this.options['grpc.max_connection_idle_ms']) !== null && _f !== void 0 ? _f : MAX_CONNECTION_IDLE_MS; - this.commonServerOptions = { - maxSendHeaderBlockLength: Number.MAX_SAFE_INTEGER, - }; - if ('grpc-node.max_session_memory' in this.options) { - this.commonServerOptions.maxSessionMemory = - this.options['grpc-node.max_session_memory']; - } - else { - /* By default, set a very large max session memory limit, to effectively - * disable enforcement of the limit. Some testing indicates that Node's - * behavior degrades badly when this limit is reached, so we solve that - * by disabling the check entirely. */ - this.commonServerOptions.maxSessionMemory = Number.MAX_SAFE_INTEGER; - } - if ('grpc.max_concurrent_streams' in this.options) { - this.commonServerOptions.settings = { - maxConcurrentStreams: this.options['grpc.max_concurrent_streams'], - }; - } - this.interceptors = (_g = this.options.interceptors) !== null && _g !== void 0 ? _g : []; - this.trace('Server constructed'); - } - getChannelzInfo() { - return { - trace: this.channelzTrace, - callTracker: this.callTracker, - listenerChildren: this.listenerChildrenTracker.getChildLists(), - sessionChildren: this.sessionChildrenTracker.getChildLists(), - }; - } - getChannelzSessionInfo(session) { - var _b, _c, _d; - const sessionInfo = this.sessions.get(session); - const sessionSocket = session.socket; - const remoteAddress = sessionSocket.remoteAddress - ? (0, subchannel_address_1.stringToSubchannelAddress)(sessionSocket.remoteAddress, sessionSocket.remotePort) - : null; - const localAddress = sessionSocket.localAddress - ? (0, subchannel_address_1.stringToSubchannelAddress)(sessionSocket.localAddress, sessionSocket.localPort) - : null; - let tlsInfo; - if (session.encrypted) { - const tlsSocket = sessionSocket; - const cipherInfo = tlsSocket.getCipher(); - const certificate = tlsSocket.getCertificate(); - const peerCertificate = tlsSocket.getPeerCertificate(); - tlsInfo = { - cipherSuiteStandardName: (_b = cipherInfo.standardName) !== null && _b !== void 0 ? _b : null, - cipherSuiteOtherName: cipherInfo.standardName ? null : cipherInfo.name, - localCertificate: certificate && 'raw' in certificate ? certificate.raw : null, - remoteCertificate: peerCertificate && 'raw' in peerCertificate - ? peerCertificate.raw - : null, - }; - } - else { - tlsInfo = null; - } - const socketInfo = { - remoteAddress: remoteAddress, - localAddress: localAddress, - security: tlsInfo, - remoteName: null, - streamsStarted: sessionInfo.streamTracker.callsStarted, - streamsSucceeded: sessionInfo.streamTracker.callsSucceeded, - streamsFailed: sessionInfo.streamTracker.callsFailed, - messagesSent: sessionInfo.messagesSent, - messagesReceived: sessionInfo.messagesReceived, - keepAlivesSent: sessionInfo.keepAlivesSent, - lastLocalStreamCreatedTimestamp: null, - lastRemoteStreamCreatedTimestamp: sessionInfo.streamTracker.lastCallStartedTimestamp, - lastMessageSentTimestamp: sessionInfo.lastMessageSentTimestamp, - lastMessageReceivedTimestamp: sessionInfo.lastMessageReceivedTimestamp, - localFlowControlWindow: (_c = session.state.localWindowSize) !== null && _c !== void 0 ? _c : null, - remoteFlowControlWindow: (_d = session.state.remoteWindowSize) !== null && _d !== void 0 ? _d : null, - }; - return socketInfo; - } - trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '(' + this.channelzRef.id + ') ' + text); - } - keepaliveTrace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, 'keepalive', '(' + this.channelzRef.id + ') ' + text); - } - addProtoService() { - throw new Error('Not implemented. Use addService() instead'); - } - addService(service, implementation) { - if (service === null || - typeof service !== 'object' || - implementation === null || - typeof implementation !== 'object') { - throw new Error('addService() requires two objects as arguments'); - } - const serviceKeys = Object.keys(service); - if (serviceKeys.length === 0) { - throw new Error('Cannot add an empty service to a server'); - } - serviceKeys.forEach(name => { - const attrs = service[name]; - let methodType; - if (attrs.requestStream) { - if (attrs.responseStream) { - methodType = 'bidi'; - } - else { - methodType = 'clientStream'; - } - } - else { - if (attrs.responseStream) { - methodType = 'serverStream'; - } - else { - methodType = 'unary'; - } - } - let implFn = implementation[name]; - let impl; - if (implFn === undefined && typeof attrs.originalName === 'string') { - implFn = implementation[attrs.originalName]; - } - if (implFn !== undefined) { - impl = implFn.bind(implementation); - } - else { - impl = getDefaultHandler(methodType, name); - } - const success = this.register(attrs.path, impl, attrs.responseSerialize, attrs.requestDeserialize, methodType); - if (success === false) { - throw new Error(`Method handler for ${attrs.path} already provided.`); - } - }); - } - removeService(service) { - if (service === null || typeof service !== 'object') { - throw new Error('removeService() requires object as argument'); - } - const serviceKeys = Object.keys(service); - serviceKeys.forEach(name => { - const attrs = service[name]; - this.unregister(attrs.path); - }); - } - bind(port, creds) { - throw new Error('Not implemented. Use bindAsync() instead'); - } - /** - * This API is experimental, so API stability is not guaranteed across minor versions. - * @param boundAddress - * @returns - */ - experimentalRegisterListenerToChannelz(boundAddress) { - return (0, channelz_1.registerChannelzSocket)((0, subchannel_address_1.subchannelAddressToString)(boundAddress), () => { - return { - localAddress: boundAddress, - remoteAddress: null, - security: null, - remoteName: null, - streamsStarted: 0, - streamsSucceeded: 0, - streamsFailed: 0, - messagesSent: 0, - messagesReceived: 0, - keepAlivesSent: 0, - lastLocalStreamCreatedTimestamp: null, - lastRemoteStreamCreatedTimestamp: null, - lastMessageSentTimestamp: null, - lastMessageReceivedTimestamp: null, - localFlowControlWindow: null, - remoteFlowControlWindow: null, - }; - }, this.channelzEnabled); - } - experimentalUnregisterListenerFromChannelz(channelzRef) { - (0, channelz_1.unregisterChannelzRef)(channelzRef); - } - createHttp2Server(credentials) { - let http2Server; - if (credentials._isSecure()) { - const constructorOptions = credentials._getConstructorOptions(); - const contextOptions = credentials._getSecureContextOptions(); - const secureServerOptions = Object.assign(Object.assign(Object.assign(Object.assign({}, this.commonServerOptions), constructorOptions), contextOptions), { enableTrace: this.options['grpc-node.tls_enable_trace'] === 1 }); - let areCredentialsValid = contextOptions !== null; - this.trace('Initial credentials valid: ' + areCredentialsValid); - http2Server = http2.createSecureServer(secureServerOptions); - http2Server.prependListener('connection', (socket) => { - if (!areCredentialsValid) { - this.trace('Dropped connection from ' + JSON.stringify(socket.address()) + ' due to unloaded credentials'); - socket.destroy(); - } - }); - http2Server.on('secureConnection', (socket) => { - /* These errors need to be handled by the user of Http2SecureServer, - * according to https://github.com/nodejs/node/issues/35824 */ - socket.on('error', (e) => { - this.trace('An incoming TLS connection closed with error: ' + e.message); - }); - }); - const credsWatcher = options => { - if (options) { - const secureServer = http2Server; - try { - secureServer.setSecureContext(options); - } - catch (e) { - logging.log(constants_1.LogVerbosity.ERROR, 'Failed to set secure context with error ' + e.message); - options = null; - } - } - areCredentialsValid = options !== null; - this.trace('Post-update credentials valid: ' + areCredentialsValid); - }; - credentials._addWatcher(credsWatcher); - http2Server.on('close', () => { - credentials._removeWatcher(credsWatcher); - }); - } - else { - http2Server = http2.createServer(this.commonServerOptions); - } - http2Server.setTimeout(0, noop); - this._setupHandlers(http2Server, credentials._getInterceptors()); - return http2Server; - } - bindOneAddress(address, boundPortObject) { - this.trace('Attempting to bind ' + (0, subchannel_address_1.subchannelAddressToString)(address)); - const http2Server = this.createHttp2Server(boundPortObject.credentials); - return new Promise((resolve, reject) => { - const onError = (err) => { - this.trace('Failed to bind ' + - (0, subchannel_address_1.subchannelAddressToString)(address) + - ' with error ' + - err.message); - resolve({ - port: 'port' in address ? address.port : 1, - error: err.message, - }); - }; - http2Server.once('error', onError); - http2Server.listen(address, () => { - const boundAddress = http2Server.address(); - let boundSubchannelAddress; - if (typeof boundAddress === 'string') { - boundSubchannelAddress = { - path: boundAddress, - }; - } - else { - boundSubchannelAddress = { - host: boundAddress.address, - port: boundAddress.port, - }; - } - const channelzRef = this.experimentalRegisterListenerToChannelz(boundSubchannelAddress); - this.listenerChildrenTracker.refChild(channelzRef); - this.http2Servers.set(http2Server, { - channelzRef: channelzRef, - sessions: new Set(), - ownsChannelzRef: true - }); - boundPortObject.listeningServers.add(http2Server); - this.trace('Successfully bound ' + - (0, subchannel_address_1.subchannelAddressToString)(boundSubchannelAddress)); - resolve({ - port: 'port' in boundSubchannelAddress ? boundSubchannelAddress.port : 1, - }); - http2Server.removeListener('error', onError); - }); - }); - } - async bindManyPorts(addressList, boundPortObject) { - if (addressList.length === 0) { - return { - count: 0, - port: 0, - errors: [], - }; - } - if ((0, subchannel_address_1.isTcpSubchannelAddress)(addressList[0]) && addressList[0].port === 0) { - /* If binding to port 0, first try to bind the first address, then bind - * the rest of the address list to the specific port that it binds. */ - const firstAddressResult = await this.bindOneAddress(addressList[0], boundPortObject); - if (firstAddressResult.error) { - /* If the first address fails to bind, try the same operation starting - * from the second item in the list. */ - const restAddressResult = await this.bindManyPorts(addressList.slice(1), boundPortObject); - return Object.assign(Object.assign({}, restAddressResult), { errors: [firstAddressResult.error, ...restAddressResult.errors] }); - } - else { - const restAddresses = addressList - .slice(1) - .map(address => (0, subchannel_address_1.isTcpSubchannelAddress)(address) - ? { host: address.host, port: firstAddressResult.port } - : address); - const restAddressResult = await Promise.all(restAddresses.map(address => this.bindOneAddress(address, boundPortObject))); - const allResults = [firstAddressResult, ...restAddressResult]; - return { - count: allResults.filter(result => result.error === undefined).length, - port: firstAddressResult.port, - errors: allResults - .filter(result => result.error) - .map(result => result.error), - }; - } - } - else { - const allResults = await Promise.all(addressList.map(address => this.bindOneAddress(address, boundPortObject))); - return { - count: allResults.filter(result => result.error === undefined).length, - port: allResults[0].port, - errors: allResults - .filter(result => result.error) - .map(result => result.error), - }; - } - } - async bindAddressList(addressList, boundPortObject) { - const bindResult = await this.bindManyPorts(addressList, boundPortObject); - if (bindResult.count > 0) { - if (bindResult.count < addressList.length) { - logging.log(constants_1.LogVerbosity.INFO, `WARNING Only ${bindResult.count} addresses added out of total ${addressList.length} resolved`); - } - return bindResult.port; - } - else { - const errorString = `No address added out of total ${addressList.length} resolved`; - logging.log(constants_1.LogVerbosity.ERROR, errorString); - throw new Error(`${errorString} errors: [${bindResult.errors.join(',')}]`); - } - } - resolvePort(port) { - return new Promise((resolve, reject) => { - let seenResolution = false; - const resolverListener = (endpointList, attributes, serviceConfig, resolutionNote) => { - if (seenResolution) { - return true; - } - seenResolution = true; - if (!endpointList.ok) { - reject(new Error(endpointList.error.details)); - return true; - } - const addressList = [].concat(...endpointList.value.map(endpoint => endpoint.addresses)); - if (addressList.length === 0) { - reject(new Error(`No addresses resolved for port ${port}`)); - return true; - } - resolve(addressList); - return true; - }; - const resolver = (0, resolver_1.createResolver)(port, resolverListener, this.options); - resolver.updateResolution(); - }); - } - async bindPort(port, boundPortObject) { - const addressList = await this.resolvePort(port); - if (boundPortObject.cancelled) { - this.completeUnbind(boundPortObject); - throw new Error('bindAsync operation cancelled by unbind call'); - } - const portNumber = await this.bindAddressList(addressList, boundPortObject); - if (boundPortObject.cancelled) { - this.completeUnbind(boundPortObject); - throw new Error('bindAsync operation cancelled by unbind call'); - } - return portNumber; - } - normalizePort(port) { - const initialPortUri = (0, uri_parser_1.parseUri)(port); - if (initialPortUri === null) { - throw new Error(`Could not parse port "${port}"`); - } - const portUri = (0, resolver_1.mapUriDefaultScheme)(initialPortUri); - if (portUri === null) { - throw new Error(`Could not get a default scheme for port "${port}"`); - } - return portUri; - } - bindAsync(port, creds, callback) { - if (this.shutdown) { - throw new Error('bindAsync called after shutdown'); - } - if (typeof port !== 'string') { - throw new TypeError('port must be a string'); - } - if (creds === null || !(creds instanceof server_credentials_1.ServerCredentials)) { - throw new TypeError('creds must be a ServerCredentials object'); - } - if (typeof callback !== 'function') { - throw new TypeError('callback must be a function'); - } - this.trace('bindAsync port=' + port); - const portUri = this.normalizePort(port); - const deferredCallback = (error, port) => { - process.nextTick(() => callback(error, port)); - }; - /* First, if this port is already bound or that bind operation is in - * progress, use that result. */ - let boundPortObject = this.boundPorts.get((0, uri_parser_1.uriToString)(portUri)); - if (boundPortObject) { - if (!creds._equals(boundPortObject.credentials)) { - deferredCallback(new Error(`${port} already bound with incompatible credentials`), 0); - return; - } - /* If that operation has previously been cancelled by an unbind call, - * uncancel it. */ - boundPortObject.cancelled = false; - if (boundPortObject.completionPromise) { - boundPortObject.completionPromise.then(portNum => callback(null, portNum), error => callback(error, 0)); - } - else { - deferredCallback(null, boundPortObject.portNumber); - } - return; - } - boundPortObject = { - mapKey: (0, uri_parser_1.uriToString)(portUri), - originalUri: portUri, - completionPromise: null, - cancelled: false, - portNumber: 0, - credentials: creds, - listeningServers: new Set(), - }; - const splitPort = (0, uri_parser_1.splitHostPort)(portUri.path); - const completionPromise = this.bindPort(portUri, boundPortObject); - boundPortObject.completionPromise = completionPromise; - /* If the port number is 0, defer populating the map entry until after the - * bind operation completes and we have a specific port number. Otherwise, - * populate it immediately. */ - if ((splitPort === null || splitPort === void 0 ? void 0 : splitPort.port) === 0) { - completionPromise.then(portNum => { - const finalUri = { - scheme: portUri.scheme, - authority: portUri.authority, - path: (0, uri_parser_1.combineHostPort)({ host: splitPort.host, port: portNum }), - }; - boundPortObject.mapKey = (0, uri_parser_1.uriToString)(finalUri); - boundPortObject.completionPromise = null; - boundPortObject.portNumber = portNum; - this.boundPorts.set(boundPortObject.mapKey, boundPortObject); - callback(null, portNum); - }, error => { - callback(error, 0); - }); - } - else { - this.boundPorts.set(boundPortObject.mapKey, boundPortObject); - completionPromise.then(portNum => { - boundPortObject.completionPromise = null; - boundPortObject.portNumber = portNum; - callback(null, portNum); - }, error => { - callback(error, 0); - }); - } - } - registerInjectorToChannelz() { - return (0, channelz_1.registerChannelzSocket)('injector', () => { - return { - localAddress: null, - remoteAddress: null, - security: null, - remoteName: null, - streamsStarted: 0, - streamsSucceeded: 0, - streamsFailed: 0, - messagesSent: 0, - messagesReceived: 0, - keepAlivesSent: 0, - lastLocalStreamCreatedTimestamp: null, - lastRemoteStreamCreatedTimestamp: null, - lastMessageSentTimestamp: null, - lastMessageReceivedTimestamp: null, - localFlowControlWindow: null, - remoteFlowControlWindow: null, - }; - }, this.channelzEnabled); - } - /** - * This API is experimental, so API stability is not guaranteed across minor versions. - * @param credentials - * @param channelzRef - * @returns - */ - experimentalCreateConnectionInjectorWithChannelzRef(credentials, channelzRef, ownsChannelzRef = false) { - if (credentials === null || !(credentials instanceof server_credentials_1.ServerCredentials)) { - throw new TypeError('creds must be a ServerCredentials object'); - } - if (this.channelzEnabled) { - this.listenerChildrenTracker.refChild(channelzRef); - } - const server = this.createHttp2Server(credentials); - const sessionsSet = new Set(); - this.http2Servers.set(server, { - channelzRef: channelzRef, - sessions: sessionsSet, - ownsChannelzRef - }); - return { - injectConnection: (connection) => { - server.emit('connection', connection); - }, - drain: (graceTimeMs) => { - var _b, _c; - for (const session of sessionsSet) { - this.closeSession(session); - } - (_c = (_b = setTimeout(() => { - for (const session of sessionsSet) { - session.destroy(http2.constants.NGHTTP2_CANCEL); - } - }, graceTimeMs)).unref) === null || _c === void 0 ? void 0 : _c.call(_b); - }, - destroy: () => { - this.closeServer(server); - for (const session of sessionsSet) { - this.closeSession(session); - } - } - }; - } - createConnectionInjector(credentials) { - if (credentials === null || !(credentials instanceof server_credentials_1.ServerCredentials)) { - throw new TypeError('creds must be a ServerCredentials object'); - } - const channelzRef = this.registerInjectorToChannelz(); - return this.experimentalCreateConnectionInjectorWithChannelzRef(credentials, channelzRef, true); - } - closeServer(server, callback) { - this.trace('Closing server with address ' + JSON.stringify(server.address())); - const serverInfo = this.http2Servers.get(server); - server.close(() => { - if (serverInfo && serverInfo.ownsChannelzRef) { - this.listenerChildrenTracker.unrefChild(serverInfo.channelzRef); - (0, channelz_1.unregisterChannelzRef)(serverInfo.channelzRef); - } - this.http2Servers.delete(server); - callback === null || callback === void 0 ? void 0 : callback(); - }); - } - closeSession(session, callback) { - var _b; - this.trace('Closing session initiated by ' + ((_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress)); - const sessionInfo = this.sessions.get(session); - const closeCallback = () => { - if (sessionInfo) { - this.sessionChildrenTracker.unrefChild(sessionInfo.ref); - (0, channelz_1.unregisterChannelzRef)(sessionInfo.ref); - } - callback === null || callback === void 0 ? void 0 : callback(); - }; - if (session.closed) { - queueMicrotask(closeCallback); - } - else { - session.close(closeCallback); - } - } - completeUnbind(boundPortObject) { - for (const server of boundPortObject.listeningServers) { - const serverInfo = this.http2Servers.get(server); - this.closeServer(server, () => { - boundPortObject.listeningServers.delete(server); - }); - if (serverInfo) { - for (const session of serverInfo.sessions) { - this.closeSession(session); - } - } - } - this.boundPorts.delete(boundPortObject.mapKey); - } - /** - * Unbind a previously bound port, or cancel an in-progress bindAsync - * operation. If port 0 was bound, only the actual bound port can be - * unbound. For example, if bindAsync was called with "localhost:0" and the - * bound port result was 54321, it can be unbound as "localhost:54321". - * @param port - */ - unbind(port) { - this.trace('unbind port=' + port); - const portUri = this.normalizePort(port); - const splitPort = (0, uri_parser_1.splitHostPort)(portUri.path); - if ((splitPort === null || splitPort === void 0 ? void 0 : splitPort.port) === 0) { - throw new Error('Cannot unbind port 0'); - } - const boundPortObject = this.boundPorts.get((0, uri_parser_1.uriToString)(portUri)); - if (boundPortObject) { - this.trace('unbinding ' + - boundPortObject.mapKey + - ' originally bound as ' + - (0, uri_parser_1.uriToString)(boundPortObject.originalUri)); - /* If the bind operation is pending, the cancelled flag will trigger - * the unbind operation later. */ - if (boundPortObject.completionPromise) { - boundPortObject.cancelled = true; - } - else { - this.completeUnbind(boundPortObject); - } - } - } - /** - * Gracefully close all connections associated with a previously bound port. - * After the grace time, forcefully close all remaining open connections. - * - * If port 0 was bound, only the actual bound port can be - * drained. For example, if bindAsync was called with "localhost:0" and the - * bound port result was 54321, it can be drained as "localhost:54321". - * @param port - * @param graceTimeMs - * @returns - */ - drain(port, graceTimeMs) { - var _b, _c; - this.trace('drain port=' + port + ' graceTimeMs=' + graceTimeMs); - const portUri = this.normalizePort(port); - const splitPort = (0, uri_parser_1.splitHostPort)(portUri.path); - if ((splitPort === null || splitPort === void 0 ? void 0 : splitPort.port) === 0) { - throw new Error('Cannot drain port 0'); - } - const boundPortObject = this.boundPorts.get((0, uri_parser_1.uriToString)(portUri)); - if (!boundPortObject) { - return; - } - const allSessions = new Set(); - for (const http2Server of boundPortObject.listeningServers) { - const serverEntry = this.http2Servers.get(http2Server); - if (serverEntry) { - for (const session of serverEntry.sessions) { - allSessions.add(session); - this.closeSession(session, () => { - allSessions.delete(session); - }); - } - } - } - /* After the grace time ends, send another goaway to all remaining sessions - * with the CANCEL code. */ - (_c = (_b = setTimeout(() => { - for (const session of allSessions) { - session.destroy(http2.constants.NGHTTP2_CANCEL); - } - }, graceTimeMs)).unref) === null || _c === void 0 ? void 0 : _c.call(_b); - } - forceShutdown() { - for (const boundPortObject of this.boundPorts.values()) { - boundPortObject.cancelled = true; - } - this.boundPorts.clear(); - // Close the server if it is still running. - for (const server of this.http2Servers.keys()) { - this.closeServer(server); - } - // Always destroy any available sessions. It's possible that one or more - // tryShutdown() calls are in progress. Don't wait on them to finish. - this.sessions.forEach((channelzInfo, session) => { - this.closeSession(session); - // Cast NGHTTP2_CANCEL to any because TypeScript doesn't seem to - // recognize destroy(code) as a valid signature. - // eslint-disable-next-line @typescript-eslint/no-explicit-any - session.destroy(http2.constants.NGHTTP2_CANCEL); - }); - this.sessions.clear(); - (0, channelz_1.unregisterChannelzRef)(this.channelzRef); - this.shutdown = true; - } - register(name, handler, serialize, deserialize, type) { - if (this.handlers.has(name)) { - return false; - } - this.handlers.set(name, { - func: handler, - serialize, - deserialize, - type, - path: name, - }); - return true; - } - unregister(name) { - return this.handlers.delete(name); - } - /** - * @deprecated No longer needed as of version 1.10.x - */ - start() { - if (this.http2Servers.size === 0 || - [...this.http2Servers.keys()].every(server => !server.listening)) { - throw new Error('server must be bound in order to start'); - } - if (this.started === true) { - throw new Error('server is already started'); - } - this.started = true; - } - tryShutdown(callback) { - var _b; - const wrappedCallback = (error) => { - (0, channelz_1.unregisterChannelzRef)(this.channelzRef); - callback(error); - }; - let pendingChecks = 0; - function maybeCallback() { - pendingChecks--; - if (pendingChecks === 0) { - wrappedCallback(); - } - } - this.shutdown = true; - for (const [serverKey, server] of this.http2Servers.entries()) { - pendingChecks++; - const serverString = server.channelzRef.name; - this.trace('Waiting for server ' + serverString + ' to close'); - this.closeServer(serverKey, () => { - this.trace('Server ' + serverString + ' finished closing'); - maybeCallback(); - }); - for (const session of server.sessions.keys()) { - pendingChecks++; - const sessionString = (_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress; - this.trace('Waiting for session ' + sessionString + ' to close'); - this.closeSession(session, () => { - this.trace('Session ' + sessionString + ' finished closing'); - maybeCallback(); - }); - } - } - if (pendingChecks === 0) { - wrappedCallback(); - } - } - addHttp2Port() { - throw new Error('Not yet implemented'); - } - /** - * Get the channelz reference object for this server. The returned value is - * garbage if channelz is disabled for this server. - * @returns - */ - getChannelzRef() { - return this.channelzRef; - } - _verifyContentType(stream, headers) { - const contentType = headers[http2.constants.HTTP2_HEADER_CONTENT_TYPE]; - if (typeof contentType !== 'string' || - !contentType.startsWith('application/grpc')) { - stream.respond({ - [http2.constants.HTTP2_HEADER_STATUS]: http2.constants.HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE, - }, { endStream: true }); - return false; - } - return true; - } - _retrieveHandler(path) { - serverCallTrace('Received call to method ' + - path + - ' at address ' + - this.serverAddressString); - const handler = this.handlers.get(path); - if (handler === undefined) { - serverCallTrace('No handler registered for method ' + - path + - '. Sending UNIMPLEMENTED status.'); - return null; - } - return handler; - } - _respondWithError(err, stream, channelzSessionInfo = null) { - var _b, _c; - const trailersToSend = Object.assign({ 'grpc-status': (_b = err.code) !== null && _b !== void 0 ? _b : constants_1.Status.INTERNAL, 'grpc-message': err.details, [http2.constants.HTTP2_HEADER_STATUS]: http2.constants.HTTP_STATUS_OK, [http2.constants.HTTP2_HEADER_CONTENT_TYPE]: 'application/grpc+proto' }, (_c = err.metadata) === null || _c === void 0 ? void 0 : _c.toHttp2Headers()); - stream.respond(trailersToSend, { endStream: true }); - this.callTracker.addCallFailed(); - channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallFailed(); - } - _channelzHandler(extraInterceptors, stream, headers) { - // for handling idle timeout - this.onStreamOpened(stream); - const channelzSessionInfo = this.sessions.get(stream.session); - this.callTracker.addCallStarted(); - channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallStarted(); - if (!this._verifyContentType(stream, headers)) { - this.callTracker.addCallFailed(); - channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallFailed(); - return; - } - const path = headers[HTTP2_HEADER_PATH]; - const handler = this._retrieveHandler(path); - if (!handler) { - this._respondWithError(getUnimplementedStatusResponse(path), stream, channelzSessionInfo); - return; - } - const callEventTracker = { - addMessageSent: () => { - if (channelzSessionInfo) { - channelzSessionInfo.messagesSent += 1; - channelzSessionInfo.lastMessageSentTimestamp = new Date(); - } - }, - addMessageReceived: () => { - if (channelzSessionInfo) { - channelzSessionInfo.messagesReceived += 1; - channelzSessionInfo.lastMessageReceivedTimestamp = new Date(); - } - }, - onCallEnd: status => { - if (status.code === constants_1.Status.OK) { - this.callTracker.addCallSucceeded(); - } - else { - this.callTracker.addCallFailed(); - } - }, - onStreamEnd: success => { - if (channelzSessionInfo) { - if (success) { - channelzSessionInfo.streamTracker.addCallSucceeded(); - } - else { - channelzSessionInfo.streamTracker.addCallFailed(); - } - } - }, - }; - const call = (0, server_interceptors_1.getServerInterceptingCall)([...extraInterceptors, ...this.interceptors], stream, headers, callEventTracker, handler, this.options); - if (!this._runHandlerForCall(call, handler)) { - this.callTracker.addCallFailed(); - channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallFailed(); - call.sendStatus({ - code: constants_1.Status.INTERNAL, - details: `Unknown handler type: ${handler.type}`, - }); - } - } - _streamHandler(extraInterceptors, stream, headers) { - // for handling idle timeout - this.onStreamOpened(stream); - if (this._verifyContentType(stream, headers) !== true) { - return; - } - const path = headers[HTTP2_HEADER_PATH]; - const handler = this._retrieveHandler(path); - if (!handler) { - this._respondWithError(getUnimplementedStatusResponse(path), stream, null); - return; - } - const call = (0, server_interceptors_1.getServerInterceptingCall)([...extraInterceptors, ...this.interceptors], stream, headers, null, handler, this.options); - if (!this._runHandlerForCall(call, handler)) { - call.sendStatus({ - code: constants_1.Status.INTERNAL, - details: `Unknown handler type: ${handler.type}`, - }); - } - } - _runHandlerForCall(call, handler) { - const { type } = handler; - if (type === 'unary') { - handleUnary(call, handler); - } - else if (type === 'clientStream') { - handleClientStreaming(call, handler); - } - else if (type === 'serverStream') { - handleServerStreaming(call, handler); - } - else if (type === 'bidi') { - handleBidiStreaming(call, handler); - } - else { - return false; - } - return true; - } - _setupHandlers(http2Server, extraInterceptors) { - if (http2Server === null) { - return; - } - const serverAddress = http2Server.address(); - let serverAddressString = 'null'; - if (serverAddress) { - if (typeof serverAddress === 'string') { - serverAddressString = serverAddress; - } - else { - serverAddressString = serverAddress.address + ':' + serverAddress.port; - } - } - this.serverAddressString = serverAddressString; - const handler = this.channelzEnabled - ? this._channelzHandler - : this._streamHandler; - const sessionHandler = this.channelzEnabled - ? this._channelzSessionHandler(http2Server) - : this._sessionHandler(http2Server); - http2Server.on('stream', handler.bind(this, extraInterceptors)); - http2Server.on('session', sessionHandler); - } - _sessionHandler(http2Server) { - return (session) => { - var _b, _c; - (_b = this.http2Servers.get(http2Server)) === null || _b === void 0 ? void 0 : _b.sessions.add(session); - let connectionAgeTimer = null; - let connectionAgeGraceTimer = null; - let keepaliveTimer = null; - let sessionClosedByServer = false; - const idleTimeoutObj = this.enableIdleTimeout(session); - if (this.maxConnectionAgeMs !== UNLIMITED_CONNECTION_AGE_MS) { - // Apply a random jitter within a +/-10% range - const jitterMagnitude = this.maxConnectionAgeMs / 10; - const jitter = Math.random() * jitterMagnitude * 2 - jitterMagnitude; - connectionAgeTimer = setTimeout(() => { - var _b, _c; - sessionClosedByServer = true; - this.trace('Connection dropped by max connection age: ' + - ((_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress)); - try { - session.goaway(http2.constants.NGHTTP2_NO_ERROR, ~(1 << 31), kMaxAge); - } - catch (e) { - // The goaway can't be sent because the session is already closed - session.destroy(); - return; - } - session.close(); - /* Allow a grace period after sending the GOAWAY before forcibly - * closing the connection. */ - if (this.maxConnectionAgeGraceMs !== UNLIMITED_CONNECTION_AGE_MS) { - connectionAgeGraceTimer = setTimeout(() => { - session.destroy(); - }, this.maxConnectionAgeGraceMs); - (_c = connectionAgeGraceTimer.unref) === null || _c === void 0 ? void 0 : _c.call(connectionAgeGraceTimer); - } - }, this.maxConnectionAgeMs + jitter); - (_c = connectionAgeTimer.unref) === null || _c === void 0 ? void 0 : _c.call(connectionAgeTimer); - } - const clearKeepaliveTimeout = () => { - if (keepaliveTimer) { - clearTimeout(keepaliveTimer); - keepaliveTimer = null; - } - }; - const canSendPing = () => { - return (!session.destroyed && - this.keepaliveTimeMs < KEEPALIVE_MAX_TIME_MS && - this.keepaliveTimeMs > 0); - }; - /* eslint-disable-next-line prefer-const */ - let sendPing; // hoisted for use in maybeStartKeepalivePingTimer - const maybeStartKeepalivePingTimer = () => { - var _b; - if (!canSendPing()) { - return; - } - this.keepaliveTrace('Starting keepalive timer for ' + this.keepaliveTimeMs + 'ms'); - keepaliveTimer = setTimeout(() => { - clearKeepaliveTimeout(); - sendPing(); - }, this.keepaliveTimeMs); - (_b = keepaliveTimer.unref) === null || _b === void 0 ? void 0 : _b.call(keepaliveTimer); - }; - sendPing = () => { - var _b; - if (!canSendPing()) { - return; - } - this.keepaliveTrace('Sending ping with timeout ' + this.keepaliveTimeoutMs + 'ms'); - let pingSendError = ''; - try { - const pingSentSuccessfully = session.ping((err, duration, payload) => { - clearKeepaliveTimeout(); - if (err) { - this.keepaliveTrace('Ping failed with error: ' + err.message); - sessionClosedByServer = true; - session.destroy(); - } - else { - this.keepaliveTrace('Received ping response'); - maybeStartKeepalivePingTimer(); - } - }); - if (!pingSentSuccessfully) { - pingSendError = 'Ping returned false'; - } - } - catch (e) { - // grpc/grpc-node#2139 - pingSendError = - (e instanceof Error ? e.message : '') || 'Unknown error'; - } - if (pingSendError) { - this.keepaliveTrace('Ping send failed: ' + pingSendError); - this.trace('Connection dropped due to ping send error: ' + pingSendError); - sessionClosedByServer = true; - session.destroy(); - return; - } - keepaliveTimer = setTimeout(() => { - clearKeepaliveTimeout(); - this.keepaliveTrace('Ping timeout passed without response'); - this.trace('Connection dropped by keepalive timeout'); - sessionClosedByServer = true; - session.destroy(); - }, this.keepaliveTimeoutMs); - (_b = keepaliveTimer.unref) === null || _b === void 0 ? void 0 : _b.call(keepaliveTimer); - }; - maybeStartKeepalivePingTimer(); - session.on('close', () => { - var _b, _c; - if (!sessionClosedByServer) { - this.trace(`Connection dropped by client ${(_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress}`); - } - if (connectionAgeTimer) { - clearTimeout(connectionAgeTimer); - } - if (connectionAgeGraceTimer) { - clearTimeout(connectionAgeGraceTimer); - } - clearKeepaliveTimeout(); - if (idleTimeoutObj !== null) { - clearTimeout(idleTimeoutObj.timeout); - this.sessionIdleTimeouts.delete(session); - } - (_c = this.http2Servers.get(http2Server)) === null || _c === void 0 ? void 0 : _c.sessions.delete(session); - }); - }; - } - _channelzSessionHandler(http2Server) { - return (session) => { - var _b, _c, _d, _e; - const channelzRef = (0, channelz_1.registerChannelzSocket)((_c = (_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress) !== null && _c !== void 0 ? _c : 'unknown', this.getChannelzSessionInfo.bind(this, session), this.channelzEnabled); - const channelzSessionInfo = { - ref: channelzRef, - streamTracker: new channelz_1.ChannelzCallTracker(), - messagesSent: 0, - messagesReceived: 0, - keepAlivesSent: 0, - lastMessageSentTimestamp: null, - lastMessageReceivedTimestamp: null, - }; - (_d = this.http2Servers.get(http2Server)) === null || _d === void 0 ? void 0 : _d.sessions.add(session); - this.sessions.set(session, channelzSessionInfo); - const clientAddress = `${session.socket.remoteAddress}:${session.socket.remotePort}`; - this.channelzTrace.addTrace('CT_INFO', 'Connection established by client ' + clientAddress); - this.trace('Connection established by client ' + clientAddress); - this.sessionChildrenTracker.refChild(channelzRef); - let connectionAgeTimer = null; - let connectionAgeGraceTimer = null; - let keepaliveTimeout = null; - let sessionClosedByServer = false; - const idleTimeoutObj = this.enableIdleTimeout(session); - if (this.maxConnectionAgeMs !== UNLIMITED_CONNECTION_AGE_MS) { - // Apply a random jitter within a +/-10% range - const jitterMagnitude = this.maxConnectionAgeMs / 10; - const jitter = Math.random() * jitterMagnitude * 2 - jitterMagnitude; - connectionAgeTimer = setTimeout(() => { - var _b; - sessionClosedByServer = true; - this.channelzTrace.addTrace('CT_INFO', 'Connection dropped by max connection age from ' + clientAddress); - try { - session.goaway(http2.constants.NGHTTP2_NO_ERROR, ~(1 << 31), kMaxAge); - } - catch (e) { - // The goaway can't be sent because the session is already closed - session.destroy(); - return; - } - session.close(); - /* Allow a grace period after sending the GOAWAY before forcibly - * closing the connection. */ - if (this.maxConnectionAgeGraceMs !== UNLIMITED_CONNECTION_AGE_MS) { - connectionAgeGraceTimer = setTimeout(() => { - session.destroy(); - }, this.maxConnectionAgeGraceMs); - (_b = connectionAgeGraceTimer.unref) === null || _b === void 0 ? void 0 : _b.call(connectionAgeGraceTimer); - } - }, this.maxConnectionAgeMs + jitter); - (_e = connectionAgeTimer.unref) === null || _e === void 0 ? void 0 : _e.call(connectionAgeTimer); - } - const clearKeepaliveTimeout = () => { - if (keepaliveTimeout) { - clearTimeout(keepaliveTimeout); - keepaliveTimeout = null; - } - }; - const canSendPing = () => { - return (!session.destroyed && - this.keepaliveTimeMs < KEEPALIVE_MAX_TIME_MS && - this.keepaliveTimeMs > 0); - }; - /* eslint-disable-next-line prefer-const */ - let sendPing; // hoisted for use in maybeStartKeepalivePingTimer - const maybeStartKeepalivePingTimer = () => { - var _b; - if (!canSendPing()) { - return; - } - this.keepaliveTrace('Starting keepalive timer for ' + this.keepaliveTimeMs + 'ms'); - keepaliveTimeout = setTimeout(() => { - clearKeepaliveTimeout(); - sendPing(); - }, this.keepaliveTimeMs); - (_b = keepaliveTimeout.unref) === null || _b === void 0 ? void 0 : _b.call(keepaliveTimeout); - }; - sendPing = () => { - var _b; - if (!canSendPing()) { - return; - } - this.keepaliveTrace('Sending ping with timeout ' + this.keepaliveTimeoutMs + 'ms'); - let pingSendError = ''; - try { - const pingSentSuccessfully = session.ping((err, duration, payload) => { - clearKeepaliveTimeout(); - if (err) { - this.keepaliveTrace('Ping failed with error: ' + err.message); - this.channelzTrace.addTrace('CT_INFO', 'Connection dropped due to error of a ping frame ' + - err.message + - ' return in ' + - duration); - sessionClosedByServer = true; - session.destroy(); - } - else { - this.keepaliveTrace('Received ping response'); - maybeStartKeepalivePingTimer(); - } - }); - if (!pingSentSuccessfully) { - pingSendError = 'Ping returned false'; - } - } - catch (e) { - // grpc/grpc-node#2139 - pingSendError = - (e instanceof Error ? e.message : '') || 'Unknown error'; - } - if (pingSendError) { - this.keepaliveTrace('Ping send failed: ' + pingSendError); - this.channelzTrace.addTrace('CT_INFO', 'Connection dropped due to ping send error: ' + pingSendError); - sessionClosedByServer = true; - session.destroy(); - return; - } - channelzSessionInfo.keepAlivesSent += 1; - keepaliveTimeout = setTimeout(() => { - clearKeepaliveTimeout(); - this.keepaliveTrace('Ping timeout passed without response'); - this.channelzTrace.addTrace('CT_INFO', 'Connection dropped by keepalive timeout from ' + clientAddress); - sessionClosedByServer = true; - session.destroy(); - }, this.keepaliveTimeoutMs); - (_b = keepaliveTimeout.unref) === null || _b === void 0 ? void 0 : _b.call(keepaliveTimeout); - }; - maybeStartKeepalivePingTimer(); - session.on('close', () => { - var _b; - if (!sessionClosedByServer) { - this.channelzTrace.addTrace('CT_INFO', 'Connection dropped by client ' + clientAddress); - } - this.sessionChildrenTracker.unrefChild(channelzRef); - (0, channelz_1.unregisterChannelzRef)(channelzRef); - if (connectionAgeTimer) { - clearTimeout(connectionAgeTimer); - } - if (connectionAgeGraceTimer) { - clearTimeout(connectionAgeGraceTimer); - } - clearKeepaliveTimeout(); - if (idleTimeoutObj !== null) { - clearTimeout(idleTimeoutObj.timeout); - this.sessionIdleTimeouts.delete(session); - } - (_b = this.http2Servers.get(http2Server)) === null || _b === void 0 ? void 0 : _b.sessions.delete(session); - this.sessions.delete(session); - }); - }; - } - enableIdleTimeout(session) { - var _b, _c; - if (this.sessionIdleTimeout >= MAX_CONNECTION_IDLE_MS) { - return null; - } - const idleTimeoutObj = { - activeStreams: 0, - lastIdle: Date.now(), - onClose: this.onStreamClose.bind(this, session), - timeout: setTimeout(this.onIdleTimeout, this.sessionIdleTimeout, this, session), - }; - (_c = (_b = idleTimeoutObj.timeout).unref) === null || _c === void 0 ? void 0 : _c.call(_b); - this.sessionIdleTimeouts.set(session, idleTimeoutObj); - const { socket } = session; - this.trace('Enable idle timeout for ' + - socket.remoteAddress + - ':' + - socket.remotePort); - return idleTimeoutObj; - } - onIdleTimeout(ctx, session) { - const { socket } = session; - const sessionInfo = ctx.sessionIdleTimeouts.get(session); - // if it is called while we have activeStreams - timer will not be rescheduled - // until last active stream is closed, then it will call .refresh() on the timer - // important part is to not clearTimeout(timer) or it becomes unusable - // for future refreshes - if (sessionInfo !== undefined && - sessionInfo.activeStreams === 0) { - if (Date.now() - sessionInfo.lastIdle >= ctx.sessionIdleTimeout) { - ctx.trace('Session idle timeout triggered for ' + - (socket === null || socket === void 0 ? void 0 : socket.remoteAddress) + - ':' + - (socket === null || socket === void 0 ? void 0 : socket.remotePort) + - ' last idle at ' + - sessionInfo.lastIdle); - ctx.closeSession(session); - } - else { - sessionInfo.timeout.refresh(); - } - } - } - onStreamOpened(stream) { - const session = stream.session; - const idleTimeoutObj = this.sessionIdleTimeouts.get(session); - if (idleTimeoutObj) { - idleTimeoutObj.activeStreams += 1; - stream.once('close', idleTimeoutObj.onClose); - } - } - onStreamClose(session) { - var _b, _c; - const idleTimeoutObj = this.sessionIdleTimeouts.get(session); - if (idleTimeoutObj) { - idleTimeoutObj.activeStreams -= 1; - if (idleTimeoutObj.activeStreams === 0) { - idleTimeoutObj.lastIdle = Date.now(); - idleTimeoutObj.timeout.refresh(); - this.trace('Session onStreamClose' + - ((_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress) + - ':' + - ((_c = session.socket) === null || _c === void 0 ? void 0 : _c.remotePort) + - ' at ' + - idleTimeoutObj.lastIdle); - } - } - } - }, - (() => { - const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; - _start_decorators = [deprecate('Calling start() is no longer necessary. It can be safely omitted.')]; - __esDecorate(_a, null, _start_decorators, { kind: "method", name: "start", static: false, private: false, access: { has: obj => "start" in obj, get: obj => obj.start }, metadata: _metadata }, null, _instanceExtraInitializers); - if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); - })(), - _a; -})(); -exports.Server = Server; -async function handleUnary(call, handler) { - let stream; - function respond(err, value, trailer, flags) { - if (err) { - call.sendStatus((0, server_call_1.serverErrorToStatus)(err, trailer)); - return; - } - call.sendMessage(value, () => { - call.sendStatus({ - code: constants_1.Status.OK, - details: 'OK', - metadata: trailer !== null && trailer !== void 0 ? trailer : null, - }); - }); - } - let requestMetadata; - let requestMessage = null; - call.start({ - onReceiveMetadata(metadata) { - requestMetadata = metadata; - call.startRead(); - }, - onReceiveMessage(message) { - if (requestMessage) { - call.sendStatus({ - code: constants_1.Status.UNIMPLEMENTED, - details: `Received a second request message for server streaming method ${handler.path}`, - metadata: null, - }); - return; - } - requestMessage = message; - call.startRead(); - }, - onReceiveHalfClose() { - if (!requestMessage) { - call.sendStatus({ - code: constants_1.Status.UNIMPLEMENTED, - details: `Received no request message for server streaming method ${handler.path}`, - metadata: null, - }); - return; - } - stream = new server_call_1.ServerWritableStreamImpl(handler.path, call, requestMetadata, requestMessage); - try { - handler.func(stream, respond); - } - catch (err) { - call.sendStatus({ - code: constants_1.Status.UNKNOWN, - details: `Server method handler threw error ${err.message}`, - metadata: null, - }); - } - }, - onCancel() { - if (stream) { - stream.cancelled = true; - stream.emit('cancelled', 'cancelled'); - } - }, - }); -} -function handleClientStreaming(call, handler) { - let stream; - function respond(err, value, trailer, flags) { - if (err) { - call.sendStatus((0, server_call_1.serverErrorToStatus)(err, trailer)); - return; - } - call.sendMessage(value, () => { - call.sendStatus({ - code: constants_1.Status.OK, - details: 'OK', - metadata: trailer !== null && trailer !== void 0 ? trailer : null, - }); - }); - } - call.start({ - onReceiveMetadata(metadata) { - stream = new server_call_1.ServerDuplexStreamImpl(handler.path, call, metadata); - try { - handler.func(stream, respond); - } - catch (err) { - call.sendStatus({ - code: constants_1.Status.UNKNOWN, - details: `Server method handler threw error ${err.message}`, - metadata: null, - }); - } - }, - onReceiveMessage(message) { - stream.push(message); - }, - onReceiveHalfClose() { - stream.push(null); - }, - onCancel() { - if (stream) { - stream.cancelled = true; - stream.emit('cancelled', 'cancelled'); - stream.destroy(); - } - }, - }); -} -function handleServerStreaming(call, handler) { - let stream; - let requestMetadata; - let requestMessage = null; - call.start({ - onReceiveMetadata(metadata) { - requestMetadata = metadata; - call.startRead(); - }, - onReceiveMessage(message) { - if (requestMessage) { - call.sendStatus({ - code: constants_1.Status.UNIMPLEMENTED, - details: `Received a second request message for server streaming method ${handler.path}`, - metadata: null, - }); - return; - } - requestMessage = message; - call.startRead(); - }, - onReceiveHalfClose() { - if (!requestMessage) { - call.sendStatus({ - code: constants_1.Status.UNIMPLEMENTED, - details: `Received no request message for server streaming method ${handler.path}`, - metadata: null, - }); - return; - } - stream = new server_call_1.ServerWritableStreamImpl(handler.path, call, requestMetadata, requestMessage); - try { - handler.func(stream); - } - catch (err) { - call.sendStatus({ - code: constants_1.Status.UNKNOWN, - details: `Server method handler threw error ${err.message}`, - metadata: null, - }); - } - }, - onCancel() { - if (stream) { - stream.cancelled = true; - stream.emit('cancelled', 'cancelled'); - stream.destroy(); - } - }, - }); -} -function handleBidiStreaming(call, handler) { - let stream; - call.start({ - onReceiveMetadata(metadata) { - stream = new server_call_1.ServerDuplexStreamImpl(handler.path, call, metadata); - try { - handler.func(stream); - } - catch (err) { - call.sendStatus({ - code: constants_1.Status.UNKNOWN, - details: `Server method handler threw error ${err.message}`, - metadata: null, - }); - } - }, - onReceiveMessage(message) { - stream.push(message); - }, - onReceiveHalfClose() { - stream.push(null); - }, - onCancel() { - if (stream) { - stream.cancelled = true; - stream.emit('cancelled', 'cancelled'); - stream.destroy(); - } - }, - }); -} -//# sourceMappingURL=server.js.map - -/***/ }), - -/***/ 70005: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.validateRetryThrottling = validateRetryThrottling; -exports.validateServiceConfig = validateServiceConfig; -exports.extractAndSelectServiceConfig = extractAndSelectServiceConfig; -/* This file implements gRFC A2 and the service config spec: - * https://github.com/grpc/proposal/blob/master/A2-service-configs-in-dns.md - * https://github.com/grpc/grpc/blob/master/doc/service_config.md. Each - * function here takes an object with unknown structure and returns its - * specific object type if the input has the right structure, and throws an - * error otherwise. */ -/* The any type is purposely used here. All functions validate their input at - * runtime */ -/* eslint-disable @typescript-eslint/no-explicit-any */ -const os = __nccwpck_require__(70857); -const constants_1 = __nccwpck_require__(68288); -/** - * Recognizes a number with up to 9 digits after the decimal point, followed by - * an "s", representing a number of seconds. - */ -const DURATION_REGEX = /^\d+(\.\d{1,9})?s$/; -/** - * Client language name used for determining whether this client matches a - * `ServiceConfigCanaryConfig`'s `clientLanguage` list. - */ -const CLIENT_LANGUAGE_STRING = 'node'; -function validateName(obj) { - // In this context, and unset field and '' are considered the same - if ('service' in obj && obj.service !== '') { - if (typeof obj.service !== 'string') { - throw new Error(`Invalid method config name: invalid service: expected type string, got ${typeof obj.service}`); - } - if ('method' in obj && obj.method !== '') { - if (typeof obj.method !== 'string') { - throw new Error(`Invalid method config name: invalid method: expected type string, got ${typeof obj.service}`); - } - return { - service: obj.service, - method: obj.method, - }; - } - else { - return { - service: obj.service, - }; - } - } - else { - if ('method' in obj && obj.method !== undefined) { - throw new Error(`Invalid method config name: method set with empty or unset service`); - } - return {}; - } -} -function validateRetryPolicy(obj) { - if (!('maxAttempts' in obj) || - !Number.isInteger(obj.maxAttempts) || - obj.maxAttempts < 2) { - throw new Error('Invalid method config retry policy: maxAttempts must be an integer at least 2'); - } - if (!('initialBackoff' in obj) || - typeof obj.initialBackoff !== 'string' || - !DURATION_REGEX.test(obj.initialBackoff)) { - throw new Error('Invalid method config retry policy: initialBackoff must be a string consisting of a positive integer or decimal followed by s'); - } - if (!('maxBackoff' in obj) || - typeof obj.maxBackoff !== 'string' || - !DURATION_REGEX.test(obj.maxBackoff)) { - throw new Error('Invalid method config retry policy: maxBackoff must be a string consisting of a positive integer or decimal followed by s'); - } - if (!('backoffMultiplier' in obj) || - typeof obj.backoffMultiplier !== 'number' || - obj.backoffMultiplier <= 0) { - throw new Error('Invalid method config retry policy: backoffMultiplier must be a number greater than 0'); - } - if (!('retryableStatusCodes' in obj && Array.isArray(obj.retryableStatusCodes))) { - throw new Error('Invalid method config retry policy: retryableStatusCodes is required'); - } - if (obj.retryableStatusCodes.length === 0) { - throw new Error('Invalid method config retry policy: retryableStatusCodes must be non-empty'); - } - for (const value of obj.retryableStatusCodes) { - if (typeof value === 'number') { - if (!Object.values(constants_1.Status).includes(value)) { - throw new Error('Invalid method config retry policy: retryableStatusCodes value not in status code range'); - } - } - else if (typeof value === 'string') { - if (!Object.values(constants_1.Status).includes(value.toUpperCase())) { - throw new Error('Invalid method config retry policy: retryableStatusCodes value not a status code name'); - } - } - else { - throw new Error('Invalid method config retry policy: retryableStatusCodes value must be a string or number'); - } - } - return { - maxAttempts: obj.maxAttempts, - initialBackoff: obj.initialBackoff, - maxBackoff: obj.maxBackoff, - backoffMultiplier: obj.backoffMultiplier, - retryableStatusCodes: obj.retryableStatusCodes, - }; -} -function validateHedgingPolicy(obj) { - if (!('maxAttempts' in obj) || - !Number.isInteger(obj.maxAttempts) || - obj.maxAttempts < 2) { - throw new Error('Invalid method config hedging policy: maxAttempts must be an integer at least 2'); - } - if ('hedgingDelay' in obj && - (typeof obj.hedgingDelay !== 'string' || - !DURATION_REGEX.test(obj.hedgingDelay))) { - throw new Error('Invalid method config hedging policy: hedgingDelay must be a string consisting of a positive integer followed by s'); - } - if ('nonFatalStatusCodes' in obj && Array.isArray(obj.nonFatalStatusCodes)) { - for (const value of obj.nonFatalStatusCodes) { - if (typeof value === 'number') { - if (!Object.values(constants_1.Status).includes(value)) { - throw new Error('Invalid method config hedging policy: nonFatalStatusCodes value not in status code range'); - } - } - else if (typeof value === 'string') { - if (!Object.values(constants_1.Status).includes(value.toUpperCase())) { - throw new Error('Invalid method config hedging policy: nonFatalStatusCodes value not a status code name'); - } - } - else { - throw new Error('Invalid method config hedging policy: nonFatalStatusCodes value must be a string or number'); - } - } - } - const result = { - maxAttempts: obj.maxAttempts, - }; - if (obj.hedgingDelay) { - result.hedgingDelay = obj.hedgingDelay; - } - if (obj.nonFatalStatusCodes) { - result.nonFatalStatusCodes = obj.nonFatalStatusCodes; - } - return result; -} -function validateMethodConfig(obj) { - var _a; - const result = { - name: [], - }; - if (!('name' in obj) || !Array.isArray(obj.name)) { - throw new Error('Invalid method config: invalid name array'); - } - for (const name of obj.name) { - result.name.push(validateName(name)); - } - if ('waitForReady' in obj) { - if (typeof obj.waitForReady !== 'boolean') { - throw new Error('Invalid method config: invalid waitForReady'); - } - result.waitForReady = obj.waitForReady; - } - if ('timeout' in obj) { - if (typeof obj.timeout === 'object') { - if (!('seconds' in obj.timeout) || - !(typeof obj.timeout.seconds === 'number')) { - throw new Error('Invalid method config: invalid timeout.seconds'); - } - if (!('nanos' in obj.timeout) || - !(typeof obj.timeout.nanos === 'number')) { - throw new Error('Invalid method config: invalid timeout.nanos'); - } - result.timeout = obj.timeout; - } - else if (typeof obj.timeout === 'string' && - DURATION_REGEX.test(obj.timeout)) { - const timeoutParts = obj.timeout - .substring(0, obj.timeout.length - 1) - .split('.'); - result.timeout = { - seconds: timeoutParts[0] | 0, - nanos: ((_a = timeoutParts[1]) !== null && _a !== void 0 ? _a : 0) | 0, - }; - } - else { - throw new Error('Invalid method config: invalid timeout'); - } - } - if ('maxRequestBytes' in obj) { - if (typeof obj.maxRequestBytes !== 'number') { - throw new Error('Invalid method config: invalid maxRequestBytes'); - } - result.maxRequestBytes = obj.maxRequestBytes; - } - if ('maxResponseBytes' in obj) { - if (typeof obj.maxResponseBytes !== 'number') { - throw new Error('Invalid method config: invalid maxRequestBytes'); - } - result.maxResponseBytes = obj.maxResponseBytes; - } - if ('retryPolicy' in obj) { - if ('hedgingPolicy' in obj) { - throw new Error('Invalid method config: retryPolicy and hedgingPolicy cannot both be specified'); - } - else { - result.retryPolicy = validateRetryPolicy(obj.retryPolicy); - } - } - else if ('hedgingPolicy' in obj) { - result.hedgingPolicy = validateHedgingPolicy(obj.hedgingPolicy); - } - return result; -} -function validateRetryThrottling(obj) { - if (!('maxTokens' in obj) || - typeof obj.maxTokens !== 'number' || - obj.maxTokens <= 0 || - obj.maxTokens > 1000) { - throw new Error('Invalid retryThrottling: maxTokens must be a number in (0, 1000]'); - } - if (!('tokenRatio' in obj) || - typeof obj.tokenRatio !== 'number' || - obj.tokenRatio <= 0) { - throw new Error('Invalid retryThrottling: tokenRatio must be a number greater than 0'); - } - return { - maxTokens: +obj.maxTokens.toFixed(3), - tokenRatio: +obj.tokenRatio.toFixed(3), - }; -} -function validateLoadBalancingConfig(obj) { - if (!(typeof obj === 'object' && obj !== null)) { - throw new Error(`Invalid loadBalancingConfig: unexpected type ${typeof obj}`); - } - const keys = Object.keys(obj); - if (keys.length > 1) { - throw new Error(`Invalid loadBalancingConfig: unexpected multiple keys ${keys}`); - } - if (keys.length === 0) { - throw new Error('Invalid loadBalancingConfig: load balancing policy name required'); - } - return { - [keys[0]]: obj[keys[0]], - }; -} -function validateServiceConfig(obj) { - const result = { - loadBalancingConfig: [], - methodConfig: [], - }; - if ('loadBalancingPolicy' in obj) { - if (typeof obj.loadBalancingPolicy === 'string') { - result.loadBalancingPolicy = obj.loadBalancingPolicy; - } - else { - throw new Error('Invalid service config: invalid loadBalancingPolicy'); - } - } - if ('loadBalancingConfig' in obj) { - if (Array.isArray(obj.loadBalancingConfig)) { - for (const config of obj.loadBalancingConfig) { - result.loadBalancingConfig.push(validateLoadBalancingConfig(config)); - } - } - else { - throw new Error('Invalid service config: invalid loadBalancingConfig'); - } - } - if ('methodConfig' in obj) { - if (Array.isArray(obj.methodConfig)) { - for (const methodConfig of obj.methodConfig) { - result.methodConfig.push(validateMethodConfig(methodConfig)); - } - } - } - if ('retryThrottling' in obj) { - result.retryThrottling = validateRetryThrottling(obj.retryThrottling); - } - // Validate method name uniqueness - const seenMethodNames = []; - for (const methodConfig of result.methodConfig) { - for (const name of methodConfig.name) { - for (const seenName of seenMethodNames) { - if (name.service === seenName.service && - name.method === seenName.method) { - throw new Error(`Invalid service config: duplicate name ${name.service}/${name.method}`); - } - } - seenMethodNames.push(name); - } - } - return result; -} -function validateCanaryConfig(obj) { - if (!('serviceConfig' in obj)) { - throw new Error('Invalid service config choice: missing service config'); - } - const result = { - serviceConfig: validateServiceConfig(obj.serviceConfig), - }; - if ('clientLanguage' in obj) { - if (Array.isArray(obj.clientLanguage)) { - result.clientLanguage = []; - for (const lang of obj.clientLanguage) { - if (typeof lang === 'string') { - result.clientLanguage.push(lang); - } - else { - throw new Error('Invalid service config choice: invalid clientLanguage'); - } - } - } - else { - throw new Error('Invalid service config choice: invalid clientLanguage'); - } - } - if ('clientHostname' in obj) { - if (Array.isArray(obj.clientHostname)) { - result.clientHostname = []; - for (const lang of obj.clientHostname) { - if (typeof lang === 'string') { - result.clientHostname.push(lang); - } - else { - throw new Error('Invalid service config choice: invalid clientHostname'); - } - } - } - else { - throw new Error('Invalid service config choice: invalid clientHostname'); - } - } - if ('percentage' in obj) { - if (typeof obj.percentage === 'number' && - 0 <= obj.percentage && - obj.percentage <= 100) { - result.percentage = obj.percentage; - } - else { - throw new Error('Invalid service config choice: invalid percentage'); - } - } - // Validate that no unexpected fields are present - const allowedFields = [ - 'clientLanguage', - 'percentage', - 'clientHostname', - 'serviceConfig', - ]; - for (const field in obj) { - if (!allowedFields.includes(field)) { - throw new Error(`Invalid service config choice: unexpected field ${field}`); - } - } - return result; -} -function validateAndSelectCanaryConfig(obj, percentage) { - if (!Array.isArray(obj)) { - throw new Error('Invalid service config list'); - } - for (const config of obj) { - const validatedConfig = validateCanaryConfig(config); - /* For each field, we check if it is present, then only discard the - * config if the field value does not match the current client */ - if (typeof validatedConfig.percentage === 'number' && - percentage > validatedConfig.percentage) { - continue; - } - if (Array.isArray(validatedConfig.clientHostname)) { - let hostnameMatched = false; - for (const hostname of validatedConfig.clientHostname) { - if (hostname === os.hostname()) { - hostnameMatched = true; - } - } - if (!hostnameMatched) { - continue; - } - } - if (Array.isArray(validatedConfig.clientLanguage)) { - let languageMatched = false; - for (const language of validatedConfig.clientLanguage) { - if (language === CLIENT_LANGUAGE_STRING) { - languageMatched = true; - } - } - if (!languageMatched) { - continue; - } - } - return validatedConfig.serviceConfig; - } - throw new Error('No matching service config found'); -} -/** - * Find the "grpc_config" record among the TXT records, parse its value as JSON, validate its contents, - * and select a service config with selection fields that all match this client. Most of these steps - * can fail with an error; the caller must handle any errors thrown this way. - * @param txtRecord The TXT record array that is output from a successful call to dns.resolveTxt - * @param percentage A number chosen from the range [0, 100) that is used to select which config to use - * @return The service configuration to use, given the percentage value, or null if the service config - * data has a valid format but none of the options match the current client. - */ -function extractAndSelectServiceConfig(txtRecord, percentage) { - for (const record of txtRecord) { - if (record.length > 0 && record[0].startsWith('grpc_config=')) { - /* Treat the list of strings in this record as a single string and remove - * "grpc_config=" from the beginning. The rest should be a JSON string */ - const recordString = record.join('').substring('grpc_config='.length); - const recordJson = JSON.parse(recordString); - return validateAndSelectCanaryConfig(recordJson, percentage); - } - } - return null; -} -//# sourceMappingURL=service-config.js.map - -/***/ }), - -/***/ 40701: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2025 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SingleSubchannelChannel = void 0; -const call_number_1 = __nccwpck_require__(35675); -const channelz_1 = __nccwpck_require__(68198); -const compression_filter_1 = __nccwpck_require__(43430); -const connectivity_state_1 = __nccwpck_require__(60778); -const constants_1 = __nccwpck_require__(68288); -const control_plane_status_1 = __nccwpck_require__(39962); -const deadline_1 = __nccwpck_require__(52173); -const filter_stack_1 = __nccwpck_require__(95726); -const metadata_1 = __nccwpck_require__(36100); -const resolver_1 = __nccwpck_require__(76255); -const uri_parser_1 = __nccwpck_require__(56027); -class SubchannelCallWrapper { - constructor(subchannel, method, filterStackFactory, options, callNumber) { - var _a, _b; - this.subchannel = subchannel; - this.method = method; - this.options = options; - this.callNumber = callNumber; - this.childCall = null; - this.pendingMessage = null; - this.readPending = false; - this.halfClosePending = false; - this.pendingStatus = null; - this.readFilterPending = false; - this.writeFilterPending = false; - const splitPath = this.method.split('/'); - let serviceName = ''; - /* The standard path format is "/{serviceName}/{methodName}", so if we split - * by '/', the first item should be empty and the second should be the - * service name */ - if (splitPath.length >= 2) { - serviceName = splitPath[1]; - } - const hostname = (_b = (_a = (0, uri_parser_1.splitHostPort)(this.options.host)) === null || _a === void 0 ? void 0 : _a.host) !== null && _b !== void 0 ? _b : 'localhost'; - /* Currently, call credentials are only allowed on HTTPS connections, so we - * can assume that the scheme is "https" */ - this.serviceUrl = `https://${hostname}/${serviceName}`; - const timeout = (0, deadline_1.getRelativeTimeout)(options.deadline); - if (timeout !== Infinity) { - if (timeout <= 0) { - this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, 'Deadline exceeded'); - } - else { - setTimeout(() => { - this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, 'Deadline exceeded'); - }, timeout); - } - } - this.filterStack = filterStackFactory.createFilter(); - } - cancelWithStatus(status, details) { - if (this.childCall) { - this.childCall.cancelWithStatus(status, details); - } - else { - this.pendingStatus = { - code: status, - details: details, - metadata: new metadata_1.Metadata() - }; - } - } - getPeer() { - var _a, _b; - return (_b = (_a = this.childCall) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : this.subchannel.getAddress(); - } - async start(metadata, listener) { - if (this.pendingStatus) { - listener.onReceiveStatus(this.pendingStatus); - return; - } - if (this.subchannel.getConnectivityState() !== connectivity_state_1.ConnectivityState.READY) { - listener.onReceiveStatus({ - code: constants_1.Status.UNAVAILABLE, - details: 'Subchannel not ready', - metadata: new metadata_1.Metadata() - }); - return; - } - const filteredMetadata = await this.filterStack.sendMetadata(Promise.resolve(metadata)); - let credsMetadata; - try { - credsMetadata = await this.subchannel.getCallCredentials() - .generateMetadata({ method_name: this.method, service_url: this.serviceUrl }); - } - catch (e) { - const error = e; - const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(typeof error.code === 'number' ? error.code : constants_1.Status.UNKNOWN, `Getting metadata from plugin failed with error: ${error.message}`); - listener.onReceiveStatus({ - code: code, - details: details, - metadata: new metadata_1.Metadata(), - }); - return; - } - credsMetadata.merge(filteredMetadata); - const childListener = { - onReceiveMetadata: async (metadata) => { - listener.onReceiveMetadata(await this.filterStack.receiveMetadata(metadata)); - }, - onReceiveMessage: async (message) => { - this.readFilterPending = true; - const filteredMessage = await this.filterStack.receiveMessage(message); - this.readFilterPending = false; - listener.onReceiveMessage(filteredMessage); - if (this.pendingStatus) { - listener.onReceiveStatus(this.pendingStatus); - } - }, - onReceiveStatus: async (status) => { - const filteredStatus = await this.filterStack.receiveTrailers(status); - if (this.readFilterPending) { - this.pendingStatus = filteredStatus; - } - else { - listener.onReceiveStatus(filteredStatus); - } - } - }; - this.childCall = this.subchannel.createCall(credsMetadata, this.options.host, this.method, childListener); - if (this.readPending) { - this.childCall.startRead(); - } - if (this.pendingMessage) { - this.childCall.sendMessageWithContext(this.pendingMessage.context, this.pendingMessage.message); - } - if (this.halfClosePending && !this.writeFilterPending) { - this.childCall.halfClose(); - } - } - async sendMessageWithContext(context, message) { - this.writeFilterPending = true; - const filteredMessage = await this.filterStack.sendMessage(Promise.resolve({ message: message, flags: context.flags })); - this.writeFilterPending = false; - if (this.childCall) { - this.childCall.sendMessageWithContext(context, filteredMessage.message); - if (this.halfClosePending) { - this.childCall.halfClose(); - } - } - else { - this.pendingMessage = { context, message: filteredMessage.message }; - } - } - startRead() { - if (this.childCall) { - this.childCall.startRead(); - } - else { - this.readPending = true; - } - } - halfClose() { - if (this.childCall && !this.writeFilterPending) { - this.childCall.halfClose(); - } - else { - this.halfClosePending = true; - } - } - getCallNumber() { - return this.callNumber; - } - setCredentials(credentials) { - throw new Error("Method not implemented."); - } - getAuthContext() { - if (this.childCall) { - return this.childCall.getAuthContext(); - } - else { - return null; - } - } -} -class SingleSubchannelChannel { - constructor(subchannel, target, options) { - this.subchannel = subchannel; - this.target = target; - this.channelzEnabled = false; - this.channelzTrace = new channelz_1.ChannelzTrace(); - this.callTracker = new channelz_1.ChannelzCallTracker(); - this.childrenTracker = new channelz_1.ChannelzChildrenTracker(); - this.channelzEnabled = options['grpc.enable_channelz'] !== 0; - this.channelzRef = (0, channelz_1.registerChannelzChannel)((0, uri_parser_1.uriToString)(target), () => ({ - target: `${(0, uri_parser_1.uriToString)(target)} (${subchannel.getAddress()})`, - state: this.subchannel.getConnectivityState(), - trace: this.channelzTrace, - callTracker: this.callTracker, - children: this.childrenTracker.getChildLists() - }), this.channelzEnabled); - if (this.channelzEnabled) { - this.childrenTracker.refChild(subchannel.getChannelzRef()); - } - this.filterStackFactory = new filter_stack_1.FilterStackFactory([new compression_filter_1.CompressionFilterFactory(this, options)]); - } - close() { - if (this.channelzEnabled) { - this.childrenTracker.unrefChild(this.subchannel.getChannelzRef()); - } - (0, channelz_1.unregisterChannelzRef)(this.channelzRef); - } - getTarget() { - return (0, uri_parser_1.uriToString)(this.target); - } - getConnectivityState(tryToConnect) { - throw new Error("Method not implemented."); - } - watchConnectivityState(currentState, deadline, callback) { - throw new Error("Method not implemented."); - } - getChannelzRef() { - return this.channelzRef; - } - createCall(method, deadline) { - const callOptions = { - deadline: deadline, - host: (0, resolver_1.getDefaultAuthority)(this.target), - flags: constants_1.Propagate.DEFAULTS, - parentCall: null - }; - return new SubchannelCallWrapper(this.subchannel, method, this.filterStackFactory, callOptions, (0, call_number_1.getNextCallNumber)()); - } -} -exports.SingleSubchannelChannel = SingleSubchannelChannel; -//# sourceMappingURL=single-subchannel-channel.js.map - -/***/ }), - -/***/ 7901: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StatusBuilder = void 0; -/** - * A builder for gRPC status objects. - */ -class StatusBuilder { - constructor() { - this.code = null; - this.details = null; - this.metadata = null; - } - /** - * Adds a status code to the builder. - */ - withCode(code) { - this.code = code; - return this; - } - /** - * Adds details to the builder. - */ - withDetails(details) { - this.details = details; - return this; - } - /** - * Adds metadata to the builder. - */ - withMetadata(metadata) { - this.metadata = metadata; - return this; - } - /** - * Builds the status object. - */ - build() { - const status = {}; - if (this.code !== null) { - status.code = this.code; - } - if (this.details !== null) { - status.details = this.details; - } - if (this.metadata !== null) { - status.metadata = this.metadata; - } - return status; - } -} -exports.StatusBuilder = StatusBuilder; -//# sourceMappingURL=status-builder.js.map - -/***/ }), - -/***/ 47956: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StreamDecoder = void 0; -var ReadState; -(function (ReadState) { - ReadState[ReadState["NO_DATA"] = 0] = "NO_DATA"; - ReadState[ReadState["READING_SIZE"] = 1] = "READING_SIZE"; - ReadState[ReadState["READING_MESSAGE"] = 2] = "READING_MESSAGE"; -})(ReadState || (ReadState = {})); -class StreamDecoder { - constructor(maxReadMessageLength) { - this.maxReadMessageLength = maxReadMessageLength; - this.readState = ReadState.NO_DATA; - this.readCompressFlag = Buffer.alloc(1); - this.readPartialSize = Buffer.alloc(4); - this.readSizeRemaining = 4; - this.readMessageSize = 0; - this.readPartialMessage = []; - this.readMessageRemaining = 0; - } - write(data) { - let readHead = 0; - let toRead; - const result = []; - while (readHead < data.length) { - switch (this.readState) { - case ReadState.NO_DATA: - this.readCompressFlag = data.slice(readHead, readHead + 1); - readHead += 1; - this.readState = ReadState.READING_SIZE; - this.readPartialSize.fill(0); - this.readSizeRemaining = 4; - this.readMessageSize = 0; - this.readMessageRemaining = 0; - this.readPartialMessage = []; - break; - case ReadState.READING_SIZE: - toRead = Math.min(data.length - readHead, this.readSizeRemaining); - data.copy(this.readPartialSize, 4 - this.readSizeRemaining, readHead, readHead + toRead); - this.readSizeRemaining -= toRead; - readHead += toRead; - // readSizeRemaining >=0 here - if (this.readSizeRemaining === 0) { - this.readMessageSize = this.readPartialSize.readUInt32BE(0); - if (this.maxReadMessageLength !== -1 && this.readMessageSize > this.maxReadMessageLength) { - throw new Error(`Received message larger than max (${this.readMessageSize} vs ${this.maxReadMessageLength})`); - } - this.readMessageRemaining = this.readMessageSize; - if (this.readMessageRemaining > 0) { - this.readState = ReadState.READING_MESSAGE; - } - else { - const message = Buffer.concat([this.readCompressFlag, this.readPartialSize], 5); - this.readState = ReadState.NO_DATA; - result.push(message); - } - } - break; - case ReadState.READING_MESSAGE: - toRead = Math.min(data.length - readHead, this.readMessageRemaining); - this.readPartialMessage.push(data.slice(readHead, readHead + toRead)); - this.readMessageRemaining -= toRead; - readHead += toRead; - // readMessageRemaining >=0 here - if (this.readMessageRemaining === 0) { - // At this point, we have read a full message - const framedMessageBuffers = [ - this.readCompressFlag, - this.readPartialSize, - ].concat(this.readPartialMessage); - const framedMessage = Buffer.concat(framedMessageBuffers, this.readMessageSize + 5); - this.readState = ReadState.NO_DATA; - result.push(framedMessage); - } - break; - default: - throw new Error('Unexpected read state'); - } - } - return result; - } -} -exports.StreamDecoder = StreamDecoder; -//# sourceMappingURL=stream-decoder.js.map - -/***/ }), - -/***/ 97021: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2021 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.EndpointMap = void 0; -exports.isTcpSubchannelAddress = isTcpSubchannelAddress; -exports.subchannelAddressEqual = subchannelAddressEqual; -exports.subchannelAddressToString = subchannelAddressToString; -exports.stringToSubchannelAddress = stringToSubchannelAddress; -exports.endpointEqual = endpointEqual; -exports.endpointToString = endpointToString; -exports.endpointHasAddress = endpointHasAddress; -const net_1 = __nccwpck_require__(69278); -function isTcpSubchannelAddress(address) { - return 'port' in address; -} -function subchannelAddressEqual(address1, address2) { - if (!address1 && !address2) { - return true; - } - if (!address1 || !address2) { - return false; - } - if (isTcpSubchannelAddress(address1)) { - return (isTcpSubchannelAddress(address2) && - address1.host === address2.host && - address1.port === address2.port); - } - else { - return !isTcpSubchannelAddress(address2) && address1.path === address2.path; - } -} -function subchannelAddressToString(address) { - if (isTcpSubchannelAddress(address)) { - if ((0, net_1.isIPv6)(address.host)) { - return '[' + address.host + ']:' + address.port; - } - else { - return address.host + ':' + address.port; - } - } - else { - return address.path; - } -} -const DEFAULT_PORT = 443; -function stringToSubchannelAddress(addressString, port) { - if ((0, net_1.isIP)(addressString)) { - return { - host: addressString, - port: port !== null && port !== void 0 ? port : DEFAULT_PORT, - }; - } - else { - return { - path: addressString, - }; - } -} -function endpointEqual(endpoint1, endpoint2) { - if (endpoint1.addresses.length !== endpoint2.addresses.length) { - return false; - } - for (let i = 0; i < endpoint1.addresses.length; i++) { - if (!subchannelAddressEqual(endpoint1.addresses[i], endpoint2.addresses[i])) { - return false; - } - } - return true; -} -function endpointToString(endpoint) { - return ('[' + endpoint.addresses.map(subchannelAddressToString).join(', ') + ']'); -} -function endpointHasAddress(endpoint, expectedAddress) { - for (const address of endpoint.addresses) { - if (subchannelAddressEqual(address, expectedAddress)) { - return true; - } - } - return false; -} -function endpointEqualUnordered(endpoint1, endpoint2) { - if (endpoint1.addresses.length !== endpoint2.addresses.length) { - return false; - } - for (const address1 of endpoint1.addresses) { - let matchFound = false; - for (const address2 of endpoint2.addresses) { - if (subchannelAddressEqual(address1, address2)) { - matchFound = true; - break; - } - } - if (!matchFound) { - return false; - } - } - return true; -} -class EndpointMap { - constructor() { - this.map = new Set(); - } - get size() { - return this.map.size; - } - getForSubchannelAddress(address) { - for (const entry of this.map) { - if (endpointHasAddress(entry.key, address)) { - return entry.value; - } - } - return undefined; - } - /** - * Delete any entries in this map with keys that are not in endpoints - * @param endpoints - */ - deleteMissing(endpoints) { - const removedValues = []; - for (const entry of this.map) { - let foundEntry = false; - for (const endpoint of endpoints) { - if (endpointEqualUnordered(endpoint, entry.key)) { - foundEntry = true; - } - } - if (!foundEntry) { - removedValues.push(entry.value); - this.map.delete(entry); - } - } - return removedValues; - } - get(endpoint) { - for (const entry of this.map) { - if (endpointEqualUnordered(endpoint, entry.key)) { - return entry.value; - } - } - return undefined; - } - set(endpoint, mapEntry) { - for (const entry of this.map) { - if (endpointEqualUnordered(endpoint, entry.key)) { - entry.value = mapEntry; - return; - } - } - this.map.add({ key: endpoint, value: mapEntry }); - } - delete(endpoint) { - for (const entry of this.map) { - if (endpointEqualUnordered(endpoint, entry.key)) { - this.map.delete(entry); - return; - } - } - } - has(endpoint) { - for (const entry of this.map) { - if (endpointEqualUnordered(endpoint, entry.key)) { - return true; - } - } - return false; - } - clear() { - this.map.clear(); - } - *keys() { - for (const entry of this.map) { - yield entry.key; - } - } - *values() { - for (const entry of this.map) { - yield entry.value; - } - } - *entries() { - for (const entry of this.map) { - yield [entry.key, entry.value]; - } - } -} -exports.EndpointMap = EndpointMap; -//# sourceMappingURL=subchannel-address.js.map - -/***/ }), - -/***/ 17953: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Http2SubchannelCall = void 0; -const http2 = __nccwpck_require__(85675); -const os = __nccwpck_require__(70857); -const constants_1 = __nccwpck_require__(68288); -const metadata_1 = __nccwpck_require__(36100); -const stream_decoder_1 = __nccwpck_require__(47956); -const logging = __nccwpck_require__(8536); -const constants_2 = __nccwpck_require__(68288); -const TRACER_NAME = 'subchannel_call'; -/** - * Should do approximately the same thing as util.getSystemErrorName but the - * TypeScript types don't have that function for some reason so I just made my - * own. - * @param errno - */ -function getSystemErrorName(errno) { - for (const [name, num] of Object.entries(os.constants.errno)) { - if (num === errno) { - return name; - } - } - return 'Unknown system error ' + errno; -} -function mapHttpStatusCode(code) { - const details = `Received HTTP status code ${code}`; - let mappedStatusCode; - switch (code) { - // TODO(murgatroid99): handle 100 and 101 - case 400: - mappedStatusCode = constants_1.Status.INTERNAL; - break; - case 401: - mappedStatusCode = constants_1.Status.UNAUTHENTICATED; - break; - case 403: - mappedStatusCode = constants_1.Status.PERMISSION_DENIED; - break; - case 404: - mappedStatusCode = constants_1.Status.UNIMPLEMENTED; - break; - case 429: - case 502: - case 503: - case 504: - mappedStatusCode = constants_1.Status.UNAVAILABLE; - break; - default: - mappedStatusCode = constants_1.Status.UNKNOWN; - } - return { - code: mappedStatusCode, - details: details, - metadata: new metadata_1.Metadata() - }; -} -class Http2SubchannelCall { - constructor(http2Stream, callEventTracker, listener, transport, callId) { - var _a; - this.http2Stream = http2Stream; - this.callEventTracker = callEventTracker; - this.listener = listener; - this.transport = transport; - this.callId = callId; - this.isReadFilterPending = false; - this.isPushPending = false; - this.canPush = false; - /** - * Indicates that an 'end' event has come from the http2 stream, so there - * will be no more data events. - */ - this.readsClosed = false; - this.statusOutput = false; - this.unpushedReadMessages = []; - // This is populated (non-null) if and only if the call has ended - this.finalStatus = null; - this.internalError = null; - this.serverEndedCall = false; - this.connectionDropped = false; - const maxReceiveMessageLength = (_a = transport.getOptions()['grpc.max_receive_message_length']) !== null && _a !== void 0 ? _a : constants_1.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH; - this.decoder = new stream_decoder_1.StreamDecoder(maxReceiveMessageLength); - http2Stream.on('response', (headers, flags) => { - let headersString = ''; - for (const header of Object.keys(headers)) { - headersString += '\t\t' + header + ': ' + headers[header] + '\n'; - } - this.trace('Received server headers:\n' + headersString); - this.httpStatusCode = headers[':status']; - if (flags & http2.constants.NGHTTP2_FLAG_END_STREAM) { - this.handleTrailers(headers); - } - else { - let metadata; - try { - metadata = metadata_1.Metadata.fromHttp2Headers(headers); - } - catch (error) { - this.endCall({ - code: constants_1.Status.UNKNOWN, - details: error.message, - metadata: new metadata_1.Metadata(), - }); - return; - } - this.listener.onReceiveMetadata(metadata); - } - }); - http2Stream.on('trailers', (headers) => { - this.handleTrailers(headers); - }); - http2Stream.on('data', (data) => { - /* If the status has already been output, allow the http2 stream to - * drain without processing the data. */ - if (this.statusOutput) { - return; - } - this.trace('receive HTTP/2 data frame of length ' + data.length); - let messages; - try { - messages = this.decoder.write(data); - } - catch (e) { - /* Some servers send HTML error pages along with HTTP status codes. - * When the client attempts to parse this as a length-delimited - * message, the parsed message size is greater than the default limit, - * resulting in a message decoding error. In that situation, the HTTP - * error code information is more useful to the user than the - * RESOURCE_EXHAUSTED error is, so we report that instead. Normally, - * we delay processing the HTTP status until after the stream ends, to - * prioritize reporting the gRPC status from trailers if it is present, - * but when there is a message parsing error we end the stream early - * before processing trailers. */ - if (this.httpStatusCode !== undefined && this.httpStatusCode !== 200) { - const mappedStatus = mapHttpStatusCode(this.httpStatusCode); - this.cancelWithStatus(mappedStatus.code, mappedStatus.details); - } - else { - this.cancelWithStatus(constants_1.Status.RESOURCE_EXHAUSTED, e.message); - } - return; - } - for (const message of messages) { - this.trace('parsed message of length ' + message.length); - this.callEventTracker.addMessageReceived(); - this.tryPush(message); - } - }); - http2Stream.on('end', () => { - this.readsClosed = true; - this.maybeOutputStatus(); - }); - http2Stream.on('close', () => { - this.serverEndedCall = true; - /* Use process.next tick to ensure that this code happens after any - * "error" event that may be emitted at about the same time, so that - * we can bubble up the error message from that event. */ - process.nextTick(() => { - var _a; - this.trace('HTTP/2 stream closed with code ' + http2Stream.rstCode); - /* If we have a final status with an OK status code, that means that - * we have received all of the messages and we have processed the - * trailers and the call completed successfully, so it doesn't matter - * how the stream ends after that */ - if (((_a = this.finalStatus) === null || _a === void 0 ? void 0 : _a.code) === constants_1.Status.OK) { - return; - } - let code; - let details = ''; - switch (http2Stream.rstCode) { - case http2.constants.NGHTTP2_NO_ERROR: - /* If we get a NO_ERROR code and we already have a status, the - * stream completed properly and we just haven't fully processed - * it yet */ - if (this.finalStatus !== null) { - return; - } - if (this.httpStatusCode && this.httpStatusCode !== 200) { - const mappedStatus = mapHttpStatusCode(this.httpStatusCode); - code = mappedStatus.code; - details = mappedStatus.details; - } - else { - code = constants_1.Status.INTERNAL; - details = `Received RST_STREAM with code ${http2Stream.rstCode} (Call ended without gRPC status)`; - } - break; - case http2.constants.NGHTTP2_REFUSED_STREAM: - code = constants_1.Status.UNAVAILABLE; - details = 'Stream refused by server'; - break; - case http2.constants.NGHTTP2_CANCEL: - /* Bug reports indicate that Node synthesizes a NGHTTP2_CANCEL - * code from connection drops. We want to prioritize reporting - * an unavailable status when that happens. */ - if (this.connectionDropped) { - code = constants_1.Status.UNAVAILABLE; - details = 'Connection dropped'; - } - else { - code = constants_1.Status.CANCELLED; - details = 'Call cancelled'; - } - break; - case http2.constants.NGHTTP2_ENHANCE_YOUR_CALM: - code = constants_1.Status.RESOURCE_EXHAUSTED; - details = 'Bandwidth exhausted or memory limit exceeded'; - break; - case http2.constants.NGHTTP2_INADEQUATE_SECURITY: - code = constants_1.Status.PERMISSION_DENIED; - details = 'Protocol not secure enough'; - break; - case http2.constants.NGHTTP2_INTERNAL_ERROR: - code = constants_1.Status.INTERNAL; - if (this.internalError === null) { - /* This error code was previously handled in the default case, and - * there are several instances of it online, so I wanted to - * preserve the original error message so that people find existing - * information in searches, but also include the more recognizable - * "Internal server error" message. */ - details = `Received RST_STREAM with code ${http2Stream.rstCode} (Internal server error)`; - } - else { - if (this.internalError.code === 'ECONNRESET' || - this.internalError.code === 'ETIMEDOUT') { - code = constants_1.Status.UNAVAILABLE; - details = this.internalError.message; - } - else { - /* The "Received RST_STREAM with code ..." error is preserved - * here for continuity with errors reported online, but the - * error message at the end will probably be more relevant in - * most cases. */ - details = `Received RST_STREAM with code ${http2Stream.rstCode} triggered by internal client error: ${this.internalError.message}`; - } - } - break; - default: - code = constants_1.Status.INTERNAL; - details = `Received RST_STREAM with code ${http2Stream.rstCode}`; - } - // This is a no-op if trailers were received at all. - // This is OK, because status codes emitted here correspond to more - // catastrophic issues that prevent us from receiving trailers in the - // first place. - this.endCall({ - code, - details, - metadata: new metadata_1.Metadata(), - rstCode: http2Stream.rstCode, - }); - }); - }); - http2Stream.on('error', (err) => { - /* We need an error handler here to stop "Uncaught Error" exceptions - * from bubbling up. However, errors here should all correspond to - * "close" events, where we will handle the error more granularly */ - /* Specifically looking for stream errors that were *not* constructed - * from a RST_STREAM response here: - * https://github.com/nodejs/node/blob/8b8620d580314050175983402dfddf2674e8e22a/lib/internal/http2/core.js#L2267 - */ - if (err.code !== 'ERR_HTTP2_STREAM_ERROR') { - this.trace('Node error event: message=' + - err.message + - ' code=' + - err.code + - ' errno=' + - getSystemErrorName(err.errno) + - ' syscall=' + - err.syscall); - this.internalError = err; - } - this.callEventTracker.onStreamEnd(false); - }); - } - getDeadlineInfo() { - return [`remote_addr=${this.getPeer()}`]; - } - onDisconnect() { - this.connectionDropped = true; - /* Give the call an event loop cycle to finish naturally before reporting - * the disconnection as an error. */ - setImmediate(() => { - this.endCall({ - code: constants_1.Status.UNAVAILABLE, - details: 'Connection dropped', - metadata: new metadata_1.Metadata(), - }); - }); - } - outputStatus() { - /* Precondition: this.finalStatus !== null */ - if (!this.statusOutput) { - this.statusOutput = true; - this.trace('ended with status: code=' + - this.finalStatus.code + - ' details="' + - this.finalStatus.details + - '"'); - this.callEventTracker.onCallEnd(this.finalStatus); - /* We delay the actual action of bubbling up the status to insulate the - * cleanup code in this class from any errors that may be thrown in the - * upper layers as a result of bubbling up the status. In particular, - * if the status is not OK, the "error" event may be emitted - * synchronously at the top level, which will result in a thrown error if - * the user does not handle that event. */ - process.nextTick(() => { - this.listener.onReceiveStatus(this.finalStatus); - }); - /* Leave the http2 stream in flowing state to drain incoming messages, to - * ensure that the stream closure completes. The call stream already does - * not push more messages after the status is output, so the messages go - * nowhere either way. */ - this.http2Stream.resume(); - } - } - trace(text) { - logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, '[' + this.callId + '] ' + text); - } - /** - * On first call, emits a 'status' event with the given StatusObject. - * Subsequent calls are no-ops. - * @param status The status of the call. - */ - endCall(status) { - /* If the status is OK and a new status comes in (e.g. from a - * deserialization failure), that new status takes priority */ - if (this.finalStatus === null || this.finalStatus.code === constants_1.Status.OK) { - this.finalStatus = status; - this.maybeOutputStatus(); - } - this.destroyHttp2Stream(); - } - maybeOutputStatus() { - if (this.finalStatus !== null) { - /* The combination check of readsClosed and that the two message buffer - * arrays are empty checks that there all incoming data has been fully - * processed */ - if (this.finalStatus.code !== constants_1.Status.OK || - (this.readsClosed && - this.unpushedReadMessages.length === 0 && - !this.isReadFilterPending && - !this.isPushPending)) { - this.outputStatus(); - } - } - } - push(message) { - this.trace('pushing to reader message of length ' + - (message instanceof Buffer ? message.length : null)); - this.canPush = false; - this.isPushPending = true; - process.nextTick(() => { - this.isPushPending = false; - /* If we have already output the status any later messages should be - * ignored, and can cause out-of-order operation errors higher up in the - * stack. Checking as late as possible here to avoid any race conditions. - */ - if (this.statusOutput) { - return; - } - this.listener.onReceiveMessage(message); - this.maybeOutputStatus(); - }); - } - tryPush(messageBytes) { - if (this.canPush) { - this.http2Stream.pause(); - this.push(messageBytes); - } - else { - this.trace('unpushedReadMessages.push message of length ' + messageBytes.length); - this.unpushedReadMessages.push(messageBytes); - } - } - handleTrailers(headers) { - this.serverEndedCall = true; - this.callEventTracker.onStreamEnd(true); - let headersString = ''; - for (const header of Object.keys(headers)) { - headersString += '\t\t' + header + ': ' + headers[header] + '\n'; - } - this.trace('Received server trailers:\n' + headersString); - let metadata; - try { - metadata = metadata_1.Metadata.fromHttp2Headers(headers); - } - catch (e) { - metadata = new metadata_1.Metadata(); - } - const metadataMap = metadata.getMap(); - let status; - if (typeof metadataMap['grpc-status'] === 'string') { - const receivedStatus = Number(metadataMap['grpc-status']); - this.trace('received status code ' + receivedStatus + ' from server'); - metadata.remove('grpc-status'); - let details = ''; - if (typeof metadataMap['grpc-message'] === 'string') { - try { - details = decodeURI(metadataMap['grpc-message']); - } - catch (e) { - details = metadataMap['grpc-message']; - } - metadata.remove('grpc-message'); - this.trace('received status details string "' + details + '" from server'); - } - status = { - code: receivedStatus, - details: details, - metadata: metadata - }; - } - else if (this.httpStatusCode) { - status = mapHttpStatusCode(this.httpStatusCode); - status.metadata = metadata; - } - else { - status = { - code: constants_1.Status.UNKNOWN, - details: 'No status information received', - metadata: metadata - }; - } - // This is a no-op if the call was already ended when handling headers. - this.endCall(status); - } - destroyHttp2Stream() { - var _a; - // The http2 stream could already have been destroyed if cancelWithStatus - // is called in response to an internal http2 error. - if (this.http2Stream.destroyed) { - return; - } - /* If the server ended the call, sending an RST_STREAM is redundant, so we - * just half close on the client side instead to finish closing the stream. - */ - if (this.serverEndedCall) { - this.http2Stream.end(); - } - else { - /* If the call has ended with an OK status, communicate that when closing - * the stream, partly to avoid a situation in which we detect an error - * RST_STREAM as a result after we have the status */ - let code; - if (((_a = this.finalStatus) === null || _a === void 0 ? void 0 : _a.code) === constants_1.Status.OK) { - code = http2.constants.NGHTTP2_NO_ERROR; - } - else { - code = http2.constants.NGHTTP2_CANCEL; - } - this.trace('close http2 stream with code ' + code); - this.http2Stream.close(code); - } - } - cancelWithStatus(status, details) { - this.trace('cancelWithStatus code: ' + status + ' details: "' + details + '"'); - this.endCall({ code: status, details, metadata: new metadata_1.Metadata() }); - } - getStatus() { - return this.finalStatus; - } - getPeer() { - return this.transport.getPeerName(); - } - getCallNumber() { - return this.callId; - } - getAuthContext() { - return this.transport.getAuthContext(); - } - startRead() { - /* If the stream has ended with an error, we should not emit any more - * messages and we should communicate that the stream has ended */ - if (this.finalStatus !== null && this.finalStatus.code !== constants_1.Status.OK) { - this.readsClosed = true; - this.maybeOutputStatus(); - return; - } - this.canPush = true; - if (this.unpushedReadMessages.length > 0) { - const nextMessage = this.unpushedReadMessages.shift(); - this.push(nextMessage); - return; - } - /* Only resume reading from the http2Stream if we don't have any pending - * messages to emit */ - this.http2Stream.resume(); - } - sendMessageWithContext(context, message) { - this.trace('write() called with message of length ' + message.length); - const cb = (error) => { - /* nextTick here ensures that no stream action can be taken in the call - * stack of the write callback, in order to hopefully work around - * https://github.com/nodejs/node/issues/49147 */ - process.nextTick(() => { - var _a; - let code = constants_1.Status.UNAVAILABLE; - if ((error === null || error === void 0 ? void 0 : error.code) === - 'ERR_STREAM_WRITE_AFTER_END') { - code = constants_1.Status.INTERNAL; - } - if (error) { - this.cancelWithStatus(code, `Write error: ${error.message}`); - } - (_a = context.callback) === null || _a === void 0 ? void 0 : _a.call(context); - }); - }; - this.trace('sending data chunk of length ' + message.length); - this.callEventTracker.addMessageSent(); - try { - this.http2Stream.write(message, cb); - } - catch (error) { - this.endCall({ - code: constants_1.Status.UNAVAILABLE, - details: `Write failed with error ${error.message}`, - metadata: new metadata_1.Metadata(), - }); - } - } - halfClose() { - this.trace('end() called'); - this.trace('calling end() on HTTP/2 stream'); - this.http2Stream.end(); - } -} -exports.Http2SubchannelCall = Http2SubchannelCall; -//# sourceMappingURL=subchannel-call.js.map - -/***/ }), - -/***/ 70098: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2022 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BaseSubchannelWrapper = void 0; -class BaseSubchannelWrapper { - constructor(child) { - this.child = child; - this.healthy = true; - this.healthListeners = new Set(); - this.refcount = 0; - this.dataWatchers = new Set(); - child.addHealthStateWatcher(childHealthy => { - /* A change to the child health state only affects this wrapper's overall - * health state if this wrapper is reporting healthy. */ - if (this.healthy) { - this.updateHealthListeners(); - } - }); - } - updateHealthListeners() { - for (const listener of this.healthListeners) { - listener(this.isHealthy()); - } - } - getConnectivityState() { - return this.child.getConnectivityState(); - } - addConnectivityStateListener(listener) { - this.child.addConnectivityStateListener(listener); - } - removeConnectivityStateListener(listener) { - this.child.removeConnectivityStateListener(listener); - } - startConnecting() { - this.child.startConnecting(); - } - getAddress() { - return this.child.getAddress(); - } - throttleKeepalive(newKeepaliveTime) { - this.child.throttleKeepalive(newKeepaliveTime); - } - ref() { - this.child.ref(); - this.refcount += 1; - } - unref() { - this.child.unref(); - this.refcount -= 1; - if (this.refcount === 0) { - this.destroy(); - } - } - destroy() { - for (const watcher of this.dataWatchers) { - watcher.destroy(); - } - } - getChannelzRef() { - return this.child.getChannelzRef(); - } - isHealthy() { - return this.healthy && this.child.isHealthy(); - } - addHealthStateWatcher(listener) { - this.healthListeners.add(listener); - } - removeHealthStateWatcher(listener) { - this.healthListeners.delete(listener); - } - addDataWatcher(dataWatcher) { - dataWatcher.setSubchannel(this.getRealSubchannel()); - this.dataWatchers.add(dataWatcher); - } - setHealthy(healthy) { - if (healthy !== this.healthy) { - this.healthy = healthy; - /* A change to this wrapper's health state only affects the overall - * reported health state if the child is healthy. */ - if (this.child.isHealthy()) { - this.updateHealthListeners(); - } - } - } - getRealSubchannel() { - return this.child.getRealSubchannel(); - } - realSubchannelEquals(other) { - return this.getRealSubchannel() === other.getRealSubchannel(); - } - getCallCredentials() { - return this.child.getCallCredentials(); - } - getChannel() { - return this.child.getChannel(); - } -} -exports.BaseSubchannelWrapper = BaseSubchannelWrapper; -//# sourceMappingURL=subchannel-interface.js.map - -/***/ }), - -/***/ 48695: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SubchannelPool = void 0; -exports.getSubchannelPool = getSubchannelPool; -const channel_options_1 = __nccwpck_require__(86793); -const subchannel_1 = __nccwpck_require__(68416); -const subchannel_address_1 = __nccwpck_require__(97021); -const uri_parser_1 = __nccwpck_require__(56027); -const transport_1 = __nccwpck_require__(33860); -// 10 seconds in milliseconds. This value is arbitrary. -/** - * The amount of time in between checks for dropping subchannels that have no - * other references - */ -const REF_CHECK_INTERVAL = 10000; -class SubchannelPool { - /** - * A pool of subchannels use for making connections. Subchannels with the - * exact same parameters will be reused. - */ - constructor() { - this.pool = Object.create(null); - /** - * A timer of a task performing a periodic subchannel cleanup. - */ - this.cleanupTimer = null; - } - /** - * Unrefs all unused subchannels and cancels the cleanup task if all - * subchannels have been unrefed. - */ - unrefUnusedSubchannels() { - let allSubchannelsUnrefed = true; - /* These objects are created with Object.create(null), so they do not - * have a prototype, which means that for (... in ...) loops over them - * do not need to be filtered */ - // eslint-disable-disable-next-line:forin - for (const channelTarget in this.pool) { - const subchannelObjArray = this.pool[channelTarget]; - const refedSubchannels = subchannelObjArray.filter(value => !value.subchannel.unrefIfOneRef()); - if (refedSubchannels.length > 0) { - allSubchannelsUnrefed = false; - } - /* For each subchannel in the pool, try to unref it if it has - * exactly one ref (which is the ref from the pool itself). If that - * does happen, remove the subchannel from the pool */ - this.pool[channelTarget] = refedSubchannels; - } - /* Currently we do not delete keys with empty values. If that results - * in significant memory usage we should change it. */ - // Cancel the cleanup task if all subchannels have been unrefed. - if (allSubchannelsUnrefed && this.cleanupTimer !== null) { - clearInterval(this.cleanupTimer); - this.cleanupTimer = null; - } - } - /** - * Ensures that the cleanup task is spawned. - */ - ensureCleanupTask() { - var _a, _b; - if (this.cleanupTimer === null) { - this.cleanupTimer = setInterval(() => { - this.unrefUnusedSubchannels(); - }, REF_CHECK_INTERVAL); - // Unref because this timer should not keep the event loop running. - // Call unref only if it exists to address electron/electron#21162 - (_b = (_a = this.cleanupTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - } - /** - * Get a subchannel if one already exists with exactly matching parameters. - * Otherwise, create and save a subchannel with those parameters. - * @param channelTarget - * @param subchannelTarget - * @param channelArguments - * @param channelCredentials - */ - getOrCreateSubchannel(channelTargetUri, subchannelTarget, channelArguments, channelCredentials) { - this.ensureCleanupTask(); - const channelTarget = (0, uri_parser_1.uriToString)(channelTargetUri); - if (channelTarget in this.pool) { - const subchannelObjArray = this.pool[channelTarget]; - for (const subchannelObj of subchannelObjArray) { - if ((0, subchannel_address_1.subchannelAddressEqual)(subchannelTarget, subchannelObj.subchannelAddress) && - (0, channel_options_1.channelOptionsEqual)(channelArguments, subchannelObj.channelArguments) && - channelCredentials._equals(subchannelObj.channelCredentials)) { - return subchannelObj.subchannel; - } - } - } - // If we get here, no matching subchannel was found - const subchannel = new subchannel_1.Subchannel(channelTargetUri, subchannelTarget, channelArguments, channelCredentials, new transport_1.Http2SubchannelConnector(channelTargetUri)); - if (!(channelTarget in this.pool)) { - this.pool[channelTarget] = []; - } - this.pool[channelTarget].push({ - subchannelAddress: subchannelTarget, - channelArguments, - channelCredentials, - subchannel, - }); - subchannel.ref(); - return subchannel; - } -} -exports.SubchannelPool = SubchannelPool; -const globalSubchannelPool = new SubchannelPool(); -/** - * Get either the global subchannel pool, or a new subchannel pool. - * @param global - */ -function getSubchannelPool(global) { - if (global) { - return globalSubchannelPool; - } - else { - return new SubchannelPool(); - } -} -//# sourceMappingURL=subchannel-pool.js.map - -/***/ }), - -/***/ 68416: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Subchannel = void 0; -const connectivity_state_1 = __nccwpck_require__(60778); -const backoff_timeout_1 = __nccwpck_require__(14643); -const logging = __nccwpck_require__(8536); -const constants_1 = __nccwpck_require__(68288); -const uri_parser_1 = __nccwpck_require__(56027); -const subchannel_address_1 = __nccwpck_require__(97021); -const channelz_1 = __nccwpck_require__(68198); -const single_subchannel_channel_1 = __nccwpck_require__(40701); -const TRACER_NAME = 'subchannel'; -/* setInterval and setTimeout only accept signed 32 bit integers. JS doesn't - * have a constant for the max signed 32 bit integer, so this is a simple way - * to calculate it */ -const KEEPALIVE_MAX_TIME_MS = ~(1 << 31); -class Subchannel { - /** - * A class representing a connection to a single backend. - * @param channelTarget The target string for the channel as a whole - * @param subchannelAddress The address for the backend that this subchannel - * will connect to - * @param options The channel options, plus any specific subchannel options - * for this subchannel - * @param credentials The channel credentials used to establish this - * connection - */ - constructor(channelTarget, subchannelAddress, options, credentials, connector) { - var _a; - this.channelTarget = channelTarget; - this.subchannelAddress = subchannelAddress; - this.options = options; - this.connector = connector; - /** - * The subchannel's current connectivity state. Invariant: `session` === `null` - * if and only if `connectivityState` is IDLE or TRANSIENT_FAILURE. - */ - this.connectivityState = connectivity_state_1.ConnectivityState.IDLE; - /** - * The underlying http2 session used to make requests. - */ - this.transport = null; - /** - * Indicates that the subchannel should transition from TRANSIENT_FAILURE to - * CONNECTING instead of IDLE when the backoff timeout ends. - */ - this.continueConnecting = false; - /** - * A list of listener functions that will be called whenever the connectivity - * state changes. Will be modified by `addConnectivityStateListener` and - * `removeConnectivityStateListener` - */ - this.stateListeners = new Set(); - /** - * Tracks channels and subchannel pools with references to this subchannel - */ - this.refcount = 0; - // Channelz info - this.channelzEnabled = true; - this.dataProducers = new Map(); - this.subchannelChannel = null; - const backoffOptions = { - initialDelay: options['grpc.initial_reconnect_backoff_ms'], - maxDelay: options['grpc.max_reconnect_backoff_ms'], - }; - this.backoffTimeout = new backoff_timeout_1.BackoffTimeout(() => { - this.handleBackoffTimer(); - }, backoffOptions); - this.backoffTimeout.unref(); - this.subchannelAddressString = (0, subchannel_address_1.subchannelAddressToString)(subchannelAddress); - this.keepaliveTime = (_a = options['grpc.keepalive_time_ms']) !== null && _a !== void 0 ? _a : -1; - if (options['grpc.enable_channelz'] === 0) { - this.channelzEnabled = false; - this.channelzTrace = new channelz_1.ChannelzTraceStub(); - this.callTracker = new channelz_1.ChannelzCallTrackerStub(); - this.childrenTracker = new channelz_1.ChannelzChildrenTrackerStub(); - this.streamTracker = new channelz_1.ChannelzCallTrackerStub(); - } - else { - this.channelzTrace = new channelz_1.ChannelzTrace(); - this.callTracker = new channelz_1.ChannelzCallTracker(); - this.childrenTracker = new channelz_1.ChannelzChildrenTracker(); - this.streamTracker = new channelz_1.ChannelzCallTracker(); - } - this.channelzRef = (0, channelz_1.registerChannelzSubchannel)(this.subchannelAddressString, () => this.getChannelzInfo(), this.channelzEnabled); - this.channelzTrace.addTrace('CT_INFO', 'Subchannel created'); - this.trace('Subchannel constructed with options ' + - JSON.stringify(options, undefined, 2)); - this.secureConnector = credentials._createSecureConnector(channelTarget, options); - } - getChannelzInfo() { - return { - state: this.connectivityState, - trace: this.channelzTrace, - callTracker: this.callTracker, - children: this.childrenTracker.getChildLists(), - target: this.subchannelAddressString, - }; - } - trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '(' + - this.channelzRef.id + - ') ' + - this.subchannelAddressString + - ' ' + - text); - } - refTrace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, 'subchannel_refcount', '(' + - this.channelzRef.id + - ') ' + - this.subchannelAddressString + - ' ' + - text); - } - handleBackoffTimer() { - if (this.continueConnecting) { - this.transitionToState([connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE], connectivity_state_1.ConnectivityState.CONNECTING); - } - else { - this.transitionToState([connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE], connectivity_state_1.ConnectivityState.IDLE); - } - } - /** - * Start a backoff timer with the current nextBackoff timeout - */ - startBackoff() { - this.backoffTimeout.runOnce(); - } - stopBackoff() { - this.backoffTimeout.stop(); - this.backoffTimeout.reset(); - } - startConnectingInternal() { - let options = this.options; - if (options['grpc.keepalive_time_ms']) { - const adjustedKeepaliveTime = Math.min(this.keepaliveTime, KEEPALIVE_MAX_TIME_MS); - options = Object.assign(Object.assign({}, options), { 'grpc.keepalive_time_ms': adjustedKeepaliveTime }); - } - this.connector - .connect(this.subchannelAddress, this.secureConnector, options) - .then(transport => { - if (this.transitionToState([connectivity_state_1.ConnectivityState.CONNECTING], connectivity_state_1.ConnectivityState.READY)) { - this.transport = transport; - if (this.channelzEnabled) { - this.childrenTracker.refChild(transport.getChannelzRef()); - } - transport.addDisconnectListener(tooManyPings => { - this.transitionToState([connectivity_state_1.ConnectivityState.READY], connectivity_state_1.ConnectivityState.IDLE); - if (tooManyPings && this.keepaliveTime > 0) { - this.keepaliveTime *= 2; - logging.log(constants_1.LogVerbosity.ERROR, `Connection to ${(0, uri_parser_1.uriToString)(this.channelTarget)} at ${this.subchannelAddressString} rejected by server because of excess pings. Increasing ping interval to ${this.keepaliveTime} ms`); - } - }); - } - else { - /* If we can't transition from CONNECTING to READY here, we will - * not be using this transport, so release its resources. */ - transport.shutdown(); - } - }, error => { - this.transitionToState([connectivity_state_1.ConnectivityState.CONNECTING], connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, `${error}`); - }); - } - /** - * Initiate a state transition from any element of oldStates to the new - * state. If the current connectivityState is not in oldStates, do nothing. - * @param oldStates The set of states to transition from - * @param newState The state to transition to - * @returns True if the state changed, false otherwise - */ - transitionToState(oldStates, newState, errorMessage) { - var _a, _b; - if (oldStates.indexOf(this.connectivityState) === -1) { - return false; - } - if (errorMessage) { - this.trace(connectivity_state_1.ConnectivityState[this.connectivityState] + - ' -> ' + - connectivity_state_1.ConnectivityState[newState] + - ' with error "' + errorMessage + '"'); - } - else { - this.trace(connectivity_state_1.ConnectivityState[this.connectivityState] + - ' -> ' + - connectivity_state_1.ConnectivityState[newState]); - } - if (this.channelzEnabled) { - this.channelzTrace.addTrace('CT_INFO', 'Connectivity state change to ' + connectivity_state_1.ConnectivityState[newState]); - } - const previousState = this.connectivityState; - this.connectivityState = newState; - switch (newState) { - case connectivity_state_1.ConnectivityState.READY: - this.stopBackoff(); - break; - case connectivity_state_1.ConnectivityState.CONNECTING: - this.startBackoff(); - this.startConnectingInternal(); - this.continueConnecting = false; - break; - case connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE: - if (this.channelzEnabled && this.transport) { - this.childrenTracker.unrefChild(this.transport.getChannelzRef()); - } - (_a = this.transport) === null || _a === void 0 ? void 0 : _a.shutdown(); - this.transport = null; - /* If the backoff timer has already ended by the time we get to the - * TRANSIENT_FAILURE state, we want to immediately transition out of - * TRANSIENT_FAILURE as though the backoff timer is ending right now */ - if (!this.backoffTimeout.isRunning()) { - process.nextTick(() => { - this.handleBackoffTimer(); - }); - } - break; - case connectivity_state_1.ConnectivityState.IDLE: - if (this.channelzEnabled && this.transport) { - this.childrenTracker.unrefChild(this.transport.getChannelzRef()); - } - (_b = this.transport) === null || _b === void 0 ? void 0 : _b.shutdown(); - this.transport = null; - break; - default: - throw new Error(`Invalid state: unknown ConnectivityState ${newState}`); - } - for (const listener of this.stateListeners) { - listener(this, previousState, newState, this.keepaliveTime, errorMessage); - } - return true; - } - ref() { - this.refTrace('refcount ' + this.refcount + ' -> ' + (this.refcount + 1)); - this.refcount += 1; - } - unref() { - this.refTrace('refcount ' + this.refcount + ' -> ' + (this.refcount - 1)); - this.refcount -= 1; - if (this.refcount === 0) { - this.channelzTrace.addTrace('CT_INFO', 'Shutting down'); - (0, channelz_1.unregisterChannelzRef)(this.channelzRef); - this.secureConnector.destroy(); - process.nextTick(() => { - this.transitionToState([connectivity_state_1.ConnectivityState.CONNECTING, connectivity_state_1.ConnectivityState.READY], connectivity_state_1.ConnectivityState.IDLE); - }); - } - } - unrefIfOneRef() { - if (this.refcount === 1) { - this.unref(); - return true; - } - return false; - } - createCall(metadata, host, method, listener) { - if (!this.transport) { - throw new Error('Cannot create call, subchannel not READY'); - } - let statsTracker; - if (this.channelzEnabled) { - this.callTracker.addCallStarted(); - this.streamTracker.addCallStarted(); - statsTracker = { - onCallEnd: status => { - if (status.code === constants_1.Status.OK) { - this.callTracker.addCallSucceeded(); - } - else { - this.callTracker.addCallFailed(); - } - }, - }; - } - else { - statsTracker = {}; - } - return this.transport.createCall(metadata, host, method, listener, statsTracker); - } - /** - * If the subchannel is currently IDLE, start connecting and switch to the - * CONNECTING state. If the subchannel is current in TRANSIENT_FAILURE, - * the next time it would transition to IDLE, start connecting again instead. - * Otherwise, do nothing. - */ - startConnecting() { - process.nextTick(() => { - /* First, try to transition from IDLE to connecting. If that doesn't happen - * because the state is not currently IDLE, check if it is - * TRANSIENT_FAILURE, and if so indicate that it should go back to - * connecting after the backoff timer ends. Otherwise do nothing */ - if (!this.transitionToState([connectivity_state_1.ConnectivityState.IDLE], connectivity_state_1.ConnectivityState.CONNECTING)) { - if (this.connectivityState === connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { - this.continueConnecting = true; - } - } - }); - } - /** - * Get the subchannel's current connectivity state. - */ - getConnectivityState() { - return this.connectivityState; - } - /** - * Add a listener function to be called whenever the subchannel's - * connectivity state changes. - * @param listener - */ - addConnectivityStateListener(listener) { - this.stateListeners.add(listener); - } - /** - * Remove a listener previously added with `addConnectivityStateListener` - * @param listener A reference to a function previously passed to - * `addConnectivityStateListener` - */ - removeConnectivityStateListener(listener) { - this.stateListeners.delete(listener); - } - /** - * Reset the backoff timeout, and immediately start connecting if in backoff. - */ - resetBackoff() { - process.nextTick(() => { - this.backoffTimeout.reset(); - this.transitionToState([connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE], connectivity_state_1.ConnectivityState.CONNECTING); - }); - } - getAddress() { - return this.subchannelAddressString; - } - getChannelzRef() { - return this.channelzRef; - } - isHealthy() { - return true; - } - addHealthStateWatcher(listener) { - // Do nothing with the listener - } - removeHealthStateWatcher(listener) { - // Do nothing with the listener - } - getRealSubchannel() { - return this; - } - realSubchannelEquals(other) { - return other.getRealSubchannel() === this; - } - throttleKeepalive(newKeepaliveTime) { - if (newKeepaliveTime > this.keepaliveTime) { - this.keepaliveTime = newKeepaliveTime; - } - } - getCallCredentials() { - return this.secureConnector.getCallCredentials(); - } - getChannel() { - if (!this.subchannelChannel) { - this.subchannelChannel = new single_subchannel_channel_1.SingleSubchannelChannel(this, this.channelTarget, this.options); - } - return this.subchannelChannel; - } - addDataWatcher(dataWatcher) { - throw new Error('Not implemented'); - } - getOrCreateDataProducer(name, createDataProducer) { - const existingProducer = this.dataProducers.get(name); - if (existingProducer) { - return existingProducer; - } - const newProducer = createDataProducer(this); - this.dataProducers.set(name, newProducer); - return newProducer; - } - removeDataProducer(name) { - this.dataProducers.delete(name); - } -} -exports.Subchannel = Subchannel; -//# sourceMappingURL=subchannel.js.map - -/***/ }), - -/***/ 68876: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2019 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CIPHER_SUITES = void 0; -exports.getDefaultRootsData = getDefaultRootsData; -const fs = __nccwpck_require__(79896); -exports.CIPHER_SUITES = process.env.GRPC_SSL_CIPHER_SUITES; -const DEFAULT_ROOTS_FILE_PATH = process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH; -let defaultRootsData = null; -function getDefaultRootsData() { - if (DEFAULT_ROOTS_FILE_PATH) { - if (defaultRootsData === null) { - defaultRootsData = fs.readFileSync(DEFAULT_ROOTS_FILE_PATH); - } - return defaultRootsData; - } - return null; -} -//# sourceMappingURL=tls-helpers.js.map - -/***/ }), - -/***/ 33860: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/* - * Copyright 2023 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Http2SubchannelConnector = void 0; -const http2 = __nccwpck_require__(85675); -const tls_1 = __nccwpck_require__(64756); -const channelz_1 = __nccwpck_require__(68198); -const constants_1 = __nccwpck_require__(68288); -const http_proxy_1 = __nccwpck_require__(18954); -const logging = __nccwpck_require__(8536); -const resolver_1 = __nccwpck_require__(76255); -const subchannel_address_1 = __nccwpck_require__(97021); -const uri_parser_1 = __nccwpck_require__(56027); -const net = __nccwpck_require__(69278); -const subchannel_call_1 = __nccwpck_require__(17953); -const call_number_1 = __nccwpck_require__(35675); -const TRACER_NAME = 'transport'; -const FLOW_CONTROL_TRACER_NAME = 'transport_flowctrl'; -const clientVersion = (__nccwpck_require__(9943)/* .version */ .rE); -const { HTTP2_HEADER_AUTHORITY, HTTP2_HEADER_CONTENT_TYPE, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_TE, HTTP2_HEADER_USER_AGENT, } = http2.constants; -const KEEPALIVE_TIMEOUT_MS = 20000; -const tooManyPingsData = Buffer.from('too_many_pings', 'ascii'); -class Http2Transport { - constructor(session, subchannelAddress, options, - /** - * Name of the remote server, if it is not the same as the subchannel - * address, i.e. if connecting through an HTTP CONNECT proxy. - */ - remoteName) { - this.session = session; - this.options = options; - this.remoteName = remoteName; - /** - * Timer reference indicating when to send the next ping or when the most recent ping will be considered lost. - */ - this.keepaliveTimer = null; - /** - * Indicates that the keepalive timer ran out while there were no active - * calls, and a ping should be sent the next time a call starts. - */ - this.pendingSendKeepalivePing = false; - this.activeCalls = new Set(); - this.disconnectListeners = []; - this.disconnectHandled = false; - this.channelzEnabled = true; - this.keepalivesSent = 0; - this.messagesSent = 0; - this.messagesReceived = 0; - this.lastMessageSentTimestamp = null; - this.lastMessageReceivedTimestamp = null; - /* Populate subchannelAddressString and channelzRef before doing anything - * else, because they are used in the trace methods. */ - this.subchannelAddressString = (0, subchannel_address_1.subchannelAddressToString)(subchannelAddress); - if (options['grpc.enable_channelz'] === 0) { - this.channelzEnabled = false; - this.streamTracker = new channelz_1.ChannelzCallTrackerStub(); - } - else { - this.streamTracker = new channelz_1.ChannelzCallTracker(); - } - this.channelzRef = (0, channelz_1.registerChannelzSocket)(this.subchannelAddressString, () => this.getChannelzInfo(), this.channelzEnabled); - // Build user-agent string. - this.userAgent = [ - options['grpc.primary_user_agent'], - `grpc-node-js/${clientVersion}`, - options['grpc.secondary_user_agent'], - ] - .filter(e => e) - .join(' '); // remove falsey values first - if ('grpc.keepalive_time_ms' in options) { - this.keepaliveTimeMs = options['grpc.keepalive_time_ms']; - } - else { - this.keepaliveTimeMs = -1; - } - if ('grpc.keepalive_timeout_ms' in options) { - this.keepaliveTimeoutMs = options['grpc.keepalive_timeout_ms']; - } - else { - this.keepaliveTimeoutMs = KEEPALIVE_TIMEOUT_MS; - } - if ('grpc.keepalive_permit_without_calls' in options) { - this.keepaliveWithoutCalls = - options['grpc.keepalive_permit_without_calls'] === 1; - } - else { - this.keepaliveWithoutCalls = false; - } - session.once('close', () => { - this.trace('session closed'); - this.handleDisconnect(); - }); - session.once('goaway', (errorCode, lastStreamID, opaqueData) => { - let tooManyPings = false; - /* See the last paragraph of - * https://github.com/grpc/proposal/blob/master/A8-client-side-keepalive.md#basic-keepalive */ - if (errorCode === http2.constants.NGHTTP2_ENHANCE_YOUR_CALM && - opaqueData && - opaqueData.equals(tooManyPingsData)) { - tooManyPings = true; - } - this.trace('connection closed by GOAWAY with code ' + - errorCode + - ' and data ' + - (opaqueData === null || opaqueData === void 0 ? void 0 : opaqueData.toString())); - this.reportDisconnectToOwner(tooManyPings); - }); - session.once('error', error => { - this.trace('connection closed with error ' + error.message); - this.handleDisconnect(); - }); - session.socket.once('close', (hadError) => { - this.trace('connection closed. hadError=' + hadError); - this.handleDisconnect(); - }); - if (logging.isTracerEnabled(TRACER_NAME)) { - session.on('remoteSettings', (settings) => { - this.trace('new settings received' + - (this.session !== session ? ' on the old connection' : '') + - ': ' + - JSON.stringify(settings)); - }); - session.on('localSettings', (settings) => { - this.trace('local settings acknowledged by remote' + - (this.session !== session ? ' on the old connection' : '') + - ': ' + - JSON.stringify(settings)); - }); - } - /* Start the keepalive timer last, because this can trigger trace logs, - * which should only happen after everything else is set up. */ - if (this.keepaliveWithoutCalls) { - this.maybeStartKeepalivePingTimer(); - } - if (session.socket instanceof tls_1.TLSSocket) { - this.authContext = { - transportSecurityType: 'ssl', - sslPeerCertificate: session.socket.getPeerCertificate() - }; - } - else { - this.authContext = {}; - } - } - getChannelzInfo() { - var _a, _b, _c; - const sessionSocket = this.session.socket; - const remoteAddress = sessionSocket.remoteAddress - ? (0, subchannel_address_1.stringToSubchannelAddress)(sessionSocket.remoteAddress, sessionSocket.remotePort) - : null; - const localAddress = sessionSocket.localAddress - ? (0, subchannel_address_1.stringToSubchannelAddress)(sessionSocket.localAddress, sessionSocket.localPort) - : null; - let tlsInfo; - if (this.session.encrypted) { - const tlsSocket = sessionSocket; - const cipherInfo = tlsSocket.getCipher(); - const certificate = tlsSocket.getCertificate(); - const peerCertificate = tlsSocket.getPeerCertificate(); - tlsInfo = { - cipherSuiteStandardName: (_a = cipherInfo.standardName) !== null && _a !== void 0 ? _a : null, - cipherSuiteOtherName: cipherInfo.standardName ? null : cipherInfo.name, - localCertificate: certificate && 'raw' in certificate ? certificate.raw : null, - remoteCertificate: peerCertificate && 'raw' in peerCertificate - ? peerCertificate.raw - : null, - }; - } - else { - tlsInfo = null; - } - const socketInfo = { - remoteAddress: remoteAddress, - localAddress: localAddress, - security: tlsInfo, - remoteName: this.remoteName, - streamsStarted: this.streamTracker.callsStarted, - streamsSucceeded: this.streamTracker.callsSucceeded, - streamsFailed: this.streamTracker.callsFailed, - messagesSent: this.messagesSent, - messagesReceived: this.messagesReceived, - keepAlivesSent: this.keepalivesSent, - lastLocalStreamCreatedTimestamp: this.streamTracker.lastCallStartedTimestamp, - lastRemoteStreamCreatedTimestamp: null, - lastMessageSentTimestamp: this.lastMessageSentTimestamp, - lastMessageReceivedTimestamp: this.lastMessageReceivedTimestamp, - localFlowControlWindow: (_b = this.session.state.localWindowSize) !== null && _b !== void 0 ? _b : null, - remoteFlowControlWindow: (_c = this.session.state.remoteWindowSize) !== null && _c !== void 0 ? _c : null, - }; - return socketInfo; - } - trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '(' + - this.channelzRef.id + - ') ' + - this.subchannelAddressString + - ' ' + - text); - } - keepaliveTrace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, 'keepalive', '(' + - this.channelzRef.id + - ') ' + - this.subchannelAddressString + - ' ' + - text); - } - flowControlTrace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, FLOW_CONTROL_TRACER_NAME, '(' + - this.channelzRef.id + - ') ' + - this.subchannelAddressString + - ' ' + - text); - } - internalsTrace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, 'transport_internals', '(' + - this.channelzRef.id + - ') ' + - this.subchannelAddressString + - ' ' + - text); - } - /** - * Indicate to the owner of this object that this transport should no longer - * be used. That happens if the connection drops, or if the server sends a - * GOAWAY. - * @param tooManyPings If true, this was triggered by a GOAWAY with data - * indicating that the session was closed becaues the client sent too many - * pings. - * @returns - */ - reportDisconnectToOwner(tooManyPings) { - if (this.disconnectHandled) { - return; - } - this.disconnectHandled = true; - this.disconnectListeners.forEach(listener => listener(tooManyPings)); - } - /** - * Handle connection drops, but not GOAWAYs. - */ - handleDisconnect() { - this.clearKeepaliveTimeout(); - this.reportDisconnectToOwner(false); - for (const call of this.activeCalls) { - call.onDisconnect(); - } - // Wait an event loop cycle before destroying the connection - setImmediate(() => { - this.session.destroy(); - }); - } - addDisconnectListener(listener) { - this.disconnectListeners.push(listener); - } - canSendPing() { - return (!this.session.destroyed && - this.keepaliveTimeMs > 0 && - (this.keepaliveWithoutCalls || this.activeCalls.size > 0)); - } - maybeSendPing() { - var _a, _b; - if (!this.canSendPing()) { - this.pendingSendKeepalivePing = true; - return; - } - if (this.keepaliveTimer) { - console.error('keepaliveTimeout is not null'); - return; - } - if (this.channelzEnabled) { - this.keepalivesSent += 1; - } - this.keepaliveTrace('Sending ping with timeout ' + this.keepaliveTimeoutMs + 'ms'); - this.keepaliveTimer = setTimeout(() => { - this.keepaliveTimer = null; - this.keepaliveTrace('Ping timeout passed without response'); - this.handleDisconnect(); - }, this.keepaliveTimeoutMs); - (_b = (_a = this.keepaliveTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - let pingSendError = ''; - try { - const pingSentSuccessfully = this.session.ping((err, duration, payload) => { - this.clearKeepaliveTimeout(); - if (err) { - this.keepaliveTrace('Ping failed with error ' + err.message); - this.handleDisconnect(); - } - else { - this.keepaliveTrace('Received ping response'); - this.maybeStartKeepalivePingTimer(); - } - }); - if (!pingSentSuccessfully) { - pingSendError = 'Ping returned false'; - } - } - catch (e) { - // grpc/grpc-node#2139 - pingSendError = (e instanceof Error ? e.message : '') || 'Unknown error'; - } - if (pingSendError) { - this.keepaliveTrace('Ping send failed: ' + pingSendError); - this.handleDisconnect(); - } - } - /** - * Starts the keepalive ping timer if appropriate. If the timer already ran - * out while there were no active requests, instead send a ping immediately. - * If the ping timer is already running or a ping is currently in flight, - * instead do nothing and wait for them to resolve. - */ - maybeStartKeepalivePingTimer() { - var _a, _b; - if (!this.canSendPing()) { - return; - } - if (this.pendingSendKeepalivePing) { - this.pendingSendKeepalivePing = false; - this.maybeSendPing(); - } - else if (!this.keepaliveTimer) { - this.keepaliveTrace('Starting keepalive timer for ' + this.keepaliveTimeMs + 'ms'); - this.keepaliveTimer = setTimeout(() => { - this.keepaliveTimer = null; - this.maybeSendPing(); - }, this.keepaliveTimeMs); - (_b = (_a = this.keepaliveTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); - } - /* Otherwise, there is already either a keepalive timer or a ping pending, - * wait for those to resolve. */ - } - /** - * Clears whichever keepalive timeout is currently active, if any. - */ - clearKeepaliveTimeout() { - if (this.keepaliveTimer) { - clearTimeout(this.keepaliveTimer); - this.keepaliveTimer = null; - } - } - removeActiveCall(call) { - this.activeCalls.delete(call); - if (this.activeCalls.size === 0) { - this.session.unref(); - } - } - addActiveCall(call) { - this.activeCalls.add(call); - if (this.activeCalls.size === 1) { - this.session.ref(); - if (!this.keepaliveWithoutCalls) { - this.maybeStartKeepalivePingTimer(); - } - } - } - createCall(metadata, host, method, listener, subchannelCallStatsTracker) { - const headers = metadata.toHttp2Headers(); - headers[HTTP2_HEADER_AUTHORITY] = host; - headers[HTTP2_HEADER_USER_AGENT] = this.userAgent; - headers[HTTP2_HEADER_CONTENT_TYPE] = 'application/grpc'; - headers[HTTP2_HEADER_METHOD] = 'POST'; - headers[HTTP2_HEADER_PATH] = method; - headers[HTTP2_HEADER_TE] = 'trailers'; - let http2Stream; - /* In theory, if an error is thrown by session.request because session has - * become unusable (e.g. because it has received a goaway), this subchannel - * should soon see the corresponding close or goaway event anyway and leave - * READY. But we have seen reports that this does not happen - * (https://github.com/googleapis/nodejs-firestore/issues/1023#issuecomment-653204096) - * so for defense in depth, we just discard the session when we see an - * error here. - */ - try { - http2Stream = this.session.request(headers); - } - catch (e) { - this.handleDisconnect(); - throw e; - } - this.flowControlTrace('local window size: ' + - this.session.state.localWindowSize + - ' remote window size: ' + - this.session.state.remoteWindowSize); - this.internalsTrace('session.closed=' + - this.session.closed + - ' session.destroyed=' + - this.session.destroyed + - ' session.socket.destroyed=' + - this.session.socket.destroyed); - let eventTracker; - // eslint-disable-next-line prefer-const - let call; - if (this.channelzEnabled) { - this.streamTracker.addCallStarted(); - eventTracker = { - addMessageSent: () => { - var _a; - this.messagesSent += 1; - this.lastMessageSentTimestamp = new Date(); - (_a = subchannelCallStatsTracker.addMessageSent) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker); - }, - addMessageReceived: () => { - var _a; - this.messagesReceived += 1; - this.lastMessageReceivedTimestamp = new Date(); - (_a = subchannelCallStatsTracker.addMessageReceived) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker); - }, - onCallEnd: status => { - var _a; - (_a = subchannelCallStatsTracker.onCallEnd) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker, status); - this.removeActiveCall(call); - }, - onStreamEnd: success => { - var _a; - if (success) { - this.streamTracker.addCallSucceeded(); - } - else { - this.streamTracker.addCallFailed(); - } - (_a = subchannelCallStatsTracker.onStreamEnd) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker, success); - }, - }; - } - else { - eventTracker = { - addMessageSent: () => { - var _a; - (_a = subchannelCallStatsTracker.addMessageSent) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker); - }, - addMessageReceived: () => { - var _a; - (_a = subchannelCallStatsTracker.addMessageReceived) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker); - }, - onCallEnd: status => { - var _a; - (_a = subchannelCallStatsTracker.onCallEnd) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker, status); - this.removeActiveCall(call); - }, - onStreamEnd: success => { - var _a; - (_a = subchannelCallStatsTracker.onStreamEnd) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker, success); - }, - }; - } - call = new subchannel_call_1.Http2SubchannelCall(http2Stream, eventTracker, listener, this, (0, call_number_1.getNextCallNumber)()); - this.addActiveCall(call); - return call; - } - getChannelzRef() { - return this.channelzRef; - } - getPeerName() { - return this.subchannelAddressString; - } - getOptions() { - return this.options; - } - getAuthContext() { - return this.authContext; - } - shutdown() { - this.session.close(); - (0, channelz_1.unregisterChannelzRef)(this.channelzRef); - } -} -class Http2SubchannelConnector { - constructor(channelTarget) { - this.channelTarget = channelTarget; - this.session = null; - this.isShutdown = false; - } - trace(text) { - logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, (0, uri_parser_1.uriToString)(this.channelTarget) + ' ' + text); - } - createSession(secureConnectResult, address, options) { - if (this.isShutdown) { - return Promise.reject(); - } - if (secureConnectResult.socket.closed) { - return Promise.reject('Connection closed before starting HTTP/2 handshake'); - } - return new Promise((resolve, reject) => { - var _a, _b, _c, _d, _e, _f, _g, _h; - let remoteName = null; - let realTarget = this.channelTarget; - if ('grpc.http_connect_target' in options) { - const parsedTarget = (0, uri_parser_1.parseUri)(options['grpc.http_connect_target']); - if (parsedTarget) { - realTarget = parsedTarget; - remoteName = (0, uri_parser_1.uriToString)(parsedTarget); - } - } - const scheme = secureConnectResult.secure ? 'https' : 'http'; - const targetPath = (0, resolver_1.getDefaultAuthority)(realTarget); - const closeHandler = () => { - var _a; - (_a = this.session) === null || _a === void 0 ? void 0 : _a.destroy(); - this.session = null; - // Leave time for error event to happen before rejecting - setImmediate(() => { - if (!reportedError) { - reportedError = true; - reject(`${errorMessage.trim()} (${new Date().toISOString()})`); - } - }); - }; - const errorHandler = (error) => { - var _a; - (_a = this.session) === null || _a === void 0 ? void 0 : _a.destroy(); - errorMessage = error.message; - this.trace('connection failed with error ' + errorMessage); - if (!reportedError) { - reportedError = true; - reject(`${errorMessage} (${new Date().toISOString()})`); - } - }; - const sessionOptions = { - createConnection: (authority, option) => { - return secureConnectResult.socket; - }, - settings: { - initialWindowSize: (_d = (_a = options['grpc-node.flow_control_window']) !== null && _a !== void 0 ? _a : (_c = (_b = http2.getDefaultSettings) === null || _b === void 0 ? void 0 : _b.call(http2)) === null || _c === void 0 ? void 0 : _c.initialWindowSize) !== null && _d !== void 0 ? _d : 65535, - }, - maxSendHeaderBlockLength: Number.MAX_SAFE_INTEGER, - /* By default, set a very large max session memory limit, to effectively - * disable enforcement of the limit. Some testing indicates that Node's - * behavior degrades badly when this limit is reached, so we solve that - * by disabling the check entirely. */ - maxSessionMemory: (_e = options['grpc-node.max_session_memory']) !== null && _e !== void 0 ? _e : Number.MAX_SAFE_INTEGER - }; - const session = http2.connect(`${scheme}://${targetPath}`, sessionOptions); - // Prepare window size configuration for remoteSettings handler - const defaultWin = (_h = (_g = (_f = http2.getDefaultSettings) === null || _f === void 0 ? void 0 : _f.call(http2)) === null || _g === void 0 ? void 0 : _g.initialWindowSize) !== null && _h !== void 0 ? _h : 65535; // 65 535 B - const connWin = options['grpc-node.flow_control_window']; - this.session = session; - let errorMessage = 'Failed to connect'; - let reportedError = false; - session.unref(); - session.once('remoteSettings', () => { - var _a; - // Send WINDOW_UPDATE now to avoid 65 KB start-window stall. - if (connWin && connWin > defaultWin) { - try { - // Node ≥ 14.18 - session.setLocalWindowSize(connWin); - } - catch (_b) { - // Older Node: bump by the delta - const delta = connWin - ((_a = session.state.localWindowSize) !== null && _a !== void 0 ? _a : defaultWin); - if (delta > 0) - session.incrementWindowSize(delta); - } - } - session.removeAllListeners(); - secureConnectResult.socket.removeListener('close', closeHandler); - secureConnectResult.socket.removeListener('error', errorHandler); - resolve(new Http2Transport(session, address, options, remoteName)); - this.session = null; - }); - session.once('close', closeHandler); - session.once('error', errorHandler); - secureConnectResult.socket.once('close', closeHandler); - secureConnectResult.socket.once('error', errorHandler); - }); - } - tcpConnect(address, options) { - return (0, http_proxy_1.getProxiedConnection)(address, options).then(proxiedSocket => { - if (proxiedSocket) { - return proxiedSocket; - } - else { - return new Promise((resolve, reject) => { - const closeCallback = () => { - reject(new Error('Socket closed')); - }; - const errorCallback = (error) => { - reject(error); - }; - const socket = net.connect(address, () => { - socket.removeListener('close', closeCallback); - socket.removeListener('error', errorCallback); - resolve(socket); - }); - socket.once('close', closeCallback); - socket.once('error', errorCallback); - }); - } - }); - } - async connect(address, secureConnector, options) { - if (this.isShutdown) { - return Promise.reject(); - } - let tcpConnection = null; - let secureConnectResult = null; - const addressString = (0, subchannel_address_1.subchannelAddressToString)(address); - try { - this.trace(addressString + ' Waiting for secureConnector to be ready'); - await secureConnector.waitForReady(); - this.trace(addressString + ' secureConnector is ready'); - tcpConnection = await this.tcpConnect(address, options); - tcpConnection.setNoDelay(); - this.trace(addressString + ' Established TCP connection'); - secureConnectResult = await secureConnector.connect(tcpConnection); - this.trace(addressString + ' Established secure connection'); - return this.createSession(secureConnectResult, address, options); - } - catch (e) { - tcpConnection === null || tcpConnection === void 0 ? void 0 : tcpConnection.destroy(); - secureConnectResult === null || secureConnectResult === void 0 ? void 0 : secureConnectResult.socket.destroy(); - throw e; - } - } - shutdown() { - var _a; - this.isShutdown = true; - (_a = this.session) === null || _a === void 0 ? void 0 : _a.close(); - this.session = null; - } -} -exports.Http2SubchannelConnector = Http2SubchannelConnector; -//# sourceMappingURL=transport.js.map - -/***/ }), - -/***/ 56027: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -/* - * Copyright 2020 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.parseUri = parseUri; -exports.splitHostPort = splitHostPort; -exports.combineHostPort = combineHostPort; -exports.uriToString = uriToString; -/* - * The groups correspond to URI parts as follows: - * 1. scheme - * 2. authority - * 3. path - */ -const URI_REGEX = /^(?:([A-Za-z0-9+.-]+):)?(?:\/\/([^/]*)\/)?(.+)$/; -function parseUri(uriString) { - const parsedUri = URI_REGEX.exec(uriString); - if (parsedUri === null) { - return null; - } - return { - scheme: parsedUri[1], - authority: parsedUri[2], - path: parsedUri[3], - }; -} -const NUMBER_REGEX = /^\d+$/; -function splitHostPort(path) { - if (path.startsWith('[')) { - const hostEnd = path.indexOf(']'); - if (hostEnd === -1) { - return null; - } - const host = path.substring(1, hostEnd); - /* Only an IPv6 address should be in bracketed notation, and an IPv6 - * address should have at least one colon */ - if (host.indexOf(':') === -1) { - return null; - } - if (path.length > hostEnd + 1) { - if (path[hostEnd + 1] === ':') { - const portString = path.substring(hostEnd + 2); - if (NUMBER_REGEX.test(portString)) { - return { - host: host, - port: +portString, - }; - } - else { - return null; - } - } - else { - return null; - } - } - else { - return { - host, - }; - } - } - else { - const splitPath = path.split(':'); - /* Exactly one colon means that this is host:port. Zero colons means that - * there is no port. And multiple colons means that this is a bare IPv6 - * address with no port */ - if (splitPath.length === 2) { - if (NUMBER_REGEX.test(splitPath[1])) { - return { - host: splitPath[0], - port: +splitPath[1], - }; - } - else { - return null; - } - } - else { - return { - host: path, - }; - } - } -} -function combineHostPort(hostPort) { - if (hostPort.port === undefined) { - return hostPort.host; - } - else { - // Only an IPv6 host should include a colon - if (hostPort.host.includes(':')) { - return `[${hostPort.host}]:${hostPort.port}`; - } - else { - return `${hostPort.host}:${hostPort.port}`; - } - } -} -function uriToString(uri) { - let result = ''; - if (uri.scheme !== undefined) { - result += uri.scheme + ':'; - } - if (uri.authority !== undefined) { - result += '//' + uri.authority + '/'; - } - result += uri.path; - return result; -} -//# sourceMappingURL=uri-parser.js.map - -/***/ }), - -/***/ 73066: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; -var __webpack_unused_export__; - -/** - * @license - * Copyright 2018 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -__webpack_unused_export__ = ({ value: true }); -__webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = exports.Yi = __webpack_unused_export__ = exports.Ib = __webpack_unused_export__ = __webpack_unused_export__ = void 0; -const camelCase = __nccwpck_require__(14277); -const Protobuf = __nccwpck_require__(23928); -const descriptor = __nccwpck_require__(6412); -const util_1 = __nccwpck_require__(25972); -const Long = __nccwpck_require__(66390); -__webpack_unused_export__ = Long; -function isAnyExtension(obj) { - return ('@type' in obj) && (typeof obj['@type'] === 'string'); -} -__webpack_unused_export__ = isAnyExtension; -var IdempotencyLevel; -(function (IdempotencyLevel) { - IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = "IDEMPOTENCY_UNKNOWN"; - IdempotencyLevel["NO_SIDE_EFFECTS"] = "NO_SIDE_EFFECTS"; - IdempotencyLevel["IDEMPOTENT"] = "IDEMPOTENT"; -})(IdempotencyLevel = exports.Ib || (exports.Ib = {})); -const descriptorOptions = { - longs: String, - enums: String, - bytes: String, - defaults: true, - oneofs: true, - json: true, -}; -function joinName(baseName, name) { - if (baseName === '') { - return name; - } - else { - return baseName + '.' + name; - } -} -function isHandledReflectionObject(obj) { - return (obj instanceof Protobuf.Service || - obj instanceof Protobuf.Type || - obj instanceof Protobuf.Enum); -} -function isNamespaceBase(obj) { - return obj instanceof Protobuf.Namespace || obj instanceof Protobuf.Root; -} -function getAllHandledReflectionObjects(obj, parentName) { - const objName = joinName(parentName, obj.name); - if (isHandledReflectionObject(obj)) { - return [[objName, obj]]; - } - else { - if (isNamespaceBase(obj) && typeof obj.nested !== 'undefined') { - return Object.keys(obj.nested) - .map(name => { - return getAllHandledReflectionObjects(obj.nested[name], objName); - }) - .reduce((accumulator, currentValue) => accumulator.concat(currentValue), []); - } - } - return []; -} -function createDeserializer(cls, options) { - return function deserialize(argBuf) { - return cls.toObject(cls.decode(argBuf), options); - }; -} -function createSerializer(cls) { - return function serialize(arg) { - if (Array.isArray(arg)) { - throw new Error(`Failed to serialize message: expected object with ${cls.name} structure, got array instead`); - } - const message = cls.fromObject(arg); - return cls.encode(message).finish(); - }; -} -function mapMethodOptions(options) { - return (options || []).reduce((obj, item) => { - for (const [key, value] of Object.entries(item)) { - switch (key) { - case 'uninterpreted_option': - obj.uninterpreted_option.push(item.uninterpreted_option); - break; - default: - obj[key] = value; - } - } - return obj; - }, { - deprecated: false, - idempotency_level: IdempotencyLevel.IDEMPOTENCY_UNKNOWN, - uninterpreted_option: [], - }); -} -function createMethodDefinition(method, serviceName, options, fileDescriptors) { - /* This is only ever called after the corresponding root.resolveAll(), so we - * can assume that the resolved request and response types are non-null */ - const requestType = method.resolvedRequestType; - const responseType = method.resolvedResponseType; - return { - path: '/' + serviceName + '/' + method.name, - requestStream: !!method.requestStream, - responseStream: !!method.responseStream, - requestSerialize: createSerializer(requestType), - requestDeserialize: createDeserializer(requestType, options), - responseSerialize: createSerializer(responseType), - responseDeserialize: createDeserializer(responseType, options), - // TODO(murgatroid99): Find a better way to handle this - originalName: camelCase(method.name), - requestType: createMessageDefinition(requestType, options, fileDescriptors), - responseType: createMessageDefinition(responseType, options, fileDescriptors), - options: mapMethodOptions(method.parsedOptions), - }; -} -function createServiceDefinition(service, name, options, fileDescriptors) { - const def = {}; - for (const method of service.methodsArray) { - def[method.name] = createMethodDefinition(method, name, options, fileDescriptors); - } - return def; -} -function createMessageDefinition(message, options, fileDescriptors) { - const messageDescriptor = message.toDescriptor('proto3'); - return { - format: 'Protocol Buffer 3 DescriptorProto', - type: messageDescriptor.$type.toObject(messageDescriptor, descriptorOptions), - fileDescriptorProtos: fileDescriptors, - serialize: createSerializer(message), - deserialize: createDeserializer(message, options) - }; -} -function createEnumDefinition(enumType, fileDescriptors) { - const enumDescriptor = enumType.toDescriptor('proto3'); - return { - format: 'Protocol Buffer 3 EnumDescriptorProto', - type: enumDescriptor.$type.toObject(enumDescriptor, descriptorOptions), - fileDescriptorProtos: fileDescriptors, - }; -} -/** - * function createDefinition(obj: Protobuf.Service, name: string, options: - * Options): ServiceDefinition; function createDefinition(obj: Protobuf.Type, - * name: string, options: Options): MessageTypeDefinition; function - * createDefinition(obj: Protobuf.Enum, name: string, options: Options): - * EnumTypeDefinition; - */ -function createDefinition(obj, name, options, fileDescriptors) { - if (obj instanceof Protobuf.Service) { - return createServiceDefinition(obj, name, options, fileDescriptors); - } - else if (obj instanceof Protobuf.Type) { - return createMessageDefinition(obj, options, fileDescriptors); - } - else if (obj instanceof Protobuf.Enum) { - return createEnumDefinition(obj, fileDescriptors); - } - else { - throw new Error('Type mismatch in reflection object handling'); - } -} -function createPackageDefinition(root, options) { - const def = {}; - root.resolveAll(); - const descriptorList = root.toDescriptor('proto3').file; - const bufferList = descriptorList.map(value => Buffer.from(descriptor.FileDescriptorProto.encode(value).finish())); - for (const [name, obj] of getAllHandledReflectionObjects(root, '')) { - def[name] = createDefinition(obj, name, options, bufferList); - } - return def; -} -function createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options) { - options = options || {}; - const root = Protobuf.Root.fromDescriptor(decodedDescriptorSet); - root.resolveAll(); - return createPackageDefinition(root, options); -} -/** - * Load a .proto file with the specified options. - * @param filename One or multiple file paths to load. Can be an absolute path - * or relative to an include path. - * @param options.keepCase Preserve field names. The default is to change them - * to camel case. - * @param options.longs The type that should be used to represent `long` values. - * Valid options are `Number` and `String`. Defaults to a `Long` object type - * from a library. - * @param options.enums The type that should be used to represent `enum` values. - * The only valid option is `String`. Defaults to the numeric value. - * @param options.bytes The type that should be used to represent `bytes` - * values. Valid options are `Array` and `String`. The default is to use - * `Buffer`. - * @param options.defaults Set default values on output objects. Defaults to - * `false`. - * @param options.arrays Set empty arrays for missing array values even if - * `defaults` is `false`. Defaults to `false`. - * @param options.objects Set empty objects for missing object values even if - * `defaults` is `false`. Defaults to `false`. - * @param options.oneofs Set virtual oneof properties to the present field's - * name - * @param options.json Represent Infinity and NaN as strings in float fields, - * and automatically decode google.protobuf.Any values. - * @param options.includeDirs Paths to search for imported `.proto` files. - */ -function load(filename, options) { - return (0, util_1.loadProtosWithOptions)(filename, options).then(loadedRoot => { - return createPackageDefinition(loadedRoot, options); - }); -} -__webpack_unused_export__ = load; -function loadSync(filename, options) { - const loadedRoot = (0, util_1.loadProtosWithOptionsSync)(filename, options); - return createPackageDefinition(loadedRoot, options); -} -exports.Yi = loadSync; -function fromJSON(json, options) { - options = options || {}; - const loadedRoot = Protobuf.Root.fromJSON(json); - loadedRoot.resolveAll(); - return createPackageDefinition(loadedRoot, options); -} -__webpack_unused_export__ = fromJSON; -function loadFileDescriptorSetFromBuffer(descriptorSet, options) { - const decodedDescriptorSet = descriptor.FileDescriptorSet.decode(descriptorSet); - return createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options); -} -__webpack_unused_export__ = loadFileDescriptorSetFromBuffer; -function loadFileDescriptorSetFromObject(descriptorSet, options) { - const decodedDescriptorSet = descriptor.FileDescriptorSet.fromObject(descriptorSet); - return createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options); -} -__webpack_unused_export__ = loadFileDescriptorSetFromObject; -(0, util_1.addCommonProtos)(); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 25972: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/** - * @license - * Copyright 2018 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.addCommonProtos = exports.loadProtosWithOptionsSync = exports.loadProtosWithOptions = void 0; -const fs = __nccwpck_require__(79896); -const path = __nccwpck_require__(16928); -const Protobuf = __nccwpck_require__(23928); -function addIncludePathResolver(root, includePaths) { - const originalResolvePath = root.resolvePath; - root.resolvePath = (origin, target) => { - if (path.isAbsolute(target)) { - return target; - } - for (const directory of includePaths) { - const fullPath = path.join(directory, target); - try { - fs.accessSync(fullPath, fs.constants.R_OK); - return fullPath; - } - catch (err) { - continue; - } - } - process.emitWarning(`${target} not found in any of the include paths ${includePaths}`); - return originalResolvePath(origin, target); - }; -} -async function loadProtosWithOptions(filename, options) { - const root = new Protobuf.Root(); - options = options || {}; - if (!!options.includeDirs) { - if (!Array.isArray(options.includeDirs)) { - return Promise.reject(new Error('The includeDirs option must be an array')); - } - addIncludePathResolver(root, options.includeDirs); - } - const loadedRoot = await root.load(filename, options); - loadedRoot.resolveAll(); - return loadedRoot; -} -exports.loadProtosWithOptions = loadProtosWithOptions; -function loadProtosWithOptionsSync(filename, options) { - const root = new Protobuf.Root(); - options = options || {}; - if (!!options.includeDirs) { - if (!Array.isArray(options.includeDirs)) { - throw new Error('The includeDirs option must be an array'); - } - addIncludePathResolver(root, options.includeDirs); - } - const loadedRoot = root.loadSync(filename, options); - loadedRoot.resolveAll(); - return loadedRoot; -} -exports.loadProtosWithOptionsSync = loadProtosWithOptionsSync; -/** - * Load Google's well-known proto files that aren't exposed by Protobuf.js. - */ -function addCommonProtos() { - // Protobuf.js exposes: any, duration, empty, field_mask, struct, timestamp, - // and wrappers. compiler/plugin is excluded in Protobuf.js and here. - // Using constant strings for compatibility with tools like Webpack - const apiDescriptor = __nccwpck_require__(15434); - const descriptorDescriptor = __nccwpck_require__(93951); - const sourceContextDescriptor = __nccwpck_require__(92939); - const typeDescriptor = __nccwpck_require__(36710); - Protobuf.common('api', apiDescriptor.nested.google.nested.protobuf.nested); - Protobuf.common('descriptor', descriptorDescriptor.nested.google.nested.protobuf.nested); - Protobuf.common('source_context', sourceContextDescriptor.nested.google.nested.protobuf.nested); - Protobuf.common('type', typeDescriptor.nested.google.nested.protobuf.nested); -} -exports.addCommonProtos = addCommonProtos; -//# sourceMappingURL=util.js.map - -/***/ }), - -/***/ 76081: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/** - * @license - * Copyright 2018 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.loadFileDescriptorSetFromObject = exports.loadFileDescriptorSetFromBuffer = exports.fromJSON = exports.loadSync = exports.load = exports.IdempotencyLevel = exports.isAnyExtension = exports.Long = void 0; -const camelCase = __nccwpck_require__(14277); -const Protobuf = __nccwpck_require__(23928); -const descriptor = __nccwpck_require__(6412); -const util_1 = __nccwpck_require__(48057); -const Long = __nccwpck_require__(66390); -exports.Long = Long; -function isAnyExtension(obj) { - return ('@type' in obj) && (typeof obj['@type'] === 'string'); -} -exports.isAnyExtension = isAnyExtension; -var IdempotencyLevel; -(function (IdempotencyLevel) { - IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = "IDEMPOTENCY_UNKNOWN"; - IdempotencyLevel["NO_SIDE_EFFECTS"] = "NO_SIDE_EFFECTS"; - IdempotencyLevel["IDEMPOTENT"] = "IDEMPOTENT"; -})(IdempotencyLevel = exports.IdempotencyLevel || (exports.IdempotencyLevel = {})); -const descriptorOptions = { - longs: String, - enums: String, - bytes: String, - defaults: true, - oneofs: true, - json: true, -}; -function joinName(baseName, name) { - if (baseName === '') { - return name; - } - else { - return baseName + '.' + name; - } -} -function isHandledReflectionObject(obj) { - return (obj instanceof Protobuf.Service || - obj instanceof Protobuf.Type || - obj instanceof Protobuf.Enum); -} -function isNamespaceBase(obj) { - return obj instanceof Protobuf.Namespace || obj instanceof Protobuf.Root; -} -function getAllHandledReflectionObjects(obj, parentName) { - const objName = joinName(parentName, obj.name); - if (isHandledReflectionObject(obj)) { - return [[objName, obj]]; - } - else { - if (isNamespaceBase(obj) && typeof obj.nested !== 'undefined') { - return Object.keys(obj.nested) - .map(name => { - return getAllHandledReflectionObjects(obj.nested[name], objName); - }) - .reduce((accumulator, currentValue) => accumulator.concat(currentValue), []); - } - } - return []; -} -function createDeserializer(cls, options) { - return function deserialize(argBuf) { - return cls.toObject(cls.decode(argBuf), options); - }; -} -function createSerializer(cls) { - return function serialize(arg) { - if (Array.isArray(arg)) { - throw new Error(`Failed to serialize message: expected object with ${cls.name} structure, got array instead`); - } - const message = cls.fromObject(arg); - return cls.encode(message).finish(); - }; -} -function mapMethodOptions(options) { - return (options || []).reduce((obj, item) => { - for (const [key, value] of Object.entries(item)) { - switch (key) { - case 'uninterpreted_option': - obj.uninterpreted_option.push(item.uninterpreted_option); - break; - default: - obj[key] = value; - } - } - return obj; - }, { - deprecated: false, - idempotency_level: IdempotencyLevel.IDEMPOTENCY_UNKNOWN, - uninterpreted_option: [], - }); -} -function createMethodDefinition(method, serviceName, options, fileDescriptors) { - /* This is only ever called after the corresponding root.resolveAll(), so we - * can assume that the resolved request and response types are non-null */ - const requestType = method.resolvedRequestType; - const responseType = method.resolvedResponseType; - return { - path: '/' + serviceName + '/' + method.name, - requestStream: !!method.requestStream, - responseStream: !!method.responseStream, - requestSerialize: createSerializer(requestType), - requestDeserialize: createDeserializer(requestType, options), - responseSerialize: createSerializer(responseType), - responseDeserialize: createDeserializer(responseType, options), - // TODO(murgatroid99): Find a better way to handle this - originalName: camelCase(method.name), - requestType: createMessageDefinition(requestType, fileDescriptors), - responseType: createMessageDefinition(responseType, fileDescriptors), - options: mapMethodOptions(method.parsedOptions), - }; -} -function createServiceDefinition(service, name, options, fileDescriptors) { - const def = {}; - for (const method of service.methodsArray) { - def[method.name] = createMethodDefinition(method, name, options, fileDescriptors); - } - return def; -} -function createMessageDefinition(message, fileDescriptors) { - const messageDescriptor = message.toDescriptor('proto3'); - return { - format: 'Protocol Buffer 3 DescriptorProto', - type: messageDescriptor.$type.toObject(messageDescriptor, descriptorOptions), - fileDescriptorProtos: fileDescriptors, - }; -} -function createEnumDefinition(enumType, fileDescriptors) { - const enumDescriptor = enumType.toDescriptor('proto3'); - return { - format: 'Protocol Buffer 3 EnumDescriptorProto', - type: enumDescriptor.$type.toObject(enumDescriptor, descriptorOptions), - fileDescriptorProtos: fileDescriptors, - }; -} -/** - * function createDefinition(obj: Protobuf.Service, name: string, options: - * Options): ServiceDefinition; function createDefinition(obj: Protobuf.Type, - * name: string, options: Options): MessageTypeDefinition; function - * createDefinition(obj: Protobuf.Enum, name: string, options: Options): - * EnumTypeDefinition; - */ -function createDefinition(obj, name, options, fileDescriptors) { - if (obj instanceof Protobuf.Service) { - return createServiceDefinition(obj, name, options, fileDescriptors); - } - else if (obj instanceof Protobuf.Type) { - return createMessageDefinition(obj, fileDescriptors); - } - else if (obj instanceof Protobuf.Enum) { - return createEnumDefinition(obj, fileDescriptors); - } - else { - throw new Error('Type mismatch in reflection object handling'); - } -} -function createPackageDefinition(root, options) { - const def = {}; - root.resolveAll(); - const descriptorList = root.toDescriptor('proto3').file; - const bufferList = descriptorList.map(value => Buffer.from(descriptor.FileDescriptorProto.encode(value).finish())); - for (const [name, obj] of getAllHandledReflectionObjects(root, '')) { - def[name] = createDefinition(obj, name, options, bufferList); - } - return def; -} -function createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options) { - options = options || {}; - const root = Protobuf.Root.fromDescriptor(decodedDescriptorSet); - root.resolveAll(); - return createPackageDefinition(root, options); -} -/** - * Load a .proto file with the specified options. - * @param filename One or multiple file paths to load. Can be an absolute path - * or relative to an include path. - * @param options.keepCase Preserve field names. The default is to change them - * to camel case. - * @param options.longs The type that should be used to represent `long` values. - * Valid options are `Number` and `String`. Defaults to a `Long` object type - * from a library. - * @param options.enums The type that should be used to represent `enum` values. - * The only valid option is `String`. Defaults to the numeric value. - * @param options.bytes The type that should be used to represent `bytes` - * values. Valid options are `Array` and `String`. The default is to use - * `Buffer`. - * @param options.defaults Set default values on output objects. Defaults to - * `false`. - * @param options.arrays Set empty arrays for missing array values even if - * `defaults` is `false`. Defaults to `false`. - * @param options.objects Set empty objects for missing object values even if - * `defaults` is `false`. Defaults to `false`. - * @param options.oneofs Set virtual oneof properties to the present field's - * name - * @param options.json Represent Infinity and NaN as strings in float fields, - * and automatically decode google.protobuf.Any values. - * @param options.includeDirs Paths to search for imported `.proto` files. - */ -function load(filename, options) { - return (0, util_1.loadProtosWithOptions)(filename, options).then(loadedRoot => { - return createPackageDefinition(loadedRoot, options); - }); -} -exports.load = load; -function loadSync(filename, options) { - const loadedRoot = (0, util_1.loadProtosWithOptionsSync)(filename, options); - return createPackageDefinition(loadedRoot, options); -} -exports.loadSync = loadSync; -function fromJSON(json, options) { - options = options || {}; - const loadedRoot = Protobuf.Root.fromJSON(json); - loadedRoot.resolveAll(); - return createPackageDefinition(loadedRoot, options); -} -exports.fromJSON = fromJSON; -function loadFileDescriptorSetFromBuffer(descriptorSet, options) { - const decodedDescriptorSet = descriptor.FileDescriptorSet.decode(descriptorSet); - return createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options); -} -exports.loadFileDescriptorSetFromBuffer = loadFileDescriptorSetFromBuffer; -function loadFileDescriptorSetFromObject(descriptorSet, options) { - const decodedDescriptorSet = descriptor.FileDescriptorSet.fromObject(descriptorSet); - return createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options); -} -exports.loadFileDescriptorSetFromObject = loadFileDescriptorSetFromObject; -(0, util_1.addCommonProtos)(); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 48057: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -/** - * @license - * Copyright 2018 gRPC authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.addCommonProtos = exports.loadProtosWithOptionsSync = exports.loadProtosWithOptions = void 0; -const fs = __nccwpck_require__(79896); -const path = __nccwpck_require__(16928); -const Protobuf = __nccwpck_require__(23928); -function addIncludePathResolver(root, includePaths) { - const originalResolvePath = root.resolvePath; - root.resolvePath = (origin, target) => { - if (path.isAbsolute(target)) { - return target; - } - for (const directory of includePaths) { - const fullPath = path.join(directory, target); - try { - fs.accessSync(fullPath, fs.constants.R_OK); - return fullPath; - } - catch (err) { - continue; - } - } - process.emitWarning(`${target} not found in any of the include paths ${includePaths}`); - return originalResolvePath(origin, target); - }; -} -async function loadProtosWithOptions(filename, options) { - const root = new Protobuf.Root(); - options = options || {}; - if (!!options.includeDirs) { - if (!Array.isArray(options.includeDirs)) { - return Promise.reject(new Error('The includeDirs option must be an array')); - } - addIncludePathResolver(root, options.includeDirs); - } - const loadedRoot = await root.load(filename, options); - loadedRoot.resolveAll(); - return loadedRoot; -} -exports.loadProtosWithOptions = loadProtosWithOptions; -function loadProtosWithOptionsSync(filename, options) { - const root = new Protobuf.Root(); - options = options || {}; - if (!!options.includeDirs) { - if (!Array.isArray(options.includeDirs)) { - throw new Error('The includeDirs option must be an array'); - } - addIncludePathResolver(root, options.includeDirs); - } - const loadedRoot = root.loadSync(filename, options); - loadedRoot.resolveAll(); - return loadedRoot; -} -exports.loadProtosWithOptionsSync = loadProtosWithOptionsSync; -/** - * Load Google's well-known proto files that aren't exposed by Protobuf.js. - */ -function addCommonProtos() { - // Protobuf.js exposes: any, duration, empty, field_mask, struct, timestamp, - // and wrappers. compiler/plugin is excluded in Protobuf.js and here. - // Using constant strings for compatibility with tools like Webpack - const apiDescriptor = __nccwpck_require__(15434); - const descriptorDescriptor = __nccwpck_require__(93951); - const sourceContextDescriptor = __nccwpck_require__(92939); - const typeDescriptor = __nccwpck_require__(36710); - Protobuf.common('api', apiDescriptor.nested.google.nested.protobuf.nested); - Protobuf.common('descriptor', descriptorDescriptor.nested.google.nested.protobuf.nested); - Protobuf.common('source_context', sourceContextDescriptor.nested.google.nested.protobuf.nested); - Protobuf.common('type', typeDescriptor.nested.google.nested.protobuf.nested); -} -exports.addCommonProtos = addCommonProtos; -//# sourceMappingURL=util.js.map - -/***/ }), - -/***/ 60137: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -Object.defineProperty(exports, "t", ({ - value: true -})); - -class TreeNode { - constructor(t, e, s = 1) { - this.i = undefined; - this.h = undefined; - this.o = undefined; - this.u = t; - this.l = e; - this.p = s; - } - I() { - let t = this; - const e = t.o.o === t; - if (e && t.p === 1) { - t = t.h; - } else if (t.i) { - t = t.i; - while (t.h) { - t = t.h; - } - } else { - if (e) { - return t.o; - } - let s = t.o; - while (s.i === t) { - t = s; - s = t.o; - } - t = s; - } - return t; - } - B() { - let t = this; - if (t.h) { - t = t.h; - while (t.i) { - t = t.i; - } - return t; - } else { - let e = t.o; - while (e.h === t) { - t = e; - e = t.o; - } - if (t.h !== e) { - return e; - } else return t; - } - } - _() { - const t = this.o; - const e = this.h; - const s = e.i; - if (t.o === this) t.o = e; else if (t.i === this) t.i = e; else t.h = e; - e.o = t; - e.i = this; - this.o = e; - this.h = s; - if (s) s.o = this; - return e; - } - g() { - const t = this.o; - const e = this.i; - const s = e.h; - if (t.o === this) t.o = e; else if (t.i === this) t.i = e; else t.h = e; - e.o = t; - e.h = this; - this.o = e; - this.i = s; - if (s) s.o = this; - return e; - } -} - -class TreeNodeEnableIndex extends TreeNode { - constructor() { - super(...arguments); - this.M = 1; - } - _() { - const t = super._(); - this.O(); - t.O(); - return t; - } - g() { - const t = super.g(); - this.O(); - t.O(); - return t; - } - O() { - this.M = 1; - if (this.i) { - this.M += this.i.M; - } - if (this.h) { - this.M += this.h.M; - } - } -} - -class ContainerIterator { - constructor(t = 0) { - this.iteratorType = t; - } - equals(t) { - return this.T === t.T; - } -} - -class Base { - constructor() { - this.m = 0; - } - get length() { - return this.m; - } - size() { - return this.m; - } - empty() { - return this.m === 0; - } -} - -class Container extends Base {} - -function throwIteratorAccessError() { - throw new RangeError("Iterator access denied!"); -} - -class TreeContainer extends Container { - constructor(t = function(t, e) { - if (t < e) return -1; - if (t > e) return 1; - return 0; - }, e = false) { - super(); - this.v = undefined; - this.A = t; - this.enableIndex = e; - this.N = e ? TreeNodeEnableIndex : TreeNode; - this.C = new this.N; - } - R(t, e) { - let s = this.C; - while (t) { - const i = this.A(t.u, e); - if (i < 0) { - t = t.h; - } else if (i > 0) { - s = t; - t = t.i; - } else return t; - } - return s; - } - K(t, e) { - let s = this.C; - while (t) { - const i = this.A(t.u, e); - if (i <= 0) { - t = t.h; - } else { - s = t; - t = t.i; - } - } - return s; - } - L(t, e) { - let s = this.C; - while (t) { - const i = this.A(t.u, e); - if (i < 0) { - s = t; - t = t.h; - } else if (i > 0) { - t = t.i; - } else return t; - } - return s; - } - k(t, e) { - let s = this.C; - while (t) { - const i = this.A(t.u, e); - if (i < 0) { - s = t; - t = t.h; - } else { - t = t.i; - } - } - return s; - } - P(t) { - while (true) { - const e = t.o; - if (e === this.C) return; - if (t.p === 1) { - t.p = 0; - return; - } - if (t === e.i) { - const s = e.h; - if (s.p === 1) { - s.p = 0; - e.p = 1; - if (e === this.v) { - this.v = e._(); - } else e._(); - } else { - if (s.h && s.h.p === 1) { - s.p = e.p; - e.p = 0; - s.h.p = 0; - if (e === this.v) { - this.v = e._(); - } else e._(); - return; - } else if (s.i && s.i.p === 1) { - s.p = 1; - s.i.p = 0; - s.g(); - } else { - s.p = 1; - t = e; - } - } - } else { - const s = e.i; - if (s.p === 1) { - s.p = 0; - e.p = 1; - if (e === this.v) { - this.v = e.g(); - } else e.g(); - } else { - if (s.i && s.i.p === 1) { - s.p = e.p; - e.p = 0; - s.i.p = 0; - if (e === this.v) { - this.v = e.g(); - } else e.g(); - return; - } else if (s.h && s.h.p === 1) { - s.p = 1; - s.h.p = 0; - s._(); - } else { - s.p = 1; - t = e; - } - } - } - } - } - S(t) { - if (this.m === 1) { - this.clear(); - return; - } - let e = t; - while (e.i || e.h) { - if (e.h) { - e = e.h; - while (e.i) e = e.i; - } else { - e = e.i; - } - const s = t.u; - t.u = e.u; - e.u = s; - const i = t.l; - t.l = e.l; - e.l = i; - t = e; - } - if (this.C.i === e) { - this.C.i = e.o; - } else if (this.C.h === e) { - this.C.h = e.o; - } - this.P(e); - let s = e.o; - if (e === s.i) { - s.i = undefined; - } else s.h = undefined; - this.m -= 1; - this.v.p = 0; - if (this.enableIndex) { - while (s !== this.C) { - s.M -= 1; - s = s.o; - } - } - } - U(t) { - const e = typeof t === "number" ? t : undefined; - const s = typeof t === "function" ? t : undefined; - const i = typeof t === "undefined" ? [] : undefined; - let r = 0; - let n = this.v; - const h = []; - while (h.length || n) { - if (n) { - h.push(n); - n = n.i; - } else { - n = h.pop(); - if (r === e) return n; - i && i.push(n); - s && s(n, r, this); - r += 1; - n = n.h; - } - } - return i; - } - j(t) { - while (true) { - const e = t.o; - if (e.p === 0) return; - const s = e.o; - if (e === s.i) { - const i = s.h; - if (i && i.p === 1) { - i.p = e.p = 0; - if (s === this.v) return; - s.p = 1; - t = s; - continue; - } else if (t === e.h) { - t.p = 0; - if (t.i) { - t.i.o = e; - } - if (t.h) { - t.h.o = s; - } - e.h = t.i; - s.i = t.h; - t.i = e; - t.h = s; - if (s === this.v) { - this.v = t; - this.C.o = t; - } else { - const e = s.o; - if (e.i === s) { - e.i = t; - } else e.h = t; - } - t.o = s.o; - e.o = t; - s.o = t; - s.p = 1; - } else { - e.p = 0; - if (s === this.v) { - this.v = s.g(); - } else s.g(); - s.p = 1; - return; - } - } else { - const i = s.i; - if (i && i.p === 1) { - i.p = e.p = 0; - if (s === this.v) return; - s.p = 1; - t = s; - continue; - } else if (t === e.i) { - t.p = 0; - if (t.i) { - t.i.o = s; - } - if (t.h) { - t.h.o = e; - } - s.h = t.i; - e.i = t.h; - t.i = s; - t.h = e; - if (s === this.v) { - this.v = t; - this.C.o = t; - } else { - const e = s.o; - if (e.i === s) { - e.i = t; - } else e.h = t; - } - t.o = s.o; - e.o = t; - s.o = t; - s.p = 1; - } else { - e.p = 0; - if (s === this.v) { - this.v = s._(); - } else s._(); - s.p = 1; - return; - } - } - if (this.enableIndex) { - e.O(); - s.O(); - t.O(); - } - return; - } - } - q(t, e, s) { - if (this.v === undefined) { - this.m += 1; - this.v = new this.N(t, e, 0); - this.v.o = this.C; - this.C.o = this.C.i = this.C.h = this.v; - return this.m; - } - let i; - const r = this.C.i; - const n = this.A(r.u, t); - if (n === 0) { - r.l = e; - return this.m; - } else if (n > 0) { - r.i = new this.N(t, e); - r.i.o = r; - i = r.i; - this.C.i = i; - } else { - const r = this.C.h; - const n = this.A(r.u, t); - if (n === 0) { - r.l = e; - return this.m; - } else if (n < 0) { - r.h = new this.N(t, e); - r.h.o = r; - i = r.h; - this.C.h = i; - } else { - if (s !== undefined) { - const r = s.T; - if (r !== this.C) { - const s = this.A(r.u, t); - if (s === 0) { - r.l = e; - return this.m; - } else if (s > 0) { - const s = r.I(); - const n = this.A(s.u, t); - if (n === 0) { - s.l = e; - return this.m; - } else if (n < 0) { - i = new this.N(t, e); - if (s.h === undefined) { - s.h = i; - i.o = s; - } else { - r.i = i; - i.o = r; - } - } - } - } - } - if (i === undefined) { - i = this.v; - while (true) { - const s = this.A(i.u, t); - if (s > 0) { - if (i.i === undefined) { - i.i = new this.N(t, e); - i.i.o = i; - i = i.i; - break; - } - i = i.i; - } else if (s < 0) { - if (i.h === undefined) { - i.h = new this.N(t, e); - i.h.o = i; - i = i.h; - break; - } - i = i.h; - } else { - i.l = e; - return this.m; - } - } - } - } - } - if (this.enableIndex) { - let t = i.o; - while (t !== this.C) { - t.M += 1; - t = t.o; - } - } - this.j(i); - this.m += 1; - return this.m; - } - H(t, e) { - while (t) { - const s = this.A(t.u, e); - if (s < 0) { - t = t.h; - } else if (s > 0) { - t = t.i; - } else return t; - } - return t || this.C; - } - clear() { - this.m = 0; - this.v = undefined; - this.C.o = undefined; - this.C.i = this.C.h = undefined; - } - updateKeyByIterator(t, e) { - const s = t.T; - if (s === this.C) { - throwIteratorAccessError(); - } - if (this.m === 1) { - s.u = e; - return true; - } - const i = s.B().u; - if (s === this.C.i) { - if (this.A(i, e) > 0) { - s.u = e; - return true; - } - return false; - } - const r = s.I().u; - if (s === this.C.h) { - if (this.A(r, e) < 0) { - s.u = e; - return true; - } - return false; - } - if (this.A(r, e) >= 0 || this.A(i, e) <= 0) return false; - s.u = e; - return true; - } - eraseElementByPos(t) { - if (t < 0 || t > this.m - 1) { - throw new RangeError; - } - const e = this.U(t); - this.S(e); - return this.m; - } - eraseElementByKey(t) { - if (this.m === 0) return false; - const e = this.H(this.v, t); - if (e === this.C) return false; - this.S(e); - return true; - } - eraseElementByIterator(t) { - const e = t.T; - if (e === this.C) { - throwIteratorAccessError(); - } - const s = e.h === undefined; - const i = t.iteratorType === 0; - if (i) { - if (s) t.next(); - } else { - if (!s || e.i === undefined) t.next(); - } - this.S(e); - return t; - } - getHeight() { - if (this.m === 0) return 0; - function traversal(t) { - if (!t) return 0; - return Math.max(traversal(t.i), traversal(t.h)) + 1; - } - return traversal(this.v); - } -} - -class TreeIterator extends ContainerIterator { - constructor(t, e, s) { - super(s); - this.T = t; - this.C = e; - if (this.iteratorType === 0) { - this.pre = function() { - if (this.T === this.C.i) { - throwIteratorAccessError(); - } - this.T = this.T.I(); - return this; - }; - this.next = function() { - if (this.T === this.C) { - throwIteratorAccessError(); - } - this.T = this.T.B(); - return this; - }; - } else { - this.pre = function() { - if (this.T === this.C.h) { - throwIteratorAccessError(); - } - this.T = this.T.B(); - return this; - }; - this.next = function() { - if (this.T === this.C) { - throwIteratorAccessError(); - } - this.T = this.T.I(); - return this; - }; - } - } - get index() { - let t = this.T; - const e = this.C.o; - if (t === this.C) { - if (e) { - return e.M - 1; - } - return 0; - } - let s = 0; - if (t.i) { - s += t.i.M; - } - while (t !== e) { - const e = t.o; - if (t === e.h) { - s += 1; - if (e.i) { - s += e.i.M; - } - } - t = e; - } - return s; - } - isAccessible() { - return this.T !== this.C; - } -} - -class OrderedMapIterator extends TreeIterator { - constructor(t, e, s, i) { - super(t, e, i); - this.container = s; - } - get pointer() { - if (this.T === this.C) { - throwIteratorAccessError(); - } - const t = this; - return new Proxy([], { - get(e, s) { - if (s === "0") return t.T.u; else if (s === "1") return t.T.l; - e[0] = t.T.u; - e[1] = t.T.l; - return e[s]; - }, - set(e, s, i) { - if (s !== "1") { - throw new TypeError("prop must be 1"); - } - t.T.l = i; - return true; - } - }); - } - copy() { - return new OrderedMapIterator(this.T, this.C, this.container, this.iteratorType); - } -} - -class OrderedMap extends TreeContainer { - constructor(t = [], e, s) { - super(e, s); - const i = this; - t.forEach((function(t) { - i.setElement(t[0], t[1]); - })); - } - begin() { - return new OrderedMapIterator(this.C.i || this.C, this.C, this); - } - end() { - return new OrderedMapIterator(this.C, this.C, this); - } - rBegin() { - return new OrderedMapIterator(this.C.h || this.C, this.C, this, 1); - } - rEnd() { - return new OrderedMapIterator(this.C, this.C, this, 1); - } - front() { - if (this.m === 0) return; - const t = this.C.i; - return [ t.u, t.l ]; - } - back() { - if (this.m === 0) return; - const t = this.C.h; - return [ t.u, t.l ]; - } - lowerBound(t) { - const e = this.R(this.v, t); - return new OrderedMapIterator(e, this.C, this); - } - upperBound(t) { - const e = this.K(this.v, t); - return new OrderedMapIterator(e, this.C, this); - } - reverseLowerBound(t) { - const e = this.L(this.v, t); - return new OrderedMapIterator(e, this.C, this); - } - reverseUpperBound(t) { - const e = this.k(this.v, t); - return new OrderedMapIterator(e, this.C, this); - } - forEach(t) { - this.U((function(e, s, i) { - t([ e.u, e.l ], s, i); - })); - } - setElement(t, e, s) { - return this.q(t, e, s); - } - getElementByPos(t) { - if (t < 0 || t > this.m - 1) { - throw new RangeError; - } - const e = this.U(t); - return [ e.u, e.l ]; - } - find(t) { - const e = this.H(this.v, t); - return new OrderedMapIterator(e, this.C, this); - } - getElementByKey(t) { - const e = this.H(this.v, t); - return e.l; - } - union(t) { - const e = this; - t.forEach((function(t) { - e.setElement(t[0], t[1]); - })); - return this.m; - } - * [Symbol.iterator]() { - const t = this.m; - const e = this.U(); - for (let s = 0; s < t; ++s) { - const t = e[s]; - yield [ t.u, t.l ]; - } - } -} - -exports.OrderedMap = OrderedMap; -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ 92222: -/***/ ((module) => { - -"use strict"; - -module.exports = asPromise; - -/** - * Callback as used by {@link util.asPromise}. - * @typedef asPromiseCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {...*} params Additional arguments - * @returns {undefined} - */ - -/** - * Returns a promise from a node-style callback function. - * @memberof util - * @param {asPromiseCallback} fn Function to call - * @param {*} ctx Function context - * @param {...*} params Function arguments - * @returns {Promise<*>} Promisified function - */ -function asPromise(fn, ctx/*, varargs */) { - var params = new Array(arguments.length - 1), - offset = 0, - index = 2, - pending = true; - while (index < arguments.length) - params[offset++] = arguments[index++]; - return new Promise(function executor(resolve, reject) { - params[offset] = function callback(err/*, varargs */) { - if (pending) { - pending = false; - if (err) - reject(err); - else { - var params = new Array(arguments.length - 1), - offset = 0; - while (offset < params.length) - params[offset++] = arguments[offset]; - resolve.apply(null, params); - } - } - }; - try { - fn.apply(ctx || null, params); - } catch (err) { - if (pending) { - pending = false; - reject(err); - } - } - }); -} - - -/***/ }), - -/***/ 25478: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -/** - * A minimal base64 implementation for number arrays. - * @memberof util - * @namespace - */ -var base64 = exports; - -/** - * Calculates the byte length of a base64 encoded string. - * @param {string} string Base64 encoded string - * @returns {number} Byte length - */ -base64.length = function length(string) { - var p = string.length; - if (!p) - return 0; - var n = 0; - while (--p % 4 > 1 && string.charAt(p) === "=") - ++n; - return Math.ceil(string.length * 3) / 4 - n; -}; - -// Base64 encoding table -var b64 = new Array(64); - -// Base64 decoding table -var s64 = new Array(123); - -// 65..90, 97..122, 48..57, 43, 47 -for (var i = 0; i < 64;) - s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++; - -/** - * Encodes a buffer to a base64 encoded string. - * @param {Uint8Array} buffer Source buffer - * @param {number} start Source start - * @param {number} end Source end - * @returns {string} Base64 encoded string - */ -base64.encode = function encode(buffer, start, end) { - var parts = null, - chunk = []; - var i = 0, // output index - j = 0, // goto index - t; // temporary - while (start < end) { - var b = buffer[start++]; - switch (j) { - case 0: - chunk[i++] = b64[b >> 2]; - t = (b & 3) << 4; - j = 1; - break; - case 1: - chunk[i++] = b64[t | b >> 4]; - t = (b & 15) << 2; - j = 2; - break; - case 2: - chunk[i++] = b64[t | b >> 6]; - chunk[i++] = b64[b & 63]; - j = 0; - break; - } - if (i > 8191) { - (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk)); - i = 0; - } - } - if (j) { - chunk[i++] = b64[t]; - chunk[i++] = 61; - if (j === 1) - chunk[i++] = 61; - } - if (parts) { - if (i) - parts.push(String.fromCharCode.apply(String, chunk.slice(0, i))); - return parts.join(""); - } - return String.fromCharCode.apply(String, chunk.slice(0, i)); -}; - -var invalidEncoding = "invalid encoding"; - -/** - * Decodes a base64 encoded string to a buffer. - * @param {string} string Source string - * @param {Uint8Array} buffer Destination buffer - * @param {number} offset Destination offset - * @returns {number} Number of bytes written - * @throws {Error} If encoding is invalid - */ -base64.decode = function decode(string, buffer, offset) { - var start = offset; - var j = 0, // goto index - t; // temporary - for (var i = 0; i < string.length;) { - var c = string.charCodeAt(i++); - if (c === 61 && j > 1) - break; - if ((c = s64[c]) === undefined) - throw Error(invalidEncoding); - switch (j) { - case 0: - t = c; - j = 1; - break; - case 1: - buffer[offset++] = t << 2 | (c & 48) >> 4; - t = c; - j = 2; - break; - case 2: - buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2; - t = c; - j = 3; - break; - case 3: - buffer[offset++] = (t & 3) << 6 | c; - j = 0; - break; - } - } - if (j === 1) - throw Error(invalidEncoding); - return offset - start; -}; - -/** - * Tests if the specified string appears to be base64 encoded. - * @param {string} string String to test - * @returns {boolean} `true` if probably base64 encoded, otherwise false - */ -base64.test = function test(string) { - return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string); -}; - - -/***/ }), - -/***/ 25346: -/***/ ((module) => { - -"use strict"; - -module.exports = codegen; - -/** - * Begins generating a function. - * @memberof util - * @param {string[]} functionParams Function parameter names - * @param {string} [functionName] Function name if not anonymous - * @returns {Codegen} Appender that appends code to the function's body - */ -function codegen(functionParams, functionName) { - - /* istanbul ignore if */ - if (typeof functionParams === "string") { - functionName = functionParams; - functionParams = undefined; - } - - var body = []; - - /** - * Appends code to the function's body or finishes generation. - * @typedef Codegen - * @type {function} - * @param {string|Object.} [formatStringOrScope] Format string or, to finish the function, an object of additional scope variables, if any - * @param {...*} [formatParams] Format parameters - * @returns {Codegen|Function} Itself or the generated function if finished - * @throws {Error} If format parameter counts do not match - */ - - function Codegen(formatStringOrScope) { - // note that explicit array handling below makes this ~50% faster - - // finish the function - if (typeof formatStringOrScope !== "string") { - var source = toString(); - if (codegen.verbose) - console.log("codegen: " + source); // eslint-disable-line no-console - source = "return " + source; - if (formatStringOrScope) { - var scopeKeys = Object.keys(formatStringOrScope), - scopeParams = new Array(scopeKeys.length + 1), - scopeValues = new Array(scopeKeys.length), - scopeOffset = 0; - while (scopeOffset < scopeKeys.length) { - scopeParams[scopeOffset] = scopeKeys[scopeOffset]; - scopeValues[scopeOffset] = formatStringOrScope[scopeKeys[scopeOffset++]]; - } - scopeParams[scopeOffset] = source; - return Function.apply(null, scopeParams).apply(null, scopeValues); // eslint-disable-line no-new-func - } - return Function(source)(); // eslint-disable-line no-new-func - } - - // otherwise append to body - var formatParams = new Array(arguments.length - 1), - formatOffset = 0; - while (formatOffset < formatParams.length) - formatParams[formatOffset] = arguments[++formatOffset]; - formatOffset = 0; - formatStringOrScope = formatStringOrScope.replace(/%([%dfijs])/g, function replace($0, $1) { - var value = formatParams[formatOffset++]; - switch ($1) { - case "d": case "f": return String(Number(value)); - case "i": return String(Math.floor(value)); - case "j": return JSON.stringify(value); - case "s": return String(value); - } - return "%"; - }); - if (formatOffset !== formatParams.length) - throw Error("parameter count mismatch"); - body.push(formatStringOrScope); - return Codegen; - } - - function toString(functionNameOverride) { - return "function " + (functionNameOverride || functionName || "") + "(" + (functionParams && functionParams.join(",") || "") + "){\n " + body.join("\n ") + "\n}"; - } - - Codegen.toString = toString; - return Codegen; -} - -/** - * Begins generating a function. - * @memberof util - * @function codegen - * @param {string} [functionName] Function name if not anonymous - * @returns {Codegen} Appender that appends code to the function's body - * @variation 2 - */ - -/** - * When set to `true`, codegen will log generated code to console. Useful for debugging. - * @name util.codegen.verbose - * @type {boolean} - */ -codegen.verbose = false; - - -/***/ }), - -/***/ 32491: -/***/ ((module) => { - -"use strict"; - -module.exports = EventEmitter; - -/** - * Constructs a new event emitter instance. - * @classdesc A minimal event emitter. - * @memberof util - * @constructor - */ -function EventEmitter() { - - /** - * Registered listeners. - * @type {Object.} - * @private - */ - this._listeners = {}; -} - -/** - * Registers an event listener. - * @param {string} evt Event name - * @param {function} fn Listener - * @param {*} [ctx] Listener context - * @returns {util.EventEmitter} `this` - */ -EventEmitter.prototype.on = function on(evt, fn, ctx) { - (this._listeners[evt] || (this._listeners[evt] = [])).push({ - fn : fn, - ctx : ctx || this - }); - return this; -}; - -/** - * Removes an event listener or any matching listeners if arguments are omitted. - * @param {string} [evt] Event name. Removes all listeners if omitted. - * @param {function} [fn] Listener to remove. Removes all listeners of `evt` if omitted. - * @returns {util.EventEmitter} `this` - */ -EventEmitter.prototype.off = function off(evt, fn) { - if (evt === undefined) - this._listeners = {}; - else { - if (fn === undefined) - this._listeners[evt] = []; - else { - var listeners = this._listeners[evt]; - for (var i = 0; i < listeners.length;) - if (listeners[i].fn === fn) - listeners.splice(i, 1); - else - ++i; - } - } - return this; -}; - -/** - * Emits an event by calling its listeners with the specified arguments. - * @param {string} evt Event name - * @param {...*} args Arguments - * @returns {util.EventEmitter} `this` - */ -EventEmitter.prototype.emit = function emit(evt) { - var listeners = this._listeners[evt]; - if (listeners) { - var args = [], - i = 1; - for (; i < arguments.length;) - args.push(arguments[i++]); - for (i = 0; i < listeners.length;) - listeners[i].fn.apply(listeners[i++].ctx, args); - } - return this; -}; - - -/***/ }), - -/***/ 44279: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - -module.exports = fetch; - -var asPromise = __nccwpck_require__(92222), - inquire = __nccwpck_require__(77206); - -var fs = inquire("fs"); - -/** - * Node-style callback as used by {@link util.fetch}. - * @typedef FetchCallback - * @type {function} - * @param {?Error} error Error, if any, otherwise `null` - * @param {string} [contents] File contents, if there hasn't been an error - * @returns {undefined} - */ - -/** - * Options as used by {@link util.fetch}. - * @typedef FetchOptions - * @type {Object} - * @property {boolean} [binary=false] Whether expecting a binary response - * @property {boolean} [xhr=false] If `true`, forces the use of XMLHttpRequest - */ - -/** - * Fetches the contents of a file. - * @memberof util - * @param {string} filename File path or url - * @param {FetchOptions} options Fetch options - * @param {FetchCallback} callback Callback function - * @returns {undefined} - */ -function fetch(filename, options, callback) { - if (typeof options === "function") { - callback = options; - options = {}; - } else if (!options) - options = {}; - - if (!callback) - return asPromise(fetch, this, filename, options); // eslint-disable-line no-invalid-this - - // if a node-like filesystem is present, try it first but fall back to XHR if nothing is found. - if (!options.xhr && fs && fs.readFile) - return fs.readFile(filename, function fetchReadFileCallback(err, contents) { - return err && typeof XMLHttpRequest !== "undefined" - ? fetch.xhr(filename, options, callback) - : err - ? callback(err) - : callback(null, options.binary ? contents : contents.toString("utf8")); - }); - - // use the XHR version otherwise. - return fetch.xhr(filename, options, callback); -} - -/** - * Fetches the contents of a file. - * @name util.fetch - * @function - * @param {string} path File path or url - * @param {FetchCallback} callback Callback function - * @returns {undefined} - * @variation 2 - */ - -/** - * Fetches the contents of a file. - * @name util.fetch - * @function - * @param {string} path File path or url - * @param {FetchOptions} [options] Fetch options - * @returns {Promise} Promise - * @variation 3 - */ - -/**/ -fetch.xhr = function fetch_xhr(filename, options, callback) { - var xhr = new XMLHttpRequest(); - xhr.onreadystatechange /* works everywhere */ = function fetchOnReadyStateChange() { - - if (xhr.readyState !== 4) - return undefined; - - // local cors security errors return status 0 / empty string, too. afaik this cannot be - // reliably distinguished from an actually empty file for security reasons. feel free - // to send a pull request if you are aware of a solution. - if (xhr.status !== 0 && xhr.status !== 200) - return callback(Error("status " + xhr.status)); - - // if binary data is expected, make sure that some sort of array is returned, even if - // ArrayBuffers are not supported. the binary string fallback, however, is unsafe. - if (options.binary) { - var buffer = xhr.response; - if (!buffer) { - buffer = []; - for (var i = 0; i < xhr.responseText.length; ++i) - buffer.push(xhr.responseText.charCodeAt(i) & 255); - } - return callback(null, typeof Uint8Array !== "undefined" ? new Uint8Array(buffer) : buffer); - } - return callback(null, xhr.responseText); - }; - - if (options.binary) { - // ref: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data#Receiving_binary_data_in_older_browsers - if ("overrideMimeType" in xhr) - xhr.overrideMimeType("text/plain; charset=x-user-defined"); - xhr.responseType = "arraybuffer"; - } - - xhr.open("GET", filename); - xhr.send(); -}; - - -/***/ }), - -/***/ 8597: -/***/ ((module) => { - -"use strict"; - - -module.exports = factory(factory); - -/** - * Reads / writes floats / doubles from / to buffers. - * @name util.float - * @namespace - */ - -/** - * Writes a 32 bit float to a buffer using little endian byte order. - * @name util.float.writeFloatLE - * @function - * @param {number} val Value to write - * @param {Uint8Array} buf Target buffer - * @param {number} pos Target buffer offset - * @returns {undefined} - */ - -/** - * Writes a 32 bit float to a buffer using big endian byte order. - * @name util.float.writeFloatBE - * @function - * @param {number} val Value to write - * @param {Uint8Array} buf Target buffer - * @param {number} pos Target buffer offset - * @returns {undefined} - */ - -/** - * Reads a 32 bit float from a buffer using little endian byte order. - * @name util.float.readFloatLE - * @function - * @param {Uint8Array} buf Source buffer - * @param {number} pos Source buffer offset - * @returns {number} Value read - */ - -/** - * Reads a 32 bit float from a buffer using big endian byte order. - * @name util.float.readFloatBE - * @function - * @param {Uint8Array} buf Source buffer - * @param {number} pos Source buffer offset - * @returns {number} Value read - */ - -/** - * Writes a 64 bit double to a buffer using little endian byte order. - * @name util.float.writeDoubleLE - * @function - * @param {number} val Value to write - * @param {Uint8Array} buf Target buffer - * @param {number} pos Target buffer offset - * @returns {undefined} - */ - -/** - * Writes a 64 bit double to a buffer using big endian byte order. - * @name util.float.writeDoubleBE - * @function - * @param {number} val Value to write - * @param {Uint8Array} buf Target buffer - * @param {number} pos Target buffer offset - * @returns {undefined} - */ - -/** - * Reads a 64 bit double from a buffer using little endian byte order. - * @name util.float.readDoubleLE - * @function - * @param {Uint8Array} buf Source buffer - * @param {number} pos Source buffer offset - * @returns {number} Value read - */ - -/** - * Reads a 64 bit double from a buffer using big endian byte order. - * @name util.float.readDoubleBE - * @function - * @param {Uint8Array} buf Source buffer - * @param {number} pos Source buffer offset - * @returns {number} Value read - */ - -// Factory function for the purpose of node-based testing in modified global environments -function factory(exports) { - - // float: typed array - if (typeof Float32Array !== "undefined") (function() { - - var f32 = new Float32Array([ -0 ]), - f8b = new Uint8Array(f32.buffer), - le = f8b[3] === 128; - - function writeFloat_f32_cpy(val, buf, pos) { - f32[0] = val; - buf[pos ] = f8b[0]; - buf[pos + 1] = f8b[1]; - buf[pos + 2] = f8b[2]; - buf[pos + 3] = f8b[3]; - } - - function writeFloat_f32_rev(val, buf, pos) { - f32[0] = val; - buf[pos ] = f8b[3]; - buf[pos + 1] = f8b[2]; - buf[pos + 2] = f8b[1]; - buf[pos + 3] = f8b[0]; - } - - /* istanbul ignore next */ - exports.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev; - /* istanbul ignore next */ - exports.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy; - - function readFloat_f32_cpy(buf, pos) { - f8b[0] = buf[pos ]; - f8b[1] = buf[pos + 1]; - f8b[2] = buf[pos + 2]; - f8b[3] = buf[pos + 3]; - return f32[0]; - } - - function readFloat_f32_rev(buf, pos) { - f8b[3] = buf[pos ]; - f8b[2] = buf[pos + 1]; - f8b[1] = buf[pos + 2]; - f8b[0] = buf[pos + 3]; - return f32[0]; - } - - /* istanbul ignore next */ - exports.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev; - /* istanbul ignore next */ - exports.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy; - - // float: ieee754 - })(); else (function() { - - function writeFloat_ieee754(writeUint, val, buf, pos) { - var sign = val < 0 ? 1 : 0; - if (sign) - val = -val; - if (val === 0) - writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos); - else if (isNaN(val)) - writeUint(2143289344, buf, pos); - else if (val > 3.4028234663852886e+38) // +-Infinity - writeUint((sign << 31 | 2139095040) >>> 0, buf, pos); - else if (val < 1.1754943508222875e-38) // denormal - writeUint((sign << 31 | Math.round(val / 1.401298464324817e-45)) >>> 0, buf, pos); - else { - var exponent = Math.floor(Math.log(val) / Math.LN2), - mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607; - writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos); - } - } - - exports.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE); - exports.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE); - - function readFloat_ieee754(readUint, buf, pos) { - var uint = readUint(buf, pos), - sign = (uint >> 31) * 2 + 1, - exponent = uint >>> 23 & 255, - mantissa = uint & 8388607; - return exponent === 255 - ? mantissa - ? NaN - : sign * Infinity - : exponent === 0 // denormal - ? sign * 1.401298464324817e-45 * mantissa - : sign * Math.pow(2, exponent - 150) * (mantissa + 8388608); - } - - exports.readFloatLE = readFloat_ieee754.bind(null, readUintLE); - exports.readFloatBE = readFloat_ieee754.bind(null, readUintBE); - - })(); - - // double: typed array - if (typeof Float64Array !== "undefined") (function() { - - var f64 = new Float64Array([-0]), - f8b = new Uint8Array(f64.buffer), - le = f8b[7] === 128; - - function writeDouble_f64_cpy(val, buf, pos) { - f64[0] = val; - buf[pos ] = f8b[0]; - buf[pos + 1] = f8b[1]; - buf[pos + 2] = f8b[2]; - buf[pos + 3] = f8b[3]; - buf[pos + 4] = f8b[4]; - buf[pos + 5] = f8b[5]; - buf[pos + 6] = f8b[6]; - buf[pos + 7] = f8b[7]; - } - - function writeDouble_f64_rev(val, buf, pos) { - f64[0] = val; - buf[pos ] = f8b[7]; - buf[pos + 1] = f8b[6]; - buf[pos + 2] = f8b[5]; - buf[pos + 3] = f8b[4]; - buf[pos + 4] = f8b[3]; - buf[pos + 5] = f8b[2]; - buf[pos + 6] = f8b[1]; - buf[pos + 7] = f8b[0]; - } - - /* istanbul ignore next */ - exports.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev; - /* istanbul ignore next */ - exports.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy; - - function readDouble_f64_cpy(buf, pos) { - f8b[0] = buf[pos ]; - f8b[1] = buf[pos + 1]; - f8b[2] = buf[pos + 2]; - f8b[3] = buf[pos + 3]; - f8b[4] = buf[pos + 4]; - f8b[5] = buf[pos + 5]; - f8b[6] = buf[pos + 6]; - f8b[7] = buf[pos + 7]; - return f64[0]; - } - - function readDouble_f64_rev(buf, pos) { - f8b[7] = buf[pos ]; - f8b[6] = buf[pos + 1]; - f8b[5] = buf[pos + 2]; - f8b[4] = buf[pos + 3]; - f8b[3] = buf[pos + 4]; - f8b[2] = buf[pos + 5]; - f8b[1] = buf[pos + 6]; - f8b[0] = buf[pos + 7]; - return f64[0]; - } - - /* istanbul ignore next */ - exports.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev; - /* istanbul ignore next */ - exports.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy; - - // double: ieee754 - })(); else (function() { - - function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) { - var sign = val < 0 ? 1 : 0; - if (sign) - val = -val; - if (val === 0) { - writeUint(0, buf, pos + off0); - writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos + off1); - } else if (isNaN(val)) { - writeUint(0, buf, pos + off0); - writeUint(2146959360, buf, pos + off1); - } else if (val > 1.7976931348623157e+308) { // +-Infinity - writeUint(0, buf, pos + off0); - writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1); - } else { - var mantissa; - if (val < 2.2250738585072014e-308) { // denormal - mantissa = val / 5e-324; - writeUint(mantissa >>> 0, buf, pos + off0); - writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1); - } else { - var exponent = Math.floor(Math.log(val) / Math.LN2); - if (exponent === 1024) - exponent = 1023; - mantissa = val * Math.pow(2, -exponent); - writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0); - writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1); - } - } - } - - exports.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4); - exports.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0); - - function readDouble_ieee754(readUint, off0, off1, buf, pos) { - var lo = readUint(buf, pos + off0), - hi = readUint(buf, pos + off1); - var sign = (hi >> 31) * 2 + 1, - exponent = hi >>> 20 & 2047, - mantissa = 4294967296 * (hi & 1048575) + lo; - return exponent === 2047 - ? mantissa - ? NaN - : sign * Infinity - : exponent === 0 // denormal - ? sign * 5e-324 * mantissa - : sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496); - } - - exports.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4); - exports.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0); - - })(); - - return exports; -} - -// uint helpers - -function writeUintLE(val, buf, pos) { - buf[pos ] = val & 255; - buf[pos + 1] = val >>> 8 & 255; - buf[pos + 2] = val >>> 16 & 255; - buf[pos + 3] = val >>> 24; -} - -function writeUintBE(val, buf, pos) { - buf[pos ] = val >>> 24; - buf[pos + 1] = val >>> 16 & 255; - buf[pos + 2] = val >>> 8 & 255; - buf[pos + 3] = val & 255; -} - -function readUintLE(buf, pos) { - return (buf[pos ] - | buf[pos + 1] << 8 - | buf[pos + 2] << 16 - | buf[pos + 3] << 24) >>> 0; -} - -function readUintBE(buf, pos) { - return (buf[pos ] << 24 - | buf[pos + 1] << 16 - | buf[pos + 2] << 8 - | buf[pos + 3]) >>> 0; -} - - -/***/ }), - -/***/ 77206: -/***/ ((module) => { - -"use strict"; - -module.exports = inquire; - -/** - * Requires a module only if available. - * @memberof util - * @param {string} moduleName Module to require - * @returns {?Object} Required module if available and not empty, otherwise `null` - */ -function inquire(moduleName) { - try { - var mod = eval("quire".replace(/^/,"re"))(moduleName); // eslint-disable-line no-eval - if (mod && (mod.length || Object.keys(mod).length)) - return mod; - } catch (e) {} // eslint-disable-line no-empty - return null; -} - - -/***/ }), - -/***/ 66090: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -/** - * A minimal path module to resolve Unix, Windows and URL paths alike. - * @memberof util - * @namespace - */ -var path = exports; - -var isAbsolute = -/** - * Tests if the specified path is absolute. - * @param {string} path Path to test - * @returns {boolean} `true` if path is absolute - */ -path.isAbsolute = function isAbsolute(path) { - return /^(?:\/|\w+:)/.test(path); -}; - -var normalize = -/** - * Normalizes the specified path. - * @param {string} path Path to normalize - * @returns {string} Normalized path - */ -path.normalize = function normalize(path) { - path = path.replace(/\\/g, "/") - .replace(/\/{2,}/g, "/"); - var parts = path.split("/"), - absolute = isAbsolute(path), - prefix = ""; - if (absolute) - prefix = parts.shift() + "/"; - for (var i = 0; i < parts.length;) { - if (parts[i] === "..") { - if (i > 0 && parts[i - 1] !== "..") - parts.splice(--i, 2); - else if (absolute) - parts.splice(i, 1); - else - ++i; - } else if (parts[i] === ".") - parts.splice(i, 1); - else - ++i; - } - return prefix + parts.join("/"); -}; - -/** - * Resolves the specified include path against the specified origin path. - * @param {string} originPath Path to the origin file - * @param {string} includePath Include path relative to origin path - * @param {boolean} [alreadyNormalized=false] `true` if both paths are already known to be normalized - * @returns {string} Path to the include file - */ -path.resolve = function resolve(originPath, includePath, alreadyNormalized) { - if (!alreadyNormalized) - includePath = normalize(includePath); - if (isAbsolute(includePath)) - return includePath; - if (!alreadyNormalized) - originPath = normalize(originPath); - return (originPath = originPath.replace(/(?:\/|^)[^/]+$/, "")).length ? normalize(originPath + "/" + includePath) : includePath; -}; - - -/***/ }), - -/***/ 56239: -/***/ ((module) => { - -"use strict"; - -module.exports = pool; - -/** - * An allocator as used by {@link util.pool}. - * @typedef PoolAllocator - * @type {function} - * @param {number} size Buffer size - * @returns {Uint8Array} Buffer - */ - -/** - * A slicer as used by {@link util.pool}. - * @typedef PoolSlicer - * @type {function} - * @param {number} start Start offset - * @param {number} end End offset - * @returns {Uint8Array} Buffer slice - * @this {Uint8Array} - */ - -/** - * A general purpose buffer pool. - * @memberof util - * @function - * @param {PoolAllocator} alloc Allocator - * @param {PoolSlicer} slice Slicer - * @param {number} [size=8192] Slab size - * @returns {PoolAllocator} Pooled allocator - */ -function pool(alloc, slice, size) { - var SIZE = size || 8192; - var MAX = SIZE >>> 1; - var slab = null; - var offset = SIZE; - return function pool_alloc(size) { - if (size < 1 || size > MAX) - return alloc(size); - if (offset + size > SIZE) { - slab = alloc(SIZE); - offset = 0; - } - var buf = slice.call(slab, offset, offset += size); - if (offset & 7) // align to 32 bit - offset = (offset | 7) + 1; - return buf; - }; -} - - -/***/ }), - -/***/ 70958: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -/** - * A minimal UTF8 implementation for number arrays. - * @memberof util - * @namespace - */ -var utf8 = exports; - -/** - * Calculates the UTF8 byte length of a string. - * @param {string} string String - * @returns {number} Byte length - */ -utf8.length = function utf8_length(string) { - var len = 0, - c = 0; - for (var i = 0; i < string.length; ++i) { - c = string.charCodeAt(i); - if (c < 128) - len += 1; - else if (c < 2048) - len += 2; - else if ((c & 0xFC00) === 0xD800 && (string.charCodeAt(i + 1) & 0xFC00) === 0xDC00) { - ++i; - len += 4; - } else - len += 3; - } - return len; -}; - -/** - * Reads UTF8 bytes as a string. - * @param {Uint8Array} buffer Source buffer - * @param {number} start Source start - * @param {number} end Source end - * @returns {string} String read - */ -utf8.read = function utf8_read(buffer, start, end) { - var len = end - start; - if (len < 1) - return ""; - var parts = null, - chunk = [], - i = 0, // char offset - t; // temporary - while (start < end) { - t = buffer[start++]; - if (t < 128) - chunk[i++] = t; - else if (t > 191 && t < 224) - chunk[i++] = (t & 31) << 6 | buffer[start++] & 63; - else if (t > 239 && t < 365) { - t = ((t & 7) << 18 | (buffer[start++] & 63) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63) - 0x10000; - chunk[i++] = 0xD800 + (t >> 10); - chunk[i++] = 0xDC00 + (t & 1023); - } else - chunk[i++] = (t & 15) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63; - if (i > 8191) { - (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk)); - i = 0; - } - } - if (parts) { - if (i) - parts.push(String.fromCharCode.apply(String, chunk.slice(0, i))); - return parts.join(""); - } - return String.fromCharCode.apply(String, chunk.slice(0, i)); -}; - -/** - * Writes a string as UTF8 bytes. - * @param {string} string Source string - * @param {Uint8Array} buffer Destination buffer - * @param {number} offset Destination offset - * @returns {number} Bytes written - */ -utf8.write = function utf8_write(string, buffer, offset) { - var start = offset, - c1, // character 1 - c2; // character 2 - for (var i = 0; i < string.length; ++i) { - c1 = string.charCodeAt(i); - if (c1 < 128) { - buffer[offset++] = c1; - } else if (c1 < 2048) { - buffer[offset++] = c1 >> 6 | 192; - buffer[offset++] = c1 & 63 | 128; - } else if ((c1 & 0xFC00) === 0xD800 && ((c2 = string.charCodeAt(i + 1)) & 0xFC00) === 0xDC00) { - c1 = 0x10000 + ((c1 & 0x03FF) << 10) + (c2 & 0x03FF); - ++i; - buffer[offset++] = c1 >> 18 | 240; - buffer[offset++] = c1 >> 12 & 63 | 128; - buffer[offset++] = c1 >> 6 & 63 | 128; - buffer[offset++] = c1 & 63 | 128; - } else { - buffer[offset++] = c1 >> 12 | 224; - buffer[offset++] = c1 >> 6 & 63 | 128; - buffer[offset++] = c1 & 63 | 128; - } - } - return offset - start; -}; - - -/***/ }), - -/***/ 90868: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.req = exports.json = exports.toBuffer = void 0; -const http = __importStar(__nccwpck_require__(58611)); -const https = __importStar(__nccwpck_require__(65692)); -async function toBuffer(stream) { - let length = 0; - const chunks = []; - for await (const chunk of stream) { - length += chunk.length; - chunks.push(chunk); - } - return Buffer.concat(chunks, length); -} -exports.toBuffer = toBuffer; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -async function json(stream) { - const buf = await toBuffer(stream); - const str = buf.toString('utf8'); - try { - return JSON.parse(str); - } - catch (_err) { - const err = _err; - err.message += ` (input: ${str})`; - throw err; - } -} -exports.json = json; -function req(url, opts = {}) { - const href = typeof url === 'string' ? url : url.href; - const req = (href.startsWith('https:') ? https : http).request(url, opts); - const promise = new Promise((resolve, reject) => { - req - .once('response', resolve) - .once('error', reject) - .end(); - }); - req.then = promise.then.bind(promise); - return req; -} -exports.req = req; -//# sourceMappingURL=helpers.js.map - -/***/ }), - -/***/ 35209: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Agent = void 0; -const net = __importStar(__nccwpck_require__(69278)); -const http = __importStar(__nccwpck_require__(58611)); -const https_1 = __nccwpck_require__(65692); -__exportStar(__nccwpck_require__(90868), exports); -const INTERNAL = Symbol('AgentBaseInternalState'); -class Agent extends http.Agent { - constructor(opts) { - super(opts); - this[INTERNAL] = {}; - } - /** - * Determine whether this is an `http` or `https` request. - */ - isSecureEndpoint(options) { - if (options) { - // First check the `secureEndpoint` property explicitly, since this - // means that a parent `Agent` is "passing through" to this instance. - // eslint-disable-next-line @typescript-eslint/no-explicit-any - if (typeof options.secureEndpoint === 'boolean') { - return options.secureEndpoint; - } - // If no explicit `secure` endpoint, check if `protocol` property is - // set. This will usually be the case since using a full string URL - // or `URL` instance should be the most common usage. - if (typeof options.protocol === 'string') { - return options.protocol === 'https:'; - } - } - // Finally, if no `protocol` property was set, then fall back to - // checking the stack trace of the current call stack, and try to - // detect the "https" module. - const { stack } = new Error(); - if (typeof stack !== 'string') - return false; - return stack - .split('\n') - .some((l) => l.indexOf('(https.js:') !== -1 || - l.indexOf('node:https:') !== -1); - } - // In order to support async signatures in `connect()` and Node's native - // connection pooling in `http.Agent`, the array of sockets for each origin - // has to be updated synchronously. This is so the length of the array is - // accurate when `addRequest()` is next called. We achieve this by creating a - // fake socket and adding it to `sockets[origin]` and incrementing - // `totalSocketCount`. - incrementSockets(name) { - // If `maxSockets` and `maxTotalSockets` are both Infinity then there is no - // need to create a fake socket because Node.js native connection pooling - // will never be invoked. - if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) { - return null; - } - // All instances of `sockets` are expected TypeScript errors. The - // alternative is to add it as a private property of this class but that - // will break TypeScript subclassing. - if (!this.sockets[name]) { - // @ts-expect-error `sockets` is readonly in `@types/node` - this.sockets[name] = []; - } - const fakeSocket = new net.Socket({ writable: false }); - this.sockets[name].push(fakeSocket); - // @ts-expect-error `totalSocketCount` isn't defined in `@types/node` - this.totalSocketCount++; - return fakeSocket; - } - decrementSockets(name, socket) { - if (!this.sockets[name] || socket === null) { - return; - } - const sockets = this.sockets[name]; - const index = sockets.indexOf(socket); - if (index !== -1) { - sockets.splice(index, 1); - // @ts-expect-error `totalSocketCount` isn't defined in `@types/node` - this.totalSocketCount--; - if (sockets.length === 0) { - // @ts-expect-error `sockets` is readonly in `@types/node` - delete this.sockets[name]; - } - } - } - // In order to properly update the socket pool, we need to call `getName()` on - // the core `https.Agent` if it is a secureEndpoint. - getName(options) { - const secureEndpoint = this.isSecureEndpoint(options); - if (secureEndpoint) { - // @ts-expect-error `getName()` isn't defined in `@types/node` - return https_1.Agent.prototype.getName.call(this, options); - } - // @ts-expect-error `getName()` isn't defined in `@types/node` - return super.getName(options); - } - createSocket(req, options, cb) { - const connectOpts = { - ...options, - secureEndpoint: this.isSecureEndpoint(options), - }; - const name = this.getName(connectOpts); - const fakeSocket = this.incrementSockets(name); - Promise.resolve() - .then(() => this.connect(req, connectOpts)) - .then((socket) => { - this.decrementSockets(name, fakeSocket); - if (socket instanceof http.Agent) { - try { - // @ts-expect-error `addRequest()` isn't defined in `@types/node` - return socket.addRequest(req, connectOpts); - } - catch (err) { - return cb(err); - } - } - this[INTERNAL].currentSocket = socket; - // @ts-expect-error `createSocket()` isn't defined in `@types/node` - super.createSocket(req, options, cb); - }, (err) => { - this.decrementSockets(name, fakeSocket); - cb(err); - }); - } - createConnection() { - const socket = this[INTERNAL].currentSocket; - this[INTERNAL].currentSocket = undefined; - if (!socket) { - throw new Error('No socket was returned in the `connect()` function'); - } - return socket; - } - get defaultPort() { - return (this[INTERNAL].defaultPort ?? - (this.protocol === 'https:' ? 443 : 80)); - } - set defaultPort(v) { - if (this[INTERNAL]) { - this[INTERNAL].defaultPort = v; - } - } - get protocol() { - return (this[INTERNAL].protocol ?? - (this.isSecureEndpoint() ? 'https:' : 'http:')); - } - set protocol(v) { - if (this[INTERNAL]) { - this[INTERNAL].protocol = v; - } - } -} -exports.Agent = Agent; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 15588: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.HttpsProxyAgent = void 0; -const net = __importStar(__nccwpck_require__(69278)); -const tls = __importStar(__nccwpck_require__(64756)); -const assert_1 = __importDefault(__nccwpck_require__(42613)); -const debug_1 = __importDefault(__nccwpck_require__(2830)); -const agent_base_1 = __nccwpck_require__(35209); -const url_1 = __nccwpck_require__(87016); -const parse_proxy_response_1 = __nccwpck_require__(51632); -const debug = (0, debug_1.default)('https-proxy-agent'); -const setServernameFromNonIpHost = (options) => { - if (options.servername === undefined && - options.host && - !net.isIP(options.host)) { - return { - ...options, - servername: options.host, - }; - } - return options; -}; -/** - * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to - * the specified "HTTP(s) proxy server" in order to proxy HTTPS requests. - * - * Outgoing HTTP requests are first tunneled through the proxy server using the - * `CONNECT` HTTP request method to establish a connection to the proxy server, - * and then the proxy server connects to the destination target and issues the - * HTTP request from the proxy server. - * - * `https:` requests have their socket connection upgraded to TLS once - * the connection to the proxy server has been established. - */ -class HttpsProxyAgent extends agent_base_1.Agent { - constructor(proxy, opts) { - super(opts); - this.options = { path: undefined }; - this.proxy = typeof proxy === 'string' ? new url_1.URL(proxy) : proxy; - this.proxyHeaders = opts?.headers ?? {}; - debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href); - // Trim off the brackets from IPv6 addresses - const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, ''); - const port = this.proxy.port - ? parseInt(this.proxy.port, 10) - : this.proxy.protocol === 'https:' - ? 443 - : 80; - this.connectOpts = { - // Attempt to negotiate http/1.1 for proxy servers that support http/2 - ALPNProtocols: ['http/1.1'], - ...(opts ? omit(opts, 'headers') : null), - host, - port, - }; - } - /** - * Called when the node-core HTTP client library is creating a - * new HTTP request. - */ - async connect(req, opts) { - const { proxy } = this; - if (!opts.host) { - throw new TypeError('No "host" provided'); - } - // Create a socket connection to the proxy server. - let socket; - if (proxy.protocol === 'https:') { - debug('Creating `tls.Socket`: %o', this.connectOpts); - socket = tls.connect(setServernameFromNonIpHost(this.connectOpts)); - } - else { - debug('Creating `net.Socket`: %o', this.connectOpts); - socket = net.connect(this.connectOpts); - } - const headers = typeof this.proxyHeaders === 'function' - ? this.proxyHeaders() - : { ...this.proxyHeaders }; - const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host; - let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\r\n`; - // Inject the `Proxy-Authorization` header if necessary. - if (proxy.username || proxy.password) { - const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`; - headers['Proxy-Authorization'] = `Basic ${Buffer.from(auth).toString('base64')}`; - } - headers.Host = `${host}:${opts.port}`; - if (!headers['Proxy-Connection']) { - headers['Proxy-Connection'] = this.keepAlive - ? 'Keep-Alive' - : 'close'; - } - for (const name of Object.keys(headers)) { - payload += `${name}: ${headers[name]}\r\n`; - } - const proxyResponsePromise = (0, parse_proxy_response_1.parseProxyResponse)(socket); - socket.write(`${payload}\r\n`); - const { connect, buffered } = await proxyResponsePromise; - req.emit('proxyConnect', connect); - this.emit('proxyConnect', connect, req); - if (connect.statusCode === 200) { - req.once('socket', resume); - if (opts.secureEndpoint) { - // The proxy is connecting to a TLS server, so upgrade - // this socket connection to a TLS connection. - debug('Upgrading socket connection to TLS'); - return tls.connect({ - ...omit(setServernameFromNonIpHost(opts), 'host', 'path', 'port'), - socket, - }); - } - return socket; - } - // Some other status code that's not 200... need to re-play the HTTP - // header "data" events onto the socket once the HTTP machinery is - // attached so that the node core `http` can parse and handle the - // error status code. - // Close the original socket, and a new "fake" socket is returned - // instead, so that the proxy doesn't get the HTTP request - // written to it (which may contain `Authorization` headers or other - // sensitive data). - // - // See: https://hackerone.com/reports/541502 - socket.destroy(); - const fakeSocket = new net.Socket({ writable: false }); - fakeSocket.readable = true; - // Need to wait for the "socket" event to re-play the "data" events. - req.once('socket', (s) => { - debug('Replaying proxy buffer for failed request'); - (0, assert_1.default)(s.listenerCount('data') > 0); - // Replay the "buffered" Buffer onto the fake `socket`, since at - // this point the HTTP module machinery has been hooked up for - // the user. - s.push(buffered); - s.push(null); - }); - return fakeSocket; - } -} -HttpsProxyAgent.protocols = ['http', 'https']; -exports.HttpsProxyAgent = HttpsProxyAgent; -function resume(socket) { - socket.resume(); -} -function omit(obj, ...keys) { - const ret = {}; - let key; - for (key in obj) { - if (!keys.includes(key)) { - ret[key] = obj[key]; - } - } - return ret; -} -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 51632: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.parseProxyResponse = void 0; -const debug_1 = __importDefault(__nccwpck_require__(2830)); -const debug = (0, debug_1.default)('https-proxy-agent:parse-proxy-response'); -function parseProxyResponse(socket) { - return new Promise((resolve, reject) => { - // we need to buffer any HTTP traffic that happens with the proxy before we get - // the CONNECT response, so that if the response is anything other than an "200" - // response code, then we can re-play the "data" events on the socket once the - // HTTP parser is hooked up... - let buffersLength = 0; - const buffers = []; - function read() { - const b = socket.read(); - if (b) - ondata(b); - else - socket.once('readable', read); - } - function cleanup() { - socket.removeListener('end', onend); - socket.removeListener('error', onerror); - socket.removeListener('readable', read); - } - function onend() { - cleanup(); - debug('onend'); - reject(new Error('Proxy connection ended before receiving CONNECT response')); - } - function onerror(err) { - cleanup(); - debug('onerror %o', err); - reject(err); - } - function ondata(b) { - buffers.push(b); - buffersLength += b.length; - const buffered = Buffer.concat(buffers, buffersLength); - const endOfHeaders = buffered.indexOf('\r\n\r\n'); - if (endOfHeaders === -1) { - // keep buffering - debug('have not received end of HTTP headers yet...'); - read(); - return; - } - const headerParts = buffered - .slice(0, endOfHeaders) - .toString('ascii') - .split('\r\n'); - const firstLine = headerParts.shift(); - if (!firstLine) { - socket.destroy(); - return reject(new Error('No header received from proxy CONNECT response')); - } - const firstLineParts = firstLine.split(' '); - const statusCode = +firstLineParts[1]; - const statusText = firstLineParts.slice(2).join(' '); - const headers = {}; - for (const header of headerParts) { - if (!header) - continue; - const firstColon = header.indexOf(':'); - if (firstColon === -1) { - socket.destroy(); - return reject(new Error(`Invalid header from proxy CONNECT response: "${header}"`)); - } - const key = header.slice(0, firstColon).toLowerCase(); - const value = header.slice(firstColon + 1).trimStart(); - const current = headers[key]; - if (typeof current === 'string') { - headers[key] = [current, value]; - } - else if (Array.isArray(current)) { - current.push(value); - } - else { - headers[key] = value; - } - } - debug('got proxy server response: %o %o', firstLine, headers); - cleanup(); - resolve({ - connect: { - statusCode, - statusText, - headers, - }, - buffered, - }); - } - socket.on('error', onerror); - socket.on('end', onend); - read(); - }); -} -exports.parseProxyResponse = parseProxyResponse; -//# sourceMappingURL=parse-proxy-response.js.map - -/***/ }), - -/***/ 17413: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; -/** - * @author Toru Nagashima - * See LICENSE file in root directory for full license. - */ - - -Object.defineProperty(exports, "__esModule", ({ value: true })); - -var eventTargetShim = __nccwpck_require__(16577); - -/** - * The signal class. - * @see https://dom.spec.whatwg.org/#abortsignal - */ -class AbortSignal extends eventTargetShim.EventTarget { - /** - * AbortSignal cannot be constructed directly. - */ - constructor() { - super(); - throw new TypeError("AbortSignal cannot be constructed directly"); - } - /** - * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise. - */ - get aborted() { - const aborted = abortedFlags.get(this); - if (typeof aborted !== "boolean") { - throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`); - } - return aborted; - } -} -eventTargetShim.defineEventAttribute(AbortSignal.prototype, "abort"); -/** - * Create an AbortSignal object. - */ -function createAbortSignal() { - const signal = Object.create(AbortSignal.prototype); - eventTargetShim.EventTarget.call(signal); - abortedFlags.set(signal, false); - return signal; -} -/** - * Abort a given signal. - */ -function abortSignal(signal) { - if (abortedFlags.get(signal) !== false) { - return; - } - abortedFlags.set(signal, true); - signal.dispatchEvent({ type: "abort" }); -} -/** - * Aborted flag for each instances. - */ -const abortedFlags = new WeakMap(); -// Properties should be enumerable. -Object.defineProperties(AbortSignal.prototype, { - aborted: { enumerable: true }, -}); -// `toString()` should return `"[object AbortSignal]"` -if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") { - Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, { - configurable: true, - value: "AbortSignal", - }); -} - -/** - * The AbortController. - * @see https://dom.spec.whatwg.org/#abortcontroller - */ -class AbortController { - /** - * Initialize this controller. - */ - constructor() { - signals.set(this, createAbortSignal()); - } - /** - * Returns the `AbortSignal` object associated with this object. - */ - get signal() { - return getSignal(this); - } - /** - * Abort and signal to any observers that the associated activity is to be aborted. - */ - abort() { - abortSignal(getSignal(this)); - } -} -/** - * Associated signals. - */ -const signals = new WeakMap(); -/** - * Get the associated signal of a given controller. - */ -function getSignal(controller) { - const signal = signals.get(controller); - if (signal == null) { - throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? "null" : typeof controller}`); - } - return signal; -} -// Properties should be enumerable. -Object.defineProperties(AbortController.prototype, { - signal: { enumerable: true }, - abort: { enumerable: true }, -}); -if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") { - Object.defineProperty(AbortController.prototype, Symbol.toStringTag, { - configurable: true, - value: "AbortController", - }); -} - -exports.AbortController = AbortController; -exports.AbortSignal = AbortSignal; -exports["default"] = AbortController; - -module.exports = AbortController -module.exports.AbortController = module.exports["default"] = AbortController -module.exports.AbortSignal = AbortSignal -//# sourceMappingURL=abort-controller.js.map - - -/***/ }), - -/***/ 8207: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -const events_1 = __nccwpck_require__(24434); -const debug_1 = __importDefault(__nccwpck_require__(2830)); -const promisify_1 = __importDefault(__nccwpck_require__(98067)); -const debug = debug_1.default('agent-base'); -function isAgent(v) { - return Boolean(v) && typeof v.addRequest === 'function'; -} -function isSecureEndpoint() { - const { stack } = new Error(); - if (typeof stack !== 'string') - return false; - return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1); -} -function createAgent(callback, opts) { - return new createAgent.Agent(callback, opts); -} -(function (createAgent) { - /** - * Base `http.Agent` implementation. - * No pooling/keep-alive is implemented by default. - * - * @param {Function} callback - * @api public - */ - class Agent extends events_1.EventEmitter { - constructor(callback, _opts) { - super(); - let opts = _opts; - if (typeof callback === 'function') { - this.callback = callback; - } - else if (callback) { - opts = callback; - } - // Timeout for the socket to be returned from the callback - this.timeout = null; - if (opts && typeof opts.timeout === 'number') { - this.timeout = opts.timeout; - } - // These aren't actually used by `agent-base`, but are required - // for the TypeScript definition files in `@types/node` :/ - this.maxFreeSockets = 1; - this.maxSockets = 1; - this.maxTotalSockets = Infinity; - this.sockets = {}; - this.freeSockets = {}; - this.requests = {}; - this.options = {}; - } - get defaultPort() { - if (typeof this.explicitDefaultPort === 'number') { - return this.explicitDefaultPort; - } - return isSecureEndpoint() ? 443 : 80; - } - set defaultPort(v) { - this.explicitDefaultPort = v; - } - get protocol() { - if (typeof this.explicitProtocol === 'string') { - return this.explicitProtocol; - } - return isSecureEndpoint() ? 'https:' : 'http:'; - } - set protocol(v) { - this.explicitProtocol = v; - } - callback(req, opts, fn) { - throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`'); - } - /** - * Called by node-core's "_http_client.js" module when creating - * a new HTTP request with this Agent instance. - * - * @api public - */ - addRequest(req, _opts) { - const opts = Object.assign({}, _opts); - if (typeof opts.secureEndpoint !== 'boolean') { - opts.secureEndpoint = isSecureEndpoint(); - } - if (opts.host == null) { - opts.host = 'localhost'; - } - if (opts.port == null) { - opts.port = opts.secureEndpoint ? 443 : 80; - } - if (opts.protocol == null) { - opts.protocol = opts.secureEndpoint ? 'https:' : 'http:'; - } - if (opts.host && opts.path) { - // If both a `host` and `path` are specified then it's most - // likely the result of a `url.parse()` call... we need to - // remove the `path` portion so that `net.connect()` doesn't - // attempt to open that as a unix socket file. - delete opts.path; - } - delete opts.agent; - delete opts.hostname; - delete opts._defaultAgent; - delete opts.defaultPort; - delete opts.createConnection; - // Hint to use "Connection: close" - // XXX: non-documented `http` module API :( - req._last = true; - req.shouldKeepAlive = false; - let timedOut = false; - let timeoutId = null; - const timeoutMs = opts.timeout || this.timeout; - const onerror = (err) => { - if (req._hadError) - return; - req.emit('error', err); - // For Safety. Some additional errors might fire later on - // and we need to make sure we don't double-fire the error event. - req._hadError = true; - }; - const ontimeout = () => { - timeoutId = null; - timedOut = true; - const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`); - err.code = 'ETIMEOUT'; - onerror(err); - }; - const callbackError = (err) => { - if (timedOut) - return; - if (timeoutId !== null) { - clearTimeout(timeoutId); - timeoutId = null; - } - onerror(err); - }; - const onsocket = (socket) => { - if (timedOut) - return; - if (timeoutId != null) { - clearTimeout(timeoutId); - timeoutId = null; - } - if (isAgent(socket)) { - // `socket` is actually an `http.Agent` instance, so - // relinquish responsibility for this `req` to the Agent - // from here on - debug('Callback returned another Agent instance %o', socket.constructor.name); - socket.addRequest(req, opts); - return; - } - if (socket) { - socket.once('free', () => { - this.freeSocket(socket, opts); - }); - req.onSocket(socket); - return; - } - const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``); - onerror(err); - }; - if (typeof this.callback !== 'function') { - onerror(new Error('`callback` is not defined')); - return; - } - if (!this.promisifiedCallback) { - if (this.callback.length >= 3) { - debug('Converting legacy callback function to promise'); - this.promisifiedCallback = promisify_1.default(this.callback); - } - else { - this.promisifiedCallback = this.callback; - } - } - if (typeof timeoutMs === 'number' && timeoutMs > 0) { - timeoutId = setTimeout(ontimeout, timeoutMs); - } - if ('port' in opts && typeof opts.port !== 'number') { - opts.port = Number(opts.port); - } - try { - debug('Resolving socket for %o request: %o', opts.protocol, `${req.method} ${req.path}`); - Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError); - } - catch (err) { - Promise.reject(err).catch(callbackError); - } - } - freeSocket(socket, opts) { - debug('Freeing socket %o %o', socket.constructor.name, opts); - socket.destroy(); - } - destroy() { - debug('Destroying agent %o', this.constructor.name); - } - } - createAgent.Agent = Agent; - // So that `instanceof` works correctly - createAgent.prototype = createAgent.Agent.prototype; -})(createAgent || (createAgent = {})); -module.exports = createAgent; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 98067: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -function promisify(fn) { - return function (req, opts) { - return new Promise((resolve, reject) => { - fn.call(this, req, opts, (err, rtn) => { - if (err) { - reject(err); - } - else { - resolve(rtn); - } - }); - }); - }; -} -exports["default"] = promisify; -//# sourceMappingURL=promisify.js.map - -/***/ }), - -/***/ 91195: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - - -const AWS = __nccwpck_require__(62605) -const aws4 = __nccwpck_require__(88832) -const { GoogleAuth } = __nccwpck_require__(492); -const { DefaultAzureCredential } = __nccwpck_require__(35261); -const { IAMCredentialsClient } = __nccwpck_require__(58815) - -async function getCloudId(acc_type, param) { - if (acc_type === "aws_iam") { - return getAWsCloudId() - } else if (acc_type === "azure_ad") { - return getAzureCloudID(param) - } else if (acc_type === "gcp") { - return getGcpCloudID(param) - } else if (acc_type === "access_key") { - return "" - } else { - throw new Error("Invalid access type") - } -} - -async function getAzureCloudID(object_id) { - - const credential = new DefaultAzureCredential(); - - const scope = "https://management.azure.com/.default"; - const token = await credential.getToken(scope); - - return Buffer.from(token.token).toString('base64') -} - - -async function getGcpCloudID(audience) { - if (!audience) { - audience = "akeyless.io" - } - - const googleAuth = new GoogleAuth(); - const client = await googleAuth.getClient(); - let token; - - if (typeof client.fetchIdToken === 'function') { - token = await client.fetchIdToken(audience); - } else if (client.serviceAccountImpersonationUrl) { - // WIF: get ID token via IAM Credentials API. - // URL format: https://iamcredentials.googleapis.com/v1/{name=projects/*/serviceAccounts/*}:generateAccessToken - const url = client.serviceAccountImpersonationUrl; - const name = url.match(/projects\/[^:]+/)?.[0]; - if (!name) throw new Error('Invalid serviceAccountImpersonationUrl format'); - const [resp] = await new IAMCredentialsClient().generateIdToken({ - name, - audience, - includeEmail: true - }); - token = resp.token; - } else { - // Get ID token via getIdTokenClient (for google-auth-library clients types: JWT, GCE, Impersonated). - const idTokenClient = await googleAuth.getIdTokenClient(audience); - const headers = await idTokenClient.getRequestHeaders(); - token = headers.Authorization.replace('Bearer ', ''); - } - return Buffer.from(token).toString('base64') -} - -function getAWsCloudId() { - return new Promise((resolve, reject) => { - AWS.config.getCredentials(function (err) { - if (err) { - reject(err) - } else { - const result = stsGetCallerIdentity(AWS.config.credentials) - resolve(result) - } - }) - }) -} - -function stsGetCallerIdentity(creds) { - - const opts3 = { method: 'POST', service: 'sts', body: 'Action=GetCallerIdentity&Version=2011-06-15', region: 'us-east-1' } - opts3.headers = { - "Content-Length": opts3.body.length, - "Content-Type": 'application/x-www-form-urlencoded; charset=utf-8', - } - aws4.sign(opts3, creds) - - const h = { - 'Authorization': [opts3.headers['Authorization']], - 'Content-Length': [opts3.body.length.toString()], - 'Host': [opts3.headers['Host']], - 'Content-Type': [opts3.headers['Content-Type']], - 'X-Amz-Date': [opts3.headers['X-Amz-Date']], - } - if (creds.sessionToken) { - h['X-Amz-Security-Token'] = [creds.sessionToken]; - } - const myheaders = JSON.stringify(h); - - const obj = { - 'sts_request_method': 'POST', - 'sts_request_url': Buffer.from('https://sts.amazonaws.com/').toString('base64'), - 'sts_request_body': Buffer.from('Action=GetCallerIdentity&Version=2011-06-15').toString('base64'), - 'sts_request_headers': Buffer.from(myheaders).toString('base64') - }; - const awsData = JSON.stringify(obj) - return Buffer.from(awsData).toString('base64') -} - - -module.exports = { - getAWsCloudId: getAWsCloudId, - getAzureCloudID: getAzureCloudID, - getGcpCloudID: getGcpCloudID, - getCloudId: getCloudId, -} - - -/***/ }), - -/***/ 59327: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _superagent = _interopRequireDefault(__nccwpck_require__(9653)); - -var _querystring = _interopRequireDefault(__nccwpck_require__(83480)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** -* @module ApiClient -* @version 3.3.16 -*/ - -/** -* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an -* application to use this class directly - the *Api and model classes provide the public API for the service. The -* contents of this file should be regarded as internal but are documented for completeness. -* @alias module:ApiClient -* @class -*/ -var ApiClient = /*#__PURE__*/function () { - function ApiClient() { - _classCallCheck(this, ApiClient); - - /** - * The base URL against which to resolve every API call's (relative) path. - * @type {String} - * @default https://api.akeyless.io - */ - this.basePath = 'https://api.akeyless.io'.replace(/\/+$/, ''); - /** - * The authentication methods to be included for all API calls. - * @type {Array.} - */ - - this.authentications = {}; - /** - * The default HTTP headers to be included for all API calls. - * @type {Array.} - * @default {} - */ - - this.defaultHeaders = {}; - /** - * The default HTTP timeout for all API calls. - * @type {Number} - * @default 60000 - */ - - this.timeout = 60000; - /** - * If set to false an additional timestamp parameter is added to all API GET calls to - * prevent browser caching - * @type {Boolean} - * @default true - */ - - this.cache = true; - /** - * If set to true, the client will save the cookies from each server - * response, and return them in the next request. - * @default false - */ - - this.enableCookies = false; - /* - * Used to save and return cookies in a node.js (non-browser) setting, - * if this.enableCookies is set to true. - */ - - if (typeof window === 'undefined') { - this.agent = new _superagent["default"].agent(); - } - /* - * Allow user to override superagent agent - */ - - - this.requestAgent = null; - /* - * Allow user to add superagent plugins - */ - - this.plugins = null; - } - /** - * Returns a string representation for an actual parameter. - * @param param The actual parameter. - * @returns {String} The string representation of param. - */ - - - _createClass(ApiClient, [{ - key: "paramToString", - value: function paramToString(param) { - if (param == undefined || param == null) { - return ''; - } - - if (param instanceof Date) { - return param.toJSON(); - } - - return param.toString(); - } - /** - * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. - * NOTE: query parameters are not handled here. - * @param {String} path The path to append to the base URL. - * @param {Object} pathParams The parameter values to append. - * @param {String} apiBasePath Base path defined in the path, operation level to override the default one - * @returns {String} The encoded path with parameter values substituted. - */ - - }, { - key: "buildUrl", - value: function buildUrl(path, pathParams, apiBasePath) { - var _this = this; - - if (!path.match(/^\//)) { - path = '/' + path; - } - - var url = this.basePath + path; // use API (operation, path) base path if defined - - if (apiBasePath !== null && apiBasePath !== undefined) { - url = apiBasePath + path; - } - - url = url.replace(/\{([\w-]+)\}/g, function (fullMatch, key) { - var value; - - if (pathParams.hasOwnProperty(key)) { - value = _this.paramToString(pathParams[key]); - } else { - value = fullMatch; - } - - return encodeURIComponent(value); - }); - return url; - } - /** - * Checks whether the given content type represents JSON.
- * JSON content type examples:
- *
    - *
  • application/json
  • - *
  • application/json; charset=UTF8
  • - *
  • APPLICATION/JSON
  • - *
- * @param {String} contentType The MIME content type to check. - * @returns {Boolean} true if contentType represents JSON, otherwise false. - */ - - }, { - key: "isJsonMime", - value: function isJsonMime(contentType) { - return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); - } - /** - * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. - * @param {Array.} contentTypes - * @returns {String} The chosen content type, preferring JSON. - */ - - }, { - key: "jsonPreferredMime", - value: function jsonPreferredMime(contentTypes) { - for (var i = 0; i < contentTypes.length; i++) { - if (this.isJsonMime(contentTypes[i])) { - return contentTypes[i]; - } - } - - return contentTypes[0]; - } - /** - * Checks whether the given parameter value represents file-like content. - * @param param The parameter to check. - * @returns {Boolean} true if param represents a file. - */ - - }, { - key: "isFileParam", - value: function isFileParam(param) { - // fs.ReadStream in Node.js and Electron (but not in runtime like browserify) - if (true) { - var fs; - - try { - fs = __nccwpck_require__(79896); - } catch (err) {} - - if (fs && fs.ReadStream && param instanceof fs.ReadStream) { - return true; - } - } // Buffer in Node.js - - - if (typeof Buffer === 'function' && param instanceof Buffer) { - return true; - } // Blob in browser - - - if (typeof Blob === 'function' && param instanceof Blob) { - return true; - } // File in browser (it seems File object is also instance of Blob, but keep this for safe) - - - if (typeof File === 'function' && param instanceof File) { - return true; - } - - return false; - } - /** - * Normalizes parameter values: - *
    - *
  • remove nils
  • - *
  • keep files and arrays
  • - *
  • format to string with `paramToString` for other cases
  • - *
- * @param {Object.} params The parameters as object properties. - * @returns {Object.} normalized parameters. - */ - - }, { - key: "normalizeParams", - value: function normalizeParams(params) { - var newParams = {}; - - for (var key in params) { - if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { - var value = params[key]; - - if (this.isFileParam(value) || Array.isArray(value)) { - newParams[key] = value; - } else { - newParams[key] = this.paramToString(value); - } - } - } - - return newParams; - } - /** - * Builds a string representation of an array-type actual parameter, according to the given collection format. - * @param {Array} param An array parameter. - * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. - * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns - * param as is if collectionFormat is multi. - */ - - }, { - key: "buildCollectionParam", - value: function buildCollectionParam(param, collectionFormat) { - if (param == null) { - return null; - } - - switch (collectionFormat) { - case 'csv': - return param.map(this.paramToString).join(','); - - case 'ssv': - return param.map(this.paramToString).join(' '); - - case 'tsv': - return param.map(this.paramToString).join('\t'); - - case 'pipes': - return param.map(this.paramToString).join('|'); - - case 'multi': - //return the array directly as SuperAgent will handle it as expected - return param.map(this.paramToString); - - default: - throw new Error('Unknown collection format: ' + collectionFormat); - } - } - /** - * Applies authentication headers to the request. - * @param {Object} request The request object created by a superagent() call. - * @param {Array.} authNames An array of authentication method names. - */ - - }, { - key: "applyAuthToRequest", - value: function applyAuthToRequest(request, authNames) { - var _this2 = this; - - authNames.forEach(function (authName) { - var auth = _this2.authentications[authName]; - - switch (auth.type) { - case 'basic': - if (auth.username || auth.password) { - request.auth(auth.username || '', auth.password || ''); - } - - break; - - case 'bearer': - if (auth.accessToken) { - request.set({ - 'Authorization': 'Bearer ' + auth.accessToken - }); - } - - break; - - case 'apiKey': - if (auth.apiKey) { - var data = {}; - - if (auth.apiKeyPrefix) { - data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; - } else { - data[auth.name] = auth.apiKey; - } - - if (auth['in'] === 'header') { - request.set(data); - } else { - request.query(data); - } - } - - break; - - case 'oauth2': - if (auth.accessToken) { - request.set({ - 'Authorization': 'Bearer ' + auth.accessToken - }); - } - - break; - - default: - throw new Error('Unknown authentication type: ' + auth.type); - } - }); - } - /** - * Deserializes an HTTP response body into a value of the specified type. - * @param {Object} response A SuperAgent response object. - * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types - * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To - * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: - * all properties on data will be converted to this type. - * @returns A value of the specified type. - */ - - }, { - key: "deserialize", - value: function deserialize(response, returnType) { - if (response == null || returnType == null || response.status == 204) { - return null; - } // Rely on SuperAgent for parsing response body. - // See http://visionmedia.github.io/superagent/#parsing-response-bodies - - - var data = response.body; - - if (data == null || _typeof(data) === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length) { - // SuperAgent does not always produce a body; use the unparsed response as a fallback - data = response.text; - } - - return ApiClient.convertToType(data, returnType); - } - /** - * Invokes the REST service using the supplied settings and parameters. - * @param {String} path The base URL to invoke. - * @param {String} httpMethod The HTTP method to use. - * @param {Object.} pathParams A map of path parameters and their values. - * @param {Object.} queryParams A map of query parameters and their values. - * @param {Object.} headerParams A map of header parameters and their values. - * @param {Object.} formParams A map of form parameters and their values. - * @param {Object} bodyParam The value to pass as the request body. - * @param {Array.} authNames An array of authentication type names. - * @param {Array.} contentTypes An array of request MIME types. - * @param {Array.} accepts An array of acceptable response MIME types. - * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the - * constructor for a complex type. - * @param {String} apiBasePath base path defined in the operation/path level to override the default one - * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object. - */ - - }, { - key: "callApi", - value: function callApi(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType, apiBasePath) { - var _this3 = this; - - var url = this.buildUrl(path, pathParams, apiBasePath); - var request = (0, _superagent["default"])(httpMethod, url); - - if (this.plugins !== null) { - for (var index in this.plugins) { - if (this.plugins.hasOwnProperty(index)) { - request.use(this.plugins[index]); - } - } - } // apply authentications - - - this.applyAuthToRequest(request, authNames); // set query parameters - - if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { - queryParams['_'] = new Date().getTime(); - } - - request.query(this.normalizeParams(queryParams)); // set header parameters - - request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); // set requestAgent if it is set by user - - if (this.requestAgent) { - request.agent(this.requestAgent); - } // set request timeout - - - request.timeout(this.timeout); - var contentType = this.jsonPreferredMime(contentTypes); - - if (contentType) { - // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) - if (contentType != 'multipart/form-data') { - request.type(contentType); - } - } - - if (contentType === 'application/x-www-form-urlencoded') { - request.send(_querystring["default"].stringify(this.normalizeParams(formParams))); - } else if (contentType == 'multipart/form-data') { - var _formParams = this.normalizeParams(formParams); - - for (var key in _formParams) { - if (_formParams.hasOwnProperty(key)) { - if (this.isFileParam(_formParams[key])) { - // file field - request.attach(key, _formParams[key]); - } else { - request.field(key, _formParams[key]); - } - } - } - } else if (bodyParam !== null && bodyParam !== undefined) { - if (!request.header['Content-Type']) { - request.type('application/json'); - } - - request.send(bodyParam); - } - - var accept = this.jsonPreferredMime(accepts); - - if (accept) { - request.accept(accept); - } - - if (returnType === 'Blob') { - request.responseType('blob'); - } else if (returnType === 'String') { - request.responseType('string'); - } // Attach previously saved cookies, if enabled - - - if (this.enableCookies) { - if (typeof window === 'undefined') { - this.agent._attachCookies(request); - } else { - request.withCredentials(); - } - } - - return new Promise(function (resolve, reject) { - request.end(function (error, response) { - if (error) { - var err = {}; - - if (response) { - err.status = response.status; - err.statusText = response.statusText; - err.body = response.body; - err.response = response; - } - - err.error = error; - reject(err); - } else { - try { - var data = _this3.deserialize(response, returnType); - - if (_this3.enableCookies && typeof window === 'undefined') { - _this3.agent._saveCookies(response); - } - - resolve({ - data: data, - response: response - }); - } catch (err) { - reject(err); - } - } - }); - }); - } - /** - * Parses an ISO-8601 string representation of a date value. - * @param {String} str The date value as a string. - * @returns {Date} The parsed date object. - */ - - }, { - key: "hostSettings", - - /** - * Gets an array of host settings - * @returns An array of host settings - */ - value: function hostSettings() { - return [{ - 'url': "https://api.akeyless.io/", - 'description': "No description provided" - }]; - } - }, { - key: "getBasePathFromSettings", - value: function getBasePathFromSettings(index) { - var variables = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var servers = this.hostSettings(); // check array index out of bound - - if (index < 0 || index >= servers.length) { - throw new Error("Invalid index " + index + " when selecting the host settings. Must be less than " + servers.length); - } - - var server = servers[index]; - var url = server['url']; // go through variable and assign a value - - for (var variable_name in server['variables']) { - if (variable_name in variables) { - var variable = server['variables'][variable_name]; - - if (!('enum_values' in variable) || variable['enum_values'].includes(variables[variable_name])) { - url = url.replace("{" + variable_name + "}", variables[variable_name]); - } else { - throw new Error("The variable `" + variable_name + "` in the host URL has invalid value " + variables[variable_name] + ". Must be " + server['variables'][variable_name]['enum_values'] + "."); - } - } else { - // use default value - url = url.replace("{" + variable_name + "}", server['variables'][variable_name]['default_value']); - } - } - - return url; - } - /** - * Constructs a new map or array model from REST data. - * @param data {Object|Array} The REST data. - * @param obj {Object|Array} The target object or array. - */ - - }], [{ - key: "parseDate", - value: function parseDate(str) { - return new Date(str); - } - /** - * Converts a value to the specified type. - * @param {(String|Object)} data The data to convert, as a string or object. - * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types - * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To - * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: - * all properties on data will be converted to this type. - * @returns An instance of the specified type or null or undefined if data is null or undefined. - */ - - }, { - key: "convertToType", - value: function convertToType(data, type) { - if (data === null || data === undefined) return data; - - switch (type) { - case 'Boolean': - return Boolean(data); - - case 'Integer': - return parseInt(data, 10); - - case 'Number': - return parseFloat(data); - - case 'String': - return String(data); - - case 'Date': - return ApiClient.parseDate(String(data)); - - case 'Blob': - return data; - - default: - if (type === Object) { - // generic object, return directly - return data; - } else if (typeof type.constructFromObject === 'function') { - // for model type like User and enum class - return type.constructFromObject(data); - } else if (Array.isArray(type)) { - // for array type like: ['String'] - var itemType = type[0]; - return data.map(function (item) { - return ApiClient.convertToType(item, itemType); - }); - } else if (_typeof(type) === 'object') { - // for plain object type like: {'String': 'Integer'} - var keyType, valueType; - - for (var k in type) { - if (type.hasOwnProperty(k)) { - keyType = k; - valueType = type[k]; - break; - } - } - - var result = {}; - - for (var k in data) { - if (data.hasOwnProperty(k)) { - var key = ApiClient.convertToType(k, keyType); - var value = ApiClient.convertToType(data[k], valueType); - result[key] = value; - } - } - - return result; - } else { - // for unknown type, return the data directly - return data; - } - - } - } - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj, itemType) { - if (Array.isArray(data)) { - for (var i = 0; i < data.length; i++) { - if (data.hasOwnProperty(i)) obj[i] = ApiClient.convertToType(data[i], itemType); - } - } else { - for (var k in data) { - if (data.hasOwnProperty(k)) obj[k] = ApiClient.convertToType(data[k], itemType); - } - } - } - }]); - - return ApiClient; -}(); -/** - * Enumeration of collection format separator strategies. - * @enum {String} - * @readonly - */ - - -ApiClient.CollectionFormatEnum = { - /** - * Comma-separated values. Value: csv - * @const - */ - CSV: ',', - - /** - * Space-separated values. Value: ssv - * @const - */ - SSV: ' ', - - /** - * Tab-separated values. Value: tsv - * @const - */ - TSV: '\t', - - /** - * Pipe(|)-separated values. Value: pipes - * @const - */ - PIPES: '|', - - /** - * Native array. Value: multi - * @const - */ - MULTI: 'multi' -}; -/** -* The default API client implementation. -* @type {module:ApiClient} -*/ - -ApiClient.instance = new ApiClient(); -var _default = ApiClient; -exports["default"] = _default; - -/***/ }), - -/***/ 78207: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _AkeylessGatewayConfig = _interopRequireDefault(__nccwpck_require__(45995)); - -var _AllowedAccess = _interopRequireDefault(__nccwpck_require__(61540)); - -var _AssocRoleAuthMethod = _interopRequireDefault(__nccwpck_require__(17378)); - -var _AssocTargetItem = _interopRequireDefault(__nccwpck_require__(68883)); - -var _Auth = _interopRequireDefault(__nccwpck_require__(51330)); - -var _AuthMethod = _interopRequireDefault(__nccwpck_require__(52187)); - -var _AuthOutput = _interopRequireDefault(__nccwpck_require__(68871)); - -var _BastionsList = _interopRequireDefault(__nccwpck_require__(34873)); - -var _Configure = _interopRequireDefault(__nccwpck_require__(2610)); - -var _ConfigureOutput = _interopRequireDefault(__nccwpck_require__(6103)); - -var _Connect = _interopRequireDefault(__nccwpck_require__(92264)); - -var _CreateAWSTarget = _interopRequireDefault(__nccwpck_require__(69350)); - -var _CreateAWSTargetOutput = _interopRequireDefault(__nccwpck_require__(30851)); - -var _CreateArtifactoryTarget = _interopRequireDefault(__nccwpck_require__(87961)); - -var _CreateArtifactoryTargetOutput = _interopRequireDefault(__nccwpck_require__(85020)); - -var _CreateAuthMethod = _interopRequireDefault(__nccwpck_require__(97067)); - -var _CreateAuthMethodAWSIAM = _interopRequireDefault(__nccwpck_require__(39317)); - -var _CreateAuthMethodAWSIAMOutput = _interopRequireDefault(__nccwpck_require__(29184)); - -var _CreateAuthMethodAzureAD = _interopRequireDefault(__nccwpck_require__(47553)); - -var _CreateAuthMethodAzureADOutput = _interopRequireDefault(__nccwpck_require__(40820)); - -var _CreateAuthMethodCert = _interopRequireDefault(__nccwpck_require__(9265)); - -var _CreateAuthMethodCertOutput = _interopRequireDefault(__nccwpck_require__(64228)); - -var _CreateAuthMethodEmail = _interopRequireDefault(__nccwpck_require__(42003)); - -var _CreateAuthMethodEmailOutput = _interopRequireDefault(__nccwpck_require__(20898)); - -var _CreateAuthMethodGCP = _interopRequireDefault(__nccwpck_require__(26285)); - -var _CreateAuthMethodGCPOutput = _interopRequireDefault(__nccwpck_require__(62664)); - -var _CreateAuthMethodHuawei = _interopRequireDefault(__nccwpck_require__(96274)); - -var _CreateAuthMethodHuaweiOutput = _interopRequireDefault(__nccwpck_require__(90359)); - -var _CreateAuthMethodK8S = _interopRequireDefault(__nccwpck_require__(39443)); - -var _CreateAuthMethodK8SOutput = _interopRequireDefault(__nccwpck_require__(7586)); - -var _CreateAuthMethodLDAP = _interopRequireDefault(__nccwpck_require__(10158)); - -var _CreateAuthMethodLDAPOutput = _interopRequireDefault(__nccwpck_require__(85019)); - -var _CreateAuthMethodOAuth = _interopRequireDefault(__nccwpck_require__(46424)); - -var _CreateAuthMethodOAuth2Output = _interopRequireDefault(__nccwpck_require__(60689)); - -var _CreateAuthMethodOIDC = _interopRequireDefault(__nccwpck_require__(94918)); - -var _CreateAuthMethodOIDCOutput = _interopRequireDefault(__nccwpck_require__(56259)); - -var _CreateAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(55338)); - -var _CreateAuthMethodSAML = _interopRequireDefault(__nccwpck_require__(33710)); - -var _CreateAuthMethodSAMLOutput = _interopRequireDefault(__nccwpck_require__(41307)); - -var _CreateAuthMethodUniversalIdentity = _interopRequireDefault(__nccwpck_require__(73904)); - -var _CreateAuthMethodUniversalIdentityOutput = _interopRequireDefault(__nccwpck_require__(33625)); - -var _CreateAzureTarget = _interopRequireDefault(__nccwpck_require__(46492)); - -var _CreateAzureTargetOutput = _interopRequireDefault(__nccwpck_require__(67837)); - -var _CreateCertificate = _interopRequireDefault(__nccwpck_require__(54713)); - -var _CreateCertificateOutput = _interopRequireDefault(__nccwpck_require__(9916)); - -var _CreateClassicKey = _interopRequireDefault(__nccwpck_require__(85575)); - -var _CreateClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(87166)); - -var _CreateDBTarget = _interopRequireDefault(__nccwpck_require__(84315)); - -var _CreateDBTargetOutput = _interopRequireDefault(__nccwpck_require__(90170)); - -var _CreateDFCKey = _interopRequireDefault(__nccwpck_require__(19450)); - -var _CreateDFCKeyOutput = _interopRequireDefault(__nccwpck_require__(71247)); - -var _CreateDockerhubTarget = _interopRequireDefault(__nccwpck_require__(17396)); - -var _CreateDockerhubTargetOutput = _interopRequireDefault(__nccwpck_require__(19845)); - -var _CreateDynamicSecret = _interopRequireDefault(__nccwpck_require__(78607)); - -var _CreateEKSTarget = _interopRequireDefault(__nccwpck_require__(25086)); - -var _CreateEKSTargetOutput = _interopRequireDefault(__nccwpck_require__(67307)); - -var _CreateESM = _interopRequireDefault(__nccwpck_require__(87617)); - -var _CreateESMOutput = _interopRequireDefault(__nccwpck_require__(64564)); - -var _CreateEventForwarder = _interopRequireDefault(__nccwpck_require__(55910)); - -var _CreateEventForwarderOutput = _interopRequireDefault(__nccwpck_require__(91555)); - -var _CreateGKETarget = _interopRequireDefault(__nccwpck_require__(3302)); - -var _CreateGKETargetOutput = _interopRequireDefault(__nccwpck_require__(15235)); - -var _CreateGcpTarget = _interopRequireDefault(__nccwpck_require__(38705)); - -var _CreateGcpTargetOutput = _interopRequireDefault(__nccwpck_require__(39108)); - -var _CreateGithubTarget = _interopRequireDefault(__nccwpck_require__(28702)); - -var _CreateGithubTargetOutput = _interopRequireDefault(__nccwpck_require__(6731)); - -var _CreateGlobalSignAtlasTarget = _interopRequireDefault(__nccwpck_require__(45966)); - -var _CreateGlobalSignAtlasTargetOutput = _interopRequireDefault(__nccwpck_require__(315)); - -var _CreateGlobalSignTarget = _interopRequireDefault(__nccwpck_require__(63799)); - -var _CreateGlobalSignTargetOutput = _interopRequireDefault(__nccwpck_require__(41550)); - -var _CreateKey = _interopRequireDefault(__nccwpck_require__(59569)); - -var _CreateKeyOutput = _interopRequireDefault(__nccwpck_require__(92036)); - -var _CreateLdapTarget = _interopRequireDefault(__nccwpck_require__(34660)); - -var _CreateLdapTargetOutput = _interopRequireDefault(__nccwpck_require__(24309)); - -var _CreateLinkedTarget = _interopRequireDefault(__nccwpck_require__(91736)); - -var _CreateLinkedTargetOutput = _interopRequireDefault(__nccwpck_require__(45297)); - -var _CreateNativeK8STarget = _interopRequireDefault(__nccwpck_require__(36798)); - -var _CreateNativeK8STargetOutput = _interopRequireDefault(__nccwpck_require__(15947)); - -var _CreatePKICertIssuer = _interopRequireDefault(__nccwpck_require__(10515)); - -var _CreatePKICertIssuerOutput = _interopRequireDefault(__nccwpck_require__(70178)); - -var _CreatePingTarget = _interopRequireDefault(__nccwpck_require__(17729)); - -var _CreatePingTargetOutput = _interopRequireDefault(__nccwpck_require__(83860)); - -var _CreateRabbitMQTarget = _interopRequireDefault(__nccwpck_require__(28099)); - -var _CreateRabbitMQTargetOutput = _interopRequireDefault(__nccwpck_require__(64274)); - -var _CreateRole = _interopRequireDefault(__nccwpck_require__(36904)); - -var _CreateRoleAuthMethodAssocOutput = _interopRequireDefault(__nccwpck_require__(41569)); - -var _CreateRotatedSecret = _interopRequireDefault(__nccwpck_require__(25203)); - -var _CreateRotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(89634)); - -var _CreateSSHCertIssuer = _interopRequireDefault(__nccwpck_require__(1985)); - -var _CreateSSHCertIssuerOutput = _interopRequireDefault(__nccwpck_require__(84148)); - -var _CreateSSHTarget = _interopRequireDefault(__nccwpck_require__(70101)); - -var _CreateSSHTargetOutput = _interopRequireDefault(__nccwpck_require__(98560)); - -var _CreateSalesforceTarget = _interopRequireDefault(__nccwpck_require__(89382)); - -var _CreateSalesforceTargetOutput = _interopRequireDefault(__nccwpck_require__(63395)); - -var _CreateSecret = _interopRequireDefault(__nccwpck_require__(48156)); - -var _CreateSecretOutput = _interopRequireDefault(__nccwpck_require__(2397)); - -var _CreateTargetItemAssocOutput = _interopRequireDefault(__nccwpck_require__(24022)); - -var _CreateTokenizer = _interopRequireDefault(__nccwpck_require__(85747)); - -var _CreateTokenizerOutput = _interopRequireDefault(__nccwpck_require__(77602)); - -var _CreateWebTarget = _interopRequireDefault(__nccwpck_require__(95805)); - -var _CreateWebTargetOutput = _interopRequireDefault(__nccwpck_require__(38200)); - -var _CreateWindowsTarget = _interopRequireDefault(__nccwpck_require__(61054)); - -var _CreateWindowsTargetOutput = _interopRequireDefault(__nccwpck_require__(76267)); - -var _CreateZeroSSLTarget = _interopRequireDefault(__nccwpck_require__(84899)); - -var _CreateZeroSSLTargetOutput = _interopRequireDefault(__nccwpck_require__(43026)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -var _Decrypt = _interopRequireDefault(__nccwpck_require__(25823)); - -var _DecryptGPG = _interopRequireDefault(__nccwpck_require__(61391)); - -var _DecryptGPGOutput = _interopRequireDefault(__nccwpck_require__(64758)); - -var _DecryptOutput = _interopRequireDefault(__nccwpck_require__(88134)); - -var _DecryptPKCS = _interopRequireDefault(__nccwpck_require__(61013)); - -var _DecryptPKCS1Output = _interopRequireDefault(__nccwpck_require__(88320)); - -var _DecryptWithClassicKey = _interopRequireDefault(__nccwpck_require__(90932)); - -var _DecryptWithClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(48133)); - -var _DeleteAuthMethod = _interopRequireDefault(__nccwpck_require__(63388)); - -var _DeleteAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(85245)); - -var _DeleteAuthMethods = _interopRequireDefault(__nccwpck_require__(10611)); - -var _DeleteAuthMethodsOutput = _interopRequireDefault(__nccwpck_require__(76162)); - -var _DeleteEventForwarder = _interopRequireDefault(__nccwpck_require__(85877)); - -var _DeleteGatewayAllowedAccessId = _interopRequireDefault(__nccwpck_require__(36438)); - -var _DeleteGwCluster = _interopRequireDefault(__nccwpck_require__(74979)); - -var _DeleteItem = _interopRequireDefault(__nccwpck_require__(55440)); - -var _DeleteItemOutput = _interopRequireDefault(__nccwpck_require__(44409)); - -var _DeleteItems = _interopRequireDefault(__nccwpck_require__(83663)); - -var _DeleteItemsOutput = _interopRequireDefault(__nccwpck_require__(79478)); - -var _DeleteRole = _interopRequireDefault(__nccwpck_require__(13059)); - -var _DeleteRoleAssociation = _interopRequireDefault(__nccwpck_require__(56192)); - -var _DeleteRoleRule = _interopRequireDefault(__nccwpck_require__(99117)); - -var _DeleteRoleRuleOutput = _interopRequireDefault(__nccwpck_require__(98120)); - -var _DeleteRoles = _interopRequireDefault(__nccwpck_require__(49222)); - -var _DeleteTarget = _interopRequireDefault(__nccwpck_require__(93094)); - -var _DeleteTargetAssociation = _interopRequireDefault(__nccwpck_require__(36747)); - -var _DeleteTargets = _interopRequireDefault(__nccwpck_require__(22509)); - -var _DeriveKey = _interopRequireDefault(__nccwpck_require__(69284)); - -var _DeriveKeyOutput = _interopRequireDefault(__nccwpck_require__(4117)); - -var _DescribeAssoc = _interopRequireDefault(__nccwpck_require__(80258)); - -var _DescribeItem = _interopRequireDefault(__nccwpck_require__(96290)); - -var _DescribePermissions = _interopRequireDefault(__nccwpck_require__(5013)); - -var _DescribePermissionsOutput = _interopRequireDefault(__nccwpck_require__(88032)); - -var _DescribeSubClaims = _interopRequireDefault(__nccwpck_require__(57046)); - -var _DescribeSubClaimsOutput = _interopRequireDefault(__nccwpck_require__(15891)); - -var _Detokenize = _interopRequireDefault(__nccwpck_require__(97122)); - -var _DetokenizeOutput = _interopRequireDefault(__nccwpck_require__(84807)); - -var _Encrypt = _interopRequireDefault(__nccwpck_require__(24155)); - -var _EncryptGPG = _interopRequireDefault(__nccwpck_require__(81299)); - -var _EncryptGPGOutput = _interopRequireDefault(__nccwpck_require__(71906)); - -var _EncryptOutput = _interopRequireDefault(__nccwpck_require__(74426)); - -var _EncryptWithClassicKey = _interopRequireDefault(__nccwpck_require__(80064)); - -var _EsmCreateSecretOutput = _interopRequireDefault(__nccwpck_require__(37808)); - -var _EsmDelete = _interopRequireDefault(__nccwpck_require__(26602)); - -var _EsmDeleteSecretOutput = _interopRequireDefault(__nccwpck_require__(99707)); - -var _EsmGet = _interopRequireDefault(__nccwpck_require__(1541)); - -var _EsmGetSecretOutput = _interopRequireDefault(__nccwpck_require__(13496)); - -var _EsmList = _interopRequireDefault(__nccwpck_require__(59317)); - -var _EsmListSecretsOutput = _interopRequireDefault(__nccwpck_require__(63233)); - -var _EsmUpdate = _interopRequireDefault(__nccwpck_require__(29564)); - -var _EsmUpdateSecretOutput = _interopRequireDefault(__nccwpck_require__(45309)); - -var _EventAction = _interopRequireDefault(__nccwpck_require__(73404)); - -var _ExportClassicKey = _interopRequireDefault(__nccwpck_require__(91005)); - -var _ExportClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(52248)); - -var _GatewayCreateAllowedAccess = _interopRequireDefault(__nccwpck_require__(17300)); - -var _GatewayCreateK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(30862)); - -var _GatewayCreateK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(38267)); - -var _GatewayCreateMigration = _interopRequireDefault(__nccwpck_require__(23658)); - -var _GatewayCreateProducerArtifactory = _interopRequireDefault(__nccwpck_require__(41510)); - -var _GatewayCreateProducerArtifactoryOutput = _interopRequireDefault(__nccwpck_require__(55523)); - -var _GatewayCreateProducerAws = _interopRequireDefault(__nccwpck_require__(45677)); - -var _GatewayCreateProducerAwsOutput = _interopRequireDefault(__nccwpck_require__(98248)); - -var _GatewayCreateProducerAzure = _interopRequireDefault(__nccwpck_require__(84283)); - -var _GatewayCreateProducerAzureOutput = _interopRequireDefault(__nccwpck_require__(35770)); - -var _GatewayCreateProducerCassandra = _interopRequireDefault(__nccwpck_require__(53266)); - -var _GatewayCreateProducerCassandraOutput = _interopRequireDefault(__nccwpck_require__(43031)); - -var _GatewayCreateProducerCertificateAutomation = _interopRequireDefault(__nccwpck_require__(45608)); - -var _GatewayCreateProducerCertificateAutomationOutput = _interopRequireDefault(__nccwpck_require__(3137)); - -var _GatewayCreateProducerCustom = _interopRequireDefault(__nccwpck_require__(91173)); - -var _GatewayCreateProducerCustomOutput = _interopRequireDefault(__nccwpck_require__(24592)); - -var _GatewayCreateProducerDockerhub = _interopRequireDefault(__nccwpck_require__(3207)); - -var _GatewayCreateProducerDockerhubOutput = _interopRequireDefault(__nccwpck_require__(89470)); - -var _GatewayCreateProducerEks = _interopRequireDefault(__nccwpck_require__(82045)); - -var _GatewayCreateProducerEksOutput = _interopRequireDefault(__nccwpck_require__(93688)); - -var _GatewayCreateProducerGcp = _interopRequireDefault(__nccwpck_require__(19050)); - -var _GatewayCreateProducerGcpOutput = _interopRequireDefault(__nccwpck_require__(4767)); - -var _GatewayCreateProducerGithub = _interopRequireDefault(__nccwpck_require__(15521)); - -var _GatewayCreateProducerGithubOutput = _interopRequireDefault(__nccwpck_require__(67988)); - -var _GatewayCreateProducerGke = _interopRequireDefault(__nccwpck_require__(43341)); - -var _GatewayCreateProducerGkeOutput = _interopRequireDefault(__nccwpck_require__(12136)); - -var _GatewayCreateProducerHanaDb = _interopRequireDefault(__nccwpck_require__(77662)); - -var _GatewayCreateProducerHanaDbOutput = _interopRequireDefault(__nccwpck_require__(69707)); - -var _GatewayCreateProducerLdap = _interopRequireDefault(__nccwpck_require__(74815)); - -var _GatewayCreateProducerLdapOutput = _interopRequireDefault(__nccwpck_require__(53382)); - -var _GatewayCreateProducerMSSQL = _interopRequireDefault(__nccwpck_require__(91036)); - -var _GatewayCreateProducerMSSQLOutput = _interopRequireDefault(__nccwpck_require__(91709)); - -var _GatewayCreateProducerMongo = _interopRequireDefault(__nccwpck_require__(84176)); - -var _GatewayCreateProducerMongoOutput = _interopRequireDefault(__nccwpck_require__(27257)); - -var _GatewayCreateProducerMySQL = _interopRequireDefault(__nccwpck_require__(20490)); - -var _GatewayCreateProducerMySQLOutput = _interopRequireDefault(__nccwpck_require__(37983)); - -var _GatewayCreateProducerNativeK8S = _interopRequireDefault(__nccwpck_require__(50589)); - -var _GatewayCreateProducerNativeK8SOutput = _interopRequireDefault(__nccwpck_require__(4408)); - -var _GatewayCreateProducerOracleDb = _interopRequireDefault(__nccwpck_require__(11382)); - -var _GatewayCreateProducerOracleDbOutput = _interopRequireDefault(__nccwpck_require__(92499)); - -var _GatewayCreateProducerPing = _interopRequireDefault(__nccwpck_require__(29262)); - -var _GatewayCreateProducerPingOutput = _interopRequireDefault(__nccwpck_require__(7579)); - -var _GatewayCreateProducerPostgreSQL = _interopRequireDefault(__nccwpck_require__(42452)); - -var _GatewayCreateProducerPostgreSQLOutput = _interopRequireDefault(__nccwpck_require__(84613)); - -var _GatewayCreateProducerRabbitMQ = _interopRequireDefault(__nccwpck_require__(57964)); - -var _GatewayCreateProducerRabbitMQOutput = _interopRequireDefault(__nccwpck_require__(57357)); - -var _GatewayCreateProducerRdp = _interopRequireDefault(__nccwpck_require__(40686)); - -var _GatewayCreateProducerRdpOutput = _interopRequireDefault(__nccwpck_require__(1915)); - -var _GatewayCreateProducerRedis = _interopRequireDefault(__nccwpck_require__(30759)); - -var _GatewayCreateProducerRedisOutput = _interopRequireDefault(__nccwpck_require__(69950)); - -var _GatewayCreateProducerRedshift = _interopRequireDefault(__nccwpck_require__(84307)); - -var _GatewayCreateProducerRedshiftOutput = _interopRequireDefault(__nccwpck_require__(51074)); - -var _GatewayCreateProducerSnowflake = _interopRequireDefault(__nccwpck_require__(59024)); - -var _GatewayCreateProducerSnowflakeOutput = _interopRequireDefault(__nccwpck_require__(35609)); - -var _GatewayDeleteAllowedAccess = _interopRequireDefault(__nccwpck_require__(99401)); - -var _GatewayDeleteAllowedAccessOutput = _interopRequireDefault(__nccwpck_require__(98572)); - -var _GatewayDeleteK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(48163)); - -var _GatewayDeleteK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(3506)); - -var _GatewayDeleteMigration = _interopRequireDefault(__nccwpck_require__(92895)); - -var _GatewayDeleteProducer = _interopRequireDefault(__nccwpck_require__(24177)); - -var _GatewayDeleteProducerOutput = _interopRequireDefault(__nccwpck_require__(31236)); - -var _GatewayDownloadCustomerFragments = _interopRequireDefault(__nccwpck_require__(70355)); - -var _GatewayDownloadCustomerFragmentsOutput = _interopRequireDefault(__nccwpck_require__(62210)); - -var _GatewayGetAllowedAccess = _interopRequireDefault(__nccwpck_require__(99262)); - -var _GatewayGetConfig = _interopRequireDefault(__nccwpck_require__(16048)); - -var _GatewayGetK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(12748)); - -var _GatewayGetK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(5645)); - -var _GatewayGetLdapAuthConfig = _interopRequireDefault(__nccwpck_require__(3495)); - -var _GatewayGetLdapAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(79454)); - -var _GatewayGetMigration = _interopRequireDefault(__nccwpck_require__(41484)); - -var _GatewayGetProducer = _interopRequireDefault(__nccwpck_require__(51523)); - -var _GatewayGetTmpUsers = _interopRequireDefault(__nccwpck_require__(70701)); - -var _GatewayListMigration = _interopRequireDefault(__nccwpck_require__(2946)); - -var _GatewayListProducers = _interopRequireDefault(__nccwpck_require__(92425)); - -var _GatewayListRotatedSecrets = _interopRequireDefault(__nccwpck_require__(74718)); - -var _GatewayMigratePersonalItems = _interopRequireDefault(__nccwpck_require__(22791)); - -var _GatewayMigratePersonalItemsOutput = _interopRequireDefault(__nccwpck_require__(70462)); - -var _GatewayMigrationCreateOutput = _interopRequireDefault(__nccwpck_require__(19863)); - -var _GatewayMigrationDeleteOutput = _interopRequireDefault(__nccwpck_require__(16996)); - -var _GatewayMigrationGetOutput = _interopRequireDefault(__nccwpck_require__(90097)); - -var _GatewayMigrationListOutput = _interopRequireDefault(__nccwpck_require__(80859)); - -var _GatewayMigrationSyncOutput = _interopRequireDefault(__nccwpck_require__(10052)); - -var _GatewayMigrationUpdateOutput = _interopRequireDefault(__nccwpck_require__(90294)); - -var _GatewayRevokeTmpUsers = _interopRequireDefault(__nccwpck_require__(20353)); - -var _GatewayStartProducer = _interopRequireDefault(__nccwpck_require__(81196)); - -var _GatewayStartProducerOutput = _interopRequireDefault(__nccwpck_require__(66477)); - -var _GatewayStatusMigration = _interopRequireDefault(__nccwpck_require__(32708)); - -var _GatewayStopProducer = _interopRequireDefault(__nccwpck_require__(55242)); - -var _GatewayStopProducerOutput = _interopRequireDefault(__nccwpck_require__(74239)); - -var _GatewaySyncMigration = _interopRequireDefault(__nccwpck_require__(93147)); - -var _GatewayUpdateAllowedAccess = _interopRequireDefault(__nccwpck_require__(60395)); - -var _GatewayUpdateItem = _interopRequireDefault(__nccwpck_require__(88678)); - -var _GatewayUpdateItemOutput = _interopRequireDefault(__nccwpck_require__(11235)); - -var _GatewayUpdateK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(88681)); - -var _GatewayUpdateK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(74380)); - -var _GatewayUpdateLdapAuthConfig = _interopRequireDefault(__nccwpck_require__(36544)); - -var _GatewayUpdateLdapAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(20489)); - -var _GatewayUpdateMigration = _interopRequireDefault(__nccwpck_require__(22313)); - -var _GatewayUpdateProducerArtifactory = _interopRequireDefault(__nccwpck_require__(72781)); - -var _GatewayUpdateProducerArtifactoryOutput = _interopRequireDefault(__nccwpck_require__(92424)); - -var _GatewayUpdateProducerAws = _interopRequireDefault(__nccwpck_require__(2334)); - -var _GatewayUpdateProducerAwsOutput = _interopRequireDefault(__nccwpck_require__(55019)); - -var _GatewayUpdateProducerAzure = _interopRequireDefault(__nccwpck_require__(97644)); - -var _GatewayUpdateProducerAzureOutput = _interopRequireDefault(__nccwpck_require__(97773)); - -var _GatewayUpdateProducerCassandra = _interopRequireDefault(__nccwpck_require__(82093)); - -var _GatewayUpdateProducerCassandraOutput = _interopRequireDefault(__nccwpck_require__(4328)); - -var _GatewayUpdateProducerCertificateAutomation = _interopRequireDefault(__nccwpck_require__(2471)); - -var _GatewayUpdateProducerCertificateAutomationOutput = _interopRequireDefault(__nccwpck_require__(66398)); - -var _GatewayUpdateProducerCustom = _interopRequireDefault(__nccwpck_require__(40320)); - -var _GatewayUpdateProducerCustomOutput = _interopRequireDefault(__nccwpck_require__(28777)); - -var _GatewayUpdateProducerDockerhub = _interopRequireDefault(__nccwpck_require__(63280)); - -var _GatewayUpdateProducerDockerhubOutput = _interopRequireDefault(__nccwpck_require__(14201)); - -var _GatewayUpdateProducerEks = _interopRequireDefault(__nccwpck_require__(32382)); - -var _GatewayUpdateProducerEksOutput = _interopRequireDefault(__nccwpck_require__(11115)); - -var _GatewayUpdateProducerGcp = _interopRequireDefault(__nccwpck_require__(20241)); - -var _GatewayUpdateProducerGcpOutput = _interopRequireDefault(__nccwpck_require__(75972)); - -var _GatewayUpdateProducerGithub = _interopRequireDefault(__nccwpck_require__(92212)); - -var _GatewayUpdateProducerGithubOutput = _interopRequireDefault(__nccwpck_require__(86213)); - -var _GatewayUpdateProducerGke = _interopRequireDefault(__nccwpck_require__(25062)); - -var _GatewayUpdateProducerGkeOutput = _interopRequireDefault(__nccwpck_require__(46467)); - -var _GatewayUpdateProducerHanaDb = _interopRequireDefault(__nccwpck_require__(88599)); - -var _GatewayUpdateProducerHanaDbOutput = _interopRequireDefault(__nccwpck_require__(44014)); - -var _GatewayUpdateProducerLdap = _interopRequireDefault(__nccwpck_require__(65026)); - -var _GatewayUpdateProducerLdapOutput = _interopRequireDefault(__nccwpck_require__(45863)); - -var _GatewayUpdateProducerMSSQL = _interopRequireDefault(__nccwpck_require__(43407)); - -var _GatewayUpdateProducerMSSQLOutput = _interopRequireDefault(__nccwpck_require__(8726)); - -var _GatewayUpdateProducerMongo = _interopRequireDefault(__nccwpck_require__(24975)); - -var _GatewayUpdateProducerMongoOutput = _interopRequireDefault(__nccwpck_require__(38390)); - -var _GatewayUpdateProducerMySQL = _interopRequireDefault(__nccwpck_require__(50937)); - -var _GatewayUpdateProducerMySQLOutput = _interopRequireDefault(__nccwpck_require__(7548)); - -var _GatewayUpdateProducerNativeK8S = _interopRequireDefault(__nccwpck_require__(47170)); - -var _GatewayUpdateProducerNativeK8SOutput = _interopRequireDefault(__nccwpck_require__(80839)); - -var _GatewayUpdateProducerOracleDb = _interopRequireDefault(__nccwpck_require__(9399)); - -var _GatewayUpdateProducerOracleDbOutput = _interopRequireDefault(__nccwpck_require__(97550)); - -var _GatewayUpdateProducerPing = _interopRequireDefault(__nccwpck_require__(2311)); - -var _GatewayUpdateProducerPingOutput = _interopRequireDefault(__nccwpck_require__(82046)); - -var _GatewayUpdateProducerPostgreSQL = _interopRequireDefault(__nccwpck_require__(42517)); - -var _GatewayUpdateProducerPostgreSQLOutput = _interopRequireDefault(__nccwpck_require__(41024)); - -var _GatewayUpdateProducerRabbitMQ = _interopRequireDefault(__nccwpck_require__(70229)); - -var _GatewayUpdateProducerRabbitMQOutput = _interopRequireDefault(__nccwpck_require__(13216)); - -var _GatewayUpdateProducerRdp = _interopRequireDefault(__nccwpck_require__(47813)); - -var _GatewayUpdateProducerRdpOutput = _interopRequireDefault(__nccwpck_require__(73488)); - -var _GatewayUpdateProducerRedis = _interopRequireDefault(__nccwpck_require__(75080)); - -var _GatewayUpdateProducerRedisOutput = _interopRequireDefault(__nccwpck_require__(79073)); - -var _GatewayUpdateProducerRedshift = _interopRequireDefault(__nccwpck_require__(73230)); - -var _GatewayUpdateProducerRedshiftOutput = _interopRequireDefault(__nccwpck_require__(50171)); - -var _GatewayUpdateProducerSnowflake = _interopRequireDefault(__nccwpck_require__(92043)); - -var _GatewayUpdateProducerSnowflakeOutput = _interopRequireDefault(__nccwpck_require__(78122)); - -var _GatewayUpdateTlsCert = _interopRequireDefault(__nccwpck_require__(89886)); - -var _GatewayUpdateTlsCertOutput = _interopRequireDefault(__nccwpck_require__(49259)); - -var _GatewayUpdateTmpUsers = _interopRequireDefault(__nccwpck_require__(98074)); - -var _GatewaysListResponse = _interopRequireDefault(__nccwpck_require__(34840)); - -var _GenerateCsr = _interopRequireDefault(__nccwpck_require__(87627)); - -var _GenerateCsrOutput = _interopRequireDefault(__nccwpck_require__(85130)); - -var _GetAccountSettings = _interopRequireDefault(__nccwpck_require__(46150)); - -var _GetAccountSettingsCommandOutput = _interopRequireDefault(__nccwpck_require__(61968)); - -var _GetAuthMethod = _interopRequireDefault(__nccwpck_require__(19101)); - -var _GetCertificateValue = _interopRequireDefault(__nccwpck_require__(25574)); - -var _GetCertificateValueOutput = _interopRequireDefault(__nccwpck_require__(54819)); - -var _GetDynamicSecretValue = _interopRequireDefault(__nccwpck_require__(17840)); - -var _GetEventForwarder = _interopRequireDefault(__nccwpck_require__(7183)); - -var _GetEventForwarderOutput = _interopRequireDefault(__nccwpck_require__(31549)); - -var _GetKubeExecCreds = _interopRequireDefault(__nccwpck_require__(48313)); - -var _GetKubeExecCredsOutput = _interopRequireDefault(__nccwpck_require__(31740)); - -var _GetPKICertificate = _interopRequireDefault(__nccwpck_require__(8453)); - -var _GetPKICertificateOutput = _interopRequireDefault(__nccwpck_require__(1840)); - -var _GetProducersListReplyObj = _interopRequireDefault(__nccwpck_require__(43282)); - -var _GetRSAPublic = _interopRequireDefault(__nccwpck_require__(4599)); - -var _GetRSAPublicOutput = _interopRequireDefault(__nccwpck_require__(71534)); - -var _GetRole = _interopRequireDefault(__nccwpck_require__(19262)); - -var _GetRotatedSecretValue = _interopRequireDefault(__nccwpck_require__(14948)); - -var _GetSSHCertificate = _interopRequireDefault(__nccwpck_require__(95215)); - -var _GetSSHCertificateOutput = _interopRequireDefault(__nccwpck_require__(94518)); - -var _GetSecretValue = _interopRequireDefault(__nccwpck_require__(24725)); - -var _GetTags = _interopRequireDefault(__nccwpck_require__(26075)); - -var _GetTarget = _interopRequireDefault(__nccwpck_require__(51395)); - -var _GetTargetDetails = _interopRequireDefault(__nccwpck_require__(48741)); - -var _GetTargetDetailsOutput = _interopRequireDefault(__nccwpck_require__(69392)); - -var _Hmac = _interopRequireDefault(__nccwpck_require__(9727)); - -var _HmacOutput = _interopRequireDefault(__nccwpck_require__(67718)); - -var _ImportPasswords = _interopRequireDefault(__nccwpck_require__(76407)); - -var _ImportPasswordsOutput = _interopRequireDefault(__nccwpck_require__(8494)); - -var _Item = _interopRequireDefault(__nccwpck_require__(23711)); - -var _JSONError = _interopRequireDefault(__nccwpck_require__(39994)); - -var _KMIPClientGetResponse = _interopRequireDefault(__nccwpck_require__(13983)); - -var _KMIPClientListResponse = _interopRequireDefault(__nccwpck_require__(22033)); - -var _KMIPClientUpdateResponse = _interopRequireDefault(__nccwpck_require__(83564)); - -var _KMIPEnvironmentCreateResponse = _interopRequireDefault(__nccwpck_require__(48931)); - -var _KmipClientDeleteRule = _interopRequireDefault(__nccwpck_require__(88039)); - -var _KmipClientSetRule = _interopRequireDefault(__nccwpck_require__(55778)); - -var _KmipCreateClient = _interopRequireDefault(__nccwpck_require__(59390)); - -var _KmipCreateClientOutput = _interopRequireDefault(__nccwpck_require__(17387)); - -var _KmipDeleteClient = _interopRequireDefault(__nccwpck_require__(14353)); - -var _KmipDeleteServer = _interopRequireDefault(__nccwpck_require__(23205)); - -var _KmipDescribeClient = _interopRequireDefault(__nccwpck_require__(58003)); - -var _KmipDescribeServer = _interopRequireDefault(__nccwpck_require__(63487)); - -var _KmipDescribeServerOutput = _interopRequireDefault(__nccwpck_require__(28038)); - -var _KmipListClients = _interopRequireDefault(__nccwpck_require__(37829)); - -var _KmipMoveServer = _interopRequireDefault(__nccwpck_require__(61411)); - -var _KmipMoveServerOutput = _interopRequireDefault(__nccwpck_require__(23954)); - -var _KmipRenewClientCertificate = _interopRequireDefault(__nccwpck_require__(67724)); - -var _KmipRenewClientCertificateOutput = _interopRequireDefault(__nccwpck_require__(52557)); - -var _KmipRenewServerCertificate = _interopRequireDefault(__nccwpck_require__(97536)); - -var _KmipRenewServerCertificateOutput = _interopRequireDefault(__nccwpck_require__(96809)); - -var _KmipServerSetup = _interopRequireDefault(__nccwpck_require__(54249)); - -var _KmipSetServerState = _interopRequireDefault(__nccwpck_require__(87265)); - -var _KmipSetServerStateOutput = _interopRequireDefault(__nccwpck_require__(9044)); - -var _ListAuthMethods = _interopRequireDefault(__nccwpck_require__(60486)); - -var _ListAuthMethodsOutput = _interopRequireDefault(__nccwpck_require__(8995)); - -var _ListGateways = _interopRequireDefault(__nccwpck_require__(91099)); - -var _ListItems = _interopRequireDefault(__nccwpck_require__(27410)); - -var _ListItemsInPathOutput = _interopRequireDefault(__nccwpck_require__(423)); - -var _ListItemsOutput = _interopRequireDefault(__nccwpck_require__(41751)); - -var _ListRoles = _interopRequireDefault(__nccwpck_require__(7007)); - -var _ListRolesOutput = _interopRequireDefault(__nccwpck_require__(65702)); - -var _ListSRABastions = _interopRequireDefault(__nccwpck_require__(59255)); - -var _ListSharedItems = _interopRequireDefault(__nccwpck_require__(90349)); - -var _ListTargets = _interopRequireDefault(__nccwpck_require__(97640)); - -var _ListTargetsOutput = _interopRequireDefault(__nccwpck_require__(52161)); - -var _MigrationStatusReplyObj = _interopRequireDefault(__nccwpck_require__(95821)); - -var _MoveObjects = _interopRequireDefault(__nccwpck_require__(3781)); - -var _RawCreds = _interopRequireDefault(__nccwpck_require__(18791)); - -var _RefreshKey = _interopRequireDefault(__nccwpck_require__(94978)); - -var _RefreshKeyOutput = _interopRequireDefault(__nccwpck_require__(1383)); - -var _RequestAccess = _interopRequireDefault(__nccwpck_require__(14565)); - -var _RequestAccessOutput = _interopRequireDefault(__nccwpck_require__(86512)); - -var _ReverseRBAC = _interopRequireDefault(__nccwpck_require__(7820)); - -var _ReverseRBACOutput = _interopRequireDefault(__nccwpck_require__(46413)); - -var _Role = _interopRequireDefault(__nccwpck_require__(74264)); - -var _RoleAssociationDetails = _interopRequireDefault(__nccwpck_require__(30915)); - -var _RollbackSecret = _interopRequireDefault(__nccwpck_require__(3200)); - -var _RollbackSecretOutput = _interopRequireDefault(__nccwpck_require__(76745)); - -var _RotateKeyOutput = _interopRequireDefault(__nccwpck_require__(58153)); - -var _RotateSecret = _interopRequireDefault(__nccwpck_require__(90983)); - -var _RotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(74226)); - -var _SetItemState = _interopRequireDefault(__nccwpck_require__(53920)); - -var _SetRoleRule = _interopRequireDefault(__nccwpck_require__(57460)); - -var _ShareItem = _interopRequireDefault(__nccwpck_require__(21310)); - -var _SignDataWithClassicKey = _interopRequireDefault(__nccwpck_require__(61530)); - -var _SignGPG = _interopRequireDefault(__nccwpck_require__(95289)); - -var _SignGPGOutput = _interopRequireDefault(__nccwpck_require__(72732)); - -var _SignJWTOutput = _interopRequireDefault(__nccwpck_require__(23913)); - -var _SignJWTWithClassicKey = _interopRequireDefault(__nccwpck_require__(32259)); - -var _SignOutput = _interopRequireDefault(__nccwpck_require__(40040)); - -var _SignPKCS = _interopRequireDefault(__nccwpck_require__(5227)); - -var _SignPKCS1Output = _interopRequireDefault(__nccwpck_require__(76138)); - -var _SignPKICertOutput = _interopRequireDefault(__nccwpck_require__(50538)); - -var _SignPKICertWithClassicKey = _interopRequireDefault(__nccwpck_require__(52048)); - -var _StaticCredsAuth = _interopRequireDefault(__nccwpck_require__(39307)); - -var _StaticCredsAuthOutput = _interopRequireDefault(__nccwpck_require__(53322)); - -var _SystemAccessCredentialsReplyObj = _interopRequireDefault(__nccwpck_require__(58908)); - -var _Target = _interopRequireDefault(__nccwpck_require__(50373)); - -var _TmpUserData = _interopRequireDefault(__nccwpck_require__(36764)); - -var _Tokenize = _interopRequireDefault(__nccwpck_require__(43289)); - -var _TokenizeOutput = _interopRequireDefault(__nccwpck_require__(88732)); - -var _UidCreateChildToken = _interopRequireDefault(__nccwpck_require__(35191)); - -var _UidCreateChildTokenOutput = _interopRequireDefault(__nccwpck_require__(25070)); - -var _UidGenerateToken = _interopRequireDefault(__nccwpck_require__(56690)); - -var _UidGenerateTokenOutput = _interopRequireDefault(__nccwpck_require__(33367)); - -var _UidListChildren = _interopRequireDefault(__nccwpck_require__(55603)); - -var _UidRevokeToken = _interopRequireDefault(__nccwpck_require__(60409)); - -var _UidRotateToken = _interopRequireDefault(__nccwpck_require__(36310)); - -var _UidRotateTokenOutput = _interopRequireDefault(__nccwpck_require__(34899)); - -var _UniversalIdentityDetails = _interopRequireDefault(__nccwpck_require__(81607)); - -var _UpdateAWSTarget = _interopRequireDefault(__nccwpck_require__(82797)); - -var _UpdateAWSTargetDetails = _interopRequireDefault(__nccwpck_require__(13631)); - -var _UpdateAccountSettings = _interopRequireDefault(__nccwpck_require__(7427)); - -var _UpdateAccountSettingsOutput = _interopRequireDefault(__nccwpck_require__(73106)); - -var _UpdateArtifactoryTarget = _interopRequireDefault(__nccwpck_require__(68146)); - -var _UpdateArtifactoryTargetOutput = _interopRequireDefault(__nccwpck_require__(95639)); - -var _UpdateAssoc = _interopRequireDefault(__nccwpck_require__(68862)); - -var _UpdateAuthMethod = _interopRequireDefault(__nccwpck_require__(25222)); - -var _UpdateAuthMethodAWSIAM = _interopRequireDefault(__nccwpck_require__(67296)); - -var _UpdateAuthMethodAzureAD = _interopRequireDefault(__nccwpck_require__(95622)); - -var _UpdateAuthMethodCert = _interopRequireDefault(__nccwpck_require__(18408)); - -var _UpdateAuthMethodCertOutput = _interopRequireDefault(__nccwpck_require__(33)); - -var _UpdateAuthMethodGCP = _interopRequireDefault(__nccwpck_require__(56494)); - -var _UpdateAuthMethodK8S = _interopRequireDefault(__nccwpck_require__(45908)); - -var _UpdateAuthMethodK8SOutput = _interopRequireDefault(__nccwpck_require__(75557)); - -var _UpdateAuthMethodLDAP = _interopRequireDefault(__nccwpck_require__(54035)); - -var _UpdateAuthMethodLDAPOutput = _interopRequireDefault(__nccwpck_require__(52290)); - -var _UpdateAuthMethodOAuth = _interopRequireDefault(__nccwpck_require__(13933)); - -var _UpdateAuthMethodOIDC = _interopRequireDefault(__nccwpck_require__(85407)); - -var _UpdateAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(49923)); - -var _UpdateAuthMethodSAML = _interopRequireDefault(__nccwpck_require__(41983)); - -var _UpdateAuthMethodUniversalIdentity = _interopRequireDefault(__nccwpck_require__(4775)); - -var _UpdateAzureTarget = _interopRequireDefault(__nccwpck_require__(10443)); - -var _UpdateAzureTargetOutput = _interopRequireDefault(__nccwpck_require__(16042)); - -var _UpdateCertificateOutput = _interopRequireDefault(__nccwpck_require__(12471)); - -var _UpdateCertificateValue = _interopRequireDefault(__nccwpck_require__(19705)); - -var _UpdateDBTarget = _interopRequireDefault(__nccwpck_require__(33529)); - -var _UpdateDBTargetDetails = _interopRequireDefault(__nccwpck_require__(80190)); - -var _UpdateDBTargetOutput = _interopRequireDefault(__nccwpck_require__(72131)); - -var _UpdateDockerhubTarget = _interopRequireDefault(__nccwpck_require__(8307)); - -var _UpdateDockerhubTargetOutput = _interopRequireDefault(__nccwpck_require__(56962)); - -var _UpdateEKSTarget = _interopRequireDefault(__nccwpck_require__(54749)); - -var _UpdateEKSTargetOutput = _interopRequireDefault(__nccwpck_require__(69048)); - -var _UpdateEventForwarder = _interopRequireDefault(__nccwpck_require__(69923)); - -var _UpdateGKETarget = _interopRequireDefault(__nccwpck_require__(98909)); - -var _UpdateGKETargetOutput = _interopRequireDefault(__nccwpck_require__(57048)); - -var _UpdateGcpTarget = _interopRequireDefault(__nccwpck_require__(27770)); - -var _UpdateGcpTargetOutput = _interopRequireDefault(__nccwpck_require__(18991)); - -var _UpdateGithubTarget = _interopRequireDefault(__nccwpck_require__(47511)); - -var _UpdateGithubTargetOutput = _interopRequireDefault(__nccwpck_require__(14926)); - -var _UpdateGlobalSignAtlasTarget = _interopRequireDefault(__nccwpck_require__(90781)); - -var _UpdateGlobalSignAtlasTargetOutput = _interopRequireDefault(__nccwpck_require__(89912)); - -var _UpdateGlobalSignTarget = _interopRequireDefault(__nccwpck_require__(7530)); - -var _UpdateGlobalSignTargetOutput = _interopRequireDefault(__nccwpck_require__(40415)); - -var _UpdateItem = _interopRequireDefault(__nccwpck_require__(49094)); - -var _UpdateItemOutput = _interopRequireDefault(__nccwpck_require__(15651)); - -var _UpdateLdapTarget = _interopRequireDefault(__nccwpck_require__(3589)); - -var _UpdateLdapTargetDetails = _interopRequireDefault(__nccwpck_require__(34663)); - -var _UpdateLdapTargetOutput = _interopRequireDefault(__nccwpck_require__(4912)); - -var _UpdateLinkedTarget = _interopRequireDefault(__nccwpck_require__(26477)); - -var _UpdateNativeK8STarget = _interopRequireDefault(__nccwpck_require__(30593)); - -var _UpdateNativeK8STargetOutput = _interopRequireDefault(__nccwpck_require__(99636)); - -var _UpdatePKICertIssuer = _interopRequireDefault(__nccwpck_require__(79264)); - -var _UpdatePKICertIssuerOutput = _interopRequireDefault(__nccwpck_require__(13449)); - -var _UpdatePingTarget = _interopRequireDefault(__nccwpck_require__(85764)); - -var _UpdateRDPTargetDetails = _interopRequireDefault(__nccwpck_require__(54450)); - -var _UpdateRabbitMQTarget = _interopRequireDefault(__nccwpck_require__(26622)); - -var _UpdateRabbitMQTargetDetails = _interopRequireDefault(__nccwpck_require__(87334)); - -var _UpdateRabbitMQTargetOutput = _interopRequireDefault(__nccwpck_require__(87403)); - -var _UpdateRole = _interopRequireDefault(__nccwpck_require__(57081)); - -var _UpdateRoleOutput = _interopRequireDefault(__nccwpck_require__(99836)); - -var _UpdateRotatedSecret = _interopRequireDefault(__nccwpck_require__(64696)); - -var _UpdateRotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(2961)); - -var _UpdateRotationSettings = _interopRequireDefault(__nccwpck_require__(42482)); - -var _UpdateSSHCertIssuer = _interopRequireDefault(__nccwpck_require__(65022)); - -var _UpdateSSHCertIssuerOutput = _interopRequireDefault(__nccwpck_require__(96523)); - -var _UpdateSSHTarget = _interopRequireDefault(__nccwpck_require__(72830)); - -var _UpdateSSHTargetDetails = _interopRequireDefault(__nccwpck_require__(58790)); - -var _UpdateSSHTargetOutput = _interopRequireDefault(__nccwpck_require__(73931)); - -var _UpdateSalesforceTarget = _interopRequireDefault(__nccwpck_require__(41539)); - -var _UpdateSalesforceTargetOutput = _interopRequireDefault(__nccwpck_require__(69266)); - -var _UpdateSecretVal = _interopRequireDefault(__nccwpck_require__(89102)); - -var _UpdateSecretValOutput = _interopRequireDefault(__nccwpck_require__(30427)); - -var _UpdateTarget = _interopRequireDefault(__nccwpck_require__(30092)); - -var _UpdateTargetDetails = _interopRequireDefault(__nccwpck_require__(90476)); - -var _UpdateTargetOutput = _interopRequireDefault(__nccwpck_require__(29293)); - -var _UpdateWebTarget = _interopRequireDefault(__nccwpck_require__(54946)); - -var _UpdateWebTargetDetails = _interopRequireDefault(__nccwpck_require__(24642)); - -var _UpdateWebTargetOutput = _interopRequireDefault(__nccwpck_require__(43751)); - -var _UpdateWindowsTarget = _interopRequireDefault(__nccwpck_require__(39713)); - -var _UpdateZeroSSLTarget = _interopRequireDefault(__nccwpck_require__(32664)); - -var _UpdateZeroSSLTargetOutput = _interopRequireDefault(__nccwpck_require__(16401)); - -var _UploadRSA = _interopRequireDefault(__nccwpck_require__(22255)); - -var _ValidateToken = _interopRequireDefault(__nccwpck_require__(62049)); - -var _ValidateTokenOutput = _interopRequireDefault(__nccwpck_require__(56148)); - -var _VerifyDataWithClassicKey = _interopRequireDefault(__nccwpck_require__(89370)); - -var _VerifyGPG = _interopRequireDefault(__nccwpck_require__(9817)); - -var _VerifyJWTOutput = _interopRequireDefault(__nccwpck_require__(11401)); - -var _VerifyJWTWithClassicKey = _interopRequireDefault(__nccwpck_require__(35587)); - -var _VerifyPKCS = _interopRequireDefault(__nccwpck_require__(94187)); - -var _VerifyPKICertOutput = _interopRequireDefault(__nccwpck_require__(9610)); - -var _VerifyPKICertWithClassicKey = _interopRequireDefault(__nccwpck_require__(1456)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** -* V2 service. -* @module api/V2Api -* @version 3.3.16 -*/ -var V2Api = /*#__PURE__*/function () { - /** - * Constructs a new V2Api. - * @alias module:api/V2Api - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - function V2Api(apiClient) { - _classCallCheck(this, V2Api); - - this.apiClient = apiClient || _ApiClient["default"].instance; - } - /** - * @param {module:model/AssocRoleAuthMethod} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateRoleAuthMethodAssocOutput} and HTTP response - */ - - - _createClass(V2Api, [{ - key: "assocRoleAuthMethodWithHttpInfo", - value: function assocRoleAuthMethodWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling assocRoleAuthMethod"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateRoleAuthMethodAssocOutput["default"]; - return this.apiClient.callApi('/assoc-role-am', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/AssocRoleAuthMethod} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateRoleAuthMethodAssocOutput} - */ - - }, { - key: "assocRoleAuthMethod", - value: function assocRoleAuthMethod(body) { - return this.assocRoleAuthMethodWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/AssocTargetItem} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTargetItemAssocOutput} and HTTP response - */ - - }, { - key: "assocTargetItemWithHttpInfo", - value: function assocTargetItemWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling assocTargetItem"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateTargetItemAssocOutput["default"]; - return this.apiClient.callApi('/assoc-target-item', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/AssocTargetItem} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTargetItemAssocOutput} - */ - - }, { - key: "assocTargetItem", - value: function assocTargetItem(body) { - return this.assocTargetItemWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/Auth} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AuthOutput} and HTTP response - */ - - }, { - key: "authWithHttpInfo", - value: function authWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling auth"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AuthOutput["default"]; - return this.apiClient.callApi('/auth', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/Auth} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AuthOutput} - */ - - }, { - key: "auth", - value: function auth(body) { - return this.authWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/Configure} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ConfigureOutput} and HTTP response - */ - - }, { - key: "configureWithHttpInfo", - value: function configureWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling configure"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ConfigureOutput["default"]; - return this.apiClient.callApi('/configure', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/Configure} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ConfigureOutput} - */ - - }, { - key: "configure", - value: function configure(body) { - return this.configureWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/Connect} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "connectWithHttpInfo", - value: function connectWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling connect"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/connect', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/Connect} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "connect", - value: function connect(body) { - return this.connectWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateAWSTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAWSTargetOutput} and HTTP response - */ - - }, { - key: "createAWSTargetWithHttpInfo", - value: function createAWSTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createAWSTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateAWSTargetOutput["default"]; - return this.apiClient.callApi('/create-aws-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateAWSTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAWSTargetOutput} - */ - - }, { - key: "createAWSTarget", - value: function createAWSTarget(body) { - return this.createAWSTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateArtifactoryTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateArtifactoryTargetOutput} and HTTP response - */ - - }, { - key: "createArtifactoryTargetWithHttpInfo", - value: function createArtifactoryTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createArtifactoryTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateArtifactoryTargetOutput["default"]; - return this.apiClient.callApi('/create-artifactory-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateArtifactoryTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateArtifactoryTargetOutput} - */ - - }, { - key: "createArtifactoryTarget", - value: function createArtifactoryTarget(body) { - return this.createArtifactoryTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateAuthMethod} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAuthMethodOutput} and HTTP response - */ - - }, { - key: "createAuthMethodWithHttpInfo", - value: function createAuthMethodWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createAuthMethod"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateAuthMethodOutput["default"]; - return this.apiClient.callApi('/create-auth-method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateAuthMethod} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAuthMethodOutput} - */ - - }, { - key: "createAuthMethod", - value: function createAuthMethod(body) { - return this.createAuthMethodWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateAuthMethodAWSIAM} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAuthMethodAWSIAMOutput} and HTTP response - */ - - }, { - key: "createAuthMethodAWSIAMWithHttpInfo", - value: function createAuthMethodAWSIAMWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createAuthMethodAWSIAM"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateAuthMethodAWSIAMOutput["default"]; - return this.apiClient.callApi('/create-auth-method-aws-iam', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateAuthMethodAWSIAM} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAuthMethodAWSIAMOutput} - */ - - }, { - key: "createAuthMethodAWSIAM", - value: function createAuthMethodAWSIAM(body) { - return this.createAuthMethodAWSIAMWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateAuthMethodAzureAD} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAuthMethodAzureADOutput} and HTTP response - */ - - }, { - key: "createAuthMethodAzureADWithHttpInfo", - value: function createAuthMethodAzureADWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createAuthMethodAzureAD"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateAuthMethodAzureADOutput["default"]; - return this.apiClient.callApi('/create-auth-method-azure-ad', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateAuthMethodAzureAD} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAuthMethodAzureADOutput} - */ - - }, { - key: "createAuthMethodAzureAD", - value: function createAuthMethodAzureAD(body) { - return this.createAuthMethodAzureADWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateAuthMethodCert} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAuthMethodCertOutput} and HTTP response - */ - - }, { - key: "createAuthMethodCertWithHttpInfo", - value: function createAuthMethodCertWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createAuthMethodCert"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateAuthMethodCertOutput["default"]; - return this.apiClient.callApi('/create-auth-method-cert', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateAuthMethodCert} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAuthMethodCertOutput} - */ - - }, { - key: "createAuthMethodCert", - value: function createAuthMethodCert(body) { - return this.createAuthMethodCertWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateAuthMethodEmail} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAuthMethodEmailOutput} and HTTP response - */ - - }, { - key: "createAuthMethodEmailWithHttpInfo", - value: function createAuthMethodEmailWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createAuthMethodEmail"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateAuthMethodEmailOutput["default"]; - return this.apiClient.callApi('/create-auth-method-email', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateAuthMethodEmail} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAuthMethodEmailOutput} - */ - - }, { - key: "createAuthMethodEmail", - value: function createAuthMethodEmail(body) { - return this.createAuthMethodEmailWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateAuthMethodGCP} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAuthMethodGCPOutput} and HTTP response - */ - - }, { - key: "createAuthMethodGCPWithHttpInfo", - value: function createAuthMethodGCPWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createAuthMethodGCP"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateAuthMethodGCPOutput["default"]; - return this.apiClient.callApi('/create-auth-method-gcp', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateAuthMethodGCP} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAuthMethodGCPOutput} - */ - - }, { - key: "createAuthMethodGCP", - value: function createAuthMethodGCP(body) { - return this.createAuthMethodGCPWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateAuthMethodHuawei} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAuthMethodHuaweiOutput} and HTTP response - */ - - }, { - key: "createAuthMethodHuaweiWithHttpInfo", - value: function createAuthMethodHuaweiWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createAuthMethodHuawei"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateAuthMethodHuaweiOutput["default"]; - return this.apiClient.callApi('/create-auth-method-huawei', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateAuthMethodHuawei} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAuthMethodHuaweiOutput} - */ - - }, { - key: "createAuthMethodHuawei", - value: function createAuthMethodHuawei(body) { - return this.createAuthMethodHuaweiWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateAuthMethodK8S} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAuthMethodK8SOutput} and HTTP response - */ - - }, { - key: "createAuthMethodK8SWithHttpInfo", - value: function createAuthMethodK8SWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createAuthMethodK8S"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateAuthMethodK8SOutput["default"]; - return this.apiClient.callApi('/create-auth-method-k8s', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateAuthMethodK8S} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAuthMethodK8SOutput} - */ - - }, { - key: "createAuthMethodK8S", - value: function createAuthMethodK8S(body) { - return this.createAuthMethodK8SWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateAuthMethodLDAP} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAuthMethodLDAPOutput} and HTTP response - */ - - }, { - key: "createAuthMethodLDAPWithHttpInfo", - value: function createAuthMethodLDAPWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createAuthMethodLDAP"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateAuthMethodLDAPOutput["default"]; - return this.apiClient.callApi('/create-auth-method-ldap', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateAuthMethodLDAP} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAuthMethodLDAPOutput} - */ - - }, { - key: "createAuthMethodLDAP", - value: function createAuthMethodLDAP(body) { - return this.createAuthMethodLDAPWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateAuthMethodOAuth2} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAuthMethodOAuth2Output} and HTTP response - */ - - }, { - key: "createAuthMethodOAuth2WithHttpInfo", - value: function createAuthMethodOAuth2WithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createAuthMethodOAuth2"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateAuthMethodOAuth2Output["default"]; - return this.apiClient.callApi('/create-auth-method-oauth2', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateAuthMethodOAuth2} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAuthMethodOAuth2Output} - */ - - }, { - key: "createAuthMethodOAuth2", - value: function createAuthMethodOAuth2(body) { - return this.createAuthMethodOAuth2WithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateAuthMethodOIDC} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAuthMethodOIDCOutput} and HTTP response - */ - - }, { - key: "createAuthMethodOIDCWithHttpInfo", - value: function createAuthMethodOIDCWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createAuthMethodOIDC"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateAuthMethodOIDCOutput["default"]; - return this.apiClient.callApi('/create-auth-method-oidc', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateAuthMethodOIDC} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAuthMethodOIDCOutput} - */ - - }, { - key: "createAuthMethodOIDC", - value: function createAuthMethodOIDC(body) { - return this.createAuthMethodOIDCWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateAuthMethodSAML} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAuthMethodSAMLOutput} and HTTP response - */ - - }, { - key: "createAuthMethodSAMLWithHttpInfo", - value: function createAuthMethodSAMLWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createAuthMethodSAML"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateAuthMethodSAMLOutput["default"]; - return this.apiClient.callApi('/create-auth-method-saml', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateAuthMethodSAML} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAuthMethodSAMLOutput} - */ - - }, { - key: "createAuthMethodSAML", - value: function createAuthMethodSAML(body) { - return this.createAuthMethodSAMLWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateAuthMethodUniversalIdentity} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAuthMethodUniversalIdentityOutput} and HTTP response - */ - - }, { - key: "createAuthMethodUniversalIdentityWithHttpInfo", - value: function createAuthMethodUniversalIdentityWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createAuthMethodUniversalIdentity"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateAuthMethodUniversalIdentityOutput["default"]; - return this.apiClient.callApi('/create-auth-method-universal-identity', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateAuthMethodUniversalIdentity} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAuthMethodUniversalIdentityOutput} - */ - - }, { - key: "createAuthMethodUniversalIdentity", - value: function createAuthMethodUniversalIdentity(body) { - return this.createAuthMethodUniversalIdentityWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateAzureTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAzureTargetOutput} and HTTP response - */ - - }, { - key: "createAzureTargetWithHttpInfo", - value: function createAzureTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createAzureTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateAzureTargetOutput["default"]; - return this.apiClient.callApi('/create-azure-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateAzureTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAzureTargetOutput} - */ - - }, { - key: "createAzureTarget", - value: function createAzureTarget(body) { - return this.createAzureTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateCertificate} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateCertificateOutput} and HTTP response - */ - - }, { - key: "createCertificateWithHttpInfo", - value: function createCertificateWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createCertificate"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateCertificateOutput["default"]; - return this.apiClient.callApi('/create-certificate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateCertificate} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateCertificateOutput} - */ - - }, { - key: "createCertificate", - value: function createCertificate(body) { - return this.createCertificateWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateClassicKeyOutput} and HTTP response - */ - - }, { - key: "createClassicKeyWithHttpInfo", - value: function createClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateClassicKeyOutput["default"]; - return this.apiClient.callApi('/create-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateClassicKeyOutput} - */ - - }, { - key: "createClassicKey", - value: function createClassicKey(body) { - return this.createClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateDBTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateDBTargetOutput} and HTTP response - */ - - }, { - key: "createDBTargetWithHttpInfo", - value: function createDBTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createDBTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateDBTargetOutput["default"]; - return this.apiClient.callApi('/create-db-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateDBTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateDBTargetOutput} - */ - - }, { - key: "createDBTarget", - value: function createDBTarget(body) { - return this.createDBTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateDFCKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateDFCKeyOutput} and HTTP response - */ - - }, { - key: "createDFCKeyWithHttpInfo", - value: function createDFCKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createDFCKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateDFCKeyOutput["default"]; - return this.apiClient.callApi('/create-dfc-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateDFCKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateDFCKeyOutput} - */ - - }, { - key: "createDFCKey", - value: function createDFCKey(body) { - return this.createDFCKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateDockerhubTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateDockerhubTargetOutput} and HTTP response - */ - - }, { - key: "createDockerhubTargetWithHttpInfo", - value: function createDockerhubTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createDockerhubTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateDockerhubTargetOutput["default"]; - return this.apiClient.callApi('/create-dockerhub-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateDockerhubTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateDockerhubTargetOutput} - */ - - }, { - key: "createDockerhubTarget", - value: function createDockerhubTarget(body) { - return this.createDockerhubTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateDynamicSecret} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "createDynamicSecretWithHttpInfo", - value: function createDynamicSecretWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createDynamicSecret"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/create-dynamic-secret', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateDynamicSecret} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "createDynamicSecret", - value: function createDynamicSecret(body) { - return this.createDynamicSecretWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateEKSTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateEKSTargetOutput} and HTTP response - */ - - }, { - key: "createEKSTargetWithHttpInfo", - value: function createEKSTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createEKSTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateEKSTargetOutput["default"]; - return this.apiClient.callApi('/create-eks-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateEKSTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateEKSTargetOutput} - */ - - }, { - key: "createEKSTarget", - value: function createEKSTarget(body) { - return this.createEKSTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateESM} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateESMOutput} and HTTP response - */ - - }, { - key: "createESMWithHttpInfo", - value: function createESMWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createESM"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateESMOutput["default"]; - return this.apiClient.callApi('/create-esm', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateESM} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateESMOutput} - */ - - }, { - key: "createESM", - value: function createESM(body) { - return this.createESMWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateEventForwarder} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateEventForwarderOutput} and HTTP response - */ - - }, { - key: "createEventForwarderWithHttpInfo", - value: function createEventForwarderWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createEventForwarder"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateEventForwarderOutput["default"]; - return this.apiClient.callApi('/create-event-forwarder', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateEventForwarder} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateEventForwarderOutput} - */ - - }, { - key: "createEventForwarder", - value: function createEventForwarder(body) { - return this.createEventForwarderWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateGKETarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateGKETargetOutput} and HTTP response - */ - - }, { - key: "createGKETargetWithHttpInfo", - value: function createGKETargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createGKETarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateGKETargetOutput["default"]; - return this.apiClient.callApi('/create-gke-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateGKETarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateGKETargetOutput} - */ - - }, { - key: "createGKETarget", - value: function createGKETarget(body) { - return this.createGKETargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateGcpTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateGcpTargetOutput} and HTTP response - */ - - }, { - key: "createGcpTargetWithHttpInfo", - value: function createGcpTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createGcpTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateGcpTargetOutput["default"]; - return this.apiClient.callApi('/create-gcp-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateGcpTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateGcpTargetOutput} - */ - - }, { - key: "createGcpTarget", - value: function createGcpTarget(body) { - return this.createGcpTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateGithubTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateGithubTargetOutput} and HTTP response - */ - - }, { - key: "createGithubTargetWithHttpInfo", - value: function createGithubTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createGithubTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateGithubTargetOutput["default"]; - return this.apiClient.callApi('/create-github-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateGithubTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateGithubTargetOutput} - */ - - }, { - key: "createGithubTarget", - value: function createGithubTarget(body) { - return this.createGithubTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateGlobalSignAtlasTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateGlobalSignAtlasTargetOutput} and HTTP response - */ - - }, { - key: "createGlobalSignAtlasTargetWithHttpInfo", - value: function createGlobalSignAtlasTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createGlobalSignAtlasTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateGlobalSignAtlasTargetOutput["default"]; - return this.apiClient.callApi('/create-globalsign-atlas-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateGlobalSignAtlasTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateGlobalSignAtlasTargetOutput} - */ - - }, { - key: "createGlobalSignAtlasTarget", - value: function createGlobalSignAtlasTarget(body) { - return this.createGlobalSignAtlasTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateGlobalSignTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateGlobalSignTargetOutput} and HTTP response - */ - - }, { - key: "createGlobalSignTargetWithHttpInfo", - value: function createGlobalSignTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createGlobalSignTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateGlobalSignTargetOutput["default"]; - return this.apiClient.callApi('/create-globalsign-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateGlobalSignTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateGlobalSignTargetOutput} - */ - - }, { - key: "createGlobalSignTarget", - value: function createGlobalSignTarget(body) { - return this.createGlobalSignTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateKeyOutput} and HTTP response - */ - - }, { - key: "createKeyWithHttpInfo", - value: function createKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateKeyOutput["default"]; - return this.apiClient.callApi('/create-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateKeyOutput} - */ - - }, { - key: "createKey", - value: function createKey(body) { - return this.createKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateLinkedTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateLinkedTargetOutput} and HTTP response - */ - - }, { - key: "createLinkedTargetWithHttpInfo", - value: function createLinkedTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createLinkedTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateLinkedTargetOutput["default"]; - return this.apiClient.callApi('/create-linked-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateLinkedTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateLinkedTargetOutput} - */ - - }, { - key: "createLinkedTarget", - value: function createLinkedTarget(body) { - return this.createLinkedTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateNativeK8STarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateNativeK8STargetOutput} and HTTP response - */ - - }, { - key: "createNativeK8STargetWithHttpInfo", - value: function createNativeK8STargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createNativeK8STarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateNativeK8STargetOutput["default"]; - return this.apiClient.callApi('/create-k8s-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateNativeK8STarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateNativeK8STargetOutput} - */ - - }, { - key: "createNativeK8STarget", - value: function createNativeK8STarget(body) { - return this.createNativeK8STargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreatePKICertIssuer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreatePKICertIssuerOutput} and HTTP response - */ - - }, { - key: "createPKICertIssuerWithHttpInfo", - value: function createPKICertIssuerWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createPKICertIssuer"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreatePKICertIssuerOutput["default"]; - return this.apiClient.callApi('/create-pki-cert-issuer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreatePKICertIssuer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreatePKICertIssuerOutput} - */ - - }, { - key: "createPKICertIssuer", - value: function createPKICertIssuer(body) { - return this.createPKICertIssuerWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreatePingTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreatePingTargetOutput} and HTTP response - */ - - }, { - key: "createPingTargetWithHttpInfo", - value: function createPingTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createPingTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreatePingTargetOutput["default"]; - return this.apiClient.callApi('/create-ping-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreatePingTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreatePingTargetOutput} - */ - - }, { - key: "createPingTarget", - value: function createPingTarget(body) { - return this.createPingTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateRabbitMQTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateRabbitMQTargetOutput} and HTTP response - */ - - }, { - key: "createRabbitMQTargetWithHttpInfo", - value: function createRabbitMQTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createRabbitMQTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateRabbitMQTargetOutput["default"]; - return this.apiClient.callApi('/create-rabbitmq-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateRabbitMQTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateRabbitMQTargetOutput} - */ - - }, { - key: "createRabbitMQTarget", - value: function createRabbitMQTarget(body) { - return this.createRabbitMQTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateRole} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "createRoleWithHttpInfo", - value: function createRoleWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createRole"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/create-role', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateRole} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "createRole", - value: function createRole(body) { - return this.createRoleWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateRotatedSecret} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateRotatedSecretOutput} and HTTP response - */ - - }, { - key: "createRotatedSecretWithHttpInfo", - value: function createRotatedSecretWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createRotatedSecret"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateRotatedSecretOutput["default"]; - return this.apiClient.callApi('/create-rotated-secret', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateRotatedSecret} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateRotatedSecretOutput} - */ - - }, { - key: "createRotatedSecret", - value: function createRotatedSecret(body) { - return this.createRotatedSecretWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateSSHCertIssuer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateSSHCertIssuerOutput} and HTTP response - */ - - }, { - key: "createSSHCertIssuerWithHttpInfo", - value: function createSSHCertIssuerWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createSSHCertIssuer"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateSSHCertIssuerOutput["default"]; - return this.apiClient.callApi('/create-ssh-cert-issuer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateSSHCertIssuer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateSSHCertIssuerOutput} - */ - - }, { - key: "createSSHCertIssuer", - value: function createSSHCertIssuer(body) { - return this.createSSHCertIssuerWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateSSHTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateSSHTargetOutput} and HTTP response - */ - - }, { - key: "createSSHTargetWithHttpInfo", - value: function createSSHTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createSSHTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateSSHTargetOutput["default"]; - return this.apiClient.callApi('/create-ssh-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateSSHTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateSSHTargetOutput} - */ - - }, { - key: "createSSHTarget", - value: function createSSHTarget(body) { - return this.createSSHTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateSalesforceTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateSalesforceTargetOutput} and HTTP response - */ - - }, { - key: "createSalesforceTargetWithHttpInfo", - value: function createSalesforceTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createSalesforceTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateSalesforceTargetOutput["default"]; - return this.apiClient.callApi('/create-salesforce-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateSalesforceTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateSalesforceTargetOutput} - */ - - }, { - key: "createSalesforceTarget", - value: function createSalesforceTarget(body) { - return this.createSalesforceTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateSecret} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateSecretOutput} and HTTP response - */ - - }, { - key: "createSecretWithHttpInfo", - value: function createSecretWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createSecret"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateSecretOutput["default"]; - return this.apiClient.callApi('/create-secret', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateSecret} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateSecretOutput} - */ - - }, { - key: "createSecret", - value: function createSecret(body) { - return this.createSecretWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateTokenizer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTokenizerOutput} and HTTP response - */ - - }, { - key: "createTokenizerWithHttpInfo", - value: function createTokenizerWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createTokenizer"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateTokenizerOutput["default"]; - return this.apiClient.callApi('/create-tokenizer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateTokenizer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTokenizerOutput} - */ - - }, { - key: "createTokenizer", - value: function createTokenizer(body) { - return this.createTokenizerWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateWebTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateWebTargetOutput} and HTTP response - */ - - }, { - key: "createWebTargetWithHttpInfo", - value: function createWebTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createWebTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateWebTargetOutput["default"]; - return this.apiClient.callApi('/create-web-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateWebTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateWebTargetOutput} - */ - - }, { - key: "createWebTarget", - value: function createWebTarget(body) { - return this.createWebTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateWindowsTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateWindowsTargetOutput} and HTTP response - */ - - }, { - key: "createWindowsTargetWithHttpInfo", - value: function createWindowsTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createWindowsTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateWindowsTargetOutput["default"]; - return this.apiClient.callApi('/create-windows-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateWindowsTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateWindowsTargetOutput} - */ - - }, { - key: "createWindowsTarget", - value: function createWindowsTarget(body) { - return this.createWindowsTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateZeroSSLTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateZeroSSLTargetOutput} and HTTP response - */ - - }, { - key: "createZeroSSLTargetWithHttpInfo", - value: function createZeroSSLTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createZeroSSLTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateZeroSSLTargetOutput["default"]; - return this.apiClient.callApi('/create-zerossl-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateZeroSSLTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateZeroSSLTargetOutput} - */ - - }, { - key: "createZeroSSLTarget", - value: function createZeroSSLTarget(body) { - return this.createZeroSSLTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/CreateLdapTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateLdapTargetOutput} and HTTP response - */ - - }, { - key: "createldapTargetWithHttpInfo", - value: function createldapTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling createldapTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateLdapTargetOutput["default"]; - return this.apiClient.callApi('/create-ldap-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/CreateLdapTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateLdapTargetOutput} - */ - - }, { - key: "createldapTarget", - value: function createldapTarget(body) { - return this.createldapTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/Decrypt} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DecryptOutput} and HTTP response - */ - - }, { - key: "decryptWithHttpInfo", - value: function decryptWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling decrypt"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _DecryptOutput["default"]; - return this.apiClient.callApi('/decrypt', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/Decrypt} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DecryptOutput} - */ - - }, { - key: "decrypt", - value: function decrypt(body) { - return this.decryptWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DecryptGPG} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DecryptGPGOutput} and HTTP response - */ - - }, { - key: "decryptGPGWithHttpInfo", - value: function decryptGPGWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling decryptGPG"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _DecryptGPGOutput["default"]; - return this.apiClient.callApi('/decrypt-gpg', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DecryptGPG} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DecryptGPGOutput} - */ - - }, { - key: "decryptGPG", - value: function decryptGPG(body) { - return this.decryptGPGWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DecryptPKCS1} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DecryptPKCS1Output} and HTTP response - */ - - }, { - key: "decryptPKCS1WithHttpInfo", - value: function decryptPKCS1WithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling decryptPKCS1"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _DecryptPKCS1Output["default"]; - return this.apiClient.callApi('/decrypt-pkcs1', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DecryptPKCS1} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DecryptPKCS1Output} - */ - - }, { - key: "decryptPKCS1", - value: function decryptPKCS1(body) { - return this.decryptPKCS1WithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DecryptWithClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DecryptWithClassicKeyOutput} and HTTP response - */ - - }, { - key: "decryptWithClassicKeyWithHttpInfo", - value: function decryptWithClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling decryptWithClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _DecryptWithClassicKeyOutput["default"]; - return this.apiClient.callApi('/decrypt-with-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DecryptWithClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DecryptWithClassicKeyOutput} - */ - - }, { - key: "decryptWithClassicKey", - value: function decryptWithClassicKey(body) { - return this.decryptWithClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DeleteAuthMethod} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteAuthMethodOutput} and HTTP response - */ - - }, { - key: "deleteAuthMethodWithHttpInfo", - value: function deleteAuthMethodWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling deleteAuthMethod"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _DeleteAuthMethodOutput["default"]; - return this.apiClient.callApi('/delete-auth-method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DeleteAuthMethod} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteAuthMethodOutput} - */ - - }, { - key: "deleteAuthMethod", - value: function deleteAuthMethod(body) { - return this.deleteAuthMethodWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DeleteAuthMethods} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteAuthMethodsOutput} and HTTP response - */ - - }, { - key: "deleteAuthMethodsWithHttpInfo", - value: function deleteAuthMethodsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling deleteAuthMethods"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _DeleteAuthMethodsOutput["default"]; - return this.apiClient.callApi('/delete-auth-methods', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DeleteAuthMethods} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteAuthMethodsOutput} - */ - - }, { - key: "deleteAuthMethods", - value: function deleteAuthMethods(body) { - return this.deleteAuthMethodsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DeleteEventForwarder} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "deleteEventForwarderWithHttpInfo", - value: function deleteEventForwarderWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling deleteEventForwarder"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/delete-event-forwarder', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DeleteEventForwarder} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "deleteEventForwarder", - value: function deleteEventForwarder(body) { - return this.deleteEventForwarderWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DeleteGatewayAllowedAccessId} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "deleteGatewayAllowedAccessIdWithHttpInfo", - value: function deleteGatewayAllowedAccessIdWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling deleteGatewayAllowedAccessId"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/gateway-delete-allowed-management-access', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DeleteGatewayAllowedAccessId} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "deleteGatewayAllowedAccessId", - value: function deleteGatewayAllowedAccessId(body) { - return this.deleteGatewayAllowedAccessIdWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DeleteGwCluster} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "deleteGwClusterWithHttpInfo", - value: function deleteGwClusterWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling deleteGwCluster"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/delete-gateway-cluster', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DeleteGwCluster} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "deleteGwCluster", - value: function deleteGwCluster(body) { - return this.deleteGwClusterWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DeleteItem} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteItemOutput} and HTTP response - */ - - }, { - key: "deleteItemWithHttpInfo", - value: function deleteItemWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling deleteItem"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _DeleteItemOutput["default"]; - return this.apiClient.callApi('/delete-item', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DeleteItem} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteItemOutput} - */ - - }, { - key: "deleteItem", - value: function deleteItem(body) { - return this.deleteItemWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DeleteItems} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteItemsOutput} and HTTP response - */ - - }, { - key: "deleteItemsWithHttpInfo", - value: function deleteItemsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling deleteItems"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _DeleteItemsOutput["default"]; - return this.apiClient.callApi('/delete-items', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DeleteItems} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteItemsOutput} - */ - - }, { - key: "deleteItems", - value: function deleteItems(body) { - return this.deleteItemsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DeleteRole} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "deleteRoleWithHttpInfo", - value: function deleteRoleWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling deleteRole"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/delete-role', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DeleteRole} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "deleteRole", - value: function deleteRole(body) { - return this.deleteRoleWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DeleteRoleAssociation} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "deleteRoleAssociationWithHttpInfo", - value: function deleteRoleAssociationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling deleteRoleAssociation"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/delete-assoc', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DeleteRoleAssociation} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "deleteRoleAssociation", - value: function deleteRoleAssociation(body) { - return this.deleteRoleAssociationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DeleteRoleRule} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteRoleRuleOutput} and HTTP response - */ - - }, { - key: "deleteRoleRuleWithHttpInfo", - value: function deleteRoleRuleWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling deleteRoleRule"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _DeleteRoleRuleOutput["default"]; - return this.apiClient.callApi('/delete-role-rule', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DeleteRoleRule} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteRoleRuleOutput} - */ - - }, { - key: "deleteRoleRule", - value: function deleteRoleRule(body) { - return this.deleteRoleRuleWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DeleteRoles} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "deleteRolesWithHttpInfo", - value: function deleteRolesWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling deleteRoles"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/delete-roles', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DeleteRoles} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "deleteRoles", - value: function deleteRoles(body) { - return this.deleteRolesWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DeleteTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "deleteTargetWithHttpInfo", - value: function deleteTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling deleteTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/delete-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DeleteTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "deleteTarget", - value: function deleteTarget(body) { - return this.deleteTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DeleteTargetAssociation} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "deleteTargetAssociationWithHttpInfo", - value: function deleteTargetAssociationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling deleteTargetAssociation"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/delete-assoc-target-item', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DeleteTargetAssociation} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "deleteTargetAssociation", - value: function deleteTargetAssociation(body) { - return this.deleteTargetAssociationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DeleteTargets} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "deleteTargetsWithHttpInfo", - value: function deleteTargetsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling deleteTargets"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/delete-targets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DeleteTargets} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "deleteTargets", - value: function deleteTargets(body) { - return this.deleteTargetsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DeriveKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeriveKeyOutput} and HTTP response - */ - - }, { - key: "deriveKeyWithHttpInfo", - value: function deriveKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling deriveKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _DeriveKeyOutput["default"]; - return this.apiClient.callApi('/derive-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DeriveKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeriveKeyOutput} - */ - - }, { - key: "deriveKey", - value: function deriveKey(body) { - return this.deriveKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DescribeAssoc} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RoleAssociationDetails} and HTTP response - */ - - }, { - key: "describeAssocWithHttpInfo", - value: function describeAssocWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling describeAssoc"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _RoleAssociationDetails["default"]; - return this.apiClient.callApi('/describe-role-am-assoc', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DescribeAssoc} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RoleAssociationDetails} - */ - - }, { - key: "describeAssoc", - value: function describeAssoc(body) { - return this.describeAssocWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DescribeItem} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Item} and HTTP response - */ - - }, { - key: "describeItemWithHttpInfo", - value: function describeItemWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling describeItem"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _Item["default"]; - return this.apiClient.callApi('/describe-item', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DescribeItem} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Item} - */ - - }, { - key: "describeItem", - value: function describeItem(body) { - return this.describeItemWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DescribePermissions} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DescribePermissionsOutput} and HTTP response - */ - - }, { - key: "describePermissionsWithHttpInfo", - value: function describePermissionsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling describePermissions"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _DescribePermissionsOutput["default"]; - return this.apiClient.callApi('/describe-permissions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DescribePermissions} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DescribePermissionsOutput} - */ - - }, { - key: "describePermissions", - value: function describePermissions(body) { - return this.describePermissionsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/DescribeSubClaims} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DescribeSubClaimsOutput} and HTTP response - */ - - }, { - key: "describeSubClaimsWithHttpInfo", - value: function describeSubClaimsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling describeSubClaims"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _DescribeSubClaimsOutput["default"]; - return this.apiClient.callApi('/describe-sub-claims', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/DescribeSubClaims} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DescribeSubClaimsOutput} - */ - - }, { - key: "describeSubClaims", - value: function describeSubClaims(body) { - return this.describeSubClaimsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/Detokenize} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DetokenizeOutput} and HTTP response - */ - - }, { - key: "detokenizeWithHttpInfo", - value: function detokenizeWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling detokenize"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _DetokenizeOutput["default"]; - return this.apiClient.callApi('/detokenize', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/Detokenize} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DetokenizeOutput} - */ - - }, { - key: "detokenize", - value: function detokenize(body) { - return this.detokenizeWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/Encrypt} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EncryptOutput} and HTTP response - */ - - }, { - key: "encryptWithHttpInfo", - value: function encryptWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling encrypt"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _EncryptOutput["default"]; - return this.apiClient.callApi('/encrypt', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/Encrypt} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EncryptOutput} - */ - - }, { - key: "encrypt", - value: function encrypt(body) { - return this.encryptWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/EncryptGPG} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EncryptGPGOutput} and HTTP response - */ - - }, { - key: "encryptGPGWithHttpInfo", - value: function encryptGPGWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling encryptGPG"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _EncryptGPGOutput["default"]; - return this.apiClient.callApi('/encrypt-gpg', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/EncryptGPG} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EncryptGPGOutput} - */ - - }, { - key: "encryptGPG", - value: function encryptGPG(body) { - return this.encryptGPGWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/EncryptWithClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EncryptOutput} and HTTP response - */ - - }, { - key: "encryptWithClassicKeyWithHttpInfo", - value: function encryptWithClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling encryptWithClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _EncryptOutput["default"]; - return this.apiClient.callApi('/encrypt-with-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/EncryptWithClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EncryptOutput} - */ - - }, { - key: "encryptWithClassicKey", - value: function encryptWithClassicKey(body) { - return this.encryptWithClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/EsmUpdate} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EsmCreateSecretOutput} and HTTP response - */ - - }, { - key: "esmCreateWithHttpInfo", - value: function esmCreateWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling esmCreate"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _EsmCreateSecretOutput["default"]; - return this.apiClient.callApi('/esm-create', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/EsmUpdate} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EsmCreateSecretOutput} - */ - - }, { - key: "esmCreate", - value: function esmCreate(body) { - return this.esmCreateWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/EsmDelete} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EsmDeleteSecretOutput} and HTTP response - */ - - }, { - key: "esmDeleteWithHttpInfo", - value: function esmDeleteWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling esmDelete"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _EsmDeleteSecretOutput["default"]; - return this.apiClient.callApi('/esm-delete', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/EsmDelete} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EsmDeleteSecretOutput} - */ - - }, { - key: "esmDelete", - value: function esmDelete(body) { - return this.esmDeleteWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/EsmGet} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EsmGetSecretOutput} and HTTP response - */ - - }, { - key: "esmGetWithHttpInfo", - value: function esmGetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling esmGet"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _EsmGetSecretOutput["default"]; - return this.apiClient.callApi('/esm-get', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/EsmGet} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EsmGetSecretOutput} - */ - - }, { - key: "esmGet", - value: function esmGet(body) { - return this.esmGetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/EsmList} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EsmListSecretsOutput} and HTTP response - */ - - }, { - key: "esmListWithHttpInfo", - value: function esmListWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling esmList"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _EsmListSecretsOutput["default"]; - return this.apiClient.callApi('/esm-list', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/EsmList} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EsmListSecretsOutput} - */ - - }, { - key: "esmList", - value: function esmList(body) { - return this.esmListWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EsmUpdateSecretOutput} and HTTP response - */ - - }, { - key: "esmUpdateWithHttpInfo", - value: function esmUpdateWithHttpInfo() { - var postBody = null; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _EsmUpdateSecretOutput["default"]; - return this.apiClient.callApi('/esm-update', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EsmUpdateSecretOutput} - */ - - }, { - key: "esmUpdate", - value: function esmUpdate() { - return this.esmUpdateWithHttpInfo().then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/EventAction} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "eventActionWithHttpInfo", - value: function eventActionWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling eventAction"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/event-action', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/EventAction} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "eventAction", - value: function eventAction(body) { - return this.eventActionWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/ExportClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ExportClassicKeyOutput} and HTTP response - */ - - }, { - key: "exportClassicKeyWithHttpInfo", - value: function exportClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling exportClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ExportClassicKeyOutput["default"]; - return this.apiClient.callApi('/export-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/ExportClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ExportClassicKeyOutput} - */ - - }, { - key: "exportClassicKey", - value: function exportClassicKey(body) { - return this.exportClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateAllowedAccess} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AllowedAccess} and HTTP response - */ - - }, { - key: "gatewayCreateAllowedAccessWithHttpInfo", - value: function gatewayCreateAllowedAccessWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateAllowedAccess"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AllowedAccess["default"]; - return this.apiClient.callApi('/gateway-create-allowed-access', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateAllowedAccess} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllowedAccess} - */ - - }, { - key: "gatewayCreateAllowedAccess", - value: function gatewayCreateAllowedAccess(body) { - return this.gatewayCreateAllowedAccessWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateK8SAuthConfig} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateK8SAuthConfigOutput} and HTTP response - */ - - }, { - key: "gatewayCreateK8SAuthConfigWithHttpInfo", - value: function gatewayCreateK8SAuthConfigWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateK8SAuthConfig"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateK8SAuthConfigOutput["default"]; - return this.apiClient.callApi('/gateway-create-k8s-auth-config', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateK8SAuthConfig} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateK8SAuthConfigOutput} - */ - - }, { - key: "gatewayCreateK8SAuthConfig", - value: function gatewayCreateK8SAuthConfig(body) { - return this.gatewayCreateK8SAuthConfigWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateMigration} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationCreateOutput} and HTTP response - */ - - }, { - key: "gatewayCreateMigrationWithHttpInfo", - value: function gatewayCreateMigrationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateMigration"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayMigrationCreateOutput["default"]; - return this.apiClient.callApi('/gateway-create-migration', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateMigration} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationCreateOutput} - */ - - }, { - key: "gatewayCreateMigration", - value: function gatewayCreateMigration(body) { - return this.gatewayCreateMigrationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerArtifactory} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerArtifactoryOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerArtifactoryWithHttpInfo", - value: function gatewayCreateProducerArtifactoryWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerArtifactory"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerArtifactoryOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-artifactory', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerArtifactory} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerArtifactoryOutput} - */ - - }, { - key: "gatewayCreateProducerArtifactory", - value: function gatewayCreateProducerArtifactory(body) { - return this.gatewayCreateProducerArtifactoryWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerAws} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerAwsOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerAwsWithHttpInfo", - value: function gatewayCreateProducerAwsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerAws"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerAwsOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-aws', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerAws} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerAwsOutput} - */ - - }, { - key: "gatewayCreateProducerAws", - value: function gatewayCreateProducerAws(body) { - return this.gatewayCreateProducerAwsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerAzure} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerAzureOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerAzureWithHttpInfo", - value: function gatewayCreateProducerAzureWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerAzure"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerAzureOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-azure', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerAzure} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerAzureOutput} - */ - - }, { - key: "gatewayCreateProducerAzure", - value: function gatewayCreateProducerAzure(body) { - return this.gatewayCreateProducerAzureWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerCassandra} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerCassandraOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerCassandraWithHttpInfo", - value: function gatewayCreateProducerCassandraWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerCassandra"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerCassandraOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-cassandra', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerCassandra} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerCassandraOutput} - */ - - }, { - key: "gatewayCreateProducerCassandra", - value: function gatewayCreateProducerCassandra(body) { - return this.gatewayCreateProducerCassandraWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerCertificateAutomation} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerCertificateAutomationOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerCertificateAutomationWithHttpInfo", - value: function gatewayCreateProducerCertificateAutomationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerCertificateAutomation"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerCertificateAutomationOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-certificate-automation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerCertificateAutomation} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerCertificateAutomationOutput} - */ - - }, { - key: "gatewayCreateProducerCertificateAutomation", - value: function gatewayCreateProducerCertificateAutomation(body) { - return this.gatewayCreateProducerCertificateAutomationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/GatewayCreateProducerCustom} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerCustomOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerCustomWithHttpInfo", - value: function gatewayCreateProducerCustomWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerCustomOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-custom', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/GatewayCreateProducerCustom} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerCustomOutput} - */ - - }, { - key: "gatewayCreateProducerCustom", - value: function gatewayCreateProducerCustom(opts) { - return this.gatewayCreateProducerCustomWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerDockerhub} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerDockerhubOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerDockerhubWithHttpInfo", - value: function gatewayCreateProducerDockerhubWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerDockerhub"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerDockerhubOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-dockerhub', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerDockerhub} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerDockerhubOutput} - */ - - }, { - key: "gatewayCreateProducerDockerhub", - value: function gatewayCreateProducerDockerhub(body) { - return this.gatewayCreateProducerDockerhubWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerEks} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerEksOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerEksWithHttpInfo", - value: function gatewayCreateProducerEksWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerEks"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerEksOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-eks', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerEks} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerEksOutput} - */ - - }, { - key: "gatewayCreateProducerEks", - value: function gatewayCreateProducerEks(body) { - return this.gatewayCreateProducerEksWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerGcp} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerGcpOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerGcpWithHttpInfo", - value: function gatewayCreateProducerGcpWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerGcp"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerGcpOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-gcp', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerGcp} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerGcpOutput} - */ - - }, { - key: "gatewayCreateProducerGcp", - value: function gatewayCreateProducerGcp(body) { - return this.gatewayCreateProducerGcpWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerGithub} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerGithubOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerGithubWithHttpInfo", - value: function gatewayCreateProducerGithubWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerGithub"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerGithubOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-github', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerGithub} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerGithubOutput} - */ - - }, { - key: "gatewayCreateProducerGithub", - value: function gatewayCreateProducerGithub(body) { - return this.gatewayCreateProducerGithubWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerGke} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerGkeOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerGkeWithHttpInfo", - value: function gatewayCreateProducerGkeWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerGke"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerGkeOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-gke', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerGke} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerGkeOutput} - */ - - }, { - key: "gatewayCreateProducerGke", - value: function gatewayCreateProducerGke(body) { - return this.gatewayCreateProducerGkeWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerHanaDb} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerHanaDbOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerHanaDbWithHttpInfo", - value: function gatewayCreateProducerHanaDbWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerHanaDb"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerHanaDbOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-hanadb', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerHanaDb} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerHanaDbOutput} - */ - - }, { - key: "gatewayCreateProducerHanaDb", - value: function gatewayCreateProducerHanaDb(body) { - return this.gatewayCreateProducerHanaDbWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerLdap} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerLdapOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerLdapWithHttpInfo", - value: function gatewayCreateProducerLdapWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerLdap"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerLdapOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-ldap', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerLdap} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerLdapOutput} - */ - - }, { - key: "gatewayCreateProducerLdap", - value: function gatewayCreateProducerLdap(body) { - return this.gatewayCreateProducerLdapWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerMSSQL} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerMSSQLOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerMSSQLWithHttpInfo", - value: function gatewayCreateProducerMSSQLWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerMSSQL"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerMSSQLOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-mssql', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerMSSQL} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerMSSQLOutput} - */ - - }, { - key: "gatewayCreateProducerMSSQL", - value: function gatewayCreateProducerMSSQL(body) { - return this.gatewayCreateProducerMSSQLWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerMongo} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerMongoOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerMongoWithHttpInfo", - value: function gatewayCreateProducerMongoWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerMongo"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerMongoOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-mongo', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerMongo} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerMongoOutput} - */ - - }, { - key: "gatewayCreateProducerMongo", - value: function gatewayCreateProducerMongo(body) { - return this.gatewayCreateProducerMongoWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerMySQL} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerMySQLOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerMySQLWithHttpInfo", - value: function gatewayCreateProducerMySQLWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerMySQL"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerMySQLOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-mysql', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerMySQL} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerMySQLOutput} - */ - - }, { - key: "gatewayCreateProducerMySQL", - value: function gatewayCreateProducerMySQL(body) { - return this.gatewayCreateProducerMySQLWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerNativeK8S} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerNativeK8SOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerNativeK8SWithHttpInfo", - value: function gatewayCreateProducerNativeK8SWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerNativeK8S"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerNativeK8SOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-k8s', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerNativeK8S} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerNativeK8SOutput} - */ - - }, { - key: "gatewayCreateProducerNativeK8S", - value: function gatewayCreateProducerNativeK8S(body) { - return this.gatewayCreateProducerNativeK8SWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerOracleDb} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerOracleDbOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerOracleDbWithHttpInfo", - value: function gatewayCreateProducerOracleDbWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerOracleDb"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerOracleDbOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-oracle', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerOracleDb} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerOracleDbOutput} - */ - - }, { - key: "gatewayCreateProducerOracleDb", - value: function gatewayCreateProducerOracleDb(body) { - return this.gatewayCreateProducerOracleDbWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerPing} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerPingOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerPingWithHttpInfo", - value: function gatewayCreateProducerPingWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerPing"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerPingOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-ping', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerPing} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerPingOutput} - */ - - }, { - key: "gatewayCreateProducerPing", - value: function gatewayCreateProducerPing(body) { - return this.gatewayCreateProducerPingWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerPostgreSQL} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerPostgreSQLOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerPostgreSQLWithHttpInfo", - value: function gatewayCreateProducerPostgreSQLWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerPostgreSQL"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerPostgreSQLOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-postgresql', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerPostgreSQL} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerPostgreSQLOutput} - */ - - }, { - key: "gatewayCreateProducerPostgreSQL", - value: function gatewayCreateProducerPostgreSQL(body) { - return this.gatewayCreateProducerPostgreSQLWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerRabbitMQ} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerRabbitMQOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerRabbitMQWithHttpInfo", - value: function gatewayCreateProducerRabbitMQWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerRabbitMQ"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerRabbitMQOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-rabbitmq', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerRabbitMQ} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerRabbitMQOutput} - */ - - }, { - key: "gatewayCreateProducerRabbitMQ", - value: function gatewayCreateProducerRabbitMQ(body) { - return this.gatewayCreateProducerRabbitMQWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerRdp} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerRdpOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerRdpWithHttpInfo", - value: function gatewayCreateProducerRdpWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerRdp"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerRdpOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-rdp', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerRdp} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerRdpOutput} - */ - - }, { - key: "gatewayCreateProducerRdp", - value: function gatewayCreateProducerRdp(body) { - return this.gatewayCreateProducerRdpWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerRedis} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerRedisOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerRedisWithHttpInfo", - value: function gatewayCreateProducerRedisWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerRedis"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerRedisOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-Redis', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerRedis} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerRedisOutput} - */ - - }, { - key: "gatewayCreateProducerRedis", - value: function gatewayCreateProducerRedis(body) { - return this.gatewayCreateProducerRedisWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerRedshift} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerRedshiftOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerRedshiftWithHttpInfo", - value: function gatewayCreateProducerRedshiftWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerRedshift"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerRedshiftOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-redshift', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerRedshift} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerRedshiftOutput} - */ - - }, { - key: "gatewayCreateProducerRedshift", - value: function gatewayCreateProducerRedshift(body) { - return this.gatewayCreateProducerRedshiftWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayCreateProducerSnowflake} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerSnowflakeOutput} and HTTP response - */ - - }, { - key: "gatewayCreateProducerSnowflakeWithHttpInfo", - value: function gatewayCreateProducerSnowflakeWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerSnowflake"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayCreateProducerSnowflakeOutput["default"]; - return this.apiClient.callApi('/gateway-create-producer-snowflake', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayCreateProducerSnowflake} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerSnowflakeOutput} - */ - - }, { - key: "gatewayCreateProducerSnowflake", - value: function gatewayCreateProducerSnowflake(body) { - return this.gatewayCreateProducerSnowflakeWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayDeleteAllowedAccess} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayDeleteAllowedAccessOutput} and HTTP response - */ - - }, { - key: "gatewayDeleteAllowedAccessWithHttpInfo", - value: function gatewayDeleteAllowedAccessWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayDeleteAllowedAccess"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayDeleteAllowedAccessOutput["default"]; - return this.apiClient.callApi('/gateway-delete-allowed-access', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayDeleteAllowedAccess} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayDeleteAllowedAccessOutput} - */ - - }, { - key: "gatewayDeleteAllowedAccess", - value: function gatewayDeleteAllowedAccess(body) { - return this.gatewayDeleteAllowedAccessWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayDeleteK8SAuthConfig} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayDeleteK8SAuthConfigOutput} and HTTP response - */ - - }, { - key: "gatewayDeleteK8SAuthConfigWithHttpInfo", - value: function gatewayDeleteK8SAuthConfigWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayDeleteK8SAuthConfig"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayDeleteK8SAuthConfigOutput["default"]; - return this.apiClient.callApi('/gateway-delete-k8s-auth-config', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayDeleteK8SAuthConfig} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayDeleteK8SAuthConfigOutput} - */ - - }, { - key: "gatewayDeleteK8SAuthConfig", - value: function gatewayDeleteK8SAuthConfig(body) { - return this.gatewayDeleteK8SAuthConfigWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayDeleteMigration} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationDeleteOutput} and HTTP response - */ - - }, { - key: "gatewayDeleteMigrationWithHttpInfo", - value: function gatewayDeleteMigrationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayDeleteMigration"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayMigrationDeleteOutput["default"]; - return this.apiClient.callApi('/gateway-delete-migration', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayDeleteMigration} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationDeleteOutput} - */ - - }, { - key: "gatewayDeleteMigration", - value: function gatewayDeleteMigration(body) { - return this.gatewayDeleteMigrationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayDeleteProducer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayDeleteProducerOutput} and HTTP response - */ - - }, { - key: "gatewayDeleteProducerWithHttpInfo", - value: function gatewayDeleteProducerWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayDeleteProducer"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayDeleteProducerOutput["default"]; - return this.apiClient.callApi('/gateway-delete-producer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayDeleteProducer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayDeleteProducerOutput} - */ - - }, { - key: "gatewayDeleteProducer", - value: function gatewayDeleteProducer(body) { - return this.gatewayDeleteProducerWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayDownloadCustomerFragments} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayDownloadCustomerFragmentsOutput} and HTTP response - */ - - }, { - key: "gatewayDownloadCustomerFragmentsWithHttpInfo", - value: function gatewayDownloadCustomerFragmentsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayDownloadCustomerFragments"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayDownloadCustomerFragmentsOutput["default"]; - return this.apiClient.callApi('/gateway-download-customer-fragments', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayDownloadCustomerFragments} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayDownloadCustomerFragmentsOutput} - */ - - }, { - key: "gatewayDownloadCustomerFragments", - value: function gatewayDownloadCustomerFragments(body) { - return this.gatewayDownloadCustomerFragmentsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayGetAllowedAccess} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AllowedAccess} and HTTP response - */ - - }, { - key: "gatewayGetAllowedAccessWithHttpInfo", - value: function gatewayGetAllowedAccessWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayGetAllowedAccess"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AllowedAccess["default"]; - return this.apiClient.callApi('/gateway-get-allowed-access', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayGetAllowedAccess} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllowedAccess} - */ - - }, { - key: "gatewayGetAllowedAccess", - value: function gatewayGetAllowedAccess(body) { - return this.gatewayGetAllowedAccessWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayGetConfig} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AkeylessGatewayConfig} and HTTP response - */ - - }, { - key: "gatewayGetConfigWithHttpInfo", - value: function gatewayGetConfigWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayGetConfig"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AkeylessGatewayConfig["default"]; - return this.apiClient.callApi('/gateway-get-config', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayGetConfig} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AkeylessGatewayConfig} - */ - - }, { - key: "gatewayGetConfig", - value: function gatewayGetConfig(body) { - return this.gatewayGetConfigWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayGetK8SAuthConfig} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayGetK8SAuthConfigOutput} and HTTP response - */ - - }, { - key: "gatewayGetK8SAuthConfigWithHttpInfo", - value: function gatewayGetK8SAuthConfigWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayGetK8SAuthConfig"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayGetK8SAuthConfigOutput["default"]; - return this.apiClient.callApi('/gateway-get-k8s-auth-config', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayGetK8SAuthConfig} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayGetK8SAuthConfigOutput} - */ - - }, { - key: "gatewayGetK8SAuthConfig", - value: function gatewayGetK8SAuthConfig(body) { - return this.gatewayGetK8SAuthConfigWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayGetLdapAuthConfig} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayGetLdapAuthConfigOutput} and HTTP response - */ - - }, { - key: "gatewayGetLdapAuthConfigWithHttpInfo", - value: function gatewayGetLdapAuthConfigWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayGetLdapAuthConfig"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayGetLdapAuthConfigOutput["default"]; - return this.apiClient.callApi('/gateway-get-ldap-auth-config', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayGetLdapAuthConfig} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayGetLdapAuthConfigOutput} - */ - - }, { - key: "gatewayGetLdapAuthConfig", - value: function gatewayGetLdapAuthConfig(body) { - return this.gatewayGetLdapAuthConfigWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayGetMigration} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationGetOutput} and HTTP response - */ - - }, { - key: "gatewayGetMigrationWithHttpInfo", - value: function gatewayGetMigrationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayGetMigration"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayMigrationGetOutput["default"]; - return this.apiClient.callApi('/gateway-get-migration', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayGetMigration} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationGetOutput} - */ - - }, { - key: "gatewayGetMigration", - value: function gatewayGetMigration(body) { - return this.gatewayGetMigrationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayGetProducer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DSProducerDetails} and HTTP response - */ - - }, { - key: "gatewayGetProducerWithHttpInfo", - value: function gatewayGetProducerWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayGetProducer"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _DSProducerDetails["default"]; - return this.apiClient.callApi('/gateway-get-producer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayGetProducer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DSProducerDetails} - */ - - }, { - key: "gatewayGetProducer", - value: function gatewayGetProducer(body) { - return this.gatewayGetProducerWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayGetTmpUsers} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response - */ - - }, { - key: "gatewayGetTmpUsersWithHttpInfo", - value: function gatewayGetTmpUsersWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayGetTmpUsers"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = [_TmpUserData["default"]]; - return this.apiClient.callApi('/gateway-get-producer-tmp-creds', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayGetTmpUsers} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} - */ - - }, { - key: "gatewayGetTmpUsers", - value: function gatewayGetTmpUsers(body) { - return this.gatewayGetTmpUsersWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayListMigration} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationListOutput} and HTTP response - */ - - }, { - key: "gatewayListMigrationWithHttpInfo", - value: function gatewayListMigrationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayListMigration"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayMigrationListOutput["default"]; - return this.apiClient.callApi('/gateway-list-migration', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayListMigration} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationListOutput} - */ - - }, { - key: "gatewayListMigration", - value: function gatewayListMigration(body) { - return this.gatewayListMigrationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayListProducers} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducersListReplyObj} and HTTP response - */ - - }, { - key: "gatewayListProducersWithHttpInfo", - value: function gatewayListProducersWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayListProducers"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetProducersListReplyObj["default"]; - return this.apiClient.callApi('/gateway-list-producers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayListProducers} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducersListReplyObj} - */ - - }, { - key: "gatewayListProducers", - value: function gatewayListProducers(body) { - return this.gatewayListProducersWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayListRotatedSecrets} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListItemsOutput} and HTTP response - */ - - }, { - key: "gatewayListRotatedSecretsWithHttpInfo", - value: function gatewayListRotatedSecretsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayListRotatedSecrets"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ListItemsOutput["default"]; - return this.apiClient.callApi('/gateway-list-rotated-secrets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayListRotatedSecrets} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListItemsOutput} - */ - - }, { - key: "gatewayListRotatedSecrets", - value: function gatewayListRotatedSecrets(body) { - return this.gatewayListRotatedSecretsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/GatewayMigratePersonalItems} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigratePersonalItemsOutput} and HTTP response - */ - - }, { - key: "gatewayMigratePersonalItemsWithHttpInfo", - value: function gatewayMigratePersonalItemsWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayMigratePersonalItemsOutput["default"]; - return this.apiClient.callApi('/gateway-migrate-personal-items', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/GatewayMigratePersonalItems} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigratePersonalItemsOutput} - */ - - }, { - key: "gatewayMigratePersonalItems", - value: function gatewayMigratePersonalItems(opts) { - return this.gatewayMigratePersonalItemsWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayRevokeTmpUsers} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - - }, { - key: "gatewayRevokeTmpUsersWithHttpInfo", - value: function gatewayRevokeTmpUsersWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayRevokeTmpUsers"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - return this.apiClient.callApi('/gateway-revoke-producer-tmp-creds', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayRevokeTmpUsers} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - - }, { - key: "gatewayRevokeTmpUsers", - value: function gatewayRevokeTmpUsers(body) { - return this.gatewayRevokeTmpUsersWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayStartProducer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayStartProducerOutput} and HTTP response - */ - - }, { - key: "gatewayStartProducerWithHttpInfo", - value: function gatewayStartProducerWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayStartProducer"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayStartProducerOutput["default"]; - return this.apiClient.callApi('/gateway-start-producer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayStartProducer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayStartProducerOutput} - */ - - }, { - key: "gatewayStartProducer", - value: function gatewayStartProducer(body) { - return this.gatewayStartProducerWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayStatusMigration} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MigrationStatusReplyObj} and HTTP response - */ - - }, { - key: "gatewayStatusMigrationWithHttpInfo", - value: function gatewayStatusMigrationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayStatusMigration"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _MigrationStatusReplyObj["default"]; - return this.apiClient.callApi('/gateway-migration-status', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayStatusMigration} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MigrationStatusReplyObj} - */ - - }, { - key: "gatewayStatusMigration", - value: function gatewayStatusMigration(body) { - return this.gatewayStatusMigrationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayStopProducer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayStopProducerOutput} and HTTP response - */ - - }, { - key: "gatewayStopProducerWithHttpInfo", - value: function gatewayStopProducerWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayStopProducer"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayStopProducerOutput["default"]; - return this.apiClient.callApi('/gateway-stop-producer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayStopProducer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayStopProducerOutput} - */ - - }, { - key: "gatewayStopProducer", - value: function gatewayStopProducer(body) { - return this.gatewayStopProducerWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewaySyncMigration} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationSyncOutput} and HTTP response - */ - - }, { - key: "gatewaySyncMigrationWithHttpInfo", - value: function gatewaySyncMigrationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewaySyncMigration"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayMigrationSyncOutput["default"]; - return this.apiClient.callApi('/gateway-sync-migration', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewaySyncMigration} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationSyncOutput} - */ - - }, { - key: "gatewaySyncMigration", - value: function gatewaySyncMigration(body) { - return this.gatewaySyncMigrationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateAllowedAccess} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AllowedAccess} and HTTP response - */ - - }, { - key: "gatewayUpdateAllowedAccessWithHttpInfo", - value: function gatewayUpdateAllowedAccessWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateAllowedAccess"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AllowedAccess["default"]; - return this.apiClient.callApi('/gateway-update-allowed-access', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateAllowedAccess} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllowedAccess} - */ - - }, { - key: "gatewayUpdateAllowedAccess", - value: function gatewayUpdateAllowedAccess(body) { - return this.gatewayUpdateAllowedAccessWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateItem} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateItemOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateItemWithHttpInfo", - value: function gatewayUpdateItemWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateItem"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateItemOutput["default"]; - return this.apiClient.callApi('/gateway-update-item', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateItem} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateItemOutput} - */ - - }, { - key: "gatewayUpdateItem", - value: function gatewayUpdateItem(body) { - return this.gatewayUpdateItemWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateK8SAuthConfig} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateK8SAuthConfigOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateK8SAuthConfigWithHttpInfo", - value: function gatewayUpdateK8SAuthConfigWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateK8SAuthConfig"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateK8SAuthConfigOutput["default"]; - return this.apiClient.callApi('/gateway-update-k8s-auth-config', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateK8SAuthConfig} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateK8SAuthConfigOutput} - */ - - }, { - key: "gatewayUpdateK8SAuthConfig", - value: function gatewayUpdateK8SAuthConfig(body) { - return this.gatewayUpdateK8SAuthConfigWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateLdapAuthConfig} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateLdapAuthConfigOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateLdapAuthConfigWithHttpInfo", - value: function gatewayUpdateLdapAuthConfigWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateLdapAuthConfig"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateLdapAuthConfigOutput["default"]; - return this.apiClient.callApi('/gateway-update-ldap-auth-config', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateLdapAuthConfig} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateLdapAuthConfigOutput} - */ - - }, { - key: "gatewayUpdateLdapAuthConfig", - value: function gatewayUpdateLdapAuthConfig(body) { - return this.gatewayUpdateLdapAuthConfigWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateMigration} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationUpdateOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateMigrationWithHttpInfo", - value: function gatewayUpdateMigrationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateMigration"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayMigrationUpdateOutput["default"]; - return this.apiClient.callApi('/gateway-update-migration', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateMigration} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationUpdateOutput} - */ - - }, { - key: "gatewayUpdateMigration", - value: function gatewayUpdateMigration(body) { - return this.gatewayUpdateMigrationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerArtifactory} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerArtifactoryOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerArtifactoryWithHttpInfo", - value: function gatewayUpdateProducerArtifactoryWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerArtifactory"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerArtifactoryOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-artifactory', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerArtifactory} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerArtifactoryOutput} - */ - - }, { - key: "gatewayUpdateProducerArtifactory", - value: function gatewayUpdateProducerArtifactory(body) { - return this.gatewayUpdateProducerArtifactoryWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerAws} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerAwsOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerAwsWithHttpInfo", - value: function gatewayUpdateProducerAwsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerAws"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerAwsOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-aws', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerAws} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerAwsOutput} - */ - - }, { - key: "gatewayUpdateProducerAws", - value: function gatewayUpdateProducerAws(body) { - return this.gatewayUpdateProducerAwsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerAzure} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerAzureOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerAzureWithHttpInfo", - value: function gatewayUpdateProducerAzureWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerAzure"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerAzureOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-azure', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerAzure} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerAzureOutput} - */ - - }, { - key: "gatewayUpdateProducerAzure", - value: function gatewayUpdateProducerAzure(body) { - return this.gatewayUpdateProducerAzureWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerCassandra} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerCassandraOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerCassandraWithHttpInfo", - value: function gatewayUpdateProducerCassandraWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerCassandra"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerCassandraOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-cassandra', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerCassandra} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerCassandraOutput} - */ - - }, { - key: "gatewayUpdateProducerCassandra", - value: function gatewayUpdateProducerCassandra(body) { - return this.gatewayUpdateProducerCassandraWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerCertificateAutomation} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerCertificateAutomationOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerCertificateAutomationWithHttpInfo", - value: function gatewayUpdateProducerCertificateAutomationWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerCertificateAutomation"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerCertificateAutomationOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-certificate-automation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerCertificateAutomation} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerCertificateAutomationOutput} - */ - - }, { - key: "gatewayUpdateProducerCertificateAutomation", - value: function gatewayUpdateProducerCertificateAutomation(body) { - return this.gatewayUpdateProducerCertificateAutomationWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/GatewayUpdateProducerCustom} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerCustomOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerCustomWithHttpInfo", - value: function gatewayUpdateProducerCustomWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerCustomOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-custom', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/GatewayUpdateProducerCustom} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerCustomOutput} - */ - - }, { - key: "gatewayUpdateProducerCustom", - value: function gatewayUpdateProducerCustom(opts) { - return this.gatewayUpdateProducerCustomWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerDockerhub} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerDockerhubOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerDockerhubWithHttpInfo", - value: function gatewayUpdateProducerDockerhubWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerDockerhub"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerDockerhubOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-dockerhub', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerDockerhub} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerDockerhubOutput} - */ - - }, { - key: "gatewayUpdateProducerDockerhub", - value: function gatewayUpdateProducerDockerhub(body) { - return this.gatewayUpdateProducerDockerhubWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerEks} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerEksOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerEksWithHttpInfo", - value: function gatewayUpdateProducerEksWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerEks"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerEksOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-eks', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerEks} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerEksOutput} - */ - - }, { - key: "gatewayUpdateProducerEks", - value: function gatewayUpdateProducerEks(body) { - return this.gatewayUpdateProducerEksWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerGcp} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerGcpOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerGcpWithHttpInfo", - value: function gatewayUpdateProducerGcpWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerGcp"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerGcpOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-gcp', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerGcp} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerGcpOutput} - */ - - }, { - key: "gatewayUpdateProducerGcp", - value: function gatewayUpdateProducerGcp(body) { - return this.gatewayUpdateProducerGcpWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerGithub} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerGithubOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerGithubWithHttpInfo", - value: function gatewayUpdateProducerGithubWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerGithub"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerGithubOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-github', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerGithub} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerGithubOutput} - */ - - }, { - key: "gatewayUpdateProducerGithub", - value: function gatewayUpdateProducerGithub(body) { - return this.gatewayUpdateProducerGithubWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerGke} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerGkeOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerGkeWithHttpInfo", - value: function gatewayUpdateProducerGkeWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerGke"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerGkeOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-gke', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerGke} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerGkeOutput} - */ - - }, { - key: "gatewayUpdateProducerGke", - value: function gatewayUpdateProducerGke(body) { - return this.gatewayUpdateProducerGkeWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerHanaDb} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerHanaDbOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerHanaDbWithHttpInfo", - value: function gatewayUpdateProducerHanaDbWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerHanaDb"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerHanaDbOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-hana', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerHanaDb} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerHanaDbOutput} - */ - - }, { - key: "gatewayUpdateProducerHanaDb", - value: function gatewayUpdateProducerHanaDb(body) { - return this.gatewayUpdateProducerHanaDbWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerLdap} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerLdapOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerLdapWithHttpInfo", - value: function gatewayUpdateProducerLdapWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerLdap"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerLdapOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-ldap', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerLdap} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerLdapOutput} - */ - - }, { - key: "gatewayUpdateProducerLdap", - value: function gatewayUpdateProducerLdap(body) { - return this.gatewayUpdateProducerLdapWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerMSSQL} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerMSSQLOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerMSSQLWithHttpInfo", - value: function gatewayUpdateProducerMSSQLWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerMSSQL"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerMSSQLOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-mssql', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerMSSQL} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerMSSQLOutput} - */ - - }, { - key: "gatewayUpdateProducerMSSQL", - value: function gatewayUpdateProducerMSSQL(body) { - return this.gatewayUpdateProducerMSSQLWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerMongo} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerMongoOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerMongoWithHttpInfo", - value: function gatewayUpdateProducerMongoWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerMongo"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerMongoOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-mongo', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerMongo} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerMongoOutput} - */ - - }, { - key: "gatewayUpdateProducerMongo", - value: function gatewayUpdateProducerMongo(body) { - return this.gatewayUpdateProducerMongoWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerMySQL} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerMySQLOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerMySQLWithHttpInfo", - value: function gatewayUpdateProducerMySQLWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerMySQL"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerMySQLOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-mysql', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerMySQL} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerMySQLOutput} - */ - - }, { - key: "gatewayUpdateProducerMySQL", - value: function gatewayUpdateProducerMySQL(body) { - return this.gatewayUpdateProducerMySQLWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerNativeK8S} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerNativeK8SOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerNativeK8SWithHttpInfo", - value: function gatewayUpdateProducerNativeK8SWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerNativeK8S"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerNativeK8SOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-k8s', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerNativeK8S} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerNativeK8SOutput} - */ - - }, { - key: "gatewayUpdateProducerNativeK8S", - value: function gatewayUpdateProducerNativeK8S(body) { - return this.gatewayUpdateProducerNativeK8SWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerOracleDb} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerOracleDbOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerOracleDbWithHttpInfo", - value: function gatewayUpdateProducerOracleDbWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerOracleDb"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerOracleDbOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-oracle', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerOracleDb} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerOracleDbOutput} - */ - - }, { - key: "gatewayUpdateProducerOracleDb", - value: function gatewayUpdateProducerOracleDb(body) { - return this.gatewayUpdateProducerOracleDbWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerPing} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerPingOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerPingWithHttpInfo", - value: function gatewayUpdateProducerPingWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerPing"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerPingOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-ping', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerPing} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerPingOutput} - */ - - }, { - key: "gatewayUpdateProducerPing", - value: function gatewayUpdateProducerPing(body) { - return this.gatewayUpdateProducerPingWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerPostgreSQL} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerPostgreSQLOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerPostgreSQLWithHttpInfo", - value: function gatewayUpdateProducerPostgreSQLWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerPostgreSQL"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerPostgreSQLOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-postgresql', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerPostgreSQL} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerPostgreSQLOutput} - */ - - }, { - key: "gatewayUpdateProducerPostgreSQL", - value: function gatewayUpdateProducerPostgreSQL(body) { - return this.gatewayUpdateProducerPostgreSQLWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerRabbitMQ} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerRabbitMQOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerRabbitMQWithHttpInfo", - value: function gatewayUpdateProducerRabbitMQWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerRabbitMQ"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerRabbitMQOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-rabbitmq', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerRabbitMQ} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerRabbitMQOutput} - */ - - }, { - key: "gatewayUpdateProducerRabbitMQ", - value: function gatewayUpdateProducerRabbitMQ(body) { - return this.gatewayUpdateProducerRabbitMQWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerRdp} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerRdpOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerRdpWithHttpInfo", - value: function gatewayUpdateProducerRdpWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerRdp"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerRdpOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-rdp', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerRdp} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerRdpOutput} - */ - - }, { - key: "gatewayUpdateProducerRdp", - value: function gatewayUpdateProducerRdp(body) { - return this.gatewayUpdateProducerRdpWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerRedis} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerRedisOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerRedisWithHttpInfo", - value: function gatewayUpdateProducerRedisWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerRedis"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerRedisOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-redis', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerRedis} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerRedisOutput} - */ - - }, { - key: "gatewayUpdateProducerRedis", - value: function gatewayUpdateProducerRedis(body) { - return this.gatewayUpdateProducerRedisWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerRedshift} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerRedshiftOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerRedshiftWithHttpInfo", - value: function gatewayUpdateProducerRedshiftWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerRedshift"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerRedshiftOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-redshift', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerRedshift} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerRedshiftOutput} - */ - - }, { - key: "gatewayUpdateProducerRedshift", - value: function gatewayUpdateProducerRedshift(body) { - return this.gatewayUpdateProducerRedshiftWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateProducerSnowflake} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerSnowflakeOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateProducerSnowflakeWithHttpInfo", - value: function gatewayUpdateProducerSnowflakeWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerSnowflake"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateProducerSnowflakeOutput["default"]; - return this.apiClient.callApi('/gateway-update-producer-snowflake', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateProducerSnowflake} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerSnowflakeOutput} - */ - - }, { - key: "gatewayUpdateProducerSnowflake", - value: function gatewayUpdateProducerSnowflake(body) { - return this.gatewayUpdateProducerSnowflakeWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateTlsCert} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateTlsCertOutput} and HTTP response - */ - - }, { - key: "gatewayUpdateTlsCertWithHttpInfo", - value: function gatewayUpdateTlsCertWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateTlsCert"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewayUpdateTlsCertOutput["default"]; - return this.apiClient.callApi('/gateway-update-tls-cert', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateTlsCert} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateTlsCertOutput} - */ - - }, { - key: "gatewayUpdateTlsCert", - value: function gatewayUpdateTlsCert(body) { - return this.gatewayUpdateTlsCertWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GatewayUpdateTmpUsers} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - - }, { - key: "gatewayUpdateTmpUsersWithHttpInfo", - value: function gatewayUpdateTmpUsersWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling gatewayUpdateTmpUsers"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - return this.apiClient.callApi('/gateway-update-producer-tmp-creds', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GatewayUpdateTmpUsers} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - - }, { - key: "gatewayUpdateTmpUsers", - value: function gatewayUpdateTmpUsers(body) { - return this.gatewayUpdateTmpUsersWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GenerateCsr} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GenerateCsrOutput} and HTTP response - */ - - }, { - key: "generateCsrWithHttpInfo", - value: function generateCsrWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling generateCsr"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GenerateCsrOutput["default"]; - return this.apiClient.callApi('/generate-csr', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GenerateCsr} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GenerateCsrOutput} - */ - - }, { - key: "generateCsr", - value: function generateCsr(body) { - return this.generateCsrWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - - }, { - key: "getAccountLogoWithHttpInfo", - value: function getAccountLogoWithHttpInfo() { - var postBody = null; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = { - 'String': 'String' - }; - return this.apiClient.callApi('/get-account-logo', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - - }, { - key: "getAccountLogo", - value: function getAccountLogo() { - return this.getAccountLogoWithHttpInfo().then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GetAccountSettings} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAccountSettingsCommandOutput} and HTTP response - */ - - }, { - key: "getAccountSettingsWithHttpInfo", - value: function getAccountSettingsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getAccountSettings"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetAccountSettingsCommandOutput["default"]; - return this.apiClient.callApi('/get-account-settings', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GetAccountSettings} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAccountSettingsCommandOutput} - */ - - }, { - key: "getAccountSettings", - value: function getAccountSettings(body) { - return this.getAccountSettingsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GetAuthMethod} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AuthMethod} and HTTP response - */ - - }, { - key: "getAuthMethodWithHttpInfo", - value: function getAuthMethodWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getAuthMethod"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AuthMethod["default"]; - return this.apiClient.callApi('/get-auth-method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GetAuthMethod} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AuthMethod} - */ - - }, { - key: "getAuthMethod", - value: function getAuthMethod(body) { - return this.getAuthMethodWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GetCertificateValue} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetCertificateValueOutput} and HTTP response - */ - - }, { - key: "getCertificateValueWithHttpInfo", - value: function getCertificateValueWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getCertificateValue"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetCertificateValueOutput["default"]; - return this.apiClient.callApi('/get-certificate-value', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GetCertificateValue} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetCertificateValueOutput} - */ - - }, { - key: "getCertificateValue", - value: function getCertificateValue(body) { - return this.getCertificateValueWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GetDynamicSecretValue} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - - }, { - key: "getDynamicSecretValueWithHttpInfo", - value: function getDynamicSecretValueWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getDynamicSecretValue"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = { - 'String': 'String' - }; - return this.apiClient.callApi('/get-dynamic-secret-value', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GetDynamicSecretValue} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - - }, { - key: "getDynamicSecretValue", - value: function getDynamicSecretValue(body) { - return this.getDynamicSecretValueWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GetEventForwarder} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEventForwarderOutput} and HTTP response - */ - - }, { - key: "getEventForwarderWithHttpInfo", - value: function getEventForwarderWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getEventForwarder"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetEventForwarderOutput["default"]; - return this.apiClient.callApi('/get-event-forwarder', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GetEventForwarder} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEventForwarderOutput} - */ - - }, { - key: "getEventForwarder", - value: function getEventForwarder(body) { - return this.getEventForwarderWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GetKubeExecCreds} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetKubeExecCredsOutput} and HTTP response - */ - - }, { - key: "getKubeExecCredsWithHttpInfo", - value: function getKubeExecCredsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getKubeExecCreds"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetKubeExecCredsOutput["default"]; - return this.apiClient.callApi('/get-kube-exec-creds', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GetKubeExecCreds} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetKubeExecCredsOutput} - */ - - }, { - key: "getKubeExecCreds", - value: function getKubeExecCreds(body) { - return this.getKubeExecCredsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GetPKICertificate} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetPKICertificateOutput} and HTTP response - */ - - }, { - key: "getPKICertificateWithHttpInfo", - value: function getPKICertificateWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getPKICertificate"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetPKICertificateOutput["default"]; - return this.apiClient.callApi('/get-pki-certificate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GetPKICertificate} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetPKICertificateOutput} - */ - - }, { - key: "getPKICertificate", - value: function getPKICertificate(body) { - return this.getPKICertificateWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GetRSAPublic} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRSAPublicOutput} and HTTP response - */ - - }, { - key: "getRSAPublicWithHttpInfo", - value: function getRSAPublicWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getRSAPublic"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetRSAPublicOutput["default"]; - return this.apiClient.callApi('/get-rsa-public', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GetRSAPublic} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRSAPublicOutput} - */ - - }, { - key: "getRSAPublic", - value: function getRSAPublic(body) { - return this.getRSAPublicWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GetRole} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Role} and HTTP response - */ - - }, { - key: "getRoleWithHttpInfo", - value: function getRoleWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getRole"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _Role["default"]; - return this.apiClient.callApi('/get-role', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GetRole} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Role} - */ - - }, { - key: "getRole", - value: function getRole(body) { - return this.getRoleWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GetRotatedSecretValue} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - - }, { - key: "getRotatedSecretValueWithHttpInfo", - value: function getRotatedSecretValueWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getRotatedSecretValue"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = { - 'String': Object - }; - return this.apiClient.callApi('/get-rotated-secret-value', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GetRotatedSecretValue} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - - }, { - key: "getRotatedSecretValue", - value: function getRotatedSecretValue(body) { - return this.getRotatedSecretValueWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GetSSHCertificate} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSSHCertificateOutput} and HTTP response - */ - - }, { - key: "getSSHCertificateWithHttpInfo", - value: function getSSHCertificateWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getSSHCertificate"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetSSHCertificateOutput["default"]; - return this.apiClient.callApi('/get-ssh-certificate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GetSSHCertificate} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSSHCertificateOutput} - */ - - }, { - key: "getSSHCertificate", - value: function getSSHCertificate(body) { - return this.getSSHCertificateWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GetSecretValue} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - - }, { - key: "getSecretValueWithHttpInfo", - value: function getSecretValueWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getSecretValue"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = { - 'String': 'String' - }; - return this.apiClient.callApi('/get-secret-value', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GetSecretValue} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - - }, { - key: "getSecretValue", - value: function getSecretValue(body) { - return this.getSecretValueWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GetTags} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response - */ - - }, { - key: "getTagsWithHttpInfo", - value: function getTagsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getTags"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = ['String']; - return this.apiClient.callApi('/get-tags', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GetTags} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} - */ - - }, { - key: "getTags", - value: function getTags(body) { - return this.getTagsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GetTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Target} and HTTP response - */ - - }, { - key: "getTargetWithHttpInfo", - value: function getTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _Target["default"]; - return this.apiClient.callApi('/get-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GetTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Target} - */ - - }, { - key: "getTarget", - value: function getTarget(body) { - return this.getTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/GetTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetTargetDetailsOutput} and HTTP response - */ - - }, { - key: "getTargetDetailsWithHttpInfo", - value: function getTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling getTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GetTargetDetailsOutput["default"]; - return this.apiClient.callApi('/get-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/GetTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetTargetDetailsOutput} - */ - - }, { - key: "getTargetDetails", - value: function getTargetDetails(body) { - return this.getTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/Hmac} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HmacOutput} and HTTP response - */ - - }, { - key: "hmacWithHttpInfo", - value: function hmacWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling hmac"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _HmacOutput["default"]; - return this.apiClient.callApi('/hmac', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/Hmac} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HmacOutput} - */ - - }, { - key: "hmac", - value: function hmac(body) { - return this.hmacWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/ImportPasswords} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ImportPasswordsOutput} and HTTP response - */ - - }, { - key: "importPasswordsWithHttpInfo", - value: function importPasswordsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling importPasswords"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ImportPasswordsOutput["default"]; - return this.apiClient.callApi('/import-passwords', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/ImportPasswords} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ImportPasswordsOutput} - */ - - }, { - key: "importPasswords", - value: function importPasswords(body) { - return this.importPasswordsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipClientDeleteRule} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KMIPClientUpdateResponse} and HTTP response - */ - - }, { - key: "kmipClientDeleteRuleWithHttpInfo", - value: function kmipClientDeleteRuleWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KMIPClientUpdateResponse["default"]; - return this.apiClient.callApi('/kmip-client-delete-rule', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipClientDeleteRule} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KMIPClientUpdateResponse} - */ - - }, { - key: "kmipClientDeleteRule", - value: function kmipClientDeleteRule(opts) { - return this.kmipClientDeleteRuleWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipClientSetRule} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KMIPClientUpdateResponse} and HTTP response - */ - - }, { - key: "kmipClientSetRuleWithHttpInfo", - value: function kmipClientSetRuleWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KMIPClientUpdateResponse["default"]; - return this.apiClient.callApi('/kmip-client-set-rule', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipClientSetRule} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KMIPClientUpdateResponse} - */ - - }, { - key: "kmipClientSetRule", - value: function kmipClientSetRule(opts) { - return this.kmipClientSetRuleWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipCreateClient} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipCreateClientOutput} and HTTP response - */ - - }, { - key: "kmipCreateClientWithHttpInfo", - value: function kmipCreateClientWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KmipCreateClientOutput["default"]; - return this.apiClient.callApi('/kmip-create-client', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipCreateClient} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipCreateClientOutput} - */ - - }, { - key: "kmipCreateClient", - value: function kmipCreateClient(opts) { - return this.kmipCreateClientWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipDeleteClient} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "kmipDeleteClientWithHttpInfo", - value: function kmipDeleteClientWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/kmip-delete-client', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipDeleteClient} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "kmipDeleteClient", - value: function kmipDeleteClient(opts) { - return this.kmipDeleteClientWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipDeleteServer} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "kmipDeleteServerWithHttpInfo", - value: function kmipDeleteServerWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/kmip-delete-environment', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipDeleteServer} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "kmipDeleteServer", - value: function kmipDeleteServer(opts) { - return this.kmipDeleteServerWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipDescribeClient} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KMIPClientGetResponse} and HTTP response - */ - - }, { - key: "kmipDescribeClientWithHttpInfo", - value: function kmipDescribeClientWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KMIPClientGetResponse["default"]; - return this.apiClient.callApi('/kmip-get-client', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipDescribeClient} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KMIPClientGetResponse} - */ - - }, { - key: "kmipDescribeClient", - value: function kmipDescribeClient(opts) { - return this.kmipDescribeClientWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipDescribeServer} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipDescribeServerOutput} and HTTP response - */ - - }, { - key: "kmipDescribeServerWithHttpInfo", - value: function kmipDescribeServerWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KmipDescribeServerOutput["default"]; - return this.apiClient.callApi('/kmip-get-environment', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipDescribeServer} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipDescribeServerOutput} - */ - - }, { - key: "kmipDescribeServer", - value: function kmipDescribeServer(opts) { - return this.kmipDescribeServerWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipListClients} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KMIPClientListResponse} and HTTP response - */ - - }, { - key: "kmipListClientsWithHttpInfo", - value: function kmipListClientsWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KMIPClientListResponse["default"]; - return this.apiClient.callApi('/kmip-list-clients', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipListClients} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KMIPClientListResponse} - */ - - }, { - key: "kmipListClients", - value: function kmipListClients(opts) { - return this.kmipListClientsWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipMoveServer} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipMoveServerOutput} and HTTP response - */ - - }, { - key: "kmipMoveServerWithHttpInfo", - value: function kmipMoveServerWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KmipMoveServerOutput["default"]; - return this.apiClient.callApi('/kmip-move-environment', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipMoveServer} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipMoveServerOutput} - */ - - }, { - key: "kmipMoveServer", - value: function kmipMoveServer(opts) { - return this.kmipMoveServerWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipRenewClientCertificate} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipRenewClientCertificateOutput} and HTTP response - */ - - }, { - key: "kmipRenewClientCertificateWithHttpInfo", - value: function kmipRenewClientCertificateWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KmipRenewClientCertificateOutput["default"]; - return this.apiClient.callApi('/kmip-renew-client', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipRenewClientCertificate} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipRenewClientCertificateOutput} - */ - - }, { - key: "kmipRenewClientCertificate", - value: function kmipRenewClientCertificate(opts) { - return this.kmipRenewClientCertificateWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipRenewServerCertificate} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipRenewServerCertificateOutput} and HTTP response - */ - - }, { - key: "kmipRenewServerCertificateWithHttpInfo", - value: function kmipRenewServerCertificateWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KmipRenewServerCertificateOutput["default"]; - return this.apiClient.callApi('/kmip-renew-environment', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipRenewServerCertificate} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipRenewServerCertificateOutput} - */ - - }, { - key: "kmipRenewServerCertificate", - value: function kmipRenewServerCertificate(opts) { - return this.kmipRenewServerCertificateWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipServerSetup} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KMIPEnvironmentCreateResponse} and HTTP response - */ - - }, { - key: "kmipServerSetupWithHttpInfo", - value: function kmipServerSetupWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KMIPEnvironmentCreateResponse["default"]; - return this.apiClient.callApi('/kmip-create-environment', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipServerSetup} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KMIPEnvironmentCreateResponse} - */ - - }, { - key: "kmipServerSetup", - value: function kmipServerSetup(opts) { - return this.kmipServerSetupWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipSetServerState} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipSetServerStateOutput} and HTTP response - */ - - }, { - key: "kmipSetServerStateWithHttpInfo", - value: function kmipSetServerStateWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _KmipSetServerStateOutput["default"]; - return this.apiClient.callApi('/kmip-set-environment-state', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/KmipSetServerState} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipSetServerStateOutput} - */ - - }, { - key: "kmipSetServerState", - value: function kmipSetServerState(opts) { - return this.kmipSetServerStateWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/ListAuthMethods} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAuthMethodsOutput} and HTTP response - */ - - }, { - key: "listAuthMethodsWithHttpInfo", - value: function listAuthMethodsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling listAuthMethods"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ListAuthMethodsOutput["default"]; - return this.apiClient.callApi('/list-auth-methods', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/ListAuthMethods} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAuthMethodsOutput} - */ - - }, { - key: "listAuthMethods", - value: function listAuthMethods(body) { - return this.listAuthMethodsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/ListGateways} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewaysListResponse} and HTTP response - */ - - }, { - key: "listGatewaysWithHttpInfo", - value: function listGatewaysWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling listGateways"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GatewaysListResponse["default"]; - return this.apiClient.callApi('/list-gateways', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/ListGateways} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewaysListResponse} - */ - - }, { - key: "listGateways", - value: function listGateways(body) { - return this.listGatewaysWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/ListItems} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListItemsInPathOutput} and HTTP response - */ - - }, { - key: "listItemsWithHttpInfo", - value: function listItemsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling listItems"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ListItemsInPathOutput["default"]; - return this.apiClient.callApi('/list-items', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/ListItems} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListItemsInPathOutput} - */ - - }, { - key: "listItems", - value: function listItems(body) { - return this.listItemsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/ListRoles} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListRolesOutput} and HTTP response - */ - - }, { - key: "listRolesWithHttpInfo", - value: function listRolesWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling listRoles"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ListRolesOutput["default"]; - return this.apiClient.callApi('/list-roles', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/ListRoles} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListRolesOutput} - */ - - }, { - key: "listRoles", - value: function listRoles(body) { - return this.listRolesWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/ListSRABastions} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BastionsList} and HTTP response - */ - - }, { - key: "listSRABastionsWithHttpInfo", - value: function listSRABastionsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling listSRABastions"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _BastionsList["default"]; - return this.apiClient.callApi('/list-sra-bastions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/ListSRABastions} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BastionsList} - */ - - }, { - key: "listSRABastions", - value: function listSRABastions(body) { - return this.listSRABastionsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/ListSharedItems} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - - }, { - key: "listSharedItemsWithHttpInfo", - value: function listSharedItemsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling listSharedItems"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - return this.apiClient.callApi('/list-shared-items', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/ListSharedItems} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - - }, { - key: "listSharedItems", - value: function listSharedItems(body) { - return this.listSharedItemsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/ListTargets} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTargetsOutput} and HTTP response - */ - - }, { - key: "listTargetsWithHttpInfo", - value: function listTargetsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling listTargets"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ListTargetsOutput["default"]; - return this.apiClient.callApi('/list-targets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/ListTargets} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTargetsOutput} - */ - - }, { - key: "listTargets", - value: function listTargets(body) { - return this.listTargetsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/MoveObjects} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "moveObjectsWithHttpInfo", - value: function moveObjectsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling moveObjects"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/move-objects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/MoveObjects} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "moveObjects", - value: function moveObjects(body) { - return this.moveObjectsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/RawCreds} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SystemAccessCredentialsReplyObj} and HTTP response - */ - - }, { - key: "rawCredsWithHttpInfo", - value: function rawCredsWithHttpInfo(opts) { - opts = opts || {}; - var postBody = opts['body']; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SystemAccessCredentialsReplyObj["default"]; - return this.apiClient.callApi('/raw-creds', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {Object} opts Optional parameters - * @param {module:model/RawCreds} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SystemAccessCredentialsReplyObj} - */ - - }, { - key: "rawCreds", - value: function rawCreds(opts) { - return this.rawCredsWithHttpInfo(opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/RefreshKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RefreshKeyOutput} and HTTP response - */ - - }, { - key: "refreshKeyWithHttpInfo", - value: function refreshKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling refreshKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _RefreshKeyOutput["default"]; - return this.apiClient.callApi('/refresh-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/RefreshKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RefreshKeyOutput} - */ - - }, { - key: "refreshKey", - value: function refreshKey(body) { - return this.refreshKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/RequestAccess} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RequestAccessOutput} and HTTP response - */ - - }, { - key: "requestAccessWithHttpInfo", - value: function requestAccessWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling requestAccess"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _RequestAccessOutput["default"]; - return this.apiClient.callApi('/request-access', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/RequestAccess} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RequestAccessOutput} - */ - - }, { - key: "requestAccess", - value: function requestAccess(body) { - return this.requestAccessWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/ReverseRBAC} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ReverseRBACOutput} and HTTP response - */ - - }, { - key: "reverseRBACWithHttpInfo", - value: function reverseRBACWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling reverseRBAC"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ReverseRBACOutput["default"]; - return this.apiClient.callApi('/reverse-rbac', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/ReverseRBAC} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ReverseRBACOutput} - */ - - }, { - key: "reverseRBAC", - value: function reverseRBAC(body) { - return this.reverseRBACWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "revokeCredsWithHttpInfo", - value: function revokeCredsWithHttpInfo() { - var postBody = null; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/revoke-creds', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "revokeCreds", - value: function revokeCreds() { - return this.revokeCredsWithHttpInfo().then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/RollbackSecret} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RollbackSecretOutput} and HTTP response - */ - - }, { - key: "rollbackSecretWithHttpInfo", - value: function rollbackSecretWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling rollbackSecret"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _RollbackSecretOutput["default"]; - return this.apiClient.callApi('/rollback-secret', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/RollbackSecret} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RollbackSecretOutput} - */ - - }, { - key: "rollbackSecret", - value: function rollbackSecret(body) { - return this.rollbackSecretWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateRotationSettings} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotateKeyOutput} and HTTP response - */ - - }, { - key: "rotateKeyWithHttpInfo", - value: function rotateKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling rotateKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _RotateKeyOutput["default"]; - return this.apiClient.callApi('/rotate-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateRotationSettings} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotateKeyOutput} - */ - - }, { - key: "rotateKey", - value: function rotateKey(body) { - return this.rotateKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/RotateSecret} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretOutput} and HTTP response - */ - - }, { - key: "rotateSecretWithHttpInfo", - value: function rotateSecretWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling rotateSecret"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _RotatedSecretOutput["default"]; - return this.apiClient.callApi('/gateway-rotate-secret', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/RotateSecret} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretOutput} - */ - - }, { - key: "rotateSecret", - value: function rotateSecret(body) { - return this.rotateSecretWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/SetItemState} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "setItemStateWithHttpInfo", - value: function setItemStateWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling setItemState"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/set-item-state', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/SetItemState} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "setItemState", - value: function setItemState(body) { - return this.setItemStateWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/SetRoleRule} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "setRoleRuleWithHttpInfo", - value: function setRoleRuleWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling setRoleRule"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/set-role-rule', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/SetRoleRule} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "setRoleRule", - value: function setRoleRule(body) { - return this.setRoleRuleWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/ShareItem} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - - }, { - key: "shareItemWithHttpInfo", - value: function shareItemWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling shareItem"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = null; - return this.apiClient.callApi('/share-item', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/ShareItem} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - - }, { - key: "shareItem", - value: function shareItem(body) { - return this.shareItemWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/SignDataWithClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignOutput} and HTTP response - */ - - }, { - key: "signDataWithClassicKeyWithHttpInfo", - value: function signDataWithClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling signDataWithClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SignOutput["default"]; - return this.apiClient.callApi('/sign-data-with-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/SignDataWithClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignOutput} - */ - - }, { - key: "signDataWithClassicKey", - value: function signDataWithClassicKey(body) { - return this.signDataWithClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/SignGPG} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignGPGOutput} and HTTP response - */ - - }, { - key: "signGPGWithHttpInfo", - value: function signGPGWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling signGPG"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SignGPGOutput["default"]; - return this.apiClient.callApi('/sign-gpg', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/SignGPG} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignGPGOutput} - */ - - }, { - key: "signGPG", - value: function signGPG(body) { - return this.signGPGWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/SignJWTWithClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignJWTOutput} and HTTP response - */ - - }, { - key: "signJWTWithClassicKeyWithHttpInfo", - value: function signJWTWithClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling signJWTWithClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SignJWTOutput["default"]; - return this.apiClient.callApi('/sign-jwt-with-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/SignJWTWithClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignJWTOutput} - */ - - }, { - key: "signJWTWithClassicKey", - value: function signJWTWithClassicKey(body) { - return this.signJWTWithClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/SignPKCS1} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignPKCS1Output} and HTTP response - */ - - }, { - key: "signPKCS1WithHttpInfo", - value: function signPKCS1WithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling signPKCS1"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SignPKCS1Output["default"]; - return this.apiClient.callApi('/sign-pkcs1', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/SignPKCS1} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignPKCS1Output} - */ - - }, { - key: "signPKCS1", - value: function signPKCS1(body) { - return this.signPKCS1WithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/SignPKICertWithClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignPKICertOutput} and HTTP response - */ - - }, { - key: "signPKICertWithClassicKeyWithHttpInfo", - value: function signPKICertWithClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling signPKICertWithClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SignPKICertOutput["default"]; - return this.apiClient.callApi('/sign-pki-cert-with-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/SignPKICertWithClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignPKICertOutput} - */ - - }, { - key: "signPKICertWithClassicKey", - value: function signPKICertWithClassicKey(body) { - return this.signPKICertWithClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/StaticCredsAuth} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/StaticCredsAuthOutput} and HTTP response - */ - - }, { - key: "staticCredsAuthWithHttpInfo", - value: function staticCredsAuthWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling staticCredsAuth"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _StaticCredsAuthOutput["default"]; - return this.apiClient.callApi('/static-creds-auth', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/StaticCredsAuth} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/StaticCredsAuthOutput} - */ - - }, { - key: "staticCredsAuth", - value: function staticCredsAuth(body) { - return this.staticCredsAuthWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/Tokenize} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TokenizeOutput} and HTTP response - */ - - }, { - key: "tokenizeWithHttpInfo", - value: function tokenizeWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling tokenize"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _TokenizeOutput["default"]; - return this.apiClient.callApi('/tokenize', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/Tokenize} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TokenizeOutput} - */ - - }, { - key: "tokenize", - value: function tokenize(body) { - return this.tokenizeWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UidCreateChildToken} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UidCreateChildTokenOutput} and HTTP response - */ - - }, { - key: "uidCreateChildTokenWithHttpInfo", - value: function uidCreateChildTokenWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling uidCreateChildToken"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UidCreateChildTokenOutput["default"]; - return this.apiClient.callApi('/uid-create-child-token', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UidCreateChildToken} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UidCreateChildTokenOutput} - */ - - }, { - key: "uidCreateChildToken", - value: function uidCreateChildToken(body) { - return this.uidCreateChildTokenWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UidGenerateToken} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UidGenerateTokenOutput} and HTTP response - */ - - }, { - key: "uidGenerateTokenWithHttpInfo", - value: function uidGenerateTokenWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling uidGenerateToken"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UidGenerateTokenOutput["default"]; - return this.apiClient.callApi('/uid-generate-token', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UidGenerateToken} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UidGenerateTokenOutput} - */ - - }, { - key: "uidGenerateToken", - value: function uidGenerateToken(body) { - return this.uidGenerateTokenWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UidListChildren} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UniversalIdentityDetails} and HTTP response - */ - - }, { - key: "uidListChildrenWithHttpInfo", - value: function uidListChildrenWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling uidListChildren"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UniversalIdentityDetails["default"]; - return this.apiClient.callApi('/uid-list-children', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UidListChildren} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UniversalIdentityDetails} - */ - - }, { - key: "uidListChildren", - value: function uidListChildren(body) { - return this.uidListChildrenWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UidRevokeToken} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "uidRevokeTokenWithHttpInfo", - value: function uidRevokeTokenWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling uidRevokeToken"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/uid-revoke-token', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UidRevokeToken} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "uidRevokeToken", - value: function uidRevokeToken(body) { - return this.uidRevokeTokenWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UidRotateToken} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UidRotateTokenOutput} and HTTP response - */ - - }, { - key: "uidRotateTokenWithHttpInfo", - value: function uidRotateTokenWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling uidRotateToken"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UidRotateTokenOutput["default"]; - return this.apiClient.callApi('/uid-rotate-token', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UidRotateToken} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UidRotateTokenOutput} - */ - - }, { - key: "uidRotateToken", - value: function uidRotateToken(body) { - return this.uidRotateTokenWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateAWSTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAWSTargetWithHttpInfo", - value: function updateAWSTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAWSTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-aws-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateAWSTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAWSTarget", - value: function updateAWSTarget(body) { - return this.updateAWSTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateAWSTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateAWSTargetDetailsWithHttpInfo", - value: function updateAWSTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAWSTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-aws-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateAWSTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateAWSTargetDetails", - value: function updateAWSTargetDetails(body) { - return this.updateAWSTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateAccountSettings} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAccountSettingsOutput} and HTTP response - */ - - }, { - key: "updateAccountSettingsWithHttpInfo", - value: function updateAccountSettingsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAccountSettings"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateAccountSettingsOutput["default"]; - return this.apiClient.callApi('/update-account-settings', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateAccountSettings} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAccountSettingsOutput} - */ - - }, { - key: "updateAccountSettings", - value: function updateAccountSettings(body) { - return this.updateAccountSettingsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateArtifactoryTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateArtifactoryTargetOutput} and HTTP response - */ - - }, { - key: "updateArtifactoryTargetWithHttpInfo", - value: function updateArtifactoryTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateArtifactoryTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateArtifactoryTargetOutput["default"]; - return this.apiClient.callApi('/update-artifactory-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateArtifactoryTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateArtifactoryTargetOutput} - */ - - }, { - key: "updateArtifactoryTarget", - value: function updateArtifactoryTarget(body) { - return this.updateArtifactoryTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateAssoc} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAssocWithHttpInfo", - value: function updateAssocWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAssoc"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-assoc', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateAssoc} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAssoc", - value: function updateAssoc(body) { - return this.updateAssocWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateAuthMethod} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAuthMethodOutput} and HTTP response - */ - - }, { - key: "updateAuthMethodWithHttpInfo", - value: function updateAuthMethodWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethod"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateAuthMethodOutput["default"]; - return this.apiClient.callApi('/update-auth-method', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateAuthMethod} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAuthMethodOutput} - */ - - }, { - key: "updateAuthMethod", - value: function updateAuthMethod(body) { - return this.updateAuthMethodWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateAuthMethodAWSIAM} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAuthMethodAWSIAMWithHttpInfo", - value: function updateAuthMethodAWSIAMWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodAWSIAM"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-auth-method-aws-iam', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateAuthMethodAWSIAM} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAuthMethodAWSIAM", - value: function updateAuthMethodAWSIAM(body) { - return this.updateAuthMethodAWSIAMWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateAuthMethodAzureAD} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAuthMethodAzureADWithHttpInfo", - value: function updateAuthMethodAzureADWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodAzureAD"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-auth-method-azure-ad', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateAuthMethodAzureAD} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAuthMethodAzureAD", - value: function updateAuthMethodAzureAD(body) { - return this.updateAuthMethodAzureADWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateAuthMethodCert} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAuthMethodCertOutput} and HTTP response - */ - - }, { - key: "updateAuthMethodCertWithHttpInfo", - value: function updateAuthMethodCertWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodCert"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateAuthMethodCertOutput["default"]; - return this.apiClient.callApi('/update-auth-method-cert', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateAuthMethodCert} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAuthMethodCertOutput} - */ - - }, { - key: "updateAuthMethodCert", - value: function updateAuthMethodCert(body) { - return this.updateAuthMethodCertWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateAuthMethodGCP} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAuthMethodGCPWithHttpInfo", - value: function updateAuthMethodGCPWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodGCP"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-auth-method-gcp', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateAuthMethodGCP} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAuthMethodGCP", - value: function updateAuthMethodGCP(body) { - return this.updateAuthMethodGCPWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateAuthMethodK8S} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAuthMethodK8SOutput} and HTTP response - */ - - }, { - key: "updateAuthMethodK8SWithHttpInfo", - value: function updateAuthMethodK8SWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodK8S"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateAuthMethodK8SOutput["default"]; - return this.apiClient.callApi('/update-auth-method-k8s', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateAuthMethodK8S} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAuthMethodK8SOutput} - */ - - }, { - key: "updateAuthMethodK8S", - value: function updateAuthMethodK8S(body) { - return this.updateAuthMethodK8SWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateAuthMethodLDAP} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAuthMethodLDAPOutput} and HTTP response - */ - - }, { - key: "updateAuthMethodLDAPWithHttpInfo", - value: function updateAuthMethodLDAPWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodLDAP"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateAuthMethodLDAPOutput["default"]; - return this.apiClient.callApi('/update-auth-method-ldap', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateAuthMethodLDAP} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAuthMethodLDAPOutput} - */ - - }, { - key: "updateAuthMethodLDAP", - value: function updateAuthMethodLDAP(body) { - return this.updateAuthMethodLDAPWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateAuthMethodOAuth2} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAuthMethodOAuth2WithHttpInfo", - value: function updateAuthMethodOAuth2WithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodOAuth2"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-auth-method-oauth2', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateAuthMethodOAuth2} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAuthMethodOAuth2", - value: function updateAuthMethodOAuth2(body) { - return this.updateAuthMethodOAuth2WithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateAuthMethodOIDC} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAuthMethodOIDCWithHttpInfo", - value: function updateAuthMethodOIDCWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodOIDC"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-auth-method-oidc', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateAuthMethodOIDC} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAuthMethodOIDC", - value: function updateAuthMethodOIDC(body) { - return this.updateAuthMethodOIDCWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateAuthMethodSAML} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAuthMethodSAMLWithHttpInfo", - value: function updateAuthMethodSAMLWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodSAML"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-auth-method-saml', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateAuthMethodSAML} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAuthMethodSAML", - value: function updateAuthMethodSAML(body) { - return this.updateAuthMethodSAMLWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateAuthMethodUniversalIdentity} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateAuthMethodUniversalIdentityWithHttpInfo", - value: function updateAuthMethodUniversalIdentityWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAuthMethodUniversalIdentity"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-auth-method-universal-identity', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateAuthMethodUniversalIdentity} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateAuthMethodUniversalIdentity", - value: function updateAuthMethodUniversalIdentity(body) { - return this.updateAuthMethodUniversalIdentityWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateAzureTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAzureTargetOutput} and HTTP response - */ - - }, { - key: "updateAzureTargetWithHttpInfo", - value: function updateAzureTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateAzureTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateAzureTargetOutput["default"]; - return this.apiClient.callApi('/update-azure-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateAzureTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAzureTargetOutput} - */ - - }, { - key: "updateAzureTarget", - value: function updateAzureTarget(body) { - return this.updateAzureTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateCertificateValue} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateCertificateOutput} and HTTP response - */ - - }, { - key: "updateCertificateValueWithHttpInfo", - value: function updateCertificateValueWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateCertificateValue"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateCertificateOutput["default"]; - return this.apiClient.callApi('/update-certificate-value', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateCertificateValue} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateCertificateOutput} - */ - - }, { - key: "updateCertificateValue", - value: function updateCertificateValue(body) { - return this.updateCertificateValueWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateDBTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateDBTargetOutput} and HTTP response - */ - - }, { - key: "updateDBTargetWithHttpInfo", - value: function updateDBTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateDBTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateDBTargetOutput["default"]; - return this.apiClient.callApi('/update-db-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateDBTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateDBTargetOutput} - */ - - }, { - key: "updateDBTarget", - value: function updateDBTarget(body) { - return this.updateDBTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateDBTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateDBTargetDetailsWithHttpInfo", - value: function updateDBTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateDBTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-db-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateDBTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateDBTargetDetails", - value: function updateDBTargetDetails(body) { - return this.updateDBTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateDockerhubTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateDockerhubTargetOutput} and HTTP response - */ - - }, { - key: "updateDockerhubTargetWithHttpInfo", - value: function updateDockerhubTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateDockerhubTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateDockerhubTargetOutput["default"]; - return this.apiClient.callApi('/update-dockerhub-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateDockerhubTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateDockerhubTargetOutput} - */ - - }, { - key: "updateDockerhubTarget", - value: function updateDockerhubTarget(body) { - return this.updateDockerhubTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateEKSTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateEKSTargetOutput} and HTTP response - */ - - }, { - key: "updateEKSTargetWithHttpInfo", - value: function updateEKSTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateEKSTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateEKSTargetOutput["default"]; - return this.apiClient.callApi('/update-eks-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateEKSTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateEKSTargetOutput} - */ - - }, { - key: "updateEKSTarget", - value: function updateEKSTarget(body) { - return this.updateEKSTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateEventForwarder} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateEventForwarderWithHttpInfo", - value: function updateEventForwarderWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateEventForwarder"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-event-forwarder', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateEventForwarder} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateEventForwarder", - value: function updateEventForwarder(body) { - return this.updateEventForwarderWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateGKETarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGKETargetOutput} and HTTP response - */ - - }, { - key: "updateGKETargetWithHttpInfo", - value: function updateGKETargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateGKETarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateGKETargetOutput["default"]; - return this.apiClient.callApi('/update-gke-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateGKETarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGKETargetOutput} - */ - - }, { - key: "updateGKETarget", - value: function updateGKETarget(body) { - return this.updateGKETargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateGcpTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGcpTargetOutput} and HTTP response - */ - - }, { - key: "updateGcpTargetWithHttpInfo", - value: function updateGcpTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateGcpTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateGcpTargetOutput["default"]; - return this.apiClient.callApi('/update-gcp-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateGcpTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGcpTargetOutput} - */ - - }, { - key: "updateGcpTarget", - value: function updateGcpTarget(body) { - return this.updateGcpTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateGithubTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGithubTargetOutput} and HTTP response - */ - - }, { - key: "updateGithubTargetWithHttpInfo", - value: function updateGithubTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateGithubTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateGithubTargetOutput["default"]; - return this.apiClient.callApi('/update-github-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateGithubTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGithubTargetOutput} - */ - - }, { - key: "updateGithubTarget", - value: function updateGithubTarget(body) { - return this.updateGithubTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateGlobalSignAtlasTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGlobalSignAtlasTargetOutput} and HTTP response - */ - - }, { - key: "updateGlobalSignAtlasTargetWithHttpInfo", - value: function updateGlobalSignAtlasTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateGlobalSignAtlasTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateGlobalSignAtlasTargetOutput["default"]; - return this.apiClient.callApi('/update-globalsign-atlas-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateGlobalSignAtlasTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGlobalSignAtlasTargetOutput} - */ - - }, { - key: "updateGlobalSignAtlasTarget", - value: function updateGlobalSignAtlasTarget(body) { - return this.updateGlobalSignAtlasTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateGlobalSignTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGlobalSignTargetOutput} and HTTP response - */ - - }, { - key: "updateGlobalSignTargetWithHttpInfo", - value: function updateGlobalSignTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateGlobalSignTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateGlobalSignTargetOutput["default"]; - return this.apiClient.callApi('/update-globalsign-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateGlobalSignTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGlobalSignTargetOutput} - */ - - }, { - key: "updateGlobalSignTarget", - value: function updateGlobalSignTarget(body) { - return this.updateGlobalSignTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateItem} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateItemOutput} and HTTP response - */ - - }, { - key: "updateItemWithHttpInfo", - value: function updateItemWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateItem"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateItemOutput["default"]; - return this.apiClient.callApi('/update-item', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateItem} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateItemOutput} - */ - - }, { - key: "updateItem", - value: function updateItem(body) { - return this.updateItemWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateLdapTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateLdapTargetOutput} and HTTP response - */ - - }, { - key: "updateLdapTargetWithHttpInfo", - value: function updateLdapTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateLdapTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateLdapTargetOutput["default"]; - return this.apiClient.callApi('/update-ldap-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateLdapTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateLdapTargetOutput} - */ - - }, { - key: "updateLdapTarget", - value: function updateLdapTarget(body) { - return this.updateLdapTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateLdapTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateLdapTargetDetailsWithHttpInfo", - value: function updateLdapTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateLdapTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-ldap-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateLdapTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateLdapTargetDetails", - value: function updateLdapTargetDetails(body) { - return this.updateLdapTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateLinkedTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateLinkedTargetWithHttpInfo", - value: function updateLinkedTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateLinkedTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-linked-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateLinkedTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateLinkedTarget", - value: function updateLinkedTarget(body) { - return this.updateLinkedTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateNativeK8STarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateNativeK8STargetOutput} and HTTP response - */ - - }, { - key: "updateNativeK8STargetWithHttpInfo", - value: function updateNativeK8STargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateNativeK8STarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateNativeK8STargetOutput["default"]; - return this.apiClient.callApi('/update-k8s-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateNativeK8STarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateNativeK8STargetOutput} - */ - - }, { - key: "updateNativeK8STarget", - value: function updateNativeK8STarget(body) { - return this.updateNativeK8STargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdatePKICertIssuer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatePKICertIssuerOutput} and HTTP response - */ - - }, { - key: "updatePKICertIssuerWithHttpInfo", - value: function updatePKICertIssuerWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updatePKICertIssuer"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdatePKICertIssuerOutput["default"]; - return this.apiClient.callApi('/update-pki-cert-issuer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdatePKICertIssuer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatePKICertIssuerOutput} - */ - - }, { - key: "updatePKICertIssuer", - value: function updatePKICertIssuer(body) { - return this.updatePKICertIssuerWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdatePingTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updatePingTargetWithHttpInfo", - value: function updatePingTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updatePingTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-ping-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdatePingTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updatePingTarget", - value: function updatePingTarget(body) { - return this.updatePingTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateRDPTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateRDPTargetDetailsWithHttpInfo", - value: function updateRDPTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateRDPTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-rdp-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateRDPTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateRDPTargetDetails", - value: function updateRDPTargetDetails(body) { - return this.updateRDPTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateRabbitMQTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateRabbitMQTargetOutput} and HTTP response - */ - - }, { - key: "updateRabbitMQTargetWithHttpInfo", - value: function updateRabbitMQTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateRabbitMQTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateRabbitMQTargetOutput["default"]; - return this.apiClient.callApi('/update-rabbitmq-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateRabbitMQTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateRabbitMQTargetOutput} - */ - - }, { - key: "updateRabbitMQTarget", - value: function updateRabbitMQTarget(body) { - return this.updateRabbitMQTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateRabbitMQTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateRabbitMQTargetDetailsWithHttpInfo", - value: function updateRabbitMQTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateRabbitMQTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-rabbitmq-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateRabbitMQTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateRabbitMQTargetDetails", - value: function updateRabbitMQTargetDetails(body) { - return this.updateRabbitMQTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateRole} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateRoleOutput} and HTTP response - */ - - }, { - key: "updateRoleWithHttpInfo", - value: function updateRoleWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateRole"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateRoleOutput["default"]; - return this.apiClient.callApi('/update-role', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateRole} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateRoleOutput} - */ - - }, { - key: "updateRole", - value: function updateRole(body) { - return this.updateRoleWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateRotatedSecret} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateRotatedSecretOutput} and HTTP response - */ - - }, { - key: "updateRotatedSecretWithHttpInfo", - value: function updateRotatedSecretWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateRotatedSecret"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateRotatedSecretOutput["default"]; - return this.apiClient.callApi('/update-rotated-secret', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateRotatedSecret} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateRotatedSecretOutput} - */ - - }, { - key: "updateRotatedSecret", - value: function updateRotatedSecret(body) { - return this.updateRotatedSecretWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotateKeyOutput} and HTTP response - */ - - }, { - key: "updateRotationSettingsWithHttpInfo", - value: function updateRotationSettingsWithHttpInfo() { - var postBody = null; - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _RotateKeyOutput["default"]; - return this.apiClient.callApi('/update-rotation-settingsrotate-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotateKeyOutput} - */ - - }, { - key: "updateRotationSettings", - value: function updateRotationSettings() { - return this.updateRotationSettingsWithHttpInfo().then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateSSHCertIssuer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateSSHCertIssuerOutput} and HTTP response - */ - - }, { - key: "updateSSHCertIssuerWithHttpInfo", - value: function updateSSHCertIssuerWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateSSHCertIssuer"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateSSHCertIssuerOutput["default"]; - return this.apiClient.callApi('/update-ssh-cert-issuer', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateSSHCertIssuer} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateSSHCertIssuerOutput} - */ - - }, { - key: "updateSSHCertIssuer", - value: function updateSSHCertIssuer(body) { - return this.updateSSHCertIssuerWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateSSHTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateSSHTargetOutput} and HTTP response - */ - - }, { - key: "updateSSHTargetWithHttpInfo", - value: function updateSSHTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateSSHTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateSSHTargetOutput["default"]; - return this.apiClient.callApi('/update-ssh-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateSSHTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateSSHTargetOutput} - */ - - }, { - key: "updateSSHTarget", - value: function updateSSHTarget(body) { - return this.updateSSHTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateSSHTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateSSHTargetDetailsWithHttpInfo", - value: function updateSSHTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateSSHTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-ssh-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateSSHTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateSSHTargetDetails", - value: function updateSSHTargetDetails(body) { - return this.updateSSHTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateSalesforceTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateSalesforceTargetOutput} and HTTP response - */ - - }, { - key: "updateSalesforceTargetWithHttpInfo", - value: function updateSalesforceTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateSalesforceTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateSalesforceTargetOutput["default"]; - return this.apiClient.callApi('/update-salesforce-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateSalesforceTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateSalesforceTargetOutput} - */ - - }, { - key: "updateSalesforceTarget", - value: function updateSalesforceTarget(body) { - return this.updateSalesforceTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateSecretVal} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateSecretValOutput} and HTTP response - */ - - }, { - key: "updateSecretValWithHttpInfo", - value: function updateSecretValWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateSecretVal"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateSecretValOutput["default"]; - return this.apiClient.callApi('/update-secret-val', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateSecretVal} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateSecretValOutput} - */ - - }, { - key: "updateSecretVal", - value: function updateSecretVal(body) { - return this.updateSecretValWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateTargetWithHttpInfo", - value: function updateTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateTarget", - value: function updateTarget(body) { - return this.updateTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateTargetDetailsWithHttpInfo", - value: function updateTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateTargetDetails", - value: function updateTargetDetails(body) { - return this.updateTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateWebTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateWebTargetOutput} and HTTP response - */ - - }, { - key: "updateWebTargetWithHttpInfo", - value: function updateWebTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateWebTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateWebTargetOutput["default"]; - return this.apiClient.callApi('/update-web-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateWebTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateWebTargetOutput} - */ - - }, { - key: "updateWebTarget", - value: function updateWebTarget(body) { - return this.updateWebTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateWebTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response - */ - - }, { - key: "updateWebTargetDetailsWithHttpInfo", - value: function updateWebTargetDetailsWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateWebTargetDetails"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateTargetOutput["default"]; - return this.apiClient.callApi('/update-web-target-details', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateWebTargetDetails} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} - */ - - }, { - key: "updateWebTargetDetails", - value: function updateWebTargetDetails(body) { - return this.updateWebTargetDetailsWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateWindowsTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "updateWindowsTargetWithHttpInfo", - value: function updateWindowsTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateWindowsTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/update-windows-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateWindowsTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "updateWindowsTarget", - value: function updateWindowsTarget(body) { - return this.updateWindowsTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UpdateZeroSSLTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateZeroSSLTargetOutput} and HTTP response - */ - - }, { - key: "updateZeroSSLTargetWithHttpInfo", - value: function updateZeroSSLTargetWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling updateZeroSSLTarget"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateZeroSSLTargetOutput["default"]; - return this.apiClient.callApi('/update-zerossl-target', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UpdateZeroSSLTarget} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateZeroSSLTargetOutput} - */ - - }, { - key: "updateZeroSSLTarget", - value: function updateZeroSSLTarget(body) { - return this.updateZeroSSLTargetWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/UploadRSA} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "uploadRSAWithHttpInfo", - value: function uploadRSAWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling uploadRSA"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/upload-rsa', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/UploadRSA} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "uploadRSA", - value: function uploadRSA(body) { - return this.uploadRSAWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/ValidateToken} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ValidateTokenOutput} and HTTP response - */ - - }, { - key: "validateTokenWithHttpInfo", - value: function validateTokenWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling validateToken"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ValidateTokenOutput["default"]; - return this.apiClient.callApi('/validate-token', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/ValidateToken} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ValidateTokenOutput} - */ - - }, { - key: "validateToken", - value: function validateToken(body) { - return this.validateTokenWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/VerifyDataWithClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VerifyPKICertOutput} and HTTP response - */ - - }, { - key: "verifyDataWithClassicKeyWithHttpInfo", - value: function verifyDataWithClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling verifyDataWithClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _VerifyPKICertOutput["default"]; - return this.apiClient.callApi('/verify-data-with-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/VerifyDataWithClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VerifyPKICertOutput} - */ - - }, { - key: "verifyDataWithClassicKey", - value: function verifyDataWithClassicKey(body) { - return this.verifyDataWithClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/VerifyGPG} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "verifyGPGWithHttpInfo", - value: function verifyGPGWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling verifyGPG"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/verify-gpg', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/VerifyGPG} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "verifyGPG", - value: function verifyGPG(body) { - return this.verifyGPGWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/VerifyJWTWithClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VerifyJWTOutput} and HTTP response - */ - - }, { - key: "verifyJWTWithClassicKeyWithHttpInfo", - value: function verifyJWTWithClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling verifyJWTWithClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _VerifyJWTOutput["default"]; - return this.apiClient.callApi('/verify-jwt-with-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/VerifyJWTWithClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VerifyJWTOutput} - */ - - }, { - key: "verifyJWTWithClassicKey", - value: function verifyJWTWithClassicKey(body) { - return this.verifyJWTWithClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/VerifyPKCS1} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - - }, { - key: "verifyPKCS1WithHttpInfo", - value: function verifyPKCS1WithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling verifyPKCS1"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/verify-pkcs1', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/VerifyPKCS1} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - - }, { - key: "verifyPKCS1", - value: function verifyPKCS1(body) { - return this.verifyPKCS1WithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - /** - * @param {module:model/VerifyPKICertWithClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VerifyPKICertOutput} and HTTP response - */ - - }, { - key: "verifyPKICertWithClassicKeyWithHttpInfo", - value: function verifyPKICertWithClassicKeyWithHttpInfo(body) { - var postBody = body; // verify the required parameter 'body' is set - - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling verifyPKICertWithClassicKey"); - } - - var pathParams = {}; - var queryParams = {}; - var headerParams = {}; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _VerifyPKICertOutput["default"]; - return this.apiClient.callApi('/verify-pki-cert-with-classic-key', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - /** - * @param {module:model/VerifyPKICertWithClassicKey} body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VerifyPKICertOutput} - */ - - }, { - key: "verifyPKICertWithClassicKey", - value: function verifyPKICertWithClassicKey(body) { - return this.verifyPKICertWithClassicKeyWithHttpInfo(body).then(function (response_and_data) { - return response_and_data.data; - }); - } - }]); - - return V2Api; -}(); - -exports["default"] = V2Api; - -/***/ }), - -/***/ 94896: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "ApiClient", ({ - enumerable: true, - get: function get() { - return _ApiClient["default"]; - } -})); -Object.defineProperty(exports, "APIKeyAccessRules", ({ - enumerable: true, - get: function get() { - return _APIKeyAccessRules["default"]; - } -})); -Object.defineProperty(exports, "AWSIAMAccessRules", ({ - enumerable: true, - get: function get() { - return _AWSIAMAccessRules["default"]; - } -})); -Object.defineProperty(exports, "AWSPayload", ({ - enumerable: true, - get: function get() { - return _AWSPayload["default"]; - } -})); -Object.defineProperty(exports, "AWSSecretsMigration", ({ - enumerable: true, - get: function get() { - return _AWSSecretsMigration["default"]; - } -})); -Object.defineProperty(exports, "AWSTargetDetails", ({ - enumerable: true, - get: function get() { - return _AWSTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "AccessPermissionAssignment", ({ - enumerable: true, - get: function get() { - return _AccessPermissionAssignment["default"]; - } -})); -Object.defineProperty(exports, "AccountGeneralSettings", ({ - enumerable: true, - get: function get() { - return _AccountGeneralSettings["default"]; - } -})); -Object.defineProperty(exports, "AccountObjectVersionSettingsOutput", ({ - enumerable: true, - get: function get() { - return _AccountObjectVersionSettingsOutput["default"]; - } -})); -Object.defineProperty(exports, "ActiveDirectoryMigration", ({ - enumerable: true, - get: function get() { - return _ActiveDirectoryMigration["default"]; - } -})); -Object.defineProperty(exports, "ActiveDirectoryPayload", ({ - enumerable: true, - get: function get() { - return _ActiveDirectoryPayload["default"]; - } -})); -Object.defineProperty(exports, "AddGatewayAllowedAccessId", ({ - enumerable: true, - get: function get() { - return _AddGatewayAllowedAccessId["default"]; - } -})); -Object.defineProperty(exports, "AdminsConfigPart", ({ - enumerable: true, - get: function get() { - return _AdminsConfigPart["default"]; - } -})); -Object.defineProperty(exports, "AkeylessGatewayConfig", ({ - enumerable: true, - get: function get() { - return _AkeylessGatewayConfig["default"]; - } -})); -Object.defineProperty(exports, "AllowedAccess", ({ - enumerable: true, - get: function get() { - return _AllowedAccess["default"]; - } -})); -Object.defineProperty(exports, "AllowedAccessOld", ({ - enumerable: true, - get: function get() { - return _AllowedAccessOld["default"]; - } -})); -Object.defineProperty(exports, "ArtifactoryTargetDetails", ({ - enumerable: true, - get: function get() { - return _ArtifactoryTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "AssocRoleAuthMethod", ({ - enumerable: true, - get: function get() { - return _AssocRoleAuthMethod["default"]; - } -})); -Object.defineProperty(exports, "AssocTargetItem", ({ - enumerable: true, - get: function get() { - return _AssocTargetItem["default"]; - } -})); -Object.defineProperty(exports, "AttributeTypeAndValue", ({ - enumerable: true, - get: function get() { - return _AttributeTypeAndValue["default"]; - } -})); -Object.defineProperty(exports, "Auth", ({ - enumerable: true, - get: function get() { - return _Auth["default"]; - } -})); -Object.defineProperty(exports, "AuthMethod", ({ - enumerable: true, - get: function get() { - return _AuthMethod["default"]; - } -})); -Object.defineProperty(exports, "AuthMethodAccessInfo", ({ - enumerable: true, - get: function get() { - return _AuthMethodAccessInfo["default"]; - } -})); -Object.defineProperty(exports, "AuthMethodRoleAssociation", ({ - enumerable: true, - get: function get() { - return _AuthMethodRoleAssociation["default"]; - } -})); -Object.defineProperty(exports, "AuthOutput", ({ - enumerable: true, - get: function get() { - return _AuthOutput["default"]; - } -})); -Object.defineProperty(exports, "AwsS3LogForwardingConfig", ({ - enumerable: true, - get: function get() { - return _AwsS3LogForwardingConfig["default"]; - } -})); -Object.defineProperty(exports, "AzureADAccessRules", ({ - enumerable: true, - get: function get() { - return _AzureADAccessRules["default"]; - } -})); -Object.defineProperty(exports, "AzureKeyVaultMigration", ({ - enumerable: true, - get: function get() { - return _AzureKeyVaultMigration["default"]; - } -})); -Object.defineProperty(exports, "AzureLogAnalyticsForwardingConfig", ({ - enumerable: true, - get: function get() { - return _AzureLogAnalyticsForwardingConfig["default"]; - } -})); -Object.defineProperty(exports, "AzurePayload", ({ - enumerable: true, - get: function get() { - return _AzurePayload["default"]; - } -})); -Object.defineProperty(exports, "AzureTargetDetails", ({ - enumerable: true, - get: function get() { - return _AzureTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "BastionListEntry", ({ - enumerable: true, - get: function get() { - return _BastionListEntry["default"]; - } -})); -Object.defineProperty(exports, "BastionsList", ({ - enumerable: true, - get: function get() { - return _BastionsList["default"]; - } -})); -Object.defineProperty(exports, "CFConfigPart", ({ - enumerable: true, - get: function get() { - return _CFConfigPart["default"]; - } -})); -Object.defineProperty(exports, "CacheConfigPart", ({ - enumerable: true, - get: function get() { - return _CacheConfigPart["default"]; - } -})); -Object.defineProperty(exports, "CertAccessRules", ({ - enumerable: true, - get: function get() { - return _CertAccessRules["default"]; - } -})); -Object.defineProperty(exports, "CertificateChainInfo", ({ - enumerable: true, - get: function get() { - return _CertificateChainInfo["default"]; - } -})); -Object.defineProperty(exports, "CertificateExpirationEvent", ({ - enumerable: true, - get: function get() { - return _CertificateExpirationEvent["default"]; - } -})); -Object.defineProperty(exports, "CertificateInfo", ({ - enumerable: true, - get: function get() { - return _CertificateInfo["default"]; - } -})); -Object.defineProperty(exports, "CertificateIssueInfo", ({ - enumerable: true, - get: function get() { - return _CertificateIssueInfo["default"]; - } -})); -Object.defineProperty(exports, "CertificateTemplateInfo", ({ - enumerable: true, - get: function get() { - return _CertificateTemplateInfo["default"]; - } -})); -Object.defineProperty(exports, "ChefTargetDetails", ({ - enumerable: true, - get: function get() { - return _ChefTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "ClassicKeyDetailsInfo", ({ - enumerable: true, - get: function get() { - return _ClassicKeyDetailsInfo["default"]; - } -})); -Object.defineProperty(exports, "ClassicKeyStatusInfo", ({ - enumerable: true, - get: function get() { - return _ClassicKeyStatusInfo["default"]; - } -})); -Object.defineProperty(exports, "ClassicKeyTargetInfo", ({ - enumerable: true, - get: function get() { - return _ClassicKeyTargetInfo["default"]; - } -})); -Object.defineProperty(exports, "ClientData", ({ - enumerable: true, - get: function get() { - return _ClientData["default"]; - } -})); -Object.defineProperty(exports, "ConfigChange", ({ - enumerable: true, - get: function get() { - return _ConfigChange["default"]; - } -})); -Object.defineProperty(exports, "ConfigHash", ({ - enumerable: true, - get: function get() { - return _ConfigHash["default"]; - } -})); -Object.defineProperty(exports, "Configure", ({ - enumerable: true, - get: function get() { - return _Configure["default"]; - } -})); -Object.defineProperty(exports, "ConfigureOutput", ({ - enumerable: true, - get: function get() { - return _ConfigureOutput["default"]; - } -})); -Object.defineProperty(exports, "Connect", ({ - enumerable: true, - get: function get() { - return _Connect["default"]; - } -})); -Object.defineProperty(exports, "CreateAWSTarget", ({ - enumerable: true, - get: function get() { - return _CreateAWSTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateAWSTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateAWSTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateArtifactoryTarget", ({ - enumerable: true, - get: function get() { - return _CreateArtifactoryTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateArtifactoryTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateArtifactoryTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethod", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethod["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodAWSIAM", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodAWSIAM["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodAWSIAMOutput", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodAWSIAMOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodAzureAD", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodAzureAD["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodAzureADOutput", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodAzureADOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodCert", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodCert["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodCertOutput", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodCertOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodEmail", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodEmail["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodEmailOutput", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodEmailOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodGCP", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodGCP["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodGCPOutput", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodGCPOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodHuawei", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodHuawei["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodHuaweiOutput", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodHuaweiOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodK8S", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodK8S["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodK8SOutput", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodK8SOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodLDAP", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodLDAP["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodLDAPOutput", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodLDAPOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodOAuth2", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodOAuth["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodOAuth2Output", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodOAuth2Output["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodOIDC", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodOIDC["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodOIDCOutput", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodOIDCOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodOutput", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodSAML", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodSAML["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodSAMLOutput", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodSAMLOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodUniversalIdentity", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodUniversalIdentity["default"]; - } -})); -Object.defineProperty(exports, "CreateAuthMethodUniversalIdentityOutput", ({ - enumerable: true, - get: function get() { - return _CreateAuthMethodUniversalIdentityOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateAzureTarget", ({ - enumerable: true, - get: function get() { - return _CreateAzureTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateAzureTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateAzureTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateCertificate", ({ - enumerable: true, - get: function get() { - return _CreateCertificate["default"]; - } -})); -Object.defineProperty(exports, "CreateCertificateOutput", ({ - enumerable: true, - get: function get() { - return _CreateCertificateOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateClassicKey", ({ - enumerable: true, - get: function get() { - return _CreateClassicKey["default"]; - } -})); -Object.defineProperty(exports, "CreateClassicKeyOutput", ({ - enumerable: true, - get: function get() { - return _CreateClassicKeyOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateDBTarget", ({ - enumerable: true, - get: function get() { - return _CreateDBTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateDBTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateDBTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateDFCKey", ({ - enumerable: true, - get: function get() { - return _CreateDFCKey["default"]; - } -})); -Object.defineProperty(exports, "CreateDFCKeyOutput", ({ - enumerable: true, - get: function get() { - return _CreateDFCKeyOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateDockerhubTarget", ({ - enumerable: true, - get: function get() { - return _CreateDockerhubTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateDockerhubTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateDockerhubTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateDynamicSecret", ({ - enumerable: true, - get: function get() { - return _CreateDynamicSecret["default"]; - } -})); -Object.defineProperty(exports, "CreateEKSTarget", ({ - enumerable: true, - get: function get() { - return _CreateEKSTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateEKSTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateEKSTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateESM", ({ - enumerable: true, - get: function get() { - return _CreateESM["default"]; - } -})); -Object.defineProperty(exports, "CreateESMOutput", ({ - enumerable: true, - get: function get() { - return _CreateESMOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateEventForwarder", ({ - enumerable: true, - get: function get() { - return _CreateEventForwarder["default"]; - } -})); -Object.defineProperty(exports, "CreateEventForwarderOutput", ({ - enumerable: true, - get: function get() { - return _CreateEventForwarderOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateGKETarget", ({ - enumerable: true, - get: function get() { - return _CreateGKETarget["default"]; - } -})); -Object.defineProperty(exports, "CreateGKETargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateGKETargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateGcpTarget", ({ - enumerable: true, - get: function get() { - return _CreateGcpTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateGcpTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateGcpTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateGithubTarget", ({ - enumerable: true, - get: function get() { - return _CreateGithubTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateGithubTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateGithubTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateGlobalSignAtlasTarget", ({ - enumerable: true, - get: function get() { - return _CreateGlobalSignAtlasTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateGlobalSignAtlasTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateGlobalSignAtlasTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateGlobalSignTarget", ({ - enumerable: true, - get: function get() { - return _CreateGlobalSignTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateGlobalSignTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateGlobalSignTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateKey", ({ - enumerable: true, - get: function get() { - return _CreateKey["default"]; - } -})); -Object.defineProperty(exports, "CreateKeyOutput", ({ - enumerable: true, - get: function get() { - return _CreateKeyOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateLdapTarget", ({ - enumerable: true, - get: function get() { - return _CreateLdapTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateLdapTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateLdapTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateLinkedTarget", ({ - enumerable: true, - get: function get() { - return _CreateLinkedTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateLinkedTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateLinkedTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateNativeK8STarget", ({ - enumerable: true, - get: function get() { - return _CreateNativeK8STarget["default"]; - } -})); -Object.defineProperty(exports, "CreateNativeK8STargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateNativeK8STargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreatePKICertIssuer", ({ - enumerable: true, - get: function get() { - return _CreatePKICertIssuer["default"]; - } -})); -Object.defineProperty(exports, "CreatePKICertIssuerOutput", ({ - enumerable: true, - get: function get() { - return _CreatePKICertIssuerOutput["default"]; - } -})); -Object.defineProperty(exports, "CreatePingTarget", ({ - enumerable: true, - get: function get() { - return _CreatePingTarget["default"]; - } -})); -Object.defineProperty(exports, "CreatePingTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreatePingTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateRabbitMQTarget", ({ - enumerable: true, - get: function get() { - return _CreateRabbitMQTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateRabbitMQTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateRabbitMQTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateRole", ({ - enumerable: true, - get: function get() { - return _CreateRole["default"]; - } -})); -Object.defineProperty(exports, "CreateRoleAuthMethodAssocOutput", ({ - enumerable: true, - get: function get() { - return _CreateRoleAuthMethodAssocOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateRotatedSecret", ({ - enumerable: true, - get: function get() { - return _CreateRotatedSecret["default"]; - } -})); -Object.defineProperty(exports, "CreateRotatedSecretOutput", ({ - enumerable: true, - get: function get() { - return _CreateRotatedSecretOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateSSHCertIssuer", ({ - enumerable: true, - get: function get() { - return _CreateSSHCertIssuer["default"]; - } -})); -Object.defineProperty(exports, "CreateSSHCertIssuerOutput", ({ - enumerable: true, - get: function get() { - return _CreateSSHCertIssuerOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateSSHTarget", ({ - enumerable: true, - get: function get() { - return _CreateSSHTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateSSHTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateSSHTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateSalesforceTarget", ({ - enumerable: true, - get: function get() { - return _CreateSalesforceTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateSalesforceTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateSalesforceTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateSecret", ({ - enumerable: true, - get: function get() { - return _CreateSecret["default"]; - } -})); -Object.defineProperty(exports, "CreateSecretOutput", ({ - enumerable: true, - get: function get() { - return _CreateSecretOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateTargetItemAssocOutput", ({ - enumerable: true, - get: function get() { - return _CreateTargetItemAssocOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateTokenizer", ({ - enumerable: true, - get: function get() { - return _CreateTokenizer["default"]; - } -})); -Object.defineProperty(exports, "CreateTokenizerOutput", ({ - enumerable: true, - get: function get() { - return _CreateTokenizerOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateWebTarget", ({ - enumerable: true, - get: function get() { - return _CreateWebTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateWebTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateWebTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateWindowsTarget", ({ - enumerable: true, - get: function get() { - return _CreateWindowsTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateWindowsTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateWindowsTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CreateZeroSSLTarget", ({ - enumerable: true, - get: function get() { - return _CreateZeroSSLTarget["default"]; - } -})); -Object.defineProperty(exports, "CreateZeroSSLTargetOutput", ({ - enumerable: true, - get: function get() { - return _CreateZeroSSLTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "CustomTargetDetails", ({ - enumerable: true, - get: function get() { - return _CustomTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "CustomerFragment", ({ - enumerable: true, - get: function get() { - return _CustomerFragment["default"]; - } -})); -Object.defineProperty(exports, "CustomerFragmentsJson", ({ - enumerable: true, - get: function get() { - return _CustomerFragmentsJson["default"]; - } -})); -Object.defineProperty(exports, "CustomerFullAddress", ({ - enumerable: true, - get: function get() { - return _CustomerFullAddress["default"]; - } -})); -Object.defineProperty(exports, "DSProducerDetails", ({ - enumerable: true, - get: function get() { - return _DSProducerDetails["default"]; - } -})); -Object.defineProperty(exports, "DataProtectionSection", ({ - enumerable: true, - get: function get() { - return _DataProtectionSection["default"]; - } -})); -Object.defineProperty(exports, "DatadogForwardingConfig", ({ - enumerable: true, - get: function get() { - return _DatadogForwardingConfig["default"]; - } -})); -Object.defineProperty(exports, "DbTargetDetails", ({ - enumerable: true, - get: function get() { - return _DbTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "Decrypt", ({ - enumerable: true, - get: function get() { - return _Decrypt["default"]; - } -})); -Object.defineProperty(exports, "DecryptFile", ({ - enumerable: true, - get: function get() { - return _DecryptFile["default"]; - } -})); -Object.defineProperty(exports, "DecryptFileOutput", ({ - enumerable: true, - get: function get() { - return _DecryptFileOutput["default"]; - } -})); -Object.defineProperty(exports, "DecryptGPG", ({ - enumerable: true, - get: function get() { - return _DecryptGPG["default"]; - } -})); -Object.defineProperty(exports, "DecryptGPGOutput", ({ - enumerable: true, - get: function get() { - return _DecryptGPGOutput["default"]; - } -})); -Object.defineProperty(exports, "DecryptOutput", ({ - enumerable: true, - get: function get() { - return _DecryptOutput["default"]; - } -})); -Object.defineProperty(exports, "DecryptPKCS1", ({ - enumerable: true, - get: function get() { - return _DecryptPKCS["default"]; - } -})); -Object.defineProperty(exports, "DecryptPKCS1Output", ({ - enumerable: true, - get: function get() { - return _DecryptPKCS1Output["default"]; - } -})); -Object.defineProperty(exports, "DecryptWithClassicKey", ({ - enumerable: true, - get: function get() { - return _DecryptWithClassicKey["default"]; - } -})); -Object.defineProperty(exports, "DecryptWithClassicKeyOutput", ({ - enumerable: true, - get: function get() { - return _DecryptWithClassicKeyOutput["default"]; - } -})); -Object.defineProperty(exports, "DefaultConfigPart", ({ - enumerable: true, - get: function get() { - return _DefaultConfigPart["default"]; - } -})); -Object.defineProperty(exports, "DeleteAuthMethod", ({ - enumerable: true, - get: function get() { - return _DeleteAuthMethod["default"]; - } -})); -Object.defineProperty(exports, "DeleteAuthMethodOutput", ({ - enumerable: true, - get: function get() { - return _DeleteAuthMethodOutput["default"]; - } -})); -Object.defineProperty(exports, "DeleteAuthMethods", ({ - enumerable: true, - get: function get() { - return _DeleteAuthMethods["default"]; - } -})); -Object.defineProperty(exports, "DeleteAuthMethodsOutput", ({ - enumerable: true, - get: function get() { - return _DeleteAuthMethodsOutput["default"]; - } -})); -Object.defineProperty(exports, "DeleteEventForwarder", ({ - enumerable: true, - get: function get() { - return _DeleteEventForwarder["default"]; - } -})); -Object.defineProperty(exports, "DeleteGatewayAllowedAccessId", ({ - enumerable: true, - get: function get() { - return _DeleteGatewayAllowedAccessId["default"]; - } -})); -Object.defineProperty(exports, "DeleteGwCluster", ({ - enumerable: true, - get: function get() { - return _DeleteGwCluster["default"]; - } -})); -Object.defineProperty(exports, "DeleteItem", ({ - enumerable: true, - get: function get() { - return _DeleteItem["default"]; - } -})); -Object.defineProperty(exports, "DeleteItemOutput", ({ - enumerable: true, - get: function get() { - return _DeleteItemOutput["default"]; - } -})); -Object.defineProperty(exports, "DeleteItems", ({ - enumerable: true, - get: function get() { - return _DeleteItems["default"]; - } -})); -Object.defineProperty(exports, "DeleteItemsOutput", ({ - enumerable: true, - get: function get() { - return _DeleteItemsOutput["default"]; - } -})); -Object.defineProperty(exports, "DeleteRole", ({ - enumerable: true, - get: function get() { - return _DeleteRole["default"]; - } -})); -Object.defineProperty(exports, "DeleteRoleAssociation", ({ - enumerable: true, - get: function get() { - return _DeleteRoleAssociation["default"]; - } -})); -Object.defineProperty(exports, "DeleteRoleRule", ({ - enumerable: true, - get: function get() { - return _DeleteRoleRule["default"]; - } -})); -Object.defineProperty(exports, "DeleteRoleRuleOutput", ({ - enumerable: true, - get: function get() { - return _DeleteRoleRuleOutput["default"]; - } -})); -Object.defineProperty(exports, "DeleteRoles", ({ - enumerable: true, - get: function get() { - return _DeleteRoles["default"]; - } -})); -Object.defineProperty(exports, "DeleteTarget", ({ - enumerable: true, - get: function get() { - return _DeleteTarget["default"]; - } -})); -Object.defineProperty(exports, "DeleteTargetAssociation", ({ - enumerable: true, - get: function get() { - return _DeleteTargetAssociation["default"]; - } -})); -Object.defineProperty(exports, "DeleteTargets", ({ - enumerable: true, - get: function get() { - return _DeleteTargets["default"]; - } -})); -Object.defineProperty(exports, "DeriveKey", ({ - enumerable: true, - get: function get() { - return _DeriveKey["default"]; - } -})); -Object.defineProperty(exports, "DeriveKeyOutput", ({ - enumerable: true, - get: function get() { - return _DeriveKeyOutput["default"]; - } -})); -Object.defineProperty(exports, "DescribeAssoc", ({ - enumerable: true, - get: function get() { - return _DescribeAssoc["default"]; - } -})); -Object.defineProperty(exports, "DescribeItem", ({ - enumerable: true, - get: function get() { - return _DescribeItem["default"]; - } -})); -Object.defineProperty(exports, "DescribePermissions", ({ - enumerable: true, - get: function get() { - return _DescribePermissions["default"]; - } -})); -Object.defineProperty(exports, "DescribePermissionsOutput", ({ - enumerable: true, - get: function get() { - return _DescribePermissionsOutput["default"]; - } -})); -Object.defineProperty(exports, "DescribeSubClaims", ({ - enumerable: true, - get: function get() { - return _DescribeSubClaims["default"]; - } -})); -Object.defineProperty(exports, "DescribeSubClaimsOutput", ({ - enumerable: true, - get: function get() { - return _DescribeSubClaimsOutput["default"]; - } -})); -Object.defineProperty(exports, "Detokenize", ({ - enumerable: true, - get: function get() { - return _Detokenize["default"]; - } -})); -Object.defineProperty(exports, "DetokenizeOutput", ({ - enumerable: true, - get: function get() { - return _DetokenizeOutput["default"]; - } -})); -Object.defineProperty(exports, "DockerhubTargetDetails", ({ - enumerable: true, - get: function get() { - return _DockerhubTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "DynamicSecretProducerInfo", ({ - enumerable: true, - get: function get() { - return _DynamicSecretProducerInfo["default"]; - } -})); -Object.defineProperty(exports, "EKSTargetDetails", ({ - enumerable: true, - get: function get() { - return _EKSTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "ElasticsearchLogForwardingConfig", ({ - enumerable: true, - get: function get() { - return _ElasticsearchLogForwardingConfig["default"]; - } -})); -Object.defineProperty(exports, "EmailEntry", ({ - enumerable: true, - get: function get() { - return _EmailEntry["default"]; - } -})); -Object.defineProperty(exports, "EmailPassAccessRules", ({ - enumerable: true, - get: function get() { - return _EmailPassAccessRules["default"]; - } -})); -Object.defineProperty(exports, "EmailTokenizerInfo", ({ - enumerable: true, - get: function get() { - return _EmailTokenizerInfo["default"]; - } -})); -Object.defineProperty(exports, "Encrypt", ({ - enumerable: true, - get: function get() { - return _Encrypt["default"]; - } -})); -Object.defineProperty(exports, "EncryptFile", ({ - enumerable: true, - get: function get() { - return _EncryptFile["default"]; - } -})); -Object.defineProperty(exports, "EncryptFileOutput", ({ - enumerable: true, - get: function get() { - return _EncryptFileOutput["default"]; - } -})); -Object.defineProperty(exports, "EncryptGPG", ({ - enumerable: true, - get: function get() { - return _EncryptGPG["default"]; - } -})); -Object.defineProperty(exports, "EncryptGPGOutput", ({ - enumerable: true, - get: function get() { - return _EncryptGPGOutput["default"]; - } -})); -Object.defineProperty(exports, "EncryptOutput", ({ - enumerable: true, - get: function get() { - return _EncryptOutput["default"]; - } -})); -Object.defineProperty(exports, "EncryptWithClassicKey", ({ - enumerable: true, - get: function get() { - return _EncryptWithClassicKey["default"]; - } -})); -Object.defineProperty(exports, "EncryptWithClassicKeyOutput", ({ - enumerable: true, - get: function get() { - return _EncryptWithClassicKeyOutput["default"]; - } -})); -Object.defineProperty(exports, "EsmCreate", ({ - enumerable: true, - get: function get() { - return _EsmCreate["default"]; - } -})); -Object.defineProperty(exports, "EsmCreateSecretOutput", ({ - enumerable: true, - get: function get() { - return _EsmCreateSecretOutput["default"]; - } -})); -Object.defineProperty(exports, "EsmDelete", ({ - enumerable: true, - get: function get() { - return _EsmDelete["default"]; - } -})); -Object.defineProperty(exports, "EsmDeleteSecretOutput", ({ - enumerable: true, - get: function get() { - return _EsmDeleteSecretOutput["default"]; - } -})); -Object.defineProperty(exports, "EsmGet", ({ - enumerable: true, - get: function get() { - return _EsmGet["default"]; - } -})); -Object.defineProperty(exports, "EsmGetSecretOutput", ({ - enumerable: true, - get: function get() { - return _EsmGetSecretOutput["default"]; - } -})); -Object.defineProperty(exports, "EsmList", ({ - enumerable: true, - get: function get() { - return _EsmList["default"]; - } -})); -Object.defineProperty(exports, "EsmListSecretsOutput", ({ - enumerable: true, - get: function get() { - return _EsmListSecretsOutput["default"]; - } -})); -Object.defineProperty(exports, "EsmUpdate", ({ - enumerable: true, - get: function get() { - return _EsmUpdate["default"]; - } -})); -Object.defineProperty(exports, "EsmUpdateSecretOutput", ({ - enumerable: true, - get: function get() { - return _EsmUpdateSecretOutput["default"]; - } -})); -Object.defineProperty(exports, "EventAction", ({ - enumerable: true, - get: function get() { - return _EventAction["default"]; - } -})); -Object.defineProperty(exports, "ExportClassicKey", ({ - enumerable: true, - get: function get() { - return _ExportClassicKey["default"]; - } -})); -Object.defineProperty(exports, "ExportClassicKeyOutput", ({ - enumerable: true, - get: function get() { - return _ExportClassicKeyOutput["default"]; - } -})); -Object.defineProperty(exports, "Extension", ({ - enumerable: true, - get: function get() { - return _Extension["default"]; - } -})); -Object.defineProperty(exports, "ExternalKMSKeyId", ({ - enumerable: true, - get: function get() { - return _ExternalKMSKeyId["default"]; - } -})); -Object.defineProperty(exports, "GCPAccessRules", ({ - enumerable: true, - get: function get() { - return _GCPAccessRules["default"]; - } -})); -Object.defineProperty(exports, "GCPPayload", ({ - enumerable: true, - get: function get() { - return _GCPPayload["default"]; - } -})); -Object.defineProperty(exports, "GCPSecretsMigration", ({ - enumerable: true, - get: function get() { - return _GCPSecretsMigration["default"]; - } -})); -Object.defineProperty(exports, "GKETargetDetails", ({ - enumerable: true, - get: function get() { - return _GKETargetDetails["default"]; - } -})); -Object.defineProperty(exports, "GatewayBasicInfo", ({ - enumerable: true, - get: function get() { - return _GatewayBasicInfo["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateAllowedAccess", ({ - enumerable: true, - get: function get() { - return _GatewayCreateAllowedAccess["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateK8SAuthConfig", ({ - enumerable: true, - get: function get() { - return _GatewayCreateK8SAuthConfig["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateK8SAuthConfigOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateK8SAuthConfigOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateMigration", ({ - enumerable: true, - get: function get() { - return _GatewayCreateMigration["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerArtifactory", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerArtifactory["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerArtifactoryOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerArtifactoryOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerAws", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerAws["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerAwsOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerAwsOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerAzure", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerAzure["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerAzureOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerAzureOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerCassandra", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerCassandra["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerCassandraOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerCassandraOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerCertificateAutomation", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerCertificateAutomation["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerCertificateAutomationOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerCertificateAutomationOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerChef", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerChef["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerChefOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerChefOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerCustom", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerCustom["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerCustomOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerCustomOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerDockerhub", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerDockerhub["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerDockerhubOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerDockerhubOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerEks", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerEks["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerEksOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerEksOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerGcp", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerGcp["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerGcpOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerGcpOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerGithub", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerGithub["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerGithubOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerGithubOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerGke", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerGke["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerGkeOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerGkeOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerHanaDb", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerHanaDb["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerHanaDbOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerHanaDbOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerLdap", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerLdap["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerLdapOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerLdapOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerMSSQL", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerMSSQL["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerMSSQLOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerMSSQLOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerMongo", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerMongo["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerMongoOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerMongoOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerMySQL", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerMySQL["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerMySQLOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerMySQLOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerNativeK8S", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerNativeK8S["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerNativeK8SOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerNativeK8SOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerOracleDb", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerOracleDb["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerOracleDbOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerOracleDbOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerPing", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerPing["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerPingOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerPingOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerPostgreSQL", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerPostgreSQL["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerPostgreSQLOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerPostgreSQLOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerRabbitMQ", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerRabbitMQ["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerRabbitMQOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerRabbitMQOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerRdp", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerRdp["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerRdpOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerRdpOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerRedis", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerRedis["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerRedisOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerRedisOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerRedshift", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerRedshift["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerRedshiftOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerRedshiftOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerSnowflake", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerSnowflake["default"]; - } -})); -Object.defineProperty(exports, "GatewayCreateProducerSnowflakeOutput", ({ - enumerable: true, - get: function get() { - return _GatewayCreateProducerSnowflakeOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayDeleteAllowedAccess", ({ - enumerable: true, - get: function get() { - return _GatewayDeleteAllowedAccess["default"]; - } -})); -Object.defineProperty(exports, "GatewayDeleteAllowedAccessOutput", ({ - enumerable: true, - get: function get() { - return _GatewayDeleteAllowedAccessOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayDeleteK8SAuthConfig", ({ - enumerable: true, - get: function get() { - return _GatewayDeleteK8SAuthConfig["default"]; - } -})); -Object.defineProperty(exports, "GatewayDeleteK8SAuthConfigOutput", ({ - enumerable: true, - get: function get() { - return _GatewayDeleteK8SAuthConfigOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayDeleteMigration", ({ - enumerable: true, - get: function get() { - return _GatewayDeleteMigration["default"]; - } -})); -Object.defineProperty(exports, "GatewayDeleteProducer", ({ - enumerable: true, - get: function get() { - return _GatewayDeleteProducer["default"]; - } -})); -Object.defineProperty(exports, "GatewayDeleteProducerOutput", ({ - enumerable: true, - get: function get() { - return _GatewayDeleteProducerOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayDownloadCustomerFragments", ({ - enumerable: true, - get: function get() { - return _GatewayDownloadCustomerFragments["default"]; - } -})); -Object.defineProperty(exports, "GatewayDownloadCustomerFragmentsOutput", ({ - enumerable: true, - get: function get() { - return _GatewayDownloadCustomerFragmentsOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayGetAllowedAccess", ({ - enumerable: true, - get: function get() { - return _GatewayGetAllowedAccess["default"]; - } -})); -Object.defineProperty(exports, "GatewayGetConfig", ({ - enumerable: true, - get: function get() { - return _GatewayGetConfig["default"]; - } -})); -Object.defineProperty(exports, "GatewayGetK8SAuthConfig", ({ - enumerable: true, - get: function get() { - return _GatewayGetK8SAuthConfig["default"]; - } -})); -Object.defineProperty(exports, "GatewayGetK8SAuthConfigOutput", ({ - enumerable: true, - get: function get() { - return _GatewayGetK8SAuthConfigOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayGetLdapAuthConfig", ({ - enumerable: true, - get: function get() { - return _GatewayGetLdapAuthConfig["default"]; - } -})); -Object.defineProperty(exports, "GatewayGetLdapAuthConfigOutput", ({ - enumerable: true, - get: function get() { - return _GatewayGetLdapAuthConfigOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayGetMigration", ({ - enumerable: true, - get: function get() { - return _GatewayGetMigration["default"]; - } -})); -Object.defineProperty(exports, "GatewayGetProducer", ({ - enumerable: true, - get: function get() { - return _GatewayGetProducer["default"]; - } -})); -Object.defineProperty(exports, "GatewayGetTmpUsers", ({ - enumerable: true, - get: function get() { - return _GatewayGetTmpUsers["default"]; - } -})); -Object.defineProperty(exports, "GatewayListMigration", ({ - enumerable: true, - get: function get() { - return _GatewayListMigration["default"]; - } -})); -Object.defineProperty(exports, "GatewayListProducers", ({ - enumerable: true, - get: function get() { - return _GatewayListProducers["default"]; - } -})); -Object.defineProperty(exports, "GatewayListRotatedSecrets", ({ - enumerable: true, - get: function get() { - return _GatewayListRotatedSecrets["default"]; - } -})); -Object.defineProperty(exports, "GatewayMessageQueueInfo", ({ - enumerable: true, - get: function get() { - return _GatewayMessageQueueInfo["default"]; - } -})); -Object.defineProperty(exports, "GatewayMigratePersonalItems", ({ - enumerable: true, - get: function get() { - return _GatewayMigratePersonalItems["default"]; - } -})); -Object.defineProperty(exports, "GatewayMigratePersonalItemsOutput", ({ - enumerable: true, - get: function get() { - return _GatewayMigratePersonalItemsOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayMigrationCreateOutput", ({ - enumerable: true, - get: function get() { - return _GatewayMigrationCreateOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayMigrationDeleteOutput", ({ - enumerable: true, - get: function get() { - return _GatewayMigrationDeleteOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayMigrationGetOutput", ({ - enumerable: true, - get: function get() { - return _GatewayMigrationGetOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayMigrationListOutput", ({ - enumerable: true, - get: function get() { - return _GatewayMigrationListOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayMigrationSyncOutput", ({ - enumerable: true, - get: function get() { - return _GatewayMigrationSyncOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayMigrationUpdateOutput", ({ - enumerable: true, - get: function get() { - return _GatewayMigrationUpdateOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayRevokeTmpUsers", ({ - enumerable: true, - get: function get() { - return _GatewayRevokeTmpUsers["default"]; - } -})); -Object.defineProperty(exports, "GatewayStartProducer", ({ - enumerable: true, - get: function get() { - return _GatewayStartProducer["default"]; - } -})); -Object.defineProperty(exports, "GatewayStartProducerOutput", ({ - enumerable: true, - get: function get() { - return _GatewayStartProducerOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayStatusMigration", ({ - enumerable: true, - get: function get() { - return _GatewayStatusMigration["default"]; - } -})); -Object.defineProperty(exports, "GatewayStopProducer", ({ - enumerable: true, - get: function get() { - return _GatewayStopProducer["default"]; - } -})); -Object.defineProperty(exports, "GatewayStopProducerOutput", ({ - enumerable: true, - get: function get() { - return _GatewayStopProducerOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewaySyncMigration", ({ - enumerable: true, - get: function get() { - return _GatewaySyncMigration["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateAllowedAccess", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateAllowedAccess["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateItem", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateItem["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateItemOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateItemOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateK8SAuthConfig", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateK8SAuthConfig["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateK8SAuthConfigOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateK8SAuthConfigOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateLdapAuthConfig", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateLdapAuthConfig["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateLdapAuthConfigOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateLdapAuthConfigOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateMigration", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateMigration["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerArtifactory", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerArtifactory["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerArtifactoryOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerArtifactoryOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerAws", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerAws["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerAwsOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerAwsOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerAzure", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerAzure["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerAzureOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerAzureOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerCassandra", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerCassandra["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerCassandraOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerCassandraOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerCertificateAutomation", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerCertificateAutomation["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerCertificateAutomationOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerCertificateAutomationOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerChef", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerChef["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerChefOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerChefOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerCustom", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerCustom["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerCustomOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerCustomOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerDockerhub", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerDockerhub["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerDockerhubOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerDockerhubOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerEks", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerEks["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerEksOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerEksOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerGcp", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerGcp["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerGcpOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerGcpOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerGithub", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerGithub["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerGithubOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerGithubOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerGke", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerGke["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerGkeOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerGkeOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerHanaDb", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerHanaDb["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerHanaDbOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerHanaDbOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerLdap", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerLdap["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerLdapOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerLdapOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerMSSQL", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerMSSQL["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerMSSQLOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerMSSQLOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerMongo", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerMongo["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerMongoOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerMongoOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerMySQL", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerMySQL["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerMySQLOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerMySQLOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerNativeK8S", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerNativeK8S["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerNativeK8SOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerNativeK8SOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerOracleDb", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerOracleDb["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerOracleDbOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerOracleDbOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerPing", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerPing["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerPingOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerPingOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerPostgreSQL", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerPostgreSQL["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerPostgreSQLOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerPostgreSQLOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerRabbitMQ", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerRabbitMQ["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerRabbitMQOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerRabbitMQOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerRdp", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerRdp["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerRdpOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerRdpOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerRedis", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerRedis["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerRedisOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerRedisOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerRedshift", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerRedshift["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerRedshiftOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerRedshiftOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerSnowflake", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerSnowflake["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateProducerSnowflakeOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateProducerSnowflakeOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateTlsCert", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateTlsCert["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateTlsCertOutput", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateTlsCertOutput["default"]; - } -})); -Object.defineProperty(exports, "GatewayUpdateTmpUsers", ({ - enumerable: true, - get: function get() { - return _GatewayUpdateTmpUsers["default"]; - } -})); -Object.defineProperty(exports, "GatewaysListResponse", ({ - enumerable: true, - get: function get() { - return _GatewaysListResponse["default"]; - } -})); -Object.defineProperty(exports, "GcpTargetDetails", ({ - enumerable: true, - get: function get() { - return _GcpTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "GenCustomerFragment", ({ - enumerable: true, - get: function get() { - return _GenCustomerFragment["default"]; - } -})); -Object.defineProperty(exports, "GeneralConfigPart", ({ - enumerable: true, - get: function get() { - return _GeneralConfigPart["default"]; - } -})); -Object.defineProperty(exports, "GenerateCsr", ({ - enumerable: true, - get: function get() { - return _GenerateCsr["default"]; - } -})); -Object.defineProperty(exports, "GenerateCsrOutput", ({ - enumerable: true, - get: function get() { - return _GenerateCsrOutput["default"]; - } -})); -Object.defineProperty(exports, "GetAccountSettings", ({ - enumerable: true, - get: function get() { - return _GetAccountSettings["default"]; - } -})); -Object.defineProperty(exports, "GetAccountSettingsCommandOutput", ({ - enumerable: true, - get: function get() { - return _GetAccountSettingsCommandOutput["default"]; - } -})); -Object.defineProperty(exports, "GetAuthMethod", ({ - enumerable: true, - get: function get() { - return _GetAuthMethod["default"]; - } -})); -Object.defineProperty(exports, "GetCertificateValue", ({ - enumerable: true, - get: function get() { - return _GetCertificateValue["default"]; - } -})); -Object.defineProperty(exports, "GetCertificateValueOutput", ({ - enumerable: true, - get: function get() { - return _GetCertificateValueOutput["default"]; - } -})); -Object.defineProperty(exports, "GetDynamicSecretValue", ({ - enumerable: true, - get: function get() { - return _GetDynamicSecretValue["default"]; - } -})); -Object.defineProperty(exports, "GetEventForwarder", ({ - enumerable: true, - get: function get() { - return _GetEventForwarder["default"]; - } -})); -Object.defineProperty(exports, "GetEventForwarderOutput", ({ - enumerable: true, - get: function get() { - return _GetEventForwarderOutput["default"]; - } -})); -Object.defineProperty(exports, "GetKubeExecCreds", ({ - enumerable: true, - get: function get() { - return _GetKubeExecCreds["default"]; - } -})); -Object.defineProperty(exports, "GetKubeExecCredsOutput", ({ - enumerable: true, - get: function get() { - return _GetKubeExecCredsOutput["default"]; - } -})); -Object.defineProperty(exports, "GetPKICertificate", ({ - enumerable: true, - get: function get() { - return _GetPKICertificate["default"]; - } -})); -Object.defineProperty(exports, "GetPKICertificateOutput", ({ - enumerable: true, - get: function get() { - return _GetPKICertificateOutput["default"]; - } -})); -Object.defineProperty(exports, "GetProducersListReplyObj", ({ - enumerable: true, - get: function get() { - return _GetProducersListReplyObj["default"]; - } -})); -Object.defineProperty(exports, "GetRSAPublic", ({ - enumerable: true, - get: function get() { - return _GetRSAPublic["default"]; - } -})); -Object.defineProperty(exports, "GetRSAPublicOutput", ({ - enumerable: true, - get: function get() { - return _GetRSAPublicOutput["default"]; - } -})); -Object.defineProperty(exports, "GetRole", ({ - enumerable: true, - get: function get() { - return _GetRole["default"]; - } -})); -Object.defineProperty(exports, "GetRotatedSecretValue", ({ - enumerable: true, - get: function get() { - return _GetRotatedSecretValue["default"]; - } -})); -Object.defineProperty(exports, "GetSSHCertificate", ({ - enumerable: true, - get: function get() { - return _GetSSHCertificate["default"]; - } -})); -Object.defineProperty(exports, "GetSSHCertificateOutput", ({ - enumerable: true, - get: function get() { - return _GetSSHCertificateOutput["default"]; - } -})); -Object.defineProperty(exports, "GetSecretValue", ({ - enumerable: true, - get: function get() { - return _GetSecretValue["default"]; - } -})); -Object.defineProperty(exports, "GetTags", ({ - enumerable: true, - get: function get() { - return _GetTags["default"]; - } -})); -Object.defineProperty(exports, "GetTarget", ({ - enumerable: true, - get: function get() { - return _GetTarget["default"]; - } -})); -Object.defineProperty(exports, "GetTargetDetails", ({ - enumerable: true, - get: function get() { - return _GetTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "GetTargetDetailsOutput", ({ - enumerable: true, - get: function get() { - return _GetTargetDetailsOutput["default"]; - } -})); -Object.defineProperty(exports, "GithubTargetDetails", ({ - enumerable: true, - get: function get() { - return _GithubTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "GlobalSignAtlasTargetDetails", ({ - enumerable: true, - get: function get() { - return _GlobalSignAtlasTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "GlobalSignGCCTargetDetails", ({ - enumerable: true, - get: function get() { - return _GlobalSignGCCTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "GoogleChronicleForwardingConfig", ({ - enumerable: true, - get: function get() { - return _GoogleChronicleForwardingConfig["default"]; - } -})); -Object.defineProperty(exports, "GwClusterIdentity", ({ - enumerable: true, - get: function get() { - return _GwClusterIdentity["default"]; - } -})); -Object.defineProperty(exports, "HashiMigration", ({ - enumerable: true, - get: function get() { - return _HashiMigration["default"]; - } -})); -Object.defineProperty(exports, "HashiPayload", ({ - enumerable: true, - get: function get() { - return _HashiPayload["default"]; - } -})); -Object.defineProperty(exports, "Hmac", ({ - enumerable: true, - get: function get() { - return _Hmac["default"]; - } -})); -Object.defineProperty(exports, "HmacOutput", ({ - enumerable: true, - get: function get() { - return _HmacOutput["default"]; - } -})); -Object.defineProperty(exports, "HuaweiAccessRules", ({ - enumerable: true, - get: function get() { - return _HuaweiAccessRules["default"]; - } -})); -Object.defineProperty(exports, "ImportPasswords", ({ - enumerable: true, - get: function get() { - return _ImportPasswords["default"]; - } -})); -Object.defineProperty(exports, "ImportPasswordsOutput", ({ - enumerable: true, - get: function get() { - return _ImportPasswordsOutput["default"]; - } -})); -Object.defineProperty(exports, "ImporterInfo", ({ - enumerable: true, - get: function get() { - return _ImporterInfo["default"]; - } -})); -Object.defineProperty(exports, "Item", ({ - enumerable: true, - get: function get() { - return _Item["default"]; - } -})); -Object.defineProperty(exports, "ItemGeneralInfo", ({ - enumerable: true, - get: function get() { - return _ItemGeneralInfo["default"]; - } -})); -Object.defineProperty(exports, "ItemTargetAssociation", ({ - enumerable: true, - get: function get() { - return _ItemTargetAssociation["default"]; - } -})); -Object.defineProperty(exports, "ItemVersion", ({ - enumerable: true, - get: function get() { - return _ItemVersion["default"]; - } -})); -Object.defineProperty(exports, "JSONError", ({ - enumerable: true, - get: function get() { - return _JSONError["default"]; - } -})); -Object.defineProperty(exports, "K8SAuth", ({ - enumerable: true, - get: function get() { - return _K8SAuth["default"]; - } -})); -Object.defineProperty(exports, "K8SAuthsConfigLastChange", ({ - enumerable: true, - get: function get() { - return _K8SAuthsConfigLastChange["default"]; - } -})); -Object.defineProperty(exports, "K8SAuthsConfigPart", ({ - enumerable: true, - get: function get() { - return _K8SAuthsConfigPart["default"]; - } -})); -Object.defineProperty(exports, "K8SMigration", ({ - enumerable: true, - get: function get() { - return _K8SMigration["default"]; - } -})); -Object.defineProperty(exports, "K8SPayload", ({ - enumerable: true, - get: function get() { - return _K8SPayload["default"]; - } -})); -Object.defineProperty(exports, "KMIPClient", ({ - enumerable: true, - get: function get() { - return _KMIPClient["default"]; - } -})); -Object.defineProperty(exports, "KMIPClientGetResponse", ({ - enumerable: true, - get: function get() { - return _KMIPClientGetResponse["default"]; - } -})); -Object.defineProperty(exports, "KMIPClientListResponse", ({ - enumerable: true, - get: function get() { - return _KMIPClientListResponse["default"]; - } -})); -Object.defineProperty(exports, "KMIPClientUpdateResponse", ({ - enumerable: true, - get: function get() { - return _KMIPClientUpdateResponse["default"]; - } -})); -Object.defineProperty(exports, "KMIPConfigPart", ({ - enumerable: true, - get: function get() { - return _KMIPConfigPart["default"]; - } -})); -Object.defineProperty(exports, "KMIPEnvironmentCreateResponse", ({ - enumerable: true, - get: function get() { - return _KMIPEnvironmentCreateResponse["default"]; - } -})); -Object.defineProperty(exports, "KMIPServer", ({ - enumerable: true, - get: function get() { - return _KMIPServer["default"]; - } -})); -Object.defineProperty(exports, "KmipClientDeleteRule", ({ - enumerable: true, - get: function get() { - return _KmipClientDeleteRule["default"]; - } -})); -Object.defineProperty(exports, "KmipClientSetRule", ({ - enumerable: true, - get: function get() { - return _KmipClientSetRule["default"]; - } -})); -Object.defineProperty(exports, "KmipCreateClient", ({ - enumerable: true, - get: function get() { - return _KmipCreateClient["default"]; - } -})); -Object.defineProperty(exports, "KmipCreateClientOutput", ({ - enumerable: true, - get: function get() { - return _KmipCreateClientOutput["default"]; - } -})); -Object.defineProperty(exports, "KmipDeleteClient", ({ - enumerable: true, - get: function get() { - return _KmipDeleteClient["default"]; - } -})); -Object.defineProperty(exports, "KmipDeleteServer", ({ - enumerable: true, - get: function get() { - return _KmipDeleteServer["default"]; - } -})); -Object.defineProperty(exports, "KmipDescribeClient", ({ - enumerable: true, - get: function get() { - return _KmipDescribeClient["default"]; - } -})); -Object.defineProperty(exports, "KmipDescribeServer", ({ - enumerable: true, - get: function get() { - return _KmipDescribeServer["default"]; - } -})); -Object.defineProperty(exports, "KmipDescribeServerOutput", ({ - enumerable: true, - get: function get() { - return _KmipDescribeServerOutput["default"]; - } -})); -Object.defineProperty(exports, "KmipListClients", ({ - enumerable: true, - get: function get() { - return _KmipListClients["default"]; - } -})); -Object.defineProperty(exports, "KmipMoveServer", ({ - enumerable: true, - get: function get() { - return _KmipMoveServer["default"]; - } -})); -Object.defineProperty(exports, "KmipMoveServerOutput", ({ - enumerable: true, - get: function get() { - return _KmipMoveServerOutput["default"]; - } -})); -Object.defineProperty(exports, "KmipRenewClientCertificate", ({ - enumerable: true, - get: function get() { - return _KmipRenewClientCertificate["default"]; - } -})); -Object.defineProperty(exports, "KmipRenewClientCertificateOutput", ({ - enumerable: true, - get: function get() { - return _KmipRenewClientCertificateOutput["default"]; - } -})); -Object.defineProperty(exports, "KmipRenewServerCertificate", ({ - enumerable: true, - get: function get() { - return _KmipRenewServerCertificate["default"]; - } -})); -Object.defineProperty(exports, "KmipRenewServerCertificateOutput", ({ - enumerable: true, - get: function get() { - return _KmipRenewServerCertificateOutput["default"]; - } -})); -Object.defineProperty(exports, "KmipServerSetup", ({ - enumerable: true, - get: function get() { - return _KmipServerSetup["default"]; - } -})); -Object.defineProperty(exports, "KmipSetServerState", ({ - enumerable: true, - get: function get() { - return _KmipSetServerState["default"]; - } -})); -Object.defineProperty(exports, "KmipSetServerStateOutput", ({ - enumerable: true, - get: function get() { - return _KmipSetServerStateOutput["default"]; - } -})); -Object.defineProperty(exports, "KubernetesAccessRules", ({ - enumerable: true, - get: function get() { - return _KubernetesAccessRules["default"]; - } -})); -Object.defineProperty(exports, "LDAPAccessRules", ({ - enumerable: true, - get: function get() { - return _LDAPAccessRules["default"]; - } -})); -Object.defineProperty(exports, "LastConfigChange", ({ - enumerable: true, - get: function get() { - return _LastConfigChange["default"]; - } -})); -Object.defineProperty(exports, "LastStatusInfo", ({ - enumerable: true, - get: function get() { - return _LastStatusInfo["default"]; - } -})); -Object.defineProperty(exports, "LdapConfigPart", ({ - enumerable: true, - get: function get() { - return _LdapConfigPart["default"]; - } -})); -Object.defineProperty(exports, "LdapTargetDetails", ({ - enumerable: true, - get: function get() { - return _LdapTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "LeadershipConfigPart", ({ - enumerable: true, - get: function get() { - return _LeadershipConfigPart["default"]; - } -})); -Object.defineProperty(exports, "LinkedDetails", ({ - enumerable: true, - get: function get() { - return _LinkedDetails["default"]; - } -})); -Object.defineProperty(exports, "LinkedTargetDetails", ({ - enumerable: true, - get: function get() { - return _LinkedTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "ListAuthMethods", ({ - enumerable: true, - get: function get() { - return _ListAuthMethods["default"]; - } -})); -Object.defineProperty(exports, "ListAuthMethodsOutput", ({ - enumerable: true, - get: function get() { - return _ListAuthMethodsOutput["default"]; - } -})); -Object.defineProperty(exports, "ListGateways", ({ - enumerable: true, - get: function get() { - return _ListGateways["default"]; - } -})); -Object.defineProperty(exports, "ListItems", ({ - enumerable: true, - get: function get() { - return _ListItems["default"]; - } -})); -Object.defineProperty(exports, "ListItemsInPathOutput", ({ - enumerable: true, - get: function get() { - return _ListItemsInPathOutput["default"]; - } -})); -Object.defineProperty(exports, "ListItemsOutput", ({ - enumerable: true, - get: function get() { - return _ListItemsOutput["default"]; - } -})); -Object.defineProperty(exports, "ListRoles", ({ - enumerable: true, - get: function get() { - return _ListRoles["default"]; - } -})); -Object.defineProperty(exports, "ListRolesOutput", ({ - enumerable: true, - get: function get() { - return _ListRolesOutput["default"]; - } -})); -Object.defineProperty(exports, "ListSRABastions", ({ - enumerable: true, - get: function get() { - return _ListSRABastions["default"]; - } -})); -Object.defineProperty(exports, "ListSharedItems", ({ - enumerable: true, - get: function get() { - return _ListSharedItems["default"]; - } -})); -Object.defineProperty(exports, "ListTargets", ({ - enumerable: true, - get: function get() { - return _ListTargets["default"]; - } -})); -Object.defineProperty(exports, "ListTargetsOutput", ({ - enumerable: true, - get: function get() { - return _ListTargetsOutput["default"]; - } -})); -Object.defineProperty(exports, "LogForwardingConfigPart", ({ - enumerable: true, - get: function get() { - return _LogForwardingConfigPart["default"]; - } -})); -Object.defineProperty(exports, "LogstashLogForwardingConfig", ({ - enumerable: true, - get: function get() { - return _LogstashLogForwardingConfig["default"]; - } -})); -Object.defineProperty(exports, "LogzIoLogForwardingConfig", ({ - enumerable: true, - get: function get() { - return _LogzIoLogForwardingConfig["default"]; - } -})); -Object.defineProperty(exports, "MigrationGeneral", ({ - enumerable: true, - get: function get() { - return _MigrationGeneral["default"]; - } -})); -Object.defineProperty(exports, "MigrationItems", ({ - enumerable: true, - get: function get() { - return _MigrationItems["default"]; - } -})); -Object.defineProperty(exports, "MigrationStatus", ({ - enumerable: true, - get: function get() { - return _MigrationStatus["default"]; - } -})); -Object.defineProperty(exports, "MigrationStatusReplyObj", ({ - enumerable: true, - get: function get() { - return _MigrationStatusReplyObj["default"]; - } -})); -Object.defineProperty(exports, "MigrationsConfigLastChange", ({ - enumerable: true, - get: function get() { - return _MigrationsConfigLastChange["default"]; - } -})); -Object.defineProperty(exports, "MigrationsConfigPart", ({ - enumerable: true, - get: function get() { - return _MigrationsConfigPart["default"]; - } -})); -Object.defineProperty(exports, "MockMigration", ({ - enumerable: true, - get: function get() { - return _MockMigration["default"]; - } -})); -Object.defineProperty(exports, "MockPayload", ({ - enumerable: true, - get: function get() { - return _MockPayload["default"]; - } -})); -Object.defineProperty(exports, "MongoDBTargetDetails", ({ - enumerable: true, - get: function get() { - return _MongoDBTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "MoveObjects", ({ - enumerable: true, - get: function get() { - return _MoveObjects["default"]; - } -})); -Object.defineProperty(exports, "Name", ({ - enumerable: true, - get: function get() { - return _Name["default"]; - } -})); -Object.defineProperty(exports, "NativeK8sTargetDetails", ({ - enumerable: true, - get: function get() { - return _NativeK8sTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "NotiForwarder", ({ - enumerable: true, - get: function get() { - return _NotiForwarder["default"]; - } -})); -Object.defineProperty(exports, "OAuth2AccessRules", ({ - enumerable: true, - get: function get() { - return _OAuth2AccessRules["default"]; - } -})); -Object.defineProperty(exports, "OAuth2CustomClaim", ({ - enumerable: true, - get: function get() { - return _OAuth2CustomClaim["default"]; - } -})); -Object.defineProperty(exports, "OIDCAccessRules", ({ - enumerable: true, - get: function get() { - return _OIDCAccessRules["default"]; - } -})); -Object.defineProperty(exports, "OIDCCustomClaim", ({ - enumerable: true, - get: function get() { - return _OIDCCustomClaim["default"]; - } -})); -Object.defineProperty(exports, "ObjectVersionSettingsOutput", ({ - enumerable: true, - get: function get() { - return _ObjectVersionSettingsOutput["default"]; - } -})); -Object.defineProperty(exports, "OidcClientInfo", ({ - enumerable: true, - get: function get() { - return _OidcClientInfo["default"]; - } -})); -Object.defineProperty(exports, "OnePasswordMigration", ({ - enumerable: true, - get: function get() { - return _OnePasswordMigration["default"]; - } -})); -Object.defineProperty(exports, "OnePasswordPayload", ({ - enumerable: true, - get: function get() { - return _OnePasswordPayload["default"]; - } -})); -Object.defineProperty(exports, "PKICertificateIssueDetails", ({ - enumerable: true, - get: function get() { - return _PKICertificateIssueDetails["default"]; - } -})); -Object.defineProperty(exports, "PasswordPolicyInfo", ({ - enumerable: true, - get: function get() { - return _PasswordPolicyInfo["default"]; - } -})); -Object.defineProperty(exports, "PathRule", ({ - enumerable: true, - get: function get() { - return _PathRule["default"]; - } -})); -Object.defineProperty(exports, "PingTargetDetails", ({ - enumerable: true, - get: function get() { - return _PingTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "Producer", ({ - enumerable: true, - get: function get() { - return _Producer["default"]; - } -})); -Object.defineProperty(exports, "ProducersConfigPart", ({ - enumerable: true, - get: function get() { - return _ProducersConfigPart["default"]; - } -})); -Object.defineProperty(exports, "RabbitMQTargetDetails", ({ - enumerable: true, - get: function get() { - return _RabbitMQTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "RawCreds", ({ - enumerable: true, - get: function get() { - return _RawCreds["default"]; - } -})); -Object.defineProperty(exports, "RefreshKey", ({ - enumerable: true, - get: function get() { - return _RefreshKey["default"]; - } -})); -Object.defineProperty(exports, "RefreshKeyOutput", ({ - enumerable: true, - get: function get() { - return _RefreshKeyOutput["default"]; - } -})); -Object.defineProperty(exports, "RegexpTokenizerInfo", ({ - enumerable: true, - get: function get() { - return _RegexpTokenizerInfo["default"]; - } -})); -Object.defineProperty(exports, "RequestAccess", ({ - enumerable: true, - get: function get() { - return _RequestAccess["default"]; - } -})); -Object.defineProperty(exports, "RequestAccessOutput", ({ - enumerable: true, - get: function get() { - return _RequestAccessOutput["default"]; - } -})); -Object.defineProperty(exports, "RequiredActivity", ({ - enumerable: true, - get: function get() { - return _RequiredActivity["default"]; - } -})); -Object.defineProperty(exports, "ReverseRBAC", ({ - enumerable: true, - get: function get() { - return _ReverseRBAC["default"]; - } -})); -Object.defineProperty(exports, "ReverseRBACClient", ({ - enumerable: true, - get: function get() { - return _ReverseRBACClient["default"]; - } -})); -Object.defineProperty(exports, "ReverseRBACOutput", ({ - enumerable: true, - get: function get() { - return _ReverseRBACOutput["default"]; - } -})); -Object.defineProperty(exports, "RevokeCreds", ({ - enumerable: true, - get: function get() { - return _RevokeCreds["default"]; - } -})); -Object.defineProperty(exports, "Role", ({ - enumerable: true, - get: function get() { - return _Role["default"]; - } -})); -Object.defineProperty(exports, "RoleAssociationDetails", ({ - enumerable: true, - get: function get() { - return _RoleAssociationDetails["default"]; - } -})); -Object.defineProperty(exports, "RoleAuthMethodAssociation", ({ - enumerable: true, - get: function get() { - return _RoleAuthMethodAssociation["default"]; - } -})); -Object.defineProperty(exports, "RollbackSecret", ({ - enumerable: true, - get: function get() { - return _RollbackSecret["default"]; - } -})); -Object.defineProperty(exports, "RollbackSecretOutput", ({ - enumerable: true, - get: function get() { - return _RollbackSecretOutput["default"]; - } -})); -Object.defineProperty(exports, "RotateKey", ({ - enumerable: true, - get: function get() { - return _RotateKey["default"]; - } -})); -Object.defineProperty(exports, "RotateKeyOutput", ({ - enumerable: true, - get: function get() { - return _RotateKeyOutput["default"]; - } -})); -Object.defineProperty(exports, "RotateSecret", ({ - enumerable: true, - get: function get() { - return _RotateSecret["default"]; - } -})); -Object.defineProperty(exports, "RotatedSecretDetailsInfo", ({ - enumerable: true, - get: function get() { - return _RotatedSecretDetailsInfo["default"]; - } -})); -Object.defineProperty(exports, "RotatedSecretOutput", ({ - enumerable: true, - get: function get() { - return _RotatedSecretOutput["default"]; - } -})); -Object.defineProperty(exports, "Rotator", ({ - enumerable: true, - get: function get() { - return _Rotator["default"]; - } -})); -Object.defineProperty(exports, "RotatorsConfigPart", ({ - enumerable: true, - get: function get() { - return _RotatorsConfigPart["default"]; - } -})); -Object.defineProperty(exports, "RuleAssigner", ({ - enumerable: true, - get: function get() { - return _RuleAssigner["default"]; - } -})); -Object.defineProperty(exports, "Rules", ({ - enumerable: true, - get: function get() { - return _Rules["default"]; - } -})); -Object.defineProperty(exports, "SAMLAccessRules", ({ - enumerable: true, - get: function get() { - return _SAMLAccessRules["default"]; - } -})); -Object.defineProperty(exports, "SAMLAttribute", ({ - enumerable: true, - get: function get() { - return _SAMLAttribute["default"]; - } -})); -Object.defineProperty(exports, "SSHCertificateIssueDetails", ({ - enumerable: true, - get: function get() { - return _SSHCertificateIssueDetails["default"]; - } -})); -Object.defineProperty(exports, "SSHTargetDetails", ({ - enumerable: true, - get: function get() { - return _SSHTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "SalesforceTargetDetails", ({ - enumerable: true, - get: function get() { - return _SalesforceTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "SecretInfo", ({ - enumerable: true, - get: function get() { - return _SecretInfo["default"]; - } -})); -Object.defineProperty(exports, "SecureRemoteAccess", ({ - enumerable: true, - get: function get() { - return _SecureRemoteAccess["default"]; - } -})); -Object.defineProperty(exports, "ServerInventoryMigration", ({ - enumerable: true, - get: function get() { - return _ServerInventoryMigration["default"]; - } -})); -Object.defineProperty(exports, "ServerInventoryPayload", ({ - enumerable: true, - get: function get() { - return _ServerInventoryPayload["default"]; - } -})); -Object.defineProperty(exports, "SetItemState", ({ - enumerable: true, - get: function get() { - return _SetItemState["default"]; - } -})); -Object.defineProperty(exports, "SetRoleRule", ({ - enumerable: true, - get: function get() { - return _SetRoleRule["default"]; - } -})); -Object.defineProperty(exports, "ShareItem", ({ - enumerable: true, - get: function get() { - return _ShareItem["default"]; - } -})); -Object.defineProperty(exports, "SharingPolicyInfo", ({ - enumerable: true, - get: function get() { - return _SharingPolicyInfo["default"]; - } -})); -Object.defineProperty(exports, "SignDataWithClassicKey", ({ - enumerable: true, - get: function get() { - return _SignDataWithClassicKey["default"]; - } -})); -Object.defineProperty(exports, "SignGPG", ({ - enumerable: true, - get: function get() { - return _SignGPG["default"]; - } -})); -Object.defineProperty(exports, "SignGPGOutput", ({ - enumerable: true, - get: function get() { - return _SignGPGOutput["default"]; - } -})); -Object.defineProperty(exports, "SignJWTOutput", ({ - enumerable: true, - get: function get() { - return _SignJWTOutput["default"]; - } -})); -Object.defineProperty(exports, "SignJWTWithClassicKey", ({ - enumerable: true, - get: function get() { - return _SignJWTWithClassicKey["default"]; - } -})); -Object.defineProperty(exports, "SignOutput", ({ - enumerable: true, - get: function get() { - return _SignOutput["default"]; - } -})); -Object.defineProperty(exports, "SignPKCS1", ({ - enumerable: true, - get: function get() { - return _SignPKCS["default"]; - } -})); -Object.defineProperty(exports, "SignPKCS1Output", ({ - enumerable: true, - get: function get() { - return _SignPKCS1Output["default"]; - } -})); -Object.defineProperty(exports, "SignPKICertOutput", ({ - enumerable: true, - get: function get() { - return _SignPKICertOutput["default"]; - } -})); -Object.defineProperty(exports, "SignPKICertWithClassicKey", ({ - enumerable: true, - get: function get() { - return _SignPKICertWithClassicKey["default"]; - } -})); -Object.defineProperty(exports, "SmInfo", ({ - enumerable: true, - get: function get() { - return _SmInfo["default"]; - } -})); -Object.defineProperty(exports, "SplunkLogForwardingConfig", ({ - enumerable: true, - get: function get() { - return _SplunkLogForwardingConfig["default"]; - } -})); -Object.defineProperty(exports, "SraInfo", ({ - enumerable: true, - get: function get() { - return _SraInfo["default"]; - } -})); -Object.defineProperty(exports, "StaticCredsAuth", ({ - enumerable: true, - get: function get() { - return _StaticCredsAuth["default"]; - } -})); -Object.defineProperty(exports, "StaticCredsAuthOutput", ({ - enumerable: true, - get: function get() { - return _StaticCredsAuthOutput["default"]; - } -})); -Object.defineProperty(exports, "StaticSecretDetailsInfo", ({ - enumerable: true, - get: function get() { - return _StaticSecretDetailsInfo["default"]; - } -})); -Object.defineProperty(exports, "SumologicLogForwardingConfig", ({ - enumerable: true, - get: function get() { - return _SumologicLogForwardingConfig["default"]; - } -})); -Object.defineProperty(exports, "SyslogLogForwardingConfig", ({ - enumerable: true, - get: function get() { - return _SyslogLogForwardingConfig["default"]; - } -})); -Object.defineProperty(exports, "SystemAccessCredentialsReplyObj", ({ - enumerable: true, - get: function get() { - return _SystemAccessCredentialsReplyObj["default"]; - } -})); -Object.defineProperty(exports, "SystemAccessCredsSettings", ({ - enumerable: true, - get: function get() { - return _SystemAccessCredsSettings["default"]; - } -})); -Object.defineProperty(exports, "Target", ({ - enumerable: true, - get: function get() { - return _Target["default"]; - } -})); -Object.defineProperty(exports, "TargetItemAssociation", ({ - enumerable: true, - get: function get() { - return _TargetItemAssociation["default"]; - } -})); -Object.defineProperty(exports, "TargetItemVersion", ({ - enumerable: true, - get: function get() { - return _TargetItemVersion["default"]; - } -})); -Object.defineProperty(exports, "TargetTypeDetailsInput", ({ - enumerable: true, - get: function get() { - return _TargetTypeDetailsInput["default"]; - } -})); -Object.defineProperty(exports, "TmpUserData", ({ - enumerable: true, - get: function get() { - return _TmpUserData["default"]; - } -})); -Object.defineProperty(exports, "Tokenize", ({ - enumerable: true, - get: function get() { - return _Tokenize["default"]; - } -})); -Object.defineProperty(exports, "TokenizeOutput", ({ - enumerable: true, - get: function get() { - return _TokenizeOutput["default"]; - } -})); -Object.defineProperty(exports, "TokenizerInfo", ({ - enumerable: true, - get: function get() { - return _TokenizerInfo["default"]; - } -})); -Object.defineProperty(exports, "UIDTokenDetails", ({ - enumerable: true, - get: function get() { - return _UIDTokenDetails["default"]; - } -})); -Object.defineProperty(exports, "UidCreateChildToken", ({ - enumerable: true, - get: function get() { - return _UidCreateChildToken["default"]; - } -})); -Object.defineProperty(exports, "UidCreateChildTokenOutput", ({ - enumerable: true, - get: function get() { - return _UidCreateChildTokenOutput["default"]; - } -})); -Object.defineProperty(exports, "UidGenerateToken", ({ - enumerable: true, - get: function get() { - return _UidGenerateToken["default"]; - } -})); -Object.defineProperty(exports, "UidGenerateTokenOutput", ({ - enumerable: true, - get: function get() { - return _UidGenerateTokenOutput["default"]; - } -})); -Object.defineProperty(exports, "UidListChildren", ({ - enumerable: true, - get: function get() { - return _UidListChildren["default"]; - } -})); -Object.defineProperty(exports, "UidRevokeToken", ({ - enumerable: true, - get: function get() { - return _UidRevokeToken["default"]; - } -})); -Object.defineProperty(exports, "UidRotateToken", ({ - enumerable: true, - get: function get() { - return _UidRotateToken["default"]; - } -})); -Object.defineProperty(exports, "UidRotateTokenOutput", ({ - enumerable: true, - get: function get() { - return _UidRotateTokenOutput["default"]; - } -})); -Object.defineProperty(exports, "Unconfigure", ({ - enumerable: true, - get: function get() { - return _Unconfigure["default"]; - } -})); -Object.defineProperty(exports, "UniversalIdentityAccessRules", ({ - enumerable: true, - get: function get() { - return _UniversalIdentityAccessRules["default"]; - } -})); -Object.defineProperty(exports, "UniversalIdentityDetails", ({ - enumerable: true, - get: function get() { - return _UniversalIdentityDetails["default"]; - } -})); -Object.defineProperty(exports, "Update", ({ - enumerable: true, - get: function get() { - return _Update["default"]; - } -})); -Object.defineProperty(exports, "UpdateAWSTarget", ({ - enumerable: true, - get: function get() { - return _UpdateAWSTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateAWSTargetDetails", ({ - enumerable: true, - get: function get() { - return _UpdateAWSTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "UpdateAccountSettings", ({ - enumerable: true, - get: function get() { - return _UpdateAccountSettings["default"]; - } -})); -Object.defineProperty(exports, "UpdateAccountSettingsOutput", ({ - enumerable: true, - get: function get() { - return _UpdateAccountSettingsOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateArtifactoryTarget", ({ - enumerable: true, - get: function get() { - return _UpdateArtifactoryTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateArtifactoryTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateArtifactoryTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateAssoc", ({ - enumerable: true, - get: function get() { - return _UpdateAssoc["default"]; - } -})); -Object.defineProperty(exports, "UpdateAuthMethod", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethod["default"]; - } -})); -Object.defineProperty(exports, "UpdateAuthMethodAWSIAM", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodAWSIAM["default"]; - } -})); -Object.defineProperty(exports, "UpdateAuthMethodAzureAD", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodAzureAD["default"]; - } -})); -Object.defineProperty(exports, "UpdateAuthMethodCert", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodCert["default"]; - } -})); -Object.defineProperty(exports, "UpdateAuthMethodCertOutput", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodCertOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateAuthMethodGCP", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodGCP["default"]; - } -})); -Object.defineProperty(exports, "UpdateAuthMethodK8S", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodK8S["default"]; - } -})); -Object.defineProperty(exports, "UpdateAuthMethodK8SOutput", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodK8SOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateAuthMethodLDAP", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodLDAP["default"]; - } -})); -Object.defineProperty(exports, "UpdateAuthMethodLDAPOutput", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodLDAPOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateAuthMethodOAuth2", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodOAuth["default"]; - } -})); -Object.defineProperty(exports, "UpdateAuthMethodOIDC", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodOIDC["default"]; - } -})); -Object.defineProperty(exports, "UpdateAuthMethodOutput", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateAuthMethodSAML", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodSAML["default"]; - } -})); -Object.defineProperty(exports, "UpdateAuthMethodUniversalIdentity", ({ - enumerable: true, - get: function get() { - return _UpdateAuthMethodUniversalIdentity["default"]; - } -})); -Object.defineProperty(exports, "UpdateAzureTarget", ({ - enumerable: true, - get: function get() { - return _UpdateAzureTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateAzureTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateAzureTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateCertificateOutput", ({ - enumerable: true, - get: function get() { - return _UpdateCertificateOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateCertificateValue", ({ - enumerable: true, - get: function get() { - return _UpdateCertificateValue["default"]; - } -})); -Object.defineProperty(exports, "UpdateDBTarget", ({ - enumerable: true, - get: function get() { - return _UpdateDBTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateDBTargetDetails", ({ - enumerable: true, - get: function get() { - return _UpdateDBTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "UpdateDBTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateDBTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateDockerhubTarget", ({ - enumerable: true, - get: function get() { - return _UpdateDockerhubTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateDockerhubTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateDockerhubTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateEKSTarget", ({ - enumerable: true, - get: function get() { - return _UpdateEKSTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateEKSTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateEKSTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateEventForwarder", ({ - enumerable: true, - get: function get() { - return _UpdateEventForwarder["default"]; - } -})); -Object.defineProperty(exports, "UpdateGKETarget", ({ - enumerable: true, - get: function get() { - return _UpdateGKETarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateGKETargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateGKETargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateGcpTarget", ({ - enumerable: true, - get: function get() { - return _UpdateGcpTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateGcpTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateGcpTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateGithubTarget", ({ - enumerable: true, - get: function get() { - return _UpdateGithubTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateGithubTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateGithubTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateGlobalSignAtlasTarget", ({ - enumerable: true, - get: function get() { - return _UpdateGlobalSignAtlasTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateGlobalSignAtlasTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateGlobalSignAtlasTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateGlobalSignTarget", ({ - enumerable: true, - get: function get() { - return _UpdateGlobalSignTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateGlobalSignTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateGlobalSignTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateItem", ({ - enumerable: true, - get: function get() { - return _UpdateItem["default"]; - } -})); -Object.defineProperty(exports, "UpdateItemOutput", ({ - enumerable: true, - get: function get() { - return _UpdateItemOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateLdapTarget", ({ - enumerable: true, - get: function get() { - return _UpdateLdapTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateLdapTargetDetails", ({ - enumerable: true, - get: function get() { - return _UpdateLdapTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "UpdateLdapTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateLdapTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateLinkedTarget", ({ - enumerable: true, - get: function get() { - return _UpdateLinkedTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateNativeK8STarget", ({ - enumerable: true, - get: function get() { - return _UpdateNativeK8STarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateNativeK8STargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateNativeK8STargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateOutput", ({ - enumerable: true, - get: function get() { - return _UpdateOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdatePKICertIssuer", ({ - enumerable: true, - get: function get() { - return _UpdatePKICertIssuer["default"]; - } -})); -Object.defineProperty(exports, "UpdatePKICertIssuerOutput", ({ - enumerable: true, - get: function get() { - return _UpdatePKICertIssuerOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdatePingTarget", ({ - enumerable: true, - get: function get() { - return _UpdatePingTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateRDPTargetDetails", ({ - enumerable: true, - get: function get() { - return _UpdateRDPTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "UpdateRabbitMQTarget", ({ - enumerable: true, - get: function get() { - return _UpdateRabbitMQTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateRabbitMQTargetDetails", ({ - enumerable: true, - get: function get() { - return _UpdateRabbitMQTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "UpdateRabbitMQTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateRabbitMQTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateRole", ({ - enumerable: true, - get: function get() { - return _UpdateRole["default"]; - } -})); -Object.defineProperty(exports, "UpdateRoleOutput", ({ - enumerable: true, - get: function get() { - return _UpdateRoleOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateRotatedSecret", ({ - enumerable: true, - get: function get() { - return _UpdateRotatedSecret["default"]; - } -})); -Object.defineProperty(exports, "UpdateRotatedSecretOutput", ({ - enumerable: true, - get: function get() { - return _UpdateRotatedSecretOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateRotationSettings", ({ - enumerable: true, - get: function get() { - return _UpdateRotationSettings["default"]; - } -})); -Object.defineProperty(exports, "UpdateSSHCertIssuer", ({ - enumerable: true, - get: function get() { - return _UpdateSSHCertIssuer["default"]; - } -})); -Object.defineProperty(exports, "UpdateSSHCertIssuerOutput", ({ - enumerable: true, - get: function get() { - return _UpdateSSHCertIssuerOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateSSHTarget", ({ - enumerable: true, - get: function get() { - return _UpdateSSHTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateSSHTargetDetails", ({ - enumerable: true, - get: function get() { - return _UpdateSSHTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "UpdateSSHTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateSSHTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateSalesforceTarget", ({ - enumerable: true, - get: function get() { - return _UpdateSalesforceTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateSalesforceTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateSalesforceTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateSecretVal", ({ - enumerable: true, - get: function get() { - return _UpdateSecretVal["default"]; - } -})); -Object.defineProperty(exports, "UpdateSecretValOutput", ({ - enumerable: true, - get: function get() { - return _UpdateSecretValOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateTarget", ({ - enumerable: true, - get: function get() { - return _UpdateTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateTargetDetails", ({ - enumerable: true, - get: function get() { - return _UpdateTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "UpdateTargetDetailsOutput", ({ - enumerable: true, - get: function get() { - return _UpdateTargetDetailsOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateWebTarget", ({ - enumerable: true, - get: function get() { - return _UpdateWebTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateWebTargetDetails", ({ - enumerable: true, - get: function get() { - return _UpdateWebTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "UpdateWebTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateWebTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UpdateWindowsTarget", ({ - enumerable: true, - get: function get() { - return _UpdateWindowsTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateZeroSSLTarget", ({ - enumerable: true, - get: function get() { - return _UpdateZeroSSLTarget["default"]; - } -})); -Object.defineProperty(exports, "UpdateZeroSSLTargetOutput", ({ - enumerable: true, - get: function get() { - return _UpdateZeroSSLTargetOutput["default"]; - } -})); -Object.defineProperty(exports, "UploadPKCS12", ({ - enumerable: true, - get: function get() { - return _UploadPKCS["default"]; - } -})); -Object.defineProperty(exports, "UploadRSA", ({ - enumerable: true, - get: function get() { - return _UploadRSA["default"]; - } -})); -Object.defineProperty(exports, "ValidateToken", ({ - enumerable: true, - get: function get() { - return _ValidateToken["default"]; - } -})); -Object.defineProperty(exports, "ValidateTokenOutput", ({ - enumerable: true, - get: function get() { - return _ValidateTokenOutput["default"]; - } -})); -Object.defineProperty(exports, "VaultlessTokenizerInfo", ({ - enumerable: true, - get: function get() { - return _VaultlessTokenizerInfo["default"]; - } -})); -Object.defineProperty(exports, "VenafiTargetDetails", ({ - enumerable: true, - get: function get() { - return _VenafiTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "VerifyDataWithClassicKey", ({ - enumerable: true, - get: function get() { - return _VerifyDataWithClassicKey["default"]; - } -})); -Object.defineProperty(exports, "VerifyGPG", ({ - enumerable: true, - get: function get() { - return _VerifyGPG["default"]; - } -})); -Object.defineProperty(exports, "VerifyJWTOutput", ({ - enumerable: true, - get: function get() { - return _VerifyJWTOutput["default"]; - } -})); -Object.defineProperty(exports, "VerifyJWTWithClassicKey", ({ - enumerable: true, - get: function get() { - return _VerifyJWTWithClassicKey["default"]; - } -})); -Object.defineProperty(exports, "VerifyPKCS1", ({ - enumerable: true, - get: function get() { - return _VerifyPKCS["default"]; - } -})); -Object.defineProperty(exports, "VerifyPKICertOutput", ({ - enumerable: true, - get: function get() { - return _VerifyPKICertOutput["default"]; - } -})); -Object.defineProperty(exports, "VerifyPKICertWithClassicKey", ({ - enumerable: true, - get: function get() { - return _VerifyPKICertWithClassicKey["default"]; - } -})); -Object.defineProperty(exports, "WebTargetDetails", ({ - enumerable: true, - get: function get() { - return _WebTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "WindowsTargetDetails", ({ - enumerable: true, - get: function get() { - return _WindowsTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "ZeroSSLTargetDetails", ({ - enumerable: true, - get: function get() { - return _ZeroSSLTargetDetails["default"]; - } -})); -Object.defineProperty(exports, "V2Api", ({ - enumerable: true, - get: function get() { - return _V2Api["default"]; - } -})); - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _APIKeyAccessRules = _interopRequireDefault(__nccwpck_require__(84834)); - -var _AWSIAMAccessRules = _interopRequireDefault(__nccwpck_require__(74237)); - -var _AWSPayload = _interopRequireDefault(__nccwpck_require__(47437)); - -var _AWSSecretsMigration = _interopRequireDefault(__nccwpck_require__(10380)); - -var _AWSTargetDetails = _interopRequireDefault(__nccwpck_require__(4398)); - -var _AccessPermissionAssignment = _interopRequireDefault(__nccwpck_require__(95036)); - -var _AccountGeneralSettings = _interopRequireDefault(__nccwpck_require__(85700)); - -var _AccountObjectVersionSettingsOutput = _interopRequireDefault(__nccwpck_require__(57060)); - -var _ActiveDirectoryMigration = _interopRequireDefault(__nccwpck_require__(46703)); - -var _ActiveDirectoryPayload = _interopRequireDefault(__nccwpck_require__(941)); - -var _AddGatewayAllowedAccessId = _interopRequireDefault(__nccwpck_require__(51400)); - -var _AdminsConfigPart = _interopRequireDefault(__nccwpck_require__(32299)); - -var _AkeylessGatewayConfig = _interopRequireDefault(__nccwpck_require__(45995)); - -var _AllowedAccess = _interopRequireDefault(__nccwpck_require__(61540)); - -var _AllowedAccessOld = _interopRequireDefault(__nccwpck_require__(50727)); - -var _ArtifactoryTargetDetails = _interopRequireDefault(__nccwpck_require__(99747)); - -var _AssocRoleAuthMethod = _interopRequireDefault(__nccwpck_require__(17378)); - -var _AssocTargetItem = _interopRequireDefault(__nccwpck_require__(68883)); - -var _AttributeTypeAndValue = _interopRequireDefault(__nccwpck_require__(90188)); - -var _Auth = _interopRequireDefault(__nccwpck_require__(51330)); - -var _AuthMethod = _interopRequireDefault(__nccwpck_require__(52187)); - -var _AuthMethodAccessInfo = _interopRequireDefault(__nccwpck_require__(27225)); - -var _AuthMethodRoleAssociation = _interopRequireDefault(__nccwpck_require__(39304)); - -var _AuthOutput = _interopRequireDefault(__nccwpck_require__(68871)); - -var _AwsS3LogForwardingConfig = _interopRequireDefault(__nccwpck_require__(20090)); - -var _AzureADAccessRules = _interopRequireDefault(__nccwpck_require__(20467)); - -var _AzureKeyVaultMigration = _interopRequireDefault(__nccwpck_require__(15410)); - -var _AzureLogAnalyticsForwardingConfig = _interopRequireDefault(__nccwpck_require__(20430)); - -var _AzurePayload = _interopRequireDefault(__nccwpck_require__(85035)); - -var _AzureTargetDetails = _interopRequireDefault(__nccwpck_require__(58540)); - -var _BastionListEntry = _interopRequireDefault(__nccwpck_require__(62548)); - -var _BastionsList = _interopRequireDefault(__nccwpck_require__(34873)); - -var _CFConfigPart = _interopRequireDefault(__nccwpck_require__(6102)); - -var _CacheConfigPart = _interopRequireDefault(__nccwpck_require__(31951)); - -var _CertAccessRules = _interopRequireDefault(__nccwpck_require__(38173)); - -var _CertificateChainInfo = _interopRequireDefault(__nccwpck_require__(60084)); - -var _CertificateExpirationEvent = _interopRequireDefault(__nccwpck_require__(61726)); - -var _CertificateInfo = _interopRequireDefault(__nccwpck_require__(25201)); - -var _CertificateIssueInfo = _interopRequireDefault(__nccwpck_require__(72182)); - -var _CertificateTemplateInfo = _interopRequireDefault(__nccwpck_require__(89755)); - -var _ChefTargetDetails = _interopRequireDefault(__nccwpck_require__(29095)); - -var _ClassicKeyDetailsInfo = _interopRequireDefault(__nccwpck_require__(49881)); - -var _ClassicKeyStatusInfo = _interopRequireDefault(__nccwpck_require__(6277)); - -var _ClassicKeyTargetInfo = _interopRequireDefault(__nccwpck_require__(41418)); - -var _ClientData = _interopRequireDefault(__nccwpck_require__(49671)); - -var _ConfigChange = _interopRequireDefault(__nccwpck_require__(47166)); - -var _ConfigHash = _interopRequireDefault(__nccwpck_require__(95122)); - -var _Configure = _interopRequireDefault(__nccwpck_require__(2610)); - -var _ConfigureOutput = _interopRequireDefault(__nccwpck_require__(6103)); - -var _Connect = _interopRequireDefault(__nccwpck_require__(92264)); - -var _CreateAWSTarget = _interopRequireDefault(__nccwpck_require__(69350)); - -var _CreateAWSTargetOutput = _interopRequireDefault(__nccwpck_require__(30851)); - -var _CreateArtifactoryTarget = _interopRequireDefault(__nccwpck_require__(87961)); - -var _CreateArtifactoryTargetOutput = _interopRequireDefault(__nccwpck_require__(85020)); - -var _CreateAuthMethod = _interopRequireDefault(__nccwpck_require__(97067)); - -var _CreateAuthMethodAWSIAM = _interopRequireDefault(__nccwpck_require__(39317)); - -var _CreateAuthMethodAWSIAMOutput = _interopRequireDefault(__nccwpck_require__(29184)); - -var _CreateAuthMethodAzureAD = _interopRequireDefault(__nccwpck_require__(47553)); - -var _CreateAuthMethodAzureADOutput = _interopRequireDefault(__nccwpck_require__(40820)); - -var _CreateAuthMethodCert = _interopRequireDefault(__nccwpck_require__(9265)); - -var _CreateAuthMethodCertOutput = _interopRequireDefault(__nccwpck_require__(64228)); - -var _CreateAuthMethodEmail = _interopRequireDefault(__nccwpck_require__(42003)); - -var _CreateAuthMethodEmailOutput = _interopRequireDefault(__nccwpck_require__(20898)); - -var _CreateAuthMethodGCP = _interopRequireDefault(__nccwpck_require__(26285)); - -var _CreateAuthMethodGCPOutput = _interopRequireDefault(__nccwpck_require__(62664)); - -var _CreateAuthMethodHuawei = _interopRequireDefault(__nccwpck_require__(96274)); - -var _CreateAuthMethodHuaweiOutput = _interopRequireDefault(__nccwpck_require__(90359)); - -var _CreateAuthMethodK8S = _interopRequireDefault(__nccwpck_require__(39443)); - -var _CreateAuthMethodK8SOutput = _interopRequireDefault(__nccwpck_require__(7586)); - -var _CreateAuthMethodLDAP = _interopRequireDefault(__nccwpck_require__(10158)); - -var _CreateAuthMethodLDAPOutput = _interopRequireDefault(__nccwpck_require__(85019)); - -var _CreateAuthMethodOAuth = _interopRequireDefault(__nccwpck_require__(46424)); - -var _CreateAuthMethodOAuth2Output = _interopRequireDefault(__nccwpck_require__(60689)); - -var _CreateAuthMethodOIDC = _interopRequireDefault(__nccwpck_require__(94918)); - -var _CreateAuthMethodOIDCOutput = _interopRequireDefault(__nccwpck_require__(56259)); - -var _CreateAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(55338)); - -var _CreateAuthMethodSAML = _interopRequireDefault(__nccwpck_require__(33710)); - -var _CreateAuthMethodSAMLOutput = _interopRequireDefault(__nccwpck_require__(41307)); - -var _CreateAuthMethodUniversalIdentity = _interopRequireDefault(__nccwpck_require__(73904)); - -var _CreateAuthMethodUniversalIdentityOutput = _interopRequireDefault(__nccwpck_require__(33625)); - -var _CreateAzureTarget = _interopRequireDefault(__nccwpck_require__(46492)); - -var _CreateAzureTargetOutput = _interopRequireDefault(__nccwpck_require__(67837)); - -var _CreateCertificate = _interopRequireDefault(__nccwpck_require__(54713)); - -var _CreateCertificateOutput = _interopRequireDefault(__nccwpck_require__(9916)); - -var _CreateClassicKey = _interopRequireDefault(__nccwpck_require__(85575)); - -var _CreateClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(87166)); - -var _CreateDBTarget = _interopRequireDefault(__nccwpck_require__(84315)); - -var _CreateDBTargetOutput = _interopRequireDefault(__nccwpck_require__(90170)); - -var _CreateDFCKey = _interopRequireDefault(__nccwpck_require__(19450)); - -var _CreateDFCKeyOutput = _interopRequireDefault(__nccwpck_require__(71247)); - -var _CreateDockerhubTarget = _interopRequireDefault(__nccwpck_require__(17396)); - -var _CreateDockerhubTargetOutput = _interopRequireDefault(__nccwpck_require__(19845)); - -var _CreateDynamicSecret = _interopRequireDefault(__nccwpck_require__(78607)); - -var _CreateEKSTarget = _interopRequireDefault(__nccwpck_require__(25086)); - -var _CreateEKSTargetOutput = _interopRequireDefault(__nccwpck_require__(67307)); - -var _CreateESM = _interopRequireDefault(__nccwpck_require__(87617)); - -var _CreateESMOutput = _interopRequireDefault(__nccwpck_require__(64564)); - -var _CreateEventForwarder = _interopRequireDefault(__nccwpck_require__(55910)); - -var _CreateEventForwarderOutput = _interopRequireDefault(__nccwpck_require__(91555)); - -var _CreateGKETarget = _interopRequireDefault(__nccwpck_require__(3302)); - -var _CreateGKETargetOutput = _interopRequireDefault(__nccwpck_require__(15235)); - -var _CreateGcpTarget = _interopRequireDefault(__nccwpck_require__(38705)); - -var _CreateGcpTargetOutput = _interopRequireDefault(__nccwpck_require__(39108)); - -var _CreateGithubTarget = _interopRequireDefault(__nccwpck_require__(28702)); - -var _CreateGithubTargetOutput = _interopRequireDefault(__nccwpck_require__(6731)); - -var _CreateGlobalSignAtlasTarget = _interopRequireDefault(__nccwpck_require__(45966)); - -var _CreateGlobalSignAtlasTargetOutput = _interopRequireDefault(__nccwpck_require__(315)); - -var _CreateGlobalSignTarget = _interopRequireDefault(__nccwpck_require__(63799)); - -var _CreateGlobalSignTargetOutput = _interopRequireDefault(__nccwpck_require__(41550)); - -var _CreateKey = _interopRequireDefault(__nccwpck_require__(59569)); - -var _CreateKeyOutput = _interopRequireDefault(__nccwpck_require__(92036)); - -var _CreateLdapTarget = _interopRequireDefault(__nccwpck_require__(34660)); - -var _CreateLdapTargetOutput = _interopRequireDefault(__nccwpck_require__(24309)); - -var _CreateLinkedTarget = _interopRequireDefault(__nccwpck_require__(91736)); - -var _CreateLinkedTargetOutput = _interopRequireDefault(__nccwpck_require__(45297)); - -var _CreateNativeK8STarget = _interopRequireDefault(__nccwpck_require__(36798)); - -var _CreateNativeK8STargetOutput = _interopRequireDefault(__nccwpck_require__(15947)); - -var _CreatePKICertIssuer = _interopRequireDefault(__nccwpck_require__(10515)); - -var _CreatePKICertIssuerOutput = _interopRequireDefault(__nccwpck_require__(70178)); - -var _CreatePingTarget = _interopRequireDefault(__nccwpck_require__(17729)); - -var _CreatePingTargetOutput = _interopRequireDefault(__nccwpck_require__(83860)); - -var _CreateRabbitMQTarget = _interopRequireDefault(__nccwpck_require__(28099)); - -var _CreateRabbitMQTargetOutput = _interopRequireDefault(__nccwpck_require__(64274)); - -var _CreateRole = _interopRequireDefault(__nccwpck_require__(36904)); - -var _CreateRoleAuthMethodAssocOutput = _interopRequireDefault(__nccwpck_require__(41569)); - -var _CreateRotatedSecret = _interopRequireDefault(__nccwpck_require__(25203)); - -var _CreateRotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(89634)); - -var _CreateSSHCertIssuer = _interopRequireDefault(__nccwpck_require__(1985)); - -var _CreateSSHCertIssuerOutput = _interopRequireDefault(__nccwpck_require__(84148)); - -var _CreateSSHTarget = _interopRequireDefault(__nccwpck_require__(70101)); - -var _CreateSSHTargetOutput = _interopRequireDefault(__nccwpck_require__(98560)); - -var _CreateSalesforceTarget = _interopRequireDefault(__nccwpck_require__(89382)); - -var _CreateSalesforceTargetOutput = _interopRequireDefault(__nccwpck_require__(63395)); - -var _CreateSecret = _interopRequireDefault(__nccwpck_require__(48156)); - -var _CreateSecretOutput = _interopRequireDefault(__nccwpck_require__(2397)); - -var _CreateTargetItemAssocOutput = _interopRequireDefault(__nccwpck_require__(24022)); - -var _CreateTokenizer = _interopRequireDefault(__nccwpck_require__(85747)); - -var _CreateTokenizerOutput = _interopRequireDefault(__nccwpck_require__(77602)); - -var _CreateWebTarget = _interopRequireDefault(__nccwpck_require__(95805)); - -var _CreateWebTargetOutput = _interopRequireDefault(__nccwpck_require__(38200)); - -var _CreateWindowsTarget = _interopRequireDefault(__nccwpck_require__(61054)); - -var _CreateWindowsTargetOutput = _interopRequireDefault(__nccwpck_require__(76267)); - -var _CreateZeroSSLTarget = _interopRequireDefault(__nccwpck_require__(84899)); - -var _CreateZeroSSLTargetOutput = _interopRequireDefault(__nccwpck_require__(43026)); - -var _CustomTargetDetails = _interopRequireDefault(__nccwpck_require__(70142)); - -var _CustomerFragment = _interopRequireDefault(__nccwpck_require__(21240)); - -var _CustomerFragmentsJson = _interopRequireDefault(__nccwpck_require__(45149)); - -var _CustomerFullAddress = _interopRequireDefault(__nccwpck_require__(37009)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -var _DataProtectionSection = _interopRequireDefault(__nccwpck_require__(2116)); - -var _DatadogForwardingConfig = _interopRequireDefault(__nccwpck_require__(26413)); - -var _DbTargetDetails = _interopRequireDefault(__nccwpck_require__(33853)); - -var _Decrypt = _interopRequireDefault(__nccwpck_require__(25823)); - -var _DecryptFile = _interopRequireDefault(__nccwpck_require__(88873)); - -var _DecryptFileOutput = _interopRequireDefault(__nccwpck_require__(35180)); - -var _DecryptGPG = _interopRequireDefault(__nccwpck_require__(61391)); - -var _DecryptGPGOutput = _interopRequireDefault(__nccwpck_require__(64758)); - -var _DecryptOutput = _interopRequireDefault(__nccwpck_require__(88134)); - -var _DecryptPKCS = _interopRequireDefault(__nccwpck_require__(61013)); - -var _DecryptPKCS1Output = _interopRequireDefault(__nccwpck_require__(88320)); - -var _DecryptWithClassicKey = _interopRequireDefault(__nccwpck_require__(90932)); - -var _DecryptWithClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(48133)); - -var _DefaultConfigPart = _interopRequireDefault(__nccwpck_require__(12332)); - -var _DeleteAuthMethod = _interopRequireDefault(__nccwpck_require__(63388)); - -var _DeleteAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(85245)); - -var _DeleteAuthMethods = _interopRequireDefault(__nccwpck_require__(10611)); - -var _DeleteAuthMethodsOutput = _interopRequireDefault(__nccwpck_require__(76162)); - -var _DeleteEventForwarder = _interopRequireDefault(__nccwpck_require__(85877)); - -var _DeleteGatewayAllowedAccessId = _interopRequireDefault(__nccwpck_require__(36438)); - -var _DeleteGwCluster = _interopRequireDefault(__nccwpck_require__(74979)); - -var _DeleteItem = _interopRequireDefault(__nccwpck_require__(55440)); - -var _DeleteItemOutput = _interopRequireDefault(__nccwpck_require__(44409)); - -var _DeleteItems = _interopRequireDefault(__nccwpck_require__(83663)); - -var _DeleteItemsOutput = _interopRequireDefault(__nccwpck_require__(79478)); - -var _DeleteRole = _interopRequireDefault(__nccwpck_require__(13059)); - -var _DeleteRoleAssociation = _interopRequireDefault(__nccwpck_require__(56192)); - -var _DeleteRoleRule = _interopRequireDefault(__nccwpck_require__(99117)); - -var _DeleteRoleRuleOutput = _interopRequireDefault(__nccwpck_require__(98120)); - -var _DeleteRoles = _interopRequireDefault(__nccwpck_require__(49222)); - -var _DeleteTarget = _interopRequireDefault(__nccwpck_require__(93094)); - -var _DeleteTargetAssociation = _interopRequireDefault(__nccwpck_require__(36747)); - -var _DeleteTargets = _interopRequireDefault(__nccwpck_require__(22509)); - -var _DeriveKey = _interopRequireDefault(__nccwpck_require__(69284)); - -var _DeriveKeyOutput = _interopRequireDefault(__nccwpck_require__(4117)); - -var _DescribeAssoc = _interopRequireDefault(__nccwpck_require__(80258)); - -var _DescribeItem = _interopRequireDefault(__nccwpck_require__(96290)); - -var _DescribePermissions = _interopRequireDefault(__nccwpck_require__(5013)); - -var _DescribePermissionsOutput = _interopRequireDefault(__nccwpck_require__(88032)); - -var _DescribeSubClaims = _interopRequireDefault(__nccwpck_require__(57046)); - -var _DescribeSubClaimsOutput = _interopRequireDefault(__nccwpck_require__(15891)); - -var _Detokenize = _interopRequireDefault(__nccwpck_require__(97122)); - -var _DetokenizeOutput = _interopRequireDefault(__nccwpck_require__(84807)); - -var _DockerhubTargetDetails = _interopRequireDefault(__nccwpck_require__(57844)); - -var _DynamicSecretProducerInfo = _interopRequireDefault(__nccwpck_require__(98109)); - -var _EKSTargetDetails = _interopRequireDefault(__nccwpck_require__(18422)); - -var _ElasticsearchLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(15078)); - -var _EmailEntry = _interopRequireDefault(__nccwpck_require__(30864)); - -var _EmailPassAccessRules = _interopRequireDefault(__nccwpck_require__(42046)); - -var _EmailTokenizerInfo = _interopRequireDefault(__nccwpck_require__(41957)); - -var _Encrypt = _interopRequireDefault(__nccwpck_require__(24155)); - -var _EncryptFile = _interopRequireDefault(__nccwpck_require__(3949)); - -var _EncryptFileOutput = _interopRequireDefault(__nccwpck_require__(87112)); - -var _EncryptGPG = _interopRequireDefault(__nccwpck_require__(81299)); - -var _EncryptGPGOutput = _interopRequireDefault(__nccwpck_require__(71906)); - -var _EncryptOutput = _interopRequireDefault(__nccwpck_require__(74426)); - -var _EncryptWithClassicKey = _interopRequireDefault(__nccwpck_require__(80064)); - -var _EncryptWithClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(29257)); - -var _EsmCreate = _interopRequireDefault(__nccwpck_require__(69101)); - -var _EsmCreateSecretOutput = _interopRequireDefault(__nccwpck_require__(37808)); - -var _EsmDelete = _interopRequireDefault(__nccwpck_require__(26602)); - -var _EsmDeleteSecretOutput = _interopRequireDefault(__nccwpck_require__(99707)); - -var _EsmGet = _interopRequireDefault(__nccwpck_require__(1541)); - -var _EsmGetSecretOutput = _interopRequireDefault(__nccwpck_require__(13496)); - -var _EsmList = _interopRequireDefault(__nccwpck_require__(59317)); - -var _EsmListSecretsOutput = _interopRequireDefault(__nccwpck_require__(63233)); - -var _EsmUpdate = _interopRequireDefault(__nccwpck_require__(29564)); - -var _EsmUpdateSecretOutput = _interopRequireDefault(__nccwpck_require__(45309)); - -var _EventAction = _interopRequireDefault(__nccwpck_require__(73404)); - -var _ExportClassicKey = _interopRequireDefault(__nccwpck_require__(91005)); - -var _ExportClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(52248)); - -var _Extension = _interopRequireDefault(__nccwpck_require__(30079)); - -var _ExternalKMSKeyId = _interopRequireDefault(__nccwpck_require__(80238)); - -var _GCPAccessRules = _interopRequireDefault(__nccwpck_require__(94515)); - -var _GCPPayload = _interopRequireDefault(__nccwpck_require__(15080)); - -var _GCPSecretsMigration = _interopRequireDefault(__nccwpck_require__(40859)); - -var _GKETargetDetails = _interopRequireDefault(__nccwpck_require__(13006)); - -var _GatewayBasicInfo = _interopRequireDefault(__nccwpck_require__(27208)); - -var _GatewayCreateAllowedAccess = _interopRequireDefault(__nccwpck_require__(17300)); - -var _GatewayCreateK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(30862)); - -var _GatewayCreateK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(38267)); - -var _GatewayCreateMigration = _interopRequireDefault(__nccwpck_require__(23658)); - -var _GatewayCreateProducerArtifactory = _interopRequireDefault(__nccwpck_require__(41510)); - -var _GatewayCreateProducerArtifactoryOutput = _interopRequireDefault(__nccwpck_require__(55523)); - -var _GatewayCreateProducerAws = _interopRequireDefault(__nccwpck_require__(45677)); - -var _GatewayCreateProducerAwsOutput = _interopRequireDefault(__nccwpck_require__(98248)); - -var _GatewayCreateProducerAzure = _interopRequireDefault(__nccwpck_require__(84283)); - -var _GatewayCreateProducerAzureOutput = _interopRequireDefault(__nccwpck_require__(35770)); - -var _GatewayCreateProducerCassandra = _interopRequireDefault(__nccwpck_require__(53266)); - -var _GatewayCreateProducerCassandraOutput = _interopRequireDefault(__nccwpck_require__(43031)); - -var _GatewayCreateProducerCertificateAutomation = _interopRequireDefault(__nccwpck_require__(45608)); - -var _GatewayCreateProducerCertificateAutomationOutput = _interopRequireDefault(__nccwpck_require__(3137)); - -var _GatewayCreateProducerChef = _interopRequireDefault(__nccwpck_require__(81410)); - -var _GatewayCreateProducerChefOutput = _interopRequireDefault(__nccwpck_require__(74951)); - -var _GatewayCreateProducerCustom = _interopRequireDefault(__nccwpck_require__(91173)); - -var _GatewayCreateProducerCustomOutput = _interopRequireDefault(__nccwpck_require__(24592)); - -var _GatewayCreateProducerDockerhub = _interopRequireDefault(__nccwpck_require__(3207)); - -var _GatewayCreateProducerDockerhubOutput = _interopRequireDefault(__nccwpck_require__(89470)); - -var _GatewayCreateProducerEks = _interopRequireDefault(__nccwpck_require__(82045)); - -var _GatewayCreateProducerEksOutput = _interopRequireDefault(__nccwpck_require__(93688)); - -var _GatewayCreateProducerGcp = _interopRequireDefault(__nccwpck_require__(19050)); - -var _GatewayCreateProducerGcpOutput = _interopRequireDefault(__nccwpck_require__(4767)); - -var _GatewayCreateProducerGithub = _interopRequireDefault(__nccwpck_require__(15521)); - -var _GatewayCreateProducerGithubOutput = _interopRequireDefault(__nccwpck_require__(67988)); - -var _GatewayCreateProducerGke = _interopRequireDefault(__nccwpck_require__(43341)); - -var _GatewayCreateProducerGkeOutput = _interopRequireDefault(__nccwpck_require__(12136)); - -var _GatewayCreateProducerHanaDb = _interopRequireDefault(__nccwpck_require__(77662)); - -var _GatewayCreateProducerHanaDbOutput = _interopRequireDefault(__nccwpck_require__(69707)); - -var _GatewayCreateProducerLdap = _interopRequireDefault(__nccwpck_require__(74815)); - -var _GatewayCreateProducerLdapOutput = _interopRequireDefault(__nccwpck_require__(53382)); - -var _GatewayCreateProducerMSSQL = _interopRequireDefault(__nccwpck_require__(91036)); - -var _GatewayCreateProducerMSSQLOutput = _interopRequireDefault(__nccwpck_require__(91709)); - -var _GatewayCreateProducerMongo = _interopRequireDefault(__nccwpck_require__(84176)); - -var _GatewayCreateProducerMongoOutput = _interopRequireDefault(__nccwpck_require__(27257)); - -var _GatewayCreateProducerMySQL = _interopRequireDefault(__nccwpck_require__(20490)); - -var _GatewayCreateProducerMySQLOutput = _interopRequireDefault(__nccwpck_require__(37983)); - -var _GatewayCreateProducerNativeK8S = _interopRequireDefault(__nccwpck_require__(50589)); - -var _GatewayCreateProducerNativeK8SOutput = _interopRequireDefault(__nccwpck_require__(4408)); - -var _GatewayCreateProducerOracleDb = _interopRequireDefault(__nccwpck_require__(11382)); - -var _GatewayCreateProducerOracleDbOutput = _interopRequireDefault(__nccwpck_require__(92499)); - -var _GatewayCreateProducerPing = _interopRequireDefault(__nccwpck_require__(29262)); - -var _GatewayCreateProducerPingOutput = _interopRequireDefault(__nccwpck_require__(7579)); - -var _GatewayCreateProducerPostgreSQL = _interopRequireDefault(__nccwpck_require__(42452)); - -var _GatewayCreateProducerPostgreSQLOutput = _interopRequireDefault(__nccwpck_require__(84613)); - -var _GatewayCreateProducerRabbitMQ = _interopRequireDefault(__nccwpck_require__(57964)); - -var _GatewayCreateProducerRabbitMQOutput = _interopRequireDefault(__nccwpck_require__(57357)); - -var _GatewayCreateProducerRdp = _interopRequireDefault(__nccwpck_require__(40686)); - -var _GatewayCreateProducerRdpOutput = _interopRequireDefault(__nccwpck_require__(1915)); - -var _GatewayCreateProducerRedis = _interopRequireDefault(__nccwpck_require__(30759)); - -var _GatewayCreateProducerRedisOutput = _interopRequireDefault(__nccwpck_require__(69950)); - -var _GatewayCreateProducerRedshift = _interopRequireDefault(__nccwpck_require__(84307)); - -var _GatewayCreateProducerRedshiftOutput = _interopRequireDefault(__nccwpck_require__(51074)); - -var _GatewayCreateProducerSnowflake = _interopRequireDefault(__nccwpck_require__(59024)); - -var _GatewayCreateProducerSnowflakeOutput = _interopRequireDefault(__nccwpck_require__(35609)); - -var _GatewayDeleteAllowedAccess = _interopRequireDefault(__nccwpck_require__(99401)); - -var _GatewayDeleteAllowedAccessOutput = _interopRequireDefault(__nccwpck_require__(98572)); - -var _GatewayDeleteK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(48163)); - -var _GatewayDeleteK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(3506)); - -var _GatewayDeleteMigration = _interopRequireDefault(__nccwpck_require__(92895)); - -var _GatewayDeleteProducer = _interopRequireDefault(__nccwpck_require__(24177)); - -var _GatewayDeleteProducerOutput = _interopRequireDefault(__nccwpck_require__(31236)); - -var _GatewayDownloadCustomerFragments = _interopRequireDefault(__nccwpck_require__(70355)); - -var _GatewayDownloadCustomerFragmentsOutput = _interopRequireDefault(__nccwpck_require__(62210)); - -var _GatewayGetAllowedAccess = _interopRequireDefault(__nccwpck_require__(99262)); - -var _GatewayGetConfig = _interopRequireDefault(__nccwpck_require__(16048)); - -var _GatewayGetK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(12748)); - -var _GatewayGetK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(5645)); - -var _GatewayGetLdapAuthConfig = _interopRequireDefault(__nccwpck_require__(3495)); - -var _GatewayGetLdapAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(79454)); - -var _GatewayGetMigration = _interopRequireDefault(__nccwpck_require__(41484)); - -var _GatewayGetProducer = _interopRequireDefault(__nccwpck_require__(51523)); - -var _GatewayGetTmpUsers = _interopRequireDefault(__nccwpck_require__(70701)); - -var _GatewayListMigration = _interopRequireDefault(__nccwpck_require__(2946)); - -var _GatewayListProducers = _interopRequireDefault(__nccwpck_require__(92425)); - -var _GatewayListRotatedSecrets = _interopRequireDefault(__nccwpck_require__(74718)); - -var _GatewayMessageQueueInfo = _interopRequireDefault(__nccwpck_require__(78626)); - -var _GatewayMigratePersonalItems = _interopRequireDefault(__nccwpck_require__(22791)); - -var _GatewayMigratePersonalItemsOutput = _interopRequireDefault(__nccwpck_require__(70462)); - -var _GatewayMigrationCreateOutput = _interopRequireDefault(__nccwpck_require__(19863)); - -var _GatewayMigrationDeleteOutput = _interopRequireDefault(__nccwpck_require__(16996)); - -var _GatewayMigrationGetOutput = _interopRequireDefault(__nccwpck_require__(90097)); - -var _GatewayMigrationListOutput = _interopRequireDefault(__nccwpck_require__(80859)); - -var _GatewayMigrationSyncOutput = _interopRequireDefault(__nccwpck_require__(10052)); - -var _GatewayMigrationUpdateOutput = _interopRequireDefault(__nccwpck_require__(90294)); - -var _GatewayRevokeTmpUsers = _interopRequireDefault(__nccwpck_require__(20353)); - -var _GatewayStartProducer = _interopRequireDefault(__nccwpck_require__(81196)); - -var _GatewayStartProducerOutput = _interopRequireDefault(__nccwpck_require__(66477)); - -var _GatewayStatusMigration = _interopRequireDefault(__nccwpck_require__(32708)); - -var _GatewayStopProducer = _interopRequireDefault(__nccwpck_require__(55242)); - -var _GatewayStopProducerOutput = _interopRequireDefault(__nccwpck_require__(74239)); - -var _GatewaySyncMigration = _interopRequireDefault(__nccwpck_require__(93147)); - -var _GatewayUpdateAllowedAccess = _interopRequireDefault(__nccwpck_require__(60395)); - -var _GatewayUpdateItem = _interopRequireDefault(__nccwpck_require__(88678)); - -var _GatewayUpdateItemOutput = _interopRequireDefault(__nccwpck_require__(11235)); - -var _GatewayUpdateK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(88681)); - -var _GatewayUpdateK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(74380)); - -var _GatewayUpdateLdapAuthConfig = _interopRequireDefault(__nccwpck_require__(36544)); - -var _GatewayUpdateLdapAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(20489)); - -var _GatewayUpdateMigration = _interopRequireDefault(__nccwpck_require__(22313)); - -var _GatewayUpdateProducerArtifactory = _interopRequireDefault(__nccwpck_require__(72781)); - -var _GatewayUpdateProducerArtifactoryOutput = _interopRequireDefault(__nccwpck_require__(92424)); - -var _GatewayUpdateProducerAws = _interopRequireDefault(__nccwpck_require__(2334)); - -var _GatewayUpdateProducerAwsOutput = _interopRequireDefault(__nccwpck_require__(55019)); - -var _GatewayUpdateProducerAzure = _interopRequireDefault(__nccwpck_require__(97644)); - -var _GatewayUpdateProducerAzureOutput = _interopRequireDefault(__nccwpck_require__(97773)); - -var _GatewayUpdateProducerCassandra = _interopRequireDefault(__nccwpck_require__(82093)); - -var _GatewayUpdateProducerCassandraOutput = _interopRequireDefault(__nccwpck_require__(4328)); - -var _GatewayUpdateProducerCertificateAutomation = _interopRequireDefault(__nccwpck_require__(2471)); - -var _GatewayUpdateProducerCertificateAutomationOutput = _interopRequireDefault(__nccwpck_require__(66398)); - -var _GatewayUpdateProducerChef = _interopRequireDefault(__nccwpck_require__(98899)); - -var _GatewayUpdateProducerChefOutput = _interopRequireDefault(__nccwpck_require__(85442)); - -var _GatewayUpdateProducerCustom = _interopRequireDefault(__nccwpck_require__(40320)); - -var _GatewayUpdateProducerCustomOutput = _interopRequireDefault(__nccwpck_require__(28777)); - -var _GatewayUpdateProducerDockerhub = _interopRequireDefault(__nccwpck_require__(63280)); - -var _GatewayUpdateProducerDockerhubOutput = _interopRequireDefault(__nccwpck_require__(14201)); - -var _GatewayUpdateProducerEks = _interopRequireDefault(__nccwpck_require__(32382)); - -var _GatewayUpdateProducerEksOutput = _interopRequireDefault(__nccwpck_require__(11115)); - -var _GatewayUpdateProducerGcp = _interopRequireDefault(__nccwpck_require__(20241)); - -var _GatewayUpdateProducerGcpOutput = _interopRequireDefault(__nccwpck_require__(75972)); - -var _GatewayUpdateProducerGithub = _interopRequireDefault(__nccwpck_require__(92212)); - -var _GatewayUpdateProducerGithubOutput = _interopRequireDefault(__nccwpck_require__(86213)); - -var _GatewayUpdateProducerGke = _interopRequireDefault(__nccwpck_require__(25062)); - -var _GatewayUpdateProducerGkeOutput = _interopRequireDefault(__nccwpck_require__(46467)); - -var _GatewayUpdateProducerHanaDb = _interopRequireDefault(__nccwpck_require__(88599)); - -var _GatewayUpdateProducerHanaDbOutput = _interopRequireDefault(__nccwpck_require__(44014)); - -var _GatewayUpdateProducerLdap = _interopRequireDefault(__nccwpck_require__(65026)); - -var _GatewayUpdateProducerLdapOutput = _interopRequireDefault(__nccwpck_require__(45863)); - -var _GatewayUpdateProducerMSSQL = _interopRequireDefault(__nccwpck_require__(43407)); - -var _GatewayUpdateProducerMSSQLOutput = _interopRequireDefault(__nccwpck_require__(8726)); - -var _GatewayUpdateProducerMongo = _interopRequireDefault(__nccwpck_require__(24975)); - -var _GatewayUpdateProducerMongoOutput = _interopRequireDefault(__nccwpck_require__(38390)); - -var _GatewayUpdateProducerMySQL = _interopRequireDefault(__nccwpck_require__(50937)); - -var _GatewayUpdateProducerMySQLOutput = _interopRequireDefault(__nccwpck_require__(7548)); - -var _GatewayUpdateProducerNativeK8S = _interopRequireDefault(__nccwpck_require__(47170)); - -var _GatewayUpdateProducerNativeK8SOutput = _interopRequireDefault(__nccwpck_require__(80839)); - -var _GatewayUpdateProducerOracleDb = _interopRequireDefault(__nccwpck_require__(9399)); - -var _GatewayUpdateProducerOracleDbOutput = _interopRequireDefault(__nccwpck_require__(97550)); - -var _GatewayUpdateProducerPing = _interopRequireDefault(__nccwpck_require__(2311)); - -var _GatewayUpdateProducerPingOutput = _interopRequireDefault(__nccwpck_require__(82046)); - -var _GatewayUpdateProducerPostgreSQL = _interopRequireDefault(__nccwpck_require__(42517)); - -var _GatewayUpdateProducerPostgreSQLOutput = _interopRequireDefault(__nccwpck_require__(41024)); - -var _GatewayUpdateProducerRabbitMQ = _interopRequireDefault(__nccwpck_require__(70229)); - -var _GatewayUpdateProducerRabbitMQOutput = _interopRequireDefault(__nccwpck_require__(13216)); - -var _GatewayUpdateProducerRdp = _interopRequireDefault(__nccwpck_require__(47813)); - -var _GatewayUpdateProducerRdpOutput = _interopRequireDefault(__nccwpck_require__(73488)); - -var _GatewayUpdateProducerRedis = _interopRequireDefault(__nccwpck_require__(75080)); - -var _GatewayUpdateProducerRedisOutput = _interopRequireDefault(__nccwpck_require__(79073)); - -var _GatewayUpdateProducerRedshift = _interopRequireDefault(__nccwpck_require__(73230)); - -var _GatewayUpdateProducerRedshiftOutput = _interopRequireDefault(__nccwpck_require__(50171)); - -var _GatewayUpdateProducerSnowflake = _interopRequireDefault(__nccwpck_require__(92043)); - -var _GatewayUpdateProducerSnowflakeOutput = _interopRequireDefault(__nccwpck_require__(78122)); - -var _GatewayUpdateTlsCert = _interopRequireDefault(__nccwpck_require__(89886)); - -var _GatewayUpdateTlsCertOutput = _interopRequireDefault(__nccwpck_require__(49259)); - -var _GatewayUpdateTmpUsers = _interopRequireDefault(__nccwpck_require__(98074)); - -var _GatewaysListResponse = _interopRequireDefault(__nccwpck_require__(34840)); - -var _GcpTargetDetails = _interopRequireDefault(__nccwpck_require__(83083)); - -var _GenCustomerFragment = _interopRequireDefault(__nccwpck_require__(26628)); - -var _GeneralConfigPart = _interopRequireDefault(__nccwpck_require__(94565)); - -var _GenerateCsr = _interopRequireDefault(__nccwpck_require__(87627)); - -var _GenerateCsrOutput = _interopRequireDefault(__nccwpck_require__(85130)); - -var _GetAccountSettings = _interopRequireDefault(__nccwpck_require__(46150)); - -var _GetAccountSettingsCommandOutput = _interopRequireDefault(__nccwpck_require__(61968)); - -var _GetAuthMethod = _interopRequireDefault(__nccwpck_require__(19101)); - -var _GetCertificateValue = _interopRequireDefault(__nccwpck_require__(25574)); - -var _GetCertificateValueOutput = _interopRequireDefault(__nccwpck_require__(54819)); - -var _GetDynamicSecretValue = _interopRequireDefault(__nccwpck_require__(17840)); - -var _GetEventForwarder = _interopRequireDefault(__nccwpck_require__(7183)); - -var _GetEventForwarderOutput = _interopRequireDefault(__nccwpck_require__(31549)); - -var _GetKubeExecCreds = _interopRequireDefault(__nccwpck_require__(48313)); - -var _GetKubeExecCredsOutput = _interopRequireDefault(__nccwpck_require__(31740)); - -var _GetPKICertificate = _interopRequireDefault(__nccwpck_require__(8453)); - -var _GetPKICertificateOutput = _interopRequireDefault(__nccwpck_require__(1840)); - -var _GetProducersListReplyObj = _interopRequireDefault(__nccwpck_require__(43282)); - -var _GetRSAPublic = _interopRequireDefault(__nccwpck_require__(4599)); - -var _GetRSAPublicOutput = _interopRequireDefault(__nccwpck_require__(71534)); - -var _GetRole = _interopRequireDefault(__nccwpck_require__(19262)); - -var _GetRotatedSecretValue = _interopRequireDefault(__nccwpck_require__(14948)); - -var _GetSSHCertificate = _interopRequireDefault(__nccwpck_require__(95215)); - -var _GetSSHCertificateOutput = _interopRequireDefault(__nccwpck_require__(94518)); - -var _GetSecretValue = _interopRequireDefault(__nccwpck_require__(24725)); - -var _GetTags = _interopRequireDefault(__nccwpck_require__(26075)); - -var _GetTarget = _interopRequireDefault(__nccwpck_require__(51395)); - -var _GetTargetDetails = _interopRequireDefault(__nccwpck_require__(48741)); - -var _GetTargetDetailsOutput = _interopRequireDefault(__nccwpck_require__(69392)); - -var _GithubTargetDetails = _interopRequireDefault(__nccwpck_require__(46870)); - -var _GlobalSignAtlasTargetDetails = _interopRequireDefault(__nccwpck_require__(77606)); - -var _GlobalSignGCCTargetDetails = _interopRequireDefault(__nccwpck_require__(4150)); - -var _GoogleChronicleForwardingConfig = _interopRequireDefault(__nccwpck_require__(36479)); - -var _GwClusterIdentity = _interopRequireDefault(__nccwpck_require__(73728)); - -var _HashiMigration = _interopRequireDefault(__nccwpck_require__(16157)); - -var _HashiPayload = _interopRequireDefault(__nccwpck_require__(2703)); - -var _Hmac = _interopRequireDefault(__nccwpck_require__(9727)); - -var _HmacOutput = _interopRequireDefault(__nccwpck_require__(67718)); - -var _HuaweiAccessRules = _interopRequireDefault(__nccwpck_require__(59348)); - -var _ImportPasswords = _interopRequireDefault(__nccwpck_require__(76407)); - -var _ImportPasswordsOutput = _interopRequireDefault(__nccwpck_require__(8494)); - -var _ImporterInfo = _interopRequireDefault(__nccwpck_require__(9586)); - -var _Item = _interopRequireDefault(__nccwpck_require__(23711)); - -var _ItemGeneralInfo = _interopRequireDefault(__nccwpck_require__(5427)); - -var _ItemTargetAssociation = _interopRequireDefault(__nccwpck_require__(24223)); - -var _ItemVersion = _interopRequireDefault(__nccwpck_require__(71931)); - -var _JSONError = _interopRequireDefault(__nccwpck_require__(39994)); - -var _K8SAuth = _interopRequireDefault(__nccwpck_require__(12684)); - -var _K8SAuthsConfigLastChange = _interopRequireDefault(__nccwpck_require__(2421)); - -var _K8SAuthsConfigPart = _interopRequireDefault(__nccwpck_require__(37768)); - -var _K8SMigration = _interopRequireDefault(__nccwpck_require__(79488)); - -var _K8SPayload = _interopRequireDefault(__nccwpck_require__(25334)); - -var _KMIPClient = _interopRequireDefault(__nccwpck_require__(71178)); - -var _KMIPClientGetResponse = _interopRequireDefault(__nccwpck_require__(13983)); - -var _KMIPClientListResponse = _interopRequireDefault(__nccwpck_require__(22033)); - -var _KMIPClientUpdateResponse = _interopRequireDefault(__nccwpck_require__(83564)); - -var _KMIPConfigPart = _interopRequireDefault(__nccwpck_require__(90506)); - -var _KMIPEnvironmentCreateResponse = _interopRequireDefault(__nccwpck_require__(48931)); - -var _KMIPServer = _interopRequireDefault(__nccwpck_require__(60094)); - -var _KmipClientDeleteRule = _interopRequireDefault(__nccwpck_require__(88039)); - -var _KmipClientSetRule = _interopRequireDefault(__nccwpck_require__(55778)); - -var _KmipCreateClient = _interopRequireDefault(__nccwpck_require__(59390)); - -var _KmipCreateClientOutput = _interopRequireDefault(__nccwpck_require__(17387)); - -var _KmipDeleteClient = _interopRequireDefault(__nccwpck_require__(14353)); - -var _KmipDeleteServer = _interopRequireDefault(__nccwpck_require__(23205)); - -var _KmipDescribeClient = _interopRequireDefault(__nccwpck_require__(58003)); - -var _KmipDescribeServer = _interopRequireDefault(__nccwpck_require__(63487)); - -var _KmipDescribeServerOutput = _interopRequireDefault(__nccwpck_require__(28038)); - -var _KmipListClients = _interopRequireDefault(__nccwpck_require__(37829)); - -var _KmipMoveServer = _interopRequireDefault(__nccwpck_require__(61411)); - -var _KmipMoveServerOutput = _interopRequireDefault(__nccwpck_require__(23954)); - -var _KmipRenewClientCertificate = _interopRequireDefault(__nccwpck_require__(67724)); - -var _KmipRenewClientCertificateOutput = _interopRequireDefault(__nccwpck_require__(52557)); - -var _KmipRenewServerCertificate = _interopRequireDefault(__nccwpck_require__(97536)); - -var _KmipRenewServerCertificateOutput = _interopRequireDefault(__nccwpck_require__(96809)); - -var _KmipServerSetup = _interopRequireDefault(__nccwpck_require__(54249)); - -var _KmipSetServerState = _interopRequireDefault(__nccwpck_require__(87265)); - -var _KmipSetServerStateOutput = _interopRequireDefault(__nccwpck_require__(9044)); - -var _KubernetesAccessRules = _interopRequireDefault(__nccwpck_require__(71267)); - -var _LDAPAccessRules = _interopRequireDefault(__nccwpck_require__(86012)); - -var _LastConfigChange = _interopRequireDefault(__nccwpck_require__(48174)); - -var _LastStatusInfo = _interopRequireDefault(__nccwpck_require__(12778)); - -var _LdapConfigPart = _interopRequireDefault(__nccwpck_require__(2846)); - -var _LdapTargetDetails = _interopRequireDefault(__nccwpck_require__(11780)); - -var _LeadershipConfigPart = _interopRequireDefault(__nccwpck_require__(25900)); - -var _LinkedDetails = _interopRequireDefault(__nccwpck_require__(33863)); - -var _LinkedTargetDetails = _interopRequireDefault(__nccwpck_require__(35968)); - -var _ListAuthMethods = _interopRequireDefault(__nccwpck_require__(60486)); - -var _ListAuthMethodsOutput = _interopRequireDefault(__nccwpck_require__(8995)); - -var _ListGateways = _interopRequireDefault(__nccwpck_require__(91099)); - -var _ListItems = _interopRequireDefault(__nccwpck_require__(27410)); - -var _ListItemsInPathOutput = _interopRequireDefault(__nccwpck_require__(423)); - -var _ListItemsOutput = _interopRequireDefault(__nccwpck_require__(41751)); - -var _ListRoles = _interopRequireDefault(__nccwpck_require__(7007)); - -var _ListRolesOutput = _interopRequireDefault(__nccwpck_require__(65702)); - -var _ListSRABastions = _interopRequireDefault(__nccwpck_require__(59255)); - -var _ListSharedItems = _interopRequireDefault(__nccwpck_require__(90349)); - -var _ListTargets = _interopRequireDefault(__nccwpck_require__(97640)); - -var _ListTargetsOutput = _interopRequireDefault(__nccwpck_require__(52161)); - -var _LogForwardingConfigPart = _interopRequireDefault(__nccwpck_require__(65736)); - -var _LogstashLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(35480)); - -var _LogzIoLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(8725)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); - -var _MigrationItems = _interopRequireDefault(__nccwpck_require__(84208)); - -var _MigrationStatus = _interopRequireDefault(__nccwpck_require__(97664)); - -var _MigrationStatusReplyObj = _interopRequireDefault(__nccwpck_require__(95821)); - -var _MigrationsConfigLastChange = _interopRequireDefault(__nccwpck_require__(66135)); - -var _MigrationsConfigPart = _interopRequireDefault(__nccwpck_require__(27734)); - -var _MockMigration = _interopRequireDefault(__nccwpck_require__(33516)); - -var _MockPayload = _interopRequireDefault(__nccwpck_require__(47698)); - -var _MongoDBTargetDetails = _interopRequireDefault(__nccwpck_require__(57731)); - -var _MoveObjects = _interopRequireDefault(__nccwpck_require__(3781)); - -var _Name = _interopRequireDefault(__nccwpck_require__(65739)); - -var _NativeK8sTargetDetails = _interopRequireDefault(__nccwpck_require__(80406)); - -var _NotiForwarder = _interopRequireDefault(__nccwpck_require__(21724)); - -var _OAuth2AccessRules = _interopRequireDefault(__nccwpck_require__(63338)); - -var _OAuth2CustomClaim = _interopRequireDefault(__nccwpck_require__(41338)); - -var _OIDCAccessRules = _interopRequireDefault(__nccwpck_require__(53344)); - -var _OIDCCustomClaim = _interopRequireDefault(__nccwpck_require__(87440)); - -var _ObjectVersionSettingsOutput = _interopRequireDefault(__nccwpck_require__(82163)); - -var _OidcClientInfo = _interopRequireDefault(__nccwpck_require__(2338)); - -var _OnePasswordMigration = _interopRequireDefault(__nccwpck_require__(99171)); - -var _OnePasswordPayload = _interopRequireDefault(__nccwpck_require__(75617)); - -var _PKICertificateIssueDetails = _interopRequireDefault(__nccwpck_require__(16540)); - -var _PasswordPolicyInfo = _interopRequireDefault(__nccwpck_require__(34827)); - -var _PathRule = _interopRequireDefault(__nccwpck_require__(10929)); - -var _PingTargetDetails = _interopRequireDefault(__nccwpck_require__(18619)); - -var _Producer = _interopRequireDefault(__nccwpck_require__(11490)); - -var _ProducersConfigPart = _interopRequireDefault(__nccwpck_require__(24318)); - -var _RabbitMQTargetDetails = _interopRequireDefault(__nccwpck_require__(78325)); - -var _RawCreds = _interopRequireDefault(__nccwpck_require__(18791)); - -var _RefreshKey = _interopRequireDefault(__nccwpck_require__(94978)); - -var _RefreshKeyOutput = _interopRequireDefault(__nccwpck_require__(1383)); - -var _RegexpTokenizerInfo = _interopRequireDefault(__nccwpck_require__(38336)); - -var _RequestAccess = _interopRequireDefault(__nccwpck_require__(14565)); - -var _RequestAccessOutput = _interopRequireDefault(__nccwpck_require__(86512)); - -var _RequiredActivity = _interopRequireDefault(__nccwpck_require__(78028)); - -var _ReverseRBAC = _interopRequireDefault(__nccwpck_require__(7820)); - -var _ReverseRBACClient = _interopRequireDefault(__nccwpck_require__(42271)); - -var _ReverseRBACOutput = _interopRequireDefault(__nccwpck_require__(46413)); - -var _RevokeCreds = _interopRequireDefault(__nccwpck_require__(46521)); - -var _Role = _interopRequireDefault(__nccwpck_require__(74264)); - -var _RoleAssociationDetails = _interopRequireDefault(__nccwpck_require__(30915)); - -var _RoleAuthMethodAssociation = _interopRequireDefault(__nccwpck_require__(2372)); - -var _RollbackSecret = _interopRequireDefault(__nccwpck_require__(3200)); - -var _RollbackSecretOutput = _interopRequireDefault(__nccwpck_require__(76745)); - -var _RotateKey = _interopRequireDefault(__nccwpck_require__(77056)); - -var _RotateKeyOutput = _interopRequireDefault(__nccwpck_require__(58153)); - -var _RotateSecret = _interopRequireDefault(__nccwpck_require__(90983)); - -var _RotatedSecretDetailsInfo = _interopRequireDefault(__nccwpck_require__(25957)); - -var _RotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(74226)); - -var _Rotator = _interopRequireDefault(__nccwpck_require__(98559)); - -var _RotatorsConfigPart = _interopRequireDefault(__nccwpck_require__(37665)); - -var _RuleAssigner = _interopRequireDefault(__nccwpck_require__(48396)); - -var _Rules = _interopRequireDefault(__nccwpck_require__(74529)); - -var _SAMLAccessRules = _interopRequireDefault(__nccwpck_require__(25540)); - -var _SAMLAttribute = _interopRequireDefault(__nccwpck_require__(70045)); - -var _SSHCertificateIssueDetails = _interopRequireDefault(__nccwpck_require__(29238)); - -var _SSHTargetDetails = _interopRequireDefault(__nccwpck_require__(615)); - -var _SalesforceTargetDetails = _interopRequireDefault(__nccwpck_require__(48590)); - -var _SecretInfo = _interopRequireDefault(__nccwpck_require__(39800)); - -var _SecureRemoteAccess = _interopRequireDefault(__nccwpck_require__(66513)); - -var _ServerInventoryMigration = _interopRequireDefault(__nccwpck_require__(75499)); - -var _ServerInventoryPayload = _interopRequireDefault(__nccwpck_require__(937)); - -var _SetItemState = _interopRequireDefault(__nccwpck_require__(53920)); - -var _SetRoleRule = _interopRequireDefault(__nccwpck_require__(57460)); - -var _ShareItem = _interopRequireDefault(__nccwpck_require__(21310)); - -var _SharingPolicyInfo = _interopRequireDefault(__nccwpck_require__(78156)); - -var _SignDataWithClassicKey = _interopRequireDefault(__nccwpck_require__(61530)); - -var _SignGPG = _interopRequireDefault(__nccwpck_require__(95289)); - -var _SignGPGOutput = _interopRequireDefault(__nccwpck_require__(72732)); - -var _SignJWTOutput = _interopRequireDefault(__nccwpck_require__(23913)); - -var _SignJWTWithClassicKey = _interopRequireDefault(__nccwpck_require__(32259)); - -var _SignOutput = _interopRequireDefault(__nccwpck_require__(40040)); - -var _SignPKCS = _interopRequireDefault(__nccwpck_require__(5227)); - -var _SignPKCS1Output = _interopRequireDefault(__nccwpck_require__(76138)); - -var _SignPKICertOutput = _interopRequireDefault(__nccwpck_require__(50538)); - -var _SignPKICertWithClassicKey = _interopRequireDefault(__nccwpck_require__(52048)); - -var _SmInfo = _interopRequireDefault(__nccwpck_require__(69132)); - -var _SplunkLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(39760)); - -var _SraInfo = _interopRequireDefault(__nccwpck_require__(85658)); - -var _StaticCredsAuth = _interopRequireDefault(__nccwpck_require__(39307)); - -var _StaticCredsAuthOutput = _interopRequireDefault(__nccwpck_require__(53322)); - -var _StaticSecretDetailsInfo = _interopRequireDefault(__nccwpck_require__(38674)); - -var _SumologicLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(58097)); - -var _SyslogLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(68494)); - -var _SystemAccessCredentialsReplyObj = _interopRequireDefault(__nccwpck_require__(58908)); - -var _SystemAccessCredsSettings = _interopRequireDefault(__nccwpck_require__(36395)); - -var _Target = _interopRequireDefault(__nccwpck_require__(50373)); - -var _TargetItemAssociation = _interopRequireDefault(__nccwpck_require__(78551)); - -var _TargetItemVersion = _interopRequireDefault(__nccwpck_require__(42216)); - -var _TargetTypeDetailsInput = _interopRequireDefault(__nccwpck_require__(6643)); - -var _TmpUserData = _interopRequireDefault(__nccwpck_require__(36764)); - -var _Tokenize = _interopRequireDefault(__nccwpck_require__(43289)); - -var _TokenizeOutput = _interopRequireDefault(__nccwpck_require__(88732)); - -var _TokenizerInfo = _interopRequireDefault(__nccwpck_require__(61767)); - -var _UIDTokenDetails = _interopRequireDefault(__nccwpck_require__(33593)); - -var _UidCreateChildToken = _interopRequireDefault(__nccwpck_require__(35191)); - -var _UidCreateChildTokenOutput = _interopRequireDefault(__nccwpck_require__(25070)); - -var _UidGenerateToken = _interopRequireDefault(__nccwpck_require__(56690)); - -var _UidGenerateTokenOutput = _interopRequireDefault(__nccwpck_require__(33367)); - -var _UidListChildren = _interopRequireDefault(__nccwpck_require__(55603)); - -var _UidRevokeToken = _interopRequireDefault(__nccwpck_require__(60409)); - -var _UidRotateToken = _interopRequireDefault(__nccwpck_require__(36310)); - -var _UidRotateTokenOutput = _interopRequireDefault(__nccwpck_require__(34899)); - -var _Unconfigure = _interopRequireDefault(__nccwpck_require__(52179)); - -var _UniversalIdentityAccessRules = _interopRequireDefault(__nccwpck_require__(66824)); - -var _UniversalIdentityDetails = _interopRequireDefault(__nccwpck_require__(81607)); - -var _Update = _interopRequireDefault(__nccwpck_require__(14745)); - -var _UpdateAWSTarget = _interopRequireDefault(__nccwpck_require__(82797)); - -var _UpdateAWSTargetDetails = _interopRequireDefault(__nccwpck_require__(13631)); - -var _UpdateAccountSettings = _interopRequireDefault(__nccwpck_require__(7427)); - -var _UpdateAccountSettingsOutput = _interopRequireDefault(__nccwpck_require__(73106)); - -var _UpdateArtifactoryTarget = _interopRequireDefault(__nccwpck_require__(68146)); - -var _UpdateArtifactoryTargetOutput = _interopRequireDefault(__nccwpck_require__(95639)); - -var _UpdateAssoc = _interopRequireDefault(__nccwpck_require__(68862)); - -var _UpdateAuthMethod = _interopRequireDefault(__nccwpck_require__(25222)); - -var _UpdateAuthMethodAWSIAM = _interopRequireDefault(__nccwpck_require__(67296)); - -var _UpdateAuthMethodAzureAD = _interopRequireDefault(__nccwpck_require__(95622)); - -var _UpdateAuthMethodCert = _interopRequireDefault(__nccwpck_require__(18408)); - -var _UpdateAuthMethodCertOutput = _interopRequireDefault(__nccwpck_require__(33)); - -var _UpdateAuthMethodGCP = _interopRequireDefault(__nccwpck_require__(56494)); - -var _UpdateAuthMethodK8S = _interopRequireDefault(__nccwpck_require__(45908)); - -var _UpdateAuthMethodK8SOutput = _interopRequireDefault(__nccwpck_require__(75557)); - -var _UpdateAuthMethodLDAP = _interopRequireDefault(__nccwpck_require__(54035)); - -var _UpdateAuthMethodLDAPOutput = _interopRequireDefault(__nccwpck_require__(52290)); - -var _UpdateAuthMethodOAuth = _interopRequireDefault(__nccwpck_require__(13933)); - -var _UpdateAuthMethodOIDC = _interopRequireDefault(__nccwpck_require__(85407)); - -var _UpdateAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(49923)); - -var _UpdateAuthMethodSAML = _interopRequireDefault(__nccwpck_require__(41983)); - -var _UpdateAuthMethodUniversalIdentity = _interopRequireDefault(__nccwpck_require__(4775)); - -var _UpdateAzureTarget = _interopRequireDefault(__nccwpck_require__(10443)); - -var _UpdateAzureTargetOutput = _interopRequireDefault(__nccwpck_require__(16042)); - -var _UpdateCertificateOutput = _interopRequireDefault(__nccwpck_require__(12471)); - -var _UpdateCertificateValue = _interopRequireDefault(__nccwpck_require__(19705)); - -var _UpdateDBTarget = _interopRequireDefault(__nccwpck_require__(33529)); - -var _UpdateDBTargetDetails = _interopRequireDefault(__nccwpck_require__(80190)); - -var _UpdateDBTargetOutput = _interopRequireDefault(__nccwpck_require__(72131)); - -var _UpdateDockerhubTarget = _interopRequireDefault(__nccwpck_require__(8307)); - -var _UpdateDockerhubTargetOutput = _interopRequireDefault(__nccwpck_require__(56962)); - -var _UpdateEKSTarget = _interopRequireDefault(__nccwpck_require__(54749)); - -var _UpdateEKSTargetOutput = _interopRequireDefault(__nccwpck_require__(69048)); - -var _UpdateEventForwarder = _interopRequireDefault(__nccwpck_require__(69923)); - -var _UpdateGKETarget = _interopRequireDefault(__nccwpck_require__(98909)); - -var _UpdateGKETargetOutput = _interopRequireDefault(__nccwpck_require__(57048)); - -var _UpdateGcpTarget = _interopRequireDefault(__nccwpck_require__(27770)); - -var _UpdateGcpTargetOutput = _interopRequireDefault(__nccwpck_require__(18991)); - -var _UpdateGithubTarget = _interopRequireDefault(__nccwpck_require__(47511)); - -var _UpdateGithubTargetOutput = _interopRequireDefault(__nccwpck_require__(14926)); - -var _UpdateGlobalSignAtlasTarget = _interopRequireDefault(__nccwpck_require__(90781)); - -var _UpdateGlobalSignAtlasTargetOutput = _interopRequireDefault(__nccwpck_require__(89912)); - -var _UpdateGlobalSignTarget = _interopRequireDefault(__nccwpck_require__(7530)); - -var _UpdateGlobalSignTargetOutput = _interopRequireDefault(__nccwpck_require__(40415)); - -var _UpdateItem = _interopRequireDefault(__nccwpck_require__(49094)); - -var _UpdateItemOutput = _interopRequireDefault(__nccwpck_require__(15651)); - -var _UpdateLdapTarget = _interopRequireDefault(__nccwpck_require__(3589)); - -var _UpdateLdapTargetDetails = _interopRequireDefault(__nccwpck_require__(34663)); - -var _UpdateLdapTargetOutput = _interopRequireDefault(__nccwpck_require__(4912)); - -var _UpdateLinkedTarget = _interopRequireDefault(__nccwpck_require__(26477)); - -var _UpdateNativeK8STarget = _interopRequireDefault(__nccwpck_require__(30593)); - -var _UpdateNativeK8STargetOutput = _interopRequireDefault(__nccwpck_require__(99636)); - -var _UpdateOutput = _interopRequireDefault(__nccwpck_require__(47356)); - -var _UpdatePKICertIssuer = _interopRequireDefault(__nccwpck_require__(79264)); - -var _UpdatePKICertIssuerOutput = _interopRequireDefault(__nccwpck_require__(13449)); - -var _UpdatePingTarget = _interopRequireDefault(__nccwpck_require__(85764)); - -var _UpdateRDPTargetDetails = _interopRequireDefault(__nccwpck_require__(54450)); - -var _UpdateRabbitMQTarget = _interopRequireDefault(__nccwpck_require__(26622)); - -var _UpdateRabbitMQTargetDetails = _interopRequireDefault(__nccwpck_require__(87334)); - -var _UpdateRabbitMQTargetOutput = _interopRequireDefault(__nccwpck_require__(87403)); - -var _UpdateRole = _interopRequireDefault(__nccwpck_require__(57081)); - -var _UpdateRoleOutput = _interopRequireDefault(__nccwpck_require__(99836)); - -var _UpdateRotatedSecret = _interopRequireDefault(__nccwpck_require__(64696)); - -var _UpdateRotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(2961)); - -var _UpdateRotationSettings = _interopRequireDefault(__nccwpck_require__(42482)); - -var _UpdateSSHCertIssuer = _interopRequireDefault(__nccwpck_require__(65022)); - -var _UpdateSSHCertIssuerOutput = _interopRequireDefault(__nccwpck_require__(96523)); - -var _UpdateSSHTarget = _interopRequireDefault(__nccwpck_require__(72830)); - -var _UpdateSSHTargetDetails = _interopRequireDefault(__nccwpck_require__(58790)); - -var _UpdateSSHTargetOutput = _interopRequireDefault(__nccwpck_require__(73931)); - -var _UpdateSalesforceTarget = _interopRequireDefault(__nccwpck_require__(41539)); - -var _UpdateSalesforceTargetOutput = _interopRequireDefault(__nccwpck_require__(69266)); - -var _UpdateSecretVal = _interopRequireDefault(__nccwpck_require__(89102)); - -var _UpdateSecretValOutput = _interopRequireDefault(__nccwpck_require__(30427)); - -var _UpdateTarget = _interopRequireDefault(__nccwpck_require__(30092)); - -var _UpdateTargetDetails = _interopRequireDefault(__nccwpck_require__(90476)); - -var _UpdateTargetDetailsOutput = _interopRequireDefault(__nccwpck_require__(78669)); - -var _UpdateTargetOutput = _interopRequireDefault(__nccwpck_require__(29293)); - -var _UpdateWebTarget = _interopRequireDefault(__nccwpck_require__(54946)); - -var _UpdateWebTargetDetails = _interopRequireDefault(__nccwpck_require__(24642)); - -var _UpdateWebTargetOutput = _interopRequireDefault(__nccwpck_require__(43751)); - -var _UpdateWindowsTarget = _interopRequireDefault(__nccwpck_require__(39713)); - -var _UpdateZeroSSLTarget = _interopRequireDefault(__nccwpck_require__(32664)); - -var _UpdateZeroSSLTargetOutput = _interopRequireDefault(__nccwpck_require__(16401)); - -var _UploadPKCS = _interopRequireDefault(__nccwpck_require__(4373)); - -var _UploadRSA = _interopRequireDefault(__nccwpck_require__(22255)); - -var _ValidateToken = _interopRequireDefault(__nccwpck_require__(62049)); - -var _ValidateTokenOutput = _interopRequireDefault(__nccwpck_require__(56148)); - -var _VaultlessTokenizerInfo = _interopRequireDefault(__nccwpck_require__(56618)); - -var _VenafiTargetDetails = _interopRequireDefault(__nccwpck_require__(17420)); - -var _VerifyDataWithClassicKey = _interopRequireDefault(__nccwpck_require__(89370)); - -var _VerifyGPG = _interopRequireDefault(__nccwpck_require__(9817)); - -var _VerifyJWTOutput = _interopRequireDefault(__nccwpck_require__(11401)); - -var _VerifyJWTWithClassicKey = _interopRequireDefault(__nccwpck_require__(35587)); - -var _VerifyPKCS = _interopRequireDefault(__nccwpck_require__(94187)); - -var _VerifyPKICertOutput = _interopRequireDefault(__nccwpck_require__(9610)); - -var _VerifyPKICertWithClassicKey = _interopRequireDefault(__nccwpck_require__(1456)); - -var _WebTargetDetails = _interopRequireDefault(__nccwpck_require__(99871)); - -var _WindowsTargetDetails = _interopRequireDefault(__nccwpck_require__(70614)); - -var _ZeroSSLTargetDetails = _interopRequireDefault(__nccwpck_require__(57621)); - -var _V2Api = _interopRequireDefault(__nccwpck_require__(78207)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -/***/ }), - -/***/ 84834: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The APIKeyAccessRules model module. - * @module model/APIKeyAccessRules - * @version 3.3.16 - */ -var APIKeyAccessRules = /*#__PURE__*/function () { - /** - * Constructs a new APIKeyAccessRules. - * @alias module:model/APIKeyAccessRules - */ - function APIKeyAccessRules() { - _classCallCheck(this, APIKeyAccessRules); - - APIKeyAccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(APIKeyAccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a APIKeyAccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/APIKeyAccessRules} obj Optional instance to populate. - * @return {module:model/APIKeyAccessRules} The populated APIKeyAccessRules instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new APIKeyAccessRules(); - - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - } - - return obj; - } - }]); - - return APIKeyAccessRules; -}(); -/** - * @member {String} alg - */ - - -APIKeyAccessRules.prototype['alg'] = undefined; -/** - * The public key value of the API-key. - * @member {String} key - */ - -APIKeyAccessRules.prototype['key'] = undefined; -var _default = APIKeyAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 74237: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AWSIAMAccessRules model module. - * @module model/AWSIAMAccessRules - * @version 3.3.16 - */ -var AWSIAMAccessRules = /*#__PURE__*/function () { - /** - * Constructs a new AWSIAMAccessRules. - * @alias module:model/AWSIAMAccessRules - */ - function AWSIAMAccessRules() { - _classCallCheck(this, AWSIAMAccessRules); - - AWSIAMAccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AWSIAMAccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AWSIAMAccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AWSIAMAccessRules} obj Optional instance to populate. - * @return {module:model/AWSIAMAccessRules} The populated AWSIAMAccessRules instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AWSIAMAccessRules(); - - if (data.hasOwnProperty('account_id')) { - obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], ['String']); - } - - if (data.hasOwnProperty('arn')) { - obj['arn'] = _ApiClient["default"].convertToType(data['arn'], ['String']); - } - - if (data.hasOwnProperty('resource_id')) { - obj['resource_id'] = _ApiClient["default"].convertToType(data['resource_id'], ['String']); - } - - if (data.hasOwnProperty('role_id')) { - obj['role_id'] = _ApiClient["default"].convertToType(data['role_id'], ['String']); - } - - if (data.hasOwnProperty('role_name')) { - obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], ['String']); - } - - if (data.hasOwnProperty('sts_endpoint')) { - obj['sts_endpoint'] = _ApiClient["default"].convertToType(data['sts_endpoint'], 'String'); - } - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], ['String']); - } - - if (data.hasOwnProperty('user_name')) { - obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], ['String']); - } - } - - return obj; - } - }]); - - return AWSIAMAccessRules; -}(); -/** - * The list of account ids that the login is restricted to. - * @member {Array.} account_id - */ - - -AWSIAMAccessRules.prototype['account_id'] = undefined; -/** - * The list of ARNs that the login is restricted to. - * @member {Array.} arn - */ - -AWSIAMAccessRules.prototype['arn'] = undefined; -/** - * The list of resource ids that the login is restricted to. - * @member {Array.} resource_id - */ - -AWSIAMAccessRules.prototype['resource_id'] = undefined; -/** - * The list of role ids that the login is restricted to. - * @member {Array.} role_id - */ - -AWSIAMAccessRules.prototype['role_id'] = undefined; -/** - * The list of role names that the login is restricted to. - * @member {Array.} role_name - */ - -AWSIAMAccessRules.prototype['role_name'] = undefined; -/** - * The sts URL. - * @member {String} sts_endpoint - */ - -AWSIAMAccessRules.prototype['sts_endpoint'] = undefined; -/** - * The list of user ids that the login is restricted to. - * @member {Array.} user_id - */ - -AWSIAMAccessRules.prototype['user_id'] = undefined; -/** - * The list of user names that the login is restricted to. - * @member {Array.} user_name - */ - -AWSIAMAccessRules.prototype['user_name'] = undefined; -var _default = AWSIAMAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 47437: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AWSPayload model module. - * @module model/AWSPayload - * @version 3.3.16 - */ -var AWSPayload = /*#__PURE__*/function () { - /** - * Constructs a new AWSPayload. - * @alias module:model/AWSPayload - */ - function AWSPayload() { - _classCallCheck(this, AWSPayload); - - AWSPayload.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AWSPayload, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AWSPayload from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AWSPayload} obj Optional instance to populate. - * @return {module:model/AWSPayload} The populated AWSPayload instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AWSPayload(); - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } - - if (data.hasOwnProperty('secret')) { - obj['secret'] = _ApiClient["default"].convertToType(data['secret'], 'String'); - } - } - - return obj; - } - }]); - - return AWSPayload; -}(); -/** - * @member {String} key - */ - - -AWSPayload.prototype['key'] = undefined; -/** - * @member {String} region - */ - -AWSPayload.prototype['region'] = undefined; -/** - * @member {String} secret - */ - -AWSPayload.prototype['secret'] = undefined; -var _default = AWSPayload; -exports["default"] = _default; - -/***/ }), - -/***/ 10380: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _AWSPayload = _interopRequireDefault(__nccwpck_require__(47437)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AWSSecretsMigration model module. - * @module model/AWSSecretsMigration - * @version 3.3.16 - */ -var AWSSecretsMigration = /*#__PURE__*/function () { - /** - * Constructs a new AWSSecretsMigration. - * @alias module:model/AWSSecretsMigration - */ - function AWSSecretsMigration() { - _classCallCheck(this, AWSSecretsMigration); - - AWSSecretsMigration.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AWSSecretsMigration, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AWSSecretsMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AWSSecretsMigration} obj Optional instance to populate. - * @return {module:model/AWSSecretsMigration} The populated AWSSecretsMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AWSSecretsMigration(); - - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); - } - - if (data.hasOwnProperty('payload')) { - obj['payload'] = _AWSPayload["default"].constructFromObject(data['payload']); - } - } - - return obj; - } - }]); - - return AWSSecretsMigration; -}(); -/** - * @member {module:model/MigrationGeneral} general - */ - - -AWSSecretsMigration.prototype['general'] = undefined; -/** - * @member {module:model/AWSPayload} payload - */ - -AWSSecretsMigration.prototype['payload'] = undefined; -var _default = AWSSecretsMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 4398: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AWSTargetDetails model module. - * @module model/AWSTargetDetails - * @version 3.3.16 - */ -var AWSTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new AWSTargetDetails. - * @alias module:model/AWSTargetDetails - */ - function AWSTargetDetails() { - _classCallCheck(this, AWSTargetDetails); - - AWSTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AWSTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AWSTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AWSTargetDetails} obj Optional instance to populate. - * @return {module:model/AWSTargetDetails} The populated AWSTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AWSTargetDetails(); - - if (data.hasOwnProperty('aws_access_key_id')) { - obj['aws_access_key_id'] = _ApiClient["default"].convertToType(data['aws_access_key_id'], 'String'); - } - - if (data.hasOwnProperty('aws_region')) { - obj['aws_region'] = _ApiClient["default"].convertToType(data['aws_region'], 'String'); - } - - if (data.hasOwnProperty('aws_secret_access_key')) { - obj['aws_secret_access_key'] = _ApiClient["default"].convertToType(data['aws_secret_access_key'], 'String'); - } - - if (data.hasOwnProperty('aws_session_token')) { - obj['aws_session_token'] = _ApiClient["default"].convertToType(data['aws_session_token'], 'String'); - } - - if (data.hasOwnProperty('use_gw_cloud_identity')) { - obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); - } - } - - return obj; - } - }]); - - return AWSTargetDetails; -}(); -/** - * @member {String} aws_access_key_id - */ - - -AWSTargetDetails.prototype['aws_access_key_id'] = undefined; -/** - * @member {String} aws_region - */ - -AWSTargetDetails.prototype['aws_region'] = undefined; -/** - * @member {String} aws_secret_access_key - */ - -AWSTargetDetails.prototype['aws_secret_access_key'] = undefined; -/** - * @member {String} aws_session_token - */ - -AWSTargetDetails.prototype['aws_session_token'] = undefined; -/** - * @member {Boolean} use_gw_cloud_identity - */ - -AWSTargetDetails.prototype['use_gw_cloud_identity'] = undefined; -var _default = AWSTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 95036: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AccessPermissionAssignment model module. - * @module model/AccessPermissionAssignment - * @version 3.3.16 - */ -var AccessPermissionAssignment = /*#__PURE__*/function () { - /** - * Constructs a new AccessPermissionAssignment. - * @alias module:model/AccessPermissionAssignment - */ - function AccessPermissionAssignment() { - _classCallCheck(this, AccessPermissionAssignment); - - AccessPermissionAssignment.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AccessPermissionAssignment, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AccessPermissionAssignment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AccessPermissionAssignment} obj Optional instance to populate. - * @return {module:model/AccessPermissionAssignment} The populated AccessPermissionAssignment instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AccessPermissionAssignment(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - - if (data.hasOwnProperty('sub_claims')) { - obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { - 'String': ['String'] - }); - } - } - - return obj; - } - }]); - - return AccessPermissionAssignment; -}(); -/** - * @member {String} access_id - */ - - -AccessPermissionAssignment.prototype['access_id'] = undefined; -/** - * @member {Object.>} sub_claims - */ - -AccessPermissionAssignment.prototype['sub_claims'] = undefined; -var _default = AccessPermissionAssignment; -exports["default"] = _default; - -/***/ }), - -/***/ 85700: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DataProtectionSection = _interopRequireDefault(__nccwpck_require__(2116)); - -var _PasswordPolicyInfo = _interopRequireDefault(__nccwpck_require__(34827)); - -var _SharingPolicyInfo = _interopRequireDefault(__nccwpck_require__(78156)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AccountGeneralSettings model module. - * @module model/AccountGeneralSettings - * @version 3.3.16 - */ -var AccountGeneralSettings = /*#__PURE__*/function () { - /** - * Constructs a new AccountGeneralSettings. - * AccountGeneralSettings describes general settings for an account - * @alias module:model/AccountGeneralSettings - */ - function AccountGeneralSettings() { - _classCallCheck(this, AccountGeneralSettings); - - AccountGeneralSettings.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AccountGeneralSettings, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AccountGeneralSettings from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AccountGeneralSettings} obj Optional instance to populate. - * @return {module:model/AccountGeneralSettings} The populated AccountGeneralSettings instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AccountGeneralSettings(); - - if (data.hasOwnProperty('account_default_key_item_id')) { - obj['account_default_key_item_id'] = _ApiClient["default"].convertToType(data['account_default_key_item_id'], 'Number'); - } - - if (data.hasOwnProperty('account_default_key_name')) { - obj['account_default_key_name'] = _ApiClient["default"].convertToType(data['account_default_key_name'], 'String'); - } - - if (data.hasOwnProperty('data_protection_section')) { - obj['data_protection_section'] = _DataProtectionSection["default"].constructFromObject(data['data_protection_section']); - } - - if (data.hasOwnProperty('enable_request_for_access')) { - obj['enable_request_for_access'] = _ApiClient["default"].convertToType(data['enable_request_for_access'], 'Boolean'); - } - - if (data.hasOwnProperty('password_policy')) { - obj['password_policy'] = _PasswordPolicyInfo["default"].constructFromObject(data['password_policy']); - } - - if (data.hasOwnProperty('protect_items_by_default')) { - obj['protect_items_by_default'] = _ApiClient["default"].convertToType(data['protect_items_by_default'], 'Boolean'); - } - - if (data.hasOwnProperty('sharing_policy')) { - obj['sharing_policy'] = _SharingPolicyInfo["default"].constructFromObject(data['sharing_policy']); - } - } - - return obj; - } - }]); - - return AccountGeneralSettings; -}(); -/** - * AccountDefaultKeyItemID is the item ID of the DFC key item configured as the default protection key - * @member {Number} account_default_key_item_id - */ - - -AccountGeneralSettings.prototype['account_default_key_item_id'] = undefined; -/** - * AccountDefaultKeyName is the name of the DFC key item configured as the default key This is here simply for the response to include the item name in addition to the display ID so the client can properly show this to the user. It will not be saved to the DB, only the AccountDefaultKeyItemID will. - * @member {String} account_default_key_name - */ - -AccountGeneralSettings.prototype['account_default_key_name'] = undefined; -/** - * @member {module:model/DataProtectionSection} data_protection_section - */ - -AccountGeneralSettings.prototype['data_protection_section'] = undefined; -/** - * @member {Boolean} enable_request_for_access - */ - -AccountGeneralSettings.prototype['enable_request_for_access'] = undefined; -/** - * @member {module:model/PasswordPolicyInfo} password_policy - */ - -AccountGeneralSettings.prototype['password_policy'] = undefined; -/** - * @member {Boolean} protect_items_by_default - */ - -AccountGeneralSettings.prototype['protect_items_by_default'] = undefined; -/** - * @member {module:model/SharingPolicyInfo} sharing_policy - */ - -AccountGeneralSettings.prototype['sharing_policy'] = undefined; -var _default = AccountGeneralSettings; -exports["default"] = _default; - -/***/ }), - -/***/ 57060: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _ObjectVersionSettingsOutput = _interopRequireDefault(__nccwpck_require__(82163)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AccountObjectVersionSettingsOutput model module. - * @module model/AccountObjectVersionSettingsOutput - * @version 3.3.16 - */ -var AccountObjectVersionSettingsOutput = /*#__PURE__*/function () { - /** - * Constructs a new AccountObjectVersionSettingsOutput. - * @alias module:model/AccountObjectVersionSettingsOutput - */ - function AccountObjectVersionSettingsOutput() { - _classCallCheck(this, AccountObjectVersionSettingsOutput); - - AccountObjectVersionSettingsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AccountObjectVersionSettingsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AccountObjectVersionSettingsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AccountObjectVersionSettingsOutput} obj Optional instance to populate. - * @return {module:model/AccountObjectVersionSettingsOutput} The populated AccountObjectVersionSettingsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AccountObjectVersionSettingsOutput(); - - if (data.hasOwnProperty('default-versioning')) { - obj['default-versioning'] = _ApiClient["default"].convertToType(data['default-versioning'], 'Boolean'); - } - - if (data.hasOwnProperty('items')) { - obj['items'] = _ApiClient["default"].convertToType(data['items'], [_ObjectVersionSettingsOutput["default"]]); - } - } - - return obj; - } - }]); - - return AccountObjectVersionSettingsOutput; -}(); -/** - * @member {Boolean} default-versioning - */ - - -AccountObjectVersionSettingsOutput.prototype['default-versioning'] = undefined; -/** - * @member {Array.} items - */ - -AccountObjectVersionSettingsOutput.prototype['items'] = undefined; -var _default = AccountObjectVersionSettingsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 46703: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _ActiveDirectoryPayload = _interopRequireDefault(__nccwpck_require__(941)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ActiveDirectoryMigration model module. - * @module model/ActiveDirectoryMigration - * @version 3.3.16 - */ -var ActiveDirectoryMigration = /*#__PURE__*/function () { - /** - * Constructs a new ActiveDirectoryMigration. - * @alias module:model/ActiveDirectoryMigration - */ - function ActiveDirectoryMigration() { - _classCallCheck(this, ActiveDirectoryMigration); - - ActiveDirectoryMigration.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ActiveDirectoryMigration, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ActiveDirectoryMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActiveDirectoryMigration} obj Optional instance to populate. - * @return {module:model/ActiveDirectoryMigration} The populated ActiveDirectoryMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ActiveDirectoryMigration(); - - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); - } - - if (data.hasOwnProperty('payload')) { - obj['payload'] = _ActiveDirectoryPayload["default"].constructFromObject(data['payload']); - } - } - - return obj; - } - }]); - - return ActiveDirectoryMigration; -}(); -/** - * @member {module:model/MigrationGeneral} general - */ - - -ActiveDirectoryMigration.prototype['general'] = undefined; -/** - * @member {module:model/ActiveDirectoryPayload} payload - */ - -ActiveDirectoryMigration.prototype['payload'] = undefined; -var _default = ActiveDirectoryMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 941: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ActiveDirectoryPayload model module. - * @module model/ActiveDirectoryPayload - * @version 3.3.16 - */ -var ActiveDirectoryPayload = /*#__PURE__*/function () { - /** - * Constructs a new ActiveDirectoryPayload. - * @alias module:model/ActiveDirectoryPayload - */ - function ActiveDirectoryPayload() { - _classCallCheck(this, ActiveDirectoryPayload); - - ActiveDirectoryPayload.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ActiveDirectoryPayload, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ActiveDirectoryPayload from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActiveDirectoryPayload} obj Optional instance to populate. - * @return {module:model/ActiveDirectoryPayload} The populated ActiveDirectoryPayload instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ActiveDirectoryPayload(); - - if (data.hasOwnProperty('active_directory_target_id')) { - obj['active_directory_target_id'] = _ApiClient["default"].convertToType(data['active_directory_target_id'], 'Number'); - } - - if (data.hasOwnProperty('auto_rotate')) { - obj['auto_rotate'] = _ApiClient["default"].convertToType(data['auto_rotate'], 'Boolean'); - } - - if (data.hasOwnProperty('auto_rotate_interval_in_days')) { - obj['auto_rotate_interval_in_days'] = _ApiClient["default"].convertToType(data['auto_rotate_interval_in_days'], 'Number'); - } - - if (data.hasOwnProperty('auto_rotate_rotation_hour')) { - obj['auto_rotate_rotation_hour'] = _ApiClient["default"].convertToType(data['auto_rotate_rotation_hour'], 'Number'); - } - - if (data.hasOwnProperty('computer_base_dn')) { - obj['computer_base_dn'] = _ApiClient["default"].convertToType(data['computer_base_dn'], 'String'); - } - - if (data.hasOwnProperty('discover_local_users')) { - obj['discover_local_users'] = _ApiClient["default"].convertToType(data['discover_local_users'], 'Boolean'); - } - - if (data.hasOwnProperty('domain_name')) { - obj['domain_name'] = _ApiClient["default"].convertToType(data['domain_name'], 'String'); - } - - if (data.hasOwnProperty('domain_server_targets_path_template')) { - obj['domain_server_targets_path_template'] = _ApiClient["default"].convertToType(data['domain_server_targets_path_template'], 'String'); - } - - if (data.hasOwnProperty('domain_users_rotated_secrets_path_template')) { - obj['domain_users_rotated_secrets_path_template'] = _ApiClient["default"].convertToType(data['domain_users_rotated_secrets_path_template'], 'String'); - } - - if (data.hasOwnProperty('enable_rdp_sra')) { - obj['enable_rdp_sra'] = _ApiClient["default"].convertToType(data['enable_rdp_sra'], 'Boolean'); - } - - if (data.hasOwnProperty('local_users_ignore_list')) { - obj['local_users_ignore_list'] = _ApiClient["default"].convertToType(data['local_users_ignore_list'], { - 'String': 'Boolean' - }); - } - - if (data.hasOwnProperty('local_users_rotated_secrets_path_template')) { - obj['local_users_rotated_secrets_path_template'] = _ApiClient["default"].convertToType(data['local_users_rotated_secrets_path_template'], 'String'); - } - - if (data.hasOwnProperty('ssh_port')) { - obj['ssh_port'] = _ApiClient["default"].convertToType(data['ssh_port'], 'String'); - } - - if (data.hasOwnProperty('targets_type')) { - obj['targets_type'] = _ApiClient["default"].convertToType(data['targets_type'], 'String'); - } - - if (data.hasOwnProperty('user_base_dn')) { - obj['user_base_dn'] = _ApiClient["default"].convertToType(data['user_base_dn'], 'String'); - } - - if (data.hasOwnProperty('user_groups')) { - obj['user_groups'] = _ApiClient["default"].convertToType(data['user_groups'], ['String']); - } - - if (data.hasOwnProperty('winrm_over_http')) { - obj['winrm_over_http'] = _ApiClient["default"].convertToType(data['winrm_over_http'], 'Boolean'); - } - - if (data.hasOwnProperty('winrm_port')) { - obj['winrm_port'] = _ApiClient["default"].convertToType(data['winrm_port'], 'String'); - } - } - - return obj; - } - }]); - - return ActiveDirectoryPayload; -}(); -/** - * @member {Number} active_directory_target_id - */ - - -ActiveDirectoryPayload.prototype['active_directory_target_id'] = undefined; -/** - * @member {Boolean} auto_rotate - */ - -ActiveDirectoryPayload.prototype['auto_rotate'] = undefined; -/** - * @member {Number} auto_rotate_interval_in_days - */ - -ActiveDirectoryPayload.prototype['auto_rotate_interval_in_days'] = undefined; -/** - * @member {Number} auto_rotate_rotation_hour - */ - -ActiveDirectoryPayload.prototype['auto_rotate_rotation_hour'] = undefined; -/** - * @member {String} computer_base_dn - */ - -ActiveDirectoryPayload.prototype['computer_base_dn'] = undefined; -/** - * @member {Boolean} discover_local_users - */ - -ActiveDirectoryPayload.prototype['discover_local_users'] = undefined; -/** - * @member {String} domain_name - */ - -ActiveDirectoryPayload.prototype['domain_name'] = undefined; -/** - * @member {String} domain_server_targets_path_template - */ - -ActiveDirectoryPayload.prototype['domain_server_targets_path_template'] = undefined; -/** - * @member {String} domain_users_rotated_secrets_path_template - */ - -ActiveDirectoryPayload.prototype['domain_users_rotated_secrets_path_template'] = undefined; -/** - * @member {Boolean} enable_rdp_sra - */ - -ActiveDirectoryPayload.prototype['enable_rdp_sra'] = undefined; -/** - * @member {Object.} local_users_ignore_list - */ - -ActiveDirectoryPayload.prototype['local_users_ignore_list'] = undefined; -/** - * @member {String} local_users_rotated_secrets_path_template - */ - -ActiveDirectoryPayload.prototype['local_users_rotated_secrets_path_template'] = undefined; -/** - * @member {String} ssh_port - */ - -ActiveDirectoryPayload.prototype['ssh_port'] = undefined; -/** - * @member {String} targets_type - */ - -ActiveDirectoryPayload.prototype['targets_type'] = undefined; -/** - * @member {String} user_base_dn - */ - -ActiveDirectoryPayload.prototype['user_base_dn'] = undefined; -/** - * @member {Array.} user_groups - */ - -ActiveDirectoryPayload.prototype['user_groups'] = undefined; -/** - * @member {Boolean} winrm_over_http - */ - -ActiveDirectoryPayload.prototype['winrm_over_http'] = undefined; -/** - * @member {String} winrm_port - */ - -ActiveDirectoryPayload.prototype['winrm_port'] = undefined; -var _default = ActiveDirectoryPayload; -exports["default"] = _default; - -/***/ }), - -/***/ 51400: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AddGatewayAllowedAccessId model module. - * @module model/AddGatewayAllowedAccessId - * @version 3.3.16 - */ -var AddGatewayAllowedAccessId = /*#__PURE__*/function () { - /** - * Constructs a new AddGatewayAllowedAccessId. - * Responses: default: errorResponse 200: addGatewayAllowedAccessIdResponse - * @alias module:model/AddGatewayAllowedAccessId - * @param accessId {String} The access id that will be able to access to gateway - * @param clusterName {String} The name of the updated cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster - */ - function AddGatewayAllowedAccessId(accessId, clusterName) { - _classCallCheck(this, AddGatewayAllowedAccessId); - - AddGatewayAllowedAccessId.initialize(this, accessId, clusterName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AddGatewayAllowedAccessId, null, [{ - key: "initialize", - value: function initialize(obj, accessId, clusterName) { - obj['access-id'] = accessId; - obj['cluster-name'] = clusterName; - } - /** - * Constructs a AddGatewayAllowedAccessId from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddGatewayAllowedAccessId} obj Optional instance to populate. - * @return {module:model/AddGatewayAllowedAccessId} The populated AddGatewayAllowedAccessId instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddGatewayAllowedAccessId(); - - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); - } - - if (data.hasOwnProperty('cluster-name')) { - obj['cluster-name'] = _ApiClient["default"].convertToType(data['cluster-name'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('sub-claims')) { - obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return AddGatewayAllowedAccessId; -}(); -/** - * The access id that will be able to access to gateway - * @member {String} access-id - */ - - -AddGatewayAllowedAccessId.prototype['access-id'] = undefined; -/** - * The name of the updated cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster - * @member {String} cluster-name - */ - -AddGatewayAllowedAccessId.prototype['cluster-name'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -AddGatewayAllowedAccessId.prototype['json'] = false; -/** - * key/val of sub claims, e.g group=admins,developers - * @member {Object.} sub-claims - */ - -AddGatewayAllowedAccessId.prototype['sub-claims'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -AddGatewayAllowedAccessId.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -AddGatewayAllowedAccessId.prototype['uid-token'] = undefined; -var _default = AddGatewayAllowedAccessId; -exports["default"] = _default; - -/***/ }), - -/***/ 32299: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _AllowedAccessOld = _interopRequireDefault(__nccwpck_require__(50727)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AdminsConfigPart model module. - * @module model/AdminsConfigPart - * @version 3.3.16 - */ -var AdminsConfigPart = /*#__PURE__*/function () { - /** - * Constructs a new AdminsConfigPart. - * @alias module:model/AdminsConfigPart - */ - function AdminsConfigPart() { - _classCallCheck(this, AdminsConfigPart); - - AdminsConfigPart.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AdminsConfigPart, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AdminsConfigPart from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AdminsConfigPart} obj Optional instance to populate. - * @return {module:model/AdminsConfigPart} The populated AdminsConfigPart instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AdminsConfigPart(); - - if (data.hasOwnProperty('admins_migration_status')) { - obj['admins_migration_status'] = _ApiClient["default"].convertToType(data['admins_migration_status'], 'Number'); - } - - if (data.hasOwnProperty('allowed_access')) { - obj['allowed_access'] = _ApiClient["default"].convertToType(data['allowed_access'], { - 'String': _AllowedAccessOld["default"] - }); - } - } - - return obj; - } - }]); - - return AdminsConfigPart; -}(); -/** - * @member {Number} admins_migration_status - */ - - -AdminsConfigPart.prototype['admins_migration_status'] = undefined; -/** - * @member {Object.} allowed_access - */ - -AdminsConfigPart.prototype['allowed_access'] = undefined; -var _default = AdminsConfigPart; -exports["default"] = _default; - -/***/ }), - -/***/ 45995: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _AdminsConfigPart = _interopRequireDefault(__nccwpck_require__(32299)); - -var _CFConfigPart = _interopRequireDefault(__nccwpck_require__(6102)); - -var _CacheConfigPart = _interopRequireDefault(__nccwpck_require__(31951)); - -var _DefaultConfigPart = _interopRequireDefault(__nccwpck_require__(12332)); - -var _GatewayMessageQueueInfo = _interopRequireDefault(__nccwpck_require__(78626)); - -var _GeneralConfigPart = _interopRequireDefault(__nccwpck_require__(94565)); - -var _K8SAuthsConfigPart = _interopRequireDefault(__nccwpck_require__(37768)); - -var _KMIPConfigPart = _interopRequireDefault(__nccwpck_require__(90506)); - -var _LdapConfigPart = _interopRequireDefault(__nccwpck_require__(2846)); - -var _LeadershipConfigPart = _interopRequireDefault(__nccwpck_require__(25900)); - -var _LogForwardingConfigPart = _interopRequireDefault(__nccwpck_require__(65736)); - -var _MigrationsConfigPart = _interopRequireDefault(__nccwpck_require__(27734)); - -var _ProducersConfigPart = _interopRequireDefault(__nccwpck_require__(24318)); - -var _RotatorsConfigPart = _interopRequireDefault(__nccwpck_require__(37665)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AkeylessGatewayConfig model module. - * @module model/AkeylessGatewayConfig - * @version 3.3.16 - */ -var AkeylessGatewayConfig = /*#__PURE__*/function () { - /** - * Constructs a new AkeylessGatewayConfig. - * @alias module:model/AkeylessGatewayConfig - */ - function AkeylessGatewayConfig() { - _classCallCheck(this, AkeylessGatewayConfig); - - AkeylessGatewayConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AkeylessGatewayConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AkeylessGatewayConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AkeylessGatewayConfig} obj Optional instance to populate. - * @return {module:model/AkeylessGatewayConfig} The populated AkeylessGatewayConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AkeylessGatewayConfig(); - - if (data.hasOwnProperty('admins')) { - obj['admins'] = _AdminsConfigPart["default"].constructFromObject(data['admins']); - } - - if (data.hasOwnProperty('cache')) { - obj['cache'] = _CacheConfigPart["default"].constructFromObject(data['cache']); - } - - if (data.hasOwnProperty('cf')) { - obj['cf'] = _CFConfigPart["default"].constructFromObject(data['cf']); - } - - if (data.hasOwnProperty('config_protection_key_name')) { - obj['config_protection_key_name'] = _ApiClient["default"].convertToType(data['config_protection_key_name'], 'String'); - } - - if (data.hasOwnProperty('general')) { - obj['general'] = _GeneralConfigPart["default"].constructFromObject(data['general']); - } - - if (data.hasOwnProperty('k8s_auths')) { - obj['k8s_auths'] = _K8SAuthsConfigPart["default"].constructFromObject(data['k8s_auths']); - } - - if (data.hasOwnProperty('kmip_clients')) { - obj['kmip_clients'] = _KMIPConfigPart["default"].constructFromObject(data['kmip_clients']); - } - - if (data.hasOwnProperty('ldap')) { - obj['ldap'] = _LdapConfigPart["default"].constructFromObject(data['ldap']); - } - - if (data.hasOwnProperty('leadership')) { - obj['leadership'] = _LeadershipConfigPart["default"].constructFromObject(data['leadership']); - } - - if (data.hasOwnProperty('log_forwarding')) { - obj['log_forwarding'] = _LogForwardingConfigPart["default"].constructFromObject(data['log_forwarding']); - } - - if (data.hasOwnProperty('message_queue_info')) { - obj['message_queue_info'] = _GatewayMessageQueueInfo["default"].constructFromObject(data['message_queue_info']); - } - - if (data.hasOwnProperty('migrations')) { - obj['migrations'] = _MigrationsConfigPart["default"].constructFromObject(data['migrations']); - } - - if (data.hasOwnProperty('producers')) { - obj['producers'] = _ProducersConfigPart["default"].constructFromObject(data['producers']); - } - - if (data.hasOwnProperty('rotators')) { - obj['rotators'] = _RotatorsConfigPart["default"].constructFromObject(data['rotators']); - } - - if (data.hasOwnProperty('saml')) { - obj['saml'] = _DefaultConfigPart["default"].constructFromObject(data['saml']); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return AkeylessGatewayConfig; -}(); -/** - * @member {module:model/AdminsConfigPart} admins - */ - - -AkeylessGatewayConfig.prototype['admins'] = undefined; -/** - * @member {module:model/CacheConfigPart} cache - */ - -AkeylessGatewayConfig.prototype['cache'] = undefined; -/** - * @member {module:model/CFConfigPart} cf - */ - -AkeylessGatewayConfig.prototype['cf'] = undefined; -/** - * @member {String} config_protection_key_name - */ - -AkeylessGatewayConfig.prototype['config_protection_key_name'] = undefined; -/** - * @member {module:model/GeneralConfigPart} general - */ - -AkeylessGatewayConfig.prototype['general'] = undefined; -/** - * @member {module:model/K8SAuthsConfigPart} k8s_auths - */ - -AkeylessGatewayConfig.prototype['k8s_auths'] = undefined; -/** - * @member {module:model/KMIPConfigPart} kmip_clients - */ - -AkeylessGatewayConfig.prototype['kmip_clients'] = undefined; -/** - * @member {module:model/LdapConfigPart} ldap - */ - -AkeylessGatewayConfig.prototype['ldap'] = undefined; -/** - * @member {module:model/LeadershipConfigPart} leadership - */ - -AkeylessGatewayConfig.prototype['leadership'] = undefined; -/** - * @member {module:model/LogForwardingConfigPart} log_forwarding - */ - -AkeylessGatewayConfig.prototype['log_forwarding'] = undefined; -/** - * @member {module:model/GatewayMessageQueueInfo} message_queue_info - */ - -AkeylessGatewayConfig.prototype['message_queue_info'] = undefined; -/** - * @member {module:model/MigrationsConfigPart} migrations - */ - -AkeylessGatewayConfig.prototype['migrations'] = undefined; -/** - * @member {module:model/ProducersConfigPart} producers - */ - -AkeylessGatewayConfig.prototype['producers'] = undefined; -/** - * @member {module:model/RotatorsConfigPart} rotators - */ - -AkeylessGatewayConfig.prototype['rotators'] = undefined; -/** - * @member {module:model/DefaultConfigPart} saml - */ - -AkeylessGatewayConfig.prototype['saml'] = undefined; -/** - * @member {Number} version - */ - -AkeylessGatewayConfig.prototype['version'] = undefined; -var _default = AkeylessGatewayConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 61540: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AllowedAccess model module. - * @module model/AllowedAccess - * @version 3.3.16 - */ -var AllowedAccess = /*#__PURE__*/function () { - /** - * Constructs a new AllowedAccess. - * @alias module:model/AllowedAccess - */ - function AllowedAccess() { - _classCallCheck(this, AllowedAccess); - - AllowedAccess.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AllowedAccess, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AllowedAccess from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AllowedAccess} obj Optional instance to populate. - * @return {module:model/AllowedAccess} The populated AllowedAccess instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AllowedAccess(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - - if (data.hasOwnProperty('access_type')) { - obj['access_type'] = _ApiClient["default"].convertToType(data['access_type'], 'String'); - } - - if (data.hasOwnProperty('cluster_id')) { - obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'Number'); - } - - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('editable')) { - obj['editable'] = _ApiClient["default"].convertToType(data['editable'], 'Boolean'); - } - - if (data.hasOwnProperty('error')) { - obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String'); - } - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - - if (data.hasOwnProperty('is_valid')) { - obj['is_valid'] = _ApiClient["default"].convertToType(data['is_valid'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('permissions')) { - obj['permissions'] = _ApiClient["default"].convertToType(data['permissions'], ['String']); - } - - if (data.hasOwnProperty('sub_claims')) { - obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { - 'String': ['String'] - }); - } - - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date'); - } - } - - return obj; - } - }]); - - return AllowedAccess; -}(); -/** - * @member {String} access_id - */ - - -AllowedAccess.prototype['access_id'] = undefined; -/** - * @member {String} access_type - */ - -AllowedAccess.prototype['access_type'] = undefined; -/** - * @member {Number} cluster_id - */ - -AllowedAccess.prototype['cluster_id'] = undefined; -/** - * @member {Date} created_at - */ - -AllowedAccess.prototype['created_at'] = undefined; -/** - * @member {String} description - */ - -AllowedAccess.prototype['description'] = undefined; -/** - * @member {Boolean} editable - */ - -AllowedAccess.prototype['editable'] = undefined; -/** - * @member {String} error - */ - -AllowedAccess.prototype['error'] = undefined; -/** - * @member {Number} id - */ - -AllowedAccess.prototype['id'] = undefined; -/** - * @member {Boolean} is_valid - */ - -AllowedAccess.prototype['is_valid'] = undefined; -/** - * @member {String} name - */ - -AllowedAccess.prototype['name'] = undefined; -/** - * @member {Array.} permissions - */ - -AllowedAccess.prototype['permissions'] = undefined; -/** - * @member {Object.>} sub_claims - */ - -AllowedAccess.prototype['sub_claims'] = undefined; -/** - * @member {Date} updated_at - */ - -AllowedAccess.prototype['updated_at'] = undefined; -var _default = AllowedAccess; -exports["default"] = _default; - -/***/ }), - -/***/ 50727: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AllowedAccessOld model module. - * @module model/AllowedAccessOld - * @version 3.3.16 - */ -var AllowedAccessOld = /*#__PURE__*/function () { - /** - * Constructs a new AllowedAccessOld. - * Deprecated: AllowedAccessOld please use Gator allowed_access API structs such as AllowedAccessInput/AllowedAccess - * @alias module:model/AllowedAccessOld - */ - function AllowedAccessOld() { - _classCallCheck(this, AllowedAccessOld); - - AllowedAccessOld.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AllowedAccessOld, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AllowedAccessOld from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AllowedAccessOld} obj Optional instance to populate. - * @return {module:model/AllowedAccessOld} The populated AllowedAccessOld instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AllowedAccessOld(); - - if (data.hasOwnProperty('acc_id')) { - obj['acc_id'] = _ApiClient["default"].convertToType(data['acc_id'], 'String'); - } - - if (data.hasOwnProperty('access_permissions')) { - obj['access_permissions'] = _ApiClient["default"].convertToType(data['access_permissions'], ['String']); - } - - if (data.hasOwnProperty('access_rules_type')) { - obj['access_rules_type'] = _ApiClient["default"].convertToType(data['access_rules_type'], 'String'); - } - - if (data.hasOwnProperty('allowed_api')) { - obj['allowed_api'] = _ApiClient["default"].convertToType(data['allowed_api'], 'Boolean'); - } - - if (data.hasOwnProperty('alloweds_login')) { - obj['alloweds_login'] = _ApiClient["default"].convertToType(data['alloweds_login'], 'Boolean'); - } - - if (data.hasOwnProperty('editable')) { - obj['editable'] = _ApiClient["default"].convertToType(data['editable'], 'Boolean'); - } - - if (data.hasOwnProperty('err_msg')) { - obj['err_msg'] = _ApiClient["default"].convertToType(data['err_msg'], 'String'); - } - - if (data.hasOwnProperty('hash')) { - obj['hash'] = _ApiClient["default"].convertToType(data['hash'], 'String'); - } - - if (data.hasOwnProperty('is_valid')) { - obj['is_valid'] = _ApiClient["default"].convertToType(data['is_valid'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('sub_claims')) { - obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { - 'String': ['String'] - }); - } - } - - return obj; - } - }]); - - return AllowedAccessOld; -}(); -/** - * @member {String} acc_id - */ - - -AllowedAccessOld.prototype['acc_id'] = undefined; -/** - * @member {Array.} access_permissions - */ - -AllowedAccessOld.prototype['access_permissions'] = undefined; -/** - * @member {String} access_rules_type - */ - -AllowedAccessOld.prototype['access_rules_type'] = undefined; -/** - * @member {Boolean} allowed_api - */ - -AllowedAccessOld.prototype['allowed_api'] = undefined; -/** - * @member {Boolean} alloweds_login - */ - -AllowedAccessOld.prototype['alloweds_login'] = undefined; -/** - * @member {Boolean} editable - */ - -AllowedAccessOld.prototype['editable'] = undefined; -/** - * @member {String} err_msg - */ - -AllowedAccessOld.prototype['err_msg'] = undefined; -/** - * @member {String} hash - */ - -AllowedAccessOld.prototype['hash'] = undefined; -/** - * @member {Boolean} is_valid - */ - -AllowedAccessOld.prototype['is_valid'] = undefined; -/** - * @member {String} name - */ - -AllowedAccessOld.prototype['name'] = undefined; -/** - * @member {Object.>} sub_claims - */ - -AllowedAccessOld.prototype['sub_claims'] = undefined; -var _default = AllowedAccessOld; -exports["default"] = _default; - -/***/ }), - -/***/ 99747: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ArtifactoryTargetDetails model module. - * @module model/ArtifactoryTargetDetails - * @version 3.3.16 - */ -var ArtifactoryTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new ArtifactoryTargetDetails. - * @alias module:model/ArtifactoryTargetDetails - */ - function ArtifactoryTargetDetails() { - _classCallCheck(this, ArtifactoryTargetDetails); - - ArtifactoryTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ArtifactoryTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ArtifactoryTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ArtifactoryTargetDetails} obj Optional instance to populate. - * @return {module:model/ArtifactoryTargetDetails} The populated ArtifactoryTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ArtifactoryTargetDetails(); - - if (data.hasOwnProperty('artifactory_admin_apikey')) { - obj['artifactory_admin_apikey'] = _ApiClient["default"].convertToType(data['artifactory_admin_apikey'], 'String'); - } - - if (data.hasOwnProperty('artifactory_admin_username')) { - obj['artifactory_admin_username'] = _ApiClient["default"].convertToType(data['artifactory_admin_username'], 'String'); - } - - if (data.hasOwnProperty('artifactory_base_url')) { - obj['artifactory_base_url'] = _ApiClient["default"].convertToType(data['artifactory_base_url'], 'String'); - } - } - - return obj; - } - }]); - - return ArtifactoryTargetDetails; -}(); -/** - * @member {String} artifactory_admin_apikey - */ - - -ArtifactoryTargetDetails.prototype['artifactory_admin_apikey'] = undefined; -/** - * @member {String} artifactory_admin_username - */ - -ArtifactoryTargetDetails.prototype['artifactory_admin_username'] = undefined; -/** - * @member {String} artifactory_base_url - */ - -ArtifactoryTargetDetails.prototype['artifactory_base_url'] = undefined; -var _default = ArtifactoryTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 17378: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AssocRoleAuthMethod model module. - * @module model/AssocRoleAuthMethod - * @version 3.3.16 - */ -var AssocRoleAuthMethod = /*#__PURE__*/function () { - /** - * Constructs a new AssocRoleAuthMethod. - * assocRoleAuthMethod is a command that creates an association between role and auth method. - * @alias module:model/AssocRoleAuthMethod - * @param amName {String} The auth method to associate - * @param roleName {String} The role to associate - */ - function AssocRoleAuthMethod(amName, roleName) { - _classCallCheck(this, AssocRoleAuthMethod); - - AssocRoleAuthMethod.initialize(this, amName, roleName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AssocRoleAuthMethod, null, [{ - key: "initialize", - value: function initialize(obj, amName, roleName) { - obj['am-name'] = amName; - obj['role-name'] = roleName; - } - /** - * Constructs a AssocRoleAuthMethod from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AssocRoleAuthMethod} obj Optional instance to populate. - * @return {module:model/AssocRoleAuthMethod} The populated AssocRoleAuthMethod instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AssocRoleAuthMethod(); - - if (data.hasOwnProperty('am-name')) { - obj['am-name'] = _ApiClient["default"].convertToType(data['am-name'], 'String'); - } - - if (data.hasOwnProperty('case-sensitive')) { - obj['case-sensitive'] = _ApiClient["default"].convertToType(data['case-sensitive'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('role-name')) { - obj['role-name'] = _ApiClient["default"].convertToType(data['role-name'], 'String'); - } - - if (data.hasOwnProperty('sub-claims')) { - obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return AssocRoleAuthMethod; -}(); -/** - * The auth method to associate - * @member {String} am-name - */ - - -AssocRoleAuthMethod.prototype['am-name'] = undefined; -/** - * Treat sub claims as case-sensitive [true/false] - * @member {String} case-sensitive - * @default 'true' - */ - -AssocRoleAuthMethod.prototype['case-sensitive'] = 'true'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -AssocRoleAuthMethod.prototype['json'] = false; -/** - * The role to associate - * @member {String} role-name - */ - -AssocRoleAuthMethod.prototype['role-name'] = undefined; -/** - * key/val of sub claims, e.g group=admins,developers - * @member {Object.} sub-claims - */ - -AssocRoleAuthMethod.prototype['sub-claims'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -AssocRoleAuthMethod.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -AssocRoleAuthMethod.prototype['uid-token'] = undefined; -var _default = AssocRoleAuthMethod; -exports["default"] = _default; - -/***/ }), - -/***/ 68883: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AssocTargetItem model module. - * @module model/AssocTargetItem - * @version 3.3.16 - */ -var AssocTargetItem = /*#__PURE__*/function () { - /** - * Constructs a new AssocTargetItem. - * assocTargetItem is a command that creates an association between target and item. - * @alias module:model/AssocTargetItem - * @param name {String} The item to associate - * @param targetName {String} The target to associate - */ - function AssocTargetItem(name, targetName) { - _classCallCheck(this, AssocTargetItem); - - AssocTargetItem.initialize(this, name, targetName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AssocTargetItem, null, [{ - key: "initialize", - value: function initialize(obj, name, targetName) { - obj['name'] = name; - obj['target-name'] = targetName; - } - /** - * Constructs a AssocTargetItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AssocTargetItem} obj Optional instance to populate. - * @return {module:model/AssocTargetItem} The populated AssocTargetItem instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AssocTargetItem(); - - if (data.hasOwnProperty('disable-previous-key-version')) { - obj['disable-previous-key-version'] = _ApiClient["default"].convertToType(data['disable-previous-key-version'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-operations')) { - obj['key-operations'] = _ApiClient["default"].convertToType(data['key-operations'], ['String']); - } - - if (data.hasOwnProperty('keyring-name')) { - obj['keyring-name'] = _ApiClient["default"].convertToType(data['keyring-name'], 'String'); - } - - if (data.hasOwnProperty('kms-algorithm')) { - obj['kms-algorithm'] = _ApiClient["default"].convertToType(data['kms-algorithm'], 'String'); - } - - if (data.hasOwnProperty('location-id')) { - obj['location-id'] = _ApiClient["default"].convertToType(data['location-id'], 'String'); - } - - if (data.hasOwnProperty('multi-region')) { - obj['multi-region'] = _ApiClient["default"].convertToType(data['multi-region'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('project-id')) { - obj['project-id'] = _ApiClient["default"].convertToType(data['project-id'], 'String'); - } - - if (data.hasOwnProperty('purpose')) { - obj['purpose'] = _ApiClient["default"].convertToType(data['purpose'], 'String'); - } - - if (data.hasOwnProperty('regions')) { - obj['regions'] = _ApiClient["default"].convertToType(data['regions'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('tenant-secret-type')) { - obj['tenant-secret-type'] = _ApiClient["default"].convertToType(data['tenant-secret-type'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('vault-name')) { - obj['vault-name'] = _ApiClient["default"].convertToType(data['vault-name'], 'String'); - } - } - - return obj; - } - }]); - - return AssocTargetItem; -}(); -/** - * Automatically disable previous key version (required for azure targets) - * @member {Boolean} disable-previous-key-version - * @default false - */ - - -AssocTargetItem.prototype['disable-previous-key-version'] = false; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -AssocTargetItem.prototype['json'] = false; -/** - * A list of allowed operations for the key (required for azure targets) - * @member {Array.} key-operations - */ - -AssocTargetItem.prototype['key-operations'] = undefined; -/** - * Keyring name of the GCP KMS (required for gcp targets) - * @member {String} keyring-name - */ - -AssocTargetItem.prototype['keyring-name'] = undefined; -/** - * Algorithm of the key in GCP KMS (required for gcp targets) - * @member {String} kms-algorithm - */ - -AssocTargetItem.prototype['kms-algorithm'] = undefined; -/** - * Location id of the GCP KMS (required for gcp targets) - * @member {String} location-id - */ - -AssocTargetItem.prototype['location-id'] = undefined; -/** - * Set to 'true' to create a multi-region managed key. (Relevant only for Classic Key AWS targets) - * @member {String} multi-region - * @default 'false' - */ - -AssocTargetItem.prototype['multi-region'] = 'false'; -/** - * The item to associate - * @member {String} name - */ - -AssocTargetItem.prototype['name'] = undefined; -/** - * Project id of the GCP KMS (required for gcp targets) - * @member {String} project-id - */ - -AssocTargetItem.prototype['project-id'] = undefined; -/** - * Purpose of the key in GCP KMS (required for gcp targets) - * @member {String} purpose - */ - -AssocTargetItem.prototype['purpose'] = undefined; -/** - * The list of regions to create a copy of the key in (relevant for aws targets) - * @member {Array.} regions - */ - -AssocTargetItem.prototype['regions'] = undefined; -/** - * The target to associate - * @member {String} target-name - */ - -AssocTargetItem.prototype['target-name'] = undefined; -/** - * The tenant secret type [Data/SearchIndex/Analytics] (required for salesforce targets) - * @member {String} tenant-secret-type - */ - -AssocTargetItem.prototype['tenant-secret-type'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -AssocTargetItem.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -AssocTargetItem.prototype['uid-token'] = undefined; -/** - * Name of the vault used (required for azure targets) - * @member {String} vault-name - */ - -AssocTargetItem.prototype['vault-name'] = undefined; -var _default = AssocTargetItem; -exports["default"] = _default; - -/***/ }), - -/***/ 90188: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AttributeTypeAndValue model module. - * @module model/AttributeTypeAndValue - * @version 3.3.16 - */ -var AttributeTypeAndValue = /*#__PURE__*/function () { - /** - * Constructs a new AttributeTypeAndValue. - * AttributeTypeAndValue mirrors the ASN.1 structure of the same name in RFC 5280, Section 4.1.2.4. - * @alias module:model/AttributeTypeAndValue - */ - function AttributeTypeAndValue() { - _classCallCheck(this, AttributeTypeAndValue); - - AttributeTypeAndValue.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AttributeTypeAndValue, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AttributeTypeAndValue from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AttributeTypeAndValue} obj Optional instance to populate. - * @return {module:model/AttributeTypeAndValue} The populated AttributeTypeAndValue instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AttributeTypeAndValue(); - - if (data.hasOwnProperty('Type')) { - obj['Type'] = _ApiClient["default"].convertToType(data['Type'], ['Number']); - } - - if (data.hasOwnProperty('Value')) { - obj['Value'] = _ApiClient["default"].convertToType(data['Value'], Object); - } - } - - return obj; - } - }]); - - return AttributeTypeAndValue; -}(); -/** - * @member {Array.} Type - */ - - -AttributeTypeAndValue.prototype['Type'] = undefined; -/** - * @member {Object} Value - */ - -AttributeTypeAndValue.prototype['Value'] = undefined; -var _default = AttributeTypeAndValue; -exports["default"] = _default; - -/***/ }), - -/***/ 51330: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Auth model module. - * @module model/Auth - * @version 3.3.16 - */ -var Auth = /*#__PURE__*/function () { - /** - * Constructs a new Auth. - * @alias module:model/Auth - */ - function Auth() { - _classCallCheck(this, Auth); - - Auth.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Auth, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a Auth from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Auth} obj Optional instance to populate. - * @return {module:model/Auth} The populated Auth instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Auth(); - - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); - } - - if (data.hasOwnProperty('access-key')) { - obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); - } - - if (data.hasOwnProperty('access-type')) { - obj['access-type'] = _ApiClient["default"].convertToType(data['access-type'], 'String'); - } - - if (data.hasOwnProperty('account-id')) { - obj['account-id'] = _ApiClient["default"].convertToType(data['account-id'], 'String'); - } - - if (data.hasOwnProperty('admin-email')) { - obj['admin-email'] = _ApiClient["default"].convertToType(data['admin-email'], 'String'); - } - - if (data.hasOwnProperty('admin-password')) { - obj['admin-password'] = _ApiClient["default"].convertToType(data['admin-password'], 'String'); - } - - if (data.hasOwnProperty('cert-data')) { - obj['cert-data'] = _ApiClient["default"].convertToType(data['cert-data'], 'String'); - } - - if (data.hasOwnProperty('cloud-id')) { - obj['cloud-id'] = _ApiClient["default"].convertToType(data['cloud-id'], 'String'); - } - - if (data.hasOwnProperty('debug')) { - obj['debug'] = _ApiClient["default"].convertToType(data['debug'], 'Boolean'); - } - - if (data.hasOwnProperty('gateway-url')) { - obj['gateway-url'] = _ApiClient["default"].convertToType(data['gateway-url'], 'String'); - } - - if (data.hasOwnProperty('gcp-audience')) { - obj['gcp-audience'] = _ApiClient["default"].convertToType(data['gcp-audience'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt')) { - obj['jwt'] = _ApiClient["default"].convertToType(data['jwt'], 'String'); - } - - if (data.hasOwnProperty('k8s-auth-config-name')) { - obj['k8s-auth-config-name'] = _ApiClient["default"].convertToType(data['k8s-auth-config-name'], 'String'); - } - - if (data.hasOwnProperty('k8s-service-account-token')) { - obj['k8s-service-account-token'] = _ApiClient["default"].convertToType(data['k8s-service-account-token'], 'String'); - } - - if (data.hasOwnProperty('key-data')) { - obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); - } - - if (data.hasOwnProperty('ldap_password')) { - obj['ldap_password'] = _ApiClient["default"].convertToType(data['ldap_password'], 'String'); - } - - if (data.hasOwnProperty('ldap_username')) { - obj['ldap_username'] = _ApiClient["default"].convertToType(data['ldap_username'], 'String'); - } - - if (data.hasOwnProperty('uid_token')) { - obj['uid_token'] = _ApiClient["default"].convertToType(data['uid_token'], 'String'); - } - } - - return obj; - } - }]); - - return Auth; -}(); -/** - * Access ID - * @member {String} access-id - */ - - -Auth.prototype['access-id'] = undefined; -/** - * Access key (relevant only for access-type=access_key) - * @member {String} access-key - */ - -Auth.prototype['access-key'] = undefined; -/** - * Access Type (access_key/password/saml/ldap/k8s/azure_ad/oidc/aws_iam/universal_identity/jwt/gcp/cert) - * @member {String} access-type - * @default 'access_key' - */ - -Auth.prototype['access-type'] = 'access_key'; -/** - * Account id (relevant only for access-type=password where the email address is associated with more than one account) - * @member {String} account-id - */ - -Auth.prototype['account-id'] = undefined; -/** - * Email (relevant only for access-type=password) - * @member {String} admin-email - */ - -Auth.prototype['admin-email'] = undefined; -/** - * Password (relevant only for access-type=password) - * @member {String} admin-password - */ - -Auth.prototype['admin-password'] = undefined; -/** - * Certificate data encoded in base64. Used if file was not provided. (relevant only for access-type=cert) - * @member {String} cert-data - */ - -Auth.prototype['cert-data'] = undefined; -/** - * The cloud identity (relevant only for access-type=azure_ad,aws_iam,gcp) - * @member {String} cloud-id - */ - -Auth.prototype['cloud-id'] = undefined; -/** - * @member {Boolean} debug - */ - -Auth.prototype['debug'] = undefined; -/** - * Gateway URL for the K8S authenticated (relevant only for access-type=k8s) - * @member {String} gateway-url - */ - -Auth.prototype['gateway-url'] = undefined; -/** - * GCP JWT audience - * @member {String} gcp-audience - * @default 'akeyless.io' - */ - -Auth.prototype['gcp-audience'] = 'akeyless.io'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -Auth.prototype['json'] = false; -/** - * The Json Web Token (relevant only for access-type=jwt/oidc) - * @member {String} jwt - */ - -Auth.prototype['jwt'] = undefined; -/** - * The K8S Auth config name (relevant only for access-type=k8s) - * @member {String} k8s-auth-config-name - */ - -Auth.prototype['k8s-auth-config-name'] = undefined; -/** - * The K8S service account token. (relevant only for access-type=k8s) - * @member {String} k8s-service-account-token - */ - -Auth.prototype['k8s-service-account-token'] = undefined; -/** - * Private key data encoded in base64. Used if file was not provided.(relevant only for access-type=cert) - * @member {String} key-data - */ - -Auth.prototype['key-data'] = undefined; -/** - * LDAP password (relevant only for access-type=ldap) - * @member {String} ldap_password - */ - -Auth.prototype['ldap_password'] = undefined; -/** - * LDAP username (relevant only for access-type=ldap) - * @member {String} ldap_username - */ - -Auth.prototype['ldap_username'] = undefined; -/** - * The universal_identity token (relevant only for access-type=universal_identity) - * @member {String} uid_token - */ - -Auth.prototype['uid_token'] = undefined; -var _default = Auth; -exports["default"] = _default; - -/***/ }), - -/***/ 52187: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _AuthMethodAccessInfo = _interopRequireDefault(__nccwpck_require__(27225)); - -var _AuthMethodRoleAssociation = _interopRequireDefault(__nccwpck_require__(39304)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AuthMethod model module. - * @module model/AuthMethod - * @version 3.3.16 - */ -var AuthMethod = /*#__PURE__*/function () { - /** - * Constructs a new AuthMethod. - * @alias module:model/AuthMethod - */ - function AuthMethod() { - _classCallCheck(this, AuthMethod); - - AuthMethod.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AuthMethod, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AuthMethod from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AuthMethod} obj Optional instance to populate. - * @return {module:model/AuthMethod} The populated AuthMethod instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AuthMethod(); - - if (data.hasOwnProperty('access_date')) { - obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); - } - - if (data.hasOwnProperty('access_info')) { - obj['access_info'] = _AuthMethodAccessInfo["default"].constructFromObject(data['access_info']); - } - - if (data.hasOwnProperty('account_id')) { - obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); - } - - if (data.hasOwnProperty('associated_gw_ids')) { - obj['associated_gw_ids'] = _ApiClient["default"].convertToType(data['associated_gw_ids'], ['Number']); - } - - if (data.hasOwnProperty('auth_method_access_id')) { - obj['auth_method_access_id'] = _ApiClient["default"].convertToType(data['auth_method_access_id'], 'String'); - } - - if (data.hasOwnProperty('auth_method_name')) { - obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); - } - - if (data.hasOwnProperty('auth_method_roles_assoc')) { - obj['auth_method_roles_assoc'] = _ApiClient["default"].convertToType(data['auth_method_roles_assoc'], [_AuthMethodRoleAssociation["default"]]); - } - - if (data.hasOwnProperty('client_permissions')) { - obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); - } - - if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); - } - - if (data.hasOwnProperty('is_approved')) { - obj['is_approved'] = _ApiClient["default"].convertToType(data['is_approved'], 'Boolean'); - } - - if (data.hasOwnProperty('modification_date')) { - obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); - } - } - - return obj; - } - }]); - - return AuthMethod; -}(); -/** - * @member {Date} access_date - */ - - -AuthMethod.prototype['access_date'] = undefined; -/** - * @member {module:model/AuthMethodAccessInfo} access_info - */ - -AuthMethod.prototype['access_info'] = undefined; -/** - * @member {String} account_id - */ - -AuthMethod.prototype['account_id'] = undefined; -/** - * @member {Array.} associated_gw_ids - */ - -AuthMethod.prototype['associated_gw_ids'] = undefined; -/** - * @member {String} auth_method_access_id - */ - -AuthMethod.prototype['auth_method_access_id'] = undefined; -/** - * @member {String} auth_method_name - */ - -AuthMethod.prototype['auth_method_name'] = undefined; -/** - * @member {Array.} auth_method_roles_assoc - */ - -AuthMethod.prototype['auth_method_roles_assoc'] = undefined; -/** - * @member {Array.} client_permissions - */ - -AuthMethod.prototype['client_permissions'] = undefined; -/** - * @member {Date} creation_date - */ - -AuthMethod.prototype['creation_date'] = undefined; -/** - * @member {Boolean} is_approved - */ - -AuthMethod.prototype['is_approved'] = undefined; -/** - * @member {Date} modification_date - */ - -AuthMethod.prototype['modification_date'] = undefined; -var _default = AuthMethod; -exports["default"] = _default; - -/***/ }), - -/***/ 27225: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _APIKeyAccessRules = _interopRequireDefault(__nccwpck_require__(84834)); - -var _AWSIAMAccessRules = _interopRequireDefault(__nccwpck_require__(74237)); - -var _AzureADAccessRules = _interopRequireDefault(__nccwpck_require__(20467)); - -var _CertAccessRules = _interopRequireDefault(__nccwpck_require__(38173)); - -var _EmailPassAccessRules = _interopRequireDefault(__nccwpck_require__(42046)); - -var _GCPAccessRules = _interopRequireDefault(__nccwpck_require__(94515)); - -var _HuaweiAccessRules = _interopRequireDefault(__nccwpck_require__(59348)); - -var _KubernetesAccessRules = _interopRequireDefault(__nccwpck_require__(71267)); - -var _LDAPAccessRules = _interopRequireDefault(__nccwpck_require__(86012)); - -var _OAuth2AccessRules = _interopRequireDefault(__nccwpck_require__(63338)); - -var _OIDCAccessRules = _interopRequireDefault(__nccwpck_require__(53344)); - -var _SAMLAccessRules = _interopRequireDefault(__nccwpck_require__(25540)); - -var _UniversalIdentityAccessRules = _interopRequireDefault(__nccwpck_require__(66824)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AuthMethodAccessInfo model module. - * @module model/AuthMethodAccessInfo - * @version 3.3.16 - */ -var AuthMethodAccessInfo = /*#__PURE__*/function () { - /** - * Constructs a new AuthMethodAccessInfo. - * @alias module:model/AuthMethodAccessInfo - */ - function AuthMethodAccessInfo() { - _classCallCheck(this, AuthMethodAccessInfo); - - AuthMethodAccessInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AuthMethodAccessInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AuthMethodAccessInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AuthMethodAccessInfo} obj Optional instance to populate. - * @return {module:model/AuthMethodAccessInfo} The populated AuthMethodAccessInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AuthMethodAccessInfo(); - - if (data.hasOwnProperty('access_expires')) { - obj['access_expires'] = _ApiClient["default"].convertToType(data['access_expires'], 'Number'); - } - - if (data.hasOwnProperty('access_id_alias')) { - obj['access_id_alias'] = _ApiClient["default"].convertToType(data['access_id_alias'], 'String'); - } - - if (data.hasOwnProperty('api_key_access_rules')) { - obj['api_key_access_rules'] = _APIKeyAccessRules["default"].constructFromObject(data['api_key_access_rules']); - } - - if (data.hasOwnProperty('aws_iam_access_rules')) { - obj['aws_iam_access_rules'] = _AWSIAMAccessRules["default"].constructFromObject(data['aws_iam_access_rules']); - } - - if (data.hasOwnProperty('azure_ad_access_rules')) { - obj['azure_ad_access_rules'] = _AzureADAccessRules["default"].constructFromObject(data['azure_ad_access_rules']); - } - - if (data.hasOwnProperty('cert_access_rules')) { - obj['cert_access_rules'] = _CertAccessRules["default"].constructFromObject(data['cert_access_rules']); - } - - if (data.hasOwnProperty('cidr_whitelist')) { - obj['cidr_whitelist'] = _ApiClient["default"].convertToType(data['cidr_whitelist'], 'String'); - } - - if (data.hasOwnProperty('email_pass_access_rules')) { - obj['email_pass_access_rules'] = _EmailPassAccessRules["default"].constructFromObject(data['email_pass_access_rules']); - } - - if (data.hasOwnProperty('force_sub_claims')) { - obj['force_sub_claims'] = _ApiClient["default"].convertToType(data['force_sub_claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gcp_access_rules')) { - obj['gcp_access_rules'] = _GCPAccessRules["default"].constructFromObject(data['gcp_access_rules']); - } - - if (data.hasOwnProperty('gw_cidr_whitelist')) { - obj['gw_cidr_whitelist'] = _ApiClient["default"].convertToType(data['gw_cidr_whitelist'], 'String'); - } - - if (data.hasOwnProperty('huawei_access_rules')) { - obj['huawei_access_rules'] = _HuaweiAccessRules["default"].constructFromObject(data['huawei_access_rules']); - } - - if (data.hasOwnProperty('jwt_ttl')) { - obj['jwt_ttl'] = _ApiClient["default"].convertToType(data['jwt_ttl'], 'Number'); - } - - if (data.hasOwnProperty('k8s_access_rules')) { - obj['k8s_access_rules'] = _KubernetesAccessRules["default"].constructFromObject(data['k8s_access_rules']); - } - - if (data.hasOwnProperty('ldap_access_rules')) { - obj['ldap_access_rules'] = _LDAPAccessRules["default"].constructFromObject(data['ldap_access_rules']); - } - - if (data.hasOwnProperty('oauth2_access_rules')) { - obj['oauth2_access_rules'] = _OAuth2AccessRules["default"].constructFromObject(data['oauth2_access_rules']); - } - - if (data.hasOwnProperty('oidc_access_rules')) { - obj['oidc_access_rules'] = _OIDCAccessRules["default"].constructFromObject(data['oidc_access_rules']); - } - - if (data.hasOwnProperty('rules_type')) { - obj['rules_type'] = _ApiClient["default"].convertToType(data['rules_type'], 'String'); - } - - if (data.hasOwnProperty('saml_access_rules')) { - obj['saml_access_rules'] = _SAMLAccessRules["default"].constructFromObject(data['saml_access_rules']); - } - - if (data.hasOwnProperty('universal_identity_access_rules')) { - obj['universal_identity_access_rules'] = _UniversalIdentityAccessRules["default"].constructFromObject(data['universal_identity_access_rules']); - } - } - - return obj; - } - }]); - - return AuthMethodAccessInfo; -}(); -/** - * @member {Number} access_expires - */ - - -AuthMethodAccessInfo.prototype['access_expires'] = undefined; -/** - * for accounts where AccessId holds encrypted email this field will hold generated AccessId, for accounts based on regular AccessId it will be equal to accessId itself - * @member {String} access_id_alias - */ - -AuthMethodAccessInfo.prototype['access_id_alias'] = undefined; -/** - * @member {module:model/APIKeyAccessRules} api_key_access_rules - */ - -AuthMethodAccessInfo.prototype['api_key_access_rules'] = undefined; -/** - * @member {module:model/AWSIAMAccessRules} aws_iam_access_rules - */ - -AuthMethodAccessInfo.prototype['aws_iam_access_rules'] = undefined; -/** - * @member {module:model/AzureADAccessRules} azure_ad_access_rules - */ - -AuthMethodAccessInfo.prototype['azure_ad_access_rules'] = undefined; -/** - * @member {module:model/CertAccessRules} cert_access_rules - */ - -AuthMethodAccessInfo.prototype['cert_access_rules'] = undefined; -/** - * @member {String} cidr_whitelist - */ - -AuthMethodAccessInfo.prototype['cidr_whitelist'] = undefined; -/** - * @member {module:model/EmailPassAccessRules} email_pass_access_rules - */ - -AuthMethodAccessInfo.prototype['email_pass_access_rules'] = undefined; -/** - * if true the role associated with this auth method must include sub claims - * @member {Boolean} force_sub_claims - */ - -AuthMethodAccessInfo.prototype['force_sub_claims'] = undefined; -/** - * @member {module:model/GCPAccessRules} gcp_access_rules - */ - -AuthMethodAccessInfo.prototype['gcp_access_rules'] = undefined; -/** - * @member {String} gw_cidr_whitelist - */ - -AuthMethodAccessInfo.prototype['gw_cidr_whitelist'] = undefined; -/** - * @member {module:model/HuaweiAccessRules} huawei_access_rules - */ - -AuthMethodAccessInfo.prototype['huawei_access_rules'] = undefined; -/** - * @member {Number} jwt_ttl - */ - -AuthMethodAccessInfo.prototype['jwt_ttl'] = undefined; -/** - * @member {module:model/KubernetesAccessRules} k8s_access_rules - */ - -AuthMethodAccessInfo.prototype['k8s_access_rules'] = undefined; -/** - * @member {module:model/LDAPAccessRules} ldap_access_rules - */ - -AuthMethodAccessInfo.prototype['ldap_access_rules'] = undefined; -/** - * @member {module:model/OAuth2AccessRules} oauth2_access_rules - */ - -AuthMethodAccessInfo.prototype['oauth2_access_rules'] = undefined; -/** - * @member {module:model/OIDCAccessRules} oidc_access_rules - */ - -AuthMethodAccessInfo.prototype['oidc_access_rules'] = undefined; -/** - * @member {String} rules_type - */ - -AuthMethodAccessInfo.prototype['rules_type'] = undefined; -/** - * @member {module:model/SAMLAccessRules} saml_access_rules - */ - -AuthMethodAccessInfo.prototype['saml_access_rules'] = undefined; -/** - * @member {module:model/UniversalIdentityAccessRules} universal_identity_access_rules - */ - -AuthMethodAccessInfo.prototype['universal_identity_access_rules'] = undefined; -var _default = AuthMethodAccessInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 39304: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _Rules = _interopRequireDefault(__nccwpck_require__(74529)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AuthMethodRoleAssociation model module. - * @module model/AuthMethodRoleAssociation - * @version 3.3.16 - */ -var AuthMethodRoleAssociation = /*#__PURE__*/function () { - /** - * Constructs a new AuthMethodRoleAssociation. - * AuthMethodRoleAssociation includes details of an association between an auth method and a role. - * @alias module:model/AuthMethodRoleAssociation - */ - function AuthMethodRoleAssociation() { - _classCallCheck(this, AuthMethodRoleAssociation); - - AuthMethodRoleAssociation.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AuthMethodRoleAssociation, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AuthMethodRoleAssociation from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AuthMethodRoleAssociation} obj Optional instance to populate. - * @return {module:model/AuthMethodRoleAssociation} The populated AuthMethodRoleAssociation instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AuthMethodRoleAssociation(); - - if (data.hasOwnProperty('allowed_ops')) { - obj['allowed_ops'] = _ApiClient["default"].convertToType(data['allowed_ops'], ['String']); - } - - if (data.hasOwnProperty('assoc_id')) { - obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); - } - - if (data.hasOwnProperty('auth_method_sub_claims')) { - obj['auth_method_sub_claims'] = _ApiClient["default"].convertToType(data['auth_method_sub_claims'], { - 'String': ['String'] - }); - } - - if (data.hasOwnProperty('is_sub_claims_case_sensitive')) { - obj['is_sub_claims_case_sensitive'] = _ApiClient["default"].convertToType(data['is_sub_claims_case_sensitive'], 'Boolean'); - } - - if (data.hasOwnProperty('role_name')) { - obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], 'String'); - } - - if (data.hasOwnProperty('rules')) { - obj['rules'] = _Rules["default"].constructFromObject(data['rules']); - } - } - - return obj; - } - }]); - - return AuthMethodRoleAssociation; -}(); -/** - * @member {Array.} allowed_ops - */ - - -AuthMethodRoleAssociation.prototype['allowed_ops'] = undefined; -/** - * @member {String} assoc_id - */ - -AuthMethodRoleAssociation.prototype['assoc_id'] = undefined; -/** - * @member {Object.>} auth_method_sub_claims - */ - -AuthMethodRoleAssociation.prototype['auth_method_sub_claims'] = undefined; -/** - * @member {Boolean} is_sub_claims_case_sensitive - */ - -AuthMethodRoleAssociation.prototype['is_sub_claims_case_sensitive'] = undefined; -/** - * @member {String} role_name - */ - -AuthMethodRoleAssociation.prototype['role_name'] = undefined; -/** - * @member {module:model/Rules} rules - */ - -AuthMethodRoleAssociation.prototype['rules'] = undefined; -var _default = AuthMethodRoleAssociation; -exports["default"] = _default; - -/***/ }), - -/***/ 68871: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _SystemAccessCredentialsReplyObj = _interopRequireDefault(__nccwpck_require__(58908)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AuthOutput model module. - * @module model/AuthOutput - * @version 3.3.16 - */ -var AuthOutput = /*#__PURE__*/function () { - /** - * Constructs a new AuthOutput. - * @alias module:model/AuthOutput - */ - function AuthOutput() { - _classCallCheck(this, AuthOutput); - - AuthOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AuthOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AuthOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AuthOutput} obj Optional instance to populate. - * @return {module:model/AuthOutput} The populated AuthOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AuthOutput(); - - if (data.hasOwnProperty('creds')) { - obj['creds'] = _SystemAccessCredentialsReplyObj["default"].constructFromObject(data['creds']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - } - - return obj; - } - }]); - - return AuthOutput; -}(); -/** - * @member {module:model/SystemAccessCredentialsReplyObj} creds - */ - - -AuthOutput.prototype['creds'] = undefined; -/** - * @member {String} token - */ - -AuthOutput.prototype['token'] = undefined; -var _default = AuthOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 20090: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AwsS3LogForwardingConfig model module. - * @module model/AwsS3LogForwardingConfig - * @version 3.3.16 - */ -var AwsS3LogForwardingConfig = /*#__PURE__*/function () { - /** - * Constructs a new AwsS3LogForwardingConfig. - * @alias module:model/AwsS3LogForwardingConfig - */ - function AwsS3LogForwardingConfig() { - _classCallCheck(this, AwsS3LogForwardingConfig); - - AwsS3LogForwardingConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AwsS3LogForwardingConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AwsS3LogForwardingConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AwsS3LogForwardingConfig} obj Optional instance to populate. - * @return {module:model/AwsS3LogForwardingConfig} The populated AwsS3LogForwardingConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AwsS3LogForwardingConfig(); - - if (data.hasOwnProperty('aws_access_id')) { - obj['aws_access_id'] = _ApiClient["default"].convertToType(data['aws_access_id'], 'String'); - } - - if (data.hasOwnProperty('aws_access_key')) { - obj['aws_access_key'] = _ApiClient["default"].convertToType(data['aws_access_key'], 'String'); - } - - if (data.hasOwnProperty('aws_region')) { - obj['aws_region'] = _ApiClient["default"].convertToType(data['aws_region'], 'String'); - } - - if (data.hasOwnProperty('aws_use_gateway_cloud_identity')) { - obj['aws_use_gateway_cloud_identity'] = _ApiClient["default"].convertToType(data['aws_use_gateway_cloud_identity'], 'Boolean'); - } - - if (data.hasOwnProperty('bucket_name')) { - obj['bucket_name'] = _ApiClient["default"].convertToType(data['bucket_name'], 'String'); - } - - if (data.hasOwnProperty('log_folder')) { - obj['log_folder'] = _ApiClient["default"].convertToType(data['log_folder'], 'String'); - } - } - - return obj; - } - }]); - - return AwsS3LogForwardingConfig; -}(); -/** - * @member {String} aws_access_id - */ - - -AwsS3LogForwardingConfig.prototype['aws_access_id'] = undefined; -/** - * @member {String} aws_access_key - */ - -AwsS3LogForwardingConfig.prototype['aws_access_key'] = undefined; -/** - * @member {String} aws_region - */ - -AwsS3LogForwardingConfig.prototype['aws_region'] = undefined; -/** - * @member {Boolean} aws_use_gateway_cloud_identity - */ - -AwsS3LogForwardingConfig.prototype['aws_use_gateway_cloud_identity'] = undefined; -/** - * @member {String} bucket_name - */ - -AwsS3LogForwardingConfig.prototype['bucket_name'] = undefined; -/** - * @member {String} log_folder - */ - -AwsS3LogForwardingConfig.prototype['log_folder'] = undefined; -var _default = AwsS3LogForwardingConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 20467: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AzureADAccessRules model module. - * @module model/AzureADAccessRules - * @version 3.3.16 - */ -var AzureADAccessRules = /*#__PURE__*/function () { - /** - * Constructs a new AzureADAccessRules. - * AzureADAccessRules contains access rules specific to Azure Active Directory authentication. - * @alias module:model/AzureADAccessRules - */ - function AzureADAccessRules() { - _classCallCheck(this, AzureADAccessRules); - - AzureADAccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AzureADAccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AzureADAccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AzureADAccessRules} obj Optional instance to populate. - * @return {module:model/AzureADAccessRules} The populated AzureADAccessRules instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AzureADAccessRules(); - - if (data.hasOwnProperty('ad_endpoint')) { - obj['ad_endpoint'] = _ApiClient["default"].convertToType(data['ad_endpoint'], 'String'); - } - - if (data.hasOwnProperty('bound_group_ids')) { - obj['bound_group_ids'] = _ApiClient["default"].convertToType(data['bound_group_ids'], ['String']); - } - - if (data.hasOwnProperty('bound_resource_groups')) { - obj['bound_resource_groups'] = _ApiClient["default"].convertToType(data['bound_resource_groups'], ['String']); - } - - if (data.hasOwnProperty('bound_resource_ids')) { - obj['bound_resource_ids'] = _ApiClient["default"].convertToType(data['bound_resource_ids'], ['String']); - } - - if (data.hasOwnProperty('bound_resource_names')) { - obj['bound_resource_names'] = _ApiClient["default"].convertToType(data['bound_resource_names'], ['String']); - } - - if (data.hasOwnProperty('bound_resource_providers')) { - obj['bound_resource_providers'] = _ApiClient["default"].convertToType(data['bound_resource_providers'], ['String']); - } - - if (data.hasOwnProperty('bound_resource_types')) { - obj['bound_resource_types'] = _ApiClient["default"].convertToType(data['bound_resource_types'], ['String']); - } - - if (data.hasOwnProperty('bound_service_principal_ids')) { - obj['bound_service_principal_ids'] = _ApiClient["default"].convertToType(data['bound_service_principal_ids'], ['String']); - } - - if (data.hasOwnProperty('bound_subscription_ids')) { - obj['bound_subscription_ids'] = _ApiClient["default"].convertToType(data['bound_subscription_ids'], ['String']); - } - - if (data.hasOwnProperty('bound_tenant_id')) { - obj['bound_tenant_id'] = _ApiClient["default"].convertToType(data['bound_tenant_id'], 'String'); - } - - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); - } - - if (data.hasOwnProperty('jwks_uri')) { - obj['jwks_uri'] = _ApiClient["default"].convertToType(data['jwks_uri'], 'String'); - } - } - - return obj; - } - }]); - - return AzureADAccessRules; -}(); -/** - * The audience in the JWT. - * @member {String} ad_endpoint - */ - - -AzureADAccessRules.prototype['ad_endpoint'] = undefined; -/** - * The list of group ids that login is restricted to. - * @member {Array.} bound_group_ids - */ - -AzureADAccessRules.prototype['bound_group_ids'] = undefined; -/** - * The list of resource groups that login is restricted to. - * @member {Array.} bound_resource_groups - */ - -AzureADAccessRules.prototype['bound_resource_groups'] = undefined; -/** - * The list of full resource ids that the login is restricted to. - * @member {Array.} bound_resource_ids - */ - -AzureADAccessRules.prototype['bound_resource_ids'] = undefined; -/** - * The list of resource names that the login is restricted to (e.g, a virtual machine name, scale set name, etc). - * @member {Array.} bound_resource_names - */ - -AzureADAccessRules.prototype['bound_resource_names'] = undefined; -/** - * The list of resource providers that login is restricted to (e.g, Microsoft.Compute, Microsoft.ManagedIdentity, etc). - * @member {Array.} bound_resource_providers - */ - -AzureADAccessRules.prototype['bound_resource_providers'] = undefined; -/** - * The list of resource types that login is restricted to (e.g, virtualMachines, userAssignedIdentities, etc). - * @member {Array.} bound_resource_types - */ - -AzureADAccessRules.prototype['bound_resource_types'] = undefined; -/** - * The list of service principal IDs that login is restricted to. - * @member {Array.} bound_service_principal_ids - */ - -AzureADAccessRules.prototype['bound_service_principal_ids'] = undefined; -/** - * The list of subscription IDs that login is restricted to. - * @member {Array.} bound_subscription_ids - */ - -AzureADAccessRules.prototype['bound_subscription_ids'] = undefined; -/** - * The tenants id for the Azure Active Directory organization. - * @member {String} bound_tenant_id - */ - -AzureADAccessRules.prototype['bound_tenant_id'] = undefined; -/** - * Issuer URL - * @member {String} issuer - */ - -AzureADAccessRules.prototype['issuer'] = undefined; -/** - * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. - * @member {String} jwks_uri - */ - -AzureADAccessRules.prototype['jwks_uri'] = undefined; -var _default = AzureADAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 15410: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _AzurePayload = _interopRequireDefault(__nccwpck_require__(85035)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AzureKeyVaultMigration model module. - * @module model/AzureKeyVaultMigration - * @version 3.3.16 - */ -var AzureKeyVaultMigration = /*#__PURE__*/function () { - /** - * Constructs a new AzureKeyVaultMigration. - * @alias module:model/AzureKeyVaultMigration - */ - function AzureKeyVaultMigration() { - _classCallCheck(this, AzureKeyVaultMigration); - - AzureKeyVaultMigration.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AzureKeyVaultMigration, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AzureKeyVaultMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AzureKeyVaultMigration} obj Optional instance to populate. - * @return {module:model/AzureKeyVaultMigration} The populated AzureKeyVaultMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AzureKeyVaultMigration(); - - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); - } - - if (data.hasOwnProperty('payload')) { - obj['payload'] = _AzurePayload["default"].constructFromObject(data['payload']); - } - } - - return obj; - } - }]); - - return AzureKeyVaultMigration; -}(); -/** - * @member {module:model/MigrationGeneral} general - */ - - -AzureKeyVaultMigration.prototype['general'] = undefined; -/** - * @member {module:model/AzurePayload} payload - */ - -AzureKeyVaultMigration.prototype['payload'] = undefined; -var _default = AzureKeyVaultMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 20430: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AzureLogAnalyticsForwardingConfig model module. - * @module model/AzureLogAnalyticsForwardingConfig - * @version 3.3.16 - */ -var AzureLogAnalyticsForwardingConfig = /*#__PURE__*/function () { - /** - * Constructs a new AzureLogAnalyticsForwardingConfig. - * @alias module:model/AzureLogAnalyticsForwardingConfig - */ - function AzureLogAnalyticsForwardingConfig() { - _classCallCheck(this, AzureLogAnalyticsForwardingConfig); - - AzureLogAnalyticsForwardingConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AzureLogAnalyticsForwardingConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AzureLogAnalyticsForwardingConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AzureLogAnalyticsForwardingConfig} obj Optional instance to populate. - * @return {module:model/AzureLogAnalyticsForwardingConfig} The populated AzureLogAnalyticsForwardingConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AzureLogAnalyticsForwardingConfig(); - - if (data.hasOwnProperty('azure_workspace_id')) { - obj['azure_workspace_id'] = _ApiClient["default"].convertToType(data['azure_workspace_id'], 'String'); - } - - if (data.hasOwnProperty('azure_workspace_key')) { - obj['azure_workspace_key'] = _ApiClient["default"].convertToType(data['azure_workspace_key'], 'String'); - } - } - - return obj; - } - }]); - - return AzureLogAnalyticsForwardingConfig; -}(); -/** - * @member {String} azure_workspace_id - */ - - -AzureLogAnalyticsForwardingConfig.prototype['azure_workspace_id'] = undefined; -/** - * @member {String} azure_workspace_key - */ - -AzureLogAnalyticsForwardingConfig.prototype['azure_workspace_key'] = undefined; -var _default = AzureLogAnalyticsForwardingConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 85035: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AzurePayload model module. - * @module model/AzurePayload - * @version 3.3.16 - */ -var AzurePayload = /*#__PURE__*/function () { - /** - * Constructs a new AzurePayload. - * @alias module:model/AzurePayload - */ - function AzurePayload() { - _classCallCheck(this, AzurePayload); - - AzurePayload.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AzurePayload, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AzurePayload from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AzurePayload} obj Optional instance to populate. - * @return {module:model/AzurePayload} The populated AzurePayload instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AzurePayload(); - - if (data.hasOwnProperty('client')) { - obj['client'] = _ApiClient["default"].convertToType(data['client'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('secret')) { - obj['secret'] = _ApiClient["default"].convertToType(data['secret'], 'String'); - } - - if (data.hasOwnProperty('tenant')) { - obj['tenant'] = _ApiClient["default"].convertToType(data['tenant'], 'String'); - } - } - - return obj; - } - }]); - - return AzurePayload; -}(); -/** - * @member {String} client - */ - - -AzurePayload.prototype['client'] = undefined; -/** - * @member {String} name - */ - -AzurePayload.prototype['name'] = undefined; -/** - * @member {String} secret - */ - -AzurePayload.prototype['secret'] = undefined; -/** - * @member {String} tenant - */ - -AzurePayload.prototype['tenant'] = undefined; -var _default = AzurePayload; -exports["default"] = _default; - -/***/ }), - -/***/ 58540: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The AzureTargetDetails model module. - * @module model/AzureTargetDetails - * @version 3.3.16 - */ -var AzureTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new AzureTargetDetails. - * @alias module:model/AzureTargetDetails - */ - function AzureTargetDetails() { - _classCallCheck(this, AzureTargetDetails); - - AzureTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(AzureTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a AzureTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AzureTargetDetails} obj Optional instance to populate. - * @return {module:model/AzureTargetDetails} The populated AzureTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AzureTargetDetails(); - - if (data.hasOwnProperty('azure_client_id')) { - obj['azure_client_id'] = _ApiClient["default"].convertToType(data['azure_client_id'], 'String'); - } - - if (data.hasOwnProperty('azure_client_secret')) { - obj['azure_client_secret'] = _ApiClient["default"].convertToType(data['azure_client_secret'], 'String'); - } - - if (data.hasOwnProperty('azure_resource_group_name')) { - obj['azure_resource_group_name'] = _ApiClient["default"].convertToType(data['azure_resource_group_name'], 'String'); - } - - if (data.hasOwnProperty('azure_resource_name')) { - obj['azure_resource_name'] = _ApiClient["default"].convertToType(data['azure_resource_name'], 'String'); - } - - if (data.hasOwnProperty('azure_subscription_id')) { - obj['azure_subscription_id'] = _ApiClient["default"].convertToType(data['azure_subscription_id'], 'String'); - } - - if (data.hasOwnProperty('azure_tenant_id')) { - obj['azure_tenant_id'] = _ApiClient["default"].convertToType(data['azure_tenant_id'], 'String'); - } - - if (data.hasOwnProperty('use_gw_cloud_identity')) { - obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); - } - } - - return obj; - } - }]); - - return AzureTargetDetails; -}(); -/** - * @member {String} azure_client_id - */ - - -AzureTargetDetails.prototype['azure_client_id'] = undefined; -/** - * @member {String} azure_client_secret - */ - -AzureTargetDetails.prototype['azure_client_secret'] = undefined; -/** - * @member {String} azure_resource_group_name - */ - -AzureTargetDetails.prototype['azure_resource_group_name'] = undefined; -/** - * @member {String} azure_resource_name - */ - -AzureTargetDetails.prototype['azure_resource_name'] = undefined; -/** - * @member {String} azure_subscription_id - */ - -AzureTargetDetails.prototype['azure_subscription_id'] = undefined; -/** - * @member {String} azure_tenant_id - */ - -AzureTargetDetails.prototype['azure_tenant_id'] = undefined; -/** - * @member {Boolean} use_gw_cloud_identity - */ - -AzureTargetDetails.prototype['use_gw_cloud_identity'] = undefined; -var _default = AzureTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 62548: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The BastionListEntry model module. - * @module model/BastionListEntry - * @version 3.3.16 - */ -var BastionListEntry = /*#__PURE__*/function () { - /** - * Constructs a new BastionListEntry. - * @alias module:model/BastionListEntry - */ - function BastionListEntry() { - _classCallCheck(this, BastionListEntry); - - BastionListEntry.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(BastionListEntry, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a BastionListEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BastionListEntry} obj Optional instance to populate. - * @return {module:model/BastionListEntry} The populated BastionListEntry instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new BastionListEntry(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - - if (data.hasOwnProperty('allowed_access_ids')) { - obj['allowed_access_ids'] = _ApiClient["default"].convertToType(data['allowed_access_ids'], ['String']); - } - - if (data.hasOwnProperty('allowed_urls')) { - obj['allowed_urls'] = _ApiClient["default"].convertToType(data['allowed_urls'], ['String']); - } - - if (data.hasOwnProperty('allowed_urls_per_instance')) { - obj['allowed_urls_per_instance'] = _ApiClient["default"].convertToType(data['allowed_urls_per_instance'], { - 'String': ['String'] - }); - } - - if (data.hasOwnProperty('cluster_name')) { - obj['cluster_name'] = _ApiClient["default"].convertToType(data['cluster_name'], 'String'); - } - - if (data.hasOwnProperty('display_name')) { - obj['display_name'] = _ApiClient["default"].convertToType(data['display_name'], 'String'); - } - - if (data.hasOwnProperty('last_report')) { - obj['last_report'] = _ApiClient["default"].convertToType(data['last_report'], 'Date'); - } - } - - return obj; - } - }]); - - return BastionListEntry; -}(); -/** - * @member {String} access_id - */ - - -BastionListEntry.prototype['access_id'] = undefined; -/** - * @member {Array.} allowed_access_ids - */ - -BastionListEntry.prototype['allowed_access_ids'] = undefined; -/** - * @member {Array.} allowed_urls - */ - -BastionListEntry.prototype['allowed_urls'] = undefined; -/** - * @member {Object.>} allowed_urls_per_instance - */ - -BastionListEntry.prototype['allowed_urls_per_instance'] = undefined; -/** - * @member {String} cluster_name - */ - -BastionListEntry.prototype['cluster_name'] = undefined; -/** - * @member {String} display_name - */ - -BastionListEntry.prototype['display_name'] = undefined; -/** - * @member {Date} last_report - */ - -BastionListEntry.prototype['last_report'] = undefined; -var _default = BastionListEntry; -exports["default"] = _default; - -/***/ }), - -/***/ 34873: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _BastionListEntry = _interopRequireDefault(__nccwpck_require__(62548)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The BastionsList model module. - * @module model/BastionsList - * @version 3.3.16 - */ -var BastionsList = /*#__PURE__*/function () { - /** - * Constructs a new BastionsList. - * @alias module:model/BastionsList - */ - function BastionsList() { - _classCallCheck(this, BastionsList); - - BastionsList.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(BastionsList, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a BastionsList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BastionsList} obj Optional instance to populate. - * @return {module:model/BastionsList} The populated BastionsList instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new BastionsList(); - - if (data.hasOwnProperty('clusters')) { - obj['clusters'] = _ApiClient["default"].convertToType(data['clusters'], [_BastionListEntry["default"]]); - } - } - - return obj; - } - }]); - - return BastionsList; -}(); -/** - * @member {Array.} clusters - */ - - -BastionsList.prototype['clusters'] = undefined; -var _default = BastionsList; -exports["default"] = _default; - -/***/ }), - -/***/ 6102: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CFConfigPart model module. - * @module model/CFConfigPart - * @version 3.3.16 - */ -var CFConfigPart = /*#__PURE__*/function () { - /** - * Constructs a new CFConfigPart. - * @alias module:model/CFConfigPart - */ - function CFConfigPart() { - _classCallCheck(this, CFConfigPart); - - CFConfigPart.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CFConfigPart, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CFConfigPart from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CFConfigPart} obj Optional instance to populate. - * @return {module:model/CFConfigPart} The populated CFConfigPart instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CFConfigPart(); - - if (data.hasOwnProperty('customer_fragements')) { - obj['customer_fragements'] = _ApiClient["default"].convertToType(data['customer_fragements'], { - 'String': 'String' - }); - } - } - - return obj; - } - }]); - - return CFConfigPart; -}(); -/** - * @member {Object.} customer_fragements - */ - - -CFConfigPart.prototype['customer_fragements'] = undefined; -var _default = CFConfigPart; -exports["default"] = _default; - -/***/ }), - -/***/ 31951: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CacheConfigPart model module. - * @module model/CacheConfigPart - * @version 3.3.16 - */ -var CacheConfigPart = /*#__PURE__*/function () { - /** - * Constructs a new CacheConfigPart. - * @alias module:model/CacheConfigPart - */ - function CacheConfigPart() { - _classCallCheck(this, CacheConfigPart); - - CacheConfigPart.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CacheConfigPart, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CacheConfigPart from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CacheConfigPart} obj Optional instance to populate. - * @return {module:model/CacheConfigPart} The populated CacheConfigPart instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CacheConfigPart(); - - if (data.hasOwnProperty('cache_enable')) { - obj['cache_enable'] = _ApiClient["default"].convertToType(data['cache_enable'], 'Boolean'); - } - - if (data.hasOwnProperty('cache_ttl')) { - obj['cache_ttl'] = _ApiClient["default"].convertToType(data['cache_ttl'], 'String'); - } - - if (data.hasOwnProperty('proactive_cache_dump_interval')) { - obj['proactive_cache_dump_interval'] = _ApiClient["default"].convertToType(data['proactive_cache_dump_interval'], 'String'); - } - - if (data.hasOwnProperty('proactive_cache_enable')) { - obj['proactive_cache_enable'] = _ApiClient["default"].convertToType(data['proactive_cache_enable'], 'Boolean'); - } - - if (data.hasOwnProperty('proactive_cache_minimum_fetching_time')) { - obj['proactive_cache_minimum_fetching_time'] = _ApiClient["default"].convertToType(data['proactive_cache_minimum_fetching_time'], 'String'); - } - } - - return obj; - } - }]); - - return CacheConfigPart; -}(); -/** - * @member {Boolean} cache_enable - */ - - -CacheConfigPart.prototype['cache_enable'] = undefined; -/** - * @member {String} cache_ttl - */ - -CacheConfigPart.prototype['cache_ttl'] = undefined; -/** - * @member {String} proactive_cache_dump_interval - */ - -CacheConfigPart.prototype['proactive_cache_dump_interval'] = undefined; -/** - * @member {Boolean} proactive_cache_enable - */ - -CacheConfigPart.prototype['proactive_cache_enable'] = undefined; -/** - * @member {String} proactive_cache_minimum_fetching_time - */ - -CacheConfigPart.prototype['proactive_cache_minimum_fetching_time'] = undefined; -var _default = CacheConfigPart; -exports["default"] = _default; - -/***/ }), - -/***/ 38173: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CertAccessRules model module. - * @module model/CertAccessRules - * @version 3.3.16 - */ -var CertAccessRules = /*#__PURE__*/function () { - /** - * Constructs a new CertAccessRules. - * @alias module:model/CertAccessRules - */ - function CertAccessRules() { - _classCallCheck(this, CertAccessRules); - - CertAccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CertAccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CertAccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CertAccessRules} obj Optional instance to populate. - * @return {module:model/CertAccessRules} The populated CertAccessRules instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CertAccessRules(); - - if (data.hasOwnProperty('allowed_cors')) { - obj['allowed_cors'] = _ApiClient["default"].convertToType(data['allowed_cors'], ['String']); - } - - if (data.hasOwnProperty('bound_common_names')) { - obj['bound_common_names'] = _ApiClient["default"].convertToType(data['bound_common_names'], ['String']); - } - - if (data.hasOwnProperty('bound_dns_sans')) { - obj['bound_dns_sans'] = _ApiClient["default"].convertToType(data['bound_dns_sans'], ['String']); - } - - if (data.hasOwnProperty('bound_email_sans')) { - obj['bound_email_sans'] = _ApiClient["default"].convertToType(data['bound_email_sans'], ['String']); - } - - if (data.hasOwnProperty('bound_extensions')) { - obj['bound_extensions'] = _ApiClient["default"].convertToType(data['bound_extensions'], ['String']); - } - - if (data.hasOwnProperty('bound_organizational_units')) { - obj['bound_organizational_units'] = _ApiClient["default"].convertToType(data['bound_organizational_units'], ['String']); - } - - if (data.hasOwnProperty('bound_uri_sans')) { - obj['bound_uri_sans'] = _ApiClient["default"].convertToType(data['bound_uri_sans'], ['String']); - } - - if (data.hasOwnProperty('certificate')) { - obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); - } - - if (data.hasOwnProperty('revoked_cert_ids')) { - obj['revoked_cert_ids'] = _ApiClient["default"].convertToType(data['revoked_cert_ids'], ['String']); - } - - if (data.hasOwnProperty('unique_identifier')) { - obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); - } - } - - return obj; - } - }]); - - return CertAccessRules; -}(); -/** - * a list of allowed cors domains if used for browser authentication - * @member {Array.} allowed_cors - */ - - -CertAccessRules.prototype['allowed_cors'] = undefined; -/** - * A list of names. At least one must exist in the Common Name. Supports globbing. - * @member {Array.} bound_common_names - */ - -CertAccessRules.prototype['bound_common_names'] = undefined; -/** - * A list of DNS names. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound_dns_sans - */ - -CertAccessRules.prototype['bound_dns_sans'] = undefined; -/** - * A list of Email Addresses. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound_email_sans - */ - -CertAccessRules.prototype['bound_email_sans'] = undefined; -/** - * A list of extensions formatted as \"oid:value\". Expects the extension value to be some type of ASN1 encoded string. All values must match. Supports globbing on \"value\". - * @member {Array.} bound_extensions - */ - -CertAccessRules.prototype['bound_extensions'] = undefined; -/** - * A list of Organizational Units names. At least one must exist in the OU field. - * @member {Array.} bound_organizational_units - */ - -CertAccessRules.prototype['bound_organizational_units'] = undefined; -/** - * A list of URIs. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound_uri_sans - */ - -CertAccessRules.prototype['bound_uri_sans'] = undefined; -/** - * Base64 encdoed PEM certificate - * @member {String} certificate - */ - -CertAccessRules.prototype['certificate'] = undefined; -/** - * A list of revoked cert ids - * @member {Array.} revoked_cert_ids - */ - -CertAccessRules.prototype['revoked_cert_ids'] = undefined; -/** - * A unique identifier to distinguish different users - * @member {String} unique_identifier - */ - -CertAccessRules.prototype['unique_identifier'] = undefined; -var _default = CertAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 60084: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _CertificateExpirationEvent = _interopRequireDefault(__nccwpck_require__(61726)); - -var _CertificateInfo = _interopRequireDefault(__nccwpck_require__(25201)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CertificateChainInfo model module. - * @module model/CertificateChainInfo - * @version 3.3.16 - */ -var CertificateChainInfo = /*#__PURE__*/function () { - /** - * Constructs a new CertificateChainInfo. - * @alias module:model/CertificateChainInfo - */ - function CertificateChainInfo() { - _classCallCheck(this, CertificateChainInfo); - - CertificateChainInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CertificateChainInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CertificateChainInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CertificateChainInfo} obj Optional instance to populate. - * @return {module:model/CertificateChainInfo} The populated CertificateChainInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CertificateChainInfo(); - - if (data.hasOwnProperty('certificate_chain')) { - obj['certificate_chain'] = _ApiClient["default"].convertToType(data['certificate_chain'], [_CertificateInfo["default"]]); - } - - if (data.hasOwnProperty('certificate_format')) { - obj['certificate_format'] = _ApiClient["default"].convertToType(data['certificate_format'], 'String'); - } - - if (data.hasOwnProperty('certificate_issuer_item_id')) { - obj['certificate_issuer_item_id'] = _ApiClient["default"].convertToType(data['certificate_issuer_item_id'], 'Number'); - } - - if (data.hasOwnProperty('certificate_issuer_name')) { - obj['certificate_issuer_name'] = _ApiClient["default"].convertToType(data['certificate_issuer_name'], 'String'); - } - - if (data.hasOwnProperty('certificate_pem')) { - obj['certificate_pem'] = _ApiClient["default"].convertToType(data['certificate_pem'], 'String'); - } - - if (data.hasOwnProperty('certificate_status')) { - obj['certificate_status'] = _ApiClient["default"].convertToType(data['certificate_status'], 'String'); - } - - if (data.hasOwnProperty('expiration_events')) { - obj['expiration_events'] = _ApiClient["default"].convertToType(data['expiration_events'], [_CertificateExpirationEvent["default"]]); - } - } - - return obj; - } - }]); - - return CertificateChainInfo; -}(); -/** - * @member {Array.} certificate_chain - */ - - -CertificateChainInfo.prototype['certificate_chain'] = undefined; -/** - * @member {String} certificate_format - */ - -CertificateChainInfo.prototype['certificate_format'] = undefined; -/** - * @member {Number} certificate_issuer_item_id - */ - -CertificateChainInfo.prototype['certificate_issuer_item_id'] = undefined; -/** - * @member {String} certificate_issuer_name - */ - -CertificateChainInfo.prototype['certificate_issuer_name'] = undefined; -/** - * @member {String} certificate_pem - */ - -CertificateChainInfo.prototype['certificate_pem'] = undefined; -/** - * @member {String} certificate_status - */ - -CertificateChainInfo.prototype['certificate_status'] = undefined; -/** - * @member {Array.} expiration_events - */ - -CertificateChainInfo.prototype['expiration_events'] = undefined; -var _default = CertificateChainInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 61726: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CertificateExpirationEvent model module. - * @module model/CertificateExpirationEvent - * @version 3.3.16 - */ -var CertificateExpirationEvent = /*#__PURE__*/function () { - /** - * Constructs a new CertificateExpirationEvent. - * @alias module:model/CertificateExpirationEvent - */ - function CertificateExpirationEvent() { - _classCallCheck(this, CertificateExpirationEvent); - - CertificateExpirationEvent.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CertificateExpirationEvent, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CertificateExpirationEvent from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CertificateExpirationEvent} obj Optional instance to populate. - * @return {module:model/CertificateExpirationEvent} The populated CertificateExpirationEvent instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CertificateExpirationEvent(); - - if (data.hasOwnProperty('seconds_before')) { - obj['seconds_before'] = _ApiClient["default"].convertToType(data['seconds_before'], 'Number'); - } - } - - return obj; - } - }]); - - return CertificateExpirationEvent; -}(); -/** - * @member {Number} seconds_before - */ - - -CertificateExpirationEvent.prototype['seconds_before'] = undefined; -var _default = CertificateExpirationEvent; -exports["default"] = _default; - -/***/ }), - -/***/ 25201: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _Extension = _interopRequireDefault(__nccwpck_require__(30079)); - -var _Name = _interopRequireDefault(__nccwpck_require__(65739)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CertificateInfo model module. - * @module model/CertificateInfo - * @version 3.3.16 - */ -var CertificateInfo = /*#__PURE__*/function () { - /** - * Constructs a new CertificateInfo. - * @alias module:model/CertificateInfo - */ - function CertificateInfo() { - _classCallCheck(this, CertificateInfo); - - CertificateInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CertificateInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CertificateInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CertificateInfo} obj Optional instance to populate. - * @return {module:model/CertificateInfo} The populated CertificateInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CertificateInfo(); - - if (data.hasOwnProperty('ExtKeyUsage')) { - obj['ExtKeyUsage'] = _ApiClient["default"].convertToType(data['ExtKeyUsage'], ['Number']); - } - - if (data.hasOwnProperty('KeyUsage')) { - obj['KeyUsage'] = _ApiClient["default"].convertToType(data['KeyUsage'], 'Number'); - } - - if (data.hasOwnProperty('dns_names')) { - obj['dns_names'] = _ApiClient["default"].convertToType(data['dns_names'], ['String']); - } - - if (data.hasOwnProperty('email_addresses')) { - obj['email_addresses'] = _ApiClient["default"].convertToType(data['email_addresses'], ['String']); - } - - if (data.hasOwnProperty('extensions')) { - obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], [_Extension["default"]]); - } - - if (data.hasOwnProperty('ip_addresses')) { - obj['ip_addresses'] = _ApiClient["default"].convertToType(data['ip_addresses'], ['String']); - } - - if (data.hasOwnProperty('is_ca')) { - obj['is_ca'] = _ApiClient["default"].convertToType(data['is_ca'], 'Boolean'); - } - - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _Name["default"].constructFromObject(data['issuer']); - } - - if (data.hasOwnProperty('issuing_certificate_url')) { - obj['issuing_certificate_url'] = _ApiClient["default"].convertToType(data['issuing_certificate_url'], ['String']); - } - - if (data.hasOwnProperty('key_size')) { - obj['key_size'] = _ApiClient["default"].convertToType(data['key_size'], 'Number'); - } - - if (data.hasOwnProperty('not_after')) { - obj['not_after'] = _ApiClient["default"].convertToType(data['not_after'], 'Date'); - } - - if (data.hasOwnProperty('not_before')) { - obj['not_before'] = _ApiClient["default"].convertToType(data['not_before'], 'Date'); - } - - if (data.hasOwnProperty('ocsp_server')) { - obj['ocsp_server'] = _ApiClient["default"].convertToType(data['ocsp_server'], ['String']); - } - - if (data.hasOwnProperty('public_key_algorithm_name')) { - obj['public_key_algorithm_name'] = _ApiClient["default"].convertToType(data['public_key_algorithm_name'], 'String'); - } - - if (data.hasOwnProperty('serial_number')) { - obj['serial_number'] = _ApiClient["default"].convertToType(data['serial_number'], 'String'); - } - - if (data.hasOwnProperty('sha_1_fingerprint')) { - obj['sha_1_fingerprint'] = _ApiClient["default"].convertToType(data['sha_1_fingerprint'], 'String'); - } - - if (data.hasOwnProperty('sha_256_fingerprint')) { - obj['sha_256_fingerprint'] = _ApiClient["default"].convertToType(data['sha_256_fingerprint'], 'String'); - } - - if (data.hasOwnProperty('signature')) { - obj['signature'] = _ApiClient["default"].convertToType(data['signature'], 'String'); - } - - if (data.hasOwnProperty('signature_algorithm_name')) { - obj['signature_algorithm_name'] = _ApiClient["default"].convertToType(data['signature_algorithm_name'], 'String'); - } - - if (data.hasOwnProperty('subject')) { - obj['subject'] = _Name["default"].constructFromObject(data['subject']); - } - - if (data.hasOwnProperty('subject_public_key')) { - obj['subject_public_key'] = _ApiClient["default"].convertToType(data['subject_public_key'], 'String'); - } - - if (data.hasOwnProperty('uris')) { - obj['uris'] = _ApiClient["default"].convertToType(data['uris'], ['String']); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return CertificateInfo; -}(); -/** - * @member {Array.} ExtKeyUsage - */ - - -CertificateInfo.prototype['ExtKeyUsage'] = undefined; -/** - * KeyUsage represents the set of actions that are valid for a given key. It's a bitmap of the KeyUsage* constants. - * @member {Number} KeyUsage - */ - -CertificateInfo.prototype['KeyUsage'] = undefined; -/** - * @member {Array.} dns_names - */ - -CertificateInfo.prototype['dns_names'] = undefined; -/** - * @member {Array.} email_addresses - */ - -CertificateInfo.prototype['email_addresses'] = undefined; -/** - * @member {Array.} extensions - */ - -CertificateInfo.prototype['extensions'] = undefined; -/** - * @member {Array.} ip_addresses - */ - -CertificateInfo.prototype['ip_addresses'] = undefined; -/** - * @member {Boolean} is_ca - */ - -CertificateInfo.prototype['is_ca'] = undefined; -/** - * @member {module:model/Name} issuer - */ - -CertificateInfo.prototype['issuer'] = undefined; -/** - * @member {Array.} issuing_certificate_url - */ - -CertificateInfo.prototype['issuing_certificate_url'] = undefined; -/** - * @member {Number} key_size - */ - -CertificateInfo.prototype['key_size'] = undefined; -/** - * @member {Date} not_after - */ - -CertificateInfo.prototype['not_after'] = undefined; -/** - * @member {Date} not_before - */ - -CertificateInfo.prototype['not_before'] = undefined; -/** - * @member {Array.} ocsp_server - */ - -CertificateInfo.prototype['ocsp_server'] = undefined; -/** - * @member {String} public_key_algorithm_name - */ - -CertificateInfo.prototype['public_key_algorithm_name'] = undefined; -/** - * @member {String} serial_number - */ - -CertificateInfo.prototype['serial_number'] = undefined; -/** - * @member {String} sha_1_fingerprint - */ - -CertificateInfo.prototype['sha_1_fingerprint'] = undefined; -/** - * @member {String} sha_256_fingerprint - */ - -CertificateInfo.prototype['sha_256_fingerprint'] = undefined; -/** - * @member {String} signature - */ - -CertificateInfo.prototype['signature'] = undefined; -/** - * @member {String} signature_algorithm_name - */ - -CertificateInfo.prototype['signature_algorithm_name'] = undefined; -/** - * @member {module:model/Name} subject - */ - -CertificateInfo.prototype['subject'] = undefined; -/** - * @member {String} subject_public_key - */ - -CertificateInfo.prototype['subject_public_key'] = undefined; -/** - * @member {Array.} uris - */ - -CertificateInfo.prototype['uris'] = undefined; -/** - * @member {Number} version - */ - -CertificateInfo.prototype['version'] = undefined; -var _default = CertificateInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 72182: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _PKICertificateIssueDetails = _interopRequireDefault(__nccwpck_require__(16540)); - -var _SSHCertificateIssueDetails = _interopRequireDefault(__nccwpck_require__(29238)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CertificateIssueInfo model module. - * @module model/CertificateIssueInfo - * @version 3.3.16 - */ -var CertificateIssueInfo = /*#__PURE__*/function () { - /** - * Constructs a new CertificateIssueInfo. - * @alias module:model/CertificateIssueInfo - */ - function CertificateIssueInfo() { - _classCallCheck(this, CertificateIssueInfo); - - CertificateIssueInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CertificateIssueInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CertificateIssueInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CertificateIssueInfo} obj Optional instance to populate. - * @return {module:model/CertificateIssueInfo} The populated CertificateIssueInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CertificateIssueInfo(); - - if (data.hasOwnProperty('cert_issuer_type')) { - obj['cert_issuer_type'] = _ApiClient["default"].convertToType(data['cert_issuer_type'], 'String'); - } - - if (data.hasOwnProperty('max_ttl')) { - obj['max_ttl'] = _ApiClient["default"].convertToType(data['max_ttl'], 'Number'); - } - - if (data.hasOwnProperty('pki_cert_issuer_details')) { - obj['pki_cert_issuer_details'] = _PKICertificateIssueDetails["default"].constructFromObject(data['pki_cert_issuer_details']); - } - - if (data.hasOwnProperty('ssh_cert_issuer_details')) { - obj['ssh_cert_issuer_details'] = _SSHCertificateIssueDetails["default"].constructFromObject(data['ssh_cert_issuer_details']); - } - } - - return obj; - } - }]); - - return CertificateIssueInfo; -}(); -/** - * @member {String} cert_issuer_type - */ - - -CertificateIssueInfo.prototype['cert_issuer_type'] = undefined; -/** - * @member {Number} max_ttl - */ - -CertificateIssueInfo.prototype['max_ttl'] = undefined; -/** - * @member {module:model/PKICertificateIssueDetails} pki_cert_issuer_details - */ - -CertificateIssueInfo.prototype['pki_cert_issuer_details'] = undefined; -/** - * @member {module:model/SSHCertificateIssueDetails} ssh_cert_issuer_details - */ - -CertificateIssueInfo.prototype['ssh_cert_issuer_details'] = undefined; -var _default = CertificateIssueInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 89755: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CertificateTemplateInfo model module. - * @module model/CertificateTemplateInfo - * @version 3.3.16 - */ -var CertificateTemplateInfo = /*#__PURE__*/function () { - /** - * Constructs a new CertificateTemplateInfo. - * @alias module:model/CertificateTemplateInfo - */ - function CertificateTemplateInfo() { - _classCallCheck(this, CertificateTemplateInfo); - - CertificateTemplateInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CertificateTemplateInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CertificateTemplateInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CertificateTemplateInfo} obj Optional instance to populate. - * @return {module:model/CertificateTemplateInfo} The populated CertificateTemplateInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CertificateTemplateInfo(); - - if (data.hasOwnProperty('common_name')) { - obj['common_name'] = _ApiClient["default"].convertToType(data['common_name'], 'String'); - } - - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); - } - - if (data.hasOwnProperty('digest_algo')) { - obj['digest_algo'] = _ApiClient["default"].convertToType(data['digest_algo'], 'String'); - } - - if (data.hasOwnProperty('locality')) { - obj['locality'] = _ApiClient["default"].convertToType(data['locality'], 'String'); - } - - if (data.hasOwnProperty('organization')) { - obj['organization'] = _ApiClient["default"].convertToType(data['organization'], 'String'); - } - - if (data.hasOwnProperty('province')) { - obj['province'] = _ApiClient["default"].convertToType(data['province'], 'String'); - } - - if (data.hasOwnProperty('self_signed_enabled')) { - obj['self_signed_enabled'] = _ApiClient["default"].convertToType(data['self_signed_enabled'], 'Boolean'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - } - - return obj; - } - }]); - - return CertificateTemplateInfo; -}(); -/** - * @member {String} common_name - */ - - -CertificateTemplateInfo.prototype['common_name'] = undefined; -/** - * @member {String} country - */ - -CertificateTemplateInfo.prototype['country'] = undefined; -/** - * @member {String} digest_algo - */ - -CertificateTemplateInfo.prototype['digest_algo'] = undefined; -/** - * @member {String} locality - */ - -CertificateTemplateInfo.prototype['locality'] = undefined; -/** - * @member {String} organization - */ - -CertificateTemplateInfo.prototype['organization'] = undefined; -/** - * @member {String} province - */ - -CertificateTemplateInfo.prototype['province'] = undefined; -/** - * @member {Boolean} self_signed_enabled - */ - -CertificateTemplateInfo.prototype['self_signed_enabled'] = undefined; -/** - * @member {Number} ttl - */ - -CertificateTemplateInfo.prototype['ttl'] = undefined; -var _default = CertificateTemplateInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 29095: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ChefTargetDetails model module. - * @module model/ChefTargetDetails - * @version 3.3.16 - */ -var ChefTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new ChefTargetDetails. - * ChefTargetDetails - * @alias module:model/ChefTargetDetails - */ - function ChefTargetDetails() { - _classCallCheck(this, ChefTargetDetails); - - ChefTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ChefTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ChefTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChefTargetDetails} obj Optional instance to populate. - * @return {module:model/ChefTargetDetails} The populated ChefTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ChefTargetDetails(); - - if (data.hasOwnProperty('chef_server_host_name')) { - obj['chef_server_host_name'] = _ApiClient["default"].convertToType(data['chef_server_host_name'], 'String'); - } - - if (data.hasOwnProperty('chef_server_key')) { - obj['chef_server_key'] = _ApiClient["default"].convertToType(data['chef_server_key'], 'String'); - } - - if (data.hasOwnProperty('chef_server_port')) { - obj['chef_server_port'] = _ApiClient["default"].convertToType(data['chef_server_port'], 'String'); - } - - if (data.hasOwnProperty('chef_server_url')) { - obj['chef_server_url'] = _ApiClient["default"].convertToType(data['chef_server_url'], 'String'); - } - - if (data.hasOwnProperty('chef_server_username')) { - obj['chef_server_username'] = _ApiClient["default"].convertToType(data['chef_server_username'], 'String'); - } - - if (data.hasOwnProperty('chef_skip_ssl')) { - obj['chef_skip_ssl'] = _ApiClient["default"].convertToType(data['chef_skip_ssl'], 'Boolean'); - } - } - - return obj; - } - }]); - - return ChefTargetDetails; -}(); -/** - * @member {String} chef_server_host_name - */ - - -ChefTargetDetails.prototype['chef_server_host_name'] = undefined; -/** - * @member {String} chef_server_key - */ - -ChefTargetDetails.prototype['chef_server_key'] = undefined; -/** - * @member {String} chef_server_port - */ - -ChefTargetDetails.prototype['chef_server_port'] = undefined; -/** - * @member {String} chef_server_url - */ - -ChefTargetDetails.prototype['chef_server_url'] = undefined; -/** - * @member {String} chef_server_username - */ - -ChefTargetDetails.prototype['chef_server_username'] = undefined; -/** - * @member {Boolean} chef_skip_ssl - */ - -ChefTargetDetails.prototype['chef_skip_ssl'] = undefined; -var _default = ChefTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 49881: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _ClassicKeyTargetInfo = _interopRequireDefault(__nccwpck_require__(41418)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ClassicKeyDetailsInfo model module. - * @module model/ClassicKeyDetailsInfo - * @version 3.3.16 - */ -var ClassicKeyDetailsInfo = /*#__PURE__*/function () { - /** - * Constructs a new ClassicKeyDetailsInfo. - * @alias module:model/ClassicKeyDetailsInfo - */ - function ClassicKeyDetailsInfo() { - _classCallCheck(this, ClassicKeyDetailsInfo); - - ClassicKeyDetailsInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ClassicKeyDetailsInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ClassicKeyDetailsInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ClassicKeyDetailsInfo} obj Optional instance to populate. - * @return {module:model/ClassicKeyDetailsInfo} The populated ClassicKeyDetailsInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ClassicKeyDetailsInfo(); - - if (data.hasOwnProperty('classic_key_attributes')) { - obj['classic_key_attributes'] = _ApiClient["default"].convertToType(data['classic_key_attributes'], { - 'String': ['String'] - }); - } - - if (data.hasOwnProperty('classic_key_id')) { - obj['classic_key_id'] = _ApiClient["default"].convertToType(data['classic_key_id'], 'String'); - } - - if (data.hasOwnProperty('gw_cluster_id')) { - obj['gw_cluster_id'] = _ApiClient["default"].convertToType(data['gw_cluster_id'], 'Number'); - } - - if (data.hasOwnProperty('is_provided_by_user')) { - obj['is_provided_by_user'] = _ApiClient["default"].convertToType(data['is_provided_by_user'], 'Boolean'); - } - - if (data.hasOwnProperty('is_unexportable')) { - obj['is_unexportable'] = _ApiClient["default"].convertToType(data['is_unexportable'], 'Boolean'); - } - - if (data.hasOwnProperty('key_state')) { - obj['key_state'] = _ApiClient["default"].convertToType(data['key_state'], 'String'); - } - - if (data.hasOwnProperty('key_type')) { - obj['key_type'] = _ApiClient["default"].convertToType(data['key_type'], 'String'); - } - - if (data.hasOwnProperty('last_error')) { - obj['last_error'] = _ApiClient["default"].convertToType(data['last_error'], 'String'); - } - - if (data.hasOwnProperty('public_key')) { - obj['public_key'] = _ApiClient["default"].convertToType(data['public_key'], 'String'); - } - - if (data.hasOwnProperty('target_alias_helper')) { - obj['target_alias_helper'] = _ApiClient["default"].convertToType(data['target_alias_helper'], 'String'); - } - - if (data.hasOwnProperty('target_types')) { - obj['target_types'] = _ApiClient["default"].convertToType(data['target_types'], ['String']); - } - - if (data.hasOwnProperty('targets')) { - obj['targets'] = _ApiClient["default"].convertToType(data['targets'], [_ClassicKeyTargetInfo["default"]]); - } - } - - return obj; - } - }]); - - return ClassicKeyDetailsInfo; -}(); -/** - * @member {Object.>} classic_key_attributes - */ - - -ClassicKeyDetailsInfo.prototype['classic_key_attributes'] = undefined; -/** - * @member {String} classic_key_id - */ - -ClassicKeyDetailsInfo.prototype['classic_key_id'] = undefined; -/** - * @member {Number} gw_cluster_id - */ - -ClassicKeyDetailsInfo.prototype['gw_cluster_id'] = undefined; -/** - * @member {Boolean} is_provided_by_user - */ - -ClassicKeyDetailsInfo.prototype['is_provided_by_user'] = undefined; -/** - * @member {Boolean} is_unexportable - */ - -ClassicKeyDetailsInfo.prototype['is_unexportable'] = undefined; -/** - * ItemState defines the different states an Item can be in - * @member {String} key_state - */ - -ClassicKeyDetailsInfo.prototype['key_state'] = undefined; -/** - * @member {String} key_type - */ - -ClassicKeyDetailsInfo.prototype['key_type'] = undefined; -/** - * @member {String} last_error - */ - -ClassicKeyDetailsInfo.prototype['last_error'] = undefined; -/** - * @member {String} public_key - */ - -ClassicKeyDetailsInfo.prototype['public_key'] = undefined; -/** - * @member {String} target_alias_helper - */ - -ClassicKeyDetailsInfo.prototype['target_alias_helper'] = undefined; -/** - * @member {Array.} target_types - */ - -ClassicKeyDetailsInfo.prototype['target_types'] = undefined; -/** - * @member {Array.} targets - */ - -ClassicKeyDetailsInfo.prototype['targets'] = undefined; -var _default = ClassicKeyDetailsInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 6277: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ClassicKeyStatusInfo model module. - * @module model/ClassicKeyStatusInfo - * @version 3.3.16 - */ -var ClassicKeyStatusInfo = /*#__PURE__*/function () { - /** - * Constructs a new ClassicKeyStatusInfo. - * @alias module:model/ClassicKeyStatusInfo - */ - function ClassicKeyStatusInfo() { - _classCallCheck(this, ClassicKeyStatusInfo); - - ClassicKeyStatusInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ClassicKeyStatusInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ClassicKeyStatusInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ClassicKeyStatusInfo} obj Optional instance to populate. - * @return {module:model/ClassicKeyStatusInfo} The populated ClassicKeyStatusInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ClassicKeyStatusInfo(); - - if (data.hasOwnProperty('error_date')) { - obj['error_date'] = _ApiClient["default"].convertToType(data['error_date'], 'Date'); - } - - if (data.hasOwnProperty('last_error')) { - obj['last_error'] = _ApiClient["default"].convertToType(data['last_error'], 'String'); - } - - if (data.hasOwnProperty('last_status')) { - obj['last_status'] = _ApiClient["default"].convertToType(data['last_status'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return ClassicKeyStatusInfo; -}(); -/** - * @member {Date} error_date - */ - - -ClassicKeyStatusInfo.prototype['error_date'] = undefined; -/** - * @member {String} last_error - */ - -ClassicKeyStatusInfo.prototype['last_error'] = undefined; -/** - * ClassicKeyTargetStatus defines status of classic key target - * @member {String} last_status - */ - -ClassicKeyStatusInfo.prototype['last_status'] = undefined; -/** - * @member {Number} version - */ - -ClassicKeyStatusInfo.prototype['version'] = undefined; -var _default = ClassicKeyStatusInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 41418: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _ClassicKeyStatusInfo = _interopRequireDefault(__nccwpck_require__(6277)); - -var _ExternalKMSKeyId = _interopRequireDefault(__nccwpck_require__(80238)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ClassicKeyTargetInfo model module. - * @module model/ClassicKeyTargetInfo - * @version 3.3.16 - */ -var ClassicKeyTargetInfo = /*#__PURE__*/function () { - /** - * Constructs a new ClassicKeyTargetInfo. - * @alias module:model/ClassicKeyTargetInfo - */ - function ClassicKeyTargetInfo() { - _classCallCheck(this, ClassicKeyTargetInfo); - - ClassicKeyTargetInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ClassicKeyTargetInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ClassicKeyTargetInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ClassicKeyTargetInfo} obj Optional instance to populate. - * @return {module:model/ClassicKeyTargetInfo} The populated ClassicKeyTargetInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ClassicKeyTargetInfo(); - - if (data.hasOwnProperty('external_kms_id')) { - obj['external_kms_id'] = _ExternalKMSKeyId["default"].constructFromObject(data['external_kms_id']); - } - - if (data.hasOwnProperty('key_purpose')) { - obj['key_purpose'] = _ApiClient["default"].convertToType(data['key_purpose'], ['String']); - } - - if (data.hasOwnProperty('key_status')) { - obj['key_status'] = _ClassicKeyStatusInfo["default"].constructFromObject(data['key_status']); - } - - if (data.hasOwnProperty('target_assoc_id')) { - obj['target_assoc_id'] = _ApiClient["default"].convertToType(data['target_assoc_id'], 'String'); - } - - if (data.hasOwnProperty('target_type')) { - obj['target_type'] = _ApiClient["default"].convertToType(data['target_type'], 'String'); - } - } - - return obj; - } - }]); - - return ClassicKeyTargetInfo; -}(); -/** - * @member {module:model/ExternalKMSKeyId} external_kms_id - */ - - -ClassicKeyTargetInfo.prototype['external_kms_id'] = undefined; -/** - * @member {Array.} key_purpose - */ - -ClassicKeyTargetInfo.prototype['key_purpose'] = undefined; -/** - * @member {module:model/ClassicKeyStatusInfo} key_status - */ - -ClassicKeyTargetInfo.prototype['key_status'] = undefined; -/** - * @member {String} target_assoc_id - */ - -ClassicKeyTargetInfo.prototype['target_assoc_id'] = undefined; -/** - * @member {String} target_type - */ - -ClassicKeyTargetInfo.prototype['target_type'] = undefined; -var _default = ClassicKeyTargetInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 49671: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ClientData model module. - * @module model/ClientData - * @version 3.3.16 - */ -var ClientData = /*#__PURE__*/function () { - /** - * Constructs a new ClientData. - * @alias module:model/ClientData - */ - function ClientData() { - _classCallCheck(this, ClientData); - - ClientData.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ClientData, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ClientData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ClientData} obj Optional instance to populate. - * @return {module:model/ClientData} The populated ClientData instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ClientData(); - - if (data.hasOwnProperty('clientCertificateData')) { - obj['clientCertificateData'] = _ApiClient["default"].convertToType(data['clientCertificateData'], 'String'); - } - - if (data.hasOwnProperty('clientKeyData')) { - obj['clientKeyData'] = _ApiClient["default"].convertToType(data['clientKeyData'], 'String'); - } - - if (data.hasOwnProperty('parentCertificateData')) { - obj['parentCertificateData'] = _ApiClient["default"].convertToType(data['parentCertificateData'], 'String'); - } - } - - return obj; - } - }]); - - return ClientData; -}(); -/** - * @member {String} clientCertificateData - */ - - -ClientData.prototype['clientCertificateData'] = undefined; -/** - * @member {String} clientKeyData - */ - -ClientData.prototype['clientKeyData'] = undefined; -/** - * @member {String} parentCertificateData - */ - -ClientData.prototype['parentCertificateData'] = undefined; -var _default = ClientData; -exports["default"] = _default; - -/***/ }), - -/***/ 47166: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _ConfigHash = _interopRequireDefault(__nccwpck_require__(95122)); - -var _LastConfigChange = _interopRequireDefault(__nccwpck_require__(48174)); - -var _LastStatusInfo = _interopRequireDefault(__nccwpck_require__(12778)); - -var _RequiredActivity = _interopRequireDefault(__nccwpck_require__(78028)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ConfigChange model module. - * @module model/ConfigChange - * @version 3.3.16 - */ -var ConfigChange = /*#__PURE__*/function () { - /** - * Constructs a new ConfigChange. - * @alias module:model/ConfigChange - */ - function ConfigChange() { - _classCallCheck(this, ConfigChange); - - ConfigChange.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ConfigChange, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ConfigChange from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ConfigChange} obj Optional instance to populate. - * @return {module:model/ConfigChange} The populated ConfigChange instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ConfigChange(); - - if (data.hasOwnProperty('config_hash')) { - obj['config_hash'] = _ConfigHash["default"].constructFromObject(data['config_hash']); - } - - if (data.hasOwnProperty('last_change')) { - obj['last_change'] = _LastConfigChange["default"].constructFromObject(data['last_change']); - } - - if (data.hasOwnProperty('last_status')) { - obj['last_status'] = _LastStatusInfo["default"].constructFromObject(data['last_status']); - } - - if (data.hasOwnProperty('required_activity')) { - obj['required_activity'] = _RequiredActivity["default"].constructFromObject(data['required_activity']); - } - - if (data.hasOwnProperty('update_stamp')) { - obj['update_stamp'] = _ApiClient["default"].convertToType(data['update_stamp'], 'Number'); - } - } - - return obj; - } - }]); - - return ConfigChange; -}(); -/** - * @member {module:model/ConfigHash} config_hash - */ - - -ConfigChange.prototype['config_hash'] = undefined; -/** - * @member {module:model/LastConfigChange} last_change - */ - -ConfigChange.prototype['last_change'] = undefined; -/** - * @member {module:model/LastStatusInfo} last_status - */ - -ConfigChange.prototype['last_status'] = undefined; -/** - * @member {module:model/RequiredActivity} required_activity - */ - -ConfigChange.prototype['required_activity'] = undefined; -/** - * @member {Number} update_stamp - */ - -ConfigChange.prototype['update_stamp'] = undefined; -var _default = ConfigChange; -exports["default"] = _default; - -/***/ }), - -/***/ 95122: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ConfigHash model module. - * @module model/ConfigHash - * @version 3.3.16 - */ -var ConfigHash = /*#__PURE__*/function () { - /** - * Constructs a new ConfigHash. - * @alias module:model/ConfigHash - */ - function ConfigHash() { - _classCallCheck(this, ConfigHash); - - ConfigHash.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ConfigHash, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ConfigHash from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ConfigHash} obj Optional instance to populate. - * @return {module:model/ConfigHash} The populated ConfigHash instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ConfigHash(); - - if (data.hasOwnProperty('admins')) { - obj['admins'] = _ApiClient["default"].convertToType(data['admins'], 'String'); - } - - if (data.hasOwnProperty('cache')) { - obj['cache'] = _ApiClient["default"].convertToType(data['cache'], 'String'); - } - - if (data.hasOwnProperty('customer_fragements')) { - obj['customer_fragements'] = _ApiClient["default"].convertToType(data['customer_fragements'], 'String'); - } - - if (data.hasOwnProperty('general')) { - obj['general'] = _ApiClient["default"].convertToType(data['general'], 'String'); - } - - if (data.hasOwnProperty('k8s_auths')) { - obj['k8s_auths'] = _ApiClient["default"].convertToType(data['k8s_auths'], 'String'); - } - - if (data.hasOwnProperty('kmip')) { - obj['kmip'] = _ApiClient["default"].convertToType(data['kmip'], 'String'); - } - - if (data.hasOwnProperty('ldap')) { - obj['ldap'] = _ApiClient["default"].convertToType(data['ldap'], 'String'); - } - - if (data.hasOwnProperty('leadership')) { - obj['leadership'] = _ApiClient["default"].convertToType(data['leadership'], 'String'); - } - - if (data.hasOwnProperty('log_forwarding')) { - obj['log_forwarding'] = _ApiClient["default"].convertToType(data['log_forwarding'], 'String'); - } - - if (data.hasOwnProperty('m_queue')) { - obj['m_queue'] = _ApiClient["default"].convertToType(data['m_queue'], 'String'); - } - - if (data.hasOwnProperty('migration_status')) { - obj['migration_status'] = _ApiClient["default"].convertToType(data['migration_status'], 'String'); - } - - if (data.hasOwnProperty('migrations')) { - obj['migrations'] = _ApiClient["default"].convertToType(data['migrations'], 'String'); - } - - if (data.hasOwnProperty('producers')) { - obj['producers'] = _ApiClient["default"].convertToType(data['producers'], Object); - } - - if (data.hasOwnProperty('producers_status')) { - obj['producers_status'] = _ApiClient["default"].convertToType(data['producers_status'], 'String'); - } - - if (data.hasOwnProperty('rotators')) { - obj['rotators'] = _ApiClient["default"].convertToType(data['rotators'], Object); - } - - if (data.hasOwnProperty('saml')) { - obj['saml'] = _ApiClient["default"].convertToType(data['saml'], 'String'); - } - - if (data.hasOwnProperty('universal_identity')) { - obj['universal_identity'] = _ApiClient["default"].convertToType(data['universal_identity'], 'String'); - } - } - - return obj; - } - }]); - - return ConfigHash; -}(); -/** - * @member {String} admins - */ - - -ConfigHash.prototype['admins'] = undefined; -/** - * @member {String} cache - */ - -ConfigHash.prototype['cache'] = undefined; -/** - * @member {String} customer_fragements - */ - -ConfigHash.prototype['customer_fragements'] = undefined; -/** - * @member {String} general - */ - -ConfigHash.prototype['general'] = undefined; -/** - * @member {String} k8s_auths - */ - -ConfigHash.prototype['k8s_auths'] = undefined; -/** - * @member {String} kmip - */ - -ConfigHash.prototype['kmip'] = undefined; -/** - * @member {String} ldap - */ - -ConfigHash.prototype['ldap'] = undefined; -/** - * @member {String} leadership - */ - -ConfigHash.prototype['leadership'] = undefined; -/** - * @member {String} log_forwarding - */ - -ConfigHash.prototype['log_forwarding'] = undefined; -/** - * @member {String} m_queue - */ - -ConfigHash.prototype['m_queue'] = undefined; -/** - * @member {String} migration_status - */ - -ConfigHash.prototype['migration_status'] = undefined; -/** - * @member {String} migrations - */ - -ConfigHash.prototype['migrations'] = undefined; -/** - * @member {Object} producers - */ - -ConfigHash.prototype['producers'] = undefined; -/** - * @member {String} producers_status - */ - -ConfigHash.prototype['producers_status'] = undefined; -/** - * @member {Object} rotators - */ - -ConfigHash.prototype['rotators'] = undefined; -/** - * @member {String} saml - */ - -ConfigHash.prototype['saml'] = undefined; -/** - * @member {String} universal_identity - */ - -ConfigHash.prototype['universal_identity'] = undefined; -var _default = ConfigHash; -exports["default"] = _default; - -/***/ }), - -/***/ 2610: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Configure model module. - * @module model/Configure - * @version 3.3.16 - */ -var Configure = /*#__PURE__*/function () { - /** - * Constructs a new Configure. - * @alias module:model/Configure - */ - function Configure() { - _classCallCheck(this, Configure); - - Configure.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Configure, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a Configure from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Configure} obj Optional instance to populate. - * @return {module:model/Configure} The populated Configure instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Configure(); - - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); - } - - if (data.hasOwnProperty('access-key')) { - obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); - } - - if (data.hasOwnProperty('access-type')) { - obj['access-type'] = _ApiClient["default"].convertToType(data['access-type'], 'String'); - } - - if (data.hasOwnProperty('account-id')) { - obj['account-id'] = _ApiClient["default"].convertToType(data['account-id'], 'String'); - } - - if (data.hasOwnProperty('admin-email')) { - obj['admin-email'] = _ApiClient["default"].convertToType(data['admin-email'], 'String'); - } - - if (data.hasOwnProperty('admin-password')) { - obj['admin-password'] = _ApiClient["default"].convertToType(data['admin-password'], 'String'); - } - - if (data.hasOwnProperty('azure_ad_object_id')) { - obj['azure_ad_object_id'] = _ApiClient["default"].convertToType(data['azure_ad_object_id'], 'String'); - } - - if (data.hasOwnProperty('cert-data')) { - obj['cert-data'] = _ApiClient["default"].convertToType(data['cert-data'], 'String'); - } - - if (data.hasOwnProperty('gcp-audience')) { - obj['gcp-audience'] = _ApiClient["default"].convertToType(data['gcp-audience'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s-auth-config-name')) { - obj['k8s-auth-config-name'] = _ApiClient["default"].convertToType(data['k8s-auth-config-name'], 'String'); - } - - if (data.hasOwnProperty('key-data')) { - obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); - } - } - - return obj; - } - }]); - - return Configure; -}(); -/** - * Access ID - * @member {String} access-id - */ - - -Configure.prototype['access-id'] = undefined; -/** - * Access Key - * @member {String} access-key - */ - -Configure.prototype['access-key'] = undefined; -/** - * Access Type (access_key/password/azure_ad/saml/oidc/aws_iam/gcp/k8s/cert) - * @member {String} access-type - * @default 'access_key' - */ - -Configure.prototype['access-type'] = 'access_key'; -/** - * Account id (relevant only for access-type=password where the email address is associated with more than one account) - * @member {String} account-id - */ - -Configure.prototype['account-id'] = undefined; -/** - * Email (relevant only for access-type=password) - * @member {String} admin-email - */ - -Configure.prototype['admin-email'] = undefined; -/** - * Password (relevant only for access-type=password) - * @member {String} admin-password - */ - -Configure.prototype['admin-password'] = undefined; -/** - * Azure Active Directory ObjectId (relevant only for access-type=azure_ad) - * @member {String} azure_ad_object_id - */ - -Configure.prototype['azure_ad_object_id'] = undefined; -/** - * Certificate data encoded in base64. Used if file was not provided. (relevant only for access-type=cert in Curl Context) - * @member {String} cert-data - */ - -Configure.prototype['cert-data'] = undefined; -/** - * GCP JWT audience - * @member {String} gcp-audience - * @default 'akeyless.io' - */ - -Configure.prototype['gcp-audience'] = 'akeyless.io'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -Configure.prototype['json'] = false; -/** - * The K8S Auth config name (relevant only for access-type=k8s) - * @member {String} k8s-auth-config-name - */ - -Configure.prototype['k8s-auth-config-name'] = undefined; -/** - * Private key data encoded in base64. Used if file was not provided.(relevant only for access-type=cert in Curl Context) - * @member {String} key-data - */ - -Configure.prototype['key-data'] = undefined; -var _default = Configure; -exports["default"] = _default; - -/***/ }), - -/***/ 6103: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ConfigureOutput model module. - * @module model/ConfigureOutput - * @version 3.3.16 - */ -var ConfigureOutput = /*#__PURE__*/function () { - /** - * Constructs a new ConfigureOutput. - * @alias module:model/ConfigureOutput - */ - function ConfigureOutput() { - _classCallCheck(this, ConfigureOutput); - - ConfigureOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ConfigureOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ConfigureOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ConfigureOutput} obj Optional instance to populate. - * @return {module:model/ConfigureOutput} The populated ConfigureOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ConfigureOutput(); - - if (data.hasOwnProperty('profile')) { - obj['profile'] = _ApiClient["default"].convertToType(data['profile'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - } - - return obj; - } - }]); - - return ConfigureOutput; -}(); -/** - * @member {String} profile - */ - - -ConfigureOutput.prototype['profile'] = undefined; -/** - * @member {String} token - */ - -ConfigureOutput.prototype['token'] = undefined; -var _default = ConfigureOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 92264: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Connect model module. - * @module model/Connect - * @version 3.3.16 - */ -var Connect = /*#__PURE__*/function () { - /** - * Constructs a new Connect. - * Connect is a command that performs secure remote access - * @alias module:model/Connect - */ - function Connect() { - _classCallCheck(this, Connect); - - Connect.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Connect, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a Connect from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Connect} obj Optional instance to populate. - * @return {module:model/Connect} The populated Connect instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Connect(); - - if (data.hasOwnProperty('Helper')) { - obj['Helper'] = _ApiClient["default"].convertToType(data['Helper'], Object); - } - - if (data.hasOwnProperty('RcFileOverride')) { - obj['RcFileOverride'] = _ApiClient["default"].convertToType(data['RcFileOverride'], 'String'); - } - - if (data.hasOwnProperty('bastion-ctrl-path')) { - obj['bastion-ctrl-path'] = _ApiClient["default"].convertToType(data['bastion-ctrl-path'], 'String'); - } - - if (data.hasOwnProperty('bastion-ctrl-port')) { - obj['bastion-ctrl-port'] = _ApiClient["default"].convertToType(data['bastion-ctrl-port'], 'String'); - } - - if (data.hasOwnProperty('bastion-ctrl-proto')) { - obj['bastion-ctrl-proto'] = _ApiClient["default"].convertToType(data['bastion-ctrl-proto'], 'String'); - } - - if (data.hasOwnProperty('bastion-ctrl-subdomain')) { - obj['bastion-ctrl-subdomain'] = _ApiClient["default"].convertToType(data['bastion-ctrl-subdomain'], 'String'); - } - - if (data.hasOwnProperty('cert-issuer-name')) { - obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); - } - - if (data.hasOwnProperty('identity-file')) { - obj['identity-file'] = _ApiClient["default"].convertToType(data['identity-file'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('ssh-command')) { - obj['ssh-command'] = _ApiClient["default"].convertToType(data['ssh-command'], 'String'); - } - - if (data.hasOwnProperty('ssh-extra-args')) { - obj['ssh-extra-args'] = _ApiClient["default"].convertToType(data['ssh-extra-args'], 'String'); - } - - if (data.hasOwnProperty('ssh-legacy-signing-alg')) { - obj['ssh-legacy-signing-alg'] = _ApiClient["default"].convertToType(data['ssh-legacy-signing-alg'], 'Boolean'); - } - - if (data.hasOwnProperty('target')) { - obj['target'] = _ApiClient["default"].convertToType(data['target'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('via-bastion')) { - obj['via-bastion'] = _ApiClient["default"].convertToType(data['via-bastion'], 'String'); - } - } - - return obj; - } - }]); - - return Connect; -}(); -/** - * @member {Object} Helper - */ - - -Connect.prototype['Helper'] = undefined; -/** - * used to override .akeyless-connect.rc in tests - * @member {String} RcFileOverride - */ - -Connect.prototype['RcFileOverride'] = undefined; -/** - * The Bastion API path - * @member {String} bastion-ctrl-path - */ - -Connect.prototype['bastion-ctrl-path'] = undefined; -/** - * The Bastion API Port - * @member {String} bastion-ctrl-port - * @default '9900' - */ - -Connect.prototype['bastion-ctrl-port'] = '9900'; -/** - * The Bastion API protocol - * @member {String} bastion-ctrl-proto - * @default 'http' - */ - -Connect.prototype['bastion-ctrl-proto'] = 'http'; -/** - * The Bastion API prefix - * @member {String} bastion-ctrl-subdomain - */ - -Connect.prototype['bastion-ctrl-subdomain'] = undefined; -/** - * The Akeyless certificate issuer name - * @member {String} cert-issuer-name - */ - -Connect.prototype['cert-issuer-name'] = undefined; -/** - * The file from which the identity (private key) for public key authentication is read - * @member {String} identity-file - */ - -Connect.prototype['identity-file'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -Connect.prototype['json'] = false; -/** - * The Secret name (for database and AWS producers - producer name) - * @member {String} name - */ - -Connect.prototype['name'] = undefined; -/** - * Path to SSH executable. e.g. /usr/bin/ssh - * @member {String} ssh-command - */ - -Connect.prototype['ssh-command'] = undefined; -/** - * The Use to add offical SSH arguments (except -i) - * @member {String} ssh-extra-args - */ - -Connect.prototype['ssh-extra-args'] = undefined; -/** - * Set this option to output legacy ('ssh-rsa-cert-v01@openssh.com') signing algorithm name in the ssh certificate. - * @member {Boolean} ssh-legacy-signing-alg - * @default false - */ - -Connect.prototype['ssh-legacy-signing-alg'] = false; -/** - * The target - * @member {String} target - */ - -Connect.prototype['target'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -Connect.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -Connect.prototype['uid-token'] = undefined; -/** - * The jump box server - * @member {String} via-bastion - */ - -Connect.prototype['via-bastion'] = undefined; -var _default = Connect; -exports["default"] = _default; - -/***/ }), - -/***/ 69350: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAWSTarget model module. - * @module model/CreateAWSTarget - * @version 3.3.16 - */ -var CreateAWSTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateAWSTarget. - * @alias module:model/CreateAWSTarget - * @param accessKey {String} AWS secret access key - * @param accessKeyId {String} AWS access key ID - * @param name {String} Target name - */ - function CreateAWSTarget(accessKey, accessKeyId, name) { - _classCallCheck(this, CreateAWSTarget); - - CreateAWSTarget.initialize(this, accessKey, accessKeyId, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAWSTarget, null, [{ - key: "initialize", - value: function initialize(obj, accessKey, accessKeyId, name) { - obj['access-key'] = accessKey; - obj['access-key-id'] = accessKeyId; - obj['name'] = name; - } - /** - * Constructs a CreateAWSTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAWSTarget} obj Optional instance to populate. - * @return {module:model/CreateAWSTarget} The populated CreateAWSTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAWSTarget(); - - if (data.hasOwnProperty('access-key')) { - obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); - } - - if (data.hasOwnProperty('access-key-id')) { - obj['access-key-id'] = _ApiClient["default"].convertToType(data['access-key-id'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } - - if (data.hasOwnProperty('session-token')) { - obj['session-token'] = _ApiClient["default"].convertToType(data['session-token'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); - } - } - - return obj; - } - }]); - - return CreateAWSTarget; -}(); -/** - * AWS secret access key - * @member {String} access-key - */ - - -CreateAWSTarget.prototype['access-key'] = undefined; -/** - * AWS access key ID - * @member {String} access-key-id - */ - -CreateAWSTarget.prototype['access-key-id'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -CreateAWSTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateAWSTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateAWSTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateAWSTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateAWSTarget.prototype['name'] = undefined; -/** - * AWS region - * @member {String} region - * @default 'us-east-2' - */ - -CreateAWSTarget.prototype['region'] = 'us-east-2'; -/** - * Required only for temporary security credentials retrieved using STS - * @member {String} session-token - */ - -CreateAWSTarget.prototype['session-token'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateAWSTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateAWSTarget.prototype['uid-token'] = undefined; -/** - * Use the GW's Cloud IAM - * @member {Boolean} use-gw-cloud-identity - */ - -CreateAWSTarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = CreateAWSTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 30851: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAWSTargetOutput model module. - * @module model/CreateAWSTargetOutput - * @version 3.3.16 - */ -var CreateAWSTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAWSTargetOutput. - * @alias module:model/CreateAWSTargetOutput - */ - function CreateAWSTargetOutput() { - _classCallCheck(this, CreateAWSTargetOutput); - - CreateAWSTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAWSTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAWSTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAWSTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateAWSTargetOutput} The populated CreateAWSTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAWSTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateAWSTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateAWSTargetOutput.prototype['target_id'] = undefined; -var _default = CreateAWSTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 87961: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateArtifactoryTarget model module. - * @module model/CreateArtifactoryTarget - * @version 3.3.16 - */ -var CreateArtifactoryTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateArtifactoryTarget. - * @alias module:model/CreateArtifactoryTarget - * @param artifactoryAdminName {String} Artifactory Admin Name - * @param artifactoryAdminPwd {String} Artifactory Admin password - * @param baseUrl {String} Base URL - * @param name {String} Target name - */ - function CreateArtifactoryTarget(artifactoryAdminName, artifactoryAdminPwd, baseUrl, name) { - _classCallCheck(this, CreateArtifactoryTarget); - - CreateArtifactoryTarget.initialize(this, artifactoryAdminName, artifactoryAdminPwd, baseUrl, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateArtifactoryTarget, null, [{ - key: "initialize", - value: function initialize(obj, artifactoryAdminName, artifactoryAdminPwd, baseUrl, name) { - obj['artifactory-admin-name'] = artifactoryAdminName; - obj['artifactory-admin-pwd'] = artifactoryAdminPwd; - obj['base-url'] = baseUrl; - obj['name'] = name; - } - /** - * Constructs a CreateArtifactoryTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateArtifactoryTarget} obj Optional instance to populate. - * @return {module:model/CreateArtifactoryTarget} The populated CreateArtifactoryTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateArtifactoryTarget(); - - if (data.hasOwnProperty('artifactory-admin-name')) { - obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); - } - - if (data.hasOwnProperty('artifactory-admin-pwd')) { - obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); - } - - if (data.hasOwnProperty('base-url')) { - obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateArtifactoryTarget; -}(); -/** - * Artifactory Admin Name - * @member {String} artifactory-admin-name - */ - - -CreateArtifactoryTarget.prototype['artifactory-admin-name'] = undefined; -/** - * Artifactory Admin password - * @member {String} artifactory-admin-pwd - */ - -CreateArtifactoryTarget.prototype['artifactory-admin-pwd'] = undefined; -/** - * Base URL - * @member {String} base-url - */ - -CreateArtifactoryTarget.prototype['base-url'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -CreateArtifactoryTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateArtifactoryTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateArtifactoryTarget.prototype['json'] = false; -/** - * The name of a key used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateArtifactoryTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateArtifactoryTarget.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateArtifactoryTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateArtifactoryTarget.prototype['uid-token'] = undefined; -var _default = CreateArtifactoryTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 85020: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateArtifactoryTargetOutput model module. - * @module model/CreateArtifactoryTargetOutput - * @version 3.3.16 - */ -var CreateArtifactoryTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateArtifactoryTargetOutput. - * @alias module:model/CreateArtifactoryTargetOutput - */ - function CreateArtifactoryTargetOutput() { - _classCallCheck(this, CreateArtifactoryTargetOutput); - - CreateArtifactoryTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateArtifactoryTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateArtifactoryTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateArtifactoryTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateArtifactoryTargetOutput} The populated CreateArtifactoryTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateArtifactoryTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateArtifactoryTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateArtifactoryTargetOutput.prototype['target_id'] = undefined; -var _default = CreateArtifactoryTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 97067: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethod model module. - * @module model/CreateAuthMethod - * @version 3.3.16 - */ -var CreateAuthMethod = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethod. - * @alias module:model/CreateAuthMethod - * @param name {String} Auth Method name - */ - function CreateAuthMethod(name) { - _classCallCheck(this, CreateAuthMethod); - - CreateAuthMethod.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethod, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateAuthMethod from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethod} obj Optional instance to populate. - * @return {module:model/CreateAuthMethod} The populated CreateAuthMethod instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethod(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethod; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -CreateAuthMethod.prototype['access-expires'] = 0; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -CreateAuthMethod.prototype['bound-ips'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -CreateAuthMethod.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -CreateAuthMethod.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateAuthMethod.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -CreateAuthMethod.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -CreateAuthMethod.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateAuthMethod.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateAuthMethod.prototype['uid-token'] = undefined; -var _default = CreateAuthMethod; -exports["default"] = _default; - -/***/ }), - -/***/ 39317: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodAWSIAM model module. - * @module model/CreateAuthMethodAWSIAM - * @version 3.3.16 - */ -var CreateAuthMethodAWSIAM = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodAWSIAM. - * createAuthMethodAWSIAM is a command that creates a new Auth Method that will be able to authenticate using AWS IAM credentials. - * @alias module:model/CreateAuthMethodAWSIAM - * @param boundAwsAccountId {Array.} A list of AWS account-IDs that the access is restricted to - * @param name {String} Auth Method name - */ - function CreateAuthMethodAWSIAM(boundAwsAccountId, name) { - _classCallCheck(this, CreateAuthMethodAWSIAM); - - CreateAuthMethodAWSIAM.initialize(this, boundAwsAccountId, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodAWSIAM, null, [{ - key: "initialize", - value: function initialize(obj, boundAwsAccountId, name) { - obj['bound-aws-account-id'] = boundAwsAccountId; - obj['name'] = name; - } - /** - * Constructs a CreateAuthMethodAWSIAM from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodAWSIAM} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodAWSIAM} The populated CreateAuthMethodAWSIAM instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodAWSIAM(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('bound-arn')) { - obj['bound-arn'] = _ApiClient["default"].convertToType(data['bound-arn'], ['String']); - } - - if (data.hasOwnProperty('bound-aws-account-id')) { - obj['bound-aws-account-id'] = _ApiClient["default"].convertToType(data['bound-aws-account-id'], ['String']); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('bound-resource-id')) { - obj['bound-resource-id'] = _ApiClient["default"].convertToType(data['bound-resource-id'], ['String']); - } - - if (data.hasOwnProperty('bound-role-id')) { - obj['bound-role-id'] = _ApiClient["default"].convertToType(data['bound-role-id'], ['String']); - } - - if (data.hasOwnProperty('bound-role-name')) { - obj['bound-role-name'] = _ApiClient["default"].convertToType(data['bound-role-name'], ['String']); - } - - if (data.hasOwnProperty('bound-user-id')) { - obj['bound-user-id'] = _ApiClient["default"].convertToType(data['bound-user-id'], ['String']); - } - - if (data.hasOwnProperty('bound-user-name')) { - obj['bound-user-name'] = _ApiClient["default"].convertToType(data['bound-user-name'], ['String']); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('sts-url')) { - obj['sts-url'] = _ApiClient["default"].convertToType(data['sts-url'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodAWSIAM; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -CreateAuthMethodAWSIAM.prototype['access-expires'] = 0; -/** - * A list of full arns that the access is restricted to - * @member {Array.} bound-arn - */ - -CreateAuthMethodAWSIAM.prototype['bound-arn'] = undefined; -/** - * A list of AWS account-IDs that the access is restricted to - * @member {Array.} bound-aws-account-id - */ - -CreateAuthMethodAWSIAM.prototype['bound-aws-account-id'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -CreateAuthMethodAWSIAM.prototype['bound-ips'] = undefined; -/** - * A list of full resource ids that the access is restricted to - * @member {Array.} bound-resource-id - */ - -CreateAuthMethodAWSIAM.prototype['bound-resource-id'] = undefined; -/** - * A list of full role ids that the access is restricted to - * @member {Array.} bound-role-id - */ - -CreateAuthMethodAWSIAM.prototype['bound-role-id'] = undefined; -/** - * A list of full role-name that the access is restricted to - * @member {Array.} bound-role-name - */ - -CreateAuthMethodAWSIAM.prototype['bound-role-name'] = undefined; -/** - * A list of full user ids that the access is restricted to - * @member {Array.} bound-user-id - */ - -CreateAuthMethodAWSIAM.prototype['bound-user-id'] = undefined; -/** - * A list of full user-name that the access is restricted to - * @member {Array.} bound-user-name - */ - -CreateAuthMethodAWSIAM.prototype['bound-user-name'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -CreateAuthMethodAWSIAM.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -CreateAuthMethodAWSIAM.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateAuthMethodAWSIAM.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -CreateAuthMethodAWSIAM.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -CreateAuthMethodAWSIAM.prototype['name'] = undefined; -/** - * sts URL - * @member {String} sts-url - * @default 'https://sts.amazonaws.com' - */ - -CreateAuthMethodAWSIAM.prototype['sts-url'] = 'https://sts.amazonaws.com'; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateAuthMethodAWSIAM.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateAuthMethodAWSIAM.prototype['uid-token'] = undefined; -var _default = CreateAuthMethodAWSIAM; -exports["default"] = _default; - -/***/ }), - -/***/ 29184: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodAWSIAMOutput model module. - * @module model/CreateAuthMethodAWSIAMOutput - * @version 3.3.16 - */ -var CreateAuthMethodAWSIAMOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodAWSIAMOutput. - * @alias module:model/CreateAuthMethodAWSIAMOutput - */ - function CreateAuthMethodAWSIAMOutput() { - _classCallCheck(this, CreateAuthMethodAWSIAMOutput); - - CreateAuthMethodAWSIAMOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodAWSIAMOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodAWSIAMOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodAWSIAMOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodAWSIAMOutput} The populated CreateAuthMethodAWSIAMOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodAWSIAMOutput(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodAWSIAMOutput; -}(); -/** - * @member {String} access_id - */ - - -CreateAuthMethodAWSIAMOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodAWSIAMOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 47553: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodAzureAD model module. - * @module model/CreateAuthMethodAzureAD - * @version 3.3.16 - */ -var CreateAuthMethodAzureAD = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodAzureAD. - * createAuthMethodAzureAD is a command that creates a new auth method that will be able to authenticate using Azure Active Directory credentials. - * @alias module:model/CreateAuthMethodAzureAD - * @param boundTenantId {String} The Azure tenant id that the access is restricted to - * @param name {String} Auth Method name - */ - function CreateAuthMethodAzureAD(boundTenantId, name) { - _classCallCheck(this, CreateAuthMethodAzureAD); - - CreateAuthMethodAzureAD.initialize(this, boundTenantId, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodAzureAD, null, [{ - key: "initialize", - value: function initialize(obj, boundTenantId, name) { - obj['bound-tenant-id'] = boundTenantId; - obj['name'] = name; - } - /** - * Constructs a CreateAuthMethodAzureAD from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodAzureAD} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodAzureAD} The populated CreateAuthMethodAzureAD instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodAzureAD(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); - } - - if (data.hasOwnProperty('bound-group-id')) { - obj['bound-group-id'] = _ApiClient["default"].convertToType(data['bound-group-id'], ['String']); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('bound-providers')) { - obj['bound-providers'] = _ApiClient["default"].convertToType(data['bound-providers'], ['String']); - } - - if (data.hasOwnProperty('bound-resource-id')) { - obj['bound-resource-id'] = _ApiClient["default"].convertToType(data['bound-resource-id'], ['String']); - } - - if (data.hasOwnProperty('bound-resource-names')) { - obj['bound-resource-names'] = _ApiClient["default"].convertToType(data['bound-resource-names'], ['String']); - } - - if (data.hasOwnProperty('bound-resource-types')) { - obj['bound-resource-types'] = _ApiClient["default"].convertToType(data['bound-resource-types'], ['String']); - } - - if (data.hasOwnProperty('bound-rg-id')) { - obj['bound-rg-id'] = _ApiClient["default"].convertToType(data['bound-rg-id'], ['String']); - } - - if (data.hasOwnProperty('bound-spid')) { - obj['bound-spid'] = _ApiClient["default"].convertToType(data['bound-spid'], ['String']); - } - - if (data.hasOwnProperty('bound-sub-id')) { - obj['bound-sub-id'] = _ApiClient["default"].convertToType(data['bound-sub-id'], ['String']); - } - - if (data.hasOwnProperty('bound-tenant-id')) { - obj['bound-tenant-id'] = _ApiClient["default"].convertToType(data['bound-tenant-id'], 'String'); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwks-uri')) { - obj['jwks-uri'] = _ApiClient["default"].convertToType(data['jwks-uri'], 'String'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodAzureAD; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -CreateAuthMethodAzureAD.prototype['access-expires'] = 0; -/** - * The audience in the JWT - * @member {String} audience - * @default 'https://management.azure.com/' - */ - -CreateAuthMethodAzureAD.prototype['audience'] = 'https://management.azure.com/'; -/** - * A list of group ids that the access is restricted to - * @member {Array.} bound-group-id - */ - -CreateAuthMethodAzureAD.prototype['bound-group-id'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -CreateAuthMethodAzureAD.prototype['bound-ips'] = undefined; -/** - * A list of resource providers that the access is restricted to (e.g, Microsoft.Compute, Microsoft.ManagedIdentity, etc) - * @member {Array.} bound-providers - */ - -CreateAuthMethodAzureAD.prototype['bound-providers'] = undefined; -/** - * A list of full resource ids that the access is restricted to - * @member {Array.} bound-resource-id - */ - -CreateAuthMethodAzureAD.prototype['bound-resource-id'] = undefined; -/** - * A list of resource names that the access is restricted to (e.g, a virtual machine name, scale set name, etc). - * @member {Array.} bound-resource-names - */ - -CreateAuthMethodAzureAD.prototype['bound-resource-names'] = undefined; -/** - * A list of resource types that the access is restricted to (e.g, virtualMachines, userAssignedIdentities, etc) - * @member {Array.} bound-resource-types - */ - -CreateAuthMethodAzureAD.prototype['bound-resource-types'] = undefined; -/** - * A list of resource groups that the access is restricted to - * @member {Array.} bound-rg-id - */ - -CreateAuthMethodAzureAD.prototype['bound-rg-id'] = undefined; -/** - * A list of service principal IDs that the access is restricted to - * @member {Array.} bound-spid - */ - -CreateAuthMethodAzureAD.prototype['bound-spid'] = undefined; -/** - * A list of subscription ids that the access is restricted to - * @member {Array.} bound-sub-id - */ - -CreateAuthMethodAzureAD.prototype['bound-sub-id'] = undefined; -/** - * The Azure tenant id that the access is restricted to - * @member {String} bound-tenant-id - */ - -CreateAuthMethodAzureAD.prototype['bound-tenant-id'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -CreateAuthMethodAzureAD.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -CreateAuthMethodAzureAD.prototype['gw-bound-ips'] = undefined; -/** - * Issuer URL - * @member {String} issuer - * @default 'https://sts.windows.net/---bound_tenant_id---' - */ - -CreateAuthMethodAzureAD.prototype['issuer'] = 'https://sts.windows.net/---bound_tenant_id---'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateAuthMethodAzureAD.prototype['json'] = false; -/** - * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. - * @member {String} jwks-uri - * @default 'https://login.microsoftonline.com/common/discovery/keys' - */ - -CreateAuthMethodAzureAD.prototype['jwks-uri'] = 'https://login.microsoftonline.com/common/discovery/keys'; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -CreateAuthMethodAzureAD.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -CreateAuthMethodAzureAD.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateAuthMethodAzureAD.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateAuthMethodAzureAD.prototype['uid-token'] = undefined; -var _default = CreateAuthMethodAzureAD; -exports["default"] = _default; - -/***/ }), - -/***/ 40820: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodAzureADOutput model module. - * @module model/CreateAuthMethodAzureADOutput - * @version 3.3.16 - */ -var CreateAuthMethodAzureADOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodAzureADOutput. - * @alias module:model/CreateAuthMethodAzureADOutput - */ - function CreateAuthMethodAzureADOutput() { - _classCallCheck(this, CreateAuthMethodAzureADOutput); - - CreateAuthMethodAzureADOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodAzureADOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodAzureADOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodAzureADOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodAzureADOutput} The populated CreateAuthMethodAzureADOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodAzureADOutput(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodAzureADOutput; -}(); -/** - * @member {String} access_id - */ - - -CreateAuthMethodAzureADOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodAzureADOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 9265: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodCert model module. - * @module model/CreateAuthMethodCert - * @version 3.3.16 - */ -var CreateAuthMethodCert = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodCert. - * createAuthMethodCert is a command that creates a new auth method that will be able to authenticate using a client certificae - * @alias module:model/CreateAuthMethodCert - * @param name {String} Auth Method name - * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured, such as common_name or organizational_unit Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - */ - function CreateAuthMethodCert(name, uniqueIdentifier) { - _classCallCheck(this, CreateAuthMethodCert); - - CreateAuthMethodCert.initialize(this, name, uniqueIdentifier); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodCert, null, [{ - key: "initialize", - value: function initialize(obj, name, uniqueIdentifier) { - obj['name'] = name; - obj['unique-identifier'] = uniqueIdentifier; - } - /** - * Constructs a CreateAuthMethodCert from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodCert} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodCert} The populated CreateAuthMethodCert instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodCert(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('allowed-cors')) { - obj['allowed-cors'] = _ApiClient["default"].convertToType(data['allowed-cors'], 'String'); - } - - if (data.hasOwnProperty('bound-common-names')) { - obj['bound-common-names'] = _ApiClient["default"].convertToType(data['bound-common-names'], ['String']); - } - - if (data.hasOwnProperty('bound-dns-sans')) { - obj['bound-dns-sans'] = _ApiClient["default"].convertToType(data['bound-dns-sans'], ['String']); - } - - if (data.hasOwnProperty('bound-email-sans')) { - obj['bound-email-sans'] = _ApiClient["default"].convertToType(data['bound-email-sans'], ['String']); - } - - if (data.hasOwnProperty('bound-extensions')) { - obj['bound-extensions'] = _ApiClient["default"].convertToType(data['bound-extensions'], ['String']); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('bound-organizational-units')) { - obj['bound-organizational-units'] = _ApiClient["default"].convertToType(data['bound-organizational-units'], ['String']); - } - - if (data.hasOwnProperty('bound-uri-sans')) { - obj['bound-uri-sans'] = _ApiClient["default"].convertToType(data['bound-uri-sans'], ['String']); - } - - if (data.hasOwnProperty('certificate-data')) { - obj['certificate-data'] = _ApiClient["default"].convertToType(data['certificate-data'], 'String'); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('revoked-cert-ids')) { - obj['revoked-cert-ids'] = _ApiClient["default"].convertToType(data['revoked-cert-ids'], ['String']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodCert; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -CreateAuthMethodCert.prototype['access-expires'] = 0; -/** - * Comma separated list of allowed CORS domains to be validated as part of the authentication flow. - * @member {String} allowed-cors - */ - -CreateAuthMethodCert.prototype['allowed-cors'] = undefined; -/** - * A list of names. At least one must exist in the Common Name. Supports globbing. - * @member {Array.} bound-common-names - */ - -CreateAuthMethodCert.prototype['bound-common-names'] = undefined; -/** - * A list of DNS names. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound-dns-sans - */ - -CreateAuthMethodCert.prototype['bound-dns-sans'] = undefined; -/** - * A list of Email Addresses. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound-email-sans - */ - -CreateAuthMethodCert.prototype['bound-email-sans'] = undefined; -/** - * A list of extensions formatted as \"oid:value\". Expects the extension value to be some type of ASN1 encoded string. All values much match. Supports globbing on \"value\". - * @member {Array.} bound-extensions - */ - -CreateAuthMethodCert.prototype['bound-extensions'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -CreateAuthMethodCert.prototype['bound-ips'] = undefined; -/** - * A list of Organizational Units names. At least one must exist in the OU field. - * @member {Array.} bound-organizational-units - */ - -CreateAuthMethodCert.prototype['bound-organizational-units'] = undefined; -/** - * A list of URIs. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound-uri-sans - */ - -CreateAuthMethodCert.prototype['bound-uri-sans'] = undefined; -/** - * The certificate data in base64, if no file was provided - * @member {String} certificate-data - */ - -CreateAuthMethodCert.prototype['certificate-data'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -CreateAuthMethodCert.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -CreateAuthMethodCert.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateAuthMethodCert.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -CreateAuthMethodCert.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -CreateAuthMethodCert.prototype['name'] = undefined; -/** - * A list of revoked cert ids - * @member {Array.} revoked-cert-ids - */ - -CreateAuthMethodCert.prototype['revoked-cert-ids'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateAuthMethodCert.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateAuthMethodCert.prototype['uid-token'] = undefined; -/** - * A unique identifier (ID) value should be configured, such as common_name or organizational_unit Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier - */ - -CreateAuthMethodCert.prototype['unique-identifier'] = undefined; -var _default = CreateAuthMethodCert; -exports["default"] = _default; - -/***/ }), - -/***/ 64228: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodCertOutput model module. - * @module model/CreateAuthMethodCertOutput - * @version 3.3.16 - */ -var CreateAuthMethodCertOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodCertOutput. - * @alias module:model/CreateAuthMethodCertOutput - */ - function CreateAuthMethodCertOutput() { - _classCallCheck(this, CreateAuthMethodCertOutput); - - CreateAuthMethodCertOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodCertOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodCertOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodCertOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodCertOutput} The populated CreateAuthMethodCertOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodCertOutput(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodCertOutput; -}(); -/** - * @member {String} access_id - */ - - -CreateAuthMethodCertOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodCertOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 42003: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodEmail model module. - * @module model/CreateAuthMethodEmail - * @version 3.3.16 - */ -var CreateAuthMethodEmail = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodEmail. - * createAuthMethodEmail is a command that creates a new auth method that will be able to authenticate using email. - * @alias module:model/CreateAuthMethodEmail - * @param email {String} An email address to be invited to have access - * @param name {String} Auth Method name - */ - function CreateAuthMethodEmail(email, name) { - _classCallCheck(this, CreateAuthMethodEmail); - - CreateAuthMethodEmail.initialize(this, email, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodEmail, null, [{ - key: "initialize", - value: function initialize(obj, email, name) { - obj['email'] = email; - obj['name'] = name; - } - /** - * Constructs a CreateAuthMethodEmail from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodEmail} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodEmail} The populated CreateAuthMethodEmail instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodEmail(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('email')) { - obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodEmail; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -CreateAuthMethodEmail.prototype['access-expires'] = 0; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -CreateAuthMethodEmail.prototype['bound-ips'] = undefined; -/** - * An email address to be invited to have access - * @member {String} email - */ - -CreateAuthMethodEmail.prototype['email'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -CreateAuthMethodEmail.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -CreateAuthMethodEmail.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateAuthMethodEmail.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -CreateAuthMethodEmail.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -CreateAuthMethodEmail.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateAuthMethodEmail.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateAuthMethodEmail.prototype['uid-token'] = undefined; -var _default = CreateAuthMethodEmail; -exports["default"] = _default; - -/***/ }), - -/***/ 20898: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodEmailOutput model module. - * @module model/CreateAuthMethodEmailOutput - * @version 3.3.16 - */ -var CreateAuthMethodEmailOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodEmailOutput. - * @alias module:model/CreateAuthMethodEmailOutput - */ - function CreateAuthMethodEmailOutput() { - _classCallCheck(this, CreateAuthMethodEmailOutput); - - CreateAuthMethodEmailOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodEmailOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodEmailOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodEmailOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodEmailOutput} The populated CreateAuthMethodEmailOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodEmailOutput(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodEmailOutput; -}(); -/** - * @member {String} access_id - */ - - -CreateAuthMethodEmailOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodEmailOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 26285: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodGCP model module. - * @module model/CreateAuthMethodGCP - * @version 3.3.16 - */ -var CreateAuthMethodGCP = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodGCP. - * createAuthMethodGCP is a command that creates a new auth method that will be able to authenticate using GCP IAM Service Account credentials or GCE instance credentials. - * @alias module:model/CreateAuthMethodGCP - * @param audience {String} The audience to verify in the JWT received by the client - * @param name {String} Auth Method name - * @param type {String} Type of the GCP Access Rules - */ - function CreateAuthMethodGCP(audience, name, type) { - _classCallCheck(this, CreateAuthMethodGCP); - - CreateAuthMethodGCP.initialize(this, audience, name, type); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodGCP, null, [{ - key: "initialize", - value: function initialize(obj, audience, name, type) { - obj['audience'] = audience; - obj['name'] = name; - obj['type'] = type; - } - /** - * Constructs a CreateAuthMethodGCP from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodGCP} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodGCP} The populated CreateAuthMethodGCP instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodGCP(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('bound-labels')) { - obj['bound-labels'] = _ApiClient["default"].convertToType(data['bound-labels'], ['String']); - } - - if (data.hasOwnProperty('bound-projects')) { - obj['bound-projects'] = _ApiClient["default"].convertToType(data['bound-projects'], ['String']); - } - - if (data.hasOwnProperty('bound-regions')) { - obj['bound-regions'] = _ApiClient["default"].convertToType(data['bound-regions'], ['String']); - } - - if (data.hasOwnProperty('bound-service-accounts')) { - obj['bound-service-accounts'] = _ApiClient["default"].convertToType(data['bound-service-accounts'], ['String']); - } - - if (data.hasOwnProperty('bound-zones')) { - obj['bound-zones'] = _ApiClient["default"].convertToType(data['bound-zones'], ['String']); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('service-account-creds-data')) { - obj['service-account-creds-data'] = _ApiClient["default"].convertToType(data['service-account-creds-data'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodGCP; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -CreateAuthMethodGCP.prototype['access-expires'] = 0; -/** - * The audience to verify in the JWT received by the client - * @member {String} audience - * @default 'akeyless.io' - */ - -CreateAuthMethodGCP.prototype['audience'] = 'akeyless.io'; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -CreateAuthMethodGCP.prototype['bound-ips'] = undefined; -/** - * A comma-separated list of GCP labels formatted as \"key:value\" strings that must be set on authorized GCE instances. TODO: Because GCP labels are not currently ACL'd .... - * @member {Array.} bound-labels - */ - -CreateAuthMethodGCP.prototype['bound-labels'] = undefined; -/** - * === Human and Machine authentication section === Array of GCP project IDs. Only entities belonging to any of the provided projects can authenticate. - * @member {Array.} bound-projects - */ - -CreateAuthMethodGCP.prototype['bound-projects'] = undefined; -/** - * List of regions that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored. - * @member {Array.} bound-regions - */ - -CreateAuthMethodGCP.prototype['bound-regions'] = undefined; -/** - * List of service accounts the service account must be part of in order to be authenticated. - * @member {Array.} bound-service-accounts - */ - -CreateAuthMethodGCP.prototype['bound-service-accounts'] = undefined; -/** - * === Machine authentication section === List of zones that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone. - * @member {Array.} bound-zones - */ - -CreateAuthMethodGCP.prototype['bound-zones'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -CreateAuthMethodGCP.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -CreateAuthMethodGCP.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateAuthMethodGCP.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -CreateAuthMethodGCP.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -CreateAuthMethodGCP.prototype['name'] = undefined; -/** - * ServiceAccount credentials data instead of giving a file path, base64 encoded - * @member {String} service-account-creds-data - */ - -CreateAuthMethodGCP.prototype['service-account-creds-data'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateAuthMethodGCP.prototype['token'] = undefined; -/** - * Type of the GCP Access Rules - * @member {String} type - */ - -CreateAuthMethodGCP.prototype['type'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateAuthMethodGCP.prototype['uid-token'] = undefined; -var _default = CreateAuthMethodGCP; -exports["default"] = _default; - -/***/ }), - -/***/ 62664: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodGCPOutput model module. - * @module model/CreateAuthMethodGCPOutput - * @version 3.3.16 - */ -var CreateAuthMethodGCPOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodGCPOutput. - * @alias module:model/CreateAuthMethodGCPOutput - */ - function CreateAuthMethodGCPOutput() { - _classCallCheck(this, CreateAuthMethodGCPOutput); - - CreateAuthMethodGCPOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodGCPOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodGCPOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodGCPOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodGCPOutput} The populated CreateAuthMethodGCPOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodGCPOutput(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodGCPOutput; -}(); -/** - * @member {String} access_id - */ - - -CreateAuthMethodGCPOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodGCPOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 96274: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodHuawei model module. - * @module model/CreateAuthMethodHuawei - * @version 3.3.16 - */ -var CreateAuthMethodHuawei = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodHuawei. - * createAuthMethodHuawei is a command that creates a new auth method that will be able to authenticate using Huawei credentials. - * @alias module:model/CreateAuthMethodHuawei - * @param name {String} Auth Method name - */ - function CreateAuthMethodHuawei(name) { - _classCallCheck(this, CreateAuthMethodHuawei); - - CreateAuthMethodHuawei.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodHuawei, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateAuthMethodHuawei from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodHuawei} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodHuawei} The populated CreateAuthMethodHuawei instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodHuawei(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('auth-url')) { - obj['auth-url'] = _ApiClient["default"].convertToType(data['auth-url'], 'String'); - } - - if (data.hasOwnProperty('bound-domain-id')) { - obj['bound-domain-id'] = _ApiClient["default"].convertToType(data['bound-domain-id'], ['String']); - } - - if (data.hasOwnProperty('bound-domain-name')) { - obj['bound-domain-name'] = _ApiClient["default"].convertToType(data['bound-domain-name'], ['String']); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('bound-tenant-id')) { - obj['bound-tenant-id'] = _ApiClient["default"].convertToType(data['bound-tenant-id'], ['String']); - } - - if (data.hasOwnProperty('bound-tenant-name')) { - obj['bound-tenant-name'] = _ApiClient["default"].convertToType(data['bound-tenant-name'], ['String']); - } - - if (data.hasOwnProperty('bound-user-id')) { - obj['bound-user-id'] = _ApiClient["default"].convertToType(data['bound-user-id'], ['String']); - } - - if (data.hasOwnProperty('bound-user-name')) { - obj['bound-user-name'] = _ApiClient["default"].convertToType(data['bound-user-name'], ['String']); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodHuawei; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -CreateAuthMethodHuawei.prototype['access-expires'] = 0; -/** - * sts URL - * @member {String} auth-url - * @default 'https://iam.myhwclouds.com:443/v3' - */ - -CreateAuthMethodHuawei.prototype['auth-url'] = 'https://iam.myhwclouds.com:443/v3'; -/** - * A list of domain IDs that the access is restricted to - * @member {Array.} bound-domain-id - */ - -CreateAuthMethodHuawei.prototype['bound-domain-id'] = undefined; -/** - * A list of domain names that the access is restricted to - * @member {Array.} bound-domain-name - */ - -CreateAuthMethodHuawei.prototype['bound-domain-name'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -CreateAuthMethodHuawei.prototype['bound-ips'] = undefined; -/** - * A list of full tenant ids that the access is restricted to - * @member {Array.} bound-tenant-id - */ - -CreateAuthMethodHuawei.prototype['bound-tenant-id'] = undefined; -/** - * A list of full tenant names that the access is restricted to - * @member {Array.} bound-tenant-name - */ - -CreateAuthMethodHuawei.prototype['bound-tenant-name'] = undefined; -/** - * A list of full user ids that the access is restricted to - * @member {Array.} bound-user-id - */ - -CreateAuthMethodHuawei.prototype['bound-user-id'] = undefined; -/** - * A list of full user-name that the access is restricted to - * @member {Array.} bound-user-name - */ - -CreateAuthMethodHuawei.prototype['bound-user-name'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -CreateAuthMethodHuawei.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -CreateAuthMethodHuawei.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateAuthMethodHuawei.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -CreateAuthMethodHuawei.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -CreateAuthMethodHuawei.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateAuthMethodHuawei.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateAuthMethodHuawei.prototype['uid-token'] = undefined; -var _default = CreateAuthMethodHuawei; -exports["default"] = _default; - -/***/ }), - -/***/ 90359: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodHuaweiOutput model module. - * @module model/CreateAuthMethodHuaweiOutput - * @version 3.3.16 - */ -var CreateAuthMethodHuaweiOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodHuaweiOutput. - * @alias module:model/CreateAuthMethodHuaweiOutput - */ - function CreateAuthMethodHuaweiOutput() { - _classCallCheck(this, CreateAuthMethodHuaweiOutput); - - CreateAuthMethodHuaweiOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodHuaweiOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodHuaweiOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodHuaweiOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodHuaweiOutput} The populated CreateAuthMethodHuaweiOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodHuaweiOutput(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodHuaweiOutput; -}(); -/** - * @member {String} access_id - */ - - -CreateAuthMethodHuaweiOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodHuaweiOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 39443: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodK8S model module. - * @module model/CreateAuthMethodK8S - * @version 3.3.16 - */ -var CreateAuthMethodK8S = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodK8S. - * createAuthMethodK8S is a command that creates a new auth method that will be able to authenticate using K8S. - * @alias module:model/CreateAuthMethodK8S - * @param name {String} Auth Method name - */ - function CreateAuthMethodK8S(name) { - _classCallCheck(this, CreateAuthMethodK8S); - - CreateAuthMethodK8S.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodK8S, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateAuthMethodK8S from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodK8S} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodK8S} The populated CreateAuthMethodK8S instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodK8S(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('bound-namespaces')) { - obj['bound-namespaces'] = _ApiClient["default"].convertToType(data['bound-namespaces'], ['String']); - } - - if (data.hasOwnProperty('bound-pod-names')) { - obj['bound-pod-names'] = _ApiClient["default"].convertToType(data['bound-pod-names'], ['String']); - } - - if (data.hasOwnProperty('bound-sa-names')) { - obj['bound-sa-names'] = _ApiClient["default"].convertToType(data['bound-sa-names'], ['String']); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gen-key')) { - obj['gen-key'] = _ApiClient["default"].convertToType(data['gen-key'], 'String'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('public-key')) { - obj['public-key'] = _ApiClient["default"].convertToType(data['public-key'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodK8S; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -CreateAuthMethodK8S.prototype['access-expires'] = 0; -/** - * The audience in the Kubernetes JWT that the access is restricted to - * @member {String} audience - */ - -CreateAuthMethodK8S.prototype['audience'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -CreateAuthMethodK8S.prototype['bound-ips'] = undefined; -/** - * A list of namespaces that the access is restricted to - * @member {Array.} bound-namespaces - */ - -CreateAuthMethodK8S.prototype['bound-namespaces'] = undefined; -/** - * A list of pod names that the access is restricted to - * @member {Array.} bound-pod-names - */ - -CreateAuthMethodK8S.prototype['bound-pod-names'] = undefined; -/** - * A list of service account names that the access is restricted to - * @member {Array.} bound-sa-names - */ - -CreateAuthMethodK8S.prototype['bound-sa-names'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -CreateAuthMethodK8S.prototype['force-sub-claims'] = undefined; -/** - * Automatically generate key-pair for K8S configuration. If set to false, a public key needs to be provided [true/false] - * @member {String} gen-key - * @default 'true' - */ - -CreateAuthMethodK8S.prototype['gen-key'] = 'true'; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -CreateAuthMethodK8S.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateAuthMethodK8S.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -CreateAuthMethodK8S.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -CreateAuthMethodK8S.prototype['name'] = undefined; -/** - * Base64-encoded or PEM formatted public key data for K8S authentication method is required [RSA2048] - * @member {String} public-key - */ - -CreateAuthMethodK8S.prototype['public-key'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateAuthMethodK8S.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateAuthMethodK8S.prototype['uid-token'] = undefined; -var _default = CreateAuthMethodK8S; -exports["default"] = _default; - -/***/ }), - -/***/ 7586: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodK8SOutput model module. - * @module model/CreateAuthMethodK8SOutput - * @version 3.3.16 - */ -var CreateAuthMethodK8SOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodK8SOutput. - * @alias module:model/CreateAuthMethodK8SOutput - */ - function CreateAuthMethodK8SOutput() { - _classCallCheck(this, CreateAuthMethodK8SOutput); - - CreateAuthMethodK8SOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodK8SOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodK8SOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodK8SOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodK8SOutput} The populated CreateAuthMethodK8SOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodK8SOutput(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - - if (data.hasOwnProperty('prv_key')) { - obj['prv_key'] = _ApiClient["default"].convertToType(data['prv_key'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodK8SOutput; -}(); -/** - * @member {String} access_id - */ - - -CreateAuthMethodK8SOutput.prototype['access_id'] = undefined; -/** - * @member {String} prv_key - */ - -CreateAuthMethodK8SOutput.prototype['prv_key'] = undefined; -var _default = CreateAuthMethodK8SOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 10158: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodLDAP model module. - * @module model/CreateAuthMethodLDAP - * @version 3.3.16 - */ -var CreateAuthMethodLDAP = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodLDAP. - * createAuthMethodLDAP is a command that creates a new auth method that will be able to authenticate using LDAP. - * @alias module:model/CreateAuthMethodLDAP - * @param name {String} Auth Method name - */ - function CreateAuthMethodLDAP(name) { - _classCallCheck(this, CreateAuthMethodLDAP); - - CreateAuthMethodLDAP.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodLDAP, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateAuthMethodLDAP from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodLDAP} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodLDAP} The populated CreateAuthMethodLDAP instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodLDAP(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gen-key')) { - obj['gen-key'] = _ApiClient["default"].convertToType(data['gen-key'], 'String'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('public-key-data')) { - obj['public-key-data'] = _ApiClient["default"].convertToType(data['public-key-data'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodLDAP; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -CreateAuthMethodLDAP.prototype['access-expires'] = 0; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -CreateAuthMethodLDAP.prototype['bound-ips'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -CreateAuthMethodLDAP.prototype['force-sub-claims'] = undefined; -/** - * Automatically generate key-pair for LDAP configuration. If set to false, a public key needs to be provided [true/false] - * @member {String} gen-key - * @default 'true' - */ - -CreateAuthMethodLDAP.prototype['gen-key'] = 'true'; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -CreateAuthMethodLDAP.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateAuthMethodLDAP.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -CreateAuthMethodLDAP.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -CreateAuthMethodLDAP.prototype['name'] = undefined; -/** - * A public key generated for LDAP authentication method on Akeyless in base64 or PEM format [RSA2048] - * @member {String} public-key-data - */ - -CreateAuthMethodLDAP.prototype['public-key-data'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateAuthMethodLDAP.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateAuthMethodLDAP.prototype['uid-token'] = undefined; -/** - * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier - * @default 'users' - */ - -CreateAuthMethodLDAP.prototype['unique-identifier'] = 'users'; -var _default = CreateAuthMethodLDAP; -exports["default"] = _default; - -/***/ }), - -/***/ 85019: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodLDAPOutput model module. - * @module model/CreateAuthMethodLDAPOutput - * @version 3.3.16 - */ -var CreateAuthMethodLDAPOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodLDAPOutput. - * @alias module:model/CreateAuthMethodLDAPOutput - */ - function CreateAuthMethodLDAPOutput() { - _classCallCheck(this, CreateAuthMethodLDAPOutput); - - CreateAuthMethodLDAPOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodLDAPOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodLDAPOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodLDAPOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodLDAPOutput} The populated CreateAuthMethodLDAPOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodLDAPOutput(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - - if (data.hasOwnProperty('prv_key')) { - obj['prv_key'] = _ApiClient["default"].convertToType(data['prv_key'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodLDAPOutput; -}(); -/** - * @member {String} access_id - */ - - -CreateAuthMethodLDAPOutput.prototype['access_id'] = undefined; -/** - * @member {String} prv_key - */ - -CreateAuthMethodLDAPOutput.prototype['prv_key'] = undefined; -var _default = CreateAuthMethodLDAPOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 46424: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodOAuth2 model module. - * @module model/CreateAuthMethodOAuth2 - * @version 3.3.16 - */ -var CreateAuthMethodOAuth2 = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodOAuth2. - * createAuthMethodOAuth2 is a command that creates a new auth method that will be able to authenticate using Oauth2. - * @alias module:model/CreateAuthMethodOAuth2 - * @param jwksUri {String} The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. - * @param name {String} Auth Method name - * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - */ - function CreateAuthMethodOAuth2(jwksUri, name, uniqueIdentifier) { - _classCallCheck(this, CreateAuthMethodOAuth2); - - CreateAuthMethodOAuth2.initialize(this, jwksUri, name, uniqueIdentifier); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodOAuth2, null, [{ - key: "initialize", - value: function initialize(obj, jwksUri, name, uniqueIdentifier) { - obj['jwks-uri'] = jwksUri; - obj['name'] = name; - obj['unique-identifier'] = uniqueIdentifier; - } - /** - * Constructs a CreateAuthMethodOAuth2 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodOAuth2} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodOAuth2} The populated CreateAuthMethodOAuth2 instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodOAuth2(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); - } - - if (data.hasOwnProperty('bound-client-ids')) { - obj['bound-client-ids'] = _ApiClient["default"].convertToType(data['bound-client-ids'], ['String']); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwks-json-data')) { - obj['jwks-json-data'] = _ApiClient["default"].convertToType(data['jwks-json-data'], 'String'); - } - - if (data.hasOwnProperty('jwks-uri')) { - obj['jwks-uri'] = _ApiClient["default"].convertToType(data['jwks-uri'], 'String'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodOAuth2; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -CreateAuthMethodOAuth2.prototype['access-expires'] = 0; -/** - * The audience in the JWT - * @member {String} audience - */ - -CreateAuthMethodOAuth2.prototype['audience'] = undefined; -/** - * The clients ids that the access is restricted to - * @member {Array.} bound-client-ids - */ - -CreateAuthMethodOAuth2.prototype['bound-client-ids'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -CreateAuthMethodOAuth2.prototype['bound-ips'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -CreateAuthMethodOAuth2.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -CreateAuthMethodOAuth2.prototype['gw-bound-ips'] = undefined; -/** - * Issuer URL - * @member {String} issuer - */ - -CreateAuthMethodOAuth2.prototype['issuer'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateAuthMethodOAuth2.prototype['json'] = false; -/** - * The JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. base64 encoded string - * @member {String} jwks-json-data - */ - -CreateAuthMethodOAuth2.prototype['jwks-json-data'] = undefined; -/** - * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. - * @member {String} jwks-uri - * @default 'default_jwks_url' - */ - -CreateAuthMethodOAuth2.prototype['jwks-uri'] = 'default_jwks_url'; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -CreateAuthMethodOAuth2.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -CreateAuthMethodOAuth2.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateAuthMethodOAuth2.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateAuthMethodOAuth2.prototype['uid-token'] = undefined; -/** - * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier - */ - -CreateAuthMethodOAuth2.prototype['unique-identifier'] = undefined; -var _default = CreateAuthMethodOAuth2; -exports["default"] = _default; - -/***/ }), - -/***/ 60689: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodOAuth2Output model module. - * @module model/CreateAuthMethodOAuth2Output - * @version 3.3.16 - */ -var CreateAuthMethodOAuth2Output = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodOAuth2Output. - * @alias module:model/CreateAuthMethodOAuth2Output - */ - function CreateAuthMethodOAuth2Output() { - _classCallCheck(this, CreateAuthMethodOAuth2Output); - - CreateAuthMethodOAuth2Output.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodOAuth2Output, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodOAuth2Output from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodOAuth2Output} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodOAuth2Output} The populated CreateAuthMethodOAuth2Output instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodOAuth2Output(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodOAuth2Output; -}(); -/** - * @member {String} access_id - */ - - -CreateAuthMethodOAuth2Output.prototype['access_id'] = undefined; -var _default = CreateAuthMethodOAuth2Output; -exports["default"] = _default; - -/***/ }), - -/***/ 94918: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodOIDC model module. - * @module model/CreateAuthMethodOIDC - * @version 3.3.16 - */ -var CreateAuthMethodOIDC = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodOIDC. - * createAuthMethodOIDC is a command that creates a new auth method that will be available to authenticate using OIDC. - * @alias module:model/CreateAuthMethodOIDC - * @param name {String} Auth Method name - * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OIDC, OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - */ - function CreateAuthMethodOIDC(name, uniqueIdentifier) { - _classCallCheck(this, CreateAuthMethodOIDC); - - CreateAuthMethodOIDC.initialize(this, name, uniqueIdentifier); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodOIDC, null, [{ - key: "initialize", - value: function initialize(obj, name, uniqueIdentifier) { - obj['name'] = name; - obj['unique-identifier'] = uniqueIdentifier; - } - /** - * Constructs a CreateAuthMethodOIDC from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodOIDC} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodOIDC} The populated CreateAuthMethodOIDC instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodOIDC(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('allowed-redirect-uri')) { - obj['allowed-redirect-uri'] = _ApiClient["default"].convertToType(data['allowed-redirect-uri'], ['String']); - } - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); - } - - if (data.hasOwnProperty('client-secret')) { - obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('required-scopes')) { - obj['required-scopes'] = _ApiClient["default"].convertToType(data['required-scopes'], ['String']); - } - - if (data.hasOwnProperty('required-scopes-prefix')) { - obj['required-scopes-prefix'] = _ApiClient["default"].convertToType(data['required-scopes-prefix'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodOIDC; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -CreateAuthMethodOIDC.prototype['access-expires'] = 0; -/** - * Allowed redirect URIs after the authentication - * @member {Array.} allowed-redirect-uri - */ - -CreateAuthMethodOIDC.prototype['allowed-redirect-uri'] = undefined; -/** - * Audience claim to be used as part of the authentication flow. In case set, it must match the one configured on the Identity Provider's Application - * @member {String} audience - */ - -CreateAuthMethodOIDC.prototype['audience'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -CreateAuthMethodOIDC.prototype['bound-ips'] = undefined; -/** - * Client ID - * @member {String} client-id - */ - -CreateAuthMethodOIDC.prototype['client-id'] = undefined; -/** - * Client Secret - * @member {String} client-secret - */ - -CreateAuthMethodOIDC.prototype['client-secret'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -CreateAuthMethodOIDC.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -CreateAuthMethodOIDC.prototype['gw-bound-ips'] = undefined; -/** - * Issuer URL - * @member {String} issuer - */ - -CreateAuthMethodOIDC.prototype['issuer'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateAuthMethodOIDC.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -CreateAuthMethodOIDC.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -CreateAuthMethodOIDC.prototype['name'] = undefined; -/** - * RequiredScopes is a list of required scopes that the oidc method will request from the oidc provider and the user must approve - * @member {Array.} required-scopes - */ - -CreateAuthMethodOIDC.prototype['required-scopes'] = undefined; -/** - * RequiredScopesPrefix is a a prefix to add to all required-scopes when requesting them from the oidc server (for example, azures' Application ID URI) - * @member {String} required-scopes-prefix - */ - -CreateAuthMethodOIDC.prototype['required-scopes-prefix'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateAuthMethodOIDC.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateAuthMethodOIDC.prototype['uid-token'] = undefined; -/** - * A unique identifier (ID) value should be configured for OIDC, OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier - */ - -CreateAuthMethodOIDC.prototype['unique-identifier'] = undefined; -var _default = CreateAuthMethodOIDC; -exports["default"] = _default; - -/***/ }), - -/***/ 56259: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodOIDCOutput model module. - * @module model/CreateAuthMethodOIDCOutput - * @version 3.3.16 - */ -var CreateAuthMethodOIDCOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodOIDCOutput. - * @alias module:model/CreateAuthMethodOIDCOutput - */ - function CreateAuthMethodOIDCOutput() { - _classCallCheck(this, CreateAuthMethodOIDCOutput); - - CreateAuthMethodOIDCOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodOIDCOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodOIDCOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodOIDCOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodOIDCOutput} The populated CreateAuthMethodOIDCOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodOIDCOutput(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodOIDCOutput; -}(); -/** - * @member {String} access_id - */ - - -CreateAuthMethodOIDCOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodOIDCOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 55338: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodOutput model module. - * @module model/CreateAuthMethodOutput - * @version 3.3.16 - */ -var CreateAuthMethodOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodOutput. - * @alias module:model/CreateAuthMethodOutput - */ - function CreateAuthMethodOutput() { - _classCallCheck(this, CreateAuthMethodOutput); - - CreateAuthMethodOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodOutput} The populated CreateAuthMethodOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodOutput(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - - if (data.hasOwnProperty('access_key')) { - obj['access_key'] = _ApiClient["default"].convertToType(data['access_key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodOutput; -}(); -/** - * @member {String} access_id - */ - - -CreateAuthMethodOutput.prototype['access_id'] = undefined; -/** - * @member {String} access_key - */ - -CreateAuthMethodOutput.prototype['access_key'] = undefined; -/** - * @member {String} name - */ - -CreateAuthMethodOutput.prototype['name'] = undefined; -var _default = CreateAuthMethodOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 33710: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodSAML model module. - * @module model/CreateAuthMethodSAML - * @version 3.3.16 - */ -var CreateAuthMethodSAML = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodSAML. - * createAuthMethodSAML is a command that creates a new auth method that will be available to authenticate using SAML. - * @alias module:model/CreateAuthMethodSAML - * @param name {String} Auth Method name - * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - */ - function CreateAuthMethodSAML(name, uniqueIdentifier) { - _classCallCheck(this, CreateAuthMethodSAML); - - CreateAuthMethodSAML.initialize(this, name, uniqueIdentifier); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodSAML, null, [{ - key: "initialize", - value: function initialize(obj, name, uniqueIdentifier) { - obj['name'] = name; - obj['unique-identifier'] = uniqueIdentifier; - } - /** - * Constructs a CreateAuthMethodSAML from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodSAML} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodSAML} The populated CreateAuthMethodSAML instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodSAML(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('allowed-redirect-uri')) { - obj['allowed-redirect-uri'] = _ApiClient["default"].convertToType(data['allowed-redirect-uri'], ['String']); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('idp-metadata-url')) { - obj['idp-metadata-url'] = _ApiClient["default"].convertToType(data['idp-metadata-url'], 'String'); - } - - if (data.hasOwnProperty('idp-metadata-xml-data')) { - obj['idp-metadata-xml-data'] = _ApiClient["default"].convertToType(data['idp-metadata-xml-data'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodSAML; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -CreateAuthMethodSAML.prototype['access-expires'] = 0; -/** - * Allowed redirect URIs after the authentication - * @member {Array.} allowed-redirect-uri - */ - -CreateAuthMethodSAML.prototype['allowed-redirect-uri'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -CreateAuthMethodSAML.prototype['bound-ips'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -CreateAuthMethodSAML.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -CreateAuthMethodSAML.prototype['gw-bound-ips'] = undefined; -/** - * IDP metadata url - * @member {String} idp-metadata-url - */ - -CreateAuthMethodSAML.prototype['idp-metadata-url'] = undefined; -/** - * IDP metadata xml data - * @member {String} idp-metadata-xml-data - */ - -CreateAuthMethodSAML.prototype['idp-metadata-xml-data'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateAuthMethodSAML.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -CreateAuthMethodSAML.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -CreateAuthMethodSAML.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateAuthMethodSAML.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateAuthMethodSAML.prototype['uid-token'] = undefined; -/** - * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier - */ - -CreateAuthMethodSAML.prototype['unique-identifier'] = undefined; -var _default = CreateAuthMethodSAML; -exports["default"] = _default; - -/***/ }), - -/***/ 41307: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodSAMLOutput model module. - * @module model/CreateAuthMethodSAMLOutput - * @version 3.3.16 - */ -var CreateAuthMethodSAMLOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodSAMLOutput. - * @alias module:model/CreateAuthMethodSAMLOutput - */ - function CreateAuthMethodSAMLOutput() { - _classCallCheck(this, CreateAuthMethodSAMLOutput); - - CreateAuthMethodSAMLOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodSAMLOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodSAMLOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodSAMLOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodSAMLOutput} The populated CreateAuthMethodSAMLOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodSAMLOutput(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodSAMLOutput; -}(); -/** - * @member {String} access_id - */ - - -CreateAuthMethodSAMLOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodSAMLOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 73904: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodUniversalIdentity model module. - * @module model/CreateAuthMethodUniversalIdentity - * @version 3.3.16 - */ -var CreateAuthMethodUniversalIdentity = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodUniversalIdentity. - * createAuthMethodUniversalIdentity is a command that creates a new auth method that will be able to authenticate using Akeyless Universal Identity. - * @alias module:model/CreateAuthMethodUniversalIdentity - * @param name {String} Auth Method name - */ - function CreateAuthMethodUniversalIdentity(name) { - _classCallCheck(this, CreateAuthMethodUniversalIdentity); - - CreateAuthMethodUniversalIdentity.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodUniversalIdentity, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateAuthMethodUniversalIdentity from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodUniversalIdentity} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodUniversalIdentity} The populated CreateAuthMethodUniversalIdentity instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodUniversalIdentity(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('deny-inheritance')) { - obj['deny-inheritance'] = _ApiClient["default"].convertToType(data['deny-inheritance'], 'Boolean'); - } - - if (data.hasOwnProperty('deny-rotate')) { - obj['deny-rotate'] = _ApiClient["default"].convertToType(data['deny-rotate'], 'Boolean'); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodUniversalIdentity; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -CreateAuthMethodUniversalIdentity.prototype['access-expires'] = 0; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -CreateAuthMethodUniversalIdentity.prototype['bound-ips'] = undefined; -/** - * Deny from root to create children - * @member {Boolean} deny-inheritance - */ - -CreateAuthMethodUniversalIdentity.prototype['deny-inheritance'] = undefined; -/** - * Deny from the token to rotate - * @member {Boolean} deny-rotate - */ - -CreateAuthMethodUniversalIdentity.prototype['deny-rotate'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -CreateAuthMethodUniversalIdentity.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -CreateAuthMethodUniversalIdentity.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateAuthMethodUniversalIdentity.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -CreateAuthMethodUniversalIdentity.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -CreateAuthMethodUniversalIdentity.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateAuthMethodUniversalIdentity.prototype['token'] = undefined; -/** - * Token ttl - * @member {Number} ttl - * @default 60 - */ - -CreateAuthMethodUniversalIdentity.prototype['ttl'] = 60; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateAuthMethodUniversalIdentity.prototype['uid-token'] = undefined; -var _default = CreateAuthMethodUniversalIdentity; -exports["default"] = _default; - -/***/ }), - -/***/ 33625: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAuthMethodUniversalIdentityOutput model module. - * @module model/CreateAuthMethodUniversalIdentityOutput - * @version 3.3.16 - */ -var CreateAuthMethodUniversalIdentityOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAuthMethodUniversalIdentityOutput. - * @alias module:model/CreateAuthMethodUniversalIdentityOutput - */ - function CreateAuthMethodUniversalIdentityOutput() { - _classCallCheck(this, CreateAuthMethodUniversalIdentityOutput); - - CreateAuthMethodUniversalIdentityOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAuthMethodUniversalIdentityOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAuthMethodUniversalIdentityOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAuthMethodUniversalIdentityOutput} obj Optional instance to populate. - * @return {module:model/CreateAuthMethodUniversalIdentityOutput} The populated CreateAuthMethodUniversalIdentityOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAuthMethodUniversalIdentityOutput(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } - - return obj; - } - }]); - - return CreateAuthMethodUniversalIdentityOutput; -}(); -/** - * @member {String} access_id - */ - - -CreateAuthMethodUniversalIdentityOutput.prototype['access_id'] = undefined; -var _default = CreateAuthMethodUniversalIdentityOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 46492: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAzureTarget model module. - * @module model/CreateAzureTarget - * @version 3.3.16 - */ -var CreateAzureTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateAzureTarget. - * @alias module:model/CreateAzureTarget - * @param name {String} Target name - */ - function CreateAzureTarget(name) { - _classCallCheck(this, CreateAzureTarget); - - CreateAzureTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAzureTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateAzureTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAzureTarget} obj Optional instance to populate. - * @return {module:model/CreateAzureTarget} The populated CreateAzureTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAzureTarget(); - - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); - } - - if (data.hasOwnProperty('client-secret')) { - obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('resource-group-name')) { - obj['resource-group-name'] = _ApiClient["default"].convertToType(data['resource-group-name'], 'String'); - } - - if (data.hasOwnProperty('resource-name')) { - obj['resource-name'] = _ApiClient["default"].convertToType(data['resource-name'], 'String'); - } - - if (data.hasOwnProperty('subscription-id')) { - obj['subscription-id'] = _ApiClient["default"].convertToType(data['subscription-id'], 'String'); - } - - if (data.hasOwnProperty('tenant-id')) { - obj['tenant-id'] = _ApiClient["default"].convertToType(data['tenant-id'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); - } - } - - return obj; - } - }]); - - return CreateAzureTarget; -}(); -/** - * @member {String} client-id - */ - - -CreateAzureTarget.prototype['client-id'] = undefined; -/** - * @member {String} client-secret - */ - -CreateAzureTarget.prototype['client-secret'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -CreateAzureTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateAzureTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateAzureTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateAzureTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateAzureTarget.prototype['name'] = undefined; -/** - * The Resource Group name in your Azure subscription - * @member {String} resource-group-name - */ - -CreateAzureTarget.prototype['resource-group-name'] = undefined; -/** - * The name of the relevant Resource - * @member {String} resource-name - */ - -CreateAzureTarget.prototype['resource-name'] = undefined; -/** - * Azure Subscription Id - * @member {String} subscription-id - */ - -CreateAzureTarget.prototype['subscription-id'] = undefined; -/** - * @member {String} tenant-id - */ - -CreateAzureTarget.prototype['tenant-id'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateAzureTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateAzureTarget.prototype['uid-token'] = undefined; -/** - * @member {Boolean} use-gw-cloud-identity - */ - -CreateAzureTarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = CreateAzureTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 67837: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateAzureTargetOutput model module. - * @module model/CreateAzureTargetOutput - * @version 3.3.16 - */ -var CreateAzureTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateAzureTargetOutput. - * @alias module:model/CreateAzureTargetOutput - */ - function CreateAzureTargetOutput() { - _classCallCheck(this, CreateAzureTargetOutput); - - CreateAzureTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateAzureTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateAzureTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateAzureTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateAzureTargetOutput} The populated CreateAzureTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateAzureTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateAzureTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateAzureTargetOutput.prototype['target_id'] = undefined; -var _default = CreateAzureTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 54713: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateCertificate model module. - * @module model/CreateCertificate - * @version 3.3.16 - */ -var CreateCertificate = /*#__PURE__*/function () { - /** - * Constructs a new CreateCertificate. - * @alias module:model/CreateCertificate - * @param name {String} Certificate name - */ - function CreateCertificate(name) { - _classCallCheck(this, CreateCertificate); - - CreateCertificate.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateCertificate, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateCertificate from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateCertificate} obj Optional instance to populate. - * @return {module:model/CreateCertificate} The populated CreateCertificate instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateCertificate(); - - if (data.hasOwnProperty('certificate-data')) { - obj['certificate-data'] = _ApiClient["default"].convertToType(data['certificate-data'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('expiration-event-in')) { - obj['expiration-event-in'] = _ApiClient["default"].convertToType(data['expiration-event-in'], ['String']); - } - - if (data.hasOwnProperty('format')) { - obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('key-data')) { - obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateCertificate; -}(); -/** - * Content of the certificate in a Base64 format. - * @member {String} certificate-data - */ - - -CreateCertificate.prototype['certificate-data'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -CreateCertificate.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateCertificate.prototype['description'] = undefined; -/** - * How many days before the expiration of the certificate would you like to be notified. - * @member {Array.} expiration-event-in - */ - -CreateCertificate.prototype['expiration-event-in'] = undefined; -/** - * CertificateFormat of the certificate and private key, possible values: cer,crt,pem,pfx,p12. Required when passing inline certificate content with --certificate-data or --key-data, otherwise format is derived from the file extension. - * @member {String} format - */ - -CreateCertificate.prototype['format'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateCertificate.prototype['json'] = false; -/** - * The name of a key to use to encrypt the certificate's key (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateCertificate.prototype['key'] = undefined; -/** - * Content of the certificate's private key in a Base64 format. - * @member {String} key-data - */ - -CreateCertificate.prototype['key-data'] = undefined; -/** - * Deprecated - use description - * @member {String} metadata - */ - -CreateCertificate.prototype['metadata'] = undefined; -/** - * Certificate name - * @member {String} name - */ - -CreateCertificate.prototype['name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -CreateCertificate.prototype['tags'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateCertificate.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateCertificate.prototype['uid-token'] = undefined; -var _default = CreateCertificate; -exports["default"] = _default; - -/***/ }), - -/***/ 9916: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateCertificateOutput model module. - * @module model/CreateCertificateOutput - * @version 3.3.16 - */ -var CreateCertificateOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateCertificateOutput. - * @alias module:model/CreateCertificateOutput - */ - function CreateCertificateOutput() { - _classCallCheck(this, CreateCertificateOutput); - - CreateCertificateOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateCertificateOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateCertificateOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateCertificateOutput} obj Optional instance to populate. - * @return {module:model/CreateCertificateOutput} The populated CreateCertificateOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateCertificateOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return CreateCertificateOutput; -}(); -/** - * @member {String} name - */ - - -CreateCertificateOutput.prototype['name'] = undefined; -var _default = CreateCertificateOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 85575: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateClassicKey model module. - * @module model/CreateClassicKey - * @version 3.3.16 - */ -var CreateClassicKey = /*#__PURE__*/function () { - /** - * Constructs a new CreateClassicKey. - * CreateClassicKey is a command that creates classic key - * @alias module:model/CreateClassicKey - * @param alg {String} Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG] - * @param name {String} ClassicKey name - */ - function CreateClassicKey(alg, name) { - _classCallCheck(this, CreateClassicKey); - - CreateClassicKey.initialize(this, alg, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateClassicKey, null, [{ - key: "initialize", - value: function initialize(obj, alg, name) { - obj['alg'] = alg; - obj['name'] = name; - } - /** - * Constructs a CreateClassicKey from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateClassicKey} obj Optional instance to populate. - * @return {module:model/CreateClassicKey} The populated CreateClassicKey instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateClassicKey(); - - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); - } - - if (data.hasOwnProperty('cert-file-data')) { - obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); - } - - if (data.hasOwnProperty('certificate-common-name')) { - obj['certificate-common-name'] = _ApiClient["default"].convertToType(data['certificate-common-name'], 'String'); - } - - if (data.hasOwnProperty('certificate-country')) { - obj['certificate-country'] = _ApiClient["default"].convertToType(data['certificate-country'], 'String'); - } - - if (data.hasOwnProperty('certificate-digest-algo')) { - obj['certificate-digest-algo'] = _ApiClient["default"].convertToType(data['certificate-digest-algo'], 'String'); - } - - if (data.hasOwnProperty('certificate-locality')) { - obj['certificate-locality'] = _ApiClient["default"].convertToType(data['certificate-locality'], 'String'); - } - - if (data.hasOwnProperty('certificate-organization')) { - obj['certificate-organization'] = _ApiClient["default"].convertToType(data['certificate-organization'], 'String'); - } - - if (data.hasOwnProperty('certificate-province')) { - obj['certificate-province'] = _ApiClient["default"].convertToType(data['certificate-province'], 'String'); - } - - if (data.hasOwnProperty('certificate-ttl')) { - obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('generate-self-signed-certificate')) { - obj['generate-self-signed-certificate'] = _ApiClient["default"].convertToType(data['generate-self-signed-certificate'], 'Boolean'); - } - - if (data.hasOwnProperty('gpg-alg')) { - obj['gpg-alg'] = _ApiClient["default"].convertToType(data['gpg-alg'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-data')) { - obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('protection-key-name')) { - obj['protection-key-name'] = _ApiClient["default"].convertToType(data['protection-key-name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateClassicKey; -}(); -/** - * Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG] - * @member {String} alg - */ - - -CreateClassicKey.prototype['alg'] = undefined; -/** - * Certificate in a PEM format. - * @member {String} cert-file-data - */ - -CreateClassicKey.prototype['cert-file-data'] = undefined; -/** - * Common name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-common-name - */ - -CreateClassicKey.prototype['certificate-common-name'] = undefined; -/** - * Country name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-country - */ - -CreateClassicKey.prototype['certificate-country'] = undefined; -/** - * Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI. - * @member {String} certificate-digest-algo - */ - -CreateClassicKey.prototype['certificate-digest-algo'] = undefined; -/** - * Locality for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-locality - */ - -CreateClassicKey.prototype['certificate-locality'] = undefined; -/** - * Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-organization - */ - -CreateClassicKey.prototype['certificate-organization'] = undefined; -/** - * Province name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-province - */ - -CreateClassicKey.prototype['certificate-province'] = undefined; -/** - * TTL in days for the generated certificate. Required only for generate-self-signed-certificate. - * @member {Number} certificate-ttl - */ - -CreateClassicKey.prototype['certificate-ttl'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -CreateClassicKey.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateClassicKey.prototype['description'] = undefined; -/** - * Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided. - * @member {Boolean} generate-self-signed-certificate - */ - -CreateClassicKey.prototype['generate-self-signed-certificate'] = undefined; -/** - * gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519] - * @member {String} gpg-alg - */ - -CreateClassicKey.prototype['gpg-alg'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateClassicKey.prototype['json'] = false; -/** - * Base64-encoded classic key value - * @member {String} key-data - */ - -CreateClassicKey.prototype['key-data'] = undefined; -/** - * Deprecated - use description - * @member {String} metadata - */ - -CreateClassicKey.prototype['metadata'] = undefined; -/** - * ClassicKey name - * @member {String} name - */ - -CreateClassicKey.prototype['name'] = undefined; -/** - * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection-key-name - */ - -CreateClassicKey.prototype['protection-key-name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -CreateClassicKey.prototype['tags'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateClassicKey.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateClassicKey.prototype['uid-token'] = undefined; -var _default = CreateClassicKey; -exports["default"] = _default; - -/***/ }), - -/***/ 87166: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateClassicKeyOutput model module. - * @module model/CreateClassicKeyOutput - * @version 3.3.16 - */ -var CreateClassicKeyOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateClassicKeyOutput. - * @alias module:model/CreateClassicKeyOutput - */ - function CreateClassicKeyOutput() { - _classCallCheck(this, CreateClassicKeyOutput); - - CreateClassicKeyOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateClassicKeyOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateClassicKeyOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateClassicKeyOutput} obj Optional instance to populate. - * @return {module:model/CreateClassicKeyOutput} The populated CreateClassicKeyOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateClassicKeyOutput(); - - if (data.hasOwnProperty('classic_key_id')) { - obj['classic_key_id'] = _ApiClient["default"].convertToType(data['classic_key_id'], 'String'); - } - - if (data.hasOwnProperty('classic_key_name')) { - obj['classic_key_name'] = _ApiClient["default"].convertToType(data['classic_key_name'], 'String'); - } - - if (data.hasOwnProperty('classic_key_type')) { - obj['classic_key_type'] = _ApiClient["default"].convertToType(data['classic_key_type'], 'String'); - } - - if (data.hasOwnProperty('public_key')) { - obj['public_key'] = _ApiClient["default"].convertToType(data['public_key'], 'String'); - } - } - - return obj; - } - }]); - - return CreateClassicKeyOutput; -}(); -/** - * @member {String} classic_key_id - */ - - -CreateClassicKeyOutput.prototype['classic_key_id'] = undefined; -/** - * @member {String} classic_key_name - */ - -CreateClassicKeyOutput.prototype['classic_key_name'] = undefined; -/** - * @member {String} classic_key_type - */ - -CreateClassicKeyOutput.prototype['classic_key_type'] = undefined; -/** - * @member {String} public_key - */ - -CreateClassicKeyOutput.prototype['public_key'] = undefined; -var _default = CreateClassicKeyOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 84315: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateDBTarget model module. - * @module model/CreateDBTarget - * @version 3.3.16 - */ -var CreateDBTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateDBTarget. - * @alias module:model/CreateDBTarget - * @param dbType {String} - * @param name {String} Target name - */ - function CreateDBTarget(dbType, name) { - _classCallCheck(this, CreateDBTarget); - - CreateDBTarget.initialize(this, dbType, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateDBTarget, null, [{ - key: "initialize", - value: function initialize(obj, dbType, name) { - obj['db-type'] = dbType; - obj['name'] = name; - } - /** - * Constructs a CreateDBTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateDBTarget} obj Optional instance to populate. - * @return {module:model/CreateDBTarget} The populated CreateDBTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateDBTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('db-name')) { - obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); - } - - if (data.hasOwnProperty('db-server-certificates')) { - obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); - } - - if (data.hasOwnProperty('db-server-name')) { - obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); - } - - if (data.hasOwnProperty('db-type')) { - obj['db-type'] = _ApiClient["default"].convertToType(data['db-type'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas')) { - obj['mongodb-atlas'] = _ApiClient["default"].convertToType(data['mongodb-atlas'], 'Boolean'); - } - - if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { - obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { - obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas-project-id')) { - obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); - } - - if (data.hasOwnProperty('mongodb-default-auth-db')) { - obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); - } - - if (data.hasOwnProperty('mongodb-uri-options')) { - obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('oracle-service-name')) { - obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('pwd')) { - obj['pwd'] = _ApiClient["default"].convertToType(data['pwd'], 'String'); - } - - if (data.hasOwnProperty('snowflake-account')) { - obj['snowflake-account'] = _ApiClient["default"].convertToType(data['snowflake-account'], 'String'); - } - - if (data.hasOwnProperty('snowflake-api-private-key')) { - obj['snowflake-api-private-key'] = _ApiClient["default"].convertToType(data['snowflake-api-private-key'], 'String'); - } - - if (data.hasOwnProperty('snowflake-api-private-key-password')) { - obj['snowflake-api-private-key-password'] = _ApiClient["default"].convertToType(data['snowflake-api-private-key-password'], 'String'); - } - - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('ssl-certificate')) { - obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-name')) { - obj['user-name'] = _ApiClient["default"].convertToType(data['user-name'], 'String'); - } - } - - return obj; - } - }]); - - return CreateDBTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -CreateDBTarget.prototype['comment'] = undefined; -/** - * @member {String} db-name - */ - -CreateDBTarget.prototype['db-name'] = undefined; -/** - * (Optional) DB server certificates - * @member {String} db-server-certificates - */ - -CreateDBTarget.prototype['db-server-certificates'] = undefined; -/** - * (Optional) Server name for certificate verification - * @member {String} db-server-name - */ - -CreateDBTarget.prototype['db-server-name'] = undefined; -/** - * @member {String} db-type - */ - -CreateDBTarget.prototype['db-type'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateDBTarget.prototype['description'] = undefined; -/** - * @member {String} host - */ - -CreateDBTarget.prototype['host'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateDBTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateDBTarget.prototype['key'] = undefined; -/** - * @member {Boolean} mongodb-atlas - */ - -CreateDBTarget.prototype['mongodb-atlas'] = undefined; -/** - * MongoDB Atlas private key - * @member {String} mongodb-atlas-api-private-key - */ - -CreateDBTarget.prototype['mongodb-atlas-api-private-key'] = undefined; -/** - * MongoDB Atlas public key - * @member {String} mongodb-atlas-api-public-key - */ - -CreateDBTarget.prototype['mongodb-atlas-api-public-key'] = undefined; -/** - * MongoDB Atlas project ID - * @member {String} mongodb-atlas-project-id - */ - -CreateDBTarget.prototype['mongodb-atlas-project-id'] = undefined; -/** - * MongoDB server default authentication database - * @member {String} mongodb-default-auth-db - */ - -CreateDBTarget.prototype['mongodb-default-auth-db'] = undefined; -/** - * MongoDB server URI options - * @member {String} mongodb-uri-options - */ - -CreateDBTarget.prototype['mongodb-uri-options'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateDBTarget.prototype['name'] = undefined; -/** - * @member {String} oracle-service-name - */ - -CreateDBTarget.prototype['oracle-service-name'] = undefined; -/** - * @member {String} port - */ - -CreateDBTarget.prototype['port'] = undefined; -/** - * @member {String} pwd - */ - -CreateDBTarget.prototype['pwd'] = undefined; -/** - * @member {String} snowflake-account - */ - -CreateDBTarget.prototype['snowflake-account'] = undefined; -/** - * RSA Private key (base64 encoded) - * @member {String} snowflake-api-private-key - */ - -CreateDBTarget.prototype['snowflake-api-private-key'] = undefined; -/** - * The Private key passphrase - * @member {String} snowflake-api-private-key-password - */ - -CreateDBTarget.prototype['snowflake-api-private-key-password'] = undefined; -/** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false - */ - -CreateDBTarget.prototype['ssl'] = false; -/** - * SSL connection certificate - * @member {String} ssl-certificate - */ - -CreateDBTarget.prototype['ssl-certificate'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateDBTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateDBTarget.prototype['uid-token'] = undefined; -/** - * @member {String} user-name - */ - -CreateDBTarget.prototype['user-name'] = undefined; -var _default = CreateDBTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 90170: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateDBTargetOutput model module. - * @module model/CreateDBTargetOutput - * @version 3.3.16 - */ -var CreateDBTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateDBTargetOutput. - * @alias module:model/CreateDBTargetOutput - */ - function CreateDBTargetOutput() { - _classCallCheck(this, CreateDBTargetOutput); - - CreateDBTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateDBTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateDBTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateDBTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateDBTargetOutput} The populated CreateDBTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateDBTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateDBTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateDBTargetOutput.prototype['target_id'] = undefined; -var _default = CreateDBTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 19450: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateDFCKey model module. - * @module model/CreateDFCKey - * @version 3.3.16 - */ -var CreateDFCKey = /*#__PURE__*/function () { - /** - * Constructs a new CreateDFCKey. - * @alias module:model/CreateDFCKey - * @param alg {String} DFCKey type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096] - * @param name {String} DFCKey name - */ - function CreateDFCKey(alg, name) { - _classCallCheck(this, CreateDFCKey); - - CreateDFCKey.initialize(this, alg, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateDFCKey, null, [{ - key: "initialize", - value: function initialize(obj, alg, name) { - obj['alg'] = alg; - obj['name'] = name; - } - /** - * Constructs a CreateDFCKey from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateDFCKey} obj Optional instance to populate. - * @return {module:model/CreateDFCKey} The populated CreateDFCKey instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateDFCKey(); - - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); - } - - if (data.hasOwnProperty('certificate-common-name')) { - obj['certificate-common-name'] = _ApiClient["default"].convertToType(data['certificate-common-name'], 'String'); - } - - if (data.hasOwnProperty('certificate-country')) { - obj['certificate-country'] = _ApiClient["default"].convertToType(data['certificate-country'], 'String'); - } - - if (data.hasOwnProperty('certificate-digest-algo')) { - obj['certificate-digest-algo'] = _ApiClient["default"].convertToType(data['certificate-digest-algo'], 'String'); - } - - if (data.hasOwnProperty('certificate-locality')) { - obj['certificate-locality'] = _ApiClient["default"].convertToType(data['certificate-locality'], 'String'); - } - - if (data.hasOwnProperty('certificate-organization')) { - obj['certificate-organization'] = _ApiClient["default"].convertToType(data['certificate-organization'], 'String'); - } - - if (data.hasOwnProperty('certificate-province')) { - obj['certificate-province'] = _ApiClient["default"].convertToType(data['certificate-province'], 'String'); - } - - if (data.hasOwnProperty('certificate-ttl')) { - obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); - } - - if (data.hasOwnProperty('customer-frg-id')) { - obj['customer-frg-id'] = _ApiClient["default"].convertToType(data['customer-frg-id'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('generate-self-signed-certificate')) { - obj['generate-self-signed-certificate'] = _ApiClient["default"].convertToType(data['generate-self-signed-certificate'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('split-level')) { - obj['split-level'] = _ApiClient["default"].convertToType(data['split-level'], 'Number'); - } - - if (data.hasOwnProperty('tag')) { - obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateDFCKey; -}(); -/** - * DFCKey type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096] - * @member {String} alg - */ - - -CreateDFCKey.prototype['alg'] = undefined; -/** - * Common name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-common-name - */ - -CreateDFCKey.prototype['certificate-common-name'] = undefined; -/** - * Country name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-country - */ - -CreateDFCKey.prototype['certificate-country'] = undefined; -/** - * Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI. - * @member {String} certificate-digest-algo - */ - -CreateDFCKey.prototype['certificate-digest-algo'] = undefined; -/** - * Locality for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-locality - */ - -CreateDFCKey.prototype['certificate-locality'] = undefined; -/** - * Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-organization - */ - -CreateDFCKey.prototype['certificate-organization'] = undefined; -/** - * Province name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-province - */ - -CreateDFCKey.prototype['certificate-province'] = undefined; -/** - * TTL in days for the generated certificate. Required only for generate-self-signed-certificate. - * @member {Number} certificate-ttl - */ - -CreateDFCKey.prototype['certificate-ttl'] = undefined; -/** - * The customer fragment ID that will be used to create the DFC key (if empty, the key will be created independently of a customer fragment) - * @member {String} customer-frg-id - */ - -CreateDFCKey.prototype['customer-frg-id'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -CreateDFCKey.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateDFCKey.prototype['description'] = undefined; -/** - * Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided. - * @member {Boolean} generate-self-signed-certificate - */ - -CreateDFCKey.prototype['generate-self-signed-certificate'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateDFCKey.prototype['json'] = false; -/** - * Deprecated - use description - * @member {String} metadata - */ - -CreateDFCKey.prototype['metadata'] = undefined; -/** - * DFCKey name - * @member {String} name - */ - -CreateDFCKey.prototype['name'] = undefined; -/** - * The number of fragments that the item will be split into (not includes customer fragment) - * @member {Number} split-level - * @default 3 - */ - -CreateDFCKey.prototype['split-level'] = 3; -/** - * List of the tags attached to this DFC key - * @member {Array.} tag - */ - -CreateDFCKey.prototype['tag'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateDFCKey.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateDFCKey.prototype['uid-token'] = undefined; -var _default = CreateDFCKey; -exports["default"] = _default; - -/***/ }), - -/***/ 71247: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateDFCKeyOutput model module. - * @module model/CreateDFCKeyOutput - * @version 3.3.16 - */ -var CreateDFCKeyOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateDFCKeyOutput. - * @alias module:model/CreateDFCKeyOutput - */ - function CreateDFCKeyOutput() { - _classCallCheck(this, CreateDFCKeyOutput); - - CreateDFCKeyOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateDFCKeyOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateDFCKeyOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateDFCKeyOutput} obj Optional instance to populate. - * @return {module:model/CreateDFCKeyOutput} The populated CreateDFCKeyOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateDFCKeyOutput(); - - if (data.hasOwnProperty('fragment_results')) { - obj['fragment_results'] = _ApiClient["default"].convertToType(data['fragment_results'], ['Number']); - } - } - - return obj; - } - }]); - - return CreateDFCKeyOutput; -}(); -/** - * @member {Array.} fragment_results - */ - - -CreateDFCKeyOutput.prototype['fragment_results'] = undefined; -var _default = CreateDFCKeyOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 17396: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateDockerhubTarget model module. - * @module model/CreateDockerhubTarget - * @version 3.3.16 - */ -var CreateDockerhubTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateDockerhubTarget. - * @alias module:model/CreateDockerhubTarget - * @param name {String} Target name - */ - function CreateDockerhubTarget(name) { - _classCallCheck(this, CreateDockerhubTarget); - - CreateDockerhubTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateDockerhubTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateDockerhubTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateDockerhubTarget} obj Optional instance to populate. - * @return {module:model/CreateDockerhubTarget} The populated CreateDockerhubTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateDockerhubTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('dockerhub-password')) { - obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); - } - - if (data.hasOwnProperty('dockerhub-username')) { - obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateDockerhubTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -CreateDockerhubTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateDockerhubTarget.prototype['description'] = undefined; -/** - * DockerhubPassword is either the user's password to manage the repository - * @member {String} dockerhub-password - */ - -CreateDockerhubTarget.prototype['dockerhub-password'] = undefined; -/** - * DockerhubUsername is the name of the user in dockerhub - * @member {String} dockerhub-username - */ - -CreateDockerhubTarget.prototype['dockerhub-username'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateDockerhubTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateDockerhubTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateDockerhubTarget.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateDockerhubTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateDockerhubTarget.prototype['uid-token'] = undefined; -var _default = CreateDockerhubTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 19845: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateDockerhubTargetOutput model module. - * @module model/CreateDockerhubTargetOutput - * @version 3.3.16 - */ -var CreateDockerhubTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateDockerhubTargetOutput. - * @alias module:model/CreateDockerhubTargetOutput - */ - function CreateDockerhubTargetOutput() { - _classCallCheck(this, CreateDockerhubTargetOutput); - - CreateDockerhubTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateDockerhubTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateDockerhubTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateDockerhubTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateDockerhubTargetOutput} The populated CreateDockerhubTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateDockerhubTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateDockerhubTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateDockerhubTargetOutput.prototype['target_id'] = undefined; -var _default = CreateDockerhubTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 78607: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateDynamicSecret model module. - * @module model/CreateDynamicSecret - * @version 3.3.16 - */ -var CreateDynamicSecret = /*#__PURE__*/function () { - /** - * Constructs a new CreateDynamicSecret. - * @alias module:model/CreateDynamicSecret - * @param name {String} Dynamic secret name - */ - function CreateDynamicSecret(name) { - _classCallCheck(this, CreateDynamicSecret); - - CreateDynamicSecret.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateDynamicSecret, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateDynamicSecret from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateDynamicSecret} obj Optional instance to populate. - * @return {module:model/CreateDynamicSecret} The populated CreateDynamicSecret instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateDynamicSecret(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateDynamicSecret; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -CreateDynamicSecret.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateDynamicSecret.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateDynamicSecret.prototype['json'] = false; -/** - * The name of a key that used to encrypt the dynamic secret values (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateDynamicSecret.prototype['key'] = undefined; -/** - * Deprecated - use description - * @member {String} metadata - */ - -CreateDynamicSecret.prototype['metadata'] = undefined; -/** - * Dynamic secret name - * @member {String} name - */ - -CreateDynamicSecret.prototype['name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -CreateDynamicSecret.prototype['tags'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateDynamicSecret.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateDynamicSecret.prototype['uid-token'] = undefined; -var _default = CreateDynamicSecret; -exports["default"] = _default; - -/***/ }), - -/***/ 25086: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateEKSTarget model module. - * @module model/CreateEKSTarget - * @version 3.3.16 - */ -var CreateEKSTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateEKSTarget. - * @alias module:model/CreateEKSTarget - * @param eksAccessKeyId {String} Access Key ID - * @param eksClusterCaCert {String} EKS cluster CA certificate - * @param eksClusterEndpoint {String} EKS cluster URL endpoint - * @param eksClusterName {String} EKS cluster name - * @param eksSecretAccessKey {String} Secret Access Key - * @param name {String} Target name - */ - function CreateEKSTarget(eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name) { - _classCallCheck(this, CreateEKSTarget); - - CreateEKSTarget.initialize(this, eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateEKSTarget, null, [{ - key: "initialize", - value: function initialize(obj, eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name) { - obj['eks-access-key-id'] = eksAccessKeyId; - obj['eks-cluster-ca-cert'] = eksClusterCaCert; - obj['eks-cluster-endpoint'] = eksClusterEndpoint; - obj['eks-cluster-name'] = eksClusterName; - obj['eks-secret-access-key'] = eksSecretAccessKey; - obj['name'] = name; - } - /** - * Constructs a CreateEKSTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateEKSTarget} obj Optional instance to populate. - * @return {module:model/CreateEKSTarget} The populated CreateEKSTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateEKSTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('eks-access-key-id')) { - obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-ca-cert')) { - obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-endpoint')) { - obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-name')) { - obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); - } - - if (data.hasOwnProperty('eks-region')) { - obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); - } - - if (data.hasOwnProperty('eks-secret-access-key')) { - obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); - } - } - - return obj; - } - }]); - - return CreateEKSTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -CreateEKSTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateEKSTarget.prototype['description'] = undefined; -/** - * Access Key ID - * @member {String} eks-access-key-id - */ - -CreateEKSTarget.prototype['eks-access-key-id'] = undefined; -/** - * EKS cluster CA certificate - * @member {String} eks-cluster-ca-cert - */ - -CreateEKSTarget.prototype['eks-cluster-ca-cert'] = undefined; -/** - * EKS cluster URL endpoint - * @member {String} eks-cluster-endpoint - */ - -CreateEKSTarget.prototype['eks-cluster-endpoint'] = undefined; -/** - * EKS cluster name - * @member {String} eks-cluster-name - */ - -CreateEKSTarget.prototype['eks-cluster-name'] = undefined; -/** - * Region - * @member {String} eks-region - * @default 'us-east-2' - */ - -CreateEKSTarget.prototype['eks-region'] = 'us-east-2'; -/** - * Secret Access Key - * @member {String} eks-secret-access-key - */ - -CreateEKSTarget.prototype['eks-secret-access-key'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateEKSTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateEKSTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateEKSTarget.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateEKSTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateEKSTarget.prototype['uid-token'] = undefined; -/** - * @member {Boolean} use-gw-cloud-identity - */ - -CreateEKSTarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = CreateEKSTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 67307: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateEKSTargetOutput model module. - * @module model/CreateEKSTargetOutput - * @version 3.3.16 - */ -var CreateEKSTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateEKSTargetOutput. - * @alias module:model/CreateEKSTargetOutput - */ - function CreateEKSTargetOutput() { - _classCallCheck(this, CreateEKSTargetOutput); - - CreateEKSTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateEKSTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateEKSTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateEKSTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateEKSTargetOutput} The populated CreateEKSTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateEKSTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateEKSTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateEKSTargetOutput.prototype['target_id'] = undefined; -var _default = CreateEKSTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 87617: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateESM model module. - * @module model/CreateESM - * @version 3.3.16 - */ -var CreateESM = /*#__PURE__*/function () { - /** - * Constructs a new CreateESM. - * CreateESM is a command that creates an External Secrets Manager - * @alias module:model/CreateESM - * @param name {String} External Secrets Manager name - * @param targetToAssociate {String} Target External Secrets Manager to connect - */ - function CreateESM(name, targetToAssociate) { - _classCallCheck(this, CreateESM); - - CreateESM.initialize(this, name, targetToAssociate); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateESM, null, [{ - key: "initialize", - value: function initialize(obj, name, targetToAssociate) { - obj['name'] = name; - obj['target-to-associate'] = targetToAssociate; - } - /** - * Constructs a CreateESM from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateESM} obj Optional instance to populate. - * @return {module:model/CreateESM} The populated CreateESM instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateESM(); - - if (data.hasOwnProperty('azure-kv-name')) { - obj['azure-kv-name'] = _ApiClient["default"].convertToType(data['azure-kv-name'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s-namespace')) { - obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-to-associate')) { - obj['target-to-associate'] = _ApiClient["default"].convertToType(data['target-to-associate'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateESM; -}(); -/** - * Azure Key Vault name (Relevant only for Azure targets) - * @member {String} azure-kv-name - */ - - -CreateESM.prototype['azure-kv-name'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -CreateESM.prototype['delete_protection'] = undefined; -/** - * Description of the External Secrets Manager - * @member {String} description - */ - -CreateESM.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateESM.prototype['json'] = false; -/** - * K8s namespace (Relevant to Kubernetes targets) - * @member {String} k8s-namespace - */ - -CreateESM.prototype['k8s-namespace'] = undefined; -/** - * External Secrets Manager name - * @member {String} name - */ - -CreateESM.prototype['name'] = undefined; -/** - * List of the tags attached to this External Secrets Manager - * @member {Array.} tags - */ - -CreateESM.prototype['tags'] = undefined; -/** - * Target External Secrets Manager to connect - * @member {String} target-to-associate - */ - -CreateESM.prototype['target-to-associate'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateESM.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateESM.prototype['uid-token'] = undefined; -var _default = CreateESM; -exports["default"] = _default; - -/***/ }), - -/***/ 64564: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateESMOutput model module. - * @module model/CreateESMOutput - * @version 3.3.16 - */ -var CreateESMOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateESMOutput. - * @alias module:model/CreateESMOutput - */ - function CreateESMOutput() { - _classCallCheck(this, CreateESMOutput); - - CreateESMOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateESMOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateESMOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateESMOutput} obj Optional instance to populate. - * @return {module:model/CreateESMOutput} The populated CreateESMOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateESMOutput(); - - if (data.hasOwnProperty('external_secret_manager_id')) { - obj['external_secret_manager_id'] = _ApiClient["default"].convertToType(data['external_secret_manager_id'], 'Number'); - } - - if (data.hasOwnProperty('external_secret_manager_name')) { - obj['external_secret_manager_name'] = _ApiClient["default"].convertToType(data['external_secret_manager_name'], 'String'); - } - } - - return obj; - } - }]); - - return CreateESMOutput; -}(); -/** - * @member {Number} external_secret_manager_id - */ - - -CreateESMOutput.prototype['external_secret_manager_id'] = undefined; -/** - * @member {String} external_secret_manager_name - */ - -CreateESMOutput.prototype['external_secret_manager_name'] = undefined; -var _default = CreateESMOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 55910: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateEventForwarder model module. - * @module model/CreateEventForwarder - * @version 3.3.16 - */ -var CreateEventForwarder = /*#__PURE__*/function () { - /** - * Constructs a new CreateEventForwarder. - * @alias module:model/CreateEventForwarder - * @param eventSourceLocations {Array.} Event sources - * @param forwarderType {String} - * @param name {String} EventForwarder name - * @param runnerType {String} - */ - function CreateEventForwarder(eventSourceLocations, forwarderType, name, runnerType) { - _classCallCheck(this, CreateEventForwarder); - - CreateEventForwarder.initialize(this, eventSourceLocations, forwarderType, name, runnerType); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateEventForwarder, null, [{ - key: "initialize", - value: function initialize(obj, eventSourceLocations, forwarderType, name, runnerType) { - obj['event-source-locations'] = eventSourceLocations; - obj['forwarder-type'] = forwarderType; - obj['name'] = name; - obj['runner-type'] = runnerType; - } - /** - * Constructs a CreateEventForwarder from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateEventForwarder} obj Optional instance to populate. - * @return {module:model/CreateEventForwarder} The populated CreateEventForwarder instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateEventForwarder(); - - if (data.hasOwnProperty('admin-name')) { - obj['admin-name'] = _ApiClient["default"].convertToType(data['admin-name'], 'String'); - } - - if (data.hasOwnProperty('admin-pwd')) { - obj['admin-pwd'] = _ApiClient["default"].convertToType(data['admin-pwd'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('email-to')) { - obj['email-to'] = _ApiClient["default"].convertToType(data['email-to'], 'String'); - } - - if (data.hasOwnProperty('event-source-locations')) { - obj['event-source-locations'] = _ApiClient["default"].convertToType(data['event-source-locations'], ['String']); - } - - if (data.hasOwnProperty('event-source-type')) { - obj['event-source-type'] = _ApiClient["default"].convertToType(data['event-source-type'], 'String'); - } - - if (data.hasOwnProperty('event-types')) { - obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); - } - - if (data.hasOwnProperty('every')) { - obj['every'] = _ApiClient["default"].convertToType(data['every'], 'String'); - } - - if (data.hasOwnProperty('forwarder-type')) { - obj['forwarder-type'] = _ApiClient["default"].convertToType(data['forwarder-type'], 'String'); - } - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('runner-type')) { - obj['runner-type'] = _ApiClient["default"].convertToType(data['runner-type'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateEventForwarder; -}(); -/** - * Workstation Admin Name - * @member {String} admin-name - */ - - -CreateEventForwarder.prototype['admin-name'] = undefined; -/** - * Workstation Admin password - * @member {String} admin-pwd - */ - -CreateEventForwarder.prototype['admin-pwd'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -CreateEventForwarder.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateEventForwarder.prototype['description'] = undefined; -/** - * A comma seperated list of email addresses to send event to (relevant only for \"email\" Event Forwarder) - * @member {String} email-to - */ - -CreateEventForwarder.prototype['email-to'] = undefined; -/** - * Event sources - * @member {Array.} event-source-locations - */ - -CreateEventForwarder.prototype['event-source-locations'] = undefined; -/** - * Event Source type [item, target, auth_method] - * @member {String} event-source-type - * @default 'item' - */ - -CreateEventForwarder.prototype['event-source-type'] = 'item'; -/** - * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure] - * @member {Array.} event-types - */ - -CreateEventForwarder.prototype['event-types'] = undefined; -/** - * Rate of periodic runner repetition in hours - * @member {String} every - */ - -CreateEventForwarder.prototype['every'] = undefined; -/** - * @member {String} forwarder-type - */ - -CreateEventForwarder.prototype['forwarder-type'] = undefined; -/** - * Workstation Host - * @member {String} host - */ - -CreateEventForwarder.prototype['host'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateEventForwarder.prototype['json'] = false; -/** - * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateEventForwarder.prototype['key'] = undefined; -/** - * EventForwarder name - * @member {String} name - */ - -CreateEventForwarder.prototype['name'] = undefined; -/** - * @member {String} runner-type - */ - -CreateEventForwarder.prototype['runner-type'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateEventForwarder.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateEventForwarder.prototype['uid-token'] = undefined; -var _default = CreateEventForwarder; -exports["default"] = _default; - -/***/ }), - -/***/ 91555: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateEventForwarderOutput model module. - * @module model/CreateEventForwarderOutput - * @version 3.3.16 - */ -var CreateEventForwarderOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateEventForwarderOutput. - * @alias module:model/CreateEventForwarderOutput - */ - function CreateEventForwarderOutput() { - _classCallCheck(this, CreateEventForwarderOutput); - - CreateEventForwarderOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateEventForwarderOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateEventForwarderOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateEventForwarderOutput} obj Optional instance to populate. - * @return {module:model/CreateEventForwarderOutput} The populated CreateEventForwarderOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateEventForwarderOutput(); - - if (data.hasOwnProperty('event_forwarder_id')) { - obj['event_forwarder_id'] = _ApiClient["default"].convertToType(data['event_forwarder_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateEventForwarderOutput; -}(); -/** - * @member {Number} event_forwarder_id - */ - - -CreateEventForwarderOutput.prototype['event_forwarder_id'] = undefined; -var _default = CreateEventForwarderOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 3302: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateGKETarget model module. - * @module model/CreateGKETarget - * @version 3.3.16 - */ -var CreateGKETarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateGKETarget. - * @alias module:model/CreateGKETarget - * @param name {String} Target name - */ - function CreateGKETarget(name) { - _classCallCheck(this, CreateGKETarget); - - CreateGKETarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateGKETarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateGKETarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGKETarget} obj Optional instance to populate. - * @return {module:model/CreateGKETarget} The populated CreateGKETarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateGKETarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('gke-account-key')) { - obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-cert')) { - obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-endpoint')) { - obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-name')) { - obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); - } - - if (data.hasOwnProperty('gke-service-account-email')) { - obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); - } - } - - return obj; - } - }]); - - return CreateGKETarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -CreateGKETarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateGKETarget.prototype['description'] = undefined; -/** - * GKE Service Account key file path - * @member {String} gke-account-key - */ - -CreateGKETarget.prototype['gke-account-key'] = undefined; -/** - * GKE cluster CA certificate - * @member {String} gke-cluster-cert - */ - -CreateGKETarget.prototype['gke-cluster-cert'] = undefined; -/** - * GKE cluster URL endpoint - * @member {String} gke-cluster-endpoint - */ - -CreateGKETarget.prototype['gke-cluster-endpoint'] = undefined; -/** - * GKE cluster name - * @member {String} gke-cluster-name - */ - -CreateGKETarget.prototype['gke-cluster-name'] = undefined; -/** - * GKE service account email - * @member {String} gke-service-account-email - */ - -CreateGKETarget.prototype['gke-service-account-email'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateGKETarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateGKETarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateGKETarget.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateGKETarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateGKETarget.prototype['uid-token'] = undefined; -/** - * @member {Boolean} use-gw-cloud-identity - */ - -CreateGKETarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = CreateGKETarget; -exports["default"] = _default; - -/***/ }), - -/***/ 15235: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateGKETargetOutput model module. - * @module model/CreateGKETargetOutput - * @version 3.3.16 - */ -var CreateGKETargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateGKETargetOutput. - * @alias module:model/CreateGKETargetOutput - */ - function CreateGKETargetOutput() { - _classCallCheck(this, CreateGKETargetOutput); - - CreateGKETargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateGKETargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateGKETargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGKETargetOutput} obj Optional instance to populate. - * @return {module:model/CreateGKETargetOutput} The populated CreateGKETargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateGKETargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateGKETargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateGKETargetOutput.prototype['target_id'] = undefined; -var _default = CreateGKETargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 38705: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateGcpTarget model module. - * @module model/CreateGcpTarget - * @version 3.3.16 - */ -var CreateGcpTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateGcpTarget. - * @alias module:model/CreateGcpTarget - * @param name {String} Target name - */ - function CreateGcpTarget(name) { - _classCallCheck(this, CreateGcpTarget); - - CreateGcpTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateGcpTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateGcpTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGcpTarget} obj Optional instance to populate. - * @return {module:model/CreateGcpTarget} The populated CreateGcpTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateGcpTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); - } - } - - return obj; - } - }]); - - return CreateGcpTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -CreateGcpTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateGcpTarget.prototype['description'] = undefined; -/** - * Base64-encoded service account private key text - * @member {String} gcp-key - */ - -CreateGcpTarget.prototype['gcp-key'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateGcpTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateGcpTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateGcpTarget.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateGcpTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateGcpTarget.prototype['uid-token'] = undefined; -/** - * @member {Boolean} use-gw-cloud-identity - */ - -CreateGcpTarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = CreateGcpTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 39108: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateGcpTargetOutput model module. - * @module model/CreateGcpTargetOutput - * @version 3.3.16 - */ -var CreateGcpTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateGcpTargetOutput. - * @alias module:model/CreateGcpTargetOutput - */ - function CreateGcpTargetOutput() { - _classCallCheck(this, CreateGcpTargetOutput); - - CreateGcpTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateGcpTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateGcpTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGcpTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateGcpTargetOutput} The populated CreateGcpTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateGcpTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateGcpTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateGcpTargetOutput.prototype['target_id'] = undefined; -var _default = CreateGcpTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 28702: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateGithubTarget model module. - * @module model/CreateGithubTarget - * @version 3.3.16 - */ -var CreateGithubTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateGithubTarget. - * @alias module:model/CreateGithubTarget - * @param name {String} Target name - */ - function CreateGithubTarget(name) { - _classCallCheck(this, CreateGithubTarget); - - CreateGithubTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateGithubTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateGithubTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGithubTarget} obj Optional instance to populate. - * @return {module:model/CreateGithubTarget} The populated CreateGithubTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateGithubTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('github-app-id')) { - obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); - } - - if (data.hasOwnProperty('github-app-private-key')) { - obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); - } - - if (data.hasOwnProperty('github-base-url')) { - obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateGithubTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -CreateGithubTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateGithubTarget.prototype['description'] = undefined; -/** - * Github app id - * @member {Number} github-app-id - */ - -CreateGithubTarget.prototype['github-app-id'] = undefined; -/** - * App private key - * @member {String} github-app-private-key - */ - -CreateGithubTarget.prototype['github-app-private-key'] = undefined; -/** - * Base URL - * @member {String} github-base-url - * @default 'https://api.github.com/' - */ - -CreateGithubTarget.prototype['github-base-url'] = 'https://api.github.com/'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateGithubTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateGithubTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateGithubTarget.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateGithubTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateGithubTarget.prototype['uid-token'] = undefined; -var _default = CreateGithubTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 6731: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateGithubTargetOutput model module. - * @module model/CreateGithubTargetOutput - * @version 3.3.16 - */ -var CreateGithubTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateGithubTargetOutput. - * @alias module:model/CreateGithubTargetOutput - */ - function CreateGithubTargetOutput() { - _classCallCheck(this, CreateGithubTargetOutput); - - CreateGithubTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateGithubTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateGithubTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGithubTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateGithubTargetOutput} The populated CreateGithubTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateGithubTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateGithubTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateGithubTargetOutput.prototype['target_id'] = undefined; -var _default = CreateGithubTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 45966: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateGlobalSignAtlasTarget model module. - * @module model/CreateGlobalSignAtlasTarget - * @version 3.3.16 - */ -var CreateGlobalSignAtlasTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateGlobalSignAtlasTarget. - * @alias module:model/CreateGlobalSignAtlasTarget - * @param apiKey {String} API Key of the GlobalSign Atlas account - * @param apiSecret {String} API Secret of the GlobalSign Atlas account - * @param name {String} Target name - */ - function CreateGlobalSignAtlasTarget(apiKey, apiSecret, name) { - _classCallCheck(this, CreateGlobalSignAtlasTarget); - - CreateGlobalSignAtlasTarget.initialize(this, apiKey, apiSecret, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateGlobalSignAtlasTarget, null, [{ - key: "initialize", - value: function initialize(obj, apiKey, apiSecret, name) { - obj['api-key'] = apiKey; - obj['api-secret'] = apiSecret; - obj['name'] = name; - } - /** - * Constructs a CreateGlobalSignAtlasTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGlobalSignAtlasTarget} obj Optional instance to populate. - * @return {module:model/CreateGlobalSignAtlasTarget} The populated CreateGlobalSignAtlasTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateGlobalSignAtlasTarget(); - - if (data.hasOwnProperty('api-key')) { - obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); - } - - if (data.hasOwnProperty('api-secret')) { - obj['api-secret'] = _ApiClient["default"].convertToType(data['api-secret'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('mtls-cert-data-base64')) { - obj['mtls-cert-data-base64'] = _ApiClient["default"].convertToType(data['mtls-cert-data-base64'], 'String'); - } - - if (data.hasOwnProperty('mtls-key-data-base64')) { - obj['mtls-key-data-base64'] = _ApiClient["default"].convertToType(data['mtls-key-data-base64'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateGlobalSignAtlasTarget; -}(); -/** - * API Key of the GlobalSign Atlas account - * @member {String} api-key - */ - - -CreateGlobalSignAtlasTarget.prototype['api-key'] = undefined; -/** - * API Secret of the GlobalSign Atlas account - * @member {String} api-secret - */ - -CreateGlobalSignAtlasTarget.prototype['api-secret'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -CreateGlobalSignAtlasTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateGlobalSignAtlasTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateGlobalSignAtlasTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateGlobalSignAtlasTarget.prototype['key'] = undefined; -/** - * Mutual TLS Certificate contents of the GlobalSign Atlas account encoded in base64, either mtls-cert-file-path or mtls-cert-data-base64 must be supplied - * @member {String} mtls-cert-data-base64 - */ - -CreateGlobalSignAtlasTarget.prototype['mtls-cert-data-base64'] = undefined; -/** - * Mutual TLS Key contents of the GlobalSign Atlas account encoded in base64, either mtls-key-file-path or mtls-data-base64 must be supplied - * @member {String} mtls-key-data-base64 - */ - -CreateGlobalSignAtlasTarget.prototype['mtls-key-data-base64'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateGlobalSignAtlasTarget.prototype['name'] = undefined; -/** - * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. - * @member {String} timeout - * @default '5m' - */ - -CreateGlobalSignAtlasTarget.prototype['timeout'] = '5m'; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateGlobalSignAtlasTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateGlobalSignAtlasTarget.prototype['uid-token'] = undefined; -var _default = CreateGlobalSignAtlasTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 315: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateGlobalSignAtlasTargetOutput model module. - * @module model/CreateGlobalSignAtlasTargetOutput - * @version 3.3.16 - */ -var CreateGlobalSignAtlasTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateGlobalSignAtlasTargetOutput. - * @alias module:model/CreateGlobalSignAtlasTargetOutput - */ - function CreateGlobalSignAtlasTargetOutput() { - _classCallCheck(this, CreateGlobalSignAtlasTargetOutput); - - CreateGlobalSignAtlasTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateGlobalSignAtlasTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateGlobalSignAtlasTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGlobalSignAtlasTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateGlobalSignAtlasTargetOutput} The populated CreateGlobalSignAtlasTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateGlobalSignAtlasTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateGlobalSignAtlasTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateGlobalSignAtlasTargetOutput.prototype['target_id'] = undefined; -var _default = CreateGlobalSignAtlasTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 63799: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateGlobalSignTarget model module. - * @module model/CreateGlobalSignTarget - * @version 3.3.16 - */ -var CreateGlobalSignTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateGlobalSignTarget. - * @alias module:model/CreateGlobalSignTarget - * @param contactEmail {String} Email of the GlobalSign GCC account contact - * @param contactFirstName {String} First name of the GlobalSign GCC account contact - * @param contactLastName {String} Last name of the GlobalSign GCC account contact - * @param contactPhone {String} Telephone of the GlobalSign GCC account contact - * @param name {String} Target name - * @param password {String} Password of the GlobalSign GCC account - * @param profileId {String} Profile ID of the GlobalSign GCC account - * @param username {String} Username of the GlobalSign GCC account - */ - function CreateGlobalSignTarget(contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username) { - _classCallCheck(this, CreateGlobalSignTarget); - - CreateGlobalSignTarget.initialize(this, contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateGlobalSignTarget, null, [{ - key: "initialize", - value: function initialize(obj, contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username) { - obj['contact-email'] = contactEmail; - obj['contact-first-name'] = contactFirstName; - obj['contact-last-name'] = contactLastName; - obj['contact-phone'] = contactPhone; - obj['name'] = name; - obj['password'] = password; - obj['profile-id'] = profileId; - obj['username'] = username; - } - /** - * Constructs a CreateGlobalSignTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGlobalSignTarget} obj Optional instance to populate. - * @return {module:model/CreateGlobalSignTarget} The populated CreateGlobalSignTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateGlobalSignTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('contact-email')) { - obj['contact-email'] = _ApiClient["default"].convertToType(data['contact-email'], 'String'); - } - - if (data.hasOwnProperty('contact-first-name')) { - obj['contact-first-name'] = _ApiClient["default"].convertToType(data['contact-first-name'], 'String'); - } - - if (data.hasOwnProperty('contact-last-name')) { - obj['contact-last-name'] = _ApiClient["default"].convertToType(data['contact-last-name'], 'String'); - } - - if (data.hasOwnProperty('contact-phone')) { - obj['contact-phone'] = _ApiClient["default"].convertToType(data['contact-phone'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('profile-id')) { - obj['profile-id'] = _ApiClient["default"].convertToType(data['profile-id'], 'String'); - } - - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } - } - - return obj; - } - }]); - - return CreateGlobalSignTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -CreateGlobalSignTarget.prototype['comment'] = undefined; -/** - * Email of the GlobalSign GCC account contact - * @member {String} contact-email - */ - -CreateGlobalSignTarget.prototype['contact-email'] = undefined; -/** - * First name of the GlobalSign GCC account contact - * @member {String} contact-first-name - */ - -CreateGlobalSignTarget.prototype['contact-first-name'] = undefined; -/** - * Last name of the GlobalSign GCC account contact - * @member {String} contact-last-name - */ - -CreateGlobalSignTarget.prototype['contact-last-name'] = undefined; -/** - * Telephone of the GlobalSign GCC account contact - * @member {String} contact-phone - */ - -CreateGlobalSignTarget.prototype['contact-phone'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateGlobalSignTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateGlobalSignTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateGlobalSignTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateGlobalSignTarget.prototype['name'] = undefined; -/** - * Password of the GlobalSign GCC account - * @member {String} password - */ - -CreateGlobalSignTarget.prototype['password'] = undefined; -/** - * Profile ID of the GlobalSign GCC account - * @member {String} profile-id - */ - -CreateGlobalSignTarget.prototype['profile-id'] = undefined; -/** - * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. - * @member {String} timeout - * @default '5m' - */ - -CreateGlobalSignTarget.prototype['timeout'] = '5m'; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateGlobalSignTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateGlobalSignTarget.prototype['uid-token'] = undefined; -/** - * Username of the GlobalSign GCC account - * @member {String} username - */ - -CreateGlobalSignTarget.prototype['username'] = undefined; -var _default = CreateGlobalSignTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 41550: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateGlobalSignTargetOutput model module. - * @module model/CreateGlobalSignTargetOutput - * @version 3.3.16 - */ -var CreateGlobalSignTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateGlobalSignTargetOutput. - * @alias module:model/CreateGlobalSignTargetOutput - */ - function CreateGlobalSignTargetOutput() { - _classCallCheck(this, CreateGlobalSignTargetOutput); - - CreateGlobalSignTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateGlobalSignTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateGlobalSignTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateGlobalSignTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateGlobalSignTargetOutput} The populated CreateGlobalSignTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateGlobalSignTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateGlobalSignTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateGlobalSignTargetOutput.prototype['target_id'] = undefined; -var _default = CreateGlobalSignTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 59569: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateKey model module. - * @module model/CreateKey - * @version 3.3.16 - */ -var CreateKey = /*#__PURE__*/function () { - /** - * Constructs a new CreateKey. - * createKey is a command that creates a new key. [Deprecated: Use command create-dfc-key] - * @alias module:model/CreateKey - * @param alg {String} Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096] - * @param name {String} Key name - */ - function CreateKey(alg, name) { - _classCallCheck(this, CreateKey); - - CreateKey.initialize(this, alg, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateKey, null, [{ - key: "initialize", - value: function initialize(obj, alg, name) { - obj['alg'] = alg; - obj['name'] = name; - } - /** - * Constructs a CreateKey from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateKey} obj Optional instance to populate. - * @return {module:model/CreateKey} The populated CreateKey instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateKey(); - - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); - } - - if (data.hasOwnProperty('certificate-common-name')) { - obj['certificate-common-name'] = _ApiClient["default"].convertToType(data['certificate-common-name'], 'String'); - } - - if (data.hasOwnProperty('certificate-country')) { - obj['certificate-country'] = _ApiClient["default"].convertToType(data['certificate-country'], 'String'); - } - - if (data.hasOwnProperty('certificate-digest-algo')) { - obj['certificate-digest-algo'] = _ApiClient["default"].convertToType(data['certificate-digest-algo'], 'String'); - } - - if (data.hasOwnProperty('certificate-locality')) { - obj['certificate-locality'] = _ApiClient["default"].convertToType(data['certificate-locality'], 'String'); - } - - if (data.hasOwnProperty('certificate-organization')) { - obj['certificate-organization'] = _ApiClient["default"].convertToType(data['certificate-organization'], 'String'); - } - - if (data.hasOwnProperty('certificate-province')) { - obj['certificate-province'] = _ApiClient["default"].convertToType(data['certificate-province'], 'String'); - } - - if (data.hasOwnProperty('certificate-ttl')) { - obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); - } - - if (data.hasOwnProperty('customer-frg-id')) { - obj['customer-frg-id'] = _ApiClient["default"].convertToType(data['customer-frg-id'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('generate-self-signed-certificate')) { - obj['generate-self-signed-certificate'] = _ApiClient["default"].convertToType(data['generate-self-signed-certificate'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('split-level')) { - obj['split-level'] = _ApiClient["default"].convertToType(data['split-level'], 'Number'); - } - - if (data.hasOwnProperty('tag')) { - obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateKey; -}(); -/** - * Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096] - * @member {String} alg - */ - - -CreateKey.prototype['alg'] = undefined; -/** - * Common name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-common-name - */ - -CreateKey.prototype['certificate-common-name'] = undefined; -/** - * Country name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-country - */ - -CreateKey.prototype['certificate-country'] = undefined; -/** - * Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI. - * @member {String} certificate-digest-algo - */ - -CreateKey.prototype['certificate-digest-algo'] = undefined; -/** - * Locality for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-locality - */ - -CreateKey.prototype['certificate-locality'] = undefined; -/** - * Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-organization - */ - -CreateKey.prototype['certificate-organization'] = undefined; -/** - * Province name for the generated certificate. Relevant only for generate-self-signed-certificate. - * @member {String} certificate-province - */ - -CreateKey.prototype['certificate-province'] = undefined; -/** - * TTL in days for the generated certificate. Required only for generate-self-signed-certificate. - * @member {Number} certificate-ttl - */ - -CreateKey.prototype['certificate-ttl'] = undefined; -/** - * The customer fragment ID that will be used to create the key (if empty, the key will be created independently of a customer fragment) - * @member {String} customer-frg-id - */ - -CreateKey.prototype['customer-frg-id'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -CreateKey.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateKey.prototype['description'] = undefined; -/** - * Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided. - * @member {Boolean} generate-self-signed-certificate - */ - -CreateKey.prototype['generate-self-signed-certificate'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateKey.prototype['json'] = false; -/** - * Deprecated - use description - * @member {String} metadata - */ - -CreateKey.prototype['metadata'] = undefined; -/** - * Key name - * @member {String} name - */ - -CreateKey.prototype['name'] = undefined; -/** - * The number of fragments that the item will be split into (not includes customer fragment) - * @member {Number} split-level - * @default 2 - */ - -CreateKey.prototype['split-level'] = 2; -/** - * List of the tags attached to this key - * @member {Array.} tag - */ - -CreateKey.prototype['tag'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateKey.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateKey.prototype['uid-token'] = undefined; -var _default = CreateKey; -exports["default"] = _default; - -/***/ }), - -/***/ 92036: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateKeyOutput model module. - * @module model/CreateKeyOutput - * @version 3.3.16 - */ -var CreateKeyOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateKeyOutput. - * @alias module:model/CreateKeyOutput - */ - function CreateKeyOutput() { - _classCallCheck(this, CreateKeyOutput); - - CreateKeyOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateKeyOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateKeyOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateKeyOutput} obj Optional instance to populate. - * @return {module:model/CreateKeyOutput} The populated CreateKeyOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateKeyOutput(); - - if (data.hasOwnProperty('display_id')) { - obj['display_id'] = _ApiClient["default"].convertToType(data['display_id'], 'String'); - } - - if (data.hasOwnProperty('fragment_results')) { - obj['fragment_results'] = _ApiClient["default"].convertToType(data['fragment_results'], ['Number']); - } - - if (data.hasOwnProperty('item_id')) { - obj['item_id'] = _ApiClient["default"].convertToType(data['item_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateKeyOutput; -}(); -/** - * @member {String} display_id - */ - - -CreateKeyOutput.prototype['display_id'] = undefined; -/** - * @member {Array.} fragment_results - */ - -CreateKeyOutput.prototype['fragment_results'] = undefined; -/** - * @member {Number} item_id - */ - -CreateKeyOutput.prototype['item_id'] = undefined; -var _default = CreateKeyOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 34660: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateLdapTarget model module. - * @module model/CreateLdapTarget - * @version 3.3.16 - */ -var CreateLdapTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateLdapTarget. - * @alias module:model/CreateLdapTarget - * @param bindDn {String} Bind DN - * @param bindDnPassword {String} Bind DN Password - * @param ldapUrl {String} LDAP Server URL - * @param name {String} Target name - */ - function CreateLdapTarget(bindDn, bindDnPassword, ldapUrl, name) { - _classCallCheck(this, CreateLdapTarget); - - CreateLdapTarget.initialize(this, bindDn, bindDnPassword, ldapUrl, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateLdapTarget, null, [{ - key: "initialize", - value: function initialize(obj, bindDn, bindDnPassword, ldapUrl, name) { - obj['bind-dn'] = bindDn; - obj['bind-dn-password'] = bindDnPassword; - obj['ldap-url'] = ldapUrl; - obj['name'] = name; - } - /** - * Constructs a CreateLdapTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateLdapTarget} obj Optional instance to populate. - * @return {module:model/CreateLdapTarget} The populated CreateLdapTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateLdapTarget(); - - if (data.hasOwnProperty('bind-dn')) { - obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); - } - - if (data.hasOwnProperty('bind-dn-password')) { - obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('ldap-ca-cert')) { - obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('ldap-url')) { - obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('server-type')) { - obj['server-type'] = _ApiClient["default"].convertToType(data['server-type'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('token-expiration')) { - obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateLdapTarget; -}(); -/** - * Bind DN - * @member {String} bind-dn - */ - - -CreateLdapTarget.prototype['bind-dn'] = undefined; -/** - * Bind DN Password - * @member {String} bind-dn-password - */ - -CreateLdapTarget.prototype['bind-dn-password'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -CreateLdapTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateLdapTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateLdapTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateLdapTarget.prototype['key'] = undefined; -/** - * CA Certificate File Content - * @member {String} ldap-ca-cert - */ - -CreateLdapTarget.prototype['ldap-ca-cert'] = undefined; -/** - * LDAP Server URL - * @member {String} ldap-url - */ - -CreateLdapTarget.prototype['ldap-url'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateLdapTarget.prototype['name'] = undefined; -/** - * Set Ldap server type, Options:[OpenLDAP, ActiveDirectory]. Default is OpenLDAP - * @member {String} server-type - * @default 'OpenLDAP' - */ - -CreateLdapTarget.prototype['server-type'] = 'OpenLDAP'; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateLdapTarget.prototype['token'] = undefined; -/** - * Token expiration - * @member {String} token-expiration - */ - -CreateLdapTarget.prototype['token-expiration'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateLdapTarget.prototype['uid-token'] = undefined; -var _default = CreateLdapTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 24309: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateLdapTargetOutput model module. - * @module model/CreateLdapTargetOutput - * @version 3.3.16 - */ -var CreateLdapTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateLdapTargetOutput. - * @alias module:model/CreateLdapTargetOutput - */ - function CreateLdapTargetOutput() { - _classCallCheck(this, CreateLdapTargetOutput); - - CreateLdapTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateLdapTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateLdapTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateLdapTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateLdapTargetOutput} The populated CreateLdapTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateLdapTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateLdapTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateLdapTargetOutput.prototype['target_id'] = undefined; -var _default = CreateLdapTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 91736: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateLinkedTarget model module. - * @module model/CreateLinkedTarget - * @version 3.3.16 - */ -var CreateLinkedTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateLinkedTarget. - * @alias module:model/CreateLinkedTarget - * @param name {String} Target name - */ - function CreateLinkedTarget(name) { - _classCallCheck(this, CreateLinkedTarget); - - CreateLinkedTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateLinkedTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateLinkedTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateLinkedTarget} obj Optional instance to populate. - * @return {module:model/CreateLinkedTarget} The populated CreateLinkedTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateLinkedTarget(); - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('hosts')) { - obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('parent-target-name')) { - obj['parent-target-name'] = _ApiClient["default"].convertToType(data['parent-target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateLinkedTarget; -}(); -/** - * Description of the object - * @member {String} description - */ - - -CreateLinkedTarget.prototype['description'] = undefined; -/** - * A comma seperated list of server hosts and server descriptions joined by semicolon ';' (i.e. 'server-dev.com;My Dev server,server-prod.com;My Prod server description') - * @member {String} hosts - */ - -CreateLinkedTarget.prototype['hosts'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateLinkedTarget.prototype['json'] = false; -/** - * Target name - * @member {String} name - */ - -CreateLinkedTarget.prototype['name'] = undefined; -/** - * The parent Target name - * @member {String} parent-target-name - */ - -CreateLinkedTarget.prototype['parent-target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateLinkedTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateLinkedTarget.prototype['uid-token'] = undefined; -var _default = CreateLinkedTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 45297: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateLinkedTargetOutput model module. - * @module model/CreateLinkedTargetOutput - * @version 3.3.16 - */ -var CreateLinkedTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateLinkedTargetOutput. - * @alias module:model/CreateLinkedTargetOutput - */ - function CreateLinkedTargetOutput() { - _classCallCheck(this, CreateLinkedTargetOutput); - - CreateLinkedTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateLinkedTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateLinkedTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateLinkedTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateLinkedTargetOutput} The populated CreateLinkedTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateLinkedTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateLinkedTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateLinkedTargetOutput.prototype['target_id'] = undefined; -var _default = CreateLinkedTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 36798: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateNativeK8STarget model module. - * @module model/CreateNativeK8STarget - * @version 3.3.16 - */ -var CreateNativeK8STarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateNativeK8STarget. - * @alias module:model/CreateNativeK8STarget - * @param k8sClusterCaCert {String} K8S cluster CA certificate - * @param k8sClusterEndpoint {String} K8S cluster URL endpoint - * @param k8sClusterToken {String} K8S cluster Bearer token - * @param name {String} Target name - */ - function CreateNativeK8STarget(k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name) { - _classCallCheck(this, CreateNativeK8STarget); - - CreateNativeK8STarget.initialize(this, k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateNativeK8STarget, null, [{ - key: "initialize", - value: function initialize(obj, k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name) { - obj['k8s-cluster-ca-cert'] = k8sClusterCaCert; - obj['k8s-cluster-endpoint'] = k8sClusterEndpoint; - obj['k8s-cluster-token'] = k8sClusterToken; - obj['name'] = name; - } - /** - * Constructs a CreateNativeK8STarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateNativeK8STarget} obj Optional instance to populate. - * @return {module:model/CreateNativeK8STarget} The populated CreateNativeK8STarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateNativeK8STarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s-cluster-ca-cert')) { - obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('k8s-cluster-endpoint')) { - obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('k8s-cluster-token')) { - obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('use-gw-service-account')) { - obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); - } - } - - return obj; - } - }]); - - return CreateNativeK8STarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -CreateNativeK8STarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateNativeK8STarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateNativeK8STarget.prototype['json'] = false; -/** - * K8S cluster CA certificate - * @member {String} k8s-cluster-ca-cert - * @default 'dummy_val' - */ - -CreateNativeK8STarget.prototype['k8s-cluster-ca-cert'] = 'dummy_val'; -/** - * K8S cluster URL endpoint - * @member {String} k8s-cluster-endpoint - * @default 'dummy_val' - */ - -CreateNativeK8STarget.prototype['k8s-cluster-endpoint'] = 'dummy_val'; -/** - * K8S cluster Bearer token - * @member {String} k8s-cluster-token - * @default 'dummy_val' - */ - -CreateNativeK8STarget.prototype['k8s-cluster-token'] = 'dummy_val'; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateNativeK8STarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateNativeK8STarget.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateNativeK8STarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateNativeK8STarget.prototype['uid-token'] = undefined; -/** - * Use the GW's service account - * @member {Boolean} use-gw-service-account - */ - -CreateNativeK8STarget.prototype['use-gw-service-account'] = undefined; -var _default = CreateNativeK8STarget; -exports["default"] = _default; - -/***/ }), - -/***/ 15947: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateNativeK8STargetOutput model module. - * @module model/CreateNativeK8STargetOutput - * @version 3.3.16 - */ -var CreateNativeK8STargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateNativeK8STargetOutput. - * @alias module:model/CreateNativeK8STargetOutput - */ - function CreateNativeK8STargetOutput() { - _classCallCheck(this, CreateNativeK8STargetOutput); - - CreateNativeK8STargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateNativeK8STargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateNativeK8STargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateNativeK8STargetOutput} obj Optional instance to populate. - * @return {module:model/CreateNativeK8STargetOutput} The populated CreateNativeK8STargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateNativeK8STargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateNativeK8STargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateNativeK8STargetOutput.prototype['target_id'] = undefined; -var _default = CreateNativeK8STargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 10515: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreatePKICertIssuer model module. - * @module model/CreatePKICertIssuer - * @version 3.3.16 - */ -var CreatePKICertIssuer = /*#__PURE__*/function () { - /** - * Constructs a new CreatePKICertIssuer. - * @alias module:model/CreatePKICertIssuer - * @param name {String} PKI certificate issuer name - * @param signerKeyName {String} A key to sign the certificate with, required in Private CA mode - * @param ttl {Number} The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs - */ - function CreatePKICertIssuer(name, signerKeyName, ttl) { - _classCallCheck(this, CreatePKICertIssuer); - - CreatePKICertIssuer.initialize(this, name, signerKeyName, ttl); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreatePKICertIssuer, null, [{ - key: "initialize", - value: function initialize(obj, name, signerKeyName, ttl) { - obj['name'] = name; - obj['signer-key-name'] = signerKeyName; - obj['ttl'] = ttl; - } - /** - * Constructs a CreatePKICertIssuer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreatePKICertIssuer} obj Optional instance to populate. - * @return {module:model/CreatePKICertIssuer} The populated CreatePKICertIssuer instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreatePKICertIssuer(); - - if (data.hasOwnProperty('allow-any-name')) { - obj['allow-any-name'] = _ApiClient["default"].convertToType(data['allow-any-name'], 'Boolean'); - } - - if (data.hasOwnProperty('allow-subdomains')) { - obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); - } - - if (data.hasOwnProperty('allowed-domains')) { - obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], 'String'); - } - - if (data.hasOwnProperty('allowed-uri-sans')) { - obj['allowed-uri-sans'] = _ApiClient["default"].convertToType(data['allowed-uri-sans'], 'String'); - } - - if (data.hasOwnProperty('ca-target')) { - obj['ca-target'] = _ApiClient["default"].convertToType(data['ca-target'], 'String'); - } - - if (data.hasOwnProperty('client-flag')) { - obj['client-flag'] = _ApiClient["default"].convertToType(data['client-flag'], 'Boolean'); - } - - if (data.hasOwnProperty('code-signing-flag')) { - obj['code-signing-flag'] = _ApiClient["default"].convertToType(data['code-signing-flag'], 'Boolean'); - } - - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('destination-path')) { - obj['destination-path'] = _ApiClient["default"].convertToType(data['destination-path'], 'String'); - } - - if (data.hasOwnProperty('expiration-event-in')) { - obj['expiration-event-in'] = _ApiClient["default"].convertToType(data['expiration-event-in'], ['String']); - } - - if (data.hasOwnProperty('gw-cluster-url')) { - obj['gw-cluster-url'] = _ApiClient["default"].convertToType(data['gw-cluster-url'], 'String'); - } - - if (data.hasOwnProperty('is-ca')) { - obj['is-ca'] = _ApiClient["default"].convertToType(data['is-ca'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-usage')) { - obj['key-usage'] = _ApiClient["default"].convertToType(data['key-usage'], 'String'); - } - - if (data.hasOwnProperty('locality')) { - obj['locality'] = _ApiClient["default"].convertToType(data['locality'], 'String'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('not-enforce-hostnames')) { - obj['not-enforce-hostnames'] = _ApiClient["default"].convertToType(data['not-enforce-hostnames'], 'Boolean'); - } - - if (data.hasOwnProperty('not-require-cn')) { - obj['not-require-cn'] = _ApiClient["default"].convertToType(data['not-require-cn'], 'Boolean'); - } - - if (data.hasOwnProperty('organizational-units')) { - obj['organizational-units'] = _ApiClient["default"].convertToType(data['organizational-units'], 'String'); - } - - if (data.hasOwnProperty('organizations')) { - obj['organizations'] = _ApiClient["default"].convertToType(data['organizations'], 'String'); - } - - if (data.hasOwnProperty('postal-code')) { - obj['postal-code'] = _ApiClient["default"].convertToType(data['postal-code'], 'String'); - } - - if (data.hasOwnProperty('protect-certificates')) { - obj['protect-certificates'] = _ApiClient["default"].convertToType(data['protect-certificates'], 'Boolean'); - } - - if (data.hasOwnProperty('province')) { - obj['province'] = _ApiClient["default"].convertToType(data['province'], 'String'); - } - - if (data.hasOwnProperty('server-flag')) { - obj['server-flag'] = _ApiClient["default"].convertToType(data['server-flag'], 'Boolean'); - } - - if (data.hasOwnProperty('signer-key-name')) { - obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); - } - - if (data.hasOwnProperty('street-address')) { - obj['street-address'] = _ApiClient["default"].convertToType(data['street-address'], 'String'); - } - - if (data.hasOwnProperty('tag')) { - obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreatePKICertIssuer; -}(); -/** - * If set, clients can request certificates for any CN - * @member {Boolean} allow-any-name - */ - - -CreatePKICertIssuer.prototype['allow-any-name'] = undefined; -/** - * If set, clients can request certificates for subdomains and wildcard subdomains of the allowed domains - * @member {Boolean} allow-subdomains - */ - -CreatePKICertIssuer.prototype['allow-subdomains'] = undefined; -/** - * A list of the allowed domains that clients can request to be included in the certificate (in a comma-delimited list) - * @member {String} allowed-domains - */ - -CreatePKICertIssuer.prototype['allowed-domains'] = undefined; -/** - * A list of the allowed URIs that clients can request to be included in the certificate as part of the URI Subject Alternative Names (in a comma-delimited list) - * @member {String} allowed-uri-sans - */ - -CreatePKICertIssuer.prototype['allowed-uri-sans'] = undefined; -/** - * The name of an existing CA target to attach this PKI Certificate Issuer to, required in Public CA mode - * @member {String} ca-target - */ - -CreatePKICertIssuer.prototype['ca-target'] = undefined; -/** - * If set, certificates will be flagged for client auth use - * @member {Boolean} client-flag - */ - -CreatePKICertIssuer.prototype['client-flag'] = undefined; -/** - * If set, certificates will be flagged for code signing use - * @member {Boolean} code-signing-flag - */ - -CreatePKICertIssuer.prototype['code-signing-flag'] = undefined; -/** - * A comma-separated list of countries that will be set in the issued certificate - * @member {String} country - */ - -CreatePKICertIssuer.prototype['country'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -CreatePKICertIssuer.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreatePKICertIssuer.prototype['description'] = undefined; -/** - * A path in which to save generated certificates - * @member {String} destination-path - */ - -CreatePKICertIssuer.prototype['destination-path'] = undefined; -/** - * How many days before the expiration of the certificate would you like to be notified. - * @member {Array.} expiration-event-in - */ - -CreatePKICertIssuer.prototype['expiration-event-in'] = undefined; -/** - * The GW cluster URL to issue the certificate from, required in Public CA mode - * @member {String} gw-cluster-url - */ - -CreatePKICertIssuer.prototype['gw-cluster-url'] = undefined; -/** - * If set, the basic constraints extension will be added to certificate - * @member {Boolean} is-ca - */ - -CreatePKICertIssuer.prototype['is-ca'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreatePKICertIssuer.prototype['json'] = false; -/** - * key-usage - * @member {String} key-usage - * @default 'DigitalSignature,KeyAgreement,KeyEncipherment' - */ - -CreatePKICertIssuer.prototype['key-usage'] = 'DigitalSignature,KeyAgreement,KeyEncipherment'; -/** - * A comma-separated list of localities that will be set in the issued certificate - * @member {String} locality - */ - -CreatePKICertIssuer.prototype['locality'] = undefined; -/** - * Deprecated - use description - * @member {String} metadata - */ - -CreatePKICertIssuer.prototype['metadata'] = undefined; -/** - * PKI certificate issuer name - * @member {String} name - */ - -CreatePKICertIssuer.prototype['name'] = undefined; -/** - * If set, any names are allowed for CN and SANs in the certificate and not only a valid host name - * @member {Boolean} not-enforce-hostnames - */ - -CreatePKICertIssuer.prototype['not-enforce-hostnames'] = undefined; -/** - * If set, clients can request certificates without a CN - * @member {Boolean} not-require-cn - */ - -CreatePKICertIssuer.prototype['not-require-cn'] = undefined; -/** - * A comma-separated list of organizational units (OU) that will be set in the issued certificate - * @member {String} organizational-units - */ - -CreatePKICertIssuer.prototype['organizational-units'] = undefined; -/** - * A comma-separated list of organizations (O) that will be set in the issued certificate - * @member {String} organizations - */ - -CreatePKICertIssuer.prototype['organizations'] = undefined; -/** - * A comma-separated list of postal codes that will be set in the issued certificate - * @member {String} postal-code - */ - -CreatePKICertIssuer.prototype['postal-code'] = undefined; -/** - * Whether to protect generated certificates from deletion - * @member {Boolean} protect-certificates - */ - -CreatePKICertIssuer.prototype['protect-certificates'] = undefined; -/** - * A comma-separated list of provinces that will be set in the issued certificate - * @member {String} province - */ - -CreatePKICertIssuer.prototype['province'] = undefined; -/** - * If set, certificates will be flagged for server auth use - * @member {Boolean} server-flag - */ - -CreatePKICertIssuer.prototype['server-flag'] = undefined; -/** - * A key to sign the certificate with, required in Private CA mode - * @member {String} signer-key-name - * @default 'dummy_signer_key' - */ - -CreatePKICertIssuer.prototype['signer-key-name'] = 'dummy_signer_key'; -/** - * A comma-separated list of street addresses that will be set in the issued certificate - * @member {String} street-address - */ - -CreatePKICertIssuer.prototype['street-address'] = undefined; -/** - * List of the tags attached to this key - * @member {Array.} tag - */ - -CreatePKICertIssuer.prototype['tag'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreatePKICertIssuer.prototype['token'] = undefined; -/** - * The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs - * @member {Number} ttl - */ - -CreatePKICertIssuer.prototype['ttl'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreatePKICertIssuer.prototype['uid-token'] = undefined; -var _default = CreatePKICertIssuer; -exports["default"] = _default; - -/***/ }), - -/***/ 70178: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreatePKICertIssuerOutput model module. - * @module model/CreatePKICertIssuerOutput - * @version 3.3.16 - */ -var CreatePKICertIssuerOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreatePKICertIssuerOutput. - * @alias module:model/CreatePKICertIssuerOutput - */ - function CreatePKICertIssuerOutput() { - _classCallCheck(this, CreatePKICertIssuerOutput); - - CreatePKICertIssuerOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreatePKICertIssuerOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreatePKICertIssuerOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreatePKICertIssuerOutput} obj Optional instance to populate. - * @return {module:model/CreatePKICertIssuerOutput} The populated CreatePKICertIssuerOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreatePKICertIssuerOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return CreatePKICertIssuerOutput; -}(); -/** - * @member {String} name - */ - - -CreatePKICertIssuerOutput.prototype['name'] = undefined; -var _default = CreatePKICertIssuerOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 17729: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreatePingTarget model module. - * @module model/CreatePingTarget - * @version 3.3.16 - */ -var CreatePingTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreatePingTarget. - * @alias module:model/CreatePingTarget - * @param name {String} Target name - */ - function CreatePingTarget(name) { - _classCallCheck(this, CreatePingTarget); - - CreatePingTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreatePingTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreatePingTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreatePingTarget} obj Optional instance to populate. - * @return {module:model/CreatePingTarget} The populated CreatePingTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreatePingTarget(); - - if (data.hasOwnProperty('administrative-port')) { - obj['administrative-port'] = _ApiClient["default"].convertToType(data['administrative-port'], 'String'); - } - - if (data.hasOwnProperty('authorization-port')) { - obj['authorization-port'] = _ApiClient["default"].convertToType(data['authorization-port'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('ping-url')) { - obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); - } - - if (data.hasOwnProperty('privileged-user')) { - obj['privileged-user'] = _ApiClient["default"].convertToType(data['privileged-user'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreatePingTarget; -}(); -/** - * Ping Federate administrative port - * @member {String} administrative-port - * @default '9999' - */ - - -CreatePingTarget.prototype['administrative-port'] = '9999'; -/** - * Ping Federate authorization port - * @member {String} authorization-port - * @default '9031' - */ - -CreatePingTarget.prototype['authorization-port'] = '9031'; -/** - * Deprecated - use description - * @member {String} comment - */ - -CreatePingTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreatePingTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreatePingTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreatePingTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreatePingTarget.prototype['name'] = undefined; -/** - * Ping Federate privileged user password - * @member {String} password - */ - -CreatePingTarget.prototype['password'] = undefined; -/** - * Ping URL - * @member {String} ping-url - */ - -CreatePingTarget.prototype['ping-url'] = undefined; -/** - * Ping Federate privileged user - * @member {String} privileged-user - */ - -CreatePingTarget.prototype['privileged-user'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreatePingTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreatePingTarget.prototype['uid-token'] = undefined; -var _default = CreatePingTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 83860: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreatePingTargetOutput model module. - * @module model/CreatePingTargetOutput - * @version 3.3.16 - */ -var CreatePingTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreatePingTargetOutput. - * @alias module:model/CreatePingTargetOutput - */ - function CreatePingTargetOutput() { - _classCallCheck(this, CreatePingTargetOutput); - - CreatePingTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreatePingTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreatePingTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreatePingTargetOutput} obj Optional instance to populate. - * @return {module:model/CreatePingTargetOutput} The populated CreatePingTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreatePingTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreatePingTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreatePingTargetOutput.prototype['target_id'] = undefined; -var _default = CreatePingTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 28099: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateRabbitMQTarget model module. - * @module model/CreateRabbitMQTarget - * @version 3.3.16 - */ -var CreateRabbitMQTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateRabbitMQTarget. - * @alias module:model/CreateRabbitMQTarget - * @param name {String} Target name - */ - function CreateRabbitMQTarget(name) { - _classCallCheck(this, CreateRabbitMQTarget); - - CreateRabbitMQTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateRabbitMQTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateRabbitMQTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateRabbitMQTarget} obj Optional instance to populate. - * @return {module:model/CreateRabbitMQTarget} The populated CreateRabbitMQTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateRabbitMQTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-server-password')) { - obj['rabbitmq-server-password'] = _ApiClient["default"].convertToType(data['rabbitmq-server-password'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-server-uri')) { - obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-server-user')) { - obj['rabbitmq-server-user'] = _ApiClient["default"].convertToType(data['rabbitmq-server-user'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateRabbitMQTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -CreateRabbitMQTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateRabbitMQTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateRabbitMQTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateRabbitMQTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateRabbitMQTarget.prototype['name'] = undefined; -/** - * @member {String} rabbitmq-server-password - */ - -CreateRabbitMQTarget.prototype['rabbitmq-server-password'] = undefined; -/** - * @member {String} rabbitmq-server-uri - */ - -CreateRabbitMQTarget.prototype['rabbitmq-server-uri'] = undefined; -/** - * @member {String} rabbitmq-server-user - */ - -CreateRabbitMQTarget.prototype['rabbitmq-server-user'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateRabbitMQTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateRabbitMQTarget.prototype['uid-token'] = undefined; -var _default = CreateRabbitMQTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 64274: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateRabbitMQTargetOutput model module. - * @module model/CreateRabbitMQTargetOutput - * @version 3.3.16 - */ -var CreateRabbitMQTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateRabbitMQTargetOutput. - * @alias module:model/CreateRabbitMQTargetOutput - */ - function CreateRabbitMQTargetOutput() { - _classCallCheck(this, CreateRabbitMQTargetOutput); - - CreateRabbitMQTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateRabbitMQTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateRabbitMQTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateRabbitMQTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateRabbitMQTargetOutput} The populated CreateRabbitMQTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateRabbitMQTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateRabbitMQTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateRabbitMQTargetOutput.prototype['target_id'] = undefined; -var _default = CreateRabbitMQTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 36904: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateRole model module. - * @module model/CreateRole - * @version 3.3.16 - */ -var CreateRole = /*#__PURE__*/function () { - /** - * Constructs a new CreateRole. - * @alias module:model/CreateRole - * @param name {String} Role name - */ - function CreateRole(name) { - _classCallCheck(this, CreateRole); - - CreateRole.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateRole, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateRole from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateRole} obj Optional instance to populate. - * @return {module:model/CreateRole} The populated CreateRole instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateRole(); - - if (data.hasOwnProperty('analytics-access')) { - obj['analytics-access'] = _ApiClient["default"].convertToType(data['analytics-access'], 'String'); - } - - if (data.hasOwnProperty('audit-access')) { - obj['audit-access'] = _ApiClient["default"].convertToType(data['audit-access'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('gw-analytics-access')) { - obj['gw-analytics-access'] = _ApiClient["default"].convertToType(data['gw-analytics-access'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('sra-reports-access')) { - obj['sra-reports-access'] = _ApiClient["default"].convertToType(data['sra-reports-access'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateRole; -}(); -/** - * Allow this role to view analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. - * @member {String} analytics-access - */ - - -CreateRole.prototype['analytics-access'] = undefined; -/** - * Allow this role to view audit logs. Currently only 'none', 'own' and 'all' values are supported, allowing associated auth methods to view audit logs produced by the same auth methods. - * @member {String} audit-access - */ - -CreateRole.prototype['audit-access'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -CreateRole.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateRole.prototype['description'] = undefined; -/** - * Allow this role to view gw analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. - * @member {String} gw-analytics-access - */ - -CreateRole.prototype['gw-analytics-access'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateRole.prototype['json'] = false; -/** - * Role name - * @member {String} name - */ - -CreateRole.prototype['name'] = undefined; -/** - * Allow this role to view SRA Clusters. Currently only 'none', 'own', 'all' values are supported. - * @member {String} sra-reports-access - */ - -CreateRole.prototype['sra-reports-access'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateRole.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateRole.prototype['uid-token'] = undefined; -var _default = CreateRole; -exports["default"] = _default; - -/***/ }), - -/***/ 41569: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateRoleAuthMethodAssocOutput model module. - * @module model/CreateRoleAuthMethodAssocOutput - * @version 3.3.16 - */ -var CreateRoleAuthMethodAssocOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateRoleAuthMethodAssocOutput. - * CreateRoleAuthMethodAssocOutput defines output of CreateRoleAuthMethodAssoc operation. - * @alias module:model/CreateRoleAuthMethodAssocOutput - */ - function CreateRoleAuthMethodAssocOutput() { - _classCallCheck(this, CreateRoleAuthMethodAssocOutput); - - CreateRoleAuthMethodAssocOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateRoleAuthMethodAssocOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateRoleAuthMethodAssocOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateRoleAuthMethodAssocOutput} obj Optional instance to populate. - * @return {module:model/CreateRoleAuthMethodAssocOutput} The populated CreateRoleAuthMethodAssocOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateRoleAuthMethodAssocOutput(); - - if (data.hasOwnProperty('assoc_id')) { - obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); - } - } - - return obj; - } - }]); - - return CreateRoleAuthMethodAssocOutput; -}(); -/** - * @member {String} assoc_id - */ - - -CreateRoleAuthMethodAssocOutput.prototype['assoc_id'] = undefined; -var _default = CreateRoleAuthMethodAssocOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 25203: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateRotatedSecret model module. - * @module model/CreateRotatedSecret - * @version 3.3.16 - */ -var CreateRotatedSecret = /*#__PURE__*/function () { - /** - * Constructs a new CreateRotatedSecret. - * @alias module:model/CreateRotatedSecret - * @param name {String} Secret name - * @param rotatorType {String} Rotator Type - * @param targetName {String} Target name - */ - function CreateRotatedSecret(name, rotatorType, targetName) { - _classCallCheck(this, CreateRotatedSecret); - - CreateRotatedSecret.initialize(this, name, rotatorType, targetName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateRotatedSecret, null, [{ - key: "initialize", - value: function initialize(obj, name, rotatorType, targetName) { - obj['name'] = name; - obj['rotator-type'] = rotatorType; - obj['target-name'] = targetName; - } - /** - * Constructs a CreateRotatedSecret from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateRotatedSecret} obj Optional instance to populate. - * @return {module:model/CreateRotatedSecret} The populated CreateRotatedSecret instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateRotatedSecret(); - - if (data.hasOwnProperty('api-id')) { - obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); - } - - if (data.hasOwnProperty('api-key')) { - obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); - } - - if (data.hasOwnProperty('application-id')) { - obj['application-id'] = _ApiClient["default"].convertToType(data['application-id'], 'String'); - } - - if (data.hasOwnProperty('authentication-credentials')) { - obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); - } - - if (data.hasOwnProperty('auto-rotate')) { - obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); - } - - if (data.hasOwnProperty('aws-region')) { - obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); - } - - if (data.hasOwnProperty('custom-payload')) { - obj['custom-payload'] = _ApiClient["default"].convertToType(data['custom-payload'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('rotate-after-disconnect')) { - obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); - } - - if (data.hasOwnProperty('rotated-password')) { - obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); - } - - if (data.hasOwnProperty('rotated-username')) { - obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); - } - - if (data.hasOwnProperty('rotation-hour')) { - obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); - } - - if (data.hasOwnProperty('rotation-interval')) { - obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); - } - - if (data.hasOwnProperty('rotator-creds-type')) { - obj['rotator-creds-type'] = _ApiClient["default"].convertToType(data['rotator-creds-type'], 'String'); - } - - if (data.hasOwnProperty('rotator-custom-cmd')) { - obj['rotator-custom-cmd'] = _ApiClient["default"].convertToType(data['rotator-custom-cmd'], 'String'); - } - - if (data.hasOwnProperty('rotator-type')) { - obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); - } - - if (data.hasOwnProperty('same-password')) { - obj['same-password'] = _ApiClient["default"].convertToType(data['same-password'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-external-user')) { - obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-aws-account-id')) { - obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); - } - - if (data.hasOwnProperty('secure-access-aws-native-cli')) { - obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-name')) { - obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-rdp-domain')) { - obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); - } - - if (data.hasOwnProperty('secure-access-rdp-user')) { - obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); - } - - if (data.hasOwnProperty('ssh-password')) { - obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); - } - - if (data.hasOwnProperty('ssh-username')) { - obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); - } - - if (data.hasOwnProperty('storage-account-key-name')) { - obj['storage-account-key-name'] = _ApiClient["default"].convertToType(data['storage-account-key-name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-attribute')) { - obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); - } - - if (data.hasOwnProperty('user-dn')) { - obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); - } - } - - return obj; - } - }]); - - return CreateRotatedSecret; -}(); -/** - * API ID to rotate (relevant only for rotator-type=api-key) - * @member {String} api-id - */ - - -CreateRotatedSecret.prototype['api-id'] = undefined; -/** - * API key to rotate (relevant only for rotator-type=api-key) - * @member {String} api-key - */ - -CreateRotatedSecret.prototype['api-key'] = undefined; -/** - * ApplicationId (used in azure) - * @member {String} application-id - */ - -CreateRotatedSecret.prototype['application-id'] = undefined; -/** - * The credentials to connect with use-user-creds/use-target-creds - * @member {String} authentication-credentials - * @default 'use-user-creds' - */ - -CreateRotatedSecret.prototype['authentication-credentials'] = 'use-user-creds'; -/** - * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] - * @member {String} auto-rotate - */ - -CreateRotatedSecret.prototype['auto-rotate'] = undefined; -/** - * Region (used in aws) - * @member {String} aws-region - * @default 'us-east-2' - */ - -CreateRotatedSecret.prototype['aws-region'] = 'us-east-2'; -/** - * Secret payload to be sent with rotation request (relevant only for rotator-type=custom) - * @member {String} custom-payload - */ - -CreateRotatedSecret.prototype['custom-payload'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -CreateRotatedSecret.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateRotatedSecret.prototype['description'] = undefined; -/** - * Base64-encoded service account private key text - * @member {String} gcp-key - */ - -CreateRotatedSecret.prototype['gcp-key'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateRotatedSecret.prototype['json'] = false; -/** - * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateRotatedSecret.prototype['key'] = undefined; -/** - * Deprecated - use description - * @member {String} metadata - */ - -CreateRotatedSecret.prototype['metadata'] = undefined; -/** - * Secret name - * @member {String} name - */ - -CreateRotatedSecret.prototype['name'] = undefined; -/** - * Rotate the value of the secret after SRA session ends [true/false] - * @member {String} rotate-after-disconnect - * @default 'false' - */ - -CreateRotatedSecret.prototype['rotate-after-disconnect'] = 'false'; -/** - * rotated-username password (relevant only for rotator-type=password) - * @member {String} rotated-password - */ - -CreateRotatedSecret.prototype['rotated-password'] = undefined; -/** - * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) - * @member {String} rotated-username - */ - -CreateRotatedSecret.prototype['rotated-username'] = undefined; -/** - * The Hour of the rotation in UTC - * @member {Number} rotation-hour - */ - -CreateRotatedSecret.prototype['rotation-hour'] = undefined; -/** - * The number of days to wait between every automatic key rotation (1-365) - * @member {String} rotation-interval - */ - -CreateRotatedSecret.prototype['rotation-interval'] = undefined; -/** - * @member {String} rotator-creds-type - */ - -CreateRotatedSecret.prototype['rotator-creds-type'] = undefined; -/** - * Custom rotation command (relevant only for ssh target) - * @member {String} rotator-custom-cmd - */ - -CreateRotatedSecret.prototype['rotator-custom-cmd'] = undefined; -/** - * Rotator Type - * @member {String} rotator-type - */ - -CreateRotatedSecret.prototype['rotator-type'] = undefined; -/** - * Rotate same password for each host from the Linked Target (relevant only for Linked Target) - * @member {String} same-password - */ - -CreateRotatedSecret.prototype['same-password'] = undefined; -/** - * Allow providing external user for a domain users (relevant only for rdp) - * @member {Boolean} secure-access-allow-external-user - * @default false - */ - -CreateRotatedSecret.prototype['secure-access-allow-external-user'] = false; -/** - * The AWS account id (relevant only for aws) - * @member {String} secure-access-aws-account-id - */ - -CreateRotatedSecret.prototype['secure-access-aws-account-id'] = undefined; -/** - * The AWS native cli - * @member {Boolean} secure-access-aws-native-cli - */ - -CreateRotatedSecret.prototype['secure-access-aws-native-cli'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -CreateRotatedSecret.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The DB name (relevant only for DB Dynamic-Secret) - * @member {String} secure-access-db-name - */ - -CreateRotatedSecret.prototype['secure-access-db-name'] = undefined; -/** - * The db schema (relevant only for mssql or postgresql) - * @member {String} secure-access-db-schema - */ - -CreateRotatedSecret.prototype['secure-access-db-schema'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -CreateRotatedSecret.prototype['secure-access-enable'] = undefined; -/** - * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) - * @member {Array.} secure-access-host - */ - -CreateRotatedSecret.prototype['secure-access-host'] = undefined; -/** - * Required when the Dynamic Secret is used for a domain user (relevant only for RDP Dynamic-Secret) - * @member {String} secure-access-rdp-domain - */ - -CreateRotatedSecret.prototype['secure-access-rdp-domain'] = undefined; -/** - * Override the RDP Domain username (relevant only for rdp) - * @member {String} secure-access-rdp-user - */ - -CreateRotatedSecret.prototype['secure-access-rdp-user'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -CreateRotatedSecret.prototype['secure-access-web'] = false; -/** - * Secure browser via Akeyless Web Access Bastion (relevant only for aws or azure) - * @member {Boolean} secure-access-web-browsing - * @default false - */ - -CreateRotatedSecret.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion (relevant only for aws or azure) - * @member {Boolean} secure-access-web-proxy - * @default false - */ - -CreateRotatedSecret.prototype['secure-access-web-proxy'] = false; -/** - * Deprecated: use RotatedPassword - * @member {String} ssh-password - */ - -CreateRotatedSecret.prototype['ssh-password'] = undefined; -/** - * Deprecated: use RotatedUser - * @member {String} ssh-username - */ - -CreateRotatedSecret.prototype['ssh-username'] = undefined; -/** - * The name of the storage account key to rotate [key1/key2/kerb1/kerb2] (relevat to azure-storage-account) - * @member {String} storage-account-key-name - */ - -CreateRotatedSecret.prototype['storage-account-key-name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -CreateRotatedSecret.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -CreateRotatedSecret.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateRotatedSecret.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateRotatedSecret.prototype['uid-token'] = undefined; -/** - * LDAP User Attribute, Default value \"cn\" - * @member {String} user-attribute - */ - -CreateRotatedSecret.prototype['user-attribute'] = undefined; -/** - * LDAP User Base DN - * @member {String} user-dn - */ - -CreateRotatedSecret.prototype['user-dn'] = undefined; -var _default = CreateRotatedSecret; -exports["default"] = _default; - -/***/ }), - -/***/ 89634: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateRotatedSecretOutput model module. - * @module model/CreateRotatedSecretOutput - * @version 3.3.16 - */ -var CreateRotatedSecretOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateRotatedSecretOutput. - * @alias module:model/CreateRotatedSecretOutput - */ - function CreateRotatedSecretOutput() { - _classCallCheck(this, CreateRotatedSecretOutput); - - CreateRotatedSecretOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateRotatedSecretOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateRotatedSecretOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateRotatedSecretOutput} obj Optional instance to populate. - * @return {module:model/CreateRotatedSecretOutput} The populated CreateRotatedSecretOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateRotatedSecretOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return CreateRotatedSecretOutput; -}(); -/** - * @member {String} name - */ - - -CreateRotatedSecretOutput.prototype['name'] = undefined; -var _default = CreateRotatedSecretOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 1985: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateSSHCertIssuer model module. - * @module model/CreateSSHCertIssuer - * @version 3.3.16 - */ -var CreateSSHCertIssuer = /*#__PURE__*/function () { - /** - * Constructs a new CreateSSHCertIssuer. - * @alias module:model/CreateSSHCertIssuer - * @param allowedUsers {String} Users allowed to fetch the certificate, e.g root,ubuntu - * @param name {String} SSH certificate issuer name - * @param signerKeyName {String} A key to sign the certificate with - * @param ttl {Number} The requested Time To Live for the certificate, in seconds - */ - function CreateSSHCertIssuer(allowedUsers, name, signerKeyName, ttl) { - _classCallCheck(this, CreateSSHCertIssuer); - - CreateSSHCertIssuer.initialize(this, allowedUsers, name, signerKeyName, ttl); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateSSHCertIssuer, null, [{ - key: "initialize", - value: function initialize(obj, allowedUsers, name, signerKeyName, ttl) { - obj['allowed-users'] = allowedUsers; - obj['name'] = name; - obj['signer-key-name'] = signerKeyName; - obj['ttl'] = ttl; - } - /** - * Constructs a CreateSSHCertIssuer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateSSHCertIssuer} obj Optional instance to populate. - * @return {module:model/CreateSSHCertIssuer} The populated CreateSSHCertIssuer instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateSSHCertIssuer(); - - if (data.hasOwnProperty('allowed-users')) { - obj['allowed-users'] = _ApiClient["default"].convertToType(data['allowed-users'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('extensions')) { - obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('principals')) { - obj['principals'] = _ApiClient["default"].convertToType(data['principals'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-api')) { - obj['secure-access-bastion-api'] = _ApiClient["default"].convertToType(data['secure-access-bastion-api'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-ssh')) { - obj['secure-access-bastion-ssh'] = _ApiClient["default"].convertToType(data['secure-access-bastion-ssh'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-ssh-creds-user')) { - obj['secure-access-ssh-creds-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds-user'], 'String'); - } - - if (data.hasOwnProperty('secure-access-use-internal-bastion')) { - obj['secure-access-use-internal-bastion'] = _ApiClient["default"].convertToType(data['secure-access-use-internal-bastion'], 'Boolean'); - } - - if (data.hasOwnProperty('signer-key-name')) { - obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); - } - - if (data.hasOwnProperty('tag')) { - obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateSSHCertIssuer; -}(); -/** - * Users allowed to fetch the certificate, e.g root,ubuntu - * @member {String} allowed-users - */ - - -CreateSSHCertIssuer.prototype['allowed-users'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -CreateSSHCertIssuer.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateSSHCertIssuer.prototype['description'] = undefined; -/** - * Signed certificates with extensions, e.g permit-port-forwarding=\\\"\\\" - * @member {Object.} extensions - */ - -CreateSSHCertIssuer.prototype['extensions'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateSSHCertIssuer.prototype['json'] = false; -/** - * Deprecated - use description - * @member {String} metadata - */ - -CreateSSHCertIssuer.prototype['metadata'] = undefined; -/** - * SSH certificate issuer name - * @member {String} name - */ - -CreateSSHCertIssuer.prototype['name'] = undefined; -/** - * Signed certificates with principal, e.g example_role1,example_role2 - * @member {String} principals - */ - -CreateSSHCertIssuer.prototype['principals'] = undefined; -/** - * Bastion's SSH control API endpoint. E.g. https://my.bastion:9900 - * @member {String} secure-access-bastion-api - */ - -CreateSSHCertIssuer.prototype['secure-access-bastion-api'] = undefined; -/** - * Bastion's SSH server. E.g. my.bastion:22 - * @member {String} secure-access-bastion-ssh - */ - -CreateSSHCertIssuer.prototype['secure-access-bastion-ssh'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -CreateSSHCertIssuer.prototype['secure-access-enable'] = undefined; -/** - * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) - * @member {Array.} secure-access-host - */ - -CreateSSHCertIssuer.prototype['secure-access-host'] = undefined; -/** - * SSH username to connect to target server, must be in 'Allowed Users' list - * @member {String} secure-access-ssh-creds-user - */ - -CreateSSHCertIssuer.prototype['secure-access-ssh-creds-user'] = undefined; -/** - * Use internal SSH Bastion - * @member {Boolean} secure-access-use-internal-bastion - */ - -CreateSSHCertIssuer.prototype['secure-access-use-internal-bastion'] = undefined; -/** - * A key to sign the certificate with - * @member {String} signer-key-name - */ - -CreateSSHCertIssuer.prototype['signer-key-name'] = undefined; -/** - * List of the tags attached to this key - * @member {Array.} tag - */ - -CreateSSHCertIssuer.prototype['tag'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateSSHCertIssuer.prototype['token'] = undefined; -/** - * The requested Time To Live for the certificate, in seconds - * @member {Number} ttl - */ - -CreateSSHCertIssuer.prototype['ttl'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateSSHCertIssuer.prototype['uid-token'] = undefined; -var _default = CreateSSHCertIssuer; -exports["default"] = _default; - -/***/ }), - -/***/ 84148: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateSSHCertIssuerOutput model module. - * @module model/CreateSSHCertIssuerOutput - * @version 3.3.16 - */ -var CreateSSHCertIssuerOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateSSHCertIssuerOutput. - * @alias module:model/CreateSSHCertIssuerOutput - */ - function CreateSSHCertIssuerOutput() { - _classCallCheck(this, CreateSSHCertIssuerOutput); - - CreateSSHCertIssuerOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateSSHCertIssuerOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateSSHCertIssuerOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateSSHCertIssuerOutput} obj Optional instance to populate. - * @return {module:model/CreateSSHCertIssuerOutput} The populated CreateSSHCertIssuerOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateSSHCertIssuerOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return CreateSSHCertIssuerOutput; -}(); -/** - * @member {String} name - */ - - -CreateSSHCertIssuerOutput.prototype['name'] = undefined; -var _default = CreateSSHCertIssuerOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 70101: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateSSHTarget model module. - * @module model/CreateSSHTarget - * @version 3.3.16 - */ -var CreateSSHTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateSSHTarget. - * @alias module:model/CreateSSHTarget - * @param name {String} Target name - */ - function CreateSSHTarget(name) { - _classCallCheck(this, CreateSSHTarget); - - CreateSSHTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateSSHTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateSSHTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateSSHTarget} obj Optional instance to populate. - * @return {module:model/CreateSSHTarget} The populated CreateSSHTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateSSHTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('private-key')) { - obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); - } - - if (data.hasOwnProperty('private-key-password')) { - obj['private-key-password'] = _ApiClient["default"].convertToType(data['private-key-password'], 'String'); - } - - if (data.hasOwnProperty('ssh-password')) { - obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); - } - - if (data.hasOwnProperty('ssh-username')) { - obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateSSHTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -CreateSSHTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateSSHTarget.prototype['description'] = undefined; -/** - * SSH host name - * @member {String} host - */ - -CreateSSHTarget.prototype['host'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateSSHTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateSSHTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateSSHTarget.prototype['name'] = undefined; -/** - * SSH port - * @member {String} port - * @default '22' - */ - -CreateSSHTarget.prototype['port'] = '22'; -/** - * SSH private key - * @member {String} private-key - */ - -CreateSSHTarget.prototype['private-key'] = undefined; -/** - * SSH private key password - * @member {String} private-key-password - */ - -CreateSSHTarget.prototype['private-key-password'] = undefined; -/** - * SSH password to rotate - * @member {String} ssh-password - */ - -CreateSSHTarget.prototype['ssh-password'] = undefined; -/** - * SSH username - * @member {String} ssh-username - */ - -CreateSSHTarget.prototype['ssh-username'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateSSHTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateSSHTarget.prototype['uid-token'] = undefined; -var _default = CreateSSHTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 98560: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateSSHTargetOutput model module. - * @module model/CreateSSHTargetOutput - * @version 3.3.16 - */ -var CreateSSHTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateSSHTargetOutput. - * @alias module:model/CreateSSHTargetOutput - */ - function CreateSSHTargetOutput() { - _classCallCheck(this, CreateSSHTargetOutput); - - CreateSSHTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateSSHTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateSSHTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateSSHTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateSSHTargetOutput} The populated CreateSSHTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateSSHTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateSSHTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateSSHTargetOutput.prototype['target_id'] = undefined; -var _default = CreateSSHTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 89382: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateSalesforceTarget model module. - * @module model/CreateSalesforceTarget - * @version 3.3.16 - */ -var CreateSalesforceTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateSalesforceTarget. - * @alias module:model/CreateSalesforceTarget - * @param authFlow {String} type of the auth flow ('jwt' / 'user-password') - * @param clientId {String} Client ID of the oauth2 app to use for connecting to Salesforce - * @param email {String} The email of the user attached to the oauth2 app used for connecting to Salesforce - * @param name {String} Target name - * @param tenantUrl {String} Url of the Salesforce tenant - */ - function CreateSalesforceTarget(authFlow, clientId, email, name, tenantUrl) { - _classCallCheck(this, CreateSalesforceTarget); - - CreateSalesforceTarget.initialize(this, authFlow, clientId, email, name, tenantUrl); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateSalesforceTarget, null, [{ - key: "initialize", - value: function initialize(obj, authFlow, clientId, email, name, tenantUrl) { - obj['auth-flow'] = authFlow; - obj['client-id'] = clientId; - obj['email'] = email; - obj['name'] = name; - obj['tenant-url'] = tenantUrl; - } - /** - * Constructs a CreateSalesforceTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateSalesforceTarget} obj Optional instance to populate. - * @return {module:model/CreateSalesforceTarget} The populated CreateSalesforceTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateSalesforceTarget(); - - if (data.hasOwnProperty('app-private-key-data')) { - obj['app-private-key-data'] = _ApiClient["default"].convertToType(data['app-private-key-data'], 'String'); - } - - if (data.hasOwnProperty('auth-flow')) { - obj['auth-flow'] = _ApiClient["default"].convertToType(data['auth-flow'], 'String'); - } - - if (data.hasOwnProperty('ca-cert-data')) { - obj['ca-cert-data'] = _ApiClient["default"].convertToType(data['ca-cert-data'], 'String'); - } - - if (data.hasOwnProperty('ca-cert-name')) { - obj['ca-cert-name'] = _ApiClient["default"].convertToType(data['ca-cert-name'], 'String'); - } - - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); - } - - if (data.hasOwnProperty('client-secret')) { - obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('email')) { - obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('security-token')) { - obj['security-token'] = _ApiClient["default"].convertToType(data['security-token'], 'String'); - } - - if (data.hasOwnProperty('tenant-url')) { - obj['tenant-url'] = _ApiClient["default"].convertToType(data['tenant-url'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateSalesforceTarget; -}(); -/** - * Base64 encoded PEM of the connected app private key (relevant for JWT auth only) - * @member {String} app-private-key-data - */ - - -CreateSalesforceTarget.prototype['app-private-key-data'] = undefined; -/** - * type of the auth flow ('jwt' / 'user-password') - * @member {String} auth-flow - */ - -CreateSalesforceTarget.prototype['auth-flow'] = undefined; -/** - * Base64 encoded PEM cert to use when uploading a new key to Salesforce - * @member {String} ca-cert-data - */ - -CreateSalesforceTarget.prototype['ca-cert-data'] = undefined; -/** - * name of the certificate in Salesforce tenant to use when uploading new key - * @member {String} ca-cert-name - */ - -CreateSalesforceTarget.prototype['ca-cert-name'] = undefined; -/** - * Client ID of the oauth2 app to use for connecting to Salesforce - * @member {String} client-id - */ - -CreateSalesforceTarget.prototype['client-id'] = undefined; -/** - * Client secret of the oauth2 app to use for connecting to Salesforce (required for password flow) - * @member {String} client-secret - */ - -CreateSalesforceTarget.prototype['client-secret'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -CreateSalesforceTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateSalesforceTarget.prototype['description'] = undefined; -/** - * The email of the user attached to the oauth2 app used for connecting to Salesforce - * @member {String} email - */ - -CreateSalesforceTarget.prototype['email'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateSalesforceTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateSalesforceTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateSalesforceTarget.prototype['name'] = undefined; -/** - * The password of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow) - * @member {String} password - */ - -CreateSalesforceTarget.prototype['password'] = undefined; -/** - * The security token of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow) - * @member {String} security-token - */ - -CreateSalesforceTarget.prototype['security-token'] = undefined; -/** - * Url of the Salesforce tenant - * @member {String} tenant-url - */ - -CreateSalesforceTarget.prototype['tenant-url'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateSalesforceTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateSalesforceTarget.prototype['uid-token'] = undefined; -var _default = CreateSalesforceTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 63395: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateSalesforceTargetOutput model module. - * @module model/CreateSalesforceTargetOutput - * @version 3.3.16 - */ -var CreateSalesforceTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateSalesforceTargetOutput. - * @alias module:model/CreateSalesforceTargetOutput - */ - function CreateSalesforceTargetOutput() { - _classCallCheck(this, CreateSalesforceTargetOutput); - - CreateSalesforceTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateSalesforceTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateSalesforceTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateSalesforceTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateSalesforceTargetOutput} The populated CreateSalesforceTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateSalesforceTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateSalesforceTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateSalesforceTargetOutput.prototype['target_id'] = undefined; -var _default = CreateSalesforceTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 48156: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateSecret model module. - * @module model/CreateSecret - * @version 3.3.16 - */ -var CreateSecret = /*#__PURE__*/function () { - /** - * Constructs a new CreateSecret. - * @alias module:model/CreateSecret - * @param name {String} Secret name - * @param value {String} The secret value (only relevant for type 'generic') - */ - function CreateSecret(name, value) { - _classCallCheck(this, CreateSecret); - - CreateSecret.initialize(this, name, value); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateSecret, null, [{ - key: "initialize", - value: function initialize(obj, name, value) { - obj['name'] = name; - obj['value'] = value; - } - /** - * Constructs a CreateSecret from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateSecret} obj Optional instance to populate. - * @return {module:model/CreateSecret} The populated CreateSecret instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateSecret(); - - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); - } - - if (data.hasOwnProperty('custom-field')) { - obj['custom-field'] = _ApiClient["default"].convertToType(data['custom-field'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('inject-url')) { - obj['inject-url'] = _ApiClient["default"].convertToType(data['inject-url'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('multiline_value')) { - obj['multiline_value'] = _ApiClient["default"].convertToType(data['multiline_value'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-rdp-user')) { - obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); - } - - if (data.hasOwnProperty('secure-access-ssh-creds')) { - obj['secure-access-ssh-creds'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds'], 'String'); - } - - if (data.hasOwnProperty('secure-access-ssh-user')) { - obj['secure-access-ssh-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-user'], 'String'); - } - - if (data.hasOwnProperty('secure-access-url')) { - obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } - - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); - } - } - - return obj; - } - }]); - - return CreateSecret; -}(); -/** - * for personal password manager - * @member {String} accessibility - * @default 'regular' - */ - - -CreateSecret.prototype['accessibility'] = 'regular'; -/** - * For Password Management use, additional fields - * @member {Object.} custom-field - */ - -CreateSecret.prototype['custom-field'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -CreateSecret.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateSecret.prototype['description'] = undefined; -/** - * For Password Management use, reflect the website context - * @member {Array.} inject-url - */ - -CreateSecret.prototype['inject-url'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateSecret.prototype['json'] = false; -/** - * Deprecated - use description - * @member {String} metadata - */ - -CreateSecret.prototype['metadata'] = undefined; -/** - * The provided value is a multiline value (separated by '\\n') - * @member {Boolean} multiline_value - */ - -CreateSecret.prototype['multiline_value'] = undefined; -/** - * Secret name - * @member {String} name - */ - -CreateSecret.prototype['name'] = undefined; -/** - * For Password Management use, additional fields - * @member {String} password - */ - -CreateSecret.prototype['password'] = undefined; -/** - * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key - */ - -CreateSecret.prototype['protection_key'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -CreateSecret.prototype['secure-access-bastion-issuer'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -CreateSecret.prototype['secure-access-enable'] = undefined; -/** - * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) - * @member {Array.} secure-access-host - */ - -CreateSecret.prototype['secure-access-host'] = undefined; -/** - * Remote Desktop Username - * @member {String} secure-access-rdp-user - */ - -CreateSecret.prototype['secure-access-rdp-user'] = undefined; -/** - * Static-Secret values contains SSH Credentials, either Private Key or Password [password/private-key] - * @member {String} secure-access-ssh-creds - */ - -CreateSecret.prototype['secure-access-ssh-creds'] = undefined; -/** - * Override the SSH username as indicated in SSH Certificate Issuer - * @member {String} secure-access-ssh-user - */ - -CreateSecret.prototype['secure-access-ssh-user'] = undefined; -/** - * Destination URL to inject secrets - * @member {String} secure-access-url - */ - -CreateSecret.prototype['secure-access-url'] = undefined; -/** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false - */ - -CreateSecret.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false - */ - -CreateSecret.prototype['secure-access-web-proxy'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -CreateSecret.prototype['tags'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateSecret.prototype['token'] = undefined; -/** - * The secret sub type [generic/password] - * @member {String} type - * @default 'generic' - */ - -CreateSecret.prototype['type'] = 'generic'; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateSecret.prototype['uid-token'] = undefined; -/** - * For Password Management use - * @member {String} username - */ - -CreateSecret.prototype['username'] = undefined; -/** - * The secret value (only relevant for type 'generic') - * @member {String} value - */ - -CreateSecret.prototype['value'] = undefined; -var _default = CreateSecret; -exports["default"] = _default; - -/***/ }), - -/***/ 2397: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateSecretOutput model module. - * @module model/CreateSecretOutput - * @version 3.3.16 - */ -var CreateSecretOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateSecretOutput. - * @alias module:model/CreateSecretOutput - */ - function CreateSecretOutput() { - _classCallCheck(this, CreateSecretOutput); - - CreateSecretOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateSecretOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateSecretOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateSecretOutput} obj Optional instance to populate. - * @return {module:model/CreateSecretOutput} The populated CreateSecretOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateSecretOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return CreateSecretOutput; -}(); -/** - * @member {String} name - */ - - -CreateSecretOutput.prototype['name'] = undefined; -var _default = CreateSecretOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 24022: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateTargetItemAssocOutput model module. - * @module model/CreateTargetItemAssocOutput - * @version 3.3.16 - */ -var CreateTargetItemAssocOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateTargetItemAssocOutput. - * CreateTargetItemAssocOutput defines output of CreateTargetItemAssoc operation. - * @alias module:model/CreateTargetItemAssocOutput - */ - function CreateTargetItemAssocOutput() { - _classCallCheck(this, CreateTargetItemAssocOutput); - - CreateTargetItemAssocOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateTargetItemAssocOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateTargetItemAssocOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateTargetItemAssocOutput} obj Optional instance to populate. - * @return {module:model/CreateTargetItemAssocOutput} The populated CreateTargetItemAssocOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateTargetItemAssocOutput(); - - if (data.hasOwnProperty('assoc_id')) { - obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); - } - } - - return obj; - } - }]); - - return CreateTargetItemAssocOutput; -}(); -/** - * @member {String} assoc_id - */ - - -CreateTargetItemAssocOutput.prototype['assoc_id'] = undefined; -var _default = CreateTargetItemAssocOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 85747: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateTokenizer model module. - * @module model/CreateTokenizer - * @version 3.3.16 - */ -var CreateTokenizer = /*#__PURE__*/function () { - /** - * Constructs a new CreateTokenizer. - * createTokenizer is a command that creates a tokenizer item - * @alias module:model/CreateTokenizer - * @param name {String} Tokenizer name - * @param templateType {String} Which template type this tokenizer is used for [SSN,CreditCard,USPhoneNumber,Email,Regexp] - * @param tokenizerType {String} Tokenizer type - */ - function CreateTokenizer(name, templateType, tokenizerType) { - _classCallCheck(this, CreateTokenizer); - - CreateTokenizer.initialize(this, name, templateType, tokenizerType); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateTokenizer, null, [{ - key: "initialize", - value: function initialize(obj, name, templateType, tokenizerType) { - obj['name'] = name; - obj['template-type'] = templateType; - obj['tokenizer-type'] = tokenizerType; - } - /** - * Constructs a CreateTokenizer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateTokenizer} obj Optional instance to populate. - * @return {module:model/CreateTokenizer} The populated CreateTokenizer instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateTokenizer(); - - if (data.hasOwnProperty('alphabet')) { - obj['alphabet'] = _ApiClient["default"].convertToType(data['alphabet'], 'String'); - } - - if (data.hasOwnProperty('decoding-template')) { - obj['decoding-template'] = _ApiClient["default"].convertToType(data['decoding-template'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('encoding-template')) { - obj['encoding-template'] = _ApiClient["default"].convertToType(data['encoding-template'], 'String'); - } - - if (data.hasOwnProperty('encryption-key-name')) { - obj['encryption-key-name'] = _ApiClient["default"].convertToType(data['encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('pattern')) { - obj['pattern'] = _ApiClient["default"].convertToType(data['pattern'], 'String'); - } - - if (data.hasOwnProperty('tag')) { - obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); - } - - if (data.hasOwnProperty('template-type')) { - obj['template-type'] = _ApiClient["default"].convertToType(data['template-type'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('tokenizer-type')) { - obj['tokenizer-type'] = _ApiClient["default"].convertToType(data['tokenizer-type'], 'String'); - } - - if (data.hasOwnProperty('tweak-type')) { - obj['tweak-type'] = _ApiClient["default"].convertToType(data['tweak-type'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateTokenizer; -}(); -/** - * Alphabet to use in regexp vaultless tokenization - * @member {String} alphabet - */ - - -CreateTokenizer.prototype['alphabet'] = undefined; -/** - * The Decoding output template to use in regexp vaultless tokenization - * @member {String} decoding-template - */ - -CreateTokenizer.prototype['decoding-template'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -CreateTokenizer.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateTokenizer.prototype['description'] = undefined; -/** - * The Encoding output template to use in regexp vaultless tokenization - * @member {String} encoding-template - */ - -CreateTokenizer.prototype['encoding-template'] = undefined; -/** - * AES key name to use in vaultless tokenization - * @member {String} encryption-key-name - */ - -CreateTokenizer.prototype['encryption-key-name'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateTokenizer.prototype['json'] = false; -/** - * Deprecated - use description - * @member {String} metadata - */ - -CreateTokenizer.prototype['metadata'] = undefined; -/** - * Tokenizer name - * @member {String} name - */ - -CreateTokenizer.prototype['name'] = undefined; -/** - * Pattern to use in regexp vaultless tokenization - * @member {String} pattern - */ - -CreateTokenizer.prototype['pattern'] = undefined; -/** - * List of the tags attached to this key - * @member {Array.} tag - */ - -CreateTokenizer.prototype['tag'] = undefined; -/** - * Which template type this tokenizer is used for [SSN,CreditCard,USPhoneNumber,Email,Regexp] - * @member {String} template-type - */ - -CreateTokenizer.prototype['template-type'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateTokenizer.prototype['token'] = undefined; -/** - * Tokenizer type - * @member {String} tokenizer-type - * @default 'vaultless' - */ - -CreateTokenizer.prototype['tokenizer-type'] = 'vaultless'; -/** - * The tweak type to use in vaultless tokenization [Supplied, Generated, Internal, Masking] - * @member {String} tweak-type - */ - -CreateTokenizer.prototype['tweak-type'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateTokenizer.prototype['uid-token'] = undefined; -var _default = CreateTokenizer; -exports["default"] = _default; - -/***/ }), - -/***/ 77602: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateTokenizerOutput model module. - * @module model/CreateTokenizerOutput - * @version 3.3.16 - */ -var CreateTokenizerOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateTokenizerOutput. - * @alias module:model/CreateTokenizerOutput - */ - function CreateTokenizerOutput() { - _classCallCheck(this, CreateTokenizerOutput); - - CreateTokenizerOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateTokenizerOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateTokenizerOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateTokenizerOutput} obj Optional instance to populate. - * @return {module:model/CreateTokenizerOutput} The populated CreateTokenizerOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateTokenizerOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return CreateTokenizerOutput; -}(); -/** - * @member {String} name - */ - - -CreateTokenizerOutput.prototype['name'] = undefined; -var _default = CreateTokenizerOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 95805: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateWebTarget model module. - * @module model/CreateWebTarget - * @version 3.3.16 - */ -var CreateWebTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateWebTarget. - * @alias module:model/CreateWebTarget - * @param name {String} Target name - */ - function CreateWebTarget(name) { - _classCallCheck(this, CreateWebTarget); - - CreateWebTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateWebTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a CreateWebTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateWebTarget} obj Optional instance to populate. - * @return {module:model/CreateWebTarget} The populated CreateWebTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateWebTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - } - - return obj; - } - }]); - - return CreateWebTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -CreateWebTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateWebTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateWebTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateWebTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateWebTarget.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateWebTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateWebTarget.prototype['uid-token'] = undefined; -/** - * The url - * @member {String} url - */ - -CreateWebTarget.prototype['url'] = undefined; -var _default = CreateWebTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 38200: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateWebTargetOutput model module. - * @module model/CreateWebTargetOutput - * @version 3.3.16 - */ -var CreateWebTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateWebTargetOutput. - * @alias module:model/CreateWebTargetOutput - */ - function CreateWebTargetOutput() { - _classCallCheck(this, CreateWebTargetOutput); - - CreateWebTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateWebTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateWebTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateWebTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateWebTargetOutput} The populated CreateWebTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateWebTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateWebTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateWebTargetOutput.prototype['target_id'] = undefined; -var _default = CreateWebTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 61054: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateWindowsTarget model module. - * @module model/CreateWindowsTarget - * @version 3.3.16 - */ -var CreateWindowsTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateWindowsTarget. - * @alias module:model/CreateWindowsTarget - * @param hostname {String} Server hostname - * @param name {String} Target name - * @param password {String} Privileged user password - * @param username {String} Privileged username - */ - function CreateWindowsTarget(hostname, name, password, username) { - _classCallCheck(this, CreateWindowsTarget); - - CreateWindowsTarget.initialize(this, hostname, name, password, username); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateWindowsTarget, null, [{ - key: "initialize", - value: function initialize(obj, hostname, name, password, username) { - obj['hostname'] = hostname; - obj['name'] = name; - obj['password'] = password; - obj['username'] = username; - } - /** - * Constructs a CreateWindowsTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateWindowsTarget} obj Optional instance to populate. - * @return {module:model/CreateWindowsTarget} The populated CreateWindowsTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateWindowsTarget(); - - if (data.hasOwnProperty('certificate')) { - obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('domain')) { - obj['domain'] = _ApiClient["default"].convertToType(data['domain'], 'String'); - } - - if (data.hasOwnProperty('hostname')) { - obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('use-tls')) { - obj['use-tls'] = _ApiClient["default"].convertToType(data['use-tls'], 'String'); - } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } - } - - return obj; - } - }]); - - return CreateWindowsTarget; -}(); -/** - * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) - * @member {String} certificate - */ - - -CreateWindowsTarget.prototype['certificate'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateWindowsTarget.prototype['description'] = undefined; -/** - * User domain name - * @member {String} domain - */ - -CreateWindowsTarget.prototype['domain'] = undefined; -/** - * Server hostname - * @member {String} hostname - */ - -CreateWindowsTarget.prototype['hostname'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateWindowsTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateWindowsTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateWindowsTarget.prototype['name'] = undefined; -/** - * Privileged user password - * @member {String} password - */ - -CreateWindowsTarget.prototype['password'] = undefined; -/** - * Server WinRM port - * @member {String} port - * @default '5986' - */ - -CreateWindowsTarget.prototype['port'] = '5986'; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateWindowsTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateWindowsTarget.prototype['uid-token'] = undefined; -/** - * Enable/Disable TLS for WinRM over HTTPS [true/false] - * @member {String} use-tls - * @default 'true' - */ - -CreateWindowsTarget.prototype['use-tls'] = 'true'; -/** - * Privileged username - * @member {String} username - */ - -CreateWindowsTarget.prototype['username'] = undefined; -var _default = CreateWindowsTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 76267: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateWindowsTargetOutput model module. - * @module model/CreateWindowsTargetOutput - * @version 3.3.16 - */ -var CreateWindowsTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateWindowsTargetOutput. - * @alias module:model/CreateWindowsTargetOutput - */ - function CreateWindowsTargetOutput() { - _classCallCheck(this, CreateWindowsTargetOutput); - - CreateWindowsTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateWindowsTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateWindowsTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateWindowsTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateWindowsTargetOutput} The populated CreateWindowsTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateWindowsTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateWindowsTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateWindowsTargetOutput.prototype['target_id'] = undefined; -var _default = CreateWindowsTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 84899: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateZeroSSLTarget model module. - * @module model/CreateZeroSSLTarget - * @version 3.3.16 - */ -var CreateZeroSSLTarget = /*#__PURE__*/function () { - /** - * Constructs a new CreateZeroSSLTarget. - * @alias module:model/CreateZeroSSLTarget - * @param apiKey {String} API Key of the ZeroSSLTarget account - * @param imapFqdn {String} ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS - * @param imapPassword {String} ImapPassword to access the IMAP service - * @param imapUsername {String} ImapUsername to access the IMAP service - * @param name {String} Target name - */ - function CreateZeroSSLTarget(apiKey, imapFqdn, imapPassword, imapUsername, name) { - _classCallCheck(this, CreateZeroSSLTarget); - - CreateZeroSSLTarget.initialize(this, apiKey, imapFqdn, imapPassword, imapUsername, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateZeroSSLTarget, null, [{ - key: "initialize", - value: function initialize(obj, apiKey, imapFqdn, imapPassword, imapUsername, name) { - obj['api-key'] = apiKey; - obj['imap-fqdn'] = imapFqdn; - obj['imap-password'] = imapPassword; - obj['imap-username'] = imapUsername; - obj['name'] = name; - } - /** - * Constructs a CreateZeroSSLTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateZeroSSLTarget} obj Optional instance to populate. - * @return {module:model/CreateZeroSSLTarget} The populated CreateZeroSSLTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateZeroSSLTarget(); - - if (data.hasOwnProperty('api-key')) { - obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('imap-fqdn')) { - obj['imap-fqdn'] = _ApiClient["default"].convertToType(data['imap-fqdn'], 'String'); - } - - if (data.hasOwnProperty('imap-password')) { - obj['imap-password'] = _ApiClient["default"].convertToType(data['imap-password'], 'String'); - } - - if (data.hasOwnProperty('imap-port')) { - obj['imap-port'] = _ApiClient["default"].convertToType(data['imap-port'], 'String'); - } - - if (data.hasOwnProperty('imap-target-email')) { - obj['imap-target-email'] = _ApiClient["default"].convertToType(data['imap-target-email'], 'String'); - } - - if (data.hasOwnProperty('imap-username')) { - obj['imap-username'] = _ApiClient["default"].convertToType(data['imap-username'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return CreateZeroSSLTarget; -}(); -/** - * API Key of the ZeroSSLTarget account - * @member {String} api-key - */ - - -CreateZeroSSLTarget.prototype['api-key'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -CreateZeroSSLTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -CreateZeroSSLTarget.prototype['description'] = undefined; -/** - * ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS - * @member {String} imap-fqdn - */ - -CreateZeroSSLTarget.prototype['imap-fqdn'] = undefined; -/** - * ImapPassword to access the IMAP service - * @member {String} imap-password - */ - -CreateZeroSSLTarget.prototype['imap-password'] = undefined; -/** - * ImapPort of the IMAP service - * @member {String} imap-port - * @default '993' - */ - -CreateZeroSSLTarget.prototype['imap-port'] = '993'; -/** - * ImapValidationEmail to use when asking ZeroSSL to send a validation email, if empty will user imap-username - * @member {String} imap-target-email - */ - -CreateZeroSSLTarget.prototype['imap-target-email'] = undefined; -/** - * ImapUsername to access the IMAP service - * @member {String} imap-username - */ - -CreateZeroSSLTarget.prototype['imap-username'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -CreateZeroSSLTarget.prototype['json'] = false; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -CreateZeroSSLTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -CreateZeroSSLTarget.prototype['name'] = undefined; -/** - * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. - * @member {String} timeout - * @default '5m' - */ - -CreateZeroSSLTarget.prototype['timeout'] = '5m'; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -CreateZeroSSLTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -CreateZeroSSLTarget.prototype['uid-token'] = undefined; -var _default = CreateZeroSSLTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 43026: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CreateZeroSSLTargetOutput model module. - * @module model/CreateZeroSSLTargetOutput - * @version 3.3.16 - */ -var CreateZeroSSLTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new CreateZeroSSLTargetOutput. - * @alias module:model/CreateZeroSSLTargetOutput - */ - function CreateZeroSSLTargetOutput() { - _classCallCheck(this, CreateZeroSSLTargetOutput); - - CreateZeroSSLTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CreateZeroSSLTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CreateZeroSSLTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateZeroSSLTargetOutput} obj Optional instance to populate. - * @return {module:model/CreateZeroSSLTargetOutput} The populated CreateZeroSSLTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateZeroSSLTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return CreateZeroSSLTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -CreateZeroSSLTargetOutput.prototype['target_id'] = undefined; -var _default = CreateZeroSSLTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 70142: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CustomTargetDetails model module. - * @module model/CustomTargetDetails - * @version 3.3.16 - */ -var CustomTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new CustomTargetDetails. - * @alias module:model/CustomTargetDetails - */ - function CustomTargetDetails() { - _classCallCheck(this, CustomTargetDetails); - - CustomTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CustomTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CustomTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CustomTargetDetails} obj Optional instance to populate. - * @return {module:model/CustomTargetDetails} The populated CustomTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CustomTargetDetails(); - - if (data.hasOwnProperty('payload')) { - obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); - } - } - - return obj; - } - }]); - - return CustomTargetDetails; -}(); -/** - * @member {String} payload - */ - - -CustomTargetDetails.prototype['payload'] = undefined; -var _default = CustomTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 21240: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CustomerFragment model module. - * @module model/CustomerFragment - * @version 3.3.16 - */ -var CustomerFragment = /*#__PURE__*/function () { - /** - * Constructs a new CustomerFragment. - * @alias module:model/CustomerFragment - */ - function CustomerFragment() { - _classCallCheck(this, CustomerFragment); - - CustomerFragment.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CustomerFragment, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CustomerFragment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CustomerFragment} obj Optional instance to populate. - * @return {module:model/CustomerFragment} The populated CustomerFragment instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CustomerFragment(); - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); - } - } - - return obj; - } - }]); - - return CustomerFragment; -}(); -/** - * @member {String} description - */ - - -CustomerFragment.prototype['description'] = undefined; -/** - * @member {String} id - */ - -CustomerFragment.prototype['id'] = undefined; -/** - * @member {String} value - */ - -CustomerFragment.prototype['value'] = undefined; -var _default = CustomerFragment; -exports["default"] = _default; - -/***/ }), - -/***/ 45149: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _CustomerFragment = _interopRequireDefault(__nccwpck_require__(21240)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CustomerFragmentsJson model module. - * @module model/CustomerFragmentsJson - * @version 3.3.16 - */ -var CustomerFragmentsJson = /*#__PURE__*/function () { - /** - * Constructs a new CustomerFragmentsJson. - * @alias module:model/CustomerFragmentsJson - */ - function CustomerFragmentsJson() { - _classCallCheck(this, CustomerFragmentsJson); - - CustomerFragmentsJson.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CustomerFragmentsJson, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CustomerFragmentsJson from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CustomerFragmentsJson} obj Optional instance to populate. - * @return {module:model/CustomerFragmentsJson} The populated CustomerFragmentsJson instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CustomerFragmentsJson(); - - if (data.hasOwnProperty('customer_fragments')) { - obj['customer_fragments'] = _ApiClient["default"].convertToType(data['customer_fragments'], [_CustomerFragment["default"]]); - } - } - - return obj; - } - }]); - - return CustomerFragmentsJson; -}(); -/** - * @member {Array.} customer_fragments - */ - - -CustomerFragmentsJson.prototype['customer_fragments'] = undefined; -var _default = CustomerFragmentsJson; -exports["default"] = _default; - -/***/ }), - -/***/ 37009: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The CustomerFullAddress model module. - * @module model/CustomerFullAddress - * @version 3.3.16 - */ -var CustomerFullAddress = /*#__PURE__*/function () { - /** - * Constructs a new CustomerFullAddress. - * @alias module:model/CustomerFullAddress - */ - function CustomerFullAddress() { - _classCallCheck(this, CustomerFullAddress); - - CustomerFullAddress.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(CustomerFullAddress, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a CustomerFullAddress from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CustomerFullAddress} obj Optional instance to populate. - * @return {module:model/CustomerFullAddress} The populated CustomerFullAddress instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CustomerFullAddress(); - - if (data.hasOwnProperty('city')) { - obj['city'] = _ApiClient["default"].convertToType(data['city'], 'String'); - } - - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); - } - - if (data.hasOwnProperty('postal_code')) { - obj['postal_code'] = _ApiClient["default"].convertToType(data['postal_code'], 'String'); - } - - if (data.hasOwnProperty('street')) { - obj['street'] = _ApiClient["default"].convertToType(data['street'], 'String'); - } - } - - return obj; - } - }]); - - return CustomerFullAddress; -}(); -/** - * @member {String} city - */ - - -CustomerFullAddress.prototype['city'] = undefined; -/** - * @member {String} country - */ - -CustomerFullAddress.prototype['country'] = undefined; -/** - * @member {String} postal_code - */ - -CustomerFullAddress.prototype['postal_code'] = undefined; -/** - * @member {String} street - */ - -CustomerFullAddress.prototype['street'] = undefined; -var _default = CustomerFullAddress; -exports["default"] = _default; - -/***/ }), - -/***/ 50601: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _ItemTargetAssociation = _interopRequireDefault(__nccwpck_require__(24223)); - -var _SecureRemoteAccess = _interopRequireDefault(__nccwpck_require__(66513)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DSProducerDetails model module. - * @module model/DSProducerDetails - * @version 3.3.16 - */ -var DSProducerDetails = /*#__PURE__*/function () { - /** - * Constructs a new DSProducerDetails. - * @alias module:model/DSProducerDetails - */ - function DSProducerDetails() { - _classCallCheck(this, DSProducerDetails); - - DSProducerDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DSProducerDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DSProducerDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DSProducerDetails} obj Optional instance to populate. - * @return {module:model/DSProducerDetails} The populated DSProducerDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DSProducerDetails(); - - if (data.hasOwnProperty('access_token_manager_id')) { - obj['access_token_manager_id'] = _ApiClient["default"].convertToType(data['access_token_manager_id'], 'String'); - } - - if (data.hasOwnProperty('acl_rules')) { - obj['acl_rules'] = _ApiClient["default"].convertToType(data['acl_rules'], ['String']); - } - - if (data.hasOwnProperty('active')) { - obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean'); - } - - if (data.hasOwnProperty('admin_name')) { - obj['admin_name'] = _ApiClient["default"].convertToType(data['admin_name'], 'String'); - } - - if (data.hasOwnProperty('admin_pwd')) { - obj['admin_pwd'] = _ApiClient["default"].convertToType(data['admin_pwd'], 'String'); - } - - if (data.hasOwnProperty('admin_rotation_interval_days')) { - obj['admin_rotation_interval_days'] = _ApiClient["default"].convertToType(data['admin_rotation_interval_days'], 'Number'); - } - - if (data.hasOwnProperty('administrative_port')) { - obj['administrative_port'] = _ApiClient["default"].convertToType(data['administrative_port'], 'String'); - } - - if (data.hasOwnProperty('artifactory_admin_apikey')) { - obj['artifactory_admin_apikey'] = _ApiClient["default"].convertToType(data['artifactory_admin_apikey'], 'String'); - } - - if (data.hasOwnProperty('artifactory_admin_username')) { - obj['artifactory_admin_username'] = _ApiClient["default"].convertToType(data['artifactory_admin_username'], 'String'); - } - - if (data.hasOwnProperty('artifactory_base_url')) { - obj['artifactory_base_url'] = _ApiClient["default"].convertToType(data['artifactory_base_url'], 'String'); - } - - if (data.hasOwnProperty('artifactory_token_audience')) { - obj['artifactory_token_audience'] = _ApiClient["default"].convertToType(data['artifactory_token_audience'], 'String'); - } - - if (data.hasOwnProperty('artifactory_token_scope')) { - obj['artifactory_token_scope'] = _ApiClient["default"].convertToType(data['artifactory_token_scope'], 'String'); - } - - if (data.hasOwnProperty('authorization_port')) { - obj['authorization_port'] = _ApiClient["default"].convertToType(data['authorization_port'], 'String'); - } - - if (data.hasOwnProperty('aws_access_key_id')) { - obj['aws_access_key_id'] = _ApiClient["default"].convertToType(data['aws_access_key_id'], 'String'); - } - - if (data.hasOwnProperty('aws_access_mode')) { - obj['aws_access_mode'] = _ApiClient["default"].convertToType(data['aws_access_mode'], 'String'); - } - - if (data.hasOwnProperty('aws_region')) { - obj['aws_region'] = _ApiClient["default"].convertToType(data['aws_region'], 'String'); - } - - if (data.hasOwnProperty('aws_role_arns')) { - obj['aws_role_arns'] = _ApiClient["default"].convertToType(data['aws_role_arns'], 'String'); - } - - if (data.hasOwnProperty('aws_secret_access_key')) { - obj['aws_secret_access_key'] = _ApiClient["default"].convertToType(data['aws_secret_access_key'], 'String'); - } - - if (data.hasOwnProperty('aws_session_token')) { - obj['aws_session_token'] = _ApiClient["default"].convertToType(data['aws_session_token'], 'String'); - } - - if (data.hasOwnProperty('aws_user_console_access')) { - obj['aws_user_console_access'] = _ApiClient["default"].convertToType(data['aws_user_console_access'], 'Boolean'); - } - - if (data.hasOwnProperty('aws_user_groups')) { - obj['aws_user_groups'] = _ApiClient["default"].convertToType(data['aws_user_groups'], 'String'); - } - - if (data.hasOwnProperty('aws_user_policies')) { - obj['aws_user_policies'] = _ApiClient["default"].convertToType(data['aws_user_policies'], 'String'); - } - - if (data.hasOwnProperty('aws_user_programmatic_access')) { - obj['aws_user_programmatic_access'] = _ApiClient["default"].convertToType(data['aws_user_programmatic_access'], 'Boolean'); - } - - if (data.hasOwnProperty('azure_app_object_id')) { - obj['azure_app_object_id'] = _ApiClient["default"].convertToType(data['azure_app_object_id'], 'String'); - } - - if (data.hasOwnProperty('azure_client_id')) { - obj['azure_client_id'] = _ApiClient["default"].convertToType(data['azure_client_id'], 'String'); - } - - if (data.hasOwnProperty('azure_client_secret')) { - obj['azure_client_secret'] = _ApiClient["default"].convertToType(data['azure_client_secret'], 'String'); - } - - if (data.hasOwnProperty('azure_fixed_user_name_sub_claim_key')) { - obj['azure_fixed_user_name_sub_claim_key'] = _ApiClient["default"].convertToType(data['azure_fixed_user_name_sub_claim_key'], 'String'); - } - - if (data.hasOwnProperty('azure_fixed_user_only')) { - obj['azure_fixed_user_only'] = _ApiClient["default"].convertToType(data['azure_fixed_user_only'], 'Boolean'); - } - - if (data.hasOwnProperty('azure_resource_group_name')) { - obj['azure_resource_group_name'] = _ApiClient["default"].convertToType(data['azure_resource_group_name'], 'String'); - } - - if (data.hasOwnProperty('azure_resource_name')) { - obj['azure_resource_name'] = _ApiClient["default"].convertToType(data['azure_resource_name'], 'String'); - } - - if (data.hasOwnProperty('azure_subscription_id')) { - obj['azure_subscription_id'] = _ApiClient["default"].convertToType(data['azure_subscription_id'], 'String'); - } - - if (data.hasOwnProperty('azure_tenant_id')) { - obj['azure_tenant_id'] = _ApiClient["default"].convertToType(data['azure_tenant_id'], 'String'); - } - - if (data.hasOwnProperty('azure_user_groups_obj_id')) { - obj['azure_user_groups_obj_id'] = _ApiClient["default"].convertToType(data['azure_user_groups_obj_id'], 'String'); - } - - if (data.hasOwnProperty('azure_user_portal_access')) { - obj['azure_user_portal_access'] = _ApiClient["default"].convertToType(data['azure_user_portal_access'], 'Boolean'); - } - - if (data.hasOwnProperty('azure_user_programmatic_access')) { - obj['azure_user_programmatic_access'] = _ApiClient["default"].convertToType(data['azure_user_programmatic_access'], 'Boolean'); - } - - if (data.hasOwnProperty('azure_user_roles_template_id')) { - obj['azure_user_roles_template_id'] = _ApiClient["default"].convertToType(data['azure_user_roles_template_id'], 'String'); - } - - if (data.hasOwnProperty('cassandra_creation_statements')) { - obj['cassandra_creation_statements'] = _ApiClient["default"].convertToType(data['cassandra_creation_statements'], 'String'); - } - - if (data.hasOwnProperty('chef_organizations')) { - obj['chef_organizations'] = _ApiClient["default"].convertToType(data['chef_organizations'], 'String'); - } - - if (data.hasOwnProperty('chef_server_access_mode')) { - obj['chef_server_access_mode'] = _ApiClient["default"].convertToType(data['chef_server_access_mode'], 'String'); - } - - if (data.hasOwnProperty('chef_server_host_name')) { - obj['chef_server_host_name'] = _ApiClient["default"].convertToType(data['chef_server_host_name'], 'String'); - } - - if (data.hasOwnProperty('chef_server_key')) { - obj['chef_server_key'] = _ApiClient["default"].convertToType(data['chef_server_key'], 'String'); - } - - if (data.hasOwnProperty('chef_server_port')) { - obj['chef_server_port'] = _ApiClient["default"].convertToType(data['chef_server_port'], 'String'); - } - - if (data.hasOwnProperty('chef_server_url')) { - obj['chef_server_url'] = _ApiClient["default"].convertToType(data['chef_server_url'], 'String'); - } - - if (data.hasOwnProperty('chef_server_username')) { - obj['chef_server_username'] = _ApiClient["default"].convertToType(data['chef_server_username'], 'String'); - } - - if (data.hasOwnProperty('chef_skip_ssl')) { - obj['chef_skip_ssl'] = _ApiClient["default"].convertToType(data['chef_skip_ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('client_authentication_type')) { - obj['client_authentication_type'] = _ApiClient["default"].convertToType(data['client_authentication_type'], 'String'); - } - - if (data.hasOwnProperty('create_sync_url')) { - obj['create_sync_url'] = _ApiClient["default"].convertToType(data['create_sync_url'], 'String'); - } - - if (data.hasOwnProperty('db_host_name')) { - obj['db_host_name'] = _ApiClient["default"].convertToType(data['db_host_name'], 'String'); - } - - if (data.hasOwnProperty('db_isolation_level')) { - obj['db_isolation_level'] = _ApiClient["default"].convertToType(data['db_isolation_level'], 'String'); - } - - if (data.hasOwnProperty('db_max_idle_conns')) { - obj['db_max_idle_conns'] = _ApiClient["default"].convertToType(data['db_max_idle_conns'], 'String'); - } - - if (data.hasOwnProperty('db_max_open_conns')) { - obj['db_max_open_conns'] = _ApiClient["default"].convertToType(data['db_max_open_conns'], 'String'); - } - - if (data.hasOwnProperty('db_name')) { - obj['db_name'] = _ApiClient["default"].convertToType(data['db_name'], 'String'); - } - - if (data.hasOwnProperty('db_port')) { - obj['db_port'] = _ApiClient["default"].convertToType(data['db_port'], 'String'); - } - - if (data.hasOwnProperty('db_private_key')) { - obj['db_private_key'] = _ApiClient["default"].convertToType(data['db_private_key'], 'String'); - } - - if (data.hasOwnProperty('db_private_key_passphrase')) { - obj['db_private_key_passphrase'] = _ApiClient["default"].convertToType(data['db_private_key_passphrase'], 'String'); - } - - if (data.hasOwnProperty('db_pwd')) { - obj['db_pwd'] = _ApiClient["default"].convertToType(data['db_pwd'], 'String'); - } - - if (data.hasOwnProperty('db_server_certificates')) { - obj['db_server_certificates'] = _ApiClient["default"].convertToType(data['db_server_certificates'], 'String'); - } - - if (data.hasOwnProperty('db_server_name')) { - obj['db_server_name'] = _ApiClient["default"].convertToType(data['db_server_name'], 'String'); - } - - if (data.hasOwnProperty('db_user_name')) { - obj['db_user_name'] = _ApiClient["default"].convertToType(data['db_user_name'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'Boolean'); - } - - if (data.hasOwnProperty('dynamic_secret_id')) { - obj['dynamic_secret_id'] = _ApiClient["default"].convertToType(data['dynamic_secret_id'], 'Number'); - } - - if (data.hasOwnProperty('dynamic_secret_key')) { - obj['dynamic_secret_key'] = _ApiClient["default"].convertToType(data['dynamic_secret_key'], 'String'); - } - - if (data.hasOwnProperty('dynamic_secret_name')) { - obj['dynamic_secret_name'] = _ApiClient["default"].convertToType(data['dynamic_secret_name'], 'String'); - } - - if (data.hasOwnProperty('dynamic_secret_type')) { - obj['dynamic_secret_type'] = _ApiClient["default"].convertToType(data['dynamic_secret_type'], 'String'); - } - - if (data.hasOwnProperty('eks_access_key_id')) { - obj['eks_access_key_id'] = _ApiClient["default"].convertToType(data['eks_access_key_id'], 'String'); - } - - if (data.hasOwnProperty('eks_assume_role')) { - obj['eks_assume_role'] = _ApiClient["default"].convertToType(data['eks_assume_role'], 'String'); - } - - if (data.hasOwnProperty('eks_cluster_ca_certificate')) { - obj['eks_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['eks_cluster_ca_certificate'], 'String'); - } - - if (data.hasOwnProperty('eks_cluster_endpoint')) { - obj['eks_cluster_endpoint'] = _ApiClient["default"].convertToType(data['eks_cluster_endpoint'], 'String'); - } - - if (data.hasOwnProperty('eks_cluster_name')) { - obj['eks_cluster_name'] = _ApiClient["default"].convertToType(data['eks_cluster_name'], 'String'); - } - - if (data.hasOwnProperty('eks_region')) { - obj['eks_region'] = _ApiClient["default"].convertToType(data['eks_region'], 'String'); - } - - if (data.hasOwnProperty('eks_secret_access_key')) { - obj['eks_secret_access_key'] = _ApiClient["default"].convertToType(data['eks_secret_access_key'], 'String'); - } - - if (data.hasOwnProperty('enable_admin_rotation')) { - obj['enable_admin_rotation'] = _ApiClient["default"].convertToType(data['enable_admin_rotation'], 'Boolean'); - } - - if (data.hasOwnProperty('enforce_replay_prevention')) { - obj['enforce_replay_prevention'] = _ApiClient["default"].convertToType(data['enforce_replay_prevention'], 'Boolean'); - } - - if (data.hasOwnProperty('externally_provided_user')) { - obj['externally_provided_user'] = _ApiClient["default"].convertToType(data['externally_provided_user'], 'String'); - } - - if (data.hasOwnProperty('failure_message')) { - obj['failure_message'] = _ApiClient["default"].convertToType(data['failure_message'], 'String'); - } - - if (data.hasOwnProperty('fixed_user_only')) { - obj['fixed_user_only'] = _ApiClient["default"].convertToType(data['fixed_user_only'], 'String'); - } - - if (data.hasOwnProperty('gcp_key_algo')) { - obj['gcp_key_algo'] = _ApiClient["default"].convertToType(data['gcp_key_algo'], 'String'); - } - - if (data.hasOwnProperty('gcp_role_bindings')) { - obj['gcp_role_bindings'] = _ApiClient["default"].convertToType(data['gcp_role_bindings'], { - 'String': ['String'] - }); - } - - if (data.hasOwnProperty('gcp_service_account_email')) { - obj['gcp_service_account_email'] = _ApiClient["default"].convertToType(data['gcp_service_account_email'], 'String'); - } - - if (data.hasOwnProperty('gcp_service_account_key')) { - obj['gcp_service_account_key'] = _ApiClient["default"].convertToType(data['gcp_service_account_key'], 'String'); - } - - if (data.hasOwnProperty('gcp_service_account_key_base64')) { - obj['gcp_service_account_key_base64'] = _ApiClient["default"].convertToType(data['gcp_service_account_key_base64'], 'String'); - } - - if (data.hasOwnProperty('gcp_service_account_type')) { - obj['gcp_service_account_type'] = _ApiClient["default"].convertToType(data['gcp_service_account_type'], 'String'); - } - - if (data.hasOwnProperty('gcp_tmp_service_account_name')) { - obj['gcp_tmp_service_account_name'] = _ApiClient["default"].convertToType(data['gcp_tmp_service_account_name'], 'String'); - } - - if (data.hasOwnProperty('gcp_token_lifetime')) { - obj['gcp_token_lifetime'] = _ApiClient["default"].convertToType(data['gcp_token_lifetime'], 'String'); - } - - if (data.hasOwnProperty('gcp_token_scope')) { - obj['gcp_token_scope'] = _ApiClient["default"].convertToType(data['gcp_token_scope'], 'String'); - } - - if (data.hasOwnProperty('gcp_token_type')) { - obj['gcp_token_type'] = _ApiClient["default"].convertToType(data['gcp_token_type'], 'String'); - } - - if (data.hasOwnProperty('github_app_id')) { - obj['github_app_id'] = _ApiClient["default"].convertToType(data['github_app_id'], 'Number'); - } - - if (data.hasOwnProperty('github_app_private_key')) { - obj['github_app_private_key'] = _ApiClient["default"].convertToType(data['github_app_private_key'], 'String'); - } - - if (data.hasOwnProperty('github_base_url')) { - obj['github_base_url'] = _ApiClient["default"].convertToType(data['github_base_url'], 'String'); - } - - if (data.hasOwnProperty('github_installation_id')) { - obj['github_installation_id'] = _ApiClient["default"].convertToType(data['github_installation_id'], 'Number'); - } - - if (data.hasOwnProperty('github_installation_token_permissions')) { - obj['github_installation_token_permissions'] = _ApiClient["default"].convertToType(data['github_installation_token_permissions'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('github_installation_token_repositories')) { - obj['github_installation_token_repositories'] = _ApiClient["default"].convertToType(data['github_installation_token_repositories'], ['String']); - } - - if (data.hasOwnProperty('github_installation_token_repositories_ids')) { - obj['github_installation_token_repositories_ids'] = _ApiClient["default"].convertToType(data['github_installation_token_repositories_ids'], ['Number']); - } - - if (data.hasOwnProperty('github_repository_path')) { - obj['github_repository_path'] = _ApiClient["default"].convertToType(data['github_repository_path'], 'String'); - } - - if (data.hasOwnProperty('gke_cluster_ca_certificate')) { - obj['gke_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['gke_cluster_ca_certificate'], 'String'); - } - - if (data.hasOwnProperty('gke_cluster_endpoint')) { - obj['gke_cluster_endpoint'] = _ApiClient["default"].convertToType(data['gke_cluster_endpoint'], 'String'); - } - - if (data.hasOwnProperty('gke_cluster_name')) { - obj['gke_cluster_name'] = _ApiClient["default"].convertToType(data['gke_cluster_name'], 'String'); - } - - if (data.hasOwnProperty('gke_service_account_key')) { - obj['gke_service_account_key'] = _ApiClient["default"].convertToType(data['gke_service_account_key'], 'String'); - } - - if (data.hasOwnProperty('gke_service_account_name')) { - obj['gke_service_account_name'] = _ApiClient["default"].convertToType(data['gke_service_account_name'], 'String'); - } - - if (data.hasOwnProperty('grant_types')) { - obj['grant_types'] = _ApiClient["default"].convertToType(data['grant_types'], ['String']); - } - - if (data.hasOwnProperty('groups')) { - obj['groups'] = _ApiClient["default"].convertToType(data['groups'], 'String'); - } - - if (data.hasOwnProperty('hanadb_creation_statements')) { - obj['hanadb_creation_statements'] = _ApiClient["default"].convertToType(data['hanadb_creation_statements'], 'String'); - } - - if (data.hasOwnProperty('hanadb_revocation_statements')) { - obj['hanadb_revocation_statements'] = _ApiClient["default"].convertToType(data['hanadb_revocation_statements'], 'String'); - } - - if (data.hasOwnProperty('host_name')) { - obj['host_name'] = _ApiClient["default"].convertToType(data['host_name'], 'String'); - } - - if (data.hasOwnProperty('host_port')) { - obj['host_port'] = _ApiClient["default"].convertToType(data['host_port'], 'String'); - } - - if (data.hasOwnProperty('implementation_type')) { - obj['implementation_type'] = _ApiClient["default"].convertToType(data['implementation_type'], 'String'); - } - - if (data.hasOwnProperty('is_fixed_user')) { - obj['is_fixed_user'] = _ApiClient["default"].convertToType(data['is_fixed_user'], 'String'); - } - - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); - } - - if (data.hasOwnProperty('item_targets_assoc')) { - obj['item_targets_assoc'] = _ApiClient["default"].convertToType(data['item_targets_assoc'], [_ItemTargetAssociation["default"]]); - } - - if (data.hasOwnProperty('jwks')) { - obj['jwks'] = _ApiClient["default"].convertToType(data['jwks'], 'String'); - } - - if (data.hasOwnProperty('jwks_url')) { - obj['jwks_url'] = _ApiClient["default"].convertToType(data['jwks_url'], 'String'); - } - - if (data.hasOwnProperty('k8s_allowed_namespaces')) { - obj['k8s_allowed_namespaces'] = _ApiClient["default"].convertToType(data['k8s_allowed_namespaces'], 'String'); - } - - if (data.hasOwnProperty('k8s_bearer_token')) { - obj['k8s_bearer_token'] = _ApiClient["default"].convertToType(data['k8s_bearer_token'], 'String'); - } - - if (data.hasOwnProperty('k8s_cluster_ca_certificate')) { - obj['k8s_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['k8s_cluster_ca_certificate'], 'String'); - } - - if (data.hasOwnProperty('k8s_cluster_endpoint')) { - obj['k8s_cluster_endpoint'] = _ApiClient["default"].convertToType(data['k8s_cluster_endpoint'], 'String'); - } - - if (data.hasOwnProperty('k8s_dynamic_mode')) { - obj['k8s_dynamic_mode'] = _ApiClient["default"].convertToType(data['k8s_dynamic_mode'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s_multiple_doc_yaml_temp_definition')) { - obj['k8s_multiple_doc_yaml_temp_definition'] = _ApiClient["default"].convertToType(data['k8s_multiple_doc_yaml_temp_definition'], ['Number']); - } - - if (data.hasOwnProperty('k8s_namespace')) { - obj['k8s_namespace'] = _ApiClient["default"].convertToType(data['k8s_namespace'], 'String'); - } - - if (data.hasOwnProperty('k8s_role_name')) { - obj['k8s_role_name'] = _ApiClient["default"].convertToType(data['k8s_role_name'], 'String'); - } - - if (data.hasOwnProperty('k8s_role_type')) { - obj['k8s_role_type'] = _ApiClient["default"].convertToType(data['k8s_role_type'], 'String'); - } - - if (data.hasOwnProperty('k8s_service_account')) { - obj['k8s_service_account'] = _ApiClient["default"].convertToType(data['k8s_service_account'], 'String'); - } - - if (data.hasOwnProperty('last_admin_rotation')) { - obj['last_admin_rotation'] = _ApiClient["default"].convertToType(data['last_admin_rotation'], 'Number'); - } - - if (data.hasOwnProperty('ldap_audience')) { - obj['ldap_audience'] = _ApiClient["default"].convertToType(data['ldap_audience'], 'String'); - } - - if (data.hasOwnProperty('ldap_bind_dn')) { - obj['ldap_bind_dn'] = _ApiClient["default"].convertToType(data['ldap_bind_dn'], 'String'); - } - - if (data.hasOwnProperty('ldap_bind_password')) { - obj['ldap_bind_password'] = _ApiClient["default"].convertToType(data['ldap_bind_password'], 'String'); - } - - if (data.hasOwnProperty('ldap_certificate')) { - obj['ldap_certificate'] = _ApiClient["default"].convertToType(data['ldap_certificate'], 'String'); - } - - if (data.hasOwnProperty('ldap_group_dn')) { - obj['ldap_group_dn'] = _ApiClient["default"].convertToType(data['ldap_group_dn'], 'String'); - } - - if (data.hasOwnProperty('ldap_token_expiration')) { - obj['ldap_token_expiration'] = _ApiClient["default"].convertToType(data['ldap_token_expiration'], 'String'); - } - - if (data.hasOwnProperty('ldap_url')) { - obj['ldap_url'] = _ApiClient["default"].convertToType(data['ldap_url'], 'String'); - } - - if (data.hasOwnProperty('ldap_user_attr')) { - obj['ldap_user_attr'] = _ApiClient["default"].convertToType(data['ldap_user_attr'], 'String'); - } - - if (data.hasOwnProperty('ldap_user_dn')) { - obj['ldap_user_dn'] = _ApiClient["default"].convertToType(data['ldap_user_dn'], 'String'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('mongodb_atlas_api_private_key')) { - obj['mongodb_atlas_api_private_key'] = _ApiClient["default"].convertToType(data['mongodb_atlas_api_private_key'], 'String'); - } - - if (data.hasOwnProperty('mongodb_atlas_api_public_key')) { - obj['mongodb_atlas_api_public_key'] = _ApiClient["default"].convertToType(data['mongodb_atlas_api_public_key'], 'String'); - } - - if (data.hasOwnProperty('mongodb_atlas_project_id')) { - obj['mongodb_atlas_project_id'] = _ApiClient["default"].convertToType(data['mongodb_atlas_project_id'], 'String'); - } - - if (data.hasOwnProperty('mongodb_custom_data')) { - obj['mongodb_custom_data'] = _ApiClient["default"].convertToType(data['mongodb_custom_data'], 'String'); - } - - if (data.hasOwnProperty('mongodb_db_name')) { - obj['mongodb_db_name'] = _ApiClient["default"].convertToType(data['mongodb_db_name'], 'String'); - } - - if (data.hasOwnProperty('mongodb_default_auth_db')) { - obj['mongodb_default_auth_db'] = _ApiClient["default"].convertToType(data['mongodb_default_auth_db'], 'String'); - } - - if (data.hasOwnProperty('mongodb_host_port')) { - obj['mongodb_host_port'] = _ApiClient["default"].convertToType(data['mongodb_host_port'], 'String'); - } - - if (data.hasOwnProperty('mongodb_is_atlas')) { - obj['mongodb_is_atlas'] = _ApiClient["default"].convertToType(data['mongodb_is_atlas'], 'Boolean'); - } - - if (data.hasOwnProperty('mongodb_password')) { - obj['mongodb_password'] = _ApiClient["default"].convertToType(data['mongodb_password'], 'String'); - } - - if (data.hasOwnProperty('mongodb_roles')) { - obj['mongodb_roles'] = _ApiClient["default"].convertToType(data['mongodb_roles'], 'String'); - } - - if (data.hasOwnProperty('mongodb_uri_connection')) { - obj['mongodb_uri_connection'] = _ApiClient["default"].convertToType(data['mongodb_uri_connection'], 'String'); - } - - if (data.hasOwnProperty('mongodb_uri_options')) { - obj['mongodb_uri_options'] = _ApiClient["default"].convertToType(data['mongodb_uri_options'], 'String'); - } - - if (data.hasOwnProperty('mongodb_username')) { - obj['mongodb_username'] = _ApiClient["default"].convertToType(data['mongodb_username'], 'String'); - } - - if (data.hasOwnProperty('mssql_creation_statements')) { - obj['mssql_creation_statements'] = _ApiClient["default"].convertToType(data['mssql_creation_statements'], 'String'); - } - - if (data.hasOwnProperty('mssql_revocation_statements')) { - obj['mssql_revocation_statements'] = _ApiClient["default"].convertToType(data['mssql_revocation_statements'], 'String'); - } - - if (data.hasOwnProperty('mysql_creation_statements')) { - obj['mysql_creation_statements'] = _ApiClient["default"].convertToType(data['mysql_creation_statements'], 'String'); - } - - if (data.hasOwnProperty('mysql_revocation_statements')) { - obj['mysql_revocation_statements'] = _ApiClient["default"].convertToType(data['mysql_revocation_statements'], 'String'); - } - - if (data.hasOwnProperty('oracle_creation_statements')) { - obj['oracle_creation_statements'] = _ApiClient["default"].convertToType(data['oracle_creation_statements'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('password_length')) { - obj['password_length'] = _ApiClient["default"].convertToType(data['password_length'], 'Number'); - } - - if (data.hasOwnProperty('password_policy')) { - obj['password_policy'] = _ApiClient["default"].convertToType(data['password_policy'], 'String'); - } - - if (data.hasOwnProperty('payload')) { - obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); - } - - if (data.hasOwnProperty('ping_url')) { - obj['ping_url'] = _ApiClient["default"].convertToType(data['ping_url'], 'String'); - } - - if (data.hasOwnProperty('postgres_creation_statements')) { - obj['postgres_creation_statements'] = _ApiClient["default"].convertToType(data['postgres_creation_statements'], 'String'); - } - - if (data.hasOwnProperty('postgres_revocation_statements')) { - obj['postgres_revocation_statements'] = _ApiClient["default"].convertToType(data['postgres_revocation_statements'], 'String'); - } - - if (data.hasOwnProperty('privileged_user')) { - obj['privileged_user'] = _ApiClient["default"].convertToType(data['privileged_user'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq_server_password')) { - obj['rabbitmq_server_password'] = _ApiClient["default"].convertToType(data['rabbitmq_server_password'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq_server_uri')) { - obj['rabbitmq_server_uri'] = _ApiClient["default"].convertToType(data['rabbitmq_server_uri'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq_server_user')) { - obj['rabbitmq_server_user'] = _ApiClient["default"].convertToType(data['rabbitmq_server_user'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq_user_conf_permission')) { - obj['rabbitmq_user_conf_permission'] = _ApiClient["default"].convertToType(data['rabbitmq_user_conf_permission'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq_user_read_permission')) { - obj['rabbitmq_user_read_permission'] = _ApiClient["default"].convertToType(data['rabbitmq_user_read_permission'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq_user_tags')) { - obj['rabbitmq_user_tags'] = _ApiClient["default"].convertToType(data['rabbitmq_user_tags'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq_user_vhost')) { - obj['rabbitmq_user_vhost'] = _ApiClient["default"].convertToType(data['rabbitmq_user_vhost'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq_user_write_permission')) { - obj['rabbitmq_user_write_permission'] = _ApiClient["default"].convertToType(data['rabbitmq_user_write_permission'], 'String'); - } - - if (data.hasOwnProperty('redirect_uris')) { - obj['redirect_uris'] = _ApiClient["default"].convertToType(data['redirect_uris'], ['String']); - } - - if (data.hasOwnProperty('redshift_creation_statements')) { - obj['redshift_creation_statements'] = _ApiClient["default"].convertToType(data['redshift_creation_statements'], 'String'); - } - - if (data.hasOwnProperty('restricted_scopes')) { - obj['restricted_scopes'] = _ApiClient["default"].convertToType(data['restricted_scopes'], ['String']); - } - - if (data.hasOwnProperty('revoke_sync_url')) { - obj['revoke_sync_url'] = _ApiClient["default"].convertToType(data['revoke_sync_url'], 'String'); - } - - if (data.hasOwnProperty('rotate_sync_url')) { - obj['rotate_sync_url'] = _ApiClient["default"].convertToType(data['rotate_sync_url'], 'String'); - } - - if (data.hasOwnProperty('scopes')) { - obj['scopes'] = _ApiClient["default"].convertToType(data['scopes'], ['String']); - } - - if (data.hasOwnProperty('secure_remote_access_details')) { - obj['secure_remote_access_details'] = _SecureRemoteAccess["default"].constructFromObject(data['secure_remote_access_details']); - } - - if (data.hasOwnProperty('session_extension_warn_interval_min')) { - obj['session_extension_warn_interval_min'] = _ApiClient["default"].convertToType(data['session_extension_warn_interval_min'], 'Number'); - } - - if (data.hasOwnProperty('sf_account')) { - obj['sf_account'] = _ApiClient["default"].convertToType(data['sf_account'], 'String'); - } - - if (data.hasOwnProperty('sf_user_role')) { - obj['sf_user_role'] = _ApiClient["default"].convertToType(data['sf_user_role'], 'String'); - } - - if (data.hasOwnProperty('sf_warehouse_name')) { - obj['sf_warehouse_name'] = _ApiClient["default"].convertToType(data['sf_warehouse_name'], 'String'); - } - - if (data.hasOwnProperty('should_stop')) { - obj['should_stop'] = _ApiClient["default"].convertToType(data['should_stop'], 'String'); - } - - if (data.hasOwnProperty('signing_algorithm')) { - obj['signing_algorithm'] = _ApiClient["default"].convertToType(data['signing_algorithm'], 'String'); - } - - if (data.hasOwnProperty('ssl_connection_certificate')) { - obj['ssl_connection_certificate'] = _ApiClient["default"].convertToType(data['ssl_connection_certificate'], 'String'); - } - - if (data.hasOwnProperty('ssl_connection_mode')) { - obj['ssl_connection_mode'] = _ApiClient["default"].convertToType(data['ssl_connection_mode'], 'Boolean'); - } - - if (data.hasOwnProperty('subject_dn')) { - obj['subject_dn'] = _ApiClient["default"].convertToType(data['subject_dn'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('timeout_seconds')) { - obj['timeout_seconds'] = _ApiClient["default"].convertToType(data['timeout_seconds'], 'Number'); - } - - if (data.hasOwnProperty('use_gw_cloud_identity')) { - obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); - } - - if (data.hasOwnProperty('use_gw_service_account')) { - obj['use_gw_service_account'] = _ApiClient["default"].convertToType(data['use_gw_service_account'], 'Boolean'); - } - - if (data.hasOwnProperty('user_name')) { - obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], 'String'); - } - - if (data.hasOwnProperty('user_password')) { - obj['user_password'] = _ApiClient["default"].convertToType(data['user_password'], 'String'); - } - - if (data.hasOwnProperty('user_principal_name')) { - obj['user_principal_name'] = _ApiClient["default"].convertToType(data['user_principal_name'], 'String'); - } - - if (data.hasOwnProperty('user_ttl')) { - obj['user_ttl'] = _ApiClient["default"].convertToType(data['user_ttl'], 'String'); - } - - if (data.hasOwnProperty('username_length')) { - obj['username_length'] = _ApiClient["default"].convertToType(data['username_length'], 'Number'); - } - - if (data.hasOwnProperty('username_policy')) { - obj['username_policy'] = _ApiClient["default"].convertToType(data['username_policy'], 'String'); - } - - if (data.hasOwnProperty('venafi_allow_subdomains')) { - obj['venafi_allow_subdomains'] = _ApiClient["default"].convertToType(data['venafi_allow_subdomains'], 'Boolean'); - } - - if (data.hasOwnProperty('venafi_allowed_domains')) { - obj['venafi_allowed_domains'] = _ApiClient["default"].convertToType(data['venafi_allowed_domains'], ['String']); - } - - if (data.hasOwnProperty('venafi_api_key')) { - obj['venafi_api_key'] = _ApiClient["default"].convertToType(data['venafi_api_key'], 'String'); - } - - if (data.hasOwnProperty('venafi_auto_generated_folder')) { - obj['venafi_auto_generated_folder'] = _ApiClient["default"].convertToType(data['venafi_auto_generated_folder'], 'String'); - } - - if (data.hasOwnProperty('venafi_base_url')) { - obj['venafi_base_url'] = _ApiClient["default"].convertToType(data['venafi_base_url'], 'String'); - } - - if (data.hasOwnProperty('venafi_root_first_in_chain')) { - obj['venafi_root_first_in_chain'] = _ApiClient["default"].convertToType(data['venafi_root_first_in_chain'], 'Boolean'); - } - - if (data.hasOwnProperty('venafi_sign_using_akeyless_pki')) { - obj['venafi_sign_using_akeyless_pki'] = _ApiClient["default"].convertToType(data['venafi_sign_using_akeyless_pki'], 'Boolean'); - } - - if (data.hasOwnProperty('venafi_signer_key_name')) { - obj['venafi_signer_key_name'] = _ApiClient["default"].convertToType(data['venafi_signer_key_name'], 'String'); - } - - if (data.hasOwnProperty('venafi_store_private_key')) { - obj['venafi_store_private_key'] = _ApiClient["default"].convertToType(data['venafi_store_private_key'], 'Boolean'); - } - - if (data.hasOwnProperty('venafi_tpp_access_token')) { - obj['venafi_tpp_access_token'] = _ApiClient["default"].convertToType(data['venafi_tpp_access_token'], 'String'); - } - - if (data.hasOwnProperty('venafi_tpp_client_id')) { - obj['venafi_tpp_client_id'] = _ApiClient["default"].convertToType(data['venafi_tpp_client_id'], 'String'); - } - - if (data.hasOwnProperty('venafi_tpp_password')) { - obj['venafi_tpp_password'] = _ApiClient["default"].convertToType(data['venafi_tpp_password'], 'String'); - } - - if (data.hasOwnProperty('venafi_tpp_refresh_token')) { - obj['venafi_tpp_refresh_token'] = _ApiClient["default"].convertToType(data['venafi_tpp_refresh_token'], 'String'); - } - - if (data.hasOwnProperty('venafi_tpp_username')) { - obj['venafi_tpp_username'] = _ApiClient["default"].convertToType(data['venafi_tpp_username'], 'String'); - } - - if (data.hasOwnProperty('venafi_use_tpp')) { - obj['venafi_use_tpp'] = _ApiClient["default"].convertToType(data['venafi_use_tpp'], 'Boolean'); - } - - if (data.hasOwnProperty('venafi_zone')) { - obj['venafi_zone'] = _ApiClient["default"].convertToType(data['venafi_zone'], 'String'); - } - - if (data.hasOwnProperty('warn_before_user_expiration_min')) { - obj['warn_before_user_expiration_min'] = _ApiClient["default"].convertToType(data['warn_before_user_expiration_min'], 'Number'); - } - } - - return obj; - } - }]); - - return DSProducerDetails; -}(); -/** - * @member {String} access_token_manager_id - */ - - -DSProducerDetails.prototype['access_token_manager_id'] = undefined; -/** - * @member {Array.} acl_rules - */ - -DSProducerDetails.prototype['acl_rules'] = undefined; -/** - * @member {Boolean} active - */ - -DSProducerDetails.prototype['active'] = undefined; -/** - * @member {String} admin_name - */ - -DSProducerDetails.prototype['admin_name'] = undefined; -/** - * @member {String} admin_pwd - */ - -DSProducerDetails.prototype['admin_pwd'] = undefined; -/** - * @member {Number} admin_rotation_interval_days - */ - -DSProducerDetails.prototype['admin_rotation_interval_days'] = undefined; -/** - * @member {String} administrative_port - */ - -DSProducerDetails.prototype['administrative_port'] = undefined; -/** - * @member {String} artifactory_admin_apikey - */ - -DSProducerDetails.prototype['artifactory_admin_apikey'] = undefined; -/** - * @member {String} artifactory_admin_username - */ - -DSProducerDetails.prototype['artifactory_admin_username'] = undefined; -/** - * @member {String} artifactory_base_url - */ - -DSProducerDetails.prototype['artifactory_base_url'] = undefined; -/** - * @member {String} artifactory_token_audience - */ - -DSProducerDetails.prototype['artifactory_token_audience'] = undefined; -/** - * @member {String} artifactory_token_scope - */ - -DSProducerDetails.prototype['artifactory_token_scope'] = undefined; -/** - * @member {String} authorization_port - */ - -DSProducerDetails.prototype['authorization_port'] = undefined; -/** - * @member {String} aws_access_key_id - */ - -DSProducerDetails.prototype['aws_access_key_id'] = undefined; -/** - * @member {String} aws_access_mode - */ - -DSProducerDetails.prototype['aws_access_mode'] = undefined; -/** - * @member {String} aws_region - */ - -DSProducerDetails.prototype['aws_region'] = undefined; -/** - * @member {String} aws_role_arns - */ - -DSProducerDetails.prototype['aws_role_arns'] = undefined; -/** - * @member {String} aws_secret_access_key - */ - -DSProducerDetails.prototype['aws_secret_access_key'] = undefined; -/** - * @member {String} aws_session_token - */ - -DSProducerDetails.prototype['aws_session_token'] = undefined; -/** - * @member {Boolean} aws_user_console_access - */ - -DSProducerDetails.prototype['aws_user_console_access'] = undefined; -/** - * @member {String} aws_user_groups - */ - -DSProducerDetails.prototype['aws_user_groups'] = undefined; -/** - * @member {String} aws_user_policies - */ - -DSProducerDetails.prototype['aws_user_policies'] = undefined; -/** - * @member {Boolean} aws_user_programmatic_access - */ - -DSProducerDetails.prototype['aws_user_programmatic_access'] = undefined; -/** - * @member {String} azure_app_object_id - */ - -DSProducerDetails.prototype['azure_app_object_id'] = undefined; -/** - * @member {String} azure_client_id - */ - -DSProducerDetails.prototype['azure_client_id'] = undefined; -/** - * @member {String} azure_client_secret - */ - -DSProducerDetails.prototype['azure_client_secret'] = undefined; -/** - * @member {String} azure_fixed_user_name_sub_claim_key - */ - -DSProducerDetails.prototype['azure_fixed_user_name_sub_claim_key'] = undefined; -/** - * @member {Boolean} azure_fixed_user_only - */ - -DSProducerDetails.prototype['azure_fixed_user_only'] = undefined; -/** - * @member {String} azure_resource_group_name - */ - -DSProducerDetails.prototype['azure_resource_group_name'] = undefined; -/** - * @member {String} azure_resource_name - */ - -DSProducerDetails.prototype['azure_resource_name'] = undefined; -/** - * @member {String} azure_subscription_id - */ - -DSProducerDetails.prototype['azure_subscription_id'] = undefined; -/** - * @member {String} azure_tenant_id - */ - -DSProducerDetails.prototype['azure_tenant_id'] = undefined; -/** - * @member {String} azure_user_groups_obj_id - */ - -DSProducerDetails.prototype['azure_user_groups_obj_id'] = undefined; -/** - * @member {Boolean} azure_user_portal_access - */ - -DSProducerDetails.prototype['azure_user_portal_access'] = undefined; -/** - * @member {Boolean} azure_user_programmatic_access - */ - -DSProducerDetails.prototype['azure_user_programmatic_access'] = undefined; -/** - * @member {String} azure_user_roles_template_id - */ - -DSProducerDetails.prototype['azure_user_roles_template_id'] = undefined; -/** - * @member {String} cassandra_creation_statements - */ - -DSProducerDetails.prototype['cassandra_creation_statements'] = undefined; -/** - * @member {String} chef_organizations - */ - -DSProducerDetails.prototype['chef_organizations'] = undefined; -/** - * @member {String} chef_server_access_mode - */ - -DSProducerDetails.prototype['chef_server_access_mode'] = undefined; -/** - * @member {String} chef_server_host_name - */ - -DSProducerDetails.prototype['chef_server_host_name'] = undefined; -/** - * @member {String} chef_server_key - */ - -DSProducerDetails.prototype['chef_server_key'] = undefined; -/** - * @member {String} chef_server_port - */ - -DSProducerDetails.prototype['chef_server_port'] = undefined; -/** - * @member {String} chef_server_url - */ - -DSProducerDetails.prototype['chef_server_url'] = undefined; -/** - * @member {String} chef_server_username - */ - -DSProducerDetails.prototype['chef_server_username'] = undefined; -/** - * @member {Boolean} chef_skip_ssl - */ - -DSProducerDetails.prototype['chef_skip_ssl'] = undefined; -/** - * @member {String} client_authentication_type - */ - -DSProducerDetails.prototype['client_authentication_type'] = undefined; -/** - * @member {String} create_sync_url - */ - -DSProducerDetails.prototype['create_sync_url'] = undefined; -/** - * @member {String} db_host_name - */ - -DSProducerDetails.prototype['db_host_name'] = undefined; -/** - * @member {String} db_isolation_level - */ - -DSProducerDetails.prototype['db_isolation_level'] = undefined; -/** - * @member {String} db_max_idle_conns - */ - -DSProducerDetails.prototype['db_max_idle_conns'] = undefined; -/** - * @member {String} db_max_open_conns - */ - -DSProducerDetails.prototype['db_max_open_conns'] = undefined; -/** - * @member {String} db_name - */ - -DSProducerDetails.prototype['db_name'] = undefined; -/** - * @member {String} db_port - */ - -DSProducerDetails.prototype['db_port'] = undefined; -/** - * (Optional) Private Key in PEM format - * @member {String} db_private_key - */ - -DSProducerDetails.prototype['db_private_key'] = undefined; -/** - * @member {String} db_private_key_passphrase - */ - -DSProducerDetails.prototype['db_private_key_passphrase'] = undefined; -/** - * @member {String} db_pwd - */ - -DSProducerDetails.prototype['db_pwd'] = undefined; -/** - * (Optional) DBServerCertificates defines the set of root certificate authorities that clients use when verifying server certificates. If DBServerCertificates is empty, TLS uses the host's root CA set. - * @member {String} db_server_certificates - */ - -DSProducerDetails.prototype['db_server_certificates'] = undefined; -/** - * (Optional) ServerName is used to verify the hostname on the returned certificates unless InsecureSkipVerify is given. It is also included in the client's handshake to support virtual hosting unless it is an IP address. - * @member {String} db_server_name - */ - -DSProducerDetails.prototype['db_server_name'] = undefined; -/** - * @member {String} db_user_name - */ - -DSProducerDetails.prototype['db_user_name'] = undefined; -/** - * @member {Boolean} delete_protection - */ - -DSProducerDetails.prototype['delete_protection'] = undefined; -/** - * @member {Number} dynamic_secret_id - */ - -DSProducerDetails.prototype['dynamic_secret_id'] = undefined; -/** - * @member {String} dynamic_secret_key - */ - -DSProducerDetails.prototype['dynamic_secret_key'] = undefined; -/** - * @member {String} dynamic_secret_name - */ - -DSProducerDetails.prototype['dynamic_secret_name'] = undefined; -/** - * @member {String} dynamic_secret_type - */ - -DSProducerDetails.prototype['dynamic_secret_type'] = undefined; -/** - * @member {String} eks_access_key_id - */ - -DSProducerDetails.prototype['eks_access_key_id'] = undefined; -/** - * @member {String} eks_assume_role - */ - -DSProducerDetails.prototype['eks_assume_role'] = undefined; -/** - * @member {String} eks_cluster_ca_certificate - */ - -DSProducerDetails.prototype['eks_cluster_ca_certificate'] = undefined; -/** - * @member {String} eks_cluster_endpoint - */ - -DSProducerDetails.prototype['eks_cluster_endpoint'] = undefined; -/** - * @member {String} eks_cluster_name - */ - -DSProducerDetails.prototype['eks_cluster_name'] = undefined; -/** - * @member {String} eks_region - */ - -DSProducerDetails.prototype['eks_region'] = undefined; -/** - * @member {String} eks_secret_access_key - */ - -DSProducerDetails.prototype['eks_secret_access_key'] = undefined; -/** - * @member {Boolean} enable_admin_rotation - */ - -DSProducerDetails.prototype['enable_admin_rotation'] = undefined; -/** - * relevant for PRIVATE_KEY_JWT client authentication type - * @member {Boolean} enforce_replay_prevention - */ - -DSProducerDetails.prototype['enforce_replay_prevention'] = undefined; -/** - * @member {String} externally_provided_user - */ - -DSProducerDetails.prototype['externally_provided_user'] = undefined; -/** - * @member {String} failure_message - */ - -DSProducerDetails.prototype['failure_message'] = undefined; -/** - * @member {String} fixed_user_only - */ - -DSProducerDetails.prototype['fixed_user_only'] = undefined; -/** - * @member {String} gcp_key_algo - */ - -DSProducerDetails.prototype['gcp_key_algo'] = undefined; -/** - * @member {Object.>} gcp_role_bindings - */ - -DSProducerDetails.prototype['gcp_role_bindings'] = undefined; -/** - * GCPServiceAccountEmail overrides the deprecated field from the target - * @member {String} gcp_service_account_email - */ - -DSProducerDetails.prototype['gcp_service_account_email'] = undefined; -/** - * @member {String} gcp_service_account_key - */ - -DSProducerDetails.prototype['gcp_service_account_key'] = undefined; -/** - * @member {String} gcp_service_account_key_base64 - */ - -DSProducerDetails.prototype['gcp_service_account_key_base64'] = undefined; -/** - * @member {String} gcp_service_account_type - */ - -DSProducerDetails.prototype['gcp_service_account_type'] = undefined; -/** - * @member {String} gcp_tmp_service_account_name - */ - -DSProducerDetails.prototype['gcp_tmp_service_account_name'] = undefined; -/** - * @member {String} gcp_token_lifetime - */ - -DSProducerDetails.prototype['gcp_token_lifetime'] = undefined; -/** - * @member {String} gcp_token_scope - */ - -DSProducerDetails.prototype['gcp_token_scope'] = undefined; -/** - * @member {String} gcp_token_type - */ - -DSProducerDetails.prototype['gcp_token_type'] = undefined; -/** - * @member {Number} github_app_id - */ - -DSProducerDetails.prototype['github_app_id'] = undefined; -/** - * @member {String} github_app_private_key - */ - -DSProducerDetails.prototype['github_app_private_key'] = undefined; -/** - * @member {String} github_base_url - */ - -DSProducerDetails.prototype['github_base_url'] = undefined; -/** - * @member {Number} github_installation_id - */ - -DSProducerDetails.prototype['github_installation_id'] = undefined; -/** - * @member {Object.} github_installation_token_permissions - */ - -DSProducerDetails.prototype['github_installation_token_permissions'] = undefined; -/** - * @member {Array.} github_installation_token_repositories - */ - -DSProducerDetails.prototype['github_installation_token_repositories'] = undefined; -/** - * @member {Array.} github_installation_token_repositories_ids - */ - -DSProducerDetails.prototype['github_installation_token_repositories_ids'] = undefined; -/** - * @member {String} github_repository_path - */ - -DSProducerDetails.prototype['github_repository_path'] = undefined; -/** - * @member {String} gke_cluster_ca_certificate - */ - -DSProducerDetails.prototype['gke_cluster_ca_certificate'] = undefined; -/** - * @member {String} gke_cluster_endpoint - */ - -DSProducerDetails.prototype['gke_cluster_endpoint'] = undefined; -/** - * @member {String} gke_cluster_name - */ - -DSProducerDetails.prototype['gke_cluster_name'] = undefined; -/** - * @member {String} gke_service_account_key - */ - -DSProducerDetails.prototype['gke_service_account_key'] = undefined; -/** - * @member {String} gke_service_account_name - */ - -DSProducerDetails.prototype['gke_service_account_name'] = undefined; -/** - * @member {Array.} grant_types - */ - -DSProducerDetails.prototype['grant_types'] = undefined; -/** - * @member {String} groups - */ - -DSProducerDetails.prototype['groups'] = undefined; -/** - * @member {String} hanadb_creation_statements - */ - -DSProducerDetails.prototype['hanadb_creation_statements'] = undefined; -/** - * @member {String} hanadb_revocation_statements - */ - -DSProducerDetails.prototype['hanadb_revocation_statements'] = undefined; -/** - * @member {String} host_name - */ - -DSProducerDetails.prototype['host_name'] = undefined; -/** - * @member {String} host_port - */ - -DSProducerDetails.prototype['host_port'] = undefined; -/** - * @member {String} implementation_type - */ - -DSProducerDetails.prototype['implementation_type'] = undefined; -/** - * @member {String} is_fixed_user - */ - -DSProducerDetails.prototype['is_fixed_user'] = undefined; -/** - * relevant for CLIENT_TLS_CERTIFICATE client authentication type - * @member {String} issuer - */ - -DSProducerDetails.prototype['issuer'] = undefined; -/** - * @member {Array.} item_targets_assoc - */ - -DSProducerDetails.prototype['item_targets_assoc'] = undefined; -/** - * @member {String} jwks - */ - -DSProducerDetails.prototype['jwks'] = undefined; -/** - * @member {String} jwks_url - */ - -DSProducerDetails.prototype['jwks_url'] = undefined; -/** - * comma-separated list of allowed namespaces. Can hold just * which signifies that any namespace is allowed - * @member {String} k8s_allowed_namespaces - */ - -DSProducerDetails.prototype['k8s_allowed_namespaces'] = undefined; -/** - * @member {String} k8s_bearer_token - */ - -DSProducerDetails.prototype['k8s_bearer_token'] = undefined; -/** - * @member {String} k8s_cluster_ca_certificate - */ - -DSProducerDetails.prototype['k8s_cluster_ca_certificate'] = undefined; -/** - * @member {String} k8s_cluster_endpoint - */ - -DSProducerDetails.prototype['k8s_cluster_endpoint'] = undefined; -/** - * when native k8s is in dynamic mode, user can define allowed namespaces, K8sServiceAccount doesn't exist from the start and will only be created at time of getting dynamic secret value By default dynamic mode is false and producer behaves like it did before - * @member {Boolean} k8s_dynamic_mode - */ - -DSProducerDetails.prototype['k8s_dynamic_mode'] = undefined; -/** - * Yaml definition for creation of temporary objects. Field that can hold multiple docs from which following will be extracted: ServiceAccount, Role/ClusterRole and RoleBinding/ClusterRoleBinding. If ServiceAccount not specified - it will be generated automatically - * @member {Array.} k8s_multiple_doc_yaml_temp_definition - */ - -DSProducerDetails.prototype['k8s_multiple_doc_yaml_temp_definition'] = undefined; -/** - * @member {String} k8s_namespace - */ - -DSProducerDetails.prototype['k8s_namespace'] = undefined; -/** - * Name of the pre-existing Role or ClusterRole to bind a generated service account to. - * @member {String} k8s_role_name - */ - -DSProducerDetails.prototype['k8s_role_name'] = undefined; -/** - * @member {String} k8s_role_type - */ - -DSProducerDetails.prototype['k8s_role_type'] = undefined; -/** - * @member {String} k8s_service_account - */ - -DSProducerDetails.prototype['k8s_service_account'] = undefined; -/** - * @member {Number} last_admin_rotation - */ - -DSProducerDetails.prototype['last_admin_rotation'] = undefined; -/** - * @member {String} ldap_audience - */ - -DSProducerDetails.prototype['ldap_audience'] = undefined; -/** - * @member {String} ldap_bind_dn - */ - -DSProducerDetails.prototype['ldap_bind_dn'] = undefined; -/** - * @member {String} ldap_bind_password - */ - -DSProducerDetails.prototype['ldap_bind_password'] = undefined; -/** - * @member {String} ldap_certificate - */ - -DSProducerDetails.prototype['ldap_certificate'] = undefined; -/** - * @member {String} ldap_group_dn - */ - -DSProducerDetails.prototype['ldap_group_dn'] = undefined; -/** - * @member {String} ldap_token_expiration - */ - -DSProducerDetails.prototype['ldap_token_expiration'] = undefined; -/** - * @member {String} ldap_url - */ - -DSProducerDetails.prototype['ldap_url'] = undefined; -/** - * @member {String} ldap_user_attr - */ - -DSProducerDetails.prototype['ldap_user_attr'] = undefined; -/** - * @member {String} ldap_user_dn - */ - -DSProducerDetails.prototype['ldap_user_dn'] = undefined; -/** - * @member {String} metadata - */ - -DSProducerDetails.prototype['metadata'] = undefined; -/** - * @member {String} mongodb_atlas_api_private_key - */ - -DSProducerDetails.prototype['mongodb_atlas_api_private_key'] = undefined; -/** - * @member {String} mongodb_atlas_api_public_key - */ - -DSProducerDetails.prototype['mongodb_atlas_api_public_key'] = undefined; -/** - * mongodb atlas fields - * @member {String} mongodb_atlas_project_id - */ - -DSProducerDetails.prototype['mongodb_atlas_project_id'] = undefined; -/** - * @member {String} mongodb_custom_data - */ - -DSProducerDetails.prototype['mongodb_custom_data'] = undefined; -/** - * common fields - * @member {String} mongodb_db_name - */ - -DSProducerDetails.prototype['mongodb_db_name'] = undefined; -/** - * @member {String} mongodb_default_auth_db - */ - -DSProducerDetails.prototype['mongodb_default_auth_db'] = undefined; -/** - * @member {String} mongodb_host_port - */ - -DSProducerDetails.prototype['mongodb_host_port'] = undefined; -/** - * @member {Boolean} mongodb_is_atlas - */ - -DSProducerDetails.prototype['mongodb_is_atlas'] = undefined; -/** - * @member {String} mongodb_password - */ - -DSProducerDetails.prototype['mongodb_password'] = undefined; -/** - * common fields - * @member {String} mongodb_roles - */ - -DSProducerDetails.prototype['mongodb_roles'] = undefined; -/** - * mongodb fields - * @member {String} mongodb_uri_connection - */ - -DSProducerDetails.prototype['mongodb_uri_connection'] = undefined; -/** - * @member {String} mongodb_uri_options - */ - -DSProducerDetails.prototype['mongodb_uri_options'] = undefined; -/** - * @member {String} mongodb_username - */ - -DSProducerDetails.prototype['mongodb_username'] = undefined; -/** - * @member {String} mssql_creation_statements - */ - -DSProducerDetails.prototype['mssql_creation_statements'] = undefined; -/** - * @member {String} mssql_revocation_statements - */ - -DSProducerDetails.prototype['mssql_revocation_statements'] = undefined; -/** - * @member {String} mysql_creation_statements - */ - -DSProducerDetails.prototype['mysql_creation_statements'] = undefined; -/** - * @member {String} mysql_revocation_statements - */ - -DSProducerDetails.prototype['mysql_revocation_statements'] = undefined; -/** - * @member {String} oracle_creation_statements - */ - -DSProducerDetails.prototype['oracle_creation_statements'] = undefined; -/** - * @member {String} password - */ - -DSProducerDetails.prototype['password'] = undefined; -/** - * @member {Number} password_length - */ - -DSProducerDetails.prototype['password_length'] = undefined; -/** - * @member {String} password_policy - */ - -DSProducerDetails.prototype['password_policy'] = undefined; -/** - * @member {String} payload - */ - -DSProducerDetails.prototype['payload'] = undefined; -/** - * @member {String} ping_url - */ - -DSProducerDetails.prototype['ping_url'] = undefined; -/** - * @member {String} postgres_creation_statements - */ - -DSProducerDetails.prototype['postgres_creation_statements'] = undefined; -/** - * @member {String} postgres_revocation_statements - */ - -DSProducerDetails.prototype['postgres_revocation_statements'] = undefined; -/** - * @member {String} privileged_user - */ - -DSProducerDetails.prototype['privileged_user'] = undefined; -/** - * @member {String} rabbitmq_server_password - */ - -DSProducerDetails.prototype['rabbitmq_server_password'] = undefined; -/** - * @member {String} rabbitmq_server_uri - */ - -DSProducerDetails.prototype['rabbitmq_server_uri'] = undefined; -/** - * @member {String} rabbitmq_server_user - */ - -DSProducerDetails.prototype['rabbitmq_server_user'] = undefined; -/** - * @member {String} rabbitmq_user_conf_permission - */ - -DSProducerDetails.prototype['rabbitmq_user_conf_permission'] = undefined; -/** - * @member {String} rabbitmq_user_read_permission - */ - -DSProducerDetails.prototype['rabbitmq_user_read_permission'] = undefined; -/** - * @member {String} rabbitmq_user_tags - */ - -DSProducerDetails.prototype['rabbitmq_user_tags'] = undefined; -/** - * @member {String} rabbitmq_user_vhost - */ - -DSProducerDetails.prototype['rabbitmq_user_vhost'] = undefined; -/** - * @member {String} rabbitmq_user_write_permission - */ - -DSProducerDetails.prototype['rabbitmq_user_write_permission'] = undefined; -/** - * @member {Array.} redirect_uris - */ - -DSProducerDetails.prototype['redirect_uris'] = undefined; -/** - * @member {String} redshift_creation_statements - */ - -DSProducerDetails.prototype['redshift_creation_statements'] = undefined; -/** - * @member {Array.} restricted_scopes - */ - -DSProducerDetails.prototype['restricted_scopes'] = undefined; -/** - * @member {String} revoke_sync_url - */ - -DSProducerDetails.prototype['revoke_sync_url'] = undefined; -/** - * @member {String} rotate_sync_url - */ - -DSProducerDetails.prototype['rotate_sync_url'] = undefined; -/** - * @member {Array.} scopes - */ - -DSProducerDetails.prototype['scopes'] = undefined; -/** - * @member {module:model/SecureRemoteAccess} secure_remote_access_details - */ - -DSProducerDetails.prototype['secure_remote_access_details'] = undefined; -/** - * @member {Number} session_extension_warn_interval_min - */ - -DSProducerDetails.prototype['session_extension_warn_interval_min'] = undefined; -/** - * @member {String} sf_account - */ - -DSProducerDetails.prototype['sf_account'] = undefined; -/** - * generated users info - * @member {String} sf_user_role - */ - -DSProducerDetails.prototype['sf_user_role'] = undefined; -/** - * @member {String} sf_warehouse_name - */ - -DSProducerDetails.prototype['sf_warehouse_name'] = undefined; -/** - * TODO delete this after migration - * @member {String} should_stop - */ - -DSProducerDetails.prototype['should_stop'] = undefined; -/** - * @member {String} signing_algorithm - */ - -DSProducerDetails.prototype['signing_algorithm'] = undefined; -/** - * (Optional) SSLConnectionCertificate defines the certificate for SSL connection. Must be base64 certificate loaded by UI using file loader field - * @member {String} ssl_connection_certificate - */ - -DSProducerDetails.prototype['ssl_connection_certificate'] = undefined; -/** - * (Optional) SSLConnectionMode defines if SSL mode will be used to connect to DB - * @member {Boolean} ssl_connection_mode - */ - -DSProducerDetails.prototype['ssl_connection_mode'] = undefined; -/** - * @member {String} subject_dn - */ - -DSProducerDetails.prototype['subject_dn'] = undefined; -/** - * @member {Array.} tags - */ - -DSProducerDetails.prototype['tags'] = undefined; -/** - * @member {Number} timeout_seconds - */ - -DSProducerDetails.prototype['timeout_seconds'] = undefined; -/** - * @member {Boolean} use_gw_cloud_identity - */ - -DSProducerDetails.prototype['use_gw_cloud_identity'] = undefined; -/** - * @member {Boolean} use_gw_service_account - */ - -DSProducerDetails.prototype['use_gw_service_account'] = undefined; -/** - * @member {String} user_name - */ - -DSProducerDetails.prototype['user_name'] = undefined; -/** - * @member {String} user_password - */ - -DSProducerDetails.prototype['user_password'] = undefined; -/** - * @member {String} user_principal_name - */ - -DSProducerDetails.prototype['user_principal_name'] = undefined; -/** - * @member {String} user_ttl - */ - -DSProducerDetails.prototype['user_ttl'] = undefined; -/** - * @member {Number} username_length - */ - -DSProducerDetails.prototype['username_length'] = undefined; -/** - * @member {String} username_policy - */ - -DSProducerDetails.prototype['username_policy'] = undefined; -/** - * @member {Boolean} venafi_allow_subdomains - */ - -DSProducerDetails.prototype['venafi_allow_subdomains'] = undefined; -/** - * @member {Array.} venafi_allowed_domains - */ - -DSProducerDetails.prototype['venafi_allowed_domains'] = undefined; -/** - * @member {String} venafi_api_key - */ - -DSProducerDetails.prototype['venafi_api_key'] = undefined; -/** - * @member {String} venafi_auto_generated_folder - */ - -DSProducerDetails.prototype['venafi_auto_generated_folder'] = undefined; -/** - * @member {String} venafi_base_url - */ - -DSProducerDetails.prototype['venafi_base_url'] = undefined; -/** - * @member {Boolean} venafi_root_first_in_chain - */ - -DSProducerDetails.prototype['venafi_root_first_in_chain'] = undefined; -/** - * @member {Boolean} venafi_sign_using_akeyless_pki - */ - -DSProducerDetails.prototype['venafi_sign_using_akeyless_pki'] = undefined; -/** - * @member {String} venafi_signer_key_name - */ - -DSProducerDetails.prototype['venafi_signer_key_name'] = undefined; -/** - * @member {Boolean} venafi_store_private_key - */ - -DSProducerDetails.prototype['venafi_store_private_key'] = undefined; -/** - * @member {String} venafi_tpp_access_token - */ - -DSProducerDetails.prototype['venafi_tpp_access_token'] = undefined; -/** - * @member {String} venafi_tpp_client_id - */ - -DSProducerDetails.prototype['venafi_tpp_client_id'] = undefined; -/** - * Deprecated: VenafiAccessToken and VenafiRefreshToken should be used instead - * @member {String} venafi_tpp_password - */ - -DSProducerDetails.prototype['venafi_tpp_password'] = undefined; -/** - * @member {String} venafi_tpp_refresh_token - */ - -DSProducerDetails.prototype['venafi_tpp_refresh_token'] = undefined; -/** - * Deprecated: VenafiAccessToken and VenafiRefreshToken should be used instead - * @member {String} venafi_tpp_username - */ - -DSProducerDetails.prototype['venafi_tpp_username'] = undefined; -/** - * @member {Boolean} venafi_use_tpp - */ - -DSProducerDetails.prototype['venafi_use_tpp'] = undefined; -/** - * @member {String} venafi_zone - */ - -DSProducerDetails.prototype['venafi_zone'] = undefined; -/** - * @member {Number} warn_before_user_expiration_min - */ - -DSProducerDetails.prototype['warn_before_user_expiration_min'] = undefined; -var _default = DSProducerDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 2116: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DataProtectionSection model module. - * @module model/DataProtectionSection - * @version 3.3.16 - */ -var DataProtectionSection = /*#__PURE__*/function () { - /** - * Constructs a new DataProtectionSection. - * We need the fields to be pointers as we use the same struct for partial updates as well - * @alias module:model/DataProtectionSection - */ - function DataProtectionSection() { - _classCallCheck(this, DataProtectionSection); - - DataProtectionSection.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DataProtectionSection, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DataProtectionSection from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DataProtectionSection} obj Optional instance to populate. - * @return {module:model/DataProtectionSection} The populated DataProtectionSection instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DataProtectionSection(); - - if (data.hasOwnProperty('enable_classic_key_protection')) { - obj['enable_classic_key_protection'] = _ApiClient["default"].convertToType(data['enable_classic_key_protection'], 'Boolean'); - } - } - - return obj; - } - }]); - - return DataProtectionSection; -}(); -/** - * @member {Boolean} enable_classic_key_protection - */ - - -DataProtectionSection.prototype['enable_classic_key_protection'] = undefined; -var _default = DataProtectionSection; -exports["default"] = _default; - -/***/ }), - -/***/ 26413: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DatadogForwardingConfig model module. - * @module model/DatadogForwardingConfig - * @version 3.3.16 - */ -var DatadogForwardingConfig = /*#__PURE__*/function () { - /** - * Constructs a new DatadogForwardingConfig. - * @alias module:model/DatadogForwardingConfig - */ - function DatadogForwardingConfig() { - _classCallCheck(this, DatadogForwardingConfig); - - DatadogForwardingConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DatadogForwardingConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DatadogForwardingConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DatadogForwardingConfig} obj Optional instance to populate. - * @return {module:model/DatadogForwardingConfig} The populated DatadogForwardingConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DatadogForwardingConfig(); - - if (data.hasOwnProperty('datadog_api_key')) { - obj['datadog_api_key'] = _ApiClient["default"].convertToType(data['datadog_api_key'], 'String'); - } - - if (data.hasOwnProperty('datadog_host')) { - obj['datadog_host'] = _ApiClient["default"].convertToType(data['datadog_host'], 'String'); - } - - if (data.hasOwnProperty('datadog_log_service')) { - obj['datadog_log_service'] = _ApiClient["default"].convertToType(data['datadog_log_service'], 'String'); - } - - if (data.hasOwnProperty('datadog_log_source')) { - obj['datadog_log_source'] = _ApiClient["default"].convertToType(data['datadog_log_source'], 'String'); - } - - if (data.hasOwnProperty('datadog_log_tags')) { - obj['datadog_log_tags'] = _ApiClient["default"].convertToType(data['datadog_log_tags'], 'String'); - } - } - - return obj; - } - }]); - - return DatadogForwardingConfig; -}(); -/** - * @member {String} datadog_api_key - */ - - -DatadogForwardingConfig.prototype['datadog_api_key'] = undefined; -/** - * @member {String} datadog_host - */ - -DatadogForwardingConfig.prototype['datadog_host'] = undefined; -/** - * @member {String} datadog_log_service - */ - -DatadogForwardingConfig.prototype['datadog_log_service'] = undefined; -/** - * @member {String} datadog_log_source - */ - -DatadogForwardingConfig.prototype['datadog_log_source'] = undefined; -/** - * @member {String} datadog_log_tags - */ - -DatadogForwardingConfig.prototype['datadog_log_tags'] = undefined; -var _default = DatadogForwardingConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 33853: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DbTargetDetails model module. - * @module model/DbTargetDetails - * @version 3.3.16 - */ -var DbTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new DbTargetDetails. - * DbTargetDetails - * @alias module:model/DbTargetDetails - */ - function DbTargetDetails() { - _classCallCheck(this, DbTargetDetails); - - DbTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DbTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DbTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DbTargetDetails} obj Optional instance to populate. - * @return {module:model/DbTargetDetails} The populated DbTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DbTargetDetails(); - - if (data.hasOwnProperty('db_host_name')) { - obj['db_host_name'] = _ApiClient["default"].convertToType(data['db_host_name'], 'String'); - } - - if (data.hasOwnProperty('db_name')) { - obj['db_name'] = _ApiClient["default"].convertToType(data['db_name'], 'String'); - } - - if (data.hasOwnProperty('db_port')) { - obj['db_port'] = _ApiClient["default"].convertToType(data['db_port'], 'String'); - } - - if (data.hasOwnProperty('db_private_key')) { - obj['db_private_key'] = _ApiClient["default"].convertToType(data['db_private_key'], 'String'); - } - - if (data.hasOwnProperty('db_private_key_passphrase')) { - obj['db_private_key_passphrase'] = _ApiClient["default"].convertToType(data['db_private_key_passphrase'], 'String'); - } - - if (data.hasOwnProperty('db_pwd')) { - obj['db_pwd'] = _ApiClient["default"].convertToType(data['db_pwd'], 'String'); - } - - if (data.hasOwnProperty('db_server_certificates')) { - obj['db_server_certificates'] = _ApiClient["default"].convertToType(data['db_server_certificates'], 'String'); - } - - if (data.hasOwnProperty('db_server_name')) { - obj['db_server_name'] = _ApiClient["default"].convertToType(data['db_server_name'], 'String'); - } - - if (data.hasOwnProperty('db_user_name')) { - obj['db_user_name'] = _ApiClient["default"].convertToType(data['db_user_name'], 'String'); - } - - if (data.hasOwnProperty('sf_account')) { - obj['sf_account'] = _ApiClient["default"].convertToType(data['sf_account'], 'String'); - } - - if (data.hasOwnProperty('ssl_connection_certificate')) { - obj['ssl_connection_certificate'] = _ApiClient["default"].convertToType(data['ssl_connection_certificate'], 'String'); - } - - if (data.hasOwnProperty('ssl_connection_mode')) { - obj['ssl_connection_mode'] = _ApiClient["default"].convertToType(data['ssl_connection_mode'], 'Boolean'); - } - } - - return obj; - } - }]); - - return DbTargetDetails; -}(); -/** - * @member {String} db_host_name - */ - - -DbTargetDetails.prototype['db_host_name'] = undefined; -/** - * @member {String} db_name - */ - -DbTargetDetails.prototype['db_name'] = undefined; -/** - * @member {String} db_port - */ - -DbTargetDetails.prototype['db_port'] = undefined; -/** - * (Optional) Private Key in PEM format - * @member {String} db_private_key - */ - -DbTargetDetails.prototype['db_private_key'] = undefined; -/** - * @member {String} db_private_key_passphrase - */ - -DbTargetDetails.prototype['db_private_key_passphrase'] = undefined; -/** - * @member {String} db_pwd - */ - -DbTargetDetails.prototype['db_pwd'] = undefined; -/** - * (Optional) DBServerCertificates defines the set of root certificate authorities that clients use when verifying server certificates. If DBServerCertificates is empty, TLS uses the host's root CA set. - * @member {String} db_server_certificates - */ - -DbTargetDetails.prototype['db_server_certificates'] = undefined; -/** - * (Optional) ServerName is used to verify the hostname on the returned certificates unless InsecureSkipVerify is given. It is also included in the client's handshake to support virtual hosting unless it is an IP address. - * @member {String} db_server_name - */ - -DbTargetDetails.prototype['db_server_name'] = undefined; -/** - * @member {String} db_user_name - */ - -DbTargetDetails.prototype['db_user_name'] = undefined; -/** - * @member {String} sf_account - */ - -DbTargetDetails.prototype['sf_account'] = undefined; -/** - * (Optional) SSLConnectionCertificate defines the certificate for SSL connection. Must be base64 certificate loaded by UI using file loader field - * @member {String} ssl_connection_certificate - */ - -DbTargetDetails.prototype['ssl_connection_certificate'] = undefined; -/** - * (Optional) SSLConnectionMode defines if SSL mode will be used to connect to DB - * @member {Boolean} ssl_connection_mode - */ - -DbTargetDetails.prototype['ssl_connection_mode'] = undefined; -var _default = DbTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 25823: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Decrypt model module. - * @module model/Decrypt - * @version 3.3.16 - */ -var Decrypt = /*#__PURE__*/function () { - /** - * Constructs a new Decrypt. - * decrypt is a command that decrypts ciphertext into plaintext by using an AES key. - * @alias module:model/Decrypt - * @param keyName {String} The name of the key to use in the decryption process - */ - function Decrypt(keyName) { - _classCallCheck(this, Decrypt); - - Decrypt.initialize(this, keyName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Decrypt, null, [{ - key: "initialize", - value: function initialize(obj, keyName) { - obj['key-name'] = keyName; - } - /** - * Constructs a Decrypt from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Decrypt} obj Optional instance to populate. - * @return {module:model/Decrypt} The populated Decrypt instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Decrypt(); - - if (data.hasOwnProperty('ciphertext')) { - obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); - } - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('encryption-context')) { - obj['encryption-context'] = _ApiClient["default"].convertToType(data['encryption-context'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('output-format')) { - obj['output-format'] = _ApiClient["default"].convertToType(data['output-format'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return Decrypt; -}(); -/** - * Ciphertext to be decrypted in base64 encoded format - * @member {String} ciphertext - */ - - -Decrypt.prototype['ciphertext'] = undefined; -/** - * The display id of the key to use in the decryption process - * @member {String} display-id - */ - -Decrypt.prototype['display-id'] = undefined; -/** - * The encryption context. If this was specified in the encrypt command, it must be specified here or the decryption operation will fail - * @member {Object.} encryption-context - */ - -Decrypt.prototype['encryption-context'] = undefined; -/** - * The item id of the key to use in the decryption process - * @member {Number} item-id - */ - -Decrypt.prototype['item-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -Decrypt.prototype['json'] = false; -/** - * The name of the key to use in the decryption process - * @member {String} key-name - */ - -Decrypt.prototype['key-name'] = undefined; -/** - * If specified, the output will be formatted accordingly. options: [base64] - * @member {String} output-format - */ - -Decrypt.prototype['output-format'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -Decrypt.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -Decrypt.prototype['uid-token'] = undefined; -/** - * key version (relevant only for classic key) - * @member {Number} version - */ - -Decrypt.prototype['version'] = undefined; -var _default = Decrypt; -exports["default"] = _default; - -/***/ }), - -/***/ 88873: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DecryptFile model module. - * @module model/DecryptFile - * @version 3.3.16 - */ -var DecryptFile = /*#__PURE__*/function () { - /** - * Constructs a new DecryptFile. - * @alias module:model/DecryptFile - * @param _in {String} Path to the file to be decrypted. If not provided, the content will be taken from stdin - * @param keyName {String} The name of the key to use in the decryption process - */ - function DecryptFile(_in, keyName) { - _classCallCheck(this, DecryptFile); - - DecryptFile.initialize(this, _in, keyName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DecryptFile, null, [{ - key: "initialize", - value: function initialize(obj, _in, keyName) { - obj['in'] = _in; - obj['key-name'] = keyName; - } - /** - * Constructs a DecryptFile from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptFile} obj Optional instance to populate. - * @return {module:model/DecryptFile} The populated DecryptFile instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DecryptFile(); - - if (data.hasOwnProperty('cyphertext-header')) { - obj['cyphertext-header'] = _ApiClient["default"].convertToType(data['cyphertext-header'], 'String'); - } - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('in')) { - obj['in'] = _ApiClient["default"].convertToType(data['in'], 'String'); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('out')) { - obj['out'] = _ApiClient["default"].convertToType(data['out'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DecryptFile; -}(); -/** - * @member {String} cyphertext-header - */ - - -DecryptFile.prototype['cyphertext-header'] = undefined; -/** - * The display id of the key to use in the decryption process - * @member {String} display-id - */ - -DecryptFile.prototype['display-id'] = undefined; -/** - * Path to the file to be decrypted. If not provided, the content will be taken from stdin - * @member {String} in - */ - -DecryptFile.prototype['in'] = undefined; -/** - * The item id of the key to use in the decryption process - * @member {Number} item-id - */ - -DecryptFile.prototype['item-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -DecryptFile.prototype['json'] = false; -/** - * The name of the key to use in the decryption process - * @member {String} key-name - */ - -DecryptFile.prototype['key-name'] = undefined; -/** - * Path to the output file. If not provided, the output will be sent to stdout - * @member {String} out - */ - -DecryptFile.prototype['out'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DecryptFile.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DecryptFile.prototype['uid-token'] = undefined; -var _default = DecryptFile; -exports["default"] = _default; - -/***/ }), - -/***/ 35180: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DecryptFileOutput model module. - * @module model/DecryptFileOutput - * @version 3.3.16 - */ -var DecryptFileOutput = /*#__PURE__*/function () { - /** - * Constructs a new DecryptFileOutput. - * @alias module:model/DecryptFileOutput - */ - function DecryptFileOutput() { - _classCallCheck(this, DecryptFileOutput); - - DecryptFileOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DecryptFileOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DecryptFileOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptFileOutput} obj Optional instance to populate. - * @return {module:model/DecryptFileOutput} The populated DecryptFileOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DecryptFileOutput(); - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - - if (data.hasOwnProperty('plain_text')) { - obj['plain_text'] = _ApiClient["default"].convertToType(data['plain_text'], 'String'); - } - } - - return obj; - } - }]); - - return DecryptFileOutput; -}(); -/** - * @member {String} path - */ - - -DecryptFileOutput.prototype['path'] = undefined; -/** - * @member {String} plain_text - */ - -DecryptFileOutput.prototype['plain_text'] = undefined; -var _default = DecryptFileOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 61391: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DecryptGPG model module. - * @module model/DecryptGPG - * @version 3.3.16 - */ -var DecryptGPG = /*#__PURE__*/function () { - /** - * Constructs a new DecryptGPG. - * @alias module:model/DecryptGPG - * @param ciphertext {String} Ciphertext to be decrypted in base64 encoded format - * @param keyName {String} The name of the key to use in the decryption process - */ - function DecryptGPG(ciphertext, keyName) { - _classCallCheck(this, DecryptGPG); - - DecryptGPG.initialize(this, ciphertext, keyName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DecryptGPG, null, [{ - key: "initialize", - value: function initialize(obj, ciphertext, keyName) { - obj['ciphertext'] = ciphertext; - obj['key-name'] = keyName; - } - /** - * Constructs a DecryptGPG from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptGPG} obj Optional instance to populate. - * @return {module:model/DecryptGPG} The populated DecryptGPG instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DecryptGPG(); - - if (data.hasOwnProperty('ciphertext')) { - obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); - } - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('output-format')) { - obj['output-format'] = _ApiClient["default"].convertToType(data['output-format'], 'String'); - } - - if (data.hasOwnProperty('passphrase')) { - obj['passphrase'] = _ApiClient["default"].convertToType(data['passphrase'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DecryptGPG; -}(); -/** - * Ciphertext to be decrypted in base64 encoded format - * @member {String} ciphertext - */ - - -DecryptGPG.prototype['ciphertext'] = undefined; -/** - * The display id of the key to use in the decryption process - * @member {String} display-id - */ - -DecryptGPG.prototype['display-id'] = undefined; -/** - * The item id of the key to use in the decryption process - * @member {Number} item-id - */ - -DecryptGPG.prototype['item-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -DecryptGPG.prototype['json'] = false; -/** - * The name of the key to use in the decryption process - * @member {String} key-name - */ - -DecryptGPG.prototype['key-name'] = undefined; -/** - * If specified, the output will be formatted accordingly. options: [base64] - * @member {String} output-format - */ - -DecryptGPG.prototype['output-format'] = undefined; -/** - * Passphrase that was used to generate the key - * @member {String} passphrase - */ - -DecryptGPG.prototype['passphrase'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DecryptGPG.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DecryptGPG.prototype['uid-token'] = undefined; -var _default = DecryptGPG; -exports["default"] = _default; - -/***/ }), - -/***/ 64758: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DecryptGPGOutput model module. - * @module model/DecryptGPGOutput - * @version 3.3.16 - */ -var DecryptGPGOutput = /*#__PURE__*/function () { - /** - * Constructs a new DecryptGPGOutput. - * @alias module:model/DecryptGPGOutput - */ - function DecryptGPGOutput() { - _classCallCheck(this, DecryptGPGOutput); - - DecryptGPGOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DecryptGPGOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DecryptGPGOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptGPGOutput} obj Optional instance to populate. - * @return {module:model/DecryptGPGOutput} The populated DecryptGPGOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DecryptGPGOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return DecryptGPGOutput; -}(); -/** - * @member {String} result - */ - - -DecryptGPGOutput.prototype['result'] = undefined; -var _default = DecryptGPGOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 88134: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DecryptOutput model module. - * @module model/DecryptOutput - * @version 3.3.16 - */ -var DecryptOutput = /*#__PURE__*/function () { - /** - * Constructs a new DecryptOutput. - * @alias module:model/DecryptOutput - */ - function DecryptOutput() { - _classCallCheck(this, DecryptOutput); - - DecryptOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DecryptOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DecryptOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptOutput} obj Optional instance to populate. - * @return {module:model/DecryptOutput} The populated DecryptOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DecryptOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return DecryptOutput; -}(); -/** - * @member {String} result - */ - - -DecryptOutput.prototype['result'] = undefined; -var _default = DecryptOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 61013: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DecryptPKCS1 model module. - * @module model/DecryptPKCS1 - * @version 3.3.16 - */ -var DecryptPKCS1 = /*#__PURE__*/function () { - /** - * Constructs a new DecryptPKCS1. - * @alias module:model/DecryptPKCS1 - * @param ciphertext {String} Ciphertext to be decrypted in base64 encoded format - * @param keyName {String} The name of the key to use in the decryption process - */ - function DecryptPKCS1(ciphertext, keyName) { - _classCallCheck(this, DecryptPKCS1); - - DecryptPKCS1.initialize(this, ciphertext, keyName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DecryptPKCS1, null, [{ - key: "initialize", - value: function initialize(obj, ciphertext, keyName) { - obj['ciphertext'] = ciphertext; - obj['key-name'] = keyName; - } - /** - * Constructs a DecryptPKCS1 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptPKCS1} obj Optional instance to populate. - * @return {module:model/DecryptPKCS1} The populated DecryptPKCS1 instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DecryptPKCS1(); - - if (data.hasOwnProperty('ciphertext')) { - obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); - } - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('output-format')) { - obj['output-format'] = _ApiClient["default"].convertToType(data['output-format'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return DecryptPKCS1; -}(); -/** - * Ciphertext to be decrypted in base64 encoded format - * @member {String} ciphertext - */ - - -DecryptPKCS1.prototype['ciphertext'] = undefined; -/** - * The display id of the key to use in the decryption process - * @member {String} display-id - */ - -DecryptPKCS1.prototype['display-id'] = undefined; -/** - * The item id of the key to use in the decryption process - * @member {Number} item-id - */ - -DecryptPKCS1.prototype['item-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -DecryptPKCS1.prototype['json'] = false; -/** - * The name of the key to use in the decryption process - * @member {String} key-name - */ - -DecryptPKCS1.prototype['key-name'] = undefined; -/** - * If specified, the output will be formatted accordingly. options: [base64] - * @member {String} output-format - */ - -DecryptPKCS1.prototype['output-format'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DecryptPKCS1.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DecryptPKCS1.prototype['uid-token'] = undefined; -/** - * key version (relevant only for classic key) - * @member {Number} version - */ - -DecryptPKCS1.prototype['version'] = undefined; -var _default = DecryptPKCS1; -exports["default"] = _default; - -/***/ }), - -/***/ 88320: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DecryptPKCS1Output model module. - * @module model/DecryptPKCS1Output - * @version 3.3.16 - */ -var DecryptPKCS1Output = /*#__PURE__*/function () { - /** - * Constructs a new DecryptPKCS1Output. - * @alias module:model/DecryptPKCS1Output - */ - function DecryptPKCS1Output() { - _classCallCheck(this, DecryptPKCS1Output); - - DecryptPKCS1Output.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DecryptPKCS1Output, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DecryptPKCS1Output from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptPKCS1Output} obj Optional instance to populate. - * @return {module:model/DecryptPKCS1Output} The populated DecryptPKCS1Output instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DecryptPKCS1Output(); - - if (data.hasOwnProperty('plaintext')) { - obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); - } - } - - return obj; - } - }]); - - return DecryptPKCS1Output; -}(); -/** - * @member {String} plaintext - */ - - -DecryptPKCS1Output.prototype['plaintext'] = undefined; -var _default = DecryptPKCS1Output; -exports["default"] = _default; - -/***/ }), - -/***/ 90932: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DecryptWithClassicKey model module. - * @module model/DecryptWithClassicKey - * @version 3.3.16 - */ -var DecryptWithClassicKey = /*#__PURE__*/function () { - /** - * Constructs a new DecryptWithClassicKey. - * @alias module:model/DecryptWithClassicKey - * @param ciphertext {String} Ciphertext to be decrypted in base64 encoded format - * @param displayId {String} The name of the key to use in the encryption process - * @param version {Number} classic key version - */ - function DecryptWithClassicKey(ciphertext, displayId, version) { - _classCallCheck(this, DecryptWithClassicKey); - - DecryptWithClassicKey.initialize(this, ciphertext, displayId, version); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DecryptWithClassicKey, null, [{ - key: "initialize", - value: function initialize(obj, ciphertext, displayId, version) { - obj['ciphertext'] = ciphertext; - obj['display-id'] = displayId; - obj['version'] = version; - } - /** - * Constructs a DecryptWithClassicKey from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptWithClassicKey} obj Optional instance to populate. - * @return {module:model/DecryptWithClassicKey} The populated DecryptWithClassicKey instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DecryptWithClassicKey(); - - if (data.hasOwnProperty('ciphertext')) { - obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); - } - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return DecryptWithClassicKey; -}(); -/** - * Ciphertext to be decrypted in base64 encoded format - * @member {String} ciphertext - */ - - -DecryptWithClassicKey.prototype['ciphertext'] = undefined; -/** - * The name of the key to use in the encryption process - * @member {String} display-id - */ - -DecryptWithClassicKey.prototype['display-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -DecryptWithClassicKey.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DecryptWithClassicKey.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DecryptWithClassicKey.prototype['uid-token'] = undefined; -/** - * classic key version - * @member {Number} version - */ - -DecryptWithClassicKey.prototype['version'] = undefined; -var _default = DecryptWithClassicKey; -exports["default"] = _default; - -/***/ }), - -/***/ 48133: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DecryptWithClassicKeyOutput model module. - * @module model/DecryptWithClassicKeyOutput - * @version 3.3.16 - */ -var DecryptWithClassicKeyOutput = /*#__PURE__*/function () { - /** - * Constructs a new DecryptWithClassicKeyOutput. - * @alias module:model/DecryptWithClassicKeyOutput - */ - function DecryptWithClassicKeyOutput() { - _classCallCheck(this, DecryptWithClassicKeyOutput); - - DecryptWithClassicKeyOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DecryptWithClassicKeyOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DecryptWithClassicKeyOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DecryptWithClassicKeyOutput} obj Optional instance to populate. - * @return {module:model/DecryptWithClassicKeyOutput} The populated DecryptWithClassicKeyOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DecryptWithClassicKeyOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return DecryptWithClassicKeyOutput; -}(); -/** - * @member {String} result - */ - - -DecryptWithClassicKeyOutput.prototype['result'] = undefined; -var _default = DecryptWithClassicKeyOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 12332: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DefaultConfigPart model module. - * @module model/DefaultConfigPart - * @version 3.3.16 - */ -var DefaultConfigPart = /*#__PURE__*/function () { - /** - * Constructs a new DefaultConfigPart. - * @alias module:model/DefaultConfigPart - */ - function DefaultConfigPart() { - _classCallCheck(this, DefaultConfigPart); - - DefaultConfigPart.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DefaultConfigPart, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DefaultConfigPart from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DefaultConfigPart} obj Optional instance to populate. - * @return {module:model/DefaultConfigPart} The populated DefaultConfigPart instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DefaultConfigPart(); - - if (data.hasOwnProperty('certificate_access_id')) { - obj['certificate_access_id'] = _ApiClient["default"].convertToType(data['certificate_access_id'], 'String'); - } - - if (data.hasOwnProperty('default_protection_key_id')) { - obj['default_protection_key_id'] = _ApiClient["default"].convertToType(data['default_protection_key_id'], 'Number'); - } - - if (data.hasOwnProperty('default_secret_location')) { - obj['default_secret_location'] = _ApiClient["default"].convertToType(data['default_secret_location'], 'String'); - } - - if (data.hasOwnProperty('oidc_access_id')) { - obj['oidc_access_id'] = _ApiClient["default"].convertToType(data['oidc_access_id'], 'String'); - } - - if (data.hasOwnProperty('saml_access_id')) { - obj['saml_access_id'] = _ApiClient["default"].convertToType(data['saml_access_id'], 'String'); - } - } - - return obj; - } - }]); - - return DefaultConfigPart; -}(); -/** - * @member {String} certificate_access_id - */ - - -DefaultConfigPart.prototype['certificate_access_id'] = undefined; -/** - * @member {Number} default_protection_key_id - */ - -DefaultConfigPart.prototype['default_protection_key_id'] = undefined; -/** - * @member {String} default_secret_location - */ - -DefaultConfigPart.prototype['default_secret_location'] = undefined; -/** - * @member {String} oidc_access_id - */ - -DefaultConfigPart.prototype['oidc_access_id'] = undefined; -/** - * @member {String} saml_access_id - */ - -DefaultConfigPart.prototype['saml_access_id'] = undefined; -var _default = DefaultConfigPart; -exports["default"] = _default; - -/***/ }), - -/***/ 63388: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteAuthMethod model module. - * @module model/DeleteAuthMethod - * @version 3.3.16 - */ -var DeleteAuthMethod = /*#__PURE__*/function () { - /** - * Constructs a new DeleteAuthMethod. - * @alias module:model/DeleteAuthMethod - * @param name {String} Auth Method name - */ - function DeleteAuthMethod(name) { - _classCallCheck(this, DeleteAuthMethod); - - DeleteAuthMethod.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteAuthMethod, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a DeleteAuthMethod from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteAuthMethod} obj Optional instance to populate. - * @return {module:model/DeleteAuthMethod} The populated DeleteAuthMethod instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteAuthMethod(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteAuthMethod; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -DeleteAuthMethod.prototype['json'] = false; -/** - * Auth Method name - * @member {String} name - */ - -DeleteAuthMethod.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DeleteAuthMethod.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DeleteAuthMethod.prototype['uid-token'] = undefined; -var _default = DeleteAuthMethod; -exports["default"] = _default; - -/***/ }), - -/***/ 85245: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteAuthMethodOutput model module. - * @module model/DeleteAuthMethodOutput - * @version 3.3.16 - */ -var DeleteAuthMethodOutput = /*#__PURE__*/function () { - /** - * Constructs a new DeleteAuthMethodOutput. - * @alias module:model/DeleteAuthMethodOutput - */ - function DeleteAuthMethodOutput() { - _classCallCheck(this, DeleteAuthMethodOutput); - - DeleteAuthMethodOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteAuthMethodOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DeleteAuthMethodOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteAuthMethodOutput} obj Optional instance to populate. - * @return {module:model/DeleteAuthMethodOutput} The populated DeleteAuthMethodOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteAuthMethodOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteAuthMethodOutput; -}(); -/** - * @member {String} name - */ - - -DeleteAuthMethodOutput.prototype['name'] = undefined; -var _default = DeleteAuthMethodOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 10611: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteAuthMethods model module. - * @module model/DeleteAuthMethods - * @version 3.3.16 - */ -var DeleteAuthMethods = /*#__PURE__*/function () { - /** - * Constructs a new DeleteAuthMethods. - * deleteAuthMethods is a command that deletes multiple auth methods from a given path. - * @alias module:model/DeleteAuthMethods - * @param path {String} Path to delete the auth methods from - */ - function DeleteAuthMethods(path) { - _classCallCheck(this, DeleteAuthMethods); - - DeleteAuthMethods.initialize(this, path); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteAuthMethods, null, [{ - key: "initialize", - value: function initialize(obj, path) { - obj['path'] = path; - } - /** - * Constructs a DeleteAuthMethods from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteAuthMethods} obj Optional instance to populate. - * @return {module:model/DeleteAuthMethods} The populated DeleteAuthMethods instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteAuthMethods(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteAuthMethods; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -DeleteAuthMethods.prototype['json'] = false; -/** - * Path to delete the auth methods from - * @member {String} path - */ - -DeleteAuthMethods.prototype['path'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DeleteAuthMethods.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DeleteAuthMethods.prototype['uid-token'] = undefined; -var _default = DeleteAuthMethods; -exports["default"] = _default; - -/***/ }), - -/***/ 76162: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteAuthMethodsOutput model module. - * @module model/DeleteAuthMethodsOutput - * @version 3.3.16 - */ -var DeleteAuthMethodsOutput = /*#__PURE__*/function () { - /** - * Constructs a new DeleteAuthMethodsOutput. - * @alias module:model/DeleteAuthMethodsOutput - */ - function DeleteAuthMethodsOutput() { - _classCallCheck(this, DeleteAuthMethodsOutput); - - DeleteAuthMethodsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteAuthMethodsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DeleteAuthMethodsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteAuthMethodsOutput} obj Optional instance to populate. - * @return {module:model/DeleteAuthMethodsOutput} The populated DeleteAuthMethodsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteAuthMethodsOutput(); - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteAuthMethodsOutput; -}(); -/** - * @member {String} path - */ - - -DeleteAuthMethodsOutput.prototype['path'] = undefined; -var _default = DeleteAuthMethodsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 85877: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteEventForwarder model module. - * @module model/DeleteEventForwarder - * @version 3.3.16 - */ -var DeleteEventForwarder = /*#__PURE__*/function () { - /** - * Constructs a new DeleteEventForwarder. - * @alias module:model/DeleteEventForwarder - * @param name {String} EventForwarder name - */ - function DeleteEventForwarder(name) { - _classCallCheck(this, DeleteEventForwarder); - - DeleteEventForwarder.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteEventForwarder, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a DeleteEventForwarder from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteEventForwarder} obj Optional instance to populate. - * @return {module:model/DeleteEventForwarder} The populated DeleteEventForwarder instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteEventForwarder(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteEventForwarder; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -DeleteEventForwarder.prototype['json'] = false; -/** - * EventForwarder name - * @member {String} name - */ - -DeleteEventForwarder.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DeleteEventForwarder.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DeleteEventForwarder.prototype['uid-token'] = undefined; -var _default = DeleteEventForwarder; -exports["default"] = _default; - -/***/ }), - -/***/ 36438: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteGatewayAllowedAccessId model module. - * @module model/DeleteGatewayAllowedAccessId - * @version 3.3.16 - */ -var DeleteGatewayAllowedAccessId = /*#__PURE__*/function () { - /** - * Constructs a new DeleteGatewayAllowedAccessId. - * deleteGatewayAllowedAccessId is a command that deletes access-id - * @alias module:model/DeleteGatewayAllowedAccessId - * @param accessId {String} The access id to be stripped of access to gateway - * @param clusterName {String} The name of the updated cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster - */ - function DeleteGatewayAllowedAccessId(accessId, clusterName) { - _classCallCheck(this, DeleteGatewayAllowedAccessId); - - DeleteGatewayAllowedAccessId.initialize(this, accessId, clusterName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteGatewayAllowedAccessId, null, [{ - key: "initialize", - value: function initialize(obj, accessId, clusterName) { - obj['access-id'] = accessId; - obj['cluster-name'] = clusterName; - } - /** - * Constructs a DeleteGatewayAllowedAccessId from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteGatewayAllowedAccessId} obj Optional instance to populate. - * @return {module:model/DeleteGatewayAllowedAccessId} The populated DeleteGatewayAllowedAccessId instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteGatewayAllowedAccessId(); - - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); - } - - if (data.hasOwnProperty('cluster-name')) { - obj['cluster-name'] = _ApiClient["default"].convertToType(data['cluster-name'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteGatewayAllowedAccessId; -}(); -/** - * The access id to be stripped of access to gateway - * @member {String} access-id - */ - - -DeleteGatewayAllowedAccessId.prototype['access-id'] = undefined; -/** - * The name of the updated cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster - * @member {String} cluster-name - */ - -DeleteGatewayAllowedAccessId.prototype['cluster-name'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -DeleteGatewayAllowedAccessId.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DeleteGatewayAllowedAccessId.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DeleteGatewayAllowedAccessId.prototype['uid-token'] = undefined; -var _default = DeleteGatewayAllowedAccessId; -exports["default"] = _default; - -/***/ }), - -/***/ 74979: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteGwCluster model module. - * @module model/DeleteGwCluster - * @version 3.3.16 - */ -var DeleteGwCluster = /*#__PURE__*/function () { - /** - * Constructs a new DeleteGwCluster. - * @alias module:model/DeleteGwCluster - * @param clusterName {String} Gateway Cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster - */ - function DeleteGwCluster(clusterName) { - _classCallCheck(this, DeleteGwCluster); - - DeleteGwCluster.initialize(this, clusterName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteGwCluster, null, [{ - key: "initialize", - value: function initialize(obj, clusterName) { - obj['cluster-name'] = clusterName; - } - /** - * Constructs a DeleteGwCluster from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteGwCluster} obj Optional instance to populate. - * @return {module:model/DeleteGwCluster} The populated DeleteGwCluster instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteGwCluster(); - - if (data.hasOwnProperty('cluster-name')) { - obj['cluster-name'] = _ApiClient["default"].convertToType(data['cluster-name'], 'String'); - } - - if (data.hasOwnProperty('force-deletion')) { - obj['force-deletion'] = _ApiClient["default"].convertToType(data['force-deletion'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteGwCluster; -}(); -/** - * Gateway Cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster - * @member {String} cluster-name - */ - - -DeleteGwCluster.prototype['cluster-name'] = undefined; -/** - * Enforce deletion - * @member {Boolean} force-deletion - */ - -DeleteGwCluster.prototype['force-deletion'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -DeleteGwCluster.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DeleteGwCluster.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DeleteGwCluster.prototype['uid-token'] = undefined; -var _default = DeleteGwCluster; -exports["default"] = _default; - -/***/ }), - -/***/ 55440: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteItem model module. - * @module model/DeleteItem - * @version 3.3.16 - */ -var DeleteItem = /*#__PURE__*/function () { - /** - * Constructs a new DeleteItem. - * @alias module:model/DeleteItem - * @param name {String} Item name - */ - function DeleteItem(name) { - _classCallCheck(this, DeleteItem); - - DeleteItem.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteItem, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a DeleteItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteItem} obj Optional instance to populate. - * @return {module:model/DeleteItem} The populated DeleteItem instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteItem(); - - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); - } - - if (data.hasOwnProperty('delete-immediately')) { - obj['delete-immediately'] = _ApiClient["default"].convertToType(data['delete-immediately'], 'Boolean'); - } - - if (data.hasOwnProperty('delete-in-days')) { - obj['delete-in-days'] = _ApiClient["default"].convertToType(data['delete-in-days'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return DeleteItem; -}(); -/** - * for personal password manager - * @member {String} accessibility - * @default 'regular' - */ - - -DeleteItem.prototype['accessibility'] = 'regular'; -/** - * When delete-in-days=-1, must be set - * @member {Boolean} delete-immediately - * @default false - */ - -DeleteItem.prototype['delete-immediately'] = false; -/** - * The number of days to wait before deleting the item (relevant for keys only) - * @member {Number} delete-in-days - * @default 7 - */ - -DeleteItem.prototype['delete-in-days'] = 7; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -DeleteItem.prototype['json'] = false; -/** - * Item name - * @member {String} name - */ - -DeleteItem.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DeleteItem.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DeleteItem.prototype['uid-token'] = undefined; -/** - * The specific version you want to delete - 0=last version, -1=entire item with all versions (default) - * @member {Number} version - * @default -1 - */ - -DeleteItem.prototype['version'] = -1; -var _default = DeleteItem; -exports["default"] = _default; - -/***/ }), - -/***/ 44409: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteItemOutput model module. - * @module model/DeleteItemOutput - * @version 3.3.16 - */ -var DeleteItemOutput = /*#__PURE__*/function () { - /** - * Constructs a new DeleteItemOutput. - * @alias module:model/DeleteItemOutput - */ - function DeleteItemOutput() { - _classCallCheck(this, DeleteItemOutput); - - DeleteItemOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteItemOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DeleteItemOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteItemOutput} obj Optional instance to populate. - * @return {module:model/DeleteItemOutput} The populated DeleteItemOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteItemOutput(); - - if (data.hasOwnProperty('deletion_date')) { - obj['deletion_date'] = _ApiClient["default"].convertToType(data['deletion_date'], 'Date'); - } - - if (data.hasOwnProperty('item_id')) { - obj['item_id'] = _ApiClient["default"].convertToType(data['item_id'], 'Number'); - } - - if (data.hasOwnProperty('item_name')) { - obj['item_name'] = _ApiClient["default"].convertToType(data['item_name'], 'String'); - } - - if (data.hasOwnProperty('version_deleted')) { - obj['version_deleted'] = _ApiClient["default"].convertToType(data['version_deleted'], 'Number'); - } - } - - return obj; - } - }]); - - return DeleteItemOutput; -}(); -/** - * @member {Date} deletion_date - */ - - -DeleteItemOutput.prototype['deletion_date'] = undefined; -/** - * @member {Number} item_id - */ - -DeleteItemOutput.prototype['item_id'] = undefined; -/** - * @member {String} item_name - */ - -DeleteItemOutput.prototype['item_name'] = undefined; -/** - * @member {Number} version_deleted - */ - -DeleteItemOutput.prototype['version_deleted'] = undefined; -var _default = DeleteItemOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 83663: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteItems model module. - * @module model/DeleteItems - * @version 3.3.16 - */ -var DeleteItems = /*#__PURE__*/function () { - /** - * Constructs a new DeleteItems. - * @alias module:model/DeleteItems - * @param path {String} Path to delete the items from - */ - function DeleteItems(path) { - _classCallCheck(this, DeleteItems); - - DeleteItems.initialize(this, path); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteItems, null, [{ - key: "initialize", - value: function initialize(obj, path) { - obj['path'] = path; - } - /** - * Constructs a DeleteItems from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteItems} obj Optional instance to populate. - * @return {module:model/DeleteItems} The populated DeleteItems instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteItems(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteItems; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -DeleteItems.prototype['json'] = false; -/** - * Path to delete the items from - * @member {String} path - */ - -DeleteItems.prototype['path'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DeleteItems.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DeleteItems.prototype['uid-token'] = undefined; -var _default = DeleteItems; -exports["default"] = _default; - -/***/ }), - -/***/ 79478: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteItemsOutput model module. - * @module model/DeleteItemsOutput - * @version 3.3.16 - */ -var DeleteItemsOutput = /*#__PURE__*/function () { - /** - * Constructs a new DeleteItemsOutput. - * @alias module:model/DeleteItemsOutput - */ - function DeleteItemsOutput() { - _classCallCheck(this, DeleteItemsOutput); - - DeleteItemsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteItemsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DeleteItemsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteItemsOutput} obj Optional instance to populate. - * @return {module:model/DeleteItemsOutput} The populated DeleteItemsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteItemsOutput(); - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteItemsOutput; -}(); -/** - * @member {String} path - */ - - -DeleteItemsOutput.prototype['path'] = undefined; -var _default = DeleteItemsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 13059: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteRole model module. - * @module model/DeleteRole - * @version 3.3.16 - */ -var DeleteRole = /*#__PURE__*/function () { - /** - * Constructs a new DeleteRole. - * @alias module:model/DeleteRole - * @param name {String} Role name - */ - function DeleteRole(name) { - _classCallCheck(this, DeleteRole); - - DeleteRole.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteRole, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a DeleteRole from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRole} obj Optional instance to populate. - * @return {module:model/DeleteRole} The populated DeleteRole instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteRole(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteRole; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -DeleteRole.prototype['json'] = false; -/** - * Role name - * @member {String} name - */ - -DeleteRole.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DeleteRole.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DeleteRole.prototype['uid-token'] = undefined; -var _default = DeleteRole; -exports["default"] = _default; - -/***/ }), - -/***/ 56192: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteRoleAssociation model module. - * @module model/DeleteRoleAssociation - * @version 3.3.16 - */ -var DeleteRoleAssociation = /*#__PURE__*/function () { - /** - * Constructs a new DeleteRoleAssociation. - * deleteRoleAssociation is a command that deletes an association between role and auth method. - * @alias module:model/DeleteRoleAssociation - * @param assocId {String} The association id to be deleted - */ - function DeleteRoleAssociation(assocId) { - _classCallCheck(this, DeleteRoleAssociation); - - DeleteRoleAssociation.initialize(this, assocId); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteRoleAssociation, null, [{ - key: "initialize", - value: function initialize(obj, assocId) { - obj['assoc-id'] = assocId; - } - /** - * Constructs a DeleteRoleAssociation from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRoleAssociation} obj Optional instance to populate. - * @return {module:model/DeleteRoleAssociation} The populated DeleteRoleAssociation instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteRoleAssociation(); - - if (data.hasOwnProperty('assoc-id')) { - obj['assoc-id'] = _ApiClient["default"].convertToType(data['assoc-id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteRoleAssociation; -}(); -/** - * The association id to be deleted - * @member {String} assoc-id - */ - - -DeleteRoleAssociation.prototype['assoc-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -DeleteRoleAssociation.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DeleteRoleAssociation.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DeleteRoleAssociation.prototype['uid-token'] = undefined; -var _default = DeleteRoleAssociation; -exports["default"] = _default; - -/***/ }), - -/***/ 99117: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteRoleRule model module. - * @module model/DeleteRoleRule - * @version 3.3.16 - */ -var DeleteRoleRule = /*#__PURE__*/function () { - /** - * Constructs a new DeleteRoleRule. - * @alias module:model/DeleteRoleRule - * @param path {String} The path the rule refers to - * @param roleName {String} The role name to be updated - */ - function DeleteRoleRule(path, roleName) { - _classCallCheck(this, DeleteRoleRule); - - DeleteRoleRule.initialize(this, path, roleName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteRoleRule, null, [{ - key: "initialize", - value: function initialize(obj, path, roleName) { - obj['path'] = path; - obj['role-name'] = roleName; - } - /** - * Constructs a DeleteRoleRule from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRoleRule} obj Optional instance to populate. - * @return {module:model/DeleteRoleRule} The populated DeleteRoleRule instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteRoleRule(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - - if (data.hasOwnProperty('role-name')) { - obj['role-name'] = _ApiClient["default"].convertToType(data['role-name'], 'String'); - } - - if (data.hasOwnProperty('rule-type')) { - obj['rule-type'] = _ApiClient["default"].convertToType(data['rule-type'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteRoleRule; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -DeleteRoleRule.prototype['json'] = false; -/** - * The path the rule refers to - * @member {String} path - */ - -DeleteRoleRule.prototype['path'] = undefined; -/** - * The role name to be updated - * @member {String} role-name - */ - -DeleteRoleRule.prototype['role-name'] = undefined; -/** - * item-rule, role-rule, auth-method-rule, search-rule, reports-rule, gw-reports-rule or sra-reports-rule - * @member {String} rule-type - * @default 'item-rule' - */ - -DeleteRoleRule.prototype['rule-type'] = 'item-rule'; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DeleteRoleRule.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DeleteRoleRule.prototype['uid-token'] = undefined; -var _default = DeleteRoleRule; -exports["default"] = _default; - -/***/ }), - -/***/ 98120: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteRoleRuleOutput model module. - * @module model/DeleteRoleRuleOutput - * @version 3.3.16 - */ -var DeleteRoleRuleOutput = /*#__PURE__*/function () { - /** - * Constructs a new DeleteRoleRuleOutput. - * @alias module:model/DeleteRoleRuleOutput - */ - function DeleteRoleRuleOutput() { - _classCallCheck(this, DeleteRoleRuleOutput); - - DeleteRoleRuleOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteRoleRuleOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DeleteRoleRuleOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRoleRuleOutput} obj Optional instance to populate. - * @return {module:model/DeleteRoleRuleOutput} The populated DeleteRoleRuleOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteRoleRuleOutput(); - - if (data.hasOwnProperty('deleted')) { - obj['deleted'] = _ApiClient["default"].convertToType(data['deleted'], 'Boolean'); - } - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteRoleRuleOutput; -}(); -/** - * @member {Boolean} deleted - */ - - -DeleteRoleRuleOutput.prototype['deleted'] = undefined; -/** - * @member {String} result - */ - -DeleteRoleRuleOutput.prototype['result'] = undefined; -var _default = DeleteRoleRuleOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 49222: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteRoles model module. - * @module model/DeleteRoles - * @version 3.3.16 - */ -var DeleteRoles = /*#__PURE__*/function () { - /** - * Constructs a new DeleteRoles. - * @alias module:model/DeleteRoles - * @param path {String} Path to delete the auth methods from - */ - function DeleteRoles(path) { - _classCallCheck(this, DeleteRoles); - - DeleteRoles.initialize(this, path); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteRoles, null, [{ - key: "initialize", - value: function initialize(obj, path) { - obj['path'] = path; - } - /** - * Constructs a DeleteRoles from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRoles} obj Optional instance to populate. - * @return {module:model/DeleteRoles} The populated DeleteRoles instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteRoles(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteRoles; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -DeleteRoles.prototype['json'] = false; -/** - * Path to delete the auth methods from - * @member {String} path - */ - -DeleteRoles.prototype['path'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DeleteRoles.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DeleteRoles.prototype['uid-token'] = undefined; -var _default = DeleteRoles; -exports["default"] = _default; - -/***/ }), - -/***/ 93094: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteTarget model module. - * @module model/DeleteTarget - * @version 3.3.16 - */ -var DeleteTarget = /*#__PURE__*/function () { - /** - * Constructs a new DeleteTarget. - * @alias module:model/DeleteTarget - * @param name {String} Target name - */ - function DeleteTarget(name) { - _classCallCheck(this, DeleteTarget); - - DeleteTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a DeleteTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteTarget} obj Optional instance to populate. - * @return {module:model/DeleteTarget} The populated DeleteTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteTarget(); - - if (data.hasOwnProperty('force-deletion')) { - obj['force-deletion'] = _ApiClient["default"].convertToType(data['force-deletion'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('target-version')) { - obj['target-version'] = _ApiClient["default"].convertToType(data['target-version'], 'Number'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteTarget; -}(); -/** - * Enforce deletion - * @member {Boolean} force-deletion - * @default false - */ - - -DeleteTarget.prototype['force-deletion'] = false; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -DeleteTarget.prototype['json'] = false; -/** - * Target name - * @member {String} name - */ - -DeleteTarget.prototype['name'] = undefined; -/** - * Target version - * @member {Number} target-version - */ - -DeleteTarget.prototype['target-version'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DeleteTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DeleteTarget.prototype['uid-token'] = undefined; -var _default = DeleteTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 36747: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteTargetAssociation model module. - * @module model/DeleteTargetAssociation - * @version 3.3.16 - */ -var DeleteTargetAssociation = /*#__PURE__*/function () { - /** - * Constructs a new DeleteTargetAssociation. - * deleteTargetAssociation is a command that deletes an association between target and item. - * @alias module:model/DeleteTargetAssociation - * @param name {String} Item name - */ - function DeleteTargetAssociation(name) { - _classCallCheck(this, DeleteTargetAssociation); - - DeleteTargetAssociation.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteTargetAssociation, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a DeleteTargetAssociation from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteTargetAssociation} obj Optional instance to populate. - * @return {module:model/DeleteTargetAssociation} The populated DeleteTargetAssociation instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteTargetAssociation(); - - if (data.hasOwnProperty('assoc-id')) { - obj['assoc-id'] = _ApiClient["default"].convertToType(data['assoc-id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteTargetAssociation; -}(); -/** - * The association id to be deleted - * @member {String} assoc-id - */ - - -DeleteTargetAssociation.prototype['assoc-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -DeleteTargetAssociation.prototype['json'] = false; -/** - * Item name - * @member {String} name - */ - -DeleteTargetAssociation.prototype['name'] = undefined; -/** - * The target to associate - * @member {String} target-name - */ - -DeleteTargetAssociation.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DeleteTargetAssociation.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DeleteTargetAssociation.prototype['uid-token'] = undefined; -var _default = DeleteTargetAssociation; -exports["default"] = _default; - -/***/ }), - -/***/ 22509: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeleteTargets model module. - * @module model/DeleteTargets - * @version 3.3.16 - */ -var DeleteTargets = /*#__PURE__*/function () { - /** - * Constructs a new DeleteTargets. - * @alias module:model/DeleteTargets - * @param path {String} Path to delete the targets from - */ - function DeleteTargets(path) { - _classCallCheck(this, DeleteTargets); - - DeleteTargets.initialize(this, path); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeleteTargets, null, [{ - key: "initialize", - value: function initialize(obj, path) { - obj['path'] = path; - } - /** - * Constructs a DeleteTargets from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteTargets} obj Optional instance to populate. - * @return {module:model/DeleteTargets} The populated DeleteTargets instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteTargets(); - - if (data.hasOwnProperty('force-deletion')) { - obj['force-deletion'] = _ApiClient["default"].convertToType(data['force-deletion'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DeleteTargets; -}(); -/** - * Enforce deletion - * @member {Boolean} force-deletion - * @default false - */ - - -DeleteTargets.prototype['force-deletion'] = false; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -DeleteTargets.prototype['json'] = false; -/** - * Path to delete the targets from - * @member {String} path - */ - -DeleteTargets.prototype['path'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DeleteTargets.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DeleteTargets.prototype['uid-token'] = undefined; -var _default = DeleteTargets; -exports["default"] = _default; - -/***/ }), - -/***/ 69284: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeriveKey model module. - * @module model/DeriveKey - * @version 3.3.16 - */ -var DeriveKey = /*#__PURE__*/function () { - /** - * Constructs a new DeriveKey. - * @alias module:model/DeriveKey - * @param alg {String} Kdf algorithm - * @param iter {Number} IterationCount the number of iterations - * @param keyLen {Number} KeyLength the byte length of the generated key - * @param name {String} Static Secret full name - */ - function DeriveKey(alg, iter, keyLen, name) { - _classCallCheck(this, DeriveKey); - - DeriveKey.initialize(this, alg, iter, keyLen, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeriveKey, null, [{ - key: "initialize", - value: function initialize(obj, alg, iter, keyLen, name) { - obj['alg'] = alg; - obj['iter'] = iter; - obj['key-len'] = keyLen; - obj['name'] = name; - } - /** - * Constructs a DeriveKey from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeriveKey} obj Optional instance to populate. - * @return {module:model/DeriveKey} The populated DeriveKey instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeriveKey(); - - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); - } - - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); - } - - if (data.hasOwnProperty('hash-function')) { - obj['hash-function'] = _ApiClient["default"].convertToType(data['hash-function'], 'String'); - } - - if (data.hasOwnProperty('iter')) { - obj['iter'] = _ApiClient["default"].convertToType(data['iter'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-len')) { - obj['key-len'] = _ApiClient["default"].convertToType(data['key-len'], 'Number'); - } - - if (data.hasOwnProperty('mem')) { - obj['mem'] = _ApiClient["default"].convertToType(data['mem'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('parallelism')) { - obj['parallelism'] = _ApiClient["default"].convertToType(data['parallelism'], 'Number'); - } - - if (data.hasOwnProperty('salt')) { - obj['salt'] = _ApiClient["default"].convertToType(data['salt'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DeriveKey; -}(); -/** - * for personal password manager - * @member {String} accessibility - * @default 'regular' - */ - - -DeriveKey.prototype['accessibility'] = 'regular'; -/** - * Kdf algorithm - * @member {String} alg - * @default 'pbkdf2' - */ - -DeriveKey.prototype['alg'] = 'pbkdf2'; -/** - * HashFunction the hash function to use (relevant for pbkdf2) - * @member {String} hash-function - * @default 'sha256' - */ - -DeriveKey.prototype['hash-function'] = 'sha256'; -/** - * IterationCount the number of iterations - * @member {Number} iter - */ - -DeriveKey.prototype['iter'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -DeriveKey.prototype['json'] = false; -/** - * KeyLength the byte length of the generated key - * @member {Number} key-len - */ - -DeriveKey.prototype['key-len'] = undefined; -/** - * MemorySizeInKb the memory paramter in kb (relevant for argon2id) - * @member {Number} mem - * @default 16384 - */ - -DeriveKey.prototype['mem'] = 16384; -/** - * Static Secret full name - * @member {String} name - */ - -DeriveKey.prototype['name'] = undefined; -/** - * Parallelism the number of threads to use (relevant for argon2id) - * @member {Number} parallelism - * @default 1 - */ - -DeriveKey.prototype['parallelism'] = 1; -/** - * Salt Base64 encoded salt value. If not provided, the salt will be generated as part of the operation. The salt should be securely-generated random bytes, minimum 64 bits, 128 bits is recommended - * @member {String} salt - */ - -DeriveKey.prototype['salt'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DeriveKey.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DeriveKey.prototype['uid-token'] = undefined; -var _default = DeriveKey; -exports["default"] = _default; - -/***/ }), - -/***/ 4117: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DeriveKeyOutput model module. - * @module model/DeriveKeyOutput - * @version 3.3.16 - */ -var DeriveKeyOutput = /*#__PURE__*/function () { - /** - * Constructs a new DeriveKeyOutput. - * @alias module:model/DeriveKeyOutput - */ - function DeriveKeyOutput() { - _classCallCheck(this, DeriveKeyOutput); - - DeriveKeyOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DeriveKeyOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DeriveKeyOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeriveKeyOutput} obj Optional instance to populate. - * @return {module:model/DeriveKeyOutput} The populated DeriveKeyOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeriveKeyOutput(); - - if (data.hasOwnProperty('Key')) { - obj['Key'] = _ApiClient["default"].convertToType(data['Key'], 'String'); - } - - if (data.hasOwnProperty('Salt')) { - obj['Salt'] = _ApiClient["default"].convertToType(data['Salt'], 'String'); - } - } - - return obj; - } - }]); - - return DeriveKeyOutput; -}(); -/** - * @member {String} Key - */ - - -DeriveKeyOutput.prototype['Key'] = undefined; -/** - * @member {String} Salt - */ - -DeriveKeyOutput.prototype['Salt'] = undefined; -var _default = DeriveKeyOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 80258: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DescribeAssoc model module. - * @module model/DescribeAssoc - * @version 3.3.16 - */ -var DescribeAssoc = /*#__PURE__*/function () { - /** - * Constructs a new DescribeAssoc. - * @alias module:model/DescribeAssoc - * @param assocId {String} The association id - */ - function DescribeAssoc(assocId) { - _classCallCheck(this, DescribeAssoc); - - DescribeAssoc.initialize(this, assocId); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DescribeAssoc, null, [{ - key: "initialize", - value: function initialize(obj, assocId) { - obj['assoc-id'] = assocId; - } - /** - * Constructs a DescribeAssoc from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DescribeAssoc} obj Optional instance to populate. - * @return {module:model/DescribeAssoc} The populated DescribeAssoc instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DescribeAssoc(); - - if (data.hasOwnProperty('assoc-id')) { - obj['assoc-id'] = _ApiClient["default"].convertToType(data['assoc-id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DescribeAssoc; -}(); -/** - * The association id - * @member {String} assoc-id - */ - - -DescribeAssoc.prototype['assoc-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -DescribeAssoc.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DescribeAssoc.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DescribeAssoc.prototype['uid-token'] = undefined; -var _default = DescribeAssoc; -exports["default"] = _default; - -/***/ }), - -/***/ 96290: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DescribeItem model module. - * @module model/DescribeItem - * @version 3.3.16 - */ -var DescribeItem = /*#__PURE__*/function () { - /** - * Constructs a new DescribeItem. - * @alias module:model/DescribeItem - * @param name {String} Item name - */ - function DescribeItem(name) { - _classCallCheck(this, DescribeItem); - - DescribeItem.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DescribeItem, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a DescribeItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DescribeItem} obj Optional instance to populate. - * @return {module:model/DescribeItem} The populated DescribeItem instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DescribeItem(); - - if (data.hasOwnProperty('bastion-details')) { - obj['bastion-details'] = _ApiClient["default"].convertToType(data['bastion-details'], 'Boolean'); - } - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('gateway-details')) { - obj['gateway-details'] = _ApiClient["default"].convertToType(data['gateway-details'], 'Boolean'); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('show-versions')) { - obj['show-versions'] = _ApiClient["default"].convertToType(data['show-versions'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DescribeItem; -}(); -/** - * Indicate if the item should return with ztb cluster details (url, etc) - * @member {Boolean} bastion-details - * @default false - */ - - -DescribeItem.prototype['bastion-details'] = false; -/** - * The display id of the item - * @member {String} display-id - */ - -DescribeItem.prototype['display-id'] = undefined; -/** - * Indicate if the item should return with clusters details (url, etc) - * @member {Boolean} gateway-details - * @default false - */ - -DescribeItem.prototype['gateway-details'] = false; -/** - * Item id of the item - * @member {Number} item-id - */ - -DescribeItem.prototype['item-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -DescribeItem.prototype['json'] = false; -/** - * Item name - * @member {String} name - */ - -DescribeItem.prototype['name'] = undefined; -/** - * Include all item versions in reply - * @member {Boolean} show-versions - * @default false - */ - -DescribeItem.prototype['show-versions'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DescribeItem.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DescribeItem.prototype['uid-token'] = undefined; -var _default = DescribeItem; -exports["default"] = _default; - -/***/ }), - -/***/ 5013: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DescribePermissions model module. - * @module model/DescribePermissions - * @version 3.3.16 - */ -var DescribePermissions = /*#__PURE__*/function () { - /** - * Constructs a new DescribePermissions. - * describePermissions is a command that shows which permissions your have to a particular path. - * @alias module:model/DescribePermissions - * @param path {String} Path to an object - * @param type {String} Type of object (item, am, role, target) - */ - function DescribePermissions(path, type) { - _classCallCheck(this, DescribePermissions); - - DescribePermissions.initialize(this, path, type); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DescribePermissions, null, [{ - key: "initialize", - value: function initialize(obj, path, type) { - obj['path'] = path; - obj['type'] = type; - } - /** - * Constructs a DescribePermissions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DescribePermissions} obj Optional instance to populate. - * @return {module:model/DescribePermissions} The populated DescribePermissions instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DescribePermissions(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DescribePermissions; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -DescribePermissions.prototype['json'] = false; -/** - * Path to an object - * @member {String} path - */ - -DescribePermissions.prototype['path'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DescribePermissions.prototype['token'] = undefined; -/** - * Type of object (item, am, role, target) - * @member {String} type - */ - -DescribePermissions.prototype['type'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DescribePermissions.prototype['uid-token'] = undefined; -var _default = DescribePermissions; -exports["default"] = _default; - -/***/ }), - -/***/ 88032: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DescribePermissionsOutput model module. - * @module model/DescribePermissionsOutput - * @version 3.3.16 - */ -var DescribePermissionsOutput = /*#__PURE__*/function () { - /** - * Constructs a new DescribePermissionsOutput. - * @alias module:model/DescribePermissionsOutput - */ - function DescribePermissionsOutput() { - _classCallCheck(this, DescribePermissionsOutput); - - DescribePermissionsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DescribePermissionsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DescribePermissionsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DescribePermissionsOutput} obj Optional instance to populate. - * @return {module:model/DescribePermissionsOutput} The populated DescribePermissionsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DescribePermissionsOutput(); - - if (data.hasOwnProperty('client_permissions')) { - obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); - } - } - - return obj; - } - }]); - - return DescribePermissionsOutput; -}(); -/** - * @member {Array.} client_permissions - */ - - -DescribePermissionsOutput.prototype['client_permissions'] = undefined; -var _default = DescribePermissionsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 57046: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DescribeSubClaims model module. - * @module model/DescribeSubClaims - * @version 3.3.16 - */ -var DescribeSubClaims = /*#__PURE__*/function () { - /** - * Constructs a new DescribeSubClaims. - * describe-sub-claims Get the sub-claims associated with the provided token or authentication profile - * @alias module:model/DescribeSubClaims - */ - function DescribeSubClaims() { - _classCallCheck(this, DescribeSubClaims); - - DescribeSubClaims.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DescribeSubClaims, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DescribeSubClaims from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DescribeSubClaims} obj Optional instance to populate. - * @return {module:model/DescribeSubClaims} The populated DescribeSubClaims instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DescribeSubClaims(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return DescribeSubClaims; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -DescribeSubClaims.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -DescribeSubClaims.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -DescribeSubClaims.prototype['uid-token'] = undefined; -var _default = DescribeSubClaims; -exports["default"] = _default; - -/***/ }), - -/***/ 15891: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DescribeSubClaimsOutput model module. - * @module model/DescribeSubClaimsOutput - * @version 3.3.16 - */ -var DescribeSubClaimsOutput = /*#__PURE__*/function () { - /** - * Constructs a new DescribeSubClaimsOutput. - * @alias module:model/DescribeSubClaimsOutput - */ - function DescribeSubClaimsOutput() { - _classCallCheck(this, DescribeSubClaimsOutput); - - DescribeSubClaimsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DescribeSubClaimsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DescribeSubClaimsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DescribeSubClaimsOutput} obj Optional instance to populate. - * @return {module:model/DescribeSubClaimsOutput} The populated DescribeSubClaimsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DescribeSubClaimsOutput(); - - if (data.hasOwnProperty('sub_claims')) { - obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { - 'String': ['String'] - }); - } - } - - return obj; - } - }]); - - return DescribeSubClaimsOutput; -}(); -/** - * @member {Object.>} sub_claims - */ - - -DescribeSubClaimsOutput.prototype['sub_claims'] = undefined; -var _default = DescribeSubClaimsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 97122: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Detokenize model module. - * @module model/Detokenize - * @version 3.3.16 - */ -var Detokenize = /*#__PURE__*/function () { - /** - * Constructs a new Detokenize. - * detokenize is a command that decrypts text with a tokenizer - * @alias module:model/Detokenize - * @param ciphertext {String} Data to be decrypted - * @param tokenizerName {String} The name of the tokenizer to use in the decryption process - */ - function Detokenize(ciphertext, tokenizerName) { - _classCallCheck(this, Detokenize); - - Detokenize.initialize(this, ciphertext, tokenizerName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Detokenize, null, [{ - key: "initialize", - value: function initialize(obj, ciphertext, tokenizerName) { - obj['ciphertext'] = ciphertext; - obj['tokenizer-name'] = tokenizerName; - } - /** - * Constructs a Detokenize from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Detokenize} obj Optional instance to populate. - * @return {module:model/Detokenize} The populated Detokenize instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Detokenize(); - - if (data.hasOwnProperty('ciphertext')) { - obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('tokenizer-name')) { - obj['tokenizer-name'] = _ApiClient["default"].convertToType(data['tokenizer-name'], 'String'); - } - - if (data.hasOwnProperty('tweak')) { - obj['tweak'] = _ApiClient["default"].convertToType(data['tweak'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return Detokenize; -}(); -/** - * Data to be decrypted - * @member {String} ciphertext - */ - - -Detokenize.prototype['ciphertext'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -Detokenize.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -Detokenize.prototype['token'] = undefined; -/** - * The name of the tokenizer to use in the decryption process - * @member {String} tokenizer-name - */ - -Detokenize.prototype['tokenizer-name'] = undefined; -/** - * Base64 encoded tweak for vaultless encryption - * @member {String} tweak - */ - -Detokenize.prototype['tweak'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -Detokenize.prototype['uid-token'] = undefined; -var _default = Detokenize; -exports["default"] = _default; - -/***/ }), - -/***/ 84807: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DetokenizeOutput model module. - * @module model/DetokenizeOutput - * @version 3.3.16 - */ -var DetokenizeOutput = /*#__PURE__*/function () { - /** - * Constructs a new DetokenizeOutput. - * @alias module:model/DetokenizeOutput - */ - function DetokenizeOutput() { - _classCallCheck(this, DetokenizeOutput); - - DetokenizeOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DetokenizeOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DetokenizeOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DetokenizeOutput} obj Optional instance to populate. - * @return {module:model/DetokenizeOutput} The populated DetokenizeOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DetokenizeOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return DetokenizeOutput; -}(); -/** - * @member {String} result - */ - - -DetokenizeOutput.prototype['result'] = undefined; -var _default = DetokenizeOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 57844: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DockerhubTargetDetails model module. - * @module model/DockerhubTargetDetails - * @version 3.3.16 - */ -var DockerhubTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new DockerhubTargetDetails. - * DockerhubTargetDetails - * @alias module:model/DockerhubTargetDetails - */ - function DockerhubTargetDetails() { - _classCallCheck(this, DockerhubTargetDetails); - - DockerhubTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DockerhubTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DockerhubTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DockerhubTargetDetails} obj Optional instance to populate. - * @return {module:model/DockerhubTargetDetails} The populated DockerhubTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DockerhubTargetDetails(); - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('user_name')) { - obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], 'String'); - } - } - - return obj; - } - }]); - - return DockerhubTargetDetails; -}(); -/** - * @member {String} password - */ - - -DockerhubTargetDetails.prototype['password'] = undefined; -/** - * @member {String} user_name - */ - -DockerhubTargetDetails.prototype['user_name'] = undefined; -var _default = DockerhubTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 98109: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The DynamicSecretProducerInfo model module. - * @module model/DynamicSecretProducerInfo - * @version 3.3.16 - */ -var DynamicSecretProducerInfo = /*#__PURE__*/function () { - /** - * Constructs a new DynamicSecretProducerInfo. - * DynamicSecretProducerInfo The dynamic secret producer info This parameter relevant and required only in case of create update dynamic secret. - * @alias module:model/DynamicSecretProducerInfo - */ - function DynamicSecretProducerInfo() { - _classCallCheck(this, DynamicSecretProducerInfo); - - DynamicSecretProducerInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(DynamicSecretProducerInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a DynamicSecretProducerInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DynamicSecretProducerInfo} obj Optional instance to populate. - * @return {module:model/DynamicSecretProducerInfo} The populated DynamicSecretProducerInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DynamicSecretProducerInfo(); - - if (data.hasOwnProperty('failure_message')) { - obj['failure_message'] = _ApiClient["default"].convertToType(data['failure_message'], 'String'); - } - - if (data.hasOwnProperty('gw_cluster_id')) { - obj['gw_cluster_id'] = _ApiClient["default"].convertToType(data['gw_cluster_id'], 'Number'); - } - - if (data.hasOwnProperty('k8s_allowed_namespaces')) { - obj['k8s_allowed_namespaces'] = _ApiClient["default"].convertToType(data['k8s_allowed_namespaces'], 'String'); - } - - if (data.hasOwnProperty('k8s_dynamic_mode')) { - obj['k8s_dynamic_mode'] = _ApiClient["default"].convertToType(data['k8s_dynamic_mode'], 'Boolean'); - } - - if (data.hasOwnProperty('producer_last_keep_alive')) { - obj['producer_last_keep_alive'] = _ApiClient["default"].convertToType(data['producer_last_keep_alive'], 'String'); - } - - if (data.hasOwnProperty('producer_metadata')) { - obj['producer_metadata'] = _ApiClient["default"].convertToType(data['producer_metadata'], 'String'); - } - - if (data.hasOwnProperty('producer_status')) { - obj['producer_status'] = _ApiClient["default"].convertToType(data['producer_status'], 'String'); - } - - if (data.hasOwnProperty('producer_type')) { - obj['producer_type'] = _ApiClient["default"].convertToType(data['producer_type'], 'String'); - } - } - - return obj; - } - }]); - - return DynamicSecretProducerInfo; -}(); -/** - * @member {String} failure_message - */ - - -DynamicSecretProducerInfo.prototype['failure_message'] = undefined; -/** - * @member {Number} gw_cluster_id - */ - -DynamicSecretProducerInfo.prototype['gw_cluster_id'] = undefined; -/** - * Relevant only for generic k8s producer - * @member {String} k8s_allowed_namespaces - */ - -DynamicSecretProducerInfo.prototype['k8s_allowed_namespaces'] = undefined; -/** - * Relevant only for generic k8s producer - * @member {Boolean} k8s_dynamic_mode - */ - -DynamicSecretProducerInfo.prototype['k8s_dynamic_mode'] = undefined; -/** - * @member {String} producer_last_keep_alive - */ - -DynamicSecretProducerInfo.prototype['producer_last_keep_alive'] = undefined; -/** - * @member {String} producer_metadata - */ - -DynamicSecretProducerInfo.prototype['producer_metadata'] = undefined; -/** - * RotationStatus defines types of rotation Status - * @member {String} producer_status - */ - -DynamicSecretProducerInfo.prototype['producer_status'] = undefined; -/** - * @member {String} producer_type - */ - -DynamicSecretProducerInfo.prototype['producer_type'] = undefined; -var _default = DynamicSecretProducerInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 18422: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EKSTargetDetails model module. - * @module model/EKSTargetDetails - * @version 3.3.16 - */ -var EKSTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new EKSTargetDetails. - * EKSTargetDetails defines details related to connecting to a EKS (Elastic Container Service) target - * @alias module:model/EKSTargetDetails - */ - function EKSTargetDetails() { - _classCallCheck(this, EKSTargetDetails); - - EKSTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EKSTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a EKSTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EKSTargetDetails} obj Optional instance to populate. - * @return {module:model/EKSTargetDetails} The populated EKSTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EKSTargetDetails(); - - if (data.hasOwnProperty('eks_access_key_id')) { - obj['eks_access_key_id'] = _ApiClient["default"].convertToType(data['eks_access_key_id'], 'String'); - } - - if (data.hasOwnProperty('eks_cluster_ca_certificate')) { - obj['eks_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['eks_cluster_ca_certificate'], 'String'); - } - - if (data.hasOwnProperty('eks_cluster_endpoint')) { - obj['eks_cluster_endpoint'] = _ApiClient["default"].convertToType(data['eks_cluster_endpoint'], 'String'); - } - - if (data.hasOwnProperty('eks_cluster_name')) { - obj['eks_cluster_name'] = _ApiClient["default"].convertToType(data['eks_cluster_name'], 'String'); - } - - if (data.hasOwnProperty('eks_region')) { - obj['eks_region'] = _ApiClient["default"].convertToType(data['eks_region'], 'String'); - } - - if (data.hasOwnProperty('eks_secret_access_key')) { - obj['eks_secret_access_key'] = _ApiClient["default"].convertToType(data['eks_secret_access_key'], 'String'); - } - - if (data.hasOwnProperty('use_gw_cloud_identity')) { - obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); - } - } - - return obj; - } - }]); - - return EKSTargetDetails; -}(); -/** - * @member {String} eks_access_key_id - */ - - -EKSTargetDetails.prototype['eks_access_key_id'] = undefined; -/** - * @member {String} eks_cluster_ca_certificate - */ - -EKSTargetDetails.prototype['eks_cluster_ca_certificate'] = undefined; -/** - * @member {String} eks_cluster_endpoint - */ - -EKSTargetDetails.prototype['eks_cluster_endpoint'] = undefined; -/** - * @member {String} eks_cluster_name - */ - -EKSTargetDetails.prototype['eks_cluster_name'] = undefined; -/** - * @member {String} eks_region - */ - -EKSTargetDetails.prototype['eks_region'] = undefined; -/** - * @member {String} eks_secret_access_key - */ - -EKSTargetDetails.prototype['eks_secret_access_key'] = undefined; -/** - * @member {Boolean} use_gw_cloud_identity - */ - -EKSTargetDetails.prototype['use_gw_cloud_identity'] = undefined; -var _default = EKSTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 15078: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ElasticsearchLogForwardingConfig model module. - * @module model/ElasticsearchLogForwardingConfig - * @version 3.3.16 - */ -var ElasticsearchLogForwardingConfig = /*#__PURE__*/function () { - /** - * Constructs a new ElasticsearchLogForwardingConfig. - * @alias module:model/ElasticsearchLogForwardingConfig - */ - function ElasticsearchLogForwardingConfig() { - _classCallCheck(this, ElasticsearchLogForwardingConfig); - - ElasticsearchLogForwardingConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ElasticsearchLogForwardingConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ElasticsearchLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ElasticsearchLogForwardingConfig} obj Optional instance to populate. - * @return {module:model/ElasticsearchLogForwardingConfig} The populated ElasticsearchLogForwardingConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ElasticsearchLogForwardingConfig(); - - if (data.hasOwnProperty('elasticsearch_api_key')) { - obj['elasticsearch_api_key'] = _ApiClient["default"].convertToType(data['elasticsearch_api_key'], 'String'); - } - - if (data.hasOwnProperty('elasticsearch_auth_type')) { - obj['elasticsearch_auth_type'] = _ApiClient["default"].convertToType(data['elasticsearch_auth_type'], 'String'); - } - - if (data.hasOwnProperty('elasticsearch_cloud_id')) { - obj['elasticsearch_cloud_id'] = _ApiClient["default"].convertToType(data['elasticsearch_cloud_id'], 'String'); - } - - if (data.hasOwnProperty('elasticsearch_enable_tls')) { - obj['elasticsearch_enable_tls'] = _ApiClient["default"].convertToType(data['elasticsearch_enable_tls'], 'Boolean'); - } - - if (data.hasOwnProperty('elasticsearch_index')) { - obj['elasticsearch_index'] = _ApiClient["default"].convertToType(data['elasticsearch_index'], 'String'); - } - - if (data.hasOwnProperty('elasticsearch_nodes')) { - obj['elasticsearch_nodes'] = _ApiClient["default"].convertToType(data['elasticsearch_nodes'], 'String'); - } - - if (data.hasOwnProperty('elasticsearch_password')) { - obj['elasticsearch_password'] = _ApiClient["default"].convertToType(data['elasticsearch_password'], 'String'); - } - - if (data.hasOwnProperty('elasticsearch_server_type')) { - obj['elasticsearch_server_type'] = _ApiClient["default"].convertToType(data['elasticsearch_server_type'], 'String'); - } - - if (data.hasOwnProperty('elasticsearch_tls_certificate')) { - obj['elasticsearch_tls_certificate'] = _ApiClient["default"].convertToType(data['elasticsearch_tls_certificate'], 'String'); - } - - if (data.hasOwnProperty('elasticsearch_user_name')) { - obj['elasticsearch_user_name'] = _ApiClient["default"].convertToType(data['elasticsearch_user_name'], 'String'); - } - } - - return obj; - } - }]); - - return ElasticsearchLogForwardingConfig; -}(); -/** - * @member {String} elasticsearch_api_key - */ - - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_api_key'] = undefined; -/** - * @member {String} elasticsearch_auth_type - */ - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_auth_type'] = undefined; -/** - * @member {String} elasticsearch_cloud_id - */ - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_cloud_id'] = undefined; -/** - * @member {Boolean} elasticsearch_enable_tls - */ - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_enable_tls'] = undefined; -/** - * @member {String} elasticsearch_index - */ - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_index'] = undefined; -/** - * @member {String} elasticsearch_nodes - */ - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_nodes'] = undefined; -/** - * @member {String} elasticsearch_password - */ - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_password'] = undefined; -/** - * @member {String} elasticsearch_server_type - */ - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_server_type'] = undefined; -/** - * @member {String} elasticsearch_tls_certificate - */ - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_tls_certificate'] = undefined; -/** - * @member {String} elasticsearch_user_name - */ - -ElasticsearchLogForwardingConfig.prototype['elasticsearch_user_name'] = undefined; -var _default = ElasticsearchLogForwardingConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 30864: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EmailEntry model module. - * @module model/EmailEntry - * @version 3.3.16 - */ -var EmailEntry = /*#__PURE__*/function () { - /** - * Constructs a new EmailEntry. - * @alias module:model/EmailEntry - */ - function EmailEntry() { - _classCallCheck(this, EmailEntry); - - EmailEntry.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EmailEntry, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a EmailEntry from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EmailEntry} obj Optional instance to populate. - * @return {module:model/EmailEntry} The populated EmailEntry instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EmailEntry(); - - if (data.hasOwnProperty('to_email')) { - obj['to_email'] = _ApiClient["default"].convertToType(data['to_email'], 'String'); - } - - if (data.hasOwnProperty('to_name')) { - obj['to_name'] = _ApiClient["default"].convertToType(data['to_name'], 'String'); - } - } - - return obj; - } - }]); - - return EmailEntry; -}(); -/** - * @member {String} to_email - */ - - -EmailEntry.prototype['to_email'] = undefined; -/** - * @member {String} to_name - */ - -EmailEntry.prototype['to_name'] = undefined; -var _default = EmailEntry; -exports["default"] = _default; - -/***/ }), - -/***/ 42046: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EmailPassAccessRules model module. - * @module model/EmailPassAccessRules - * @version 3.3.16 - */ -var EmailPassAccessRules = /*#__PURE__*/function () { - /** - * Constructs a new EmailPassAccessRules. - * @alias module:model/EmailPassAccessRules - */ - function EmailPassAccessRules() { - _classCallCheck(this, EmailPassAccessRules); - - EmailPassAccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EmailPassAccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a EmailPassAccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EmailPassAccessRules} obj Optional instance to populate. - * @return {module:model/EmailPassAccessRules} The populated EmailPassAccessRules instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EmailPassAccessRules(); - - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); - } - - if (data.hasOwnProperty('email')) { - obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); - } - - if (data.hasOwnProperty('enc_email_with_shared_key')) { - obj['enc_email_with_shared_key'] = _ApiClient["default"].convertToType(data['enc_email_with_shared_key'], 'String'); - } - - if (data.hasOwnProperty('hash_pass')) { - obj['hash_pass'] = _ApiClient["default"].convertToType(data['hash_pass'], 'String'); - } - } - - return obj; - } - }]); - - return EmailPassAccessRules; -}(); -/** - * @member {String} alg - */ - - -EmailPassAccessRules.prototype['alg'] = undefined; -/** - * The Email value - * @member {String} email - */ - -EmailPassAccessRules.prototype['email'] = undefined; -/** - * EncEmailWithSharedKey is the email of this auth method, encrypted with the shared auth/uam key (for use in uam) - * @member {String} enc_email_with_shared_key - */ - -EmailPassAccessRules.prototype['enc_email_with_shared_key'] = undefined; -/** - * The password value - * @member {String} hash_pass - */ - -EmailPassAccessRules.prototype['hash_pass'] = undefined; -var _default = EmailPassAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 41957: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EmailTokenizerInfo model module. - * @module model/EmailTokenizerInfo - * @version 3.3.16 - */ -var EmailTokenizerInfo = /*#__PURE__*/function () { - /** - * Constructs a new EmailTokenizerInfo. - * EmailTokenizerInfo represents a tokenizer that specifically tokenizes emails - * @alias module:model/EmailTokenizerInfo - */ - function EmailTokenizerInfo() { - _classCallCheck(this, EmailTokenizerInfo); - - EmailTokenizerInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EmailTokenizerInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a EmailTokenizerInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EmailTokenizerInfo} obj Optional instance to populate. - * @return {module:model/EmailTokenizerInfo} The populated EmailTokenizerInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EmailTokenizerInfo(); - - if (data.hasOwnProperty('domain_suffix_length')) { - obj['domain_suffix_length'] = _ApiClient["default"].convertToType(data['domain_suffix_length'], 'Number'); - } - - if (data.hasOwnProperty('fixed_domain_suffix')) { - obj['fixed_domain_suffix'] = _ApiClient["default"].convertToType(data['fixed_domain_suffix'], 'String'); - } - - if (data.hasOwnProperty('keep_prefix_length')) { - obj['keep_prefix_length'] = _ApiClient["default"].convertToType(data['keep_prefix_length'], 'Number'); - } - } - - return obj; - } - }]); - - return EmailTokenizerInfo; -}(); -/** - * What length of a random domain suffix to generate used only if FixedDomainSuffix is empty - * @member {Number} domain_suffix_length - */ - - -EmailTokenizerInfo.prototype['domain_suffix_length'] = undefined; -/** - * if FixedDomainSuffix isn't empty, it will be appended to the output - * @member {String} fixed_domain_suffix - */ - -EmailTokenizerInfo.prototype['fixed_domain_suffix'] = undefined; -/** - * How many letters of the plaintext to keep in the output - * @member {Number} keep_prefix_length - */ - -EmailTokenizerInfo.prototype['keep_prefix_length'] = undefined; -var _default = EmailTokenizerInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 24155: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Encrypt model module. - * @module model/Encrypt - * @version 3.3.16 - */ -var Encrypt = /*#__PURE__*/function () { - /** - * Constructs a new Encrypt. - * @alias module:model/Encrypt - * @param keyName {String} The name of the key to use in the encryption process - */ - function Encrypt(keyName) { - _classCallCheck(this, Encrypt); - - Encrypt.initialize(this, keyName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Encrypt, null, [{ - key: "initialize", - value: function initialize(obj, keyName) { - obj['key-name'] = keyName; - } - /** - * Constructs a Encrypt from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Encrypt} obj Optional instance to populate. - * @return {module:model/Encrypt} The populated Encrypt instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Encrypt(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('encryption-context')) { - obj['encryption-context'] = _ApiClient["default"].convertToType(data['encryption-context'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('input-format')) { - obj['input-format'] = _ApiClient["default"].convertToType(data['input-format'], 'String'); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('plaintext')) { - obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return Encrypt; -}(); -/** - * The display id of the key to use in the encryption process - * @member {String} display-id - */ - - -Encrypt.prototype['display-id'] = undefined; -/** - * name-value pair that specifies the encryption context to be used for authenticated encryption. If used here, the same value must be supplied to the decrypt command or decryption will fail - * @member {Object.} encryption-context - */ - -Encrypt.prototype['encryption-context'] = undefined; -/** - * Select default assumed format for any plaintext input. Currently supported options: [base64] - * @member {String} input-format - */ - -Encrypt.prototype['input-format'] = undefined; -/** - * The item id of the key to use in the encryption process - * @member {Number} item-id - */ - -Encrypt.prototype['item-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -Encrypt.prototype['json'] = false; -/** - * The name of the key to use in the encryption process - * @member {String} key-name - */ - -Encrypt.prototype['key-name'] = undefined; -/** - * Data to be encrypted - * @member {String} plaintext - */ - -Encrypt.prototype['plaintext'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -Encrypt.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -Encrypt.prototype['uid-token'] = undefined; -/** - * key version (relevant only for classic key) - * @member {Number} version - */ - -Encrypt.prototype['version'] = undefined; -var _default = Encrypt; -exports["default"] = _default; - -/***/ }), - -/***/ 3949: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EncryptFile model module. - * @module model/EncryptFile - * @version 3.3.16 - */ -var EncryptFile = /*#__PURE__*/function () { - /** - * Constructs a new EncryptFile. - * @alias module:model/EncryptFile - * @param _in {String} Path to the file to be encrypted. If not provided, the content will be taken from stdin - * @param keyName {String} The name of the key to use in the encryption process - */ - function EncryptFile(_in, keyName) { - _classCallCheck(this, EncryptFile); - - EncryptFile.initialize(this, _in, keyName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EncryptFile, null, [{ - key: "initialize", - value: function initialize(obj, _in, keyName) { - obj['in'] = _in; - obj['key-name'] = keyName; - } - /** - * Constructs a EncryptFile from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EncryptFile} obj Optional instance to populate. - * @return {module:model/EncryptFile} The populated EncryptFile instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EncryptFile(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('in')) { - obj['in'] = _ApiClient["default"].convertToType(data['in'], 'String'); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('out')) { - obj['out'] = _ApiClient["default"].convertToType(data['out'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return EncryptFile; -}(); -/** - * The display id of the key to use in the encryption process - * @member {String} display-id - */ - - -EncryptFile.prototype['display-id'] = undefined; -/** - * Path to the file to be encrypted. If not provided, the content will be taken from stdin - * @member {String} in - */ - -EncryptFile.prototype['in'] = undefined; -/** - * The item id of the key to use in the encryption process - * @member {Number} item-id - */ - -EncryptFile.prototype['item-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -EncryptFile.prototype['json'] = false; -/** - * The name of the key to use in the encryption process - * @member {String} key-name - */ - -EncryptFile.prototype['key-name'] = undefined; -/** - * Path to the output file. If not provided, the output will be sent to stdout - * @member {String} out - */ - -EncryptFile.prototype['out'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -EncryptFile.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -EncryptFile.prototype['uid-token'] = undefined; -var _default = EncryptFile; -exports["default"] = _default; - -/***/ }), - -/***/ 87112: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EncryptFileOutput model module. - * @module model/EncryptFileOutput - * @version 3.3.16 - */ -var EncryptFileOutput = /*#__PURE__*/function () { - /** - * Constructs a new EncryptFileOutput. - * @alias module:model/EncryptFileOutput - */ - function EncryptFileOutput() { - _classCallCheck(this, EncryptFileOutput); - - EncryptFileOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EncryptFileOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a EncryptFileOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EncryptFileOutput} obj Optional instance to populate. - * @return {module:model/EncryptFileOutput} The populated EncryptFileOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EncryptFileOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return EncryptFileOutput; -}(); -/** - * @member {String} result - */ - - -EncryptFileOutput.prototype['result'] = undefined; -var _default = EncryptFileOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 81299: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EncryptGPG model module. - * @module model/EncryptGPG - * @version 3.3.16 - */ -var EncryptGPG = /*#__PURE__*/function () { - /** - * Constructs a new EncryptGPG. - * @alias module:model/EncryptGPG - * @param keyName {String} The name of the key to use in the encryption process - * @param plaintext {String} Data to be encrypted - */ - function EncryptGPG(keyName, plaintext) { - _classCallCheck(this, EncryptGPG); - - EncryptGPG.initialize(this, keyName, plaintext); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EncryptGPG, null, [{ - key: "initialize", - value: function initialize(obj, keyName, plaintext) { - obj['key-name'] = keyName; - obj['plaintext'] = plaintext; - } - /** - * Constructs a EncryptGPG from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EncryptGPG} obj Optional instance to populate. - * @return {module:model/EncryptGPG} The populated EncryptGPG instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EncryptGPG(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('input-format')) { - obj['input-format'] = _ApiClient["default"].convertToType(data['input-format'], 'String'); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('plaintext')) { - obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return EncryptGPG; -}(); -/** - * The display id of the key to use in the encryption process - * @member {String} display-id - */ - - -EncryptGPG.prototype['display-id'] = undefined; -/** - * If specified, the plaintext input is assumed to be formatted accordingly. Current supported options: [base64] - * @member {String} input-format - */ - -EncryptGPG.prototype['input-format'] = undefined; -/** - * The item id of the key to use in the encryption process - * @member {Number} item-id - */ - -EncryptGPG.prototype['item-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -EncryptGPG.prototype['json'] = false; -/** - * The name of the key to use in the encryption process - * @member {String} key-name - */ - -EncryptGPG.prototype['key-name'] = undefined; -/** - * Data to be encrypted - * @member {String} plaintext - */ - -EncryptGPG.prototype['plaintext'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -EncryptGPG.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -EncryptGPG.prototype['uid-token'] = undefined; -var _default = EncryptGPG; -exports["default"] = _default; - -/***/ }), - -/***/ 71906: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EncryptGPGOutput model module. - * @module model/EncryptGPGOutput - * @version 3.3.16 - */ -var EncryptGPGOutput = /*#__PURE__*/function () { - /** - * Constructs a new EncryptGPGOutput. - * @alias module:model/EncryptGPGOutput - */ - function EncryptGPGOutput() { - _classCallCheck(this, EncryptGPGOutput); - - EncryptGPGOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EncryptGPGOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a EncryptGPGOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EncryptGPGOutput} obj Optional instance to populate. - * @return {module:model/EncryptGPGOutput} The populated EncryptGPGOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EncryptGPGOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return EncryptGPGOutput; -}(); -/** - * @member {String} result - */ - - -EncryptGPGOutput.prototype['result'] = undefined; -var _default = EncryptGPGOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 74426: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EncryptOutput model module. - * @module model/EncryptOutput - * @version 3.3.16 - */ -var EncryptOutput = /*#__PURE__*/function () { - /** - * Constructs a new EncryptOutput. - * @alias module:model/EncryptOutput - */ - function EncryptOutput() { - _classCallCheck(this, EncryptOutput); - - EncryptOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EncryptOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a EncryptOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EncryptOutput} obj Optional instance to populate. - * @return {module:model/EncryptOutput} The populated EncryptOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EncryptOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return EncryptOutput; -}(); -/** - * @member {String} result - */ - - -EncryptOutput.prototype['result'] = undefined; -var _default = EncryptOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 80064: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EncryptWithClassicKey model module. - * @module model/EncryptWithClassicKey - * @version 3.3.16 - */ -var EncryptWithClassicKey = /*#__PURE__*/function () { - /** - * Constructs a new EncryptWithClassicKey. - * @alias module:model/EncryptWithClassicKey - * @param displayId {String} The name of the key to use in the encryption process - * @param plaintext {String} Data to be encrypted - * @param version {Number} classic key version - */ - function EncryptWithClassicKey(displayId, plaintext, version) { - _classCallCheck(this, EncryptWithClassicKey); - - EncryptWithClassicKey.initialize(this, displayId, plaintext, version); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EncryptWithClassicKey, null, [{ - key: "initialize", - value: function initialize(obj, displayId, plaintext, version) { - obj['display-id'] = displayId; - obj['plaintext'] = plaintext; - obj['version'] = version; - } - /** - * Constructs a EncryptWithClassicKey from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EncryptWithClassicKey} obj Optional instance to populate. - * @return {module:model/EncryptWithClassicKey} The populated EncryptWithClassicKey instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EncryptWithClassicKey(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('plaintext')) { - obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return EncryptWithClassicKey; -}(); -/** - * The name of the key to use in the encryption process - * @member {String} display-id - */ - - -EncryptWithClassicKey.prototype['display-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -EncryptWithClassicKey.prototype['json'] = false; -/** - * Data to be encrypted - * @member {String} plaintext - */ - -EncryptWithClassicKey.prototype['plaintext'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -EncryptWithClassicKey.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -EncryptWithClassicKey.prototype['uid-token'] = undefined; -/** - * classic key version - * @member {Number} version - */ - -EncryptWithClassicKey.prototype['version'] = undefined; -var _default = EncryptWithClassicKey; -exports["default"] = _default; - -/***/ }), - -/***/ 29257: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EncryptWithClassicKeyOutput model module. - * @module model/EncryptWithClassicKeyOutput - * @version 3.3.16 - */ -var EncryptWithClassicKeyOutput = /*#__PURE__*/function () { - /** - * Constructs a new EncryptWithClassicKeyOutput. - * @alias module:model/EncryptWithClassicKeyOutput - */ - function EncryptWithClassicKeyOutput() { - _classCallCheck(this, EncryptWithClassicKeyOutput); - - EncryptWithClassicKeyOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EncryptWithClassicKeyOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a EncryptWithClassicKeyOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EncryptWithClassicKeyOutput} obj Optional instance to populate. - * @return {module:model/EncryptWithClassicKeyOutput} The populated EncryptWithClassicKeyOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EncryptWithClassicKeyOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return EncryptWithClassicKeyOutput; -}(); -/** - * @member {String} result - */ - - -EncryptWithClassicKeyOutput.prototype['result'] = undefined; -var _default = EncryptWithClassicKeyOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 69101: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EsmCreate model module. - * @module model/EsmCreate - * @version 3.3.16 - */ -var EsmCreate = /*#__PURE__*/function () { - /** - * Constructs a new EsmCreate. - * esmCreate is a command that creates a new secret in an External Secrets Manager - * @alias module:model/EsmCreate - * @param esmName {String} Name of the External Secrets Manager item - * @param secretName {String} Name for the new external secret - * @param value {String} Value of the external secret item, either text or base64 encoded binary - */ - function EsmCreate(esmName, secretName, value) { - _classCallCheck(this, EsmCreate); - - EsmCreate.initialize(this, esmName, secretName, value); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EsmCreate, null, [{ - key: "initialize", - value: function initialize(obj, esmName, secretName, value) { - obj['esm-name'] = esmName; - obj['secret-name'] = secretName; - obj['value'] = value; - } - /** - * Constructs a EsmCreate from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmCreate} obj Optional instance to populate. - * @return {module:model/EsmCreate} The populated EsmCreate instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EsmCreate(); - - if (data.hasOwnProperty('binary-value')) { - obj['binary-value'] = _ApiClient["default"].convertToType(data['binary-value'], 'Boolean'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('esm-name')) { - obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('secret-name')) { - obj['secret-name'] = _ApiClient["default"].convertToType(data['secret-name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); - } - } - - return obj; - } - }]); - - return EsmCreate; -}(); -/** - * Use this option if the external secret value is a base64 encoded binary - * @member {Boolean} binary-value - */ - - -EsmCreate.prototype['binary-value'] = undefined; -/** - * Description of the external secret - * @member {String} description - */ - -EsmCreate.prototype['description'] = undefined; -/** - * Name of the External Secrets Manager item - * @member {String} esm-name - */ - -EsmCreate.prototype['esm-name'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -EsmCreate.prototype['json'] = false; -/** - * Name for the new external secret - * @member {String} secret-name - */ - -EsmCreate.prototype['secret-name'] = undefined; -/** - * Tags for the external secret - * @member {Object.} tags - */ - -EsmCreate.prototype['tags'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -EsmCreate.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -EsmCreate.prototype['uid-token'] = undefined; -/** - * Value of the external secret item, either text or base64 encoded binary - * @member {String} value - */ - -EsmCreate.prototype['value'] = undefined; -var _default = EsmCreate; -exports["default"] = _default; - -/***/ }), - -/***/ 37808: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EsmCreateSecretOutput model module. - * @module model/EsmCreateSecretOutput - * @version 3.3.16 - */ -var EsmCreateSecretOutput = /*#__PURE__*/function () { - /** - * Constructs a new EsmCreateSecretOutput. - * @alias module:model/EsmCreateSecretOutput - */ - function EsmCreateSecretOutput() { - _classCallCheck(this, EsmCreateSecretOutput); - - EsmCreateSecretOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EsmCreateSecretOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a EsmCreateSecretOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmCreateSecretOutput} obj Optional instance to populate. - * @return {module:model/EsmCreateSecretOutput} The populated EsmCreateSecretOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EsmCreateSecretOutput(); - - if (data.hasOwnProperty('secret_id')) { - obj['secret_id'] = _ApiClient["default"].convertToType(data['secret_id'], 'String'); - } - - if (data.hasOwnProperty('version_id')) { - obj['version_id'] = _ApiClient["default"].convertToType(data['version_id'], 'String'); - } - } - - return obj; - } - }]); - - return EsmCreateSecretOutput; -}(); -/** - * @member {String} secret_id - */ - - -EsmCreateSecretOutput.prototype['secret_id'] = undefined; -/** - * @member {String} version_id - */ - -EsmCreateSecretOutput.prototype['version_id'] = undefined; -var _default = EsmCreateSecretOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 26602: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EsmDelete model module. - * @module model/EsmDelete - * @version 3.3.16 - */ -var EsmDelete = /*#__PURE__*/function () { - /** - * Constructs a new EsmDelete. - * esmDelete is a command that deletes a secret from an External Secrets Manager - * @alias module:model/EsmDelete - * @param esmName {String} Name of the External Secrets Manager item - * @param secretId {String} The external secret id (or name, for AWS, Azure or K8s targets) to delete - */ - function EsmDelete(esmName, secretId) { - _classCallCheck(this, EsmDelete); - - EsmDelete.initialize(this, esmName, secretId); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EsmDelete, null, [{ - key: "initialize", - value: function initialize(obj, esmName, secretId) { - obj['esm-name'] = esmName; - obj['secret-id'] = secretId; - } - /** - * Constructs a EsmDelete from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmDelete} obj Optional instance to populate. - * @return {module:model/EsmDelete} The populated EsmDelete instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EsmDelete(); - - if (data.hasOwnProperty('esm-name')) { - obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('secret-id')) { - obj['secret-id'] = _ApiClient["default"].convertToType(data['secret-id'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return EsmDelete; -}(); -/** - * Name of the External Secrets Manager item - * @member {String} esm-name - */ - - -EsmDelete.prototype['esm-name'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -EsmDelete.prototype['json'] = false; -/** - * The external secret id (or name, for AWS, Azure or K8s targets) to delete - * @member {String} secret-id - */ - -EsmDelete.prototype['secret-id'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -EsmDelete.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -EsmDelete.prototype['uid-token'] = undefined; -var _default = EsmDelete; -exports["default"] = _default; - -/***/ }), - -/***/ 99707: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EsmDeleteSecretOutput model module. - * @module model/EsmDeleteSecretOutput - * @version 3.3.16 - */ -var EsmDeleteSecretOutput = /*#__PURE__*/function () { - /** - * Constructs a new EsmDeleteSecretOutput. - * @alias module:model/EsmDeleteSecretOutput - */ - function EsmDeleteSecretOutput() { - _classCallCheck(this, EsmDeleteSecretOutput); - - EsmDeleteSecretOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EsmDeleteSecretOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a EsmDeleteSecretOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmDeleteSecretOutput} obj Optional instance to populate. - * @return {module:model/EsmDeleteSecretOutput} The populated EsmDeleteSecretOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EsmDeleteSecretOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return EsmDeleteSecretOutput; -}(); -/** - * @member {String} name - */ - - -EsmDeleteSecretOutput.prototype['name'] = undefined; -var _default = EsmDeleteSecretOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 1541: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EsmGet model module. - * @module model/EsmGet - * @version 3.3.16 - */ -var EsmGet = /*#__PURE__*/function () { - /** - * Constructs a new EsmGet. - * esmGet is a command that gets the value and interal details of a secret from an External Secrets Manager - * @alias module:model/EsmGet - * @param esmName {String} Name of the External Secrets Manager item - * @param secretId {String} The secret id (or name, for AWS, Azure or K8s targets) to get from the External Secrets Manager - */ - function EsmGet(esmName, secretId) { - _classCallCheck(this, EsmGet); - - EsmGet.initialize(this, esmName, secretId); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EsmGet, null, [{ - key: "initialize", - value: function initialize(obj, esmName, secretId) { - obj['esm-name'] = esmName; - obj['secret-id'] = secretId; - } - /** - * Constructs a EsmGet from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmGet} obj Optional instance to populate. - * @return {module:model/EsmGet} The populated EsmGet instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EsmGet(); - - if (data.hasOwnProperty('esm-name')) { - obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('secret-id')) { - obj['secret-id'] = _ApiClient["default"].convertToType(data['secret-id'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return EsmGet; -}(); -/** - * Name of the External Secrets Manager item - * @member {String} esm-name - */ - - -EsmGet.prototype['esm-name'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -EsmGet.prototype['json'] = false; -/** - * The secret id (or name, for AWS, Azure or K8s targets) to get from the External Secrets Manager - * @member {String} secret-id - */ - -EsmGet.prototype['secret-id'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -EsmGet.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -EsmGet.prototype['uid-token'] = undefined; -var _default = EsmGet; -exports["default"] = _default; - -/***/ }), - -/***/ 13496: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EsmGetSecretOutput model module. - * @module model/EsmGetSecretOutput - * @version 3.3.16 - */ -var EsmGetSecretOutput = /*#__PURE__*/function () { - /** - * Constructs a new EsmGetSecretOutput. - * @alias module:model/EsmGetSecretOutput - */ - function EsmGetSecretOutput() { - _classCallCheck(this, EsmGetSecretOutput); - - EsmGetSecretOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EsmGetSecretOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a EsmGetSecretOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmGetSecretOutput} obj Optional instance to populate. - * @return {module:model/EsmGetSecretOutput} The populated EsmGetSecretOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EsmGetSecretOutput(); - - if (data.hasOwnProperty('binary_value')) { - obj['binary_value'] = _ApiClient["default"].convertToType(data['binary_value'], 'Boolean'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); - } - } - - return obj; - } - }]); - - return EsmGetSecretOutput; -}(); -/** - * @member {Boolean} binary_value - */ - - -EsmGetSecretOutput.prototype['binary_value'] = undefined; -/** - * @member {Object} metadata - */ - -EsmGetSecretOutput.prototype['metadata'] = undefined; -/** - * @member {String} name - */ - -EsmGetSecretOutput.prototype['name'] = undefined; -/** - * @member {String} value - */ - -EsmGetSecretOutput.prototype['value'] = undefined; -var _default = EsmGetSecretOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 59317: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EsmList model module. - * @module model/EsmList - * @version 3.3.16 - */ -var EsmList = /*#__PURE__*/function () { - /** - * Constructs a new EsmList. - * esmList is a command that lists the secrets of an External Secrets Manager - * @alias module:model/EsmList - * @param esmName {String} Name of the External Secrets Manager item - */ - function EsmList(esmName) { - _classCallCheck(this, EsmList); - - EsmList.initialize(this, esmName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EsmList, null, [{ - key: "initialize", - value: function initialize(obj, esmName) { - obj['esm-name'] = esmName; - } - /** - * Constructs a EsmList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmList} obj Optional instance to populate. - * @return {module:model/EsmList} The populated EsmList instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EsmList(); - - if (data.hasOwnProperty('esm-name')) { - obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return EsmList; -}(); -/** - * Name of the External Secrets Manager item - * @member {String} esm-name - */ - - -EsmList.prototype['esm-name'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -EsmList.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -EsmList.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -EsmList.prototype['uid-token'] = undefined; -var _default = EsmList; -exports["default"] = _default; - -/***/ }), - -/***/ 63233: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _SecretInfo = _interopRequireDefault(__nccwpck_require__(39800)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EsmListSecretsOutput model module. - * @module model/EsmListSecretsOutput - * @version 3.3.16 - */ -var EsmListSecretsOutput = /*#__PURE__*/function () { - /** - * Constructs a new EsmListSecretsOutput. - * @alias module:model/EsmListSecretsOutput - */ - function EsmListSecretsOutput() { - _classCallCheck(this, EsmListSecretsOutput); - - EsmListSecretsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EsmListSecretsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a EsmListSecretsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmListSecretsOutput} obj Optional instance to populate. - * @return {module:model/EsmListSecretsOutput} The populated EsmListSecretsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EsmListSecretsOutput(); - - if (data.hasOwnProperty('secrets_list')) { - obj['secrets_list'] = _ApiClient["default"].convertToType(data['secrets_list'], [_SecretInfo["default"]]); - } - } - - return obj; - } - }]); - - return EsmListSecretsOutput; -}(); -/** - * @member {Array.} secrets_list - */ - - -EsmListSecretsOutput.prototype['secrets_list'] = undefined; -var _default = EsmListSecretsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 29564: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EsmUpdate model module. - * @module model/EsmUpdate - * @version 3.3.16 - */ -var EsmUpdate = /*#__PURE__*/function () { - /** - * Constructs a new EsmUpdate. - * esmUpdate is a command that updates a secret in an External Secrets Manager - * @alias module:model/EsmUpdate - * @param esmName {String} Name of the External Secrets Manager item - * @param secretId {String} The external secret id (or name, for AWS, Azure or K8s targets) to update - * @param value {String} Value of the external secret item, either text or base64 encoded binary - */ - function EsmUpdate(esmName, secretId, value) { - _classCallCheck(this, EsmUpdate); - - EsmUpdate.initialize(this, esmName, secretId, value); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EsmUpdate, null, [{ - key: "initialize", - value: function initialize(obj, esmName, secretId, value) { - obj['esm-name'] = esmName; - obj['secret-id'] = secretId; - obj['value'] = value; - } - /** - * Constructs a EsmUpdate from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmUpdate} obj Optional instance to populate. - * @return {module:model/EsmUpdate} The populated EsmUpdate instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EsmUpdate(); - - if (data.hasOwnProperty('binary-value')) { - obj['binary-value'] = _ApiClient["default"].convertToType(data['binary-value'], 'Boolean'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('esm-name')) { - obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('secret-id')) { - obj['secret-id'] = _ApiClient["default"].convertToType(data['secret-id'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); - } - } - - return obj; - } - }]); - - return EsmUpdate; -}(); -/** - * Use this option if the external secret value is a base64 encoded binary - * @member {Boolean} binary-value - */ - - -EsmUpdate.prototype['binary-value'] = undefined; -/** - * Description of the external secret - * @member {String} description - */ - -EsmUpdate.prototype['description'] = undefined; -/** - * Name of the External Secrets Manager item - * @member {String} esm-name - */ - -EsmUpdate.prototype['esm-name'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -EsmUpdate.prototype['json'] = false; -/** - * The external secret id (or name, for AWS, Azure or K8s targets) to update - * @member {String} secret-id - */ - -EsmUpdate.prototype['secret-id'] = undefined; -/** - * Tags for the external secret - * @member {Object.} tags - */ - -EsmUpdate.prototype['tags'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -EsmUpdate.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -EsmUpdate.prototype['uid-token'] = undefined; -/** - * Value of the external secret item, either text or base64 encoded binary - * @member {String} value - */ - -EsmUpdate.prototype['value'] = undefined; -var _default = EsmUpdate; -exports["default"] = _default; - -/***/ }), - -/***/ 45309: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EsmUpdateSecretOutput model module. - * @module model/EsmUpdateSecretOutput - * @version 3.3.16 - */ -var EsmUpdateSecretOutput = /*#__PURE__*/function () { - /** - * Constructs a new EsmUpdateSecretOutput. - * @alias module:model/EsmUpdateSecretOutput - */ - function EsmUpdateSecretOutput() { - _classCallCheck(this, EsmUpdateSecretOutput); - - EsmUpdateSecretOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EsmUpdateSecretOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a EsmUpdateSecretOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EsmUpdateSecretOutput} obj Optional instance to populate. - * @return {module:model/EsmUpdateSecretOutput} The populated EsmUpdateSecretOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EsmUpdateSecretOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('secret_id')) { - obj['secret_id'] = _ApiClient["default"].convertToType(data['secret_id'], 'String'); - } - - if (data.hasOwnProperty('version_id')) { - obj['version_id'] = _ApiClient["default"].convertToType(data['version_id'], 'String'); - } - } - - return obj; - } - }]); - - return EsmUpdateSecretOutput; -}(); -/** - * @member {String} name - */ - - -EsmUpdateSecretOutput.prototype['name'] = undefined; -/** - * @member {String} secret_id - */ - -EsmUpdateSecretOutput.prototype['secret_id'] = undefined; -/** - * @member {String} version_id - */ - -EsmUpdateSecretOutput.prototype['version_id'] = undefined; -var _default = EsmUpdateSecretOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 73404: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The EventAction model module. - * @module model/EventAction - * @version 3.3.16 - */ -var EventAction = /*#__PURE__*/function () { - /** - * Constructs a new EventAction. - * @alias module:model/EventAction - * @param action {String} The Event Action [approve/deny] - * @param eventId {Number} The Event ID - */ - function EventAction(action, eventId) { - _classCallCheck(this, EventAction); - - EventAction.initialize(this, action, eventId); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(EventAction, null, [{ - key: "initialize", - value: function initialize(obj, action, eventId) { - obj['action'] = action; - obj['event-id'] = eventId; - } - /** - * Constructs a EventAction from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EventAction} obj Optional instance to populate. - * @return {module:model/EventAction} The populated EventAction instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EventAction(); - - if (data.hasOwnProperty('action')) { - obj['action'] = _ApiClient["default"].convertToType(data['action'], 'String'); - } - - if (data.hasOwnProperty('event-id')) { - obj['event-id'] = _ApiClient["default"].convertToType(data['event-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return EventAction; -}(); -/** - * The Event Action [approve/deny] - * @member {String} action - */ - - -EventAction.prototype['action'] = undefined; -/** - * The Event ID - * @member {Number} event-id - */ - -EventAction.prototype['event-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -EventAction.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -EventAction.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -EventAction.prototype['uid-token'] = undefined; -var _default = EventAction; -exports["default"] = _default; - -/***/ }), - -/***/ 91005: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ExportClassicKey model module. - * @module model/ExportClassicKey - * @version 3.3.16 - */ -var ExportClassicKey = /*#__PURE__*/function () { - /** - * Constructs a new ExportClassicKey. - * ExportClassicKey is a command that returns the classic key material - * @alias module:model/ExportClassicKey - * @param name {String} ClassicKey name - */ - function ExportClassicKey(name) { - _classCallCheck(this, ExportClassicKey); - - ExportClassicKey.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ExportClassicKey, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a ExportClassicKey from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ExportClassicKey} obj Optional instance to populate. - * @return {module:model/ExportClassicKey} The populated ExportClassicKey instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ExportClassicKey(); - - if (data.hasOwnProperty('export-public-key')) { - obj['export-public-key'] = _ApiClient["default"].convertToType(data['export-public-key'], 'Boolean'); - } - - if (data.hasOwnProperty('ignore-cache')) { - obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return ExportClassicKey; -}(); -/** - * Use this option to output only public key - * @member {Boolean} export-public-key - * @default false - */ - - -ExportClassicKey.prototype['export-public-key'] = false; -/** - * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI - * @member {String} ignore-cache - * @default 'false' - */ - -ExportClassicKey.prototype['ignore-cache'] = 'false'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -ExportClassicKey.prototype['json'] = false; -/** - * ClassicKey name - * @member {String} name - */ - -ExportClassicKey.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -ExportClassicKey.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -ExportClassicKey.prototype['uid-token'] = undefined; -/** - * Classic key version - * @member {Number} version - */ - -ExportClassicKey.prototype['version'] = undefined; -var _default = ExportClassicKey; -exports["default"] = _default; - -/***/ }), - -/***/ 52248: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ExportClassicKeyOutput model module. - * @module model/ExportClassicKeyOutput - * @version 3.3.16 - */ -var ExportClassicKeyOutput = /*#__PURE__*/function () { - /** - * Constructs a new ExportClassicKeyOutput. - * @alias module:model/ExportClassicKeyOutput - */ - function ExportClassicKeyOutput() { - _classCallCheck(this, ExportClassicKeyOutput); - - ExportClassicKeyOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ExportClassicKeyOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ExportClassicKeyOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ExportClassicKeyOutput} obj Optional instance to populate. - * @return {module:model/ExportClassicKeyOutput} The populated ExportClassicKeyOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ExportClassicKeyOutput(); - - if (data.hasOwnProperty('certificatePem')) { - obj['certificatePem'] = _ApiClient["default"].convertToType(data['certificatePem'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - } - - return obj; - } - }]); - - return ExportClassicKeyOutput; -}(); -/** - * @member {String} certificatePem - */ - - -ExportClassicKeyOutput.prototype['certificatePem'] = undefined; -/** - * @member {String} key - */ - -ExportClassicKeyOutput.prototype['key'] = undefined; -var _default = ExportClassicKeyOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 30079: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Extension model module. - * @module model/Extension - * @version 3.3.16 - */ -var Extension = /*#__PURE__*/function () { - /** - * Constructs a new Extension. - * @alias module:model/Extension - */ - function Extension() { - _classCallCheck(this, Extension); - - Extension.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Extension, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a Extension from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Extension} obj Optional instance to populate. - * @return {module:model/Extension} The populated Extension instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Extension(); - - if (data.hasOwnProperty('Critical')) { - obj['Critical'] = _ApiClient["default"].convertToType(data['Critical'], 'Boolean'); - } - - if (data.hasOwnProperty('Name')) { - obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); - } - - if (data.hasOwnProperty('Value')) { - obj['Value'] = _ApiClient["default"].convertToType(data['Value'], 'String'); - } - } - - return obj; - } - }]); - - return Extension; -}(); -/** - * @member {Boolean} Critical - */ - - -Extension.prototype['Critical'] = undefined; -/** - * @member {String} Name - */ - -Extension.prototype['Name'] = undefined; -/** - * @member {String} Value - */ - -Extension.prototype['Value'] = undefined; -var _default = Extension; -exports["default"] = _default; - -/***/ }), - -/***/ 80238: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ExternalKMSKeyId model module. - * @module model/ExternalKMSKeyId - * @version 3.3.16 - */ -var ExternalKMSKeyId = /*#__PURE__*/function () { - /** - * Constructs a new ExternalKMSKeyId. - * @alias module:model/ExternalKMSKeyId - */ - function ExternalKMSKeyId() { - _classCallCheck(this, ExternalKMSKeyId); - - ExternalKMSKeyId.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ExternalKMSKeyId, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ExternalKMSKeyId from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ExternalKMSKeyId} obj Optional instance to populate. - * @return {module:model/ExternalKMSKeyId} The populated ExternalKMSKeyId instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ExternalKMSKeyId(); - - if (data.hasOwnProperty('key_id')) { - obj['key_id'] = _ApiClient["default"].convertToType(data['key_id'], 'String'); - } - - if (data.hasOwnProperty('key_reference')) { - obj['key_reference'] = _ApiClient["default"].convertToType(data['key_reference'], 'String'); - } - } - - return obj; - } - }]); - - return ExternalKMSKeyId; -}(); -/** - * @member {String} key_id - */ - - -ExternalKMSKeyId.prototype['key_id'] = undefined; -/** - * @member {String} key_reference - */ - -ExternalKMSKeyId.prototype['key_reference'] = undefined; -var _default = ExternalKMSKeyId; -exports["default"] = _default; - -/***/ }), - -/***/ 94515: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GCPAccessRules model module. - * @module model/GCPAccessRules - * @version 3.3.16 - */ -var GCPAccessRules = /*#__PURE__*/function () { - /** - * Constructs a new GCPAccessRules. - * @alias module:model/GCPAccessRules - */ - function GCPAccessRules() { - _classCallCheck(this, GCPAccessRules); - - GCPAccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GCPAccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GCPAccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GCPAccessRules} obj Optional instance to populate. - * @return {module:model/GCPAccessRules} The populated GCPAccessRules instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GCPAccessRules(); - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); - } - - if (data.hasOwnProperty('bound_labels')) { - obj['bound_labels'] = _ApiClient["default"].convertToType(data['bound_labels'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('bound_projects')) { - obj['bound_projects'] = _ApiClient["default"].convertToType(data['bound_projects'], ['String']); - } - - if (data.hasOwnProperty('bound_regions')) { - obj['bound_regions'] = _ApiClient["default"].convertToType(data['bound_regions'], ['String']); - } - - if (data.hasOwnProperty('bound_service_accounts')) { - obj['bound_service_accounts'] = _ApiClient["default"].convertToType(data['bound_service_accounts'], ['String']); - } - - if (data.hasOwnProperty('bound_zones')) { - obj['bound_zones'] = _ApiClient["default"].convertToType(data['bound_zones'], ['String']); - } - - if (data.hasOwnProperty('service_account')) { - obj['service_account'] = _ApiClient["default"].convertToType(data['service_account'], 'String'); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - } - - return obj; - } - }]); - - return GCPAccessRules; -}(); -/** - * The audience in the JWT - * @member {String} audience - * @default 'akeyless.io' - */ - - -GCPAccessRules.prototype['audience'] = 'akeyless.io'; -/** - * A map of GCP labels formatted as \"key:value\" strings that must be set on authorized GCE instances. TODO: Because GCP labels are not currently ACL'd .... - * @member {Object.} bound_labels - */ - -GCPAccessRules.prototype['bound_labels'] = undefined; -/** - * Human and Machine authentication section Array of GCP project IDs. Only entities belonging to any of the provided projects can authenticate. - * @member {Array.} bound_projects - */ - -GCPAccessRules.prototype['bound_projects'] = undefined; -/** - * List of regions that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored. - * @member {Array.} bound_regions - */ - -GCPAccessRules.prototype['bound_regions'] = undefined; -/** - * List of service accounts the service account must be part of in order to be authenticated - * @member {Array.} bound_service_accounts - */ - -GCPAccessRules.prototype['bound_service_accounts'] = undefined; -/** - * === Machine authentication section === List of zones that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone. - * @member {Array.} bound_zones - */ - -GCPAccessRules.prototype['bound_zones'] = undefined; -/** - * ServiceAccount holds the credentials file contents to be used by Akeyless to validate IAM (Human) and GCE (Machine) logins against GCP base64 encoded string - * @member {String} service_account - */ - -GCPAccessRules.prototype['service_account'] = undefined; -/** - * @member {String} type - */ - -GCPAccessRules.prototype['type'] = undefined; -var _default = GCPAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 15080: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GCPPayload model module. - * @module model/GCPPayload - * @version 3.3.16 - */ -var GCPPayload = /*#__PURE__*/function () { - /** - * Constructs a new GCPPayload. - * @alias module:model/GCPPayload - */ - function GCPPayload() { - _classCallCheck(this, GCPPayload); - - GCPPayload.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GCPPayload, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GCPPayload from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GCPPayload} obj Optional instance to populate. - * @return {module:model/GCPPayload} The populated GCPPayload instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GCPPayload(); - - if (data.hasOwnProperty('gcp_credentials_json')) { - obj['gcp_credentials_json'] = _ApiClient["default"].convertToType(data['gcp_credentials_json'], 'String'); - } - } - - return obj; - } - }]); - - return GCPPayload; -}(); -/** - * @member {String} gcp_credentials_json - */ - - -GCPPayload.prototype['gcp_credentials_json'] = undefined; -var _default = GCPPayload; -exports["default"] = _default; - -/***/ }), - -/***/ 40859: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _GCPPayload = _interopRequireDefault(__nccwpck_require__(15080)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GCPSecretsMigration model module. - * @module model/GCPSecretsMigration - * @version 3.3.16 - */ -var GCPSecretsMigration = /*#__PURE__*/function () { - /** - * Constructs a new GCPSecretsMigration. - * @alias module:model/GCPSecretsMigration - */ - function GCPSecretsMigration() { - _classCallCheck(this, GCPSecretsMigration); - - GCPSecretsMigration.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GCPSecretsMigration, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GCPSecretsMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GCPSecretsMigration} obj Optional instance to populate. - * @return {module:model/GCPSecretsMigration} The populated GCPSecretsMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GCPSecretsMigration(); - - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); - } - - if (data.hasOwnProperty('payload')) { - obj['payload'] = _GCPPayload["default"].constructFromObject(data['payload']); - } - } - - return obj; - } - }]); - - return GCPSecretsMigration; -}(); -/** - * @member {module:model/MigrationGeneral} general - */ - - -GCPSecretsMigration.prototype['general'] = undefined; -/** - * @member {module:model/GCPPayload} payload - */ - -GCPSecretsMigration.prototype['payload'] = undefined; -var _default = GCPSecretsMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 13006: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GKETargetDetails model module. - * @module model/GKETargetDetails - * @version 3.3.16 - */ -var GKETargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new GKETargetDetails. - * GKETargetDetails defines details related to connecting to a GKE (Google Kubernetes Engine) target - * @alias module:model/GKETargetDetails - */ - function GKETargetDetails() { - _classCallCheck(this, GKETargetDetails); - - GKETargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GKETargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GKETargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GKETargetDetails} obj Optional instance to populate. - * @return {module:model/GKETargetDetails} The populated GKETargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GKETargetDetails(); - - if (data.hasOwnProperty('gke_cluster_ca_certificate')) { - obj['gke_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['gke_cluster_ca_certificate'], 'String'); - } - - if (data.hasOwnProperty('gke_cluster_endpoint')) { - obj['gke_cluster_endpoint'] = _ApiClient["default"].convertToType(data['gke_cluster_endpoint'], 'String'); - } - - if (data.hasOwnProperty('gke_cluster_name')) { - obj['gke_cluster_name'] = _ApiClient["default"].convertToType(data['gke_cluster_name'], 'String'); - } - - if (data.hasOwnProperty('gke_service_account_key')) { - obj['gke_service_account_key'] = _ApiClient["default"].convertToType(data['gke_service_account_key'], 'String'); - } - - if (data.hasOwnProperty('gke_service_account_name')) { - obj['gke_service_account_name'] = _ApiClient["default"].convertToType(data['gke_service_account_name'], 'String'); - } - - if (data.hasOwnProperty('use_gw_cloud_identity')) { - obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); - } - } - - return obj; - } - }]); - - return GKETargetDetails; -}(); -/** - * @member {String} gke_cluster_ca_certificate - */ - - -GKETargetDetails.prototype['gke_cluster_ca_certificate'] = undefined; -/** - * @member {String} gke_cluster_endpoint - */ - -GKETargetDetails.prototype['gke_cluster_endpoint'] = undefined; -/** - * @member {String} gke_cluster_name - */ - -GKETargetDetails.prototype['gke_cluster_name'] = undefined; -/** - * @member {String} gke_service_account_key - */ - -GKETargetDetails.prototype['gke_service_account_key'] = undefined; -/** - * @member {String} gke_service_account_name - */ - -GKETargetDetails.prototype['gke_service_account_name'] = undefined; -/** - * @member {Boolean} use_gw_cloud_identity - */ - -GKETargetDetails.prototype['use_gw_cloud_identity'] = undefined; -var _default = GKETargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 27208: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayBasicInfo model module. - * @module model/GatewayBasicInfo - * @version 3.3.16 - */ -var GatewayBasicInfo = /*#__PURE__*/function () { - /** - * Constructs a new GatewayBasicInfo. - * @alias module:model/GatewayBasicInfo - */ - function GatewayBasicInfo() { - _classCallCheck(this, GatewayBasicInfo); - - GatewayBasicInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayBasicInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayBasicInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayBasicInfo} obj Optional instance to populate. - * @return {module:model/GatewayBasicInfo} The populated GatewayBasicInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayBasicInfo(); - - if (data.hasOwnProperty('cluster_display_name')) { - obj['cluster_display_name'] = _ApiClient["default"].convertToType(data['cluster_display_name'], 'String'); - } - - if (data.hasOwnProperty('cluster_id')) { - obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'Number'); - } - - if (data.hasOwnProperty('cluster_name')) { - obj['cluster_name'] = _ApiClient["default"].convertToType(data['cluster_name'], 'String'); - } - - if (data.hasOwnProperty('cluster_url')) { - obj['cluster_url'] = _ApiClient["default"].convertToType(data['cluster_url'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayBasicInfo; -}(); -/** - * @member {String} cluster_display_name - */ - - -GatewayBasicInfo.prototype['cluster_display_name'] = undefined; -/** - * @member {Number} cluster_id - */ - -GatewayBasicInfo.prototype['cluster_id'] = undefined; -/** - * @member {String} cluster_name - */ - -GatewayBasicInfo.prototype['cluster_name'] = undefined; -/** - * @member {String} cluster_url - */ - -GatewayBasicInfo.prototype['cluster_url'] = undefined; -var _default = GatewayBasicInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 17300: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateAllowedAccess model module. - * @module model/GatewayCreateAllowedAccess - * @version 3.3.16 - */ -var GatewayCreateAllowedAccess = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateAllowedAccess. - * gatewayCreateAllowedAccess is a command that creates allowed access in Gator - * @alias module:model/GatewayCreateAllowedAccess - * @param accessId {String} Access ID The access id to be attached to this allowed access. Auth method with this access id should already exist. - * @param name {String} Allowed access name - */ - function GatewayCreateAllowedAccess(accessId, name) { - _classCallCheck(this, GatewayCreateAllowedAccess); - - GatewayCreateAllowedAccess.initialize(this, accessId, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateAllowedAccess, null, [{ - key: "initialize", - value: function initialize(obj, accessId, name) { - obj['access-id'] = accessId; - obj['name'] = name; - } - /** - * Constructs a GatewayCreateAllowedAccess from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateAllowedAccess} obj Optional instance to populate. - * @return {module:model/GatewayCreateAllowedAccess} The populated GatewayCreateAllowedAccess instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateAllowedAccess(); - - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('permissions')) { - obj['permissions'] = _ApiClient["default"].convertToType(data['permissions'], 'String'); - } - - if (data.hasOwnProperty('sub-claims')) { - obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateAllowedAccess; -}(); -/** - * Access ID The access id to be attached to this allowed access. Auth method with this access id should already exist. - * @member {String} access-id - */ - - -GatewayCreateAllowedAccess.prototype['access-id'] = undefined; -/** - * Allowed access description - * @member {String} description - */ - -GatewayCreateAllowedAccess.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateAllowedAccess.prototype['json'] = false; -/** - * Allowed access name - * @member {String} name - */ - -GatewayCreateAllowedAccess.prototype['name'] = undefined; -/** - * Permissions Comma-seperated list of permissions for this allowed access. Available permissions: [defaults,targets,classic_keys,automatic_migration,ldap_auth,dynamic_secret,k8s_auth,log_forwarding,zero_knowledge_encryption,rotated_secret,caching,event_forwarding,admin,kmip,general] - * @member {String} permissions - */ - -GatewayCreateAllowedAccess.prototype['permissions'] = undefined; -/** - * Sub claims key/val of sub claims, e.g group=admins,developers - * @member {Object.} sub-claims - */ - -GatewayCreateAllowedAccess.prototype['sub-claims'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateAllowedAccess.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateAllowedAccess.prototype['uid-token'] = undefined; -var _default = GatewayCreateAllowedAccess; -exports["default"] = _default; - -/***/ }), - -/***/ 30862: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateK8SAuthConfig model module. - * @module model/GatewayCreateK8SAuthConfig - * @version 3.3.16 - */ -var GatewayCreateK8SAuthConfig = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateK8SAuthConfig. - * gatewayCreateK8SAuth is a command that creates k8s auth config - * @alias module:model/GatewayCreateK8SAuthConfig - * @param accessId {String} The access ID of the Kubernetes auth method - * @param k8sHost {String} The URL of the kubernetes API server - * @param name {String} K8S Auth config name - * @param signingKey {String} The private key (base64 encoded) associated with the public key defined in the Kubernetes auth - */ - function GatewayCreateK8SAuthConfig(accessId, k8sHost, name, signingKey) { - _classCallCheck(this, GatewayCreateK8SAuthConfig); - - GatewayCreateK8SAuthConfig.initialize(this, accessId, k8sHost, name, signingKey); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateK8SAuthConfig, null, [{ - key: "initialize", - value: function initialize(obj, accessId, k8sHost, name, signingKey) { - obj['access-id'] = accessId; - obj['k8s-host'] = k8sHost; - obj['name'] = name; - obj['signing-key'] = signingKey; - } - /** - * Constructs a GatewayCreateK8SAuthConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateK8SAuthConfig} obj Optional instance to populate. - * @return {module:model/GatewayCreateK8SAuthConfig} The populated GatewayCreateK8SAuthConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateK8SAuthConfig(); - - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); - } - - if (data.hasOwnProperty('cluster-api-type')) { - obj['cluster-api-type'] = _ApiClient["default"].convertToType(data['cluster-api-type'], 'String'); - } - - if (data.hasOwnProperty('config-encryption-key-name')) { - obj['config-encryption-key-name'] = _ApiClient["default"].convertToType(data['config-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('disable-issuer-validation')) { - obj['disable-issuer-validation'] = _ApiClient["default"].convertToType(data['disable-issuer-validation'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s-ca-cert')) { - obj['k8s-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('k8s-host')) { - obj['k8s-host'] = _ApiClient["default"].convertToType(data['k8s-host'], 'String'); - } - - if (data.hasOwnProperty('k8s-issuer')) { - obj['k8s-issuer'] = _ApiClient["default"].convertToType(data['k8s-issuer'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('rancher-api-key')) { - obj['rancher-api-key'] = _ApiClient["default"].convertToType(data['rancher-api-key'], 'String'); - } - - if (data.hasOwnProperty('rancher-cluster-id')) { - obj['rancher-cluster-id'] = _ApiClient["default"].convertToType(data['rancher-cluster-id'], 'String'); - } - - if (data.hasOwnProperty('signing-key')) { - obj['signing-key'] = _ApiClient["default"].convertToType(data['signing-key'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('token-exp')) { - obj['token-exp'] = _ApiClient["default"].convertToType(data['token-exp'], 'Number'); - } - - if (data.hasOwnProperty('token-reviewer-jwt')) { - obj['token-reviewer-jwt'] = _ApiClient["default"].convertToType(data['token-reviewer-jwt'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('use-gw-service-account')) { - obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); - } - } - - return obj; - } - }]); - - return GatewayCreateK8SAuthConfig; -}(); -/** - * The access ID of the Kubernetes auth method - * @member {String} access-id - */ - - -GatewayCreateK8SAuthConfig.prototype['access-id'] = undefined; -/** - * Cluster access type. options: [native_k8s, rancher] - * @member {String} cluster-api-type - * @default 'native_k8s' - */ - -GatewayCreateK8SAuthConfig.prototype['cluster-api-type'] = 'native_k8s'; -/** - * Config encryption key - * @member {String} config-encryption-key-name - */ - -GatewayCreateK8SAuthConfig.prototype['config-encryption-key-name'] = undefined; -/** - * Disable issuer validation [true/false] - * @member {String} disable-issuer-validation - */ - -GatewayCreateK8SAuthConfig.prototype['disable-issuer-validation'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateK8SAuthConfig.prototype['json'] = false; -/** - * The CA Certificate (base64 encoded) to use to call into the kubernetes API server - * @member {String} k8s-ca-cert - */ - -GatewayCreateK8SAuthConfig.prototype['k8s-ca-cert'] = undefined; -/** - * The URL of the kubernetes API server - * @member {String} k8s-host - */ - -GatewayCreateK8SAuthConfig.prototype['k8s-host'] = undefined; -/** - * The Kubernetes JWT issuer name. K8SIssuer is the claim that specifies who issued the Kubernetes token - * @member {String} k8s-issuer - * @default 'kubernetes/serviceaccount' - */ - -GatewayCreateK8SAuthConfig.prototype['k8s-issuer'] = 'kubernetes/serviceaccount'; -/** - * K8S Auth config name - * @member {String} name - */ - -GatewayCreateK8SAuthConfig.prototype['name'] = undefined; -/** - * The api key used to access the TokenReview API to validate other JWTs (relevant for \"rancher\" only) - * @member {String} rancher-api-key - */ - -GatewayCreateK8SAuthConfig.prototype['rancher-api-key'] = undefined; -/** - * The cluster id as define in rancher (relevant for \"rancher\" only) - * @member {String} rancher-cluster-id - */ - -GatewayCreateK8SAuthConfig.prototype['rancher-cluster-id'] = undefined; -/** - * The private key (base64 encoded) associated with the public key defined in the Kubernetes auth - * @member {String} signing-key - */ - -GatewayCreateK8SAuthConfig.prototype['signing-key'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateK8SAuthConfig.prototype['token'] = undefined; -/** - * Time in seconds of expiration of the Akeyless Kube Auth Method token - * @member {Number} token-exp - * @default 300 - */ - -GatewayCreateK8SAuthConfig.prototype['token-exp'] = 300; -/** - * A Kubernetes service account JWT used to access the TokenReview API to validate other JWTs (relevant for \"native_k8s\" only). If not set, the JWT submitted in the authentication process will be used to access the Kubernetes TokenReview API. - * @member {String} token-reviewer-jwt - */ - -GatewayCreateK8SAuthConfig.prototype['token-reviewer-jwt'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateK8SAuthConfig.prototype['uid-token'] = undefined; -/** - * Use the GW's service account - * @member {Boolean} use-gw-service-account - */ - -GatewayCreateK8SAuthConfig.prototype['use-gw-service-account'] = undefined; -var _default = GatewayCreateK8SAuthConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 38267: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _ConfigChange = _interopRequireDefault(__nccwpck_require__(47166)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateK8SAuthConfigOutput model module. - * @module model/GatewayCreateK8SAuthConfigOutput - * @version 3.3.16 - */ -var GatewayCreateK8SAuthConfigOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateK8SAuthConfigOutput. - * @alias module:model/GatewayCreateK8SAuthConfigOutput - */ - function GatewayCreateK8SAuthConfigOutput() { - _classCallCheck(this, GatewayCreateK8SAuthConfigOutput); - - GatewayCreateK8SAuthConfigOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateK8SAuthConfigOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateK8SAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateK8SAuthConfigOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateK8SAuthConfigOutput} The populated GatewayCreateK8SAuthConfigOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateK8SAuthConfigOutput(); - - if (data.hasOwnProperty('cluster_id')) { - obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'String'); - } - - if (data.hasOwnProperty('parts_change')) { - obj['parts_change'] = _ConfigChange["default"].constructFromObject(data['parts_change']); - } - - if (data.hasOwnProperty('total_hash')) { - obj['total_hash'] = _ApiClient["default"].convertToType(data['total_hash'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateK8SAuthConfigOutput; -}(); -/** - * @member {String} cluster_id - */ - - -GatewayCreateK8SAuthConfigOutput.prototype['cluster_id'] = undefined; -/** - * @member {module:model/ConfigChange} parts_change - */ - -GatewayCreateK8SAuthConfigOutput.prototype['parts_change'] = undefined; -/** - * @member {String} total_hash - */ - -GatewayCreateK8SAuthConfigOutput.prototype['total_hash'] = undefined; -var _default = GatewayCreateK8SAuthConfigOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 23658: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateMigration model module. - * @module model/GatewayCreateMigration - * @version 3.3.16 - */ -var GatewayCreateMigration = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateMigration. - * gatewayCreateMigration is a command that create migration - * @alias module:model/GatewayCreateMigration - * @param name {String} Migration name - * @param siTargetName {String} SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration) - * @param siUsersPathTemplate {String} Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration) - * @param targetLocation {String} Target location in Akeyless for imported secrets - */ - function GatewayCreateMigration(name, siTargetName, siUsersPathTemplate, targetLocation) { - _classCallCheck(this, GatewayCreateMigration); - - GatewayCreateMigration.initialize(this, name, siTargetName, siUsersPathTemplate, targetLocation); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateMigration, null, [{ - key: "initialize", - value: function initialize(obj, name, siTargetName, siUsersPathTemplate, targetLocation) { - obj['name'] = name; - obj['si-target-name'] = siTargetName; - obj['si-users-path-template'] = siUsersPathTemplate; - obj['target-location'] = targetLocation; - } - /** - * Constructs a GatewayCreateMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateMigration} obj Optional instance to populate. - * @return {module:model/GatewayCreateMigration} The populated GatewayCreateMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateMigration(); - - if (data.hasOwnProperty('1password-email')) { - obj['1password-email'] = _ApiClient["default"].convertToType(data['1password-email'], 'String'); - } - - if (data.hasOwnProperty('1password-password')) { - obj['1password-password'] = _ApiClient["default"].convertToType(data['1password-password'], 'String'); - } - - if (data.hasOwnProperty('1password-secret-key')) { - obj['1password-secret-key'] = _ApiClient["default"].convertToType(data['1password-secret-key'], 'String'); - } - - if (data.hasOwnProperty('1password-url')) { - obj['1password-url'] = _ApiClient["default"].convertToType(data['1password-url'], 'String'); - } - - if (data.hasOwnProperty('1password-vaults')) { - obj['1password-vaults'] = _ApiClient["default"].convertToType(data['1password-vaults'], ['String']); - } - - if (data.hasOwnProperty('ad-ssh-port')) { - obj['ad-ssh-port'] = _ApiClient["default"].convertToType(data['ad-ssh-port'], 'String'); - } - - if (data.hasOwnProperty('ad-targets-type')) { - obj['ad-targets-type'] = _ApiClient["default"].convertToType(data['ad-targets-type'], 'String'); - } - - if (data.hasOwnProperty('ad-winrm-over-http')) { - obj['ad-winrm-over-http'] = _ApiClient["default"].convertToType(data['ad-winrm-over-http'], 'String'); - } - - if (data.hasOwnProperty('ad-winrm-port')) { - obj['ad-winrm-port'] = _ApiClient["default"].convertToType(data['ad-winrm-port'], 'String'); - } - - if (data.hasOwnProperty('ad_auto_rotate')) { - obj['ad_auto_rotate'] = _ApiClient["default"].convertToType(data['ad_auto_rotate'], 'String'); - } - - if (data.hasOwnProperty('ad_computer_base_dn')) { - obj['ad_computer_base_dn'] = _ApiClient["default"].convertToType(data['ad_computer_base_dn'], 'String'); - } - - if (data.hasOwnProperty('ad_discover_local_users')) { - obj['ad_discover_local_users'] = _ApiClient["default"].convertToType(data['ad_discover_local_users'], 'String'); - } - - if (data.hasOwnProperty('ad_domain_name')) { - obj['ad_domain_name'] = _ApiClient["default"].convertToType(data['ad_domain_name'], 'String'); - } - - if (data.hasOwnProperty('ad_domain_users_path_template')) { - obj['ad_domain_users_path_template'] = _ApiClient["default"].convertToType(data['ad_domain_users_path_template'], 'String'); - } - - if (data.hasOwnProperty('ad_local_users_ignore')) { - obj['ad_local_users_ignore'] = _ApiClient["default"].convertToType(data['ad_local_users_ignore'], 'String'); - } - - if (data.hasOwnProperty('ad_local_users_path_template')) { - obj['ad_local_users_path_template'] = _ApiClient["default"].convertToType(data['ad_local_users_path_template'], 'String'); - } - - if (data.hasOwnProperty('ad_rotation_hour')) { - obj['ad_rotation_hour'] = _ApiClient["default"].convertToType(data['ad_rotation_hour'], 'Number'); - } - - if (data.hasOwnProperty('ad_rotation_interval')) { - obj['ad_rotation_interval'] = _ApiClient["default"].convertToType(data['ad_rotation_interval'], 'Number'); - } - - if (data.hasOwnProperty('ad_sra_enable_rdp')) { - obj['ad_sra_enable_rdp'] = _ApiClient["default"].convertToType(data['ad_sra_enable_rdp'], 'String'); - } - - if (data.hasOwnProperty('ad_target_name')) { - obj['ad_target_name'] = _ApiClient["default"].convertToType(data['ad_target_name'], 'String'); - } - - if (data.hasOwnProperty('ad_targets_path_template')) { - obj['ad_targets_path_template'] = _ApiClient["default"].convertToType(data['ad_targets_path_template'], 'String'); - } - - if (data.hasOwnProperty('ad_user_base_dn')) { - obj['ad_user_base_dn'] = _ApiClient["default"].convertToType(data['ad_user_base_dn'], 'String'); - } - - if (data.hasOwnProperty('ad_user_groups')) { - obj['ad_user_groups'] = _ApiClient["default"].convertToType(data['ad_user_groups'], 'String'); - } - - if (data.hasOwnProperty('aws-key')) { - obj['aws-key'] = _ApiClient["default"].convertToType(data['aws-key'], 'String'); - } - - if (data.hasOwnProperty('aws-key-id')) { - obj['aws-key-id'] = _ApiClient["default"].convertToType(data['aws-key-id'], 'String'); - } - - if (data.hasOwnProperty('aws-region')) { - obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); - } - - if (data.hasOwnProperty('azure-client-id')) { - obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); - } - - if (data.hasOwnProperty('azure-kv-name')) { - obj['azure-kv-name'] = _ApiClient["default"].convertToType(data['azure-kv-name'], 'String'); - } - - if (data.hasOwnProperty('azure-secret')) { - obj['azure-secret'] = _ApiClient["default"].convertToType(data['azure-secret'], 'String'); - } - - if (data.hasOwnProperty('azure-tenant-id')) { - obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); - } - - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); - } - - if (data.hasOwnProperty('hashi-json')) { - obj['hashi-json'] = _ApiClient["default"].convertToType(data['hashi-json'], 'String'); - } - - if (data.hasOwnProperty('hashi-ns')) { - obj['hashi-ns'] = _ApiClient["default"].convertToType(data['hashi-ns'], ['String']); - } - - if (data.hasOwnProperty('hashi-token')) { - obj['hashi-token'] = _ApiClient["default"].convertToType(data['hashi-token'], 'String'); - } - - if (data.hasOwnProperty('hashi-url')) { - obj['hashi-url'] = _ApiClient["default"].convertToType(data['hashi-url'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s-ca-certificate')) { - obj['k8s-ca-certificate'] = _ApiClient["default"].convertToType(data['k8s-ca-certificate'], ['Number']); - } - - if (data.hasOwnProperty('k8s-client-certificate')) { - obj['k8s-client-certificate'] = _ApiClient["default"].convertToType(data['k8s-client-certificate'], ['Number']); - } - - if (data.hasOwnProperty('k8s-client-key')) { - obj['k8s-client-key'] = _ApiClient["default"].convertToType(data['k8s-client-key'], ['Number']); - } - - if (data.hasOwnProperty('k8s-namespace')) { - obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); - } - - if (data.hasOwnProperty('k8s-password')) { - obj['k8s-password'] = _ApiClient["default"].convertToType(data['k8s-password'], 'String'); - } - - if (data.hasOwnProperty('k8s-skip-system')) { - obj['k8s-skip-system'] = _ApiClient["default"].convertToType(data['k8s-skip-system'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s-token')) { - obj['k8s-token'] = _ApiClient["default"].convertToType(data['k8s-token'], 'String'); - } - - if (data.hasOwnProperty('k8s-url')) { - obj['k8s-url'] = _ApiClient["default"].convertToType(data['k8s-url'], 'String'); - } - - if (data.hasOwnProperty('k8s-username')) { - obj['k8s-username'] = _ApiClient["default"].convertToType(data['k8s-username'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('protection-key')) { - obj['protection-key'] = _ApiClient["default"].convertToType(data['protection-key'], 'String'); - } - - if (data.hasOwnProperty('si-auto-rotate')) { - obj['si-auto-rotate'] = _ApiClient["default"].convertToType(data['si-auto-rotate'], 'String'); - } - - if (data.hasOwnProperty('si-rotation-hour')) { - obj['si-rotation-hour'] = _ApiClient["default"].convertToType(data['si-rotation-hour'], 'Number'); - } - - if (data.hasOwnProperty('si-rotation-interval')) { - obj['si-rotation-interval'] = _ApiClient["default"].convertToType(data['si-rotation-interval'], 'Number'); - } - - if (data.hasOwnProperty('si-sra-enable-rdp')) { - obj['si-sra-enable-rdp'] = _ApiClient["default"].convertToType(data['si-sra-enable-rdp'], 'String'); - } - - if (data.hasOwnProperty('si-target-name')) { - obj['si-target-name'] = _ApiClient["default"].convertToType(data['si-target-name'], 'String'); - } - - if (data.hasOwnProperty('si-users-ignore')) { - obj['si-users-ignore'] = _ApiClient["default"].convertToType(data['si-users-ignore'], 'String'); - } - - if (data.hasOwnProperty('si-users-path-template')) { - obj['si-users-path-template'] = _ApiClient["default"].convertToType(data['si-users-path-template'], 'String'); - } - - if (data.hasOwnProperty('target-location')) { - obj['target-location'] = _ApiClient["default"].convertToType(data['target-location'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateMigration; -}(); -/** - * 1Password user email to connect to the API - * @member {String} 1password-email - */ - - -GatewayCreateMigration.prototype['1password-email'] = undefined; -/** - * 1Password user password to connect to the API - * @member {String} 1password-password - */ - -GatewayCreateMigration.prototype['1password-password'] = undefined; -/** - * 1Password user secret key to connect to the API - * @member {String} 1password-secret-key - */ - -GatewayCreateMigration.prototype['1password-secret-key'] = undefined; -/** - * 1Password api container url - * @member {String} 1password-url - */ - -GatewayCreateMigration.prototype['1password-url'] = undefined; -/** - * 1Password list of vault to get the items from - * @member {Array.} 1password-vaults - */ - -GatewayCreateMigration.prototype['1password-vaults'] = undefined; -/** - * Set the SSH Port for further connection to the domain servers. Default is port 22 (Relevant only for Active Directory migration) - * @member {String} ad-ssh-port - * @default '22' - */ - -GatewayCreateMigration.prototype['ad-ssh-port'] = '22'; -/** - * Set the target type of the domain servers [ssh/windows](Relevant only for Active Directory migration) - * @member {String} ad-targets-type - * @default 'windows' - */ - -GatewayCreateMigration.prototype['ad-targets-type'] = 'windows'; -/** - * Use WinRM over HTTP, by default runs over HTTPS - * @member {String} ad-winrm-over-http - * @default 'false' - */ - -GatewayCreateMigration.prototype['ad-winrm-over-http'] = 'false'; -/** - * Set the WinRM Port for further connection to the domain servers. Default is 5986 (Relevant only for Active Directory migration) - * @member {String} ad-winrm-port - * @default '5986' - */ - -GatewayCreateMigration.prototype['ad-winrm-port'] = '5986'; -/** - * Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --ad-rotation-interval and --ad-rotation-hour parameters (Relevant only for Active Directory migration) - * @member {String} ad_auto_rotate - */ - -GatewayCreateMigration.prototype['ad_auto_rotate'] = undefined; -/** - * Distinguished Name of Computer objects (servers) to search in Active Directory e.g.: CN=Computers,DC=example,DC=com (Relevant only for Active Directory migration) - * @member {String} ad_computer_base_dn - */ - -GatewayCreateMigration.prototype['ad_computer_base_dn'] = undefined; -/** - * Enable/Disable discovery of local users from each domain server and migrate them as SSH/Windows Rotated Secrets. Default is false: only domain users will be migrated. Discovery of local users might require further installation of SSH on the servers, based on the supplied computer base DN. This will be implemented automatically as part of the migration process (Relevant only for Active Directory migration) - * @member {String} ad_discover_local_users - */ - -GatewayCreateMigration.prototype['ad_discover_local_users'] = undefined; -/** - * Active Directory Domain Name (Relevant only for Active Directory migration) - * @member {String} ad_domain_name - */ - -GatewayCreateMigration.prototype['ad_domain_name'] = undefined; -/** - * Path location template for migrating domain users as Rotated Secrets e.g.: .../DomainUsers/{{USERNAME}} (Relevant only for Active Directory migration) - * @member {String} ad_domain_users_path_template - */ - -GatewayCreateMigration.prototype['ad_domain_users_path_template'] = undefined; -/** - * Comma-separated list of Local Users which should not be migrated (Relevant only for Active Directory migration) - * @member {String} ad_local_users_ignore - */ - -GatewayCreateMigration.prototype['ad_local_users_ignore'] = undefined; -/** - * Path location template for migrating domain users as Rotated Secrets e.g.: .../LocalUsers/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Active Directory migration) - * @member {String} ad_local_users_path_template - */ - -GatewayCreateMigration.prototype['ad_local_users_path_template'] = undefined; -/** - * The hour of the scheduled rotation in UTC (Relevant only for Active Directory migration) - * @member {Number} ad_rotation_hour - */ - -GatewayCreateMigration.prototype['ad_rotation_hour'] = undefined; -/** - * The number of days to wait between every automatic rotation [1-365] (Relevant only for Active Directory migration) - * @member {Number} ad_rotation_interval - */ - -GatewayCreateMigration.prototype['ad_rotation_interval'] = undefined; -/** - * Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Active Directory migration) - * @member {String} ad_sra_enable_rdp - */ - -GatewayCreateMigration.prototype['ad_sra_enable_rdp'] = undefined; -/** - * Active Directory LDAP Target Name. Server type should be Active Directory (Relevant only for Active Directory migration) - * @member {String} ad_target_name - */ - -GatewayCreateMigration.prototype['ad_target_name'] = undefined; -/** - * Path location template for migrating domain servers as SSH/Windows Targets e.g.: .../Servers/{{COMPUTER_NAME}} (Relevant only for Active Directory migration) - * @member {String} ad_targets_path_template - */ - -GatewayCreateMigration.prototype['ad_targets_path_template'] = undefined; -/** - * Distinguished Name of User objects to search in Active Directory, e.g.: CN=Users,DC=example,DC=com (Relevant only for Active Directory migration) - * @member {String} ad_user_base_dn - */ - -GatewayCreateMigration.prototype['ad_user_base_dn'] = undefined; -/** - * Comma-separated list of domain groups from which privileged domain users will be migrated. If empty, migrate all users based on the --ad-user-base-dn (Relevant only for Active Directory migration) - * @member {String} ad_user_groups - */ - -GatewayCreateMigration.prototype['ad_user_groups'] = undefined; -/** - * AWS Secret Access Key (relevant only for AWS migration) - * @member {String} aws-key - */ - -GatewayCreateMigration.prototype['aws-key'] = undefined; -/** - * AWS Access Key ID with sufficient permissions to get all secrets, e.g. 'arn:aws:secretsmanager:[Region]:[AccountId]:secret:[/path/to/secrets/_*]' (relevant only for AWS migration) - * @member {String} aws-key-id - */ - -GatewayCreateMigration.prototype['aws-key-id'] = undefined; -/** - * AWS region of the required Secrets Manager (relevant only for AWS migration) - * @member {String} aws-region - * @default 'us-east-2' - */ - -GatewayCreateMigration.prototype['aws-region'] = 'us-east-2'; -/** - * Azure Key Vault Access client ID, should be Azure AD App with a service principal (relevant only for Azure Key Vault migration) - * @member {String} azure-client-id - */ - -GatewayCreateMigration.prototype['azure-client-id'] = undefined; -/** - * Azure Key Vault Name (relevant only for Azure Key Vault migration) - * @member {String} azure-kv-name - */ - -GatewayCreateMigration.prototype['azure-kv-name'] = undefined; -/** - * Azure Key Vault secret (relevant only for Azure Key Vault migration) - * @member {String} azure-secret - */ - -GatewayCreateMigration.prototype['azure-secret'] = undefined; -/** - * Azure Key Vault Access tenant ID (relevant only for Azure Key Vault migration) - * @member {String} azure-tenant-id - */ - -GatewayCreateMigration.prototype['azure-tenant-id'] = undefined; -/** - * Base64-encoded GCP Service Account private key text with sufficient permissions to Secrets Manager, Minimum required permission is Secret Manager Secret Accessor, e.g. 'roles/secretmanager.secretAccessor' (relevant only for GCP migration) - * @member {String} gcp-key - */ - -GatewayCreateMigration.prototype['gcp-key'] = undefined; -/** - * Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false] - * @member {String} hashi-json - * @default 'true' - */ - -GatewayCreateMigration.prototype['hashi-json'] = 'true'; -/** - * HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration) - * @member {Array.} hashi-ns - */ - -GatewayCreateMigration.prototype['hashi-ns'] = undefined; -/** - * HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration) - * @member {String} hashi-token - */ - -GatewayCreateMigration.prototype['hashi-token'] = undefined; -/** - * HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration) - * @member {String} hashi-url - */ - -GatewayCreateMigration.prototype['hashi-url'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateMigration.prototype['json'] = false; -/** - * For Certificate Authentication method K8s Cluster CA certificate (relevant only for K8s migration with Certificate Authentication method) - * @member {Array.} k8s-ca-certificate - */ - -GatewayCreateMigration.prototype['k8s-ca-certificate'] = undefined; -/** - * K8s Client certificate with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Certificate Authentication method) - * @member {Array.} k8s-client-certificate - */ - -GatewayCreateMigration.prototype['k8s-client-certificate'] = undefined; -/** - * K8s Client key (relevant only for K8s migration with Certificate Authentication method) - * @member {Array.} k8s-client-key - */ - -GatewayCreateMigration.prototype['k8s-client-key'] = undefined; -/** - * K8s Namespace, Use this field to import secrets from a particular namespace only. By default, the secrets are imported from all namespaces (relevant only for K8s migration) - * @member {String} k8s-namespace - */ - -GatewayCreateMigration.prototype['k8s-namespace'] = undefined; -/** - * K8s Client password (relevant only for K8s migration with Password Authentication method) - * @member {String} k8s-password - */ - -GatewayCreateMigration.prototype['k8s-password'] = undefined; -/** - * K8s Skip Control Plane Secrets, This option allows to avoid importing secrets from system namespaces (relevant only for K8s migration) - * @member {Boolean} k8s-skip-system - */ - -GatewayCreateMigration.prototype['k8s-skip-system'] = undefined; -/** - * For Token Authentication method K8s Bearer Token with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Token Authentication method) - * @member {String} k8s-token - */ - -GatewayCreateMigration.prototype['k8s-token'] = undefined; -/** - * K8s API Server URL, e.g. https://k8s-api.mycompany.com:6443 (relevant only for K8s migration) - * @member {String} k8s-url - */ - -GatewayCreateMigration.prototype['k8s-url'] = undefined; -/** - * For Password Authentication method K8s Client username with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Password Authentication method) - * @member {String} k8s-username - */ - -GatewayCreateMigration.prototype['k8s-username'] = undefined; -/** - * Migration name - * @member {String} name - */ - -GatewayCreateMigration.prototype['name'] = undefined; -/** - * The name of the key that protects the classic key value (if empty, the account default key will be used) - * @member {String} protection-key - */ - -GatewayCreateMigration.prototype['protection-key'] = undefined; -/** - * Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --si-rotation-interval and --si-rotation-hour parameters (Relevant only for Server Inventory migration) - * @member {String} si-auto-rotate - */ - -GatewayCreateMigration.prototype['si-auto-rotate'] = undefined; -/** - * The hour of the scheduled rotation in UTC (Relevant only for Server Inventory migration) - * @member {Number} si-rotation-hour - */ - -GatewayCreateMigration.prototype['si-rotation-hour'] = undefined; -/** - * The number of days to wait between every automatic rotation [1-365] (Relevant only for Server Inventory migration) - * @member {Number} si-rotation-interval - */ - -GatewayCreateMigration.prototype['si-rotation-interval'] = undefined; -/** - * Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Server Inventory migration) - * @member {String} si-sra-enable-rdp - * @default 'false' - */ - -GatewayCreateMigration.prototype['si-sra-enable-rdp'] = 'false'; -/** - * SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration) - * @member {String} si-target-name - */ - -GatewayCreateMigration.prototype['si-target-name'] = undefined; -/** - * Comma-separated list of Local Users which should not be migrated (Relevant only for Server Inventory migration) - * @member {String} si-users-ignore - */ - -GatewayCreateMigration.prototype['si-users-ignore'] = undefined; -/** - * Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration) - * @member {String} si-users-path-template - */ - -GatewayCreateMigration.prototype['si-users-path-template'] = undefined; -/** - * Target location in Akeyless for imported secrets - * @member {String} target-location - */ - -GatewayCreateMigration.prototype['target-location'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateMigration.prototype['token'] = undefined; -/** - * Migration type (hashi/aws/gcp/k8s/azure_kv/1password/active_directory) - * @member {String} type - */ - -GatewayCreateMigration.prototype['type'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateMigration.prototype['uid-token'] = undefined; -var _default = GatewayCreateMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 41510: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerArtifactory model module. - * @module model/GatewayCreateProducerArtifactory - * @version 3.3.16 - */ -var GatewayCreateProducerArtifactory = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerArtifactory. - * gatewayCreateProducerArtifactory is a command that creates artifactory producer - * @alias module:model/GatewayCreateProducerArtifactory - * @param artifactoryTokenAudience {String} Token Audience - * @param artifactoryTokenScope {String} Token Scope - * @param name {String} Producer name - */ - function GatewayCreateProducerArtifactory(artifactoryTokenAudience, artifactoryTokenScope, name) { - _classCallCheck(this, GatewayCreateProducerArtifactory); - - GatewayCreateProducerArtifactory.initialize(this, artifactoryTokenAudience, artifactoryTokenScope, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerArtifactory, null, [{ - key: "initialize", - value: function initialize(obj, artifactoryTokenAudience, artifactoryTokenScope, name) { - obj['artifactory-token-audience'] = artifactoryTokenAudience; - obj['artifactory-token-scope'] = artifactoryTokenScope; - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerArtifactory from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerArtifactory} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerArtifactory} The populated GatewayCreateProducerArtifactory instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerArtifactory(); - - if (data.hasOwnProperty('artifactory-admin-name')) { - obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); - } - - if (data.hasOwnProperty('artifactory-admin-pwd')) { - obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); - } - - if (data.hasOwnProperty('artifactory-token-audience')) { - obj['artifactory-token-audience'] = _ApiClient["default"].convertToType(data['artifactory-token-audience'], 'String'); - } - - if (data.hasOwnProperty('artifactory-token-scope')) { - obj['artifactory-token-scope'] = _ApiClient["default"].convertToType(data['artifactory-token-scope'], 'String'); - } - - if (data.hasOwnProperty('base-url')) { - obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerArtifactory; -}(); -/** - * Artifactory Admin Name - * @member {String} artifactory-admin-name - */ - - -GatewayCreateProducerArtifactory.prototype['artifactory-admin-name'] = undefined; -/** - * Artifactory Admin password - * @member {String} artifactory-admin-pwd - */ - -GatewayCreateProducerArtifactory.prototype['artifactory-admin-pwd'] = undefined; -/** - * Token Audience - * @member {String} artifactory-token-audience - */ - -GatewayCreateProducerArtifactory.prototype['artifactory-token-audience'] = undefined; -/** - * Token Scope - * @member {String} artifactory-token-scope - */ - -GatewayCreateProducerArtifactory.prototype['artifactory-token-scope'] = undefined; -/** - * Base URL - * @member {String} base-url - */ - -GatewayCreateProducerArtifactory.prototype['base-url'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerArtifactory.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerArtifactory.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerArtifactory.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerArtifactory.prototype['producer-encryption-key-name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerArtifactory.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerArtifactory.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerArtifactory.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerArtifactory.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerArtifactory.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerArtifactory; -exports["default"] = _default; - -/***/ }), - -/***/ 55523: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerArtifactoryOutput model module. - * @module model/GatewayCreateProducerArtifactoryOutput - * @version 3.3.16 - */ -var GatewayCreateProducerArtifactoryOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerArtifactoryOutput. - * @alias module:model/GatewayCreateProducerArtifactoryOutput - */ - function GatewayCreateProducerArtifactoryOutput() { - _classCallCheck(this, GatewayCreateProducerArtifactoryOutput); - - GatewayCreateProducerArtifactoryOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerArtifactoryOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerArtifactoryOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerArtifactoryOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerArtifactoryOutput} The populated GatewayCreateProducerArtifactoryOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerArtifactoryOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerArtifactoryOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerArtifactoryOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerArtifactoryOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 45677: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerAws model module. - * @module model/GatewayCreateProducerAws - * @version 3.3.16 - */ -var GatewayCreateProducerAws = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerAws. - * gatewayCreateProducerAws is a command that creates aws producer - * @alias module:model/GatewayCreateProducerAws - * @param name {String} Producer name - */ - function GatewayCreateProducerAws(name) { - _classCallCheck(this, GatewayCreateProducerAws); - - GatewayCreateProducerAws.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerAws, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerAws from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerAws} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerAws} The populated GatewayCreateProducerAws instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerAws(); - - if (data.hasOwnProperty('access-mode')) { - obj['access-mode'] = _ApiClient["default"].convertToType(data['access-mode'], 'String'); - } - - if (data.hasOwnProperty('admin-rotation-interval-days')) { - obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); - } - - if (data.hasOwnProperty('aws-access-key-id')) { - obj['aws-access-key-id'] = _ApiClient["default"].convertToType(data['aws-access-key-id'], 'String'); - } - - if (data.hasOwnProperty('aws-access-secret-key')) { - obj['aws-access-secret-key'] = _ApiClient["default"].convertToType(data['aws-access-secret-key'], 'String'); - } - - if (data.hasOwnProperty('aws-role-arns')) { - obj['aws-role-arns'] = _ApiClient["default"].convertToType(data['aws-role-arns'], 'String'); - } - - if (data.hasOwnProperty('aws-user-console-access')) { - obj['aws-user-console-access'] = _ApiClient["default"].convertToType(data['aws-user-console-access'], 'Boolean'); - } - - if (data.hasOwnProperty('aws-user-groups')) { - obj['aws-user-groups'] = _ApiClient["default"].convertToType(data['aws-user-groups'], 'String'); - } - - if (data.hasOwnProperty('aws-user-policies')) { - obj['aws-user-policies'] = _ApiClient["default"].convertToType(data['aws-user-policies'], 'String'); - } - - if (data.hasOwnProperty('aws-user-programmatic-access')) { - obj['aws-user-programmatic-access'] = _ApiClient["default"].convertToType(data['aws-user-programmatic-access'], 'Boolean'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('enable-admin-rotation')) { - obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } - - if (data.hasOwnProperty('secure-access-aws-account-id')) { - obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); - } - - if (data.hasOwnProperty('secure-access-aws-native-cli')) { - obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerAws; -}(); -/** - * @member {String} access-mode - */ - - -GatewayCreateProducerAws.prototype['access-mode'] = undefined; -/** - * Admin credentials rotation interval (days) - * @member {Number} admin-rotation-interval-days - * @default 0 - */ - -GatewayCreateProducerAws.prototype['admin-rotation-interval-days'] = 0; -/** - * Access Key ID - * @member {String} aws-access-key-id - */ - -GatewayCreateProducerAws.prototype['aws-access-key-id'] = undefined; -/** - * Secret Access Key - * @member {String} aws-access-secret-key - */ - -GatewayCreateProducerAws.prototype['aws-access-secret-key'] = undefined; -/** - * AWS Role ARNs to be used in the Assume Role operation (relevant only for assume_role mode) - * @member {String} aws-role-arns - */ - -GatewayCreateProducerAws.prototype['aws-role-arns'] = undefined; -/** - * AWS User console access - * @member {Boolean} aws-user-console-access - * @default false - */ - -GatewayCreateProducerAws.prototype['aws-user-console-access'] = false; -/** - * AWS User groups - * @member {String} aws-user-groups - */ - -GatewayCreateProducerAws.prototype['aws-user-groups'] = undefined; -/** - * AWS User policies - * @member {String} aws-user-policies - */ - -GatewayCreateProducerAws.prototype['aws-user-policies'] = undefined; -/** - * Enable AWS User programmatic access - * @member {Boolean} aws-user-programmatic-access - * @default true - */ - -GatewayCreateProducerAws.prototype['aws-user-programmatic-access'] = true; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerAws.prototype['delete_protection'] = undefined; -/** - * Automatic admin credentials rotation - * @member {Boolean} enable-admin-rotation - * @default false - */ - -GatewayCreateProducerAws.prototype['enable-admin-rotation'] = false; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerAws.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerAws.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerAws.prototype['producer-encryption-key-name'] = undefined; -/** - * Region - * @member {String} region - * @default 'us-east-2' - */ - -GatewayCreateProducerAws.prototype['region'] = 'us-east-2'; -/** - * The AWS account id - * @member {String} secure-access-aws-account-id - */ - -GatewayCreateProducerAws.prototype['secure-access-aws-account-id'] = undefined; -/** - * The AWS native cli - * @member {Boolean} secure-access-aws-native-cli - */ - -GatewayCreateProducerAws.prototype['secure-access-aws-native-cli'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayCreateProducerAws.prototype['secure-access-bastion-issuer'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerAws.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default true - */ - -GatewayCreateProducerAws.prototype['secure-access-web'] = true; -/** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false - */ - -GatewayCreateProducerAws.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false - */ - -GatewayCreateProducerAws.prototype['secure-access-web-proxy'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerAws.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerAws.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerAws.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerAws.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerAws.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerAws; -exports["default"] = _default; - -/***/ }), - -/***/ 98248: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerAwsOutput model module. - * @module model/GatewayCreateProducerAwsOutput - * @version 3.3.16 - */ -var GatewayCreateProducerAwsOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerAwsOutput. - * @alias module:model/GatewayCreateProducerAwsOutput - */ - function GatewayCreateProducerAwsOutput() { - _classCallCheck(this, GatewayCreateProducerAwsOutput); - - GatewayCreateProducerAwsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerAwsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerAwsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerAwsOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerAwsOutput} The populated GatewayCreateProducerAwsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerAwsOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerAwsOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerAwsOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerAwsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 84283: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerAzure model module. - * @module model/GatewayCreateProducerAzure - * @version 3.3.16 - */ -var GatewayCreateProducerAzure = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerAzure. - * gatewayCreateProducerAzure is a command that creates azure producer - * @alias module:model/GatewayCreateProducerAzure - * @param name {String} Producer name - */ - function GatewayCreateProducerAzure(name) { - _classCallCheck(this, GatewayCreateProducerAzure); - - GatewayCreateProducerAzure.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerAzure, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerAzure from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerAzure} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerAzure} The populated GatewayCreateProducerAzure instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerAzure(); - - if (data.hasOwnProperty('app-obj-id')) { - obj['app-obj-id'] = _ApiClient["default"].convertToType(data['app-obj-id'], 'String'); - } - - if (data.hasOwnProperty('azure-client-id')) { - obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); - } - - if (data.hasOwnProperty('azure-client-secret')) { - obj['azure-client-secret'] = _ApiClient["default"].convertToType(data['azure-client-secret'], 'String'); - } - - if (data.hasOwnProperty('azure-tenant-id')) { - obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('fixed-user-claim-keyname')) { - obj['fixed-user-claim-keyname'] = _ApiClient["default"].convertToType(data['fixed-user-claim-keyname'], 'String'); - } - - if (data.hasOwnProperty('fixed-user-only')) { - obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-group-obj-id')) { - obj['user-group-obj-id'] = _ApiClient["default"].convertToType(data['user-group-obj-id'], 'String'); - } - - if (data.hasOwnProperty('user-portal-access')) { - obj['user-portal-access'] = _ApiClient["default"].convertToType(data['user-portal-access'], 'Boolean'); - } - - if (data.hasOwnProperty('user-principal-name')) { - obj['user-principal-name'] = _ApiClient["default"].convertToType(data['user-principal-name'], 'String'); - } - - if (data.hasOwnProperty('user-programmatic-access')) { - obj['user-programmatic-access'] = _ApiClient["default"].convertToType(data['user-programmatic-access'], 'Boolean'); - } - - if (data.hasOwnProperty('user-role-template-id')) { - obj['user-role-template-id'] = _ApiClient["default"].convertToType(data['user-role-template-id'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerAzure; -}(); -/** - * Azure App Object Id - * @member {String} app-obj-id - */ - - -GatewayCreateProducerAzure.prototype['app-obj-id'] = undefined; -/** - * Azure Client ID - * @member {String} azure-client-id - */ - -GatewayCreateProducerAzure.prototype['azure-client-id'] = undefined; -/** - * Azure Client Secret - * @member {String} azure-client-secret - */ - -GatewayCreateProducerAzure.prototype['azure-client-secret'] = undefined; -/** - * Azure Tenant ID - * @member {String} azure-tenant-id - */ - -GatewayCreateProducerAzure.prototype['azure-tenant-id'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerAzure.prototype['delete_protection'] = undefined; -/** - * FixedUserClaimKeyname - * @member {String} fixed-user-claim-keyname - * @default 'false' - */ - -GatewayCreateProducerAzure.prototype['fixed-user-claim-keyname'] = 'false'; -/** - * Fixed user - * @member {Boolean} fixed-user-only - * @default false - */ - -GatewayCreateProducerAzure.prototype['fixed-user-only'] = false; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerAzure.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerAzure.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerAzure.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerAzure.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default true - */ - -GatewayCreateProducerAzure.prototype['secure-access-web'] = true; -/** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false - */ - -GatewayCreateProducerAzure.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false - */ - -GatewayCreateProducerAzure.prototype['secure-access-web-proxy'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerAzure.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerAzure.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerAzure.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerAzure.prototype['uid-token'] = undefined; -/** - * User Group Object Id - * @member {String} user-group-obj-id - */ - -GatewayCreateProducerAzure.prototype['user-group-obj-id'] = undefined; -/** - * Azure User portal access - * @member {Boolean} user-portal-access - * @default false - */ - -GatewayCreateProducerAzure.prototype['user-portal-access'] = false; -/** - * User Principal Name - * @member {String} user-principal-name - */ - -GatewayCreateProducerAzure.prototype['user-principal-name'] = undefined; -/** - * Azure User programmatic access - * @member {Boolean} user-programmatic-access - * @default false - */ - -GatewayCreateProducerAzure.prototype['user-programmatic-access'] = false; -/** - * User Role Template Id - * @member {String} user-role-template-id - */ - -GatewayCreateProducerAzure.prototype['user-role-template-id'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerAzure.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerAzure; -exports["default"] = _default; - -/***/ }), - -/***/ 35770: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerAzureOutput model module. - * @module model/GatewayCreateProducerAzureOutput - * @version 3.3.16 - */ -var GatewayCreateProducerAzureOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerAzureOutput. - * @alias module:model/GatewayCreateProducerAzureOutput - */ - function GatewayCreateProducerAzureOutput() { - _classCallCheck(this, GatewayCreateProducerAzureOutput); - - GatewayCreateProducerAzureOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerAzureOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerAzureOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerAzureOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerAzureOutput} The populated GatewayCreateProducerAzureOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerAzureOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerAzureOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerAzureOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerAzureOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 53266: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerCassandra model module. - * @module model/GatewayCreateProducerCassandra - * @version 3.3.16 - */ -var GatewayCreateProducerCassandra = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerCassandra. - * gatewayCreateProducerCassandra is a command that creates a Cassandra producer - * @alias module:model/GatewayCreateProducerCassandra - * @param name {String} Producer name - */ - function GatewayCreateProducerCassandra(name) { - _classCallCheck(this, GatewayCreateProducerCassandra); - - GatewayCreateProducerCassandra.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerCassandra, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerCassandra from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerCassandra} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerCassandra} The populated GatewayCreateProducerCassandra instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerCassandra(); - - if (data.hasOwnProperty('cassandra-creation-statements')) { - obj['cassandra-creation-statements'] = _ApiClient["default"].convertToType(data['cassandra-creation-statements'], 'String'); - } - - if (data.hasOwnProperty('cassandra-hosts')) { - obj['cassandra-hosts'] = _ApiClient["default"].convertToType(data['cassandra-hosts'], 'String'); - } - - if (data.hasOwnProperty('cassandra-password')) { - obj['cassandra-password'] = _ApiClient["default"].convertToType(data['cassandra-password'], 'String'); - } - - if (data.hasOwnProperty('cassandra-port')) { - obj['cassandra-port'] = _ApiClient["default"].convertToType(data['cassandra-port'], 'String'); - } - - if (data.hasOwnProperty('cassandra-username')) { - obj['cassandra-username'] = _ApiClient["default"].convertToType(data['cassandra-username'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerCassandra; -}(); -/** - * Cassandra creation statements - * @member {String} cassandra-creation-statements - */ - - -GatewayCreateProducerCassandra.prototype['cassandra-creation-statements'] = undefined; -/** - * Cassandra hosts IP or addresses, comma separated - * @member {String} cassandra-hosts - */ - -GatewayCreateProducerCassandra.prototype['cassandra-hosts'] = undefined; -/** - * Cassandra superuser password - * @member {String} cassandra-password - */ - -GatewayCreateProducerCassandra.prototype['cassandra-password'] = undefined; -/** - * Cassandra port - * @member {String} cassandra-port - * @default '9042' - */ - -GatewayCreateProducerCassandra.prototype['cassandra-port'] = '9042'; -/** - * Cassandra superuser username - * @member {String} cassandra-username - */ - -GatewayCreateProducerCassandra.prototype['cassandra-username'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerCassandra.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerCassandra.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerCassandra.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerCassandra.prototype['producer-encryption-key-name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerCassandra.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerCassandra.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerCassandra.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerCassandra.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerCassandra.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerCassandra; -exports["default"] = _default; - -/***/ }), - -/***/ 43031: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerCassandraOutput model module. - * @module model/GatewayCreateProducerCassandraOutput - * @version 3.3.16 - */ -var GatewayCreateProducerCassandraOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerCassandraOutput. - * @alias module:model/GatewayCreateProducerCassandraOutput - */ - function GatewayCreateProducerCassandraOutput() { - _classCallCheck(this, GatewayCreateProducerCassandraOutput); - - GatewayCreateProducerCassandraOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerCassandraOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerCassandraOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerCassandraOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerCassandraOutput} The populated GatewayCreateProducerCassandraOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerCassandraOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerCassandraOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerCassandraOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerCassandraOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 45608: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerCertificateAutomation model module. - * @module model/GatewayCreateProducerCertificateAutomation - * @version 3.3.16 - */ -var GatewayCreateProducerCertificateAutomation = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerCertificateAutomation. - * gatewayCreateProducerCertificateAutomation is a command that creates a Certificate Automation dynamic secret producer to dynamically create certificates generated by Venafi or have Akeyless generated certificates using PKI be monitored by Venafi - * @alias module:model/GatewayCreateProducerCertificateAutomation - * @param name {String} Producer name - */ - function GatewayCreateProducerCertificateAutomation(name) { - _classCallCheck(this, GatewayCreateProducerCertificateAutomation); - - GatewayCreateProducerCertificateAutomation.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerCertificateAutomation, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerCertificateAutomation from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerCertificateAutomation} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerCertificateAutomation} The populated GatewayCreateProducerCertificateAutomation instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerCertificateAutomation(); - - if (data.hasOwnProperty('admin-rotation-interval-days')) { - obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); - } - - if (data.hasOwnProperty('allow-subdomains')) { - obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); - } - - if (data.hasOwnProperty('allowed-domains')) { - obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], ['String']); - } - - if (data.hasOwnProperty('auto-generated-folder')) { - obj['auto-generated-folder'] = _ApiClient["default"].convertToType(data['auto-generated-folder'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('enable-admin-rotation')) { - obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('root-first-in-chain')) { - obj['root-first-in-chain'] = _ApiClient["default"].convertToType(data['root-first-in-chain'], 'Boolean'); - } - - if (data.hasOwnProperty('sign-using-akeyless-pki')) { - obj['sign-using-akeyless-pki'] = _ApiClient["default"].convertToType(data['sign-using-akeyless-pki'], 'Boolean'); - } - - if (data.hasOwnProperty('signer-key-name')) { - obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); - } - - if (data.hasOwnProperty('store-private-key')) { - obj['store-private-key'] = _ApiClient["default"].convertToType(data['store-private-key'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - - if (data.hasOwnProperty('venafi-access-token')) { - obj['venafi-access-token'] = _ApiClient["default"].convertToType(data['venafi-access-token'], 'String'); - } - - if (data.hasOwnProperty('venafi-api-key')) { - obj['venafi-api-key'] = _ApiClient["default"].convertToType(data['venafi-api-key'], 'String'); - } - - if (data.hasOwnProperty('venafi-baseurl')) { - obj['venafi-baseurl'] = _ApiClient["default"].convertToType(data['venafi-baseurl'], 'String'); - } - - if (data.hasOwnProperty('venafi-client-id')) { - obj['venafi-client-id'] = _ApiClient["default"].convertToType(data['venafi-client-id'], 'String'); - } - - if (data.hasOwnProperty('venafi-refresh-token')) { - obj['venafi-refresh-token'] = _ApiClient["default"].convertToType(data['venafi-refresh-token'], 'String'); - } - - if (data.hasOwnProperty('venafi-use-tpp')) { - obj['venafi-use-tpp'] = _ApiClient["default"].convertToType(data['venafi-use-tpp'], 'Boolean'); - } - - if (data.hasOwnProperty('venafi-zone')) { - obj['venafi-zone'] = _ApiClient["default"].convertToType(data['venafi-zone'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerCertificateAutomation; -}(); -/** - * Admin credentials rotation interval (days) - * @member {Number} admin-rotation-interval-days - * @default 0 - */ - - -GatewayCreateProducerCertificateAutomation.prototype['admin-rotation-interval-days'] = 0; -/** - * Allow subdomains - * @member {Boolean} allow-subdomains - */ - -GatewayCreateProducerCertificateAutomation.prototype['allow-subdomains'] = undefined; -/** - * Allowed domains - * @member {Array.} allowed-domains - */ - -GatewayCreateProducerCertificateAutomation.prototype['allowed-domains'] = undefined; -/** - * Auto generated folder - * @member {String} auto-generated-folder - */ - -GatewayCreateProducerCertificateAutomation.prototype['auto-generated-folder'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerCertificateAutomation.prototype['delete_protection'] = undefined; -/** - * Automatic admin credentials rotation - * @member {Boolean} enable-admin-rotation - * @default false - */ - -GatewayCreateProducerCertificateAutomation.prototype['enable-admin-rotation'] = false; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerCertificateAutomation.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerCertificateAutomation.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerCertificateAutomation.prototype['producer-encryption-key-name'] = undefined; -/** - * Root first in chain - * @member {Boolean} root-first-in-chain - */ - -GatewayCreateProducerCertificateAutomation.prototype['root-first-in-chain'] = undefined; -/** - * Use Akeyless PKI issuer or Venafi issuer - * @member {Boolean} sign-using-akeyless-pki - */ - -GatewayCreateProducerCertificateAutomation.prototype['sign-using-akeyless-pki'] = undefined; -/** - * Signer key name - * @member {String} signer-key-name - */ - -GatewayCreateProducerCertificateAutomation.prototype['signer-key-name'] = undefined; -/** - * Store private key - * @member {Boolean} store-private-key - */ - -GatewayCreateProducerCertificateAutomation.prototype['store-private-key'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerCertificateAutomation.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerCertificateAutomation.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerCertificateAutomation.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerCertificateAutomation.prototype['uid-token'] = undefined; -/** - * User TTL in time.Duration format (2160h / 129600m / etc...). When using sign-using-akeyless-pki certificates created will have this validity period, otherwise the user-ttl is taken from the Validity Period field of the Zone's' Issuing Template. When using cert-manager it is advised to have a TTL of above 60 days (1440h). For more information - https://cert-manager.io/docs/usage/certificate/ - * @member {String} user-ttl - * @default '2160h' - */ - -GatewayCreateProducerCertificateAutomation.prototype['user-ttl'] = '2160h'; -/** - * Venafi Access Token to use to access the TPP environment (Relevant when using TPP) - * @member {String} venafi-access-token - */ - -GatewayCreateProducerCertificateAutomation.prototype['venafi-access-token'] = undefined; -/** - * Venafi API key - * @member {String} venafi-api-key - */ - -GatewayCreateProducerCertificateAutomation.prototype['venafi-api-key'] = undefined; -/** - * Venafi Baseurl - * @member {String} venafi-baseurl - */ - -GatewayCreateProducerCertificateAutomation.prototype['venafi-baseurl'] = undefined; -/** - * Venafi Client ID that was used when the access token was generated - * @member {String} venafi-client-id - * @default 'akeyless' - */ - -GatewayCreateProducerCertificateAutomation.prototype['venafi-client-id'] = 'akeyless'; -/** - * Venafi Refresh Token to use when the Access Token is expired (Relevant when using TPP) - * @member {String} venafi-refresh-token - */ - -GatewayCreateProducerCertificateAutomation.prototype['venafi-refresh-token'] = undefined; -/** - * Venafi using TPP - * @member {Boolean} venafi-use-tpp - */ - -GatewayCreateProducerCertificateAutomation.prototype['venafi-use-tpp'] = undefined; -/** - * Venafi Zone - * @member {String} venafi-zone - */ - -GatewayCreateProducerCertificateAutomation.prototype['venafi-zone'] = undefined; -var _default = GatewayCreateProducerCertificateAutomation; -exports["default"] = _default; - -/***/ }), - -/***/ 3137: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerCertificateAutomationOutput model module. - * @module model/GatewayCreateProducerCertificateAutomationOutput - * @version 3.3.16 - */ -var GatewayCreateProducerCertificateAutomationOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerCertificateAutomationOutput. - * @alias module:model/GatewayCreateProducerCertificateAutomationOutput - */ - function GatewayCreateProducerCertificateAutomationOutput() { - _classCallCheck(this, GatewayCreateProducerCertificateAutomationOutput); - - GatewayCreateProducerCertificateAutomationOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerCertificateAutomationOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerCertificateAutomationOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerCertificateAutomationOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerCertificateAutomationOutput} The populated GatewayCreateProducerCertificateAutomationOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerCertificateAutomationOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerCertificateAutomationOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerCertificateAutomationOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerCertificateAutomationOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 81410: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerChef model module. - * @module model/GatewayCreateProducerChef - * @version 3.3.16 - */ -var GatewayCreateProducerChef = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerChef. - * gatewayCreateProducerChef is a command that creates chef producer - * @alias module:model/GatewayCreateProducerChef - * @param name {String} Producer name - */ - function GatewayCreateProducerChef(name) { - _classCallCheck(this, GatewayCreateProducerChef); - - GatewayCreateProducerChef.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerChef, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerChef from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerChef} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerChef} The populated GatewayCreateProducerChef instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerChef(); - - if (data.hasOwnProperty('chef-orgs')) { - obj['chef-orgs'] = _ApiClient["default"].convertToType(data['chef-orgs'], 'String'); - } - - if (data.hasOwnProperty('chef-server-key')) { - obj['chef-server-key'] = _ApiClient["default"].convertToType(data['chef-server-key'], 'String'); - } - - if (data.hasOwnProperty('chef-server-url')) { - obj['chef-server-url'] = _ApiClient["default"].convertToType(data['chef-server-url'], 'String'); - } - - if (data.hasOwnProperty('chef-server-username')) { - obj['chef-server-username'] = _ApiClient["default"].convertToType(data['chef-server-username'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('skip-ssl')) { - obj['skip-ssl'] = _ApiClient["default"].convertToType(data['skip-ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerChef; -}(); -/** - * Organizations - * @member {String} chef-orgs - */ - - -GatewayCreateProducerChef.prototype['chef-orgs'] = undefined; -/** - * Server key - * @member {String} chef-server-key - */ - -GatewayCreateProducerChef.prototype['chef-server-key'] = undefined; -/** - * Server URL - * @member {String} chef-server-url - */ - -GatewayCreateProducerChef.prototype['chef-server-url'] = undefined; -/** - * Server username - * @member {String} chef-server-username - */ - -GatewayCreateProducerChef.prototype['chef-server-username'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerChef.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerChef.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerChef.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerChef.prototype['producer-encryption-key-name'] = undefined; -/** - * Skip SSL - * @member {Boolean} skip-ssl - * @default true - */ - -GatewayCreateProducerChef.prototype['skip-ssl'] = true; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerChef.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerChef.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerChef.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerChef.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerChef.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerChef; -exports["default"] = _default; - -/***/ }), - -/***/ 74951: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerChefOutput model module. - * @module model/GatewayCreateProducerChefOutput - * @version 3.3.16 - */ -var GatewayCreateProducerChefOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerChefOutput. - * @alias module:model/GatewayCreateProducerChefOutput - */ - function GatewayCreateProducerChefOutput() { - _classCallCheck(this, GatewayCreateProducerChefOutput); - - GatewayCreateProducerChefOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerChefOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerChefOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerChefOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerChefOutput} The populated GatewayCreateProducerChefOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerChefOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerChefOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerChefOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerChefOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 91173: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerCustom model module. - * @module model/GatewayCreateProducerCustom - * @version 3.3.16 - */ -var GatewayCreateProducerCustom = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerCustom. - * @alias module:model/GatewayCreateProducerCustom - * @param createSyncUrl {String} URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create - * @param name {String} Producer name - * @param revokeSyncUrl {String} URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke - */ - function GatewayCreateProducerCustom(createSyncUrl, name, revokeSyncUrl) { - _classCallCheck(this, GatewayCreateProducerCustom); - - GatewayCreateProducerCustom.initialize(this, createSyncUrl, name, revokeSyncUrl); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerCustom, null, [{ - key: "initialize", - value: function initialize(obj, createSyncUrl, name, revokeSyncUrl) { - obj['create-sync-url'] = createSyncUrl; - obj['name'] = name; - obj['revoke-sync-url'] = revokeSyncUrl; - } - /** - * Constructs a GatewayCreateProducerCustom from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerCustom} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerCustom} The populated GatewayCreateProducerCustom instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerCustom(); - - if (data.hasOwnProperty('admin_rotation_interval_days')) { - obj['admin_rotation_interval_days'] = _ApiClient["default"].convertToType(data['admin_rotation_interval_days'], 'Number'); - } - - if (data.hasOwnProperty('create-sync-url')) { - obj['create-sync-url'] = _ApiClient["default"].convertToType(data['create-sync-url'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('enable_admin_rotation')) { - obj['enable_admin_rotation'] = _ApiClient["default"].convertToType(data['enable_admin_rotation'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('payload')) { - obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('revoke-sync-url')) { - obj['revoke-sync-url'] = _ApiClient["default"].convertToType(data['revoke-sync-url'], 'String'); - } - - if (data.hasOwnProperty('rotate-sync-url')) { - obj['rotate-sync-url'] = _ApiClient["default"].convertToType(data['rotate-sync-url'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('timeout-sec')) { - obj['timeout-sec'] = _ApiClient["default"].convertToType(data['timeout-sec'], 'Number'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerCustom; -}(); -/** - * Define rotation interval in days - * @member {Number} admin_rotation_interval_days - */ - - -GatewayCreateProducerCustom.prototype['admin_rotation_interval_days'] = undefined; -/** - * URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create - * @member {String} create-sync-url - */ - -GatewayCreateProducerCustom.prototype['create-sync-url'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerCustom.prototype['delete_protection'] = undefined; -/** - * Should admin credentials be rotated - * @member {Boolean} enable_admin_rotation - * @default false - */ - -GatewayCreateProducerCustom.prototype['enable_admin_rotation'] = false; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerCustom.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerCustom.prototype['name'] = undefined; -/** - * Secret payload to be sent with each create/revoke webhook request - * @member {String} payload - */ - -GatewayCreateProducerCustom.prototype['payload'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerCustom.prototype['producer-encryption-key-name'] = undefined; -/** - * URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke - * @member {String} revoke-sync-url - */ - -GatewayCreateProducerCustom.prototype['revoke-sync-url'] = undefined; -/** - * URL of an endpoint that implements /sync/rotate method, for example https://webhook.example.com/sync/rotate - * @member {String} rotate-sync-url - */ - -GatewayCreateProducerCustom.prototype['rotate-sync-url'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerCustom.prototype['tags'] = undefined; -/** - * Maximum allowed time in seconds for the webhook to return the results - * @member {Number} timeout-sec - * @default 60 - */ - -GatewayCreateProducerCustom.prototype['timeout-sec'] = 60; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerCustom.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerCustom.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerCustom.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerCustom; -exports["default"] = _default; - -/***/ }), - -/***/ 24592: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerCustomOutput model module. - * @module model/GatewayCreateProducerCustomOutput - * @version 3.3.16 - */ -var GatewayCreateProducerCustomOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerCustomOutput. - * @alias module:model/GatewayCreateProducerCustomOutput - */ - function GatewayCreateProducerCustomOutput() { - _classCallCheck(this, GatewayCreateProducerCustomOutput); - - GatewayCreateProducerCustomOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerCustomOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerCustomOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerCustomOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerCustomOutput} The populated GatewayCreateProducerCustomOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerCustomOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerCustomOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerCustomOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerCustomOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 3207: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerDockerhub model module. - * @module model/GatewayCreateProducerDockerhub - * @version 3.3.16 - */ -var GatewayCreateProducerDockerhub = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerDockerhub. - * gatewayCreateProducerDockerhub is a command that creates a DOCKERHUB producer - * @alias module:model/GatewayCreateProducerDockerhub - * @param name {String} Producer name - */ - function GatewayCreateProducerDockerhub(name) { - _classCallCheck(this, GatewayCreateProducerDockerhub); - - GatewayCreateProducerDockerhub.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerDockerhub, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerDockerhub from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerDockerhub} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerDockerhub} The populated GatewayCreateProducerDockerhub instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerDockerhub(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('dockerhub-password')) { - obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); - } - - if (data.hasOwnProperty('dockerhub-token-scopes')) { - obj['dockerhub-token-scopes'] = _ApiClient["default"].convertToType(data['dockerhub-token-scopes'], 'String'); - } - - if (data.hasOwnProperty('dockerhub-username')) { - obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerDockerhub; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayCreateProducerDockerhub.prototype['delete_protection'] = undefined; -/** - * DockerhubPassword is either the user's password access token to manage the repository - * @member {String} dockerhub-password - */ - -GatewayCreateProducerDockerhub.prototype['dockerhub-password'] = undefined; -/** - * Access token scopes list (comma-separated) to give the dynamic secret valid options are in \"repo:admin\", \"repo:write\", \"repo:read\", \"repo:public_read\" - * @member {String} dockerhub-token-scopes - */ - -GatewayCreateProducerDockerhub.prototype['dockerhub-token-scopes'] = undefined; -/** - * DockerhubUsername is the name of the user in dockerhub - * @member {String} dockerhub-username - */ - -GatewayCreateProducerDockerhub.prototype['dockerhub-username'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerDockerhub.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerDockerhub.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerDockerhub.prototype['producer-encryption-key-name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerDockerhub.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerDockerhub.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerDockerhub.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerDockerhub.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerDockerhub.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerDockerhub; -exports["default"] = _default; - -/***/ }), - -/***/ 89470: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerDockerhubOutput model module. - * @module model/GatewayCreateProducerDockerhubOutput - * @version 3.3.16 - */ -var GatewayCreateProducerDockerhubOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerDockerhubOutput. - * @alias module:model/GatewayCreateProducerDockerhubOutput - */ - function GatewayCreateProducerDockerhubOutput() { - _classCallCheck(this, GatewayCreateProducerDockerhubOutput); - - GatewayCreateProducerDockerhubOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerDockerhubOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerDockerhubOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerDockerhubOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerDockerhubOutput} The populated GatewayCreateProducerDockerhubOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerDockerhubOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerDockerhubOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerDockerhubOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerDockerhubOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 82045: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerEks model module. - * @module model/GatewayCreateProducerEks - * @version 3.3.16 - */ -var GatewayCreateProducerEks = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerEks. - * gatewayCreateProducerEks is a command that creates eks producer - * @alias module:model/GatewayCreateProducerEks - * @param name {String} Producer name - */ - function GatewayCreateProducerEks(name) { - _classCallCheck(this, GatewayCreateProducerEks); - - GatewayCreateProducerEks.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerEks, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerEks from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerEks} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerEks} The populated GatewayCreateProducerEks instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerEks(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('eks-access-key-id')) { - obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); - } - - if (data.hasOwnProperty('eks-assume-role')) { - obj['eks-assume-role'] = _ApiClient["default"].convertToType(data['eks-assume-role'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-ca-cert')) { - obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-endpoint')) { - obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-name')) { - obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); - } - - if (data.hasOwnProperty('eks-region')) { - obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); - } - - if (data.hasOwnProperty('eks-secret-access-key')) { - obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-port-forwading')) { - obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-cluster-endpoint')) { - obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerEks; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayCreateProducerEks.prototype['delete_protection'] = undefined; -/** - * Access Key ID - * @member {String} eks-access-key-id - */ - -GatewayCreateProducerEks.prototype['eks-access-key-id'] = undefined; -/** - * IAM assume role - * @member {String} eks-assume-role - */ - -GatewayCreateProducerEks.prototype['eks-assume-role'] = undefined; -/** - * EKS cluster CA certificate - * @member {String} eks-cluster-ca-cert - */ - -GatewayCreateProducerEks.prototype['eks-cluster-ca-cert'] = undefined; -/** - * EKS cluster URL endpoint - * @member {String} eks-cluster-endpoint - */ - -GatewayCreateProducerEks.prototype['eks-cluster-endpoint'] = undefined; -/** - * EKS cluster name - * @member {String} eks-cluster-name - */ - -GatewayCreateProducerEks.prototype['eks-cluster-name'] = undefined; -/** - * Region - * @member {String} eks-region - * @default 'us-east-2' - */ - -GatewayCreateProducerEks.prototype['eks-region'] = 'us-east-2'; -/** - * Secret Access Key - * @member {String} eks-secret-access-key - */ - -GatewayCreateProducerEks.prototype['eks-secret-access-key'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerEks.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerEks.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerEks.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable Port forwarding while using CLI access - * @member {Boolean} secure-access-allow-port-forwading - */ - -GatewayCreateProducerEks.prototype['secure-access-allow-port-forwading'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayCreateProducerEks.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The K8s cluster endpoint URL - * @member {String} secure-access-cluster-endpoint - */ - -GatewayCreateProducerEks.prototype['secure-access-cluster-endpoint'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerEks.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayCreateProducerEks.prototype['secure-access-web'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerEks.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerEks.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerEks.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerEks.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '15m' - */ - -GatewayCreateProducerEks.prototype['user-ttl'] = '15m'; -var _default = GatewayCreateProducerEks; -exports["default"] = _default; - -/***/ }), - -/***/ 93688: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerEksOutput model module. - * @module model/GatewayCreateProducerEksOutput - * @version 3.3.16 - */ -var GatewayCreateProducerEksOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerEksOutput. - * @alias module:model/GatewayCreateProducerEksOutput - */ - function GatewayCreateProducerEksOutput() { - _classCallCheck(this, GatewayCreateProducerEksOutput); - - GatewayCreateProducerEksOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerEksOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerEksOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerEksOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerEksOutput} The populated GatewayCreateProducerEksOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerEksOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerEksOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerEksOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerEksOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 19050: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerGcp model module. - * @module model/GatewayCreateProducerGcp - * @version 3.3.16 - */ -var GatewayCreateProducerGcp = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerGcp. - * gatewayCreateProducerGcp is a command that creates a GCP producer - * @alias module:model/GatewayCreateProducerGcp - * @param name {String} Producer name - * @param serviceAccountType {String} The type of the gcp dynamic secret. Options[fixed, dynamic] - */ - function GatewayCreateProducerGcp(name, serviceAccountType) { - _classCallCheck(this, GatewayCreateProducerGcp); - - GatewayCreateProducerGcp.initialize(this, name, serviceAccountType); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerGcp, null, [{ - key: "initialize", - value: function initialize(obj, name, serviceAccountType) { - obj['name'] = name; - obj['service-account-type'] = serviceAccountType; - } - /** - * Constructs a GatewayCreateProducerGcp from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerGcp} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerGcp} The populated GatewayCreateProducerGcp instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerGcp(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('gcp-cred-type')) { - obj['gcp-cred-type'] = _ApiClient["default"].convertToType(data['gcp-cred-type'], 'String'); - } - - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); - } - - if (data.hasOwnProperty('gcp-key-algo')) { - obj['gcp-key-algo'] = _ApiClient["default"].convertToType(data['gcp-key-algo'], 'String'); - } - - if (data.hasOwnProperty('gcp-sa-email')) { - obj['gcp-sa-email'] = _ApiClient["default"].convertToType(data['gcp-sa-email'], 'String'); - } - - if (data.hasOwnProperty('gcp-token-scopes')) { - obj['gcp-token-scopes'] = _ApiClient["default"].convertToType(data['gcp-token-scopes'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('role-binding')) { - obj['role-binding'] = _ApiClient["default"].convertToType(data['role-binding'], 'String'); - } - - if (data.hasOwnProperty('service-account-type')) { - obj['service-account-type'] = _ApiClient["default"].convertToType(data['service-account-type'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerGcp; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayCreateProducerGcp.prototype['delete_protection'] = undefined; -/** - * @member {String} gcp-cred-type - */ - -GatewayCreateProducerGcp.prototype['gcp-cred-type'] = undefined; -/** - * Base64-encoded service account private key text - * @member {String} gcp-key - */ - -GatewayCreateProducerGcp.prototype['gcp-key'] = undefined; -/** - * Service account key algorithm, e.g. KEY_ALG_RSA_1024 - * @member {String} gcp-key-algo - */ - -GatewayCreateProducerGcp.prototype['gcp-key-algo'] = undefined; -/** - * The email of the fixed service acocunt to generate keys or tokens for. (revelant for service-account-type=fixed) - * @member {String} gcp-sa-email - */ - -GatewayCreateProducerGcp.prototype['gcp-sa-email'] = undefined; -/** - * Access token scopes list, e.g. scope1,scope2 - * @member {String} gcp-token-scopes - */ - -GatewayCreateProducerGcp.prototype['gcp-token-scopes'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerGcp.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerGcp.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerGcp.prototype['producer-encryption-key-name'] = undefined; -/** - * Role binding definitions in json format - * @member {String} role-binding - */ - -GatewayCreateProducerGcp.prototype['role-binding'] = undefined; -/** - * The type of the gcp dynamic secret. Options[fixed, dynamic] - * @member {String} service-account-type - * @default 'fixed' - */ - -GatewayCreateProducerGcp.prototype['service-account-type'] = 'fixed'; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerGcp.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerGcp.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerGcp.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerGcp.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerGcp.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerGcp; -exports["default"] = _default; - -/***/ }), - -/***/ 4767: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerGcpOutput model module. - * @module model/GatewayCreateProducerGcpOutput - * @version 3.3.16 - */ -var GatewayCreateProducerGcpOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerGcpOutput. - * @alias module:model/GatewayCreateProducerGcpOutput - */ - function GatewayCreateProducerGcpOutput() { - _classCallCheck(this, GatewayCreateProducerGcpOutput); - - GatewayCreateProducerGcpOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerGcpOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerGcpOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerGcpOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerGcpOutput} The populated GatewayCreateProducerGcpOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerGcpOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerGcpOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerGcpOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerGcpOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 15521: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerGithub model module. - * @module model/GatewayCreateProducerGithub - * @version 3.3.16 - */ -var GatewayCreateProducerGithub = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerGithub. - * gatewayCreateProducerGithub is a command that creates github producer - * @alias module:model/GatewayCreateProducerGithub - * @param name {String} Producer name - */ - function GatewayCreateProducerGithub(name) { - _classCallCheck(this, GatewayCreateProducerGithub); - - GatewayCreateProducerGithub.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerGithub, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerGithub from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerGithub} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerGithub} The populated GatewayCreateProducerGithub instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerGithub(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('github-app-id')) { - obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); - } - - if (data.hasOwnProperty('github-app-private-key')) { - obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); - } - - if (data.hasOwnProperty('github-base-url')) { - obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); - } - - if (data.hasOwnProperty('installation-id')) { - obj['installation-id'] = _ApiClient["default"].convertToType(data['installation-id'], 'Number'); - } - - if (data.hasOwnProperty('installation-repository')) { - obj['installation-repository'] = _ApiClient["default"].convertToType(data['installation-repository'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('token-permissions')) { - obj['token-permissions'] = _ApiClient["default"].convertToType(data['token-permissions'], ['String']); - } - - if (data.hasOwnProperty('token-repositories')) { - obj['token-repositories'] = _ApiClient["default"].convertToType(data['token-repositories'], ['String']); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerGithub; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayCreateProducerGithub.prototype['delete_protection'] = undefined; -/** - * Github app id - * @member {Number} github-app-id - */ - -GatewayCreateProducerGithub.prototype['github-app-id'] = undefined; -/** - * App private key - * @member {String} github-app-private-key - */ - -GatewayCreateProducerGithub.prototype['github-app-private-key'] = undefined; -/** - * Base URL - * @member {String} github-base-url - * @default 'https://api.github.com/' - */ - -GatewayCreateProducerGithub.prototype['github-base-url'] = 'https://api.github.com/'; -/** - * Github app installation id - * @member {Number} installation-id - */ - -GatewayCreateProducerGithub.prototype['installation-id'] = undefined; -/** - * Repository that the app installation has access to - * @member {String} installation-repository - */ - -GatewayCreateProducerGithub.prototype['installation-repository'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerGithub.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerGithub.prototype['name'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerGithub.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerGithub.prototype['token'] = undefined; -/** - * Optional - installation token's allowed permissions - * @member {Array.} token-permissions - */ - -GatewayCreateProducerGithub.prototype['token-permissions'] = undefined; -/** - * Optional - installation token's allowed repositories - * @member {Array.} token-repositories - */ - -GatewayCreateProducerGithub.prototype['token-repositories'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerGithub.prototype['uid-token'] = undefined; -var _default = GatewayCreateProducerGithub; -exports["default"] = _default; - -/***/ }), - -/***/ 67988: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerGithubOutput model module. - * @module model/GatewayCreateProducerGithubOutput - * @version 3.3.16 - */ -var GatewayCreateProducerGithubOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerGithubOutput. - * @alias module:model/GatewayCreateProducerGithubOutput - */ - function GatewayCreateProducerGithubOutput() { - _classCallCheck(this, GatewayCreateProducerGithubOutput); - - GatewayCreateProducerGithubOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerGithubOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerGithubOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerGithubOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerGithubOutput} The populated GatewayCreateProducerGithubOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerGithubOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerGithubOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerGithubOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerGithubOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 43341: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerGke model module. - * @module model/GatewayCreateProducerGke - * @version 3.3.16 - */ -var GatewayCreateProducerGke = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerGke. - * gatewayCreateProducerGke is a command that creates gke producer - * @alias module:model/GatewayCreateProducerGke - * @param name {String} Producer name - */ - function GatewayCreateProducerGke(name) { - _classCallCheck(this, GatewayCreateProducerGke); - - GatewayCreateProducerGke.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerGke, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerGke from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerGke} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerGke} The populated GatewayCreateProducerGke instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerGke(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('gke-account-key')) { - obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-cert')) { - obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-endpoint')) { - obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-name')) { - obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); - } - - if (data.hasOwnProperty('gke-service-account-email')) { - obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-port-forwading')) { - obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-cluster-endpoint')) { - obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerGke; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayCreateProducerGke.prototype['delete_protection'] = undefined; -/** - * GKE Service Account key file path - * @member {String} gke-account-key - */ - -GatewayCreateProducerGke.prototype['gke-account-key'] = undefined; -/** - * GKE cluster CA certificate - * @member {String} gke-cluster-cert - */ - -GatewayCreateProducerGke.prototype['gke-cluster-cert'] = undefined; -/** - * GKE cluster URL endpoint - * @member {String} gke-cluster-endpoint - */ - -GatewayCreateProducerGke.prototype['gke-cluster-endpoint'] = undefined; -/** - * GKE cluster name - * @member {String} gke-cluster-name - */ - -GatewayCreateProducerGke.prototype['gke-cluster-name'] = undefined; -/** - * GKE service account email - * @member {String} gke-service-account-email - */ - -GatewayCreateProducerGke.prototype['gke-service-account-email'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerGke.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerGke.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerGke.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable Port forwarding while using CLI access - * @member {Boolean} secure-access-allow-port-forwading - */ - -GatewayCreateProducerGke.prototype['secure-access-allow-port-forwading'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayCreateProducerGke.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The K8s cluster endpoint URL - * @member {String} secure-access-cluster-endpoint - */ - -GatewayCreateProducerGke.prototype['secure-access-cluster-endpoint'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerGke.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayCreateProducerGke.prototype['secure-access-web'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerGke.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerGke.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerGke.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerGke.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerGke.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerGke; -exports["default"] = _default; - -/***/ }), - -/***/ 12136: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerGkeOutput model module. - * @module model/GatewayCreateProducerGkeOutput - * @version 3.3.16 - */ -var GatewayCreateProducerGkeOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerGkeOutput. - * @alias module:model/GatewayCreateProducerGkeOutput - */ - function GatewayCreateProducerGkeOutput() { - _classCallCheck(this, GatewayCreateProducerGkeOutput); - - GatewayCreateProducerGkeOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerGkeOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerGkeOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerGkeOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerGkeOutput} The populated GatewayCreateProducerGkeOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerGkeOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerGkeOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerGkeOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerGkeOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 77662: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerHanaDb model module. - * @module model/GatewayCreateProducerHanaDb - * @version 3.3.16 - */ -var GatewayCreateProducerHanaDb = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerHanaDb. - * gatewayCreateProducerHanaDb is a command that creates hanadb producer - * @alias module:model/GatewayCreateProducerHanaDb - * @param name {String} Producer name - */ - function GatewayCreateProducerHanaDb(name) { - _classCallCheck(this, GatewayCreateProducerHanaDb); - - GatewayCreateProducerHanaDb.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerHanaDb, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerHanaDb from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerHanaDb} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerHanaDb} The populated GatewayCreateProducerHanaDb instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerHanaDb(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('hana-dbname')) { - obj['hana-dbname'] = _ApiClient["default"].convertToType(data['hana-dbname'], 'String'); - } - - if (data.hasOwnProperty('hanadb-create-statements')) { - obj['hanadb-create-statements'] = _ApiClient["default"].convertToType(data['hanadb-create-statements'], 'String'); - } - - if (data.hasOwnProperty('hanadb-host')) { - obj['hanadb-host'] = _ApiClient["default"].convertToType(data['hanadb-host'], 'String'); - } - - if (data.hasOwnProperty('hanadb-password')) { - obj['hanadb-password'] = _ApiClient["default"].convertToType(data['hanadb-password'], 'String'); - } - - if (data.hasOwnProperty('hanadb-port')) { - obj['hanadb-port'] = _ApiClient["default"].convertToType(data['hanadb-port'], 'String'); - } - - if (data.hasOwnProperty('hanadb-revocation-statements')) { - obj['hanadb-revocation-statements'] = _ApiClient["default"].convertToType(data['hanadb-revocation-statements'], 'String'); - } - - if (data.hasOwnProperty('hanadb-username')) { - obj['hanadb-username'] = _ApiClient["default"].convertToType(data['hanadb-username'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerHanaDb; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayCreateProducerHanaDb.prototype['delete_protection'] = undefined; -/** - * HanaDb Name - * @member {String} hana-dbname - */ - -GatewayCreateProducerHanaDb.prototype['hana-dbname'] = undefined; -/** - * HanaDb Creation statements - * @member {String} hanadb-create-statements - */ - -GatewayCreateProducerHanaDb.prototype['hanadb-create-statements'] = undefined; -/** - * HanaDb Host - * @member {String} hanadb-host - * @default '127.0.0.1' - */ - -GatewayCreateProducerHanaDb.prototype['hanadb-host'] = '127.0.0.1'; -/** - * HanaDb Password - * @member {String} hanadb-password - */ - -GatewayCreateProducerHanaDb.prototype['hanadb-password'] = undefined; -/** - * HanaDb Port - * @member {String} hanadb-port - * @default '443' - */ - -GatewayCreateProducerHanaDb.prototype['hanadb-port'] = '443'; -/** - * HanaDb Revocation statements - * @member {String} hanadb-revocation-statements - */ - -GatewayCreateProducerHanaDb.prototype['hanadb-revocation-statements'] = undefined; -/** - * HanaDb Username - * @member {String} hanadb-username - */ - -GatewayCreateProducerHanaDb.prototype['hanadb-username'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerHanaDb.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerHanaDb.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerHanaDb.prototype['producer-encryption-key-name'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayCreateProducerHanaDb.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The DB schema - * @member {String} secure-access-db-schema - */ - -GatewayCreateProducerHanaDb.prototype['secure-access-db-schema'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerHanaDb.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayCreateProducerHanaDb.prototype['secure-access-host'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayCreateProducerHanaDb.prototype['secure-access-web'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerHanaDb.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerHanaDb.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerHanaDb.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerHanaDb.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerHanaDb.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerHanaDb; -exports["default"] = _default; - -/***/ }), - -/***/ 69707: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerHanaDbOutput model module. - * @module model/GatewayCreateProducerHanaDbOutput - * @version 3.3.16 - */ -var GatewayCreateProducerHanaDbOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerHanaDbOutput. - * @alias module:model/GatewayCreateProducerHanaDbOutput - */ - function GatewayCreateProducerHanaDbOutput() { - _classCallCheck(this, GatewayCreateProducerHanaDbOutput); - - GatewayCreateProducerHanaDbOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerHanaDbOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerHanaDbOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerHanaDbOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerHanaDbOutput} The populated GatewayCreateProducerHanaDbOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerHanaDbOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerHanaDbOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerHanaDbOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerHanaDbOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 74815: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerLdap model module. - * @module model/GatewayCreateProducerLdap - * @version 3.3.16 - */ -var GatewayCreateProducerLdap = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerLdap. - * gatewayCreateProducerLdap is a command that creates ldap producer - * @alias module:model/GatewayCreateProducerLdap - * @param name {String} Producer name - */ - function GatewayCreateProducerLdap(name) { - _classCallCheck(this, GatewayCreateProducerLdap); - - GatewayCreateProducerLdap.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerLdap, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerLdap from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerLdap} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerLdap} The populated GatewayCreateProducerLdap instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerLdap(); - - if (data.hasOwnProperty('bind-dn')) { - obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); - } - - if (data.hasOwnProperty('bind-dn-password')) { - obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('external-username')) { - obj['external-username'] = _ApiClient["default"].convertToType(data['external-username'], 'String'); - } - - if (data.hasOwnProperty('group-dn')) { - obj['group-dn'] = _ApiClient["default"].convertToType(data['group-dn'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('ldap-ca-cert')) { - obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('ldap-url')) { - obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('token-expiration')) { - obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-attribute')) { - obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); - } - - if (data.hasOwnProperty('user-dn')) { - obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerLdap; -}(); -/** - * Bind DN - * @member {String} bind-dn - */ - - -GatewayCreateProducerLdap.prototype['bind-dn'] = undefined; -/** - * Bind DN Password - * @member {String} bind-dn-password - */ - -GatewayCreateProducerLdap.prototype['bind-dn-password'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerLdap.prototype['delete_protection'] = undefined; -/** - * Externally provided username [true/false] - * @member {String} external-username - * @default 'false' - */ - -GatewayCreateProducerLdap.prototype['external-username'] = 'false'; -/** - * Group DN which the temporary user should be added - * @member {String} group-dn - */ - -GatewayCreateProducerLdap.prototype['group-dn'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerLdap.prototype['json'] = false; -/** - * CA Certificate File Content - * @member {String} ldap-ca-cert - */ - -GatewayCreateProducerLdap.prototype['ldap-ca-cert'] = undefined; -/** - * LDAP Server URL - * @member {String} ldap-url - */ - -GatewayCreateProducerLdap.prototype['ldap-url'] = undefined; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerLdap.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerLdap.prototype['producer-encryption-key-name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerLdap.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerLdap.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerLdap.prototype['token'] = undefined; -/** - * Token expiration - * @member {String} token-expiration - */ - -GatewayCreateProducerLdap.prototype['token-expiration'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerLdap.prototype['uid-token'] = undefined; -/** - * User Attribute - * @member {String} user-attribute - */ - -GatewayCreateProducerLdap.prototype['user-attribute'] = undefined; -/** - * User DN - * @member {String} user-dn - */ - -GatewayCreateProducerLdap.prototype['user-dn'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerLdap.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerLdap; -exports["default"] = _default; - -/***/ }), - -/***/ 53382: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerLdapOutput model module. - * @module model/GatewayCreateProducerLdapOutput - * @version 3.3.16 - */ -var GatewayCreateProducerLdapOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerLdapOutput. - * @alias module:model/GatewayCreateProducerLdapOutput - */ - function GatewayCreateProducerLdapOutput() { - _classCallCheck(this, GatewayCreateProducerLdapOutput); - - GatewayCreateProducerLdapOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerLdapOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerLdapOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerLdapOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerLdapOutput} The populated GatewayCreateProducerLdapOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerLdapOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerLdapOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerLdapOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerLdapOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 91036: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerMSSQL model module. - * @module model/GatewayCreateProducerMSSQL - * @version 3.3.16 - */ -var GatewayCreateProducerMSSQL = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerMSSQL. - * gatewayCreateProducerMSSQL is a command that creates mssql producer - * @alias module:model/GatewayCreateProducerMSSQL - * @param name {String} Producer name - */ - function GatewayCreateProducerMSSQL(name) { - _classCallCheck(this, GatewayCreateProducerMSSQL); - - GatewayCreateProducerMSSQL.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerMSSQL, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerMSSQL from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerMSSQL} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerMSSQL} The populated GatewayCreateProducerMSSQL instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerMSSQL(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('mssql-create-statements')) { - obj['mssql-create-statements'] = _ApiClient["default"].convertToType(data['mssql-create-statements'], 'String'); - } - - if (data.hasOwnProperty('mssql-dbname')) { - obj['mssql-dbname'] = _ApiClient["default"].convertToType(data['mssql-dbname'], 'String'); - } - - if (data.hasOwnProperty('mssql-host')) { - obj['mssql-host'] = _ApiClient["default"].convertToType(data['mssql-host'], 'String'); - } - - if (data.hasOwnProperty('mssql-password')) { - obj['mssql-password'] = _ApiClient["default"].convertToType(data['mssql-password'], 'String'); - } - - if (data.hasOwnProperty('mssql-port')) { - obj['mssql-port'] = _ApiClient["default"].convertToType(data['mssql-port'], 'String'); - } - - if (data.hasOwnProperty('mssql-revocation-statements')) { - obj['mssql-revocation-statements'] = _ApiClient["default"].convertToType(data['mssql-revocation-statements'], 'String'); - } - - if (data.hasOwnProperty('mssql-username')) { - obj['mssql-username'] = _ApiClient["default"].convertToType(data['mssql-username'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerMSSQL; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayCreateProducerMSSQL.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerMSSQL.prototype['json'] = false; -/** - * MSSQL Creation statements - * @member {String} mssql-create-statements - */ - -GatewayCreateProducerMSSQL.prototype['mssql-create-statements'] = undefined; -/** - * MSSQL Name - * @member {String} mssql-dbname - */ - -GatewayCreateProducerMSSQL.prototype['mssql-dbname'] = undefined; -/** - * MSSQL Host - * @member {String} mssql-host - * @default '127.0.0.1' - */ - -GatewayCreateProducerMSSQL.prototype['mssql-host'] = '127.0.0.1'; -/** - * MSSQL Password - * @member {String} mssql-password - */ - -GatewayCreateProducerMSSQL.prototype['mssql-password'] = undefined; -/** - * MSSQL Port - * @member {String} mssql-port - * @default '1433' - */ - -GatewayCreateProducerMSSQL.prototype['mssql-port'] = '1433'; -/** - * MSSQL Revocation statements - * @member {String} mssql-revocation-statements - */ - -GatewayCreateProducerMSSQL.prototype['mssql-revocation-statements'] = undefined; -/** - * MSSQL Username - * @member {String} mssql-username - */ - -GatewayCreateProducerMSSQL.prototype['mssql-username'] = undefined; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerMSSQL.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerMSSQL.prototype['producer-encryption-key-name'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayCreateProducerMSSQL.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The DB schema - * @member {String} secure-access-db-schema - */ - -GatewayCreateProducerMSSQL.prototype['secure-access-db-schema'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerMSSQL.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayCreateProducerMSSQL.prototype['secure-access-host'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayCreateProducerMSSQL.prototype['secure-access-web'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerMSSQL.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerMSSQL.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerMSSQL.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerMSSQL.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerMSSQL.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerMSSQL; -exports["default"] = _default; - -/***/ }), - -/***/ 91709: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerMSSQLOutput model module. - * @module model/GatewayCreateProducerMSSQLOutput - * @version 3.3.16 - */ -var GatewayCreateProducerMSSQLOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerMSSQLOutput. - * @alias module:model/GatewayCreateProducerMSSQLOutput - */ - function GatewayCreateProducerMSSQLOutput() { - _classCallCheck(this, GatewayCreateProducerMSSQLOutput); - - GatewayCreateProducerMSSQLOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerMSSQLOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerMSSQLOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerMSSQLOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerMSSQLOutput} The populated GatewayCreateProducerMSSQLOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerMSSQLOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerMSSQLOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerMSSQLOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerMSSQLOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 84176: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerMongo model module. - * @module model/GatewayCreateProducerMongo - * @version 3.3.16 - */ -var GatewayCreateProducerMongo = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerMongo. - * gatewayCreateProducerMongo is a command that creates either mongodb producer or mongodb atlas producer - * @alias module:model/GatewayCreateProducerMongo - * @param name {String} Producer name - */ - function GatewayCreateProducerMongo(name) { - _classCallCheck(this, GatewayCreateProducerMongo); - - GatewayCreateProducerMongo.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerMongo, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerMongo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerMongo} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerMongo} The populated GatewayCreateProducerMongo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerMongo(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { - obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { - obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas-project-id')) { - obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); - } - - if (data.hasOwnProperty('mongodb-custom-data')) { - obj['mongodb-custom-data'] = _ApiClient["default"].convertToType(data['mongodb-custom-data'], 'String'); - } - - if (data.hasOwnProperty('mongodb-default-auth-db')) { - obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); - } - - if (data.hasOwnProperty('mongodb-host-port')) { - obj['mongodb-host-port'] = _ApiClient["default"].convertToType(data['mongodb-host-port'], 'String'); - } - - if (data.hasOwnProperty('mongodb-name')) { - obj['mongodb-name'] = _ApiClient["default"].convertToType(data['mongodb-name'], 'String'); - } - - if (data.hasOwnProperty('mongodb-password')) { - obj['mongodb-password'] = _ApiClient["default"].convertToType(data['mongodb-password'], 'String'); - } - - if (data.hasOwnProperty('mongodb-roles')) { - obj['mongodb-roles'] = _ApiClient["default"].convertToType(data['mongodb-roles'], 'String'); - } - - if (data.hasOwnProperty('mongodb-server-uri')) { - obj['mongodb-server-uri'] = _ApiClient["default"].convertToType(data['mongodb-server-uri'], 'String'); - } - - if (data.hasOwnProperty('mongodb-uri-options')) { - obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); - } - - if (data.hasOwnProperty('mongodb-username')) { - obj['mongodb-username'] = _ApiClient["default"].convertToType(data['mongodb-username'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerMongo; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayCreateProducerMongo.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerMongo.prototype['json'] = false; -/** - * MongoDB Atlas private key - * @member {String} mongodb-atlas-api-private-key - */ - -GatewayCreateProducerMongo.prototype['mongodb-atlas-api-private-key'] = undefined; -/** - * MongoDB Atlas public key - * @member {String} mongodb-atlas-api-public-key - */ - -GatewayCreateProducerMongo.prototype['mongodb-atlas-api-public-key'] = undefined; -/** - * MongoDB Atlas project ID - * @member {String} mongodb-atlas-project-id - */ - -GatewayCreateProducerMongo.prototype['mongodb-atlas-project-id'] = undefined; -/** - * MongoDB custom data - * @member {String} mongodb-custom-data - */ - -GatewayCreateProducerMongo.prototype['mongodb-custom-data'] = undefined; -/** - * MongoDB server default authentication database - * @member {String} mongodb-default-auth-db - */ - -GatewayCreateProducerMongo.prototype['mongodb-default-auth-db'] = undefined; -/** - * MongoDB server host and port - * @member {String} mongodb-host-port - */ - -GatewayCreateProducerMongo.prototype['mongodb-host-port'] = undefined; -/** - * MongoDB Name - * @member {String} mongodb-name - */ - -GatewayCreateProducerMongo.prototype['mongodb-name'] = undefined; -/** - * MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters - * @member {String} mongodb-password - */ - -GatewayCreateProducerMongo.prototype['mongodb-password'] = undefined; -/** - * MongoDB Roles - * @member {String} mongodb-roles - * @default '[]' - */ - -GatewayCreateProducerMongo.prototype['mongodb-roles'] = '[]'; -/** - * MongoDB server URI - * @member {String} mongodb-server-uri - */ - -GatewayCreateProducerMongo.prototype['mongodb-server-uri'] = undefined; -/** - * MongoDB server URI options - * @member {String} mongodb-uri-options - */ - -GatewayCreateProducerMongo.prototype['mongodb-uri-options'] = undefined; -/** - * MongoDB server username - * @member {String} mongodb-username - */ - -GatewayCreateProducerMongo.prototype['mongodb-username'] = undefined; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerMongo.prototype['name'] = undefined; -/** - * Encrypt producer with following key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerMongo.prototype['producer-encryption-key-name'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayCreateProducerMongo.prototype['secure-access-bastion-issuer'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerMongo.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayCreateProducerMongo.prototype['secure-access-host'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayCreateProducerMongo.prototype['secure-access-web'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerMongo.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerMongo.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerMongo.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerMongo.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerMongo.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerMongo; -exports["default"] = _default; - -/***/ }), - -/***/ 27257: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerMongoOutput model module. - * @module model/GatewayCreateProducerMongoOutput - * @version 3.3.16 - */ -var GatewayCreateProducerMongoOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerMongoOutput. - * @alias module:model/GatewayCreateProducerMongoOutput - */ - function GatewayCreateProducerMongoOutput() { - _classCallCheck(this, GatewayCreateProducerMongoOutput); - - GatewayCreateProducerMongoOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerMongoOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerMongoOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerMongoOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerMongoOutput} The populated GatewayCreateProducerMongoOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerMongoOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerMongoOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerMongoOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerMongoOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 20490: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerMySQL model module. - * @module model/GatewayCreateProducerMySQL - * @version 3.3.16 - */ -var GatewayCreateProducerMySQL = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerMySQL. - * gatewayCreateProducerMySQL is a command that creates mysql producer - * @alias module:model/GatewayCreateProducerMySQL - * @param name {String} Producer name - */ - function GatewayCreateProducerMySQL(name) { - _classCallCheck(this, GatewayCreateProducerMySQL); - - GatewayCreateProducerMySQL.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerMySQL, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerMySQL from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerMySQL} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerMySQL} The populated GatewayCreateProducerMySQL instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerMySQL(); - - if (data.hasOwnProperty('db-server-certificates')) { - obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); - } - - if (data.hasOwnProperty('db-server-name')) { - obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('mysql-dbname')) { - obj['mysql-dbname'] = _ApiClient["default"].convertToType(data['mysql-dbname'], 'String'); - } - - if (data.hasOwnProperty('mysql-host')) { - obj['mysql-host'] = _ApiClient["default"].convertToType(data['mysql-host'], 'String'); - } - - if (data.hasOwnProperty('mysql-password')) { - obj['mysql-password'] = _ApiClient["default"].convertToType(data['mysql-password'], 'String'); - } - - if (data.hasOwnProperty('mysql-port')) { - obj['mysql-port'] = _ApiClient["default"].convertToType(data['mysql-port'], 'String'); - } - - if (data.hasOwnProperty('mysql-revocation-statements')) { - obj['mysql-revocation-statements'] = _ApiClient["default"].convertToType(data['mysql-revocation-statements'], 'String'); - } - - if (data.hasOwnProperty('mysql-screation-statements')) { - obj['mysql-screation-statements'] = _ApiClient["default"].convertToType(data['mysql-screation-statements'], 'String'); - } - - if (data.hasOwnProperty('mysql-username')) { - obj['mysql-username'] = _ApiClient["default"].convertToType(data['mysql-username'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('ssl-certificate')) { - obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerMySQL; -}(); -/** - * (Optional) DB server certificates - * @member {String} db-server-certificates - */ - - -GatewayCreateProducerMySQL.prototype['db-server-certificates'] = undefined; -/** - * (Optional) Server name for certificate verification - * @member {String} db-server-name - */ - -GatewayCreateProducerMySQL.prototype['db-server-name'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerMySQL.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerMySQL.prototype['json'] = false; -/** - * MySQL DB Name - * @member {String} mysql-dbname - */ - -GatewayCreateProducerMySQL.prototype['mysql-dbname'] = undefined; -/** - * MySQL Host - * @member {String} mysql-host - * @default '127.0.0.1' - */ - -GatewayCreateProducerMySQL.prototype['mysql-host'] = '127.0.0.1'; -/** - * MySQL Password - * @member {String} mysql-password - */ - -GatewayCreateProducerMySQL.prototype['mysql-password'] = undefined; -/** - * MySQL Port - * @member {String} mysql-port - * @default '3306' - */ - -GatewayCreateProducerMySQL.prototype['mysql-port'] = '3306'; -/** - * MySQL Revocation statements - * @member {String} mysql-revocation-statements - */ - -GatewayCreateProducerMySQL.prototype['mysql-revocation-statements'] = undefined; -/** - * MySQL Creation statements - * @member {String} mysql-screation-statements - */ - -GatewayCreateProducerMySQL.prototype['mysql-screation-statements'] = undefined; -/** - * MySQL Username - * @member {String} mysql-username - */ - -GatewayCreateProducerMySQL.prototype['mysql-username'] = undefined; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerMySQL.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerMySQL.prototype['producer-encryption-key-name'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayCreateProducerMySQL.prototype['secure-access-bastion-issuer'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerMySQL.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayCreateProducerMySQL.prototype['secure-access-host'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayCreateProducerMySQL.prototype['secure-access-web'] = false; -/** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false - */ - -GatewayCreateProducerMySQL.prototype['ssl'] = false; -/** - * SSL connection certificate - * @member {String} ssl-certificate - */ - -GatewayCreateProducerMySQL.prototype['ssl-certificate'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerMySQL.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerMySQL.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerMySQL.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerMySQL.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerMySQL.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerMySQL; -exports["default"] = _default; - -/***/ }), - -/***/ 37983: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerMySQLOutput model module. - * @module model/GatewayCreateProducerMySQLOutput - * @version 3.3.16 - */ -var GatewayCreateProducerMySQLOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerMySQLOutput. - * @alias module:model/GatewayCreateProducerMySQLOutput - */ - function GatewayCreateProducerMySQLOutput() { - _classCallCheck(this, GatewayCreateProducerMySQLOutput); - - GatewayCreateProducerMySQLOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerMySQLOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerMySQLOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerMySQLOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerMySQLOutput} The populated GatewayCreateProducerMySQLOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerMySQLOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerMySQLOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerMySQLOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerMySQLOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 50589: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerNativeK8S model module. - * @module model/GatewayCreateProducerNativeK8S - * @version 3.3.16 - */ -var GatewayCreateProducerNativeK8S = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerNativeK8S. - * gatewayCreateProducerNativeK8S is a command that creates k8s producer - * @alias module:model/GatewayCreateProducerNativeK8S - * @param name {String} Producer name - */ - function GatewayCreateProducerNativeK8S(name) { - _classCallCheck(this, GatewayCreateProducerNativeK8S); - - GatewayCreateProducerNativeK8S.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerNativeK8S, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerNativeK8S from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerNativeK8S} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerNativeK8S} The populated GatewayCreateProducerNativeK8S instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerNativeK8S(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s-allowed-namespaces')) { - obj['k8s-allowed-namespaces'] = _ApiClient["default"].convertToType(data['k8s-allowed-namespaces'], 'String'); - } - - if (data.hasOwnProperty('k8s-cluster-ca-cert')) { - obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('k8s-cluster-endpoint')) { - obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('k8s-cluster-token')) { - obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); - } - - if (data.hasOwnProperty('k8s-namespace')) { - obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); - } - - if (data.hasOwnProperty('k8s-predefined-role-name')) { - obj['k8s-predefined-role-name'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-name'], 'String'); - } - - if (data.hasOwnProperty('k8s-predefined-role-type')) { - obj['k8s-predefined-role-type'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-type'], 'String'); - } - - if (data.hasOwnProperty('k8s-rolebinding-yaml-def')) { - obj['k8s-rolebinding-yaml-def'] = _ApiClient["default"].convertToType(data['k8s-rolebinding-yaml-def'], 'String'); - } - - if (data.hasOwnProperty('k8s-service-account')) { - obj['k8s-service-account'] = _ApiClient["default"].convertToType(data['k8s-service-account'], 'String'); - } - - if (data.hasOwnProperty('k8s-service-account-type')) { - obj['k8s-service-account-type'] = _ApiClient["default"].convertToType(data['k8s-service-account-type'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-port-forwading')) { - obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-cluster-endpoint')) { - obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('secure-access-dashboard-url')) { - obj['secure-access-dashboard-url'] = _ApiClient["default"].convertToType(data['secure-access-dashboard-url'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('use-gw-service-account')) { - obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerNativeK8S; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayCreateProducerNativeK8S.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerNativeK8S.prototype['json'] = false; -/** - * Comma-separated list of allowed K8S namespaces for the generated ServiceAccount (relevant only for k8s-service-account-type=dynamic) - * @member {String} k8s-allowed-namespaces - */ - -GatewayCreateProducerNativeK8S.prototype['k8s-allowed-namespaces'] = undefined; -/** - * K8S cluster CA certificate - * @member {String} k8s-cluster-ca-cert - */ - -GatewayCreateProducerNativeK8S.prototype['k8s-cluster-ca-cert'] = undefined; -/** - * K8S cluster URL endpoint - * @member {String} k8s-cluster-endpoint - */ - -GatewayCreateProducerNativeK8S.prototype['k8s-cluster-endpoint'] = undefined; -/** - * K8S cluster Bearer token - * @member {String} k8s-cluster-token - */ - -GatewayCreateProducerNativeK8S.prototype['k8s-cluster-token'] = undefined; -/** - * K8S Namespace where the ServiceAccount exists. - * @member {String} k8s-namespace - */ - -GatewayCreateProducerNativeK8S.prototype['k8s-namespace'] = undefined; -/** - * The pre-existing Role or ClusterRole name to bind the generated ServiceAccount to (relevant only for k8s-service-account-type=dynamic) - * @member {String} k8s-predefined-role-name - */ - -GatewayCreateProducerNativeK8S.prototype['k8s-predefined-role-name'] = undefined; -/** - * Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic) - * @member {String} k8s-predefined-role-type - */ - -GatewayCreateProducerNativeK8S.prototype['k8s-predefined-role-type'] = undefined; -/** - * Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic) - * @member {String} k8s-rolebinding-yaml-def - */ - -GatewayCreateProducerNativeK8S.prototype['k8s-rolebinding-yaml-def'] = undefined; -/** - * K8S ServiceAccount to extract token from. - * @member {String} k8s-service-account - */ - -GatewayCreateProducerNativeK8S.prototype['k8s-service-account'] = undefined; -/** - * K8S ServiceAccount type [fixed, dynamic]. - * @member {String} k8s-service-account-type - */ - -GatewayCreateProducerNativeK8S.prototype['k8s-service-account-type'] = undefined; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerNativeK8S.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerNativeK8S.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable Port forwarding while using CLI access - * @member {Boolean} secure-access-allow-port-forwading - */ - -GatewayCreateProducerNativeK8S.prototype['secure-access-allow-port-forwading'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayCreateProducerNativeK8S.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The K8s cluster endpoint URL - * @member {String} secure-access-cluster-endpoint - */ - -GatewayCreateProducerNativeK8S.prototype['secure-access-cluster-endpoint'] = undefined; -/** - * The K8s dashboard url - * @member {String} secure-access-dashboard-url - */ - -GatewayCreateProducerNativeK8S.prototype['secure-access-dashboard-url'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerNativeK8S.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayCreateProducerNativeK8S.prototype['secure-access-web'] = false; -/** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false - */ - -GatewayCreateProducerNativeK8S.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false - */ - -GatewayCreateProducerNativeK8S.prototype['secure-access-web-proxy'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerNativeK8S.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerNativeK8S.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerNativeK8S.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerNativeK8S.prototype['uid-token'] = undefined; -/** - * Use the GW's service account - * @member {Boolean} use-gw-service-account - */ - -GatewayCreateProducerNativeK8S.prototype['use-gw-service-account'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerNativeK8S.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerNativeK8S; -exports["default"] = _default; - -/***/ }), - -/***/ 4408: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerNativeK8SOutput model module. - * @module model/GatewayCreateProducerNativeK8SOutput - * @version 3.3.16 - */ -var GatewayCreateProducerNativeK8SOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerNativeK8SOutput. - * @alias module:model/GatewayCreateProducerNativeK8SOutput - */ - function GatewayCreateProducerNativeK8SOutput() { - _classCallCheck(this, GatewayCreateProducerNativeK8SOutput); - - GatewayCreateProducerNativeK8SOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerNativeK8SOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerNativeK8SOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerNativeK8SOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerNativeK8SOutput} The populated GatewayCreateProducerNativeK8SOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerNativeK8SOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerNativeK8SOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerNativeK8SOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerNativeK8SOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 11382: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerOracleDb model module. - * @module model/GatewayCreateProducerOracleDb - * @version 3.3.16 - */ -var GatewayCreateProducerOracleDb = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerOracleDb. - * gatewayCreateProducerOracleDb is a command that creates oracle db producer - * @alias module:model/GatewayCreateProducerOracleDb - * @param name {String} Producer name - */ - function GatewayCreateProducerOracleDb(name) { - _classCallCheck(this, GatewayCreateProducerOracleDb); - - GatewayCreateProducerOracleDb.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerOracleDb, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerOracleDb from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerOracleDb} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerOracleDb} The populated GatewayCreateProducerOracleDb instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerOracleDb(); - - if (data.hasOwnProperty('db-server-certificates')) { - obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); - } - - if (data.hasOwnProperty('db-server-name')) { - obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('oracle-host')) { - obj['oracle-host'] = _ApiClient["default"].convertToType(data['oracle-host'], 'String'); - } - - if (data.hasOwnProperty('oracle-password')) { - obj['oracle-password'] = _ApiClient["default"].convertToType(data['oracle-password'], 'String'); - } - - if (data.hasOwnProperty('oracle-port')) { - obj['oracle-port'] = _ApiClient["default"].convertToType(data['oracle-port'], 'String'); - } - - if (data.hasOwnProperty('oracle-screation-statements')) { - obj['oracle-screation-statements'] = _ApiClient["default"].convertToType(data['oracle-screation-statements'], 'String'); - } - - if (data.hasOwnProperty('oracle-service-name')) { - obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); - } - - if (data.hasOwnProperty('oracle-username')) { - obj['oracle-username'] = _ApiClient["default"].convertToType(data['oracle-username'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerOracleDb; -}(); -/** - * (Optional) DB server certificates - * @member {String} db-server-certificates - */ - - -GatewayCreateProducerOracleDb.prototype['db-server-certificates'] = undefined; -/** - * (Optional) Server name for certificate verification - * @member {String} db-server-name - */ - -GatewayCreateProducerOracleDb.prototype['db-server-name'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerOracleDb.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerOracleDb.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerOracleDb.prototype['name'] = undefined; -/** - * Oracle Host - * @member {String} oracle-host - * @default '127.0.0.1' - */ - -GatewayCreateProducerOracleDb.prototype['oracle-host'] = '127.0.0.1'; -/** - * Oracle Password - * @member {String} oracle-password - */ - -GatewayCreateProducerOracleDb.prototype['oracle-password'] = undefined; -/** - * Oracle Port - * @member {String} oracle-port - * @default '1521' - */ - -GatewayCreateProducerOracleDb.prototype['oracle-port'] = '1521'; -/** - * Oracle Creation statements - * @member {String} oracle-screation-statements - */ - -GatewayCreateProducerOracleDb.prototype['oracle-screation-statements'] = undefined; -/** - * Oracle DB Name - * @member {String} oracle-service-name - */ - -GatewayCreateProducerOracleDb.prototype['oracle-service-name'] = undefined; -/** - * Oracle Username - * @member {String} oracle-username - */ - -GatewayCreateProducerOracleDb.prototype['oracle-username'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerOracleDb.prototype['producer-encryption-key-name'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayCreateProducerOracleDb.prototype['secure-access-bastion-issuer'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - * @default 'false' - */ - -GatewayCreateProducerOracleDb.prototype['secure-access-enable'] = 'false'; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayCreateProducerOracleDb.prototype['secure-access-host'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayCreateProducerOracleDb.prototype['secure-access-web'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerOracleDb.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerOracleDb.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerOracleDb.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerOracleDb.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerOracleDb.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerOracleDb; -exports["default"] = _default; - -/***/ }), - -/***/ 92499: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerOracleDbOutput model module. - * @module model/GatewayCreateProducerOracleDbOutput - * @version 3.3.16 - */ -var GatewayCreateProducerOracleDbOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerOracleDbOutput. - * @alias module:model/GatewayCreateProducerOracleDbOutput - */ - function GatewayCreateProducerOracleDbOutput() { - _classCallCheck(this, GatewayCreateProducerOracleDbOutput); - - GatewayCreateProducerOracleDbOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerOracleDbOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerOracleDbOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerOracleDbOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerOracleDbOutput} The populated GatewayCreateProducerOracleDbOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerOracleDbOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerOracleDbOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerOracleDbOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerOracleDbOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 29262: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerPing model module. - * @module model/GatewayCreateProducerPing - * @version 3.3.16 - */ -var GatewayCreateProducerPing = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerPing. - * gatewayCreateProducerPing is a command that creates ping producer - * @alias module:model/GatewayCreateProducerPing - * @param name {String} Producer name - */ - function GatewayCreateProducerPing(name) { - _classCallCheck(this, GatewayCreateProducerPing); - - GatewayCreateProducerPing.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerPing, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerPing from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerPing} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerPing} The populated GatewayCreateProducerPing instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerPing(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('ping-administrative-port')) { - obj['ping-administrative-port'] = _ApiClient["default"].convertToType(data['ping-administrative-port'], 'String'); - } - - if (data.hasOwnProperty('ping-atm-id')) { - obj['ping-atm-id'] = _ApiClient["default"].convertToType(data['ping-atm-id'], 'String'); - } - - if (data.hasOwnProperty('ping-authorization-port')) { - obj['ping-authorization-port'] = _ApiClient["default"].convertToType(data['ping-authorization-port'], 'String'); - } - - if (data.hasOwnProperty('ping-cert-subject-dn')) { - obj['ping-cert-subject-dn'] = _ApiClient["default"].convertToType(data['ping-cert-subject-dn'], 'String'); - } - - if (data.hasOwnProperty('ping-client-authentication-type')) { - obj['ping-client-authentication-type'] = _ApiClient["default"].convertToType(data['ping-client-authentication-type'], 'String'); - } - - if (data.hasOwnProperty('ping-enforce-replay-prevention')) { - obj['ping-enforce-replay-prevention'] = _ApiClient["default"].convertToType(data['ping-enforce-replay-prevention'], 'String'); - } - - if (data.hasOwnProperty('ping-grant-types')) { - obj['ping-grant-types'] = _ApiClient["default"].convertToType(data['ping-grant-types'], ['String']); - } - - if (data.hasOwnProperty('ping-issuer-dn')) { - obj['ping-issuer-dn'] = _ApiClient["default"].convertToType(data['ping-issuer-dn'], 'String'); - } - - if (data.hasOwnProperty('ping-jwks')) { - obj['ping-jwks'] = _ApiClient["default"].convertToType(data['ping-jwks'], 'String'); - } - - if (data.hasOwnProperty('ping-jwks-url')) { - obj['ping-jwks-url'] = _ApiClient["default"].convertToType(data['ping-jwks-url'], 'String'); - } - - if (data.hasOwnProperty('ping-password')) { - obj['ping-password'] = _ApiClient["default"].convertToType(data['ping-password'], 'String'); - } - - if (data.hasOwnProperty('ping-privileged-user')) { - obj['ping-privileged-user'] = _ApiClient["default"].convertToType(data['ping-privileged-user'], 'String'); - } - - if (data.hasOwnProperty('ping-redirect-uris')) { - obj['ping-redirect-uris'] = _ApiClient["default"].convertToType(data['ping-redirect-uris'], ['String']); - } - - if (data.hasOwnProperty('ping-restricted-scopes')) { - obj['ping-restricted-scopes'] = _ApiClient["default"].convertToType(data['ping-restricted-scopes'], ['String']); - } - - if (data.hasOwnProperty('ping-signing-algo')) { - obj['ping-signing-algo'] = _ApiClient["default"].convertToType(data['ping-signing-algo'], 'String'); - } - - if (data.hasOwnProperty('ping-url')) { - obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerPing; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayCreateProducerPing.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerPing.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerPing.prototype['name'] = undefined; -/** - * Ping Federate administrative port - * @member {String} ping-administrative-port - * @default '9999' - */ - -GatewayCreateProducerPing.prototype['ping-administrative-port'] = '9999'; -/** - * Set a specific Access Token Management (ATM) instance for the created OAuth Client by providing the ATM Id. If no explicit value is given, the default pingfederate server ATM will be set. - * @member {String} ping-atm-id - */ - -GatewayCreateProducerPing.prototype['ping-atm-id'] = undefined; -/** - * Ping Federate authorization port - * @member {String} ping-authorization-port - * @default '9031' - */ - -GatewayCreateProducerPing.prototype['ping-authorization-port'] = '9031'; -/** - * The subject DN of the client certificate. If no explicit value is given, the producer will create CA certificate and matched client certificate and return it as value. Used in conjunction with ping-issuer-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) - * @member {String} ping-cert-subject-dn - */ - -GatewayCreateProducerPing.prototype['ping-cert-subject-dn'] = undefined; -/** - * OAuth Client Authentication Type [CLIENT_SECRET, PRIVATE_KEY_JWT, CLIENT_TLS_CERTIFICATE] - * @member {String} ping-client-authentication-type - * @default 'CLIENT_SECRET' - */ - -GatewayCreateProducerPing.prototype['ping-client-authentication-type'] = 'CLIENT_SECRET'; -/** - * Determines whether PingFederate requires a unique signed JWT from the client for each action (relevant for PRIVATE_KEY_JWT authentication method) [true/false] - * @member {String} ping-enforce-replay-prevention - * @default 'false' - */ - -GatewayCreateProducerPing.prototype['ping-enforce-replay-prevention'] = 'false'; -/** - * List of OAuth client grant types [IMPLICIT, AUTHORIZATION_CODE, CLIENT_CREDENTIALS, TOKEN_EXCHANGE, REFRESH_TOKEN, ASSERTION_GRANTS, PASSWORD, RESOURCE_OWNER_CREDENTIALS]. If no explicit value is given, AUTHORIZATION_CODE will be selected as default. - * @member {Array.} ping-grant-types - */ - -GatewayCreateProducerPing.prototype['ping-grant-types'] = undefined; -/** - * Issuer DN of trusted CA certificate that imported into Ping Federate server. You may select \\\"Trust Any\\\" to trust all the existing issuers in Ping Federate server. Used in conjunction with ping-cert-subject-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) - * @member {String} ping-issuer-dn - */ - -GatewayCreateProducerPing.prototype['ping-issuer-dn'] = undefined; -/** - * Base64-encoded JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT (Sign Algo: RS256) and return it as value (relevant for PRIVATE_KEY_JWT authentication method) - * @member {String} ping-jwks - */ - -GatewayCreateProducerPing.prototype['ping-jwks'] = undefined; -/** - * The URL of the JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT and return it as value (relevant for PRIVATE_KEY_JWT authentication method) - * @member {String} ping-jwks-url - */ - -GatewayCreateProducerPing.prototype['ping-jwks-url'] = undefined; -/** - * Ping Federate privileged user password - * @member {String} ping-password - */ - -GatewayCreateProducerPing.prototype['ping-password'] = undefined; -/** - * Ping Federate privileged user - * @member {String} ping-privileged-user - */ - -GatewayCreateProducerPing.prototype['ping-privileged-user'] = undefined; -/** - * List of URIs to which the OAuth authorization server may redirect the resource owner's user agent after authorization is obtained. At least one redirection URI is required for the AUTHORIZATION_CODE and IMPLICIT grant types. - * @member {Array.} ping-redirect-uris - */ - -GatewayCreateProducerPing.prototype['ping-redirect-uris'] = undefined; -/** - * Limit the OAuth client to specific scopes list - * @member {Array.} ping-restricted-scopes - */ - -GatewayCreateProducerPing.prototype['ping-restricted-scopes'] = undefined; -/** - * The signing algorithm that the client must use to sign its request objects [RS256,RS384,RS512,ES256,ES384,ES512,PS256,PS384,PS512] If no explicit value is given, the client can use any of the supported signing algorithms (relevant for PRIVATE_KEY_JWT authentication method) - * @member {String} ping-signing-algo - */ - -GatewayCreateProducerPing.prototype['ping-signing-algo'] = undefined; -/** - * Ping URL - * @member {String} ping-url - */ - -GatewayCreateProducerPing.prototype['ping-url'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerPing.prototype['producer-encryption-key-name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerPing.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerPing.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerPing.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerPing.prototype['uid-token'] = undefined; -/** - * The time from dynamic secret creation to expiration. - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerPing.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerPing; -exports["default"] = _default; - -/***/ }), - -/***/ 7579: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerPingOutput model module. - * @module model/GatewayCreateProducerPingOutput - * @version 3.3.16 - */ -var GatewayCreateProducerPingOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerPingOutput. - * @alias module:model/GatewayCreateProducerPingOutput - */ - function GatewayCreateProducerPingOutput() { - _classCallCheck(this, GatewayCreateProducerPingOutput); - - GatewayCreateProducerPingOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerPingOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerPingOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerPingOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerPingOutput} The populated GatewayCreateProducerPingOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerPingOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerPingOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerPingOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerPingOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 42452: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerPostgreSQL model module. - * @module model/GatewayCreateProducerPostgreSQL - * @version 3.3.16 - */ -var GatewayCreateProducerPostgreSQL = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerPostgreSQL. - * gatewayCreateProducerPostgreSQL is a command that creates postgresql producer - * @alias module:model/GatewayCreateProducerPostgreSQL - * @param name {String} Producer name - */ - function GatewayCreateProducerPostgreSQL(name) { - _classCallCheck(this, GatewayCreateProducerPostgreSQL); - - GatewayCreateProducerPostgreSQL.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerPostgreSQL, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerPostgreSQL from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerPostgreSQL} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerPostgreSQL} The populated GatewayCreateProducerPostgreSQL instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerPostgreSQL(); - - if (data.hasOwnProperty('creation-statements')) { - obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('postgresql-db-name')) { - obj['postgresql-db-name'] = _ApiClient["default"].convertToType(data['postgresql-db-name'], 'String'); - } - - if (data.hasOwnProperty('postgresql-host')) { - obj['postgresql-host'] = _ApiClient["default"].convertToType(data['postgresql-host'], 'String'); - } - - if (data.hasOwnProperty('postgresql-password')) { - obj['postgresql-password'] = _ApiClient["default"].convertToType(data['postgresql-password'], 'String'); - } - - if (data.hasOwnProperty('postgresql-port')) { - obj['postgresql-port'] = _ApiClient["default"].convertToType(data['postgresql-port'], 'String'); - } - - if (data.hasOwnProperty('postgresql-username')) { - obj['postgresql-username'] = _ApiClient["default"].convertToType(data['postgresql-username'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key')) { - obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); - } - - if (data.hasOwnProperty('revocation-statement')) { - obj['revocation-statement'] = _ApiClient["default"].convertToType(data['revocation-statement'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerPostgreSQL; -}(); -/** - * PostgreSQL Creation statements - * @member {String} creation-statements - */ - - -GatewayCreateProducerPostgreSQL.prototype['creation-statements'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerPostgreSQL.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerPostgreSQL.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerPostgreSQL.prototype['name'] = undefined; -/** - * PostgreSQL DB Name - * @member {String} postgresql-db-name - */ - -GatewayCreateProducerPostgreSQL.prototype['postgresql-db-name'] = undefined; -/** - * PostgreSQL Host - * @member {String} postgresql-host - * @default '127.0.0.1' - */ - -GatewayCreateProducerPostgreSQL.prototype['postgresql-host'] = '127.0.0.1'; -/** - * PostgreSQL Password - * @member {String} postgresql-password - */ - -GatewayCreateProducerPostgreSQL.prototype['postgresql-password'] = undefined; -/** - * PostgreSQL Port - * @member {String} postgresql-port - * @default '5432' - */ - -GatewayCreateProducerPostgreSQL.prototype['postgresql-port'] = '5432'; -/** - * PostgreSQL Username - * @member {String} postgresql-username - */ - -GatewayCreateProducerPostgreSQL.prototype['postgresql-username'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key - */ - -GatewayCreateProducerPostgreSQL.prototype['producer-encryption-key'] = undefined; -/** - * PostgreSQL Revocation statements - * @member {String} revocation-statement - */ - -GatewayCreateProducerPostgreSQL.prototype['revocation-statement'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayCreateProducerPostgreSQL.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The DB schema - * @member {String} secure-access-db-schema - */ - -GatewayCreateProducerPostgreSQL.prototype['secure-access-db-schema'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerPostgreSQL.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayCreateProducerPostgreSQL.prototype['secure-access-host'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayCreateProducerPostgreSQL.prototype['secure-access-web'] = false; -/** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false - */ - -GatewayCreateProducerPostgreSQL.prototype['ssl'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerPostgreSQL.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerPostgreSQL.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerPostgreSQL.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerPostgreSQL.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerPostgreSQL.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerPostgreSQL; -exports["default"] = _default; - -/***/ }), - -/***/ 84613: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerPostgreSQLOutput model module. - * @module model/GatewayCreateProducerPostgreSQLOutput - * @version 3.3.16 - */ -var GatewayCreateProducerPostgreSQLOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerPostgreSQLOutput. - * @alias module:model/GatewayCreateProducerPostgreSQLOutput - */ - function GatewayCreateProducerPostgreSQLOutput() { - _classCallCheck(this, GatewayCreateProducerPostgreSQLOutput); - - GatewayCreateProducerPostgreSQLOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerPostgreSQLOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerPostgreSQLOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerPostgreSQLOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerPostgreSQLOutput} The populated GatewayCreateProducerPostgreSQLOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerPostgreSQLOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerPostgreSQLOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerPostgreSQLOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerPostgreSQLOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 57964: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerRabbitMQ model module. - * @module model/GatewayCreateProducerRabbitMQ - * @version 3.3.16 - */ -var GatewayCreateProducerRabbitMQ = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerRabbitMQ. - * gatewayCreateProducerRabbitMQ is a command that creates rabbitmq producer - * @alias module:model/GatewayCreateProducerRabbitMQ - * @param name {String} Producer name - */ - function GatewayCreateProducerRabbitMQ(name) { - _classCallCheck(this, GatewayCreateProducerRabbitMQ); - - GatewayCreateProducerRabbitMQ.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerRabbitMQ, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerRabbitMQ from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerRabbitMQ} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerRabbitMQ} The populated GatewayCreateProducerRabbitMQ instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerRabbitMQ(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-admin-pwd')) { - obj['rabbitmq-admin-pwd'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-pwd'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-admin-user')) { - obj['rabbitmq-admin-user'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-user'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-server-uri')) { - obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-user-conf-permission')) { - obj['rabbitmq-user-conf-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-conf-permission'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-user-read-permission')) { - obj['rabbitmq-user-read-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-read-permission'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-user-tags')) { - obj['rabbitmq-user-tags'] = _ApiClient["default"].convertToType(data['rabbitmq-user-tags'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-user-vhost')) { - obj['rabbitmq-user-vhost'] = _ApiClient["default"].convertToType(data['rabbitmq-user-vhost'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-user-write-permission')) { - obj['rabbitmq-user-write-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-write-permission'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-url')) { - obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerRabbitMQ; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayCreateProducerRabbitMQ.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerRabbitMQ.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerRabbitMQ.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerRabbitMQ.prototype['producer-encryption-key-name'] = undefined; -/** - * RabbitMQ Admin password - * @member {String} rabbitmq-admin-pwd - */ - -GatewayCreateProducerRabbitMQ.prototype['rabbitmq-admin-pwd'] = undefined; -/** - * RabbitMQ Admin User - * @member {String} rabbitmq-admin-user - */ - -GatewayCreateProducerRabbitMQ.prototype['rabbitmq-admin-user'] = undefined; -/** - * Server URI - * @member {String} rabbitmq-server-uri - */ - -GatewayCreateProducerRabbitMQ.prototype['rabbitmq-server-uri'] = undefined; -/** - * User configuration permission - * @member {String} rabbitmq-user-conf-permission - */ - -GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-conf-permission'] = undefined; -/** - * User read permission - * @member {String} rabbitmq-user-read-permission - */ - -GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-read-permission'] = undefined; -/** - * User Tags - * @member {String} rabbitmq-user-tags - */ - -GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-tags'] = undefined; -/** - * User Virtual Host - * @member {String} rabbitmq-user-vhost - */ - -GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-vhost'] = undefined; -/** - * User write permission - * @member {String} rabbitmq-user-write-permission - */ - -GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-write-permission'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerRabbitMQ.prototype['secure-access-enable'] = undefined; -/** - * Destination URL to inject secrets - * @member {String} secure-access-url - */ - -GatewayCreateProducerRabbitMQ.prototype['secure-access-url'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default true - */ - -GatewayCreateProducerRabbitMQ.prototype['secure-access-web'] = true; -/** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false - */ - -GatewayCreateProducerRabbitMQ.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false - */ - -GatewayCreateProducerRabbitMQ.prototype['secure-access-web-proxy'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerRabbitMQ.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerRabbitMQ.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerRabbitMQ.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerRabbitMQ.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerRabbitMQ.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerRabbitMQ; -exports["default"] = _default; - -/***/ }), - -/***/ 57357: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerRabbitMQOutput model module. - * @module model/GatewayCreateProducerRabbitMQOutput - * @version 3.3.16 - */ -var GatewayCreateProducerRabbitMQOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerRabbitMQOutput. - * @alias module:model/GatewayCreateProducerRabbitMQOutput - */ - function GatewayCreateProducerRabbitMQOutput() { - _classCallCheck(this, GatewayCreateProducerRabbitMQOutput); - - GatewayCreateProducerRabbitMQOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerRabbitMQOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerRabbitMQOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerRabbitMQOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerRabbitMQOutput} The populated GatewayCreateProducerRabbitMQOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerRabbitMQOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerRabbitMQOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerRabbitMQOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerRabbitMQOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 40686: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerRdp model module. - * @module model/GatewayCreateProducerRdp - * @version 3.3.16 - */ -var GatewayCreateProducerRdp = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerRdp. - * gatewayCreateProducerRdp is a command that creates rdp producer - * @alias module:model/GatewayCreateProducerRdp - * @param name {String} Producer name - */ - function GatewayCreateProducerRdp(name) { - _classCallCheck(this, GatewayCreateProducerRdp); - - GatewayCreateProducerRdp.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerRdp, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerRdp from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerRdp} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerRdp} The populated GatewayCreateProducerRdp instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerRdp(); - - if (data.hasOwnProperty('allow-user-extend-session')) { - obj['allow-user-extend-session'] = _ApiClient["default"].convertToType(data['allow-user-extend-session'], 'Number'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('fixed-user-only')) { - obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('rdp-admin-name')) { - obj['rdp-admin-name'] = _ApiClient["default"].convertToType(data['rdp-admin-name'], 'String'); - } - - if (data.hasOwnProperty('rdp-admin-pwd')) { - obj['rdp-admin-pwd'] = _ApiClient["default"].convertToType(data['rdp-admin-pwd'], 'String'); - } - - if (data.hasOwnProperty('rdp-host-name')) { - obj['rdp-host-name'] = _ApiClient["default"].convertToType(data['rdp-host-name'], 'String'); - } - - if (data.hasOwnProperty('rdp-host-port')) { - obj['rdp-host-port'] = _ApiClient["default"].convertToType(data['rdp-host-port'], 'String'); - } - - if (data.hasOwnProperty('rdp-user-groups')) { - obj['rdp-user-groups'] = _ApiClient["default"].convertToType(data['rdp-user-groups'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-external-user')) { - obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-rdp-domain')) { - obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); - } - - if (data.hasOwnProperty('secure-access-rdp-user')) { - obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - - if (data.hasOwnProperty('warn-user-before-expiration')) { - obj['warn-user-before-expiration'] = _ApiClient["default"].convertToType(data['warn-user-before-expiration'], 'Number'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerRdp; -}(); -/** - * AllowUserExtendSession - * @member {Number} allow-user-extend-session - */ - - -GatewayCreateProducerRdp.prototype['allow-user-extend-session'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerRdp.prototype['delete_protection'] = undefined; -/** - * Allow access using externally (IdP) provided username [true/false] - * @member {String} fixed-user-only - * @default 'false' - */ - -GatewayCreateProducerRdp.prototype['fixed-user-only'] = 'false'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerRdp.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerRdp.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerRdp.prototype['producer-encryption-key-name'] = undefined; -/** - * RDP Admin Name - * @member {String} rdp-admin-name - */ - -GatewayCreateProducerRdp.prototype['rdp-admin-name'] = undefined; -/** - * RDP Admin password - * @member {String} rdp-admin-pwd - */ - -GatewayCreateProducerRdp.prototype['rdp-admin-pwd'] = undefined; -/** - * Hostname - * @member {String} rdp-host-name - */ - -GatewayCreateProducerRdp.prototype['rdp-host-name'] = undefined; -/** - * Port - * @member {String} rdp-host-port - * @default '22' - */ - -GatewayCreateProducerRdp.prototype['rdp-host-port'] = '22'; -/** - * Groups - * @member {String} rdp-user-groups - */ - -GatewayCreateProducerRdp.prototype['rdp-user-groups'] = undefined; -/** - * Allow providing external user for a domain users - * @member {Boolean} secure-access-allow-external-user - * @default false - */ - -GatewayCreateProducerRdp.prototype['secure-access-allow-external-user'] = false; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerRdp.prototype['secure-access-enable'] = undefined; -/** - * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) - * @member {Array.} secure-access-host - */ - -GatewayCreateProducerRdp.prototype['secure-access-host'] = undefined; -/** - * Required when the Dynamic Secret is used for a domain user - * @member {String} secure-access-rdp-domain - */ - -GatewayCreateProducerRdp.prototype['secure-access-rdp-domain'] = undefined; -/** - * Override the RDP Domain username - * @member {String} secure-access-rdp-user - */ - -GatewayCreateProducerRdp.prototype['secure-access-rdp-user'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerRdp.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerRdp.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerRdp.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerRdp.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerRdp.prototype['user-ttl'] = '60m'; -/** - * WarnBeforeUserExpiration - * @member {Number} warn-user-before-expiration - */ - -GatewayCreateProducerRdp.prototype['warn-user-before-expiration'] = undefined; -var _default = GatewayCreateProducerRdp; -exports["default"] = _default; - -/***/ }), - -/***/ 1915: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerRdpOutput model module. - * @module model/GatewayCreateProducerRdpOutput - * @version 3.3.16 - */ -var GatewayCreateProducerRdpOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerRdpOutput. - * @alias module:model/GatewayCreateProducerRdpOutput - */ - function GatewayCreateProducerRdpOutput() { - _classCallCheck(this, GatewayCreateProducerRdpOutput); - - GatewayCreateProducerRdpOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerRdpOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerRdpOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerRdpOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerRdpOutput} The populated GatewayCreateProducerRdpOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerRdpOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerRdpOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerRdpOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerRdpOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 30759: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerRedis model module. - * @module model/GatewayCreateProducerRedis - * @version 3.3.16 - */ -var GatewayCreateProducerRedis = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerRedis. - * gatewayCreateProducerRedis is a command that creates Redis producer - * @alias module:model/GatewayCreateProducerRedis - * @param name {String} Producer name - */ - function GatewayCreateProducerRedis(name) { - _classCallCheck(this, GatewayCreateProducerRedis); - - GatewayCreateProducerRedis.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerRedis, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerRedis from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerRedis} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerRedis} The populated GatewayCreateProducerRedis instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerRedis(); - - if (data.hasOwnProperty('acl-rules')) { - obj['acl-rules'] = _ApiClient["default"].convertToType(data['acl-rules'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('ssl-certificate')) { - obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerRedis; -}(); -/** - * A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '[\"~*\", \"+@read\"]' - * @member {String} acl-rules - */ - - -GatewayCreateProducerRedis.prototype['acl-rules'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerRedis.prototype['delete_protection'] = undefined; -/** - * Redis Host - * @member {String} host - * @default '127.0.0.1' - */ - -GatewayCreateProducerRedis.prototype['host'] = '127.0.0.1'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerRedis.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerRedis.prototype['name'] = undefined; -/** - * Redis Password - * @member {String} password - */ - -GatewayCreateProducerRedis.prototype['password'] = undefined; -/** - * Redis Port - * @member {String} port - * @default '6379' - */ - -GatewayCreateProducerRedis.prototype['port'] = '6379'; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayCreateProducerRedis.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false - */ - -GatewayCreateProducerRedis.prototype['ssl'] = false; -/** - * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) - * @member {String} ssl-certificate - */ - -GatewayCreateProducerRedis.prototype['ssl-certificate'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerRedis.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerRedis.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerRedis.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerRedis.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerRedis.prototype['user-ttl'] = '60m'; -/** - * Redis Username - * @member {String} username - */ - -GatewayCreateProducerRedis.prototype['username'] = undefined; -var _default = GatewayCreateProducerRedis; -exports["default"] = _default; - -/***/ }), - -/***/ 69950: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerRedisOutput model module. - * @module model/GatewayCreateProducerRedisOutput - * @version 3.3.16 - */ -var GatewayCreateProducerRedisOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerRedisOutput. - * @alias module:model/GatewayCreateProducerRedisOutput - */ - function GatewayCreateProducerRedisOutput() { - _classCallCheck(this, GatewayCreateProducerRedisOutput); - - GatewayCreateProducerRedisOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerRedisOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerRedisOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerRedisOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerRedisOutput} The populated GatewayCreateProducerRedisOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerRedisOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerRedisOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerRedisOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerRedisOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 84307: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerRedshift model module. - * @module model/GatewayCreateProducerRedshift - * @version 3.3.16 - */ -var GatewayCreateProducerRedshift = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerRedshift. - * gatewayCreateProducerRedshift is a command that creates redshift producer - * @alias module:model/GatewayCreateProducerRedshift - * @param name {String} Producer name - */ - function GatewayCreateProducerRedshift(name) { - _classCallCheck(this, GatewayCreateProducerRedshift); - - GatewayCreateProducerRedshift.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerRedshift, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerRedshift from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerRedshift} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerRedshift} The populated GatewayCreateProducerRedshift instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerRedshift(); - - if (data.hasOwnProperty('creation-statements')) { - obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key')) { - obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); - } - - if (data.hasOwnProperty('redshift-db-name')) { - obj['redshift-db-name'] = _ApiClient["default"].convertToType(data['redshift-db-name'], 'String'); - } - - if (data.hasOwnProperty('redshift-host')) { - obj['redshift-host'] = _ApiClient["default"].convertToType(data['redshift-host'], 'String'); - } - - if (data.hasOwnProperty('redshift-password')) { - obj['redshift-password'] = _ApiClient["default"].convertToType(data['redshift-password'], 'String'); - } - - if (data.hasOwnProperty('redshift-port')) { - obj['redshift-port'] = _ApiClient["default"].convertToType(data['redshift-port'], 'String'); - } - - if (data.hasOwnProperty('redshift-username')) { - obj['redshift-username'] = _ApiClient["default"].convertToType(data['redshift-username'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerRedshift; -}(); -/** - * Redshift Creation statements - * @member {String} creation-statements - */ - - -GatewayCreateProducerRedshift.prototype['creation-statements'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerRedshift.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerRedshift.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerRedshift.prototype['name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key - */ - -GatewayCreateProducerRedshift.prototype['producer-encryption-key'] = undefined; -/** - * Redshift DB Name - * @member {String} redshift-db-name - */ - -GatewayCreateProducerRedshift.prototype['redshift-db-name'] = undefined; -/** - * Redshift Host - * @member {String} redshift-host - * @default '127.0.0.1' - */ - -GatewayCreateProducerRedshift.prototype['redshift-host'] = '127.0.0.1'; -/** - * Redshift Password - * @member {String} redshift-password - */ - -GatewayCreateProducerRedshift.prototype['redshift-password'] = undefined; -/** - * Redshift Port - * @member {String} redshift-port - * @default '5439' - */ - -GatewayCreateProducerRedshift.prototype['redshift-port'] = '5439'; -/** - * Redshift Username - * @member {String} redshift-username - */ - -GatewayCreateProducerRedshift.prototype['redshift-username'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayCreateProducerRedshift.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayCreateProducerRedshift.prototype['secure-access-host'] = undefined; -/** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false - */ - -GatewayCreateProducerRedshift.prototype['ssl'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerRedshift.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerRedshift.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerRedshift.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerRedshift.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayCreateProducerRedshift.prototype['user-ttl'] = '60m'; -var _default = GatewayCreateProducerRedshift; -exports["default"] = _default; - -/***/ }), - -/***/ 51074: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerRedshiftOutput model module. - * @module model/GatewayCreateProducerRedshiftOutput - * @version 3.3.16 - */ -var GatewayCreateProducerRedshiftOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerRedshiftOutput. - * @alias module:model/GatewayCreateProducerRedshiftOutput - */ - function GatewayCreateProducerRedshiftOutput() { - _classCallCheck(this, GatewayCreateProducerRedshiftOutput); - - GatewayCreateProducerRedshiftOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerRedshiftOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerRedshiftOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerRedshiftOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerRedshiftOutput} The populated GatewayCreateProducerRedshiftOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerRedshiftOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerRedshiftOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerRedshiftOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerRedshiftOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 59024: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerSnowflake model module. - * @module model/GatewayCreateProducerSnowflake - * @version 3.3.16 - */ -var GatewayCreateProducerSnowflake = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerSnowflake. - * GatewayCreateProducerSnowflakeCmd is a command that creates a Snowflake producer - * @alias module:model/GatewayCreateProducerSnowflake - * @param name {String} Producer name - */ - function GatewayCreateProducerSnowflake(name) { - _classCallCheck(this, GatewayCreateProducerSnowflake); - - GatewayCreateProducerSnowflake.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerSnowflake, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayCreateProducerSnowflake from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerSnowflake} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerSnowflake} The populated GatewayCreateProducerSnowflake instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerSnowflake(); - - if (data.hasOwnProperty('account')) { - obj['account'] = _ApiClient["default"].convertToType(data['account'], 'String'); - } - - if (data.hasOwnProperty('account-password')) { - obj['account-password'] = _ApiClient["default"].convertToType(data['account-password'], 'String'); - } - - if (data.hasOwnProperty('account-username')) { - obj['account-username'] = _ApiClient["default"].convertToType(data['account-username'], 'String'); - } - - if (data.hasOwnProperty('db-name')) { - obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('private-key')) { - obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); - } - - if (data.hasOwnProperty('private-key-passphrase')) { - obj['private-key-passphrase'] = _ApiClient["default"].convertToType(data['private-key-passphrase'], 'String'); - } - - if (data.hasOwnProperty('role')) { - obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - - if (data.hasOwnProperty('warehouse')) { - obj['warehouse'] = _ApiClient["default"].convertToType(data['warehouse'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerSnowflake; -}(); -/** - * Account name - * @member {String} account - */ - - -GatewayCreateProducerSnowflake.prototype['account'] = undefined; -/** - * Database Password - * @member {String} account-password - */ - -GatewayCreateProducerSnowflake.prototype['account-password'] = undefined; -/** - * Database Username - * @member {String} account-username - */ - -GatewayCreateProducerSnowflake.prototype['account-username'] = undefined; -/** - * Database name - * @member {String} db-name - */ - -GatewayCreateProducerSnowflake.prototype['db-name'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayCreateProducerSnowflake.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayCreateProducerSnowflake.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayCreateProducerSnowflake.prototype['name'] = undefined; -/** - * RSA Private key (base64 encoded) - * @member {String} private-key - */ - -GatewayCreateProducerSnowflake.prototype['private-key'] = undefined; -/** - * The Private key passphrase - * @member {String} private-key-passphrase - */ - -GatewayCreateProducerSnowflake.prototype['private-key-passphrase'] = undefined; -/** - * User role - * @member {String} role - */ - -GatewayCreateProducerSnowflake.prototype['role'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayCreateProducerSnowflake.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayCreateProducerSnowflake.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayCreateProducerSnowflake.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayCreateProducerSnowflake.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '24h' - */ - -GatewayCreateProducerSnowflake.prototype['user-ttl'] = '24h'; -/** - * Warehouse name - * @member {String} warehouse - */ - -GatewayCreateProducerSnowflake.prototype['warehouse'] = undefined; -var _default = GatewayCreateProducerSnowflake; -exports["default"] = _default; - -/***/ }), - -/***/ 35609: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayCreateProducerSnowflakeOutput model module. - * @module model/GatewayCreateProducerSnowflakeOutput - * @version 3.3.16 - */ -var GatewayCreateProducerSnowflakeOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayCreateProducerSnowflakeOutput. - * @alias module:model/GatewayCreateProducerSnowflakeOutput - */ - function GatewayCreateProducerSnowflakeOutput() { - _classCallCheck(this, GatewayCreateProducerSnowflakeOutput); - - GatewayCreateProducerSnowflakeOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayCreateProducerSnowflakeOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayCreateProducerSnowflakeOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayCreateProducerSnowflakeOutput} obj Optional instance to populate. - * @return {module:model/GatewayCreateProducerSnowflakeOutput} The populated GatewayCreateProducerSnowflakeOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayCreateProducerSnowflakeOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayCreateProducerSnowflakeOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayCreateProducerSnowflakeOutput.prototype['producer_details'] = undefined; -var _default = GatewayCreateProducerSnowflakeOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 99401: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayDeleteAllowedAccess model module. - * @module model/GatewayDeleteAllowedAccess - * @version 3.3.16 - */ -var GatewayDeleteAllowedAccess = /*#__PURE__*/function () { - /** - * Constructs a new GatewayDeleteAllowedAccess. - * gatewayDeleteAllowedAccess is a command that deletes allowed access from gateway - * @alias module:model/GatewayDeleteAllowedAccess - * @param name {String} Allowed access name to delete - */ - function GatewayDeleteAllowedAccess(name) { - _classCallCheck(this, GatewayDeleteAllowedAccess); - - GatewayDeleteAllowedAccess.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayDeleteAllowedAccess, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayDeleteAllowedAccess from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDeleteAllowedAccess} obj Optional instance to populate. - * @return {module:model/GatewayDeleteAllowedAccess} The populated GatewayDeleteAllowedAccess instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayDeleteAllowedAccess(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayDeleteAllowedAccess; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayDeleteAllowedAccess.prototype['json'] = false; -/** - * Allowed access name to delete - * @member {String} name - */ - -GatewayDeleteAllowedAccess.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayDeleteAllowedAccess.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayDeleteAllowedAccess.prototype['uid-token'] = undefined; -var _default = GatewayDeleteAllowedAccess; -exports["default"] = _default; - -/***/ }), - -/***/ 98572: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayDeleteAllowedAccessOutput model module. - * @module model/GatewayDeleteAllowedAccessOutput - * @version 3.3.16 - */ -var GatewayDeleteAllowedAccessOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayDeleteAllowedAccessOutput. - * @alias module:model/GatewayDeleteAllowedAccessOutput - */ - function GatewayDeleteAllowedAccessOutput() { - _classCallCheck(this, GatewayDeleteAllowedAccessOutput); - - GatewayDeleteAllowedAccessOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayDeleteAllowedAccessOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayDeleteAllowedAccessOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDeleteAllowedAccessOutput} obj Optional instance to populate. - * @return {module:model/GatewayDeleteAllowedAccessOutput} The populated GatewayDeleteAllowedAccessOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayDeleteAllowedAccessOutput(); - - if (data.hasOwnProperty('allowed_access_name')) { - obj['allowed_access_name'] = _ApiClient["default"].convertToType(data['allowed_access_name'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayDeleteAllowedAccessOutput; -}(); -/** - * @member {String} allowed_access_name - */ - - -GatewayDeleteAllowedAccessOutput.prototype['allowed_access_name'] = undefined; -var _default = GatewayDeleteAllowedAccessOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 48163: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayDeleteK8SAuthConfig model module. - * @module model/GatewayDeleteK8SAuthConfig - * @version 3.3.16 - */ -var GatewayDeleteK8SAuthConfig = /*#__PURE__*/function () { - /** - * Constructs a new GatewayDeleteK8SAuthConfig. - * gatewayDeleteK8SAuth is a command that deletes k8s auth config - * @alias module:model/GatewayDeleteK8SAuthConfig - * @param name {String} K8S Auth config name - */ - function GatewayDeleteK8SAuthConfig(name) { - _classCallCheck(this, GatewayDeleteK8SAuthConfig); - - GatewayDeleteK8SAuthConfig.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayDeleteK8SAuthConfig, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayDeleteK8SAuthConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDeleteK8SAuthConfig} obj Optional instance to populate. - * @return {module:model/GatewayDeleteK8SAuthConfig} The populated GatewayDeleteK8SAuthConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayDeleteK8SAuthConfig(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayDeleteK8SAuthConfig; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayDeleteK8SAuthConfig.prototype['json'] = false; -/** - * K8S Auth config name - * @member {String} name - */ - -GatewayDeleteK8SAuthConfig.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayDeleteK8SAuthConfig.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayDeleteK8SAuthConfig.prototype['uid-token'] = undefined; -var _default = GatewayDeleteK8SAuthConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 3506: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _ConfigChange = _interopRequireDefault(__nccwpck_require__(47166)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayDeleteK8SAuthConfigOutput model module. - * @module model/GatewayDeleteK8SAuthConfigOutput - * @version 3.3.16 - */ -var GatewayDeleteK8SAuthConfigOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayDeleteK8SAuthConfigOutput. - * @alias module:model/GatewayDeleteK8SAuthConfigOutput - */ - function GatewayDeleteK8SAuthConfigOutput() { - _classCallCheck(this, GatewayDeleteK8SAuthConfigOutput); - - GatewayDeleteK8SAuthConfigOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayDeleteK8SAuthConfigOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayDeleteK8SAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDeleteK8SAuthConfigOutput} obj Optional instance to populate. - * @return {module:model/GatewayDeleteK8SAuthConfigOutput} The populated GatewayDeleteK8SAuthConfigOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayDeleteK8SAuthConfigOutput(); - - if (data.hasOwnProperty('cluster_id')) { - obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'String'); - } - - if (data.hasOwnProperty('parts_change')) { - obj['parts_change'] = _ConfigChange["default"].constructFromObject(data['parts_change']); - } - - if (data.hasOwnProperty('total_hash')) { - obj['total_hash'] = _ApiClient["default"].convertToType(data['total_hash'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayDeleteK8SAuthConfigOutput; -}(); -/** - * @member {String} cluster_id - */ - - -GatewayDeleteK8SAuthConfigOutput.prototype['cluster_id'] = undefined; -/** - * @member {module:model/ConfigChange} parts_change - */ - -GatewayDeleteK8SAuthConfigOutput.prototype['parts_change'] = undefined; -/** - * @member {String} total_hash - */ - -GatewayDeleteK8SAuthConfigOutput.prototype['total_hash'] = undefined; -var _default = GatewayDeleteK8SAuthConfigOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 92895: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayDeleteMigration model module. - * @module model/GatewayDeleteMigration - * @version 3.3.16 - */ -var GatewayDeleteMigration = /*#__PURE__*/function () { - /** - * Constructs a new GatewayDeleteMigration. - * gatewayDeleteMigration is a command that delete migration - * @alias module:model/GatewayDeleteMigration - * @param id {String} Migration ID - */ - function GatewayDeleteMigration(id) { - _classCallCheck(this, GatewayDeleteMigration); - - GatewayDeleteMigration.initialize(this, id); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayDeleteMigration, null, [{ - key: "initialize", - value: function initialize(obj, id) { - obj['id'] = id; - } - /** - * Constructs a GatewayDeleteMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDeleteMigration} obj Optional instance to populate. - * @return {module:model/GatewayDeleteMigration} The populated GatewayDeleteMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayDeleteMigration(); - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayDeleteMigration; -}(); -/** - * Migration ID - * @member {String} id - */ - - -GatewayDeleteMigration.prototype['id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayDeleteMigration.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayDeleteMigration.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayDeleteMigration.prototype['uid-token'] = undefined; -var _default = GatewayDeleteMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 24177: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayDeleteProducer model module. - * @module model/GatewayDeleteProducer - * @version 3.3.16 - */ -var GatewayDeleteProducer = /*#__PURE__*/function () { - /** - * Constructs a new GatewayDeleteProducer. - * gatewayDeleteProducer is a command that deletes producer - * @alias module:model/GatewayDeleteProducer - * @param name {String} Producer name - */ - function GatewayDeleteProducer(name) { - _classCallCheck(this, GatewayDeleteProducer); - - GatewayDeleteProducer.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayDeleteProducer, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayDeleteProducer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDeleteProducer} obj Optional instance to populate. - * @return {module:model/GatewayDeleteProducer} The populated GatewayDeleteProducer instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayDeleteProducer(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayDeleteProducer; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayDeleteProducer.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayDeleteProducer.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayDeleteProducer.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayDeleteProducer.prototype['uid-token'] = undefined; -var _default = GatewayDeleteProducer; -exports["default"] = _default; - -/***/ }), - -/***/ 31236: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayDeleteProducerOutput model module. - * @module model/GatewayDeleteProducerOutput - * @version 3.3.16 - */ -var GatewayDeleteProducerOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayDeleteProducerOutput. - * @alias module:model/GatewayDeleteProducerOutput - */ - function GatewayDeleteProducerOutput() { - _classCallCheck(this, GatewayDeleteProducerOutput); - - GatewayDeleteProducerOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayDeleteProducerOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayDeleteProducerOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDeleteProducerOutput} obj Optional instance to populate. - * @return {module:model/GatewayDeleteProducerOutput} The populated GatewayDeleteProducerOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayDeleteProducerOutput(); - - if (data.hasOwnProperty('producer_name')) { - obj['producer_name'] = _ApiClient["default"].convertToType(data['producer_name'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayDeleteProducerOutput; -}(); -/** - * @member {String} producer_name - */ - - -GatewayDeleteProducerOutput.prototype['producer_name'] = undefined; -var _default = GatewayDeleteProducerOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 70355: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayDownloadCustomerFragments model module. - * @module model/GatewayDownloadCustomerFragments - * @version 3.3.16 - */ -var GatewayDownloadCustomerFragments = /*#__PURE__*/function () { - /** - * Constructs a new GatewayDownloadCustomerFragments. - * gatewayDownloadCustomerFragments is a command that downloads customer fragments - * @alias module:model/GatewayDownloadCustomerFragments - */ - function GatewayDownloadCustomerFragments() { - _classCallCheck(this, GatewayDownloadCustomerFragments); - - GatewayDownloadCustomerFragments.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayDownloadCustomerFragments, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayDownloadCustomerFragments from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDownloadCustomerFragments} obj Optional instance to populate. - * @return {module:model/GatewayDownloadCustomerFragments} The populated GatewayDownloadCustomerFragments instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayDownloadCustomerFragments(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayDownloadCustomerFragments; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayDownloadCustomerFragments.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayDownloadCustomerFragments.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayDownloadCustomerFragments.prototype['uid-token'] = undefined; -var _default = GatewayDownloadCustomerFragments; -exports["default"] = _default; - -/***/ }), - -/***/ 62210: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayDownloadCustomerFragmentsOutput model module. - * @module model/GatewayDownloadCustomerFragmentsOutput - * @version 3.3.16 - */ -var GatewayDownloadCustomerFragmentsOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayDownloadCustomerFragmentsOutput. - * @alias module:model/GatewayDownloadCustomerFragmentsOutput - */ - function GatewayDownloadCustomerFragmentsOutput() { - _classCallCheck(this, GatewayDownloadCustomerFragmentsOutput); - - GatewayDownloadCustomerFragmentsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayDownloadCustomerFragmentsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayDownloadCustomerFragmentsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayDownloadCustomerFragmentsOutput} obj Optional instance to populate. - * @return {module:model/GatewayDownloadCustomerFragmentsOutput} The populated GatewayDownloadCustomerFragmentsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayDownloadCustomerFragmentsOutput(); - - if (data.hasOwnProperty('cf_json')) { - obj['cf_json'] = _ApiClient["default"].convertToType(data['cf_json'], { - 'String': Object - }); - } - } - - return obj; - } - }]); - - return GatewayDownloadCustomerFragmentsOutput; -}(); -/** - * @member {Object.} cf_json - */ - - -GatewayDownloadCustomerFragmentsOutput.prototype['cf_json'] = undefined; -var _default = GatewayDownloadCustomerFragmentsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 99262: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayGetAllowedAccess model module. - * @module model/GatewayGetAllowedAccess - * @version 3.3.16 - */ -var GatewayGetAllowedAccess = /*#__PURE__*/function () { - /** - * Constructs a new GatewayGetAllowedAccess. - * gatewayGetAllowedAccess is a command that gets allowed access from gateway - * @alias module:model/GatewayGetAllowedAccess - * @param name {String} Allowed access name - */ - function GatewayGetAllowedAccess(name) { - _classCallCheck(this, GatewayGetAllowedAccess); - - GatewayGetAllowedAccess.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayGetAllowedAccess, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayGetAllowedAccess from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetAllowedAccess} obj Optional instance to populate. - * @return {module:model/GatewayGetAllowedAccess} The populated GatewayGetAllowedAccess instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayGetAllowedAccess(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayGetAllowedAccess; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayGetAllowedAccess.prototype['json'] = false; -/** - * Allowed access name - * @member {String} name - */ - -GatewayGetAllowedAccess.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayGetAllowedAccess.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayGetAllowedAccess.prototype['uid-token'] = undefined; -var _default = GatewayGetAllowedAccess; -exports["default"] = _default; - -/***/ }), - -/***/ 16048: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayGetConfig model module. - * @module model/GatewayGetConfig - * @version 3.3.16 - */ -var GatewayGetConfig = /*#__PURE__*/function () { - /** - * Constructs a new GatewayGetConfig. - * gatewayGetConfig is a command that returns gateway configuration - * @alias module:model/GatewayGetConfig - */ - function GatewayGetConfig() { - _classCallCheck(this, GatewayGetConfig); - - GatewayGetConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayGetConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayGetConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetConfig} obj Optional instance to populate. - * @return {module:model/GatewayGetConfig} The populated GatewayGetConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayGetConfig(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayGetConfig; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayGetConfig.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayGetConfig.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayGetConfig.prototype['uid-token'] = undefined; -var _default = GatewayGetConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 12748: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayGetK8SAuthConfig model module. - * @module model/GatewayGetK8SAuthConfig - * @version 3.3.16 - */ -var GatewayGetK8SAuthConfig = /*#__PURE__*/function () { - /** - * Constructs a new GatewayGetK8SAuthConfig. - * gatewayGetK8SAuth is a command that gets k8s auth config - * @alias module:model/GatewayGetK8SAuthConfig - * @param name {String} K8S Auth config name - */ - function GatewayGetK8SAuthConfig(name) { - _classCallCheck(this, GatewayGetK8SAuthConfig); - - GatewayGetK8SAuthConfig.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayGetK8SAuthConfig, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayGetK8SAuthConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetK8SAuthConfig} obj Optional instance to populate. - * @return {module:model/GatewayGetK8SAuthConfig} The populated GatewayGetK8SAuthConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayGetK8SAuthConfig(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayGetK8SAuthConfig; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayGetK8SAuthConfig.prototype['json'] = false; -/** - * K8S Auth config name - * @member {String} name - */ - -GatewayGetK8SAuthConfig.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayGetK8SAuthConfig.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayGetK8SAuthConfig.prototype['uid-token'] = undefined; -var _default = GatewayGetK8SAuthConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 5645: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayGetK8SAuthConfigOutput model module. - * @module model/GatewayGetK8SAuthConfigOutput - * @version 3.3.16 - */ -var GatewayGetK8SAuthConfigOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayGetK8SAuthConfigOutput. - * @alias module:model/GatewayGetK8SAuthConfigOutput - */ - function GatewayGetK8SAuthConfigOutput() { - _classCallCheck(this, GatewayGetK8SAuthConfigOutput); - - GatewayGetK8SAuthConfigOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayGetK8SAuthConfigOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayGetK8SAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetK8SAuthConfigOutput} obj Optional instance to populate. - * @return {module:model/GatewayGetK8SAuthConfigOutput} The populated GatewayGetK8SAuthConfigOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayGetK8SAuthConfigOutput(); - - if (data.hasOwnProperty('am_token_expiration')) { - obj['am_token_expiration'] = _ApiClient["default"].convertToType(data['am_token_expiration'], 'Number'); - } - - if (data.hasOwnProperty('auth_method_access_id')) { - obj['auth_method_access_id'] = _ApiClient["default"].convertToType(data['auth_method_access_id'], 'String'); - } - - if (data.hasOwnProperty('auth_method_prv_key_pem')) { - obj['auth_method_prv_key_pem'] = _ApiClient["default"].convertToType(data['auth_method_prv_key_pem'], 'String'); - } - - if (data.hasOwnProperty('cluster_api_type')) { - obj['cluster_api_type'] = _ApiClient["default"].convertToType(data['cluster_api_type'], 'String'); - } - - if (data.hasOwnProperty('disable_iss_validation')) { - obj['disable_iss_validation'] = _ApiClient["default"].convertToType(data['disable_iss_validation'], 'Boolean'); - } - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - - if (data.hasOwnProperty('k8s_ca_cert')) { - obj['k8s_ca_cert'] = _ApiClient["default"].convertToType(data['k8s_ca_cert'], 'String'); - } - - if (data.hasOwnProperty('k8s_host')) { - obj['k8s_host'] = _ApiClient["default"].convertToType(data['k8s_host'], 'String'); - } - - if (data.hasOwnProperty('k8s_issuer')) { - obj['k8s_issuer'] = _ApiClient["default"].convertToType(data['k8s_issuer'], 'String'); - } - - if (data.hasOwnProperty('k8s_pub_keys_pem')) { - obj['k8s_pub_keys_pem'] = _ApiClient["default"].convertToType(data['k8s_pub_keys_pem'], ['String']); - } - - if (data.hasOwnProperty('k8s_token_reviewer_jwt')) { - obj['k8s_token_reviewer_jwt'] = _ApiClient["default"].convertToType(data['k8s_token_reviewer_jwt'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); - } - - if (data.hasOwnProperty('rancher_api_key')) { - obj['rancher_api_key'] = _ApiClient["default"].convertToType(data['rancher_api_key'], 'String'); - } - - if (data.hasOwnProperty('rancher_cluster_id')) { - obj['rancher_cluster_id'] = _ApiClient["default"].convertToType(data['rancher_cluster_id'], 'String'); - } - - if (data.hasOwnProperty('use_local_ca_jwt')) { - obj['use_local_ca_jwt'] = _ApiClient["default"].convertToType(data['use_local_ca_jwt'], 'Boolean'); - } - } - - return obj; - } - }]); - - return GatewayGetK8SAuthConfigOutput; -}(); -/** - * AuthMethodTokenExpiration is time in seconds of expiration of the Akeyless Kube Auth Method token - * @member {Number} am_token_expiration - */ - - -GatewayGetK8SAuthConfigOutput.prototype['am_token_expiration'] = undefined; -/** - * AuthMethodAccessId of the Kubernetes auth method - * @member {String} auth_method_access_id - */ - -GatewayGetK8SAuthConfigOutput.prototype['auth_method_access_id'] = undefined; -/** - * AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method - * @member {String} auth_method_prv_key_pem - */ - -GatewayGetK8SAuthConfigOutput.prototype['auth_method_prv_key_pem'] = undefined; -/** - * ClusterApiType defines types of API access to cluster - * @member {String} cluster_api_type - */ - -GatewayGetK8SAuthConfigOutput.prototype['cluster_api_type'] = undefined; -/** - * DisableISSValidation is optional parameter to disable ISS validation - * @member {Boolean} disable_iss_validation - */ - -GatewayGetK8SAuthConfigOutput.prototype['disable_iss_validation'] = undefined; -/** - * @member {String} id - */ - -GatewayGetK8SAuthConfigOutput.prototype['id'] = undefined; -/** - * K8SCACert is the CA Cert to use to call into the kubernetes API - * @member {String} k8s_ca_cert - */ - -GatewayGetK8SAuthConfigOutput.prototype['k8s_ca_cert'] = undefined; -/** - * K8SHost is the url string for the kubernetes API - * @member {String} k8s_host - */ - -GatewayGetK8SAuthConfigOutput.prototype['k8s_host'] = undefined; -/** - * K8SIssuer is the claim that specifies who issued the Kubernetes token - * @member {String} k8s_issuer - */ - -GatewayGetK8SAuthConfigOutput.prototype['k8s_issuer'] = undefined; -/** - * K8SPublicKeysPEM is the list of public key in PEM format - * @member {Array.} k8s_pub_keys_pem - */ - -GatewayGetK8SAuthConfigOutput.prototype['k8s_pub_keys_pem'] = undefined; -/** - * K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call - * @member {String} k8s_token_reviewer_jwt - */ - -GatewayGetK8SAuthConfigOutput.prototype['k8s_token_reviewer_jwt'] = undefined; -/** - * @member {String} name - */ - -GatewayGetK8SAuthConfigOutput.prototype['name'] = undefined; -/** - * @member {String} protection_key - */ - -GatewayGetK8SAuthConfigOutput.prototype['protection_key'] = undefined; -/** - * RancherApiKey the bear token for clusterApiTypeRancher - * @member {String} rancher_api_key - */ - -GatewayGetK8SAuthConfigOutput.prototype['rancher_api_key'] = undefined; -/** - * RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher) - * @member {String} rancher_cluster_id - */ - -GatewayGetK8SAuthConfigOutput.prototype['rancher_cluster_id'] = undefined; -/** - * UseLocalCAJwt is an optional parameter to set defaulting to using the local service account when running in a Kubernetes pod - * @member {Boolean} use_local_ca_jwt - */ - -GatewayGetK8SAuthConfigOutput.prototype['use_local_ca_jwt'] = undefined; -var _default = GatewayGetK8SAuthConfigOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 3495: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayGetLdapAuthConfig model module. - * @module model/GatewayGetLdapAuthConfig - * @version 3.3.16 - */ -var GatewayGetLdapAuthConfig = /*#__PURE__*/function () { - /** - * Constructs a new GatewayGetLdapAuthConfig. - * gatewayGetLdapAuth is a command that gets ldap auth config - * @alias module:model/GatewayGetLdapAuthConfig - */ - function GatewayGetLdapAuthConfig() { - _classCallCheck(this, GatewayGetLdapAuthConfig); - - GatewayGetLdapAuthConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayGetLdapAuthConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayGetLdapAuthConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetLdapAuthConfig} obj Optional instance to populate. - * @return {module:model/GatewayGetLdapAuthConfig} The populated GatewayGetLdapAuthConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayGetLdapAuthConfig(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayGetLdapAuthConfig; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayGetLdapAuthConfig.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayGetLdapAuthConfig.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayGetLdapAuthConfig.prototype['uid-token'] = undefined; -var _default = GatewayGetLdapAuthConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 79454: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayGetLdapAuthConfigOutput model module. - * @module model/GatewayGetLdapAuthConfigOutput - * @version 3.3.16 - */ -var GatewayGetLdapAuthConfigOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayGetLdapAuthConfigOutput. - * @alias module:model/GatewayGetLdapAuthConfigOutput - */ - function GatewayGetLdapAuthConfigOutput() { - _classCallCheck(this, GatewayGetLdapAuthConfigOutput); - - GatewayGetLdapAuthConfigOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayGetLdapAuthConfigOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayGetLdapAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetLdapAuthConfigOutput} obj Optional instance to populate. - * @return {module:model/GatewayGetLdapAuthConfigOutput} The populated GatewayGetLdapAuthConfigOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayGetLdapAuthConfigOutput(); - - if (data.hasOwnProperty('ldap_access_id')) { - obj['ldap_access_id'] = _ApiClient["default"].convertToType(data['ldap_access_id'], 'String'); - } - - if (data.hasOwnProperty('ldap_anonymous_search')) { - obj['ldap_anonymous_search'] = _ApiClient["default"].convertToType(data['ldap_anonymous_search'], 'Boolean'); - } - - if (data.hasOwnProperty('ldap_bind_dn')) { - obj['ldap_bind_dn'] = _ApiClient["default"].convertToType(data['ldap_bind_dn'], 'String'); - } - - if (data.hasOwnProperty('ldap_bind_password')) { - obj['ldap_bind_password'] = _ApiClient["default"].convertToType(data['ldap_bind_password'], 'String'); - } - - if (data.hasOwnProperty('ldap_cert')) { - obj['ldap_cert'] = _ApiClient["default"].convertToType(data['ldap_cert'], 'String'); - } - - if (data.hasOwnProperty('ldap_enable')) { - obj['ldap_enable'] = _ApiClient["default"].convertToType(data['ldap_enable'], 'Boolean'); - } - - if (data.hasOwnProperty('ldap_group_attr')) { - obj['ldap_group_attr'] = _ApiClient["default"].convertToType(data['ldap_group_attr'], 'String'); - } - - if (data.hasOwnProperty('ldap_group_dn')) { - obj['ldap_group_dn'] = _ApiClient["default"].convertToType(data['ldap_group_dn'], 'String'); - } - - if (data.hasOwnProperty('ldap_group_filter')) { - obj['ldap_group_filter'] = _ApiClient["default"].convertToType(data['ldap_group_filter'], 'String'); - } - - if (data.hasOwnProperty('ldap_private_key')) { - obj['ldap_private_key'] = _ApiClient["default"].convertToType(data['ldap_private_key'], 'String'); - } - - if (data.hasOwnProperty('ldap_token_expiration')) { - obj['ldap_token_expiration'] = _ApiClient["default"].convertToType(data['ldap_token_expiration'], 'String'); - } - - if (data.hasOwnProperty('ldap_url')) { - obj['ldap_url'] = _ApiClient["default"].convertToType(data['ldap_url'], 'String'); - } - - if (data.hasOwnProperty('ldap_user_attr')) { - obj['ldap_user_attr'] = _ApiClient["default"].convertToType(data['ldap_user_attr'], 'String'); - } - - if (data.hasOwnProperty('ldap_user_dn')) { - obj['ldap_user_dn'] = _ApiClient["default"].convertToType(data['ldap_user_dn'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayGetLdapAuthConfigOutput; -}(); -/** - * @member {String} ldap_access_id - */ - - -GatewayGetLdapAuthConfigOutput.prototype['ldap_access_id'] = undefined; -/** - * @member {Boolean} ldap_anonymous_search - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_anonymous_search'] = undefined; -/** - * @member {String} ldap_bind_dn - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_bind_dn'] = undefined; -/** - * @member {String} ldap_bind_password - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_bind_password'] = undefined; -/** - * @member {String} ldap_cert - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_cert'] = undefined; -/** - * @member {Boolean} ldap_enable - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_enable'] = undefined; -/** - * @member {String} ldap_group_attr - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_group_attr'] = undefined; -/** - * @member {String} ldap_group_dn - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_group_dn'] = undefined; -/** - * @member {String} ldap_group_filter - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_group_filter'] = undefined; -/** - * @member {String} ldap_private_key - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_private_key'] = undefined; -/** - * @member {String} ldap_token_expiration - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_token_expiration'] = undefined; -/** - * @member {String} ldap_url - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_url'] = undefined; -/** - * @member {String} ldap_user_attr - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_user_attr'] = undefined; -/** - * @member {String} ldap_user_dn - */ - -GatewayGetLdapAuthConfigOutput.prototype['ldap_user_dn'] = undefined; -var _default = GatewayGetLdapAuthConfigOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 41484: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayGetMigration model module. - * @module model/GatewayGetMigration - * @version 3.3.16 - */ -var GatewayGetMigration = /*#__PURE__*/function () { - /** - * Constructs a new GatewayGetMigration. - * gatewayGetMigration is a command that get migration - * @alias module:model/GatewayGetMigration - */ - function GatewayGetMigration() { - _classCallCheck(this, GatewayGetMigration); - - GatewayGetMigration.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayGetMigration, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayGetMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetMigration} obj Optional instance to populate. - * @return {module:model/GatewayGetMigration} The populated GatewayGetMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayGetMigration(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayGetMigration; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayGetMigration.prototype['json'] = false; -/** - * Migration name to display - * @member {String} name - */ - -GatewayGetMigration.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayGetMigration.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayGetMigration.prototype['uid-token'] = undefined; -var _default = GatewayGetMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 51523: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayGetProducer model module. - * @module model/GatewayGetProducer - * @version 3.3.16 - */ -var GatewayGetProducer = /*#__PURE__*/function () { - /** - * Constructs a new GatewayGetProducer. - * gatewayGetProducer is a command that returns producer - * @alias module:model/GatewayGetProducer - * @param name {String} Producer name - */ - function GatewayGetProducer(name) { - _classCallCheck(this, GatewayGetProducer); - - GatewayGetProducer.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayGetProducer, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayGetProducer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetProducer} obj Optional instance to populate. - * @return {module:model/GatewayGetProducer} The populated GatewayGetProducer instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayGetProducer(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayGetProducer; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayGetProducer.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayGetProducer.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayGetProducer.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayGetProducer.prototype['uid-token'] = undefined; -var _default = GatewayGetProducer; -exports["default"] = _default; - -/***/ }), - -/***/ 70701: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayGetTmpUsers model module. - * @module model/GatewayGetTmpUsers - * @version 3.3.16 - */ -var GatewayGetTmpUsers = /*#__PURE__*/function () { - /** - * Constructs a new GatewayGetTmpUsers. - * gatewayGetTmpUsers is a command that returns gateway configuration - * @alias module:model/GatewayGetTmpUsers - * @param name {String} Producer Name - */ - function GatewayGetTmpUsers(name) { - _classCallCheck(this, GatewayGetTmpUsers); - - GatewayGetTmpUsers.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayGetTmpUsers, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayGetTmpUsers from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayGetTmpUsers} obj Optional instance to populate. - * @return {module:model/GatewayGetTmpUsers} The populated GatewayGetTmpUsers instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayGetTmpUsers(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayGetTmpUsers; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayGetTmpUsers.prototype['json'] = false; -/** - * Producer Name - * @member {String} name - */ - -GatewayGetTmpUsers.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayGetTmpUsers.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayGetTmpUsers.prototype['uid-token'] = undefined; -var _default = GatewayGetTmpUsers; -exports["default"] = _default; - -/***/ }), - -/***/ 2946: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayListMigration model module. - * @module model/GatewayListMigration - * @version 3.3.16 - */ -var GatewayListMigration = /*#__PURE__*/function () { - /** - * Constructs a new GatewayListMigration. - * gatewayListMigration is a command that list migration - * @alias module:model/GatewayListMigration - */ - function GatewayListMigration() { - _classCallCheck(this, GatewayListMigration); - - GatewayListMigration.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayListMigration, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayListMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayListMigration} obj Optional instance to populate. - * @return {module:model/GatewayListMigration} The populated GatewayListMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayListMigration(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayListMigration; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayListMigration.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayListMigration.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayListMigration.prototype['uid-token'] = undefined; -var _default = GatewayListMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 92425: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayListProducers model module. - * @module model/GatewayListProducers - * @version 3.3.16 - */ -var GatewayListProducers = /*#__PURE__*/function () { - /** - * Constructs a new GatewayListProducers. - * gatewayListProducers is a command that returns a list of producers - * @alias module:model/GatewayListProducers - */ - function GatewayListProducers() { - _classCallCheck(this, GatewayListProducers); - - GatewayListProducers.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayListProducers, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayListProducers from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayListProducers} obj Optional instance to populate. - * @return {module:model/GatewayListProducers} The populated GatewayListProducers instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayListProducers(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayListProducers; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayListProducers.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayListProducers.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayListProducers.prototype['uid-token'] = undefined; -var _default = GatewayListProducers; -exports["default"] = _default; - -/***/ }), - -/***/ 74718: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayListRotatedSecrets model module. - * @module model/GatewayListRotatedSecrets - * @version 3.3.16 - */ -var GatewayListRotatedSecrets = /*#__PURE__*/function () { - /** - * Constructs a new GatewayListRotatedSecrets. - * gatewayListRotatedSecrets is a command that returns a list of rotated secrets - * @alias module:model/GatewayListRotatedSecrets - */ - function GatewayListRotatedSecrets() { - _classCallCheck(this, GatewayListRotatedSecrets); - - GatewayListRotatedSecrets.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayListRotatedSecrets, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayListRotatedSecrets from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayListRotatedSecrets} obj Optional instance to populate. - * @return {module:model/GatewayListRotatedSecrets} The populated GatewayListRotatedSecrets instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayListRotatedSecrets(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayListRotatedSecrets; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayListRotatedSecrets.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayListRotatedSecrets.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayListRotatedSecrets.prototype['uid-token'] = undefined; -var _default = GatewayListRotatedSecrets; -exports["default"] = _default; - -/***/ }), - -/***/ 78626: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayMessageQueueInfo model module. - * @module model/GatewayMessageQueueInfo - * @version 3.3.16 - */ -var GatewayMessageQueueInfo = /*#__PURE__*/function () { - /** - * Constructs a new GatewayMessageQueueInfo. - * @alias module:model/GatewayMessageQueueInfo - */ - function GatewayMessageQueueInfo() { - _classCallCheck(this, GatewayMessageQueueInfo); - - GatewayMessageQueueInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayMessageQueueInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayMessageQueueInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMessageQueueInfo} obj Optional instance to populate. - * @return {module:model/GatewayMessageQueueInfo} The populated GatewayMessageQueueInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayMessageQueueInfo(); - - if (data.hasOwnProperty('broadcast_queue_name_a')) { - obj['broadcast_queue_name_a'] = _ApiClient["default"].convertToType(data['broadcast_queue_name_a'], 'String'); - } - - if (data.hasOwnProperty('mq_type')) { - obj['mq_type'] = _ApiClient["default"].convertToType(data['mq_type'], 'String'); - } - - if (data.hasOwnProperty('queue_name')) { - obj['queue_name'] = _ApiClient["default"].convertToType(data['queue_name'], 'String'); - } - - if (data.hasOwnProperty('queue_url')) { - obj['queue_url'] = _ApiClient["default"].convertToType(data['queue_url'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayMessageQueueInfo; -}(); -/** - * @member {String} broadcast_queue_name_a - */ - - -GatewayMessageQueueInfo.prototype['broadcast_queue_name_a'] = undefined; -/** - * @member {String} mq_type - */ - -GatewayMessageQueueInfo.prototype['mq_type'] = undefined; -/** - * @member {String} queue_name - */ - -GatewayMessageQueueInfo.prototype['queue_name'] = undefined; -/** - * @member {String} queue_url - */ - -GatewayMessageQueueInfo.prototype['queue_url'] = undefined; -var _default = GatewayMessageQueueInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 22791: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayMigratePersonalItems model module. - * @module model/GatewayMigratePersonalItems - * @version 3.3.16 - */ -var GatewayMigratePersonalItems = /*#__PURE__*/function () { - /** - * Constructs a new GatewayMigratePersonalItems. - * gatewayMigratePersonalItems is a command that migrate personal items from external vault - * @alias module:model/GatewayMigratePersonalItems - */ - function GatewayMigratePersonalItems() { - _classCallCheck(this, GatewayMigratePersonalItems); - - GatewayMigratePersonalItems.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayMigratePersonalItems, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayMigratePersonalItems from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMigratePersonalItems} obj Optional instance to populate. - * @return {module:model/GatewayMigratePersonalItems} The populated GatewayMigratePersonalItems instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayMigratePersonalItems(); - - if (data.hasOwnProperty('1password-email')) { - obj['1password-email'] = _ApiClient["default"].convertToType(data['1password-email'], 'String'); - } - - if (data.hasOwnProperty('1password-password')) { - obj['1password-password'] = _ApiClient["default"].convertToType(data['1password-password'], 'String'); - } - - if (data.hasOwnProperty('1password-secret-key')) { - obj['1password-secret-key'] = _ApiClient["default"].convertToType(data['1password-secret-key'], 'String'); - } - - if (data.hasOwnProperty('1password-url')) { - obj['1password-url'] = _ApiClient["default"].convertToType(data['1password-url'], 'String'); - } - - if (data.hasOwnProperty('1password-vaults')) { - obj['1password-vaults'] = _ApiClient["default"].convertToType(data['1password-vaults'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('protection-key')) { - obj['protection-key'] = _ApiClient["default"].convertToType(data['protection-key'], 'String'); - } - - if (data.hasOwnProperty('target-location')) { - obj['target-location'] = _ApiClient["default"].convertToType(data['target-location'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayMigratePersonalItems; -}(); -/** - * 1Password user email to connect to the API - * @member {String} 1password-email - */ - - -GatewayMigratePersonalItems.prototype['1password-email'] = undefined; -/** - * 1Password user password to connect to the API - * @member {String} 1password-password - */ - -GatewayMigratePersonalItems.prototype['1password-password'] = undefined; -/** - * 1Password user secret key to connect to the API - * @member {String} 1password-secret-key - */ - -GatewayMigratePersonalItems.prototype['1password-secret-key'] = undefined; -/** - * 1Password api container url - * @member {String} 1password-url - */ - -GatewayMigratePersonalItems.prototype['1password-url'] = undefined; -/** - * 1Password list of vault to get the items from - * @member {Array.} 1password-vaults - */ - -GatewayMigratePersonalItems.prototype['1password-vaults'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayMigratePersonalItems.prototype['json'] = false; -/** - * The name of a key that used to encrypt the secret value - * @member {String} protection-key - */ - -GatewayMigratePersonalItems.prototype['protection-key'] = undefined; -/** - * Target location in your Akeyless personal folder for migrated secrets - * @member {String} target-location - */ - -GatewayMigratePersonalItems.prototype['target-location'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayMigratePersonalItems.prototype['token'] = undefined; -/** - * Migration type for now only 1password. - * @member {String} type - * @default '1password' - */ - -GatewayMigratePersonalItems.prototype['type'] = '1password'; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayMigratePersonalItems.prototype['uid-token'] = undefined; -var _default = GatewayMigratePersonalItems; -exports["default"] = _default; - -/***/ }), - -/***/ 70462: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _MigrationItems = _interopRequireDefault(__nccwpck_require__(84208)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayMigratePersonalItemsOutput model module. - * @module model/GatewayMigratePersonalItemsOutput - * @version 3.3.16 - */ -var GatewayMigratePersonalItemsOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayMigratePersonalItemsOutput. - * @alias module:model/GatewayMigratePersonalItemsOutput - */ - function GatewayMigratePersonalItemsOutput() { - _classCallCheck(this, GatewayMigratePersonalItemsOutput); - - GatewayMigratePersonalItemsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayMigratePersonalItemsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayMigratePersonalItemsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMigratePersonalItemsOutput} obj Optional instance to populate. - * @return {module:model/GatewayMigratePersonalItemsOutput} The populated GatewayMigratePersonalItemsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayMigratePersonalItemsOutput(); - - if (data.hasOwnProperty('migration_items')) { - obj['migration_items'] = _MigrationItems["default"].constructFromObject(data['migration_items']); - } - } - - return obj; - } - }]); - - return GatewayMigratePersonalItemsOutput; -}(); -/** - * @member {module:model/MigrationItems} migration_items - */ - - -GatewayMigratePersonalItemsOutput.prototype['migration_items'] = undefined; -var _default = GatewayMigratePersonalItemsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 19863: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayMigrationCreateOutput model module. - * @module model/GatewayMigrationCreateOutput - * @version 3.3.16 - */ -var GatewayMigrationCreateOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayMigrationCreateOutput. - * @alias module:model/GatewayMigrationCreateOutput - */ - function GatewayMigrationCreateOutput() { - _classCallCheck(this, GatewayMigrationCreateOutput); - - GatewayMigrationCreateOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayMigrationCreateOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayMigrationCreateOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMigrationCreateOutput} obj Optional instance to populate. - * @return {module:model/GatewayMigrationCreateOutput} The populated GatewayMigrationCreateOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayMigrationCreateOutput(); - - if (data.hasOwnProperty('migration_name')) { - obj['migration_name'] = _ApiClient["default"].convertToType(data['migration_name'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayMigrationCreateOutput; -}(); -/** - * @member {String} migration_name - */ - - -GatewayMigrationCreateOutput.prototype['migration_name'] = undefined; -var _default = GatewayMigrationCreateOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 16996: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayMigrationDeleteOutput model module. - * @module model/GatewayMigrationDeleteOutput - * @version 3.3.16 - */ -var GatewayMigrationDeleteOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayMigrationDeleteOutput. - * @alias module:model/GatewayMigrationDeleteOutput - */ - function GatewayMigrationDeleteOutput() { - _classCallCheck(this, GatewayMigrationDeleteOutput); - - GatewayMigrationDeleteOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayMigrationDeleteOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayMigrationDeleteOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMigrationDeleteOutput} obj Optional instance to populate. - * @return {module:model/GatewayMigrationDeleteOutput} The populated GatewayMigrationDeleteOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayMigrationDeleteOutput(); - - if (data.hasOwnProperty('migration_id')) { - obj['migration_id'] = _ApiClient["default"].convertToType(data['migration_id'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayMigrationDeleteOutput; -}(); -/** - * @member {String} migration_id - */ - - -GatewayMigrationDeleteOutput.prototype['migration_id'] = undefined; -var _default = GatewayMigrationDeleteOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 90097: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _MigrationsConfigPart = _interopRequireDefault(__nccwpck_require__(27734)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayMigrationGetOutput model module. - * @module model/GatewayMigrationGetOutput - * @version 3.3.16 - */ -var GatewayMigrationGetOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayMigrationGetOutput. - * @alias module:model/GatewayMigrationGetOutput - */ - function GatewayMigrationGetOutput() { - _classCallCheck(this, GatewayMigrationGetOutput); - - GatewayMigrationGetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayMigrationGetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayMigrationGetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMigrationGetOutput} obj Optional instance to populate. - * @return {module:model/GatewayMigrationGetOutput} The populated GatewayMigrationGetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayMigrationGetOutput(); - - if (data.hasOwnProperty('body')) { - obj['body'] = _MigrationsConfigPart["default"].constructFromObject(data['body']); - } - } - - return obj; - } - }]); - - return GatewayMigrationGetOutput; -}(); -/** - * @member {module:model/MigrationsConfigPart} body - */ - - -GatewayMigrationGetOutput.prototype['body'] = undefined; -var _default = GatewayMigrationGetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 80859: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _MigrationsConfigPart = _interopRequireDefault(__nccwpck_require__(27734)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayMigrationListOutput model module. - * @module model/GatewayMigrationListOutput - * @version 3.3.16 - */ -var GatewayMigrationListOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayMigrationListOutput. - * @alias module:model/GatewayMigrationListOutput - */ - function GatewayMigrationListOutput() { - _classCallCheck(this, GatewayMigrationListOutput); - - GatewayMigrationListOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayMigrationListOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayMigrationListOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMigrationListOutput} obj Optional instance to populate. - * @return {module:model/GatewayMigrationListOutput} The populated GatewayMigrationListOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayMigrationListOutput(); - - if (data.hasOwnProperty('body')) { - obj['body'] = _MigrationsConfigPart["default"].constructFromObject(data['body']); - } - } - - return obj; - } - }]); - - return GatewayMigrationListOutput; -}(); -/** - * @member {module:model/MigrationsConfigPart} body - */ - - -GatewayMigrationListOutput.prototype['body'] = undefined; -var _default = GatewayMigrationListOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 10052: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayMigrationSyncOutput model module. - * @module model/GatewayMigrationSyncOutput - * @version 3.3.16 - */ -var GatewayMigrationSyncOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayMigrationSyncOutput. - * @alias module:model/GatewayMigrationSyncOutput - */ - function GatewayMigrationSyncOutput() { - _classCallCheck(this, GatewayMigrationSyncOutput); - - GatewayMigrationSyncOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayMigrationSyncOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayMigrationSyncOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMigrationSyncOutput} obj Optional instance to populate. - * @return {module:model/GatewayMigrationSyncOutput} The populated GatewayMigrationSyncOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayMigrationSyncOutput(); - - if (data.hasOwnProperty('migration_name')) { - obj['migration_name'] = _ApiClient["default"].convertToType(data['migration_name'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayMigrationSyncOutput; -}(); -/** - * @member {String} migration_name - */ - - -GatewayMigrationSyncOutput.prototype['migration_name'] = undefined; -var _default = GatewayMigrationSyncOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 90294: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayMigrationUpdateOutput model module. - * @module model/GatewayMigrationUpdateOutput - * @version 3.3.16 - */ -var GatewayMigrationUpdateOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayMigrationUpdateOutput. - * @alias module:model/GatewayMigrationUpdateOutput - */ - function GatewayMigrationUpdateOutput() { - _classCallCheck(this, GatewayMigrationUpdateOutput); - - GatewayMigrationUpdateOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayMigrationUpdateOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayMigrationUpdateOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayMigrationUpdateOutput} obj Optional instance to populate. - * @return {module:model/GatewayMigrationUpdateOutput} The populated GatewayMigrationUpdateOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayMigrationUpdateOutput(); - - if (data.hasOwnProperty('migration_name')) { - obj['migration_name'] = _ApiClient["default"].convertToType(data['migration_name'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayMigrationUpdateOutput; -}(); -/** - * @member {String} migration_name - */ - - -GatewayMigrationUpdateOutput.prototype['migration_name'] = undefined; -var _default = GatewayMigrationUpdateOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 20353: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayRevokeTmpUsers model module. - * @module model/GatewayRevokeTmpUsers - * @version 3.3.16 - */ -var GatewayRevokeTmpUsers = /*#__PURE__*/function () { - /** - * Constructs a new GatewayRevokeTmpUsers. - * gatewayRevokeTmpUsers is a command that revoke producer tmp user - * @alias module:model/GatewayRevokeTmpUsers - * @param name {String} Producer Name - * @param tmpCredsId {String} Tmp Creds ID - */ - function GatewayRevokeTmpUsers(name, tmpCredsId) { - _classCallCheck(this, GatewayRevokeTmpUsers); - - GatewayRevokeTmpUsers.initialize(this, name, tmpCredsId); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayRevokeTmpUsers, null, [{ - key: "initialize", - value: function initialize(obj, name, tmpCredsId) { - obj['name'] = name; - obj['tmp-creds-id'] = tmpCredsId; - } - /** - * Constructs a GatewayRevokeTmpUsers from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayRevokeTmpUsers} obj Optional instance to populate. - * @return {module:model/GatewayRevokeTmpUsers} The populated GatewayRevokeTmpUsers instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayRevokeTmpUsers(); - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('revoke-all')) { - obj['revoke-all'] = _ApiClient["default"].convertToType(data['revoke-all'], 'Boolean'); - } - - if (data.hasOwnProperty('soft-delete')) { - obj['soft-delete'] = _ApiClient["default"].convertToType(data['soft-delete'], 'Boolean'); - } - - if (data.hasOwnProperty('tmp-creds-id')) { - obj['tmp-creds-id'] = _ApiClient["default"].convertToType(data['tmp-creds-id'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayRevokeTmpUsers; -}(); -/** - * Deprecated: has no effect - * @member {String} host - */ - - -GatewayRevokeTmpUsers.prototype['host'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayRevokeTmpUsers.prototype['json'] = false; -/** - * Producer Name - * @member {String} name - */ - -GatewayRevokeTmpUsers.prototype['name'] = undefined; -/** - * Revoke All Temp Creds - * @member {Boolean} revoke-all - */ - -GatewayRevokeTmpUsers.prototype['revoke-all'] = undefined; -/** - * Soft Delete - * @member {Boolean} soft-delete - */ - -GatewayRevokeTmpUsers.prototype['soft-delete'] = undefined; -/** - * Tmp Creds ID - * @member {String} tmp-creds-id - * @default 'demo_default_tmp_creds_id_for_sdk_bc' - */ - -GatewayRevokeTmpUsers.prototype['tmp-creds-id'] = 'demo_default_tmp_creds_id_for_sdk_bc'; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayRevokeTmpUsers.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayRevokeTmpUsers.prototype['uid-token'] = undefined; -var _default = GatewayRevokeTmpUsers; -exports["default"] = _default; - -/***/ }), - -/***/ 81196: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayStartProducer model module. - * @module model/GatewayStartProducer - * @version 3.3.16 - */ -var GatewayStartProducer = /*#__PURE__*/function () { - /** - * Constructs a new GatewayStartProducer. - * gatewayStartProducer is a command that starts producer - * @alias module:model/GatewayStartProducer - * @param name {String} Producer name - */ - function GatewayStartProducer(name) { - _classCallCheck(this, GatewayStartProducer); - - GatewayStartProducer.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayStartProducer, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayStartProducer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayStartProducer} obj Optional instance to populate. - * @return {module:model/GatewayStartProducer} The populated GatewayStartProducer instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayStartProducer(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayStartProducer; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayStartProducer.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayStartProducer.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayStartProducer.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayStartProducer.prototype['uid-token'] = undefined; -var _default = GatewayStartProducer; -exports["default"] = _default; - -/***/ }), - -/***/ 66477: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayStartProducerOutput model module. - * @module model/GatewayStartProducerOutput - * @version 3.3.16 - */ -var GatewayStartProducerOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayStartProducerOutput. - * @alias module:model/GatewayStartProducerOutput - */ - function GatewayStartProducerOutput() { - _classCallCheck(this, GatewayStartProducerOutput); - - GatewayStartProducerOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayStartProducerOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayStartProducerOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayStartProducerOutput} obj Optional instance to populate. - * @return {module:model/GatewayStartProducerOutput} The populated GatewayStartProducerOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayStartProducerOutput(); - - if (data.hasOwnProperty('producer_name')) { - obj['producer_name'] = _ApiClient["default"].convertToType(data['producer_name'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayStartProducerOutput; -}(); -/** - * @member {String} producer_name - */ - - -GatewayStartProducerOutput.prototype['producer_name'] = undefined; -var _default = GatewayStartProducerOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 32708: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayStatusMigration model module. - * @module model/GatewayStatusMigration - * @version 3.3.16 - */ -var GatewayStatusMigration = /*#__PURE__*/function () { - /** - * Constructs a new GatewayStatusMigration. - * gatewayStatusMigration is a command that get migration status - * @alias module:model/GatewayStatusMigration - */ - function GatewayStatusMigration() { - _classCallCheck(this, GatewayStatusMigration); - - GatewayStatusMigration.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayStatusMigration, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayStatusMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayStatusMigration} obj Optional instance to populate. - * @return {module:model/GatewayStatusMigration} The populated GatewayStatusMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayStatusMigration(); - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayStatusMigration; -}(); -/** - * Migration ID - * @member {String} id - */ - - -GatewayStatusMigration.prototype['id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayStatusMigration.prototype['json'] = false; -/** - * Migration name to display - * @member {String} name - */ - -GatewayStatusMigration.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayStatusMigration.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayStatusMigration.prototype['uid-token'] = undefined; -var _default = GatewayStatusMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 55242: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayStopProducer model module. - * @module model/GatewayStopProducer - * @version 3.3.16 - */ -var GatewayStopProducer = /*#__PURE__*/function () { - /** - * Constructs a new GatewayStopProducer. - * gatewayStopProducer is a command that stops producer - * @alias module:model/GatewayStopProducer - * @param name {String} Producer name - */ - function GatewayStopProducer(name) { - _classCallCheck(this, GatewayStopProducer); - - GatewayStopProducer.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayStopProducer, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayStopProducer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayStopProducer} obj Optional instance to populate. - * @return {module:model/GatewayStopProducer} The populated GatewayStopProducer instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayStopProducer(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayStopProducer; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayStopProducer.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayStopProducer.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayStopProducer.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayStopProducer.prototype['uid-token'] = undefined; -var _default = GatewayStopProducer; -exports["default"] = _default; - -/***/ }), - -/***/ 74239: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayStopProducerOutput model module. - * @module model/GatewayStopProducerOutput - * @version 3.3.16 - */ -var GatewayStopProducerOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayStopProducerOutput. - * @alias module:model/GatewayStopProducerOutput - */ - function GatewayStopProducerOutput() { - _classCallCheck(this, GatewayStopProducerOutput); - - GatewayStopProducerOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayStopProducerOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayStopProducerOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayStopProducerOutput} obj Optional instance to populate. - * @return {module:model/GatewayStopProducerOutput} The populated GatewayStopProducerOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayStopProducerOutput(); - - if (data.hasOwnProperty('producer_name')) { - obj['producer_name'] = _ApiClient["default"].convertToType(data['producer_name'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayStopProducerOutput; -}(); -/** - * @member {String} producer_name - */ - - -GatewayStopProducerOutput.prototype['producer_name'] = undefined; -var _default = GatewayStopProducerOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 93147: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewaySyncMigration model module. - * @module model/GatewaySyncMigration - * @version 3.3.16 - */ -var GatewaySyncMigration = /*#__PURE__*/function () { - /** - * Constructs a new GatewaySyncMigration. - * gatewaySyncMigration is a command that sync migration - * @alias module:model/GatewaySyncMigration - * @param name {String} Migration name - */ - function GatewaySyncMigration(name) { - _classCallCheck(this, GatewaySyncMigration); - - GatewaySyncMigration.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewaySyncMigration, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewaySyncMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewaySyncMigration} obj Optional instance to populate. - * @return {module:model/GatewaySyncMigration} The populated GatewaySyncMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewaySyncMigration(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('start-sync')) { - obj['start-sync'] = _ApiClient["default"].convertToType(data['start-sync'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewaySyncMigration; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewaySyncMigration.prototype['json'] = false; -/** - * Migration name - * @member {String} name - */ - -GatewaySyncMigration.prototype['name'] = undefined; -/** - * true, for starting synchronization, false for stopping - * @member {Boolean} start-sync - */ - -GatewaySyncMigration.prototype['start-sync'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewaySyncMigration.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewaySyncMigration.prototype['uid-token'] = undefined; -var _default = GatewaySyncMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 60395: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateAllowedAccess model module. - * @module model/GatewayUpdateAllowedAccess - * @version 3.3.16 - */ -var GatewayUpdateAllowedAccess = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateAllowedAccess. - * gatewayUpdateAllowedAccess is a command that update allowed access in Gator - * @alias module:model/GatewayUpdateAllowedAccess - * @param accessId {String} Access ID The access id to be attached to this allowed access. Auth method with this access id should already exist. - * @param name {String} Allowed access name - */ - function GatewayUpdateAllowedAccess(accessId, name) { - _classCallCheck(this, GatewayUpdateAllowedAccess); - - GatewayUpdateAllowedAccess.initialize(this, accessId, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateAllowedAccess, null, [{ - key: "initialize", - value: function initialize(obj, accessId, name) { - obj['access-id'] = accessId; - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateAllowedAccess from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateAllowedAccess} obj Optional instance to populate. - * @return {module:model/GatewayUpdateAllowedAccess} The populated GatewayUpdateAllowedAccess instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateAllowedAccess(); - - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('permissions')) { - obj['permissions'] = _ApiClient["default"].convertToType(data['permissions'], 'String'); - } - - if (data.hasOwnProperty('sub-claims')) { - obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateAllowedAccess; -}(); -/** - * Access ID The access id to be attached to this allowed access. Auth method with this access id should already exist. - * @member {String} access-id - */ - - -GatewayUpdateAllowedAccess.prototype['access-id'] = undefined; -/** - * Allowed access description - * @member {String} description - */ - -GatewayUpdateAllowedAccess.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateAllowedAccess.prototype['json'] = false; -/** - * Allowed access name - * @member {String} name - */ - -GatewayUpdateAllowedAccess.prototype['name'] = undefined; -/** - * New allowed access name - * @member {String} new-name - */ - -GatewayUpdateAllowedAccess.prototype['new-name'] = undefined; -/** - * Permissions Comma-seperated list of permissions for this allowed access. Available permissions: [defaults,targets,classic_keys,automatic_migration,ldap_auth,dynamic_secret,k8s_auth,log_forwarding,zero_knowledge_encryption,rotated_secret,caching,event_forwarding,admin,kmip,general] - * @member {String} permissions - */ - -GatewayUpdateAllowedAccess.prototype['permissions'] = undefined; -/** - * Sub claims key/val of sub claims, e.g group=admins,developers - * @member {Object.} sub-claims - */ - -GatewayUpdateAllowedAccess.prototype['sub-claims'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateAllowedAccess.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateAllowedAccess.prototype['uid-token'] = undefined; -var _default = GatewayUpdateAllowedAccess; -exports["default"] = _default; - -/***/ }), - -/***/ 88678: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateItem model module. - * @module model/GatewayUpdateItem - * @version 3.3.16 - */ -var GatewayUpdateItem = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateItem. - * gatewayUpdateItem is a command that updates classic key - * @alias module:model/GatewayUpdateItem - * @param name {String} Item name - * @param type {String} Item type - */ - function GatewayUpdateItem(name, type) { - _classCallCheck(this, GatewayUpdateItem); - - GatewayUpdateItem.initialize(this, name, type); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateItem, null, [{ - key: "initialize", - value: function initialize(obj, name, type) { - obj['name'] = name; - obj['type'] = type; - } - /** - * Constructs a GatewayUpdateItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateItem} obj Optional instance to populate. - * @return {module:model/GatewayUpdateItem} The populated GatewayUpdateItem instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateItem(); - - if (data.hasOwnProperty('add-tag')) { - obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); - } - - if (data.hasOwnProperty('api-id')) { - obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); - } - - if (data.hasOwnProperty('api-key')) { - obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); - } - - if (data.hasOwnProperty('auto-rotate')) { - obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); - } - - if (data.hasOwnProperty('custom-payload')) { - obj['custom-payload'] = _ApiClient["default"].convertToType(data['custom-payload'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-metadata')) { - obj['new-metadata'] = _ApiClient["default"].convertToType(data['new-metadata'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('new-version')) { - obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); - } - - if (data.hasOwnProperty('rm-tag')) { - obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); - } - - if (data.hasOwnProperty('rotated-password')) { - obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); - } - - if (data.hasOwnProperty('rotated-username')) { - obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); - } - - if (data.hasOwnProperty('rotation-hour')) { - obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); - } - - if (data.hasOwnProperty('rotation-interval')) { - obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); - } - - if (data.hasOwnProperty('rotator-creds-type')) { - obj['rotator-creds-type'] = _ApiClient["default"].convertToType(data['rotator-creds-type'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateItem; -}(); -/** - * List of the new tags that will be attached to this item - * @member {Array.} add-tag - */ - - -GatewayUpdateItem.prototype['add-tag'] = undefined; -/** - * API ID to rotate (relevant only for rotator-type=api-key) - * @member {String} api-id - */ - -GatewayUpdateItem.prototype['api-id'] = undefined; -/** - * API key to rotate (relevant only for rotator-type=api-key) - * @member {String} api-key - */ - -GatewayUpdateItem.prototype['api-key'] = undefined; -/** - * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] - * @member {String} auto-rotate - */ - -GatewayUpdateItem.prototype['auto-rotate'] = undefined; -/** - * Secret payload to be sent with rotation request (relevant only for rotator-type=custom) - * @member {String} custom-payload - */ - -GatewayUpdateItem.prototype['custom-payload'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateItem.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - * @default 'default_metadata' - */ - -GatewayUpdateItem.prototype['description'] = 'default_metadata'; -/** - * Base64-encoded service account private key text - * @member {String} gcp-key - */ - -GatewayUpdateItem.prototype['gcp-key'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateItem.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. (relevant only for --type=rotated-secret). If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -GatewayUpdateItem.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -GatewayUpdateItem.prototype['key'] = undefined; -/** - * Item name - * @member {String} name - */ - -GatewayUpdateItem.prototype['name'] = undefined; -/** - * Deprecated - use description - * @member {String} new-metadata - * @default 'default_metadata' - */ - -GatewayUpdateItem.prototype['new-metadata'] = 'default_metadata'; -/** - * New item name - * @member {String} new-name - */ - -GatewayUpdateItem.prototype['new-name'] = undefined; -/** - * Deprecated - * @member {Boolean} new-version - */ - -GatewayUpdateItem.prototype['new-version'] = undefined; -/** - * List of the existent tags that will be removed from this item - * @member {Array.} rm-tag - */ - -GatewayUpdateItem.prototype['rm-tag'] = undefined; -/** - * rotated-username password (relevant only for rotator-type=password) - * @member {String} rotated-password - */ - -GatewayUpdateItem.prototype['rotated-password'] = undefined; -/** - * username to be rotated, if selected \\\"use-self-creds\\\" at rotator-creds-type, this username will try to rotate it's own password, if \\\"use-target-creds\\\" is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) - * @member {String} rotated-username - */ - -GatewayUpdateItem.prototype['rotated-username'] = undefined; -/** - * The Rotation Hour - * @member {Number} rotation-hour - * @default 0 - */ - -GatewayUpdateItem.prototype['rotation-hour'] = 0; -/** - * The number of days to wait between every automatic key rotation (1-365) - * @member {String} rotation-interval - */ - -GatewayUpdateItem.prototype['rotation-interval'] = undefined; -/** - * The rotation credentials type - * @member {String} rotator-creds-type - * @default 'use-self-creds' - */ - -GatewayUpdateItem.prototype['rotator-creds-type'] = 'use-self-creds'; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateItem.prototype['token'] = undefined; -/** - * Item type - * @member {String} type - */ - -GatewayUpdateItem.prototype['type'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateItem.prototype['uid-token'] = undefined; -var _default = GatewayUpdateItem; -exports["default"] = _default; - -/***/ }), - -/***/ 11235: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateItemOutput model module. - * @module model/GatewayUpdateItemOutput - * @version 3.3.16 - */ -var GatewayUpdateItemOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateItemOutput. - * @alias module:model/GatewayUpdateItemOutput - */ - function GatewayUpdateItemOutput() { - _classCallCheck(this, GatewayUpdateItemOutput); - - GatewayUpdateItemOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateItemOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateItemOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateItemOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateItemOutput} The populated GatewayUpdateItemOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateItemOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateItemOutput; -}(); -/** - * @member {String} name - */ - - -GatewayUpdateItemOutput.prototype['name'] = undefined; -var _default = GatewayUpdateItemOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 88681: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateK8SAuthConfig model module. - * @module model/GatewayUpdateK8SAuthConfig - * @version 3.3.16 - */ -var GatewayUpdateK8SAuthConfig = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateK8SAuthConfig. - * gatewayUpdateK8SAuth is a command that updates k8s auth config - * @alias module:model/GatewayUpdateK8SAuthConfig - * @param accessId {String} The access ID of the Kubernetes auth method - * @param k8sHost {String} The URL of the kubernetes API server - * @param name {String} K8S Auth config name - * @param newName {String} K8S Auth config new name - * @param signingKey {String} The private key (base64 encoded) associated with the public key defined in the Kubernetes auth - */ - function GatewayUpdateK8SAuthConfig(accessId, k8sHost, name, newName, signingKey) { - _classCallCheck(this, GatewayUpdateK8SAuthConfig); - - GatewayUpdateK8SAuthConfig.initialize(this, accessId, k8sHost, name, newName, signingKey); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateK8SAuthConfig, null, [{ - key: "initialize", - value: function initialize(obj, accessId, k8sHost, name, newName, signingKey) { - obj['access-id'] = accessId; - obj['k8s-host'] = k8sHost; - obj['name'] = name; - obj['new-name'] = newName; - obj['signing-key'] = signingKey; - } - /** - * Constructs a GatewayUpdateK8SAuthConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateK8SAuthConfig} obj Optional instance to populate. - * @return {module:model/GatewayUpdateK8SAuthConfig} The populated GatewayUpdateK8SAuthConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateK8SAuthConfig(); - - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); - } - - if (data.hasOwnProperty('cluster-api-type')) { - obj['cluster-api-type'] = _ApiClient["default"].convertToType(data['cluster-api-type'], 'String'); - } - - if (data.hasOwnProperty('config-encryption-key-name')) { - obj['config-encryption-key-name'] = _ApiClient["default"].convertToType(data['config-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('disable-issuer-validation')) { - obj['disable-issuer-validation'] = _ApiClient["default"].convertToType(data['disable-issuer-validation'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s-ca-cert')) { - obj['k8s-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('k8s-host')) { - obj['k8s-host'] = _ApiClient["default"].convertToType(data['k8s-host'], 'String'); - } - - if (data.hasOwnProperty('k8s-issuer')) { - obj['k8s-issuer'] = _ApiClient["default"].convertToType(data['k8s-issuer'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('rancher-api-key')) { - obj['rancher-api-key'] = _ApiClient["default"].convertToType(data['rancher-api-key'], 'String'); - } - - if (data.hasOwnProperty('rancher-cluster-id')) { - obj['rancher-cluster-id'] = _ApiClient["default"].convertToType(data['rancher-cluster-id'], 'String'); - } - - if (data.hasOwnProperty('signing-key')) { - obj['signing-key'] = _ApiClient["default"].convertToType(data['signing-key'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('token-exp')) { - obj['token-exp'] = _ApiClient["default"].convertToType(data['token-exp'], 'Number'); - } - - if (data.hasOwnProperty('token-reviewer-jwt')) { - obj['token-reviewer-jwt'] = _ApiClient["default"].convertToType(data['token-reviewer-jwt'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('use-gw-service-account')) { - obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); - } - } - - return obj; - } - }]); - - return GatewayUpdateK8SAuthConfig; -}(); -/** - * The access ID of the Kubernetes auth method - * @member {String} access-id - */ - - -GatewayUpdateK8SAuthConfig.prototype['access-id'] = undefined; -/** - * Cluster access type. options: [native_k8s, rancher] - * @member {String} cluster-api-type - * @default 'native_k8s' - */ - -GatewayUpdateK8SAuthConfig.prototype['cluster-api-type'] = 'native_k8s'; -/** - * Config encryption key - * @member {String} config-encryption-key-name - */ - -GatewayUpdateK8SAuthConfig.prototype['config-encryption-key-name'] = undefined; -/** - * Disable issuer validation [true/false] - * @member {String} disable-issuer-validation - */ - -GatewayUpdateK8SAuthConfig.prototype['disable-issuer-validation'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateK8SAuthConfig.prototype['json'] = false; -/** - * The CA Certificate (base64 encoded) to use to call into the kubernetes API server - * @member {String} k8s-ca-cert - */ - -GatewayUpdateK8SAuthConfig.prototype['k8s-ca-cert'] = undefined; -/** - * The URL of the kubernetes API server - * @member {String} k8s-host - */ - -GatewayUpdateK8SAuthConfig.prototype['k8s-host'] = undefined; -/** - * The Kubernetes JWT issuer name. K8SIssuer is the claim that specifies who issued the Kubernetes token - * @member {String} k8s-issuer - * @default 'kubernetes/serviceaccount' - */ - -GatewayUpdateK8SAuthConfig.prototype['k8s-issuer'] = 'kubernetes/serviceaccount'; -/** - * K8S Auth config name - * @member {String} name - */ - -GatewayUpdateK8SAuthConfig.prototype['name'] = undefined; -/** - * K8S Auth config new name - * @member {String} new-name - */ - -GatewayUpdateK8SAuthConfig.prototype['new-name'] = undefined; -/** - * The api key used to access the TokenReview API to validate other JWTs (relevant for \"rancher\" only) - * @member {String} rancher-api-key - */ - -GatewayUpdateK8SAuthConfig.prototype['rancher-api-key'] = undefined; -/** - * The cluster id as define in rancher (relevant for \"rancher\" only) - * @member {String} rancher-cluster-id - */ - -GatewayUpdateK8SAuthConfig.prototype['rancher-cluster-id'] = undefined; -/** - * The private key (base64 encoded) associated with the public key defined in the Kubernetes auth - * @member {String} signing-key - */ - -GatewayUpdateK8SAuthConfig.prototype['signing-key'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateK8SAuthConfig.prototype['token'] = undefined; -/** - * Time in seconds of expiration of the Akeyless Kube Auth Method token - * @member {Number} token-exp - * @default 300 - */ - -GatewayUpdateK8SAuthConfig.prototype['token-exp'] = 300; -/** - * A Kubernetes service account JWT used to access the TokenReview API to validate other JWTs (relevant for \"native_k8s\" only). If not set, the JWT submitted in the authentication process will be used to access the Kubernetes TokenReview API. - * @member {String} token-reviewer-jwt - */ - -GatewayUpdateK8SAuthConfig.prototype['token-reviewer-jwt'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateK8SAuthConfig.prototype['uid-token'] = undefined; -/** - * Use the GW's service account - * @member {Boolean} use-gw-service-account - */ - -GatewayUpdateK8SAuthConfig.prototype['use-gw-service-account'] = undefined; -var _default = GatewayUpdateK8SAuthConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 74380: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _ConfigChange = _interopRequireDefault(__nccwpck_require__(47166)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateK8SAuthConfigOutput model module. - * @module model/GatewayUpdateK8SAuthConfigOutput - * @version 3.3.16 - */ -var GatewayUpdateK8SAuthConfigOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateK8SAuthConfigOutput. - * @alias module:model/GatewayUpdateK8SAuthConfigOutput - */ - function GatewayUpdateK8SAuthConfigOutput() { - _classCallCheck(this, GatewayUpdateK8SAuthConfigOutput); - - GatewayUpdateK8SAuthConfigOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateK8SAuthConfigOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateK8SAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateK8SAuthConfigOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateK8SAuthConfigOutput} The populated GatewayUpdateK8SAuthConfigOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateK8SAuthConfigOutput(); - - if (data.hasOwnProperty('cluster_id')) { - obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'String'); - } - - if (data.hasOwnProperty('parts_change')) { - obj['parts_change'] = _ConfigChange["default"].constructFromObject(data['parts_change']); - } - - if (data.hasOwnProperty('total_hash')) { - obj['total_hash'] = _ApiClient["default"].convertToType(data['total_hash'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateK8SAuthConfigOutput; -}(); -/** - * @member {String} cluster_id - */ - - -GatewayUpdateK8SAuthConfigOutput.prototype['cluster_id'] = undefined; -/** - * @member {module:model/ConfigChange} parts_change - */ - -GatewayUpdateK8SAuthConfigOutput.prototype['parts_change'] = undefined; -/** - * @member {String} total_hash - */ - -GatewayUpdateK8SAuthConfigOutput.prototype['total_hash'] = undefined; -var _default = GatewayUpdateK8SAuthConfigOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 36544: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateLdapAuthConfig model module. - * @module model/GatewayUpdateLdapAuthConfig - * @version 3.3.16 - */ -var GatewayUpdateLdapAuthConfig = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateLdapAuthConfig. - * gatewayUpdateLdapAuth is a command that updates ldap auth config - * @alias module:model/GatewayUpdateLdapAuthConfig - */ - function GatewayUpdateLdapAuthConfig() { - _classCallCheck(this, GatewayUpdateLdapAuthConfig); - - GatewayUpdateLdapAuthConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateLdapAuthConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateLdapAuthConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateLdapAuthConfig} obj Optional instance to populate. - * @return {module:model/GatewayUpdateLdapAuthConfig} The populated GatewayUpdateLdapAuthConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateLdapAuthConfig(); - - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); - } - - if (data.hasOwnProperty('bind-dn')) { - obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); - } - - if (data.hasOwnProperty('bind-dn-password')) { - obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); - } - - if (data.hasOwnProperty('group-attr')) { - obj['group-attr'] = _ApiClient["default"].convertToType(data['group-attr'], 'String'); - } - - if (data.hasOwnProperty('group-dn')) { - obj['group-dn'] = _ApiClient["default"].convertToType(data['group-dn'], 'String'); - } - - if (data.hasOwnProperty('group-filter')) { - obj['group-filter'] = _ApiClient["default"].convertToType(data['group-filter'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('ldap-ca-cert')) { - obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('ldap-enable')) { - obj['ldap-enable'] = _ApiClient["default"].convertToType(data['ldap-enable'], 'String'); - } - - if (data.hasOwnProperty('ldap-url')) { - obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); - } - - if (data.hasOwnProperty('ldap_anonymous_search')) { - obj['ldap_anonymous_search'] = _ApiClient["default"].convertToType(data['ldap_anonymous_search'], 'Boolean'); - } - - if (data.hasOwnProperty('signing-key-data')) { - obj['signing-key-data'] = _ApiClient["default"].convertToType(data['signing-key-data'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-attribute')) { - obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); - } - - if (data.hasOwnProperty('user-dn')) { - obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateLdapAuthConfig; -}(); -/** - * The access ID of the Ldap auth method - * @member {String} access-id - */ - - -GatewayUpdateLdapAuthConfig.prototype['access-id'] = undefined; -/** - * Bind DN - * @member {String} bind-dn - */ - -GatewayUpdateLdapAuthConfig.prototype['bind-dn'] = undefined; -/** - * Bind DN Password - * @member {String} bind-dn-password - */ - -GatewayUpdateLdapAuthConfig.prototype['bind-dn-password'] = undefined; -/** - * Group Attr - * @member {String} group-attr - */ - -GatewayUpdateLdapAuthConfig.prototype['group-attr'] = undefined; -/** - * Group Dn - * @member {String} group-dn - */ - -GatewayUpdateLdapAuthConfig.prototype['group-dn'] = undefined; -/** - * Group Filter - * @member {String} group-filter - */ - -GatewayUpdateLdapAuthConfig.prototype['group-filter'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateLdapAuthConfig.prototype['json'] = false; -/** - * LDAP CA Certificate (base64 encoded) - * @member {String} ldap-ca-cert - */ - -GatewayUpdateLdapAuthConfig.prototype['ldap-ca-cert'] = undefined; -/** - * Enable Ldap [true/false] - * @member {String} ldap-enable - */ - -GatewayUpdateLdapAuthConfig.prototype['ldap-enable'] = undefined; -/** - * LDAP Server URL, e.g. ldap://planetexpress.com:389 - * @member {String} ldap-url - */ - -GatewayUpdateLdapAuthConfig.prototype['ldap-url'] = undefined; -/** - * Ldap Anonymous Search - * @member {Boolean} ldap_anonymous_search - */ - -GatewayUpdateLdapAuthConfig.prototype['ldap_anonymous_search'] = undefined; -/** - * The private key (base64 encoded), associated with the public key defined in the Ldap auth - * @member {String} signing-key-data - */ - -GatewayUpdateLdapAuthConfig.prototype['signing-key-data'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateLdapAuthConfig.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateLdapAuthConfig.prototype['uid-token'] = undefined; -/** - * User Attribute - * @member {String} user-attribute - */ - -GatewayUpdateLdapAuthConfig.prototype['user-attribute'] = undefined; -/** - * User DN - * @member {String} user-dn - */ - -GatewayUpdateLdapAuthConfig.prototype['user-dn'] = undefined; -var _default = GatewayUpdateLdapAuthConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 20489: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateLdapAuthConfigOutput model module. - * @module model/GatewayUpdateLdapAuthConfigOutput - * @version 3.3.16 - */ -var GatewayUpdateLdapAuthConfigOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateLdapAuthConfigOutput. - * @alias module:model/GatewayUpdateLdapAuthConfigOutput - */ - function GatewayUpdateLdapAuthConfigOutput() { - _classCallCheck(this, GatewayUpdateLdapAuthConfigOutput); - - GatewayUpdateLdapAuthConfigOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateLdapAuthConfigOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateLdapAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateLdapAuthConfigOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateLdapAuthConfigOutput} The populated GatewayUpdateLdapAuthConfigOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateLdapAuthConfigOutput(); - - if (data.hasOwnProperty('updated')) { - obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); - } - } - - return obj; - } - }]); - - return GatewayUpdateLdapAuthConfigOutput; -}(); -/** - * @member {Boolean} updated - */ - - -GatewayUpdateLdapAuthConfigOutput.prototype['updated'] = undefined; -var _default = GatewayUpdateLdapAuthConfigOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 22313: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateMigration model module. - * @module model/GatewayUpdateMigration - * @version 3.3.16 - */ -var GatewayUpdateMigration = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateMigration. - * gatewayUpdateMigration is a command that update migration - * @alias module:model/GatewayUpdateMigration - * @param siTargetName {String} SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration) - * @param siUsersPathTemplate {String} Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration) - * @param targetLocation {String} Target location in Akeyless for imported secrets - */ - function GatewayUpdateMigration(siTargetName, siUsersPathTemplate, targetLocation) { - _classCallCheck(this, GatewayUpdateMigration); - - GatewayUpdateMigration.initialize(this, siTargetName, siUsersPathTemplate, targetLocation); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateMigration, null, [{ - key: "initialize", - value: function initialize(obj, siTargetName, siUsersPathTemplate, targetLocation) { - obj['si-target-name'] = siTargetName; - obj['si-users-path-template'] = siUsersPathTemplate; - obj['target-location'] = targetLocation; - } - /** - * Constructs a GatewayUpdateMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateMigration} obj Optional instance to populate. - * @return {module:model/GatewayUpdateMigration} The populated GatewayUpdateMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateMigration(); - - if (data.hasOwnProperty('1password-email')) { - obj['1password-email'] = _ApiClient["default"].convertToType(data['1password-email'], 'String'); - } - - if (data.hasOwnProperty('1password-password')) { - obj['1password-password'] = _ApiClient["default"].convertToType(data['1password-password'], 'String'); - } - - if (data.hasOwnProperty('1password-secret-key')) { - obj['1password-secret-key'] = _ApiClient["default"].convertToType(data['1password-secret-key'], 'String'); - } - - if (data.hasOwnProperty('1password-url')) { - obj['1password-url'] = _ApiClient["default"].convertToType(data['1password-url'], 'String'); - } - - if (data.hasOwnProperty('1password-vaults')) { - obj['1password-vaults'] = _ApiClient["default"].convertToType(data['1password-vaults'], ['String']); - } - - if (data.hasOwnProperty('ad-ssh-port')) { - obj['ad-ssh-port'] = _ApiClient["default"].convertToType(data['ad-ssh-port'], 'String'); - } - - if (data.hasOwnProperty('ad-targets-type')) { - obj['ad-targets-type'] = _ApiClient["default"].convertToType(data['ad-targets-type'], 'String'); - } - - if (data.hasOwnProperty('ad-winrm-over-http')) { - obj['ad-winrm-over-http'] = _ApiClient["default"].convertToType(data['ad-winrm-over-http'], 'String'); - } - - if (data.hasOwnProperty('ad-winrm-port')) { - obj['ad-winrm-port'] = _ApiClient["default"].convertToType(data['ad-winrm-port'], 'String'); - } - - if (data.hasOwnProperty('ad_auto_rotate')) { - obj['ad_auto_rotate'] = _ApiClient["default"].convertToType(data['ad_auto_rotate'], 'String'); - } - - if (data.hasOwnProperty('ad_computer_base_dn')) { - obj['ad_computer_base_dn'] = _ApiClient["default"].convertToType(data['ad_computer_base_dn'], 'String'); - } - - if (data.hasOwnProperty('ad_discover_local_users')) { - obj['ad_discover_local_users'] = _ApiClient["default"].convertToType(data['ad_discover_local_users'], 'String'); - } - - if (data.hasOwnProperty('ad_domain_name')) { - obj['ad_domain_name'] = _ApiClient["default"].convertToType(data['ad_domain_name'], 'String'); - } - - if (data.hasOwnProperty('ad_domain_users_path_template')) { - obj['ad_domain_users_path_template'] = _ApiClient["default"].convertToType(data['ad_domain_users_path_template'], 'String'); - } - - if (data.hasOwnProperty('ad_local_users_ignore')) { - obj['ad_local_users_ignore'] = _ApiClient["default"].convertToType(data['ad_local_users_ignore'], 'String'); - } - - if (data.hasOwnProperty('ad_local_users_path_template')) { - obj['ad_local_users_path_template'] = _ApiClient["default"].convertToType(data['ad_local_users_path_template'], 'String'); - } - - if (data.hasOwnProperty('ad_rotation_hour')) { - obj['ad_rotation_hour'] = _ApiClient["default"].convertToType(data['ad_rotation_hour'], 'Number'); - } - - if (data.hasOwnProperty('ad_rotation_interval')) { - obj['ad_rotation_interval'] = _ApiClient["default"].convertToType(data['ad_rotation_interval'], 'Number'); - } - - if (data.hasOwnProperty('ad_sra_enable_rdp')) { - obj['ad_sra_enable_rdp'] = _ApiClient["default"].convertToType(data['ad_sra_enable_rdp'], 'String'); - } - - if (data.hasOwnProperty('ad_target_name')) { - obj['ad_target_name'] = _ApiClient["default"].convertToType(data['ad_target_name'], 'String'); - } - - if (data.hasOwnProperty('ad_targets_path_template')) { - obj['ad_targets_path_template'] = _ApiClient["default"].convertToType(data['ad_targets_path_template'], 'String'); - } - - if (data.hasOwnProperty('ad_user_base_dn')) { - obj['ad_user_base_dn'] = _ApiClient["default"].convertToType(data['ad_user_base_dn'], 'String'); - } - - if (data.hasOwnProperty('ad_user_groups')) { - obj['ad_user_groups'] = _ApiClient["default"].convertToType(data['ad_user_groups'], 'String'); - } - - if (data.hasOwnProperty('aws-key')) { - obj['aws-key'] = _ApiClient["default"].convertToType(data['aws-key'], 'String'); - } - - if (data.hasOwnProperty('aws-key-id')) { - obj['aws-key-id'] = _ApiClient["default"].convertToType(data['aws-key-id'], 'String'); - } - - if (data.hasOwnProperty('aws-region')) { - obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); - } - - if (data.hasOwnProperty('azure-client-id')) { - obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); - } - - if (data.hasOwnProperty('azure-kv-name')) { - obj['azure-kv-name'] = _ApiClient["default"].convertToType(data['azure-kv-name'], 'String'); - } - - if (data.hasOwnProperty('azure-secret')) { - obj['azure-secret'] = _ApiClient["default"].convertToType(data['azure-secret'], 'String'); - } - - if (data.hasOwnProperty('azure-tenant-id')) { - obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); - } - - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); - } - - if (data.hasOwnProperty('hashi-json')) { - obj['hashi-json'] = _ApiClient["default"].convertToType(data['hashi-json'], 'String'); - } - - if (data.hasOwnProperty('hashi-ns')) { - obj['hashi-ns'] = _ApiClient["default"].convertToType(data['hashi-ns'], ['String']); - } - - if (data.hasOwnProperty('hashi-token')) { - obj['hashi-token'] = _ApiClient["default"].convertToType(data['hashi-token'], 'String'); - } - - if (data.hasOwnProperty('hashi-url')) { - obj['hashi-url'] = _ApiClient["default"].convertToType(data['hashi-url'], 'String'); - } - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s-ca-certificate')) { - obj['k8s-ca-certificate'] = _ApiClient["default"].convertToType(data['k8s-ca-certificate'], ['Number']); - } - - if (data.hasOwnProperty('k8s-client-certificate')) { - obj['k8s-client-certificate'] = _ApiClient["default"].convertToType(data['k8s-client-certificate'], ['Number']); - } - - if (data.hasOwnProperty('k8s-client-key')) { - obj['k8s-client-key'] = _ApiClient["default"].convertToType(data['k8s-client-key'], ['Number']); - } - - if (data.hasOwnProperty('k8s-namespace')) { - obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); - } - - if (data.hasOwnProperty('k8s-password')) { - obj['k8s-password'] = _ApiClient["default"].convertToType(data['k8s-password'], 'String'); - } - - if (data.hasOwnProperty('k8s-skip-system')) { - obj['k8s-skip-system'] = _ApiClient["default"].convertToType(data['k8s-skip-system'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s-token')) { - obj['k8s-token'] = _ApiClient["default"].convertToType(data['k8s-token'], 'String'); - } - - if (data.hasOwnProperty('k8s-url')) { - obj['k8s-url'] = _ApiClient["default"].convertToType(data['k8s-url'], 'String'); - } - - if (data.hasOwnProperty('k8s-username')) { - obj['k8s-username'] = _ApiClient["default"].convertToType(data['k8s-username'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new_name')) { - obj['new_name'] = _ApiClient["default"].convertToType(data['new_name'], 'String'); - } - - if (data.hasOwnProperty('protection-key')) { - obj['protection-key'] = _ApiClient["default"].convertToType(data['protection-key'], 'String'); - } - - if (data.hasOwnProperty('si-auto-rotate')) { - obj['si-auto-rotate'] = _ApiClient["default"].convertToType(data['si-auto-rotate'], 'String'); - } - - if (data.hasOwnProperty('si-rotation-hour')) { - obj['si-rotation-hour'] = _ApiClient["default"].convertToType(data['si-rotation-hour'], 'Number'); - } - - if (data.hasOwnProperty('si-rotation-interval')) { - obj['si-rotation-interval'] = _ApiClient["default"].convertToType(data['si-rotation-interval'], 'Number'); - } - - if (data.hasOwnProperty('si-sra-enable-rdp')) { - obj['si-sra-enable-rdp'] = _ApiClient["default"].convertToType(data['si-sra-enable-rdp'], 'String'); - } - - if (data.hasOwnProperty('si-target-name')) { - obj['si-target-name'] = _ApiClient["default"].convertToType(data['si-target-name'], 'String'); - } - - if (data.hasOwnProperty('si-users-ignore')) { - obj['si-users-ignore'] = _ApiClient["default"].convertToType(data['si-users-ignore'], 'String'); - } - - if (data.hasOwnProperty('si-users-path-template')) { - obj['si-users-path-template'] = _ApiClient["default"].convertToType(data['si-users-path-template'], 'String'); - } - - if (data.hasOwnProperty('target-location')) { - obj['target-location'] = _ApiClient["default"].convertToType(data['target-location'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateMigration; -}(); -/** - * 1Password user email to connect to the API - * @member {String} 1password-email - */ - - -GatewayUpdateMigration.prototype['1password-email'] = undefined; -/** - * 1Password user password to connect to the API - * @member {String} 1password-password - */ - -GatewayUpdateMigration.prototype['1password-password'] = undefined; -/** - * 1Password user secret key to connect to the API - * @member {String} 1password-secret-key - */ - -GatewayUpdateMigration.prototype['1password-secret-key'] = undefined; -/** - * 1Password api container url - * @member {String} 1password-url - */ - -GatewayUpdateMigration.prototype['1password-url'] = undefined; -/** - * 1Password list of vault to get the items from - * @member {Array.} 1password-vaults - */ - -GatewayUpdateMigration.prototype['1password-vaults'] = undefined; -/** - * Set the SSH Port for further connection to the domain servers. Default is port 22 (Relevant only for Active Directory migration) - * @member {String} ad-ssh-port - * @default '22' - */ - -GatewayUpdateMigration.prototype['ad-ssh-port'] = '22'; -/** - * Set the target type of the domain servers [ssh/windows](Relevant only for Active Directory migration) - * @member {String} ad-targets-type - * @default 'windows' - */ - -GatewayUpdateMigration.prototype['ad-targets-type'] = 'windows'; -/** - * Use WinRM over HTTP, by default runs over HTTPS - * @member {String} ad-winrm-over-http - * @default 'false' - */ - -GatewayUpdateMigration.prototype['ad-winrm-over-http'] = 'false'; -/** - * Set the WinRM Port for further connection to the domain servers. Default is 5986 (Relevant only for Active Directory migration) - * @member {String} ad-winrm-port - * @default '5986' - */ - -GatewayUpdateMigration.prototype['ad-winrm-port'] = '5986'; -/** - * Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --ad-rotation-interval and --ad-rotation-hour parameters (Relevant only for Active Directory migration) - * @member {String} ad_auto_rotate - */ - -GatewayUpdateMigration.prototype['ad_auto_rotate'] = undefined; -/** - * Distinguished Name of Computer objects (servers) to search in Active Directory e.g.: CN=Computers,DC=example,DC=com (Relevant only for Active Directory migration) - * @member {String} ad_computer_base_dn - */ - -GatewayUpdateMigration.prototype['ad_computer_base_dn'] = undefined; -/** - * Enable/Disable discovery of local users from each domain server and migrate them as SSH/Windows Rotated Secrets. Default is false: only domain users will be migrated. Discovery of local users might require further installation of SSH on the servers, based on the supplied computer base DN. This will be implemented automatically as part of the migration process (Relevant only for Active Directory migration) - * @member {String} ad_discover_local_users - */ - -GatewayUpdateMigration.prototype['ad_discover_local_users'] = undefined; -/** - * Active Directory Domain Name (Relevant only for Active Directory migration) - * @member {String} ad_domain_name - */ - -GatewayUpdateMigration.prototype['ad_domain_name'] = undefined; -/** - * Path location template for migrating domain users as Rotated Secrets e.g.: .../DomainUsers/{{USERNAME}} (Relevant only for Active Directory migration) - * @member {String} ad_domain_users_path_template - */ - -GatewayUpdateMigration.prototype['ad_domain_users_path_template'] = undefined; -/** - * Comma-separated list of Local Users which should not be migrated (Relevant only for Active Directory migration) - * @member {String} ad_local_users_ignore - */ - -GatewayUpdateMigration.prototype['ad_local_users_ignore'] = undefined; -/** - * Path location template for migrating domain users as Rotated Secrets e.g.: .../LocalUsers/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Active Directory migration) - * @member {String} ad_local_users_path_template - */ - -GatewayUpdateMigration.prototype['ad_local_users_path_template'] = undefined; -/** - * The hour of the scheduled rotation in UTC (Relevant only for Active Directory migration) - * @member {Number} ad_rotation_hour - */ - -GatewayUpdateMigration.prototype['ad_rotation_hour'] = undefined; -/** - * The number of days to wait between every automatic rotation [1-365] (Relevant only for Active Directory migration) - * @member {Number} ad_rotation_interval - */ - -GatewayUpdateMigration.prototype['ad_rotation_interval'] = undefined; -/** - * Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Active Directory migration) - * @member {String} ad_sra_enable_rdp - */ - -GatewayUpdateMigration.prototype['ad_sra_enable_rdp'] = undefined; -/** - * Active Directory LDAP Target Name. Server type should be Active Directory (Relevant only for Active Directory migration) - * @member {String} ad_target_name - */ - -GatewayUpdateMigration.prototype['ad_target_name'] = undefined; -/** - * Path location template for migrating domain servers as SSH/Windows Targets e.g.: .../Servers/{{COMPUTER_NAME}} (Relevant only for Active Directory migration) - * @member {String} ad_targets_path_template - */ - -GatewayUpdateMigration.prototype['ad_targets_path_template'] = undefined; -/** - * Distinguished Name of User objects to search in Active Directory, e.g.: CN=Users,DC=example,DC=com (Relevant only for Active Directory migration) - * @member {String} ad_user_base_dn - */ - -GatewayUpdateMigration.prototype['ad_user_base_dn'] = undefined; -/** - * Comma-separated list of domain groups from which privileged domain users will be migrated. If empty, migrate all users based on the --ad-user-base-dn (Relevant only for Active Directory migration) - * @member {String} ad_user_groups - */ - -GatewayUpdateMigration.prototype['ad_user_groups'] = undefined; -/** - * AWS Secret Access Key (relevant only for AWS migration) - * @member {String} aws-key - */ - -GatewayUpdateMigration.prototype['aws-key'] = undefined; -/** - * AWS Access Key ID with sufficient permissions to get all secrets, e.g. 'arn:aws:secretsmanager:[Region]:[AccountId]:secret:[/path/to/secrets/_*]' (relevant only for AWS migration) - * @member {String} aws-key-id - */ - -GatewayUpdateMigration.prototype['aws-key-id'] = undefined; -/** - * AWS region of the required Secrets Manager (relevant only for AWS migration) - * @member {String} aws-region - * @default 'us-east-2' - */ - -GatewayUpdateMigration.prototype['aws-region'] = 'us-east-2'; -/** - * Azure Key Vault Access client ID, should be Azure AD App with a service principal (relevant only for Azure Key Vault migration) - * @member {String} azure-client-id - */ - -GatewayUpdateMigration.prototype['azure-client-id'] = undefined; -/** - * Azure Key Vault Name (relevant only for Azure Key Vault migration) - * @member {String} azure-kv-name - */ - -GatewayUpdateMigration.prototype['azure-kv-name'] = undefined; -/** - * Azure Key Vault secret (relevant only for Azure Key Vault migration) - * @member {String} azure-secret - */ - -GatewayUpdateMigration.prototype['azure-secret'] = undefined; -/** - * Azure Key Vault Access tenant ID (relevant only for Azure Key Vault migration) - * @member {String} azure-tenant-id - */ - -GatewayUpdateMigration.prototype['azure-tenant-id'] = undefined; -/** - * Base64-encoded GCP Service Account private key text with sufficient permissions to Secrets Manager, Minimum required permission is Secret Manager Secret Accessor, e.g. 'roles/secretmanager.secretAccessor' (relevant only for GCP migration) - * @member {String} gcp-key - */ - -GatewayUpdateMigration.prototype['gcp-key'] = undefined; -/** - * Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false] - * @member {String} hashi-json - * @default 'true' - */ - -GatewayUpdateMigration.prototype['hashi-json'] = 'true'; -/** - * HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration) - * @member {Array.} hashi-ns - */ - -GatewayUpdateMigration.prototype['hashi-ns'] = undefined; -/** - * HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration) - * @member {String} hashi-token - */ - -GatewayUpdateMigration.prototype['hashi-token'] = undefined; -/** - * HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration) - * @member {String} hashi-url - */ - -GatewayUpdateMigration.prototype['hashi-url'] = undefined; -/** - * Migration ID (Can be retrieved with gateway-list-migration command) - * @member {String} id - */ - -GatewayUpdateMigration.prototype['id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateMigration.prototype['json'] = false; -/** - * For Certificate Authentication method K8s Cluster CA certificate (relevant only for K8s migration with Certificate Authentication method) - * @member {Array.} k8s-ca-certificate - */ - -GatewayUpdateMigration.prototype['k8s-ca-certificate'] = undefined; -/** - * K8s Client certificate with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Certificate Authentication method) - * @member {Array.} k8s-client-certificate - */ - -GatewayUpdateMigration.prototype['k8s-client-certificate'] = undefined; -/** - * K8s Client key (relevant only for K8s migration with Certificate Authentication method) - * @member {Array.} k8s-client-key - */ - -GatewayUpdateMigration.prototype['k8s-client-key'] = undefined; -/** - * K8s Namespace, Use this field to import secrets from a particular namespace only. By default, the secrets are imported from all namespaces (relevant only for K8s migration) - * @member {String} k8s-namespace - */ - -GatewayUpdateMigration.prototype['k8s-namespace'] = undefined; -/** - * K8s Client password (relevant only for K8s migration with Password Authentication method) - * @member {String} k8s-password - */ - -GatewayUpdateMigration.prototype['k8s-password'] = undefined; -/** - * K8s Skip Control Plane Secrets, This option allows to avoid importing secrets from system namespaces (relevant only for K8s migration) - * @member {Boolean} k8s-skip-system - */ - -GatewayUpdateMigration.prototype['k8s-skip-system'] = undefined; -/** - * For Token Authentication method K8s Bearer Token with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Token Authentication method) - * @member {String} k8s-token - */ - -GatewayUpdateMigration.prototype['k8s-token'] = undefined; -/** - * K8s API Server URL, e.g. https://k8s-api.mycompany.com:6443 (relevant only for K8s migration) - * @member {String} k8s-url - */ - -GatewayUpdateMigration.prototype['k8s-url'] = undefined; -/** - * For Password Authentication method K8s Client username with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Password Authentication method) - * @member {String} k8s-username - */ - -GatewayUpdateMigration.prototype['k8s-username'] = undefined; -/** - * Migration name - * @member {String} name - */ - -GatewayUpdateMigration.prototype['name'] = undefined; -/** - * New migration name - * @member {String} new_name - */ - -GatewayUpdateMigration.prototype['new_name'] = undefined; -/** - * The name of the key that protects the classic key value (if empty, the account default key will be used) - * @member {String} protection-key - */ - -GatewayUpdateMigration.prototype['protection-key'] = undefined; -/** - * Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --si-rotation-interval and --si-rotation-hour parameters (Relevant only for Server Inventory migration) - * @member {String} si-auto-rotate - */ - -GatewayUpdateMigration.prototype['si-auto-rotate'] = undefined; -/** - * The hour of the scheduled rotation in UTC (Relevant only for Server Inventory migration) - * @member {Number} si-rotation-hour - */ - -GatewayUpdateMigration.prototype['si-rotation-hour'] = undefined; -/** - * The number of days to wait between every automatic rotation [1-365] (Relevant only for Server Inventory migration) - * @member {Number} si-rotation-interval - */ - -GatewayUpdateMigration.prototype['si-rotation-interval'] = undefined; -/** - * Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Server Inventory migration) - * @member {String} si-sra-enable-rdp - * @default 'false' - */ - -GatewayUpdateMigration.prototype['si-sra-enable-rdp'] = 'false'; -/** - * SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration) - * @member {String} si-target-name - */ - -GatewayUpdateMigration.prototype['si-target-name'] = undefined; -/** - * Comma-separated list of Local Users which should not be migrated (Relevant only for Server Inventory migration) - * @member {String} si-users-ignore - */ - -GatewayUpdateMigration.prototype['si-users-ignore'] = undefined; -/** - * Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration) - * @member {String} si-users-path-template - */ - -GatewayUpdateMigration.prototype['si-users-path-template'] = undefined; -/** - * Target location in Akeyless for imported secrets - * @member {String} target-location - */ - -GatewayUpdateMigration.prototype['target-location'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateMigration.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateMigration.prototype['uid-token'] = undefined; -var _default = GatewayUpdateMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 72781: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerArtifactory model module. - * @module model/GatewayUpdateProducerArtifactory - * @version 3.3.16 - */ -var GatewayUpdateProducerArtifactory = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerArtifactory. - * gatewayUpdateProducerArtifactory is a command that updates artifactory producer - * @alias module:model/GatewayUpdateProducerArtifactory - * @param artifactoryTokenAudience {String} Token Audience - * @param artifactoryTokenScope {String} Token Scope - * @param name {String} Producer name - */ - function GatewayUpdateProducerArtifactory(artifactoryTokenAudience, artifactoryTokenScope, name) { - _classCallCheck(this, GatewayUpdateProducerArtifactory); - - GatewayUpdateProducerArtifactory.initialize(this, artifactoryTokenAudience, artifactoryTokenScope, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerArtifactory, null, [{ - key: "initialize", - value: function initialize(obj, artifactoryTokenAudience, artifactoryTokenScope, name) { - obj['artifactory-token-audience'] = artifactoryTokenAudience; - obj['artifactory-token-scope'] = artifactoryTokenScope; - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerArtifactory from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerArtifactory} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerArtifactory} The populated GatewayUpdateProducerArtifactory instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerArtifactory(); - - if (data.hasOwnProperty('artifactory-admin-name')) { - obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); - } - - if (data.hasOwnProperty('artifactory-admin-pwd')) { - obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); - } - - if (data.hasOwnProperty('artifactory-token-audience')) { - obj['artifactory-token-audience'] = _ApiClient["default"].convertToType(data['artifactory-token-audience'], 'String'); - } - - if (data.hasOwnProperty('artifactory-token-scope')) { - obj['artifactory-token-scope'] = _ApiClient["default"].convertToType(data['artifactory-token-scope'], 'String'); - } - - if (data.hasOwnProperty('base-url')) { - obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerArtifactory; -}(); -/** - * Artifactory Admin Name - * @member {String} artifactory-admin-name - */ - - -GatewayUpdateProducerArtifactory.prototype['artifactory-admin-name'] = undefined; -/** - * Artifactory Admin password - * @member {String} artifactory-admin-pwd - */ - -GatewayUpdateProducerArtifactory.prototype['artifactory-admin-pwd'] = undefined; -/** - * Token Audience - * @member {String} artifactory-token-audience - */ - -GatewayUpdateProducerArtifactory.prototype['artifactory-token-audience'] = undefined; -/** - * Token Scope - * @member {String} artifactory-token-scope - */ - -GatewayUpdateProducerArtifactory.prototype['artifactory-token-scope'] = undefined; -/** - * Base URL - * @member {String} base-url - */ - -GatewayUpdateProducerArtifactory.prototype['base-url'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerArtifactory.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerArtifactory.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerArtifactory.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerArtifactory.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerArtifactory.prototype['producer-encryption-key-name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerArtifactory.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerArtifactory.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerArtifactory.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerArtifactory.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerArtifactory.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerArtifactory; -exports["default"] = _default; - -/***/ }), - -/***/ 92424: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerArtifactoryOutput model module. - * @module model/GatewayUpdateProducerArtifactoryOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerArtifactoryOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerArtifactoryOutput. - * @alias module:model/GatewayUpdateProducerArtifactoryOutput - */ - function GatewayUpdateProducerArtifactoryOutput() { - _classCallCheck(this, GatewayUpdateProducerArtifactoryOutput); - - GatewayUpdateProducerArtifactoryOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerArtifactoryOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerArtifactoryOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerArtifactoryOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerArtifactoryOutput} The populated GatewayUpdateProducerArtifactoryOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerArtifactoryOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerArtifactoryOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerArtifactoryOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerArtifactoryOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 2334: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerAws model module. - * @module model/GatewayUpdateProducerAws - * @version 3.3.16 - */ -var GatewayUpdateProducerAws = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerAws. - * gatewayUpdateProducerAws is a command that Updates aws producer - * @alias module:model/GatewayUpdateProducerAws - * @param name {String} Producer name - */ - function GatewayUpdateProducerAws(name) { - _classCallCheck(this, GatewayUpdateProducerAws); - - GatewayUpdateProducerAws.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerAws, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerAws from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerAws} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerAws} The populated GatewayUpdateProducerAws instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerAws(); - - if (data.hasOwnProperty('access-mode')) { - obj['access-mode'] = _ApiClient["default"].convertToType(data['access-mode'], 'String'); - } - - if (data.hasOwnProperty('admin-rotation-interval-days')) { - obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); - } - - if (data.hasOwnProperty('aws-access-key-id')) { - obj['aws-access-key-id'] = _ApiClient["default"].convertToType(data['aws-access-key-id'], 'String'); - } - - if (data.hasOwnProperty('aws-access-secret-key')) { - obj['aws-access-secret-key'] = _ApiClient["default"].convertToType(data['aws-access-secret-key'], 'String'); - } - - if (data.hasOwnProperty('aws-role-arns')) { - obj['aws-role-arns'] = _ApiClient["default"].convertToType(data['aws-role-arns'], 'String'); - } - - if (data.hasOwnProperty('aws-user-console-access')) { - obj['aws-user-console-access'] = _ApiClient["default"].convertToType(data['aws-user-console-access'], 'Boolean'); - } - - if (data.hasOwnProperty('aws-user-groups')) { - obj['aws-user-groups'] = _ApiClient["default"].convertToType(data['aws-user-groups'], 'String'); - } - - if (data.hasOwnProperty('aws-user-policies')) { - obj['aws-user-policies'] = _ApiClient["default"].convertToType(data['aws-user-policies'], 'String'); - } - - if (data.hasOwnProperty('aws-user-programmatic-access')) { - obj['aws-user-programmatic-access'] = _ApiClient["default"].convertToType(data['aws-user-programmatic-access'], 'Boolean'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('enable-admin-rotation')) { - obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } - - if (data.hasOwnProperty('secure-access-aws-account-id')) { - obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); - } - - if (data.hasOwnProperty('secure-access-aws-native-cli')) { - obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerAws; -}(); -/** - * @member {String} access-mode - */ - - -GatewayUpdateProducerAws.prototype['access-mode'] = undefined; -/** - * Admin credentials rotation interval (days) - * @member {Number} admin-rotation-interval-days - * @default 0 - */ - -GatewayUpdateProducerAws.prototype['admin-rotation-interval-days'] = 0; -/** - * Access Key ID - * @member {String} aws-access-key-id - */ - -GatewayUpdateProducerAws.prototype['aws-access-key-id'] = undefined; -/** - * Secret Access Key - * @member {String} aws-access-secret-key - */ - -GatewayUpdateProducerAws.prototype['aws-access-secret-key'] = undefined; -/** - * AWS Role ARNs to be used in the Assume Role operation (relevant only for assume_role mode) - * @member {String} aws-role-arns - */ - -GatewayUpdateProducerAws.prototype['aws-role-arns'] = undefined; -/** - * AWS User console access - * @member {Boolean} aws-user-console-access - * @default false - */ - -GatewayUpdateProducerAws.prototype['aws-user-console-access'] = false; -/** - * AWS User groups - * @member {String} aws-user-groups - */ - -GatewayUpdateProducerAws.prototype['aws-user-groups'] = undefined; -/** - * AWS User policies - * @member {String} aws-user-policies - */ - -GatewayUpdateProducerAws.prototype['aws-user-policies'] = undefined; -/** - * Enable AWS User programmatic access - * @member {Boolean} aws-user-programmatic-access - * @default true - */ - -GatewayUpdateProducerAws.prototype['aws-user-programmatic-access'] = true; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerAws.prototype['delete_protection'] = undefined; -/** - * Automatic admin credentials rotation - * @member {Boolean} enable-admin-rotation - * @default false - */ - -GatewayUpdateProducerAws.prototype['enable-admin-rotation'] = false; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerAws.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerAws.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerAws.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerAws.prototype['producer-encryption-key-name'] = undefined; -/** - * Region - * @member {String} region - * @default 'us-east-2' - */ - -GatewayUpdateProducerAws.prototype['region'] = 'us-east-2'; -/** - * The AWS account id - * @member {String} secure-access-aws-account-id - */ - -GatewayUpdateProducerAws.prototype['secure-access-aws-account-id'] = undefined; -/** - * The AWS native cli - * @member {Boolean} secure-access-aws-native-cli - */ - -GatewayUpdateProducerAws.prototype['secure-access-aws-native-cli'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerAws.prototype['secure-access-bastion-issuer'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerAws.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default true - */ - -GatewayUpdateProducerAws.prototype['secure-access-web'] = true; -/** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false - */ - -GatewayUpdateProducerAws.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false - */ - -GatewayUpdateProducerAws.prototype['secure-access-web-proxy'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerAws.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerAws.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerAws.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerAws.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerAws.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerAws; -exports["default"] = _default; - -/***/ }), - -/***/ 55019: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerAwsOutput model module. - * @module model/GatewayUpdateProducerAwsOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerAwsOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerAwsOutput. - * @alias module:model/GatewayUpdateProducerAwsOutput - */ - function GatewayUpdateProducerAwsOutput() { - _classCallCheck(this, GatewayUpdateProducerAwsOutput); - - GatewayUpdateProducerAwsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerAwsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerAwsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerAwsOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerAwsOutput} The populated GatewayUpdateProducerAwsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerAwsOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerAwsOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerAwsOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerAwsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 97644: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerAzure model module. - * @module model/GatewayUpdateProducerAzure - * @version 3.3.16 - */ -var GatewayUpdateProducerAzure = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerAzure. - * gatewayUpdateProducerAzure is a command that updates azure producer - * @alias module:model/GatewayUpdateProducerAzure - * @param name {String} Producer name - */ - function GatewayUpdateProducerAzure(name) { - _classCallCheck(this, GatewayUpdateProducerAzure); - - GatewayUpdateProducerAzure.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerAzure, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerAzure from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerAzure} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerAzure} The populated GatewayUpdateProducerAzure instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerAzure(); - - if (data.hasOwnProperty('app-obj-id')) { - obj['app-obj-id'] = _ApiClient["default"].convertToType(data['app-obj-id'], 'String'); - } - - if (data.hasOwnProperty('azure-client-id')) { - obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); - } - - if (data.hasOwnProperty('azure-client-secret')) { - obj['azure-client-secret'] = _ApiClient["default"].convertToType(data['azure-client-secret'], 'String'); - } - - if (data.hasOwnProperty('azure-tenant-id')) { - obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('fixed-user-claim-keyname')) { - obj['fixed-user-claim-keyname'] = _ApiClient["default"].convertToType(data['fixed-user-claim-keyname'], 'String'); - } - - if (data.hasOwnProperty('fixed-user-only')) { - obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-group-obj-id')) { - obj['user-group-obj-id'] = _ApiClient["default"].convertToType(data['user-group-obj-id'], 'String'); - } - - if (data.hasOwnProperty('user-portal-access')) { - obj['user-portal-access'] = _ApiClient["default"].convertToType(data['user-portal-access'], 'Boolean'); - } - - if (data.hasOwnProperty('user-principal-name')) { - obj['user-principal-name'] = _ApiClient["default"].convertToType(data['user-principal-name'], 'String'); - } - - if (data.hasOwnProperty('user-programmatic-access')) { - obj['user-programmatic-access'] = _ApiClient["default"].convertToType(data['user-programmatic-access'], 'Boolean'); - } - - if (data.hasOwnProperty('user-role-template-id')) { - obj['user-role-template-id'] = _ApiClient["default"].convertToType(data['user-role-template-id'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerAzure; -}(); -/** - * Azure App Object Id - * @member {String} app-obj-id - */ - - -GatewayUpdateProducerAzure.prototype['app-obj-id'] = undefined; -/** - * Azure Client ID - * @member {String} azure-client-id - */ - -GatewayUpdateProducerAzure.prototype['azure-client-id'] = undefined; -/** - * Azure Client Secret - * @member {String} azure-client-secret - */ - -GatewayUpdateProducerAzure.prototype['azure-client-secret'] = undefined; -/** - * Azure Tenant ID - * @member {String} azure-tenant-id - */ - -GatewayUpdateProducerAzure.prototype['azure-tenant-id'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerAzure.prototype['delete_protection'] = undefined; -/** - * FixedUserClaimKeyname - * @member {String} fixed-user-claim-keyname - * @default 'false' - */ - -GatewayUpdateProducerAzure.prototype['fixed-user-claim-keyname'] = 'false'; -/** - * Fixed user - * @member {Boolean} fixed-user-only - * @default false - */ - -GatewayUpdateProducerAzure.prototype['fixed-user-only'] = false; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerAzure.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerAzure.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerAzure.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerAzure.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerAzure.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default true - */ - -GatewayUpdateProducerAzure.prototype['secure-access-web'] = true; -/** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false - */ - -GatewayUpdateProducerAzure.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false - */ - -GatewayUpdateProducerAzure.prototype['secure-access-web-proxy'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerAzure.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerAzure.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerAzure.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerAzure.prototype['uid-token'] = undefined; -/** - * User Group Object Id - * @member {String} user-group-obj-id - */ - -GatewayUpdateProducerAzure.prototype['user-group-obj-id'] = undefined; -/** - * Azure User portal access - * @member {Boolean} user-portal-access - * @default false - */ - -GatewayUpdateProducerAzure.prototype['user-portal-access'] = false; -/** - * User Principal Name - * @member {String} user-principal-name - */ - -GatewayUpdateProducerAzure.prototype['user-principal-name'] = undefined; -/** - * Azure User programmatic access - * @member {Boolean} user-programmatic-access - * @default false - */ - -GatewayUpdateProducerAzure.prototype['user-programmatic-access'] = false; -/** - * User Role Template Id - * @member {String} user-role-template-id - */ - -GatewayUpdateProducerAzure.prototype['user-role-template-id'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerAzure.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerAzure; -exports["default"] = _default; - -/***/ }), - -/***/ 97773: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerAzureOutput model module. - * @module model/GatewayUpdateProducerAzureOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerAzureOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerAzureOutput. - * @alias module:model/GatewayUpdateProducerAzureOutput - */ - function GatewayUpdateProducerAzureOutput() { - _classCallCheck(this, GatewayUpdateProducerAzureOutput); - - GatewayUpdateProducerAzureOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerAzureOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerAzureOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerAzureOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerAzureOutput} The populated GatewayUpdateProducerAzureOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerAzureOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerAzureOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerAzureOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerAzureOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 82093: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerCassandra model module. - * @module model/GatewayUpdateProducerCassandra - * @version 3.3.16 - */ -var GatewayUpdateProducerCassandra = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerCassandra. - * gatewayUpdateProducerCassandra is a command that updates a Cassandra producer - * @alias module:model/GatewayUpdateProducerCassandra - * @param name {String} Producer name - */ - function GatewayUpdateProducerCassandra(name) { - _classCallCheck(this, GatewayUpdateProducerCassandra); - - GatewayUpdateProducerCassandra.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerCassandra, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerCassandra from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerCassandra} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerCassandra} The populated GatewayUpdateProducerCassandra instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerCassandra(); - - if (data.hasOwnProperty('cassandra-creation-statements')) { - obj['cassandra-creation-statements'] = _ApiClient["default"].convertToType(data['cassandra-creation-statements'], 'String'); - } - - if (data.hasOwnProperty('cassandra-hosts')) { - obj['cassandra-hosts'] = _ApiClient["default"].convertToType(data['cassandra-hosts'], 'String'); - } - - if (data.hasOwnProperty('cassandra-password')) { - obj['cassandra-password'] = _ApiClient["default"].convertToType(data['cassandra-password'], 'String'); - } - - if (data.hasOwnProperty('cassandra-port')) { - obj['cassandra-port'] = _ApiClient["default"].convertToType(data['cassandra-port'], 'String'); - } - - if (data.hasOwnProperty('cassandra-username')) { - obj['cassandra-username'] = _ApiClient["default"].convertToType(data['cassandra-username'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerCassandra; -}(); -/** - * Cassandra creation statements - * @member {String} cassandra-creation-statements - */ - - -GatewayUpdateProducerCassandra.prototype['cassandra-creation-statements'] = undefined; -/** - * Cassandra hosts IP or addresses, comma separated - * @member {String} cassandra-hosts - */ - -GatewayUpdateProducerCassandra.prototype['cassandra-hosts'] = undefined; -/** - * Cassandra superuser password - * @member {String} cassandra-password - */ - -GatewayUpdateProducerCassandra.prototype['cassandra-password'] = undefined; -/** - * Cassandra port - * @member {String} cassandra-port - * @default '9042' - */ - -GatewayUpdateProducerCassandra.prototype['cassandra-port'] = '9042'; -/** - * Cassandra superuser username - * @member {String} cassandra-username - */ - -GatewayUpdateProducerCassandra.prototype['cassandra-username'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerCassandra.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerCassandra.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerCassandra.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerCassandra.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerCassandra.prototype['producer-encryption-key-name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerCassandra.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerCassandra.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerCassandra.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerCassandra.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerCassandra.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerCassandra; -exports["default"] = _default; - -/***/ }), - -/***/ 4328: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerCassandraOutput model module. - * @module model/GatewayUpdateProducerCassandraOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerCassandraOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerCassandraOutput. - * @alias module:model/GatewayUpdateProducerCassandraOutput - */ - function GatewayUpdateProducerCassandraOutput() { - _classCallCheck(this, GatewayUpdateProducerCassandraOutput); - - GatewayUpdateProducerCassandraOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerCassandraOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerCassandraOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerCassandraOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerCassandraOutput} The populated GatewayUpdateProducerCassandraOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerCassandraOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerCassandraOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerCassandraOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerCassandraOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 2471: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerCertificateAutomation model module. - * @module model/GatewayUpdateProducerCertificateAutomation - * @version 3.3.16 - */ -var GatewayUpdateProducerCertificateAutomation = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerCertificateAutomation. - * gatewayUpdateProducerCertificateAutomation is a command that updates a Certificate Automation dynamic secret producer to dynamically update certificates generated by Venafi or have Akeyless generated certificates using PKI be monitored by Venafi - * @alias module:model/GatewayUpdateProducerCertificateAutomation - * @param name {String} Producer name - */ - function GatewayUpdateProducerCertificateAutomation(name) { - _classCallCheck(this, GatewayUpdateProducerCertificateAutomation); - - GatewayUpdateProducerCertificateAutomation.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerCertificateAutomation, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerCertificateAutomation from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerCertificateAutomation} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerCertificateAutomation} The populated GatewayUpdateProducerCertificateAutomation instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerCertificateAutomation(); - - if (data.hasOwnProperty('admin-rotation-interval-days')) { - obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); - } - - if (data.hasOwnProperty('allow-subdomains')) { - obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); - } - - if (data.hasOwnProperty('allowed-domains')) { - obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], ['String']); - } - - if (data.hasOwnProperty('auto-generated-folder')) { - obj['auto-generated-folder'] = _ApiClient["default"].convertToType(data['auto-generated-folder'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('enable-admin-rotation')) { - obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('root-first-in-chain')) { - obj['root-first-in-chain'] = _ApiClient["default"].convertToType(data['root-first-in-chain'], 'Boolean'); - } - - if (data.hasOwnProperty('sign-using-akeyless-pki')) { - obj['sign-using-akeyless-pki'] = _ApiClient["default"].convertToType(data['sign-using-akeyless-pki'], 'Boolean'); - } - - if (data.hasOwnProperty('signer-key-name')) { - obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); - } - - if (data.hasOwnProperty('store-private-key')) { - obj['store-private-key'] = _ApiClient["default"].convertToType(data['store-private-key'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - - if (data.hasOwnProperty('venafi-access-token')) { - obj['venafi-access-token'] = _ApiClient["default"].convertToType(data['venafi-access-token'], 'String'); - } - - if (data.hasOwnProperty('venafi-api-key')) { - obj['venafi-api-key'] = _ApiClient["default"].convertToType(data['venafi-api-key'], 'String'); - } - - if (data.hasOwnProperty('venafi-baseurl')) { - obj['venafi-baseurl'] = _ApiClient["default"].convertToType(data['venafi-baseurl'], 'String'); - } - - if (data.hasOwnProperty('venafi-client-id')) { - obj['venafi-client-id'] = _ApiClient["default"].convertToType(data['venafi-client-id'], 'String'); - } - - if (data.hasOwnProperty('venafi-refresh-token')) { - obj['venafi-refresh-token'] = _ApiClient["default"].convertToType(data['venafi-refresh-token'], 'String'); - } - - if (data.hasOwnProperty('venafi-use-tpp')) { - obj['venafi-use-tpp'] = _ApiClient["default"].convertToType(data['venafi-use-tpp'], 'Boolean'); - } - - if (data.hasOwnProperty('venafi-zone')) { - obj['venafi-zone'] = _ApiClient["default"].convertToType(data['venafi-zone'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerCertificateAutomation; -}(); -/** - * Admin credentials rotation interval (days) - * @member {Number} admin-rotation-interval-days - * @default 0 - */ - - -GatewayUpdateProducerCertificateAutomation.prototype['admin-rotation-interval-days'] = 0; -/** - * Allow subdomains - * @member {Boolean} allow-subdomains - */ - -GatewayUpdateProducerCertificateAutomation.prototype['allow-subdomains'] = undefined; -/** - * Allowed domains - * @member {Array.} allowed-domains - */ - -GatewayUpdateProducerCertificateAutomation.prototype['allowed-domains'] = undefined; -/** - * Auto generated folder - * @member {String} auto-generated-folder - */ - -GatewayUpdateProducerCertificateAutomation.prototype['auto-generated-folder'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerCertificateAutomation.prototype['delete_protection'] = undefined; -/** - * Automatic admin credentials rotation - * @member {Boolean} enable-admin-rotation - * @default false - */ - -GatewayUpdateProducerCertificateAutomation.prototype['enable-admin-rotation'] = false; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerCertificateAutomation.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerCertificateAutomation.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerCertificateAutomation.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerCertificateAutomation.prototype['producer-encryption-key-name'] = undefined; -/** - * Root first in chain - * @member {Boolean} root-first-in-chain - */ - -GatewayUpdateProducerCertificateAutomation.prototype['root-first-in-chain'] = undefined; -/** - * Use Akeyless PKI issuer or Venafi issuer - * @member {Boolean} sign-using-akeyless-pki - */ - -GatewayUpdateProducerCertificateAutomation.prototype['sign-using-akeyless-pki'] = undefined; -/** - * Signer key name - * @member {String} signer-key-name - */ - -GatewayUpdateProducerCertificateAutomation.prototype['signer-key-name'] = undefined; -/** - * Store private key - * @member {Boolean} store-private-key - */ - -GatewayUpdateProducerCertificateAutomation.prototype['store-private-key'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerCertificateAutomation.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerCertificateAutomation.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerCertificateAutomation.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerCertificateAutomation.prototype['uid-token'] = undefined; -/** - * User TTL in time.Duration format (2160h / 129600m / etc...). When using sign-using-akeyless-pki certificates created will have this validity period, otherwise the user-ttl is taken from the Validity Period field of the Zone's' Issuing Template. When using cert-manager it is advised to have a TTL of above 60 days (1440h). For more information - https://cert-manager.io/docs/usage/certificate/ - * @member {String} user-ttl - * @default '2160h' - */ - -GatewayUpdateProducerCertificateAutomation.prototype['user-ttl'] = '2160h'; -/** - * Venafi Access Token to use to access the TPP environment (Relevant when using TPP) - * @member {String} venafi-access-token - */ - -GatewayUpdateProducerCertificateAutomation.prototype['venafi-access-token'] = undefined; -/** - * Venafi API key - * @member {String} venafi-api-key - */ - -GatewayUpdateProducerCertificateAutomation.prototype['venafi-api-key'] = undefined; -/** - * Venafi Baseurl - * @member {String} venafi-baseurl - */ - -GatewayUpdateProducerCertificateAutomation.prototype['venafi-baseurl'] = undefined; -/** - * Venafi Client ID that was used when the access token was generated - * @member {String} venafi-client-id - * @default 'akeyless' - */ - -GatewayUpdateProducerCertificateAutomation.prototype['venafi-client-id'] = 'akeyless'; -/** - * Venafi Refresh Token to use when the Access Token is expired (Relevant when using TPP) - * @member {String} venafi-refresh-token - */ - -GatewayUpdateProducerCertificateAutomation.prototype['venafi-refresh-token'] = undefined; -/** - * Venafi using TPP - * @member {Boolean} venafi-use-tpp - */ - -GatewayUpdateProducerCertificateAutomation.prototype['venafi-use-tpp'] = undefined; -/** - * Venafi Zone - * @member {String} venafi-zone - */ - -GatewayUpdateProducerCertificateAutomation.prototype['venafi-zone'] = undefined; -var _default = GatewayUpdateProducerCertificateAutomation; -exports["default"] = _default; - -/***/ }), - -/***/ 66398: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerCertificateAutomationOutput model module. - * @module model/GatewayUpdateProducerCertificateAutomationOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerCertificateAutomationOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerCertificateAutomationOutput. - * @alias module:model/GatewayUpdateProducerCertificateAutomationOutput - */ - function GatewayUpdateProducerCertificateAutomationOutput() { - _classCallCheck(this, GatewayUpdateProducerCertificateAutomationOutput); - - GatewayUpdateProducerCertificateAutomationOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerCertificateAutomationOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerCertificateAutomationOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerCertificateAutomationOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerCertificateAutomationOutput} The populated GatewayUpdateProducerCertificateAutomationOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerCertificateAutomationOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerCertificateAutomationOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerCertificateAutomationOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerCertificateAutomationOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 98899: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerChef model module. - * @module model/GatewayUpdateProducerChef - * @version 3.3.16 - */ -var GatewayUpdateProducerChef = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerChef. - * gatewayUpdateProducerChef is a command that updates chef producer - * @alias module:model/GatewayUpdateProducerChef - * @param name {String} Producer name - */ - function GatewayUpdateProducerChef(name) { - _classCallCheck(this, GatewayUpdateProducerChef); - - GatewayUpdateProducerChef.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerChef, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerChef from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerChef} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerChef} The populated GatewayUpdateProducerChef instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerChef(); - - if (data.hasOwnProperty('chef-orgs')) { - obj['chef-orgs'] = _ApiClient["default"].convertToType(data['chef-orgs'], 'String'); - } - - if (data.hasOwnProperty('chef-server-key')) { - obj['chef-server-key'] = _ApiClient["default"].convertToType(data['chef-server-key'], 'String'); - } - - if (data.hasOwnProperty('chef-server-url')) { - obj['chef-server-url'] = _ApiClient["default"].convertToType(data['chef-server-url'], 'String'); - } - - if (data.hasOwnProperty('chef-server-username')) { - obj['chef-server-username'] = _ApiClient["default"].convertToType(data['chef-server-username'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('skip-ssl')) { - obj['skip-ssl'] = _ApiClient["default"].convertToType(data['skip-ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerChef; -}(); -/** - * Organizations - * @member {String} chef-orgs - */ - - -GatewayUpdateProducerChef.prototype['chef-orgs'] = undefined; -/** - * Server key - * @member {String} chef-server-key - */ - -GatewayUpdateProducerChef.prototype['chef-server-key'] = undefined; -/** - * Server URL - * @member {String} chef-server-url - */ - -GatewayUpdateProducerChef.prototype['chef-server-url'] = undefined; -/** - * Server username - * @member {String} chef-server-username - */ - -GatewayUpdateProducerChef.prototype['chef-server-username'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerChef.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerChef.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerChef.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerChef.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerChef.prototype['producer-encryption-key-name'] = undefined; -/** - * Skip SSL - * @member {Boolean} skip-ssl - * @default true - */ - -GatewayUpdateProducerChef.prototype['skip-ssl'] = true; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerChef.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerChef.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerChef.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerChef.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerChef.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerChef; -exports["default"] = _default; - -/***/ }), - -/***/ 85442: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerChefOutput model module. - * @module model/GatewayUpdateProducerChefOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerChefOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerChefOutput. - * @alias module:model/GatewayUpdateProducerChefOutput - */ - function GatewayUpdateProducerChefOutput() { - _classCallCheck(this, GatewayUpdateProducerChefOutput); - - GatewayUpdateProducerChefOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerChefOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerChefOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerChefOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerChefOutput} The populated GatewayUpdateProducerChefOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerChefOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerChefOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerChefOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerChefOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 40320: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerCustom model module. - * @module model/GatewayUpdateProducerCustom - * @version 3.3.16 - */ -var GatewayUpdateProducerCustom = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerCustom. - * @alias module:model/GatewayUpdateProducerCustom - * @param createSyncUrl {String} URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create - * @param name {String} Producer name - * @param revokeSyncUrl {String} URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke - */ - function GatewayUpdateProducerCustom(createSyncUrl, name, revokeSyncUrl) { - _classCallCheck(this, GatewayUpdateProducerCustom); - - GatewayUpdateProducerCustom.initialize(this, createSyncUrl, name, revokeSyncUrl); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerCustom, null, [{ - key: "initialize", - value: function initialize(obj, createSyncUrl, name, revokeSyncUrl) { - obj['create-sync-url'] = createSyncUrl; - obj['name'] = name; - obj['revoke-sync-url'] = revokeSyncUrl; - } - /** - * Constructs a GatewayUpdateProducerCustom from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerCustom} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerCustom} The populated GatewayUpdateProducerCustom instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerCustom(); - - if (data.hasOwnProperty('admin_rotation_interval_days')) { - obj['admin_rotation_interval_days'] = _ApiClient["default"].convertToType(data['admin_rotation_interval_days'], 'Number'); - } - - if (data.hasOwnProperty('create-sync-url')) { - obj['create-sync-url'] = _ApiClient["default"].convertToType(data['create-sync-url'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('enable_admin_rotation')) { - obj['enable_admin_rotation'] = _ApiClient["default"].convertToType(data['enable_admin_rotation'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('payload')) { - obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('revoke-sync-url')) { - obj['revoke-sync-url'] = _ApiClient["default"].convertToType(data['revoke-sync-url'], 'String'); - } - - if (data.hasOwnProperty('rotate-sync-url')) { - obj['rotate-sync-url'] = _ApiClient["default"].convertToType(data['rotate-sync-url'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('timeout-sec')) { - obj['timeout-sec'] = _ApiClient["default"].convertToType(data['timeout-sec'], 'Number'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerCustom; -}(); -/** - * Define rotation interval in days - * @member {Number} admin_rotation_interval_days - */ - - -GatewayUpdateProducerCustom.prototype['admin_rotation_interval_days'] = undefined; -/** - * URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create - * @member {String} create-sync-url - */ - -GatewayUpdateProducerCustom.prototype['create-sync-url'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerCustom.prototype['delete_protection'] = undefined; -/** - * Should admin credentials be rotated - * @member {Boolean} enable_admin_rotation - * @default false - */ - -GatewayUpdateProducerCustom.prototype['enable_admin_rotation'] = false; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerCustom.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerCustom.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerCustom.prototype['new-name'] = undefined; -/** - * Secret payload to be sent with each create/revoke webhook request - * @member {String} payload - */ - -GatewayUpdateProducerCustom.prototype['payload'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerCustom.prototype['producer-encryption-key-name'] = undefined; -/** - * URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke - * @member {String} revoke-sync-url - */ - -GatewayUpdateProducerCustom.prototype['revoke-sync-url'] = undefined; -/** - * URL of an endpoint that implements /sync/rotate method, for example https://webhook.example.com/sync/rotate - * @member {String} rotate-sync-url - */ - -GatewayUpdateProducerCustom.prototype['rotate-sync-url'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerCustom.prototype['tags'] = undefined; -/** - * Maximum allowed time in seconds for the webhook to return the results - * @member {Number} timeout-sec - * @default 60 - */ - -GatewayUpdateProducerCustom.prototype['timeout-sec'] = 60; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerCustom.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerCustom.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerCustom.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerCustom; -exports["default"] = _default; - -/***/ }), - -/***/ 28777: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerCustomOutput model module. - * @module model/GatewayUpdateProducerCustomOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerCustomOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerCustomOutput. - * @alias module:model/GatewayUpdateProducerCustomOutput - */ - function GatewayUpdateProducerCustomOutput() { - _classCallCheck(this, GatewayUpdateProducerCustomOutput); - - GatewayUpdateProducerCustomOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerCustomOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerCustomOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerCustomOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerCustomOutput} The populated GatewayUpdateProducerCustomOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerCustomOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerCustomOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerCustomOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerCustomOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 63280: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerDockerhub model module. - * @module model/GatewayUpdateProducerDockerhub - * @version 3.3.16 - */ -var GatewayUpdateProducerDockerhub = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerDockerhub. - * gatewayUpdateProducerDockerhub is a command that updates a DOCKERHUB producer - * @alias module:model/GatewayUpdateProducerDockerhub - * @param name {String} Producer name - */ - function GatewayUpdateProducerDockerhub(name) { - _classCallCheck(this, GatewayUpdateProducerDockerhub); - - GatewayUpdateProducerDockerhub.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerDockerhub, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerDockerhub from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerDockerhub} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerDockerhub} The populated GatewayUpdateProducerDockerhub instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerDockerhub(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('dockerhub-password')) { - obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); - } - - if (data.hasOwnProperty('dockerhub-token-scopes')) { - obj['dockerhub-token-scopes'] = _ApiClient["default"].convertToType(data['dockerhub-token-scopes'], 'String'); - } - - if (data.hasOwnProperty('dockerhub-username')) { - obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerDockerhub; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerDockerhub.prototype['delete_protection'] = undefined; -/** - * DockerhubPassword is either the user's password access token to manage the repository - * @member {String} dockerhub-password - */ - -GatewayUpdateProducerDockerhub.prototype['dockerhub-password'] = undefined; -/** - * Access token scopes list (comma-separated) to give the dynamic secret valid options are in \"repo:admin\", \"repo:write\", \"repo:read\", \"repo:public_read\" - * @member {String} dockerhub-token-scopes - */ - -GatewayUpdateProducerDockerhub.prototype['dockerhub-token-scopes'] = undefined; -/** - * DockerhubUsername is the name of the user in dockerhub - * @member {String} dockerhub-username - */ - -GatewayUpdateProducerDockerhub.prototype['dockerhub-username'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerDockerhub.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerDockerhub.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerDockerhub.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerDockerhub.prototype['producer-encryption-key-name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerDockerhub.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerDockerhub.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerDockerhub.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerDockerhub.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerDockerhub.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerDockerhub; -exports["default"] = _default; - -/***/ }), - -/***/ 14201: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerDockerhubOutput model module. - * @module model/GatewayUpdateProducerDockerhubOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerDockerhubOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerDockerhubOutput. - * @alias module:model/GatewayUpdateProducerDockerhubOutput - */ - function GatewayUpdateProducerDockerhubOutput() { - _classCallCheck(this, GatewayUpdateProducerDockerhubOutput); - - GatewayUpdateProducerDockerhubOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerDockerhubOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerDockerhubOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerDockerhubOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerDockerhubOutput} The populated GatewayUpdateProducerDockerhubOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerDockerhubOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerDockerhubOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerDockerhubOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerDockerhubOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 32382: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerEks model module. - * @module model/GatewayUpdateProducerEks - * @version 3.3.16 - */ -var GatewayUpdateProducerEks = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerEks. - * gatewayUpdateProducerEks is a command that updates eks producer - * @alias module:model/GatewayUpdateProducerEks - * @param name {String} Producer name - */ - function GatewayUpdateProducerEks(name) { - _classCallCheck(this, GatewayUpdateProducerEks); - - GatewayUpdateProducerEks.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerEks, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerEks from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerEks} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerEks} The populated GatewayUpdateProducerEks instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerEks(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('eks-access-key-id')) { - obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); - } - - if (data.hasOwnProperty('eks-assume-role')) { - obj['eks-assume-role'] = _ApiClient["default"].convertToType(data['eks-assume-role'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-ca-cert')) { - obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-endpoint')) { - obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-name')) { - obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); - } - - if (data.hasOwnProperty('eks-region')) { - obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); - } - - if (data.hasOwnProperty('eks-secret-access-key')) { - obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-port-forwading')) { - obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-cluster-endpoint')) { - obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerEks; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerEks.prototype['delete_protection'] = undefined; -/** - * Access Key ID - * @member {String} eks-access-key-id - */ - -GatewayUpdateProducerEks.prototype['eks-access-key-id'] = undefined; -/** - * IAM assume role - * @member {String} eks-assume-role - */ - -GatewayUpdateProducerEks.prototype['eks-assume-role'] = undefined; -/** - * EKS cluster CA certificate - * @member {String} eks-cluster-ca-cert - */ - -GatewayUpdateProducerEks.prototype['eks-cluster-ca-cert'] = undefined; -/** - * EKS cluster URL endpoint - * @member {String} eks-cluster-endpoint - */ - -GatewayUpdateProducerEks.prototype['eks-cluster-endpoint'] = undefined; -/** - * EKS cluster name - * @member {String} eks-cluster-name - */ - -GatewayUpdateProducerEks.prototype['eks-cluster-name'] = undefined; -/** - * Region - * @member {String} eks-region - * @default 'us-east-2' - */ - -GatewayUpdateProducerEks.prototype['eks-region'] = 'us-east-2'; -/** - * Secret Access Key - * @member {String} eks-secret-access-key - */ - -GatewayUpdateProducerEks.prototype['eks-secret-access-key'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerEks.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerEks.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerEks.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerEks.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable Port forwarding while using CLI access - * @member {Boolean} secure-access-allow-port-forwading - */ - -GatewayUpdateProducerEks.prototype['secure-access-allow-port-forwading'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerEks.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The K8s cluster endpoint URL - * @member {String} secure-access-cluster-endpoint - */ - -GatewayUpdateProducerEks.prototype['secure-access-cluster-endpoint'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerEks.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayUpdateProducerEks.prototype['secure-access-web'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerEks.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerEks.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerEks.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerEks.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '15m' - */ - -GatewayUpdateProducerEks.prototype['user-ttl'] = '15m'; -var _default = GatewayUpdateProducerEks; -exports["default"] = _default; - -/***/ }), - -/***/ 11115: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerEksOutput model module. - * @module model/GatewayUpdateProducerEksOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerEksOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerEksOutput. - * @alias module:model/GatewayUpdateProducerEksOutput - */ - function GatewayUpdateProducerEksOutput() { - _classCallCheck(this, GatewayUpdateProducerEksOutput); - - GatewayUpdateProducerEksOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerEksOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerEksOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerEksOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerEksOutput} The populated GatewayUpdateProducerEksOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerEksOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerEksOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerEksOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerEksOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 20241: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerGcp model module. - * @module model/GatewayUpdateProducerGcp - * @version 3.3.16 - */ -var GatewayUpdateProducerGcp = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerGcp. - * gatewayUpdateProducerGcp is a command that updates a GCP producer - * @alias module:model/GatewayUpdateProducerGcp - * @param name {String} Producer name - * @param serviceAccountType {String} The type of the gcp dynamic secret. Options[fixed, dynamic] - */ - function GatewayUpdateProducerGcp(name, serviceAccountType) { - _classCallCheck(this, GatewayUpdateProducerGcp); - - GatewayUpdateProducerGcp.initialize(this, name, serviceAccountType); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerGcp, null, [{ - key: "initialize", - value: function initialize(obj, name, serviceAccountType) { - obj['name'] = name; - obj['service-account-type'] = serviceAccountType; - } - /** - * Constructs a GatewayUpdateProducerGcp from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerGcp} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerGcp} The populated GatewayUpdateProducerGcp instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerGcp(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('gcp-cred-type')) { - obj['gcp-cred-type'] = _ApiClient["default"].convertToType(data['gcp-cred-type'], 'String'); - } - - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); - } - - if (data.hasOwnProperty('gcp-key-algo')) { - obj['gcp-key-algo'] = _ApiClient["default"].convertToType(data['gcp-key-algo'], 'String'); - } - - if (data.hasOwnProperty('gcp-sa-email')) { - obj['gcp-sa-email'] = _ApiClient["default"].convertToType(data['gcp-sa-email'], 'String'); - } - - if (data.hasOwnProperty('gcp-token-scopes')) { - obj['gcp-token-scopes'] = _ApiClient["default"].convertToType(data['gcp-token-scopes'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('role-binding')) { - obj['role-binding'] = _ApiClient["default"].convertToType(data['role-binding'], 'String'); - } - - if (data.hasOwnProperty('service-account-type')) { - obj['service-account-type'] = _ApiClient["default"].convertToType(data['service-account-type'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerGcp; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerGcp.prototype['delete_protection'] = undefined; -/** - * @member {String} gcp-cred-type - */ - -GatewayUpdateProducerGcp.prototype['gcp-cred-type'] = undefined; -/** - * Base64-encoded service account private key text - * @member {String} gcp-key - */ - -GatewayUpdateProducerGcp.prototype['gcp-key'] = undefined; -/** - * Service account key algorithm, e.g. KEY_ALG_RSA_1024 - * @member {String} gcp-key-algo - */ - -GatewayUpdateProducerGcp.prototype['gcp-key-algo'] = undefined; -/** - * The email of the fixed service acocunt to generate keys or tokens for. (revelant for service-account-type=fixed) - * @member {String} gcp-sa-email - */ - -GatewayUpdateProducerGcp.prototype['gcp-sa-email'] = undefined; -/** - * Access token scopes list, e.g. scope1,scope2 - * @member {String} gcp-token-scopes - */ - -GatewayUpdateProducerGcp.prototype['gcp-token-scopes'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerGcp.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerGcp.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerGcp.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerGcp.prototype['producer-encryption-key-name'] = undefined; -/** - * Role binding definitions in json format - * @member {String} role-binding - */ - -GatewayUpdateProducerGcp.prototype['role-binding'] = undefined; -/** - * The type of the gcp dynamic secret. Options[fixed, dynamic] - * @member {String} service-account-type - * @default 'fixed' - */ - -GatewayUpdateProducerGcp.prototype['service-account-type'] = 'fixed'; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerGcp.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerGcp.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerGcp.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerGcp.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerGcp.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerGcp; -exports["default"] = _default; - -/***/ }), - -/***/ 75972: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerGcpOutput model module. - * @module model/GatewayUpdateProducerGcpOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerGcpOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerGcpOutput. - * @alias module:model/GatewayUpdateProducerGcpOutput - */ - function GatewayUpdateProducerGcpOutput() { - _classCallCheck(this, GatewayUpdateProducerGcpOutput); - - GatewayUpdateProducerGcpOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerGcpOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerGcpOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerGcpOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerGcpOutput} The populated GatewayUpdateProducerGcpOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerGcpOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerGcpOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerGcpOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerGcpOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 92212: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerGithub model module. - * @module model/GatewayUpdateProducerGithub - * @version 3.3.16 - */ -var GatewayUpdateProducerGithub = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerGithub. - * gatewayUpdateProducerGithub is a command that updates github producer - * @alias module:model/GatewayUpdateProducerGithub - * @param name {String} Producer name - */ - function GatewayUpdateProducerGithub(name) { - _classCallCheck(this, GatewayUpdateProducerGithub); - - GatewayUpdateProducerGithub.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerGithub, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerGithub from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerGithub} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerGithub} The populated GatewayUpdateProducerGithub instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerGithub(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('github-app-id')) { - obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); - } - - if (data.hasOwnProperty('github-app-private-key')) { - obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); - } - - if (data.hasOwnProperty('github-base-url')) { - obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); - } - - if (data.hasOwnProperty('installation-id')) { - obj['installation-id'] = _ApiClient["default"].convertToType(data['installation-id'], 'Number'); - } - - if (data.hasOwnProperty('installation-repository')) { - obj['installation-repository'] = _ApiClient["default"].convertToType(data['installation-repository'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('token-permissions')) { - obj['token-permissions'] = _ApiClient["default"].convertToType(data['token-permissions'], ['String']); - } - - if (data.hasOwnProperty('token-repositories')) { - obj['token-repositories'] = _ApiClient["default"].convertToType(data['token-repositories'], ['String']); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerGithub; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerGithub.prototype['delete_protection'] = undefined; -/** - * Github app id - * @member {Number} github-app-id - */ - -GatewayUpdateProducerGithub.prototype['github-app-id'] = undefined; -/** - * App private key - * @member {String} github-app-private-key - */ - -GatewayUpdateProducerGithub.prototype['github-app-private-key'] = undefined; -/** - * Base URL - * @member {String} github-base-url - * @default 'https://api.github.com/' - */ - -GatewayUpdateProducerGithub.prototype['github-base-url'] = 'https://api.github.com/'; -/** - * Github app installation id - * @member {Number} installation-id - */ - -GatewayUpdateProducerGithub.prototype['installation-id'] = undefined; -/** - * Repository that the app installation has access to - * @member {String} installation-repository - */ - -GatewayUpdateProducerGithub.prototype['installation-repository'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerGithub.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerGithub.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerGithub.prototype['new-name'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerGithub.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerGithub.prototype['token'] = undefined; -/** - * Optional - installation token's allowed permissions - * @member {Array.} token-permissions - */ - -GatewayUpdateProducerGithub.prototype['token-permissions'] = undefined; -/** - * Optional - installation token's allowed repositories - * @member {Array.} token-repositories - */ - -GatewayUpdateProducerGithub.prototype['token-repositories'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerGithub.prototype['uid-token'] = undefined; -var _default = GatewayUpdateProducerGithub; -exports["default"] = _default; - -/***/ }), - -/***/ 86213: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerGithubOutput model module. - * @module model/GatewayUpdateProducerGithubOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerGithubOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerGithubOutput. - * @alias module:model/GatewayUpdateProducerGithubOutput - */ - function GatewayUpdateProducerGithubOutput() { - _classCallCheck(this, GatewayUpdateProducerGithubOutput); - - GatewayUpdateProducerGithubOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerGithubOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerGithubOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerGithubOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerGithubOutput} The populated GatewayUpdateProducerGithubOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerGithubOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerGithubOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerGithubOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerGithubOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 25062: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerGke model module. - * @module model/GatewayUpdateProducerGke - * @version 3.3.16 - */ -var GatewayUpdateProducerGke = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerGke. - * gatewayUpdateProducerGke is a command that updates gke producer - * @alias module:model/GatewayUpdateProducerGke - * @param name {String} Producer name - */ - function GatewayUpdateProducerGke(name) { - _classCallCheck(this, GatewayUpdateProducerGke); - - GatewayUpdateProducerGke.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerGke, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerGke from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerGke} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerGke} The populated GatewayUpdateProducerGke instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerGke(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('gke-account-key')) { - obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-cert')) { - obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-endpoint')) { - obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-name')) { - obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); - } - - if (data.hasOwnProperty('gke-service-account-email')) { - obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-port-forwading')) { - obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-cluster-endpoint')) { - obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerGke; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerGke.prototype['delete_protection'] = undefined; -/** - * GKE Service Account key file path - * @member {String} gke-account-key - */ - -GatewayUpdateProducerGke.prototype['gke-account-key'] = undefined; -/** - * GKE cluster CA certificate - * @member {String} gke-cluster-cert - */ - -GatewayUpdateProducerGke.prototype['gke-cluster-cert'] = undefined; -/** - * GKE cluster URL endpoint - * @member {String} gke-cluster-endpoint - */ - -GatewayUpdateProducerGke.prototype['gke-cluster-endpoint'] = undefined; -/** - * GKE cluster name - * @member {String} gke-cluster-name - */ - -GatewayUpdateProducerGke.prototype['gke-cluster-name'] = undefined; -/** - * GKE service account email - * @member {String} gke-service-account-email - */ - -GatewayUpdateProducerGke.prototype['gke-service-account-email'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerGke.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerGke.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerGke.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerGke.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable Port forwarding while using CLI access - * @member {Boolean} secure-access-allow-port-forwading - */ - -GatewayUpdateProducerGke.prototype['secure-access-allow-port-forwading'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerGke.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The K8s cluster endpoint URL - * @member {String} secure-access-cluster-endpoint - */ - -GatewayUpdateProducerGke.prototype['secure-access-cluster-endpoint'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerGke.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayUpdateProducerGke.prototype['secure-access-web'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerGke.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerGke.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerGke.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerGke.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerGke.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerGke; -exports["default"] = _default; - -/***/ }), - -/***/ 46467: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerGkeOutput model module. - * @module model/GatewayUpdateProducerGkeOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerGkeOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerGkeOutput. - * @alias module:model/GatewayUpdateProducerGkeOutput - */ - function GatewayUpdateProducerGkeOutput() { - _classCallCheck(this, GatewayUpdateProducerGkeOutput); - - GatewayUpdateProducerGkeOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerGkeOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerGkeOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerGkeOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerGkeOutput} The populated GatewayUpdateProducerGkeOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerGkeOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerGkeOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerGkeOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerGkeOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 88599: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerHanaDb model module. - * @module model/GatewayUpdateProducerHanaDb - * @version 3.3.16 - */ -var GatewayUpdateProducerHanaDb = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerHanaDb. - * gatewayUpdateProducerHanaDb is a command that updates hanadb producer - * @alias module:model/GatewayUpdateProducerHanaDb - * @param name {String} Producer name - */ - function GatewayUpdateProducerHanaDb(name) { - _classCallCheck(this, GatewayUpdateProducerHanaDb); - - GatewayUpdateProducerHanaDb.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerHanaDb, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerHanaDb from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerHanaDb} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerHanaDb} The populated GatewayUpdateProducerHanaDb instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerHanaDb(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('hana-dbname')) { - obj['hana-dbname'] = _ApiClient["default"].convertToType(data['hana-dbname'], 'String'); - } - - if (data.hasOwnProperty('hanadb-create-statements')) { - obj['hanadb-create-statements'] = _ApiClient["default"].convertToType(data['hanadb-create-statements'], 'String'); - } - - if (data.hasOwnProperty('hanadb-host')) { - obj['hanadb-host'] = _ApiClient["default"].convertToType(data['hanadb-host'], 'String'); - } - - if (data.hasOwnProperty('hanadb-password')) { - obj['hanadb-password'] = _ApiClient["default"].convertToType(data['hanadb-password'], 'String'); - } - - if (data.hasOwnProperty('hanadb-port')) { - obj['hanadb-port'] = _ApiClient["default"].convertToType(data['hanadb-port'], 'String'); - } - - if (data.hasOwnProperty('hanadb-revocation-statements')) { - obj['hanadb-revocation-statements'] = _ApiClient["default"].convertToType(data['hanadb-revocation-statements'], 'String'); - } - - if (data.hasOwnProperty('hanadb-username')) { - obj['hanadb-username'] = _ApiClient["default"].convertToType(data['hanadb-username'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerHanaDb; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerHanaDb.prototype['delete_protection'] = undefined; -/** - * HanaDb Name - * @member {String} hana-dbname - */ - -GatewayUpdateProducerHanaDb.prototype['hana-dbname'] = undefined; -/** - * HanaDb Creation statements - * @member {String} hanadb-create-statements - */ - -GatewayUpdateProducerHanaDb.prototype['hanadb-create-statements'] = undefined; -/** - * HanaDb Host - * @member {String} hanadb-host - * @default '127.0.0.1' - */ - -GatewayUpdateProducerHanaDb.prototype['hanadb-host'] = '127.0.0.1'; -/** - * HanaDb Password - * @member {String} hanadb-password - */ - -GatewayUpdateProducerHanaDb.prototype['hanadb-password'] = undefined; -/** - * HanaDb Port - * @member {String} hanadb-port - * @default '443' - */ - -GatewayUpdateProducerHanaDb.prototype['hanadb-port'] = '443'; -/** - * HanaDb Revocation statements - * @member {String} hanadb-revocation-statements - */ - -GatewayUpdateProducerHanaDb.prototype['hanadb-revocation-statements'] = undefined; -/** - * HanaDb Username - * @member {String} hanadb-username - */ - -GatewayUpdateProducerHanaDb.prototype['hanadb-username'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerHanaDb.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerHanaDb.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerHanaDb.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerHanaDb.prototype['producer-encryption-key-name'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerHanaDb.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The DB schema - * @member {String} secure-access-db-schema - */ - -GatewayUpdateProducerHanaDb.prototype['secure-access-db-schema'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerHanaDb.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayUpdateProducerHanaDb.prototype['secure-access-host'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayUpdateProducerHanaDb.prototype['secure-access-web'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerHanaDb.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerHanaDb.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerHanaDb.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerHanaDb.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerHanaDb.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerHanaDb; -exports["default"] = _default; - -/***/ }), - -/***/ 44014: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerHanaDbOutput model module. - * @module model/GatewayUpdateProducerHanaDbOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerHanaDbOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerHanaDbOutput. - * @alias module:model/GatewayUpdateProducerHanaDbOutput - */ - function GatewayUpdateProducerHanaDbOutput() { - _classCallCheck(this, GatewayUpdateProducerHanaDbOutput); - - GatewayUpdateProducerHanaDbOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerHanaDbOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerHanaDbOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerHanaDbOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerHanaDbOutput} The populated GatewayUpdateProducerHanaDbOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerHanaDbOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerHanaDbOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerHanaDbOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerHanaDbOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 65026: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerLdap model module. - * @module model/GatewayUpdateProducerLdap - * @version 3.3.16 - */ -var GatewayUpdateProducerLdap = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerLdap. - * gatewayUpdateProducerLdap is a command that updates ldap producer - * @alias module:model/GatewayUpdateProducerLdap - * @param name {String} Producer name - */ - function GatewayUpdateProducerLdap(name) { - _classCallCheck(this, GatewayUpdateProducerLdap); - - GatewayUpdateProducerLdap.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerLdap, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerLdap from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerLdap} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerLdap} The populated GatewayUpdateProducerLdap instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerLdap(); - - if (data.hasOwnProperty('bind-dn')) { - obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); - } - - if (data.hasOwnProperty('bind-dn-password')) { - obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('external-username')) { - obj['external-username'] = _ApiClient["default"].convertToType(data['external-username'], 'String'); - } - - if (data.hasOwnProperty('group-dn')) { - obj['group-dn'] = _ApiClient["default"].convertToType(data['group-dn'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('ldap-ca-cert')) { - obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('ldap-url')) { - obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('token-expiration')) { - obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-attribute')) { - obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); - } - - if (data.hasOwnProperty('user-dn')) { - obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerLdap; -}(); -/** - * Bind DN - * @member {String} bind-dn - */ - - -GatewayUpdateProducerLdap.prototype['bind-dn'] = undefined; -/** - * Bind DN Password - * @member {String} bind-dn-password - */ - -GatewayUpdateProducerLdap.prototype['bind-dn-password'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerLdap.prototype['delete_protection'] = undefined; -/** - * Externally provided username [true/false] - * @member {String} external-username - * @default 'false' - */ - -GatewayUpdateProducerLdap.prototype['external-username'] = 'false'; -/** - * Group DN which the temporary user should be added - * @member {String} group-dn - */ - -GatewayUpdateProducerLdap.prototype['group-dn'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerLdap.prototype['json'] = false; -/** - * CA Certificate File Content - * @member {String} ldap-ca-cert - */ - -GatewayUpdateProducerLdap.prototype['ldap-ca-cert'] = undefined; -/** - * LDAP Server URL - * @member {String} ldap-url - */ - -GatewayUpdateProducerLdap.prototype['ldap-url'] = undefined; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerLdap.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerLdap.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerLdap.prototype['producer-encryption-key-name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerLdap.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerLdap.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerLdap.prototype['token'] = undefined; -/** - * Token expiration - * @member {String} token-expiration - */ - -GatewayUpdateProducerLdap.prototype['token-expiration'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerLdap.prototype['uid-token'] = undefined; -/** - * User Attribute - * @member {String} user-attribute - */ - -GatewayUpdateProducerLdap.prototype['user-attribute'] = undefined; -/** - * User DN - * @member {String} user-dn - */ - -GatewayUpdateProducerLdap.prototype['user-dn'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerLdap.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerLdap; -exports["default"] = _default; - -/***/ }), - -/***/ 45863: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerLdapOutput model module. - * @module model/GatewayUpdateProducerLdapOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerLdapOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerLdapOutput. - * @alias module:model/GatewayUpdateProducerLdapOutput - */ - function GatewayUpdateProducerLdapOutput() { - _classCallCheck(this, GatewayUpdateProducerLdapOutput); - - GatewayUpdateProducerLdapOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerLdapOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerLdapOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerLdapOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerLdapOutput} The populated GatewayUpdateProducerLdapOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerLdapOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerLdapOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerLdapOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerLdapOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 43407: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerMSSQL model module. - * @module model/GatewayUpdateProducerMSSQL - * @version 3.3.16 - */ -var GatewayUpdateProducerMSSQL = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerMSSQL. - * gatewayUpdateProducerMSSQL is a command that updates mssql producer - * @alias module:model/GatewayUpdateProducerMSSQL - * @param name {String} Producer name - */ - function GatewayUpdateProducerMSSQL(name) { - _classCallCheck(this, GatewayUpdateProducerMSSQL); - - GatewayUpdateProducerMSSQL.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerMSSQL, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerMSSQL from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerMSSQL} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerMSSQL} The populated GatewayUpdateProducerMSSQL instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerMSSQL(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('mssql-create-statements')) { - obj['mssql-create-statements'] = _ApiClient["default"].convertToType(data['mssql-create-statements'], 'String'); - } - - if (data.hasOwnProperty('mssql-dbname')) { - obj['mssql-dbname'] = _ApiClient["default"].convertToType(data['mssql-dbname'], 'String'); - } - - if (data.hasOwnProperty('mssql-host')) { - obj['mssql-host'] = _ApiClient["default"].convertToType(data['mssql-host'], 'String'); - } - - if (data.hasOwnProperty('mssql-password')) { - obj['mssql-password'] = _ApiClient["default"].convertToType(data['mssql-password'], 'String'); - } - - if (data.hasOwnProperty('mssql-port')) { - obj['mssql-port'] = _ApiClient["default"].convertToType(data['mssql-port'], 'String'); - } - - if (data.hasOwnProperty('mssql-revocation-statements')) { - obj['mssql-revocation-statements'] = _ApiClient["default"].convertToType(data['mssql-revocation-statements'], 'String'); - } - - if (data.hasOwnProperty('mssql-username')) { - obj['mssql-username'] = _ApiClient["default"].convertToType(data['mssql-username'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerMSSQL; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerMSSQL.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerMSSQL.prototype['json'] = false; -/** - * MSSQL Creation statements - * @member {String} mssql-create-statements - */ - -GatewayUpdateProducerMSSQL.prototype['mssql-create-statements'] = undefined; -/** - * MSSQL Name - * @member {String} mssql-dbname - */ - -GatewayUpdateProducerMSSQL.prototype['mssql-dbname'] = undefined; -/** - * MSSQL Host - * @member {String} mssql-host - * @default '127.0.0.1' - */ - -GatewayUpdateProducerMSSQL.prototype['mssql-host'] = '127.0.0.1'; -/** - * MSSQL Password - * @member {String} mssql-password - */ - -GatewayUpdateProducerMSSQL.prototype['mssql-password'] = undefined; -/** - * MSSQL Port - * @member {String} mssql-port - * @default '1433' - */ - -GatewayUpdateProducerMSSQL.prototype['mssql-port'] = '1433'; -/** - * MSSQL Revocation statements - * @member {String} mssql-revocation-statements - */ - -GatewayUpdateProducerMSSQL.prototype['mssql-revocation-statements'] = undefined; -/** - * MSSQL Username - * @member {String} mssql-username - */ - -GatewayUpdateProducerMSSQL.prototype['mssql-username'] = undefined; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerMSSQL.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerMSSQL.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerMSSQL.prototype['producer-encryption-key-name'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerMSSQL.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The DB schema - * @member {String} secure-access-db-schema - */ - -GatewayUpdateProducerMSSQL.prototype['secure-access-db-schema'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerMSSQL.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayUpdateProducerMSSQL.prototype['secure-access-host'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayUpdateProducerMSSQL.prototype['secure-access-web'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerMSSQL.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerMSSQL.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerMSSQL.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerMSSQL.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerMSSQL.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerMSSQL; -exports["default"] = _default; - -/***/ }), - -/***/ 8726: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerMSSQLOutput model module. - * @module model/GatewayUpdateProducerMSSQLOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerMSSQLOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerMSSQLOutput. - * @alias module:model/GatewayUpdateProducerMSSQLOutput - */ - function GatewayUpdateProducerMSSQLOutput() { - _classCallCheck(this, GatewayUpdateProducerMSSQLOutput); - - GatewayUpdateProducerMSSQLOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerMSSQLOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerMSSQLOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerMSSQLOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerMSSQLOutput} The populated GatewayUpdateProducerMSSQLOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerMSSQLOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerMSSQLOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerMSSQLOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerMSSQLOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 24975: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerMongo model module. - * @module model/GatewayUpdateProducerMongo - * @version 3.3.16 - */ -var GatewayUpdateProducerMongo = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerMongo. - * gatewayUpdateProducerMongo is a command that updates either mongodb producer or mongodb atlas producer - * @alias module:model/GatewayUpdateProducerMongo - * @param name {String} Producer name - */ - function GatewayUpdateProducerMongo(name) { - _classCallCheck(this, GatewayUpdateProducerMongo); - - GatewayUpdateProducerMongo.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerMongo, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerMongo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerMongo} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerMongo} The populated GatewayUpdateProducerMongo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerMongo(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { - obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { - obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas-project-id')) { - obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); - } - - if (data.hasOwnProperty('mongodb-custom-data')) { - obj['mongodb-custom-data'] = _ApiClient["default"].convertToType(data['mongodb-custom-data'], 'String'); - } - - if (data.hasOwnProperty('mongodb-default-auth-db')) { - obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); - } - - if (data.hasOwnProperty('mongodb-host-port')) { - obj['mongodb-host-port'] = _ApiClient["default"].convertToType(data['mongodb-host-port'], 'String'); - } - - if (data.hasOwnProperty('mongodb-name')) { - obj['mongodb-name'] = _ApiClient["default"].convertToType(data['mongodb-name'], 'String'); - } - - if (data.hasOwnProperty('mongodb-password')) { - obj['mongodb-password'] = _ApiClient["default"].convertToType(data['mongodb-password'], 'String'); - } - - if (data.hasOwnProperty('mongodb-roles')) { - obj['mongodb-roles'] = _ApiClient["default"].convertToType(data['mongodb-roles'], 'String'); - } - - if (data.hasOwnProperty('mongodb-server-uri')) { - obj['mongodb-server-uri'] = _ApiClient["default"].convertToType(data['mongodb-server-uri'], 'String'); - } - - if (data.hasOwnProperty('mongodb-uri-options')) { - obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); - } - - if (data.hasOwnProperty('mongodb-username')) { - obj['mongodb-username'] = _ApiClient["default"].convertToType(data['mongodb-username'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerMongo; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerMongo.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerMongo.prototype['json'] = false; -/** - * MongoDB Atlas private key - * @member {String} mongodb-atlas-api-private-key - */ - -GatewayUpdateProducerMongo.prototype['mongodb-atlas-api-private-key'] = undefined; -/** - * MongoDB Atlas public key - * @member {String} mongodb-atlas-api-public-key - */ - -GatewayUpdateProducerMongo.prototype['mongodb-atlas-api-public-key'] = undefined; -/** - * MongoDB Atlas project ID - * @member {String} mongodb-atlas-project-id - */ - -GatewayUpdateProducerMongo.prototype['mongodb-atlas-project-id'] = undefined; -/** - * MongoDB custom data - * @member {String} mongodb-custom-data - */ - -GatewayUpdateProducerMongo.prototype['mongodb-custom-data'] = undefined; -/** - * MongoDB server default authentication database - * @member {String} mongodb-default-auth-db - */ - -GatewayUpdateProducerMongo.prototype['mongodb-default-auth-db'] = undefined; -/** - * MongoDB server host and port - * @member {String} mongodb-host-port - */ - -GatewayUpdateProducerMongo.prototype['mongodb-host-port'] = undefined; -/** - * MongoDB Name - * @member {String} mongodb-name - */ - -GatewayUpdateProducerMongo.prototype['mongodb-name'] = undefined; -/** - * MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters - * @member {String} mongodb-password - */ - -GatewayUpdateProducerMongo.prototype['mongodb-password'] = undefined; -/** - * MongoDB Roles - * @member {String} mongodb-roles - * @default '[]' - */ - -GatewayUpdateProducerMongo.prototype['mongodb-roles'] = '[]'; -/** - * MongoDB server URI - * @member {String} mongodb-server-uri - */ - -GatewayUpdateProducerMongo.prototype['mongodb-server-uri'] = undefined; -/** - * MongoDB server URI options - * @member {String} mongodb-uri-options - */ - -GatewayUpdateProducerMongo.prototype['mongodb-uri-options'] = undefined; -/** - * MongoDB server username - * @member {String} mongodb-username - */ - -GatewayUpdateProducerMongo.prototype['mongodb-username'] = undefined; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerMongo.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerMongo.prototype['new-name'] = undefined; -/** - * Encrypt producer with following key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerMongo.prototype['producer-encryption-key-name'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerMongo.prototype['secure-access-bastion-issuer'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerMongo.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayUpdateProducerMongo.prototype['secure-access-host'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayUpdateProducerMongo.prototype['secure-access-web'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerMongo.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerMongo.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerMongo.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerMongo.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerMongo.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerMongo; -exports["default"] = _default; - -/***/ }), - -/***/ 38390: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerMongoOutput model module. - * @module model/GatewayUpdateProducerMongoOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerMongoOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerMongoOutput. - * @alias module:model/GatewayUpdateProducerMongoOutput - */ - function GatewayUpdateProducerMongoOutput() { - _classCallCheck(this, GatewayUpdateProducerMongoOutput); - - GatewayUpdateProducerMongoOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerMongoOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerMongoOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerMongoOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerMongoOutput} The populated GatewayUpdateProducerMongoOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerMongoOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerMongoOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerMongoOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerMongoOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 50937: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerMySQL model module. - * @module model/GatewayUpdateProducerMySQL - * @version 3.3.16 - */ -var GatewayUpdateProducerMySQL = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerMySQL. - * gatewayUpdateProducerMySQL is a command that updates mysql producer - * @alias module:model/GatewayUpdateProducerMySQL - * @param name {String} Producer name - */ - function GatewayUpdateProducerMySQL(name) { - _classCallCheck(this, GatewayUpdateProducerMySQL); - - GatewayUpdateProducerMySQL.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerMySQL, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerMySQL from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerMySQL} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerMySQL} The populated GatewayUpdateProducerMySQL instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerMySQL(); - - if (data.hasOwnProperty('db-server-certificates')) { - obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); - } - - if (data.hasOwnProperty('db-server-name')) { - obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('mysql-dbname')) { - obj['mysql-dbname'] = _ApiClient["default"].convertToType(data['mysql-dbname'], 'String'); - } - - if (data.hasOwnProperty('mysql-host')) { - obj['mysql-host'] = _ApiClient["default"].convertToType(data['mysql-host'], 'String'); - } - - if (data.hasOwnProperty('mysql-password')) { - obj['mysql-password'] = _ApiClient["default"].convertToType(data['mysql-password'], 'String'); - } - - if (data.hasOwnProperty('mysql-port')) { - obj['mysql-port'] = _ApiClient["default"].convertToType(data['mysql-port'], 'String'); - } - - if (data.hasOwnProperty('mysql-revocation-statements')) { - obj['mysql-revocation-statements'] = _ApiClient["default"].convertToType(data['mysql-revocation-statements'], 'String'); - } - - if (data.hasOwnProperty('mysql-screation-statements')) { - obj['mysql-screation-statements'] = _ApiClient["default"].convertToType(data['mysql-screation-statements'], 'String'); - } - - if (data.hasOwnProperty('mysql-username')) { - obj['mysql-username'] = _ApiClient["default"].convertToType(data['mysql-username'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('ssl-certificate')) { - obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerMySQL; -}(); -/** - * (Optional) DB server certificates - * @member {String} db-server-certificates - */ - - -GatewayUpdateProducerMySQL.prototype['db-server-certificates'] = undefined; -/** - * (Optional) Server name for certificate verification - * @member {String} db-server-name - */ - -GatewayUpdateProducerMySQL.prototype['db-server-name'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerMySQL.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerMySQL.prototype['json'] = false; -/** - * MySQL DB Name - * @member {String} mysql-dbname - */ - -GatewayUpdateProducerMySQL.prototype['mysql-dbname'] = undefined; -/** - * MySQL Host - * @member {String} mysql-host - * @default '127.0.0.1' - */ - -GatewayUpdateProducerMySQL.prototype['mysql-host'] = '127.0.0.1'; -/** - * MySQL Password - * @member {String} mysql-password - */ - -GatewayUpdateProducerMySQL.prototype['mysql-password'] = undefined; -/** - * MySQL Port - * @member {String} mysql-port - * @default '3306' - */ - -GatewayUpdateProducerMySQL.prototype['mysql-port'] = '3306'; -/** - * MySQL Revocation statements - * @member {String} mysql-revocation-statements - */ - -GatewayUpdateProducerMySQL.prototype['mysql-revocation-statements'] = undefined; -/** - * MySQL Creation statements - * @member {String} mysql-screation-statements - */ - -GatewayUpdateProducerMySQL.prototype['mysql-screation-statements'] = undefined; -/** - * MySQL Username - * @member {String} mysql-username - */ - -GatewayUpdateProducerMySQL.prototype['mysql-username'] = undefined; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerMySQL.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerMySQL.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerMySQL.prototype['producer-encryption-key-name'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerMySQL.prototype['secure-access-bastion-issuer'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerMySQL.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayUpdateProducerMySQL.prototype['secure-access-host'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayUpdateProducerMySQL.prototype['secure-access-web'] = false; -/** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false - */ - -GatewayUpdateProducerMySQL.prototype['ssl'] = false; -/** - * SSL connection certificate - * @member {String} ssl-certificate - */ - -GatewayUpdateProducerMySQL.prototype['ssl-certificate'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerMySQL.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerMySQL.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerMySQL.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerMySQL.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerMySQL.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerMySQL; -exports["default"] = _default; - -/***/ }), - -/***/ 7548: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerMySQLOutput model module. - * @module model/GatewayUpdateProducerMySQLOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerMySQLOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerMySQLOutput. - * @alias module:model/GatewayUpdateProducerMySQLOutput - */ - function GatewayUpdateProducerMySQLOutput() { - _classCallCheck(this, GatewayUpdateProducerMySQLOutput); - - GatewayUpdateProducerMySQLOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerMySQLOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerMySQLOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerMySQLOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerMySQLOutput} The populated GatewayUpdateProducerMySQLOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerMySQLOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerMySQLOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerMySQLOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerMySQLOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 47170: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerNativeK8S model module. - * @module model/GatewayUpdateProducerNativeK8S - * @version 3.3.16 - */ -var GatewayUpdateProducerNativeK8S = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerNativeK8S. - * gatewayUpdateProducerNativeK8S is a command that updates k8s producer - * @alias module:model/GatewayUpdateProducerNativeK8S - * @param name {String} Producer name - */ - function GatewayUpdateProducerNativeK8S(name) { - _classCallCheck(this, GatewayUpdateProducerNativeK8S); - - GatewayUpdateProducerNativeK8S.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerNativeK8S, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerNativeK8S from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerNativeK8S} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerNativeK8S} The populated GatewayUpdateProducerNativeK8S instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerNativeK8S(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s-allowed-namespaces')) { - obj['k8s-allowed-namespaces'] = _ApiClient["default"].convertToType(data['k8s-allowed-namespaces'], 'String'); - } - - if (data.hasOwnProperty('k8s-cluster-ca-cert')) { - obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('k8s-cluster-endpoint')) { - obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('k8s-cluster-token')) { - obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); - } - - if (data.hasOwnProperty('k8s-namespace')) { - obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); - } - - if (data.hasOwnProperty('k8s-predefined-role-name')) { - obj['k8s-predefined-role-name'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-name'], 'String'); - } - - if (data.hasOwnProperty('k8s-predefined-role-type')) { - obj['k8s-predefined-role-type'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-type'], 'String'); - } - - if (data.hasOwnProperty('k8s-rolebinding-yaml-def')) { - obj['k8s-rolebinding-yaml-def'] = _ApiClient["default"].convertToType(data['k8s-rolebinding-yaml-def'], 'String'); - } - - if (data.hasOwnProperty('k8s-service-account')) { - obj['k8s-service-account'] = _ApiClient["default"].convertToType(data['k8s-service-account'], 'String'); - } - - if (data.hasOwnProperty('k8s-service-account-type')) { - obj['k8s-service-account-type'] = _ApiClient["default"].convertToType(data['k8s-service-account-type'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-port-forwading')) { - obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-cluster-endpoint')) { - obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('secure-access-dashboard-url')) { - obj['secure-access-dashboard-url'] = _ApiClient["default"].convertToType(data['secure-access-dashboard-url'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('use-gw-service-account')) { - obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerNativeK8S; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerNativeK8S.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerNativeK8S.prototype['json'] = false; -/** - * Comma-separated list of allowed K8S namespaces for the generated ServiceAccount (relevant only for k8s-service-account-type=dynamic) - * @member {String} k8s-allowed-namespaces - */ - -GatewayUpdateProducerNativeK8S.prototype['k8s-allowed-namespaces'] = undefined; -/** - * K8S cluster CA certificate - * @member {String} k8s-cluster-ca-cert - */ - -GatewayUpdateProducerNativeK8S.prototype['k8s-cluster-ca-cert'] = undefined; -/** - * K8S cluster URL endpoint - * @member {String} k8s-cluster-endpoint - */ - -GatewayUpdateProducerNativeK8S.prototype['k8s-cluster-endpoint'] = undefined; -/** - * K8S cluster Bearer token - * @member {String} k8s-cluster-token - */ - -GatewayUpdateProducerNativeK8S.prototype['k8s-cluster-token'] = undefined; -/** - * K8S Namespace where the ServiceAccount exists. - * @member {String} k8s-namespace - */ - -GatewayUpdateProducerNativeK8S.prototype['k8s-namespace'] = undefined; -/** - * The pre-existing Role or ClusterRole name to bind the generated ServiceAccount to (relevant only for k8s-service-account-type=dynamic) - * @member {String} k8s-predefined-role-name - */ - -GatewayUpdateProducerNativeK8S.prototype['k8s-predefined-role-name'] = undefined; -/** - * Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic) - * @member {String} k8s-predefined-role-type - */ - -GatewayUpdateProducerNativeK8S.prototype['k8s-predefined-role-type'] = undefined; -/** - * Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic) - * @member {String} k8s-rolebinding-yaml-def - */ - -GatewayUpdateProducerNativeK8S.prototype['k8s-rolebinding-yaml-def'] = undefined; -/** - * K8S ServiceAccount to extract token from. - * @member {String} k8s-service-account - */ - -GatewayUpdateProducerNativeK8S.prototype['k8s-service-account'] = undefined; -/** - * K8S ServiceAccount type [fixed, dynamic]. - * @member {String} k8s-service-account-type - */ - -GatewayUpdateProducerNativeK8S.prototype['k8s-service-account-type'] = undefined; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerNativeK8S.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerNativeK8S.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerNativeK8S.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable Port forwarding while using CLI access - * @member {Boolean} secure-access-allow-port-forwading - */ - -GatewayUpdateProducerNativeK8S.prototype['secure-access-allow-port-forwading'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerNativeK8S.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The K8s cluster endpoint URL - * @member {String} secure-access-cluster-endpoint - */ - -GatewayUpdateProducerNativeK8S.prototype['secure-access-cluster-endpoint'] = undefined; -/** - * The K8s dashboard url - * @member {String} secure-access-dashboard-url - */ - -GatewayUpdateProducerNativeK8S.prototype['secure-access-dashboard-url'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerNativeK8S.prototype['secure-access-enable'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayUpdateProducerNativeK8S.prototype['secure-access-web'] = false; -/** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false - */ - -GatewayUpdateProducerNativeK8S.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false - */ - -GatewayUpdateProducerNativeK8S.prototype['secure-access-web-proxy'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerNativeK8S.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerNativeK8S.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerNativeK8S.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerNativeK8S.prototype['uid-token'] = undefined; -/** - * Use the GW's service account - * @member {Boolean} use-gw-service-account - */ - -GatewayUpdateProducerNativeK8S.prototype['use-gw-service-account'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerNativeK8S.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerNativeK8S; -exports["default"] = _default; - -/***/ }), - -/***/ 80839: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerNativeK8SOutput model module. - * @module model/GatewayUpdateProducerNativeK8SOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerNativeK8SOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerNativeK8SOutput. - * @alias module:model/GatewayUpdateProducerNativeK8SOutput - */ - function GatewayUpdateProducerNativeK8SOutput() { - _classCallCheck(this, GatewayUpdateProducerNativeK8SOutput); - - GatewayUpdateProducerNativeK8SOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerNativeK8SOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerNativeK8SOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerNativeK8SOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerNativeK8SOutput} The populated GatewayUpdateProducerNativeK8SOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerNativeK8SOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerNativeK8SOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerNativeK8SOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerNativeK8SOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 9399: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerOracleDb model module. - * @module model/GatewayUpdateProducerOracleDb - * @version 3.3.16 - */ -var GatewayUpdateProducerOracleDb = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerOracleDb. - * gatewayUpdateProducerOracleDb is a command that updates oracle db producer - * @alias module:model/GatewayUpdateProducerOracleDb - * @param name {String} Producer name - */ - function GatewayUpdateProducerOracleDb(name) { - _classCallCheck(this, GatewayUpdateProducerOracleDb); - - GatewayUpdateProducerOracleDb.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerOracleDb, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerOracleDb from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerOracleDb} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerOracleDb} The populated GatewayUpdateProducerOracleDb instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerOracleDb(); - - if (data.hasOwnProperty('db-server-certificates')) { - obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); - } - - if (data.hasOwnProperty('db-server-name')) { - obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('oracle-host')) { - obj['oracle-host'] = _ApiClient["default"].convertToType(data['oracle-host'], 'String'); - } - - if (data.hasOwnProperty('oracle-password')) { - obj['oracle-password'] = _ApiClient["default"].convertToType(data['oracle-password'], 'String'); - } - - if (data.hasOwnProperty('oracle-port')) { - obj['oracle-port'] = _ApiClient["default"].convertToType(data['oracle-port'], 'String'); - } - - if (data.hasOwnProperty('oracle-screation-statements')) { - obj['oracle-screation-statements'] = _ApiClient["default"].convertToType(data['oracle-screation-statements'], 'String'); - } - - if (data.hasOwnProperty('oracle-service-name')) { - obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); - } - - if (data.hasOwnProperty('oracle-username')) { - obj['oracle-username'] = _ApiClient["default"].convertToType(data['oracle-username'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerOracleDb; -}(); -/** - * (Optional) DB server certificates - * @member {String} db-server-certificates - */ - - -GatewayUpdateProducerOracleDb.prototype['db-server-certificates'] = undefined; -/** - * (Optional) Server name for certificate verification - * @member {String} db-server-name - */ - -GatewayUpdateProducerOracleDb.prototype['db-server-name'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerOracleDb.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerOracleDb.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerOracleDb.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerOracleDb.prototype['new-name'] = undefined; -/** - * Oracle Host - * @member {String} oracle-host - * @default '127.0.0.1' - */ - -GatewayUpdateProducerOracleDb.prototype['oracle-host'] = '127.0.0.1'; -/** - * Oracle Password - * @member {String} oracle-password - */ - -GatewayUpdateProducerOracleDb.prototype['oracle-password'] = undefined; -/** - * Oracle Port - * @member {String} oracle-port - * @default '1521' - */ - -GatewayUpdateProducerOracleDb.prototype['oracle-port'] = '1521'; -/** - * Oracle Creation statements - * @member {String} oracle-screation-statements - */ - -GatewayUpdateProducerOracleDb.prototype['oracle-screation-statements'] = undefined; -/** - * Oracle DB Name - * @member {String} oracle-service-name - */ - -GatewayUpdateProducerOracleDb.prototype['oracle-service-name'] = undefined; -/** - * Oracle Username - * @member {String} oracle-username - */ - -GatewayUpdateProducerOracleDb.prototype['oracle-username'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerOracleDb.prototype['producer-encryption-key-name'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerOracleDb.prototype['secure-access-bastion-issuer'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - * @default 'false' - */ - -GatewayUpdateProducerOracleDb.prototype['secure-access-enable'] = 'false'; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayUpdateProducerOracleDb.prototype['secure-access-host'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayUpdateProducerOracleDb.prototype['secure-access-web'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerOracleDb.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerOracleDb.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerOracleDb.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerOracleDb.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerOracleDb.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerOracleDb; -exports["default"] = _default; - -/***/ }), - -/***/ 97550: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerOracleDbOutput model module. - * @module model/GatewayUpdateProducerOracleDbOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerOracleDbOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerOracleDbOutput. - * @alias module:model/GatewayUpdateProducerOracleDbOutput - */ - function GatewayUpdateProducerOracleDbOutput() { - _classCallCheck(this, GatewayUpdateProducerOracleDbOutput); - - GatewayUpdateProducerOracleDbOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerOracleDbOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerOracleDbOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerOracleDbOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerOracleDbOutput} The populated GatewayUpdateProducerOracleDbOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerOracleDbOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerOracleDbOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerOracleDbOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerOracleDbOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 2311: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerPing model module. - * @module model/GatewayUpdateProducerPing - * @version 3.3.16 - */ -var GatewayUpdateProducerPing = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerPing. - * gatewayUpdateProducerPing is a command that updates Ping producer - * @alias module:model/GatewayUpdateProducerPing - * @param name {String} Producer name - */ - function GatewayUpdateProducerPing(name) { - _classCallCheck(this, GatewayUpdateProducerPing); - - GatewayUpdateProducerPing.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerPing, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerPing from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerPing} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerPing} The populated GatewayUpdateProducerPing instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerPing(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('ping-administrative-port')) { - obj['ping-administrative-port'] = _ApiClient["default"].convertToType(data['ping-administrative-port'], 'String'); - } - - if (data.hasOwnProperty('ping-atm-id')) { - obj['ping-atm-id'] = _ApiClient["default"].convertToType(data['ping-atm-id'], 'String'); - } - - if (data.hasOwnProperty('ping-authorization-port')) { - obj['ping-authorization-port'] = _ApiClient["default"].convertToType(data['ping-authorization-port'], 'String'); - } - - if (data.hasOwnProperty('ping-cert-subject-dn')) { - obj['ping-cert-subject-dn'] = _ApiClient["default"].convertToType(data['ping-cert-subject-dn'], 'String'); - } - - if (data.hasOwnProperty('ping-client-authentication-type')) { - obj['ping-client-authentication-type'] = _ApiClient["default"].convertToType(data['ping-client-authentication-type'], 'String'); - } - - if (data.hasOwnProperty('ping-enforce-replay-prevention')) { - obj['ping-enforce-replay-prevention'] = _ApiClient["default"].convertToType(data['ping-enforce-replay-prevention'], 'String'); - } - - if (data.hasOwnProperty('ping-grant-types')) { - obj['ping-grant-types'] = _ApiClient["default"].convertToType(data['ping-grant-types'], ['String']); - } - - if (data.hasOwnProperty('ping-issuer-dn')) { - obj['ping-issuer-dn'] = _ApiClient["default"].convertToType(data['ping-issuer-dn'], 'String'); - } - - if (data.hasOwnProperty('ping-jwks')) { - obj['ping-jwks'] = _ApiClient["default"].convertToType(data['ping-jwks'], 'String'); - } - - if (data.hasOwnProperty('ping-jwks-url')) { - obj['ping-jwks-url'] = _ApiClient["default"].convertToType(data['ping-jwks-url'], 'String'); - } - - if (data.hasOwnProperty('ping-password')) { - obj['ping-password'] = _ApiClient["default"].convertToType(data['ping-password'], 'String'); - } - - if (data.hasOwnProperty('ping-privileged-user')) { - obj['ping-privileged-user'] = _ApiClient["default"].convertToType(data['ping-privileged-user'], 'String'); - } - - if (data.hasOwnProperty('ping-redirect-uris')) { - obj['ping-redirect-uris'] = _ApiClient["default"].convertToType(data['ping-redirect-uris'], ['String']); - } - - if (data.hasOwnProperty('ping-restricted-scopes')) { - obj['ping-restricted-scopes'] = _ApiClient["default"].convertToType(data['ping-restricted-scopes'], ['String']); - } - - if (data.hasOwnProperty('ping-signing-algo')) { - obj['ping-signing-algo'] = _ApiClient["default"].convertToType(data['ping-signing-algo'], 'String'); - } - - if (data.hasOwnProperty('ping-url')) { - obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerPing; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerPing.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerPing.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerPing.prototype['name'] = undefined; -/** - * Producer New name - * @member {String} new-name - */ - -GatewayUpdateProducerPing.prototype['new-name'] = undefined; -/** - * Ping Federate administrative port - * @member {String} ping-administrative-port - * @default '9999' - */ - -GatewayUpdateProducerPing.prototype['ping-administrative-port'] = '9999'; -/** - * Set a specific Access Token Management (ATM) instance for the created OAuth Client by providing the ATM Id. If no explicit value is given, the default pingfederate server ATM will be set. - * @member {String} ping-atm-id - */ - -GatewayUpdateProducerPing.prototype['ping-atm-id'] = undefined; -/** - * Ping Federate authorization port - * @member {String} ping-authorization-port - * @default '9031' - */ - -GatewayUpdateProducerPing.prototype['ping-authorization-port'] = '9031'; -/** - * The subject DN of the client certificate. If no explicit value is given, the producer will create CA certificate and matched client certificate and return it as value. Used in conjunction with ping-issuer-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) - * @member {String} ping-cert-subject-dn - */ - -GatewayUpdateProducerPing.prototype['ping-cert-subject-dn'] = undefined; -/** - * OAuth Client Authentication Type [CLIENT_SECRET, PRIVATE_KEY_JWT, CLIENT_TLS_CERTIFICATE] - * @member {String} ping-client-authentication-type - * @default 'CLIENT_SECRET' - */ - -GatewayUpdateProducerPing.prototype['ping-client-authentication-type'] = 'CLIENT_SECRET'; -/** - * Determines whether PingFederate requires a unique signed JWT from the client for each action (relevant for PRIVATE_KEY_JWT authentication method) [true/false] - * @member {String} ping-enforce-replay-prevention - * @default 'false' - */ - -GatewayUpdateProducerPing.prototype['ping-enforce-replay-prevention'] = 'false'; -/** - * List of OAuth client grant types [IMPLICIT, AUTHORIZATION_CODE, CLIENT_CREDENTIALS, TOKEN_EXCHANGE, REFRESH_TOKEN, ASSERTION_GRANTS, PASSWORD, RESOURCE_OWNER_CREDENTIALS]. If no explicit value is given, AUTHORIZATION_CODE will be selected as default. - * @member {Array.} ping-grant-types - */ - -GatewayUpdateProducerPing.prototype['ping-grant-types'] = undefined; -/** - * Issuer DN of trusted CA certificate that imported into Ping Federate server. You may select \\\"Trust Any\\\" to trust all the existing issuers in Ping Federate server. Used in conjunction with ping-cert-subject-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) - * @member {String} ping-issuer-dn - */ - -GatewayUpdateProducerPing.prototype['ping-issuer-dn'] = undefined; -/** - * Base64-encoded JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT (Sign Algo: RS256) and return it as value (relevant for PRIVATE_KEY_JWT authentication method) - * @member {String} ping-jwks - */ - -GatewayUpdateProducerPing.prototype['ping-jwks'] = undefined; -/** - * The URL of the JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT and return it as value (relevant for PRIVATE_KEY_JWT authentication method) - * @member {String} ping-jwks-url - */ - -GatewayUpdateProducerPing.prototype['ping-jwks-url'] = undefined; -/** - * Ping Federate privileged user password - * @member {String} ping-password - */ - -GatewayUpdateProducerPing.prototype['ping-password'] = undefined; -/** - * Ping Federate privileged user - * @member {String} ping-privileged-user - */ - -GatewayUpdateProducerPing.prototype['ping-privileged-user'] = undefined; -/** - * List of URIs to which the OAuth authorization server may redirect the resource owner's user agent after authorization is obtained. At least one redirection URI is required for the AUTHORIZATION_CODE and IMPLICIT grant types. - * @member {Array.} ping-redirect-uris - */ - -GatewayUpdateProducerPing.prototype['ping-redirect-uris'] = undefined; -/** - * Limit the OAuth client to specific scopes list - * @member {Array.} ping-restricted-scopes - */ - -GatewayUpdateProducerPing.prototype['ping-restricted-scopes'] = undefined; -/** - * The signing algorithm that the client must use to sign its request objects [RS256,RS384,RS512,ES256,ES384,ES512,PS256,PS384,PS512] If no explicit value is given, the client can use any of the supported signing algorithms (relevant for PRIVATE_KEY_JWT authentication method) - * @member {String} ping-signing-algo - */ - -GatewayUpdateProducerPing.prototype['ping-signing-algo'] = undefined; -/** - * Ping URL - * @member {String} ping-url - */ - -GatewayUpdateProducerPing.prototype['ping-url'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerPing.prototype['producer-encryption-key-name'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerPing.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerPing.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerPing.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerPing.prototype['uid-token'] = undefined; -/** - * The time from dynamic secret creation to expiration. - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerPing.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerPing; -exports["default"] = _default; - -/***/ }), - -/***/ 82046: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerPingOutput model module. - * @module model/GatewayUpdateProducerPingOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerPingOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerPingOutput. - * @alias module:model/GatewayUpdateProducerPingOutput - */ - function GatewayUpdateProducerPingOutput() { - _classCallCheck(this, GatewayUpdateProducerPingOutput); - - GatewayUpdateProducerPingOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerPingOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerPingOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerPingOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerPingOutput} The populated GatewayUpdateProducerPingOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerPingOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerPingOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerPingOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerPingOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 42517: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerPostgreSQL model module. - * @module model/GatewayUpdateProducerPostgreSQL - * @version 3.3.16 - */ -var GatewayUpdateProducerPostgreSQL = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerPostgreSQL. - * gatewayUpdateProducerPostgreSQL is a command that updates postgresql producer - * @alias module:model/GatewayUpdateProducerPostgreSQL - * @param name {String} Producer name - */ - function GatewayUpdateProducerPostgreSQL(name) { - _classCallCheck(this, GatewayUpdateProducerPostgreSQL); - - GatewayUpdateProducerPostgreSQL.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerPostgreSQL, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerPostgreSQL from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerPostgreSQL} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerPostgreSQL} The populated GatewayUpdateProducerPostgreSQL instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerPostgreSQL(); - - if (data.hasOwnProperty('creation-statements')) { - obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('postgresql-db-name')) { - obj['postgresql-db-name'] = _ApiClient["default"].convertToType(data['postgresql-db-name'], 'String'); - } - - if (data.hasOwnProperty('postgresql-host')) { - obj['postgresql-host'] = _ApiClient["default"].convertToType(data['postgresql-host'], 'String'); - } - - if (data.hasOwnProperty('postgresql-password')) { - obj['postgresql-password'] = _ApiClient["default"].convertToType(data['postgresql-password'], 'String'); - } - - if (data.hasOwnProperty('postgresql-port')) { - obj['postgresql-port'] = _ApiClient["default"].convertToType(data['postgresql-port'], 'String'); - } - - if (data.hasOwnProperty('postgresql-username')) { - obj['postgresql-username'] = _ApiClient["default"].convertToType(data['postgresql-username'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key')) { - obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); - } - - if (data.hasOwnProperty('revocation-statement')) { - obj['revocation-statement'] = _ApiClient["default"].convertToType(data['revocation-statement'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerPostgreSQL; -}(); -/** - * PostgreSQL Creation statements - * @member {String} creation-statements - */ - - -GatewayUpdateProducerPostgreSQL.prototype['creation-statements'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerPostgreSQL.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerPostgreSQL.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerPostgreSQL.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerPostgreSQL.prototype['new-name'] = undefined; -/** - * PostgreSQL DB Name - * @member {String} postgresql-db-name - */ - -GatewayUpdateProducerPostgreSQL.prototype['postgresql-db-name'] = undefined; -/** - * PostgreSQL Host - * @member {String} postgresql-host - * @default '127.0.0.1' - */ - -GatewayUpdateProducerPostgreSQL.prototype['postgresql-host'] = '127.0.0.1'; -/** - * PostgreSQL Password - * @member {String} postgresql-password - */ - -GatewayUpdateProducerPostgreSQL.prototype['postgresql-password'] = undefined; -/** - * PostgreSQL Port - * @member {String} postgresql-port - * @default '5432' - */ - -GatewayUpdateProducerPostgreSQL.prototype['postgresql-port'] = '5432'; -/** - * PostgreSQL Username - * @member {String} postgresql-username - */ - -GatewayUpdateProducerPostgreSQL.prototype['postgresql-username'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key - */ - -GatewayUpdateProducerPostgreSQL.prototype['producer-encryption-key'] = undefined; -/** - * PostgreSQL Revocation statements - * @member {String} revocation-statement - */ - -GatewayUpdateProducerPostgreSQL.prototype['revocation-statement'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -GatewayUpdateProducerPostgreSQL.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The DB schema - * @member {String} secure-access-db-schema - */ - -GatewayUpdateProducerPostgreSQL.prototype['secure-access-db-schema'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerPostgreSQL.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayUpdateProducerPostgreSQL.prototype['secure-access-host'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -GatewayUpdateProducerPostgreSQL.prototype['secure-access-web'] = false; -/** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false - */ - -GatewayUpdateProducerPostgreSQL.prototype['ssl'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerPostgreSQL.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerPostgreSQL.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerPostgreSQL.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerPostgreSQL.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerPostgreSQL.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerPostgreSQL; -exports["default"] = _default; - -/***/ }), - -/***/ 41024: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerPostgreSQLOutput model module. - * @module model/GatewayUpdateProducerPostgreSQLOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerPostgreSQLOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerPostgreSQLOutput. - * @alias module:model/GatewayUpdateProducerPostgreSQLOutput - */ - function GatewayUpdateProducerPostgreSQLOutput() { - _classCallCheck(this, GatewayUpdateProducerPostgreSQLOutput); - - GatewayUpdateProducerPostgreSQLOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerPostgreSQLOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerPostgreSQLOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerPostgreSQLOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerPostgreSQLOutput} The populated GatewayUpdateProducerPostgreSQLOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerPostgreSQLOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerPostgreSQLOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerPostgreSQLOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerPostgreSQLOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 70229: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerRabbitMQ model module. - * @module model/GatewayUpdateProducerRabbitMQ - * @version 3.3.16 - */ -var GatewayUpdateProducerRabbitMQ = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerRabbitMQ. - * gatewayUpdateProducerRabbitMQ is a command that updates rabbitmq producer - * @alias module:model/GatewayUpdateProducerRabbitMQ - * @param name {String} Producer name - */ - function GatewayUpdateProducerRabbitMQ(name) { - _classCallCheck(this, GatewayUpdateProducerRabbitMQ); - - GatewayUpdateProducerRabbitMQ.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerRabbitMQ, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerRabbitMQ from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerRabbitMQ} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerRabbitMQ} The populated GatewayUpdateProducerRabbitMQ instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerRabbitMQ(); - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-admin-pwd')) { - obj['rabbitmq-admin-pwd'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-pwd'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-admin-user')) { - obj['rabbitmq-admin-user'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-user'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-server-uri')) { - obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-user-conf-permission')) { - obj['rabbitmq-user-conf-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-conf-permission'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-user-read-permission')) { - obj['rabbitmq-user-read-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-read-permission'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-user-tags')) { - obj['rabbitmq-user-tags'] = _ApiClient["default"].convertToType(data['rabbitmq-user-tags'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-user-vhost')) { - obj['rabbitmq-user-vhost'] = _ApiClient["default"].convertToType(data['rabbitmq-user-vhost'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-user-write-permission')) { - obj['rabbitmq-user-write-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-write-permission'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-url')) { - obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerRabbitMQ; -}(); -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - - -GatewayUpdateProducerRabbitMQ.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerRabbitMQ.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerRabbitMQ.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerRabbitMQ.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerRabbitMQ.prototype['producer-encryption-key-name'] = undefined; -/** - * RabbitMQ Admin password - * @member {String} rabbitmq-admin-pwd - */ - -GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-admin-pwd'] = undefined; -/** - * RabbitMQ Admin User - * @member {String} rabbitmq-admin-user - */ - -GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-admin-user'] = undefined; -/** - * Server URI - * @member {String} rabbitmq-server-uri - */ - -GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-server-uri'] = undefined; -/** - * User configuration permission - * @member {String} rabbitmq-user-conf-permission - */ - -GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-conf-permission'] = undefined; -/** - * User read permission - * @member {String} rabbitmq-user-read-permission - */ - -GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-read-permission'] = undefined; -/** - * User Tags - * @member {String} rabbitmq-user-tags - */ - -GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-tags'] = undefined; -/** - * User Virtual Host - * @member {String} rabbitmq-user-vhost - */ - -GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-vhost'] = undefined; -/** - * User write permission - * @member {String} rabbitmq-user-write-permission - */ - -GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-write-permission'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerRabbitMQ.prototype['secure-access-enable'] = undefined; -/** - * Destination URL to inject secrets - * @member {String} secure-access-url - */ - -GatewayUpdateProducerRabbitMQ.prototype['secure-access-url'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default true - */ - -GatewayUpdateProducerRabbitMQ.prototype['secure-access-web'] = true; -/** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false - */ - -GatewayUpdateProducerRabbitMQ.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false - */ - -GatewayUpdateProducerRabbitMQ.prototype['secure-access-web-proxy'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerRabbitMQ.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerRabbitMQ.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerRabbitMQ.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerRabbitMQ.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerRabbitMQ.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerRabbitMQ; -exports["default"] = _default; - -/***/ }), - -/***/ 13216: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerRabbitMQOutput model module. - * @module model/GatewayUpdateProducerRabbitMQOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerRabbitMQOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerRabbitMQOutput. - * @alias module:model/GatewayUpdateProducerRabbitMQOutput - */ - function GatewayUpdateProducerRabbitMQOutput() { - _classCallCheck(this, GatewayUpdateProducerRabbitMQOutput); - - GatewayUpdateProducerRabbitMQOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerRabbitMQOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerRabbitMQOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerRabbitMQOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerRabbitMQOutput} The populated GatewayUpdateProducerRabbitMQOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerRabbitMQOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerRabbitMQOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerRabbitMQOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerRabbitMQOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 47813: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerRdp model module. - * @module model/GatewayUpdateProducerRdp - * @version 3.3.16 - */ -var GatewayUpdateProducerRdp = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerRdp. - * gatewayUpdateProducerRdp is a command that updates rdp producer - * @alias module:model/GatewayUpdateProducerRdp - * @param name {String} Producer name - */ - function GatewayUpdateProducerRdp(name) { - _classCallCheck(this, GatewayUpdateProducerRdp); - - GatewayUpdateProducerRdp.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerRdp, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerRdp from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerRdp} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerRdp} The populated GatewayUpdateProducerRdp instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerRdp(); - - if (data.hasOwnProperty('allow-user-extend-session')) { - obj['allow-user-extend-session'] = _ApiClient["default"].convertToType(data['allow-user-extend-session'], 'Number'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('fixed-user-only')) { - obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('rdp-admin-name')) { - obj['rdp-admin-name'] = _ApiClient["default"].convertToType(data['rdp-admin-name'], 'String'); - } - - if (data.hasOwnProperty('rdp-admin-pwd')) { - obj['rdp-admin-pwd'] = _ApiClient["default"].convertToType(data['rdp-admin-pwd'], 'String'); - } - - if (data.hasOwnProperty('rdp-host-name')) { - obj['rdp-host-name'] = _ApiClient["default"].convertToType(data['rdp-host-name'], 'String'); - } - - if (data.hasOwnProperty('rdp-host-port')) { - obj['rdp-host-port'] = _ApiClient["default"].convertToType(data['rdp-host-port'], 'String'); - } - - if (data.hasOwnProperty('rdp-user-groups')) { - obj['rdp-user-groups'] = _ApiClient["default"].convertToType(data['rdp-user-groups'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-external-user')) { - obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-rdp-domain')) { - obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); - } - - if (data.hasOwnProperty('secure-access-rdp-user')) { - obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - - if (data.hasOwnProperty('warn-user-before-expiration')) { - obj['warn-user-before-expiration'] = _ApiClient["default"].convertToType(data['warn-user-before-expiration'], 'Number'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerRdp; -}(); -/** - * AllowUserExtendSession - * @member {Number} allow-user-extend-session - */ - - -GatewayUpdateProducerRdp.prototype['allow-user-extend-session'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerRdp.prototype['delete_protection'] = undefined; -/** - * Allow access using externally (IdP) provided username [true/false] - * @member {String} fixed-user-only - * @default 'false' - */ - -GatewayUpdateProducerRdp.prototype['fixed-user-only'] = 'false'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerRdp.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerRdp.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerRdp.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerRdp.prototype['producer-encryption-key-name'] = undefined; -/** - * RDP Admin Name - * @member {String} rdp-admin-name - */ - -GatewayUpdateProducerRdp.prototype['rdp-admin-name'] = undefined; -/** - * RDP Admin password - * @member {String} rdp-admin-pwd - */ - -GatewayUpdateProducerRdp.prototype['rdp-admin-pwd'] = undefined; -/** - * Hostname - * @member {String} rdp-host-name - */ - -GatewayUpdateProducerRdp.prototype['rdp-host-name'] = undefined; -/** - * Port - * @member {String} rdp-host-port - * @default '22' - */ - -GatewayUpdateProducerRdp.prototype['rdp-host-port'] = '22'; -/** - * Groups - * @member {String} rdp-user-groups - */ - -GatewayUpdateProducerRdp.prototype['rdp-user-groups'] = undefined; -/** - * Allow providing external user for a domain users - * @member {Boolean} secure-access-allow-external-user - * @default false - */ - -GatewayUpdateProducerRdp.prototype['secure-access-allow-external-user'] = false; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerRdp.prototype['secure-access-enable'] = undefined; -/** - * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) - * @member {Array.} secure-access-host - */ - -GatewayUpdateProducerRdp.prototype['secure-access-host'] = undefined; -/** - * Required when the Dynamic Secret is used for a domain user - * @member {String} secure-access-rdp-domain - */ - -GatewayUpdateProducerRdp.prototype['secure-access-rdp-domain'] = undefined; -/** - * Override the RDP Domain username - * @member {String} secure-access-rdp-user - */ - -GatewayUpdateProducerRdp.prototype['secure-access-rdp-user'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerRdp.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerRdp.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerRdp.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerRdp.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerRdp.prototype['user-ttl'] = '60m'; -/** - * WarnBeforeUserExpiration - * @member {Number} warn-user-before-expiration - */ - -GatewayUpdateProducerRdp.prototype['warn-user-before-expiration'] = undefined; -var _default = GatewayUpdateProducerRdp; -exports["default"] = _default; - -/***/ }), - -/***/ 73488: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerRdpOutput model module. - * @module model/GatewayUpdateProducerRdpOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerRdpOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerRdpOutput. - * @alias module:model/GatewayUpdateProducerRdpOutput - */ - function GatewayUpdateProducerRdpOutput() { - _classCallCheck(this, GatewayUpdateProducerRdpOutput); - - GatewayUpdateProducerRdpOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerRdpOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerRdpOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerRdpOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerRdpOutput} The populated GatewayUpdateProducerRdpOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerRdpOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerRdpOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerRdpOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerRdpOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 75080: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerRedis model module. - * @module model/GatewayUpdateProducerRedis - * @version 3.3.16 - */ -var GatewayUpdateProducerRedis = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerRedis. - * gatewayUpdateProducerRedis is a command that updates redis producer - * @alias module:model/GatewayUpdateProducerRedis - * @param name {String} Producer name - */ - function GatewayUpdateProducerRedis(name) { - _classCallCheck(this, GatewayUpdateProducerRedis); - - GatewayUpdateProducerRedis.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerRedis, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerRedis from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerRedis} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerRedis} The populated GatewayUpdateProducerRedis instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerRedis(); - - if (data.hasOwnProperty('acl-rules')) { - obj['acl-rules'] = _ApiClient["default"].convertToType(data['acl-rules'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key-name')) { - obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); - } - - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('ssl-certificate')) { - obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerRedis; -}(); -/** - * A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '[\"~*\", \"+@read\"]' - * @member {String} acl-rules - */ - - -GatewayUpdateProducerRedis.prototype['acl-rules'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerRedis.prototype['delete_protection'] = undefined; -/** - * Redis Host - * @member {String} host - * @default '127.0.0.1' - */ - -GatewayUpdateProducerRedis.prototype['host'] = '127.0.0.1'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerRedis.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerRedis.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerRedis.prototype['new-name'] = undefined; -/** - * Redis Password - * @member {String} password - */ - -GatewayUpdateProducerRedis.prototype['password'] = undefined; -/** - * Redis Port - * @member {String} port - * @default '6379' - */ - -GatewayUpdateProducerRedis.prototype['port'] = '6379'; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key-name - */ - -GatewayUpdateProducerRedis.prototype['producer-encryption-key-name'] = undefined; -/** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false - */ - -GatewayUpdateProducerRedis.prototype['ssl'] = false; -/** - * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) - * @member {String} ssl-certificate - */ - -GatewayUpdateProducerRedis.prototype['ssl-certificate'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerRedis.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerRedis.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerRedis.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerRedis.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerRedis.prototype['user-ttl'] = '60m'; -/** - * Redis Username - * @member {String} username - */ - -GatewayUpdateProducerRedis.prototype['username'] = undefined; -var _default = GatewayUpdateProducerRedis; -exports["default"] = _default; - -/***/ }), - -/***/ 79073: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerRedisOutput model module. - * @module model/GatewayUpdateProducerRedisOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerRedisOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerRedisOutput. - * @alias module:model/GatewayUpdateProducerRedisOutput - */ - function GatewayUpdateProducerRedisOutput() { - _classCallCheck(this, GatewayUpdateProducerRedisOutput); - - GatewayUpdateProducerRedisOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerRedisOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerRedisOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerRedisOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerRedisOutput} The populated GatewayUpdateProducerRedisOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerRedisOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerRedisOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerRedisOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerRedisOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 73230: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerRedshift model module. - * @module model/GatewayUpdateProducerRedshift - * @version 3.3.16 - */ -var GatewayUpdateProducerRedshift = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerRedshift. - * gatewayUpdateProducerRedshift is a command that updates redshift producer - * @alias module:model/GatewayUpdateProducerRedshift - * @param name {String} Producer name - */ - function GatewayUpdateProducerRedshift(name) { - _classCallCheck(this, GatewayUpdateProducerRedshift); - - GatewayUpdateProducerRedshift.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerRedshift, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerRedshift from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerRedshift} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerRedshift} The populated GatewayUpdateProducerRedshift instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerRedshift(); - - if (data.hasOwnProperty('creation-statements')) { - obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('producer-encryption-key')) { - obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); - } - - if (data.hasOwnProperty('redshift-db-name')) { - obj['redshift-db-name'] = _ApiClient["default"].convertToType(data['redshift-db-name'], 'String'); - } - - if (data.hasOwnProperty('redshift-host')) { - obj['redshift-host'] = _ApiClient["default"].convertToType(data['redshift-host'], 'String'); - } - - if (data.hasOwnProperty('redshift-password')) { - obj['redshift-password'] = _ApiClient["default"].convertToType(data['redshift-password'], 'String'); - } - - if (data.hasOwnProperty('redshift-port')) { - obj['redshift-port'] = _ApiClient["default"].convertToType(data['redshift-port'], 'String'); - } - - if (data.hasOwnProperty('redshift-username')) { - obj['redshift-username'] = _ApiClient["default"].convertToType(data['redshift-username'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerRedshift; -}(); -/** - * Redshift Creation statements - * @member {String} creation-statements - */ - - -GatewayUpdateProducerRedshift.prototype['creation-statements'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerRedshift.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerRedshift.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerRedshift.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerRedshift.prototype['new-name'] = undefined; -/** - * Dynamic producer encryption key - * @member {String} producer-encryption-key - */ - -GatewayUpdateProducerRedshift.prototype['producer-encryption-key'] = undefined; -/** - * Redshift DB Name - * @member {String} redshift-db-name - */ - -GatewayUpdateProducerRedshift.prototype['redshift-db-name'] = undefined; -/** - * Redshift Host - * @member {String} redshift-host - * @default '127.0.0.1' - */ - -GatewayUpdateProducerRedshift.prototype['redshift-host'] = '127.0.0.1'; -/** - * Redshift Password - * @member {String} redshift-password - */ - -GatewayUpdateProducerRedshift.prototype['redshift-password'] = undefined; -/** - * Redshift Port - * @member {String} redshift-port - * @default '5439' - */ - -GatewayUpdateProducerRedshift.prototype['redshift-port'] = '5439'; -/** - * Redshift Username - * @member {String} redshift-username - */ - -GatewayUpdateProducerRedshift.prototype['redshift-username'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -GatewayUpdateProducerRedshift.prototype['secure-access-enable'] = undefined; -/** - * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) - * @member {Array.} secure-access-host - */ - -GatewayUpdateProducerRedshift.prototype['secure-access-host'] = undefined; -/** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false - */ - -GatewayUpdateProducerRedshift.prototype['ssl'] = false; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerRedshift.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerRedshift.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerRedshift.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerRedshift.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '60m' - */ - -GatewayUpdateProducerRedshift.prototype['user-ttl'] = '60m'; -var _default = GatewayUpdateProducerRedshift; -exports["default"] = _default; - -/***/ }), - -/***/ 50171: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerRedshiftOutput model module. - * @module model/GatewayUpdateProducerRedshiftOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerRedshiftOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerRedshiftOutput. - * @alias module:model/GatewayUpdateProducerRedshiftOutput - */ - function GatewayUpdateProducerRedshiftOutput() { - _classCallCheck(this, GatewayUpdateProducerRedshiftOutput); - - GatewayUpdateProducerRedshiftOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerRedshiftOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerRedshiftOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerRedshiftOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerRedshiftOutput} The populated GatewayUpdateProducerRedshiftOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerRedshiftOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerRedshiftOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerRedshiftOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerRedshiftOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 92043: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerSnowflake model module. - * @module model/GatewayUpdateProducerSnowflake - * @version 3.3.16 - */ -var GatewayUpdateProducerSnowflake = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerSnowflake. - * GatewayUpdateProducerSnowflakeCmd is a command that updates a Snowflake producer - * @alias module:model/GatewayUpdateProducerSnowflake - * @param name {String} Producer name - */ - function GatewayUpdateProducerSnowflake(name) { - _classCallCheck(this, GatewayUpdateProducerSnowflake); - - GatewayUpdateProducerSnowflake.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerSnowflake, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GatewayUpdateProducerSnowflake from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerSnowflake} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerSnowflake} The populated GatewayUpdateProducerSnowflake instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerSnowflake(); - - if (data.hasOwnProperty('account')) { - obj['account'] = _ApiClient["default"].convertToType(data['account'], 'String'); - } - - if (data.hasOwnProperty('account-password')) { - obj['account-password'] = _ApiClient["default"].convertToType(data['account-password'], 'String'); - } - - if (data.hasOwnProperty('account-username')) { - obj['account-username'] = _ApiClient["default"].convertToType(data['account-username'], 'String'); - } - - if (data.hasOwnProperty('db-name')) { - obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('private-key')) { - obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); - } - - if (data.hasOwnProperty('private-key-passphrase')) { - obj['private-key-passphrase'] = _ApiClient["default"].convertToType(data['private-key-passphrase'], 'String'); - } - - if (data.hasOwnProperty('role')) { - obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); - } - - if (data.hasOwnProperty('target-name')) { - obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user-ttl')) { - obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); - } - - if (data.hasOwnProperty('warehouse')) { - obj['warehouse'] = _ApiClient["default"].convertToType(data['warehouse'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerSnowflake; -}(); -/** - * Account name - * @member {String} account - */ - - -GatewayUpdateProducerSnowflake.prototype['account'] = undefined; -/** - * Database Password - * @member {String} account-password - */ - -GatewayUpdateProducerSnowflake.prototype['account-password'] = undefined; -/** - * Database Username - * @member {String} account-username - */ - -GatewayUpdateProducerSnowflake.prototype['account-username'] = undefined; -/** - * Database name - * @member {String} db-name - */ - -GatewayUpdateProducerSnowflake.prototype['db-name'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -GatewayUpdateProducerSnowflake.prototype['delete_protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateProducerSnowflake.prototype['json'] = false; -/** - * Producer name - * @member {String} name - */ - -GatewayUpdateProducerSnowflake.prototype['name'] = undefined; -/** - * Producer name - * @member {String} new-name - */ - -GatewayUpdateProducerSnowflake.prototype['new-name'] = undefined; -/** - * RSA Private key (base64 encoded) - * @member {String} private-key - */ - -GatewayUpdateProducerSnowflake.prototype['private-key'] = undefined; -/** - * The Private key passphrase - * @member {String} private-key-passphrase - */ - -GatewayUpdateProducerSnowflake.prototype['private-key-passphrase'] = undefined; -/** - * User role - * @member {String} role - */ - -GatewayUpdateProducerSnowflake.prototype['role'] = undefined; -/** - * Add tags attached to this object - * @member {Array.} tags - */ - -GatewayUpdateProducerSnowflake.prototype['tags'] = undefined; -/** - * Target name - * @member {String} target-name - */ - -GatewayUpdateProducerSnowflake.prototype['target-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateProducerSnowflake.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateProducerSnowflake.prototype['uid-token'] = undefined; -/** - * User TTL - * @member {String} user-ttl - * @default '24h' - */ - -GatewayUpdateProducerSnowflake.prototype['user-ttl'] = '24h'; -/** - * Warehouse name - * @member {String} warehouse - */ - -GatewayUpdateProducerSnowflake.prototype['warehouse'] = undefined; -var _default = GatewayUpdateProducerSnowflake; -exports["default"] = _default; - -/***/ }), - -/***/ 78122: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateProducerSnowflakeOutput model module. - * @module model/GatewayUpdateProducerSnowflakeOutput - * @version 3.3.16 - */ -var GatewayUpdateProducerSnowflakeOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateProducerSnowflakeOutput. - * @alias module:model/GatewayUpdateProducerSnowflakeOutput - */ - function GatewayUpdateProducerSnowflakeOutput() { - _classCallCheck(this, GatewayUpdateProducerSnowflakeOutput); - - GatewayUpdateProducerSnowflakeOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateProducerSnowflakeOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateProducerSnowflakeOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateProducerSnowflakeOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateProducerSnowflakeOutput} The populated GatewayUpdateProducerSnowflakeOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateProducerSnowflakeOutput(); - - if (data.hasOwnProperty('producer_details')) { - obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); - } - } - - return obj; - } - }]); - - return GatewayUpdateProducerSnowflakeOutput; -}(); -/** - * @member {module:model/DSProducerDetails} producer_details - */ - - -GatewayUpdateProducerSnowflakeOutput.prototype['producer_details'] = undefined; -var _default = GatewayUpdateProducerSnowflakeOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 89886: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateTlsCert model module. - * @module model/GatewayUpdateTlsCert - * @version 3.3.16 - */ -var GatewayUpdateTlsCert = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateTlsCert. - * gatewayUpdateTlsCert is a command that updates Gateway TLS certificate - * @alias module:model/GatewayUpdateTlsCert - */ - function GatewayUpdateTlsCert() { - _classCallCheck(this, GatewayUpdateTlsCert); - - GatewayUpdateTlsCert.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateTlsCert, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateTlsCert from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateTlsCert} obj Optional instance to populate. - * @return {module:model/GatewayUpdateTlsCert} The populated GatewayUpdateTlsCert instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateTlsCert(); - - if (data.hasOwnProperty('cert-data')) { - obj['cert-data'] = _ApiClient["default"].convertToType(data['cert-data'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-data')) { - obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateTlsCert; -}(); -/** - * TLS Certificate (base64 encoded) - * @member {String} cert-data - */ - - -GatewayUpdateTlsCert.prototype['cert-data'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GatewayUpdateTlsCert.prototype['json'] = false; -/** - * TLS Private Key (base64 encoded) - * @member {String} key-data - */ - -GatewayUpdateTlsCert.prototype['key-data'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateTlsCert.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateTlsCert.prototype['uid-token'] = undefined; -var _default = GatewayUpdateTlsCert; -exports["default"] = _default; - -/***/ }), - -/***/ 49259: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateTlsCertOutput model module. - * @module model/GatewayUpdateTlsCertOutput - * @version 3.3.16 - */ -var GatewayUpdateTlsCertOutput = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateTlsCertOutput. - * @alias module:model/GatewayUpdateTlsCertOutput - */ - function GatewayUpdateTlsCertOutput() { - _classCallCheck(this, GatewayUpdateTlsCertOutput); - - GatewayUpdateTlsCertOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateTlsCertOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewayUpdateTlsCertOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateTlsCertOutput} obj Optional instance to populate. - * @return {module:model/GatewayUpdateTlsCertOutput} The populated GatewayUpdateTlsCertOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateTlsCertOutput(); - - if (data.hasOwnProperty('updated')) { - obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); - } - } - - return obj; - } - }]); - - return GatewayUpdateTlsCertOutput; -}(); -/** - * @member {Boolean} updated - */ - - -GatewayUpdateTlsCertOutput.prototype['updated'] = undefined; -var _default = GatewayUpdateTlsCertOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 98074: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewayUpdateTmpUsers model module. - * @module model/GatewayUpdateTmpUsers - * @version 3.3.16 - */ -var GatewayUpdateTmpUsers = /*#__PURE__*/function () { - /** - * Constructs a new GatewayUpdateTmpUsers. - * gatewayUpdateTmpUsers is a command that returns gateway configuration - * @alias module:model/GatewayUpdateTmpUsers - * @param name {String} Producer Name - * @param newTtlMin {Number} New TTL in Minutes - * @param tmpCredsId {String} Tmp Creds ID - */ - function GatewayUpdateTmpUsers(name, newTtlMin, tmpCredsId) { - _classCallCheck(this, GatewayUpdateTmpUsers); - - GatewayUpdateTmpUsers.initialize(this, name, newTtlMin, tmpCredsId); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewayUpdateTmpUsers, null, [{ - key: "initialize", - value: function initialize(obj, name, newTtlMin, tmpCredsId) { - obj['name'] = name; - obj['new-ttl-min'] = newTtlMin; - obj['tmp-creds-id'] = tmpCredsId; - } - /** - * Constructs a GatewayUpdateTmpUsers from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewayUpdateTmpUsers} obj Optional instance to populate. - * @return {module:model/GatewayUpdateTmpUsers} The populated GatewayUpdateTmpUsers instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewayUpdateTmpUsers(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-ttl-min')) { - obj['new-ttl-min'] = _ApiClient["default"].convertToType(data['new-ttl-min'], 'Number'); - } - - if (data.hasOwnProperty('tmp-creds-id')) { - obj['tmp-creds-id'] = _ApiClient["default"].convertToType(data['tmp-creds-id'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GatewayUpdateTmpUsers; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GatewayUpdateTmpUsers.prototype['json'] = false; -/** - * Producer Name - * @member {String} name - */ - -GatewayUpdateTmpUsers.prototype['name'] = undefined; -/** - * New TTL in Minutes - * @member {Number} new-ttl-min - */ - -GatewayUpdateTmpUsers.prototype['new-ttl-min'] = undefined; -/** - * Tmp Creds ID - * @member {String} tmp-creds-id - */ - -GatewayUpdateTmpUsers.prototype['tmp-creds-id'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GatewayUpdateTmpUsers.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GatewayUpdateTmpUsers.prototype['uid-token'] = undefined; -var _default = GatewayUpdateTmpUsers; -exports["default"] = _default; - -/***/ }), - -/***/ 34840: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _GwClusterIdentity = _interopRequireDefault(__nccwpck_require__(73728)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GatewaysListResponse model module. - * @module model/GatewaysListResponse - * @version 3.3.16 - */ -var GatewaysListResponse = /*#__PURE__*/function () { - /** - * Constructs a new GatewaysListResponse. - * GatewaysListResponse Gateway cluster identity list - * @alias module:model/GatewaysListResponse - */ - function GatewaysListResponse() { - _classCallCheck(this, GatewaysListResponse); - - GatewaysListResponse.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GatewaysListResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GatewaysListResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GatewaysListResponse} obj Optional instance to populate. - * @return {module:model/GatewaysListResponse} The populated GatewaysListResponse instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GatewaysListResponse(); - - if (data.hasOwnProperty('clusters')) { - obj['clusters'] = _ApiClient["default"].convertToType(data['clusters'], [_GwClusterIdentity["default"]]); - } - } - - return obj; - } - }]); - - return GatewaysListResponse; -}(); -/** - * @member {Array.} clusters - */ - - -GatewaysListResponse.prototype['clusters'] = undefined; -var _default = GatewaysListResponse; -exports["default"] = _default; - -/***/ }), - -/***/ 83083: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GcpTargetDetails model module. - * @module model/GcpTargetDetails - * @version 3.3.16 - */ -var GcpTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new GcpTargetDetails. - * @alias module:model/GcpTargetDetails - */ - function GcpTargetDetails() { - _classCallCheck(this, GcpTargetDetails); - - GcpTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GcpTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GcpTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcpTargetDetails} obj Optional instance to populate. - * @return {module:model/GcpTargetDetails} The populated GcpTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcpTargetDetails(); - - if (data.hasOwnProperty('gcp_service_account_email')) { - obj['gcp_service_account_email'] = _ApiClient["default"].convertToType(data['gcp_service_account_email'], 'String'); - } - - if (data.hasOwnProperty('gcp_service_account_key')) { - obj['gcp_service_account_key'] = _ApiClient["default"].convertToType(data['gcp_service_account_key'], 'String'); - } - - if (data.hasOwnProperty('gcp_service_account_key_base64')) { - obj['gcp_service_account_key_base64'] = _ApiClient["default"].convertToType(data['gcp_service_account_key_base64'], 'String'); - } - - if (data.hasOwnProperty('use_gw_cloud_identity')) { - obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); - } - } - - return obj; - } - }]); - - return GcpTargetDetails; -}(); -/** - * deprecated - * @member {String} gcp_service_account_email - */ - - -GcpTargetDetails.prototype['gcp_service_account_email'] = undefined; -/** - * @member {String} gcp_service_account_key - */ - -GcpTargetDetails.prototype['gcp_service_account_key'] = undefined; -/** - * @member {String} gcp_service_account_key_base64 - */ - -GcpTargetDetails.prototype['gcp_service_account_key_base64'] = undefined; -/** - * @member {Boolean} use_gw_cloud_identity - */ - -GcpTargetDetails.prototype['use_gw_cloud_identity'] = undefined; -var _default = GcpTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 26628: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GenCustomerFragment model module. - * @module model/GenCustomerFragment - * @version 3.3.16 - */ -var GenCustomerFragment = /*#__PURE__*/function () { - /** - * Constructs a new GenCustomerFragment. - * @alias module:model/GenCustomerFragment - */ - function GenCustomerFragment() { - _classCallCheck(this, GenCustomerFragment); - - GenCustomerFragment.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GenCustomerFragment, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GenCustomerFragment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GenCustomerFragment} obj Optional instance to populate. - * @return {module:model/GenCustomerFragment} The populated GenCustomerFragment instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GenCustomerFragment(); - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - } - - return obj; - } - }]); - - return GenCustomerFragment; -}(); -/** - * Description of the object - * @member {String} description - */ - - -GenCustomerFragment.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GenCustomerFragment.prototype['json'] = false; -/** - * Deprecated - use description - * @member {String} metadata - */ - -GenCustomerFragment.prototype['metadata'] = undefined; -var _default = GenCustomerFragment; -exports["default"] = _default; - -/***/ }), - -/***/ 94565: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GeneralConfigPart model module. - * @module model/GeneralConfigPart - * @version 3.3.16 - */ -var GeneralConfigPart = /*#__PURE__*/function () { - /** - * Constructs a new GeneralConfigPart. - * @alias module:model/GeneralConfigPart - */ - function GeneralConfigPart() { - _classCallCheck(this, GeneralConfigPart); - - GeneralConfigPart.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GeneralConfigPart, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GeneralConfigPart from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GeneralConfigPart} obj Optional instance to populate. - * @return {module:model/GeneralConfigPart} The populated GeneralConfigPart instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GeneralConfigPart(); - - if (data.hasOwnProperty('akeyless_url')) { - obj['akeyless_url'] = _ApiClient["default"].convertToType(data['akeyless_url'], 'String'); - } - - if (data.hasOwnProperty('api_token_ttl')) { - obj['api_token_ttl'] = _ApiClient["default"].convertToType(data['api_token_ttl'], 'String'); - } - - if (data.hasOwnProperty('display_name')) { - obj['display_name'] = _ApiClient["default"].convertToType(data['display_name'], 'String'); - } - - if (data.hasOwnProperty('enable_sni_proxy')) { - obj['enable_sni_proxy'] = _ApiClient["default"].convertToType(data['enable_sni_proxy'], 'Boolean'); - } - - if (data.hasOwnProperty('enable_tls')) { - obj['enable_tls'] = _ApiClient["default"].convertToType(data['enable_tls'], 'Boolean'); - } - - if (data.hasOwnProperty('enable_tls_configure')) { - obj['enable_tls_configure'] = _ApiClient["default"].convertToType(data['enable_tls_configure'], 'Boolean'); - } - - if (data.hasOwnProperty('enable_tls_curl')) { - obj['enable_tls_curl'] = _ApiClient["default"].convertToType(data['enable_tls_curl'], 'Boolean'); - } - - if (data.hasOwnProperty('enable_tls_hvp')) { - obj['enable_tls_hvp'] = _ApiClient["default"].convertToType(data['enable_tls_hvp'], 'Boolean'); - } - - if (data.hasOwnProperty('gw_cluster_url')) { - obj['gw_cluster_url'] = _ApiClient["default"].convertToType(data['gw_cluster_url'], 'String'); - } - - if (data.hasOwnProperty('tcp_port')) { - obj['tcp_port'] = _ApiClient["default"].convertToType(data['tcp_port'], 'String'); - } - - if (data.hasOwnProperty('tls_cert')) { - obj['tls_cert'] = _ApiClient["default"].convertToType(data['tls_cert'], 'String'); - } - - if (data.hasOwnProperty('tls_key')) { - obj['tls_key'] = _ApiClient["default"].convertToType(data['tls_key'], 'String'); - } - } - - return obj; - } - }]); - - return GeneralConfigPart; -}(); -/** - * AkeylessUrl is here for BC only. Gator will still return it if it exists in the configuration, but new clients (>=2.34.0) will ignore it and override it with what exists in their local file. It will no longer be sent to Gator for update, so new clusters will only have the default value saved in the DB. - * @member {String} akeyless_url - */ - - -GeneralConfigPart.prototype['akeyless_url'] = undefined; -/** - * @member {String} api_token_ttl - */ - -GeneralConfigPart.prototype['api_token_ttl'] = undefined; -/** - * @member {String} display_name - */ - -GeneralConfigPart.prototype['display_name'] = undefined; -/** - * @member {Boolean} enable_sni_proxy - */ - -GeneralConfigPart.prototype['enable_sni_proxy'] = undefined; -/** - * @member {Boolean} enable_tls - */ - -GeneralConfigPart.prototype['enable_tls'] = undefined; -/** - * @member {Boolean} enable_tls_configure - */ - -GeneralConfigPart.prototype['enable_tls_configure'] = undefined; -/** - * @member {Boolean} enable_tls_curl - */ - -GeneralConfigPart.prototype['enable_tls_curl'] = undefined; -/** - * @member {Boolean} enable_tls_hvp - */ - -GeneralConfigPart.prototype['enable_tls_hvp'] = undefined; -/** - * @member {String} gw_cluster_url - */ - -GeneralConfigPart.prototype['gw_cluster_url'] = undefined; -/** - * @member {String} tcp_port - */ - -GeneralConfigPart.prototype['tcp_port'] = undefined; -/** - * @member {String} tls_cert - */ - -GeneralConfigPart.prototype['tls_cert'] = undefined; -/** - * @member {String} tls_key - */ - -GeneralConfigPart.prototype['tls_key'] = undefined; -var _default = GeneralConfigPart; -exports["default"] = _default; - -/***/ }), - -/***/ 87627: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GenerateCsr model module. - * @module model/GenerateCsr - * @version 3.3.16 - */ -var GenerateCsr = /*#__PURE__*/function () { - /** - * Constructs a new GenerateCsr. - * @alias module:model/GenerateCsr - * @param commonName {String} The common name to be included in the CSR certificate - * @param name {String} The classic key name - */ - function GenerateCsr(commonName, name) { - _classCallCheck(this, GenerateCsr); - - GenerateCsr.initialize(this, commonName, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GenerateCsr, null, [{ - key: "initialize", - value: function initialize(obj, commonName, name) { - obj['common-name'] = commonName; - obj['name'] = name; - } - /** - * Constructs a GenerateCsr from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GenerateCsr} obj Optional instance to populate. - * @return {module:model/GenerateCsr} The populated GenerateCsr instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GenerateCsr(); - - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); - } - - if (data.hasOwnProperty('alt-names')) { - obj['alt-names'] = _ApiClient["default"].convertToType(data['alt-names'], 'String'); - } - - if (data.hasOwnProperty('certificate-type')) { - obj['certificate-type'] = _ApiClient["default"].convertToType(data['certificate-type'], 'String'); - } - - if (data.hasOwnProperty('city')) { - obj['city'] = _ApiClient["default"].convertToType(data['city'], 'String'); - } - - if (data.hasOwnProperty('common-name')) { - obj['common-name'] = _ApiClient["default"].convertToType(data['common-name'], 'String'); - } - - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); - } - - if (data.hasOwnProperty('critical')) { - obj['critical'] = _ApiClient["default"].convertToType(data['critical'], 'Boolean'); - } - - if (data.hasOwnProperty('dep')) { - obj['dep'] = _ApiClient["default"].convertToType(data['dep'], 'String'); - } - - if (data.hasOwnProperty('email-addresses')) { - obj['email-addresses'] = _ApiClient["default"].convertToType(data['email-addresses'], 'String'); - } - - if (data.hasOwnProperty('generate-key')) { - obj['generate-key'] = _ApiClient["default"].convertToType(data['generate-key'], 'Boolean'); - } - - if (data.hasOwnProperty('ip-addresses')) { - obj['ip-addresses'] = _ApiClient["default"].convertToType(data['ip-addresses'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('org')) { - obj['org'] = _ApiClient["default"].convertToType(data['org'], 'String'); - } - - if (data.hasOwnProperty('state')) { - obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('uri-sans')) { - obj['uri-sans'] = _ApiClient["default"].convertToType(data['uri-sans'], 'String'); - } - } - - return obj; - } - }]); - - return GenerateCsr; -}(); -/** - * @member {String} alg - */ - - -GenerateCsr.prototype['alg'] = undefined; -/** - * A comma-separated list of dns alternative names - * @member {String} alt-names - */ - -GenerateCsr.prototype['alt-names'] = undefined; -/** - * The certificate type to be included in the CSR certificate (ssl-client/ssl-server/certificate-signing) - * @member {String} certificate-type - */ - -GenerateCsr.prototype['certificate-type'] = undefined; -/** - * The city to be included in the CSR certificate - * @member {String} city - */ - -GenerateCsr.prototype['city'] = undefined; -/** - * The common name to be included in the CSR certificate - * @member {String} common-name - */ - -GenerateCsr.prototype['common-name'] = undefined; -/** - * The country to be included in the CSR certificate - * @member {String} country - */ - -GenerateCsr.prototype['country'] = undefined; -/** - * Add critical to the key usage extension (will be false if not added) - * @member {Boolean} critical - */ - -GenerateCsr.prototype['critical'] = undefined; -/** - * The department to be included in the CSR certificate - * @member {String} dep - */ - -GenerateCsr.prototype['dep'] = undefined; -/** - * A comma-separated list of email addresses alternative names - * @member {String} email-addresses - */ - -GenerateCsr.prototype['email-addresses'] = undefined; -/** - * Generate a new classic key for the csr - * @member {Boolean} generate-key - */ - -GenerateCsr.prototype['generate-key'] = undefined; -/** - * A comma-separated list of ip addresses alternative names - * @member {String} ip-addresses - */ - -GenerateCsr.prototype['ip-addresses'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GenerateCsr.prototype['json'] = false; -/** - * The classic key name - * @member {String} name - */ - -GenerateCsr.prototype['name'] = undefined; -/** - * The organization to be included in the CSR certificate - * @member {String} org - */ - -GenerateCsr.prototype['org'] = undefined; -/** - * The state to be included in the CSR certificate - * @member {String} state - */ - -GenerateCsr.prototype['state'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GenerateCsr.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GenerateCsr.prototype['uid-token'] = undefined; -/** - * A comma-separated list of uri alternative names - * @member {String} uri-sans - */ - -GenerateCsr.prototype['uri-sans'] = undefined; -var _default = GenerateCsr; -exports["default"] = _default; - -/***/ }), - -/***/ 85130: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GenerateCsrOutput model module. - * @module model/GenerateCsrOutput - * @version 3.3.16 - */ -var GenerateCsrOutput = /*#__PURE__*/function () { - /** - * Constructs a new GenerateCsrOutput. - * @alias module:model/GenerateCsrOutput - */ - function GenerateCsrOutput() { - _classCallCheck(this, GenerateCsrOutput); - - GenerateCsrOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GenerateCsrOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GenerateCsrOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GenerateCsrOutput} obj Optional instance to populate. - * @return {module:model/GenerateCsrOutput} The populated GenerateCsrOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GenerateCsrOutput(); - - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - } - - return obj; - } - }]); - - return GenerateCsrOutput; -}(); -/** - * @member {String} data - */ - - -GenerateCsrOutput.prototype['data'] = undefined; -var _default = GenerateCsrOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 46150: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetAccountSettings model module. - * @module model/GetAccountSettings - * @version 3.3.16 - */ -var GetAccountSettings = /*#__PURE__*/function () { - /** - * Constructs a new GetAccountSettings. - * @alias module:model/GetAccountSettings - */ - function GetAccountSettings() { - _classCallCheck(this, GetAccountSettings); - - GetAccountSettings.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetAccountSettings, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GetAccountSettings from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAccountSettings} obj Optional instance to populate. - * @return {module:model/GetAccountSettings} The populated GetAccountSettings instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAccountSettings(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GetAccountSettings; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GetAccountSettings.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GetAccountSettings.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GetAccountSettings.prototype['uid-token'] = undefined; -var _default = GetAccountSettings; -exports["default"] = _default; - -/***/ }), - -/***/ 61968: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _AccountGeneralSettings = _interopRequireDefault(__nccwpck_require__(85700)); - -var _AccountObjectVersionSettingsOutput = _interopRequireDefault(__nccwpck_require__(57060)); - -var _CustomerFullAddress = _interopRequireDefault(__nccwpck_require__(37009)); - -var _SmInfo = _interopRequireDefault(__nccwpck_require__(69132)); - -var _SraInfo = _interopRequireDefault(__nccwpck_require__(85658)); - -var _SystemAccessCredsSettings = _interopRequireDefault(__nccwpck_require__(36395)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetAccountSettingsCommandOutput model module. - * @module model/GetAccountSettingsCommandOutput - * @version 3.3.16 - */ -var GetAccountSettingsCommandOutput = /*#__PURE__*/function () { - /** - * Constructs a new GetAccountSettingsCommandOutput. - * @alias module:model/GetAccountSettingsCommandOutput - */ - function GetAccountSettingsCommandOutput() { - _classCallCheck(this, GetAccountSettingsCommandOutput); - - GetAccountSettingsCommandOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetAccountSettingsCommandOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GetAccountSettingsCommandOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAccountSettingsCommandOutput} obj Optional instance to populate. - * @return {module:model/GetAccountSettingsCommandOutput} The populated GetAccountSettingsCommandOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAccountSettingsCommandOutput(); - - if (data.hasOwnProperty('account_id')) { - obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); - } - - if (data.hasOwnProperty('address')) { - obj['address'] = _CustomerFullAddress["default"].constructFromObject(data['address']); - } - - if (data.hasOwnProperty('company_name')) { - obj['company_name'] = _ApiClient["default"].convertToType(data['company_name'], 'String'); - } - - if (data.hasOwnProperty('email')) { - obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); - } - - if (data.hasOwnProperty('general_settings')) { - obj['general_settings'] = _AccountGeneralSettings["default"].constructFromObject(data['general_settings']); - } - - if (data.hasOwnProperty('object_version_settings')) { - obj['object_version_settings'] = _AccountObjectVersionSettingsOutput["default"].constructFromObject(data['object_version_settings']); - } - - if (data.hasOwnProperty('phone')) { - obj['phone'] = _ApiClient["default"].convertToType(data['phone'], 'String'); - } - - if (data.hasOwnProperty('secret_management')) { - obj['secret_management'] = _SmInfo["default"].constructFromObject(data['secret_management']); - } - - if (data.hasOwnProperty('secure_remote_access')) { - obj['secure_remote_access'] = _SraInfo["default"].constructFromObject(data['secure_remote_access']); - } - - if (data.hasOwnProperty('system_access_creds_settings')) { - obj['system_access_creds_settings'] = _SystemAccessCredsSettings["default"].constructFromObject(data['system_access_creds_settings']); - } - } - - return obj; - } - }]); - - return GetAccountSettingsCommandOutput; -}(); -/** - * @member {String} account_id - */ - - -GetAccountSettingsCommandOutput.prototype['account_id'] = undefined; -/** - * @member {module:model/CustomerFullAddress} address - */ - -GetAccountSettingsCommandOutput.prototype['address'] = undefined; -/** - * @member {String} company_name - */ - -GetAccountSettingsCommandOutput.prototype['company_name'] = undefined; -/** - * @member {String} email - */ - -GetAccountSettingsCommandOutput.prototype['email'] = undefined; -/** - * @member {module:model/AccountGeneralSettings} general_settings - */ - -GetAccountSettingsCommandOutput.prototype['general_settings'] = undefined; -/** - * @member {module:model/AccountObjectVersionSettingsOutput} object_version_settings - */ - -GetAccountSettingsCommandOutput.prototype['object_version_settings'] = undefined; -/** - * @member {String} phone - */ - -GetAccountSettingsCommandOutput.prototype['phone'] = undefined; -/** - * @member {module:model/SmInfo} secret_management - */ - -GetAccountSettingsCommandOutput.prototype['secret_management'] = undefined; -/** - * @member {module:model/SraInfo} secure_remote_access - */ - -GetAccountSettingsCommandOutput.prototype['secure_remote_access'] = undefined; -/** - * @member {module:model/SystemAccessCredsSettings} system_access_creds_settings - */ - -GetAccountSettingsCommandOutput.prototype['system_access_creds_settings'] = undefined; -var _default = GetAccountSettingsCommandOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 19101: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetAuthMethod model module. - * @module model/GetAuthMethod - * @version 3.3.16 - */ -var GetAuthMethod = /*#__PURE__*/function () { - /** - * Constructs a new GetAuthMethod. - * @alias module:model/GetAuthMethod - * @param name {String} Auth Method name - */ - function GetAuthMethod(name) { - _classCallCheck(this, GetAuthMethod); - - GetAuthMethod.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetAuthMethod, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GetAuthMethod from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAuthMethod} obj Optional instance to populate. - * @return {module:model/GetAuthMethod} The populated GetAuthMethod instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAuthMethod(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GetAuthMethod; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GetAuthMethod.prototype['json'] = false; -/** - * Auth Method name - * @member {String} name - */ - -GetAuthMethod.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GetAuthMethod.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GetAuthMethod.prototype['uid-token'] = undefined; -var _default = GetAuthMethod; -exports["default"] = _default; - -/***/ }), - -/***/ 25574: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetCertificateValue model module. - * @module model/GetCertificateValue - * @version 3.3.16 - */ -var GetCertificateValue = /*#__PURE__*/function () { - /** - * Constructs a new GetCertificateValue. - * @alias module:model/GetCertificateValue - * @param name {String} Certificate name - */ - function GetCertificateValue(name) { - _classCallCheck(this, GetCertificateValue); - - GetCertificateValue.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetCertificateValue, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GetCertificateValue from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetCertificateValue} obj Optional instance to populate. - * @return {module:model/GetCertificateValue} The populated GetCertificateValue instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetCertificateValue(); - - if (data.hasOwnProperty('cert-issuer-name')) { - obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); - } - - if (data.hasOwnProperty('certificate-file-output')) { - obj['certificate-file-output'] = _ApiClient["default"].convertToType(data['certificate-file-output'], 'String'); - } - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('issuance-token')) { - obj['issuance-token'] = _ApiClient["default"].convertToType(data['issuance-token'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('private-key-file-output')) { - obj['private-key-file-output'] = _ApiClient["default"].convertToType(data['private-key-file-output'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return GetCertificateValue; -}(); -/** - * The parent PKI Certificate Issuer's name of the certificate, required when used with display-id and token - * @member {String} cert-issuer-name - */ - - -GetCertificateValue.prototype['cert-issuer-name'] = undefined; -/** - * File to write the certificates to. - * @member {String} certificate-file-output - */ - -GetCertificateValue.prototype['certificate-file-output'] = undefined; -/** - * Certificate display ID - * @member {String} display-id - */ - -GetCertificateValue.prototype['display-id'] = undefined; -/** - * Token for getting the issued certificate - * @member {String} issuance-token - */ - -GetCertificateValue.prototype['issuance-token'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GetCertificateValue.prototype['json'] = false; -/** - * Certificate name - * @member {String} name - * @default 'dummy_certificate_name' - */ - -GetCertificateValue.prototype['name'] = 'dummy_certificate_name'; -/** - * File to write the private key to. - * @member {String} private-key-file-output - */ - -GetCertificateValue.prototype['private-key-file-output'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GetCertificateValue.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GetCertificateValue.prototype['uid-token'] = undefined; -/** - * Certificate version - * @member {Number} version - */ - -GetCertificateValue.prototype['version'] = undefined; -var _default = GetCertificateValue; -exports["default"] = _default; - -/***/ }), - -/***/ 54819: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetCertificateValueOutput model module. - * @module model/GetCertificateValueOutput - * @version 3.3.16 - */ -var GetCertificateValueOutput = /*#__PURE__*/function () { - /** - * Constructs a new GetCertificateValueOutput. - * @alias module:model/GetCertificateValueOutput - */ - function GetCertificateValueOutput() { - _classCallCheck(this, GetCertificateValueOutput); - - GetCertificateValueOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetCertificateValueOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GetCertificateValueOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetCertificateValueOutput} obj Optional instance to populate. - * @return {module:model/GetCertificateValueOutput} The populated GetCertificateValueOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetCertificateValueOutput(); - - if (data.hasOwnProperty('certificate_pem')) { - obj['certificate_pem'] = _ApiClient["default"].convertToType(data['certificate_pem'], 'String'); - } - - if (data.hasOwnProperty('private_key_pem')) { - obj['private_key_pem'] = _ApiClient["default"].convertToType(data['private_key_pem'], 'String'); - } - } - - return obj; - } - }]); - - return GetCertificateValueOutput; -}(); -/** - * @member {String} certificate_pem - */ - - -GetCertificateValueOutput.prototype['certificate_pem'] = undefined; -/** - * @member {String} private_key_pem - */ - -GetCertificateValueOutput.prototype['private_key_pem'] = undefined; -var _default = GetCertificateValueOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 17840: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetDynamicSecretValue model module. - * @module model/GetDynamicSecretValue - * @version 3.3.16 - */ -var GetDynamicSecretValue = /*#__PURE__*/function () { - /** - * Constructs a new GetDynamicSecretValue. - * @alias module:model/GetDynamicSecretValue - * @param name {String} Dynamic secret name - */ - function GetDynamicSecretValue(name) { - _classCallCheck(this, GetDynamicSecretValue); - - GetDynamicSecretValue.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetDynamicSecretValue, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GetDynamicSecretValue from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDynamicSecretValue} obj Optional instance to populate. - * @return {module:model/GetDynamicSecretValue} The populated GetDynamicSecretValue instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDynamicSecretValue(); - - if (data.hasOwnProperty('args')) { - obj['args'] = _ApiClient["default"].convertToType(data['args'], ['String']); - } - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('target')) { - obj['target'] = _ApiClient["default"].convertToType(data['target'], 'String'); - } - - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GetDynamicSecretValue; -}(); -/** - * Optional arguments as key=value pairs or JSON strings, e.g - \\\"--args=csr=base64_encoded_csr --args=common_name=bar\\\" or args='{\\\"csr\\\":\\\"base64_encoded_csr\\\"}. It is possible to combine both formats.' - * @member {Array.} args - */ - - -GetDynamicSecretValue.prototype['args'] = undefined; -/** - * Host - * @member {String} host - */ - -GetDynamicSecretValue.prototype['host'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GetDynamicSecretValue.prototype['json'] = false; -/** - * Dynamic secret name - * @member {String} name - */ - -GetDynamicSecretValue.prototype['name'] = undefined; -/** - * Target Name - * @member {String} target - */ - -GetDynamicSecretValue.prototype['target'] = undefined; -/** - * Timeout in seconds - * @member {Number} timeout - * @default 15 - */ - -GetDynamicSecretValue.prototype['timeout'] = 15; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GetDynamicSecretValue.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GetDynamicSecretValue.prototype['uid-token'] = undefined; -var _default = GetDynamicSecretValue; -exports["default"] = _default; - -/***/ }), - -/***/ 7183: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetEventForwarder model module. - * @module model/GetEventForwarder - * @version 3.3.16 - */ -var GetEventForwarder = /*#__PURE__*/function () { - /** - * Constructs a new GetEventForwarder. - * @alias module:model/GetEventForwarder - * @param name {String} EventForwarder name - */ - function GetEventForwarder(name) { - _classCallCheck(this, GetEventForwarder); - - GetEventForwarder.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetEventForwarder, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GetEventForwarder from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetEventForwarder} obj Optional instance to populate. - * @return {module:model/GetEventForwarder} The populated GetEventForwarder instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetEventForwarder(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GetEventForwarder; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GetEventForwarder.prototype['json'] = false; -/** - * EventForwarder name - * @member {String} name - */ - -GetEventForwarder.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GetEventForwarder.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GetEventForwarder.prototype['uid-token'] = undefined; -var _default = GetEventForwarder; -exports["default"] = _default; - -/***/ }), - -/***/ 31549: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _NotiForwarder = _interopRequireDefault(__nccwpck_require__(21724)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetEventForwarderOutput model module. - * @module model/GetEventForwarderOutput - * @version 3.3.16 - */ -var GetEventForwarderOutput = /*#__PURE__*/function () { - /** - * Constructs a new GetEventForwarderOutput. - * @alias module:model/GetEventForwarderOutput - */ - function GetEventForwarderOutput() { - _classCallCheck(this, GetEventForwarderOutput); - - GetEventForwarderOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetEventForwarderOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GetEventForwarderOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetEventForwarderOutput} obj Optional instance to populate. - * @return {module:model/GetEventForwarderOutput} The populated GetEventForwarderOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetEventForwarderOutput(); - - if (data.hasOwnProperty('event_forwarder')) { - obj['event_forwarder'] = _NotiForwarder["default"].constructFromObject(data['event_forwarder']); - } - } - - return obj; - } - }]); - - return GetEventForwarderOutput; -}(); -/** - * @member {module:model/NotiForwarder} event_forwarder - */ - - -GetEventForwarderOutput.prototype['event_forwarder'] = undefined; -var _default = GetEventForwarderOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 48313: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetKubeExecCreds model module. - * @module model/GetKubeExecCreds - * @version 3.3.16 - */ -var GetKubeExecCreds = /*#__PURE__*/function () { - /** - * Constructs a new GetKubeExecCreds. - * getKubeExecCreds is a command that gets credentials for authentication with Kubernetes cluster based on a PKI cert issuer. - * @alias module:model/GetKubeExecCreds - * @param certIssuerName {String} The name of the PKI certificate issuer - */ - function GetKubeExecCreds(certIssuerName) { - _classCallCheck(this, GetKubeExecCreds); - - GetKubeExecCreds.initialize(this, certIssuerName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetKubeExecCreds, null, [{ - key: "initialize", - value: function initialize(obj, certIssuerName) { - obj['cert-issuer-name'] = certIssuerName; - } - /** - * Constructs a GetKubeExecCreds from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetKubeExecCreds} obj Optional instance to populate. - * @return {module:model/GetKubeExecCreds} The populated GetKubeExecCreds instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetKubeExecCreds(); - - if (data.hasOwnProperty('alt-names')) { - obj['alt-names'] = _ApiClient["default"].convertToType(data['alt-names'], 'String'); - } - - if (data.hasOwnProperty('api-version')) { - obj['api-version'] = _ApiClient["default"].convertToType(data['api-version'], 'String'); - } - - if (data.hasOwnProperty('cert-issuer-name')) { - obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); - } - - if (data.hasOwnProperty('common-name')) { - obj['common-name'] = _ApiClient["default"].convertToType(data['common-name'], 'String'); - } - - if (data.hasOwnProperty('csr-data-base64')) { - obj['csr-data-base64'] = _ApiClient["default"].convertToType(data['csr-data-base64'], 'String'); - } - - if (data.hasOwnProperty('extended-key-usage')) { - obj['extended-key-usage'] = _ApiClient["default"].convertToType(data['extended-key-usage'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-data-base64')) { - obj['key-data-base64'] = _ApiClient["default"].convertToType(data['key-data-base64'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('uri-sans')) { - obj['uri-sans'] = _ApiClient["default"].convertToType(data['uri-sans'], 'String'); - } - } - - return obj; - } - }]); - - return GetKubeExecCreds; -}(); -/** - * The Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any DNS.* names are taken from it) - * @member {String} alt-names - */ - - -GetKubeExecCreds.prototype['alt-names'] = undefined; -/** - * Client authentication API version - * @member {String} api-version - * @default 'v1' - */ - -GetKubeExecCreds.prototype['api-version'] = 'v1'; -/** - * The name of the PKI certificate issuer - * @member {String} cert-issuer-name - */ - -GetKubeExecCreds.prototype['cert-issuer-name'] = undefined; -/** - * The common name to be included in the PKI certificate (if CSR is supplied this flag is ignored and the CSR subject CN is taken) - * @member {String} common-name - */ - -GetKubeExecCreds.prototype['common-name'] = undefined; -/** - * Certificate Signing Request contents encoded in base64 to generate the certificate with - * @member {String} csr-data-base64 - */ - -GetKubeExecCreds.prototype['csr-data-base64'] = undefined; -/** - * A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth'. - * @member {String} extended-key-usage - */ - -GetKubeExecCreds.prototype['extended-key-usage'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GetKubeExecCreds.prototype['json'] = false; -/** - * PKI key file contents. If this option is used, the certificate will be printed to stdout - * @member {String} key-data-base64 - */ - -GetKubeExecCreds.prototype['key-data-base64'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GetKubeExecCreds.prototype['token'] = undefined; -/** - * Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL) - * @member {Number} ttl - */ - -GetKubeExecCreds.prototype['ttl'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GetKubeExecCreds.prototype['uid-token'] = undefined; -/** - * The URI Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any URI.* names are taken from it) - * @member {String} uri-sans - */ - -GetKubeExecCreds.prototype['uri-sans'] = undefined; -var _default = GetKubeExecCreds; -exports["default"] = _default; - -/***/ }), - -/***/ 31740: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _ClientData = _interopRequireDefault(__nccwpck_require__(49671)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetKubeExecCredsOutput model module. - * @module model/GetKubeExecCredsOutput - * @version 3.3.16 - */ -var GetKubeExecCredsOutput = /*#__PURE__*/function () { - /** - * Constructs a new GetKubeExecCredsOutput. - * @alias module:model/GetKubeExecCredsOutput - */ - function GetKubeExecCredsOutput() { - _classCallCheck(this, GetKubeExecCredsOutput); - - GetKubeExecCredsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetKubeExecCredsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GetKubeExecCredsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetKubeExecCredsOutput} obj Optional instance to populate. - * @return {module:model/GetKubeExecCredsOutput} The populated GetKubeExecCredsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetKubeExecCredsOutput(); - - if (data.hasOwnProperty('apiVersion')) { - obj['apiVersion'] = _ApiClient["default"].convertToType(data['apiVersion'], 'String'); - } - - if (data.hasOwnProperty('kind')) { - obj['kind'] = _ApiClient["default"].convertToType(data['kind'], 'String'); - } - - if (data.hasOwnProperty('status')) { - obj['status'] = _ClientData["default"].constructFromObject(data['status']); - } - } - - return obj; - } - }]); - - return GetKubeExecCredsOutput; -}(); -/** - * @member {String} apiVersion - */ - - -GetKubeExecCredsOutput.prototype['apiVersion'] = undefined; -/** - * @member {String} kind - */ - -GetKubeExecCredsOutput.prototype['kind'] = undefined; -/** - * @member {module:model/ClientData} status - */ - -GetKubeExecCredsOutput.prototype['status'] = undefined; -var _default = GetKubeExecCredsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 8453: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetPKICertificate model module. - * @module model/GetPKICertificate - * @version 3.3.16 - */ -var GetPKICertificate = /*#__PURE__*/function () { - /** - * Constructs a new GetPKICertificate. - * @alias module:model/GetPKICertificate - * @param certIssuerName {String} The name of the PKI certificate issuer - */ - function GetPKICertificate(certIssuerName) { - _classCallCheck(this, GetPKICertificate); - - GetPKICertificate.initialize(this, certIssuerName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetPKICertificate, null, [{ - key: "initialize", - value: function initialize(obj, certIssuerName) { - obj['cert-issuer-name'] = certIssuerName; - } - /** - * Constructs a GetPKICertificate from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetPKICertificate} obj Optional instance to populate. - * @return {module:model/GetPKICertificate} The populated GetPKICertificate instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetPKICertificate(); - - if (data.hasOwnProperty('alt-names')) { - obj['alt-names'] = _ApiClient["default"].convertToType(data['alt-names'], 'String'); - } - - if (data.hasOwnProperty('cert-issuer-name')) { - obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); - } - - if (data.hasOwnProperty('common-name')) { - obj['common-name'] = _ApiClient["default"].convertToType(data['common-name'], 'String'); - } - - if (data.hasOwnProperty('csr-data-base64')) { - obj['csr-data-base64'] = _ApiClient["default"].convertToType(data['csr-data-base64'], 'String'); - } - - if (data.hasOwnProperty('extended-key-usage')) { - obj['extended-key-usage'] = _ApiClient["default"].convertToType(data['extended-key-usage'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-data-base64')) { - obj['key-data-base64'] = _ApiClient["default"].convertToType(data['key-data-base64'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('uri-sans')) { - obj['uri-sans'] = _ApiClient["default"].convertToType(data['uri-sans'], 'String'); - } - } - - return obj; - } - }]); - - return GetPKICertificate; -}(); -/** - * The Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any DNS.* names are taken from it) - * @member {String} alt-names - */ - - -GetPKICertificate.prototype['alt-names'] = undefined; -/** - * The name of the PKI certificate issuer - * @member {String} cert-issuer-name - */ - -GetPKICertificate.prototype['cert-issuer-name'] = undefined; -/** - * The common name to be included in the PKI certificate (if CSR is supplied this flag is ignored and the CSR subject CN is taken) - * @member {String} common-name - */ - -GetPKICertificate.prototype['common-name'] = undefined; -/** - * Certificate Signing Request contents encoded in base64 to generate the certificate with - * @member {String} csr-data-base64 - */ - -GetPKICertificate.prototype['csr-data-base64'] = undefined; -/** - * A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth'. - * @member {String} extended-key-usage - */ - -GetPKICertificate.prototype['extended-key-usage'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GetPKICertificate.prototype['json'] = false; -/** - * PKI key file contents. If this option is used, the certificate will be printed to stdout - * @member {String} key-data-base64 - */ - -GetPKICertificate.prototype['key-data-base64'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GetPKICertificate.prototype['token'] = undefined; -/** - * Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL) - * @member {Number} ttl - */ - -GetPKICertificate.prototype['ttl'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GetPKICertificate.prototype['uid-token'] = undefined; -/** - * The URI Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any URI.* names are taken from it) - * @member {String} uri-sans - */ - -GetPKICertificate.prototype['uri-sans'] = undefined; -var _default = GetPKICertificate; -exports["default"] = _default; - -/***/ }), - -/***/ 1840: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetPKICertificateOutput model module. - * @module model/GetPKICertificateOutput - * @version 3.3.16 - */ -var GetPKICertificateOutput = /*#__PURE__*/function () { - /** - * Constructs a new GetPKICertificateOutput. - * @alias module:model/GetPKICertificateOutput - */ - function GetPKICertificateOutput() { - _classCallCheck(this, GetPKICertificateOutput); - - GetPKICertificateOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetPKICertificateOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GetPKICertificateOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetPKICertificateOutput} obj Optional instance to populate. - * @return {module:model/GetPKICertificateOutput} The populated GetPKICertificateOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetPKICertificateOutput(); - - if (data.hasOwnProperty('cert_display_id')) { - obj['cert_display_id'] = _ApiClient["default"].convertToType(data['cert_display_id'], 'String'); - } - - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - - if (data.hasOwnProperty('parent_cert')) { - obj['parent_cert'] = _ApiClient["default"].convertToType(data['parent_cert'], 'String'); - } - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - - if (data.hasOwnProperty('reading_token')) { - obj['reading_token'] = _ApiClient["default"].convertToType(data['reading_token'], 'String'); - } - } - - return obj; - } - }]); - - return GetPKICertificateOutput; -}(); -/** - * @member {String} cert_display_id - */ - - -GetPKICertificateOutput.prototype['cert_display_id'] = undefined; -/** - * @member {String} data - */ - -GetPKICertificateOutput.prototype['data'] = undefined; -/** - * @member {String} parent_cert - */ - -GetPKICertificateOutput.prototype['parent_cert'] = undefined; -/** - * @member {String} path - */ - -GetPKICertificateOutput.prototype['path'] = undefined; -/** - * @member {String} reading_token - */ - -GetPKICertificateOutput.prototype['reading_token'] = undefined; -var _default = GetPKICertificateOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 43282: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _Producer = _interopRequireDefault(__nccwpck_require__(11490)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetProducersListReplyObj model module. - * @module model/GetProducersListReplyObj - * @version 3.3.16 - */ -var GetProducersListReplyObj = /*#__PURE__*/function () { - /** - * Constructs a new GetProducersListReplyObj. - * @alias module:model/GetProducersListReplyObj - */ - function GetProducersListReplyObj() { - _classCallCheck(this, GetProducersListReplyObj); - - GetProducersListReplyObj.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetProducersListReplyObj, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GetProducersListReplyObj from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProducersListReplyObj} obj Optional instance to populate. - * @return {module:model/GetProducersListReplyObj} The populated GetProducersListReplyObj instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProducersListReplyObj(); - - if (data.hasOwnProperty('producers')) { - obj['producers'] = _ApiClient["default"].convertToType(data['producers'], [_Producer["default"]]); - } - - if (data.hasOwnProperty('producers_errors')) { - obj['producers_errors'] = _ApiClient["default"].convertToType(data['producers_errors'], Object); - } - } - - return obj; - } - }]); - - return GetProducersListReplyObj; -}(); -/** - * @member {Array.} producers - */ - - -GetProducersListReplyObj.prototype['producers'] = undefined; -/** - * @member {Object} producers_errors - */ - -GetProducersListReplyObj.prototype['producers_errors'] = undefined; -var _default = GetProducersListReplyObj; -exports["default"] = _default; - -/***/ }), - -/***/ 4599: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetRSAPublic model module. - * @module model/GetRSAPublic - * @version 3.3.16 - */ -var GetRSAPublic = /*#__PURE__*/function () { - /** - * Constructs a new GetRSAPublic. - * getRSAPublic is a command that obtains the public key from a specific RSA private key. - * @alias module:model/GetRSAPublic - * @param name {String} Name of RSA key to extract the public key from - */ - function GetRSAPublic(name) { - _classCallCheck(this, GetRSAPublic); - - GetRSAPublic.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetRSAPublic, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GetRSAPublic from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRSAPublic} obj Optional instance to populate. - * @return {module:model/GetRSAPublic} The populated GetRSAPublic instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRSAPublic(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GetRSAPublic; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GetRSAPublic.prototype['json'] = false; -/** - * Name of RSA key to extract the public key from - * @member {String} name - */ - -GetRSAPublic.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GetRSAPublic.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GetRSAPublic.prototype['uid-token'] = undefined; -var _default = GetRSAPublic; -exports["default"] = _default; - -/***/ }), - -/***/ 71534: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetRSAPublicOutput model module. - * @module model/GetRSAPublicOutput - * @version 3.3.16 - */ -var GetRSAPublicOutput = /*#__PURE__*/function () { - /** - * Constructs a new GetRSAPublicOutput. - * @alias module:model/GetRSAPublicOutput - */ - function GetRSAPublicOutput() { - _classCallCheck(this, GetRSAPublicOutput); - - GetRSAPublicOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetRSAPublicOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GetRSAPublicOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRSAPublicOutput} obj Optional instance to populate. - * @return {module:model/GetRSAPublicOutput} The populated GetRSAPublicOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRSAPublicOutput(); - - if (data.hasOwnProperty('pem')) { - obj['pem'] = _ApiClient["default"].convertToType(data['pem'], 'String'); - } - - if (data.hasOwnProperty('raw')) { - obj['raw'] = _ApiClient["default"].convertToType(data['raw'], 'String'); - } - - if (data.hasOwnProperty('ssh')) { - obj['ssh'] = _ApiClient["default"].convertToType(data['ssh'], 'String'); - } - } - - return obj; - } - }]); - - return GetRSAPublicOutput; -}(); -/** - * @member {String} pem - */ - - -GetRSAPublicOutput.prototype['pem'] = undefined; -/** - * @member {String} raw - */ - -GetRSAPublicOutput.prototype['raw'] = undefined; -/** - * @member {String} ssh - */ - -GetRSAPublicOutput.prototype['ssh'] = undefined; -var _default = GetRSAPublicOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 19262: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetRole model module. - * @module model/GetRole - * @version 3.3.16 - */ -var GetRole = /*#__PURE__*/function () { - /** - * Constructs a new GetRole. - * @alias module:model/GetRole - * @param name {String} Role name - */ - function GetRole(name) { - _classCallCheck(this, GetRole); - - GetRole.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetRole, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GetRole from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRole} obj Optional instance to populate. - * @return {module:model/GetRole} The populated GetRole instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRole(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GetRole; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GetRole.prototype['json'] = false; -/** - * Role name - * @member {String} name - */ - -GetRole.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GetRole.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GetRole.prototype['uid-token'] = undefined; -var _default = GetRole; -exports["default"] = _default; - -/***/ }), - -/***/ 14948: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetRotatedSecretValue model module. - * @module model/GetRotatedSecretValue - * @version 3.3.16 - */ -var GetRotatedSecretValue = /*#__PURE__*/function () { - /** - * Constructs a new GetRotatedSecretValue. - * @alias module:model/GetRotatedSecretValue - * @param names {String} Secret name - */ - function GetRotatedSecretValue(names) { - _classCallCheck(this, GetRotatedSecretValue); - - GetRotatedSecretValue.initialize(this, names); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetRotatedSecretValue, null, [{ - key: "initialize", - value: function initialize(obj, names) { - obj['names'] = names; - } - /** - * Constructs a GetRotatedSecretValue from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRotatedSecretValue} obj Optional instance to populate. - * @return {module:model/GetRotatedSecretValue} The populated GetRotatedSecretValue instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRotatedSecretValue(); - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - - if (data.hasOwnProperty('ignore-cache')) { - obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('names')) { - obj['names'] = _ApiClient["default"].convertToType(data['names'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return GetRotatedSecretValue; -}(); -/** - * Get rotated secret value of specific Host (relevant only for Linked Target) - * @member {String} host - */ - - -GetRotatedSecretValue.prototype['host'] = undefined; -/** - * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI - * @member {String} ignore-cache - * @default 'false' - */ - -GetRotatedSecretValue.prototype['ignore-cache'] = 'false'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GetRotatedSecretValue.prototype['json'] = false; -/** - * Secret name - * @member {String} names - */ - -GetRotatedSecretValue.prototype['names'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GetRotatedSecretValue.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GetRotatedSecretValue.prototype['uid-token'] = undefined; -/** - * Secret version - * @member {Number} version - */ - -GetRotatedSecretValue.prototype['version'] = undefined; -var _default = GetRotatedSecretValue; -exports["default"] = _default; - -/***/ }), - -/***/ 95215: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetSSHCertificate model module. - * @module model/GetSSHCertificate - * @version 3.3.16 - */ -var GetSSHCertificate = /*#__PURE__*/function () { - /** - * Constructs a new GetSSHCertificate. - * @alias module:model/GetSSHCertificate - * @param certIssuerName {String} The name of the SSH certificate issuer - * @param certUsername {String} The username to sign in the SSH certificate - */ - function GetSSHCertificate(certIssuerName, certUsername) { - _classCallCheck(this, GetSSHCertificate); - - GetSSHCertificate.initialize(this, certIssuerName, certUsername); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetSSHCertificate, null, [{ - key: "initialize", - value: function initialize(obj, certIssuerName, certUsername) { - obj['cert-issuer-name'] = certIssuerName; - obj['cert-username'] = certUsername; - } - /** - * Constructs a GetSSHCertificate from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetSSHCertificate} obj Optional instance to populate. - * @return {module:model/GetSSHCertificate} The populated GetSSHCertificate instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetSSHCertificate(); - - if (data.hasOwnProperty('cert-issuer-name')) { - obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); - } - - if (data.hasOwnProperty('cert-username')) { - obj['cert-username'] = _ApiClient["default"].convertToType(data['cert-username'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('legacy-signing-alg-name')) { - obj['legacy-signing-alg-name'] = _ApiClient["default"].convertToType(data['legacy-signing-alg-name'], 'Boolean'); - } - - if (data.hasOwnProperty('public-key-data')) { - obj['public-key-data'] = _ApiClient["default"].convertToType(data['public-key-data'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GetSSHCertificate; -}(); -/** - * The name of the SSH certificate issuer - * @member {String} cert-issuer-name - */ - - -GetSSHCertificate.prototype['cert-issuer-name'] = undefined; -/** - * The username to sign in the SSH certificate - * @member {String} cert-username - */ - -GetSSHCertificate.prototype['cert-username'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GetSSHCertificate.prototype['json'] = false; -/** - * Set this option to output legacy ('ssh-rsa-cert-v01@openssh.com') signing algorithm name in the certificate. - * @member {Boolean} legacy-signing-alg-name - * @default false - */ - -GetSSHCertificate.prototype['legacy-signing-alg-name'] = false; -/** - * SSH public key file contents. If this option is used, the certificate will be printed to stdout - * @member {String} public-key-data - */ - -GetSSHCertificate.prototype['public-key-data'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GetSSHCertificate.prototype['token'] = undefined; -/** - * Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL) - * @member {Number} ttl - */ - -GetSSHCertificate.prototype['ttl'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GetSSHCertificate.prototype['uid-token'] = undefined; -var _default = GetSSHCertificate; -exports["default"] = _default; - -/***/ }), - -/***/ 94518: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetSSHCertificateOutput model module. - * @module model/GetSSHCertificateOutput - * @version 3.3.16 - */ -var GetSSHCertificateOutput = /*#__PURE__*/function () { - /** - * Constructs a new GetSSHCertificateOutput. - * @alias module:model/GetSSHCertificateOutput - */ - function GetSSHCertificateOutput() { - _classCallCheck(this, GetSSHCertificateOutput); - - GetSSHCertificateOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetSSHCertificateOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GetSSHCertificateOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetSSHCertificateOutput} obj Optional instance to populate. - * @return {module:model/GetSSHCertificateOutput} The populated GetSSHCertificateOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetSSHCertificateOutput(); - - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - } - - return obj; - } - }]); - - return GetSSHCertificateOutput; -}(); -/** - * @member {String} data - */ - - -GetSSHCertificateOutput.prototype['data'] = undefined; -/** - * @member {String} path - */ - -GetSSHCertificateOutput.prototype['path'] = undefined; -var _default = GetSSHCertificateOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 24725: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetSecretValue model module. - * @module model/GetSecretValue - * @version 3.3.16 - */ -var GetSecretValue = /*#__PURE__*/function () { - /** - * Constructs a new GetSecretValue. - * @alias module:model/GetSecretValue - * @param names {Array.} Secret name - */ - function GetSecretValue(names) { - _classCallCheck(this, GetSecretValue); - - GetSecretValue.initialize(this, names); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetSecretValue, null, [{ - key: "initialize", - value: function initialize(obj, names) { - obj['names'] = names; - } - /** - * Constructs a GetSecretValue from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetSecretValue} obj Optional instance to populate. - * @return {module:model/GetSecretValue} The populated GetSecretValue instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetSecretValue(); - - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); - } - - if (data.hasOwnProperty('ignore-cache')) { - obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('names')) { - obj['names'] = _ApiClient["default"].convertToType(data['names'], ['String']); - } - - if (data.hasOwnProperty('pretty-print')) { - obj['pretty-print'] = _ApiClient["default"].convertToType(data['pretty-print'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return GetSecretValue; -}(); -/** - * for personal password manager - * @member {String} accessibility - * @default 'regular' - */ - - -GetSecretValue.prototype['accessibility'] = 'regular'; -/** - * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI - * @member {String} ignore-cache - * @default 'false' - */ - -GetSecretValue.prototype['ignore-cache'] = 'false'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -GetSecretValue.prototype['json'] = false; -/** - * Secret name - * @member {Array.} names - */ - -GetSecretValue.prototype['names'] = undefined; -/** - * Print the secret value with json-pretty-print (not relevent to SDK) - * @member {Boolean} pretty-print - */ - -GetSecretValue.prototype['pretty-print'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GetSecretValue.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GetSecretValue.prototype['uid-token'] = undefined; -/** - * Secret version - * @member {Number} version - */ - -GetSecretValue.prototype['version'] = undefined; -var _default = GetSecretValue; -exports["default"] = _default; - -/***/ }), - -/***/ 26075: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetTags model module. - * @module model/GetTags - * @version 3.3.16 - */ -var GetTags = /*#__PURE__*/function () { - /** - * Constructs a new GetTags. - * @alias module:model/GetTags - * @param name {String} Item name - */ - function GetTags(name) { - _classCallCheck(this, GetTags); - - GetTags.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetTags, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GetTags from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetTags} obj Optional instance to populate. - * @return {module:model/GetTags} The populated GetTags instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetTags(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GetTags; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GetTags.prototype['json'] = false; -/** - * Item name - * @member {String} name - */ - -GetTags.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GetTags.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GetTags.prototype['uid-token'] = undefined; -var _default = GetTags; -exports["default"] = _default; - -/***/ }), - -/***/ 51395: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetTarget model module. - * @module model/GetTarget - * @version 3.3.16 - */ -var GetTarget = /*#__PURE__*/function () { - /** - * Constructs a new GetTarget. - * @alias module:model/GetTarget - * @param name {String} Target name - */ - function GetTarget(name) { - _classCallCheck(this, GetTarget); - - GetTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GetTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetTarget} obj Optional instance to populate. - * @return {module:model/GetTarget} The populated GetTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetTarget(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('show-versions')) { - obj['show-versions'] = _ApiClient["default"].convertToType(data['show-versions'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GetTarget; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GetTarget.prototype['json'] = false; -/** - * Target name - * @member {String} name - */ - -GetTarget.prototype['name'] = undefined; -/** - * Include all target versions in reply - * @member {Boolean} show-versions - * @default false - */ - -GetTarget.prototype['show-versions'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GetTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GetTarget.prototype['uid-token'] = undefined; -var _default = GetTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 48741: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetTargetDetails model module. - * @module model/GetTargetDetails - * @version 3.3.16 - */ -var GetTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new GetTargetDetails. - * @alias module:model/GetTargetDetails - * @param name {String} Target name - */ - function GetTargetDetails(name) { - _classCallCheck(this, GetTargetDetails); - - GetTargetDetails.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a GetTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetTargetDetails} obj Optional instance to populate. - * @return {module:model/GetTargetDetails} The populated GetTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetTargetDetails(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('show-versions')) { - obj['show-versions'] = _ApiClient["default"].convertToType(data['show-versions'], 'Boolean'); - } - - if (data.hasOwnProperty('target-version')) { - obj['target-version'] = _ApiClient["default"].convertToType(data['target-version'], 'Number'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return GetTargetDetails; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -GetTargetDetails.prototype['json'] = false; -/** - * Target name - * @member {String} name - */ - -GetTargetDetails.prototype['name'] = undefined; -/** - * Include all target versions in reply - * @member {Boolean} show-versions - * @default false - */ - -GetTargetDetails.prototype['show-versions'] = false; -/** - * Target version - * @member {Number} target-version - */ - -GetTargetDetails.prototype['target-version'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -GetTargetDetails.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -GetTargetDetails.prototype['uid-token'] = undefined; -var _default = GetTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 69392: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _Target = _interopRequireDefault(__nccwpck_require__(50373)); - -var _TargetTypeDetailsInput = _interopRequireDefault(__nccwpck_require__(6643)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GetTargetDetailsOutput model module. - * @module model/GetTargetDetailsOutput - * @version 3.3.16 - */ -var GetTargetDetailsOutput = /*#__PURE__*/function () { - /** - * Constructs a new GetTargetDetailsOutput. - * @alias module:model/GetTargetDetailsOutput - */ - function GetTargetDetailsOutput() { - _classCallCheck(this, GetTargetDetailsOutput); - - GetTargetDetailsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GetTargetDetailsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GetTargetDetailsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetTargetDetailsOutput} obj Optional instance to populate. - * @return {module:model/GetTargetDetailsOutput} The populated GetTargetDetailsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetTargetDetailsOutput(); - - if (data.hasOwnProperty('target')) { - obj['target'] = _Target["default"].constructFromObject(data['target']); - } - - if (data.hasOwnProperty('value')) { - obj['value'] = _TargetTypeDetailsInput["default"].constructFromObject(data['value']); - } - } - - return obj; - } - }]); - - return GetTargetDetailsOutput; -}(); -/** - * @member {module:model/Target} target - */ - - -GetTargetDetailsOutput.prototype['target'] = undefined; -/** - * @member {module:model/TargetTypeDetailsInput} value - */ - -GetTargetDetailsOutput.prototype['value'] = undefined; -var _default = GetTargetDetailsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 46870: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GithubTargetDetails model module. - * @module model/GithubTargetDetails - * @version 3.3.16 - */ -var GithubTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new GithubTargetDetails. - * @alias module:model/GithubTargetDetails - */ - function GithubTargetDetails() { - _classCallCheck(this, GithubTargetDetails); - - GithubTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GithubTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GithubTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GithubTargetDetails} obj Optional instance to populate. - * @return {module:model/GithubTargetDetails} The populated GithubTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GithubTargetDetails(); - - if (data.hasOwnProperty('github_app_id')) { - obj['github_app_id'] = _ApiClient["default"].convertToType(data['github_app_id'], 'Number'); - } - - if (data.hasOwnProperty('github_app_private_key')) { - obj['github_app_private_key'] = _ApiClient["default"].convertToType(data['github_app_private_key'], 'String'); - } - - if (data.hasOwnProperty('github_base_url')) { - obj['github_base_url'] = _ApiClient["default"].convertToType(data['github_base_url'], 'String'); - } - } - - return obj; - } - }]); - - return GithubTargetDetails; -}(); -/** - * @member {Number} github_app_id - */ - - -GithubTargetDetails.prototype['github_app_id'] = undefined; -/** - * @member {String} github_app_private_key - */ - -GithubTargetDetails.prototype['github_app_private_key'] = undefined; -/** - * @member {String} github_base_url - */ - -GithubTargetDetails.prototype['github_base_url'] = undefined; -var _default = GithubTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 77606: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GlobalSignAtlasTargetDetails model module. - * @module model/GlobalSignAtlasTargetDetails - * @version 3.3.16 - */ -var GlobalSignAtlasTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new GlobalSignAtlasTargetDetails. - * GlobalSignAtlasTargetDetails - * @alias module:model/GlobalSignAtlasTargetDetails - */ - function GlobalSignAtlasTargetDetails() { - _classCallCheck(this, GlobalSignAtlasTargetDetails); - - GlobalSignAtlasTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GlobalSignAtlasTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GlobalSignAtlasTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GlobalSignAtlasTargetDetails} obj Optional instance to populate. - * @return {module:model/GlobalSignAtlasTargetDetails} The populated GlobalSignAtlasTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GlobalSignAtlasTargetDetails(); - - if (data.hasOwnProperty('api_key')) { - obj['api_key'] = _ApiClient["default"].convertToType(data['api_key'], 'String'); - } - - if (data.hasOwnProperty('api_secret')) { - obj['api_secret'] = _ApiClient["default"].convertToType(data['api_secret'], 'String'); - } - - if (data.hasOwnProperty('mtls_cert')) { - obj['mtls_cert'] = _ApiClient["default"].convertToType(data['mtls_cert'], 'String'); - } - - if (data.hasOwnProperty('mtls_key')) { - obj['mtls_key'] = _ApiClient["default"].convertToType(data['mtls_key'], 'String'); - } - - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); - } - } - - return obj; - } - }]); - - return GlobalSignAtlasTargetDetails; -}(); -/** - * @member {String} api_key - */ - - -GlobalSignAtlasTargetDetails.prototype['api_key'] = undefined; -/** - * @member {String} api_secret - */ - -GlobalSignAtlasTargetDetails.prototype['api_secret'] = undefined; -/** - * @member {String} mtls_cert - */ - -GlobalSignAtlasTargetDetails.prototype['mtls_cert'] = undefined; -/** - * @member {String} mtls_key - */ - -GlobalSignAtlasTargetDetails.prototype['mtls_key'] = undefined; -/** - * A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. - * @member {Number} timeout - */ - -GlobalSignAtlasTargetDetails.prototype['timeout'] = undefined; -var _default = GlobalSignAtlasTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 4150: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GlobalSignGCCTargetDetails model module. - * @module model/GlobalSignGCCTargetDetails - * @version 3.3.16 - */ -var GlobalSignGCCTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new GlobalSignGCCTargetDetails. - * GlobalSignGCCTargetDetails - * @alias module:model/GlobalSignGCCTargetDetails - */ - function GlobalSignGCCTargetDetails() { - _classCallCheck(this, GlobalSignGCCTargetDetails); - - GlobalSignGCCTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GlobalSignGCCTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GlobalSignGCCTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GlobalSignGCCTargetDetails} obj Optional instance to populate. - * @return {module:model/GlobalSignGCCTargetDetails} The populated GlobalSignGCCTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GlobalSignGCCTargetDetails(); - - if (data.hasOwnProperty('email')) { - obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); - } - - if (data.hasOwnProperty('first_name')) { - obj['first_name'] = _ApiClient["default"].convertToType(data['first_name'], 'String'); - } - - if (data.hasOwnProperty('last_name')) { - obj['last_name'] = _ApiClient["default"].convertToType(data['last_name'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('phone')) { - obj['phone'] = _ApiClient["default"].convertToType(data['phone'], 'String'); - } - - if (data.hasOwnProperty('profile_id')) { - obj['profile_id'] = _ApiClient["default"].convertToType(data['profile_id'], 'String'); - } - - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); - } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } - } - - return obj; - } - }]); - - return GlobalSignGCCTargetDetails; -}(); -/** - * @member {String} email - */ - - -GlobalSignGCCTargetDetails.prototype['email'] = undefined; -/** - * Contact Info - GlobalSign requires this to be sent with every certificate creation request - * @member {String} first_name - */ - -GlobalSignGCCTargetDetails.prototype['first_name'] = undefined; -/** - * @member {String} last_name - */ - -GlobalSignGCCTargetDetails.prototype['last_name'] = undefined; -/** - * @member {String} password - */ - -GlobalSignGCCTargetDetails.prototype['password'] = undefined; -/** - * @member {String} phone - */ - -GlobalSignGCCTargetDetails.prototype['phone'] = undefined; -/** - * @member {String} profile_id - */ - -GlobalSignGCCTargetDetails.prototype['profile_id'] = undefined; -/** - * A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. - * @member {Number} timeout - */ - -GlobalSignGCCTargetDetails.prototype['timeout'] = undefined; -/** - * @member {String} username - */ - -GlobalSignGCCTargetDetails.prototype['username'] = undefined; -var _default = GlobalSignGCCTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 36479: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GoogleChronicleForwardingConfig model module. - * @module model/GoogleChronicleForwardingConfig - * @version 3.3.16 - */ -var GoogleChronicleForwardingConfig = /*#__PURE__*/function () { - /** - * Constructs a new GoogleChronicleForwardingConfig. - * @alias module:model/GoogleChronicleForwardingConfig - */ - function GoogleChronicleForwardingConfig() { - _classCallCheck(this, GoogleChronicleForwardingConfig); - - GoogleChronicleForwardingConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GoogleChronicleForwardingConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GoogleChronicleForwardingConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GoogleChronicleForwardingConfig} obj Optional instance to populate. - * @return {module:model/GoogleChronicleForwardingConfig} The populated GoogleChronicleForwardingConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GoogleChronicleForwardingConfig(); - - if (data.hasOwnProperty('customer_id')) { - obj['customer_id'] = _ApiClient["default"].convertToType(data['customer_id'], 'String'); - } - - if (data.hasOwnProperty('log_type')) { - obj['log_type'] = _ApiClient["default"].convertToType(data['log_type'], 'String'); - } - - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } - - if (data.hasOwnProperty('service_account_key')) { - obj['service_account_key'] = _ApiClient["default"].convertToType(data['service_account_key'], 'String'); - } - } - - return obj; - } - }]); - - return GoogleChronicleForwardingConfig; -}(); -/** - * @member {String} customer_id - */ - - -GoogleChronicleForwardingConfig.prototype['customer_id'] = undefined; -/** - * @member {String} log_type - */ - -GoogleChronicleForwardingConfig.prototype['log_type'] = undefined; -/** - * @member {String} region - */ - -GoogleChronicleForwardingConfig.prototype['region'] = undefined; -/** - * @member {String} service_account_key - */ - -GoogleChronicleForwardingConfig.prototype['service_account_key'] = undefined; -var _default = GoogleChronicleForwardingConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 73728: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The GwClusterIdentity model module. - * @module model/GwClusterIdentity - * @version 3.3.16 - */ -var GwClusterIdentity = /*#__PURE__*/function () { - /** - * Constructs a new GwClusterIdentity. - * @alias module:model/GwClusterIdentity - */ - function GwClusterIdentity() { - _classCallCheck(this, GwClusterIdentity); - - GwClusterIdentity.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(GwClusterIdentity, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a GwClusterIdentity from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GwClusterIdentity} obj Optional instance to populate. - * @return {module:model/GwClusterIdentity} The populated GwClusterIdentity instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GwClusterIdentity(); - - if (data.hasOwnProperty('allowed')) { - obj['allowed'] = _ApiClient["default"].convertToType(data['allowed'], 'Boolean'); - } - - if (data.hasOwnProperty('allowed_access_ids')) { - obj['allowed_access_ids'] = _ApiClient["default"].convertToType(data['allowed_access_ids'], ['String']); - } - - if (data.hasOwnProperty('cluster_name')) { - obj['cluster_name'] = _ApiClient["default"].convertToType(data['cluster_name'], 'String'); - } - - if (data.hasOwnProperty('cluster_url')) { - obj['cluster_url'] = _ApiClient["default"].convertToType(data['cluster_url'], 'String'); - } - - if (data.hasOwnProperty('current_gw')) { - obj['current_gw'] = _ApiClient["default"].convertToType(data['current_gw'], 'Boolean'); - } - - if (data.hasOwnProperty('customer_fragment_ids')) { - obj['customer_fragment_ids'] = _ApiClient["default"].convertToType(data['customer_fragment_ids'], ['String']); - } - - if (data.hasOwnProperty('default_protection_key_id')) { - obj['default_protection_key_id'] = _ApiClient["default"].convertToType(data['default_protection_key_id'], 'Number'); - } - - if (data.hasOwnProperty('default_secret_location')) { - obj['default_secret_location'] = _ApiClient["default"].convertToType(data['default_secret_location'], 'String'); - } - - if (data.hasOwnProperty('display_name')) { - obj['display_name'] = _ApiClient["default"].convertToType(data['display_name'], 'String'); - } - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - - if (data.hasOwnProperty('status_description')) { - obj['status_description'] = _ApiClient["default"].convertToType(data['status_description'], 'String'); - } - } - - return obj; - } - }]); - - return GwClusterIdentity; -}(); -/** - * @member {Boolean} allowed - */ - - -GwClusterIdentity.prototype['allowed'] = undefined; -/** - * @member {Array.} allowed_access_ids - */ - -GwClusterIdentity.prototype['allowed_access_ids'] = undefined; -/** - * @member {String} cluster_name - */ - -GwClusterIdentity.prototype['cluster_name'] = undefined; -/** - * @member {String} cluster_url - */ - -GwClusterIdentity.prototype['cluster_url'] = undefined; -/** - * @member {Boolean} current_gw - */ - -GwClusterIdentity.prototype['current_gw'] = undefined; -/** - * @member {Array.} customer_fragment_ids - */ - -GwClusterIdentity.prototype['customer_fragment_ids'] = undefined; -/** - * @member {Number} default_protection_key_id - */ - -GwClusterIdentity.prototype['default_protection_key_id'] = undefined; -/** - * @member {String} default_secret_location - */ - -GwClusterIdentity.prototype['default_secret_location'] = undefined; -/** - * @member {String} display_name - */ - -GwClusterIdentity.prototype['display_name'] = undefined; -/** - * @member {Number} id - */ - -GwClusterIdentity.prototype['id'] = undefined; -/** - * @member {String} status - */ - -GwClusterIdentity.prototype['status'] = undefined; -/** - * @member {String} status_description - */ - -GwClusterIdentity.prototype['status_description'] = undefined; -var _default = GwClusterIdentity; -exports["default"] = _default; - -/***/ }), - -/***/ 16157: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _HashiPayload = _interopRequireDefault(__nccwpck_require__(2703)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The HashiMigration model module. - * @module model/HashiMigration - * @version 3.3.16 - */ -var HashiMigration = /*#__PURE__*/function () { - /** - * Constructs a new HashiMigration. - * @alias module:model/HashiMigration - */ - function HashiMigration() { - _classCallCheck(this, HashiMigration); - - HashiMigration.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(HashiMigration, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a HashiMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/HashiMigration} obj Optional instance to populate. - * @return {module:model/HashiMigration} The populated HashiMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new HashiMigration(); - - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); - } - - if (data.hasOwnProperty('payload')) { - obj['payload'] = _HashiPayload["default"].constructFromObject(data['payload']); - } - } - - return obj; - } - }]); - - return HashiMigration; -}(); -/** - * @member {module:model/MigrationGeneral} general - */ - - -HashiMigration.prototype['general'] = undefined; -/** - * @member {module:model/HashiPayload} payload - */ - -HashiMigration.prototype['payload'] = undefined; -var _default = HashiMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 2703: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The HashiPayload model module. - * @module model/HashiPayload - * @version 3.3.16 - */ -var HashiPayload = /*#__PURE__*/function () { - /** - * Constructs a new HashiPayload. - * @alias module:model/HashiPayload - */ - function HashiPayload() { - _classCallCheck(this, HashiPayload); - - HashiPayload.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(HashiPayload, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a HashiPayload from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/HashiPayload} obj Optional instance to populate. - * @return {module:model/HashiPayload} The populated HashiPayload instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new HashiPayload(); - - if (data.hasOwnProperty('import_as_json')) { - obj['import_as_json'] = _ApiClient["default"].convertToType(data['import_as_json'], 'Boolean'); - } - - if (data.hasOwnProperty('namespaces')) { - obj['namespaces'] = _ApiClient["default"].convertToType(data['namespaces'], ['String']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - } - - return obj; - } - }]); - - return HashiPayload; -}(); -/** - * @member {Boolean} import_as_json - */ - - -HashiPayload.prototype['import_as_json'] = undefined; -/** - * @member {Array.} namespaces - */ - -HashiPayload.prototype['namespaces'] = undefined; -/** - * @member {String} token - */ - -HashiPayload.prototype['token'] = undefined; -/** - * @member {String} url - */ - -HashiPayload.prototype['url'] = undefined; -var _default = HashiPayload; -exports["default"] = _default; - -/***/ }), - -/***/ 9727: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Hmac model module. - * @module model/Hmac - * @version 3.3.16 - */ -var Hmac = /*#__PURE__*/function () { - /** - * Constructs a new Hmac. - * @alias module:model/Hmac - * @param keyName {String} The name of the key to use in the encryption process - */ - function Hmac(keyName) { - _classCallCheck(this, Hmac); - - Hmac.initialize(this, keyName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Hmac, null, [{ - key: "initialize", - value: function initialize(obj, keyName) { - obj['key-name'] = keyName; - } - /** - * Constructs a Hmac from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Hmac} obj Optional instance to populate. - * @return {module:model/Hmac} The populated Hmac instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Hmac(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('hash-function')) { - obj['hash-function'] = _ApiClient["default"].convertToType(data['hash-function'], 'String'); - } - - if (data.hasOwnProperty('input-format')) { - obj['input-format'] = _ApiClient["default"].convertToType(data['input-format'], 'String'); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('plaintext')) { - obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return Hmac; -}(); -/** - * The display id of the key to use in the encryption process - * @member {String} display-id - */ - - -Hmac.prototype['display-id'] = undefined; -/** - * Hash function [sha-256,sha-512] - * @member {String} hash-function - * @default 'sha-256' - */ - -Hmac.prototype['hash-function'] = 'sha-256'; -/** - * Select default assumed format for any plaintext input. Currently supported options: [base64] - * @member {String} input-format - */ - -Hmac.prototype['input-format'] = undefined; -/** - * The item id of the key to use in the encryption process - * @member {Number} item-id - */ - -Hmac.prototype['item-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -Hmac.prototype['json'] = false; -/** - * The name of the key to use in the encryption process - * @member {String} key-name - */ - -Hmac.prototype['key-name'] = undefined; -/** - * Data to perform hmac on - * @member {String} plaintext - */ - -Hmac.prototype['plaintext'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -Hmac.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -Hmac.prototype['uid-token'] = undefined; -var _default = Hmac; -exports["default"] = _default; - -/***/ }), - -/***/ 67718: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The HmacOutput model module. - * @module model/HmacOutput - * @version 3.3.16 - */ -var HmacOutput = /*#__PURE__*/function () { - /** - * Constructs a new HmacOutput. - * @alias module:model/HmacOutput - */ - function HmacOutput() { - _classCallCheck(this, HmacOutput); - - HmacOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(HmacOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a HmacOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/HmacOutput} obj Optional instance to populate. - * @return {module:model/HmacOutput} The populated HmacOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new HmacOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return HmacOutput; -}(); -/** - * @member {String} result - */ - - -HmacOutput.prototype['result'] = undefined; -var _default = HmacOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 59348: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The HuaweiAccessRules model module. - * @module model/HuaweiAccessRules - * @version 3.3.16 - */ -var HuaweiAccessRules = /*#__PURE__*/function () { - /** - * Constructs a new HuaweiAccessRules. - * @alias module:model/HuaweiAccessRules - */ - function HuaweiAccessRules() { - _classCallCheck(this, HuaweiAccessRules); - - HuaweiAccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(HuaweiAccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a HuaweiAccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/HuaweiAccessRules} obj Optional instance to populate. - * @return {module:model/HuaweiAccessRules} The populated HuaweiAccessRules instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new HuaweiAccessRules(); - - if (data.hasOwnProperty('auth_endpoint')) { - obj['auth_endpoint'] = _ApiClient["default"].convertToType(data['auth_endpoint'], 'String'); - } - - if (data.hasOwnProperty('domain_id')) { - obj['domain_id'] = _ApiClient["default"].convertToType(data['domain_id'], ['String']); - } - - if (data.hasOwnProperty('domain_name')) { - obj['domain_name'] = _ApiClient["default"].convertToType(data['domain_name'], ['String']); - } - - if (data.hasOwnProperty('tenant_id')) { - obj['tenant_id'] = _ApiClient["default"].convertToType(data['tenant_id'], ['String']); - } - - if (data.hasOwnProperty('tenant_name')) { - obj['tenant_name'] = _ApiClient["default"].convertToType(data['tenant_name'], ['String']); - } - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], ['String']); - } - - if (data.hasOwnProperty('user_name')) { - obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], ['String']); - } - } - - return obj; - } - }]); - - return HuaweiAccessRules; -}(); -/** - * The auth URL. - * @member {String} auth_endpoint - */ - - -HuaweiAccessRules.prototype['auth_endpoint'] = undefined; -/** - * The list of domain ids that the login is restricted to. - * @member {Array.} domain_id - */ - -HuaweiAccessRules.prototype['domain_id'] = undefined; -/** - * The list of domainNames that the login is restricted to. - * @member {Array.} domain_name - */ - -HuaweiAccessRules.prototype['domain_name'] = undefined; -/** - * The list of tenantIDs that the login is restricted to. - * @member {Array.} tenant_id - */ - -HuaweiAccessRules.prototype['tenant_id'] = undefined; -/** - * The list of tenantNames that the login is restricted to. - * @member {Array.} tenant_name - */ - -HuaweiAccessRules.prototype['tenant_name'] = undefined; -/** - * The list of user ids that the login is restricted to. - * @member {Array.} user_id - */ - -HuaweiAccessRules.prototype['user_id'] = undefined; -/** - * The list of user names that the login is restricted to. - * @member {Array.} user_name - */ - -HuaweiAccessRules.prototype['user_name'] = undefined; -var _default = HuaweiAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 76407: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ImportPasswords model module. - * @module model/ImportPasswords - * @version 3.3.16 - */ -var ImportPasswords = /*#__PURE__*/function () { - /** - * Constructs a new ImportPasswords. - * importPasswords is a command that import passwords - * @alias module:model/ImportPasswords - * @param importPath {String} File path - */ - function ImportPasswords(importPath) { - _classCallCheck(this, ImportPasswords); - - ImportPasswords.initialize(this, importPath); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ImportPasswords, null, [{ - key: "initialize", - value: function initialize(obj, importPath) { - obj['import-path'] = importPath; - } - /** - * Constructs a ImportPasswords from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ImportPasswords} obj Optional instance to populate. - * @return {module:model/ImportPasswords} The populated ImportPasswords instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ImportPasswords(); - - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); - } - - if (data.hasOwnProperty('format')) { - obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); - } - - if (data.hasOwnProperty('import-path')) { - obj['import-path'] = _ApiClient["default"].convertToType(data['import-path'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); - } - - if (data.hasOwnProperty('target-folder')) { - obj['target-folder'] = _ApiClient["default"].convertToType(data['target-folder'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return ImportPasswords; -}(); -/** - * for personal password manager - * @member {String} accessibility - * @default 'personal' - */ - - -ImportPasswords.prototype['accessibility'] = 'personal'; -/** - * Password format type [LastPass/Chrome/Firefox] - * @member {String} format - * @default 'LastPass' - */ - -ImportPasswords.prototype['format'] = 'LastPass'; -/** - * File path - * @member {String} import-path - */ - -ImportPasswords.prototype['import-path'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -ImportPasswords.prototype['json'] = false; -/** - * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key - */ - -ImportPasswords.prototype['protection_key'] = undefined; -/** - * Target folder for imported passwords - * @member {String} target-folder - * @default '/' - */ - -ImportPasswords.prototype['target-folder'] = '/'; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -ImportPasswords.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -ImportPasswords.prototype['uid-token'] = undefined; -var _default = ImportPasswords; -exports["default"] = _default; - -/***/ }), - -/***/ 8494: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ImportPasswordsOutput model module. - * @module model/ImportPasswordsOutput - * @version 3.3.16 - */ -var ImportPasswordsOutput = /*#__PURE__*/function () { - /** - * Constructs a new ImportPasswordsOutput. - * @alias module:model/ImportPasswordsOutput - */ - function ImportPasswordsOutput() { - _classCallCheck(this, ImportPasswordsOutput); - - ImportPasswordsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ImportPasswordsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ImportPasswordsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ImportPasswordsOutput} obj Optional instance to populate. - * @return {module:model/ImportPasswordsOutput} The populated ImportPasswordsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ImportPasswordsOutput(); - - if (data.hasOwnProperty('imported')) { - obj['imported'] = _ApiClient["default"].convertToType(data['imported'], 'Number'); - } - - if (data.hasOwnProperty('passwords_in_file')) { - obj['passwords_in_file'] = _ApiClient["default"].convertToType(data['passwords_in_file'], 'Number'); - } - - if (data.hasOwnProperty('successfully_parsed')) { - obj['successfully_parsed'] = _ApiClient["default"].convertToType(data['successfully_parsed'], 'Number'); - } - } - - return obj; - } - }]); - - return ImportPasswordsOutput; -}(); -/** - * @member {Number} imported - */ - - -ImportPasswordsOutput.prototype['imported'] = undefined; -/** - * @member {Number} passwords_in_file - */ - -ImportPasswordsOutput.prototype['passwords_in_file'] = undefined; -/** - * @member {Number} successfully_parsed - */ - -ImportPasswordsOutput.prototype['successfully_parsed'] = undefined; -var _default = ImportPasswordsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 9586: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ImporterInfo model module. - * @module model/ImporterInfo - * @version 3.3.16 - */ -var ImporterInfo = /*#__PURE__*/function () { - /** - * Constructs a new ImporterInfo. - * @alias module:model/ImporterInfo - */ - function ImporterInfo() { - _classCallCheck(this, ImporterInfo); - - ImporterInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ImporterInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ImporterInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ImporterInfo} obj Optional instance to populate. - * @return {module:model/ImporterInfo} The populated ImporterInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ImporterInfo(); - - if (data.hasOwnProperty('external_item_id')) { - obj['external_item_id'] = _ApiClient["default"].convertToType(data['external_item_id'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return ImporterInfo; -}(); -/** - * @member {String} external_item_id - */ - - -ImporterInfo.prototype['external_item_id'] = undefined; -/** - * @member {Number} version - */ - -ImporterInfo.prototype['version'] = undefined; -var _default = ImporterInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 23711: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _BastionsList = _interopRequireDefault(__nccwpck_require__(34873)); - -var _CertificateIssueInfo = _interopRequireDefault(__nccwpck_require__(72182)); - -var _GatewayBasicInfo = _interopRequireDefault(__nccwpck_require__(27208)); - -var _ItemGeneralInfo = _interopRequireDefault(__nccwpck_require__(5427)); - -var _ItemTargetAssociation = _interopRequireDefault(__nccwpck_require__(24223)); - -var _ItemVersion = _interopRequireDefault(__nccwpck_require__(71931)); - -var _LinkedDetails = _interopRequireDefault(__nccwpck_require__(33863)); - -var _RuleAssigner = _interopRequireDefault(__nccwpck_require__(48396)); - -var _TargetItemVersion = _interopRequireDefault(__nccwpck_require__(42216)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Item model module. - * @module model/Item - * @version 3.3.16 - */ -var Item = /*#__PURE__*/function () { - /** - * Constructs a new Item. - * @alias module:model/Item - */ - function Item() { - _classCallCheck(this, Item); - - Item.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Item, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a Item from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Item} obj Optional instance to populate. - * @return {module:model/Item} The populated Item instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Item(); - - if (data.hasOwnProperty('access_date')) { - obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); - } - - if (data.hasOwnProperty('access_request_status')) { - obj['access_request_status'] = _ApiClient["default"].convertToType(data['access_request_status'], 'String'); - } - - if (data.hasOwnProperty('auto_rotate')) { - obj['auto_rotate'] = _ApiClient["default"].convertToType(data['auto_rotate'], 'Boolean'); - } - - if (data.hasOwnProperty('bastion_details')) { - obj['bastion_details'] = _BastionsList["default"].constructFromObject(data['bastion_details']); - } - - if (data.hasOwnProperty('cert_issuer_signer_key_name')) { - obj['cert_issuer_signer_key_name'] = _ApiClient["default"].convertToType(data['cert_issuer_signer_key_name'], 'String'); - } - - if (data.hasOwnProperty('certificate_issue_details')) { - obj['certificate_issue_details'] = _CertificateIssueInfo["default"].constructFromObject(data['certificate_issue_details']); - } - - if (data.hasOwnProperty('certificates')) { - obj['certificates'] = _ApiClient["default"].convertToType(data['certificates'], 'String'); - } - - if (data.hasOwnProperty('client_permissions')) { - obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); - } - - if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); - } - - if (data.hasOwnProperty('customer_fragment_id')) { - obj['customer_fragment_id'] = _ApiClient["default"].convertToType(data['customer_fragment_id'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'Boolean'); - } - - if (data.hasOwnProperty('deletion_date')) { - obj['deletion_date'] = _ApiClient["default"].convertToType(data['deletion_date'], 'Date'); - } - - if (data.hasOwnProperty('display_id')) { - obj['display_id'] = _ApiClient["default"].convertToType(data['display_id'], 'String'); - } - - if (data.hasOwnProperty('gateway_details')) { - obj['gateway_details'] = _ApiClient["default"].convertToType(data['gateway_details'], [_GatewayBasicInfo["default"]]); - } - - if (data.hasOwnProperty('is_access_request_enabled')) { - obj['is_access_request_enabled'] = _ApiClient["default"].convertToType(data['is_access_request_enabled'], 'Boolean'); - } - - if (data.hasOwnProperty('is_enabled')) { - obj['is_enabled'] = _ApiClient["default"].convertToType(data['is_enabled'], 'Boolean'); - } - - if (data.hasOwnProperty('item_accessibility')) { - obj['item_accessibility'] = _ApiClient["default"].convertToType(data['item_accessibility'], 'Number'); - } - - if (data.hasOwnProperty('item_general_info')) { - obj['item_general_info'] = _ItemGeneralInfo["default"].constructFromObject(data['item_general_info']); - } - - if (data.hasOwnProperty('item_id')) { - obj['item_id'] = _ApiClient["default"].convertToType(data['item_id'], 'Number'); - } - - if (data.hasOwnProperty('item_metadata')) { - obj['item_metadata'] = _ApiClient["default"].convertToType(data['item_metadata'], 'String'); - } - - if (data.hasOwnProperty('item_name')) { - obj['item_name'] = _ApiClient["default"].convertToType(data['item_name'], 'String'); - } - - if (data.hasOwnProperty('item_size')) { - obj['item_size'] = _ApiClient["default"].convertToType(data['item_size'], 'Number'); - } - - if (data.hasOwnProperty('item_state')) { - obj['item_state'] = _ApiClient["default"].convertToType(data['item_state'], 'String'); - } - - if (data.hasOwnProperty('item_sub_type')) { - obj['item_sub_type'] = _ApiClient["default"].convertToType(data['item_sub_type'], 'String'); - } - - if (data.hasOwnProperty('item_tags')) { - obj['item_tags'] = _ApiClient["default"].convertToType(data['item_tags'], ['String']); - } - - if (data.hasOwnProperty('item_targets_assoc')) { - obj['item_targets_assoc'] = _ApiClient["default"].convertToType(data['item_targets_assoc'], [_ItemTargetAssociation["default"]]); - } - - if (data.hasOwnProperty('item_type')) { - obj['item_type'] = _ApiClient["default"].convertToType(data['item_type'], 'String'); - } - - if (data.hasOwnProperty('item_versions')) { - obj['item_versions'] = _ApiClient["default"].convertToType(data['item_versions'], [_ItemVersion["default"]]); - } - - if (data.hasOwnProperty('last_version')) { - obj['last_version'] = _ApiClient["default"].convertToType(data['last_version'], 'Number'); - } - - if (data.hasOwnProperty('linked_details')) { - obj['linked_details'] = _LinkedDetails["default"].constructFromObject(data['linked_details']); - } - - if (data.hasOwnProperty('modification_date')) { - obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); - } - - if (data.hasOwnProperty('next_rotation_date')) { - obj['next_rotation_date'] = _ApiClient["default"].convertToType(data['next_rotation_date'], 'Date'); - } - - if (data.hasOwnProperty('protection_key_name')) { - obj['protection_key_name'] = _ApiClient["default"].convertToType(data['protection_key_name'], 'String'); - } - - if (data.hasOwnProperty('protection_key_type')) { - obj['protection_key_type'] = _ApiClient["default"].convertToType(data['protection_key_type'], 'String'); - } - - if (data.hasOwnProperty('public_value')) { - obj['public_value'] = _ApiClient["default"].convertToType(data['public_value'], 'String'); - } - - if (data.hasOwnProperty('rotation_interval')) { - obj['rotation_interval'] = _ApiClient["default"].convertToType(data['rotation_interval'], 'Number'); - } - - if (data.hasOwnProperty('shared_by')) { - obj['shared_by'] = _RuleAssigner["default"].constructFromObject(data['shared_by']); - } - - if (data.hasOwnProperty('target_versions')) { - obj['target_versions'] = _ApiClient["default"].convertToType(data['target_versions'], [_TargetItemVersion["default"]]); - } - - if (data.hasOwnProperty('with_customer_fragment')) { - obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); - } - } - - return obj; - } - }]); - - return Item; -}(); -/** - * @member {Date} access_date - */ - - -Item.prototype['access_date'] = undefined; -/** - * @member {String} access_request_status - */ - -Item.prototype['access_request_status'] = undefined; -/** - * @member {Boolean} auto_rotate - */ - -Item.prototype['auto_rotate'] = undefined; -/** - * @member {module:model/BastionsList} bastion_details - */ - -Item.prototype['bastion_details'] = undefined; -/** - * @member {String} cert_issuer_signer_key_name - */ - -Item.prototype['cert_issuer_signer_key_name'] = undefined; -/** - * @member {module:model/CertificateIssueInfo} certificate_issue_details - */ - -Item.prototype['certificate_issue_details'] = undefined; -/** - * @member {String} certificates - */ - -Item.prototype['certificates'] = undefined; -/** - * @member {Array.} client_permissions - */ - -Item.prototype['client_permissions'] = undefined; -/** - * @member {Date} creation_date - */ - -Item.prototype['creation_date'] = undefined; -/** - * @member {String} customer_fragment_id - */ - -Item.prototype['customer_fragment_id'] = undefined; -/** - * @member {Boolean} delete_protection - */ - -Item.prototype['delete_protection'] = undefined; -/** - * @member {Date} deletion_date - */ - -Item.prototype['deletion_date'] = undefined; -/** - * @member {String} display_id - */ - -Item.prototype['display_id'] = undefined; -/** - * @member {Array.} gateway_details - */ - -Item.prototype['gateway_details'] = undefined; -/** - * @member {Boolean} is_access_request_enabled - */ - -Item.prototype['is_access_request_enabled'] = undefined; -/** - * @member {Boolean} is_enabled - */ - -Item.prototype['is_enabled'] = undefined; -/** - * @member {Number} item_accessibility - */ - -Item.prototype['item_accessibility'] = undefined; -/** - * @member {module:model/ItemGeneralInfo} item_general_info - */ - -Item.prototype['item_general_info'] = undefined; -/** - * @member {Number} item_id - */ - -Item.prototype['item_id'] = undefined; -/** - * @member {String} item_metadata - */ - -Item.prototype['item_metadata'] = undefined; -/** - * @member {String} item_name - */ - -Item.prototype['item_name'] = undefined; -/** - * @member {Number} item_size - */ - -Item.prototype['item_size'] = undefined; -/** - * ItemState defines the different states an Item can be in - * @member {String} item_state - */ - -Item.prototype['item_state'] = undefined; -/** - * @member {String} item_sub_type - */ - -Item.prototype['item_sub_type'] = undefined; -/** - * @member {Array.} item_tags - */ - -Item.prototype['item_tags'] = undefined; -/** - * @member {Array.} item_targets_assoc - */ - -Item.prototype['item_targets_assoc'] = undefined; -/** - * @member {String} item_type - */ - -Item.prototype['item_type'] = undefined; -/** - * @member {Array.} item_versions - */ - -Item.prototype['item_versions'] = undefined; -/** - * @member {Number} last_version - */ - -Item.prototype['last_version'] = undefined; -/** - * @member {module:model/LinkedDetails} linked_details - */ - -Item.prototype['linked_details'] = undefined; -/** - * @member {Date} modification_date - */ - -Item.prototype['modification_date'] = undefined; -/** - * @member {Date} next_rotation_date - */ - -Item.prototype['next_rotation_date'] = undefined; -/** - * @member {String} protection_key_name - */ - -Item.prototype['protection_key_name'] = undefined; -/** - * @member {String} protection_key_type - */ - -Item.prototype['protection_key_type'] = undefined; -/** - * @member {String} public_value - */ - -Item.prototype['public_value'] = undefined; -/** - * @member {Number} rotation_interval - */ - -Item.prototype['rotation_interval'] = undefined; -/** - * @member {module:model/RuleAssigner} shared_by - */ - -Item.prototype['shared_by'] = undefined; -/** - * @member {Array.} target_versions - */ - -Item.prototype['target_versions'] = undefined; -/** - * @member {Boolean} with_customer_fragment - */ - -Item.prototype['with_customer_fragment'] = undefined; -var _default = Item; -exports["default"] = _default; - -/***/ }), - -/***/ 5427: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _CertificateChainInfo = _interopRequireDefault(__nccwpck_require__(60084)); - -var _CertificateIssueInfo = _interopRequireDefault(__nccwpck_require__(72182)); - -var _CertificateTemplateInfo = _interopRequireDefault(__nccwpck_require__(89755)); - -var _ClassicKeyDetailsInfo = _interopRequireDefault(__nccwpck_require__(49881)); - -var _DynamicSecretProducerInfo = _interopRequireDefault(__nccwpck_require__(98109)); - -var _ImporterInfo = _interopRequireDefault(__nccwpck_require__(9586)); - -var _OidcClientInfo = _interopRequireDefault(__nccwpck_require__(2338)); - -var _PasswordPolicyInfo = _interopRequireDefault(__nccwpck_require__(34827)); - -var _RotatedSecretDetailsInfo = _interopRequireDefault(__nccwpck_require__(25957)); - -var _SecureRemoteAccess = _interopRequireDefault(__nccwpck_require__(66513)); - -var _StaticSecretDetailsInfo = _interopRequireDefault(__nccwpck_require__(38674)); - -var _TokenizerInfo = _interopRequireDefault(__nccwpck_require__(61767)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ItemGeneralInfo model module. - * @module model/ItemGeneralInfo - * @version 3.3.16 - */ -var ItemGeneralInfo = /*#__PURE__*/function () { - /** - * Constructs a new ItemGeneralInfo. - * @alias module:model/ItemGeneralInfo - */ - function ItemGeneralInfo() { - _classCallCheck(this, ItemGeneralInfo); - - ItemGeneralInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ItemGeneralInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ItemGeneralInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ItemGeneralInfo} obj Optional instance to populate. - * @return {module:model/ItemGeneralInfo} The populated ItemGeneralInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ItemGeneralInfo(); - - if (data.hasOwnProperty('cert_issue_details')) { - obj['cert_issue_details'] = _CertificateIssueInfo["default"].constructFromObject(data['cert_issue_details']); - } - - if (data.hasOwnProperty('certificate_chain_info')) { - obj['certificate_chain_info'] = _CertificateChainInfo["default"].constructFromObject(data['certificate_chain_info']); - } - - if (data.hasOwnProperty('certificates_template_info')) { - obj['certificates_template_info'] = _CertificateTemplateInfo["default"].constructFromObject(data['certificates_template_info']); - } - - if (data.hasOwnProperty('classic_key_details')) { - obj['classic_key_details'] = _ClassicKeyDetailsInfo["default"].constructFromObject(data['classic_key_details']); - } - - if (data.hasOwnProperty('cluster_gw_url')) { - obj['cluster_gw_url'] = _ApiClient["default"].convertToType(data['cluster_gw_url'], 'String'); - } - - if (data.hasOwnProperty('display_metadata')) { - obj['display_metadata'] = _ApiClient["default"].convertToType(data['display_metadata'], 'String'); - } - - if (data.hasOwnProperty('dynamic_secret_producer_details')) { - obj['dynamic_secret_producer_details'] = _DynamicSecretProducerInfo["default"].constructFromObject(data['dynamic_secret_producer_details']); - } - - if (data.hasOwnProperty('importer_info')) { - obj['importer_info'] = _ImporterInfo["default"].constructFromObject(data['importer_info']); - } - - if (data.hasOwnProperty('oidc_client_info')) { - obj['oidc_client_info'] = _OidcClientInfo["default"].constructFromObject(data['oidc_client_info']); - } - - if (data.hasOwnProperty('password_policy')) { - obj['password_policy'] = _PasswordPolicyInfo["default"].constructFromObject(data['password_policy']); - } - - if (data.hasOwnProperty('rotated_secret_details')) { - obj['rotated_secret_details'] = _RotatedSecretDetailsInfo["default"].constructFromObject(data['rotated_secret_details']); - } - - if (data.hasOwnProperty('secure_remote_access_details')) { - obj['secure_remote_access_details'] = _SecureRemoteAccess["default"].constructFromObject(data['secure_remote_access_details']); - } - - if (data.hasOwnProperty('static_secret_info')) { - obj['static_secret_info'] = _StaticSecretDetailsInfo["default"].constructFromObject(data['static_secret_info']); - } - - if (data.hasOwnProperty('tokenizer_info')) { - obj['tokenizer_info'] = _TokenizerInfo["default"].constructFromObject(data['tokenizer_info']); - } - } - - return obj; - } - }]); - - return ItemGeneralInfo; -}(); -/** - * @member {module:model/CertificateIssueInfo} cert_issue_details - */ - - -ItemGeneralInfo.prototype['cert_issue_details'] = undefined; -/** - * @member {module:model/CertificateChainInfo} certificate_chain_info - */ - -ItemGeneralInfo.prototype['certificate_chain_info'] = undefined; -/** - * @member {module:model/CertificateTemplateInfo} certificates_template_info - */ - -ItemGeneralInfo.prototype['certificates_template_info'] = undefined; -/** - * @member {module:model/ClassicKeyDetailsInfo} classic_key_details - */ - -ItemGeneralInfo.prototype['classic_key_details'] = undefined; -/** - * @member {String} cluster_gw_url - */ - -ItemGeneralInfo.prototype['cluster_gw_url'] = undefined; -/** - * @member {String} display_metadata - */ - -ItemGeneralInfo.prototype['display_metadata'] = undefined; -/** - * @member {module:model/DynamicSecretProducerInfo} dynamic_secret_producer_details - */ - -ItemGeneralInfo.prototype['dynamic_secret_producer_details'] = undefined; -/** - * @member {module:model/ImporterInfo} importer_info - */ - -ItemGeneralInfo.prototype['importer_info'] = undefined; -/** - * @member {module:model/OidcClientInfo} oidc_client_info - */ - -ItemGeneralInfo.prototype['oidc_client_info'] = undefined; -/** - * @member {module:model/PasswordPolicyInfo} password_policy - */ - -ItemGeneralInfo.prototype['password_policy'] = undefined; -/** - * @member {module:model/RotatedSecretDetailsInfo} rotated_secret_details - */ - -ItemGeneralInfo.prototype['rotated_secret_details'] = undefined; -/** - * @member {module:model/SecureRemoteAccess} secure_remote_access_details - */ - -ItemGeneralInfo.prototype['secure_remote_access_details'] = undefined; -/** - * @member {module:model/StaticSecretDetailsInfo} static_secret_info - */ - -ItemGeneralInfo.prototype['static_secret_info'] = undefined; -/** - * @member {module:model/TokenizerInfo} tokenizer_info - */ - -ItemGeneralInfo.prototype['tokenizer_info'] = undefined; -var _default = ItemGeneralInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 24223: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ItemTargetAssociation model module. - * @module model/ItemTargetAssociation - * @version 3.3.16 - */ -var ItemTargetAssociation = /*#__PURE__*/function () { - /** - * Constructs a new ItemTargetAssociation. - * and a target. - * @alias module:model/ItemTargetAssociation - */ - function ItemTargetAssociation() { - _classCallCheck(this, ItemTargetAssociation); - - ItemTargetAssociation.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ItemTargetAssociation, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ItemTargetAssociation from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ItemTargetAssociation} obj Optional instance to populate. - * @return {module:model/ItemTargetAssociation} The populated ItemTargetAssociation instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ItemTargetAssociation(); - - if (data.hasOwnProperty('assoc_id')) { - obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); - } - - if (data.hasOwnProperty('attributes')) { - obj['attributes'] = _ApiClient["default"].convertToType(data['attributes'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - - if (data.hasOwnProperty('target_name')) { - obj['target_name'] = _ApiClient["default"].convertToType(data['target_name'], 'String'); - } - - if (data.hasOwnProperty('target_type')) { - obj['target_type'] = _ApiClient["default"].convertToType(data['target_type'], 'String'); - } - } - - return obj; - } - }]); - - return ItemTargetAssociation; -}(); -/** - * @member {String} assoc_id - */ - - -ItemTargetAssociation.prototype['assoc_id'] = undefined; -/** - * @member {Object.} attributes - */ - -ItemTargetAssociation.prototype['attributes'] = undefined; -/** - * @member {Number} target_id - */ - -ItemTargetAssociation.prototype['target_id'] = undefined; -/** - * @member {String} target_name - */ - -ItemTargetAssociation.prototype['target_name'] = undefined; -/** - * @member {String} target_type - */ - -ItemTargetAssociation.prototype['target_type'] = undefined; -var _default = ItemTargetAssociation; -exports["default"] = _default; - -/***/ }), - -/***/ 71931: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ItemVersion model module. - * @module model/ItemVersion - * @version 3.3.16 - */ -var ItemVersion = /*#__PURE__*/function () { - /** - * Constructs a new ItemVersion. - * @alias module:model/ItemVersion - */ - function ItemVersion() { - _classCallCheck(this, ItemVersion); - - ItemVersion.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ItemVersion, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ItemVersion from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ItemVersion} obj Optional instance to populate. - * @return {module:model/ItemVersion} The populated ItemVersion instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ItemVersion(); - - if (data.hasOwnProperty('access_date')) { - obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); - } - - if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); - } - - if (data.hasOwnProperty('customer_fragment_id')) { - obj['customer_fragment_id'] = _ApiClient["default"].convertToType(data['customer_fragment_id'], 'String'); - } - - if (data.hasOwnProperty('deletion_date')) { - obj['deletion_date'] = _ApiClient["default"].convertToType(data['deletion_date'], 'Date'); - } - - if (data.hasOwnProperty('item_version_state')) { - obj['item_version_state'] = _ApiClient["default"].convertToType(data['item_version_state'], 'String'); - } - - if (data.hasOwnProperty('modification_date')) { - obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); - } - - if (data.hasOwnProperty('protection_key_name')) { - obj['protection_key_name'] = _ApiClient["default"].convertToType(data['protection_key_name'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - - if (data.hasOwnProperty('with_customer_fragment')) { - obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); - } - } - - return obj; - } - }]); - - return ItemVersion; -}(); -/** - * @member {Date} access_date - */ - - -ItemVersion.prototype['access_date'] = undefined; -/** - * @member {Date} creation_date - */ - -ItemVersion.prototype['creation_date'] = undefined; -/** - * @member {String} customer_fragment_id - */ - -ItemVersion.prototype['customer_fragment_id'] = undefined; -/** - * @member {Date} deletion_date - */ - -ItemVersion.prototype['deletion_date'] = undefined; -/** - * ItemState defines the different states an Item can be in - * @member {String} item_version_state - */ - -ItemVersion.prototype['item_version_state'] = undefined; -/** - * @member {Date} modification_date - */ - -ItemVersion.prototype['modification_date'] = undefined; -/** - * @member {String} protection_key_name - */ - -ItemVersion.prototype['protection_key_name'] = undefined; -/** - * @member {Number} version - */ - -ItemVersion.prototype['version'] = undefined; -/** - * @member {Boolean} with_customer_fragment - */ - -ItemVersion.prototype['with_customer_fragment'] = undefined; -var _default = ItemVersion; -exports["default"] = _default; - -/***/ }), - -/***/ 39994: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The JSONError model module. - * @module model/JSONError - * @version 3.3.16 - */ -var JSONError = /*#__PURE__*/function () { - /** - * Constructs a new JSONError. - * @alias module:model/JSONError - */ - function JSONError() { - _classCallCheck(this, JSONError); - - JSONError.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(JSONError, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a JSONError from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/JSONError} obj Optional instance to populate. - * @return {module:model/JSONError} The populated JSONError instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new JSONError(); - - if (data.hasOwnProperty('error')) { - obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String'); - } - } - - return obj; - } - }]); - - return JSONError; -}(); -/** - * @member {String} error - */ - - -JSONError.prototype['error'] = undefined; -var _default = JSONError; -exports["default"] = _default; - -/***/ }), - -/***/ 12684: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The K8SAuth model module. - * @module model/K8SAuth - * @version 3.3.16 - */ -var K8SAuth = /*#__PURE__*/function () { - /** - * Constructs a new K8SAuth. - * @alias module:model/K8SAuth - */ - function K8SAuth() { - _classCallCheck(this, K8SAuth); - - K8SAuth.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(K8SAuth, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a K8SAuth from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/K8SAuth} obj Optional instance to populate. - * @return {module:model/K8SAuth} The populated K8SAuth instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new K8SAuth(); - - if (data.hasOwnProperty('am_token_expiration')) { - obj['am_token_expiration'] = _ApiClient["default"].convertToType(data['am_token_expiration'], 'Number'); - } - - if (data.hasOwnProperty('auth_method_access_id')) { - obj['auth_method_access_id'] = _ApiClient["default"].convertToType(data['auth_method_access_id'], 'String'); - } - - if (data.hasOwnProperty('auth_method_prv_key_pem')) { - obj['auth_method_prv_key_pem'] = _ApiClient["default"].convertToType(data['auth_method_prv_key_pem'], 'String'); - } - - if (data.hasOwnProperty('cluster_api_type')) { - obj['cluster_api_type'] = _ApiClient["default"].convertToType(data['cluster_api_type'], 'String'); - } - - if (data.hasOwnProperty('disable_iss_validation')) { - obj['disable_iss_validation'] = _ApiClient["default"].convertToType(data['disable_iss_validation'], 'Boolean'); - } - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - - if (data.hasOwnProperty('k8s_ca_cert')) { - obj['k8s_ca_cert'] = _ApiClient["default"].convertToType(data['k8s_ca_cert'], 'String'); - } - - if (data.hasOwnProperty('k8s_host')) { - obj['k8s_host'] = _ApiClient["default"].convertToType(data['k8s_host'], 'String'); - } - - if (data.hasOwnProperty('k8s_issuer')) { - obj['k8s_issuer'] = _ApiClient["default"].convertToType(data['k8s_issuer'], 'String'); - } - - if (data.hasOwnProperty('k8s_pub_keys_pem')) { - obj['k8s_pub_keys_pem'] = _ApiClient["default"].convertToType(data['k8s_pub_keys_pem'], ['String']); - } - - if (data.hasOwnProperty('k8s_token_reviewer_jwt')) { - obj['k8s_token_reviewer_jwt'] = _ApiClient["default"].convertToType(data['k8s_token_reviewer_jwt'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); - } - - if (data.hasOwnProperty('rancher_api_key')) { - obj['rancher_api_key'] = _ApiClient["default"].convertToType(data['rancher_api_key'], 'String'); - } - - if (data.hasOwnProperty('rancher_cluster_id')) { - obj['rancher_cluster_id'] = _ApiClient["default"].convertToType(data['rancher_cluster_id'], 'String'); - } - - if (data.hasOwnProperty('use_local_ca_jwt')) { - obj['use_local_ca_jwt'] = _ApiClient["default"].convertToType(data['use_local_ca_jwt'], 'Boolean'); - } - } - - return obj; - } - }]); - - return K8SAuth; -}(); -/** - * AuthMethodTokenExpiration is time in seconds of expiration of the Akeyless Kube Auth Method token - * @member {Number} am_token_expiration - */ - - -K8SAuth.prototype['am_token_expiration'] = undefined; -/** - * AuthMethodAccessId of the Kubernetes auth method - * @member {String} auth_method_access_id - */ - -K8SAuth.prototype['auth_method_access_id'] = undefined; -/** - * AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method - * @member {String} auth_method_prv_key_pem - */ - -K8SAuth.prototype['auth_method_prv_key_pem'] = undefined; -/** - * ClusterApiType defines types of API access to cluster - * @member {String} cluster_api_type - */ - -K8SAuth.prototype['cluster_api_type'] = undefined; -/** - * DisableISSValidation is optional parameter to disable ISS validation - * @member {Boolean} disable_iss_validation - */ - -K8SAuth.prototype['disable_iss_validation'] = undefined; -/** - * @member {String} id - */ - -K8SAuth.prototype['id'] = undefined; -/** - * K8SCACert is the CA Cert to use to call into the kubernetes API - * @member {String} k8s_ca_cert - */ - -K8SAuth.prototype['k8s_ca_cert'] = undefined; -/** - * K8SHost is the url string for the kubernetes API - * @member {String} k8s_host - */ - -K8SAuth.prototype['k8s_host'] = undefined; -/** - * K8SIssuer is the claim that specifies who issued the Kubernetes token - * @member {String} k8s_issuer - */ - -K8SAuth.prototype['k8s_issuer'] = undefined; -/** - * K8SPublicKeysPEM is the list of public key in PEM format - * @member {Array.} k8s_pub_keys_pem - */ - -K8SAuth.prototype['k8s_pub_keys_pem'] = undefined; -/** - * K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call - * @member {String} k8s_token_reviewer_jwt - */ - -K8SAuth.prototype['k8s_token_reviewer_jwt'] = undefined; -/** - * @member {String} name - */ - -K8SAuth.prototype['name'] = undefined; -/** - * @member {String} protection_key - */ - -K8SAuth.prototype['protection_key'] = undefined; -/** - * RancherApiKey the bear token for clusterApiTypeRancher - * @member {String} rancher_api_key - */ - -K8SAuth.prototype['rancher_api_key'] = undefined; -/** - * RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher) - * @member {String} rancher_cluster_id - */ - -K8SAuth.prototype['rancher_cluster_id'] = undefined; -/** - * UseLocalCAJwt is an optional parameter to set defaulting to using the local service account when running in a Kubernetes pod - * @member {Boolean} use_local_ca_jwt - */ - -K8SAuth.prototype['use_local_ca_jwt'] = undefined; -var _default = K8SAuth; -exports["default"] = _default; - -/***/ }), - -/***/ 2421: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The K8SAuthsConfigLastChange model module. - * @module model/K8SAuthsConfigLastChange - * @version 3.3.16 - */ -var K8SAuthsConfigLastChange = /*#__PURE__*/function () { - /** - * Constructs a new K8SAuthsConfigLastChange. - * @alias module:model/K8SAuthsConfigLastChange - */ - function K8SAuthsConfigLastChange() { - _classCallCheck(this, K8SAuthsConfigLastChange); - - K8SAuthsConfigLastChange.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(K8SAuthsConfigLastChange, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a K8SAuthsConfigLastChange from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/K8SAuthsConfigLastChange} obj Optional instance to populate. - * @return {module:model/K8SAuthsConfigLastChange} The populated K8SAuthsConfigLastChange instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new K8SAuthsConfigLastChange(); - - if (data.hasOwnProperty('changed_k8s_auths_ids')) { - obj['changed_k8s_auths_ids'] = _ApiClient["default"].convertToType(data['changed_k8s_auths_ids'], ['String']); - } - - if (data.hasOwnProperty('created_k8s_auths_ids')) { - obj['created_k8s_auths_ids'] = _ApiClient["default"].convertToType(data['created_k8s_auths_ids'], ['String']); - } - - if (data.hasOwnProperty('deleted_k8s_auths_ids')) { - obj['deleted_k8s_auths_ids'] = _ApiClient["default"].convertToType(data['deleted_k8s_auths_ids'], ['String']); - } - } - - return obj; - } - }]); - - return K8SAuthsConfigLastChange; -}(); -/** - * @member {Array.} changed_k8s_auths_ids - */ - - -K8SAuthsConfigLastChange.prototype['changed_k8s_auths_ids'] = undefined; -/** - * @member {Array.} created_k8s_auths_ids - */ - -K8SAuthsConfigLastChange.prototype['created_k8s_auths_ids'] = undefined; -/** - * @member {Array.} deleted_k8s_auths_ids - */ - -K8SAuthsConfigLastChange.prototype['deleted_k8s_auths_ids'] = undefined; -var _default = K8SAuthsConfigLastChange; -exports["default"] = _default; - -/***/ }), - -/***/ 37768: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _K8SAuth = _interopRequireDefault(__nccwpck_require__(12684)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The K8SAuthsConfigPart model module. - * @module model/K8SAuthsConfigPart - * @version 3.3.16 - */ -var K8SAuthsConfigPart = /*#__PURE__*/function () { - /** - * Constructs a new K8SAuthsConfigPart. - * @alias module:model/K8SAuthsConfigPart - */ - function K8SAuthsConfigPart() { - _classCallCheck(this, K8SAuthsConfigPart); - - K8SAuthsConfigPart.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(K8SAuthsConfigPart, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a K8SAuthsConfigPart from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/K8SAuthsConfigPart} obj Optional instance to populate. - * @return {module:model/K8SAuthsConfigPart} The populated K8SAuthsConfigPart instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new K8SAuthsConfigPart(); - - if (data.hasOwnProperty('k8s_auths')) { - obj['k8s_auths'] = _ApiClient["default"].convertToType(data['k8s_auths'], [_K8SAuth["default"]]); - } - } - - return obj; - } - }]); - - return K8SAuthsConfigPart; -}(); -/** - * @member {Array.} k8s_auths - */ - - -K8SAuthsConfigPart.prototype['k8s_auths'] = undefined; -var _default = K8SAuthsConfigPart; -exports["default"] = _default; - -/***/ }), - -/***/ 79488: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _K8SPayload = _interopRequireDefault(__nccwpck_require__(25334)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The K8SMigration model module. - * @module model/K8SMigration - * @version 3.3.16 - */ -var K8SMigration = /*#__PURE__*/function () { - /** - * Constructs a new K8SMigration. - * @alias module:model/K8SMigration - */ - function K8SMigration() { - _classCallCheck(this, K8SMigration); - - K8SMigration.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(K8SMigration, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a K8SMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/K8SMigration} obj Optional instance to populate. - * @return {module:model/K8SMigration} The populated K8SMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new K8SMigration(); - - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); - } - - if (data.hasOwnProperty('payload')) { - obj['payload'] = _K8SPayload["default"].constructFromObject(data['payload']); - } - } - - return obj; - } - }]); - - return K8SMigration; -}(); -/** - * @member {module:model/MigrationGeneral} general - */ - - -K8SMigration.prototype['general'] = undefined; -/** - * @member {module:model/K8SPayload} payload - */ - -K8SMigration.prototype['payload'] = undefined; -var _default = K8SMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 25334: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The K8SPayload model module. - * @module model/K8SPayload - * @version 3.3.16 - */ -var K8SPayload = /*#__PURE__*/function () { - /** - * Constructs a new K8SPayload. - * @alias module:model/K8SPayload - */ - function K8SPayload() { - _classCallCheck(this, K8SPayload); - - K8SPayload.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(K8SPayload, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a K8SPayload from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/K8SPayload} obj Optional instance to populate. - * @return {module:model/K8SPayload} The populated K8SPayload instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new K8SPayload(); - - if (data.hasOwnProperty('ca')) { - obj['ca'] = _ApiClient["default"].convertToType(data['ca'], ['Number']); - } - - if (data.hasOwnProperty('client_cert')) { - obj['client_cert'] = _ApiClient["default"].convertToType(data['client_cert'], ['Number']); - } - - if (data.hasOwnProperty('client_key')) { - obj['client_key'] = _ApiClient["default"].convertToType(data['client_key'], ['Number']); - } - - if (data.hasOwnProperty('namespace')) { - obj['namespace'] = _ApiClient["default"].convertToType(data['namespace'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('server')) { - obj['server'] = _ApiClient["default"].convertToType(data['server'], 'String'); - } - - if (data.hasOwnProperty('skip_system')) { - obj['skip_system'] = _ApiClient["default"].convertToType(data['skip_system'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } - } - - return obj; - } - }]); - - return K8SPayload; -}(); -/** - * @member {Array.} ca - */ - - -K8SPayload.prototype['ca'] = undefined; -/** - * @member {Array.} client_cert - */ - -K8SPayload.prototype['client_cert'] = undefined; -/** - * @member {Array.} client_key - */ - -K8SPayload.prototype['client_key'] = undefined; -/** - * @member {String} namespace - */ - -K8SPayload.prototype['namespace'] = undefined; -/** - * @member {String} password - */ - -K8SPayload.prototype['password'] = undefined; -/** - * @member {String} server - */ - -K8SPayload.prototype['server'] = undefined; -/** - * @member {Boolean} skip_system - */ - -K8SPayload.prototype['skip_system'] = undefined; -/** - * @member {String} token - */ - -K8SPayload.prototype['token'] = undefined; -/** - * @member {String} username - */ - -K8SPayload.prototype['username'] = undefined; -var _default = K8SPayload; -exports["default"] = _default; - -/***/ }), - -/***/ 71178: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _PathRule = _interopRequireDefault(__nccwpck_require__(10929)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KMIPClient model module. - * @module model/KMIPClient - * @version 3.3.16 - */ -var KMIPClient = /*#__PURE__*/function () { - /** - * Constructs a new KMIPClient. - * @alias module:model/KMIPClient - */ - function KMIPClient() { - _classCallCheck(this, KMIPClient); - - KMIPClient.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KMIPClient, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KMIPClient from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KMIPClient} obj Optional instance to populate. - * @return {module:model/KMIPClient} The populated KMIPClient instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KMIPClient(); - - if (data.hasOwnProperty('activate_keys_on_creation')) { - obj['activate_keys_on_creation'] = _ApiClient["default"].convertToType(data['activate_keys_on_creation'], 'Boolean'); - } - - if (data.hasOwnProperty('certificate_issue_date')) { - obj['certificate_issue_date'] = _ApiClient["default"].convertToType(data['certificate_issue_date'], 'Date'); - } - - if (data.hasOwnProperty('certificate_ttl_in_seconds')) { - obj['certificate_ttl_in_seconds'] = _ApiClient["default"].convertToType(data['certificate_ttl_in_seconds'], 'Number'); - } - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('rules')) { - obj['rules'] = _ApiClient["default"].convertToType(data['rules'], [_PathRule["default"]]); - } - } - - return obj; - } - }]); - - return KMIPClient; -}(); -/** - * @member {Boolean} activate_keys_on_creation - */ - - -KMIPClient.prototype['activate_keys_on_creation'] = undefined; -/** - * @member {Date} certificate_issue_date - */ - -KMIPClient.prototype['certificate_issue_date'] = undefined; -/** - * @member {Number} certificate_ttl_in_seconds - */ - -KMIPClient.prototype['certificate_ttl_in_seconds'] = undefined; -/** - * @member {String} id - */ - -KMIPClient.prototype['id'] = undefined; -/** - * @member {String} name - */ - -KMIPClient.prototype['name'] = undefined; -/** - * @member {Array.} rules - */ - -KMIPClient.prototype['rules'] = undefined; -var _default = KMIPClient; -exports["default"] = _default; - -/***/ }), - -/***/ 13983: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _KMIPClient = _interopRequireDefault(__nccwpck_require__(71178)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KMIPClientGetResponse model module. - * @module model/KMIPClientGetResponse - * @version 3.3.16 - */ -var KMIPClientGetResponse = /*#__PURE__*/function () { - /** - * Constructs a new KMIPClientGetResponse. - * @alias module:model/KMIPClientGetResponse - */ - function KMIPClientGetResponse() { - _classCallCheck(this, KMIPClientGetResponse); - - KMIPClientGetResponse.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KMIPClientGetResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KMIPClientGetResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KMIPClientGetResponse} obj Optional instance to populate. - * @return {module:model/KMIPClientGetResponse} The populated KMIPClientGetResponse instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KMIPClientGetResponse(); - - if (data.hasOwnProperty('client')) { - obj['client'] = _KMIPClient["default"].constructFromObject(data['client']); - } - } - - return obj; - } - }]); - - return KMIPClientGetResponse; -}(); -/** - * @member {module:model/KMIPClient} client - */ - - -KMIPClientGetResponse.prototype['client'] = undefined; -var _default = KMIPClientGetResponse; -exports["default"] = _default; - -/***/ }), - -/***/ 22033: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _KMIPClient = _interopRequireDefault(__nccwpck_require__(71178)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KMIPClientListResponse model module. - * @module model/KMIPClientListResponse - * @version 3.3.16 - */ -var KMIPClientListResponse = /*#__PURE__*/function () { - /** - * Constructs a new KMIPClientListResponse. - * @alias module:model/KMIPClientListResponse - */ - function KMIPClientListResponse() { - _classCallCheck(this, KMIPClientListResponse); - - KMIPClientListResponse.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KMIPClientListResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KMIPClientListResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KMIPClientListResponse} obj Optional instance to populate. - * @return {module:model/KMIPClientListResponse} The populated KMIPClientListResponse instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KMIPClientListResponse(); - - if (data.hasOwnProperty('clients')) { - obj['clients'] = _ApiClient["default"].convertToType(data['clients'], [_KMIPClient["default"]]); - } - } - - return obj; - } - }]); - - return KMIPClientListResponse; -}(); -/** - * @member {Array.} clients - */ - - -KMIPClientListResponse.prototype['clients'] = undefined; -var _default = KMIPClientListResponse; -exports["default"] = _default; - -/***/ }), - -/***/ 83564: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _KMIPClient = _interopRequireDefault(__nccwpck_require__(71178)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KMIPClientUpdateResponse model module. - * @module model/KMIPClientUpdateResponse - * @version 3.3.16 - */ -var KMIPClientUpdateResponse = /*#__PURE__*/function () { - /** - * Constructs a new KMIPClientUpdateResponse. - * @alias module:model/KMIPClientUpdateResponse - */ - function KMIPClientUpdateResponse() { - _classCallCheck(this, KMIPClientUpdateResponse); - - KMIPClientUpdateResponse.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KMIPClientUpdateResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KMIPClientUpdateResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KMIPClientUpdateResponse} obj Optional instance to populate. - * @return {module:model/KMIPClientUpdateResponse} The populated KMIPClientUpdateResponse instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KMIPClientUpdateResponse(); - - if (data.hasOwnProperty('client')) { - obj['client'] = _KMIPClient["default"].constructFromObject(data['client']); - } - } - - return obj; - } - }]); - - return KMIPClientUpdateResponse; -}(); -/** - * @member {module:model/KMIPClient} client - */ - - -KMIPClientUpdateResponse.prototype['client'] = undefined; -var _default = KMIPClientUpdateResponse; -exports["default"] = _default; - -/***/ }), - -/***/ 90506: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _KMIPClient = _interopRequireDefault(__nccwpck_require__(71178)); - -var _KMIPServer = _interopRequireDefault(__nccwpck_require__(60094)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KMIPConfigPart model module. - * @module model/KMIPConfigPart - * @version 3.3.16 - */ -var KMIPConfigPart = /*#__PURE__*/function () { - /** - * Constructs a new KMIPConfigPart. - * @alias module:model/KMIPConfigPart - */ - function KMIPConfigPart() { - _classCallCheck(this, KMIPConfigPart); - - KMIPConfigPart.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KMIPConfigPart, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KMIPConfigPart from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KMIPConfigPart} obj Optional instance to populate. - * @return {module:model/KMIPConfigPart} The populated KMIPConfigPart instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KMIPConfigPart(); - - if (data.hasOwnProperty('clients')) { - obj['clients'] = _ApiClient["default"].convertToType(data['clients'], { - 'String': _KMIPClient["default"] - }); - } - - if (data.hasOwnProperty('key_enc')) { - obj['key_enc'] = _ApiClient["default"].convertToType(data['key_enc'], ['Number']); - } - - if (data.hasOwnProperty('server')) { - obj['server'] = _KMIPServer["default"].constructFromObject(data['server']); - } - - if (data.hasOwnProperty('server_enc')) { - obj['server_enc'] = _ApiClient["default"].convertToType(data['server_enc'], ['Number']); - } - } - - return obj; - } - }]); - - return KMIPConfigPart; -}(); -/** - * @member {Object.} clients - */ - - -KMIPConfigPart.prototype['clients'] = undefined; -/** - * Saves the private key of the cert issuer in encypted form - * @member {Array.} key_enc - */ - -KMIPConfigPart.prototype['key_enc'] = undefined; -/** - * @member {module:model/KMIPServer} server - */ - -KMIPConfigPart.prototype['server'] = undefined; -/** - * Saved for backward compatibility TODO: remove this after all clients upgrade - * @member {Array.} server_enc - */ - -KMIPConfigPart.prototype['server_enc'] = undefined; -var _default = KMIPConfigPart; -exports["default"] = _default; - -/***/ }), - -/***/ 48931: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KMIPEnvironmentCreateResponse model module. - * @module model/KMIPEnvironmentCreateResponse - * @version 3.3.16 - */ -var KMIPEnvironmentCreateResponse = /*#__PURE__*/function () { - /** - * Constructs a new KMIPEnvironmentCreateResponse. - * @alias module:model/KMIPEnvironmentCreateResponse - */ - function KMIPEnvironmentCreateResponse() { - _classCallCheck(this, KMIPEnvironmentCreateResponse); - - KMIPEnvironmentCreateResponse.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KMIPEnvironmentCreateResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KMIPEnvironmentCreateResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KMIPEnvironmentCreateResponse} obj Optional instance to populate. - * @return {module:model/KMIPEnvironmentCreateResponse} The populated KMIPEnvironmentCreateResponse instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KMIPEnvironmentCreateResponse(); - - if (data.hasOwnProperty('ca_cert')) { - obj['ca_cert'] = _ApiClient["default"].convertToType(data['ca_cert'], ['Number']); - } - - if (data.hasOwnProperty('root')) { - obj['root'] = _ApiClient["default"].convertToType(data['root'], 'String'); - } - } - - return obj; - } - }]); - - return KMIPEnvironmentCreateResponse; -}(); -/** - * @member {Array.} ca_cert - */ - - -KMIPEnvironmentCreateResponse.prototype['ca_cert'] = undefined; -/** - * @member {String} root - */ - -KMIPEnvironmentCreateResponse.prototype['root'] = undefined; -var _default = KMIPEnvironmentCreateResponse; -exports["default"] = _default; - -/***/ }), - -/***/ 60094: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KMIPServer model module. - * @module model/KMIPServer - * @version 3.3.16 - */ -var KMIPServer = /*#__PURE__*/function () { - /** - * Constructs a new KMIPServer. - * @alias module:model/KMIPServer - */ - function KMIPServer() { - _classCallCheck(this, KMIPServer); - - KMIPServer.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KMIPServer, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KMIPServer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KMIPServer} obj Optional instance to populate. - * @return {module:model/KMIPServer} The populated KMIPServer instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KMIPServer(); - - if (data.hasOwnProperty('active')) { - obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean'); - } - - if (data.hasOwnProperty('ca')) { - obj['ca'] = _ApiClient["default"].convertToType(data['ca'], ['Number']); - } - - if (data.hasOwnProperty('certificate')) { - obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], ['Number']); - } - - if (data.hasOwnProperty('certificate_issue_date')) { - obj['certificate_issue_date'] = _ApiClient["default"].convertToType(data['certificate_issue_date'], 'Date'); - } - - if (data.hasOwnProperty('certificate_ttl_in_seconds')) { - obj['certificate_ttl_in_seconds'] = _ApiClient["default"].convertToType(data['certificate_ttl_in_seconds'], 'Number'); - } - - if (data.hasOwnProperty('hostname')) { - obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); - } - - if (data.hasOwnProperty('root')) { - obj['root'] = _ApiClient["default"].convertToType(data['root'], 'String'); - } - } - - return obj; - } - }]); - - return KMIPServer; -}(); -/** - * @member {Boolean} active - */ - - -KMIPServer.prototype['active'] = undefined; -/** - * @member {Array.} ca - */ - -KMIPServer.prototype['ca'] = undefined; -/** - * @member {Array.} certificate - */ - -KMIPServer.prototype['certificate'] = undefined; -/** - * @member {Date} certificate_issue_date - */ - -KMIPServer.prototype['certificate_issue_date'] = undefined; -/** - * @member {Number} certificate_ttl_in_seconds - */ - -KMIPServer.prototype['certificate_ttl_in_seconds'] = undefined; -/** - * @member {String} hostname - */ - -KMIPServer.prototype['hostname'] = undefined; -/** - * @member {String} root - */ - -KMIPServer.prototype['root'] = undefined; -var _default = KMIPServer; -exports["default"] = _default; - -/***/ }), - -/***/ 88039: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipClientDeleteRule model module. - * @module model/KmipClientDeleteRule - * @version 3.3.16 - */ -var KmipClientDeleteRule = /*#__PURE__*/function () { - /** - * Constructs a new KmipClientDeleteRule. - * @alias module:model/KmipClientDeleteRule - * @param path {String} Access path - */ - function KmipClientDeleteRule(path) { - _classCallCheck(this, KmipClientDeleteRule); - - KmipClientDeleteRule.initialize(this, path); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipClientDeleteRule, null, [{ - key: "initialize", - value: function initialize(obj, path) { - obj['path'] = path; - } - /** - * Constructs a KmipClientDeleteRule from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipClientDeleteRule} obj Optional instance to populate. - * @return {module:model/KmipClientDeleteRule} The populated KmipClientDeleteRule instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipClientDeleteRule(); - - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return KmipClientDeleteRule; -}(); -/** - * @member {String} client-id - */ - - -KmipClientDeleteRule.prototype['client-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -KmipClientDeleteRule.prototype['json'] = false; -/** - * @member {String} name - */ - -KmipClientDeleteRule.prototype['name'] = undefined; -/** - * Access path - * @member {String} path - */ - -KmipClientDeleteRule.prototype['path'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -KmipClientDeleteRule.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -KmipClientDeleteRule.prototype['uid-token'] = undefined; -var _default = KmipClientDeleteRule; -exports["default"] = _default; - -/***/ }), - -/***/ 55778: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipClientSetRule model module. - * @module model/KmipClientSetRule - * @version 3.3.16 - */ -var KmipClientSetRule = /*#__PURE__*/function () { - /** - * Constructs a new KmipClientSetRule. - * @alias module:model/KmipClientSetRule - * @param capability {Array.} Access capabilities - * @param path {String} Access path - */ - function KmipClientSetRule(capability, path) { - _classCallCheck(this, KmipClientSetRule); - - KmipClientSetRule.initialize(this, capability, path); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipClientSetRule, null, [{ - key: "initialize", - value: function initialize(obj, capability, path) { - obj['capability'] = capability; - obj['path'] = path; - } - /** - * Constructs a KmipClientSetRule from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipClientSetRule} obj Optional instance to populate. - * @return {module:model/KmipClientSetRule} The populated KmipClientSetRule instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipClientSetRule(); - - if (data.hasOwnProperty('capability')) { - obj['capability'] = _ApiClient["default"].convertToType(data['capability'], ['String']); - } - - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return KmipClientSetRule; -}(); -/** - * Access capabilities - * @member {Array.} capability - */ - - -KmipClientSetRule.prototype['capability'] = undefined; -/** - * @member {String} client-id - */ - -KmipClientSetRule.prototype['client-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -KmipClientSetRule.prototype['json'] = false; -/** - * @member {String} name - */ - -KmipClientSetRule.prototype['name'] = undefined; -/** - * Access path - * @member {String} path - */ - -KmipClientSetRule.prototype['path'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -KmipClientSetRule.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -KmipClientSetRule.prototype['uid-token'] = undefined; -var _default = KmipClientSetRule; -exports["default"] = _default; - -/***/ }), - -/***/ 59390: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipCreateClient model module. - * @module model/KmipCreateClient - * @version 3.3.16 - */ -var KmipCreateClient = /*#__PURE__*/function () { - /** - * Constructs a new KmipCreateClient. - * @alias module:model/KmipCreateClient - * @param name {String} Client name - */ - function KmipCreateClient(name) { - _classCallCheck(this, KmipCreateClient); - - KmipCreateClient.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipCreateClient, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a KmipCreateClient from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipCreateClient} obj Optional instance to populate. - * @return {module:model/KmipCreateClient} The populated KmipCreateClient instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipCreateClient(); - - if (data.hasOwnProperty('activate-keys-on-creation')) { - obj['activate-keys-on-creation'] = _ApiClient["default"].convertToType(data['activate-keys-on-creation'], 'String'); - } - - if (data.hasOwnProperty('certificate-ttl')) { - obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return KmipCreateClient; -}(); -/** - * If set to 'true', newly created keys on the client will be set to an 'active' state - * @member {String} activate-keys-on-creation - * @default 'false' - */ - - -KmipCreateClient.prototype['activate-keys-on-creation'] = 'false'; -/** - * Client certificate TTL in days - * @member {Number} certificate-ttl - * @default 90 - */ - -KmipCreateClient.prototype['certificate-ttl'] = 90; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -KmipCreateClient.prototype['json'] = false; -/** - * Client name - * @member {String} name - */ - -KmipCreateClient.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -KmipCreateClient.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -KmipCreateClient.prototype['uid-token'] = undefined; -var _default = KmipCreateClient; -exports["default"] = _default; - -/***/ }), - -/***/ 17387: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipCreateClientOutput model module. - * @module model/KmipCreateClientOutput - * @version 3.3.16 - */ -var KmipCreateClientOutput = /*#__PURE__*/function () { - /** - * Constructs a new KmipCreateClientOutput. - * @alias module:model/KmipCreateClientOutput - */ - function KmipCreateClientOutput() { - _classCallCheck(this, KmipCreateClientOutput); - - KmipCreateClientOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipCreateClientOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipCreateClientOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipCreateClientOutput} obj Optional instance to populate. - * @return {module:model/KmipCreateClientOutput} The populated KmipCreateClientOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipCreateClientOutput(); - - if (data.hasOwnProperty('certificate')) { - obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); - } - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - } - - return obj; - } - }]); - - return KmipCreateClientOutput; -}(); -/** - * @member {String} certificate - */ - - -KmipCreateClientOutput.prototype['certificate'] = undefined; -/** - * @member {String} id - */ - -KmipCreateClientOutput.prototype['id'] = undefined; -/** - * @member {String} key - */ - -KmipCreateClientOutput.prototype['key'] = undefined; -var _default = KmipCreateClientOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 14353: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipDeleteClient model module. - * @module model/KmipDeleteClient - * @version 3.3.16 - */ -var KmipDeleteClient = /*#__PURE__*/function () { - /** - * Constructs a new KmipDeleteClient. - * @alias module:model/KmipDeleteClient - */ - function KmipDeleteClient() { - _classCallCheck(this, KmipDeleteClient); - - KmipDeleteClient.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipDeleteClient, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipDeleteClient from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipDeleteClient} obj Optional instance to populate. - * @return {module:model/KmipDeleteClient} The populated KmipDeleteClient instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipDeleteClient(); - - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return KmipDeleteClient; -}(); -/** - * @member {String} client-id - */ - - -KmipDeleteClient.prototype['client-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -KmipDeleteClient.prototype['json'] = false; -/** - * @member {String} name - */ - -KmipDeleteClient.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -KmipDeleteClient.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -KmipDeleteClient.prototype['uid-token'] = undefined; -var _default = KmipDeleteClient; -exports["default"] = _default; - -/***/ }), - -/***/ 23205: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipDeleteServer model module. - * @module model/KmipDeleteServer - * @version 3.3.16 - */ -var KmipDeleteServer = /*#__PURE__*/function () { - /** - * Constructs a new KmipDeleteServer. - * kmipDeleteServer is a command that the kmip server (allowed only if it has no clients nor associated items) - * @alias module:model/KmipDeleteServer - */ - function KmipDeleteServer() { - _classCallCheck(this, KmipDeleteServer); - - KmipDeleteServer.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipDeleteServer, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipDeleteServer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipDeleteServer} obj Optional instance to populate. - * @return {module:model/KmipDeleteServer} The populated KmipDeleteServer instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipDeleteServer(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return KmipDeleteServer; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -KmipDeleteServer.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -KmipDeleteServer.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -KmipDeleteServer.prototype['uid-token'] = undefined; -var _default = KmipDeleteServer; -exports["default"] = _default; - -/***/ }), - -/***/ 58003: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipDescribeClient model module. - * @module model/KmipDescribeClient - * @version 3.3.16 - */ -var KmipDescribeClient = /*#__PURE__*/function () { - /** - * Constructs a new KmipDescribeClient. - * @alias module:model/KmipDescribeClient - */ - function KmipDescribeClient() { - _classCallCheck(this, KmipDescribeClient); - - KmipDescribeClient.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipDescribeClient, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipDescribeClient from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipDescribeClient} obj Optional instance to populate. - * @return {module:model/KmipDescribeClient} The populated KmipDescribeClient instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipDescribeClient(); - - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return KmipDescribeClient; -}(); -/** - * @member {String} client-id - */ - - -KmipDescribeClient.prototype['client-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -KmipDescribeClient.prototype['json'] = false; -/** - * @member {String} name - */ - -KmipDescribeClient.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -KmipDescribeClient.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -KmipDescribeClient.prototype['uid-token'] = undefined; -var _default = KmipDescribeClient; -exports["default"] = _default; - -/***/ }), - -/***/ 63487: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipDescribeServer model module. - * @module model/KmipDescribeServer - * @version 3.3.16 - */ -var KmipDescribeServer = /*#__PURE__*/function () { - /** - * Constructs a new KmipDescribeServer. - * @alias module:model/KmipDescribeServer - */ - function KmipDescribeServer() { - _classCallCheck(this, KmipDescribeServer); - - KmipDescribeServer.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipDescribeServer, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipDescribeServer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipDescribeServer} obj Optional instance to populate. - * @return {module:model/KmipDescribeServer} The populated KmipDescribeServer instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipDescribeServer(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return KmipDescribeServer; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -KmipDescribeServer.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -KmipDescribeServer.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -KmipDescribeServer.prototype['uid-token'] = undefined; -var _default = KmipDescribeServer; -exports["default"] = _default; - -/***/ }), - -/***/ 28038: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipDescribeServerOutput model module. - * @module model/KmipDescribeServerOutput - * @version 3.3.16 - */ -var KmipDescribeServerOutput = /*#__PURE__*/function () { - /** - * Constructs a new KmipDescribeServerOutput. - * @alias module:model/KmipDescribeServerOutput - */ - function KmipDescribeServerOutput() { - _classCallCheck(this, KmipDescribeServerOutput); - - KmipDescribeServerOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipDescribeServerOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipDescribeServerOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipDescribeServerOutput} obj Optional instance to populate. - * @return {module:model/KmipDescribeServerOutput} The populated KmipDescribeServerOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipDescribeServerOutput(); - - if (data.hasOwnProperty('active')) { - obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean'); - } - - if (data.hasOwnProperty('ca_cert')) { - obj['ca_cert'] = _ApiClient["default"].convertToType(data['ca_cert'], ['Number']); - } - - if (data.hasOwnProperty('certificate_issue_date')) { - obj['certificate_issue_date'] = _ApiClient["default"].convertToType(data['certificate_issue_date'], 'Date'); - } - - if (data.hasOwnProperty('certificate_ttl_in_seconds')) { - obj['certificate_ttl_in_seconds'] = _ApiClient["default"].convertToType(data['certificate_ttl_in_seconds'], 'Number'); - } - - if (data.hasOwnProperty('hostname')) { - obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); - } - - if (data.hasOwnProperty('root')) { - obj['root'] = _ApiClient["default"].convertToType(data['root'], 'String'); - } - } - - return obj; - } - }]); - - return KmipDescribeServerOutput; -}(); -/** - * @member {Boolean} active - */ - - -KmipDescribeServerOutput.prototype['active'] = undefined; -/** - * @member {Array.} ca_cert - */ - -KmipDescribeServerOutput.prototype['ca_cert'] = undefined; -/** - * @member {Date} certificate_issue_date - */ - -KmipDescribeServerOutput.prototype['certificate_issue_date'] = undefined; -/** - * @member {Number} certificate_ttl_in_seconds - */ - -KmipDescribeServerOutput.prototype['certificate_ttl_in_seconds'] = undefined; -/** - * @member {String} hostname - */ - -KmipDescribeServerOutput.prototype['hostname'] = undefined; -/** - * @member {String} root - */ - -KmipDescribeServerOutput.prototype['root'] = undefined; -var _default = KmipDescribeServerOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 37829: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipListClients model module. - * @module model/KmipListClients - * @version 3.3.16 - */ -var KmipListClients = /*#__PURE__*/function () { - /** - * Constructs a new KmipListClients. - * @alias module:model/KmipListClients - */ - function KmipListClients() { - _classCallCheck(this, KmipListClients); - - KmipListClients.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipListClients, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipListClients from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipListClients} obj Optional instance to populate. - * @return {module:model/KmipListClients} The populated KmipListClients instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipListClients(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return KmipListClients; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -KmipListClients.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -KmipListClients.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -KmipListClients.prototype['uid-token'] = undefined; -var _default = KmipListClients; -exports["default"] = _default; - -/***/ }), - -/***/ 61411: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipMoveServer model module. - * @module model/KmipMoveServer - * @version 3.3.16 - */ -var KmipMoveServer = /*#__PURE__*/function () { - /** - * Constructs a new KmipMoveServer. - * kmipMoveServer is a command that Moves the root location of the kmip server and all associated items to a new root location - * @alias module:model/KmipMoveServer - * @param newRoot {String} New root for the kmip server - */ - function KmipMoveServer(newRoot) { - _classCallCheck(this, KmipMoveServer); - - KmipMoveServer.initialize(this, newRoot); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipMoveServer, null, [{ - key: "initialize", - value: function initialize(obj, newRoot) { - obj['new-root'] = newRoot; - } - /** - * Constructs a KmipMoveServer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipMoveServer} obj Optional instance to populate. - * @return {module:model/KmipMoveServer} The populated KmipMoveServer instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipMoveServer(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('new-root')) { - obj['new-root'] = _ApiClient["default"].convertToType(data['new-root'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return KmipMoveServer; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -KmipMoveServer.prototype['json'] = false; -/** - * New root for the kmip server - * @member {String} new-root - */ - -KmipMoveServer.prototype['new-root'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -KmipMoveServer.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -KmipMoveServer.prototype['uid-token'] = undefined; -var _default = KmipMoveServer; -exports["default"] = _default; - -/***/ }), - -/***/ 23954: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipMoveServerOutput model module. - * @module model/KmipMoveServerOutput - * @version 3.3.16 - */ -var KmipMoveServerOutput = /*#__PURE__*/function () { - /** - * Constructs a new KmipMoveServerOutput. - * @alias module:model/KmipMoveServerOutput - */ - function KmipMoveServerOutput() { - _classCallCheck(this, KmipMoveServerOutput); - - KmipMoveServerOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipMoveServerOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipMoveServerOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipMoveServerOutput} obj Optional instance to populate. - * @return {module:model/KmipMoveServerOutput} The populated KmipMoveServerOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipMoveServerOutput(); - - if (data.hasOwnProperty('new_root')) { - obj['new_root'] = _ApiClient["default"].convertToType(data['new_root'], 'String'); - } - - if (data.hasOwnProperty('old_root')) { - obj['old_root'] = _ApiClient["default"].convertToType(data['old_root'], 'String'); - } - } - - return obj; - } - }]); - - return KmipMoveServerOutput; -}(); -/** - * @member {String} new_root - */ - - -KmipMoveServerOutput.prototype['new_root'] = undefined; -/** - * @member {String} old_root - */ - -KmipMoveServerOutput.prototype['old_root'] = undefined; -var _default = KmipMoveServerOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 67724: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipRenewClientCertificate model module. - * @module model/KmipRenewClientCertificate - * @version 3.3.16 - */ -var KmipRenewClientCertificate = /*#__PURE__*/function () { - /** - * Constructs a new KmipRenewClientCertificate. - * @alias module:model/KmipRenewClientCertificate - */ - function KmipRenewClientCertificate() { - _classCallCheck(this, KmipRenewClientCertificate); - - KmipRenewClientCertificate.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipRenewClientCertificate, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipRenewClientCertificate from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipRenewClientCertificate} obj Optional instance to populate. - * @return {module:model/KmipRenewClientCertificate} The populated KmipRenewClientCertificate instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipRenewClientCertificate(); - - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return KmipRenewClientCertificate; -}(); -/** - * @member {String} client-id - */ - - -KmipRenewClientCertificate.prototype['client-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -KmipRenewClientCertificate.prototype['json'] = false; -/** - * @member {String} name - */ - -KmipRenewClientCertificate.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -KmipRenewClientCertificate.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -KmipRenewClientCertificate.prototype['uid-token'] = undefined; -var _default = KmipRenewClientCertificate; -exports["default"] = _default; - -/***/ }), - -/***/ 52557: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipRenewClientCertificateOutput model module. - * @module model/KmipRenewClientCertificateOutput - * @version 3.3.16 - */ -var KmipRenewClientCertificateOutput = /*#__PURE__*/function () { - /** - * Constructs a new KmipRenewClientCertificateOutput. - * @alias module:model/KmipRenewClientCertificateOutput - */ - function KmipRenewClientCertificateOutput() { - _classCallCheck(this, KmipRenewClientCertificateOutput); - - KmipRenewClientCertificateOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipRenewClientCertificateOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipRenewClientCertificateOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipRenewClientCertificateOutput} obj Optional instance to populate. - * @return {module:model/KmipRenewClientCertificateOutput} The populated KmipRenewClientCertificateOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipRenewClientCertificateOutput(); - - if (data.hasOwnProperty('certificate')) { - obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); - } - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - } - - return obj; - } - }]); - - return KmipRenewClientCertificateOutput; -}(); -/** - * @member {String} certificate - */ - - -KmipRenewClientCertificateOutput.prototype['certificate'] = undefined; -/** - * @member {String} id - */ - -KmipRenewClientCertificateOutput.prototype['id'] = undefined; -/** - * @member {String} key - */ - -KmipRenewClientCertificateOutput.prototype['key'] = undefined; -var _default = KmipRenewClientCertificateOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 97536: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipRenewServerCertificate model module. - * @module model/KmipRenewServerCertificate - * @version 3.3.16 - */ -var KmipRenewServerCertificate = /*#__PURE__*/function () { - /** - * Constructs a new KmipRenewServerCertificate. - * @alias module:model/KmipRenewServerCertificate - */ - function KmipRenewServerCertificate() { - _classCallCheck(this, KmipRenewServerCertificate); - - KmipRenewServerCertificate.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipRenewServerCertificate, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipRenewServerCertificate from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipRenewServerCertificate} obj Optional instance to populate. - * @return {module:model/KmipRenewServerCertificate} The populated KmipRenewServerCertificate instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipRenewServerCertificate(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return KmipRenewServerCertificate; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -KmipRenewServerCertificate.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -KmipRenewServerCertificate.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -KmipRenewServerCertificate.prototype['uid-token'] = undefined; -var _default = KmipRenewServerCertificate; -exports["default"] = _default; - -/***/ }), - -/***/ 96809: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipRenewServerCertificateOutput model module. - * @module model/KmipRenewServerCertificateOutput - * @version 3.3.16 - */ -var KmipRenewServerCertificateOutput = /*#__PURE__*/function () { - /** - * Constructs a new KmipRenewServerCertificateOutput. - * @alias module:model/KmipRenewServerCertificateOutput - */ - function KmipRenewServerCertificateOutput() { - _classCallCheck(this, KmipRenewServerCertificateOutput); - - KmipRenewServerCertificateOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipRenewServerCertificateOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipRenewServerCertificateOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipRenewServerCertificateOutput} obj Optional instance to populate. - * @return {module:model/KmipRenewServerCertificateOutput} The populated KmipRenewServerCertificateOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipRenewServerCertificateOutput(); - - if (data.hasOwnProperty('ca_cert')) { - obj['ca_cert'] = _ApiClient["default"].convertToType(data['ca_cert'], 'String'); - } - } - - return obj; - } - }]); - - return KmipRenewServerCertificateOutput; -}(); -/** - * @member {String} ca_cert - */ - - -KmipRenewServerCertificateOutput.prototype['ca_cert'] = undefined; -var _default = KmipRenewServerCertificateOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 54249: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipServerSetup model module. - * @module model/KmipServerSetup - * @version 3.3.16 - */ -var KmipServerSetup = /*#__PURE__*/function () { - /** - * Constructs a new KmipServerSetup. - * @alias module:model/KmipServerSetup - * @param hostname {String} Hostname - * @param root {String} Root path of KMIP Resources - */ - function KmipServerSetup(hostname, root) { - _classCallCheck(this, KmipServerSetup); - - KmipServerSetup.initialize(this, hostname, root); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipServerSetup, null, [{ - key: "initialize", - value: function initialize(obj, hostname, root) { - obj['hostname'] = hostname; - obj['root'] = root; - } - /** - * Constructs a KmipServerSetup from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipServerSetup} obj Optional instance to populate. - * @return {module:model/KmipServerSetup} The populated KmipServerSetup instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipServerSetup(); - - if (data.hasOwnProperty('certificate-ttl')) { - obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); - } - - if (data.hasOwnProperty('hostname')) { - obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('root')) { - obj['root'] = _ApiClient["default"].convertToType(data['root'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return KmipServerSetup; -}(); -/** - * Server certificate TTL in days - * @member {Number} certificate-ttl - * @default 90 - */ - - -KmipServerSetup.prototype['certificate-ttl'] = 90; -/** - * Hostname - * @member {String} hostname - */ - -KmipServerSetup.prototype['hostname'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -KmipServerSetup.prototype['json'] = false; -/** - * Root path of KMIP Resources - * @member {String} root - */ - -KmipServerSetup.prototype['root'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -KmipServerSetup.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -KmipServerSetup.prototype['uid-token'] = undefined; -var _default = KmipServerSetup; -exports["default"] = _default; - -/***/ }), - -/***/ 87265: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipSetServerState model module. - * @module model/KmipSetServerState - * @version 3.3.16 - */ -var KmipSetServerState = /*#__PURE__*/function () { - /** - * Constructs a new KmipSetServerState. - * kmipSetServerState is a command that sets the environment state to active/inactive. - * @alias module:model/KmipSetServerState - * @param state {String} - */ - function KmipSetServerState(state) { - _classCallCheck(this, KmipSetServerState); - - KmipSetServerState.initialize(this, state); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipSetServerState, null, [{ - key: "initialize", - value: function initialize(obj, state) { - obj['state'] = state; - } - /** - * Constructs a KmipSetServerState from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipSetServerState} obj Optional instance to populate. - * @return {module:model/KmipSetServerState} The populated KmipSetServerState instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipSetServerState(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('state')) { - obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return KmipSetServerState; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -KmipSetServerState.prototype['json'] = false; -/** - * @member {String} state - */ - -KmipSetServerState.prototype['state'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -KmipSetServerState.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -KmipSetServerState.prototype['uid-token'] = undefined; -var _default = KmipSetServerState; -exports["default"] = _default; - -/***/ }), - -/***/ 9044: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KmipSetServerStateOutput model module. - * @module model/KmipSetServerStateOutput - * @version 3.3.16 - */ -var KmipSetServerStateOutput = /*#__PURE__*/function () { - /** - * Constructs a new KmipSetServerStateOutput. - * @alias module:model/KmipSetServerStateOutput - */ - function KmipSetServerStateOutput() { - _classCallCheck(this, KmipSetServerStateOutput); - - KmipSetServerStateOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KmipSetServerStateOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KmipSetServerStateOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KmipSetServerStateOutput} obj Optional instance to populate. - * @return {module:model/KmipSetServerStateOutput} The populated KmipSetServerStateOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KmipSetServerStateOutput(); - - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean'); - } - } - - return obj; - } - }]); - - return KmipSetServerStateOutput; -}(); -/** - * @member {Boolean} is_active - */ - - -KmipSetServerStateOutput.prototype['is_active'] = undefined; -var _default = KmipSetServerStateOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 71267: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The KubernetesAccessRules model module. - * @module model/KubernetesAccessRules - * @version 3.3.16 - */ -var KubernetesAccessRules = /*#__PURE__*/function () { - /** - * Constructs a new KubernetesAccessRules. - * @alias module:model/KubernetesAccessRules - */ - function KubernetesAccessRules() { - _classCallCheck(this, KubernetesAccessRules); - - KubernetesAccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(KubernetesAccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a KubernetesAccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/KubernetesAccessRules} obj Optional instance to populate. - * @return {module:model/KubernetesAccessRules} The populated KubernetesAccessRules instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new KubernetesAccessRules(); - - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); - } - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); - } - - if (data.hasOwnProperty('bound_namespaces')) { - obj['bound_namespaces'] = _ApiClient["default"].convertToType(data['bound_namespaces'], ['String']); - } - - if (data.hasOwnProperty('bound_pod_names')) { - obj['bound_pod_names'] = _ApiClient["default"].convertToType(data['bound_pod_names'], ['String']); - } - - if (data.hasOwnProperty('bound_service_account_names')) { - obj['bound_service_account_names'] = _ApiClient["default"].convertToType(data['bound_service_account_names'], ['String']); - } - - if (data.hasOwnProperty('gen_key_pair')) { - obj['gen_key_pair'] = _ApiClient["default"].convertToType(data['gen_key_pair'], 'String'); - } - - if (data.hasOwnProperty('pub_key')) { - obj['pub_key'] = _ApiClient["default"].convertToType(data['pub_key'], 'String'); - } - } - - return obj; - } - }]); - - return KubernetesAccessRules; -}(); -/** - * @member {String} alg - */ - - -KubernetesAccessRules.prototype['alg'] = undefined; -/** - * Audience is an optional Kubernetes jwt claim to verify - * @member {String} audience - */ - -KubernetesAccessRules.prototype['audience'] = undefined; -/** - * A list of namespaces that the authentication is restricted to. - * @member {Array.} bound_namespaces - */ - -KubernetesAccessRules.prototype['bound_namespaces'] = undefined; -/** - * A list of pods names that the authentication is restricted to. - * @member {Array.} bound_pod_names - */ - -KubernetesAccessRules.prototype['bound_pod_names'] = undefined; -/** - * A list of service account names that the authentication is restricted to. - * @member {Array.} bound_service_account_names - */ - -KubernetesAccessRules.prototype['bound_service_account_names'] = undefined; -/** - * Generate public/private key (the private key is required for the K8S Auth Config in the Akeyless Gateway) - * @member {String} gen_key_pair - */ - -KubernetesAccessRules.prototype['gen_key_pair'] = undefined; -/** - * The public key value of the Kubernetes auth method configuration in the Akeyless Gateway. - * @member {String} pub_key - */ - -KubernetesAccessRules.prototype['pub_key'] = undefined; -var _default = KubernetesAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 86012: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The LDAPAccessRules model module. - * @module model/LDAPAccessRules - * @version 3.3.16 - */ -var LDAPAccessRules = /*#__PURE__*/function () { - /** - * Constructs a new LDAPAccessRules. - * @alias module:model/LDAPAccessRules - */ - function LDAPAccessRules() { - _classCallCheck(this, LDAPAccessRules); - - LDAPAccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(LDAPAccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a LDAPAccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LDAPAccessRules} obj Optional instance to populate. - * @return {module:model/LDAPAccessRules} The populated LDAPAccessRules instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LDAPAccessRules(); - - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); - } - - if (data.hasOwnProperty('gen_key_pair')) { - obj['gen_key_pair'] = _ApiClient["default"].convertToType(data['gen_key_pair'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('unique_identifier')) { - obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); - } - } - - return obj; - } - }]); - - return LDAPAccessRules; -}(); -/** - * @member {String} alg - */ - - -LDAPAccessRules.prototype['alg'] = undefined; -/** - * Generate public/private key (the private key is required for the LDAP Auth Config in the Akeyless Gateway) - * @member {String} gen_key_pair - */ - -LDAPAccessRules.prototype['gen_key_pair'] = undefined; -/** - * The public key value of LDAP. - * @member {String} key - */ - -LDAPAccessRules.prototype['key'] = undefined; -/** - * A unique identifier to distinguish different users - * @member {String} unique_identifier - */ - -LDAPAccessRules.prototype['unique_identifier'] = undefined; -var _default = LDAPAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 48174: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _K8SAuthsConfigLastChange = _interopRequireDefault(__nccwpck_require__(2421)); - -var _MigrationsConfigLastChange = _interopRequireDefault(__nccwpck_require__(66135)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The LastConfigChange model module. - * @module model/LastConfigChange - * @version 3.3.16 - */ -var LastConfigChange = /*#__PURE__*/function () { - /** - * Constructs a new LastConfigChange. - * @alias module:model/LastConfigChange - */ - function LastConfigChange() { - _classCallCheck(this, LastConfigChange); - - LastConfigChange.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(LastConfigChange, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a LastConfigChange from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LastConfigChange} obj Optional instance to populate. - * @return {module:model/LastConfigChange} The populated LastConfigChange instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LastConfigChange(); - - if (data.hasOwnProperty('last_k8s_auths_change')) { - obj['last_k8s_auths_change'] = _K8SAuthsConfigLastChange["default"].constructFromObject(data['last_k8s_auths_change']); - } - - if (data.hasOwnProperty('last_migrations_change')) { - obj['last_migrations_change'] = _MigrationsConfigLastChange["default"].constructFromObject(data['last_migrations_change']); - } - } - - return obj; - } - }]); - - return LastConfigChange; -}(); -/** - * @member {module:model/K8SAuthsConfigLastChange} last_k8s_auths_change - */ - - -LastConfigChange.prototype['last_k8s_auths_change'] = undefined; -/** - * @member {module:model/MigrationsConfigLastChange} last_migrations_change - */ - -LastConfigChange.prototype['last_migrations_change'] = undefined; -var _default = LastConfigChange; -exports["default"] = _default; - -/***/ }), - -/***/ 12778: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _MigrationStatus = _interopRequireDefault(__nccwpck_require__(97664)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The LastStatusInfo model module. - * @module model/LastStatusInfo - * @version 3.3.16 - */ -var LastStatusInfo = /*#__PURE__*/function () { - /** - * Constructs a new LastStatusInfo. - * @alias module:model/LastStatusInfo - */ - function LastStatusInfo() { - _classCallCheck(this, LastStatusInfo); - - LastStatusInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(LastStatusInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a LastStatusInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LastStatusInfo} obj Optional instance to populate. - * @return {module:model/LastStatusInfo} The populated LastStatusInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LastStatusInfo(); - - if (data.hasOwnProperty('migrations_status')) { - obj['migrations_status'] = _MigrationStatus["default"].constructFromObject(data['migrations_status']); - } - - if (data.hasOwnProperty('producers_errors')) { - obj['producers_errors'] = _ApiClient["default"].convertToType(data['producers_errors'], Object); - } - - if (data.hasOwnProperty('was_migrations_copied_to_new_table')) { - obj['was_migrations_copied_to_new_table'] = _ApiClient["default"].convertToType(data['was_migrations_copied_to_new_table'], 'Boolean'); - } - } - - return obj; - } - }]); - - return LastStatusInfo; -}(); -/** - * @member {module:model/MigrationStatus} migrations_status - */ - - -LastStatusInfo.prototype['migrations_status'] = undefined; -/** - * @member {Object} producers_errors - */ - -LastStatusInfo.prototype['producers_errors'] = undefined; -/** - * flag to indicate migrationStatus copied to new table - * @member {Boolean} was_migrations_copied_to_new_table - */ - -LastStatusInfo.prototype['was_migrations_copied_to_new_table'] = undefined; -var _default = LastStatusInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 2846: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The LdapConfigPart model module. - * @module model/LdapConfigPart - * @version 3.3.16 - */ -var LdapConfigPart = /*#__PURE__*/function () { - /** - * Constructs a new LdapConfigPart. - * @alias module:model/LdapConfigPart - */ - function LdapConfigPart() { - _classCallCheck(this, LdapConfigPart); - - LdapConfigPart.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(LdapConfigPart, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a LdapConfigPart from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LdapConfigPart} obj Optional instance to populate. - * @return {module:model/LdapConfigPart} The populated LdapConfigPart instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LdapConfigPart(); - - if (data.hasOwnProperty('ldap_access_id')) { - obj['ldap_access_id'] = _ApiClient["default"].convertToType(data['ldap_access_id'], 'String'); - } - - if (data.hasOwnProperty('ldap_anonymous_search')) { - obj['ldap_anonymous_search'] = _ApiClient["default"].convertToType(data['ldap_anonymous_search'], 'Boolean'); - } - - if (data.hasOwnProperty('ldap_bind_dn')) { - obj['ldap_bind_dn'] = _ApiClient["default"].convertToType(data['ldap_bind_dn'], 'String'); - } - - if (data.hasOwnProperty('ldap_bind_password')) { - obj['ldap_bind_password'] = _ApiClient["default"].convertToType(data['ldap_bind_password'], 'String'); - } - - if (data.hasOwnProperty('ldap_cert')) { - obj['ldap_cert'] = _ApiClient["default"].convertToType(data['ldap_cert'], 'String'); - } - - if (data.hasOwnProperty('ldap_enable')) { - obj['ldap_enable'] = _ApiClient["default"].convertToType(data['ldap_enable'], 'Boolean'); - } - - if (data.hasOwnProperty('ldap_group_attr')) { - obj['ldap_group_attr'] = _ApiClient["default"].convertToType(data['ldap_group_attr'], 'String'); - } - - if (data.hasOwnProperty('ldap_group_dn')) { - obj['ldap_group_dn'] = _ApiClient["default"].convertToType(data['ldap_group_dn'], 'String'); - } - - if (data.hasOwnProperty('ldap_group_filter')) { - obj['ldap_group_filter'] = _ApiClient["default"].convertToType(data['ldap_group_filter'], 'String'); - } - - if (data.hasOwnProperty('ldap_private_key')) { - obj['ldap_private_key'] = _ApiClient["default"].convertToType(data['ldap_private_key'], 'String'); - } - - if (data.hasOwnProperty('ldap_token_expiration')) { - obj['ldap_token_expiration'] = _ApiClient["default"].convertToType(data['ldap_token_expiration'], 'String'); - } - - if (data.hasOwnProperty('ldap_url')) { - obj['ldap_url'] = _ApiClient["default"].convertToType(data['ldap_url'], 'String'); - } - - if (data.hasOwnProperty('ldap_user_attr')) { - obj['ldap_user_attr'] = _ApiClient["default"].convertToType(data['ldap_user_attr'], 'String'); - } - - if (data.hasOwnProperty('ldap_user_dn')) { - obj['ldap_user_dn'] = _ApiClient["default"].convertToType(data['ldap_user_dn'], 'String'); - } - } - - return obj; - } - }]); - - return LdapConfigPart; -}(); -/** - * @member {String} ldap_access_id - */ - - -LdapConfigPart.prototype['ldap_access_id'] = undefined; -/** - * @member {Boolean} ldap_anonymous_search - */ - -LdapConfigPart.prototype['ldap_anonymous_search'] = undefined; -/** - * @member {String} ldap_bind_dn - */ - -LdapConfigPart.prototype['ldap_bind_dn'] = undefined; -/** - * @member {String} ldap_bind_password - */ - -LdapConfigPart.prototype['ldap_bind_password'] = undefined; -/** - * @member {String} ldap_cert - */ - -LdapConfigPart.prototype['ldap_cert'] = undefined; -/** - * @member {Boolean} ldap_enable - */ - -LdapConfigPart.prototype['ldap_enable'] = undefined; -/** - * @member {String} ldap_group_attr - */ - -LdapConfigPart.prototype['ldap_group_attr'] = undefined; -/** - * @member {String} ldap_group_dn - */ - -LdapConfigPart.prototype['ldap_group_dn'] = undefined; -/** - * @member {String} ldap_group_filter - */ - -LdapConfigPart.prototype['ldap_group_filter'] = undefined; -/** - * @member {String} ldap_private_key - */ - -LdapConfigPart.prototype['ldap_private_key'] = undefined; -/** - * @member {String} ldap_token_expiration - */ - -LdapConfigPart.prototype['ldap_token_expiration'] = undefined; -/** - * @member {String} ldap_url - */ - -LdapConfigPart.prototype['ldap_url'] = undefined; -/** - * @member {String} ldap_user_attr - */ - -LdapConfigPart.prototype['ldap_user_attr'] = undefined; -/** - * @member {String} ldap_user_dn - */ - -LdapConfigPart.prototype['ldap_user_dn'] = undefined; -var _default = LdapConfigPart; -exports["default"] = _default; - -/***/ }), - -/***/ 11780: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The LdapTargetDetails model module. - * @module model/LdapTargetDetails - * @version 3.3.16 - */ -var LdapTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new LdapTargetDetails. - * LdapTargetDetails - * @alias module:model/LdapTargetDetails - */ - function LdapTargetDetails() { - _classCallCheck(this, LdapTargetDetails); - - LdapTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(LdapTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a LdapTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LdapTargetDetails} obj Optional instance to populate. - * @return {module:model/LdapTargetDetails} The populated LdapTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LdapTargetDetails(); - - if (data.hasOwnProperty('implementation_type')) { - obj['implementation_type'] = _ApiClient["default"].convertToType(data['implementation_type'], 'String'); - } - - if (data.hasOwnProperty('ldap_audience')) { - obj['ldap_audience'] = _ApiClient["default"].convertToType(data['ldap_audience'], 'String'); - } - - if (data.hasOwnProperty('ldap_bind_dn')) { - obj['ldap_bind_dn'] = _ApiClient["default"].convertToType(data['ldap_bind_dn'], 'String'); - } - - if (data.hasOwnProperty('ldap_bind_password')) { - obj['ldap_bind_password'] = _ApiClient["default"].convertToType(data['ldap_bind_password'], 'String'); - } - - if (data.hasOwnProperty('ldap_certificate')) { - obj['ldap_certificate'] = _ApiClient["default"].convertToType(data['ldap_certificate'], 'String'); - } - - if (data.hasOwnProperty('ldap_token_expiration')) { - obj['ldap_token_expiration'] = _ApiClient["default"].convertToType(data['ldap_token_expiration'], 'String'); - } - - if (data.hasOwnProperty('ldap_url')) { - obj['ldap_url'] = _ApiClient["default"].convertToType(data['ldap_url'], 'String'); - } - } - - return obj; - } - }]); - - return LdapTargetDetails; -}(); -/** - * @member {String} implementation_type - */ - - -LdapTargetDetails.prototype['implementation_type'] = undefined; -/** - * @member {String} ldap_audience - */ - -LdapTargetDetails.prototype['ldap_audience'] = undefined; -/** - * @member {String} ldap_bind_dn - */ - -LdapTargetDetails.prototype['ldap_bind_dn'] = undefined; -/** - * @member {String} ldap_bind_password - */ - -LdapTargetDetails.prototype['ldap_bind_password'] = undefined; -/** - * @member {String} ldap_certificate - */ - -LdapTargetDetails.prototype['ldap_certificate'] = undefined; -/** - * @member {String} ldap_token_expiration - */ - -LdapTargetDetails.prototype['ldap_token_expiration'] = undefined; -/** - * @member {String} ldap_url - */ - -LdapTargetDetails.prototype['ldap_url'] = undefined; -var _default = LdapTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 25900: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The LeadershipConfigPart model module. - * @module model/LeadershipConfigPart - * @version 3.3.16 - */ -var LeadershipConfigPart = /*#__PURE__*/function () { - /** - * Constructs a new LeadershipConfigPart. - * @alias module:model/LeadershipConfigPart - */ - function LeadershipConfigPart() { - _classCallCheck(this, LeadershipConfigPart); - - LeadershipConfigPart.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(LeadershipConfigPart, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a LeadershipConfigPart from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadershipConfigPart} obj Optional instance to populate. - * @return {module:model/LeadershipConfigPart} The populated LeadershipConfigPart instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LeadershipConfigPart(); - - if (data.hasOwnProperty('open_leadership')) { - obj['open_leadership'] = _ApiClient["default"].convertToType(data['open_leadership'], ['Number']); - } - } - - return obj; - } - }]); - - return LeadershipConfigPart; -}(); -/** - * @member {Array.} open_leadership - */ - - -LeadershipConfigPart.prototype['open_leadership'] = undefined; -var _default = LeadershipConfigPart; -exports["default"] = _default; - -/***/ }), - -/***/ 33863: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The LinkedDetails model module. - * @module model/LinkedDetails - * @version 3.3.16 - */ -var LinkedDetails = /*#__PURE__*/function () { - /** - * Constructs a new LinkedDetails. - * @alias module:model/LinkedDetails - */ - function LinkedDetails() { - _classCallCheck(this, LinkedDetails); - - LinkedDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(LinkedDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a LinkedDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LinkedDetails} obj Optional instance to populate. - * @return {module:model/LinkedDetails} The populated LinkedDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LinkedDetails(); - - if (data.hasOwnProperty('hosts')) { - obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], { - 'String': 'String' - }); - } - } - - return obj; - } - }]); - - return LinkedDetails; -}(); -/** - * @member {Object.} hosts - */ - - -LinkedDetails.prototype['hosts'] = undefined; -var _default = LinkedDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 35968: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The LinkedTargetDetails model module. - * @module model/LinkedTargetDetails - * @version 3.3.16 - */ -var LinkedTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new LinkedTargetDetails. - * LinkedTargetDetails - * @alias module:model/LinkedTargetDetails - */ - function LinkedTargetDetails() { - _classCallCheck(this, LinkedTargetDetails); - - LinkedTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(LinkedTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a LinkedTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LinkedTargetDetails} obj Optional instance to populate. - * @return {module:model/LinkedTargetDetails} The populated LinkedTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LinkedTargetDetails(); - - if (data.hasOwnProperty('hosts')) { - obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], { - 'String': 'String' - }); - } - } - - return obj; - } - }]); - - return LinkedTargetDetails; -}(); -/** - * key hostname, value description - * @member {Object.} hosts - */ - - -LinkedTargetDetails.prototype['hosts'] = undefined; -var _default = LinkedTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 60486: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ListAuthMethods model module. - * @module model/ListAuthMethods - * @version 3.3.16 - */ -var ListAuthMethods = /*#__PURE__*/function () { - /** - * Constructs a new ListAuthMethods. - * listAuthMethods is a command that returns a list of all auth methods in the account. - * @alias module:model/ListAuthMethods - */ - function ListAuthMethods() { - _classCallCheck(this, ListAuthMethods); - - ListAuthMethods.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ListAuthMethods, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListAuthMethods from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListAuthMethods} obj Optional instance to populate. - * @return {module:model/ListAuthMethods} The populated ListAuthMethods instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListAuthMethods(); - - if (data.hasOwnProperty('filter')) { - obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('pagination-token')) { - obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], ['String']); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return ListAuthMethods; -}(); -/** - * Filter by auth method name or part of it - * @member {String} filter - */ - - -ListAuthMethods.prototype['filter'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -ListAuthMethods.prototype['json'] = false; -/** - * Next page reference - * @member {String} pagination-token - */ - -ListAuthMethods.prototype['pagination-token'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -ListAuthMethods.prototype['token'] = undefined; -/** - * The Auth method types list of the requested method. In case it is empty, all types of auth methods will be returned. options: [api_key, azure_ad, oauth2/jwt, saml2, ldap, aws_iam, oidc, universal_identity, gcp, k8s, cert] - * @member {Array.} type - */ - -ListAuthMethods.prototype['type'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -ListAuthMethods.prototype['uid-token'] = undefined; -var _default = ListAuthMethods; -exports["default"] = _default; - -/***/ }), - -/***/ 8995: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _AuthMethod = _interopRequireDefault(__nccwpck_require__(52187)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ListAuthMethodsOutput model module. - * @module model/ListAuthMethodsOutput - * @version 3.3.16 - */ -var ListAuthMethodsOutput = /*#__PURE__*/function () { - /** - * Constructs a new ListAuthMethodsOutput. - * @alias module:model/ListAuthMethodsOutput - */ - function ListAuthMethodsOutput() { - _classCallCheck(this, ListAuthMethodsOutput); - - ListAuthMethodsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ListAuthMethodsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListAuthMethodsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListAuthMethodsOutput} obj Optional instance to populate. - * @return {module:model/ListAuthMethodsOutput} The populated ListAuthMethodsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListAuthMethodsOutput(); - - if (data.hasOwnProperty('auth_methods')) { - obj['auth_methods'] = _ApiClient["default"].convertToType(data['auth_methods'], [_AuthMethod["default"]]); - } - - if (data.hasOwnProperty('next_page')) { - obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); - } - } - - return obj; - } - }]); - - return ListAuthMethodsOutput; -}(); -/** - * @member {Array.} auth_methods - */ - - -ListAuthMethodsOutput.prototype['auth_methods'] = undefined; -/** - * @member {String} next_page - */ - -ListAuthMethodsOutput.prototype['next_page'] = undefined; -var _default = ListAuthMethodsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 91099: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ListGateways model module. - * @module model/ListGateways - * @version 3.3.16 - */ -var ListGateways = /*#__PURE__*/function () { - /** - * Constructs a new ListGateways. - * @alias module:model/ListGateways - */ - function ListGateways() { - _classCallCheck(this, ListGateways); - - ListGateways.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ListGateways, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListGateways from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListGateways} obj Optional instance to populate. - * @return {module:model/ListGateways} The populated ListGateways instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListGateways(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return ListGateways; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -ListGateways.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -ListGateways.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -ListGateways.prototype['uid-token'] = undefined; -var _default = ListGateways; -exports["default"] = _default; - -/***/ }), - -/***/ 27410: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ListItems model module. - * @module model/ListItems - * @version 3.3.16 - */ -var ListItems = /*#__PURE__*/function () { - /** - * Constructs a new ListItems. - * @alias module:model/ListItems - */ - function ListItems() { - _classCallCheck(this, ListItems); - - ListItems.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ListItems, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListItems from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListItems} obj Optional instance to populate. - * @return {module:model/ListItems} The populated ListItems instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListItems(); - - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); - } - - if (data.hasOwnProperty('auto-pagination')) { - obj['auto-pagination'] = _ApiClient["default"].convertToType(data['auto-pagination'], 'String'); - } - - if (data.hasOwnProperty('filter')) { - obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('minimal-view')) { - obj['minimal-view'] = _ApiClient["default"].convertToType(data['minimal-view'], 'Boolean'); - } - - if (data.hasOwnProperty('pagination-token')) { - obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); - } - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - - if (data.hasOwnProperty('sra-only')) { - obj['sra-only'] = _ApiClient["default"].convertToType(data['sra-only'], 'Boolean'); - } - - if (data.hasOwnProperty('sub_types')) { - obj['sub_types'] = _ApiClient["default"].convertToType(data['sub_types'], ['String']); - } - - if (data.hasOwnProperty('tag')) { - obj['tag'] = _ApiClient["default"].convertToType(data['tag'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], ['String']); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return ListItems; -}(); -/** - * for personal password manager - * @member {String} accessibility - * @default 'regular' - */ - - -ListItems.prototype['accessibility'] = 'regular'; -/** - * Retrieve all items using pagination, when disabled retrieving only first 1000 items - * @member {String} auto-pagination - * @default 'enabled' - */ - -ListItems.prototype['auto-pagination'] = 'enabled'; -/** - * Filter by item name or part of it - * @member {String} filter - */ - -ListItems.prototype['filter'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -ListItems.prototype['json'] = false; -/** - * @member {Boolean} minimal-view - */ - -ListItems.prototype['minimal-view'] = undefined; -/** - * Next page reference - * @member {String} pagination-token - */ - -ListItems.prototype['pagination-token'] = undefined; -/** - * Path to folder - * @member {String} path - */ - -ListItems.prototype['path'] = undefined; -/** - * Filter by items with SRA functionality enabled - * @member {Boolean} sra-only - * @default false - */ - -ListItems.prototype['sra-only'] = false; -/** - * @member {Array.} sub_types - */ - -ListItems.prototype['sub_types'] = undefined; -/** - * Filter by item tag - * @member {String} tag - */ - -ListItems.prototype['tag'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -ListItems.prototype['token'] = undefined; -/** - * The item types list of the requested items. In case it is empty, all types of items will be returned. options: [key, static-secret, dynamic-secret, classic-key] - * @member {Array.} type - */ - -ListItems.prototype['type'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -ListItems.prototype['uid-token'] = undefined; -var _default = ListItems; -exports["default"] = _default; - -/***/ }), - -/***/ 423: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _Item = _interopRequireDefault(__nccwpck_require__(23711)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ListItemsInPathOutput model module. - * @module model/ListItemsInPathOutput - * @version 3.3.16 - */ -var ListItemsInPathOutput = /*#__PURE__*/function () { - /** - * Constructs a new ListItemsInPathOutput. - * @alias module:model/ListItemsInPathOutput - */ - function ListItemsInPathOutput() { - _classCallCheck(this, ListItemsInPathOutput); - - ListItemsInPathOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ListItemsInPathOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListItemsInPathOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListItemsInPathOutput} obj Optional instance to populate. - * @return {module:model/ListItemsInPathOutput} The populated ListItemsInPathOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListItemsInPathOutput(); - - if (data.hasOwnProperty('folders')) { - obj['folders'] = _ApiClient["default"].convertToType(data['folders'], ['String']); - } - - if (data.hasOwnProperty('items')) { - obj['items'] = _ApiClient["default"].convertToType(data['items'], [_Item["default"]]); - } - - if (data.hasOwnProperty('next_page')) { - obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); - } - } - - return obj; - } - }]); - - return ListItemsInPathOutput; -}(); -/** - * @member {Array.} folders - */ - - -ListItemsInPathOutput.prototype['folders'] = undefined; -/** - * @member {Array.} items - */ - -ListItemsInPathOutput.prototype['items'] = undefined; -/** - * @member {String} next_page - */ - -ListItemsInPathOutput.prototype['next_page'] = undefined; -var _default = ListItemsInPathOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 41751: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _Item = _interopRequireDefault(__nccwpck_require__(23711)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ListItemsOutput model module. - * @module model/ListItemsOutput - * @version 3.3.16 - */ -var ListItemsOutput = /*#__PURE__*/function () { - /** - * Constructs a new ListItemsOutput. - * @alias module:model/ListItemsOutput - */ - function ListItemsOutput() { - _classCallCheck(this, ListItemsOutput); - - ListItemsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ListItemsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListItemsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListItemsOutput} obj Optional instance to populate. - * @return {module:model/ListItemsOutput} The populated ListItemsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListItemsOutput(); - - if (data.hasOwnProperty('items')) { - obj['items'] = _ApiClient["default"].convertToType(data['items'], [_Item["default"]]); - } - - if (data.hasOwnProperty('next_page')) { - obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); - } - } - - return obj; - } - }]); - - return ListItemsOutput; -}(); -/** - * @member {Array.} items - */ - - -ListItemsOutput.prototype['items'] = undefined; -/** - * @member {String} next_page - */ - -ListItemsOutput.prototype['next_page'] = undefined; -var _default = ListItemsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 7007: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ListRoles model module. - * @module model/ListRoles - * @version 3.3.16 - */ -var ListRoles = /*#__PURE__*/function () { - /** - * Constructs a new ListRoles. - * @alias module:model/ListRoles - */ - function ListRoles() { - _classCallCheck(this, ListRoles); - - ListRoles.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ListRoles, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListRoles from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListRoles} obj Optional instance to populate. - * @return {module:model/ListRoles} The populated ListRoles instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListRoles(); - - if (data.hasOwnProperty('filter')) { - obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('pagination-token')) { - obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return ListRoles; -}(); -/** - * Filter by item name or part of it - * @member {String} filter - */ - - -ListRoles.prototype['filter'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -ListRoles.prototype['json'] = false; -/** - * Next page reference - * @member {String} pagination-token - */ - -ListRoles.prototype['pagination-token'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -ListRoles.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -ListRoles.prototype['uid-token'] = undefined; -var _default = ListRoles; -exports["default"] = _default; - -/***/ }), - -/***/ 65702: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _Role = _interopRequireDefault(__nccwpck_require__(74264)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ListRolesOutput model module. - * @module model/ListRolesOutput - * @version 3.3.16 - */ -var ListRolesOutput = /*#__PURE__*/function () { - /** - * Constructs a new ListRolesOutput. - * @alias module:model/ListRolesOutput - */ - function ListRolesOutput() { - _classCallCheck(this, ListRolesOutput); - - ListRolesOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ListRolesOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListRolesOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListRolesOutput} obj Optional instance to populate. - * @return {module:model/ListRolesOutput} The populated ListRolesOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListRolesOutput(); - - if (data.hasOwnProperty('next_page')) { - obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); - } - - if (data.hasOwnProperty('roles')) { - obj['roles'] = _ApiClient["default"].convertToType(data['roles'], [_Role["default"]]); - } - } - - return obj; - } - }]); - - return ListRolesOutput; -}(); -/** - * @member {String} next_page - */ - - -ListRolesOutput.prototype['next_page'] = undefined; -/** - * @member {Array.} roles - */ - -ListRolesOutput.prototype['roles'] = undefined; -var _default = ListRolesOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 59255: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ListSRABastions model module. - * @module model/ListSRABastions - * @version 3.3.16 - */ -var ListSRABastions = /*#__PURE__*/function () { - /** - * Constructs a new ListSRABastions. - * @alias module:model/ListSRABastions - */ - function ListSRABastions() { - _classCallCheck(this, ListSRABastions); - - ListSRABastions.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ListSRABastions, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListSRABastions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListSRABastions} obj Optional instance to populate. - * @return {module:model/ListSRABastions} The populated ListSRABastions instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListSRABastions(); - - if (data.hasOwnProperty('allowed-urls-only')) { - obj['allowed-urls-only'] = _ApiClient["default"].convertToType(data['allowed-urls-only'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return ListSRABastions; -}(); -/** - * Filter the response to show only bastions allowed URLs - * @member {Boolean} allowed-urls-only - * @default false - */ - - -ListSRABastions.prototype['allowed-urls-only'] = false; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -ListSRABastions.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -ListSRABastions.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -ListSRABastions.prototype['uid-token'] = undefined; -var _default = ListSRABastions; -exports["default"] = _default; - -/***/ }), - -/***/ 90349: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ListSharedItems model module. - * @module model/ListSharedItems - * @version 3.3.16 - */ -var ListSharedItems = /*#__PURE__*/function () { - /** - * Constructs a new ListSharedItems. - * listSharedItems is a command to list all the items been shared - * @alias module:model/ListSharedItems - */ - function ListSharedItems() { - _classCallCheck(this, ListSharedItems); - - ListSharedItems.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ListSharedItems, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListSharedItems from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListSharedItems} obj Optional instance to populate. - * @return {module:model/ListSharedItems} The populated ListSharedItems instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListSharedItems(); - - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return ListSharedItems; -}(); -/** - * for personal password manager - * @member {String} accessibility - * @default 'regular' - */ - - -ListSharedItems.prototype['accessibility'] = 'regular'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -ListSharedItems.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -ListSharedItems.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -ListSharedItems.prototype['uid-token'] = undefined; -var _default = ListSharedItems; -exports["default"] = _default; - -/***/ }), - -/***/ 97640: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ListTargets model module. - * @module model/ListTargets - * @version 3.3.16 - */ -var ListTargets = /*#__PURE__*/function () { - /** - * Constructs a new ListTargets. - * @alias module:model/ListTargets - */ - function ListTargets() { - _classCallCheck(this, ListTargets); - - ListTargets.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ListTargets, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListTargets from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListTargets} obj Optional instance to populate. - * @return {module:model/ListTargets} The populated ListTargets instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListTargets(); - - if (data.hasOwnProperty('filter')) { - obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('pagination-token')) { - obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], ['String']); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return ListTargets; -}(); -/** - * Filter by auth method name or part of it - * @member {String} filter - */ - - -ListTargets.prototype['filter'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -ListTargets.prototype['json'] = false; -/** - * Next page reference - * @member {String} pagination-token - */ - -ListTargets.prototype['pagination-token'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -ListTargets.prototype['token'] = undefined; -/** - * The target types list . In case it is empty, all types of targets will be returned. options: [hanadb cassandra aws ssh gke eks mysql mongodb snowflake mssql redshift artifactory azure rabbitmq k8s venafi gcp oracle dockerhub ldap github chef web salesforce postgres] - * @member {Array.} type - */ - -ListTargets.prototype['type'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -ListTargets.prototype['uid-token'] = undefined; -var _default = ListTargets; -exports["default"] = _default; - -/***/ }), - -/***/ 52161: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _Target = _interopRequireDefault(__nccwpck_require__(50373)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ListTargetsOutput model module. - * @module model/ListTargetsOutput - * @version 3.3.16 - */ -var ListTargetsOutput = /*#__PURE__*/function () { - /** - * Constructs a new ListTargetsOutput. - * @alias module:model/ListTargetsOutput - */ - function ListTargetsOutput() { - _classCallCheck(this, ListTargetsOutput); - - ListTargetsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ListTargetsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ListTargetsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListTargetsOutput} obj Optional instance to populate. - * @return {module:model/ListTargetsOutput} The populated ListTargetsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListTargetsOutput(); - - if (data.hasOwnProperty('next_page')) { - obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); - } - - if (data.hasOwnProperty('targets')) { - obj['targets'] = _ApiClient["default"].convertToType(data['targets'], [_Target["default"]]); - } - } - - return obj; - } - }]); - - return ListTargetsOutput; -}(); -/** - * @member {String} next_page - */ - - -ListTargetsOutput.prototype['next_page'] = undefined; -/** - * @member {Array.} targets - */ - -ListTargetsOutput.prototype['targets'] = undefined; -var _default = ListTargetsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 65736: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _AwsS3LogForwardingConfig = _interopRequireDefault(__nccwpck_require__(20090)); - -var _AzureLogAnalyticsForwardingConfig = _interopRequireDefault(__nccwpck_require__(20430)); - -var _DatadogForwardingConfig = _interopRequireDefault(__nccwpck_require__(26413)); - -var _ElasticsearchLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(15078)); - -var _GoogleChronicleForwardingConfig = _interopRequireDefault(__nccwpck_require__(36479)); - -var _LogstashLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(35480)); - -var _LogzIoLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(8725)); - -var _SplunkLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(39760)); - -var _SumologicLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(58097)); - -var _SyslogLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(68494)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The LogForwardingConfigPart model module. - * @module model/LogForwardingConfigPart - * @version 3.3.16 - */ -var LogForwardingConfigPart = /*#__PURE__*/function () { - /** - * Constructs a new LogForwardingConfigPart. - * @alias module:model/LogForwardingConfigPart - */ - function LogForwardingConfigPart() { - _classCallCheck(this, LogForwardingConfigPart); - - LogForwardingConfigPart.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(LogForwardingConfigPart, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a LogForwardingConfigPart from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LogForwardingConfigPart} obj Optional instance to populate. - * @return {module:model/LogForwardingConfigPart} The populated LogForwardingConfigPart instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LogForwardingConfigPart(); - - if (data.hasOwnProperty('aws_s3_config')) { - obj['aws_s3_config'] = _AwsS3LogForwardingConfig["default"].constructFromObject(data['aws_s3_config']); - } - - if (data.hasOwnProperty('azure_analytics_config')) { - obj['azure_analytics_config'] = _AzureLogAnalyticsForwardingConfig["default"].constructFromObject(data['azure_analytics_config']); - } - - if (data.hasOwnProperty('datadog_config')) { - obj['datadog_config'] = _DatadogForwardingConfig["default"].constructFromObject(data['datadog_config']); - } - - if (data.hasOwnProperty('elasticsearch_config')) { - obj['elasticsearch_config'] = _ElasticsearchLogForwardingConfig["default"].constructFromObject(data['elasticsearch_config']); - } - - if (data.hasOwnProperty('google_chronicle_config')) { - obj['google_chronicle_config'] = _GoogleChronicleForwardingConfig["default"].constructFromObject(data['google_chronicle_config']); - } - - if (data.hasOwnProperty('json_output')) { - obj['json_output'] = _ApiClient["default"].convertToType(data['json_output'], 'Boolean'); - } - - if (data.hasOwnProperty('logan_enable')) { - obj['logan_enable'] = _ApiClient["default"].convertToType(data['logan_enable'], 'Boolean'); - } - - if (data.hasOwnProperty('logan_url')) { - obj['logan_url'] = _ApiClient["default"].convertToType(data['logan_url'], 'String'); - } - - if (data.hasOwnProperty('logstash_config')) { - obj['logstash_config'] = _LogstashLogForwardingConfig["default"].constructFromObject(data['logstash_config']); - } - - if (data.hasOwnProperty('logz_io_config')) { - obj['logz_io_config'] = _LogzIoLogForwardingConfig["default"].constructFromObject(data['logz_io_config']); - } - - if (data.hasOwnProperty('pull_interval_sec')) { - obj['pull_interval_sec'] = _ApiClient["default"].convertToType(data['pull_interval_sec'], 'String'); - } - - if (data.hasOwnProperty('splunk_config')) { - obj['splunk_config'] = _SplunkLogForwardingConfig["default"].constructFromObject(data['splunk_config']); - } - - if (data.hasOwnProperty('sumo_logic_config')) { - obj['sumo_logic_config'] = _SumologicLogForwardingConfig["default"].constructFromObject(data['sumo_logic_config']); - } - - if (data.hasOwnProperty('syslog_config')) { - obj['syslog_config'] = _SyslogLogForwardingConfig["default"].constructFromObject(data['syslog_config']); - } - - if (data.hasOwnProperty('target_log_type')) { - obj['target_log_type'] = _ApiClient["default"].convertToType(data['target_log_type'], 'String'); - } - } - - return obj; - } - }]); - - return LogForwardingConfigPart; -}(); -/** - * @member {module:model/AwsS3LogForwardingConfig} aws_s3_config - */ - - -LogForwardingConfigPart.prototype['aws_s3_config'] = undefined; -/** - * @member {module:model/AzureLogAnalyticsForwardingConfig} azure_analytics_config - */ - -LogForwardingConfigPart.prototype['azure_analytics_config'] = undefined; -/** - * @member {module:model/DatadogForwardingConfig} datadog_config - */ - -LogForwardingConfigPart.prototype['datadog_config'] = undefined; -/** - * @member {module:model/ElasticsearchLogForwardingConfig} elasticsearch_config - */ - -LogForwardingConfigPart.prototype['elasticsearch_config'] = undefined; -/** - * @member {module:model/GoogleChronicleForwardingConfig} google_chronicle_config - */ - -LogForwardingConfigPart.prototype['google_chronicle_config'] = undefined; -/** - * @member {Boolean} json_output - */ - -LogForwardingConfigPart.prototype['json_output'] = undefined; -/** - * @member {Boolean} logan_enable - */ - -LogForwardingConfigPart.prototype['logan_enable'] = undefined; -/** - * @member {String} logan_url - */ - -LogForwardingConfigPart.prototype['logan_url'] = undefined; -/** - * @member {module:model/LogstashLogForwardingConfig} logstash_config - */ - -LogForwardingConfigPart.prototype['logstash_config'] = undefined; -/** - * @member {module:model/LogzIoLogForwardingConfig} logz_io_config - */ - -LogForwardingConfigPart.prototype['logz_io_config'] = undefined; -/** - * @member {String} pull_interval_sec - */ - -LogForwardingConfigPart.prototype['pull_interval_sec'] = undefined; -/** - * @member {module:model/SplunkLogForwardingConfig} splunk_config - */ - -LogForwardingConfigPart.prototype['splunk_config'] = undefined; -/** - * @member {module:model/SumologicLogForwardingConfig} sumo_logic_config - */ - -LogForwardingConfigPart.prototype['sumo_logic_config'] = undefined; -/** - * @member {module:model/SyslogLogForwardingConfig} syslog_config - */ - -LogForwardingConfigPart.prototype['syslog_config'] = undefined; -/** - * @member {String} target_log_type - */ - -LogForwardingConfigPart.prototype['target_log_type'] = undefined; -var _default = LogForwardingConfigPart; -exports["default"] = _default; - -/***/ }), - -/***/ 35480: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The LogstashLogForwardingConfig model module. - * @module model/LogstashLogForwardingConfig - * @version 3.3.16 - */ -var LogstashLogForwardingConfig = /*#__PURE__*/function () { - /** - * Constructs a new LogstashLogForwardingConfig. - * @alias module:model/LogstashLogForwardingConfig - */ - function LogstashLogForwardingConfig() { - _classCallCheck(this, LogstashLogForwardingConfig); - - LogstashLogForwardingConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(LogstashLogForwardingConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a LogstashLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LogstashLogForwardingConfig} obj Optional instance to populate. - * @return {module:model/LogstashLogForwardingConfig} The populated LogstashLogForwardingConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LogstashLogForwardingConfig(); - - if (data.hasOwnProperty('logstash_dns')) { - obj['logstash_dns'] = _ApiClient["default"].convertToType(data['logstash_dns'], 'String'); - } - - if (data.hasOwnProperty('logstash_enable_tls')) { - obj['logstash_enable_tls'] = _ApiClient["default"].convertToType(data['logstash_enable_tls'], 'Boolean'); - } - - if (data.hasOwnProperty('logstash_protocol')) { - obj['logstash_protocol'] = _ApiClient["default"].convertToType(data['logstash_protocol'], 'String'); - } - - if (data.hasOwnProperty('logstash_tls_certificate')) { - obj['logstash_tls_certificate'] = _ApiClient["default"].convertToType(data['logstash_tls_certificate'], 'String'); - } - } - - return obj; - } - }]); - - return LogstashLogForwardingConfig; -}(); -/** - * @member {String} logstash_dns - */ - - -LogstashLogForwardingConfig.prototype['logstash_dns'] = undefined; -/** - * @member {Boolean} logstash_enable_tls - */ - -LogstashLogForwardingConfig.prototype['logstash_enable_tls'] = undefined; -/** - * @member {String} logstash_protocol - */ - -LogstashLogForwardingConfig.prototype['logstash_protocol'] = undefined; -/** - * @member {String} logstash_tls_certificate - */ - -LogstashLogForwardingConfig.prototype['logstash_tls_certificate'] = undefined; -var _default = LogstashLogForwardingConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 8725: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The LogzIoLogForwardingConfig model module. - * @module model/LogzIoLogForwardingConfig - * @version 3.3.16 - */ -var LogzIoLogForwardingConfig = /*#__PURE__*/function () { - /** - * Constructs a new LogzIoLogForwardingConfig. - * @alias module:model/LogzIoLogForwardingConfig - */ - function LogzIoLogForwardingConfig() { - _classCallCheck(this, LogzIoLogForwardingConfig); - - LogzIoLogForwardingConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(LogzIoLogForwardingConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a LogzIoLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LogzIoLogForwardingConfig} obj Optional instance to populate. - * @return {module:model/LogzIoLogForwardingConfig} The populated LogzIoLogForwardingConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LogzIoLogForwardingConfig(); - - if (data.hasOwnProperty('target_logz_io_protocol')) { - obj['target_logz_io_protocol'] = _ApiClient["default"].convertToType(data['target_logz_io_protocol'], 'String'); - } - - if (data.hasOwnProperty('target_logz_io_token')) { - obj['target_logz_io_token'] = _ApiClient["default"].convertToType(data['target_logz_io_token'], 'String'); - } - } - - return obj; - } - }]); - - return LogzIoLogForwardingConfig; -}(); -/** - * @member {String} target_logz_io_protocol - */ - - -LogzIoLogForwardingConfig.prototype['target_logz_io_protocol'] = undefined; -/** - * @member {String} target_logz_io_token - */ - -LogzIoLogForwardingConfig.prototype['target_logz_io_token'] = undefined; -var _default = LogzIoLogForwardingConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 89124: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The MigrationGeneral model module. - * @module model/MigrationGeneral - * @version 3.3.16 - */ -var MigrationGeneral = /*#__PURE__*/function () { - /** - * Constructs a new MigrationGeneral. - * @alias module:model/MigrationGeneral - */ - function MigrationGeneral() { - _classCallCheck(this, MigrationGeneral); - - MigrationGeneral.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(MigrationGeneral, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a MigrationGeneral from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MigrationGeneral} obj Optional instance to populate. - * @return {module:model/MigrationGeneral} The populated MigrationGeneral instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MigrationGeneral(); - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new_name')) { - obj['new_name'] = _ApiClient["default"].convertToType(data['new_name'], 'String'); - } - - if (data.hasOwnProperty('prefix')) { - obj['prefix'] = _ApiClient["default"].convertToType(data['prefix'], 'String'); - } - - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); - } - - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - } - - return obj; - } - }]); - - return MigrationGeneral; -}(); -/** - * @member {String} id - */ - - -MigrationGeneral.prototype['id'] = undefined; -/** - * @member {String} name - */ - -MigrationGeneral.prototype['name'] = undefined; -/** - * @member {String} new_name - */ - -MigrationGeneral.prototype['new_name'] = undefined; -/** - * @member {String} prefix - */ - -MigrationGeneral.prototype['prefix'] = undefined; -/** - * @member {String} protection_key - */ - -MigrationGeneral.prototype['protection_key'] = undefined; -/** - * @member {String} status - */ - -MigrationGeneral.prototype['status'] = undefined; -/** - * @member {String} type - */ - -MigrationGeneral.prototype['type'] = undefined; -var _default = MigrationGeneral; -exports["default"] = _default; - -/***/ }), - -/***/ 84208: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The MigrationItems model module. - * @module model/MigrationItems - * @version 3.3.16 - */ -var MigrationItems = /*#__PURE__*/function () { - /** - * Constructs a new MigrationItems. - * @alias module:model/MigrationItems - */ - function MigrationItems() { - _classCallCheck(this, MigrationItems); - - MigrationItems.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(MigrationItems, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a MigrationItems from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MigrationItems} obj Optional instance to populate. - * @return {module:model/MigrationItems} The populated MigrationItems instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MigrationItems(); - - if (data.hasOwnProperty('failed')) { - obj['failed'] = _ApiClient["default"].convertToType(data['failed'], 'Number'); - } - - if (data.hasOwnProperty('migrated')) { - obj['migrated'] = _ApiClient["default"].convertToType(data['migrated'], 'Number'); - } - - if (data.hasOwnProperty('skipped')) { - obj['skipped'] = _ApiClient["default"].convertToType(data['skipped'], 'Number'); - } - - if (data.hasOwnProperty('total')) { - obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number'); - } - } - - return obj; - } - }]); - - return MigrationItems; -}(); -/** - * @member {Number} failed - */ - - -MigrationItems.prototype['failed'] = undefined; -/** - * @member {Number} migrated - */ - -MigrationItems.prototype['migrated'] = undefined; -/** - * @member {Number} skipped - */ - -MigrationItems.prototype['skipped'] = undefined; -/** - * @member {Number} total - */ - -MigrationItems.prototype['total'] = undefined; -var _default = MigrationItems; -exports["default"] = _default; - -/***/ }), - -/***/ 97664: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The MigrationStatus model module. - * @module model/MigrationStatus - * @version 3.3.16 - */ -var MigrationStatus = /*#__PURE__*/function () { - /** - * Constructs a new MigrationStatus. - * @alias module:model/MigrationStatus - */ - function MigrationStatus() { - _classCallCheck(this, MigrationStatus); - - MigrationStatus.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(MigrationStatus, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a MigrationStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MigrationStatus} obj Optional instance to populate. - * @return {module:model/MigrationStatus} The populated MigrationStatus instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MigrationStatus(); - - if (data.hasOwnProperty('last_messages')) { - obj['last_messages'] = _ApiClient["default"].convertToType(data['last_messages'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('last_reports')) { - obj['last_reports'] = _ApiClient["default"].convertToType(data['last_reports'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('last_statuses')) { - obj['last_statuses'] = _ApiClient["default"].convertToType(data['last_statuses'], { - 'String': 'String' - }); - } - } - - return obj; - } - }]); - - return MigrationStatus; -}(); -/** - * @member {Object.} last_messages - */ - - -MigrationStatus.prototype['last_messages'] = undefined; -/** - * @member {Object.} last_reports - */ - -MigrationStatus.prototype['last_reports'] = undefined; -/** - * @member {Object.} last_statuses - */ - -MigrationStatus.prototype['last_statuses'] = undefined; -var _default = MigrationStatus; -exports["default"] = _default; - -/***/ }), - -/***/ 95821: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _MigrationItems = _interopRequireDefault(__nccwpck_require__(84208)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The MigrationStatusReplyObj model module. - * @module model/MigrationStatusReplyObj - * @version 3.3.16 - */ -var MigrationStatusReplyObj = /*#__PURE__*/function () { - /** - * Constructs a new MigrationStatusReplyObj. - * @alias module:model/MigrationStatusReplyObj - */ - function MigrationStatusReplyObj() { - _classCallCheck(this, MigrationStatusReplyObj); - - MigrationStatusReplyObj.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(MigrationStatusReplyObj, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a MigrationStatusReplyObj from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MigrationStatusReplyObj} obj Optional instance to populate. - * @return {module:model/MigrationStatusReplyObj} The populated MigrationStatusReplyObj instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MigrationStatusReplyObj(); - - if (data.hasOwnProperty('duration_time')) { - obj['duration_time'] = _ApiClient["default"].convertToType(data['duration_time'], 'String'); - } - - if (data.hasOwnProperty('error')) { - obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String'); - } - - if (data.hasOwnProperty('last_status_message')) { - obj['last_status_message'] = _ApiClient["default"].convertToType(data['last_status_message'], 'String'); - } - - if (data.hasOwnProperty('max_name_length')) { - obj['max_name_length'] = _ApiClient["default"].convertToType(data['max_name_length'], 'Number'); - } - - if (data.hasOwnProperty('max_value_length')) { - obj['max_value_length'] = _ApiClient["default"].convertToType(data['max_value_length'], 'Number'); - } - - if (data.hasOwnProperty('migration_id')) { - obj['migration_id'] = _ApiClient["default"].convertToType(data['migration_id'], 'String'); - } - - if (data.hasOwnProperty('migration_items')) { - obj['migration_items'] = _MigrationItems["default"].constructFromObject(data['migration_items']); - } - - if (data.hasOwnProperty('migration_name')) { - obj['migration_name'] = _ApiClient["default"].convertToType(data['migration_name'], 'String'); - } - - if (data.hasOwnProperty('migration_state')) { - obj['migration_state'] = _ApiClient["default"].convertToType(data['migration_state'], 'String'); - } - - if (data.hasOwnProperty('migration_type')) { - obj['migration_type'] = _ApiClient["default"].convertToType(data['migration_type'], 'String'); - } - - if (data.hasOwnProperty('migration_type_name')) { - obj['migration_type_name'] = _ApiClient["default"].convertToType(data['migration_type_name'], 'String'); - } - - if (data.hasOwnProperty('rotated_secrets')) { - obj['rotated_secrets'] = _MigrationItems["default"].constructFromObject(data['rotated_secrets']); - } - - if (data.hasOwnProperty('start_time')) { - obj['start_time'] = _ApiClient["default"].convertToType(data['start_time'], 'String'); - } - - if (data.hasOwnProperty('targets')) { - obj['targets'] = _MigrationItems["default"].constructFromObject(data['targets']); - } - } - - return obj; - } - }]); - - return MigrationStatusReplyObj; -}(); -/** - * @member {String} duration_time - */ - - -MigrationStatusReplyObj.prototype['duration_time'] = undefined; -/** - * @member {String} error - */ - -MigrationStatusReplyObj.prototype['error'] = undefined; -/** - * @member {String} last_status_message - */ - -MigrationStatusReplyObj.prototype['last_status_message'] = undefined; -/** - * @member {Number} max_name_length - */ - -MigrationStatusReplyObj.prototype['max_name_length'] = undefined; -/** - * @member {Number} max_value_length - */ - -MigrationStatusReplyObj.prototype['max_value_length'] = undefined; -/** - * @member {String} migration_id - */ - -MigrationStatusReplyObj.prototype['migration_id'] = undefined; -/** - * @member {module:model/MigrationItems} migration_items - */ - -MigrationStatusReplyObj.prototype['migration_items'] = undefined; -/** - * @member {String} migration_name - */ - -MigrationStatusReplyObj.prototype['migration_name'] = undefined; -/** - * @member {String} migration_state - */ - -MigrationStatusReplyObj.prototype['migration_state'] = undefined; -/** - * @member {String} migration_type - */ - -MigrationStatusReplyObj.prototype['migration_type'] = undefined; -/** - * @member {String} migration_type_name - */ - -MigrationStatusReplyObj.prototype['migration_type_name'] = undefined; -/** - * @member {module:model/MigrationItems} rotated_secrets - */ - -MigrationStatusReplyObj.prototype['rotated_secrets'] = undefined; -/** - * @member {String} start_time - */ - -MigrationStatusReplyObj.prototype['start_time'] = undefined; -/** - * @member {module:model/MigrationItems} targets - */ - -MigrationStatusReplyObj.prototype['targets'] = undefined; -var _default = MigrationStatusReplyObj; -exports["default"] = _default; - -/***/ }), - -/***/ 66135: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The MigrationsConfigLastChange model module. - * @module model/MigrationsConfigLastChange - * @version 3.3.16 - */ -var MigrationsConfigLastChange = /*#__PURE__*/function () { - /** - * Constructs a new MigrationsConfigLastChange. - * @alias module:model/MigrationsConfigLastChange - */ - function MigrationsConfigLastChange() { - _classCallCheck(this, MigrationsConfigLastChange); - - MigrationsConfigLastChange.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(MigrationsConfigLastChange, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a MigrationsConfigLastChange from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MigrationsConfigLastChange} obj Optional instance to populate. - * @return {module:model/MigrationsConfigLastChange} The populated MigrationsConfigLastChange instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MigrationsConfigLastChange(); - - if (data.hasOwnProperty('changed_migrations')) { - obj['changed_migrations'] = _ApiClient["default"].convertToType(data['changed_migrations'], ['String']); - } - - if (data.hasOwnProperty('created_migrations')) { - obj['created_migrations'] = _ApiClient["default"].convertToType(data['created_migrations'], ['String']); - } - - if (data.hasOwnProperty('deleted_migrations')) { - obj['deleted_migrations'] = _ApiClient["default"].convertToType(data['deleted_migrations'], ['String']); - } - } - - return obj; - } - }]); - - return MigrationsConfigLastChange; -}(); -/** - * @member {Array.} changed_migrations - */ - - -MigrationsConfigLastChange.prototype['changed_migrations'] = undefined; -/** - * @member {Array.} created_migrations - */ - -MigrationsConfigLastChange.prototype['created_migrations'] = undefined; -/** - * @member {Array.} deleted_migrations - */ - -MigrationsConfigLastChange.prototype['deleted_migrations'] = undefined; -var _default = MigrationsConfigLastChange; -exports["default"] = _default; - -/***/ }), - -/***/ 27734: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _AWSSecretsMigration = _interopRequireDefault(__nccwpck_require__(10380)); - -var _ActiveDirectoryMigration = _interopRequireDefault(__nccwpck_require__(46703)); - -var _AzureKeyVaultMigration = _interopRequireDefault(__nccwpck_require__(15410)); - -var _GCPSecretsMigration = _interopRequireDefault(__nccwpck_require__(40859)); - -var _HashiMigration = _interopRequireDefault(__nccwpck_require__(16157)); - -var _K8SMigration = _interopRequireDefault(__nccwpck_require__(79488)); - -var _MockMigration = _interopRequireDefault(__nccwpck_require__(33516)); - -var _OnePasswordMigration = _interopRequireDefault(__nccwpck_require__(99171)); - -var _ServerInventoryMigration = _interopRequireDefault(__nccwpck_require__(75499)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The MigrationsConfigPart model module. - * @module model/MigrationsConfigPart - * @version 3.3.16 - */ -var MigrationsConfigPart = /*#__PURE__*/function () { - /** - * Constructs a new MigrationsConfigPart. - * @alias module:model/MigrationsConfigPart - */ - function MigrationsConfigPart() { - _classCallCheck(this, MigrationsConfigPart); - - MigrationsConfigPart.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(MigrationsConfigPart, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a MigrationsConfigPart from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MigrationsConfigPart} obj Optional instance to populate. - * @return {module:model/MigrationsConfigPart} The populated MigrationsConfigPart instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MigrationsConfigPart(); - - if (data.hasOwnProperty('active_directory_migrations')) { - obj['active_directory_migrations'] = _ApiClient["default"].convertToType(data['active_directory_migrations'], [_ActiveDirectoryMigration["default"]]); - } - - if (data.hasOwnProperty('aws_secrets_migrations')) { - obj['aws_secrets_migrations'] = _ApiClient["default"].convertToType(data['aws_secrets_migrations'], [_AWSSecretsMigration["default"]]); - } - - if (data.hasOwnProperty('azure_kv_migrations')) { - obj['azure_kv_migrations'] = _ApiClient["default"].convertToType(data['azure_kv_migrations'], [_AzureKeyVaultMigration["default"]]); - } - - if (data.hasOwnProperty('gcp_secrets_migrations')) { - obj['gcp_secrets_migrations'] = _ApiClient["default"].convertToType(data['gcp_secrets_migrations'], [_GCPSecretsMigration["default"]]); - } - - if (data.hasOwnProperty('hashi_migrations')) { - obj['hashi_migrations'] = _ApiClient["default"].convertToType(data['hashi_migrations'], [_HashiMigration["default"]]); - } - - if (data.hasOwnProperty('k8s_migrations')) { - obj['k8s_migrations'] = _ApiClient["default"].convertToType(data['k8s_migrations'], [_K8SMigration["default"]]); - } - - if (data.hasOwnProperty('mock_migrations')) { - obj['mock_migrations'] = _ApiClient["default"].convertToType(data['mock_migrations'], [_MockMigration["default"]]); - } - - if (data.hasOwnProperty('one_password_migrations')) { - obj['one_password_migrations'] = _ApiClient["default"].convertToType(data['one_password_migrations'], [_OnePasswordMigration["default"]]); - } - - if (data.hasOwnProperty('server_inventory_migrations')) { - obj['server_inventory_migrations'] = _ApiClient["default"].convertToType(data['server_inventory_migrations'], [_ServerInventoryMigration["default"]]); - } - } - - return obj; - } - }]); - - return MigrationsConfigPart; -}(); -/** - * @member {Array.} active_directory_migrations - */ - - -MigrationsConfigPart.prototype['active_directory_migrations'] = undefined; -/** - * @member {Array.} aws_secrets_migrations - */ - -MigrationsConfigPart.prototype['aws_secrets_migrations'] = undefined; -/** - * @member {Array.} azure_kv_migrations - */ - -MigrationsConfigPart.prototype['azure_kv_migrations'] = undefined; -/** - * @member {Array.} gcp_secrets_migrations - */ - -MigrationsConfigPart.prototype['gcp_secrets_migrations'] = undefined; -/** - * @member {Array.} hashi_migrations - */ - -MigrationsConfigPart.prototype['hashi_migrations'] = undefined; -/** - * @member {Array.} k8s_migrations - */ - -MigrationsConfigPart.prototype['k8s_migrations'] = undefined; -/** - * @member {Array.} mock_migrations - */ - -MigrationsConfigPart.prototype['mock_migrations'] = undefined; -/** - * @member {Array.} one_password_migrations - */ - -MigrationsConfigPart.prototype['one_password_migrations'] = undefined; -/** - * @member {Array.} server_inventory_migrations - */ - -MigrationsConfigPart.prototype['server_inventory_migrations'] = undefined; -var _default = MigrationsConfigPart; -exports["default"] = _default; - -/***/ }), - -/***/ 33516: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); - -var _MockPayload = _interopRequireDefault(__nccwpck_require__(47698)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The MockMigration model module. - * @module model/MockMigration - * @version 3.3.16 - */ -var MockMigration = /*#__PURE__*/function () { - /** - * Constructs a new MockMigration. - * @alias module:model/MockMigration - */ - function MockMigration() { - _classCallCheck(this, MockMigration); - - MockMigration.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(MockMigration, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a MockMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MockMigration} obj Optional instance to populate. - * @return {module:model/MockMigration} The populated MockMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MockMigration(); - - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); - } - - if (data.hasOwnProperty('payload')) { - obj['payload'] = _MockPayload["default"].constructFromObject(data['payload']); - } - } - - return obj; - } - }]); - - return MockMigration; -}(); -/** - * @member {module:model/MigrationGeneral} general - */ - - -MockMigration.prototype['general'] = undefined; -/** - * @member {module:model/MockPayload} payload - */ - -MockMigration.prototype['payload'] = undefined; -var _default = MockMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 47698: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The MockPayload model module. - * @module model/MockPayload - * @version 3.3.16 - */ -var MockPayload = /*#__PURE__*/function () { - /** - * Constructs a new MockPayload. - * @alias module:model/MockPayload - */ - function MockPayload() { - _classCallCheck(this, MockPayload); - - MockPayload.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(MockPayload, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a MockPayload from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MockPayload} obj Optional instance to populate. - * @return {module:model/MockPayload} The populated MockPayload instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MockPayload(); - - if (data.hasOwnProperty('vaults')) { - obj['vaults'] = _ApiClient["default"].convertToType(data['vaults'], ['String']); - } - } - - return obj; - } - }]); - - return MockPayload; -}(); -/** - * @member {Array.} vaults - */ - - -MockPayload.prototype['vaults'] = undefined; -var _default = MockPayload; -exports["default"] = _default; - -/***/ }), - -/***/ 57731: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The MongoDBTargetDetails model module. - * @module model/MongoDBTargetDetails - * @version 3.3.16 - */ -var MongoDBTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new MongoDBTargetDetails. - * @alias module:model/MongoDBTargetDetails - */ - function MongoDBTargetDetails() { - _classCallCheck(this, MongoDBTargetDetails); - - MongoDBTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(MongoDBTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a MongoDBTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MongoDBTargetDetails} obj Optional instance to populate. - * @return {module:model/MongoDBTargetDetails} The populated MongoDBTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MongoDBTargetDetails(); - - if (data.hasOwnProperty('mongodb_atlas_api_private_key')) { - obj['mongodb_atlas_api_private_key'] = _ApiClient["default"].convertToType(data['mongodb_atlas_api_private_key'], 'String'); - } - - if (data.hasOwnProperty('mongodb_atlas_api_public_key')) { - obj['mongodb_atlas_api_public_key'] = _ApiClient["default"].convertToType(data['mongodb_atlas_api_public_key'], 'String'); - } - - if (data.hasOwnProperty('mongodb_atlas_project_id')) { - obj['mongodb_atlas_project_id'] = _ApiClient["default"].convertToType(data['mongodb_atlas_project_id'], 'String'); - } - - if (data.hasOwnProperty('mongodb_db_name')) { - obj['mongodb_db_name'] = _ApiClient["default"].convertToType(data['mongodb_db_name'], 'String'); - } - - if (data.hasOwnProperty('mongodb_default_auth_db')) { - obj['mongodb_default_auth_db'] = _ApiClient["default"].convertToType(data['mongodb_default_auth_db'], 'String'); - } - - if (data.hasOwnProperty('mongodb_host_port')) { - obj['mongodb_host_port'] = _ApiClient["default"].convertToType(data['mongodb_host_port'], 'String'); - } - - if (data.hasOwnProperty('mongodb_is_atlas')) { - obj['mongodb_is_atlas'] = _ApiClient["default"].convertToType(data['mongodb_is_atlas'], 'Boolean'); - } - - if (data.hasOwnProperty('mongodb_password')) { - obj['mongodb_password'] = _ApiClient["default"].convertToType(data['mongodb_password'], 'String'); - } - - if (data.hasOwnProperty('mongodb_uri_connection')) { - obj['mongodb_uri_connection'] = _ApiClient["default"].convertToType(data['mongodb_uri_connection'], 'String'); - } - - if (data.hasOwnProperty('mongodb_uri_options')) { - obj['mongodb_uri_options'] = _ApiClient["default"].convertToType(data['mongodb_uri_options'], 'String'); - } - - if (data.hasOwnProperty('mongodb_username')) { - obj['mongodb_username'] = _ApiClient["default"].convertToType(data['mongodb_username'], 'String'); - } - } - - return obj; - } - }]); - - return MongoDBTargetDetails; -}(); -/** - * @member {String} mongodb_atlas_api_private_key - */ - - -MongoDBTargetDetails.prototype['mongodb_atlas_api_private_key'] = undefined; -/** - * @member {String} mongodb_atlas_api_public_key - */ - -MongoDBTargetDetails.prototype['mongodb_atlas_api_public_key'] = undefined; -/** - * mongodb atlas fields - * @member {String} mongodb_atlas_project_id - */ - -MongoDBTargetDetails.prototype['mongodb_atlas_project_id'] = undefined; -/** - * common fields - * @member {String} mongodb_db_name - */ - -MongoDBTargetDetails.prototype['mongodb_db_name'] = undefined; -/** - * @member {String} mongodb_default_auth_db - */ - -MongoDBTargetDetails.prototype['mongodb_default_auth_db'] = undefined; -/** - * @member {String} mongodb_host_port - */ - -MongoDBTargetDetails.prototype['mongodb_host_port'] = undefined; -/** - * @member {Boolean} mongodb_is_atlas - */ - -MongoDBTargetDetails.prototype['mongodb_is_atlas'] = undefined; -/** - * @member {String} mongodb_password - */ - -MongoDBTargetDetails.prototype['mongodb_password'] = undefined; -/** - * mongodb fields - * @member {String} mongodb_uri_connection - */ - -MongoDBTargetDetails.prototype['mongodb_uri_connection'] = undefined; -/** - * @member {String} mongodb_uri_options - */ - -MongoDBTargetDetails.prototype['mongodb_uri_options'] = undefined; -/** - * @member {String} mongodb_username - */ - -MongoDBTargetDetails.prototype['mongodb_username'] = undefined; -var _default = MongoDBTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 3781: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The MoveObjects model module. - * @module model/MoveObjects - * @version 3.3.16 - */ -var MoveObjects = /*#__PURE__*/function () { - /** - * Constructs a new MoveObjects. - * @alias module:model/MoveObjects - * @param source {String} Source path to move the objects from - * @param target {String} Target path to move the objects to - */ - function MoveObjects(source, target) { - _classCallCheck(this, MoveObjects); - - MoveObjects.initialize(this, source, target); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(MoveObjects, null, [{ - key: "initialize", - value: function initialize(obj, source, target) { - obj['source'] = source; - obj['target'] = target; - } - /** - * Constructs a MoveObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MoveObjects} obj Optional instance to populate. - * @return {module:model/MoveObjects} The populated MoveObjects instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MoveObjects(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('objects-type')) { - obj['objects-type'] = _ApiClient["default"].convertToType(data['objects-type'], 'String'); - } - - if (data.hasOwnProperty('source')) { - obj['source'] = _ApiClient["default"].convertToType(data['source'], 'String'); - } - - if (data.hasOwnProperty('target')) { - obj['target'] = _ApiClient["default"].convertToType(data['target'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return MoveObjects; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -MoveObjects.prototype['json'] = false; -/** - * The objects type to move (item/auth_method/role) - * @member {String} objects-type - * @default 'item' - */ - -MoveObjects.prototype['objects-type'] = 'item'; -/** - * Source path to move the objects from - * @member {String} source - */ - -MoveObjects.prototype['source'] = undefined; -/** - * Target path to move the objects to - * @member {String} target - */ - -MoveObjects.prototype['target'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -MoveObjects.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -MoveObjects.prototype['uid-token'] = undefined; -var _default = MoveObjects; -exports["default"] = _default; - -/***/ }), - -/***/ 65739: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _AttributeTypeAndValue = _interopRequireDefault(__nccwpck_require__(90188)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Name model module. - * @module model/Name - * @version 3.3.16 - */ -var Name = /*#__PURE__*/function () { - /** - * Constructs a new Name. - * Name represents an X.509 distinguished name. This only includes the common elements of a DN. Note that Name is only an approximation of the X.509 structure. If an accurate representation is needed, asn1.Unmarshal the raw subject or issuer as an RDNSequence. - * @alias module:model/Name - */ - function Name() { - _classCallCheck(this, Name); - - Name.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Name, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a Name from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Name} obj Optional instance to populate. - * @return {module:model/Name} The populated Name instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Name(); - - if (data.hasOwnProperty('Country')) { - obj['Country'] = _ApiClient["default"].convertToType(data['Country'], ['String']); - } - - if (data.hasOwnProperty('ExtraNames')) { - obj['ExtraNames'] = _ApiClient["default"].convertToType(data['ExtraNames'], [_AttributeTypeAndValue["default"]]); - } - - if (data.hasOwnProperty('Locality')) { - obj['Locality'] = _ApiClient["default"].convertToType(data['Locality'], ['String']); - } - - if (data.hasOwnProperty('Names')) { - obj['Names'] = _ApiClient["default"].convertToType(data['Names'], [_AttributeTypeAndValue["default"]]); - } - - if (data.hasOwnProperty('SerialNumber')) { - obj['SerialNumber'] = _ApiClient["default"].convertToType(data['SerialNumber'], 'String'); - } - - if (data.hasOwnProperty('StreetAddress')) { - obj['StreetAddress'] = _ApiClient["default"].convertToType(data['StreetAddress'], ['String']); - } - } - - return obj; - } - }]); - - return Name; -}(); -/** - * @member {Array.} Country - */ - - -Name.prototype['Country'] = undefined; -/** - * ExtraNames contains attributes to be copied, raw, into any marshaled distinguished names. Values override any attributes with the same OID. The ExtraNames field is not populated when parsing, see Names. - * @member {Array.} ExtraNames - */ - -Name.prototype['ExtraNames'] = undefined; -/** - * @member {Array.} Locality - */ - -Name.prototype['Locality'] = undefined; -/** - * Names contains all parsed attributes. When parsing distinguished names, this can be used to extract non-standard attributes that are not parsed by this package. When marshaling to RDNSequences, the Names field is ignored, see ExtraNames. - * @member {Array.} Names - */ - -Name.prototype['Names'] = undefined; -/** - * @member {String} SerialNumber - */ - -Name.prototype['SerialNumber'] = undefined; -/** - * @member {Array.} StreetAddress - */ - -Name.prototype['StreetAddress'] = undefined; -var _default = Name; -exports["default"] = _default; - -/***/ }), - -/***/ 80406: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The NativeK8sTargetDetails model module. - * @module model/NativeK8sTargetDetails - * @version 3.3.16 - */ -var NativeK8sTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new NativeK8sTargetDetails. - * @alias module:model/NativeK8sTargetDetails - */ - function NativeK8sTargetDetails() { - _classCallCheck(this, NativeK8sTargetDetails); - - NativeK8sTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(NativeK8sTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a NativeK8sTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NativeK8sTargetDetails} obj Optional instance to populate. - * @return {module:model/NativeK8sTargetDetails} The populated NativeK8sTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new NativeK8sTargetDetails(); - - if (data.hasOwnProperty('k8s_bearer_token')) { - obj['k8s_bearer_token'] = _ApiClient["default"].convertToType(data['k8s_bearer_token'], 'String'); - } - - if (data.hasOwnProperty('k8s_cluster_ca_certificate')) { - obj['k8s_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['k8s_cluster_ca_certificate'], 'String'); - } - - if (data.hasOwnProperty('k8s_cluster_endpoint')) { - obj['k8s_cluster_endpoint'] = _ApiClient["default"].convertToType(data['k8s_cluster_endpoint'], 'String'); - } - - if (data.hasOwnProperty('use_gw_service_account')) { - obj['use_gw_service_account'] = _ApiClient["default"].convertToType(data['use_gw_service_account'], 'Boolean'); - } - } - - return obj; - } - }]); - - return NativeK8sTargetDetails; -}(); -/** - * @member {String} k8s_bearer_token - */ - - -NativeK8sTargetDetails.prototype['k8s_bearer_token'] = undefined; -/** - * @member {String} k8s_cluster_ca_certificate - */ - -NativeK8sTargetDetails.prototype['k8s_cluster_ca_certificate'] = undefined; -/** - * @member {String} k8s_cluster_endpoint - */ - -NativeK8sTargetDetails.prototype['k8s_cluster_endpoint'] = undefined; -/** - * @member {Boolean} use_gw_service_account - */ - -NativeK8sTargetDetails.prototype['use_gw_service_account'] = undefined; -var _default = NativeK8sTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 21724: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _EmailEntry = _interopRequireDefault(__nccwpck_require__(30864)); - -var _ItemVersion = _interopRequireDefault(__nccwpck_require__(71931)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The NotiForwarder model module. - * @module model/NotiForwarder - * @version 3.3.16 - */ -var NotiForwarder = /*#__PURE__*/function () { - /** - * Constructs a new NotiForwarder. - * @alias module:model/NotiForwarder - */ - function NotiForwarder() { - _classCallCheck(this, NotiForwarder); - - NotiForwarder.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(NotiForwarder, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a NotiForwarder from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NotiForwarder} obj Optional instance to populate. - * @return {module:model/NotiForwarder} The populated NotiForwarder instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new NotiForwarder(); - - if (data.hasOwnProperty('client_permissions')) { - obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); - } - - if (data.hasOwnProperty('endpoint')) { - obj['endpoint'] = _ApiClient["default"].convertToType(data['endpoint'], 'String'); - } - - if (data.hasOwnProperty('event_types')) { - obj['event_types'] = _ApiClient["default"].convertToType(data['event_types'], ['String']); - } - - if (data.hasOwnProperty('gateway_cluster_id')) { - obj['gateway_cluster_id'] = _ApiClient["default"].convertToType(data['gateway_cluster_id'], 'Number'); - } - - if (data.hasOwnProperty('is_enabled')) { - obj['is_enabled'] = _ApiClient["default"].convertToType(data['is_enabled'], 'Boolean'); - } - - if (data.hasOwnProperty('last_version')) { - obj['last_version'] = _ApiClient["default"].convertToType(data['last_version'], 'Number'); - } - - if (data.hasOwnProperty('modification_date')) { - obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); - } - - if (data.hasOwnProperty('noti_forwarder_id')) { - obj['noti_forwarder_id'] = _ApiClient["default"].convertToType(data['noti_forwarder_id'], 'Number'); - } - - if (data.hasOwnProperty('noti_forwarder_name')) { - obj['noti_forwarder_name'] = _ApiClient["default"].convertToType(data['noti_forwarder_name'], 'String'); - } - - if (data.hasOwnProperty('noti_forwarder_type')) { - obj['noti_forwarder_type'] = _ApiClient["default"].convertToType(data['noti_forwarder_type'], 'String'); - } - - if (data.hasOwnProperty('noti_forwarder_versions')) { - obj['noti_forwarder_versions'] = _ApiClient["default"].convertToType(data['noti_forwarder_versions'], [_ItemVersion["default"]]); - } - - if (data.hasOwnProperty('paths')) { - obj['paths'] = _ApiClient["default"].convertToType(data['paths'], ['String']); - } - - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); - } - - if (data.hasOwnProperty('runner_type')) { - obj['runner_type'] = _ApiClient["default"].convertToType(data['runner_type'], 'String'); - } - - if (data.hasOwnProperty('timespan_in_seconds')) { - obj['timespan_in_seconds'] = _ApiClient["default"].convertToType(data['timespan_in_seconds'], 'Number'); - } - - if (data.hasOwnProperty('to_emails')) { - obj['to_emails'] = _ApiClient["default"].convertToType(data['to_emails'], [_EmailEntry["default"]]); - } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } - - if (data.hasOwnProperty('with_customer_fragment')) { - obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); - } - } - - return obj; - } - }]); - - return NotiForwarder; -}(); -/** - * @member {Array.} client_permissions - */ - - -NotiForwarder.prototype['client_permissions'] = undefined; -/** - * @member {String} comment - */ - -NotiForwarder.prototype['comment'] = undefined; -/** - * @member {Date} creation_date - */ - -NotiForwarder.prototype['creation_date'] = undefined; -/** - * @member {String} endpoint - */ - -NotiForwarder.prototype['endpoint'] = undefined; -/** - * @member {Array.} event_types - */ - -NotiForwarder.prototype['event_types'] = undefined; -/** - * @member {Number} gateway_cluster_id - */ - -NotiForwarder.prototype['gateway_cluster_id'] = undefined; -/** - * @member {Boolean} is_enabled - */ - -NotiForwarder.prototype['is_enabled'] = undefined; -/** - * @member {Number} last_version - */ - -NotiForwarder.prototype['last_version'] = undefined; -/** - * @member {Date} modification_date - */ - -NotiForwarder.prototype['modification_date'] = undefined; -/** - * @member {Number} noti_forwarder_id - */ - -NotiForwarder.prototype['noti_forwarder_id'] = undefined; -/** - * @member {String} noti_forwarder_name - */ - -NotiForwarder.prototype['noti_forwarder_name'] = undefined; -/** - * @member {String} noti_forwarder_type - */ - -NotiForwarder.prototype['noti_forwarder_type'] = undefined; -/** - * @member {Array.} noti_forwarder_versions - */ - -NotiForwarder.prototype['noti_forwarder_versions'] = undefined; -/** - * @member {Array.} paths - */ - -NotiForwarder.prototype['paths'] = undefined; -/** - * @member {String} protection_key - */ - -NotiForwarder.prototype['protection_key'] = undefined; -/** - * @member {String} runner_type - */ - -NotiForwarder.prototype['runner_type'] = undefined; -/** - * @member {Number} timespan_in_seconds - */ - -NotiForwarder.prototype['timespan_in_seconds'] = undefined; -/** - * @member {Array.} to_emails - */ - -NotiForwarder.prototype['to_emails'] = undefined; -/** - * @member {String} username - */ - -NotiForwarder.prototype['username'] = undefined; -/** - * @member {Boolean} with_customer_fragment - */ - -NotiForwarder.prototype['with_customer_fragment'] = undefined; -var _default = NotiForwarder; -exports["default"] = _default; - -/***/ }), - -/***/ 63338: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _OAuth2CustomClaim = _interopRequireDefault(__nccwpck_require__(41338)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The OAuth2AccessRules model module. - * @module model/OAuth2AccessRules - * @version 3.3.16 - */ -var OAuth2AccessRules = /*#__PURE__*/function () { - /** - * Constructs a new OAuth2AccessRules. - * OAuth2AccessRules contains access rules specific to OAuth2 authentication method. - * @alias module:model/OAuth2AccessRules - */ - function OAuth2AccessRules() { - _classCallCheck(this, OAuth2AccessRules); - - OAuth2AccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(OAuth2AccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a OAuth2AccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OAuth2AccessRules} obj Optional instance to populate. - * @return {module:model/OAuth2AccessRules} The populated OAuth2AccessRules instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OAuth2AccessRules(); - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); - } - - if (data.hasOwnProperty('bound_claims')) { - obj['bound_claims'] = _ApiClient["default"].convertToType(data['bound_claims'], [_OAuth2CustomClaim["default"]]); - } - - if (data.hasOwnProperty('bound_clients_id')) { - obj['bound_clients_id'] = _ApiClient["default"].convertToType(data['bound_clients_id'], ['String']); - } - - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); - } - - if (data.hasOwnProperty('jwks_json_data')) { - obj['jwks_json_data'] = _ApiClient["default"].convertToType(data['jwks_json_data'], 'String'); - } - - if (data.hasOwnProperty('jwks_uri')) { - obj['jwks_uri'] = _ApiClient["default"].convertToType(data['jwks_uri'], 'String'); - } - - if (data.hasOwnProperty('unique_identifier')) { - obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); - } - } - - return obj; - } - }]); - - return OAuth2AccessRules; -}(); -/** - * The audience in the JWT. - * @member {String} audience - */ - - -OAuth2AccessRules.prototype['audience'] = undefined; -/** - * The claims that login is restricted to. - * @member {Array.} bound_claims - */ - -OAuth2AccessRules.prototype['bound_claims'] = undefined; -/** - * The clients ids that login is restricted to. - * @member {Array.} bound_clients_id - */ - -OAuth2AccessRules.prototype['bound_clients_id'] = undefined; -/** - * Issuer URL - * @member {String} issuer - */ - -OAuth2AccessRules.prototype['issuer'] = undefined; -/** - * The JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. base64 encoded string - * @member {String} jwks_json_data - */ - -OAuth2AccessRules.prototype['jwks_json_data'] = undefined; -/** - * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. - * @member {String} jwks_uri - */ - -OAuth2AccessRules.prototype['jwks_uri'] = undefined; -/** - * A unique identifier to distinguish different users - * @member {String} unique_identifier - */ - -OAuth2AccessRules.prototype['unique_identifier'] = undefined; -var _default = OAuth2AccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 41338: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The OAuth2CustomClaim model module. - * @module model/OAuth2CustomClaim - * @version 3.3.16 - */ -var OAuth2CustomClaim = /*#__PURE__*/function () { - /** - * Constructs a new OAuth2CustomClaim. - * OAuth2CustomClaim is a custom claim specific to OAuth2 authentication method. - * @alias module:model/OAuth2CustomClaim - */ - function OAuth2CustomClaim() { - _classCallCheck(this, OAuth2CustomClaim); - - OAuth2CustomClaim.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(OAuth2CustomClaim, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a OAuth2CustomClaim from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OAuth2CustomClaim} obj Optional instance to populate. - * @return {module:model/OAuth2CustomClaim} The populated OAuth2CustomClaim instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OAuth2CustomClaim(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('values')) { - obj['values'] = _ApiClient["default"].convertToType(data['values'], ['String']); - } - } - - return obj; - } - }]); - - return OAuth2CustomClaim; -}(); -/** - * @member {String} name - */ - - -OAuth2CustomClaim.prototype['name'] = undefined; -/** - * @member {Array.} values - */ - -OAuth2CustomClaim.prototype['values'] = undefined; -var _default = OAuth2CustomClaim; -exports["default"] = _default; - -/***/ }), - -/***/ 53344: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _OIDCCustomClaim = _interopRequireDefault(__nccwpck_require__(87440)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The OIDCAccessRules model module. - * @module model/OIDCAccessRules - * @version 3.3.16 - */ -var OIDCAccessRules = /*#__PURE__*/function () { - /** - * Constructs a new OIDCAccessRules. - * OIDCAccessRules contains access rules specific to Open Id Connect authentication method. - * @alias module:model/OIDCAccessRules - */ - function OIDCAccessRules() { - _classCallCheck(this, OIDCAccessRules); - - OIDCAccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(OIDCAccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a OIDCAccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OIDCAccessRules} obj Optional instance to populate. - * @return {module:model/OIDCAccessRules} The populated OIDCAccessRules instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OIDCAccessRules(); - - if (data.hasOwnProperty('allowed_redirect_URIs')) { - obj['allowed_redirect_URIs'] = _ApiClient["default"].convertToType(data['allowed_redirect_URIs'], ['String']); - } - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); - } - - if (data.hasOwnProperty('bound_claims')) { - obj['bound_claims'] = _ApiClient["default"].convertToType(data['bound_claims'], [_OIDCCustomClaim["default"]]); - } - - if (data.hasOwnProperty('client_id')) { - obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String'); - } - - if (data.hasOwnProperty('client_secret')) { - obj['client_secret'] = _ApiClient["default"].convertToType(data['client_secret'], 'String'); - } - - if (data.hasOwnProperty('is_internal')) { - obj['is_internal'] = _ApiClient["default"].convertToType(data['is_internal'], 'Boolean'); - } - - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); - } - - if (data.hasOwnProperty('required_scopes')) { - obj['required_scopes'] = _ApiClient["default"].convertToType(data['required_scopes'], ['String']); - } - - if (data.hasOwnProperty('required_scopes_prefix')) { - obj['required_scopes_prefix'] = _ApiClient["default"].convertToType(data['required_scopes_prefix'], 'String'); - } - - if (data.hasOwnProperty('unique_identifier')) { - obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); - } - } - - return obj; - } - }]); - - return OIDCAccessRules; -}(); -/** - * Allowed redirect URIs after the authentication - * @member {Array.} allowed_redirect_URIs - */ - - -OIDCAccessRules.prototype['allowed_redirect_URIs'] = undefined; -/** - * Audience claim to be used as part of the authentication flow. In case set, it must match the one configured on the Identity Provider's Application - * @member {String} audience - */ - -OIDCAccessRules.prototype['audience'] = undefined; -/** - * The claims that login is restricted to. - * @member {Array.} bound_claims - */ - -OIDCAccessRules.prototype['bound_claims'] = undefined; -/** - * Client ID - * @member {String} client_id - */ - -OIDCAccessRules.prototype['client_id'] = undefined; -/** - * Client Secret - * @member {String} client_secret - */ - -OIDCAccessRules.prototype['client_secret'] = undefined; -/** - * IsInternal indicates whether this is an internal Auth Method where the client has no control over it, or it was created by the client e.g - Sign In with Google will create an OIDC Auth Method with IsInternal=true - * @member {Boolean} is_internal - */ - -OIDCAccessRules.prototype['is_internal'] = undefined; -/** - * Issuer URL - * @member {String} issuer - */ - -OIDCAccessRules.prototype['issuer'] = undefined; -/** - * A list of required scopes to request from the oidc provider, and to check on the token - * @member {Array.} required_scopes - */ - -OIDCAccessRules.prototype['required_scopes'] = undefined; -/** - * A prefix to add to the required scopes (for example, azures' Application ID URI) - * @member {String} required_scopes_prefix - */ - -OIDCAccessRules.prototype['required_scopes_prefix'] = undefined; -/** - * A unique identifier to distinguish different users - * @member {String} unique_identifier - */ - -OIDCAccessRules.prototype['unique_identifier'] = undefined; -var _default = OIDCAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 87440: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The OIDCCustomClaim model module. - * @module model/OIDCCustomClaim - * @version 3.3.16 - */ -var OIDCCustomClaim = /*#__PURE__*/function () { - /** - * Constructs a new OIDCCustomClaim. - * OIDCCustomClaim is a custom claim specific to OIDC authentication method. - * @alias module:model/OIDCCustomClaim - */ - function OIDCCustomClaim() { - _classCallCheck(this, OIDCCustomClaim); - - OIDCCustomClaim.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(OIDCCustomClaim, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a OIDCCustomClaim from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OIDCCustomClaim} obj Optional instance to populate. - * @return {module:model/OIDCCustomClaim} The populated OIDCCustomClaim instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OIDCCustomClaim(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('values')) { - obj['values'] = _ApiClient["default"].convertToType(data['values'], ['String']); - } - } - - return obj; - } - }]); - - return OIDCCustomClaim; -}(); -/** - * @member {String} name - */ - - -OIDCCustomClaim.prototype['name'] = undefined; -/** - * @member {Array.} values - */ - -OIDCCustomClaim.prototype['values'] = undefined; -var _default = OIDCCustomClaim; -exports["default"] = _default; - -/***/ }), - -/***/ 82163: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ObjectVersionSettingsOutput model module. - * @module model/ObjectVersionSettingsOutput - * @version 3.3.16 - */ -var ObjectVersionSettingsOutput = /*#__PURE__*/function () { - /** - * Constructs a new ObjectVersionSettingsOutput. - * @alias module:model/ObjectVersionSettingsOutput - */ - function ObjectVersionSettingsOutput() { - _classCallCheck(this, ObjectVersionSettingsOutput); - - ObjectVersionSettingsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ObjectVersionSettingsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ObjectVersionSettingsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ObjectVersionSettingsOutput} obj Optional instance to populate. - * @return {module:model/ObjectVersionSettingsOutput} The populated ObjectVersionSettingsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ObjectVersionSettingsOutput(); - - if (data.hasOwnProperty('item-type')) { - obj['item-type'] = _ApiClient["default"].convertToType(data['item-type'], 'String'); - } - - if (data.hasOwnProperty('max-versions')) { - obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); - } - } - - return obj; - } - }]); - - return ObjectVersionSettingsOutput; -}(); -/** - * VersionSettingsObjectType defines object types for account version settings - * @member {String} item-type - */ - - -ObjectVersionSettingsOutput.prototype['item-type'] = undefined; -/** - * @member {String} max-versions - */ - -ObjectVersionSettingsOutput.prototype['max-versions'] = undefined; -var _default = ObjectVersionSettingsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 2338: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _AccessPermissionAssignment = _interopRequireDefault(__nccwpck_require__(95036)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The OidcClientInfo model module. - * @module model/OidcClientInfo - * @version 3.3.16 - */ -var OidcClientInfo = /*#__PURE__*/function () { - /** - * Constructs a new OidcClientInfo. - * @alias module:model/OidcClientInfo - */ - function OidcClientInfo() { - _classCallCheck(this, OidcClientInfo); - - OidcClientInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(OidcClientInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a OidcClientInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OidcClientInfo} obj Optional instance to populate. - * @return {module:model/OidcClientInfo} The populated OidcClientInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OidcClientInfo(); - - if (data.hasOwnProperty('access_permission_assignment')) { - obj['access_permission_assignment'] = _ApiClient["default"].convertToType(data['access_permission_assignment'], [_AccessPermissionAssignment["default"]]); - } - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], ['String']); - } - - if (data.hasOwnProperty('client_id')) { - obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String'); - } - - if (data.hasOwnProperty('grant_types')) { - obj['grant_types'] = _ApiClient["default"].convertToType(data['grant_types'], ['String']); - } - - if (data.hasOwnProperty('logout_uris')) { - obj['logout_uris'] = _ApiClient["default"].convertToType(data['logout_uris'], ['String']); - } - - if (data.hasOwnProperty('public')) { - obj['public'] = _ApiClient["default"].convertToType(data['public'], 'Boolean'); - } - - if (data.hasOwnProperty('redirect_uris')) { - obj['redirect_uris'] = _ApiClient["default"].convertToType(data['redirect_uris'], ['String']); - } - - if (data.hasOwnProperty('response_types')) { - obj['response_types'] = _ApiClient["default"].convertToType(data['response_types'], ['String']); - } - - if (data.hasOwnProperty('scopes')) { - obj['scopes'] = _ApiClient["default"].convertToType(data['scopes'], ['String']); - } - } - - return obj; - } - }]); - - return OidcClientInfo; -}(); -/** - * @member {Array.} access_permission_assignment - */ - - -OidcClientInfo.prototype['access_permission_assignment'] = undefined; -/** - * @member {Array.} audience - */ - -OidcClientInfo.prototype['audience'] = undefined; -/** - * @member {String} client_id - */ - -OidcClientInfo.prototype['client_id'] = undefined; -/** - * @member {Array.} grant_types - */ - -OidcClientInfo.prototype['grant_types'] = undefined; -/** - * @member {Array.} logout_uris - */ - -OidcClientInfo.prototype['logout_uris'] = undefined; -/** - * @member {Boolean} public - */ - -OidcClientInfo.prototype['public'] = undefined; -/** - * @member {Array.} redirect_uris - */ - -OidcClientInfo.prototype['redirect_uris'] = undefined; -/** - * @member {Array.} response_types - */ - -OidcClientInfo.prototype['response_types'] = undefined; -/** - * @member {Array.} scopes - */ - -OidcClientInfo.prototype['scopes'] = undefined; -var _default = OidcClientInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 99171: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); - -var _OnePasswordPayload = _interopRequireDefault(__nccwpck_require__(75617)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The OnePasswordMigration model module. - * @module model/OnePasswordMigration - * @version 3.3.16 - */ -var OnePasswordMigration = /*#__PURE__*/function () { - /** - * Constructs a new OnePasswordMigration. - * @alias module:model/OnePasswordMigration - */ - function OnePasswordMigration() { - _classCallCheck(this, OnePasswordMigration); - - OnePasswordMigration.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(OnePasswordMigration, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a OnePasswordMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OnePasswordMigration} obj Optional instance to populate. - * @return {module:model/OnePasswordMigration} The populated OnePasswordMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OnePasswordMigration(); - - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); - } - - if (data.hasOwnProperty('payload')) { - obj['payload'] = _OnePasswordPayload["default"].constructFromObject(data['payload']); - } - } - - return obj; - } - }]); - - return OnePasswordMigration; -}(); -/** - * @member {module:model/MigrationGeneral} general - */ - - -OnePasswordMigration.prototype['general'] = undefined; -/** - * @member {module:model/OnePasswordPayload} payload - */ - -OnePasswordMigration.prototype['payload'] = undefined; -var _default = OnePasswordMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 75617: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The OnePasswordPayload model module. - * @module model/OnePasswordPayload - * @version 3.3.16 - */ -var OnePasswordPayload = /*#__PURE__*/function () { - /** - * Constructs a new OnePasswordPayload. - * @alias module:model/OnePasswordPayload - */ - function OnePasswordPayload() { - _classCallCheck(this, OnePasswordPayload); - - OnePasswordPayload.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(OnePasswordPayload, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a OnePasswordPayload from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OnePasswordPayload} obj Optional instance to populate. - * @return {module:model/OnePasswordPayload} The populated OnePasswordPayload instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OnePasswordPayload(); - - if (data.hasOwnProperty('email')) { - obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('secret_key')) { - obj['secret_key'] = _ApiClient["default"].convertToType(data['secret_key'], 'String'); - } - - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - - if (data.hasOwnProperty('vaults')) { - obj['vaults'] = _ApiClient["default"].convertToType(data['vaults'], ['String']); - } - } - - return obj; - } - }]); - - return OnePasswordPayload; -}(); -/** - * @member {String} email - */ - - -OnePasswordPayload.prototype['email'] = undefined; -/** - * @member {String} password - */ - -OnePasswordPayload.prototype['password'] = undefined; -/** - * @member {String} secret_key - */ - -OnePasswordPayload.prototype['secret_key'] = undefined; -/** - * @member {String} url - */ - -OnePasswordPayload.prototype['url'] = undefined; -/** - * @member {Array.} vaults - */ - -OnePasswordPayload.prototype['vaults'] = undefined; -var _default = OnePasswordPayload; -exports["default"] = _default; - -/***/ }), - -/***/ 16540: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _CertificateExpirationEvent = _interopRequireDefault(__nccwpck_require__(61726)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The PKICertificateIssueDetails model module. - * @module model/PKICertificateIssueDetails - * @version 3.3.16 - */ -var PKICertificateIssueDetails = /*#__PURE__*/function () { - /** - * Constructs a new PKICertificateIssueDetails. - * @alias module:model/PKICertificateIssueDetails - */ - function PKICertificateIssueDetails() { - _classCallCheck(this, PKICertificateIssueDetails); - - PKICertificateIssueDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(PKICertificateIssueDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a PKICertificateIssueDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PKICertificateIssueDetails} obj Optional instance to populate. - * @return {module:model/PKICertificateIssueDetails} The populated PKICertificateIssueDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new PKICertificateIssueDetails(); - - if (data.hasOwnProperty('allow_any_name')) { - obj['allow_any_name'] = _ApiClient["default"].convertToType(data['allow_any_name'], 'Boolean'); - } - - if (data.hasOwnProperty('allow_subdomains')) { - obj['allow_subdomains'] = _ApiClient["default"].convertToType(data['allow_subdomains'], 'Boolean'); - } - - if (data.hasOwnProperty('allowed_domains_list')) { - obj['allowed_domains_list'] = _ApiClient["default"].convertToType(data['allowed_domains_list'], ['String']); - } - - if (data.hasOwnProperty('allowed_uri_sans')) { - obj['allowed_uri_sans'] = _ApiClient["default"].convertToType(data['allowed_uri_sans'], ['String']); - } - - if (data.hasOwnProperty('basic_constraints_valid_for_non_ca')) { - obj['basic_constraints_valid_for_non_ca'] = _ApiClient["default"].convertToType(data['basic_constraints_valid_for_non_ca'], 'Boolean'); - } - - if (data.hasOwnProperty('certificate_authority_mode')) { - obj['certificate_authority_mode'] = _ApiClient["default"].convertToType(data['certificate_authority_mode'], 'String'); - } - - if (data.hasOwnProperty('client_flag')) { - obj['client_flag'] = _ApiClient["default"].convertToType(data['client_flag'], 'Boolean'); - } - - if (data.hasOwnProperty('code_signing_flag')) { - obj['code_signing_flag'] = _ApiClient["default"].convertToType(data['code_signing_flag'], 'Boolean'); - } - - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], ['String']); - } - - if (data.hasOwnProperty('destination_path')) { - obj['destination_path'] = _ApiClient["default"].convertToType(data['destination_path'], 'String'); - } - - if (data.hasOwnProperty('enforce_hostnames')) { - obj['enforce_hostnames'] = _ApiClient["default"].convertToType(data['enforce_hostnames'], 'Boolean'); - } - - if (data.hasOwnProperty('expiration_events')) { - obj['expiration_events'] = _ApiClient["default"].convertToType(data['expiration_events'], [_CertificateExpirationEvent["default"]]); - } - - if (data.hasOwnProperty('gw_cluster_url')) { - obj['gw_cluster_url'] = _ApiClient["default"].convertToType(data['gw_cluster_url'], 'String'); - } - - if (data.hasOwnProperty('is_ca')) { - obj['is_ca'] = _ApiClient["default"].convertToType(data['is_ca'], 'Boolean'); - } - - if (data.hasOwnProperty('key_bits')) { - obj['key_bits'] = _ApiClient["default"].convertToType(data['key_bits'], 'Number'); - } - - if (data.hasOwnProperty('key_type')) { - obj['key_type'] = _ApiClient["default"].convertToType(data['key_type'], 'String'); - } - - if (data.hasOwnProperty('key_usage_list')) { - obj['key_usage_list'] = _ApiClient["default"].convertToType(data['key_usage_list'], ['String']); - } - - if (data.hasOwnProperty('locality')) { - obj['locality'] = _ApiClient["default"].convertToType(data['locality'], ['String']); - } - - if (data.hasOwnProperty('not_before_duration')) { - obj['not_before_duration'] = _ApiClient["default"].convertToType(data['not_before_duration'], 'Number'); - } - - if (data.hasOwnProperty('organization_list')) { - obj['organization_list'] = _ApiClient["default"].convertToType(data['organization_list'], ['String']); - } - - if (data.hasOwnProperty('organization_unit_list')) { - obj['organization_unit_list'] = _ApiClient["default"].convertToType(data['organization_unit_list'], ['String']); - } - - if (data.hasOwnProperty('postal_code')) { - obj['postal_code'] = _ApiClient["default"].convertToType(data['postal_code'], ['String']); - } - - if (data.hasOwnProperty('protect_generated_certificates')) { - obj['protect_generated_certificates'] = _ApiClient["default"].convertToType(data['protect_generated_certificates'], 'Boolean'); - } - - if (data.hasOwnProperty('province')) { - obj['province'] = _ApiClient["default"].convertToType(data['province'], ['String']); - } - - if (data.hasOwnProperty('require_cn')) { - obj['require_cn'] = _ApiClient["default"].convertToType(data['require_cn'], 'Boolean'); - } - - if (data.hasOwnProperty('server_flag')) { - obj['server_flag'] = _ApiClient["default"].convertToType(data['server_flag'], 'Boolean'); - } - - if (data.hasOwnProperty('street_address')) { - obj['street_address'] = _ApiClient["default"].convertToType(data['street_address'], ['String']); - } - } - - return obj; - } - }]); - - return PKICertificateIssueDetails; -}(); -/** - * @member {Boolean} allow_any_name - */ - - -PKICertificateIssueDetails.prototype['allow_any_name'] = undefined; -/** - * @member {Boolean} allow_subdomains - */ - -PKICertificateIssueDetails.prototype['allow_subdomains'] = undefined; -/** - * @member {Array.} allowed_domains_list - */ - -PKICertificateIssueDetails.prototype['allowed_domains_list'] = undefined; -/** - * @member {Array.} allowed_uri_sans - */ - -PKICertificateIssueDetails.prototype['allowed_uri_sans'] = undefined; -/** - * @member {Boolean} basic_constraints_valid_for_non_ca - */ - -PKICertificateIssueDetails.prototype['basic_constraints_valid_for_non_ca'] = undefined; -/** - * @member {String} certificate_authority_mode - */ - -PKICertificateIssueDetails.prototype['certificate_authority_mode'] = undefined; -/** - * @member {Boolean} client_flag - */ - -PKICertificateIssueDetails.prototype['client_flag'] = undefined; -/** - * @member {Boolean} code_signing_flag - */ - -PKICertificateIssueDetails.prototype['code_signing_flag'] = undefined; -/** - * @member {Array.} country - */ - -PKICertificateIssueDetails.prototype['country'] = undefined; -/** - * DestinationPath is the destination to save generated certificates - * @member {String} destination_path - */ - -PKICertificateIssueDetails.prototype['destination_path'] = undefined; -/** - * @member {Boolean} enforce_hostnames - */ - -PKICertificateIssueDetails.prototype['enforce_hostnames'] = undefined; -/** - * ExpirationNotification holds a list of expiration notices that should be sent in case a certificate is about to expire, this value is being propagated to the Certificate resources that are created - * @member {Array.} expiration_events - */ - -PKICertificateIssueDetails.prototype['expiration_events'] = undefined; -/** - * GWClusterURL is required when CAMode is \"public\" and it defines the cluster URL the PKI should be issued from. The GW cluster must have permissions to read associated target's details - * @member {String} gw_cluster_url - */ - -PKICertificateIssueDetails.prototype['gw_cluster_url'] = undefined; -/** - * @member {Boolean} is_ca - */ - -PKICertificateIssueDetails.prototype['is_ca'] = undefined; -/** - * @member {Number} key_bits - */ - -PKICertificateIssueDetails.prototype['key_bits'] = undefined; -/** - * @member {String} key_type - */ - -PKICertificateIssueDetails.prototype['key_type'] = undefined; -/** - * @member {Array.} key_usage_list - */ - -PKICertificateIssueDetails.prototype['key_usage_list'] = undefined; -/** - * @member {Array.} locality - */ - -PKICertificateIssueDetails.prototype['locality'] = undefined; -/** - * A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. - * @member {Number} not_before_duration - */ - -PKICertificateIssueDetails.prototype['not_before_duration'] = undefined; -/** - * @member {Array.} organization_list - */ - -PKICertificateIssueDetails.prototype['organization_list'] = undefined; -/** - * @member {Array.} organization_unit_list - */ - -PKICertificateIssueDetails.prototype['organization_unit_list'] = undefined; -/** - * @member {Array.} postal_code - */ - -PKICertificateIssueDetails.prototype['postal_code'] = undefined; -/** - * ProtectGeneratedCertificates dictates whether the created certificates should be protected from deletion - * @member {Boolean} protect_generated_certificates - */ - -PKICertificateIssueDetails.prototype['protect_generated_certificates'] = undefined; -/** - * @member {Array.} province - */ - -PKICertificateIssueDetails.prototype['province'] = undefined; -/** - * @member {Boolean} require_cn - */ - -PKICertificateIssueDetails.prototype['require_cn'] = undefined; -/** - * @member {Boolean} server_flag - */ - -PKICertificateIssueDetails.prototype['server_flag'] = undefined; -/** - * @member {Array.} street_address - */ - -PKICertificateIssueDetails.prototype['street_address'] = undefined; -var _default = PKICertificateIssueDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 34827: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The PasswordPolicyInfo model module. - * @module model/PasswordPolicyInfo - * @version 3.3.16 - */ -var PasswordPolicyInfo = /*#__PURE__*/function () { - /** - * Constructs a new PasswordPolicyInfo. - * @alias module:model/PasswordPolicyInfo - */ - function PasswordPolicyInfo() { - _classCallCheck(this, PasswordPolicyInfo); - - PasswordPolicyInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(PasswordPolicyInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a PasswordPolicyInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PasswordPolicyInfo} obj Optional instance to populate. - * @return {module:model/PasswordPolicyInfo} The populated PasswordPolicyInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new PasswordPolicyInfo(); - - if (data.hasOwnProperty('password_length')) { - obj['password_length'] = _ApiClient["default"].convertToType(data['password_length'], 'Number'); - } - - if (data.hasOwnProperty('use_capital_letters')) { - obj['use_capital_letters'] = _ApiClient["default"].convertToType(data['use_capital_letters'], 'Boolean'); - } - - if (data.hasOwnProperty('use_lower_letters')) { - obj['use_lower_letters'] = _ApiClient["default"].convertToType(data['use_lower_letters'], 'Boolean'); - } - - if (data.hasOwnProperty('use_numbers')) { - obj['use_numbers'] = _ApiClient["default"].convertToType(data['use_numbers'], 'Boolean'); - } - - if (data.hasOwnProperty('use_special_characters')) { - obj['use_special_characters'] = _ApiClient["default"].convertToType(data['use_special_characters'], 'Boolean'); - } - } - - return obj; - } - }]); - - return PasswordPolicyInfo; -}(); -/** - * @member {Number} password_length - */ - - -PasswordPolicyInfo.prototype['password_length'] = undefined; -/** - * @member {Boolean} use_capital_letters - */ - -PasswordPolicyInfo.prototype['use_capital_letters'] = undefined; -/** - * @member {Boolean} use_lower_letters - */ - -PasswordPolicyInfo.prototype['use_lower_letters'] = undefined; -/** - * @member {Boolean} use_numbers - */ - -PasswordPolicyInfo.prototype['use_numbers'] = undefined; -/** - * @member {Boolean} use_special_characters - */ - -PasswordPolicyInfo.prototype['use_special_characters'] = undefined; -var _default = PasswordPolicyInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 10929: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _RuleAssigner = _interopRequireDefault(__nccwpck_require__(48396)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The PathRule model module. - * @module model/PathRule - * @version 3.3.16 - */ -var PathRule = /*#__PURE__*/function () { - /** - * Constructs a new PathRule. - * @alias module:model/PathRule - */ - function PathRule() { - _classCallCheck(this, PathRule); - - PathRule.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(PathRule, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a PathRule from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PathRule} obj Optional instance to populate. - * @return {module:model/PathRule} The populated PathRule instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new PathRule(); - - if (data.hasOwnProperty('assigners')) { - obj['assigners'] = _ApiClient["default"].convertToType(data['assigners'], [_RuleAssigner["default"]]); - } - - if (data.hasOwnProperty('capabilities')) { - obj['capabilities'] = _ApiClient["default"].convertToType(data['capabilities'], ['String']); - } - - if (data.hasOwnProperty('is_limit_access')) { - obj['is_limit_access'] = _ApiClient["default"].convertToType(data['is_limit_access'], 'Boolean'); - } - - if (data.hasOwnProperty('number_of_access_used')) { - obj['number_of_access_used'] = _ApiClient["default"].convertToType(data['number_of_access_used'], 'Number'); - } - - if (data.hasOwnProperty('number_of_allowed_access')) { - obj['number_of_allowed_access'] = _ApiClient["default"].convertToType(data['number_of_allowed_access'], 'Number'); - } - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - - if (data.hasOwnProperty('start_time')) { - obj['start_time'] = _ApiClient["default"].convertToType(data['start_time'], 'Number'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - } - - return obj; - } - }]); - - return PathRule; -}(); -/** - * @member {Array.} assigners - */ - - -PathRule.prototype['assigners'] = undefined; -/** - * The approved/denied capabilities in the path - * @member {Array.} capabilities - */ - -PathRule.prototype['capabilities'] = undefined; -/** - * flag that indicate that this rule is allowed to be access RemainingAccess of times. - * @member {Boolean} is_limit_access - */ - -PathRule.prototype['is_limit_access'] = undefined; -/** - * @member {Number} number_of_access_used - */ - -PathRule.prototype['number_of_access_used'] = undefined; -/** - * @member {Number} number_of_allowed_access - */ - -PathRule.prototype['number_of_allowed_access'] = undefined; -/** - * The path the rule refers to - * @member {String} path - */ - -PathRule.prototype['path'] = undefined; -/** - * @member {Number} start_time - */ - -PathRule.prototype['start_time'] = undefined; -/** - * @member {Number} ttl - */ - -PathRule.prototype['ttl'] = undefined; -/** - * @member {String} type - */ - -PathRule.prototype['type'] = undefined; -var _default = PathRule; -exports["default"] = _default; - -/***/ }), - -/***/ 18619: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The PingTargetDetails model module. - * @module model/PingTargetDetails - * @version 3.3.16 - */ -var PingTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new PingTargetDetails. - * PingTargetDetails - * @alias module:model/PingTargetDetails - */ - function PingTargetDetails() { - _classCallCheck(this, PingTargetDetails); - - PingTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(PingTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a PingTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PingTargetDetails} obj Optional instance to populate. - * @return {module:model/PingTargetDetails} The populated PingTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new PingTargetDetails(); - - if (data.hasOwnProperty('administrative_port')) { - obj['administrative_port'] = _ApiClient["default"].convertToType(data['administrative_port'], 'String'); - } - - if (data.hasOwnProperty('authorization_port')) { - obj['authorization_port'] = _ApiClient["default"].convertToType(data['authorization_port'], 'String'); - } - - if (data.hasOwnProperty('ping_url')) { - obj['ping_url'] = _ApiClient["default"].convertToType(data['ping_url'], 'String'); - } - - if (data.hasOwnProperty('privileged_user')) { - obj['privileged_user'] = _ApiClient["default"].convertToType(data['privileged_user'], 'String'); - } - - if (data.hasOwnProperty('user_password')) { - obj['user_password'] = _ApiClient["default"].convertToType(data['user_password'], 'String'); - } - } - - return obj; - } - }]); - - return PingTargetDetails; -}(); -/** - * @member {String} administrative_port - */ - - -PingTargetDetails.prototype['administrative_port'] = undefined; -/** - * @member {String} authorization_port - */ - -PingTargetDetails.prototype['authorization_port'] = undefined; -/** - * @member {String} ping_url - */ - -PingTargetDetails.prototype['ping_url'] = undefined; -/** - * @member {String} privileged_user - */ - -PingTargetDetails.prototype['privileged_user'] = undefined; -/** - * @member {String} user_password - */ - -PingTargetDetails.prototype['user_password'] = undefined; -var _default = PingTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 11490: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Producer model module. - * @module model/Producer - * @version 3.3.16 - */ -var Producer = /*#__PURE__*/function () { - /** - * Constructs a new Producer. - * @alias module:model/Producer - */ - function Producer() { - _classCallCheck(this, Producer); - - Producer.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Producer, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a Producer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Producer} obj Optional instance to populate. - * @return {module:model/Producer} The populated Producer instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Producer(); - - if (data.hasOwnProperty('active')) { - obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean'); - } - - if (data.hasOwnProperty('failure_message')) { - obj['failure_message'] = _ApiClient["default"].convertToType(data['failure_message'], 'String'); - } - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - - if (data.hasOwnProperty('init')) { - obj['init'] = _ApiClient["default"].convertToType(data['init'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - } - - return obj; - } - }]); - - return Producer; -}(); -/** - * @member {Boolean} active - */ - - -Producer.prototype['active'] = undefined; -/** - * @member {String} failure_message - */ - -Producer.prototype['failure_message'] = undefined; -/** - * @member {Number} id - */ - -Producer.prototype['id'] = undefined; -/** - * @member {Boolean} init - */ - -Producer.prototype['init'] = undefined; -/** - * @member {String} name - */ - -Producer.prototype['name'] = undefined; -/** - * @member {String} type - */ - -Producer.prototype['type'] = undefined; -var _default = Producer; -exports["default"] = _default; - -/***/ }), - -/***/ 24318: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _Producer = _interopRequireDefault(__nccwpck_require__(11490)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ProducersConfigPart model module. - * @module model/ProducersConfigPart - * @version 3.3.16 - */ -var ProducersConfigPart = /*#__PURE__*/function () { - /** - * Constructs a new ProducersConfigPart. - * @alias module:model/ProducersConfigPart - */ - function ProducersConfigPart() { - _classCallCheck(this, ProducersConfigPart); - - ProducersConfigPart.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ProducersConfigPart, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ProducersConfigPart from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProducersConfigPart} obj Optional instance to populate. - * @return {module:model/ProducersConfigPart} The populated ProducersConfigPart instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ProducersConfigPart(); - - if (data.hasOwnProperty('producers')) { - obj['producers'] = _ApiClient["default"].convertToType(data['producers'], [_Producer["default"]]); - } - } - - return obj; - } - }]); - - return ProducersConfigPart; -}(); -/** - * @member {Array.} producers - */ - - -ProducersConfigPart.prototype['producers'] = undefined; -var _default = ProducersConfigPart; -exports["default"] = _default; - -/***/ }), - -/***/ 78325: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RabbitMQTargetDetails model module. - * @module model/RabbitMQTargetDetails - * @version 3.3.16 - */ -var RabbitMQTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new RabbitMQTargetDetails. - * @alias module:model/RabbitMQTargetDetails - */ - function RabbitMQTargetDetails() { - _classCallCheck(this, RabbitMQTargetDetails); - - RabbitMQTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RabbitMQTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RabbitMQTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RabbitMQTargetDetails} obj Optional instance to populate. - * @return {module:model/RabbitMQTargetDetails} The populated RabbitMQTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RabbitMQTargetDetails(); - - if (data.hasOwnProperty('rabbitmq_server_password')) { - obj['rabbitmq_server_password'] = _ApiClient["default"].convertToType(data['rabbitmq_server_password'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq_server_uri')) { - obj['rabbitmq_server_uri'] = _ApiClient["default"].convertToType(data['rabbitmq_server_uri'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq_server_user')) { - obj['rabbitmq_server_user'] = _ApiClient["default"].convertToType(data['rabbitmq_server_user'], 'String'); - } - } - - return obj; - } - }]); - - return RabbitMQTargetDetails; -}(); -/** - * @member {String} rabbitmq_server_password - */ - - -RabbitMQTargetDetails.prototype['rabbitmq_server_password'] = undefined; -/** - * @member {String} rabbitmq_server_uri - */ - -RabbitMQTargetDetails.prototype['rabbitmq_server_uri'] = undefined; -/** - * @member {String} rabbitmq_server_user - */ - -RabbitMQTargetDetails.prototype['rabbitmq_server_user'] = undefined; -var _default = RabbitMQTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 18791: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RawCreds model module. - * @module model/RawCreds - * @version 3.3.16 - */ -var RawCreds = /*#__PURE__*/function () { - /** - * Constructs a new RawCreds. - * @alias module:model/RawCreds - */ - function RawCreds() { - _classCallCheck(this, RawCreds); - - RawCreds.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RawCreds, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RawCreds from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RawCreds} obj Optional instance to populate. - * @return {module:model/RawCreds} The populated RawCreds instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RawCreds(); - - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); - } - - if (data.hasOwnProperty('access-key')) { - obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); - } - } - - return obj; - } - }]); - - return RawCreds; -}(); -/** - * @member {String} access-id - */ - - -RawCreds.prototype['access-id'] = undefined; -/** - * @member {String} access-key - */ - -RawCreds.prototype['access-key'] = undefined; -var _default = RawCreds; -exports["default"] = _default; - -/***/ }), - -/***/ 94978: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RefreshKey model module. - * @module model/RefreshKey - * @version 3.3.16 - */ -var RefreshKey = /*#__PURE__*/function () { - /** - * Constructs a new RefreshKey. - * @alias module:model/RefreshKey - * @param name {String} Key name - */ - function RefreshKey(name) { - _classCallCheck(this, RefreshKey); - - RefreshKey.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RefreshKey, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a RefreshKey from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RefreshKey} obj Optional instance to populate. - * @return {module:model/RefreshKey} The populated RefreshKey instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RefreshKey(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return RefreshKey; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -RefreshKey.prototype['json'] = false; -/** - * Key name - * @member {String} name - */ - -RefreshKey.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -RefreshKey.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -RefreshKey.prototype['uid-token'] = undefined; -var _default = RefreshKey; -exports["default"] = _default; - -/***/ }), - -/***/ 1383: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RefreshKeyOutput model module. - * @module model/RefreshKeyOutput - * @version 3.3.16 - */ -var RefreshKeyOutput = /*#__PURE__*/function () { - /** - * Constructs a new RefreshKeyOutput. - * @alias module:model/RefreshKeyOutput - */ - function RefreshKeyOutput() { - _classCallCheck(this, RefreshKeyOutput); - - RefreshKeyOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RefreshKeyOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RefreshKeyOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RefreshKeyOutput} obj Optional instance to populate. - * @return {module:model/RefreshKeyOutput} The populated RefreshKeyOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RefreshKeyOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return RefreshKeyOutput; -}(); -/** - * @member {String} result - */ - - -RefreshKeyOutput.prototype['result'] = undefined; -var _default = RefreshKeyOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 38336: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RegexpTokenizerInfo model module. - * @module model/RegexpTokenizerInfo - * @version 3.3.16 - */ -var RegexpTokenizerInfo = /*#__PURE__*/function () { - /** - * Constructs a new RegexpTokenizerInfo. - * RegexpTokenizerInfo represents a general Regexp tokenization template - * @alias module:model/RegexpTokenizerInfo - */ - function RegexpTokenizerInfo() { - _classCallCheck(this, RegexpTokenizerInfo); - - RegexpTokenizerInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RegexpTokenizerInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RegexpTokenizerInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RegexpTokenizerInfo} obj Optional instance to populate. - * @return {module:model/RegexpTokenizerInfo} The populated RegexpTokenizerInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RegexpTokenizerInfo(); - - if (data.hasOwnProperty('alphabet')) { - obj['alphabet'] = _ApiClient["default"].convertToType(data['alphabet'], 'String'); - } - - if (data.hasOwnProperty('decoding_template')) { - obj['decoding_template'] = _ApiClient["default"].convertToType(data['decoding_template'], 'String'); - } - - if (data.hasOwnProperty('encoding_template')) { - obj['encoding_template'] = _ApiClient["default"].convertToType(data['encoding_template'], 'String'); - } - - if (data.hasOwnProperty('pattern')) { - obj['pattern'] = _ApiClient["default"].convertToType(data['pattern'], 'String'); - } - } - - return obj; - } - }]); - - return RegexpTokenizerInfo; -}(); -/** - * The Alphabet used for the tokenization - * @member {String} alphabet - */ - - -RegexpTokenizerInfo.prototype['alphabet'] = undefined; -/** - * Transformation to perform on the decrypted data - * @member {String} decoding_template - */ - -RegexpTokenizerInfo.prototype['decoding_template'] = undefined; -/** - * Transformation to perform on the encrypted data, if the required output template doesn't match the input string The output Should still be valid for the Pattern, otherwise the secret would be able to be decrypted. - * @member {String} encoding_template - */ - -RegexpTokenizerInfo.prototype['encoding_template'] = undefined; -/** - * Regexp pattern to extract and deposit the text/encdata - * @member {String} pattern - */ - -RegexpTokenizerInfo.prototype['pattern'] = undefined; -var _default = RegexpTokenizerInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 14565: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RequestAccess model module. - * @module model/RequestAccess - * @version 3.3.16 - */ -var RequestAccess = /*#__PURE__*/function () { - /** - * Constructs a new RequestAccess. - * @alias module:model/RequestAccess - * @param capability {Array.} List of the required capabilities options: [read, update, delete] - * @param name {String} Item type - */ - function RequestAccess(capability, name) { - _classCallCheck(this, RequestAccess); - - RequestAccess.initialize(this, capability, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RequestAccess, null, [{ - key: "initialize", - value: function initialize(obj, capability, name) { - obj['capability'] = capability; - obj['name'] = name; - } - /** - * Constructs a RequestAccess from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RequestAccess} obj Optional instance to populate. - * @return {module:model/RequestAccess} The populated RequestAccess instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RequestAccess(); - - if (data.hasOwnProperty('capability')) { - obj['capability'] = _ApiClient["default"].convertToType(data['capability'], ['String']); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return RequestAccess; -}(); -/** - * List of the required capabilities options: [read, update, delete] - * @member {Array.} capability - */ - - -RequestAccess.prototype['capability'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -RequestAccess.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -RequestAccess.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -RequestAccess.prototype['json'] = false; -/** - * Item type - * @member {String} name - */ - -RequestAccess.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -RequestAccess.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -RequestAccess.prototype['uid-token'] = undefined; -var _default = RequestAccess; -exports["default"] = _default; - -/***/ }), - -/***/ 86512: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RequestAccessOutput model module. - * @module model/RequestAccessOutput - * @version 3.3.16 - */ -var RequestAccessOutput = /*#__PURE__*/function () { - /** - * Constructs a new RequestAccessOutput. - * @alias module:model/RequestAccessOutput - */ - function RequestAccessOutput() { - _classCallCheck(this, RequestAccessOutput); - - RequestAccessOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RequestAccessOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RequestAccessOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RequestAccessOutput} obj Optional instance to populate. - * @return {module:model/RequestAccessOutput} The populated RequestAccessOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RequestAccessOutput(); - - if (data.hasOwnProperty('response')) { - obj['response'] = _ApiClient["default"].convertToType(data['response'], 'String'); - } - } - - return obj; - } - }]); - - return RequestAccessOutput; -}(); -/** - * @member {String} response - */ - - -RequestAccessOutput.prototype['response'] = undefined; -var _default = RequestAccessOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 78028: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RequiredActivity model module. - * @module model/RequiredActivity - * @version 3.3.16 - */ -var RequiredActivity = /*#__PURE__*/function () { - /** - * Constructs a new RequiredActivity. - * @alias module:model/RequiredActivity - */ - function RequiredActivity() { - _classCallCheck(this, RequiredActivity); - - RequiredActivity.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RequiredActivity, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RequiredActivity from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RequiredActivity} obj Optional instance to populate. - * @return {module:model/RequiredActivity} The populated RequiredActivity instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RequiredActivity(); - - if (data.hasOwnProperty('migrations_required_activity')) { - obj['migrations_required_activity'] = _ApiClient["default"].convertToType(data['migrations_required_activity'], { - 'String': 'Boolean' - }); - } - } - - return obj; - } - }]); - - return RequiredActivity; -}(); -/** - * @member {Object.} migrations_required_activity - */ - - -RequiredActivity.prototype['migrations_required_activity'] = undefined; -var _default = RequiredActivity; -exports["default"] = _default; - -/***/ }), - -/***/ 7820: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ReverseRBAC model module. - * @module model/ReverseRBAC - * @version 3.3.16 - */ -var ReverseRBAC = /*#__PURE__*/function () { - /** - * Constructs a new ReverseRBAC. - * reverseRBAC is a command that shows which auth methods have access to a particular object. - * @alias module:model/ReverseRBAC - * @param path {String} Path to an object - * @param type {String} Type of object (item, am, role) - */ - function ReverseRBAC(path, type) { - _classCallCheck(this, ReverseRBAC); - - ReverseRBAC.initialize(this, path, type); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ReverseRBAC, null, [{ - key: "initialize", - value: function initialize(obj, path, type) { - obj['path'] = path; - obj['type'] = type; - } - /** - * Constructs a ReverseRBAC from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReverseRBAC} obj Optional instance to populate. - * @return {module:model/ReverseRBAC} The populated ReverseRBAC instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ReverseRBAC(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return ReverseRBAC; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -ReverseRBAC.prototype['json'] = false; -/** - * Path to an object - * @member {String} path - */ - -ReverseRBAC.prototype['path'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -ReverseRBAC.prototype['token'] = undefined; -/** - * Type of object (item, am, role) - * @member {String} type - */ - -ReverseRBAC.prototype['type'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -ReverseRBAC.prototype['uid-token'] = undefined; -var _default = ReverseRBAC; -exports["default"] = _default; - -/***/ }), - -/***/ 42271: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _AuthMethodRoleAssociation = _interopRequireDefault(__nccwpck_require__(39304)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ReverseRBACClient model module. - * @module model/ReverseRBACClient - * @version 3.3.16 - */ -var ReverseRBACClient = /*#__PURE__*/function () { - /** - * Constructs a new ReverseRBACClient. - * @alias module:model/ReverseRBACClient - */ - function ReverseRBACClient() { - _classCallCheck(this, ReverseRBACClient); - - ReverseRBACClient.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ReverseRBACClient, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ReverseRBACClient from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReverseRBACClient} obj Optional instance to populate. - * @return {module:model/ReverseRBACClient} The populated ReverseRBACClient instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ReverseRBACClient(); - - if (data.hasOwnProperty('assocs')) { - obj['assocs'] = _ApiClient["default"].convertToType(data['assocs'], [_AuthMethodRoleAssociation["default"]]); - } - - if (data.hasOwnProperty('auth_method_name')) { - obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); - } - } - - return obj; - } - }]); - - return ReverseRBACClient; -}(); -/** - * @member {Array.} assocs - */ - - -ReverseRBACClient.prototype['assocs'] = undefined; -/** - * @member {String} auth_method_name - */ - -ReverseRBACClient.prototype['auth_method_name'] = undefined; -var _default = ReverseRBACClient; -exports["default"] = _default; - -/***/ }), - -/***/ 46413: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _ReverseRBACClient = _interopRequireDefault(__nccwpck_require__(42271)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ReverseRBACOutput model module. - * @module model/ReverseRBACOutput - * @version 3.3.16 - */ -var ReverseRBACOutput = /*#__PURE__*/function () { - /** - * Constructs a new ReverseRBACOutput. - * @alias module:model/ReverseRBACOutput - */ - function ReverseRBACOutput() { - _classCallCheck(this, ReverseRBACOutput); - - ReverseRBACOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ReverseRBACOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ReverseRBACOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReverseRBACOutput} obj Optional instance to populate. - * @return {module:model/ReverseRBACOutput} The populated ReverseRBACOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ReverseRBACOutput(); - - if (data.hasOwnProperty('clients')) { - obj['clients'] = _ApiClient["default"].convertToType(data['clients'], { - 'String': _ReverseRBACClient["default"] - }); - } - } - - return obj; - } - }]); - - return ReverseRBACOutput; -}(); -/** - * @member {Object.} clients - */ - - -ReverseRBACOutput.prototype['clients'] = undefined; -var _default = ReverseRBACOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 46521: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RevokeCreds model module. - * @module model/RevokeCreds - * @version 3.3.16 - */ -var RevokeCreds = /*#__PURE__*/function () { - /** - * Constructs a new RevokeCreds. - * revokeCreds will permanently revoke the credentials associated with the provided token or profile. - * @alias module:model/RevokeCreds - */ - function RevokeCreds() { - _classCallCheck(this, RevokeCreds); - - RevokeCreds.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RevokeCreds, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RevokeCreds from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RevokeCreds} obj Optional instance to populate. - * @return {module:model/RevokeCreds} The populated RevokeCreds instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RevokeCreds(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return RevokeCreds; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -RevokeCreds.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -RevokeCreds.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -RevokeCreds.prototype['uid-token'] = undefined; -var _default = RevokeCreds; -exports["default"] = _default; - -/***/ }), - -/***/ 74264: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _RoleAuthMethodAssociation = _interopRequireDefault(__nccwpck_require__(2372)); - -var _Rules = _interopRequireDefault(__nccwpck_require__(74529)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Role model module. - * @module model/Role - * @version 3.3.16 - */ -var Role = /*#__PURE__*/function () { - /** - * Constructs a new Role. - * @alias module:model/Role - */ - function Role() { - _classCallCheck(this, Role); - - Role.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Role, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a Role from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Role} obj Optional instance to populate. - * @return {module:model/Role} The populated Role instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Role(); - - if (data.hasOwnProperty('access_date')) { - obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); - } - - if (data.hasOwnProperty('client_permissions')) { - obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); - } - - if (data.hasOwnProperty('modification_date')) { - obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); - } - - if (data.hasOwnProperty('role_auth_methods_assoc')) { - obj['role_auth_methods_assoc'] = _ApiClient["default"].convertToType(data['role_auth_methods_assoc'], [_RoleAuthMethodAssociation["default"]]); - } - - if (data.hasOwnProperty('role_name')) { - obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], 'String'); - } - - if (data.hasOwnProperty('rules')) { - obj['rules'] = _Rules["default"].constructFromObject(data['rules']); - } - } - - return obj; - } - }]); - - return Role; -}(); -/** - * @member {Date} access_date - */ - - -Role.prototype['access_date'] = undefined; -/** - * @member {Array.} client_permissions - */ - -Role.prototype['client_permissions'] = undefined; -/** - * @member {String} comment - */ - -Role.prototype['comment'] = undefined; -/** - * @member {Date} creation_date - */ - -Role.prototype['creation_date'] = undefined; -/** - * @member {Date} modification_date - */ - -Role.prototype['modification_date'] = undefined; -/** - * @member {Array.} role_auth_methods_assoc - */ - -Role.prototype['role_auth_methods_assoc'] = undefined; -/** - * @member {String} role_name - */ - -Role.prototype['role_name'] = undefined; -/** - * @member {module:model/Rules} rules - */ - -Role.prototype['rules'] = undefined; -var _default = Role; -exports["default"] = _default; - -/***/ }), - -/***/ 30915: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RoleAssociationDetails model module. - * @module model/RoleAssociationDetails - * @version 3.3.16 - */ -var RoleAssociationDetails = /*#__PURE__*/function () { - /** - * Constructs a new RoleAssociationDetails. - * RoleAssociationDetails includes details of an association between a role and an auth method. - * @alias module:model/RoleAssociationDetails - */ - function RoleAssociationDetails() { - _classCallCheck(this, RoleAssociationDetails); - - RoleAssociationDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RoleAssociationDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RoleAssociationDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RoleAssociationDetails} obj Optional instance to populate. - * @return {module:model/RoleAssociationDetails} The populated RoleAssociationDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RoleAssociationDetails(); - - if (data.hasOwnProperty('assoc_id')) { - obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); - } - - if (data.hasOwnProperty('auth_method_name')) { - obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); - } - - if (data.hasOwnProperty('auth_method_sub_claims')) { - obj['auth_method_sub_claims'] = _ApiClient["default"].convertToType(data['auth_method_sub_claims'], { - 'String': ['String'] - }); - } - - if (data.hasOwnProperty('role_name')) { - obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], 'String'); - } - - if (data.hasOwnProperty('sub_claims_case_sensitive')) { - obj['sub_claims_case_sensitive'] = _ApiClient["default"].convertToType(data['sub_claims_case_sensitive'], 'Boolean'); - } - } - - return obj; - } - }]); - - return RoleAssociationDetails; -}(); -/** - * @member {String} assoc_id - */ - - -RoleAssociationDetails.prototype['assoc_id'] = undefined; -/** - * @member {String} auth_method_name - */ - -RoleAssociationDetails.prototype['auth_method_name'] = undefined; -/** - * @member {Object.>} auth_method_sub_claims - */ - -RoleAssociationDetails.prototype['auth_method_sub_claims'] = undefined; -/** - * @member {String} role_name - */ - -RoleAssociationDetails.prototype['role_name'] = undefined; -/** - * @member {Boolean} sub_claims_case_sensitive - */ - -RoleAssociationDetails.prototype['sub_claims_case_sensitive'] = undefined; -var _default = RoleAssociationDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 2372: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RoleAuthMethodAssociation model module. - * @module model/RoleAuthMethodAssociation - * @version 3.3.16 - */ -var RoleAuthMethodAssociation = /*#__PURE__*/function () { - /** - * Constructs a new RoleAuthMethodAssociation. - * RoleAuthMethodAssociation includes details of an association between a role and an auth method. - * @alias module:model/RoleAuthMethodAssociation - */ - function RoleAuthMethodAssociation() { - _classCallCheck(this, RoleAuthMethodAssociation); - - RoleAuthMethodAssociation.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RoleAuthMethodAssociation, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RoleAuthMethodAssociation from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RoleAuthMethodAssociation} obj Optional instance to populate. - * @return {module:model/RoleAuthMethodAssociation} The populated RoleAuthMethodAssociation instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RoleAuthMethodAssociation(); - - if (data.hasOwnProperty('assoc_id')) { - obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); - } - - if (data.hasOwnProperty('auth_method_access_id')) { - obj['auth_method_access_id'] = _ApiClient["default"].convertToType(data['auth_method_access_id'], 'String'); - } - - if (data.hasOwnProperty('auth_method_name')) { - obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); - } - - if (data.hasOwnProperty('auth_method_sub_claims')) { - obj['auth_method_sub_claims'] = _ApiClient["default"].convertToType(data['auth_method_sub_claims'], { - 'String': ['String'] - }); - } - - if (data.hasOwnProperty('sub_claims_case_sensitive')) { - obj['sub_claims_case_sensitive'] = _ApiClient["default"].convertToType(data['sub_claims_case_sensitive'], 'Boolean'); - } - } - - return obj; - } - }]); - - return RoleAuthMethodAssociation; -}(); -/** - * @member {String} assoc_id - */ - - -RoleAuthMethodAssociation.prototype['assoc_id'] = undefined; -/** - * @member {String} auth_method_access_id - */ - -RoleAuthMethodAssociation.prototype['auth_method_access_id'] = undefined; -/** - * @member {String} auth_method_name - */ - -RoleAuthMethodAssociation.prototype['auth_method_name'] = undefined; -/** - * @member {Object.>} auth_method_sub_claims - */ - -RoleAuthMethodAssociation.prototype['auth_method_sub_claims'] = undefined; -/** - * @member {Boolean} sub_claims_case_sensitive - */ - -RoleAuthMethodAssociation.prototype['sub_claims_case_sensitive'] = undefined; -var _default = RoleAuthMethodAssociation; -exports["default"] = _default; - -/***/ }), - -/***/ 3200: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RollbackSecret model module. - * @module model/RollbackSecret - * @version 3.3.16 - */ -var RollbackSecret = /*#__PURE__*/function () { - /** - * Constructs a new RollbackSecret. - * @alias module:model/RollbackSecret - * @param name {String} Secret name - * @param oldVersion {Number} Old secret version to rollback to - */ - function RollbackSecret(name, oldVersion) { - _classCallCheck(this, RollbackSecret); - - RollbackSecret.initialize(this, name, oldVersion); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RollbackSecret, null, [{ - key: "initialize", - value: function initialize(obj, name, oldVersion) { - obj['name'] = name; - obj['old-version'] = oldVersion; - } - /** - * Constructs a RollbackSecret from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RollbackSecret} obj Optional instance to populate. - * @return {module:model/RollbackSecret} The populated RollbackSecret instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RollbackSecret(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('old-version')) { - obj['old-version'] = _ApiClient["default"].convertToType(data['old-version'], 'Number'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return RollbackSecret; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -RollbackSecret.prototype['json'] = false; -/** - * Secret name - * @member {String} name - */ - -RollbackSecret.prototype['name'] = undefined; -/** - * Old secret version to rollback to - * @member {Number} old-version - */ - -RollbackSecret.prototype['old-version'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -RollbackSecret.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -RollbackSecret.prototype['uid-token'] = undefined; -var _default = RollbackSecret; -exports["default"] = _default; - -/***/ }), - -/***/ 76745: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RollbackSecretOutput model module. - * @module model/RollbackSecretOutput - * @version 3.3.16 - */ -var RollbackSecretOutput = /*#__PURE__*/function () { - /** - * Constructs a new RollbackSecretOutput. - * @alias module:model/RollbackSecretOutput - */ - function RollbackSecretOutput() { - _classCallCheck(this, RollbackSecretOutput); - - RollbackSecretOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RollbackSecretOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RollbackSecretOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RollbackSecretOutput} obj Optional instance to populate. - * @return {module:model/RollbackSecretOutput} The populated RollbackSecretOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RollbackSecretOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return RollbackSecretOutput; -}(); -/** - * @member {String} name - */ - - -RollbackSecretOutput.prototype['name'] = undefined; -/** - * @member {Number} version - */ - -RollbackSecretOutput.prototype['version'] = undefined; -var _default = RollbackSecretOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 77056: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RotateKey model module. - * @module model/RotateKey - * @version 3.3.16 - */ -var RotateKey = /*#__PURE__*/function () { - /** - * Constructs a new RotateKey. - * of it. - * @alias module:model/RotateKey - * @param name {String} Key name - */ - function RotateKey(name) { - _classCallCheck(this, RotateKey); - - RotateKey.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RotateKey, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a RotateKey from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RotateKey} obj Optional instance to populate. - * @return {module:model/RotateKey} The populated RotateKey instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RotateKey(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-cert-pem-data')) { - obj['new-cert-pem-data'] = _ApiClient["default"].convertToType(data['new-cert-pem-data'], 'String'); - } - - if (data.hasOwnProperty('new-key-data')) { - obj['new-key-data'] = _ApiClient["default"].convertToType(data['new-key-data'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return RotateKey; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -RotateKey.prototype['json'] = false; -/** - * Key name - * @member {String} name - */ - -RotateKey.prototype['name'] = undefined; -/** - * The new pem encoded certificate for the classic key. relevant only for keys provided by user ('bring-your-own-key') - * @member {String} new-cert-pem-data - */ - -RotateKey.prototype['new-cert-pem-data'] = undefined; -/** - * The new base64 encoded value for the classic key. relevant only for keys provided by user ('bring-your-own-key') - * @member {String} new-key-data - */ - -RotateKey.prototype['new-key-data'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -RotateKey.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -RotateKey.prototype['uid-token'] = undefined; -var _default = RotateKey; -exports["default"] = _default; - -/***/ }), - -/***/ 58153: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RotateKeyOutput model module. - * @module model/RotateKeyOutput - * @version 3.3.16 - */ -var RotateKeyOutput = /*#__PURE__*/function () { - /** - * Constructs a new RotateKeyOutput. - * RotateKeyOutput defines output of RotateKey operation - * @alias module:model/RotateKeyOutput - */ - function RotateKeyOutput() { - _classCallCheck(this, RotateKeyOutput); - - RotateKeyOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RotateKeyOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RotateKeyOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RotateKeyOutput} obj Optional instance to populate. - * @return {module:model/RotateKeyOutput} The populated RotateKeyOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RotateKeyOutput(); - - if (data.hasOwnProperty('classic_key_gw_url')) { - obj['classic_key_gw_url'] = _ApiClient["default"].convertToType(data['classic_key_gw_url'], 'String'); - } - - if (data.hasOwnProperty('item_type')) { - obj['item_type'] = _ApiClient["default"].convertToType(data['item_type'], 'String'); - } - - if (data.hasOwnProperty('new_item_version')) { - obj['new_item_version'] = _ApiClient["default"].convertToType(data['new_item_version'], 'Number'); - } - - if (data.hasOwnProperty('next_rotation_date')) { - obj['next_rotation_date'] = _ApiClient["default"].convertToType(data['next_rotation_date'], 'Date'); - } - } - - return obj; - } - }]); - - return RotateKeyOutput; -}(); -/** - * @member {String} classic_key_gw_url - */ - - -RotateKeyOutput.prototype['classic_key_gw_url'] = undefined; -/** - * @member {String} item_type - */ - -RotateKeyOutput.prototype['item_type'] = undefined; -/** - * @member {Number} new_item_version - */ - -RotateKeyOutput.prototype['new_item_version'] = undefined; -/** - * @member {Date} next_rotation_date - */ - -RotateKeyOutput.prototype['next_rotation_date'] = undefined; -var _default = RotateKeyOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 90983: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RotateSecret model module. - * @module model/RotateSecret - * @version 3.3.16 - */ -var RotateSecret = /*#__PURE__*/function () { - /** - * Constructs a new RotateSecret. - * @alias module:model/RotateSecret - * @param name {String} Secret name (Rotated Secret or Custom Dynamic Secret) - */ - function RotateSecret(name) { - _classCallCheck(this, RotateSecret); - - RotateSecret.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RotateSecret, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a RotateSecret from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RotateSecret} obj Optional instance to populate. - * @return {module:model/RotateSecret} The populated RotateSecret instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RotateSecret(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return RotateSecret; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -RotateSecret.prototype['json'] = false; -/** - * Secret name (Rotated Secret or Custom Dynamic Secret) - * @member {String} name - */ - -RotateSecret.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -RotateSecret.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -RotateSecret.prototype['uid-token'] = undefined; -var _default = RotateSecret; -exports["default"] = _default; - -/***/ }), - -/***/ 25957: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RotatedSecretDetailsInfo model module. - * @module model/RotatedSecretDetailsInfo - * @version 3.3.16 - */ -var RotatedSecretDetailsInfo = /*#__PURE__*/function () { - /** - * Constructs a new RotatedSecretDetailsInfo. - * RotatedSecretDetailsInfo The rotated secret rotator info - * @alias module:model/RotatedSecretDetailsInfo - */ - function RotatedSecretDetailsInfo() { - _classCallCheck(this, RotatedSecretDetailsInfo); - - RotatedSecretDetailsInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RotatedSecretDetailsInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RotatedSecretDetailsInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RotatedSecretDetailsInfo} obj Optional instance to populate. - * @return {module:model/RotatedSecretDetailsInfo} The populated RotatedSecretDetailsInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RotatedSecretDetailsInfo(); - - if (data.hasOwnProperty('delete_previous_version_in_days')) { - obj['delete_previous_version_in_days'] = _ApiClient["default"].convertToType(data['delete_previous_version_in_days'], 'Number'); - } - - if (data.hasOwnProperty('gw_cluster_id')) { - obj['gw_cluster_id'] = _ApiClient["default"].convertToType(data['gw_cluster_id'], 'Number'); - } - - if (data.hasOwnProperty('last_rotation_error')) { - obj['last_rotation_error'] = _ApiClient["default"].convertToType(data['last_rotation_error'], 'String'); - } - - if (data.hasOwnProperty('number_of_versions_to_save')) { - obj['number_of_versions_to_save'] = _ApiClient["default"].convertToType(data['number_of_versions_to_save'], 'Number'); - } - - if (data.hasOwnProperty('rotation_hour')) { - obj['rotation_hour'] = _ApiClient["default"].convertToType(data['rotation_hour'], 'Number'); - } - - if (data.hasOwnProperty('rotation_interval_min')) { - obj['rotation_interval_min'] = _ApiClient["default"].convertToType(data['rotation_interval_min'], 'Boolean'); - } - - if (data.hasOwnProperty('rotation_statement')) { - obj['rotation_statement'] = _ApiClient["default"].convertToType(data['rotation_statement'], 'String'); - } - - if (data.hasOwnProperty('rotator_creds_type')) { - obj['rotator_creds_type'] = _ApiClient["default"].convertToType(data['rotator_creds_type'], 'String'); - } - - if (data.hasOwnProperty('rotator_status')) { - obj['rotator_status'] = _ApiClient["default"].convertToType(data['rotator_status'], 'String'); - } - - if (data.hasOwnProperty('rotator_type')) { - obj['rotator_type'] = _ApiClient["default"].convertToType(data['rotator_type'], 'String'); - } - - if (data.hasOwnProperty('same_password')) { - obj['same_password'] = _ApiClient["default"].convertToType(data['same_password'], 'Boolean'); - } - } - - return obj; - } - }]); - - return RotatedSecretDetailsInfo; -}(); -/** - * @member {Number} delete_previous_version_in_days - */ - - -RotatedSecretDetailsInfo.prototype['delete_previous_version_in_days'] = undefined; -/** - * @member {Number} gw_cluster_id - */ - -RotatedSecretDetailsInfo.prototype['gw_cluster_id'] = undefined; -/** - * @member {String} last_rotation_error - */ - -RotatedSecretDetailsInfo.prototype['last_rotation_error'] = undefined; -/** - * @member {Number} number_of_versions_to_save - */ - -RotatedSecretDetailsInfo.prototype['number_of_versions_to_save'] = undefined; -/** - * @member {Number} rotation_hour - */ - -RotatedSecretDetailsInfo.prototype['rotation_hour'] = undefined; -/** - * @member {Boolean} rotation_interval_min - */ - -RotatedSecretDetailsInfo.prototype['rotation_interval_min'] = undefined; -/** - * @member {String} rotation_statement - */ - -RotatedSecretDetailsInfo.prototype['rotation_statement'] = undefined; -/** - * @member {String} rotator_creds_type - */ - -RotatedSecretDetailsInfo.prototype['rotator_creds_type'] = undefined; -/** - * RotationStatus defines types of rotation Status - * @member {String} rotator_status - */ - -RotatedSecretDetailsInfo.prototype['rotator_status'] = undefined; -/** - * @member {String} rotator_type - */ - -RotatedSecretDetailsInfo.prototype['rotator_type'] = undefined; -/** - * @member {Boolean} same_password - */ - -RotatedSecretDetailsInfo.prototype['same_password'] = undefined; -var _default = RotatedSecretDetailsInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 74226: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RotatedSecretOutput model module. - * @module model/RotatedSecretOutput - * @version 3.3.16 - */ -var RotatedSecretOutput = /*#__PURE__*/function () { - /** - * Constructs a new RotatedSecretOutput. - * @alias module:model/RotatedSecretOutput - */ - function RotatedSecretOutput() { - _classCallCheck(this, RotatedSecretOutput); - - RotatedSecretOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RotatedSecretOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RotatedSecretOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RotatedSecretOutput} obj Optional instance to populate. - * @return {module:model/RotatedSecretOutput} The populated RotatedSecretOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RotatedSecretOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return RotatedSecretOutput; -}(); -/** - * @member {String} name - */ - - -RotatedSecretOutput.prototype['name'] = undefined; -var _default = RotatedSecretOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 98559: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Rotator model module. - * @module model/Rotator - * @version 3.3.16 - */ -var Rotator = /*#__PURE__*/function () { - /** - * Constructs a new Rotator. - * @alias module:model/Rotator - */ - function Rotator() { - _classCallCheck(this, Rotator); - - Rotator.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Rotator, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a Rotator from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Rotator} obj Optional instance to populate. - * @return {module:model/Rotator} The populated Rotator instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Rotator(); - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - - if (data.hasOwnProperty('last_error')) { - obj['last_error'] = _ApiClient["default"].convertToType(data['last_error'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('rotation_interval')) { - obj['rotation_interval'] = _ApiClient["default"].convertToType(data['rotation_interval'], 'Number'); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - } - - return obj; - } - }]); - - return Rotator; -}(); -/** - * @member {Number} id - */ - - -Rotator.prototype['id'] = undefined; -/** - * @member {String} last_error - */ - -Rotator.prototype['last_error'] = undefined; -/** - * @member {String} name - */ - -Rotator.prototype['name'] = undefined; -/** - * @member {Number} rotation_interval - */ - -Rotator.prototype['rotation_interval'] = undefined; -/** - * @member {String} type - */ - -Rotator.prototype['type'] = undefined; -var _default = Rotator; -exports["default"] = _default; - -/***/ }), - -/***/ 37665: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _Rotator = _interopRequireDefault(__nccwpck_require__(98559)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RotatorsConfigPart model module. - * @module model/RotatorsConfigPart - * @version 3.3.16 - */ -var RotatorsConfigPart = /*#__PURE__*/function () { - /** - * Constructs a new RotatorsConfigPart. - * @alias module:model/RotatorsConfigPart - */ - function RotatorsConfigPart() { - _classCallCheck(this, RotatorsConfigPart); - - RotatorsConfigPart.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RotatorsConfigPart, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RotatorsConfigPart from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RotatorsConfigPart} obj Optional instance to populate. - * @return {module:model/RotatorsConfigPart} The populated RotatorsConfigPart instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RotatorsConfigPart(); - - if (data.hasOwnProperty('rotators')) { - obj['rotators'] = _ApiClient["default"].convertToType(data['rotators'], [_Rotator["default"]]); - } - } - - return obj; - } - }]); - - return RotatorsConfigPart; -}(); -/** - * @member {Array.} rotators - */ - - -RotatorsConfigPart.prototype['rotators'] = undefined; -var _default = RotatorsConfigPart; -exports["default"] = _default; - -/***/ }), - -/***/ 48396: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The RuleAssigner model module. - * @module model/RuleAssigner - * @version 3.3.16 - */ -var RuleAssigner = /*#__PURE__*/function () { - /** - * Constructs a new RuleAssigner. - * @alias module:model/RuleAssigner - */ - function RuleAssigner() { - _classCallCheck(this, RuleAssigner); - - RuleAssigner.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(RuleAssigner, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a RuleAssigner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RuleAssigner} obj Optional instance to populate. - * @return {module:model/RuleAssigner} The populated RuleAssigner instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RuleAssigner(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = _ApiClient["default"].convertToType(data['unique_id'], 'String'); - } - } - - return obj; - } - }]); - - return RuleAssigner; -}(); -/** - * @member {String} access_id - */ - - -RuleAssigner.prototype['access_id'] = undefined; -/** - * @member {String} unique_id - */ - -RuleAssigner.prototype['unique_id'] = undefined; -var _default = RuleAssigner; -exports["default"] = _default; - -/***/ }), - -/***/ 74529: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _PathRule = _interopRequireDefault(__nccwpck_require__(10929)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Rules model module. - * @module model/Rules - * @version 3.3.16 - */ -var Rules = /*#__PURE__*/function () { - /** - * Constructs a new Rules. - * @alias module:model/Rules - */ - function Rules() { - _classCallCheck(this, Rules); - - Rules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Rules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a Rules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Rules} obj Optional instance to populate. - * @return {module:model/Rules} The populated Rules instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Rules(); - - if (data.hasOwnProperty('admin')) { - obj['admin'] = _ApiClient["default"].convertToType(data['admin'], 'Boolean'); - } - - if (data.hasOwnProperty('path_rules')) { - obj['path_rules'] = _ApiClient["default"].convertToType(data['path_rules'], [_PathRule["default"]]); - } - } - - return obj; - } - }]); - - return Rules; -}(); -/** - * Is admin - * @member {Boolean} admin - */ - - -Rules.prototype['admin'] = undefined; -/** - * The path the rules refers to - * @member {Array.} path_rules - */ - -Rules.prototype['path_rules'] = undefined; -var _default = Rules; -exports["default"] = _default; - -/***/ }), - -/***/ 25540: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _SAMLAttribute = _interopRequireDefault(__nccwpck_require__(70045)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SAMLAccessRules model module. - * @module model/SAMLAccessRules - * @version 3.3.16 - */ -var SAMLAccessRules = /*#__PURE__*/function () { - /** - * Constructs a new SAMLAccessRules. - * @alias module:model/SAMLAccessRules - */ - function SAMLAccessRules() { - _classCallCheck(this, SAMLAccessRules); - - SAMLAccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SAMLAccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SAMLAccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SAMLAccessRules} obj Optional instance to populate. - * @return {module:model/SAMLAccessRules} The populated SAMLAccessRules instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SAMLAccessRules(); - - if (data.hasOwnProperty('allowed_redirect_URIs')) { - obj['allowed_redirect_URIs'] = _ApiClient["default"].convertToType(data['allowed_redirect_URIs'], ['String']); - } - - if (data.hasOwnProperty('bound_attributes')) { - obj['bound_attributes'] = _ApiClient["default"].convertToType(data['bound_attributes'], [_SAMLAttribute["default"]]); - } - - if (data.hasOwnProperty('idp_metadata_url')) { - obj['idp_metadata_url'] = _ApiClient["default"].convertToType(data['idp_metadata_url'], 'String'); - } - - if (data.hasOwnProperty('idp_metadata_xml')) { - obj['idp_metadata_xml'] = _ApiClient["default"].convertToType(data['idp_metadata_xml'], 'String'); - } - - if (data.hasOwnProperty('unique_identifier')) { - obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); - } - } - - return obj; - } - }]); - - return SAMLAccessRules; -}(); -/** - * Allowed redirect URIs after the authentication - * @member {Array.} allowed_redirect_URIs - */ - - -SAMLAccessRules.prototype['allowed_redirect_URIs'] = undefined; -/** - * The attributes that login is restricted to. - * @member {Array.} bound_attributes - */ - -SAMLAccessRules.prototype['bound_attributes'] = undefined; -/** - * IDP metadata url - * @member {String} idp_metadata_url - */ - -SAMLAccessRules.prototype['idp_metadata_url'] = undefined; -/** - * IDP metadata XML - * @member {String} idp_metadata_xml - */ - -SAMLAccessRules.prototype['idp_metadata_xml'] = undefined; -/** - * A unique identifier to distinguish different users - * @member {String} unique_identifier - */ - -SAMLAccessRules.prototype['unique_identifier'] = undefined; -var _default = SAMLAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 70045: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SAMLAttribute model module. - * @module model/SAMLAttribute - * @version 3.3.16 - */ -var SAMLAttribute = /*#__PURE__*/function () { - /** - * Constructs a new SAMLAttribute. - * @alias module:model/SAMLAttribute - */ - function SAMLAttribute() { - _classCallCheck(this, SAMLAttribute); - - SAMLAttribute.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SAMLAttribute, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SAMLAttribute from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SAMLAttribute} obj Optional instance to populate. - * @return {module:model/SAMLAttribute} The populated SAMLAttribute instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SAMLAttribute(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('values')) { - obj['values'] = _ApiClient["default"].convertToType(data['values'], ['String']); - } - } - - return obj; - } - }]); - - return SAMLAttribute; -}(); -/** - * @member {String} name - */ - - -SAMLAttribute.prototype['name'] = undefined; -/** - * @member {Array.} values - */ - -SAMLAttribute.prototype['values'] = undefined; -var _default = SAMLAttribute; -exports["default"] = _default; - -/***/ }), - -/***/ 29238: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SSHCertificateIssueDetails model module. - * @module model/SSHCertificateIssueDetails - * @version 3.3.16 - */ -var SSHCertificateIssueDetails = /*#__PURE__*/function () { - /** - * Constructs a new SSHCertificateIssueDetails. - * @alias module:model/SSHCertificateIssueDetails - */ - function SSHCertificateIssueDetails() { - _classCallCheck(this, SSHCertificateIssueDetails); - - SSHCertificateIssueDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SSHCertificateIssueDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SSHCertificateIssueDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SSHCertificateIssueDetails} obj Optional instance to populate. - * @return {module:model/SSHCertificateIssueDetails} The populated SSHCertificateIssueDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SSHCertificateIssueDetails(); - - if (data.hasOwnProperty('allowed_domains')) { - obj['allowed_domains'] = _ApiClient["default"].convertToType(data['allowed_domains'], ['String']); - } - - if (data.hasOwnProperty('allowed_user_key_lengths')) { - obj['allowed_user_key_lengths'] = _ApiClient["default"].convertToType(data['allowed_user_key_lengths'], { - 'String': 'Number' - }); - } - - if (data.hasOwnProperty('allowed_users')) { - obj['allowed_users'] = _ApiClient["default"].convertToType(data['allowed_users'], ['String']); - } - - if (data.hasOwnProperty('cert_type')) { - obj['cert_type'] = _ApiClient["default"].convertToType(data['cert_type'], 'Number'); - } - - if (data.hasOwnProperty('critical_options')) { - obj['critical_options'] = _ApiClient["default"].convertToType(data['critical_options'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('extensions')) { - obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('principals')) { - obj['principals'] = _ApiClient["default"].convertToType(data['principals'], ['String']); - } - - if (data.hasOwnProperty('static_key_id')) { - obj['static_key_id'] = _ApiClient["default"].convertToType(data['static_key_id'], 'String'); - } - } - - return obj; - } - }]); - - return SSHCertificateIssueDetails; -}(); -/** - * Relevant for host certificate - * @member {Array.} allowed_domains - */ - - -SSHCertificateIssueDetails.prototype['allowed_domains'] = undefined; -/** - * @member {Object.} allowed_user_key_lengths - */ - -SSHCertificateIssueDetails.prototype['allowed_user_key_lengths'] = undefined; -/** - * Relevant for user certificate - * @member {Array.} allowed_users - */ - -SSHCertificateIssueDetails.prototype['allowed_users'] = undefined; -/** - * @member {Number} cert_type - */ - -SSHCertificateIssueDetails.prototype['cert_type'] = undefined; -/** - * @member {Object.} critical_options - */ - -SSHCertificateIssueDetails.prototype['critical_options'] = undefined; -/** - * @member {Object.} extensions - */ - -SSHCertificateIssueDetails.prototype['extensions'] = undefined; -/** - * @member {Array.} principals - */ - -SSHCertificateIssueDetails.prototype['principals'] = undefined; -/** - * In case it is empty, the key ID will be combination of user identifiers and a random string - * @member {String} static_key_id - */ - -SSHCertificateIssueDetails.prototype['static_key_id'] = undefined; -var _default = SSHCertificateIssueDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 615: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SSHTargetDetails model module. - * @module model/SSHTargetDetails - * @version 3.3.16 - */ -var SSHTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new SSHTargetDetails. - * @alias module:model/SSHTargetDetails - */ - function SSHTargetDetails() { - _classCallCheck(this, SSHTargetDetails); - - SSHTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SSHTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SSHTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SSHTargetDetails} obj Optional instance to populate. - * @return {module:model/SSHTargetDetails} The populated SSHTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SSHTargetDetails(); - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('private_key')) { - obj['private_key'] = _ApiClient["default"].convertToType(data['private_key'], 'String'); - } - - if (data.hasOwnProperty('private_key_password')) { - obj['private_key_password'] = _ApiClient["default"].convertToType(data['private_key_password'], 'String'); - } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } - } - - return obj; - } - }]); - - return SSHTargetDetails; -}(); -/** - * @member {String} host - */ - - -SSHTargetDetails.prototype['host'] = undefined; -/** - * @member {String} password - */ - -SSHTargetDetails.prototype['password'] = undefined; -/** - * @member {String} port - */ - -SSHTargetDetails.prototype['port'] = undefined; -/** - * @member {String} private_key - */ - -SSHTargetDetails.prototype['private_key'] = undefined; -/** - * @member {String} private_key_password - */ - -SSHTargetDetails.prototype['private_key_password'] = undefined; -/** - * @member {String} username - */ - -SSHTargetDetails.prototype['username'] = undefined; -var _default = SSHTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 48590: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SalesforceTargetDetails model module. - * @module model/SalesforceTargetDetails - * @version 3.3.16 - */ -var SalesforceTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new SalesforceTargetDetails. - * SalesforceTargetDetails - * @alias module:model/SalesforceTargetDetails - */ - function SalesforceTargetDetails() { - _classCallCheck(this, SalesforceTargetDetails); - - SalesforceTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SalesforceTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SalesforceTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SalesforceTargetDetails} obj Optional instance to populate. - * @return {module:model/SalesforceTargetDetails} The populated SalesforceTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SalesforceTargetDetails(); - - if (data.hasOwnProperty('app_private_key')) { - obj['app_private_key'] = _ApiClient["default"].convertToType(data['app_private_key'], ['Number']); - } - - if (data.hasOwnProperty('auth_flow')) { - obj['auth_flow'] = _ApiClient["default"].convertToType(data['auth_flow'], 'String'); - } - - if (data.hasOwnProperty('ca_cert_data')) { - obj['ca_cert_data'] = _ApiClient["default"].convertToType(data['ca_cert_data'], ['Number']); - } - - if (data.hasOwnProperty('ca_cert_name')) { - obj['ca_cert_name'] = _ApiClient["default"].convertToType(data['ca_cert_name'], 'String'); - } - - if (data.hasOwnProperty('client_id')) { - obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String'); - } - - if (data.hasOwnProperty('client_secret')) { - obj['client_secret'] = _ApiClient["default"].convertToType(data['client_secret'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('security_token')) { - obj['security_token'] = _ApiClient["default"].convertToType(data['security_token'], 'String'); - } - - if (data.hasOwnProperty('tenant_url')) { - obj['tenant_url'] = _ApiClient["default"].convertToType(data['tenant_url'], 'String'); - } - - if (data.hasOwnProperty('user_name')) { - obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], 'String'); - } - } - - return obj; - } - }]); - - return SalesforceTargetDetails; -}(); -/** - * params needed for jwt auth AppPrivateKey is the rsa private key in PEM format - * @member {Array.} app_private_key - */ - - -SalesforceTargetDetails.prototype['app_private_key'] = undefined; -/** - * @member {String} auth_flow - */ - -SalesforceTargetDetails.prototype['auth_flow'] = undefined; -/** - * CACertData is the rsa 4096 certificate data in PEM format - * @member {Array.} ca_cert_data - */ - -SalesforceTargetDetails.prototype['ca_cert_data'] = undefined; -/** - * CACertName is the name of the certificate in SalesForce tenant - * @member {String} ca_cert_name - */ - -SalesforceTargetDetails.prototype['ca_cert_name'] = undefined; -/** - * @member {String} client_id - */ - -SalesforceTargetDetails.prototype['client_id'] = undefined; -/** - * params needed for password auth - * @member {String} client_secret - */ - -SalesforceTargetDetails.prototype['client_secret'] = undefined; -/** - * @member {String} password - */ - -SalesforceTargetDetails.prototype['password'] = undefined; -/** - * @member {String} security_token - */ - -SalesforceTargetDetails.prototype['security_token'] = undefined; -/** - * @member {String} tenant_url - */ - -SalesforceTargetDetails.prototype['tenant_url'] = undefined; -/** - * @member {String} user_name - */ - -SalesforceTargetDetails.prototype['user_name'] = undefined; -var _default = SalesforceTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 39800: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SecretInfo model module. - * @module model/SecretInfo - * @version 3.3.16 - */ -var SecretInfo = /*#__PURE__*/function () { - /** - * Constructs a new SecretInfo. - * @alias module:model/SecretInfo - */ - function SecretInfo() { - _classCallCheck(this, SecretInfo); - - SecretInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SecretInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SecretInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SecretInfo} obj Optional instance to populate. - * @return {module:model/SecretInfo} The populated SecretInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SecretInfo(); - - if (data.hasOwnProperty('created')) { - obj['created'] = _ApiClient["default"].convertToType(data['created'], 'Date'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('expiration')) { - obj['expiration'] = _ApiClient["default"].convertToType(data['expiration'], 'Date'); - } - - if (data.hasOwnProperty('last_retrieved')) { - obj['last_retrieved'] = _ApiClient["default"].convertToType(data['last_retrieved'], 'Date'); - } - - if (data.hasOwnProperty('location')) { - obj['location'] = _ApiClient["default"].convertToType(data['location'], Object); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('secret_id')) { - obj['secret_id'] = _ApiClient["default"].convertToType(data['secret_id'], 'String'); - } - - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); - } - - if (data.hasOwnProperty('tags')) { - obj['tags'] = _ApiClient["default"].convertToType(data['tags'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - } - - return obj; - } - }]); - - return SecretInfo; -}(); -/** - * @member {Date} created - */ - - -SecretInfo.prototype['created'] = undefined; -/** - * @member {String} description - */ - -SecretInfo.prototype['description'] = undefined; -/** - * @member {Date} expiration - */ - -SecretInfo.prototype['expiration'] = undefined; -/** - * @member {Date} last_retrieved - */ - -SecretInfo.prototype['last_retrieved'] = undefined; -/** - * @member {Object} location - */ - -SecretInfo.prototype['location'] = undefined; -/** - * @member {String} name - */ - -SecretInfo.prototype['name'] = undefined; -/** - * @member {String} secret_id - */ - -SecretInfo.prototype['secret_id'] = undefined; -/** - * @member {Boolean} status - */ - -SecretInfo.prototype['status'] = undefined; -/** - * @member {Object.} tags - */ - -SecretInfo.prototype['tags'] = undefined; -/** - * @member {String} type - */ - -SecretInfo.prototype['type'] = undefined; -var _default = SecretInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 66513: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SecureRemoteAccess model module. - * @module model/SecureRemoteAccess - * @version 3.3.16 - */ -var SecureRemoteAccess = /*#__PURE__*/function () { - /** - * Constructs a new SecureRemoteAccess. - * @alias module:model/SecureRemoteAccess - */ - function SecureRemoteAccess() { - _classCallCheck(this, SecureRemoteAccess); - - SecureRemoteAccess.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SecureRemoteAccess, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SecureRemoteAccess from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SecureRemoteAccess} obj Optional instance to populate. - * @return {module:model/SecureRemoteAccess} The populated SecureRemoteAccess instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SecureRemoteAccess(); - - if (data.hasOwnProperty('account_id')) { - obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); - } - - if (data.hasOwnProperty('allow_port_forwarding')) { - obj['allow_port_forwarding'] = _ApiClient["default"].convertToType(data['allow_port_forwarding'], 'Boolean'); - } - - if (data.hasOwnProperty('allow_providing_external_username')) { - obj['allow_providing_external_username'] = _ApiClient["default"].convertToType(data['allow_providing_external_username'], 'Boolean'); - } - - if (data.hasOwnProperty('bastion_api')) { - obj['bastion_api'] = _ApiClient["default"].convertToType(data['bastion_api'], 'String'); - } - - if (data.hasOwnProperty('bastion_issuer')) { - obj['bastion_issuer'] = _ApiClient["default"].convertToType(data['bastion_issuer'], 'String'); - } - - if (data.hasOwnProperty('bastion_issuer_id')) { - obj['bastion_issuer_id'] = _ApiClient["default"].convertToType(data['bastion_issuer_id'], 'Number'); - } - - if (data.hasOwnProperty('bastion_ssh')) { - obj['bastion_ssh'] = _ApiClient["default"].convertToType(data['bastion_ssh'], 'String'); - } - - if (data.hasOwnProperty('category')) { - obj['category'] = _ApiClient["default"].convertToType(data['category'], 'String'); - } - - if (data.hasOwnProperty('dashboard_url')) { - obj['dashboard_url'] = _ApiClient["default"].convertToType(data['dashboard_url'], 'String'); - } - - if (data.hasOwnProperty('db_name')) { - obj['db_name'] = _ApiClient["default"].convertToType(data['db_name'], 'String'); - } - - if (data.hasOwnProperty('domain')) { - obj['domain'] = _ApiClient["default"].convertToType(data['domain'], 'String'); - } - - if (data.hasOwnProperty('enable')) { - obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'Boolean'); - } - - if (data.hasOwnProperty('endpoint')) { - obj['endpoint'] = _ApiClient["default"].convertToType(data['endpoint'], 'String'); - } - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], ['String']); - } - - if (data.hasOwnProperty('is_cli')) { - obj['is_cli'] = _ApiClient["default"].convertToType(data['is_cli'], 'Boolean'); - } - - if (data.hasOwnProperty('is_web')) { - obj['is_web'] = _ApiClient["default"].convertToType(data['is_web'], 'Boolean'); - } - - if (data.hasOwnProperty('isolated')) { - obj['isolated'] = _ApiClient["default"].convertToType(data['isolated'], 'Boolean'); - } - - if (data.hasOwnProperty('native')) { - obj['native'] = _ApiClient["default"].convertToType(data['native'], 'Boolean'); - } - - if (data.hasOwnProperty('rdp_user')) { - obj['rdp_user'] = _ApiClient["default"].convertToType(data['rdp_user'], 'String'); - } - - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } - - if (data.hasOwnProperty('rotate_after_disconnect')) { - obj['rotate_after_disconnect'] = _ApiClient["default"].convertToType(data['rotate_after_disconnect'], 'Boolean'); - } - - if (data.hasOwnProperty('schema')) { - obj['schema'] = _ApiClient["default"].convertToType(data['schema'], 'String'); - } - - if (data.hasOwnProperty('ssh_password')) { - obj['ssh_password'] = _ApiClient["default"].convertToType(data['ssh_password'], 'Boolean'); - } - - if (data.hasOwnProperty('ssh_private_key')) { - obj['ssh_private_key'] = _ApiClient["default"].convertToType(data['ssh_private_key'], 'Boolean'); - } - - if (data.hasOwnProperty('ssh_user')) { - obj['ssh_user'] = _ApiClient["default"].convertToType(data['ssh_user'], 'String'); - } - - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - - if (data.hasOwnProperty('use_internal_bastion')) { - obj['use_internal_bastion'] = _ApiClient["default"].convertToType(data['use_internal_bastion'], 'Boolean'); - } - - if (data.hasOwnProperty('web_proxy')) { - obj['web_proxy'] = _ApiClient["default"].convertToType(data['web_proxy'], 'Boolean'); - } - } - - return obj; - } - }]); - - return SecureRemoteAccess; -}(); -/** - * @member {String} account_id - */ - - -SecureRemoteAccess.prototype['account_id'] = undefined; -/** - * @member {Boolean} allow_port_forwarding - */ - -SecureRemoteAccess.prototype['allow_port_forwarding'] = undefined; -/** - * @member {Boolean} allow_providing_external_username - */ - -SecureRemoteAccess.prototype['allow_providing_external_username'] = undefined; -/** - * @member {String} bastion_api - */ - -SecureRemoteAccess.prototype['bastion_api'] = undefined; -/** - * @member {String} bastion_issuer - */ - -SecureRemoteAccess.prototype['bastion_issuer'] = undefined; -/** - * @member {Number} bastion_issuer_id - */ - -SecureRemoteAccess.prototype['bastion_issuer_id'] = undefined; -/** - * @member {String} bastion_ssh - */ - -SecureRemoteAccess.prototype['bastion_ssh'] = undefined; -/** - * @member {String} category - */ - -SecureRemoteAccess.prototype['category'] = undefined; -/** - * @member {String} dashboard_url - */ - -SecureRemoteAccess.prototype['dashboard_url'] = undefined; -/** - * @member {String} db_name - */ - -SecureRemoteAccess.prototype['db_name'] = undefined; -/** - * @member {String} domain - */ - -SecureRemoteAccess.prototype['domain'] = undefined; -/** - * @member {Boolean} enable - */ - -SecureRemoteAccess.prototype['enable'] = undefined; -/** - * @member {String} endpoint - */ - -SecureRemoteAccess.prototype['endpoint'] = undefined; -/** - * @member {Array.} host - */ - -SecureRemoteAccess.prototype['host'] = undefined; -/** - * @member {Boolean} is_cli - */ - -SecureRemoteAccess.prototype['is_cli'] = undefined; -/** - * @member {Boolean} is_web - */ - -SecureRemoteAccess.prototype['is_web'] = undefined; -/** - * @member {Boolean} isolated - */ - -SecureRemoteAccess.prototype['isolated'] = undefined; -/** - * @member {Boolean} native - */ - -SecureRemoteAccess.prototype['native'] = undefined; -/** - * @member {String} rdp_user - */ - -SecureRemoteAccess.prototype['rdp_user'] = undefined; -/** - * @member {String} region - */ - -SecureRemoteAccess.prototype['region'] = undefined; -/** - * @member {Boolean} rotate_after_disconnect - */ - -SecureRemoteAccess.prototype['rotate_after_disconnect'] = undefined; -/** - * @member {String} schema - */ - -SecureRemoteAccess.prototype['schema'] = undefined; -/** - * @member {Boolean} ssh_password - */ - -SecureRemoteAccess.prototype['ssh_password'] = undefined; -/** - * @member {Boolean} ssh_private_key - */ - -SecureRemoteAccess.prototype['ssh_private_key'] = undefined; -/** - * @member {String} ssh_user - */ - -SecureRemoteAccess.prototype['ssh_user'] = undefined; -/** - * @member {String} url - */ - -SecureRemoteAccess.prototype['url'] = undefined; -/** - * @member {Boolean} use_internal_bastion - */ - -SecureRemoteAccess.prototype['use_internal_bastion'] = undefined; -/** - * @member {Boolean} web_proxy - */ - -SecureRemoteAccess.prototype['web_proxy'] = undefined; -var _default = SecureRemoteAccess; -exports["default"] = _default; - -/***/ }), - -/***/ 75499: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); - -var _ServerInventoryPayload = _interopRequireDefault(__nccwpck_require__(937)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ServerInventoryMigration model module. - * @module model/ServerInventoryMigration - * @version 3.3.16 - */ -var ServerInventoryMigration = /*#__PURE__*/function () { - /** - * Constructs a new ServerInventoryMigration. - * @alias module:model/ServerInventoryMigration - */ - function ServerInventoryMigration() { - _classCallCheck(this, ServerInventoryMigration); - - ServerInventoryMigration.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ServerInventoryMigration, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ServerInventoryMigration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ServerInventoryMigration} obj Optional instance to populate. - * @return {module:model/ServerInventoryMigration} The populated ServerInventoryMigration instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ServerInventoryMigration(); - - if (data.hasOwnProperty('general')) { - obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); - } - - if (data.hasOwnProperty('payload')) { - obj['payload'] = _ServerInventoryPayload["default"].constructFromObject(data['payload']); - } - } - - return obj; - } - }]); - - return ServerInventoryMigration; -}(); -/** - * @member {module:model/MigrationGeneral} general - */ - - -ServerInventoryMigration.prototype['general'] = undefined; -/** - * @member {module:model/ServerInventoryPayload} payload - */ - -ServerInventoryMigration.prototype['payload'] = undefined; -var _default = ServerInventoryMigration; -exports["default"] = _default; - -/***/ }), - -/***/ 937: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ServerInventoryPayload model module. - * @module model/ServerInventoryPayload - * @version 3.3.16 - */ -var ServerInventoryPayload = /*#__PURE__*/function () { - /** - * Constructs a new ServerInventoryPayload. - * @alias module:model/ServerInventoryPayload - */ - function ServerInventoryPayload() { - _classCallCheck(this, ServerInventoryPayload); - - ServerInventoryPayload.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ServerInventoryPayload, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ServerInventoryPayload from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ServerInventoryPayload} obj Optional instance to populate. - * @return {module:model/ServerInventoryPayload} The populated ServerInventoryPayload instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ServerInventoryPayload(); - - if (data.hasOwnProperty('auto_rotate')) { - obj['auto_rotate'] = _ApiClient["default"].convertToType(data['auto_rotate'], 'Boolean'); - } - - if (data.hasOwnProperty('auto_rotate_interval_in_days')) { - obj['auto_rotate_interval_in_days'] = _ApiClient["default"].convertToType(data['auto_rotate_interval_in_days'], 'Number'); - } - - if (data.hasOwnProperty('auto_rotate_rotation_hour')) { - obj['auto_rotate_rotation_hour'] = _ApiClient["default"].convertToType(data['auto_rotate_rotation_hour'], 'Number'); - } - - if (data.hasOwnProperty('enable_rdp_sra')) { - obj['enable_rdp_sra'] = _ApiClient["default"].convertToType(data['enable_rdp_sra'], 'Boolean'); - } - - if (data.hasOwnProperty('migration_target_id')) { - obj['migration_target_id'] = _ApiClient["default"].convertToType(data['migration_target_id'], 'Number'); - } - - if (data.hasOwnProperty('server_targets_path_template')) { - obj['server_targets_path_template'] = _ApiClient["default"].convertToType(data['server_targets_path_template'], 'String'); - } - - if (data.hasOwnProperty('users_ignore_list')) { - obj['users_ignore_list'] = _ApiClient["default"].convertToType(data['users_ignore_list'], { - 'String': 'Boolean' - }); - } - - if (data.hasOwnProperty('users_rotated_secrets_path_template')) { - obj['users_rotated_secrets_path_template'] = _ApiClient["default"].convertToType(data['users_rotated_secrets_path_template'], 'String'); - } - } - - return obj; - } - }]); - - return ServerInventoryPayload; -}(); -/** - * @member {Boolean} auto_rotate - */ - - -ServerInventoryPayload.prototype['auto_rotate'] = undefined; -/** - * @member {Number} auto_rotate_interval_in_days - */ - -ServerInventoryPayload.prototype['auto_rotate_interval_in_days'] = undefined; -/** - * @member {Number} auto_rotate_rotation_hour - */ - -ServerInventoryPayload.prototype['auto_rotate_rotation_hour'] = undefined; -/** - * @member {Boolean} enable_rdp_sra - */ - -ServerInventoryPayload.prototype['enable_rdp_sra'] = undefined; -/** - * @member {Number} migration_target_id - */ - -ServerInventoryPayload.prototype['migration_target_id'] = undefined; -/** - * @member {String} server_targets_path_template - */ - -ServerInventoryPayload.prototype['server_targets_path_template'] = undefined; -/** - * @member {Object.} users_ignore_list - */ - -ServerInventoryPayload.prototype['users_ignore_list'] = undefined; -/** - * @member {String} users_rotated_secrets_path_template - */ - -ServerInventoryPayload.prototype['users_rotated_secrets_path_template'] = undefined; -var _default = ServerInventoryPayload; -exports["default"] = _default; - -/***/ }), - -/***/ 53920: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SetItemState model module. - * @module model/SetItemState - * @version 3.3.16 - */ -var SetItemState = /*#__PURE__*/function () { - /** - * Constructs a new SetItemState. - * @alias module:model/SetItemState - * @param desiredState {String} Desired item state (Enabled, Disabled) - * @param name {String} Current item name - */ - function SetItemState(desiredState, name) { - _classCallCheck(this, SetItemState); - - SetItemState.initialize(this, desiredState, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SetItemState, null, [{ - key: "initialize", - value: function initialize(obj, desiredState, name) { - obj['desired-state'] = desiredState; - obj['name'] = name; - } - /** - * Constructs a SetItemState from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetItemState} obj Optional instance to populate. - * @return {module:model/SetItemState} The populated SetItemState instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SetItemState(); - - if (data.hasOwnProperty('desired-state')) { - obj['desired-state'] = _ApiClient["default"].convertToType(data['desired-state'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return SetItemState; -}(); -/** - * Desired item state (Enabled, Disabled) - * @member {String} desired-state - */ - - -SetItemState.prototype['desired-state'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -SetItemState.prototype['json'] = false; -/** - * Current item name - * @member {String} name - */ - -SetItemState.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -SetItemState.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -SetItemState.prototype['uid-token'] = undefined; -/** - * The specific version you want to update: 0=item level state (default) - * @member {Number} version - * @default 0 - */ - -SetItemState.prototype['version'] = 0; -var _default = SetItemState; -exports["default"] = _default; - -/***/ }), - -/***/ 57460: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SetRoleRule model module. - * @module model/SetRoleRule - * @version 3.3.16 - */ -var SetRoleRule = /*#__PURE__*/function () { - /** - * Constructs a new SetRoleRule. - * @alias module:model/SetRoleRule - * @param capability {Array.} List of the approved/denied capabilities in the path options: [read, create, update, delete, list, deny] - * @param path {String} The path the rule refers to - * @param roleName {String} The role name to be updated - */ - function SetRoleRule(capability, path, roleName) { - _classCallCheck(this, SetRoleRule); - - SetRoleRule.initialize(this, capability, path, roleName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SetRoleRule, null, [{ - key: "initialize", - value: function initialize(obj, capability, path, roleName) { - obj['capability'] = capability; - obj['path'] = path; - obj['role-name'] = roleName; - } - /** - * Constructs a SetRoleRule from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetRoleRule} obj Optional instance to populate. - * @return {module:model/SetRoleRule} The populated SetRoleRule instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SetRoleRule(); - - if (data.hasOwnProperty('capability')) { - obj['capability'] = _ApiClient["default"].convertToType(data['capability'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('path')) { - obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); - } - - if (data.hasOwnProperty('role-name')) { - obj['role-name'] = _ApiClient["default"].convertToType(data['role-name'], 'String'); - } - - if (data.hasOwnProperty('rule-type')) { - obj['rule-type'] = _ApiClient["default"].convertToType(data['rule-type'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return SetRoleRule; -}(); -/** - * List of the approved/denied capabilities in the path options: [read, create, update, delete, list, deny] - * @member {Array.} capability - */ - - -SetRoleRule.prototype['capability'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -SetRoleRule.prototype['json'] = false; -/** - * The path the rule refers to - * @member {String} path - */ - -SetRoleRule.prototype['path'] = undefined; -/** - * The role name to be updated - * @member {String} role-name - */ - -SetRoleRule.prototype['role-name'] = undefined; -/** - * item-rule, target-rule, role-rule, auth-method-rule, search-rule, reports-rule, gw-reports-rule or sra-reports-rule - * @member {String} rule-type - * @default 'item-rule' - */ - -SetRoleRule.prototype['rule-type'] = 'item-rule'; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -SetRoleRule.prototype['token'] = undefined; -/** - * RoleRule ttl - * @member {Number} ttl - */ - -SetRoleRule.prototype['ttl'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -SetRoleRule.prototype['uid-token'] = undefined; -var _default = SetRoleRule; -exports["default"] = _default; - -/***/ }), - -/***/ 21310: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ShareItem model module. - * @module model/ShareItem - * @version 3.3.16 - */ -var ShareItem = /*#__PURE__*/function () { - /** - * Constructs a new ShareItem. - * @alias module:model/ShareItem - * @param action {String} Action to be performed on the item [start/stop/describe] - * @param itemName {String} Item name - */ - function ShareItem(action, itemName) { - _classCallCheck(this, ShareItem); - - ShareItem.initialize(this, action, itemName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ShareItem, null, [{ - key: "initialize", - value: function initialize(obj, action, itemName) { - obj['action'] = action; - obj['item-name'] = itemName; - } - /** - * Constructs a ShareItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ShareItem} obj Optional instance to populate. - * @return {module:model/ShareItem} The populated ShareItem instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ShareItem(); - - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); - } - - if (data.hasOwnProperty('action')) { - obj['action'] = _ApiClient["default"].convertToType(data['action'], 'String'); - } - - if (data.hasOwnProperty('emails')) { - obj['emails'] = _ApiClient["default"].convertToType(data['emails'], ['String']); - } - - if (data.hasOwnProperty('item-name')) { - obj['item-name'] = _ApiClient["default"].convertToType(data['item-name'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('view-once')) { - obj['view-once'] = _ApiClient["default"].convertToType(data['view-once'], 'Boolean'); - } - } - - return obj; - } - }]); - - return ShareItem; -}(); -/** - * for personal password manager - * @member {String} accessibility - * @default 'regular' - */ - - -ShareItem.prototype['accessibility'] = 'regular'; -/** - * Action to be performed on the item [start/stop/describe] - * @member {String} action - */ - -ShareItem.prototype['action'] = undefined; -/** - * For Password Management use, reflect the website context - * @member {Array.} emails - */ - -ShareItem.prototype['emails'] = undefined; -/** - * Item name - * @member {String} item-name - */ - -ShareItem.prototype['item-name'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -ShareItem.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -ShareItem.prototype['token'] = undefined; -/** - * TTL of the Availability of the shared secret in seconds - * @member {Number} ttl - */ - -ShareItem.prototype['ttl'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -ShareItem.prototype['uid-token'] = undefined; -/** - * ViewOnlyOnce Shared secrets can only be viewed once [true/false] - * @member {Boolean} view-once - * @default false - */ - -ShareItem.prototype['view-once'] = false; -var _default = ShareItem; -exports["default"] = _default; - -/***/ }), - -/***/ 78156: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SharingPolicyInfo model module. - * @module model/SharingPolicyInfo - * @version 3.3.16 - */ -var SharingPolicyInfo = /*#__PURE__*/function () { - /** - * Constructs a new SharingPolicyInfo. - * @alias module:model/SharingPolicyInfo - */ - function SharingPolicyInfo() { - _classCallCheck(this, SharingPolicyInfo); - - SharingPolicyInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SharingPolicyInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SharingPolicyInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SharingPolicyInfo} obj Optional instance to populate. - * @return {module:model/SharingPolicyInfo} The populated SharingPolicyInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SharingPolicyInfo(); - - if (data.hasOwnProperty('default_share_link_ttl')) { - obj['default_share_link_ttl'] = _ApiClient["default"].convertToType(data['default_share_link_ttl'], 'Number'); - } - } - - return obj; - } - }]); - - return SharingPolicyInfo; -}(); -/** - * @member {Number} default_share_link_ttl - */ - - -SharingPolicyInfo.prototype['default_share_link_ttl'] = undefined; -var _default = SharingPolicyInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 61530: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SignDataWithClassicKey model module. - * @module model/SignDataWithClassicKey - * @version 3.3.16 - */ -var SignDataWithClassicKey = /*#__PURE__*/function () { - /** - * Constructs a new SignDataWithClassicKey. - * @alias module:model/SignDataWithClassicKey - * @param data {String} Data - * @param displayId {String} The name of the key to use in the sign data process - * @param name {String} ClassicKey name - * @param version {Number} classic key version - */ - function SignDataWithClassicKey(data, displayId, name, version) { - _classCallCheck(this, SignDataWithClassicKey); - - SignDataWithClassicKey.initialize(this, data, displayId, name, version); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SignDataWithClassicKey, null, [{ - key: "initialize", - value: function initialize(obj, data, displayId, name, version) { - obj['data'] = data; - obj['display-id'] = displayId; - obj['name'] = name; - obj['version'] = version; - } - /** - * Constructs a SignDataWithClassicKey from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignDataWithClassicKey} obj Optional instance to populate. - * @return {module:model/SignDataWithClassicKey} The populated SignDataWithClassicKey instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SignDataWithClassicKey(); - - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('hashed')) { - obj['hashed'] = _ApiClient["default"].convertToType(data['hashed'], 'Boolean'); - } - - if (data.hasOwnProperty('hashing-method')) { - obj['hashing-method'] = _ApiClient["default"].convertToType(data['hashing-method'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return SignDataWithClassicKey; -}(); -/** - * Data - * @member {String} data - */ - - -SignDataWithClassicKey.prototype['data'] = undefined; -/** - * The name of the key to use in the sign data process - * @member {String} display-id - */ - -SignDataWithClassicKey.prototype['display-id'] = undefined; -/** - * Defines whether the data should be hashed as part of the signing. If true, the data will not be hashed - * @member {Boolean} hashed - * @default false - */ - -SignDataWithClassicKey.prototype['hashed'] = false; -/** - * HashingMethod - * @member {String} hashing-method - * @default 'SHA256' - */ - -SignDataWithClassicKey.prototype['hashing-method'] = 'SHA256'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -SignDataWithClassicKey.prototype['json'] = false; -/** - * ClassicKey name - * @member {String} name - */ - -SignDataWithClassicKey.prototype['name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -SignDataWithClassicKey.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -SignDataWithClassicKey.prototype['uid-token'] = undefined; -/** - * classic key version - * @member {Number} version - */ - -SignDataWithClassicKey.prototype['version'] = undefined; -var _default = SignDataWithClassicKey; -exports["default"] = _default; - -/***/ }), - -/***/ 95289: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SignGPG model module. - * @module model/SignGPG - * @version 3.3.16 - */ -var SignGPG = /*#__PURE__*/function () { - /** - * Constructs a new SignGPG. - * @alias module:model/SignGPG - * @param keyName {String} The name of the key to use in the encryption process - * @param message {String} The message to be signed in base64 format - */ - function SignGPG(keyName, message) { - _classCallCheck(this, SignGPG); - - SignGPG.initialize(this, keyName, message); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SignGPG, null, [{ - key: "initialize", - value: function initialize(obj, keyName, message) { - obj['key-name'] = keyName; - obj['message'] = message; - } - /** - * Constructs a SignGPG from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignGPG} obj Optional instance to populate. - * @return {module:model/SignGPG} The populated SignGPG instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SignGPG(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - - if (data.hasOwnProperty('passphrase')) { - obj['passphrase'] = _ApiClient["default"].convertToType(data['passphrase'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return SignGPG; -}(); -/** - * The display id of the key to use in the encryption process - * @member {String} display-id - */ - - -SignGPG.prototype['display-id'] = undefined; -/** - * The item id of the key to use in the encryption process - * @member {Number} item-id - */ - -SignGPG.prototype['item-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -SignGPG.prototype['json'] = false; -/** - * The name of the key to use in the encryption process - * @member {String} key-name - */ - -SignGPG.prototype['key-name'] = undefined; -/** - * The message to be signed in base64 format - * @member {String} message - */ - -SignGPG.prototype['message'] = undefined; -/** - * Passphrase that was used to generate the key - * @member {String} passphrase - */ - -SignGPG.prototype['passphrase'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -SignGPG.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -SignGPG.prototype['uid-token'] = undefined; -var _default = SignGPG; -exports["default"] = _default; - -/***/ }), - -/***/ 72732: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SignGPGOutput model module. - * @module model/SignGPGOutput - * @version 3.3.16 - */ -var SignGPGOutput = /*#__PURE__*/function () { - /** - * Constructs a new SignGPGOutput. - * @alias module:model/SignGPGOutput - */ - function SignGPGOutput() { - _classCallCheck(this, SignGPGOutput); - - SignGPGOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SignGPGOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SignGPGOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignGPGOutput} obj Optional instance to populate. - * @return {module:model/SignGPGOutput} The populated SignGPGOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SignGPGOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return SignGPGOutput; -}(); -/** - * @member {String} result - */ - - -SignGPGOutput.prototype['result'] = undefined; -var _default = SignGPGOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 23913: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SignJWTOutput model module. - * @module model/SignJWTOutput - * @version 3.3.16 - */ -var SignJWTOutput = /*#__PURE__*/function () { - /** - * Constructs a new SignJWTOutput. - * @alias module:model/SignJWTOutput - */ - function SignJWTOutput() { - _classCallCheck(this, SignJWTOutput); - - SignJWTOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SignJWTOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SignJWTOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignJWTOutput} obj Optional instance to populate. - * @return {module:model/SignJWTOutput} The populated SignJWTOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SignJWTOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return SignJWTOutput; -}(); -/** - * @member {String} result - */ - - -SignJWTOutput.prototype['result'] = undefined; -var _default = SignJWTOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 32259: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SignJWTWithClassicKey model module. - * @module model/SignJWTWithClassicKey - * @version 3.3.16 - */ -var SignJWTWithClassicKey = /*#__PURE__*/function () { - /** - * Constructs a new SignJWTWithClassicKey. - * @alias module:model/SignJWTWithClassicKey - * @param displayId {String} The name of the key to use in the sign JWT process - * @param jwtClaims {String} JWTClaims - * @param signingMethod {String} SigningMethod - * @param version {Number} classic key version - */ - function SignJWTWithClassicKey(displayId, jwtClaims, signingMethod, version) { - _classCallCheck(this, SignJWTWithClassicKey); - - SignJWTWithClassicKey.initialize(this, displayId, jwtClaims, signingMethod, version); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SignJWTWithClassicKey, null, [{ - key: "initialize", - value: function initialize(obj, displayId, jwtClaims, signingMethod, version) { - obj['display-id'] = displayId; - obj['jwt-claims'] = jwtClaims; - obj['signing-method'] = signingMethod; - obj['version'] = version; - } - /** - * Constructs a SignJWTWithClassicKey from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignJWTWithClassicKey} obj Optional instance to populate. - * @return {module:model/SignJWTWithClassicKey} The populated SignJWTWithClassicKey instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SignJWTWithClassicKey(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-claims')) { - obj['jwt-claims'] = _ApiClient["default"].convertToType(data['jwt-claims'], 'String'); - } - - if (data.hasOwnProperty('signing-method')) { - obj['signing-method'] = _ApiClient["default"].convertToType(data['signing-method'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return SignJWTWithClassicKey; -}(); -/** - * The name of the key to use in the sign JWT process - * @member {String} display-id - */ - - -SignJWTWithClassicKey.prototype['display-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -SignJWTWithClassicKey.prototype['json'] = false; -/** - * JWTClaims - * @member {String} jwt-claims - */ - -SignJWTWithClassicKey.prototype['jwt-claims'] = undefined; -/** - * SigningMethod - * @member {String} signing-method - */ - -SignJWTWithClassicKey.prototype['signing-method'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -SignJWTWithClassicKey.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -SignJWTWithClassicKey.prototype['uid-token'] = undefined; -/** - * classic key version - * @member {Number} version - */ - -SignJWTWithClassicKey.prototype['version'] = undefined; -var _default = SignJWTWithClassicKey; -exports["default"] = _default; - -/***/ }), - -/***/ 40040: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SignOutput model module. - * @module model/SignOutput - * @version 3.3.16 - */ -var SignOutput = /*#__PURE__*/function () { - /** - * Constructs a new SignOutput. - * @alias module:model/SignOutput - */ - function SignOutput() { - _classCallCheck(this, SignOutput); - - SignOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SignOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SignOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignOutput} obj Optional instance to populate. - * @return {module:model/SignOutput} The populated SignOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SignOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return SignOutput; -}(); -/** - * @member {String} result - */ - - -SignOutput.prototype['result'] = undefined; -var _default = SignOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 5227: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SignPKCS1 model module. - * @module model/SignPKCS1 - * @version 3.3.16 - */ -var SignPKCS1 = /*#__PURE__*/function () { - /** - * Constructs a new SignPKCS1. - * signPKCS1 is a command that calculates the signature of hashed data using RSASSA-PKCS1-V1_5-SIGN from RSA PKCS#1 v1.5. - * @alias module:model/SignPKCS1 - * @param message {String} The message to be signed - */ - function SignPKCS1(message) { - _classCallCheck(this, SignPKCS1); - - SignPKCS1.initialize(this, message); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SignPKCS1, null, [{ - key: "initialize", - value: function initialize(obj, message) { - obj['message'] = message; - } - /** - * Constructs a SignPKCS1 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignPKCS1} obj Optional instance to populate. - * @return {module:model/SignPKCS1} The populated SignPKCS1 instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SignPKCS1(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return SignPKCS1; -}(); -/** - * The display id of the key to use in the signing process - * @member {String} display-id - */ - - -SignPKCS1.prototype['display-id'] = undefined; -/** - * The item id of the key to use in the signing process - * @member {Number} item-id - */ - -SignPKCS1.prototype['item-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -SignPKCS1.prototype['json'] = false; -/** - * The name of the RSA key to use in the signing process - * @member {String} key-name - */ - -SignPKCS1.prototype['key-name'] = undefined; -/** - * The message to be signed - * @member {String} message - */ - -SignPKCS1.prototype['message'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -SignPKCS1.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -SignPKCS1.prototype['uid-token'] = undefined; -var _default = SignPKCS1; -exports["default"] = _default; - -/***/ }), - -/***/ 76138: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SignPKCS1Output model module. - * @module model/SignPKCS1Output - * @version 3.3.16 - */ -var SignPKCS1Output = /*#__PURE__*/function () { - /** - * Constructs a new SignPKCS1Output. - * @alias module:model/SignPKCS1Output - */ - function SignPKCS1Output() { - _classCallCheck(this, SignPKCS1Output); - - SignPKCS1Output.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SignPKCS1Output, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SignPKCS1Output from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignPKCS1Output} obj Optional instance to populate. - * @return {module:model/SignPKCS1Output} The populated SignPKCS1Output instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SignPKCS1Output(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], ['Number']); - } - } - - return obj; - } - }]); - - return SignPKCS1Output; -}(); -/** - * @member {Array.} result - */ - - -SignPKCS1Output.prototype['result'] = undefined; -var _default = SignPKCS1Output; -exports["default"] = _default; - -/***/ }), - -/***/ 50538: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SignPKICertOutput model module. - * @module model/SignPKICertOutput - * @version 3.3.16 - */ -var SignPKICertOutput = /*#__PURE__*/function () { - /** - * Constructs a new SignPKICertOutput. - * @alias module:model/SignPKICertOutput - */ - function SignPKICertOutput() { - _classCallCheck(this, SignPKICertOutput); - - SignPKICertOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SignPKICertOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SignPKICertOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignPKICertOutput} obj Optional instance to populate. - * @return {module:model/SignPKICertOutput} The populated SignPKICertOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SignPKICertOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return SignPKICertOutput; -}(); -/** - * @member {String} result - */ - - -SignPKICertOutput.prototype['result'] = undefined; -var _default = SignPKICertOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 52048: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SignPKICertWithClassicKey model module. - * @module model/SignPKICertWithClassicKey - * @version 3.3.16 - */ -var SignPKICertWithClassicKey = /*#__PURE__*/function () { - /** - * Constructs a new SignPKICertWithClassicKey. - * @alias module:model/SignPKICertWithClassicKey - * @param displayId {String} The name of the key to use in the sign PKI Cert process - * @param signingMethod {String} SigningMethod - * @param ttl {Number} he requested Time To Live for the certificate, in seconds - * @param version {Number} classic key version - */ - function SignPKICertWithClassicKey(displayId, signingMethod, ttl, version) { - _classCallCheck(this, SignPKICertWithClassicKey); - - SignPKICertWithClassicKey.initialize(this, displayId, signingMethod, ttl, version); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SignPKICertWithClassicKey, null, [{ - key: "initialize", - value: function initialize(obj, displayId, signingMethod, ttl, version) { - obj['display-id'] = displayId; - obj['signing-method'] = signingMethod; - obj['ttl'] = ttl; - obj['version'] = version; - } - /** - * Constructs a SignPKICertWithClassicKey from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SignPKICertWithClassicKey} obj Optional instance to populate. - * @return {module:model/SignPKICertWithClassicKey} The populated SignPKICertWithClassicKey instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SignPKICertWithClassicKey(); - - if (data.hasOwnProperty('common-name')) { - obj['common-name'] = _ApiClient["default"].convertToType(data['common-name'], 'String'); - } - - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); - } - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('dns-names')) { - obj['dns-names'] = _ApiClient["default"].convertToType(data['dns-names'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-usage')) { - obj['key-usage'] = _ApiClient["default"].convertToType(data['key-usage'], 'String'); - } - - if (data.hasOwnProperty('locality')) { - obj['locality'] = _ApiClient["default"].convertToType(data['locality'], 'String'); - } - - if (data.hasOwnProperty('organizational-units')) { - obj['organizational-units'] = _ApiClient["default"].convertToType(data['organizational-units'], 'String'); - } - - if (data.hasOwnProperty('organizations')) { - obj['organizations'] = _ApiClient["default"].convertToType(data['organizations'], 'String'); - } - - if (data.hasOwnProperty('postal-code')) { - obj['postal-code'] = _ApiClient["default"].convertToType(data['postal-code'], 'String'); - } - - if (data.hasOwnProperty('province')) { - obj['province'] = _ApiClient["default"].convertToType(data['province'], 'String'); - } - - if (data.hasOwnProperty('public-key-pem-data')) { - obj['public-key-pem-data'] = _ApiClient["default"].convertToType(data['public-key-pem-data'], 'String'); - } - - if (data.hasOwnProperty('signing-method')) { - obj['signing-method'] = _ApiClient["default"].convertToType(data['signing-method'], 'String'); - } - - if (data.hasOwnProperty('street-address')) { - obj['street-address'] = _ApiClient["default"].convertToType(data['street-address'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('uri-sans')) { - obj['uri-sans'] = _ApiClient["default"].convertToType(data['uri-sans'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return SignPKICertWithClassicKey; -}(); -/** - * The common name to be included in the PKI certificate - * @member {String} common-name - */ - - -SignPKICertWithClassicKey.prototype['common-name'] = undefined; -/** - * A comma-separated list of the country that will be set in the issued certificate - * @member {String} country - */ - -SignPKICertWithClassicKey.prototype['country'] = undefined; -/** - * The name of the key to use in the sign PKI Cert process - * @member {String} display-id - */ - -SignPKICertWithClassicKey.prototype['display-id'] = undefined; -/** - * DNS Names to be included in the PKI certificate (in a comma-delimited list) - * @member {String} dns-names - */ - -SignPKICertWithClassicKey.prototype['dns-names'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -SignPKICertWithClassicKey.prototype['json'] = false; -/** - * key-usage - * @member {String} key-usage - * @default 'DigitalSignature,KeyAgreement,KeyEncipherment' - */ - -SignPKICertWithClassicKey.prototype['key-usage'] = 'DigitalSignature,KeyAgreement,KeyEncipherment'; -/** - * A comma-separated list of the locality that will be set in the issued certificate - * @member {String} locality - */ - -SignPKICertWithClassicKey.prototype['locality'] = undefined; -/** - * A comma-separated list of organizational units (OU) that will be set in the issued certificate - * @member {String} organizational-units - */ - -SignPKICertWithClassicKey.prototype['organizational-units'] = undefined; -/** - * A comma-separated list of organizations (O) that will be set in the issued certificate - * @member {String} organizations - */ - -SignPKICertWithClassicKey.prototype['organizations'] = undefined; -/** - * A comma-separated list of the postal code that will be set in the issued certificate - * @member {String} postal-code - */ - -SignPKICertWithClassicKey.prototype['postal-code'] = undefined; -/** - * A comma-separated list of the province that will be set in the issued certificate - * @member {String} province - */ - -SignPKICertWithClassicKey.prototype['province'] = undefined; -/** - * PublicKey using for signing in a PEM format. - * @member {String} public-key-pem-data - */ - -SignPKICertWithClassicKey.prototype['public-key-pem-data'] = undefined; -/** - * SigningMethod - * @member {String} signing-method - */ - -SignPKICertWithClassicKey.prototype['signing-method'] = undefined; -/** - * A comma-separated list of the street address that will be set in the issued certificate - * @member {String} street-address - */ - -SignPKICertWithClassicKey.prototype['street-address'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -SignPKICertWithClassicKey.prototype['token'] = undefined; -/** - * he requested Time To Live for the certificate, in seconds - * @member {Number} ttl - */ - -SignPKICertWithClassicKey.prototype['ttl'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -SignPKICertWithClassicKey.prototype['uid-token'] = undefined; -/** - * The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list) - * @member {String} uri-sans - */ - -SignPKICertWithClassicKey.prototype['uri-sans'] = undefined; -/** - * classic key version - * @member {Number} version - */ - -SignPKICertWithClassicKey.prototype['version'] = undefined; -var _default = SignPKICertWithClassicKey; -exports["default"] = _default; - -/***/ }), - -/***/ 69132: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SmInfo model module. - * @module model/SmInfo - * @version 3.3.16 - */ -var SmInfo = /*#__PURE__*/function () { - /** - * Constructs a new SmInfo. - * @alias module:model/SmInfo - */ - function SmInfo() { - _classCallCheck(this, SmInfo); - - SmInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SmInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SmInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SmInfo} obj Optional instance to populate. - * @return {module:model/SmInfo} The populated SmInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SmInfo(); - - if (data.hasOwnProperty('sla')) { - obj['sla'] = _ApiClient["default"].convertToType(data['sla'], 'String'); - } - - if (data.hasOwnProperty('tier')) { - obj['tier'] = _ApiClient["default"].convertToType(data['tier'], 'String'); - } - } - - return obj; - } - }]); - - return SmInfo; -}(); -/** - * @member {String} sla - */ - - -SmInfo.prototype['sla'] = undefined; -/** - * Tier represents a level of extensibility the account will have, defined by various limits for different resources of Akeyless e.g - A StarterTier may have a limit of 3 Client resources and 50 Secret resources - * @member {String} tier - */ - -SmInfo.prototype['tier'] = undefined; -var _default = SmInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 39760: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SplunkLogForwardingConfig model module. - * @module model/SplunkLogForwardingConfig - * @version 3.3.16 - */ -var SplunkLogForwardingConfig = /*#__PURE__*/function () { - /** - * Constructs a new SplunkLogForwardingConfig. - * @alias module:model/SplunkLogForwardingConfig - */ - function SplunkLogForwardingConfig() { - _classCallCheck(this, SplunkLogForwardingConfig); - - SplunkLogForwardingConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SplunkLogForwardingConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SplunkLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SplunkLogForwardingConfig} obj Optional instance to populate. - * @return {module:model/SplunkLogForwardingConfig} The populated SplunkLogForwardingConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SplunkLogForwardingConfig(); - - if (data.hasOwnProperty('splunk_enable_tls')) { - obj['splunk_enable_tls'] = _ApiClient["default"].convertToType(data['splunk_enable_tls'], 'Boolean'); - } - - if (data.hasOwnProperty('splunk_index')) { - obj['splunk_index'] = _ApiClient["default"].convertToType(data['splunk_index'], 'String'); - } - - if (data.hasOwnProperty('splunk_source')) { - obj['splunk_source'] = _ApiClient["default"].convertToType(data['splunk_source'], 'String'); - } - - if (data.hasOwnProperty('splunk_sourcetype')) { - obj['splunk_sourcetype'] = _ApiClient["default"].convertToType(data['splunk_sourcetype'], 'String'); - } - - if (data.hasOwnProperty('splunk_tls_certificate')) { - obj['splunk_tls_certificate'] = _ApiClient["default"].convertToType(data['splunk_tls_certificate'], 'String'); - } - - if (data.hasOwnProperty('splunk_token')) { - obj['splunk_token'] = _ApiClient["default"].convertToType(data['splunk_token'], 'String'); - } - - if (data.hasOwnProperty('splunk_url')) { - obj['splunk_url'] = _ApiClient["default"].convertToType(data['splunk_url'], 'String'); - } - } - - return obj; - } - }]); - - return SplunkLogForwardingConfig; -}(); -/** - * @member {Boolean} splunk_enable_tls - */ - - -SplunkLogForwardingConfig.prototype['splunk_enable_tls'] = undefined; -/** - * @member {String} splunk_index - */ - -SplunkLogForwardingConfig.prototype['splunk_index'] = undefined; -/** - * @member {String} splunk_source - */ - -SplunkLogForwardingConfig.prototype['splunk_source'] = undefined; -/** - * @member {String} splunk_sourcetype - */ - -SplunkLogForwardingConfig.prototype['splunk_sourcetype'] = undefined; -/** - * @member {String} splunk_tls_certificate - */ - -SplunkLogForwardingConfig.prototype['splunk_tls_certificate'] = undefined; -/** - * @member {String} splunk_token - */ - -SplunkLogForwardingConfig.prototype['splunk_token'] = undefined; -/** - * @member {String} splunk_url - */ - -SplunkLogForwardingConfig.prototype['splunk_url'] = undefined; -var _default = SplunkLogForwardingConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 85658: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SraInfo model module. - * @module model/SraInfo - * @version 3.3.16 - */ -var SraInfo = /*#__PURE__*/function () { - /** - * Constructs a new SraInfo. - * @alias module:model/SraInfo - */ - function SraInfo() { - _classCallCheck(this, SraInfo); - - SraInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SraInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SraInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SraInfo} obj Optional instance to populate. - * @return {module:model/SraInfo} The populated SraInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SraInfo(); - - if (data.hasOwnProperty('sla')) { - obj['sla'] = _ApiClient["default"].convertToType(data['sla'], 'String'); - } - - if (data.hasOwnProperty('tier')) { - obj['tier'] = _ApiClient["default"].convertToType(data['tier'], 'String'); - } - - if (data.hasOwnProperty('user_type')) { - obj['user_type'] = _ApiClient["default"].convertToType(data['user_type'], 'String'); - } - } - - return obj; - } - }]); - - return SraInfo; -}(); -/** - * @member {String} sla - */ - - -SraInfo.prototype['sla'] = undefined; -/** - * Tier represents a level of extensibility the account will have, defined by various limits for different resources of Akeyless e.g - A StarterTier may have a limit of 3 Client resources and 50 Secret resources - * @member {String} tier - */ - -SraInfo.prototype['tier'] = undefined; -/** - * @member {String} user_type - */ - -SraInfo.prototype['user_type'] = undefined; -var _default = SraInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 39307: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The StaticCredsAuth model module. - * @module model/StaticCredsAuth - * @version 3.3.16 - */ -var StaticCredsAuth = /*#__PURE__*/function () { - /** - * Constructs a new StaticCredsAuth. - * staticCredsAuth is a command that creates a temporary access profile using the provided static credentials. - * @alias module:model/StaticCredsAuth - */ - function StaticCredsAuth() { - _classCallCheck(this, StaticCredsAuth); - - StaticCredsAuth.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(StaticCredsAuth, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a StaticCredsAuth from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/StaticCredsAuth} obj Optional instance to populate. - * @return {module:model/StaticCredsAuth} The populated StaticCredsAuth instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new StaticCredsAuth(); - - if (data.hasOwnProperty('access-id')) { - obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); - } - - if (data.hasOwnProperty('admin-email')) { - obj['admin-email'] = _ApiClient["default"].convertToType(data['admin-email'], 'String'); - } - - if (data.hasOwnProperty('creds')) { - obj['creds'] = _ApiClient["default"].convertToType(data['creds'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - } - - return obj; - } - }]); - - return StaticCredsAuth; -}(); -/** - * Akeyless JWT token - * @member {String} access-id - */ - - -StaticCredsAuth.prototype['access-id'] = undefined; -/** - * Akeyless JWT token - * @member {String} admin-email - */ - -StaticCredsAuth.prototype['admin-email'] = undefined; -/** - * Akeyless JWT token - * @member {String} creds - */ - -StaticCredsAuth.prototype['creds'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -StaticCredsAuth.prototype['json'] = false; -var _default = StaticCredsAuth; -exports["default"] = _default; - -/***/ }), - -/***/ 53322: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The StaticCredsAuthOutput model module. - * @module model/StaticCredsAuthOutput - * @version 3.3.16 - */ -var StaticCredsAuthOutput = /*#__PURE__*/function () { - /** - * Constructs a new StaticCredsAuthOutput. - * @alias module:model/StaticCredsAuthOutput - */ - function StaticCredsAuthOutput() { - _classCallCheck(this, StaticCredsAuthOutput); - - StaticCredsAuthOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(StaticCredsAuthOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a StaticCredsAuthOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/StaticCredsAuthOutput} obj Optional instance to populate. - * @return {module:model/StaticCredsAuthOutput} The populated StaticCredsAuthOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new StaticCredsAuthOutput(); - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - } - - return obj; - } - }]); - - return StaticCredsAuthOutput; -}(); -/** - * @member {String} token - */ - - -StaticCredsAuthOutput.prototype['token'] = undefined; -var _default = StaticCredsAuthOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 38674: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The StaticSecretDetailsInfo model module. - * @module model/StaticSecretDetailsInfo - * @version 3.3.16 - */ -var StaticSecretDetailsInfo = /*#__PURE__*/function () { - /** - * Constructs a new StaticSecretDetailsInfo. - * @alias module:model/StaticSecretDetailsInfo - */ - function StaticSecretDetailsInfo() { - _classCallCheck(this, StaticSecretDetailsInfo); - - StaticSecretDetailsInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(StaticSecretDetailsInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a StaticSecretDetailsInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/StaticSecretDetailsInfo} obj Optional instance to populate. - * @return {module:model/StaticSecretDetailsInfo} The populated StaticSecretDetailsInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new StaticSecretDetailsInfo(); - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } - - if (data.hasOwnProperty('website')) { - obj['website'] = _ApiClient["default"].convertToType(data['website'], 'String'); - } - - if (data.hasOwnProperty('websites')) { - obj['websites'] = _ApiClient["default"].convertToType(data['websites'], ['String']); - } - } - - return obj; - } - }]); - - return StaticSecretDetailsInfo; -}(); -/** - * @member {String} username - */ - - -StaticSecretDetailsInfo.prototype['username'] = undefined; -/** - * deprecated - * @member {String} website - */ - -StaticSecretDetailsInfo.prototype['website'] = undefined; -/** - * @member {Array.} websites - */ - -StaticSecretDetailsInfo.prototype['websites'] = undefined; -var _default = StaticSecretDetailsInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 58097: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SumologicLogForwardingConfig model module. - * @module model/SumologicLogForwardingConfig - * @version 3.3.16 - */ -var SumologicLogForwardingConfig = /*#__PURE__*/function () { - /** - * Constructs a new SumologicLogForwardingConfig. - * @alias module:model/SumologicLogForwardingConfig - */ - function SumologicLogForwardingConfig() { - _classCallCheck(this, SumologicLogForwardingConfig); - - SumologicLogForwardingConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SumologicLogForwardingConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SumologicLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SumologicLogForwardingConfig} obj Optional instance to populate. - * @return {module:model/SumologicLogForwardingConfig} The populated SumologicLogForwardingConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SumologicLogForwardingConfig(); - - if (data.hasOwnProperty('sumo_logic_endpoint')) { - obj['sumo_logic_endpoint'] = _ApiClient["default"].convertToType(data['sumo_logic_endpoint'], 'String'); - } - - if (data.hasOwnProperty('sumo_logic_host')) { - obj['sumo_logic_host'] = _ApiClient["default"].convertToType(data['sumo_logic_host'], 'String'); - } - - if (data.hasOwnProperty('sumo_logic_tags')) { - obj['sumo_logic_tags'] = _ApiClient["default"].convertToType(data['sumo_logic_tags'], 'String'); - } - } - - return obj; - } - }]); - - return SumologicLogForwardingConfig; -}(); -/** - * @member {String} sumo_logic_endpoint - */ - - -SumologicLogForwardingConfig.prototype['sumo_logic_endpoint'] = undefined; -/** - * @member {String} sumo_logic_host - */ - -SumologicLogForwardingConfig.prototype['sumo_logic_host'] = undefined; -/** - * @member {String} sumo_logic_tags - */ - -SumologicLogForwardingConfig.prototype['sumo_logic_tags'] = undefined; -var _default = SumologicLogForwardingConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 68494: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SyslogLogForwardingConfig model module. - * @module model/SyslogLogForwardingConfig - * @version 3.3.16 - */ -var SyslogLogForwardingConfig = /*#__PURE__*/function () { - /** - * Constructs a new SyslogLogForwardingConfig. - * @alias module:model/SyslogLogForwardingConfig - */ - function SyslogLogForwardingConfig() { - _classCallCheck(this, SyslogLogForwardingConfig); - - SyslogLogForwardingConfig.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SyslogLogForwardingConfig, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SyslogLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SyslogLogForwardingConfig} obj Optional instance to populate. - * @return {module:model/SyslogLogForwardingConfig} The populated SyslogLogForwardingConfig instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SyslogLogForwardingConfig(); - - if (data.hasOwnProperty('syslog_enable_tls')) { - obj['syslog_enable_tls'] = _ApiClient["default"].convertToType(data['syslog_enable_tls'], 'Boolean'); - } - - if (data.hasOwnProperty('syslog_formatter')) { - obj['syslog_formatter'] = _ApiClient["default"].convertToType(data['syslog_formatter'], 'String'); - } - - if (data.hasOwnProperty('syslog_host')) { - obj['syslog_host'] = _ApiClient["default"].convertToType(data['syslog_host'], 'String'); - } - - if (data.hasOwnProperty('syslog_network')) { - obj['syslog_network'] = _ApiClient["default"].convertToType(data['syslog_network'], 'String'); - } - - if (data.hasOwnProperty('syslog_target_tag')) { - obj['syslog_target_tag'] = _ApiClient["default"].convertToType(data['syslog_target_tag'], 'String'); - } - - if (data.hasOwnProperty('syslog_tls_certificate')) { - obj['syslog_tls_certificate'] = _ApiClient["default"].convertToType(data['syslog_tls_certificate'], 'String'); - } - } - - return obj; - } - }]); - - return SyslogLogForwardingConfig; -}(); -/** - * @member {Boolean} syslog_enable_tls - */ - - -SyslogLogForwardingConfig.prototype['syslog_enable_tls'] = undefined; -/** - * @member {String} syslog_formatter - */ - -SyslogLogForwardingConfig.prototype['syslog_formatter'] = undefined; -/** - * @member {String} syslog_host - */ - -SyslogLogForwardingConfig.prototype['syslog_host'] = undefined; -/** - * @member {String} syslog_network - */ - -SyslogLogForwardingConfig.prototype['syslog_network'] = undefined; -/** - * @member {String} syslog_target_tag - */ - -SyslogLogForwardingConfig.prototype['syslog_target_tag'] = undefined; -/** - * @member {String} syslog_tls_certificate - */ - -SyslogLogForwardingConfig.prototype['syslog_tls_certificate'] = undefined; -var _default = SyslogLogForwardingConfig; -exports["default"] = _default; - -/***/ }), - -/***/ 58908: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SystemAccessCredentialsReplyObj model module. - * @module model/SystemAccessCredentialsReplyObj - * @version 3.3.16 - */ -var SystemAccessCredentialsReplyObj = /*#__PURE__*/function () { - /** - * Constructs a new SystemAccessCredentialsReplyObj. - * @alias module:model/SystemAccessCredentialsReplyObj - */ - function SystemAccessCredentialsReplyObj() { - _classCallCheck(this, SystemAccessCredentialsReplyObj); - - SystemAccessCredentialsReplyObj.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SystemAccessCredentialsReplyObj, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SystemAccessCredentialsReplyObj from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SystemAccessCredentialsReplyObj} obj Optional instance to populate. - * @return {module:model/SystemAccessCredentialsReplyObj} The populated SystemAccessCredentialsReplyObj instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SystemAccessCredentialsReplyObj(); - - if (data.hasOwnProperty('auth_creds')) { - obj['auth_creds'] = _ApiClient["default"].convertToType(data['auth_creds'], 'String'); - } - - if (data.hasOwnProperty('expiry')) { - obj['expiry'] = _ApiClient["default"].convertToType(data['expiry'], 'Number'); - } - - if (data.hasOwnProperty('kfm_creds')) { - obj['kfm_creds'] = _ApiClient["default"].convertToType(data['kfm_creds'], 'String'); - } - - if (data.hasOwnProperty('required_mfa')) { - obj['required_mfa'] = _ApiClient["default"].convertToType(data['required_mfa'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uam_creds')) { - obj['uam_creds'] = _ApiClient["default"].convertToType(data['uam_creds'], 'String'); - } - } - - return obj; - } - }]); - - return SystemAccessCredentialsReplyObj; -}(); -/** - * Temporary credentials for accessing Auth - * @member {String} auth_creds - */ - - -SystemAccessCredentialsReplyObj.prototype['auth_creds'] = undefined; -/** - * Credentials expiration date - * @member {Number} expiry - */ - -SystemAccessCredentialsReplyObj.prototype['expiry'] = undefined; -/** - * Temporary credentials for accessing the KFMs instances - * @member {String} kfm_creds - */ - -SystemAccessCredentialsReplyObj.prototype['kfm_creds'] = undefined; -/** - * @member {String} required_mfa - */ - -SystemAccessCredentialsReplyObj.prototype['required_mfa'] = undefined; -/** - * Credentials tmp token - * @member {String} token - */ - -SystemAccessCredentialsReplyObj.prototype['token'] = undefined; -/** - * Temporary credentials for accessing the UAM service - * @member {String} uam_creds - */ - -SystemAccessCredentialsReplyObj.prototype['uam_creds'] = undefined; -var _default = SystemAccessCredentialsReplyObj; -exports["default"] = _default; - -/***/ }), - -/***/ 36395: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The SystemAccessCredsSettings model module. - * @module model/SystemAccessCredsSettings - * @version 3.3.16 - */ -var SystemAccessCredsSettings = /*#__PURE__*/function () { - /** - * Constructs a new SystemAccessCredsSettings. - * SystemAccessCredsSettings describes system access credential settings for account by minutes - * @alias module:model/SystemAccessCredsSettings - */ - function SystemAccessCredsSettings() { - _classCallCheck(this, SystemAccessCredsSettings); - - SystemAccessCredsSettings.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(SystemAccessCredsSettings, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a SystemAccessCredsSettings from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SystemAccessCredsSettings} obj Optional instance to populate. - * @return {module:model/SystemAccessCredsSettings} The populated SystemAccessCredsSettings instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SystemAccessCredsSettings(); - - if (data.hasOwnProperty('jwt_ttl_default')) { - obj['jwt_ttl_default'] = _ApiClient["default"].convertToType(data['jwt_ttl_default'], 'Number'); - } - - if (data.hasOwnProperty('jwt_ttl_maximum')) { - obj['jwt_ttl_maximum'] = _ApiClient["default"].convertToType(data['jwt_ttl_maximum'], 'Number'); - } - - if (data.hasOwnProperty('jwt_ttl_minimum')) { - obj['jwt_ttl_minimum'] = _ApiClient["default"].convertToType(data['jwt_ttl_minimum'], 'Number'); - } - } - - return obj; - } - }]); - - return SystemAccessCredsSettings; -}(); -/** - * @member {Number} jwt_ttl_default - */ - - -SystemAccessCredsSettings.prototype['jwt_ttl_default'] = undefined; -/** - * @member {Number} jwt_ttl_maximum - */ - -SystemAccessCredsSettings.prototype['jwt_ttl_maximum'] = undefined; -/** - * @member {Number} jwt_ttl_minimum - */ - -SystemAccessCredsSettings.prototype['jwt_ttl_minimum'] = undefined; -var _default = SystemAccessCredsSettings; -exports["default"] = _default; - -/***/ }), - -/***/ 50373: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _ItemVersion = _interopRequireDefault(__nccwpck_require__(71931)); - -var _TargetItemAssociation = _interopRequireDefault(__nccwpck_require__(78551)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Target model module. - * @module model/Target - * @version 3.3.16 - */ -var Target = /*#__PURE__*/function () { - /** - * Constructs a new Target. - * @alias module:model/Target - */ - function Target() { - _classCallCheck(this, Target); - - Target.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Target, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a Target from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Target} obj Optional instance to populate. - * @return {module:model/Target} The populated Target instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Target(); - - if (data.hasOwnProperty('access_date')) { - obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); - } - - if (data.hasOwnProperty('access_request_status')) { - obj['access_request_status'] = _ApiClient["default"].convertToType(data['access_request_status'], 'String'); - } - - if (data.hasOwnProperty('attributes')) { - obj['attributes'] = _ApiClient["default"].convertToType(data['attributes'], { - 'String': Object - }); - } - - if (data.hasOwnProperty('client_permissions')) { - obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); - } - - if (data.hasOwnProperty('credentials_less')) { - obj['credentials_less'] = _ApiClient["default"].convertToType(data['credentials_less'], 'Boolean'); - } - - if (data.hasOwnProperty('is_access_request_enabled')) { - obj['is_access_request_enabled'] = _ApiClient["default"].convertToType(data['is_access_request_enabled'], 'Boolean'); - } - - if (data.hasOwnProperty('last_version')) { - obj['last_version'] = _ApiClient["default"].convertToType(data['last_version'], 'Number'); - } - - if (data.hasOwnProperty('modification_date')) { - obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); - } - - if (data.hasOwnProperty('protection_key_name')) { - obj['protection_key_name'] = _ApiClient["default"].convertToType(data['protection_key_name'], 'String'); - } - - if (data.hasOwnProperty('target_details')) { - obj['target_details'] = _ApiClient["default"].convertToType(data['target_details'], 'String'); - } - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - - if (data.hasOwnProperty('target_items_assoc')) { - obj['target_items_assoc'] = _ApiClient["default"].convertToType(data['target_items_assoc'], [_TargetItemAssociation["default"]]); - } - - if (data.hasOwnProperty('target_name')) { - obj['target_name'] = _ApiClient["default"].convertToType(data['target_name'], 'String'); - } - - if (data.hasOwnProperty('target_sub_type')) { - obj['target_sub_type'] = _ApiClient["default"].convertToType(data['target_sub_type'], 'String'); - } - - if (data.hasOwnProperty('target_type')) { - obj['target_type'] = _ApiClient["default"].convertToType(data['target_type'], 'String'); - } - - if (data.hasOwnProperty('target_versions')) { - obj['target_versions'] = _ApiClient["default"].convertToType(data['target_versions'], [_ItemVersion["default"]]); - } - - if (data.hasOwnProperty('with_customer_fragment')) { - obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); - } - } - - return obj; - } - }]); - - return Target; -}(); -/** - * @member {Date} access_date - */ - - -Target.prototype['access_date'] = undefined; -/** - * @member {String} access_request_status - */ - -Target.prototype['access_request_status'] = undefined; -/** - * this is not \"omitempty\" since an empty value causes no update while an empty map will clear the attributes - * @member {Object.} attributes - */ - -Target.prototype['attributes'] = undefined; -/** - * @member {Array.} client_permissions - */ - -Target.prototype['client_permissions'] = undefined; -/** - * @member {String} comment - */ - -Target.prototype['comment'] = undefined; -/** - * @member {Date} creation_date - */ - -Target.prototype['creation_date'] = undefined; -/** - * @member {Boolean} credentials_less - */ - -Target.prototype['credentials_less'] = undefined; -/** - * @member {Boolean} is_access_request_enabled - */ - -Target.prototype['is_access_request_enabled'] = undefined; -/** - * @member {Number} last_version - */ - -Target.prototype['last_version'] = undefined; -/** - * @member {Date} modification_date - */ - -Target.prototype['modification_date'] = undefined; -/** - * @member {String} protection_key_name - */ - -Target.prototype['protection_key_name'] = undefined; -/** - * @member {String} target_details - */ - -Target.prototype['target_details'] = undefined; -/** - * @member {Number} target_id - */ - -Target.prototype['target_id'] = undefined; -/** - * @member {Array.} target_items_assoc - */ - -Target.prototype['target_items_assoc'] = undefined; -/** - * @member {String} target_name - */ - -Target.prototype['target_name'] = undefined; -/** - * @member {String} target_sub_type - */ - -Target.prototype['target_sub_type'] = undefined; -/** - * @member {String} target_type - */ - -Target.prototype['target_type'] = undefined; -/** - * @member {Array.} target_versions - */ - -Target.prototype['target_versions'] = undefined; -/** - * @member {Boolean} with_customer_fragment - */ - -Target.prototype['with_customer_fragment'] = undefined; -var _default = Target; -exports["default"] = _default; - -/***/ }), - -/***/ 78551: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The TargetItemAssociation model module. - * @module model/TargetItemAssociation - * @version 3.3.16 - */ -var TargetItemAssociation = /*#__PURE__*/function () { - /** - * Constructs a new TargetItemAssociation. - * TargetItemAssociation includes details of an association between a target and an item. - * @alias module:model/TargetItemAssociation - */ - function TargetItemAssociation() { - _classCallCheck(this, TargetItemAssociation); - - TargetItemAssociation.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(TargetItemAssociation, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a TargetItemAssociation from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TargetItemAssociation} obj Optional instance to populate. - * @return {module:model/TargetItemAssociation} The populated TargetItemAssociation instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new TargetItemAssociation(); - - if (data.hasOwnProperty('assoc_id')) { - obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); - } - - if (data.hasOwnProperty('attributes')) { - obj['attributes'] = _ApiClient["default"].convertToType(data['attributes'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('cluster_id')) { - obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'Number'); - } - - if (data.hasOwnProperty('item_name')) { - obj['item_name'] = _ApiClient["default"].convertToType(data['item_name'], 'String'); - } - - if (data.hasOwnProperty('item_type')) { - obj['item_type'] = _ApiClient["default"].convertToType(data['item_type'], 'String'); - } - - if (data.hasOwnProperty('relationship')) { - obj['relationship'] = _ApiClient["default"].convertToType(data['relationship'], 'String'); - } - } - - return obj; - } - }]); - - return TargetItemAssociation; -}(); -/** - * @member {String} assoc_id - */ - - -TargetItemAssociation.prototype['assoc_id'] = undefined; -/** - * @member {Object.} attributes - */ - -TargetItemAssociation.prototype['attributes'] = undefined; -/** - * @member {Number} cluster_id - */ - -TargetItemAssociation.prototype['cluster_id'] = undefined; -/** - * @member {String} item_name - */ - -TargetItemAssociation.prototype['item_name'] = undefined; -/** - * @member {String} item_type - */ - -TargetItemAssociation.prototype['item_type'] = undefined; -/** - * @member {String} relationship - */ - -TargetItemAssociation.prototype['relationship'] = undefined; -var _default = TargetItemAssociation; -exports["default"] = _default; - -/***/ }), - -/***/ 42216: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The TargetItemVersion model module. - * @module model/TargetItemVersion - * @version 3.3.16 - */ -var TargetItemVersion = /*#__PURE__*/function () { - /** - * Constructs a new TargetItemVersion. - * @alias module:model/TargetItemVersion - */ - function TargetItemVersion() { - _classCallCheck(this, TargetItemVersion); - - TargetItemVersion.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(TargetItemVersion, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a TargetItemVersion from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TargetItemVersion} obj Optional instance to populate. - * @return {module:model/TargetItemVersion} The populated TargetItemVersion instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new TargetItemVersion(); - - if (data.hasOwnProperty('access_date')) { - obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); - } - - if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); - } - - if (data.hasOwnProperty('customer_fragment_id')) { - obj['customer_fragment_id'] = _ApiClient["default"].convertToType(data['customer_fragment_id'], 'String'); - } - - if (data.hasOwnProperty('deletion_date')) { - obj['deletion_date'] = _ApiClient["default"].convertToType(data['deletion_date'], 'Date'); - } - - if (data.hasOwnProperty('item_version_state')) { - obj['item_version_state'] = _ApiClient["default"].convertToType(data['item_version_state'], 'String'); - } - - if (data.hasOwnProperty('latest_version')) { - obj['latest_version'] = _ApiClient["default"].convertToType(data['latest_version'], 'Boolean'); - } - - if (data.hasOwnProperty('modification_date')) { - obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); - } - - if (data.hasOwnProperty('protection_key_name')) { - obj['protection_key_name'] = _ApiClient["default"].convertToType(data['protection_key_name'], 'String'); - } - - if (data.hasOwnProperty('target_name')) { - obj['target_name'] = _ApiClient["default"].convertToType(data['target_name'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - - if (data.hasOwnProperty('with_customer_fragment')) { - obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); - } - } - - return obj; - } - }]); - - return TargetItemVersion; -}(); -/** - * @member {Date} access_date - */ - - -TargetItemVersion.prototype['access_date'] = undefined; -/** - * @member {Date} creation_date - */ - -TargetItemVersion.prototype['creation_date'] = undefined; -/** - * @member {String} customer_fragment_id - */ - -TargetItemVersion.prototype['customer_fragment_id'] = undefined; -/** - * @member {Date} deletion_date - */ - -TargetItemVersion.prototype['deletion_date'] = undefined; -/** - * ItemState defines the different states an Item can be in - * @member {String} item_version_state - */ - -TargetItemVersion.prototype['item_version_state'] = undefined; -/** - * @member {Boolean} latest_version - */ - -TargetItemVersion.prototype['latest_version'] = undefined; -/** - * @member {Date} modification_date - */ - -TargetItemVersion.prototype['modification_date'] = undefined; -/** - * @member {String} protection_key_name - */ - -TargetItemVersion.prototype['protection_key_name'] = undefined; -/** - * @member {String} target_name - */ - -TargetItemVersion.prototype['target_name'] = undefined; -/** - * @member {Number} version - */ - -TargetItemVersion.prototype['version'] = undefined; -/** - * @member {Boolean} with_customer_fragment - */ - -TargetItemVersion.prototype['with_customer_fragment'] = undefined; -var _default = TargetItemVersion; -exports["default"] = _default; - -/***/ }), - -/***/ 6643: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _AWSTargetDetails = _interopRequireDefault(__nccwpck_require__(4398)); - -var _ArtifactoryTargetDetails = _interopRequireDefault(__nccwpck_require__(99747)); - -var _AzureTargetDetails = _interopRequireDefault(__nccwpck_require__(58540)); - -var _ChefTargetDetails = _interopRequireDefault(__nccwpck_require__(29095)); - -var _CustomTargetDetails = _interopRequireDefault(__nccwpck_require__(70142)); - -var _DbTargetDetails = _interopRequireDefault(__nccwpck_require__(33853)); - -var _DockerhubTargetDetails = _interopRequireDefault(__nccwpck_require__(57844)); - -var _EKSTargetDetails = _interopRequireDefault(__nccwpck_require__(18422)); - -var _GKETargetDetails = _interopRequireDefault(__nccwpck_require__(13006)); - -var _GcpTargetDetails = _interopRequireDefault(__nccwpck_require__(83083)); - -var _GithubTargetDetails = _interopRequireDefault(__nccwpck_require__(46870)); - -var _GlobalSignAtlasTargetDetails = _interopRequireDefault(__nccwpck_require__(77606)); - -var _GlobalSignGCCTargetDetails = _interopRequireDefault(__nccwpck_require__(4150)); - -var _LdapTargetDetails = _interopRequireDefault(__nccwpck_require__(11780)); - -var _LinkedTargetDetails = _interopRequireDefault(__nccwpck_require__(35968)); - -var _MongoDBTargetDetails = _interopRequireDefault(__nccwpck_require__(57731)); - -var _NativeK8sTargetDetails = _interopRequireDefault(__nccwpck_require__(80406)); - -var _PingTargetDetails = _interopRequireDefault(__nccwpck_require__(18619)); - -var _RabbitMQTargetDetails = _interopRequireDefault(__nccwpck_require__(78325)); - -var _SSHTargetDetails = _interopRequireDefault(__nccwpck_require__(615)); - -var _SalesforceTargetDetails = _interopRequireDefault(__nccwpck_require__(48590)); - -var _VenafiTargetDetails = _interopRequireDefault(__nccwpck_require__(17420)); - -var _WebTargetDetails = _interopRequireDefault(__nccwpck_require__(99871)); - -var _WindowsTargetDetails = _interopRequireDefault(__nccwpck_require__(70614)); - -var _ZeroSSLTargetDetails = _interopRequireDefault(__nccwpck_require__(57621)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The TargetTypeDetailsInput model module. - * @module model/TargetTypeDetailsInput - * @version 3.3.16 - */ -var TargetTypeDetailsInput = /*#__PURE__*/function () { - /** - * Constructs a new TargetTypeDetailsInput. - * @alias module:model/TargetTypeDetailsInput - */ - function TargetTypeDetailsInput() { - _classCallCheck(this, TargetTypeDetailsInput); - - TargetTypeDetailsInput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(TargetTypeDetailsInput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a TargetTypeDetailsInput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TargetTypeDetailsInput} obj Optional instance to populate. - * @return {module:model/TargetTypeDetailsInput} The populated TargetTypeDetailsInput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new TargetTypeDetailsInput(); - - if (data.hasOwnProperty('artifactory_target_details')) { - obj['artifactory_target_details'] = _ArtifactoryTargetDetails["default"].constructFromObject(data['artifactory_target_details']); - } - - if (data.hasOwnProperty('aws_target_details')) { - obj['aws_target_details'] = _AWSTargetDetails["default"].constructFromObject(data['aws_target_details']); - } - - if (data.hasOwnProperty('azure_target_details')) { - obj['azure_target_details'] = _AzureTargetDetails["default"].constructFromObject(data['azure_target_details']); - } - - if (data.hasOwnProperty('chef_target_details')) { - obj['chef_target_details'] = _ChefTargetDetails["default"].constructFromObject(data['chef_target_details']); - } - - if (data.hasOwnProperty('custom_target_details')) { - obj['custom_target_details'] = _CustomTargetDetails["default"].constructFromObject(data['custom_target_details']); - } - - if (data.hasOwnProperty('db_target_details')) { - obj['db_target_details'] = _DbTargetDetails["default"].constructFromObject(data['db_target_details']); - } - - if (data.hasOwnProperty('dockerhub_target_details')) { - obj['dockerhub_target_details'] = _DockerhubTargetDetails["default"].constructFromObject(data['dockerhub_target_details']); - } - - if (data.hasOwnProperty('eks_target_details')) { - obj['eks_target_details'] = _EKSTargetDetails["default"].constructFromObject(data['eks_target_details']); - } - - if (data.hasOwnProperty('gcp_target_details')) { - obj['gcp_target_details'] = _GcpTargetDetails["default"].constructFromObject(data['gcp_target_details']); - } - - if (data.hasOwnProperty('github_target_details')) { - obj['github_target_details'] = _GithubTargetDetails["default"].constructFromObject(data['github_target_details']); - } - - if (data.hasOwnProperty('gke_target_details')) { - obj['gke_target_details'] = _GKETargetDetails["default"].constructFromObject(data['gke_target_details']); - } - - if (data.hasOwnProperty('globalsign_atlas_target_details')) { - obj['globalsign_atlas_target_details'] = _GlobalSignAtlasTargetDetails["default"].constructFromObject(data['globalsign_atlas_target_details']); - } - - if (data.hasOwnProperty('globalsign_target_details')) { - obj['globalsign_target_details'] = _GlobalSignGCCTargetDetails["default"].constructFromObject(data['globalsign_target_details']); - } - - if (data.hasOwnProperty('ldap_target_details')) { - obj['ldap_target_details'] = _LdapTargetDetails["default"].constructFromObject(data['ldap_target_details']); - } - - if (data.hasOwnProperty('linked_target_details')) { - obj['linked_target_details'] = _LinkedTargetDetails["default"].constructFromObject(data['linked_target_details']); - } - - if (data.hasOwnProperty('mongo_db_target_details')) { - obj['mongo_db_target_details'] = _MongoDBTargetDetails["default"].constructFromObject(data['mongo_db_target_details']); - } - - if (data.hasOwnProperty('native_k8s_target_details')) { - obj['native_k8s_target_details'] = _NativeK8sTargetDetails["default"].constructFromObject(data['native_k8s_target_details']); - } - - if (data.hasOwnProperty('ping_target_details')) { - obj['ping_target_details'] = _PingTargetDetails["default"].constructFromObject(data['ping_target_details']); - } - - if (data.hasOwnProperty('rabbit_mq_target_details')) { - obj['rabbit_mq_target_details'] = _RabbitMQTargetDetails["default"].constructFromObject(data['rabbit_mq_target_details']); - } - - if (data.hasOwnProperty('salesforce_target_details')) { - obj['salesforce_target_details'] = _SalesforceTargetDetails["default"].constructFromObject(data['salesforce_target_details']); - } - - if (data.hasOwnProperty('ssh_target_details')) { - obj['ssh_target_details'] = _SSHTargetDetails["default"].constructFromObject(data['ssh_target_details']); - } - - if (data.hasOwnProperty('venafi_target_details')) { - obj['venafi_target_details'] = _VenafiTargetDetails["default"].constructFromObject(data['venafi_target_details']); - } - - if (data.hasOwnProperty('web_target_details')) { - obj['web_target_details'] = _WebTargetDetails["default"].constructFromObject(data['web_target_details']); - } - - if (data.hasOwnProperty('windows_target_details')) { - obj['windows_target_details'] = _WindowsTargetDetails["default"].constructFromObject(data['windows_target_details']); - } - - if (data.hasOwnProperty('zerossl_target_details')) { - obj['zerossl_target_details'] = _ZeroSSLTargetDetails["default"].constructFromObject(data['zerossl_target_details']); - } - } - - return obj; - } - }]); - - return TargetTypeDetailsInput; -}(); -/** - * @member {module:model/ArtifactoryTargetDetails} artifactory_target_details - */ - - -TargetTypeDetailsInput.prototype['artifactory_target_details'] = undefined; -/** - * @member {module:model/AWSTargetDetails} aws_target_details - */ - -TargetTypeDetailsInput.prototype['aws_target_details'] = undefined; -/** - * @member {module:model/AzureTargetDetails} azure_target_details - */ - -TargetTypeDetailsInput.prototype['azure_target_details'] = undefined; -/** - * @member {module:model/ChefTargetDetails} chef_target_details - */ - -TargetTypeDetailsInput.prototype['chef_target_details'] = undefined; -/** - * @member {module:model/CustomTargetDetails} custom_target_details - */ - -TargetTypeDetailsInput.prototype['custom_target_details'] = undefined; -/** - * @member {module:model/DbTargetDetails} db_target_details - */ - -TargetTypeDetailsInput.prototype['db_target_details'] = undefined; -/** - * @member {module:model/DockerhubTargetDetails} dockerhub_target_details - */ - -TargetTypeDetailsInput.prototype['dockerhub_target_details'] = undefined; -/** - * @member {module:model/EKSTargetDetails} eks_target_details - */ - -TargetTypeDetailsInput.prototype['eks_target_details'] = undefined; -/** - * @member {module:model/GcpTargetDetails} gcp_target_details - */ - -TargetTypeDetailsInput.prototype['gcp_target_details'] = undefined; -/** - * @member {module:model/GithubTargetDetails} github_target_details - */ - -TargetTypeDetailsInput.prototype['github_target_details'] = undefined; -/** - * @member {module:model/GKETargetDetails} gke_target_details - */ - -TargetTypeDetailsInput.prototype['gke_target_details'] = undefined; -/** - * @member {module:model/GlobalSignAtlasTargetDetails} globalsign_atlas_target_details - */ - -TargetTypeDetailsInput.prototype['globalsign_atlas_target_details'] = undefined; -/** - * @member {module:model/GlobalSignGCCTargetDetails} globalsign_target_details - */ - -TargetTypeDetailsInput.prototype['globalsign_target_details'] = undefined; -/** - * @member {module:model/LdapTargetDetails} ldap_target_details - */ - -TargetTypeDetailsInput.prototype['ldap_target_details'] = undefined; -/** - * @member {module:model/LinkedTargetDetails} linked_target_details - */ - -TargetTypeDetailsInput.prototype['linked_target_details'] = undefined; -/** - * @member {module:model/MongoDBTargetDetails} mongo_db_target_details - */ - -TargetTypeDetailsInput.prototype['mongo_db_target_details'] = undefined; -/** - * @member {module:model/NativeK8sTargetDetails} native_k8s_target_details - */ - -TargetTypeDetailsInput.prototype['native_k8s_target_details'] = undefined; -/** - * @member {module:model/PingTargetDetails} ping_target_details - */ - -TargetTypeDetailsInput.prototype['ping_target_details'] = undefined; -/** - * @member {module:model/RabbitMQTargetDetails} rabbit_mq_target_details - */ - -TargetTypeDetailsInput.prototype['rabbit_mq_target_details'] = undefined; -/** - * @member {module:model/SalesforceTargetDetails} salesforce_target_details - */ - -TargetTypeDetailsInput.prototype['salesforce_target_details'] = undefined; -/** - * @member {module:model/SSHTargetDetails} ssh_target_details - */ - -TargetTypeDetailsInput.prototype['ssh_target_details'] = undefined; -/** - * @member {module:model/VenafiTargetDetails} venafi_target_details - */ - -TargetTypeDetailsInput.prototype['venafi_target_details'] = undefined; -/** - * @member {module:model/WebTargetDetails} web_target_details - */ - -TargetTypeDetailsInput.prototype['web_target_details'] = undefined; -/** - * @member {module:model/WindowsTargetDetails} windows_target_details - */ - -TargetTypeDetailsInput.prototype['windows_target_details'] = undefined; -/** - * @member {module:model/ZeroSSLTargetDetails} zerossl_target_details - */ - -TargetTypeDetailsInput.prototype['zerossl_target_details'] = undefined; -var _default = TargetTypeDetailsInput; -exports["default"] = _default; - -/***/ }), - -/***/ 36764: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The TmpUserData model module. - * @module model/TmpUserData - * @version 3.3.16 - */ -var TmpUserData = /*#__PURE__*/function () { - /** - * Constructs a new TmpUserData. - * @alias module:model/TmpUserData - */ - function TmpUserData() { - _classCallCheck(this, TmpUserData); - - TmpUserData.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(TmpUserData, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a TmpUserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TmpUserData} obj Optional instance to populate. - * @return {module:model/TmpUserData} The populated TmpUserData instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new TmpUserData(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - - if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); - } - - if (data.hasOwnProperty('custom_ttl')) { - obj['custom_ttl'] = _ApiClient["default"].convertToType(data['custom_ttl'], 'Number'); - } - - if (data.hasOwnProperty('dynamic_secret_type')) { - obj['dynamic_secret_type'] = _ApiClient["default"].convertToType(data['dynamic_secret_type'], 'String'); - } - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - - if (data.hasOwnProperty('sub_claims')) { - obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { - 'String': ['String'] - }); - } - } - - return obj; - } - }]); - - return TmpUserData; -}(); -/** - * @member {String} access_id - */ - - -TmpUserData.prototype['access_id'] = undefined; -/** - * @member {Date} creation_date - */ - -TmpUserData.prototype['creation_date'] = undefined; -/** - * @member {Number} custom_ttl - */ - -TmpUserData.prototype['custom_ttl'] = undefined; -/** - * @member {String} dynamic_secret_type - */ - -TmpUserData.prototype['dynamic_secret_type'] = undefined; -/** - * @member {String} host - */ - -TmpUserData.prototype['host'] = undefined; -/** - * @member {String} id - */ - -TmpUserData.prototype['id'] = undefined; -/** - * @member {Object.>} sub_claims - */ - -TmpUserData.prototype['sub_claims'] = undefined; -var _default = TmpUserData; -exports["default"] = _default; - -/***/ }), - -/***/ 43289: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Tokenize model module. - * @module model/Tokenize - * @version 3.3.16 - */ -var Tokenize = /*#__PURE__*/function () { - /** - * Constructs a new Tokenize. - * tokenize is a command that encrypts text with a tokenizer - * @alias module:model/Tokenize - * @param plaintext {String} Data to be encrypted - * @param tokenizerName {String} The name of the tokenizer to use in the encryption process - */ - function Tokenize(plaintext, tokenizerName) { - _classCallCheck(this, Tokenize); - - Tokenize.initialize(this, plaintext, tokenizerName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Tokenize, null, [{ - key: "initialize", - value: function initialize(obj, plaintext, tokenizerName) { - obj['plaintext'] = plaintext; - obj['tokenizer-name'] = tokenizerName; - } - /** - * Constructs a Tokenize from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Tokenize} obj Optional instance to populate. - * @return {module:model/Tokenize} The populated Tokenize instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Tokenize(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('plaintext')) { - obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('tokenizer-name')) { - obj['tokenizer-name'] = _ApiClient["default"].convertToType(data['tokenizer-name'], 'String'); - } - - if (data.hasOwnProperty('tweak')) { - obj['tweak'] = _ApiClient["default"].convertToType(data['tweak'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return Tokenize; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -Tokenize.prototype['json'] = false; -/** - * Data to be encrypted - * @member {String} plaintext - */ - -Tokenize.prototype['plaintext'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -Tokenize.prototype['token'] = undefined; -/** - * The name of the tokenizer to use in the encryption process - * @member {String} tokenizer-name - */ - -Tokenize.prototype['tokenizer-name'] = undefined; -/** - * Base64 encoded tweak for vaultless encryption - * @member {String} tweak - */ - -Tokenize.prototype['tweak'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -Tokenize.prototype['uid-token'] = undefined; -var _default = Tokenize; -exports["default"] = _default; - -/***/ }), - -/***/ 88732: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The TokenizeOutput model module. - * @module model/TokenizeOutput - * @version 3.3.16 - */ -var TokenizeOutput = /*#__PURE__*/function () { - /** - * Constructs a new TokenizeOutput. - * @alias module:model/TokenizeOutput - */ - function TokenizeOutput() { - _classCallCheck(this, TokenizeOutput); - - TokenizeOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(TokenizeOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a TokenizeOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TokenizeOutput} obj Optional instance to populate. - * @return {module:model/TokenizeOutput} The populated TokenizeOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new TokenizeOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - - if (data.hasOwnProperty('tweak')) { - obj['tweak'] = _ApiClient["default"].convertToType(data['tweak'], 'String'); - } - } - - return obj; - } - }]); - - return TokenizeOutput; -}(); -/** - * @member {String} result - */ - - -TokenizeOutput.prototype['result'] = undefined; -/** - * @member {String} tweak - */ - -TokenizeOutput.prototype['tweak'] = undefined; -var _default = TokenizeOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 61767: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _VaultlessTokenizerInfo = _interopRequireDefault(__nccwpck_require__(56618)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The TokenizerInfo model module. - * @module model/TokenizerInfo - * @version 3.3.16 - */ -var TokenizerInfo = /*#__PURE__*/function () { - /** - * Constructs a new TokenizerInfo. - * @alias module:model/TokenizerInfo - */ - function TokenizerInfo() { - _classCallCheck(this, TokenizerInfo); - - TokenizerInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(TokenizerInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a TokenizerInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TokenizerInfo} obj Optional instance to populate. - * @return {module:model/TokenizerInfo} The populated TokenizerInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new TokenizerInfo(); - - if (data.hasOwnProperty('vaultless_tokenizer_info')) { - obj['vaultless_tokenizer_info'] = _VaultlessTokenizerInfo["default"].constructFromObject(data['vaultless_tokenizer_info']); - } - } - - return obj; - } - }]); - - return TokenizerInfo; -}(); -/** - * @member {module:model/VaultlessTokenizerInfo} vaultless_tokenizer_info - */ - - -TokenizerInfo.prototype['vaultless_tokenizer_info'] = undefined; -var _default = TokenizerInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 33593: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UIDTokenDetails model module. - * @module model/UIDTokenDetails - * @version 3.3.16 - */ -var UIDTokenDetails = /*#__PURE__*/function () { - /** - * Constructs a new UIDTokenDetails. - * @alias module:model/UIDTokenDetails - */ - function UIDTokenDetails() { - _classCallCheck(this, UIDTokenDetails); - - UIDTokenDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UIDTokenDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UIDTokenDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UIDTokenDetails} obj Optional instance to populate. - * @return {module:model/UIDTokenDetails} The populated UIDTokenDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UIDTokenDetails(); - - if (data.hasOwnProperty('children')) { - obj['children'] = _ApiClient["default"].convertToType(data['children'], { - 'String': UIDTokenDetails - }); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('deny_inheritance')) { - obj['deny_inheritance'] = _ApiClient["default"].convertToType(data['deny_inheritance'], 'Boolean'); - } - - if (data.hasOwnProperty('deny_rotate')) { - obj['deny_rotate'] = _ApiClient["default"].convertToType(data['deny_rotate'], 'Boolean'); - } - - if (data.hasOwnProperty('depth')) { - obj['depth'] = _ApiClient["default"].convertToType(data['depth'], 'Number'); - } - - if (data.hasOwnProperty('expired_date')) { - obj['expired_date'] = _ApiClient["default"].convertToType(data['expired_date'], 'String'); - } - - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - - if (data.hasOwnProperty('last_rotate')) { - obj['last_rotate'] = _ApiClient["default"].convertToType(data['last_rotate'], 'String'); - } - - if (data.hasOwnProperty('revoked')) { - obj['revoked'] = _ApiClient["default"].convertToType(data['revoked'], 'Boolean'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - } - - return obj; - } - }]); - - return UIDTokenDetails; -}(); -/** - * @member {Object.} children - */ - - -UIDTokenDetails.prototype['children'] = undefined; -/** - * @member {String} comment - */ - -UIDTokenDetails.prototype['comment'] = undefined; -/** - * @member {Boolean} deny_inheritance - */ - -UIDTokenDetails.prototype['deny_inheritance'] = undefined; -/** - * @member {Boolean} deny_rotate - */ - -UIDTokenDetails.prototype['deny_rotate'] = undefined; -/** - * @member {Number} depth - */ - -UIDTokenDetails.prototype['depth'] = undefined; -/** - * @member {String} expired_date - */ - -UIDTokenDetails.prototype['expired_date'] = undefined; -/** - * @member {String} id - */ - -UIDTokenDetails.prototype['id'] = undefined; -/** - * @member {String} last_rotate - */ - -UIDTokenDetails.prototype['last_rotate'] = undefined; -/** - * @member {Boolean} revoked - */ - -UIDTokenDetails.prototype['revoked'] = undefined; -/** - * @member {Number} ttl - */ - -UIDTokenDetails.prototype['ttl'] = undefined; -var _default = UIDTokenDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 35191: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UidCreateChildToken model module. - * @module model/UidCreateChildToken - * @version 3.3.16 - */ -var UidCreateChildToken = /*#__PURE__*/function () { - /** - * Constructs a new UidCreateChildToken. - * uidCreateChildToken is a command that creates a new child token using Akeyless Universal Identity. - * @alias module:model/UidCreateChildToken - */ - function UidCreateChildToken() { - _classCallCheck(this, UidCreateChildToken); - - UidCreateChildToken.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UidCreateChildToken, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UidCreateChildToken from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UidCreateChildToken} obj Optional instance to populate. - * @return {module:model/UidCreateChildToken} The populated UidCreateChildToken instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UidCreateChildToken(); - - if (data.hasOwnProperty('auth-method-name')) { - obj['auth-method-name'] = _ApiClient["default"].convertToType(data['auth-method-name'], 'String'); - } - - if (data.hasOwnProperty('child-deny-inheritance')) { - obj['child-deny-inheritance'] = _ApiClient["default"].convertToType(data['child-deny-inheritance'], 'Boolean'); - } - - if (data.hasOwnProperty('child-deny-rotate')) { - obj['child-deny-rotate'] = _ApiClient["default"].convertToType(data['child-deny-rotate'], 'Boolean'); - } - - if (data.hasOwnProperty('child-ttl')) { - obj['child-ttl'] = _ApiClient["default"].convertToType(data['child-ttl'], 'Number'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('uid-token-id')) { - obj['uid-token-id'] = _ApiClient["default"].convertToType(data['uid-token-id'], 'String'); - } - } - - return obj; - } - }]); - - return UidCreateChildToken; -}(); -/** - * The universal identity auth method name, required only when uid-token is not provided - * @member {String} auth-method-name - */ - - -UidCreateChildToken.prototype['auth-method-name'] = undefined; -/** - * Deny from new child to create their own children - * @member {Boolean} child-deny-inheritance - */ - -UidCreateChildToken.prototype['child-deny-inheritance'] = undefined; -/** - * Deny from new child to rotate - * @member {Boolean} child-deny-rotate - */ - -UidCreateChildToken.prototype['child-deny-rotate'] = undefined; -/** - * New child token ttl - * @member {Number} child-ttl - */ - -UidCreateChildToken.prototype['child-ttl'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -UidCreateChildToken.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UidCreateChildToken.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UidCreateChildToken.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UidCreateChildToken.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UidCreateChildToken.prototype['uid-token'] = undefined; -/** - * The ID of the uid-token, required only when uid-token is not provided - * @member {String} uid-token-id - */ - -UidCreateChildToken.prototype['uid-token-id'] = undefined; -var _default = UidCreateChildToken; -exports["default"] = _default; - -/***/ }), - -/***/ 25070: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UidCreateChildTokenOutput model module. - * @module model/UidCreateChildTokenOutput - * @version 3.3.16 - */ -var UidCreateChildTokenOutput = /*#__PURE__*/function () { - /** - * Constructs a new UidCreateChildTokenOutput. - * @alias module:model/UidCreateChildTokenOutput - */ - function UidCreateChildTokenOutput() { - _classCallCheck(this, UidCreateChildTokenOutput); - - UidCreateChildTokenOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UidCreateChildTokenOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UidCreateChildTokenOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UidCreateChildTokenOutput} obj Optional instance to populate. - * @return {module:model/UidCreateChildTokenOutput} The populated UidCreateChildTokenOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UidCreateChildTokenOutput(); - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - } - - return obj; - } - }]); - - return UidCreateChildTokenOutput; -}(); -/** - * @member {String} token - */ - - -UidCreateChildTokenOutput.prototype['token'] = undefined; -var _default = UidCreateChildTokenOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 56690: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UidGenerateToken model module. - * @module model/UidGenerateToken - * @version 3.3.16 - */ -var UidGenerateToken = /*#__PURE__*/function () { - /** - * Constructs a new UidGenerateToken. - * uidGenerateToken is a command that generates a new token using Akeyless Universal Identity. - * @alias module:model/UidGenerateToken - * @param authMethodName {String} The universal identity auth method name - */ - function UidGenerateToken(authMethodName) { - _classCallCheck(this, UidGenerateToken); - - UidGenerateToken.initialize(this, authMethodName); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UidGenerateToken, null, [{ - key: "initialize", - value: function initialize(obj, authMethodName) { - obj['auth-method-name'] = authMethodName; - } - /** - * Constructs a UidGenerateToken from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UidGenerateToken} obj Optional instance to populate. - * @return {module:model/UidGenerateToken} The populated UidGenerateToken instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UidGenerateToken(); - - if (data.hasOwnProperty('auth-method-name')) { - obj['auth-method-name'] = _ApiClient["default"].convertToType(data['auth-method-name'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UidGenerateToken; -}(); -/** - * The universal identity auth method name - * @member {String} auth-method-name - */ - - -UidGenerateToken.prototype['auth-method-name'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UidGenerateToken.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UidGenerateToken.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UidGenerateToken.prototype['uid-token'] = undefined; -var _default = UidGenerateToken; -exports["default"] = _default; - -/***/ }), - -/***/ 33367: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UidGenerateTokenOutput model module. - * @module model/UidGenerateTokenOutput - * @version 3.3.16 - */ -var UidGenerateTokenOutput = /*#__PURE__*/function () { - /** - * Constructs a new UidGenerateTokenOutput. - * @alias module:model/UidGenerateTokenOutput - */ - function UidGenerateTokenOutput() { - _classCallCheck(this, UidGenerateTokenOutput); - - UidGenerateTokenOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UidGenerateTokenOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UidGenerateTokenOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UidGenerateTokenOutput} obj Optional instance to populate. - * @return {module:model/UidGenerateTokenOutput} The populated UidGenerateTokenOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UidGenerateTokenOutput(); - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - } - - return obj; - } - }]); - - return UidGenerateTokenOutput; -}(); -/** - * @member {String} token - */ - - -UidGenerateTokenOutput.prototype['token'] = undefined; -var _default = UidGenerateTokenOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 55603: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UidListChildren model module. - * @module model/UidListChildren - * @version 3.3.16 - */ -var UidListChildren = /*#__PURE__*/function () { - /** - * Constructs a new UidListChildren. - * uidListChildren is a command that lists child token ids of Akeyless Universal Identity. - * @alias module:model/UidListChildren - */ - function UidListChildren() { - _classCallCheck(this, UidListChildren); - - UidListChildren.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UidListChildren, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UidListChildren from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UidListChildren} obj Optional instance to populate. - * @return {module:model/UidListChildren} The populated UidListChildren instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UidListChildren(); - - if (data.hasOwnProperty('auth-method-name')) { - obj['auth-method-name'] = _ApiClient["default"].convertToType(data['auth-method-name'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UidListChildren; -}(); -/** - * The universal identity auth method name, required only when uid-token is not provided - * @member {String} auth-method-name - */ - - -UidListChildren.prototype['auth-method-name'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UidListChildren.prototype['json'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UidListChildren.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UidListChildren.prototype['uid-token'] = undefined; -var _default = UidListChildren; -exports["default"] = _default; - -/***/ }), - -/***/ 60409: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UidRevokeToken model module. - * @module model/UidRevokeToken - * @version 3.3.16 - */ -var UidRevokeToken = /*#__PURE__*/function () { - /** - * Constructs a new UidRevokeToken. - * @alias module:model/UidRevokeToken - * @param revokeToken {String} the universal identity token/token-id to revoke - * @param revokeType {String} revokeSelf/revokeAll (delete only this token/this token and his children) - */ - function UidRevokeToken(revokeToken, revokeType) { - _classCallCheck(this, UidRevokeToken); - - UidRevokeToken.initialize(this, revokeToken, revokeType); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UidRevokeToken, null, [{ - key: "initialize", - value: function initialize(obj, revokeToken, revokeType) { - obj['revoke-token'] = revokeToken; - obj['revoke-type'] = revokeType; - } - /** - * Constructs a UidRevokeToken from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UidRevokeToken} obj Optional instance to populate. - * @return {module:model/UidRevokeToken} The populated UidRevokeToken instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UidRevokeToken(); - - if (data.hasOwnProperty('auth-method-name')) { - obj['auth-method-name'] = _ApiClient["default"].convertToType(data['auth-method-name'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('revoke-token')) { - obj['revoke-token'] = _ApiClient["default"].convertToType(data['revoke-token'], 'String'); - } - - if (data.hasOwnProperty('revoke-type')) { - obj['revoke-type'] = _ApiClient["default"].convertToType(data['revoke-type'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UidRevokeToken; -}(); -/** - * The universal identity auth method name - * @member {String} auth-method-name - */ - - -UidRevokeToken.prototype['auth-method-name'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UidRevokeToken.prototype['json'] = false; -/** - * the universal identity token/token-id to revoke - * @member {String} revoke-token - */ - -UidRevokeToken.prototype['revoke-token'] = undefined; -/** - * revokeSelf/revokeAll (delete only this token/this token and his children) - * @member {String} revoke-type - */ - -UidRevokeToken.prototype['revoke-type'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UidRevokeToken.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UidRevokeToken.prototype['uid-token'] = undefined; -var _default = UidRevokeToken; -exports["default"] = _default; - -/***/ }), - -/***/ 36310: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UidRotateToken model module. - * @module model/UidRotateToken - * @version 3.3.16 - */ -var UidRotateToken = /*#__PURE__*/function () { - /** - * Constructs a new UidRotateToken. - * uidRotateToken is a command that rotates an Akeyless Universal Identity token. - * @alias module:model/UidRotateToken - */ - function UidRotateToken() { - _classCallCheck(this, UidRotateToken); - - UidRotateToken.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UidRotateToken, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UidRotateToken from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UidRotateToken} obj Optional instance to populate. - * @return {module:model/UidRotateToken} The populated UidRotateToken instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UidRotateToken(); - - if (data.hasOwnProperty('fork')) { - obj['fork'] = _ApiClient["default"].convertToType(data['fork'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('send-manual-ack-token')) { - obj['send-manual-ack-token'] = _ApiClient["default"].convertToType(data['send-manual-ack-token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('with-manual-ack')) { - obj['with-manual-ack'] = _ApiClient["default"].convertToType(data['with-manual-ack'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UidRotateToken; -}(); -/** - * Create a new child token with default parameters - * @member {Boolean} fork - */ - - -UidRotateToken.prototype['fork'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UidRotateToken.prototype['json'] = false; -/** - * The new rotated token to send manual ack for (with uid-token=the-orig-token) - * @member {String} send-manual-ack-token - */ - -UidRotateToken.prototype['send-manual-ack-token'] = undefined; -/** - * The Universal identity token - * @member {String} uid-token - */ - -UidRotateToken.prototype['uid-token'] = undefined; -/** - * Disable automatic ack - * @member {Boolean} with-manual-ack - */ - -UidRotateToken.prototype['with-manual-ack'] = undefined; -var _default = UidRotateToken; -exports["default"] = _default; - -/***/ }), - -/***/ 34899: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UidRotateTokenOutput model module. - * @module model/UidRotateTokenOutput - * @version 3.3.16 - */ -var UidRotateTokenOutput = /*#__PURE__*/function () { - /** - * Constructs a new UidRotateTokenOutput. - * @alias module:model/UidRotateTokenOutput - */ - function UidRotateTokenOutput() { - _classCallCheck(this, UidRotateTokenOutput); - - UidRotateTokenOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UidRotateTokenOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UidRotateTokenOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UidRotateTokenOutput} obj Optional instance to populate. - * @return {module:model/UidRotateTokenOutput} The populated UidRotateTokenOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UidRotateTokenOutput(); - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - } - - return obj; - } - }]); - - return UidRotateTokenOutput; -}(); -/** - * @member {String} token - */ - - -UidRotateTokenOutput.prototype['token'] = undefined; -var _default = UidRotateTokenOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 52179: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Unconfigure model module. - * @module model/Unconfigure - * @version 3.3.16 - */ -var Unconfigure = /*#__PURE__*/function () { - /** - * Constructs a new Unconfigure. - * @alias module:model/Unconfigure - */ - function Unconfigure() { - _classCallCheck(this, Unconfigure); - - Unconfigure.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Unconfigure, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a Unconfigure from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Unconfigure} obj Optional instance to populate. - * @return {module:model/Unconfigure} The populated Unconfigure instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Unconfigure(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('profile')) { - obj['profile'] = _ApiClient["default"].convertToType(data['profile'], 'String'); - } - } - - return obj; - } - }]); - - return Unconfigure; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -Unconfigure.prototype['json'] = false; -/** - * The profile name to be removed - * @member {String} profile - * @default 'default' - */ - -Unconfigure.prototype['profile'] = 'default'; -var _default = Unconfigure; -exports["default"] = _default; - -/***/ }), - -/***/ 66824: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UniversalIdentityAccessRules model module. - * @module model/UniversalIdentityAccessRules - * @version 3.3.16 - */ -var UniversalIdentityAccessRules = /*#__PURE__*/function () { - /** - * Constructs a new UniversalIdentityAccessRules. - * @alias module:model/UniversalIdentityAccessRules - */ - function UniversalIdentityAccessRules() { - _classCallCheck(this, UniversalIdentityAccessRules); - - UniversalIdentityAccessRules.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UniversalIdentityAccessRules, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UniversalIdentityAccessRules from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UniversalIdentityAccessRules} obj Optional instance to populate. - * @return {module:model/UniversalIdentityAccessRules} The populated UniversalIdentityAccessRules instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UniversalIdentityAccessRules(); - - if (data.hasOwnProperty('deny_inheritance')) { - obj['deny_inheritance'] = _ApiClient["default"].convertToType(data['deny_inheritance'], 'Boolean'); - } - - if (data.hasOwnProperty('deny_rotate')) { - obj['deny_rotate'] = _ApiClient["default"].convertToType(data['deny_rotate'], 'Boolean'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - } - - return obj; - } - }]); - - return UniversalIdentityAccessRules; -}(); -/** - * @member {Boolean} deny_inheritance - */ - - -UniversalIdentityAccessRules.prototype['deny_inheritance'] = undefined; -/** - * @member {Boolean} deny_rotate - */ - -UniversalIdentityAccessRules.prototype['deny_rotate'] = undefined; -/** - * @member {Number} ttl - */ - -UniversalIdentityAccessRules.prototype['ttl'] = undefined; -var _default = UniversalIdentityAccessRules; -exports["default"] = _default; - -/***/ }), - -/***/ 81607: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _UIDTokenDetails = _interopRequireDefault(__nccwpck_require__(33593)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UniversalIdentityDetails model module. - * @module model/UniversalIdentityDetails - * @version 3.3.16 - */ -var UniversalIdentityDetails = /*#__PURE__*/function () { - /** - * Constructs a new UniversalIdentityDetails. - * @alias module:model/UniversalIdentityDetails - */ - function UniversalIdentityDetails() { - _classCallCheck(this, UniversalIdentityDetails); - - UniversalIdentityDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UniversalIdentityDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UniversalIdentityDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UniversalIdentityDetails} obj Optional instance to populate. - * @return {module:model/UniversalIdentityDetails} The populated UniversalIdentityDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UniversalIdentityDetails(); - - if (data.hasOwnProperty('max_depth')) { - obj['max_depth'] = _ApiClient["default"].convertToType(data['max_depth'], 'Number'); - } - - if (data.hasOwnProperty('number_of_tokens')) { - obj['number_of_tokens'] = _ApiClient["default"].convertToType(data['number_of_tokens'], 'Number'); - } - - if (data.hasOwnProperty('root')) { - obj['root'] = _UIDTokenDetails["default"].constructFromObject(data['root']); - } - } - - return obj; - } - }]); - - return UniversalIdentityDetails; -}(); -/** - * @member {Number} max_depth - */ - - -UniversalIdentityDetails.prototype['max_depth'] = undefined; -/** - * @member {Number} number_of_tokens - */ - -UniversalIdentityDetails.prototype['number_of_tokens'] = undefined; -/** - * @member {module:model/UIDTokenDetails} root - */ - -UniversalIdentityDetails.prototype['root'] = undefined; -var _default = UniversalIdentityDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 14745: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The Update model module. - * @module model/Update - * @version 3.3.16 - */ -var Update = /*#__PURE__*/function () { - /** - * Constructs a new Update. - * @alias module:model/Update - */ - function Update() { - _classCallCheck(this, Update); - - Update.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(Update, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a Update from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Update} obj Optional instance to populate. - * @return {module:model/Update} The populated Update instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Update(); - - if (data.hasOwnProperty('artifact-repository')) { - obj['artifact-repository'] = _ApiClient["default"].convertToType(data['artifact-repository'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('show-changelog')) { - obj['show-changelog'] = _ApiClient["default"].convertToType(data['show-changelog'], 'Boolean'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String'); - } - } - - return obj; - } - }]); - - return Update; -}(); -/** - * Alternative CLI repository url. e.g. https://artifacts.site2.akeyless.io - * @member {String} artifact-repository - */ - - -Update.prototype['artifact-repository'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -Update.prototype['json'] = false; -/** - * Show the changelog between the current version and the latest one and exit (update will not be performed) - * @member {Boolean} show-changelog - */ - -Update.prototype['show-changelog'] = undefined; -/** - * The CLI version - * @member {String} version - * @default 'latest' - */ - -Update.prototype['version'] = 'latest'; -var _default = Update; -exports["default"] = _default; - -/***/ }), - -/***/ 82797: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAWSTarget model module. - * @module model/UpdateAWSTarget - * @version 3.3.16 - */ -var UpdateAWSTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAWSTarget. - * @alias module:model/UpdateAWSTarget - * @param accessKey {String} AWS secret access key - * @param accessKeyId {String} AWS access key ID - * @param name {String} Target name - */ - function UpdateAWSTarget(accessKey, accessKeyId, name) { - _classCallCheck(this, UpdateAWSTarget); - - UpdateAWSTarget.initialize(this, accessKey, accessKeyId, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAWSTarget, null, [{ - key: "initialize", - value: function initialize(obj, accessKey, accessKeyId, name) { - obj['access-key'] = accessKey; - obj['access-key-id'] = accessKeyId; - obj['name'] = name; - } - /** - * Constructs a UpdateAWSTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAWSTarget} obj Optional instance to populate. - * @return {module:model/UpdateAWSTarget} The populated UpdateAWSTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAWSTarget(); - - if (data.hasOwnProperty('access-key')) { - obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); - } - - if (data.hasOwnProperty('access-key-id')) { - obj['access-key-id'] = _ApiClient["default"].convertToType(data['access-key-id'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } - - if (data.hasOwnProperty('session-token')) { - obj['session-token'] = _ApiClient["default"].convertToType(data['session-token'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateAWSTarget; -}(); -/** - * AWS secret access key - * @member {String} access-key - */ - - -UpdateAWSTarget.prototype['access-key'] = undefined; -/** - * AWS access key ID - * @member {String} access-key-id - */ - -UpdateAWSTarget.prototype['access-key-id'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -UpdateAWSTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateAWSTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAWSTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateAWSTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateAWSTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateAWSTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateAWSTarget.prototype['new-name'] = undefined; -/** - * AWS region - * @member {String} region - * @default 'us-east-2' - */ - -UpdateAWSTarget.prototype['region'] = 'us-east-2'; -/** - * Required only for temporary security credentials retrieved using STS - * @member {String} session-token - */ - -UpdateAWSTarget.prototype['session-token'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAWSTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateAWSTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateAWSTarget.prototype['update-version'] = undefined; -/** - * Use the GW's Cloud IAM - * @member {Boolean} use-gw-cloud-identity - */ - -UpdateAWSTarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = UpdateAWSTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 13631: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAWSTargetDetails model module. - * @module model/UpdateAWSTargetDetails - * @version 3.3.16 - */ -var UpdateAWSTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAWSTargetDetails. - * @alias module:model/UpdateAWSTargetDetails - * @param name {String} Target name - */ - function UpdateAWSTargetDetails(name) { - _classCallCheck(this, UpdateAWSTargetDetails); - - UpdateAWSTargetDetails.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAWSTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateAWSTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAWSTargetDetails} obj Optional instance to populate. - * @return {module:model/UpdateAWSTargetDetails} The populated UpdateAWSTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAWSTargetDetails(); - - if (data.hasOwnProperty('access-key')) { - obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); - } - - if (data.hasOwnProperty('access-key-id')) { - obj['access-key-id'] = _ApiClient["default"].convertToType(data['access-key-id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-version')) { - obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); - } - - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); - } - - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } - - if (data.hasOwnProperty('session-token')) { - obj['session-token'] = _ApiClient["default"].convertToType(data['session-token'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAWSTargetDetails; -}(); -/** - * The aws secret access key - * @member {String} access-key - */ - - -UpdateAWSTargetDetails.prototype['access-key'] = undefined; -/** - * The aws access key id - * @member {String} access-key-id - */ - -UpdateAWSTargetDetails.prototype['access-key-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAWSTargetDetails.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateAWSTargetDetails.prototype['keep-prev-version'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateAWSTargetDetails.prototype['name'] = undefined; -/** - * Deprecated - * @member {Boolean} new-version - */ - -UpdateAWSTargetDetails.prototype['new-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key - */ - -UpdateAWSTargetDetails.prototype['protection_key'] = undefined; -/** - * The aws region - * @member {String} region - * @default 'us-east-2' - */ - -UpdateAWSTargetDetails.prototype['region'] = 'us-east-2'; -/** - * Required only for temporary security credentials retrieved via STS, otherwise it can be an empty string - * @member {String} session-token - */ - -UpdateAWSTargetDetails.prototype['session-token'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAWSTargetDetails.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateAWSTargetDetails.prototype['uid-token'] = undefined; -var _default = UpdateAWSTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 7427: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAccountSettings model module. - * @module model/UpdateAccountSettings - * @version 3.3.16 - */ -var UpdateAccountSettings = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAccountSettings. - * @alias module:model/UpdateAccountSettings - */ - function UpdateAccountSettings() { - _classCallCheck(this, UpdateAccountSettings); - - UpdateAccountSettings.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAccountSettings, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateAccountSettings from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAccountSettings} obj Optional instance to populate. - * @return {module:model/UpdateAccountSettings} The populated UpdateAccountSettings instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAccountSettings(); - - if (data.hasOwnProperty('address')) { - obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String'); - } - - if (data.hasOwnProperty('city')) { - obj['city'] = _ApiClient["default"].convertToType(data['city'], 'String'); - } - - if (data.hasOwnProperty('company-name')) { - obj['company-name'] = _ApiClient["default"].convertToType(data['company-name'], 'String'); - } - - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); - } - - if (data.hasOwnProperty('default-key-name')) { - obj['default-key-name'] = _ApiClient["default"].convertToType(data['default-key-name'], 'String'); - } - - if (data.hasOwnProperty('default-share-link-ttl-minutes')) { - obj['default-share-link-ttl-minutes'] = _ApiClient["default"].convertToType(data['default-share-link-ttl-minutes'], 'String'); - } - - if (data.hasOwnProperty('default-versioning')) { - obj['default-versioning'] = _ApiClient["default"].convertToType(data['default-versioning'], 'String'); - } - - if (data.hasOwnProperty('dp-enable-classic-key-protection')) { - obj['dp-enable-classic-key-protection'] = _ApiClient["default"].convertToType(data['dp-enable-classic-key-protection'], 'String'); - } - - if (data.hasOwnProperty('item-type')) { - obj['item-type'] = _ApiClient["default"].convertToType(data['item-type'], 'String'); - } - - if (data.hasOwnProperty('items-deletion-protection')) { - obj['items-deletion-protection'] = _ApiClient["default"].convertToType(data['items-deletion-protection'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl-default')) { - obj['jwt-ttl-default'] = _ApiClient["default"].convertToType(data['jwt-ttl-default'], 'Number'); - } - - if (data.hasOwnProperty('jwt-ttl-max')) { - obj['jwt-ttl-max'] = _ApiClient["default"].convertToType(data['jwt-ttl-max'], 'Number'); - } - - if (data.hasOwnProperty('jwt-ttl-min')) { - obj['jwt-ttl-min'] = _ApiClient["default"].convertToType(data['jwt-ttl-min'], 'Number'); - } - - if (data.hasOwnProperty('max-versions')) { - obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); - } - - if (data.hasOwnProperty('password-length')) { - obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'Number'); - } - - if (data.hasOwnProperty('phone')) { - obj['phone'] = _ApiClient["default"].convertToType(data['phone'], 'String'); - } - - if (data.hasOwnProperty('postal-code')) { - obj['postal-code'] = _ApiClient["default"].convertToType(data['postal-code'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('use-lower-letters')) { - obj['use-lower-letters'] = _ApiClient["default"].convertToType(data['use-lower-letters'], 'String'); - } - - if (data.hasOwnProperty('use-numbers')) { - obj['use-numbers'] = _ApiClient["default"].convertToType(data['use-numbers'], 'String'); - } - - if (data.hasOwnProperty('use-special-characters')) { - obj['use-special-characters'] = _ApiClient["default"].convertToType(data['use-special-characters'], 'String'); - } - - if (data.hasOwnProperty('use_capital-letters')) { - obj['use_capital-letters'] = _ApiClient["default"].convertToType(data['use_capital-letters'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAccountSettings; -}(); -/** - * Address - * @member {String} address - */ - - -UpdateAccountSettings.prototype['address'] = undefined; -/** - * City - * @member {String} city - */ - -UpdateAccountSettings.prototype['city'] = undefined; -/** - * Company name - * @member {String} company-name - */ - -UpdateAccountSettings.prototype['company-name'] = undefined; -/** - * Country - * @member {String} country - */ - -UpdateAccountSettings.prototype['country'] = undefined; -/** - * Set the account default key based on the DFC key item name. Use \"set-original-akeyless-default-key\" to revert to using the original default key of the account. Empty string will change nothing. - * @member {String} default-key-name - */ - -UpdateAccountSettings.prototype['default-key-name'] = undefined; -/** - * Set the default ttl in minutes for sharing item number between 60 and 43200 - * @member {String} default-share-link-ttl-minutes - */ - -UpdateAccountSettings.prototype['default-share-link-ttl-minutes'] = undefined; -/** - * If set to true, new item version will be created on each update [true/false] - * @member {String} default-versioning - */ - -UpdateAccountSettings.prototype['default-versioning'] = undefined; -/** - * Set to update protection with classic keys state [true/false] - * @member {String} dp-enable-classic-key-protection - */ - -UpdateAccountSettings.prototype['dp-enable-classic-key-protection'] = undefined; -/** - * VersionSettingsObjectType defines object types for account version settings - * @member {String} item-type - */ - -UpdateAccountSettings.prototype['item-type'] = undefined; -/** - * Set or unset the default behaviour of items deletion protection [true/false] - * @member {String} items-deletion-protection - */ - -UpdateAccountSettings.prototype['items-deletion-protection'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAccountSettings.prototype['json'] = false; -/** - * Default ttl - * @member {Number} jwt-ttl-default - */ - -UpdateAccountSettings.prototype['jwt-ttl-default'] = undefined; -/** - * Maximum ttl - * @member {Number} jwt-ttl-max - */ - -UpdateAccountSettings.prototype['jwt-ttl-max'] = undefined; -/** - * Minimum ttl - * @member {Number} jwt-ttl-min - */ - -UpdateAccountSettings.prototype['jwt-ttl-min'] = undefined; -/** - * Max versions - * @member {String} max-versions - */ - -UpdateAccountSettings.prototype['max-versions'] = undefined; -/** - * Password length between 5 - to 50 characters - * @member {Number} password-length - */ - -UpdateAccountSettings.prototype['password-length'] = undefined; -/** - * Phone number - * @member {String} phone - */ - -UpdateAccountSettings.prototype['phone'] = undefined; -/** - * Postal code - * @member {String} postal-code - */ - -UpdateAccountSettings.prototype['postal-code'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAccountSettings.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateAccountSettings.prototype['uid-token'] = undefined; -/** - * Password must contain lower case letters [true/false] - * @member {String} use-lower-letters - */ - -UpdateAccountSettings.prototype['use-lower-letters'] = undefined; -/** - * Password must contain numbers [true/false] - * @member {String} use-numbers - */ - -UpdateAccountSettings.prototype['use-numbers'] = undefined; -/** - * Password must contain special characters [true/false] - * @member {String} use-special-characters - */ - -UpdateAccountSettings.prototype['use-special-characters'] = undefined; -/** - * Password must contain capital letters [true/false] - * @member {String} use_capital-letters - */ - -UpdateAccountSettings.prototype['use_capital-letters'] = undefined; -var _default = UpdateAccountSettings; -exports["default"] = _default; - -/***/ }), - -/***/ 73106: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAccountSettingsOutput model module. - * @module model/UpdateAccountSettingsOutput - * @version 3.3.16 - */ -var UpdateAccountSettingsOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAccountSettingsOutput. - * @alias module:model/UpdateAccountSettingsOutput - */ - function UpdateAccountSettingsOutput() { - _classCallCheck(this, UpdateAccountSettingsOutput); - - UpdateAccountSettingsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAccountSettingsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateAccountSettingsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAccountSettingsOutput} obj Optional instance to populate. - * @return {module:model/UpdateAccountSettingsOutput} The populated UpdateAccountSettingsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAccountSettingsOutput(); - - if (data.hasOwnProperty('updated')) { - obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateAccountSettingsOutput; -}(); -/** - * @member {Boolean} updated - */ - - -UpdateAccountSettingsOutput.prototype['updated'] = undefined; -var _default = UpdateAccountSettingsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 68146: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateArtifactoryTarget model module. - * @module model/UpdateArtifactoryTarget - * @version 3.3.16 - */ -var UpdateArtifactoryTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateArtifactoryTarget. - * @alias module:model/UpdateArtifactoryTarget - * @param artifactoryAdminName {String} Artifactory Admin Name - * @param artifactoryAdminPwd {String} Artifactory Admin password - * @param baseUrl {String} Base URL - * @param name {String} Target name - */ - function UpdateArtifactoryTarget(artifactoryAdminName, artifactoryAdminPwd, baseUrl, name) { - _classCallCheck(this, UpdateArtifactoryTarget); - - UpdateArtifactoryTarget.initialize(this, artifactoryAdminName, artifactoryAdminPwd, baseUrl, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateArtifactoryTarget, null, [{ - key: "initialize", - value: function initialize(obj, artifactoryAdminName, artifactoryAdminPwd, baseUrl, name) { - obj['artifactory-admin-name'] = artifactoryAdminName; - obj['artifactory-admin-pwd'] = artifactoryAdminPwd; - obj['base-url'] = baseUrl; - obj['name'] = name; - } - /** - * Constructs a UpdateArtifactoryTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateArtifactoryTarget} obj Optional instance to populate. - * @return {module:model/UpdateArtifactoryTarget} The populated UpdateArtifactoryTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateArtifactoryTarget(); - - if (data.hasOwnProperty('artifactory-admin-name')) { - obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); - } - - if (data.hasOwnProperty('artifactory-admin-pwd')) { - obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); - } - - if (data.hasOwnProperty('base-url')) { - obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateArtifactoryTarget; -}(); -/** - * Artifactory Admin Name - * @member {String} artifactory-admin-name - */ - - -UpdateArtifactoryTarget.prototype['artifactory-admin-name'] = undefined; -/** - * Artifactory Admin password - * @member {String} artifactory-admin-pwd - */ - -UpdateArtifactoryTarget.prototype['artifactory-admin-pwd'] = undefined; -/** - * Base URL - * @member {String} base-url - */ - -UpdateArtifactoryTarget.prototype['base-url'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -UpdateArtifactoryTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateArtifactoryTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateArtifactoryTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateArtifactoryTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateArtifactoryTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateArtifactoryTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateArtifactoryTarget.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateArtifactoryTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateArtifactoryTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateArtifactoryTarget.prototype['update-version'] = undefined; -var _default = UpdateArtifactoryTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 95639: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateArtifactoryTargetOutput model module. - * @module model/UpdateArtifactoryTargetOutput - * @version 3.3.16 - */ -var UpdateArtifactoryTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateArtifactoryTargetOutput. - * @alias module:model/UpdateArtifactoryTargetOutput - */ - function UpdateArtifactoryTargetOutput() { - _classCallCheck(this, UpdateArtifactoryTargetOutput); - - UpdateArtifactoryTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateArtifactoryTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateArtifactoryTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateArtifactoryTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateArtifactoryTargetOutput} The populated UpdateArtifactoryTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateArtifactoryTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateArtifactoryTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateArtifactoryTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateArtifactoryTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 68862: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAssoc model module. - * @module model/UpdateAssoc - * @version 3.3.16 - */ -var UpdateAssoc = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAssoc. - * updateAssoc is a command that updates the sub-claims of an association between role and auth method. - * @alias module:model/UpdateAssoc - * @param assocId {String} The association id to be updated - */ - function UpdateAssoc(assocId) { - _classCallCheck(this, UpdateAssoc); - - UpdateAssoc.initialize(this, assocId); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAssoc, null, [{ - key: "initialize", - value: function initialize(obj, assocId) { - obj['assoc-id'] = assocId; - } - /** - * Constructs a UpdateAssoc from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAssoc} obj Optional instance to populate. - * @return {module:model/UpdateAssoc} The populated UpdateAssoc instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAssoc(); - - if (data.hasOwnProperty('assoc-id')) { - obj['assoc-id'] = _ApiClient["default"].convertToType(data['assoc-id'], 'String'); - } - - if (data.hasOwnProperty('case-sensitive')) { - obj['case-sensitive'] = _ApiClient["default"].convertToType(data['case-sensitive'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('sub-claims')) { - obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAssoc; -}(); -/** - * The association id to be updated - * @member {String} assoc-id - */ - - -UpdateAssoc.prototype['assoc-id'] = undefined; -/** - * Treat sub claims as case-sensitive [true/false] - * @member {String} case-sensitive - * @default 'true' - */ - -UpdateAssoc.prototype['case-sensitive'] = 'true'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAssoc.prototype['json'] = false; -/** - * key/val of sub claims, e.g group=admins,developers - * @member {Object.} sub-claims - */ - -UpdateAssoc.prototype['sub-claims'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAssoc.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateAssoc.prototype['uid-token'] = undefined; -var _default = UpdateAssoc; -exports["default"] = _default; - -/***/ }), - -/***/ 25222: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAuthMethod model module. - * @module model/UpdateAuthMethod - * @version 3.3.16 - */ -var UpdateAuthMethod = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethod. - * @alias module:model/UpdateAuthMethod - * @param name {String} Auth Method name - */ - function UpdateAuthMethod(name) { - _classCallCheck(this, UpdateAuthMethod); - - UpdateAuthMethod.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethod, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateAuthMethod from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethod} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethod} The populated UpdateAuthMethod instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethod(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAuthMethod; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethod.prototype['access-expires'] = 0; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -UpdateAuthMethod.prototype['bound-ips'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -UpdateAuthMethod.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -UpdateAuthMethod.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAuthMethod.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -UpdateAuthMethod.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -UpdateAuthMethod.prototype['name'] = undefined; -/** - * Auth Method new name - * @member {String} new-name - */ - -UpdateAuthMethod.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAuthMethod.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateAuthMethod.prototype['uid-token'] = undefined; -var _default = UpdateAuthMethod; -exports["default"] = _default; - -/***/ }), - -/***/ 67296: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAuthMethodAWSIAM model module. - * @module model/UpdateAuthMethodAWSIAM - * @version 3.3.16 - */ -var UpdateAuthMethodAWSIAM = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethodAWSIAM. - * updateAuthMethodAWSIAM is a command that updates a new Auth Method that will be able to authenticate using AWS IAM credentials. - * @alias module:model/UpdateAuthMethodAWSIAM - * @param boundAwsAccountId {Array.} A list of AWS account-IDs that the access is restricted to - * @param name {String} Auth Method name - */ - function UpdateAuthMethodAWSIAM(boundAwsAccountId, name) { - _classCallCheck(this, UpdateAuthMethodAWSIAM); - - UpdateAuthMethodAWSIAM.initialize(this, boundAwsAccountId, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethodAWSIAM, null, [{ - key: "initialize", - value: function initialize(obj, boundAwsAccountId, name) { - obj['bound-aws-account-id'] = boundAwsAccountId; - obj['name'] = name; - } - /** - * Constructs a UpdateAuthMethodAWSIAM from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodAWSIAM} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodAWSIAM} The populated UpdateAuthMethodAWSIAM instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethodAWSIAM(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('bound-arn')) { - obj['bound-arn'] = _ApiClient["default"].convertToType(data['bound-arn'], ['String']); - } - - if (data.hasOwnProperty('bound-aws-account-id')) { - obj['bound-aws-account-id'] = _ApiClient["default"].convertToType(data['bound-aws-account-id'], ['String']); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('bound-resource-id')) { - obj['bound-resource-id'] = _ApiClient["default"].convertToType(data['bound-resource-id'], ['String']); - } - - if (data.hasOwnProperty('bound-role-id')) { - obj['bound-role-id'] = _ApiClient["default"].convertToType(data['bound-role-id'], ['String']); - } - - if (data.hasOwnProperty('bound-role-name')) { - obj['bound-role-name'] = _ApiClient["default"].convertToType(data['bound-role-name'], ['String']); - } - - if (data.hasOwnProperty('bound-user-id')) { - obj['bound-user-id'] = _ApiClient["default"].convertToType(data['bound-user-id'], ['String']); - } - - if (data.hasOwnProperty('bound-user-name')) { - obj['bound-user-name'] = _ApiClient["default"].convertToType(data['bound-user-name'], ['String']); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('sts-url')) { - obj['sts-url'] = _ApiClient["default"].convertToType(data['sts-url'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAuthMethodAWSIAM; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethodAWSIAM.prototype['access-expires'] = 0; -/** - * A list of full arns that the access is restricted to - * @member {Array.} bound-arn - */ - -UpdateAuthMethodAWSIAM.prototype['bound-arn'] = undefined; -/** - * A list of AWS account-IDs that the access is restricted to - * @member {Array.} bound-aws-account-id - */ - -UpdateAuthMethodAWSIAM.prototype['bound-aws-account-id'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -UpdateAuthMethodAWSIAM.prototype['bound-ips'] = undefined; -/** - * A list of full resource ids that the access is restricted to - * @member {Array.} bound-resource-id - */ - -UpdateAuthMethodAWSIAM.prototype['bound-resource-id'] = undefined; -/** - * A list of full role ids that the access is restricted to - * @member {Array.} bound-role-id - */ - -UpdateAuthMethodAWSIAM.prototype['bound-role-id'] = undefined; -/** - * A list of full role-name that the access is restricted to - * @member {Array.} bound-role-name - */ - -UpdateAuthMethodAWSIAM.prototype['bound-role-name'] = undefined; -/** - * A list of full user ids that the access is restricted to - * @member {Array.} bound-user-id - */ - -UpdateAuthMethodAWSIAM.prototype['bound-user-id'] = undefined; -/** - * A list of full user-name that the access is restricted to - * @member {Array.} bound-user-name - */ - -UpdateAuthMethodAWSIAM.prototype['bound-user-name'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -UpdateAuthMethodAWSIAM.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -UpdateAuthMethodAWSIAM.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAuthMethodAWSIAM.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -UpdateAuthMethodAWSIAM.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -UpdateAuthMethodAWSIAM.prototype['name'] = undefined; -/** - * Auth Method new name - * @member {String} new-name - */ - -UpdateAuthMethodAWSIAM.prototype['new-name'] = undefined; -/** - * sts URL - * @member {String} sts-url - * @default 'https://sts.amazonaws.com' - */ - -UpdateAuthMethodAWSIAM.prototype['sts-url'] = 'https://sts.amazonaws.com'; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAuthMethodAWSIAM.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateAuthMethodAWSIAM.prototype['uid-token'] = undefined; -var _default = UpdateAuthMethodAWSIAM; -exports["default"] = _default; - -/***/ }), - -/***/ 95622: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAuthMethodAzureAD model module. - * @module model/UpdateAuthMethodAzureAD - * @version 3.3.16 - */ -var UpdateAuthMethodAzureAD = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethodAzureAD. - * updateAuthMethodAzureAD is a command that updates a new auth method that will be able to authenticate using Azure Active Directory credentials. - * @alias module:model/UpdateAuthMethodAzureAD - * @param boundTenantId {String} The Azure tenant id that the access is restricted to - * @param name {String} Auth Method name - */ - function UpdateAuthMethodAzureAD(boundTenantId, name) { - _classCallCheck(this, UpdateAuthMethodAzureAD); - - UpdateAuthMethodAzureAD.initialize(this, boundTenantId, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethodAzureAD, null, [{ - key: "initialize", - value: function initialize(obj, boundTenantId, name) { - obj['bound-tenant-id'] = boundTenantId; - obj['name'] = name; - } - /** - * Constructs a UpdateAuthMethodAzureAD from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodAzureAD} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodAzureAD} The populated UpdateAuthMethodAzureAD instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethodAzureAD(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); - } - - if (data.hasOwnProperty('bound-group-id')) { - obj['bound-group-id'] = _ApiClient["default"].convertToType(data['bound-group-id'], ['String']); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('bound-providers')) { - obj['bound-providers'] = _ApiClient["default"].convertToType(data['bound-providers'], ['String']); - } - - if (data.hasOwnProperty('bound-resource-id')) { - obj['bound-resource-id'] = _ApiClient["default"].convertToType(data['bound-resource-id'], ['String']); - } - - if (data.hasOwnProperty('bound-resource-names')) { - obj['bound-resource-names'] = _ApiClient["default"].convertToType(data['bound-resource-names'], ['String']); - } - - if (data.hasOwnProperty('bound-resource-types')) { - obj['bound-resource-types'] = _ApiClient["default"].convertToType(data['bound-resource-types'], ['String']); - } - - if (data.hasOwnProperty('bound-rg-id')) { - obj['bound-rg-id'] = _ApiClient["default"].convertToType(data['bound-rg-id'], ['String']); - } - - if (data.hasOwnProperty('bound-spid')) { - obj['bound-spid'] = _ApiClient["default"].convertToType(data['bound-spid'], ['String']); - } - - if (data.hasOwnProperty('bound-sub-id')) { - obj['bound-sub-id'] = _ApiClient["default"].convertToType(data['bound-sub-id'], ['String']); - } - - if (data.hasOwnProperty('bound-tenant-id')) { - obj['bound-tenant-id'] = _ApiClient["default"].convertToType(data['bound-tenant-id'], 'String'); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwks-uri')) { - obj['jwks-uri'] = _ApiClient["default"].convertToType(data['jwks-uri'], 'String'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAuthMethodAzureAD; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethodAzureAD.prototype['access-expires'] = 0; -/** - * The audience in the JWT - * @member {String} audience - * @default 'https://management.azure.com/' - */ - -UpdateAuthMethodAzureAD.prototype['audience'] = 'https://management.azure.com/'; -/** - * A list of group ids that the access is restricted to - * @member {Array.} bound-group-id - */ - -UpdateAuthMethodAzureAD.prototype['bound-group-id'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -UpdateAuthMethodAzureAD.prototype['bound-ips'] = undefined; -/** - * A list of resource providers that the access is restricted to (e.g, Microsoft.Compute, Microsoft.ManagedIdentity, etc) - * @member {Array.} bound-providers - */ - -UpdateAuthMethodAzureAD.prototype['bound-providers'] = undefined; -/** - * A list of full resource ids that the access is restricted to - * @member {Array.} bound-resource-id - */ - -UpdateAuthMethodAzureAD.prototype['bound-resource-id'] = undefined; -/** - * A list of resource names that the access is restricted to (e.g, a virtual machine name, scale set name, etc). - * @member {Array.} bound-resource-names - */ - -UpdateAuthMethodAzureAD.prototype['bound-resource-names'] = undefined; -/** - * A list of resource types that the access is restricted to (e.g, virtualMachines, userAssignedIdentities, etc) - * @member {Array.} bound-resource-types - */ - -UpdateAuthMethodAzureAD.prototype['bound-resource-types'] = undefined; -/** - * A list of resource groups that the access is restricted to - * @member {Array.} bound-rg-id - */ - -UpdateAuthMethodAzureAD.prototype['bound-rg-id'] = undefined; -/** - * A list of service principal IDs that the access is restricted to - * @member {Array.} bound-spid - */ - -UpdateAuthMethodAzureAD.prototype['bound-spid'] = undefined; -/** - * A list of subscription ids that the access is restricted to - * @member {Array.} bound-sub-id - */ - -UpdateAuthMethodAzureAD.prototype['bound-sub-id'] = undefined; -/** - * The Azure tenant id that the access is restricted to - * @member {String} bound-tenant-id - */ - -UpdateAuthMethodAzureAD.prototype['bound-tenant-id'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -UpdateAuthMethodAzureAD.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -UpdateAuthMethodAzureAD.prototype['gw-bound-ips'] = undefined; -/** - * Issuer URL - * @member {String} issuer - * @default 'https://sts.windows.net/---bound_tenant_id---' - */ - -UpdateAuthMethodAzureAD.prototype['issuer'] = 'https://sts.windows.net/---bound_tenant_id---'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAuthMethodAzureAD.prototype['json'] = false; -/** - * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. - * @member {String} jwks-uri - * @default 'https://login.microsoftonline.com/common/discovery/keys' - */ - -UpdateAuthMethodAzureAD.prototype['jwks-uri'] = 'https://login.microsoftonline.com/common/discovery/keys'; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -UpdateAuthMethodAzureAD.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -UpdateAuthMethodAzureAD.prototype['name'] = undefined; -/** - * Auth Method new name - * @member {String} new-name - */ - -UpdateAuthMethodAzureAD.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAuthMethodAzureAD.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateAuthMethodAzureAD.prototype['uid-token'] = undefined; -var _default = UpdateAuthMethodAzureAD; -exports["default"] = _default; - -/***/ }), - -/***/ 18408: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAuthMethodCert model module. - * @module model/UpdateAuthMethodCert - * @version 3.3.16 - */ -var UpdateAuthMethodCert = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethodCert. - * updateAuthMethodCert is a command that updates a new auth method that will be able to authenticate using a client certificae - * @alias module:model/UpdateAuthMethodCert - * @param name {String} Auth Method name - * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured, such as common_name or organizational_unit Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - */ - function UpdateAuthMethodCert(name, uniqueIdentifier) { - _classCallCheck(this, UpdateAuthMethodCert); - - UpdateAuthMethodCert.initialize(this, name, uniqueIdentifier); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethodCert, null, [{ - key: "initialize", - value: function initialize(obj, name, uniqueIdentifier) { - obj['name'] = name; - obj['unique-identifier'] = uniqueIdentifier; - } - /** - * Constructs a UpdateAuthMethodCert from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodCert} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodCert} The populated UpdateAuthMethodCert instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethodCert(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('allowed-cors')) { - obj['allowed-cors'] = _ApiClient["default"].convertToType(data['allowed-cors'], 'String'); - } - - if (data.hasOwnProperty('bound-common-names')) { - obj['bound-common-names'] = _ApiClient["default"].convertToType(data['bound-common-names'], ['String']); - } - - if (data.hasOwnProperty('bound-dns-sans')) { - obj['bound-dns-sans'] = _ApiClient["default"].convertToType(data['bound-dns-sans'], ['String']); - } - - if (data.hasOwnProperty('bound-email-sans')) { - obj['bound-email-sans'] = _ApiClient["default"].convertToType(data['bound-email-sans'], ['String']); - } - - if (data.hasOwnProperty('bound-extensions')) { - obj['bound-extensions'] = _ApiClient["default"].convertToType(data['bound-extensions'], ['String']); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('bound-organizational-units')) { - obj['bound-organizational-units'] = _ApiClient["default"].convertToType(data['bound-organizational-units'], ['String']); - } - - if (data.hasOwnProperty('bound-uri-sans')) { - obj['bound-uri-sans'] = _ApiClient["default"].convertToType(data['bound-uri-sans'], ['String']); - } - - if (data.hasOwnProperty('certificate-data')) { - obj['certificate-data'] = _ApiClient["default"].convertToType(data['certificate-data'], 'String'); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('revoked-cert-ids')) { - obj['revoked-cert-ids'] = _ApiClient["default"].convertToType(data['revoked-cert-ids'], ['String']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAuthMethodCert; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethodCert.prototype['access-expires'] = 0; -/** - * Comma separated list of allowed CORS domains to be validated as part of the authentication flow. - * @member {String} allowed-cors - */ - -UpdateAuthMethodCert.prototype['allowed-cors'] = undefined; -/** - * A list of names. At least one must exist in the Common Name. Supports globbing. - * @member {Array.} bound-common-names - */ - -UpdateAuthMethodCert.prototype['bound-common-names'] = undefined; -/** - * A list of DNS names. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound-dns-sans - */ - -UpdateAuthMethodCert.prototype['bound-dns-sans'] = undefined; -/** - * A list of Email Addresses. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound-email-sans - */ - -UpdateAuthMethodCert.prototype['bound-email-sans'] = undefined; -/** - * A list of extensions formatted as \"oid:value\". Expects the extension value to be some type of ASN1 encoded string. All values much match. Supports globbing on \"value\". - * @member {Array.} bound-extensions - */ - -UpdateAuthMethodCert.prototype['bound-extensions'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -UpdateAuthMethodCert.prototype['bound-ips'] = undefined; -/** - * A list of Organizational Units names. At least one must exist in the OU field. - * @member {Array.} bound-organizational-units - */ - -UpdateAuthMethodCert.prototype['bound-organizational-units'] = undefined; -/** - * A list of URIs. At least one must exist in the SANs. Supports globbing. - * @member {Array.} bound-uri-sans - */ - -UpdateAuthMethodCert.prototype['bound-uri-sans'] = undefined; -/** - * The certificate data in base64, if no file was provided - * @member {String} certificate-data - */ - -UpdateAuthMethodCert.prototype['certificate-data'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -UpdateAuthMethodCert.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -UpdateAuthMethodCert.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAuthMethodCert.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -UpdateAuthMethodCert.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -UpdateAuthMethodCert.prototype['name'] = undefined; -/** - * Auth Method new name - * @member {String} new-name - */ - -UpdateAuthMethodCert.prototype['new-name'] = undefined; -/** - * A list of revoked cert ids - * @member {Array.} revoked-cert-ids - */ - -UpdateAuthMethodCert.prototype['revoked-cert-ids'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAuthMethodCert.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateAuthMethodCert.prototype['uid-token'] = undefined; -/** - * A unique identifier (ID) value should be configured, such as common_name or organizational_unit Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier - */ - -UpdateAuthMethodCert.prototype['unique-identifier'] = undefined; -var _default = UpdateAuthMethodCert; -exports["default"] = _default; - -/***/ }), - -/***/ 33: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAuthMethodCertOutput model module. - * @module model/UpdateAuthMethodCertOutput - * @version 3.3.16 - */ -var UpdateAuthMethodCertOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethodCertOutput. - * @alias module:model/UpdateAuthMethodCertOutput - */ - function UpdateAuthMethodCertOutput() { - _classCallCheck(this, UpdateAuthMethodCertOutput); - - UpdateAuthMethodCertOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethodCertOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateAuthMethodCertOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodCertOutput} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodCertOutput} The populated UpdateAuthMethodCertOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethodCertOutput(); - - if (data.hasOwnProperty('access_id')) { - obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAuthMethodCertOutput; -}(); -/** - * @member {String} access_id - */ - - -UpdateAuthMethodCertOutput.prototype['access_id'] = undefined; -var _default = UpdateAuthMethodCertOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 56494: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAuthMethodGCP model module. - * @module model/UpdateAuthMethodGCP - * @version 3.3.16 - */ -var UpdateAuthMethodGCP = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethodGCP. - * updateAuthMethodGCP is a command that updates a new auth method that will be able to authenticate using GCP IAM Service Account credentials or GCE instance credentials. - * @alias module:model/UpdateAuthMethodGCP - * @param audience {String} The audience to verify in the JWT received by the client - * @param name {String} Auth Method name - * @param type {String} Type of the GCP Access Rules - */ - function UpdateAuthMethodGCP(audience, name, type) { - _classCallCheck(this, UpdateAuthMethodGCP); - - UpdateAuthMethodGCP.initialize(this, audience, name, type); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethodGCP, null, [{ - key: "initialize", - value: function initialize(obj, audience, name, type) { - obj['audience'] = audience; - obj['name'] = name; - obj['type'] = type; - } - /** - * Constructs a UpdateAuthMethodGCP from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodGCP} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodGCP} The populated UpdateAuthMethodGCP instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethodGCP(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('bound-labels')) { - obj['bound-labels'] = _ApiClient["default"].convertToType(data['bound-labels'], ['String']); - } - - if (data.hasOwnProperty('bound-projects')) { - obj['bound-projects'] = _ApiClient["default"].convertToType(data['bound-projects'], ['String']); - } - - if (data.hasOwnProperty('bound-regions')) { - obj['bound-regions'] = _ApiClient["default"].convertToType(data['bound-regions'], ['String']); - } - - if (data.hasOwnProperty('bound-service-accounts')) { - obj['bound-service-accounts'] = _ApiClient["default"].convertToType(data['bound-service-accounts'], ['String']); - } - - if (data.hasOwnProperty('bound-zones')) { - obj['bound-zones'] = _ApiClient["default"].convertToType(data['bound-zones'], ['String']); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('service-account-creds-data')) { - obj['service-account-creds-data'] = _ApiClient["default"].convertToType(data['service-account-creds-data'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAuthMethodGCP; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethodGCP.prototype['access-expires'] = 0; -/** - * The audience to verify in the JWT received by the client - * @member {String} audience - * @default 'akeyless.io' - */ - -UpdateAuthMethodGCP.prototype['audience'] = 'akeyless.io'; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -UpdateAuthMethodGCP.prototype['bound-ips'] = undefined; -/** - * A comma-separated list of GCP labels formatted as \"key:value\" strings that must be set on authorized GCE instances. TODO: Because GCP labels are not currently ACL'd .... - * @member {Array.} bound-labels - */ - -UpdateAuthMethodGCP.prototype['bound-labels'] = undefined; -/** - * === Human and Machine authentication section === Array of GCP project IDs. Only entities belonging to any of the provided projects can authenticate. - * @member {Array.} bound-projects - */ - -UpdateAuthMethodGCP.prototype['bound-projects'] = undefined; -/** - * List of regions that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored. - * @member {Array.} bound-regions - */ - -UpdateAuthMethodGCP.prototype['bound-regions'] = undefined; -/** - * List of service accounts the service account must be part of in order to be authenticated. - * @member {Array.} bound-service-accounts - */ - -UpdateAuthMethodGCP.prototype['bound-service-accounts'] = undefined; -/** - * === Machine authentication section === List of zones that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone. - * @member {Array.} bound-zones - */ - -UpdateAuthMethodGCP.prototype['bound-zones'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -UpdateAuthMethodGCP.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -UpdateAuthMethodGCP.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAuthMethodGCP.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -UpdateAuthMethodGCP.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -UpdateAuthMethodGCP.prototype['name'] = undefined; -/** - * Auth Method new name - * @member {String} new-name - */ - -UpdateAuthMethodGCP.prototype['new-name'] = undefined; -/** - * ServiceAccount credentials data instead of giving a file path, base64 encoded - * @member {String} service-account-creds-data - */ - -UpdateAuthMethodGCP.prototype['service-account-creds-data'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAuthMethodGCP.prototype['token'] = undefined; -/** - * Type of the GCP Access Rules - * @member {String} type - */ - -UpdateAuthMethodGCP.prototype['type'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateAuthMethodGCP.prototype['uid-token'] = undefined; -var _default = UpdateAuthMethodGCP; -exports["default"] = _default; - -/***/ }), - -/***/ 45908: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAuthMethodK8S model module. - * @module model/UpdateAuthMethodK8S - * @version 3.3.16 - */ -var UpdateAuthMethodK8S = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethodK8S. - * updateAuthMethodK8S is a command that updates a new auth method that will be able to authenticate using K8S. - * @alias module:model/UpdateAuthMethodK8S - * @param name {String} Auth Method name - */ - function UpdateAuthMethodK8S(name) { - _classCallCheck(this, UpdateAuthMethodK8S); - - UpdateAuthMethodK8S.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethodK8S, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateAuthMethodK8S from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodK8S} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodK8S} The populated UpdateAuthMethodK8S instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethodK8S(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('bound-namespaces')) { - obj['bound-namespaces'] = _ApiClient["default"].convertToType(data['bound-namespaces'], ['String']); - } - - if (data.hasOwnProperty('bound-pod-names')) { - obj['bound-pod-names'] = _ApiClient["default"].convertToType(data['bound-pod-names'], ['String']); - } - - if (data.hasOwnProperty('bound-sa-names')) { - obj['bound-sa-names'] = _ApiClient["default"].convertToType(data['bound-sa-names'], ['String']); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gen-key')) { - obj['gen-key'] = _ApiClient["default"].convertToType(data['gen-key'], 'String'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('public-key')) { - obj['public-key'] = _ApiClient["default"].convertToType(data['public-key'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAuthMethodK8S; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethodK8S.prototype['access-expires'] = 0; -/** - * The audience in the Kubernetes JWT that the access is restricted to - * @member {String} audience - */ - -UpdateAuthMethodK8S.prototype['audience'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -UpdateAuthMethodK8S.prototype['bound-ips'] = undefined; -/** - * A list of namespaces that the access is restricted to - * @member {Array.} bound-namespaces - */ - -UpdateAuthMethodK8S.prototype['bound-namespaces'] = undefined; -/** - * A list of pod names that the access is restricted to - * @member {Array.} bound-pod-names - */ - -UpdateAuthMethodK8S.prototype['bound-pod-names'] = undefined; -/** - * A list of service account names that the access is restricted to - * @member {Array.} bound-sa-names - */ - -UpdateAuthMethodK8S.prototype['bound-sa-names'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -UpdateAuthMethodK8S.prototype['force-sub-claims'] = undefined; -/** - * Automatically generate key-pair for K8S configuration. If set to false, a public key needs to be provided [true/false] - * @member {String} gen-key - */ - -UpdateAuthMethodK8S.prototype['gen-key'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -UpdateAuthMethodK8S.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAuthMethodK8S.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -UpdateAuthMethodK8S.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -UpdateAuthMethodK8S.prototype['name'] = undefined; -/** - * Auth Method new name - * @member {String} new-name - */ - -UpdateAuthMethodK8S.prototype['new-name'] = undefined; -/** - * Base64-encoded or PEM formatted public key data for K8S authentication method is required [RSA2048] - * @member {String} public-key - */ - -UpdateAuthMethodK8S.prototype['public-key'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAuthMethodK8S.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateAuthMethodK8S.prototype['uid-token'] = undefined; -var _default = UpdateAuthMethodK8S; -exports["default"] = _default; - -/***/ }), - -/***/ 75557: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAuthMethodK8SOutput model module. - * @module model/UpdateAuthMethodK8SOutput - * @version 3.3.16 - */ -var UpdateAuthMethodK8SOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethodK8SOutput. - * @alias module:model/UpdateAuthMethodK8SOutput - */ - function UpdateAuthMethodK8SOutput() { - _classCallCheck(this, UpdateAuthMethodK8SOutput); - - UpdateAuthMethodK8SOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethodK8SOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateAuthMethodK8SOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodK8SOutput} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodK8SOutput} The populated UpdateAuthMethodK8SOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethodK8SOutput(); - - if (data.hasOwnProperty('prv_key')) { - obj['prv_key'] = _ApiClient["default"].convertToType(data['prv_key'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAuthMethodK8SOutput; -}(); -/** - * @member {String} prv_key - */ - - -UpdateAuthMethodK8SOutput.prototype['prv_key'] = undefined; -var _default = UpdateAuthMethodK8SOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 54035: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAuthMethodLDAP model module. - * @module model/UpdateAuthMethodLDAP - * @version 3.3.16 - */ -var UpdateAuthMethodLDAP = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethodLDAP. - * updateAuthMethodLDAP is a command that updates a new auth method that will be able to authenticate using LDAP. - * @alias module:model/UpdateAuthMethodLDAP - * @param name {String} Auth Method name - */ - function UpdateAuthMethodLDAP(name) { - _classCallCheck(this, UpdateAuthMethodLDAP); - - UpdateAuthMethodLDAP.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethodLDAP, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateAuthMethodLDAP from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodLDAP} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodLDAP} The populated UpdateAuthMethodLDAP instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethodLDAP(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gen-key')) { - obj['gen-key'] = _ApiClient["default"].convertToType(data['gen-key'], 'String'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('public-key-data')) { - obj['public-key-data'] = _ApiClient["default"].convertToType(data['public-key-data'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAuthMethodLDAP; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethodLDAP.prototype['access-expires'] = 0; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -UpdateAuthMethodLDAP.prototype['bound-ips'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -UpdateAuthMethodLDAP.prototype['force-sub-claims'] = undefined; -/** - * Automatically generate key-pair for LDAP configuration. If set to false, a public key needs to be provided [true/false] - * @member {String} gen-key - */ - -UpdateAuthMethodLDAP.prototype['gen-key'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -UpdateAuthMethodLDAP.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAuthMethodLDAP.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -UpdateAuthMethodLDAP.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -UpdateAuthMethodLDAP.prototype['name'] = undefined; -/** - * Auth Method new name - * @member {String} new-name - */ - -UpdateAuthMethodLDAP.prototype['new-name'] = undefined; -/** - * A public key generated for LDAP authentication method on Akeyless in base64 or PEM format [RSA2048] - * @member {String} public-key-data - */ - -UpdateAuthMethodLDAP.prototype['public-key-data'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAuthMethodLDAP.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateAuthMethodLDAP.prototype['uid-token'] = undefined; -/** - * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier - * @default 'users' - */ - -UpdateAuthMethodLDAP.prototype['unique-identifier'] = 'users'; -var _default = UpdateAuthMethodLDAP; -exports["default"] = _default; - -/***/ }), - -/***/ 52290: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAuthMethodLDAPOutput model module. - * @module model/UpdateAuthMethodLDAPOutput - * @version 3.3.16 - */ -var UpdateAuthMethodLDAPOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethodLDAPOutput. - * @alias module:model/UpdateAuthMethodLDAPOutput - */ - function UpdateAuthMethodLDAPOutput() { - _classCallCheck(this, UpdateAuthMethodLDAPOutput); - - UpdateAuthMethodLDAPOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethodLDAPOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateAuthMethodLDAPOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodLDAPOutput} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodLDAPOutput} The populated UpdateAuthMethodLDAPOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethodLDAPOutput(); - - if (data.hasOwnProperty('prv_key')) { - obj['prv_key'] = _ApiClient["default"].convertToType(data['prv_key'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAuthMethodLDAPOutput; -}(); -/** - * @member {String} prv_key - */ - - -UpdateAuthMethodLDAPOutput.prototype['prv_key'] = undefined; -var _default = UpdateAuthMethodLDAPOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 13933: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAuthMethodOAuth2 model module. - * @module model/UpdateAuthMethodOAuth2 - * @version 3.3.16 - */ -var UpdateAuthMethodOAuth2 = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethodOAuth2. - * updateAuthMethodOAuth2 is a command that updates a new auth method that will be able to authenticate using Oauth2. - * @alias module:model/UpdateAuthMethodOAuth2 - * @param jwksUri {String} The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. - * @param name {String} Auth Method name - * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - */ - function UpdateAuthMethodOAuth2(jwksUri, name, uniqueIdentifier) { - _classCallCheck(this, UpdateAuthMethodOAuth2); - - UpdateAuthMethodOAuth2.initialize(this, jwksUri, name, uniqueIdentifier); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethodOAuth2, null, [{ - key: "initialize", - value: function initialize(obj, jwksUri, name, uniqueIdentifier) { - obj['jwks-uri'] = jwksUri; - obj['name'] = name; - obj['unique-identifier'] = uniqueIdentifier; - } - /** - * Constructs a UpdateAuthMethodOAuth2 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodOAuth2} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodOAuth2} The populated UpdateAuthMethodOAuth2 instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethodOAuth2(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); - } - - if (data.hasOwnProperty('bound-client-ids')) { - obj['bound-client-ids'] = _ApiClient["default"].convertToType(data['bound-client-ids'], ['String']); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwks-json-data')) { - obj['jwks-json-data'] = _ApiClient["default"].convertToType(data['jwks-json-data'], 'String'); - } - - if (data.hasOwnProperty('jwks-uri')) { - obj['jwks-uri'] = _ApiClient["default"].convertToType(data['jwks-uri'], 'String'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAuthMethodOAuth2; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethodOAuth2.prototype['access-expires'] = 0; -/** - * The audience in the JWT - * @member {String} audience - */ - -UpdateAuthMethodOAuth2.prototype['audience'] = undefined; -/** - * The clients ids that the access is restricted to - * @member {Array.} bound-client-ids - */ - -UpdateAuthMethodOAuth2.prototype['bound-client-ids'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -UpdateAuthMethodOAuth2.prototype['bound-ips'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -UpdateAuthMethodOAuth2.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -UpdateAuthMethodOAuth2.prototype['gw-bound-ips'] = undefined; -/** - * Issuer URL - * @member {String} issuer - */ - -UpdateAuthMethodOAuth2.prototype['issuer'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAuthMethodOAuth2.prototype['json'] = false; -/** - * The JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. base64 encoded string - * @member {String} jwks-json-data - */ - -UpdateAuthMethodOAuth2.prototype['jwks-json-data'] = undefined; -/** - * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. - * @member {String} jwks-uri - * @default 'default_jwks_url' - */ - -UpdateAuthMethodOAuth2.prototype['jwks-uri'] = 'default_jwks_url'; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -UpdateAuthMethodOAuth2.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -UpdateAuthMethodOAuth2.prototype['name'] = undefined; -/** - * Auth Method new name - * @member {String} new-name - */ - -UpdateAuthMethodOAuth2.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAuthMethodOAuth2.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateAuthMethodOAuth2.prototype['uid-token'] = undefined; -/** - * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier - */ - -UpdateAuthMethodOAuth2.prototype['unique-identifier'] = undefined; -var _default = UpdateAuthMethodOAuth2; -exports["default"] = _default; - -/***/ }), - -/***/ 85407: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAuthMethodOIDC model module. - * @module model/UpdateAuthMethodOIDC - * @version 3.3.16 - */ -var UpdateAuthMethodOIDC = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethodOIDC. - * updateAuthMethodOIDC is a command that updates a new auth method that will be available to authenticate using OIDC. - * @alias module:model/UpdateAuthMethodOIDC - * @param name {String} Auth Method name - * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OIDC, OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - */ - function UpdateAuthMethodOIDC(name, uniqueIdentifier) { - _classCallCheck(this, UpdateAuthMethodOIDC); - - UpdateAuthMethodOIDC.initialize(this, name, uniqueIdentifier); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethodOIDC, null, [{ - key: "initialize", - value: function initialize(obj, name, uniqueIdentifier) { - obj['name'] = name; - obj['unique-identifier'] = uniqueIdentifier; - } - /** - * Constructs a UpdateAuthMethodOIDC from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodOIDC} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodOIDC} The populated UpdateAuthMethodOIDC instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethodOIDC(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('allowed-redirect-uri')) { - obj['allowed-redirect-uri'] = _ApiClient["default"].convertToType(data['allowed-redirect-uri'], ['String']); - } - - if (data.hasOwnProperty('audience')) { - obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); - } - - if (data.hasOwnProperty('client-secret')) { - obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('issuer')) { - obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('required-scopes')) { - obj['required-scopes'] = _ApiClient["default"].convertToType(data['required-scopes'], ['String']); - } - - if (data.hasOwnProperty('required-scopes-prefix')) { - obj['required-scopes-prefix'] = _ApiClient["default"].convertToType(data['required-scopes-prefix'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAuthMethodOIDC; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethodOIDC.prototype['access-expires'] = 0; -/** - * Allowed redirect URIs after the authentication - * @member {Array.} allowed-redirect-uri - */ - -UpdateAuthMethodOIDC.prototype['allowed-redirect-uri'] = undefined; -/** - * Audience claim to be used as part of the authentication flow. In case set, it must match the one configured on the Identity Provider's Application - * @member {String} audience - */ - -UpdateAuthMethodOIDC.prototype['audience'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -UpdateAuthMethodOIDC.prototype['bound-ips'] = undefined; -/** - * Client ID - * @member {String} client-id - */ - -UpdateAuthMethodOIDC.prototype['client-id'] = undefined; -/** - * Client Secret - * @member {String} client-secret - */ - -UpdateAuthMethodOIDC.prototype['client-secret'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -UpdateAuthMethodOIDC.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -UpdateAuthMethodOIDC.prototype['gw-bound-ips'] = undefined; -/** - * Issuer URL - * @member {String} issuer - */ - -UpdateAuthMethodOIDC.prototype['issuer'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAuthMethodOIDC.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -UpdateAuthMethodOIDC.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -UpdateAuthMethodOIDC.prototype['name'] = undefined; -/** - * Auth Method new name - * @member {String} new-name - */ - -UpdateAuthMethodOIDC.prototype['new-name'] = undefined; -/** - * RequiredScopes is a list of required scopes that the oidc method will request from the oidc provider and the user must approve - * @member {Array.} required-scopes - */ - -UpdateAuthMethodOIDC.prototype['required-scopes'] = undefined; -/** - * RequiredScopesPrefix is a a prefix to add to all required-scopes when requesting them from the oidc server (for example, azures' Application ID URI) - * @member {String} required-scopes-prefix - */ - -UpdateAuthMethodOIDC.prototype['required-scopes-prefix'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAuthMethodOIDC.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateAuthMethodOIDC.prototype['uid-token'] = undefined; -/** - * A unique identifier (ID) value should be configured for OIDC, OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier - */ - -UpdateAuthMethodOIDC.prototype['unique-identifier'] = undefined; -var _default = UpdateAuthMethodOIDC; -exports["default"] = _default; - -/***/ }), - -/***/ 49923: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAuthMethodOutput model module. - * @module model/UpdateAuthMethodOutput - * @version 3.3.16 - */ -var UpdateAuthMethodOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethodOutput. - * @alias module:model/UpdateAuthMethodOutput - */ - function UpdateAuthMethodOutput() { - _classCallCheck(this, UpdateAuthMethodOutput); - - UpdateAuthMethodOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethodOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateAuthMethodOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodOutput} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodOutput} The populated UpdateAuthMethodOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethodOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAuthMethodOutput; -}(); -/** - * @member {String} name - */ - - -UpdateAuthMethodOutput.prototype['name'] = undefined; -var _default = UpdateAuthMethodOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 41983: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAuthMethodSAML model module. - * @module model/UpdateAuthMethodSAML - * @version 3.3.16 - */ -var UpdateAuthMethodSAML = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethodSAML. - * updateAuthMethodSAML is a command that updates a new auth method that will be available to authenticate using SAML. - * @alias module:model/UpdateAuthMethodSAML - * @param name {String} Auth Method name - * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - */ - function UpdateAuthMethodSAML(name, uniqueIdentifier) { - _classCallCheck(this, UpdateAuthMethodSAML); - - UpdateAuthMethodSAML.initialize(this, name, uniqueIdentifier); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethodSAML, null, [{ - key: "initialize", - value: function initialize(obj, name, uniqueIdentifier) { - obj['name'] = name; - obj['unique-identifier'] = uniqueIdentifier; - } - /** - * Constructs a UpdateAuthMethodSAML from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodSAML} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodSAML} The populated UpdateAuthMethodSAML instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethodSAML(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('allowed-redirect-uri')) { - obj['allowed-redirect-uri'] = _ApiClient["default"].convertToType(data['allowed-redirect-uri'], ['String']); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('idp-metadata-url')) { - obj['idp-metadata-url'] = _ApiClient["default"].convertToType(data['idp-metadata-url'], 'String'); - } - - if (data.hasOwnProperty('idp-metadata-xml-data')) { - obj['idp-metadata-xml-data'] = _ApiClient["default"].convertToType(data['idp-metadata-xml-data'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('unique-identifier')) { - obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAuthMethodSAML; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethodSAML.prototype['access-expires'] = 0; -/** - * Allowed redirect URIs after the authentication - * @member {Array.} allowed-redirect-uri - */ - -UpdateAuthMethodSAML.prototype['allowed-redirect-uri'] = undefined; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -UpdateAuthMethodSAML.prototype['bound-ips'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -UpdateAuthMethodSAML.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -UpdateAuthMethodSAML.prototype['gw-bound-ips'] = undefined; -/** - * IDP metadata url - * @member {String} idp-metadata-url - */ - -UpdateAuthMethodSAML.prototype['idp-metadata-url'] = undefined; -/** - * IDP metadata xml data - * @member {String} idp-metadata-xml-data - */ - -UpdateAuthMethodSAML.prototype['idp-metadata-xml-data'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAuthMethodSAML.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -UpdateAuthMethodSAML.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -UpdateAuthMethodSAML.prototype['name'] = undefined; -/** - * Auth Method new name - * @member {String} new-name - */ - -UpdateAuthMethodSAML.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAuthMethodSAML.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateAuthMethodSAML.prototype['uid-token'] = undefined; -/** - * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. - * @member {String} unique-identifier - */ - -UpdateAuthMethodSAML.prototype['unique-identifier'] = undefined; -var _default = UpdateAuthMethodSAML; -exports["default"] = _default; - -/***/ }), - -/***/ 4775: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAuthMethodUniversalIdentity model module. - * @module model/UpdateAuthMethodUniversalIdentity - * @version 3.3.16 - */ -var UpdateAuthMethodUniversalIdentity = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAuthMethodUniversalIdentity. - * updateAuthMethodUniversalIdentity is a command that updates a new auth method that will be able to authenticate using Akeyless Universal Identity. - * @alias module:model/UpdateAuthMethodUniversalIdentity - * @param name {String} Auth Method name - */ - function UpdateAuthMethodUniversalIdentity(name) { - _classCallCheck(this, UpdateAuthMethodUniversalIdentity); - - UpdateAuthMethodUniversalIdentity.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAuthMethodUniversalIdentity, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateAuthMethodUniversalIdentity from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAuthMethodUniversalIdentity} obj Optional instance to populate. - * @return {module:model/UpdateAuthMethodUniversalIdentity} The populated UpdateAuthMethodUniversalIdentity instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAuthMethodUniversalIdentity(); - - if (data.hasOwnProperty('access-expires')) { - obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); - } - - if (data.hasOwnProperty('bound-ips')) { - obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); - } - - if (data.hasOwnProperty('deny-inheritance')) { - obj['deny-inheritance'] = _ApiClient["default"].convertToType(data['deny-inheritance'], 'Boolean'); - } - - if (data.hasOwnProperty('deny-rotate')) { - obj['deny-rotate'] = _ApiClient["default"].convertToType(data['deny-rotate'], 'Boolean'); - } - - if (data.hasOwnProperty('force-sub-claims')) { - obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); - } - - if (data.hasOwnProperty('gw-bound-ips')) { - obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt-ttl')) { - obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateAuthMethodUniversalIdentity; -}(); -/** - * Access expiration date in Unix timestamp (select 0 for access without expiry date) - * @member {Number} access-expires - * @default 0 - */ - - -UpdateAuthMethodUniversalIdentity.prototype['access-expires'] = 0; -/** - * A CIDR whitelist with the IPs that the access is restricted to - * @member {Array.} bound-ips - */ - -UpdateAuthMethodUniversalIdentity.prototype['bound-ips'] = undefined; -/** - * Deny from root to create children - * @member {Boolean} deny-inheritance - */ - -UpdateAuthMethodUniversalIdentity.prototype['deny-inheritance'] = undefined; -/** - * Deny from the token to rotate - * @member {Boolean} deny-rotate - */ - -UpdateAuthMethodUniversalIdentity.prototype['deny-rotate'] = undefined; -/** - * if true: enforce role-association must include sub claims - * @member {Boolean} force-sub-claims - */ - -UpdateAuthMethodUniversalIdentity.prototype['force-sub-claims'] = undefined; -/** - * A CIDR whitelist with the GW IPs that the access is restricted to - * @member {Array.} gw-bound-ips - */ - -UpdateAuthMethodUniversalIdentity.prototype['gw-bound-ips'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAuthMethodUniversalIdentity.prototype['json'] = false; -/** - * Jwt TTL - * @member {Number} jwt-ttl - * @default 0 - */ - -UpdateAuthMethodUniversalIdentity.prototype['jwt-ttl'] = 0; -/** - * Auth Method name - * @member {String} name - */ - -UpdateAuthMethodUniversalIdentity.prototype['name'] = undefined; -/** - * Auth Method new name - * @member {String} new-name - */ - -UpdateAuthMethodUniversalIdentity.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAuthMethodUniversalIdentity.prototype['token'] = undefined; -/** - * Token ttl - * @member {Number} ttl - * @default 60 - */ - -UpdateAuthMethodUniversalIdentity.prototype['ttl'] = 60; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateAuthMethodUniversalIdentity.prototype['uid-token'] = undefined; -var _default = UpdateAuthMethodUniversalIdentity; -exports["default"] = _default; - -/***/ }), - -/***/ 10443: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAzureTarget model module. - * @module model/UpdateAzureTarget - * @version 3.3.16 - */ -var UpdateAzureTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAzureTarget. - * @alias module:model/UpdateAzureTarget - * @param name {String} Target name - */ - function UpdateAzureTarget(name) { - _classCallCheck(this, UpdateAzureTarget); - - UpdateAzureTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAzureTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateAzureTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAzureTarget} obj Optional instance to populate. - * @return {module:model/UpdateAzureTarget} The populated UpdateAzureTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAzureTarget(); - - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); - } - - if (data.hasOwnProperty('client-secret')) { - obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('resource-group-name')) { - obj['resource-group-name'] = _ApiClient["default"].convertToType(data['resource-group-name'], 'String'); - } - - if (data.hasOwnProperty('resource-name')) { - obj['resource-name'] = _ApiClient["default"].convertToType(data['resource-name'], 'String'); - } - - if (data.hasOwnProperty('subscription-id')) { - obj['subscription-id'] = _ApiClient["default"].convertToType(data['subscription-id'], 'String'); - } - - if (data.hasOwnProperty('tenant-id')) { - obj['tenant-id'] = _ApiClient["default"].convertToType(data['tenant-id'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateAzureTarget; -}(); -/** - * @member {String} client-id - */ - - -UpdateAzureTarget.prototype['client-id'] = undefined; -/** - * @member {String} client-secret - */ - -UpdateAzureTarget.prototype['client-secret'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -UpdateAzureTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateAzureTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateAzureTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateAzureTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateAzureTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateAzureTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateAzureTarget.prototype['new-name'] = undefined; -/** - * The Resource Group name in your Azure subscription - * @member {String} resource-group-name - */ - -UpdateAzureTarget.prototype['resource-group-name'] = undefined; -/** - * The name of the relevant Resource - * @member {String} resource-name - */ - -UpdateAzureTarget.prototype['resource-name'] = undefined; -/** - * Azure Subscription Id - * @member {String} subscription-id - */ - -UpdateAzureTarget.prototype['subscription-id'] = undefined; -/** - * @member {String} tenant-id - */ - -UpdateAzureTarget.prototype['tenant-id'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateAzureTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateAzureTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateAzureTarget.prototype['update-version'] = undefined; -/** - * @member {Boolean} use-gw-cloud-identity - */ - -UpdateAzureTarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = UpdateAzureTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 16042: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateAzureTargetOutput model module. - * @module model/UpdateAzureTargetOutput - * @version 3.3.16 - */ -var UpdateAzureTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAzureTargetOutput. - * @alias module:model/UpdateAzureTargetOutput - */ - function UpdateAzureTargetOutput() { - _classCallCheck(this, UpdateAzureTargetOutput); - - UpdateAzureTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateAzureTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateAzureTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAzureTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateAzureTargetOutput} The populated UpdateAzureTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAzureTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateAzureTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateAzureTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateAzureTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 12471: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateCertificateOutput model module. - * @module model/UpdateCertificateOutput - * @version 3.3.16 - */ -var UpdateCertificateOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateCertificateOutput. - * @alias module:model/UpdateCertificateOutput - */ - function UpdateCertificateOutput() { - _classCallCheck(this, UpdateCertificateOutput); - - UpdateCertificateOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateCertificateOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateCertificateOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateCertificateOutput} obj Optional instance to populate. - * @return {module:model/UpdateCertificateOutput} The populated UpdateCertificateOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateCertificateOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateCertificateOutput; -}(); -/** - * @member {String} name - */ - - -UpdateCertificateOutput.prototype['name'] = undefined; -var _default = UpdateCertificateOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 19705: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateCertificateValue model module. - * @module model/UpdateCertificateValue - * @version 3.3.16 - */ -var UpdateCertificateValue = /*#__PURE__*/function () { - /** - * Constructs a new UpdateCertificateValue. - * @alias module:model/UpdateCertificateValue - * @param name {String} Certificate name - */ - function UpdateCertificateValue(name) { - _classCallCheck(this, UpdateCertificateValue); - - UpdateCertificateValue.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateCertificateValue, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateCertificateValue from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateCertificateValue} obj Optional instance to populate. - * @return {module:model/UpdateCertificateValue} The populated UpdateCertificateValue instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateCertificateValue(); - - if (data.hasOwnProperty('add-tag')) { - obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); - } - - if (data.hasOwnProperty('certificate-data')) { - obj['certificate-data'] = _ApiClient["default"].convertToType(data['certificate-data'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('expiration-event-in')) { - obj['expiration-event-in'] = _ApiClient["default"].convertToType(data['expiration-event-in'], ['String']); - } - - if (data.hasOwnProperty('format')) { - obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('key-data')) { - obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('rm-tag')) { - obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateCertificateValue; -}(); -/** - * List of the new tags that will be attached to this item - * @member {Array.} add-tag - */ - - -UpdateCertificateValue.prototype['add-tag'] = undefined; -/** - * Content of the certificate in a Base64 format. - * @member {String} certificate-data - */ - -UpdateCertificateValue.prototype['certificate-data'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -UpdateCertificateValue.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateCertificateValue.prototype['description'] = undefined; -/** - * How many days before the expiration of the certificate would you like to be notified. - * @member {Array.} expiration-event-in - */ - -UpdateCertificateValue.prototype['expiration-event-in'] = undefined; -/** - * CertificateFormat of the certificate and private key, possible values: cer,crt,pem,pfx,p12. Required when passing inline certificate content with --certificate-data or --key-data, otherwise format is derived from the file extension. - * @member {String} format - */ - -UpdateCertificateValue.prototype['format'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateCertificateValue.prototype['json'] = false; -/** - * The name of a key to use to encrypt the certificate's key (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateCertificateValue.prototype['key'] = undefined; -/** - * Content of the certificate's private key in a Base64 format. - * @member {String} key-data - */ - -UpdateCertificateValue.prototype['key-data'] = undefined; -/** - * Deprecated - use description - * @member {String} metadata - */ - -UpdateCertificateValue.prototype['metadata'] = undefined; -/** - * Certificate name - * @member {String} name - */ - -UpdateCertificateValue.prototype['name'] = undefined; -/** - * List of the existent tags that will be removed from this item - * @member {Array.} rm-tag - */ - -UpdateCertificateValue.prototype['rm-tag'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateCertificateValue.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateCertificateValue.prototype['uid-token'] = undefined; -var _default = UpdateCertificateValue; -exports["default"] = _default; - -/***/ }), - -/***/ 33529: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateDBTarget model module. - * @module model/UpdateDBTarget - * @version 3.3.16 - */ -var UpdateDBTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateDBTarget. - * @alias module:model/UpdateDBTarget - * @param dbType {String} - * @param name {String} Target name - */ - function UpdateDBTarget(dbType, name) { - _classCallCheck(this, UpdateDBTarget); - - UpdateDBTarget.initialize(this, dbType, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateDBTarget, null, [{ - key: "initialize", - value: function initialize(obj, dbType, name) { - obj['db-type'] = dbType; - obj['name'] = name; - } - /** - * Constructs a UpdateDBTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDBTarget} obj Optional instance to populate. - * @return {module:model/UpdateDBTarget} The populated UpdateDBTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateDBTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('db-name')) { - obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); - } - - if (data.hasOwnProperty('db-server-certificates')) { - obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); - } - - if (data.hasOwnProperty('db-server-name')) { - obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); - } - - if (data.hasOwnProperty('db-type')) { - obj['db-type'] = _ApiClient["default"].convertToType(data['db-type'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas')) { - obj['mongodb-atlas'] = _ApiClient["default"].convertToType(data['mongodb-atlas'], 'Boolean'); - } - - if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { - obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { - obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); - } - - if (data.hasOwnProperty('mongodb-atlas-project-id')) { - obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); - } - - if (data.hasOwnProperty('mongodb-default-auth-db')) { - obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); - } - - if (data.hasOwnProperty('mongodb-uri-options')) { - obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('oracle-service-name')) { - obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('pwd')) { - obj['pwd'] = _ApiClient["default"].convertToType(data['pwd'], 'String'); - } - - if (data.hasOwnProperty('snowflake-account')) { - obj['snowflake-account'] = _ApiClient["default"].convertToType(data['snowflake-account'], 'String'); - } - - if (data.hasOwnProperty('snowflake-api-private-key')) { - obj['snowflake-api-private-key'] = _ApiClient["default"].convertToType(data['snowflake-api-private-key'], 'String'); - } - - if (data.hasOwnProperty('snowflake-api-private-key-password')) { - obj['snowflake-api-private-key-password'] = _ApiClient["default"].convertToType(data['snowflake-api-private-key-password'], 'String'); - } - - if (data.hasOwnProperty('ssl')) { - obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); - } - - if (data.hasOwnProperty('ssl-certificate')) { - obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - - if (data.hasOwnProperty('user-name')) { - obj['user-name'] = _ApiClient["default"].convertToType(data['user-name'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateDBTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -UpdateDBTarget.prototype['comment'] = undefined; -/** - * @member {String} db-name - */ - -UpdateDBTarget.prototype['db-name'] = undefined; -/** - * (Optional) DB server certificates - * @member {String} db-server-certificates - */ - -UpdateDBTarget.prototype['db-server-certificates'] = undefined; -/** - * (Optional) Server name for certificate verification - * @member {String} db-server-name - */ - -UpdateDBTarget.prototype['db-server-name'] = undefined; -/** - * @member {String} db-type - */ - -UpdateDBTarget.prototype['db-type'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateDBTarget.prototype['description'] = undefined; -/** - * @member {String} host - */ - -UpdateDBTarget.prototype['host'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateDBTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateDBTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateDBTarget.prototype['key'] = undefined; -/** - * @member {Boolean} mongodb-atlas - */ - -UpdateDBTarget.prototype['mongodb-atlas'] = undefined; -/** - * MongoDB Atlas private key - * @member {String} mongodb-atlas-api-private-key - */ - -UpdateDBTarget.prototype['mongodb-atlas-api-private-key'] = undefined; -/** - * MongoDB Atlas public key - * @member {String} mongodb-atlas-api-public-key - */ - -UpdateDBTarget.prototype['mongodb-atlas-api-public-key'] = undefined; -/** - * MongoDB Atlas project ID - * @member {String} mongodb-atlas-project-id - */ - -UpdateDBTarget.prototype['mongodb-atlas-project-id'] = undefined; -/** - * MongoDB server default authentication database - * @member {String} mongodb-default-auth-db - */ - -UpdateDBTarget.prototype['mongodb-default-auth-db'] = undefined; -/** - * MongoDB server URI options - * @member {String} mongodb-uri-options - */ - -UpdateDBTarget.prototype['mongodb-uri-options'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateDBTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateDBTarget.prototype['new-name'] = undefined; -/** - * @member {String} oracle-service-name - */ - -UpdateDBTarget.prototype['oracle-service-name'] = undefined; -/** - * @member {String} port - */ - -UpdateDBTarget.prototype['port'] = undefined; -/** - * @member {String} pwd - */ - -UpdateDBTarget.prototype['pwd'] = undefined; -/** - * @member {String} snowflake-account - */ - -UpdateDBTarget.prototype['snowflake-account'] = undefined; -/** - * RSA Private key (base64 encoded) - * @member {String} snowflake-api-private-key - */ - -UpdateDBTarget.prototype['snowflake-api-private-key'] = undefined; -/** - * The Private key passphrase - * @member {String} snowflake-api-private-key-password - */ - -UpdateDBTarget.prototype['snowflake-api-private-key-password'] = undefined; -/** - * Enable/Disable SSL [true/false] - * @member {Boolean} ssl - * @default false - */ - -UpdateDBTarget.prototype['ssl'] = false; -/** - * SSL connection certificate - * @member {String} ssl-certificate - */ - -UpdateDBTarget.prototype['ssl-certificate'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateDBTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateDBTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateDBTarget.prototype['update-version'] = undefined; -/** - * @member {String} user-name - */ - -UpdateDBTarget.prototype['user-name'] = undefined; -var _default = UpdateDBTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 80190: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateDBTargetDetails model module. - * @module model/UpdateDBTargetDetails - * @version 3.3.16 - */ -var UpdateDBTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new UpdateDBTargetDetails. - * @alias module:model/UpdateDBTargetDetails - * @param name {String} Target name - */ - function UpdateDBTargetDetails(name) { - _classCallCheck(this, UpdateDBTargetDetails); - - UpdateDBTargetDetails.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateDBTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateDBTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDBTargetDetails} obj Optional instance to populate. - * @return {module:model/UpdateDBTargetDetails} The populated UpdateDBTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateDBTargetDetails(); - - if (data.hasOwnProperty('db_type')) { - obj['db_type'] = _ApiClient["default"].convertToType(data['db_type'], 'String'); - } - - if (data.hasOwnProperty('host_name')) { - obj['host_name'] = _ApiClient["default"].convertToType(data['host_name'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('mongo_db_name')) { - obj['mongo_db_name'] = _ApiClient["default"].convertToType(data['mongo_db_name'], 'String'); - } - - if (data.hasOwnProperty('mongo_uri')) { - obj['mongo_uri'] = _ApiClient["default"].convertToType(data['mongo_uri'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-version')) { - obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); - } - - if (data.hasOwnProperty('pwd')) { - obj['pwd'] = _ApiClient["default"].convertToType(data['pwd'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('user_name')) { - obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateDBTargetDetails; -}(); -/** - * @member {String} db_type - */ - - -UpdateDBTargetDetails.prototype['db_type'] = undefined; -/** - * @member {String} host_name - */ - -UpdateDBTargetDetails.prototype['host_name'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateDBTargetDetails.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateDBTargetDetails.prototype['keep-prev-version'] = undefined; -/** - * @member {String} mongo_db_name - */ - -UpdateDBTargetDetails.prototype['mongo_db_name'] = undefined; -/** - * @member {String} mongo_uri - */ - -UpdateDBTargetDetails.prototype['mongo_uri'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateDBTargetDetails.prototype['name'] = undefined; -/** - * Deprecated - * @member {Boolean} new-version - */ - -UpdateDBTargetDetails.prototype['new-version'] = undefined; -/** - * @member {String} port - */ - -UpdateDBTargetDetails.prototype['port'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key - */ - -UpdateDBTargetDetails.prototype['protection_key'] = undefined; -/** - * @member {String} pwd - */ - -UpdateDBTargetDetails.prototype['pwd'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateDBTargetDetails.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateDBTargetDetails.prototype['uid-token'] = undefined; -/** - * @member {String} user_name - */ - -UpdateDBTargetDetails.prototype['user_name'] = undefined; -var _default = UpdateDBTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 72131: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateDBTargetOutput model module. - * @module model/UpdateDBTargetOutput - * @version 3.3.16 - */ -var UpdateDBTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateDBTargetOutput. - * @alias module:model/UpdateDBTargetOutput - */ - function UpdateDBTargetOutput() { - _classCallCheck(this, UpdateDBTargetOutput); - - UpdateDBTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateDBTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateDBTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDBTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateDBTargetOutput} The populated UpdateDBTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateDBTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateDBTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateDBTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateDBTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 8307: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateDockerhubTarget model module. - * @module model/UpdateDockerhubTarget - * @version 3.3.16 - */ -var UpdateDockerhubTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateDockerhubTarget. - * @alias module:model/UpdateDockerhubTarget - * @param name {String} Target name - */ - function UpdateDockerhubTarget(name) { - _classCallCheck(this, UpdateDockerhubTarget); - - UpdateDockerhubTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateDockerhubTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateDockerhubTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDockerhubTarget} obj Optional instance to populate. - * @return {module:model/UpdateDockerhubTarget} The populated UpdateDockerhubTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateDockerhubTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('dockerhub-password')) { - obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); - } - - if (data.hasOwnProperty('dockerhub-username')) { - obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateDockerhubTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -UpdateDockerhubTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateDockerhubTarget.prototype['description'] = undefined; -/** - * @member {String} dockerhub-password - */ - -UpdateDockerhubTarget.prototype['dockerhub-password'] = undefined; -/** - * @member {String} dockerhub-username - */ - -UpdateDockerhubTarget.prototype['dockerhub-username'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateDockerhubTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateDockerhubTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateDockerhubTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateDockerhubTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateDockerhubTarget.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateDockerhubTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateDockerhubTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateDockerhubTarget.prototype['update-version'] = undefined; -var _default = UpdateDockerhubTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 56962: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateDockerhubTargetOutput model module. - * @module model/UpdateDockerhubTargetOutput - * @version 3.3.16 - */ -var UpdateDockerhubTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateDockerhubTargetOutput. - * @alias module:model/UpdateDockerhubTargetOutput - */ - function UpdateDockerhubTargetOutput() { - _classCallCheck(this, UpdateDockerhubTargetOutput); - - UpdateDockerhubTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateDockerhubTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateDockerhubTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDockerhubTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateDockerhubTargetOutput} The populated UpdateDockerhubTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateDockerhubTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateDockerhubTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateDockerhubTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateDockerhubTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 54749: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateEKSTarget model module. - * @module model/UpdateEKSTarget - * @version 3.3.16 - */ -var UpdateEKSTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateEKSTarget. - * @alias module:model/UpdateEKSTarget - * @param eksAccessKeyId {String} Access Key ID - * @param eksClusterCaCert {String} EKS cluster CA certificate - * @param eksClusterEndpoint {String} EKS cluster URL endpoint - * @param eksClusterName {String} EKS cluster name - * @param eksSecretAccessKey {String} Secret Access Key - * @param name {String} Target name - */ - function UpdateEKSTarget(eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name) { - _classCallCheck(this, UpdateEKSTarget); - - UpdateEKSTarget.initialize(this, eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateEKSTarget, null, [{ - key: "initialize", - value: function initialize(obj, eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name) { - obj['eks-access-key-id'] = eksAccessKeyId; - obj['eks-cluster-ca-cert'] = eksClusterCaCert; - obj['eks-cluster-endpoint'] = eksClusterEndpoint; - obj['eks-cluster-name'] = eksClusterName; - obj['eks-secret-access-key'] = eksSecretAccessKey; - obj['name'] = name; - } - /** - * Constructs a UpdateEKSTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateEKSTarget} obj Optional instance to populate. - * @return {module:model/UpdateEKSTarget} The populated UpdateEKSTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateEKSTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('eks-access-key-id')) { - obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-ca-cert')) { - obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-endpoint')) { - obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('eks-cluster-name')) { - obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); - } - - if (data.hasOwnProperty('eks-region')) { - obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); - } - - if (data.hasOwnProperty('eks-secret-access-key')) { - obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateEKSTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -UpdateEKSTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateEKSTarget.prototype['description'] = undefined; -/** - * Access Key ID - * @member {String} eks-access-key-id - */ - -UpdateEKSTarget.prototype['eks-access-key-id'] = undefined; -/** - * EKS cluster CA certificate - * @member {String} eks-cluster-ca-cert - */ - -UpdateEKSTarget.prototype['eks-cluster-ca-cert'] = undefined; -/** - * EKS cluster URL endpoint - * @member {String} eks-cluster-endpoint - */ - -UpdateEKSTarget.prototype['eks-cluster-endpoint'] = undefined; -/** - * EKS cluster name - * @member {String} eks-cluster-name - */ - -UpdateEKSTarget.prototype['eks-cluster-name'] = undefined; -/** - * Region - * @member {String} eks-region - * @default 'us-east-2' - */ - -UpdateEKSTarget.prototype['eks-region'] = 'us-east-2'; -/** - * Secret Access Key - * @member {String} eks-secret-access-key - */ - -UpdateEKSTarget.prototype['eks-secret-access-key'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateEKSTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateEKSTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateEKSTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateEKSTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateEKSTarget.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateEKSTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateEKSTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateEKSTarget.prototype['update-version'] = undefined; -/** - * @member {Boolean} use-gw-cloud-identity - */ - -UpdateEKSTarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = UpdateEKSTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 69048: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateEKSTargetOutput model module. - * @module model/UpdateEKSTargetOutput - * @version 3.3.16 - */ -var UpdateEKSTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateEKSTargetOutput. - * @alias module:model/UpdateEKSTargetOutput - */ - function UpdateEKSTargetOutput() { - _classCallCheck(this, UpdateEKSTargetOutput); - - UpdateEKSTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateEKSTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateEKSTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateEKSTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateEKSTargetOutput} The populated UpdateEKSTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateEKSTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateEKSTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateEKSTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateEKSTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 69923: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateEventForwarder model module. - * @module model/UpdateEventForwarder - * @version 3.3.16 - */ -var UpdateEventForwarder = /*#__PURE__*/function () { - /** - * Constructs a new UpdateEventForwarder. - * @alias module:model/UpdateEventForwarder - * @param name {String} EventForwarder name - */ - function UpdateEventForwarder(name) { - _classCallCheck(this, UpdateEventForwarder); - - UpdateEventForwarder.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateEventForwarder, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateEventForwarder from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateEventForwarder} obj Optional instance to populate. - * @return {module:model/UpdateEventForwarder} The populated UpdateEventForwarder instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateEventForwarder(); - - if (data.hasOwnProperty('admin-name')) { - obj['admin-name'] = _ApiClient["default"].convertToType(data['admin-name'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('email-to')) { - obj['email-to'] = _ApiClient["default"].convertToType(data['email-to'], 'String'); - } - - if (data.hasOwnProperty('enable')) { - obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'String'); - } - - if (data.hasOwnProperty('event-source-locations')) { - obj['event-source-locations'] = _ApiClient["default"].convertToType(data['event-source-locations'], ['String']); - } - - if (data.hasOwnProperty('event-types')) { - obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); - } - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-comment')) { - obj['new-comment'] = _ApiClient["default"].convertToType(data['new-comment'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateEventForwarder; -}(); -/** - * Workstation Admin Name - * @member {String} admin-name - */ - - -UpdateEventForwarder.prototype['admin-name'] = undefined; -/** - * Description of the object - * @member {String} description - * @default 'default_comment' - */ - -UpdateEventForwarder.prototype['description'] = 'default_comment'; -/** - * A comma seperated list of email addresses to send event to (relevant only for \"email\" Event Forwarder) - * @member {String} email-to - */ - -UpdateEventForwarder.prototype['email-to'] = undefined; -/** - * Enable/Disable Event Forwarder [true/false] - * @member {String} enable - * @default 'true' - */ - -UpdateEventForwarder.prototype['enable'] = 'true'; -/** - * Event sources - * @member {Array.} event-source-locations - */ - -UpdateEventForwarder.prototype['event-source-locations'] = undefined; -/** - * Event types - * @member {Array.} event-types - */ - -UpdateEventForwarder.prototype['event-types'] = undefined; -/** - * Workstation Host - * @member {String} host - */ - -UpdateEventForwarder.prototype['host'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateEventForwarder.prototype['json'] = false; -/** - * EventForwarder name - * @member {String} name - */ - -UpdateEventForwarder.prototype['name'] = undefined; -/** - * Deprecated - use description - * @member {String} new-comment - * @default 'default_comment' - */ - -UpdateEventForwarder.prototype['new-comment'] = 'default_comment'; -/** - * New EventForwarder name - * @member {String} new-name - */ - -UpdateEventForwarder.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateEventForwarder.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateEventForwarder.prototype['uid-token'] = undefined; -var _default = UpdateEventForwarder; -exports["default"] = _default; - -/***/ }), - -/***/ 98909: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateGKETarget model module. - * @module model/UpdateGKETarget - * @version 3.3.16 - */ -var UpdateGKETarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateGKETarget. - * @alias module:model/UpdateGKETarget - * @param name {String} Target name - */ - function UpdateGKETarget(name) { - _classCallCheck(this, UpdateGKETarget); - - UpdateGKETarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateGKETarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateGKETarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGKETarget} obj Optional instance to populate. - * @return {module:model/UpdateGKETarget} The populated UpdateGKETarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateGKETarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('gke-account-key')) { - obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-cert')) { - obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-endpoint')) { - obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('gke-cluster-name')) { - obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); - } - - if (data.hasOwnProperty('gke-service-account-email')) { - obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateGKETarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -UpdateGKETarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateGKETarget.prototype['description'] = undefined; -/** - * GKE Service Account key file path - * @member {String} gke-account-key - */ - -UpdateGKETarget.prototype['gke-account-key'] = undefined; -/** - * GKE cluster CA certificate - * @member {String} gke-cluster-cert - */ - -UpdateGKETarget.prototype['gke-cluster-cert'] = undefined; -/** - * GKE cluster URL endpoint - * @member {String} gke-cluster-endpoint - */ - -UpdateGKETarget.prototype['gke-cluster-endpoint'] = undefined; -/** - * GKE cluster name - * @member {String} gke-cluster-name - */ - -UpdateGKETarget.prototype['gke-cluster-name'] = undefined; -/** - * GKE service account email - * @member {String} gke-service-account-email - */ - -UpdateGKETarget.prototype['gke-service-account-email'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateGKETarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateGKETarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateGKETarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateGKETarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateGKETarget.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateGKETarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateGKETarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateGKETarget.prototype['update-version'] = undefined; -/** - * @member {Boolean} use-gw-cloud-identity - */ - -UpdateGKETarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = UpdateGKETarget; -exports["default"] = _default; - -/***/ }), - -/***/ 57048: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateGKETargetOutput model module. - * @module model/UpdateGKETargetOutput - * @version 3.3.16 - */ -var UpdateGKETargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateGKETargetOutput. - * @alias module:model/UpdateGKETargetOutput - */ - function UpdateGKETargetOutput() { - _classCallCheck(this, UpdateGKETargetOutput); - - UpdateGKETargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateGKETargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateGKETargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGKETargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateGKETargetOutput} The populated UpdateGKETargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateGKETargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateGKETargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateGKETargetOutput.prototype['target_id'] = undefined; -var _default = UpdateGKETargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 27770: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateGcpTarget model module. - * @module model/UpdateGcpTarget - * @version 3.3.16 - */ -var UpdateGcpTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateGcpTarget. - * @alias module:model/UpdateGcpTarget - * @param name {String} Target name - */ - function UpdateGcpTarget(name) { - _classCallCheck(this, UpdateGcpTarget); - - UpdateGcpTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateGcpTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateGcpTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGcpTarget} obj Optional instance to populate. - * @return {module:model/UpdateGcpTarget} The populated UpdateGcpTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateGcpTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - - if (data.hasOwnProperty('use-gw-cloud-identity')) { - obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateGcpTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -UpdateGcpTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateGcpTarget.prototype['description'] = undefined; -/** - * Base64-encoded service account private key text - * @member {String} gcp-key - */ - -UpdateGcpTarget.prototype['gcp-key'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateGcpTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateGcpTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateGcpTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateGcpTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateGcpTarget.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateGcpTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateGcpTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateGcpTarget.prototype['update-version'] = undefined; -/** - * @member {Boolean} use-gw-cloud-identity - */ - -UpdateGcpTarget.prototype['use-gw-cloud-identity'] = undefined; -var _default = UpdateGcpTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 18991: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateGcpTargetOutput model module. - * @module model/UpdateGcpTargetOutput - * @version 3.3.16 - */ -var UpdateGcpTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateGcpTargetOutput. - * @alias module:model/UpdateGcpTargetOutput - */ - function UpdateGcpTargetOutput() { - _classCallCheck(this, UpdateGcpTargetOutput); - - UpdateGcpTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateGcpTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateGcpTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGcpTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateGcpTargetOutput} The populated UpdateGcpTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateGcpTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateGcpTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateGcpTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateGcpTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 47511: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateGithubTarget model module. - * @module model/UpdateGithubTarget - * @version 3.3.16 - */ -var UpdateGithubTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateGithubTarget. - * @alias module:model/UpdateGithubTarget - * @param name {String} Target name - */ - function UpdateGithubTarget(name) { - _classCallCheck(this, UpdateGithubTarget); - - UpdateGithubTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateGithubTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateGithubTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGithubTarget} obj Optional instance to populate. - * @return {module:model/UpdateGithubTarget} The populated UpdateGithubTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateGithubTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('github-app-id')) { - obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); - } - - if (data.hasOwnProperty('github-app-private-key')) { - obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); - } - - if (data.hasOwnProperty('github-base-url')) { - obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateGithubTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -UpdateGithubTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateGithubTarget.prototype['description'] = undefined; -/** - * Github app id - * @member {Number} github-app-id - */ - -UpdateGithubTarget.prototype['github-app-id'] = undefined; -/** - * App private key - * @member {String} github-app-private-key - */ - -UpdateGithubTarget.prototype['github-app-private-key'] = undefined; -/** - * Base URL - * @member {String} github-base-url - * @default 'https://api.github.com/' - */ - -UpdateGithubTarget.prototype['github-base-url'] = 'https://api.github.com/'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateGithubTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateGithubTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateGithubTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateGithubTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateGithubTarget.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateGithubTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateGithubTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateGithubTarget.prototype['update-version'] = undefined; -var _default = UpdateGithubTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 14926: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateGithubTargetOutput model module. - * @module model/UpdateGithubTargetOutput - * @version 3.3.16 - */ -var UpdateGithubTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateGithubTargetOutput. - * @alias module:model/UpdateGithubTargetOutput - */ - function UpdateGithubTargetOutput() { - _classCallCheck(this, UpdateGithubTargetOutput); - - UpdateGithubTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateGithubTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateGithubTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGithubTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateGithubTargetOutput} The populated UpdateGithubTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateGithubTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateGithubTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateGithubTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateGithubTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 90781: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateGlobalSignAtlasTarget model module. - * @module model/UpdateGlobalSignAtlasTarget - * @version 3.3.16 - */ -var UpdateGlobalSignAtlasTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateGlobalSignAtlasTarget. - * @alias module:model/UpdateGlobalSignAtlasTarget - * @param apiKey {String} API Key of the GlobalSign Atlas account - * @param apiSecret {String} API Secret of the GlobalSign Atlas account - * @param name {String} Target name - */ - function UpdateGlobalSignAtlasTarget(apiKey, apiSecret, name) { - _classCallCheck(this, UpdateGlobalSignAtlasTarget); - - UpdateGlobalSignAtlasTarget.initialize(this, apiKey, apiSecret, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateGlobalSignAtlasTarget, null, [{ - key: "initialize", - value: function initialize(obj, apiKey, apiSecret, name) { - obj['api-key'] = apiKey; - obj['api-secret'] = apiSecret; - obj['name'] = name; - } - /** - * Constructs a UpdateGlobalSignAtlasTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGlobalSignAtlasTarget} obj Optional instance to populate. - * @return {module:model/UpdateGlobalSignAtlasTarget} The populated UpdateGlobalSignAtlasTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateGlobalSignAtlasTarget(); - - if (data.hasOwnProperty('api-key')) { - obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); - } - - if (data.hasOwnProperty('api-secret')) { - obj['api-secret'] = _ApiClient["default"].convertToType(data['api-secret'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('mtls-cert-data-base64')) { - obj['mtls-cert-data-base64'] = _ApiClient["default"].convertToType(data['mtls-cert-data-base64'], 'String'); - } - - if (data.hasOwnProperty('mtls-key-data-base64')) { - obj['mtls-key-data-base64'] = _ApiClient["default"].convertToType(data['mtls-key-data-base64'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateGlobalSignAtlasTarget; -}(); -/** - * API Key of the GlobalSign Atlas account - * @member {String} api-key - */ - - -UpdateGlobalSignAtlasTarget.prototype['api-key'] = undefined; -/** - * API Secret of the GlobalSign Atlas account - * @member {String} api-secret - */ - -UpdateGlobalSignAtlasTarget.prototype['api-secret'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -UpdateGlobalSignAtlasTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateGlobalSignAtlasTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateGlobalSignAtlasTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateGlobalSignAtlasTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateGlobalSignAtlasTarget.prototype['key'] = undefined; -/** - * Mutual TLS Certificate contents of the GlobalSign Atlas account encoded in base64, either mtls-cert-file-path or mtls-cert-data-base64 must be supplied - * @member {String} mtls-cert-data-base64 - */ - -UpdateGlobalSignAtlasTarget.prototype['mtls-cert-data-base64'] = undefined; -/** - * Mutual TLS Key contents of the GlobalSign Atlas account encoded in base64, either mtls-key-file-path or mtls-data-base64 must be supplied - * @member {String} mtls-key-data-base64 - */ - -UpdateGlobalSignAtlasTarget.prototype['mtls-key-data-base64'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateGlobalSignAtlasTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateGlobalSignAtlasTarget.prototype['new-name'] = undefined; -/** - * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. - * @member {String} timeout - * @default '5m' - */ - -UpdateGlobalSignAtlasTarget.prototype['timeout'] = '5m'; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateGlobalSignAtlasTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateGlobalSignAtlasTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateGlobalSignAtlasTarget.prototype['update-version'] = undefined; -var _default = UpdateGlobalSignAtlasTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 89912: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateGlobalSignAtlasTargetOutput model module. - * @module model/UpdateGlobalSignAtlasTargetOutput - * @version 3.3.16 - */ -var UpdateGlobalSignAtlasTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateGlobalSignAtlasTargetOutput. - * @alias module:model/UpdateGlobalSignAtlasTargetOutput - */ - function UpdateGlobalSignAtlasTargetOutput() { - _classCallCheck(this, UpdateGlobalSignAtlasTargetOutput); - - UpdateGlobalSignAtlasTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateGlobalSignAtlasTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateGlobalSignAtlasTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGlobalSignAtlasTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateGlobalSignAtlasTargetOutput} The populated UpdateGlobalSignAtlasTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateGlobalSignAtlasTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateGlobalSignAtlasTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateGlobalSignAtlasTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateGlobalSignAtlasTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 7530: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateGlobalSignTarget model module. - * @module model/UpdateGlobalSignTarget - * @version 3.3.16 - */ -var UpdateGlobalSignTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateGlobalSignTarget. - * @alias module:model/UpdateGlobalSignTarget - * @param contactEmail {String} Email of the GlobalSign GCC account contact - * @param contactFirstName {String} First name of the GlobalSign GCC account contact - * @param contactLastName {String} Last name of the GlobalSign GCC account contact - * @param contactPhone {String} Telephone of the GlobalSign GCC account contact - * @param name {String} Target name - * @param password {String} Password of the GlobalSign GCC account - * @param profileId {String} Profile ID of the GlobalSign GCC account - * @param username {String} Username of the GlobalSign GCC account - */ - function UpdateGlobalSignTarget(contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username) { - _classCallCheck(this, UpdateGlobalSignTarget); - - UpdateGlobalSignTarget.initialize(this, contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateGlobalSignTarget, null, [{ - key: "initialize", - value: function initialize(obj, contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username) { - obj['contact-email'] = contactEmail; - obj['contact-first-name'] = contactFirstName; - obj['contact-last-name'] = contactLastName; - obj['contact-phone'] = contactPhone; - obj['name'] = name; - obj['password'] = password; - obj['profile-id'] = profileId; - obj['username'] = username; - } - /** - * Constructs a UpdateGlobalSignTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGlobalSignTarget} obj Optional instance to populate. - * @return {module:model/UpdateGlobalSignTarget} The populated UpdateGlobalSignTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateGlobalSignTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('contact-email')) { - obj['contact-email'] = _ApiClient["default"].convertToType(data['contact-email'], 'String'); - } - - if (data.hasOwnProperty('contact-first-name')) { - obj['contact-first-name'] = _ApiClient["default"].convertToType(data['contact-first-name'], 'String'); - } - - if (data.hasOwnProperty('contact-last-name')) { - obj['contact-last-name'] = _ApiClient["default"].convertToType(data['contact-last-name'], 'String'); - } - - if (data.hasOwnProperty('contact-phone')) { - obj['contact-phone'] = _ApiClient["default"].convertToType(data['contact-phone'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('profile-id')) { - obj['profile-id'] = _ApiClient["default"].convertToType(data['profile-id'], 'String'); - } - - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateGlobalSignTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -UpdateGlobalSignTarget.prototype['comment'] = undefined; -/** - * Email of the GlobalSign GCC account contact - * @member {String} contact-email - */ - -UpdateGlobalSignTarget.prototype['contact-email'] = undefined; -/** - * First name of the GlobalSign GCC account contact - * @member {String} contact-first-name - */ - -UpdateGlobalSignTarget.prototype['contact-first-name'] = undefined; -/** - * Last name of the GlobalSign GCC account contact - * @member {String} contact-last-name - */ - -UpdateGlobalSignTarget.prototype['contact-last-name'] = undefined; -/** - * Telephone of the GlobalSign GCC account contact - * @member {String} contact-phone - */ - -UpdateGlobalSignTarget.prototype['contact-phone'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateGlobalSignTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateGlobalSignTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateGlobalSignTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateGlobalSignTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateGlobalSignTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateGlobalSignTarget.prototype['new-name'] = undefined; -/** - * Password of the GlobalSign GCC account - * @member {String} password - */ - -UpdateGlobalSignTarget.prototype['password'] = undefined; -/** - * Profile ID of the GlobalSign GCC account - * @member {String} profile-id - */ - -UpdateGlobalSignTarget.prototype['profile-id'] = undefined; -/** - * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. - * @member {String} timeout - * @default '5m' - */ - -UpdateGlobalSignTarget.prototype['timeout'] = '5m'; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateGlobalSignTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateGlobalSignTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateGlobalSignTarget.prototype['update-version'] = undefined; -/** - * Username of the GlobalSign GCC account - * @member {String} username - */ - -UpdateGlobalSignTarget.prototype['username'] = undefined; -var _default = UpdateGlobalSignTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 40415: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateGlobalSignTargetOutput model module. - * @module model/UpdateGlobalSignTargetOutput - * @version 3.3.16 - */ -var UpdateGlobalSignTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateGlobalSignTargetOutput. - * @alias module:model/UpdateGlobalSignTargetOutput - */ - function UpdateGlobalSignTargetOutput() { - _classCallCheck(this, UpdateGlobalSignTargetOutput); - - UpdateGlobalSignTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateGlobalSignTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateGlobalSignTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateGlobalSignTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateGlobalSignTargetOutput} The populated UpdateGlobalSignTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateGlobalSignTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateGlobalSignTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateGlobalSignTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateGlobalSignTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 49094: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateItem model module. - * @module model/UpdateItem - * @version 3.3.16 - */ -var UpdateItem = /*#__PURE__*/function () { - /** - * Constructs a new UpdateItem. - * @alias module:model/UpdateItem - * @param name {String} Current item name - */ - function UpdateItem(name) { - _classCallCheck(this, UpdateItem); - - UpdateItem.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateItem, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateItem} obj Optional instance to populate. - * @return {module:model/UpdateItem} The populated UpdateItem instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateItem(); - - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); - } - - if (data.hasOwnProperty('add-tag')) { - obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); - } - - if (data.hasOwnProperty('cert-file-data')) { - obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-metadata')) { - obj['new-metadata'] = _ApiClient["default"].convertToType(data['new-metadata'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('rm-tag')) { - obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); - } - - if (data.hasOwnProperty('rotate-after-disconnect')) { - obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); - } - - if (data.hasOwnProperty('secure-access-add-host')) { - obj['secure-access-add-host'] = _ApiClient["default"].convertToType(data['secure-access-add-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-allow-external-user')) { - obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-port-forwading')) { - obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-aws-account-id')) { - obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); - } - - if (data.hasOwnProperty('secure-access-aws-native-cli')) { - obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-aws-region')) { - obj['secure-access-aws-region'] = _ApiClient["default"].convertToType(data['secure-access-aws-region'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-api')) { - obj['secure-access-bastion-api'] = _ApiClient["default"].convertToType(data['secure-access-bastion-api'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-ssh')) { - obj['secure-access-bastion-ssh'] = _ApiClient["default"].convertToType(data['secure-access-bastion-ssh'], 'String'); - } - - if (data.hasOwnProperty('secure-access-cluster-endpoint')) { - obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('secure-access-dashboard-url')) { - obj['secure-access-dashboard-url'] = _ApiClient["default"].convertToType(data['secure-access-dashboard-url'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-name')) { - obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-rdp-domain')) { - obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); - } - - if (data.hasOwnProperty('secure-access-rdp-user')) { - obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); - } - - if (data.hasOwnProperty('secure-access-rm-host')) { - obj['secure-access-rm-host'] = _ApiClient["default"].convertToType(data['secure-access-rm-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-ssh-creds')) { - obj['secure-access-ssh-creds'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds'], 'String'); - } - - if (data.hasOwnProperty('secure-access-ssh-creds-user')) { - obj['secure-access-ssh-creds-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds-user'], 'String'); - } - - if (data.hasOwnProperty('secure-access-url')) { - obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); - } - - if (data.hasOwnProperty('secure-access-use-internal-bastion')) { - obj['secure-access-use-internal-bastion'] = _ApiClient["default"].convertToType(data['secure-access-use-internal-bastion'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateItem; -}(); -/** - * for personal password manager - * @member {String} accessibility - * @default 'regular' - */ - - -UpdateItem.prototype['accessibility'] = 'regular'; -/** - * List of the new tags that will be attached to this item - * @member {Array.} add-tag - */ - -UpdateItem.prototype['add-tag'] = undefined; -/** - * PEM Certificate in a Base64 format. Used for updating RSA keys' certificates. - * @member {String} cert-file-data - */ - -UpdateItem.prototype['cert-file-data'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -UpdateItem.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - * @default 'default_metadata' - */ - -UpdateItem.prototype['description'] = 'default_metadata'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateItem.prototype['json'] = false; -/** - * Current item name - * @member {String} name - */ - -UpdateItem.prototype['name'] = undefined; -/** - * Deprecated - use description - * @member {String} new-metadata - * @default 'default_metadata' - */ - -UpdateItem.prototype['new-metadata'] = 'default_metadata'; -/** - * New item name - * @member {String} new-name - */ - -UpdateItem.prototype['new-name'] = undefined; -/** - * List of the existent tags that will be removed from this item - * @member {Array.} rm-tag - */ - -UpdateItem.prototype['rm-tag'] = undefined; -/** - * Rotate the value of the secret after SRA session ends [true/false] (relevant only for Rotated-secret) - * @member {String} rotate-after-disconnect - * @default 'false' - */ - -UpdateItem.prototype['rotate-after-disconnect'] = 'false'; -/** - * List of the new hosts that will be attached to SRA servers host - * @member {Array.} secure-access-add-host - */ - -UpdateItem.prototype['secure-access-add-host'] = undefined; -/** - * Allow providing external user for a domain users [true/false] - * @member {String} secure-access-allow-external-user - */ - -UpdateItem.prototype['secure-access-allow-external-user'] = undefined; -/** - * Enable Port forwarding while using CLI access (relevant only for EKS/GKE/K8s Dynamic-Secret) - * @member {Boolean} secure-access-allow-port-forwading - */ - -UpdateItem.prototype['secure-access-allow-port-forwading'] = undefined; -/** - * The AWS account id (relevant only for aws) - * @member {String} secure-access-aws-account-id - */ - -UpdateItem.prototype['secure-access-aws-account-id'] = undefined; -/** - * The AWS native cli (relevant only for aws) - * @member {Boolean} secure-access-aws-native-cli - */ - -UpdateItem.prototype['secure-access-aws-native-cli'] = undefined; -/** - * The AWS region (relevant only for aws) - * @member {String} secure-access-aws-region - */ - -UpdateItem.prototype['secure-access-aws-region'] = undefined; -/** - * Bastion's SSH control API endpoint. E.g. https://my.bastion:9900 (relevant only for ssh cert issuer) - * @member {String} secure-access-bastion-api - */ - -UpdateItem.prototype['secure-access-bastion-api'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -UpdateItem.prototype['secure-access-bastion-issuer'] = undefined; -/** - * Bastion's SSH server. E.g. my.bastion:22 (relevant only for ssh cert issuer) - * @member {String} secure-access-bastion-ssh - */ - -UpdateItem.prototype['secure-access-bastion-ssh'] = undefined; -/** - * The K8s cluster endpoint URL (relevant only for EKS/GKE/K8s Dynamic-Secret) - * @member {String} secure-access-cluster-endpoint - */ - -UpdateItem.prototype['secure-access-cluster-endpoint'] = undefined; -/** - * The K8s dashboard url (relevant only for k8s) - * @member {String} secure-access-dashboard-url - */ - -UpdateItem.prototype['secure-access-dashboard-url'] = undefined; -/** - * The DB name (relevant only for DB Dynamic-Secret) - * @member {String} secure-access-db-name - */ - -UpdateItem.prototype['secure-access-db-name'] = undefined; -/** - * The DB schema (relevant only for DB Dynamic-Secret) - * @member {String} secure-access-db-schema - */ - -UpdateItem.prototype['secure-access-db-schema'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -UpdateItem.prototype['secure-access-enable'] = undefined; -/** - * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) - * @member {Array.} secure-access-host - */ - -UpdateItem.prototype['secure-access-host'] = undefined; -/** - * Required when the Dynamic Secret is used for a domain user (relevant only for RDP Dynamic-Secret) - * @member {String} secure-access-rdp-domain - */ - -UpdateItem.prototype['secure-access-rdp-domain'] = undefined; -/** - * Override the RDP Domain username - * @member {String} secure-access-rdp-user - */ - -UpdateItem.prototype['secure-access-rdp-user'] = undefined; -/** - * List of the existent hosts that will be removed from SRA servers host - * @member {Array.} secure-access-rm-host - */ - -UpdateItem.prototype['secure-access-rm-host'] = undefined; -/** - * Secret values contains SSH Credentials, either Private Key or Password [password/private-key] (relevant only for Static-Secret or Rotated-secret) - * @member {String} secure-access-ssh-creds - */ - -UpdateItem.prototype['secure-access-ssh-creds'] = undefined; -/** - * SSH username to connect to target server, must be in 'Allowed Users' list (relevant only for ssh cert issuer) - * @member {String} secure-access-ssh-creds-user - */ - -UpdateItem.prototype['secure-access-ssh-creds-user'] = undefined; -/** - * Destination URL to inject secrets - * @member {String} secure-access-url - */ - -UpdateItem.prototype['secure-access-url'] = undefined; -/** - * Use internal SSH Bastion - * @member {Boolean} secure-access-use-internal-bastion - */ - -UpdateItem.prototype['secure-access-use-internal-bastion'] = undefined; -/** - * Secure browser via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-browsing - * @default false - */ - -UpdateItem.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion - * @member {Boolean} secure-access-web-proxy - * @default false - */ - -UpdateItem.prototype['secure-access-web-proxy'] = false; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateItem.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateItem.prototype['uid-token'] = undefined; -var _default = UpdateItem; -exports["default"] = _default; - -/***/ }), - -/***/ 15651: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateItemOutput model module. - * @module model/UpdateItemOutput - * @version 3.3.16 - */ -var UpdateItemOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateItemOutput. - * @alias module:model/UpdateItemOutput - */ - function UpdateItemOutput() { - _classCallCheck(this, UpdateItemOutput); - - UpdateItemOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateItemOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateItemOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateItemOutput} obj Optional instance to populate. - * @return {module:model/UpdateItemOutput} The populated UpdateItemOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateItemOutput(); - - if (data.hasOwnProperty('updated')) { - obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateItemOutput; -}(); -/** - * @member {Boolean} updated - */ - - -UpdateItemOutput.prototype['updated'] = undefined; -var _default = UpdateItemOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 3589: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateLdapTarget model module. - * @module model/UpdateLdapTarget - * @version 3.3.16 - */ -var UpdateLdapTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateLdapTarget. - * @alias module:model/UpdateLdapTarget - * @param name {String} Target name - */ - function UpdateLdapTarget(name) { - _classCallCheck(this, UpdateLdapTarget); - - UpdateLdapTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateLdapTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateLdapTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateLdapTarget} obj Optional instance to populate. - * @return {module:model/UpdateLdapTarget} The populated UpdateLdapTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateLdapTarget(); - - if (data.hasOwnProperty('bind-dn')) { - obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); - } - - if (data.hasOwnProperty('bind-dn-password')) { - obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('ldap-ca-cert')) { - obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('ldap-url')) { - obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('server-type')) { - obj['server-type'] = _ApiClient["default"].convertToType(data['server-type'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('token-expiration')) { - obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateLdapTarget; -}(); -/** - * @member {String} bind-dn - */ - - -UpdateLdapTarget.prototype['bind-dn'] = undefined; -/** - * @member {String} bind-dn-password - */ - -UpdateLdapTarget.prototype['bind-dn-password'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -UpdateLdapTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateLdapTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateLdapTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateLdapTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateLdapTarget.prototype['key'] = undefined; -/** - * @member {String} ldap-ca-cert - */ - -UpdateLdapTarget.prototype['ldap-ca-cert'] = undefined; -/** - * @member {String} ldap-url - */ - -UpdateLdapTarget.prototype['ldap-url'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateLdapTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateLdapTarget.prototype['new-name'] = undefined; -/** - * Set Ldap server type, Options:[OpenLDAP, ActiveDirectory] - * @member {String} server-type - */ - -UpdateLdapTarget.prototype['server-type'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateLdapTarget.prototype['token'] = undefined; -/** - * @member {String} token-expiration - */ - -UpdateLdapTarget.prototype['token-expiration'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateLdapTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateLdapTarget.prototype['update-version'] = undefined; -var _default = UpdateLdapTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 34663: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateLdapTargetDetails model module. - * @module model/UpdateLdapTargetDetails - * @version 3.3.16 - */ -var UpdateLdapTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new UpdateLdapTargetDetails. - * @alias module:model/UpdateLdapTargetDetails - * @param name {String} Target name - */ - function UpdateLdapTargetDetails(name) { - _classCallCheck(this, UpdateLdapTargetDetails); - - UpdateLdapTargetDetails.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateLdapTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateLdapTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateLdapTargetDetails} obj Optional instance to populate. - * @return {module:model/UpdateLdapTargetDetails} The populated UpdateLdapTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateLdapTargetDetails(); - - if (data.hasOwnProperty('bind-dn')) { - obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); - } - - if (data.hasOwnProperty('bind-dn-password')) { - obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('ldap-ca-cert')) { - obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('ldap-url')) { - obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-version')) { - obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); - } - - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('token-expiration')) { - obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateLdapTargetDetails; -}(); -/** - * @member {String} bind-dn - */ - - -UpdateLdapTargetDetails.prototype['bind-dn'] = undefined; -/** - * @member {String} bind-dn-password - */ - -UpdateLdapTargetDetails.prototype['bind-dn-password'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateLdapTargetDetails.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateLdapTargetDetails.prototype['keep-prev-version'] = undefined; -/** - * @member {String} key - */ - -UpdateLdapTargetDetails.prototype['key'] = undefined; -/** - * @member {String} ldap-ca-cert - */ - -UpdateLdapTargetDetails.prototype['ldap-ca-cert'] = undefined; -/** - * @member {String} ldap-url - */ - -UpdateLdapTargetDetails.prototype['ldap-url'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateLdapTargetDetails.prototype['name'] = undefined; -/** - * Deprecated - * @member {Boolean} new-version - */ - -UpdateLdapTargetDetails.prototype['new-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key - */ - -UpdateLdapTargetDetails.prototype['protection_key'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateLdapTargetDetails.prototype['token'] = undefined; -/** - * @member {String} token-expiration - */ - -UpdateLdapTargetDetails.prototype['token-expiration'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateLdapTargetDetails.prototype['uid-token'] = undefined; -var _default = UpdateLdapTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 4912: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateLdapTargetOutput model module. - * @module model/UpdateLdapTargetOutput - * @version 3.3.16 - */ -var UpdateLdapTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateLdapTargetOutput. - * @alias module:model/UpdateLdapTargetOutput - */ - function UpdateLdapTargetOutput() { - _classCallCheck(this, UpdateLdapTargetOutput); - - UpdateLdapTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateLdapTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateLdapTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateLdapTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateLdapTargetOutput} The populated UpdateLdapTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateLdapTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateLdapTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateLdapTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateLdapTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 26477: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateLinkedTarget model module. - * @module model/UpdateLinkedTarget - * @version 3.3.16 - */ -var UpdateLinkedTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateLinkedTarget. - * @alias module:model/UpdateLinkedTarget - * @param name {String} Linked Target name - */ - function UpdateLinkedTarget(name) { - _classCallCheck(this, UpdateLinkedTarget); - - UpdateLinkedTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateLinkedTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateLinkedTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateLinkedTarget} obj Optional instance to populate. - * @return {module:model/UpdateLinkedTarget} The populated UpdateLinkedTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateLinkedTarget(); - - if (data.hasOwnProperty('add-hosts')) { - obj['add-hosts'] = _ApiClient["default"].convertToType(data['add-hosts'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('hosts')) { - obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('parent-target-name')) { - obj['parent-target-name'] = _ApiClient["default"].convertToType(data['parent-target-name'], 'String'); - } - - if (data.hasOwnProperty('rm-hosts')) { - obj['rm-hosts'] = _ApiClient["default"].convertToType(data['rm-hosts'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateLinkedTarget; -}(); -/** - * A comma seperated list of new server hosts and server descriptions joined by semicolon ';' that will be added to the Linked Target hosts. - * @member {String} add-hosts - */ - - -UpdateLinkedTarget.prototype['add-hosts'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateLinkedTarget.prototype['description'] = undefined; -/** - * A comma seperated list of server hosts and server descriptions joined by semicolon ';' (i.e. 'server-dev.com;My Dev server,server-prod.com;My Prod server description') - * @member {String} hosts - */ - -UpdateLinkedTarget.prototype['hosts'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateLinkedTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateLinkedTarget.prototype['keep-prev-version'] = undefined; -/** - * Linked Target name - * @member {String} name - */ - -UpdateLinkedTarget.prototype['name'] = undefined; -/** - * New Linked Target name - * @member {String} new-name - */ - -UpdateLinkedTarget.prototype['new-name'] = undefined; -/** - * The parent Target name - * @member {String} parent-target-name - */ - -UpdateLinkedTarget.prototype['parent-target-name'] = undefined; -/** - * Comma separated list of existing hosts that will be removed from Linked Target hosts. - * @member {String} rm-hosts - */ - -UpdateLinkedTarget.prototype['rm-hosts'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateLinkedTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateLinkedTarget.prototype['uid-token'] = undefined; -var _default = UpdateLinkedTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 30593: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateNativeK8STarget model module. - * @module model/UpdateNativeK8STarget - * @version 3.3.16 - */ -var UpdateNativeK8STarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateNativeK8STarget. - * @alias module:model/UpdateNativeK8STarget - * @param k8sClusterCaCert {String} K8S cluster CA certificate - * @param k8sClusterEndpoint {String} K8S cluster URL endpoint - * @param k8sClusterToken {String} K8S cluster Bearer token - * @param name {String} Target name - */ - function UpdateNativeK8STarget(k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name) { - _classCallCheck(this, UpdateNativeK8STarget); - - UpdateNativeK8STarget.initialize(this, k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateNativeK8STarget, null, [{ - key: "initialize", - value: function initialize(obj, k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name) { - obj['k8s-cluster-ca-cert'] = k8sClusterCaCert; - obj['k8s-cluster-endpoint'] = k8sClusterEndpoint; - obj['k8s-cluster-token'] = k8sClusterToken; - obj['name'] = name; - } - /** - * Constructs a UpdateNativeK8STarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateNativeK8STarget} obj Optional instance to populate. - * @return {module:model/UpdateNativeK8STarget} The populated UpdateNativeK8STarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateNativeK8STarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('k8s-cluster-ca-cert')) { - obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); - } - - if (data.hasOwnProperty('k8s-cluster-endpoint')) { - obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); - } - - if (data.hasOwnProperty('k8s-cluster-token')) { - obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - - if (data.hasOwnProperty('use-gw-service-account')) { - obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateNativeK8STarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -UpdateNativeK8STarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateNativeK8STarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateNativeK8STarget.prototype['json'] = false; -/** - * K8S cluster CA certificate - * @member {String} k8s-cluster-ca-cert - * @default 'dummy_val' - */ - -UpdateNativeK8STarget.prototype['k8s-cluster-ca-cert'] = 'dummy_val'; -/** - * K8S cluster URL endpoint - * @member {String} k8s-cluster-endpoint - * @default 'dummy_val' - */ - -UpdateNativeK8STarget.prototype['k8s-cluster-endpoint'] = 'dummy_val'; -/** - * K8S cluster Bearer token - * @member {String} k8s-cluster-token - * @default 'dummy_val' - */ - -UpdateNativeK8STarget.prototype['k8s-cluster-token'] = 'dummy_val'; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateNativeK8STarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateNativeK8STarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateNativeK8STarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateNativeK8STarget.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateNativeK8STarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateNativeK8STarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateNativeK8STarget.prototype['update-version'] = undefined; -/** - * Use the GW's service account - * @member {Boolean} use-gw-service-account - */ - -UpdateNativeK8STarget.prototype['use-gw-service-account'] = undefined; -var _default = UpdateNativeK8STarget; -exports["default"] = _default; - -/***/ }), - -/***/ 99636: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateNativeK8STargetOutput model module. - * @module model/UpdateNativeK8STargetOutput - * @version 3.3.16 - */ -var UpdateNativeK8STargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateNativeK8STargetOutput. - * @alias module:model/UpdateNativeK8STargetOutput - */ - function UpdateNativeK8STargetOutput() { - _classCallCheck(this, UpdateNativeK8STargetOutput); - - UpdateNativeK8STargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateNativeK8STargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateNativeK8STargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateNativeK8STargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateNativeK8STargetOutput} The populated UpdateNativeK8STargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateNativeK8STargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateNativeK8STargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateNativeK8STargetOutput.prototype['target_id'] = undefined; -var _default = UpdateNativeK8STargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 47356: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateOutput model module. - * @module model/UpdateOutput - * @version 3.3.16 - */ -var UpdateOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateOutput. - * @alias module:model/UpdateOutput - */ - function UpdateOutput() { - _classCallCheck(this, UpdateOutput); - - UpdateOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateOutput} obj Optional instance to populate. - * @return {module:model/UpdateOutput} The populated UpdateOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateOutput(); - - if (data.hasOwnProperty('changelog')) { - obj['changelog'] = _ApiClient["default"].convertToType(data['changelog'], 'String'); - } - - if (data.hasOwnProperty('latest')) { - obj['latest'] = _ApiClient["default"].convertToType(data['latest'], 'String'); - } - - if (data.hasOwnProperty('updated')) { - obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateOutput; -}(); -/** - * @member {String} changelog - */ - - -UpdateOutput.prototype['changelog'] = undefined; -/** - * @member {String} latest - */ - -UpdateOutput.prototype['latest'] = undefined; -/** - * @member {Boolean} updated - */ - -UpdateOutput.prototype['updated'] = undefined; -var _default = UpdateOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 79264: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdatePKICertIssuer model module. - * @module model/UpdatePKICertIssuer - * @version 3.3.16 - */ -var UpdatePKICertIssuer = /*#__PURE__*/function () { - /** - * Constructs a new UpdatePKICertIssuer. - * @alias module:model/UpdatePKICertIssuer - * @param name {String} PKI certificate issuer name - * @param signerKeyName {String} A key to sign the certificate with, required in Private CA mode - * @param ttl {Number} The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs - */ - function UpdatePKICertIssuer(name, signerKeyName, ttl) { - _classCallCheck(this, UpdatePKICertIssuer); - - UpdatePKICertIssuer.initialize(this, name, signerKeyName, ttl); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdatePKICertIssuer, null, [{ - key: "initialize", - value: function initialize(obj, name, signerKeyName, ttl) { - obj['name'] = name; - obj['signer-key-name'] = signerKeyName; - obj['ttl'] = ttl; - } - /** - * Constructs a UpdatePKICertIssuer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePKICertIssuer} obj Optional instance to populate. - * @return {module:model/UpdatePKICertIssuer} The populated UpdatePKICertIssuer instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePKICertIssuer(); - - if (data.hasOwnProperty('add-tag')) { - obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); - } - - if (data.hasOwnProperty('allow-any-name')) { - obj['allow-any-name'] = _ApiClient["default"].convertToType(data['allow-any-name'], 'Boolean'); - } - - if (data.hasOwnProperty('allow-subdomains')) { - obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); - } - - if (data.hasOwnProperty('allowed-domains')) { - obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], 'String'); - } - - if (data.hasOwnProperty('allowed-uri-sans')) { - obj['allowed-uri-sans'] = _ApiClient["default"].convertToType(data['allowed-uri-sans'], 'String'); - } - - if (data.hasOwnProperty('client-flag')) { - obj['client-flag'] = _ApiClient["default"].convertToType(data['client-flag'], 'Boolean'); - } - - if (data.hasOwnProperty('code-signing-flag')) { - obj['code-signing-flag'] = _ApiClient["default"].convertToType(data['code-signing-flag'], 'Boolean'); - } - - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('destination-path')) { - obj['destination-path'] = _ApiClient["default"].convertToType(data['destination-path'], 'String'); - } - - if (data.hasOwnProperty('expiration-event-in')) { - obj['expiration-event-in'] = _ApiClient["default"].convertToType(data['expiration-event-in'], ['String']); - } - - if (data.hasOwnProperty('gw-cluster-url')) { - obj['gw-cluster-url'] = _ApiClient["default"].convertToType(data['gw-cluster-url'], 'String'); - } - - if (data.hasOwnProperty('is-ca')) { - obj['is-ca'] = _ApiClient["default"].convertToType(data['is-ca'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-usage')) { - obj['key-usage'] = _ApiClient["default"].convertToType(data['key-usage'], 'String'); - } - - if (data.hasOwnProperty('locality')) { - obj['locality'] = _ApiClient["default"].convertToType(data['locality'], 'String'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('not-enforce-hostnames')) { - obj['not-enforce-hostnames'] = _ApiClient["default"].convertToType(data['not-enforce-hostnames'], 'Boolean'); - } - - if (data.hasOwnProperty('not-require-cn')) { - obj['not-require-cn'] = _ApiClient["default"].convertToType(data['not-require-cn'], 'Boolean'); - } - - if (data.hasOwnProperty('organizational-units')) { - obj['organizational-units'] = _ApiClient["default"].convertToType(data['organizational-units'], 'String'); - } - - if (data.hasOwnProperty('organizations')) { - obj['organizations'] = _ApiClient["default"].convertToType(data['organizations'], 'String'); - } - - if (data.hasOwnProperty('postal-code')) { - obj['postal-code'] = _ApiClient["default"].convertToType(data['postal-code'], 'String'); - } - - if (data.hasOwnProperty('protect-certificates')) { - obj['protect-certificates'] = _ApiClient["default"].convertToType(data['protect-certificates'], 'Boolean'); - } - - if (data.hasOwnProperty('province')) { - obj['province'] = _ApiClient["default"].convertToType(data['province'], 'String'); - } - - if (data.hasOwnProperty('rm-tag')) { - obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); - } - - if (data.hasOwnProperty('server-flag')) { - obj['server-flag'] = _ApiClient["default"].convertToType(data['server-flag'], 'Boolean'); - } - - if (data.hasOwnProperty('signer-key-name')) { - obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); - } - - if (data.hasOwnProperty('street-address')) { - obj['street-address'] = _ApiClient["default"].convertToType(data['street-address'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdatePKICertIssuer; -}(); -/** - * List of the new tags that will be attached to this item - * @member {Array.} add-tag - */ - - -UpdatePKICertIssuer.prototype['add-tag'] = undefined; -/** - * If set, clients can request certificates for any CN - * @member {Boolean} allow-any-name - */ - -UpdatePKICertIssuer.prototype['allow-any-name'] = undefined; -/** - * If set, clients can request certificates for subdomains and wildcard subdomains of the allowed domains - * @member {Boolean} allow-subdomains - */ - -UpdatePKICertIssuer.prototype['allow-subdomains'] = undefined; -/** - * A list of the allowed domains that clients can request to be included in the certificate (in a comma-delimited list) - * @member {String} allowed-domains - */ - -UpdatePKICertIssuer.prototype['allowed-domains'] = undefined; -/** - * A list of the allowed URIs that clients can request to be included in the certificate as part of the URI Subject Alternative Names (in a comma-delimited list) - * @member {String} allowed-uri-sans - */ - -UpdatePKICertIssuer.prototype['allowed-uri-sans'] = undefined; -/** - * If set, certificates will be flagged for client auth use - * @member {Boolean} client-flag - */ - -UpdatePKICertIssuer.prototype['client-flag'] = undefined; -/** - * If set, certificates will be flagged for code signing use - * @member {Boolean} code-signing-flag - */ - -UpdatePKICertIssuer.prototype['code-signing-flag'] = undefined; -/** - * A comma-separated list of countries that will be set in the issued certificate - * @member {String} country - */ - -UpdatePKICertIssuer.prototype['country'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -UpdatePKICertIssuer.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdatePKICertIssuer.prototype['description'] = undefined; -/** - * A path in which to save generated certificates - * @member {String} destination-path - */ - -UpdatePKICertIssuer.prototype['destination-path'] = undefined; -/** - * How many days before the expiration of the certificate would you like to be notified. - * @member {Array.} expiration-event-in - */ - -UpdatePKICertIssuer.prototype['expiration-event-in'] = undefined; -/** - * The GW cluster URL to issue the certificate from, required in Public CA mode - * @member {String} gw-cluster-url - */ - -UpdatePKICertIssuer.prototype['gw-cluster-url'] = undefined; -/** - * If set, the basic constraints extension will be added to certificate - * @member {Boolean} is-ca - */ - -UpdatePKICertIssuer.prototype['is-ca'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdatePKICertIssuer.prototype['json'] = false; -/** - * key-usage - * @member {String} key-usage - * @default 'DigitalSignature,KeyAgreement,KeyEncipherment' - */ - -UpdatePKICertIssuer.prototype['key-usage'] = 'DigitalSignature,KeyAgreement,KeyEncipherment'; -/** - * A comma-separated list of localities that will be set in the issued certificate - * @member {String} locality - */ - -UpdatePKICertIssuer.prototype['locality'] = undefined; -/** - * Deprecated - use description - * @member {String} metadata - */ - -UpdatePKICertIssuer.prototype['metadata'] = undefined; -/** - * PKI certificate issuer name - * @member {String} name - */ - -UpdatePKICertIssuer.prototype['name'] = undefined; -/** - * New item name - * @member {String} new-name - */ - -UpdatePKICertIssuer.prototype['new-name'] = undefined; -/** - * If set, any names are allowed for CN and SANs in the certificate and not only a valid host name - * @member {Boolean} not-enforce-hostnames - */ - -UpdatePKICertIssuer.prototype['not-enforce-hostnames'] = undefined; -/** - * If set, clients can request certificates without a CN - * @member {Boolean} not-require-cn - */ - -UpdatePKICertIssuer.prototype['not-require-cn'] = undefined; -/** - * A comma-separated list of organizational units (OU) that will be set in the issued certificate - * @member {String} organizational-units - */ - -UpdatePKICertIssuer.prototype['organizational-units'] = undefined; -/** - * A comma-separated list of organizations (O) that will be set in the issued certificate - * @member {String} organizations - */ - -UpdatePKICertIssuer.prototype['organizations'] = undefined; -/** - * A comma-separated list of postal codes that will be set in the issued certificate - * @member {String} postal-code - */ - -UpdatePKICertIssuer.prototype['postal-code'] = undefined; -/** - * Whether to protect generated certificates from deletion - * @member {Boolean} protect-certificates - */ - -UpdatePKICertIssuer.prototype['protect-certificates'] = undefined; -/** - * A comma-separated list of provinces that will be set in the issued certificate - * @member {String} province - */ - -UpdatePKICertIssuer.prototype['province'] = undefined; -/** - * List of the existent tags that will be removed from this item - * @member {Array.} rm-tag - */ - -UpdatePKICertIssuer.prototype['rm-tag'] = undefined; -/** - * If set, certificates will be flagged for server auth use - * @member {Boolean} server-flag - */ - -UpdatePKICertIssuer.prototype['server-flag'] = undefined; -/** - * A key to sign the certificate with, required in Private CA mode - * @member {String} signer-key-name - * @default 'dummy_signer_key' - */ - -UpdatePKICertIssuer.prototype['signer-key-name'] = 'dummy_signer_key'; -/** - * A comma-separated list of street addresses that will be set in the issued certificate - * @member {String} street-address - */ - -UpdatePKICertIssuer.prototype['street-address'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdatePKICertIssuer.prototype['token'] = undefined; -/** - * The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs - * @member {Number} ttl - */ - -UpdatePKICertIssuer.prototype['ttl'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdatePKICertIssuer.prototype['uid-token'] = undefined; -var _default = UpdatePKICertIssuer; -exports["default"] = _default; - -/***/ }), - -/***/ 13449: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdatePKICertIssuerOutput model module. - * @module model/UpdatePKICertIssuerOutput - * @version 3.3.16 - */ -var UpdatePKICertIssuerOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdatePKICertIssuerOutput. - * @alias module:model/UpdatePKICertIssuerOutput - */ - function UpdatePKICertIssuerOutput() { - _classCallCheck(this, UpdatePKICertIssuerOutput); - - UpdatePKICertIssuerOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdatePKICertIssuerOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdatePKICertIssuerOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePKICertIssuerOutput} obj Optional instance to populate. - * @return {module:model/UpdatePKICertIssuerOutput} The populated UpdatePKICertIssuerOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePKICertIssuerOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return UpdatePKICertIssuerOutput; -}(); -/** - * @member {String} name - */ - - -UpdatePKICertIssuerOutput.prototype['name'] = undefined; -var _default = UpdatePKICertIssuerOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 85764: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdatePingTarget model module. - * @module model/UpdatePingTarget - * @version 3.3.16 - */ -var UpdatePingTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdatePingTarget. - * @alias module:model/UpdatePingTarget - * @param name {String} Target name - */ - function UpdatePingTarget(name) { - _classCallCheck(this, UpdatePingTarget); - - UpdatePingTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdatePingTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdatePingTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePingTarget} obj Optional instance to populate. - * @return {module:model/UpdatePingTarget} The populated UpdatePingTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePingTarget(); - - if (data.hasOwnProperty('administrative-port')) { - obj['administrative-port'] = _ApiClient["default"].convertToType(data['administrative-port'], 'String'); - } - - if (data.hasOwnProperty('authorization-port')) { - obj['authorization-port'] = _ApiClient["default"].convertToType(data['authorization-port'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('ping-url')) { - obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); - } - - if (data.hasOwnProperty('privileged-user')) { - obj['privileged-user'] = _ApiClient["default"].convertToType(data['privileged-user'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdatePingTarget; -}(); -/** - * Ping Federate administrative port - * @member {String} administrative-port - * @default '9999' - */ - - -UpdatePingTarget.prototype['administrative-port'] = '9999'; -/** - * Ping Federate authorization port - * @member {String} authorization-port - * @default '9031' - */ - -UpdatePingTarget.prototype['authorization-port'] = '9031'; -/** - * Deprecated - use description - * @member {String} comment - */ - -UpdatePingTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdatePingTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdatePingTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdatePingTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdatePingTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdatePingTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdatePingTarget.prototype['new-name'] = undefined; -/** - * Ping Federate privileged user password - * @member {String} password - */ - -UpdatePingTarget.prototype['password'] = undefined; -/** - * Ping URL - * @member {String} ping-url - */ - -UpdatePingTarget.prototype['ping-url'] = undefined; -/** - * Ping Federate privileged user - * @member {String} privileged-user - */ - -UpdatePingTarget.prototype['privileged-user'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdatePingTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdatePingTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdatePingTarget.prototype['update-version'] = undefined; -var _default = UpdatePingTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 54450: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateRDPTargetDetails model module. - * @module model/UpdateRDPTargetDetails - * @version 3.3.16 - */ -var UpdateRDPTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new UpdateRDPTargetDetails. - * @alias module:model/UpdateRDPTargetDetails - * @param name {String} Target name - */ - function UpdateRDPTargetDetails(name) { - _classCallCheck(this, UpdateRDPTargetDetails); - - UpdateRDPTargetDetails.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateRDPTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateRDPTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRDPTargetDetails} obj Optional instance to populate. - * @return {module:model/UpdateRDPTargetDetails} The populated UpdateRDPTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateRDPTargetDetails(); - - if (data.hasOwnProperty('admin_name')) { - obj['admin_name'] = _ApiClient["default"].convertToType(data['admin_name'], 'String'); - } - - if (data.hasOwnProperty('admin_pwd')) { - obj['admin_pwd'] = _ApiClient["default"].convertToType(data['admin_pwd'], 'String'); - } - - if (data.hasOwnProperty('host_name')) { - obj['host_name'] = _ApiClient["default"].convertToType(data['host_name'], 'String'); - } - - if (data.hasOwnProperty('host_port')) { - obj['host_port'] = _ApiClient["default"].convertToType(data['host_port'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-version')) { - obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); - } - - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateRDPTargetDetails; -}(); -/** - * The admin name - * @member {String} admin_name - */ - - -UpdateRDPTargetDetails.prototype['admin_name'] = undefined; -/** - * The admin password - * @member {String} admin_pwd - */ - -UpdateRDPTargetDetails.prototype['admin_pwd'] = undefined; -/** - * The rdp host name - * @member {String} host_name - */ - -UpdateRDPTargetDetails.prototype['host_name'] = undefined; -/** - * The rdp port - * @member {String} host_port - * @default '22' - */ - -UpdateRDPTargetDetails.prototype['host_port'] = '22'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateRDPTargetDetails.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateRDPTargetDetails.prototype['keep-prev-version'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateRDPTargetDetails.prototype['name'] = undefined; -/** - * Deprecated - * @member {Boolean} new-version - */ - -UpdateRDPTargetDetails.prototype['new-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key - */ - -UpdateRDPTargetDetails.prototype['protection_key'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateRDPTargetDetails.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateRDPTargetDetails.prototype['uid-token'] = undefined; -var _default = UpdateRDPTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 26622: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateRabbitMQTarget model module. - * @module model/UpdateRabbitMQTarget - * @version 3.3.16 - */ -var UpdateRabbitMQTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateRabbitMQTarget. - * @alias module:model/UpdateRabbitMQTarget - * @param name {String} Target name - */ - function UpdateRabbitMQTarget(name) { - _classCallCheck(this, UpdateRabbitMQTarget); - - UpdateRabbitMQTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateRabbitMQTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateRabbitMQTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRabbitMQTarget} obj Optional instance to populate. - * @return {module:model/UpdateRabbitMQTarget} The populated UpdateRabbitMQTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateRabbitMQTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-server-password')) { - obj['rabbitmq-server-password'] = _ApiClient["default"].convertToType(data['rabbitmq-server-password'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-server-uri')) { - obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq-server-user')) { - obj['rabbitmq-server-user'] = _ApiClient["default"].convertToType(data['rabbitmq-server-user'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateRabbitMQTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -UpdateRabbitMQTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateRabbitMQTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateRabbitMQTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateRabbitMQTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateRabbitMQTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateRabbitMQTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateRabbitMQTarget.prototype['new-name'] = undefined; -/** - * @member {String} rabbitmq-server-password - */ - -UpdateRabbitMQTarget.prototype['rabbitmq-server-password'] = undefined; -/** - * @member {String} rabbitmq-server-uri - */ - -UpdateRabbitMQTarget.prototype['rabbitmq-server-uri'] = undefined; -/** - * @member {String} rabbitmq-server-user - */ - -UpdateRabbitMQTarget.prototype['rabbitmq-server-user'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateRabbitMQTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateRabbitMQTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateRabbitMQTarget.prototype['update-version'] = undefined; -var _default = UpdateRabbitMQTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 87334: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateRabbitMQTargetDetails model module. - * @module model/UpdateRabbitMQTargetDetails - * @version 3.3.16 - */ -var UpdateRabbitMQTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new UpdateRabbitMQTargetDetails. - * @alias module:model/UpdateRabbitMQTargetDetails - * @param name {String} Target name - */ - function UpdateRabbitMQTargetDetails(name) { - _classCallCheck(this, UpdateRabbitMQTargetDetails); - - UpdateRabbitMQTargetDetails.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateRabbitMQTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateRabbitMQTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRabbitMQTargetDetails} obj Optional instance to populate. - * @return {module:model/UpdateRabbitMQTargetDetails} The populated UpdateRabbitMQTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateRabbitMQTargetDetails(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-version')) { - obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); - } - - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq_server_password')) { - obj['rabbitmq_server_password'] = _ApiClient["default"].convertToType(data['rabbitmq_server_password'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq_server_uri')) { - obj['rabbitmq_server_uri'] = _ApiClient["default"].convertToType(data['rabbitmq_server_uri'], 'String'); - } - - if (data.hasOwnProperty('rabbitmq_server_user')) { - obj['rabbitmq_server_user'] = _ApiClient["default"].convertToType(data['rabbitmq_server_user'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateRabbitMQTargetDetails; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -UpdateRabbitMQTargetDetails.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateRabbitMQTargetDetails.prototype['keep-prev-version'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateRabbitMQTargetDetails.prototype['name'] = undefined; -/** - * Deprecated - * @member {Boolean} new-version - */ - -UpdateRabbitMQTargetDetails.prototype['new-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key - */ - -UpdateRabbitMQTargetDetails.prototype['protection_key'] = undefined; -/** - * @member {String} rabbitmq_server_password - */ - -UpdateRabbitMQTargetDetails.prototype['rabbitmq_server_password'] = undefined; -/** - * @member {String} rabbitmq_server_uri - */ - -UpdateRabbitMQTargetDetails.prototype['rabbitmq_server_uri'] = undefined; -/** - * @member {String} rabbitmq_server_user - */ - -UpdateRabbitMQTargetDetails.prototype['rabbitmq_server_user'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateRabbitMQTargetDetails.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateRabbitMQTargetDetails.prototype['uid-token'] = undefined; -var _default = UpdateRabbitMQTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 87403: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateRabbitMQTargetOutput model module. - * @module model/UpdateRabbitMQTargetOutput - * @version 3.3.16 - */ -var UpdateRabbitMQTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateRabbitMQTargetOutput. - * @alias module:model/UpdateRabbitMQTargetOutput - */ - function UpdateRabbitMQTargetOutput() { - _classCallCheck(this, UpdateRabbitMQTargetOutput); - - UpdateRabbitMQTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateRabbitMQTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateRabbitMQTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRabbitMQTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateRabbitMQTargetOutput} The populated UpdateRabbitMQTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateRabbitMQTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateRabbitMQTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateRabbitMQTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateRabbitMQTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 57081: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateRole model module. - * @module model/UpdateRole - * @version 3.3.16 - */ -var UpdateRole = /*#__PURE__*/function () { - /** - * Constructs a new UpdateRole. - * @alias module:model/UpdateRole - * @param name {String} Role name - */ - function UpdateRole(name) { - _classCallCheck(this, UpdateRole); - - UpdateRole.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateRole, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateRole from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRole} obj Optional instance to populate. - * @return {module:model/UpdateRole} The populated UpdateRole instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateRole(); - - if (data.hasOwnProperty('analytics-access')) { - obj['analytics-access'] = _ApiClient["default"].convertToType(data['analytics-access'], 'String'); - } - - if (data.hasOwnProperty('audit-access')) { - obj['audit-access'] = _ApiClient["default"].convertToType(data['audit-access'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('gw-analytics-access')) { - obj['gw-analytics-access'] = _ApiClient["default"].convertToType(data['gw-analytics-access'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-comment')) { - obj['new-comment'] = _ApiClient["default"].convertToType(data['new-comment'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('sra-reports-access')) { - obj['sra-reports-access'] = _ApiClient["default"].convertToType(data['sra-reports-access'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateRole; -}(); -/** - * Allow this role to view analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. - * @member {String} analytics-access - */ - - -UpdateRole.prototype['analytics-access'] = undefined; -/** - * Allow this role to view audit logs. Currently only 'none', 'own' and 'all' values are supported, allowing associated auth methods to view audit logs produced by the same auth methods. - * @member {String} audit-access - */ - -UpdateRole.prototype['audit-access'] = undefined; -/** - * Description of the object - * @member {String} description - * @default 'default_comment' - */ - -UpdateRole.prototype['description'] = 'default_comment'; -/** - * Allow this role to view gw analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. - * @member {String} gw-analytics-access - */ - -UpdateRole.prototype['gw-analytics-access'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateRole.prototype['json'] = false; -/** - * Role name - * @member {String} name - */ - -UpdateRole.prototype['name'] = undefined; -/** - * Deprecated - use description - * @member {String} new-comment - * @default 'default_comment' - */ - -UpdateRole.prototype['new-comment'] = 'default_comment'; -/** - * New Role name - * @member {String} new-name - */ - -UpdateRole.prototype['new-name'] = undefined; -/** - * Allow this role to view SRA Clusters. Currently only 'none', 'own', 'all' values are supported. - * @member {String} sra-reports-access - */ - -UpdateRole.prototype['sra-reports-access'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateRole.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateRole.prototype['uid-token'] = undefined; -var _default = UpdateRole; -exports["default"] = _default; - -/***/ }), - -/***/ 99836: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateRoleOutput model module. - * @module model/UpdateRoleOutput - * @version 3.3.16 - */ -var UpdateRoleOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateRoleOutput. - * @alias module:model/UpdateRoleOutput - */ - function UpdateRoleOutput() { - _classCallCheck(this, UpdateRoleOutput); - - UpdateRoleOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateRoleOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateRoleOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRoleOutput} obj Optional instance to populate. - * @return {module:model/UpdateRoleOutput} The populated UpdateRoleOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateRoleOutput(); - - if (data.hasOwnProperty('updated')) { - obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateRoleOutput; -}(); -/** - * @member {Boolean} updated - */ - - -UpdateRoleOutput.prototype['updated'] = undefined; -var _default = UpdateRoleOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 64696: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateRotatedSecret model module. - * @module model/UpdateRotatedSecret - * @version 3.3.16 - */ -var UpdateRotatedSecret = /*#__PURE__*/function () { - /** - * Constructs a new UpdateRotatedSecret. - * updateRotatedSecret is a command that updates rotated secret. [Deprecated: Use gateway-update-item command] - * @alias module:model/UpdateRotatedSecret - * @param name {String} Secret name - */ - function UpdateRotatedSecret(name) { - _classCallCheck(this, UpdateRotatedSecret); - - UpdateRotatedSecret.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateRotatedSecret, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateRotatedSecret from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRotatedSecret} obj Optional instance to populate. - * @return {module:model/UpdateRotatedSecret} The populated UpdateRotatedSecret instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateRotatedSecret(); - - if (data.hasOwnProperty('add-tag')) { - obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); - } - - if (data.hasOwnProperty('api-id')) { - obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); - } - - if (data.hasOwnProperty('api-key')) { - obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); - } - - if (data.hasOwnProperty('auto-rotate')) { - obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); - } - - if (data.hasOwnProperty('aws-region')) { - obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); - } - - if (data.hasOwnProperty('custom-payload')) { - obj['custom-payload'] = _ApiClient["default"].convertToType(data['custom-payload'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('gcp-key')) { - obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-metadata')) { - obj['new-metadata'] = _ApiClient["default"].convertToType(data['new-metadata'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('new-version')) { - obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); - } - - if (data.hasOwnProperty('rm-tag')) { - obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); - } - - if (data.hasOwnProperty('rotate-after-disconnect')) { - obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); - } - - if (data.hasOwnProperty('rotated-password')) { - obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); - } - - if (data.hasOwnProperty('rotated-username')) { - obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); - } - - if (data.hasOwnProperty('rotation-hour')) { - obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); - } - - if (data.hasOwnProperty('rotation-interval')) { - obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); - } - - if (data.hasOwnProperty('rotator-creds-type')) { - obj['rotator-creds-type'] = _ApiClient["default"].convertToType(data['rotator-creds-type'], 'String'); - } - - if (data.hasOwnProperty('rotator-custom-cmd')) { - obj['rotator-custom-cmd'] = _ApiClient["default"].convertToType(data['rotator-custom-cmd'], 'String'); - } - - if (data.hasOwnProperty('same-password')) { - obj['same-password'] = _ApiClient["default"].convertToType(data['same-password'], 'String'); - } - - if (data.hasOwnProperty('secure-access-allow-external-user')) { - obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-aws-account-id')) { - obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); - } - - if (data.hasOwnProperty('secure-access-aws-native-cli')) { - obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-bastion-issuer')) { - obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-name')) { - obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); - } - - if (data.hasOwnProperty('secure-access-db-schema')) { - obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-rdp-domain')) { - obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); - } - - if (data.hasOwnProperty('secure-access-rdp-user')) { - obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); - } - - if (data.hasOwnProperty('secure-access-web')) { - obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-browsing')) { - obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); - } - - if (data.hasOwnProperty('secure-access-web-proxy')) { - obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); - } - - if (data.hasOwnProperty('ssh-password')) { - obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); - } - - if (data.hasOwnProperty('ssh-username')) { - obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); - } - - if (data.hasOwnProperty('storage-account-key-name')) { - obj['storage-account-key-name'] = _ApiClient["default"].convertToType(data['storage-account-key-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateRotatedSecret; -}(); -/** - * List of the new tags that will be attached to this item - * @member {Array.} add-tag - */ - - -UpdateRotatedSecret.prototype['add-tag'] = undefined; -/** - * API ID to rotate - * @member {String} api-id - */ - -UpdateRotatedSecret.prototype['api-id'] = undefined; -/** - * API key to rotate - * @member {String} api-key - */ - -UpdateRotatedSecret.prototype['api-key'] = undefined; -/** - * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] - * @member {String} auto-rotate - */ - -UpdateRotatedSecret.prototype['auto-rotate'] = undefined; -/** - * Region (used in aws) - * @member {String} aws-region - * @default 'us-east-2' - */ - -UpdateRotatedSecret.prototype['aws-region'] = 'us-east-2'; -/** - * Secret payload to be sent with rotation request (relevant only for rotator-type=custom) - * @member {String} custom-payload - */ - -UpdateRotatedSecret.prototype['custom-payload'] = undefined; -/** - * Description of the object - * @member {String} description - * @default 'default_metadata' - */ - -UpdateRotatedSecret.prototype['description'] = 'default_metadata'; -/** - * Base64-encoded service account private key text - * @member {String} gcp-key - */ - -UpdateRotatedSecret.prototype['gcp-key'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateRotatedSecret.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateRotatedSecret.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateRotatedSecret.prototype['key'] = undefined; -/** - * Secret name - * @member {String} name - */ - -UpdateRotatedSecret.prototype['name'] = undefined; -/** - * Deprecated - use description - * @member {String} new-metadata - * @default 'default_metadata' - */ - -UpdateRotatedSecret.prototype['new-metadata'] = 'default_metadata'; -/** - * New item name - * @member {String} new-name - */ - -UpdateRotatedSecret.prototype['new-name'] = undefined; -/** - * Deprecated - * @member {Boolean} new-version - */ - -UpdateRotatedSecret.prototype['new-version'] = undefined; -/** - * List of the existent tags that will be removed from this item - * @member {Array.} rm-tag - */ - -UpdateRotatedSecret.prototype['rm-tag'] = undefined; -/** - * Rotate the value of the secret after SRA session ends [true/false] - * @member {String} rotate-after-disconnect - * @default 'false' - */ - -UpdateRotatedSecret.prototype['rotate-after-disconnect'] = 'false'; -/** - * rotated-username password - * @member {String} rotated-password - */ - -UpdateRotatedSecret.prototype['rotated-password'] = undefined; -/** - * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password - * @member {String} rotated-username - */ - -UpdateRotatedSecret.prototype['rotated-username'] = undefined; -/** - * The Hour of the rotation in UTC - * @member {Number} rotation-hour - */ - -UpdateRotatedSecret.prototype['rotation-hour'] = undefined; -/** - * The number of days to wait between every automatic key rotation (7-365) - * @member {String} rotation-interval - */ - -UpdateRotatedSecret.prototype['rotation-interval'] = undefined; -/** - * The credentials to connect with use-self-creds/use-target-creds - * @member {String} rotator-creds-type - * @default 'use-self-creds' - */ - -UpdateRotatedSecret.prototype['rotator-creds-type'] = 'use-self-creds'; -/** - * \"Custom rotation command (relevant only for ssh target) - * @member {String} rotator-custom-cmd - */ - -UpdateRotatedSecret.prototype['rotator-custom-cmd'] = undefined; -/** - * Rotate same password for each host from the Linked Target (relevant only for Linked Target) - * @member {String} same-password - */ - -UpdateRotatedSecret.prototype['same-password'] = undefined; -/** - * Allow providing external user for a domain users (relevant only for rdp) - * @member {Boolean} secure-access-allow-external-user - * @default false - */ - -UpdateRotatedSecret.prototype['secure-access-allow-external-user'] = false; -/** - * The AWS account id (relevant only for aws) - * @member {String} secure-access-aws-account-id - */ - -UpdateRotatedSecret.prototype['secure-access-aws-account-id'] = undefined; -/** - * The AWS native cli - * @member {Boolean} secure-access-aws-native-cli - */ - -UpdateRotatedSecret.prototype['secure-access-aws-native-cli'] = undefined; -/** - * Path to the SSH Certificate Issuer for your Akeyless Bastion - * @member {String} secure-access-bastion-issuer - */ - -UpdateRotatedSecret.prototype['secure-access-bastion-issuer'] = undefined; -/** - * The DB name (relevant only for DB Dynamic-Secret) - * @member {String} secure-access-db-name - */ - -UpdateRotatedSecret.prototype['secure-access-db-name'] = undefined; -/** - * The db schema (relevant only for mssql or postgresql) - * @member {String} secure-access-db-schema - */ - -UpdateRotatedSecret.prototype['secure-access-db-schema'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -UpdateRotatedSecret.prototype['secure-access-enable'] = undefined; -/** - * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) - * @member {Array.} secure-access-host - */ - -UpdateRotatedSecret.prototype['secure-access-host'] = undefined; -/** - * Required when the Dynamic Secret is used for a domain user (relevant only for RDP Dynamic-Secret) - * @member {String} secure-access-rdp-domain - */ - -UpdateRotatedSecret.prototype['secure-access-rdp-domain'] = undefined; -/** - * Override the RDP Domain username (relevant only for rdp) - * @member {String} secure-access-rdp-user - */ - -UpdateRotatedSecret.prototype['secure-access-rdp-user'] = undefined; -/** - * Enable Web Secure Remote Access - * @member {Boolean} secure-access-web - * @default false - */ - -UpdateRotatedSecret.prototype['secure-access-web'] = false; -/** - * Secure browser via Akeyless Web Access Bastion (relevant only for aws or azure) - * @member {Boolean} secure-access-web-browsing - * @default false - */ - -UpdateRotatedSecret.prototype['secure-access-web-browsing'] = false; -/** - * Web-Proxy via Akeyless Web Access Bastion (relevant only for aws or azure) - * @member {Boolean} secure-access-web-proxy - * @default false - */ - -UpdateRotatedSecret.prototype['secure-access-web-proxy'] = false; -/** - * Deprecated: use RotatedPassword - * @member {String} ssh-password - */ - -UpdateRotatedSecret.prototype['ssh-password'] = undefined; -/** - * Deprecated: use RotatedUser - * @member {String} ssh-username - */ - -UpdateRotatedSecret.prototype['ssh-username'] = undefined; -/** - * The name of the storage account key to rotate [key1/key2/kerb1/kerb2] - * @member {String} storage-account-key-name - */ - -UpdateRotatedSecret.prototype['storage-account-key-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateRotatedSecret.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateRotatedSecret.prototype['uid-token'] = undefined; -var _default = UpdateRotatedSecret; -exports["default"] = _default; - -/***/ }), - -/***/ 2961: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateRotatedSecretOutput model module. - * @module model/UpdateRotatedSecretOutput - * @version 3.3.16 - */ -var UpdateRotatedSecretOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateRotatedSecretOutput. - * @alias module:model/UpdateRotatedSecretOutput - */ - function UpdateRotatedSecretOutput() { - _classCallCheck(this, UpdateRotatedSecretOutput); - - UpdateRotatedSecretOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateRotatedSecretOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateRotatedSecretOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRotatedSecretOutput} obj Optional instance to populate. - * @return {module:model/UpdateRotatedSecretOutput} The populated UpdateRotatedSecretOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateRotatedSecretOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateRotatedSecretOutput; -}(); -/** - * @member {String} name - */ - - -UpdateRotatedSecretOutput.prototype['name'] = undefined; -var _default = UpdateRotatedSecretOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 42482: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateRotationSettings model module. - * @module model/UpdateRotationSettings - * @version 3.3.16 - */ -var UpdateRotationSettings = /*#__PURE__*/function () { - /** - * Constructs a new UpdateRotationSettings. - * updateRotationSettings is a command that updates rotations settings of an existing key - * @alias module:model/UpdateRotationSettings - * @param autoRotate {Boolean} Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation - * @param name {String} Key name - */ - function UpdateRotationSettings(autoRotate, name) { - _classCallCheck(this, UpdateRotationSettings); - - UpdateRotationSettings.initialize(this, autoRotate, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateRotationSettings, null, [{ - key: "initialize", - value: function initialize(obj, autoRotate, name) { - obj['auto-rotate'] = autoRotate; - obj['name'] = name; - } - /** - * Constructs a UpdateRotationSettings from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateRotationSettings} obj Optional instance to populate. - * @return {module:model/UpdateRotationSettings} The populated UpdateRotationSettings instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateRotationSettings(); - - if (data.hasOwnProperty('auto-rotate')) { - obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'Boolean'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('rotation-interval')) { - obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'Number'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateRotationSettings; -}(); -/** - * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation - * @member {Boolean} auto-rotate - */ - - -UpdateRotationSettings.prototype['auto-rotate'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateRotationSettings.prototype['json'] = false; -/** - * Key name - * @member {String} name - */ - -UpdateRotationSettings.prototype['name'] = undefined; -/** - * The number of days to wait between every automatic key rotation (7-365) - * @member {Number} rotation-interval - */ - -UpdateRotationSettings.prototype['rotation-interval'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateRotationSettings.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateRotationSettings.prototype['uid-token'] = undefined; -var _default = UpdateRotationSettings; -exports["default"] = _default; - -/***/ }), - -/***/ 65022: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateSSHCertIssuer model module. - * @module model/UpdateSSHCertIssuer - * @version 3.3.16 - */ -var UpdateSSHCertIssuer = /*#__PURE__*/function () { - /** - * Constructs a new UpdateSSHCertIssuer. - * @alias module:model/UpdateSSHCertIssuer - * @param allowedUsers {String} Users allowed to fetch the certificate, e.g root,ubuntu - * @param name {String} SSH certificate issuer name - * @param signerKeyName {String} A key to sign the certificate with - * @param ttl {Number} The requested Time To Live for the certificate, in seconds - */ - function UpdateSSHCertIssuer(allowedUsers, name, signerKeyName, ttl) { - _classCallCheck(this, UpdateSSHCertIssuer); - - UpdateSSHCertIssuer.initialize(this, allowedUsers, name, signerKeyName, ttl); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateSSHCertIssuer, null, [{ - key: "initialize", - value: function initialize(obj, allowedUsers, name, signerKeyName, ttl) { - obj['allowed-users'] = allowedUsers; - obj['name'] = name; - obj['signer-key-name'] = signerKeyName; - obj['ttl'] = ttl; - } - /** - * Constructs a UpdateSSHCertIssuer from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSSHCertIssuer} obj Optional instance to populate. - * @return {module:model/UpdateSSHCertIssuer} The populated UpdateSSHCertIssuer instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateSSHCertIssuer(); - - if (data.hasOwnProperty('add-tag')) { - obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); - } - - if (data.hasOwnProperty('allowed-users')) { - obj['allowed-users'] = _ApiClient["default"].convertToType(data['allowed-users'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('extensions')) { - obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('principals')) { - obj['principals'] = _ApiClient["default"].convertToType(data['principals'], 'String'); - } - - if (data.hasOwnProperty('rm-tag')) { - obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); - } - - if (data.hasOwnProperty('secure-access-bastion-api')) { - obj['secure-access-bastion-api'] = _ApiClient["default"].convertToType(data['secure-access-bastion-api'], 'String'); - } - - if (data.hasOwnProperty('secure-access-bastion-ssh')) { - obj['secure-access-bastion-ssh'] = _ApiClient["default"].convertToType(data['secure-access-bastion-ssh'], 'String'); - } - - if (data.hasOwnProperty('secure-access-enable')) { - obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); - } - - if (data.hasOwnProperty('secure-access-host')) { - obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); - } - - if (data.hasOwnProperty('secure-access-ssh-creds-user')) { - obj['secure-access-ssh-creds-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds-user'], 'String'); - } - - if (data.hasOwnProperty('secure-access-use-internal-bastion')) { - obj['secure-access-use-internal-bastion'] = _ApiClient["default"].convertToType(data['secure-access-use-internal-bastion'], 'Boolean'); - } - - if (data.hasOwnProperty('signer-key-name')) { - obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('ttl')) { - obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateSSHCertIssuer; -}(); -/** - * List of the new tags that will be attached to this item - * @member {Array.} add-tag - */ - - -UpdateSSHCertIssuer.prototype['add-tag'] = undefined; -/** - * Users allowed to fetch the certificate, e.g root,ubuntu - * @member {String} allowed-users - */ - -UpdateSSHCertIssuer.prototype['allowed-users'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -UpdateSSHCertIssuer.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateSSHCertIssuer.prototype['description'] = undefined; -/** - * Signed certificates with extensions, e.g permit-port-forwarding=\\\"\\\" - * @member {Object.} extensions - */ - -UpdateSSHCertIssuer.prototype['extensions'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateSSHCertIssuer.prototype['json'] = false; -/** - * Deprecated - use description - * @member {String} metadata - */ - -UpdateSSHCertIssuer.prototype['metadata'] = undefined; -/** - * SSH certificate issuer name - * @member {String} name - */ - -UpdateSSHCertIssuer.prototype['name'] = undefined; -/** - * New item name - * @member {String} new-name - */ - -UpdateSSHCertIssuer.prototype['new-name'] = undefined; -/** - * Signed certificates with principal, e.g example_role1,example_role2 - * @member {String} principals - */ - -UpdateSSHCertIssuer.prototype['principals'] = undefined; -/** - * List of the existent tags that will be removed from this item - * @member {Array.} rm-tag - */ - -UpdateSSHCertIssuer.prototype['rm-tag'] = undefined; -/** - * Bastion's SSH control API endpoint. E.g. https://my.bastion:9900 - * @member {String} secure-access-bastion-api - */ - -UpdateSSHCertIssuer.prototype['secure-access-bastion-api'] = undefined; -/** - * Bastion's SSH server. E.g. my.bastion:22 - * @member {String} secure-access-bastion-ssh - */ - -UpdateSSHCertIssuer.prototype['secure-access-bastion-ssh'] = undefined; -/** - * Enable/Disable secure remote access [true/false] - * @member {String} secure-access-enable - */ - -UpdateSSHCertIssuer.prototype['secure-access-enable'] = undefined; -/** - * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) - * @member {Array.} secure-access-host - */ - -UpdateSSHCertIssuer.prototype['secure-access-host'] = undefined; -/** - * SSH username to connect to target server, must be in 'Allowed Users' list - * @member {String} secure-access-ssh-creds-user - */ - -UpdateSSHCertIssuer.prototype['secure-access-ssh-creds-user'] = undefined; -/** - * Use internal SSH Bastion - * @member {Boolean} secure-access-use-internal-bastion - */ - -UpdateSSHCertIssuer.prototype['secure-access-use-internal-bastion'] = undefined; -/** - * A key to sign the certificate with - * @member {String} signer-key-name - */ - -UpdateSSHCertIssuer.prototype['signer-key-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateSSHCertIssuer.prototype['token'] = undefined; -/** - * The requested Time To Live for the certificate, in seconds - * @member {Number} ttl - */ - -UpdateSSHCertIssuer.prototype['ttl'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateSSHCertIssuer.prototype['uid-token'] = undefined; -var _default = UpdateSSHCertIssuer; -exports["default"] = _default; - -/***/ }), - -/***/ 96523: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateSSHCertIssuerOutput model module. - * @module model/UpdateSSHCertIssuerOutput - * @version 3.3.16 - */ -var UpdateSSHCertIssuerOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateSSHCertIssuerOutput. - * @alias module:model/UpdateSSHCertIssuerOutput - */ - function UpdateSSHCertIssuerOutput() { - _classCallCheck(this, UpdateSSHCertIssuerOutput); - - UpdateSSHCertIssuerOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateSSHCertIssuerOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateSSHCertIssuerOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSSHCertIssuerOutput} obj Optional instance to populate. - * @return {module:model/UpdateSSHCertIssuerOutput} The populated UpdateSSHCertIssuerOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateSSHCertIssuerOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateSSHCertIssuerOutput; -}(); -/** - * @member {String} name - */ - - -UpdateSSHCertIssuerOutput.prototype['name'] = undefined; -var _default = UpdateSSHCertIssuerOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 72830: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateSSHTarget model module. - * @module model/UpdateSSHTarget - * @version 3.3.16 - */ -var UpdateSSHTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateSSHTarget. - * @alias module:model/UpdateSSHTarget - * @param name {String} Target name - */ - function UpdateSSHTarget(name) { - _classCallCheck(this, UpdateSSHTarget); - - UpdateSSHTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateSSHTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateSSHTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSSHTarget} obj Optional instance to populate. - * @return {module:model/UpdateSSHTarget} The populated UpdateSSHTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateSSHTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('private-key')) { - obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); - } - - if (data.hasOwnProperty('private-key-password')) { - obj['private-key-password'] = _ApiClient["default"].convertToType(data['private-key-password'], 'String'); - } - - if (data.hasOwnProperty('ssh-password')) { - obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); - } - - if (data.hasOwnProperty('ssh-username')) { - obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateSSHTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -UpdateSSHTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateSSHTarget.prototype['description'] = undefined; -/** - * SSH host name - * @member {String} host - */ - -UpdateSSHTarget.prototype['host'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateSSHTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateSSHTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateSSHTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateSSHTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateSSHTarget.prototype['new-name'] = undefined; -/** - * SSH port - * @member {String} port - * @default '22' - */ - -UpdateSSHTarget.prototype['port'] = '22'; -/** - * SSH private key - * @member {String} private-key - */ - -UpdateSSHTarget.prototype['private-key'] = undefined; -/** - * SSH private key password - * @member {String} private-key-password - */ - -UpdateSSHTarget.prototype['private-key-password'] = undefined; -/** - * SSH password to rotate - * @member {String} ssh-password - */ - -UpdateSSHTarget.prototype['ssh-password'] = undefined; -/** - * SSH username - * @member {String} ssh-username - */ - -UpdateSSHTarget.prototype['ssh-username'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateSSHTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateSSHTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateSSHTarget.prototype['update-version'] = undefined; -var _default = UpdateSSHTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 58790: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateSSHTargetDetails model module. - * @module model/UpdateSSHTargetDetails - * @version 3.3.16 - */ -var UpdateSSHTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new UpdateSSHTargetDetails. - * @alias module:model/UpdateSSHTargetDetails - * @param name {String} Target name - */ - function UpdateSSHTargetDetails(name) { - _classCallCheck(this, UpdateSSHTargetDetails); - - UpdateSSHTargetDetails.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateSSHTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateSSHTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSSHTargetDetails} obj Optional instance to populate. - * @return {module:model/UpdateSSHTargetDetails} The populated UpdateSSHTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateSSHTargetDetails(); - - if (data.hasOwnProperty('host')) { - obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-version')) { - obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('private-key')) { - obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); - } - - if (data.hasOwnProperty('private-key-password')) { - obj['private-key-password'] = _ApiClient["default"].convertToType(data['private-key-password'], 'String'); - } - - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); - } - - if (data.hasOwnProperty('ssh-password')) { - obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); - } - - if (data.hasOwnProperty('ssh-username')) { - obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateSSHTargetDetails; -}(); -/** - * The ssh host name - * @member {String} host - */ - - -UpdateSSHTargetDetails.prototype['host'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateSSHTargetDetails.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateSSHTargetDetails.prototype['keep-prev-version'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateSSHTargetDetails.prototype['name'] = undefined; -/** - * Deprecated - * @member {Boolean} new-version - */ - -UpdateSSHTargetDetails.prototype['new-version'] = undefined; -/** - * ssh port - * @member {String} port - * @default '22' - */ - -UpdateSSHTargetDetails.prototype['port'] = '22'; -/** - * ssh private key - * @member {String} private-key - */ - -UpdateSSHTargetDetails.prototype['private-key'] = undefined; -/** - * The ssh private key password - * @member {String} private-key-password - */ - -UpdateSSHTargetDetails.prototype['private-key-password'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key - */ - -UpdateSSHTargetDetails.prototype['protection_key'] = undefined; -/** - * ssh pawssword to rotate - * @member {String} ssh-password - */ - -UpdateSSHTargetDetails.prototype['ssh-password'] = undefined; -/** - * ssh username - * @member {String} ssh-username - */ - -UpdateSSHTargetDetails.prototype['ssh-username'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateSSHTargetDetails.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateSSHTargetDetails.prototype['uid-token'] = undefined; -var _default = UpdateSSHTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 73931: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateSSHTargetOutput model module. - * @module model/UpdateSSHTargetOutput - * @version 3.3.16 - */ -var UpdateSSHTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateSSHTargetOutput. - * @alias module:model/UpdateSSHTargetOutput - */ - function UpdateSSHTargetOutput() { - _classCallCheck(this, UpdateSSHTargetOutput); - - UpdateSSHTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateSSHTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateSSHTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSSHTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateSSHTargetOutput} The populated UpdateSSHTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateSSHTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateSSHTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateSSHTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateSSHTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 41539: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateSalesforceTarget model module. - * @module model/UpdateSalesforceTarget - * @version 3.3.16 - */ -var UpdateSalesforceTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateSalesforceTarget. - * @alias module:model/UpdateSalesforceTarget - * @param authFlow {String} type of the auth flow ('jwt' / 'user-password') - * @param clientId {String} Client ID of the oauth2 app to use for connecting to Salesforce - * @param email {String} The email of the user attached to the oauth2 app used for connecting to Salesforce - * @param name {String} Target name - * @param tenantUrl {String} Url of the Salesforce tenant - */ - function UpdateSalesforceTarget(authFlow, clientId, email, name, tenantUrl) { - _classCallCheck(this, UpdateSalesforceTarget); - - UpdateSalesforceTarget.initialize(this, authFlow, clientId, email, name, tenantUrl); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateSalesforceTarget, null, [{ - key: "initialize", - value: function initialize(obj, authFlow, clientId, email, name, tenantUrl) { - obj['auth-flow'] = authFlow; - obj['client-id'] = clientId; - obj['email'] = email; - obj['name'] = name; - obj['tenant-url'] = tenantUrl; - } - /** - * Constructs a UpdateSalesforceTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSalesforceTarget} obj Optional instance to populate. - * @return {module:model/UpdateSalesforceTarget} The populated UpdateSalesforceTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateSalesforceTarget(); - - if (data.hasOwnProperty('app-private-key-data')) { - obj['app-private-key-data'] = _ApiClient["default"].convertToType(data['app-private-key-data'], 'String'); - } - - if (data.hasOwnProperty('auth-flow')) { - obj['auth-flow'] = _ApiClient["default"].convertToType(data['auth-flow'], 'String'); - } - - if (data.hasOwnProperty('ca-cert-data')) { - obj['ca-cert-data'] = _ApiClient["default"].convertToType(data['ca-cert-data'], 'String'); - } - - if (data.hasOwnProperty('ca-cert-name')) { - obj['ca-cert-name'] = _ApiClient["default"].convertToType(data['ca-cert-name'], 'String'); - } - - if (data.hasOwnProperty('client-id')) { - obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); - } - - if (data.hasOwnProperty('client-secret')) { - obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('email')) { - obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('security-token')) { - obj['security-token'] = _ApiClient["default"].convertToType(data['security-token'], 'String'); - } - - if (data.hasOwnProperty('tenant-url')) { - obj['tenant-url'] = _ApiClient["default"].convertToType(data['tenant-url'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateSalesforceTarget; -}(); -/** - * Base64 encoded PEM of the connected app private key (relevant for JWT auth only) - * @member {String} app-private-key-data - */ - - -UpdateSalesforceTarget.prototype['app-private-key-data'] = undefined; -/** - * type of the auth flow ('jwt' / 'user-password') - * @member {String} auth-flow - */ - -UpdateSalesforceTarget.prototype['auth-flow'] = undefined; -/** - * Base64 encoded PEM cert to use when uploading a new key to Salesforce - * @member {String} ca-cert-data - */ - -UpdateSalesforceTarget.prototype['ca-cert-data'] = undefined; -/** - * name of the certificate in Salesforce tenant to use when uploading new key - * @member {String} ca-cert-name - */ - -UpdateSalesforceTarget.prototype['ca-cert-name'] = undefined; -/** - * Client ID of the oauth2 app to use for connecting to Salesforce - * @member {String} client-id - */ - -UpdateSalesforceTarget.prototype['client-id'] = undefined; -/** - * Client secret of the oauth2 app to use for connecting to Salesforce (required for password flow) - * @member {String} client-secret - */ - -UpdateSalesforceTarget.prototype['client-secret'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -UpdateSalesforceTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateSalesforceTarget.prototype['description'] = undefined; -/** - * The email of the user attached to the oauth2 app used for connecting to Salesforce - * @member {String} email - */ - -UpdateSalesforceTarget.prototype['email'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateSalesforceTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateSalesforceTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateSalesforceTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateSalesforceTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateSalesforceTarget.prototype['new-name'] = undefined; -/** - * The password of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow) - * @member {String} password - */ - -UpdateSalesforceTarget.prototype['password'] = undefined; -/** - * The security token of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow) - * @member {String} security-token - */ - -UpdateSalesforceTarget.prototype['security-token'] = undefined; -/** - * Url of the Salesforce tenant - * @member {String} tenant-url - */ - -UpdateSalesforceTarget.prototype['tenant-url'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateSalesforceTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateSalesforceTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateSalesforceTarget.prototype['update-version'] = undefined; -var _default = UpdateSalesforceTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 69266: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateSalesforceTargetOutput model module. - * @module model/UpdateSalesforceTargetOutput - * @version 3.3.16 - */ -var UpdateSalesforceTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateSalesforceTargetOutput. - * @alias module:model/UpdateSalesforceTargetOutput - */ - function UpdateSalesforceTargetOutput() { - _classCallCheck(this, UpdateSalesforceTargetOutput); - - UpdateSalesforceTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateSalesforceTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateSalesforceTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSalesforceTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateSalesforceTargetOutput} The populated UpdateSalesforceTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateSalesforceTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateSalesforceTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateSalesforceTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateSalesforceTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 89102: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateSecretVal model module. - * @module model/UpdateSecretVal - * @version 3.3.16 - */ -var UpdateSecretVal = /*#__PURE__*/function () { - /** - * Constructs a new UpdateSecretVal. - * @alias module:model/UpdateSecretVal - * @param name {String} Secret name - * @param value {String} The secret value (only relevant for type 'generic') - */ - function UpdateSecretVal(name, value) { - _classCallCheck(this, UpdateSecretVal); - - UpdateSecretVal.initialize(this, name, value); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateSecretVal, null, [{ - key: "initialize", - value: function initialize(obj, name, value) { - obj['name'] = name; - obj['value'] = value; - } - /** - * Constructs a UpdateSecretVal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSecretVal} obj Optional instance to populate. - * @return {module:model/UpdateSecretVal} The populated UpdateSecretVal instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateSecretVal(); - - if (data.hasOwnProperty('accessibility')) { - obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); - } - - if (data.hasOwnProperty('custom-field')) { - obj['custom-field'] = _ApiClient["default"].convertToType(data['custom-field'], { - 'String': 'String' - }); - } - - if (data.hasOwnProperty('inject-url')) { - obj['inject-url'] = _ApiClient["default"].convertToType(data['inject-url'], ['String']); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('multiline')) { - obj['multiline'] = _ApiClient["default"].convertToType(data['multiline'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-version')) { - obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } - - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateSecretVal; -}(); -/** - * for personal password manager - * @member {String} accessibility - * @default 'regular' - */ - - -UpdateSecretVal.prototype['accessibility'] = 'regular'; -/** - * For Password Management use, additional fields - * @member {Object.} custom-field - */ - -UpdateSecretVal.prototype['custom-field'] = undefined; -/** - * For Password Management use, reflect the website context - * @member {Array.} inject-url - */ - -UpdateSecretVal.prototype['inject-url'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateSecretVal.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateSecretVal.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateSecretVal.prototype['key'] = undefined; -/** - * The provided value is a multiline value (separated by '\\n') - * @member {Boolean} multiline - */ - -UpdateSecretVal.prototype['multiline'] = undefined; -/** - * Secret name - * @member {String} name - */ - -UpdateSecretVal.prototype['name'] = undefined; -/** - * Deprecated - * @member {Boolean} new-version - */ - -UpdateSecretVal.prototype['new-version'] = undefined; -/** - * For Password Management use, additional fields - * @member {String} password - */ - -UpdateSecretVal.prototype['password'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateSecretVal.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateSecretVal.prototype['uid-token'] = undefined; -/** - * For Password Management use - * @member {String} username - */ - -UpdateSecretVal.prototype['username'] = undefined; -/** - * The secret value (only relevant for type 'generic') - * @member {String} value - */ - -UpdateSecretVal.prototype['value'] = undefined; -var _default = UpdateSecretVal; -exports["default"] = _default; - -/***/ }), - -/***/ 30427: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateSecretValOutput model module. - * @module model/UpdateSecretValOutput - * @version 3.3.16 - */ -var UpdateSecretValOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateSecretValOutput. - * @alias module:model/UpdateSecretValOutput - */ - function UpdateSecretValOutput() { - _classCallCheck(this, UpdateSecretValOutput); - - UpdateSecretValOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateSecretValOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateSecretValOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateSecretValOutput} obj Optional instance to populate. - * @return {module:model/UpdateSecretValOutput} The populated UpdateSecretValOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateSecretValOutput(); - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateSecretValOutput; -}(); -/** - * @member {String} name - */ - - -UpdateSecretValOutput.prototype['name'] = undefined; -var _default = UpdateSecretValOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 30092: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateTarget model module. - * @module model/UpdateTarget - * @version 3.3.16 - */ -var UpdateTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateTarget. - * @alias module:model/UpdateTarget - * @param name {String} Target name - */ - function UpdateTarget(name) { - _classCallCheck(this, UpdateTarget); - - UpdateTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateTarget} obj Optional instance to populate. - * @return {module:model/UpdateTarget} The populated UpdateTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateTarget(); - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-comment')) { - obj['new-comment'] = _ApiClient["default"].convertToType(data['new-comment'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateTarget; -}(); -/** - * Description of the object - * @member {String} description - * @default 'default_comment' - */ - - -UpdateTarget.prototype['description'] = 'default_comment'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateTarget.prototype['json'] = false; -/** - * Target name - * @member {String} name - */ - -UpdateTarget.prototype['name'] = undefined; -/** - * Deprecated - use description - * @member {String} new-comment - * @default 'default_comment' - */ - -UpdateTarget.prototype['new-comment'] = 'default_comment'; -/** - * New Target name - * @member {String} new-name - */ - -UpdateTarget.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateTarget.prototype['uid-token'] = undefined; -var _default = UpdateTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 90476: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateTargetDetails model module. - * @module model/UpdateTargetDetails - * @version 3.3.16 - */ -var UpdateTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new UpdateTargetDetails. - * @alias module:model/UpdateTargetDetails - */ - function UpdateTargetDetails() { - _classCallCheck(this, UpdateTargetDetails); - - UpdateTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateTargetDetails} obj Optional instance to populate. - * @return {module:model/UpdateTargetDetails} The populated UpdateTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateTargetDetails(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateTargetDetails; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -UpdateTargetDetails.prototype['json'] = false; -var _default = UpdateTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 78669: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateTargetDetailsOutput model module. - * @module model/UpdateTargetDetailsOutput - * @version 3.3.16 - */ -var UpdateTargetDetailsOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateTargetDetailsOutput. - * @alias module:model/UpdateTargetDetailsOutput - */ - function UpdateTargetDetailsOutput() { - _classCallCheck(this, UpdateTargetDetailsOutput); - - UpdateTargetDetailsOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateTargetDetailsOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateTargetDetailsOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateTargetDetailsOutput} obj Optional instance to populate. - * @return {module:model/UpdateTargetDetailsOutput} The populated UpdateTargetDetailsOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateTargetDetailsOutput(); - - if (data.hasOwnProperty('updated')) { - obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateTargetDetailsOutput; -}(); -/** - * @member {Boolean} updated - */ - - -UpdateTargetDetailsOutput.prototype['updated'] = undefined; -var _default = UpdateTargetDetailsOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 29293: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateTargetOutput model module. - * @module model/UpdateTargetOutput - * @version 3.3.16 - */ -var UpdateTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateTargetOutput. - * @alias module:model/UpdateTargetOutput - */ - function UpdateTargetOutput() { - _classCallCheck(this, UpdateTargetOutput); - - UpdateTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateTargetOutput} The populated UpdateTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateTargetOutput(); - - if (data.hasOwnProperty('updated')) { - obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateTargetOutput; -}(); -/** - * @member {Boolean} updated - */ - - -UpdateTargetOutput.prototype['updated'] = undefined; -var _default = UpdateTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 54946: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateWebTarget model module. - * @module model/UpdateWebTarget - * @version 3.3.16 - */ -var UpdateWebTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateWebTarget. - * @alias module:model/UpdateWebTarget - * @param name {String} Target name - */ - function UpdateWebTarget(name) { - _classCallCheck(this, UpdateWebTarget); - - UpdateWebTarget.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateWebTarget, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateWebTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateWebTarget} obj Optional instance to populate. - * @return {module:model/UpdateWebTarget} The populated UpdateWebTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateWebTarget(); - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateWebTarget; -}(); -/** - * Deprecated - use description - * @member {String} comment - */ - - -UpdateWebTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateWebTarget.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateWebTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateWebTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateWebTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateWebTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateWebTarget.prototype['new-name'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateWebTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateWebTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateWebTarget.prototype['update-version'] = undefined; -/** - * The url - * @member {String} url - */ - -UpdateWebTarget.prototype['url'] = undefined; -var _default = UpdateWebTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 24642: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateWebTargetDetails model module. - * @module model/UpdateWebTargetDetails - * @version 3.3.16 - */ -var UpdateWebTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new UpdateWebTargetDetails. - * @alias module:model/UpdateWebTargetDetails - * @param name {String} Target name - */ - function UpdateWebTargetDetails(name) { - _classCallCheck(this, UpdateWebTargetDetails); - - UpdateWebTargetDetails.initialize(this, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateWebTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - /** - * Constructs a UpdateWebTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateWebTargetDetails} obj Optional instance to populate. - * @return {module:model/UpdateWebTargetDetails} The populated UpdateWebTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateWebTargetDetails(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-version')) { - obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); - } - - if (data.hasOwnProperty('protection_key')) { - obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateWebTargetDetails; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -UpdateWebTargetDetails.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateWebTargetDetails.prototype['keep-prev-version'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateWebTargetDetails.prototype['name'] = undefined; -/** - * Deprecated - * @member {Boolean} new-version - */ - -UpdateWebTargetDetails.prototype['new-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} protection_key - */ - -UpdateWebTargetDetails.prototype['protection_key'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateWebTargetDetails.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateWebTargetDetails.prototype['uid-token'] = undefined; -/** - * @member {String} url - */ - -UpdateWebTargetDetails.prototype['url'] = undefined; -var _default = UpdateWebTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 43751: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateWebTargetOutput model module. - * @module model/UpdateWebTargetOutput - * @version 3.3.16 - */ -var UpdateWebTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateWebTargetOutput. - * @alias module:model/UpdateWebTargetOutput - */ - function UpdateWebTargetOutput() { - _classCallCheck(this, UpdateWebTargetOutput); - - UpdateWebTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateWebTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateWebTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateWebTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateWebTargetOutput} The populated UpdateWebTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateWebTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateWebTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateWebTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateWebTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 39713: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateWindowsTarget model module. - * @module model/UpdateWindowsTarget - * @version 3.3.16 - */ -var UpdateWindowsTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateWindowsTarget. - * @alias module:model/UpdateWindowsTarget - * @param hostname {String} Server hostname - * @param name {String} Target name - * @param password {String} Privileged user password - * @param username {String} Privileged username - */ - function UpdateWindowsTarget(hostname, name, password, username) { - _classCallCheck(this, UpdateWindowsTarget); - - UpdateWindowsTarget.initialize(this, hostname, name, password, username); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateWindowsTarget, null, [{ - key: "initialize", - value: function initialize(obj, hostname, name, password, username) { - obj['hostname'] = hostname; - obj['name'] = name; - obj['password'] = password; - obj['username'] = username; - } - /** - * Constructs a UpdateWindowsTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateWindowsTarget} obj Optional instance to populate. - * @return {module:model/UpdateWindowsTarget} The populated UpdateWindowsTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateWindowsTarget(); - - if (data.hasOwnProperty('certificate')) { - obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('domain')) { - obj['domain'] = _ApiClient["default"].convertToType(data['domain'], 'String'); - } - - if (data.hasOwnProperty('hostname')) { - obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - - if (data.hasOwnProperty('use-tls')) { - obj['use-tls'] = _ApiClient["default"].convertToType(data['use-tls'], 'String'); - } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } - } - - return obj; - } - }]); - - return UpdateWindowsTarget; -}(); -/** - * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) - * @member {String} certificate - */ - - -UpdateWindowsTarget.prototype['certificate'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateWindowsTarget.prototype['description'] = undefined; -/** - * User domain name - * @member {String} domain - */ - -UpdateWindowsTarget.prototype['domain'] = undefined; -/** - * Server hostname - * @member {String} hostname - */ - -UpdateWindowsTarget.prototype['hostname'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateWindowsTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateWindowsTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateWindowsTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateWindowsTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateWindowsTarget.prototype['new-name'] = undefined; -/** - * Privileged user password - * @member {String} password - */ - -UpdateWindowsTarget.prototype['password'] = undefined; -/** - * Server WinRM port - * @member {String} port - * @default '5986' - */ - -UpdateWindowsTarget.prototype['port'] = '5986'; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateWindowsTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateWindowsTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateWindowsTarget.prototype['update-version'] = undefined; -/** - * Enable/Disable TLS for WinRM over HTTPS [true/false] - * @member {String} use-tls - * @default 'true' - */ - -UpdateWindowsTarget.prototype['use-tls'] = 'true'; -/** - * Privileged username - * @member {String} username - */ - -UpdateWindowsTarget.prototype['username'] = undefined; -var _default = UpdateWindowsTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 32664: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateZeroSSLTarget model module. - * @module model/UpdateZeroSSLTarget - * @version 3.3.16 - */ -var UpdateZeroSSLTarget = /*#__PURE__*/function () { - /** - * Constructs a new UpdateZeroSSLTarget. - * @alias module:model/UpdateZeroSSLTarget - * @param apiKey {String} API Key of the ZeroSSLTarget account - * @param imapFqdn {String} ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS - * @param imapPassword {String} ImapPassword to access the IMAP service - * @param imapUsername {String} ImapUsername to access the IMAP service - * @param name {String} Target name - */ - function UpdateZeroSSLTarget(apiKey, imapFqdn, imapPassword, imapUsername, name) { - _classCallCheck(this, UpdateZeroSSLTarget); - - UpdateZeroSSLTarget.initialize(this, apiKey, imapFqdn, imapPassword, imapUsername, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateZeroSSLTarget, null, [{ - key: "initialize", - value: function initialize(obj, apiKey, imapFqdn, imapPassword, imapUsername, name) { - obj['api-key'] = apiKey; - obj['imap-fqdn'] = imapFqdn; - obj['imap-password'] = imapPassword; - obj['imap-username'] = imapUsername; - obj['name'] = name; - } - /** - * Constructs a UpdateZeroSSLTarget from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateZeroSSLTarget} obj Optional instance to populate. - * @return {module:model/UpdateZeroSSLTarget} The populated UpdateZeroSSLTarget instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateZeroSSLTarget(); - - if (data.hasOwnProperty('api-key')) { - obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); - } - - if (data.hasOwnProperty('comment')) { - obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('imap-fqdn')) { - obj['imap-fqdn'] = _ApiClient["default"].convertToType(data['imap-fqdn'], 'String'); - } - - if (data.hasOwnProperty('imap-password')) { - obj['imap-password'] = _ApiClient["default"].convertToType(data['imap-password'], 'String'); - } - - if (data.hasOwnProperty('imap-port')) { - obj['imap-port'] = _ApiClient["default"].convertToType(data['imap-port'], 'String'); - } - - if (data.hasOwnProperty('imap-target-email')) { - obj['imap-target-email'] = _ApiClient["default"].convertToType(data['imap-target-email'], 'String'); - } - - if (data.hasOwnProperty('imap-username')) { - obj['imap-username'] = _ApiClient["default"].convertToType(data['imap-username'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('keep-prev-version')) { - obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); - } - - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('new-name')) { - obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); - } - - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('update-version')) { - obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); - } - } - - return obj; - } - }]); - - return UpdateZeroSSLTarget; -}(); -/** - * API Key of the ZeroSSLTarget account - * @member {String} api-key - */ - - -UpdateZeroSSLTarget.prototype['api-key'] = undefined; -/** - * Deprecated - use description - * @member {String} comment - */ - -UpdateZeroSSLTarget.prototype['comment'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UpdateZeroSSLTarget.prototype['description'] = undefined; -/** - * ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS - * @member {String} imap-fqdn - */ - -UpdateZeroSSLTarget.prototype['imap-fqdn'] = undefined; -/** - * ImapPassword to access the IMAP service - * @member {String} imap-password - */ - -UpdateZeroSSLTarget.prototype['imap-password'] = undefined; -/** - * ImapPort of the IMAP service - * @member {String} imap-port - * @default '993' - */ - -UpdateZeroSSLTarget.prototype['imap-port'] = '993'; -/** - * ImapValidationEmail to use when asking ZeroSSL to send a validation email, if empty will user imap-username - * @member {String} imap-target-email - */ - -UpdateZeroSSLTarget.prototype['imap-target-email'] = undefined; -/** - * ImapUsername to access the IMAP service - * @member {String} imap-username - */ - -UpdateZeroSSLTarget.prototype['imap-username'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UpdateZeroSSLTarget.prototype['json'] = false; -/** - * Whether to keep previous version [true/false]. If not set, use default according to account settings - * @member {String} keep-prev-version - */ - -UpdateZeroSSLTarget.prototype['keep-prev-version'] = undefined; -/** - * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) - * @member {String} key - */ - -UpdateZeroSSLTarget.prototype['key'] = undefined; -/** - * Target name - * @member {String} name - */ - -UpdateZeroSSLTarget.prototype['name'] = undefined; -/** - * New target name - * @member {String} new-name - */ - -UpdateZeroSSLTarget.prototype['new-name'] = undefined; -/** - * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. - * @member {String} timeout - * @default '5m' - */ - -UpdateZeroSSLTarget.prototype['timeout'] = '5m'; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UpdateZeroSSLTarget.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UpdateZeroSSLTarget.prototype['uid-token'] = undefined; -/** - * Deprecated - * @member {Boolean} update-version - */ - -UpdateZeroSSLTarget.prototype['update-version'] = undefined; -var _default = UpdateZeroSSLTarget; -exports["default"] = _default; - -/***/ }), - -/***/ 16401: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UpdateZeroSSLTargetOutput model module. - * @module model/UpdateZeroSSLTargetOutput - * @version 3.3.16 - */ -var UpdateZeroSSLTargetOutput = /*#__PURE__*/function () { - /** - * Constructs a new UpdateZeroSSLTargetOutput. - * @alias module:model/UpdateZeroSSLTargetOutput - */ - function UpdateZeroSSLTargetOutput() { - _classCallCheck(this, UpdateZeroSSLTargetOutput); - - UpdateZeroSSLTargetOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UpdateZeroSSLTargetOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a UpdateZeroSSLTargetOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateZeroSSLTargetOutput} obj Optional instance to populate. - * @return {module:model/UpdateZeroSSLTargetOutput} The populated UpdateZeroSSLTargetOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateZeroSSLTargetOutput(); - - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); - } - } - - return obj; - } - }]); - - return UpdateZeroSSLTargetOutput; -}(); -/** - * @member {Number} target_id - */ - - -UpdateZeroSSLTargetOutput.prototype['target_id'] = undefined; -var _default = UpdateZeroSSLTargetOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 4373: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UploadPKCS12 model module. - * @module model/UploadPKCS12 - * @version 3.3.16 - */ -var UploadPKCS12 = /*#__PURE__*/function () { - /** - * Constructs a new UploadPKCS12. - * @alias module:model/UploadPKCS12 - * @param _in {String} PKCS#12 input file (private key and certificate only) - * @param name {String} Name of key to be created - * @param passphrase {String} Passphrase to unlock the pkcs#12 bundle - */ - function UploadPKCS12(_in, name, passphrase) { - _classCallCheck(this, UploadPKCS12); - - UploadPKCS12.initialize(this, _in, name, passphrase); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UploadPKCS12, null, [{ - key: "initialize", - value: function initialize(obj, _in, name, passphrase) { - obj['in'] = _in; - obj['name'] = name; - obj['passphrase'] = passphrase; - } - /** - * Constructs a UploadPKCS12 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UploadPKCS12} obj Optional instance to populate. - * @return {module:model/UploadPKCS12} The populated UploadPKCS12 instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UploadPKCS12(); - - if (data.hasOwnProperty('customer-frg-id')) { - obj['customer-frg-id'] = _ApiClient["default"].convertToType(data['customer-frg-id'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('in')) { - obj['in'] = _ApiClient["default"].convertToType(data['in'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('passphrase')) { - obj['passphrase'] = _ApiClient["default"].convertToType(data['passphrase'], 'String'); - } - - if (data.hasOwnProperty('split-level')) { - obj['split-level'] = _ApiClient["default"].convertToType(data['split-level'], 'Number'); - } - - if (data.hasOwnProperty('tag')) { - obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UploadPKCS12; -}(); -/** - * The customer fragment ID that will be used to split the key (if empty, the key will be created independently of a customer fragment) - * @member {String} customer-frg-id - */ - - -UploadPKCS12.prototype['customer-frg-id'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -UploadPKCS12.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UploadPKCS12.prototype['description'] = undefined; -/** - * PKCS#12 input file (private key and certificate only) - * @member {String} in - */ - -UploadPKCS12.prototype['in'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UploadPKCS12.prototype['json'] = false; -/** - * Deprecated - use description - * @member {String} metadata - */ - -UploadPKCS12.prototype['metadata'] = undefined; -/** - * Name of key to be created - * @member {String} name - */ - -UploadPKCS12.prototype['name'] = undefined; -/** - * Passphrase to unlock the pkcs#12 bundle - * @member {String} passphrase - */ - -UploadPKCS12.prototype['passphrase'] = undefined; -/** - * The number of fragments that the item will be split into - * @member {Number} split-level - * @default 2 - */ - -UploadPKCS12.prototype['split-level'] = 2; -/** - * List of the tags attached to this key - * @member {Array.} tag - */ - -UploadPKCS12.prototype['tag'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UploadPKCS12.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UploadPKCS12.prototype['uid-token'] = undefined; -var _default = UploadPKCS12; -exports["default"] = _default; - -/***/ }), - -/***/ 22255: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The UploadRSA model module. - * @module model/UploadRSA - * @version 3.3.16 - */ -var UploadRSA = /*#__PURE__*/function () { - /** - * Constructs a new UploadRSA. - * @alias module:model/UploadRSA - * @param alg {String} Key type. options: [RSA1024, RSA2048, RSA3072, RSA4096] - * @param name {String} Name of key to be created - */ - function UploadRSA(alg, name) { - _classCallCheck(this, UploadRSA); - - UploadRSA.initialize(this, alg, name); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(UploadRSA, null, [{ - key: "initialize", - value: function initialize(obj, alg, name) { - obj['alg'] = alg; - obj['name'] = name; - } - /** - * Constructs a UploadRSA from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UploadRSA} obj Optional instance to populate. - * @return {module:model/UploadRSA} The populated UploadRSA instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UploadRSA(); - - if (data.hasOwnProperty('alg')) { - obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); - } - - if (data.hasOwnProperty('cert-file-data')) { - obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); - } - - if (data.hasOwnProperty('customer-frg-id')) { - obj['customer-frg-id'] = _ApiClient["default"].convertToType(data['customer-frg-id'], 'String'); - } - - if (data.hasOwnProperty('delete_protection')) { - obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); - } - - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('overwrite')) { - obj['overwrite'] = _ApiClient["default"].convertToType(data['overwrite'], 'String'); - } - - if (data.hasOwnProperty('rsa-file-data')) { - obj['rsa-file-data'] = _ApiClient["default"].convertToType(data['rsa-file-data'], 'String'); - } - - if (data.hasOwnProperty('split-level')) { - obj['split-level'] = _ApiClient["default"].convertToType(data['split-level'], 'Number'); - } - - if (data.hasOwnProperty('tag')) { - obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return UploadRSA; -}(); -/** - * Key type. options: [RSA1024, RSA2048, RSA3072, RSA4096] - * @member {String} alg - */ - - -UploadRSA.prototype['alg'] = undefined; -/** - * Certificate in a PEM format. - * @member {String} cert-file-data - */ - -UploadRSA.prototype['cert-file-data'] = undefined; -/** - * The customer fragment ID that will be used to split the key (if empty, the key will be created independently of a customer fragment) - * @member {String} customer-frg-id - */ - -UploadRSA.prototype['customer-frg-id'] = undefined; -/** - * Protection from accidental deletion of this item [true/false] - * @member {String} delete_protection - */ - -UploadRSA.prototype['delete_protection'] = undefined; -/** - * Description of the object - * @member {String} description - */ - -UploadRSA.prototype['description'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -UploadRSA.prototype['json'] = false; -/** - * Deprecated - use description - * @member {String} metadata - */ - -UploadRSA.prototype['metadata'] = undefined; -/** - * Name of key to be created - * @member {String} name - */ - -UploadRSA.prototype['name'] = undefined; -/** - * When the overwrite flag is set, this command will only update an existing key [true/false] - * @member {String} overwrite - * @default 'false' - */ - -UploadRSA.prototype['overwrite'] = 'false'; -/** - * RSA private key data, base64 encoded - * @member {String} rsa-file-data - */ - -UploadRSA.prototype['rsa-file-data'] = undefined; -/** - * The number of fragments that the item will be split into - * @member {Number} split-level - * @default 2 - */ - -UploadRSA.prototype['split-level'] = 2; -/** - * List of the tags attached to this key - * @member {Array.} tag - */ - -UploadRSA.prototype['tag'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -UploadRSA.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -UploadRSA.prototype['uid-token'] = undefined; -var _default = UploadRSA; -exports["default"] = _default; - -/***/ }), - -/***/ 62049: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ValidateToken model module. - * @module model/ValidateToken - * @version 3.3.16 - */ -var ValidateToken = /*#__PURE__*/function () { - /** - * Constructs a new ValidateToken. - * validate-token is a command that validaties token - * @alias module:model/ValidateToken - */ - function ValidateToken() { - _classCallCheck(this, ValidateToken); - - ValidateToken.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ValidateToken, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ValidateToken from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ValidateToken} obj Optional instance to populate. - * @return {module:model/ValidateToken} The populated ValidateToken instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ValidateToken(); - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - } - - return obj; - } - }]); - - return ValidateToken; -}(); -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - - -ValidateToken.prototype['json'] = false; -/** - * Token - * @member {String} token - */ - -ValidateToken.prototype['token'] = undefined; -var _default = ValidateToken; -exports["default"] = _default; - -/***/ }), - -/***/ 56148: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ValidateTokenOutput model module. - * @module model/ValidateTokenOutput - * @version 3.3.16 - */ -var ValidateTokenOutput = /*#__PURE__*/function () { - /** - * Constructs a new ValidateTokenOutput. - * @alias module:model/ValidateTokenOutput - */ - function ValidateTokenOutput() { - _classCallCheck(this, ValidateTokenOutput); - - ValidateTokenOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ValidateTokenOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ValidateTokenOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ValidateTokenOutput} obj Optional instance to populate. - * @return {module:model/ValidateTokenOutput} The populated ValidateTokenOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ValidateTokenOutput(); - - if (data.hasOwnProperty('expiration')) { - obj['expiration'] = _ApiClient["default"].convertToType(data['expiration'], 'String'); - } - - if (data.hasOwnProperty('is_valid')) { - obj['is_valid'] = _ApiClient["default"].convertToType(data['is_valid'], 'Boolean'); - } - - if (data.hasOwnProperty('reason')) { - obj['reason'] = _ApiClient["default"].convertToType(data['reason'], 'String'); - } - } - - return obj; - } - }]); - - return ValidateTokenOutput; -}(); -/** - * @member {String} expiration - */ - - -ValidateTokenOutput.prototype['expiration'] = undefined; -/** - * @member {Boolean} is_valid - */ - -ValidateTokenOutput.prototype['is_valid'] = undefined; -/** - * @member {String} reason - */ - -ValidateTokenOutput.prototype['reason'] = undefined; -var _default = ValidateTokenOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 56618: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -var _EmailTokenizerInfo = _interopRequireDefault(__nccwpck_require__(41957)); - -var _RegexpTokenizerInfo = _interopRequireDefault(__nccwpck_require__(38336)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The VaultlessTokenizerInfo model module. - * @module model/VaultlessTokenizerInfo - * @version 3.3.16 - */ -var VaultlessTokenizerInfo = /*#__PURE__*/function () { - /** - * Constructs a new VaultlessTokenizerInfo. - * @alias module:model/VaultlessTokenizerInfo - */ - function VaultlessTokenizerInfo() { - _classCallCheck(this, VaultlessTokenizerInfo); - - VaultlessTokenizerInfo.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(VaultlessTokenizerInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a VaultlessTokenizerInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/VaultlessTokenizerInfo} obj Optional instance to populate. - * @return {module:model/VaultlessTokenizerInfo} The populated VaultlessTokenizerInfo instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VaultlessTokenizerInfo(); - - if (data.hasOwnProperty('email_tokenizer_info')) { - obj['email_tokenizer_info'] = _EmailTokenizerInfo["default"].constructFromObject(data['email_tokenizer_info']); - } - - if (data.hasOwnProperty('key_name')) { - obj['key_name'] = _ApiClient["default"].convertToType(data['key_name'], 'String'); - } - - if (data.hasOwnProperty('regexp_tokenizer_info')) { - obj['regexp_tokenizer_info'] = _RegexpTokenizerInfo["default"].constructFromObject(data['regexp_tokenizer_info']); - } - - if (data.hasOwnProperty('template_type')) { - obj['template_type'] = _ApiClient["default"].convertToType(data['template_type'], 'String'); - } - - if (data.hasOwnProperty('tweak')) { - obj['tweak'] = _ApiClient["default"].convertToType(data['tweak'], 'String'); - } - - if (data.hasOwnProperty('tweak_type')) { - obj['tweak_type'] = _ApiClient["default"].convertToType(data['tweak_type'], 'String'); - } - } - - return obj; - } - }]); - - return VaultlessTokenizerInfo; -}(); -/** - * @member {module:model/EmailTokenizerInfo} email_tokenizer_info - */ - - -VaultlessTokenizerInfo.prototype['email_tokenizer_info'] = undefined; -/** - * @member {String} key_name - */ - -VaultlessTokenizerInfo.prototype['key_name'] = undefined; -/** - * @member {module:model/RegexpTokenizerInfo} regexp_tokenizer_info - */ - -VaultlessTokenizerInfo.prototype['regexp_tokenizer_info'] = undefined; -/** - * @member {String} template_type - */ - -VaultlessTokenizerInfo.prototype['template_type'] = undefined; -/** - * Tweak used in the case of internal tweak type - * @member {String} tweak - */ - -VaultlessTokenizerInfo.prototype['tweak'] = undefined; -/** - * @member {String} tweak_type - */ - -VaultlessTokenizerInfo.prototype['tweak_type'] = undefined; -var _default = VaultlessTokenizerInfo; -exports["default"] = _default; - -/***/ }), - -/***/ 17420: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The VenafiTargetDetails model module. - * @module model/VenafiTargetDetails - * @version 3.3.16 - */ -var VenafiTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new VenafiTargetDetails. - * @alias module:model/VenafiTargetDetails - */ - function VenafiTargetDetails() { - _classCallCheck(this, VenafiTargetDetails); - - VenafiTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(VenafiTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a VenafiTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/VenafiTargetDetails} obj Optional instance to populate. - * @return {module:model/VenafiTargetDetails} The populated VenafiTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VenafiTargetDetails(); - - if (data.hasOwnProperty('venafi_api_key')) { - obj['venafi_api_key'] = _ApiClient["default"].convertToType(data['venafi_api_key'], 'String'); - } - - if (data.hasOwnProperty('venafi_base_url')) { - obj['venafi_base_url'] = _ApiClient["default"].convertToType(data['venafi_base_url'], 'String'); - } - - if (data.hasOwnProperty('venafi_tpp_access_token')) { - obj['venafi_tpp_access_token'] = _ApiClient["default"].convertToType(data['venafi_tpp_access_token'], 'String'); - } - - if (data.hasOwnProperty('venafi_tpp_client_id')) { - obj['venafi_tpp_client_id'] = _ApiClient["default"].convertToType(data['venafi_tpp_client_id'], 'String'); - } - - if (data.hasOwnProperty('venafi_tpp_password')) { - obj['venafi_tpp_password'] = _ApiClient["default"].convertToType(data['venafi_tpp_password'], 'String'); - } - - if (data.hasOwnProperty('venafi_tpp_refresh_token')) { - obj['venafi_tpp_refresh_token'] = _ApiClient["default"].convertToType(data['venafi_tpp_refresh_token'], 'String'); - } - - if (data.hasOwnProperty('venafi_tpp_username')) { - obj['venafi_tpp_username'] = _ApiClient["default"].convertToType(data['venafi_tpp_username'], 'String'); - } - - if (data.hasOwnProperty('venafi_use_tpp')) { - obj['venafi_use_tpp'] = _ApiClient["default"].convertToType(data['venafi_use_tpp'], 'Boolean'); - } - - if (data.hasOwnProperty('venafi_zone')) { - obj['venafi_zone'] = _ApiClient["default"].convertToType(data['venafi_zone'], 'String'); - } - } - - return obj; - } - }]); - - return VenafiTargetDetails; -}(); -/** - * @member {String} venafi_api_key - */ - - -VenafiTargetDetails.prototype['venafi_api_key'] = undefined; -/** - * @member {String} venafi_base_url - */ - -VenafiTargetDetails.prototype['venafi_base_url'] = undefined; -/** - * @member {String} venafi_tpp_access_token - */ - -VenafiTargetDetails.prototype['venafi_tpp_access_token'] = undefined; -/** - * @member {String} venafi_tpp_client_id - */ - -VenafiTargetDetails.prototype['venafi_tpp_client_id'] = undefined; -/** - * Deprecated: VenafiAccessToken and VenafiRefreshToken should be used instead - * @member {String} venafi_tpp_password - */ - -VenafiTargetDetails.prototype['venafi_tpp_password'] = undefined; -/** - * @member {String} venafi_tpp_refresh_token - */ - -VenafiTargetDetails.prototype['venafi_tpp_refresh_token'] = undefined; -/** - * Deprecated: VenafiAccessToken and VenafiRefreshToken should be used instead - * @member {String} venafi_tpp_username - */ - -VenafiTargetDetails.prototype['venafi_tpp_username'] = undefined; -/** - * @member {Boolean} venafi_use_tpp - */ - -VenafiTargetDetails.prototype['venafi_use_tpp'] = undefined; -/** - * @member {String} venafi_zone - */ - -VenafiTargetDetails.prototype['venafi_zone'] = undefined; -var _default = VenafiTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 89370: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The VerifyDataWithClassicKey model module. - * @module model/VerifyDataWithClassicKey - * @version 3.3.16 - */ -var VerifyDataWithClassicKey = /*#__PURE__*/function () { - /** - * Constructs a new VerifyDataWithClassicKey. - * @alias module:model/VerifyDataWithClassicKey - * @param data {String} Data - * @param name {String} The name of the key to use in the verification process - * @param signature {String} The data's signature in a Base64 format. - * @param version {Number} classic key version - */ - function VerifyDataWithClassicKey(data, name, signature, version) { - _classCallCheck(this, VerifyDataWithClassicKey); - - VerifyDataWithClassicKey.initialize(this, data, name, signature, version); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(VerifyDataWithClassicKey, null, [{ - key: "initialize", - value: function initialize(obj, data, name, signature, version) { - obj['data'] = data; - obj['name'] = name; - obj['signature'] = signature; - obj['version'] = version; - } - /** - * Constructs a VerifyDataWithClassicKey from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/VerifyDataWithClassicKey} obj Optional instance to populate. - * @return {module:model/VerifyDataWithClassicKey} The populated VerifyDataWithClassicKey instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VerifyDataWithClassicKey(); - - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('hashed')) { - obj['hashed'] = _ApiClient["default"].convertToType(data['hashed'], 'Boolean'); - } - - if (data.hasOwnProperty('hashing-method')) { - obj['hashing-method'] = _ApiClient["default"].convertToType(data['hashing-method'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - - if (data.hasOwnProperty('signature')) { - obj['signature'] = _ApiClient["default"].convertToType(data['signature'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return VerifyDataWithClassicKey; -}(); -/** - * Data - * @member {String} data - */ - - -VerifyDataWithClassicKey.prototype['data'] = undefined; -/** - * The display id of the key to use in the verification process - * @member {String} display-id - */ - -VerifyDataWithClassicKey.prototype['display-id'] = undefined; -/** - * Defines whether the data should be hashed as part of the signing. If true, the data will not be hashed - * @member {Boolean} hashed - * @default false - */ - -VerifyDataWithClassicKey.prototype['hashed'] = false; -/** - * HashingMethod - * @member {String} hashing-method - * @default 'SHA256' - */ - -VerifyDataWithClassicKey.prototype['hashing-method'] = 'SHA256'; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -VerifyDataWithClassicKey.prototype['json'] = false; -/** - * The name of the key to use in the verification process - * @member {String} name - */ - -VerifyDataWithClassicKey.prototype['name'] = undefined; -/** - * The data's signature in a Base64 format. - * @member {String} signature - */ - -VerifyDataWithClassicKey.prototype['signature'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -VerifyDataWithClassicKey.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -VerifyDataWithClassicKey.prototype['uid-token'] = undefined; -/** - * classic key version - * @member {Number} version - */ - -VerifyDataWithClassicKey.prototype['version'] = undefined; -var _default = VerifyDataWithClassicKey; -exports["default"] = _default; - -/***/ }), - -/***/ 9817: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The VerifyGPG model module. - * @module model/VerifyGPG - * @version 3.3.16 - */ -var VerifyGPG = /*#__PURE__*/function () { - /** - * Constructs a new VerifyGPG. - * @alias module:model/VerifyGPG - * @param keyName {String} The name of the key to use in the encryption process - * @param signature {String} The signature to be verified in base64 format - */ - function VerifyGPG(keyName, signature) { - _classCallCheck(this, VerifyGPG); - - VerifyGPG.initialize(this, keyName, signature); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(VerifyGPG, null, [{ - key: "initialize", - value: function initialize(obj, keyName, signature) { - obj['key-name'] = keyName; - obj['signature'] = signature; - } - /** - * Constructs a VerifyGPG from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/VerifyGPG} obj Optional instance to populate. - * @return {module:model/VerifyGPG} The populated VerifyGPG instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VerifyGPG(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('passphrase')) { - obj['passphrase'] = _ApiClient["default"].convertToType(data['passphrase'], 'String'); - } - - if (data.hasOwnProperty('signature')) { - obj['signature'] = _ApiClient["default"].convertToType(data['signature'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return VerifyGPG; -}(); -/** - * The display id of the key to use in the encryption process - * @member {String} display-id - */ - - -VerifyGPG.prototype['display-id'] = undefined; -/** - * The item id of the key to use in the encryption process - * @member {Number} item-id - */ - -VerifyGPG.prototype['item-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -VerifyGPG.prototype['json'] = false; -/** - * The name of the key to use in the encryption process - * @member {String} key-name - */ - -VerifyGPG.prototype['key-name'] = undefined; -/** - * Passphrase that was used to generate the key - * @member {String} passphrase - */ - -VerifyGPG.prototype['passphrase'] = undefined; -/** - * The signature to be verified in base64 format - * @member {String} signature - */ - -VerifyGPG.prototype['signature'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -VerifyGPG.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -VerifyGPG.prototype['uid-token'] = undefined; -var _default = VerifyGPG; -exports["default"] = _default; - -/***/ }), - -/***/ 11401: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The VerifyJWTOutput model module. - * @module model/VerifyJWTOutput - * @version 3.3.16 - */ -var VerifyJWTOutput = /*#__PURE__*/function () { - /** - * Constructs a new VerifyJWTOutput. - * @alias module:model/VerifyJWTOutput - */ - function VerifyJWTOutput() { - _classCallCheck(this, VerifyJWTOutput); - - VerifyJWTOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(VerifyJWTOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a VerifyJWTOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/VerifyJWTOutput} obj Optional instance to populate. - * @return {module:model/VerifyJWTOutput} The populated VerifyJWTOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VerifyJWTOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return VerifyJWTOutput; -}(); -/** - * @member {String} result - */ - - -VerifyJWTOutput.prototype['result'] = undefined; -var _default = VerifyJWTOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 35587: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The VerifyJWTWithClassicKey model module. - * @module model/VerifyJWTWithClassicKey - * @version 3.3.16 - */ -var VerifyJWTWithClassicKey = /*#__PURE__*/function () { - /** - * Constructs a new VerifyJWTWithClassicKey. - * @alias module:model/VerifyJWTWithClassicKey - * @param displayId {String} The name of the key to use in the verify JWT process - * @param jwt {String} JWT - * @param requiredClaims {String} RequiredClaims - * @param version {Number} classic key version - */ - function VerifyJWTWithClassicKey(displayId, jwt, requiredClaims, version) { - _classCallCheck(this, VerifyJWTWithClassicKey); - - VerifyJWTWithClassicKey.initialize(this, displayId, jwt, requiredClaims, version); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(VerifyJWTWithClassicKey, null, [{ - key: "initialize", - value: function initialize(obj, displayId, jwt, requiredClaims, version) { - obj['display-id'] = displayId; - obj['jwt'] = jwt; - obj['required-claims'] = requiredClaims; - obj['version'] = version; - } - /** - * Constructs a VerifyJWTWithClassicKey from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/VerifyJWTWithClassicKey} obj Optional instance to populate. - * @return {module:model/VerifyJWTWithClassicKey} The populated VerifyJWTWithClassicKey instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VerifyJWTWithClassicKey(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('jwt')) { - obj['jwt'] = _ApiClient["default"].convertToType(data['jwt'], 'String'); - } - - if (data.hasOwnProperty('required-claims')) { - obj['required-claims'] = _ApiClient["default"].convertToType(data['required-claims'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return VerifyJWTWithClassicKey; -}(); -/** - * The name of the key to use in the verify JWT process - * @member {String} display-id - */ - - -VerifyJWTWithClassicKey.prototype['display-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -VerifyJWTWithClassicKey.prototype['json'] = false; -/** - * JWT - * @member {String} jwt - */ - -VerifyJWTWithClassicKey.prototype['jwt'] = undefined; -/** - * RequiredClaims - * @member {String} required-claims - */ - -VerifyJWTWithClassicKey.prototype['required-claims'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -VerifyJWTWithClassicKey.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -VerifyJWTWithClassicKey.prototype['uid-token'] = undefined; -/** - * classic key version - * @member {Number} version - */ - -VerifyJWTWithClassicKey.prototype['version'] = undefined; -var _default = VerifyJWTWithClassicKey; -exports["default"] = _default; - -/***/ }), - -/***/ 94187: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The VerifyPKCS1 model module. - * @module model/VerifyPKCS1 - * @version 3.3.16 - */ -var VerifyPKCS1 = /*#__PURE__*/function () { - /** - * Constructs a new VerifyPKCS1. - * @alias module:model/VerifyPKCS1 - * @param keyName {String} The name of the RSA key to use in the verification process - * @param message {String} The message to be verified - * @param signature {String} The message's signature - */ - function VerifyPKCS1(keyName, message, signature) { - _classCallCheck(this, VerifyPKCS1); - - VerifyPKCS1.initialize(this, keyName, message, signature); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(VerifyPKCS1, null, [{ - key: "initialize", - value: function initialize(obj, keyName, message, signature) { - obj['key-name'] = keyName; - obj['message'] = message; - obj['signature'] = signature; - } - /** - * Constructs a VerifyPKCS1 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/VerifyPKCS1} obj Optional instance to populate. - * @return {module:model/VerifyPKCS1} The populated VerifyPKCS1 instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VerifyPKCS1(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('item-id')) { - obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('key-name')) { - obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); - } - - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - - if (data.hasOwnProperty('signature')) { - obj['signature'] = _ApiClient["default"].convertToType(data['signature'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - } - - return obj; - } - }]); - - return VerifyPKCS1; -}(); -/** - * The display id of the key to use in the verification process - * @member {String} display-id - */ - - -VerifyPKCS1.prototype['display-id'] = undefined; -/** - * The item id of the key to use in the verification process - * @member {Number} item-id - */ - -VerifyPKCS1.prototype['item-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -VerifyPKCS1.prototype['json'] = false; -/** - * The name of the RSA key to use in the verification process - * @member {String} key-name - */ - -VerifyPKCS1.prototype['key-name'] = undefined; -/** - * The message to be verified - * @member {String} message - */ - -VerifyPKCS1.prototype['message'] = undefined; -/** - * The message's signature - * @member {String} signature - */ - -VerifyPKCS1.prototype['signature'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -VerifyPKCS1.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -VerifyPKCS1.prototype['uid-token'] = undefined; -var _default = VerifyPKCS1; -exports["default"] = _default; - -/***/ }), - -/***/ 9610: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The VerifyPKICertOutput model module. - * @module model/VerifyPKICertOutput - * @version 3.3.16 - */ -var VerifyPKICertOutput = /*#__PURE__*/function () { - /** - * Constructs a new VerifyPKICertOutput. - * @alias module:model/VerifyPKICertOutput - */ - function VerifyPKICertOutput() { - _classCallCheck(this, VerifyPKICertOutput); - - VerifyPKICertOutput.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(VerifyPKICertOutput, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a VerifyPKICertOutput from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/VerifyPKICertOutput} obj Optional instance to populate. - * @return {module:model/VerifyPKICertOutput} The populated VerifyPKICertOutput instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VerifyPKICertOutput(); - - if (data.hasOwnProperty('result')) { - obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); - } - } - - return obj; - } - }]); - - return VerifyPKICertOutput; -}(); -/** - * @member {String} result - */ - - -VerifyPKICertOutput.prototype['result'] = undefined; -var _default = VerifyPKICertOutput; -exports["default"] = _default; - -/***/ }), - -/***/ 1456: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The VerifyPKICertWithClassicKey model module. - * @module model/VerifyPKICertWithClassicKey - * @version 3.3.16 - */ -var VerifyPKICertWithClassicKey = /*#__PURE__*/function () { - /** - * Constructs a new VerifyPKICertWithClassicKey. - * @alias module:model/VerifyPKICertWithClassicKey - * @param displayId {String} The name of the key to use in the verify PKICert process - * @param pkiCert {String} PkiCert - * @param version {Number} classic key version - */ - function VerifyPKICertWithClassicKey(displayId, pkiCert, version) { - _classCallCheck(this, VerifyPKICertWithClassicKey); - - VerifyPKICertWithClassicKey.initialize(this, displayId, pkiCert, version); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(VerifyPKICertWithClassicKey, null, [{ - key: "initialize", - value: function initialize(obj, displayId, pkiCert, version) { - obj['display-id'] = displayId; - obj['pki-cert'] = pkiCert; - obj['version'] = version; - } - /** - * Constructs a VerifyPKICertWithClassicKey from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/VerifyPKICertWithClassicKey} obj Optional instance to populate. - * @return {module:model/VerifyPKICertWithClassicKey} The populated VerifyPKICertWithClassicKey instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VerifyPKICertWithClassicKey(); - - if (data.hasOwnProperty('display-id')) { - obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); - } - - if (data.hasOwnProperty('json')) { - obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); - } - - if (data.hasOwnProperty('pki-cert')) { - obj['pki-cert'] = _ApiClient["default"].convertToType(data['pki-cert'], 'String'); - } - - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - - if (data.hasOwnProperty('uid-token')) { - obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); - } - - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); - } - } - - return obj; - } - }]); - - return VerifyPKICertWithClassicKey; -}(); -/** - * The name of the key to use in the verify PKICert process - * @member {String} display-id - */ - - -VerifyPKICertWithClassicKey.prototype['display-id'] = undefined; -/** - * Set output format to JSON - * @member {Boolean} json - * @default false - */ - -VerifyPKICertWithClassicKey.prototype['json'] = false; -/** - * PkiCert - * @member {String} pki-cert - */ - -VerifyPKICertWithClassicKey.prototype['pki-cert'] = undefined; -/** - * Authentication token (see `/auth` and `/configure`) - * @member {String} token - */ - -VerifyPKICertWithClassicKey.prototype['token'] = undefined; -/** - * The universal identity token, Required only for universal_identity authentication - * @member {String} uid-token - */ - -VerifyPKICertWithClassicKey.prototype['uid-token'] = undefined; -/** - * classic key version - * @member {Number} version - */ - -VerifyPKICertWithClassicKey.prototype['version'] = undefined; -var _default = VerifyPKICertWithClassicKey; -exports["default"] = _default; - -/***/ }), - -/***/ 99871: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The WebTargetDetails model module. - * @module model/WebTargetDetails - * @version 3.3.16 - */ -var WebTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new WebTargetDetails. - * @alias module:model/WebTargetDetails - */ - function WebTargetDetails() { - _classCallCheck(this, WebTargetDetails); - - WebTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(WebTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a WebTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/WebTargetDetails} obj Optional instance to populate. - * @return {module:model/WebTargetDetails} The populated WebTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new WebTargetDetails(); - - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - } - - return obj; - } - }]); - - return WebTargetDetails; -}(); -/** - * @member {String} url - */ - - -WebTargetDetails.prototype['url'] = undefined; -var _default = WebTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 70614: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The WindowsTargetDetails model module. - * @module model/WindowsTargetDetails - * @version 3.3.16 - */ -var WindowsTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new WindowsTargetDetails. - * WindowsTargetDetails - * @alias module:model/WindowsTargetDetails - */ - function WindowsTargetDetails() { - _classCallCheck(this, WindowsTargetDetails); - - WindowsTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(WindowsTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a WindowsTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/WindowsTargetDetails} obj Optional instance to populate. - * @return {module:model/WindowsTargetDetails} The populated WindowsTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new WindowsTargetDetails(); - - if (data.hasOwnProperty('certificate')) { - obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); - } - - if (data.hasOwnProperty('domain_name')) { - obj['domain_name'] = _ApiClient["default"].convertToType(data['domain_name'], 'String'); - } - - if (data.hasOwnProperty('hostname')) { - obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); - } - - if (data.hasOwnProperty('password')) { - obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); - } - - if (data.hasOwnProperty('port')) { - obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); - } - - if (data.hasOwnProperty('use_tls')) { - obj['use_tls'] = _ApiClient["default"].convertToType(data['use_tls'], 'Boolean'); - } - - if (data.hasOwnProperty('username')) { - obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); - } - } - - return obj; - } - }]); - - return WindowsTargetDetails; -}(); -/** - * @member {String} certificate - */ - - -WindowsTargetDetails.prototype['certificate'] = undefined; -/** - * @member {String} domain_name - */ - -WindowsTargetDetails.prototype['domain_name'] = undefined; -/** - * @member {String} hostname - */ - -WindowsTargetDetails.prototype['hostname'] = undefined; -/** - * @member {String} password - */ - -WindowsTargetDetails.prototype['password'] = undefined; -/** - * @member {String} port - */ - -WindowsTargetDetails.prototype['port'] = undefined; -/** - * @member {Boolean} use_tls - */ - -WindowsTargetDetails.prototype['use_tls'] = undefined; -/** - * @member {String} username - */ - -WindowsTargetDetails.prototype['username'] = undefined; -var _default = WindowsTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 57621: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * The ZeroSSLTargetDetails model module. - * @module model/ZeroSSLTargetDetails - * @version 3.3.16 - */ -var ZeroSSLTargetDetails = /*#__PURE__*/function () { - /** - * Constructs a new ZeroSSLTargetDetails. - * ZeroSSLTargetDetails - * @alias module:model/ZeroSSLTargetDetails - */ - function ZeroSSLTargetDetails() { - _classCallCheck(this, ZeroSSLTargetDetails); - - ZeroSSLTargetDetails.initialize(this); - } - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - - - _createClass(ZeroSSLTargetDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - /** - * Constructs a ZeroSSLTargetDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ZeroSSLTargetDetails} obj Optional instance to populate. - * @return {module:model/ZeroSSLTargetDetails} The populated ZeroSSLTargetDetails instance. - */ - - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ZeroSSLTargetDetails(); - - if (data.hasOwnProperty('api_key')) { - obj['api_key'] = _ApiClient["default"].convertToType(data['api_key'], 'String'); - } - - if (data.hasOwnProperty('imap_fqdn')) { - obj['imap_fqdn'] = _ApiClient["default"].convertToType(data['imap_fqdn'], 'String'); - } - - if (data.hasOwnProperty('imap_password')) { - obj['imap_password'] = _ApiClient["default"].convertToType(data['imap_password'], 'String'); - } - - if (data.hasOwnProperty('imap_port')) { - obj['imap_port'] = _ApiClient["default"].convertToType(data['imap_port'], 'String'); - } - - if (data.hasOwnProperty('imap_user')) { - obj['imap_user'] = _ApiClient["default"].convertToType(data['imap_user'], 'String'); - } - - if (data.hasOwnProperty('timeout')) { - obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); - } - - if (data.hasOwnProperty('validation_email')) { - obj['validation_email'] = _ApiClient["default"].convertToType(data['validation_email'], 'String'); - } - } - - return obj; - } - }]); - - return ZeroSSLTargetDetails; -}(); -/** - * @member {String} api_key - */ - - -ZeroSSLTargetDetails.prototype['api_key'] = undefined; -/** - * @member {String} imap_fqdn - */ - -ZeroSSLTargetDetails.prototype['imap_fqdn'] = undefined; -/** - * @member {String} imap_password - */ - -ZeroSSLTargetDetails.prototype['imap_password'] = undefined; -/** - * @member {String} imap_port - */ - -ZeroSSLTargetDetails.prototype['imap_port'] = undefined; -/** - * @member {String} imap_user - */ - -ZeroSSLTargetDetails.prototype['imap_user'] = undefined; -/** - * A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. - * @member {Number} timeout - */ - -ZeroSSLTargetDetails.prototype['timeout'] = undefined; -/** - * @member {String} validation_email - */ - -ZeroSSLTargetDetails.prototype['validation_email'] = undefined; -var _default = ZeroSSLTargetDetails; -exports["default"] = _default; - -/***/ }), - -/***/ 26251: -/***/ ((module) => { - -"use strict"; - - -const arrify = value => { - if (value === null || value === undefined) { - return []; - } - - if (Array.isArray(value)) { - return value; - } - - if (typeof value === 'string') { - return [value]; - } - - if (typeof value[Symbol.iterator] === 'function') { - return [...value]; - } - - return [value]; -}; - -module.exports = arrify; - - -/***/ }), - -/***/ 31324: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -module.exports = -{ - parallel : __nccwpck_require__(83857), - serial : __nccwpck_require__(31054), - serialOrdered : __nccwpck_require__(53961) -}; - - -/***/ }), - -/***/ 24818: -/***/ ((module) => { - -// API -module.exports = abort; - -/** - * Aborts leftover active jobs - * - * @param {object} state - current state object - */ -function abort(state) -{ - Object.keys(state.jobs).forEach(clean.bind(state)); - - // reset leftover jobs - state.jobs = {}; -} - -/** - * Cleans up leftover job by invoking abort function for the provided job id - * - * @this state - * @param {string|number} key - job id to abort - */ -function clean(key) -{ - if (typeof this.jobs[key] == 'function') - { - this.jobs[key](); - } -} - - -/***/ }), - -/***/ 78452: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var defer = __nccwpck_require__(29200); - -// API -module.exports = async; - -/** - * Runs provided callback asynchronously - * even if callback itself is not - * - * @param {function} callback - callback to invoke - * @returns {function} - augmented callback - */ -function async(callback) -{ - var isAsync = false; - - // check if async happened - defer(function() { isAsync = true; }); - - return function async_callback(err, result) - { - if (isAsync) - { - callback(err, result); - } - else - { - defer(function nextTick_callback() - { - callback(err, result); - }); - } - }; -} - - -/***/ }), - -/***/ 29200: -/***/ ((module) => { - -module.exports = defer; - -/** - * Runs provided function on next iteration of the event loop - * - * @param {function} fn - function to run - */ -function defer(fn) -{ - var nextTick = typeof setImmediate == 'function' - ? setImmediate - : ( - typeof process == 'object' && typeof process.nextTick == 'function' - ? process.nextTick - : null - ); - - if (nextTick) - { - nextTick(fn); - } - else - { - setTimeout(fn, 0); - } -} - - -/***/ }), - -/***/ 24902: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var async = __nccwpck_require__(78452) - , abort = __nccwpck_require__(24818) - ; - -// API -module.exports = iterate; - -/** - * Iterates over each job object - * - * @param {array|object} list - array or object (named list) to iterate over - * @param {function} iterator - iterator to run - * @param {object} state - current job status - * @param {function} callback - invoked when all elements processed - */ -function iterate(list, iterator, state, callback) -{ - // store current index - var key = state['keyedList'] ? state['keyedList'][state.index] : state.index; - - state.jobs[key] = runJob(iterator, key, list[key], function(error, output) - { - // don't repeat yourself - // skip secondary callbacks - if (!(key in state.jobs)) - { - return; - } - - // clean up jobs - delete state.jobs[key]; - - if (error) - { - // don't process rest of the results - // stop still active jobs - // and reset the list - abort(state); - } - else - { - state.results[key] = output; - } - - // return salvaged results - callback(error, state.results); - }); -} - -/** - * Runs iterator over provided job element - * - * @param {function} iterator - iterator to invoke - * @param {string|number} key - key/index of the element in the list of jobs - * @param {mixed} item - job description - * @param {function} callback - invoked after iterator is done with the job - * @returns {function|mixed} - job abort function or something else - */ -function runJob(iterator, key, item, callback) -{ - var aborter; - - // allow shortcut if iterator expects only two arguments - if (iterator.length == 2) - { - aborter = iterator(item, async(callback)); - } - // otherwise go with full three arguments - else - { - aborter = iterator(item, key, async(callback)); - } - - return aborter; -} - - -/***/ }), - -/***/ 81721: -/***/ ((module) => { - -// API -module.exports = state; - -/** - * Creates initial state object - * for iteration over list - * - * @param {array|object} list - list to iterate over - * @param {function|null} sortMethod - function to use for keys sort, - * or `null` to keep them as is - * @returns {object} - initial state object - */ -function state(list, sortMethod) -{ - var isNamedList = !Array.isArray(list) - , initState = - { - index : 0, - keyedList: isNamedList || sortMethod ? Object.keys(list) : null, - jobs : {}, - results : isNamedList ? {} : [], - size : isNamedList ? Object.keys(list).length : list.length - } - ; - - if (sortMethod) - { - // sort array keys based on it's values - // sort object's keys just on own merit - initState.keyedList.sort(isNamedList ? sortMethod : function(a, b) - { - return sortMethod(list[a], list[b]); - }); - } - - return initState; -} - - -/***/ }), - -/***/ 33351: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var abort = __nccwpck_require__(24818) - , async = __nccwpck_require__(78452) - ; - -// API -module.exports = terminator; - -/** - * Terminates jobs in the attached state context - * - * @this AsyncKitState# - * @param {function} callback - final callback to invoke after termination - */ -function terminator(callback) -{ - if (!Object.keys(this.jobs).length) - { - return; - } - - // fast forward iteration index - this.index = this.size; - - // abort jobs - abort(this); - - // send back results we have so far - async(callback)(null, this.results); -} - - -/***/ }), - -/***/ 83857: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var iterate = __nccwpck_require__(24902) - , initState = __nccwpck_require__(81721) - , terminator = __nccwpck_require__(33351) - ; - -// Public API -module.exports = parallel; - -/** - * Runs iterator over provided array elements in parallel - * - * @param {array|object} list - array or object (named list) to iterate over - * @param {function} iterator - iterator to run - * @param {function} callback - invoked when all elements processed - * @returns {function} - jobs terminator - */ -function parallel(list, iterator, callback) -{ - var state = initState(list); - - while (state.index < (state['keyedList'] || list).length) - { - iterate(list, iterator, state, function(error, result) - { - if (error) - { - callback(error, result); - return; - } - - // looks like it's the last one - if (Object.keys(state.jobs).length === 0) - { - callback(null, state.results); - return; - } - }); - - state.index++; - } - - return terminator.bind(state, callback); -} - - -/***/ }), - -/***/ 31054: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var serialOrdered = __nccwpck_require__(53961); - -// Public API -module.exports = serial; - -/** - * Runs iterator over provided array elements in series - * - * @param {array|object} list - array or object (named list) to iterate over - * @param {function} iterator - iterator to run - * @param {function} callback - invoked when all elements processed - * @returns {function} - jobs terminator - */ -function serial(list, iterator, callback) -{ - return serialOrdered(list, iterator, null, callback); -} - - -/***/ }), - -/***/ 53961: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var iterate = __nccwpck_require__(24902) - , initState = __nccwpck_require__(81721) - , terminator = __nccwpck_require__(33351) - ; - -// Public API -module.exports = serialOrdered; -// sorting helpers -module.exports.ascending = ascending; -module.exports.descending = descending; - -/** - * Runs iterator over provided sorted array elements in series - * - * @param {array|object} list - array or object (named list) to iterate over - * @param {function} iterator - iterator to run - * @param {function} sortMethod - custom sort function - * @param {function} callback - invoked when all elements processed - * @returns {function} - jobs terminator - */ -function serialOrdered(list, iterator, sortMethod, callback) -{ - var state = initState(list, sortMethod); - - iterate(list, iterator, state, function iteratorHandler(error, result) - { - if (error) - { - callback(error, result); - return; - } - - state.index++; - - // are we there yet? - if (state.index < (state['keyedList'] || list).length) - { - iterate(list, iterator, state, iteratorHandler); - return; - } - - // done here - callback(null, state.results); - }); - - return terminator.bind(state, callback); -} - -/* - * -- Sort methods - */ - -/** - * sort helper to sort array elements in ascending order - * - * @param {mixed} a - an item to compare - * @param {mixed} b - an item to compare - * @returns {number} - comparison result - */ -function ascending(a, b) -{ - return a < b ? -1 : a > b ? 1 : 0; -} - -/** - * sort helper to sort array elements in descending order - * - * @param {mixed} a - an item to compare - * @param {mixed} b - an item to compare - * @returns {number} - comparison result - */ -function descending(a, b) -{ - return -1 * ascending(a, b); -} - - -/***/ }), - -/***/ 29711: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['accessanalyzer'] = {}; -AWS.AccessAnalyzer = Service.defineService('accessanalyzer', ['2019-11-01']); -Object.defineProperty(apiLoader.services['accessanalyzer'], '2019-11-01', { - get: function get() { - var model = __nccwpck_require__(80204); - model.paginators = (__nccwpck_require__(88104)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AccessAnalyzer; - - -/***/ }), - -/***/ 63604: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['account'] = {}; -AWS.Account = Service.defineService('account', ['2021-02-01']); -Object.defineProperty(apiLoader.services['account'], '2021-02-01', { - get: function get() { - var model = __nccwpck_require__(1746); - model.paginators = (__nccwpck_require__(28434)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Account; - - -/***/ }), - -/***/ 10996: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['acm'] = {}; -AWS.ACM = Service.defineService('acm', ['2015-12-08']); -Object.defineProperty(apiLoader.services['acm'], '2015-12-08', { - get: function get() { - var model = __nccwpck_require__(17145); - model.paginators = (__nccwpck_require__(92483)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(24800)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ACM; - - -/***/ }), - -/***/ 87850: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['acmpca'] = {}; -AWS.ACMPCA = Service.defineService('acmpca', ['2017-08-22']); -Object.defineProperty(apiLoader.services['acmpca'], '2017-08-22', { - get: function get() { - var model = __nccwpck_require__(62337); - model.paginators = (__nccwpck_require__(10011)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(58232)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ACMPCA; - - -/***/ }), - -/***/ 91984: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -module.exports = { - ACM: __nccwpck_require__(10996), - APIGateway: __nccwpck_require__(31961), - ApplicationAutoScaling: __nccwpck_require__(72313), - AppStream: __nccwpck_require__(79208), - AutoScaling: __nccwpck_require__(60887), - Batch: __nccwpck_require__(30807), - Budgets: __nccwpck_require__(11649), - CloudDirectory: __nccwpck_require__(80563), - CloudFormation: __nccwpck_require__(79599), - CloudFront: __nccwpck_require__(44323), - CloudHSM: __nccwpck_require__(75940), - CloudSearch: __nccwpck_require__(27518), - CloudSearchDomain: __nccwpck_require__(97186), - CloudTrail: __nccwpck_require__(48372), - CloudWatch: __nccwpck_require__(52083), - CloudWatchEvents: __nccwpck_require__(22766), - CloudWatchLogs: __nccwpck_require__(48220), - CodeBuild: __nccwpck_require__(25200), - CodeCommit: __nccwpck_require__(71035), - CodeDeploy: __nccwpck_require__(9601), - CodePipeline: __nccwpck_require__(43376), - CognitoIdentity: __nccwpck_require__(74566), - CognitoIdentityServiceProvider: __nccwpck_require__(67386), - CognitoSync: __nccwpck_require__(74851), - ConfigService: __nccwpck_require__(80118), - CUR: __nccwpck_require__(37797), - DataPipeline: __nccwpck_require__(56081), - DeviceFarm: __nccwpck_require__(9369), - DirectConnect: __nccwpck_require__(11742), - DirectoryService: __nccwpck_require__(91225), - Discovery: __nccwpck_require__(14701), - DMS: __nccwpck_require__(36951), - DynamoDB: __nccwpck_require__(86639), - DynamoDBStreams: __nccwpck_require__(23810), - EC2: __nccwpck_require__(36645), - ECR: __nccwpck_require__(95045), - ECS: __nccwpck_require__(10950), - EFS: __nccwpck_require__(98607), - ElastiCache: __nccwpck_require__(47063), - ElasticBeanstalk: __nccwpck_require__(19083), - ELB: __nccwpck_require__(67202), - ELBv2: __nccwpck_require__(67350), - EMR: __nccwpck_require__(57387), - ES: __nccwpck_require__(38067), - ElasticTranscoder: __nccwpck_require__(7843), - Firehose: __nccwpck_require__(81106), - GameLift: __nccwpck_require__(6272), - Glacier: __nccwpck_require__(40369), - Health: __nccwpck_require__(27433), - IAM: __nccwpck_require__(25650), - ImportExport: __nccwpck_require__(63376), - Inspector: __nccwpck_require__(27066), - Iot: __nccwpck_require__(43791), - IotData: __nccwpck_require__(7863), - Kinesis: __nccwpck_require__(86553), - KinesisAnalytics: __nccwpck_require__(87825), - KMS: __nccwpck_require__(5926), - Lambda: __nccwpck_require__(55256), - LexRuntime: __nccwpck_require__(25852), - Lightsail: __nccwpck_require__(25930), - MachineLearning: __nccwpck_require__(68904), - MarketplaceCommerceAnalytics: __nccwpck_require__(95903), - MarketplaceMetering: __nccwpck_require__(50375), - MTurk: __nccwpck_require__(25776), - MobileAnalytics: __nccwpck_require__(52917), - OpsWorks: __nccwpck_require__(80049), - OpsWorksCM: __nccwpck_require__(31881), - Organizations: __nccwpck_require__(7299), - Pinpoint: __nccwpck_require__(50436), - Polly: __nccwpck_require__(3027), - RDS: __nccwpck_require__(59132), - Redshift: __nccwpck_require__(23310), - Rekognition: __nccwpck_require__(36228), - ResourceGroupsTaggingAPI: __nccwpck_require__(19998), - Route53: __nccwpck_require__(29386), - Route53Domains: __nccwpck_require__(88933), - S3: __nccwpck_require__(67545), - S3Control: __nccwpck_require__(18776), - ServiceCatalog: __nccwpck_require__(45505), - SES: __nccwpck_require__(4774), - Shield: __nccwpck_require__(47674), - SimpleDB: __nccwpck_require__(87303), - SMS: __nccwpck_require__(99486), - Snowball: __nccwpck_require__(77393), - SNS: __nccwpck_require__(94149), - SQS: __nccwpck_require__(55362), - SSM: __nccwpck_require__(82898), - StorageGateway: __nccwpck_require__(34926), - StepFunctions: __nccwpck_require__(69508), - STS: __nccwpck_require__(98595), - Support: __nccwpck_require__(83908), - SWF: __nccwpck_require__(51843), - XRay: __nccwpck_require__(35747), - WAF: __nccwpck_require__(67249), - WAFRegional: __nccwpck_require__(43892), - WorkDocs: __nccwpck_require__(20253), - WorkSpaces: __nccwpck_require__(5973), - LexModelBuildingService: __nccwpck_require__(78610), - MarketplaceEntitlementService: __nccwpck_require__(57794), - Athena: __nccwpck_require__(37384), - Greengrass: __nccwpck_require__(66228), - DAX: __nccwpck_require__(81614), - MigrationHub: __nccwpck_require__(48568), - CloudHSMV2: __nccwpck_require__(32112), - Glue: __nccwpck_require__(55294), - Pricing: __nccwpck_require__(78025), - CostExplorer: __nccwpck_require__(23322), - MediaConvert: __nccwpck_require__(87835), - MediaLive: __nccwpck_require__(54817), - MediaPackage: __nccwpck_require__(3003), - MediaStore: __nccwpck_require__(22454), - MediaStoreData: __nccwpck_require__(76070), - AppSync: __nccwpck_require__(24435), - GuardDuty: __nccwpck_require__(73986), - MQ: __nccwpck_require__(60749), - Comprehend: __nccwpck_require__(36668), - IoTJobsDataPlane: __nccwpck_require__(85077), - KinesisVideoArchivedMedia: __nccwpck_require__(16142), - KinesisVideoMedia: __nccwpck_require__(93464), - KinesisVideo: __nccwpck_require__(58726), - SageMakerRuntime: __nccwpck_require__(10579), - SageMaker: __nccwpck_require__(94455), - Translate: __nccwpck_require__(75121), - ResourceGroups: __nccwpck_require__(35019), - Cloud9: __nccwpck_require__(29527), - ServerlessApplicationRepository: __nccwpck_require__(70439), - ServiceDiscovery: __nccwpck_require__(15240), - WorkMail: __nccwpck_require__(75217), - AutoScalingPlans: __nccwpck_require__(79327), - TranscribeService: __nccwpck_require__(82561), - Connect: __nccwpck_require__(21025), - ACMPCA: __nccwpck_require__(87850), - FMS: __nccwpck_require__(33685), - SecretsManager: __nccwpck_require__(29667), - IoTAnalytics: __nccwpck_require__(25143), - IoT1ClickDevicesService: __nccwpck_require__(27976), - IoT1ClickProjects: __nccwpck_require__(97972), - PI: __nccwpck_require__(80736), - Neptune: __nccwpck_require__(99442), - MediaTailor: __nccwpck_require__(38184), - EKS: __nccwpck_require__(43358), - DLM: __nccwpck_require__(65332), - Signer: __nccwpck_require__(85925), - Chime: __nccwpck_require__(30243), - PinpointEmail: __nccwpck_require__(83750), - RAM: __nccwpck_require__(29607), - Route53Resolver: __nccwpck_require__(79772), - PinpointSMSVoice: __nccwpck_require__(58429), - QuickSight: __nccwpck_require__(2747), - RDSDataService: __nccwpck_require__(44765), - Amplify: __nccwpck_require__(96519), - DataSync: __nccwpck_require__(10000), - RoboMaker: __nccwpck_require__(14027), - Transfer: __nccwpck_require__(77384), - GlobalAccelerator: __nccwpck_require__(70969), - ComprehendMedical: __nccwpck_require__(22489), - KinesisAnalyticsV2: __nccwpck_require__(51737), - MediaConnect: __nccwpck_require__(42141), - FSx: __nccwpck_require__(9914), - SecurityHub: __nccwpck_require__(13286), - AppMesh: __nccwpck_require__(84737), - LicenseManager: __nccwpck_require__(18789), - Kafka: __nccwpck_require__(97385), - ApiGatewayManagementApi: __nccwpck_require__(85404), - ApiGatewayV2: __nccwpck_require__(10081), - DocDB: __nccwpck_require__(50043), - Backup: __nccwpck_require__(24465), - WorkLink: __nccwpck_require__(21482), - Textract: __nccwpck_require__(15918), - ManagedBlockchain: __nccwpck_require__(31016), - MediaPackageVod: __nccwpck_require__(81230), - GroundStation: __nccwpck_require__(45562), - IoTThingsGraph: __nccwpck_require__(87860), - IoTEvents: __nccwpck_require__(31186), - IoTEventsData: __nccwpck_require__(93298), - Personalize: __nccwpck_require__(28245), - PersonalizeEvents: __nccwpck_require__(53660), - PersonalizeRuntime: __nccwpck_require__(89949), - ApplicationInsights: __nccwpck_require__(60360), - ServiceQuotas: __nccwpck_require__(33393), - EC2InstanceConnect: __nccwpck_require__(74362), - EventBridge: __nccwpck_require__(88614), - LakeFormation: __nccwpck_require__(1549), - ForecastService: __nccwpck_require__(93307), - ForecastQueryService: __nccwpck_require__(6681), - QLDB: __nccwpck_require__(62640), - QLDBSession: __nccwpck_require__(41398), - WorkMailMessageFlow: __nccwpck_require__(77902), - CodeStarNotifications: __nccwpck_require__(84832), - SavingsPlans: __nccwpck_require__(50725), - SSO: __nccwpck_require__(55080), - SSOOIDC: __nccwpck_require__(1977), - MarketplaceCatalog: __nccwpck_require__(82089), - DataExchange: __nccwpck_require__(2486), - SESV2: __nccwpck_require__(58354), - MigrationHubConfig: __nccwpck_require__(56522), - ConnectParticipant: __nccwpck_require__(13472), - AppConfig: __nccwpck_require__(68506), - IoTSecureTunneling: __nccwpck_require__(84558), - WAFV2: __nccwpck_require__(6201), - ElasticInference: __nccwpck_require__(58709), - Imagebuilder: __nccwpck_require__(90255), - Schemas: __nccwpck_require__(60095), - AccessAnalyzer: __nccwpck_require__(29711), - CodeGuruReviewer: __nccwpck_require__(50540), - CodeGuruProfiler: __nccwpck_require__(31530), - ComputeOptimizer: __nccwpck_require__(631), - FraudDetector: __nccwpck_require__(95915), - Kendra: __nccwpck_require__(17788), - NetworkManager: __nccwpck_require__(87374), - Outposts: __nccwpck_require__(57116), - AugmentedAIRuntime: __nccwpck_require__(76691), - EBS: __nccwpck_require__(88083), - KinesisVideoSignalingChannels: __nccwpck_require__(78044), - Detective: __nccwpck_require__(4256), - CodeStarconnections: __nccwpck_require__(92813), - Synthetics: __nccwpck_require__(63527), - IoTSiteWise: __nccwpck_require__(35536), - Macie2: __nccwpck_require__(76546), - CodeArtifact: __nccwpck_require__(68264), - IVS: __nccwpck_require__(24659), - Braket: __nccwpck_require__(18150), - IdentityStore: __nccwpck_require__(58928), - Appflow: __nccwpck_require__(48060), - RedshiftData: __nccwpck_require__(95134), - SSOAdmin: __nccwpck_require__(73682), - TimestreamQuery: __nccwpck_require__(6252), - TimestreamWrite: __nccwpck_require__(7063), - S3Outposts: __nccwpck_require__(28734), - DataBrew: __nccwpck_require__(19091), - ServiceCatalogAppRegistry: __nccwpck_require__(61201), - NetworkFirewall: __nccwpck_require__(20653), - MWAA: __nccwpck_require__(29729), - AmplifyBackend: __nccwpck_require__(36319), - AppIntegrations: __nccwpck_require__(87719), - ConnectContactLens: __nccwpck_require__(67997), - DevOpsGuru: __nccwpck_require__(53303), - ECRPUBLIC: __nccwpck_require__(86240), - LookoutVision: __nccwpck_require__(71842), - SageMakerFeatureStoreRuntime: __nccwpck_require__(14354), - CustomerProfiles: __nccwpck_require__(2293), - AuditManager: __nccwpck_require__(18153), - EMRcontainers: __nccwpck_require__(78271), - HealthLake: __nccwpck_require__(29998), - SagemakerEdge: __nccwpck_require__(16558), - Amp: __nccwpck_require__(67993), - GreengrassV2: __nccwpck_require__(23168), - IotDeviceAdvisor: __nccwpck_require__(17985), - IoTFleetHub: __nccwpck_require__(14008), - IoTWireless: __nccwpck_require__(94119), - Location: __nccwpck_require__(83516), - WellArchitected: __nccwpck_require__(26185), - LexModelsV2: __nccwpck_require__(87208), - LexRuntimeV2: __nccwpck_require__(82344), - Fis: __nccwpck_require__(56593), - LookoutMetrics: __nccwpck_require__(83033), - Mgn: __nccwpck_require__(86845), - LookoutEquipment: __nccwpck_require__(88340), - Nimble: __nccwpck_require__(24806), - Finspace: __nccwpck_require__(1910), - Finspacedata: __nccwpck_require__(64934), - SSMContacts: __nccwpck_require__(60331), - SSMIncidents: __nccwpck_require__(44783), - ApplicationCostProfiler: __nccwpck_require__(25193), - AppRunner: __nccwpck_require__(63394), - Proton: __nccwpck_require__(3447), - Route53RecoveryCluster: __nccwpck_require__(98643), - Route53RecoveryControlConfig: __nccwpck_require__(60374), - Route53RecoveryReadiness: __nccwpck_require__(32113), - ChimeSDKIdentity: __nccwpck_require__(57741), - ChimeSDKMessaging: __nccwpck_require__(39471), - SnowDeviceManagement: __nccwpck_require__(27389), - MemoryDB: __nccwpck_require__(86366), - OpenSearch: __nccwpck_require__(95067), - KafkaConnect: __nccwpck_require__(55539), - VoiceID: __nccwpck_require__(24316), - Wisdom: __nccwpck_require__(56912), - Account: __nccwpck_require__(63604), - CloudControl: __nccwpck_require__(68069), - Grafana: __nccwpck_require__(52519), - Panorama: __nccwpck_require__(43728), - ChimeSDKMeetings: __nccwpck_require__(79409), - Resiliencehub: __nccwpck_require__(7515), - MigrationHubStrategy: __nccwpck_require__(35425), - AppConfigData: __nccwpck_require__(65018), - Drs: __nccwpck_require__(23056), - MigrationHubRefactorSpaces: __nccwpck_require__(6461), - Evidently: __nccwpck_require__(2051), - Inspector2: __nccwpck_require__(54010), - Rbin: __nccwpck_require__(22816), - RUM: __nccwpck_require__(62875), - BackupGateway: __nccwpck_require__(30383), - IoTTwinMaker: __nccwpck_require__(80377), - WorkSpacesWeb: __nccwpck_require__(59539), - AmplifyUIBuilder: __nccwpck_require__(14918), - Keyspaces: __nccwpck_require__(81807), - Billingconductor: __nccwpck_require__(82951), - PinpointSMSVoiceV2: __nccwpck_require__(42205), - Ivschat: __nccwpck_require__(30818), - ChimeSDKMediaPipelines: __nccwpck_require__(64464), - EMRServerless: __nccwpck_require__(22901), - M2: __nccwpck_require__(20292), - ConnectCampaigns: __nccwpck_require__(45342), - RedshiftServerless: __nccwpck_require__(57824), - RolesAnywhere: __nccwpck_require__(70987), - LicenseManagerUserSubscriptions: __nccwpck_require__(25598), - PrivateNetworks: __nccwpck_require__(33991), - SupportApp: __nccwpck_require__(54573), - ControlTower: __nccwpck_require__(85597), - IoTFleetWise: __nccwpck_require__(52808), - MigrationHubOrchestrator: __nccwpck_require__(47568), - ConnectCases: __nccwpck_require__(48000), - ResourceExplorer2: __nccwpck_require__(18360), - Scheduler: __nccwpck_require__(20174), - ChimeSDKVoice: __nccwpck_require__(95933), - SsmSap: __nccwpck_require__(24044), - OAM: __nccwpck_require__(21528), - ARCZonalShift: __nccwpck_require__(16261), - Omics: __nccwpck_require__(74738), - OpenSearchServerless: __nccwpck_require__(18085), - SecurityLake: __nccwpck_require__(98286), - SimSpaceWeaver: __nccwpck_require__(60044), - DocDBElastic: __nccwpck_require__(32756), - SageMakerGeospatial: __nccwpck_require__(97040), - CodeCatalyst: __nccwpck_require__(29097), - Pipes: __nccwpck_require__(19374), - SageMakerMetrics: __nccwpck_require__(34798), - KinesisVideoWebRTCStorage: __nccwpck_require__(39958), - LicenseManagerLinuxSubscriptions: __nccwpck_require__(61577), - KendraRanking: __nccwpck_require__(73480), - CleanRooms: __nccwpck_require__(75676), - CloudTrailData: __nccwpck_require__(24124), - Tnb: __nccwpck_require__(11867), - InternetMonitor: __nccwpck_require__(7770), - IVSRealTime: __nccwpck_require__(83698), - VPCLattice: __nccwpck_require__(42764), - OSIS: __nccwpck_require__(87057), - MediaPackageV2: __nccwpck_require__(13483), - PaymentCryptography: __nccwpck_require__(37855), - PaymentCryptographyData: __nccwpck_require__(15271), - CodeGuruSecurity: __nccwpck_require__(89893), - VerifiedPermissions: __nccwpck_require__(20967), - AppFabric: __nccwpck_require__(1293), - MedicalImaging: __nccwpck_require__(67196), - EntityResolution: __nccwpck_require__(18444), - ManagedBlockchainQuery: __nccwpck_require__(64434), - Neptunedata: __nccwpck_require__(21682), - PcaConnectorAd: __nccwpck_require__(87689), - Bedrock: __nccwpck_require__(10337), - BedrockRuntime: __nccwpck_require__(30809), - DataZone: __nccwpck_require__(39505), - LaunchWizard: __nccwpck_require__(96835), - TrustedAdvisor: __nccwpck_require__(90814), - InspectorScan: __nccwpck_require__(54971), - BCMDataExports: __nccwpck_require__(55486), - CostOptimizationHub: __nccwpck_require__(22568), - EKSAuth: __nccwpck_require__(69364), - FreeTier: __nccwpck_require__(17449), - Repostspace: __nccwpck_require__(19164), - WorkSpacesThinClient: __nccwpck_require__(81581), - B2bi: __nccwpck_require__(39858), - BedrockAgent: __nccwpck_require__(94608), - BedrockAgentRuntime: __nccwpck_require__(90078), - QBusiness: __nccwpck_require__(20966), - QConnect: __nccwpck_require__(42844), - CleanRoomsML: __nccwpck_require__(13945), - MarketplaceAgreement: __nccwpck_require__(64070), - MarketplaceDeployment: __nccwpck_require__(10091), - NetworkMonitor: __nccwpck_require__(74407), - SupplyChain: __nccwpck_require__(9684), - Artifact: __nccwpck_require__(30541), - Chatbot: __nccwpck_require__(55284), - TimestreamInfluxDB: __nccwpck_require__(91248), - CodeConnections: __nccwpck_require__(34561), - Deadline: __nccwpck_require__(98459), - ControlCatalog: __nccwpck_require__(34687), - Route53Profiles: __nccwpck_require__(61912), - MailManager: __nccwpck_require__(79649), - TaxSettings: __nccwpck_require__(38551), - ApplicationSignals: __nccwpck_require__(54772), - PcaConnectorScep: __nccwpck_require__(57003), - AppTest: __nccwpck_require__(91020), - QApps: __nccwpck_require__(75924), - SSMQuickSetup: __nccwpck_require__(9822), - PCS: __nccwpck_require__(75921) -}; - -/***/ }), - -/***/ 67993: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['amp'] = {}; -AWS.Amp = Service.defineService('amp', ['2020-08-01']); -Object.defineProperty(apiLoader.services['amp'], '2020-08-01', { - get: function get() { - var model = __nccwpck_require__(28064); - model.paginators = (__nccwpck_require__(12852)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(32487)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Amp; - - -/***/ }), - -/***/ 96519: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['amplify'] = {}; -AWS.Amplify = Service.defineService('amplify', ['2017-07-25']); -Object.defineProperty(apiLoader.services['amplify'], '2017-07-25', { - get: function get() { - var model = __nccwpck_require__(19333); - model.paginators = (__nccwpck_require__(69703)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Amplify; - - -/***/ }), - -/***/ 36319: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['amplifybackend'] = {}; -AWS.AmplifyBackend = Service.defineService('amplifybackend', ['2020-08-11']); -Object.defineProperty(apiLoader.services['amplifybackend'], '2020-08-11', { - get: function get() { - var model = __nccwpck_require__(48219); - model.paginators = (__nccwpck_require__(42649)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AmplifyBackend; - - -/***/ }), - -/***/ 14918: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['amplifyuibuilder'] = {}; -AWS.AmplifyUIBuilder = Service.defineService('amplifyuibuilder', ['2021-08-11']); -Object.defineProperty(apiLoader.services['amplifyuibuilder'], '2021-08-11', { - get: function get() { - var model = __nccwpck_require__(43847); - model.paginators = (__nccwpck_require__(38077)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(55222)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AmplifyUIBuilder; - - -/***/ }), - -/***/ 31961: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['apigateway'] = {}; -AWS.APIGateway = Service.defineService('apigateway', ['2015-07-09']); -__nccwpck_require__(14823); -Object.defineProperty(apiLoader.services['apigateway'], '2015-07-09', { - get: function get() { - var model = __nccwpck_require__(21499); - model.paginators = (__nccwpck_require__(38713)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.APIGateway; - - -/***/ }), - -/***/ 85404: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['apigatewaymanagementapi'] = {}; -AWS.ApiGatewayManagementApi = Service.defineService('apigatewaymanagementapi', ['2018-11-29']); -Object.defineProperty(apiLoader.services['apigatewaymanagementapi'], '2018-11-29', { - get: function get() { - var model = __nccwpck_require__(12116); - model.paginators = (__nccwpck_require__(63232)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ApiGatewayManagementApi; - - -/***/ }), - -/***/ 10081: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['apigatewayv2'] = {}; -AWS.ApiGatewayV2 = Service.defineService('apigatewayv2', ['2018-11-29']); -Object.defineProperty(apiLoader.services['apigatewayv2'], '2018-11-29', { - get: function get() { - var model = __nccwpck_require__(58739); - model.paginators = (__nccwpck_require__(68097)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ApiGatewayV2; - - -/***/ }), - -/***/ 68506: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['appconfig'] = {}; -AWS.AppConfig = Service.defineService('appconfig', ['2019-10-09']); -Object.defineProperty(apiLoader.services['appconfig'], '2019-10-09', { - get: function get() { - var model = __nccwpck_require__(60169); - model.paginators = (__nccwpck_require__(78206)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AppConfig; - - -/***/ }), - -/***/ 65018: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['appconfigdata'] = {}; -AWS.AppConfigData = Service.defineService('appconfigdata', ['2021-11-11']); -Object.defineProperty(apiLoader.services['appconfigdata'], '2021-11-11', { - get: function get() { - var model = __nccwpck_require__(14341); - model.paginators = (__nccwpck_require__(23175)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AppConfigData; - - -/***/ }), - -/***/ 1293: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['appfabric'] = {}; -AWS.AppFabric = Service.defineService('appfabric', ['2023-05-19']); -Object.defineProperty(apiLoader.services['appfabric'], '2023-05-19', { - get: function get() { - var model = __nccwpck_require__(47693); - model.paginators = (__nccwpck_require__(56639)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(11252)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AppFabric; - - -/***/ }), - -/***/ 48060: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['appflow'] = {}; -AWS.Appflow = Service.defineService('appflow', ['2020-08-23']); -Object.defineProperty(apiLoader.services['appflow'], '2020-08-23', { - get: function get() { - var model = __nccwpck_require__(10343); - model.paginators = (__nccwpck_require__(2493)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Appflow; - - -/***/ }), - -/***/ 87719: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['appintegrations'] = {}; -AWS.AppIntegrations = Service.defineService('appintegrations', ['2020-07-29']); -Object.defineProperty(apiLoader.services['appintegrations'], '2020-07-29', { - get: function get() { - var model = __nccwpck_require__(53239); - model.paginators = (__nccwpck_require__(61549)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AppIntegrations; - - -/***/ }), - -/***/ 72313: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['applicationautoscaling'] = {}; -AWS.ApplicationAutoScaling = Service.defineService('applicationautoscaling', ['2016-02-06']); -Object.defineProperty(apiLoader.services['applicationautoscaling'], '2016-02-06', { - get: function get() { - var model = __nccwpck_require__(69821); - model.paginators = (__nccwpck_require__(4623)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ApplicationAutoScaling; - - -/***/ }), - -/***/ 25193: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['applicationcostprofiler'] = {}; -AWS.ApplicationCostProfiler = Service.defineService('applicationcostprofiler', ['2020-09-10']); -Object.defineProperty(apiLoader.services['applicationcostprofiler'], '2020-09-10', { - get: function get() { - var model = __nccwpck_require__(24087); - model.paginators = (__nccwpck_require__(1357)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ApplicationCostProfiler; - - -/***/ }), - -/***/ 60360: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['applicationinsights'] = {}; -AWS.ApplicationInsights = Service.defineService('applicationinsights', ['2018-11-25']); -Object.defineProperty(apiLoader.services['applicationinsights'], '2018-11-25', { - get: function get() { - var model = __nccwpck_require__(92817); - model.paginators = (__nccwpck_require__(72555)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ApplicationInsights; - - -/***/ }), - -/***/ 54772: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['applicationsignals'] = {}; -AWS.ApplicationSignals = Service.defineService('applicationsignals', ['2024-04-15']); -Object.defineProperty(apiLoader.services['applicationsignals'], '2024-04-15', { - get: function get() { - var model = __nccwpck_require__(39757); - model.paginators = (__nccwpck_require__(65439)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ApplicationSignals; - - -/***/ }), - -/***/ 84737: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['appmesh'] = {}; -AWS.AppMesh = Service.defineService('appmesh', ['2018-10-01', '2018-10-01*', '2019-01-25']); -Object.defineProperty(apiLoader.services['appmesh'], '2018-10-01', { - get: function get() { - var model = __nccwpck_require__(29920); - model.paginators = (__nccwpck_require__(44020)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['appmesh'], '2019-01-25', { - get: function get() { - var model = __nccwpck_require__(7955); - model.paginators = (__nccwpck_require__(40801)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AppMesh; - - -/***/ }), - -/***/ 63394: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['apprunner'] = {}; -AWS.AppRunner = Service.defineService('apprunner', ['2020-05-15']); -Object.defineProperty(apiLoader.services['apprunner'], '2020-05-15', { - get: function get() { - var model = __nccwpck_require__(38917); - model.paginators = (__nccwpck_require__(55207)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AppRunner; - - -/***/ }), - -/***/ 79208: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['appstream'] = {}; -AWS.AppStream = Service.defineService('appstream', ['2016-12-01']); -Object.defineProperty(apiLoader.services['appstream'], '2016-12-01', { - get: function get() { - var model = __nccwpck_require__(86175); - model.paginators = (__nccwpck_require__(35877)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(62750)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AppStream; - - -/***/ }), - -/***/ 24435: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['appsync'] = {}; -AWS.AppSync = Service.defineService('appsync', ['2017-07-25']); -Object.defineProperty(apiLoader.services['appsync'], '2017-07-25', { - get: function get() { - var model = __nccwpck_require__(45769); - model.paginators = (__nccwpck_require__(31603)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AppSync; - - -/***/ }), - -/***/ 91020: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['apptest'] = {}; -AWS.AppTest = Service.defineService('apptest', ['2022-12-06']); -Object.defineProperty(apiLoader.services['apptest'], '2022-12-06', { - get: function get() { - var model = __nccwpck_require__(26973); - model.paginators = (__nccwpck_require__(64463)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(83300)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AppTest; - - -/***/ }), - -/***/ 16261: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['arczonalshift'] = {}; -AWS.ARCZonalShift = Service.defineService('arczonalshift', ['2022-10-30']); -Object.defineProperty(apiLoader.services['arczonalshift'], '2022-10-30', { - get: function get() { - var model = __nccwpck_require__(90697); - model.paginators = (__nccwpck_require__(93363)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ARCZonalShift; - - -/***/ }), - -/***/ 30541: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['artifact'] = {}; -AWS.Artifact = Service.defineService('artifact', ['2018-05-10']); -Object.defineProperty(apiLoader.services['artifact'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(48448); - model.paginators = (__nccwpck_require__(21748)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(88167)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Artifact; - - -/***/ }), - -/***/ 37384: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['athena'] = {}; -AWS.Athena = Service.defineService('athena', ['2017-05-18']); -Object.defineProperty(apiLoader.services['athena'], '2017-05-18', { - get: function get() { - var model = __nccwpck_require__(15214); - model.paginators = (__nccwpck_require__(21958)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Athena; - - -/***/ }), - -/***/ 18153: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['auditmanager'] = {}; -AWS.AuditManager = Service.defineService('auditmanager', ['2017-07-25']); -Object.defineProperty(apiLoader.services['auditmanager'], '2017-07-25', { - get: function get() { - var model = __nccwpck_require__(82511); - model.paginators = (__nccwpck_require__(38805)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AuditManager; - - -/***/ }), - -/***/ 76691: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['augmentedairuntime'] = {}; -AWS.AugmentedAIRuntime = Service.defineService('augmentedairuntime', ['2019-11-07']); -Object.defineProperty(apiLoader.services['augmentedairuntime'], '2019-11-07', { - get: function get() { - var model = __nccwpck_require__(93284); - model.paginators = (__nccwpck_require__(19696)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AugmentedAIRuntime; - - -/***/ }), - -/***/ 60887: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['autoscaling'] = {}; -AWS.AutoScaling = Service.defineService('autoscaling', ['2011-01-01']); -Object.defineProperty(apiLoader.services['autoscaling'], '2011-01-01', { - get: function get() { - var model = __nccwpck_require__(33359); - model.paginators = (__nccwpck_require__(56949)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AutoScaling; - - -/***/ }), - -/***/ 79327: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['autoscalingplans'] = {}; -AWS.AutoScalingPlans = Service.defineService('autoscalingplans', ['2018-01-06']); -Object.defineProperty(apiLoader.services['autoscalingplans'], '2018-01-06', { - get: function get() { - var model = __nccwpck_require__(1550); - model.paginators = (__nccwpck_require__(77862)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AutoScalingPlans; - - -/***/ }), - -/***/ 39858: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['b2bi'] = {}; -AWS.B2bi = Service.defineService('b2bi', ['2022-06-23']); -Object.defineProperty(apiLoader.services['b2bi'], '2022-06-23', { - get: function get() { - var model = __nccwpck_require__(59941); - model.paginators = (__nccwpck_require__(64487)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.B2bi; - - -/***/ }), - -/***/ 24465: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['backup'] = {}; -AWS.Backup = Service.defineService('backup', ['2018-11-15']); -Object.defineProperty(apiLoader.services['backup'], '2018-11-15', { - get: function get() { - var model = __nccwpck_require__(3780); - model.paginators = (__nccwpck_require__(62768)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Backup; - - -/***/ }), - -/***/ 30383: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['backupgateway'] = {}; -AWS.BackupGateway = Service.defineService('backupgateway', ['2021-01-01']); -Object.defineProperty(apiLoader.services['backupgateway'], '2021-01-01', { - get: function get() { - var model = __nccwpck_require__(99339); - model.paginators = (__nccwpck_require__(9833)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.BackupGateway; - - -/***/ }), - -/***/ 30807: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['batch'] = {}; -AWS.Batch = Service.defineService('batch', ['2016-08-10']); -Object.defineProperty(apiLoader.services['batch'], '2016-08-10', { - get: function get() { - var model = __nccwpck_require__(71121); - model.paginators = (__nccwpck_require__(90667)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Batch; - - -/***/ }), - -/***/ 55486: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['bcmdataexports'] = {}; -AWS.BCMDataExports = Service.defineService('bcmdataexports', ['2023-11-26']); -Object.defineProperty(apiLoader.services['bcmdataexports'], '2023-11-26', { - get: function get() { - var model = __nccwpck_require__(39539); - model.paginators = (__nccwpck_require__(61633)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.BCMDataExports; - - -/***/ }), - -/***/ 10337: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['bedrock'] = {}; -AWS.Bedrock = Service.defineService('bedrock', ['2023-04-20']); -Object.defineProperty(apiLoader.services['bedrock'], '2023-04-20', { - get: function get() { - var model = __nccwpck_require__(91116); - model.paginators = (__nccwpck_require__(70760)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(67059)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Bedrock; - - -/***/ }), - -/***/ 94608: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['bedrockagent'] = {}; -AWS.BedrockAgent = Service.defineService('bedrockagent', ['2023-06-05']); -Object.defineProperty(apiLoader.services['bedrockagent'], '2023-06-05', { - get: function get() { - var model = __nccwpck_require__(45915); - model.paginators = (__nccwpck_require__(77529)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.BedrockAgent; - - -/***/ }), - -/***/ 90078: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['bedrockagentruntime'] = {}; -AWS.BedrockAgentRuntime = Service.defineService('bedrockagentruntime', ['2023-07-26']); -Object.defineProperty(apiLoader.services['bedrockagentruntime'], '2023-07-26', { - get: function get() { - var model = __nccwpck_require__(23126); - model.paginators = (__nccwpck_require__(9054)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.BedrockAgentRuntime; - - -/***/ }), - -/***/ 30809: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['bedrockruntime'] = {}; -AWS.BedrockRuntime = Service.defineService('bedrockruntime', ['2023-09-30']); -Object.defineProperty(apiLoader.services['bedrockruntime'], '2023-09-30', { - get: function get() { - var model = __nccwpck_require__(6559); - model.paginators = (__nccwpck_require__(29093)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(16574)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.BedrockRuntime; - - -/***/ }), - -/***/ 82951: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['billingconductor'] = {}; -AWS.Billingconductor = Service.defineService('billingconductor', ['2021-07-30']); -Object.defineProperty(apiLoader.services['billingconductor'], '2021-07-30', { - get: function get() { - var model = __nccwpck_require__(74546); - model.paginators = (__nccwpck_require__(41234)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(5401)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Billingconductor; - - -/***/ }), - -/***/ 18150: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['braket'] = {}; -AWS.Braket = Service.defineService('braket', ['2019-09-01']); -Object.defineProperty(apiLoader.services['braket'], '2019-09-01', { - get: function get() { - var model = __nccwpck_require__(37532); - model.paginators = (__nccwpck_require__(5432)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Braket; - - -/***/ }), - -/***/ 11649: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['budgets'] = {}; -AWS.Budgets = Service.defineService('budgets', ['2016-10-20']); -Object.defineProperty(apiLoader.services['budgets'], '2016-10-20', { - get: function get() { - var model = __nccwpck_require__(50491); - model.paginators = (__nccwpck_require__(23417)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Budgets; - - -/***/ }), - -/***/ 55284: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['chatbot'] = {}; -AWS.Chatbot = Service.defineService('chatbot', ['2017-10-11']); -Object.defineProperty(apiLoader.services['chatbot'], '2017-10-11', { - get: function get() { - var model = __nccwpck_require__(10487); - model.paginators = (__nccwpck_require__(43245)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Chatbot; - - -/***/ }), - -/***/ 30243: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['chime'] = {}; -AWS.Chime = Service.defineService('chime', ['2018-05-01']); -Object.defineProperty(apiLoader.services['chime'], '2018-05-01', { - get: function get() { - var model = __nccwpck_require__(37380); - model.paginators = (__nccwpck_require__(81136)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Chime; - - -/***/ }), - -/***/ 57741: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['chimesdkidentity'] = {}; -AWS.ChimeSDKIdentity = Service.defineService('chimesdkidentity', ['2021-04-20']); -Object.defineProperty(apiLoader.services['chimesdkidentity'], '2021-04-20', { - get: function get() { - var model = __nccwpck_require__(514); - model.paginators = (__nccwpck_require__(8418)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ChimeSDKIdentity; - - -/***/ }), - -/***/ 64464: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['chimesdkmediapipelines'] = {}; -AWS.ChimeSDKMediaPipelines = Service.defineService('chimesdkmediapipelines', ['2021-07-15']); -Object.defineProperty(apiLoader.services['chimesdkmediapipelines'], '2021-07-15', { - get: function get() { - var model = __nccwpck_require__(29177); - model.paginators = (__nccwpck_require__(7523)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ChimeSDKMediaPipelines; - - -/***/ }), - -/***/ 79409: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['chimesdkmeetings'] = {}; -AWS.ChimeSDKMeetings = Service.defineService('chimesdkmeetings', ['2021-07-15']); -Object.defineProperty(apiLoader.services['chimesdkmeetings'], '2021-07-15', { - get: function get() { - var model = __nccwpck_require__(1949); - model.paginators = (__nccwpck_require__(62223)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ChimeSDKMeetings; - - -/***/ }), - -/***/ 39471: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['chimesdkmessaging'] = {}; -AWS.ChimeSDKMessaging = Service.defineService('chimesdkmessaging', ['2021-05-15']); -Object.defineProperty(apiLoader.services['chimesdkmessaging'], '2021-05-15', { - get: function get() { - var model = __nccwpck_require__(80477); - model.paginators = (__nccwpck_require__(3471)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ChimeSDKMessaging; - - -/***/ }), - -/***/ 95933: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['chimesdkvoice'] = {}; -AWS.ChimeSDKVoice = Service.defineService('chimesdkvoice', ['2022-08-03']); -Object.defineProperty(apiLoader.services['chimesdkvoice'], '2022-08-03', { - get: function get() { - var model = __nccwpck_require__(77248); - model.paginators = (__nccwpck_require__(85396)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ChimeSDKVoice; - - -/***/ }), - -/***/ 75676: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cleanrooms'] = {}; -AWS.CleanRooms = Service.defineService('cleanrooms', ['2022-02-17']); -Object.defineProperty(apiLoader.services['cleanrooms'], '2022-02-17', { - get: function get() { - var model = __nccwpck_require__(6812); - model.paginators = (__nccwpck_require__(31032)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(67107)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CleanRooms; - - -/***/ }), - -/***/ 13945: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cleanroomsml'] = {}; -AWS.CleanRoomsML = Service.defineService('cleanroomsml', ['2023-09-06']); -Object.defineProperty(apiLoader.services['cleanroomsml'], '2023-09-06', { - get: function get() { - var model = __nccwpck_require__(84933); - model.paginators = (__nccwpck_require__(83431)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(39676)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CleanRoomsML; - - -/***/ }), - -/***/ 29527: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cloud9'] = {}; -AWS.Cloud9 = Service.defineService('cloud9', ['2017-09-23']); -Object.defineProperty(apiLoader.services['cloud9'], '2017-09-23', { - get: function get() { - var model = __nccwpck_require__(46613); - model.paginators = (__nccwpck_require__(33943)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Cloud9; - - -/***/ }), - -/***/ 68069: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cloudcontrol'] = {}; -AWS.CloudControl = Service.defineService('cloudcontrol', ['2021-09-30']); -Object.defineProperty(apiLoader.services['cloudcontrol'], '2021-09-30', { - get: function get() { - var model = __nccwpck_require__(12582); - model.paginators = (__nccwpck_require__(31854)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(157)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CloudControl; - - -/***/ }), - -/***/ 80563: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['clouddirectory'] = {}; -AWS.CloudDirectory = Service.defineService('clouddirectory', ['2016-05-10', '2016-05-10*', '2017-01-11']); -Object.defineProperty(apiLoader.services['clouddirectory'], '2016-05-10', { - get: function get() { - var model = __nccwpck_require__(92044); - model.paginators = (__nccwpck_require__(20744)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['clouddirectory'], '2017-01-11', { - get: function get() { - var model = __nccwpck_require__(34084); - model.paginators = (__nccwpck_require__(30224)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CloudDirectory; - - -/***/ }), - -/***/ 79599: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cloudformation'] = {}; -AWS.CloudFormation = Service.defineService('cloudformation', ['2010-05-15']); -Object.defineProperty(apiLoader.services['cloudformation'], '2010-05-15', { - get: function get() { - var model = __nccwpck_require__(84681); - model.paginators = (__nccwpck_require__(82067)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(22032)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CloudFormation; - - -/***/ }), - -/***/ 44323: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cloudfront'] = {}; -AWS.CloudFront = Service.defineService('cloudfront', ['2013-05-12*', '2013-11-11*', '2014-05-31*', '2014-10-21*', '2014-11-06*', '2015-04-17*', '2015-07-27*', '2015-09-17*', '2016-01-13*', '2016-01-28*', '2016-08-01*', '2016-08-20*', '2016-09-07*', '2016-09-29*', '2016-11-25', '2016-11-25*', '2017-03-25', '2017-03-25*', '2017-10-30', '2017-10-30*', '2018-06-18', '2018-06-18*', '2018-11-05', '2018-11-05*', '2019-03-26', '2019-03-26*', '2020-05-31']); -__nccwpck_require__(20089); -Object.defineProperty(apiLoader.services['cloudfront'], '2016-11-25', { - get: function get() { - var model = __nccwpck_require__(63907); - model.paginators = (__nccwpck_require__(78353)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(17170)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['cloudfront'], '2017-03-25', { - get: function get() { - var model = __nccwpck_require__(62549); - model.paginators = (__nccwpck_require__(12055)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(22988)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['cloudfront'], '2017-10-30', { - get: function get() { - var model = __nccwpck_require__(4447); - model.paginators = (__nccwpck_require__(43653)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(97438)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['cloudfront'], '2018-06-18', { - get: function get() { - var model = __nccwpck_require__(38029); - model.paginators = (__nccwpck_require__(44191)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(71764)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['cloudfront'], '2018-11-05', { - get: function get() { - var model = __nccwpck_require__(32635); - model.paginators = (__nccwpck_require__(9753)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(37658)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['cloudfront'], '2019-03-26', { - get: function get() { - var model = __nccwpck_require__(51222); - model.paginators = (__nccwpck_require__(22462)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(76173)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['cloudfront'], '2020-05-31', { - get: function get() { - var model = __nccwpck_require__(51100); - model.paginators = (__nccwpck_require__(17624)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(51907)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CloudFront; - - -/***/ }), - -/***/ 75940: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cloudhsm'] = {}; -AWS.CloudHSM = Service.defineService('cloudhsm', ['2014-05-30']); -Object.defineProperty(apiLoader.services['cloudhsm'], '2014-05-30', { - get: function get() { - var model = __nccwpck_require__(37245); - model.paginators = (__nccwpck_require__(83791)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CloudHSM; - - -/***/ }), - -/***/ 32112: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cloudhsmv2'] = {}; -AWS.CloudHSMV2 = Service.defineService('cloudhsmv2', ['2017-04-28']); -Object.defineProperty(apiLoader.services['cloudhsmv2'], '2017-04-28', { - get: function get() { - var model = __nccwpck_require__(59848); - model.paginators = (__nccwpck_require__(684)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CloudHSMV2; - - -/***/ }), - -/***/ 27518: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cloudsearch'] = {}; -AWS.CloudSearch = Service.defineService('cloudsearch', ['2011-02-01', '2013-01-01']); -Object.defineProperty(apiLoader.services['cloudsearch'], '2011-02-01', { - get: function get() { - var model = __nccwpck_require__(20527); - model.paginators = (__nccwpck_require__(20725)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['cloudsearch'], '2013-01-01', { - get: function get() { - var model = __nccwpck_require__(28062); - model.paginators = (__nccwpck_require__(51990)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CloudSearch; - - -/***/ }), - -/***/ 97186: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cloudsearchdomain'] = {}; -AWS.CloudSearchDomain = Service.defineService('cloudsearchdomain', ['2013-01-01']); -__nccwpck_require__(84944); -Object.defineProperty(apiLoader.services['cloudsearchdomain'], '2013-01-01', { - get: function get() { - var model = __nccwpck_require__(23970); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CloudSearchDomain; - - -/***/ }), - -/***/ 48372: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cloudtrail'] = {}; -AWS.CloudTrail = Service.defineService('cloudtrail', ['2013-11-01']); -Object.defineProperty(apiLoader.services['cloudtrail'], '2013-11-01', { - get: function get() { - var model = __nccwpck_require__(54947); - model.paginators = (__nccwpck_require__(5201)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CloudTrail; - - -/***/ }), - -/***/ 24124: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cloudtraildata'] = {}; -AWS.CloudTrailData = Service.defineService('cloudtraildata', ['2021-08-11']); -Object.defineProperty(apiLoader.services['cloudtraildata'], '2021-08-11', { - get: function get() { - var model = __nccwpck_require__(8386); - model.paginators = (__nccwpck_require__(53506)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CloudTrailData; - - -/***/ }), - -/***/ 52083: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cloudwatch'] = {}; -AWS.CloudWatch = Service.defineService('cloudwatch', ['2010-08-01']); -Object.defineProperty(apiLoader.services['cloudwatch'], '2010-08-01', { - get: function get() { - var model = __nccwpck_require__(35999); - model.paginators = (__nccwpck_require__(49445)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(39998)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CloudWatch; - - -/***/ }), - -/***/ 22766: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cloudwatchevents'] = {}; -AWS.CloudWatchEvents = Service.defineService('cloudwatchevents', ['2014-02-03*', '2015-10-07']); -Object.defineProperty(apiLoader.services['cloudwatchevents'], '2015-10-07', { - get: function get() { - var model = __nccwpck_require__(82196); - model.paginators = (__nccwpck_require__(59328)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CloudWatchEvents; - - -/***/ }), - -/***/ 48220: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cloudwatchlogs'] = {}; -AWS.CloudWatchLogs = Service.defineService('cloudwatchlogs', ['2014-03-28']); -Object.defineProperty(apiLoader.services['cloudwatchlogs'], '2014-03-28', { - get: function get() { - var model = __nccwpck_require__(63038); - model.paginators = (__nccwpck_require__(85686)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CloudWatchLogs; - - -/***/ }), - -/***/ 68264: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['codeartifact'] = {}; -AWS.CodeArtifact = Service.defineService('codeartifact', ['2018-09-22']); -Object.defineProperty(apiLoader.services['codeartifact'], '2018-09-22', { - get: function get() { - var model = __nccwpck_require__(46738); - model.paginators = (__nccwpck_require__(33074)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CodeArtifact; - - -/***/ }), - -/***/ 25200: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['codebuild'] = {}; -AWS.CodeBuild = Service.defineService('codebuild', ['2016-10-06']); -Object.defineProperty(apiLoader.services['codebuild'], '2016-10-06', { - get: function get() { - var model = __nccwpck_require__(68364); - model.paginators = (__nccwpck_require__(3368)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CodeBuild; - - -/***/ }), - -/***/ 29097: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['codecatalyst'] = {}; -AWS.CodeCatalyst = Service.defineService('codecatalyst', ['2022-09-28']); -Object.defineProperty(apiLoader.services['codecatalyst'], '2022-09-28', { - get: function get() { - var model = __nccwpck_require__(36506); - model.paginators = (__nccwpck_require__(21226)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(32881)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CodeCatalyst; - - -/***/ }), - -/***/ 71035: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['codecommit'] = {}; -AWS.CodeCommit = Service.defineService('codecommit', ['2015-04-13']); -Object.defineProperty(apiLoader.services['codecommit'], '2015-04-13', { - get: function get() { - var model = __nccwpck_require__(35093); - model.paginators = (__nccwpck_require__(86775)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CodeCommit; - - -/***/ }), - -/***/ 34561: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['codeconnections'] = {}; -AWS.CodeConnections = Service.defineService('codeconnections', ['2023-12-01']); -Object.defineProperty(apiLoader.services['codeconnections'], '2023-12-01', { - get: function get() { - var model = __nccwpck_require__(70980); - model.paginators = (__nccwpck_require__(39600)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CodeConnections; - - -/***/ }), - -/***/ 9601: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['codedeploy'] = {}; -AWS.CodeDeploy = Service.defineService('codedeploy', ['2014-10-06']); -Object.defineProperty(apiLoader.services['codedeploy'], '2014-10-06', { - get: function get() { - var model = __nccwpck_require__(15965); - model.paginators = (__nccwpck_require__(60815)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(10948)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CodeDeploy; - - -/***/ }), - -/***/ 31530: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['codeguruprofiler'] = {}; -AWS.CodeGuruProfiler = Service.defineService('codeguruprofiler', ['2019-07-18']); -Object.defineProperty(apiLoader.services['codeguruprofiler'], '2019-07-18', { - get: function get() { - var model = __nccwpck_require__(89832); - model.paginators = (__nccwpck_require__(86988)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CodeGuruProfiler; - - -/***/ }), - -/***/ 50540: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['codegurureviewer'] = {}; -AWS.CodeGuruReviewer = Service.defineService('codegurureviewer', ['2019-09-19']); -Object.defineProperty(apiLoader.services['codegurureviewer'], '2019-09-19', { - get: function get() { - var model = __nccwpck_require__(27850); - model.paginators = (__nccwpck_require__(57114)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(32833)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CodeGuruReviewer; - - -/***/ }), - -/***/ 89893: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['codegurusecurity'] = {}; -AWS.CodeGuruSecurity = Service.defineService('codegurusecurity', ['2018-05-10']); -Object.defineProperty(apiLoader.services['codegurusecurity'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(71345); - model.paginators = (__nccwpck_require__(68235)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CodeGuruSecurity; - - -/***/ }), - -/***/ 43376: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['codepipeline'] = {}; -AWS.CodePipeline = Service.defineService('codepipeline', ['2015-07-09']); -Object.defineProperty(apiLoader.services['codepipeline'], '2015-07-09', { - get: function get() { - var model = __nccwpck_require__(7668); - model.paginators = (__nccwpck_require__(16096)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CodePipeline; - - -/***/ }), - -/***/ 92813: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['codestarconnections'] = {}; -AWS.CodeStarconnections = Service.defineService('codestarconnections', ['2019-12-01']); -Object.defineProperty(apiLoader.services['codestarconnections'], '2019-12-01', { - get: function get() { - var model = __nccwpck_require__(47856); - model.paginators = (__nccwpck_require__(11012)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CodeStarconnections; - - -/***/ }), - -/***/ 84832: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['codestarnotifications'] = {}; -AWS.CodeStarNotifications = Service.defineService('codestarnotifications', ['2019-10-15']); -Object.defineProperty(apiLoader.services['codestarnotifications'], '2019-10-15', { - get: function get() { - var model = __nccwpck_require__(67028); - model.paginators = (__nccwpck_require__(48096)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CodeStarNotifications; - - -/***/ }), - -/***/ 74566: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cognitoidentity'] = {}; -AWS.CognitoIdentity = Service.defineService('cognitoidentity', ['2014-06-30']); -Object.defineProperty(apiLoader.services['cognitoidentity'], '2014-06-30', { - get: function get() { - var model = __nccwpck_require__(36607); - model.paginators = (__nccwpck_require__(76741)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CognitoIdentity; - - -/***/ }), - -/***/ 67386: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cognitoidentityserviceprovider'] = {}; -AWS.CognitoIdentityServiceProvider = Service.defineService('cognitoidentityserviceprovider', ['2016-04-18']); -Object.defineProperty(apiLoader.services['cognitoidentityserviceprovider'], '2016-04-18', { - get: function get() { - var model = __nccwpck_require__(91354); - model.paginators = (__nccwpck_require__(86154)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CognitoIdentityServiceProvider; - - -/***/ }), - -/***/ 74851: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cognitosync'] = {}; -AWS.CognitoSync = Service.defineService('cognitosync', ['2014-06-30']); -Object.defineProperty(apiLoader.services['cognitosync'], '2014-06-30', { - get: function get() { - var model = __nccwpck_require__(37892); - model.paginators = (__nccwpck_require__(8912)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CognitoSync; - - -/***/ }), - -/***/ 36668: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['comprehend'] = {}; -AWS.Comprehend = Service.defineService('comprehend', ['2017-11-27']); -Object.defineProperty(apiLoader.services['comprehend'], '2017-11-27', { - get: function get() { - var model = __nccwpck_require__(9355); - model.paginators = (__nccwpck_require__(9193)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Comprehend; - - -/***/ }), - -/***/ 22489: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['comprehendmedical'] = {}; -AWS.ComprehendMedical = Service.defineService('comprehendmedical', ['2018-10-30']); -Object.defineProperty(apiLoader.services['comprehendmedical'], '2018-10-30', { - get: function get() { - var model = __nccwpck_require__(75004); - model.paginators = (__nccwpck_require__(2680)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ComprehendMedical; - - -/***/ }), - -/***/ 631: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['computeoptimizer'] = {}; -AWS.ComputeOptimizer = Service.defineService('computeoptimizer', ['2019-11-01']); -Object.defineProperty(apiLoader.services['computeoptimizer'], '2019-11-01', { - get: function get() { - var model = __nccwpck_require__(49593); - model.paginators = (__nccwpck_require__(97699)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ComputeOptimizer; - - -/***/ }), - -/***/ 80118: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['configservice'] = {}; -AWS.ConfigService = Service.defineService('configservice', ['2014-11-12']); -Object.defineProperty(apiLoader.services['configservice'], '2014-11-12', { - get: function get() { - var model = __nccwpck_require__(53229); - model.paginators = (__nccwpck_require__(73215)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ConfigService; - - -/***/ }), - -/***/ 21025: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['connect'] = {}; -AWS.Connect = Service.defineService('connect', ['2017-08-08']); -Object.defineProperty(apiLoader.services['connect'], '2017-08-08', { - get: function get() { - var model = __nccwpck_require__(64421); - model.paginators = (__nccwpck_require__(56615)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Connect; - - -/***/ }), - -/***/ 45342: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['connectcampaigns'] = {}; -AWS.ConnectCampaigns = Service.defineService('connectcampaigns', ['2021-01-30']); -Object.defineProperty(apiLoader.services['connectcampaigns'], '2021-01-30', { - get: function get() { - var model = __nccwpck_require__(33551); - model.paginators = (__nccwpck_require__(67189)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ConnectCampaigns; - - -/***/ }), - -/***/ 48000: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['connectcases'] = {}; -AWS.ConnectCases = Service.defineService('connectcases', ['2022-10-03']); -Object.defineProperty(apiLoader.services['connectcases'], '2022-10-03', { - get: function get() { - var model = __nccwpck_require__(88344); - model.paginators = (__nccwpck_require__(83772)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ConnectCases; - - -/***/ }), - -/***/ 67997: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['connectcontactlens'] = {}; -AWS.ConnectContactLens = Service.defineService('connectcontactlens', ['2020-08-21']); -Object.defineProperty(apiLoader.services['connectcontactlens'], '2020-08-21', { - get: function get() { - var model = __nccwpck_require__(14730); - model.paginators = (__nccwpck_require__(22234)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ConnectContactLens; - - -/***/ }), - -/***/ 13472: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['connectparticipant'] = {}; -AWS.ConnectParticipant = Service.defineService('connectparticipant', ['2018-09-07']); -Object.defineProperty(apiLoader.services['connectparticipant'], '2018-09-07', { - get: function get() { - var model = __nccwpck_require__(24459); - model.paginators = (__nccwpck_require__(78313)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ConnectParticipant; - - -/***/ }), - -/***/ 34687: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['controlcatalog'] = {}; -AWS.ControlCatalog = Service.defineService('controlcatalog', ['2018-05-10']); -Object.defineProperty(apiLoader.services['controlcatalog'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(96774); - model.paginators = (__nccwpck_require__(83374)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(8829)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ControlCatalog; - - -/***/ }), - -/***/ 85597: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['controltower'] = {}; -AWS.ControlTower = Service.defineService('controltower', ['2018-05-10']); -Object.defineProperty(apiLoader.services['controltower'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(27716); - model.paginators = (__nccwpck_require__(16464)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ControlTower; - - -/***/ }), - -/***/ 23322: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['costexplorer'] = {}; -AWS.CostExplorer = Service.defineService('costexplorer', ['2017-10-25']); -Object.defineProperty(apiLoader.services['costexplorer'], '2017-10-25', { - get: function get() { - var model = __nccwpck_require__(39333); - model.paginators = (__nccwpck_require__(74535)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CostExplorer; - - -/***/ }), - -/***/ 22568: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['costoptimizationhub'] = {}; -AWS.CostOptimizationHub = Service.defineService('costoptimizationhub', ['2022-07-26']); -Object.defineProperty(apiLoader.services['costoptimizationhub'], '2022-07-26', { - get: function get() { - var model = __nccwpck_require__(82073); - model.paginators = (__nccwpck_require__(78435)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(26560)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CostOptimizationHub; - - -/***/ }), - -/***/ 37797: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['cur'] = {}; -AWS.CUR = Service.defineService('cur', ['2017-01-06']); -Object.defineProperty(apiLoader.services['cur'], '2017-01-06', { - get: function get() { - var model = __nccwpck_require__(10998); - model.paginators = (__nccwpck_require__(23230)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CUR; - - -/***/ }), - -/***/ 2293: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['customerprofiles'] = {}; -AWS.CustomerProfiles = Service.defineService('customerprofiles', ['2020-08-15']); -Object.defineProperty(apiLoader.services['customerprofiles'], '2020-08-15', { - get: function get() { - var model = __nccwpck_require__(99812); - model.paginators = (__nccwpck_require__(13008)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.CustomerProfiles; - - -/***/ }), - -/***/ 19091: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['databrew'] = {}; -AWS.DataBrew = Service.defineService('databrew', ['2017-07-25']); -Object.defineProperty(apiLoader.services['databrew'], '2017-07-25', { - get: function get() { - var model = __nccwpck_require__(20957); - model.paginators = (__nccwpck_require__(58383)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.DataBrew; - - -/***/ }), - -/***/ 2486: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['dataexchange'] = {}; -AWS.DataExchange = Service.defineService('dataexchange', ['2017-07-25']); -Object.defineProperty(apiLoader.services['dataexchange'], '2017-07-25', { - get: function get() { - var model = __nccwpck_require__(27674); - model.paginators = (__nccwpck_require__(89770)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(17297)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.DataExchange; - - -/***/ }), - -/***/ 56081: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['datapipeline'] = {}; -AWS.DataPipeline = Service.defineService('datapipeline', ['2012-10-29']); -Object.defineProperty(apiLoader.services['datapipeline'], '2012-10-29', { - get: function get() { - var model = __nccwpck_require__(52784); - model.paginators = (__nccwpck_require__(18052)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.DataPipeline; - - -/***/ }), - -/***/ 10000: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['datasync'] = {}; -AWS.DataSync = Service.defineService('datasync', ['2018-11-09']); -Object.defineProperty(apiLoader.services['datasync'], '2018-11-09', { - get: function get() { - var model = __nccwpck_require__(226); - model.paginators = (__nccwpck_require__(70018)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.DataSync; - - -/***/ }), - -/***/ 39505: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['datazone'] = {}; -AWS.DataZone = Service.defineService('datazone', ['2018-05-10']); -Object.defineProperty(apiLoader.services['datazone'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(85756); - model.paginators = (__nccwpck_require__(95640)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.DataZone; - - -/***/ }), - -/***/ 81614: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['dax'] = {}; -AWS.DAX = Service.defineService('dax', ['2017-04-19']); -Object.defineProperty(apiLoader.services['dax'], '2017-04-19', { - get: function get() { - var model = __nccwpck_require__(20990); - model.paginators = (__nccwpck_require__(34518)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.DAX; - - -/***/ }), - -/***/ 98459: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['deadline'] = {}; -AWS.Deadline = Service.defineService('deadline', ['2023-10-12']); -Object.defineProperty(apiLoader.services['deadline'], '2023-10-12', { - get: function get() { - var model = __nccwpck_require__(25552); - model.paginators = (__nccwpck_require__(78788)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(12951)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Deadline; - - -/***/ }), - -/***/ 4256: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['detective'] = {}; -AWS.Detective = Service.defineService('detective', ['2018-10-26']); -Object.defineProperty(apiLoader.services['detective'], '2018-10-26', { - get: function get() { - var model = __nccwpck_require__(98172); - model.paginators = (__nccwpck_require__(19416)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Detective; - - -/***/ }), - -/***/ 9369: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['devicefarm'] = {}; -AWS.DeviceFarm = Service.defineService('devicefarm', ['2015-06-23']); -Object.defineProperty(apiLoader.services['devicefarm'], '2015-06-23', { - get: function get() { - var model = __nccwpck_require__(83662); - model.paginators = (__nccwpck_require__(68358)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.DeviceFarm; - - -/***/ }), - -/***/ 53303: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['devopsguru'] = {}; -AWS.DevOpsGuru = Service.defineService('devopsguru', ['2020-12-01']); -Object.defineProperty(apiLoader.services['devopsguru'], '2020-12-01', { - get: function get() { - var model = __nccwpck_require__(96772); - model.paginators = (__nccwpck_require__(87920)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.DevOpsGuru; - - -/***/ }), - -/***/ 11742: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['directconnect'] = {}; -AWS.DirectConnect = Service.defineService('directconnect', ['2012-10-25']); -Object.defineProperty(apiLoader.services['directconnect'], '2012-10-25', { - get: function get() { - var model = __nccwpck_require__(59117); - model.paginators = (__nccwpck_require__(74463)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.DirectConnect; - - -/***/ }), - -/***/ 91225: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['directoryservice'] = {}; -AWS.DirectoryService = Service.defineService('directoryservice', ['2015-04-16']); -Object.defineProperty(apiLoader.services['directoryservice'], '2015-04-16', { - get: function get() { - var model = __nccwpck_require__(84589); - model.paginators = (__nccwpck_require__(21695)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.DirectoryService; - - -/***/ }), - -/***/ 14701: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['discovery'] = {}; -AWS.Discovery = Service.defineService('discovery', ['2015-11-01']); -Object.defineProperty(apiLoader.services['discovery'], '2015-11-01', { - get: function get() { - var model = __nccwpck_require__(21666); - model.paginators = (__nccwpck_require__(34018)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Discovery; - - -/***/ }), - -/***/ 65332: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['dlm'] = {}; -AWS.DLM = Service.defineService('dlm', ['2018-01-12']); -Object.defineProperty(apiLoader.services['dlm'], '2018-01-12', { - get: function get() { - var model = __nccwpck_require__(65597); - model.paginators = (__nccwpck_require__(53551)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.DLM; - - -/***/ }), - -/***/ 36951: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['dms'] = {}; -AWS.DMS = Service.defineService('dms', ['2016-01-01']); -Object.defineProperty(apiLoader.services['dms'], '2016-01-01', { - get: function get() { - var model = __nccwpck_require__(34086); - model.paginators = (__nccwpck_require__(6606)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(29437)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.DMS; - - -/***/ }), - -/***/ 50043: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['docdb'] = {}; -AWS.DocDB = Service.defineService('docdb', ['2014-10-31']); -__nccwpck_require__(92057); -Object.defineProperty(apiLoader.services['docdb'], '2014-10-31', { - get: function get() { - var model = __nccwpck_require__(31057); - model.paginators = (__nccwpck_require__(76491)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(59752)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.DocDB; - - -/***/ }), - -/***/ 32756: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['docdbelastic'] = {}; -AWS.DocDBElastic = Service.defineService('docdbelastic', ['2022-11-28']); -Object.defineProperty(apiLoader.services['docdbelastic'], '2022-11-28', { - get: function get() { - var model = __nccwpck_require__(88753); - model.paginators = (__nccwpck_require__(87307)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.DocDBElastic; - - -/***/ }), - -/***/ 23056: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['drs'] = {}; -AWS.Drs = Service.defineService('drs', ['2020-02-26']); -Object.defineProperty(apiLoader.services['drs'], '2020-02-26', { - get: function get() { - var model = __nccwpck_require__(30430); - model.paginators = (__nccwpck_require__(54998)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Drs; - - -/***/ }), - -/***/ 86639: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['dynamodb'] = {}; -AWS.DynamoDB = Service.defineService('dynamodb', ['2011-12-05', '2012-08-10']); -__nccwpck_require__(50961); -Object.defineProperty(apiLoader.services['dynamodb'], '2011-12-05', { - get: function get() { - var model = __nccwpck_require__(15055); - model.paginators = (__nccwpck_require__(6005)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(55790)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['dynamodb'], '2012-08-10', { - get: function get() { - var model = __nccwpck_require__(90013); - model.paginators = (__nccwpck_require__(35247)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(69540)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.DynamoDB; - - -/***/ }), - -/***/ 23810: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['dynamodbstreams'] = {}; -AWS.DynamoDBStreams = Service.defineService('dynamodbstreams', ['2012-08-10']); -Object.defineProperty(apiLoader.services['dynamodbstreams'], '2012-08-10', { - get: function get() { - var model = __nccwpck_require__(19458); - model.paginators = (__nccwpck_require__(22274)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.DynamoDBStreams; - - -/***/ }), - -/***/ 88083: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ebs'] = {}; -AWS.EBS = Service.defineService('ebs', ['2019-11-02']); -Object.defineProperty(apiLoader.services['ebs'], '2019-11-02', { - get: function get() { - var model = __nccwpck_require__(649); - model.paginators = (__nccwpck_require__(92915)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.EBS; - - -/***/ }), - -/***/ 36645: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ec2'] = {}; -AWS.EC2 = Service.defineService('ec2', ['2013-06-15*', '2013-10-15*', '2014-02-01*', '2014-05-01*', '2014-06-15*', '2014-09-01*', '2014-10-01*', '2015-03-01*', '2015-04-15*', '2015-10-01*', '2016-04-01*', '2016-09-15*', '2016-11-15']); -__nccwpck_require__(39007); -Object.defineProperty(apiLoader.services['ec2'], '2016-11-15', { - get: function get() { - var model = __nccwpck_require__(77222); - model.paginators = (__nccwpck_require__(74926)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(2973)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.EC2; - - -/***/ }), - -/***/ 74362: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ec2instanceconnect'] = {}; -AWS.EC2InstanceConnect = Service.defineService('ec2instanceconnect', ['2018-04-02']); -Object.defineProperty(apiLoader.services['ec2instanceconnect'], '2018-04-02', { - get: function get() { - var model = __nccwpck_require__(91767); - model.paginators = (__nccwpck_require__(22637)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.EC2InstanceConnect; - - -/***/ }), - -/***/ 95045: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ecr'] = {}; -AWS.ECR = Service.defineService('ecr', ['2015-09-21']); -Object.defineProperty(apiLoader.services['ecr'], '2015-09-21', { - get: function get() { - var model = __nccwpck_require__(81947); - model.paginators = (__nccwpck_require__(44185)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(69754)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ECR; - - -/***/ }), - -/***/ 86240: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ecrpublic'] = {}; -AWS.ECRPUBLIC = Service.defineService('ecrpublic', ['2020-10-30']); -Object.defineProperty(apiLoader.services['ecrpublic'], '2020-10-30', { - get: function get() { - var model = __nccwpck_require__(65305); - model.paginators = (__nccwpck_require__(15683)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ECRPUBLIC; - - -/***/ }), - -/***/ 10950: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ecs'] = {}; -AWS.ECS = Service.defineService('ecs', ['2014-11-13']); -Object.defineProperty(apiLoader.services['ecs'], '2014-11-13', { - get: function get() { - var model = __nccwpck_require__(24247); - model.paginators = (__nccwpck_require__(15149)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(90022)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ECS; - - -/***/ }), - -/***/ 98607: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['efs'] = {}; -AWS.EFS = Service.defineService('efs', ['2015-02-01']); -Object.defineProperty(apiLoader.services['efs'], '2015-02-01', { - get: function get() { - var model = __nccwpck_require__(43424); - model.paginators = (__nccwpck_require__(17972)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.EFS; - - -/***/ }), - -/***/ 43358: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['eks'] = {}; -AWS.EKS = Service.defineService('eks', ['2017-11-01']); -Object.defineProperty(apiLoader.services['eks'], '2017-11-01', { - get: function get() { - var model = __nccwpck_require__(33221); - model.paginators = (__nccwpck_require__(3655)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(45564)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.EKS; - - -/***/ }), - -/***/ 69364: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['eksauth'] = {}; -AWS.EKSAuth = Service.defineService('eksauth', ['2023-11-26']); -Object.defineProperty(apiLoader.services['eksauth'], '2023-11-26', { - get: function get() { - var model = __nccwpck_require__(53932); - model.paginators = (__nccwpck_require__(8424)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(73235)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.EKSAuth; - - -/***/ }), - -/***/ 47063: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['elasticache'] = {}; -AWS.ElastiCache = Service.defineService('elasticache', ['2012-11-15*', '2014-03-24*', '2014-07-15*', '2014-09-30*', '2015-02-02']); -Object.defineProperty(apiLoader.services['elasticache'], '2015-02-02', { - get: function get() { - var model = __nccwpck_require__(84757); - model.paginators = (__nccwpck_require__(38807)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(12172)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ElastiCache; - - -/***/ }), - -/***/ 19083: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['elasticbeanstalk'] = {}; -AWS.ElasticBeanstalk = Service.defineService('elasticbeanstalk', ['2010-12-01']); -Object.defineProperty(apiLoader.services['elasticbeanstalk'], '2010-12-01', { - get: function get() { - var model = __nccwpck_require__(92104); - model.paginators = (__nccwpck_require__(44076)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(33983)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ElasticBeanstalk; - - -/***/ }), - -/***/ 58709: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['elasticinference'] = {}; -AWS.ElasticInference = Service.defineService('elasticinference', ['2017-07-25']); -Object.defineProperty(apiLoader.services['elasticinference'], '2017-07-25', { - get: function get() { - var model = __nccwpck_require__(73994); - model.paginators = (__nccwpck_require__(63386)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ElasticInference; - - -/***/ }), - -/***/ 7843: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['elastictranscoder'] = {}; -AWS.ElasticTranscoder = Service.defineService('elastictranscoder', ['2012-09-25']); -Object.defineProperty(apiLoader.services['elastictranscoder'], '2012-09-25', { - get: function get() { - var model = __nccwpck_require__(2600); - model.paginators = (__nccwpck_require__(5356)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(83871)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ElasticTranscoder; - - -/***/ }), - -/***/ 67202: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['elb'] = {}; -AWS.ELB = Service.defineService('elb', ['2012-06-01']); -Object.defineProperty(apiLoader.services['elb'], '2012-06-01', { - get: function get() { - var model = __nccwpck_require__(77119); - model.paginators = (__nccwpck_require__(87749)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(15646)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ELB; - - -/***/ }), - -/***/ 67350: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['elbv2'] = {}; -AWS.ELBv2 = Service.defineService('elbv2', ['2015-12-01']); -Object.defineProperty(apiLoader.services['elbv2'], '2015-12-01', { - get: function get() { - var model = __nccwpck_require__(78941); - model.paginators = (__nccwpck_require__(96143)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(43460)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ELBv2; - - -/***/ }), - -/***/ 57387: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['emr'] = {}; -AWS.EMR = Service.defineService('emr', ['2009-03-31']); -Object.defineProperty(apiLoader.services['emr'], '2009-03-31', { - get: function get() { - var model = __nccwpck_require__(25740); - model.paginators = (__nccwpck_require__(65480)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(67315)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.EMR; - - -/***/ }), - -/***/ 78271: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['emrcontainers'] = {}; -AWS.EMRcontainers = Service.defineService('emrcontainers', ['2020-10-01']); -Object.defineProperty(apiLoader.services['emrcontainers'], '2020-10-01', { - get: function get() { - var model = __nccwpck_require__(13644); - model.paginators = (__nccwpck_require__(47976)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.EMRcontainers; - - -/***/ }), - -/***/ 22901: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['emrserverless'] = {}; -AWS.EMRServerless = Service.defineService('emrserverless', ['2021-07-13']); -Object.defineProperty(apiLoader.services['emrserverless'], '2021-07-13', { - get: function get() { - var model = __nccwpck_require__(22886); - model.paginators = (__nccwpck_require__(32302)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.EMRServerless; - - -/***/ }), - -/***/ 18444: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['entityresolution'] = {}; -AWS.EntityResolution = Service.defineService('entityresolution', ['2018-05-10']); -Object.defineProperty(apiLoader.services['entityresolution'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(72837); - model.paginators = (__nccwpck_require__(94183)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.EntityResolution; - - -/***/ }), - -/***/ 38067: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['es'] = {}; -AWS.ES = Service.defineService('es', ['2015-01-01']); -Object.defineProperty(apiLoader.services['es'], '2015-01-01', { - get: function get() { - var model = __nccwpck_require__(93259); - model.paginators = (__nccwpck_require__(92489)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ES; - - -/***/ }), - -/***/ 88614: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['eventbridge'] = {}; -AWS.EventBridge = Service.defineService('eventbridge', ['2015-10-07']); -__nccwpck_require__(90300); -Object.defineProperty(apiLoader.services['eventbridge'], '2015-10-07', { - get: function get() { - var model = __nccwpck_require__(62116); - model.paginators = (__nccwpck_require__(44528)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.EventBridge; - - -/***/ }), - -/***/ 2051: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['evidently'] = {}; -AWS.Evidently = Service.defineService('evidently', ['2021-02-01']); -Object.defineProperty(apiLoader.services['evidently'], '2021-02-01', { - get: function get() { - var model = __nccwpck_require__(32783); - model.paginators = (__nccwpck_require__(16533)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Evidently; - - -/***/ }), - -/***/ 1910: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['finspace'] = {}; -AWS.Finspace = Service.defineService('finspace', ['2021-03-12']); -Object.defineProperty(apiLoader.services['finspace'], '2021-03-12', { - get: function get() { - var model = __nccwpck_require__(77285); - model.paginators = (__nccwpck_require__(78823)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Finspace; - - -/***/ }), - -/***/ 64934: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['finspacedata'] = {}; -AWS.Finspacedata = Service.defineService('finspacedata', ['2020-07-13']); -Object.defineProperty(apiLoader.services['finspacedata'], '2020-07-13', { - get: function get() { - var model = __nccwpck_require__(4110); - model.paginators = (__nccwpck_require__(65510)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Finspacedata; - - -/***/ }), - -/***/ 81106: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['firehose'] = {}; -AWS.Firehose = Service.defineService('firehose', ['2015-08-04']); -Object.defineProperty(apiLoader.services['firehose'], '2015-08-04', { - get: function get() { - var model = __nccwpck_require__(69694); - model.paginators = (__nccwpck_require__(49334)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Firehose; - - -/***/ }), - -/***/ 56593: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['fis'] = {}; -AWS.Fis = Service.defineService('fis', ['2020-12-01']); -Object.defineProperty(apiLoader.services['fis'], '2020-12-01', { - get: function get() { - var model = __nccwpck_require__(47561); - model.paginators = (__nccwpck_require__(98771)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Fis; - - -/***/ }), - -/***/ 33685: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['fms'] = {}; -AWS.FMS = Service.defineService('fms', ['2018-01-01']); -Object.defineProperty(apiLoader.services['fms'], '2018-01-01', { - get: function get() { - var model = __nccwpck_require__(63166); - model.paginators = (__nccwpck_require__(64726)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.FMS; - - -/***/ }), - -/***/ 6681: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['forecastqueryservice'] = {}; -AWS.ForecastQueryService = Service.defineService('forecastqueryservice', ['2018-06-26']); -Object.defineProperty(apiLoader.services['forecastqueryservice'], '2018-06-26', { - get: function get() { - var model = __nccwpck_require__(90369); - model.paginators = (__nccwpck_require__(35835)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ForecastQueryService; - - -/***/ }), - -/***/ 93307: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['forecastservice'] = {}; -AWS.ForecastService = Service.defineService('forecastservice', ['2018-06-26']); -Object.defineProperty(apiLoader.services['forecastservice'], '2018-06-26', { - get: function get() { - var model = __nccwpck_require__(58243); - model.paginators = (__nccwpck_require__(51889)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ForecastService; - - -/***/ }), - -/***/ 95915: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['frauddetector'] = {}; -AWS.FraudDetector = Service.defineService('frauddetector', ['2019-11-15']); -Object.defineProperty(apiLoader.services['frauddetector'], '2019-11-15', { - get: function get() { - var model = __nccwpck_require__(56697); - model.paginators = (__nccwpck_require__(6435)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.FraudDetector; - - -/***/ }), - -/***/ 17449: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['freetier'] = {}; -AWS.FreeTier = Service.defineService('freetier', ['2023-09-07']); -Object.defineProperty(apiLoader.services['freetier'], '2023-09-07', { - get: function get() { - var model = __nccwpck_require__(87390); - model.paginators = (__nccwpck_require__(5206)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.FreeTier; - - -/***/ }), - -/***/ 9914: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['fsx'] = {}; -AWS.FSx = Service.defineService('fsx', ['2018-03-01']); -Object.defineProperty(apiLoader.services['fsx'], '2018-03-01', { - get: function get() { - var model = __nccwpck_require__(55145); - model.paginators = (__nccwpck_require__(85331)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.FSx; - - -/***/ }), - -/***/ 6272: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['gamelift'] = {}; -AWS.GameLift = Service.defineService('gamelift', ['2015-10-01']); -Object.defineProperty(apiLoader.services['gamelift'], '2015-10-01', { - get: function get() { - var model = __nccwpck_require__(8064); - model.paginators = (__nccwpck_require__(92308)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.GameLift; - - -/***/ }), - -/***/ 40369: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['glacier'] = {}; -AWS.Glacier = Service.defineService('glacier', ['2012-06-01']); -__nccwpck_require__(98028); -Object.defineProperty(apiLoader.services['glacier'], '2012-06-01', { - get: function get() { - var model = __nccwpck_require__(26578); - model.paginators = (__nccwpck_require__(70706)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(37305)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Glacier; - - -/***/ }), - -/***/ 70969: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['globalaccelerator'] = {}; -AWS.GlobalAccelerator = Service.defineService('globalaccelerator', ['2018-08-08']); -Object.defineProperty(apiLoader.services['globalaccelerator'], '2018-08-08', { - get: function get() { - var model = __nccwpck_require__(70172); - model.paginators = (__nccwpck_require__(85304)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.GlobalAccelerator; - - -/***/ }), - -/***/ 55294: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['glue'] = {}; -AWS.Glue = Service.defineService('glue', ['2017-03-31']); -Object.defineProperty(apiLoader.services['glue'], '2017-03-31', { - get: function get() { - var model = __nccwpck_require__(115); - model.paginators = (__nccwpck_require__(74625)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Glue; - - -/***/ }), - -/***/ 52519: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['grafana'] = {}; -AWS.Grafana = Service.defineService('grafana', ['2020-08-18']); -Object.defineProperty(apiLoader.services['grafana'], '2020-08-18', { - get: function get() { - var model = __nccwpck_require__(3400); - model.paginators = (__nccwpck_require__(74060)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Grafana; - - -/***/ }), - -/***/ 66228: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['greengrass'] = {}; -AWS.Greengrass = Service.defineService('greengrass', ['2017-06-07']); -Object.defineProperty(apiLoader.services['greengrass'], '2017-06-07', { - get: function get() { - var model = __nccwpck_require__(19493); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Greengrass; - - -/***/ }), - -/***/ 23168: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['greengrassv2'] = {}; -AWS.GreengrassV2 = Service.defineService('greengrassv2', ['2020-11-30']); -Object.defineProperty(apiLoader.services['greengrassv2'], '2020-11-30', { - get: function get() { - var model = __nccwpck_require__(8437); - model.paginators = (__nccwpck_require__(44983)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.GreengrassV2; - - -/***/ }), - -/***/ 45562: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['groundstation'] = {}; -AWS.GroundStation = Service.defineService('groundstation', ['2019-05-23']); -Object.defineProperty(apiLoader.services['groundstation'], '2019-05-23', { - get: function get() { - var model = __nccwpck_require__(92112); - model.paginators = (__nccwpck_require__(13060)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(17463)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.GroundStation; - - -/***/ }), - -/***/ 73986: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['guardduty'] = {}; -AWS.GuardDuty = Service.defineService('guardduty', ['2017-11-28']); -Object.defineProperty(apiLoader.services['guardduty'], '2017-11-28', { - get: function get() { - var model = __nccwpck_require__(47324); - model.paginators = (__nccwpck_require__(19704)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.GuardDuty; - - -/***/ }), - -/***/ 27433: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['health'] = {}; -AWS.Health = Service.defineService('health', ['2016-08-04']); -Object.defineProperty(apiLoader.services['health'], '2016-08-04', { - get: function get() { - var model = __nccwpck_require__(93570); - model.paginators = (__nccwpck_require__(61058)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Health; - - -/***/ }), - -/***/ 29998: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['healthlake'] = {}; -AWS.HealthLake = Service.defineService('healthlake', ['2017-07-01']); -Object.defineProperty(apiLoader.services['healthlake'], '2017-07-01', { - get: function get() { - var model = __nccwpck_require__(30336); - model.paginators = (__nccwpck_require__(19508)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.HealthLake; - - -/***/ }), - -/***/ 25650: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iam'] = {}; -AWS.IAM = Service.defineService('iam', ['2010-05-08']); -Object.defineProperty(apiLoader.services['iam'], '2010-05-08', { - get: function get() { - var model = __nccwpck_require__(83316); - model.paginators = (__nccwpck_require__(40704)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(30347)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IAM; - - -/***/ }), - -/***/ 58928: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['identitystore'] = {}; -AWS.IdentityStore = Service.defineService('identitystore', ['2020-06-15']); -Object.defineProperty(apiLoader.services['identitystore'], '2020-06-15', { - get: function get() { - var model = __nccwpck_require__(67392); - model.paginators = (__nccwpck_require__(8020)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IdentityStore; - - -/***/ }), - -/***/ 90255: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['imagebuilder'] = {}; -AWS.Imagebuilder = Service.defineService('imagebuilder', ['2019-12-02']); -Object.defineProperty(apiLoader.services['imagebuilder'], '2019-12-02', { - get: function get() { - var model = __nccwpck_require__(92534); - model.paginators = (__nccwpck_require__(3070)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Imagebuilder; - - -/***/ }), - -/***/ 63376: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['importexport'] = {}; -AWS.ImportExport = Service.defineService('importexport', ['2010-06-01']); -Object.defineProperty(apiLoader.services['importexport'], '2010-06-01', { - get: function get() { - var model = __nccwpck_require__(80606); - model.paginators = (__nccwpck_require__(8534)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ImportExport; - - -/***/ }), - -/***/ 27066: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['inspector'] = {}; -AWS.Inspector = Service.defineService('inspector', ['2015-08-18*', '2016-02-16']); -Object.defineProperty(apiLoader.services['inspector'], '2016-02-16', { - get: function get() { - var model = __nccwpck_require__(61534); - model.paginators = (__nccwpck_require__(41750)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Inspector; - - -/***/ }), - -/***/ 54010: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['inspector2'] = {}; -AWS.Inspector2 = Service.defineService('inspector2', ['2020-06-08']); -Object.defineProperty(apiLoader.services['inspector2'], '2020-06-08', { - get: function get() { - var model = __nccwpck_require__(73408); - model.paginators = (__nccwpck_require__(53236)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Inspector2; - - -/***/ }), - -/***/ 54971: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['inspectorscan'] = {}; -AWS.InspectorScan = Service.defineService('inspectorscan', ['2023-08-08']); -Object.defineProperty(apiLoader.services['inspectorscan'], '2023-08-08', { - get: function get() { - var model = __nccwpck_require__(79627); - model.paginators = (__nccwpck_require__(92137)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.InspectorScan; - - -/***/ }), - -/***/ 7770: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['internetmonitor'] = {}; -AWS.InternetMonitor = Service.defineService('internetmonitor', ['2021-06-03']); -Object.defineProperty(apiLoader.services['internetmonitor'], '2021-06-03', { - get: function get() { - var model = __nccwpck_require__(43742); - model.paginators = (__nccwpck_require__(23574)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(98213)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.InternetMonitor; - - -/***/ }), - -/***/ 43791: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iot'] = {}; -AWS.Iot = Service.defineService('iot', ['2015-05-28']); -Object.defineProperty(apiLoader.services['iot'], '2015-05-28', { - get: function get() { - var model = __nccwpck_require__(90750); - model.paginators = (__nccwpck_require__(3318)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Iot; - - -/***/ }), - -/***/ 27976: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iot1clickdevicesservice'] = {}; -AWS.IoT1ClickDevicesService = Service.defineService('iot1clickdevicesservice', ['2018-05-14']); -Object.defineProperty(apiLoader.services['iot1clickdevicesservice'], '2018-05-14', { - get: function get() { - var model = __nccwpck_require__(71495); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IoT1ClickDevicesService; - - -/***/ }), - -/***/ 97972: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iot1clickprojects'] = {}; -AWS.IoT1ClickProjects = Service.defineService('iot1clickprojects', ['2018-05-14']); -Object.defineProperty(apiLoader.services['iot1clickprojects'], '2018-05-14', { - get: function get() { - var model = __nccwpck_require__(95988); - model.paginators = (__nccwpck_require__(98784)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IoT1ClickProjects; - - -/***/ }), - -/***/ 25143: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iotanalytics'] = {}; -AWS.IoTAnalytics = Service.defineService('iotanalytics', ['2017-11-27']); -Object.defineProperty(apiLoader.services['iotanalytics'], '2017-11-27', { - get: function get() { - var model = __nccwpck_require__(26942); - model.paginators = (__nccwpck_require__(66614)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IoTAnalytics; - - -/***/ }), - -/***/ 7863: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iotdata'] = {}; -AWS.IotData = Service.defineService('iotdata', ['2015-05-28']); -__nccwpck_require__(16245); -Object.defineProperty(apiLoader.services['iotdata'], '2015-05-28', { - get: function get() { - var model = __nccwpck_require__(25495); - model.paginators = (__nccwpck_require__(84397)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IotData; - - -/***/ }), - -/***/ 17985: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iotdeviceadvisor'] = {}; -AWS.IotDeviceAdvisor = Service.defineService('iotdeviceadvisor', ['2020-09-18']); -Object.defineProperty(apiLoader.services['iotdeviceadvisor'], '2020-09-18', { - get: function get() { - var model = __nccwpck_require__(59591); - model.paginators = (__nccwpck_require__(66301)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IotDeviceAdvisor; - - -/***/ }), - -/***/ 31186: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iotevents'] = {}; -AWS.IoTEvents = Service.defineService('iotevents', ['2018-07-27']); -Object.defineProperty(apiLoader.services['iotevents'], '2018-07-27', { - get: function get() { - var model = __nccwpck_require__(58629); - model.paginators = (__nccwpck_require__(32295)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IoTEvents; - - -/***/ }), - -/***/ 93298: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ioteventsdata'] = {}; -AWS.IoTEventsData = Service.defineService('ioteventsdata', ['2018-10-23']); -Object.defineProperty(apiLoader.services['ioteventsdata'], '2018-10-23', { - get: function get() { - var model = __nccwpck_require__(25658); - model.paginators = (__nccwpck_require__(75498)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IoTEventsData; - - -/***/ }), - -/***/ 14008: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iotfleethub'] = {}; -AWS.IoTFleetHub = Service.defineService('iotfleethub', ['2020-11-03']); -Object.defineProperty(apiLoader.services['iotfleethub'], '2020-11-03', { - get: function get() { - var model = __nccwpck_require__(52595); - model.paginators = (__nccwpck_require__(68737)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IoTFleetHub; - - -/***/ }), - -/***/ 52808: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iotfleetwise'] = {}; -AWS.IoTFleetWise = Service.defineService('iotfleetwise', ['2021-06-17']); -Object.defineProperty(apiLoader.services['iotfleetwise'], '2021-06-17', { - get: function get() { - var model = __nccwpck_require__(65212); - model.paginators = (__nccwpck_require__(11960)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(34275)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IoTFleetWise; - - -/***/ }), - -/***/ 85077: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iotjobsdataplane'] = {}; -AWS.IoTJobsDataPlane = Service.defineService('iotjobsdataplane', ['2017-09-29']); -Object.defineProperty(apiLoader.services['iotjobsdataplane'], '2017-09-29', { - get: function get() { - var model = __nccwpck_require__(51145); - model.paginators = (__nccwpck_require__(81459)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IoTJobsDataPlane; - - -/***/ }), - -/***/ 84558: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iotsecuretunneling'] = {}; -AWS.IoTSecureTunneling = Service.defineService('iotsecuretunneling', ['2018-10-05']); -Object.defineProperty(apiLoader.services['iotsecuretunneling'], '2018-10-05', { - get: function get() { - var model = __nccwpck_require__(71861); - model.paginators = (__nccwpck_require__(12023)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IoTSecureTunneling; - - -/***/ }), - -/***/ 35536: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iotsitewise'] = {}; -AWS.IoTSiteWise = Service.defineService('iotsitewise', ['2019-12-02']); -Object.defineProperty(apiLoader.services['iotsitewise'], '2019-12-02', { - get: function get() { - var model = __nccwpck_require__(70359); - model.paginators = (__nccwpck_require__(70925)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(87814)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IoTSiteWise; - - -/***/ }), - -/***/ 87860: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iotthingsgraph'] = {}; -AWS.IoTThingsGraph = Service.defineService('iotthingsgraph', ['2018-09-06']); -Object.defineProperty(apiLoader.services['iotthingsgraph'], '2018-09-06', { - get: function get() { - var model = __nccwpck_require__(80476); - model.paginators = (__nccwpck_require__(35672)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IoTThingsGraph; - - -/***/ }), - -/***/ 80377: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iottwinmaker'] = {}; -AWS.IoTTwinMaker = Service.defineService('iottwinmaker', ['2021-11-29']); -Object.defineProperty(apiLoader.services['iottwinmaker'], '2021-11-29', { - get: function get() { - var model = __nccwpck_require__(61095); - model.paginators = (__nccwpck_require__(98589)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(26102)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IoTTwinMaker; - - -/***/ }), - -/***/ 94119: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iotwireless'] = {}; -AWS.IoTWireless = Service.defineService('iotwireless', ['2020-11-22']); -Object.defineProperty(apiLoader.services['iotwireless'], '2020-11-22', { - get: function get() { - var model = __nccwpck_require__(49175); - model.paginators = (__nccwpck_require__(52333)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IoTWireless; - - -/***/ }), - -/***/ 24659: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ivs'] = {}; -AWS.IVS = Service.defineService('ivs', ['2020-07-14']); -Object.defineProperty(apiLoader.services['ivs'], '2020-07-14', { - get: function get() { - var model = __nccwpck_require__(65955); - model.paginators = (__nccwpck_require__(73649)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IVS; - - -/***/ }), - -/***/ 30818: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ivschat'] = {}; -AWS.Ivschat = Service.defineService('ivschat', ['2020-07-14']); -Object.defineProperty(apiLoader.services['ivschat'], '2020-07-14', { - get: function get() { - var model = __nccwpck_require__(93121); - model.paginators = (__nccwpck_require__(77403)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(24120)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Ivschat; - - -/***/ }), - -/***/ 83698: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ivsrealtime'] = {}; -AWS.IVSRealTime = Service.defineService('ivsrealtime', ['2020-07-14']); -Object.defineProperty(apiLoader.services['ivsrealtime'], '2020-07-14', { - get: function get() { - var model = __nccwpck_require__(68025); - model.paginators = (__nccwpck_require__(5091)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(77856)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IVSRealTime; - - -/***/ }), - -/***/ 97385: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['kafka'] = {}; -AWS.Kafka = Service.defineService('kafka', ['2018-11-14']); -Object.defineProperty(apiLoader.services['kafka'], '2018-11-14', { - get: function get() { - var model = __nccwpck_require__(10427); - model.paginators = (__nccwpck_require__(82681)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Kafka; - - -/***/ }), - -/***/ 55539: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['kafkaconnect'] = {}; -AWS.KafkaConnect = Service.defineService('kafkaconnect', ['2021-09-14']); -Object.defineProperty(apiLoader.services['kafkaconnect'], '2021-09-14', { - get: function get() { - var model = __nccwpck_require__(40614); - model.paginators = (__nccwpck_require__(59950)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.KafkaConnect; - - -/***/ }), - -/***/ 17788: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['kendra'] = {}; -AWS.Kendra = Service.defineService('kendra', ['2019-02-03']); -Object.defineProperty(apiLoader.services['kendra'], '2019-02-03', { - get: function get() { - var model = __nccwpck_require__(78671); - model.paginators = (__nccwpck_require__(11957)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Kendra; - - -/***/ }), - -/***/ 73480: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['kendraranking'] = {}; -AWS.KendraRanking = Service.defineService('kendraranking', ['2022-10-19']); -Object.defineProperty(apiLoader.services['kendraranking'], '2022-10-19', { - get: function get() { - var model = __nccwpck_require__(78446); - model.paginators = (__nccwpck_require__(48038)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.KendraRanking; - - -/***/ }), - -/***/ 81807: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['keyspaces'] = {}; -AWS.Keyspaces = Service.defineService('keyspaces', ['2022-02-10']); -Object.defineProperty(apiLoader.services['keyspaces'], '2022-02-10', { - get: function get() { - var model = __nccwpck_require__(33640); - model.paginators = (__nccwpck_require__(68396)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(50399)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Keyspaces; - - -/***/ }), - -/***/ 86553: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['kinesis'] = {}; -AWS.Kinesis = Service.defineService('kinesis', ['2013-12-02']); -Object.defineProperty(apiLoader.services['kinesis'], '2013-12-02', { - get: function get() { - var model = __nccwpck_require__(66658); - model.paginators = (__nccwpck_require__(27714)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(2249)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Kinesis; - - -/***/ }), - -/***/ 87825: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['kinesisanalytics'] = {}; -AWS.KinesisAnalytics = Service.defineService('kinesisanalytics', ['2015-08-14']); -Object.defineProperty(apiLoader.services['kinesisanalytics'], '2015-08-14', { - get: function get() { - var model = __nccwpck_require__(59454); - model.paginators = (__nccwpck_require__(90038)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.KinesisAnalytics; - - -/***/ }), - -/***/ 51737: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['kinesisanalyticsv2'] = {}; -AWS.KinesisAnalyticsV2 = Service.defineService('kinesisanalyticsv2', ['2018-05-23']); -Object.defineProperty(apiLoader.services['kinesisanalyticsv2'], '2018-05-23', { - get: function get() { - var model = __nccwpck_require__(94590); - model.paginators = (__nccwpck_require__(80854)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.KinesisAnalyticsV2; - - -/***/ }), - -/***/ 58726: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['kinesisvideo'] = {}; -AWS.KinesisVideo = Service.defineService('kinesisvideo', ['2017-09-30']); -Object.defineProperty(apiLoader.services['kinesisvideo'], '2017-09-30', { - get: function get() { - var model = __nccwpck_require__(17346); - model.paginators = (__nccwpck_require__(53282)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.KinesisVideo; - - -/***/ }), - -/***/ 16142: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['kinesisvideoarchivedmedia'] = {}; -AWS.KinesisVideoArchivedMedia = Service.defineService('kinesisvideoarchivedmedia', ['2017-09-30']); -Object.defineProperty(apiLoader.services['kinesisvideoarchivedmedia'], '2017-09-30', { - get: function get() { - var model = __nccwpck_require__(1621); - model.paginators = (__nccwpck_require__(33815)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.KinesisVideoArchivedMedia; - - -/***/ }), - -/***/ 93464: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['kinesisvideomedia'] = {}; -AWS.KinesisVideoMedia = Service.defineService('kinesisvideomedia', ['2017-09-30']); -Object.defineProperty(apiLoader.services['kinesisvideomedia'], '2017-09-30', { - get: function get() { - var model = __nccwpck_require__(36674); - model.paginators = (__nccwpck_require__(70370)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.KinesisVideoMedia; - - -/***/ }), - -/***/ 78044: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['kinesisvideosignalingchannels'] = {}; -AWS.KinesisVideoSignalingChannels = Service.defineService('kinesisvideosignalingchannels', ['2019-12-04']); -Object.defineProperty(apiLoader.services['kinesisvideosignalingchannels'], '2019-12-04', { - get: function get() { - var model = __nccwpck_require__(65667); - model.paginators = (__nccwpck_require__(77617)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.KinesisVideoSignalingChannels; - - -/***/ }), - -/***/ 39958: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['kinesisvideowebrtcstorage'] = {}; -AWS.KinesisVideoWebRTCStorage = Service.defineService('kinesisvideowebrtcstorage', ['2018-05-10']); -Object.defineProperty(apiLoader.services['kinesisvideowebrtcstorage'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(90148); - model.paginators = (__nccwpck_require__(84400)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.KinesisVideoWebRTCStorage; - - -/***/ }), - -/***/ 5926: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['kms'] = {}; -AWS.KMS = Service.defineService('kms', ['2014-11-01']); -Object.defineProperty(apiLoader.services['kms'], '2014-11-01', { - get: function get() { - var model = __nccwpck_require__(40996); - model.paginators = (__nccwpck_require__(6992)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.KMS; - - -/***/ }), - -/***/ 1549: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['lakeformation'] = {}; -AWS.LakeFormation = Service.defineService('lakeformation', ['2017-03-31']); -Object.defineProperty(apiLoader.services['lakeformation'], '2017-03-31', { - get: function get() { - var model = __nccwpck_require__(49530); - model.paginators = (__nccwpck_require__(48778)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.LakeFormation; - - -/***/ }), - -/***/ 55256: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['lambda'] = {}; -AWS.Lambda = Service.defineService('lambda', ['2014-11-11', '2015-03-31']); -__nccwpck_require__(87066); -Object.defineProperty(apiLoader.services['lambda'], '2014-11-11', { - get: function get() { - var model = __nccwpck_require__(7847); - model.paginators = (__nccwpck_require__(72189)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['lambda'], '2015-03-31', { - get: function get() { - var model = __nccwpck_require__(59855); - model.paginators = (__nccwpck_require__(38549)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(51726)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Lambda; - - -/***/ }), - -/***/ 96835: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['launchwizard'] = {}; -AWS.LaunchWizard = Service.defineService('launchwizard', ['2018-05-10']); -Object.defineProperty(apiLoader.services['launchwizard'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(29929); - model.paginators = (__nccwpck_require__(51)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.LaunchWizard; - - -/***/ }), - -/***/ 78610: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['lexmodelbuildingservice'] = {}; -AWS.LexModelBuildingService = Service.defineService('lexmodelbuildingservice', ['2017-04-19']); -Object.defineProperty(apiLoader.services['lexmodelbuildingservice'], '2017-04-19', { - get: function get() { - var model = __nccwpck_require__(91703); - model.paginators = (__nccwpck_require__(61677)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.LexModelBuildingService; - - -/***/ }), - -/***/ 87208: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['lexmodelsv2'] = {}; -AWS.LexModelsV2 = Service.defineService('lexmodelsv2', ['2020-08-07']); -Object.defineProperty(apiLoader.services['lexmodelsv2'], '2020-08-07', { - get: function get() { - var model = __nccwpck_require__(83875); - model.paginators = (__nccwpck_require__(29137)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(35410)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.LexModelsV2; - - -/***/ }), - -/***/ 25852: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['lexruntime'] = {}; -AWS.LexRuntime = Service.defineService('lexruntime', ['2016-11-28']); -Object.defineProperty(apiLoader.services['lexruntime'], '2016-11-28', { - get: function get() { - var model = __nccwpck_require__(16813); - model.paginators = (__nccwpck_require__(50815)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.LexRuntime; - - -/***/ }), - -/***/ 82344: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['lexruntimev2'] = {}; -AWS.LexRuntimeV2 = Service.defineService('lexruntimev2', ['2020-08-07']); -Object.defineProperty(apiLoader.services['lexruntimev2'], '2020-08-07', { - get: function get() { - var model = __nccwpck_require__(7913); - model.paginators = (__nccwpck_require__(3635)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.LexRuntimeV2; - - -/***/ }), - -/***/ 18789: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['licensemanager'] = {}; -AWS.LicenseManager = Service.defineService('licensemanager', ['2018-08-01']); -Object.defineProperty(apiLoader.services['licensemanager'], '2018-08-01', { - get: function get() { - var model = __nccwpck_require__(7638); - model.paginators = (__nccwpck_require__(85886)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.LicenseManager; - - -/***/ }), - -/***/ 61577: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['licensemanagerlinuxsubscriptions'] = {}; -AWS.LicenseManagerLinuxSubscriptions = Service.defineService('licensemanagerlinuxsubscriptions', ['2018-05-10']); -Object.defineProperty(apiLoader.services['licensemanagerlinuxsubscriptions'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(35529); - model.paginators = (__nccwpck_require__(83507)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.LicenseManagerLinuxSubscriptions; - - -/***/ }), - -/***/ 25598: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['licensemanagerusersubscriptions'] = {}; -AWS.LicenseManagerUserSubscriptions = Service.defineService('licensemanagerusersubscriptions', ['2018-05-10']); -Object.defineProperty(apiLoader.services['licensemanagerusersubscriptions'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(87102); - model.paginators = (__nccwpck_require__(65590)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.LicenseManagerUserSubscriptions; - - -/***/ }), - -/***/ 25930: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['lightsail'] = {}; -AWS.Lightsail = Service.defineService('lightsail', ['2016-11-28']); -Object.defineProperty(apiLoader.services['lightsail'], '2016-11-28', { - get: function get() { - var model = __nccwpck_require__(5027); - model.paginators = (__nccwpck_require__(64145)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Lightsail; - - -/***/ }), - -/***/ 83516: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['location'] = {}; -AWS.Location = Service.defineService('location', ['2020-11-19']); -Object.defineProperty(apiLoader.services['location'], '2020-11-19', { - get: function get() { - var model = __nccwpck_require__(30204); - model.paginators = (__nccwpck_require__(3320)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Location; - - -/***/ }), - -/***/ 88340: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['lookoutequipment'] = {}; -AWS.LookoutEquipment = Service.defineService('lookoutequipment', ['2020-12-15']); -Object.defineProperty(apiLoader.services['lookoutequipment'], '2020-12-15', { - get: function get() { - var model = __nccwpck_require__(49659); - model.paginators = (__nccwpck_require__(25401)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.LookoutEquipment; - - -/***/ }), - -/***/ 83033: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['lookoutmetrics'] = {}; -AWS.LookoutMetrics = Service.defineService('lookoutmetrics', ['2017-07-25']); -Object.defineProperty(apiLoader.services['lookoutmetrics'], '2017-07-25', { - get: function get() { - var model = __nccwpck_require__(30231); - model.paginators = (__nccwpck_require__(44109)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.LookoutMetrics; - - -/***/ }), - -/***/ 71842: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['lookoutvision'] = {}; -AWS.LookoutVision = Service.defineService('lookoutvision', ['2020-11-20']); -Object.defineProperty(apiLoader.services['lookoutvision'], '2020-11-20', { - get: function get() { - var model = __nccwpck_require__(25490); - model.paginators = (__nccwpck_require__(99154)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.LookoutVision; - - -/***/ }), - -/***/ 20292: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['m2'] = {}; -AWS.M2 = Service.defineService('m2', ['2021-04-28']); -Object.defineProperty(apiLoader.services['m2'], '2021-04-28', { - get: function get() { - var model = __nccwpck_require__(23277); - model.paginators = (__nccwpck_require__(49759)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.M2; - - -/***/ }), - -/***/ 68904: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['machinelearning'] = {}; -AWS.MachineLearning = Service.defineService('machinelearning', ['2014-12-12']); -__nccwpck_require__(5506); -Object.defineProperty(apiLoader.services['machinelearning'], '2014-12-12', { - get: function get() { - var model = __nccwpck_require__(43617); - model.paginators = (__nccwpck_require__(73051)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(74488)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MachineLearning; - - -/***/ }), - -/***/ 76546: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['macie2'] = {}; -AWS.Macie2 = Service.defineService('macie2', ['2020-01-01']); -Object.defineProperty(apiLoader.services['macie2'], '2020-01-01', { - get: function get() { - var model = __nccwpck_require__(752); - model.paginators = (__nccwpck_require__(1764)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(29847)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Macie2; - - -/***/ }), - -/***/ 79649: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['mailmanager'] = {}; -AWS.MailManager = Service.defineService('mailmanager', ['2023-10-17']); -Object.defineProperty(apiLoader.services['mailmanager'], '2023-10-17', { - get: function get() { - var model = __nccwpck_require__(49117); - model.paginators = (__nccwpck_require__(21519)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MailManager; - - -/***/ }), - -/***/ 31016: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['managedblockchain'] = {}; -AWS.ManagedBlockchain = Service.defineService('managedblockchain', ['2018-09-24']); -Object.defineProperty(apiLoader.services['managedblockchain'], '2018-09-24', { - get: function get() { - var model = __nccwpck_require__(36936); - model.paginators = (__nccwpck_require__(98348)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ManagedBlockchain; - - -/***/ }), - -/***/ 64434: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['managedblockchainquery'] = {}; -AWS.ManagedBlockchainQuery = Service.defineService('managedblockchainquery', ['2023-05-04']); -Object.defineProperty(apiLoader.services['managedblockchainquery'], '2023-05-04', { - get: function get() { - var model = __nccwpck_require__(23419); - model.paginators = (__nccwpck_require__(80345)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(81370)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ManagedBlockchainQuery; - - -/***/ }), - -/***/ 64070: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['marketplaceagreement'] = {}; -AWS.MarketplaceAgreement = Service.defineService('marketplaceagreement', ['2020-03-01']); -Object.defineProperty(apiLoader.services['marketplaceagreement'], '2020-03-01', { - get: function get() { - var model = __nccwpck_require__(11263); - model.paginators = (__nccwpck_require__(91749)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MarketplaceAgreement; - - -/***/ }), - -/***/ 82089: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['marketplacecatalog'] = {}; -AWS.MarketplaceCatalog = Service.defineService('marketplacecatalog', ['2018-09-17']); -Object.defineProperty(apiLoader.services['marketplacecatalog'], '2018-09-17', { - get: function get() { - var model = __nccwpck_require__(11744); - model.paginators = (__nccwpck_require__(13076)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MarketplaceCatalog; - - -/***/ }), - -/***/ 95903: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['marketplacecommerceanalytics'] = {}; -AWS.MarketplaceCommerceAnalytics = Service.defineService('marketplacecommerceanalytics', ['2015-07-01']); -Object.defineProperty(apiLoader.services['marketplacecommerceanalytics'], '2015-07-01', { - get: function get() { - var model = __nccwpck_require__(83989); - model.paginators = (__nccwpck_require__(14615)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MarketplaceCommerceAnalytics; - - -/***/ }), - -/***/ 10091: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['marketplacedeployment'] = {}; -AWS.MarketplaceDeployment = Service.defineService('marketplacedeployment', ['2023-01-25']); -Object.defineProperty(apiLoader.services['marketplacedeployment'], '2023-01-25', { - get: function get() { - var model = __nccwpck_require__(85607); - model.paginators = (__nccwpck_require__(85277)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MarketplaceDeployment; - - -/***/ }), - -/***/ 57794: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['marketplaceentitlementservice'] = {}; -AWS.MarketplaceEntitlementService = Service.defineService('marketplaceentitlementservice', ['2017-01-11']); -Object.defineProperty(apiLoader.services['marketplaceentitlementservice'], '2017-01-11', { - get: function get() { - var model = __nccwpck_require__(85898); - model.paginators = (__nccwpck_require__(57882)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MarketplaceEntitlementService; - - -/***/ }), - -/***/ 50375: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['marketplacemetering'] = {}; -AWS.MarketplaceMetering = Service.defineService('marketplacemetering', ['2016-01-14']); -Object.defineProperty(apiLoader.services['marketplacemetering'], '2016-01-14', { - get: function get() { - var model = __nccwpck_require__(98854); - model.paginators = (__nccwpck_require__(94062)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MarketplaceMetering; - - -/***/ }), - -/***/ 42141: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['mediaconnect'] = {}; -AWS.MediaConnect = Service.defineService('mediaconnect', ['2018-11-14']); -Object.defineProperty(apiLoader.services['mediaconnect'], '2018-11-14', { - get: function get() { - var model = __nccwpck_require__(60227); - model.paginators = (__nccwpck_require__(34737)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(52626)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MediaConnect; - - -/***/ }), - -/***/ 87835: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['mediaconvert'] = {}; -AWS.MediaConvert = Service.defineService('mediaconvert', ['2017-08-29']); -Object.defineProperty(apiLoader.services['mediaconvert'], '2017-08-29', { - get: function get() { - var model = __nccwpck_require__(20239); - model.paginators = (__nccwpck_require__(77461)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MediaConvert; - - -/***/ }), - -/***/ 54817: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['medialive'] = {}; -AWS.MediaLive = Service.defineService('medialive', ['2017-10-14']); -Object.defineProperty(apiLoader.services['medialive'], '2017-10-14', { - get: function get() { - var model = __nccwpck_require__(41171); - model.paginators = (__nccwpck_require__(55521)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(59746)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MediaLive; - - -/***/ }), - -/***/ 3003: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['mediapackage'] = {}; -AWS.MediaPackage = Service.defineService('mediapackage', ['2017-10-12']); -Object.defineProperty(apiLoader.services['mediapackage'], '2017-10-12', { - get: function get() { - var model = __nccwpck_require__(99475); - model.paginators = (__nccwpck_require__(49441)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MediaPackage; - - -/***/ }), - -/***/ 13483: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['mediapackagev2'] = {}; -AWS.MediaPackageV2 = Service.defineService('mediapackagev2', ['2022-12-25']); -Object.defineProperty(apiLoader.services['mediapackagev2'], '2022-12-25', { - get: function get() { - var model = __nccwpck_require__(73639); - model.paginators = (__nccwpck_require__(37949)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(83414)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MediaPackageV2; - - -/***/ }), - -/***/ 81230: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['mediapackagevod'] = {}; -AWS.MediaPackageVod = Service.defineService('mediapackagevod', ['2018-11-07']); -Object.defineProperty(apiLoader.services['mediapackagevod'], '2018-11-07', { - get: function get() { - var model = __nccwpck_require__(12245); - model.paginators = (__nccwpck_require__(42519)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MediaPackageVod; - - -/***/ }), - -/***/ 22454: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['mediastore'] = {}; -AWS.MediaStore = Service.defineService('mediastore', ['2017-09-01']); -Object.defineProperty(apiLoader.services['mediastore'], '2017-09-01', { - get: function get() { - var model = __nccwpck_require__(73302); - model.paginators = (__nccwpck_require__(93054)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MediaStore; - - -/***/ }), - -/***/ 76070: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['mediastoredata'] = {}; -AWS.MediaStoreData = Service.defineService('mediastoredata', ['2017-09-01']); -Object.defineProperty(apiLoader.services['mediastoredata'], '2017-09-01', { - get: function get() { - var model = __nccwpck_require__(66489); - model.paginators = (__nccwpck_require__(43747)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MediaStoreData; - - -/***/ }), - -/***/ 38184: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['mediatailor'] = {}; -AWS.MediaTailor = Service.defineService('mediatailor', ['2018-04-23']); -Object.defineProperty(apiLoader.services['mediatailor'], '2018-04-23', { - get: function get() { - var model = __nccwpck_require__(64720); - model.paginators = (__nccwpck_require__(13028)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MediaTailor; - - -/***/ }), - -/***/ 67196: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['medicalimaging'] = {}; -AWS.MedicalImaging = Service.defineService('medicalimaging', ['2023-07-19']); -Object.defineProperty(apiLoader.services['medicalimaging'], '2023-07-19', { - get: function get() { - var model = __nccwpck_require__(1089); - model.paginators = (__nccwpck_require__(35707)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(45368)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MedicalImaging; - - -/***/ }), - -/***/ 86366: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['memorydb'] = {}; -AWS.MemoryDB = Service.defineService('memorydb', ['2021-01-01']); -Object.defineProperty(apiLoader.services['memorydb'], '2021-01-01', { - get: function get() { - var model = __nccwpck_require__(67155); - model.paginators = (__nccwpck_require__(75681)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MemoryDB; - - -/***/ }), - -/***/ 86845: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['mgn'] = {}; -AWS.Mgn = Service.defineService('mgn', ['2020-02-26']); -Object.defineProperty(apiLoader.services['mgn'], '2020-02-26', { - get: function get() { - var model = __nccwpck_require__(23021); - model.paginators = (__nccwpck_require__(85215)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Mgn; - - -/***/ }), - -/***/ 48568: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['migrationhub'] = {}; -AWS.MigrationHub = Service.defineService('migrationhub', ['2017-05-31']); -Object.defineProperty(apiLoader.services['migrationhub'], '2017-05-31', { - get: function get() { - var model = __nccwpck_require__(67864); - model.paginators = (__nccwpck_require__(45020)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MigrationHub; - - -/***/ }), - -/***/ 56522: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['migrationhubconfig'] = {}; -AWS.MigrationHubConfig = Service.defineService('migrationhubconfig', ['2019-06-30']); -Object.defineProperty(apiLoader.services['migrationhubconfig'], '2019-06-30', { - get: function get() { - var model = __nccwpck_require__(89792); - model.paginators = (__nccwpck_require__(55348)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MigrationHubConfig; - - -/***/ }), - -/***/ 47568: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['migrationhuborchestrator'] = {}; -AWS.MigrationHubOrchestrator = Service.defineService('migrationhuborchestrator', ['2021-08-28']); -Object.defineProperty(apiLoader.services['migrationhuborchestrator'], '2021-08-28', { - get: function get() { - var model = __nccwpck_require__(62625); - model.paginators = (__nccwpck_require__(21339)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(36024)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MigrationHubOrchestrator; - - -/***/ }), - -/***/ 6461: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['migrationhubrefactorspaces'] = {}; -AWS.MigrationHubRefactorSpaces = Service.defineService('migrationhubrefactorspaces', ['2021-10-26']); -Object.defineProperty(apiLoader.services['migrationhubrefactorspaces'], '2021-10-26', { - get: function get() { - var model = __nccwpck_require__(90514); - model.paginators = (__nccwpck_require__(85682)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MigrationHubRefactorSpaces; - - -/***/ }), - -/***/ 35425: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['migrationhubstrategy'] = {}; -AWS.MigrationHubStrategy = Service.defineService('migrationhubstrategy', ['2020-02-19']); -Object.defineProperty(apiLoader.services['migrationhubstrategy'], '2020-02-19', { - get: function get() { - var model = __nccwpck_require__(71815); - model.paginators = (__nccwpck_require__(85181)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MigrationHubStrategy; - - -/***/ }), - -/***/ 52917: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['mobileanalytics'] = {}; -AWS.MobileAnalytics = Service.defineService('mobileanalytics', ['2014-06-05']); -Object.defineProperty(apiLoader.services['mobileanalytics'], '2014-06-05', { - get: function get() { - var model = __nccwpck_require__(30577); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MobileAnalytics; - - -/***/ }), - -/***/ 60749: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['mq'] = {}; -AWS.MQ = Service.defineService('mq', ['2017-11-27']); -Object.defineProperty(apiLoader.services['mq'], '2017-11-27', { - get: function get() { - var model = __nccwpck_require__(65872); - model.paginators = (__nccwpck_require__(14052)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MQ; - - -/***/ }), - -/***/ 25776: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['mturk'] = {}; -AWS.MTurk = Service.defineService('mturk', ['2017-01-17']); -Object.defineProperty(apiLoader.services['mturk'], '2017-01-17', { - get: function get() { - var model = __nccwpck_require__(88926); - model.paginators = (__nccwpck_require__(24470)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MTurk; - - -/***/ }), - -/***/ 29729: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['mwaa'] = {}; -AWS.MWAA = Service.defineService('mwaa', ['2020-07-01']); -Object.defineProperty(apiLoader.services['mwaa'], '2020-07-01', { - get: function get() { - var model = __nccwpck_require__(94379); - model.paginators = (__nccwpck_require__(68489)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.MWAA; - - -/***/ }), - -/***/ 99442: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['neptune'] = {}; -AWS.Neptune = Service.defineService('neptune', ['2014-10-31']); -__nccwpck_require__(94492); -Object.defineProperty(apiLoader.services['neptune'], '2014-10-31', { - get: function get() { - var model = __nccwpck_require__(50746); - model.paginators = (__nccwpck_require__(64970)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(97553)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Neptune; - - -/***/ }), - -/***/ 21682: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['neptunedata'] = {}; -AWS.Neptunedata = Service.defineService('neptunedata', ['2023-08-01']); -Object.defineProperty(apiLoader.services['neptunedata'], '2023-08-01', { - get: function get() { - var model = __nccwpck_require__(76672); - model.paginators = (__nccwpck_require__(73332)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Neptunedata; - - -/***/ }), - -/***/ 20653: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['networkfirewall'] = {}; -AWS.NetworkFirewall = Service.defineService('networkfirewall', ['2020-11-12']); -Object.defineProperty(apiLoader.services['networkfirewall'], '2020-11-12', { - get: function get() { - var model = __nccwpck_require__(64111); - model.paginators = (__nccwpck_require__(19541)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.NetworkFirewall; - - -/***/ }), - -/***/ 87374: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['networkmanager'] = {}; -AWS.NetworkManager = Service.defineService('networkmanager', ['2019-07-05']); -Object.defineProperty(apiLoader.services['networkmanager'], '2019-07-05', { - get: function get() { - var model = __nccwpck_require__(55221); - model.paginators = (__nccwpck_require__(21890)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.NetworkManager; - - -/***/ }), - -/***/ 74407: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['networkmonitor'] = {}; -AWS.NetworkMonitor = Service.defineService('networkmonitor', ['2023-08-01']); -Object.defineProperty(apiLoader.services['networkmonitor'], '2023-08-01', { - get: function get() { - var model = __nccwpck_require__(24095); - model.paginators = (__nccwpck_require__(73669)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(90206)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.NetworkMonitor; - - -/***/ }), - -/***/ 24806: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['nimble'] = {}; -AWS.Nimble = Service.defineService('nimble', ['2020-08-01']); -Object.defineProperty(apiLoader.services['nimble'], '2020-08-01', { - get: function get() { - var model = __nccwpck_require__(55649); - model.paginators = (__nccwpck_require__(16795)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(50744)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Nimble; - - -/***/ }), - -/***/ 21528: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['oam'] = {}; -AWS.OAM = Service.defineService('oam', ['2022-06-10']); -Object.defineProperty(apiLoader.services['oam'], '2022-06-10', { - get: function get() { - var model = __nccwpck_require__(25089); - model.paginators = (__nccwpck_require__(28347)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.OAM; - - -/***/ }), - -/***/ 74738: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['omics'] = {}; -AWS.Omics = Service.defineService('omics', ['2022-11-28']); -Object.defineProperty(apiLoader.services['omics'], '2022-11-28', { - get: function get() { - var model = __nccwpck_require__(15416); - model.paginators = (__nccwpck_require__(56860)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(4188)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Omics; - - -/***/ }), - -/***/ 95067: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['opensearch'] = {}; -AWS.OpenSearch = Service.defineService('opensearch', ['2021-01-01']); -Object.defineProperty(apiLoader.services['opensearch'], '2021-01-01', { - get: function get() { - var model = __nccwpck_require__(11248); - model.paginators = (__nccwpck_require__(39492)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.OpenSearch; - - -/***/ }), - -/***/ 18085: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['opensearchserverless'] = {}; -AWS.OpenSearchServerless = Service.defineService('opensearchserverless', ['2021-11-01']); -Object.defineProperty(apiLoader.services['opensearchserverless'], '2021-11-01', { - get: function get() { - var model = __nccwpck_require__(32293); - model.paginators = (__nccwpck_require__(35687)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.OpenSearchServerless; - - -/***/ }), - -/***/ 80049: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['opsworks'] = {}; -AWS.OpsWorks = Service.defineService('opsworks', ['2013-02-18']); -Object.defineProperty(apiLoader.services['opsworks'], '2013-02-18', { - get: function get() { - var model = __nccwpck_require__(97950); - model.paginators = (__nccwpck_require__(22582)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(2245)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.OpsWorks; - - -/***/ }), - -/***/ 31881: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['opsworkscm'] = {}; -AWS.OpsWorksCM = Service.defineService('opsworkscm', ['2016-11-01']); -Object.defineProperty(apiLoader.services['opsworkscm'], '2016-11-01', { - get: function get() { - var model = __nccwpck_require__(20523); - model.paginators = (__nccwpck_require__(42505)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(54986)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.OpsWorksCM; - - -/***/ }), - -/***/ 7299: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['organizations'] = {}; -AWS.Organizations = Service.defineService('organizations', ['2016-11-28']); -Object.defineProperty(apiLoader.services['organizations'], '2016-11-28', { - get: function get() { - var model = __nccwpck_require__(94872); - model.paginators = (__nccwpck_require__(2940)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Organizations; - - -/***/ }), - -/***/ 87057: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['osis'] = {}; -AWS.OSIS = Service.defineService('osis', ['2022-01-01']); -Object.defineProperty(apiLoader.services['osis'], '2022-01-01', { - get: function get() { - var model = __nccwpck_require__(16383); - model.paginators = (__nccwpck_require__(92581)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.OSIS; - - -/***/ }), - -/***/ 57116: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['outposts'] = {}; -AWS.Outposts = Service.defineService('outposts', ['2019-12-03']); -Object.defineProperty(apiLoader.services['outposts'], '2019-12-03', { - get: function get() { - var model = __nccwpck_require__(3732); - model.paginators = (__nccwpck_require__(64992)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Outposts; - - -/***/ }), - -/***/ 43728: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['panorama'] = {}; -AWS.Panorama = Service.defineService('panorama', ['2019-07-24']); -Object.defineProperty(apiLoader.services['panorama'], '2019-07-24', { - get: function get() { - var model = __nccwpck_require__(46701); - model.paginators = (__nccwpck_require__(88895)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Panorama; - - -/***/ }), - -/***/ 37855: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['paymentcryptography'] = {}; -AWS.PaymentCryptography = Service.defineService('paymentcryptography', ['2021-09-14']); -Object.defineProperty(apiLoader.services['paymentcryptography'], '2021-09-14', { - get: function get() { - var model = __nccwpck_require__(66427); - model.paginators = (__nccwpck_require__(58873)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(62234)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.PaymentCryptography; - - -/***/ }), - -/***/ 15271: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['paymentcryptographydata'] = {}; -AWS.PaymentCryptographyData = Service.defineService('paymentcryptographydata', ['2022-02-03']); -Object.defineProperty(apiLoader.services['paymentcryptographydata'], '2022-02-03', { - get: function get() { - var model = __nccwpck_require__(82098); - model.paginators = (__nccwpck_require__(20018)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(42009)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.PaymentCryptographyData; - - -/***/ }), - -/***/ 87689: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['pcaconnectorad'] = {}; -AWS.PcaConnectorAd = Service.defineService('pcaconnectorad', ['2018-05-10']); -Object.defineProperty(apiLoader.services['pcaconnectorad'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(79534); - model.paginators = (__nccwpck_require__(92518)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.PcaConnectorAd; - - -/***/ }), - -/***/ 57003: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['pcaconnectorscep'] = {}; -AWS.PcaConnectorScep = Service.defineService('pcaconnectorscep', ['2018-05-10']); -Object.defineProperty(apiLoader.services['pcaconnectorscep'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(65376); - model.paginators = (__nccwpck_require__(82100)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(30919)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.PcaConnectorScep; - - -/***/ }), - -/***/ 75921: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['pcs'] = {}; -AWS.PCS = Service.defineService('pcs', ['2023-02-10']); -Object.defineProperty(apiLoader.services['pcs'], '2023-02-10', { - get: function get() { - var model = __nccwpck_require__(50389); - model.paginators = (__nccwpck_require__(3639)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(25068)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.PCS; - - -/***/ }), - -/***/ 28245: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['personalize'] = {}; -AWS.Personalize = Service.defineService('personalize', ['2018-05-22']); -Object.defineProperty(apiLoader.services['personalize'], '2018-05-22', { - get: function get() { - var model = __nccwpck_require__(50129); - model.paginators = (__nccwpck_require__(71435)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Personalize; - - -/***/ }), - -/***/ 53660: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['personalizeevents'] = {}; -AWS.PersonalizeEvents = Service.defineService('personalizeevents', ['2018-03-22']); -Object.defineProperty(apiLoader.services['personalizeevents'], '2018-03-22', { - get: function get() { - var model = __nccwpck_require__(82861); - model.paginators = (__nccwpck_require__(63967)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.PersonalizeEvents; - - -/***/ }), - -/***/ 89949: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['personalizeruntime'] = {}; -AWS.PersonalizeRuntime = Service.defineService('personalizeruntime', ['2018-05-22']); -Object.defineProperty(apiLoader.services['personalizeruntime'], '2018-05-22', { - get: function get() { - var model = __nccwpck_require__(94858); - model.paginators = (__nccwpck_require__(86970)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.PersonalizeRuntime; - - -/***/ }), - -/***/ 80736: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['pi'] = {}; -AWS.PI = Service.defineService('pi', ['2018-02-27']); -Object.defineProperty(apiLoader.services['pi'], '2018-02-27', { - get: function get() { - var model = __nccwpck_require__(27654); - model.paginators = (__nccwpck_require__(21070)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.PI; - - -/***/ }), - -/***/ 50436: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['pinpoint'] = {}; -AWS.Pinpoint = Service.defineService('pinpoint', ['2016-12-01']); -Object.defineProperty(apiLoader.services['pinpoint'], '2016-12-01', { - get: function get() { - var model = __nccwpck_require__(83619); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Pinpoint; - - -/***/ }), - -/***/ 83750: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['pinpointemail'] = {}; -AWS.PinpointEmail = Service.defineService('pinpointemail', ['2018-07-26']); -Object.defineProperty(apiLoader.services['pinpointemail'], '2018-07-26', { - get: function get() { - var model = __nccwpck_require__(18103); - model.paginators = (__nccwpck_require__(90925)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.PinpointEmail; - - -/***/ }), - -/***/ 58429: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['pinpointsmsvoice'] = {}; -AWS.PinpointSMSVoice = Service.defineService('pinpointsmsvoice', ['2018-09-05']); -Object.defineProperty(apiLoader.services['pinpointsmsvoice'], '2018-09-05', { - get: function get() { - var model = __nccwpck_require__(4230); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.PinpointSMSVoice; - - -/***/ }), - -/***/ 42205: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['pinpointsmsvoicev2'] = {}; -AWS.PinpointSMSVoiceV2 = Service.defineService('pinpointsmsvoicev2', ['2022-03-31']); -Object.defineProperty(apiLoader.services['pinpointsmsvoicev2'], '2022-03-31', { - get: function get() { - var model = __nccwpck_require__(11101); - model.paginators = (__nccwpck_require__(49807)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(39364)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.PinpointSMSVoiceV2; - - -/***/ }), - -/***/ 19374: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['pipes'] = {}; -AWS.Pipes = Service.defineService('pipes', ['2015-10-07']); -Object.defineProperty(apiLoader.services['pipes'], '2015-10-07', { - get: function get() { - var model = __nccwpck_require__(51876); - model.paginators = (__nccwpck_require__(87344)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(98427)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Pipes; - - -/***/ }), - -/***/ 3027: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['polly'] = {}; -AWS.Polly = Service.defineService('polly', ['2016-06-10']); -__nccwpck_require__(50321); -Object.defineProperty(apiLoader.services['polly'], '2016-06-10', { - get: function get() { - var model = __nccwpck_require__(97347); - model.paginators = (__nccwpck_require__(39921)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Polly; - - -/***/ }), - -/***/ 78025: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['pricing'] = {}; -AWS.Pricing = Service.defineService('pricing', ['2017-10-15']); -Object.defineProperty(apiLoader.services['pricing'], '2017-10-15', { - get: function get() { - var model = __nccwpck_require__(6572); - model.paginators = (__nccwpck_require__(63208)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(65907)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Pricing; - - -/***/ }), - -/***/ 33991: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['privatenetworks'] = {}; -AWS.PrivateNetworks = Service.defineService('privatenetworks', ['2021-12-03']); -Object.defineProperty(apiLoader.services['privatenetworks'], '2021-12-03', { - get: function get() { - var model = __nccwpck_require__(98058); - model.paginators = (__nccwpck_require__(77178)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.PrivateNetworks; - - -/***/ }), - -/***/ 3447: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['proton'] = {}; -AWS.Proton = Service.defineService('proton', ['2020-07-20']); -Object.defineProperty(apiLoader.services['proton'], '2020-07-20', { - get: function get() { - var model = __nccwpck_require__(54104); - model.paginators = (__nccwpck_require__(65532)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(58767)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Proton; - - -/***/ }), - -/***/ 75924: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['qapps'] = {}; -AWS.QApps = Service.defineService('qapps', ['2023-11-27']); -Object.defineProperty(apiLoader.services['qapps'], '2023-11-27', { - get: function get() { - var model = __nccwpck_require__(99712); - model.paginators = (__nccwpck_require__(2228)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(54695)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.QApps; - - -/***/ }), - -/***/ 20966: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['qbusiness'] = {}; -AWS.QBusiness = Service.defineService('qbusiness', ['2023-11-27']); -Object.defineProperty(apiLoader.services['qbusiness'], '2023-11-27', { - get: function get() { - var model = __nccwpck_require__(56178); - model.paginators = (__nccwpck_require__(84050)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(73977)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.QBusiness; - - -/***/ }), - -/***/ 42844: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['qconnect'] = {}; -AWS.QConnect = Service.defineService('qconnect', ['2020-10-19']); -Object.defineProperty(apiLoader.services['qconnect'], '2020-10-19', { - get: function get() { - var model = __nccwpck_require__(2229); - model.paginators = (__nccwpck_require__(86679)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.QConnect; - - -/***/ }), - -/***/ 62640: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['qldb'] = {}; -AWS.QLDB = Service.defineService('qldb', ['2019-01-02']); -Object.defineProperty(apiLoader.services['qldb'], '2019-01-02', { - get: function get() { - var model = __nccwpck_require__(51827); - model.paginators = (__nccwpck_require__(61793)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.QLDB; - - -/***/ }), - -/***/ 41398: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['qldbsession'] = {}; -AWS.QLDBSession = Service.defineService('qldbsession', ['2019-07-11']); -Object.defineProperty(apiLoader.services['qldbsession'], '2019-07-11', { - get: function get() { - var model = __nccwpck_require__(93182); - model.paginators = (__nccwpck_require__(67062)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.QLDBSession; - - -/***/ }), - -/***/ 2747: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['quicksight'] = {}; -AWS.QuickSight = Service.defineService('quicksight', ['2018-04-01']); -Object.defineProperty(apiLoader.services['quicksight'], '2018-04-01', { - get: function get() { - var model = __nccwpck_require__(65625); - model.paginators = (__nccwpck_require__(74595)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.QuickSight; - - -/***/ }), - -/***/ 29607: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ram'] = {}; -AWS.RAM = Service.defineService('ram', ['2018-01-04']); -Object.defineProperty(apiLoader.services['ram'], '2018-01-04', { - get: function get() { - var model = __nccwpck_require__(44563); - model.paginators = (__nccwpck_require__(65825)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.RAM; - - -/***/ }), - -/***/ 22816: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['rbin'] = {}; -AWS.Rbin = Service.defineService('rbin', ['2021-06-15']); -Object.defineProperty(apiLoader.services['rbin'], '2021-06-15', { - get: function get() { - var model = __nccwpck_require__(58775); - model.paginators = (__nccwpck_require__(48621)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Rbin; - - -/***/ }), - -/***/ 59132: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['rds'] = {}; -AWS.RDS = Service.defineService('rds', ['2013-01-10', '2013-02-12', '2013-09-09', '2014-09-01', '2014-09-01*', '2014-10-31']); -__nccwpck_require__(85726); -Object.defineProperty(apiLoader.services['rds'], '2013-01-10', { - get: function get() { - var model = __nccwpck_require__(9506); - model.paginators = (__nccwpck_require__(76706)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['rds'], '2013-02-12', { - get: function get() { - var model = __nccwpck_require__(85191); - model.paginators = (__nccwpck_require__(66333)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['rds'], '2013-09-09', { - get: function get() { - var model = __nccwpck_require__(66180); - model.paginators = (__nccwpck_require__(22672)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(46363)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['rds'], '2014-09-01', { - get: function get() { - var model = __nccwpck_require__(44009); - model.paginators = (__nccwpck_require__(51315)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); -Object.defineProperty(apiLoader.services['rds'], '2014-10-31', { - get: function get() { - var model = __nccwpck_require__(26128); - model.paginators = (__nccwpck_require__(132)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(50135)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.RDS; - - -/***/ }), - -/***/ 44765: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['rdsdataservice'] = {}; -AWS.RDSDataService = Service.defineService('rdsdataservice', ['2018-08-01']); -__nccwpck_require__(99731); -Object.defineProperty(apiLoader.services['rdsdataservice'], '2018-08-01', { - get: function get() { - var model = __nccwpck_require__(32387); - model.paginators = (__nccwpck_require__(22961)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.RDSDataService; - - -/***/ }), - -/***/ 23310: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['redshift'] = {}; -AWS.Redshift = Service.defineService('redshift', ['2012-12-01']); -Object.defineProperty(apiLoader.services['redshift'], '2012-12-01', { - get: function get() { - var model = __nccwpck_require__(85761); - model.paginators = (__nccwpck_require__(80251)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(80856)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Redshift; - - -/***/ }), - -/***/ 95134: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['redshiftdata'] = {}; -AWS.RedshiftData = Service.defineService('redshiftdata', ['2019-12-20']); -Object.defineProperty(apiLoader.services['redshiftdata'], '2019-12-20', { - get: function get() { - var model = __nccwpck_require__(91382); - model.paginators = (__nccwpck_require__(23838)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.RedshiftData; - - -/***/ }), - -/***/ 57824: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['redshiftserverless'] = {}; -AWS.RedshiftServerless = Service.defineService('redshiftserverless', ['2021-04-21']); -Object.defineProperty(apiLoader.services['redshiftserverless'], '2021-04-21', { - get: function get() { - var model = __nccwpck_require__(98705); - model.paginators = (__nccwpck_require__(83115)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.RedshiftServerless; - - -/***/ }), - -/***/ 36228: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['rekognition'] = {}; -AWS.Rekognition = Service.defineService('rekognition', ['2016-06-27']); -Object.defineProperty(apiLoader.services['rekognition'], '2016-06-27', { - get: function get() { - var model = __nccwpck_require__(34856); - model.paginators = (__nccwpck_require__(78828)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(27359)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Rekognition; - - -/***/ }), - -/***/ 19164: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['repostspace'] = {}; -AWS.Repostspace = Service.defineService('repostspace', ['2022-05-13']); -Object.defineProperty(apiLoader.services['repostspace'], '2022-05-13', { - get: function get() { - var model = __nccwpck_require__(58807); - model.paginators = (__nccwpck_require__(84429)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Repostspace; - - -/***/ }), - -/***/ 7515: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['resiliencehub'] = {}; -AWS.Resiliencehub = Service.defineService('resiliencehub', ['2020-04-30']); -Object.defineProperty(apiLoader.services['resiliencehub'], '2020-04-30', { - get: function get() { - var model = __nccwpck_require__(32814); - model.paginators = (__nccwpck_require__(82598)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Resiliencehub; - - -/***/ }), - -/***/ 18360: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['resourceexplorer2'] = {}; -AWS.ResourceExplorer2 = Service.defineService('resourceexplorer2', ['2022-07-28']); -Object.defineProperty(apiLoader.services['resourceexplorer2'], '2022-07-28', { - get: function get() { - var model = __nccwpck_require__(46159); - model.paginators = (__nccwpck_require__(45301)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ResourceExplorer2; - - -/***/ }), - -/***/ 35019: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['resourcegroups'] = {}; -AWS.ResourceGroups = Service.defineService('resourcegroups', ['2017-11-27']); -Object.defineProperty(apiLoader.services['resourcegroups'], '2017-11-27', { - get: function get() { - var model = __nccwpck_require__(98903); - model.paginators = (__nccwpck_require__(44890)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ResourceGroups; - - -/***/ }), - -/***/ 19998: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['resourcegroupstaggingapi'] = {}; -AWS.ResourceGroupsTaggingAPI = Service.defineService('resourcegroupstaggingapi', ['2017-01-26']); -Object.defineProperty(apiLoader.services['resourcegroupstaggingapi'], '2017-01-26', { - get: function get() { - var model = __nccwpck_require__(70749); - model.paginators = (__nccwpck_require__(18511)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ResourceGroupsTaggingAPI; - - -/***/ }), - -/***/ 14027: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['robomaker'] = {}; -AWS.RoboMaker = Service.defineService('robomaker', ['2018-06-29']); -Object.defineProperty(apiLoader.services['robomaker'], '2018-06-29', { - get: function get() { - var model = __nccwpck_require__(45697); - model.paginators = (__nccwpck_require__(33243)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.RoboMaker; - - -/***/ }), - -/***/ 70987: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['rolesanywhere'] = {}; -AWS.RolesAnywhere = Service.defineService('rolesanywhere', ['2018-05-10']); -Object.defineProperty(apiLoader.services['rolesanywhere'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(38254); - model.paginators = (__nccwpck_require__(98086)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.RolesAnywhere; - - -/***/ }), - -/***/ 29386: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['route53'] = {}; -AWS.Route53 = Service.defineService('route53', ['2013-04-01']); -__nccwpck_require__(43944); -Object.defineProperty(apiLoader.services['route53'], '2013-04-01', { - get: function get() { - var model = __nccwpck_require__(28835); - model.paginators = (__nccwpck_require__(3217)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(49778)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Route53; - - -/***/ }), - -/***/ 88933: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['route53domains'] = {}; -AWS.Route53Domains = Service.defineService('route53domains', ['2014-05-15']); -Object.defineProperty(apiLoader.services['route53domains'], '2014-05-15', { - get: function get() { - var model = __nccwpck_require__(45999); - model.paginators = (__nccwpck_require__(43221)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Route53Domains; - - -/***/ }), - -/***/ 61912: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['route53profiles'] = {}; -AWS.Route53Profiles = Service.defineService('route53profiles', ['2018-05-10']); -Object.defineProperty(apiLoader.services['route53profiles'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(12075); - model.paginators = (__nccwpck_require__(45353)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Route53Profiles; - - -/***/ }), - -/***/ 98643: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['route53recoverycluster'] = {}; -AWS.Route53RecoveryCluster = Service.defineService('route53recoverycluster', ['2019-12-02']); -Object.defineProperty(apiLoader.services['route53recoverycluster'], '2019-12-02', { - get: function get() { - var model = __nccwpck_require__(54898); - model.paginators = (__nccwpck_require__(80242)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Route53RecoveryCluster; - - -/***/ }), - -/***/ 60374: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['route53recoverycontrolconfig'] = {}; -AWS.Route53RecoveryControlConfig = Service.defineService('route53recoverycontrolconfig', ['2020-11-02']); -Object.defineProperty(apiLoader.services['route53recoverycontrolconfig'], '2020-11-02', { - get: function get() { - var model = __nccwpck_require__(67665); - model.paginators = (__nccwpck_require__(89163)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(58440)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Route53RecoveryControlConfig; - - -/***/ }), - -/***/ 32113: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['route53recoveryreadiness'] = {}; -AWS.Route53RecoveryReadiness = Service.defineService('route53recoveryreadiness', ['2019-12-02']); -Object.defineProperty(apiLoader.services['route53recoveryreadiness'], '2019-12-02', { - get: function get() { - var model = __nccwpck_require__(1172); - model.paginators = (__nccwpck_require__(30752)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Route53RecoveryReadiness; - - -/***/ }), - -/***/ 79772: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['route53resolver'] = {}; -AWS.Route53Resolver = Service.defineService('route53resolver', ['2018-04-01']); -Object.defineProperty(apiLoader.services['route53resolver'], '2018-04-01', { - get: function get() { - var model = __nccwpck_require__(64036); - model.paginators = (__nccwpck_require__(83600)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Route53Resolver; - - -/***/ }), - -/***/ 62875: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['rum'] = {}; -AWS.RUM = Service.defineService('rum', ['2018-05-10']); -Object.defineProperty(apiLoader.services['rum'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(96554); - model.paginators = (__nccwpck_require__(954)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.RUM; - - -/***/ }), - -/***/ 67545: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['s3'] = {}; -AWS.S3 = Service.defineService('s3', ['2006-03-01']); -__nccwpck_require__(51919); -Object.defineProperty(apiLoader.services['s3'], '2006-03-01', { - get: function get() { - var model = __nccwpck_require__(82879); - model.paginators = (__nccwpck_require__(45221)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(23934)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.S3; - - -/***/ }), - -/***/ 18776: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['s3control'] = {}; -AWS.S3Control = Service.defineService('s3control', ['2018-08-20']); -__nccwpck_require__(5574); -Object.defineProperty(apiLoader.services['s3control'], '2018-08-20', { - get: function get() { - var model = __nccwpck_require__(1137); - model.paginators = (__nccwpck_require__(52491)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.S3Control; - - -/***/ }), - -/***/ 28734: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['s3outposts'] = {}; -AWS.S3Outposts = Service.defineService('s3outposts', ['2017-07-25']); -Object.defineProperty(apiLoader.services['s3outposts'], '2017-07-25', { - get: function get() { - var model = __nccwpck_require__(68894); - model.paginators = (__nccwpck_require__(85398)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.S3Outposts; - - -/***/ }), - -/***/ 94455: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sagemaker'] = {}; -AWS.SageMaker = Service.defineService('sagemaker', ['2017-07-24']); -Object.defineProperty(apiLoader.services['sagemaker'], '2017-07-24', { - get: function get() { - var model = __nccwpck_require__(87526); - model.paginators = (__nccwpck_require__(88398)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(39741)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SageMaker; - - -/***/ }), - -/***/ 16558: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sagemakeredge'] = {}; -AWS.SagemakerEdge = Service.defineService('sagemakeredge', ['2020-09-23']); -Object.defineProperty(apiLoader.services['sagemakeredge'], '2020-09-23', { - get: function get() { - var model = __nccwpck_require__(56901); - model.paginators = (__nccwpck_require__(85415)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SagemakerEdge; - - -/***/ }), - -/***/ 14354: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sagemakerfeaturestoreruntime'] = {}; -AWS.SageMakerFeatureStoreRuntime = Service.defineService('sagemakerfeaturestoreruntime', ['2020-07-01']); -Object.defineProperty(apiLoader.services['sagemakerfeaturestoreruntime'], '2020-07-01', { - get: function get() { - var model = __nccwpck_require__(71366); - model.paginators = (__nccwpck_require__(14574)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SageMakerFeatureStoreRuntime; - - -/***/ }), - -/***/ 97040: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sagemakergeospatial'] = {}; -AWS.SageMakerGeospatial = Service.defineService('sagemakergeospatial', ['2020-05-27']); -Object.defineProperty(apiLoader.services['sagemakergeospatial'], '2020-05-27', { - get: function get() { - var model = __nccwpck_require__(81691); - model.paginators = (__nccwpck_require__(76857)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SageMakerGeospatial; - - -/***/ }), - -/***/ 34798: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sagemakermetrics'] = {}; -AWS.SageMakerMetrics = Service.defineService('sagemakermetrics', ['2022-09-30']); -Object.defineProperty(apiLoader.services['sagemakermetrics'], '2022-09-30', { - get: function get() { - var model = __nccwpck_require__(25145); - model.paginators = (__nccwpck_require__(68931)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SageMakerMetrics; - - -/***/ }), - -/***/ 10579: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sagemakerruntime'] = {}; -AWS.SageMakerRuntime = Service.defineService('sagemakerruntime', ['2017-05-13']); -Object.defineProperty(apiLoader.services['sagemakerruntime'], '2017-05-13', { - get: function get() { - var model = __nccwpck_require__(77512); - model.paginators = (__nccwpck_require__(85740)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SageMakerRuntime; - - -/***/ }), - -/***/ 50725: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['savingsplans'] = {}; -AWS.SavingsPlans = Service.defineService('savingsplans', ['2019-06-28']); -Object.defineProperty(apiLoader.services['savingsplans'], '2019-06-28', { - get: function get() { - var model = __nccwpck_require__(26898); - model.paginators = (__nccwpck_require__(99698)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SavingsPlans; - - -/***/ }), - -/***/ 20174: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['scheduler'] = {}; -AWS.Scheduler = Service.defineService('scheduler', ['2021-06-30']); -Object.defineProperty(apiLoader.services['scheduler'], '2021-06-30', { - get: function get() { - var model = __nccwpck_require__(84768); - model.paginators = (__nccwpck_require__(60852)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Scheduler; - - -/***/ }), - -/***/ 60095: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['schemas'] = {}; -AWS.Schemas = Service.defineService('schemas', ['2019-12-02']); -Object.defineProperty(apiLoader.services['schemas'], '2019-12-02', { - get: function get() { - var model = __nccwpck_require__(15970); - model.paginators = (__nccwpck_require__(67253)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(97097)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Schemas; - - -/***/ }), - -/***/ 29667: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['secretsmanager'] = {}; -AWS.SecretsManager = Service.defineService('secretsmanager', ['2017-10-17']); -Object.defineProperty(apiLoader.services['secretsmanager'], '2017-10-17', { - get: function get() { - var model = __nccwpck_require__(41108); - model.paginators = (__nccwpck_require__(49088)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SecretsManager; - - -/***/ }), - -/***/ 13286: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['securityhub'] = {}; -AWS.SecurityHub = Service.defineService('securityhub', ['2018-10-26']); -Object.defineProperty(apiLoader.services['securityhub'], '2018-10-26', { - get: function get() { - var model = __nccwpck_require__(3146); - model.paginators = (__nccwpck_require__(4058)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SecurityHub; - - -/***/ }), - -/***/ 98286: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['securitylake'] = {}; -AWS.SecurityLake = Service.defineService('securitylake', ['2018-05-10']); -Object.defineProperty(apiLoader.services['securitylake'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(32897); - model.paginators = (__nccwpck_require__(33819)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SecurityLake; - - -/***/ }), - -/***/ 70439: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['serverlessapplicationrepository'] = {}; -AWS.ServerlessApplicationRepository = Service.defineService('serverlessapplicationrepository', ['2017-09-08']); -Object.defineProperty(apiLoader.services['serverlessapplicationrepository'], '2017-09-08', { - get: function get() { - var model = __nccwpck_require__(13368); - model.paginators = (__nccwpck_require__(38460)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ServerlessApplicationRepository; - - -/***/ }), - -/***/ 45505: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['servicecatalog'] = {}; -AWS.ServiceCatalog = Service.defineService('servicecatalog', ['2015-12-10']); -Object.defineProperty(apiLoader.services['servicecatalog'], '2015-12-10', { - get: function get() { - var model = __nccwpck_require__(89159); - model.paginators = (__nccwpck_require__(73021)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ServiceCatalog; - - -/***/ }), - -/***/ 61201: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['servicecatalogappregistry'] = {}; -AWS.ServiceCatalogAppRegistry = Service.defineService('servicecatalogappregistry', ['2020-06-24']); -Object.defineProperty(apiLoader.services['servicecatalogappregistry'], '2020-06-24', { - get: function get() { - var model = __nccwpck_require__(18936); - model.paginators = (__nccwpck_require__(70524)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ServiceCatalogAppRegistry; - - -/***/ }), - -/***/ 15240: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['servicediscovery'] = {}; -AWS.ServiceDiscovery = Service.defineService('servicediscovery', ['2017-03-14']); -Object.defineProperty(apiLoader.services['servicediscovery'], '2017-03-14', { - get: function get() { - var model = __nccwpck_require__(63152); - model.paginators = (__nccwpck_require__(21252)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ServiceDiscovery; - - -/***/ }), - -/***/ 33393: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['servicequotas'] = {}; -AWS.ServiceQuotas = Service.defineService('servicequotas', ['2019-06-24']); -Object.defineProperty(apiLoader.services['servicequotas'], '2019-06-24', { - get: function get() { - var model = __nccwpck_require__(29088); - model.paginators = (__nccwpck_require__(21332)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.ServiceQuotas; - - -/***/ }), - -/***/ 4774: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ses'] = {}; -AWS.SES = Service.defineService('ses', ['2010-12-01']); -Object.defineProperty(apiLoader.services['ses'], '2010-12-01', { - get: function get() { - var model = __nccwpck_require__(6392); - model.paginators = (__nccwpck_require__(41340)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(62639)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SES; - - -/***/ }), - -/***/ 58354: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sesv2'] = {}; -AWS.SESV2 = Service.defineService('sesv2', ['2019-09-27']); -Object.defineProperty(apiLoader.services['sesv2'], '2019-09-27', { - get: function get() { - var model = __nccwpck_require__(38612); - model.paginators = (__nccwpck_require__(14400)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SESV2; - - -/***/ }), - -/***/ 47674: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['shield'] = {}; -AWS.Shield = Service.defineService('shield', ['2016-06-02']); -Object.defineProperty(apiLoader.services['shield'], '2016-06-02', { - get: function get() { - var model = __nccwpck_require__(66579); - model.paginators = (__nccwpck_require__(44321)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Shield; - - -/***/ }), - -/***/ 85925: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['signer'] = {}; -AWS.Signer = Service.defineService('signer', ['2017-08-25']); -Object.defineProperty(apiLoader.services['signer'], '2017-08-25', { - get: function get() { - var model = __nccwpck_require__(1372); - model.paginators = (__nccwpck_require__(32875)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(73091)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Signer; - - -/***/ }), - -/***/ 87303: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['simpledb'] = {}; -AWS.SimpleDB = Service.defineService('simpledb', ['2009-04-15']); -Object.defineProperty(apiLoader.services['simpledb'], '2009-04-15', { - get: function get() { - var model = __nccwpck_require__(62391); - model.paginators = (__nccwpck_require__(6029)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SimpleDB; - - -/***/ }), - -/***/ 60044: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['simspaceweaver'] = {}; -AWS.SimSpaceWeaver = Service.defineService('simspaceweaver', ['2022-10-28']); -Object.defineProperty(apiLoader.services['simspaceweaver'], '2022-10-28', { - get: function get() { - var model = __nccwpck_require__(55631); - model.paginators = (__nccwpck_require__(26101)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SimSpaceWeaver; - - -/***/ }), - -/***/ 99486: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sms'] = {}; -AWS.SMS = Service.defineService('sms', ['2016-10-24']); -Object.defineProperty(apiLoader.services['sms'], '2016-10-24', { - get: function get() { - var model = __nccwpck_require__(28514); - model.paginators = (__nccwpck_require__(86242)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SMS; - - -/***/ }), - -/***/ 77393: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['snowball'] = {}; -AWS.Snowball = Service.defineService('snowball', ['2016-06-30']); -Object.defineProperty(apiLoader.services['snowball'], '2016-06-30', { - get: function get() { - var model = __nccwpck_require__(12740); - model.paginators = (__nccwpck_require__(16653)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Snowball; - - -/***/ }), - -/***/ 27389: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['snowdevicemanagement'] = {}; -AWS.SnowDeviceManagement = Service.defineService('snowdevicemanagement', ['2021-08-04']); -Object.defineProperty(apiLoader.services['snowdevicemanagement'], '2021-08-04', { - get: function get() { - var model = __nccwpck_require__(66554); - model.paginators = (__nccwpck_require__(37674)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SnowDeviceManagement; - - -/***/ }), - -/***/ 94149: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sns'] = {}; -AWS.SNS = Service.defineService('sns', ['2010-03-31']); -Object.defineProperty(apiLoader.services['sns'], '2010-03-31', { - get: function get() { - var model = __nccwpck_require__(23535); - model.paginators = (__nccwpck_require__(18837)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SNS; - - -/***/ }), - -/***/ 55362: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sqs'] = {}; -AWS.SQS = Service.defineService('sqs', ['2012-11-05']); -__nccwpck_require__(74820); -Object.defineProperty(apiLoader.services['sqs'], '2012-11-05', { - get: function get() { - var model = __nccwpck_require__(2681); - model.paginators = (__nccwpck_require__(25038)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SQS; - - -/***/ }), - -/***/ 82898: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ssm'] = {}; -AWS.SSM = Service.defineService('ssm', ['2014-11-06']); -Object.defineProperty(apiLoader.services['ssm'], '2014-11-06', { - get: function get() { - var model = __nccwpck_require__(47477); - model.paginators = (__nccwpck_require__(89239)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(88140)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SSM; - - -/***/ }), - -/***/ 60331: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ssmcontacts'] = {}; -AWS.SSMContacts = Service.defineService('ssmcontacts', ['2021-05-03']); -Object.defineProperty(apiLoader.services['ssmcontacts'], '2021-05-03', { - get: function get() { - var model = __nccwpck_require__(38169); - model.paginators = (__nccwpck_require__(47235)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SSMContacts; - - -/***/ }), - -/***/ 44783: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ssmincidents'] = {}; -AWS.SSMIncidents = Service.defineService('ssmincidents', ['2018-05-10']); -Object.defineProperty(apiLoader.services['ssmincidents'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(45671); - model.paginators = (__nccwpck_require__(18909)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(88918)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SSMIncidents; - - -/***/ }), - -/***/ 9822: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ssmquicksetup'] = {}; -AWS.SSMQuickSetup = Service.defineService('ssmquicksetup', ['2018-05-10']); -Object.defineProperty(apiLoader.services['ssmquicksetup'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(35830); - model.paginators = (__nccwpck_require__(54878)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SSMQuickSetup; - - -/***/ }), - -/***/ 24044: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ssmsap'] = {}; -AWS.SsmSap = Service.defineService('ssmsap', ['2018-05-10']); -Object.defineProperty(apiLoader.services['ssmsap'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(3514); - model.paginators = (__nccwpck_require__(62858)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SsmSap; - - -/***/ }), - -/***/ 55080: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sso'] = {}; -AWS.SSO = Service.defineService('sso', ['2019-06-10']); -Object.defineProperty(apiLoader.services['sso'], '2019-06-10', { - get: function get() { - var model = __nccwpck_require__(19523); - model.paginators = (__nccwpck_require__(17073)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SSO; - - -/***/ }), - -/***/ 73682: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ssoadmin'] = {}; -AWS.SSOAdmin = Service.defineService('ssoadmin', ['2020-07-20']); -Object.defineProperty(apiLoader.services['ssoadmin'], '2020-07-20', { - get: function get() { - var model = __nccwpck_require__(20863); - model.paginators = (__nccwpck_require__(70949)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SSOAdmin; - - -/***/ }), - -/***/ 1977: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['ssooidc'] = {}; -AWS.SSOOIDC = Service.defineService('ssooidc', ['2019-06-10']); -Object.defineProperty(apiLoader.services['ssooidc'], '2019-06-10', { - get: function get() { - var model = __nccwpck_require__(5583); - model.paginators = (__nccwpck_require__(1525)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SSOOIDC; - - -/***/ }), - -/***/ 69508: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['stepfunctions'] = {}; -AWS.StepFunctions = Service.defineService('stepfunctions', ['2016-11-23']); -Object.defineProperty(apiLoader.services['stepfunctions'], '2016-11-23', { - get: function get() { - var model = __nccwpck_require__(99851); - model.paginators = (__nccwpck_require__(35433)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.StepFunctions; - - -/***/ }), - -/***/ 34926: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['storagegateway'] = {}; -AWS.StorageGateway = Service.defineService('storagegateway', ['2013-06-30']); -Object.defineProperty(apiLoader.services['storagegateway'], '2013-06-30', { - get: function get() { - var model = __nccwpck_require__(28685); - model.paginators = (__nccwpck_require__(72895)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.StorageGateway; - - -/***/ }), - -/***/ 98595: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['sts'] = {}; -AWS.STS = Service.defineService('sts', ['2011-06-15']); -__nccwpck_require__(23429); -Object.defineProperty(apiLoader.services['sts'], '2011-06-15', { - get: function get() { - var model = __nccwpck_require__(9105); - model.paginators = (__nccwpck_require__(44747)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.STS; - - -/***/ }), - -/***/ 9684: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['supplychain'] = {}; -AWS.SupplyChain = Service.defineService('supplychain', ['2024-01-01']); -Object.defineProperty(apiLoader.services['supplychain'], '2024-01-01', { - get: function get() { - var model = __nccwpck_require__(92519); - model.paginators = (__nccwpck_require__(44381)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SupplyChain; - - -/***/ }), - -/***/ 83908: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['support'] = {}; -AWS.Support = Service.defineService('support', ['2013-04-15']); -Object.defineProperty(apiLoader.services['support'], '2013-04-15', { - get: function get() { - var model = __nccwpck_require__(93308); - model.paginators = (__nccwpck_require__(71704)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Support; - - -/***/ }), - -/***/ 54573: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['supportapp'] = {}; -AWS.SupportApp = Service.defineService('supportapp', ['2021-08-20']); -Object.defineProperty(apiLoader.services['supportapp'], '2021-08-20', { - get: function get() { - var model = __nccwpck_require__(98343); - model.paginators = (__nccwpck_require__(73597)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SupportApp; - - -/***/ }), - -/***/ 51843: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['swf'] = {}; -AWS.SWF = Service.defineService('swf', ['2012-01-25']); -__nccwpck_require__(87377); -Object.defineProperty(apiLoader.services['swf'], '2012-01-25', { - get: function get() { - var model = __nccwpck_require__(84556); - model.paginators = (__nccwpck_require__(92552)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.SWF; - - -/***/ }), - -/***/ 63527: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['synthetics'] = {}; -AWS.Synthetics = Service.defineService('synthetics', ['2017-10-11']); -Object.defineProperty(apiLoader.services['synthetics'], '2017-10-11', { - get: function get() { - var model = __nccwpck_require__(88569); - model.paginators = (__nccwpck_require__(37006)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Synthetics; - - -/***/ }), - -/***/ 38551: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['taxsettings'] = {}; -AWS.TaxSettings = Service.defineService('taxsettings', ['2018-05-10']); -Object.defineProperty(apiLoader.services['taxsettings'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(24498); - model.paginators = (__nccwpck_require__(99570)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.TaxSettings; - - -/***/ }), - -/***/ 15918: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['textract'] = {}; -AWS.Textract = Service.defineService('textract', ['2018-06-27']); -Object.defineProperty(apiLoader.services['textract'], '2018-06-27', { - get: function get() { - var model = __nccwpck_require__(8084); - model.paginators = (__nccwpck_require__(43936)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Textract; - - -/***/ }), - -/***/ 91248: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['timestreaminfluxdb'] = {}; -AWS.TimestreamInfluxDB = Service.defineService('timestreaminfluxdb', ['2023-01-27']); -Object.defineProperty(apiLoader.services['timestreaminfluxdb'], '2023-01-27', { - get: function get() { - var model = __nccwpck_require__(10692); - model.paginators = (__nccwpck_require__(91856)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.TimestreamInfluxDB; - - -/***/ }), - -/***/ 6252: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['timestreamquery'] = {}; -AWS.TimestreamQuery = Service.defineService('timestreamquery', ['2018-11-01']); -Object.defineProperty(apiLoader.services['timestreamquery'], '2018-11-01', { - get: function get() { - var model = __nccwpck_require__(34943); - model.paginators = (__nccwpck_require__(98085)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.TimestreamQuery; - - -/***/ }), - -/***/ 7063: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['timestreamwrite'] = {}; -AWS.TimestreamWrite = Service.defineService('timestreamwrite', ['2018-11-01']); -Object.defineProperty(apiLoader.services['timestreamwrite'], '2018-11-01', { - get: function get() { - var model = __nccwpck_require__(15606); - model.paginators = (__nccwpck_require__(48030)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.TimestreamWrite; - - -/***/ }), - -/***/ 11867: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['tnb'] = {}; -AWS.Tnb = Service.defineService('tnb', ['2008-10-21']); -Object.defineProperty(apiLoader.services['tnb'], '2008-10-21', { - get: function get() { - var model = __nccwpck_require__(99241); - model.paginators = (__nccwpck_require__(22387)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Tnb; - - -/***/ }), - -/***/ 82561: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['transcribeservice'] = {}; -AWS.TranscribeService = Service.defineService('transcribeservice', ['2017-10-26']); -Object.defineProperty(apiLoader.services['transcribeservice'], '2017-10-26', { - get: function get() { - var model = __nccwpck_require__(57905); - model.paginators = (__nccwpck_require__(46475)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.TranscribeService; - - -/***/ }), - -/***/ 77384: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['transfer'] = {}; -AWS.Transfer = Service.defineService('transfer', ['2018-11-05']); -Object.defineProperty(apiLoader.services['transfer'], '2018-11-05', { - get: function get() { - var model = __nccwpck_require__(7174); - model.paginators = (__nccwpck_require__(71630)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(3997)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Transfer; - - -/***/ }), - -/***/ 75121: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['translate'] = {}; -AWS.Translate = Service.defineService('translate', ['2017-07-01']); -Object.defineProperty(apiLoader.services['translate'], '2017-07-01', { - get: function get() { - var model = __nccwpck_require__(10305); - model.paginators = (__nccwpck_require__(70715)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Translate; - - -/***/ }), - -/***/ 90814: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['trustedadvisor'] = {}; -AWS.TrustedAdvisor = Service.defineService('trustedadvisor', ['2022-09-15']); -Object.defineProperty(apiLoader.services['trustedadvisor'], '2022-09-15', { - get: function get() { - var model = __nccwpck_require__(2047); - model.paginators = (__nccwpck_require__(27909)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.TrustedAdvisor; - - -/***/ }), - -/***/ 20967: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['verifiedpermissions'] = {}; -AWS.VerifiedPermissions = Service.defineService('verifiedpermissions', ['2021-12-01']); -Object.defineProperty(apiLoader.services['verifiedpermissions'], '2021-12-01', { - get: function get() { - var model = __nccwpck_require__(65880); - model.paginators = (__nccwpck_require__(1148)/* .pagination */ .X); - model.waiters = (__nccwpck_require__(15439)/* .waiters */ .C); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.VerifiedPermissions; - - -/***/ }), - -/***/ 24316: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['voiceid'] = {}; -AWS.VoiceID = Service.defineService('voiceid', ['2021-09-27']); -Object.defineProperty(apiLoader.services['voiceid'], '2021-09-27', { - get: function get() { - var model = __nccwpck_require__(59744); - model.paginators = (__nccwpck_require__(8660)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.VoiceID; - - -/***/ }), - -/***/ 42764: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['vpclattice'] = {}; -AWS.VPCLattice = Service.defineService('vpclattice', ['2022-11-30']); -Object.defineProperty(apiLoader.services['vpclattice'], '2022-11-30', { - get: function get() { - var model = __nccwpck_require__(13810); - model.paginators = (__nccwpck_require__(15986)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.VPCLattice; - - -/***/ }), - -/***/ 67249: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['waf'] = {}; -AWS.WAF = Service.defineService('waf', ['2015-08-24']); -Object.defineProperty(apiLoader.services['waf'], '2015-08-24', { - get: function get() { - var model = __nccwpck_require__(23801); - model.paginators = (__nccwpck_require__(82851)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.WAF; - - -/***/ }), - -/***/ 43892: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['wafregional'] = {}; -AWS.WAFRegional = Service.defineService('wafregional', ['2016-11-28']); -Object.defineProperty(apiLoader.services['wafregional'], '2016-11-28', { - get: function get() { - var model = __nccwpck_require__(89444); - model.paginators = (__nccwpck_require__(19728)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.WAFRegional; - - -/***/ }), - -/***/ 6201: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['wafv2'] = {}; -AWS.WAFV2 = Service.defineService('wafv2', ['2019-07-29']); -Object.defineProperty(apiLoader.services['wafv2'], '2019-07-29', { - get: function get() { - var model = __nccwpck_require__(66453); - model.paginators = (__nccwpck_require__(49495)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.WAFV2; - - -/***/ }), - -/***/ 26185: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['wellarchitected'] = {}; -AWS.WellArchitected = Service.defineService('wellarchitected', ['2020-03-31']); -Object.defineProperty(apiLoader.services['wellarchitected'], '2020-03-31', { - get: function get() { - var model = __nccwpck_require__(40800); - model.paginators = (__nccwpck_require__(75604)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.WellArchitected; - - -/***/ }), - -/***/ 56912: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['wisdom'] = {}; -AWS.Wisdom = Service.defineService('wisdom', ['2020-10-19']); -Object.defineProperty(apiLoader.services['wisdom'], '2020-10-19', { - get: function get() { - var model = __nccwpck_require__(14553); - model.paginators = (__nccwpck_require__(60739)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Wisdom; - - -/***/ }), - -/***/ 20253: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['workdocs'] = {}; -AWS.WorkDocs = Service.defineService('workdocs', ['2016-05-01']); -Object.defineProperty(apiLoader.services['workdocs'], '2016-05-01', { - get: function get() { - var model = __nccwpck_require__(18568); - model.paginators = (__nccwpck_require__(83244)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.WorkDocs; - - -/***/ }), - -/***/ 21482: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['worklink'] = {}; -AWS.WorkLink = Service.defineService('worklink', ['2018-09-25']); -Object.defineProperty(apiLoader.services['worklink'], '2018-09-25', { - get: function get() { - var model = __nccwpck_require__(61349); - model.paginators = (__nccwpck_require__(81255)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.WorkLink; - - -/***/ }), - -/***/ 75217: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['workmail'] = {}; -AWS.WorkMail = Service.defineService('workmail', ['2017-10-01']); -Object.defineProperty(apiLoader.services['workmail'], '2017-10-01', { - get: function get() { - var model = __nccwpck_require__(13733); - model.paginators = (__nccwpck_require__(38343)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.WorkMail; - - -/***/ }), - -/***/ 77902: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['workmailmessageflow'] = {}; -AWS.WorkMailMessageFlow = Service.defineService('workmailmessageflow', ['2019-05-01']); -Object.defineProperty(apiLoader.services['workmailmessageflow'], '2019-05-01', { - get: function get() { - var model = __nccwpck_require__(60328); - model.paginators = (__nccwpck_require__(50796)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.WorkMailMessageFlow; - - -/***/ }), - -/***/ 5973: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['workspaces'] = {}; -AWS.WorkSpaces = Service.defineService('workspaces', ['2015-04-08']); -Object.defineProperty(apiLoader.services['workspaces'], '2015-04-08', { - get: function get() { - var model = __nccwpck_require__(87351); - model.paginators = (__nccwpck_require__(33517)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.WorkSpaces; - - -/***/ }), - -/***/ 81581: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['workspacesthinclient'] = {}; -AWS.WorkSpacesThinClient = Service.defineService('workspacesthinclient', ['2023-08-22']); -Object.defineProperty(apiLoader.services['workspacesthinclient'], '2023-08-22', { - get: function get() { - var model = __nccwpck_require__(44926); - model.paginators = (__nccwpck_require__(27574)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.WorkSpacesThinClient; - - -/***/ }), - -/***/ 59539: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['workspacesweb'] = {}; -AWS.WorkSpacesWeb = Service.defineService('workspacesweb', ['2020-07-08']); -Object.defineProperty(apiLoader.services['workspacesweb'], '2020-07-08', { - get: function get() { - var model = __nccwpck_require__(80725); - model.paginators = (__nccwpck_require__(52279)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.WorkSpacesWeb; - - -/***/ }), - -/***/ 35747: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); -var AWS = __nccwpck_require__(60085); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['xray'] = {}; -AWS.XRay = Service.defineService('xray', ['2016-04-12']); -Object.defineProperty(apiLoader.services['xray'], '2016-04-12', { - get: function get() { - var model = __nccwpck_require__(24147); - model.paginators = (__nccwpck_require__(40609)/* .pagination */ .X); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.XRay; - - -/***/ }), - -/***/ 44948: -/***/ ((module) => { - -function apiLoader(svc, version) { - if (!apiLoader.services.hasOwnProperty(svc)) { - throw new Error('InvalidService: Failed to load api for ' + svc); - } - return apiLoader.services[svc][version]; -} - -/** - * @api private - * - * This member of AWS.apiLoader is private, but changing it will necessitate a - * change to ../scripts/services-table-generator.ts - */ -apiLoader.services = {}; - -/** - * @api private - */ -module.exports = apiLoader; - - -/***/ }), - -/***/ 62605: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(84902); - -var AWS = __nccwpck_require__(60085); - -// Load all service classes -__nccwpck_require__(91984); - -/** - * @api private - */ -module.exports = AWS; - - -/***/ }), - -/***/ 63143: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085), - url = AWS.util.url, - crypto = AWS.util.crypto.lib, - base64Encode = AWS.util.base64.encode, - inherit = AWS.util.inherit; - -var queryEncode = function (string) { - var replacements = { - '+': '-', - '=': '_', - '/': '~' - }; - return string.replace(/[\+=\/]/g, function (match) { - return replacements[match]; - }); -}; - -var signPolicy = function (policy, privateKey) { - var sign = crypto.createSign('RSA-SHA1'); - sign.write(policy); - return queryEncode(sign.sign(privateKey, 'base64')); -}; - -var signWithCannedPolicy = function (url, expires, keyPairId, privateKey) { - var policy = JSON.stringify({ - Statement: [ - { - Resource: url, - Condition: { DateLessThan: { 'AWS:EpochTime': expires } } - } - ] - }); - - return { - Expires: expires, - 'Key-Pair-Id': keyPairId, - Signature: signPolicy(policy.toString(), privateKey) - }; -}; - -var signWithCustomPolicy = function (policy, keyPairId, privateKey) { - policy = policy.replace(/\s/mg, ''); - - return { - Policy: queryEncode(base64Encode(policy)), - 'Key-Pair-Id': keyPairId, - Signature: signPolicy(policy, privateKey) - }; -}; - -var determineScheme = function (url) { - var parts = url.split('://'); - if (parts.length < 2) { - throw new Error('Invalid URL.'); - } - - return parts[0].replace('*', ''); -}; - -var getRtmpUrl = function (rtmpUrl) { - var parsed = url.parse(rtmpUrl); - return parsed.path.replace(/^\//, '') + (parsed.hash || ''); -}; - -var getResource = function (url) { - switch (determineScheme(url)) { - case 'http': - case 'https': - return url; - case 'rtmp': - return getRtmpUrl(url); - default: - throw new Error('Invalid URI scheme. Scheme must be one of' - + ' http, https, or rtmp'); - } -}; - -var handleError = function (err, callback) { - if (!callback || typeof callback !== 'function') { - throw err; - } - - callback(err); -}; - -var handleSuccess = function (result, callback) { - if (!callback || typeof callback !== 'function') { - return result; - } - - callback(null, result); -}; - -AWS.CloudFront.Signer = inherit({ - /** - * A signer object can be used to generate signed URLs and cookies for granting - * access to content on restricted CloudFront distributions. - * - * @see http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html - * - * @param keyPairId [String] (Required) The ID of the CloudFront key pair - * being used. - * @param privateKey [String] (Required) A private key in RSA format. - */ - constructor: function Signer(keyPairId, privateKey) { - if (keyPairId === void 0 || privateKey === void 0) { - throw new Error('A key pair ID and private key are required'); - } - - this.keyPairId = keyPairId; - this.privateKey = privateKey; - }, - - /** - * Create a signed Amazon CloudFront Cookie. - * - * @param options [Object] The options to create a signed cookie. - * @option options url [String] The URL to which the signature will grant - * access. Required unless you pass in a full - * policy. - * @option options expires [Number] A Unix UTC timestamp indicating when the - * signature should expire. Required unless you - * pass in a full policy. - * @option options policy [String] A CloudFront JSON policy. Required unless - * you pass in a url and an expiry time. - * - * @param cb [Function] if a callback is provided, this function will - * pass the hash as the second parameter (after the error parameter) to - * the callback function. - * - * @return [Object] if called synchronously (with no callback), returns the - * signed cookie parameters. - * @return [null] nothing is returned if a callback is provided. - */ - getSignedCookie: function (options, cb) { - var signatureHash = 'policy' in options - ? signWithCustomPolicy(options.policy, this.keyPairId, this.privateKey) - : signWithCannedPolicy(options.url, options.expires, this.keyPairId, this.privateKey); - - var cookieHash = {}; - for (var key in signatureHash) { - if (Object.prototype.hasOwnProperty.call(signatureHash, key)) { - cookieHash['CloudFront-' + key] = signatureHash[key]; - } - } - - return handleSuccess(cookieHash, cb); - }, - - /** - * Create a signed Amazon CloudFront URL. - * - * Keep in mind that URLs meant for use in media/flash players may have - * different requirements for URL formats (e.g. some require that the - * extension be removed, some require the file name to be prefixed - * - mp4:, some require you to add "/cfx/st" into your URL). - * - * @param options [Object] The options to create a signed URL. - * @option options url [String] The URL to which the signature will grant - * access. Any query params included with - * the URL should be encoded. Required. - * @option options expires [Number] A Unix UTC timestamp indicating when the - * signature should expire. Required unless you - * pass in a full policy. - * @option options policy [String] A CloudFront JSON policy. Required unless - * you pass in a url and an expiry time. - * - * @param cb [Function] if a callback is provided, this function will - * pass the URL as the second parameter (after the error parameter) to - * the callback function. - * - * @return [String] if called synchronously (with no callback), returns the - * signed URL. - * @return [null] nothing is returned if a callback is provided. - */ - getSignedUrl: function (options, cb) { - try { - var resource = getResource(options.url); - } catch (err) { - return handleError(err, cb); - } - - var parsedUrl = url.parse(options.url, true), - signatureHash = Object.prototype.hasOwnProperty.call(options, 'policy') - ? signWithCustomPolicy(options.policy, this.keyPairId, this.privateKey) - : signWithCannedPolicy(resource, options.expires, this.keyPairId, this.privateKey); - - parsedUrl.search = null; - for (var key in signatureHash) { - if (Object.prototype.hasOwnProperty.call(signatureHash, key)) { - parsedUrl.query[key] = signatureHash[key]; - } - } - - try { - var signedUrl = determineScheme(options.url) === 'rtmp' - ? getRtmpUrl(url.format(parsedUrl)) - : url.format(parsedUrl); - } catch (err) { - return handleError(err, cb); - } - - return handleSuccess(signedUrl, cb); - } -}); - -/** - * @api private - */ -module.exports = AWS.CloudFront.Signer; - - -/***/ }), - -/***/ 62384: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -__nccwpck_require__(92118); -__nccwpck_require__(30364); -var PromisesDependency; - -/** - * The main configuration class used by all service objects to set - * the region, credentials, and other options for requests. - * - * By default, credentials and region settings are left unconfigured. - * This should be configured by the application before using any - * AWS service APIs. - * - * In order to set global configuration options, properties should - * be assigned to the global {AWS.config} object. - * - * @see AWS.config - * - * @!group General Configuration Options - * - * @!attribute credentials - * @return [AWS.Credentials] the AWS credentials to sign requests with. - * - * @!attribute region - * @example Set the global region setting to us-west-2 - * AWS.config.update({region: 'us-west-2'}); - * @return [AWS.Credentials] The region to send service requests to. - * @see http://docs.amazonwebservices.com/general/latest/gr/rande.html - * A list of available endpoints for each AWS service - * - * @!attribute maxRetries - * @return [Integer] the maximum amount of retries to perform for a - * service request. By default this value is calculated by the specific - * service object that the request is being made to. - * - * @!attribute maxRedirects - * @return [Integer] the maximum amount of redirects to follow for a - * service request. Defaults to 10. - * - * @!attribute paramValidation - * @return [Boolean|map] whether input parameters should be validated against - * the operation description before sending the request. Defaults to true. - * Pass a map to enable any of the following specific validation features: - * - * * **min** [Boolean] — Validates that a value meets the min - * constraint. This is enabled by default when paramValidation is set - * to `true`. - * * **max** [Boolean] — Validates that a value meets the max - * constraint. - * * **pattern** [Boolean] — Validates that a string value matches a - * regular expression. - * * **enum** [Boolean] — Validates that a string value matches one - * of the allowable enum values. - * - * @!attribute computeChecksums - * @return [Boolean] whether to compute checksums for payload bodies when - * the service accepts it (currently supported in S3 and SQS only). - * - * @!attribute convertResponseTypes - * @return [Boolean] whether types are converted when parsing response data. - * Currently only supported for JSON based services. Turning this off may - * improve performance on large response payloads. Defaults to `true`. - * - * @!attribute correctClockSkew - * @return [Boolean] whether to apply a clock skew correction and retry - * requests that fail because of an skewed client clock. Defaults to - * `false`. - * - * @!attribute sslEnabled - * @return [Boolean] whether SSL is enabled for requests - * - * @!attribute s3ForcePathStyle - * @return [Boolean] whether to force path style URLs for S3 objects - * - * @!attribute s3BucketEndpoint - * @note Setting this configuration option requires an `endpoint` to be - * provided explicitly to the service constructor. - * @return [Boolean] whether the provided endpoint addresses an individual - * bucket (false if it addresses the root API endpoint). - * - * @!attribute s3DisableBodySigning - * @return [Boolean] whether to disable S3 body signing when using signature version `v4`. - * Body signing can only be disabled when using https. Defaults to `true`. - * - * @!attribute s3UsEast1RegionalEndpoint - * @return ['legacy'|'regional'] when region is set to 'us-east-1', whether to send s3 - * request to global endpoints or 'us-east-1' regional endpoints. This config is only - * applicable to S3 client; - * Defaults to 'legacy' - * @!attribute s3UseArnRegion - * @return [Boolean] whether to override the request region with the region inferred - * from requested resource's ARN. Only available for S3 buckets - * Defaults to `true` - * - * @!attribute useAccelerateEndpoint - * @note This configuration option is only compatible with S3 while accessing - * dns-compatible buckets. - * @return [Boolean] Whether to use the Accelerate endpoint with the S3 service. - * Defaults to `false`. - * - * @!attribute retryDelayOptions - * @example Set the base retry delay for all services to 300 ms - * AWS.config.update({retryDelayOptions: {base: 300}}); - * // Delays with maxRetries = 3: 300, 600, 1200 - * @example Set a custom backoff function to provide delay values on retries - * AWS.config.update({retryDelayOptions: {customBackoff: function(retryCount, err) { - * // returns delay in ms - * }}}); - * @return [map] A set of options to configure the retry delay on retryable errors. - * Currently supported options are: - * - * * **base** [Integer] — The base number of milliseconds to use in the - * exponential backoff for operation retries. Defaults to 100 ms for all services except - * DynamoDB, where it defaults to 50ms. - * - * * **customBackoff ** [function] — A custom function that accepts a - * retry count and error and returns the amount of time to delay in - * milliseconds. If the result is a non-zero negative value, no further - * retry attempts will be made. The `base` option will be ignored if this - * option is supplied. The function is only called for retryable errors. - * - * @!attribute httpOptions - * @return [map] A set of options to pass to the low-level HTTP request. - * Currently supported options are: - * - * * **proxy** [String] — the URL to proxy requests through - * * **agent** [http.Agent, https.Agent] — the Agent object to perform - * HTTP requests with. Used for connection pooling. Note that for - * SSL connections, a special Agent object is used in order to enable - * peer certificate verification. This feature is only supported in the - * Node.js environment. - * * **connectTimeout** [Integer] — Sets the socket to timeout after - * failing to establish a connection with the server after - * `connectTimeout` milliseconds. This timeout has no effect once a socket - * connection has been established. - * * **timeout** [Integer] — The number of milliseconds a request can - * take before automatically being terminated. - * Defaults to two minutes (120000). - * * **xhrAsync** [Boolean] — Whether the SDK will send asynchronous - * HTTP requests. Used in the browser environment only. Set to false to - * send requests synchronously. Defaults to true (async on). - * * **xhrWithCredentials** [Boolean] — Sets the "withCredentials" - * property of an XMLHttpRequest object. Used in the browser environment - * only. Defaults to false. - * @!attribute logger - * @return [#write,#log] an object that responds to .write() (like a stream) - * or .log() (like the console object) in order to log information about - * requests - * - * @!attribute systemClockOffset - * @return [Number] an offset value in milliseconds to apply to all signing - * times. Use this to compensate for clock skew when your system may be - * out of sync with the service time. Note that this configuration option - * can only be applied to the global `AWS.config` object and cannot be - * overridden in service-specific configuration. Defaults to 0 milliseconds. - * - * @!attribute signatureVersion - * @return [String] the signature version to sign requests with (overriding - * the API configuration). Possible values are: 'v2', 'v3', 'v4'. - * - * @!attribute signatureCache - * @return [Boolean] whether the signature to sign requests with (overriding - * the API configuration) is cached. Only applies to the signature version 'v4'. - * Defaults to `true`. - * - * @!attribute endpointDiscoveryEnabled - * @return [Boolean|undefined] whether to call operations with endpoints - * given by service dynamically. Setting this config to `true` will enable - * endpoint discovery for all applicable operations. Setting it to `false` - * will explicitly disable endpoint discovery even though operations that - * require endpoint discovery will presumably fail. Leaving it to - * `undefined` means SDK only do endpoint discovery when it's required. - * Defaults to `undefined` - * - * @!attribute endpointCacheSize - * @return [Number] the size of the global cache storing endpoints from endpoint - * discovery operations. Once endpoint cache is created, updating this setting - * cannot change existing cache size. - * Defaults to 1000 - * - * @!attribute hostPrefixEnabled - * @return [Boolean] whether to marshal request parameters to the prefix of - * hostname. Defaults to `true`. - * - * @!attribute stsRegionalEndpoints - * @return ['legacy'|'regional'] whether to send sts request to global endpoints or - * regional endpoints. - * Defaults to 'legacy'. - * - * @!attribute useFipsEndpoint - * @return [Boolean] Enables FIPS compatible endpoints. Defaults to `false`. - * - * @!attribute useDualstackEndpoint - * @return [Boolean] Enables IPv6 dualstack endpoint. Defaults to `false`. - */ -AWS.Config = AWS.util.inherit({ - /** - * @!endgroup - */ - - /** - * Creates a new configuration object. This is the object that passes - * option data along to service requests, including credentials, security, - * region information, and some service specific settings. - * - * @example Creating a new configuration object with credentials and region - * var config = new AWS.Config({ - * accessKeyId: 'AKID', secretAccessKey: 'SECRET', region: 'us-west-2' - * }); - * @option options accessKeyId [String] your AWS access key ID. - * @option options secretAccessKey [String] your AWS secret access key. - * @option options sessionToken [AWS.Credentials] the optional AWS - * session token to sign requests with. - * @option options credentials [AWS.Credentials] the AWS credentials - * to sign requests with. You can either specify this object, or - * specify the accessKeyId and secretAccessKey options directly. - * @option options credentialProvider [AWS.CredentialProviderChain] the - * provider chain used to resolve credentials if no static `credentials` - * property is set. - * @option options region [String] the region to send service requests to. - * See {region} for more information. - * @option options maxRetries [Integer] the maximum amount of retries to - * attempt with a request. See {maxRetries} for more information. - * @option options maxRedirects [Integer] the maximum amount of redirects to - * follow with a request. See {maxRedirects} for more information. - * @option options sslEnabled [Boolean] whether to enable SSL for - * requests. - * @option options paramValidation [Boolean|map] whether input parameters - * should be validated against the operation description before sending - * the request. Defaults to true. Pass a map to enable any of the - * following specific validation features: - * - * * **min** [Boolean] — Validates that a value meets the min - * constraint. This is enabled by default when paramValidation is set - * to `true`. - * * **max** [Boolean] — Validates that a value meets the max - * constraint. - * * **pattern** [Boolean] — Validates that a string value matches a - * regular expression. - * * **enum** [Boolean] — Validates that a string value matches one - * of the allowable enum values. - * @option options computeChecksums [Boolean] whether to compute checksums - * for payload bodies when the service accepts it (currently supported - * in S3 only) - * @option options convertResponseTypes [Boolean] whether types are converted - * when parsing response data. Currently only supported for JSON based - * services. Turning this off may improve performance on large response - * payloads. Defaults to `true`. - * @option options correctClockSkew [Boolean] whether to apply a clock skew - * correction and retry requests that fail because of an skewed client - * clock. Defaults to `false`. - * @option options s3ForcePathStyle [Boolean] whether to force path - * style URLs for S3 objects. - * @option options s3BucketEndpoint [Boolean] whether the provided endpoint - * addresses an individual bucket (false if it addresses the root API - * endpoint). Note that setting this configuration option requires an - * `endpoint` to be provided explicitly to the service constructor. - * @option options s3DisableBodySigning [Boolean] whether S3 body signing - * should be disabled when using signature version `v4`. Body signing - * can only be disabled when using https. Defaults to `true`. - * @option options s3UsEast1RegionalEndpoint ['legacy'|'regional'] when region - * is set to 'us-east-1', whether to send s3 request to global endpoints or - * 'us-east-1' regional endpoints. This config is only applicable to S3 client. - * Defaults to `legacy` - * @option options s3UseArnRegion [Boolean] whether to override the request region - * with the region inferred from requested resource's ARN. Only available for S3 buckets - * Defaults to `true` - * - * @option options retryDelayOptions [map] A set of options to configure - * the retry delay on retryable errors. Currently supported options are: - * - * * **base** [Integer] — The base number of milliseconds to use in the - * exponential backoff for operation retries. Defaults to 100 ms for all - * services except DynamoDB, where it defaults to 50ms. - * * **customBackoff ** [function] — A custom function that accepts a - * retry count and error and returns the amount of time to delay in - * milliseconds. If the result is a non-zero negative value, no further - * retry attempts will be made. The `base` option will be ignored if this - * option is supplied. The function is only called for retryable errors. - * @option options httpOptions [map] A set of options to pass to the low-level - * HTTP request. Currently supported options are: - * - * * **proxy** [String] — the URL to proxy requests through - * * **agent** [http.Agent, https.Agent] — the Agent object to perform - * HTTP requests with. Used for connection pooling. Defaults to the global - * agent (`http.globalAgent`) for non-SSL connections. Note that for - * SSL connections, a special Agent object is used in order to enable - * peer certificate verification. This feature is only available in the - * Node.js environment. - * * **connectTimeout** [Integer] — Sets the socket to timeout after - * failing to establish a connection with the server after - * `connectTimeout` milliseconds. This timeout has no effect once a socket - * connection has been established. - * * **timeout** [Integer] — Sets the socket to timeout after timeout - * milliseconds of inactivity on the socket. Defaults to two minutes - * (120000). - * * **xhrAsync** [Boolean] — Whether the SDK will send asynchronous - * HTTP requests. Used in the browser environment only. Set to false to - * send requests synchronously. Defaults to true (async on). - * * **xhrWithCredentials** [Boolean] — Sets the "withCredentials" - * property of an XMLHttpRequest object. Used in the browser environment - * only. Defaults to false. - * @option options apiVersion [String, Date] a String in YYYY-MM-DD format - * (or a date) that represents the latest possible API version that can be - * used in all services (unless overridden by `apiVersions`). Specify - * 'latest' to use the latest possible version. - * @option options apiVersions [map] a map of service - * identifiers (the lowercase service class name) with the API version to - * use when instantiating a service. Specify 'latest' for each individual - * that can use the latest available version. - * @option options logger [#write,#log] an object that responds to .write() - * (like a stream) or .log() (like the console object) in order to log - * information about requests - * @option options systemClockOffset [Number] an offset value in milliseconds - * to apply to all signing times. Use this to compensate for clock skew - * when your system may be out of sync with the service time. Note that - * this configuration option can only be applied to the global `AWS.config` - * object and cannot be overridden in service-specific configuration. - * Defaults to 0 milliseconds. - * @option options signatureVersion [String] the signature version to sign - * requests with (overriding the API configuration). Possible values are: - * 'v2', 'v3', 'v4'. - * @option options signatureCache [Boolean] whether the signature to sign - * requests with (overriding the API configuration) is cached. Only applies - * to the signature version 'v4'. Defaults to `true`. - * @option options dynamoDbCrc32 [Boolean] whether to validate the CRC32 - * checksum of HTTP response bodies returned by DynamoDB. Default: `true`. - * @option options useAccelerateEndpoint [Boolean] Whether to use the - * S3 Transfer Acceleration endpoint with the S3 service. Default: `false`. - * @option options clientSideMonitoring [Boolean] whether to collect and - * publish this client's performance metrics of all its API requests. - * @option options endpointDiscoveryEnabled [Boolean|undefined] whether to - * call operations with endpoints given by service dynamically. Setting this - * config to `true` will enable endpoint discovery for all applicable operations. - * Setting it to `false` will explicitly disable endpoint discovery even though - * operations that require endpoint discovery will presumably fail. Leaving it - * to `undefined` means SDK will only do endpoint discovery when it's required. - * Defaults to `undefined` - * @option options endpointCacheSize [Number] the size of the global cache storing - * endpoints from endpoint discovery operations. Once endpoint cache is created, - * updating this setting cannot change existing cache size. - * Defaults to 1000 - * @option options hostPrefixEnabled [Boolean] whether to marshal request - * parameters to the prefix of hostname. - * Defaults to `true`. - * @option options stsRegionalEndpoints ['legacy'|'regional'] whether to send sts request - * to global endpoints or regional endpoints. - * Defaults to 'legacy'. - * @option options useFipsEndpoint [Boolean] Enables FIPS compatible endpoints. - * Defaults to `false`. - * @option options useDualstackEndpoint [Boolean] Enables IPv6 dualstack endpoint. - * Defaults to `false`. - */ - constructor: function Config(options) { - if (options === undefined) options = {}; - options = this.extractCredentials(options); - - AWS.util.each.call(this, this.keys, function (key, value) { - this.set(key, options[key], value); - }); - }, - - /** - * @!group Managing Credentials - */ - - /** - * Loads credentials from the configuration object. This is used internally - * by the SDK to ensure that refreshable {Credentials} objects are properly - * refreshed and loaded when sending a request. If you want to ensure that - * your credentials are loaded prior to a request, you can use this method - * directly to provide accurate credential data stored in the object. - * - * @note If you configure the SDK with static or environment credentials, - * the credential data should already be present in {credentials} attribute. - * This method is primarily necessary to load credentials from asynchronous - * sources, or sources that can refresh credentials periodically. - * @example Getting your access key - * AWS.config.getCredentials(function(err) { - * if (err) console.log(err.stack); // credentials not loaded - * else console.log("Access Key:", AWS.config.credentials.accessKeyId); - * }) - * @callback callback function(err) - * Called when the {credentials} have been properly set on the configuration - * object. - * - * @param err [Error] if this is set, credentials were not successfully - * loaded and this error provides information why. - * @see credentials - * @see Credentials - */ - getCredentials: function getCredentials(callback) { - var self = this; - - function finish(err) { - callback(err, err ? null : self.credentials); - } - - function credError(msg, err) { - return new AWS.util.error(err || new Error(), { - code: 'CredentialsError', - message: msg, - name: 'CredentialsError' - }); - } - - function getAsyncCredentials() { - self.credentials.get(function(err) { - if (err) { - var msg = 'Could not load credentials from ' + - self.credentials.constructor.name; - err = credError(msg, err); - } - finish(err); - }); - } - - function getStaticCredentials() { - var err = null; - if (!self.credentials.accessKeyId || !self.credentials.secretAccessKey) { - err = credError('Missing credentials'); - } - finish(err); - } - - if (self.credentials) { - if (typeof self.credentials.get === 'function') { - getAsyncCredentials(); - } else { // static credentials - getStaticCredentials(); - } - } else if (self.credentialProvider) { - self.credentialProvider.resolve(function(err, creds) { - if (err) { - err = credError('Could not load credentials from any providers', err); - } - self.credentials = creds; - finish(err); - }); - } else { - finish(credError('No credentials to load')); - } - }, - - /** - * Loads token from the configuration object. This is used internally - * by the SDK to ensure that refreshable {Token} objects are properly - * refreshed and loaded when sending a request. If you want to ensure that - * your token is loaded prior to a request, you can use this method - * directly to provide accurate token data stored in the object. - * - * @note If you configure the SDK with static token, the token data should - * already be present in {token} attribute. This method is primarily necessary - * to load token from asynchronous sources, or sources that can refresh - * token periodically. - * @example Getting your access token - * AWS.config.getToken(function(err) { - * if (err) console.log(err.stack); // token not loaded - * else console.log("Token:", AWS.config.token.token); - * }) - * @callback callback function(err) - * Called when the {token} have been properly set on the configuration object. - * - * @param err [Error] if this is set, token was not successfully loaded and - * this error provides information why. - * @see token - */ - getToken: function getToken(callback) { - var self = this; - - function finish(err) { - callback(err, err ? null : self.token); - } - - function tokenError(msg, err) { - return new AWS.util.error(err || new Error(), { - code: 'TokenError', - message: msg, - name: 'TokenError' - }); - } - - function getAsyncToken() { - self.token.get(function(err) { - if (err) { - var msg = 'Could not load token from ' + - self.token.constructor.name; - err = tokenError(msg, err); - } - finish(err); - }); - } - - function getStaticToken() { - var err = null; - if (!self.token.token) { - err = tokenError('Missing token'); - } - finish(err); - } - - if (self.token) { - if (typeof self.token.get === 'function') { - getAsyncToken(); - } else { // static token - getStaticToken(); - } - } else if (self.tokenProvider) { - self.tokenProvider.resolve(function(err, token) { - if (err) { - err = tokenError('Could not load token from any providers', err); - } - self.token = token; - finish(err); - }); - } else { - finish(tokenError('No token to load')); - } - }, - - /** - * @!group Loading and Setting Configuration Options - */ - - /** - * @overload update(options, allowUnknownKeys = false) - * Updates the current configuration object with new options. - * - * @example Update maxRetries property of a configuration object - * config.update({maxRetries: 10}); - * @param [Object] options a map of option keys and values. - * @param [Boolean] allowUnknownKeys whether unknown keys can be set on - * the configuration object. Defaults to `false`. - * @see constructor - */ - update: function update(options, allowUnknownKeys) { - allowUnknownKeys = allowUnknownKeys || false; - options = this.extractCredentials(options); - AWS.util.each.call(this, options, function (key, value) { - if (allowUnknownKeys || Object.prototype.hasOwnProperty.call(this.keys, key) || - AWS.Service.hasService(key)) { - this.set(key, value); - } - }); - }, - - /** - * Loads configuration data from a JSON file into this config object. - * @note Loading configuration will reset all existing configuration - * on the object. - * @!macro nobrowser - * @param path [String] the path relative to your process's current - * working directory to load configuration from. - * @return [AWS.Config] the same configuration object - */ - loadFromPath: function loadFromPath(path) { - this.clear(); - - var options = JSON.parse(AWS.util.readFileSync(path)); - var fileSystemCreds = new AWS.FileSystemCredentials(path); - var chain = new AWS.CredentialProviderChain(); - chain.providers.unshift(fileSystemCreds); - chain.resolve(function (err, creds) { - if (err) throw err; - else options.credentials = creds; - }); - - this.constructor(options); - - return this; - }, - - /** - * Clears configuration data on this object - * - * @api private - */ - clear: function clear() { - /*jshint forin:false */ - AWS.util.each.call(this, this.keys, function (key) { - delete this[key]; - }); - - // reset credential provider - this.set('credentials', undefined); - this.set('credentialProvider', undefined); - }, - - /** - * Sets a property on the configuration object, allowing for a - * default value - * @api private - */ - set: function set(property, value, defaultValue) { - if (value === undefined) { - if (defaultValue === undefined) { - defaultValue = this.keys[property]; - } - if (typeof defaultValue === 'function') { - this[property] = defaultValue.call(this); - } else { - this[property] = defaultValue; - } - } else if (property === 'httpOptions' && this[property]) { - // deep merge httpOptions - this[property] = AWS.util.merge(this[property], value); - } else { - this[property] = value; - } - }, - - /** - * All of the keys with their default values. - * - * @constant - * @api private - */ - keys: { - credentials: null, - credentialProvider: null, - region: null, - logger: null, - apiVersions: {}, - apiVersion: null, - endpoint: undefined, - httpOptions: { - timeout: 120000 - }, - maxRetries: undefined, - maxRedirects: 10, - paramValidation: true, - sslEnabled: true, - s3ForcePathStyle: false, - s3BucketEndpoint: false, - s3DisableBodySigning: true, - s3UsEast1RegionalEndpoint: 'legacy', - s3UseArnRegion: undefined, - computeChecksums: true, - convertResponseTypes: true, - correctClockSkew: false, - customUserAgent: null, - dynamoDbCrc32: true, - systemClockOffset: 0, - signatureVersion: null, - signatureCache: true, - retryDelayOptions: {}, - useAccelerateEndpoint: false, - clientSideMonitoring: false, - endpointDiscoveryEnabled: undefined, - endpointCacheSize: 1000, - hostPrefixEnabled: true, - stsRegionalEndpoints: 'legacy', - useFipsEndpoint: false, - useDualstackEndpoint: false, - token: null - }, - - /** - * Extracts accessKeyId, secretAccessKey and sessionToken - * from a configuration hash. - * - * @api private - */ - extractCredentials: function extractCredentials(options) { - if (options.accessKeyId && options.secretAccessKey) { - options = AWS.util.copy(options); - options.credentials = new AWS.Credentials(options); - } - return options; - }, - - /** - * Sets the promise dependency the SDK will use wherever Promises are returned. - * Passing `null` will force the SDK to use native Promises if they are available. - * If native Promises are not available, passing `null` will have no effect. - * @param [Constructor] dep A reference to a Promise constructor - */ - setPromisesDependency: function setPromisesDependency(dep) { - PromisesDependency = dep; - // if null was passed in, we should try to use native promises - if (dep === null && typeof Promise === 'function') { - PromisesDependency = Promise; - } - var constructors = [AWS.Request, AWS.Credentials, AWS.CredentialProviderChain]; - if (AWS.S3) { - constructors.push(AWS.S3); - if (AWS.S3.ManagedUpload) { - constructors.push(AWS.S3.ManagedUpload); - } - } - AWS.util.addPromises(constructors, PromisesDependency); - }, - - /** - * Gets the promise dependency set by `AWS.config.setPromisesDependency`. - */ - getPromisesDependency: function getPromisesDependency() { - return PromisesDependency; - } -}); - -/** - * @return [AWS.Config] The global configuration object singleton instance - * @readonly - * @see AWS.Config - */ -AWS.config = new AWS.Config(); - - -/***/ }), - -/***/ 44568: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -/** - * @api private - */ -function validateRegionalEndpointsFlagValue(configValue, errorOptions) { - if (typeof configValue !== 'string') return undefined; - else if (['legacy', 'regional'].indexOf(configValue.toLowerCase()) >= 0) { - return configValue.toLowerCase(); - } else { - throw AWS.util.error(new Error(), errorOptions); - } -} - -/** - * Resolve the configuration value for regional endpoint from difference sources: client - * config, environmental variable, shared config file. Value can be case-insensitive - * 'legacy' or 'reginal'. - * @param originalConfig user-supplied config object to resolve - * @param options a map of config property names from individual configuration source - * - env: name of environmental variable that refers to the config - * - sharedConfig: name of shared configuration file property that refers to the config - * - clientConfig: name of client configuration property that refers to the config - * - * @api private - */ -function resolveRegionalEndpointsFlag(originalConfig, options) { - originalConfig = originalConfig || {}; - //validate config value - var resolved; - if (originalConfig[options.clientConfig]) { - resolved = validateRegionalEndpointsFlagValue(originalConfig[options.clientConfig], { - code: 'InvalidConfiguration', - message: 'invalid "' + options.clientConfig + '" configuration. Expect "legacy" ' + - ' or "regional". Got "' + originalConfig[options.clientConfig] + '".' - }); - if (resolved) return resolved; - } - if (!AWS.util.isNode()) return resolved; - //validate environmental variable - if (Object.prototype.hasOwnProperty.call(process.env, options.env)) { - var envFlag = process.env[options.env]; - resolved = validateRegionalEndpointsFlagValue(envFlag, { - code: 'InvalidEnvironmentalVariable', - message: 'invalid ' + options.env + ' environmental variable. Expect "legacy" ' + - ' or "regional". Got "' + process.env[options.env] + '".' - }); - if (resolved) return resolved; - } - //validate shared config file - var profile = {}; - try { - var profiles = AWS.util.getProfilesFromSharedConfig(AWS.util.iniLoader); - profile = profiles[process.env.AWS_PROFILE || AWS.util.defaultProfile]; - } catch (e) {}; - if (profile && Object.prototype.hasOwnProperty.call(profile, options.sharedConfig)) { - var fileFlag = profile[options.sharedConfig]; - resolved = validateRegionalEndpointsFlagValue(fileFlag, { - code: 'InvalidConfiguration', - message: 'invalid ' + options.sharedConfig + ' profile config. Expect "legacy" ' + - ' or "regional". Got "' + profile[options.sharedConfig] + '".' - }); - if (resolved) return resolved; - } - return resolved; -} - -module.exports = resolveRegionalEndpointsFlag; - - -/***/ }), - -/***/ 60085: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -/** - * The main AWS namespace - */ -var AWS = { util: __nccwpck_require__(65742) }; - -/** - * @api private - * @!macro [new] nobrowser - * @note This feature is not supported in the browser environment of the SDK. - */ -var _hidden = {}; _hidden.toString(); // hack to parse macro - -/** - * @api private - */ -module.exports = AWS; - -AWS.util.update(AWS, { - - /** - * @constant - */ - VERSION: '2.1693.0', - - /** - * @api private - */ - Signers: {}, - - /** - * @api private - */ - Protocol: { - Json: __nccwpck_require__(75507), - Query: __nccwpck_require__(22881), - Rest: __nccwpck_require__(80031), - RestJson: __nccwpck_require__(84032), - RestXml: __nccwpck_require__(81153) - }, - - /** - * @api private - */ - XML: { - Builder: __nccwpck_require__(8665), - Parser: null // conditionally set based on environment - }, - - /** - * @api private - */ - JSON: { - Builder: __nccwpck_require__(84516), - Parser: __nccwpck_require__(36964) - }, - - /** - * @api private - */ - Model: { - Api: __nccwpck_require__(38738), - Operation: __nccwpck_require__(3359), - Shape: __nccwpck_require__(64147), - Paginator: __nccwpck_require__(46605), - ResourceWaiter: __nccwpck_require__(51301) - }, - - /** - * @api private - */ - apiLoader: __nccwpck_require__(44948), - - /** - * @api private - */ - EndpointCache: (__nccwpck_require__(3846)/* .EndpointCache */ .k) -}); -__nccwpck_require__(81525); -__nccwpck_require__(54263); -__nccwpck_require__(62384); -__nccwpck_require__(82578); -__nccwpck_require__(32726); -__nccwpck_require__(94849); -__nccwpck_require__(30229); -__nccwpck_require__(80971); -__nccwpck_require__(63610); -__nccwpck_require__(37660); -__nccwpck_require__(98517); - -/** - * @readonly - * @return [AWS.SequentialExecutor] a collection of global event listeners that - * are attached to every sent request. - * @see AWS.Request AWS.Request for a list of events to listen for - * @example Logging the time taken to send a request - * AWS.events.on('send', function startSend(resp) { - * resp.startTime = new Date().getTime(); - * }).on('complete', function calculateTime(resp) { - * var time = (new Date().getTime() - resp.startTime) / 1000; - * console.log('Request took ' + time + ' seconds'); - * }); - * - * new AWS.S3().listBuckets(); // prints 'Request took 0.285 seconds' - */ -AWS.events = new AWS.SequentialExecutor(); - -//create endpoint cache lazily -AWS.util.memoizedProperty(AWS, 'endpointCache', function() { - return new AWS.EndpointCache(AWS.config.endpointCacheSize); -}, true); - - -/***/ }), - -/***/ 92118: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -/** - * Represents your AWS security credentials, specifically the - * {accessKeyId}, {secretAccessKey}, and optional {sessionToken}. - * Creating a `Credentials` object allows you to pass around your - * security information to configuration and service objects. - * - * Note that this class typically does not need to be constructed manually, - * as the {AWS.Config} and {AWS.Service} classes both accept simple - * options hashes with the three keys. These structures will be converted - * into Credentials objects automatically. - * - * ## Expiring and Refreshing Credentials - * - * Occasionally credentials can expire in the middle of a long-running - * application. In this case, the SDK will automatically attempt to - * refresh the credentials from the storage location if the Credentials - * class implements the {refresh} method. - * - * If you are implementing a credential storage location, you - * will want to create a subclass of the `Credentials` class and - * override the {refresh} method. This method allows credentials to be - * retrieved from the backing store, be it a file system, database, or - * some network storage. The method should reset the credential attributes - * on the object. - * - * @!attribute expired - * @return [Boolean] whether the credentials have been expired and - * require a refresh. Used in conjunction with {expireTime}. - * @!attribute expireTime - * @return [Date] a time when credentials should be considered expired. Used - * in conjunction with {expired}. - * @!attribute accessKeyId - * @return [String] the AWS access key ID - * @!attribute secretAccessKey - * @return [String] the AWS secret access key - * @!attribute sessionToken - * @return [String] an optional AWS session token - */ -AWS.Credentials = AWS.util.inherit({ - /** - * A credentials object can be created using positional arguments or an options - * hash. - * - * @overload AWS.Credentials(accessKeyId, secretAccessKey, sessionToken=null) - * Creates a Credentials object with a given set of credential information - * as positional arguments. - * @param accessKeyId [String] the AWS access key ID - * @param secretAccessKey [String] the AWS secret access key - * @param sessionToken [String] the optional AWS session token - * @example Create a credentials object with AWS credentials - * var creds = new AWS.Credentials('akid', 'secret', 'session'); - * @overload AWS.Credentials(options) - * Creates a Credentials object with a given set of credential information - * as an options hash. - * @option options accessKeyId [String] the AWS access key ID - * @option options secretAccessKey [String] the AWS secret access key - * @option options sessionToken [String] the optional AWS session token - * @example Create a credentials object with AWS credentials - * var creds = new AWS.Credentials({ - * accessKeyId: 'akid', secretAccessKey: 'secret', sessionToken: 'session' - * }); - */ - constructor: function Credentials() { - // hide secretAccessKey from being displayed with util.inspect - AWS.util.hideProperties(this, ['secretAccessKey']); - - this.expired = false; - this.expireTime = null; - this.refreshCallbacks = []; - if (arguments.length === 1 && typeof arguments[0] === 'object') { - var creds = arguments[0].credentials || arguments[0]; - this.accessKeyId = creds.accessKeyId; - this.secretAccessKey = creds.secretAccessKey; - this.sessionToken = creds.sessionToken; - } else { - this.accessKeyId = arguments[0]; - this.secretAccessKey = arguments[1]; - this.sessionToken = arguments[2]; - } - }, - - /** - * @return [Integer] the number of seconds before {expireTime} during which - * the credentials will be considered expired. - */ - expiryWindow: 15, - - /** - * @return [Boolean] whether the credentials object should call {refresh} - * @note Subclasses should override this method to provide custom refresh - * logic. - */ - needsRefresh: function needsRefresh() { - var currentTime = AWS.util.date.getDate().getTime(); - var adjustedTime = new Date(currentTime + this.expiryWindow * 1000); - - if (this.expireTime && adjustedTime > this.expireTime) { - return true; - } else { - return this.expired || !this.accessKeyId || !this.secretAccessKey; - } - }, - - /** - * Gets the existing credentials, refreshing them if they are not yet loaded - * or have expired. Users should call this method before using {refresh}, - * as this will not attempt to reload credentials when they are already - * loaded into the object. - * - * @callback callback function(err) - * When this callback is called with no error, it means either credentials - * do not need to be refreshed or refreshed credentials information has - * been loaded into the object (as the `accessKeyId`, `secretAccessKey`, - * and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - */ - get: function get(callback) { - var self = this; - if (this.needsRefresh()) { - this.refresh(function(err) { - if (!err) self.expired = false; // reset expired flag - if (callback) callback(err); - }); - } else if (callback) { - callback(); - } - }, - - /** - * @!method getPromise() - * Returns a 'thenable' promise. - * Gets the existing credentials, refreshing them if they are not yet loaded - * or have expired. Users should call this method before using {refresh}, - * as this will not attempt to reload credentials when they are already - * loaded into the object. - * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @callback fulfilledCallback function() - * Called if the promise is fulfilled. When this callback is called, it - * means either credentials do not need to be refreshed or refreshed - * credentials information has been loaded into the object (as the - * `accessKeyId`, `secretAccessKey`, and `sessionToken` properties). - * @callback rejectedCallback function(err) - * Called if the promise is rejected. - * @param err [Error] if an error occurred, this value will be filled - * @return [Promise] A promise that represents the state of the `get` call. - * @example Calling the `getPromise` method. - * var promise = credProvider.getPromise(); - * promise.then(function() { ... }, function(err) { ... }); - */ - - /** - * @!method refreshPromise() - * Returns a 'thenable' promise. - * Refreshes the credentials. Users should call {get} before attempting - * to forcibly refresh credentials. - * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @callback fulfilledCallback function() - * Called if the promise is fulfilled. When this callback is called, it - * means refreshed credentials information has been loaded into the object - * (as the `accessKeyId`, `secretAccessKey`, and `sessionToken` properties). - * @callback rejectedCallback function(err) - * Called if the promise is rejected. - * @param err [Error] if an error occurred, this value will be filled - * @return [Promise] A promise that represents the state of the `refresh` call. - * @example Calling the `refreshPromise` method. - * var promise = credProvider.refreshPromise(); - * promise.then(function() { ... }, function(err) { ... }); - */ - - /** - * Refreshes the credentials. Users should call {get} before attempting - * to forcibly refresh credentials. - * - * @callback callback function(err) - * When this callback is called with no error, it means refreshed - * credentials information has been loaded into the object (as the - * `accessKeyId`, `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @note Subclasses should override this class to reset the - * {accessKeyId}, {secretAccessKey} and optional {sessionToken} - * on the credentials object and then call the callback with - * any error information. - * @see get - */ - refresh: function refresh(callback) { - this.expired = false; - callback(); - }, - - /** - * @api private - * @param callback - */ - coalesceRefresh: function coalesceRefresh(callback, sync) { - var self = this; - if (self.refreshCallbacks.push(callback) === 1) { - self.load(function onLoad(err) { - AWS.util.arrayEach(self.refreshCallbacks, function(callback) { - if (sync) { - callback(err); - } else { - // callback could throw, so defer to ensure all callbacks are notified - AWS.util.defer(function () { - callback(err); - }); - } - }); - self.refreshCallbacks.length = 0; - }); - } - }, - - /** - * @api private - * @param callback - */ - load: function load(callback) { - callback(); - } -}); - -/** - * @api private - */ -AWS.Credentials.addPromisesToClass = function addPromisesToClass(PromiseDependency) { - this.prototype.getPromise = AWS.util.promisifyMethod('get', PromiseDependency); - this.prototype.refreshPromise = AWS.util.promisifyMethod('refresh', PromiseDependency); -}; - -/** - * @api private - */ -AWS.Credentials.deletePromisesFromClass = function deletePromisesFromClass() { - delete this.prototype.getPromise; - delete this.prototype.refreshPromise; -}; - -AWS.util.addPromises(AWS.Credentials); - - -/***/ }), - -/***/ 13761: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var STS = __nccwpck_require__(98595); - -/** - * Represents temporary credentials retrieved from {AWS.STS}. Without any - * extra parameters, credentials will be fetched from the - * {AWS.STS.getSessionToken} operation. If an IAM role is provided, the - * {AWS.STS.assumeRole} operation will be used to fetch credentials for the - * role instead. - * - * AWS.ChainableTemporaryCredentials differs from AWS.TemporaryCredentials in - * the way masterCredentials and refreshes are handled. - * AWS.ChainableTemporaryCredentials refreshes expired credentials using the - * masterCredentials passed by the user to support chaining of STS credentials. - * However, AWS.TemporaryCredentials recursively collapses the masterCredentials - * during instantiation, precluding the ability to refresh credentials which - * require intermediate, temporary credentials. - * - * For example, if the application should use RoleA, which must be assumed from - * RoleB, and the environment provides credentials which can assume RoleB, then - * AWS.ChainableTemporaryCredentials must be used to support refreshing the - * temporary credentials for RoleA: - * - * ```javascript - * var roleACreds = new AWS.ChainableTemporaryCredentials({ - * params: {RoleArn: 'RoleA'}, - * masterCredentials: new AWS.ChainableTemporaryCredentials({ - * params: {RoleArn: 'RoleB'}, - * masterCredentials: new AWS.EnvironmentCredentials('AWS') - * }) - * }); - * ``` - * - * If AWS.TemporaryCredentials had been used in the previous example, - * `roleACreds` would fail to refresh because `roleACreds` would - * use the environment credentials for the AssumeRole request. - * - * Another difference is that AWS.ChainableTemporaryCredentials creates the STS - * service instance during instantiation while AWS.TemporaryCredentials creates - * the STS service instance during the first refresh. Creating the service - * instance during instantiation effectively captures the master credentials - * from the global config, so that subsequent changes to the global config do - * not affect the master credentials used to refresh the temporary credentials. - * - * This allows an instance of AWS.ChainableTemporaryCredentials to be assigned - * to AWS.config.credentials: - * - * ```javascript - * var envCreds = new AWS.EnvironmentCredentials('AWS'); - * AWS.config.credentials = envCreds; - * // masterCredentials will be envCreds - * AWS.config.credentials = new AWS.ChainableTemporaryCredentials({ - * params: {RoleArn: '...'} - * }); - * ``` - * - * Similarly, to use the CredentialProviderChain's default providers as the - * master credentials, simply create a new instance of - * AWS.ChainableTemporaryCredentials: - * - * ```javascript - * AWS.config.credentials = new ChainableTemporaryCredentials({ - * params: {RoleArn: '...'} - * }); - * ``` - * - * @!attribute service - * @return [AWS.STS] the STS service instance used to - * get and refresh temporary credentials from AWS STS. - * @note (see constructor) - */ -AWS.ChainableTemporaryCredentials = AWS.util.inherit(AWS.Credentials, { - /** - * Creates a new temporary credentials object. - * - * @param options [map] a set of options - * @option options params [map] ({}) a map of options that are passed to the - * {AWS.STS.assumeRole} or {AWS.STS.getSessionToken} operations. - * If a `RoleArn` parameter is passed in, credentials will be based on the - * IAM role. If a `SerialNumber` parameter is passed in, {tokenCodeFn} must - * also be passed in or an error will be thrown. - * @option options masterCredentials [AWS.Credentials] the master credentials - * used to get and refresh temporary credentials from AWS STS. By default, - * AWS.config.credentials or AWS.config.credentialProvider will be used. - * @option options tokenCodeFn [Function] (null) Function to provide - * `TokenCode`, if `SerialNumber` is provided for profile in {params}. Function - * is called with value of `SerialNumber` and `callback`, and should provide - * the `TokenCode` or an error to the callback in the format - * `callback(err, token)`. - * @example Creating a new credentials object for generic temporary credentials - * AWS.config.credentials = new AWS.ChainableTemporaryCredentials(); - * @example Creating a new credentials object for an IAM role - * AWS.config.credentials = new AWS.ChainableTemporaryCredentials({ - * params: { - * RoleArn: 'arn:aws:iam::1234567890:role/TemporaryCredentials' - * } - * }); - * @see AWS.STS.assumeRole - * @see AWS.STS.getSessionToken - */ - constructor: function ChainableTemporaryCredentials(options) { - AWS.Credentials.call(this); - options = options || {}; - this.errorCode = 'ChainableTemporaryCredentialsProviderFailure'; - this.expired = true; - this.tokenCodeFn = null; - - var params = AWS.util.copy(options.params) || {}; - if (params.RoleArn) { - params.RoleSessionName = params.RoleSessionName || 'temporary-credentials'; - } - if (params.SerialNumber) { - if (!options.tokenCodeFn || (typeof options.tokenCodeFn !== 'function')) { - throw new AWS.util.error( - new Error('tokenCodeFn must be a function when params.SerialNumber is given'), - {code: this.errorCode} - ); - } else { - this.tokenCodeFn = options.tokenCodeFn; - } - } - var config = AWS.util.merge( - { - params: params, - credentials: options.masterCredentials || AWS.config.credentials - }, - options.stsConfig || {} - ); - this.service = new STS(config); - }, - - /** - * Refreshes credentials using {AWS.STS.assumeRole} or - * {AWS.STS.getSessionToken}, depending on whether an IAM role ARN was passed - * to the credentials {constructor}. - * - * @callback callback function(err) - * Called when the STS service responds (or fails). When - * this callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see AWS.Credentials.get - */ - refresh: function refresh(callback) { - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, - - /** - * @api private - * @param callback - */ - load: function load(callback) { - var self = this; - var operation = self.service.config.params.RoleArn ? 'assumeRole' : 'getSessionToken'; - this.getTokenCode(function (err, tokenCode) { - var params = {}; - if (err) { - callback(err); - return; - } - if (tokenCode) { - params.TokenCode = tokenCode; - } - self.service[operation](params, function (err, data) { - if (!err) { - self.service.credentialsFrom(data, self); - } - callback(err); - }); - }); - }, - - /** - * @api private - */ - getTokenCode: function getTokenCode(callback) { - var self = this; - if (this.tokenCodeFn) { - this.tokenCodeFn(this.service.config.params.SerialNumber, function (err, token) { - if (err) { - var message = err; - if (err instanceof Error) { - message = err.message; - } - callback( - AWS.util.error( - new Error('Error fetching MFA token: ' + message), - { code: self.errorCode} - ) - ); - return; - } - callback(null, token); - }); - } else { - callback(null); - } - } -}); - - -/***/ }), - -/***/ 12298: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var CognitoIdentity = __nccwpck_require__(74566); -var STS = __nccwpck_require__(98595); - -/** - * Represents credentials retrieved from STS Web Identity Federation using - * the Amazon Cognito Identity service. - * - * By default this provider gets credentials using the - * {AWS.CognitoIdentity.getCredentialsForIdentity} service operation, which - * requires either an `IdentityId` or an `IdentityPoolId` (Amazon Cognito - * Identity Pool ID), which is used to call {AWS.CognitoIdentity.getId} to - * obtain an `IdentityId`. If the identity or identity pool is not configured in - * the Amazon Cognito Console to use IAM roles with the appropriate permissions, - * then additionally a `RoleArn` is required containing the ARN of the IAM trust - * policy for the Amazon Cognito role that the user will log into. If a `RoleArn` - * is provided, then this provider gets credentials using the - * {AWS.STS.assumeRoleWithWebIdentity} service operation, after first getting an - * Open ID token from {AWS.CognitoIdentity.getOpenIdToken}. - * - * In addition, if this credential provider is used to provide authenticated - * login, the `Logins` map may be set to the tokens provided by the respective - * identity providers. See {constructor} for an example on creating a credentials - * object with proper property values. - * - * DISCLAIMER: This convenience method leverages the Enhanced (simplified) Authflow. The underlying - * implementation calls Cognito's `getId()` and `GetCredentialsForIdentity()`. - * In this flow there is no way to explicitly set a session policy, resulting in - * STS attaching the default policy and limiting the permissions of the federated role. - * To be able to explicitly set a session policy, do not use this convenience method. - * Instead, you can use the Cognito client to call `getId()`, `GetOpenIdToken()` and then use - * that token with your desired session policy to call STS's `AssumeRoleWithWebIdentity()` - * For further reading refer to: https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html - * - * ## Refreshing Credentials from Identity Service - * - * In addition to AWS credentials expiring after a given amount of time, the - * login token from the identity provider will also expire. Once this token - * expires, it will not be usable to refresh AWS credentials, and another - * token will be needed. The SDK does not manage refreshing of the token value, - * but this can be done through a "refresh token" supported by most identity - * providers. Consult the documentation for the identity provider for refreshing - * tokens. Once the refreshed token is acquired, you should make sure to update - * this new token in the credentials object's {params} property. The following - * code will update the WebIdentityToken, assuming you have retrieved an updated - * token from the identity provider: - * - * ```javascript - * AWS.config.credentials.params.Logins['graph.facebook.com'] = updatedToken; - * ``` - * - * Future calls to `credentials.refresh()` will now use the new token. - * - * @!attribute params - * @return [map] the map of params passed to - * {AWS.CognitoIdentity.getId}, - * {AWS.CognitoIdentity.getOpenIdToken}, and - * {AWS.STS.assumeRoleWithWebIdentity}. To update the token, set the - * `params.WebIdentityToken` property. - * @!attribute data - * @return [map] the raw data response from the call to - * {AWS.CognitoIdentity.getCredentialsForIdentity}, or - * {AWS.STS.assumeRoleWithWebIdentity}. Use this if you want to get - * access to other properties from the response. - * @!attribute identityId - * @return [String] the Cognito ID returned by the last call to - * {AWS.CognitoIdentity.getOpenIdToken}. This ID represents the actual - * final resolved identity ID from Amazon Cognito. - */ -AWS.CognitoIdentityCredentials = AWS.util.inherit(AWS.Credentials, { - /** - * @api private - */ - localStorageKey: { - id: 'aws.cognito.identity-id.', - providers: 'aws.cognito.identity-providers.' - }, - - /** - * Creates a new credentials object. - * @example Creating a new credentials object - * AWS.config.credentials = new AWS.CognitoIdentityCredentials({ - * - * // either IdentityPoolId or IdentityId is required - * // See the IdentityPoolId param for AWS.CognitoIdentity.getID (linked below) - * // See the IdentityId param for AWS.CognitoIdentity.getCredentialsForIdentity - * // or AWS.CognitoIdentity.getOpenIdToken (linked below) - * IdentityPoolId: 'us-east-1:1699ebc0-7900-4099-b910-2df94f52a030', - * IdentityId: 'us-east-1:128d0a74-c82f-4553-916d-90053e4a8b0f' - * - * // optional, only necessary when the identity pool is not configured - * // to use IAM roles in the Amazon Cognito Console - * // See the RoleArn param for AWS.STS.assumeRoleWithWebIdentity (linked below) - * RoleArn: 'arn:aws:iam::1234567890:role/MYAPP-CognitoIdentity', - * - * // optional tokens, used for authenticated login - * // See the Logins param for AWS.CognitoIdentity.getID (linked below) - * Logins: { - * 'graph.facebook.com': 'FBTOKEN', - * 'www.amazon.com': 'AMAZONTOKEN', - * 'accounts.google.com': 'GOOGLETOKEN', - * 'api.twitter.com': 'TWITTERTOKEN', - * 'www.digits.com': 'DIGITSTOKEN' - * }, - * - * // optional name, defaults to web-identity - * // See the RoleSessionName param for AWS.STS.assumeRoleWithWebIdentity (linked below) - * RoleSessionName: 'web', - * - * // optional, only necessary when application runs in a browser - * // and multiple users are signed in at once, used for caching - * LoginId: 'example@gmail.com' - * - * }, { - * // optionally provide configuration to apply to the underlying service clients - * // if configuration is not provided, then configuration will be pulled from AWS.config - * - * // region should match the region your identity pool is located in - * region: 'us-east-1', - * - * // specify timeout options - * httpOptions: { - * timeout: 100 - * } - * }); - * @see AWS.CognitoIdentity.getId - * @see AWS.CognitoIdentity.getCredentialsForIdentity - * @see AWS.STS.assumeRoleWithWebIdentity - * @see AWS.CognitoIdentity.getOpenIdToken - * @see AWS.Config - * @note If a region is not provided in the global AWS.config, or - * specified in the `clientConfig` to the CognitoIdentityCredentials - * constructor, you may encounter a 'Missing credentials in config' error - * when calling making a service call. - */ - constructor: function CognitoIdentityCredentials(params, clientConfig) { - AWS.Credentials.call(this); - this.expired = true; - this.params = params; - this.data = null; - this._identityId = null; - this._clientConfig = AWS.util.copy(clientConfig || {}); - this.loadCachedId(); - var self = this; - Object.defineProperty(this, 'identityId', { - get: function() { - self.loadCachedId(); - return self._identityId || self.params.IdentityId; - }, - set: function(identityId) { - self._identityId = identityId; - } - }); - }, - - /** - * Refreshes credentials using {AWS.CognitoIdentity.getCredentialsForIdentity}, - * or {AWS.STS.assumeRoleWithWebIdentity}. - * - * @callback callback function(err) - * Called when the STS service responds (or fails). When - * this callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see AWS.Credentials.get - */ - refresh: function refresh(callback) { - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, - - /** - * @api private - * @param callback - */ - load: function load(callback) { - var self = this; - self.createClients(); - self.data = null; - self._identityId = null; - self.getId(function(err) { - if (!err) { - if (!self.params.RoleArn) { - self.getCredentialsForIdentity(callback); - } else { - self.getCredentialsFromSTS(callback); - } - } else { - self.clearIdOnNotAuthorized(err); - callback(err); - } - }); - }, - - /** - * Clears the cached Cognito ID associated with the currently configured - * identity pool ID. Use this to manually invalidate your cache if - * the identity pool ID was deleted. - */ - clearCachedId: function clearCache() { - this._identityId = null; - delete this.params.IdentityId; - - var poolId = this.params.IdentityPoolId; - var loginId = this.params.LoginId || ''; - delete this.storage[this.localStorageKey.id + poolId + loginId]; - delete this.storage[this.localStorageKey.providers + poolId + loginId]; - }, - - /** - * @api private - */ - clearIdOnNotAuthorized: function clearIdOnNotAuthorized(err) { - var self = this; - if (err.code == 'NotAuthorizedException') { - self.clearCachedId(); - } - }, - - /** - * Retrieves a Cognito ID, loading from cache if it was already retrieved - * on this device. - * - * @callback callback function(err, identityId) - * @param err [Error, null] an error object if the call failed or null if - * it succeeded. - * @param identityId [String, null] if successful, the callback will return - * the Cognito ID. - * @note If not loaded explicitly, the Cognito ID is loaded and stored in - * localStorage in the browser environment of a device. - * @api private - */ - getId: function getId(callback) { - var self = this; - if (typeof self.params.IdentityId === 'string') { - return callback(null, self.params.IdentityId); - } - - self.cognito.getId(function(err, data) { - if (!err && data.IdentityId) { - self.params.IdentityId = data.IdentityId; - callback(null, data.IdentityId); - } else { - callback(err); - } - }); - }, - - - /** - * @api private - */ - loadCredentials: function loadCredentials(data, credentials) { - if (!data || !credentials) return; - credentials.expired = false; - credentials.accessKeyId = data.Credentials.AccessKeyId; - credentials.secretAccessKey = data.Credentials.SecretKey; - credentials.sessionToken = data.Credentials.SessionToken; - credentials.expireTime = data.Credentials.Expiration; - }, - - /** - * @api private - */ - getCredentialsForIdentity: function getCredentialsForIdentity(callback) { - var self = this; - self.cognito.getCredentialsForIdentity(function(err, data) { - if (!err) { - self.cacheId(data); - self.data = data; - self.loadCredentials(self.data, self); - } else { - self.clearIdOnNotAuthorized(err); - } - callback(err); - }); - }, - - /** - * @api private - */ - getCredentialsFromSTS: function getCredentialsFromSTS(callback) { - var self = this; - self.cognito.getOpenIdToken(function(err, data) { - if (!err) { - self.cacheId(data); - self.params.WebIdentityToken = data.Token; - self.webIdentityCredentials.refresh(function(webErr) { - if (!webErr) { - self.data = self.webIdentityCredentials.data; - self.sts.credentialsFrom(self.data, self); - } - callback(webErr); - }); - } else { - self.clearIdOnNotAuthorized(err); - callback(err); - } - }); - }, - - /** - * @api private - */ - loadCachedId: function loadCachedId() { - var self = this; - - // in the browser we source default IdentityId from localStorage - if (AWS.util.isBrowser() && !self.params.IdentityId) { - var id = self.getStorage('id'); - if (id && self.params.Logins) { - var actualProviders = Object.keys(self.params.Logins); - var cachedProviders = - (self.getStorage('providers') || '').split(','); - - // only load ID if at least one provider used this ID before - var intersect = cachedProviders.filter(function(n) { - return actualProviders.indexOf(n) !== -1; - }); - if (intersect.length !== 0) { - self.params.IdentityId = id; - } - } else if (id) { - self.params.IdentityId = id; - } - } - }, - - /** - * @api private - */ - createClients: function() { - var clientConfig = this._clientConfig; - this.webIdentityCredentials = this.webIdentityCredentials || - new AWS.WebIdentityCredentials(this.params, clientConfig); - if (!this.cognito) { - var cognitoConfig = AWS.util.merge({}, clientConfig); - cognitoConfig.params = this.params; - this.cognito = new CognitoIdentity(cognitoConfig); - } - this.sts = this.sts || new STS(clientConfig); - }, - - /** - * @api private - */ - cacheId: function cacheId(data) { - this._identityId = data.IdentityId; - this.params.IdentityId = this._identityId; - - // cache this IdentityId in browser localStorage if possible - if (AWS.util.isBrowser()) { - this.setStorage('id', data.IdentityId); - - if (this.params.Logins) { - this.setStorage('providers', Object.keys(this.params.Logins).join(',')); - } - } - }, - - /** - * @api private - */ - getStorage: function getStorage(key) { - return this.storage[this.localStorageKey[key] + this.params.IdentityPoolId + (this.params.LoginId || '')]; - }, - - /** - * @api private - */ - setStorage: function setStorage(key, val) { - try { - this.storage[this.localStorageKey[key] + this.params.IdentityPoolId + (this.params.LoginId || '')] = val; - } catch (_) {} - }, - - /** - * @api private - */ - storage: (function() { - try { - var storage = AWS.util.isBrowser() && window.localStorage !== null && typeof window.localStorage === 'object' ? - window.localStorage : {}; - - // Test set/remove which would throw an error in Safari's private browsing - storage['aws.test-storage'] = 'foobar'; - delete storage['aws.test-storage']; - - return storage; - } catch (_) { - return {}; - } - })() -}); - - -/***/ }), - -/***/ 30364: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -/** - * Creates a credential provider chain that searches for AWS credentials - * in a list of credential providers specified by the {providers} property. - * - * By default, the chain will use the {defaultProviders} to resolve credentials. - * These providers will look in the environment using the - * {AWS.EnvironmentCredentials} class with the 'AWS' and 'AMAZON' prefixes. - * - * ## Setting Providers - * - * Each provider in the {providers} list should be a function that returns - * a {AWS.Credentials} object, or a hardcoded credentials object. The function - * form allows for delayed execution of the credential construction. - * - * ## Resolving Credentials from a Chain - * - * Call {resolve} to return the first valid credential object that can be - * loaded by the provider chain. - * - * For example, to resolve a chain with a custom provider that checks a file - * on disk after the set of {defaultProviders}: - * - * ```javascript - * var diskProvider = new AWS.FileSystemCredentials('./creds.json'); - * var chain = new AWS.CredentialProviderChain(); - * chain.providers.push(diskProvider); - * chain.resolve(); - * ``` - * - * The above code will return the `diskProvider` object if the - * file contains credentials and the `defaultProviders` do not contain - * any credential settings. - * - * @!attribute providers - * @return [Array] - * a list of credentials objects or functions that return credentials - * objects. If the provider is a function, the function will be - * executed lazily when the provider needs to be checked for valid - * credentials. By default, this object will be set to the - * {defaultProviders}. - * @see defaultProviders - */ -AWS.CredentialProviderChain = AWS.util.inherit(AWS.Credentials, { - - /** - * Creates a new CredentialProviderChain with a default set of providers - * specified by {defaultProviders}. - */ - constructor: function CredentialProviderChain(providers) { - if (providers) { - this.providers = providers; - } else { - this.providers = AWS.CredentialProviderChain.defaultProviders.slice(0); - } - this.resolveCallbacks = []; - }, - - /** - * @!method resolvePromise() - * Returns a 'thenable' promise. - * Resolves the provider chain by searching for the first set of - * credentials in {providers}. - * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @callback fulfilledCallback function(credentials) - * Called if the promise is fulfilled and the provider resolves the chain - * to a credentials object - * @param credentials [AWS.Credentials] the credentials object resolved - * by the provider chain. - * @callback rejectedCallback function(error) - * Called if the promise is rejected. - * @param err [Error] the error object returned if no credentials are found. - * @return [Promise] A promise that represents the state of the `resolve` method call. - * @example Calling the `resolvePromise` method. - * var promise = chain.resolvePromise(); - * promise.then(function(credentials) { ... }, function(err) { ... }); - */ - - /** - * Resolves the provider chain by searching for the first set of - * credentials in {providers}. - * - * @callback callback function(err, credentials) - * Called when the provider resolves the chain to a credentials object - * or null if no credentials can be found. - * - * @param err [Error] the error object returned if no credentials are - * found. - * @param credentials [AWS.Credentials] the credentials object resolved - * by the provider chain. - * @return [AWS.CredentialProviderChain] the provider, for chaining. - */ - resolve: function resolve(callback) { - var self = this; - if (self.providers.length === 0) { - callback(new Error('No providers')); - return self; - } - - if (self.resolveCallbacks.push(callback) === 1) { - var index = 0; - var providers = self.providers.slice(0); - - function resolveNext(err, creds) { - if ((!err && creds) || index === providers.length) { - AWS.util.arrayEach(self.resolveCallbacks, function (callback) { - callback(err, creds); - }); - self.resolveCallbacks.length = 0; - return; - } - - var provider = providers[index++]; - if (typeof provider === 'function') { - creds = provider.call(); - } else { - creds = provider; - } - - if (creds.get) { - creds.get(function (getErr) { - resolveNext(getErr, getErr ? null : creds); - }); - } else { - resolveNext(null, creds); - } - } - - resolveNext(); - } - - return self; - } -}); - -/** - * The default set of providers used by a vanilla CredentialProviderChain. - * - * In the browser: - * - * ```javascript - * AWS.CredentialProviderChain.defaultProviders = [] - * ``` - * - * In Node.js: - * - * ```javascript - * AWS.CredentialProviderChain.defaultProviders = [ - * function () { return new AWS.EnvironmentCredentials('AWS'); }, - * function () { return new AWS.EnvironmentCredentials('AMAZON'); }, - * function () { return new AWS.SsoCredentials(); }, - * function () { return new AWS.SharedIniFileCredentials(); }, - * function () { return new AWS.ECSCredentials(); }, - * function () { return new AWS.ProcessCredentials(); }, - * function () { return new AWS.TokenFileWebIdentityCredentials(); }, - * function () { return new AWS.EC2MetadataCredentials() } - * ] - * ``` - */ -AWS.CredentialProviderChain.defaultProviders = []; - -/** - * @api private - */ -AWS.CredentialProviderChain.addPromisesToClass = function addPromisesToClass(PromiseDependency) { - this.prototype.resolvePromise = AWS.util.promisifyMethod('resolve', PromiseDependency); -}; - -/** - * @api private - */ -AWS.CredentialProviderChain.deletePromisesFromClass = function deletePromisesFromClass() { - delete this.prototype.resolvePromise; -}; - -AWS.util.addPromises(AWS.CredentialProviderChain); - - -/***/ }), - -/***/ 98414: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -__nccwpck_require__(67647); - -/** - * Represents credentials received from the metadata service on an EC2 instance. - * - * By default, this class will connect to the metadata service using - * {AWS.MetadataService} and attempt to load any available credentials. If it - * can connect, and credentials are available, these will be used with zero - * configuration. - * - * This credentials class will by default timeout after 1 second of inactivity - * and retry 3 times. - * If your requests to the EC2 metadata service are timing out, you can increase - * these values by configuring them directly: - * - * ```javascript - * AWS.config.credentials = new AWS.EC2MetadataCredentials({ - * httpOptions: { timeout: 5000 }, // 5 second timeout - * maxRetries: 10, // retry 10 times - * retryDelayOptions: { base: 200 }, // see AWS.Config for information - * logger: console // see AWS.Config for information - * ec2MetadataV1Disabled: false // whether to block IMDS v1 fallback. - * }); - * ``` - * - * If your requests are timing out in connecting to the metadata service, such - * as when testing on a development machine, you can use the connectTimeout - * option, specified in milliseconds, which also defaults to 1 second. - * - * If the requests failed or returns expired credentials, it will - * extend the expiration of current credential, with a warning message. For more - * information, please go to: - * https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html - * - * @!attribute originalExpiration - * @return [Date] The optional original expiration of the current credential. - * In case of AWS outage, the EC2 metadata will extend expiration of the - * existing credential. - * - * @see AWS.Config.retryDelayOptions - * @see AWS.Config.logger - * - * @!macro nobrowser - */ -AWS.EC2MetadataCredentials = AWS.util.inherit(AWS.Credentials, { - constructor: function EC2MetadataCredentials(options) { - AWS.Credentials.call(this); - - options = options ? AWS.util.copy(options) : {}; - options = AWS.util.merge( - {maxRetries: this.defaultMaxRetries}, options); - if (!options.httpOptions) options.httpOptions = {}; - options.httpOptions = AWS.util.merge( - {timeout: this.defaultTimeout, - connectTimeout: this.defaultConnectTimeout}, - options.httpOptions); - - this.metadataService = new AWS.MetadataService(options); - this.logger = options.logger || AWS.config && AWS.config.logger; - }, - - /** - * @api private - */ - defaultTimeout: 1000, - - /** - * @api private - */ - defaultConnectTimeout: 1000, - - /** - * @api private - */ - defaultMaxRetries: 3, - - /** - * The original expiration of the current credential. In case of AWS - * outage, the EC2 metadata will extend expiration of the existing - * credential. - */ - originalExpiration: undefined, - - /** - * Loads the credentials from the instance metadata service - * - * @callback callback function(err) - * Called when the instance metadata service responds (or fails). When - * this callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, - - /** - * @api private - * @param callback - */ - load: function load(callback) { - var self = this; - self.metadataService.loadCredentials(function(err, creds) { - if (err) { - if (self.hasLoadedCredentials()) { - self.extendExpirationIfExpired(); - callback(); - } else { - callback(err); - } - } else { - self.setCredentials(creds); - self.extendExpirationIfExpired(); - callback(); - } - }); - }, - - /** - * Whether this credential has been loaded. - * @api private - */ - hasLoadedCredentials: function hasLoadedCredentials() { - return this.AccessKeyId && this.secretAccessKey; - }, - - /** - * if expired, extend the expiration by 15 minutes base plus a jitter of 5 - * minutes range. - * @api private - */ - extendExpirationIfExpired: function extendExpirationIfExpired() { - if (this.needsRefresh()) { - this.originalExpiration = this.originalExpiration || this.expireTime; - this.expired = false; - var nextTimeout = 15 * 60 + Math.floor(Math.random() * 5 * 60); - var currentTime = AWS.util.date.getDate().getTime(); - this.expireTime = new Date(currentTime + nextTimeout * 1000); - // TODO: add doc link; - this.logger.warn('Attempting credential expiration extension due to a ' - + 'credential service availability issue. A refresh of these ' - + 'credentials will be attempted again at ' + this.expireTime - + '\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html'); - } - }, - - /** - * Update the credential with new credential responded from EC2 metadata - * service. - * @api private - */ - setCredentials: function setCredentials(creds) { - var currentTime = AWS.util.date.getDate().getTime(); - var expireTime = new Date(creds.Expiration); - this.expired = currentTime >= expireTime ? true : false; - this.metadata = creds; - this.accessKeyId = creds.AccessKeyId; - this.secretAccessKey = creds.SecretAccessKey; - this.sessionToken = creds.Token; - this.expireTime = expireTime; - } -}); - - -/***/ }), - -/***/ 91593: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -/** - * Represents credentials received from relative URI specified in the ECS container. - * - * This class will request refreshable credentials from the relative URI - * specified by the AWS_CONTAINER_CREDENTIALS_RELATIVE_URI or the - * AWS_CONTAINER_CREDENTIALS_FULL_URI environment variable. If valid credentials - * are returned in the response, these will be used with zero configuration. - * - * This credentials class will by default timeout after 1 second of inactivity - * and retry 3 times. - * If your requests to the relative URI are timing out, you can increase - * the value by configuring them directly: - * - * ```javascript - * AWS.config.credentials = new AWS.ECSCredentials({ - * httpOptions: { timeout: 5000 }, // 5 second timeout - * maxRetries: 10, // retry 10 times - * retryDelayOptions: { base: 200 } // see AWS.Config for information - * }); - * ``` - * - * @see AWS.Config.retryDelayOptions - * - * @!macro nobrowser - */ -AWS.ECSCredentials = AWS.RemoteCredentials; - - -/***/ }), - -/***/ 91269: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -/** - * Represents credentials from the environment. - * - * By default, this class will look for the matching environment variables - * prefixed by a given {envPrefix}. The un-prefixed environment variable names - * for each credential value is listed below: - * - * ```javascript - * accessKeyId: ACCESS_KEY_ID - * secretAccessKey: SECRET_ACCESS_KEY - * sessionToken: SESSION_TOKEN - * ``` - * - * With the default prefix of 'AWS', the environment variables would be: - * - * AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN - * - * @!attribute envPrefix - * @readonly - * @return [String] the prefix for the environment variable names excluding - * the separating underscore ('_'). - */ -AWS.EnvironmentCredentials = AWS.util.inherit(AWS.Credentials, { - - /** - * Creates a new EnvironmentCredentials class with a given variable - * prefix {envPrefix}. For example, to load credentials using the 'AWS' - * prefix: - * - * ```javascript - * var creds = new AWS.EnvironmentCredentials('AWS'); - * creds.accessKeyId == 'AKID' // from AWS_ACCESS_KEY_ID env var - * ``` - * - * @param envPrefix [String] the prefix to use (e.g., 'AWS') for environment - * variables. Do not include the separating underscore. - */ - constructor: function EnvironmentCredentials(envPrefix) { - AWS.Credentials.call(this); - this.envPrefix = envPrefix; - this.get(function() {}); - }, - - /** - * Loads credentials from the environment using the prefixed - * environment variables. - * - * @callback callback function(err) - * Called after the (prefixed) ACCESS_KEY_ID, SECRET_ACCESS_KEY, and - * SESSION_TOKEN environment variables are read. When this callback is - * called with no error, it means that the credentials information has - * been loaded into the object (as the `accessKeyId`, `secretAccessKey`, - * and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - if (!callback) callback = AWS.util.fn.callback; - - if (!process || !process.env) { - callback(AWS.util.error( - new Error('No process info or environment variables available'), - { code: 'EnvironmentCredentialsProviderFailure' } - )); - return; - } - - var keys = ['ACCESS_KEY_ID', 'SECRET_ACCESS_KEY', 'SESSION_TOKEN']; - var values = []; - - for (var i = 0; i < keys.length; i++) { - var prefix = ''; - if (this.envPrefix) prefix = this.envPrefix + '_'; - values[i] = process.env[prefix + keys[i]]; - if (!values[i] && keys[i] !== 'SESSION_TOKEN') { - callback(AWS.util.error( - new Error('Variable ' + prefix + keys[i] + ' not set.'), - { code: 'EnvironmentCredentialsProviderFailure' } - )); - return; - } - } - - this.expired = false; - AWS.Credentials.apply(this, values); - callback(); - } - -}); - - -/***/ }), - -/***/ 82550: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -/** - * Represents credentials from a JSON file on disk. - * If the credentials expire, the SDK can {refresh} the credentials - * from the file. - * - * The format of the file should be similar to the options passed to - * {AWS.Config}: - * - * ```javascript - * {accessKeyId: 'akid', secretAccessKey: 'secret', sessionToken: 'optional'} - * ``` - * - * @example Loading credentials from disk - * var creds = new AWS.FileSystemCredentials('./configuration.json'); - * creds.accessKeyId == 'AKID' - * - * @!attribute filename - * @readonly - * @return [String] the path to the JSON file on disk containing the - * credentials. - * @!macro nobrowser - */ -AWS.FileSystemCredentials = AWS.util.inherit(AWS.Credentials, { - - /** - * @overload AWS.FileSystemCredentials(filename) - * Creates a new FileSystemCredentials object from a filename - * - * @param filename [String] the path on disk to the JSON file to load. - */ - constructor: function FileSystemCredentials(filename) { - AWS.Credentials.call(this); - this.filename = filename; - this.get(function() {}); - }, - - /** - * Loads the credentials from the {filename} on disk. - * - * @callback callback function(err) - * Called after the JSON file on disk is read and parsed. When this callback - * is called with no error, it means that the credentials information - * has been loaded into the object (as the `accessKeyId`, `secretAccessKey`, - * and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - if (!callback) callback = AWS.util.fn.callback; - try { - var creds = JSON.parse(AWS.util.readFileSync(this.filename)); - AWS.Credentials.call(this, creds); - if (!this.accessKeyId || !this.secretAccessKey) { - throw AWS.util.error( - new Error('Credentials not set in ' + this.filename), - { code: 'FileSystemCredentialsProviderFailure' } - ); - } - this.expired = false; - callback(); - } catch (err) { - callback(err); - } - } - -}); - - -/***/ }), - -/***/ 51685: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var proc = __nccwpck_require__(35317); -var iniLoader = AWS.util.iniLoader; - -/** - * Represents credentials loaded from shared credentials file - * (defaulting to ~/.aws/credentials or defined by the - * `AWS_SHARED_CREDENTIALS_FILE` environment variable). - * - * ## Using process credentials - * - * The credentials file can specify a credential provider that executes - * a given process and attempts to read its stdout to recieve a JSON payload - * containing the credentials: - * - * [default] - * credential_process = /usr/bin/credential_proc - * - * Automatically handles refreshing credentials if an Expiration time is - * provided in the credentials payload. Credentials supplied in the same profile - * will take precedence over the credential_process. - * - * Sourcing credentials from an external process can potentially be dangerous, - * so proceed with caution. Other credential providers should be preferred if - * at all possible. If using this option, you should make sure that the shared - * credentials file is as locked down as possible using security best practices - * for your operating system. - * - * ## Using custom profiles - * - * The SDK supports loading credentials for separate profiles. This can be done - * in two ways: - * - * 1. Set the `AWS_PROFILE` environment variable in your process prior to - * loading the SDK. - * 2. Directly load the AWS.ProcessCredentials provider: - * - * ```javascript - * var creds = new AWS.ProcessCredentials({profile: 'myprofile'}); - * AWS.config.credentials = creds; - * ``` - * - * @!macro nobrowser - */ -AWS.ProcessCredentials = AWS.util.inherit(AWS.Credentials, { - /** - * Creates a new ProcessCredentials object. - * - * @param options [map] a set of options - * @option options profile [String] (AWS_PROFILE env var or 'default') - * the name of the profile to load. - * @option options filename [String] ('~/.aws/credentials' or defined by - * AWS_SHARED_CREDENTIALS_FILE process env var) - * the filename to use when loading credentials. - * @option options callback [Function] (err) Credentials are eagerly loaded - * by the constructor. When the callback is called with no error, the - * credentials have been loaded successfully. - */ - constructor: function ProcessCredentials(options) { - AWS.Credentials.call(this); - - options = options || {}; - - this.filename = options.filename; - this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile; - this.get(options.callback || AWS.util.fn.noop); - }, - - /** - * @api private - */ - load: function load(callback) { - var self = this; - try { - var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader, this.filename); - var profile = profiles[this.profile] || {}; - - if (Object.keys(profile).length === 0) { - throw AWS.util.error( - new Error('Profile ' + this.profile + ' not found'), - { code: 'ProcessCredentialsProviderFailure' } - ); - } - - if (profile['credential_process']) { - this.loadViaCredentialProcess(profile, function(err, data) { - if (err) { - callback(err, null); - } else { - self.expired = false; - self.accessKeyId = data.AccessKeyId; - self.secretAccessKey = data.SecretAccessKey; - self.sessionToken = data.SessionToken; - if (data.Expiration) { - self.expireTime = new Date(data.Expiration); - } - callback(null); - } - }); - } else { - throw AWS.util.error( - new Error('Profile ' + this.profile + ' did not include credential process'), - { code: 'ProcessCredentialsProviderFailure' } - ); - } - } catch (err) { - callback(err); - } - }, - - /** - * Executes the credential_process and retrieves - * credentials from the output - * @api private - * @param profile [map] credentials profile - * @throws ProcessCredentialsProviderFailure - */ - loadViaCredentialProcess: function loadViaCredentialProcess(profile, callback) { - proc.exec(profile['credential_process'], { env: process.env }, function(err, stdOut, stdErr) { - if (err) { - callback(AWS.util.error( - new Error('credential_process returned error'), - { code: 'ProcessCredentialsProviderFailure'} - ), null); - } else { - try { - var credData = JSON.parse(stdOut); - if (credData.Expiration) { - var currentTime = AWS.util.date.getDate(); - var expireTime = new Date(credData.Expiration); - if (expireTime < currentTime) { - throw Error('credential_process returned expired credentials'); - } - } - - if (credData.Version !== 1) { - throw Error('credential_process does not return Version == 1'); - } - callback(null, credData); - } catch (err) { - callback(AWS.util.error( - new Error(err.message), - { code: 'ProcessCredentialsProviderFailure'} - ), null); - } - } - }); - }, - - /** - * Loads the credentials from the credential process - * - * @callback callback function(err) - * Called after the credential process has been executed. When this - * callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - iniLoader.clearCachedFiles(); - this.coalesceRefresh(callback || AWS.util.fn.callback); - } -}); - - -/***/ }), - -/***/ 15950: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var fs = __nccwpck_require__(79896); - -var AWS = __nccwpck_require__(60085), - ENV_RELATIVE_URI = 'AWS_CONTAINER_CREDENTIALS_RELATIVE_URI', - ENV_FULL_URI = 'AWS_CONTAINER_CREDENTIALS_FULL_URI', - ENV_AUTH_TOKEN = 'AWS_CONTAINER_AUTHORIZATION_TOKEN', - ENV_AUTH_TOKEN_FILE = 'AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE', - FULL_URI_UNRESTRICTED_PROTOCOLS = ['https:'], - FULL_URI_ALLOWED_PROTOCOLS = ['http:', 'https:'], - FULL_URI_ALLOWED_HOSTNAMES = ['localhost', '127.0.0.1', '169.254.170.23'], - RELATIVE_URI_HOST = '169.254.170.2'; - -/** - * Represents credentials received from specified URI. - * - * This class will request refreshable credentials from the relative URI - * specified by the AWS_CONTAINER_CREDENTIALS_RELATIVE_URI or the - * AWS_CONTAINER_CREDENTIALS_FULL_URI environment variable. If valid credentials - * are returned in the response, these will be used with zero configuration. - * - * This credentials class will by default timeout after 1 second of inactivity - * and retry 3 times. - * If your requests to the relative URI are timing out, you can increase - * the value by configuring them directly: - * - * ```javascript - * AWS.config.credentials = new AWS.RemoteCredentials({ - * httpOptions: { timeout: 5000 }, // 5 second timeout - * maxRetries: 10, // retry 10 times - * retryDelayOptions: { base: 200 } // see AWS.Config for information - * }); - * ``` - * - * @see AWS.Config.retryDelayOptions - * - * @!macro nobrowser - */ -AWS.RemoteCredentials = AWS.util.inherit(AWS.Credentials, { - constructor: function RemoteCredentials(options) { - AWS.Credentials.call(this); - options = options ? AWS.util.copy(options) : {}; - if (!options.httpOptions) options.httpOptions = {}; - options.httpOptions = AWS.util.merge( - this.httpOptions, options.httpOptions); - AWS.util.update(this, options); - }, - - /** - * @api private - */ - httpOptions: { timeout: 1000 }, - - /** - * @api private - */ - maxRetries: 3, - - /** - * @api private - */ - isConfiguredForEcsCredentials: function isConfiguredForEcsCredentials() { - return Boolean( - process && - process.env && - (process.env[ENV_RELATIVE_URI] || process.env[ENV_FULL_URI]) - ); - }, - - /** - * @api private - */ - getECSFullUri: function getECSFullUri() { - if (process && process.env) { - var relative = process.env[ENV_RELATIVE_URI], - full = process.env[ENV_FULL_URI]; - if (relative) { - return 'http://' + RELATIVE_URI_HOST + relative; - } else if (full) { - var parsed = AWS.util.urlParse(full); - if (FULL_URI_ALLOWED_PROTOCOLS.indexOf(parsed.protocol) < 0) { - throw AWS.util.error( - new Error('Unsupported protocol: AWS.RemoteCredentials supports ' - + FULL_URI_ALLOWED_PROTOCOLS.join(',') + ' only; ' - + parsed.protocol + ' requested.'), - { code: 'ECSCredentialsProviderFailure' } - ); - } - - if (FULL_URI_UNRESTRICTED_PROTOCOLS.indexOf(parsed.protocol) < 0 && - FULL_URI_ALLOWED_HOSTNAMES.indexOf(parsed.hostname) < 0) { - throw AWS.util.error( - new Error('Unsupported hostname: AWS.RemoteCredentials only supports ' - + FULL_URI_ALLOWED_HOSTNAMES.join(',') + ' for ' + parsed.protocol + '; ' - + parsed.protocol + '//' + parsed.hostname + ' requested.'), - { code: 'ECSCredentialsProviderFailure' } - ); - } - - return full; - } else { - throw AWS.util.error( - new Error('Variable ' + ENV_RELATIVE_URI + ' or ' + ENV_FULL_URI + - ' must be set to use AWS.RemoteCredentials.'), - { code: 'ECSCredentialsProviderFailure' } - ); - } - } else { - throw AWS.util.error( - new Error('No process info available'), - { code: 'ECSCredentialsProviderFailure' } - ); - } - }, - - /** - * @api private - */ - getECSAuthToken: function getECSAuthToken() { - if (process && process.env && (process.env[ENV_FULL_URI] || process.env[ENV_AUTH_TOKEN_FILE])) { - if (!process.env[ENV_AUTH_TOKEN] && process.env[ENV_AUTH_TOKEN_FILE]) { - try { - var data = fs.readFileSync(process.env[ENV_AUTH_TOKEN_FILE]).toString(); - return data; - } catch (error) { - console.error('Error reading token file:', error); - throw error; // Re-throw the error to propagate it - } - } - return process.env[ENV_AUTH_TOKEN]; - } - }, - - /** - * @api private - */ - credsFormatIsValid: function credsFormatIsValid(credData) { - return (!!credData.accessKeyId && !!credData.secretAccessKey && - !!credData.sessionToken && !!credData.expireTime); - }, - - /** - * @api private - */ - formatCreds: function formatCreds(credData) { - if (!!credData.credentials) { - credData = credData.credentials; - } - - return { - expired: false, - accessKeyId: credData.accessKeyId || credData.AccessKeyId, - secretAccessKey: credData.secretAccessKey || credData.SecretAccessKey, - sessionToken: credData.sessionToken || credData.Token, - expireTime: new Date(credData.expiration || credData.Expiration) - }; - }, - - /** - * @api private - */ - request: function request(url, callback) { - var httpRequest = new AWS.HttpRequest(url); - httpRequest.method = 'GET'; - httpRequest.headers.Accept = 'application/json'; - var token = this.getECSAuthToken(); - if (token) { - httpRequest.headers.Authorization = token; - } - AWS.util.handleRequestWithRetries(httpRequest, this, callback); - }, - - /** - * Loads the credentials from the relative URI specified by container - * - * @callback callback function(err) - * Called when the request to the relative URI responds (or fails). When - * this callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, `sessionToken`, and `expireTime` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, - - /** - * @api private - */ - load: function load(callback) { - var self = this; - var fullUri; - - try { - fullUri = this.getECSFullUri(); - } catch (err) { - callback(err); - return; - } - - this.request(fullUri, function(err, data) { - if (!err) { - try { - data = JSON.parse(data); - var creds = self.formatCreds(data); - if (!self.credsFormatIsValid(creds)) { - throw AWS.util.error( - new Error('Response data is not in valid format'), - { code: 'ECSCredentialsProviderFailure' } - ); - } - AWS.util.update(self, creds); - } catch (dataError) { - err = dataError; - } - } - callback(err, creds); - }); - } -}); - - -/***/ }), - -/***/ 40669: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var STS = __nccwpck_require__(98595); - -/** - * Represents credentials retrieved from STS SAML support. - * - * By default this provider gets credentials using the - * {AWS.STS.assumeRoleWithSAML} service operation. This operation - * requires a `RoleArn` containing the ARN of the IAM trust policy for the - * application for which credentials will be given, as well as a `PrincipalArn` - * representing the ARN for the SAML identity provider. In addition, the - * `SAMLAssertion` must be set to the token provided by the identity - * provider. See {constructor} for an example on creating a credentials - * object with proper `RoleArn`, `PrincipalArn`, and `SAMLAssertion` values. - * - * ## Refreshing Credentials from Identity Service - * - * In addition to AWS credentials expiring after a given amount of time, the - * login token from the identity provider will also expire. Once this token - * expires, it will not be usable to refresh AWS credentials, and another - * token will be needed. The SDK does not manage refreshing of the token value, - * but this can be done through a "refresh token" supported by most identity - * providers. Consult the documentation for the identity provider for refreshing - * tokens. Once the refreshed token is acquired, you should make sure to update - * this new token in the credentials object's {params} property. The following - * code will update the SAMLAssertion, assuming you have retrieved an updated - * token from the identity provider: - * - * ```javascript - * AWS.config.credentials.params.SAMLAssertion = updatedToken; - * ``` - * - * Future calls to `credentials.refresh()` will now use the new token. - * - * @!attribute params - * @return [map] the map of params passed to - * {AWS.STS.assumeRoleWithSAML}. To update the token, set the - * `params.SAMLAssertion` property. - */ -AWS.SAMLCredentials = AWS.util.inherit(AWS.Credentials, { - /** - * Creates a new credentials object. - * @param (see AWS.STS.assumeRoleWithSAML) - * @example Creating a new credentials object - * AWS.config.credentials = new AWS.SAMLCredentials({ - * RoleArn: 'arn:aws:iam::1234567890:role/SAMLRole', - * PrincipalArn: 'arn:aws:iam::1234567890:role/SAMLPrincipal', - * SAMLAssertion: 'base64-token', // base64-encoded token from IdP - * }); - * @see AWS.STS.assumeRoleWithSAML - */ - constructor: function SAMLCredentials(params) { - AWS.Credentials.call(this); - this.expired = true; - this.params = params; - }, - - /** - * Refreshes credentials using {AWS.STS.assumeRoleWithSAML} - * - * @callback callback function(err) - * Called when the STS service responds (or fails). When - * this callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, - - /** - * @api private - */ - load: function load(callback) { - var self = this; - self.createClients(); - self.service.assumeRoleWithSAML(function (err, data) { - if (!err) { - self.service.credentialsFrom(data, self); - } - callback(err); - }); - }, - - /** - * @api private - */ - createClients: function() { - this.service = this.service || new STS({params: this.params}); - } - -}); - - -/***/ }), - -/***/ 95703: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var STS = __nccwpck_require__(98595); -var iniLoader = AWS.util.iniLoader; - -var ASSUME_ROLE_DEFAULT_REGION = 'us-east-1'; - -/** - * Represents credentials loaded from shared credentials file - * (defaulting to ~/.aws/credentials or defined by the - * `AWS_SHARED_CREDENTIALS_FILE` environment variable). - * - * ## Using the shared credentials file - * - * This provider is checked by default in the Node.js environment. To use the - * credentials file provider, simply add your access and secret keys to the - * ~/.aws/credentials file in the following format: - * - * [default] - * aws_access_key_id = AKID... - * aws_secret_access_key = YOUR_SECRET_KEY - * - * ## Using custom profiles - * - * The SDK supports loading credentials for separate profiles. This can be done - * in two ways: - * - * 1. Set the `AWS_PROFILE` environment variable in your process prior to - * loading the SDK. - * 2. Directly load the AWS.SharedIniFileCredentials provider: - * - * ```javascript - * var creds = new AWS.SharedIniFileCredentials({profile: 'myprofile'}); - * AWS.config.credentials = creds; - * ``` - * - * @!macro nobrowser - */ -AWS.SharedIniFileCredentials = AWS.util.inherit(AWS.Credentials, { - /** - * Creates a new SharedIniFileCredentials object. - * - * @param options [map] a set of options - * @option options profile [String] (AWS_PROFILE env var or 'default') - * the name of the profile to load. - * @option options filename [String] ('~/.aws/credentials' or defined by - * AWS_SHARED_CREDENTIALS_FILE process env var) - * the filename to use when loading credentials. - * @option options disableAssumeRole [Boolean] (false) True to disable - * support for profiles that assume an IAM role. If true, and an assume - * role profile is selected, an error is raised. - * @option options preferStaticCredentials [Boolean] (false) True to - * prefer static credentials to role_arn if both are present. - * @option options tokenCodeFn [Function] (null) Function to provide - * STS Assume Role TokenCode, if mfa_serial is provided for profile in ini - * file. Function is called with value of mfa_serial and callback, and - * should provide the TokenCode or an error to the callback in the format - * callback(err, token) - * @option options callback [Function] (err) Credentials are eagerly loaded - * by the constructor. When the callback is called with no error, the - * credentials have been loaded successfully. - * @option options httpOptions [map] A set of options to pass to the low-level - * HTTP request. Currently supported options are: - * * **proxy** [String] — the URL to proxy requests through - * * **agent** [http.Agent, https.Agent] — the Agent object to perform - * HTTP requests with. Used for connection pooling. Defaults to the global - * agent (`http.globalAgent`) for non-SSL connections. Note that for - * SSL connections, a special Agent object is used in order to enable - * peer certificate verification. This feature is only available in the - * Node.js environment. - * * **connectTimeout** [Integer] — Sets the socket to timeout after - * failing to establish a connection with the server after - * `connectTimeout` milliseconds. This timeout has no effect once a socket - * connection has been established. - * * **timeout** [Integer] — The number of milliseconds a request can - * take before automatically being terminated. - * Defaults to two minutes (120000). - */ - constructor: function SharedIniFileCredentials(options) { - AWS.Credentials.call(this); - - options = options || {}; - - this.filename = options.filename; - this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile; - this.disableAssumeRole = Boolean(options.disableAssumeRole); - this.preferStaticCredentials = Boolean(options.preferStaticCredentials); - this.tokenCodeFn = options.tokenCodeFn || null; - this.httpOptions = options.httpOptions || null; - this.get(options.callback || AWS.util.fn.noop); - }, - - /** - * @api private - */ - load: function load(callback) { - var self = this; - try { - var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader, this.filename); - var profile = profiles[this.profile] || {}; - - if (Object.keys(profile).length === 0) { - throw AWS.util.error( - new Error('Profile ' + this.profile + ' not found'), - { code: 'SharedIniFileCredentialsProviderFailure' } - ); - } - - /* - In the CLI, the presence of both a role_arn and static credentials have - different meanings depending on how many profiles have been visited. For - the first profile processed, role_arn takes precedence over any static - credentials, but for all subsequent profiles, static credentials are - used if present, and only in their absence will the profile's - source_profile and role_arn keys be used to load another set of - credentials. This var is intended to yield compatible behaviour in this - sdk. - */ - var preferStaticCredentialsToRoleArn = Boolean( - this.preferStaticCredentials - && profile['aws_access_key_id'] - && profile['aws_secret_access_key'] - ); - - if (profile['role_arn'] && !preferStaticCredentialsToRoleArn) { - this.loadRoleProfile(profiles, profile, function(err, data) { - if (err) { - callback(err); - } else { - self.expired = false; - self.accessKeyId = data.Credentials.AccessKeyId; - self.secretAccessKey = data.Credentials.SecretAccessKey; - self.sessionToken = data.Credentials.SessionToken; - self.expireTime = data.Credentials.Expiration; - callback(null); - } - }); - return; - } - - this.accessKeyId = profile['aws_access_key_id']; - this.secretAccessKey = profile['aws_secret_access_key']; - this.sessionToken = profile['aws_session_token']; - - if (!this.accessKeyId || !this.secretAccessKey) { - throw AWS.util.error( - new Error('Credentials not set for profile ' + this.profile), - { code: 'SharedIniFileCredentialsProviderFailure' } - ); - } - this.expired = false; - callback(null); - } catch (err) { - callback(err); - } - }, - - /** - * Loads the credentials from the shared credentials file - * - * @callback callback function(err) - * Called after the shared INI file on disk is read and parsed. When this - * callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - iniLoader.clearCachedFiles(); - this.coalesceRefresh( - callback || AWS.util.fn.callback, - this.disableAssumeRole - ); - }, - - /** - * @api private - */ - loadRoleProfile: function loadRoleProfile(creds, roleProfile, callback) { - if (this.disableAssumeRole) { - throw AWS.util.error( - new Error('Role assumption profiles are disabled. ' + - 'Failed to load profile ' + this.profile + - ' from ' + creds.filename), - { code: 'SharedIniFileCredentialsProviderFailure' } - ); - } - - var self = this; - var roleArn = roleProfile['role_arn']; - var roleSessionName = roleProfile['role_session_name']; - var externalId = roleProfile['external_id']; - var mfaSerial = roleProfile['mfa_serial']; - var sourceProfileName = roleProfile['source_profile']; - var durationSeconds = parseInt(roleProfile['duration_seconds'], 10) || undefined; - - // From experimentation, the following behavior mimics the AWS CLI: - // - // 1. Use region from the profile if present. - // 2. Otherwise fall back to N. Virginia (global endpoint). - // - // It is necessary to do the fallback explicitly, because if - // 'AWS_STS_REGIONAL_ENDPOINTS=regional', the underlying STS client will - // otherwise throw an error if region is left 'undefined'. - // - // Experimentation shows that the AWS CLI (tested at version 1.18.136) - // ignores the following potential sources of a region for the purposes of - // this AssumeRole call: - // - // - The [default] profile - // - The AWS_REGION environment variable - // - // Ignoring the [default] profile for the purposes of AssumeRole is arguably - // a bug in the CLI since it does use the [default] region for service - // calls... but right now we're matching behavior of the other tool. - var profileRegion = roleProfile['region'] || ASSUME_ROLE_DEFAULT_REGION; - - if (!sourceProfileName) { - throw AWS.util.error( - new Error('source_profile is not set using profile ' + this.profile), - { code: 'SharedIniFileCredentialsProviderFailure' } - ); - } - - var sourceProfileExistanceTest = creds[sourceProfileName]; - - if (typeof sourceProfileExistanceTest !== 'object') { - throw AWS.util.error( - new Error('source_profile ' + sourceProfileName + ' using profile ' - + this.profile + ' does not exist'), - { code: 'SharedIniFileCredentialsProviderFailure' } - ); - } - - var sourceCredentials = new AWS.SharedIniFileCredentials( - AWS.util.merge(this.options || {}, { - profile: sourceProfileName, - preferStaticCredentials: true - }) - ); - - this.roleArn = roleArn; - var sts = new STS({ - credentials: sourceCredentials, - region: profileRegion, - httpOptions: this.httpOptions - }); - - var roleParams = { - DurationSeconds: durationSeconds, - RoleArn: roleArn, - RoleSessionName: roleSessionName || 'aws-sdk-js-' + Date.now() - }; - - if (externalId) { - roleParams.ExternalId = externalId; - } - - if (mfaSerial && self.tokenCodeFn) { - roleParams.SerialNumber = mfaSerial; - self.tokenCodeFn(mfaSerial, function(err, token) { - if (err) { - var message; - if (err instanceof Error) { - message = err.message; - } else { - message = err; - } - callback( - AWS.util.error( - new Error('Error fetching MFA token: ' + message), - { code: 'SharedIniFileCredentialsProviderFailure' } - )); - return; - } - - roleParams.TokenCode = token; - sts.assumeRole(roleParams, callback); - }); - return; - } - sts.assumeRole(roleParams, callback); - } -}); - - -/***/ }), - -/***/ 95971: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var path = __nccwpck_require__(16928); -var crypto = __nccwpck_require__(76982); -var iniLoader = AWS.util.iniLoader; - -/** - * Represents credentials from sso.getRoleCredentials API for - * `sso_*` values defined in shared credentials file. - * - * ## Using SSO credentials - * - * The credentials file must specify the information below to use sso: - * - * [profile sso-profile] - * sso_account_id = 012345678901 - * sso_region = **-****-* - * sso_role_name = SampleRole - * sso_start_url = https://d-******.awsapps.com/start - * - * or using the session format: - * - * [profile sso-token] - * sso_session = prod - * sso_account_id = 012345678901 - * sso_role_name = SampleRole - * - * [sso-session prod] - * sso_region = **-****-* - * sso_start_url = https://d-******.awsapps.com/start - * - * This information will be automatically added to your shared credentials file by running - * `aws configure sso`. - * - * ## Using custom profiles - * - * The SDK supports loading credentials for separate profiles. This can be done - * in two ways: - * - * 1. Set the `AWS_PROFILE` environment variable in your process prior to - * loading the SDK. - * 2. Directly load the AWS.SsoCredentials provider: - * - * ```javascript - * var creds = new AWS.SsoCredentials({profile: 'myprofile'}); - * AWS.config.credentials = creds; - * ``` - * - * @!macro nobrowser - */ -AWS.SsoCredentials = AWS.util.inherit(AWS.Credentials, { - /** - * Creates a new SsoCredentials object. - * - * @param options [map] a set of options - * @option options profile [String] (AWS_PROFILE env var or 'default') - * the name of the profile to load. - * @option options filename [String] ('~/.aws/credentials' or defined by - * AWS_SHARED_CREDENTIALS_FILE process env var) - * the filename to use when loading credentials. - * @option options callback [Function] (err) Credentials are eagerly loaded - * by the constructor. When the callback is called with no error, the - * credentials have been loaded successfully. - */ - constructor: function SsoCredentials(options) { - AWS.Credentials.call(this); - - options = options || {}; - this.errorCode = 'SsoCredentialsProviderFailure'; - this.expired = true; - - this.filename = options.filename; - this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile; - this.service = options.ssoClient; - this.httpOptions = options.httpOptions || null; - this.get(options.callback || AWS.util.fn.noop); - }, - - /** - * @api private - */ - load: function load(callback) { - var self = this; - - try { - var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader, this.filename); - var profile = profiles[this.profile] || {}; - - if (Object.keys(profile).length === 0) { - throw AWS.util.error( - new Error('Profile ' + this.profile + ' not found'), - { code: self.errorCode } - ); - } - - if (profile.sso_session) { - if (!profile.sso_account_id || !profile.sso_role_name) { - throw AWS.util.error( - new Error('Profile ' + this.profile + ' with session ' + profile.sso_session + - ' does not have valid SSO credentials. Required parameters "sso_account_id", "sso_session", ' + - '"sso_role_name". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html'), - { code: self.errorCode } - ); - } - } else { - if (!profile.sso_start_url || !profile.sso_account_id || !profile.sso_region || !profile.sso_role_name) { - throw AWS.util.error( - new Error('Profile ' + this.profile + ' does not have valid SSO credentials. Required parameters "sso_account_id", "sso_region", ' + - '"sso_role_name", "sso_start_url". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html'), - { code: self.errorCode } - ); - } - } - - this.getToken(this.profile, profile, function (err, token) { - if (err) { - return callback(err); - } - var request = { - accessToken: token, - accountId: profile.sso_account_id, - roleName: profile.sso_role_name, - }; - - if (!self.service || self.service.config.region !== profile.sso_region) { - self.service = new AWS.SSO({ - region: profile.sso_region, - httpOptions: self.httpOptions, - }); - } - - self.service.getRoleCredentials(request, function(err, data) { - if (err || !data || !data.roleCredentials) { - callback(AWS.util.error( - err || new Error('Please log in using "aws sso login"'), - { code: self.errorCode } - ), null); - } else if (!data.roleCredentials.accessKeyId || !data.roleCredentials.secretAccessKey || !data.roleCredentials.sessionToken || !data.roleCredentials.expiration) { - throw AWS.util.error(new Error( - 'SSO returns an invalid temporary credential.' - )); - } else { - self.expired = false; - self.accessKeyId = data.roleCredentials.accessKeyId; - self.secretAccessKey = data.roleCredentials.secretAccessKey; - self.sessionToken = data.roleCredentials.sessionToken; - self.expireTime = new Date(data.roleCredentials.expiration); - callback(null); - } - }); - }); - } catch (err) { - callback(err); - } - }, - - /** - * @private - * Uses legacy file system retrieval or if sso-session is set, - * use the SSOTokenProvider. - * - * @param {string} profileName - name of the profile. - * @param {object} profile - profile data containing sso_session or sso_start_url etc. - * @param {function} callback - called with (err, (string) token). - * - * @returns {void} - */ - getToken: function getToken(profileName, profile, callback) { - var self = this; - - if (profile.sso_session) { - var _iniLoader = AWS.util.iniLoader; - var ssoSessions = _iniLoader.loadSsoSessionsFrom(); - var ssoSession = ssoSessions[profile.sso_session]; - Object.assign(profile, ssoSession); - - var ssoTokenProvider = new AWS.SSOTokenProvider({ - profile: profileName, - }); - ssoTokenProvider.get(function (err) { - if (err) { - return callback(err); - } - return callback(null, ssoTokenProvider.token); - }); - return; - } - - try { - /** - * The time window (15 mins) that SDK will treat the SSO token expires in before the defined expiration date in token. - * This is needed because server side may have invalidated the token before the defined expiration date. - */ - var EXPIRE_WINDOW_MS = 15 * 60 * 1000; - var hasher = crypto.createHash('sha1'); - var fileName = hasher.update(profile.sso_start_url).digest('hex') + '.json'; - var cachePath = path.join( - iniLoader.getHomeDir(), - '.aws', - 'sso', - 'cache', - fileName - ); - var cacheFile = AWS.util.readFileSync(cachePath); - var cacheContent = null; - if (cacheFile) { - cacheContent = JSON.parse(cacheFile); - } - if (!cacheContent) { - throw AWS.util.error( - new Error('Cached credentials not found under ' + this.profile + ' profile. Please make sure you log in with aws sso login first'), - { code: self.errorCode } - ); - } - - if (!cacheContent.startUrl || !cacheContent.region || !cacheContent.accessToken || !cacheContent.expiresAt) { - throw AWS.util.error( - new Error('Cached credentials are missing required properties. Try running aws sso login.') - ); - } - - if (new Date(cacheContent.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) { - throw AWS.util.error(new Error( - 'The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.' - )); - } - - return callback(null, cacheContent.accessToken); - } catch (err) { - return callback(err, null); - } - }, - - /** - * Loads the credentials from the AWS SSO process - * - * @callback callback function(err) - * Called after the AWS SSO process has been executed. When this - * callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - iniLoader.clearCachedFiles(); - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, -}); - - -/***/ }), - -/***/ 8031: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var STS = __nccwpck_require__(98595); - -/** - * Represents temporary credentials retrieved from {AWS.STS}. Without any - * extra parameters, credentials will be fetched from the - * {AWS.STS.getSessionToken} operation. If an IAM role is provided, the - * {AWS.STS.assumeRole} operation will be used to fetch credentials for the - * role instead. - * - * @note AWS.TemporaryCredentials is deprecated, but remains available for - * backwards compatibility. {AWS.ChainableTemporaryCredentials} is the - * preferred class for temporary credentials. - * - * To setup temporary credentials, configure a set of master credentials - * using the standard credentials providers (environment, EC2 instance metadata, - * or from the filesystem), then set the global credentials to a new - * temporary credentials object: - * - * ```javascript - * // Note that environment credentials are loaded by default, - * // the following line is shown for clarity: - * AWS.config.credentials = new AWS.EnvironmentCredentials('AWS'); - * - * // Now set temporary credentials seeded from the master credentials - * AWS.config.credentials = new AWS.TemporaryCredentials(); - * - * // subsequent requests will now use temporary credentials from AWS STS. - * new AWS.S3().listBucket(function(err, data) { ... }); - * ``` - * - * @!attribute masterCredentials - * @return [AWS.Credentials] the master (non-temporary) credentials used to - * get and refresh temporary credentials from AWS STS. - * @note (see constructor) - */ -AWS.TemporaryCredentials = AWS.util.inherit(AWS.Credentials, { - /** - * Creates a new temporary credentials object. - * - * @note In order to create temporary credentials, you first need to have - * "master" credentials configured in {AWS.Config.credentials}. These - * master credentials are necessary to retrieve the temporary credentials, - * as well as refresh the credentials when they expire. - * @param params [map] a map of options that are passed to the - * {AWS.STS.assumeRole} or {AWS.STS.getSessionToken} operations. - * If a `RoleArn` parameter is passed in, credentials will be based on the - * IAM role. - * @param masterCredentials [AWS.Credentials] the master (non-temporary) credentials - * used to get and refresh temporary credentials from AWS STS. - * @example Creating a new credentials object for generic temporary credentials - * AWS.config.credentials = new AWS.TemporaryCredentials(); - * @example Creating a new credentials object for an IAM role - * AWS.config.credentials = new AWS.TemporaryCredentials({ - * RoleArn: 'arn:aws:iam::1234567890:role/TemporaryCredentials', - * }); - * @see AWS.STS.assumeRole - * @see AWS.STS.getSessionToken - */ - constructor: function TemporaryCredentials(params, masterCredentials) { - AWS.Credentials.call(this); - this.loadMasterCredentials(masterCredentials); - this.expired = true; - - this.params = params || {}; - if (this.params.RoleArn) { - this.params.RoleSessionName = - this.params.RoleSessionName || 'temporary-credentials'; - } - }, - - /** - * Refreshes credentials using {AWS.STS.assumeRole} or - * {AWS.STS.getSessionToken}, depending on whether an IAM role ARN was passed - * to the credentials {constructor}. - * - * @callback callback function(err) - * Called when the STS service responds (or fails). When - * this callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh (callback) { - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, - - /** - * @api private - */ - load: function load (callback) { - var self = this; - self.createClients(); - self.masterCredentials.get(function () { - self.service.config.credentials = self.masterCredentials; - var operation = self.params.RoleArn ? - self.service.assumeRole : self.service.getSessionToken; - operation.call(self.service, function (err, data) { - if (!err) { - self.service.credentialsFrom(data, self); - } - callback(err); - }); - }); - }, - - /** - * @api private - */ - loadMasterCredentials: function loadMasterCredentials (masterCredentials) { - this.masterCredentials = masterCredentials || AWS.config.credentials; - while (this.masterCredentials.masterCredentials) { - this.masterCredentials = this.masterCredentials.masterCredentials; - } - - if (typeof this.masterCredentials.get !== 'function') { - this.masterCredentials = new AWS.Credentials(this.masterCredentials); - } - }, - - /** - * @api private - */ - createClients: function () { - this.service = this.service || new STS({params: this.params}); - } - -}); - - -/***/ }), - -/***/ 15820: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var fs = __nccwpck_require__(79896); -var STS = __nccwpck_require__(98595); -var iniLoader = AWS.util.iniLoader; - -/** - * Represents OIDC credentials from a file on disk - * If the credentials expire, the SDK can {refresh} the credentials - * from the file. - * - * ## Using the web identity token file - * - * This provider is checked by default in the Node.js environment. To use - * the provider simply add your OIDC token to a file (ASCII encoding) and - * share the filename in either AWS_WEB_IDENTITY_TOKEN_FILE environment - * variable or web_identity_token_file shared config variable - * - * The file contains encoded OIDC token and the characters are - * ASCII encoded. OIDC tokens are JSON Web Tokens (JWT). - * JWT's are 3 base64 encoded strings joined by the '.' character. - * - * This class will read filename from AWS_WEB_IDENTITY_TOKEN_FILE - * environment variable or web_identity_token_file shared config variable, - * and get the OIDC token from filename. - * It will also read IAM role to be assumed from AWS_ROLE_ARN - * environment variable or role_arn shared config variable. - * This provider gets credetials using the {AWS.STS.assumeRoleWithWebIdentity} - * service operation - * - * @!macro nobrowser - */ -AWS.TokenFileWebIdentityCredentials = AWS.util.inherit(AWS.Credentials, { - - /** - * @example Creating a new credentials object - * AWS.config.credentials = new AWS.TokenFileWebIdentityCredentials( - * // optionally provide configuration to apply to the underlying AWS.STS service client - * // if configuration is not provided, then configuration will be pulled from AWS.config - * { - * // specify timeout options - * httpOptions: { - * timeout: 100 - * } - * }); - * @see AWS.Config - */ - constructor: function TokenFileWebIdentityCredentials(clientConfig) { - AWS.Credentials.call(this); - this.data = null; - this.clientConfig = AWS.util.copy(clientConfig || {}); - }, - - /** - * Returns params from environment variables - * - * @api private - */ - getParamsFromEnv: function getParamsFromEnv() { - var ENV_TOKEN_FILE = 'AWS_WEB_IDENTITY_TOKEN_FILE', - ENV_ROLE_ARN = 'AWS_ROLE_ARN'; - if (process.env[ENV_TOKEN_FILE] && process.env[ENV_ROLE_ARN]) { - return [{ - envTokenFile: process.env[ENV_TOKEN_FILE], - roleArn: process.env[ENV_ROLE_ARN], - roleSessionName: process.env['AWS_ROLE_SESSION_NAME'] - }]; - } - }, - - /** - * Returns params from shared config variables - * - * @api private - */ - getParamsFromSharedConfig: function getParamsFromSharedConfig() { - var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader); - var profileName = process.env.AWS_PROFILE || AWS.util.defaultProfile; - var profile = profiles[profileName] || {}; - - if (Object.keys(profile).length === 0) { - throw AWS.util.error( - new Error('Profile ' + profileName + ' not found'), - { code: 'TokenFileWebIdentityCredentialsProviderFailure' } - ); - } - - var paramsArray = []; - - while (!profile['web_identity_token_file'] && profile['source_profile']) { - paramsArray.unshift({ - roleArn: profile['role_arn'], - roleSessionName: profile['role_session_name'] - }); - var sourceProfile = profile['source_profile']; - profile = profiles[sourceProfile]; - } - - paramsArray.unshift({ - envTokenFile: profile['web_identity_token_file'], - roleArn: profile['role_arn'], - roleSessionName: profile['role_session_name'] - }); - - return paramsArray; - }, - - /** - * Refreshes credentials using {AWS.STS.assumeRoleWithWebIdentity} - * - * @callback callback function(err) - * Called when the STS service responds (or fails). When - * this callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see AWS.Credentials.get - */ - refresh: function refresh(callback) { - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, - - /** - * @api private - */ - assumeRoleChaining: function assumeRoleChaining(paramsArray, callback) { - var self = this; - if (paramsArray.length === 0) { - self.service.credentialsFrom(self.data, self); - callback(); - } else { - var params = paramsArray.shift(); - self.service.config.credentials = self.service.credentialsFrom(self.data, self); - self.service.assumeRole( - { - RoleArn: params.roleArn, - RoleSessionName: params.roleSessionName || 'token-file-web-identity' - }, - function (err, data) { - self.data = null; - if (err) { - callback(err); - } else { - self.data = data; - self.assumeRoleChaining(paramsArray, callback); - } - } - ); - } - }, - - /** - * @api private - */ - load: function load(callback) { - var self = this; - try { - var paramsArray = self.getParamsFromEnv(); - if (!paramsArray) { - paramsArray = self.getParamsFromSharedConfig(); - } - if (paramsArray) { - var params = paramsArray.shift(); - var oidcToken = fs.readFileSync(params.envTokenFile, {encoding: 'ascii'}); - if (!self.service) { - self.createClients(); - } - self.service.assumeRoleWithWebIdentity( - { - WebIdentityToken: oidcToken, - RoleArn: params.roleArn, - RoleSessionName: params.roleSessionName || 'token-file-web-identity' - }, - function (err, data) { - self.data = null; - if (err) { - callback(err); - } else { - self.data = data; - self.assumeRoleChaining(paramsArray, callback); - } - } - ); - } - } catch (err) { - callback(err); - } - }, - - /** - * @api private - */ - createClients: function() { - if (!this.service) { - var stsConfig = AWS.util.merge({}, this.clientConfig); - this.service = new STS(stsConfig); - - // Retry in case of IDPCommunicationErrorException or InvalidIdentityToken - this.service.retryableError = function(error) { - if (error.code === 'IDPCommunicationErrorException' || error.code === 'InvalidIdentityToken') { - return true; - } else { - return AWS.Service.prototype.retryableError.call(this, error); - } - }; - } - } -}); - - -/***/ }), - -/***/ 71685: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var STS = __nccwpck_require__(98595); - -/** - * Represents credentials retrieved from STS Web Identity Federation support. - * - * By default this provider gets credentials using the - * {AWS.STS.assumeRoleWithWebIdentity} service operation. This operation - * requires a `RoleArn` containing the ARN of the IAM trust policy for the - * application for which credentials will be given. In addition, the - * `WebIdentityToken` must be set to the token provided by the identity - * provider. See {constructor} for an example on creating a credentials - * object with proper `RoleArn` and `WebIdentityToken` values. - * - * ## Refreshing Credentials from Identity Service - * - * In addition to AWS credentials expiring after a given amount of time, the - * login token from the identity provider will also expire. Once this token - * expires, it will not be usable to refresh AWS credentials, and another - * token will be needed. The SDK does not manage refreshing of the token value, - * but this can be done through a "refresh token" supported by most identity - * providers. Consult the documentation for the identity provider for refreshing - * tokens. Once the refreshed token is acquired, you should make sure to update - * this new token in the credentials object's {params} property. The following - * code will update the WebIdentityToken, assuming you have retrieved an updated - * token from the identity provider: - * - * ```javascript - * AWS.config.credentials.params.WebIdentityToken = updatedToken; - * ``` - * - * Future calls to `credentials.refresh()` will now use the new token. - * - * @!attribute params - * @return [map] the map of params passed to - * {AWS.STS.assumeRoleWithWebIdentity}. To update the token, set the - * `params.WebIdentityToken` property. - * @!attribute data - * @return [map] the raw data response from the call to - * {AWS.STS.assumeRoleWithWebIdentity}. Use this if you want to get - * access to other properties from the response. - */ -AWS.WebIdentityCredentials = AWS.util.inherit(AWS.Credentials, { - /** - * Creates a new credentials object. - * @param (see AWS.STS.assumeRoleWithWebIdentity) - * @example Creating a new credentials object - * AWS.config.credentials = new AWS.WebIdentityCredentials({ - * RoleArn: 'arn:aws:iam::1234567890:role/WebIdentity', - * WebIdentityToken: 'ABCDEFGHIJKLMNOP', // token from identity service - * RoleSessionName: 'web' // optional name, defaults to web-identity - * }, { - * // optionally provide configuration to apply to the underlying AWS.STS service client - * // if configuration is not provided, then configuration will be pulled from AWS.config - * - * // specify timeout options - * httpOptions: { - * timeout: 100 - * } - * }); - * @see AWS.STS.assumeRoleWithWebIdentity - * @see AWS.Config - */ - constructor: function WebIdentityCredentials(params, clientConfig) { - AWS.Credentials.call(this); - this.expired = true; - this.params = params; - this.params.RoleSessionName = this.params.RoleSessionName || 'web-identity'; - this.data = null; - this._clientConfig = AWS.util.copy(clientConfig || {}); - }, - - /** - * Refreshes credentials using {AWS.STS.assumeRoleWithWebIdentity} - * - * @callback callback function(err) - * Called when the STS service responds (or fails). When - * this callback is called with no error, it means that the credentials - * information has been loaded into the object (as the `accessKeyId`, - * `secretAccessKey`, and `sessionToken` properties). - * @param err [Error] if an error occurred, this value will be filled - * @see get - */ - refresh: function refresh(callback) { - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, - - /** - * @api private - */ - load: function load(callback) { - var self = this; - self.createClients(); - self.service.assumeRoleWithWebIdentity(function (err, data) { - self.data = null; - if (!err) { - self.data = data; - self.service.credentialsFrom(data, self); - } - callback(err); - }); - }, - - /** - * @api private - */ - createClients: function() { - if (!this.service) { - var stsConfig = AWS.util.merge({}, this._clientConfig); - stsConfig.params = this.params; - this.service = new STS(stsConfig); - } - } - -}); - - -/***/ }), - -/***/ 11549: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var util = __nccwpck_require__(65742); -var endpointDiscoveryEnabledEnvs = ['AWS_ENABLE_ENDPOINT_DISCOVERY', 'AWS_ENDPOINT_DISCOVERY_ENABLED']; - -/** - * Generate key (except resources and operation part) to index the endpoints in the cache - * If input shape has endpointdiscoveryid trait then use - * accessKey + operation + resources + region + service as cache key - * If input shape doesn't have endpointdiscoveryid trait then use - * accessKey + region + service as cache key - * @return [map] object with keys to index endpoints. - * @api private - */ -function getCacheKey(request) { - var service = request.service; - var api = service.api || {}; - var operations = api.operations; - var identifiers = {}; - if (service.config.region) { - identifiers.region = service.config.region; - } - if (api.serviceId) { - identifiers.serviceId = api.serviceId; - } - if (service.config.credentials.accessKeyId) { - identifiers.accessKeyId = service.config.credentials.accessKeyId; - } - return identifiers; -} - -/** - * Recursive helper for marshallCustomIdentifiers(). - * Looks for required string input members that have 'endpointdiscoveryid' trait. - * @api private - */ -function marshallCustomIdentifiersHelper(result, params, shape) { - if (!shape || params === undefined || params === null) return; - if (shape.type === 'structure' && shape.required && shape.required.length > 0) { - util.arrayEach(shape.required, function(name) { - var memberShape = shape.members[name]; - if (memberShape.endpointDiscoveryId === true) { - var locationName = memberShape.isLocationName ? memberShape.name : name; - result[locationName] = String(params[name]); - } else { - marshallCustomIdentifiersHelper(result, params[name], memberShape); - } - }); - } -} - -/** - * Get custom identifiers for cache key. - * Identifies custom identifiers by checking each shape's `endpointDiscoveryId` trait. - * @param [object] request object - * @param [object] input shape of the given operation's api - * @api private - */ -function marshallCustomIdentifiers(request, shape) { - var identifiers = {}; - marshallCustomIdentifiersHelper(identifiers, request.params, shape); - return identifiers; -} - -/** - * Call endpoint discovery operation when it's optional. - * When endpoint is available in cache then use the cached endpoints. If endpoints - * are unavailable then use regional endpoints and call endpoint discovery operation - * asynchronously. This is turned off by default. - * @param [object] request object - * @api private - */ -function optionalDiscoverEndpoint(request) { - var service = request.service; - var api = service.api; - var operationModel = api.operations ? api.operations[request.operation] : undefined; - var inputShape = operationModel ? operationModel.input : undefined; - - var identifiers = marshallCustomIdentifiers(request, inputShape); - var cacheKey = getCacheKey(request); - if (Object.keys(identifiers).length > 0) { - cacheKey = util.update(cacheKey, identifiers); - if (operationModel) cacheKey.operation = operationModel.name; - } - var endpoints = AWS.endpointCache.get(cacheKey); - if (endpoints && endpoints.length === 1 && endpoints[0].Address === '') { - //endpoint operation is being made but response not yet received - //or endpoint operation just failed in 1 minute - return; - } else if (endpoints && endpoints.length > 0) { - //found endpoint record from cache - request.httpRequest.updateEndpoint(endpoints[0].Address); - } else { - //endpoint record not in cache or outdated. make discovery operation - var endpointRequest = service.makeRequest(api.endpointOperation, { - Operation: operationModel.name, - Identifiers: identifiers, - }); - addApiVersionHeader(endpointRequest); - endpointRequest.removeListener('validate', AWS.EventListeners.Core.VALIDATE_PARAMETERS); - endpointRequest.removeListener('retry', AWS.EventListeners.Core.RETRY_CHECK); - //put in a placeholder for endpoints already requested, prevent - //too much in-flight calls - AWS.endpointCache.put(cacheKey, [{ - Address: '', - CachePeriodInMinutes: 1 - }]); - endpointRequest.send(function(err, data) { - if (data && data.Endpoints) { - AWS.endpointCache.put(cacheKey, data.Endpoints); - } else if (err) { - AWS.endpointCache.put(cacheKey, [{ - Address: '', - CachePeriodInMinutes: 1 //not to make more endpoint operation in next 1 minute - }]); - } - }); - } -} - -var requestQueue = {}; - -/** - * Call endpoint discovery operation when it's required. - * When endpoint is available in cache then use cached ones. If endpoints are - * unavailable then SDK should call endpoint operation then use returned new - * endpoint for the api call. SDK will automatically attempt to do endpoint - * discovery. This is turned off by default - * @param [object] request object - * @api private - */ -function requiredDiscoverEndpoint(request, done) { - var service = request.service; - var api = service.api; - var operationModel = api.operations ? api.operations[request.operation] : undefined; - var inputShape = operationModel ? operationModel.input : undefined; - - var identifiers = marshallCustomIdentifiers(request, inputShape); - var cacheKey = getCacheKey(request); - if (Object.keys(identifiers).length > 0) { - cacheKey = util.update(cacheKey, identifiers); - if (operationModel) cacheKey.operation = operationModel.name; - } - var cacheKeyStr = AWS.EndpointCache.getKeyString(cacheKey); - var endpoints = AWS.endpointCache.get(cacheKeyStr); //endpoint cache also accepts string keys - if (endpoints && endpoints.length === 1 && endpoints[0].Address === '') { - //endpoint operation is being made but response not yet received - //push request object to a pending queue - if (!requestQueue[cacheKeyStr]) requestQueue[cacheKeyStr] = []; - requestQueue[cacheKeyStr].push({request: request, callback: done}); - return; - } else if (endpoints && endpoints.length > 0) { - request.httpRequest.updateEndpoint(endpoints[0].Address); - done(); - } else { - var endpointRequest = service.makeRequest(api.endpointOperation, { - Operation: operationModel.name, - Identifiers: identifiers, - }); - endpointRequest.removeListener('validate', AWS.EventListeners.Core.VALIDATE_PARAMETERS); - addApiVersionHeader(endpointRequest); - - //put in a placeholder for endpoints already requested, prevent - //too much in-flight calls - AWS.endpointCache.put(cacheKeyStr, [{ - Address: '', - CachePeriodInMinutes: 60 //long-live cache - }]); - endpointRequest.send(function(err, data) { - if (err) { - request.response.error = util.error(err, { retryable: false }); - AWS.endpointCache.remove(cacheKey); - - //fail all the pending requests in batch - if (requestQueue[cacheKeyStr]) { - var pendingRequests = requestQueue[cacheKeyStr]; - util.arrayEach(pendingRequests, function(requestContext) { - requestContext.request.response.error = util.error(err, { retryable: false }); - requestContext.callback(); - }); - delete requestQueue[cacheKeyStr]; - } - } else if (data) { - AWS.endpointCache.put(cacheKeyStr, data.Endpoints); - request.httpRequest.updateEndpoint(data.Endpoints[0].Address); - - //update the endpoint for all the pending requests in batch - if (requestQueue[cacheKeyStr]) { - var pendingRequests = requestQueue[cacheKeyStr]; - util.arrayEach(pendingRequests, function(requestContext) { - requestContext.request.httpRequest.updateEndpoint(data.Endpoints[0].Address); - requestContext.callback(); - }); - delete requestQueue[cacheKeyStr]; - } - } - done(); - }); - } -} - -/** - * add api version header to endpoint operation - * @api private - */ -function addApiVersionHeader(endpointRequest) { - var api = endpointRequest.service.api; - var apiVersion = api.apiVersion; - if (apiVersion && !endpointRequest.httpRequest.headers['x-amz-api-version']) { - endpointRequest.httpRequest.headers['x-amz-api-version'] = apiVersion; - } -} - -/** - * If api call gets invalid endpoint exception, SDK should attempt to remove the invalid - * endpoint from cache. - * @api private - */ -function invalidateCachedEndpoints(response) { - var error = response.error; - var httpResponse = response.httpResponse; - if (error && - (error.code === 'InvalidEndpointException' || httpResponse.statusCode === 421) - ) { - var request = response.request; - var operations = request.service.api.operations || {}; - var inputShape = operations[request.operation] ? operations[request.operation].input : undefined; - var identifiers = marshallCustomIdentifiers(request, inputShape); - var cacheKey = getCacheKey(request); - if (Object.keys(identifiers).length > 0) { - cacheKey = util.update(cacheKey, identifiers); - if (operations[request.operation]) cacheKey.operation = operations[request.operation].name; - } - AWS.endpointCache.remove(cacheKey); - } -} - -/** - * If endpoint is explicitly configured, SDK should not do endpoint discovery in anytime. - * @param [object] client Service client object. - * @api private - */ -function hasCustomEndpoint(client) { - //if set endpoint is set for specific client, enable endpoint discovery will raise an error. - if (client._originalConfig && client._originalConfig.endpoint && client._originalConfig.endpointDiscoveryEnabled === true) { - throw util.error(new Error(), { - code: 'ConfigurationException', - message: 'Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.' - }); - }; - var svcConfig = AWS.config[client.serviceIdentifier] || {}; - return Boolean(AWS.config.endpoint || svcConfig.endpoint || (client._originalConfig && client._originalConfig.endpoint)); -} - -/** - * @api private - */ -function isFalsy(value) { - return ['false', '0'].indexOf(value) >= 0; -} - -/** - * If endpoint discovery should perform for this request when no operation requires endpoint - * discovery for the given service. - * SDK performs config resolution in order like below: - * 1. If set in client configuration. - * 2. If set in env AWS_ENABLE_ENDPOINT_DISCOVERY. - * 3. If set in shared ini config file with key 'endpoint_discovery_enabled'. - * @param [object] request request object. - * @returns [boolean|undefined] if endpoint discovery config is not set in any source, this - * function returns undefined - * @api private - */ -function resolveEndpointDiscoveryConfig(request) { - var service = request.service || {}; - if (service.config.endpointDiscoveryEnabled !== undefined) { - return service.config.endpointDiscoveryEnabled; - } - - //shared ini file is only available in Node - //not to check env in browser - if (util.isBrowser()) return undefined; - - // If any of recognized endpoint discovery config env is set - for (var i = 0; i < endpointDiscoveryEnabledEnvs.length; i++) { - var env = endpointDiscoveryEnabledEnvs[i]; - if (Object.prototype.hasOwnProperty.call(process.env, env)) { - if (process.env[env] === '' || process.env[env] === undefined) { - throw util.error(new Error(), { - code: 'ConfigurationException', - message: 'environmental variable ' + env + ' cannot be set to nothing' - }); - } - return !isFalsy(process.env[env]); - } - } - - var configFile = {}; - try { - configFile = AWS.util.iniLoader ? AWS.util.iniLoader.loadFrom({ - isConfig: true, - filename: process.env[AWS.util.sharedConfigFileEnv] - }) : {}; - } catch (e) {} - var sharedFileConfig = configFile[ - process.env.AWS_PROFILE || AWS.util.defaultProfile - ] || {}; - if (Object.prototype.hasOwnProperty.call(sharedFileConfig, 'endpoint_discovery_enabled')) { - if (sharedFileConfig.endpoint_discovery_enabled === undefined) { - throw util.error(new Error(), { - code: 'ConfigurationException', - message: 'config file entry \'endpoint_discovery_enabled\' cannot be set to nothing' - }); - } - return !isFalsy(sharedFileConfig.endpoint_discovery_enabled); - } - return undefined; -} - -/** - * attach endpoint discovery logic to request object - * @param [object] request - * @api private - */ -function discoverEndpoint(request, done) { - var service = request.service || {}; - if (hasCustomEndpoint(service) || request.isPresigned()) return done(); - - var operations = service.api.operations || {}; - var operationModel = operations[request.operation]; - var isEndpointDiscoveryRequired = operationModel ? operationModel.endpointDiscoveryRequired : 'NULL'; - var isEnabled = resolveEndpointDiscoveryConfig(request); - var hasRequiredEndpointDiscovery = service.api.hasRequiredEndpointDiscovery; - if (isEnabled || hasRequiredEndpointDiscovery) { - // Once a customer enables endpoint discovery, the SDK should start appending - // the string endpoint-discovery to the user-agent on all requests. - request.httpRequest.appendToUserAgent('endpoint-discovery'); - } - switch (isEndpointDiscoveryRequired) { - case 'OPTIONAL': - if (isEnabled || hasRequiredEndpointDiscovery) { - // For a given service; if at least one operation requires endpoint discovery then the SDK must enable endpoint discovery - // by default for all operations of that service, including operations where endpoint discovery is optional. - optionalDiscoverEndpoint(request); - request.addNamedListener('INVALIDATE_CACHED_ENDPOINTS', 'extractError', invalidateCachedEndpoints); - } - done(); - break; - case 'REQUIRED': - if (isEnabled === false) { - // For a given operation; if endpoint discovery is required and it has been disabled on the SDK client, - // then the SDK must return a clear and actionable exception. - request.response.error = util.error(new Error(), { - code: 'ConfigurationException', - message: 'Endpoint Discovery is disabled but ' + service.api.className + '.' + request.operation + - '() requires it. Please check your configurations.' - }); - done(); - break; - } - request.addNamedListener('INVALIDATE_CACHED_ENDPOINTS', 'extractError', invalidateCachedEndpoints); - requiredDiscoverEndpoint(request, done); - break; - case 'NULL': - default: - done(); - break; - } -} - -module.exports = { - discoverEndpoint: discoverEndpoint, - requiredDiscoverEndpoint: requiredDiscoverEndpoint, - optionalDiscoverEndpoint: optionalDiscoverEndpoint, - marshallCustomIdentifiers: marshallCustomIdentifiers, - getCacheKey: getCacheKey, - invalidateCachedEndpoint: invalidateCachedEndpoints, -}; - - -/***/ }), - -/***/ 85209: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var util = AWS.util; -var typeOf = (__nccwpck_require__(23412).typeOf); -var DynamoDBSet = __nccwpck_require__(33409); -var NumberValue = __nccwpck_require__(82967); - -AWS.DynamoDB.Converter = { - /** - * Convert a JavaScript value to its equivalent DynamoDB AttributeValue type - * - * @param data [any] The data to convert to a DynamoDB AttributeValue - * @param options [map] - * @option options convertEmptyValues [Boolean] Whether to automatically - * convert empty strings, blobs, - * and sets to `null` - * @option options wrapNumbers [Boolean] Whether to return numbers as a - * NumberValue object instead of - * converting them to native JavaScript - * numbers. This allows for the safe - * round-trip transport of numbers of - * arbitrary size. - * @return [map] An object in the Amazon DynamoDB AttributeValue format - * - * @see AWS.DynamoDB.Converter.marshall AWS.DynamoDB.Converter.marshall to - * convert entire records (rather than individual attributes) - */ - input: function convertInput(data, options) { - options = options || {}; - var type = typeOf(data); - if (type === 'Object') { - return formatMap(data, options); - } else if (type === 'Array') { - return formatList(data, options); - } else if (type === 'Set') { - return formatSet(data, options); - } else if (type === 'String') { - if (data.length === 0 && options.convertEmptyValues) { - return convertInput(null); - } - return { S: data }; - } else if (type === 'Number' || type === 'NumberValue') { - return { N: data.toString() }; - } else if (type === 'Binary') { - if (data.length === 0 && options.convertEmptyValues) { - return convertInput(null); - } - return { B: data }; - } else if (type === 'Boolean') { - return { BOOL: data }; - } else if (type === 'null') { - return { NULL: true }; - } else if (type !== 'undefined' && type !== 'Function') { - // this value has a custom constructor - return formatMap(data, options); - } - }, - - /** - * Convert a JavaScript object into a DynamoDB record. - * - * @param data [any] The data to convert to a DynamoDB record - * @param options [map] - * @option options convertEmptyValues [Boolean] Whether to automatically - * convert empty strings, blobs, - * and sets to `null` - * @option options wrapNumbers [Boolean] Whether to return numbers as a - * NumberValue object instead of - * converting them to native JavaScript - * numbers. This allows for the safe - * round-trip transport of numbers of - * arbitrary size. - * - * @return [map] An object in the DynamoDB record format. - * - * @example Convert a JavaScript object into a DynamoDB record - * var marshalled = AWS.DynamoDB.Converter.marshall({ - * string: 'foo', - * list: ['fizz', 'buzz', 'pop'], - * map: { - * nestedMap: { - * key: 'value', - * } - * }, - * number: 123, - * nullValue: null, - * boolValue: true, - * stringSet: new DynamoDBSet(['foo', 'bar', 'baz']) - * }); - */ - marshall: function marshallItem(data, options) { - return AWS.DynamoDB.Converter.input(data, options).M; - }, - - /** - * Convert a DynamoDB AttributeValue object to its equivalent JavaScript type. - * - * @param data [map] An object in the Amazon DynamoDB AttributeValue format - * @param options [map] - * @option options convertEmptyValues [Boolean] Whether to automatically - * convert empty strings, blobs, - * and sets to `null` - * @option options wrapNumbers [Boolean] Whether to return numbers as a - * NumberValue object instead of - * converting them to native JavaScript - * numbers. This allows for the safe - * round-trip transport of numbers of - * arbitrary size. - * - * @return [Object|Array|String|Number|Boolean|null] - * - * @see AWS.DynamoDB.Converter.unmarshall AWS.DynamoDB.Converter.unmarshall to - * convert entire records (rather than individual attributes) - */ - output: function convertOutput(data, options) { - options = options || {}; - var list, map, i; - for (var type in data) { - var values = data[type]; - if (type === 'M') { - map = {}; - for (var key in values) { - map[key] = convertOutput(values[key], options); - } - return map; - } else if (type === 'L') { - list = []; - for (i = 0; i < values.length; i++) { - list.push(convertOutput(values[i], options)); - } - return list; - } else if (type === 'SS') { - list = []; - for (i = 0; i < values.length; i++) { - list.push(values[i] + ''); - } - return new DynamoDBSet(list); - } else if (type === 'NS') { - list = []; - for (i = 0; i < values.length; i++) { - list.push(convertNumber(values[i], options.wrapNumbers)); - } - return new DynamoDBSet(list); - } else if (type === 'BS') { - list = []; - for (i = 0; i < values.length; i++) { - list.push(AWS.util.buffer.toBuffer(values[i])); - } - return new DynamoDBSet(list); - } else if (type === 'S') { - return values + ''; - } else if (type === 'N') { - return convertNumber(values, options.wrapNumbers); - } else if (type === 'B') { - return util.buffer.toBuffer(values); - } else if (type === 'BOOL') { - return (values === 'true' || values === 'TRUE' || values === true); - } else if (type === 'NULL') { - return null; - } - } - }, - - /** - * Convert a DynamoDB record into a JavaScript object. - * - * @param data [any] The DynamoDB record - * @param options [map] - * @option options convertEmptyValues [Boolean] Whether to automatically - * convert empty strings, blobs, - * and sets to `null` - * @option options wrapNumbers [Boolean] Whether to return numbers as a - * NumberValue object instead of - * converting them to native JavaScript - * numbers. This allows for the safe - * round-trip transport of numbers of - * arbitrary size. - * - * @return [map] An object whose properties have been converted from - * DynamoDB's AttributeValue format into their corresponding native - * JavaScript types. - * - * @example Convert a record received from a DynamoDB stream - * var unmarshalled = AWS.DynamoDB.Converter.unmarshall({ - * string: {S: 'foo'}, - * list: {L: [{S: 'fizz'}, {S: 'buzz'}, {S: 'pop'}]}, - * map: { - * M: { - * nestedMap: { - * M: { - * key: {S: 'value'} - * } - * } - * } - * }, - * number: {N: '123'}, - * nullValue: {NULL: true}, - * boolValue: {BOOL: true} - * }); - */ - unmarshall: function unmarshall(data, options) { - return AWS.DynamoDB.Converter.output({M: data}, options); - } -}; - -/** - * @api private - * @param data [Array] - * @param options [map] - */ -function formatList(data, options) { - var list = {L: []}; - for (var i = 0; i < data.length; i++) { - list['L'].push(AWS.DynamoDB.Converter.input(data[i], options)); - } - return list; -} - -/** - * @api private - * @param value [String] - * @param wrapNumbers [Boolean] - */ -function convertNumber(value, wrapNumbers) { - return wrapNumbers ? new NumberValue(value) : Number(value); -} - -/** - * @api private - * @param data [map] - * @param options [map] - */ -function formatMap(data, options) { - var map = {M: {}}; - for (var key in data) { - var formatted = AWS.DynamoDB.Converter.input(data[key], options); - if (formatted !== void 0) { - map['M'][key] = formatted; - } - } - return map; -} - -/** - * @api private - */ -function formatSet(data, options) { - options = options || {}; - var values = data.values; - if (options.convertEmptyValues) { - values = filterEmptySetValues(data); - if (values.length === 0) { - return AWS.DynamoDB.Converter.input(null); - } - } - - var map = {}; - switch (data.type) { - case 'String': map['SS'] = values; break; - case 'Binary': map['BS'] = values; break; - case 'Number': map['NS'] = values.map(function (value) { - return value.toString(); - }); - } - return map; -} - -/** - * @api private - */ -function filterEmptySetValues(set) { - var nonEmptyValues = []; - var potentiallyEmptyTypes = { - String: true, - Binary: true, - Number: false - }; - if (potentiallyEmptyTypes[set.type]) { - for (var i = 0; i < set.values.length; i++) { - if (set.values[i].length === 0) { - continue; - } - nonEmptyValues.push(set.values[i]); - } - - return nonEmptyValues; - } - - return set.values; -} - -/** - * @api private - */ -module.exports = AWS.DynamoDB.Converter; - - -/***/ }), - -/***/ 64216: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var Translator = __nccwpck_require__(35735); -var DynamoDBSet = __nccwpck_require__(33409); - -/** - * The document client simplifies working with items in Amazon DynamoDB - * by abstracting away the notion of attribute values. This abstraction - * annotates native JavaScript types supplied as input parameters, as well - * as converts annotated response data to native JavaScript types. - * - * ## Marshalling Input and Unmarshalling Response Data - * - * The document client affords developers the use of native JavaScript types - * instead of `AttributeValue`s to simplify the JavaScript development - * experience with Amazon DynamoDB. JavaScript objects passed in as parameters - * are marshalled into `AttributeValue` shapes required by Amazon DynamoDB. - * Responses from DynamoDB are unmarshalled into plain JavaScript objects - * by the `DocumentClient`. The `DocumentClient`, does not accept - * `AttributeValue`s in favor of native JavaScript types. - * - * | JavaScript Type | DynamoDB AttributeValue | - * |:----------------------------------------------------------------------:|-------------------------| - * | String | S | - * | Number | N | - * | Boolean | BOOL | - * | null | NULL | - * | Array | L | - * | Object | M | - * | Buffer, File, Blob, ArrayBuffer, DataView, and JavaScript typed arrays | B | - * - * ## Support for Sets - * - * The `DocumentClient` offers a convenient way to create sets from - * JavaScript Arrays. The type of set is inferred from the first element - * in the array. DynamoDB supports string, number, and binary sets. To - * learn more about supported types see the - * [Amazon DynamoDB Data Model Documentation](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html) - * For more information see {AWS.DynamoDB.DocumentClient.createSet} - * - */ -AWS.DynamoDB.DocumentClient = AWS.util.inherit({ - - /** - * Creates a DynamoDB document client with a set of configuration options. - * - * @option options params [map] An optional map of parameters to bind to every - * request sent by this service object. - * @option options service [AWS.DynamoDB] An optional pre-configured instance - * of the AWS.DynamoDB service object. This instance's config will be - * copied to a new instance used by this client. You should not need to - * retain a reference to the input object, and may destroy it or allow it - * to be garbage collected. - * @option options convertEmptyValues [Boolean] set to true if you would like - * the document client to convert empty values (0-length strings, binary - * buffers, and sets) to be converted to NULL types when persisting to - * DynamoDB. - * @option options wrapNumbers [Boolean] Set to true to return numbers as a - * NumberValue object instead of converting them to native JavaScript numbers. - * This allows for the safe round-trip transport of numbers of arbitrary size. - * @see AWS.DynamoDB.constructor - * - */ - constructor: function DocumentClient(options) { - var self = this; - self.options = options || {}; - self.configure(self.options); - }, - - /** - * @api private - */ - configure: function configure(options) { - var self = this; - self.service = options.service; - self.bindServiceObject(options); - self.attrValue = options.attrValue = - self.service.api.operations.putItem.input.members.Item.value.shape; - }, - - /** - * @api private - */ - bindServiceObject: function bindServiceObject(options) { - var self = this; - options = options || {}; - - if (!self.service) { - self.service = new AWS.DynamoDB(options); - } else { - var config = AWS.util.copy(self.service.config); - self.service = new self.service.constructor.__super__(config); - self.service.config.params = - AWS.util.merge(self.service.config.params || {}, options.params); - } - }, - - /** - * @api private - */ - makeServiceRequest: function(operation, params, callback) { - var self = this; - var request = self.service[operation](params); - self.setupRequest(request); - self.setupResponse(request); - if (typeof callback === 'function') { - request.send(callback); - } - return request; - }, - - /** - * @api private - */ - serviceClientOperationsMap: { - batchGet: 'batchGetItem', - batchWrite: 'batchWriteItem', - delete: 'deleteItem', - get: 'getItem', - put: 'putItem', - query: 'query', - scan: 'scan', - update: 'updateItem', - transactGet: 'transactGetItems', - transactWrite: 'transactWriteItems' - }, - - /** - * Returns the attributes of one or more items from one or more tables - * by delegating to `AWS.DynamoDB.batchGetItem()`. - * - * Supply the same parameters as {AWS.DynamoDB.batchGetItem} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.batchGetItem - * @example Get items from multiple tables - * var params = { - * RequestItems: { - * 'Table-1': { - * Keys: [ - * { - * HashKey: 'haskey', - * NumberRangeKey: 1 - * } - * ] - * }, - * 'Table-2': { - * Keys: [ - * { foo: 'bar' }, - * ] - * } - * } - * }; - * - * var documentClient = new AWS.DynamoDB.DocumentClient(); - * - * documentClient.batchGet(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - * - */ - batchGet: function(params, callback) { - var operation = this.serviceClientOperationsMap['batchGet']; - return this.makeServiceRequest(operation, params, callback); - }, - - /** - * Puts or deletes multiple items in one or more tables by delegating - * to `AWS.DynamoDB.batchWriteItem()`. - * - * Supply the same parameters as {AWS.DynamoDB.batchWriteItem} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.batchWriteItem - * @example Write to and delete from a table - * var params = { - * RequestItems: { - * 'Table-1': [ - * { - * DeleteRequest: { - * Key: { HashKey: 'someKey' } - * } - * }, - * { - * PutRequest: { - * Item: { - * HashKey: 'anotherKey', - * NumAttribute: 1, - * BoolAttribute: true, - * ListAttribute: [1, 'two', false], - * MapAttribute: { foo: 'bar' } - * } - * } - * } - * ] - * } - * }; - * - * var documentClient = new AWS.DynamoDB.DocumentClient(); - * - * documentClient.batchWrite(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - * - */ - batchWrite: function(params, callback) { - var operation = this.serviceClientOperationsMap['batchWrite']; - return this.makeServiceRequest(operation, params, callback); - }, - - /** - * Deletes a single item in a table by primary key by delegating to - * `AWS.DynamoDB.deleteItem()` - * - * Supply the same parameters as {AWS.DynamoDB.deleteItem} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.deleteItem - * @example Delete an item from a table - * var params = { - * TableName : 'Table', - * Key: { - * HashKey: 'hashkey', - * NumberRangeKey: 1 - * } - * }; - * - * var documentClient = new AWS.DynamoDB.DocumentClient(); - * - * documentClient.delete(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - * - */ - delete: function(params, callback) { - var operation = this.serviceClientOperationsMap['delete']; - return this.makeServiceRequest(operation, params, callback); - }, - - /** - * Returns a set of attributes for the item with the given primary key - * by delegating to `AWS.DynamoDB.getItem()`. - * - * Supply the same parameters as {AWS.DynamoDB.getItem} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.getItem - * @example Get an item from a table - * var params = { - * TableName : 'Table', - * Key: { - * HashKey: 'hashkey' - * } - * }; - * - * var documentClient = new AWS.DynamoDB.DocumentClient(); - * - * documentClient.get(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - * - */ - get: function(params, callback) { - var operation = this.serviceClientOperationsMap['get']; - return this.makeServiceRequest(operation, params, callback); - }, - - /** - * Creates a new item, or replaces an old item with a new item by - * delegating to `AWS.DynamoDB.putItem()`. - * - * Supply the same parameters as {AWS.DynamoDB.putItem} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.putItem - * @example Create a new item in a table - * var params = { - * TableName : 'Table', - * Item: { - * HashKey: 'haskey', - * NumAttribute: 1, - * BoolAttribute: true, - * ListAttribute: [1, 'two', false], - * MapAttribute: { foo: 'bar'}, - * NullAttribute: null - * } - * }; - * - * var documentClient = new AWS.DynamoDB.DocumentClient(); - * - * documentClient.put(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - * - */ - put: function(params, callback) { - var operation = this.serviceClientOperationsMap['put']; - return this.makeServiceRequest(operation, params, callback); - }, - - /** - * Edits an existing item's attributes, or adds a new item to the table if - * it does not already exist by delegating to `AWS.DynamoDB.updateItem()`. - * - * Supply the same parameters as {AWS.DynamoDB.updateItem} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.updateItem - * @example Update an item with expressions - * var params = { - * TableName: 'Table', - * Key: { HashKey : 'hashkey' }, - * UpdateExpression: 'set #a = :x + :y', - * ConditionExpression: '#a < :MAX', - * ExpressionAttributeNames: {'#a' : 'Sum'}, - * ExpressionAttributeValues: { - * ':x' : 20, - * ':y' : 45, - * ':MAX' : 100, - * } - * }; - * - * var documentClient = new AWS.DynamoDB.DocumentClient(); - * - * documentClient.update(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - * - */ - update: function(params, callback) { - var operation = this.serviceClientOperationsMap['update']; - return this.makeServiceRequest(operation, params, callback); - }, - - /** - * Returns one or more items and item attributes by accessing every item - * in a table or a secondary index. - * - * Supply the same parameters as {AWS.DynamoDB.scan} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.scan - * @example Scan the table with a filter expression - * var params = { - * TableName : 'Table', - * FilterExpression : 'Year = :this_year', - * ExpressionAttributeValues : {':this_year' : 2015} - * }; - * - * var documentClient = new AWS.DynamoDB.DocumentClient(); - * - * documentClient.scan(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - * - */ - scan: function(params, callback) { - var operation = this.serviceClientOperationsMap['scan']; - return this.makeServiceRequest(operation, params, callback); - }, - - /** - * Directly access items from a table by primary key or a secondary index. - * - * Supply the same parameters as {AWS.DynamoDB.query} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.query - * @example Query an index - * var params = { - * TableName: 'Table', - * IndexName: 'Index', - * KeyConditionExpression: 'HashKey = :hkey and RangeKey > :rkey', - * ExpressionAttributeValues: { - * ':hkey': 'key', - * ':rkey': 2015 - * } - * }; - * - * var documentClient = new AWS.DynamoDB.DocumentClient(); - * - * documentClient.query(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - * - */ - query: function(params, callback) { - var operation = this.serviceClientOperationsMap['query']; - return this.makeServiceRequest(operation, params, callback); - }, - - /** - * Synchronous write operation that groups up to 100 action requests. - * - * Supply the same parameters as {AWS.DynamoDB.transactWriteItems} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.transactWriteItems - * @example Get items from multiple tables - * var params = { - * TransactItems: [{ - * Put: { - * TableName : 'Table0', - * Item: { - * HashKey: 'haskey', - * NumAttribute: 1, - * BoolAttribute: true, - * ListAttribute: [1, 'two', false], - * MapAttribute: { foo: 'bar'}, - * NullAttribute: null - * } - * } - * }, { - * Update: { - * TableName: 'Table1', - * Key: { HashKey : 'hashkey' }, - * UpdateExpression: 'set #a = :x + :y', - * ConditionExpression: '#a < :MAX', - * ExpressionAttributeNames: {'#a' : 'Sum'}, - * ExpressionAttributeValues: { - * ':x' : 20, - * ':y' : 45, - * ':MAX' : 100, - * } - * } - * }] - * }; - * - * documentClient.transactWrite(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - */ - transactWrite: function(params, callback) { - var operation = this.serviceClientOperationsMap['transactWrite']; - return this.makeServiceRequest(operation, params, callback); - }, - - /** - * Atomically retrieves multiple items from one or more tables (but not from indexes) - * in a single account and region. - * - * Supply the same parameters as {AWS.DynamoDB.transactGetItems} with - * `AttributeValue`s substituted by native JavaScript types. - * - * @see AWS.DynamoDB.transactGetItems - * @example Get items from multiple tables - * var params = { - * TransactItems: [{ - * Get: { - * TableName : 'Table0', - * Key: { - * HashKey: 'hashkey0' - * } - * } - * }, { - * Get: { - * TableName : 'Table1', - * Key: { - * HashKey: 'hashkey1' - * } - * } - * }] - * }; - * - * documentClient.transactGet(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - */ - transactGet: function(params, callback) { - var operation = this.serviceClientOperationsMap['transactGet']; - return this.makeServiceRequest(operation, params, callback); - }, - - /** - * Creates a set of elements inferring the type of set from - * the type of the first element. Amazon DynamoDB currently supports - * the number sets, string sets, and binary sets. For more information - * about DynamoDB data types see the documentation on the - * [Amazon DynamoDB Data Model](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html#DataModel.DataTypes). - * - * @param list [Array] Collection to represent your DynamoDB Set - * @param options [map] - * * **validate** [Boolean] set to true if you want to validate the type - * of each element in the set. Defaults to `false`. - * @example Creating a number set - * var documentClient = new AWS.DynamoDB.DocumentClient(); - * - * var params = { - * Item: { - * hashkey: 'hashkey' - * numbers: documentClient.createSet([1, 2, 3]); - * } - * }; - * - * documentClient.put(params, function(err, data) { - * if (err) console.log(err); - * else console.log(data); - * }); - * - */ - createSet: function(list, options) { - options = options || {}; - return new DynamoDBSet(list, options); - }, - - /** - * @api private - */ - getTranslator: function() { - return new Translator(this.options); - }, - - /** - * @api private - */ - setupRequest: function setupRequest(request) { - var self = this; - var translator = self.getTranslator(); - var operation = request.operation; - var inputShape = request.service.api.operations[operation].input; - request._events.validate.unshift(function(req) { - req.rawParams = AWS.util.copy(req.params); - req.params = translator.translateInput(req.rawParams, inputShape); - }); - }, - - /** - * @api private - */ - setupResponse: function setupResponse(request) { - var self = this; - var translator = self.getTranslator(); - var outputShape = self.service.api.operations[request.operation].output; - request.on('extractData', function(response) { - response.data = translator.translateOutput(response.data, outputShape); - }); - - var response = request.response; - response.nextPage = function(cb) { - var resp = this; - var req = resp.request; - var config; - var service = req.service; - var operation = req.operation; - try { - config = service.paginationConfig(operation, true); - } catch (e) { resp.error = e; } - - if (!resp.hasNextPage()) { - if (cb) cb(resp.error, null); - else if (resp.error) throw resp.error; - return null; - } - - var params = AWS.util.copy(req.rawParams); - if (!resp.nextPageTokens) { - return cb ? cb(null, null) : null; - } else { - var inputTokens = config.inputToken; - if (typeof inputTokens === 'string') inputTokens = [inputTokens]; - for (var i = 0; i < inputTokens.length; i++) { - params[inputTokens[i]] = resp.nextPageTokens[i]; - } - return self[operation](params, cb); - } - }; - } - -}); - -/** - * @api private - */ -module.exports = AWS.DynamoDB.DocumentClient; - - -/***/ }), - -/***/ 82967: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = (__nccwpck_require__(60085).util); - -/** - * An object recognizable as a numeric value that stores the underlying number - * as a string. - * - * Intended to be a deserialization target for the DynamoDB Document Client when - * the `wrapNumbers` flag is set. This allows for numeric values that lose - * precision when converted to JavaScript's `number` type. - */ -var DynamoDBNumberValue = util.inherit({ - constructor: function NumberValue(value) { - this.wrapperName = 'NumberValue'; - this.value = value.toString(); - }, - - /** - * Render the underlying value as a number when converting to JSON. - */ - toJSON: function () { - return this.toNumber(); - }, - - /** - * Convert the underlying value to a JavaScript number. - */ - toNumber: function () { - return Number(this.value); - }, - - /** - * Return a string representing the unaltered value provided to the - * constructor. - */ - toString: function () { - return this.value; - } -}); - -/** - * @api private - */ -module.exports = DynamoDBNumberValue; - - -/***/ }), - -/***/ 33409: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = (__nccwpck_require__(60085).util); -var typeOf = (__nccwpck_require__(23412).typeOf); - -/** - * @api private - */ -var memberTypeToSetType = { - 'String': 'String', - 'Number': 'Number', - 'NumberValue': 'Number', - 'Binary': 'Binary' -}; - -/** - * @api private - */ -var DynamoDBSet = util.inherit({ - - constructor: function Set(list, options) { - options = options || {}; - this.wrapperName = 'Set'; - this.initialize(list, options.validate); - }, - - initialize: function(list, validate) { - var self = this; - self.values = [].concat(list); - self.detectType(); - if (validate) { - self.validate(); - } - }, - - detectType: function() { - this.type = memberTypeToSetType[typeOf(this.values[0])]; - if (!this.type) { - throw util.error(new Error(), { - code: 'InvalidSetType', - message: 'Sets can contain string, number, or binary values' - }); - } - }, - - validate: function() { - var self = this; - var length = self.values.length; - var values = self.values; - for (var i = 0; i < length; i++) { - if (memberTypeToSetType[typeOf(values[i])] !== self.type) { - throw util.error(new Error(), { - code: 'InvalidType', - message: self.type + ' Set contains ' + typeOf(values[i]) + ' value' - }); - } - } - }, - - /** - * Render the underlying values only when converting to JSON. - */ - toJSON: function() { - var self = this; - return self.values; - } - -}); - -/** - * @api private - */ -module.exports = DynamoDBSet; - - -/***/ }), - -/***/ 35735: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = (__nccwpck_require__(60085).util); -var convert = __nccwpck_require__(85209); - -var Translator = function(options) { - options = options || {}; - this.attrValue = options.attrValue; - this.convertEmptyValues = Boolean(options.convertEmptyValues); - this.wrapNumbers = Boolean(options.wrapNumbers); -}; - -Translator.prototype.translateInput = function(value, shape) { - this.mode = 'input'; - return this.translate(value, shape); -}; - -Translator.prototype.translateOutput = function(value, shape) { - this.mode = 'output'; - return this.translate(value, shape); -}; - -Translator.prototype.translate = function(value, shape) { - var self = this; - if (!shape || value === undefined) return undefined; - - if (shape.shape === self.attrValue) { - return convert[self.mode](value, { - convertEmptyValues: self.convertEmptyValues, - wrapNumbers: self.wrapNumbers, - }); - } - switch (shape.type) { - case 'structure': return self.translateStructure(value, shape); - case 'map': return self.translateMap(value, shape); - case 'list': return self.translateList(value, shape); - default: return self.translateScalar(value, shape); - } -}; - -Translator.prototype.translateStructure = function(structure, shape) { - var self = this; - if (structure == null) return undefined; - - var struct = {}; - util.each(structure, function(name, value) { - var memberShape = shape.members[name]; - if (memberShape) { - var result = self.translate(value, memberShape); - if (result !== undefined) struct[name] = result; - } - }); - return struct; -}; - -Translator.prototype.translateList = function(list, shape) { - var self = this; - if (list == null) return undefined; - - var out = []; - util.arrayEach(list, function(value) { - var result = self.translate(value, shape.member); - if (result === undefined) out.push(null); - else out.push(result); - }); - return out; -}; - -Translator.prototype.translateMap = function(map, shape) { - var self = this; - if (map == null) return undefined; - - var out = {}; - util.each(map, function(key, value) { - var result = self.translate(value, shape.value); - if (result === undefined) out[key] = null; - else out[key] = result; - }); - return out; -}; - -Translator.prototype.translateScalar = function(value, shape) { - return shape.toType(value); -}; - -/** - * @api private - */ -module.exports = Translator; - - -/***/ }), - -/***/ 23412: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = (__nccwpck_require__(60085).util); - -function typeOf(data) { - if (data === null && typeof data === 'object') { - return 'null'; - } else if (data !== undefined && isBinary(data)) { - return 'Binary'; - } else if (data !== undefined && data.constructor) { - return data.wrapperName || util.typeName(data.constructor); - } else if (data !== undefined && typeof data === 'object') { - // this object is the result of Object.create(null), hence the absence of a - // defined constructor - return 'Object'; - } else { - return 'undefined'; - } -} - -function isBinary(data) { - var types = [ - 'Buffer', 'File', 'Blob', 'ArrayBuffer', 'DataView', - 'Int8Array', 'Uint8Array', 'Uint8ClampedArray', - 'Int16Array', 'Uint16Array', 'Int32Array', 'Uint32Array', - 'Float32Array', 'Float64Array' - ]; - if (util.isNode()) { - var Stream = util.stream.Stream; - if (util.Buffer.isBuffer(data) || data instanceof Stream) { - return true; - } - } - - for (var i = 0; i < types.length; i++) { - if (data !== undefined && data.constructor) { - if (util.isType(data, types[i])) return true; - if (util.typeName(data.constructor) === types[i]) return true; - } - } - - return false; -} - -/** - * @api private - */ -module.exports = { - typeOf: typeOf, - isBinary: isBinary -}; - - -/***/ }), - -/***/ 91266: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var eventMessageChunker = (__nccwpck_require__(11055).eventMessageChunker); -var parseEvent = (__nccwpck_require__(91220).parseEvent); - -function createEventStream(body, parser, model) { - var eventMessages = eventMessageChunker(body); - - var events = []; - - for (var i = 0; i < eventMessages.length; i++) { - events.push(parseEvent(parser, eventMessages[i], model)); - } - - return events; -} - -/** - * @api private - */ -module.exports = { - createEventStream: createEventStream -}; - - -/***/ }), - -/***/ 9164: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = (__nccwpck_require__(60085).util); -var Transform = (__nccwpck_require__(2203).Transform); -var allocBuffer = util.buffer.alloc; - -/** @type {Transform} */ -function EventMessageChunkerStream(options) { - Transform.call(this, options); - - this.currentMessageTotalLength = 0; - this.currentMessagePendingLength = 0; - /** @type {Buffer} */ - this.currentMessage = null; - - /** @type {Buffer} */ - this.messageLengthBuffer = null; -} - -EventMessageChunkerStream.prototype = Object.create(Transform.prototype); - -/** - * - * @param {Buffer} chunk - * @param {string} encoding - * @param {*} callback - */ -EventMessageChunkerStream.prototype._transform = function(chunk, encoding, callback) { - var chunkLength = chunk.length; - var currentOffset = 0; - - while (currentOffset < chunkLength) { - // create new message if necessary - if (!this.currentMessage) { - // working on a new message, determine total length - var bytesRemaining = chunkLength - currentOffset; - // prevent edge case where total length spans 2 chunks - if (!this.messageLengthBuffer) { - this.messageLengthBuffer = allocBuffer(4); - } - var numBytesForTotal = Math.min( - 4 - this.currentMessagePendingLength, // remaining bytes to fill the messageLengthBuffer - bytesRemaining // bytes left in chunk - ); - - chunk.copy( - this.messageLengthBuffer, - this.currentMessagePendingLength, - currentOffset, - currentOffset + numBytesForTotal - ); - - this.currentMessagePendingLength += numBytesForTotal; - currentOffset += numBytesForTotal; - - if (this.currentMessagePendingLength < 4) { - // not enough information to create the current message - break; - } - this.allocateMessage(this.messageLengthBuffer.readUInt32BE(0)); - this.messageLengthBuffer = null; - } - - // write data into current message - var numBytesToWrite = Math.min( - this.currentMessageTotalLength - this.currentMessagePendingLength, // number of bytes left to complete message - chunkLength - currentOffset // number of bytes left in the original chunk - ); - chunk.copy( - this.currentMessage, // target buffer - this.currentMessagePendingLength, // target offset - currentOffset, // chunk offset - currentOffset + numBytesToWrite // chunk end to write - ); - this.currentMessagePendingLength += numBytesToWrite; - currentOffset += numBytesToWrite; - - // check if a message is ready to be pushed - if (this.currentMessageTotalLength && this.currentMessageTotalLength === this.currentMessagePendingLength) { - // push out the message - this.push(this.currentMessage); - // cleanup - this.currentMessage = null; - this.currentMessageTotalLength = 0; - this.currentMessagePendingLength = 0; - } - } - - callback(); -}; - -EventMessageChunkerStream.prototype._flush = function(callback) { - if (this.currentMessageTotalLength) { - if (this.currentMessageTotalLength === this.currentMessagePendingLength) { - callback(null, this.currentMessage); - } else { - callback(new Error('Truncated event message received.')); - } - } else { - callback(); - } -}; - -/** - * @param {number} size Size of the message to be allocated. - * @api private - */ -EventMessageChunkerStream.prototype.allocateMessage = function(size) { - if (typeof size !== 'number') { - throw new Error('Attempted to allocate an event message where size was not a number: ' + size); - } - this.currentMessageTotalLength = size; - this.currentMessagePendingLength = 4; - this.currentMessage = allocBuffer(size); - this.currentMessage.writeUInt32BE(size, 0); -}; - -/** - * @api private - */ -module.exports = { - EventMessageChunkerStream: EventMessageChunkerStream -}; - - -/***/ }), - -/***/ 11055: -/***/ ((module) => { - -/** - * Takes in a buffer of event messages and splits them into individual messages. - * @param {Buffer} buffer - * @api private - */ -function eventMessageChunker(buffer) { - /** @type Buffer[] */ - var messages = []; - var offset = 0; - - while (offset < buffer.length) { - var totalLength = buffer.readInt32BE(offset); - - // create new buffer for individual message (shares memory with original) - var message = buffer.slice(offset, totalLength + offset); - // increment offset to it starts at the next message - offset += totalLength; - - messages.push(message); - } - - return messages; -} - -/** - * @api private - */ -module.exports = { - eventMessageChunker: eventMessageChunker -}; - - -/***/ }), - -/***/ 71836: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var Transform = (__nccwpck_require__(2203).Transform); -var parseEvent = (__nccwpck_require__(91220).parseEvent); - -/** @type {Transform} */ -function EventUnmarshallerStream(options) { - options = options || {}; - // set output to object mode - options.readableObjectMode = true; - Transform.call(this, options); - this._readableState.objectMode = true; - - this.parser = options.parser; - this.eventStreamModel = options.eventStreamModel; -} - -EventUnmarshallerStream.prototype = Object.create(Transform.prototype); - -/** - * - * @param {Buffer} chunk - * @param {string} encoding - * @param {*} callback - */ -EventUnmarshallerStream.prototype._transform = function(chunk, encoding, callback) { - try { - var event = parseEvent(this.parser, chunk, this.eventStreamModel); - this.push(event); - return callback(); - } catch (err) { - callback(err); - } -}; - -/** - * @api private - */ -module.exports = { - EventUnmarshallerStream: EventUnmarshallerStream -}; - - -/***/ }), - -/***/ 90173: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = (__nccwpck_require__(60085).util); -var toBuffer = util.buffer.toBuffer; - -/** - * A lossless representation of a signed, 64-bit integer. Instances of this - * class may be used in arithmetic expressions as if they were numeric - * primitives, but the binary representation will be preserved unchanged as the - * `bytes` property of the object. The bytes should be encoded as big-endian, - * two's complement integers. - * @param {Buffer} bytes - * - * @api private - */ -function Int64(bytes) { - if (bytes.length !== 8) { - throw new Error('Int64 buffers must be exactly 8 bytes'); - } - if (!util.Buffer.isBuffer(bytes)) bytes = toBuffer(bytes); - - this.bytes = bytes; -} - -/** - * @param {number} number - * @returns {Int64} - * - * @api private - */ -Int64.fromNumber = function(number) { - if (number > 9223372036854775807 || number < -9223372036854775808) { - throw new Error( - number + ' is too large (or, if negative, too small) to represent as an Int64' - ); - } - - var bytes = new Uint8Array(8); - for ( - var i = 7, remaining = Math.abs(Math.round(number)); - i > -1 && remaining > 0; - i--, remaining /= 256 - ) { - bytes[i] = remaining; - } - - if (number < 0) { - negate(bytes); - } - - return new Int64(bytes); -}; - -/** - * @returns {number} - * - * @api private - */ -Int64.prototype.valueOf = function() { - var bytes = this.bytes.slice(0); - var negative = bytes[0] & 128; - if (negative) { - negate(bytes); - } - - return parseInt(bytes.toString('hex'), 16) * (negative ? -1 : 1); -}; - -Int64.prototype.toString = function() { - return String(this.valueOf()); -}; - -/** - * @param {Buffer} bytes - * - * @api private - */ -function negate(bytes) { - for (var i = 0; i < 8; i++) { - bytes[i] ^= 0xFF; - } - for (var i = 7; i > -1; i--) { - bytes[i]++; - if (bytes[i] !== 0) { - break; - } - } -} - -/** - * @api private - */ -module.exports = { - Int64: Int64 -}; - - -/***/ }), - -/***/ 91220: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var parseMessage = (__nccwpck_require__(99979).parseMessage); - -/** - * - * @param {*} parser - * @param {Buffer} message - * @param {*} shape - * @api private - */ -function parseEvent(parser, message, shape) { - var parsedMessage = parseMessage(message); - - // check if message is an event or error - var messageType = parsedMessage.headers[':message-type']; - if (messageType) { - if (messageType.value === 'error') { - throw parseError(parsedMessage); - } else if (messageType.value !== 'event') { - // not sure how to parse non-events/non-errors, ignore for now - return; - } - } - - // determine event type - var eventType = parsedMessage.headers[':event-type']; - // check that the event type is modeled - var eventModel = shape.members[eventType.value]; - if (!eventModel) { - return; - } - - var result = {}; - // check if an event payload exists - var eventPayloadMemberName = eventModel.eventPayloadMemberName; - if (eventPayloadMemberName) { - var payloadShape = eventModel.members[eventPayloadMemberName]; - // if the shape is binary, return the byte array - if (payloadShape.type === 'binary') { - result[eventPayloadMemberName] = parsedMessage.body; - } else { - result[eventPayloadMemberName] = parser.parse(parsedMessage.body.toString(), payloadShape); - } - } - - // read event headers - var eventHeaderNames = eventModel.eventHeaderMemberNames; - for (var i = 0; i < eventHeaderNames.length; i++) { - var name = eventHeaderNames[i]; - if (parsedMessage.headers[name]) { - // parse the header! - result[name] = eventModel.members[name].toType(parsedMessage.headers[name].value); - } - } - - var output = {}; - output[eventType.value] = result; - return output; -} - -function parseError(message) { - var errorCode = message.headers[':error-code']; - var errorMessage = message.headers[':error-message']; - var error = new Error(errorMessage.value || errorMessage); - error.code = error.name = errorCode.value || errorCode; - return error; -} - -/** - * @api private - */ -module.exports = { - parseEvent: parseEvent -}; - - -/***/ }), - -/***/ 99979: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var Int64 = (__nccwpck_require__(90173).Int64); - -var splitMessage = (__nccwpck_require__(84500).splitMessage); - -var BOOLEAN_TAG = 'boolean'; -var BYTE_TAG = 'byte'; -var SHORT_TAG = 'short'; -var INT_TAG = 'integer'; -var LONG_TAG = 'long'; -var BINARY_TAG = 'binary'; -var STRING_TAG = 'string'; -var TIMESTAMP_TAG = 'timestamp'; -var UUID_TAG = 'uuid'; - -/** - * @api private - * - * @param {Buffer} headers - */ -function parseHeaders(headers) { - var out = {}; - var position = 0; - while (position < headers.length) { - var nameLength = headers.readUInt8(position++); - var name = headers.slice(position, position + nameLength).toString(); - position += nameLength; - switch (headers.readUInt8(position++)) { - case 0 /* boolTrue */: - out[name] = { - type: BOOLEAN_TAG, - value: true - }; - break; - case 1 /* boolFalse */: - out[name] = { - type: BOOLEAN_TAG, - value: false - }; - break; - case 2 /* byte */: - out[name] = { - type: BYTE_TAG, - value: headers.readInt8(position++) - }; - break; - case 3 /* short */: - out[name] = { - type: SHORT_TAG, - value: headers.readInt16BE(position) - }; - position += 2; - break; - case 4 /* integer */: - out[name] = { - type: INT_TAG, - value: headers.readInt32BE(position) - }; - position += 4; - break; - case 5 /* long */: - out[name] = { - type: LONG_TAG, - value: new Int64(headers.slice(position, position + 8)) - }; - position += 8; - break; - case 6 /* byteArray */: - var binaryLength = headers.readUInt16BE(position); - position += 2; - out[name] = { - type: BINARY_TAG, - value: headers.slice(position, position + binaryLength) - }; - position += binaryLength; - break; - case 7 /* string */: - var stringLength = headers.readUInt16BE(position); - position += 2; - out[name] = { - type: STRING_TAG, - value: headers.slice( - position, - position + stringLength - ).toString() - }; - position += stringLength; - break; - case 8 /* timestamp */: - out[name] = { - type: TIMESTAMP_TAG, - value: new Date( - new Int64(headers.slice(position, position + 8)) - .valueOf() - ) - }; - position += 8; - break; - case 9 /* uuid */: - var uuidChars = headers.slice(position, position + 16) - .toString('hex'); - position += 16; - out[name] = { - type: UUID_TAG, - value: uuidChars.substr(0, 8) + '-' + - uuidChars.substr(8, 4) + '-' + - uuidChars.substr(12, 4) + '-' + - uuidChars.substr(16, 4) + '-' + - uuidChars.substr(20) - }; - break; - default: - throw new Error('Unrecognized header type tag'); - } - } - return out; -} - -function parseMessage(message) { - var parsed = splitMessage(message); - return { headers: parseHeaders(parsed.headers), body: parsed.body }; -} - -/** - * @api private - */ -module.exports = { - parseMessage: parseMessage -}; - - -/***/ }), - -/***/ 84500: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = (__nccwpck_require__(60085).util); -var toBuffer = util.buffer.toBuffer; - -// All prelude components are unsigned, 32-bit integers -var PRELUDE_MEMBER_LENGTH = 4; -// The prelude consists of two components -var PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2; -// Checksums are always CRC32 hashes. -var CHECKSUM_LENGTH = 4; -// Messages must include a full prelude, a prelude checksum, and a message checksum -var MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2; - -/** - * @api private - * - * @param {Buffer} message - */ -function splitMessage(message) { - if (!util.Buffer.isBuffer(message)) message = toBuffer(message); - - if (message.length < MINIMUM_MESSAGE_LENGTH) { - throw new Error('Provided message too short to accommodate event stream message overhead'); - } - - if (message.length !== message.readUInt32BE(0)) { - throw new Error('Reported message length does not match received message length'); - } - - var expectedPreludeChecksum = message.readUInt32BE(PRELUDE_LENGTH); - - if ( - expectedPreludeChecksum !== util.crypto.crc32( - message.slice(0, PRELUDE_LENGTH) - ) - ) { - throw new Error( - 'The prelude checksum specified in the message (' + - expectedPreludeChecksum + - ') does not match the calculated CRC32 checksum.' - ); - } - - var expectedMessageChecksum = message.readUInt32BE(message.length - CHECKSUM_LENGTH); - - if ( - expectedMessageChecksum !== util.crypto.crc32( - message.slice(0, message.length - CHECKSUM_LENGTH) - ) - ) { - throw new Error( - 'The message checksum did not match the expected value of ' + - expectedMessageChecksum - ); - } - - var headersStart = PRELUDE_LENGTH + CHECKSUM_LENGTH; - var headersEnd = headersStart + message.readUInt32BE(PRELUDE_MEMBER_LENGTH); - - return { - headers: message.slice(headersStart, headersEnd), - body: message.slice(headersEnd, message.length - CHECKSUM_LENGTH), - }; -} - -/** - * @api private - */ -module.exports = { - splitMessage: splitMessage -}; - - -/***/ }), - -/***/ 26575: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -/** - * What is necessary to create an event stream in node? - * - http response stream - * - parser - * - event stream model - */ - -var EventMessageChunkerStream = (__nccwpck_require__(9164).EventMessageChunkerStream); -var EventUnmarshallerStream = (__nccwpck_require__(71836).EventUnmarshallerStream); - -function createEventStream(stream, parser, model) { - var eventStream = new EventUnmarshallerStream({ - parser: parser, - eventStreamModel: model - }); - - var eventMessageChunker = new EventMessageChunkerStream(); - - stream.pipe( - eventMessageChunker - ).pipe(eventStream); - - stream.on('error', function(err) { - eventMessageChunker.emit('error', err); - }); - - eventMessageChunker.on('error', function(err) { - eventStream.emit('error', err); - }); - - return eventStream; -} - -/** - * @api private - */ -module.exports = { - createEventStream: createEventStream -}; - - -/***/ }), - -/***/ 32726: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var SequentialExecutor = __nccwpck_require__(81525); -var DISCOVER_ENDPOINT = (__nccwpck_require__(11549).discoverEndpoint); -/** - * The namespace used to register global event listeners for request building - * and sending. - */ -AWS.EventListeners = { - /** - * @!attribute VALIDATE_CREDENTIALS - * A request listener that validates whether the request is being - * sent with credentials. - * Handles the {AWS.Request~validate 'validate' Request event} - * @example Sending a request without validating credentials - * var listener = AWS.EventListeners.Core.VALIDATE_CREDENTIALS; - * request.removeListener('validate', listener); - * @readonly - * @return [Function] - * @!attribute VALIDATE_REGION - * A request listener that validates whether the region is set - * for a request. - * Handles the {AWS.Request~validate 'validate' Request event} - * @example Sending a request without validating region configuration - * var listener = AWS.EventListeners.Core.VALIDATE_REGION; - * request.removeListener('validate', listener); - * @readonly - * @return [Function] - * @!attribute VALIDATE_PARAMETERS - * A request listener that validates input parameters in a request. - * Handles the {AWS.Request~validate 'validate' Request event} - * @example Sending a request without validating parameters - * var listener = AWS.EventListeners.Core.VALIDATE_PARAMETERS; - * request.removeListener('validate', listener); - * @example Disable parameter validation globally - * AWS.EventListeners.Core.removeListener('validate', - * AWS.EventListeners.Core.VALIDATE_REGION); - * @readonly - * @return [Function] - * @!attribute SEND - * A request listener that initiates the HTTP connection for a - * request being sent. Handles the {AWS.Request~send 'send' Request event} - * @example Replacing the HTTP handler - * var listener = AWS.EventListeners.Core.SEND; - * request.removeListener('send', listener); - * request.on('send', function(response) { - * customHandler.send(response); - * }); - * @return [Function] - * @readonly - * @!attribute HTTP_DATA - * A request listener that reads data from the HTTP connection in order - * to build the response data. - * Handles the {AWS.Request~httpData 'httpData' Request event}. - * Remove this handler if you are overriding the 'httpData' event and - * do not want extra data processing and buffering overhead. - * @example Disabling default data processing - * var listener = AWS.EventListeners.Core.HTTP_DATA; - * request.removeListener('httpData', listener); - * @return [Function] - * @readonly - */ - Core: {} /* doc hack */ -}; - -/** - * @api private - */ -function getOperationAuthtype(req) { - if (!req.service.api.operations) { - return ''; - } - var operation = req.service.api.operations[req.operation]; - return operation ? operation.authtype : ''; -} - -/** - * @api private - */ -function getIdentityType(req) { - var service = req.service; - - if (service.config.signatureVersion) { - return service.config.signatureVersion; - } - - if (service.api.signatureVersion) { - return service.api.signatureVersion; - } - - return getOperationAuthtype(req); -} - -AWS.EventListeners = { - Core: new SequentialExecutor().addNamedListeners(function(add, addAsync) { - addAsync( - 'VALIDATE_CREDENTIALS', 'validate', - function VALIDATE_CREDENTIALS(req, done) { - if (!req.service.api.signatureVersion && !req.service.config.signatureVersion) return done(); // none - - var identityType = getIdentityType(req); - if (identityType === 'bearer') { - req.service.config.getToken(function(err) { - if (err) { - req.response.error = AWS.util.error(err, {code: 'TokenError'}); - } - done(); - }); - return; - } - - req.service.config.getCredentials(function(err) { - if (err) { - req.response.error = AWS.util.error(err, - { - code: 'CredentialsError', - message: 'Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1' - } - ); - } - done(); - }); - }); - - add('VALIDATE_REGION', 'validate', function VALIDATE_REGION(req) { - if (!req.service.isGlobalEndpoint) { - var dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); - if (!req.service.config.region) { - req.response.error = AWS.util.error(new Error(), - {code: 'ConfigError', message: 'Missing region in config'}); - } else if (!dnsHostRegex.test(req.service.config.region)) { - req.response.error = AWS.util.error(new Error(), - {code: 'ConfigError', message: 'Invalid region in config'}); - } - } - }); - - add('BUILD_IDEMPOTENCY_TOKENS', 'validate', function BUILD_IDEMPOTENCY_TOKENS(req) { - if (!req.service.api.operations) { - return; - } - var operation = req.service.api.operations[req.operation]; - if (!operation) { - return; - } - var idempotentMembers = operation.idempotentMembers; - if (!idempotentMembers.length) { - return; - } - // creates a copy of params so user's param object isn't mutated - var params = AWS.util.copy(req.params); - for (var i = 0, iLen = idempotentMembers.length; i < iLen; i++) { - if (!params[idempotentMembers[i]]) { - // add the member - params[idempotentMembers[i]] = AWS.util.uuid.v4(); - } - } - req.params = params; - }); - - add('VALIDATE_PARAMETERS', 'validate', function VALIDATE_PARAMETERS(req) { - if (!req.service.api.operations) { - return; - } - var rules = req.service.api.operations[req.operation].input; - var validation = req.service.config.paramValidation; - new AWS.ParamValidator(validation).validate(rules, req.params); - }); - - add('COMPUTE_CHECKSUM', 'afterBuild', function COMPUTE_CHECKSUM(req) { - if (!req.service.api.operations) { - return; - } - var operation = req.service.api.operations[req.operation]; - if (!operation) { - return; - } - var body = req.httpRequest.body; - var isNonStreamingPayload = body && (AWS.util.Buffer.isBuffer(body) || typeof body === 'string'); - var headers = req.httpRequest.headers; - if ( - operation.httpChecksumRequired && - req.service.config.computeChecksums && - isNonStreamingPayload && - !headers['Content-MD5'] - ) { - var md5 = AWS.util.crypto.md5(body, 'base64'); - headers['Content-MD5'] = md5; - } - }); - - addAsync('COMPUTE_SHA256', 'afterBuild', function COMPUTE_SHA256(req, done) { - req.haltHandlersOnError(); - if (!req.service.api.operations) { - return; - } - var operation = req.service.api.operations[req.operation]; - var authtype = operation ? operation.authtype : ''; - if (!req.service.api.signatureVersion && !authtype && !req.service.config.signatureVersion) return done(); // none - if (req.service.getSignerClass(req) === AWS.Signers.V4) { - var body = req.httpRequest.body || ''; - if (authtype.indexOf('unsigned-body') >= 0) { - req.httpRequest.headers['X-Amz-Content-Sha256'] = 'UNSIGNED-PAYLOAD'; - return done(); - } - AWS.util.computeSha256(body, function(err, sha) { - if (err) { - done(err); - } - else { - req.httpRequest.headers['X-Amz-Content-Sha256'] = sha; - done(); - } - }); - } else { - done(); - } - }); - - add('SET_CONTENT_LENGTH', 'afterBuild', function SET_CONTENT_LENGTH(req) { - var authtype = getOperationAuthtype(req); - var payloadMember = AWS.util.getRequestPayloadShape(req); - if (req.httpRequest.headers['Content-Length'] === undefined) { - try { - var length = AWS.util.string.byteLength(req.httpRequest.body); - req.httpRequest.headers['Content-Length'] = length; - } catch (err) { - if (payloadMember && payloadMember.isStreaming) { - if (payloadMember.requiresLength) { - //streaming payload requires length(s3, glacier) - throw err; - } else if (authtype.indexOf('unsigned-body') >= 0) { - //unbounded streaming payload(lex, mediastore) - req.httpRequest.headers['Transfer-Encoding'] = 'chunked'; - return; - } else { - throw err; - } - } - throw err; - } - } - }); - - add('SET_HTTP_HOST', 'afterBuild', function SET_HTTP_HOST(req) { - req.httpRequest.headers['Host'] = req.httpRequest.endpoint.host; - }); - - add('SET_TRACE_ID', 'afterBuild', function SET_TRACE_ID(req) { - var traceIdHeaderName = 'X-Amzn-Trace-Id'; - if (AWS.util.isNode() && !Object.hasOwnProperty.call(req.httpRequest.headers, traceIdHeaderName)) { - var ENV_LAMBDA_FUNCTION_NAME = 'AWS_LAMBDA_FUNCTION_NAME'; - var ENV_TRACE_ID = '_X_AMZN_TRACE_ID'; - var functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; - var traceId = process.env[ENV_TRACE_ID]; - if ( - typeof functionName === 'string' && - functionName.length > 0 && - typeof traceId === 'string' && - traceId.length > 0 - ) { - req.httpRequest.headers[traceIdHeaderName] = traceId; - } - } - }); - - add('RESTART', 'restart', function RESTART() { - var err = this.response.error; - if (!err || !err.retryable) return; - - this.httpRequest = new AWS.HttpRequest( - this.service.endpoint, - this.service.region - ); - - if (this.response.retryCount < this.service.config.maxRetries) { - this.response.retryCount++; - } else { - this.response.error = null; - } - }); - - var addToHead = true; - addAsync('DISCOVER_ENDPOINT', 'sign', DISCOVER_ENDPOINT, addToHead); - - addAsync('SIGN', 'sign', function SIGN(req, done) { - var service = req.service; - var identityType = getIdentityType(req); - if (!identityType || identityType.length === 0) return done(); // none - - if (identityType === 'bearer') { - service.config.getToken(function (err, token) { - if (err) { - req.response.error = err; - return done(); - } - - try { - var SignerClass = service.getSignerClass(req); - var signer = new SignerClass(req.httpRequest); - signer.addAuthorization(token); - } catch (e) { - req.response.error = e; - } - done(); - }); - } else { - service.config.getCredentials(function (err, credentials) { - if (err) { - req.response.error = err; - return done(); - } - - try { - var date = service.getSkewCorrectedDate(); - var SignerClass = service.getSignerClass(req); - var operations = req.service.api.operations || {}; - var operation = operations[req.operation]; - var signer = new SignerClass(req.httpRequest, - service.getSigningName(req), - { - signatureCache: service.config.signatureCache, - operation: operation, - signatureVersion: service.api.signatureVersion - }); - signer.setServiceClientId(service._clientId); - - // clear old authorization headers - delete req.httpRequest.headers['Authorization']; - delete req.httpRequest.headers['Date']; - delete req.httpRequest.headers['X-Amz-Date']; - - // add new authorization - signer.addAuthorization(credentials, date); - req.signedAt = date; - } catch (e) { - req.response.error = e; - } - done(); - }); - - } - }); - - add('VALIDATE_RESPONSE', 'validateResponse', function VALIDATE_RESPONSE(resp) { - if (this.service.successfulResponse(resp, this)) { - resp.data = {}; - resp.error = null; - } else { - resp.data = null; - resp.error = AWS.util.error(new Error(), - {code: 'UnknownError', message: 'An unknown error occurred.'}); - } - }); - - add('ERROR', 'error', function ERROR(err, resp) { - var awsQueryCompatible = resp.request.service.api.awsQueryCompatible; - if (awsQueryCompatible) { - var headers = resp.httpResponse.headers; - var queryErrorCode = headers ? headers['x-amzn-query-error'] : undefined; - if (queryErrorCode && queryErrorCode.includes(';')) { - resp.error.code = queryErrorCode.split(';')[0]; - } - } - }, true); - - addAsync('SEND', 'send', function SEND(resp, done) { - resp.httpResponse._abortCallback = done; - resp.error = null; - resp.data = null; - - function callback(httpResp) { - resp.httpResponse.stream = httpResp; - var stream = resp.request.httpRequest.stream; - var service = resp.request.service; - var api = service.api; - var operationName = resp.request.operation; - var operation = api.operations[operationName] || {}; - - httpResp.on('headers', function onHeaders(statusCode, headers, statusMessage) { - resp.request.emit( - 'httpHeaders', - [statusCode, headers, resp, statusMessage] - ); - - if (!resp.httpResponse.streaming) { - if (AWS.HttpClient.streamsApiVersion === 2) { // streams2 API check - // if we detect event streams, we're going to have to - // return the stream immediately - if (operation.hasEventOutput && service.successfulResponse(resp)) { - // skip reading the IncomingStream - resp.request.emit('httpDone'); - done(); - return; - } - - httpResp.on('readable', function onReadable() { - var data = httpResp.read(); - if (data !== null) { - resp.request.emit('httpData', [data, resp]); - } - }); - } else { // legacy streams API - httpResp.on('data', function onData(data) { - resp.request.emit('httpData', [data, resp]); - }); - } - } - }); - - httpResp.on('end', function onEnd() { - if (!stream || !stream.didCallback) { - if (AWS.HttpClient.streamsApiVersion === 2 && (operation.hasEventOutput && service.successfulResponse(resp))) { - // don't concatenate response chunks when streaming event stream data when response is successful - return; - } - resp.request.emit('httpDone'); - done(); - } - }); - } - - function progress(httpResp) { - httpResp.on('sendProgress', function onSendProgress(value) { - resp.request.emit('httpUploadProgress', [value, resp]); - }); - - httpResp.on('receiveProgress', function onReceiveProgress(value) { - resp.request.emit('httpDownloadProgress', [value, resp]); - }); - } - - function error(err) { - if (err.code !== 'RequestAbortedError') { - var errCode = err.code === 'TimeoutError' ? err.code : 'NetworkingError'; - err = AWS.util.error(err, { - code: errCode, - region: resp.request.httpRequest.region, - hostname: resp.request.httpRequest.endpoint.hostname, - retryable: true - }); - } - resp.error = err; - resp.request.emit('httpError', [resp.error, resp], function() { - done(); - }); - } - - function executeSend() { - var http = AWS.HttpClient.getInstance(); - var httpOptions = resp.request.service.config.httpOptions || {}; - try { - var stream = http.handleRequest(resp.request.httpRequest, httpOptions, - callback, error); - progress(stream); - } catch (err) { - error(err); - } - } - var timeDiff = (resp.request.service.getSkewCorrectedDate() - this.signedAt) / 1000; - if (timeDiff >= 60 * 10) { // if we signed 10min ago, re-sign - this.emit('sign', [this], function(err) { - if (err) done(err); - else executeSend(); - }); - } else { - executeSend(); - } - }); - - add('HTTP_HEADERS', 'httpHeaders', - function HTTP_HEADERS(statusCode, headers, resp, statusMessage) { - resp.httpResponse.statusCode = statusCode; - resp.httpResponse.statusMessage = statusMessage; - resp.httpResponse.headers = headers; - resp.httpResponse.body = AWS.util.buffer.toBuffer(''); - resp.httpResponse.buffers = []; - resp.httpResponse.numBytes = 0; - var dateHeader = headers.date || headers.Date; - var service = resp.request.service; - if (dateHeader) { - var serverTime = Date.parse(dateHeader); - if (service.config.correctClockSkew - && service.isClockSkewed(serverTime)) { - service.applyClockOffset(serverTime); - } - } - }); - - add('HTTP_DATA', 'httpData', function HTTP_DATA(chunk, resp) { - if (chunk) { - if (AWS.util.isNode()) { - resp.httpResponse.numBytes += chunk.length; - - var total = resp.httpResponse.headers['content-length']; - var progress = { loaded: resp.httpResponse.numBytes, total: total }; - resp.request.emit('httpDownloadProgress', [progress, resp]); - } - - resp.httpResponse.buffers.push(AWS.util.buffer.toBuffer(chunk)); - } - }); - - add('HTTP_DONE', 'httpDone', function HTTP_DONE(resp) { - // convert buffers array into single buffer - if (resp.httpResponse.buffers && resp.httpResponse.buffers.length > 0) { - var body = AWS.util.buffer.concat(resp.httpResponse.buffers); - resp.httpResponse.body = body; - } - delete resp.httpResponse.numBytes; - delete resp.httpResponse.buffers; - }); - - add('FINALIZE_ERROR', 'retry', function FINALIZE_ERROR(resp) { - if (resp.httpResponse.statusCode) { - resp.error.statusCode = resp.httpResponse.statusCode; - if (resp.error.retryable === undefined) { - resp.error.retryable = this.service.retryableError(resp.error, this); - } - } - }); - - add('INVALIDATE_CREDENTIALS', 'retry', function INVALIDATE_CREDENTIALS(resp) { - if (!resp.error) return; - switch (resp.error.code) { - case 'RequestExpired': // EC2 only - case 'ExpiredTokenException': - case 'ExpiredToken': - resp.error.retryable = true; - resp.request.service.config.credentials.expired = true; - } - }); - - add('EXPIRED_SIGNATURE', 'retry', function EXPIRED_SIGNATURE(resp) { - var err = resp.error; - if (!err) return; - if (typeof err.code === 'string' && typeof err.message === 'string') { - if (err.code.match(/Signature/) && err.message.match(/expired/)) { - resp.error.retryable = true; - } - } - }); - - add('CLOCK_SKEWED', 'retry', function CLOCK_SKEWED(resp) { - if (!resp.error) return; - if (this.service.clockSkewError(resp.error) - && this.service.config.correctClockSkew) { - resp.error.retryable = true; - } - }); - - add('REDIRECT', 'retry', function REDIRECT(resp) { - if (resp.error && resp.error.statusCode >= 300 && - resp.error.statusCode < 400 && resp.httpResponse.headers['location']) { - this.httpRequest.endpoint = - new AWS.Endpoint(resp.httpResponse.headers['location']); - this.httpRequest.headers['Host'] = this.httpRequest.endpoint.host; - this.httpRequest.path = this.httpRequest.endpoint.path; - resp.error.redirect = true; - resp.error.retryable = true; - } - }); - - add('RETRY_CHECK', 'retry', function RETRY_CHECK(resp) { - if (resp.error) { - if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { - resp.error.retryDelay = 0; - } else if (resp.retryCount < resp.maxRetries) { - resp.error.retryDelay = this.service.retryDelays(resp.retryCount, resp.error) || 0; - } - } - }); - - addAsync('RESET_RETRY_STATE', 'afterRetry', function RESET_RETRY_STATE(resp, done) { - var delay, willRetry = false; - - if (resp.error) { - delay = resp.error.retryDelay || 0; - if (resp.error.retryable && resp.retryCount < resp.maxRetries) { - resp.retryCount++; - willRetry = true; - } else if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { - resp.redirectCount++; - willRetry = true; - } - } - - // delay < 0 is a signal from customBackoff to skip retries - if (willRetry && delay >= 0) { - resp.error = null; - setTimeout(done, delay); - } else { - done(); - } - }); - }), - - CorePost: new SequentialExecutor().addNamedListeners(function(add) { - add('EXTRACT_REQUEST_ID', 'extractData', AWS.util.extractRequestId); - add('EXTRACT_REQUEST_ID', 'extractError', AWS.util.extractRequestId); - - add('ENOTFOUND_ERROR', 'httpError', function ENOTFOUND_ERROR(err) { - function isDNSError(err) { - return err.errno === 'ENOTFOUND' || - typeof err.errno === 'number' && - typeof AWS.util.getSystemErrorName === 'function' && - ['EAI_NONAME', 'EAI_NODATA'].indexOf(AWS.util.getSystemErrorName(err.errno) >= 0); - } - if (err.code === 'NetworkingError' && isDNSError(err)) { - var message = 'Inaccessible host: `' + err.hostname + '\' at port `' + err.port + - '\'. This service may not be available in the `' + err.region + - '\' region.'; - this.response.error = AWS.util.error(new Error(message), { - code: 'UnknownEndpoint', - region: err.region, - hostname: err.hostname, - retryable: true, - originalError: err - }); - } - }); - }), - - Logger: new SequentialExecutor().addNamedListeners(function(add) { - add('LOG_REQUEST', 'complete', function LOG_REQUEST(resp) { - var req = resp.request; - var logger = req.service.config.logger; - if (!logger) return; - function filterSensitiveLog(inputShape, shape) { - if (!shape) { - return shape; - } - if (inputShape.isSensitive) { - return '***SensitiveInformation***'; - } - switch (inputShape.type) { - case 'structure': - var struct = {}; - AWS.util.each(shape, function(subShapeName, subShape) { - if (Object.prototype.hasOwnProperty.call(inputShape.members, subShapeName)) { - struct[subShapeName] = filterSensitiveLog(inputShape.members[subShapeName], subShape); - } else { - struct[subShapeName] = subShape; - } - }); - return struct; - case 'list': - var list = []; - AWS.util.arrayEach(shape, function(subShape, index) { - list.push(filterSensitiveLog(inputShape.member, subShape)); - }); - return list; - case 'map': - var map = {}; - AWS.util.each(shape, function(key, value) { - map[key] = filterSensitiveLog(inputShape.value, value); - }); - return map; - default: - return shape; - } - } - - function buildMessage() { - var time = resp.request.service.getSkewCorrectedDate().getTime(); - var delta = (time - req.startTime.getTime()) / 1000; - var ansi = logger.isTTY ? true : false; - var status = resp.httpResponse.statusCode; - var censoredParams = req.params; - if ( - req.service.api.operations && - req.service.api.operations[req.operation] && - req.service.api.operations[req.operation].input - ) { - var inputShape = req.service.api.operations[req.operation].input; - censoredParams = filterSensitiveLog(inputShape, req.params); - } - var params = (__nccwpck_require__(39023).inspect)(censoredParams, true, null); - var message = ''; - if (ansi) message += '\x1B[33m'; - message += '[AWS ' + req.service.serviceIdentifier + ' ' + status; - message += ' ' + delta.toString() + 's ' + resp.retryCount + ' retries]'; - if (ansi) message += '\x1B[0;1m'; - message += ' ' + AWS.util.string.lowerFirst(req.operation); - message += '(' + params + ')'; - if (ansi) message += '\x1B[0m'; - return message; - } - - var line = buildMessage(); - if (typeof logger.log === 'function') { - logger.log(line); - } else if (typeof logger.write === 'function') { - logger.write(line + '\n'); - } - }); - }), - - Json: new SequentialExecutor().addNamedListeners(function(add) { - var svc = __nccwpck_require__(75507); - add('BUILD', 'build', svc.buildRequest); - add('EXTRACT_DATA', 'extractData', svc.extractData); - add('EXTRACT_ERROR', 'extractError', svc.extractError); - }), - - Rest: new SequentialExecutor().addNamedListeners(function(add) { - var svc = __nccwpck_require__(80031); - add('BUILD', 'build', svc.buildRequest); - add('EXTRACT_DATA', 'extractData', svc.extractData); - add('EXTRACT_ERROR', 'extractError', svc.extractError); - }), - - RestJson: new SequentialExecutor().addNamedListeners(function(add) { - var svc = __nccwpck_require__(84032); - add('BUILD', 'build', svc.buildRequest); - add('EXTRACT_DATA', 'extractData', svc.extractData); - add('EXTRACT_ERROR', 'extractError', svc.extractError); - add('UNSET_CONTENT_LENGTH', 'afterBuild', svc.unsetContentLength); - }), - - RestXml: new SequentialExecutor().addNamedListeners(function(add) { - var svc = __nccwpck_require__(81153); - add('BUILD', 'build', svc.buildRequest); - add('EXTRACT_DATA', 'extractData', svc.extractData); - add('EXTRACT_ERROR', 'extractError', svc.extractError); - }), - - Query: new SequentialExecutor().addNamedListeners(function(add) { - var svc = __nccwpck_require__(22881); - add('BUILD', 'build', svc.buildRequest); - add('EXTRACT_DATA', 'extractData', svc.extractData); - add('EXTRACT_ERROR', 'extractError', svc.extractError); - }) -}; - - -/***/ }), - -/***/ 82578: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var inherit = AWS.util.inherit; - -/** - * The endpoint that a service will talk to, for example, - * `'https://ec2.ap-southeast-1.amazonaws.com'`. If - * you need to override an endpoint for a service, you can - * set the endpoint on a service by passing the endpoint - * object with the `endpoint` option key: - * - * ```javascript - * var ep = new AWS.Endpoint('awsproxy.example.com'); - * var s3 = new AWS.S3({endpoint: ep}); - * s3.service.endpoint.hostname == 'awsproxy.example.com' - * ``` - * - * Note that if you do not specify a protocol, the protocol will - * be selected based on your current {AWS.config} configuration. - * - * @!attribute protocol - * @return [String] the protocol (http or https) of the endpoint - * URL - * @!attribute hostname - * @return [String] the host portion of the endpoint, e.g., - * example.com - * @!attribute host - * @return [String] the host portion of the endpoint including - * the port, e.g., example.com:80 - * @!attribute port - * @return [Integer] the port of the endpoint - * @!attribute href - * @return [String] the full URL of the endpoint - */ -AWS.Endpoint = inherit({ - - /** - * @overload Endpoint(endpoint) - * Constructs a new endpoint given an endpoint URL. If the - * URL omits a protocol (http or https), the default protocol - * set in the global {AWS.config} will be used. - * @param endpoint [String] the URL to construct an endpoint from - */ - constructor: function Endpoint(endpoint, config) { - AWS.util.hideProperties(this, ['slashes', 'auth', 'hash', 'search', 'query']); - - if (typeof endpoint === 'undefined' || endpoint === null) { - throw new Error('Invalid endpoint: ' + endpoint); - } else if (typeof endpoint !== 'string') { - return AWS.util.copy(endpoint); - } - - if (!endpoint.match(/^http/)) { - var useSSL = config && config.sslEnabled !== undefined ? - config.sslEnabled : AWS.config.sslEnabled; - endpoint = (useSSL ? 'https' : 'http') + '://' + endpoint; - } - - AWS.util.update(this, AWS.util.urlParse(endpoint)); - - // Ensure the port property is set as an integer - if (this.port) { - this.port = parseInt(this.port, 10); - } else { - this.port = this.protocol === 'https:' ? 443 : 80; - } - } - -}); - -/** - * The low level HTTP request object, encapsulating all HTTP header - * and body data sent by a service request. - * - * @!attribute method - * @return [String] the HTTP method of the request - * @!attribute path - * @return [String] the path portion of the URI, e.g., - * "/list/?start=5&num=10" - * @!attribute headers - * @return [map] - * a map of header keys and their respective values - * @!attribute body - * @return [String] the request body payload - * @!attribute endpoint - * @return [AWS.Endpoint] the endpoint for the request - * @!attribute region - * @api private - * @return [String] the region, for signing purposes only. - */ -AWS.HttpRequest = inherit({ - - /** - * @api private - */ - constructor: function HttpRequest(endpoint, region) { - endpoint = new AWS.Endpoint(endpoint); - this.method = 'POST'; - this.path = endpoint.path || '/'; - this.headers = {}; - this.body = ''; - this.endpoint = endpoint; - this.region = region; - this._userAgent = ''; - this.setUserAgent(); - }, - - /** - * @api private - */ - setUserAgent: function setUserAgent() { - this._userAgent = this.headers[this.getUserAgentHeaderName()] = AWS.util.userAgent(); - }, - - getUserAgentHeaderName: function getUserAgentHeaderName() { - var prefix = AWS.util.isBrowser() ? 'X-Amz-' : ''; - return prefix + 'User-Agent'; - }, - - /** - * @api private - */ - appendToUserAgent: function appendToUserAgent(agentPartial) { - if (typeof agentPartial === 'string' && agentPartial) { - this._userAgent += ' ' + agentPartial; - } - this.headers[this.getUserAgentHeaderName()] = this._userAgent; - }, - - /** - * @api private - */ - getUserAgent: function getUserAgent() { - return this._userAgent; - }, - - /** - * @return [String] the part of the {path} excluding the - * query string - */ - pathname: function pathname() { - return this.path.split('?', 1)[0]; - }, - - /** - * @return [String] the query string portion of the {path} - */ - search: function search() { - var query = this.path.split('?', 2)[1]; - if (query) { - query = AWS.util.queryStringParse(query); - return AWS.util.queryParamsToString(query); - } - return ''; - }, - - /** - * @api private - * update httpRequest endpoint with endpoint string - */ - updateEndpoint: function updateEndpoint(endpointStr) { - var newEndpoint = new AWS.Endpoint(endpointStr); - this.endpoint = newEndpoint; - this.path = newEndpoint.path || '/'; - if (this.headers['Host']) { - this.headers['Host'] = newEndpoint.host; - } - } -}); - -/** - * The low level HTTP response object, encapsulating all HTTP header - * and body data returned from the request. - * - * @!attribute statusCode - * @return [Integer] the HTTP status code of the response (e.g., 200, 404) - * @!attribute headers - * @return [map] - * a map of response header keys and their respective values - * @!attribute body - * @return [String] the response body payload - * @!attribute [r] streaming - * @return [Boolean] whether this response is being streamed at a low-level. - * Defaults to `false` (buffered reads). Do not modify this manually, use - * {createUnbufferedStream} to convert the stream to unbuffered mode - * instead. - */ -AWS.HttpResponse = inherit({ - - /** - * @api private - */ - constructor: function HttpResponse() { - this.statusCode = undefined; - this.headers = {}; - this.body = undefined; - this.streaming = false; - this.stream = null; - }, - - /** - * Disables buffering on the HTTP response and returns the stream for reading. - * @return [Stream, XMLHttpRequest, null] the underlying stream object. - * Use this object to directly read data off of the stream. - * @note This object is only available after the {AWS.Request~httpHeaders} - * event has fired. This method must be called prior to - * {AWS.Request~httpData}. - * @example Taking control of a stream - * request.on('httpHeaders', function(statusCode, headers) { - * if (statusCode < 300) { - * if (headers.etag === 'xyz') { - * // pipe the stream, disabling buffering - * var stream = this.response.httpResponse.createUnbufferedStream(); - * stream.pipe(process.stdout); - * } else { // abort this request and set a better error message - * this.abort(); - * this.response.error = new Error('Invalid ETag'); - * } - * } - * }).send(console.log); - */ - createUnbufferedStream: function createUnbufferedStream() { - this.streaming = true; - return this.stream; - } -}); - - -AWS.HttpClient = inherit({}); - -/** - * @api private - */ -AWS.HttpClient.getInstance = function getInstance() { - if (this.singleton === undefined) { - this.singleton = new this(); - } - return this.singleton; -}; - - -/***/ }), - -/***/ 10905: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var Stream = AWS.util.stream.Stream; -var TransformStream = AWS.util.stream.Transform; -var ReadableStream = AWS.util.stream.Readable; -__nccwpck_require__(82578); -var CONNECTION_REUSE_ENV_NAME = 'AWS_NODEJS_CONNECTION_REUSE_ENABLED'; - -/** - * @api private - */ -AWS.NodeHttpClient = AWS.util.inherit({ - handleRequest: function handleRequest(httpRequest, httpOptions, callback, errCallback) { - var self = this; - var endpoint = httpRequest.endpoint; - var pathPrefix = ''; - if (!httpOptions) httpOptions = {}; - if (httpOptions.proxy) { - pathPrefix = endpoint.protocol + '//' + endpoint.hostname; - if (endpoint.port !== 80 && endpoint.port !== 443) { - pathPrefix += ':' + endpoint.port; - } - endpoint = new AWS.Endpoint(httpOptions.proxy); - } - - var useSSL = endpoint.protocol === 'https:'; - var http = useSSL ? __nccwpck_require__(65692) : __nccwpck_require__(58611); - var options = { - host: endpoint.hostname, - port: endpoint.port, - method: httpRequest.method, - headers: httpRequest.headers, - path: pathPrefix + httpRequest.path - }; - - AWS.util.update(options, httpOptions); - - if (!httpOptions.agent) { - options.agent = this.getAgent(useSSL, { - keepAlive: process.env[CONNECTION_REUSE_ENV_NAME] === '1' ? true : false - }); - } - - delete options.proxy; // proxy isn't an HTTP option - delete options.timeout; // timeout isn't an HTTP option - - var stream = http.request(options, function (httpResp) { - if (stream.didCallback) return; - - callback(httpResp); - httpResp.emit( - 'headers', - httpResp.statusCode, - httpResp.headers, - httpResp.statusMessage - ); - }); - httpRequest.stream = stream; // attach stream to httpRequest - stream.didCallback = false; - - // connection timeout support - if (httpOptions.connectTimeout) { - var connectTimeoutId; - stream.on('socket', function(socket) { - if (socket.connecting) { - connectTimeoutId = setTimeout(function connectTimeout() { - if (stream.didCallback) return; stream.didCallback = true; - - stream.abort(); - errCallback(AWS.util.error( - new Error('Socket timed out without establishing a connection'), - {code: 'TimeoutError'} - )); - }, httpOptions.connectTimeout); - socket.on('connect', function() { - clearTimeout(connectTimeoutId); - connectTimeoutId = null; - }); - } - }); - } - - // timeout support - stream.setTimeout(httpOptions.timeout || 0, function() { - if (stream.didCallback) return; stream.didCallback = true; - - var msg = 'Connection timed out after ' + httpOptions.timeout + 'ms'; - errCallback(AWS.util.error(new Error(msg), {code: 'TimeoutError'})); - stream.abort(); - }); - - stream.on('error', function(err) { - if (connectTimeoutId) { - clearTimeout(connectTimeoutId); - connectTimeoutId = null; - } - if (stream.didCallback) return; stream.didCallback = true; - if ('ECONNRESET' === err.code || 'EPIPE' === err.code || 'ETIMEDOUT' === err.code) { - errCallback(AWS.util.error(err, {code: 'TimeoutError'})); - } else { - errCallback(err); - } - }); - - var expect = httpRequest.headers.Expect || httpRequest.headers.expect; - if (expect === '100-continue') { - stream.once('continue', function() { - self.writeBody(stream, httpRequest); - }); - } else { - this.writeBody(stream, httpRequest); - } - - return stream; - }, - - writeBody: function writeBody(stream, httpRequest) { - var body = httpRequest.body; - var totalBytes = parseInt(httpRequest.headers['Content-Length'], 10); - - if (body instanceof Stream) { - // For progress support of streaming content - - // pipe the data through a transform stream to emit 'sendProgress' events - var progressStream = this.progressStream(stream, totalBytes); - if (progressStream) { - body.pipe(progressStream).pipe(stream); - } else { - body.pipe(stream); - } - } else if (body) { - // The provided body is a buffer/string and is already fully available in memory - - // For performance it's best to send it as a whole by calling stream.end(body), - // Callers expect a 'sendProgress' event which is best emitted once - // the http request stream has been fully written and all data flushed. - // The use of totalBytes is important over body.length for strings where - // length is char length and not byte length. - stream.once('finish', function() { - stream.emit('sendProgress', { - loaded: totalBytes, - total: totalBytes - }); - }); - stream.end(body); - } else { - // no request body - stream.end(); - } - }, - - /** - * Create the https.Agent or http.Agent according to the request schema. - */ - getAgent: function getAgent(useSSL, agentOptions) { - var http = useSSL ? __nccwpck_require__(65692) : __nccwpck_require__(58611); - if (useSSL) { - if (!AWS.NodeHttpClient.sslAgent) { - AWS.NodeHttpClient.sslAgent = new http.Agent(AWS.util.merge({ - rejectUnauthorized: process.env.NODE_TLS_REJECT_UNAUTHORIZED === '0' ? false : true - }, agentOptions || {})); - AWS.NodeHttpClient.sslAgent.setMaxListeners(0); - - // delegate maxSockets to globalAgent, set a default limit of 50 if current value is Infinity. - // Users can bypass this default by supplying their own Agent as part of SDK configuration. - Object.defineProperty(AWS.NodeHttpClient.sslAgent, 'maxSockets', { - enumerable: true, - get: function() { - var defaultMaxSockets = 50; - var globalAgent = http.globalAgent; - if (globalAgent && globalAgent.maxSockets !== Infinity && typeof globalAgent.maxSockets === 'number') { - return globalAgent.maxSockets; - } - return defaultMaxSockets; - } - }); - } - return AWS.NodeHttpClient.sslAgent; - } else { - if (!AWS.NodeHttpClient.agent) { - AWS.NodeHttpClient.agent = new http.Agent(agentOptions); - } - return AWS.NodeHttpClient.agent; - } - }, - - progressStream: function progressStream(stream, totalBytes) { - if (typeof TransformStream === 'undefined') { - // for node 0.8 there is no streaming progress - return; - } - var loadedBytes = 0; - var reporter = new TransformStream(); - reporter._transform = function(chunk, encoding, callback) { - if (chunk) { - loadedBytes += chunk.length; - stream.emit('sendProgress', { - loaded: loadedBytes, - total: totalBytes - }); - } - callback(null, chunk); - }; - return reporter; - }, - - emitter: null -}); - -/** - * @!ignore - */ - -/** - * @api private - */ -AWS.HttpClient.prototype = AWS.NodeHttpClient.prototype; - -/** - * @api private - */ -AWS.HttpClient.streamsApiVersion = ReadableStream ? 2 : 1; - - -/***/ }), - -/***/ 84516: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = __nccwpck_require__(65742); - -function JsonBuilder() { } - -JsonBuilder.prototype.build = function(value, shape) { - return JSON.stringify(translate(value, shape)); -}; - -function translate(value, shape) { - if (!shape || value === undefined || value === null) return undefined; - - switch (shape.type) { - case 'structure': return translateStructure(value, shape); - case 'map': return translateMap(value, shape); - case 'list': return translateList(value, shape); - default: return translateScalar(value, shape); - } -} - -function translateStructure(structure, shape) { - if (shape.isDocument) { - return structure; - } - var struct = {}; - util.each(structure, function(name, value) { - var memberShape = shape.members[name]; - if (memberShape) { - if (memberShape.location !== 'body') return; - var locationName = memberShape.isLocationName ? memberShape.name : name; - var result = translate(value, memberShape); - if (result !== undefined) struct[locationName] = result; - } - }); - return struct; -} - -function translateList(list, shape) { - var out = []; - util.arrayEach(list, function(value) { - var result = translate(value, shape.member); - if (result !== undefined) out.push(result); - }); - return out; -} - -function translateMap(map, shape) { - var out = {}; - util.each(map, function(key, value) { - var result = translate(value, shape.value); - if (result !== undefined) out[key] = result; - }); - return out; -} - -function translateScalar(value, shape) { - return shape.toWireFormat(value); -} - -/** - * @api private - */ -module.exports = JsonBuilder; - - -/***/ }), - -/***/ 36964: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = __nccwpck_require__(65742); - -function JsonParser() { } - -JsonParser.prototype.parse = function(value, shape) { - return translate(JSON.parse(value), shape); -}; - -function translate(value, shape) { - if (!shape || value === undefined) return undefined; - - switch (shape.type) { - case 'structure': return translateStructure(value, shape); - case 'map': return translateMap(value, shape); - case 'list': return translateList(value, shape); - default: return translateScalar(value, shape); - } -} - -function translateStructure(structure, shape) { - if (structure == null) return undefined; - if (shape.isDocument) return structure; - - var struct = {}; - var shapeMembers = shape.members; - var isAwsQueryCompatible = shape.api && shape.api.awsQueryCompatible; - util.each(shapeMembers, function(name, memberShape) { - var locationName = memberShape.isLocationName ? memberShape.name : name; - if (Object.prototype.hasOwnProperty.call(structure, locationName)) { - var value = structure[locationName]; - var result = translate(value, memberShape); - if (result !== undefined) struct[name] = result; - } else if (isAwsQueryCompatible && memberShape.defaultValue) { - if (memberShape.type === 'list') { - struct[name] = typeof memberShape.defaultValue === 'function' ? memberShape.defaultValue() : memberShape.defaultValue; - } - } - }); - return struct; -} - -function translateList(list, shape) { - if (list == null) return undefined; - - var out = []; - util.arrayEach(list, function(value) { - var result = translate(value, shape.member); - if (result === undefined) out.push(null); - else out.push(result); - }); - return out; -} - -function translateMap(map, shape) { - if (map == null) return undefined; - - var out = {}; - util.each(map, function(key, value) { - var result = translate(value, shape.value); - if (result === undefined) out[key] = null; - else out[key] = result; - }); - return out; -} - -function translateScalar(value, shape) { - return shape.toType(value); -} - -/** - * @api private - */ -module.exports = JsonParser; - - -/***/ }), - -/***/ 98517: -/***/ ((module) => { - -var warning = [ - 'The AWS SDK for JavaScript (v2) has reached end-of-support.', - 'It will no longer receive updates or releases.\n', - 'Please migrate your code to use AWS SDK for JavaScript (v3).', - 'For more information, check the blog post at https://a.co/cUPnyil' -].join('\n'); - -module.exports = { - suppress: false -}; - -/** - * To suppress this message: - * @example - * require('aws-sdk/lib/maintenance_mode_message').suppress = true; - */ -function emitWarning() { - if (typeof process === 'undefined') - return; - - // Skip maintenance mode message in Lambda environments - if ( - typeof process.env === 'object' && - typeof process.env.AWS_EXECUTION_ENV !== 'undefined' && - process.env.AWS_EXECUTION_ENV.indexOf('AWS_Lambda_') === 0 - ) { - return; - } - - if ( - typeof process.env === 'object' && - typeof process.env.AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE !== 'undefined' - ) { - return; - } - - if (typeof process.emitWarning === 'function') { - process.emitWarning(warning, { - type: 'NOTE' - }); - } -} - -setTimeout(function () { - if (!module.exports.suppress) { - emitWarning(); - } -}, 0); - - -/***/ }), - -/***/ 67647: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -__nccwpck_require__(82578); -var inherit = AWS.util.inherit; -var getMetadataServiceEndpoint = __nccwpck_require__(12016); -var URL = (__nccwpck_require__(87016).URL); - -/** - * Represents a metadata service available on EC2 instances. Using the - * {request} method, you can receieve metadata about any available resource - * on the metadata service. - * - * You can disable the use of the IMDS by setting the AWS_EC2_METADATA_DISABLED - * environment variable to a truthy value. - * - * @!attribute [r] httpOptions - * @return [map] a map of options to pass to the underlying HTTP request: - * - * * **timeout** (Number) — a timeout value in milliseconds to wait - * before aborting the connection. Set to 0 for no timeout. - * - * @!macro nobrowser - */ -AWS.MetadataService = inherit({ - /** - * @return [String] the endpoint of the instance metadata service - */ - endpoint: getMetadataServiceEndpoint(), - - /** - * @!ignore - */ - - /** - * Default HTTP options. By default, the metadata service is set to not - * timeout on long requests. This means that on non-EC2 machines, this - * request will never return. If you are calling this operation from an - * environment that may not always run on EC2, set a `timeout` value so - * the SDK will abort the request after a given number of milliseconds. - */ - httpOptions: { timeout: 0 }, - - /** - * when enabled, metadata service will not fetch token - */ - disableFetchToken: false, - - /** - * Creates a new MetadataService object with a given set of options. - * - * @option options host [String] the hostname of the instance metadata - * service - * @option options httpOptions [map] a map of options to pass to the - * underlying HTTP request: - * - * * **timeout** (Number) — a timeout value in milliseconds to wait - * before aborting the connection. Set to 0 for no timeout. - * @option options maxRetries [Integer] the maximum number of retries to - * perform for timeout errors - * @option options retryDelayOptions [map] A set of options to configure the - * retry delay on retryable errors. See AWS.Config for details. - * @option options ec2MetadataV1Disabled [boolean] Whether to block IMDS v1 fallback. - * @option options profile [string] A profile to check for IMDSv1 fallback settings. - * @option options filename [string] Optional filename for the config file. - */ - constructor: function MetadataService(options) { - if (options && options.host) { - options.endpoint = 'http://' + options.host; - delete options.host; - } - this.profile = options && options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile; - this.ec2MetadataV1Disabled = !!(options && options.ec2MetadataV1Disabled); - this.filename = options && options.filename; - AWS.util.update(this, options); - }, - - /** - * Sends a request to the instance metadata service for a given resource. - * - * @param path [String] the path of the resource to get - * - * @param options [map] an optional map used to make request - * - * * **method** (String) — HTTP request method - * - * * **headers** (map) — a map of response header keys and their respective values - * - * @callback callback function(err, data) - * Called when a response is available from the service. - * @param err [Error, null] if an error occurred, this value will be set - * @param data [String, null] if the request was successful, the body of - * the response - */ - request: function request(path, options, callback) { - if (arguments.length === 2) { - callback = options; - options = {}; - } - - if (process.env[AWS.util.imdsDisabledEnv]) { - callback(new Error('EC2 Instance Metadata Service access disabled')); - return; - } - - path = path || '/'; - - // Verify that host is a valid URL - if (URL) { new URL(this.endpoint); } - - var httpRequest = new AWS.HttpRequest(this.endpoint + path); - httpRequest.method = options.method || 'GET'; - if (options.headers) { - httpRequest.headers = options.headers; - } - AWS.util.handleRequestWithRetries(httpRequest, this, callback); - }, - - /** - * @api private - */ - loadCredentialsCallbacks: [], - - /** - * Fetches metadata token used for authenticating against the instance metadata service. - * - * @callback callback function(err, token) - * Called when token is loaded from the resource - */ - fetchMetadataToken: function fetchMetadataToken(callback) { - var self = this; - var tokenFetchPath = '/latest/api/token'; - self.request( - tokenFetchPath, - { - 'method': 'PUT', - 'headers': { - 'x-aws-ec2-metadata-token-ttl-seconds': '21600' - } - }, - callback - ); - }, - - /** - * Fetches credentials - * - * @api private - * @callback cb function(err, creds) - * Called when credentials are loaded from the resource - */ - fetchCredentials: function fetchCredentials(options, cb) { - var self = this; - var basePath = '/latest/meta-data/iam/security-credentials/'; - - var isImdsV1Fallback = self.disableFetchToken - || !(options && options.headers && options.headers['x-aws-ec2-metadata-token']); - - if (isImdsV1Fallback && !(process.env.AWS_EC2_METADATA_DISABLED)) { - try { - var profiles = AWS.util.getProfilesFromSharedConfig(AWS.util.iniLoader, this.filename); - var profileSettings = profiles[this.profile] || {}; - } catch (e) { - profileSettings = {}; - } - - if (profileSettings.ec2_metadata_v1_disabled && profileSettings.ec2_metadata_v1_disabled !== 'false') { - return cb(AWS.util.error( - new Error('AWS EC2 Metadata v1 fallback has been blocked by AWS config file profile.') - )); - } - - if (self.ec2MetadataV1Disabled) { - return cb(AWS.util.error( - new Error('AWS EC2 Metadata v1 fallback has been blocked by AWS.MetadataService::options.ec2MetadataV1Disabled=true.') - )); - } - - if (process.env.AWS_EC2_METADATA_V1_DISABLED && process.env.AWS_EC2_METADATA_V1_DISABLED !== 'false') { - return cb(AWS.util.error( - new Error('AWS EC2 Metadata v1 fallback has been blocked by process.env.AWS_EC2_METADATA_V1_DISABLED.') - )); - } - } - - self.request(basePath, options, function (err, roleName) { - if (err) { - self.disableFetchToken = !(err.statusCode === 401); - cb(AWS.util.error( - err, - { - message: 'EC2 Metadata roleName request returned error' - } - )); - return; - } - roleName = roleName.split('\n')[0]; // grab first (and only) role - self.request(basePath + roleName, options, function (credErr, credData) { - if (credErr) { - self.disableFetchToken = !(credErr.statusCode === 401); - cb(AWS.util.error( - credErr, - { - message: 'EC2 Metadata creds request returned error' - } - )); - return; - } - try { - var credentials = JSON.parse(credData); - cb(null, credentials); - } catch (parseError) { - cb(parseError); - } - }); - }); - }, - - /** - * Loads a set of credentials stored in the instance metadata service - * - * @api private - * @callback callback function(err, credentials) - * Called when credentials are loaded from the resource - * @param err [Error] if an error occurred, this value will be set - * @param credentials [Object] the raw JSON object containing all - * metadata from the credentials resource - */ - loadCredentials: function loadCredentials(callback) { - var self = this; - self.loadCredentialsCallbacks.push(callback); - if (self.loadCredentialsCallbacks.length > 1) { return; } - - function callbacks(err, creds) { - var cb; - while ((cb = self.loadCredentialsCallbacks.shift()) !== undefined) { - cb(err, creds); - } - } - - if (self.disableFetchToken) { - self.fetchCredentials({}, callbacks); - } else { - self.fetchMetadataToken(function(tokenError, token) { - if (tokenError) { - if (tokenError.code === 'TimeoutError') { - self.disableFetchToken = true; - } else if (tokenError.retryable === true) { - callbacks(AWS.util.error( - tokenError, - { - message: 'EC2 Metadata token request returned error' - } - )); - return; - } else if (tokenError.statusCode === 400) { - callbacks(AWS.util.error( - tokenError, - { - message: 'EC2 Metadata token request returned 400' - } - )); - return; - } - } - var options = {}; - if (token) { - options.headers = { - 'x-aws-ec2-metadata-token': token - }; - } - self.fetchCredentials(options, callbacks); - }); - - } - } -}); - -/** - * @api private - */ -module.exports = AWS.MetadataService; - - -/***/ }), - -/***/ 50378: -/***/ ((module) => { - -var getEndpoint = function() { - return { - IPv4: 'http://169.254.169.254', - IPv6: 'http://[fd00:ec2::254]', - }; -}; - -module.exports = getEndpoint; - - -/***/ }), - -/***/ 29706: -/***/ ((module) => { - -var ENV_ENDPOINT_NAME = 'AWS_EC2_METADATA_SERVICE_ENDPOINT'; -var CONFIG_ENDPOINT_NAME = 'ec2_metadata_service_endpoint'; - -var getEndpointConfigOptions = function() { - return { - environmentVariableSelector: function(env) { return env[ENV_ENDPOINT_NAME]; }, - configFileSelector: function(profile) { return profile[CONFIG_ENDPOINT_NAME]; }, - default: undefined, - }; -}; - -module.exports = getEndpointConfigOptions; - - -/***/ }), - -/***/ 3130: -/***/ ((module) => { - -var getEndpointMode = function() { - return { - IPv4: 'IPv4', - IPv6: 'IPv6', - }; -}; - -module.exports = getEndpointMode; - - -/***/ }), - -/***/ 70970: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var EndpointMode = __nccwpck_require__(3130)(); - -var ENV_ENDPOINT_MODE_NAME = 'AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE'; -var CONFIG_ENDPOINT_MODE_NAME = 'ec2_metadata_service_endpoint_mode'; - -var getEndpointModeConfigOptions = function() { - return { - environmentVariableSelector: function(env) { return env[ENV_ENDPOINT_MODE_NAME]; }, - configFileSelector: function(profile) { return profile[CONFIG_ENDPOINT_MODE_NAME]; }, - default: EndpointMode.IPv4, - }; -}; - -module.exports = getEndpointModeConfigOptions; - - -/***/ }), - -/***/ 12016: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -var Endpoint = __nccwpck_require__(50378)(); -var EndpointMode = __nccwpck_require__(3130)(); - -var ENDPOINT_CONFIG_OPTIONS = __nccwpck_require__(29706)(); -var ENDPOINT_MODE_CONFIG_OPTIONS = __nccwpck_require__(70970)(); - -var getMetadataServiceEndpoint = function() { - var endpoint = AWS.util.loadConfig(ENDPOINT_CONFIG_OPTIONS); - if (endpoint !== undefined) return endpoint; - - var endpointMode = AWS.util.loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS); - switch (endpointMode) { - case EndpointMode.IPv4: - return Endpoint.IPv4; - case EndpointMode.IPv6: - return Endpoint.IPv6; - default: - throw new Error('Unsupported endpoint mode: ' + endpointMode); - } -}; - -module.exports = getMetadataServiceEndpoint; - - -/***/ }), - -/***/ 38738: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var Collection = __nccwpck_require__(16920); -var Operation = __nccwpck_require__(3359); -var Shape = __nccwpck_require__(64147); -var Paginator = __nccwpck_require__(46605); -var ResourceWaiter = __nccwpck_require__(51301); -var metadata = __nccwpck_require__(15087); - -var util = __nccwpck_require__(65742); -var property = util.property; -var memoizedProperty = util.memoizedProperty; - -function Api(api, options) { - var self = this; - api = api || {}; - options = options || {}; - options.api = this; - - api.metadata = api.metadata || {}; - - var serviceIdentifier = options.serviceIdentifier; - delete options.serviceIdentifier; - - property(this, 'isApi', true, false); - property(this, 'apiVersion', api.metadata.apiVersion); - property(this, 'endpointPrefix', api.metadata.endpointPrefix); - property(this, 'signingName', api.metadata.signingName); - property(this, 'globalEndpoint', api.metadata.globalEndpoint); - property(this, 'signatureVersion', api.metadata.signatureVersion); - property(this, 'jsonVersion', api.metadata.jsonVersion); - property(this, 'targetPrefix', api.metadata.targetPrefix); - property(this, 'protocol', api.metadata.protocol); - property(this, 'timestampFormat', api.metadata.timestampFormat); - property(this, 'xmlNamespaceUri', api.metadata.xmlNamespace); - property(this, 'abbreviation', api.metadata.serviceAbbreviation); - property(this, 'fullName', api.metadata.serviceFullName); - property(this, 'serviceId', api.metadata.serviceId); - if (serviceIdentifier && metadata[serviceIdentifier]) { - property(this, 'xmlNoDefaultLists', metadata[serviceIdentifier].xmlNoDefaultLists, false); - } - - memoizedProperty(this, 'className', function() { - var name = api.metadata.serviceAbbreviation || api.metadata.serviceFullName; - if (!name) return null; - - name = name.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g, ''); - if (name === 'ElasticLoadBalancing') name = 'ELB'; - return name; - }); - - function addEndpointOperation(name, operation) { - if (operation.endpointoperation === true) { - property(self, 'endpointOperation', util.string.lowerFirst(name)); - } - if (operation.endpointdiscovery && !self.hasRequiredEndpointDiscovery) { - property( - self, - 'hasRequiredEndpointDiscovery', - operation.endpointdiscovery.required === true - ); - } - } - - property(this, 'operations', new Collection(api.operations, options, function(name, operation) { - return new Operation(name, operation, options); - }, util.string.lowerFirst, addEndpointOperation)); - - property(this, 'shapes', new Collection(api.shapes, options, function(name, shape) { - return Shape.create(shape, options); - })); - - property(this, 'paginators', new Collection(api.paginators, options, function(name, paginator) { - return new Paginator(name, paginator, options); - })); - - property(this, 'waiters', new Collection(api.waiters, options, function(name, waiter) { - return new ResourceWaiter(name, waiter, options); - }, util.string.lowerFirst)); - - if (options.documentation) { - property(this, 'documentation', api.documentation); - property(this, 'documentationUrl', api.documentationUrl); - } - property(this, 'awsQueryCompatible', api.metadata.awsQueryCompatible); -} - -/** - * @api private - */ -module.exports = Api; - - -/***/ }), - -/***/ 16920: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var memoizedProperty = (__nccwpck_require__(65742).memoizedProperty); - -function memoize(name, value, factory, nameTr) { - memoizedProperty(this, nameTr(name), function() { - return factory(name, value); - }); -} - -function Collection(iterable, options, factory, nameTr, callback) { - nameTr = nameTr || String; - var self = this; - - for (var id in iterable) { - if (Object.prototype.hasOwnProperty.call(iterable, id)) { - memoize.call(self, id, iterable[id], factory, nameTr); - if (callback) callback(id, iterable[id]); - } - } -} - -/** - * @api private - */ -module.exports = Collection; - - -/***/ }), - -/***/ 3359: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var Shape = __nccwpck_require__(64147); - -var util = __nccwpck_require__(65742); -var property = util.property; -var memoizedProperty = util.memoizedProperty; - -function Operation(name, operation, options) { - var self = this; - options = options || {}; - - property(this, 'name', operation.name || name); - property(this, 'api', options.api, false); - - operation.http = operation.http || {}; - property(this, 'endpoint', operation.endpoint); - property(this, 'httpMethod', operation.http.method || 'POST'); - property(this, 'httpPath', operation.http.requestUri || '/'); - property(this, 'authtype', operation.authtype || ''); - property( - this, - 'endpointDiscoveryRequired', - operation.endpointdiscovery ? - (operation.endpointdiscovery.required ? 'REQUIRED' : 'OPTIONAL') : - 'NULL' - ); - - // httpChecksum replaces usage of httpChecksumRequired, but some APIs - // (s3control) still uses old trait. - var httpChecksumRequired = operation.httpChecksumRequired - || (operation.httpChecksum && operation.httpChecksum.requestChecksumRequired); - property(this, 'httpChecksumRequired', httpChecksumRequired, false); - - memoizedProperty(this, 'input', function() { - if (!operation.input) { - return new Shape.create({type: 'structure'}, options); - } - return Shape.create(operation.input, options); - }); - - memoizedProperty(this, 'output', function() { - if (!operation.output) { - return new Shape.create({type: 'structure'}, options); - } - return Shape.create(operation.output, options); - }); - - memoizedProperty(this, 'errors', function() { - var list = []; - if (!operation.errors) return null; - - for (var i = 0; i < operation.errors.length; i++) { - list.push(Shape.create(operation.errors[i], options)); - } - - return list; - }); - - memoizedProperty(this, 'paginator', function() { - return options.api.paginators[name]; - }); - - if (options.documentation) { - property(this, 'documentation', operation.documentation); - property(this, 'documentationUrl', operation.documentationUrl); - } - - // idempotentMembers only tracks top-level input shapes - memoizedProperty(this, 'idempotentMembers', function() { - var idempotentMembers = []; - var input = self.input; - var members = input.members; - if (!input.members) { - return idempotentMembers; - } - for (var name in members) { - if (!members.hasOwnProperty(name)) { - continue; - } - if (members[name].isIdempotent === true) { - idempotentMembers.push(name); - } - } - return idempotentMembers; - }); - - memoizedProperty(this, 'hasEventOutput', function() { - var output = self.output; - return hasEventStream(output); - }); -} - -function hasEventStream(topLevelShape) { - var members = topLevelShape.members; - var payload = topLevelShape.payload; - - if (!topLevelShape.members) { - return false; - } - - if (payload) { - var payloadMember = members[payload]; - return payloadMember.isEventStream; - } - - // check if any member is an event stream - for (var name in members) { - if (!members.hasOwnProperty(name)) { - if (members[name].isEventStream === true) { - return true; - } - } - } - return false; -} - -/** - * @api private - */ -module.exports = Operation; - - -/***/ }), - -/***/ 46605: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var property = (__nccwpck_require__(65742).property); - -function Paginator(name, paginator) { - property(this, 'inputToken', paginator.input_token); - property(this, 'limitKey', paginator.limit_key); - property(this, 'moreResults', paginator.more_results); - property(this, 'outputToken', paginator.output_token); - property(this, 'resultKey', paginator.result_key); -} - -/** - * @api private - */ -module.exports = Paginator; - - -/***/ }), - -/***/ 51301: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = __nccwpck_require__(65742); -var property = util.property; - -function ResourceWaiter(name, waiter, options) { - options = options || {}; - property(this, 'name', name); - property(this, 'api', options.api, false); - - if (waiter.operation) { - property(this, 'operation', util.string.lowerFirst(waiter.operation)); - } - - var self = this; - var keys = [ - 'type', - 'description', - 'delay', - 'maxAttempts', - 'acceptors' - ]; - - keys.forEach(function(key) { - var value = waiter[key]; - if (value) { - property(self, key, value); - } - }); -} - -/** - * @api private - */ -module.exports = ResourceWaiter; - - -/***/ }), - -/***/ 64147: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var Collection = __nccwpck_require__(16920); - -var util = __nccwpck_require__(65742); - -function property(obj, name, value) { - if (value !== null && value !== undefined) { - util.property.apply(this, arguments); - } -} - -function memoizedProperty(obj, name) { - if (!obj.constructor.prototype[name]) { - util.memoizedProperty.apply(this, arguments); - } -} - -function Shape(shape, options, memberName) { - options = options || {}; - - property(this, 'shape', shape.shape); - property(this, 'api', options.api, false); - property(this, 'type', shape.type); - property(this, 'enum', shape.enum); - property(this, 'min', shape.min); - property(this, 'max', shape.max); - property(this, 'pattern', shape.pattern); - property(this, 'location', shape.location || this.location || 'body'); - property(this, 'name', this.name || shape.xmlName || shape.queryName || - shape.locationName || memberName); - property(this, 'isStreaming', shape.streaming || this.isStreaming || false); - property(this, 'requiresLength', shape.requiresLength, false); - property(this, 'isComposite', shape.isComposite || false); - property(this, 'isShape', true, false); - property(this, 'isQueryName', Boolean(shape.queryName), false); - property(this, 'isLocationName', Boolean(shape.locationName), false); - property(this, 'isIdempotent', shape.idempotencyToken === true); - property(this, 'isJsonValue', shape.jsonvalue === true); - property(this, 'isSensitive', shape.sensitive === true || shape.prototype && shape.prototype.sensitive === true); - property(this, 'isEventStream', Boolean(shape.eventstream), false); - property(this, 'isEvent', Boolean(shape.event), false); - property(this, 'isEventPayload', Boolean(shape.eventpayload), false); - property(this, 'isEventHeader', Boolean(shape.eventheader), false); - property(this, 'isTimestampFormatSet', Boolean(shape.timestampFormat) || shape.prototype && shape.prototype.isTimestampFormatSet === true, false); - property(this, 'endpointDiscoveryId', Boolean(shape.endpointdiscoveryid), false); - property(this, 'hostLabel', Boolean(shape.hostLabel), false); - - if (options.documentation) { - property(this, 'documentation', shape.documentation); - property(this, 'documentationUrl', shape.documentationUrl); - } - - if (shape.xmlAttribute) { - property(this, 'isXmlAttribute', shape.xmlAttribute || false); - } - - // type conversion and parsing - property(this, 'defaultValue', null); - this.toWireFormat = function(value) { - if (value === null || value === undefined) return ''; - return value; - }; - this.toType = function(value) { return value; }; -} - -/** - * @api private - */ -Shape.normalizedTypes = { - character: 'string', - double: 'float', - long: 'integer', - short: 'integer', - biginteger: 'integer', - bigdecimal: 'float', - blob: 'binary' -}; - -/** - * @api private - */ -Shape.types = { - 'structure': StructureShape, - 'list': ListShape, - 'map': MapShape, - 'boolean': BooleanShape, - 'timestamp': TimestampShape, - 'float': FloatShape, - 'integer': IntegerShape, - 'string': StringShape, - 'base64': Base64Shape, - 'binary': BinaryShape -}; - -Shape.resolve = function resolve(shape, options) { - if (shape.shape) { - var refShape = options.api.shapes[shape.shape]; - if (!refShape) { - throw new Error('Cannot find shape reference: ' + shape.shape); - } - - return refShape; - } else { - return null; - } -}; - -Shape.create = function create(shape, options, memberName) { - if (shape.isShape) return shape; - - var refShape = Shape.resolve(shape, options); - if (refShape) { - var filteredKeys = Object.keys(shape); - if (!options.documentation) { - filteredKeys = filteredKeys.filter(function(name) { - return !name.match(/documentation/); - }); - } - - // create an inline shape with extra members - var InlineShape = function() { - refShape.constructor.call(this, shape, options, memberName); - }; - InlineShape.prototype = refShape; - return new InlineShape(); - } else { - // set type if not set - if (!shape.type) { - if (shape.members) shape.type = 'structure'; - else if (shape.member) shape.type = 'list'; - else if (shape.key) shape.type = 'map'; - else shape.type = 'string'; - } - - // normalize types - var origType = shape.type; - if (Shape.normalizedTypes[shape.type]) { - shape.type = Shape.normalizedTypes[shape.type]; - } - - if (Shape.types[shape.type]) { - return new Shape.types[shape.type](shape, options, memberName); - } else { - throw new Error('Unrecognized shape type: ' + origType); - } - } -}; - -function CompositeShape(shape) { - Shape.apply(this, arguments); - property(this, 'isComposite', true); - - if (shape.flattened) { - property(this, 'flattened', shape.flattened || false); - } -} - -function StructureShape(shape, options) { - var self = this; - var requiredMap = null, firstInit = !this.isShape; - - CompositeShape.apply(this, arguments); - - if (firstInit) { - property(this, 'defaultValue', function() { return {}; }); - property(this, 'members', {}); - property(this, 'memberNames', []); - property(this, 'required', []); - property(this, 'isRequired', function() { return false; }); - property(this, 'isDocument', Boolean(shape.document)); - } - - if (shape.members) { - property(this, 'members', new Collection(shape.members, options, function(name, member) { - return Shape.create(member, options, name); - })); - memoizedProperty(this, 'memberNames', function() { - return shape.xmlOrder || Object.keys(shape.members); - }); - - if (shape.event) { - memoizedProperty(this, 'eventPayloadMemberName', function() { - var members = self.members; - var memberNames = self.memberNames; - // iterate over members to find ones that are event payloads - for (var i = 0, iLen = memberNames.length; i < iLen; i++) { - if (members[memberNames[i]].isEventPayload) { - return memberNames[i]; - } - } - }); - - memoizedProperty(this, 'eventHeaderMemberNames', function() { - var members = self.members; - var memberNames = self.memberNames; - var eventHeaderMemberNames = []; - // iterate over members to find ones that are event headers - for (var i = 0, iLen = memberNames.length; i < iLen; i++) { - if (members[memberNames[i]].isEventHeader) { - eventHeaderMemberNames.push(memberNames[i]); - } - } - return eventHeaderMemberNames; - }); - } - } - - if (shape.required) { - property(this, 'required', shape.required); - property(this, 'isRequired', function(name) { - if (!requiredMap) { - requiredMap = {}; - for (var i = 0; i < shape.required.length; i++) { - requiredMap[shape.required[i]] = true; - } - } - - return requiredMap[name]; - }, false, true); - } - - property(this, 'resultWrapper', shape.resultWrapper || null); - - if (shape.payload) { - property(this, 'payload', shape.payload); - } - - if (typeof shape.xmlNamespace === 'string') { - property(this, 'xmlNamespaceUri', shape.xmlNamespace); - } else if (typeof shape.xmlNamespace === 'object') { - property(this, 'xmlNamespacePrefix', shape.xmlNamespace.prefix); - property(this, 'xmlNamespaceUri', shape.xmlNamespace.uri); - } -} - -function ListShape(shape, options) { - var self = this, firstInit = !this.isShape; - CompositeShape.apply(this, arguments); - - if (firstInit) { - property(this, 'defaultValue', function() { return []; }); - } - - if (shape.member) { - memoizedProperty(this, 'member', function() { - return Shape.create(shape.member, options); - }); - } - - if (this.flattened) { - var oldName = this.name; - memoizedProperty(this, 'name', function() { - return self.member.name || oldName; - }); - } -} - -function MapShape(shape, options) { - var firstInit = !this.isShape; - CompositeShape.apply(this, arguments); - - if (firstInit) { - property(this, 'defaultValue', function() { return {}; }); - property(this, 'key', Shape.create({type: 'string'}, options)); - property(this, 'value', Shape.create({type: 'string'}, options)); - } - - if (shape.key) { - memoizedProperty(this, 'key', function() { - return Shape.create(shape.key, options); - }); - } - if (shape.value) { - memoizedProperty(this, 'value', function() { - return Shape.create(shape.value, options); - }); - } -} - -function TimestampShape(shape) { - var self = this; - Shape.apply(this, arguments); - - if (shape.timestampFormat) { - property(this, 'timestampFormat', shape.timestampFormat); - } else if (self.isTimestampFormatSet && this.timestampFormat) { - property(this, 'timestampFormat', this.timestampFormat); - } else if (this.location === 'header') { - property(this, 'timestampFormat', 'rfc822'); - } else if (this.location === 'querystring') { - property(this, 'timestampFormat', 'iso8601'); - } else if (this.api) { - switch (this.api.protocol) { - case 'json': - case 'rest-json': - property(this, 'timestampFormat', 'unixTimestamp'); - break; - case 'rest-xml': - case 'query': - case 'ec2': - property(this, 'timestampFormat', 'iso8601'); - break; - } - } - - this.toType = function(value) { - if (value === null || value === undefined) return null; - if (typeof value.toUTCString === 'function') return value; - return typeof value === 'string' || typeof value === 'number' ? - util.date.parseTimestamp(value) : null; - }; - - this.toWireFormat = function(value) { - return util.date.format(value, self.timestampFormat); - }; -} - -function StringShape() { - Shape.apply(this, arguments); - - var nullLessProtocols = ['rest-xml', 'query', 'ec2']; - this.toType = function(value) { - value = this.api && nullLessProtocols.indexOf(this.api.protocol) > -1 ? - value || '' : value; - if (this.isJsonValue) { - return JSON.parse(value); - } - - return value && typeof value.toString === 'function' ? - value.toString() : value; - }; - - this.toWireFormat = function(value) { - return this.isJsonValue ? JSON.stringify(value) : value; - }; -} - -function FloatShape() { - Shape.apply(this, arguments); - - this.toType = function(value) { - if (value === null || value === undefined) return null; - return parseFloat(value); - }; - this.toWireFormat = this.toType; -} - -function IntegerShape() { - Shape.apply(this, arguments); - - this.toType = function(value) { - if (value === null || value === undefined) return null; - return parseInt(value, 10); - }; - this.toWireFormat = this.toType; -} - -function BinaryShape() { - Shape.apply(this, arguments); - this.toType = function(value) { - var buf = util.base64.decode(value); - if (this.isSensitive && util.isNode() && typeof util.Buffer.alloc === 'function') { - /* Node.js can create a Buffer that is not isolated. - * i.e. buf.byteLength !== buf.buffer.byteLength - * This means that the sensitive data is accessible to anyone with access to buf.buffer. - * If this is the node shared Buffer, then other code within this process _could_ find this secret. - * Copy sensitive data to an isolated Buffer and zero the sensitive data. - * While this is safe to do here, copying this code somewhere else may produce unexpected results. - */ - var secureBuf = util.Buffer.alloc(buf.length, buf); - buf.fill(0); - buf = secureBuf; - } - return buf; - }; - this.toWireFormat = util.base64.encode; -} - -function Base64Shape() { - BinaryShape.apply(this, arguments); -} - -function BooleanShape() { - Shape.apply(this, arguments); - - this.toType = function(value) { - if (typeof value === 'boolean') return value; - if (value === null || value === undefined) return null; - return value === 'true'; - }; -} - -/** - * @api private - */ -Shape.shapes = { - StructureShape: StructureShape, - ListShape: ListShape, - MapShape: MapShape, - StringShape: StringShape, - BooleanShape: BooleanShape, - Base64Shape: Base64Shape -}; - -/** - * @api private - */ -module.exports = Shape; - - -/***/ }), - -/***/ 84902: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = __nccwpck_require__(65742); - -var region_utils = __nccwpck_require__(53412); -var isFipsRegion = region_utils.isFipsRegion; -var getRealRegion = region_utils.getRealRegion; - -util.isBrowser = function() { return false; }; -util.isNode = function() { return true; }; - -// node.js specific modules -util.crypto.lib = __nccwpck_require__(76982); -util.Buffer = (__nccwpck_require__(20181).Buffer); -util.domain = __nccwpck_require__(73167); -util.stream = __nccwpck_require__(2203); -util.url = __nccwpck_require__(87016); -util.querystring = __nccwpck_require__(83480); -util.environment = 'nodejs'; -util.createEventStream = util.stream.Readable ? - (__nccwpck_require__(26575).createEventStream) : (__nccwpck_require__(91266).createEventStream); -util.realClock = __nccwpck_require__(95463); -util.clientSideMonitoring = { - Publisher: (__nccwpck_require__(78335).Publisher), - configProvider: __nccwpck_require__(31281), -}; -util.iniLoader = (__nccwpck_require__(6955)/* .iniLoader */ .s); -util.getSystemErrorName = (__nccwpck_require__(39023).getSystemErrorName); - -util.loadConfig = function(options) { - var envValue = options.environmentVariableSelector(process.env); - if (envValue !== undefined) { - return envValue; - } - - var configFile = {}; - try { - configFile = util.iniLoader ? util.iniLoader.loadFrom({ - isConfig: true, - filename: process.env[util.sharedConfigFileEnv] - }) : {}; - } catch (e) {} - var sharedFileConfig = configFile[ - process.env.AWS_PROFILE || util.defaultProfile - ] || {}; - var configValue = options.configFileSelector(sharedFileConfig); - if (configValue !== undefined) { - return configValue; - } - - if (typeof options.default === 'function') { - return options.default(); - } - return options.default; -}; - -var AWS; - -/** - * @api private - */ -module.exports = AWS = __nccwpck_require__(60085); - -__nccwpck_require__(92118); -__nccwpck_require__(30364); -__nccwpck_require__(8031); -__nccwpck_require__(13761); -__nccwpck_require__(71685); -__nccwpck_require__(12298); -__nccwpck_require__(40669); -__nccwpck_require__(51685); - -// Load the xml2js XML parser -AWS.XML.Parser = __nccwpck_require__(26236); - -// Load Node HTTP client -__nccwpck_require__(10905); - -__nccwpck_require__(48149); - -// Load custom credential providers -__nccwpck_require__(15820); -__nccwpck_require__(98414); -__nccwpck_require__(15950); -__nccwpck_require__(91593); -__nccwpck_require__(91269); -__nccwpck_require__(82550); -__nccwpck_require__(95703); -__nccwpck_require__(51685); -__nccwpck_require__(95971); - -// Setup default providers for credentials chain -// If this changes, please update documentation for -// AWS.CredentialProviderChain.defaultProviders in -// credentials/credential_provider_chain.js -AWS.CredentialProviderChain.defaultProviders = [ - function () { return new AWS.EnvironmentCredentials('AWS'); }, - function () { return new AWS.EnvironmentCredentials('AMAZON'); }, - function () { return new AWS.SsoCredentials(); }, - function () { return new AWS.SharedIniFileCredentials(); }, - function () { return new AWS.ECSCredentials(); }, - function () { return new AWS.ProcessCredentials(); }, - function () { return new AWS.TokenFileWebIdentityCredentials(); }, - function () { return new AWS.EC2MetadataCredentials(); } -]; - -// Load custom token providers -__nccwpck_require__(64065); -__nccwpck_require__(51893); -__nccwpck_require__(85439); - -// Setup default providers for token chain -// If this changes, please update documentation for -// AWS.TokenProviderChain.defaultProviders in -// token/token_provider_chain.js -AWS.TokenProviderChain.defaultProviders = [ - function () { return new AWS.SSOTokenProvider(); }, -]; - -var getRegion = function() { - var env = process.env; - var region = env.AWS_REGION || env.AMAZON_REGION; - if (env[AWS.util.configOptInEnv]) { - var toCheck = [ - {filename: env[AWS.util.sharedCredentialsFileEnv]}, - {isConfig: true, filename: env[AWS.util.sharedConfigFileEnv]} - ]; - var iniLoader = AWS.util.iniLoader; - while (!region && toCheck.length) { - var configFile = {}; - var fileInfo = toCheck.shift(); - try { - configFile = iniLoader.loadFrom(fileInfo); - } catch (err) { - if (fileInfo.isConfig) throw err; - } - var profile = configFile[env.AWS_PROFILE || AWS.util.defaultProfile]; - region = profile && profile.region; - } - } - return region; -}; - -var getBooleanValue = function(value) { - return value === 'true' ? true: value === 'false' ? false: undefined; -}; - -var USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: function(env) { - return getBooleanValue(env['AWS_USE_FIPS_ENDPOINT']); - }, - configFileSelector: function(profile) { - return getBooleanValue(profile['use_fips_endpoint']); - }, - default: false, -}; - -var USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: function(env) { - return getBooleanValue(env['AWS_USE_DUALSTACK_ENDPOINT']); - }, - configFileSelector: function(profile) { - return getBooleanValue(profile['use_dualstack_endpoint']); - }, - default: false, -}; - -// Update configuration keys -AWS.util.update(AWS.Config.prototype.keys, { - credentials: function () { - var credentials = null; - new AWS.CredentialProviderChain([ - function () { return new AWS.EnvironmentCredentials('AWS'); }, - function () { return new AWS.EnvironmentCredentials('AMAZON'); }, - function () { return new AWS.SharedIniFileCredentials({ disableAssumeRole: true }); } - ]).resolve(function(err, creds) { - if (!err) credentials = creds; - }); - return credentials; - }, - credentialProvider: function() { - return new AWS.CredentialProviderChain(); - }, - logger: function () { - return process.env.AWSJS_DEBUG ? console : null; - }, - region: function() { - var region = getRegion(); - return region ? getRealRegion(region): undefined; - }, - tokenProvider: function() { - return new AWS.TokenProviderChain(); - }, - useFipsEndpoint: function() { - var region = getRegion(); - return isFipsRegion(region) - ? true - : util.loadConfig(USE_FIPS_ENDPOINT_CONFIG_OPTIONS); - }, - useDualstackEndpoint: function() { - return util.loadConfig(USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS); - } -}); - -// Reset configuration -AWS.config = new AWS.Config(); - - -/***/ }), - -/***/ 37660: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -/** - * @api private - */ -AWS.ParamValidator = AWS.util.inherit({ - /** - * Create a new validator object. - * - * @param validation [Boolean|map] whether input parameters should be - * validated against the operation description before sending the - * request. Pass a map to enable any of the following specific - * validation features: - * - * * **min** [Boolean] — Validates that a value meets the min - * constraint. This is enabled by default when paramValidation is set - * to `true`. - * * **max** [Boolean] — Validates that a value meets the max - * constraint. - * * **pattern** [Boolean] — Validates that a string value matches a - * regular expression. - * * **enum** [Boolean] — Validates that a string value matches one - * of the allowable enum values. - */ - constructor: function ParamValidator(validation) { - if (validation === true || validation === undefined) { - validation = {'min': true}; - } - this.validation = validation; - }, - - validate: function validate(shape, params, context) { - this.errors = []; - this.validateMember(shape, params || {}, context || 'params'); - - if (this.errors.length > 1) { - var msg = this.errors.join('\n* '); - msg = 'There were ' + this.errors.length + - ' validation errors:\n* ' + msg; - throw AWS.util.error(new Error(msg), - {code: 'MultipleValidationErrors', errors: this.errors}); - } else if (this.errors.length === 1) { - throw this.errors[0]; - } else { - return true; - } - }, - - fail: function fail(code, message) { - this.errors.push(AWS.util.error(new Error(message), {code: code})); - }, - - validateStructure: function validateStructure(shape, params, context) { - if (shape.isDocument) return true; - - this.validateType(params, context, ['object'], 'structure'); - var paramName; - for (var i = 0; shape.required && i < shape.required.length; i++) { - paramName = shape.required[i]; - var value = params[paramName]; - if (value === undefined || value === null) { - this.fail('MissingRequiredParameter', - 'Missing required key \'' + paramName + '\' in ' + context); - } - } - - // validate hash members - for (paramName in params) { - if (!Object.prototype.hasOwnProperty.call(params, paramName)) continue; - - var paramValue = params[paramName], - memberShape = shape.members[paramName]; - - if (memberShape !== undefined) { - var memberContext = [context, paramName].join('.'); - this.validateMember(memberShape, paramValue, memberContext); - } else if (paramValue !== undefined && paramValue !== null) { - this.fail('UnexpectedParameter', - 'Unexpected key \'' + paramName + '\' found in ' + context); - } - } - - return true; - }, - - validateMember: function validateMember(shape, param, context) { - switch (shape.type) { - case 'structure': - return this.validateStructure(shape, param, context); - case 'list': - return this.validateList(shape, param, context); - case 'map': - return this.validateMap(shape, param, context); - default: - return this.validateScalar(shape, param, context); - } - }, - - validateList: function validateList(shape, params, context) { - if (this.validateType(params, context, [Array])) { - this.validateRange(shape, params.length, context, 'list member count'); - // validate array members - for (var i = 0; i < params.length; i++) { - this.validateMember(shape.member, params[i], context + '[' + i + ']'); - } - } - }, - - validateMap: function validateMap(shape, params, context) { - if (this.validateType(params, context, ['object'], 'map')) { - // Build up a count of map members to validate range traits. - var mapCount = 0; - for (var param in params) { - if (!Object.prototype.hasOwnProperty.call(params, param)) continue; - // Validate any map key trait constraints - this.validateMember(shape.key, param, - context + '[key=\'' + param + '\']'); - this.validateMember(shape.value, params[param], - context + '[\'' + param + '\']'); - mapCount++; - } - this.validateRange(shape, mapCount, context, 'map member count'); - } - }, - - validateScalar: function validateScalar(shape, value, context) { - switch (shape.type) { - case null: - case undefined: - case 'string': - return this.validateString(shape, value, context); - case 'base64': - case 'binary': - return this.validatePayload(value, context); - case 'integer': - case 'float': - return this.validateNumber(shape, value, context); - case 'boolean': - return this.validateType(value, context, ['boolean']); - case 'timestamp': - return this.validateType(value, context, [Date, - /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/, 'number'], - 'Date object, ISO-8601 string, or a UNIX timestamp'); - default: - return this.fail('UnkownType', 'Unhandled type ' + - shape.type + ' for ' + context); - } - }, - - validateString: function validateString(shape, value, context) { - var validTypes = ['string']; - if (shape.isJsonValue) { - validTypes = validTypes.concat(['number', 'object', 'boolean']); - } - if (value !== null && this.validateType(value, context, validTypes)) { - this.validateEnum(shape, value, context); - this.validateRange(shape, value.length, context, 'string length'); - this.validatePattern(shape, value, context); - this.validateUri(shape, value, context); - } - }, - - validateUri: function validateUri(shape, value, context) { - if (shape['location'] === 'uri') { - if (value.length === 0) { - this.fail('UriParameterError', 'Expected uri parameter to have length >= 1,' - + ' but found "' + value +'" for ' + context); - } - } - }, - - validatePattern: function validatePattern(shape, value, context) { - if (this.validation['pattern'] && shape['pattern'] !== undefined) { - if (!(new RegExp(shape['pattern'])).test(value)) { - this.fail('PatternMatchError', 'Provided value "' + value + '" ' - + 'does not match regex pattern /' + shape['pattern'] + '/ for ' - + context); - } - } - }, - - validateRange: function validateRange(shape, value, context, descriptor) { - if (this.validation['min']) { - if (shape['min'] !== undefined && value < shape['min']) { - this.fail('MinRangeError', 'Expected ' + descriptor + ' >= ' - + shape['min'] + ', but found ' + value + ' for ' + context); - } - } - if (this.validation['max']) { - if (shape['max'] !== undefined && value > shape['max']) { - this.fail('MaxRangeError', 'Expected ' + descriptor + ' <= ' - + shape['max'] + ', but found ' + value + ' for ' + context); - } - } - }, - - validateEnum: function validateRange(shape, value, context) { - if (this.validation['enum'] && shape['enum'] !== undefined) { - // Fail if the string value is not present in the enum list - if (shape['enum'].indexOf(value) === -1) { - this.fail('EnumError', 'Found string value of ' + value + ', but ' - + 'expected ' + shape['enum'].join('|') + ' for ' + context); - } - } - }, - - validateType: function validateType(value, context, acceptedTypes, type) { - // We will not log an error for null or undefined, but we will return - // false so that callers know that the expected type was not strictly met. - if (value === null || value === undefined) return false; - - var foundInvalidType = false; - for (var i = 0; i < acceptedTypes.length; i++) { - if (typeof acceptedTypes[i] === 'string') { - if (typeof value === acceptedTypes[i]) return true; - } else if (acceptedTypes[i] instanceof RegExp) { - if ((value || '').toString().match(acceptedTypes[i])) return true; - } else { - if (value instanceof acceptedTypes[i]) return true; - if (AWS.util.isType(value, acceptedTypes[i])) return true; - if (!type && !foundInvalidType) acceptedTypes = acceptedTypes.slice(); - acceptedTypes[i] = AWS.util.typeName(acceptedTypes[i]); - } - foundInvalidType = true; - } - - var acceptedType = type; - if (!acceptedType) { - acceptedType = acceptedTypes.join(', ').replace(/,([^,]+)$/, ', or$1'); - } - - var vowel = acceptedType.match(/^[aeiou]/i) ? 'n' : ''; - this.fail('InvalidParameterType', 'Expected ' + context + ' to be a' + - vowel + ' ' + acceptedType); - return false; - }, - - validateNumber: function validateNumber(shape, value, context) { - if (value === null || value === undefined) return; - if (typeof value === 'string') { - var castedValue = parseFloat(value); - if (castedValue.toString() === value) value = castedValue; - } - if (this.validateType(value, context, ['number'])) { - this.validateRange(shape, value, context, 'numeric value'); - } - }, - - validatePayload: function validatePayload(value, context) { - if (value === null || value === undefined) return; - if (typeof value === 'string') return; - if (value && typeof value.byteLength === 'number') return; // typed arrays - if (AWS.util.isNode()) { // special check for buffer/stream in Node.js - var Stream = AWS.util.stream.Stream; - if (AWS.util.Buffer.isBuffer(value) || value instanceof Stream) return; - } else { - if (typeof Blob !== void 0 && value instanceof Blob) return; - } - - var types = ['Buffer', 'Stream', 'File', 'Blob', 'ArrayBuffer', 'DataView']; - if (value) { - for (var i = 0; i < types.length; i++) { - if (AWS.util.isType(value, types[i])) return; - if (AWS.util.typeName(value.constructor) === types[i]) return; - } - } - - this.fail('InvalidParameterType', 'Expected ' + context + ' to be a ' + - 'string, Buffer, Stream, Blob, or typed array object'); - } -}); - - -/***/ }), - -/***/ 16860: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var rest = AWS.Protocol.Rest; - -/** - * A presigner object can be used to generate presigned urls for the Polly service. - */ -AWS.Polly.Presigner = AWS.util.inherit({ - /** - * Creates a presigner object with a set of configuration options. - * - * @option options params [map] An optional map of parameters to bind to every - * request sent by this service object. - * @option options service [AWS.Polly] An optional pre-configured instance - * of the AWS.Polly service object to use for requests. The object may - * bound parameters used by the presigner. - * @see AWS.Polly.constructor - */ - constructor: function Signer(options) { - options = options || {}; - this.options = options; - this.service = options.service; - this.bindServiceObject(options); - this._operations = {}; - }, - - /** - * @api private - */ - bindServiceObject: function bindServiceObject(options) { - options = options || {}; - if (!this.service) { - this.service = new AWS.Polly(options); - } else { - var config = AWS.util.copy(this.service.config); - this.service = new this.service.constructor.__super__(config); - this.service.config.params = AWS.util.merge(this.service.config.params || {}, options.params); - } - }, - - /** - * @api private - */ - modifyInputMembers: function modifyInputMembers(input) { - // make copies of the input so we don't overwrite the api - // need to be careful to copy anything we access/modify - var modifiedInput = AWS.util.copy(input); - modifiedInput.members = AWS.util.copy(input.members); - AWS.util.each(input.members, function(name, member) { - modifiedInput.members[name] = AWS.util.copy(member); - // update location and locationName - if (!member.location || member.location === 'body') { - modifiedInput.members[name].location = 'querystring'; - modifiedInput.members[name].locationName = name; - } - }); - return modifiedInput; - }, - - /** - * @api private - */ - convertPostToGet: function convertPostToGet(req) { - // convert method - req.httpRequest.method = 'GET'; - - var operation = req.service.api.operations[req.operation]; - // get cached operation input first - var input = this._operations[req.operation]; - if (!input) { - // modify the original input - this._operations[req.operation] = input = this.modifyInputMembers(operation.input); - } - - var uri = rest.generateURI(req.httpRequest.endpoint.path, operation.httpPath, input, req.params); - - req.httpRequest.path = uri; - req.httpRequest.body = ''; - - // don't need these headers on a GET request - delete req.httpRequest.headers['Content-Length']; - delete req.httpRequest.headers['Content-Type']; - }, - - /** - * @overload getSynthesizeSpeechUrl(params = {}, [expires = 3600], [callback]) - * Generate a presigned url for {AWS.Polly.synthesizeSpeech}. - * @note You must ensure that you have static or previously resolved - * credentials if you call this method synchronously (with no callback), - * otherwise it may not properly sign the request. If you cannot guarantee - * this (you are using an asynchronous credential provider, i.e., EC2 - * IAM roles), you should always call this method with an asynchronous - * callback. - * @param params [map] parameters to pass to the operation. See the {AWS.Polly.synthesizeSpeech} - * operation for the expected operation parameters. - * @param expires [Integer] (3600) the number of seconds to expire the pre-signed URL operation in. - * Defaults to 1 hour. - * @return [string] if called synchronously (with no callback), returns the signed URL. - * @return [null] nothing is returned if a callback is provided. - * @callback callback function (err, url) - * If a callback is supplied, it is called when a signed URL has been generated. - * @param err [Error] the error object returned from the presigner. - * @param url [String] the signed URL. - * @see AWS.Polly.synthesizeSpeech - */ - getSynthesizeSpeechUrl: function getSynthesizeSpeechUrl(params, expires, callback) { - var self = this; - var request = this.service.makeRequest('synthesizeSpeech', params); - // remove existing build listeners - request.removeAllListeners('build'); - request.on('build', function(req) { - self.convertPostToGet(req); - }); - return request.presign(expires, callback); - } -}); - - -/***/ }), - -/***/ 35644: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = __nccwpck_require__(65742); -var AWS = __nccwpck_require__(60085); - -/** - * Prepend prefix defined by API model to endpoint that's already - * constructed. This feature does not apply to operations using - * endpoint discovery and can be disabled. - * @api private - */ -function populateHostPrefix(request) { - var enabled = request.service.config.hostPrefixEnabled; - if (!enabled) return request; - var operationModel = request.service.api.operations[request.operation]; - //don't marshal host prefix when operation has endpoint discovery traits - if (hasEndpointDiscover(request)) return request; - if (operationModel.endpoint && operationModel.endpoint.hostPrefix) { - var hostPrefixNotation = operationModel.endpoint.hostPrefix; - var hostPrefix = expandHostPrefix(hostPrefixNotation, request.params, operationModel.input); - prependEndpointPrefix(request.httpRequest.endpoint, hostPrefix); - validateHostname(request.httpRequest.endpoint.hostname); - } - return request; -} - -/** - * @api private - */ -function hasEndpointDiscover(request) { - var api = request.service.api; - var operationModel = api.operations[request.operation]; - var isEndpointOperation = api.endpointOperation && (api.endpointOperation === util.string.lowerFirst(operationModel.name)); - return (operationModel.endpointDiscoveryRequired !== 'NULL' || isEndpointOperation === true); -} - -/** - * @api private - */ -function expandHostPrefix(hostPrefixNotation, params, shape) { - util.each(shape.members, function(name, member) { - if (member.hostLabel === true) { - if (typeof params[name] !== 'string' || params[name] === '') { - throw util.error(new Error(), { - message: 'Parameter ' + name + ' should be a non-empty string.', - code: 'InvalidParameter' - }); - } - var regex = new RegExp('\\{' + name + '\\}', 'g'); - hostPrefixNotation = hostPrefixNotation.replace(regex, params[name]); - } - }); - return hostPrefixNotation; -} - -/** - * @api private - */ -function prependEndpointPrefix(endpoint, prefix) { - if (endpoint.host) { - endpoint.host = prefix + endpoint.host; - } - if (endpoint.hostname) { - endpoint.hostname = prefix + endpoint.hostname; - } -} - -/** - * @api private - */ -function validateHostname(hostname) { - var labels = hostname.split('.'); - //Reference: https://tools.ietf.org/html/rfc1123#section-2 - var hostPattern = /^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/; - util.arrayEach(labels, function(label) { - if (!label.length || label.length < 1 || label.length > 63) { - throw util.error(new Error(), { - code: 'ValidationError', - message: 'Hostname label length should be between 1 to 63 characters, inclusive.' - }); - } - if (!hostPattern.test(label)) { - throw AWS.util.error(new Error(), - {code: 'ValidationError', message: label + ' is not hostname compatible.'}); - } - }); -} - -module.exports = { - populateHostPrefix: populateHostPrefix -}; - - -/***/ }), - -/***/ 75507: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = __nccwpck_require__(65742); -var JsonBuilder = __nccwpck_require__(84516); -var JsonParser = __nccwpck_require__(36964); -var populateHostPrefix = (__nccwpck_require__(35644).populateHostPrefix); - -function buildRequest(req) { - var httpRequest = req.httpRequest; - var api = req.service.api; - var target = api.targetPrefix + '.' + api.operations[req.operation].name; - var version = api.jsonVersion || '1.0'; - var input = api.operations[req.operation].input; - var builder = new JsonBuilder(); - - if (version === 1) version = '1.0'; - - if (api.awsQueryCompatible) { - if (!httpRequest.params) { - httpRequest.params = {}; - } - // because Query protocol does this. - Object.assign(httpRequest.params, req.params); - } - - httpRequest.body = builder.build(req.params || {}, input); - httpRequest.headers['Content-Type'] = 'application/x-amz-json-' + version; - httpRequest.headers['X-Amz-Target'] = target; - - populateHostPrefix(req); -} - -function extractError(resp) { - var error = {}; - var httpResponse = resp.httpResponse; - - error.code = httpResponse.headers['x-amzn-errortype'] || 'UnknownError'; - if (typeof error.code === 'string') { - error.code = error.code.split(':')[0]; - } - - if (httpResponse.body.length > 0) { - try { - var e = JSON.parse(httpResponse.body.toString()); - - var code = e.__type || e.code || e.Code; - if (code) { - error.code = code.split('#').pop(); - } - if (error.code === 'RequestEntityTooLarge') { - error.message = 'Request body must be less than 1 MB'; - } else { - error.message = (e.message || e.Message || null); - } - - // The minimized models do not have error shapes, so - // without expanding the model size, it's not possible - // to validate the response shape (members) or - // check if any are sensitive to logging. - - // Assign the fields as non-enumerable, allowing specific access only. - for (var key in e || {}) { - if (key === 'code' || key === 'message') { - continue; - } - error['[' + key + ']'] = 'See error.' + key + ' for details.'; - Object.defineProperty(error, key, { - value: e[key], - enumerable: false, - writable: true - }); - } - } catch (e) { - error.statusCode = httpResponse.statusCode; - error.message = httpResponse.statusMessage; - } - } else { - error.statusCode = httpResponse.statusCode; - error.message = httpResponse.statusCode.toString(); - } - - resp.error = util.error(new Error(), error); -} - -function extractData(resp) { - var body = resp.httpResponse.body.toString() || '{}'; - if (resp.request.service.config.convertResponseTypes === false) { - resp.data = JSON.parse(body); - } else { - var operation = resp.request.service.api.operations[resp.request.operation]; - var shape = operation.output || {}; - var parser = new JsonParser(); - resp.data = parser.parse(body, shape); - } -} - -/** - * @api private - */ -module.exports = { - buildRequest: buildRequest, - extractError: extractError, - extractData: extractData -}; - - -/***/ }), - -/***/ 22881: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var util = __nccwpck_require__(65742); -var QueryParamSerializer = __nccwpck_require__(91068); -var Shape = __nccwpck_require__(64147); -var populateHostPrefix = (__nccwpck_require__(35644).populateHostPrefix); - -function buildRequest(req) { - var operation = req.service.api.operations[req.operation]; - var httpRequest = req.httpRequest; - httpRequest.headers['Content-Type'] = - 'application/x-www-form-urlencoded; charset=utf-8'; - httpRequest.params = { - Version: req.service.api.apiVersion, - Action: operation.name - }; - - // convert the request parameters into a list of query params, - // e.g. Deeply.NestedParam.0.Name=value - var builder = new QueryParamSerializer(); - builder.serialize(req.params, operation.input, function(name, value) { - httpRequest.params[name] = value; - }); - httpRequest.body = util.queryParamsToString(httpRequest.params); - - populateHostPrefix(req); -} - -function extractError(resp) { - var data, body = resp.httpResponse.body.toString(); - if (body.match(' { - -var util = __nccwpck_require__(65742); -var populateHostPrefix = (__nccwpck_require__(35644).populateHostPrefix); - -function populateMethod(req) { - req.httpRequest.method = req.service.api.operations[req.operation].httpMethod; -} - -function generateURI(endpointPath, operationPath, input, params) { - var uri = [endpointPath, operationPath].join('/'); - uri = uri.replace(/\/+/g, '/'); - - var queryString = {}, queryStringSet = false; - util.each(input.members, function (name, member) { - var paramValue = params[name]; - if (paramValue === null || paramValue === undefined) return; - if (member.location === 'uri') { - var regex = new RegExp('\\{' + member.name + '(\\+)?\\}'); - uri = uri.replace(regex, function(_, plus) { - var fn = plus ? util.uriEscapePath : util.uriEscape; - return fn(String(paramValue)); - }); - } else if (member.location === 'querystring') { - queryStringSet = true; - - if (member.type === 'list') { - queryString[member.name] = paramValue.map(function(val) { - return util.uriEscape(member.member.toWireFormat(val).toString()); - }); - } else if (member.type === 'map') { - util.each(paramValue, function(key, value) { - if (Array.isArray(value)) { - queryString[key] = value.map(function(val) { - return util.uriEscape(String(val)); - }); - } else { - queryString[key] = util.uriEscape(String(value)); - } - }); - } else { - queryString[member.name] = util.uriEscape(member.toWireFormat(paramValue).toString()); - } - } - }); - - if (queryStringSet) { - uri += (uri.indexOf('?') >= 0 ? '&' : '?'); - var parts = []; - util.arrayEach(Object.keys(queryString).sort(), function(key) { - if (!Array.isArray(queryString[key])) { - queryString[key] = [queryString[key]]; - } - for (var i = 0; i < queryString[key].length; i++) { - parts.push(util.uriEscape(String(key)) + '=' + queryString[key][i]); - } - }); - uri += parts.join('&'); - } - - return uri; -} - -function populateURI(req) { - var operation = req.service.api.operations[req.operation]; - var input = operation.input; - - var uri = generateURI(req.httpRequest.endpoint.path, operation.httpPath, input, req.params); - req.httpRequest.path = uri; -} - -function populateHeaders(req) { - var operation = req.service.api.operations[req.operation]; - util.each(operation.input.members, function (name, member) { - var value = req.params[name]; - if (value === null || value === undefined) return; - - if (member.location === 'headers' && member.type === 'map') { - util.each(value, function(key, memberValue) { - req.httpRequest.headers[member.name + key] = memberValue; - }); - } else if (member.location === 'header') { - value = member.toWireFormat(value).toString(); - if (member.isJsonValue) { - value = util.base64.encode(value); - } - req.httpRequest.headers[member.name] = value; - } - }); -} - -function buildRequest(req) { - populateMethod(req); - populateURI(req); - populateHeaders(req); - populateHostPrefix(req); -} - -function extractError() { -} - -function extractData(resp) { - var req = resp.request; - var data = {}; - var r = resp.httpResponse; - var operation = req.service.api.operations[req.operation]; - var output = operation.output; - - // normalize headers names to lower-cased keys for matching - var headers = {}; - util.each(r.headers, function (k, v) { - headers[k.toLowerCase()] = v; - }); - - util.each(output.members, function(name, member) { - var header = (member.name || name).toLowerCase(); - if (member.location === 'headers' && member.type === 'map') { - data[name] = {}; - var location = member.isLocationName ? member.name : ''; - var pattern = new RegExp('^' + location + '(.+)', 'i'); - util.each(r.headers, function (k, v) { - var result = k.match(pattern); - if (result !== null) { - data[name][result[1]] = v; - } - }); - } else if (member.location === 'header') { - if (headers[header] !== undefined) { - var value = member.isJsonValue ? - util.base64.decode(headers[header]) : - headers[header]; - data[name] = member.toType(value); - } - } else if (member.location === 'statusCode') { - data[name] = parseInt(r.statusCode, 10); - } - }); - - resp.data = data; -} - -/** - * @api private - */ -module.exports = { - buildRequest: buildRequest, - extractError: extractError, - extractData: extractData, - generateURI: generateURI -}; - - -/***/ }), - -/***/ 84032: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var util = __nccwpck_require__(65742); -var Rest = __nccwpck_require__(80031); -var Json = __nccwpck_require__(75507); -var JsonBuilder = __nccwpck_require__(84516); -var JsonParser = __nccwpck_require__(36964); - -var METHODS_WITHOUT_BODY = ['GET', 'HEAD', 'DELETE']; - -function unsetContentLength(req) { - var payloadMember = util.getRequestPayloadShape(req); - if ( - payloadMember === undefined && - METHODS_WITHOUT_BODY.indexOf(req.httpRequest.method) >= 0 - ) { - delete req.httpRequest.headers['Content-Length']; - } -} - -function populateBody(req) { - var builder = new JsonBuilder(); - var input = req.service.api.operations[req.operation].input; - - if (input.payload) { - var params = {}; - var payloadShape = input.members[input.payload]; - params = req.params[input.payload]; - - if (payloadShape.type === 'structure') { - req.httpRequest.body = builder.build(params || {}, payloadShape); - applyContentTypeHeader(req); - } else if (params !== undefined) { - // non-JSON payload - req.httpRequest.body = params; - if (payloadShape.type === 'binary' || payloadShape.isStreaming) { - applyContentTypeHeader(req, true); - } - } - } else { - req.httpRequest.body = builder.build(req.params, input); - applyContentTypeHeader(req); - } -} - -function applyContentTypeHeader(req, isBinary) { - if (!req.httpRequest.headers['Content-Type']) { - var type = isBinary ? 'binary/octet-stream' : 'application/json'; - req.httpRequest.headers['Content-Type'] = type; - } -} - -function buildRequest(req) { - Rest.buildRequest(req); - - // never send body payload on GET/HEAD/DELETE - if (METHODS_WITHOUT_BODY.indexOf(req.httpRequest.method) < 0) { - populateBody(req); - } -} - -function extractError(resp) { - Json.extractError(resp); -} - -function extractData(resp) { - Rest.extractData(resp); - - var req = resp.request; - var operation = req.service.api.operations[req.operation]; - var rules = req.service.api.operations[req.operation].output || {}; - var parser; - var hasEventOutput = operation.hasEventOutput; - - if (rules.payload) { - var payloadMember = rules.members[rules.payload]; - var body = resp.httpResponse.body; - if (payloadMember.isEventStream) { - parser = new JsonParser(); - resp.data[rules.payload] = util.createEventStream( - AWS.HttpClient.streamsApiVersion === 2 ? resp.httpResponse.stream : body, - parser, - payloadMember - ); - } else if (payloadMember.type === 'structure' || payloadMember.type === 'list') { - var parser = new JsonParser(); - resp.data[rules.payload] = parser.parse(body, payloadMember); - } else if (payloadMember.type === 'binary' || payloadMember.isStreaming) { - resp.data[rules.payload] = body; - } else { - resp.data[rules.payload] = payloadMember.toType(body); - } - } else { - var data = resp.data; - Json.extractData(resp); - resp.data = util.merge(data, resp.data); - } -} - -/** - * @api private - */ -module.exports = { - buildRequest: buildRequest, - extractError: extractError, - extractData: extractData, - unsetContentLength: unsetContentLength -}; - - -/***/ }), - -/***/ 81153: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var util = __nccwpck_require__(65742); -var Rest = __nccwpck_require__(80031); - -function populateBody(req) { - var input = req.service.api.operations[req.operation].input; - var builder = new AWS.XML.Builder(); - var params = req.params; - - var payload = input.payload; - if (payload) { - var payloadMember = input.members[payload]; - params = params[payload]; - if (params === undefined) return; - - if (payloadMember.type === 'structure') { - var rootElement = payloadMember.name; - req.httpRequest.body = builder.toXML(params, payloadMember, rootElement, true); - } else { // non-xml payload - req.httpRequest.body = params; - } - } else { - req.httpRequest.body = builder.toXML(params, input, input.name || - input.shape || util.string.upperFirst(req.operation) + 'Request'); - } -} - -function buildRequest(req) { - Rest.buildRequest(req); - - // never send body payload on GET/HEAD - if (['GET', 'HEAD'].indexOf(req.httpRequest.method) < 0) { - populateBody(req); - } -} - -function extractError(resp) { - Rest.extractError(resp); - - var data; - try { - data = new AWS.XML.Parser().parse(resp.httpResponse.body.toString()); - } catch (e) { - data = { - Code: resp.httpResponse.statusCode, - Message: resp.httpResponse.statusMessage - }; - } - - if (data.Errors) data = data.Errors; - if (data.Error) data = data.Error; - if (data.Code) { - resp.error = util.error(new Error(), { - code: data.Code, - message: data.Message - }); - } else { - resp.error = util.error(new Error(), { - code: resp.httpResponse.statusCode, - message: null - }); - } -} - -function extractData(resp) { - Rest.extractData(resp); - - var parser; - var req = resp.request; - var body = resp.httpResponse.body; - var operation = req.service.api.operations[req.operation]; - var output = operation.output; - - var hasEventOutput = operation.hasEventOutput; - - var payload = output.payload; - if (payload) { - var payloadMember = output.members[payload]; - if (payloadMember.isEventStream) { - parser = new AWS.XML.Parser(); - resp.data[payload] = util.createEventStream( - AWS.HttpClient.streamsApiVersion === 2 ? resp.httpResponse.stream : resp.httpResponse.body, - parser, - payloadMember - ); - } else if (payloadMember.type === 'structure') { - parser = new AWS.XML.Parser(); - resp.data[payload] = parser.parse(body.toString(), payloadMember); - } else if (payloadMember.type === 'binary' || payloadMember.isStreaming) { - resp.data[payload] = body; - } else { - resp.data[payload] = payloadMember.toType(body); - } - } else if (body.length > 0) { - parser = new AWS.XML.Parser(); - var data = parser.parse(body.toString(), output); - util.update(resp.data, data); - } -} - -/** - * @api private - */ -module.exports = { - buildRequest: buildRequest, - extractError: extractError, - extractData: extractData -}; - - -/***/ }), - -/***/ 31281: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -/** - * Resolve client-side monitoring configuration from either environmental variables - * or shared config file. Configurations from environmental variables have higher priority - * than those from shared config file. The resolver will try to read the shared config file - * no matter whether the AWS_SDK_LOAD_CONFIG variable is set. - * @api private - */ -function resolveMonitoringConfig() { - var config = { - port: undefined, - clientId: undefined, - enabled: undefined, - host: undefined - }; - if (fromEnvironment(config) || fromConfigFile(config)) return toJSType(config); - return toJSType(config); -} - -/** - * Resolve configurations from environmental variables. - * @param {object} client side monitoring config object needs to be resolved - * @returns {boolean} whether resolving configurations is done - * @api private - */ -function fromEnvironment(config) { - config.port = config.port || process.env.AWS_CSM_PORT; - config.enabled = config.enabled || process.env.AWS_CSM_ENABLED; - config.clientId = config.clientId || process.env.AWS_CSM_CLIENT_ID; - config.host = config.host || process.env.AWS_CSM_HOST; - return config.port && config.enabled && config.clientId && config.host || - ['false', '0'].indexOf(config.enabled) >= 0; //no need to read shared config file if explicitely disabled -} - -/** - * Resolve cofigurations from shared config file with specified role name - * @param {object} client side monitoring config object needs to be resolved - * @returns {boolean} whether resolving configurations is done - * @api private - */ -function fromConfigFile(config) { - var sharedFileConfig; - try { - var configFile = AWS.util.iniLoader.loadFrom({ - isConfig: true, - filename: process.env[AWS.util.sharedConfigFileEnv] - }); - var sharedFileConfig = configFile[ - process.env.AWS_PROFILE || AWS.util.defaultProfile - ]; - } catch (err) { - return false; - } - if (!sharedFileConfig) return config; - config.port = config.port || sharedFileConfig.csm_port; - config.enabled = config.enabled || sharedFileConfig.csm_enabled; - config.clientId = config.clientId || sharedFileConfig.csm_client_id; - config.host = config.host || sharedFileConfig.csm_host; - return config.port && config.enabled && config.clientId && config.host; -} - -/** - * Transfer the resolved configuration value to proper types: port as number, enabled - * as boolean and clientId as string. The 'enabled' flag is valued to false when set - * to 'false' or '0'. - * @param {object} resolved client side monitoring config - * @api private - */ -function toJSType(config) { - //config.XXX is either undefined or string - var falsyNotations = ['false', '0', undefined]; - if (!config.enabled || falsyNotations.indexOf(config.enabled.toLowerCase()) >= 0) { - config.enabled = false; - } else { - config.enabled = true; - } - config.port = config.port ? parseInt(config.port, 10) : undefined; - return config; -} - -module.exports = resolveMonitoringConfig; - - -/***/ }), - -/***/ 78335: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = (__nccwpck_require__(60085).util); -var dgram = __nccwpck_require__(7194); -var stringToBuffer = util.buffer.toBuffer; - -var MAX_MESSAGE_SIZE = 1024 * 8; // 8 KB - -/** - * Publishes metrics via udp. - * @param {object} options Paramters for Publisher constructor - * @param {number} [options.port = 31000] Port number - * @param {string} [options.clientId = ''] Client Identifier - * @param {boolean} [options.enabled = false] enable sending metrics datagram - * @api private - */ -function Publisher(options) { - // handle configuration - options = options || {}; - this.enabled = options.enabled || false; - this.port = options.port || 31000; - this.clientId = options.clientId || ''; - this.address = options.host || '127.0.0.1'; - if (this.clientId.length > 255) { - // ClientId has a max length of 255 - this.clientId = this.clientId.substr(0, 255); - } - this.messagesInFlight = 0; -} - -Publisher.prototype.fieldsToTrim = { - UserAgent: 256, - SdkException: 128, - SdkExceptionMessage: 512, - AwsException: 128, - AwsExceptionMessage: 512, - FinalSdkException: 128, - FinalSdkExceptionMessage: 512, - FinalAwsException: 128, - FinalAwsExceptionMessage: 512 - -}; - -/** - * Trims fields that have a specified max length. - * @param {object} event ApiCall or ApiCallAttempt event. - * @returns {object} - * @api private - */ -Publisher.prototype.trimFields = function(event) { - var trimmableFields = Object.keys(this.fieldsToTrim); - for (var i = 0, iLen = trimmableFields.length; i < iLen; i++) { - var field = trimmableFields[i]; - if (event.hasOwnProperty(field)) { - var maxLength = this.fieldsToTrim[field]; - var value = event[field]; - if (value && value.length > maxLength) { - event[field] = value.substr(0, maxLength); - } - } - } - return event; -}; - -/** - * Handles ApiCall and ApiCallAttempt events. - * @param {Object} event apiCall or apiCallAttempt event. - * @api private - */ -Publisher.prototype.eventHandler = function(event) { - // set the clientId - event.ClientId = this.clientId; - - this.trimFields(event); - - var message = stringToBuffer(JSON.stringify(event)); - if (!this.enabled || message.length > MAX_MESSAGE_SIZE) { - // drop the message if publisher not enabled or it is too large - return; - } - - this.publishDatagram(message); -}; - -/** - * Publishes message to an agent. - * @param {Buffer} message JSON message to send to agent. - * @api private - */ -Publisher.prototype.publishDatagram = function(message) { - var self = this; - var client = this.getClient(); - - this.messagesInFlight++; - this.client.send(message, 0, message.length, this.port, this.address, function(err, bytes) { - if (--self.messagesInFlight <= 0) { - // destroy existing client so the event loop isn't kept open - self.destroyClient(); - } - }); -}; - -/** - * Returns an existing udp socket, or creates one if it doesn't already exist. - * @api private - */ -Publisher.prototype.getClient = function() { - if (!this.client) { - this.client = dgram.createSocket('udp4'); - } - return this.client; -}; - -/** - * Destroys the udp socket. - * @api private - */ -Publisher.prototype.destroyClient = function() { - if (this.client) { - this.client.close(); - this.client = void 0; - } -}; - -module.exports = { - Publisher: Publisher -}; - - -/***/ }), - -/***/ 91068: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = __nccwpck_require__(65742); - -function QueryParamSerializer() { -} - -QueryParamSerializer.prototype.serialize = function(params, shape, fn) { - serializeStructure('', params, shape, fn); -}; - -function ucfirst(shape) { - if (shape.isQueryName || shape.api.protocol !== 'ec2') { - return shape.name; - } else { - return shape.name[0].toUpperCase() + shape.name.substr(1); - } -} - -function serializeStructure(prefix, struct, rules, fn) { - util.each(rules.members, function(name, member) { - var value = struct[name]; - if (value === null || value === undefined) return; - - var memberName = ucfirst(member); - memberName = prefix ? prefix + '.' + memberName : memberName; - serializeMember(memberName, value, member, fn); - }); -} - -function serializeMap(name, map, rules, fn) { - var i = 1; - util.each(map, function (key, value) { - var prefix = rules.flattened ? '.' : '.entry.'; - var position = prefix + (i++) + '.'; - var keyName = position + (rules.key.name || 'key'); - var valueName = position + (rules.value.name || 'value'); - serializeMember(name + keyName, key, rules.key, fn); - serializeMember(name + valueName, value, rules.value, fn); - }); -} - -function serializeList(name, list, rules, fn) { - var memberRules = rules.member || {}; - - if (list.length === 0) { - if (rules.api.protocol !== 'ec2') { - fn.call(this, name, null); - } - return; - } - - util.arrayEach(list, function (v, n) { - var suffix = '.' + (n + 1); - if (rules.api.protocol === 'ec2') { - // Do nothing for EC2 - suffix = suffix + ''; // make linter happy - } else if (rules.flattened) { - if (memberRules.name) { - var parts = name.split('.'); - parts.pop(); - parts.push(ucfirst(memberRules)); - name = parts.join('.'); - } - } else { - suffix = '.' + (memberRules.name ? memberRules.name : 'member') + suffix; - } - serializeMember(name + suffix, v, memberRules, fn); - }); -} - -function serializeMember(name, value, rules, fn) { - if (value === null || value === undefined) return; - if (rules.type === 'structure') { - serializeStructure(name, value, rules, fn); - } else if (rules.type === 'list') { - serializeList(name, value, rules, fn); - } else if (rules.type === 'map') { - serializeMap(name, value, rules, fn); - } else { - fn(name, rules.toWireFormat(value).toString()); - } -} - -/** - * @api private - */ -module.exports = QueryParamSerializer; - - -/***/ }), - -/***/ 64060: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -/** - * @api private - */ -var service = null; - -/** - * @api private - */ -var api = { - signatureVersion: 'v4', - signingName: 'rds-db', - operations: {} -}; - -/** - * @api private - */ -var requiredAuthTokenOptions = { - region: 'string', - hostname: 'string', - port: 'number', - username: 'string' -}; - -/** - * A signer object can be used to generate an auth token to a database. - */ -AWS.RDS.Signer = AWS.util.inherit({ - /** - * Creates a signer object can be used to generate an auth token. - * - * @option options credentials [AWS.Credentials] the AWS credentials - * to sign requests with. Uses the default credential provider chain - * if not specified. - * @option options hostname [String] the hostname of the database to connect to. - * @option options port [Number] the port number the database is listening on. - * @option options region [String] the region the database is located in. - * @option options username [String] the username to login as. - * @example Passing in options to constructor - * var signer = new AWS.RDS.Signer({ - * credentials: new AWS.SharedIniFileCredentials({profile: 'default'}), - * region: 'us-east-1', - * hostname: 'db.us-east-1.rds.amazonaws.com', - * port: 8000, - * username: 'name' - * }); - */ - constructor: function Signer(options) { - this.options = options || {}; - }, - - /** - * @api private - * Strips the protocol from a url. - */ - convertUrlToAuthToken: function convertUrlToAuthToken(url) { - // we are always using https as the protocol - var protocol = 'https://'; - if (url.indexOf(protocol) === 0) { - return url.substring(protocol.length); - } - }, - - /** - * @overload getAuthToken(options = {}, [callback]) - * Generate an auth token to a database. - * @note You must ensure that you have static or previously resolved - * credentials if you call this method synchronously (with no callback), - * otherwise it may not properly sign the request. If you cannot guarantee - * this (you are using an asynchronous credential provider, i.e., EC2 - * IAM roles), you should always call this method with an asynchronous - * callback. - * - * @param options [map] The fields to use when generating an auth token. - * Any options specified here will be merged on top of any options passed - * to AWS.RDS.Signer: - * - * * **credentials** (AWS.Credentials) — the AWS credentials - * to sign requests with. Uses the default credential provider chain - * if not specified. - * * **hostname** (String) — the hostname of the database to connect to. - * * **port** (Number) — the port number the database is listening on. - * * **region** (String) — the region the database is located in. - * * **username** (String) — the username to login as. - * @return [String] if called synchronously (with no callback), returns the - * auth token. - * @return [null] nothing is returned if a callback is provided. - * @callback callback function (err, token) - * If a callback is supplied, it is called when an auth token has been generated. - * @param err [Error] the error object returned from the signer. - * @param token [String] the auth token. - * - * @example Generating an auth token synchronously - * var signer = new AWS.RDS.Signer({ - * // configure options - * region: 'us-east-1', - * username: 'default', - * hostname: 'db.us-east-1.amazonaws.com', - * port: 8000 - * }); - * var token = signer.getAuthToken({ - * // these options are merged with those defined when creating the signer, overriding in the case of a duplicate option - * // credentials are not specified here or when creating the signer, so default credential provider will be used - * username: 'test' // overriding username - * }); - * @example Generating an auth token asynchronously - * var signer = new AWS.RDS.Signer({ - * // configure options - * region: 'us-east-1', - * username: 'default', - * hostname: 'db.us-east-1.amazonaws.com', - * port: 8000 - * }); - * signer.getAuthToken({ - * // these options are merged with those defined when creating the signer, overriding in the case of a duplicate option - * // credentials are not specified here or when creating the signer, so default credential provider will be used - * username: 'test' // overriding username - * }, function(err, token) { - * if (err) { - * // handle error - * } else { - * // use token - * } - * }); - * - */ - getAuthToken: function getAuthToken(options, callback) { - if (typeof options === 'function' && callback === undefined) { - callback = options; - options = {}; - } - var self = this; - var hasCallback = typeof callback === 'function'; - // merge options with existing options - options = AWS.util.merge(this.options, options); - // validate options - var optionsValidation = this.validateAuthTokenOptions(options); - if (optionsValidation !== true) { - if (hasCallback) { - return callback(optionsValidation, null); - } - throw optionsValidation; - } - - // 15 minutes - var expires = 900; - // create service to generate a request from - var serviceOptions = { - region: options.region, - endpoint: new AWS.Endpoint(options.hostname + ':' + options.port), - paramValidation: false, - signatureVersion: 'v4' - }; - if (options.credentials) { - serviceOptions.credentials = options.credentials; - } - service = new AWS.Service(serviceOptions); - // ensure the SDK is using sigv4 signing (config is not enough) - service.api = api; - - var request = service.makeRequest(); - // add listeners to request to properly build auth token - this.modifyRequestForAuthToken(request, options); - - if (hasCallback) { - request.presign(expires, function(err, url) { - if (url) { - url = self.convertUrlToAuthToken(url); - } - callback(err, url); - }); - } else { - var url = request.presign(expires); - return this.convertUrlToAuthToken(url); - } - }, - - /** - * @api private - * Modifies a request to allow the presigner to generate an auth token. - */ - modifyRequestForAuthToken: function modifyRequestForAuthToken(request, options) { - request.on('build', request.buildAsGet); - var httpRequest = request.httpRequest; - httpRequest.body = AWS.util.queryParamsToString({ - Action: 'connect', - DBUser: options.username - }); - }, - - /** - * @api private - * Validates that the options passed in contain all the keys with values of the correct type that - * are needed to generate an auth token. - */ - validateAuthTokenOptions: function validateAuthTokenOptions(options) { - // iterate over all keys in options - var message = ''; - options = options || {}; - for (var key in requiredAuthTokenOptions) { - if (!Object.prototype.hasOwnProperty.call(requiredAuthTokenOptions, key)) { - continue; - } - if (typeof options[key] !== requiredAuthTokenOptions[key]) { - message += 'option \'' + key + '\' should have been type \'' + requiredAuthTokenOptions[key] + '\', was \'' + typeof options[key] + '\'.\n'; - } - } - if (message.length) { - return AWS.util.error(new Error(), { - code: 'InvalidParameter', - message: message - }); - } - return true; - } -}); - - -/***/ }), - -/***/ 95463: -/***/ ((module) => { - -module.exports = { - //provide realtime clock for performance measurement - now: function now() { - var second = process.hrtime(); - return second[0] * 1000 + (second[1] / 1000000); - } -}; - - -/***/ }), - -/***/ 53412: -/***/ ((module) => { - -function isFipsRegion(region) { - return typeof region === 'string' && (region.startsWith('fips-') || region.endsWith('-fips')); -} - -function isGlobalRegion(region) { - return typeof region === 'string' && ['aws-global', 'aws-us-gov-global'].includes(region); -} - -function getRealRegion(region) { - return ['fips-aws-global', 'aws-fips', 'aws-global'].includes(region) - ? 'us-east-1' - : ['fips-aws-us-gov-global', 'aws-us-gov-global'].includes(region) - ? 'us-gov-west-1' - : region.replace(/fips-(dkr-|prod-)?|-fips/, ''); -} - -module.exports = { - isFipsRegion: isFipsRegion, - isGlobalRegion: isGlobalRegion, - getRealRegion: getRealRegion -}; - - -/***/ }), - -/***/ 48603: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = __nccwpck_require__(65742); -var regionConfig = __nccwpck_require__(33548); - -function generateRegionPrefix(region) { - if (!region) return null; - var parts = region.split('-'); - if (parts.length < 3) return null; - return parts.slice(0, parts.length - 2).join('-') + '-*'; -} - -function derivedKeys(service) { - var region = service.config.region; - var regionPrefix = generateRegionPrefix(region); - var endpointPrefix = service.api.endpointPrefix; - - return [ - [region, endpointPrefix], - [regionPrefix, endpointPrefix], - [region, '*'], - [regionPrefix, '*'], - ['*', endpointPrefix], - [region, 'internal-*'], - ['*', '*'] - ].map(function(item) { - return item[0] && item[1] ? item.join('/') : null; - }); -} - -function applyConfig(service, config) { - util.each(config, function(key, value) { - if (key === 'globalEndpoint') return; - if (service.config[key] === undefined || service.config[key] === null) { - service.config[key] = value; - } - }); -} - -function configureEndpoint(service) { - var keys = derivedKeys(service); - var useFipsEndpoint = service.config.useFipsEndpoint; - var useDualstackEndpoint = service.config.useDualstackEndpoint; - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - if (!key) continue; - - var rules = useFipsEndpoint - ? useDualstackEndpoint - ? regionConfig.dualstackFipsRules - : regionConfig.fipsRules - : useDualstackEndpoint - ? regionConfig.dualstackRules - : regionConfig.rules; - - if (Object.prototype.hasOwnProperty.call(rules, key)) { - var config = rules[key]; - if (typeof config === 'string') { - config = regionConfig.patterns[config]; - } - - // set global endpoint - service.isGlobalEndpoint = !!config.globalEndpoint; - if (config.signingRegion) { - service.signingRegion = config.signingRegion; - } - - // signature version - if (!config.signatureVersion) { - // Note: config is a global object and should not be mutated here. - // However, we are retaining this line for backwards compatibility. - // The non-v4 signatureVersion will be set in a copied object below. - config.signatureVersion = 'v4'; - } - - var useBearer = (service.api && service.api.signatureVersion) === 'bearer'; - - // merge config - applyConfig(service, Object.assign( - {}, - config, - { signatureVersion: useBearer ? 'bearer' : config.signatureVersion } - )); - return; - } - } -} - -function getEndpointSuffix(region) { - var regionRegexes = { - '^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$': 'amazonaws.com', - '^cn\\-\\w+\\-\\d+$': 'amazonaws.com.cn', - '^us\\-gov\\-\\w+\\-\\d+$': 'amazonaws.com', - '^us\\-iso\\-\\w+\\-\\d+$': 'c2s.ic.gov', - '^us\\-isob\\-\\w+\\-\\d+$': 'sc2s.sgov.gov', - '^eu\\-isoe\\-west\\-1$': 'cloud.adc-e.uk', - '^us\\-isof\\-\\w+\\-\\d+$': 'csp.hci.ic.gov', - }; - var defaultSuffix = 'amazonaws.com'; - var regexes = Object.keys(regionRegexes); - for (var i = 0; i < regexes.length; i++) { - var regionPattern = RegExp(regexes[i]); - var dnsSuffix = regionRegexes[regexes[i]]; - if (regionPattern.test(region)) return dnsSuffix; - } - return defaultSuffix; -} - -/** - * @api private - */ -module.exports = { - configureEndpoint: configureEndpoint, - getEndpointSuffix: getEndpointSuffix, -}; - - -/***/ }), - -/***/ 94849: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var AcceptorStateMachine = __nccwpck_require__(76435); -var inherit = AWS.util.inherit; -var domain = AWS.util.domain; -var jmespath = __nccwpck_require__(7598); - -/** - * @api private - */ -var hardErrorStates = {success: 1, error: 1, complete: 1}; - -function isTerminalState(machine) { - return Object.prototype.hasOwnProperty.call(hardErrorStates, machine._asm.currentState); -} - -var fsm = new AcceptorStateMachine(); -fsm.setupStates = function() { - var transition = function(_, done) { - var self = this; - self._haltHandlersOnError = false; - - self.emit(self._asm.currentState, function(err) { - if (err) { - if (isTerminalState(self)) { - if (domain && self.domain instanceof domain.Domain) { - err.domainEmitter = self; - err.domain = self.domain; - err.domainThrown = false; - self.domain.emit('error', err); - } else { - throw err; - } - } else { - self.response.error = err; - done(err); - } - } else { - done(self.response.error); - } - }); - - }; - - this.addState('validate', 'build', 'error', transition); - this.addState('build', 'afterBuild', 'restart', transition); - this.addState('afterBuild', 'sign', 'restart', transition); - this.addState('sign', 'send', 'retry', transition); - this.addState('retry', 'afterRetry', 'afterRetry', transition); - this.addState('afterRetry', 'sign', 'error', transition); - this.addState('send', 'validateResponse', 'retry', transition); - this.addState('validateResponse', 'extractData', 'extractError', transition); - this.addState('extractError', 'extractData', 'retry', transition); - this.addState('extractData', 'success', 'retry', transition); - this.addState('restart', 'build', 'error', transition); - this.addState('success', 'complete', 'complete', transition); - this.addState('error', 'complete', 'complete', transition); - this.addState('complete', null, null, transition); -}; -fsm.setupStates(); - -/** - * ## Asynchronous Requests - * - * All requests made through the SDK are asynchronous and use a - * callback interface. Each service method that kicks off a request - * returns an `AWS.Request` object that you can use to register - * callbacks. - * - * For example, the following service method returns the request - * object as "request", which can be used to register callbacks: - * - * ```javascript - * // request is an AWS.Request object - * var request = ec2.describeInstances(); - * - * // register callbacks on request to retrieve response data - * request.on('success', function(response) { - * console.log(response.data); - * }); - * ``` - * - * When a request is ready to be sent, the {send} method should - * be called: - * - * ```javascript - * request.send(); - * ``` - * - * Since registered callbacks may or may not be idempotent, requests should only - * be sent once. To perform the same operation multiple times, you will need to - * create multiple request objects, each with its own registered callbacks. - * - * ## Removing Default Listeners for Events - * - * Request objects are built with default listeners for the various events, - * depending on the service type. In some cases, you may want to remove - * some built-in listeners to customize behaviour. Doing this requires - * access to the built-in listener functions, which are exposed through - * the {AWS.EventListeners.Core} namespace. For instance, you may - * want to customize the HTTP handler used when sending a request. In this - * case, you can remove the built-in listener associated with the 'send' - * event, the {AWS.EventListeners.Core.SEND} listener and add your own. - * - * ## Multiple Callbacks and Chaining - * - * You can register multiple callbacks on any request object. The - * callbacks can be registered for different events, or all for the - * same event. In addition, you can chain callback registration, for - * example: - * - * ```javascript - * request. - * on('success', function(response) { - * console.log("Success!"); - * }). - * on('error', function(error, response) { - * console.log("Error!"); - * }). - * on('complete', function(response) { - * console.log("Always!"); - * }). - * send(); - * ``` - * - * The above example will print either "Success! Always!", or "Error! Always!", - * depending on whether the request succeeded or not. - * - * @!attribute httpRequest - * @readonly - * @!group HTTP Properties - * @return [AWS.HttpRequest] the raw HTTP request object - * containing request headers and body information - * sent by the service. - * - * @!attribute startTime - * @readonly - * @!group Operation Properties - * @return [Date] the time that the request started - * - * @!group Request Building Events - * - * @!event validate(request) - * Triggered when a request is being validated. Listeners - * should throw an error if the request should not be sent. - * @param request [Request] the request object being sent - * @see AWS.EventListeners.Core.VALIDATE_CREDENTIALS - * @see AWS.EventListeners.Core.VALIDATE_REGION - * @example Ensuring that a certain parameter is set before sending a request - * var req = s3.putObject(params); - * req.on('validate', function() { - * if (!req.params.Body.match(/^Hello\s/)) { - * throw new Error('Body must start with "Hello "'); - * } - * }); - * req.send(function(err, data) { ... }); - * - * @!event build(request) - * Triggered when the request payload is being built. Listeners - * should fill the necessary information to send the request - * over HTTP. - * @param (see AWS.Request~validate) - * @example Add a custom HTTP header to a request - * var req = s3.putObject(params); - * req.on('build', function() { - * req.httpRequest.headers['Custom-Header'] = 'value'; - * }); - * req.send(function(err, data) { ... }); - * - * @!event sign(request) - * Triggered when the request is being signed. Listeners should - * add the correct authentication headers and/or adjust the body, - * depending on the authentication mechanism being used. - * @param (see AWS.Request~validate) - * - * @!group Request Sending Events - * - * @!event send(response) - * Triggered when the request is ready to be sent. Listeners - * should call the underlying transport layer to initiate - * the sending of the request. - * @param response [Response] the response object - * @context [Request] the request object that was sent - * @see AWS.EventListeners.Core.SEND - * - * @!event retry(response) - * Triggered when a request failed and might need to be retried or redirected. - * If the response is retryable, the listener should set the - * `response.error.retryable` property to `true`, and optionally set - * `response.error.retryDelay` to the millisecond delay for the next attempt. - * In the case of a redirect, `response.error.redirect` should be set to - * `true` with `retryDelay` set to an optional delay on the next request. - * - * If a listener decides that a request should not be retried, - * it should set both `retryable` and `redirect` to false. - * - * Note that a retryable error will be retried at most - * {AWS.Config.maxRetries} times (based on the service object's config). - * Similarly, a request that is redirected will only redirect at most - * {AWS.Config.maxRedirects} times. - * - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * @example Adding a custom retry for a 404 response - * request.on('retry', function(response) { - * // this resource is not yet available, wait 10 seconds to get it again - * if (response.httpResponse.statusCode === 404 && response.error) { - * response.error.retryable = true; // retry this error - * response.error.retryDelay = 10000; // wait 10 seconds - * } - * }); - * - * @!group Data Parsing Events - * - * @!event extractError(response) - * Triggered on all non-2xx requests so that listeners can extract - * error details from the response body. Listeners to this event - * should set the `response.error` property. - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * - * @!event extractData(response) - * Triggered in successful requests to allow listeners to - * de-serialize the response body into `response.data`. - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * - * @!group Completion Events - * - * @!event success(response) - * Triggered when the request completed successfully. - * `response.data` will contain the response data and - * `response.error` will be null. - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * - * @!event error(error, response) - * Triggered when an error occurs at any point during the - * request. `response.error` will contain details about the error - * that occurred. `response.data` will be null. - * @param error [Error] the error object containing details about - * the error that occurred. - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * - * @!event complete(response) - * Triggered whenever a request cycle completes. `response.error` - * should be checked, since the request may have failed. - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * - * @!group HTTP Events - * - * @!event httpHeaders(statusCode, headers, response, statusMessage) - * Triggered when headers are sent by the remote server - * @param statusCode [Integer] the HTTP response code - * @param headers [map] the response headers - * @param (see AWS.Request~send) - * @param statusMessage [String] A status message corresponding to the HTTP - * response code - * @context (see AWS.Request~send) - * - * @!event httpData(chunk, response) - * Triggered when data is sent by the remote server - * @param chunk [Buffer] the buffer data containing the next data chunk - * from the server - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * @see AWS.EventListeners.Core.HTTP_DATA - * - * @!event httpUploadProgress(progress, response) - * Triggered when the HTTP request has uploaded more data - * @param progress [map] An object containing the `loaded` and `total` bytes - * of the request. - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * @note This event will not be emitted in Node.js 0.8.x. - * - * @!event httpDownloadProgress(progress, response) - * Triggered when the HTTP request has downloaded more data - * @param progress [map] An object containing the `loaded` and `total` bytes - * of the request. - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * @note This event will not be emitted in Node.js 0.8.x. - * - * @!event httpError(error, response) - * Triggered when the HTTP request failed - * @param error [Error] the error object that was thrown - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * - * @!event httpDone(response) - * Triggered when the server is finished sending data - * @param (see AWS.Request~send) - * @context (see AWS.Request~send) - * - * @see AWS.Response - */ -AWS.Request = inherit({ - - /** - * Creates a request for an operation on a given service with - * a set of input parameters. - * - * @param service [AWS.Service] the service to perform the operation on - * @param operation [String] the operation to perform on the service - * @param params [Object] parameters to send to the operation. - * See the operation's documentation for the format of the - * parameters. - */ - constructor: function Request(service, operation, params) { - var endpoint = service.endpoint; - var region = service.config.region; - var customUserAgent = service.config.customUserAgent; - - if (service.signingRegion) { - region = service.signingRegion; - } else if (service.isGlobalEndpoint) { - region = 'us-east-1'; - } - - this.domain = domain && domain.active; - this.service = service; - this.operation = operation; - this.params = params || {}; - this.httpRequest = new AWS.HttpRequest(endpoint, region); - this.httpRequest.appendToUserAgent(customUserAgent); - this.startTime = service.getSkewCorrectedDate(); - - this.response = new AWS.Response(this); - this._asm = new AcceptorStateMachine(fsm.states, 'validate'); - this._haltHandlersOnError = false; - - AWS.SequentialExecutor.call(this); - this.emit = this.emitEvent; - }, - - /** - * @!group Sending a Request - */ - - /** - * @overload send(callback = null) - * Sends the request object. - * - * @callback callback function(err, data) - * If a callback is supplied, it is called when a response is returned - * from the service. - * @context [AWS.Request] the request object being sent. - * @param err [Error] the error object returned from the request. - * Set to `null` if the request is successful. - * @param data [Object] the de-serialized data returned from - * the request. Set to `null` if a request error occurs. - * @example Sending a request with a callback - * request = s3.putObject({Bucket: 'bucket', Key: 'key'}); - * request.send(function(err, data) { console.log(err, data); }); - * @example Sending a request with no callback (using event handlers) - * request = s3.putObject({Bucket: 'bucket', Key: 'key'}); - * request.on('complete', function(response) { ... }); // register a callback - * request.send(); - */ - send: function send(callback) { - if (callback) { - // append to user agent - this.httpRequest.appendToUserAgent('callback'); - this.on('complete', function (resp) { - callback.call(resp, resp.error, resp.data); - }); - } - this.runTo(); - - return this.response; - }, - - /** - * @!method promise() - * Sends the request and returns a 'thenable' promise. - * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @callback fulfilledCallback function(data) - * Called if the promise is fulfilled. - * @param data [Object] the de-serialized data returned from the request. - * @callback rejectedCallback function(error) - * Called if the promise is rejected. - * @param error [Error] the error object returned from the request. - * @return [Promise] A promise that represents the state of the request. - * @example Sending a request using promises. - * var request = s3.putObject({Bucket: 'bucket', Key: 'key'}); - * var result = request.promise(); - * result.then(function(data) { ... }, function(error) { ... }); - */ - - /** - * @api private - */ - build: function build(callback) { - return this.runTo('send', callback); - }, - - /** - * @api private - */ - runTo: function runTo(state, done) { - this._asm.runTo(state, done, this); - return this; - }, - - /** - * Aborts a request, emitting the error and complete events. - * - * @!macro nobrowser - * @example Aborting a request after sending - * var params = { - * Bucket: 'bucket', Key: 'key', - * Body: Buffer.alloc(1024 * 1024 * 5) // 5MB payload - * }; - * var request = s3.putObject(params); - * request.send(function (err, data) { - * if (err) console.log("Error:", err.code, err.message); - * else console.log(data); - * }); - * - * // abort request in 1 second - * setTimeout(request.abort.bind(request), 1000); - * - * // prints "Error: RequestAbortedError Request aborted by user" - * @return [AWS.Request] the same request object, for chaining. - * @since v1.4.0 - */ - abort: function abort() { - this.removeAllListeners('validateResponse'); - this.removeAllListeners('extractError'); - this.on('validateResponse', function addAbortedError(resp) { - resp.error = AWS.util.error(new Error('Request aborted by user'), { - code: 'RequestAbortedError', retryable: false - }); - }); - - if (this.httpRequest.stream && !this.httpRequest.stream.didCallback) { // abort HTTP stream - this.httpRequest.stream.abort(); - if (this.httpRequest._abortCallback) { - this.httpRequest._abortCallback(); - } else { - this.removeAllListeners('send'); // haven't sent yet, so let's not - } - } - - return this; - }, - - /** - * Iterates over each page of results given a pageable request, calling - * the provided callback with each page of data. After all pages have been - * retrieved, the callback is called with `null` data. - * - * @note This operation can generate multiple requests to a service. - * @example Iterating over multiple pages of objects in an S3 bucket - * var pages = 1; - * s3.listObjects().eachPage(function(err, data) { - * if (err) return; - * console.log("Page", pages++); - * console.log(data); - * }); - * @example Iterating over multiple pages with an asynchronous callback - * s3.listObjects(params).eachPage(function(err, data, done) { - * doSomethingAsyncAndOrExpensive(function() { - * // The next page of results isn't fetched until done is called - * done(); - * }); - * }); - * @callback callback function(err, data, [doneCallback]) - * Called with each page of resulting data from the request. If the - * optional `doneCallback` is provided in the function, it must be called - * when the callback is complete. - * - * @param err [Error] an error object, if an error occurred. - * @param data [Object] a single page of response data. If there is no - * more data, this object will be `null`. - * @param doneCallback [Function] an optional done callback. If this - * argument is defined in the function declaration, it should be called - * when the next page is ready to be retrieved. This is useful for - * controlling serial pagination across asynchronous operations. - * @return [Boolean] if the callback returns `false`, pagination will - * stop. - * - * @see AWS.Request.eachItem - * @see AWS.Response.nextPage - * @since v1.4.0 - */ - eachPage: function eachPage(callback) { - // Make all callbacks async-ish - callback = AWS.util.fn.makeAsync(callback, 3); - - function wrappedCallback(response) { - callback.call(response, response.error, response.data, function (result) { - if (result === false) return; - - if (response.hasNextPage()) { - response.nextPage().on('complete', wrappedCallback).send(); - } else { - callback.call(response, null, null, AWS.util.fn.noop); - } - }); - } - - this.on('complete', wrappedCallback).send(); - }, - - /** - * Enumerates over individual items of a request, paging the responses if - * necessary. - * - * @api experimental - * @since v1.4.0 - */ - eachItem: function eachItem(callback) { - var self = this; - function wrappedCallback(err, data) { - if (err) return callback(err, null); - if (data === null) return callback(null, null); - - var config = self.service.paginationConfig(self.operation); - var resultKey = config.resultKey; - if (Array.isArray(resultKey)) resultKey = resultKey[0]; - var items = jmespath.search(data, resultKey); - var continueIteration = true; - AWS.util.arrayEach(items, function(item) { - continueIteration = callback(null, item); - if (continueIteration === false) { - return AWS.util.abort; - } - }); - return continueIteration; - } - - this.eachPage(wrappedCallback); - }, - - /** - * @return [Boolean] whether the operation can return multiple pages of - * response data. - * @see AWS.Response.eachPage - * @since v1.4.0 - */ - isPageable: function isPageable() { - return this.service.paginationConfig(this.operation) ? true : false; - }, - - /** - * Sends the request and converts the request object into a readable stream - * that can be read from or piped into a writable stream. - * - * @note The data read from a readable stream contains only - * the raw HTTP body contents. - * @example Manually reading from a stream - * request.createReadStream().on('data', function(data) { - * console.log("Got data:", data.toString()); - * }); - * @example Piping a request body into a file - * var out = fs.createWriteStream('/path/to/outfile.jpg'); - * s3.service.getObject(params).createReadStream().pipe(out); - * @return [Stream] the readable stream object that can be piped - * or read from (by registering 'data' event listeners). - * @!macro nobrowser - */ - createReadStream: function createReadStream() { - var streams = AWS.util.stream; - var req = this; - var stream = null; - - if (AWS.HttpClient.streamsApiVersion === 2) { - stream = new streams.PassThrough(); - process.nextTick(function() { req.send(); }); - } else { - stream = new streams.Stream(); - stream.readable = true; - - stream.sent = false; - stream.on('newListener', function(event) { - if (!stream.sent && event === 'data') { - stream.sent = true; - process.nextTick(function() { req.send(); }); - } - }); - } - - this.on('error', function(err) { - stream.emit('error', err); - }); - - this.on('httpHeaders', function streamHeaders(statusCode, headers, resp) { - if (statusCode < 300) { - req.removeListener('httpData', AWS.EventListeners.Core.HTTP_DATA); - req.removeListener('httpError', AWS.EventListeners.Core.HTTP_ERROR); - req.on('httpError', function streamHttpError(error) { - resp.error = error; - resp.error.retryable = false; - }); - - var shouldCheckContentLength = false; - var expectedLen; - if (req.httpRequest.method !== 'HEAD') { - expectedLen = parseInt(headers['content-length'], 10); - } - if (expectedLen !== undefined && !isNaN(expectedLen) && expectedLen >= 0) { - shouldCheckContentLength = true; - var receivedLen = 0; - } - - var checkContentLengthAndEmit = function checkContentLengthAndEmit() { - if (shouldCheckContentLength && receivedLen !== expectedLen) { - stream.emit('error', AWS.util.error( - new Error('Stream content length mismatch. Received ' + - receivedLen + ' of ' + expectedLen + ' bytes.'), - { code: 'StreamContentLengthMismatch' } - )); - } else if (AWS.HttpClient.streamsApiVersion === 2) { - stream.end(); - } else { - stream.emit('end'); - } - }; - - var httpStream = resp.httpResponse.createUnbufferedStream(); - - if (AWS.HttpClient.streamsApiVersion === 2) { - if (shouldCheckContentLength) { - var lengthAccumulator = new streams.PassThrough(); - lengthAccumulator._write = function(chunk) { - if (chunk && chunk.length) { - receivedLen += chunk.length; - } - return streams.PassThrough.prototype._write.apply(this, arguments); - }; - - lengthAccumulator.on('end', checkContentLengthAndEmit); - stream.on('error', function(err) { - shouldCheckContentLength = false; - httpStream.unpipe(lengthAccumulator); - lengthAccumulator.emit('end'); - lengthAccumulator.end(); - }); - httpStream.pipe(lengthAccumulator).pipe(stream, { end: false }); - } else { - httpStream.pipe(stream); - } - } else { - - if (shouldCheckContentLength) { - httpStream.on('data', function(arg) { - if (arg && arg.length) { - receivedLen += arg.length; - } - }); - } - - httpStream.on('data', function(arg) { - stream.emit('data', arg); - }); - httpStream.on('end', checkContentLengthAndEmit); - } - - httpStream.on('error', function(err) { - shouldCheckContentLength = false; - stream.emit('error', err); - }); - } - }); - - return stream; - }, - - /** - * @param [Array,Response] args This should be the response object, - * or an array of args to send to the event. - * @api private - */ - emitEvent: function emit(eventName, args, done) { - if (typeof args === 'function') { done = args; args = null; } - if (!done) done = function() { }; - if (!args) args = this.eventParameters(eventName, this.response); - - var origEmit = AWS.SequentialExecutor.prototype.emit; - origEmit.call(this, eventName, args, function (err) { - if (err) this.response.error = err; - done.call(this, err); - }); - }, - - /** - * @api private - */ - eventParameters: function eventParameters(eventName) { - switch (eventName) { - case 'restart': - case 'validate': - case 'sign': - case 'build': - case 'afterValidate': - case 'afterBuild': - return [this]; - case 'error': - return [this.response.error, this.response]; - default: - return [this.response]; - } - }, - - /** - * @api private - */ - presign: function presign(expires, callback) { - if (!callback && typeof expires === 'function') { - callback = expires; - expires = null; - } - return new AWS.Signers.Presign().sign(this.toGet(), expires, callback); - }, - - /** - * @api private - */ - isPresigned: function isPresigned() { - return Object.prototype.hasOwnProperty.call(this.httpRequest.headers, 'presigned-expires'); - }, - - /** - * @api private - */ - toUnauthenticated: function toUnauthenticated() { - this._unAuthenticated = true; - this.removeListener('validate', AWS.EventListeners.Core.VALIDATE_CREDENTIALS); - this.removeListener('sign', AWS.EventListeners.Core.SIGN); - return this; - }, - - /** - * @api private - */ - toGet: function toGet() { - if (this.service.api.protocol === 'query' || - this.service.api.protocol === 'ec2') { - this.removeListener('build', this.buildAsGet); - this.addListener('build', this.buildAsGet); - } - return this; - }, - - /** - * @api private - */ - buildAsGet: function buildAsGet(request) { - request.httpRequest.method = 'GET'; - request.httpRequest.path = request.service.endpoint.path + - '?' + request.httpRequest.body; - request.httpRequest.body = ''; - - // don't need these headers on a GET request - delete request.httpRequest.headers['Content-Length']; - delete request.httpRequest.headers['Content-Type']; - }, - - /** - * @api private - */ - haltHandlersOnError: function haltHandlersOnError() { - this._haltHandlersOnError = true; - } -}); - -/** - * @api private - */ -AWS.Request.addPromisesToClass = function addPromisesToClass(PromiseDependency) { - this.prototype.promise = function promise() { - var self = this; - // append to user agent - this.httpRequest.appendToUserAgent('promise'); - return new PromiseDependency(function(resolve, reject) { - self.on('complete', function(resp) { - if (resp.error) { - reject(resp.error); - } else { - // define $response property so that it is not enumerable - // this prevents circular reference errors when stringifying the JSON object - resolve(Object.defineProperty( - resp.data || {}, - '$response', - {value: resp} - )); - } - }); - self.runTo(); - }); - }; -}; - -/** - * @api private - */ -AWS.Request.deletePromisesFromClass = function deletePromisesFromClass() { - delete this.prototype.promise; -}; - -AWS.util.addPromises(AWS.Request); - -AWS.util.mixin(AWS.Request, AWS.SequentialExecutor); - - -/***/ }), - -/***/ 80971: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -/** - * Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). You - * may not use this file except in compliance with the License. A copy of - * the License is located at - * - * http://aws.amazon.com/apache2.0/ - * - * or in the "license" file accompanying this file. This file is - * distributed on an "AS IS" BASIS, WITHOUT 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 AWS = __nccwpck_require__(60085); -var inherit = AWS.util.inherit; -var jmespath = __nccwpck_require__(7598); - -/** - * @api private - */ -function CHECK_ACCEPTORS(resp) { - var waiter = resp.request._waiter; - var acceptors = waiter.config.acceptors; - var acceptorMatched = false; - var state = 'retry'; - - acceptors.forEach(function(acceptor) { - if (!acceptorMatched) { - var matcher = waiter.matchers[acceptor.matcher]; - if (matcher && matcher(resp, acceptor.expected, acceptor.argument)) { - acceptorMatched = true; - state = acceptor.state; - } - } - }); - - if (!acceptorMatched && resp.error) state = 'failure'; - - if (state === 'success') { - waiter.setSuccess(resp); - } else { - waiter.setError(resp, state === 'retry'); - } -} - -/** - * @api private - */ -AWS.ResourceWaiter = inherit({ - /** - * Waits for a given state on a service object - * @param service [Service] the service object to wait on - * @param state [String] the state (defined in waiter configuration) to wait - * for. - * @example Create a waiter for running EC2 instances - * var ec2 = new AWS.EC2; - * var waiter = new AWS.ResourceWaiter(ec2, 'instanceRunning'); - */ - constructor: function constructor(service, state) { - this.service = service; - this.state = state; - this.loadWaiterConfig(this.state); - }, - - service: null, - - state: null, - - config: null, - - matchers: { - path: function(resp, expected, argument) { - try { - var result = jmespath.search(resp.data, argument); - } catch (err) { - return false; - } - - return jmespath.strictDeepEqual(result,expected); - }, - - pathAll: function(resp, expected, argument) { - try { - var results = jmespath.search(resp.data, argument); - } catch (err) { - return false; - } - - if (!Array.isArray(results)) results = [results]; - var numResults = results.length; - if (!numResults) return false; - for (var ind = 0 ; ind < numResults; ind++) { - if (!jmespath.strictDeepEqual(results[ind], expected)) { - return false; - } - } - return true; - }, - - pathAny: function(resp, expected, argument) { - try { - var results = jmespath.search(resp.data, argument); - } catch (err) { - return false; - } - - if (!Array.isArray(results)) results = [results]; - var numResults = results.length; - for (var ind = 0 ; ind < numResults; ind++) { - if (jmespath.strictDeepEqual(results[ind], expected)) { - return true; - } - } - return false; - }, - - status: function(resp, expected) { - var statusCode = resp.httpResponse.statusCode; - return (typeof statusCode === 'number') && (statusCode === expected); - }, - - error: function(resp, expected) { - if (typeof expected === 'string' && resp.error) { - return expected === resp.error.code; - } - // if expected is not string, can be boolean indicating presence of error - return expected === !!resp.error; - } - }, - - listeners: new AWS.SequentialExecutor().addNamedListeners(function(add) { - add('RETRY_CHECK', 'retry', function(resp) { - var waiter = resp.request._waiter; - if (resp.error && resp.error.code === 'ResourceNotReady') { - resp.error.retryDelay = (waiter.config.delay || 0) * 1000; - } - }); - - add('CHECK_OUTPUT', 'extractData', CHECK_ACCEPTORS); - - add('CHECK_ERROR', 'extractError', CHECK_ACCEPTORS); - }), - - /** - * @return [AWS.Request] - */ - wait: function wait(params, callback) { - if (typeof params === 'function') { - callback = params; params = undefined; - } - - if (params && params.$waiter) { - params = AWS.util.copy(params); - if (typeof params.$waiter.delay === 'number') { - this.config.delay = params.$waiter.delay; - } - if (typeof params.$waiter.maxAttempts === 'number') { - this.config.maxAttempts = params.$waiter.maxAttempts; - } - delete params.$waiter; - } - - var request = this.service.makeRequest(this.config.operation, params); - request._waiter = this; - request.response.maxRetries = this.config.maxAttempts; - request.addListeners(this.listeners); - - if (callback) request.send(callback); - return request; - }, - - setSuccess: function setSuccess(resp) { - resp.error = null; - resp.data = resp.data || {}; - resp.request.removeAllListeners('extractData'); - }, - - setError: function setError(resp, retryable) { - resp.data = null; - resp.error = AWS.util.error(resp.error || new Error(), { - code: 'ResourceNotReady', - message: 'Resource is not in the state ' + this.state, - retryable: retryable - }); - }, - - /** - * Loads waiter configuration from API configuration - * - * @api private - */ - loadWaiterConfig: function loadWaiterConfig(state) { - if (!this.service.api.waiters[state]) { - throw new AWS.util.error(new Error(), { - code: 'StateNotFoundError', - message: 'State ' + state + ' not found.' - }); - } - - this.config = AWS.util.copy(this.service.api.waiters[state]); - } -}); - - -/***/ }), - -/***/ 30229: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var inherit = AWS.util.inherit; -var jmespath = __nccwpck_require__(7598); - -/** - * This class encapsulates the response information - * from a service request operation sent through {AWS.Request}. - * The response object has two main properties for getting information - * back from a request: - * - * ## The `data` property - * - * The `response.data` property contains the serialized object data - * retrieved from the service request. For instance, for an - * Amazon DynamoDB `listTables` method call, the response data might - * look like: - * - * ``` - * > resp.data - * { TableNames: - * [ 'table1', 'table2', ... ] } - * ``` - * - * The `data` property can be null if an error occurs (see below). - * - * ## The `error` property - * - * In the event of a service error (or transfer error), the - * `response.error` property will be filled with the given - * error data in the form: - * - * ``` - * { code: 'SHORT_UNIQUE_ERROR_CODE', - * message: 'Some human readable error message' } - * ``` - * - * In the case of an error, the `data` property will be `null`. - * Note that if you handle events that can be in a failure state, - * you should always check whether `response.error` is set - * before attempting to access the `response.data` property. - * - * @!attribute data - * @readonly - * @!group Data Properties - * @note Inside of a {AWS.Request~httpData} event, this - * property contains a single raw packet instead of the - * full de-serialized service response. - * @return [Object] the de-serialized response data - * from the service. - * - * @!attribute error - * An structure containing information about a service - * or networking error. - * @readonly - * @!group Data Properties - * @note This attribute is only filled if a service or - * networking error occurs. - * @return [Error] - * * code [String] a unique short code representing the - * error that was emitted. - * * message [String] a longer human readable error message - * * retryable [Boolean] whether the error message is - * retryable. - * * statusCode [Numeric] in the case of a request that reached the service, - * this value contains the response status code. - * * time [Date] the date time object when the error occurred. - * * hostname [String] set when a networking error occurs to easily - * identify the endpoint of the request. - * * region [String] set when a networking error occurs to easily - * identify the region of the request. - * - * @!attribute requestId - * @readonly - * @!group Data Properties - * @return [String] the unique request ID associated with the response. - * Log this value when debugging requests for AWS support. - * - * @!attribute retryCount - * @readonly - * @!group Operation Properties - * @return [Integer] the number of retries that were - * attempted before the request was completed. - * - * @!attribute redirectCount - * @readonly - * @!group Operation Properties - * @return [Integer] the number of redirects that were - * followed before the request was completed. - * - * @!attribute httpResponse - * @readonly - * @!group HTTP Properties - * @return [AWS.HttpResponse] the raw HTTP response object - * containing the response headers and body information - * from the server. - * - * @see AWS.Request - */ -AWS.Response = inherit({ - - /** - * @api private - */ - constructor: function Response(request) { - this.request = request; - this.data = null; - this.error = null; - this.retryCount = 0; - this.redirectCount = 0; - this.httpResponse = new AWS.HttpResponse(); - if (request) { - this.maxRetries = request.service.numRetries(); - this.maxRedirects = request.service.config.maxRedirects; - } - }, - - /** - * Creates a new request for the next page of response data, calling the - * callback with the page data if a callback is provided. - * - * @callback callback function(err, data) - * Called when a page of data is returned from the next request. - * - * @param err [Error] an error object, if an error occurred in the request - * @param data [Object] the next page of data, or null, if there are no - * more pages left. - * @return [AWS.Request] the request object for the next page of data - * @return [null] if no callback is provided and there are no pages left - * to retrieve. - * @since v1.4.0 - */ - nextPage: function nextPage(callback) { - var config; - var service = this.request.service; - var operation = this.request.operation; - try { - config = service.paginationConfig(operation, true); - } catch (e) { this.error = e; } - - if (!this.hasNextPage()) { - if (callback) callback(this.error, null); - else if (this.error) throw this.error; - return null; - } - - var params = AWS.util.copy(this.request.params); - if (!this.nextPageTokens) { - return callback ? callback(null, null) : null; - } else { - var inputTokens = config.inputToken; - if (typeof inputTokens === 'string') inputTokens = [inputTokens]; - for (var i = 0; i < inputTokens.length; i++) { - params[inputTokens[i]] = this.nextPageTokens[i]; - } - return service.makeRequest(this.request.operation, params, callback); - } - }, - - /** - * @return [Boolean] whether more pages of data can be returned by further - * requests - * @since v1.4.0 - */ - hasNextPage: function hasNextPage() { - this.cacheNextPageTokens(); - if (this.nextPageTokens) return true; - if (this.nextPageTokens === undefined) return undefined; - else return false; - }, - - /** - * @api private - */ - cacheNextPageTokens: function cacheNextPageTokens() { - if (Object.prototype.hasOwnProperty.call(this, 'nextPageTokens')) return this.nextPageTokens; - this.nextPageTokens = undefined; - - var config = this.request.service.paginationConfig(this.request.operation); - if (!config) return this.nextPageTokens; - - this.nextPageTokens = null; - if (config.moreResults) { - if (!jmespath.search(this.data, config.moreResults)) { - return this.nextPageTokens; - } - } - - var exprs = config.outputToken; - if (typeof exprs === 'string') exprs = [exprs]; - AWS.util.arrayEach.call(this, exprs, function (expr) { - var output = jmespath.search(this.data, expr); - if (output) { - this.nextPageTokens = this.nextPageTokens || []; - this.nextPageTokens.push(output); - } - }); - - return this.nextPageTokens; - } - -}); - - -/***/ }), - -/***/ 32412: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var byteLength = AWS.util.string.byteLength; -var Buffer = AWS.util.Buffer; - -/** - * The managed uploader allows for easy and efficient uploading of buffers, - * blobs, or streams, using a configurable amount of concurrency to perform - * multipart uploads where possible. This abstraction also enables uploading - * streams of unknown size due to the use of multipart uploads. - * - * To construct a managed upload object, see the {constructor} function. - * - * ## Tracking upload progress - * - * The managed upload object can also track progress by attaching an - * 'httpUploadProgress' listener to the upload manager. This event is similar - * to {AWS.Request~httpUploadProgress} but groups all concurrent upload progress - * into a single event. See {AWS.S3.ManagedUpload~httpUploadProgress} for more - * information. - * - * ## Handling Multipart Cleanup - * - * By default, this class will automatically clean up any multipart uploads - * when an individual part upload fails. This behavior can be disabled in order - * to manually handle failures by setting the `leavePartsOnError` configuration - * option to `true` when initializing the upload object. - * - * @!event httpUploadProgress(progress) - * Triggered when the uploader has uploaded more data. - * @note The `total` property may not be set if the stream being uploaded has - * not yet finished chunking. In this case the `total` will be undefined - * until the total stream size is known. - * @note This event will not be emitted in Node.js 0.8.x. - * @param progress [map] An object containing the `loaded` and `total` bytes - * of the request and the `key` of the S3 object. Note that `total` may be undefined until the payload - * size is known. - * @context (see AWS.Request~send) - */ -AWS.S3.ManagedUpload = AWS.util.inherit({ - /** - * Creates a managed upload object with a set of configuration options. - * - * @note A "Body" parameter is required to be set prior to calling {send}. - * @note In Node.js, sending "Body" as {https://nodejs.org/dist/latest/docs/api/stream.html#stream_object_mode object-mode stream} - * may result in upload hangs. Using buffer stream is preferable. - * @option options params [map] a map of parameters to pass to the upload - * requests. The "Body" parameter is required to be specified either on - * the service or in the params option. - * @note ContentMD5 should not be provided when using the managed upload object. - * Instead, setting "computeChecksums" to true will enable automatic ContentMD5 generation - * by the managed upload object. - * @option options queueSize [Number] (4) the size of the concurrent queue - * manager to upload parts in parallel. Set to 1 for synchronous uploading - * of parts. Note that the uploader will buffer at most queueSize * partSize - * bytes into memory at any given time. - * @option options partSize [Number] (5mb) the size in bytes for each - * individual part to be uploaded. Adjust the part size to ensure the number - * of parts does not exceed {maxTotalParts}. See {minPartSize} for the - * minimum allowed part size. - * @option options leavePartsOnError [Boolean] (false) whether to abort the - * multipart upload if an error occurs. Set to true if you want to handle - * failures manually. - * @option options service [AWS.S3] an optional S3 service object to use for - * requests. This object might have bound parameters used by the uploader. - * @option options tags [Array] The tags to apply to the uploaded object. - * Each tag should have a `Key` and `Value` keys. - * @example Creating a default uploader for a stream object - * var upload = new AWS.S3.ManagedUpload({ - * params: {Bucket: 'bucket', Key: 'key', Body: stream} - * }); - * @example Creating an uploader with concurrency of 1 and partSize of 10mb - * var upload = new AWS.S3.ManagedUpload({ - * partSize: 10 * 1024 * 1024, queueSize: 1, - * params: {Bucket: 'bucket', Key: 'key', Body: stream} - * }); - * @example Creating an uploader with tags - * var upload = new AWS.S3.ManagedUpload({ - * params: {Bucket: 'bucket', Key: 'key', Body: stream}, - * tags: [{Key: 'tag1', Value: 'value1'}, {Key: 'tag2', Value: 'value2'}] - * }); - * @see send - */ - constructor: function ManagedUpload(options) { - var self = this; - AWS.SequentialExecutor.call(self); - self.body = null; - self.sliceFn = null; - self.callback = null; - self.parts = {}; - self.completeInfo = []; - self.fillQueue = function() { - self.callback(new Error('Unsupported body payload ' + typeof self.body)); - }; - - self.configure(options); - }, - - /** - * @api private - */ - configure: function configure(options) { - options = options || {}; - this.partSize = this.minPartSize; - - if (options.queueSize) this.queueSize = options.queueSize; - if (options.partSize) this.partSize = options.partSize; - if (options.leavePartsOnError) this.leavePartsOnError = true; - if (options.tags) { - if (!Array.isArray(options.tags)) { - throw new Error('Tags must be specified as an array; ' + - typeof options.tags + ' provided.'); - } - this.tags = options.tags; - } - - if (this.partSize < this.minPartSize) { - throw new Error('partSize must be greater than ' + - this.minPartSize); - } - - this.service = options.service; - this.bindServiceObject(options.params); - this.validateBody(); - this.adjustTotalBytes(); - }, - - /** - * @api private - */ - leavePartsOnError: false, - - /** - * @api private - */ - queueSize: 4, - - /** - * @api private - */ - partSize: null, - - /** - * @readonly - * @return [Number] the minimum number of bytes for an individual part - * upload. - */ - minPartSize: 1024 * 1024 * 5, - - /** - * @readonly - * @return [Number] the maximum allowed number of parts in a multipart upload. - */ - maxTotalParts: 10000, - - /** - * Initiates the managed upload for the payload. - * - * @callback callback function(err, data) - * @param err [Error] an error or null if no error occurred. - * @param data [map] The response data from the successful upload: - * * `Location` (String) the URL of the uploaded object - * * `ETag` (String) the ETag of the uploaded object - * * `Bucket` (String) the bucket to which the object was uploaded - * * `Key` (String) the key to which the object was uploaded - * @example Sending a managed upload object - * var params = {Bucket: 'bucket', Key: 'key', Body: stream}; - * var upload = new AWS.S3.ManagedUpload({params: params}); - * upload.send(function(err, data) { - * console.log(err, data); - * }); - */ - send: function(callback) { - var self = this; - self.failed = false; - self.callback = callback || function(err) { if (err) throw err; }; - - var runFill = true; - if (self.sliceFn) { - self.fillQueue = self.fillBuffer; - } else if (AWS.util.isNode()) { - var Stream = AWS.util.stream.Stream; - if (self.body instanceof Stream) { - runFill = false; - self.fillQueue = self.fillStream; - self.partBuffers = []; - self.body. - on('error', function(err) { self.cleanup(err); }). - on('readable', function() { self.fillQueue(); }). - on('end', function() { - self.isDoneChunking = true; - self.numParts = self.totalPartNumbers; - self.fillQueue.call(self); - - if (self.isDoneChunking && self.totalPartNumbers >= 1 && self.doneParts === self.numParts) { - self.finishMultiPart(); - } - }); - } - } - - if (runFill) self.fillQueue.call(self); - }, - - /** - * @!method promise() - * Returns a 'thenable' promise. - * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @callback fulfilledCallback function(data) - * Called if the promise is fulfilled. - * @param data [map] The response data from the successful upload: - * `Location` (String) the URL of the uploaded object - * `ETag` (String) the ETag of the uploaded object - * `Bucket` (String) the bucket to which the object was uploaded - * `Key` (String) the key to which the object was uploaded - * @callback rejectedCallback function(err) - * Called if the promise is rejected. - * @param err [Error] an error or null if no error occurred. - * @return [Promise] A promise that represents the state of the upload request. - * @example Sending an upload request using promises. - * var upload = s3.upload({Bucket: 'bucket', Key: 'key', Body: stream}); - * var promise = upload.promise(); - * promise.then(function(data) { ... }, function(err) { ... }); - */ - - /** - * Aborts a managed upload, including all concurrent upload requests. - * @note By default, calling this function will cleanup a multipart upload - * if one was created. To leave the multipart upload around after aborting - * a request, configure `leavePartsOnError` to `true` in the {constructor}. - * @note Calling {abort} in the browser environment will not abort any requests - * that are already in flight. If a multipart upload was created, any parts - * not yet uploaded will not be sent, and the multipart upload will be cleaned up. - * @example Aborting an upload - * var params = { - * Bucket: 'bucket', Key: 'key', - * Body: Buffer.alloc(1024 * 1024 * 25) // 25MB payload - * }; - * var upload = s3.upload(params); - * upload.send(function (err, data) { - * if (err) console.log("Error:", err.code, err.message); - * else console.log(data); - * }); - * - * // abort request in 1 second - * setTimeout(upload.abort.bind(upload), 1000); - */ - abort: function() { - var self = this; - //abort putObject request - if (self.isDoneChunking === true && self.totalPartNumbers === 1 && self.singlePart) { - self.singlePart.abort(); - } else { - self.cleanup(AWS.util.error(new Error('Request aborted by user'), { - code: 'RequestAbortedError', retryable: false - })); - } - }, - - /** - * @api private - */ - validateBody: function validateBody() { - var self = this; - self.body = self.service.config.params.Body; - if (typeof self.body === 'string') { - self.body = AWS.util.buffer.toBuffer(self.body); - } else if (!self.body) { - throw new Error('params.Body is required'); - } - self.sliceFn = AWS.util.arraySliceFn(self.body); - }, - - /** - * @api private - */ - bindServiceObject: function bindServiceObject(params) { - params = params || {}; - var self = this; - // bind parameters to new service object - if (!self.service) { - self.service = new AWS.S3({params: params}); - } else { - // Create a new S3 client from the supplied client's constructor. - var service = self.service; - var config = AWS.util.copy(service.config); - config.signatureVersion = service.getSignatureVersion(); - self.service = new service.constructor.__super__(config); - self.service.config.params = - AWS.util.merge(self.service.config.params || {}, params); - Object.defineProperty(self.service, '_originalConfig', { - get: function() { return service._originalConfig; }, - enumerable: false, - configurable: true - }); - } - }, - - /** - * @api private - */ - adjustTotalBytes: function adjustTotalBytes() { - var self = this; - try { // try to get totalBytes - self.totalBytes = byteLength(self.body); - } catch (e) { } - - // try to adjust partSize if we know payload length - if (self.totalBytes) { - var newPartSize = Math.ceil(self.totalBytes / self.maxTotalParts); - if (newPartSize > self.partSize) self.partSize = newPartSize; - } else { - self.totalBytes = undefined; - } - }, - - /** - * @api private - */ - isDoneChunking: false, - - /** - * @api private - */ - partPos: 0, - - /** - * @api private - */ - totalChunkedBytes: 0, - - /** - * @api private - */ - totalUploadedBytes: 0, - - /** - * @api private - */ - totalBytes: undefined, - - /** - * @api private - */ - numParts: 0, - - /** - * @api private - */ - totalPartNumbers: 0, - - /** - * @api private - */ - activeParts: 0, - - /** - * @api private - */ - doneParts: 0, - - /** - * @api private - */ - parts: null, - - /** - * @api private - */ - completeInfo: null, - - /** - * @api private - */ - failed: false, - - /** - * @api private - */ - multipartReq: null, - - /** - * @api private - */ - partBuffers: null, - - /** - * @api private - */ - partBufferLength: 0, - - /** - * @api private - */ - fillBuffer: function fillBuffer() { - var self = this; - var bodyLen = byteLength(self.body); - - if (bodyLen === 0) { - self.isDoneChunking = true; - self.numParts = 1; - self.nextChunk(self.body); - return; - } - - while (self.activeParts < self.queueSize && self.partPos < bodyLen) { - var endPos = Math.min(self.partPos + self.partSize, bodyLen); - var buf = self.sliceFn.call(self.body, self.partPos, endPos); - self.partPos += self.partSize; - - if (byteLength(buf) < self.partSize || self.partPos === bodyLen) { - self.isDoneChunking = true; - self.numParts = self.totalPartNumbers + 1; - } - self.nextChunk(buf); - } - }, - - /** - * @api private - */ - fillStream: function fillStream() { - var self = this; - if (self.activeParts >= self.queueSize) return; - - var buf = self.body.read(self.partSize - self.partBufferLength) || - self.body.read(); - if (buf) { - self.partBuffers.push(buf); - self.partBufferLength += buf.length; - self.totalChunkedBytes += buf.length; - } - - if (self.partBufferLength >= self.partSize) { - // if we have single buffer we avoid copyfull concat - var pbuf = self.partBuffers.length === 1 ? - self.partBuffers[0] : Buffer.concat(self.partBuffers); - self.partBuffers = []; - self.partBufferLength = 0; - - // if we have more than partSize, push the rest back on the queue - if (pbuf.length > self.partSize) { - var rest = pbuf.slice(self.partSize); - self.partBuffers.push(rest); - self.partBufferLength += rest.length; - pbuf = pbuf.slice(0, self.partSize); - } - - self.nextChunk(pbuf); - } - - if (self.isDoneChunking && !self.isDoneSending) { - // if we have single buffer we avoid copyfull concat - pbuf = self.partBuffers.length === 1 ? - self.partBuffers[0] : Buffer.concat(self.partBuffers); - self.partBuffers = []; - self.partBufferLength = 0; - self.totalBytes = self.totalChunkedBytes; - self.isDoneSending = true; - - if (self.numParts === 0 || pbuf.length > 0) { - self.numParts++; - self.nextChunk(pbuf); - } - } - - self.body.read(0); - }, - - /** - * @api private - */ - nextChunk: function nextChunk(chunk) { - var self = this; - if (self.failed) return null; - - var partNumber = ++self.totalPartNumbers; - if (self.isDoneChunking && partNumber === 1) { - var params = {Body: chunk}; - if (this.tags) { - params.Tagging = this.getTaggingHeader(); - } - var req = self.service.putObject(params); - req._managedUpload = self; - req.on('httpUploadProgress', self.progress).send(self.finishSinglePart); - self.singlePart = req; //save the single part request - return null; - } else if (self.service.config.params.ContentMD5) { - var err = AWS.util.error(new Error('The Content-MD5 you specified is invalid for multi-part uploads.'), { - code: 'InvalidDigest', retryable: false - }); - - self.cleanup(err); - return null; - } - - if (self.completeInfo[partNumber] && self.completeInfo[partNumber].ETag !== null) { - return null; // Already uploaded this part. - } - - self.activeParts++; - if (!self.service.config.params.UploadId) { - - if (!self.multipartReq) { // create multipart - self.multipartReq = self.service.createMultipartUpload(); - self.multipartReq.on('success', function(resp) { - self.service.config.params.UploadId = resp.data.UploadId; - self.multipartReq = null; - }); - self.queueChunks(chunk, partNumber); - self.multipartReq.on('error', function(err) { - self.cleanup(err); - }); - self.multipartReq.send(); - } else { - self.queueChunks(chunk, partNumber); - } - } else { // multipart is created, just send - self.uploadPart(chunk, partNumber); - } - }, - - /** - * @api private - */ - getTaggingHeader: function getTaggingHeader() { - var kvPairStrings = []; - for (var i = 0; i < this.tags.length; i++) { - kvPairStrings.push(AWS.util.uriEscape(this.tags[i].Key) + '=' + - AWS.util.uriEscape(this.tags[i].Value)); - } - - return kvPairStrings.join('&'); - }, - - /** - * @api private - */ - uploadPart: function uploadPart(chunk, partNumber) { - var self = this; - - var partParams = { - Body: chunk, - ContentLength: AWS.util.string.byteLength(chunk), - PartNumber: partNumber - }; - - var partInfo = {ETag: null, PartNumber: partNumber}; - self.completeInfo[partNumber] = partInfo; - - var req = self.service.uploadPart(partParams); - self.parts[partNumber] = req; - req._lastUploadedBytes = 0; - req._managedUpload = self; - req.on('httpUploadProgress', self.progress); - req.send(function(err, data) { - delete self.parts[partParams.PartNumber]; - self.activeParts--; - - if (!err && (!data || !data.ETag)) { - var message = 'No access to ETag property on response.'; - if (AWS.util.isBrowser()) { - message += ' Check CORS configuration to expose ETag header.'; - } - - err = AWS.util.error(new Error(message), { - code: 'ETagMissing', retryable: false - }); - } - if (err) return self.cleanup(err); - //prevent sending part being returned twice (https://github.com/aws/aws-sdk-js/issues/2304) - if (self.completeInfo[partNumber] && self.completeInfo[partNumber].ETag !== null) return null; - partInfo.ETag = data.ETag; - self.doneParts++; - if (self.isDoneChunking && self.doneParts === self.totalPartNumbers) { - self.finishMultiPart(); - } else { - self.fillQueue.call(self); - } - }); - }, - - /** - * @api private - */ - queueChunks: function queueChunks(chunk, partNumber) { - var self = this; - self.multipartReq.on('success', function() { - self.uploadPart(chunk, partNumber); - }); - }, - - /** - * @api private - */ - cleanup: function cleanup(err) { - var self = this; - if (self.failed) return; - - // clean up stream - if (typeof self.body.removeAllListeners === 'function' && - typeof self.body.resume === 'function') { - self.body.removeAllListeners('readable'); - self.body.removeAllListeners('end'); - self.body.resume(); - } - - // cleanup multipartReq listeners - if (self.multipartReq) { - self.multipartReq.removeAllListeners('success'); - self.multipartReq.removeAllListeners('error'); - self.multipartReq.removeAllListeners('complete'); - delete self.multipartReq; - } - - if (self.service.config.params.UploadId && !self.leavePartsOnError) { - self.service.abortMultipartUpload().send(); - } else if (self.leavePartsOnError) { - self.isDoneChunking = false; - } - - AWS.util.each(self.parts, function(partNumber, part) { - part.removeAllListeners('complete'); - part.abort(); - }); - - self.activeParts = 0; - self.partPos = 0; - self.numParts = 0; - self.totalPartNumbers = 0; - self.parts = {}; - self.failed = true; - self.callback(err); - }, - - /** - * @api private - */ - finishMultiPart: function finishMultiPart() { - var self = this; - var completeParams = { MultipartUpload: { Parts: self.completeInfo.slice(1) } }; - self.service.completeMultipartUpload(completeParams, function(err, data) { - if (err) { - return self.cleanup(err); - } - - if (data && typeof data.Location === 'string') { - data.Location = data.Location.replace(/%2F/g, '/'); - } - - if (Array.isArray(self.tags)) { - for (var i = 0; i < self.tags.length; i++) { - self.tags[i].Value = String(self.tags[i].Value); - } - self.service.putObjectTagging( - {Tagging: {TagSet: self.tags}}, - function(e, d) { - if (e) { - self.callback(e); - } else { - self.callback(e, data); - } - } - ); - } else { - self.callback(err, data); - } - }); - }, - - /** - * @api private - */ - finishSinglePart: function finishSinglePart(err, data) { - var upload = this.request._managedUpload; - var httpReq = this.request.httpRequest; - var endpoint = httpReq.endpoint; - if (err) return upload.callback(err); - data.Location = - [endpoint.protocol, '//', endpoint.host, httpReq.path].join(''); - data.key = this.request.params.Key; // will stay undocumented - data.Key = this.request.params.Key; - data.Bucket = this.request.params.Bucket; - upload.callback(err, data); - }, - - /** - * @api private - */ - progress: function progress(info) { - var upload = this._managedUpload; - if (this.operation === 'putObject') { - info.part = 1; - info.key = this.params.Key; - } else { - upload.totalUploadedBytes += info.loaded - this._lastUploadedBytes; - this._lastUploadedBytes = info.loaded; - info = { - loaded: upload.totalUploadedBytes, - total: upload.totalBytes, - part: this.params.PartNumber, - key: this.params.Key - }; - } - upload.emit('httpUploadProgress', [info]); - } -}); - -AWS.util.mixin(AWS.S3.ManagedUpload, AWS.SequentialExecutor); - -/** - * @api private - */ -AWS.S3.ManagedUpload.addPromisesToClass = function addPromisesToClass(PromiseDependency) { - this.prototype.promise = AWS.util.promisifyMethod('send', PromiseDependency); -}; - -/** - * @api private - */ -AWS.S3.ManagedUpload.deletePromisesFromClass = function deletePromisesFromClass() { - delete this.prototype.promise; -}; - -AWS.util.addPromises(AWS.S3.ManagedUpload); - -/** - * @api private - */ -module.exports = AWS.S3.ManagedUpload; - - -/***/ }), - -/***/ 81525: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -/** - * @api private - * @!method on(eventName, callback) - * Registers an event listener callback for the event given by `eventName`. - * Parameters passed to the callback function depend on the individual event - * being triggered. See the event documentation for those parameters. - * - * @param eventName [String] the event name to register the listener for - * @param callback [Function] the listener callback function - * @param toHead [Boolean] attach the listener callback to the head of callback array if set to true. - * Default to be false. - * @return [AWS.SequentialExecutor] the same object for chaining - */ -AWS.SequentialExecutor = AWS.util.inherit({ - - constructor: function SequentialExecutor() { - this._events = {}; - }, - - /** - * @api private - */ - listeners: function listeners(eventName) { - return this._events[eventName] ? this._events[eventName].slice(0) : []; - }, - - on: function on(eventName, listener, toHead) { - if (this._events[eventName]) { - toHead ? - this._events[eventName].unshift(listener) : - this._events[eventName].push(listener); - } else { - this._events[eventName] = [listener]; - } - return this; - }, - - onAsync: function onAsync(eventName, listener, toHead) { - listener._isAsync = true; - return this.on(eventName, listener, toHead); - }, - - removeListener: function removeListener(eventName, listener) { - var listeners = this._events[eventName]; - if (listeners) { - var length = listeners.length; - var position = -1; - for (var i = 0; i < length; ++i) { - if (listeners[i] === listener) { - position = i; - } - } - if (position > -1) { - listeners.splice(position, 1); - } - } - return this; - }, - - removeAllListeners: function removeAllListeners(eventName) { - if (eventName) { - delete this._events[eventName]; - } else { - this._events = {}; - } - return this; - }, - - /** - * @api private - */ - emit: function emit(eventName, eventArgs, doneCallback) { - if (!doneCallback) doneCallback = function() { }; - var listeners = this.listeners(eventName); - var count = listeners.length; - this.callListeners(listeners, eventArgs, doneCallback); - return count > 0; - }, - - /** - * @api private - */ - callListeners: function callListeners(listeners, args, doneCallback, prevError) { - var self = this; - var error = prevError || null; - - function callNextListener(err) { - if (err) { - error = AWS.util.error(error || new Error(), err); - if (self._haltHandlersOnError) { - return doneCallback.call(self, error); - } - } - self.callListeners(listeners, args, doneCallback, error); - } - - while (listeners.length > 0) { - var listener = listeners.shift(); - if (listener._isAsync) { // asynchronous listener - listener.apply(self, args.concat([callNextListener])); - return; // stop here, callNextListener will continue - } else { // synchronous listener - try { - listener.apply(self, args); - } catch (err) { - error = AWS.util.error(error || new Error(), err); - } - if (error && self._haltHandlersOnError) { - doneCallback.call(self, error); - return; - } - } - } - doneCallback.call(self, error); - }, - - /** - * Adds or copies a set of listeners from another list of - * listeners or SequentialExecutor object. - * - * @param listeners [map>, AWS.SequentialExecutor] - * a list of events and callbacks, or an event emitter object - * containing listeners to add to this emitter object. - * @return [AWS.SequentialExecutor] the emitter object, for chaining. - * @example Adding listeners from a map of listeners - * emitter.addListeners({ - * event1: [function() { ... }, function() { ... }], - * event2: [function() { ... }] - * }); - * emitter.emit('event1'); // emitter has event1 - * emitter.emit('event2'); // emitter has event2 - * @example Adding listeners from another emitter object - * var emitter1 = new AWS.SequentialExecutor(); - * emitter1.on('event1', function() { ... }); - * emitter1.on('event2', function() { ... }); - * var emitter2 = new AWS.SequentialExecutor(); - * emitter2.addListeners(emitter1); - * emitter2.emit('event1'); // emitter2 has event1 - * emitter2.emit('event2'); // emitter2 has event2 - */ - addListeners: function addListeners(listeners) { - var self = this; - - // extract listeners if parameter is an SequentialExecutor object - if (listeners._events) listeners = listeners._events; - - AWS.util.each(listeners, function(event, callbacks) { - if (typeof callbacks === 'function') callbacks = [callbacks]; - AWS.util.arrayEach(callbacks, function(callback) { - self.on(event, callback); - }); - }); - - return self; - }, - - /** - * Registers an event with {on} and saves the callback handle function - * as a property on the emitter object using a given `name`. - * - * @param name [String] the property name to set on this object containing - * the callback function handle so that the listener can be removed in - * the future. - * @param (see on) - * @return (see on) - * @example Adding a named listener DATA_CALLBACK - * var listener = function() { doSomething(); }; - * emitter.addNamedListener('DATA_CALLBACK', 'data', listener); - * - * // the following prints: true - * console.log(emitter.DATA_CALLBACK == listener); - */ - addNamedListener: function addNamedListener(name, eventName, callback, toHead) { - this[name] = callback; - this.addListener(eventName, callback, toHead); - return this; - }, - - /** - * @api private - */ - addNamedAsyncListener: function addNamedAsyncListener(name, eventName, callback, toHead) { - callback._isAsync = true; - return this.addNamedListener(name, eventName, callback, toHead); - }, - - /** - * Helper method to add a set of named listeners using - * {addNamedListener}. The callback contains a parameter - * with a handle to the `addNamedListener` method. - * - * @callback callback function(add) - * The callback function is called immediately in order to provide - * the `add` function to the block. This simplifies the addition of - * a large group of named listeners. - * @param add [Function] the {addNamedListener} function to call - * when registering listeners. - * @example Adding a set of named listeners - * emitter.addNamedListeners(function(add) { - * add('DATA_CALLBACK', 'data', function() { ... }); - * add('OTHER', 'otherEvent', function() { ... }); - * add('LAST', 'lastEvent', function() { ... }); - * }); - * - * // these properties are now set: - * emitter.DATA_CALLBACK; - * emitter.OTHER; - * emitter.LAST; - */ - addNamedListeners: function addNamedListeners(callback) { - var self = this; - callback( - function() { - self.addNamedListener.apply(self, arguments); - }, - function() { - self.addNamedAsyncListener.apply(self, arguments); - } - ); - return this; - } -}); - -/** - * {on} is the prefered method. - * @api private - */ -AWS.SequentialExecutor.prototype.addListener = AWS.SequentialExecutor.prototype.on; - -/** - * @api private - */ -module.exports = AWS.SequentialExecutor; - - -/***/ }), - -/***/ 54263: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var Api = __nccwpck_require__(38738); -var regionConfig = __nccwpck_require__(48603); - -var inherit = AWS.util.inherit; -var clientCount = 0; -var region_utils = __nccwpck_require__(53412); - -/** - * The service class representing an AWS service. - * - * @class_abstract This class is an abstract class. - * - * @!attribute apiVersions - * @return [Array] the list of API versions supported by this service. - * @readonly - */ -AWS.Service = inherit({ - /** - * Create a new service object with a configuration object - * - * @param config [map] a map of configuration options - */ - constructor: function Service(config) { - if (!this.loadServiceClass) { - throw AWS.util.error(new Error(), - 'Service must be constructed with `new\' operator'); - } - - if (config) { - if (config.region) { - var region = config.region; - if (region_utils.isFipsRegion(region)) { - config.region = region_utils.getRealRegion(region); - config.useFipsEndpoint = true; - } - if (region_utils.isGlobalRegion(region)) { - config.region = region_utils.getRealRegion(region); - } - } - if (typeof config.useDualstack === 'boolean' - && typeof config.useDualstackEndpoint !== 'boolean') { - config.useDualstackEndpoint = config.useDualstack; - } - } - - var ServiceClass = this.loadServiceClass(config || {}); - if (ServiceClass) { - var originalConfig = AWS.util.copy(config); - var svc = new ServiceClass(config); - Object.defineProperty(svc, '_originalConfig', { - get: function() { return originalConfig; }, - enumerable: false, - configurable: true - }); - svc._clientId = ++clientCount; - return svc; - } - this.initialize(config); - }, - - /** - * @api private - */ - initialize: function initialize(config) { - var svcConfig = AWS.config[this.serviceIdentifier]; - this.config = new AWS.Config(AWS.config); - if (svcConfig) this.config.update(svcConfig, true); - if (config) this.config.update(config, true); - - this.validateService(); - if (!this.config.endpoint) regionConfig.configureEndpoint(this); - - this.config.endpoint = this.endpointFromTemplate(this.config.endpoint); - this.setEndpoint(this.config.endpoint); - //enable attaching listeners to service client - AWS.SequentialExecutor.call(this); - AWS.Service.addDefaultMonitoringListeners(this); - if ((this.config.clientSideMonitoring || AWS.Service._clientSideMonitoring) && this.publisher) { - var publisher = this.publisher; - this.addNamedListener('PUBLISH_API_CALL', 'apiCall', function PUBLISH_API_CALL(event) { - process.nextTick(function() {publisher.eventHandler(event);}); - }); - this.addNamedListener('PUBLISH_API_ATTEMPT', 'apiCallAttempt', function PUBLISH_API_ATTEMPT(event) { - process.nextTick(function() {publisher.eventHandler(event);}); - }); - } - }, - - /** - * @api private - */ - validateService: function validateService() { - }, - - /** - * @api private - */ - loadServiceClass: function loadServiceClass(serviceConfig) { - var config = serviceConfig; - if (!AWS.util.isEmpty(this.api)) { - return null; - } else if (config.apiConfig) { - return AWS.Service.defineServiceApi(this.constructor, config.apiConfig); - } else if (!this.constructor.services) { - return null; - } else { - config = new AWS.Config(AWS.config); - config.update(serviceConfig, true); - var version = config.apiVersions[this.constructor.serviceIdentifier]; - version = version || config.apiVersion; - return this.getLatestServiceClass(version); - } - }, - - /** - * @api private - */ - getLatestServiceClass: function getLatestServiceClass(version) { - version = this.getLatestServiceVersion(version); - if (this.constructor.services[version] === null) { - AWS.Service.defineServiceApi(this.constructor, version); - } - - return this.constructor.services[version]; - }, - - /** - * @api private - */ - getLatestServiceVersion: function getLatestServiceVersion(version) { - if (!this.constructor.services || this.constructor.services.length === 0) { - throw new Error('No services defined on ' + - this.constructor.serviceIdentifier); - } - - if (!version) { - version = 'latest'; - } else if (AWS.util.isType(version, Date)) { - version = AWS.util.date.iso8601(version).split('T')[0]; - } - - if (Object.hasOwnProperty(this.constructor.services, version)) { - return version; - } - - var keys = Object.keys(this.constructor.services).sort(); - var selectedVersion = null; - for (var i = keys.length - 1; i >= 0; i--) { - // versions that end in "*" are not available on disk and can be - // skipped, so do not choose these as selectedVersions - if (keys[i][keys[i].length - 1] !== '*') { - selectedVersion = keys[i]; - } - if (keys[i].substr(0, 10) <= version) { - return selectedVersion; - } - } - - throw new Error('Could not find ' + this.constructor.serviceIdentifier + - ' API to satisfy version constraint `' + version + '\''); - }, - - /** - * @api private - */ - api: {}, - - /** - * @api private - */ - defaultRetryCount: 3, - - /** - * @api private - */ - customizeRequests: function customizeRequests(callback) { - if (!callback) { - this.customRequestHandler = null; - } else if (typeof callback === 'function') { - this.customRequestHandler = callback; - } else { - throw new Error('Invalid callback type \'' + typeof callback + '\' provided in customizeRequests'); - } - }, - - /** - * Calls an operation on a service with the given input parameters. - * - * @param operation [String] the name of the operation to call on the service. - * @param params [map] a map of input options for the operation - * @callback callback function(err, data) - * If a callback is supplied, it is called when a response is returned - * from the service. - * @param err [Error] the error object returned from the request. - * Set to `null` if the request is successful. - * @param data [Object] the de-serialized data returned from - * the request. Set to `null` if a request error occurs. - */ - makeRequest: function makeRequest(operation, params, callback) { - if (typeof params === 'function') { - callback = params; - params = null; - } - - params = params || {}; - if (this.config.params) { // copy only toplevel bound params - var rules = this.api.operations[operation]; - if (rules) { - params = AWS.util.copy(params); - AWS.util.each(this.config.params, function(key, value) { - if (rules.input.members[key]) { - if (params[key] === undefined || params[key] === null) { - params[key] = value; - } - } - }); - } - } - - var request = new AWS.Request(this, operation, params); - this.addAllRequestListeners(request); - this.attachMonitoringEmitter(request); - if (callback) request.send(callback); - return request; - }, - - /** - * Calls an operation on a service with the given input parameters, without - * any authentication data. This method is useful for "public" API operations. - * - * @param operation [String] the name of the operation to call on the service. - * @param params [map] a map of input options for the operation - * @callback callback function(err, data) - * If a callback is supplied, it is called when a response is returned - * from the service. - * @param err [Error] the error object returned from the request. - * Set to `null` if the request is successful. - * @param data [Object] the de-serialized data returned from - * the request. Set to `null` if a request error occurs. - */ - makeUnauthenticatedRequest: function makeUnauthenticatedRequest(operation, params, callback) { - if (typeof params === 'function') { - callback = params; - params = {}; - } - - var request = this.makeRequest(operation, params).toUnauthenticated(); - return callback ? request.send(callback) : request; - }, - - /** - * Waits for a given state - * - * @param state [String] the state on the service to wait for - * @param params [map] a map of parameters to pass with each request - * @option params $waiter [map] a map of configuration options for the waiter - * @option params $waiter.delay [Number] The number of seconds to wait between - * requests - * @option params $waiter.maxAttempts [Number] The maximum number of requests - * to send while waiting - * @callback callback function(err, data) - * If a callback is supplied, it is called when a response is returned - * from the service. - * @param err [Error] the error object returned from the request. - * Set to `null` if the request is successful. - * @param data [Object] the de-serialized data returned from - * the request. Set to `null` if a request error occurs. - */ - waitFor: function waitFor(state, params, callback) { - var waiter = new AWS.ResourceWaiter(this, state); - return waiter.wait(params, callback); - }, - - /** - * @api private - */ - addAllRequestListeners: function addAllRequestListeners(request) { - var list = [AWS.events, AWS.EventListeners.Core, this.serviceInterface(), - AWS.EventListeners.CorePost]; - for (var i = 0; i < list.length; i++) { - if (list[i]) request.addListeners(list[i]); - } - - // disable parameter validation - if (!this.config.paramValidation) { - request.removeListener('validate', - AWS.EventListeners.Core.VALIDATE_PARAMETERS); - } - - if (this.config.logger) { // add logging events - request.addListeners(AWS.EventListeners.Logger); - } - - this.setupRequestListeners(request); - // call prototype's customRequestHandler - if (typeof this.constructor.prototype.customRequestHandler === 'function') { - this.constructor.prototype.customRequestHandler(request); - } - // call instance's customRequestHandler - if (Object.prototype.hasOwnProperty.call(this, 'customRequestHandler') && typeof this.customRequestHandler === 'function') { - this.customRequestHandler(request); - } - }, - - /** - * Event recording metrics for a whole API call. - * @returns {object} a subset of api call metrics - * @api private - */ - apiCallEvent: function apiCallEvent(request) { - var api = request.service.api.operations[request.operation]; - var monitoringEvent = { - Type: 'ApiCall', - Api: api ? api.name : request.operation, - Version: 1, - Service: request.service.api.serviceId || request.service.api.endpointPrefix, - Region: request.httpRequest.region, - MaxRetriesExceeded: 0, - UserAgent: request.httpRequest.getUserAgent(), - }; - var response = request.response; - if (response.httpResponse.statusCode) { - monitoringEvent.FinalHttpStatusCode = response.httpResponse.statusCode; - } - if (response.error) { - var error = response.error; - var statusCode = response.httpResponse.statusCode; - if (statusCode > 299) { - if (error.code) monitoringEvent.FinalAwsException = error.code; - if (error.message) monitoringEvent.FinalAwsExceptionMessage = error.message; - } else { - if (error.code || error.name) monitoringEvent.FinalSdkException = error.code || error.name; - if (error.message) monitoringEvent.FinalSdkExceptionMessage = error.message; - } - } - return monitoringEvent; - }, - - /** - * Event recording metrics for an API call attempt. - * @returns {object} a subset of api call attempt metrics - * @api private - */ - apiAttemptEvent: function apiAttemptEvent(request) { - var api = request.service.api.operations[request.operation]; - var monitoringEvent = { - Type: 'ApiCallAttempt', - Api: api ? api.name : request.operation, - Version: 1, - Service: request.service.api.serviceId || request.service.api.endpointPrefix, - Fqdn: request.httpRequest.endpoint.hostname, - UserAgent: request.httpRequest.getUserAgent(), - }; - var response = request.response; - if (response.httpResponse.statusCode) { - monitoringEvent.HttpStatusCode = response.httpResponse.statusCode; - } - if ( - !request._unAuthenticated && - request.service.config.credentials && - request.service.config.credentials.accessKeyId - ) { - monitoringEvent.AccessKey = request.service.config.credentials.accessKeyId; - } - if (!response.httpResponse.headers) return monitoringEvent; - if (request.httpRequest.headers['x-amz-security-token']) { - monitoringEvent.SessionToken = request.httpRequest.headers['x-amz-security-token']; - } - if (response.httpResponse.headers['x-amzn-requestid']) { - monitoringEvent.XAmznRequestId = response.httpResponse.headers['x-amzn-requestid']; - } - if (response.httpResponse.headers['x-amz-request-id']) { - monitoringEvent.XAmzRequestId = response.httpResponse.headers['x-amz-request-id']; - } - if (response.httpResponse.headers['x-amz-id-2']) { - monitoringEvent.XAmzId2 = response.httpResponse.headers['x-amz-id-2']; - } - return monitoringEvent; - }, - - /** - * Add metrics of failed request. - * @api private - */ - attemptFailEvent: function attemptFailEvent(request) { - var monitoringEvent = this.apiAttemptEvent(request); - var response = request.response; - var error = response.error; - if (response.httpResponse.statusCode > 299 ) { - if (error.code) monitoringEvent.AwsException = error.code; - if (error.message) monitoringEvent.AwsExceptionMessage = error.message; - } else { - if (error.code || error.name) monitoringEvent.SdkException = error.code || error.name; - if (error.message) monitoringEvent.SdkExceptionMessage = error.message; - } - return monitoringEvent; - }, - - /** - * Attach listeners to request object to fetch metrics of each request - * and emit data object through \'ApiCall\' and \'ApiCallAttempt\' events. - * @api private - */ - attachMonitoringEmitter: function attachMonitoringEmitter(request) { - var attemptTimestamp; //timestamp marking the beginning of a request attempt - var attemptStartRealTime; //Start time of request attempt. Used to calculating attemptLatency - var attemptLatency; //latency from request sent out to http response reaching SDK - var callStartRealTime; //Start time of API call. Used to calculating API call latency - var attemptCount = 0; //request.retryCount is not reliable here - var region; //region cache region for each attempt since it can be updated in plase (e.g. s3) - var callTimestamp; //timestamp when the request is created - var self = this; - var addToHead = true; - - request.on('validate', function () { - callStartRealTime = AWS.util.realClock.now(); - callTimestamp = Date.now(); - }, addToHead); - request.on('sign', function () { - attemptStartRealTime = AWS.util.realClock.now(); - attemptTimestamp = Date.now(); - region = request.httpRequest.region; - attemptCount++; - }, addToHead); - request.on('validateResponse', function() { - attemptLatency = Math.round(AWS.util.realClock.now() - attemptStartRealTime); - }); - request.addNamedListener('API_CALL_ATTEMPT', 'success', function API_CALL_ATTEMPT() { - var apiAttemptEvent = self.apiAttemptEvent(request); - apiAttemptEvent.Timestamp = attemptTimestamp; - apiAttemptEvent.AttemptLatency = attemptLatency >= 0 ? attemptLatency : 0; - apiAttemptEvent.Region = region; - self.emit('apiCallAttempt', [apiAttemptEvent]); - }); - request.addNamedListener('API_CALL_ATTEMPT_RETRY', 'retry', function API_CALL_ATTEMPT_RETRY() { - var apiAttemptEvent = self.attemptFailEvent(request); - apiAttemptEvent.Timestamp = attemptTimestamp; - //attemptLatency may not be available if fail before response - attemptLatency = attemptLatency || - Math.round(AWS.util.realClock.now() - attemptStartRealTime); - apiAttemptEvent.AttemptLatency = attemptLatency >= 0 ? attemptLatency : 0; - apiAttemptEvent.Region = region; - self.emit('apiCallAttempt', [apiAttemptEvent]); - }); - request.addNamedListener('API_CALL', 'complete', function API_CALL() { - var apiCallEvent = self.apiCallEvent(request); - apiCallEvent.AttemptCount = attemptCount; - if (apiCallEvent.AttemptCount <= 0) return; - apiCallEvent.Timestamp = callTimestamp; - var latency = Math.round(AWS.util.realClock.now() - callStartRealTime); - apiCallEvent.Latency = latency >= 0 ? latency : 0; - var response = request.response; - if ( - response.error && - response.error.retryable && - typeof response.retryCount === 'number' && - typeof response.maxRetries === 'number' && - (response.retryCount >= response.maxRetries) - ) { - apiCallEvent.MaxRetriesExceeded = 1; - } - self.emit('apiCall', [apiCallEvent]); - }); - }, - - /** - * Override this method to setup any custom request listeners for each - * new request to the service. - * - * @method_abstract This is an abstract method. - */ - setupRequestListeners: function setupRequestListeners(request) { - }, - - /** - * Gets the signing name for a given request - * @api private - */ - getSigningName: function getSigningName() { - return this.api.signingName || this.api.endpointPrefix; - }, - - /** - * Gets the signer class for a given request - * @api private - */ - getSignerClass: function getSignerClass(request) { - var version; - // get operation authtype if present - var operation = null; - var authtype = ''; - if (request) { - var operations = request.service.api.operations || {}; - operation = operations[request.operation] || null; - authtype = operation ? operation.authtype : ''; - } - if (this.config.signatureVersion) { - version = this.config.signatureVersion; - } else if (authtype === 'v4' || authtype === 'v4-unsigned-body') { - version = 'v4'; - } else if (authtype === 'bearer') { - version = 'bearer'; - } else { - version = this.api.signatureVersion; - } - return AWS.Signers.RequestSigner.getVersion(version); - }, - - /** - * @api private - */ - serviceInterface: function serviceInterface() { - switch (this.api.protocol) { - case 'ec2': return AWS.EventListeners.Query; - case 'query': return AWS.EventListeners.Query; - case 'json': return AWS.EventListeners.Json; - case 'rest-json': return AWS.EventListeners.RestJson; - case 'rest-xml': return AWS.EventListeners.RestXml; - } - if (this.api.protocol) { - throw new Error('Invalid service `protocol\' ' + - this.api.protocol + ' in API config'); - } - }, - - /** - * @api private - */ - successfulResponse: function successfulResponse(resp) { - return resp.httpResponse.statusCode < 300; - }, - - /** - * How many times a failed request should be retried before giving up. - * the defaultRetryCount can be overriden by service classes. - * - * @api private - */ - numRetries: function numRetries() { - if (this.config.maxRetries !== undefined) { - return this.config.maxRetries; - } else { - return this.defaultRetryCount; - } - }, - - /** - * @api private - */ - retryDelays: function retryDelays(retryCount, err) { - return AWS.util.calculateRetryDelay(retryCount, this.config.retryDelayOptions, err); - }, - - /** - * @api private - */ - retryableError: function retryableError(error) { - if (this.timeoutError(error)) return true; - if (this.networkingError(error)) return true; - if (this.expiredCredentialsError(error)) return true; - if (this.throttledError(error)) return true; - if (error.statusCode >= 500) return true; - return false; - }, - - /** - * @api private - */ - networkingError: function networkingError(error) { - return error.code === 'NetworkingError'; - }, - - /** - * @api private - */ - timeoutError: function timeoutError(error) { - return error.code === 'TimeoutError'; - }, - - /** - * @api private - */ - expiredCredentialsError: function expiredCredentialsError(error) { - // TODO : this only handles *one* of the expired credential codes - return (error.code === 'ExpiredTokenException'); - }, - - /** - * @api private - */ - clockSkewError: function clockSkewError(error) { - switch (error.code) { - case 'RequestTimeTooSkewed': - case 'RequestExpired': - case 'InvalidSignatureException': - case 'SignatureDoesNotMatch': - case 'AuthFailure': - case 'RequestInTheFuture': - return true; - default: return false; - } - }, - - /** - * @api private - */ - getSkewCorrectedDate: function getSkewCorrectedDate() { - return new Date(Date.now() + this.config.systemClockOffset); - }, - - /** - * @api private - */ - applyClockOffset: function applyClockOffset(newServerTime) { - if (newServerTime) { - this.config.systemClockOffset = newServerTime - Date.now(); - } - }, - - /** - * @api private - */ - isClockSkewed: function isClockSkewed(newServerTime) { - if (newServerTime) { - return Math.abs(this.getSkewCorrectedDate().getTime() - newServerTime) >= 300000; - } - }, - - /** - * @api private - */ - throttledError: function throttledError(error) { - // this logic varies between services - if (error.statusCode === 429) return true; - switch (error.code) { - case 'ProvisionedThroughputExceededException': - case 'Throttling': - case 'ThrottlingException': - case 'RequestLimitExceeded': - case 'RequestThrottled': - case 'RequestThrottledException': - case 'TooManyRequestsException': - case 'TransactionInProgressException': //dynamodb - case 'EC2ThrottledException': - return true; - default: - return false; - } - }, - - /** - * @api private - */ - endpointFromTemplate: function endpointFromTemplate(endpoint) { - if (typeof endpoint !== 'string') return endpoint; - - var e = endpoint; - e = e.replace(/\{service\}/g, this.api.endpointPrefix); - e = e.replace(/\{region\}/g, this.config.region); - e = e.replace(/\{scheme\}/g, this.config.sslEnabled ? 'https' : 'http'); - return e; - }, - - /** - * @api private - */ - setEndpoint: function setEndpoint(endpoint) { - this.endpoint = new AWS.Endpoint(endpoint, this.config); - }, - - /** - * @api private - */ - paginationConfig: function paginationConfig(operation, throwException) { - var paginator = this.api.operations[operation].paginator; - if (!paginator) { - if (throwException) { - var e = new Error(); - throw AWS.util.error(e, 'No pagination configuration for ' + operation); - } - return null; - } - - return paginator; - } -}); - -AWS.util.update(AWS.Service, { - - /** - * Adds one method for each operation described in the api configuration - * - * @api private - */ - defineMethods: function defineMethods(svc) { - AWS.util.each(svc.prototype.api.operations, function iterator(method) { - if (svc.prototype[method]) return; - var operation = svc.prototype.api.operations[method]; - if (operation.authtype === 'none') { - svc.prototype[method] = function (params, callback) { - return this.makeUnauthenticatedRequest(method, params, callback); - }; - } else { - svc.prototype[method] = function (params, callback) { - return this.makeRequest(method, params, callback); - }; - } - }); - }, - - /** - * Defines a new Service class using a service identifier and list of versions - * including an optional set of features (functions) to apply to the class - * prototype. - * - * @param serviceIdentifier [String] the identifier for the service - * @param versions [Array] a list of versions that work with this - * service - * @param features [Object] an object to attach to the prototype - * @return [Class] the service class defined by this function. - */ - defineService: function defineService(serviceIdentifier, versions, features) { - AWS.Service._serviceMap[serviceIdentifier] = true; - if (!Array.isArray(versions)) { - features = versions; - versions = []; - } - - var svc = inherit(AWS.Service, features || {}); - - if (typeof serviceIdentifier === 'string') { - AWS.Service.addVersions(svc, versions); - - var identifier = svc.serviceIdentifier || serviceIdentifier; - svc.serviceIdentifier = identifier; - } else { // defineService called with an API - svc.prototype.api = serviceIdentifier; - AWS.Service.defineMethods(svc); - } - AWS.SequentialExecutor.call(this.prototype); - //util.clientSideMonitoring is only available in node - if (!this.prototype.publisher && AWS.util.clientSideMonitoring) { - var Publisher = AWS.util.clientSideMonitoring.Publisher; - var configProvider = AWS.util.clientSideMonitoring.configProvider; - var publisherConfig = configProvider(); - this.prototype.publisher = new Publisher(publisherConfig); - if (publisherConfig.enabled) { - //if csm is enabled in environment, SDK should send all metrics - AWS.Service._clientSideMonitoring = true; - } - } - AWS.SequentialExecutor.call(svc.prototype); - AWS.Service.addDefaultMonitoringListeners(svc.prototype); - return svc; - }, - - /** - * @api private - */ - addVersions: function addVersions(svc, versions) { - if (!Array.isArray(versions)) versions = [versions]; - - svc.services = svc.services || {}; - for (var i = 0; i < versions.length; i++) { - if (svc.services[versions[i]] === undefined) { - svc.services[versions[i]] = null; - } - } - - svc.apiVersions = Object.keys(svc.services).sort(); - }, - - /** - * @api private - */ - defineServiceApi: function defineServiceApi(superclass, version, apiConfig) { - var svc = inherit(superclass, { - serviceIdentifier: superclass.serviceIdentifier - }); - - function setApi(api) { - if (api.isApi) { - svc.prototype.api = api; - } else { - svc.prototype.api = new Api(api, { - serviceIdentifier: superclass.serviceIdentifier - }); - } - } - - if (typeof version === 'string') { - if (apiConfig) { - setApi(apiConfig); - } else { - try { - setApi(AWS.apiLoader(superclass.serviceIdentifier, version)); - } catch (err) { - throw AWS.util.error(err, { - message: 'Could not find API configuration ' + - superclass.serviceIdentifier + '-' + version - }); - } - } - if (!Object.prototype.hasOwnProperty.call(superclass.services, version)) { - superclass.apiVersions = superclass.apiVersions.concat(version).sort(); - } - superclass.services[version] = svc; - } else { - setApi(version); - } - - AWS.Service.defineMethods(svc); - return svc; - }, - - /** - * @api private - */ - hasService: function(identifier) { - return Object.prototype.hasOwnProperty.call(AWS.Service._serviceMap, identifier); - }, - - /** - * @param attachOn attach default monitoring listeners to object - * - * Each monitoring event should be emitted from service client to service constructor prototype and then - * to global service prototype like bubbling up. These default monitoring events listener will transfer - * the monitoring events to the upper layer. - * @api private - */ - addDefaultMonitoringListeners: function addDefaultMonitoringListeners(attachOn) { - attachOn.addNamedListener('MONITOR_EVENTS_BUBBLE', 'apiCallAttempt', function EVENTS_BUBBLE(event) { - var baseClass = Object.getPrototypeOf(attachOn); - if (baseClass._events) baseClass.emit('apiCallAttempt', [event]); - }); - attachOn.addNamedListener('CALL_EVENTS_BUBBLE', 'apiCall', function CALL_EVENTS_BUBBLE(event) { - var baseClass = Object.getPrototypeOf(attachOn); - if (baseClass._events) baseClass.emit('apiCall', [event]); - }); - }, - - /** - * @api private - */ - _serviceMap: {} -}); - -AWS.util.mixin(AWS.Service, AWS.SequentialExecutor); - -/** - * @api private - */ -module.exports = AWS.Service; - - -/***/ }), - -/***/ 14823: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -AWS.util.update(AWS.APIGateway.prototype, { -/** - * Sets the Accept header to application/json. - * - * @api private - */ - setAcceptHeader: function setAcceptHeader(req) { - var httpRequest = req.httpRequest; - if (!httpRequest.headers.Accept) { - httpRequest.headers['Accept'] = 'application/json'; - } - }, - - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - request.addListener('build', this.setAcceptHeader); - if (request.operation === 'getExport') { - var params = request.params || {}; - if (params.exportType === 'swagger') { - request.addListener('extractData', AWS.util.convertPayloadToString); - } - } - } -}); - - - -/***/ }), - -/***/ 20089: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -// pull in CloudFront signer -__nccwpck_require__(63143); - -AWS.util.update(AWS.CloudFront.prototype, { - - setupRequestListeners: function setupRequestListeners(request) { - request.addListener('extractData', AWS.util.hoistPayloadMember); - } - -}); - - -/***/ }), - -/***/ 84944: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -/** - * Constructs a service interface object. Each API operation is exposed as a - * function on service. - * - * ### Sending a Request Using CloudSearchDomain - * - * ```javascript - * var csd = new AWS.CloudSearchDomain({endpoint: 'my.host.tld'}); - * csd.search(params, function (err, data) { - * if (err) console.log(err, err.stack); // an error occurred - * else console.log(data); // successful response - * }); - * ``` - * - * ### Locking the API Version - * - * In order to ensure that the CloudSearchDomain object uses this specific API, - * you can construct the object by passing the `apiVersion` option to the - * constructor: - * - * ```javascript - * var csd = new AWS.CloudSearchDomain({ - * endpoint: 'my.host.tld', - * apiVersion: '2013-01-01' - * }); - * ``` - * - * You can also set the API version globally in `AWS.config.apiVersions` using - * the **cloudsearchdomain** service identifier: - * - * ```javascript - * AWS.config.apiVersions = { - * cloudsearchdomain: '2013-01-01', - * // other service API versions - * }; - * - * var csd = new AWS.CloudSearchDomain({endpoint: 'my.host.tld'}); - * ``` - * - * @note You *must* provide an `endpoint` configuration parameter when - * constructing this service. See {constructor} for more information. - * - * @!method constructor(options = {}) - * Constructs a service object. This object has one method for each - * API operation. - * - * @example Constructing a CloudSearchDomain object - * var csd = new AWS.CloudSearchDomain({endpoint: 'my.host.tld'}); - * @note You *must* provide an `endpoint` when constructing this service. - * @option (see AWS.Config.constructor) - * - * @service cloudsearchdomain - * @version 2013-01-01 - */ -AWS.util.update(AWS.CloudSearchDomain.prototype, { - /** - * @api private - */ - validateService: function validateService() { - if (!this.config.endpoint || this.config.endpoint.indexOf('{') >= 0) { - var msg = 'AWS.CloudSearchDomain requires an explicit ' + - '`endpoint\' configuration option.'; - throw AWS.util.error(new Error(), - {name: 'InvalidEndpoint', message: msg}); - } - }, - - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - request.removeListener('validate', - AWS.EventListeners.Core.VALIDATE_CREDENTIALS - ); - request.onAsync('validate', this.validateCredentials); - request.addListener('validate', this.updateRegion); - if (request.operation === 'search') { - request.addListener('build', this.convertGetToPost); - } - }, - - /** - * @api private - */ - validateCredentials: function(req, done) { - if (!req.service.api.signatureVersion) return done(); // none - req.service.config.getCredentials(function(err) { - if (err) { - req.removeListener('sign', AWS.EventListeners.Core.SIGN); - } - done(); - }); - }, - - /** - * @api private - */ - convertGetToPost: function(request) { - var httpRequest = request.httpRequest; - if (httpRequest.method === 'POST') { - return; - } - // convert queries to POST to avoid length restrictions - var path = httpRequest.path.split('?'); - httpRequest.method = 'POST'; - httpRequest.path = path[0]; - httpRequest.body = path[1]; - httpRequest.headers['Content-Length'] = httpRequest.body.length; - httpRequest.headers['Content-Type'] = 'application/x-www-form-urlencoded'; - }, - - /** - * @api private - */ - updateRegion: function updateRegion(request) { - var endpoint = request.httpRequest.endpoint.hostname; - var zones = endpoint.split('.'); - request.httpRequest.region = zones[1] || request.httpRequest.region; - } - -}); - - -/***/ }), - -/***/ 92057: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var rdsutil = __nccwpck_require__(18914); - -/** -* @api private -*/ -var crossRegionOperations = ['createDBCluster', 'copyDBClusterSnapshot']; - -AWS.util.update(AWS.DocDB.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - if ( - crossRegionOperations.indexOf(request.operation) !== -1 && - this.config.params && - this.config.params.SourceRegion && - request.params && - !request.params.SourceRegion - ) { - request.params.SourceRegion = this.config.params.SourceRegion; - } - rdsutil.setupRequestListeners(this, request, crossRegionOperations); - }, -}); - - -/***/ }), - -/***/ 50961: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -__nccwpck_require__(64216); - -AWS.util.update(AWS.DynamoDB.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - if (request.service.config.dynamoDbCrc32) { - request.removeListener('extractData', AWS.EventListeners.Json.EXTRACT_DATA); - request.addListener('extractData', this.checkCrc32); - request.addListener('extractData', AWS.EventListeners.Json.EXTRACT_DATA); - } - }, - - /** - * @api private - */ - checkCrc32: function checkCrc32(resp) { - if (!resp.httpResponse.streaming && !resp.request.service.crc32IsValid(resp)) { - resp.data = null; - resp.error = AWS.util.error(new Error(), { - code: 'CRC32CheckFailed', - message: 'CRC32 integrity check failed', - retryable: true - }); - resp.request.haltHandlersOnError(); - throw (resp.error); - } - }, - - /** - * @api private - */ - crc32IsValid: function crc32IsValid(resp) { - var crc = resp.httpResponse.headers['x-amz-crc32']; - if (!crc) return true; // no (valid) CRC32 header - return parseInt(crc, 10) === AWS.util.crypto.crc32(resp.httpResponse.body); - }, - - /** - * @api private - */ - defaultRetryCount: 10, - - /** - * @api private - */ - retryDelays: function retryDelays(retryCount, err) { - var retryDelayOptions = AWS.util.copy(this.config.retryDelayOptions); - - if (typeof retryDelayOptions.base !== 'number') { - retryDelayOptions.base = 50; // default for dynamodb - } - var delay = AWS.util.calculateRetryDelay(retryCount, retryDelayOptions, err); - return delay; - } -}); - - -/***/ }), - -/***/ 39007: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -AWS.util.update(AWS.EC2.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - request.removeListener('extractError', AWS.EventListeners.Query.EXTRACT_ERROR); - request.addListener('extractError', this.extractError); - - if (request.operation === 'copySnapshot') { - request.onAsync('validate', this.buildCopySnapshotPresignedUrl); - } - }, - - /** - * @api private - */ - buildCopySnapshotPresignedUrl: function buildCopySnapshotPresignedUrl(req, done) { - if (req.params.PresignedUrl || req._subRequest) { - return done(); - } - - req.params = AWS.util.copy(req.params); - req.params.DestinationRegion = req.service.config.region; - - var config = AWS.util.copy(req.service.config); - delete config.endpoint; - config.region = req.params.SourceRegion; - var svc = new req.service.constructor(config); - var newReq = svc[req.operation](req.params); - newReq._subRequest = true; - newReq.presign(function(err, url) { - if (err) done(err); - else { - req.params.PresignedUrl = url; - done(); - } - }); - }, - - /** - * @api private - */ - extractError: function extractError(resp) { - // EC2 nests the error code and message deeper than other AWS Query services. - var httpResponse = resp.httpResponse; - var data = new AWS.XML.Parser().parse(httpResponse.body.toString() || ''); - if (data.Errors) { - resp.error = AWS.util.error(new Error(), { - code: data.Errors.Error.Code, - message: data.Errors.Error.Message - }); - } else { - resp.error = AWS.util.error(new Error(), { - code: httpResponse.statusCode, - message: null - }); - } - resp.error.requestId = data.RequestID || null; - } -}); - - -/***/ }), - -/***/ 90300: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -AWS.util.update(AWS.EventBridge.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - if (request.operation === 'putEvents') { - var params = request.params || {}; - if (params.EndpointId !== undefined) { - throw new AWS.util.error(new Error(), { - code: 'InvalidParameter', - message: 'EndpointId is not supported in current SDK.\n' + - 'You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3).' - }); - } - } - }, -}); - - -/***/ }), - -/***/ 98028: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -AWS.util.update(AWS.Glacier.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - if (Array.isArray(request._events.validate)) { - request._events.validate.unshift(this.validateAccountId); - } else { - request.on('validate', this.validateAccountId); - } - request.removeListener('afterBuild', - AWS.EventListeners.Core.COMPUTE_SHA256); - request.on('build', this.addGlacierApiVersion); - request.on('build', this.addTreeHashHeaders); - }, - - /** - * @api private - */ - validateAccountId: function validateAccountId(request) { - if (request.params.accountId !== undefined) return; - request.params = AWS.util.copy(request.params); - request.params.accountId = '-'; - }, - - /** - * @api private - */ - addGlacierApiVersion: function addGlacierApiVersion(request) { - var version = request.service.api.apiVersion; - request.httpRequest.headers['x-amz-glacier-version'] = version; - }, - - /** - * @api private - */ - addTreeHashHeaders: function addTreeHashHeaders(request) { - if (request.params.body === undefined) return; - - var hashes = request.service.computeChecksums(request.params.body); - request.httpRequest.headers['X-Amz-Content-Sha256'] = hashes.linearHash; - - if (!request.httpRequest.headers['x-amz-sha256-tree-hash']) { - request.httpRequest.headers['x-amz-sha256-tree-hash'] = hashes.treeHash; - } - }, - - /** - * @!group Computing Checksums - */ - - /** - * Computes the SHA-256 linear and tree hash checksums for a given - * block of Buffer data. Pass the tree hash of the computed checksums - * as the checksum input to the {completeMultipartUpload} when performing - * a multi-part upload. - * - * @example Calculate checksum of 5.5MB data chunk - * var glacier = new AWS.Glacier(); - * var data = Buffer.alloc(5.5 * 1024 * 1024); - * data.fill('0'); // fill with zeros - * var results = glacier.computeChecksums(data); - * // Result: { linearHash: '68aff0c5a9...', treeHash: '154e26c78f...' } - * @param data [Buffer, String] data to calculate the checksum for - * @return [map] a map containing - * the linearHash and treeHash properties representing hex based digests - * of the respective checksums. - * @see completeMultipartUpload - */ - computeChecksums: function computeChecksums(data) { - if (!AWS.util.Buffer.isBuffer(data)) data = AWS.util.buffer.toBuffer(data); - - var mb = 1024 * 1024; - var hashes = []; - var hash = AWS.util.crypto.createHash('sha256'); - - // build leaf nodes in 1mb chunks - for (var i = 0; i < data.length; i += mb) { - var chunk = data.slice(i, Math.min(i + mb, data.length)); - hash.update(chunk); - hashes.push(AWS.util.crypto.sha256(chunk)); - } - - return { - linearHash: hash.digest('hex'), - treeHash: this.buildHashTree(hashes) - }; - }, - - /** - * @api private - */ - buildHashTree: function buildHashTree(hashes) { - // merge leaf nodes - while (hashes.length > 1) { - var tmpHashes = []; - for (var i = 0; i < hashes.length; i += 2) { - if (hashes[i + 1]) { - var tmpHash = AWS.util.buffer.alloc(64); - tmpHash.write(hashes[i], 0, 32, 'binary'); - tmpHash.write(hashes[i + 1], 32, 32, 'binary'); - tmpHashes.push(AWS.util.crypto.sha256(tmpHash)); - } else { - tmpHashes.push(hashes[i]); - } - } - hashes = tmpHashes; - } - - return AWS.util.crypto.toHex(hashes[0]); - } -}); - - -/***/ }), - -/***/ 16245: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -/** - * @api private - */ -var blobPayloadOutputOps = [ - 'deleteThingShadow', - 'getThingShadow', - 'updateThingShadow' -]; - -/** - * Constructs a service interface object. Each API operation is exposed as a - * function on service. - * - * ### Sending a Request Using IotData - * - * ```javascript - * var iotdata = new AWS.IotData({endpoint: 'my.host.tld'}); - * iotdata.getThingShadow(params, function (err, data) { - * if (err) console.log(err, err.stack); // an error occurred - * else console.log(data); // successful response - * }); - * ``` - * - * ### Locking the API Version - * - * In order to ensure that the IotData object uses this specific API, - * you can construct the object by passing the `apiVersion` option to the - * constructor: - * - * ```javascript - * var iotdata = new AWS.IotData({ - * endpoint: 'my.host.tld', - * apiVersion: '2015-05-28' - * }); - * ``` - * - * You can also set the API version globally in `AWS.config.apiVersions` using - * the **iotdata** service identifier: - * - * ```javascript - * AWS.config.apiVersions = { - * iotdata: '2015-05-28', - * // other service API versions - * }; - * - * var iotdata = new AWS.IotData({endpoint: 'my.host.tld'}); - * ``` - * - * @note You *must* provide an `endpoint` configuration parameter when - * constructing this service. See {constructor} for more information. - * - * @!method constructor(options = {}) - * Constructs a service object. This object has one method for each - * API operation. - * - * @example Constructing a IotData object - * var iotdata = new AWS.IotData({endpoint: 'my.host.tld'}); - * @note You *must* provide an `endpoint` when constructing this service. - * @option (see AWS.Config.constructor) - * - * @service iotdata - * @version 2015-05-28 - */ -AWS.util.update(AWS.IotData.prototype, { - /** - * @api private - */ - validateService: function validateService() { - if (!this.config.endpoint || this.config.endpoint.indexOf('{') >= 0) { - var msg = 'AWS.IotData requires an explicit ' + - '`endpoint\' configuration option.'; - throw AWS.util.error(new Error(), - {name: 'InvalidEndpoint', message: msg}); - } - }, - - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - request.addListener('validateResponse', this.validateResponseBody); - if (blobPayloadOutputOps.indexOf(request.operation) > -1) { - request.addListener('extractData', AWS.util.convertPayloadToString); - } - }, - - /** - * @api private - */ - validateResponseBody: function validateResponseBody(resp) { - var body = resp.httpResponse.body.toString() || '{}'; - var bodyCheck = body.trim(); - if (!bodyCheck || bodyCheck.charAt(0) !== '{') { - resp.httpResponse.body = ''; - } - } - -}); - - -/***/ }), - -/***/ 87066: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -AWS.util.update(AWS.Lambda.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - if (request.operation === 'invoke') { - request.addListener('extractData', AWS.util.convertPayloadToString); - } - } -}); - - - -/***/ }), - -/***/ 5506: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -AWS.util.update(AWS.MachineLearning.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - if (request.operation === 'predict') { - request.addListener('build', this.buildEndpoint); - } - }, - - /** - * Updates request endpoint from PredictEndpoint - * @api private - */ - buildEndpoint: function buildEndpoint(request) { - var url = request.params.PredictEndpoint; - if (url) { - request.httpRequest.endpoint = new AWS.Endpoint(url); - } - } - -}); - - -/***/ }), - -/***/ 94492: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var rdsutil = __nccwpck_require__(18914); - -/** -* @api private -*/ -var crossRegionOperations = ['createDBCluster', 'copyDBClusterSnapshot']; - -AWS.util.update(AWS.Neptune.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - if ( - crossRegionOperations.indexOf(request.operation) !== -1 && - this.config.params && - this.config.params.SourceRegion && - request.params && - !request.params.SourceRegion - ) { - request.params.SourceRegion = this.config.params.SourceRegion; - } - rdsutil.setupRequestListeners(this, request, crossRegionOperations); - }, -}); - - -/***/ }), - -/***/ 50321: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(16860); - - -/***/ }), - -/***/ 85726: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var rdsutil = __nccwpck_require__(18914); -__nccwpck_require__(64060); - /** - * @api private - */ - var crossRegionOperations = ['copyDBSnapshot', 'createDBInstanceReadReplica', 'createDBCluster', 'copyDBClusterSnapshot', 'startDBInstanceAutomatedBackupsReplication']; - - AWS.util.update(AWS.RDS.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - rdsutil.setupRequestListeners(this, request, crossRegionOperations); - }, - }); - - -/***/ }), - -/***/ 99731: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -AWS.util.update(AWS.RDSDataService.prototype, { - /** - * @return [Boolean] whether the error can be retried - * @api private - */ - retryableError: function retryableError(error) { - if (error.code === 'BadRequestException' && - error.message && - error.message.match(/^Communications link failure/) && - error.statusCode === 400) { - return true; - } else { - var _super = AWS.Service.prototype.retryableError; - return _super.call(this, error); - } - } -}); - - -/***/ }), - -/***/ 18914: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -var rdsutil = { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(service, request, crossRegionOperations) { - if (crossRegionOperations.indexOf(request.operation) !== -1 && - request.params.SourceRegion) { - request.params = AWS.util.copy(request.params); - if (request.params.PreSignedUrl || - request.params.SourceRegion === service.config.region) { - delete request.params.SourceRegion; - } else { - var doesParamValidation = !!service.config.paramValidation; - // remove the validate parameters listener so we can re-add it after we build the URL - if (doesParamValidation) { - request.removeListener('validate', AWS.EventListeners.Core.VALIDATE_PARAMETERS); - } - request.onAsync('validate', rdsutil.buildCrossRegionPresignedUrl); - if (doesParamValidation) { - request.addListener('validate', AWS.EventListeners.Core.VALIDATE_PARAMETERS); - } - } - } - }, - - /** - * @api private - */ - buildCrossRegionPresignedUrl: function buildCrossRegionPresignedUrl(req, done) { - var config = AWS.util.copy(req.service.config); - config.region = req.params.SourceRegion; - delete req.params.SourceRegion; - delete config.endpoint; - // relevant params for the operation will already be in req.params - delete config.params; - config.signatureVersion = 'v4'; - var destinationRegion = req.service.config.region; - - var svc = new req.service.constructor(config); - var newReq = svc[req.operation](AWS.util.copy(req.params)); - newReq.on('build', function addDestinationRegionParam(request) { - var httpRequest = request.httpRequest; - httpRequest.params.DestinationRegion = destinationRegion; - httpRequest.body = AWS.util.queryParamsToString(httpRequest.params); - }); - newReq.presign(function(err, url) { - if (err) done(err); - else { - req.params.PreSignedUrl = url; - done(); - } - }); - } -}; - -/** - * @api private - */ -module.exports = rdsutil; - - -/***/ }), - -/***/ 43944: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -AWS.util.update(AWS.Route53.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - request.on('build', this.sanitizeUrl); - }, - - /** - * @api private - */ - sanitizeUrl: function sanitizeUrl(request) { - var path = request.httpRequest.path; - request.httpRequest.path = path.replace(/\/%2F\w+%2F/, '/'); - }, - - /** - * @return [Boolean] whether the error can be retried - * @api private - */ - retryableError: function retryableError(error) { - if (error.code === 'PriorRequestNotComplete' && - error.statusCode === 400) { - return true; - } else { - var _super = AWS.Service.prototype.retryableError; - return _super.call(this, error); - } - } -}); - - -/***/ }), - -/***/ 51919: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var v4Credentials = __nccwpck_require__(76445); -var resolveRegionalEndpointsFlag = __nccwpck_require__(44568); -var s3util = __nccwpck_require__(53659); -var regionUtil = __nccwpck_require__(48603); - -// Pull in managed upload extension -__nccwpck_require__(32412); - -/** - * @api private - */ -var operationsWith200StatusCodeError = { - 'completeMultipartUpload': true, - 'copyObject': true, - 'uploadPartCopy': true -}; - -/** - * @api private - */ - var regionRedirectErrorCodes = [ - 'AuthorizationHeaderMalformed', // non-head operations on virtual-hosted global bucket endpoints - 'BadRequest', // head operations on virtual-hosted global bucket endpoints - 'PermanentRedirect', // non-head operations on path-style or regional endpoints - 301 // head operations on path-style or regional endpoints - ]; - -var OBJECT_LAMBDA_SERVICE = 's3-object-lambda'; - -AWS.util.update(AWS.S3.prototype, { - /** - * @api private - */ - getSignatureVersion: function getSignatureVersion(request) { - var defaultApiVersion = this.api.signatureVersion; - var userDefinedVersion = this._originalConfig ? this._originalConfig.signatureVersion : null; - var regionDefinedVersion = this.config.signatureVersion; - var isPresigned = request ? request.isPresigned() : false; - /* - 1) User defined version specified: - a) always return user defined version - 2) No user defined version specified: - a) If not using presigned urls, default to V4 - b) If using presigned urls, default to lowest version the region supports - */ - if (userDefinedVersion) { - userDefinedVersion = userDefinedVersion === 'v2' ? 's3' : userDefinedVersion; - return userDefinedVersion; - } - if (isPresigned !== true) { - defaultApiVersion = 'v4'; - } else if (regionDefinedVersion) { - defaultApiVersion = regionDefinedVersion; - } - return defaultApiVersion; - }, - - /** - * @api private - */ - getSigningName: function getSigningName(req) { - if (req && req.operation === 'writeGetObjectResponse') { - return OBJECT_LAMBDA_SERVICE; - } - - var _super = AWS.Service.prototype.getSigningName; - return (req && req._parsedArn && req._parsedArn.service) - ? req._parsedArn.service - : _super.call(this); - }, - - /** - * @api private - */ - getSignerClass: function getSignerClass(request) { - var signatureVersion = this.getSignatureVersion(request); - return AWS.Signers.RequestSigner.getVersion(signatureVersion); - }, - - /** - * @api private - */ - validateService: function validateService() { - var msg; - var messages = []; - - // default to us-east-1 when no region is provided - if (!this.config.region) this.config.region = 'us-east-1'; - - if (!this.config.endpoint && this.config.s3BucketEndpoint) { - messages.push('An endpoint must be provided when configuring ' + - '`s3BucketEndpoint` to true.'); - } - if (messages.length === 1) { - msg = messages[0]; - } else if (messages.length > 1) { - msg = 'Multiple configuration errors:\n' + messages.join('\n'); - } - if (msg) { - throw AWS.util.error(new Error(), - {name: 'InvalidEndpoint', message: msg}); - } - }, - - /** - * @api private - */ - shouldDisableBodySigning: function shouldDisableBodySigning(request) { - var signerClass = this.getSignerClass(); - if (this.config.s3DisableBodySigning === true && signerClass === AWS.Signers.V4 - && request.httpRequest.endpoint.protocol === 'https:') { - return true; - } - return false; - }, - - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - request.addListener('validateResponse', this.setExpiresString); - var prependListener = true; - request.addListener('validate', this.validateScheme); - request.addListener('validate', this.validateBucketName, prependListener); - request.addListener('validate', this.optInUsEast1RegionalEndpoint, prependListener); - - request.removeListener('validate', - AWS.EventListeners.Core.VALIDATE_REGION); - request.addListener('build', this.addContentType); - request.addListener('build', this.computeContentMd5); - request.addListener('build', this.computeSseCustomerKeyMd5); - request.addListener('build', this.populateURI); - request.addListener('afterBuild', this.addExpect100Continue); - request.addListener('extractError', this.extractError); - request.addListener('extractData', AWS.util.hoistPayloadMember); - request.addListener('extractData', this.extractData); - request.addListener('extractData', this.extractErrorFrom200Response); - request.addListener('beforePresign', this.prepareSignedUrl); - if (this.shouldDisableBodySigning(request)) { - request.removeListener('afterBuild', AWS.EventListeners.Core.COMPUTE_SHA256); - request.addListener('afterBuild', this.disableBodySigning); - } - //deal with ARNs supplied to Bucket - if (request.operation !== 'createBucket' && s3util.isArnInParam(request, 'Bucket')) { - // avoid duplicate parsing in the future - request._parsedArn = AWS.util.ARN.parse(request.params.Bucket); - - request.removeListener('validate', this.validateBucketName); - request.removeListener('build', this.populateURI); - if (request._parsedArn.service === 's3') { - request.addListener('validate', s3util.validateS3AccessPointArn); - request.addListener('validate', this.validateArnResourceType); - request.addListener('validate', this.validateArnRegion); - } else if (request._parsedArn.service === 's3-outposts') { - request.addListener('validate', s3util.validateOutpostsAccessPointArn); - request.addListener('validate', s3util.validateOutpostsArn); - request.addListener('validate', s3util.validateArnRegion); - } - request.addListener('validate', s3util.validateArnAccount); - request.addListener('validate', s3util.validateArnService); - request.addListener('build', this.populateUriFromAccessPointArn); - request.addListener('build', s3util.validatePopulateUriFromArn); - return; - } - //listeners regarding region inference - request.addListener('validate', this.validateBucketEndpoint); - request.addListener('validate', this.correctBucketRegionFromCache); - request.onAsync('extractError', this.requestBucketRegion); - if (AWS.util.isBrowser()) { - request.onAsync('retry', this.reqRegionForNetworkingError); - } - }, - - /** - * @api private - */ - validateScheme: function(req) { - var params = req.params, - scheme = req.httpRequest.endpoint.protocol, - sensitive = params.SSECustomerKey || params.CopySourceSSECustomerKey; - if (sensitive && scheme !== 'https:') { - var msg = 'Cannot send SSE keys over HTTP. Set \'sslEnabled\'' + - 'to \'true\' in your configuration'; - throw AWS.util.error(new Error(), - { code: 'ConfigError', message: msg }); - } - }, - - /** - * @api private - */ - validateBucketEndpoint: function(req) { - if (!req.params.Bucket && req.service.config.s3BucketEndpoint) { - var msg = 'Cannot send requests to root API with `s3BucketEndpoint` set.'; - throw AWS.util.error(new Error(), - { code: 'ConfigError', message: msg }); - } - }, - - /** - * @api private - */ - validateArnRegion: function validateArnRegion(req) { - s3util.validateArnRegion(req, { allowFipsEndpoint: true }); - }, - - /** - * Validate resource-type supplied in S3 ARN - */ - validateArnResourceType: function validateArnResourceType(req) { - var resource = req._parsedArn.resource; - - if ( - resource.indexOf('accesspoint:') !== 0 && - resource.indexOf('accesspoint/') !== 0 - ) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'ARN resource should begin with \'accesspoint/\'' - }); - } - }, - - /** - * @api private - */ - validateBucketName: function validateBucketName(req) { - var service = req.service; - var signatureVersion = service.getSignatureVersion(req); - var bucket = req.params && req.params.Bucket; - var key = req.params && req.params.Key; - var slashIndex = bucket && bucket.indexOf('/'); - if (bucket && slashIndex >= 0) { - if (typeof key === 'string' && slashIndex > 0) { - req.params = AWS.util.copy(req.params); - // Need to include trailing slash to match sigv2 behavior - var prefix = bucket.substr(slashIndex + 1) || ''; - req.params.Key = prefix + '/' + key; - req.params.Bucket = bucket.substr(0, slashIndex); - } else if (signatureVersion === 'v4') { - var msg = 'Bucket names cannot contain forward slashes. Bucket: ' + bucket; - throw AWS.util.error(new Error(), - { code: 'InvalidBucket', message: msg }); - } - } - }, - - /** - * @api private - */ - isValidAccelerateOperation: function isValidAccelerateOperation(operation) { - var invalidOperations = [ - 'createBucket', - 'deleteBucket', - 'listBuckets' - ]; - return invalidOperations.indexOf(operation) === -1; - }, - - /** - * When us-east-1 region endpoint configuration is set, in stead of sending request to - * global endpoint(e.g. 's3.amazonaws.com'), we will send request to - * 's3.us-east-1.amazonaws.com'. - * @api private - */ - optInUsEast1RegionalEndpoint: function optInUsEast1RegionalEndpoint(req) { - var service = req.service; - var config = service.config; - config.s3UsEast1RegionalEndpoint = resolveRegionalEndpointsFlag(service._originalConfig, { - env: 'AWS_S3_US_EAST_1_REGIONAL_ENDPOINT', - sharedConfig: 's3_us_east_1_regional_endpoint', - clientConfig: 's3UsEast1RegionalEndpoint' - }); - if ( - !(service._originalConfig || {}).endpoint && - req.httpRequest.region === 'us-east-1' && - config.s3UsEast1RegionalEndpoint === 'regional' && - req.httpRequest.endpoint.hostname.indexOf('s3.amazonaws.com') >= 0 - ) { - var insertPoint = config.endpoint.indexOf('.amazonaws.com'); - var regionalEndpoint = config.endpoint.substring(0, insertPoint) + - '.us-east-1' + config.endpoint.substring(insertPoint); - req.httpRequest.updateEndpoint(regionalEndpoint); - } - }, - - /** - * S3 prefers dns-compatible bucket names to be moved from the uri path - * to the hostname as a sub-domain. This is not possible, even for dns-compat - * buckets when using SSL and the bucket name contains a dot ('.'). The - * ssl wildcard certificate is only 1-level deep. - * - * @api private - */ - populateURI: function populateURI(req) { - var httpRequest = req.httpRequest; - var b = req.params.Bucket; - var service = req.service; - var endpoint = httpRequest.endpoint; - if (b) { - if (!service.pathStyleBucketName(b)) { - if (service.config.useAccelerateEndpoint && service.isValidAccelerateOperation(req.operation)) { - if (service.config.useDualstackEndpoint) { - endpoint.hostname = b + '.s3-accelerate.dualstack.amazonaws.com'; - } else { - endpoint.hostname = b + '.s3-accelerate.amazonaws.com'; - } - } else if (!service.config.s3BucketEndpoint) { - endpoint.hostname = - b + '.' + endpoint.hostname; - } - - var port = endpoint.port; - if (port !== 80 && port !== 443) { - endpoint.host = endpoint.hostname + ':' + - endpoint.port; - } else { - endpoint.host = endpoint.hostname; - } - - httpRequest.virtualHostedBucket = b; // needed for signing the request - service.removeVirtualHostedBucketFromPath(req); - } - } - }, - - /** - * Takes the bucket name out of the path if bucket is virtual-hosted - * - * @api private - */ - removeVirtualHostedBucketFromPath: function removeVirtualHostedBucketFromPath(req) { - var httpRequest = req.httpRequest; - var bucket = httpRequest.virtualHostedBucket; - if (bucket && httpRequest.path) { - if (req.params && req.params.Key) { - var encodedS3Key = '/' + AWS.util.uriEscapePath(req.params.Key); - if (httpRequest.path.indexOf(encodedS3Key) === 0 && (httpRequest.path.length === encodedS3Key.length || httpRequest.path[encodedS3Key.length] === '?')) { - //path only contains key or path contains only key and querystring - return; - } - } - httpRequest.path = httpRequest.path.replace(new RegExp('/' + bucket), ''); - if (httpRequest.path[0] !== '/') { - httpRequest.path = '/' + httpRequest.path; - } - } - }, - - /** - * When user supply an access point ARN in the Bucket parameter, we need to - * populate the URI according to the ARN. - */ - populateUriFromAccessPointArn: function populateUriFromAccessPointArn(req) { - var accessPointArn = req._parsedArn; - - var isOutpostArn = accessPointArn.service === 's3-outposts'; - var isObjectLambdaArn = accessPointArn.service === 's3-object-lambda'; - - var outpostsSuffix = isOutpostArn ? '.' + accessPointArn.outpostId: ''; - var serviceName = isOutpostArn ? 's3-outposts': 's3-accesspoint'; - var fipsSuffix = !isOutpostArn && req.service.config.useFipsEndpoint ? '-fips': ''; - var dualStackSuffix = !isOutpostArn && - req.service.config.useDualstackEndpoint ? '.dualstack' : ''; - - var endpoint = req.httpRequest.endpoint; - var dnsSuffix = regionUtil.getEndpointSuffix(accessPointArn.region); - var useArnRegion = req.service.config.s3UseArnRegion; - - endpoint.hostname = [ - accessPointArn.accessPoint + '-' + accessPointArn.accountId + outpostsSuffix, - serviceName + fipsSuffix + dualStackSuffix, - useArnRegion ? accessPointArn.region : req.service.config.region, - dnsSuffix - ].join('.'); - - if (isObjectLambdaArn) { - // should be in the format: "accesspoint/${accesspointName}" - var serviceName = 's3-object-lambda'; - var accesspointName = accessPointArn.resource.split('/')[1]; - var fipsSuffix = req.service.config.useFipsEndpoint ? '-fips': ''; - endpoint.hostname = [ - accesspointName + '-' + accessPointArn.accountId, - serviceName + fipsSuffix, - useArnRegion ? accessPointArn.region : req.service.config.region, - dnsSuffix - ].join('.'); - } - endpoint.host = endpoint.hostname; - var encodedArn = AWS.util.uriEscape(req.params.Bucket); - var path = req.httpRequest.path; - //remove the Bucket value from path - req.httpRequest.path = path.replace(new RegExp('/' + encodedArn), ''); - if (req.httpRequest.path[0] !== '/') { - req.httpRequest.path = '/' + req.httpRequest.path; - } - req.httpRequest.region = accessPointArn.region; //region used to sign - }, - - /** - * Adds Expect: 100-continue header if payload is greater-or-equal 1MB - * @api private - */ - addExpect100Continue: function addExpect100Continue(req) { - var len = req.httpRequest.headers['Content-Length']; - if (AWS.util.isNode() && (len >= 1024 * 1024 || req.params.Body instanceof AWS.util.stream.Stream)) { - req.httpRequest.headers['Expect'] = '100-continue'; - } - }, - - /** - * Adds a default content type if none is supplied. - * - * @api private - */ - addContentType: function addContentType(req) { - var httpRequest = req.httpRequest; - if (httpRequest.method === 'GET' || httpRequest.method === 'HEAD') { - // Content-Type is not set in GET/HEAD requests - delete httpRequest.headers['Content-Type']; - return; - } - - if (!httpRequest.headers['Content-Type']) { // always have a Content-Type - httpRequest.headers['Content-Type'] = 'application/octet-stream'; - } - - var contentType = httpRequest.headers['Content-Type']; - if (AWS.util.isBrowser()) { - if (typeof httpRequest.body === 'string' && !contentType.match(/;\s*charset=/)) { - var charset = '; charset=UTF-8'; - httpRequest.headers['Content-Type'] += charset; - } else { - var replaceFn = function(_, prefix, charsetName) { - return prefix + charsetName.toUpperCase(); - }; - - httpRequest.headers['Content-Type'] = - contentType.replace(/(;\s*charset=)(.+)$/, replaceFn); - } - } - }, - - /** - * Checks whether checksums should be computed for the request if it's not - * already set by {AWS.EventListeners.Core.COMPUTE_CHECKSUM}. It depends on - * whether {AWS.Config.computeChecksums} is set. - * - * @param req [AWS.Request] the request to check against - * @return [Boolean] whether to compute checksums for a request. - * @api private - */ - willComputeChecksums: function willComputeChecksums(req) { - var rules = req.service.api.operations[req.operation].input.members; - var body = req.httpRequest.body; - var needsContentMD5 = req.service.config.computeChecksums && - rules.ContentMD5 && - !req.params.ContentMD5 && - body && - (AWS.util.Buffer.isBuffer(req.httpRequest.body) || typeof req.httpRequest.body === 'string'); - - // Sha256 signing disabled, and not a presigned url - if (needsContentMD5 && req.service.shouldDisableBodySigning(req) && !req.isPresigned()) { - return true; - } - - // SigV2 and presign, for backwards compatibility purpose. - if (needsContentMD5 && this.getSignatureVersion(req) === 's3' && req.isPresigned()) { - return true; - } - - return false; - }, - - /** - * A listener that computes the Content-MD5 and sets it in the header. - * This listener is to support S3-specific features like - * s3DisableBodySigning and SigV2 presign. Content MD5 logic for SigV4 is - * handled in AWS.EventListeners.Core.COMPUTE_CHECKSUM - * - * @api private - */ - computeContentMd5: function computeContentMd5(req) { - if (req.service.willComputeChecksums(req)) { - var md5 = AWS.util.crypto.md5(req.httpRequest.body, 'base64'); - req.httpRequest.headers['Content-MD5'] = md5; - } - }, - - /** - * @api private - */ - computeSseCustomerKeyMd5: function computeSseCustomerKeyMd5(req) { - var keys = { - SSECustomerKey: 'x-amz-server-side-encryption-customer-key-MD5', - CopySourceSSECustomerKey: 'x-amz-copy-source-server-side-encryption-customer-key-MD5' - }; - AWS.util.each(keys, function(key, header) { - if (req.params[key]) { - var value = AWS.util.crypto.md5(req.params[key], 'base64'); - req.httpRequest.headers[header] = value; - } - }); - }, - - /** - * Returns true if the bucket name should be left in the URI path for - * a request to S3. This function takes into account the current - * endpoint protocol (e.g. http or https). - * - * @api private - */ - pathStyleBucketName: function pathStyleBucketName(bucketName) { - // user can force path style requests via the configuration - if (this.config.s3ForcePathStyle) return true; - if (this.config.s3BucketEndpoint) return false; - - if (s3util.dnsCompatibleBucketName(bucketName)) { - return (this.config.sslEnabled && bucketName.match(/\./)) ? true : false; - } else { - return true; // not dns compatible names must always use path style - } - }, - - /** - * For COPY operations, some can be error even with status code 200. - * SDK treats the response as exception when response body indicates - * an exception or body is empty. - * - * @api private - */ - extractErrorFrom200Response: function extractErrorFrom200Response(resp) { - var service = this.service ? this.service : this; - if (!service.is200Error(resp) && !operationsWith200StatusCodeError[resp.request.operation]) { - return; - } - var httpResponse = resp.httpResponse; - var bodyString = httpResponse.body && httpResponse.body.toString() || ''; - if (bodyString && bodyString.indexOf('') === bodyString.length - 8) { - // Response body with '...' indicates an exception. - // Get S3 client object. In ManagedUpload, this.service refers to - // S3 client object. - resp.data = null; - service.extractError(resp); - resp.error.is200Error = true; - throw resp.error; - } else if (!httpResponse.body || !bodyString.match(/<[\w_]/)) { - // When body is empty or incomplete, S3 might stop the request on detecting client - // side aborting the request. - resp.data = null; - throw AWS.util.error(new Error(), { - code: 'InternalError', - message: 'S3 aborted request' - }); - } - }, - - /** - * @api private - * @param resp - to evaluate. - * @return true if the response has status code 200 but is an error. - */ - is200Error: function is200Error(resp) { - var code = resp && resp.httpResponse && resp.httpResponse.statusCode; - if (code !== 200) { - return false; - } - try { - var req = resp.request; - var outputMembers = req.service.api.operations[req.operation].output.members; - var keys = Object.keys(outputMembers); - for (var i = 0; i < keys.length; ++i) { - var member = outputMembers[keys[i]]; - if (member.type === 'binary' && member.isStreaming) { - return false; - } - } - - var body = resp.httpResponse.body; - if (body && body.byteLength !== undefined) { - if (body.byteLength < 15 || body.byteLength > 3000) { - // body is too short or long to be an error message. - return false; - } - } - if (!body) { - return false; - } - var bodyString = body.toString(); - if (bodyString.indexOf('') === bodyString.length - 8) { - return true; - } - } catch (e) { - return false; - } - return false; - }, - - /** - * @return [Boolean] whether the error can be retried - * @api private - */ - retryableError: function retryableError(error, request) { - if (error.is200Error || - (operationsWith200StatusCodeError[request.operation] && error.statusCode === 200)) { - return true; - } else if (request._requestRegionForBucket && - request.service.bucketRegionCache[request._requestRegionForBucket]) { - return false; - } else if (error && error.code === 'RequestTimeout') { - return true; - } else if (error && - regionRedirectErrorCodes.indexOf(error.code) != -1 && - error.region && error.region != request.httpRequest.region) { - request.httpRequest.region = error.region; - if (error.statusCode === 301) { - request.service.updateReqBucketRegion(request); - } - return true; - } else { - var _super = AWS.Service.prototype.retryableError; - return _super.call(this, error, request); - } - }, - - /** - * Updates httpRequest with region. If region is not provided, then - * the httpRequest will be updated based on httpRequest.region - * - * @api private - */ - updateReqBucketRegion: function updateReqBucketRegion(request, region) { - var httpRequest = request.httpRequest; - if (typeof region === 'string' && region.length) { - httpRequest.region = region; - } - if (!httpRequest.endpoint.host.match(/s3(?!-accelerate).*\.amazonaws\.com$/)) { - return; - } - var service = request.service; - var s3Config = service.config; - var s3BucketEndpoint = s3Config.s3BucketEndpoint; - if (s3BucketEndpoint) { - delete s3Config.s3BucketEndpoint; - } - var newConfig = AWS.util.copy(s3Config); - delete newConfig.endpoint; - newConfig.region = httpRequest.region; - - httpRequest.endpoint = (new AWS.S3(newConfig)).endpoint; - service.populateURI(request); - s3Config.s3BucketEndpoint = s3BucketEndpoint; - httpRequest.headers.Host = httpRequest.endpoint.host; - - if (request._asm.currentState === 'validate') { - request.removeListener('build', service.populateURI); - request.addListener('build', service.removeVirtualHostedBucketFromPath); - } - }, - - /** - * Provides a specialized parser for getBucketLocation -- all other - * operations are parsed by the super class. - * - * @api private - */ - extractData: function extractData(resp) { - var req = resp.request; - if (req.operation === 'getBucketLocation') { - var match = resp.httpResponse.body.toString().match(/>(.+)<\/Location/); - delete resp.data['_']; - if (match) { - resp.data.LocationConstraint = match[1]; - } else { - resp.data.LocationConstraint = ''; - } - } - var bucket = req.params.Bucket || null; - if (req.operation === 'deleteBucket' && typeof bucket === 'string' && !resp.error) { - req.service.clearBucketRegionCache(bucket); - } else { - var headers = resp.httpResponse.headers || {}; - var region = headers['x-amz-bucket-region'] || null; - if (!region && req.operation === 'createBucket' && !resp.error) { - var createBucketConfiguration = req.params.CreateBucketConfiguration; - if (!createBucketConfiguration) { - region = 'us-east-1'; - } else if (createBucketConfiguration.LocationConstraint === 'EU') { - region = 'eu-west-1'; - } else { - region = createBucketConfiguration.LocationConstraint; - } - } - if (region) { - if (bucket && region !== req.service.bucketRegionCache[bucket]) { - req.service.bucketRegionCache[bucket] = region; - } - } - } - req.service.extractRequestIds(resp); - }, - - /** - * Extracts an error object from the http response. - * - * @api private - */ - extractError: function extractError(resp) { - var codes = { - 304: 'NotModified', - 403: 'Forbidden', - 400: 'BadRequest', - 404: 'NotFound' - }; - - var req = resp.request; - var code = resp.httpResponse.statusCode; - var body = resp.httpResponse.body || ''; - - var headers = resp.httpResponse.headers || {}; - var region = headers['x-amz-bucket-region'] || null; - var bucket = req.params.Bucket || null; - var bucketRegionCache = req.service.bucketRegionCache; - if (region && bucket && region !== bucketRegionCache[bucket]) { - bucketRegionCache[bucket] = region; - } - - var cachedRegion; - if (codes[code] && body.length === 0) { - if (bucket && !region) { - cachedRegion = bucketRegionCache[bucket] || null; - if (cachedRegion !== req.httpRequest.region) { - region = cachedRegion; - } - } - resp.error = AWS.util.error(new Error(), { - code: codes[code], - message: null, - region: region - }); - } else { - var data = new AWS.XML.Parser().parse(body.toString()); - - if (data.Region && !region) { - region = data.Region; - if (bucket && region !== bucketRegionCache[bucket]) { - bucketRegionCache[bucket] = region; - } - } else if (bucket && !region && !data.Region) { - cachedRegion = bucketRegionCache[bucket] || null; - if (cachedRegion !== req.httpRequest.region) { - region = cachedRegion; - } - } - - resp.error = AWS.util.error(new Error(), { - code: data.Code || code, - message: data.Message || null, - region: region - }); - } - req.service.extractRequestIds(resp); - }, - - /** - * If region was not obtained synchronously, then send async request - * to get bucket region for errors resulting from wrong region. - * - * @api private - */ - requestBucketRegion: function requestBucketRegion(resp, done) { - var error = resp.error; - var req = resp.request; - var bucket = req.params.Bucket || null; - - if (!error || !bucket || error.region || req.operation === 'listObjects' || - (AWS.util.isNode() && req.operation === 'headBucket') || - (error.statusCode === 400 && req.operation !== 'headObject') || - regionRedirectErrorCodes.indexOf(error.code) === -1) { - return done(); - } - var reqOperation = AWS.util.isNode() ? 'headBucket' : 'listObjects'; - var reqParams = {Bucket: bucket}; - if (reqOperation === 'listObjects') reqParams.MaxKeys = 0; - var regionReq = req.service[reqOperation](reqParams); - regionReq._requestRegionForBucket = bucket; - regionReq.send(function() { - var region = req.service.bucketRegionCache[bucket] || null; - error.region = region; - done(); - }); - }, - - /** - * For browser only. If NetworkingError received, will attempt to obtain - * the bucket region. - * - * @api private - */ - reqRegionForNetworkingError: function reqRegionForNetworkingError(resp, done) { - if (!AWS.util.isBrowser()) { - return done(); - } - var error = resp.error; - var request = resp.request; - var bucket = request.params.Bucket; - if (!error || error.code !== 'NetworkingError' || !bucket || - request.httpRequest.region === 'us-east-1') { - return done(); - } - var service = request.service; - var bucketRegionCache = service.bucketRegionCache; - var cachedRegion = bucketRegionCache[bucket] || null; - - if (cachedRegion && cachedRegion !== request.httpRequest.region) { - service.updateReqBucketRegion(request, cachedRegion); - done(); - } else if (!s3util.dnsCompatibleBucketName(bucket)) { - service.updateReqBucketRegion(request, 'us-east-1'); - if (bucketRegionCache[bucket] !== 'us-east-1') { - bucketRegionCache[bucket] = 'us-east-1'; - } - done(); - } else if (request.httpRequest.virtualHostedBucket) { - var getRegionReq = service.listObjects({Bucket: bucket, MaxKeys: 0}); - service.updateReqBucketRegion(getRegionReq, 'us-east-1'); - getRegionReq._requestRegionForBucket = bucket; - - getRegionReq.send(function() { - var region = service.bucketRegionCache[bucket] || null; - if (region && region !== request.httpRequest.region) { - service.updateReqBucketRegion(request, region); - } - done(); - }); - } else { - // DNS-compatible path-style - // (s3ForcePathStyle or bucket name with dot over https) - // Cannot obtain region information for this case - done(); - } - }, - - /** - * Cache for bucket region. - * - * @api private - */ - bucketRegionCache: {}, - - /** - * Clears bucket region cache. - * - * @api private - */ - clearBucketRegionCache: function(buckets) { - var bucketRegionCache = this.bucketRegionCache; - if (!buckets) { - buckets = Object.keys(bucketRegionCache); - } else if (typeof buckets === 'string') { - buckets = [buckets]; - } - for (var i = 0; i < buckets.length; i++) { - delete bucketRegionCache[buckets[i]]; - } - return bucketRegionCache; - }, - - /** - * Corrects request region if bucket's cached region is different - * - * @api private - */ - correctBucketRegionFromCache: function correctBucketRegionFromCache(req) { - var bucket = req.params.Bucket || null; - if (bucket) { - var service = req.service; - var requestRegion = req.httpRequest.region; - var cachedRegion = service.bucketRegionCache[bucket]; - if (cachedRegion && cachedRegion !== requestRegion) { - service.updateReqBucketRegion(req, cachedRegion); - } - } - }, - - /** - * Extracts S3 specific request ids from the http response. - * - * @api private - */ - extractRequestIds: function extractRequestIds(resp) { - var extendedRequestId = resp.httpResponse.headers ? resp.httpResponse.headers['x-amz-id-2'] : null; - var cfId = resp.httpResponse.headers ? resp.httpResponse.headers['x-amz-cf-id'] : null; - resp.extendedRequestId = extendedRequestId; - resp.cfId = cfId; - - if (resp.error) { - resp.error.requestId = resp.requestId || null; - resp.error.extendedRequestId = extendedRequestId; - resp.error.cfId = cfId; - } - }, - - /** - * Get a pre-signed URL for a given operation name. - * - * @note You must ensure that you have static or previously resolved - * credentials if you call this method synchronously (with no callback), - * otherwise it may not properly sign the request. If you cannot guarantee - * this (you are using an asynchronous credential provider, i.e., EC2 - * IAM roles), you should always call this method with an asynchronous - * callback. - * @note Not all operation parameters are supported when using pre-signed - * URLs. Certain parameters, such as `SSECustomerKey`, `ACL`, `Expires`, - * `ContentLength`, or `Tagging` must be provided as headers when sending a - * request. If you are using pre-signed URLs to upload from a browser and - * need to use these fields, see {createPresignedPost}. - * @note The default signer allows altering the request by adding corresponding - * headers to set some parameters (e.g. Range) and these added parameters - * won't be signed. You must use signatureVersion v4 to to include these - * parameters in the signed portion of the URL and enforce exact matching - * between headers and signed params in the URL. - * @note This operation cannot be used with a promise. See note above regarding - * asynchronous credentials and use with a callback. - * @param operation [String] the name of the operation to call - * @param params [map] parameters to pass to the operation. See the given - * operation for the expected operation parameters. In addition, you can - * also pass the "Expires" parameter to inform S3 how long the URL should - * work for. - * @option params Expires [Integer] (900) the number of seconds to expire - * the pre-signed URL operation in. Defaults to 15 minutes. - * @param callback [Function] if a callback is provided, this function will - * pass the URL as the second parameter (after the error parameter) to - * the callback function. - * @return [String] if called synchronously (with no callback), returns the - * signed URL. - * @return [null] nothing is returned if a callback is provided. - * @example Pre-signing a getObject operation (synchronously) - * var params = {Bucket: 'bucket', Key: 'key'}; - * var url = s3.getSignedUrl('getObject', params); - * console.log('The URL is', url); - * @example Pre-signing a putObject (asynchronously) - * var params = {Bucket: 'bucket', Key: 'key'}; - * s3.getSignedUrl('putObject', params, function (err, url) { - * console.log('The URL is', url); - * }); - * @example Pre-signing a putObject operation with a specific payload - * var params = {Bucket: 'bucket', Key: 'key', Body: 'body'}; - * var url = s3.getSignedUrl('putObject', params); - * console.log('The URL is', url); - * @example Passing in a 1-minute expiry time for a pre-signed URL - * var params = {Bucket: 'bucket', Key: 'key', Expires: 60}; - * var url = s3.getSignedUrl('getObject', params); - * console.log('The URL is', url); // expires in 60 seconds - */ - getSignedUrl: function getSignedUrl(operation, params, callback) { - params = AWS.util.copy(params || {}); - var expires = params.Expires || 900; - - if (typeof expires !== 'number') { - throw AWS.util.error(new Error(), - { code: 'InvalidParameterException', message: 'The expiration must be a number, received ' + typeof expires }); - } - - delete params.Expires; // we can't validate this - var request = this.makeRequest(operation, params); - - if (callback) { - AWS.util.defer(function() { - request.presign(expires, callback); - }); - } else { - return request.presign(expires, callback); - } - }, - - /** - * @!method getSignedUrlPromise() - * Returns a 'thenable' promise that will be resolved with a pre-signed URL - * for a given operation name. - * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @note Not all operation parameters are supported when using pre-signed - * URLs. Certain parameters, such as `SSECustomerKey`, `ACL`, `Expires`, - * `ContentLength`, or `Tagging` must be provided as headers when sending a - * request. If you are using pre-signed URLs to upload from a browser and - * need to use these fields, see {createPresignedPost}. - * @param operation [String] the name of the operation to call - * @param params [map] parameters to pass to the operation. See the given - * operation for the expected operation parameters. In addition, you can - * also pass the "Expires" parameter to inform S3 how long the URL should - * work for. - * @option params Expires [Integer] (900) the number of seconds to expire - * the pre-signed URL operation in. Defaults to 15 minutes. - * @callback fulfilledCallback function(url) - * Called if the promise is fulfilled. - * @param url [String] the signed url - * @callback rejectedCallback function(err) - * Called if the promise is rejected. - * @param err [Error] if an error occurred, this value will be filled - * @return [Promise] A promise that represents the state of the `refresh` call. - * @example Pre-signing a getObject operation - * var params = {Bucket: 'bucket', Key: 'key'}; - * var promise = s3.getSignedUrlPromise('getObject', params); - * promise.then(function(url) { - * console.log('The URL is', url); - * }, function(err) { ... }); - * @example Pre-signing a putObject operation with a specific payload - * var params = {Bucket: 'bucket', Key: 'key', Body: 'body'}; - * var promise = s3.getSignedUrlPromise('putObject', params); - * promise.then(function(url) { - * console.log('The URL is', url); - * }, function(err) { ... }); - * @example Passing in a 1-minute expiry time for a pre-signed URL - * var params = {Bucket: 'bucket', Key: 'key', Expires: 60}; - * var promise = s3.getSignedUrlPromise('getObject', params); - * promise.then(function(url) { - * console.log('The URL is', url); - * }, function(err) { ... }); - */ - - /** - * Get a pre-signed POST policy to support uploading to S3 directly from an - * HTML form. - * - * @param params [map] - * @option params Bucket [String] The bucket to which the post should be - * uploaded - * @option params Expires [Integer] (3600) The number of seconds for which - * the presigned policy should be valid. - * @option params Conditions [Array] An array of conditions that must be met - * for the presigned policy to allow the - * upload. This can include required tags, - * the accepted range for content lengths, - * etc. - * @see http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTConstructPolicy.html - * @option params Fields [map] Fields to include in the form. All - * values passed in as fields will be - * signed as exact match conditions. - * @param callback [Function] - * - * @note All fields passed in when creating presigned post data will be signed - * as exact match conditions. Any fields that will be interpolated by S3 - * must be added to the fields hash after signing, and an appropriate - * condition for such fields must be explicitly added to the Conditions - * array passed to this function before signing. - * - * @example Presiging post data with a known key - * var params = { - * Bucket: 'bucket', - * Fields: { - * key: 'key' - * } - * }; - * s3.createPresignedPost(params, function(err, data) { - * if (err) { - * console.error('Presigning post data encountered an error', err); - * } else { - * console.log('The post data is', data); - * } - * }); - * - * @example Presigning post data with an interpolated key - * var params = { - * Bucket: 'bucket', - * Conditions: [ - * ['starts-with', '$key', 'path/to/uploads/'] - * ] - * }; - * s3.createPresignedPost(params, function(err, data) { - * if (err) { - * console.error('Presigning post data encountered an error', err); - * } else { - * data.Fields.key = 'path/to/uploads/${filename}'; - * console.log('The post data is', data); - * } - * }); - * - * @note You must ensure that you have static or previously resolved - * credentials if you call this method synchronously (with no callback), - * otherwise it may not properly sign the request. If you cannot guarantee - * this (you are using an asynchronous credential provider, i.e., EC2 - * IAM roles), you should always call this method with an asynchronous - * callback. - * - * @return [map] If called synchronously (with no callback), returns a hash - * with the url to set as the form action and a hash of fields - * to include in the form. - * @return [null] Nothing is returned if a callback is provided. - * - * @callback callback function (err, data) - * @param err [Error] the error object returned from the policy signer - * @param data [map] The data necessary to construct an HTML form - * @param data.url [String] The URL to use as the action of the form - * @param data.fields [map] A hash of fields that must be included in the - * form for the upload to succeed. This hash will - * include the signed POST policy, your access key - * ID and security token (if present), etc. These - * may be safely included as input elements of type - * 'hidden.' - */ - createPresignedPost: function createPresignedPost(params, callback) { - if (typeof params === 'function' && callback === undefined) { - callback = params; - params = null; - } - - params = AWS.util.copy(params || {}); - var boundParams = this.config.params || {}; - var bucket = params.Bucket || boundParams.Bucket, - self = this, - config = this.config, - endpoint = AWS.util.copy(this.endpoint); - if (!config.s3BucketEndpoint) { - endpoint.pathname = '/' + bucket; - } - - function finalizePost() { - return { - url: AWS.util.urlFormat(endpoint), - fields: self.preparePostFields( - config.credentials, - config.region, - bucket, - params.Fields, - params.Conditions, - params.Expires - ) - }; - } - - if (callback) { - config.getCredentials(function (err) { - if (err) { - callback(err); - } else { - try { - callback(null, finalizePost()); - } catch (err) { - callback(err); - } - } - }); - } else { - return finalizePost(); - } - }, - - /** - * @api private - */ - preparePostFields: function preparePostFields( - credentials, - region, - bucket, - fields, - conditions, - expiresInSeconds - ) { - var now = this.getSkewCorrectedDate(); - if (!credentials || !region || !bucket) { - throw new Error('Unable to create a POST object policy without a bucket,' - + ' region, and credentials'); - } - fields = AWS.util.copy(fields || {}); - conditions = (conditions || []).slice(0); - expiresInSeconds = expiresInSeconds || 3600; - - var signingDate = AWS.util.date.iso8601(now).replace(/[:\-]|\.\d{3}/g, ''); - var shortDate = signingDate.substr(0, 8); - var scope = v4Credentials.createScope(shortDate, region, 's3'); - var credential = credentials.accessKeyId + '/' + scope; - - fields['bucket'] = bucket; - fields['X-Amz-Algorithm'] = 'AWS4-HMAC-SHA256'; - fields['X-Amz-Credential'] = credential; - fields['X-Amz-Date'] = signingDate; - if (credentials.sessionToken) { - fields['X-Amz-Security-Token'] = credentials.sessionToken; - } - for (var field in fields) { - if (fields.hasOwnProperty(field)) { - var condition = {}; - condition[field] = fields[field]; - conditions.push(condition); - } - } - - fields.Policy = this.preparePostPolicy( - new Date(now.valueOf() + expiresInSeconds * 1000), - conditions - ); - fields['X-Amz-Signature'] = AWS.util.crypto.hmac( - v4Credentials.getSigningKey(credentials, shortDate, region, 's3', true), - fields.Policy, - 'hex' - ); - - return fields; - }, - - /** - * @api private - */ - preparePostPolicy: function preparePostPolicy(expiration, conditions) { - return AWS.util.base64.encode(JSON.stringify({ - expiration: AWS.util.date.iso8601(expiration), - conditions: conditions - })); - }, - - /** - * @api private - */ - prepareSignedUrl: function prepareSignedUrl(request) { - request.addListener('validate', request.service.noPresignedContentLength); - request.removeListener('build', request.service.addContentType); - if (!request.params.Body) { - // no Content-MD5/SHA-256 if body is not provided - request.removeListener('build', request.service.computeContentMd5); - } else { - request.addListener('afterBuild', AWS.EventListeners.Core.COMPUTE_SHA256); - } - }, - - /** - * @api private - * @param request - */ - disableBodySigning: function disableBodySigning(request) { - var headers = request.httpRequest.headers; - // Add the header to anything that isn't a presigned url, unless that presigned url had a body defined - if (!Object.prototype.hasOwnProperty.call(headers, 'presigned-expires')) { - headers['X-Amz-Content-Sha256'] = 'UNSIGNED-PAYLOAD'; - } - }, - - /** - * @api private - */ - noPresignedContentLength: function noPresignedContentLength(request) { - if (request.params.ContentLength !== undefined) { - throw AWS.util.error(new Error(), {code: 'UnexpectedParameter', - message: 'ContentLength is not supported in pre-signed URLs.'}); - } - }, - - createBucket: function createBucket(params, callback) { - // When creating a bucket *outside* the classic region, the location - // constraint must be set for the bucket and it must match the endpoint. - // This chunk of code will set the location constraint param based - // on the region (when possible), but it will not override a passed-in - // location constraint. - if (typeof params === 'function' || !params) { - callback = callback || params; - params = {}; - } - var hostname = this.endpoint.hostname; - // copy params so that appending keys does not unintentioinallly - // mutate params object argument passed in by user - var copiedParams = AWS.util.copy(params); - - if ( - this.config.region !== 'us-east-1' - && hostname !== this.api.globalEndpoint - && !params.CreateBucketConfiguration - ) { - copiedParams.CreateBucketConfiguration = { LocationConstraint: this.config.region }; - } - return this.makeRequest('createBucket', copiedParams, callback); - }, - - writeGetObjectResponse: function writeGetObjectResponse(params, callback) { - - var request = this.makeRequest('writeGetObjectResponse', AWS.util.copy(params), callback); - var hostname = this.endpoint.hostname; - if (hostname.indexOf(this.config.region) !== -1) { - // hostname specifies a region already - hostname = hostname.replace('s3.', OBJECT_LAMBDA_SERVICE + '.'); - } else { - // Hostname doesn't have a region. - // Object Lambda requires an explicit region. - hostname = hostname.replace('s3.', OBJECT_LAMBDA_SERVICE + '.' + this.config.region + '.'); - } - - request.httpRequest.endpoint = new AWS.Endpoint(hostname, this.config); - return request; - }, - - /** - * @see AWS.S3.ManagedUpload - * @overload upload(params = {}, [options], [callback]) - * Uploads an arbitrarily sized buffer, blob, or stream, using intelligent - * concurrent handling of parts if the payload is large enough. You can - * configure the concurrent queue size by setting `options`. Note that this - * is the only operation for which the SDK can retry requests with stream - * bodies. - * - * @param (see AWS.S3.putObject) - * @option (see AWS.S3.ManagedUpload.constructor) - * @return [AWS.S3.ManagedUpload] the managed upload object that can call - * `send()` or track progress. - * @example Uploading a stream object - * var params = {Bucket: 'bucket', Key: 'key', Body: stream}; - * s3.upload(params, function(err, data) { - * console.log(err, data); - * }); - * @example Uploading a stream with concurrency of 1 and partSize of 10mb - * var params = {Bucket: 'bucket', Key: 'key', Body: stream}; - * var options = {partSize: 10 * 1024 * 1024, queueSize: 1}; - * s3.upload(params, options, function(err, data) { - * console.log(err, data); - * }); - * @callback callback function(err, data) - * @param err [Error] an error or null if no error occurred. - * @param data [map] The response data from the successful upload: - * @param data.Location [String] the URL of the uploaded object - * @param data.ETag [String] the ETag of the uploaded object - * @param data.Bucket [String] the bucket to which the object was uploaded - * @param data.Key [String] the key to which the object was uploaded - */ - upload: function upload(params, options, callback) { - if (typeof options === 'function' && callback === undefined) { - callback = options; - options = null; - } - - options = options || {}; - options = AWS.util.merge(options || {}, {service: this, params: params}); - - var uploader = new AWS.S3.ManagedUpload(options); - if (typeof callback === 'function') uploader.send(callback); - return uploader; - }, - - /** - * @api private - */ - setExpiresString: function setExpiresString(response) { - // Check if response contains Expires value, and populate ExpiresString. - if (response && response.httpResponse && response.httpResponse.headers) { - if ('expires' in response.httpResponse.headers) { - response.httpResponse.headers.expiresstring = response.httpResponse.headers.expires; - } - } - - // Check if value in Expires is not a Date using parseTimestamp. - try { - if (response && response.httpResponse && response.httpResponse.headers) { - if ('expires' in response.httpResponse.headers) { - AWS.util.date.parseTimestamp(response.httpResponse.headers.expires); - } - } - } catch (e) { - console.log('AWS SDK', '(warning)', e); - delete response.httpResponse.headers.expires; - } - } -}); - -/** - * @api private - */ -AWS.S3.addPromisesToClass = function addPromisesToClass(PromiseDependency) { - this.prototype.getSignedUrlPromise = AWS.util.promisifyMethod('getSignedUrl', PromiseDependency); -}; - -/** - * @api private - */ -AWS.S3.deletePromisesFromClass = function deletePromisesFromClass() { - delete this.prototype.getSignedUrlPromise; -}; - -AWS.util.addPromises(AWS.S3); - - -/***/ }), - -/***/ 5574: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var s3util = __nccwpck_require__(53659); -var regionUtil = __nccwpck_require__(48603); - -AWS.util.update(AWS.S3Control.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - request.addListener('extractError', this.extractHostId); - request.addListener('extractData', this.extractHostId); - request.addListener('validate', this.validateAccountId); - - var isArnInBucket = s3util.isArnInParam(request, 'Bucket'); - var isArnInName = s3util.isArnInParam(request, 'Name'); - - if (isArnInBucket) { - request._parsedArn = AWS.util.ARN.parse(request.params['Bucket']); - request.addListener('validate', this.validateOutpostsBucketArn); - request.addListener('validate', s3util.validateOutpostsArn); - request.addListener('afterBuild', this.addOutpostIdHeader); - } else if (isArnInName) { - request._parsedArn = AWS.util.ARN.parse(request.params['Name']); - request.addListener('validate', s3util.validateOutpostsAccessPointArn); - request.addListener('validate', s3util.validateOutpostsArn); - request.addListener('afterBuild', this.addOutpostIdHeader); - } - - if (isArnInBucket || isArnInName) { - request.addListener('validate', this.validateArnRegion); - request.addListener('validate', this.validateArnAccountWithParams, true); - request.addListener('validate', s3util.validateArnAccount); - request.addListener('validate', s3util.validateArnService); - request.addListener('build', this.populateParamFromArn, true); - request.addListener('build', this.populateUriFromArn); - request.addListener('build', s3util.validatePopulateUriFromArn); - } - - if (request.params.OutpostId && - (request.operation === 'createBucket' || - request.operation === 'listRegionalBuckets')) { - request.addListener('build', this.populateEndpointForOutpostId); - } - }, - - /** - * Adds outpostId header - */ - addOutpostIdHeader: function addOutpostIdHeader(req) { - req.httpRequest.headers['x-amz-outpost-id'] = req._parsedArn.outpostId; - }, - - /** - * Validate Outposts ARN supplied in Bucket parameter is a valid bucket name - */ - validateOutpostsBucketArn: function validateOutpostsBucketArn(req) { - var parsedArn = req._parsedArn; - - //can be ':' or '/' - var delimiter = parsedArn.resource['outpost'.length]; - - if (parsedArn.resource.split(delimiter).length !== 4) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'Bucket ARN should have two resources outpost/{outpostId}/bucket/{accesspointName}' - }); - } - - var bucket = parsedArn.resource.split(delimiter)[3]; - if (!s3util.dnsCompatibleBucketName(bucket) || bucket.match(/\./)) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'Bucket ARN is not DNS compatible. Got ' + bucket - }); - } - - //set parsed valid bucket - req._parsedArn.bucket = bucket; - }, - - /** - * @api private - */ - populateParamFromArn: function populateParamFromArn(req) { - var parsedArn = req._parsedArn; - if (s3util.isArnInParam(req, 'Bucket')) { - req.params.Bucket = parsedArn.bucket; - } else if (s3util.isArnInParam(req, 'Name')) { - req.params.Name = parsedArn.accessPoint; - } - }, - - /** - * Populate URI according to the ARN - */ - populateUriFromArn: function populateUriFromArn(req) { - var parsedArn = req._parsedArn; - - var endpoint = req.httpRequest.endpoint; - var useArnRegion = req.service.config.s3UseArnRegion; - var useFipsEndpoint = req.service.config.useFipsEndpoint; - - endpoint.hostname = [ - 's3-outposts' + (useFipsEndpoint ? '-fips': ''), - useArnRegion ? parsedArn.region : req.service.config.region, - 'amazonaws.com' - ].join('.'); - endpoint.host = endpoint.hostname; - }, - - /** - * @api private - */ - populateEndpointForOutpostId: function populateEndpointForOutpostId(req) { - var endpoint = req.httpRequest.endpoint; - var useFipsEndpoint = req.service.config.useFipsEndpoint; - endpoint.hostname = [ - 's3-outposts' + (useFipsEndpoint ? '-fips': ''), - req.service.config.region, - 'amazonaws.com' - ].join('.'); - endpoint.host = endpoint.hostname; - }, - - /** - * @api private - */ - extractHostId: function(response) { - var hostId = response.httpResponse.headers ? response.httpResponse.headers['x-amz-id-2'] : null; - response.extendedRequestId = hostId; - if (response.error) { - response.error.extendedRequestId = hostId; - } - }, - - /** - * @api private - */ - validateArnRegion: function validateArnRegion(req) { - s3util.validateArnRegion(req, { allowFipsEndpoint: true }); - }, - - /** - * @api private - */ - validateArnAccountWithParams: function validateArnAccountWithParams(req) { - var params = req.params; - var inputModel = req.service.api.operations[req.operation].input; - if (inputModel.members.AccountId) { - var parsedArn = req._parsedArn; - if (parsedArn.accountId) { - if (params.AccountId) { - if (params.AccountId !== parsedArn.accountId) { - throw AWS.util.error( - new Error(), - {code: 'ValidationError', message: 'AccountId in ARN and request params should be same.'} - ); - } - } else { - // Store accountId from ARN in params - params.AccountId = parsedArn.accountId; - } - } - } - }, - - /** - * @api private - */ - validateAccountId: function(request) { - var params = request.params; - if (!Object.prototype.hasOwnProperty.call(params, 'AccountId')) return; - var accountId = params.AccountId; - //validate type - if (typeof accountId !== 'string') { - throw AWS.util.error( - new Error(), - {code: 'ValidationError', message: 'AccountId must be a string.'} - ); - } - //validate length - if (accountId.length < 1 || accountId.length > 63) { - throw AWS.util.error( - new Error(), - {code: 'ValidationError', message: 'AccountId length should be between 1 to 63 characters, inclusive.'} - ); - } - //validate pattern - var hostPattern = /^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/; - if (!hostPattern.test(accountId)) { - throw AWS.util.error(new Error(), - {code: 'ValidationError', message: 'AccountId should be hostname compatible. AccountId: ' + accountId}); - } - }, - - /** - * @api private - */ - getSigningName: function getSigningName(req) { - var _super = AWS.Service.prototype.getSigningName; - if (req && req._parsedArn && req._parsedArn.service) { - return req._parsedArn.service; - } else if (req.params.OutpostId && - (req.operation === 'createBucket' || - req.operation === 'listRegionalBuckets')) { - return 's3-outposts'; - } else { - return _super.call(this, req); - } - }, -}); - - -/***/ }), - -/***/ 53659: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var regionUtil = __nccwpck_require__(48603); - -var s3util = { - /** - * @api private - */ - isArnInParam: function isArnInParam(req, paramName) { - var inputShape = (req.service.api.operations[req.operation] || {}).input || {}; - var inputMembers = inputShape.members || {}; - if (!req.params[paramName] || !inputMembers[paramName]) return false; - return AWS.util.ARN.validate(req.params[paramName]); - }, - - /** - * Validate service component from ARN supplied in Bucket parameter - */ - validateArnService: function validateArnService(req) { - var parsedArn = req._parsedArn; - - if (parsedArn.service !== 's3' - && parsedArn.service !== 's3-outposts' - && parsedArn.service !== 's3-object-lambda') { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'expect \'s3\' or \'s3-outposts\' or \'s3-object-lambda\' in ARN service component' - }); - } - }, - - /** - * Validate account ID from ARN supplied in Bucket parameter is a valid account - */ - validateArnAccount: function validateArnAccount(req) { - var parsedArn = req._parsedArn; - - if (!/[0-9]{12}/.exec(parsedArn.accountId)) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'ARN accountID does not match regex "[0-9]{12}"' - }); - } - }, - - /** - * Validate ARN supplied in Bucket parameter is a valid access point ARN - */ - validateS3AccessPointArn: function validateS3AccessPointArn(req) { - var parsedArn = req._parsedArn; - - //can be ':' or '/' - var delimiter = parsedArn.resource['accesspoint'.length]; - - if (parsedArn.resource.split(delimiter).length !== 2) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'Access Point ARN should have one resource accesspoint/{accesspointName}' - }); - } - - var accessPoint = parsedArn.resource.split(delimiter)[1]; - var accessPointPrefix = accessPoint + '-' + parsedArn.accountId; - if (!s3util.dnsCompatibleBucketName(accessPointPrefix) || accessPointPrefix.match(/\./)) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'Access point resource in ARN is not DNS compatible. Got ' + accessPoint - }); - } - - //set parsed valid access point - req._parsedArn.accessPoint = accessPoint; - }, - - /** - * Validate Outposts ARN supplied in Bucket parameter is a valid outposts ARN - */ - validateOutpostsArn: function validateOutpostsArn(req) { - var parsedArn = req._parsedArn; - - if ( - parsedArn.resource.indexOf('outpost:') !== 0 && - parsedArn.resource.indexOf('outpost/') !== 0 - ) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'ARN resource should begin with \'outpost/\'' - }); - } - - //can be ':' or '/' - var delimiter = parsedArn.resource['outpost'.length]; - var outpostId = parsedArn.resource.split(delimiter)[1]; - var dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); - if (!dnsHostRegex.test(outpostId)) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'Outpost resource in ARN is not DNS compatible. Got ' + outpostId - }); - } - req._parsedArn.outpostId = outpostId; - }, - - /** - * Validate Outposts ARN supplied in Bucket parameter is a valid outposts ARN - */ - validateOutpostsAccessPointArn: function validateOutpostsAccessPointArn(req) { - var parsedArn = req._parsedArn; - - //can be ':' or '/' - var delimiter = parsedArn.resource['outpost'.length]; - - if (parsedArn.resource.split(delimiter).length !== 4) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'Outposts ARN should have two resources outpost/{outpostId}/accesspoint/{accesspointName}' - }); - } - - var accessPoint = parsedArn.resource.split(delimiter)[3]; - var accessPointPrefix = accessPoint + '-' + parsedArn.accountId; - if (!s3util.dnsCompatibleBucketName(accessPointPrefix) || accessPointPrefix.match(/\./)) { - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: 'Access point resource in ARN is not DNS compatible. Got ' + accessPoint - }); - } - - //set parsed valid access point - req._parsedArn.accessPoint = accessPoint; - }, - - /** - * Validate region field in ARN supplied in Bucket parameter is a valid region - */ - validateArnRegion: function validateArnRegion(req, options) { - if (options === undefined) { - options = {}; - } - - var useArnRegion = s3util.loadUseArnRegionConfig(req); - var regionFromArn = req._parsedArn.region; - var clientRegion = req.service.config.region; - var useFipsEndpoint = req.service.config.useFipsEndpoint; - var allowFipsEndpoint = options.allowFipsEndpoint || false; - - if (!regionFromArn) { - var message = 'ARN region is empty'; - if (req._parsedArn.service === 's3') { - message = message + '\nYou may want to use multi-regional ARN. The feature is not supported in current SDK. ' + - 'You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3).'; - } - throw AWS.util.error(new Error(), { - code: 'InvalidARN', - message: message - }); - } - - if (useFipsEndpoint && !allowFipsEndpoint) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: 'ARN endpoint is not compatible with FIPS region' - }); - } - - if (regionFromArn.indexOf('fips') >= 0) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: 'FIPS region not allowed in ARN' - }); - } - - if (!useArnRegion && regionFromArn !== clientRegion) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: 'Configured region conflicts with access point region' - }); - } else if ( - useArnRegion && - regionUtil.getEndpointSuffix(regionFromArn) !== regionUtil.getEndpointSuffix(clientRegion) - ) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: 'Configured region and access point region not in same partition' - }); - } - - if (req.service.config.useAccelerateEndpoint) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: 'useAccelerateEndpoint config is not supported with access point ARN' - }); - } - - if (req._parsedArn.service === 's3-outposts' && req.service.config.useDualstackEndpoint) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: 'Dualstack is not supported with outposts access point ARN' - }); - } - }, - - loadUseArnRegionConfig: function loadUseArnRegionConfig(req) { - var envName = 'AWS_S3_USE_ARN_REGION'; - var configName = 's3_use_arn_region'; - var useArnRegion = true; - var originalConfig = req.service._originalConfig || {}; - if (req.service.config.s3UseArnRegion !== undefined) { - return req.service.config.s3UseArnRegion; - } else if (originalConfig.s3UseArnRegion !== undefined) { - useArnRegion = originalConfig.s3UseArnRegion === true; - } else if (AWS.util.isNode()) { - //load from environmental variable AWS_USE_ARN_REGION - if (process.env[envName]) { - var value = process.env[envName].trim().toLowerCase(); - if (['false', 'true'].indexOf(value) < 0) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: envName + ' only accepts true or false. Got ' + process.env[envName], - retryable: false - }); - } - useArnRegion = value === 'true'; - } else { //load from shared config property use_arn_region - var profiles = {}; - var profile = {}; - try { - profiles = AWS.util.getProfilesFromSharedConfig(AWS.util.iniLoader); - profile = profiles[process.env.AWS_PROFILE || AWS.util.defaultProfile]; - } catch (e) {} - if (profile[configName]) { - if (['false', 'true'].indexOf(profile[configName].trim().toLowerCase()) < 0) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: configName + ' only accepts true or false. Got ' + profile[configName], - retryable: false - }); - } - useArnRegion = profile[configName].trim().toLowerCase() === 'true'; - } - } - } - req.service.config.s3UseArnRegion = useArnRegion; - return useArnRegion; - }, - - /** - * Validations before URI can be populated - */ - validatePopulateUriFromArn: function validatePopulateUriFromArn(req) { - if (req.service._originalConfig && req.service._originalConfig.endpoint) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: 'Custom endpoint is not compatible with access point ARN' - }); - } - - if (req.service.config.s3ForcePathStyle) { - throw AWS.util.error(new Error(), { - code: 'InvalidConfiguration', - message: 'Cannot construct path-style endpoint with access point' - }); - } - }, - - /** - * Returns true if the bucket name is DNS compatible. Buckets created - * outside of the classic region MUST be DNS compatible. - * - * @api private - */ - dnsCompatibleBucketName: function dnsCompatibleBucketName(bucketName) { - var b = bucketName; - var domain = new RegExp(/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/); - var ipAddress = new RegExp(/(\d+\.){3}\d+/); - var dots = new RegExp(/\.\./); - return (b.match(domain) && !b.match(ipAddress) && !b.match(dots)) ? true : false; - }, -}; - -/** - * @api private - */ -module.exports = s3util; - - -/***/ }), - -/***/ 74820: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -AWS.util.update(AWS.SQS.prototype, { - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - request.addListener('build', this.buildEndpoint); - - if (request.service.config.computeChecksums) { - if (request.operation === 'sendMessage') { - request.addListener('extractData', this.verifySendMessageChecksum); - } else if (request.operation === 'sendMessageBatch') { - request.addListener('extractData', this.verifySendMessageBatchChecksum); - } else if (request.operation === 'receiveMessage') { - request.addListener('extractData', this.verifyReceiveMessageChecksum); - } - } - }, - - /** - * @api private - */ - verifySendMessageChecksum: function verifySendMessageChecksum(response) { - if (!response.data) return; - - var md5 = response.data.MD5OfMessageBody; - var body = this.params.MessageBody; - var calculatedMd5 = this.service.calculateChecksum(body); - if (calculatedMd5 !== md5) { - var msg = 'Got "' + response.data.MD5OfMessageBody + - '", expecting "' + calculatedMd5 + '".'; - this.service.throwInvalidChecksumError(response, - [response.data.MessageId], msg); - } - }, - - /** - * @api private - */ - verifySendMessageBatchChecksum: function verifySendMessageBatchChecksum(response) { - if (!response.data) return; - - var service = this.service; - var entries = {}; - var errors = []; - var messageIds = []; - AWS.util.arrayEach(response.data.Successful, function (entry) { - entries[entry.Id] = entry; - }); - AWS.util.arrayEach(this.params.Entries, function (entry) { - if (entries[entry.Id]) { - var md5 = entries[entry.Id].MD5OfMessageBody; - var body = entry.MessageBody; - if (!service.isChecksumValid(md5, body)) { - errors.push(entry.Id); - messageIds.push(entries[entry.Id].MessageId); - } - } - }); - - if (errors.length > 0) { - service.throwInvalidChecksumError(response, messageIds, - 'Invalid messages: ' + errors.join(', ')); - } - }, - - /** - * @api private - */ - verifyReceiveMessageChecksum: function verifyReceiveMessageChecksum(response) { - if (!response.data) return; - - var service = this.service; - var messageIds = []; - AWS.util.arrayEach(response.data.Messages, function(message) { - var md5 = message.MD5OfBody; - var body = message.Body; - if (!service.isChecksumValid(md5, body)) { - messageIds.push(message.MessageId); - } - }); - - if (messageIds.length > 0) { - service.throwInvalidChecksumError(response, messageIds, - 'Invalid messages: ' + messageIds.join(', ')); - } - }, - - /** - * @api private - */ - throwInvalidChecksumError: function throwInvalidChecksumError(response, ids, message) { - response.error = AWS.util.error(new Error(), { - retryable: true, - code: 'InvalidChecksum', - messageIds: ids, - message: response.request.operation + - ' returned an invalid MD5 response. ' + message - }); - }, - - /** - * @api private - */ - isChecksumValid: function isChecksumValid(checksum, data) { - return this.calculateChecksum(data) === checksum; - }, - - /** - * @api private - */ - calculateChecksum: function calculateChecksum(data) { - return AWS.util.crypto.md5(data, 'hex'); - }, - - /** - * @api private - */ - buildEndpoint: function buildEndpoint(request) { - var url = request.httpRequest.params.QueueUrl; - if (url) { - request.httpRequest.endpoint = new AWS.Endpoint(url); - - // signature version 4 requires the region name to be set, - // sqs queue urls contain the region name - var matches = request.httpRequest.endpoint.host.match(/^sqs\.(.+?)\./); - if (matches) request.httpRequest.region = matches[1]; - } - } -}); - - -/***/ }), - -/***/ 23429: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var resolveRegionalEndpointsFlag = __nccwpck_require__(44568); -var ENV_REGIONAL_ENDPOINT_ENABLED = 'AWS_STS_REGIONAL_ENDPOINTS'; -var CONFIG_REGIONAL_ENDPOINT_ENABLED = 'sts_regional_endpoints'; - -AWS.util.update(AWS.STS.prototype, { - /** - * @overload credentialsFrom(data, credentials = null) - * Creates a credentials object from STS response data containing - * credentials information. Useful for quickly setting AWS credentials. - * - * @note This is a low-level utility function. If you want to load temporary - * credentials into your process for subsequent requests to AWS resources, - * you should use {AWS.TemporaryCredentials} instead. - * @param data [map] data retrieved from a call to {getFederatedToken}, - * {getSessionToken}, {assumeRole}, or {assumeRoleWithWebIdentity}. - * @param credentials [AWS.Credentials] an optional credentials object to - * fill instead of creating a new object. Useful when modifying an - * existing credentials object from a refresh call. - * @return [AWS.TemporaryCredentials] the set of temporary credentials - * loaded from a raw STS operation response. - * @example Using credentialsFrom to load global AWS credentials - * var sts = new AWS.STS(); - * sts.getSessionToken(function (err, data) { - * if (err) console.log("Error getting credentials"); - * else { - * AWS.config.credentials = sts.credentialsFrom(data); - * } - * }); - * @see AWS.TemporaryCredentials - */ - credentialsFrom: function credentialsFrom(data, credentials) { - if (!data) return null; - if (!credentials) credentials = new AWS.TemporaryCredentials(); - credentials.expired = false; - credentials.accessKeyId = data.Credentials.AccessKeyId; - credentials.secretAccessKey = data.Credentials.SecretAccessKey; - credentials.sessionToken = data.Credentials.SessionToken; - credentials.expireTime = data.Credentials.Expiration; - return credentials; - }, - - assumeRoleWithWebIdentity: function assumeRoleWithWebIdentity(params, callback) { - return this.makeUnauthenticatedRequest('assumeRoleWithWebIdentity', params, callback); - }, - - assumeRoleWithSAML: function assumeRoleWithSAML(params, callback) { - return this.makeUnauthenticatedRequest('assumeRoleWithSAML', params, callback); - }, - - /** - * @api private - */ - setupRequestListeners: function setupRequestListeners(request) { - request.addListener('validate', this.optInRegionalEndpoint, true); - }, - - /** - * @api private - */ - optInRegionalEndpoint: function optInRegionalEndpoint(req) { - var service = req.service; - var config = service.config; - config.stsRegionalEndpoints = resolveRegionalEndpointsFlag(service._originalConfig, { - env: ENV_REGIONAL_ENDPOINT_ENABLED, - sharedConfig: CONFIG_REGIONAL_ENDPOINT_ENABLED, - clientConfig: 'stsRegionalEndpoints' - }); - if ( - config.stsRegionalEndpoints === 'regional' && - service.isGlobalEndpoint - ) { - //client will throw if region is not supplied; request will be signed with specified region - if (!config.region) { - throw AWS.util.error(new Error(), - {code: 'ConfigError', message: 'Missing region in config'}); - } - var insertPoint = config.endpoint.indexOf('.amazonaws.com'); - var regionalEndpoint = config.endpoint.substring(0, insertPoint) + - '.' + config.region + config.endpoint.substring(insertPoint); - req.httpRequest.updateEndpoint(regionalEndpoint); - req.httpRequest.region = config.region; - } - } - -}); - - -/***/ }), - -/***/ 87377: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -AWS.util.hideProperties(AWS, ['SimpleWorkflow']); - -/** - * @constant - * @readonly - * Backwards compatibility for access to the {AWS.SWF} service class. - */ -AWS.SimpleWorkflow = AWS.SWF; - - -/***/ }), - -/***/ 6955: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var IniLoader = (__nccwpck_require__(48149).IniLoader); -/** - * Singleton object to load specified config/credentials files. - * It will cache all the files ever loaded; - */ -module.exports.s = new IniLoader(); - - -/***/ }), - -/***/ 48149: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var os = __nccwpck_require__(70857); -var path = __nccwpck_require__(16928); - -function parseFile(filename) { - return AWS.util.ini.parse(AWS.util.readFileSync(filename)); -} - -function getProfiles(fileContent) { - var tmpContent = {}; - Object.keys(fileContent).forEach(function(sectionName) { - if (/^sso-session\s/.test(sectionName)) return; - Object.defineProperty(tmpContent, sectionName.replace(/^profile\s/, ''), { - value: fileContent[sectionName], - enumerable: true - }); - }); - return tmpContent; -} - -function getSsoSessions(fileContent) { - var tmpContent = {}; - Object.keys(fileContent).forEach(function(sectionName) { - if (!/^sso-session\s/.test(sectionName)) return; - Object.defineProperty(tmpContent, sectionName.replace(/^sso-session\s/, ''), { - value: fileContent[sectionName], - enumerable: true - }); - }); - return tmpContent; -} - -/** - * Ini file loader class the same as that used in the SDK. It loads and - * parses config and credentials files in .ini format and cache the content - * to assure files are only read once. - * Note that calling operations on the instance instantiated from this class - * won't affect the behavior of SDK since SDK uses an internal singleton of - * this class. - * @!macro nobrowser - */ -AWS.IniLoader = AWS.util.inherit({ - constructor: function IniLoader() { - this.resolvedProfiles = {}; - this.resolvedSsoSessions = {}; - }, - - /** Remove all cached files. Used after config files are updated. */ - clearCachedFiles: function clearCachedFiles() { - this.resolvedProfiles = {}; - this.resolvedSsoSessions = {}; - }, - - /** - * Load configurations from config/credentials files and cache them - * for later use. If no file is specified it will try to load default files. - * - * @param options [map] information describing the file - * @option options filename [String] ('~/.aws/credentials' or defined by - * AWS_SHARED_CREDENTIALS_FILE process env var or '~/.aws/config' if - * isConfig is set to true) - * path to the file to be read. - * @option options isConfig [Boolean] (false) True to read config file. - * @return [map] object containing contents from file in key-value - * pairs. - */ - loadFrom: function loadFrom(options) { - options = options || {}; - var isConfig = options.isConfig === true; - var filename = options.filename || this.getDefaultFilePath(isConfig); - if (!this.resolvedProfiles[filename]) { - var fileContent = parseFile(filename); - if (isConfig) { - Object.defineProperty(this.resolvedProfiles, filename, { - value: getProfiles(fileContent) - }); - } else { - Object.defineProperty(this.resolvedProfiles, filename, { value: fileContent }); - } - } - return this.resolvedProfiles[filename]; - }, - - /** - * Load sso sessions from config/credentials files and cache them - * for later use. If no file is specified it will try to load default file. - * - * @param options [map] information describing the file - * @option options filename [String] ('~/.aws/config' or defined by - * AWS_CONFIG_FILE process env var) - * @return [map] object containing contents from file in key-value - * pairs. - */ - loadSsoSessionsFrom: function loadSsoSessionsFrom(options) { - options = options || {}; - var filename = options.filename || this.getDefaultFilePath(true); - if (!this.resolvedSsoSessions[filename]) { - var fileContent = parseFile(filename); - Object.defineProperty(this.resolvedSsoSessions, filename, { - value: getSsoSessions(fileContent) - }); - } - return this.resolvedSsoSessions[filename]; - }, - - getDefaultFilePath: function getDefaultFilePath(isConfig) { - return path.join( - this.getHomeDir(), - '.aws', - isConfig ? 'config' : 'credentials' - ); - }, - - getHomeDir: function getHomeDir() { - var env = process.env; - var home = env.HOME || - env.USERPROFILE || - (env.HOMEPATH ? ((env.HOMEDRIVE || 'C:/') + env.HOMEPATH) : null); - - if (home) { - return home; - } - - if (typeof os.homedir === 'function') { - return os.homedir(); - } - - throw AWS.util.error( - new Error('Cannot load credentials, HOME path not set') - ); - } -}); - -var IniLoader = AWS.IniLoader; - -module.exports = { - IniLoader: IniLoader -}; - - -/***/ }), - -/***/ 40579: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -/** - * @api private - */ -AWS.Signers.Bearer = AWS.util.inherit(AWS.Signers.RequestSigner, { - constructor: function Bearer(request) { - AWS.Signers.RequestSigner.call(this, request); - }, - - addAuthorization: function addAuthorization(token) { - this.request.headers['Authorization'] = 'Bearer ' + token.token; - } -}); - - -/***/ }), - -/***/ 23452: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var inherit = AWS.util.inherit; - -/** - * @api private - */ -var expiresHeader = 'presigned-expires'; - -/** - * @api private - */ -function signedUrlBuilder(request) { - var expires = request.httpRequest.headers[expiresHeader]; - var signerClass = request.service.getSignerClass(request); - - delete request.httpRequest.headers['User-Agent']; - delete request.httpRequest.headers['X-Amz-User-Agent']; - - if (signerClass === AWS.Signers.V4) { - if (expires > 604800) { // one week expiry is invalid - var message = 'Presigning does not support expiry time greater ' + - 'than a week with SigV4 signing.'; - throw AWS.util.error(new Error(), { - code: 'InvalidExpiryTime', message: message, retryable: false - }); - } - request.httpRequest.headers[expiresHeader] = expires; - } else if (signerClass === AWS.Signers.S3) { - var now = request.service ? request.service.getSkewCorrectedDate() : AWS.util.date.getDate(); - request.httpRequest.headers[expiresHeader] = parseInt( - AWS.util.date.unixTimestamp(now) + expires, 10).toString(); - } else { - throw AWS.util.error(new Error(), { - message: 'Presigning only supports S3 or SigV4 signing.', - code: 'UnsupportedSigner', retryable: false - }); - } -} - -/** - * @api private - */ -function signedUrlSigner(request) { - var endpoint = request.httpRequest.endpoint; - var parsedUrl = AWS.util.urlParse(request.httpRequest.path); - var queryParams = {}; - - if (parsedUrl.search) { - queryParams = AWS.util.queryStringParse(parsedUrl.search.substr(1)); - } - - var auth = request.httpRequest.headers['Authorization'].split(' '); - if (auth[0] === 'AWS') { - auth = auth[1].split(':'); - queryParams['Signature'] = auth.pop(); - queryParams['AWSAccessKeyId'] = auth.join(':'); - - AWS.util.each(request.httpRequest.headers, function (key, value) { - if (key === expiresHeader) key = 'Expires'; - if (key.indexOf('x-amz-meta-') === 0) { - // Delete existing, potentially not normalized key - delete queryParams[key]; - key = key.toLowerCase(); - } - queryParams[key] = value; - }); - delete request.httpRequest.headers[expiresHeader]; - delete queryParams['Authorization']; - delete queryParams['Host']; - } else if (auth[0] === 'AWS4-HMAC-SHA256') { // SigV4 signing - auth.shift(); - var rest = auth.join(' '); - var signature = rest.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1]; - queryParams['X-Amz-Signature'] = signature; - delete queryParams['Expires']; - } - - // build URL - endpoint.pathname = parsedUrl.pathname; - endpoint.search = AWS.util.queryParamsToString(queryParams); -} - -/** - * @api private - */ -AWS.Signers.Presign = inherit({ - /** - * @api private - */ - sign: function sign(request, expireTime, callback) { - request.httpRequest.headers[expiresHeader] = expireTime || 3600; - request.on('build', signedUrlBuilder); - request.on('sign', signedUrlSigner); - request.removeListener('afterBuild', - AWS.EventListeners.Core.SET_CONTENT_LENGTH); - request.removeListener('afterBuild', - AWS.EventListeners.Core.COMPUTE_SHA256); - - request.emit('beforePresign', [request]); - - if (callback) { - request.build(function() { - if (this.response.error) callback(this.response.error); - else { - callback(null, AWS.util.urlFormat(request.httpRequest.endpoint)); - } - }); - } else { - request.build(); - if (request.response.error) throw request.response.error; - return AWS.util.urlFormat(request.httpRequest.endpoint); - } - } -}); - -/** - * @api private - */ -module.exports = AWS.Signers.Presign; - - -/***/ }), - -/***/ 63610: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -var inherit = AWS.util.inherit; - -/** - * @api private - */ -AWS.Signers.RequestSigner = inherit({ - constructor: function RequestSigner(request) { - this.request = request; - }, - - setServiceClientId: function setServiceClientId(id) { - this.serviceClientId = id; - }, - - getServiceClientId: function getServiceClientId() { - return this.serviceClientId; - } -}); - -AWS.Signers.RequestSigner.getVersion = function getVersion(version) { - switch (version) { - case 'v2': return AWS.Signers.V2; - case 'v3': return AWS.Signers.V3; - case 's3v4': return AWS.Signers.V4; - case 'v4': return AWS.Signers.V4; - case 's3': return AWS.Signers.S3; - case 'v3https': return AWS.Signers.V3Https; - case 'bearer': return AWS.Signers.Bearer; - } - throw new Error('Unknown signing version ' + version); -}; - -__nccwpck_require__(45790); -__nccwpck_require__(29533); -__nccwpck_require__(27696); -__nccwpck_require__(10184); -__nccwpck_require__(79516); -__nccwpck_require__(23452); -__nccwpck_require__(40579); - - -/***/ }), - -/***/ 79516: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var inherit = AWS.util.inherit; - -/** - * @api private - */ -AWS.Signers.S3 = inherit(AWS.Signers.RequestSigner, { - /** - * When building the stringToSign, these sub resource params should be - * part of the canonical resource string with their NON-decoded values - */ - subResources: { - 'acl': 1, - 'accelerate': 1, - 'analytics': 1, - 'cors': 1, - 'lifecycle': 1, - 'delete': 1, - 'inventory': 1, - 'location': 1, - 'logging': 1, - 'metrics': 1, - 'notification': 1, - 'partNumber': 1, - 'policy': 1, - 'requestPayment': 1, - 'replication': 1, - 'restore': 1, - 'tagging': 1, - 'torrent': 1, - 'uploadId': 1, - 'uploads': 1, - 'versionId': 1, - 'versioning': 1, - 'versions': 1, - 'website': 1 - }, - - // when building the stringToSign, these querystring params should be - // part of the canonical resource string with their NON-encoded values - responseHeaders: { - 'response-content-type': 1, - 'response-content-language': 1, - 'response-expires': 1, - 'response-cache-control': 1, - 'response-content-disposition': 1, - 'response-content-encoding': 1 - }, - - addAuthorization: function addAuthorization(credentials, date) { - if (!this.request.headers['presigned-expires']) { - this.request.headers['X-Amz-Date'] = AWS.util.date.rfc822(date); - } - - if (credentials.sessionToken) { - // presigned URLs require this header to be lowercased - this.request.headers['x-amz-security-token'] = credentials.sessionToken; - } - - var signature = this.sign(credentials.secretAccessKey, this.stringToSign()); - var auth = 'AWS ' + credentials.accessKeyId + ':' + signature; - - this.request.headers['Authorization'] = auth; - }, - - stringToSign: function stringToSign() { - var r = this.request; - - var parts = []; - parts.push(r.method); - parts.push(r.headers['Content-MD5'] || ''); - parts.push(r.headers['Content-Type'] || ''); - - // This is the "Date" header, but we use X-Amz-Date. - // The S3 signing mechanism requires us to pass an empty - // string for this Date header regardless. - parts.push(r.headers['presigned-expires'] || ''); - - var headers = this.canonicalizedAmzHeaders(); - if (headers) parts.push(headers); - parts.push(this.canonicalizedResource()); - - return parts.join('\n'); - - }, - - canonicalizedAmzHeaders: function canonicalizedAmzHeaders() { - - var amzHeaders = []; - - AWS.util.each(this.request.headers, function (name) { - if (name.match(/^x-amz-/i)) - amzHeaders.push(name); - }); - - amzHeaders.sort(function (a, b) { - return a.toLowerCase() < b.toLowerCase() ? -1 : 1; - }); - - var parts = []; - AWS.util.arrayEach.call(this, amzHeaders, function (name) { - parts.push(name.toLowerCase() + ':' + String(this.request.headers[name])); - }); - - return parts.join('\n'); - - }, - - canonicalizedResource: function canonicalizedResource() { - - var r = this.request; - - var parts = r.path.split('?'); - var path = parts[0]; - var querystring = parts[1]; - - var resource = ''; - - if (r.virtualHostedBucket) - resource += '/' + r.virtualHostedBucket; - - resource += path; - - if (querystring) { - - // collect a list of sub resources and query params that need to be signed - var resources = []; - - AWS.util.arrayEach.call(this, querystring.split('&'), function (param) { - var name = param.split('=')[0]; - var value = param.split('=')[1]; - if (this.subResources[name] || this.responseHeaders[name]) { - var subresource = { name: name }; - if (value !== undefined) { - if (this.subResources[name]) { - subresource.value = value; - } else { - subresource.value = decodeURIComponent(value); - } - } - resources.push(subresource); - } - }); - - resources.sort(function (a, b) { return a.name < b.name ? -1 : 1; }); - - if (resources.length) { - - querystring = []; - AWS.util.arrayEach(resources, function (res) { - if (res.value === undefined) { - querystring.push(res.name); - } else { - querystring.push(res.name + '=' + res.value); - } - }); - - resource += '?' + querystring.join('&'); - } - - } - - return resource; - - }, - - sign: function sign(secret, string) { - return AWS.util.crypto.hmac(secret, string, 'base64', 'sha1'); - } -}); - -/** - * @api private - */ -module.exports = AWS.Signers.S3; - - -/***/ }), - -/***/ 45790: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var inherit = AWS.util.inherit; - -/** - * @api private - */ -AWS.Signers.V2 = inherit(AWS.Signers.RequestSigner, { - addAuthorization: function addAuthorization(credentials, date) { - - if (!date) date = AWS.util.date.getDate(); - - var r = this.request; - - r.params.Timestamp = AWS.util.date.iso8601(date); - r.params.SignatureVersion = '2'; - r.params.SignatureMethod = 'HmacSHA256'; - r.params.AWSAccessKeyId = credentials.accessKeyId; - - if (credentials.sessionToken) { - r.params.SecurityToken = credentials.sessionToken; - } - - delete r.params.Signature; // delete old Signature for re-signing - r.params.Signature = this.signature(credentials); - - r.body = AWS.util.queryParamsToString(r.params); - r.headers['Content-Length'] = r.body.length; - }, - - signature: function signature(credentials) { - return AWS.util.crypto.hmac(credentials.secretAccessKey, this.stringToSign(), 'base64'); - }, - - stringToSign: function stringToSign() { - var parts = []; - parts.push(this.request.method); - parts.push(this.request.endpoint.host.toLowerCase()); - parts.push(this.request.pathname()); - parts.push(AWS.util.queryParamsToString(this.request.params)); - return parts.join('\n'); - } - -}); - -/** - * @api private - */ -module.exports = AWS.Signers.V2; - - -/***/ }), - -/***/ 29533: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var inherit = AWS.util.inherit; - -/** - * @api private - */ -AWS.Signers.V3 = inherit(AWS.Signers.RequestSigner, { - addAuthorization: function addAuthorization(credentials, date) { - - var datetime = AWS.util.date.rfc822(date); - - this.request.headers['X-Amz-Date'] = datetime; - - if (credentials.sessionToken) { - this.request.headers['x-amz-security-token'] = credentials.sessionToken; - } - - this.request.headers['X-Amzn-Authorization'] = - this.authorization(credentials, datetime); - - }, - - authorization: function authorization(credentials) { - return 'AWS3 ' + - 'AWSAccessKeyId=' + credentials.accessKeyId + ',' + - 'Algorithm=HmacSHA256,' + - 'SignedHeaders=' + this.signedHeaders() + ',' + - 'Signature=' + this.signature(credentials); - }, - - signedHeaders: function signedHeaders() { - var headers = []; - AWS.util.arrayEach(this.headersToSign(), function iterator(h) { - headers.push(h.toLowerCase()); - }); - return headers.sort().join(';'); - }, - - canonicalHeaders: function canonicalHeaders() { - var headers = this.request.headers; - var parts = []; - AWS.util.arrayEach(this.headersToSign(), function iterator(h) { - parts.push(h.toLowerCase().trim() + ':' + String(headers[h]).trim()); - }); - return parts.sort().join('\n') + '\n'; - }, - - headersToSign: function headersToSign() { - var headers = []; - AWS.util.each(this.request.headers, function iterator(k) { - if (k === 'Host' || k === 'Content-Encoding' || k.match(/^X-Amz/i)) { - headers.push(k); - } - }); - return headers; - }, - - signature: function signature(credentials) { - return AWS.util.crypto.hmac(credentials.secretAccessKey, this.stringToSign(), 'base64'); - }, - - stringToSign: function stringToSign() { - var parts = []; - parts.push(this.request.method); - parts.push('/'); - parts.push(''); - parts.push(this.canonicalHeaders()); - parts.push(this.request.body); - return AWS.util.crypto.sha256(parts.join('\n')); - } - -}); - -/** - * @api private - */ -module.exports = AWS.Signers.V3; - - -/***/ }), - -/***/ 27696: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var inherit = AWS.util.inherit; - -__nccwpck_require__(29533); - -/** - * @api private - */ -AWS.Signers.V3Https = inherit(AWS.Signers.V3, { - authorization: function authorization(credentials) { - return 'AWS3-HTTPS ' + - 'AWSAccessKeyId=' + credentials.accessKeyId + ',' + - 'Algorithm=HmacSHA256,' + - 'Signature=' + this.signature(credentials); - }, - - stringToSign: function stringToSign() { - return this.request.headers['X-Amz-Date']; - } -}); - -/** - * @api private - */ -module.exports = AWS.Signers.V3Https; - - -/***/ }), - -/***/ 10184: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var v4Credentials = __nccwpck_require__(76445); -var inherit = AWS.util.inherit; - -/** - * @api private - */ -var expiresHeader = 'presigned-expires'; - -/** - * @api private - */ -AWS.Signers.V4 = inherit(AWS.Signers.RequestSigner, { - constructor: function V4(request, serviceName, options) { - AWS.Signers.RequestSigner.call(this, request); - this.serviceName = serviceName; - options = options || {}; - this.signatureCache = typeof options.signatureCache === 'boolean' ? options.signatureCache : true; - this.operation = options.operation; - this.signatureVersion = options.signatureVersion; - }, - - algorithm: 'AWS4-HMAC-SHA256', - - addAuthorization: function addAuthorization(credentials, date) { - var datetime = AWS.util.date.iso8601(date).replace(/[:\-]|\.\d{3}/g, ''); - - if (this.isPresigned()) { - this.updateForPresigned(credentials, datetime); - } else { - this.addHeaders(credentials, datetime); - } - - this.request.headers['Authorization'] = - this.authorization(credentials, datetime); - }, - - addHeaders: function addHeaders(credentials, datetime) { - this.request.headers['X-Amz-Date'] = datetime; - if (credentials.sessionToken) { - this.request.headers['x-amz-security-token'] = credentials.sessionToken; - } - }, - - updateForPresigned: function updateForPresigned(credentials, datetime) { - var credString = this.credentialString(datetime); - var qs = { - 'X-Amz-Date': datetime, - 'X-Amz-Algorithm': this.algorithm, - 'X-Amz-Credential': credentials.accessKeyId + '/' + credString, - 'X-Amz-Expires': this.request.headers[expiresHeader], - 'X-Amz-SignedHeaders': this.signedHeaders() - }; - - if (credentials.sessionToken) { - qs['X-Amz-Security-Token'] = credentials.sessionToken; - } - - if (this.request.headers['Content-Type']) { - qs['Content-Type'] = this.request.headers['Content-Type']; - } - if (this.request.headers['Content-MD5']) { - qs['Content-MD5'] = this.request.headers['Content-MD5']; - } - if (this.request.headers['Cache-Control']) { - qs['Cache-Control'] = this.request.headers['Cache-Control']; - } - - // need to pull in any other X-Amz-* headers - AWS.util.each.call(this, this.request.headers, function(key, value) { - if (key === expiresHeader) return; - if (this.isSignableHeader(key)) { - var lowerKey = key.toLowerCase(); - // Metadata should be normalized - if (lowerKey.indexOf('x-amz-meta-') === 0) { - qs[lowerKey] = value; - } else if (lowerKey.indexOf('x-amz-') === 0) { - qs[key] = value; - } - } - }); - - var sep = this.request.path.indexOf('?') >= 0 ? '&' : '?'; - this.request.path += sep + AWS.util.queryParamsToString(qs); - }, - - authorization: function authorization(credentials, datetime) { - var parts = []; - var credString = this.credentialString(datetime); - parts.push(this.algorithm + ' Credential=' + - credentials.accessKeyId + '/' + credString); - parts.push('SignedHeaders=' + this.signedHeaders()); - parts.push('Signature=' + this.signature(credentials, datetime)); - return parts.join(', '); - }, - - signature: function signature(credentials, datetime) { - var signingKey = v4Credentials.getSigningKey( - credentials, - datetime.substr(0, 8), - this.request.region, - this.serviceName, - this.signatureCache - ); - return AWS.util.crypto.hmac(signingKey, this.stringToSign(datetime), 'hex'); - }, - - stringToSign: function stringToSign(datetime) { - var parts = []; - parts.push('AWS4-HMAC-SHA256'); - parts.push(datetime); - parts.push(this.credentialString(datetime)); - parts.push(this.hexEncodedHash(this.canonicalString())); - return parts.join('\n'); - }, - - canonicalString: function canonicalString() { - var parts = [], pathname = this.request.pathname(); - if (this.serviceName !== 's3' && this.signatureVersion !== 's3v4') pathname = AWS.util.uriEscapePath(pathname); - - parts.push(this.request.method); - parts.push(pathname); - parts.push(this.request.search()); - parts.push(this.canonicalHeaders() + '\n'); - parts.push(this.signedHeaders()); - parts.push(this.hexEncodedBodyHash()); - return parts.join('\n'); - }, - - canonicalHeaders: function canonicalHeaders() { - var headers = []; - AWS.util.each.call(this, this.request.headers, function (key, item) { - headers.push([key, item]); - }); - headers.sort(function (a, b) { - return a[0].toLowerCase() < b[0].toLowerCase() ? -1 : 1; - }); - var parts = []; - AWS.util.arrayEach.call(this, headers, function (item) { - var key = item[0].toLowerCase(); - if (this.isSignableHeader(key)) { - var value = item[1]; - if (typeof value === 'undefined' || value === null || typeof value.toString !== 'function') { - throw AWS.util.error(new Error('Header ' + key + ' contains invalid value'), { - code: 'InvalidHeader' - }); - } - parts.push(key + ':' + - this.canonicalHeaderValues(value.toString())); - } - }); - return parts.join('\n'); - }, - - canonicalHeaderValues: function canonicalHeaderValues(values) { - return values.replace(/\s+/g, ' ').replace(/^\s+|\s+$/g, ''); - }, - - signedHeaders: function signedHeaders() { - var keys = []; - AWS.util.each.call(this, this.request.headers, function (key) { - key = key.toLowerCase(); - if (this.isSignableHeader(key)) keys.push(key); - }); - return keys.sort().join(';'); - }, - - credentialString: function credentialString(datetime) { - return v4Credentials.createScope( - datetime.substr(0, 8), - this.request.region, - this.serviceName - ); - }, - - hexEncodedHash: function hash(string) { - return AWS.util.crypto.sha256(string, 'hex'); - }, - - hexEncodedBodyHash: function hexEncodedBodyHash() { - var request = this.request; - if (this.isPresigned() && (['s3', 's3-object-lambda'].indexOf(this.serviceName) > -1) && !request.body) { - return 'UNSIGNED-PAYLOAD'; - } else if (request.headers['X-Amz-Content-Sha256']) { - return request.headers['X-Amz-Content-Sha256']; - } else { - return this.hexEncodedHash(this.request.body || ''); - } - }, - - unsignableHeaders: [ - 'authorization', - 'content-type', - 'content-length', - 'user-agent', - expiresHeader, - 'expect', - 'x-amzn-trace-id' - ], - - isSignableHeader: function isSignableHeader(key) { - if (key.toLowerCase().indexOf('x-amz-') === 0) return true; - return this.unsignableHeaders.indexOf(key) < 0; - }, - - isPresigned: function isPresigned() { - return this.request.headers[expiresHeader] ? true : false; - } - -}); - -/** - * @api private - */ -module.exports = AWS.Signers.V4; - - -/***/ }), - -/***/ 76445: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -/** - * @api private - */ -var cachedSecret = {}; - -/** - * @api private - */ -var cacheQueue = []; - -/** - * @api private - */ -var maxCacheEntries = 50; - -/** - * @api private - */ -var v4Identifier = 'aws4_request'; - -/** - * @api private - */ -module.exports = { - /** - * @api private - * - * @param date [String] - * @param region [String] - * @param serviceName [String] - * @return [String] - */ - createScope: function createScope(date, region, serviceName) { - return [ - date.substr(0, 8), - region, - serviceName, - v4Identifier - ].join('/'); - }, - - /** - * @api private - * - * @param credentials [Credentials] - * @param date [String] - * @param region [String] - * @param service [String] - * @param shouldCache [Boolean] - * @return [String] - */ - getSigningKey: function getSigningKey( - credentials, - date, - region, - service, - shouldCache - ) { - var credsIdentifier = AWS.util.crypto - .hmac(credentials.secretAccessKey, credentials.accessKeyId, 'base64'); - var cacheKey = [credsIdentifier, date, region, service].join('_'); - shouldCache = shouldCache !== false; - if (shouldCache && (cacheKey in cachedSecret)) { - return cachedSecret[cacheKey]; - } - - var kDate = AWS.util.crypto.hmac( - 'AWS4' + credentials.secretAccessKey, - date, - 'buffer' - ); - var kRegion = AWS.util.crypto.hmac(kDate, region, 'buffer'); - var kService = AWS.util.crypto.hmac(kRegion, service, 'buffer'); - - var signingKey = AWS.util.crypto.hmac(kService, v4Identifier, 'buffer'); - if (shouldCache) { - cachedSecret[cacheKey] = signingKey; - cacheQueue.push(cacheKey); - if (cacheQueue.length > maxCacheEntries) { - // remove the oldest entry (not the least recently used) - delete cachedSecret[cacheQueue.shift()]; - } - } - - return signingKey; - }, - - /** - * @api private - * - * Empties the derived signing key cache. Made available for testing purposes - * only. - */ - emptyCache: function emptyCache() { - cachedSecret = {}; - cacheQueue = []; - } -}; - - -/***/ }), - -/***/ 76435: -/***/ ((module) => { - -function AcceptorStateMachine(states, state) { - this.currentState = state || null; - this.states = states || {}; -} - -AcceptorStateMachine.prototype.runTo = function runTo(finalState, done, bindObject, inputError) { - if (typeof finalState === 'function') { - inputError = bindObject; bindObject = done; - done = finalState; finalState = null; - } - - var self = this; - var state = self.states[self.currentState]; - state.fn.call(bindObject || self, inputError, function(err) { - if (err) { - if (state.fail) self.currentState = state.fail; - else return done ? done.call(bindObject, err) : null; - } else { - if (state.accept) self.currentState = state.accept; - else return done ? done.call(bindObject) : null; - } - if (self.currentState === finalState) { - return done ? done.call(bindObject, err) : null; - } - - self.runTo(finalState, done, bindObject, err); - }); -}; - -AcceptorStateMachine.prototype.addState = function addState(name, acceptState, failState, fn) { - if (typeof acceptState === 'function') { - fn = acceptState; acceptState = null; failState = null; - } else if (typeof failState === 'function') { - fn = failState; failState = null; - } - - if (!this.currentState) this.currentState = name; - this.states[name] = { accept: acceptState, fail: failState, fn: fn }; - return this; -}; - -/** - * @api private - */ -module.exports = AcceptorStateMachine; - - -/***/ }), - -/***/ 64065: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -/** - * Represents AWS token object, which contains {token}, and optional - * {expireTime}. - * Creating a `Token` object allows you to pass around your - * token to configuration and service objects. - * - * Note that this class typically does not need to be constructed manually, - * as the {AWS.Config} and {AWS.Service} classes both accept simple - * options hashes with the two keys. The token from this object will be used - * automatically in operations which require them. - * - * ## Expiring and Refreshing Token - * - * Occasionally token can expire in the middle of a long-running - * application. In this case, the SDK will automatically attempt to - * refresh the token from the storage location if the Token - * class implements the {refresh} method. - * - * If you are implementing a token storage location, you - * will want to create a subclass of the `Token` class and - * override the {refresh} method. This method allows token to be - * retrieved from the backing store, be it a file system, database, or - * some network storage. The method should reset the token attributes - * on the object. - * - * @!attribute token - * @return [String] represents the literal token string. This will typically - * be a base64 encoded string. - * @!attribute expireTime - * @return [Date] a time when token should be considered expired. Used - * in conjunction with {expired}. - * @!attribute expired - * @return [Boolean] whether the token is expired and require a refresh. Used - * in conjunction with {expireTime}. - */ -AWS.Token = AWS.util.inherit({ - /** - * Creates a Token object with a given set of information in options hash. - * @option options token [String] represents the literal token string. - * @option options expireTime [Date] field representing the time at which - * the token expires. - * @example Create a token object - * var token = new AWS.Token({ token: 'token' }); - */ - constructor: function Token(options) { - // hide token from being displayed with util.inspect - AWS.util.hideProperties(this, ['token']); - - this.expired = false; - this.expireTime = null; - this.refreshCallbacks = []; - if (arguments.length === 1) { - var options = arguments[0]; - this.token = options.token; - this.expireTime = options.expireTime; - } - }, - - /** - * @return [Integer] the number of seconds before {expireTime} during which - * the token will be considered expired. - */ - expiryWindow: 15, - - /** - * @return [Boolean] whether the Token object should call {refresh} - * @note Subclasses should override this method to provide custom refresh - * logic. - */ - needsRefresh: function needsRefresh() { - var currentTime = AWS.util.date.getDate().getTime(); - var adjustedTime = new Date(currentTime + this.expiryWindow * 1000); - - if (this.expireTime && adjustedTime > this.expireTime) - return true; - - return this.expired || !this.token; - }, - - /** - * Gets the existing token, refreshing them if they are not yet loaded - * or have expired. Users should call this method before using {refresh}, - * as this will not attempt to reload token when they are already - * loaded into the object. - * - * @callback callback function(err) - * When this callback is called with no error, it means either token - * do not need to be refreshed or refreshed token information has - * been loaded into the object (as the `token` property). - * @param err [Error] if an error occurred, this value will be filled - */ - get: function get(callback) { - var self = this; - if (this.needsRefresh()) { - this.refresh(function(err) { - if (!err) self.expired = false; // reset expired flag - if (callback) callback(err); - }); - } else if (callback) { - callback(); - } - }, - - /** - * @!method getPromise() - * Returns a 'thenable' promise. - * Gets the existing token, refreshing it if it's not yet loaded - * or have expired. Users should call this method before using {refresh}, - * as this will not attempt to reload token when it's already - * loaded into the object. - * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @callback fulfilledCallback function() - * Called if the promise is fulfilled. When this callback is called, it means - * either token does not need to be refreshed or refreshed token information - * has been loaded into the object (as the `token` property). - * @callback rejectedCallback function(err) - * Called if the promise is rejected. - * @param err [Error] if an error occurred, this value will be filled. - * @return [Promise] A promise that represents the state of the `get` call. - * @example Calling the `getPromise` method. - * var promise = tokenProvider.getPromise(); - * promise.then(function() { ... }, function(err) { ... }); - */ - - /** - * @!method refreshPromise() - * Returns a 'thenable' promise. - * Refreshes the token. Users should call {get} before attempting - * to forcibly refresh token. - * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @callback fulfilledCallback function() - * Called if the promise is fulfilled. When this callback is called, it - * means refreshed token information has been loaded into the object - * (as the `token` property). - * @callback rejectedCallback function(err) - * Called if the promise is rejected. - * @param err [Error] if an error occurred, this value will be filled. - * @return [Promise] A promise that represents the state of the `refresh` call. - * @example Calling the `refreshPromise` method. - * var promise = tokenProvider.refreshPromise(); - * promise.then(function() { ... }, function(err) { ... }); - */ - - /** - * Refreshes the token. Users should call {get} before attempting - * to forcibly refresh token. - * - * @callback callback function(err) - * When this callback is called with no error, it means refreshed - * token information has been loaded into the object (as the - * `token` property). - * @param err [Error] if an error occurred, this value will be filled - * @note Subclasses should override this class to reset the - * {token} on the token object and then call the callback with - * any error information. - * @see get - */ - refresh: function refresh(callback) { - this.expired = false; - callback(); - }, - - /** - * @api private - * @param callback - */ - coalesceRefresh: function coalesceRefresh(callback, sync) { - var self = this; - if (self.refreshCallbacks.push(callback) === 1) { - self.load(function onLoad(err) { - AWS.util.arrayEach(self.refreshCallbacks, function(callback) { - if (sync) { - callback(err); - } else { - // callback could throw, so defer to ensure all callbacks are notified - AWS.util.defer(function () { - callback(err); - }); - } - }); - self.refreshCallbacks.length = 0; - }); - } - }, - - /** - * @api private - * @param callback - */ - load: function load(callback) { - callback(); - } -}); - -/** - * @api private - */ -AWS.Token.addPromisesToClass = function addPromisesToClass(PromiseDependency) { - this.prototype.getPromise = AWS.util.promisifyMethod('get', PromiseDependency); - this.prototype.refreshPromise = AWS.util.promisifyMethod('refresh', PromiseDependency); -}; - -/** - * @api private - */ -AWS.Token.deletePromisesFromClass = function deletePromisesFromClass() { - delete this.prototype.getPromise; - delete this.prototype.refreshPromise; -}; - -AWS.util.addPromises(AWS.Token); - - -/***/ }), - -/***/ 85439: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var crypto = __nccwpck_require__(76982); -var fs = __nccwpck_require__(79896); -var path = __nccwpck_require__(16928); -var iniLoader = AWS.util.iniLoader; - -// Tracking refresh attempt to ensure refresh is not attempted more than once every 30 seconds. -var lastRefreshAttemptTime = 0; - -/** - * Throws error is key is not present in token object. - * - * @param token [Object] Object to be validated. - * @param key [String] The key to be validated on the object. - */ -var validateTokenKey = function validateTokenKey(token, key) { - if (!token[key]) { - throw AWS.util.error( - new Error('Key "' + key + '" not present in SSO Token'), - { code: 'SSOTokenProviderFailure' } - ); - } -}; - -/** - * Calls callback function with or without error based on provided times in case - * of unsuccessful refresh. - * - * @param currentTime [number] current time in milliseconds since ECMAScript epoch. - * @param tokenExpireTime [number] token expire time in milliseconds since ECMAScript epoch. - * @param callback [Function] Callback to call in case of error. - */ -var refreshUnsuccessful = function refreshUnsuccessful( - currentTime, - tokenExpireTime, - callback -) { - if (tokenExpireTime > currentTime) { - // Cached token is still valid, return. - callback(null); - } else { - // Token invalid, throw error requesting user to sso login. - throw AWS.util.error( - new Error('SSO Token refresh failed. Please log in using "aws sso login"'), - { code: 'SSOTokenProviderFailure' } - ); - } -}; - -/** - * Represents token loaded from disk derived from the AWS SSO device grant authorication flow. - * - * ## Using SSO Token Provider - * - * This provider is checked by default in the Node.js environment in TokenProviderChain. - * To use the SSO Token Provider, simply add your SSO Start URL and Region to the - * ~/.aws/config file in the following format: - * - * [default] - * sso_start_url = https://d-abc123.awsapps.com/start - * sso_region = us-east-1 - * - * ## Using custom profiles - * - * The SDK supports loading token for separate profiles. This can be done in two ways: - * - * 1. Set the `AWS_PROFILE` environment variable in your process prior to loading the SDK. - * 2. Directly load the AWS.SSOTokenProvider: - * - * ```javascript - * var ssoTokenProvider = new AWS.SSOTokenProvider({profile: 'myprofile'}); - * ``` - * - * @!macro nobrowser - */ -AWS.SSOTokenProvider = AWS.util.inherit(AWS.Token, { - /** - * Expiry window of five minutes. - */ - expiryWindow: 5 * 60, - - /** - * Creates a new token object from cached access token. - * - * @param options [map] a set of options - * @option options profile [String] (AWS_PROFILE env var or 'default') - * the name of the profile to load. - * @option options callback [Function] (err) Token is eagerly loaded - * by the constructor. When the callback is called with no error, the - * token has been loaded successfully. - */ - constructor: function SSOTokenProvider(options) { - AWS.Token.call(this); - - options = options || {}; - - this.expired = true; - this.profile = options.profile || process.env.AWS_PROFILE || AWS.util.defaultProfile; - this.get(options.callback || AWS.util.fn.noop); - }, - - /** - * Reads sso_start_url from provided profile, and reads token from - * ~/.aws/sso/cache/.json - * - * Throws an error if required fields token and expiresAt are missing. - * Throws an error if token has expired and metadata to perform refresh is - * not available. - * Attempts to refresh the token if it's within 5 minutes before expiry time. - * - * @api private - */ - load: function load(callback) { - var self = this; - var profiles = iniLoader.loadFrom({ isConfig: true }); - var profile = profiles[this.profile] || {}; - - if (Object.keys(profile).length === 0) { - throw AWS.util.error( - new Error('Profile "' + this.profile + '" not found'), - { code: 'SSOTokenProviderFailure' } - ); - } else if (!profile['sso_session']) { - throw AWS.util.error( - new Error('Profile "' + this.profile + '" is missing required property "sso_session".'), - { code: 'SSOTokenProviderFailure' } - ); - } - - var ssoSessionName = profile['sso_session']; - var ssoSessions = iniLoader.loadSsoSessionsFrom(); - var ssoSession = ssoSessions[ssoSessionName]; - - if (!ssoSession) { - throw AWS.util.error( - new Error('Sso session "' + ssoSessionName + '" not found'), - { code: 'SSOTokenProviderFailure' } - ); - } else if (!ssoSession['sso_start_url']) { - throw AWS.util.error( - new Error('Sso session "' + this.profile + '" is missing required property "sso_start_url".'), - { code: 'SSOTokenProviderFailure' } - ); - } else if (!ssoSession['sso_region']) { - throw AWS.util.error( - new Error('Sso session "' + this.profile + '" is missing required property "sso_region".'), - { code: 'SSOTokenProviderFailure' } - ); - } - - var hasher = crypto.createHash('sha1'); - var fileName = hasher.update(ssoSessionName).digest('hex') + '.json'; - var cachePath = path.join(iniLoader.getHomeDir(), '.aws', 'sso', 'cache', fileName); - var tokenFromCache = JSON.parse(fs.readFileSync(cachePath)); - - if (!tokenFromCache) { - throw AWS.util.error( - new Error('Cached token not found. Please log in using "aws sso login"' - + ' for profile "' + this.profile + '".'), - { code: 'SSOTokenProviderFailure' } - ); - } - - validateTokenKey(tokenFromCache, 'accessToken'); - validateTokenKey(tokenFromCache, 'expiresAt'); - - var currentTime = AWS.util.date.getDate().getTime(); - var adjustedTime = new Date(currentTime + this.expiryWindow * 1000); - var tokenExpireTime = new Date(tokenFromCache['expiresAt']); - - if (tokenExpireTime > adjustedTime) { - // Token is valid and not expired. - self.token = tokenFromCache.accessToken; - self.expireTime = tokenExpireTime; - self.expired = false; - callback(null); - return; - } - - // Skip new refresh, if last refresh was done within 30 seconds. - if (currentTime - lastRefreshAttemptTime < 30 * 1000) { - refreshUnsuccessful(currentTime, tokenExpireTime, callback); - return; - } - - // Token is in expiry window, refresh from SSOOIDC.createToken() call. - validateTokenKey(tokenFromCache, 'clientId'); - validateTokenKey(tokenFromCache, 'clientSecret'); - validateTokenKey(tokenFromCache, 'refreshToken'); - - if (!self.service || self.service.config.region !== ssoSession.sso_region) { - self.service = new AWS.SSOOIDC({ region: ssoSession.sso_region }); - } - - var params = { - clientId: tokenFromCache.clientId, - clientSecret: tokenFromCache.clientSecret, - refreshToken: tokenFromCache.refreshToken, - grantType: 'refresh_token', - }; - - lastRefreshAttemptTime = AWS.util.date.getDate().getTime(); - self.service.createToken(params, function(err, data) { - if (err || !data) { - refreshUnsuccessful(currentTime, tokenExpireTime, callback); - } else { - try { - validateTokenKey(data, 'accessToken'); - validateTokenKey(data, 'expiresIn'); - self.expired = false; - self.token = data.accessToken; - self.expireTime = new Date(Date.now() + data.expiresIn * 1000); - callback(null); - - try { - // Write updated token data to disk. - tokenFromCache.accessToken = data.accessToken; - tokenFromCache.expiresAt = self.expireTime.toISOString(); - tokenFromCache.refreshToken = data.refreshToken; - fs.writeFileSync(cachePath, JSON.stringify(tokenFromCache, null, 2)); - } catch (error) { - // Swallow error if unable to write token to file. - } - } catch (error) { - refreshUnsuccessful(currentTime, tokenExpireTime, callback); - } - } - }); - }, - - /** - * Loads the cached access token from disk. - * - * @callback callback function(err) - * Called after the AWS SSO process has been executed. When this - * callback is called with no error, it means that the token information - * has been loaded into the object (as the `token` property). - * @param err [Error] if an error occurred, this value will be filled. - * @see get - */ - refresh: function refresh(callback) { - iniLoader.clearCachedFiles(); - this.coalesceRefresh(callback || AWS.util.fn.callback); - }, -}); - - -/***/ }), - -/***/ 51893: -/***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); - -/** - * Creates a token provider chain that searches for token in a list of - * token providers specified by the {providers} property. - * - * By default, the chain will use the {defaultProviders} to resolve token. - * - * ## Setting Providers - * - * Each provider in the {providers} list should be a function that returns - * a {AWS.Token} object, or a hardcoded token object. The function - * form allows for delayed execution of the Token construction. - * - * ## Resolving Token from a Chain - * - * Call {resolve} to return the first valid token object that can be - * loaded by the provider chain. - * - * For example, to resolve a chain with a custom provider that checks a file - * on disk after the set of {defaultProviders}: - * - * ```javascript - * var diskProvider = new FileTokenProvider('./token.json'); - * var chain = new AWS.TokenProviderChain(); - * chain.providers.push(diskProvider); - * chain.resolve(); - * ``` - * - * The above code will return the `diskProvider` object if the - * file contains token and the `defaultProviders` do not contain - * any token. - * - * @!attribute providers - * @return [Array] - * a list of token objects or functions that return token - * objects. If the provider is a function, the function will be - * executed lazily when the provider needs to be checked for valid - * token. By default, this object will be set to the {defaultProviders}. - * @see defaultProviders - */ -AWS.TokenProviderChain = AWS.util.inherit(AWS.Token, { - - /** - * Creates a new TokenProviderChain with a default set of providers - * specified by {defaultProviders}. - */ - constructor: function TokenProviderChain(providers) { - if (providers) { - this.providers = providers; - } else { - this.providers = AWS.TokenProviderChain.defaultProviders.slice(0); - } - this.resolveCallbacks = []; - }, - - /** - * @!method resolvePromise() - * Returns a 'thenable' promise. - * Resolves the provider chain by searching for the first token in {providers}. - * - * Two callbacks can be provided to the `then` method on the returned promise. - * The first callback will be called if the promise is fulfilled, and the second - * callback will be called if the promise is rejected. - * @callback fulfilledCallback function(token) - * Called if the promise is fulfilled and the provider resolves the chain - * to a token object - * @param token [AWS.Token] the token object resolved by the provider chain. - * @callback rejectedCallback function(error) - * Called if the promise is rejected. - * @param err [Error] the error object returned if no token is found. - * @return [Promise] A promise that represents the state of the `resolve` method call. - * @example Calling the `resolvePromise` method. - * var promise = chain.resolvePromise(); - * promise.then(function(token) { ... }, function(err) { ... }); - */ - - /** - * Resolves the provider chain by searching for the first token in {providers}. - * - * @callback callback function(err, token) - * Called when the provider resolves the chain to a token object - * or null if no token can be found. - * - * @param err [Error] the error object returned if no token is found. - * @param token [AWS.Token] the token object resolved by the provider chain. - * @return [AWS.TokenProviderChain] the provider, for chaining. - */ - resolve: function resolve(callback) { - var self = this; - if (self.providers.length === 0) { - callback(new Error('No providers')); - return self; - } - - if (self.resolveCallbacks.push(callback) === 1) { - var index = 0; - var providers = self.providers.slice(0); - - function resolveNext(err, token) { - if ((!err && token) || index === providers.length) { - AWS.util.arrayEach(self.resolveCallbacks, function (callback) { - callback(err, token); - }); - self.resolveCallbacks.length = 0; - return; - } - - var provider = providers[index++]; - if (typeof provider === 'function') { - token = provider.call(); - } else { - token = provider; - } - - if (token.get) { - token.get(function (getErr) { - resolveNext(getErr, getErr ? null : token); - }); - } else { - resolveNext(null, token); - } - } - - resolveNext(); - } - - return self; - } -}); - -/** - * The default set of providers used by a vanilla TokenProviderChain. - * - * In the browser: - * - * ```javascript - * AWS.TokenProviderChain.defaultProviders = [] - * ``` - * - * In Node.js: - * - * ```javascript - * AWS.TokenProviderChain.defaultProviders = [ - * function () { return new AWS.SSOTokenProvider(); }, - * ] - * ``` - */ -AWS.TokenProviderChain.defaultProviders = []; - -/** - * @api private - */ -AWS.TokenProviderChain.addPromisesToClass = function addPromisesToClass(PromiseDependency) { - this.prototype.resolvePromise = AWS.util.promisifyMethod('resolve', PromiseDependency); -}; - -/** - * @api private - */ -AWS.TokenProviderChain.deletePromisesFromClass = function deletePromisesFromClass() { - delete this.prototype.resolvePromise; -}; - -AWS.util.addPromises(AWS.TokenProviderChain); - - -/***/ }), - -/***/ 65742: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -/* eslint guard-for-in:0 */ -var AWS; - -/** - * A set of utility methods for use with the AWS SDK. - * - * @!attribute abort - * Return this value from an iterator function {each} or {arrayEach} - * to break out of the iteration. - * @example Breaking out of an iterator function - * AWS.util.each({a: 1, b: 2, c: 3}, function(key, value) { - * if (key == 'b') return AWS.util.abort; - * }); - * @see each - * @see arrayEach - * @api private - */ -var util = { - environment: 'nodejs', - engine: function engine() { - if (util.isBrowser() && typeof navigator !== 'undefined') { - return navigator.userAgent; - } else { - var engine = process.platform + '/' + process.version; - if (process.env.AWS_EXECUTION_ENV) { - engine += ' exec-env/' + process.env.AWS_EXECUTION_ENV; - } - return engine; - } - }, - - userAgent: function userAgent() { - var name = util.environment; - var agent = 'aws-sdk-' + name + '/' + (__nccwpck_require__(60085).VERSION); - if (name === 'nodejs') agent += ' ' + util.engine(); - return agent; - }, - - uriEscape: function uriEscape(string) { - var output = encodeURIComponent(string); - output = output.replace(/[^A-Za-z0-9_.~\-%]+/g, escape); - - // AWS percent-encodes some extra non-standard characters in a URI - output = output.replace(/[*]/g, function(ch) { - return '%' + ch.charCodeAt(0).toString(16).toUpperCase(); - }); - - return output; - }, - - uriEscapePath: function uriEscapePath(string) { - var parts = []; - util.arrayEach(string.split('/'), function (part) { - parts.push(util.uriEscape(part)); - }); - return parts.join('/'); - }, - - urlParse: function urlParse(url) { - return util.url.parse(url); - }, - - urlFormat: function urlFormat(url) { - return util.url.format(url); - }, - - queryStringParse: function queryStringParse(qs) { - return util.querystring.parse(qs); - }, - - queryParamsToString: function queryParamsToString(params) { - var items = []; - var escape = util.uriEscape; - var sortedKeys = Object.keys(params).sort(); - - util.arrayEach(sortedKeys, function(name) { - var value = params[name]; - var ename = escape(name); - var result = ename + '='; - if (Array.isArray(value)) { - var vals = []; - util.arrayEach(value, function(item) { vals.push(escape(item)); }); - result = ename + '=' + vals.sort().join('&' + ename + '='); - } else if (value !== undefined && value !== null) { - result = ename + '=' + escape(value); - } - items.push(result); - }); - - return items.join('&'); - }, - - readFileSync: function readFileSync(path) { - if (util.isBrowser()) return null; - return (__nccwpck_require__(79896).readFileSync)(path, 'utf-8'); - }, - - base64: { - encode: function encode64(string) { - if (typeof string === 'number') { - throw util.error(new Error('Cannot base64 encode number ' + string)); - } - if (string === null || typeof string === 'undefined') { - return string; - } - var buf = util.buffer.toBuffer(string); - return buf.toString('base64'); - }, - - decode: function decode64(string) { - if (typeof string === 'number') { - throw util.error(new Error('Cannot base64 decode number ' + string)); - } - if (string === null || typeof string === 'undefined') { - return string; - } - return util.buffer.toBuffer(string, 'base64'); - } - - }, - - buffer: { - /** - * Buffer constructor for Node buffer and buffer pollyfill - */ - toBuffer: function(data, encoding) { - return (typeof util.Buffer.from === 'function' && util.Buffer.from !== Uint8Array.from) ? - util.Buffer.from(data, encoding) : new util.Buffer(data, encoding); - }, - - alloc: function(size, fill, encoding) { - if (typeof size !== 'number') { - throw new Error('size passed to alloc must be a number.'); - } - if (typeof util.Buffer.alloc === 'function') { - return util.Buffer.alloc(size, fill, encoding); - } else { - var buf = new util.Buffer(size); - if (fill !== undefined && typeof buf.fill === 'function') { - buf.fill(fill, undefined, undefined, encoding); - } - return buf; - } - }, - - toStream: function toStream(buffer) { - if (!util.Buffer.isBuffer(buffer)) buffer = util.buffer.toBuffer(buffer); - - var readable = new (util.stream.Readable)(); - var pos = 0; - readable._read = function(size) { - if (pos >= buffer.length) return readable.push(null); - - var end = pos + size; - if (end > buffer.length) end = buffer.length; - readable.push(buffer.slice(pos, end)); - pos = end; - }; - - return readable; - }, - - /** - * Concatenates a list of Buffer objects. - */ - concat: function(buffers) { - var length = 0, - offset = 0, - buffer = null, i; - - for (i = 0; i < buffers.length; i++) { - length += buffers[i].length; - } - - buffer = util.buffer.alloc(length); - - for (i = 0; i < buffers.length; i++) { - buffers[i].copy(buffer, offset); - offset += buffers[i].length; - } - - return buffer; - } - }, - - string: { - byteLength: function byteLength(string) { - if (string === null || string === undefined) return 0; - if (typeof string === 'string') string = util.buffer.toBuffer(string); - - if (typeof string.byteLength === 'number') { - return string.byteLength; - } else if (typeof string.length === 'number') { - return string.length; - } else if (typeof string.size === 'number') { - return string.size; - } else if (typeof string.path === 'string') { - return (__nccwpck_require__(79896).lstatSync)(string.path).size; - } else { - throw util.error(new Error('Cannot determine length of ' + string), - { object: string }); - } - }, - - upperFirst: function upperFirst(string) { - return string[0].toUpperCase() + string.substr(1); - }, - - lowerFirst: function lowerFirst(string) { - return string[0].toLowerCase() + string.substr(1); - } - }, - - ini: { - parse: function string(ini) { - var currentSection, map = {}; - util.arrayEach(ini.split(/\r?\n/), function(line) { - line = line.split(/(^|\s)[;#]/)[0].trim(); // remove comments and trim - var isSection = line[0] === '[' && line[line.length - 1] === ']'; - if (isSection) { - currentSection = line.substring(1, line.length - 1); - if (currentSection === '__proto__' || currentSection.split(/\s/)[1] === '__proto__') { - throw util.error( - new Error('Cannot load profile name \'' + currentSection + '\' from shared ini file.') - ); - } - } else if (currentSection) { - var indexOfEqualsSign = line.indexOf('='); - var start = 0; - var end = line.length - 1; - var isAssignment = - indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; - - if (isAssignment) { - var name = line.substring(0, indexOfEqualsSign).trim(); - var value = line.substring(indexOfEqualsSign + 1).trim(); - - map[currentSection] = map[currentSection] || {}; - map[currentSection][name] = value; - } - } - }); - - return map; - } - }, - - fn: { - noop: function() {}, - callback: function (err) { if (err) throw err; }, - - /** - * Turn a synchronous function into as "async" function by making it call - * a callback. The underlying function is called with all but the last argument, - * which is treated as the callback. The callback is passed passed a first argument - * of null on success to mimick standard node callbacks. - */ - makeAsync: function makeAsync(fn, expectedArgs) { - if (expectedArgs && expectedArgs <= fn.length) { - return fn; - } - - return function() { - var args = Array.prototype.slice.call(arguments, 0); - var callback = args.pop(); - var result = fn.apply(null, args); - callback(result); - }; - } - }, - - /** - * Date and time utility functions. - */ - date: { - - /** - * @return [Date] the current JavaScript date object. Since all - * AWS services rely on this date object, you can override - * this function to provide a special time value to AWS service - * requests. - */ - getDate: function getDate() { - if (!AWS) AWS = __nccwpck_require__(60085); - if (AWS.config.systemClockOffset) { // use offset when non-zero - return new Date(new Date().getTime() + AWS.config.systemClockOffset); - } else { - return new Date(); - } - }, - - /** - * @return [String] the date in ISO-8601 format - */ - iso8601: function iso8601(date) { - if (date === undefined) { date = util.date.getDate(); } - return date.toISOString().replace(/\.\d{3}Z$/, 'Z'); - }, - - /** - * @return [String] the date in RFC 822 format - */ - rfc822: function rfc822(date) { - if (date === undefined) { date = util.date.getDate(); } - return date.toUTCString(); - }, - - /** - * @return [Integer] the UNIX timestamp value for the current time - */ - unixTimestamp: function unixTimestamp(date) { - if (date === undefined) { date = util.date.getDate(); } - return date.getTime() / 1000; - }, - - /** - * @param [String,number,Date] date - * @return [Date] - */ - from: function format(date) { - if (typeof date === 'number') { - return new Date(date * 1000); // unix timestamp - } else { - return new Date(date); - } - }, - - /** - * Given a Date or date-like value, this function formats the - * date into a string of the requested value. - * @param [String,number,Date] date - * @param [String] formatter Valid formats are: - # * 'iso8601' - # * 'rfc822' - # * 'unixTimestamp' - * @return [String] - */ - format: function format(date, formatter) { - if (!formatter) formatter = 'iso8601'; - return util.date[formatter](util.date.from(date)); - }, - - parseTimestamp: function parseTimestamp(value) { - if (typeof value === 'number') { // unix timestamp (number) - return new Date(value * 1000); - } else if (value.match(/^\d+$/)) { // unix timestamp - return new Date(value * 1000); - } else if (value.match(/^\d{4}/)) { // iso8601 - return new Date(value); - } else if (value.match(/^\w{3},/)) { // rfc822 - return new Date(value); - } else { - throw util.error( - new Error('unhandled timestamp format: ' + value), - {code: 'TimestampParserError'}); - } - } - - }, - - crypto: { - crc32Table: [ - 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, - 0x706AF48F, 0xE963A535, 0x9E6495A3, 0x0EDB8832, 0x79DCB8A4, - 0xE0D5E91E, 0x97D2D988, 0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, - 0x90BF1D91, 0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE, - 0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7, 0x136C9856, - 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC, 0x14015C4F, 0x63066CD9, - 0xFA0F3D63, 0x8D080DF5, 0x3B6E20C8, 0x4C69105E, 0xD56041E4, - 0xA2677172, 0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B, - 0x35B5A8FA, 0x42B2986C, 0xDBBBC9D6, 0xACBCF940, 0x32D86CE3, - 0x45DF5C75, 0xDCD60DCF, 0xABD13D59, 0x26D930AC, 0x51DE003A, - 0xC8D75180, 0xBFD06116, 0x21B4F4B5, 0x56B3C423, 0xCFBA9599, - 0xB8BDA50F, 0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924, - 0x2F6F7C87, 0x58684C11, 0xC1611DAB, 0xB6662D3D, 0x76DC4190, - 0x01DB7106, 0x98D220BC, 0xEFD5102A, 0x71B18589, 0x06B6B51F, - 0x9FBFE4A5, 0xE8B8D433, 0x7807C9A2, 0x0F00F934, 0x9609A88E, - 0xE10E9818, 0x7F6A0DBB, 0x086D3D2D, 0x91646C97, 0xE6635C01, - 0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E, 0x6C0695ED, - 0x1B01A57B, 0x8208F4C1, 0xF50FC457, 0x65B0D9C6, 0x12B7E950, - 0x8BBEB8EA, 0xFCB9887C, 0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, - 0xFBD44C65, 0x4DB26158, 0x3AB551CE, 0xA3BC0074, 0xD4BB30E2, - 0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB, 0x4369E96A, - 0x346ED9FC, 0xAD678846, 0xDA60B8D0, 0x44042D73, 0x33031DE5, - 0xAA0A4C5F, 0xDD0D7CC9, 0x5005713C, 0x270241AA, 0xBE0B1010, - 0xC90C2086, 0x5768B525, 0x206F85B3, 0xB966D409, 0xCE61E49F, - 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4, 0x59B33D17, - 0x2EB40D81, 0xB7BD5C3B, 0xC0BA6CAD, 0xEDB88320, 0x9ABFB3B6, - 0x03B6E20C, 0x74B1D29A, 0xEAD54739, 0x9DD277AF, 0x04DB2615, - 0x73DC1683, 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8, - 0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1, 0xF00F9344, - 0x8708A3D2, 0x1E01F268, 0x6906C2FE, 0xF762575D, 0x806567CB, - 0x196C3671, 0x6E6B06E7, 0xFED41B76, 0x89D32BE0, 0x10DA7A5A, - 0x67DD4ACC, 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5, - 0xD6D6A3E8, 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252, 0xD1BB67F1, - 0xA6BC5767, 0x3FB506DD, 0x48B2364B, 0xD80D2BDA, 0xAF0A1B4C, - 0x36034AF6, 0x41047A60, 0xDF60EFC3, 0xA867DF55, 0x316E8EEF, - 0x4669BE79, 0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236, - 0xCC0C7795, 0xBB0B4703, 0x220216B9, 0x5505262F, 0xC5BA3BBE, - 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04, 0xC2D7FFA7, 0xB5D0CF31, - 0x2CD99E8B, 0x5BDEAE1D, 0x9B64C2B0, 0xEC63F226, 0x756AA39C, - 0x026D930A, 0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713, - 0x95BF4A82, 0xE2B87A14, 0x7BB12BAE, 0x0CB61B38, 0x92D28E9B, - 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21, 0x86D3D2D4, 0xF1D4E242, - 0x68DDB3F8, 0x1FDA836E, 0x81BE16CD, 0xF6B9265B, 0x6FB077E1, - 0x18B74777, 0x88085AE6, 0xFF0F6A70, 0x66063BCA, 0x11010B5C, - 0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45, 0xA00AE278, - 0xD70DD2EE, 0x4E048354, 0x3903B3C2, 0xA7672661, 0xD06016F7, - 0x4969474D, 0x3E6E77DB, 0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, - 0x37D83BF0, 0xA9BCAE53, 0xDEBB9EC5, 0x47B2CF7F, 0x30B5FFE9, - 0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6, 0xBAD03605, - 0xCDD70693, 0x54DE5729, 0x23D967BF, 0xB3667A2E, 0xC4614AB8, - 0x5D681B02, 0x2A6F2B94, 0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, - 0x2D02EF8D], - - crc32: function crc32(data) { - var tbl = util.crypto.crc32Table; - var crc = 0 ^ -1; - - if (typeof data === 'string') { - data = util.buffer.toBuffer(data); - } - - for (var i = 0; i < data.length; i++) { - var code = data.readUInt8(i); - crc = (crc >>> 8) ^ tbl[(crc ^ code) & 0xFF]; - } - return (crc ^ -1) >>> 0; - }, - - hmac: function hmac(key, string, digest, fn) { - if (!digest) digest = 'binary'; - if (digest === 'buffer') { digest = undefined; } - if (!fn) fn = 'sha256'; - if (typeof string === 'string') string = util.buffer.toBuffer(string); - return util.crypto.lib.createHmac(fn, key).update(string).digest(digest); - }, - - md5: function md5(data, digest, callback) { - return util.crypto.hash('md5', data, digest, callback); - }, - - sha256: function sha256(data, digest, callback) { - return util.crypto.hash('sha256', data, digest, callback); - }, - - hash: function(algorithm, data, digest, callback) { - var hash = util.crypto.createHash(algorithm); - if (!digest) { digest = 'binary'; } - if (digest === 'buffer') { digest = undefined; } - if (typeof data === 'string') data = util.buffer.toBuffer(data); - var sliceFn = util.arraySliceFn(data); - var isBuffer = util.Buffer.isBuffer(data); - //Identifying objects with an ArrayBuffer as buffers - if (util.isBrowser() && typeof ArrayBuffer !== 'undefined' && data && data.buffer instanceof ArrayBuffer) isBuffer = true; - - if (callback && typeof data === 'object' && - typeof data.on === 'function' && !isBuffer) { - data.on('data', function(chunk) { hash.update(chunk); }); - data.on('error', function(err) { callback(err); }); - data.on('end', function() { callback(null, hash.digest(digest)); }); - } else if (callback && sliceFn && !isBuffer && - typeof FileReader !== 'undefined') { - // this might be a File/Blob - var index = 0, size = 1024 * 512; - var reader = new FileReader(); - reader.onerror = function() { - callback(new Error('Failed to read data.')); - }; - reader.onload = function() { - var buf = new util.Buffer(new Uint8Array(reader.result)); - hash.update(buf); - index += buf.length; - reader._continueReading(); - }; - reader._continueReading = function() { - if (index >= data.size) { - callback(null, hash.digest(digest)); - return; - } - - var back = index + size; - if (back > data.size) back = data.size; - reader.readAsArrayBuffer(sliceFn.call(data, index, back)); - }; - - reader._continueReading(); - } else { - if (util.isBrowser() && typeof data === 'object' && !isBuffer) { - data = new util.Buffer(new Uint8Array(data)); - } - var out = hash.update(data).digest(digest); - if (callback) callback(null, out); - return out; - } - }, - - toHex: function toHex(data) { - var out = []; - for (var i = 0; i < data.length; i++) { - out.push(('0' + data.charCodeAt(i).toString(16)).substr(-2, 2)); - } - return out.join(''); - }, - - createHash: function createHash(algorithm) { - return util.crypto.lib.createHash(algorithm); - } - - }, - - /** @!ignore */ - - /* Abort constant */ - abort: {}, - - each: function each(object, iterFunction) { - for (var key in object) { - if (Object.prototype.hasOwnProperty.call(object, key)) { - var ret = iterFunction.call(this, key, object[key]); - if (ret === util.abort) break; - } - } - }, - - arrayEach: function arrayEach(array, iterFunction) { - for (var idx in array) { - if (Object.prototype.hasOwnProperty.call(array, idx)) { - var ret = iterFunction.call(this, array[idx], parseInt(idx, 10)); - if (ret === util.abort) break; - } - } - }, - - update: function update(obj1, obj2) { - util.each(obj2, function iterator(key, item) { - obj1[key] = item; - }); - return obj1; - }, - - merge: function merge(obj1, obj2) { - return util.update(util.copy(obj1), obj2); - }, - - copy: function copy(object) { - if (object === null || object === undefined) return object; - var dupe = {}; - // jshint forin:false - for (var key in object) { - dupe[key] = object[key]; - } - return dupe; - }, - - isEmpty: function isEmpty(obj) { - for (var prop in obj) { - if (Object.prototype.hasOwnProperty.call(obj, prop)) { - return false; - } - } - return true; - }, - - arraySliceFn: function arraySliceFn(obj) { - var fn = obj.slice || obj.webkitSlice || obj.mozSlice; - return typeof fn === 'function' ? fn : null; - }, - - isType: function isType(obj, type) { - // handle cross-"frame" objects - if (typeof type === 'function') type = util.typeName(type); - return Object.prototype.toString.call(obj) === '[object ' + type + ']'; - }, - - typeName: function typeName(type) { - if (Object.prototype.hasOwnProperty.call(type, 'name')) return type.name; - var str = type.toString(); - var match = str.match(/^\s*function (.+)\(/); - return match ? match[1] : str; - }, - - error: function error(err, options) { - var originalError = null; - if (typeof err.message === 'string' && err.message !== '') { - if (typeof options === 'string' || (options && options.message)) { - originalError = util.copy(err); - originalError.message = err.message; - } - } - err.message = err.message || null; - - if (typeof options === 'string') { - err.message = options; - } else if (typeof options === 'object' && options !== null) { - util.update(err, options); - if (options.message) - err.message = options.message; - if (options.code || options.name) - err.code = options.code || options.name; - if (options.stack) - err.stack = options.stack; - } - - if (typeof Object.defineProperty === 'function') { - Object.defineProperty(err, 'name', {writable: true, enumerable: false}); - Object.defineProperty(err, 'message', {enumerable: true}); - } - - err.name = String(options && options.name || err.name || err.code || 'Error'); - err.time = new Date(); - - if (originalError) { - err.originalError = originalError; - } - - - for (var key in options || {}) { - if (key[0] === '[' && key[key.length - 1] === ']') { - key = key.slice(1, -1); - if (key === 'code' || key === 'message') { - continue; - } - err['[' + key + ']'] = 'See error.' + key + ' for details.'; - Object.defineProperty(err, key, { - value: err[key] || (options && options[key]) || (originalError && originalError[key]), - enumerable: false, - writable: true - }); - } - } - - return err; - }, - - /** - * @api private - */ - inherit: function inherit(klass, features) { - var newObject = null; - if (features === undefined) { - features = klass; - klass = Object; - newObject = {}; - } else { - var ctor = function ConstructorWrapper() {}; - ctor.prototype = klass.prototype; - newObject = new ctor(); - } - - // constructor not supplied, create pass-through ctor - if (features.constructor === Object) { - features.constructor = function() { - if (klass !== Object) { - return klass.apply(this, arguments); - } - }; - } - - features.constructor.prototype = newObject; - util.update(features.constructor.prototype, features); - features.constructor.__super__ = klass; - return features.constructor; - }, - - /** - * @api private - */ - mixin: function mixin() { - var klass = arguments[0]; - for (var i = 1; i < arguments.length; i++) { - // jshint forin:false - for (var prop in arguments[i].prototype) { - var fn = arguments[i].prototype[prop]; - if (prop !== 'constructor') { - klass.prototype[prop] = fn; - } - } - } - return klass; - }, - - /** - * @api private - */ - hideProperties: function hideProperties(obj, props) { - if (typeof Object.defineProperty !== 'function') return; - - util.arrayEach(props, function (key) { - Object.defineProperty(obj, key, { - enumerable: false, writable: true, configurable: true }); - }); - }, - - /** - * @api private - */ - property: function property(obj, name, value, enumerable, isValue) { - var opts = { - configurable: true, - enumerable: enumerable !== undefined ? enumerable : true - }; - if (typeof value === 'function' && !isValue) { - opts.get = value; - } - else { - opts.value = value; opts.writable = true; - } - - Object.defineProperty(obj, name, opts); - }, - - /** - * @api private - */ - memoizedProperty: function memoizedProperty(obj, name, get, enumerable) { - var cachedValue = null; - - // build enumerable attribute for each value with lazy accessor. - util.property(obj, name, function() { - if (cachedValue === null) { - cachedValue = get(); - } - return cachedValue; - }, enumerable); - }, - - /** - * TODO Remove in major version revision - * This backfill populates response data without the - * top-level payload name. - * - * @api private - */ - hoistPayloadMember: function hoistPayloadMember(resp) { - var req = resp.request; - var operationName = req.operation; - var operation = req.service.api.operations[operationName]; - var output = operation.output; - if (output.payload && !operation.hasEventOutput) { - var payloadMember = output.members[output.payload]; - var responsePayload = resp.data[output.payload]; - if (payloadMember.type === 'structure') { - util.each(responsePayload, function(key, value) { - util.property(resp.data, key, value, false); - }); - } - } - }, - - /** - * Compute SHA-256 checksums of streams - * - * @api private - */ - computeSha256: function computeSha256(body, done) { - if (util.isNode()) { - var Stream = util.stream.Stream; - var fs = __nccwpck_require__(79896); - if (typeof Stream === 'function' && body instanceof Stream) { - if (typeof body.path === 'string') { // assume file object - var settings = {}; - if (typeof body.start === 'number') { - settings.start = body.start; - } - if (typeof body.end === 'number') { - settings.end = body.end; - } - body = fs.createReadStream(body.path, settings); - } else { // TODO support other stream types - return done(new Error('Non-file stream objects are ' + - 'not supported with SigV4')); - } - } - } - - util.crypto.sha256(body, 'hex', function(err, sha) { - if (err) done(err); - else done(null, sha); - }); - }, - - /** - * @api private - */ - isClockSkewed: function isClockSkewed(serverTime) { - if (serverTime) { - util.property(AWS.config, 'isClockSkewed', - Math.abs(new Date().getTime() - serverTime) >= 300000, false); - return AWS.config.isClockSkewed; - } - }, - - applyClockOffset: function applyClockOffset(serverTime) { - if (serverTime) - AWS.config.systemClockOffset = serverTime - new Date().getTime(); - }, - - /** - * @api private - */ - extractRequestId: function extractRequestId(resp) { - var requestId = resp.httpResponse.headers['x-amz-request-id'] || - resp.httpResponse.headers['x-amzn-requestid']; - - if (!requestId && resp.data && resp.data.ResponseMetadata) { - requestId = resp.data.ResponseMetadata.RequestId; - } - - if (requestId) { - resp.requestId = requestId; - } - - if (resp.error) { - resp.error.requestId = requestId; - } - }, - - /** - * @api private - */ - addPromises: function addPromises(constructors, PromiseDependency) { - var deletePromises = false; - if (PromiseDependency === undefined && AWS && AWS.config) { - PromiseDependency = AWS.config.getPromisesDependency(); - } - if (PromiseDependency === undefined && typeof Promise !== 'undefined') { - PromiseDependency = Promise; - } - if (typeof PromiseDependency !== 'function') deletePromises = true; - if (!Array.isArray(constructors)) constructors = [constructors]; - - for (var ind = 0; ind < constructors.length; ind++) { - var constructor = constructors[ind]; - if (deletePromises) { - if (constructor.deletePromisesFromClass) { - constructor.deletePromisesFromClass(); - } - } else if (constructor.addPromisesToClass) { - constructor.addPromisesToClass(PromiseDependency); - } - } - }, - - /** - * @api private - * Return a function that will return a promise whose fate is decided by the - * callback behavior of the given method with `methodName`. The method to be - * promisified should conform to node.js convention of accepting a callback as - * last argument and calling that callback with error as the first argument - * and success value on the second argument. - */ - promisifyMethod: function promisifyMethod(methodName, PromiseDependency) { - return function promise() { - var self = this; - var args = Array.prototype.slice.call(arguments); - return new PromiseDependency(function(resolve, reject) { - args.push(function(err, data) { - if (err) { - reject(err); - } else { - resolve(data); - } - }); - self[methodName].apply(self, args); - }); - }; - }, - - /** - * @api private - */ - isDualstackAvailable: function isDualstackAvailable(service) { - if (!service) return false; - var metadata = __nccwpck_require__(15087); - if (typeof service !== 'string') service = service.serviceIdentifier; - if (typeof service !== 'string' || !metadata.hasOwnProperty(service)) return false; - return !!metadata[service].dualstackAvailable; - }, - - /** - * @api private - */ - calculateRetryDelay: function calculateRetryDelay(retryCount, retryDelayOptions, err) { - if (!retryDelayOptions) retryDelayOptions = {}; - var customBackoff = retryDelayOptions.customBackoff || null; - if (typeof customBackoff === 'function') { - return customBackoff(retryCount, err); - } - var base = typeof retryDelayOptions.base === 'number' ? retryDelayOptions.base : 100; - var delay = Math.random() * (Math.pow(2, retryCount) * base); - return delay; - }, - - /** - * @api private - */ - handleRequestWithRetries: function handleRequestWithRetries(httpRequest, options, cb) { - if (!options) options = {}; - var http = AWS.HttpClient.getInstance(); - var httpOptions = options.httpOptions || {}; - var retryCount = 0; - - var errCallback = function(err) { - var maxRetries = options.maxRetries || 0; - if (err && err.code === 'TimeoutError') err.retryable = true; - - // Call `calculateRetryDelay()` only when relevant, see #3401 - if (err && err.retryable && retryCount < maxRetries) { - var delay = util.calculateRetryDelay(retryCount, options.retryDelayOptions, err); - if (delay >= 0) { - retryCount++; - setTimeout(sendRequest, delay + (err.retryAfter || 0)); - return; - } - } - cb(err); - }; - - var sendRequest = function() { - var data = ''; - http.handleRequest(httpRequest, httpOptions, function(httpResponse) { - httpResponse.on('data', function(chunk) { data += chunk.toString(); }); - httpResponse.on('end', function() { - var statusCode = httpResponse.statusCode; - if (statusCode < 300) { - cb(null, data); - } else { - var retryAfter = parseInt(httpResponse.headers['retry-after'], 10) * 1000 || 0; - var err = util.error(new Error(), - { - statusCode: statusCode, - retryable: statusCode >= 500 || statusCode === 429 - } - ); - if (retryAfter && err.retryable) err.retryAfter = retryAfter; - errCallback(err); - } - }); - }, errCallback); - }; - - AWS.util.defer(sendRequest); - }, - - /** - * @api private - */ - uuid: { - v4: function uuidV4() { - return (__nccwpck_require__(95960).v4)(); - } - }, - - /** - * @api private - */ - convertPayloadToString: function convertPayloadToString(resp) { - var req = resp.request; - var operation = req.operation; - var rules = req.service.api.operations[operation].output || {}; - if (rules.payload && resp.data[rules.payload]) { - resp.data[rules.payload] = resp.data[rules.payload].toString(); - } - }, - - /** - * @api private - */ - defer: function defer(callback) { - if (typeof process === 'object' && typeof process.nextTick === 'function') { - process.nextTick(callback); - } else if (typeof setImmediate === 'function') { - setImmediate(callback); - } else { - setTimeout(callback, 0); - } - }, - - /** - * @api private - */ - getRequestPayloadShape: function getRequestPayloadShape(req) { - var operations = req.service.api.operations; - if (!operations) return undefined; - var operation = (operations || {})[req.operation]; - if (!operation || !operation.input || !operation.input.payload) return undefined; - return operation.input.members[operation.input.payload]; - }, - - getProfilesFromSharedConfig: function getProfilesFromSharedConfig(iniLoader, filename) { - var profiles = {}; - var profilesFromConfig = {}; - if (process.env[util.configOptInEnv]) { - var profilesFromConfig = iniLoader.loadFrom({ - isConfig: true, - filename: process.env[util.sharedConfigFileEnv] - }); - } - var profilesFromCreds= {}; - try { - var profilesFromCreds = iniLoader.loadFrom({ - filename: filename || - (process.env[util.configOptInEnv] && process.env[util.sharedCredentialsFileEnv]) - }); - } catch (error) { - // if using config, assume it is fully descriptive without a credentials file: - if (!process.env[util.configOptInEnv]) throw error; - } - for (var i = 0, profileNames = Object.keys(profilesFromConfig); i < profileNames.length; i++) { - profiles[profileNames[i]] = objectAssign(profiles[profileNames[i]] || {}, profilesFromConfig[profileNames[i]]); - } - for (var i = 0, profileNames = Object.keys(profilesFromCreds); i < profileNames.length; i++) { - profiles[profileNames[i]] = objectAssign(profiles[profileNames[i]] || {}, profilesFromCreds[profileNames[i]]); - } - return profiles; - - /** - * Roughly the semantics of `Object.assign(target, source)` - */ - function objectAssign(target, source) { - for (var i = 0, keys = Object.keys(source); i < keys.length; i++) { - target[keys[i]] = source[keys[i]]; - } - return target; - } - }, - - /** - * @api private - */ - ARN: { - validate: function validateARN(str) { - return str && str.indexOf('arn:') === 0 && str.split(':').length >= 6; - }, - parse: function parseARN(arn) { - var matched = arn.split(':'); - return { - partition: matched[1], - service: matched[2], - region: matched[3], - accountId: matched[4], - resource: matched.slice(5).join(':') - }; - }, - build: function buildARN(arnObject) { - if ( - arnObject.service === undefined || - arnObject.region === undefined || - arnObject.accountId === undefined || - arnObject.resource === undefined - ) throw util.error(new Error('Input ARN object is invalid')); - return 'arn:'+ (arnObject.partition || 'aws') + ':' + arnObject.service + - ':' + arnObject.region + ':' + arnObject.accountId + ':' + arnObject.resource; - } - }, - - /** - * @api private - */ - defaultProfile: 'default', - - /** - * @api private - */ - configOptInEnv: 'AWS_SDK_LOAD_CONFIG', - - /** - * @api private - */ - sharedCredentialsFileEnv: 'AWS_SHARED_CREDENTIALS_FILE', - - /** - * @api private - */ - sharedConfigFileEnv: 'AWS_CONFIG_FILE', - - /** - * @api private - */ - imdsDisabledEnv: 'AWS_EC2_METADATA_DISABLED' -}; - -/** - * @api private - */ -module.exports = util; - - -/***/ }), - -/***/ 8665: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var util = __nccwpck_require__(65742); -var XmlNode = (__nccwpck_require__(720).XmlNode); -var XmlText = (__nccwpck_require__(43035).XmlText); - -function XmlBuilder() { } - -XmlBuilder.prototype.toXML = function(params, shape, rootElement, noEmpty) { - var xml = new XmlNode(rootElement); - applyNamespaces(xml, shape, true); - serialize(xml, params, shape); - return xml.children.length > 0 || noEmpty ? xml.toString() : ''; -}; - -function serialize(xml, value, shape) { - switch (shape.type) { - case 'structure': return serializeStructure(xml, value, shape); - case 'map': return serializeMap(xml, value, shape); - case 'list': return serializeList(xml, value, shape); - default: return serializeScalar(xml, value, shape); - } -} - -function serializeStructure(xml, params, shape) { - util.arrayEach(shape.memberNames, function(memberName) { - var memberShape = shape.members[memberName]; - if (memberShape.location !== 'body') return; - - var value = params[memberName]; - var name = memberShape.name; - if (value !== undefined && value !== null) { - if (memberShape.isXmlAttribute) { - xml.addAttribute(name, value); - } else if (memberShape.flattened) { - serialize(xml, value, memberShape); - } else { - var element = new XmlNode(name); - xml.addChildNode(element); - applyNamespaces(element, memberShape); - serialize(element, value, memberShape); - } - } - }); -} - -function serializeMap(xml, map, shape) { - var xmlKey = shape.key.name || 'key'; - var xmlValue = shape.value.name || 'value'; - - util.each(map, function(key, value) { - var entry = new XmlNode(shape.flattened ? shape.name : 'entry'); - xml.addChildNode(entry); - - var entryKey = new XmlNode(xmlKey); - var entryValue = new XmlNode(xmlValue); - entry.addChildNode(entryKey); - entry.addChildNode(entryValue); - - serialize(entryKey, key, shape.key); - serialize(entryValue, value, shape.value); - }); -} - -function serializeList(xml, list, shape) { - if (shape.flattened) { - util.arrayEach(list, function(value) { - var name = shape.member.name || shape.name; - var element = new XmlNode(name); - xml.addChildNode(element); - serialize(element, value, shape.member); - }); - } else { - util.arrayEach(list, function(value) { - var name = shape.member.name || 'member'; - var element = new XmlNode(name); - xml.addChildNode(element); - serialize(element, value, shape.member); - }); - } -} - -function serializeScalar(xml, value, shape) { - xml.addChildNode( - new XmlText(shape.toWireFormat(value)) - ); -} - -function applyNamespaces(xml, shape, isRoot) { - var uri, prefix = 'xmlns'; - if (shape.xmlNamespaceUri) { - uri = shape.xmlNamespaceUri; - if (shape.xmlNamespacePrefix) prefix += ':' + shape.xmlNamespacePrefix; - } else if (isRoot && shape.api.xmlNamespaceUri) { - uri = shape.api.xmlNamespaceUri; - } - - if (uri) xml.addAttribute(prefix, uri); -} - -/** - * @api private - */ -module.exports = XmlBuilder; - - -/***/ }), - -/***/ 7374: -/***/ ((module) => { - -/** - * Escapes characters that can not be in an XML attribute. - */ -function escapeAttribute(value) { - return value.replace(/&/g, '&').replace(/'/g, ''').replace(//g, '>').replace(/"/g, '"'); -} - -/** - * @api private - */ -module.exports = { - escapeAttribute: escapeAttribute -}; - - -/***/ }), - -/***/ 5090: -/***/ ((module) => { - -/** - * Escapes characters that can not be in an XML element. - */ -function escapeElement(value) { - return value.replace(/&/g, '&') - .replace(//g, '>') - .replace(/\r/g, ' ') - .replace(/\n/g, ' ') - .replace(/\u0085/g, '…') - .replace(/\u2028/, '
'); -} - -/** - * @api private - */ -module.exports = { - escapeElement: escapeElement -}; - - -/***/ }), - -/***/ 26236: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var AWS = __nccwpck_require__(60085); -var util = AWS.util; -var Shape = AWS.Model.Shape; - -var xml2js = __nccwpck_require__(758); - -/** - * @api private - */ -var options = { // options passed to xml2js parser - explicitCharkey: false, // undocumented - trim: false, // trim the leading/trailing whitespace from text nodes - normalize: false, // trim interior whitespace inside text nodes - explicitRoot: false, // return the root node in the resulting object? - emptyTag: null, // the default value for empty nodes - explicitArray: true, // always put child nodes in an array - ignoreAttrs: false, // ignore attributes, only create text nodes - mergeAttrs: false, // merge attributes and child elements - validator: null // a callable validator -}; - -function NodeXmlParser() { } - -NodeXmlParser.prototype.parse = function(xml, shape) { - shape = shape || {}; - - var result = null; - var error = null; - - var parser = new xml2js.Parser(options); - parser.parseString(xml, function (e, r) { - error = e; - result = r; - }); - - if (result) { - var data = parseXml(result, shape); - if (result.ResponseMetadata) { - data.ResponseMetadata = parseXml(result.ResponseMetadata[0], {}); - } - return data; - } else if (error) { - throw util.error(error, {code: 'XMLParserError', retryable: true}); - } else { // empty xml document - return parseXml({}, shape); - } -}; - -function parseXml(xml, shape) { - switch (shape.type) { - case 'structure': return parseStructure(xml, shape); - case 'map': return parseMap(xml, shape); - case 'list': return parseList(xml, shape); - case undefined: case null: return parseUnknown(xml); - default: return parseScalar(xml, shape); - } -} - -function parseStructure(xml, shape) { - var data = {}; - if (xml === null) return data; - - util.each(shape.members, function(memberName, memberShape) { - var xmlName = memberShape.name; - if (Object.prototype.hasOwnProperty.call(xml, xmlName) && Array.isArray(xml[xmlName])) { - var xmlChild = xml[xmlName]; - if (!memberShape.flattened) xmlChild = xmlChild[0]; - - data[memberName] = parseXml(xmlChild, memberShape); - } else if (memberShape.isXmlAttribute && - xml.$ && Object.prototype.hasOwnProperty.call(xml.$, xmlName)) { - data[memberName] = parseScalar(xml.$[xmlName], memberShape); - } else if (memberShape.type === 'list' && !shape.api.xmlNoDefaultLists) { - data[memberName] = memberShape.defaultValue; - } - }); - - return data; -} - -function parseMap(xml, shape) { - var data = {}; - if (xml === null) return data; - - var xmlKey = shape.key.name || 'key'; - var xmlValue = shape.value.name || 'value'; - var iterable = shape.flattened ? xml : xml.entry; - - if (Array.isArray(iterable)) { - util.arrayEach(iterable, function(child) { - data[child[xmlKey][0]] = parseXml(child[xmlValue][0], shape.value); - }); - } - - return data; -} - -function parseList(xml, shape) { - var data = []; - var name = shape.member.name || 'member'; - if (shape.flattened) { - util.arrayEach(xml, function(xmlChild) { - data.push(parseXml(xmlChild, shape.member)); - }); - } else if (xml && Array.isArray(xml[name])) { - util.arrayEach(xml[name], function(child) { - data.push(parseXml(child, shape.member)); - }); - } - - return data; -} - -function parseScalar(text, shape) { - if (text && text.$ && text.$.encoding === 'base64') { - shape = new Shape.create({type: text.$.encoding}); - } - if (text && text._) text = text._; - - if (typeof shape.toType === 'function') { - return shape.toType(text); - } else { - return text; - } -} - -function parseUnknown(xml) { - if (xml === undefined || xml === null) return ''; - if (typeof xml === 'string') return xml; - - // parse a list - if (Array.isArray(xml)) { - var arr = []; - for (i = 0; i < xml.length; i++) { - arr.push(parseXml(xml[i], {})); - } - return arr; - } - - // empty object - var keys = Object.keys(xml), i; - if (keys.length === 0 || (keys.length === 1 && keys[0] === '$')) { - return {}; - } - - // object, parse as structure - var data = {}; - for (i = 0; i < keys.length; i++) { - var key = keys[i], value = xml[key]; - if (key === '$') continue; - if (value.length > 1) { // this member is a list - data[key] = parseList(value, {member: {}}); - } else { // this member is a single item - data[key] = parseXml(value[0], {}); - } - } - return data; -} - -/** - * @api private - */ -module.exports = NodeXmlParser; - - -/***/ }), - -/***/ 720: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var escapeAttribute = (__nccwpck_require__(7374).escapeAttribute); - -/** - * Represents an XML node. - * @api private - */ -function XmlNode(name, children) { - if (children === void 0) { children = []; } - this.name = name; - this.children = children; - this.attributes = {}; -} -XmlNode.prototype.addAttribute = function (name, value) { - this.attributes[name] = value; - return this; -}; -XmlNode.prototype.addChildNode = function (child) { - this.children.push(child); - return this; -}; -XmlNode.prototype.removeAttribute = function (name) { - delete this.attributes[name]; - return this; -}; -XmlNode.prototype.toString = function () { - var hasChildren = Boolean(this.children.length); - var xmlText = '<' + this.name; - // add attributes - var attributes = this.attributes; - for (var i = 0, attributeNames = Object.keys(attributes); i < attributeNames.length; i++) { - var attributeName = attributeNames[i]; - var attribute = attributes[attributeName]; - if (typeof attribute !== 'undefined' && attribute !== null) { - xmlText += ' ' + attributeName + '=\"' + escapeAttribute('' + attribute) + '\"'; - } - } - return xmlText += !hasChildren ? '/>' : '>' + this.children.map(function (c) { return c.toString(); }).join('') + ''; -}; - -/** - * @api private - */ -module.exports = { - XmlNode: XmlNode -}; - - -/***/ }), - -/***/ 43035: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -var escapeElement = (__nccwpck_require__(5090).escapeElement); - -/** - * Represents an XML text value. - * @api private - */ -function XmlText(value) { - this.value = value; -} - -XmlText.prototype.toString = function () { - return escapeElement('' + this.value); -}; - -/** - * @api private - */ -module.exports = { - XmlText: XmlText -}; - - -/***/ }), - -/***/ 59685: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ -var byteToHex = []; - -for (var i = 0; i < 256; ++i) { - byteToHex[i] = (i + 0x100).toString(16).substr(1); -} - -function bytesToUuid(buf, offset) { - var i = offset || 0; - var bth = byteToHex; // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4 - - return [bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]]].join(''); -} - -var _default = bytesToUuid; -exports["default"] = _default; - -/***/ }), - -/***/ 95960: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; -var __webpack_unused_export__; - - -__webpack_unused_export__ = ({ - value: true -}); -__webpack_unused_export__ = ({ - enumerable: true, - get: function () { - return _v.default; - } -}); -__webpack_unused_export__ = ({ - enumerable: true, - get: function () { - return _v2.default; - } -}); -Object.defineProperty(exports, "v4", ({ - enumerable: true, - get: function () { - return _v3.default; - } -})); -__webpack_unused_export__ = ({ - enumerable: true, - get: function () { - return _v4.default; - } -}); - -var _v = _interopRequireDefault(__nccwpck_require__(7607)); - -var _v2 = _interopRequireDefault(__nccwpck_require__(35289)); - -var _v3 = _interopRequireDefault(__nccwpck_require__(76460)); - -var _v4 = _interopRequireDefault(__nccwpck_require__(26195)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/***/ }), - -/***/ 11216: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - - return _crypto.default.createHash('md5').update(bytes).digest(); -} - -var _default = md5; -exports["default"] = _default; - -/***/ }), - -/***/ 34933: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = rng; - -var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function rng() { - return _crypto.default.randomBytes(16); -} - -/***/ }), - -/***/ 4435: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - - return _crypto.default.createHash('sha1').update(bytes).digest(); -} - -var _default = sha1; -exports["default"] = _default; - -/***/ }), - -/***/ 7607: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _rng = _interopRequireDefault(__nccwpck_require__(34933)); - -var _bytesToUuid = _interopRequireDefault(__nccwpck_require__(59685)); - -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 -var _nodeId; - -var _clockseq; // Previous uuid creation time - - -var _lastMSecs = 0; -var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details - -function v1(options, buf, offset) { - var i = buf && offset || 0; - var b = buf || []; - options = options || {}; - var node = options.node || _nodeId; - var 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) { - var 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. - - - var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime(); // Per 4.2.1.2, use count of uuid's generated during the current clock - // cycle to simulate higher resolution clock - - var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) - - var 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` - - var 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` - - var 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 (var n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - - return buf ? buf : (0, _bytesToUuid.default)(b); -} - -var _default = v1; -exports["default"] = _default; - -/***/ }), - -/***/ 35289: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _v = _interopRequireDefault(__nccwpck_require__(25786)); - -var _md = _interopRequireDefault(__nccwpck_require__(11216)); - -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; - -/***/ }), - -/***/ 25786: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -exports.URL = exports.DNS = void 0; - -var _bytesToUuid = _interopRequireDefault(__nccwpck_require__(59685)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function uuidToBytes(uuid) { - // Note: We assume we're being passed a valid uuid string - var bytes = []; - uuid.replace(/[a-fA-F0-9]{2}/g, function (hex) { - bytes.push(parseInt(hex, 16)); - }); - return bytes; -} - -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); // UTF8 escape - - var bytes = new Array(str.length); - - for (var i = 0; i < str.length; i++) { - bytes[i] = str.charCodeAt(i); - } - - return bytes; -} - -const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -exports.DNS = DNS; -const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -exports.URL = URL; - -function _default(name, version, hashfunc) { - var generateUUID = function (value, namespace, buf, offset) { - var off = buf && offset || 0; - if (typeof value == 'string') value = stringToBytes(value); - if (typeof namespace == 'string') namespace = uuidToBytes(namespace); - if (!Array.isArray(value)) throw TypeError('value must be an array of bytes'); - if (!Array.isArray(namespace) || namespace.length !== 16) throw TypeError('namespace must be uuid string or an Array of 16 byte values'); // Per 4.3 - - var bytes = hashfunc(namespace.concat(value)); - bytes[6] = bytes[6] & 0x0f | version; - bytes[8] = bytes[8] & 0x3f | 0x80; - - if (buf) { - for (var idx = 0; idx < 16; ++idx) { - buf[off + idx] = bytes[idx]; - } - } - - return buf || (0, _bytesToUuid.default)(bytes); - }; // Function#name is not settable on some platforms (#270) - - - try { - generateUUID.name = name; - } catch (err) {} // For CommonJS default export support - - - generateUUID.DNS = DNS; - generateUUID.URL = URL; - return generateUUID; -} - -/***/ }), - -/***/ 76460: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _rng = _interopRequireDefault(__nccwpck_require__(34933)); - -var _bytesToUuid = _interopRequireDefault(__nccwpck_require__(59685)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function v4(options, buf, offset) { - var i = buf && offset || 0; - - if (typeof options == 'string') { - buf = options === 'binary' ? new Array(16) : null; - options = null; - } - - options = options || {}; - - var 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) { - for (var ii = 0; ii < 16; ++ii) { - buf[i + ii] = rnds[ii]; - } - } - - return buf || (0, _bytesToUuid.default)(rnds); -} - -var _default = v4; -exports["default"] = _default; - -/***/ }), - -/***/ 26195: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _v = _interopRequireDefault(__nccwpck_require__(25786)); - -var _sha = _interopRequireDefault(__nccwpck_require__(4435)); - -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; - -/***/ }), - -/***/ 3846: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; -var __webpack_unused_export__; - -__webpack_unused_export__ = ({ value: true }); -var LRU_1 = __nccwpck_require__(12309); -var CACHE_SIZE = 1000; -/** - * Inspired node-lru-cache[https://github.com/isaacs/node-lru-cache] - */ -var EndpointCache = /** @class */ (function () { - function EndpointCache(maxSize) { - if (maxSize === void 0) { maxSize = CACHE_SIZE; } - this.maxSize = maxSize; - this.cache = new LRU_1.LRUCache(maxSize); - } - ; - Object.defineProperty(EndpointCache.prototype, "size", { - get: function () { - return this.cache.length; - }, - enumerable: true, - configurable: true - }); - EndpointCache.prototype.put = function (key, value) { - var keyString = typeof key !== 'string' ? EndpointCache.getKeyString(key) : key; - var endpointRecord = this.populateValue(value); - this.cache.put(keyString, endpointRecord); - }; - EndpointCache.prototype.get = function (key) { - var keyString = typeof key !== 'string' ? EndpointCache.getKeyString(key) : key; - var now = Date.now(); - var records = this.cache.get(keyString); - if (records) { - for (var i = records.length-1; i >= 0; i--) { - var record = records[i]; - if (record.Expire < now) { - records.splice(i, 1); - } - } - if (records.length === 0) { - this.cache.remove(keyString); - return undefined; - } - } - return records; - }; - EndpointCache.getKeyString = function (key) { - var identifiers = []; - var identifierNames = Object.keys(key).sort(); - for (var i = 0; i < identifierNames.length; i++) { - var identifierName = identifierNames[i]; - if (key[identifierName] === undefined) - continue; - identifiers.push(key[identifierName]); - } - return identifiers.join(' '); - }; - EndpointCache.prototype.populateValue = function (endpoints) { - var now = Date.now(); - return endpoints.map(function (endpoint) { return ({ - Address: endpoint.Address || '', - Expire: now + (endpoint.CachePeriodInMinutes || 1) * 60 * 1000 - }); }); - }; - EndpointCache.prototype.empty = function () { - this.cache.empty(); - }; - EndpointCache.prototype.remove = function (key) { - var keyString = typeof key !== 'string' ? EndpointCache.getKeyString(key) : key; - this.cache.remove(keyString); - }; - return EndpointCache; -}()); -exports.k = EndpointCache; - -/***/ }), - -/***/ 12309: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -var LinkedListNode = /** @class */ (function () { - function LinkedListNode(key, value) { - this.key = key; - this.value = value; - } - return LinkedListNode; -}()); -var LRUCache = /** @class */ (function () { - function LRUCache(size) { - this.nodeMap = {}; - this.size = 0; - if (typeof size !== 'number' || size < 1) { - throw new Error('Cache size can only be positive number'); - } - this.sizeLimit = size; - } - Object.defineProperty(LRUCache.prototype, "length", { - get: function () { - return this.size; - }, - enumerable: true, - configurable: true - }); - LRUCache.prototype.prependToList = function (node) { - if (!this.headerNode) { - this.tailNode = node; - } - else { - this.headerNode.prev = node; - node.next = this.headerNode; - } - this.headerNode = node; - this.size++; - }; - LRUCache.prototype.removeFromTail = function () { - if (!this.tailNode) { - return undefined; - } - var node = this.tailNode; - var prevNode = node.prev; - if (prevNode) { - prevNode.next = undefined; - } - node.prev = undefined; - this.tailNode = prevNode; - this.size--; - return node; - }; - LRUCache.prototype.detachFromList = function (node) { - if (this.headerNode === node) { - this.headerNode = node.next; - } - if (this.tailNode === node) { - this.tailNode = node.prev; - } - if (node.prev) { - node.prev.next = node.next; - } - if (node.next) { - node.next.prev = node.prev; - } - node.next = undefined; - node.prev = undefined; - this.size--; - }; - LRUCache.prototype.get = function (key) { - if (this.nodeMap[key]) { - var node = this.nodeMap[key]; - this.detachFromList(node); - this.prependToList(node); - return node.value; - } - }; - LRUCache.prototype.remove = function (key) { - if (this.nodeMap[key]) { - var node = this.nodeMap[key]; - this.detachFromList(node); - delete this.nodeMap[key]; - } - }; - LRUCache.prototype.put = function (key, value) { - if (this.nodeMap[key]) { - this.remove(key); - } - else if (this.size === this.sizeLimit) { - var tailNode = this.removeFromTail(); - var key_1 = tailNode.key; - delete this.nodeMap[key_1]; - } - var newNode = new LinkedListNode(key, value); - this.nodeMap[key] = newNode; - this.prependToList(newNode); - }; - LRUCache.prototype.empty = function () { - var keys = Object.keys(this.nodeMap); - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - var node = this.nodeMap[key]; - this.detachFromList(node); - delete this.nodeMap[key]; - } - }; - return LRUCache; -}()); -exports.LRUCache = LRUCache; - -/***/ }), - -/***/ 88832: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -var aws4 = exports, - url = __nccwpck_require__(87016), - querystring = __nccwpck_require__(83480), - crypto = __nccwpck_require__(76982), - lru = __nccwpck_require__(22638), - credentialsCache = lru(1000) - -// http://docs.amazonwebservices.com/general/latest/gr/signature-version-4.html - -function hmac(key, string, encoding) { - return crypto.createHmac('sha256', key).update(string, 'utf8').digest(encoding) -} - -function hash(string, encoding) { - return crypto.createHash('sha256').update(string, 'utf8').digest(encoding) -} - -// This function assumes the string has already been percent encoded -function encodeRfc3986(urlEncodedString) { - return urlEncodedString.replace(/[!'()*]/g, function(c) { - return '%' + c.charCodeAt(0).toString(16).toUpperCase() - }) -} - -function encodeRfc3986Full(str) { - return encodeRfc3986(encodeURIComponent(str)) -} - -// A bit of a combination of: -// https://github.com/aws/aws-sdk-java-v2/blob/dc695de6ab49ad03934e1b02e7263abbd2354be0/core/auth/src/main/java/software/amazon/awssdk/auth/signer/internal/AbstractAws4Signer.java#L59 -// https://github.com/aws/aws-sdk-js/blob/18cb7e5b463b46239f9fdd4a65e2ff8c81831e8f/lib/signers/v4.js#L191-L199 -// https://github.com/mhart/aws4fetch/blob/b3aed16b6f17384cf36ea33bcba3c1e9f3bdfefd/src/main.js#L25-L34 -var HEADERS_TO_IGNORE = { - 'authorization': true, - 'connection': true, - 'x-amzn-trace-id': true, - 'user-agent': true, - 'expect': true, - 'presigned-expires': true, - 'range': true, -} - -// request: { path | body, [host], [method], [headers], [service], [region] } -// credentials: { accessKeyId, secretAccessKey, [sessionToken] } -function RequestSigner(request, credentials) { - - if (typeof request === 'string') request = url.parse(request) - - var headers = request.headers = (request.headers || {}), - hostParts = (!this.service || !this.region) && this.matchHost(request.hostname || request.host || headers.Host || headers.host) - - this.request = request - this.credentials = credentials || this.defaultCredentials() - - this.service = request.service || hostParts[0] || '' - this.region = request.region || hostParts[1] || 'us-east-1' - - // SES uses a different domain from the service name - if (this.service === 'email') this.service = 'ses' - - if (!request.method && request.body) - request.method = 'POST' - - if (!headers.Host && !headers.host) { - headers.Host = request.hostname || request.host || this.createHost() - - // If a port is specified explicitly, use it as is - if (request.port) - headers.Host += ':' + request.port - } - if (!request.hostname && !request.host) - request.hostname = headers.Host || headers.host - - this.isCodeCommitGit = this.service === 'codecommit' && request.method === 'GIT' - - this.extraHeadersToIgnore = request.extraHeadersToIgnore || Object.create(null) - this.extraHeadersToInclude = request.extraHeadersToInclude || Object.create(null) -} - -RequestSigner.prototype.matchHost = function(host) { - var match = (host || '').match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(\.cn)?$/) - var hostParts = (match || []).slice(1, 3) - - // ES's hostParts are sometimes the other way round, if the value that is expected - // to be region equals ‘es’ switch them back - // e.g. search-cluster-name-aaaa00aaaa0aaa0aaaaaaa0aaa.us-east-1.es.amazonaws.com - if (hostParts[1] === 'es' || hostParts[1] === 'aoss') - hostParts = hostParts.reverse() - - if (hostParts[1] == 's3') { - hostParts[0] = 's3' - hostParts[1] = 'us-east-1' - } else { - for (var i = 0; i < 2; i++) { - if (/^s3-/.test(hostParts[i])) { - hostParts[1] = hostParts[i].slice(3) - hostParts[0] = 's3' - break - } - } - } - - return hostParts -} - -// http://docs.aws.amazon.com/general/latest/gr/rande.html -RequestSigner.prototype.isSingleRegion = function() { - // Special case for S3 and SimpleDB in us-east-1 - if (['s3', 'sdb'].indexOf(this.service) >= 0 && this.region === 'us-east-1') return true - - return ['cloudfront', 'ls', 'route53', 'iam', 'importexport', 'sts'] - .indexOf(this.service) >= 0 -} - -RequestSigner.prototype.createHost = function() { - var region = this.isSingleRegion() ? '' : '.' + this.region, - subdomain = this.service === 'ses' ? 'email' : this.service - return subdomain + region + '.amazonaws.com' -} - -RequestSigner.prototype.prepareRequest = function() { - this.parsePath() - - var request = this.request, headers = request.headers, query - - if (request.signQuery) { - - this.parsedPath.query = query = this.parsedPath.query || {} - - if (this.credentials.sessionToken) - query['X-Amz-Security-Token'] = this.credentials.sessionToken - - if (this.service === 's3' && !query['X-Amz-Expires']) - query['X-Amz-Expires'] = 86400 - - if (query['X-Amz-Date']) - this.datetime = query['X-Amz-Date'] - else - query['X-Amz-Date'] = this.getDateTime() - - query['X-Amz-Algorithm'] = 'AWS4-HMAC-SHA256' - query['X-Amz-Credential'] = this.credentials.accessKeyId + '/' + this.credentialString() - query['X-Amz-SignedHeaders'] = this.signedHeaders() - - } else { - - if (!request.doNotModifyHeaders && !this.isCodeCommitGit) { - if (request.body && !headers['Content-Type'] && !headers['content-type']) - headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=utf-8' - - if (request.body && !headers['Content-Length'] && !headers['content-length']) - headers['Content-Length'] = Buffer.byteLength(request.body) - - if (this.credentials.sessionToken && !headers['X-Amz-Security-Token'] && !headers['x-amz-security-token']) - headers['X-Amz-Security-Token'] = this.credentials.sessionToken - - if (this.service === 's3' && !headers['X-Amz-Content-Sha256'] && !headers['x-amz-content-sha256']) - headers['X-Amz-Content-Sha256'] = hash(this.request.body || '', 'hex') - - if (headers['X-Amz-Date'] || headers['x-amz-date']) - this.datetime = headers['X-Amz-Date'] || headers['x-amz-date'] - else - headers['X-Amz-Date'] = this.getDateTime() - } - - delete headers.Authorization - delete headers.authorization - } -} - -RequestSigner.prototype.sign = function() { - if (!this.parsedPath) this.prepareRequest() - - if (this.request.signQuery) { - this.parsedPath.query['X-Amz-Signature'] = this.signature() - } else { - this.request.headers.Authorization = this.authHeader() - } - - this.request.path = this.formatPath() - - return this.request -} - -RequestSigner.prototype.getDateTime = function() { - if (!this.datetime) { - var headers = this.request.headers, - date = new Date(headers.Date || headers.date || new Date) - - this.datetime = date.toISOString().replace(/[:\-]|\.\d{3}/g, '') - - // Remove the trailing 'Z' on the timestamp string for CodeCommit git access - if (this.isCodeCommitGit) this.datetime = this.datetime.slice(0, -1) - } - return this.datetime -} - -RequestSigner.prototype.getDate = function() { - return this.getDateTime().substr(0, 8) -} - -RequestSigner.prototype.authHeader = function() { - return [ - 'AWS4-HMAC-SHA256 Credential=' + this.credentials.accessKeyId + '/' + this.credentialString(), - 'SignedHeaders=' + this.signedHeaders(), - 'Signature=' + this.signature(), - ].join(', ') -} - -RequestSigner.prototype.signature = function() { - var date = this.getDate(), - cacheKey = [this.credentials.secretAccessKey, date, this.region, this.service].join(), - kDate, kRegion, kService, kCredentials = credentialsCache.get(cacheKey) - if (!kCredentials) { - kDate = hmac('AWS4' + this.credentials.secretAccessKey, date) - kRegion = hmac(kDate, this.region) - kService = hmac(kRegion, this.service) - kCredentials = hmac(kService, 'aws4_request') - credentialsCache.set(cacheKey, kCredentials) - } - return hmac(kCredentials, this.stringToSign(), 'hex') -} - -RequestSigner.prototype.stringToSign = function() { - return [ - 'AWS4-HMAC-SHA256', - this.getDateTime(), - this.credentialString(), - hash(this.canonicalString(), 'hex'), - ].join('\n') -} - -RequestSigner.prototype.canonicalString = function() { - if (!this.parsedPath) this.prepareRequest() - - var pathStr = this.parsedPath.path, - query = this.parsedPath.query, - headers = this.request.headers, - queryStr = '', - normalizePath = this.service !== 's3', - decodePath = this.service === 's3' || this.request.doNotEncodePath, - decodeSlashesInPath = this.service === 's3', - firstValOnly = this.service === 's3', - bodyHash - - if (this.service === 's3' && this.request.signQuery) { - bodyHash = 'UNSIGNED-PAYLOAD' - } else if (this.isCodeCommitGit) { - bodyHash = '' - } else { - bodyHash = headers['X-Amz-Content-Sha256'] || headers['x-amz-content-sha256'] || - hash(this.request.body || '', 'hex') - } - - if (query) { - var reducedQuery = Object.keys(query).reduce(function(obj, key) { - if (!key) return obj - obj[encodeRfc3986Full(key)] = !Array.isArray(query[key]) ? query[key] : - (firstValOnly ? query[key][0] : query[key]) - return obj - }, {}) - var encodedQueryPieces = [] - Object.keys(reducedQuery).sort().forEach(function(key) { - if (!Array.isArray(reducedQuery[key])) { - encodedQueryPieces.push(key + '=' + encodeRfc3986Full(reducedQuery[key])) - } else { - reducedQuery[key].map(encodeRfc3986Full).sort() - .forEach(function(val) { encodedQueryPieces.push(key + '=' + val) }) - } - }) - queryStr = encodedQueryPieces.join('&') - } - if (pathStr !== '/') { - if (normalizePath) pathStr = pathStr.replace(/\/{2,}/g, '/') - pathStr = pathStr.split('/').reduce(function(path, piece) { - if (normalizePath && piece === '..') { - path.pop() - } else if (!normalizePath || piece !== '.') { - if (decodePath) piece = decodeURIComponent(piece.replace(/\+/g, ' ')) - path.push(encodeRfc3986Full(piece)) - } - return path - }, []).join('/') - if (pathStr[0] !== '/') pathStr = '/' + pathStr - if (decodeSlashesInPath) pathStr = pathStr.replace(/%2F/g, '/') - } - - return [ - this.request.method || 'GET', - pathStr, - queryStr, - this.canonicalHeaders() + '\n', - this.signedHeaders(), - bodyHash, - ].join('\n') -} - -RequestSigner.prototype.canonicalHeaders = function() { - var headers = this.request.headers - function trimAll(header) { - return header.toString().trim().replace(/\s+/g, ' ') - } - return Object.keys(headers) - .filter(function(key) { return HEADERS_TO_IGNORE[key.toLowerCase()] == null }) - .sort(function(a, b) { return a.toLowerCase() < b.toLowerCase() ? -1 : 1 }) - .map(function(key) { return key.toLowerCase() + ':' + trimAll(headers[key]) }) - .join('\n') -} - -RequestSigner.prototype.signedHeaders = function() { - var extraHeadersToInclude = this.extraHeadersToInclude, - extraHeadersToIgnore = this.extraHeadersToIgnore - return Object.keys(this.request.headers) - .map(function(key) { return key.toLowerCase() }) - .filter(function(key) { - return extraHeadersToInclude[key] || - (HEADERS_TO_IGNORE[key] == null && !extraHeadersToIgnore[key]) - }) - .sort() - .join(';') -} - -RequestSigner.prototype.credentialString = function() { - return [ - this.getDate(), - this.region, - this.service, - 'aws4_request', - ].join('/') -} - -RequestSigner.prototype.defaultCredentials = function() { - var env = process.env - return { - accessKeyId: env.AWS_ACCESS_KEY_ID || env.AWS_ACCESS_KEY, - secretAccessKey: env.AWS_SECRET_ACCESS_KEY || env.AWS_SECRET_KEY, - sessionToken: env.AWS_SESSION_TOKEN, - } -} - -RequestSigner.prototype.parsePath = function() { - var path = this.request.path || '/' - - // S3 doesn't always encode characters > 127 correctly and - // all services don't encode characters > 255 correctly - // So if there are non-reserved chars (and it's not already all % encoded), just encode them all - if (/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(path)) { - path = encodeURI(decodeURI(path)) - } - - var queryIx = path.indexOf('?'), - query = null - - if (queryIx >= 0) { - query = querystring.parse(path.slice(queryIx + 1)) - path = path.slice(0, queryIx) - } - - this.parsedPath = { - path: path, - query: query, - } -} - -RequestSigner.prototype.formatPath = function() { - var path = this.parsedPath.path, - query = this.parsedPath.query - - if (!query) return path - - // Services don't support empty query string keys - if (query[''] != null) delete query[''] - - return path + '?' + encodeRfc3986(querystring.stringify(query)) -} - -aws4.RequestSigner = RequestSigner - -aws4.sign = function(request, credentials) { - return new RequestSigner(request, credentials).sign() -} - - -/***/ }), - -/***/ 22638: -/***/ ((module) => { - -module.exports = function(size) { - return new LruCache(size) -} - -function LruCache(size) { - this.capacity = size | 0 - this.map = Object.create(null) - this.list = new DoublyLinkedList() -} - -LruCache.prototype.get = function(key) { - var node = this.map[key] - if (node == null) return undefined - this.used(node) - return node.val -} - -LruCache.prototype.set = function(key, val) { - var node = this.map[key] - if (node != null) { - node.val = val - } else { - if (!this.capacity) this.prune() - if (!this.capacity) return false - node = new DoublyLinkedNode(key, val) - this.map[key] = node - this.capacity-- - } - this.used(node) - return true -} - -LruCache.prototype.used = function(node) { - this.list.moveToFront(node) -} - -LruCache.prototype.prune = function() { - var node = this.list.pop() - if (node != null) { - delete this.map[node.key] - this.capacity++ - } -} - - -function DoublyLinkedList() { - this.firstNode = null - this.lastNode = null -} - -DoublyLinkedList.prototype.moveToFront = function(node) { - if (this.firstNode == node) return - - this.remove(node) - - if (this.firstNode == null) { - this.firstNode = node - this.lastNode = node - node.prev = null - node.next = null - } else { - node.prev = null - node.next = this.firstNode - node.next.prev = node - this.firstNode = node - } -} - -DoublyLinkedList.prototype.pop = function() { - var lastNode = this.lastNode - if (lastNode != null) { - this.remove(lastNode) - } - return lastNode -} - -DoublyLinkedList.prototype.remove = function(node) { - if (this.firstNode == node) { - this.firstNode = node.next - } else if (node.prev != null) { - node.prev.next = node.next - } - if (this.lastNode == node) { - this.lastNode = node.prev - } else if (node.next != null) { - node.next.prev = node.prev - } -} - - -function DoublyLinkedNode(key, val) { - this.key = key - this.val = val - this.prev = null - this.next = null -} - - -/***/ }), - -/***/ 38793: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -exports.byteLength = byteLength -exports.toByteArray = toByteArray -exports.fromByteArray = fromByteArray - -var lookup = [] -var revLookup = [] -var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array - -var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' -for (var i = 0, len = code.length; i < len; ++i) { - lookup[i] = code[i] - revLookup[code.charCodeAt(i)] = i -} - -// Support decoding URL-safe base64 strings, as Node.js does. -// See: https://en.wikipedia.org/wiki/Base64#URL_applications -revLookup['-'.charCodeAt(0)] = 62 -revLookup['_'.charCodeAt(0)] = 63 - -function getLens (b64) { - var len = b64.length - - if (len % 4 > 0) { - throw new Error('Invalid string. Length must be a multiple of 4') - } - - // Trim off extra bytes after placeholder bytes are found - // See: https://github.com/beatgammit/base64-js/issues/42 - var validLen = b64.indexOf('=') - if (validLen === -1) validLen = len - - var placeHoldersLen = validLen === len - ? 0 - : 4 - (validLen % 4) - - return [validLen, placeHoldersLen] -} - -// base64 is 4/3 + up to two characters of the original data -function byteLength (b64) { - var lens = getLens(b64) - var validLen = lens[0] - var placeHoldersLen = lens[1] - return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen -} - -function _byteLength (b64, validLen, placeHoldersLen) { - return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen -} - -function toByteArray (b64) { - var tmp - var lens = getLens(b64) - var validLen = lens[0] - var placeHoldersLen = lens[1] - - var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)) - - var curByte = 0 - - // if there are placeholders, only get up to the last complete 4 chars - var len = placeHoldersLen > 0 - ? validLen - 4 - : validLen - - var i - for (i = 0; i < len; i += 4) { - tmp = - (revLookup[b64.charCodeAt(i)] << 18) | - (revLookup[b64.charCodeAt(i + 1)] << 12) | - (revLookup[b64.charCodeAt(i + 2)] << 6) | - revLookup[b64.charCodeAt(i + 3)] - arr[curByte++] = (tmp >> 16) & 0xFF - arr[curByte++] = (tmp >> 8) & 0xFF - arr[curByte++] = tmp & 0xFF - } - - if (placeHoldersLen === 2) { - tmp = - (revLookup[b64.charCodeAt(i)] << 2) | - (revLookup[b64.charCodeAt(i + 1)] >> 4) - arr[curByte++] = tmp & 0xFF - } - - if (placeHoldersLen === 1) { - tmp = - (revLookup[b64.charCodeAt(i)] << 10) | - (revLookup[b64.charCodeAt(i + 1)] << 4) | - (revLookup[b64.charCodeAt(i + 2)] >> 2) - arr[curByte++] = (tmp >> 8) & 0xFF - arr[curByte++] = tmp & 0xFF - } - - return arr -} - -function tripletToBase64 (num) { - return lookup[num >> 18 & 0x3F] + - lookup[num >> 12 & 0x3F] + - lookup[num >> 6 & 0x3F] + - lookup[num & 0x3F] -} - -function encodeChunk (uint8, start, end) { - var tmp - var output = [] - for (var i = start; i < end; i += 3) { - tmp = - ((uint8[i] << 16) & 0xFF0000) + - ((uint8[i + 1] << 8) & 0xFF00) + - (uint8[i + 2] & 0xFF) - output.push(tripletToBase64(tmp)) - } - return output.join('') -} - -function fromByteArray (uint8) { - var tmp - var len = uint8.length - var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes - var parts = [] - var maxChunkLength = 16383 // must be multiple of 3 - - // go through the array every three bytes, we'll deal with trailing stuff later - for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { - parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength))) - } - - // pad the end with zeros, but make sure to not forget the extra bytes - if (extraBytes === 1) { - tmp = uint8[len - 1] - parts.push( - lookup[tmp >> 2] + - lookup[(tmp << 4) & 0x3F] + - '==' - ) - } else if (extraBytes === 2) { - tmp = (uint8[len - 2] << 8) + uint8[len - 1] - parts.push( - lookup[tmp >> 10] + - lookup[(tmp >> 4) & 0x3F] + - lookup[(tmp << 2) & 0x3F] + - '=' - ) - } - - return parts.join('') -} - - -/***/ }), - -/***/ 51259: -/***/ (function(module) { - -;(function (globalObject) { - 'use strict'; - -/* - * bignumber.js v9.1.2 - * A JavaScript library for arbitrary-precision arithmetic. - * https://github.com/MikeMcl/bignumber.js - * Copyright (c) 2022 Michael Mclaughlin - * MIT Licensed. - * - * BigNumber.prototype methods | BigNumber methods - * | - * absoluteValue abs | clone - * comparedTo | config set - * decimalPlaces dp | DECIMAL_PLACES - * dividedBy div | ROUNDING_MODE - * dividedToIntegerBy idiv | EXPONENTIAL_AT - * exponentiatedBy pow | RANGE - * integerValue | CRYPTO - * isEqualTo eq | MODULO_MODE - * isFinite | POW_PRECISION - * isGreaterThan gt | FORMAT - * isGreaterThanOrEqualTo gte | ALPHABET - * isInteger | isBigNumber - * isLessThan lt | maximum max - * isLessThanOrEqualTo lte | minimum min - * isNaN | random - * isNegative | sum - * isPositive | - * isZero | - * minus | - * modulo mod | - * multipliedBy times | - * negated | - * plus | - * precision sd | - * shiftedBy | - * squareRoot sqrt | - * toExponential | - * toFixed | - * toFormat | - * toFraction | - * toJSON | - * toNumber | - * toPrecision | - * toString | - * valueOf | - * - */ - - - var BigNumber, - isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, - mathceil = Math.ceil, - mathfloor = Math.floor, - - bignumberError = '[BigNumber Error] ', - tooManyDigits = bignumberError + 'Number primitive has more than 15 significant digits: ', - - BASE = 1e14, - LOG_BASE = 14, - MAX_SAFE_INTEGER = 0x1fffffffffffff, // 2^53 - 1 - // MAX_INT32 = 0x7fffffff, // 2^31 - 1 - POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], - SQRT_BASE = 1e7, - - // EDITABLE - // The limit on the value of DECIMAL_PLACES, TO_EXP_NEG, TO_EXP_POS, MIN_EXP, MAX_EXP, and - // the arguments to toExponential, toFixed, toFormat, and toPrecision. - MAX = 1E9; // 0 to MAX_INT32 - - - /* - * Create and return a BigNumber constructor. - */ - function clone(configObject) { - var div, convertBase, parseNumeric, - P = BigNumber.prototype = { constructor: BigNumber, toString: null, valueOf: null }, - ONE = new BigNumber(1), - - - //----------------------------- EDITABLE CONFIG DEFAULTS ------------------------------- - - - // The default values below must be integers within the inclusive ranges stated. - // The values can also be changed at run-time using BigNumber.set. - - // The maximum number of decimal places for operations involving division. - DECIMAL_PLACES = 20, // 0 to MAX - - // The rounding mode used when rounding to the above decimal places, and when using - // toExponential, toFixed, toFormat and toPrecision, and round (default value). - // UP 0 Away from zero. - // DOWN 1 Towards zero. - // CEIL 2 Towards +Infinity. - // FLOOR 3 Towards -Infinity. - // HALF_UP 4 Towards nearest neighbour. If equidistant, up. - // HALF_DOWN 5 Towards nearest neighbour. If equidistant, down. - // HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour. - // HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity. - // HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity. - ROUNDING_MODE = 4, // 0 to 8 - - // EXPONENTIAL_AT : [TO_EXP_NEG , TO_EXP_POS] - - // The exponent value at and beneath which toString returns exponential notation. - // Number type: -7 - TO_EXP_NEG = -7, // 0 to -MAX - - // The exponent value at and above which toString returns exponential notation. - // Number type: 21 - TO_EXP_POS = 21, // 0 to MAX - - // RANGE : [MIN_EXP, MAX_EXP] - - // The minimum exponent value, beneath which underflow to zero occurs. - // Number type: -324 (5e-324) - MIN_EXP = -1e7, // -1 to -MAX - - // The maximum exponent value, above which overflow to Infinity occurs. - // Number type: 308 (1.7976931348623157e+308) - // For MAX_EXP > 1e7, e.g. new BigNumber('1e100000000').plus(1) may be slow. - MAX_EXP = 1e7, // 1 to MAX - - // Whether to use cryptographically-secure random number generation, if available. - CRYPTO = false, // true or false - - // The modulo mode used when calculating the modulus: a mod n. - // The quotient (q = a / n) is calculated according to the corresponding rounding mode. - // The remainder (r) is calculated as: r = a - n * q. - // - // UP 0 The remainder is positive if the dividend is negative, else is negative. - // DOWN 1 The remainder has the same sign as the dividend. - // This modulo mode is commonly known as 'truncated division' and is - // equivalent to (a % n) in JavaScript. - // FLOOR 3 The remainder has the same sign as the divisor (Python %). - // HALF_EVEN 6 This modulo mode implements the IEEE 754 remainder function. - // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)). - // The remainder is always positive. - // - // The truncated division, floored division, Euclidian division and IEEE 754 remainder - // modes are commonly used for the modulus operation. - // Although the other rounding modes can also be used, they may not give useful results. - MODULO_MODE = 1, // 0 to 9 - - // The maximum number of significant digits of the result of the exponentiatedBy operation. - // If POW_PRECISION is 0, there will be unlimited significant digits. - POW_PRECISION = 0, // 0 to MAX - - // The format specification used by the BigNumber.prototype.toFormat method. - FORMAT = { - prefix: '', - groupSize: 3, - secondaryGroupSize: 0, - groupSeparator: ',', - decimalSeparator: '.', - fractionGroupSize: 0, - fractionGroupSeparator: '\xA0', // non-breaking space - suffix: '' - }, - - // The alphabet used for base conversion. It must be at least 2 characters long, with no '+', - // '-', '.', whitespace, or repeated character. - // '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_' - ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyz', - alphabetHasNormalDecimalDigits = true; - - - //------------------------------------------------------------------------------------------ - - - // CONSTRUCTOR - - - /* - * The BigNumber constructor and exported function. - * Create and return a new instance of a BigNumber object. - * - * v {number|string|BigNumber} A numeric value. - * [b] {number} The base of v. Integer, 2 to ALPHABET.length inclusive. - */ - function BigNumber(v, b) { - var alphabet, c, caseChanged, e, i, isNum, len, str, - x = this; - - // Enable constructor call without `new`. - if (!(x instanceof BigNumber)) return new BigNumber(v, b); - - if (b == null) { - - if (v && v._isBigNumber === true) { - x.s = v.s; - - if (!v.c || v.e > MAX_EXP) { - x.c = x.e = null; - } else if (v.e < MIN_EXP) { - x.c = [x.e = 0]; - } else { - x.e = v.e; - x.c = v.c.slice(); - } - - return; - } - - if ((isNum = typeof v == 'number') && v * 0 == 0) { - - // Use `1 / n` to handle minus zero also. - x.s = 1 / v < 0 ? (v = -v, -1) : 1; - - // Fast path for integers, where n < 2147483648 (2**31). - if (v === ~~v) { - for (e = 0, i = v; i >= 10; i /= 10, e++); - - if (e > MAX_EXP) { - x.c = x.e = null; - } else { - x.e = e; - x.c = [v]; - } - - return; - } - - str = String(v); - } else { - - if (!isNumeric.test(str = String(v))) return parseNumeric(x, str, isNum); - - x.s = str.charCodeAt(0) == 45 ? (str = str.slice(1), -1) : 1; - } - - // Decimal point? - if ((e = str.indexOf('.')) > -1) str = str.replace('.', ''); - - // Exponential form? - if ((i = str.search(/e/i)) > 0) { - - // Determine exponent. - if (e < 0) e = i; - e += +str.slice(i + 1); - str = str.substring(0, i); - } else if (e < 0) { - - // Integer. - e = str.length; - } - - } else { - - // '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}' - intCheck(b, 2, ALPHABET.length, 'Base'); - - // Allow exponential notation to be used with base 10 argument, while - // also rounding to DECIMAL_PLACES as with other bases. - if (b == 10 && alphabetHasNormalDecimalDigits) { - x = new BigNumber(v); - return round(x, DECIMAL_PLACES + x.e + 1, ROUNDING_MODE); - } - - str = String(v); - - if (isNum = typeof v == 'number') { - - // Avoid potential interpretation of Infinity and NaN as base 44+ values. - if (v * 0 != 0) return parseNumeric(x, str, isNum, b); - - x.s = 1 / v < 0 ? (str = str.slice(1), -1) : 1; - - // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}' - if (BigNumber.DEBUG && str.replace(/^0\.0*|\./, '').length > 15) { - throw Error - (tooManyDigits + v); - } - } else { - x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1; - } - - alphabet = ALPHABET.slice(0, b); - e = i = 0; - - // Check that str is a valid base b number. - // Don't use RegExp, so alphabet can contain special characters. - for (len = str.length; i < len; i++) { - if (alphabet.indexOf(c = str.charAt(i)) < 0) { - if (c == '.') { - - // If '.' is not the first character and it has not be found before. - if (i > e) { - e = len; - continue; - } - } else if (!caseChanged) { - - // Allow e.g. hexadecimal 'FF' as well as 'ff'. - if (str == str.toUpperCase() && (str = str.toLowerCase()) || - str == str.toLowerCase() && (str = str.toUpperCase())) { - caseChanged = true; - i = -1; - e = 0; - continue; - } - } - - return parseNumeric(x, String(v), isNum, b); - } - } - - // Prevent later check for length on converted number. - isNum = false; - str = convertBase(str, b, 10, x.s); - - // Decimal point? - if ((e = str.indexOf('.')) > -1) str = str.replace('.', ''); - else e = str.length; - } - - // Determine leading zeros. - for (i = 0; str.charCodeAt(i) === 48; i++); - - // Determine trailing zeros. - for (len = str.length; str.charCodeAt(--len) === 48;); - - if (str = str.slice(i, ++len)) { - len -= i; - - // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}' - if (isNum && BigNumber.DEBUG && - len > 15 && (v > MAX_SAFE_INTEGER || v !== mathfloor(v))) { - throw Error - (tooManyDigits + (x.s * v)); - } - - // Overflow? - if ((e = e - i - 1) > MAX_EXP) { - - // Infinity. - x.c = x.e = null; - - // Underflow? - } else if (e < MIN_EXP) { - - // Zero. - x.c = [x.e = 0]; - } else { - x.e = e; - x.c = []; - - // Transform base - - // e is the base 10 exponent. - // i is where to slice str to get the first element of the coefficient array. - i = (e + 1) % LOG_BASE; - if (e < 0) i += LOG_BASE; // i < 1 - - if (i < len) { - if (i) x.c.push(+str.slice(0, i)); - - for (len -= LOG_BASE; i < len;) { - x.c.push(+str.slice(i, i += LOG_BASE)); - } - - i = LOG_BASE - (str = str.slice(i)).length; - } else { - i -= len; - } - - for (; i--; str += '0'); - x.c.push(+str); - } - } else { - - // Zero. - x.c = [x.e = 0]; - } - } - - - // CONSTRUCTOR PROPERTIES - - - BigNumber.clone = clone; - - BigNumber.ROUND_UP = 0; - BigNumber.ROUND_DOWN = 1; - BigNumber.ROUND_CEIL = 2; - BigNumber.ROUND_FLOOR = 3; - BigNumber.ROUND_HALF_UP = 4; - BigNumber.ROUND_HALF_DOWN = 5; - BigNumber.ROUND_HALF_EVEN = 6; - BigNumber.ROUND_HALF_CEIL = 7; - BigNumber.ROUND_HALF_FLOOR = 8; - BigNumber.EUCLID = 9; - - - /* - * Configure infrequently-changing library-wide settings. - * - * Accept an object with the following optional properties (if the value of a property is - * a number, it must be an integer within the inclusive range stated): - * - * DECIMAL_PLACES {number} 0 to MAX - * ROUNDING_MODE {number} 0 to 8 - * EXPONENTIAL_AT {number|number[]} -MAX to MAX or [-MAX to 0, 0 to MAX] - * RANGE {number|number[]} -MAX to MAX (not zero) or [-MAX to -1, 1 to MAX] - * CRYPTO {boolean} true or false - * MODULO_MODE {number} 0 to 9 - * POW_PRECISION {number} 0 to MAX - * ALPHABET {string} A string of two or more unique characters which does - * not contain '.'. - * FORMAT {object} An object with some of the following properties: - * prefix {string} - * groupSize {number} - * secondaryGroupSize {number} - * groupSeparator {string} - * decimalSeparator {string} - * fractionGroupSize {number} - * fractionGroupSeparator {string} - * suffix {string} - * - * (The values assigned to the above FORMAT object properties are not checked for validity.) - * - * E.g. - * BigNumber.config({ DECIMAL_PLACES : 20, ROUNDING_MODE : 4 }) - * - * Ignore properties/parameters set to null or undefined, except for ALPHABET. - * - * Return an object with the properties current values. - */ - BigNumber.config = BigNumber.set = function (obj) { - var p, v; - - if (obj != null) { - - if (typeof obj == 'object') { - - // DECIMAL_PLACES {number} Integer, 0 to MAX inclusive. - // '[BigNumber Error] DECIMAL_PLACES {not a primitive number|not an integer|out of range}: {v}' - if (obj.hasOwnProperty(p = 'DECIMAL_PLACES')) { - v = obj[p]; - intCheck(v, 0, MAX, p); - DECIMAL_PLACES = v; - } - - // ROUNDING_MODE {number} Integer, 0 to 8 inclusive. - // '[BigNumber Error] ROUNDING_MODE {not a primitive number|not an integer|out of range}: {v}' - if (obj.hasOwnProperty(p = 'ROUNDING_MODE')) { - v = obj[p]; - intCheck(v, 0, 8, p); - ROUNDING_MODE = v; - } - - // EXPONENTIAL_AT {number|number[]} - // Integer, -MAX to MAX inclusive or - // [integer -MAX to 0 inclusive, 0 to MAX inclusive]. - // '[BigNumber Error] EXPONENTIAL_AT {not a primitive number|not an integer|out of range}: {v}' - if (obj.hasOwnProperty(p = 'EXPONENTIAL_AT')) { - v = obj[p]; - if (v && v.pop) { - intCheck(v[0], -MAX, 0, p); - intCheck(v[1], 0, MAX, p); - TO_EXP_NEG = v[0]; - TO_EXP_POS = v[1]; - } else { - intCheck(v, -MAX, MAX, p); - TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v); - } - } - - // RANGE {number|number[]} Non-zero integer, -MAX to MAX inclusive or - // [integer -MAX to -1 inclusive, integer 1 to MAX inclusive]. - // '[BigNumber Error] RANGE {not a primitive number|not an integer|out of range|cannot be zero}: {v}' - if (obj.hasOwnProperty(p = 'RANGE')) { - v = obj[p]; - if (v && v.pop) { - intCheck(v[0], -MAX, -1, p); - intCheck(v[1], 1, MAX, p); - MIN_EXP = v[0]; - MAX_EXP = v[1]; - } else { - intCheck(v, -MAX, MAX, p); - if (v) { - MIN_EXP = -(MAX_EXP = v < 0 ? -v : v); - } else { - throw Error - (bignumberError + p + ' cannot be zero: ' + v); - } - } - } - - // CRYPTO {boolean} true or false. - // '[BigNumber Error] CRYPTO not true or false: {v}' - // '[BigNumber Error] crypto unavailable' - if (obj.hasOwnProperty(p = 'CRYPTO')) { - v = obj[p]; - if (v === !!v) { - if (v) { - if (typeof crypto != 'undefined' && crypto && - (crypto.getRandomValues || crypto.randomBytes)) { - CRYPTO = v; - } else { - CRYPTO = !v; - throw Error - (bignumberError + 'crypto unavailable'); - } - } else { - CRYPTO = v; - } - } else { - throw Error - (bignumberError + p + ' not true or false: ' + v); - } - } - - // MODULO_MODE {number} Integer, 0 to 9 inclusive. - // '[BigNumber Error] MODULO_MODE {not a primitive number|not an integer|out of range}: {v}' - if (obj.hasOwnProperty(p = 'MODULO_MODE')) { - v = obj[p]; - intCheck(v, 0, 9, p); - MODULO_MODE = v; - } - - // POW_PRECISION {number} Integer, 0 to MAX inclusive. - // '[BigNumber Error] POW_PRECISION {not a primitive number|not an integer|out of range}: {v}' - if (obj.hasOwnProperty(p = 'POW_PRECISION')) { - v = obj[p]; - intCheck(v, 0, MAX, p); - POW_PRECISION = v; - } - - // FORMAT {object} - // '[BigNumber Error] FORMAT not an object: {v}' - if (obj.hasOwnProperty(p = 'FORMAT')) { - v = obj[p]; - if (typeof v == 'object') FORMAT = v; - else throw Error - (bignumberError + p + ' not an object: ' + v); - } - - // ALPHABET {string} - // '[BigNumber Error] ALPHABET invalid: {v}' - if (obj.hasOwnProperty(p = 'ALPHABET')) { - v = obj[p]; - - // Disallow if less than two characters, - // or if it contains '+', '-', '.', whitespace, or a repeated character. - if (typeof v == 'string' && !/^.?$|[+\-.\s]|(.).*\1/.test(v)) { - alphabetHasNormalDecimalDigits = v.slice(0, 10) == '0123456789'; - ALPHABET = v; - } else { - throw Error - (bignumberError + p + ' invalid: ' + v); - } - } - - } else { - - // '[BigNumber Error] Object expected: {v}' - throw Error - (bignumberError + 'Object expected: ' + obj); - } - } - - return { - DECIMAL_PLACES: DECIMAL_PLACES, - ROUNDING_MODE: ROUNDING_MODE, - EXPONENTIAL_AT: [TO_EXP_NEG, TO_EXP_POS], - RANGE: [MIN_EXP, MAX_EXP], - CRYPTO: CRYPTO, - MODULO_MODE: MODULO_MODE, - POW_PRECISION: POW_PRECISION, - FORMAT: FORMAT, - ALPHABET: ALPHABET - }; - }; - - - /* - * Return true if v is a BigNumber instance, otherwise return false. - * - * If BigNumber.DEBUG is true, throw if a BigNumber instance is not well-formed. - * - * v {any} - * - * '[BigNumber Error] Invalid BigNumber: {v}' - */ - BigNumber.isBigNumber = function (v) { - if (!v || v._isBigNumber !== true) return false; - if (!BigNumber.DEBUG) return true; - - var i, n, - c = v.c, - e = v.e, - s = v.s; - - out: if ({}.toString.call(c) == '[object Array]') { - - if ((s === 1 || s === -1) && e >= -MAX && e <= MAX && e === mathfloor(e)) { - - // If the first element is zero, the BigNumber value must be zero. - if (c[0] === 0) { - if (e === 0 && c.length === 1) return true; - break out; - } - - // Calculate number of digits that c[0] should have, based on the exponent. - i = (e + 1) % LOG_BASE; - if (i < 1) i += LOG_BASE; - - // Calculate number of digits of c[0]. - //if (Math.ceil(Math.log(c[0] + 1) / Math.LN10) == i) { - if (String(c[0]).length == i) { - - for (i = 0; i < c.length; i++) { - n = c[i]; - if (n < 0 || n >= BASE || n !== mathfloor(n)) break out; - } - - // Last element cannot be zero, unless it is the only element. - if (n !== 0) return true; - } - } - - // Infinity/NaN - } else if (c === null && e === null && (s === null || s === 1 || s === -1)) { - return true; - } - - throw Error - (bignumberError + 'Invalid BigNumber: ' + v); - }; - - - /* - * Return a new BigNumber whose value is the maximum of the arguments. - * - * arguments {number|string|BigNumber} - */ - BigNumber.maximum = BigNumber.max = function () { - return maxOrMin(arguments, -1); - }; - - - /* - * Return a new BigNumber whose value is the minimum of the arguments. - * - * arguments {number|string|BigNumber} - */ - BigNumber.minimum = BigNumber.min = function () { - return maxOrMin(arguments, 1); - }; - - - /* - * Return a new BigNumber with a random value equal to or greater than 0 and less than 1, - * and with dp, or DECIMAL_PLACES if dp is omitted, decimal places (or less if trailing - * zeros are produced). - * - * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp}' - * '[BigNumber Error] crypto unavailable' - */ - BigNumber.random = (function () { - var pow2_53 = 0x20000000000000; - - // Return a 53 bit integer n, where 0 <= n < 9007199254740992. - // Check if Math.random() produces more than 32 bits of randomness. - // If it does, assume at least 53 bits are produced, otherwise assume at least 30 bits. - // 0x40000000 is 2^30, 0x800000 is 2^23, 0x1fffff is 2^21 - 1. - var random53bitInt = (Math.random() * pow2_53) & 0x1fffff - ? function () { return mathfloor(Math.random() * pow2_53); } - : function () { return ((Math.random() * 0x40000000 | 0) * 0x800000) + - (Math.random() * 0x800000 | 0); }; - - return function (dp) { - var a, b, e, k, v, - i = 0, - c = [], - rand = new BigNumber(ONE); - - if (dp == null) dp = DECIMAL_PLACES; - else intCheck(dp, 0, MAX); - - k = mathceil(dp / LOG_BASE); - - if (CRYPTO) { - - // Browsers supporting crypto.getRandomValues. - if (crypto.getRandomValues) { - - a = crypto.getRandomValues(new Uint32Array(k *= 2)); - - for (; i < k;) { - - // 53 bits: - // ((Math.pow(2, 32) - 1) * Math.pow(2, 21)).toString(2) - // 11111 11111111 11111111 11111111 11100000 00000000 00000000 - // ((Math.pow(2, 32) - 1) >>> 11).toString(2) - // 11111 11111111 11111111 - // 0x20000 is 2^21. - v = a[i] * 0x20000 + (a[i + 1] >>> 11); - - // Rejection sampling: - // 0 <= v < 9007199254740992 - // Probability that v >= 9e15, is - // 7199254740992 / 9007199254740992 ~= 0.0008, i.e. 1 in 1251 - if (v >= 9e15) { - b = crypto.getRandomValues(new Uint32Array(2)); - a[i] = b[0]; - a[i + 1] = b[1]; - } else { - - // 0 <= v <= 8999999999999999 - // 0 <= (v % 1e14) <= 99999999999999 - c.push(v % 1e14); - i += 2; - } - } - i = k / 2; - - // Node.js supporting crypto.randomBytes. - } else if (crypto.randomBytes) { - - // buffer - a = crypto.randomBytes(k *= 7); - - for (; i < k;) { - - // 0x1000000000000 is 2^48, 0x10000000000 is 2^40 - // 0x100000000 is 2^32, 0x1000000 is 2^24 - // 11111 11111111 11111111 11111111 11111111 11111111 11111111 - // 0 <= v < 9007199254740992 - v = ((a[i] & 31) * 0x1000000000000) + (a[i + 1] * 0x10000000000) + - (a[i + 2] * 0x100000000) + (a[i + 3] * 0x1000000) + - (a[i + 4] << 16) + (a[i + 5] << 8) + a[i + 6]; - - if (v >= 9e15) { - crypto.randomBytes(7).copy(a, i); - } else { - - // 0 <= (v % 1e14) <= 99999999999999 - c.push(v % 1e14); - i += 7; - } - } - i = k / 7; - } else { - CRYPTO = false; - throw Error - (bignumberError + 'crypto unavailable'); - } - } - - // Use Math.random. - if (!CRYPTO) { - - for (; i < k;) { - v = random53bitInt(); - if (v < 9e15) c[i++] = v % 1e14; - } - } - - k = c[--i]; - dp %= LOG_BASE; - - // Convert trailing digits to zeros according to dp. - if (k && dp) { - v = POWS_TEN[LOG_BASE - dp]; - c[i] = mathfloor(k / v) * v; - } - - // Remove trailing elements which are zero. - for (; c[i] === 0; c.pop(), i--); - - // Zero? - if (i < 0) { - c = [e = 0]; - } else { - - // Remove leading elements which are zero and adjust exponent accordingly. - for (e = -1 ; c[0] === 0; c.splice(0, 1), e -= LOG_BASE); - - // Count the digits of the first element of c to determine leading zeros, and... - for (i = 1, v = c[0]; v >= 10; v /= 10, i++); - - // adjust the exponent accordingly. - if (i < LOG_BASE) e -= LOG_BASE - i; - } - - rand.e = e; - rand.c = c; - return rand; - }; - })(); - - - /* - * Return a BigNumber whose value is the sum of the arguments. - * - * arguments {number|string|BigNumber} - */ - BigNumber.sum = function () { - var i = 1, - args = arguments, - sum = new BigNumber(args[0]); - for (; i < args.length;) sum = sum.plus(args[i++]); - return sum; - }; - - - // PRIVATE FUNCTIONS - - - // Called by BigNumber and BigNumber.prototype.toString. - convertBase = (function () { - var decimal = '0123456789'; - - /* - * Convert string of baseIn to an array of numbers of baseOut. - * Eg. toBaseOut('255', 10, 16) returns [15, 15]. - * Eg. toBaseOut('ff', 16, 10) returns [2, 5, 5]. - */ - function toBaseOut(str, baseIn, baseOut, alphabet) { - var j, - arr = [0], - arrL, - i = 0, - len = str.length; - - for (; i < len;) { - for (arrL = arr.length; arrL--; arr[arrL] *= baseIn); - - arr[0] += alphabet.indexOf(str.charAt(i++)); - - for (j = 0; j < arr.length; j++) { - - if (arr[j] > baseOut - 1) { - if (arr[j + 1] == null) arr[j + 1] = 0; - arr[j + 1] += arr[j] / baseOut | 0; - arr[j] %= baseOut; - } - } - } - - return arr.reverse(); - } - - // Convert a numeric string of baseIn to a numeric string of baseOut. - // If the caller is toString, we are converting from base 10 to baseOut. - // If the caller is BigNumber, we are converting from baseIn to base 10. - return function (str, baseIn, baseOut, sign, callerIsToString) { - var alphabet, d, e, k, r, x, xc, y, - i = str.indexOf('.'), - dp = DECIMAL_PLACES, - rm = ROUNDING_MODE; - - // Non-integer. - if (i >= 0) { - k = POW_PRECISION; - - // Unlimited precision. - POW_PRECISION = 0; - str = str.replace('.', ''); - y = new BigNumber(baseIn); - x = y.pow(str.length - i); - POW_PRECISION = k; - - // Convert str as if an integer, then restore the fraction part by dividing the - // result by its base raised to a power. - - y.c = toBaseOut(toFixedPoint(coeffToString(x.c), x.e, '0'), - 10, baseOut, decimal); - y.e = y.c.length; - } - - // Convert the number as integer. - - xc = toBaseOut(str, baseIn, baseOut, callerIsToString - ? (alphabet = ALPHABET, decimal) - : (alphabet = decimal, ALPHABET)); - - // xc now represents str as an integer and converted to baseOut. e is the exponent. - e = k = xc.length; - - // Remove trailing zeros. - for (; xc[--k] == 0; xc.pop()); - - // Zero? - if (!xc[0]) return alphabet.charAt(0); - - // Does str represent an integer? If so, no need for the division. - if (i < 0) { - --e; - } else { - x.c = xc; - x.e = e; - - // The sign is needed for correct rounding. - x.s = sign; - x = div(x, y, dp, rm, baseOut); - xc = x.c; - r = x.r; - e = x.e; - } - - // xc now represents str converted to baseOut. - - // THe index of the rounding digit. - d = e + dp + 1; - - // The rounding digit: the digit to the right of the digit that may be rounded up. - i = xc[d]; - - // Look at the rounding digits and mode to determine whether to round up. - - k = baseOut / 2; - r = r || d < 0 || xc[d + 1] != null; - - r = rm < 4 ? (i != null || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) - : i > k || i == k &&(rm == 4 || r || rm == 6 && xc[d - 1] & 1 || - rm == (x.s < 0 ? 8 : 7)); - - // If the index of the rounding digit is not greater than zero, or xc represents - // zero, then the result of the base conversion is zero or, if rounding up, a value - // such as 0.00001. - if (d < 1 || !xc[0]) { - - // 1^-dp or 0 - str = r ? toFixedPoint(alphabet.charAt(1), -dp, alphabet.charAt(0)) : alphabet.charAt(0); - } else { - - // Truncate xc to the required number of decimal places. - xc.length = d; - - // Round up? - if (r) { - - // Rounding up may mean the previous digit has to be rounded up and so on. - for (--baseOut; ++xc[--d] > baseOut;) { - xc[d] = 0; - - if (!d) { - ++e; - xc = [1].concat(xc); - } - } - } - - // Determine trailing zeros. - for (k = xc.length; !xc[--k];); - - // E.g. [4, 11, 15] becomes 4bf. - for (i = 0, str = ''; i <= k; str += alphabet.charAt(xc[i++])); - - // Add leading zeros, decimal point and trailing zeros as required. - str = toFixedPoint(str, e, alphabet.charAt(0)); - } - - // The caller will add the sign. - return str; - }; - })(); - - - // Perform division in the specified base. Called by div and convertBase. - div = (function () { - - // Assume non-zero x and k. - function multiply(x, k, base) { - var m, temp, xlo, xhi, - carry = 0, - i = x.length, - klo = k % SQRT_BASE, - khi = k / SQRT_BASE | 0; - - for (x = x.slice(); i--;) { - xlo = x[i] % SQRT_BASE; - xhi = x[i] / SQRT_BASE | 0; - m = khi * xlo + xhi * klo; - temp = klo * xlo + ((m % SQRT_BASE) * SQRT_BASE) + carry; - carry = (temp / base | 0) + (m / SQRT_BASE | 0) + khi * xhi; - x[i] = temp % base; - } - - if (carry) x = [carry].concat(x); - - return x; - } - - function compare(a, b, aL, bL) { - var i, cmp; - - if (aL != bL) { - cmp = aL > bL ? 1 : -1; - } else { - - for (i = cmp = 0; i < aL; i++) { - - if (a[i] != b[i]) { - cmp = a[i] > b[i] ? 1 : -1; - break; - } - } - } - - return cmp; - } - - function subtract(a, b, aL, base) { - var i = 0; - - // Subtract b from a. - for (; aL--;) { - a[aL] -= i; - i = a[aL] < b[aL] ? 1 : 0; - a[aL] = i * base + a[aL] - b[aL]; - } - - // Remove leading zeros. - for (; !a[0] && a.length > 1; a.splice(0, 1)); - } - - // x: dividend, y: divisor. - return function (x, y, dp, rm, base) { - var cmp, e, i, more, n, prod, prodL, q, qc, rem, remL, rem0, xi, xL, yc0, - yL, yz, - s = x.s == y.s ? 1 : -1, - xc = x.c, - yc = y.c; - - // Either NaN, Infinity or 0? - if (!xc || !xc[0] || !yc || !yc[0]) { - - return new BigNumber( - - // Return NaN if either NaN, or both Infinity or 0. - !x.s || !y.s || (xc ? yc && xc[0] == yc[0] : !yc) ? NaN : - - // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0. - xc && xc[0] == 0 || !yc ? s * 0 : s / 0 - ); - } - - q = new BigNumber(s); - qc = q.c = []; - e = x.e - y.e; - s = dp + e + 1; - - if (!base) { - base = BASE; - e = bitFloor(x.e / LOG_BASE) - bitFloor(y.e / LOG_BASE); - s = s / LOG_BASE | 0; - } - - // Result exponent may be one less then the current value of e. - // The coefficients of the BigNumbers from convertBase may have trailing zeros. - for (i = 0; yc[i] == (xc[i] || 0); i++); - - if (yc[i] > (xc[i] || 0)) e--; - - if (s < 0) { - qc.push(1); - more = true; - } else { - xL = xc.length; - yL = yc.length; - i = 0; - s += 2; - - // Normalise xc and yc so highest order digit of yc is >= base / 2. - - n = mathfloor(base / (yc[0] + 1)); - - // Not necessary, but to handle odd bases where yc[0] == (base / 2) - 1. - // if (n > 1 || n++ == 1 && yc[0] < base / 2) { - if (n > 1) { - yc = multiply(yc, n, base); - xc = multiply(xc, n, base); - yL = yc.length; - xL = xc.length; - } - - xi = yL; - rem = xc.slice(0, yL); - remL = rem.length; - - // Add zeros to make remainder as long as divisor. - for (; remL < yL; rem[remL++] = 0); - yz = yc.slice(); - yz = [0].concat(yz); - yc0 = yc[0]; - if (yc[1] >= base / 2) yc0++; - // Not necessary, but to prevent trial digit n > base, when using base 3. - // else if (base == 3 && yc0 == 1) yc0 = 1 + 1e-15; - - do { - n = 0; - - // Compare divisor and remainder. - cmp = compare(yc, rem, yL, remL); - - // If divisor < remainder. - if (cmp < 0) { - - // Calculate trial digit, n. - - rem0 = rem[0]; - if (yL != remL) rem0 = rem0 * base + (rem[1] || 0); - - // n is how many times the divisor goes into the current remainder. - n = mathfloor(rem0 / yc0); - - // Algorithm: - // product = divisor multiplied by trial digit (n). - // Compare product and remainder. - // If product is greater than remainder: - // Subtract divisor from product, decrement trial digit. - // Subtract product from remainder. - // If product was less than remainder at the last compare: - // Compare new remainder and divisor. - // If remainder is greater than divisor: - // Subtract divisor from remainder, increment trial digit. - - if (n > 1) { - - // n may be > base only when base is 3. - if (n >= base) n = base - 1; - - // product = divisor * trial digit. - prod = multiply(yc, n, base); - prodL = prod.length; - remL = rem.length; - - // Compare product and remainder. - // If product > remainder then trial digit n too high. - // n is 1 too high about 5% of the time, and is not known to have - // ever been more than 1 too high. - while (compare(prod, rem, prodL, remL) == 1) { - n--; - - // Subtract divisor from product. - subtract(prod, yL < prodL ? yz : yc, prodL, base); - prodL = prod.length; - cmp = 1; - } - } else { - - // n is 0 or 1, cmp is -1. - // If n is 0, there is no need to compare yc and rem again below, - // so change cmp to 1 to avoid it. - // If n is 1, leave cmp as -1, so yc and rem are compared again. - if (n == 0) { - - // divisor < remainder, so n must be at least 1. - cmp = n = 1; - } - - // product = divisor - prod = yc.slice(); - prodL = prod.length; - } - - if (prodL < remL) prod = [0].concat(prod); - - // Subtract product from remainder. - subtract(rem, prod, remL, base); - remL = rem.length; - - // If product was < remainder. - if (cmp == -1) { - - // Compare divisor and new remainder. - // If divisor < new remainder, subtract divisor from remainder. - // Trial digit n too low. - // n is 1 too low about 5% of the time, and very rarely 2 too low. - while (compare(yc, rem, yL, remL) < 1) { - n++; - - // Subtract divisor from remainder. - subtract(rem, yL < remL ? yz : yc, remL, base); - remL = rem.length; - } - } - } else if (cmp === 0) { - n++; - rem = [0]; - } // else cmp === 1 and n will be 0 - - // Add the next digit, n, to the result array. - qc[i++] = n; - - // Update the remainder. - if (rem[0]) { - rem[remL++] = xc[xi] || 0; - } else { - rem = [xc[xi]]; - remL = 1; - } - } while ((xi++ < xL || rem[0] != null) && s--); - - more = rem[0] != null; - - // Leading zero? - if (!qc[0]) qc.splice(0, 1); - } - - if (base == BASE) { - - // To calculate q.e, first get the number of digits of qc[0]. - for (i = 1, s = qc[0]; s >= 10; s /= 10, i++); - - round(q, dp + (q.e = i + e * LOG_BASE - 1) + 1, rm, more); - - // Caller is convertBase. - } else { - q.e = e; - q.r = +more; - } - - return q; - }; - })(); - - - /* - * Return a string representing the value of BigNumber n in fixed-point or exponential - * notation rounded to the specified decimal places or significant digits. - * - * n: a BigNumber. - * i: the index of the last digit required (i.e. the digit that may be rounded up). - * rm: the rounding mode. - * id: 1 (toExponential) or 2 (toPrecision). - */ - function format(n, i, rm, id) { - var c0, e, ne, len, str; - - if (rm == null) rm = ROUNDING_MODE; - else intCheck(rm, 0, 8); - - if (!n.c) return n.toString(); - - c0 = n.c[0]; - ne = n.e; - - if (i == null) { - str = coeffToString(n.c); - str = id == 1 || id == 2 && (ne <= TO_EXP_NEG || ne >= TO_EXP_POS) - ? toExponential(str, ne) - : toFixedPoint(str, ne, '0'); - } else { - n = round(new BigNumber(n), i, rm); - - // n.e may have changed if the value was rounded up. - e = n.e; - - str = coeffToString(n.c); - len = str.length; - - // toPrecision returns exponential notation if the number of significant digits - // specified is less than the number of digits necessary to represent the integer - // part of the value in fixed-point notation. - - // Exponential notation. - if (id == 1 || id == 2 && (i <= e || e <= TO_EXP_NEG)) { - - // Append zeros? - for (; len < i; str += '0', len++); - str = toExponential(str, e); - - // Fixed-point notation. - } else { - i -= ne; - str = toFixedPoint(str, e, '0'); - - // Append zeros? - if (e + 1 > len) { - if (--i > 0) for (str += '.'; i--; str += '0'); - } else { - i += e - len; - if (i > 0) { - if (e + 1 == len) str += '.'; - for (; i--; str += '0'); - } - } - } - } - - return n.s < 0 && c0 ? '-' + str : str; - } - - - // Handle BigNumber.max and BigNumber.min. - // If any number is NaN, return NaN. - function maxOrMin(args, n) { - var k, y, - i = 1, - x = new BigNumber(args[0]); - - for (; i < args.length; i++) { - y = new BigNumber(args[i]); - if (!y.s || (k = compare(x, y)) === n || k === 0 && x.s === n) { - x = y; - } - } - - return x; - } - - - /* - * Strip trailing zeros, calculate base 10 exponent and check against MIN_EXP and MAX_EXP. - * Called by minus, plus and times. - */ - function normalise(n, c, e) { - var i = 1, - j = c.length; - - // Remove trailing zeros. - for (; !c[--j]; c.pop()); - - // Calculate the base 10 exponent. First get the number of digits of c[0]. - for (j = c[0]; j >= 10; j /= 10, i++); - - // Overflow? - if ((e = i + e * LOG_BASE - 1) > MAX_EXP) { - - // Infinity. - n.c = n.e = null; - - // Underflow? - } else if (e < MIN_EXP) { - - // Zero. - n.c = [n.e = 0]; - } else { - n.e = e; - n.c = c; - } - - return n; - } - - - // Handle values that fail the validity test in BigNumber. - parseNumeric = (function () { - var basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i, - dotAfter = /^([^.]+)\.$/, - dotBefore = /^\.([^.]+)$/, - isInfinityOrNaN = /^-?(Infinity|NaN)$/, - whitespaceOrPlus = /^\s*\+(?=[\w.])|^\s+|\s+$/g; - - return function (x, str, isNum, b) { - var base, - s = isNum ? str : str.replace(whitespaceOrPlus, ''); - - // No exception on ±Infinity or NaN. - if (isInfinityOrNaN.test(s)) { - x.s = isNaN(s) ? null : s < 0 ? -1 : 1; - } else { - if (!isNum) { - - // basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i - s = s.replace(basePrefix, function (m, p1, p2) { - base = (p2 = p2.toLowerCase()) == 'x' ? 16 : p2 == 'b' ? 2 : 8; - return !b || b == base ? p1 : m; - }); - - if (b) { - base = b; - - // E.g. '1.' to '1', '.1' to '0.1' - s = s.replace(dotAfter, '$1').replace(dotBefore, '0.$1'); - } - - if (str != s) return new BigNumber(s, base); - } - - // '[BigNumber Error] Not a number: {n}' - // '[BigNumber Error] Not a base {b} number: {n}' - if (BigNumber.DEBUG) { - throw Error - (bignumberError + 'Not a' + (b ? ' base ' + b : '') + ' number: ' + str); - } - - // NaN - x.s = null; - } - - x.c = x.e = null; - } - })(); - - - /* - * Round x to sd significant digits using rounding mode rm. Check for over/under-flow. - * If r is truthy, it is known that there are more digits after the rounding digit. - */ - function round(x, sd, rm, r) { - var d, i, j, k, n, ni, rd, - xc = x.c, - pows10 = POWS_TEN; - - // if x is not Infinity or NaN... - if (xc) { - - // rd is the rounding digit, i.e. the digit after the digit that may be rounded up. - // n is a base 1e14 number, the value of the element of array x.c containing rd. - // ni is the index of n within x.c. - // d is the number of digits of n. - // i is the index of rd within n including leading zeros. - // j is the actual index of rd within n (if < 0, rd is a leading zero). - out: { - - // Get the number of digits of the first element of xc. - for (d = 1, k = xc[0]; k >= 10; k /= 10, d++); - i = sd - d; - - // If the rounding digit is in the first element of xc... - if (i < 0) { - i += LOG_BASE; - j = sd; - n = xc[ni = 0]; - - // Get the rounding digit at index j of n. - rd = mathfloor(n / pows10[d - j - 1] % 10); - } else { - ni = mathceil((i + 1) / LOG_BASE); - - if (ni >= xc.length) { - - if (r) { - - // Needed by sqrt. - for (; xc.length <= ni; xc.push(0)); - n = rd = 0; - d = 1; - i %= LOG_BASE; - j = i - LOG_BASE + 1; - } else { - break out; - } - } else { - n = k = xc[ni]; - - // Get the number of digits of n. - for (d = 1; k >= 10; k /= 10, d++); - - // Get the index of rd within n. - i %= LOG_BASE; - - // Get the index of rd within n, adjusted for leading zeros. - // The number of leading zeros of n is given by LOG_BASE - d. - j = i - LOG_BASE + d; - - // Get the rounding digit at index j of n. - rd = j < 0 ? 0 : mathfloor(n / pows10[d - j - 1] % 10); - } - } - - r = r || sd < 0 || - - // Are there any non-zero digits after the rounding digit? - // The expression n % pows10[d - j - 1] returns all digits of n to the right - // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714. - xc[ni + 1] != null || (j < 0 ? n : n % pows10[d - j - 1]); - - r = rm < 4 - ? (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) - : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 && - - // Check whether the digit to the left of the rounding digit is odd. - ((i > 0 ? j > 0 ? n / pows10[d - j] : 0 : xc[ni - 1]) % 10) & 1 || - rm == (x.s < 0 ? 8 : 7)); - - if (sd < 1 || !xc[0]) { - xc.length = 0; - - if (r) { - - // Convert sd to decimal places. - sd -= x.e + 1; - - // 1, 0.1, 0.01, 0.001, 0.0001 etc. - xc[0] = pows10[(LOG_BASE - sd % LOG_BASE) % LOG_BASE]; - x.e = -sd || 0; - } else { - - // Zero. - xc[0] = x.e = 0; - } - - return x; - } - - // Remove excess digits. - if (i == 0) { - xc.length = ni; - k = 1; - ni--; - } else { - xc.length = ni + 1; - k = pows10[LOG_BASE - i]; - - // E.g. 56700 becomes 56000 if 7 is the rounding digit. - // j > 0 means i > number of leading zeros of n. - xc[ni] = j > 0 ? mathfloor(n / pows10[d - j] % pows10[j]) * k : 0; - } - - // Round up? - if (r) { - - for (; ;) { - - // If the digit to be rounded up is in the first element of xc... - if (ni == 0) { - - // i will be the length of xc[0] before k is added. - for (i = 1, j = xc[0]; j >= 10; j /= 10, i++); - j = xc[0] += k; - for (k = 1; j >= 10; j /= 10, k++); - - // if i != k the length has increased. - if (i != k) { - x.e++; - if (xc[0] == BASE) xc[0] = 1; - } - - break; - } else { - xc[ni] += k; - if (xc[ni] != BASE) break; - xc[ni--] = 0; - k = 1; - } - } - } - - // Remove trailing zeros. - for (i = xc.length; xc[--i] === 0; xc.pop()); - } - - // Overflow? Infinity. - if (x.e > MAX_EXP) { - x.c = x.e = null; - - // Underflow? Zero. - } else if (x.e < MIN_EXP) { - x.c = [x.e = 0]; - } - } - - return x; - } - - - function valueOf(n) { - var str, - e = n.e; - - if (e === null) return n.toString(); - - str = coeffToString(n.c); - - str = e <= TO_EXP_NEG || e >= TO_EXP_POS - ? toExponential(str, e) - : toFixedPoint(str, e, '0'); - - return n.s < 0 ? '-' + str : str; - } - - - // PROTOTYPE/INSTANCE METHODS - - - /* - * Return a new BigNumber whose value is the absolute value of this BigNumber. - */ - P.absoluteValue = P.abs = function () { - var x = new BigNumber(this); - if (x.s < 0) x.s = 1; - return x; - }; - - - /* - * Return - * 1 if the value of this BigNumber is greater than the value of BigNumber(y, b), - * -1 if the value of this BigNumber is less than the value of BigNumber(y, b), - * 0 if they have the same value, - * or null if the value of either is NaN. - */ - P.comparedTo = function (y, b) { - return compare(this, new BigNumber(y, b)); - }; - - - /* - * If dp is undefined or null or true or false, return the number of decimal places of the - * value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN. - * - * Otherwise, if dp is a number, return a new BigNumber whose value is the value of this - * BigNumber rounded to a maximum of dp decimal places using rounding mode rm, or - * ROUNDING_MODE if rm is omitted. - * - * [dp] {number} Decimal places: integer, 0 to MAX inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' - */ - P.decimalPlaces = P.dp = function (dp, rm) { - var c, n, v, - x = this; - - if (dp != null) { - intCheck(dp, 0, MAX); - if (rm == null) rm = ROUNDING_MODE; - else intCheck(rm, 0, 8); - - return round(new BigNumber(x), dp + x.e + 1, rm); - } - - if (!(c = x.c)) return null; - n = ((v = c.length - 1) - bitFloor(this.e / LOG_BASE)) * LOG_BASE; - - // Subtract the number of trailing zeros of the last number. - if (v = c[v]) for (; v % 10 == 0; v /= 10, n--); - if (n < 0) n = 0; - - return n; - }; - - - /* - * n / 0 = I - * n / N = N - * n / I = 0 - * 0 / n = 0 - * 0 / 0 = N - * 0 / N = N - * 0 / I = 0 - * N / n = N - * N / 0 = N - * N / N = N - * N / I = N - * I / n = I - * I / 0 = I - * I / N = N - * I / I = N - * - * Return a new BigNumber whose value is the value of this BigNumber divided by the value of - * BigNumber(y, b), rounded according to DECIMAL_PLACES and ROUNDING_MODE. - */ - P.dividedBy = P.div = function (y, b) { - return div(this, new BigNumber(y, b), DECIMAL_PLACES, ROUNDING_MODE); - }; - - - /* - * Return a new BigNumber whose value is the integer part of dividing the value of this - * BigNumber by the value of BigNumber(y, b). - */ - P.dividedToIntegerBy = P.idiv = function (y, b) { - return div(this, new BigNumber(y, b), 0, 1); - }; - - - /* - * Return a BigNumber whose value is the value of this BigNumber exponentiated by n. - * - * If m is present, return the result modulo m. - * If n is negative round according to DECIMAL_PLACES and ROUNDING_MODE. - * If POW_PRECISION is non-zero and m is not present, round to POW_PRECISION using ROUNDING_MODE. - * - * The modular power operation works efficiently when x, n, and m are integers, otherwise it - * is equivalent to calculating x.exponentiatedBy(n).modulo(m) with a POW_PRECISION of 0. - * - * n {number|string|BigNumber} The exponent. An integer. - * [m] {number|string|BigNumber} The modulus. - * - * '[BigNumber Error] Exponent not an integer: {n}' - */ - P.exponentiatedBy = P.pow = function (n, m) { - var half, isModExp, i, k, more, nIsBig, nIsNeg, nIsOdd, y, - x = this; - - n = new BigNumber(n); - - // Allow NaN and ±Infinity, but not other non-integers. - if (n.c && !n.isInteger()) { - throw Error - (bignumberError + 'Exponent not an integer: ' + valueOf(n)); - } - - if (m != null) m = new BigNumber(m); - - // Exponent of MAX_SAFE_INTEGER is 15. - nIsBig = n.e > 14; - - // If x is NaN, ±Infinity, ±0 or ±1, or n is ±Infinity, NaN or ±0. - if (!x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !n.c || !n.c[0]) { - - // The sign of the result of pow when x is negative depends on the evenness of n. - // If +n overflows to ±Infinity, the evenness of n would be not be known. - y = new BigNumber(Math.pow(+valueOf(x), nIsBig ? n.s * (2 - isOdd(n)) : +valueOf(n))); - return m ? y.mod(m) : y; - } - - nIsNeg = n.s < 0; - - if (m) { - - // x % m returns NaN if abs(m) is zero, or m is NaN. - if (m.c ? !m.c[0] : !m.s) return new BigNumber(NaN); - - isModExp = !nIsNeg && x.isInteger() && m.isInteger(); - - if (isModExp) x = x.mod(m); - - // Overflow to ±Infinity: >=2**1e10 or >=1.0000024**1e15. - // Underflow to ±0: <=0.79**1e10 or <=0.9999975**1e15. - } else if (n.e > 9 && (x.e > 0 || x.e < -1 || (x.e == 0 - // [1, 240000000] - ? x.c[0] > 1 || nIsBig && x.c[1] >= 24e7 - // [80000000000000] [99999750000000] - : x.c[0] < 8e13 || nIsBig && x.c[0] <= 9999975e7))) { - - // If x is negative and n is odd, k = -0, else k = 0. - k = x.s < 0 && isOdd(n) ? -0 : 0; - - // If x >= 1, k = ±Infinity. - if (x.e > -1) k = 1 / k; - - // If n is negative return ±0, else return ±Infinity. - return new BigNumber(nIsNeg ? 1 / k : k); - - } else if (POW_PRECISION) { - - // Truncating each coefficient array to a length of k after each multiplication - // equates to truncating significant digits to POW_PRECISION + [28, 41], - // i.e. there will be a minimum of 28 guard digits retained. - k = mathceil(POW_PRECISION / LOG_BASE + 2); - } - - if (nIsBig) { - half = new BigNumber(0.5); - if (nIsNeg) n.s = 1; - nIsOdd = isOdd(n); - } else { - i = Math.abs(+valueOf(n)); - nIsOdd = i % 2; - } - - y = new BigNumber(ONE); - - // Performs 54 loop iterations for n of 9007199254740991. - for (; ;) { - - if (nIsOdd) { - y = y.times(x); - if (!y.c) break; - - if (k) { - if (y.c.length > k) y.c.length = k; - } else if (isModExp) { - y = y.mod(m); //y = y.minus(div(y, m, 0, MODULO_MODE).times(m)); - } - } - - if (i) { - i = mathfloor(i / 2); - if (i === 0) break; - nIsOdd = i % 2; - } else { - n = n.times(half); - round(n, n.e + 1, 1); - - if (n.e > 14) { - nIsOdd = isOdd(n); - } else { - i = +valueOf(n); - if (i === 0) break; - nIsOdd = i % 2; - } - } - - x = x.times(x); - - if (k) { - if (x.c && x.c.length > k) x.c.length = k; - } else if (isModExp) { - x = x.mod(m); //x = x.minus(div(x, m, 0, MODULO_MODE).times(m)); - } - } - - if (isModExp) return y; - if (nIsNeg) y = ONE.div(y); - - return m ? y.mod(m) : k ? round(y, POW_PRECISION, ROUNDING_MODE, more) : y; - }; - - - /* - * Return a new BigNumber whose value is the value of this BigNumber rounded to an integer - * using rounding mode rm, or ROUNDING_MODE if rm is omitted. - * - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {rm}' - */ - P.integerValue = function (rm) { - var n = new BigNumber(this); - if (rm == null) rm = ROUNDING_MODE; - else intCheck(rm, 0, 8); - return round(n, n.e + 1, rm); - }; - - - /* - * Return true if the value of this BigNumber is equal to the value of BigNumber(y, b), - * otherwise return false. - */ - P.isEqualTo = P.eq = function (y, b) { - return compare(this, new BigNumber(y, b)) === 0; - }; - - - /* - * Return true if the value of this BigNumber is a finite number, otherwise return false. - */ - P.isFinite = function () { - return !!this.c; - }; - - - /* - * Return true if the value of this BigNumber is greater than the value of BigNumber(y, b), - * otherwise return false. - */ - P.isGreaterThan = P.gt = function (y, b) { - return compare(this, new BigNumber(y, b)) > 0; - }; - - - /* - * Return true if the value of this BigNumber is greater than or equal to the value of - * BigNumber(y, b), otherwise return false. - */ - P.isGreaterThanOrEqualTo = P.gte = function (y, b) { - return (b = compare(this, new BigNumber(y, b))) === 1 || b === 0; - - }; - - - /* - * Return true if the value of this BigNumber is an integer, otherwise return false. - */ - P.isInteger = function () { - return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2; - }; - - - /* - * Return true if the value of this BigNumber is less than the value of BigNumber(y, b), - * otherwise return false. - */ - P.isLessThan = P.lt = function (y, b) { - return compare(this, new BigNumber(y, b)) < 0; - }; - - - /* - * Return true if the value of this BigNumber is less than or equal to the value of - * BigNumber(y, b), otherwise return false. - */ - P.isLessThanOrEqualTo = P.lte = function (y, b) { - return (b = compare(this, new BigNumber(y, b))) === -1 || b === 0; - }; - - - /* - * Return true if the value of this BigNumber is NaN, otherwise return false. - */ - P.isNaN = function () { - return !this.s; - }; - - - /* - * Return true if the value of this BigNumber is negative, otherwise return false. - */ - P.isNegative = function () { - return this.s < 0; - }; - - - /* - * Return true if the value of this BigNumber is positive, otherwise return false. - */ - P.isPositive = function () { - return this.s > 0; - }; - - - /* - * Return true if the value of this BigNumber is 0 or -0, otherwise return false. - */ - P.isZero = function () { - return !!this.c && this.c[0] == 0; - }; - - - /* - * n - 0 = n - * n - N = N - * n - I = -I - * 0 - n = -n - * 0 - 0 = 0 - * 0 - N = N - * 0 - I = -I - * N - n = N - * N - 0 = N - * N - N = N - * N - I = N - * I - n = I - * I - 0 = I - * I - N = N - * I - I = N - * - * Return a new BigNumber whose value is the value of this BigNumber minus the value of - * BigNumber(y, b). - */ - P.minus = function (y, b) { - var i, j, t, xLTy, - x = this, - a = x.s; - - y = new BigNumber(y, b); - b = y.s; - - // Either NaN? - if (!a || !b) return new BigNumber(NaN); - - // Signs differ? - if (a != b) { - y.s = -b; - return x.plus(y); - } - - var xe = x.e / LOG_BASE, - ye = y.e / LOG_BASE, - xc = x.c, - yc = y.c; - - if (!xe || !ye) { - - // Either Infinity? - if (!xc || !yc) return xc ? (y.s = -b, y) : new BigNumber(yc ? x : NaN); - - // Either zero? - if (!xc[0] || !yc[0]) { - - // Return y if y is non-zero, x if x is non-zero, or zero if both are zero. - return yc[0] ? (y.s = -b, y) : new BigNumber(xc[0] ? x : - - // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity - ROUNDING_MODE == 3 ? -0 : 0); - } - } - - xe = bitFloor(xe); - ye = bitFloor(ye); - xc = xc.slice(); - - // Determine which is the bigger number. - if (a = xe - ye) { - - if (xLTy = a < 0) { - a = -a; - t = xc; - } else { - ye = xe; - t = yc; - } - - t.reverse(); - - // Prepend zeros to equalise exponents. - for (b = a; b--; t.push(0)); - t.reverse(); - } else { - - // Exponents equal. Check digit by digit. - j = (xLTy = (a = xc.length) < (b = yc.length)) ? a : b; - - for (a = b = 0; b < j; b++) { - - if (xc[b] != yc[b]) { - xLTy = xc[b] < yc[b]; - break; - } - } - } - - // x < y? Point xc to the array of the bigger number. - if (xLTy) { - t = xc; - xc = yc; - yc = t; - y.s = -y.s; - } - - b = (j = yc.length) - (i = xc.length); - - // Append zeros to xc if shorter. - // No need to add zeros to yc if shorter as subtract only needs to start at yc.length. - if (b > 0) for (; b--; xc[i++] = 0); - b = BASE - 1; - - // Subtract yc from xc. - for (; j > a;) { - - if (xc[--j] < yc[j]) { - for (i = j; i && !xc[--i]; xc[i] = b); - --xc[i]; - xc[j] += BASE; - } - - xc[j] -= yc[j]; - } - - // Remove leading zeros and adjust exponent accordingly. - for (; xc[0] == 0; xc.splice(0, 1), --ye); - - // Zero? - if (!xc[0]) { - - // Following IEEE 754 (2008) 6.3, - // n - n = +0 but n - n = -0 when rounding towards -Infinity. - y.s = ROUNDING_MODE == 3 ? -1 : 1; - y.c = [y.e = 0]; - return y; - } - - // No need to check for Infinity as +x - +y != Infinity && -x - -y != Infinity - // for finite x and y. - return normalise(y, xc, ye); - }; - - - /* - * n % 0 = N - * n % N = N - * n % I = n - * 0 % n = 0 - * -0 % n = -0 - * 0 % 0 = N - * 0 % N = N - * 0 % I = 0 - * N % n = N - * N % 0 = N - * N % N = N - * N % I = N - * I % n = N - * I % 0 = N - * I % N = N - * I % I = N - * - * Return a new BigNumber whose value is the value of this BigNumber modulo the value of - * BigNumber(y, b). The result depends on the value of MODULO_MODE. - */ - P.modulo = P.mod = function (y, b) { - var q, s, - x = this; - - y = new BigNumber(y, b); - - // Return NaN if x is Infinity or NaN, or y is NaN or zero. - if (!x.c || !y.s || y.c && !y.c[0]) { - return new BigNumber(NaN); - - // Return x if y is Infinity or x is zero. - } else if (!y.c || x.c && !x.c[0]) { - return new BigNumber(x); - } - - if (MODULO_MODE == 9) { - - // Euclidian division: q = sign(y) * floor(x / abs(y)) - // r = x - qy where 0 <= r < abs(y) - s = y.s; - y.s = 1; - q = div(x, y, 0, 3); - y.s = s; - q.s *= s; - } else { - q = div(x, y, 0, MODULO_MODE); - } - - y = x.minus(q.times(y)); - - // To match JavaScript %, ensure sign of zero is sign of dividend. - if (!y.c[0] && MODULO_MODE == 1) y.s = x.s; - - return y; - }; - - - /* - * n * 0 = 0 - * n * N = N - * n * I = I - * 0 * n = 0 - * 0 * 0 = 0 - * 0 * N = N - * 0 * I = N - * N * n = N - * N * 0 = N - * N * N = N - * N * I = N - * I * n = I - * I * 0 = N - * I * N = N - * I * I = I - * - * Return a new BigNumber whose value is the value of this BigNumber multiplied by the value - * of BigNumber(y, b). - */ - P.multipliedBy = P.times = function (y, b) { - var c, e, i, j, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc, - base, sqrtBase, - x = this, - xc = x.c, - yc = (y = new BigNumber(y, b)).c; - - // Either NaN, ±Infinity or ±0? - if (!xc || !yc || !xc[0] || !yc[0]) { + const traits = member.getMergedTraits(); + const suffix = this.getKey("member", traits.xmlName, traits.ec2QueryName); + const key = flat ? `${prefix}${i}` : `${prefix}${suffix}.${i}`; + this.write(member, item, key); + ++i; + } + } + } + } + else if (ns.isMapSchema()) { + if (value && typeof value === "object") { + const keySchema = ns.getKeySchema(); + const memberSchema = ns.getValueSchema(); + const flat = ns.getMergedTraits().xmlFlattened; + let i = 1; + for (const k in value) { + const v = value[k]; + if (v == null) { + continue; + } + const keyTraits = keySchema.getMergedTraits(); + const keySuffix = this.getKey("key", keyTraits.xmlName, keyTraits.ec2QueryName); + const key = flat ? `${prefix}${i}.${keySuffix}` : `${prefix}entry.${i}.${keySuffix}`; + const valTraits = memberSchema.getMergedTraits(); + const valueSuffix = this.getKey("value", valTraits.xmlName, valTraits.ec2QueryName); + const valueKey = flat ? `${prefix}${i}.${valueSuffix}` : `${prefix}entry.${i}.${valueSuffix}`; + this.write(keySchema, k, key); + this.write(memberSchema, v, valueKey); + ++i; + } + } + } + else if (ns.isStructSchema()) { + if (value && typeof value === "object") { + let didWriteMember = false; + for (const [memberName, member] of ns.structIterator()) { + if (value[memberName] == null && !member.isIdempotencyToken()) { + continue; + } + const traits = member.getMergedTraits(); + const suffix = this.getKey(memberName, traits.xmlName, traits.ec2QueryName, "struct"); + const key = `${prefix}${suffix}`; + this.write(member, value[memberName], key); + didWriteMember = true; + } + if (!didWriteMember && ns.isUnionSchema()) { + const { $unknown } = value; + if (Array.isArray($unknown)) { + const [k, v] = $unknown; + const key = `${prefix}${k}`; + this.write(15, v, key); + } + } + } + } + else if (ns.isUnitSchema()) ; + else { + throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${ns.getName(true)}`); + } + } + flush() { + if (this.buffer === undefined) { + throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer."); + } + const str = this.buffer; + delete this.buffer; + return str; + } + getKey(memberName, xmlName, ec2QueryName, keySource) { + const { ec2, capitalizeKeys } = this.settings; + if (ec2 && ec2QueryName) { + return ec2QueryName; + } + const key = xmlName ?? memberName; + if (capitalizeKeys && keySource === "struct") { + return key[0].toUpperCase() + key.slice(1); + } + return key; + } + writeKey(key) { + if (key.endsWith(".")) { + key = key.slice(0, key.length - 1); + } + this.buffer += `&${extendedEncodeURIComponent(key)}=`; + } + writeValue(value) { + this.buffer += extendedEncodeURIComponent(value); + } +} + +class AwsQueryProtocol extends RpcProtocol { + options; + serializer; + deserializer; + mixin = new ProtocolLib(); + constructor(options) { + super({ + defaultNamespace: options.defaultNamespace, + errorTypeRegistries: options.errorTypeRegistries, + }); + this.options = options; + const settings = { + timestampFormat: { + useTrait: true, + default: 5, + }, + httpBindings: false, + xmlNamespace: options.xmlNamespace, + serviceNamespace: options.defaultNamespace, + serializeEmptyLists: true, + }; + this.serializer = new QueryShapeSerializer(settings); + this.deserializer = new XmlShapeDeserializer(settings); + } + getShapeId() { + return "aws.protocols#awsQuery"; + } + setSerdeContext(serdeContext) { + this.serializer.setSerdeContext(serdeContext); + this.deserializer.setSerdeContext(serdeContext); + } + getPayloadCodec() { + throw new Error("AWSQuery protocol has no payload codec."); + } + async serializeRequest(operationSchema, input, context) { + const request = await super.serializeRequest(operationSchema, input, context); + if (!request.path.endsWith("/")) { + request.path += "/"; + } + request.headers["content-type"] = "application/x-www-form-urlencoded"; + if (deref(operationSchema.input) === "unit" || !request.body) { + request.body = ""; + } + const action = operationSchema.name.split("#")[1] ?? operationSchema.name; + request.body = `Action=${action}&Version=${this.options.version}` + request.body; + if (request.body.endsWith("&")) { + request.body = request.body.slice(-1); + } + return request; + } + async deserializeResponse(operationSchema, context, response) { + const deserializer = this.deserializer; + const ns = NormalizedSchema.of(operationSchema.output); + const dataObject = {}; + if (response.statusCode >= 300) { + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + Object.assign(dataObject, await deserializer.read(15, bytes)); + } + await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response)); + } + for (const header in response.headers) { + const value = response.headers[header]; + delete response.headers[header]; + response.headers[header.toLowerCase()] = value; + } + const shortName = operationSchema.name.split("#")[1] ?? operationSchema.name; + const awsQueryResultKey = ns.isStructSchema() && this.useNestedResult() ? shortName + "Result" : undefined; + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey)); + } + dataObject.$metadata = this.deserializeMetadata(response); + return dataObject; + } + useNestedResult() { + return true; + } + async handleError(operationSchema, context, response, dataObject, metadata) { + const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown"; + this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace); + const errorData = this.loadQueryError(dataObject) ?? {}; + const message = this.loadQueryErrorMessage(dataObject); + errorData.message = message; + errorData.Error = { + Type: errorData.Type, + Code: errorData.Code, + Message: message, + }; + const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, this.mixin.findQueryCompatibleError); + const ns = NormalizedSchema.of(errorSchema); + const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error; + const exception = new ErrorCtor({}); + const output = { + Type: errorData.Error.Type, + Code: errorData.Error.Code, + Error: errorData.Error, + }; + for (const [name, member] of ns.structIterator()) { + const target = member.getMergedTraits().xmlName ?? name; + const value = errorData[target] ?? dataObject[target]; + output[name] = this.deserializer.readSchema(member, value); + } + throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, { + $fault: ns.getMergedTraits().error, + message, + }, output), dataObject); + } + loadQueryErrorCode(output, data) { + const code = (data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error)?.Code; + if (code !== undefined) { + return code; + } + if (output.statusCode == 404) { + return "NotFound"; + } + } + loadQueryError(data) { + return data.Errors?.[0]?.Error ?? data.Errors?.Error ?? data.Error; + } + loadQueryErrorMessage(data) { + const errorData = this.loadQueryError(data); + return errorData?.message ?? errorData?.Message ?? data.message ?? data.Message ?? "Unknown"; + } + getDefaultContentType() { + return "application/x-www-form-urlencoded"; + } +} + +class AwsEc2QueryProtocol extends AwsQueryProtocol { + options; + constructor(options) { + super(options); + this.options = options; + const ec2Settings = { + capitalizeKeys: true, + flattenLists: true, + serializeEmptyLists: false, + ec2: true, + }; + Object.assign(this.serializer.settings, ec2Settings); + } + getShapeId() { + return "aws.protocols#ec2Query"; + } + useNestedResult() { + return false; + } +} + +const parseXmlBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + let parsedObj; + try { + parsedObj = parseXML(encoded); + } + catch (e) { + if (e && typeof e === "object") { + Object.defineProperty(e, "$responseBodyText", { + value: encoded, + }); + } + throw e; + } + const textNodeName = "#text"; + const key = Object.keys(parsedObj)[0]; + const parsedObjToReturn = parsedObj[key]; + if (parsedObjToReturn[textNodeName]) { + parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; + delete parsedObjToReturn[textNodeName]; + } + return getValueFromTextNode(parsedObjToReturn); + } + return {}; +}); +const parseXmlErrorBody = async (errorBody, context) => { + const value = await parseXmlBody(errorBody, context); + if (value.Error) { + value.Error.message = value.Error.message ?? value.Error.Message; + } + return value; +}; +const loadRestXmlErrorCode = (output, data) => { + if (data?.Error?.Code !== undefined) { + return data.Error.Code; + } + if (data?.Code !== undefined) { + return data.Code; + } + if (output.statusCode == 404) { + return "NotFound"; + } +}; + +class XmlShapeSerializer extends SerdeContextConfig { + settings; + stringBuffer; + byteBuffer; + buffer; + constructor(settings) { + super(); + this.settings = settings; + } + write(schema, value) { + const ns = NormalizedSchema.of(schema); + if (ns.isStringSchema() && typeof value === "string") { + this.stringBuffer = value; + } + else if (ns.isBlobSchema()) { + this.byteBuffer = + "byteLength" in value + ? value + : (this.serdeContext?.base64Decoder ?? fromBase64)(value); + } + else { + this.buffer = this.writeStruct(ns, value, undefined); + const traits = ns.getMergedTraits(); + if (traits.httpPayload && !traits.xmlName) { + this.buffer.withName(ns.getName()); + } + } + } + flush() { + if (this.byteBuffer !== undefined) { + const bytes = this.byteBuffer; + delete this.byteBuffer; + return bytes; + } + if (this.stringBuffer !== undefined) { + const str = this.stringBuffer; + delete this.stringBuffer; + return str; + } + const buffer = this.buffer; + if (this.settings.xmlNamespace) { + if (!buffer?.attributes?.["xmlns"]) { + buffer.addAttribute("xmlns", this.settings.xmlNamespace); + } + } + delete this.buffer; + return buffer.toString(); + } + writeStruct(ns, value, parentXmlns) { + const traits = ns.getMergedTraits(); + const name = ns.isMemberSchema() && !traits.httpPayload + ? (ns.getMemberTraits().xmlName ?? ns.getMemberName()) + : (traits.xmlName ?? ns.getName()); + if (!name || !ns.isStructSchema()) { + throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${ns.getName(true)}.`); + } + const structXmlNode = XmlNode.of(name); + const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns); + for (const [memberName, memberSchema] of ns.structIterator()) { + const val = value[memberName]; + if (val != null || memberSchema.isIdempotencyToken()) { + if (memberSchema.getMergedTraits().xmlAttribute) { + structXmlNode.addAttribute(memberSchema.getMergedTraits().xmlName ?? memberName, this.writeSimple(memberSchema, val)); + continue; + } + if (memberSchema.isListSchema()) { + this.writeList(memberSchema, val, structXmlNode, xmlns); + } + else if (memberSchema.isMapSchema()) { + this.writeMap(memberSchema, val, structXmlNode, xmlns); + } + else if (memberSchema.isStructSchema()) { + structXmlNode.addChildNode(this.writeStruct(memberSchema, val, xmlns)); + } + else { + const memberNode = XmlNode.of(memberSchema.getMergedTraits().xmlName ?? memberSchema.getMemberName()); + this.writeSimpleInto(memberSchema, val, memberNode, xmlns); + structXmlNode.addChildNode(memberNode); + } + } + } + const { $unknown } = value; + if ($unknown && ns.isUnionSchema() && Array.isArray($unknown) && Object.keys(value).length === 1) { + const [k, v] = $unknown; + const node = XmlNode.of(k); + if (typeof v !== "string") { + if (value instanceof XmlNode || value instanceof XmlText) { + structXmlNode.addChildNode(value); + } + else { + throw new Error(`@aws-sdk - $unknown union member in XML requires ` + + `value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`); + } + } + this.writeSimpleInto(0, v, node, xmlns); + structXmlNode.addChildNode(node); + } + if (xmlns) { + structXmlNode.addAttribute(xmlnsAttr, xmlns); + } + return structXmlNode; + } + writeList(listMember, array, container, parentXmlns) { + if (!listMember.isMemberSchema()) { + throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${listMember.getName(true)}`); + } + const listTraits = listMember.getMergedTraits(); + const listValueSchema = listMember.getValueSchema(); + const listValueTraits = listValueSchema.getMergedTraits(); + const sparse = !!listValueTraits.sparse; + const flat = !!listTraits.xmlFlattened; + const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(listMember, parentXmlns); + const writeItem = (container, value) => { + if (listValueSchema.isListSchema()) { + this.writeList(listValueSchema, Array.isArray(value) ? value : [value], container, xmlns); + } + else if (listValueSchema.isMapSchema()) { + this.writeMap(listValueSchema, value, container, xmlns); + } + else if (listValueSchema.isStructSchema()) { + const struct = this.writeStruct(listValueSchema, value, xmlns); + container.addChildNode(struct.withName(flat ? (listTraits.xmlName ?? listMember.getMemberName()) : (listValueTraits.xmlName ?? "member"))); + } + else { + const listItemNode = XmlNode.of(flat ? (listTraits.xmlName ?? listMember.getMemberName()) : (listValueTraits.xmlName ?? "member")); + this.writeSimpleInto(listValueSchema, value, listItemNode, xmlns); + container.addChildNode(listItemNode); + } + }; + if (flat) { + for (const value of array) { + if (sparse || value != null) { + writeItem(container, value); + } + } + } + else { + const listNode = XmlNode.of(listTraits.xmlName ?? listMember.getMemberName()); + if (xmlns) { + listNode.addAttribute(xmlnsAttr, xmlns); + } + for (const value of array) { + if (sparse || value != null) { + writeItem(listNode, value); + } + } + container.addChildNode(listNode); + } + } + writeMap(mapMember, map, container, parentXmlns, containerIsMap = false) { + if (!mapMember.isMemberSchema()) { + throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${mapMember.getName(true)}`); + } + const mapTraits = mapMember.getMergedTraits(); + const mapKeySchema = mapMember.getKeySchema(); + const mapKeyTraits = mapKeySchema.getMergedTraits(); + const keyTag = mapKeyTraits.xmlName ?? "key"; + const mapValueSchema = mapMember.getValueSchema(); + const mapValueTraits = mapValueSchema.getMergedTraits(); + const valueTag = mapValueTraits.xmlName ?? "value"; + const sparse = !!mapValueTraits.sparse; + const flat = !!mapTraits.xmlFlattened; + const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(mapMember, parentXmlns); + const addKeyValue = (entry, key, val) => { + const keyNode = XmlNode.of(keyTag, key); + const [keyXmlnsAttr, keyXmlns] = this.getXmlnsAttribute(mapKeySchema, xmlns); + if (keyXmlns) { + keyNode.addAttribute(keyXmlnsAttr, keyXmlns); + } + entry.addChildNode(keyNode); + let valueNode = XmlNode.of(valueTag); + if (mapValueSchema.isListSchema()) { + this.writeList(mapValueSchema, val, valueNode, xmlns); + } + else if (mapValueSchema.isMapSchema()) { + this.writeMap(mapValueSchema, val, valueNode, xmlns, true); + } + else if (mapValueSchema.isStructSchema()) { + valueNode = this.writeStruct(mapValueSchema, val, xmlns); + } + else { + this.writeSimpleInto(mapValueSchema, val, valueNode, xmlns); + } + entry.addChildNode(valueNode); + }; + if (flat) { + for (const key in map) { + const val = map[key]; + if (sparse || val != null) { + const entry = XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName()); + addKeyValue(entry, key, val); + container.addChildNode(entry); + } + } + } + else { + let mapNode; + if (!containerIsMap) { + mapNode = XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName()); + if (xmlns) { + mapNode.addAttribute(xmlnsAttr, xmlns); + } + container.addChildNode(mapNode); + } + for (const key in map) { + const val = map[key]; + if (sparse || val != null) { + const entry = XmlNode.of("entry"); + addKeyValue(entry, key, val); + (containerIsMap ? container : mapNode).addChildNode(entry); + } + } + } + } + writeSimple(_schema, value) { + if (null === value) { + throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value."); + } + const ns = NormalizedSchema.of(_schema); + let nodeContents = null; + if (value && typeof value === "object") { + if (ns.isBlobSchema()) { + nodeContents = (this.serdeContext?.base64Encoder ?? toBase64)(value); + } + else if (ns.isTimestampSchema() && value instanceof Date) { + const format = determineTimestampFormat(ns, this.settings); + switch (format) { + case 5: + nodeContents = value.toISOString().replace(".000Z", "Z"); + break; + case 6: + nodeContents = dateToUtcString(value); + break; + case 7: + nodeContents = String(value.getTime() / 1000); + break; + default: + console.warn("Missing timestamp format, using http date", value); + nodeContents = dateToUtcString(value); + break; + } + } + else if (ns.isBigDecimalSchema() && value) { + if (value instanceof NumericValue) { + return value.string; + } + return String(value); + } + else if (ns.isMapSchema() || ns.isListSchema()) { + throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."); + } + else { + throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${ns.getName(true)}`); + } + } + if (ns.isBooleanSchema() || ns.isNumericSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) { + nodeContents = String(value); + } + if (ns.isStringSchema()) { + if (value === undefined && ns.isIdempotencyToken()) { + nodeContents = generateIdempotencyToken(); + } + else { + nodeContents = String(value); + } + } + if (nodeContents === null) { + throw new Error(`Unhandled schema-value pair ${ns.getName(true)}=${value}`); + } + return nodeContents; + } + writeSimpleInto(_schema, value, into, parentXmlns) { + const nodeContents = this.writeSimple(_schema, value); + const ns = NormalizedSchema.of(_schema); + const content = new XmlText(nodeContents); + const [xmlnsAttr, xmlns] = this.getXmlnsAttribute(ns, parentXmlns); + if (xmlns) { + into.addAttribute(xmlnsAttr, xmlns); + } + into.addChildNode(content); + } + getXmlnsAttribute(ns, parentXmlns) { + const traits = ns.getMergedTraits(); + const [prefix, xmlns] = traits.xmlNamespace ?? []; + if (xmlns && xmlns !== parentXmlns) { + return [prefix ? `xmlns:${prefix}` : "xmlns", xmlns]; + } + return [void 0, void 0]; + } +} + +class XmlCodec extends SerdeContextConfig { + settings; + constructor(settings) { + super(); + this.settings = settings; + } + createSerializer() { + const serializer = new XmlShapeSerializer(this.settings); + serializer.setSerdeContext(this.serdeContext); + return serializer; + } + createDeserializer() { + const deserializer = new XmlShapeDeserializer(this.settings); + deserializer.setSerdeContext(this.serdeContext); + return deserializer; + } +} + +class AwsRestXmlProtocol extends HttpBindingProtocol { + codec; + serializer; + deserializer; + mixin = new ProtocolLib(); + constructor(options) { + super(options); + const settings = { + timestampFormat: { + useTrait: true, + default: 5, + }, + httpBindings: true, + xmlNamespace: options.xmlNamespace, + serviceNamespace: options.defaultNamespace, + }; + this.codec = new XmlCodec(settings); + this.serializer = new HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings); + this.deserializer = new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings); + } + getPayloadCodec() { + return this.codec; + } + getShapeId() { + return "aws.protocols#restXml"; + } + async serializeRequest(operationSchema, input, context) { + const request = await super.serializeRequest(operationSchema, input, context); + const inputSchema = NormalizedSchema.of(operationSchema.input); + if (!request.headers["content-type"]) { + const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema); + if (contentType) { + request.headers["content-type"] = contentType; + } + } + if (typeof request.body === "string" && + request.headers["content-type"] === this.getDefaultContentType() && + !request.body.startsWith("' + request.body; + } + return request; + } + async deserializeResponse(operationSchema, context, response) { + return super.deserializeResponse(operationSchema, context, response); + } + async handleError(operationSchema, context, response, dataObject, metadata) { + const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown"; + this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace); + if (dataObject.Error && typeof dataObject.Error === "object") { + for (const key of Object.keys(dataObject.Error)) { + dataObject[key] = dataObject.Error[key]; + if (key.toLowerCase() === "message") { + dataObject.message = dataObject.Error[key]; + } + } + } + if (dataObject.RequestId && !metadata.requestId) { + metadata.requestId = dataObject.RequestId; + } + const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata); + const ns = NormalizedSchema.of(errorSchema); + const message = dataObject.Error?.message ?? + dataObject.Error?.Message ?? + dataObject.message ?? + dataObject.Message ?? + "UnknownError"; + const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error; + const exception = new ErrorCtor({}); + await this.deserializeHttpMessage(errorSchema, context, response, dataObject); + const output = {}; + const errorDeserializer = this.codec.createDeserializer(); + for (const [name, member] of ns.structIterator()) { + const target = member.getMergedTraits().xmlName ?? name; + const value = dataObject.Error?.[target] ?? dataObject[target]; + output[name] = errorDeserializer.readSchema(member, value); + } + throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, { + $fault: ns.getMergedTraits().error, + message, + }, output), dataObject); + } + getDefaultContentType() { + return "application/xml"; + } + hasUnstructuredPayloadBinding(ns) { + for (const [, member] of ns.structIterator()) { + if (member.getMergedTraits().httpPayload) { + return !(member.isStructSchema() || member.isMapSchema() || member.isListSchema()); + } + } + return false; + } +} + +exports.AwsEc2QueryProtocol = AwsEc2QueryProtocol; +exports.AwsJson1_0Protocol = AwsJson1_0Protocol; +exports.AwsJson1_1Protocol = AwsJson1_1Protocol; +exports.AwsJsonRpcProtocol = AwsJsonRpcProtocol; +exports.AwsQueryProtocol = AwsQueryProtocol; +exports.AwsRestJsonProtocol = AwsRestJsonProtocol; +exports.AwsRestXmlProtocol = AwsRestXmlProtocol; +exports.AwsSmithyRpcV2CborProtocol = AwsSmithyRpcV2CborProtocol; +exports.JsonCodec = JsonCodec; +exports.JsonShapeDeserializer = JsonShapeDeserializer; +exports.JsonShapeSerializer = JsonShapeSerializer; +exports.QueryShapeSerializer = QueryShapeSerializer; +exports.XmlCodec = XmlCodec; +exports.XmlShapeDeserializer = XmlShapeDeserializer; +exports.XmlShapeSerializer = XmlShapeSerializer; +exports._toBool = _toBool; +exports._toNum = _toNum; +exports._toStr = _toStr; +exports.awsExpectUnion = awsExpectUnion; +exports.loadJsonRpcErrorCode = loadJsonRpcErrorCode; +exports.loadRestJsonErrorCode = loadRestJsonErrorCode; +exports.loadRestXmlErrorCode = loadRestXmlErrorCode; +exports.parseJsonBody = parseJsonBody; +exports.parseJsonErrorBody = parseJsonErrorBody; +exports.parseXmlBody = parseXmlBody; +exports.parseXmlErrorBody = parseXmlErrorBody; + + +/***/ }), + +/***/ 45081: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { CredentialsProviderError } = __nccwpck_require__(47291); + +function resolveLogins(logins) { + return Promise.all(Object.keys(logins).reduce((arr, name) => { + const tokenOrProvider = logins[name]; + if (typeof tokenOrProvider === "string") { + arr.push([name, tokenOrProvider]); + } + else { + arr.push(tokenOrProvider().then((token) => [name, token])); + } + return arr; + }, [])).then((resolvedPairs) => resolvedPairs.reduce((logins, [key, value]) => { + logins[key] = value; + return logins; + }, {})); +} + +function fromCognitoIdentity(parameters) { + return async (awsIdentityProperties) => { + parameters.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity"); + const { GetCredentialsForIdentityCommand, CognitoIdentityClient } = __nccwpck_require__(80361); + const fromConfigs = (property) => parameters.clientConfig?.[property] ?? + parameters.parentClientConfig?.[property] ?? + awsIdentityProperties?.callerClientConfig?.[property]; + const { Credentials: { AccessKeyId = throwOnMissingAccessKeyId(parameters.logger), Expiration, SecretKey = throwOnMissingSecretKey(parameters.logger), SessionToken, } = throwOnMissingCredentials(parameters.logger), } = await (parameters.client ?? + new CognitoIdentityClient(Object.assign({}, parameters.clientConfig ?? {}, { + region: fromConfigs("region"), + profile: fromConfigs("profile"), + userAgentAppId: fromConfigs("userAgentAppId"), + }))).send(new GetCredentialsForIdentityCommand({ + CustomRoleArn: parameters.customRoleArn, + IdentityId: parameters.identityId, + Logins: parameters.logins ? await resolveLogins(parameters.logins) : undefined, + })); + return { + identityId: parameters.identityId, + accessKeyId: AccessKeyId, + secretAccessKey: SecretKey, + sessionToken: SessionToken, + expiration: Expiration, + }; + }; +} +function throwOnMissingAccessKeyId(logger) { + throw new CredentialsProviderError("Response from Amazon Cognito contained no access key ID", { logger }); +} +function throwOnMissingCredentials(logger) { + throw new CredentialsProviderError("Response from Amazon Cognito contained no credentials", { logger }); +} +function throwOnMissingSecretKey(logger) { + throw new CredentialsProviderError("Response from Amazon Cognito contained no secret key", { logger }); +} + +const STORE_NAME = "IdentityIds"; +class IndexedDbStorage { + dbName; + constructor(dbName = "aws:cognito-identity-ids") { + this.dbName = dbName; + } + getItem(key) { + return this.withObjectStore("readonly", (store) => { + const req = store.get(key); + return new Promise((resolve) => { + req.onerror = () => resolve(null); + req.onsuccess = () => resolve(req.result ? req.result.value : null); + }); + }).catch(() => null); + } + removeItem(key) { + return this.withObjectStore("readwrite", (store) => { + const req = store.delete(key); + return new Promise((resolve, reject) => { + req.onerror = () => reject(req.error); + req.onsuccess = () => resolve(); + }); + }); + } + setItem(id, value) { + return this.withObjectStore("readwrite", (store) => { + const req = store.put({ id, value }); + return new Promise((resolve, reject) => { + req.onerror = () => reject(req.error); + req.onsuccess = () => resolve(); + }); + }); + } + getDb() { + const openDbRequest = self.indexedDB.open(this.dbName, 1); + return new Promise((resolve, reject) => { + openDbRequest.onsuccess = () => { + resolve(openDbRequest.result); + }; + openDbRequest.onerror = () => { + reject(openDbRequest.error); + }; + openDbRequest.onblocked = () => { + reject(new Error("Unable to access DB")); + }; + openDbRequest.onupgradeneeded = () => { + const db = openDbRequest.result; + db.onerror = () => { + reject(new Error("Failed to create object store")); + }; + db.createObjectStore(STORE_NAME, { keyPath: "id" }); + }; + }); + } + withObjectStore(mode, action) { + return this.getDb().then((db) => { + const tx = db.transaction(STORE_NAME, mode); + tx.oncomplete = () => db.close(); + return new Promise((resolve, reject) => { + tx.onerror = () => reject(tx.error); + resolve(action(tx.objectStore(STORE_NAME))); + }).catch((err) => { + db.close(); + throw err; + }); + }); + } +} + +class InMemoryStorage { + store; + constructor(store = {}) { + this.store = store; + } + getItem(key) { + if (key in this.store) { + return this.store[key]; + } + return null; + } + removeItem(key) { + delete this.store[key]; + } + setItem(key, value) { + this.store[key] = value; + } +} + +const inMemoryStorage = new InMemoryStorage(); +function localStorage() { + if (typeof self === "object" && self.indexedDB) { + return new IndexedDbStorage(); + } + if (typeof window === "object" && window.localStorage) { + return window.localStorage; + } + return inMemoryStorage; +} + +function fromCognitoIdentityPool({ accountId, cache = localStorage(), client, clientConfig, customRoleArn, identityPoolId, logins, userIdentifier = !logins || Object.keys(logins).length === 0 ? "ANONYMOUS" : undefined, logger, parentClientConfig, }) { + logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity"); + const cacheKey = userIdentifier + ? `aws:cognito-identity-credentials:${identityPoolId}:${userIdentifier}` + : undefined; + let provider = async (awsIdentityProperties) => { + const { GetIdCommand, CognitoIdentityClient } = __nccwpck_require__(80361); + const fromConfigs = (property) => clientConfig?.[property] ?? + parentClientConfig?.[property] ?? + awsIdentityProperties?.callerClientConfig?.[property]; + const _client = client ?? + new CognitoIdentityClient(Object.assign({}, clientConfig ?? {}, { + region: fromConfigs("region"), + profile: fromConfigs("profile"), + userAgentAppId: fromConfigs("userAgentAppId"), + })); + let identityId = (cacheKey && (await cache.getItem(cacheKey))); + if (!identityId) { + const { IdentityId = throwOnMissingId(logger) } = await _client.send(new GetIdCommand({ + AccountId: accountId, + IdentityPoolId: identityPoolId, + Logins: logins ? await resolveLogins(logins) : undefined, + })); + identityId = IdentityId; + if (cacheKey) { + Promise.resolve(cache.setItem(cacheKey, identityId)).catch(() => { }); + } + } + provider = fromCognitoIdentity({ + client: _client, + customRoleArn, + logins, + identityId, + }); + return provider(awsIdentityProperties); + }; + return (awsIdentityProperties) => provider(awsIdentityProperties).catch(async (err) => { + if (cacheKey) { + Promise.resolve(cache.removeItem(cacheKey)).catch(() => { }); + } + throw err; + }); +} +function throwOnMissingId(logger) { + throw new CredentialsProviderError("Response from Amazon Cognito contained no identity ID", { logger }); +} + +exports.fromCognitoIdentity = fromCognitoIdentity; +exports.fromCognitoIdentityPool = fromCognitoIdentityPool; + + +/***/ }), + +/***/ 80361: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { CognitoIdentityClient, GetCredentialsForIdentityCommand, GetIdCommand } = __nccwpck_require__(20364); +exports.CognitoIdentityClient = CognitoIdentityClient; +exports.GetCredentialsForIdentityCommand = GetCredentialsForIdentityCommand; +exports.GetIdCommand = GetIdCommand; + + +/***/ }), + +/***/ 55606: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { setCredentialFeature } = __nccwpck_require__(5152); +const { CredentialsProviderError } = __nccwpck_require__(47291); + +const ENV_KEY = "AWS_ACCESS_KEY_ID"; +const ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; +const ENV_SESSION = "AWS_SESSION_TOKEN"; +const ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION"; +const ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE"; +const ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID"; +const fromEnv = (init) => async () => { + init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv"); + const accessKeyId = process.env[ENV_KEY]; + const secretAccessKey = process.env[ENV_SECRET]; + const sessionToken = process.env[ENV_SESSION]; + const expiry = process.env[ENV_EXPIRATION]; + const credentialScope = process.env[ENV_CREDENTIAL_SCOPE]; + const accountId = process.env[ENV_ACCOUNT_ID]; + if (accessKeyId && secretAccessKey) { + const credentials = { + accessKeyId, + secretAccessKey, + ...(sessionToken && { sessionToken }), + ...(expiry && { expiration: new Date(expiry) }), + ...(credentialScope && { credentialScope }), + ...(accountId && { accountId }), + }; + setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g"); + return credentials; + } + throw new CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger }); +}; + +exports.ENV_ACCOUNT_ID = ENV_ACCOUNT_ID; +exports.ENV_CREDENTIAL_SCOPE = ENV_CREDENTIAL_SCOPE; +exports.ENV_EXPIRATION = ENV_EXPIRATION; +exports.ENV_KEY = ENV_KEY; +exports.ENV_SECRET = ENV_SECRET; +exports.ENV_SESSION = ENV_SESSION; +exports.fromEnv = fromEnv; + + +/***/ }), + +/***/ 98605: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { setCredentialFeature } = __nccwpck_require__(5152); +const { CredentialsProviderError } = __nccwpck_require__(47291); +const { NodeHttpHandler } = __nccwpck_require__(61279); +const fs = __nccwpck_require__(51455); +const { HttpRequest } = __nccwpck_require__(93422); +const { sdkStreamMixin, parseRfc3339DateTime } = __nccwpck_require__(92430); + +const ECS_CONTAINER_HOST = "169.254.170.2"; +const EKS_CONTAINER_HOST_IPv4 = "169.254.170.23"; +const EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]"; +const checkUrl = (url, logger) => { + if (url.protocol === "https:") { + return; + } + if (url.hostname === ECS_CONTAINER_HOST || + url.hostname === EKS_CONTAINER_HOST_IPv4 || + url.hostname === EKS_CONTAINER_HOST_IPv6) { + return; + } + if (url.hostname.includes("[")) { + if (url.hostname === "[::1]" || url.hostname === "[0000:0000:0000:0000:0000:0000:0000:0001]") { + return; + } + } + else { + if (url.hostname === "localhost") { + return; + } + const ipComponents = url.hostname.split("."); + const inRange = (component) => { + const num = parseInt(component, 10); + return 0 <= num && num <= 255; + }; + if (ipComponents[0] === "127" && + inRange(ipComponents[1]) && + inRange(ipComponents[2]) && + inRange(ipComponents[3]) && + ipComponents.length === 4) { + return; + } + } + throw new CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following: + - loopback CIDR 127.0.0.0/8 or [::1/128] + - ECS container host 169.254.170.2 + - EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger }); +}; + +function createGetRequest(url) { + return new HttpRequest({ + protocol: url.protocol, + hostname: url.hostname, + port: Number(url.port), + path: url.pathname, + query: Array.from(url.searchParams.entries()).reduce((acc, [k, v]) => { + acc[k] = v; + return acc; + }, {}), + fragment: url.hash, + }); +} +async function getCredentials(response, logger) { + const stream = sdkStreamMixin(response.body); + const str = await stream.transformToString(); + if (response.statusCode === 200) { + const parsed = JSON.parse(str); + if (typeof parsed.AccessKeyId !== "string" || + typeof parsed.SecretAccessKey !== "string" || + typeof parsed.Token !== "string" || + typeof parsed.Expiration !== "string") { + throw new CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " + + "{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger }); + } + return { + accessKeyId: parsed.AccessKeyId, + secretAccessKey: parsed.SecretAccessKey, + sessionToken: parsed.Token, + expiration: parseRfc3339DateTime(parsed.Expiration), + }; + } + if (response.statusCode >= 400 && response.statusCode < 500) { + let parsedBody = {}; + try { + parsedBody = JSON.parse(str); + } + catch (e) { } + throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), { + Code: parsedBody.Code, + Message: parsedBody.Message, + }); + } + throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }); +} + +const retryWrapper = (toRetry, maxRetries, delayMs) => { + return async () => { + for (let i = 0; i < maxRetries; ++i) { + try { + return await toRetry(); + } + catch (e) { + await new Promise((resolve) => setTimeout(resolve, delayMs)); + } + } + return await toRetry(); + }; +}; + +const AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; +const DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2"; +const AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; +const AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE"; +const AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; +const fromHttp = (options = {}) => { + options.logger?.debug("@aws-sdk/credential-provider-http - fromHttp"); + let host; + const relative = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI]; + const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI]; + const token = options.awsContainerAuthorizationToken ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN]; + const tokenFile = options.awsContainerAuthorizationTokenFile ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE]; + const warn = options.logger?.constructor?.name === "NoOpLogger" || !options.logger?.warn + ? console.warn + : options.logger.warn.bind(options.logger); + if (relative && full) { + warn("@aws-sdk/credential-provider-http: " + + "you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."); + warn("awsContainerCredentialsRelativeUri will take precedence."); + } + if (token && tokenFile) { + warn("@aws-sdk/credential-provider-http: " + + "you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."); + warn("awsContainerAuthorizationTokenFile will take precedence."); + } + if (relative) { + host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`; + } + else if (full) { + host = full; + } + else { + throw new CredentialsProviderError(`No HTTP credential provider host provided. +Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger }); + } + const url = new URL(host); + checkUrl(url, options.logger); + const requestHandler = NodeHttpHandler.create({ connectionTimeout: options.timeout ?? 1000 }); + const requestTimeout = options.timeout ?? 1000; + const provider = retryWrapper(async () => { + const request = createGetRequest(url); + if (tokenFile) { + request.headers.Authorization = validateToken((await fs.readFile(tokenFile)).toString()); + } + else if (token) { + request.headers.Authorization = validateToken(token); + } + try { + const result = await requestHandler.handle(request, { requestTimeout }); + return getCredentials(result.response).then((creds) => setCredentialFeature(creds, "CREDENTIALS_HTTP", "z")); + } + catch (e) { + throw new CredentialsProviderError(String(e), { logger: options.logger }); + } + }, options.maxRetries ?? 3, options.timeout ?? 1000); + return async () => { + try { + return await provider(); + } + finally { + requestHandler.destroy?.(); + } + }; +}; +const validateToken = (token) => { + if (token.includes("\r\n")) { + throw new CredentialsProviderError("Authorization token contains invalid \\r\\n sequence."); + } + return token; +}; + +exports.fromHttp = fromHttp; + + +/***/ }), + +/***/ 75869: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { CredentialsProviderError, chain, getProfileName, parseKnownFiles } = __nccwpck_require__(47291); +const { setCredentialFeature } = __nccwpck_require__(5152); + +const resolveCredentialSource = (credentialSource, profileName, logger) => { + const sourceProvidersMap = { + EcsContainer: async (options) => { + const { fromHttp } = __nccwpck_require__(98605); + const { fromContainerMetadata } = __nccwpck_require__(40566); + logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"); + return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider); + }, + Ec2InstanceMetadata: async (options) => { + logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata"); + const { fromInstanceMetadata } = __nccwpck_require__(40566); + return async () => fromInstanceMetadata(options)().then(setNamedProvider); + }, + Environment: async (options) => { + logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment"); + const { fromEnv } = __nccwpck_require__(55606); + return async () => fromEnv(options)().then(setNamedProvider); + }, + }; + if (credentialSource in sourceProvidersMap) { + return sourceProvidersMap[credentialSource]; + } + else { + throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` + + `expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger }); + } +}; +const setNamedProvider = (creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p"); + +const isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => { + return (Boolean(arg) && + typeof arg === "object" && + typeof arg.role_arn === "string" && + ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && + ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && + ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && + (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger }))); +}; +const isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => { + const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined"; + if (withSourceProfile) { + logger?.debug?.(` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`); + } + return withSourceProfile; +}; +const isCredentialSourceProfile = (arg, { profile, logger }) => { + const withProviderProfile = typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined"; + if (withProviderProfile) { + logger?.debug?.(` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`); + } + return withProviderProfile; +}; +const resolveAssumeRoleCredentials = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, resolveProfileData) => { + options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)"); + const profileData = profiles[profileName]; + const { source_profile, region } = profileData; + if (!options.roleAssumer) { + const { getDefaultRoleAssumer } = __nccwpck_require__(1136); + options.roleAssumer = getDefaultRoleAssumer({ + ...options.clientConfig, + credentialProviderLogger: options.logger, + parentClientConfig: { + ...callerClientConfig, + ...options?.parentClientConfig, + region: region ?? options?.parentClientConfig?.region ?? callerClientConfig?.region, + }, + }, options.clientPlugins); + } + if (source_profile && source_profile in visitedProfiles) { + throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile` + + ` ${getProfileName(options)}. Profiles visited: ` + + Object.keys(visitedProfiles).join(", "), { logger: options.logger }); + } + options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`); + const sourceCredsProvider = source_profile + ? resolveProfileData(source_profile, profiles, options, callerClientConfig, { + ...visitedProfiles, + [source_profile]: true, + }, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})) + : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))(); + if (isCredentialSourceWithoutRoleArn(profileData)) { + return sourceCredsProvider.then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o")); + } + else { + const params = { + RoleArn: profileData.role_arn, + RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`, + ExternalId: profileData.external_id, + DurationSeconds: parseInt(profileData.duration_seconds || "3600", 10), + }; + const { mfa_serial } = profileData; + if (mfa_serial) { + if (!options.mfaCodeProvider) { + throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false }); + } + params.SerialNumber = mfa_serial; + params.TokenCode = await options.mfaCodeProvider(mfa_serial); + } + const sourceCreds = await sourceCredsProvider; + return options.roleAssumer(sourceCreds, params).then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o")); + } +}; +const isCredentialSourceWithoutRoleArn = (section) => { + return !section.role_arn && !!section.credential_source; +}; + +const isLoginProfile = (data) => { + return Boolean(data && data.login_session); +}; +const resolveLoginCredentials = async (profileName, options, callerClientConfig) => { + const { fromLoginCredentials } = __nccwpck_require__(84072); + const credentials = await fromLoginCredentials({ + ...options, + profile: profileName, + })({ callerClientConfig }); + return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC"); +}; + +const isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string"; +const resolveProcessCredentials = async (options, profile) => { + const { fromProcess } = __nccwpck_require__(75360); + const credentials = await fromProcess({ + ...options, + profile, + })(); + return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_PROCESS", "v"); +}; + +const resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => { + const { fromSSO } = __nccwpck_require__(60998); + return fromSSO({ + profile, + logger: options.logger, + parentClientConfig: options.parentClientConfig, + clientConfig: options.clientConfig, + })({ + callerClientConfig, + }).then((creds) => { + if (profileData.sso_session) { + return setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO", "r"); + } + else { + return setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t"); + } + }); +}; +const isSsoProfile = (arg) => arg && + (typeof arg.sso_start_url === "string" || + typeof arg.sso_account_id === "string" || + typeof arg.sso_session === "string" || + typeof arg.sso_region === "string" || + typeof arg.sso_role_name === "string"); + +const isStaticCredsProfile = (arg) => Boolean(arg) && + typeof arg === "object" && + typeof arg.aws_access_key_id === "string" && + typeof arg.aws_secret_access_key === "string" && + ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && + ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1; +const resolveStaticCredentials = async (profile, options) => { + options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials"); + const credentials = { + accessKeyId: profile.aws_access_key_id, + secretAccessKey: profile.aws_secret_access_key, + sessionToken: profile.aws_session_token, + ...(profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope }), + ...(profile.aws_account_id && { accountId: profile.aws_account_id }), + }; + return setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n"); +}; + +const isWebIdentityProfile = (arg) => Boolean(arg) && + typeof arg === "object" && + typeof arg.web_identity_token_file === "string" && + typeof arg.role_arn === "string" && + ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1; +const resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => { + const { fromTokenFile } = __nccwpck_require__(29956); + const credentials = await fromTokenFile({ + webIdentityTokenFile: profile.web_identity_token_file, + roleArn: profile.role_arn, + roleSessionName: profile.role_session_name, + roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity, + logger: options.logger, + parentClientConfig: options.parentClientConfig, + })({ + callerClientConfig, + }); + return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q"); +}; + +const resolveProfileData = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => { + const data = profiles[profileName]; + if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) { + return resolveStaticCredentials(data, options); + } + if (isAssumeRoleRecursiveCall || isAssumeRoleProfile(data, { profile: profileName, logger: options.logger })) { + return resolveAssumeRoleCredentials(profileName, profiles, options, callerClientConfig, visitedProfiles, resolveProfileData); + } + if (isStaticCredsProfile(data)) { + return resolveStaticCredentials(data, options); + } + if (isWebIdentityProfile(data)) { + return resolveWebIdentityCredentials(data, options, callerClientConfig); + } + if (isProcessProfile(data)) { + return resolveProcessCredentials(options, profileName); + } + if (isSsoProfile(data)) { + return await resolveSsoCredentials(profileName, data, options, callerClientConfig); + } + if (isLoginProfile(data)) { + return resolveLoginCredentials(profileName, options, callerClientConfig); + } + throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger }); +}; + +const fromIni = (init = {}) => async ({ callerClientConfig } = {}) => { + init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni"); + const profiles = await parseKnownFiles(init); + return resolveProfileData(getProfileName({ + profile: init.profile ?? callerClientConfig?.profile, + }), profiles, init, callerClientConfig); +}; + +exports.fromIni = fromIni; + + +/***/ }), + +/***/ 84072: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { setCredentialFeature } = __nccwpck_require__(5152); +const { CredentialsProviderError, readFile, parseKnownFiles, getProfileName } = __nccwpck_require__(47291); +const { HttpRequest } = __nccwpck_require__(93422); +const { createHash, createPrivateKey, createPublicKey, sign } = __nccwpck_require__(77598); +const { promises } = __nccwpck_require__(73024); +const { homedir } = __nccwpck_require__(48161); +const { dirname, join } = __nccwpck_require__(76760); + +class LoginCredentialsFetcher { + profileData; + init; + callerClientConfig; + static REFRESH_THRESHOLD = 5 * 60 * 1000; + constructor(profileData, init, callerClientConfig) { + this.profileData = profileData; + this.init = init; + this.callerClientConfig = callerClientConfig; + } + async loadCredentials() { + const token = await this.loadToken(); + if (!token) { + throw new CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`, { tryNextLink: false, logger: this.logger }); + } + const accessToken = token.accessToken; + const now = Date.now(); + const expiryTime = new Date(accessToken.expiresAt).getTime(); + const timeUntilExpiry = expiryTime - now; + if (timeUntilExpiry <= LoginCredentialsFetcher.REFRESH_THRESHOLD) { + return this.refresh(token); + } + return { + accessKeyId: accessToken.accessKeyId, + secretAccessKey: accessToken.secretAccessKey, + sessionToken: accessToken.sessionToken, + accountId: accessToken.accountId, + expiration: new Date(accessToken.expiresAt), + }; + } + get logger() { + return this.init?.logger; + } + get loginSession() { + return this.profileData.login_session; + } + async refresh(token) { + const { SigninClient, CreateOAuth2TokenCommand } = __nccwpck_require__(99762); + const { logger, userAgentAppId } = this.callerClientConfig ?? {}; + const isH2 = (requestHandler) => { + return requestHandler?.metadata?.handlerProtocol === "h2"; + }; + const requestHandler = isH2(this.callerClientConfig?.requestHandler) + ? undefined + : this.callerClientConfig?.requestHandler; + const region = this.profileData.region ?? (await this.callerClientConfig?.region?.()) ?? process.env.AWS_REGION; + const client = new SigninClient({ + credentials: { + accessKeyId: "", + secretAccessKey: "", + }, + region, + requestHandler, + logger, + userAgentAppId, + ...this.init?.clientConfig, + }); + this.createDPoPInterceptor(client.middlewareStack); + const commandInput = { + tokenInput: { + clientId: token.clientId, + refreshToken: token.refreshToken, + grantType: "refresh_token", + }, + }; + try { + const response = await client.send(new CreateOAuth2TokenCommand(commandInput)); + const { accessKeyId, secretAccessKey, sessionToken } = response.tokenOutput?.accessToken ?? {}; + const { refreshToken, expiresIn } = response.tokenOutput ?? {}; + if (!accessKeyId || !secretAccessKey || !sessionToken || !refreshToken) { + throw new CredentialsProviderError("Token refresh response missing required fields", { + logger: this.logger, + tryNextLink: false, + }); + } + const expiresInMs = (expiresIn ?? 900) * 1000; + const expiration = new Date(Date.now() + expiresInMs); + const updatedToken = { + ...token, + accessToken: { + ...token.accessToken, + accessKeyId, + secretAccessKey, + sessionToken, + expiresAt: expiration.toISOString(), + }, + refreshToken, + }; + await this.saveToken(updatedToken); + const newAccessToken = updatedToken.accessToken; + return { + accessKeyId: newAccessToken.accessKeyId, + secretAccessKey: newAccessToken.secretAccessKey, + sessionToken: newAccessToken.sessionToken, + accountId: newAccessToken.accountId, + expiration, + }; + } + catch (error) { + if (error.name === "AccessDeniedException") { + const errorType = error.error; + let message; + switch (errorType) { + case "TOKEN_EXPIRED": + message = "Your session has expired. Please reauthenticate."; + break; + case "USER_CREDENTIALS_CHANGED": + message = + "Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password."; + break; + case "INSUFFICIENT_PERMISSIONS": + message = + "Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action."; + break; + default: + message = `Failed to refresh token: ${String(error)}. Please re-authenticate using \`aws login\``; + } + throw new CredentialsProviderError(message, { logger: this.logger, tryNextLink: false }); + } + throw new CredentialsProviderError(`Failed to refresh token: ${String(error)}. Please re-authenticate using aws login`, { logger: this.logger }); + } + } + async loadToken() { + const tokenFilePath = this.getTokenFilePath(); + try { + let tokenData; + try { + tokenData = await readFile(tokenFilePath, { ignoreCache: this.init?.ignoreCache }); + } + catch { + tokenData = await promises.readFile(tokenFilePath, "utf8"); + } + const token = JSON.parse(tokenData); + const missingFields = ["accessToken", "clientId", "refreshToken", "dpopKey"].filter((k) => !token[k]); + if (!token.accessToken?.accountId) { + missingFields.push("accountId"); + } + if (missingFields.length > 0) { + throw new CredentialsProviderError(`Token validation failed, missing fields: ${missingFields.join(", ")}`, { + logger: this.logger, + tryNextLink: false, + }); + } + return token; + } + catch (error) { + throw new CredentialsProviderError(`Failed to load token from ${tokenFilePath}: ${String(error)}`, { + logger: this.logger, + tryNextLink: false, + }); + } + } + async saveToken(token) { + const tokenFilePath = this.getTokenFilePath(); + const directory = dirname(tokenFilePath); + try { + await promises.mkdir(directory, { recursive: true }); + } + catch (error) { + } + await promises.writeFile(tokenFilePath, JSON.stringify(token, null, 2), "utf8"); + } + getTokenFilePath() { + const directory = process.env.AWS_LOGIN_CACHE_DIRECTORY ?? join(homedir(), ".aws", "login", "cache"); + const loginSessionBytes = Buffer.from(this.loginSession, "utf8"); + const loginSessionSha256 = createHash("sha256").update(loginSessionBytes).digest("hex"); + return join(directory, `${loginSessionSha256}.json`); + } + derToRawSignature(derSignature) { + let offset = 2; + if (derSignature[offset] !== 0x02) { + throw new Error("Invalid DER signature"); + } + offset++; + const rLength = derSignature[offset++]; + let r = derSignature.subarray(offset, offset + rLength); + offset += rLength; + if (derSignature[offset] !== 0x02) { + throw new Error("Invalid DER signature"); + } + offset++; + const sLength = derSignature[offset++]; + let s = derSignature.subarray(offset, offset + sLength); + r = r[0] === 0x00 ? r.subarray(1) : r; + s = s[0] === 0x00 ? s.subarray(1) : s; + const rPadded = Buffer.concat([Buffer.alloc(32 - r.length), r]); + const sPadded = Buffer.concat([Buffer.alloc(32 - s.length), s]); + return Buffer.concat([rPadded, sPadded]); + } + createDPoPInterceptor(middlewareStack) { + middlewareStack.add((next) => async (args) => { + if (HttpRequest.isInstance(args.request)) { + const request = args.request; + const actualEndpoint = `${request.protocol}//${request.hostname}${request.port ? `:${request.port}` : ""}${request.path}`; + const dpop = await this.generateDpop(request.method, actualEndpoint); + request.headers = { + ...request.headers, + DPoP: dpop, + }; + } + return next(args); + }, { + step: "finalizeRequest", + name: "dpopInterceptor", + override: true, + }); + } + async generateDpop(method = "POST", endpoint) { + const token = await this.loadToken(); + try { + const privateKey = createPrivateKey({ + key: token.dpopKey, + format: "pem", + type: "sec1", + }); + const publicKey = createPublicKey(privateKey); + const publicDer = publicKey.export({ format: "der", type: "spki" }); + let pointStart = -1; + for (let i = 0; i < publicDer.length; i++) { + if (publicDer[i] === 0x04) { + pointStart = i; + break; + } + } + const x = publicDer.slice(pointStart + 1, pointStart + 33); + const y = publicDer.slice(pointStart + 33, pointStart + 65); + const header = { + alg: "ES256", + typ: "dpop+jwt", + jwk: { + kty: "EC", + crv: "P-256", + x: x.toString("base64url"), + y: y.toString("base64url"), + }, + }; + const payload = { + jti: crypto.randomUUID(), + htm: method, + htu: endpoint, + iat: Math.floor(Date.now() / 1000), + }; + const headerB64 = Buffer.from(JSON.stringify(header)).toString("base64url"); + const payloadB64 = Buffer.from(JSON.stringify(payload)).toString("base64url"); + const message = `${headerB64}.${payloadB64}`; + const asn1Signature = sign("sha256", Buffer.from(message), privateKey); + const rawSignature = this.derToRawSignature(asn1Signature); + const signatureB64 = rawSignature.toString("base64url"); + return `${message}.${signatureB64}`; + } + catch (error) { + throw new CredentialsProviderError(`Failed to generate Dpop proof: ${error instanceof Error ? error.message : String(error)}`, { logger: this.logger, tryNextLink: false }); + } + } +} + +const fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => { + init?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials"); + const profiles = await parseKnownFiles(init || {}); + const profileName = getProfileName({ + profile: init?.profile ?? callerClientConfig?.profile, + }); + const profile = profiles[profileName]; + if (!profile?.login_session) { + throw new CredentialsProviderError(`Profile ${profileName} does not contain login_session.`, { + tryNextLink: true, + logger: init?.logger, + }); + } + const fetcher = new LoginCredentialsFetcher(profile, init, callerClientConfig); + const credentials = await fetcher.loadCredentials(); + return setCredentialFeature(credentials, "CREDENTIALS_LOGIN", "AD"); +}; + +exports.fromLoginCredentials = fromLoginCredentials; + + +/***/ }), + +/***/ 5861: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { ENV_KEY, ENV_SECRET, fromEnv } = __nccwpck_require__(55606); +const { chain, CredentialsProviderError, ENV_PROFILE } = __nccwpck_require__(47291); + +const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; +const remoteProvider = async (init) => { + const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = __nccwpck_require__(40566); + if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) { + init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata"); + const { fromHttp } = __nccwpck_require__(98605); + return chain(fromHttp(init), fromContainerMetadata(init)); + } + if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") { + return async () => { + throw new CredentialsProviderError("EC2 Instance Metadata Service access disabled", { logger: init.logger }); + }; + } + init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"); + return fromInstanceMetadata(init); +}; + +function memoizeChain(providers, treatAsExpired) { + const chain = internalCreateChain(providers); + let activeLock; + let passiveLock; + let credentials; + let forceRefreshLock; + const provider = async (options) => { + if (options?.forceRefresh) { + if (!forceRefreshLock) { + forceRefreshLock = chain(options) + .then((c) => { + credentials = c; + }) + .finally(() => { + forceRefreshLock = undefined; + }); + } + await forceRefreshLock; + return credentials; + } + if (credentials?.expiration) { + if (credentials?.expiration?.getTime() < Date.now()) { + credentials = undefined; + } + } + if (activeLock) { + await activeLock; + } + else if (!credentials || treatAsExpired?.(credentials)) { + if (credentials) { + if (!passiveLock) { + passiveLock = chain(options) + .then((c) => { + credentials = c; + }) + .finally(() => { + passiveLock = undefined; + }); + } + } + else { + activeLock = chain(options) + .then((c) => { + credentials = c; + }) + .finally(() => { + activeLock = undefined; + }); + return provider(options); + } + } + return credentials; + }; + return provider; +} +const internalCreateChain = (providers) => async (awsIdentityProperties) => { + let lastProviderError; + for (const provider of providers) { + try { + return await provider(awsIdentityProperties); + } + catch (err) { + lastProviderError = err; + if (err?.tryNextLink) { + continue; + } + throw err; + } + } + throw lastProviderError; +}; + +let multipleCredentialSourceWarningEmitted = false; +const defaultProvider = (init = {}) => memoizeChain([ + async () => { + const profile = init.profile ?? process.env[ENV_PROFILE]; + if (profile) { + const envStaticCredentialsAreSet = process.env[ENV_KEY] && process.env[ENV_SECRET]; + if (envStaticCredentialsAreSet) { + if (!multipleCredentialSourceWarningEmitted) { + const warnFn = init.logger?.warn && init.logger?.constructor?.name !== "NoOpLogger" + ? init.logger.warn.bind(init.logger) + : console.warn; + warnFn(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING: + Multiple credential sources detected: + Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set. + This SDK will proceed with the AWS_PROFILE value. + + However, a future version may change this behavior to prefer the ENV static credentials. + Please ensure that your environment only sets either the AWS_PROFILE or the + AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair. +`); + multipleCredentialSourceWarningEmitted = true; + } + } + throw new CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.", { + logger: init.logger, + tryNextLink: true, + }); + } + init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"); + return fromEnv(init)(); + }, + async (awsIdentityProperties) => { + init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO"); + const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init; + if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) { + throw new CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init.logger }); + } + const { fromSSO } = __nccwpck_require__(60998); + return fromSSO(init)(awsIdentityProperties); + }, + async (awsIdentityProperties) => { + init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni"); + const { fromIni } = __nccwpck_require__(75869); + return fromIni(init)(awsIdentityProperties); + }, + async (awsIdentityProperties) => { + init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess"); + const { fromProcess } = __nccwpck_require__(75360); + return fromProcess(init)(awsIdentityProperties); + }, + async (awsIdentityProperties) => { + init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile"); + const { fromTokenFile } = __nccwpck_require__(29956); + return fromTokenFile(init)(awsIdentityProperties); + }, + async () => { + init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"); + return (await remoteProvider(init))(); + }, + async () => { + throw new CredentialsProviderError("Could not load credentials from any providers", { + tryNextLink: false, + logger: init.logger, + }); + }, +], credentialsTreatedAsExpired); +const credentialsWillNeedRefresh = (credentials) => credentials?.expiration !== undefined; +const credentialsTreatedAsExpired = (credentials) => credentials?.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000; + +exports.credentialsTreatedAsExpired = credentialsTreatedAsExpired; +exports.credentialsWillNeedRefresh = credentialsWillNeedRefresh; +exports.defaultProvider = defaultProvider; + + +/***/ }), + +/***/ 75360: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { externalDataInterceptor, CredentialsProviderError, parseKnownFiles, getProfileName } = __nccwpck_require__(47291); +const { exec } = __nccwpck_require__(31421); +const { promisify } = __nccwpck_require__(57975); +const { setCredentialFeature } = __nccwpck_require__(5152); + +const getValidatedProcessCredentials = (profileName, data, profiles) => { + if (data.Version !== 1) { + throw Error(`Profile ${profileName} credential_process did not return Version 1.`); + } + if (data.AccessKeyId === undefined || data.SecretAccessKey === undefined) { + throw Error(`Profile ${profileName} credential_process returned invalid credentials.`); + } + if (data.Expiration) { + const currentTime = new Date(); + const expireTime = new Date(data.Expiration); + if (expireTime < currentTime) { + throw Error(`Profile ${profileName} credential_process returned expired credentials.`); + } + } + let accountId = data.AccountId; + if (!accountId && profiles?.[profileName]?.aws_account_id) { + accountId = profiles[profileName].aws_account_id; + } + const credentials = { + accessKeyId: data.AccessKeyId, + secretAccessKey: data.SecretAccessKey, + ...(data.SessionToken && { sessionToken: data.SessionToken }), + ...(data.Expiration && { expiration: new Date(data.Expiration) }), + ...(data.CredentialScope && { credentialScope: data.CredentialScope }), + ...(accountId && { accountId }), + }; + setCredentialFeature(credentials, "CREDENTIALS_PROCESS", "w"); + return credentials; +}; + +const resolveProcessCredentials = async (profileName, profiles, logger) => { + const profile = profiles[profileName]; + if (profiles[profileName]) { + const credentialProcess = profile["credential_process"]; + if (credentialProcess !== undefined) { + const execPromise = promisify(externalDataInterceptor?.getTokenRecord?.().exec ?? exec); + try { + const { stdout } = await execPromise(credentialProcess); + let data; + try { + data = JSON.parse(stdout.trim()); + } + catch { + throw Error(`Profile ${profileName} credential_process returned invalid JSON.`); + } + return getValidatedProcessCredentials(profileName, data, profiles); + } + catch (error) { + throw new CredentialsProviderError(error.message, { logger }); + } + } + else { + throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger }); + } + } + else { + throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, { + logger, + }); + } +}; + +const fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => { + init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess"); + const profiles = await parseKnownFiles(init); + return resolveProcessCredentials(getProfileName({ + profile: init.profile ?? callerClientConfig?.profile, + }), profiles, init.logger); +}; + +exports.fromProcess = fromProcess; + + +/***/ }), + +/***/ 60998: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { CredentialsProviderError, getSSOTokenFromFile, getProfileName, parseKnownFiles, loadSsoSessionData } = __nccwpck_require__(47291); +const { setCredentialFeature } = __nccwpck_require__(5152); +const { fromSso } = __nccwpck_require__(75433); + +const isSsoProfile = (arg) => arg && + (typeof arg.sso_start_url === "string" || + typeof arg.sso_account_id === "string" || + typeof arg.sso_session === "string" || + typeof arg.sso_region === "string" || + typeof arg.sso_role_name === "string"); + +const SHOULD_FAIL_CREDENTIAL_CHAIN = false; +const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger, }) => { + let token; + const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`; + if (ssoSession) { + try { + const _token = await fromSso({ + profile, + filepath, + configFilepath, + ignoreCache, + clientConfig, + parentClientConfig, + logger, + })({ callerClientConfig }); + token = { + accessToken: _token.token, + expiresAt: new Date(_token.expiration).toISOString(), + }; + } + catch (e) { + throw new CredentialsProviderError(e.message, { + tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN, + logger, + }); + } + } + else { + try { + token = await getSSOTokenFromFile(ssoStartUrl); + } + catch (e) { + throw new CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, { + tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN, + logger, + }); + } + } + if (new Date(token.expiresAt).getTime() - Date.now() <= 0) { + throw new CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, { + tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN, + logger, + }); + } + const { accessToken } = token; + const { SSOClient, GetRoleCredentialsCommand } = __nccwpck_require__(23707); + const sso = ssoClient || + new SSOClient(Object.assign({}, clientConfig ?? {}, { + logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger, + region: clientConfig?.region ?? ssoRegion, + userAgentAppId: clientConfig?.userAgentAppId ?? callerClientConfig?.userAgentAppId ?? parentClientConfig?.userAgentAppId, + })); + let ssoResp; + try { + ssoResp = await sso.send(new GetRoleCredentialsCommand({ + accountId: ssoAccountId, + roleName: ssoRoleName, + accessToken, + })); + } + catch (e) { + throw new CredentialsProviderError(e, { + tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN, + logger, + }); + } + const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {}, } = ssoResp; + if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) { + throw new CredentialsProviderError("SSO returns an invalid temporary credential.", { + tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN, + logger, + }); + } + const credentials = { + accessKeyId, + secretAccessKey, + sessionToken, + expiration: new Date(expiration), + ...(credentialScope && { credentialScope }), + ...(accountId && { accountId }), + }; + if (ssoSession) { + setCredentialFeature(credentials, "CREDENTIALS_SSO", "s"); + } + else { + setCredentialFeature(credentials, "CREDENTIALS_SSO_LEGACY", "u"); + } + return credentials; +}; + +const validateSsoProfile = (profile, logger) => { + const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile; + if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) { + throw new CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` + + `"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger }); + } + return profile; +}; + +const fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => { + init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO"); + const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init; + const { ssoClient } = init; + const profileName = getProfileName({ + profile: init.profile ?? callerClientConfig?.profile, + }); + if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) { + const profiles = await parseKnownFiles(init); + const profile = profiles[profileName]; + if (!profile) { + throw new CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger }); + } + if (!isSsoProfile(profile)) { + throw new CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, { + logger: init.logger, + }); + } + if (profile?.sso_session) { + const ssoSessions = await loadSsoSessionData(init); + const session = ssoSessions[profile.sso_session]; + const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`; + if (ssoRegion && ssoRegion !== session.sso_region) { + throw new CredentialsProviderError(`Conflicting SSO region` + conflictMsg, { + tryNextLink: false, + logger: init.logger, + }); + } + if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) { + throw new CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, { + tryNextLink: false, + logger: init.logger, + }); + } + profile.sso_region = session.sso_region; + profile.sso_start_url = session.sso_start_url; + } + const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = validateSsoProfile(profile, init.logger); + return resolveSSOCredentials({ + ssoStartUrl: sso_start_url, + ssoSession: sso_session, + ssoAccountId: sso_account_id, + ssoRegion: sso_region, + ssoRoleName: sso_role_name, + ssoClient: ssoClient, + clientConfig: init.clientConfig, + parentClientConfig: init.parentClientConfig, + callerClientConfig: init.callerClientConfig, + profile: profileName, + filepath: init.filepath, + configFilepath: init.configFilepath, + ignoreCache: init.ignoreCache, + logger: init.logger, + }); + } + else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { + throw new CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " + + '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init.logger }); + } + else { + return resolveSSOCredentials({ + ssoStartUrl, + ssoSession, + ssoAccountId, + ssoRegion, + ssoRoleName, + ssoClient, + clientConfig: init.clientConfig, + parentClientConfig: init.parentClientConfig, + callerClientConfig: init.callerClientConfig, + profile: profileName, + filepath: init.filepath, + configFilepath: init.configFilepath, + ignoreCache: init.ignoreCache, + logger: init.logger, + }); + } +}; + +exports.fromSSO = fromSSO; +exports.isSsoProfile = isSsoProfile; +exports.validateSsoProfile = validateSsoProfile; + + +/***/ }), + +/***/ 23707: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { GetRoleCredentialsCommand, SSOClient } = __nccwpck_require__(32579); +exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand; +exports.SSOClient = SSOClient; + + +/***/ }), + +/***/ 29956: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { setCredentialFeature } = __nccwpck_require__(5152); +const { CredentialsProviderError, externalDataInterceptor } = __nccwpck_require__(47291); +const { readFileSync } = __nccwpck_require__(73024); + +const fromWebToken = (init) => async (awsIdentityProperties) => { + init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken"); + const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init; + let { roleAssumerWithWebIdentity } = init; + if (!roleAssumerWithWebIdentity) { + const { getDefaultRoleAssumerWithWebIdentity } = __nccwpck_require__(1136); + roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({ + ...init.clientConfig, + credentialProviderLogger: init.logger, + parentClientConfig: { + ...awsIdentityProperties?.callerClientConfig, + ...init.parentClientConfig, + }, + }, init.clientPlugins); + } + return roleAssumerWithWebIdentity({ + RoleArn: roleArn, + RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`, + WebIdentityToken: webIdentityToken, + ProviderId: providerId, + PolicyArns: policyArns, + Policy: policy, + DurationSeconds: durationSeconds, + }); +}; + +const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE"; +const ENV_ROLE_ARN = "AWS_ROLE_ARN"; +const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME"; +const fromTokenFile = (init = {}) => async (awsIdentityProperties) => { + init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile"); + const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE]; + const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN]; + const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME]; + if (!webIdentityTokenFile || !roleArn) { + throw new CredentialsProviderError("Web identity configuration not specified", { + logger: init.logger, + }); + } + const credentials = await fromWebToken({ + ...init, + webIdentityToken: externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ?? + readFileSync(webIdentityTokenFile, { encoding: "ascii" }), + roleArn, + roleSessionName, + })(awsIdentityProperties); + if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) { + setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h"); + } + return credentials; +}; + +exports.fromTokenFile = fromTokenFile; +exports.fromWebToken = fromWebToken; + + +/***/ }), + +/***/ 29719: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { ProviderError, CredentialsProviderError, loadConfig, NODE_REGION_CONFIG_FILE_OPTIONS } = __nccwpck_require__(47291); +const { normalizeProvider } = __nccwpck_require__(90402); + +const createCredentialChain = (...credentialProviders) => { + let expireAfter = -1; + const baseFunction = async (awsIdentityProperties) => { + const credentials = await propertyProviderChain(...credentialProviders)(awsIdentityProperties); + if (!credentials.expiration && expireAfter !== -1) { + credentials.expiration = new Date(Date.now() + expireAfter); + } + return credentials; + }; + const withOptions = Object.assign(baseFunction, { + expireAfter(milliseconds) { + if (milliseconds < 5 * 60_000) { + throw new Error("@aws-sdk/credential-providers - createCredentialChain(...).expireAfter(ms) may not be called with a duration lower than five minutes."); + } + expireAfter = milliseconds; + return withOptions; + }, + }); + return withOptions; +}; +const propertyProviderChain = (...providers) => async (awsIdentityProperties) => { + if (providers.length === 0) { + throw new ProviderError("No providers in chain", { tryNextLink: false }); + } + let lastProviderError; + for (const provider of providers) { + try { + return await provider(awsIdentityProperties); + } + catch (err) { + lastProviderError = err; + if (err?.tryNextLink) { + continue; + } + throw err; + } + } + throw lastProviderError; +}; + +const fromCognitoIdentity = (options) => { + return async (args) => { + const { fromCognitoIdentity: _fromCognitoIdentity } = __nccwpck_require__(45081); + return _fromCognitoIdentity(options)(args); + }; +}; + +const fromCognitoIdentityPool = (options) => { + return async (args) => { + const { fromCognitoIdentityPool: _fromCognitoIdentityPool } = __nccwpck_require__(45081); + return _fromCognitoIdentityPool(options)(args); + }; +}; + +const fromContainerMetadata = (init) => { + return async (props) => { + init?.logger?.debug("@smithy/credential-provider-imds", "fromContainerMetadata"); + const { fromContainerMetadata: _fromContainerMetadata } = __nccwpck_require__(40566); + return _fromContainerMetadata(init)(); + }; +}; + +const fromEnv = (init) => { + return async (args) => { + const { fromEnv: _fromEnv } = __nccwpck_require__(55606); + return _fromEnv(init)(args); + }; +}; + +const fromHttp = (options = {}) => { + return async (args) => { + const { fromHttp: _fromHttp } = __nccwpck_require__(98605); + return _fromHttp(options)(args); + }; +}; + +const fromIni = (init = {}) => { + return async (args) => { + const { fromIni: _fromIni } = __nccwpck_require__(75869); + return _fromIni({ ...init })(args); + }; +}; + +const fromInstanceMetadata = (init) => { + return async (props) => { + init?.logger?.debug("@smithy/credential-provider-imds", "fromInstanceMetadata"); + const { setCredentialFeature } = __nccwpck_require__(5152); + const { fromInstanceMetadata: _fromInstanceMetadata } = __nccwpck_require__(40566); + return _fromInstanceMetadata(init)().then((creds) => setCredentialFeature(creds, "CREDENTIALS_IMDS", "0")); + }; +}; + +const fromLoginCredentials = (init) => { + return async (args) => { + const { fromLoginCredentials: _fromLoginCredentials } = __nccwpck_require__(84072); + return _fromLoginCredentials({ ...init })(args); + }; +}; + +const fromNodeProviderChain = (init = {}) => { + let chain; + return async (args) => { + if (!chain) { + const { defaultProvider } = __nccwpck_require__(5861); + chain = defaultProvider({ ...init }); + } + return chain(args); + }; +}; + +const fromProcess = (init) => { + return async (args) => { + const { fromProcess: _fromProcess } = __nccwpck_require__(75360); + return _fromProcess(init)(args); + }; +}; + +const fromSSO = (init = {}) => { + return async (args) => { + const { fromSSO: _fromSSO } = __nccwpck_require__(60998); + return _fromSSO({ ...init })(args); + }; +}; + +const ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; +const fromTemporaryCredentials$1 = (options, credentialDefaultProvider, regionProvider) => { + let stsClient; + return async (awsIdentityProperties = {}) => { + const { callerClientConfig } = awsIdentityProperties; + const profile = options.clientConfig?.profile ?? callerClientConfig?.profile; + const logger = options.logger ?? callerClientConfig?.logger; + logger?.debug("@aws-sdk/credential-providers - fromTemporaryCredentials (STS)"); + const params = { ...options.params, RoleSessionName: options.params.RoleSessionName ?? "aws-sdk-js-" + Date.now() }; + if (params?.SerialNumber) { + if (!options.mfaCodeProvider) { + throw new CredentialsProviderError(`Temporary credential requires multi-factor authentication, but no MFA code callback was provided.`, { + tryNextLink: false, + logger, + }); + } + params.TokenCode = await options.mfaCodeProvider(params?.SerialNumber); + } + const { AssumeRoleCommand, STSClient } = __nccwpck_require__(17366); + if (!stsClient) { + const defaultCredentialsOrError = typeof credentialDefaultProvider === "function" ? credentialDefaultProvider() : undefined; + const credentialSources = [ + options.masterCredentials, + options.clientConfig?.credentials, + void callerClientConfig?.credentials, + callerClientConfig?.credentialDefaultProvider?.(), + defaultCredentialsOrError, + ]; + let credentialSource = "STS client default credentials"; + if (credentialSources[0]) { + credentialSource = "options.masterCredentials"; + } + else if (credentialSources[1]) { + credentialSource = "options.clientConfig.credentials"; + } + else if (credentialSources[2]) { + credentialSource = "caller client's credentials"; + throw new Error("fromTemporaryCredentials recursion in callerClientConfig.credentials"); + } + else if (credentialSources[3]) { + credentialSource = "caller client's credentialDefaultProvider"; + } + else if (credentialSources[4]) { + credentialSource = "AWS SDK default credentials"; + } + const regionSources = [ + options.clientConfig?.region, + callerClientConfig?.region, + await regionProvider?.({ + profile, + }), + ASSUME_ROLE_DEFAULT_REGION, + ]; + let regionSource = "default partition's default region"; + if (regionSources[0]) { + regionSource = "options.clientConfig.region"; + } + else if (regionSources[1]) { + regionSource = "caller client's region"; + } + else if (regionSources[2]) { + regionSource = "file or env region"; + } + const requestHandlerSources = [ + filterRequestHandler(options.clientConfig?.requestHandler), + filterRequestHandler(callerClientConfig?.requestHandler), + ]; + let requestHandlerSource = "STS default requestHandler"; + if (requestHandlerSources[0]) { + requestHandlerSource = "options.clientConfig.requestHandler"; + } + else if (requestHandlerSources[1]) { + requestHandlerSource = "caller client's requestHandler"; + } + logger?.debug?.(`@aws-sdk/credential-providers - fromTemporaryCredentials STS client init with ` + + `${regionSource}=${await normalizeProvider(coalesce(regionSources))()}, ${credentialSource}, ${requestHandlerSource}.`); + stsClient = new STSClient({ + userAgentAppId: callerClientConfig?.userAgentAppId, + ...options.clientConfig, + credentials: coalesce(credentialSources), + logger, + profile, + region: coalesce(regionSources), + requestHandler: coalesce(requestHandlerSources), + }); + } + if (options.clientPlugins) { + for (const plugin of options.clientPlugins) { + stsClient.middlewareStack.use(plugin); + } + } + const { Credentials } = await stsClient.send(new AssumeRoleCommand(params)); + if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + throw new CredentialsProviderError(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`, { + logger, + }); + } + return { + accessKeyId: Credentials.AccessKeyId, + secretAccessKey: Credentials.SecretAccessKey, + sessionToken: Credentials.SessionToken, + expiration: Credentials.Expiration, + credentialScope: Credentials.CredentialScope, + }; + }; +}; +const filterRequestHandler = (requestHandler) => { + return requestHandler?.metadata?.handlerProtocol === "h2" ? undefined : requestHandler; +}; +const coalesce = (args) => { + for (const item of args) { + if (item !== undefined) { + return item; + } + } +}; + +const fromTemporaryCredentials = (options) => { + return fromTemporaryCredentials$1(options, fromNodeProviderChain, async ({ profile = process.env.AWS_PROFILE }) => loadConfig({ + environmentVariableSelector: (env) => env.AWS_REGION, + configFileSelector: (profileData) => { + return profileData.region; + }, + default: () => undefined, + }, { ...NODE_REGION_CONFIG_FILE_OPTIONS, profile })()); +}; + +const fromTokenFile = (init = {}) => { + return async (args) => { + const { fromTokenFile: _fromTokenFile } = __nccwpck_require__(29956); + return _fromTokenFile({ ...init })(args); + }; +}; + +const fromWebToken = (init) => { + return async (args) => { + const { fromWebToken: _fromWebToken } = __nccwpck_require__(29956); + return _fromWebToken({ ...init })(args); + }; +}; + +exports.createCredentialChain = createCredentialChain; +exports.fromCognitoIdentity = fromCognitoIdentity; +exports.fromCognitoIdentityPool = fromCognitoIdentityPool; +exports.fromContainerMetadata = fromContainerMetadata; +exports.fromEnv = fromEnv; +exports.fromHttp = fromHttp; +exports.fromIni = fromIni; +exports.fromInstanceMetadata = fromInstanceMetadata; +exports.fromLoginCredentials = fromLoginCredentials; +exports.fromNodeProviderChain = fromNodeProviderChain; +exports.fromProcess = fromProcess; +exports.fromSSO = fromSSO; +exports.fromTemporaryCredentials = fromTemporaryCredentials; +exports.fromTokenFile = fromTokenFile; +exports.fromWebToken = fromWebToken; +exports.propertyProviderChain = propertyProviderChain; + + +/***/ }), + +/***/ 17366: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { AssumeRoleCommand, STSClient } = __nccwpck_require__(1136); +exports.AssumeRoleCommand = AssumeRoleCommand; +exports.STSClient = STSClient; + + +/***/ }), + +/***/ 20364: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = __nccwpck_require__(5152); +const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = __nccwpck_require__(90402); +const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = __nccwpck_require__(92658); +const { Command: $Command } = __nccwpck_require__(92658); +exports.$Command = $Command; +exports.__Client = Client; +const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = __nccwpck_require__(47291); +const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = __nccwpck_require__(62085); +const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = __nccwpck_require__(93422); +const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = __nccwpck_require__(23609); +const { TypeRegistry, getSchemaSerdePlugin } = __nccwpck_require__(26890); +const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = __nccwpck_require__(97523); +const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = __nccwpck_require__(92430); +const { streamCollector, NodeHttpHandler } = __nccwpck_require__(61279); +const { AwsJson1_1Protocol } = __nccwpck_require__(37288); +const { Sha256 } = __nccwpck_require__(99542); + +const defaultCognitoIdentityHttpAuthSchemeParametersProvider = async (config, context, input) => { + return { + operation: getSmithyContext(context).operation, + region: await normalizeProvider(config.region)() || (() => { + throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); + })(), + }; +}; +function createAwsAuthSigv4HttpAuthOption(authParameters) { + return { + schemeId: "aws.auth#sigv4", + signingProperties: { + name: "cognito-identity", + region: authParameters.region, + }, + propertiesExtractor: (config, context) => ({ + signingProperties: { + config, + context, + }, + }), + }; +} +function createSmithyApiNoAuthHttpAuthOption(authParameters) { + return { + schemeId: "smithy.api#noAuth", + }; +} +const defaultCognitoIdentityHttpAuthSchemeProvider = (authParameters) => { + const options = []; + switch (authParameters.operation) { + case "GetCredentialsForIdentity": + { + options.push(createSmithyApiNoAuthHttpAuthOption()); + break; + } + case "GetId": + { + options.push(createSmithyApiNoAuthHttpAuthOption()); + break; + } + default: { + options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); + } + } + return options; +}; +const resolveHttpAuthSchemeConfig = (config) => { + const config_0 = resolveAwsSdkSigV4Config(config); + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }); +}; + +const resolveClientEndpointParameters = (options) => { + return Object.assign(options, { + useDualstackEndpoint: options.useDualstackEndpoint ?? false, + useFipsEndpoint: options.useFipsEndpoint ?? false, + defaultSigningName: "cognito-identity", + }); +}; +const commonParams = { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, +}; + +var version = "3.997.32"; +var packageInfo = { + version: version}; + +const m = "ref"; +const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { [m]: "Region" }, k = {}, l = [j]; +const _data = { + conditions: [ + [c, [h]], + [c, l], + ["aws.partition", l, d], + [e, [{ [m]: "UseFIPS" }, b]], + [e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]], + [e, [{ [m]: "UseDualStack" }, b]], + [e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]], + [g, [{ fn: f, argv: [i, "name"] }, "aws"]], + [g, [j, "us-east-1"]], + [g, [j, "us-east-2"]], + [g, [j, "us-west-1"]], + [g, [j, "us-west-2"]] + ], + results: [ + [a], + [a, "Invalid Configuration: FIPS and custom endpoint are not supported"], + [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"], + [h, k], + ["https://cognito-identity-fips.us-east-1.amazonaws.com", k], + ["https://cognito-identity-fips.us-east-2.amazonaws.com", k], + ["https://cognito-identity-fips.us-west-1.amazonaws.com", k], + ["https://cognito-identity-fips.us-west-2.amazonaws.com", k], + ["https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k], + [a, "FIPS and DualStack are enabled, but this partition does not support one or both"], + ["https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}", k], + [a, "FIPS is enabled but this partition does not support FIPS"], + ["https://cognito-identity.{Region}.amazonaws.com", k], + ["https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}", k], + [a, "DualStack is enabled but this partition does not support DualStack"], + ["https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}", k], + [a, "Invalid Configuration: Missing Region"] + ] +}; +const root = 2; +const r = 100_000_000; +const nodes = new Int32Array([ + -1, 1, -1, + 0, 17, 3, + 1, 4, r + 16, + 2, 5, r + 16, + 3, 9, 6, + 5, 7, r + 15, + 6, 8, r + 14, + 7, r + 12, r + 13, + 4, 11, 10, + 5, r + 9, r + 11, + 5, 12, r + 10, + 6, 13, r + 9, + 8, r + 4, 14, + 9, r + 5, 15, + 10, r + 6, 16, + 11, r + 7, r + 8, + 3, r + 1, 18, + 5, r + 2, r + 3, +]); +const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); + +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); +const defaultEndpointResolver = (endpointParams, context = {}) => { + return cache.get(endpointParams, () => decideEndpoint(bdd, { + endpointParams: endpointParams, + logger: context.logger, + })); +}; +customEndpointFunctions.aws = awsEndpointFunctions; + +class CognitoIdentityServiceException extends ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, CognitoIdentityServiceException.prototype); + } +} + +class ExternalServiceException extends CognitoIdentityServiceException { + name = "ExternalServiceException"; + $fault = "client"; + constructor(opts) { + super({ + name: "ExternalServiceException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ExternalServiceException.prototype); + } +} +class InternalErrorException extends CognitoIdentityServiceException { + name = "InternalErrorException"; + $fault = "server"; + constructor(opts) { + super({ + name: "InternalErrorException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, InternalErrorException.prototype); + } +} +class InvalidIdentityPoolConfigurationException extends CognitoIdentityServiceException { + name = "InvalidIdentityPoolConfigurationException"; + $fault = "client"; + constructor(opts) { + super({ + name: "InvalidIdentityPoolConfigurationException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, InvalidIdentityPoolConfigurationException.prototype); + } +} +class InvalidParameterException extends CognitoIdentityServiceException { + name = "InvalidParameterException"; + $fault = "client"; + constructor(opts) { + super({ + name: "InvalidParameterException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, InvalidParameterException.prototype); + } +} +class NotAuthorizedException extends CognitoIdentityServiceException { + name = "NotAuthorizedException"; + $fault = "client"; + constructor(opts) { + super({ + name: "NotAuthorizedException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, NotAuthorizedException.prototype); + } +} +class ResourceConflictException extends CognitoIdentityServiceException { + name = "ResourceConflictException"; + $fault = "client"; + constructor(opts) { + super({ + name: "ResourceConflictException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ResourceConflictException.prototype); + } +} +class ResourceNotFoundException extends CognitoIdentityServiceException { + name = "ResourceNotFoundException"; + $fault = "client"; + constructor(opts) { + super({ + name: "ResourceNotFoundException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ResourceNotFoundException.prototype); + } +} +class TooManyRequestsException extends CognitoIdentityServiceException { + name = "TooManyRequestsException"; + $fault = "client"; + constructor(opts) { + super({ + name: "TooManyRequestsException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, TooManyRequestsException.prototype); + } +} +class LimitExceededException extends CognitoIdentityServiceException { + name = "LimitExceededException"; + $fault = "client"; + constructor(opts) { + super({ + name: "LimitExceededException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, LimitExceededException.prototype); + } +} + +const _AI = "AccountId"; +const _AKI = "AccessKeyId"; +const _C = "Credentials"; +const _CRA = "CustomRoleArn"; +const _E = "Expiration"; +const _ESE = "ExternalServiceException"; +const _GCFI = "GetCredentialsForIdentity"; +const _GCFII = "GetCredentialsForIdentityInput"; +const _GCFIR = "GetCredentialsForIdentityResponse"; +const _GI = "GetId"; +const _GII = "GetIdInput"; +const _GIR = "GetIdResponse"; +const _IEE = "InternalErrorException"; +const _II = "IdentityId"; +const _IIPCE = "InvalidIdentityPoolConfigurationException"; +const _IPE = "InvalidParameterException"; +const _IPI = "IdentityPoolId"; +const _IPT = "IdentityProviderToken"; +const _L = "Logins"; +const _LEE = "LimitExceededException"; +const _LM = "LoginsMap"; +const _NAE = "NotAuthorizedException"; +const _RCE = "ResourceConflictException"; +const _RNFE = "ResourceNotFoundException"; +const _SK = "SecretKey"; +const _SKS = "SecretKeyString"; +const _ST = "SessionToken"; +const _TMRE = "TooManyRequestsException"; +const _c = "client"; +const _e = "error"; +const _hE = "httpError"; +const _m = "message"; +const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity"; +const _se = "server"; +const n0 = "com.amazonaws.cognitoidentity"; +const _s_registry = TypeRegistry.for(_s); +var CognitoIdentityServiceException$ = [-3, _s, "CognitoIdentityServiceException", 0, [], []]; +_s_registry.registerError(CognitoIdentityServiceException$, CognitoIdentityServiceException); +const n0_registry = TypeRegistry.for(n0); +var ExternalServiceException$ = [-3, n0, _ESE, + { [_e]: _c, [_hE]: 400 }, + [_m], + [0] +]; +n0_registry.registerError(ExternalServiceException$, ExternalServiceException); +var InternalErrorException$ = [-3, n0, _IEE, + { [_e]: _se }, + [_m], + [0] +]; +n0_registry.registerError(InternalErrorException$, InternalErrorException); +var InvalidIdentityPoolConfigurationException$ = [-3, n0, _IIPCE, + { [_e]: _c, [_hE]: 400 }, + [_m], + [0] +]; +n0_registry.registerError(InvalidIdentityPoolConfigurationException$, InvalidIdentityPoolConfigurationException); +var InvalidParameterException$ = [-3, n0, _IPE, + { [_e]: _c, [_hE]: 400 }, + [_m], + [0] +]; +n0_registry.registerError(InvalidParameterException$, InvalidParameterException); +var LimitExceededException$ = [-3, n0, _LEE, + { [_e]: _c, [_hE]: 400 }, + [_m], + [0] +]; +n0_registry.registerError(LimitExceededException$, LimitExceededException); +var NotAuthorizedException$ = [-3, n0, _NAE, + { [_e]: _c, [_hE]: 403 }, + [_m], + [0] +]; +n0_registry.registerError(NotAuthorizedException$, NotAuthorizedException); +var ResourceConflictException$ = [-3, n0, _RCE, + { [_e]: _c, [_hE]: 409 }, + [_m], + [0] +]; +n0_registry.registerError(ResourceConflictException$, ResourceConflictException); +var ResourceNotFoundException$ = [-3, n0, _RNFE, + { [_e]: _c, [_hE]: 404 }, + [_m], + [0] +]; +n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException); +var TooManyRequestsException$ = [-3, n0, _TMRE, + { [_e]: _c, [_hE]: 429 }, + [_m], + [0] +]; +n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException); +const errorTypeRegistries = [ + _s_registry, + n0_registry, +]; +var IdentityProviderToken = [0, n0, _IPT, 8, 0]; +var SecretKeyString = [0, n0, _SKS, 8, 0]; +var Credentials$ = [3, n0, _C, + 0, + [_AKI, _SK, _ST, _E], + [0, [() => SecretKeyString, 0], 0, 4] +]; +var GetCredentialsForIdentityInput$ = [3, n0, _GCFII, + 0, + [_II, _L, _CRA], + [0, [() => LoginsMap, 0], 0], 1 +]; +var GetCredentialsForIdentityResponse$ = [3, n0, _GCFIR, + 0, + [_II, _C], + [0, [() => Credentials$, 0]] +]; +var GetIdInput$ = [3, n0, _GII, + 0, + [_IPI, _AI, _L], + [0, 0, [() => LoginsMap, 0]], 1 +]; +var GetIdResponse$ = [3, n0, _GIR, + 0, + [_II], + [0] +]; +var LoginsMap = [2, n0, _LM, + 0, [0, + 0], + [() => IdentityProviderToken, + 0] +]; +var GetCredentialsForIdentity$ = [9, n0, _GCFI, + 0, () => GetCredentialsForIdentityInput$, () => GetCredentialsForIdentityResponse$ +]; +var GetId$ = [9, n0, _GI, + 0, () => GetIdInput$, () => GetIdResponse$ +]; + +const getRuntimeConfig$1 = (config) => { + return { + apiVersion: "2014-06-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCognitoIdentityHttpAuthSchemeProvider, + httpAuthSchemes: config?.httpAuthSchemes ?? [ + { + schemeId: "aws.auth#sigv4", + identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), + signer: new AwsSdkSigV4Signer(), + }, + { + schemeId: "smithy.api#noAuth", + identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), + signer: new NoAuthSigner(), + }, + ], + logger: config?.logger ?? new NoOpLogger(), + protocol: config?.protocol ?? AwsJson1_1Protocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.cognitoidentity", + errorTypeRegistries, + xmlNamespace: "http://cognito-identity.amazonaws.com/doc/2014-06-30/", + version: "2014-06-30", + serviceTarget: "AWSCognitoIdentityService", + }, + serviceId: config?.serviceId ?? "Cognito Identity", + sha256: config?.sha256 ?? Sha256, + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; + +const getRuntimeConfig = (config) => { + emitWarningIfUnsupportedVersion(process.version); + const defaultsMode = resolveDefaultsModeConfig(config); + const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); + const clientSharedValues = getRuntimeConfig$1(config); + emitWarningIfUnsupportedVersion$1(process.version); + const loaderConfig = { + profile: config?.profile, + logger: clientSharedValues.logger, + }; + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), + bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, + defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), + maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), + region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), + requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), + retryMode: config?.retryMode ?? + loadConfig({ + ...NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, + }, config), + streamCollector: config?.streamCollector ?? streamCollector, + useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), + }; +}; + +const getHttpAuthExtensionConfiguration = (runtimeConfig) => { + const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; + let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; + let _credentials = runtimeConfig.credentials; + return { + setHttpAuthScheme(httpAuthScheme) { + const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); + if (index === -1) { + _httpAuthSchemes.push(httpAuthScheme); + } + else { + _httpAuthSchemes.splice(index, 1, httpAuthScheme); + } + }, + httpAuthSchemes() { + return _httpAuthSchemes; + }, + setHttpAuthSchemeProvider(httpAuthSchemeProvider) { + _httpAuthSchemeProvider = httpAuthSchemeProvider; + }, + httpAuthSchemeProvider() { + return _httpAuthSchemeProvider; + }, + setCredentials(credentials) { + _credentials = credentials; + }, + credentials() { + return _credentials; + }, + }; +}; +const resolveHttpAuthRuntimeConfig = (config) => { + return { + httpAuthSchemes: config.httpAuthSchemes(), + httpAuthSchemeProvider: config.httpAuthSchemeProvider(), + credentials: config.credentials(), + }; +}; + +const resolveRuntimeExtensions = (runtimeConfig, extensions) => { + const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); + extensions.forEach((extension) => extension.configure(extensionConfiguration)); + return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); +}; + +class CognitoIdentityClient extends Client { + config; + constructor(...[configuration]) { + const _config_0 = getRuntimeConfig(configuration || {}); + super(_config_0); + this.initConfig = _config_0; + const _config_1 = resolveClientEndpointParameters(_config_0); + const _config_2 = resolveUserAgentConfig(_config_1); + const _config_3 = resolveRetryConfig(_config_2); + const _config_4 = resolveRegionConfig(_config_3); + const _config_5 = resolveHostHeaderConfig(_config_4); + const _config_6 = resolveEndpointConfig(_config_5); + const _config_7 = resolveHttpAuthSchemeConfig(_config_6); + const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); + this.config = _config_8; + this.middlewareStack.use(getSchemaSerdePlugin(this.config)); + this.middlewareStack.use(getUserAgentPlugin(this.config)); + this.middlewareStack.use(getRetryPlugin(this.config)); + this.middlewareStack.use(getContentLengthPlugin(this.config)); + this.middlewareStack.use(getHostHeaderPlugin(this.config)); + this.middlewareStack.use(getLoggerPlugin(this.config)); + this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); + this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { + httpAuthSchemeParametersProvider: defaultCognitoIdentityHttpAuthSchemeParametersProvider, + identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ + "aws.auth#sigv4": config.credentials, + }), + })); + this.middlewareStack.use(getHttpSigningPlugin(this.config)); + } + destroy() { + super.destroy(); + } +} + +const command = makeBuilder(commonParams, "AWSCognitoIdentityService", "CognitoIdentityClient", getEndpointPlugin); +const _ep0 = {}; +const _mw0 = (Command, cs, config, o) => []; + +class GetCredentialsForIdentityCommand extends command(_ep0, _mw0, "GetCredentialsForIdentity", GetCredentialsForIdentity$) { +} + +class GetIdCommand extends command(_ep0, _mw0, "GetId", GetId$) { +} + +const commands = { + GetCredentialsForIdentityCommand, + GetIdCommand, +}; +class CognitoIdentity extends CognitoIdentityClient { +} +createAggregatedClient(commands, CognitoIdentity); + +exports.CognitoIdentity = CognitoIdentity; +exports.CognitoIdentityClient = CognitoIdentityClient; +exports.CognitoIdentityServiceException = CognitoIdentityServiceException; +exports.CognitoIdentityServiceException$ = CognitoIdentityServiceException$; +exports.Credentials$ = Credentials$; +exports.ExternalServiceException = ExternalServiceException; +exports.ExternalServiceException$ = ExternalServiceException$; +exports.GetCredentialsForIdentity$ = GetCredentialsForIdentity$; +exports.GetCredentialsForIdentityCommand = GetCredentialsForIdentityCommand; +exports.GetCredentialsForIdentityInput$ = GetCredentialsForIdentityInput$; +exports.GetCredentialsForIdentityResponse$ = GetCredentialsForIdentityResponse$; +exports.GetId$ = GetId$; +exports.GetIdCommand = GetIdCommand; +exports.GetIdInput$ = GetIdInput$; +exports.GetIdResponse$ = GetIdResponse$; +exports.InternalErrorException = InternalErrorException; +exports.InternalErrorException$ = InternalErrorException$; +exports.InvalidIdentityPoolConfigurationException = InvalidIdentityPoolConfigurationException; +exports.InvalidIdentityPoolConfigurationException$ = InvalidIdentityPoolConfigurationException$; +exports.InvalidParameterException = InvalidParameterException; +exports.InvalidParameterException$ = InvalidParameterException$; +exports.LimitExceededException = LimitExceededException; +exports.LimitExceededException$ = LimitExceededException$; +exports.NotAuthorizedException = NotAuthorizedException; +exports.NotAuthorizedException$ = NotAuthorizedException$; +exports.ResourceConflictException = ResourceConflictException; +exports.ResourceConflictException$ = ResourceConflictException$; +exports.ResourceNotFoundException = ResourceNotFoundException; +exports.ResourceNotFoundException$ = ResourceNotFoundException$; +exports.TooManyRequestsException = TooManyRequestsException; +exports.TooManyRequestsException$ = TooManyRequestsException$; +exports.errorTypeRegistries = errorTypeRegistries; + + +/***/ }), + +/***/ 99762: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = __nccwpck_require__(5152); +const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = __nccwpck_require__(90402); +const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = __nccwpck_require__(92658); +const { Command: $Command } = __nccwpck_require__(92658); +exports.$Command = $Command; +exports.__Client = Client; +const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = __nccwpck_require__(47291); +const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = __nccwpck_require__(62085); +const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = __nccwpck_require__(93422); +const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = __nccwpck_require__(23609); +const { TypeRegistry, getSchemaSerdePlugin } = __nccwpck_require__(26890); +const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = __nccwpck_require__(97523); +const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = __nccwpck_require__(92430); +const { streamCollector, NodeHttpHandler } = __nccwpck_require__(61279); +const { AwsRestJsonProtocol } = __nccwpck_require__(37288); +const { Sha256 } = __nccwpck_require__(99542); + +const defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => { + return { + operation: getSmithyContext(context).operation, + region: await normalizeProvider(config.region)() || (() => { + throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); + })(), + }; +}; +function createAwsAuthSigv4HttpAuthOption(authParameters) { + return { + schemeId: "aws.auth#sigv4", + signingProperties: { + name: "signin", + region: authParameters.region, + }, + propertiesExtractor: (config, context) => ({ + signingProperties: { + config, + context, + }, + }), + }; +} +function createSmithyApiNoAuthHttpAuthOption(authParameters) { + return { + schemeId: "smithy.api#noAuth", + }; +} +const defaultSigninHttpAuthSchemeProvider = (authParameters) => { + const options = []; + switch (authParameters.operation) { + case "CreateOAuth2Token": + { + options.push(createSmithyApiNoAuthHttpAuthOption()); + break; + } + default: { + options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); + } + } + return options; +}; +const resolveHttpAuthSchemeConfig = (config) => { + const config_0 = resolveAwsSdkSigV4Config(config); + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }); +}; + +const resolveClientEndpointParameters = (options) => { + return Object.assign(options, { + useDualstackEndpoint: options.useDualstackEndpoint ?? false, + useFipsEndpoint: options.useFipsEndpoint ?? false, + defaultSigningName: "signin", + }); +}; +const commonParams = { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, +}; + +var version = "3.997.32"; +var packageInfo = { + version: version}; + +const s = "ref"; +const a = -1, b = false, c = true, d = "isSet", e = "booleanEquals", f = "coalesce", g = "PartitionResult", h = "stringEquals", i = "getAttr", j = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k = { [s]: "Endpoint" }, l = { "fn": i, "argv": [{ [s]: g }, "name"] }, m = { [s]: "Region" }, n = { [s]: g }, o = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, p = {}, q = [m]; +const _data = { + conditions: [ + [d, q], + [e, [{ fn: f, argv: [{ [s]: "IsControlPlane" }, b] }, c]], + [d, [k]], + ["aws.partition", q, g], + [e, [{ [s]: "UseFIPS" }, c]], + [h, [l, "aws"]], + [e, [{ fn: f, argv: [{ [s]: "IsOAuthEndpoint" }, b] }, c]], + [e, [{ [s]: "UseDualStack" }, c]], + [h, [l, "aws-cn"]], + [h, [m, "us-gov-west-1"]], + [h, [l, "aws-us-gov"]], + [e, [{ fn: i, argv: [n, "supportsFIPS"] }, c]], + [h, [l, "aws-iso"]], + [h, [l, "aws-iso-b"]], + [h, [l, "aws-iso-f"]], + [h, [l, "aws-iso-e"]], + [h, [l, "aws-eusc"]], + [e, [{ fn: i, argv: [n, "supportsDualStack"] }, c]] + ], + results: [ + [a], + ["https://signin.{Region}.api.aws", o], + ["https://signin.{Region}.api.amazonwebservices.com.cn", o], + [j, o], + [a, "FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."], + ["https://{Region}.oauth.signin.aws", o], + ["https://{Region}.signin.aws.amazon.com", p], + ["https://{Region}.signin.amazonaws.cn", p], + ["https://{Region}.signin.amazonaws-us-gov.com", p], + ["https://{Region}.signin.c2shome.ic.gov", p], + ["https://{Region}.signin.sc2shome.sgov.gov", p], + ["https://{Region}.signin.csphome.hci.ic.gov", p], + ["https://{Region}.signin.csphome.adc-e.uk", p], + ["https://{Region}.signin.amazonaws-eusc.eu", p], + ["https://signin-fips.amazonaws-us-gov.com", p], + ["https://{Region}.signin-fips.amazonaws-us-gov.com", p], + ["https://{Region}.signin.{PartitionResult#dnsSuffix}", p], + [a, "Invalid Configuration: FIPS and custom endpoint are not supported"], + [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"], + [k, p], + ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", p], + [a, "FIPS and DualStack are enabled, but this partition does not support one or both"], + ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", p], + [a, "FIPS is enabled but this partition does not support FIPS"], + [j, p], + [a, "DualStack is enabled but this partition does not support DualStack"], + ["https://signin.{Region}.{PartitionResult#dnsSuffix}", p], + [a, "Invalid Configuration: Missing Region"] + ] +}; +const root = 2; +const r = 100_000_000; +const nodes = new Int32Array([ + -1, 1, -1, + 0, 6, 3, + 2, 36, 4, + 4, 5, r + 27, + 6, r + 4, r + 27, + 1, 29, 7, + 2, 36, 8, + 3, 9, 31, + 4, 22, 10, + 5, 19, 11, + 7, 21, 12, + 8, r + 7, 13, + 10, r + 8, 14, + 12, r + 9, 15, + 13, r + 10, 16, + 14, r + 11, 17, + 15, r + 12, 18, + 16, r + 13, r + 16, + 6, r + 5, 20, + 7, 21, r + 6, + 17, r + 24, r + 25, + 6, r + 4, 23, + 7, 27, 24, + 9, r + 14, 25, + 10, r + 15, 26, + 11, r + 22, r + 23, + 11, 28, r + 21, + 17, r + 20, r + 21, + 2, 35, 30, + 3, 39, 31, + 4, 32, r + 27, + 6, r + 4, 33, + 7, r + 27, 34, + 9, r + 14, r + 27, + 3, 39, 36, + 4, 38, 37, + 7, r + 18, r + 19, + 6, r + 4, r + 17, + 5, r + 1, 40, + 8, r + 2, r + 3, +]); +const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); + +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "IsControlPlane", "IsOAuthEndpoint", "Region", "UseDualStack", "UseFIPS"], +}); +const defaultEndpointResolver = (endpointParams, context = {}) => { + return cache.get(endpointParams, () => decideEndpoint(bdd, { + endpointParams: endpointParams, + logger: context.logger, + })); +}; +customEndpointFunctions.aws = awsEndpointFunctions; + +class SigninServiceException extends ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, SigninServiceException.prototype); + } +} + +class AccessDeniedException extends SigninServiceException { + name = "AccessDeniedException"; + $fault = "client"; + error; + constructor(opts) { + super({ + name: "AccessDeniedException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, AccessDeniedException.prototype); + this.error = opts.error; + } +} +class InternalServerException extends SigninServiceException { + name = "InternalServerException"; + $fault = "server"; + error; + constructor(opts) { + super({ + name: "InternalServerException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, InternalServerException.prototype); + this.error = opts.error; + } +} +class TooManyRequestsError extends SigninServiceException { + name = "TooManyRequestsError"; + $fault = "client"; + error; + constructor(opts) { + super({ + name: "TooManyRequestsError", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, TooManyRequestsError.prototype); + this.error = opts.error; + } +} +class ValidationException extends SigninServiceException { + name = "ValidationException"; + $fault = "client"; + error; + constructor(opts) { + super({ + name: "ValidationException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ValidationException.prototype); + this.error = opts.error; + } +} + +const _ADE = "AccessDeniedException"; +const _AT = "AccessToken"; +const _COAT = "CreateOAuth2Token"; +const _COATR = "CreateOAuth2TokenRequest"; +const _COATRB = "CreateOAuth2TokenRequestBody"; +const _COATRBr = "CreateOAuth2TokenResponseBody"; +const _COATRr = "CreateOAuth2TokenResponse"; +const _COATWIAM = "CreateOAuth2TokenWithIAM"; +const _COATWIAMR = "CreateOAuth2TokenWithIAMRequest"; +const _COATWIAMRr = "CreateOAuth2TokenWithIAMResponse"; +const _ISE = "InternalServerException"; +const _OAAT = "OAuthAccessToken"; +const _RT = "RefreshToken"; +const _TMRE = "TooManyRequestsError"; +const _VE = "ValidationException"; +const _aKI = "accessKeyId"; +const _aT = "accessToken"; +const _at = "access_token"; +const _c = "client"; +const _cI = "clientId"; +const _cV = "codeVerifier"; +const _co = "code"; +const _e = "error"; +const _eI = "expiresIn"; +const _ei = "expires_in"; +const _gT = "grantType"; +const _gt = "grant_type"; +const _h = "http"; +const _hE = "httpError"; +const _iT = "idToken"; +const _jN = "jsonName"; +const _m = "message"; +const _r = "resource"; +const _rT = "refreshToken"; +const _rU = "redirectUri"; +const _s = "smithy.ts.sdk.synthetic.com.amazonaws.signin"; +const _sAK = "secretAccessKey"; +const _sT = "sessionToken"; +const _se = "server"; +const _tI = "tokenInput"; +const _tO = "tokenOutput"; +const _tT = "tokenType"; +const _tt = "token_type"; +const n0 = "com.amazonaws.signin"; +const _s_registry = TypeRegistry.for(_s); +var SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []]; +_s_registry.registerError(SigninServiceException$, SigninServiceException); +const n0_registry = TypeRegistry.for(n0); +var AccessDeniedException$ = [-3, n0, _ADE, + { [_e]: _c }, + [_e, _m], + [0, 0], 2 +]; +n0_registry.registerError(AccessDeniedException$, AccessDeniedException); +var InternalServerException$ = [-3, n0, _ISE, + { [_e]: _se, [_hE]: 500 }, + [_e, _m], + [0, 0], 2 +]; +n0_registry.registerError(InternalServerException$, InternalServerException); +var TooManyRequestsError$ = [-3, n0, _TMRE, + { [_e]: _c, [_hE]: 429 }, + [_e, _m], + [0, 0], 2 +]; +n0_registry.registerError(TooManyRequestsError$, TooManyRequestsError); +var ValidationException$ = [-3, n0, _VE, + { [_e]: _c, [_hE]: 400 }, + [_e, _m], + [0, 0], 2 +]; +n0_registry.registerError(ValidationException$, ValidationException); +const errorTypeRegistries = [ + _s_registry, + n0_registry, +]; +var OAuthAccessToken = [0, n0, _OAAT, 8, 0]; +var RefreshToken = [0, n0, _RT, 8, 0]; +var AccessToken$ = [3, n0, _AT, + 8, + [_aKI, _sAK, _sT], + [[0, { [_jN]: _aKI }], [0, { [_jN]: _sAK }], [0, { [_jN]: _sT }]], 3 +]; +var CreateOAuth2TokenRequest$ = [3, n0, _COATR, + 0, + [_tI], + [[() => CreateOAuth2TokenRequestBody$, 16]], 1 +]; +var CreateOAuth2TokenRequestBody$ = [3, n0, _COATRB, + 0, + [_cI, _gT, _co, _rU, _cV, _rT], + [[0, { [_jN]: _cI }], [0, { [_jN]: _gT }], 0, [0, { [_jN]: _rU }], [0, { [_jN]: _cV }], [() => RefreshToken, { [_jN]: _rT }]], 2 +]; +var CreateOAuth2TokenResponse$ = [3, n0, _COATRr, + 0, + [_tO], + [[() => CreateOAuth2TokenResponseBody$, 16]], 1 +]; +var CreateOAuth2TokenResponseBody$ = [3, n0, _COATRBr, + 0, + [_aT, _tT, _eI, _rT, _iT], + [[() => AccessToken$, { [_jN]: _aT }], [0, { [_jN]: _tT }], [1, { [_jN]: _eI }], [() => RefreshToken, { [_jN]: _rT }], [0, { [_jN]: _iT }]], 4 +]; +var CreateOAuth2TokenWithIAMRequest$ = [3, n0, _COATWIAMR, + 0, + [_gT, _r], + [[0, { [_jN]: _gt }], 0], 2 +]; +var CreateOAuth2TokenWithIAMResponse$ = [3, n0, _COATWIAMRr, + 0, + [_aT, _tT, _eI], + [[() => OAuthAccessToken, { [_jN]: _at }], [0, { [_jN]: _tt }], [1, { [_jN]: _ei }]], 3 +]; +var CreateOAuth2Token$ = [9, n0, _COAT, + { [_h]: ["POST", "/v1/token", 200] }, () => CreateOAuth2TokenRequest$, () => CreateOAuth2TokenResponse$ +]; +var CreateOAuth2TokenWithIAM$ = [9, n0, _COATWIAM, + { [_h]: ["POST", "/v1/token?x-amz-client-auth-method=iam", 200] }, () => CreateOAuth2TokenWithIAMRequest$, () => CreateOAuth2TokenWithIAMResponse$ +]; + +const getRuntimeConfig$1 = (config) => { + return { + apiVersion: "2023-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSigninHttpAuthSchemeProvider, + httpAuthSchemes: config?.httpAuthSchemes ?? [ + { + schemeId: "aws.auth#sigv4", + identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), + signer: new AwsSdkSigV4Signer(), + }, + { + schemeId: "smithy.api#noAuth", + identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), + signer: new NoAuthSigner(), + }, + ], + logger: config?.logger ?? new NoOpLogger(), + protocol: config?.protocol ?? AwsRestJsonProtocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.signin", + errorTypeRegistries, + version: "2023-01-01", + serviceTarget: "Signin", + }, + serviceId: config?.serviceId ?? "Signin", + sha256: config?.sha256 ?? Sha256, + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; + +const getRuntimeConfig = (config) => { + emitWarningIfUnsupportedVersion(process.version); + const defaultsMode = resolveDefaultsModeConfig(config); + const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); + const clientSharedValues = getRuntimeConfig$1(config); + emitWarningIfUnsupportedVersion$1(process.version); + const loaderConfig = { + profile: config?.profile, + logger: clientSharedValues.logger, + }; + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), + bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, + defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), + maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), + region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), + requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), + retryMode: config?.retryMode ?? + loadConfig({ + ...NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, + }, config), + streamCollector: config?.streamCollector ?? streamCollector, + useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), + }; +}; + +const getHttpAuthExtensionConfiguration = (runtimeConfig) => { + const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; + let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; + let _credentials = runtimeConfig.credentials; + return { + setHttpAuthScheme(httpAuthScheme) { + const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); + if (index === -1) { + _httpAuthSchemes.push(httpAuthScheme); + } + else { + _httpAuthSchemes.splice(index, 1, httpAuthScheme); + } + }, + httpAuthSchemes() { + return _httpAuthSchemes; + }, + setHttpAuthSchemeProvider(httpAuthSchemeProvider) { + _httpAuthSchemeProvider = httpAuthSchemeProvider; + }, + httpAuthSchemeProvider() { + return _httpAuthSchemeProvider; + }, + setCredentials(credentials) { + _credentials = credentials; + }, + credentials() { + return _credentials; + }, + }; +}; +const resolveHttpAuthRuntimeConfig = (config) => { + return { + httpAuthSchemes: config.httpAuthSchemes(), + httpAuthSchemeProvider: config.httpAuthSchemeProvider(), + credentials: config.credentials(), + }; +}; + +const resolveRuntimeExtensions = (runtimeConfig, extensions) => { + const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); + extensions.forEach((extension) => extension.configure(extensionConfiguration)); + return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); +}; + +class SigninClient extends Client { + config; + constructor(...[configuration]) { + const _config_0 = getRuntimeConfig(configuration || {}); + super(_config_0); + this.initConfig = _config_0; + const _config_1 = resolveClientEndpointParameters(_config_0); + const _config_2 = resolveUserAgentConfig(_config_1); + const _config_3 = resolveRetryConfig(_config_2); + const _config_4 = resolveRegionConfig(_config_3); + const _config_5 = resolveHostHeaderConfig(_config_4); + const _config_6 = resolveEndpointConfig(_config_5); + const _config_7 = resolveHttpAuthSchemeConfig(_config_6); + const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); + this.config = _config_8; + this.middlewareStack.use(getSchemaSerdePlugin(this.config)); + this.middlewareStack.use(getUserAgentPlugin(this.config)); + this.middlewareStack.use(getRetryPlugin(this.config)); + this.middlewareStack.use(getContentLengthPlugin(this.config)); + this.middlewareStack.use(getHostHeaderPlugin(this.config)); + this.middlewareStack.use(getLoggerPlugin(this.config)); + this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); + this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { + httpAuthSchemeParametersProvider: defaultSigninHttpAuthSchemeParametersProvider, + identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ + "aws.auth#sigv4": config.credentials, + }), + })); + this.middlewareStack.use(getHttpSigningPlugin(this.config)); + } + destroy() { + super.destroy(); + } +} + +const command = makeBuilder(commonParams, "Signin", "SigninClient", getEndpointPlugin); +const _ep0 = { + IsControlPlane: { type: "staticContextParams", value: false }, +}; +const _ep1 = { + IsOAuthEndpoint: { type: "staticContextParams", value: true }, +}; +const _mw0 = (Command, cs, config, o) => []; + +class CreateOAuth2TokenCommand extends command(_ep0, _mw0, "CreateOAuth2Token", CreateOAuth2Token$) { +} + +class CreateOAuth2TokenWithIAMCommand extends command(_ep1, _mw0, "CreateOAuth2TokenWithIAM", CreateOAuth2TokenWithIAM$) { +} + +const commands = { + CreateOAuth2TokenCommand, + CreateOAuth2TokenWithIAMCommand, +}; +class Signin extends SigninClient { +} +createAggregatedClient(commands, Signin); + +const OAuth2ErrorCode = { + AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED", + CONFLICT: "CONFLICT", + INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS", + INVALID_REQUEST: "INVALID_REQUEST", + RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND", + SERVER_ERROR: "server_error", + SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED", + TOKEN_EXPIRED: "TOKEN_EXPIRED", + USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED", +}; + +exports.AccessDeniedException = AccessDeniedException; +exports.AccessDeniedException$ = AccessDeniedException$; +exports.AccessToken$ = AccessToken$; +exports.CreateOAuth2Token$ = CreateOAuth2Token$; +exports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand; +exports.CreateOAuth2TokenRequest$ = CreateOAuth2TokenRequest$; +exports.CreateOAuth2TokenRequestBody$ = CreateOAuth2TokenRequestBody$; +exports.CreateOAuth2TokenResponse$ = CreateOAuth2TokenResponse$; +exports.CreateOAuth2TokenResponseBody$ = CreateOAuth2TokenResponseBody$; +exports.CreateOAuth2TokenWithIAM$ = CreateOAuth2TokenWithIAM$; +exports.CreateOAuth2TokenWithIAMCommand = CreateOAuth2TokenWithIAMCommand; +exports.CreateOAuth2TokenWithIAMRequest$ = CreateOAuth2TokenWithIAMRequest$; +exports.CreateOAuth2TokenWithIAMResponse$ = CreateOAuth2TokenWithIAMResponse$; +exports.InternalServerException = InternalServerException; +exports.InternalServerException$ = InternalServerException$; +exports.OAuth2ErrorCode = OAuth2ErrorCode; +exports.Signin = Signin; +exports.SigninClient = SigninClient; +exports.SigninServiceException = SigninServiceException; +exports.SigninServiceException$ = SigninServiceException$; +exports.TooManyRequestsError = TooManyRequestsError; +exports.TooManyRequestsError$ = TooManyRequestsError$; +exports.ValidationException = ValidationException; +exports.ValidationException$ = ValidationException$; +exports.errorTypeRegistries = errorTypeRegistries; + + +/***/ }), + +/***/ 89443: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = __nccwpck_require__(5152); +const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = __nccwpck_require__(90402); +const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = __nccwpck_require__(92658); +const { Command: $Command } = __nccwpck_require__(92658); +exports.$Command = $Command; +exports.__Client = Client; +const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = __nccwpck_require__(47291); +const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = __nccwpck_require__(62085); +const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = __nccwpck_require__(93422); +const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = __nccwpck_require__(23609); +const { TypeRegistry, getSchemaSerdePlugin } = __nccwpck_require__(26890); +const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = __nccwpck_require__(97523); +const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = __nccwpck_require__(92430); +const { streamCollector, NodeHttpHandler } = __nccwpck_require__(61279); +const { AwsRestJsonProtocol } = __nccwpck_require__(37288); +const { Sha256 } = __nccwpck_require__(99542); + +const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => { + return { + operation: getSmithyContext(context).operation, + region: await normalizeProvider(config.region)() || (() => { + throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); + })(), + }; +}; +function createAwsAuthSigv4HttpAuthOption(authParameters) { + return { + schemeId: "aws.auth#sigv4", + signingProperties: { + name: "sso-oauth", + region: authParameters.region, + }, + propertiesExtractor: (config, context) => ({ + signingProperties: { + config, + context, + }, + }), + }; +} +function createSmithyApiNoAuthHttpAuthOption(authParameters) { + return { + schemeId: "smithy.api#noAuth", + }; +} +const defaultSSOOIDCHttpAuthSchemeProvider = (authParameters) => { + const options = []; + switch (authParameters.operation) { + case "CreateToken": + { + options.push(createSmithyApiNoAuthHttpAuthOption()); + break; + } + default: { + options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); + } + } + return options; +}; +const resolveHttpAuthSchemeConfig = (config) => { + const config_0 = resolveAwsSdkSigV4Config(config); + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }); +}; + +const resolveClientEndpointParameters = (options) => { + return Object.assign(options, { + useDualstackEndpoint: options.useDualstackEndpoint ?? false, + useFipsEndpoint: options.useFipsEndpoint ?? false, + defaultSigningName: "sso-oauth", + }); +}; +const commonParams = { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, +}; + +var version = "3.997.32"; +var packageInfo = { + version: version}; + +const k = "ref"; +const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }]; +const _data = { + conditions: [ + [c, [g]], + [c, j], + ["aws.partition", j, d], + [e, [{ [k]: "UseFIPS" }, b]], + [e, [{ [k]: "UseDualStack" }, b]], + [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]], + [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]], + ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]] + ], + results: [ + [a], + [a, "Invalid Configuration: FIPS and custom endpoint are not supported"], + [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"], + [g, i], + ["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i], + [a, "FIPS and DualStack are enabled, but this partition does not support one or both"], + ["https://oidc.{Region}.amazonaws.com", i], + ["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", i], + [a, "FIPS is enabled but this partition does not support FIPS"], + ["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", i], + [a, "DualStack is enabled but this partition does not support DualStack"], + ["https://oidc.{Region}.{PartitionResult#dnsSuffix}", i], + [a, "Invalid Configuration: Missing Region"] + ] +}; +const root = 2; +const r = 100_000_000; +const nodes = new Int32Array([ + -1, 1, -1, + 0, 13, 3, + 1, 4, r + 12, + 2, 5, r + 12, + 3, 8, 6, + 4, 7, r + 11, + 5, r + 9, r + 10, + 4, 11, 9, + 6, 10, r + 8, + 7, r + 6, r + 7, + 5, 12, r + 5, + 6, r + 4, r + 5, + 3, r + 1, 14, + 4, r + 2, r + 3, +]); +const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); + +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); +const defaultEndpointResolver = (endpointParams, context = {}) => { + return cache.get(endpointParams, () => decideEndpoint(bdd, { + endpointParams: endpointParams, + logger: context.logger, + })); +}; +customEndpointFunctions.aws = awsEndpointFunctions; + +class SSOOIDCServiceException extends ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, SSOOIDCServiceException.prototype); + } +} + +class AccessDeniedException extends SSOOIDCServiceException { + name = "AccessDeniedException"; + $fault = "client"; + error; + reason; + error_description; + constructor(opts) { + super({ + name: "AccessDeniedException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, AccessDeniedException.prototype); + this.error = opts.error; + this.reason = opts.reason; + this.error_description = opts.error_description; + } +} +class AuthorizationPendingException extends SSOOIDCServiceException { + name = "AuthorizationPendingException"; + $fault = "client"; + error; + error_description; + constructor(opts) { + super({ + name: "AuthorizationPendingException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, AuthorizationPendingException.prototype); + this.error = opts.error; + this.error_description = opts.error_description; + } +} +class ExpiredTokenException extends SSOOIDCServiceException { + name = "ExpiredTokenException"; + $fault = "client"; + error; + error_description; + constructor(opts) { + super({ + name: "ExpiredTokenException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ExpiredTokenException.prototype); + this.error = opts.error; + this.error_description = opts.error_description; + } +} +class InternalServerException extends SSOOIDCServiceException { + name = "InternalServerException"; + $fault = "server"; + error; + error_description; + constructor(opts) { + super({ + name: "InternalServerException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, InternalServerException.prototype); + this.error = opts.error; + this.error_description = opts.error_description; + } +} +class InvalidClientException extends SSOOIDCServiceException { + name = "InvalidClientException"; + $fault = "client"; + error; + error_description; + constructor(opts) { + super({ + name: "InvalidClientException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, InvalidClientException.prototype); + this.error = opts.error; + this.error_description = opts.error_description; + } +} +class InvalidGrantException extends SSOOIDCServiceException { + name = "InvalidGrantException"; + $fault = "client"; + error; + error_description; + constructor(opts) { + super({ + name: "InvalidGrantException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, InvalidGrantException.prototype); + this.error = opts.error; + this.error_description = opts.error_description; + } +} +class InvalidRequestException extends SSOOIDCServiceException { + name = "InvalidRequestException"; + $fault = "client"; + error; + reason; + error_description; + constructor(opts) { + super({ + name: "InvalidRequestException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, InvalidRequestException.prototype); + this.error = opts.error; + this.reason = opts.reason; + this.error_description = opts.error_description; + } +} +class InvalidScopeException extends SSOOIDCServiceException { + name = "InvalidScopeException"; + $fault = "client"; + error; + error_description; + constructor(opts) { + super({ + name: "InvalidScopeException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, InvalidScopeException.prototype); + this.error = opts.error; + this.error_description = opts.error_description; + } +} +class SlowDownException extends SSOOIDCServiceException { + name = "SlowDownException"; + $fault = "client"; + error; + error_description; + constructor(opts) { + super({ + name: "SlowDownException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, SlowDownException.prototype); + this.error = opts.error; + this.error_description = opts.error_description; + } +} +class UnauthorizedClientException extends SSOOIDCServiceException { + name = "UnauthorizedClientException"; + $fault = "client"; + error; + error_description; + constructor(opts) { + super({ + name: "UnauthorizedClientException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, UnauthorizedClientException.prototype); + this.error = opts.error; + this.error_description = opts.error_description; + } +} +class UnsupportedGrantTypeException extends SSOOIDCServiceException { + name = "UnsupportedGrantTypeException"; + $fault = "client"; + error; + error_description; + constructor(opts) { + super({ + name: "UnsupportedGrantTypeException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype); + this.error = opts.error; + this.error_description = opts.error_description; + } +} + +const _ADE = "AccessDeniedException"; +const _APE = "AuthorizationPendingException"; +const _AT = "AccessToken"; +const _CS = "ClientSecret"; +const _CT = "CreateToken"; +const _CTR = "CreateTokenRequest"; +const _CTRr = "CreateTokenResponse"; +const _CV = "CodeVerifier"; +const _ETE = "ExpiredTokenException"; +const _ICE = "InvalidClientException"; +const _IGE = "InvalidGrantException"; +const _IRE = "InvalidRequestException"; +const _ISE = "InternalServerException"; +const _ISEn = "InvalidScopeException"; +const _IT = "IdToken"; +const _RT = "RefreshToken"; +const _SDE = "SlowDownException"; +const _UCE = "UnauthorizedClientException"; +const _UGTE = "UnsupportedGrantTypeException"; +const _aT = "accessToken"; +const _c = "client"; +const _cI = "clientId"; +const _cS = "clientSecret"; +const _cV = "codeVerifier"; +const _co = "code"; +const _dC = "deviceCode"; +const _e = "error"; +const _eI = "expiresIn"; +const _ed = "error_description"; +const _gT = "grantType"; +const _h = "http"; +const _hE = "httpError"; +const _iT = "idToken"; +const _r = "reason"; +const _rT = "refreshToken"; +const _rU = "redirectUri"; +const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc"; +const _sc = "scope"; +const _se = "server"; +const _tT = "tokenType"; +const n0 = "com.amazonaws.ssooidc"; +const _s_registry = TypeRegistry.for(_s); +var SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []]; +_s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException); +const n0_registry = TypeRegistry.for(n0); +var AccessDeniedException$ = [-3, n0, _ADE, + { [_e]: _c, [_hE]: 400 }, + [_e, _r, _ed], + [0, 0, 0] +]; +n0_registry.registerError(AccessDeniedException$, AccessDeniedException); +var AuthorizationPendingException$ = [-3, n0, _APE, + { [_e]: _c, [_hE]: 400 }, + [_e, _ed], + [0, 0] +]; +n0_registry.registerError(AuthorizationPendingException$, AuthorizationPendingException); +var ExpiredTokenException$ = [-3, n0, _ETE, + { [_e]: _c, [_hE]: 400 }, + [_e, _ed], + [0, 0] +]; +n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException); +var InternalServerException$ = [-3, n0, _ISE, + { [_e]: _se, [_hE]: 500 }, + [_e, _ed], + [0, 0] +]; +n0_registry.registerError(InternalServerException$, InternalServerException); +var InvalidClientException$ = [-3, n0, _ICE, + { [_e]: _c, [_hE]: 401 }, + [_e, _ed], + [0, 0] +]; +n0_registry.registerError(InvalidClientException$, InvalidClientException); +var InvalidGrantException$ = [-3, n0, _IGE, + { [_e]: _c, [_hE]: 400 }, + [_e, _ed], + [0, 0] +]; +n0_registry.registerError(InvalidGrantException$, InvalidGrantException); +var InvalidRequestException$ = [-3, n0, _IRE, + { [_e]: _c, [_hE]: 400 }, + [_e, _r, _ed], + [0, 0, 0] +]; +n0_registry.registerError(InvalidRequestException$, InvalidRequestException); +var InvalidScopeException$ = [-3, n0, _ISEn, + { [_e]: _c, [_hE]: 400 }, + [_e, _ed], + [0, 0] +]; +n0_registry.registerError(InvalidScopeException$, InvalidScopeException); +var SlowDownException$ = [-3, n0, _SDE, + { [_e]: _c, [_hE]: 400 }, + [_e, _ed], + [0, 0] +]; +n0_registry.registerError(SlowDownException$, SlowDownException); +var UnauthorizedClientException$ = [-3, n0, _UCE, + { [_e]: _c, [_hE]: 400 }, + [_e, _ed], + [0, 0] +]; +n0_registry.registerError(UnauthorizedClientException$, UnauthorizedClientException); +var UnsupportedGrantTypeException$ = [-3, n0, _UGTE, + { [_e]: _c, [_hE]: 400 }, + [_e, _ed], + [0, 0] +]; +n0_registry.registerError(UnsupportedGrantTypeException$, UnsupportedGrantTypeException); +const errorTypeRegistries = [ + _s_registry, + n0_registry, +]; +var AccessToken = [0, n0, _AT, 8, 0]; +var ClientSecret = [0, n0, _CS, 8, 0]; +var CodeVerifier = [0, n0, _CV, 8, 0]; +var IdToken = [0, n0, _IT, 8, 0]; +var RefreshToken = [0, n0, _RT, 8, 0]; +var CreateTokenRequest$ = [3, n0, _CTR, + 0, + [_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV], + [0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]], 3 +]; +var CreateTokenResponse$ = [3, n0, _CTRr, + 0, + [_aT, _tT, _eI, _rT, _iT], + [[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]] +]; +var CreateToken$ = [9, n0, _CT, + { [_h]: ["POST", "/token", 200] }, () => CreateTokenRequest$, () => CreateTokenResponse$ +]; + +const getRuntimeConfig$1 = (config) => { + return { + apiVersion: "2019-06-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider, + httpAuthSchemes: config?.httpAuthSchemes ?? [ + { + schemeId: "aws.auth#sigv4", + identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), + signer: new AwsSdkSigV4Signer(), + }, + { + schemeId: "smithy.api#noAuth", + identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), + signer: new NoAuthSigner(), + }, + ], + logger: config?.logger ?? new NoOpLogger(), + protocol: config?.protocol ?? AwsRestJsonProtocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.ssooidc", + errorTypeRegistries, + version: "2019-06-10", + serviceTarget: "AWSSSOOIDCService", + }, + serviceId: config?.serviceId ?? "SSO OIDC", + sha256: config?.sha256 ?? Sha256, + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; + +const getRuntimeConfig = (config) => { + emitWarningIfUnsupportedVersion(process.version); + const defaultsMode = resolveDefaultsModeConfig(config); + const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); + const clientSharedValues = getRuntimeConfig$1(config); + emitWarningIfUnsupportedVersion$1(process.version); + const loaderConfig = { + profile: config?.profile, + logger: clientSharedValues.logger, + }; + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), + bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, + defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), + maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), + region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), + requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), + retryMode: config?.retryMode ?? + loadConfig({ + ...NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, + }, config), + streamCollector: config?.streamCollector ?? streamCollector, + useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), + }; +}; + +const getHttpAuthExtensionConfiguration = (runtimeConfig) => { + const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; + let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; + let _credentials = runtimeConfig.credentials; + return { + setHttpAuthScheme(httpAuthScheme) { + const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); + if (index === -1) { + _httpAuthSchemes.push(httpAuthScheme); + } + else { + _httpAuthSchemes.splice(index, 1, httpAuthScheme); + } + }, + httpAuthSchemes() { + return _httpAuthSchemes; + }, + setHttpAuthSchemeProvider(httpAuthSchemeProvider) { + _httpAuthSchemeProvider = httpAuthSchemeProvider; + }, + httpAuthSchemeProvider() { + return _httpAuthSchemeProvider; + }, + setCredentials(credentials) { + _credentials = credentials; + }, + credentials() { + return _credentials; + }, + }; +}; +const resolveHttpAuthRuntimeConfig = (config) => { + return { + httpAuthSchemes: config.httpAuthSchemes(), + httpAuthSchemeProvider: config.httpAuthSchemeProvider(), + credentials: config.credentials(), + }; +}; + +const resolveRuntimeExtensions = (runtimeConfig, extensions) => { + const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); + extensions.forEach((extension) => extension.configure(extensionConfiguration)); + return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); +}; + +class SSOOIDCClient extends Client { + config; + constructor(...[configuration]) { + const _config_0 = getRuntimeConfig(configuration || {}); + super(_config_0); + this.initConfig = _config_0; + const _config_1 = resolveClientEndpointParameters(_config_0); + const _config_2 = resolveUserAgentConfig(_config_1); + const _config_3 = resolveRetryConfig(_config_2); + const _config_4 = resolveRegionConfig(_config_3); + const _config_5 = resolveHostHeaderConfig(_config_4); + const _config_6 = resolveEndpointConfig(_config_5); + const _config_7 = resolveHttpAuthSchemeConfig(_config_6); + const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); + this.config = _config_8; + this.middlewareStack.use(getSchemaSerdePlugin(this.config)); + this.middlewareStack.use(getUserAgentPlugin(this.config)); + this.middlewareStack.use(getRetryPlugin(this.config)); + this.middlewareStack.use(getContentLengthPlugin(this.config)); + this.middlewareStack.use(getHostHeaderPlugin(this.config)); + this.middlewareStack.use(getLoggerPlugin(this.config)); + this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); + this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { + httpAuthSchemeParametersProvider: defaultSSOOIDCHttpAuthSchemeParametersProvider, + identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ + "aws.auth#sigv4": config.credentials, + }), + })); + this.middlewareStack.use(getHttpSigningPlugin(this.config)); + } + destroy() { + super.destroy(); + } +} + +const command = makeBuilder(commonParams, "AWSSSOOIDCService", "SSOOIDCClient", getEndpointPlugin); +const _ep0 = {}; +const _mw0 = (Command, cs, config, o) => []; + +class CreateTokenCommand extends command(_ep0, _mw0, "CreateToken", CreateToken$) { +} + +const commands = { + CreateTokenCommand, +}; +class SSOOIDC extends SSOOIDCClient { +} +createAggregatedClient(commands, SSOOIDC); + +const AccessDeniedExceptionReason = { + KMS_ACCESS_DENIED: "KMS_AccessDeniedException", +}; +const InvalidRequestExceptionReason = { + KMS_DISABLED_KEY: "KMS_DisabledException", + KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException", + KMS_INVALID_STATE: "KMS_InvalidStateException", + KMS_KEY_NOT_FOUND: "KMS_NotFoundException", +}; + +exports.AccessDeniedException = AccessDeniedException; +exports.AccessDeniedException$ = AccessDeniedException$; +exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason; +exports.AuthorizationPendingException = AuthorizationPendingException; +exports.AuthorizationPendingException$ = AuthorizationPendingException$; +exports.CreateToken$ = CreateToken$; +exports.CreateTokenCommand = CreateTokenCommand; +exports.CreateTokenRequest$ = CreateTokenRequest$; +exports.CreateTokenResponse$ = CreateTokenResponse$; +exports.ExpiredTokenException = ExpiredTokenException; +exports.ExpiredTokenException$ = ExpiredTokenException$; +exports.InternalServerException = InternalServerException; +exports.InternalServerException$ = InternalServerException$; +exports.InvalidClientException = InvalidClientException; +exports.InvalidClientException$ = InvalidClientException$; +exports.InvalidGrantException = InvalidGrantException; +exports.InvalidGrantException$ = InvalidGrantException$; +exports.InvalidRequestException = InvalidRequestException; +exports.InvalidRequestException$ = InvalidRequestException$; +exports.InvalidRequestExceptionReason = InvalidRequestExceptionReason; +exports.InvalidScopeException = InvalidScopeException; +exports.InvalidScopeException$ = InvalidScopeException$; +exports.SSOOIDC = SSOOIDC; +exports.SSOOIDCClient = SSOOIDCClient; +exports.SSOOIDCServiceException = SSOOIDCServiceException; +exports.SSOOIDCServiceException$ = SSOOIDCServiceException$; +exports.SlowDownException = SlowDownException; +exports.SlowDownException$ = SlowDownException$; +exports.UnauthorizedClientException = UnauthorizedClientException; +exports.UnauthorizedClientException$ = UnauthorizedClientException$; +exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException; +exports.UnsupportedGrantTypeException$ = UnsupportedGrantTypeException$; +exports.errorTypeRegistries = errorTypeRegistries; + + +/***/ }), + +/***/ 32579: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = __nccwpck_require__(5152); +const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = __nccwpck_require__(90402); +const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = __nccwpck_require__(92658); +const { Command: $Command } = __nccwpck_require__(92658); +exports.$Command = $Command; +exports.__Client = Client; +const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = __nccwpck_require__(47291); +const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = __nccwpck_require__(62085); +const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = __nccwpck_require__(93422); +const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = __nccwpck_require__(23609); +const { TypeRegistry, getSchemaSerdePlugin } = __nccwpck_require__(26890); +const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = __nccwpck_require__(97523); +const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = __nccwpck_require__(92430); +const { streamCollector, NodeHttpHandler } = __nccwpck_require__(61279); +const { AwsRestJsonProtocol } = __nccwpck_require__(37288); +const { Sha256 } = __nccwpck_require__(99542); + +const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => { + return { + operation: getSmithyContext(context).operation, + region: await normalizeProvider(config.region)() || (() => { + throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); + })(), + }; +}; +function createAwsAuthSigv4HttpAuthOption(authParameters) { + return { + schemeId: "aws.auth#sigv4", + signingProperties: { + name: "awsssoportal", + region: authParameters.region, + }, + propertiesExtractor: (config, context) => ({ + signingProperties: { + config, + context, + }, + }), + }; +} +function createSmithyApiNoAuthHttpAuthOption(authParameters) { + return { + schemeId: "smithy.api#noAuth", + }; +} +const defaultSSOHttpAuthSchemeProvider = (authParameters) => { + const options = []; + switch (authParameters.operation) { + case "GetRoleCredentials": + { + options.push(createSmithyApiNoAuthHttpAuthOption()); + break; + } + default: { + options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); + } + } + return options; +}; +const resolveHttpAuthSchemeConfig = (config) => { + const config_0 = resolveAwsSdkSigV4Config(config); + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }); +}; + +const resolveClientEndpointParameters = (options) => { + return Object.assign(options, { + useDualstackEndpoint: options.useDualstackEndpoint ?? false, + useFipsEndpoint: options.useFipsEndpoint ?? false, + defaultSigningName: "awsssoportal", + }); +}; +const commonParams = { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, +}; + +var version = "3.997.32"; +var packageInfo = { + version: version}; + +const k = "ref"; +const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }]; +const _data = { + conditions: [ + [c, [g]], + [c, j], + ["aws.partition", j, d], + [e, [{ [k]: "UseFIPS" }, b]], + [e, [{ [k]: "UseDualStack" }, b]], + [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]], + [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]], + ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]] + ], + results: [ + [a], + [a, "Invalid Configuration: FIPS and custom endpoint are not supported"], + [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"], + [g, i], + ["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i], + [a, "FIPS and DualStack are enabled, but this partition does not support one or both"], + ["https://portal.sso.{Region}.amazonaws.com", i], + ["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", i], + [a, "FIPS is enabled but this partition does not support FIPS"], + ["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", i], + [a, "DualStack is enabled but this partition does not support DualStack"], + ["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", i], + [a, "Invalid Configuration: Missing Region"] + ] +}; +const root = 2; +const r = 100_000_000; +const nodes = new Int32Array([ + -1, 1, -1, + 0, 13, 3, + 1, 4, r + 12, + 2, 5, r + 12, + 3, 8, 6, + 4, 7, r + 11, + 5, r + 9, r + 10, + 4, 11, 9, + 6, 10, r + 8, + 7, r + 6, r + 7, + 5, 12, r + 5, + 6, r + 4, r + 5, + 3, r + 1, 14, + 4, r + 2, r + 3, +]); +const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); + +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); +const defaultEndpointResolver = (endpointParams, context = {}) => { + return cache.get(endpointParams, () => decideEndpoint(bdd, { + endpointParams: endpointParams, + logger: context.logger, + })); +}; +customEndpointFunctions.aws = awsEndpointFunctions; + +class SSOServiceException extends ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, SSOServiceException.prototype); + } +} + +class InvalidRequestException extends SSOServiceException { + name = "InvalidRequestException"; + $fault = "client"; + constructor(opts) { + super({ + name: "InvalidRequestException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, InvalidRequestException.prototype); + } +} +class ResourceNotFoundException extends SSOServiceException { + name = "ResourceNotFoundException"; + $fault = "client"; + constructor(opts) { + super({ + name: "ResourceNotFoundException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ResourceNotFoundException.prototype); + } +} +class TooManyRequestsException extends SSOServiceException { + name = "TooManyRequestsException"; + $fault = "client"; + constructor(opts) { + super({ + name: "TooManyRequestsException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, TooManyRequestsException.prototype); + } +} +class UnauthorizedException extends SSOServiceException { + name = "UnauthorizedException"; + $fault = "client"; + constructor(opts) { + super({ + name: "UnauthorizedException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, UnauthorizedException.prototype); + } +} + +const _ATT = "AccessTokenType"; +const _GRC = "GetRoleCredentials"; +const _GRCR = "GetRoleCredentialsRequest"; +const _GRCRe = "GetRoleCredentialsResponse"; +const _IRE = "InvalidRequestException"; +const _RC = "RoleCredentials"; +const _RNFE = "ResourceNotFoundException"; +const _SAKT = "SecretAccessKeyType"; +const _STT = "SessionTokenType"; +const _TMRE = "TooManyRequestsException"; +const _UE = "UnauthorizedException"; +const _aI = "accountId"; +const _aKI = "accessKeyId"; +const _aT = "accessToken"; +const _ai = "account_id"; +const _c = "client"; +const _e = "error"; +const _ex = "expiration"; +const _h = "http"; +const _hE = "httpError"; +const _hH = "httpHeader"; +const _hQ = "httpQuery"; +const _m = "message"; +const _rC = "roleCredentials"; +const _rN = "roleName"; +const _rn = "role_name"; +const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sso"; +const _sAK = "secretAccessKey"; +const _sT = "sessionToken"; +const _xasbt = "x-amz-sso_bearer_token"; +const n0 = "com.amazonaws.sso"; +const _s_registry = TypeRegistry.for(_s); +var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []]; +_s_registry.registerError(SSOServiceException$, SSOServiceException); +const n0_registry = TypeRegistry.for(n0); +var InvalidRequestException$ = [-3, n0, _IRE, + { [_e]: _c, [_hE]: 400 }, + [_m], + [0] +]; +n0_registry.registerError(InvalidRequestException$, InvalidRequestException); +var ResourceNotFoundException$ = [-3, n0, _RNFE, + { [_e]: _c, [_hE]: 404 }, + [_m], + [0] +]; +n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException); +var TooManyRequestsException$ = [-3, n0, _TMRE, + { [_e]: _c, [_hE]: 429 }, + [_m], + [0] +]; +n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException); +var UnauthorizedException$ = [-3, n0, _UE, + { [_e]: _c, [_hE]: 401 }, + [_m], + [0] +]; +n0_registry.registerError(UnauthorizedException$, UnauthorizedException); +const errorTypeRegistries = [ + _s_registry, + n0_registry, +]; +var AccessTokenType = [0, n0, _ATT, 8, 0]; +var SecretAccessKeyType = [0, n0, _SAKT, 8, 0]; +var SessionTokenType = [0, n0, _STT, 8, 0]; +var GetRoleCredentialsRequest$ = [3, n0, _GRCR, + 0, + [_rN, _aI, _aT], + [[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]], 3 +]; +var GetRoleCredentialsResponse$ = [3, n0, _GRCRe, + 0, + [_rC], + [[() => RoleCredentials$, 0]] +]; +var RoleCredentials$ = [3, n0, _RC, + 0, + [_aKI, _sAK, _sT, _ex], + [0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1] +]; +var GetRoleCredentials$ = [9, n0, _GRC, + { [_h]: ["GET", "/federation/credentials", 200] }, () => GetRoleCredentialsRequest$, () => GetRoleCredentialsResponse$ +]; + +const getRuntimeConfig$1 = (config) => { + return { + apiVersion: "2019-06-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOHttpAuthSchemeProvider, + httpAuthSchemes: config?.httpAuthSchemes ?? [ + { + schemeId: "aws.auth#sigv4", + identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), + signer: new AwsSdkSigV4Signer(), + }, + { + schemeId: "smithy.api#noAuth", + identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), + signer: new NoAuthSigner(), + }, + ], + logger: config?.logger ?? new NoOpLogger(), + protocol: config?.protocol ?? AwsRestJsonProtocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.sso", + errorTypeRegistries, + version: "2019-06-10", + serviceTarget: "SWBPortalService", + }, + serviceId: config?.serviceId ?? "SSO", + sha256: config?.sha256 ?? Sha256, + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; + +const getRuntimeConfig = (config) => { + emitWarningIfUnsupportedVersion(process.version); + const defaultsMode = resolveDefaultsModeConfig(config); + const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); + const clientSharedValues = getRuntimeConfig$1(config); + emitWarningIfUnsupportedVersion$1(process.version); + const loaderConfig = { + profile: config?.profile, + logger: clientSharedValues.logger, + }; + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), + bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, + defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), + maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), + region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), + requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), + retryMode: config?.retryMode ?? + loadConfig({ + ...NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, + }, config), + streamCollector: config?.streamCollector ?? streamCollector, + useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), + }; +}; + +const getHttpAuthExtensionConfiguration = (runtimeConfig) => { + const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; + let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; + let _credentials = runtimeConfig.credentials; + return { + setHttpAuthScheme(httpAuthScheme) { + const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); + if (index === -1) { + _httpAuthSchemes.push(httpAuthScheme); + } + else { + _httpAuthSchemes.splice(index, 1, httpAuthScheme); + } + }, + httpAuthSchemes() { + return _httpAuthSchemes; + }, + setHttpAuthSchemeProvider(httpAuthSchemeProvider) { + _httpAuthSchemeProvider = httpAuthSchemeProvider; + }, + httpAuthSchemeProvider() { + return _httpAuthSchemeProvider; + }, + setCredentials(credentials) { + _credentials = credentials; + }, + credentials() { + return _credentials; + }, + }; +}; +const resolveHttpAuthRuntimeConfig = (config) => { + return { + httpAuthSchemes: config.httpAuthSchemes(), + httpAuthSchemeProvider: config.httpAuthSchemeProvider(), + credentials: config.credentials(), + }; +}; + +const resolveRuntimeExtensions = (runtimeConfig, extensions) => { + const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); + extensions.forEach((extension) => extension.configure(extensionConfiguration)); + return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); +}; + +class SSOClient extends Client { + config; + constructor(...[configuration]) { + const _config_0 = getRuntimeConfig(configuration || {}); + super(_config_0); + this.initConfig = _config_0; + const _config_1 = resolveClientEndpointParameters(_config_0); + const _config_2 = resolveUserAgentConfig(_config_1); + const _config_3 = resolveRetryConfig(_config_2); + const _config_4 = resolveRegionConfig(_config_3); + const _config_5 = resolveHostHeaderConfig(_config_4); + const _config_6 = resolveEndpointConfig(_config_5); + const _config_7 = resolveHttpAuthSchemeConfig(_config_6); + const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); + this.config = _config_8; + this.middlewareStack.use(getSchemaSerdePlugin(this.config)); + this.middlewareStack.use(getUserAgentPlugin(this.config)); + this.middlewareStack.use(getRetryPlugin(this.config)); + this.middlewareStack.use(getContentLengthPlugin(this.config)); + this.middlewareStack.use(getHostHeaderPlugin(this.config)); + this.middlewareStack.use(getLoggerPlugin(this.config)); + this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); + this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { + httpAuthSchemeParametersProvider: defaultSSOHttpAuthSchemeParametersProvider, + identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ + "aws.auth#sigv4": config.credentials, + }), + })); + this.middlewareStack.use(getHttpSigningPlugin(this.config)); + } + destroy() { + super.destroy(); + } +} + +const command = makeBuilder(commonParams, "SWBPortalService", "SSOClient", getEndpointPlugin); +const _ep0 = {}; +const _mw0 = (Command, cs, config, o) => []; + +class GetRoleCredentialsCommand extends command(_ep0, _mw0, "GetRoleCredentials", GetRoleCredentials$) { +} + +const commands = { + GetRoleCredentialsCommand, +}; +class SSO extends SSOClient { +} +createAggregatedClient(commands, SSO); + +exports.GetRoleCredentials$ = GetRoleCredentials$; +exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand; +exports.GetRoleCredentialsRequest$ = GetRoleCredentialsRequest$; +exports.GetRoleCredentialsResponse$ = GetRoleCredentialsResponse$; +exports.InvalidRequestException = InvalidRequestException; +exports.InvalidRequestException$ = InvalidRequestException$; +exports.ResourceNotFoundException = ResourceNotFoundException; +exports.ResourceNotFoundException$ = ResourceNotFoundException$; +exports.RoleCredentials$ = RoleCredentials$; +exports.SSO = SSO; +exports.SSOClient = SSOClient; +exports.SSOServiceException = SSOServiceException; +exports.SSOServiceException$ = SSOServiceException$; +exports.TooManyRequestsException = TooManyRequestsException; +exports.TooManyRequestsException$ = TooManyRequestsException$; +exports.UnauthorizedException = UnauthorizedException; +exports.UnauthorizedException$ = UnauthorizedException$; +exports.errorTypeRegistries = errorTypeRegistries; + + +/***/ }), + +/***/ 1136: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, setCredentialFeature, stsRegionDefaultResolver } = __nccwpck_require__(5152); +const { NoAuthSigner, getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = __nccwpck_require__(90402); +const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = __nccwpck_require__(92658); +const { Command: $Command } = __nccwpck_require__(92658); +exports.$Command = $Command; +exports.__Client = Client; +const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = __nccwpck_require__(47291); +const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveParams, resolveEndpointConfig, getEndpointPlugin } = __nccwpck_require__(62085); +const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = __nccwpck_require__(93422); +const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = __nccwpck_require__(23609); +const { TypeRegistry, getSchemaSerdePlugin } = __nccwpck_require__(26890); +const { resolveAwsSdkSigV4Config, resolveAwsSdkSigV4AConfig, AwsSdkSigV4Signer, AwsSdkSigV4ASigner, NODE_SIGV4A_CONFIG_OPTIONS, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = __nccwpck_require__(97523); +const { SignatureV4MultiRegion } = __nccwpck_require__(5785); +const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = __nccwpck_require__(92430); +const { streamCollector, NodeHttpHandler } = __nccwpck_require__(61279); +const { AwsQueryProtocol } = __nccwpck_require__(37288); +const { Sha256 } = __nccwpck_require__(99542); + +const q = "ref"; +const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = "us-east-1", i = "sigv4", j = "sts", k = "https://sts.{Region}.{PartitionResult#dnsSuffix}", l = { [q]: "Endpoint" }, m = { [q]: "Region" }, n = { [q]: d }, o = {}, p = [m]; +const _data = { + conditions: [ + [c, [l]], + [c, p], + ["aws.partition", p, d], + [e, [{ [q]: "UseFIPS" }, b]], + [e, [{ [q]: "UseDualStack" }, b]], + [f, [m, "aws-global"]], + [e, [{ [q]: "UseGlobalEndpoint" }, b]], + [f, [m, "eu-central-1"]], + [e, [{ fn: g, argv: [n, "supportsDualStack"] }, b]], + [e, [{ fn: g, argv: [n, "supportsFIPS"] }, b]], + [f, [m, "ap-south-1"]], + [f, [m, "eu-north-1"]], + [f, [m, "eu-west-1"]], + [f, [m, "eu-west-2"]], + [f, [m, "eu-west-3"]], + [f, [m, "sa-east-1"]], + [f, [m, h]], + [f, [m, "us-east-2"]], + [f, [m, "us-west-2"]], + [f, [m, "us-west-1"]], + [f, [m, "ca-central-1"]], + [f, [m, "ap-southeast-1"]], + [f, [m, "ap-northeast-1"]], + [f, [m, "ap-southeast-2"]], + [f, [{ fn: g, argv: [n, "name"] }, "aws-us-gov"]] + ], + results: [ + [a], + ["https://sts.amazonaws.com", { authSchemes: [{ name: i, signingName: j, signingRegion: h }] }], + [k, { authSchemes: [{ name: i, signingName: j, signingRegion: "{Region}" }] }], + [a, "Invalid Configuration: FIPS and custom endpoint are not supported"], + [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"], + [l, o], + ["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", o], + [a, "FIPS and DualStack are enabled, but this partition does not support one or both"], + ["https://sts.{Region}.amazonaws.com", o], + ["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", o], + [a, "FIPS is enabled but this partition does not support FIPS"], + ["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o], + [a, "DualStack is enabled but this partition does not support DualStack"], + [k, o], + [a, "Invalid Configuration: Missing Region"] + ] +}; +const root = 2; +const r = 100_000_000; +const nodes = new Int32Array([ + -1, 1, -1, + 0, 30, 3, + 1, 4, r + 14, + 2, 5, r + 14, + 3, 25, 6, + 4, 24, 7, + 5, r + 1, 8, + 6, 9, r + 13, + 7, r + 1, 10, + 10, r + 1, 11, + 11, r + 1, 12, + 12, r + 1, 13, + 13, r + 1, 14, + 14, r + 1, 15, + 15, r + 1, 16, + 16, r + 1, 17, + 17, r + 1, 18, + 18, r + 1, 19, + 19, r + 1, 20, + 20, r + 1, 21, + 21, r + 1, 22, + 22, r + 1, 23, + 23, r + 1, r + 2, + 8, r + 11, r + 12, + 4, 28, 26, + 9, 27, r + 10, + 24, r + 8, r + 9, + 8, 29, r + 7, + 9, r + 6, r + 7, + 3, r + 3, 31, + 4, r + 4, r + 5, +]); +const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); + +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"], +}); +const defaultEndpointResolver = (endpointParams, context = {}) => { + return cache.get(endpointParams, () => decideEndpoint(bdd, { + endpointParams: endpointParams, + logger: context.logger, + })); +}; +customEndpointFunctions.aws = awsEndpointFunctions; + +const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => { + if (!input) { + throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`"); + } + const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input); + const instructionsFn = getSmithyContext(context)?.commandInstance?.constructor + ?.getEndpointParameterInstructions; + if (!instructionsFn) { + throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`); + } + const endpointParameters = await resolveParams(input, { getEndpointParameterInstructions: instructionsFn }, config); + return Object.assign(defaultParameters, endpointParameters); +}; +const _defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => { + return { + operation: getSmithyContext(context).operation, + region: await normalizeProvider(config.region)() || (() => { + throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); + })(), + }; +}; +const defaultSTSHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider); +function createAwsAuthSigv4HttpAuthOption(authParameters) { + return { + schemeId: "aws.auth#sigv4", + signingProperties: { + name: "sts", + region: authParameters.region, + }, + propertiesExtractor: (config, context) => ({ + signingProperties: { + config, + context, + }, + }), + }; +} +function createAwsAuthSigv4aHttpAuthOption(authParameters) { + return { + schemeId: "aws.auth#sigv4a", + signingProperties: { + name: "sts", + region: authParameters.region, + }, + propertiesExtractor: (config, context) => ({ + signingProperties: { + config, + context, + }, + }), + }; +} +function createSmithyApiNoAuthHttpAuthOption(authParameters) { + return { + schemeId: "smithy.api#noAuth", + }; +} +const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => { + const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => { + const endpoint = defaultEndpointResolver(authParameters); + const authSchemes = endpoint.properties?.authSchemes; + if (!authSchemes) { + return defaultHttpAuthSchemeResolver(authParameters); + } + const options = []; + for (const scheme of authSchemes) { + const { name: resolvedName, properties = {}, ...rest } = scheme; + const name = resolvedName.toLowerCase(); + if (resolvedName !== name) { + console.warn(`HttpAuthScheme has been normalized with lowercasing: '${resolvedName}' to '${name}'`); + } + let schemeId; + if (name === "sigv4a") { + schemeId = "aws.auth#sigv4a"; + const sigv4Present = authSchemes.find((s) => { + const name = s.name.toLowerCase(); + return name !== "sigv4a" && name.startsWith("sigv4"); + }); + if (SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) { + continue; + } + } + else if (name.startsWith("sigv4")) { + schemeId = "aws.auth#sigv4"; + } + else { + throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name}'`); + } + const createOption = createHttpAuthOptionFunctions[schemeId]; + if (!createOption) { + throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`); + } + const option = createOption(authParameters); + option.schemeId = schemeId; + option.signingProperties = { ...(option.signingProperties || {}), ...rest, ...properties }; + options.push(option); + } + return options; + }; + return endpointRuleSetHttpAuthSchemeProvider; +}; +const _defaultSTSHttpAuthSchemeProvider = (authParameters) => { + const options = []; + switch (authParameters.operation) { + case "AssumeRoleWithWebIdentity": { + options.push(createSmithyApiNoAuthHttpAuthOption()); + options.push(createAwsAuthSigv4aHttpAuthOption(authParameters)); + break; + } + default: { + options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); + options.push(createAwsAuthSigv4aHttpAuthOption(authParameters)); + } + } + return options; +}; +const defaultSTSHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(defaultEndpointResolver, _defaultSTSHttpAuthSchemeProvider, { + "aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption, + "aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption, + "smithy.api#noAuth": createSmithyApiNoAuthHttpAuthOption, +}); +const resolveHttpAuthSchemeConfig = (config) => { + const config_0 = resolveAwsSdkSigV4Config(config); + const config_1 = resolveAwsSdkSigV4AConfig(config_0); + return Object.assign(config_1, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }); +}; + +const resolveClientEndpointParameters = (options) => { + return Object.assign(options, { + useDualstackEndpoint: options.useDualstackEndpoint ?? false, + useFipsEndpoint: options.useFipsEndpoint ?? false, + useGlobalEndpoint: options.useGlobalEndpoint ?? false, + defaultSigningName: "sts", + }); +}; +const commonParams = { + UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, +}; + +var version = "3.997.32"; +var packageInfo = { + version: version}; + +class STSServiceException extends ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, STSServiceException.prototype); + } +} + +class ExpiredTokenException extends STSServiceException { + name = "ExpiredTokenException"; + $fault = "client"; + constructor(opts) { + super({ + name: "ExpiredTokenException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ExpiredTokenException.prototype); + } +} +class MalformedPolicyDocumentException extends STSServiceException { + name = "MalformedPolicyDocumentException"; + $fault = "client"; + constructor(opts) { + super({ + name: "MalformedPolicyDocumentException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); + } +} +class PackedPolicyTooLargeException extends STSServiceException { + name = "PackedPolicyTooLargeException"; + $fault = "client"; + constructor(opts) { + super({ + name: "PackedPolicyTooLargeException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); + } +} +class RegionDisabledException extends STSServiceException { + name = "RegionDisabledException"; + $fault = "client"; + constructor(opts) { + super({ + name: "RegionDisabledException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, RegionDisabledException.prototype); + } +} +class IDPRejectedClaimException extends STSServiceException { + name = "IDPRejectedClaimException"; + $fault = "client"; + constructor(opts) { + super({ + name: "IDPRejectedClaimException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); + } +} +class InvalidIdentityTokenException extends STSServiceException { + name = "InvalidIdentityTokenException"; + $fault = "client"; + constructor(opts) { + super({ + name: "InvalidIdentityTokenException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); + } +} +class IDPCommunicationErrorException extends STSServiceException { + name = "IDPCommunicationErrorException"; + $fault = "client"; + $retryable = {}; + constructor(opts) { + super({ + name: "IDPCommunicationErrorException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); + } +} + +const _A = "Arn"; +const _AKI = "AccessKeyId"; +const _AR = "AssumeRole"; +const _ARI = "AssumedRoleId"; +const _ARR = "AssumeRoleRequest"; +const _ARRs = "AssumeRoleResponse"; +const _ARU = "AssumedRoleUser"; +const _ARWWI = "AssumeRoleWithWebIdentity"; +const _ARWWIR = "AssumeRoleWithWebIdentityRequest"; +const _ARWWIRs = "AssumeRoleWithWebIdentityResponse"; +const _Au = "Audience"; +const _C = "Credentials"; +const _CA = "ContextAssertion"; +const _DS = "DurationSeconds"; +const _E = "Expiration"; +const _EI = "ExternalId"; +const _ETE = "ExpiredTokenException"; +const _IDPCEE = "IDPCommunicationErrorException"; +const _IDPRCE = "IDPRejectedClaimException"; +const _IITE = "InvalidIdentityTokenException"; +const _K = "Key"; +const _MPDE = "MalformedPolicyDocumentException"; +const _P = "Policy"; +const _PA = "PolicyArns"; +const _PAr = "ProviderArn"; +const _PC = "ProvidedContexts"; +const _PCLT = "ProvidedContextsListType"; +const _PCr = "ProvidedContext"; +const _PDT = "PolicyDescriptorType"; +const _PI = "ProviderId"; +const _PPS = "PackedPolicySize"; +const _PPTLE = "PackedPolicyTooLargeException"; +const _Pr = "Provider"; +const _RA = "RoleArn"; +const _RDE = "RegionDisabledException"; +const _RSN = "RoleSessionName"; +const _SAK = "SecretAccessKey"; +const _SFWIT = "SubjectFromWebIdentityToken"; +const _SI = "SourceIdentity"; +const _SN = "SerialNumber"; +const _ST = "SessionToken"; +const _T = "Tags"; +const _TC = "TokenCode"; +const _TTK = "TransitiveTagKeys"; +const _Ta = "Tag"; +const _V = "Value"; +const _WIT = "WebIdentityToken"; +const _a = "arn"; +const _aKST = "accessKeySecretType"; +const _aQE = "awsQueryError"; +const _c = "client"; +const _cTT = "clientTokenType"; +const _e = "error"; +const _hE = "httpError"; +const _m = "message"; +const _pDLT = "policyDescriptorListType"; +const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts"; +const _tLT = "tagListType"; +const n0 = "com.amazonaws.sts"; +const _s_registry = TypeRegistry.for(_s); +var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []]; +_s_registry.registerError(STSServiceException$, STSServiceException); +const n0_registry = TypeRegistry.for(n0); +var ExpiredTokenException$ = [-3, n0, _ETE, + { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 }, + [_m], + [0] +]; +n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException); +var IDPCommunicationErrorException$ = [-3, n0, _IDPCEE, + { [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 }, + [_m], + [0] +]; +n0_registry.registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException); +var IDPRejectedClaimException$ = [-3, n0, _IDPRCE, + { [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 }, + [_m], + [0] +]; +n0_registry.registerError(IDPRejectedClaimException$, IDPRejectedClaimException); +var InvalidIdentityTokenException$ = [-3, n0, _IITE, + { [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 }, + [_m], + [0] +]; +n0_registry.registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException); +var MalformedPolicyDocumentException$ = [-3, n0, _MPDE, + { [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 }, + [_m], + [0] +]; +n0_registry.registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException); +var PackedPolicyTooLargeException$ = [-3, n0, _PPTLE, + { [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 }, + [_m], + [0] +]; +n0_registry.registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException); +var RegionDisabledException$ = [-3, n0, _RDE, + { [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 }, + [_m], + [0] +]; +n0_registry.registerError(RegionDisabledException$, RegionDisabledException); +const errorTypeRegistries = [ + _s_registry, + n0_registry, +]; +var accessKeySecretType = [0, n0, _aKST, 8, 0]; +var clientTokenType = [0, n0, _cTT, 8, 0]; +var AssumedRoleUser$ = [3, n0, _ARU, + 0, + [_ARI, _A], + [0, 0], 2 +]; +var AssumeRoleRequest$ = [3, n0, _ARR, + 0, + [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC], + [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType], 2 +]; +var AssumeRoleResponse$ = [3, n0, _ARRs, + 0, + [_C, _ARU, _PPS, _SI], + [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0] +]; +var AssumeRoleWithWebIdentityRequest$ = [3, n0, _ARWWIR, + 0, + [_RA, _RSN, _WIT, _PI, _PA, _P, _DS], + [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1], 3 +]; +var AssumeRoleWithWebIdentityResponse$ = [3, n0, _ARWWIRs, + 0, + [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI], + [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0] +]; +var Credentials$ = [3, n0, _C, + 0, + [_AKI, _SAK, _ST, _E], + [0, [() => accessKeySecretType, 0], 0, 4], 4 +]; +var PolicyDescriptorType$ = [3, n0, _PDT, + 0, + [_a], + [0] +]; +var ProvidedContext$ = [3, n0, _PCr, + 0, + [_PAr, _CA], + [0, 0] +]; +var Tag$ = [3, n0, _Ta, + 0, + [_K, _V], + [0, 0], 2 +]; +var policyDescriptorListType = [1, n0, _pDLT, + 0, () => PolicyDescriptorType$ +]; +var ProvidedContextsListType = [1, n0, _PCLT, + 0, () => ProvidedContext$ +]; +var tagListType = [1, n0, _tLT, + 0, () => Tag$ +]; +var AssumeRole$ = [9, n0, _AR, + 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$ +]; +var AssumeRoleWithWebIdentity$ = [9, n0, _ARWWI, + 0, () => AssumeRoleWithWebIdentityRequest$, () => AssumeRoleWithWebIdentityResponse$ +]; + +const getRuntimeConfig$1 = (config) => { + return { + apiVersion: "2011-06-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSTSHttpAuthSchemeProvider, + httpAuthSchemes: config?.httpAuthSchemes ?? [ + { + schemeId: "aws.auth#sigv4", + identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), + signer: new AwsSdkSigV4Signer(), + }, + { + schemeId: "aws.auth#sigv4a", + identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"), + signer: new AwsSdkSigV4ASigner(), + }, + { + schemeId: "smithy.api#noAuth", + identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), + signer: new NoAuthSigner(), + }, + ], + logger: config?.logger ?? new NoOpLogger(), + protocol: config?.protocol ?? AwsQueryProtocol, + protocolSettings: config?.protocolSettings ?? { + defaultNamespace: "com.amazonaws.sts", + errorTypeRegistries, + xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/", + version: "2011-06-15", + serviceTarget: "AWSSecurityTokenServiceV20110615", + }, + serviceId: config?.serviceId ?? "STS", + sha256: config?.sha256 ?? Sha256, + signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion, + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, + }; +}; + +const getRuntimeConfig = (config) => { + emitWarningIfUnsupportedVersion(process.version); + const defaultsMode = resolveDefaultsModeConfig(config); + const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); + const clientSharedValues = getRuntimeConfig$1(config); + emitWarningIfUnsupportedVersion$1(process.version); + const loaderConfig = { + profile: config?.profile, + logger: clientSharedValues.logger, + }; + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), + bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, + defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), + httpAuthSchemes: config?.httpAuthSchemes ?? [ + { + schemeId: "aws.auth#sigv4", + identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await config.credentialDefaultProvider(idProps?.__config || {})()), + signer: new AwsSdkSigV4Signer(), + }, + { + schemeId: "aws.auth#sigv4a", + identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"), + signer: new AwsSdkSigV4ASigner(), + }, + { + schemeId: "smithy.api#noAuth", + identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), + signer: new NoAuthSigner(), + }, + ], + maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), + region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), + requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), + retryMode: config?.retryMode ?? + loadConfig({ + ...NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, + }, config), + sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig), + streamCollector: config?.streamCollector ?? streamCollector, + useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), + userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), + }; +}; + +const getHttpAuthExtensionConfiguration = (runtimeConfig) => { + const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; + let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; + let _credentials = runtimeConfig.credentials; + return { + setHttpAuthScheme(httpAuthScheme) { + const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); + if (index === -1) { + _httpAuthSchemes.push(httpAuthScheme); + } + else { + _httpAuthSchemes.splice(index, 1, httpAuthScheme); + } + }, + httpAuthSchemes() { + return _httpAuthSchemes; + }, + setHttpAuthSchemeProvider(httpAuthSchemeProvider) { + _httpAuthSchemeProvider = httpAuthSchemeProvider; + }, + httpAuthSchemeProvider() { + return _httpAuthSchemeProvider; + }, + setCredentials(credentials) { + _credentials = credentials; + }, + credentials() { + return _credentials; + }, + }; +}; +const resolveHttpAuthRuntimeConfig = (config) => { + return { + httpAuthSchemes: config.httpAuthSchemes(), + httpAuthSchemeProvider: config.httpAuthSchemeProvider(), + credentials: config.credentials(), + }; +}; + +const resolveRuntimeExtensions = (runtimeConfig, extensions) => { + const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); + extensions.forEach((extension) => extension.configure(extensionConfiguration)); + return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration)); +}; + +class STSClient extends Client { + config; + constructor(...[configuration]) { + const _config_0 = getRuntimeConfig(configuration || {}); + super(_config_0); + this.initConfig = _config_0; + const _config_1 = resolveClientEndpointParameters(_config_0); + const _config_2 = resolveUserAgentConfig(_config_1); + const _config_3 = resolveRetryConfig(_config_2); + const _config_4 = resolveRegionConfig(_config_3); + const _config_5 = resolveHostHeaderConfig(_config_4); + const _config_6 = resolveEndpointConfig(_config_5); + const _config_7 = resolveHttpAuthSchemeConfig(_config_6); + const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); + this.config = _config_8; + this.middlewareStack.use(getSchemaSerdePlugin(this.config)); + this.middlewareStack.use(getUserAgentPlugin(this.config)); + this.middlewareStack.use(getRetryPlugin(this.config)); + this.middlewareStack.use(getContentLengthPlugin(this.config)); + this.middlewareStack.use(getHostHeaderPlugin(this.config)); + this.middlewareStack.use(getLoggerPlugin(this.config)); + this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); + this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { + httpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider, + identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ + "aws.auth#sigv4": config.credentials, + "aws.auth#sigv4a": config.credentials, + }), + })); + this.middlewareStack.use(getHttpSigningPlugin(this.config)); + } + destroy() { + super.destroy(); + } +} + +const command = makeBuilder(commonParams, "AWSSecurityTokenServiceV20110615", "STSClient", getEndpointPlugin); +const _ep0 = {}; +const _mw0 = (Command, cs, config, o) => []; + +class AssumeRoleCommand extends command(_ep0, _mw0, "AssumeRole", AssumeRole$) { +} + +class AssumeRoleWithWebIdentityCommand extends command(_ep0, _mw0, "AssumeRoleWithWebIdentity", AssumeRoleWithWebIdentity$) { +} + +const commands = { + AssumeRoleCommand, + AssumeRoleWithWebIdentityCommand, +}; +class STS extends STSClient { +} +createAggregatedClient(commands, STS); + +const getAccountIdFromAssumedRoleUser = (assumedRoleUser) => { + if (typeof assumedRoleUser?.Arn === "string") { + const arnComponents = assumedRoleUser.Arn.split(":"); + if (arnComponents.length > 4 && arnComponents[4] !== "") { + return arnComponents[4]; + } + } + return undefined; +}; +const resolveRegion = async (_region, _parentRegion, credentialProviderLogger, loaderConfig = {}) => { + const region = typeof _region === "function" ? await _region() : _region; + const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion; + let stsDefaultRegion = ""; + const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await stsRegionDefaultResolver(loaderConfig)()); + credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`); + return resolvedRegion; +}; +const getDefaultRoleAssumer$1 = (stsOptions, STSClient) => { + let stsClient; + let closureSourceCreds; + return async (sourceCreds, params) => { + closureSourceCreds = sourceCreds; + if (!stsClient) { + const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId, } = stsOptions; + const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, { + logger, + profile, + }); + const isCompatibleRequestHandler = !isH2(requestHandler); + stsClient = new STSClient({ + ...stsOptions, + userAgentAppId, + profile, + credentialDefaultProvider: () => async () => closureSourceCreds, + region: resolvedRegion, + requestHandler: isCompatibleRequestHandler ? requestHandler : undefined, + logger: logger, + }); + } + const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleCommand(params)); + if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`); + } + const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser); + const credentials = { + accessKeyId: Credentials.AccessKeyId, + secretAccessKey: Credentials.SecretAccessKey, + sessionToken: Credentials.SessionToken, + expiration: Credentials.Expiration, + ...(Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }), + ...(accountId && { accountId }), + }; + setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE", "i"); + return credentials; + }; +}; +const getDefaultRoleAssumerWithWebIdentity$1 = (stsOptions, STSClient) => { + let stsClient; + return async (params) => { + if (!stsClient) { + const { logger = stsOptions?.parentClientConfig?.logger, profile = stsOptions?.parentClientConfig?.profile, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, userAgentAppId = stsOptions?.parentClientConfig?.userAgentAppId, } = stsOptions; + const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger, { + logger, + profile, + }); + const isCompatibleRequestHandler = !isH2(requestHandler); + stsClient = new STSClient({ + ...stsOptions, + userAgentAppId, + profile, + region: resolvedRegion, + requestHandler: isCompatibleRequestHandler ? requestHandler : undefined, + logger: logger, + }); + } + const { Credentials, AssumedRoleUser } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params)); + if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`); + } + const accountId = getAccountIdFromAssumedRoleUser(AssumedRoleUser); + const credentials = { + accessKeyId: Credentials.AccessKeyId, + secretAccessKey: Credentials.SecretAccessKey, + sessionToken: Credentials.SessionToken, + expiration: Credentials.Expiration, + ...(Credentials.CredentialScope && { credentialScope: Credentials.CredentialScope }), + ...(accountId && { accountId }), + }; + if (accountId) { + setCredentialFeature(credentials, "RESOLVED_ACCOUNT_ID", "T"); + } + setCredentialFeature(credentials, "CREDENTIALS_STS_ASSUME_ROLE_WEB_ID", "k"); + return credentials; + }; +}; +const isH2 = (requestHandler) => { + return requestHandler?.metadata?.handlerProtocol === "h2"; +}; + +const getCustomizableStsClientCtor = (baseCtor, customizations) => { + if (!customizations) + return baseCtor; + else + return class CustomizableSTSClient extends baseCtor { + constructor(config) { + super(config); + for (const customization of customizations) { + this.middlewareStack.use(customization); + } + } + }; +}; +const getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumer$1(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins)); +const getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => getDefaultRoleAssumerWithWebIdentity$1(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins)); +const decorateDefaultCredentialProvider = (provider) => (input) => provider({ + roleAssumer: getDefaultRoleAssumer(input), + roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input), + ...input, +}); + +exports.AssumeRole$ = AssumeRole$; +exports.AssumeRoleCommand = AssumeRoleCommand; +exports.AssumeRoleRequest$ = AssumeRoleRequest$; +exports.AssumeRoleResponse$ = AssumeRoleResponse$; +exports.AssumeRoleWithWebIdentity$ = AssumeRoleWithWebIdentity$; +exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; +exports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$; +exports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$; +exports.AssumedRoleUser$ = AssumedRoleUser$; +exports.Credentials$ = Credentials$; +exports.ExpiredTokenException = ExpiredTokenException; +exports.ExpiredTokenException$ = ExpiredTokenException$; +exports.IDPCommunicationErrorException = IDPCommunicationErrorException; +exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$; +exports.IDPRejectedClaimException = IDPRejectedClaimException; +exports.IDPRejectedClaimException$ = IDPRejectedClaimException$; +exports.InvalidIdentityTokenException = InvalidIdentityTokenException; +exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$; +exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; +exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$; +exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; +exports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$; +exports.PolicyDescriptorType$ = PolicyDescriptorType$; +exports.ProvidedContext$ = ProvidedContext$; +exports.RegionDisabledException = RegionDisabledException; +exports.RegionDisabledException$ = RegionDisabledException$; +exports.STS = STS; +exports.STSClient = STSClient; +exports.STSServiceException = STSServiceException; +exports.STSServiceException$ = STSServiceException$; +exports.Tag$ = Tag$; +exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; +exports.errorTypeRegistries = errorTypeRegistries; +exports.getDefaultRoleAssumer = getDefaultRoleAssumer; +exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; + + +/***/ }), + +/***/ 5785: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { SignatureV4, signatureV4aContainer } = __nccwpck_require__(75118); + +const signatureV4CrtContainer = { + CrtSignerV4: null, +}; + +const SESSION_TOKEN_QUERY_PARAM = "X-Amz-S3session-Token"; +const SESSION_TOKEN_HEADER = SESSION_TOKEN_QUERY_PARAM.toLowerCase(); +class SignatureV4SignWithCredentials extends SignatureV4 { + async signWithCredentials(requestToSign, credentials, options) { + const credentialsWithoutSessionToken = getCredentialsWithoutSessionToken(credentials); + requestToSign.headers[SESSION_TOKEN_HEADER] = credentials.sessionToken; + const privateAccess = this; + setSingleOverride(privateAccess, credentialsWithoutSessionToken); + return privateAccess.signRequest(requestToSign, options ?? {}); + } + async presignWithCredentials(requestToSign, credentials, options) { + const credentialsWithoutSessionToken = getCredentialsWithoutSessionToken(credentials); + delete requestToSign.headers[SESSION_TOKEN_HEADER]; + requestToSign.headers[SESSION_TOKEN_QUERY_PARAM] = credentials.sessionToken; + requestToSign.query = requestToSign.query ?? {}; + requestToSign.query[SESSION_TOKEN_QUERY_PARAM] = credentials.sessionToken; + const privateAccess = this; + setSingleOverride(privateAccess, credentialsWithoutSessionToken); + return this.presign(requestToSign, options); + } +} +function getCredentialsWithoutSessionToken(credentials) { + return { + accessKeyId: credentials.accessKeyId, + secretAccessKey: credentials.secretAccessKey, + expiration: credentials.expiration, + }; +} +function setSingleOverride(privateAccess, credentialsWithoutSessionToken) { + const currentCredentialProvider = privateAccess.credentialProvider; + privateAccess.credentialProvider = () => { + privateAccess.credentialProvider = currentCredentialProvider; + return Promise.resolve(credentialsWithoutSessionToken); + }; +} + +class SignatureV4MultiRegion { + sigv4aSigner; + sigv4Signer; + signerOptions; + static sigv4aDependency() { + if (typeof signatureV4CrtContainer.CrtSignerV4 === "function") { + return "crt"; + } + else if (typeof signatureV4aContainer.SignatureV4a === "function") { + return "js"; + } + return "none"; + } + constructor(options) { + this.sigv4Signer = new SignatureV4SignWithCredentials(options); + this.signerOptions = options; + } + async sign(requestToSign, options = {}) { + if (options.signingRegion === "*") { + return this.getSigv4aSigner().sign(requestToSign, options); + } + return this.sigv4Signer.sign(requestToSign, options); + } + async signWithCredentials(requestToSign, credentials, options = {}) { + if (options.signingRegion === "*") { + const signer = this.getSigv4aSigner(); + const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4; + if (CrtSignerV4 && signer instanceof CrtSignerV4) { + return signer.signWithCredentials(requestToSign, credentials, options); + } + else { + throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. ` + + `Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. ` + + `You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] ` + + `or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. ` + + `For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`); + } + } + return this.sigv4Signer.signWithCredentials(requestToSign, credentials, options); + } + async presign(originalRequest, options = {}) { + if (options.signingRegion === "*") { + const signer = this.getSigv4aSigner(); + const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4; + if (CrtSignerV4 && signer instanceof CrtSignerV4) { + return signer.presign(originalRequest, options); + } + else { + throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. ` + + `Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. ` + + `You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] ` + + `or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. ` + + `For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`); + } + } + return this.sigv4Signer.presign(originalRequest, options); + } + async presignWithCredentials(originalRequest, credentials, options = {}) { + if (options.signingRegion === "*") { + throw new Error("Method presignWithCredentials is not supported for [signingRegion=*]."); + } + return this.sigv4Signer.presignWithCredentials(originalRequest, credentials, options); + } + getSigv4aSigner() { + if (!this.sigv4aSigner) { + const CrtSignerV4 = signatureV4CrtContainer.CrtSignerV4; + const JsSigV4aSigner = signatureV4aContainer.SignatureV4a; + if (this.signerOptions.runtime === "node") { + if (!CrtSignerV4 && !JsSigV4aSigner) { + throw new Error("Neither CRT nor JS SigV4a implementation is available. " + + "Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. " + + "For more information please go to " + + "https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt"); + } + if (CrtSignerV4 && typeof CrtSignerV4 === "function") { + this.sigv4aSigner = new CrtSignerV4({ + ...this.signerOptions, + signingAlgorithm: 1, + }); + } + else if (JsSigV4aSigner && typeof JsSigV4aSigner === "function") { + this.sigv4aSigner = new JsSigV4aSigner({ + ...this.signerOptions, + }); + } + else { + throw new Error("Available SigV4a implementation is not a valid constructor. " + + "Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a." + + "For more information please go to " + + "https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt"); + } + } + else { + if (!JsSigV4aSigner || typeof JsSigV4aSigner !== "function") { + throw new Error("JS SigV4a implementation is not available or not a valid constructor. " + + "Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. " + + "You must also register the package by calling [require('@aws-sdk/signature-v4a');] " + + "or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. " + + "For more information please go to " + + "https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a"); + } + this.sigv4aSigner = new JsSigV4aSigner({ + ...this.signerOptions, + }); + } + } + return this.sigv4aSigner; + } +} + +exports.SignatureV4MultiRegion = SignatureV4MultiRegion; +exports.SignatureV4SignWithCredentials = SignatureV4SignWithCredentials; +exports.signatureV4CrtContainer = signatureV4CrtContainer; + + +/***/ }), + +/***/ 75433: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { setTokenFeature } = __nccwpck_require__(5152); +const { getBearerTokenEnvKey } = __nccwpck_require__(97523); +const { TokenProviderError, getSSOTokenFilepath, parseKnownFiles, getProfileName, loadSsoSessionData, getSSOTokenFromFile, memoize, chain } = __nccwpck_require__(47291); +const { promises } = __nccwpck_require__(73024); + +const fromEnvSigningName = ({ logger, signingName } = {}) => async () => { + logger?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"); + if (!signingName) { + throw new TokenProviderError("Please pass 'signingName' to compute environment variable key", { logger }); + } + const bearerTokenKey = getBearerTokenEnvKey(signingName); + if (!(bearerTokenKey in process.env)) { + throw new TokenProviderError(`Token not present in '${bearerTokenKey}' environment variable`, { logger }); + } + const token = { token: process.env[bearerTokenKey] }; + setTokenFeature(token, "BEARER_SERVICE_ENV_VARS", "3"); + return token; +}; + +const EXPIRE_WINDOW_MS = 5 * 60 * 1000; +const REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`; + +const getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => { + const { SSOOIDCClient } = __nccwpck_require__(89443); + const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop]; + const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, { + region: ssoRegion ?? init.clientConfig?.region, + logger: coalesce("logger"), + userAgentAppId: coalesce("userAgentAppId"), + })); + return ssoOidcClient; +}; + +const getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => { + const { CreateTokenCommand } = __nccwpck_require__(89443); + const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig); + return ssoOidcClient.send(new CreateTokenCommand({ + clientId: ssoToken.clientId, + clientSecret: ssoToken.clientSecret, + refreshToken: ssoToken.refreshToken, + grantType: "refresh_token", + })); +}; + +const validateTokenExpiry = (token) => { + if (token.expiration && token.expiration.getTime() < Date.now()) { + throw new TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false); + } +}; + +const validateTokenKey = (key, value, forRefresh = false) => { + if (typeof value === "undefined") { + throw new TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false); + } +}; + +const { writeFile } = promises; +const writeSSOTokenToFile = (id, ssoToken) => { + const tokenFilepath = getSSOTokenFilepath(id); + const tokenString = JSON.stringify(ssoToken, null, 2); + return writeFile(tokenFilepath, tokenString); +}; + +const lastRefreshAttemptTime = new Date(0); +const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => { + init.logger?.debug("@aws-sdk/token-providers - fromSso"); + const profiles = await parseKnownFiles(init); + const profileName = getProfileName({ + profile: init.profile ?? callerClientConfig?.profile, + }); + const profile = profiles[profileName]; + if (!profile) { + throw new TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false); + } + else if (!profile["sso_session"]) { + throw new TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`); + } + const ssoSessionName = profile["sso_session"]; + const ssoSessions = await loadSsoSessionData(init); + const ssoSession = ssoSessions[ssoSessionName]; + if (!ssoSession) { + throw new TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false); + } + for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) { + if (!ssoSession[ssoSessionRequiredKey]) { + throw new TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false); + } + } + ssoSession["sso_start_url"]; + const ssoRegion = ssoSession["sso_region"]; + let ssoToken; + try { + ssoToken = await getSSOTokenFromFile(ssoSessionName); + } + catch (e) { + throw new TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false); + } + validateTokenKey("accessToken", ssoToken.accessToken); + validateTokenKey("expiresAt", ssoToken.expiresAt); + const { accessToken, expiresAt } = ssoToken; + const existingToken = { token: accessToken, expiration: new Date(expiresAt) }; + if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) { + return existingToken; + } + if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1000) { + validateTokenExpiry(existingToken); + return existingToken; + } + validateTokenKey("clientId", ssoToken.clientId, true); + validateTokenKey("clientSecret", ssoToken.clientSecret, true); + validateTokenKey("refreshToken", ssoToken.refreshToken, true); + try { + lastRefreshAttemptTime.setTime(Date.now()); + const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig); + validateTokenKey("accessToken", newSsoOidcToken.accessToken); + validateTokenKey("expiresIn", newSsoOidcToken.expiresIn); + const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1000); + try { + await writeSSOTokenToFile(ssoSessionName, { + ...ssoToken, + accessToken: newSsoOidcToken.accessToken, + expiresAt: newTokenExpiration.toISOString(), + refreshToken: newSsoOidcToken.refreshToken, + }); + } + catch (error) { + } + return { + token: newSsoOidcToken.accessToken, + expiration: newTokenExpiration, + }; + } + catch (error) { + validateTokenExpiry(existingToken); + return existingToken; + } +}; + +const fromStatic = ({ token, logger }) => async () => { + logger?.debug("@aws-sdk/token-providers - fromStatic"); + if (!token || !token.token) { + throw new TokenProviderError(`Please pass a valid token to fromStatic`, false); + } + return token; +}; + +const nodeProvider = (init = {}) => memoize(chain(fromSso(init), async () => { + throw new TokenProviderError("Could not load token from any providers", false); +}), (token) => token.expiration !== undefined && token.expiration.getTime() - Date.now() < 300000, (token) => token.expiration !== undefined); + +exports.fromEnvSigningName = fromEnvSigningName; +exports.fromSso = fromSso; +exports.fromStatic = fromStatic; +exports.nodeProvider = nodeProvider; + + +/***/ }), + +/***/ 94274: +/***/ ((__unused_webpack_module, exports) => { + +const ATTR_ESCAPE_RE = /[&<>"]/g; +const ATTR_ESCAPE_MAP = { + "&": "&", + "<": "<", + ">": ">", + '"': """, +}; +function escapeAttribute(value) { + return value.replace(ATTR_ESCAPE_RE, (ch) => ATTR_ESCAPE_MAP[ch]); +} + +const ELEMENT_ESCAPE_RE = /[&"'<>\r\n\u0085\u2028]/g; +const ELEMENT_ESCAPE_MAP = { + "&": "&", + '"': """, + "'": "'", + "<": "<", + ">": ">", + "\r": " ", + "\n": " ", + "\u0085": "…", + "\u2028": "
", +}; +function escapeElement(value) { + return value.replace(ELEMENT_ESCAPE_RE, (ch) => ELEMENT_ESCAPE_MAP[ch]); +} + +class XmlText { + value; + constructor(value) { + this.value = value; + } + toString() { + return escapeElement("" + this.value); + } +} + +class XmlNode { + name; + children; + attributes = {}; + static of(name, childText, withName) { + const node = new XmlNode(name); + if (childText !== undefined) { + node.addChildNode(new XmlText(childText)); + } + if (withName !== undefined) { + node.withName(withName); + } + return node; + } + constructor(name, children = []) { + this.name = name; + this.children = children; + } + withName(name) { + this.name = name; + return this; + } + addAttribute(name, value) { + this.attributes[name] = value; + return this; + } + addChildNode(child) { + this.children.push(child); + return this; + } + removeAttribute(name) { + delete this.attributes[name]; + return this; + } + n(name) { + this.name = name; + return this; + } + c(child) { + this.children.push(child); + return this; + } + a(name, value) { + if (value != null) { + this.attributes[name] = value; + } + return this; + } + cc(input, field, withName = field) { + if (input[field] != null) { + const node = XmlNode.of(field, input[field]).withName(withName); + this.c(node); + } + } + l(input, listName, memberName, valueProvider) { + if (input[listName] != null) { + const nodes = valueProvider(); + nodes.map((node) => { + node.withName(memberName); + this.c(node); + }); + } + } + lc(input, listName, memberName, valueProvider) { + if (input[listName] != null) { + const nodes = valueProvider(); + const containerNode = new XmlNode(memberName); + nodes.map((node) => { + containerNode.c(node); + }); + this.c(containerNode); + } + } + toString() { + const hasChildren = Boolean(this.children.length); + let xmlText = `<${this.name}`; + const attributes = this.attributes; + for (const attributeName of Object.keys(attributes)) { + const attribute = attributes[attributeName]; + if (attribute != null) { + xmlText += ` ${attributeName}="${escapeAttribute("" + attribute)}"`; + } + } + return (xmlText += !hasChildren ? "/>" : `>${this.children.map((c) => c.toString()).join("")}`); + } +} + +function parseXML(xml) { + const state = new AwsXmlParser(xml); + return state.parse(); +} +class AwsXmlParser { + x; + i = 0; + z; + constructor(x) { + this.x = x; + this.x = x.replace(/\r\n?/g, "\n"); + this.z = this.x.length; + } + parse() { + const p = this; + const { z } = p; + while (p.i < z) { + p.trim(); + if (p.i >= z) { + break; + } + if (p.isNext(""); + p.trim(); + } + else if (p.isNext(""); + p.trim(); + } + else if (p.isNext("/".includes(p.x[p.i])) { + tag += p.x[p.i++]; + } + let hasAttrs = false; + const attrs = Object.create(null); + while (p.i < p.z) { + p.trim(); + if (">/".includes(p.x[p.i])) { + break; + } + let name = ""; + while (p.i < p.z && !"= \t\r\n>/?".includes(p.x[p.i])) { + name += p.x[p.i++]; + } + p.trim(); + if (p.x[p.i] !== "=") { + break; + } + ++p.i; + p.trim(); + attrs[name] = p.readAttrValue(); + hasAttrs = true; + } + if (p.i >= p.z) { + throw new Error("@aws-sdk XML parse error: unexpected end of input."); + } + if (p.x[p.i] === "/") { + ++p.i; + if (p.i >= p.z || p.x[p.i] !== ">") { + throw new Error("@aws-sdk XML parse error: expected > at the end of self-closing tag."); + } + ++p.i; + Object.setPrototypeOf(attrs, Object.prototype); + return { tag, value: hasAttrs ? attrs : "" }; + } + if (p.x[p.i] !== ">") { + throw new Error("@aws-sdk XML parse error: expected > at the end of opening tag."); + } + ++p.i; + const textParts = []; + const childTags = []; + let hasElementChild = false; + while (p.i < p.z) { + if (p.isNext(""); + } + else if (p.isNext("")); + } + else if (p.isNext(""); + } + else { + hasElementChild = true; + childTags.push(p.parseTag()); + } + } + else { + let text = ""; + while (p.i < p.z && p.x[p.i] !== "<") { + text += p.x[p.i++]; + } + textParts.push(p.decodeEntities(text)); + } + } + if (!p.isNext(".`); + } + p.i += 2; + const closeTag = p.readTo(">").trim(); + if (closeTag !== tag) { + throw new Error(`@aws-sdk XML parse error: mismatched tags <${tag}> and .`); + } + if (!hasAttrs && textParts.length === 0 && !hasElementChild) { + return { tag, value: "" }; + } + if (!hasAttrs && !hasElementChild) { + const text = textParts.length === 1 ? textParts[0] : textParts.join(""); + if (text.trim() === "" && text.includes("\n")) { + return { tag, value: "" }; + } + return { tag, value: text }; + } + const obj = Object.create(null); + for (const text of textParts) { + if (text.trim() === "" && text.includes("\n")) { + continue; + } + obj["#text"] = "#text" in obj ? obj["#text"] + text : text; + } + for (const child of childTags) { + if (child.tag in obj) { + if (Array.isArray(obj[child.tag])) { + obj[child.tag].push(child.value); + } + else { + obj[child.tag] = [obj[child.tag], child.value]; + } + } + else { + obj[child.tag] = child.value; + } + } + for (const [k, v] of Object.entries(attrs)) { + obj[k] = v; + } + Object.setPrototypeOf(obj, Object.prototype); + return { tag, value: obj }; + } + static ENTITIES = { + amp: "&", + lt: "<", + gt: ">", + quot: '"', + apos: "'", + }; + skipDoctype() { + const p = this; + p.i += 9; + let depth = 0; + while (p.i < p.z) { + const c = p.x[p.i]; + if (c === "[") { + ++depth; + } + else if (c === "]") { + --depth; + } + else if (c === ">" && depth === 0) { + ++p.i; + return; + } + ++p.i; + } + throw new Error("@aws-sdk XML parse error: unclosed DOCTYPE."); + } + decodeEntities(s) { + return s.replace(/&(?:#x([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{0,30}));/g, (_, hex, dec, named) => { + if (hex) { + return String.fromCharCode(parseInt(hex, 16)); + } + if (dec) { + return String.fromCharCode(parseInt(dec, 10)); + } + return AwsXmlParser.ENTITIES[named] ?? ""; + }); + } +} + +exports.XmlNode = XmlNode; +exports.XmlText = XmlText; +exports.parseXML = parseXML; + + +/***/ }), + +/***/ 29320: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +const PROTECTED_KEYS = { + REQUEST_ID: Symbol.for("_AWS_LAMBDA_REQUEST_ID"), + X_RAY_TRACE_ID: Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"), + TENANT_ID: Symbol.for("_AWS_LAMBDA_TENANT_ID"), + TRACEPARENT: Symbol.for("_AWS_LAMBDA_TRACEPARENT"), + TRACESTATE: Symbol.for("_AWS_LAMBDA_TRACESTATE"), + BAGGAGE: Symbol.for("_AWS_LAMBDA_BAGGAGE"), +}; +const NO_GLOBAL_AWS_LAMBDA = ["true", "1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA ?? ""); +if (!NO_GLOBAL_AWS_LAMBDA) { + globalThis.awslambda = globalThis.awslambda || {}; +} +class InvokeStoreBase { + static PROTECTED_KEYS = PROTECTED_KEYS; + isProtectedKey(key) { + return Object.values(PROTECTED_KEYS).includes(key); + } + getRequestId() { + return this.get(PROTECTED_KEYS.REQUEST_ID) ?? "-"; + } + getXRayTraceId() { + return this.get(PROTECTED_KEYS.X_RAY_TRACE_ID); + } + getTenantId() { + return this.get(PROTECTED_KEYS.TENANT_ID); + } + getTraceparent() { + return this.get(PROTECTED_KEYS.TRACEPARENT); + } + getTracestate() { + return this.get(PROTECTED_KEYS.TRACESTATE); + } + getBaggage() { + return this.get(PROTECTED_KEYS.BAGGAGE); + } +} +class InvokeStoreSingle extends InvokeStoreBase { + currentContext; + getContext() { + return this.currentContext; + } + hasContext() { + return this.currentContext !== undefined; + } + get(key) { + return this.currentContext?.[key]; + } + set(key, value) { + if (this.isProtectedKey(key)) { + throw new Error(`Cannot modify protected Lambda context field: ${String(key)}`); + } + this.currentContext = this.currentContext || {}; + this.currentContext[key] = value; + } + run(context, fn) { + this.currentContext = context; + return fn(); + } +} +class InvokeStoreMulti extends InvokeStoreBase { + als; + static async create() { + const instance = new InvokeStoreMulti(); + const asyncHooks = await Promise.resolve(/* import() */).then(__nccwpck_require__.t.bind(__nccwpck_require__, 16698, 23)); + instance.als = new asyncHooks.AsyncLocalStorage(); + return instance; + } + getContext() { + return this.als.getStore(); + } + hasContext() { + return this.als.getStore() !== undefined; + } + get(key) { + return this.als.getStore()?.[key]; + } + set(key, value) { + if (this.isProtectedKey(key)) { + throw new Error(`Cannot modify protected Lambda context field: ${String(key)}`); + } + const store = this.als.getStore(); + if (!store) { + throw new Error("No context available"); + } + store[key] = value; + } + run(context, fn) { + return this.als.run(context, fn); + } +} +exports.InvokeStore = void 0; +(function (InvokeStore) { + let instance = null; + async function getInstanceAsync(forceInvokeStoreMulti) { + if (!instance) { + instance = (async () => { + const isMulti = forceInvokeStoreMulti === true || "AWS_LAMBDA_MAX_CONCURRENCY" in process.env; + const newInstance = isMulti + ? await InvokeStoreMulti.create() + : new InvokeStoreSingle(); + if (!NO_GLOBAL_AWS_LAMBDA && globalThis.awslambda?.InvokeStore) { + return globalThis.awslambda.InvokeStore; + } + else if (!NO_GLOBAL_AWS_LAMBDA && globalThis.awslambda) { + globalThis.awslambda.InvokeStore = newInstance; + return newInstance; + } + else { + return newInstance; + } + })(); + } + return instance; + } + InvokeStore.getInstanceAsync = getInstanceAsync; + InvokeStore._testing = process.env.AWS_LAMBDA_BENCHMARK_MODE === "1" + ? { + reset: () => { + instance = null; + if (globalThis.awslambda?.InvokeStore) { + delete globalThis.awslambda.InvokeStore; + } + globalThis.awslambda = { InvokeStore: undefined }; + }, + } + : undefined; +})(exports.InvokeStore || (exports.InvokeStore = {})); + +exports.InvokeStoreBase = InvokeStoreBase; + + +/***/ }), + +/***/ 62886: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +/* module decorator */ module = __nccwpck_require__.nmd(module); +// 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. + +/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ +(function(global, factory) { /* global define, require, module */ + + /* AMD */ if (typeof define === 'function' && define.amd) + define(["protobufjs/minimal"], factory); + + /* CommonJS */ else if ( true && module && module.exports) + module.exports = factory((__nccwpck_require__(71529).protobufMinimal)); + +})(this, function($protobuf) { + "use strict"; + + // Common aliases + var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; + + // Exported root namespace + var $root = $protobuf.roots._google_cloud_iam_credentials_protos || ($protobuf.roots._google_cloud_iam_credentials_protos = {}); + + $root.google = (function() { + + /** + * Namespace google. + * @exports google + * @namespace + */ + var google = {}; + + google.iam = (function() { + + /** + * Namespace iam. + * @memberof google + * @namespace + */ + var iam = {}; + + iam.credentials = (function() { + + /** + * Namespace credentials. + * @memberof google.iam + * @namespace + */ + var credentials = {}; + + credentials.v1 = (function() { + + /** + * Namespace v1. + * @memberof google.iam.credentials + * @namespace + */ + var v1 = {}; + + v1.GenerateAccessTokenRequest = (function() { + + /** + * Properties of a GenerateAccessTokenRequest. + * @memberof google.iam.credentials.v1 + * @interface IGenerateAccessTokenRequest + * @property {string|null} [name] GenerateAccessTokenRequest name + * @property {Array.|null} [delegates] GenerateAccessTokenRequest delegates + * @property {Array.|null} [scope] GenerateAccessTokenRequest scope + * @property {google.protobuf.IDuration|null} [lifetime] GenerateAccessTokenRequest lifetime + */ + + /** + * Constructs a new GenerateAccessTokenRequest. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a GenerateAccessTokenRequest. + * @implements IGenerateAccessTokenRequest + * @constructor + * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest=} [properties] Properties to set + */ + function GenerateAccessTokenRequest(properties) { + this.delegates = []; + this.scope = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GenerateAccessTokenRequest name. + * @member {string} name + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @instance + */ + GenerateAccessTokenRequest.prototype.name = ""; + + /** + * GenerateAccessTokenRequest delegates. + * @member {Array.} delegates + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @instance + */ + GenerateAccessTokenRequest.prototype.delegates = $util.emptyArray; + + /** + * GenerateAccessTokenRequest scope. + * @member {Array.} scope + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @instance + */ + GenerateAccessTokenRequest.prototype.scope = $util.emptyArray; + + /** + * GenerateAccessTokenRequest lifetime. + * @member {google.protobuf.IDuration|null|undefined} lifetime + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @instance + */ + GenerateAccessTokenRequest.prototype.lifetime = null; + + /** + * Creates a new GenerateAccessTokenRequest instance using the specified properties. + * @function create + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest=} [properties] Properties to set + * @returns {google.iam.credentials.v1.GenerateAccessTokenRequest} GenerateAccessTokenRequest instance + */ + GenerateAccessTokenRequest.create = function create(properties) { + return new GenerateAccessTokenRequest(properties); + }; + + /** + * Encodes the specified GenerateAccessTokenRequest message. Does not implicitly {@link google.iam.credentials.v1.GenerateAccessTokenRequest.verify|verify} messages. + * @function encode + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest} message GenerateAccessTokenRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerateAccessTokenRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.delegates != null && message.delegates.length) + for (var i = 0; i < message.delegates.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.delegates[i]); + if (message.scope != null && message.scope.length) + for (var i = 0; i < message.scope.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.scope[i]); + if (message.lifetime != null && Object.hasOwnProperty.call(message, "lifetime")) + $root.google.protobuf.Duration.encode(message.lifetime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GenerateAccessTokenRequest message, length delimited. Does not implicitly {@link google.iam.credentials.v1.GenerateAccessTokenRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest} message GenerateAccessTokenRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerateAccessTokenRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GenerateAccessTokenRequest message from the specified reader or buffer. + * @function decode + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.credentials.v1.GenerateAccessTokenRequest} GenerateAccessTokenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerateAccessTokenRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.GenerateAccessTokenRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.delegates && message.delegates.length)) + message.delegates = []; + message.delegates.push(reader.string()); + break; + } + case 4: { + if (!(message.scope && message.scope.length)) + message.scope = []; + message.scope.push(reader.string()); + break; + } + case 7: { + message.lifetime = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GenerateAccessTokenRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.credentials.v1.GenerateAccessTokenRequest} GenerateAccessTokenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerateAccessTokenRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GenerateAccessTokenRequest message. + * @function verify + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GenerateAccessTokenRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.delegates != null && message.hasOwnProperty("delegates")) { + if (!Array.isArray(message.delegates)) + return "delegates: array expected"; + for (var i = 0; i < message.delegates.length; ++i) + if (!$util.isString(message.delegates[i])) + return "delegates: string[] expected"; + } + if (message.scope != null && message.hasOwnProperty("scope")) { + if (!Array.isArray(message.scope)) + return "scope: array expected"; + for (var i = 0; i < message.scope.length; ++i) + if (!$util.isString(message.scope[i])) + return "scope: string[] expected"; + } + if (message.lifetime != null && message.hasOwnProperty("lifetime")) { + var error = $root.google.protobuf.Duration.verify(message.lifetime); + if (error) + return "lifetime." + error; + } + return null; + }; + + /** + * Creates a GenerateAccessTokenRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {Object.} object Plain object + * @returns {google.iam.credentials.v1.GenerateAccessTokenRequest} GenerateAccessTokenRequest + */ + GenerateAccessTokenRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.credentials.v1.GenerateAccessTokenRequest) + return object; + var message = new $root.google.iam.credentials.v1.GenerateAccessTokenRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.delegates) { + if (!Array.isArray(object.delegates)) + throw TypeError(".google.iam.credentials.v1.GenerateAccessTokenRequest.delegates: array expected"); + message.delegates = []; + for (var i = 0; i < object.delegates.length; ++i) + message.delegates[i] = String(object.delegates[i]); + } + if (object.scope) { + if (!Array.isArray(object.scope)) + throw TypeError(".google.iam.credentials.v1.GenerateAccessTokenRequest.scope: array expected"); + message.scope = []; + for (var i = 0; i < object.scope.length; ++i) + message.scope[i] = String(object.scope[i]); + } + if (object.lifetime != null) { + if (typeof object.lifetime !== "object") + throw TypeError(".google.iam.credentials.v1.GenerateAccessTokenRequest.lifetime: object expected"); + message.lifetime = $root.google.protobuf.Duration.fromObject(object.lifetime); + } + return message; + }; + + /** + * Creates a plain object from a GenerateAccessTokenRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {google.iam.credentials.v1.GenerateAccessTokenRequest} message GenerateAccessTokenRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GenerateAccessTokenRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.delegates = []; + object.scope = []; + } + if (options.defaults) { + object.name = ""; + object.lifetime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.delegates && message.delegates.length) { + object.delegates = []; + for (var j = 0; j < message.delegates.length; ++j) + object.delegates[j] = message.delegates[j]; + } + if (message.scope && message.scope.length) { + object.scope = []; + for (var j = 0; j < message.scope.length; ++j) + object.scope[j] = message.scope[j]; + } + if (message.lifetime != null && message.hasOwnProperty("lifetime")) + object.lifetime = $root.google.protobuf.Duration.toObject(message.lifetime, options); + return object; + }; + + /** + * Converts this GenerateAccessTokenRequest to JSON. + * @function toJSON + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @instance + * @returns {Object.} JSON object + */ + GenerateAccessTokenRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GenerateAccessTokenRequest + * @function getTypeUrl + * @memberof google.iam.credentials.v1.GenerateAccessTokenRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GenerateAccessTokenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.iam.credentials.v1.GenerateAccessTokenRequest"; + }; + + return GenerateAccessTokenRequest; + })(); + + v1.GenerateAccessTokenResponse = (function() { + + /** + * Properties of a GenerateAccessTokenResponse. + * @memberof google.iam.credentials.v1 + * @interface IGenerateAccessTokenResponse + * @property {string|null} [accessToken] GenerateAccessTokenResponse accessToken + * @property {google.protobuf.ITimestamp|null} [expireTime] GenerateAccessTokenResponse expireTime + */ + + /** + * Constructs a new GenerateAccessTokenResponse. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a GenerateAccessTokenResponse. + * @implements IGenerateAccessTokenResponse + * @constructor + * @param {google.iam.credentials.v1.IGenerateAccessTokenResponse=} [properties] Properties to set + */ + function GenerateAccessTokenResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GenerateAccessTokenResponse accessToken. + * @member {string} accessToken + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @instance + */ + GenerateAccessTokenResponse.prototype.accessToken = ""; + + /** + * GenerateAccessTokenResponse expireTime. + * @member {google.protobuf.ITimestamp|null|undefined} expireTime + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @instance + */ + GenerateAccessTokenResponse.prototype.expireTime = null; + + /** + * Creates a new GenerateAccessTokenResponse instance using the specified properties. + * @function create + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {google.iam.credentials.v1.IGenerateAccessTokenResponse=} [properties] Properties to set + * @returns {google.iam.credentials.v1.GenerateAccessTokenResponse} GenerateAccessTokenResponse instance + */ + GenerateAccessTokenResponse.create = function create(properties) { + return new GenerateAccessTokenResponse(properties); + }; + + /** + * Encodes the specified GenerateAccessTokenResponse message. Does not implicitly {@link google.iam.credentials.v1.GenerateAccessTokenResponse.verify|verify} messages. + * @function encode + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {google.iam.credentials.v1.IGenerateAccessTokenResponse} message GenerateAccessTokenResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerateAccessTokenResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.accessToken != null && Object.hasOwnProperty.call(message, "accessToken")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.accessToken); + if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) + $root.google.protobuf.Timestamp.encode(message.expireTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GenerateAccessTokenResponse message, length delimited. Does not implicitly {@link google.iam.credentials.v1.GenerateAccessTokenResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {google.iam.credentials.v1.IGenerateAccessTokenResponse} message GenerateAccessTokenResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerateAccessTokenResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GenerateAccessTokenResponse message from the specified reader or buffer. + * @function decode + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.credentials.v1.GenerateAccessTokenResponse} GenerateAccessTokenResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerateAccessTokenResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.GenerateAccessTokenResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.accessToken = reader.string(); + break; + } + case 3: { + message.expireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GenerateAccessTokenResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.credentials.v1.GenerateAccessTokenResponse} GenerateAccessTokenResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerateAccessTokenResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GenerateAccessTokenResponse message. + * @function verify + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GenerateAccessTokenResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.accessToken != null && message.hasOwnProperty("accessToken")) + if (!$util.isString(message.accessToken)) + return "accessToken: string expected"; + if (message.expireTime != null && message.hasOwnProperty("expireTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.expireTime); + if (error) + return "expireTime." + error; + } + return null; + }; + + /** + * Creates a GenerateAccessTokenResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {Object.} object Plain object + * @returns {google.iam.credentials.v1.GenerateAccessTokenResponse} GenerateAccessTokenResponse + */ + GenerateAccessTokenResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.credentials.v1.GenerateAccessTokenResponse) + return object; + var message = new $root.google.iam.credentials.v1.GenerateAccessTokenResponse(); + if (object.accessToken != null) + message.accessToken = String(object.accessToken); + if (object.expireTime != null) { + if (typeof object.expireTime !== "object") + throw TypeError(".google.iam.credentials.v1.GenerateAccessTokenResponse.expireTime: object expected"); + message.expireTime = $root.google.protobuf.Timestamp.fromObject(object.expireTime); + } + return message; + }; + + /** + * Creates a plain object from a GenerateAccessTokenResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {google.iam.credentials.v1.GenerateAccessTokenResponse} message GenerateAccessTokenResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GenerateAccessTokenResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.accessToken = ""; + object.expireTime = null; + } + if (message.accessToken != null && message.hasOwnProperty("accessToken")) + object.accessToken = message.accessToken; + if (message.expireTime != null && message.hasOwnProperty("expireTime")) + object.expireTime = $root.google.protobuf.Timestamp.toObject(message.expireTime, options); + return object; + }; + + /** + * Converts this GenerateAccessTokenResponse to JSON. + * @function toJSON + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @instance + * @returns {Object.} JSON object + */ + GenerateAccessTokenResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GenerateAccessTokenResponse + * @function getTypeUrl + * @memberof google.iam.credentials.v1.GenerateAccessTokenResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GenerateAccessTokenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.iam.credentials.v1.GenerateAccessTokenResponse"; + }; + + return GenerateAccessTokenResponse; + })(); + + v1.SignBlobRequest = (function() { + + /** + * Properties of a SignBlobRequest. + * @memberof google.iam.credentials.v1 + * @interface ISignBlobRequest + * @property {string|null} [name] SignBlobRequest name + * @property {Array.|null} [delegates] SignBlobRequest delegates + * @property {Uint8Array|null} [payload] SignBlobRequest payload + */ + + /** + * Constructs a new SignBlobRequest. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a SignBlobRequest. + * @implements ISignBlobRequest + * @constructor + * @param {google.iam.credentials.v1.ISignBlobRequest=} [properties] Properties to set + */ + function SignBlobRequest(properties) { + this.delegates = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignBlobRequest name. + * @member {string} name + * @memberof google.iam.credentials.v1.SignBlobRequest + * @instance + */ + SignBlobRequest.prototype.name = ""; + + /** + * SignBlobRequest delegates. + * @member {Array.} delegates + * @memberof google.iam.credentials.v1.SignBlobRequest + * @instance + */ + SignBlobRequest.prototype.delegates = $util.emptyArray; + + /** + * SignBlobRequest payload. + * @member {Uint8Array} payload + * @memberof google.iam.credentials.v1.SignBlobRequest + * @instance + */ + SignBlobRequest.prototype.payload = $util.newBuffer([]); + + /** + * Creates a new SignBlobRequest instance using the specified properties. + * @function create + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {google.iam.credentials.v1.ISignBlobRequest=} [properties] Properties to set + * @returns {google.iam.credentials.v1.SignBlobRequest} SignBlobRequest instance + */ + SignBlobRequest.create = function create(properties) { + return new SignBlobRequest(properties); + }; + + /** + * Encodes the specified SignBlobRequest message. Does not implicitly {@link google.iam.credentials.v1.SignBlobRequest.verify|verify} messages. + * @function encode + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {google.iam.credentials.v1.ISignBlobRequest} message SignBlobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignBlobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.delegates != null && message.delegates.length) + for (var i = 0; i < message.delegates.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.delegates[i]); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.payload); + return writer; + }; + + /** + * Encodes the specified SignBlobRequest message, length delimited. Does not implicitly {@link google.iam.credentials.v1.SignBlobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {google.iam.credentials.v1.ISignBlobRequest} message SignBlobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignBlobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SignBlobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.credentials.v1.SignBlobRequest} SignBlobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignBlobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.SignBlobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + if (!(message.delegates && message.delegates.length)) + message.delegates = []; + message.delegates.push(reader.string()); + break; + } + case 5: { + message.payload = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SignBlobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.credentials.v1.SignBlobRequest} SignBlobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignBlobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SignBlobRequest message. + * @function verify + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignBlobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.delegates != null && message.hasOwnProperty("delegates")) { + if (!Array.isArray(message.delegates)) + return "delegates: array expected"; + for (var i = 0; i < message.delegates.length; ++i) + if (!$util.isString(message.delegates[i])) + return "delegates: string[] expected"; + } + if (message.payload != null && message.hasOwnProperty("payload")) + if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload))) + return "payload: buffer expected"; + return null; + }; + + /** + * Creates a SignBlobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.iam.credentials.v1.SignBlobRequest} SignBlobRequest + */ + SignBlobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.credentials.v1.SignBlobRequest) + return object; + var message = new $root.google.iam.credentials.v1.SignBlobRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.delegates) { + if (!Array.isArray(object.delegates)) + throw TypeError(".google.iam.credentials.v1.SignBlobRequest.delegates: array expected"); + message.delegates = []; + for (var i = 0; i < object.delegates.length; ++i) + message.delegates[i] = String(object.delegates[i]); + } + if (object.payload != null) + if (typeof object.payload === "string") + $util.base64.decode(object.payload, message.payload = $util.newBuffer($util.base64.length(object.payload)), 0); + else if (object.payload.length >= 0) + message.payload = object.payload; + return message; + }; + + /** + * Creates a plain object from a SignBlobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {google.iam.credentials.v1.SignBlobRequest} message SignBlobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SignBlobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.delegates = []; + if (options.defaults) { + object.name = ""; + if (options.bytes === String) + object.payload = ""; + else { + object.payload = []; + if (options.bytes !== Array) + object.payload = $util.newBuffer(object.payload); + } + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.delegates && message.delegates.length) { + object.delegates = []; + for (var j = 0; j < message.delegates.length; ++j) + object.delegates[j] = message.delegates[j]; + } + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = options.bytes === String ? $util.base64.encode(message.payload, 0, message.payload.length) : options.bytes === Array ? Array.prototype.slice.call(message.payload) : message.payload; + return object; + }; + + /** + * Converts this SignBlobRequest to JSON. + * @function toJSON + * @memberof google.iam.credentials.v1.SignBlobRequest + * @instance + * @returns {Object.} JSON object + */ + SignBlobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SignBlobRequest + * @function getTypeUrl + * @memberof google.iam.credentials.v1.SignBlobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SignBlobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.iam.credentials.v1.SignBlobRequest"; + }; + + return SignBlobRequest; + })(); + + v1.SignBlobResponse = (function() { + + /** + * Properties of a SignBlobResponse. + * @memberof google.iam.credentials.v1 + * @interface ISignBlobResponse + * @property {string|null} [keyId] SignBlobResponse keyId + * @property {Uint8Array|null} [signedBlob] SignBlobResponse signedBlob + */ + + /** + * Constructs a new SignBlobResponse. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a SignBlobResponse. + * @implements ISignBlobResponse + * @constructor + * @param {google.iam.credentials.v1.ISignBlobResponse=} [properties] Properties to set + */ + function SignBlobResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignBlobResponse keyId. + * @member {string} keyId + * @memberof google.iam.credentials.v1.SignBlobResponse + * @instance + */ + SignBlobResponse.prototype.keyId = ""; + + /** + * SignBlobResponse signedBlob. + * @member {Uint8Array} signedBlob + * @memberof google.iam.credentials.v1.SignBlobResponse + * @instance + */ + SignBlobResponse.prototype.signedBlob = $util.newBuffer([]); + + /** + * Creates a new SignBlobResponse instance using the specified properties. + * @function create + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {google.iam.credentials.v1.ISignBlobResponse=} [properties] Properties to set + * @returns {google.iam.credentials.v1.SignBlobResponse} SignBlobResponse instance + */ + SignBlobResponse.create = function create(properties) { + return new SignBlobResponse(properties); + }; + + /** + * Encodes the specified SignBlobResponse message. Does not implicitly {@link google.iam.credentials.v1.SignBlobResponse.verify|verify} messages. + * @function encode + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {google.iam.credentials.v1.ISignBlobResponse} message SignBlobResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignBlobResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyId != null && Object.hasOwnProperty.call(message, "keyId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyId); + if (message.signedBlob != null && Object.hasOwnProperty.call(message, "signedBlob")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.signedBlob); + return writer; + }; + + /** + * Encodes the specified SignBlobResponse message, length delimited. Does not implicitly {@link google.iam.credentials.v1.SignBlobResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {google.iam.credentials.v1.ISignBlobResponse} message SignBlobResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignBlobResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SignBlobResponse message from the specified reader or buffer. + * @function decode + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.credentials.v1.SignBlobResponse} SignBlobResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignBlobResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.SignBlobResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.keyId = reader.string(); + break; + } + case 4: { + message.signedBlob = reader.bytes(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SignBlobResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.credentials.v1.SignBlobResponse} SignBlobResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignBlobResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SignBlobResponse message. + * @function verify + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignBlobResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyId != null && message.hasOwnProperty("keyId")) + if (!$util.isString(message.keyId)) + return "keyId: string expected"; + if (message.signedBlob != null && message.hasOwnProperty("signedBlob")) + if (!(message.signedBlob && typeof message.signedBlob.length === "number" || $util.isString(message.signedBlob))) + return "signedBlob: buffer expected"; + return null; + }; + + /** + * Creates a SignBlobResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {Object.} object Plain object + * @returns {google.iam.credentials.v1.SignBlobResponse} SignBlobResponse + */ + SignBlobResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.credentials.v1.SignBlobResponse) + return object; + var message = new $root.google.iam.credentials.v1.SignBlobResponse(); + if (object.keyId != null) + message.keyId = String(object.keyId); + if (object.signedBlob != null) + if (typeof object.signedBlob === "string") + $util.base64.decode(object.signedBlob, message.signedBlob = $util.newBuffer($util.base64.length(object.signedBlob)), 0); + else if (object.signedBlob.length >= 0) + message.signedBlob = object.signedBlob; + return message; + }; + + /** + * Creates a plain object from a SignBlobResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {google.iam.credentials.v1.SignBlobResponse} message SignBlobResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SignBlobResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.keyId = ""; + if (options.bytes === String) + object.signedBlob = ""; + else { + object.signedBlob = []; + if (options.bytes !== Array) + object.signedBlob = $util.newBuffer(object.signedBlob); + } + } + if (message.keyId != null && message.hasOwnProperty("keyId")) + object.keyId = message.keyId; + if (message.signedBlob != null && message.hasOwnProperty("signedBlob")) + object.signedBlob = options.bytes === String ? $util.base64.encode(message.signedBlob, 0, message.signedBlob.length) : options.bytes === Array ? Array.prototype.slice.call(message.signedBlob) : message.signedBlob; + return object; + }; + + /** + * Converts this SignBlobResponse to JSON. + * @function toJSON + * @memberof google.iam.credentials.v1.SignBlobResponse + * @instance + * @returns {Object.} JSON object + */ + SignBlobResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SignBlobResponse + * @function getTypeUrl + * @memberof google.iam.credentials.v1.SignBlobResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SignBlobResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.iam.credentials.v1.SignBlobResponse"; + }; + + return SignBlobResponse; + })(); + + v1.SignJwtRequest = (function() { + + /** + * Properties of a SignJwtRequest. + * @memberof google.iam.credentials.v1 + * @interface ISignJwtRequest + * @property {string|null} [name] SignJwtRequest name + * @property {Array.|null} [delegates] SignJwtRequest delegates + * @property {string|null} [payload] SignJwtRequest payload + */ + + /** + * Constructs a new SignJwtRequest. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a SignJwtRequest. + * @implements ISignJwtRequest + * @constructor + * @param {google.iam.credentials.v1.ISignJwtRequest=} [properties] Properties to set + */ + function SignJwtRequest(properties) { + this.delegates = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignJwtRequest name. + * @member {string} name + * @memberof google.iam.credentials.v1.SignJwtRequest + * @instance + */ + SignJwtRequest.prototype.name = ""; + + /** + * SignJwtRequest delegates. + * @member {Array.} delegates + * @memberof google.iam.credentials.v1.SignJwtRequest + * @instance + */ + SignJwtRequest.prototype.delegates = $util.emptyArray; + + /** + * SignJwtRequest payload. + * @member {string} payload + * @memberof google.iam.credentials.v1.SignJwtRequest + * @instance + */ + SignJwtRequest.prototype.payload = ""; + + /** + * Creates a new SignJwtRequest instance using the specified properties. + * @function create + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {google.iam.credentials.v1.ISignJwtRequest=} [properties] Properties to set + * @returns {google.iam.credentials.v1.SignJwtRequest} SignJwtRequest instance + */ + SignJwtRequest.create = function create(properties) { + return new SignJwtRequest(properties); + }; + + /** + * Encodes the specified SignJwtRequest message. Does not implicitly {@link google.iam.credentials.v1.SignJwtRequest.verify|verify} messages. + * @function encode + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {google.iam.credentials.v1.ISignJwtRequest} message SignJwtRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignJwtRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.delegates != null && message.delegates.length) + for (var i = 0; i < message.delegates.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.delegates[i]); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.payload); + return writer; + }; + + /** + * Encodes the specified SignJwtRequest message, length delimited. Does not implicitly {@link google.iam.credentials.v1.SignJwtRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {google.iam.credentials.v1.ISignJwtRequest} message SignJwtRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignJwtRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SignJwtRequest message from the specified reader or buffer. + * @function decode + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.credentials.v1.SignJwtRequest} SignJwtRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignJwtRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.SignJwtRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + if (!(message.delegates && message.delegates.length)) + message.delegates = []; + message.delegates.push(reader.string()); + break; + } + case 5: { + message.payload = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SignJwtRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.credentials.v1.SignJwtRequest} SignJwtRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignJwtRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SignJwtRequest message. + * @function verify + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignJwtRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.delegates != null && message.hasOwnProperty("delegates")) { + if (!Array.isArray(message.delegates)) + return "delegates: array expected"; + for (var i = 0; i < message.delegates.length; ++i) + if (!$util.isString(message.delegates[i])) + return "delegates: string[] expected"; + } + if (message.payload != null && message.hasOwnProperty("payload")) + if (!$util.isString(message.payload)) + return "payload: string expected"; + return null; + }; + + /** + * Creates a SignJwtRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {Object.} object Plain object + * @returns {google.iam.credentials.v1.SignJwtRequest} SignJwtRequest + */ + SignJwtRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.credentials.v1.SignJwtRequest) + return object; + var message = new $root.google.iam.credentials.v1.SignJwtRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.delegates) { + if (!Array.isArray(object.delegates)) + throw TypeError(".google.iam.credentials.v1.SignJwtRequest.delegates: array expected"); + message.delegates = []; + for (var i = 0; i < object.delegates.length; ++i) + message.delegates[i] = String(object.delegates[i]); + } + if (object.payload != null) + message.payload = String(object.payload); + return message; + }; + + /** + * Creates a plain object from a SignJwtRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {google.iam.credentials.v1.SignJwtRequest} message SignJwtRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SignJwtRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.delegates = []; + if (options.defaults) { + object.name = ""; + object.payload = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.delegates && message.delegates.length) { + object.delegates = []; + for (var j = 0; j < message.delegates.length; ++j) + object.delegates[j] = message.delegates[j]; + } + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = message.payload; + return object; + }; + + /** + * Converts this SignJwtRequest to JSON. + * @function toJSON + * @memberof google.iam.credentials.v1.SignJwtRequest + * @instance + * @returns {Object.} JSON object + */ + SignJwtRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SignJwtRequest + * @function getTypeUrl + * @memberof google.iam.credentials.v1.SignJwtRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SignJwtRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.iam.credentials.v1.SignJwtRequest"; + }; + + return SignJwtRequest; + })(); + + v1.SignJwtResponse = (function() { + + /** + * Properties of a SignJwtResponse. + * @memberof google.iam.credentials.v1 + * @interface ISignJwtResponse + * @property {string|null} [keyId] SignJwtResponse keyId + * @property {string|null} [signedJwt] SignJwtResponse signedJwt + */ + + /** + * Constructs a new SignJwtResponse. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a SignJwtResponse. + * @implements ISignJwtResponse + * @constructor + * @param {google.iam.credentials.v1.ISignJwtResponse=} [properties] Properties to set + */ + function SignJwtResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignJwtResponse keyId. + * @member {string} keyId + * @memberof google.iam.credentials.v1.SignJwtResponse + * @instance + */ + SignJwtResponse.prototype.keyId = ""; + + /** + * SignJwtResponse signedJwt. + * @member {string} signedJwt + * @memberof google.iam.credentials.v1.SignJwtResponse + * @instance + */ + SignJwtResponse.prototype.signedJwt = ""; + + /** + * Creates a new SignJwtResponse instance using the specified properties. + * @function create + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {google.iam.credentials.v1.ISignJwtResponse=} [properties] Properties to set + * @returns {google.iam.credentials.v1.SignJwtResponse} SignJwtResponse instance + */ + SignJwtResponse.create = function create(properties) { + return new SignJwtResponse(properties); + }; + + /** + * Encodes the specified SignJwtResponse message. Does not implicitly {@link google.iam.credentials.v1.SignJwtResponse.verify|verify} messages. + * @function encode + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {google.iam.credentials.v1.ISignJwtResponse} message SignJwtResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignJwtResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.keyId != null && Object.hasOwnProperty.call(message, "keyId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyId); + if (message.signedJwt != null && Object.hasOwnProperty.call(message, "signedJwt")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.signedJwt); + return writer; + }; + + /** + * Encodes the specified SignJwtResponse message, length delimited. Does not implicitly {@link google.iam.credentials.v1.SignJwtResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {google.iam.credentials.v1.ISignJwtResponse} message SignJwtResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignJwtResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SignJwtResponse message from the specified reader or buffer. + * @function decode + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.credentials.v1.SignJwtResponse} SignJwtResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignJwtResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.SignJwtResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.keyId = reader.string(); + break; + } + case 2: { + message.signedJwt = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SignJwtResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.credentials.v1.SignJwtResponse} SignJwtResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignJwtResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SignJwtResponse message. + * @function verify + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignJwtResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.keyId != null && message.hasOwnProperty("keyId")) + if (!$util.isString(message.keyId)) + return "keyId: string expected"; + if (message.signedJwt != null && message.hasOwnProperty("signedJwt")) + if (!$util.isString(message.signedJwt)) + return "signedJwt: string expected"; + return null; + }; + + /** + * Creates a SignJwtResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {Object.} object Plain object + * @returns {google.iam.credentials.v1.SignJwtResponse} SignJwtResponse + */ + SignJwtResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.credentials.v1.SignJwtResponse) + return object; + var message = new $root.google.iam.credentials.v1.SignJwtResponse(); + if (object.keyId != null) + message.keyId = String(object.keyId); + if (object.signedJwt != null) + message.signedJwt = String(object.signedJwt); + return message; + }; + + /** + * Creates a plain object from a SignJwtResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {google.iam.credentials.v1.SignJwtResponse} message SignJwtResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SignJwtResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.keyId = ""; + object.signedJwt = ""; + } + if (message.keyId != null && message.hasOwnProperty("keyId")) + object.keyId = message.keyId; + if (message.signedJwt != null && message.hasOwnProperty("signedJwt")) + object.signedJwt = message.signedJwt; + return object; + }; + + /** + * Converts this SignJwtResponse to JSON. + * @function toJSON + * @memberof google.iam.credentials.v1.SignJwtResponse + * @instance + * @returns {Object.} JSON object + */ + SignJwtResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SignJwtResponse + * @function getTypeUrl + * @memberof google.iam.credentials.v1.SignJwtResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SignJwtResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.iam.credentials.v1.SignJwtResponse"; + }; + + return SignJwtResponse; + })(); + + v1.GenerateIdTokenRequest = (function() { + + /** + * Properties of a GenerateIdTokenRequest. + * @memberof google.iam.credentials.v1 + * @interface IGenerateIdTokenRequest + * @property {string|null} [name] GenerateIdTokenRequest name + * @property {Array.|null} [delegates] GenerateIdTokenRequest delegates + * @property {string|null} [audience] GenerateIdTokenRequest audience + * @property {boolean|null} [includeEmail] GenerateIdTokenRequest includeEmail + */ + + /** + * Constructs a new GenerateIdTokenRequest. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a GenerateIdTokenRequest. + * @implements IGenerateIdTokenRequest + * @constructor + * @param {google.iam.credentials.v1.IGenerateIdTokenRequest=} [properties] Properties to set + */ + function GenerateIdTokenRequest(properties) { + this.delegates = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GenerateIdTokenRequest name. + * @member {string} name + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @instance + */ + GenerateIdTokenRequest.prototype.name = ""; + + /** + * GenerateIdTokenRequest delegates. + * @member {Array.} delegates + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @instance + */ + GenerateIdTokenRequest.prototype.delegates = $util.emptyArray; + + /** + * GenerateIdTokenRequest audience. + * @member {string} audience + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @instance + */ + GenerateIdTokenRequest.prototype.audience = ""; + + /** + * GenerateIdTokenRequest includeEmail. + * @member {boolean} includeEmail + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @instance + */ + GenerateIdTokenRequest.prototype.includeEmail = false; + + /** + * Creates a new GenerateIdTokenRequest instance using the specified properties. + * @function create + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {google.iam.credentials.v1.IGenerateIdTokenRequest=} [properties] Properties to set + * @returns {google.iam.credentials.v1.GenerateIdTokenRequest} GenerateIdTokenRequest instance + */ + GenerateIdTokenRequest.create = function create(properties) { + return new GenerateIdTokenRequest(properties); + }; + + /** + * Encodes the specified GenerateIdTokenRequest message. Does not implicitly {@link google.iam.credentials.v1.GenerateIdTokenRequest.verify|verify} messages. + * @function encode + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {google.iam.credentials.v1.IGenerateIdTokenRequest} message GenerateIdTokenRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerateIdTokenRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.delegates != null && message.delegates.length) + for (var i = 0; i < message.delegates.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.delegates[i]); + if (message.audience != null && Object.hasOwnProperty.call(message, "audience")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.audience); + if (message.includeEmail != null && Object.hasOwnProperty.call(message, "includeEmail")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.includeEmail); + return writer; + }; + + /** + * Encodes the specified GenerateIdTokenRequest message, length delimited. Does not implicitly {@link google.iam.credentials.v1.GenerateIdTokenRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {google.iam.credentials.v1.IGenerateIdTokenRequest} message GenerateIdTokenRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerateIdTokenRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GenerateIdTokenRequest message from the specified reader or buffer. + * @function decode + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.credentials.v1.GenerateIdTokenRequest} GenerateIdTokenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerateIdTokenRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.GenerateIdTokenRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.delegates && message.delegates.length)) + message.delegates = []; + message.delegates.push(reader.string()); + break; + } + case 3: { + message.audience = reader.string(); + break; + } + case 4: { + message.includeEmail = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GenerateIdTokenRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.credentials.v1.GenerateIdTokenRequest} GenerateIdTokenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerateIdTokenRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GenerateIdTokenRequest message. + * @function verify + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GenerateIdTokenRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.delegates != null && message.hasOwnProperty("delegates")) { + if (!Array.isArray(message.delegates)) + return "delegates: array expected"; + for (var i = 0; i < message.delegates.length; ++i) + if (!$util.isString(message.delegates[i])) + return "delegates: string[] expected"; + } + if (message.audience != null && message.hasOwnProperty("audience")) + if (!$util.isString(message.audience)) + return "audience: string expected"; + if (message.includeEmail != null && message.hasOwnProperty("includeEmail")) + if (typeof message.includeEmail !== "boolean") + return "includeEmail: boolean expected"; + return null; + }; + + /** + * Creates a GenerateIdTokenRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {Object.} object Plain object + * @returns {google.iam.credentials.v1.GenerateIdTokenRequest} GenerateIdTokenRequest + */ + GenerateIdTokenRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.credentials.v1.GenerateIdTokenRequest) + return object; + var message = new $root.google.iam.credentials.v1.GenerateIdTokenRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.delegates) { + if (!Array.isArray(object.delegates)) + throw TypeError(".google.iam.credentials.v1.GenerateIdTokenRequest.delegates: array expected"); + message.delegates = []; + for (var i = 0; i < object.delegates.length; ++i) + message.delegates[i] = String(object.delegates[i]); + } + if (object.audience != null) + message.audience = String(object.audience); + if (object.includeEmail != null) + message.includeEmail = Boolean(object.includeEmail); + return message; + }; + + /** + * Creates a plain object from a GenerateIdTokenRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {google.iam.credentials.v1.GenerateIdTokenRequest} message GenerateIdTokenRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GenerateIdTokenRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.delegates = []; + if (options.defaults) { + object.name = ""; + object.audience = ""; + object.includeEmail = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.delegates && message.delegates.length) { + object.delegates = []; + for (var j = 0; j < message.delegates.length; ++j) + object.delegates[j] = message.delegates[j]; + } + if (message.audience != null && message.hasOwnProperty("audience")) + object.audience = message.audience; + if (message.includeEmail != null && message.hasOwnProperty("includeEmail")) + object.includeEmail = message.includeEmail; + return object; + }; + + /** + * Converts this GenerateIdTokenRequest to JSON. + * @function toJSON + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @instance + * @returns {Object.} JSON object + */ + GenerateIdTokenRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GenerateIdTokenRequest + * @function getTypeUrl + * @memberof google.iam.credentials.v1.GenerateIdTokenRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GenerateIdTokenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.iam.credentials.v1.GenerateIdTokenRequest"; + }; + + return GenerateIdTokenRequest; + })(); + + v1.GenerateIdTokenResponse = (function() { + + /** + * Properties of a GenerateIdTokenResponse. + * @memberof google.iam.credentials.v1 + * @interface IGenerateIdTokenResponse + * @property {string|null} [token] GenerateIdTokenResponse token + */ + + /** + * Constructs a new GenerateIdTokenResponse. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a GenerateIdTokenResponse. + * @implements IGenerateIdTokenResponse + * @constructor + * @param {google.iam.credentials.v1.IGenerateIdTokenResponse=} [properties] Properties to set + */ + function GenerateIdTokenResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GenerateIdTokenResponse token. + * @member {string} token + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @instance + */ + GenerateIdTokenResponse.prototype.token = ""; + + /** + * Creates a new GenerateIdTokenResponse instance using the specified properties. + * @function create + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {google.iam.credentials.v1.IGenerateIdTokenResponse=} [properties] Properties to set + * @returns {google.iam.credentials.v1.GenerateIdTokenResponse} GenerateIdTokenResponse instance + */ + GenerateIdTokenResponse.create = function create(properties) { + return new GenerateIdTokenResponse(properties); + }; + + /** + * Encodes the specified GenerateIdTokenResponse message. Does not implicitly {@link google.iam.credentials.v1.GenerateIdTokenResponse.verify|verify} messages. + * @function encode + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {google.iam.credentials.v1.IGenerateIdTokenResponse} message GenerateIdTokenResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerateIdTokenResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.token != null && Object.hasOwnProperty.call(message, "token")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.token); + return writer; + }; + + /** + * Encodes the specified GenerateIdTokenResponse message, length delimited. Does not implicitly {@link google.iam.credentials.v1.GenerateIdTokenResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {google.iam.credentials.v1.IGenerateIdTokenResponse} message GenerateIdTokenResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GenerateIdTokenResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GenerateIdTokenResponse message from the specified reader or buffer. + * @function decode + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.iam.credentials.v1.GenerateIdTokenResponse} GenerateIdTokenResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerateIdTokenResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.iam.credentials.v1.GenerateIdTokenResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.token = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GenerateIdTokenResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.iam.credentials.v1.GenerateIdTokenResponse} GenerateIdTokenResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GenerateIdTokenResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GenerateIdTokenResponse message. + * @function verify + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GenerateIdTokenResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + /** + * Creates a GenerateIdTokenResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {Object.} object Plain object + * @returns {google.iam.credentials.v1.GenerateIdTokenResponse} GenerateIdTokenResponse + */ + GenerateIdTokenResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.iam.credentials.v1.GenerateIdTokenResponse) + return object; + var message = new $root.google.iam.credentials.v1.GenerateIdTokenResponse(); + if (object.token != null) + message.token = String(object.token); + return message; + }; + + /** + * Creates a plain object from a GenerateIdTokenResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {google.iam.credentials.v1.GenerateIdTokenResponse} message GenerateIdTokenResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GenerateIdTokenResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.token = ""; + if (message.token != null && message.hasOwnProperty("token")) + object.token = message.token; + return object; + }; + + /** + * Converts this GenerateIdTokenResponse to JSON. + * @function toJSON + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @instance + * @returns {Object.} JSON object + */ + GenerateIdTokenResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GenerateIdTokenResponse + * @function getTypeUrl + * @memberof google.iam.credentials.v1.GenerateIdTokenResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GenerateIdTokenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.iam.credentials.v1.GenerateIdTokenResponse"; + }; + + return GenerateIdTokenResponse; + })(); + + v1.IAMCredentials = (function() { + + /** + * Constructs a new IAMCredentials service. + * @memberof google.iam.credentials.v1 + * @classdesc Represents a IAMCredentials + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function IAMCredentials(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (IAMCredentials.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IAMCredentials; + + /** + * Creates new IAMCredentials service using the specified rpc implementation. + * @function create + * @memberof google.iam.credentials.v1.IAMCredentials + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {IAMCredentials} RPC service. Useful where requests and/or responses are streamed. + */ + IAMCredentials.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.iam.credentials.v1.IAMCredentials|generateAccessToken}. + * @memberof google.iam.credentials.v1.IAMCredentials + * @typedef GenerateAccessTokenCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.iam.credentials.v1.GenerateAccessTokenResponse} [response] GenerateAccessTokenResponse + */ + + /** + * Calls GenerateAccessToken. + * @function generateAccessToken + * @memberof google.iam.credentials.v1.IAMCredentials + * @instance + * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest} request GenerateAccessTokenRequest message or plain object + * @param {google.iam.credentials.v1.IAMCredentials.GenerateAccessTokenCallback} callback Node-style callback called with the error, if any, and GenerateAccessTokenResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IAMCredentials.prototype.generateAccessToken = function generateAccessToken(request, callback) { + return this.rpcCall(generateAccessToken, $root.google.iam.credentials.v1.GenerateAccessTokenRequest, $root.google.iam.credentials.v1.GenerateAccessTokenResponse, request, callback); + }, "name", { value: "GenerateAccessToken" }); + + /** + * Calls GenerateAccessToken. + * @function generateAccessToken + * @memberof google.iam.credentials.v1.IAMCredentials + * @instance + * @param {google.iam.credentials.v1.IGenerateAccessTokenRequest} request GenerateAccessTokenRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.iam.credentials.v1.IAMCredentials|generateIdToken}. + * @memberof google.iam.credentials.v1.IAMCredentials + * @typedef GenerateIdTokenCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.iam.credentials.v1.GenerateIdTokenResponse} [response] GenerateIdTokenResponse + */ + + /** + * Calls GenerateIdToken. + * @function generateIdToken + * @memberof google.iam.credentials.v1.IAMCredentials + * @instance + * @param {google.iam.credentials.v1.IGenerateIdTokenRequest} request GenerateIdTokenRequest message or plain object + * @param {google.iam.credentials.v1.IAMCredentials.GenerateIdTokenCallback} callback Node-style callback called with the error, if any, and GenerateIdTokenResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IAMCredentials.prototype.generateIdToken = function generateIdToken(request, callback) { + return this.rpcCall(generateIdToken, $root.google.iam.credentials.v1.GenerateIdTokenRequest, $root.google.iam.credentials.v1.GenerateIdTokenResponse, request, callback); + }, "name", { value: "GenerateIdToken" }); + + /** + * Calls GenerateIdToken. + * @function generateIdToken + * @memberof google.iam.credentials.v1.IAMCredentials + * @instance + * @param {google.iam.credentials.v1.IGenerateIdTokenRequest} request GenerateIdTokenRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.iam.credentials.v1.IAMCredentials|signBlob}. + * @memberof google.iam.credentials.v1.IAMCredentials + * @typedef SignBlobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.iam.credentials.v1.SignBlobResponse} [response] SignBlobResponse + */ + + /** + * Calls SignBlob. + * @function signBlob + * @memberof google.iam.credentials.v1.IAMCredentials + * @instance + * @param {google.iam.credentials.v1.ISignBlobRequest} request SignBlobRequest message or plain object + * @param {google.iam.credentials.v1.IAMCredentials.SignBlobCallback} callback Node-style callback called with the error, if any, and SignBlobResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IAMCredentials.prototype.signBlob = function signBlob(request, callback) { + return this.rpcCall(signBlob, $root.google.iam.credentials.v1.SignBlobRequest, $root.google.iam.credentials.v1.SignBlobResponse, request, callback); + }, "name", { value: "SignBlob" }); + + /** + * Calls SignBlob. + * @function signBlob + * @memberof google.iam.credentials.v1.IAMCredentials + * @instance + * @param {google.iam.credentials.v1.ISignBlobRequest} request SignBlobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.iam.credentials.v1.IAMCredentials|signJwt}. + * @memberof google.iam.credentials.v1.IAMCredentials + * @typedef SignJwtCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.iam.credentials.v1.SignJwtResponse} [response] SignJwtResponse + */ + + /** + * Calls SignJwt. + * @function signJwt + * @memberof google.iam.credentials.v1.IAMCredentials + * @instance + * @param {google.iam.credentials.v1.ISignJwtRequest} request SignJwtRequest message or plain object + * @param {google.iam.credentials.v1.IAMCredentials.SignJwtCallback} callback Node-style callback called with the error, if any, and SignJwtResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IAMCredentials.prototype.signJwt = function signJwt(request, callback) { + return this.rpcCall(signJwt, $root.google.iam.credentials.v1.SignJwtRequest, $root.google.iam.credentials.v1.SignJwtResponse, request, callback); + }, "name", { value: "SignJwt" }); + + /** + * Calls SignJwt. + * @function signJwt + * @memberof google.iam.credentials.v1.IAMCredentials + * @instance + * @param {google.iam.credentials.v1.ISignJwtRequest} request SignJwtRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return IAMCredentials; + })(); + + return v1; + })(); + + return credentials; + })(); + + return iam; + })(); + + google.api = (function() { + + /** + * Namespace api. + * @memberof google + * @namespace + */ + var api = {}; + + /** + * FieldBehavior enum. + * @name google.api.FieldBehavior + * @enum {number} + * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value + * @property {number} OPTIONAL=1 OPTIONAL value + * @property {number} REQUIRED=2 REQUIRED value + * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value + * @property {number} INPUT_ONLY=4 INPUT_ONLY value + * @property {number} IMMUTABLE=5 IMMUTABLE value + * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value + * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value + * @property {number} IDENTIFIER=8 IDENTIFIER value + */ + api.FieldBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "OPTIONAL"] = 1; + values[valuesById[2] = "REQUIRED"] = 2; + values[valuesById[3] = "OUTPUT_ONLY"] = 3; + values[valuesById[4] = "INPUT_ONLY"] = 4; + values[valuesById[5] = "IMMUTABLE"] = 5; + values[valuesById[6] = "UNORDERED_LIST"] = 6; + values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; + values[valuesById[8] = "IDENTIFIER"] = 8; + return values; + })(); + + api.ResourceDescriptor = (function() { + + /** + * Properties of a ResourceDescriptor. + * @memberof google.api + * @interface IResourceDescriptor + * @property {string|null} [type] ResourceDescriptor type + * @property {Array.|null} [pattern] ResourceDescriptor pattern + * @property {string|null} [nameField] ResourceDescriptor nameField + * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history + * @property {string|null} [plural] ResourceDescriptor plural + * @property {string|null} [singular] ResourceDescriptor singular + * @property {Array.|null} [style] ResourceDescriptor style + */ + + /** + * Constructs a new ResourceDescriptor. + * @memberof google.api + * @classdesc Represents a ResourceDescriptor. + * @implements IResourceDescriptor + * @constructor + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + */ + function ResourceDescriptor(properties) { + this.pattern = []; + this.style = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceDescriptor type. + * @member {string} type + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.type = ""; + + /** + * ResourceDescriptor pattern. + * @member {Array.} pattern + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.pattern = $util.emptyArray; + + /** + * ResourceDescriptor nameField. + * @member {string} nameField + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.nameField = ""; + + /** + * ResourceDescriptor history. + * @member {google.api.ResourceDescriptor.History} history + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.history = 0; + + /** + * ResourceDescriptor plural. + * @member {string} plural + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.plural = ""; + + /** + * ResourceDescriptor singular. + * @member {string} singular + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.singular = ""; + + /** + * ResourceDescriptor style. + * @member {Array.} style + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.style = $util.emptyArray; + + /** + * Creates a new ResourceDescriptor instance using the specified properties. + * @function create + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + * @returns {google.api.ResourceDescriptor} ResourceDescriptor instance + */ + ResourceDescriptor.create = function create(properties) { + return new ResourceDescriptor(properties); + }; + + /** + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.pattern != null && message.pattern.length) + for (var i = 0; i < message.pattern.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]); + if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField); + if (message.history != null && Object.hasOwnProperty.call(message, "history")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history); + if (message.plural != null && Object.hasOwnProperty.call(message, "plural")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural); + if (message.singular != null && Object.hasOwnProperty.call(message, "singular")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular); + if (message.style != null && message.style.length) { + writer.uint32(/* id 10, wireType 2 =*/82).fork(); + for (var i = 0; i < message.style.length; ++i) + writer.int32(message.style[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.string(); + break; + } + case 2: { + if (!(message.pattern && message.pattern.length)) + message.pattern = []; + message.pattern.push(reader.string()); + break; + } + case 3: { + message.nameField = reader.string(); + break; + } + case 4: { + message.history = reader.int32(); + break; + } + case 5: { + message.plural = reader.string(); + break; + } + case 6: { + message.singular = reader.string(); + break; + } + case 10: { + if (!(message.style && message.style.length)) + message.style = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.style.push(reader.int32()); + } else + message.style.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceDescriptor message. + * @function verify + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceDescriptor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.pattern != null && message.hasOwnProperty("pattern")) { + if (!Array.isArray(message.pattern)) + return "pattern: array expected"; + for (var i = 0; i < message.pattern.length; ++i) + if (!$util.isString(message.pattern[i])) + return "pattern: string[] expected"; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + if (!$util.isString(message.nameField)) + return "nameField: string expected"; + if (message.history != null && message.hasOwnProperty("history")) + switch (message.history) { + default: + return "history: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.plural != null && message.hasOwnProperty("plural")) + if (!$util.isString(message.plural)) + return "plural: string expected"; + if (message.singular != null && message.hasOwnProperty("singular")) + if (!$util.isString(message.singular)) + return "singular: string expected"; + if (message.style != null && message.hasOwnProperty("style")) { + if (!Array.isArray(message.style)) + return "style: array expected"; + for (var i = 0; i < message.style.length; ++i) + switch (message.style[i]) { + default: + return "style: enum value[] expected"; + case 0: + case 1: + break; + } + } + return null; + }; + + /** + * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + */ + ResourceDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceDescriptor) + return object; + var message = new $root.google.api.ResourceDescriptor(); + if (object.type != null) + message.type = String(object.type); + if (object.pattern) { + if (!Array.isArray(object.pattern)) + throw TypeError(".google.api.ResourceDescriptor.pattern: array expected"); + message.pattern = []; + for (var i = 0; i < object.pattern.length; ++i) + message.pattern[i] = String(object.pattern[i]); + } + if (object.nameField != null) + message.nameField = String(object.nameField); + switch (object.history) { + default: + if (typeof object.history === "number") { + message.history = object.history; + break; + } + break; + case "HISTORY_UNSPECIFIED": + case 0: + message.history = 0; + break; + case "ORIGINALLY_SINGLE_PATTERN": + case 1: + message.history = 1; + break; + case "FUTURE_MULTI_PATTERN": + case 2: + message.history = 2; + break; + } + if (object.plural != null) + message.plural = String(object.plural); + if (object.singular != null) + message.singular = String(object.singular); + if (object.style) { + if (!Array.isArray(object.style)) + throw TypeError(".google.api.ResourceDescriptor.style: array expected"); + message.style = []; + for (var i = 0; i < object.style.length; ++i) + switch (object.style[i]) { + default: + if (typeof object.style[i] === "number") { + message.style[i] = object.style[i]; + break; + } + case "STYLE_UNSPECIFIED": + case 0: + message.style[i] = 0; + break; + case "DECLARATIVE_FRIENDLY": + case 1: + message.style[i] = 1; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.ResourceDescriptor} message ResourceDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.pattern = []; + object.style = []; + } + if (options.defaults) { + object.type = ""; + object.nameField = ""; + object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0; + object.plural = ""; + object.singular = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.pattern && message.pattern.length) { + object.pattern = []; + for (var j = 0; j < message.pattern.length; ++j) + object.pattern[j] = message.pattern[j]; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + object.nameField = message.nameField; + if (message.history != null && message.hasOwnProperty("history")) + object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] === undefined ? message.history : $root.google.api.ResourceDescriptor.History[message.history] : message.history; + if (message.plural != null && message.hasOwnProperty("plural")) + object.plural = message.plural; + if (message.singular != null && message.hasOwnProperty("singular")) + object.singular = message.singular; + if (message.style && message.style.length) { + object.style = []; + for (var j = 0; j < message.style.length; ++j) + object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] === undefined ? message.style[j] : $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; + } + return object; + }; + + /** + * Converts this ResourceDescriptor to JSON. + * @function toJSON + * @memberof google.api.ResourceDescriptor + * @instance + * @returns {Object.} JSON object + */ + ResourceDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceDescriptor + * @function getTypeUrl + * @memberof google.api.ResourceDescriptor + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceDescriptor"; + }; + + /** + * History enum. + * @name google.api.ResourceDescriptor.History + * @enum {number} + * @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value + * @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value + * @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value + */ + ResourceDescriptor.History = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1; + values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2; + return values; + })(); + + /** + * Style enum. + * @name google.api.ResourceDescriptor.Style + * @enum {number} + * @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value + * @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value + */ + ResourceDescriptor.Style = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1; + return values; + })(); + + return ResourceDescriptor; + })(); + + api.ResourceReference = (function() { + + /** + * Properties of a ResourceReference. + * @memberof google.api + * @interface IResourceReference + * @property {string|null} [type] ResourceReference type + * @property {string|null} [childType] ResourceReference childType + */ + + /** + * Constructs a new ResourceReference. + * @memberof google.api + * @classdesc Represents a ResourceReference. + * @implements IResourceReference + * @constructor + * @param {google.api.IResourceReference=} [properties] Properties to set + */ + function ResourceReference(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceReference type. + * @member {string} type + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.type = ""; + + /** + * ResourceReference childType. + * @member {string} childType + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.childType = ""; + + /** + * Creates a new ResourceReference instance using the specified properties. + * @function create + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference=} [properties] Properties to set + * @returns {google.api.ResourceReference} ResourceReference instance + */ + ResourceReference.create = function create(properties) { + return new ResourceReference(properties); + }; + + /** + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.childType != null && Object.hasOwnProperty.call(message, "childType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType); + return writer; + }; + + /** + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceReference message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.childType = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceReference message. + * @function verify + * @memberof google.api.ResourceReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.childType != null && message.hasOwnProperty("childType")) + if (!$util.isString(message.childType)) + return "childType: string expected"; + return null; + }; + + /** + * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceReference + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceReference} ResourceReference + */ + ResourceReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceReference) + return object; + var message = new $root.google.api.ResourceReference(); + if (object.type != null) + message.type = String(object.type); + if (object.childType != null) + message.childType = String(object.childType); + return message; + }; + + /** + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceReference + * @static + * @param {google.api.ResourceReference} message ResourceReference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceReference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = ""; + object.childType = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.childType != null && message.hasOwnProperty("childType")) + object.childType = message.childType; + return object; + }; + + /** + * Converts this ResourceReference to JSON. + * @function toJSON + * @memberof google.api.ResourceReference + * @instance + * @returns {Object.} JSON object + */ + ResourceReference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceReference + * @function getTypeUrl + * @memberof google.api.ResourceReference + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceReference"; + }; + + return ResourceReference; + })(); + + api.Http = (function() { + + /** + * Properties of a Http. + * @memberof google.api + * @interface IHttp + * @property {Array.|null} [rules] Http rules + * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion + */ + + /** + * Constructs a new Http. + * @memberof google.api + * @classdesc Represents a Http. + * @implements IHttp + * @constructor + * @param {google.api.IHttp=} [properties] Properties to set + */ + function Http(properties) { + this.rules = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http + * @instance + */ + Http.prototype.rules = $util.emptyArray; + + /** + * Http fullyDecodeReservedExpansion. + * @member {boolean} fullyDecodeReservedExpansion + * @memberof google.api.Http + * @instance + */ + Http.prototype.fullyDecodeReservedExpansion = false; + + /** + * Creates a new Http instance using the specified properties. + * @function create + * @memberof google.api.Http + * @static + * @param {google.api.IHttp=} [properties] Properties to set + * @returns {google.api.Http} Http instance + */ + Http.create = function create(properties) { + return new Http(properties); + }; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encode + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); + return writer; + }; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Http message from the specified reader or buffer. + * @function decode + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } + case 2: { + message.fullyDecodeReservedExpansion = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Http message. + * @function verify + * @memberof google.api.Http + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Http.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + if (typeof message.fullyDecodeReservedExpansion !== "boolean") + return "fullyDecodeReservedExpansion: boolean expected"; + return null; + }; + + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.Http + * @static + * @param {Object.} object Plain object + * @returns {google.api.Http} Http + */ + Http.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Http) + return object; + var message = new $root.google.api.Http(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.api.Http.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.api.Http.rules: object expected"); + message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + } + } + if (object.fullyDecodeReservedExpansion != null) + message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion); + return message; + }; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.Http + * @static + * @param {google.api.Http} message Http + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Http.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (options.defaults) + object.fullyDecodeReservedExpansion = false; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion; + return object; + }; + + /** + * Converts this Http to JSON. + * @function toJSON + * @memberof google.api.Http + * @instance + * @returns {Object.} JSON object + */ + Http.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Http + * @function getTypeUrl + * @memberof google.api.Http + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.Http"; + }; + + return Http; + })(); + + api.HttpRule = (function() { + + /** + * Properties of a HttpRule. + * @memberof google.api + * @interface IHttpRule + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [body] HttpRule body + * @property {string|null} [responseBody] HttpRule responseBody + * @property {Array.|null} [additionalBindings] HttpRule additionalBindings + */ + + /** + * Constructs a new HttpRule. + * @memberof google.api + * @classdesc Represents a HttpRule. + * @implements IHttpRule + * @constructor + * @param {google.api.IHttpRule=} [properties] Properties to set + */ + function HttpRule(properties) { + this.additionalBindings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; + + /** + * HttpRule get. + * @member {string|null|undefined} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = null; + + /** + * HttpRule put. + * @member {string|null|undefined} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = null; + + /** + * HttpRule post. + * @member {string|null|undefined} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = null; + + /** + * HttpRule delete. + * @member {string|null|undefined} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = null; + + /** + * HttpRule patch. + * @member {string|null|undefined} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = null; + + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; + + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; + + /** + * HttpRule responseBody. + * @member {string} responseBody + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.responseBody = ""; + + /** + * HttpRule additionalBindings. + * @member {Array.} additionalBindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additionalBindings = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HttpRule instance using the specified properties. + * @function create + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule=} [properties] Properties to set + * @returns {google.api.HttpRule} HttpRule instance + */ + HttpRule.create = function create(properties) { + return new HttpRule(properties); + }; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encode + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && Object.hasOwnProperty.call(message, "get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && Object.hasOwnProperty.call(message, "put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && Object.hasOwnProperty.call(message, "post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && Object.hasOwnProperty.call(message, "body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additionalBindings != null && message.additionalBindings.length) + for (var i = 0; i < message.additionalBindings.length; ++i) + $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); + return writer; + }; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @function decode + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.selector = reader.string(); + break; + } + case 2: { + message.get = reader.string(); + break; + } + case 3: { + message.put = reader.string(); + break; + } + case 4: { + message.post = reader.string(); + break; + } + case 5: { + message["delete"] = reader.string(); + break; + } + case 6: { + message.patch = reader.string(); + break; + } + case 8: { + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + } + case 7: { + message.body = reader.string(); + break; + } + case 12: { + message.responseBody = reader.string(); + break; + } + case 11: { + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HttpRule message. + * @function verify + * @memberof google.api.HttpRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.get != null && message.hasOwnProperty("get")) { + properties.pattern = 1; + if (!$util.isString(message.get)) + return "get: string expected"; + } + if (message.put != null && message.hasOwnProperty("put")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.put)) + return "put: string expected"; + } + if (message.post != null && message.hasOwnProperty("post")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.post)) + return "post: string expected"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message["delete"])) + return "delete: string expected"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.patch)) + return "patch: string expected"; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + { + var error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (error) + return "custom." + error; + } + } + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + if (!$util.isString(message.responseBody)) + return "responseBody: string expected"; + if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { + if (!Array.isArray(message.additionalBindings)) + return "additionalBindings: array expected"; + for (var i = 0; i < message.additionalBindings.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); + if (error) + return "additionalBindings." + error; + } + } + return null; + }; + + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.HttpRule + * @static + * @param {Object.} object Plain object + * @returns {google.api.HttpRule} HttpRule + */ + HttpRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.HttpRule) + return object; + var message = new $root.google.api.HttpRule(); + if (object.selector != null) + message.selector = String(object.selector); + if (object.get != null) + message.get = String(object.get); + if (object.put != null) + message.put = String(object.put); + if (object.post != null) + message.post = String(object.post); + if (object["delete"] != null) + message["delete"] = String(object["delete"]); + if (object.patch != null) + message.patch = String(object.patch); + if (object.custom != null) { + if (typeof object.custom !== "object") + throw TypeError(".google.api.HttpRule.custom: object expected"); + message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); + } + if (object.body != null) + message.body = String(object.body); + if (object.responseBody != null) + message.responseBody = String(object.responseBody); + if (object.additionalBindings) { + if (!Array.isArray(object.additionalBindings)) + throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); + message.additionalBindings = []; + for (var i = 0; i < object.additionalBindings.length; ++i) { + if (typeof object.additionalBindings[i] !== "object") + throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); + message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.HttpRule + * @static + * @param {google.api.HttpRule} message HttpRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HttpRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.additionalBindings = []; + if (options.defaults) { + object.selector = ""; + object.body = ""; + object.responseBody = ""; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.get != null && message.hasOwnProperty("get")) { + object.get = message.get; + if (options.oneofs) + object.pattern = "get"; + } + if (message.put != null && message.hasOwnProperty("put")) { + object.put = message.put; + if (options.oneofs) + object.pattern = "put"; + } + if (message.post != null && message.hasOwnProperty("post")) { + object.post = message.post; + if (options.oneofs) + object.pattern = "post"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + object["delete"] = message["delete"]; + if (options.oneofs) + object.pattern = "delete"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + object.patch = message.patch; + if (options.oneofs) + object.pattern = "patch"; + } + if (message.body != null && message.hasOwnProperty("body")) + object.body = message.body; + if (message.custom != null && message.hasOwnProperty("custom")) { + object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); + if (options.oneofs) + object.pattern = "custom"; + } + if (message.additionalBindings && message.additionalBindings.length) { + object.additionalBindings = []; + for (var j = 0; j < message.additionalBindings.length; ++j) + object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); + } + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + object.responseBody = message.responseBody; + return object; + }; + + /** + * Converts this HttpRule to JSON. + * @function toJSON + * @memberof google.api.HttpRule + * @instance + * @returns {Object.} JSON object + */ + HttpRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for HttpRule + * @function getTypeUrl + * @memberof google.api.HttpRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.HttpRule"; + }; + + return HttpRule; + })(); + + api.CustomHttpPattern = (function() { + + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ + + /** + * Constructs a new CustomHttpPattern. + * @memberof google.api + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern + * @constructor + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + */ + function CustomHttpPattern(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; + + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @function create + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + */ + CustomHttpPattern.create = function create(properties) { + return new CustomHttpPattern(properties); + }; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encode + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @function decode + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.kind = reader.string(); + break; + } + case 2: { + message.path = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomHttpPattern message. + * @function verify + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomHttpPattern.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + if (!$util.isString(message.kind)) + return "kind: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; + + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} object Plain object + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + */ + CustomHttpPattern.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CustomHttpPattern) + return object; + var message = new $root.google.api.CustomHttpPattern(); + if (object.kind != null) + message.kind = String(object.kind); + if (object.path != null) + message.path = String(object.path); + return message; + }; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomHttpPattern.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.kind = ""; + object.path = ""; + } + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = message.kind; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; + + /** + * Converts this CustomHttpPattern to JSON. + * @function toJSON + * @memberof google.api.CustomHttpPattern + * @instance + * @returns {Object.} JSON object + */ + CustomHttpPattern.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CustomHttpPattern + * @function getTypeUrl + * @memberof google.api.CustomHttpPattern + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.CustomHttpPattern"; + }; + + return CustomHttpPattern; + })(); + + api.CommonLanguageSettings = (function() { + + /** + * Properties of a CommonLanguageSettings. + * @memberof google.api + * @interface ICommonLanguageSettings + * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri + * @property {Array.|null} [destinations] CommonLanguageSettings destinations + */ + + /** + * Constructs a new CommonLanguageSettings. + * @memberof google.api + * @classdesc Represents a CommonLanguageSettings. + * @implements ICommonLanguageSettings + * @constructor + * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set + */ + function CommonLanguageSettings(properties) { + this.destinations = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CommonLanguageSettings referenceDocsUri. + * @member {string} referenceDocsUri + * @memberof google.api.CommonLanguageSettings + * @instance + */ + CommonLanguageSettings.prototype.referenceDocsUri = ""; + + /** + * CommonLanguageSettings destinations. + * @member {Array.} destinations + * @memberof google.api.CommonLanguageSettings + * @instance + */ + CommonLanguageSettings.prototype.destinations = $util.emptyArray; + + /** + * Creates a new CommonLanguageSettings instance using the specified properties. + * @function create + * @memberof google.api.CommonLanguageSettings + * @static + * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set + * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance + */ + CommonLanguageSettings.create = function create(properties) { + return new CommonLanguageSettings(properties); + }; + + /** + * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages. + * @function encode + * @memberof google.api.CommonLanguageSettings + * @static + * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CommonLanguageSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri); + if (message.destinations != null && message.destinations.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.destinations.length; ++i) + writer.int32(message.destinations[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.CommonLanguageSettings + * @static + * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CommonLanguageSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.CommonLanguageSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CommonLanguageSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.referenceDocsUri = reader.string(); + break; + } + case 2: { + if (!(message.destinations && message.destinations.length)) + message.destinations = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.destinations.push(reader.int32()); + } else + message.destinations.push(reader.int32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.CommonLanguageSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CommonLanguageSettings message. + * @function verify + * @memberof google.api.CommonLanguageSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CommonLanguageSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri")) + if (!$util.isString(message.referenceDocsUri)) + return "referenceDocsUri: string expected"; + if (message.destinations != null && message.hasOwnProperty("destinations")) { + if (!Array.isArray(message.destinations)) + return "destinations: array expected"; + for (var i = 0; i < message.destinations.length; ++i) + switch (message.destinations[i]) { + default: + return "destinations: enum value[] expected"; + case 0: + case 10: + case 20: + break; + } + } + return null; + }; + + /** + * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CommonLanguageSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings + */ + CommonLanguageSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CommonLanguageSettings) + return object; + var message = new $root.google.api.CommonLanguageSettings(); + if (object.referenceDocsUri != null) + message.referenceDocsUri = String(object.referenceDocsUri); + if (object.destinations) { + if (!Array.isArray(object.destinations)) + throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected"); + message.destinations = []; + for (var i = 0; i < object.destinations.length; ++i) + switch (object.destinations[i]) { + default: + if (typeof object.destinations[i] === "number") { + message.destinations[i] = object.destinations[i]; + break; + } + case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED": + case 0: + message.destinations[i] = 0; + break; + case "GITHUB": + case 10: + message.destinations[i] = 10; + break; + case "PACKAGE_MANAGER": + case 20: + message.destinations[i] = 20; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CommonLanguageSettings + * @static + * @param {google.api.CommonLanguageSettings} message CommonLanguageSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CommonLanguageSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.destinations = []; + if (options.defaults) + object.referenceDocsUri = ""; + if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri")) + object.referenceDocsUri = message.referenceDocsUri; + if (message.destinations && message.destinations.length) { + object.destinations = []; + for (var j = 0; j < message.destinations.length; ++j) + object.destinations[j] = options.enums === String ? $root.google.api.ClientLibraryDestination[message.destinations[j]] === undefined ? message.destinations[j] : $root.google.api.ClientLibraryDestination[message.destinations[j]] : message.destinations[j]; + } + return object; + }; + + /** + * Converts this CommonLanguageSettings to JSON. + * @function toJSON + * @memberof google.api.CommonLanguageSettings + * @instance + * @returns {Object.} JSON object + */ + CommonLanguageSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CommonLanguageSettings + * @function getTypeUrl + * @memberof google.api.CommonLanguageSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.CommonLanguageSettings"; + }; + + return CommonLanguageSettings; + })(); + + api.ClientLibrarySettings = (function() { + + /** + * Properties of a ClientLibrarySettings. + * @memberof google.api + * @interface IClientLibrarySettings + * @property {string|null} [version] ClientLibrarySettings version + * @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage + * @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums + * @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings + * @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings + * @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings + * @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings + * @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings + * @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings + * @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings + * @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings + */ + + /** + * Constructs a new ClientLibrarySettings. + * @memberof google.api + * @classdesc Represents a ClientLibrarySettings. + * @implements IClientLibrarySettings + * @constructor + * @param {google.api.IClientLibrarySettings=} [properties] Properties to set + */ + function ClientLibrarySettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ClientLibrarySettings version. + * @member {string} version + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.version = ""; + + /** + * ClientLibrarySettings launchStage. + * @member {google.api.LaunchStage} launchStage + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.launchStage = 0; + + /** + * ClientLibrarySettings restNumericEnums. + * @member {boolean} restNumericEnums + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.restNumericEnums = false; + + /** + * ClientLibrarySettings javaSettings. + * @member {google.api.IJavaSettings|null|undefined} javaSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.javaSettings = null; + + /** + * ClientLibrarySettings cppSettings. + * @member {google.api.ICppSettings|null|undefined} cppSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.cppSettings = null; + + /** + * ClientLibrarySettings phpSettings. + * @member {google.api.IPhpSettings|null|undefined} phpSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.phpSettings = null; + + /** + * ClientLibrarySettings pythonSettings. + * @member {google.api.IPythonSettings|null|undefined} pythonSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.pythonSettings = null; + + /** + * ClientLibrarySettings nodeSettings. + * @member {google.api.INodeSettings|null|undefined} nodeSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.nodeSettings = null; + + /** + * ClientLibrarySettings dotnetSettings. + * @member {google.api.IDotnetSettings|null|undefined} dotnetSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.dotnetSettings = null; + + /** + * ClientLibrarySettings rubySettings. + * @member {google.api.IRubySettings|null|undefined} rubySettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.rubySettings = null; + + /** + * ClientLibrarySettings goSettings. + * @member {google.api.IGoSettings|null|undefined} goSettings + * @memberof google.api.ClientLibrarySettings + * @instance + */ + ClientLibrarySettings.prototype.goSettings = null; + + /** + * Creates a new ClientLibrarySettings instance using the specified properties. + * @function create + * @memberof google.api.ClientLibrarySettings + * @static + * @param {google.api.IClientLibrarySettings=} [properties] Properties to set + * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance + */ + ClientLibrarySettings.create = function create(properties) { + return new ClientLibrarySettings(properties); + }; + + /** + * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages. + * @function encode + * @memberof google.api.ClientLibrarySettings + * @static + * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClientLibrarySettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage); + if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums); + if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings")) + $root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings")) + $root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings")) + $root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings")) + $root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); + if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings")) + $root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings")) + $root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); + if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings")) + $root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); + if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings")) + $root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ClientLibrarySettings + * @static + * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ClientLibrarySettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.ClientLibrarySettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClientLibrarySettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.version = reader.string(); + break; + } + case 2: { + message.launchStage = reader.int32(); + break; + } + case 3: { + message.restNumericEnums = reader.bool(); + break; + } + case 21: { + message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32()); + break; + } + case 22: { + message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32()); + break; + } + case 23: { + message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32()); + break; + } + case 24: { + message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32()); + break; + } + case 25: { + message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32()); + break; + } + case 26: { + message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32()); + break; + } + case 27: { + message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32()); + break; + } + case 28: { + message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ClientLibrarySettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ClientLibrarySettings message. + * @function verify + * @memberof google.api.ClientLibrarySettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ClientLibrarySettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.launchStage != null && message.hasOwnProperty("launchStage")) + switch (message.launchStage) { + default: + return "launchStage: enum value expected"; + case 0: + case 6: + case 7: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums")) + if (typeof message.restNumericEnums !== "boolean") + return "restNumericEnums: boolean expected"; + if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) { + var error = $root.google.api.JavaSettings.verify(message.javaSettings); + if (error) + return "javaSettings." + error; + } + if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) { + var error = $root.google.api.CppSettings.verify(message.cppSettings); + if (error) + return "cppSettings." + error; + } + if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) { + var error = $root.google.api.PhpSettings.verify(message.phpSettings); + if (error) + return "phpSettings." + error; + } + if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) { + var error = $root.google.api.PythonSettings.verify(message.pythonSettings); + if (error) + return "pythonSettings." + error; + } + if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) { + var error = $root.google.api.NodeSettings.verify(message.nodeSettings); + if (error) + return "nodeSettings." + error; + } + if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) { + var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings); + if (error) + return "dotnetSettings." + error; + } + if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) { + var error = $root.google.api.RubySettings.verify(message.rubySettings); + if (error) + return "rubySettings." + error; + } + if (message.goSettings != null && message.hasOwnProperty("goSettings")) { + var error = $root.google.api.GoSettings.verify(message.goSettings); + if (error) + return "goSettings." + error; + } + return null; + }; + + /** + * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ClientLibrarySettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings + */ + ClientLibrarySettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ClientLibrarySettings) + return object; + var message = new $root.google.api.ClientLibrarySettings(); + if (object.version != null) + message.version = String(object.version); + switch (object.launchStage) { + default: + if (typeof object.launchStage === "number") { + message.launchStage = object.launchStage; + break; + } + break; + case "LAUNCH_STAGE_UNSPECIFIED": + case 0: + message.launchStage = 0; + break; + case "UNIMPLEMENTED": + case 6: + message.launchStage = 6; + break; + case "PRELAUNCH": + case 7: + message.launchStage = 7; + break; + case "EARLY_ACCESS": + case 1: + message.launchStage = 1; + break; + case "ALPHA": + case 2: + message.launchStage = 2; + break; + case "BETA": + case 3: + message.launchStage = 3; + break; + case "GA": + case 4: + message.launchStage = 4; + break; + case "DEPRECATED": + case 5: + message.launchStage = 5; + break; + } + if (object.restNumericEnums != null) + message.restNumericEnums = Boolean(object.restNumericEnums); + if (object.javaSettings != null) { + if (typeof object.javaSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected"); + message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings); + } + if (object.cppSettings != null) { + if (typeof object.cppSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected"); + message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings); + } + if (object.phpSettings != null) { + if (typeof object.phpSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected"); + message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings); + } + if (object.pythonSettings != null) { + if (typeof object.pythonSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected"); + message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings); + } + if (object.nodeSettings != null) { + if (typeof object.nodeSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected"); + message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings); + } + if (object.dotnetSettings != null) { + if (typeof object.dotnetSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected"); + message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings); + } + if (object.rubySettings != null) { + if (typeof object.rubySettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected"); + message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings); + } + if (object.goSettings != null) { + if (typeof object.goSettings !== "object") + throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected"); + message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings); + } + return message; + }; + + /** + * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ClientLibrarySettings + * @static + * @param {google.api.ClientLibrarySettings} message ClientLibrarySettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ClientLibrarySettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.version = ""; + object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0; + object.restNumericEnums = false; + object.javaSettings = null; + object.cppSettings = null; + object.phpSettings = null; + object.pythonSettings = null; + object.nodeSettings = null; + object.dotnetSettings = null; + object.rubySettings = null; + object.goSettings = null; + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.launchStage != null && message.hasOwnProperty("launchStage")) + object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage; + if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums")) + object.restNumericEnums = message.restNumericEnums; + if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) + object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options); + if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) + object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options); + if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) + object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options); + if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) + object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options); + if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) + object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options); + if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) + object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options); + if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) + object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options); + if (message.goSettings != null && message.hasOwnProperty("goSettings")) + object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options); + return object; + }; + + /** + * Converts this ClientLibrarySettings to JSON. + * @function toJSON + * @memberof google.api.ClientLibrarySettings + * @instance + * @returns {Object.} JSON object + */ + ClientLibrarySettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ClientLibrarySettings + * @function getTypeUrl + * @memberof google.api.ClientLibrarySettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ClientLibrarySettings"; + }; + + return ClientLibrarySettings; + })(); + + api.Publishing = (function() { + + /** + * Properties of a Publishing. + * @memberof google.api + * @interface IPublishing + * @property {Array.|null} [methodSettings] Publishing methodSettings + * @property {string|null} [newIssueUri] Publishing newIssueUri + * @property {string|null} [documentationUri] Publishing documentationUri + * @property {string|null} [apiShortName] Publishing apiShortName + * @property {string|null} [githubLabel] Publishing githubLabel + * @property {Array.|null} [codeownerGithubTeams] Publishing codeownerGithubTeams + * @property {string|null} [docTagPrefix] Publishing docTagPrefix + * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization + * @property {Array.|null} [librarySettings] Publishing librarySettings + * @property {string|null} [protoReferenceDocumentationUri] Publishing protoReferenceDocumentationUri + */ + + /** + * Constructs a new Publishing. + * @memberof google.api + * @classdesc Represents a Publishing. + * @implements IPublishing + * @constructor + * @param {google.api.IPublishing=} [properties] Properties to set + */ + function Publishing(properties) { + this.methodSettings = []; + this.codeownerGithubTeams = []; + this.librarySettings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Publishing methodSettings. + * @member {Array.} methodSettings + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.methodSettings = $util.emptyArray; + + /** + * Publishing newIssueUri. + * @member {string} newIssueUri + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.newIssueUri = ""; + + /** + * Publishing documentationUri. + * @member {string} documentationUri + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.documentationUri = ""; + + /** + * Publishing apiShortName. + * @member {string} apiShortName + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.apiShortName = ""; + + /** + * Publishing githubLabel. + * @member {string} githubLabel + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.githubLabel = ""; + + /** + * Publishing codeownerGithubTeams. + * @member {Array.} codeownerGithubTeams + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.codeownerGithubTeams = $util.emptyArray; + + /** + * Publishing docTagPrefix. + * @member {string} docTagPrefix + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.docTagPrefix = ""; + + /** + * Publishing organization. + * @member {google.api.ClientLibraryOrganization} organization + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.organization = 0; + + /** + * Publishing librarySettings. + * @member {Array.} librarySettings + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.librarySettings = $util.emptyArray; + + /** + * Publishing protoReferenceDocumentationUri. + * @member {string} protoReferenceDocumentationUri + * @memberof google.api.Publishing + * @instance + */ + Publishing.prototype.protoReferenceDocumentationUri = ""; + + /** + * Creates a new Publishing instance using the specified properties. + * @function create + * @memberof google.api.Publishing + * @static + * @param {google.api.IPublishing=} [properties] Properties to set + * @returns {google.api.Publishing} Publishing instance + */ + Publishing.create = function create(properties) { + return new Publishing(properties); + }; + + /** + * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages. + * @function encode + * @memberof google.api.Publishing + * @static + * @param {google.api.IPublishing} message Publishing message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Publishing.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.methodSettings != null && message.methodSettings.length) + for (var i = 0; i < message.methodSettings.length; ++i) + $root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri")) + writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri); + if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri")) + writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri); + if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName")) + writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName); + if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel")) + writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel); + if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length) + for (var i = 0; i < message.codeownerGithubTeams.length; ++i) + writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]); + if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix")) + writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix); + if (message.organization != null && Object.hasOwnProperty.call(message, "organization")) + writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization); + if (message.librarySettings != null && message.librarySettings.length) + for (var i = 0; i < message.librarySettings.length; ++i) + $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); + if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri")) + writer.uint32(/* id 110, wireType 2 =*/882).string(message.protoReferenceDocumentationUri); + return writer; + }; + + /** + * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.Publishing + * @static + * @param {google.api.IPublishing} message Publishing message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Publishing.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Publishing message from the specified reader or buffer. + * @function decode + * @memberof google.api.Publishing + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Publishing} Publishing + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Publishing.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (!(message.methodSettings && message.methodSettings.length)) + message.methodSettings = []; + message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32())); + break; + } + case 101: { + message.newIssueUri = reader.string(); + break; + } + case 102: { + message.documentationUri = reader.string(); + break; + } + case 103: { + message.apiShortName = reader.string(); + break; + } + case 104: { + message.githubLabel = reader.string(); + break; + } + case 105: { + if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length)) + message.codeownerGithubTeams = []; + message.codeownerGithubTeams.push(reader.string()); + break; + } + case 106: { + message.docTagPrefix = reader.string(); + break; + } + case 107: { + message.organization = reader.int32(); + break; + } + case 109: { + if (!(message.librarySettings && message.librarySettings.length)) + message.librarySettings = []; + message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32())); + break; + } + case 110: { + message.protoReferenceDocumentationUri = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Publishing message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.Publishing + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.Publishing} Publishing + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Publishing.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Publishing message. + * @function verify + * @memberof google.api.Publishing + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Publishing.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.methodSettings != null && message.hasOwnProperty("methodSettings")) { + if (!Array.isArray(message.methodSettings)) + return "methodSettings: array expected"; + for (var i = 0; i < message.methodSettings.length; ++i) { + var error = $root.google.api.MethodSettings.verify(message.methodSettings[i]); + if (error) + return "methodSettings." + error; + } + } + if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri")) + if (!$util.isString(message.newIssueUri)) + return "newIssueUri: string expected"; + if (message.documentationUri != null && message.hasOwnProperty("documentationUri")) + if (!$util.isString(message.documentationUri)) + return "documentationUri: string expected"; + if (message.apiShortName != null && message.hasOwnProperty("apiShortName")) + if (!$util.isString(message.apiShortName)) + return "apiShortName: string expected"; + if (message.githubLabel != null && message.hasOwnProperty("githubLabel")) + if (!$util.isString(message.githubLabel)) + return "githubLabel: string expected"; + if (message.codeownerGithubTeams != null && message.hasOwnProperty("codeownerGithubTeams")) { + if (!Array.isArray(message.codeownerGithubTeams)) + return "codeownerGithubTeams: array expected"; + for (var i = 0; i < message.codeownerGithubTeams.length; ++i) + if (!$util.isString(message.codeownerGithubTeams[i])) + return "codeownerGithubTeams: string[] expected"; + } + if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix")) + if (!$util.isString(message.docTagPrefix)) + return "docTagPrefix: string expected"; + if (message.organization != null && message.hasOwnProperty("organization")) + switch (message.organization) { + default: + return "organization: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) { + if (!Array.isArray(message.librarySettings)) + return "librarySettings: array expected"; + for (var i = 0; i < message.librarySettings.length; ++i) { + var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i]); + if (error) + return "librarySettings." + error; + } + } + if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri")) + if (!$util.isString(message.protoReferenceDocumentationUri)) + return "protoReferenceDocumentationUri: string expected"; + return null; + }; + + /** + * Creates a Publishing message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.Publishing + * @static + * @param {Object.} object Plain object + * @returns {google.api.Publishing} Publishing + */ + Publishing.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Publishing) + return object; + var message = new $root.google.api.Publishing(); + if (object.methodSettings) { + if (!Array.isArray(object.methodSettings)) + throw TypeError(".google.api.Publishing.methodSettings: array expected"); + message.methodSettings = []; + for (var i = 0; i < object.methodSettings.length; ++i) { + if (typeof object.methodSettings[i] !== "object") + throw TypeError(".google.api.Publishing.methodSettings: object expected"); + message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]); + } + } + if (object.newIssueUri != null) + message.newIssueUri = String(object.newIssueUri); + if (object.documentationUri != null) + message.documentationUri = String(object.documentationUri); + if (object.apiShortName != null) + message.apiShortName = String(object.apiShortName); + if (object.githubLabel != null) + message.githubLabel = String(object.githubLabel); + if (object.codeownerGithubTeams) { + if (!Array.isArray(object.codeownerGithubTeams)) + throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected"); + message.codeownerGithubTeams = []; + for (var i = 0; i < object.codeownerGithubTeams.length; ++i) + message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]); + } + if (object.docTagPrefix != null) + message.docTagPrefix = String(object.docTagPrefix); + switch (object.organization) { + default: + if (typeof object.organization === "number") { + message.organization = object.organization; + break; + } + break; + case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED": + case 0: + message.organization = 0; + break; + case "CLOUD": + case 1: + message.organization = 1; + break; + case "ADS": + case 2: + message.organization = 2; + break; + case "PHOTOS": + case 3: + message.organization = 3; + break; + case "STREET_VIEW": + case 4: + message.organization = 4; + break; + case "SHOPPING": + case 5: + message.organization = 5; + break; + case "GEO": + case 6: + message.organization = 6; + break; + case "GENERATIVE_AI": + case 7: + message.organization = 7; + break; + } + if (object.librarySettings) { + if (!Array.isArray(object.librarySettings)) + throw TypeError(".google.api.Publishing.librarySettings: array expected"); + message.librarySettings = []; + for (var i = 0; i < object.librarySettings.length; ++i) { + if (typeof object.librarySettings[i] !== "object") + throw TypeError(".google.api.Publishing.librarySettings: object expected"); + message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]); + } + } + if (object.protoReferenceDocumentationUri != null) + message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri); + return message; + }; + + /** + * Creates a plain object from a Publishing message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.Publishing + * @static + * @param {google.api.Publishing} message Publishing + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Publishing.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.methodSettings = []; + object.codeownerGithubTeams = []; + object.librarySettings = []; + } + if (options.defaults) { + object.newIssueUri = ""; + object.documentationUri = ""; + object.apiShortName = ""; + object.githubLabel = ""; + object.docTagPrefix = ""; + object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0; + object.protoReferenceDocumentationUri = ""; + } + if (message.methodSettings && message.methodSettings.length) { + object.methodSettings = []; + for (var j = 0; j < message.methodSettings.length; ++j) + object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options); + } + if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri")) + object.newIssueUri = message.newIssueUri; + if (message.documentationUri != null && message.hasOwnProperty("documentationUri")) + object.documentationUri = message.documentationUri; + if (message.apiShortName != null && message.hasOwnProperty("apiShortName")) + object.apiShortName = message.apiShortName; + if (message.githubLabel != null && message.hasOwnProperty("githubLabel")) + object.githubLabel = message.githubLabel; + if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) { + object.codeownerGithubTeams = []; + for (var j = 0; j < message.codeownerGithubTeams.length; ++j) + object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j]; + } + if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix")) + object.docTagPrefix = message.docTagPrefix; + if (message.organization != null && message.hasOwnProperty("organization")) + object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization; + if (message.librarySettings && message.librarySettings.length) { + object.librarySettings = []; + for (var j = 0; j < message.librarySettings.length; ++j) + object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options); + } + if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri")) + object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri; + return object; + }; + + /** + * Converts this Publishing to JSON. + * @function toJSON + * @memberof google.api.Publishing + * @instance + * @returns {Object.} JSON object + */ + Publishing.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Publishing + * @function getTypeUrl + * @memberof google.api.Publishing + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.Publishing"; + }; + + return Publishing; + })(); + + api.JavaSettings = (function() { + + /** + * Properties of a JavaSettings. + * @memberof google.api + * @interface IJavaSettings + * @property {string|null} [libraryPackage] JavaSettings libraryPackage + * @property {Object.|null} [serviceClassNames] JavaSettings serviceClassNames + * @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common + */ + + /** + * Constructs a new JavaSettings. + * @memberof google.api + * @classdesc Represents a JavaSettings. + * @implements IJavaSettings + * @constructor + * @param {google.api.IJavaSettings=} [properties] Properties to set + */ + function JavaSettings(properties) { + this.serviceClassNames = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * JavaSettings libraryPackage. + * @member {string} libraryPackage + * @memberof google.api.JavaSettings + * @instance + */ + JavaSettings.prototype.libraryPackage = ""; + + /** + * JavaSettings serviceClassNames. + * @member {Object.} serviceClassNames + * @memberof google.api.JavaSettings + * @instance + */ + JavaSettings.prototype.serviceClassNames = $util.emptyObject; + + /** + * JavaSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.JavaSettings + * @instance + */ + JavaSettings.prototype.common = null; + + /** + * Creates a new JavaSettings instance using the specified properties. + * @function create + * @memberof google.api.JavaSettings + * @static + * @param {google.api.IJavaSettings=} [properties] Properties to set + * @returns {google.api.JavaSettings} JavaSettings instance + */ + JavaSettings.create = function create(properties) { + return new JavaSettings(properties); + }; + + /** + * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages. + * @function encode + * @memberof google.api.JavaSettings + * @static + * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + JavaSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage); + if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames")) + for (var keys = Object.keys(message.serviceClassNames), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.serviceClassNames[keys[i]]).ldelim(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.JavaSettings + * @static + * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + JavaSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a JavaSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.JavaSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.JavaSettings} JavaSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + JavaSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.libraryPackage = reader.string(); + break; + } + case 2: { + if (message.serviceClassNames === $util.emptyObject) + message.serviceClassNames = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.serviceClassNames[key] = value; + break; + } + case 3: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a JavaSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.JavaSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.JavaSettings} JavaSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + JavaSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a JavaSettings message. + * @function verify + * @memberof google.api.JavaSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + JavaSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage")) + if (!$util.isString(message.libraryPackage)) + return "libraryPackage: string expected"; + if (message.serviceClassNames != null && message.hasOwnProperty("serviceClassNames")) { + if (!$util.isObject(message.serviceClassNames)) + return "serviceClassNames: object expected"; + var key = Object.keys(message.serviceClassNames); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.serviceClassNames[key[i]])) + return "serviceClassNames: string{k:string} expected"; + } + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + return null; + }; + + /** + * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.JavaSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.JavaSettings} JavaSettings + */ + JavaSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.JavaSettings) + return object; + var message = new $root.google.api.JavaSettings(); + if (object.libraryPackage != null) + message.libraryPackage = String(object.libraryPackage); + if (object.serviceClassNames) { + if (typeof object.serviceClassNames !== "object") + throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected"); + message.serviceClassNames = {}; + for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i) + message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]); + } + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.JavaSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; + + /** + * Creates a plain object from a JavaSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.JavaSettings + * @static + * @param {google.api.JavaSettings} message JavaSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + JavaSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.serviceClassNames = {}; + if (options.defaults) { + object.libraryPackage = ""; + object.common = null; + } + if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage")) + object.libraryPackage = message.libraryPackage; + var keys2; + if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) { + object.serviceClassNames = {}; + for (var j = 0; j < keys2.length; ++j) + object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]]; + } + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; + + /** + * Converts this JavaSettings to JSON. + * @function toJSON + * @memberof google.api.JavaSettings + * @instance + * @returns {Object.} JSON object + */ + JavaSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for JavaSettings + * @function getTypeUrl + * @memberof google.api.JavaSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.JavaSettings"; + }; + + return JavaSettings; + })(); + + api.CppSettings = (function() { + + /** + * Properties of a CppSettings. + * @memberof google.api + * @interface ICppSettings + * @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common + */ + + /** + * Constructs a new CppSettings. + * @memberof google.api + * @classdesc Represents a CppSettings. + * @implements ICppSettings + * @constructor + * @param {google.api.ICppSettings=} [properties] Properties to set + */ + function CppSettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CppSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.CppSettings + * @instance + */ + CppSettings.prototype.common = null; + + /** + * Creates a new CppSettings instance using the specified properties. + * @function create + * @memberof google.api.CppSettings + * @static + * @param {google.api.ICppSettings=} [properties] Properties to set + * @returns {google.api.CppSettings} CppSettings instance + */ + CppSettings.create = function create(properties) { + return new CppSettings(properties); + }; + + /** + * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages. + * @function encode + * @memberof google.api.CppSettings + * @static + * @param {google.api.ICppSettings} message CppSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CppSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.CppSettings + * @static + * @param {google.api.ICppSettings} message CppSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CppSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CppSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.CppSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CppSettings} CppSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CppSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CppSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.CppSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.CppSettings} CppSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CppSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CppSettings message. + * @function verify + * @memberof google.api.CppSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CppSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + return null; + }; + + /** + * Creates a CppSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CppSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.CppSettings} CppSettings + */ + CppSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CppSettings) + return object; + var message = new $root.google.api.CppSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.CppSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; + + /** + * Creates a plain object from a CppSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CppSettings + * @static + * @param {google.api.CppSettings} message CppSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CppSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; + + /** + * Converts this CppSettings to JSON. + * @function toJSON + * @memberof google.api.CppSettings + * @instance + * @returns {Object.} JSON object + */ + CppSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CppSettings + * @function getTypeUrl + * @memberof google.api.CppSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.CppSettings"; + }; + + return CppSettings; + })(); + + api.PhpSettings = (function() { + + /** + * Properties of a PhpSettings. + * @memberof google.api + * @interface IPhpSettings + * @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common + */ + + /** + * Constructs a new PhpSettings. + * @memberof google.api + * @classdesc Represents a PhpSettings. + * @implements IPhpSettings + * @constructor + * @param {google.api.IPhpSettings=} [properties] Properties to set + */ + function PhpSettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PhpSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.PhpSettings + * @instance + */ + PhpSettings.prototype.common = null; + + /** + * Creates a new PhpSettings instance using the specified properties. + * @function create + * @memberof google.api.PhpSettings + * @static + * @param {google.api.IPhpSettings=} [properties] Properties to set + * @returns {google.api.PhpSettings} PhpSettings instance + */ + PhpSettings.create = function create(properties) { + return new PhpSettings(properties); + }; + + /** + * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages. + * @function encode + * @memberof google.api.PhpSettings + * @static + * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PhpSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.PhpSettings + * @static + * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PhpSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PhpSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.PhpSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.PhpSettings} PhpSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PhpSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PhpSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.PhpSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.PhpSettings} PhpSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PhpSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PhpSettings message. + * @function verify + * @memberof google.api.PhpSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PhpSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + return null; + }; + + /** + * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.PhpSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.PhpSettings} PhpSettings + */ + PhpSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.PhpSettings) + return object; + var message = new $root.google.api.PhpSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.PhpSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; + + /** + * Creates a plain object from a PhpSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.PhpSettings + * @static + * @param {google.api.PhpSettings} message PhpSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PhpSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; + + /** + * Converts this PhpSettings to JSON. + * @function toJSON + * @memberof google.api.PhpSettings + * @instance + * @returns {Object.} JSON object + */ + PhpSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PhpSettings + * @function getTypeUrl + * @memberof google.api.PhpSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.PhpSettings"; + }; + + return PhpSettings; + })(); + + api.PythonSettings = (function() { + + /** + * Properties of a PythonSettings. + * @memberof google.api + * @interface IPythonSettings + * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common + */ + + /** + * Constructs a new PythonSettings. + * @memberof google.api + * @classdesc Represents a PythonSettings. + * @implements IPythonSettings + * @constructor + * @param {google.api.IPythonSettings=} [properties] Properties to set + */ + function PythonSettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PythonSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.PythonSettings + * @instance + */ + PythonSettings.prototype.common = null; + + /** + * Creates a new PythonSettings instance using the specified properties. + * @function create + * @memberof google.api.PythonSettings + * @static + * @param {google.api.IPythonSettings=} [properties] Properties to set + * @returns {google.api.PythonSettings} PythonSettings instance + */ + PythonSettings.create = function create(properties) { + return new PythonSettings(properties); + }; + + /** + * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages. + * @function encode + * @memberof google.api.PythonSettings + * @static + * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PythonSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.PythonSettings + * @static + * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PythonSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PythonSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.PythonSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.PythonSettings} PythonSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PythonSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PythonSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.PythonSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.PythonSettings} PythonSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PythonSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PythonSettings message. + * @function verify + * @memberof google.api.PythonSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PythonSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + return null; + }; + + /** + * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.PythonSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.PythonSettings} PythonSettings + */ + PythonSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.PythonSettings) + return object; + var message = new $root.google.api.PythonSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.PythonSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; + + /** + * Creates a plain object from a PythonSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.PythonSettings + * @static + * @param {google.api.PythonSettings} message PythonSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PythonSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; + + /** + * Converts this PythonSettings to JSON. + * @function toJSON + * @memberof google.api.PythonSettings + * @instance + * @returns {Object.} JSON object + */ + PythonSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PythonSettings + * @function getTypeUrl + * @memberof google.api.PythonSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.PythonSettings"; + }; + + return PythonSettings; + })(); + + api.NodeSettings = (function() { + + /** + * Properties of a NodeSettings. + * @memberof google.api + * @interface INodeSettings + * @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common + */ + + /** + * Constructs a new NodeSettings. + * @memberof google.api + * @classdesc Represents a NodeSettings. + * @implements INodeSettings + * @constructor + * @param {google.api.INodeSettings=} [properties] Properties to set + */ + function NodeSettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.NodeSettings + * @instance + */ + NodeSettings.prototype.common = null; + + /** + * Creates a new NodeSettings instance using the specified properties. + * @function create + * @memberof google.api.NodeSettings + * @static + * @param {google.api.INodeSettings=} [properties] Properties to set + * @returns {google.api.NodeSettings} NodeSettings instance + */ + NodeSettings.create = function create(properties) { + return new NodeSettings(properties); + }; + + /** + * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages. + * @function encode + * @memberof google.api.NodeSettings + * @static + * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.NodeSettings + * @static + * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodeSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.NodeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.NodeSettings} NodeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodeSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.NodeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.NodeSettings} NodeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodeSettings message. + * @function verify + * @memberof google.api.NodeSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + return null; + }; + + /** + * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.NodeSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.NodeSettings} NodeSettings + */ + NodeSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.NodeSettings) + return object; + var message = new $root.google.api.NodeSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.NodeSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; + + /** + * Creates a plain object from a NodeSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.NodeSettings + * @static + * @param {google.api.NodeSettings} message NodeSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodeSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; + + /** + * Converts this NodeSettings to JSON. + * @function toJSON + * @memberof google.api.NodeSettings + * @instance + * @returns {Object.} JSON object + */ + NodeSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NodeSettings + * @function getTypeUrl + * @memberof google.api.NodeSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.NodeSettings"; + }; + + return NodeSettings; + })(); + + api.DotnetSettings = (function() { + + /** + * Properties of a DotnetSettings. + * @memberof google.api + * @interface IDotnetSettings + * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common + * @property {Object.|null} [renamedServices] DotnetSettings renamedServices + * @property {Object.|null} [renamedResources] DotnetSettings renamedResources + * @property {Array.|null} [ignoredResources] DotnetSettings ignoredResources + * @property {Array.|null} [forcedNamespaceAliases] DotnetSettings forcedNamespaceAliases + * @property {Array.|null} [handwrittenSignatures] DotnetSettings handwrittenSignatures + */ + + /** + * Constructs a new DotnetSettings. + * @memberof google.api + * @classdesc Represents a DotnetSettings. + * @implements IDotnetSettings + * @constructor + * @param {google.api.IDotnetSettings=} [properties] Properties to set + */ + function DotnetSettings(properties) { + this.renamedServices = {}; + this.renamedResources = {}; + this.ignoredResources = []; + this.forcedNamespaceAliases = []; + this.handwrittenSignatures = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DotnetSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.common = null; + + /** + * DotnetSettings renamedServices. + * @member {Object.} renamedServices + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.renamedServices = $util.emptyObject; + + /** + * DotnetSettings renamedResources. + * @member {Object.} renamedResources + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.renamedResources = $util.emptyObject; + + /** + * DotnetSettings ignoredResources. + * @member {Array.} ignoredResources + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.ignoredResources = $util.emptyArray; + + /** + * DotnetSettings forcedNamespaceAliases. + * @member {Array.} forcedNamespaceAliases + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.forcedNamespaceAliases = $util.emptyArray; + + /** + * DotnetSettings handwrittenSignatures. + * @member {Array.} handwrittenSignatures + * @memberof google.api.DotnetSettings + * @instance + */ + DotnetSettings.prototype.handwrittenSignatures = $util.emptyArray; + + /** + * Creates a new DotnetSettings instance using the specified properties. + * @function create + * @memberof google.api.DotnetSettings + * @static + * @param {google.api.IDotnetSettings=} [properties] Properties to set + * @returns {google.api.DotnetSettings} DotnetSettings instance + */ + DotnetSettings.create = function create(properties) { + return new DotnetSettings(properties); + }; + + /** + * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages. + * @function encode + * @memberof google.api.DotnetSettings + * @static + * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DotnetSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices")) + for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedServices[keys[i]]).ldelim(); + if (message.renamedResources != null && Object.hasOwnProperty.call(message, "renamedResources")) + for (var keys = Object.keys(message.renamedResources), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedResources[keys[i]]).ldelim(); + if (message.ignoredResources != null && message.ignoredResources.length) + for (var i = 0; i < message.ignoredResources.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.ignoredResources[i]); + if (message.forcedNamespaceAliases != null && message.forcedNamespaceAliases.length) + for (var i = 0; i < message.forcedNamespaceAliases.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.forcedNamespaceAliases[i]); + if (message.handwrittenSignatures != null && message.handwrittenSignatures.length) + for (var i = 0; i < message.handwrittenSignatures.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.handwrittenSignatures[i]); + return writer; + }; + + /** + * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.DotnetSettings + * @static + * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DotnetSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.DotnetSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.DotnetSettings} DotnetSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DotnetSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + case 2: { + if (message.renamedServices === $util.emptyObject) + message.renamedServices = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.renamedServices[key] = value; + break; + } + case 3: { + if (message.renamedResources === $util.emptyObject) + message.renamedResources = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.renamedResources[key] = value; + break; + } + case 4: { + if (!(message.ignoredResources && message.ignoredResources.length)) + message.ignoredResources = []; + message.ignoredResources.push(reader.string()); + break; + } + case 5: { + if (!(message.forcedNamespaceAliases && message.forcedNamespaceAliases.length)) + message.forcedNamespaceAliases = []; + message.forcedNamespaceAliases.push(reader.string()); + break; + } + case 6: { + if (!(message.handwrittenSignatures && message.handwrittenSignatures.length)) + message.handwrittenSignatures = []; + message.handwrittenSignatures.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DotnetSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.DotnetSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.DotnetSettings} DotnetSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DotnetSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DotnetSettings message. + * @function verify + * @memberof google.api.DotnetSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DotnetSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + if (message.renamedServices != null && message.hasOwnProperty("renamedServices")) { + if (!$util.isObject(message.renamedServices)) + return "renamedServices: object expected"; + var key = Object.keys(message.renamedServices); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.renamedServices[key[i]])) + return "renamedServices: string{k:string} expected"; + } + if (message.renamedResources != null && message.hasOwnProperty("renamedResources")) { + if (!$util.isObject(message.renamedResources)) + return "renamedResources: object expected"; + var key = Object.keys(message.renamedResources); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.renamedResources[key[i]])) + return "renamedResources: string{k:string} expected"; + } + if (message.ignoredResources != null && message.hasOwnProperty("ignoredResources")) { + if (!Array.isArray(message.ignoredResources)) + return "ignoredResources: array expected"; + for (var i = 0; i < message.ignoredResources.length; ++i) + if (!$util.isString(message.ignoredResources[i])) + return "ignoredResources: string[] expected"; + } + if (message.forcedNamespaceAliases != null && message.hasOwnProperty("forcedNamespaceAliases")) { + if (!Array.isArray(message.forcedNamespaceAliases)) + return "forcedNamespaceAliases: array expected"; + for (var i = 0; i < message.forcedNamespaceAliases.length; ++i) + if (!$util.isString(message.forcedNamespaceAliases[i])) + return "forcedNamespaceAliases: string[] expected"; + } + if (message.handwrittenSignatures != null && message.hasOwnProperty("handwrittenSignatures")) { + if (!Array.isArray(message.handwrittenSignatures)) + return "handwrittenSignatures: array expected"; + for (var i = 0; i < message.handwrittenSignatures.length; ++i) + if (!$util.isString(message.handwrittenSignatures[i])) + return "handwrittenSignatures: string[] expected"; + } + return null; + }; + + /** + * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.DotnetSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.DotnetSettings} DotnetSettings + */ + DotnetSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.DotnetSettings) + return object; + var message = new $root.google.api.DotnetSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.DotnetSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + if (object.renamedServices) { + if (typeof object.renamedServices !== "object") + throw TypeError(".google.api.DotnetSettings.renamedServices: object expected"); + message.renamedServices = {}; + for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i) + message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]); + } + if (object.renamedResources) { + if (typeof object.renamedResources !== "object") + throw TypeError(".google.api.DotnetSettings.renamedResources: object expected"); + message.renamedResources = {}; + for (var keys = Object.keys(object.renamedResources), i = 0; i < keys.length; ++i) + message.renamedResources[keys[i]] = String(object.renamedResources[keys[i]]); + } + if (object.ignoredResources) { + if (!Array.isArray(object.ignoredResources)) + throw TypeError(".google.api.DotnetSettings.ignoredResources: array expected"); + message.ignoredResources = []; + for (var i = 0; i < object.ignoredResources.length; ++i) + message.ignoredResources[i] = String(object.ignoredResources[i]); + } + if (object.forcedNamespaceAliases) { + if (!Array.isArray(object.forcedNamespaceAliases)) + throw TypeError(".google.api.DotnetSettings.forcedNamespaceAliases: array expected"); + message.forcedNamespaceAliases = []; + for (var i = 0; i < object.forcedNamespaceAliases.length; ++i) + message.forcedNamespaceAliases[i] = String(object.forcedNamespaceAliases[i]); + } + if (object.handwrittenSignatures) { + if (!Array.isArray(object.handwrittenSignatures)) + throw TypeError(".google.api.DotnetSettings.handwrittenSignatures: array expected"); + message.handwrittenSignatures = []; + for (var i = 0; i < object.handwrittenSignatures.length; ++i) + message.handwrittenSignatures[i] = String(object.handwrittenSignatures[i]); + } + return message; + }; + + /** + * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.DotnetSettings + * @static + * @param {google.api.DotnetSettings} message DotnetSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DotnetSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.ignoredResources = []; + object.forcedNamespaceAliases = []; + object.handwrittenSignatures = []; + } + if (options.objects || options.defaults) { + object.renamedServices = {}; + object.renamedResources = {}; + } + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + var keys2; + if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) { + object.renamedServices = {}; + for (var j = 0; j < keys2.length; ++j) + object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]]; + } + if (message.renamedResources && (keys2 = Object.keys(message.renamedResources)).length) { + object.renamedResources = {}; + for (var j = 0; j < keys2.length; ++j) + object.renamedResources[keys2[j]] = message.renamedResources[keys2[j]]; + } + if (message.ignoredResources && message.ignoredResources.length) { + object.ignoredResources = []; + for (var j = 0; j < message.ignoredResources.length; ++j) + object.ignoredResources[j] = message.ignoredResources[j]; + } + if (message.forcedNamespaceAliases && message.forcedNamespaceAliases.length) { + object.forcedNamespaceAliases = []; + for (var j = 0; j < message.forcedNamespaceAliases.length; ++j) + object.forcedNamespaceAliases[j] = message.forcedNamespaceAliases[j]; + } + if (message.handwrittenSignatures && message.handwrittenSignatures.length) { + object.handwrittenSignatures = []; + for (var j = 0; j < message.handwrittenSignatures.length; ++j) + object.handwrittenSignatures[j] = message.handwrittenSignatures[j]; + } + return object; + }; + + /** + * Converts this DotnetSettings to JSON. + * @function toJSON + * @memberof google.api.DotnetSettings + * @instance + * @returns {Object.} JSON object + */ + DotnetSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DotnetSettings + * @function getTypeUrl + * @memberof google.api.DotnetSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.DotnetSettings"; + }; + + return DotnetSettings; + })(); + + api.RubySettings = (function() { + + /** + * Properties of a RubySettings. + * @memberof google.api + * @interface IRubySettings + * @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common + */ + + /** + * Constructs a new RubySettings. + * @memberof google.api + * @classdesc Represents a RubySettings. + * @implements IRubySettings + * @constructor + * @param {google.api.IRubySettings=} [properties] Properties to set + */ + function RubySettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RubySettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.RubySettings + * @instance + */ + RubySettings.prototype.common = null; + + /** + * Creates a new RubySettings instance using the specified properties. + * @function create + * @memberof google.api.RubySettings + * @static + * @param {google.api.IRubySettings=} [properties] Properties to set + * @returns {google.api.RubySettings} RubySettings instance + */ + RubySettings.create = function create(properties) { + return new RubySettings(properties); + }; + + /** + * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages. + * @function encode + * @memberof google.api.RubySettings + * @static + * @param {google.api.IRubySettings} message RubySettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RubySettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.RubySettings + * @static + * @param {google.api.IRubySettings} message RubySettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RubySettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RubySettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.RubySettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.RubySettings} RubySettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RubySettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RubySettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.RubySettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.RubySettings} RubySettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RubySettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RubySettings message. + * @function verify + * @memberof google.api.RubySettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RubySettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + return null; + }; + + /** + * Creates a RubySettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.RubySettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.RubySettings} RubySettings + */ + RubySettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.RubySettings) + return object; + var message = new $root.google.api.RubySettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.RubySettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; + + /** + * Creates a plain object from a RubySettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.RubySettings + * @static + * @param {google.api.RubySettings} message RubySettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RubySettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; + + /** + * Converts this RubySettings to JSON. + * @function toJSON + * @memberof google.api.RubySettings + * @instance + * @returns {Object.} JSON object + */ + RubySettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RubySettings + * @function getTypeUrl + * @memberof google.api.RubySettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.RubySettings"; + }; + + return RubySettings; + })(); + + api.GoSettings = (function() { + + /** + * Properties of a GoSettings. + * @memberof google.api + * @interface IGoSettings + * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common + */ + + /** + * Constructs a new GoSettings. + * @memberof google.api + * @classdesc Represents a GoSettings. + * @implements IGoSettings + * @constructor + * @param {google.api.IGoSettings=} [properties] Properties to set + */ + function GoSettings(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GoSettings common. + * @member {google.api.ICommonLanguageSettings|null|undefined} common + * @memberof google.api.GoSettings + * @instance + */ + GoSettings.prototype.common = null; + + /** + * Creates a new GoSettings instance using the specified properties. + * @function create + * @memberof google.api.GoSettings + * @static + * @param {google.api.IGoSettings=} [properties] Properties to set + * @returns {google.api.GoSettings} GoSettings instance + */ + GoSettings.create = function create(properties) { + return new GoSettings(properties); + }; + + /** + * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages. + * @function encode + * @memberof google.api.GoSettings + * @static + * @param {google.api.IGoSettings} message GoSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.common != null && Object.hasOwnProperty.call(message, "common")) + $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.GoSettings + * @static + * @param {google.api.IGoSettings} message GoSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GoSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GoSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.GoSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.GoSettings} GoSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GoSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.GoSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.GoSettings} GoSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GoSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GoSettings message. + * @function verify + * @memberof google.api.GoSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GoSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.common != null && message.hasOwnProperty("common")) { + var error = $root.google.api.CommonLanguageSettings.verify(message.common); + if (error) + return "common." + error; + } + return null; + }; + + /** + * Creates a GoSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.GoSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.GoSettings} GoSettings + */ + GoSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.GoSettings) + return object; + var message = new $root.google.api.GoSettings(); + if (object.common != null) { + if (typeof object.common !== "object") + throw TypeError(".google.api.GoSettings.common: object expected"); + message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common); + } + return message; + }; + + /** + * Creates a plain object from a GoSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.GoSettings + * @static + * @param {google.api.GoSettings} message GoSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GoSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.common = null; + if (message.common != null && message.hasOwnProperty("common")) + object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options); + return object; + }; + + /** + * Converts this GoSettings to JSON. + * @function toJSON + * @memberof google.api.GoSettings + * @instance + * @returns {Object.} JSON object + */ + GoSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GoSettings + * @function getTypeUrl + * @memberof google.api.GoSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GoSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.GoSettings"; + }; + + return GoSettings; + })(); + + api.MethodSettings = (function() { + + /** + * Properties of a MethodSettings. + * @memberof google.api + * @interface IMethodSettings + * @property {string|null} [selector] MethodSettings selector + * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning + * @property {Array.|null} [autoPopulatedFields] MethodSettings autoPopulatedFields + */ + + /** + * Constructs a new MethodSettings. + * @memberof google.api + * @classdesc Represents a MethodSettings. + * @implements IMethodSettings + * @constructor + * @param {google.api.IMethodSettings=} [properties] Properties to set + */ + function MethodSettings(properties) { + this.autoPopulatedFields = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MethodSettings selector. + * @member {string} selector + * @memberof google.api.MethodSettings + * @instance + */ + MethodSettings.prototype.selector = ""; + + /** + * MethodSettings longRunning. + * @member {google.api.MethodSettings.ILongRunning|null|undefined} longRunning + * @memberof google.api.MethodSettings + * @instance + */ + MethodSettings.prototype.longRunning = null; + + /** + * MethodSettings autoPopulatedFields. + * @member {Array.} autoPopulatedFields + * @memberof google.api.MethodSettings + * @instance + */ + MethodSettings.prototype.autoPopulatedFields = $util.emptyArray; + + /** + * Creates a new MethodSettings instance using the specified properties. + * @function create + * @memberof google.api.MethodSettings + * @static + * @param {google.api.IMethodSettings=} [properties] Properties to set + * @returns {google.api.MethodSettings} MethodSettings instance + */ + MethodSettings.create = function create(properties) { + return new MethodSettings(properties); + }; + + /** + * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages. + * @function encode + * @memberof google.api.MethodSettings + * @static + * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning")) + $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.autoPopulatedFields != null && message.autoPopulatedFields.length) + for (var i = 0; i < message.autoPopulatedFields.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.autoPopulatedFields[i]); + return writer; + }; + + /** + * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.MethodSettings + * @static + * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodSettings message from the specified reader or buffer. + * @function decode + * @memberof google.api.MethodSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.MethodSettings} MethodSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodSettings.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.selector = reader.string(); + break; + } + case 2: { + message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32()); + break; + } + case 3: { + if (!(message.autoPopulatedFields && message.autoPopulatedFields.length)) + message.autoPopulatedFields = []; + message.autoPopulatedFields.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MethodSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.MethodSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.MethodSettings} MethodSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodSettings message. + * @function verify + * @memberof google.api.MethodSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.longRunning != null && message.hasOwnProperty("longRunning")) { + var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning); + if (error) + return "longRunning." + error; + } + if (message.autoPopulatedFields != null && message.hasOwnProperty("autoPopulatedFields")) { + if (!Array.isArray(message.autoPopulatedFields)) + return "autoPopulatedFields: array expected"; + for (var i = 0; i < message.autoPopulatedFields.length; ++i) + if (!$util.isString(message.autoPopulatedFields[i])) + return "autoPopulatedFields: string[] expected"; + } + return null; + }; + + /** + * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.MethodSettings + * @static + * @param {Object.} object Plain object + * @returns {google.api.MethodSettings} MethodSettings + */ + MethodSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.MethodSettings) + return object; + var message = new $root.google.api.MethodSettings(); + if (object.selector != null) + message.selector = String(object.selector); + if (object.longRunning != null) { + if (typeof object.longRunning !== "object") + throw TypeError(".google.api.MethodSettings.longRunning: object expected"); + message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning); + } + if (object.autoPopulatedFields) { + if (!Array.isArray(object.autoPopulatedFields)) + throw TypeError(".google.api.MethodSettings.autoPopulatedFields: array expected"); + message.autoPopulatedFields = []; + for (var i = 0; i < object.autoPopulatedFields.length; ++i) + message.autoPopulatedFields[i] = String(object.autoPopulatedFields[i]); + } + return message; + }; + + /** + * Creates a plain object from a MethodSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.MethodSettings + * @static + * @param {google.api.MethodSettings} message MethodSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.autoPopulatedFields = []; + if (options.defaults) { + object.selector = ""; + object.longRunning = null; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.longRunning != null && message.hasOwnProperty("longRunning")) + object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options); + if (message.autoPopulatedFields && message.autoPopulatedFields.length) { + object.autoPopulatedFields = []; + for (var j = 0; j < message.autoPopulatedFields.length; ++j) + object.autoPopulatedFields[j] = message.autoPopulatedFields[j]; + } + return object; + }; + + /** + * Converts this MethodSettings to JSON. + * @function toJSON + * @memberof google.api.MethodSettings + * @instance + * @returns {Object.} JSON object + */ + MethodSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MethodSettings + * @function getTypeUrl + * @memberof google.api.MethodSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.MethodSettings"; + }; + + MethodSettings.LongRunning = (function() { + + /** + * Properties of a LongRunning. + * @memberof google.api.MethodSettings + * @interface ILongRunning + * @property {google.protobuf.IDuration|null} [initialPollDelay] LongRunning initialPollDelay + * @property {number|null} [pollDelayMultiplier] LongRunning pollDelayMultiplier + * @property {google.protobuf.IDuration|null} [maxPollDelay] LongRunning maxPollDelay + * @property {google.protobuf.IDuration|null} [totalPollTimeout] LongRunning totalPollTimeout + */ + + /** + * Constructs a new LongRunning. + * @memberof google.api.MethodSettings + * @classdesc Represents a LongRunning. + * @implements ILongRunning + * @constructor + * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set + */ + function LongRunning(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LongRunning initialPollDelay. + * @member {google.protobuf.IDuration|null|undefined} initialPollDelay + * @memberof google.api.MethodSettings.LongRunning + * @instance + */ + LongRunning.prototype.initialPollDelay = null; + + /** + * LongRunning pollDelayMultiplier. + * @member {number} pollDelayMultiplier + * @memberof google.api.MethodSettings.LongRunning + * @instance + */ + LongRunning.prototype.pollDelayMultiplier = 0; + + /** + * LongRunning maxPollDelay. + * @member {google.protobuf.IDuration|null|undefined} maxPollDelay + * @memberof google.api.MethodSettings.LongRunning + * @instance + */ + LongRunning.prototype.maxPollDelay = null; + + /** + * LongRunning totalPollTimeout. + * @member {google.protobuf.IDuration|null|undefined} totalPollTimeout + * @memberof google.api.MethodSettings.LongRunning + * @instance + */ + LongRunning.prototype.totalPollTimeout = null; + + /** + * Creates a new LongRunning instance using the specified properties. + * @function create + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set + * @returns {google.api.MethodSettings.LongRunning} LongRunning instance + */ + LongRunning.create = function create(properties) { + return new LongRunning(properties); + }; + + /** + * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages. + * @function encode + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LongRunning.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay")) + $root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.pollDelayMultiplier); + if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay")) + $root.google.protobuf.Duration.encode(message.maxPollDelay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout")) + $root.google.protobuf.Duration.encode(message.totalPollTimeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LongRunning.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LongRunning message from the specified reader or buffer. + * @function decode + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.MethodSettings.LongRunning} LongRunning + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LongRunning.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 2: { + message.pollDelayMultiplier = reader.float(); + break; + } + case 3: { + message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 4: { + message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LongRunning message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.MethodSettings.LongRunning} LongRunning + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LongRunning.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LongRunning message. + * @function verify + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LongRunning.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) { + var error = $root.google.protobuf.Duration.verify(message.initialPollDelay); + if (error) + return "initialPollDelay." + error; + } + if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier")) + if (typeof message.pollDelayMultiplier !== "number") + return "pollDelayMultiplier: number expected"; + if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) { + var error = $root.google.protobuf.Duration.verify(message.maxPollDelay); + if (error) + return "maxPollDelay." + error; + } + if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) { + var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout); + if (error) + return "totalPollTimeout." + error; + } + return null; + }; + + /** + * Creates a LongRunning message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {Object.} object Plain object + * @returns {google.api.MethodSettings.LongRunning} LongRunning + */ + LongRunning.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.MethodSettings.LongRunning) + return object; + var message = new $root.google.api.MethodSettings.LongRunning(); + if (object.initialPollDelay != null) { + if (typeof object.initialPollDelay !== "object") + throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected"); + message.initialPollDelay = $root.google.protobuf.Duration.fromObject(object.initialPollDelay); + } + if (object.pollDelayMultiplier != null) + message.pollDelayMultiplier = Number(object.pollDelayMultiplier); + if (object.maxPollDelay != null) { + if (typeof object.maxPollDelay !== "object") + throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected"); + message.maxPollDelay = $root.google.protobuf.Duration.fromObject(object.maxPollDelay); + } + if (object.totalPollTimeout != null) { + if (typeof object.totalPollTimeout !== "object") + throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected"); + message.totalPollTimeout = $root.google.protobuf.Duration.fromObject(object.totalPollTimeout); + } + return message; + }; + + /** + * Creates a plain object from a LongRunning message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {google.api.MethodSettings.LongRunning} message LongRunning + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LongRunning.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.initialPollDelay = null; + object.pollDelayMultiplier = 0; + object.maxPollDelay = null; + object.totalPollTimeout = null; + } + if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) + object.initialPollDelay = $root.google.protobuf.Duration.toObject(message.initialPollDelay, options); + if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier")) + object.pollDelayMultiplier = options.json && !isFinite(message.pollDelayMultiplier) ? String(message.pollDelayMultiplier) : message.pollDelayMultiplier; + if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) + object.maxPollDelay = $root.google.protobuf.Duration.toObject(message.maxPollDelay, options); + if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) + object.totalPollTimeout = $root.google.protobuf.Duration.toObject(message.totalPollTimeout, options); + return object; + }; + + /** + * Converts this LongRunning to JSON. + * @function toJSON + * @memberof google.api.MethodSettings.LongRunning + * @instance + * @returns {Object.} JSON object + */ + LongRunning.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LongRunning + * @function getTypeUrl + * @memberof google.api.MethodSettings.LongRunning + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LongRunning.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.MethodSettings.LongRunning"; + }; + + return LongRunning; + })(); + + return MethodSettings; + })(); + + /** + * ClientLibraryOrganization enum. + * @name google.api.ClientLibraryOrganization + * @enum {number} + * @property {number} CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED=0 CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED value + * @property {number} CLOUD=1 CLOUD value + * @property {number} ADS=2 ADS value + * @property {number} PHOTOS=3 PHOTOS value + * @property {number} STREET_VIEW=4 STREET_VIEW value + * @property {number} SHOPPING=5 SHOPPING value + * @property {number} GEO=6 GEO value + * @property {number} GENERATIVE_AI=7 GENERATIVE_AI value + */ + api.ClientLibraryOrganization = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"] = 0; + values[valuesById[1] = "CLOUD"] = 1; + values[valuesById[2] = "ADS"] = 2; + values[valuesById[3] = "PHOTOS"] = 3; + values[valuesById[4] = "STREET_VIEW"] = 4; + values[valuesById[5] = "SHOPPING"] = 5; + values[valuesById[6] = "GEO"] = 6; + values[valuesById[7] = "GENERATIVE_AI"] = 7; + return values; + })(); + + /** + * ClientLibraryDestination enum. + * @name google.api.ClientLibraryDestination + * @enum {number} + * @property {number} CLIENT_LIBRARY_DESTINATION_UNSPECIFIED=0 CLIENT_LIBRARY_DESTINATION_UNSPECIFIED value + * @property {number} GITHUB=10 GITHUB value + * @property {number} PACKAGE_MANAGER=20 PACKAGE_MANAGER value + */ + api.ClientLibraryDestination = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"] = 0; + values[valuesById[10] = "GITHUB"] = 10; + values[valuesById[20] = "PACKAGE_MANAGER"] = 20; + return values; + })(); + + /** + * LaunchStage enum. + * @name google.api.LaunchStage + * @enum {number} + * @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value + * @property {number} UNIMPLEMENTED=6 UNIMPLEMENTED value + * @property {number} PRELAUNCH=7 PRELAUNCH value + * @property {number} EARLY_ACCESS=1 EARLY_ACCESS value + * @property {number} ALPHA=2 ALPHA value + * @property {number} BETA=3 BETA value + * @property {number} GA=4 GA value + * @property {number} DEPRECATED=5 DEPRECATED value + */ + api.LaunchStage = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0; + values[valuesById[6] = "UNIMPLEMENTED"] = 6; + values[valuesById[7] = "PRELAUNCH"] = 7; + values[valuesById[1] = "EARLY_ACCESS"] = 1; + values[valuesById[2] = "ALPHA"] = 2; + values[valuesById[3] = "BETA"] = 3; + values[valuesById[4] = "GA"] = 4; + values[valuesById[5] = "DEPRECATED"] = 5; + return values; + })(); + + return api; + })(); + + google.protobuf = (function() { + + /** + * Namespace protobuf. + * @memberof google + * @namespace + */ + var protobuf = {}; + + protobuf.FileDescriptorSet = (function() { + + /** + * Properties of a FileDescriptorSet. + * @memberof google.protobuf + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file + */ + + /** + * Constructs a new FileDescriptorSet. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet + * @constructor + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + */ + function FileDescriptorSet(properties) { + this.file = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet + * @instance + */ + FileDescriptorSet.prototype.file = $util.emptyArray; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + */ + FileDescriptorSet.create = function create(properties) { + return new FileDescriptorSet(properties); + }; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.file != null && message.file.length) + for (var i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorSet message. + * @function verify + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.file != null && message.hasOwnProperty("file")) { + if (!Array.isArray(message.file)) + return "file: array expected"; + for (var i = 0; i < message.file.length; ++i) { + var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); + if (error) + return "file." + error; + } + } + return null; + }; + + /** + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + */ + FileDescriptorSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorSet) + return object; + var message = new $root.google.protobuf.FileDescriptorSet(); + if (object.file) { + if (!Array.isArray(object.file)) + throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); + message.file = []; + for (var i = 0; i < object.file.length; ++i) { + if (typeof object.file[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); + message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.file = []; + if (message.file && message.file.length) { + object.file = []; + for (var j = 0; j < message.file.length; ++j) + object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); + } + return object; + }; + + /** + * Converts this FileDescriptorSet to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorSet + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FileDescriptorSet + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorSet"; + }; + + return FileDescriptorSet; + })(); + + /** + * Edition enum. + * @name google.protobuf.Edition + * @enum {number} + * @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value + * @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value + * @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value + * @property {number} EDITION_2023=1000 EDITION_2023 value + * @property {number} EDITION_2024=1001 EDITION_2024 value + * @property {number} EDITION_1_TEST_ONLY=1 EDITION_1_TEST_ONLY value + * @property {number} EDITION_2_TEST_ONLY=2 EDITION_2_TEST_ONLY value + * @property {number} EDITION_99997_TEST_ONLY=99997 EDITION_99997_TEST_ONLY value + * @property {number} EDITION_99998_TEST_ONLY=99998 EDITION_99998_TEST_ONLY value + * @property {number} EDITION_99999_TEST_ONLY=99999 EDITION_99999_TEST_ONLY value + * @property {number} EDITION_MAX=2147483647 EDITION_MAX value + */ + protobuf.Edition = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EDITION_UNKNOWN"] = 0; + values[valuesById[998] = "EDITION_PROTO2"] = 998; + values[valuesById[999] = "EDITION_PROTO3"] = 999; + values[valuesById[1000] = "EDITION_2023"] = 1000; + values[valuesById[1001] = "EDITION_2024"] = 1001; + values[valuesById[1] = "EDITION_1_TEST_ONLY"] = 1; + values[valuesById[2] = "EDITION_2_TEST_ONLY"] = 2; + values[valuesById[99997] = "EDITION_99997_TEST_ONLY"] = 99997; + values[valuesById[99998] = "EDITION_99998_TEST_ONLY"] = 99998; + values[valuesById[99999] = "EDITION_99999_TEST_ONLY"] = 99999; + values[valuesById[2147483647] = "EDITION_MAX"] = 2147483647; + return values; + })(); + + protobuf.FileDescriptorProto = (function() { + + /** + * Properties of a FileDescriptorProto. + * @memberof google.protobuf + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency + * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency + * @property {Array.|null} [messageType] FileDescriptorProto messageType + * @property {Array.|null} [enumType] FileDescriptorProto enumType + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo + * @property {string|null} [syntax] FileDescriptorProto syntax + * @property {google.protobuf.Edition|null} [edition] FileDescriptorProto edition + */ + + /** + * Constructs a new FileDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto + * @constructor + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + */ + function FileDescriptorProto(properties) { + this.dependency = []; + this.publicDependency = []; + this.weakDependency = []; + this.messageType = []; + this.enumType = []; + this.service = []; + this.extension = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.name = ""; + + /** + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype["package"] = ""; + + /** + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.dependency = $util.emptyArray; + + /** + * FileDescriptorProto publicDependency. + * @member {Array.} publicDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.publicDependency = $util.emptyArray; + + /** + * FileDescriptorProto weakDependency. + * @member {Array.} weakDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.weakDependency = $util.emptyArray; + + /** + * FileDescriptorProto messageType. + * @member {Array.} messageType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.messageType = $util.emptyArray; + + /** + * FileDescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.service = $util.emptyArray; + + /** + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.extension = $util.emptyArray; + + /** + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.options = null; + + /** + * FileDescriptorProto sourceCodeInfo. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.sourceCodeInfo = null; + + /** + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.syntax = ""; + + /** + * FileDescriptorProto edition. + * @member {google.protobuf.Edition} edition + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.edition = 0; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + */ + FileDescriptorProto.create = function create(properties) { + return new FileDescriptorProto(properties); + }; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (var i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.messageType != null && message.messageType.length) + for (var i = 0; i < message.messageType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (var i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) + $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.publicDependency != null && message.publicDependency.length) + for (var i = 0; i < message.publicDependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); + if (message.weakDependency != null && message.weakDependency.length) + for (var i = 0; i < message.weakDependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition); + return writer; + }; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message["package"] = reader.string(); + break; + } + case 3: { + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + } + case 10: { + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else + message.publicDependency.push(reader.int32()); + break; + } + case 11: { + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else + message.weakDependency.push(reader.int32()); + break; + } + case 4: { + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 8: { + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + } + case 12: { + message.syntax = reader.string(); + break; + } + case 14: { + message.edition = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorProto message. + * @function verify + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message["package"] != null && message.hasOwnProperty("package")) + if (!$util.isString(message["package"])) + return "package: string expected"; + if (message.dependency != null && message.hasOwnProperty("dependency")) { + if (!Array.isArray(message.dependency)) + return "dependency: array expected"; + for (var i = 0; i < message.dependency.length; ++i) + if (!$util.isString(message.dependency[i])) + return "dependency: string[] expected"; + } + if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { + if (!Array.isArray(message.publicDependency)) + return "publicDependency: array expected"; + for (var i = 0; i < message.publicDependency.length; ++i) + if (!$util.isInteger(message.publicDependency[i])) + return "publicDependency: integer[] expected"; + } + if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { + if (!Array.isArray(message.weakDependency)) + return "weakDependency: array expected"; + for (var i = 0; i < message.weakDependency.length; ++i) + if (!$util.isInteger(message.weakDependency[i])) + return "weakDependency: integer[] expected"; + } + if (message.messageType != null && message.hasOwnProperty("messageType")) { + if (!Array.isArray(message.messageType)) + return "messageType: array expected"; + for (var i = 0; i < message.messageType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); + if (error) + return "messageType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.service != null && message.hasOwnProperty("service")) { + if (!Array.isArray(message.service)) + return "service: array expected"; + for (var i = 0; i < message.service.length; ++i) { + var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + if (error) + return "service." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FileOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { + var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); + if (error) + return "sourceCodeInfo." + error; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + switch (message.edition) { + default: + return "edition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + return null; + }; + + /** + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + */ + FileDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorProto) + return object; + var message = new $root.google.protobuf.FileDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object["package"] != null) + message["package"] = String(object["package"]); + if (object.dependency) { + if (!Array.isArray(object.dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); + message.dependency = []; + for (var i = 0; i < object.dependency.length; ++i) + message.dependency[i] = String(object.dependency[i]); + } + if (object.publicDependency) { + if (!Array.isArray(object.publicDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); + message.publicDependency = []; + for (var i = 0; i < object.publicDependency.length; ++i) + message.publicDependency[i] = object.publicDependency[i] | 0; + } + if (object.weakDependency) { + if (!Array.isArray(object.weakDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); + message.weakDependency = []; + for (var i = 0; i < object.weakDependency.length; ++i) + message.weakDependency[i] = object.weakDependency[i] | 0; + } + if (object.messageType) { + if (!Array.isArray(object.messageType)) + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); + message.messageType = []; + for (var i = 0; i < object.messageType.length; ++i) { + if (typeof object.messageType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); + message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.service) { + if (!Array.isArray(object.service)) + throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); + message.service = []; + for (var i = 0; i < object.service.length; ++i) { + if (typeof object.service[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); + message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FileOptions.fromObject(object.options); + } + if (object.sourceCodeInfo != null) { + if (typeof object.sourceCodeInfo !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); + } + if (object.syntax != null) + message.syntax = String(object.syntax); + switch (object.edition) { + default: + if (typeof object.edition === "number") { + message.edition = object.edition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.edition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.edition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.edition = 999; + break; + case "EDITION_2023": + case 1000: + message.edition = 1000; + break; + case "EDITION_2024": + case 1001: + message.edition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.edition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.edition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.edition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.edition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.edition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.edition = 2147483647; + break; + } + return message; + }; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.dependency = []; + object.messageType = []; + object.enumType = []; + object.service = []; + object.extension = []; + object.publicDependency = []; + object.weakDependency = []; + } + if (options.defaults) { + object.name = ""; + object["package"] = ""; + object.options = null; + object.sourceCodeInfo = null; + object.syntax = ""; + object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message["package"] != null && message.hasOwnProperty("package")) + object["package"] = message["package"]; + if (message.dependency && message.dependency.length) { + object.dependency = []; + for (var j = 0; j < message.dependency.length; ++j) + object.dependency[j] = message.dependency[j]; + } + if (message.messageType && message.messageType.length) { + object.messageType = []; + for (var j = 0; j < message.messageType.length; ++j) + object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.service && message.service.length) { + object.service = []; + for (var j = 0; j < message.service.length; ++j) + object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); + if (message.publicDependency && message.publicDependency.length) { + object.publicDependency = []; + for (var j = 0; j < message.publicDependency.length; ++j) + object.publicDependency[j] = message.publicDependency[j]; + } + if (message.weakDependency && message.weakDependency.length) { + object.weakDependency = []; + for (var j = 0; j < message.weakDependency.length; ++j) + object.weakDependency[j] = message.weakDependency[j]; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + object.syntax = message.syntax; + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; + return object; + }; + + /** + * Converts this FileDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FileDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorProto"; + }; + + return FileDescriptorProto; + })(); + + protobuf.DescriptorProto = (function() { + + /** + * Properties of a DescriptorProto. + * @memberof google.protobuf + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nestedType] DescriptorProto nestedType + * @property {Array.|null} [enumType] DescriptorProto enumType + * @property {Array.|null} [extensionRange] DescriptorProto extensionRange + * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reservedRange] DescriptorProto reservedRange + * @property {Array.|null} [reservedName] DescriptorProto reservedName + */ + + /** + * Constructs a new DescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto + * @constructor + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + */ + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nestedType = []; + this.enumType = []; + this.extensionRange = []; + this.oneofDecl = []; + this.reservedRange = []; + this.reservedName = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DescriptorProto name. + * @member {string} name + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.name = ""; + + /** + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.field = $util.emptyArray; + + /** + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extension = $util.emptyArray; + + /** + * DescriptorProto nestedType. + * @member {Array.} nestedType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.nestedType = $util.emptyArray; + + /** + * DescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * DescriptorProto extensionRange. + * @member {Array.} extensionRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extensionRange = $util.emptyArray; + + /** + * DescriptorProto oneofDecl. + * @member {Array.} oneofDecl + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.oneofDecl = $util.emptyArray; + + /** + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.options = null; + + /** + * DescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * DescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + */ + DescriptorProto.create = function create(properties) { + return new DescriptorProto(properties); + }; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.field != null && message.field.length) + for (var i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nestedType != null && message.nestedType.length) + for (var i = 0; i < message.nestedType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extensionRange != null && message.extensionRange.length) + for (var i = 0; i < message.extensionRange.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneofDecl != null && message.oneofDecl.length) + for (var i = 0; i < message.oneofDecl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + return writer; + }; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + } + case 8: { + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + } + case 10: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DescriptorProto message. + * @function verify + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.field != null && message.hasOwnProperty("field")) { + if (!Array.isArray(message.field)) + return "field: array expected"; + for (var i = 0; i < message.field.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); + if (error) + return "field." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.nestedType != null && message.hasOwnProperty("nestedType")) { + if (!Array.isArray(message.nestedType)) + return "nestedType: array expected"; + for (var i = 0; i < message.nestedType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); + if (error) + return "nestedType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { + if (!Array.isArray(message.extensionRange)) + return "extensionRange: array expected"; + for (var i = 0; i < message.extensionRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); + if (error) + return "extensionRange." + error; + } + } + if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { + if (!Array.isArray(message.oneofDecl)) + return "oneofDecl: array expected"; + for (var i = 0; i < message.oneofDecl.length; ++i) { + var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + if (error) + return "oneofDecl." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MessageOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto} DescriptorProto + */ + DescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto) + return object; + var message = new $root.google.protobuf.DescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.field) { + if (!Array.isArray(object.field)) + throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); + message.field = []; + for (var i = 0; i < object.field.length; ++i) { + if (typeof object.field[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); + message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.nestedType) { + if (!Array.isArray(object.nestedType)) + throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); + message.nestedType = []; + for (var i = 0; i < object.nestedType.length; ++i) { + if (typeof object.nestedType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); + message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.extensionRange) { + if (!Array.isArray(object.extensionRange)) + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); + message.extensionRange = []; + for (var i = 0; i < object.extensionRange.length; ++i) { + if (typeof object.extensionRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); + message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); + } + } + if (object.oneofDecl) { + if (!Array.isArray(object.oneofDecl)) + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); + message.oneofDecl = []; + for (var i = 0; i < object.oneofDecl.length; ++i) { + if (typeof object.oneofDecl[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); + message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.field = []; + object.nestedType = []; + object.enumType = []; + object.extensionRange = []; + object.extension = []; + object.oneofDecl = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.field && message.field.length) { + object.field = []; + for (var j = 0; j < message.field.length; ++j) + object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); + } + if (message.nestedType && message.nestedType.length) { + object.nestedType = []; + for (var j = 0; j < message.nestedType.length; ++j) + object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.extensionRange && message.extensionRange.length) { + object.extensionRange = []; + for (var j = 0; j < message.extensionRange.length; ++j) + object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); + if (message.oneofDecl && message.oneofDecl.length) { + object.oneofDecl = []; + for (var j = 0; j < message.oneofDecl.length; ++j) + object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); + } + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this DescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto + * @instance + * @returns {Object.} JSON object + */ + DescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto"; + }; + + DescriptorProto.ExtensionRange = (function() { + + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options + */ + + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; + + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; + + /** + * ExtensionRange options. + * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.options = null; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + */ + ExtensionRange.create = function create(properties) { + return new ExtensionRange(properties); + }; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + */ + ExtensionRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); + message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + object.options = null; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ExtensionRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + * @returns {Object.} JSON object + */ + ExtensionRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExtensionRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ExtensionRange"; + }; + + return ExtensionRange; + })(); + + DescriptorProto.ReservedRange = (function() { + + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ + + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; + + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + */ + ReservedRange.create = function create(properties) { + return new ReservedRange(properties); + }; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservedRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + */ + ReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this ReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + * @returns {Object.} JSON object + */ + ReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservedRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ReservedRange"; + }; + + return ReservedRange; + })(); + + return DescriptorProto; + })(); + + protobuf.ExtensionRangeOptions = (function() { + + /** + * Properties of an ExtensionRangeOptions. + * @memberof google.protobuf + * @interface IExtensionRangeOptions + * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption + * @property {Array.|null} [declaration] ExtensionRangeOptions declaration + * @property {google.protobuf.IFeatureSet|null} [features] ExtensionRangeOptions features + * @property {google.protobuf.ExtensionRangeOptions.VerificationState|null} [verification] ExtensionRangeOptions verification + */ + + /** + * Constructs a new ExtensionRangeOptions. + * @memberof google.protobuf + * @classdesc Represents an ExtensionRangeOptions. + * @implements IExtensionRangeOptions + * @constructor + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + */ + function ExtensionRangeOptions(properties) { + this.uninterpretedOption = []; + this.declaration = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExtensionRangeOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * ExtensionRangeOptions declaration. + * @member {Array.} declaration + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.declaration = $util.emptyArray; + + /** + * ExtensionRangeOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.features = null; + + /** + * ExtensionRangeOptions verification. + * @member {google.protobuf.ExtensionRangeOptions.VerificationState} verification + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.verification = 1; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance + */ + ExtensionRangeOptions.create = function create(properties) { + return new ExtensionRangeOptions(properties); + }; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.declaration != null && message.declaration.length) + for (var i = 0; i < message.declaration.length; ++i) + $root.google.protobuf.ExtensionRangeOptions.Declaration.encode(message.declaration[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.verification != null && Object.hasOwnProperty.call(message, "verification")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.verification); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.declaration && message.declaration.length)) + message.declaration = []; + message.declaration.push($root.google.protobuf.ExtensionRangeOptions.Declaration.decode(reader, reader.uint32())); + break; + } + case 50: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 3: { + message.verification = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRangeOptions message. + * @function verify + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRangeOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message.declaration != null && message.hasOwnProperty("declaration")) { + if (!Array.isArray(message.declaration)) + return "declaration: array expected"; + for (var i = 0; i < message.declaration.length; ++i) { + var error = $root.google.protobuf.ExtensionRangeOptions.Declaration.verify(message.declaration[i]); + if (error) + return "declaration." + error; + } + } + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.verification != null && message.hasOwnProperty("verification")) + switch (message.verification) { + default: + return "verification: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + /** + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + */ + ExtensionRangeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ExtensionRangeOptions) + return object; + var message = new $root.google.protobuf.ExtensionRangeOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object.declaration) { + if (!Array.isArray(object.declaration)) + throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: array expected"); + message.declaration = []; + for (var i = 0; i < object.declaration.length; ++i) { + if (typeof object.declaration[i] !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.declaration: object expected"); + message.declaration[i] = $root.google.protobuf.ExtensionRangeOptions.Declaration.fromObject(object.declaration[i]); + } + } + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + switch (object.verification) { + case "DECLARATION": + case 0: + message.verification = 0; + break; + default: + if (typeof object.verification === "number") { + message.verification = object.verification; + break; + } + break; + case "UNVERIFIED": + case 1: + message.verification = 1; + break; + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRangeOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.declaration = []; + object.uninterpretedOption = []; + } + if (options.defaults) { + object.verification = options.enums === String ? "UNVERIFIED" : 1; + object.features = null; + } + if (message.declaration && message.declaration.length) { + object.declaration = []; + for (var j = 0; j < message.declaration.length; ++j) + object.declaration[j] = $root.google.protobuf.ExtensionRangeOptions.Declaration.toObject(message.declaration[j], options); + } + if (message.verification != null && message.hasOwnProperty("verification")) + object.verification = options.enums === String ? $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] === undefined ? message.verification : $root.google.protobuf.ExtensionRangeOptions.VerificationState[message.verification] : message.verification; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + * @returns {Object.} JSON object + */ + ExtensionRangeOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExtensionRangeOptions + * @function getTypeUrl + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRangeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions"; + }; + + ExtensionRangeOptions.Declaration = (function() { + + /** + * Properties of a Declaration. + * @memberof google.protobuf.ExtensionRangeOptions + * @interface IDeclaration + * @property {number|null} [number] Declaration number + * @property {string|null} [fullName] Declaration fullName + * @property {string|null} [type] Declaration type + * @property {boolean|null} [reserved] Declaration reserved + * @property {boolean|null} [repeated] Declaration repeated + */ + + /** + * Constructs a new Declaration. + * @memberof google.protobuf.ExtensionRangeOptions + * @classdesc Represents a Declaration. + * @implements IDeclaration + * @constructor + * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set + */ + function Declaration(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Declaration number. + * @member {number} number + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.number = 0; + + /** + * Declaration fullName. + * @member {string} fullName + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.fullName = ""; + + /** + * Declaration type. + * @member {string} type + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.type = ""; + + /** + * Declaration reserved. + * @member {boolean} reserved + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.reserved = false; + + /** + * Declaration repeated. + * @member {boolean} repeated + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + */ + Declaration.prototype.repeated = false; + + /** + * Creates a new Declaration instance using the specified properties. + * @function create + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {google.protobuf.ExtensionRangeOptions.IDeclaration=} [properties] Properties to set + * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration instance + */ + Declaration.create = function create(properties) { + return new Declaration(properties); + }; + + /** + * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Declaration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.number); + if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullName); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.type); + if (message.reserved != null && Object.hasOwnProperty.call(message, "reserved")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.reserved); + if (message.repeated != null && Object.hasOwnProperty.call(message, "repeated")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.repeated); + return writer; + }; + + /** + * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {google.protobuf.ExtensionRangeOptions.IDeclaration} message Declaration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Declaration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Declaration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Declaration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ExtensionRangeOptions.Declaration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.number = reader.int32(); + break; + } + case 2: { + message.fullName = reader.string(); + break; + } + case 3: { + message.type = reader.string(); + break; + } + case 5: { + message.reserved = reader.bool(); + break; + } + case 6: { + message.repeated = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Declaration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Declaration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Declaration message. + * @function verify + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Declaration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.fullName != null && message.hasOwnProperty("fullName")) + if (!$util.isString(message.fullName)) + return "fullName: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.reserved != null && message.hasOwnProperty("reserved")) + if (typeof message.reserved !== "boolean") + return "reserved: boolean expected"; + if (message.repeated != null && message.hasOwnProperty("repeated")) + if (typeof message.repeated !== "boolean") + return "repeated: boolean expected"; + return null; + }; + + /** + * Creates a Declaration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ExtensionRangeOptions.Declaration} Declaration + */ + Declaration.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ExtensionRangeOptions.Declaration) + return object; + var message = new $root.google.protobuf.ExtensionRangeOptions.Declaration(); + if (object.number != null) + message.number = object.number | 0; + if (object.fullName != null) + message.fullName = String(object.fullName); + if (object.type != null) + message.type = String(object.type); + if (object.reserved != null) + message.reserved = Boolean(object.reserved); + if (object.repeated != null) + message.repeated = Boolean(object.repeated); + return message; + }; + + /** + * Creates a plain object from a Declaration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {google.protobuf.ExtensionRangeOptions.Declaration} message Declaration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Declaration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.number = 0; + object.fullName = ""; + object.type = ""; + object.reserved = false; + object.repeated = false; + } + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.fullName != null && message.hasOwnProperty("fullName")) + object.fullName = message.fullName; + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.reserved != null && message.hasOwnProperty("reserved")) + object.reserved = message.reserved; + if (message.repeated != null && message.hasOwnProperty("repeated")) + object.repeated = message.repeated; + return object; + }; + + /** + * Converts this Declaration to JSON. + * @function toJSON + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @instance + * @returns {Object.} JSON object + */ + Declaration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Declaration + * @function getTypeUrl + * @memberof google.protobuf.ExtensionRangeOptions.Declaration + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Declaration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions.Declaration"; + }; + + return Declaration; + })(); + + /** + * VerificationState enum. + * @name google.protobuf.ExtensionRangeOptions.VerificationState + * @enum {number} + * @property {number} DECLARATION=0 DECLARATION value + * @property {number} UNVERIFIED=1 UNVERIFIED value + */ + ExtensionRangeOptions.VerificationState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DECLARATION"] = 0; + values[valuesById[1] = "UNVERIFIED"] = 1; + return values; + })(); + + return ExtensionRangeOptions; + })(); + + protobuf.FieldDescriptorProto = (function() { + + /** + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [typeName] FieldDescriptorProto typeName + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue + * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex + * @property {string|null} [jsonName] FieldDescriptorProto jsonName + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional + */ + + /** + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + */ + function FieldDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.name = ""; + + /** + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.number = 0; + + /** + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.label = 1; + + /** + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.type = 1; + + /** + * FieldDescriptorProto typeName. + * @member {string} typeName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.typeName = ""; + + /** + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.extendee = ""; + + /** + * FieldDescriptorProto defaultValue. + * @member {string} defaultValue + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.defaultValue = ""; + + /** + * FieldDescriptorProto oneofIndex. + * @member {number} oneofIndex + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.oneofIndex = 0; + + /** + * FieldDescriptorProto jsonName. + * @member {string} jsonName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.jsonName = ""; + + /** + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.options = null; + + /** + * FieldDescriptorProto proto3Optional. + * @member {boolean} proto3Optional + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.proto3Optional = false; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + */ + FieldDescriptorProto.create = function create(properties) { + return new FieldDescriptorProto(properties); + }; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && Object.hasOwnProperty.call(message, "label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); + if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); + if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); + return writer; + }; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.number = reader.int32(); + break; + } + case 4: { + message.label = reader.int32(); + break; + } + case 5: { + message.type = reader.int32(); + break; + } + case 6: { + message.typeName = reader.string(); + break; + } + case 2: { + message.extendee = reader.string(); + break; + } + case 7: { + message.defaultValue = reader.string(); + break; + } + case 9: { + message.oneofIndex = reader.int32(); + break; + } + case 10: { + message.jsonName = reader.string(); + break; + } + case 8: { + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + } + case 17: { + message.proto3Optional = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldDescriptorProto message. + * @function verify + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.label != null && message.hasOwnProperty("label")) + switch (message.label) { + default: + return "label: enum value expected"; + case 1: + case 3: + case 2: + break; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + break; + } + if (message.typeName != null && message.hasOwnProperty("typeName")) + if (!$util.isString(message.typeName)) + return "typeName: string expected"; + if (message.extendee != null && message.hasOwnProperty("extendee")) + if (!$util.isString(message.extendee)) + return "extendee: string expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (!$util.isString(message.defaultValue)) + return "defaultValue: string expected"; + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (!$util.isInteger(message.oneofIndex)) + return "oneofIndex: integer expected"; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (!$util.isString(message.jsonName)) + return "jsonName: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FieldOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + if (typeof message.proto3Optional !== "boolean") + return "proto3Optional: boolean expected"; + return null; + }; + + /** + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + */ + FieldDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldDescriptorProto) + return object; + var message = new $root.google.protobuf.FieldDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + switch (object.label) { + default: + if (typeof object.label === "number") { + message.label = object.label; + break; + } + break; + case "LABEL_OPTIONAL": + case 1: + message.label = 1; + break; + case "LABEL_REPEATED": + case 3: + message.label = 3; + break; + case "LABEL_REQUIRED": + case 2: + message.label = 2; + break; + } + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "TYPE_DOUBLE": + case 1: + message.type = 1; + break; + case "TYPE_FLOAT": + case 2: + message.type = 2; + break; + case "TYPE_INT64": + case 3: + message.type = 3; + break; + case "TYPE_UINT64": + case 4: + message.type = 4; + break; + case "TYPE_INT32": + case 5: + message.type = 5; + break; + case "TYPE_FIXED64": + case 6: + message.type = 6; + break; + case "TYPE_FIXED32": + case 7: + message.type = 7; + break; + case "TYPE_BOOL": + case 8: + message.type = 8; + break; + case "TYPE_STRING": + case 9: + message.type = 9; + break; + case "TYPE_GROUP": + case 10: + message.type = 10; + break; + case "TYPE_MESSAGE": + case 11: + message.type = 11; + break; + case "TYPE_BYTES": + case 12: + message.type = 12; + break; + case "TYPE_UINT32": + case 13: + message.type = 13; + break; + case "TYPE_ENUM": + case 14: + message.type = 14; + break; + case "TYPE_SFIXED32": + case 15: + message.type = 15; + break; + case "TYPE_SFIXED64": + case 16: + message.type = 16; + break; + case "TYPE_SINT32": + case 17: + message.type = 17; + break; + case "TYPE_SINT64": + case 18: + message.type = 18; + break; + } + if (object.typeName != null) + message.typeName = String(object.typeName); + if (object.extendee != null) + message.extendee = String(object.extendee); + if (object.defaultValue != null) + message.defaultValue = String(object.defaultValue); + if (object.oneofIndex != null) + message.oneofIndex = object.oneofIndex | 0; + if (object.jsonName != null) + message.jsonName = String(object.jsonName); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); + } + if (object.proto3Optional != null) + message.proto3Optional = Boolean(object.proto3Optional); + return message; + }; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.extendee = ""; + object.number = 0; + object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; + object.type = options.enums === String ? "TYPE_DOUBLE" : 1; + object.typeName = ""; + object.defaultValue = ""; + object.options = null; + object.oneofIndex = 0; + object.jsonName = ""; + object.proto3Optional = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.extendee != null && message.hasOwnProperty("extendee")) + object.extendee = message.extendee; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.label != null && message.hasOwnProperty("label")) + object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] === undefined ? message.label : $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] === undefined ? message.type : $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; + if (message.typeName != null && message.hasOwnProperty("typeName")) + object.typeName = message.typeName; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + object.defaultValue = message.defaultValue; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + object.oneofIndex = message.oneofIndex; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + object.jsonName = message.jsonName; + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + object.proto3Optional = message.proto3Optional; + return object; + }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FieldDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FieldDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldDescriptorProto"; + }; + + /** + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type + * @enum {number} + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value + */ + FieldDescriptorProto.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; + return values; + })(); + + /** + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {number} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + */ + FieldDescriptorProto.Label = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[3] = "LABEL_REPEATED"] = 3; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + return values; + })(); + + return FieldDescriptorProto; + })(); + + protobuf.OneofDescriptorProto = (function() { + + /** + * Properties of an OneofDescriptorProto. + * @memberof google.protobuf + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + */ + + /** + * Constructs a new OneofDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto + * @constructor + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + */ + function OneofDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.name = ""; + + /** + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.options = null; + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + */ + OneofDescriptorProto.create = function create(properties) { + return new OneofDescriptorProto(properties); + }; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OneofDescriptorProto message. + * @function verify + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.OneofOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + */ + OneofDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofDescriptorProto) + return object; + var message = new $root.google.protobuf.OneofDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.OneofDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + OneofDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OneofDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofDescriptorProto"; + }; + + return OneofDescriptorProto; + })(); + + protobuf.EnumDescriptorProto = (function() { + + /** + * Properties of an EnumDescriptorProto. + * @memberof google.protobuf + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange + * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName + */ + + /** + * Constructs a new EnumDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto + * @constructor + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + */ + function EnumDescriptorProto(properties) { + this.value = []; + this.reservedRange = []; + this.reservedName = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.name = ""; + + /** + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.value = $util.emptyArray; + + /** + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.options = null; + + /** + * EnumDescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * EnumDescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance + */ + EnumDescriptorProto.create = function create(properties) { + return new EnumDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && message.value.length) + for (var i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); + return writer; + }; + + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + if (!Array.isArray(message.value)) + return "value: array expected"; + for (var i = 0; i < message.value.length; ++i) { + var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); + if (error) + return "value." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + */ + EnumDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.value) { + if (!Array.isArray(object.value)) + throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); + message.value = []; + for (var i = 0; i < object.value.length; ++i) { + if (typeof object.value[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); + message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.value = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value && message.value.length) { + object.value = []; + for (var j = 0; j < message.value.length; ++j) + object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto"; + }; + + EnumDescriptorProto.EnumReservedRange = (function() { + + /** + * Properties of an EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @interface IEnumReservedRange + * @property {number|null} [start] EnumReservedRange start + * @property {number|null} [end] EnumReservedRange end + */ + + /** + * Constructs a new EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @classdesc Represents an EnumReservedRange. + * @implements IEnumReservedRange + * @constructor + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + */ + function EnumReservedRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumReservedRange start. + * @member {number} start + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.start = 0; + + /** + * EnumReservedRange end. + * @member {number} end + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.end = 0; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance + */ + EnumReservedRange.create = function create(properties) { + return new EnumReservedRange(properties); + }; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumReservedRange message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + */ + EnumReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this EnumReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + * @returns {Object.} JSON object + */ + EnumReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumReservedRange + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto.EnumReservedRange"; + }; + + return EnumReservedRange; + })(); + + return EnumDescriptorProto; + })(); + + protobuf.EnumValueDescriptorProto = (function() { + + /** + * Properties of an EnumValueDescriptorProto. + * @memberof google.protobuf + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + */ + + /** + * Constructs a new EnumValueDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto + * @constructor + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + */ + function EnumValueDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.name = ""; + + /** + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.number = 0; + + /** + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + */ + EnumValueDescriptorProto.create = function create(properties) { + return new EnumValueDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.number = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumValueDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumValueOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + */ + EnumValueDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumValueDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.number = 0; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumValueDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumValueDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueDescriptorProto"; + }; + + return EnumValueDescriptorProto; + })(); + + protobuf.ServiceDescriptorProto = (function() { + + /** + * Properties of a ServiceDescriptorProto. + * @memberof google.protobuf + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + */ + + /** + * Constructs a new ServiceDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto + * @constructor + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + */ + function ServiceDescriptorProto(properties) { + this.method = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.name = ""; + + /** + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.method = $util.emptyArray; + + /** + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.options = null; + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + */ + ServiceDescriptorProto.create = function create(properties) { + return new ServiceDescriptorProto(properties); + }; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.method != null && message.method.length) + for (var i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServiceDescriptorProto message. + * @function verify + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.method != null && message.hasOwnProperty("method")) { + if (!Array.isArray(message.method)) + return "method: array expected"; + for (var i = 0; i < message.method.length; ++i) { + var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (error) + return "method." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + */ + ServiceDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceDescriptorProto) + return object; + var message = new $root.google.protobuf.ServiceDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.method) { + if (!Array.isArray(object.method)) + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); + message.method = []; + for (var i = 0; i < object.method.length; ++i) { + if (typeof object.method[i] !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); + message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.method = []; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.method && message.method.length) { + object.method = []; + for (var j = 0; j < message.method.length; ++j) + object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + ServiceDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ServiceDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceDescriptorProto"; + }; + + return ServiceDescriptorProto; + })(); + + protobuf.MethodDescriptorProto = (function() { + + /** + * Properties of a MethodDescriptorProto. + * @memberof google.protobuf + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [inputType] MethodDescriptorProto inputType + * @property {string|null} [outputType] MethodDescriptorProto outputType + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming + * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming + */ + + /** + * Constructs a new MethodDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto + * @constructor + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + */ + function MethodDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.name = ""; + + /** + * MethodDescriptorProto inputType. + * @member {string} inputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.inputType = ""; + + /** + * MethodDescriptorProto outputType. + * @member {string} outputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.outputType = ""; + + /** + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.options = null; + + /** + * MethodDescriptorProto clientStreaming. + * @member {boolean} clientStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.clientStreaming = false; + + /** + * MethodDescriptorProto serverStreaming. + * @member {boolean} serverStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.serverStreaming = false; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance + */ + MethodDescriptorProto.create = function create(properties) { + return new MethodDescriptorProto(properties); + }; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); + if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); + if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); + return writer; + }; + + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.inputType = reader.string(); + break; + } + case 3: { + message.outputType = reader.string(); + break; + } + case 4: { + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + } + case 5: { + message.clientStreaming = reader.bool(); + break; + } + case 6: { + message.serverStreaming = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodDescriptorProto message. + * @function verify + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.inputType != null && message.hasOwnProperty("inputType")) + if (!$util.isString(message.inputType)) + return "inputType: string expected"; + if (message.outputType != null && message.hasOwnProperty("outputType")) + if (!$util.isString(message.outputType)) + return "outputType: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MethodOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (typeof message.clientStreaming !== "boolean") + return "clientStreaming: boolean expected"; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (typeof message.serverStreaming !== "boolean") + return "serverStreaming: boolean expected"; + return null; + }; + + /** + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + */ + MethodDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodDescriptorProto) + return object; + var message = new $root.google.protobuf.MethodDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.inputType != null) + message.inputType = String(object.inputType); + if (object.outputType != null) + message.outputType = String(object.outputType); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); + } + if (object.clientStreaming != null) + message.clientStreaming = Boolean(object.clientStreaming); + if (object.serverStreaming != null) + message.serverStreaming = Boolean(object.serverStreaming); + return message; + }; + + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.inputType = ""; + object.outputType = ""; + object.options = null; + object.clientStreaming = false; + object.serverStreaming = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.inputType != null && message.hasOwnProperty("inputType")) + object.inputType = message.inputType; + if (message.outputType != null && message.hasOwnProperty("outputType")) + object.outputType = message.outputType; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + object.clientStreaming = message.clientStreaming; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + object.serverStreaming = message.serverStreaming; + return object; + }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.MethodDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + MethodDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MethodDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodDescriptorProto"; + }; + + return MethodDescriptorProto; + })(); + + protobuf.FileOptions = (function() { + + /** + * Properties of a FileOptions. + * @memberof google.protobuf + * @interface IFileOptions + * @property {string|null} [javaPackage] FileOptions javaPackage + * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname + * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles + * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash + * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor + * @property {string|null} [goPackage] FileOptions goPackage + * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices + * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices + * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas + * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix + * @property {string|null} [csharpNamespace] FileOptions csharpNamespace + * @property {string|null} [swiftPrefix] FileOptions swiftPrefix + * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix + * @property {string|null} [phpNamespace] FileOptions phpNamespace + * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace + * @property {string|null} [rubyPackage] FileOptions rubyPackage + * @property {google.protobuf.IFeatureSet|null} [features] FileOptions features + * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption + * @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition + */ + + /** + * Constructs a new FileOptions. + * @memberof google.protobuf + * @classdesc Represents a FileOptions. + * @implements IFileOptions + * @constructor + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + */ + function FileOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.resourceDefinition"] = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileOptions javaPackage. + * @member {string} javaPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaPackage = ""; + + /** + * FileOptions javaOuterClassname. + * @member {string} javaOuterClassname + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaOuterClassname = ""; + + /** + * FileOptions javaMultipleFiles. + * @member {boolean} javaMultipleFiles + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaMultipleFiles = false; + + /** + * FileOptions javaGenerateEqualsAndHash. + * @member {boolean} javaGenerateEqualsAndHash + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenerateEqualsAndHash = false; + + /** + * FileOptions javaStringCheckUtf8. + * @member {boolean} javaStringCheckUtf8 + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaStringCheckUtf8 = false; + + /** + * FileOptions optimizeFor. + * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.optimizeFor = 1; + + /** + * FileOptions goPackage. + * @member {string} goPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.goPackage = ""; + + /** + * FileOptions ccGenericServices. + * @member {boolean} ccGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccGenericServices = false; + + /** + * FileOptions javaGenericServices. + * @member {boolean} javaGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenericServices = false; + + /** + * FileOptions pyGenericServices. + * @member {boolean} pyGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.pyGenericServices = false; + + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.deprecated = false; + + /** + * FileOptions ccEnableArenas. + * @member {boolean} ccEnableArenas + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccEnableArenas = true; + + /** + * FileOptions objcClassPrefix. + * @member {string} objcClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.objcClassPrefix = ""; + + /** + * FileOptions csharpNamespace. + * @member {string} csharpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.csharpNamespace = ""; + + /** + * FileOptions swiftPrefix. + * @member {string} swiftPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.swiftPrefix = ""; + + /** + * FileOptions phpClassPrefix. + * @member {string} phpClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpClassPrefix = ""; + + /** + * FileOptions phpNamespace. + * @member {string} phpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpNamespace = ""; + + /** + * FileOptions phpMetadataNamespace. + * @member {string} phpMetadataNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpMetadataNamespace = ""; + + /** + * FileOptions rubyPackage. + * @member {string} rubyPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.rubyPackage = ""; + + /** + * FileOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.features = null; + + /** + * FileOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * FileOptions .google.api.resourceDefinition. + * @member {Array.} .google.api.resourceDefinition + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".google.api.resourceDefinition"] = $util.emptyArray; + + /** + * Creates a new FileOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @returns {google.protobuf.FileOptions} FileOptions instance + */ + FileOptions.create = function create(properties) { + return new FileOptions(properties); + }; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); + if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); + if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); + if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); + if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); + if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); + if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); + if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); + if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); + if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); + if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); + if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); + if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) + writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); + if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) + writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); + if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) + writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); + if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) + writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); + if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) + writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resourceDefinition"] != null && message[".google.api.resourceDefinition"].length) + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resourceDefinition"][i], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.javaPackage = reader.string(); + break; + } + case 8: { + message.javaOuterClassname = reader.string(); + break; + } + case 10: { + message.javaMultipleFiles = reader.bool(); + break; + } + case 20: { + message.javaGenerateEqualsAndHash = reader.bool(); + break; + } + case 27: { + message.javaStringCheckUtf8 = reader.bool(); + break; + } + case 9: { + message.optimizeFor = reader.int32(); + break; + } + case 11: { + message.goPackage = reader.string(); + break; + } + case 16: { + message.ccGenericServices = reader.bool(); + break; + } + case 17: { + message.javaGenericServices = reader.bool(); + break; + } + case 18: { + message.pyGenericServices = reader.bool(); + break; + } + case 23: { + message.deprecated = reader.bool(); + break; + } + case 31: { + message.ccEnableArenas = reader.bool(); + break; + } + case 36: { + message.objcClassPrefix = reader.string(); + break; + } + case 37: { + message.csharpNamespace = reader.string(); + break; + } + case 39: { + message.swiftPrefix = reader.string(); + break; + } + case 40: { + message.phpClassPrefix = reader.string(); + break; + } + case 41: { + message.phpNamespace = reader.string(); + break; + } + case 44: { + message.phpMetadataNamespace = reader.string(); + break; + } + case 45: { + message.rubyPackage = reader.string(); + break; + } + case 50: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) + message[".google.api.resourceDefinition"] = []; + message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileOptions message. + * @function verify + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (!$util.isString(message.javaPackage)) + return "javaPackage: string expected"; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (!$util.isString(message.javaOuterClassname)) + return "javaOuterClassname: string expected"; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (typeof message.javaMultipleFiles !== "boolean") + return "javaMultipleFiles: boolean expected"; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (typeof message.javaGenerateEqualsAndHash !== "boolean") + return "javaGenerateEqualsAndHash: boolean expected"; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (typeof message.javaStringCheckUtf8 !== "boolean") + return "javaStringCheckUtf8: boolean expected"; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + switch (message.optimizeFor) { + default: + return "optimizeFor: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (!$util.isString(message.goPackage)) + return "goPackage: string expected"; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (typeof message.ccGenericServices !== "boolean") + return "ccGenericServices: boolean expected"; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (typeof message.javaGenericServices !== "boolean") + return "javaGenericServices: boolean expected"; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (typeof message.pyGenericServices !== "boolean") + return "pyGenericServices: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (typeof message.ccEnableArenas !== "boolean") + return "ccEnableArenas: boolean expected"; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (!$util.isString(message.objcClassPrefix)) + return "objcClassPrefix: string expected"; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (!$util.isString(message.csharpNamespace)) + return "csharpNamespace: string expected"; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + if (!$util.isString(message.swiftPrefix)) + return "swiftPrefix: string expected"; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + if (!$util.isString(message.phpClassPrefix)) + return "phpClassPrefix: string expected"; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + if (!$util.isString(message.phpNamespace)) + return "phpNamespace: string expected"; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + if (!$util.isString(message.phpMetadataNamespace)) + return "phpMetadataNamespace: string expected"; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + if (!$util.isString(message.rubyPackage)) + return "rubyPackage: string expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resourceDefinition"] != null && message.hasOwnProperty(".google.api.resourceDefinition")) { + if (!Array.isArray(message[".google.api.resourceDefinition"])) + return ".google.api.resourceDefinition: array expected"; + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resourceDefinition"][i]); + if (error) + return ".google.api.resourceDefinition." + error; + } + } + return null; + }; + + /** + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileOptions} FileOptions + */ + FileOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileOptions) + return object; + var message = new $root.google.protobuf.FileOptions(); + if (object.javaPackage != null) + message.javaPackage = String(object.javaPackage); + if (object.javaOuterClassname != null) + message.javaOuterClassname = String(object.javaOuterClassname); + if (object.javaMultipleFiles != null) + message.javaMultipleFiles = Boolean(object.javaMultipleFiles); + if (object.javaGenerateEqualsAndHash != null) + message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); + if (object.javaStringCheckUtf8 != null) + message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); + switch (object.optimizeFor) { + default: + if (typeof object.optimizeFor === "number") { + message.optimizeFor = object.optimizeFor; + break; + } + break; + case "SPEED": + case 1: + message.optimizeFor = 1; + break; + case "CODE_SIZE": + case 2: + message.optimizeFor = 2; + break; + case "LITE_RUNTIME": + case 3: + message.optimizeFor = 3; + break; + } + if (object.goPackage != null) + message.goPackage = String(object.goPackage); + if (object.ccGenericServices != null) + message.ccGenericServices = Boolean(object.ccGenericServices); + if (object.javaGenericServices != null) + message.javaGenericServices = Boolean(object.javaGenericServices); + if (object.pyGenericServices != null) + message.pyGenericServices = Boolean(object.pyGenericServices); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.ccEnableArenas != null) + message.ccEnableArenas = Boolean(object.ccEnableArenas); + if (object.objcClassPrefix != null) + message.objcClassPrefix = String(object.objcClassPrefix); + if (object.csharpNamespace != null) + message.csharpNamespace = String(object.csharpNamespace); + if (object.swiftPrefix != null) + message.swiftPrefix = String(object.swiftPrefix); + if (object.phpClassPrefix != null) + message.phpClassPrefix = String(object.phpClassPrefix); + if (object.phpNamespace != null) + message.phpNamespace = String(object.phpNamespace); + if (object.phpMetadataNamespace != null) + message.phpMetadataNamespace = String(object.phpMetadataNamespace); + if (object.rubyPackage != null) + message.rubyPackage = String(object.rubyPackage); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.FileOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resourceDefinition"]) { + if (!Array.isArray(object[".google.api.resourceDefinition"])) + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected"); + message[".google.api.resourceDefinition"] = []; + for (var i = 0; i < object[".google.api.resourceDefinition"].length; ++i) { + if (typeof object[".google.api.resourceDefinition"][i] !== "object") + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected"); + message[".google.api.resourceDefinition"][i] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resourceDefinition"][i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.FileOptions} message FileOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.resourceDefinition"] = []; + } + if (options.defaults) { + object.javaPackage = ""; + object.javaOuterClassname = ""; + object.optimizeFor = options.enums === String ? "SPEED" : 1; + object.javaMultipleFiles = false; + object.goPackage = ""; + object.ccGenericServices = false; + object.javaGenericServices = false; + object.pyGenericServices = false; + object.javaGenerateEqualsAndHash = false; + object.deprecated = false; + object.javaStringCheckUtf8 = false; + object.ccEnableArenas = true; + object.objcClassPrefix = ""; + object.csharpNamespace = ""; + object.swiftPrefix = ""; + object.phpClassPrefix = ""; + object.phpNamespace = ""; + object.phpMetadataNamespace = ""; + object.rubyPackage = ""; + object.features = null; + } + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + object.javaPackage = message.javaPackage; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + object.javaOuterClassname = message.javaOuterClassname; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] === undefined ? message.optimizeFor : $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + object.javaMultipleFiles = message.javaMultipleFiles; + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + object.goPackage = message.goPackage; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + object.ccGenericServices = message.ccGenericServices; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + object.javaGenericServices = message.javaGenericServices; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + object.pyGenericServices = message.pyGenericServices; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + object.javaStringCheckUtf8 = message.javaStringCheckUtf8; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + object.ccEnableArenas = message.ccEnableArenas; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + object.objcClassPrefix = message.objcClassPrefix; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + object.csharpNamespace = message.csharpNamespace; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + object.swiftPrefix = message.swiftPrefix; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + object.phpClassPrefix = message.phpClassPrefix; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + object.phpNamespace = message.phpNamespace; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + object.phpMetadataNamespace = message.phpMetadataNamespace; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + object.rubyPackage = message.rubyPackage; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length) { + object[".google.api.resourceDefinition"] = []; + for (var j = 0; j < message[".google.api.resourceDefinition"].length; ++j) + object[".google.api.resourceDefinition"][j] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resourceDefinition"][j], options); + } + return object; + }; + + /** + * Converts this FileOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FileOptions + * @instance + * @returns {Object.} JSON object + */ + FileOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FileOptions + * @function getTypeUrl + * @memberof google.protobuf.FileOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileOptions"; + }; + + /** + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode + * @enum {number} + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + */ + FileOptions.OptimizeMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; + return values; + })(); + + return FileOptions; + })(); + + protobuf.MessageOptions = (function() { + + /** + * Properties of a MessageOptions. + * @memberof google.protobuf + * @interface IMessageOptions + * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat + * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [mapEntry] MessageOptions mapEntry + * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts + * @property {google.protobuf.IFeatureSet|null} [features] MessageOptions features + * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption + * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource + */ + + /** + * Constructs a new MessageOptions. + * @memberof google.protobuf + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions + * @constructor + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + */ + function MessageOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MessageOptions messageSetWireFormat. + * @member {boolean} messageSetWireFormat + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.messageSetWireFormat = false; + + /** + * MessageOptions noStandardDescriptorAccessor. + * @member {boolean} noStandardDescriptorAccessor + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.noStandardDescriptorAccessor = false; + + /** + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecated = false; + + /** + * MessageOptions mapEntry. + * @member {boolean} mapEntry + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.mapEntry = false; + + /** + * MessageOptions deprecatedLegacyJsonFieldConflicts. + * @member {boolean} deprecatedLegacyJsonFieldConflicts + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false; + + /** + * MessageOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.features = null; + + /** + * MessageOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MessageOptions .google.api.resource. + * @member {google.api.IResourceDescriptor|null|undefined} .google.api.resource + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".google.api.resource"] = null; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @returns {google.protobuf.MessageOptions} MessageOptions instance + */ + MessageOptions.create = function create(properties) { + return new MessageOptions(properties); + }; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); + if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); + if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resource"] != null && Object.hasOwnProperty.call(message, ".google.api.resource")) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resource"], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.messageSetWireFormat = reader.bool(); + break; + } + case 2: { + message.noStandardDescriptorAccessor = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 7: { + message.mapEntry = reader.bool(); + break; + } + case 11: { + message.deprecatedLegacyJsonFieldConflicts = reader.bool(); + break; + } + case 12: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MessageOptions message. + * @function verify + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MessageOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (typeof message.messageSetWireFormat !== "boolean") + return "messageSetWireFormat: boolean expected"; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (typeof message.noStandardDescriptorAccessor !== "boolean") + return "noStandardDescriptorAccessor: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (typeof message.mapEntry !== "boolean") + return "mapEntry: boolean expected"; + if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) + if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean") + return "deprecatedLegacyJsonFieldConflicts: boolean expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resource"]); + if (error) + return ".google.api.resource." + error; + } + return null; + }; + + /** + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MessageOptions} MessageOptions + */ + MessageOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MessageOptions) + return object; + var message = new $root.google.protobuf.MessageOptions(); + if (object.messageSetWireFormat != null) + message.messageSetWireFormat = Boolean(object.messageSetWireFormat); + if (object.noStandardDescriptorAccessor != null) + message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.mapEntry != null) + message.mapEntry = Boolean(object.mapEntry); + if (object.deprecatedLegacyJsonFieldConflicts != null) + message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.MessageOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resource"] != null) { + if (typeof object[".google.api.resource"] !== "object") + throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected"); + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resource"]); + } + return message; + }; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.MessageOptions} message MessageOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MessageOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.messageSetWireFormat = false; + object.noStandardDescriptorAccessor = false; + object.deprecated = false; + object.mapEntry = false; + object.deprecatedLegacyJsonFieldConflicts = false; + object.features = null; + object[".google.api.resource"] = null; + } + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + object.messageSetWireFormat = message.messageSetWireFormat; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + object.mapEntry = message.mapEntry; + if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) + object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) + object[".google.api.resource"] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resource"], options); + return object; + }; + + /** + * Converts this MessageOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MessageOptions + * @instance + * @returns {Object.} JSON object + */ + MessageOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MessageOptions + * @function getTypeUrl + * @memberof google.protobuf.MessageOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MessageOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MessageOptions"; + }; + + return MessageOptions; + })(); + + protobuf.FieldOptions = (function() { + + /** + * Properties of a FieldOptions. + * @memberof google.protobuf + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {boolean|null} [debugRedact] FieldOptions debugRedact + * @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention + * @property {Array.|null} [targets] FieldOptions targets + * @property {Array.|null} [editionDefaults] FieldOptions editionDefaults + * @property {google.protobuf.IFeatureSet|null} [features] FieldOptions features + * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption + * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior + * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference + */ + + /** + * Constructs a new FieldOptions. + * @memberof google.protobuf + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions + * @constructor + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + */ + function FieldOptions(properties) { + this.targets = []; + this.editionDefaults = []; + this.uninterpretedOption = []; + this[".google.api.fieldBehavior"] = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.ctype = 0; + + /** + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; + + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; + + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; + + /** + * FieldOptions unverifiedLazy. + * @member {boolean} unverifiedLazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.unverifiedLazy = false; + + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; + + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; + + /** + * FieldOptions debugRedact. + * @member {boolean} debugRedact + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.debugRedact = false; + + /** + * FieldOptions retention. + * @member {google.protobuf.FieldOptions.OptionRetention} retention + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.retention = 0; + + /** + * FieldOptions targets. + * @member {Array.} targets + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.targets = $util.emptyArray; + + /** + * FieldOptions editionDefaults. + * @member {Array.} editionDefaults + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.editionDefaults = $util.emptyArray; + + /** + * FieldOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.features = null; + + /** + * FieldOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * FieldOptions .google.api.fieldBehavior. + * @member {Array.} .google.api.fieldBehavior + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; + + /** + * FieldOptions .google.api.resourceReference. + * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.resourceReference"] = null; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions} FieldOptions instance + */ + FieldOptions.create = function create(properties) { + return new FieldOptions(properties); + }; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); + if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact); + if (message.retention != null && Object.hasOwnProperty.call(message, "retention")) + writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention); + if (message.targets != null && message.targets.length) + for (var i = 0; i < message.targets.length; ++i) + writer.uint32(/* id 19, wireType 0 =*/152).int32(message.targets[i]); + if (message.editionDefaults != null && message.editionDefaults.length) + for (var i = 0; i < message.editionDefaults.length; ++i) + $root.google.protobuf.FieldOptions.EditionDefault.encode(message.editionDefaults[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) { + writer.uint32(/* id 1052, wireType 2 =*/8418).fork(); + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + writer.int32(message[".google.api.fieldBehavior"][i]); + writer.ldelim(); + } + if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) + $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.ctype = reader.int32(); + break; + } + case 2: { + message.packed = reader.bool(); + break; + } + case 6: { + message.jstype = reader.int32(); + break; + } + case 5: { + message.lazy = reader.bool(); + break; + } + case 15: { + message.unverifiedLazy = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 10: { + message.weak = reader.bool(); + break; + } + case 16: { + message.debugRedact = reader.bool(); + break; + } + case 17: { + message.retention = reader.int32(); + break; + } + case 19: { + if (!(message.targets && message.targets.length)) + message.targets = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.targets.push(reader.int32()); + } else + message.targets.push(reader.int32()); + break; + } + case 20: { + if (!(message.editionDefaults && message.editionDefaults.length)) + message.editionDefaults = []; + message.editionDefaults.push($root.google.protobuf.FieldOptions.EditionDefault.decode(reader, reader.uint32())); + break; + } + case 21: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1052: { + if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) + message[".google.api.fieldBehavior"] = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message[".google.api.fieldBehavior"].push(reader.int32()); + } else + message[".google.api.fieldBehavior"].push(reader.int32()); + break; + } + case 1055: { + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldOptions message. + * @function verify + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ctype != null && message.hasOwnProperty("ctype")) + switch (message.ctype) { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.packed != null && message.hasOwnProperty("packed")) + if (typeof message.packed !== "boolean") + return "packed: boolean expected"; + if (message.jstype != null && message.hasOwnProperty("jstype")) + switch (message.jstype) { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.lazy != null && message.hasOwnProperty("lazy")) + if (typeof message.lazy !== "boolean") + return "lazy: boolean expected"; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + if (typeof message.unverifiedLazy !== "boolean") + return "unverifiedLazy: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.weak != null && message.hasOwnProperty("weak")) + if (typeof message.weak !== "boolean") + return "weak: boolean expected"; + if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) + if (typeof message.debugRedact !== "boolean") + return "debugRedact: boolean expected"; + if (message.retention != null && message.hasOwnProperty("retention")) + switch (message.retention) { + default: + return "retention: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.targets != null && message.hasOwnProperty("targets")) { + if (!Array.isArray(message.targets)) + return "targets: array expected"; + for (var i = 0; i < message.targets.length; ++i) + switch (message.targets[i]) { + default: + return "targets: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + } + if (message.editionDefaults != null && message.hasOwnProperty("editionDefaults")) { + if (!Array.isArray(message.editionDefaults)) + return "editionDefaults: array expected"; + for (var i = 0; i < message.editionDefaults.length; ++i) { + var error = $root.google.protobuf.FieldOptions.EditionDefault.verify(message.editionDefaults[i]); + if (error) + return "editionDefaults." + error; + } + } + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) { + if (!Array.isArray(message[".google.api.fieldBehavior"])) + return ".google.api.fieldBehavior: array expected"; + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + switch (message[".google.api.fieldBehavior"][i]) { + default: + return ".google.api.fieldBehavior: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) { + var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]); + if (error) + return ".google.api.resourceReference." + error; + } + return null; + }; + + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldOptions} FieldOptions + */ + FieldOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions) + return object; + var message = new $root.google.protobuf.FieldOptions(); + switch (object.ctype) { + default: + if (typeof object.ctype === "number") { + message.ctype = object.ctype; + break; + } + break; + case "STRING": + case 0: + message.ctype = 0; + break; + case "CORD": + case 1: + message.ctype = 1; + break; + case "STRING_PIECE": + case 2: + message.ctype = 2; + break; + } + if (object.packed != null) + message.packed = Boolean(object.packed); + switch (object.jstype) { + default: + if (typeof object.jstype === "number") { + message.jstype = object.jstype; + break; + } + break; + case "JS_NORMAL": + case 0: + message.jstype = 0; + break; + case "JS_STRING": + case 1: + message.jstype = 1; + break; + case "JS_NUMBER": + case 2: + message.jstype = 2; + break; + } + if (object.lazy != null) + message.lazy = Boolean(object.lazy); + if (object.unverifiedLazy != null) + message.unverifiedLazy = Boolean(object.unverifiedLazy); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.weak != null) + message.weak = Boolean(object.weak); + if (object.debugRedact != null) + message.debugRedact = Boolean(object.debugRedact); + switch (object.retention) { + default: + if (typeof object.retention === "number") { + message.retention = object.retention; + break; + } + break; + case "RETENTION_UNKNOWN": + case 0: + message.retention = 0; + break; + case "RETENTION_RUNTIME": + case 1: + message.retention = 1; + break; + case "RETENTION_SOURCE": + case 2: + message.retention = 2; + break; + } + if (object.targets) { + if (!Array.isArray(object.targets)) + throw TypeError(".google.protobuf.FieldOptions.targets: array expected"); + message.targets = []; + for (var i = 0; i < object.targets.length; ++i) + switch (object.targets[i]) { + default: + if (typeof object.targets[i] === "number") { + message.targets[i] = object.targets[i]; + break; + } + case "TARGET_TYPE_UNKNOWN": + case 0: + message.targets[i] = 0; + break; + case "TARGET_TYPE_FILE": + case 1: + message.targets[i] = 1; + break; + case "TARGET_TYPE_EXTENSION_RANGE": + case 2: + message.targets[i] = 2; + break; + case "TARGET_TYPE_MESSAGE": + case 3: + message.targets[i] = 3; + break; + case "TARGET_TYPE_FIELD": + case 4: + message.targets[i] = 4; + break; + case "TARGET_TYPE_ONEOF": + case 5: + message.targets[i] = 5; + break; + case "TARGET_TYPE_ENUM": + case 6: + message.targets[i] = 6; + break; + case "TARGET_TYPE_ENUM_ENTRY": + case 7: + message.targets[i] = 7; + break; + case "TARGET_TYPE_SERVICE": + case 8: + message.targets[i] = 8; + break; + case "TARGET_TYPE_METHOD": + case 9: + message.targets[i] = 9; + break; + } + } + if (object.editionDefaults) { + if (!Array.isArray(object.editionDefaults)) + throw TypeError(".google.protobuf.FieldOptions.editionDefaults: array expected"); + message.editionDefaults = []; + for (var i = 0; i < object.editionDefaults.length; ++i) { + if (typeof object.editionDefaults[i] !== "object") + throw TypeError(".google.protobuf.FieldOptions.editionDefaults: object expected"); + message.editionDefaults[i] = $root.google.protobuf.FieldOptions.EditionDefault.fromObject(object.editionDefaults[i]); + } + } + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.FieldOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.fieldBehavior"]) { + if (!Array.isArray(object[".google.api.fieldBehavior"])) + throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected"); + message[".google.api.fieldBehavior"] = []; + for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) + switch (object[".google.api.fieldBehavior"][i]) { + default: + if (typeof object[".google.api.fieldBehavior"][i] === "number") { + message[".google.api.fieldBehavior"][i] = object[".google.api.fieldBehavior"][i]; + break; + } + case "FIELD_BEHAVIOR_UNSPECIFIED": + case 0: + message[".google.api.fieldBehavior"][i] = 0; + break; + case "OPTIONAL": + case 1: + message[".google.api.fieldBehavior"][i] = 1; + break; + case "REQUIRED": + case 2: + message[".google.api.fieldBehavior"][i] = 2; + break; + case "OUTPUT_ONLY": + case 3: + message[".google.api.fieldBehavior"][i] = 3; + break; + case "INPUT_ONLY": + case 4: + message[".google.api.fieldBehavior"][i] = 4; + break; + case "IMMUTABLE": + case 5: + message[".google.api.fieldBehavior"][i] = 5; + break; + case "UNORDERED_LIST": + case 6: + message[".google.api.fieldBehavior"][i] = 6; + break; + case "NON_EMPTY_DEFAULT": + case 7: + message[".google.api.fieldBehavior"][i] = 7; + break; + case "IDENTIFIER": + case 8: + message[".google.api.fieldBehavior"][i] = 8; + break; + } + } + if (object[".google.api.resourceReference"] != null) { + if (typeof object[".google.api.resourceReference"] !== "object") + throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]); + } + return message; + }; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.FieldOptions} message FieldOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.targets = []; + object.editionDefaults = []; + object.uninterpretedOption = []; + object[".google.api.fieldBehavior"] = []; + } + if (options.defaults) { + object.ctype = options.enums === String ? "STRING" : 0; + object.packed = false; + object.deprecated = false; + object.lazy = false; + object.jstype = options.enums === String ? "JS_NORMAL" : 0; + object.weak = false; + object.unverifiedLazy = false; + object.debugRedact = false; + object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0; + object.features = null; + object[".google.api.resourceReference"] = null; + } + if (message.ctype != null && message.hasOwnProperty("ctype")) + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + if (message.packed != null && message.hasOwnProperty("packed")) + object.packed = message.packed; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.lazy != null && message.hasOwnProperty("lazy")) + object.lazy = message.lazy; + if (message.jstype != null && message.hasOwnProperty("jstype")) + object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] === undefined ? message.jstype : $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; + if (message.weak != null && message.hasOwnProperty("weak")) + object.weak = message.weak; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + object.unverifiedLazy = message.unverifiedLazy; + if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) + object.debugRedact = message.debugRedact; + if (message.retention != null && message.hasOwnProperty("retention")) + object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention; + if (message.targets && message.targets.length) { + object.targets = []; + for (var j = 0; j < message.targets.length; ++j) + object.targets[j] = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] === undefined ? message.targets[j] : $root.google.protobuf.FieldOptions.OptionTargetType[message.targets[j]] : message.targets[j]; + } + if (message.editionDefaults && message.editionDefaults.length) { + object.editionDefaults = []; + for (var j = 0; j < message.editionDefaults.length; ++j) + object.editionDefaults[j] = $root.google.protobuf.FieldOptions.EditionDefault.toObject(message.editionDefaults[j], options); + } + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { + object[".google.api.fieldBehavior"] = []; + for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) + object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] === undefined ? message[".google.api.fieldBehavior"][j] : $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) + object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); + return object; + }; + + /** + * Converts this FieldOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FieldOptions + * @instance + * @returns {Object.} JSON object + */ + FieldOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FieldOptions + * @function getTypeUrl + * @memberof google.protobuf.FieldOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldOptions"; + }; + + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {number} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); + + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {number} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; + })(); + + /** + * OptionRetention enum. + * @name google.protobuf.FieldOptions.OptionRetention + * @enum {number} + * @property {number} RETENTION_UNKNOWN=0 RETENTION_UNKNOWN value + * @property {number} RETENTION_RUNTIME=1 RETENTION_RUNTIME value + * @property {number} RETENTION_SOURCE=2 RETENTION_SOURCE value + */ + FieldOptions.OptionRetention = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RETENTION_UNKNOWN"] = 0; + values[valuesById[1] = "RETENTION_RUNTIME"] = 1; + values[valuesById[2] = "RETENTION_SOURCE"] = 2; + return values; + })(); + + /** + * OptionTargetType enum. + * @name google.protobuf.FieldOptions.OptionTargetType + * @enum {number} + * @property {number} TARGET_TYPE_UNKNOWN=0 TARGET_TYPE_UNKNOWN value + * @property {number} TARGET_TYPE_FILE=1 TARGET_TYPE_FILE value + * @property {number} TARGET_TYPE_EXTENSION_RANGE=2 TARGET_TYPE_EXTENSION_RANGE value + * @property {number} TARGET_TYPE_MESSAGE=3 TARGET_TYPE_MESSAGE value + * @property {number} TARGET_TYPE_FIELD=4 TARGET_TYPE_FIELD value + * @property {number} TARGET_TYPE_ONEOF=5 TARGET_TYPE_ONEOF value + * @property {number} TARGET_TYPE_ENUM=6 TARGET_TYPE_ENUM value + * @property {number} TARGET_TYPE_ENUM_ENTRY=7 TARGET_TYPE_ENUM_ENTRY value + * @property {number} TARGET_TYPE_SERVICE=8 TARGET_TYPE_SERVICE value + * @property {number} TARGET_TYPE_METHOD=9 TARGET_TYPE_METHOD value + */ + FieldOptions.OptionTargetType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TARGET_TYPE_UNKNOWN"] = 0; + values[valuesById[1] = "TARGET_TYPE_FILE"] = 1; + values[valuesById[2] = "TARGET_TYPE_EXTENSION_RANGE"] = 2; + values[valuesById[3] = "TARGET_TYPE_MESSAGE"] = 3; + values[valuesById[4] = "TARGET_TYPE_FIELD"] = 4; + values[valuesById[5] = "TARGET_TYPE_ONEOF"] = 5; + values[valuesById[6] = "TARGET_TYPE_ENUM"] = 6; + values[valuesById[7] = "TARGET_TYPE_ENUM_ENTRY"] = 7; + values[valuesById[8] = "TARGET_TYPE_SERVICE"] = 8; + values[valuesById[9] = "TARGET_TYPE_METHOD"] = 9; + return values; + })(); + + FieldOptions.EditionDefault = (function() { + + /** + * Properties of an EditionDefault. + * @memberof google.protobuf.FieldOptions + * @interface IEditionDefault + * @property {google.protobuf.Edition|null} [edition] EditionDefault edition + * @property {string|null} [value] EditionDefault value + */ + + /** + * Constructs a new EditionDefault. + * @memberof google.protobuf.FieldOptions + * @classdesc Represents an EditionDefault. + * @implements IEditionDefault + * @constructor + * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set + */ + function EditionDefault(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EditionDefault edition. + * @member {google.protobuf.Edition} edition + * @memberof google.protobuf.FieldOptions.EditionDefault + * @instance + */ + EditionDefault.prototype.edition = 0; + + /** + * EditionDefault value. + * @member {string} value + * @memberof google.protobuf.FieldOptions.EditionDefault + * @instance + */ + EditionDefault.prototype.value = ""; + + /** + * Creates a new EditionDefault instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {google.protobuf.FieldOptions.IEditionDefault=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault instance + */ + EditionDefault.create = function create(properties) { + return new EditionDefault(properties); + }; + + /** + * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EditionDefault.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition); + return writer; + }; + + /** + * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {google.protobuf.FieldOptions.IEditionDefault} message EditionDefault message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EditionDefault.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EditionDefault message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EditionDefault.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions.EditionDefault(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.edition = reader.int32(); + break; + } + case 2: { + message.value = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EditionDefault message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EditionDefault.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EditionDefault message. + * @function verify + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EditionDefault.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + switch (message.edition) { + default: + return "edition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + /** + * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldOptions.EditionDefault} EditionDefault + */ + EditionDefault.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions.EditionDefault) + return object; + var message = new $root.google.protobuf.FieldOptions.EditionDefault(); + switch (object.edition) { + default: + if (typeof object.edition === "number") { + message.edition = object.edition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.edition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.edition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.edition = 999; + break; + case "EDITION_2023": + case 1000: + message.edition = 1000; + break; + case "EDITION_2024": + case 1001: + message.edition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.edition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.edition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.edition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.edition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.edition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.edition = 2147483647; + break; + } + if (object.value != null) + message.value = String(object.value); + return message; + }; + + /** + * Creates a plain object from an EditionDefault message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {google.protobuf.FieldOptions.EditionDefault} message EditionDefault + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EditionDefault.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.value = ""; + object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; + } + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; + return object; + }; + + /** + * Converts this EditionDefault to JSON. + * @function toJSON + * @memberof google.protobuf.FieldOptions.EditionDefault + * @instance + * @returns {Object.} JSON object + */ + EditionDefault.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EditionDefault + * @function getTypeUrl + * @memberof google.protobuf.FieldOptions.EditionDefault + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldOptions.EditionDefault"; + }; + + return EditionDefault; + })(); + + return FieldOptions; + })(); + + protobuf.OneofOptions = (function() { + + /** + * Properties of an OneofOptions. + * @memberof google.protobuf + * @interface IOneofOptions + * @property {google.protobuf.IFeatureSet|null} [features] OneofOptions features + * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption + */ + + /** + * Constructs a new OneofOptions. + * @memberof google.protobuf + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions + * @constructor + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + */ + function OneofOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OneofOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.features = null; + + /** + * OneofOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance + */ + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); + }; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OneofOptions message. + * @function verify + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofOptions} OneofOptions + */ + OneofOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofOptions) + return object; + var message = new $root.google.protobuf.OneofOptions(); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.OneofOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.OneofOptions} message OneofOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) + object.features = null; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this OneofOptions to JSON. + * @function toJSON + * @memberof google.protobuf.OneofOptions + * @instance + * @returns {Object.} JSON object + */ + OneofOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OneofOptions + * @function getTypeUrl + * @memberof google.protobuf.OneofOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofOptions"; + }; + + return OneofOptions; + })(); + + protobuf.EnumOptions = (function() { + + /** + * Properties of an EnumOptions. + * @memberof google.protobuf + * @interface IEnumOptions + * @property {boolean|null} [allowAlias] EnumOptions allowAlias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts + * @property {google.protobuf.IFeatureSet|null} [features] EnumOptions features + * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption + */ + + /** + * Constructs a new EnumOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions + * @constructor + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + */ + function EnumOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumOptions allowAlias. + * @member {boolean} allowAlias + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.allowAlias = false; + + /** + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecated = false; + + /** + * EnumOptions deprecatedLegacyJsonFieldConflicts. + * @member {boolean} deprecatedLegacyJsonFieldConflicts + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false; + + /** + * EnumOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.features = null; + + /** + * EnumOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumOptions} EnumOptions instance + */ + EnumOptions.create = function create(properties) { + return new EnumOptions(properties); + }; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.allowAlias = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 6: { + message.deprecatedLegacyJsonFieldConflicts = reader.bool(); + break; + } + case 7: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumOptions message. + * @function verify + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (typeof message.allowAlias !== "boolean") + return "allowAlias: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) + if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean") + return "deprecatedLegacyJsonFieldConflicts: boolean expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumOptions} EnumOptions + */ + EnumOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumOptions) + return object; + var message = new $root.google.protobuf.EnumOptions(); + if (object.allowAlias != null) + message.allowAlias = Boolean(object.allowAlias); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.deprecatedLegacyJsonFieldConflicts != null) + message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.EnumOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.EnumOptions} message EnumOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.allowAlias = false; + object.deprecated = false; + object.deprecatedLegacyJsonFieldConflicts = false; + object.features = null; + } + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + object.allowAlias = message.allowAlias; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts")) + object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this EnumOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumOptions + * @instance + * @returns {Object.} JSON object + */ + EnumOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumOptions"; + }; + + return EnumOptions; + })(); + + protobuf.EnumValueOptions = (function() { + + /** + * Properties of an EnumValueOptions. + * @memberof google.protobuf + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {google.protobuf.IFeatureSet|null} [features] EnumValueOptions features + * @property {boolean|null} [debugRedact] EnumValueOptions debugRedact + * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption + */ + + /** + * Constructs a new EnumValueOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions + * @constructor + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + */ + function EnumValueOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.deprecated = false; + + /** + * EnumValueOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.features = null; + + /** + * EnumValueOptions debugRedact. + * @member {boolean} debugRedact + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.debugRedact = false; + + /** + * EnumValueOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance + */ + EnumValueOptions.create = function create(properties) { + return new EnumValueOptions(properties); + }; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.debugRedact); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.deprecated = reader.bool(); + break; + } + case 2: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 3: { + message.debugRedact = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumValueOptions message. + * @function verify + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) + if (typeof message.debugRedact !== "boolean") + return "debugRedact: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + */ + EnumValueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueOptions) + return object; + var message = new $root.google.protobuf.EnumValueOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.debugRedact != null) + message.debugRedact = Boolean(object.debugRedact); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.EnumValueOptions} message EnumValueOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.deprecated = false; + object.features = null; + object.debugRedact = false; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.debugRedact != null && message.hasOwnProperty("debugRedact")) + object.debugRedact = message.debugRedact; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this EnumValueOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueOptions + * @instance + * @returns {Object.} JSON object + */ + EnumValueOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EnumValueOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueOptions"; + }; + + return EnumValueOptions; + })(); + + protobuf.ServiceOptions = (function() { + + /** + * Properties of a ServiceOptions. + * @memberof google.protobuf + * @interface IServiceOptions + * @property {google.protobuf.IFeatureSet|null} [features] ServiceOptions features + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption + * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost + * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes + */ + + /** + * Constructs a new ServiceOptions. + * @memberof google.protobuf + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions + * @constructor + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + */ + function ServiceOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ServiceOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.features = null; + + /** + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.deprecated = false; + + /** + * ServiceOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * ServiceOptions .google.api.defaultHost. + * @member {string} .google.api.defaultHost + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.defaultHost"] = ""; + + /** + * ServiceOptions .google.api.oauthScopes. + * @member {string} .google.api.oauthScopes + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.oauthScopes"] = ""; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @returns {google.protobuf.ServiceOptions} ServiceOptions instance + */ + ServiceOptions.create = function create(properties) { + return new ServiceOptions(properties); + }; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) + writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); + if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) + writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); + return writer; + }; + + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 34: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 33: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1049: { + message[".google.api.defaultHost"] = reader.string(); + break; + } + case 1050: { + message[".google.api.oauthScopes"] = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServiceOptions message. + * @function verify + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + if (!$util.isString(message[".google.api.defaultHost"])) + return ".google.api.defaultHost: string expected"; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + if (!$util.isString(message[".google.api.oauthScopes"])) + return ".google.api.oauthScopes: string expected"; + return null; + }; + + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceOptions} ServiceOptions + */ + ServiceOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceOptions) + return object; + var message = new $root.google.protobuf.ServiceOptions(); + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.ServiceOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.defaultHost"] != null) + message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]); + if (object[".google.api.oauthScopes"] != null) + message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]); + return message; + }; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.ServiceOptions} message ServiceOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.deprecated = false; + object.features = null; + object[".google.api.defaultHost"] = ""; + object[".google.api.oauthScopes"] = ""; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + object[".google.api.defaultHost"] = message[".google.api.defaultHost"]; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"]; + return object; + }; + + /** + * Converts this ServiceOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceOptions + * @instance + * @returns {Object.} JSON object + */ + ServiceOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ServiceOptions + * @function getTypeUrl + * @memberof google.protobuf.ServiceOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceOptions"; + }; + + return ServiceOptions; + })(); + + protobuf.MethodOptions = (function() { + + /** + * Properties of a MethodOptions. + * @memberof google.protobuf + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel + * @property {google.protobuf.IFeatureSet|null} [features] MethodOptions features + * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature + */ + + /** + * Constructs a new MethodOptions. + * @memberof google.protobuf + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions + * @constructor + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + */ + function MethodOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.methodSignature"] = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.deprecated = false; + + /** + * MethodOptions idempotencyLevel. + * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.idempotencyLevel = 0; + + /** + * MethodOptions features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.features = null; + + /** + * MethodOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.http"] = null; + + /** + * MethodOptions .google.api.methodSignature. + * @member {Array.} .google.api.methodSignature + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @returns {google.protobuf.MethodOptions} MethodOptions instance + */ + MethodOptions.create = function create(properties) { + return new MethodOptions(properties); + }; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) + writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: { + message.deprecated = reader.bool(); + break; + } + case 34: { + message.idempotencyLevel = reader.int32(); + break; + } + case 35: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 72295728: { + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + } + case 1051: { + if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) + message[".google.api.methodSignature"] = []; + message[".google.api.methodSignature"].push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodOptions message. + * @function verify + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + switch (message.idempotencyLevel) { + default: + return "idempotencyLevel: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { + var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); + if (error) + return ".google.api.http." + error; + } + if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) { + if (!Array.isArray(message[".google.api.methodSignature"])) + return ".google.api.methodSignature: array expected"; + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + if (!$util.isString(message[".google.api.methodSignature"][i])) + return ".google.api.methodSignature: string[] expected"; + } + return null; + }; + + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodOptions} MethodOptions + */ + MethodOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodOptions) + return object; + var message = new $root.google.protobuf.MethodOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + switch (object.idempotencyLevel) { + default: + if (typeof object.idempotencyLevel === "number") { + message.idempotencyLevel = object.idempotencyLevel; + break; + } + break; + case "IDEMPOTENCY_UNKNOWN": + case 0: + message.idempotencyLevel = 0; + break; + case "NO_SIDE_EFFECTS": + case 1: + message.idempotencyLevel = 1; + break; + case "IDEMPOTENT": + case 2: + message.idempotencyLevel = 2; + break; + } + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.MethodOptions.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.http"] != null) { + if (typeof object[".google.api.http"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); + message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); + } + if (object[".google.api.methodSignature"]) { + if (!Array.isArray(object[".google.api.methodSignature"])) + throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected"); + message[".google.api.methodSignature"] = []; + for (var i = 0; i < object[".google.api.methodSignature"].length; ++i) + message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]); + } + return message; + }; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.MethodOptions} message MethodOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.methodSignature"] = []; + } + if (options.defaults) { + object.deprecated = false; + object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; + object.features = null; + object[".google.api.http"] = null; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length) { + object[".google.api.methodSignature"] = []; + for (var j = 0; j < message[".google.api.methodSignature"].length; ++j) + object[".google.api.methodSignature"][j] = message[".google.api.methodSignature"][j]; + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); + return object; + }; + + /** + * Converts this MethodOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MethodOptions + * @instance + * @returns {Object.} JSON object + */ + MethodOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MethodOptions + * @function getTypeUrl + * @memberof google.protobuf.MethodOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodOptions"; + }; + + /** + * IdempotencyLevel enum. + * @name google.protobuf.MethodOptions.IdempotencyLevel + * @enum {number} + * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value + * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value + * @property {number} IDEMPOTENT=2 IDEMPOTENT value + */ + MethodOptions.IdempotencyLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; + values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; + values[valuesById[2] = "IDEMPOTENT"] = 2; + return values; + })(); + + return MethodOptions; + })(); + + protobuf.UninterpretedOption = (function() { + + /** + * Properties of an UninterpretedOption. + * @memberof google.protobuf + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifierValue] UninterpretedOption identifierValue + * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue + * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue + * @property {number|null} [doubleValue] UninterpretedOption doubleValue + * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue + * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue + */ + + /** + * Constructs a new UninterpretedOption. + * @memberof google.protobuf + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption + * @constructor + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + */ + function UninterpretedOption(properties) { + this.name = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.name = $util.emptyArray; + + /** + * UninterpretedOption identifierValue. + * @member {string} identifierValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.identifierValue = ""; + + /** + * UninterpretedOption positiveIntValue. + * @member {number|Long} positiveIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * UninterpretedOption negativeIntValue. + * @member {number|Long} negativeIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * UninterpretedOption doubleValue. + * @member {number} doubleValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.doubleValue = 0; + + /** + * UninterpretedOption stringValue. + * @member {Uint8Array} stringValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.stringValue = $util.newBuffer([]); + + /** + * UninterpretedOption aggregateValue. + * @member {string} aggregateValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.aggregateValue = ""; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance + */ + UninterpretedOption.create = function create(properties) { + return new UninterpretedOption(properties); + }; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.name.length) + for (var i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); + if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); + if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); + if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); + return writer; + }; + + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + } + case 3: { + message.identifierValue = reader.string(); + break; + } + case 4: { + message.positiveIntValue = reader.uint64(); + break; + } + case 5: { + message.negativeIntValue = reader.int64(); + break; + } + case 6: { + message.doubleValue = reader.double(); + break; + } + case 7: { + message.stringValue = reader.bytes(); + break; + } + case 8: { + message.aggregateValue = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UninterpretedOption message. + * @function verify + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UninterpretedOption.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) { + if (!Array.isArray(message.name)) + return "name: array expected"; + for (var i = 0; i < message.name.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (error) + return "name." + error; + } + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (!$util.isString(message.identifierValue)) + return "identifierValue: string expected"; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) + return "positiveIntValue: integer|Long expected"; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) + return "negativeIntValue: integer|Long expected"; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) + return "stringValue: buffer expected"; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (!$util.isString(message.aggregateValue)) + return "aggregateValue: string expected"; + return null; + }; + + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + */ + UninterpretedOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption) + return object; + var message = new $root.google.protobuf.UninterpretedOption(); + if (object.name) { + if (!Array.isArray(object.name)) + throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); + message.name = []; + for (var i = 0; i < object.name.length; ++i) { + if (typeof object.name[i] !== "object") + throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); + message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); + } + } + if (object.identifierValue != null) + message.identifierValue = String(object.identifierValue); + if (object.positiveIntValue != null) + if ($util.Long) + (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; + else if (typeof object.positiveIntValue === "string") + message.positiveIntValue = parseInt(object.positiveIntValue, 10); + else if (typeof object.positiveIntValue === "number") + message.positiveIntValue = object.positiveIntValue; + else if (typeof object.positiveIntValue === "object") + message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); + if (object.negativeIntValue != null) + if ($util.Long) + (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; + else if (typeof object.negativeIntValue === "string") + message.negativeIntValue = parseInt(object.negativeIntValue, 10); + else if (typeof object.negativeIntValue === "number") + message.negativeIntValue = object.negativeIntValue; + else if (typeof object.negativeIntValue === "object") + message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + if (typeof object.stringValue === "string") + $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); + else if (object.stringValue.length >= 0) + message.stringValue = object.stringValue; + if (object.aggregateValue != null) + message.aggregateValue = String(object.aggregateValue); + return message; + }; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UninterpretedOption.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.name = []; + if (options.defaults) { + object.identifierValue = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.positiveIntValue = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.negativeIntValue = options.longs === String ? "0" : 0; + object.doubleValue = 0; + if (options.bytes === String) + object.stringValue = ""; + else { + object.stringValue = []; + if (options.bytes !== Array) + object.stringValue = $util.newBuffer(object.stringValue); + } + object.aggregateValue = ""; + } + if (message.name && message.name.length) { + object.name = []; + for (var j = 0; j < message.name.length; ++j) + object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + object.identifierValue = message.identifierValue; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (typeof message.positiveIntValue === "number") + object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; + else + object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (typeof message.negativeIntValue === "number") + object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; + else + object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + object.aggregateValue = message.aggregateValue; + return object; + }; + + /** + * Converts this UninterpretedOption to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption + * @instance + * @returns {Object.} JSON object + */ + UninterpretedOption.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UninterpretedOption + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UninterpretedOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption"; + }; + + UninterpretedOption.NamePart = (function() { + + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} namePart NamePart namePart + * @property {boolean} isExtension NamePart isExtension + */ + + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamePart namePart. + * @member {string} namePart + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.namePart = ""; + + /** + * NamePart isExtension. + * @member {boolean} isExtension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.isExtension = false; + + /** + * Creates a new NamePart instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + return writer; + }; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.namePart = reader.string(); + break; + } + case 2: { + message.isExtension = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: message }); + if (!message.hasOwnProperty("isExtension")) + throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); + return message; + }; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.namePart)) + return "namePart: string expected"; + if (typeof message.isExtension !== "boolean") + return "isExtension: boolean expected"; + return null; + }; + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + NamePart.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) + return object; + var message = new $root.google.protobuf.UninterpretedOption.NamePart(); + if (object.namePart != null) + message.namePart = String(object.namePart); + if (object.isExtension != null) + message.isExtension = Boolean(object.isExtension); + return message; + }; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NamePart.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.namePart = ""; + object.isExtension = false; + } + if (message.namePart != null && message.hasOwnProperty("namePart")) + object.namePart = message.namePart; + if (message.isExtension != null && message.hasOwnProperty("isExtension")) + object.isExtension = message.isExtension; + return object; + }; + + /** + * Converts this NamePart to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + * @returns {Object.} JSON object + */ + NamePart.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NamePart + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NamePart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption.NamePart"; + }; + + return NamePart; + })(); + + return UninterpretedOption; + })(); + + protobuf.FeatureSet = (function() { + + /** + * Properties of a FeatureSet. + * @memberof google.protobuf + * @interface IFeatureSet + * @property {google.protobuf.FeatureSet.FieldPresence|null} [fieldPresence] FeatureSet fieldPresence + * @property {google.protobuf.FeatureSet.EnumType|null} [enumType] FeatureSet enumType + * @property {google.protobuf.FeatureSet.RepeatedFieldEncoding|null} [repeatedFieldEncoding] FeatureSet repeatedFieldEncoding + * @property {google.protobuf.FeatureSet.Utf8Validation|null} [utf8Validation] FeatureSet utf8Validation + * @property {google.protobuf.FeatureSet.MessageEncoding|null} [messageEncoding] FeatureSet messageEncoding + * @property {google.protobuf.FeatureSet.JsonFormat|null} [jsonFormat] FeatureSet jsonFormat + */ + + /** + * Constructs a new FeatureSet. + * @memberof google.protobuf + * @classdesc Represents a FeatureSet. + * @implements IFeatureSet + * @constructor + * @param {google.protobuf.IFeatureSet=} [properties] Properties to set + */ + function FeatureSet(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FeatureSet fieldPresence. + * @member {google.protobuf.FeatureSet.FieldPresence} fieldPresence + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.fieldPresence = 0; + + /** + * FeatureSet enumType. + * @member {google.protobuf.FeatureSet.EnumType} enumType + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.enumType = 0; + + /** + * FeatureSet repeatedFieldEncoding. + * @member {google.protobuf.FeatureSet.RepeatedFieldEncoding} repeatedFieldEncoding + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.repeatedFieldEncoding = 0; + + /** + * FeatureSet utf8Validation. + * @member {google.protobuf.FeatureSet.Utf8Validation} utf8Validation + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.utf8Validation = 0; + + /** + * FeatureSet messageEncoding. + * @member {google.protobuf.FeatureSet.MessageEncoding} messageEncoding + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.messageEncoding = 0; + + /** + * FeatureSet jsonFormat. + * @member {google.protobuf.FeatureSet.JsonFormat} jsonFormat + * @memberof google.protobuf.FeatureSet + * @instance + */ + FeatureSet.prototype.jsonFormat = 0; + + /** + * Creates a new FeatureSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FeatureSet + * @static + * @param {google.protobuf.IFeatureSet=} [properties] Properties to set + * @returns {google.protobuf.FeatureSet} FeatureSet instance + */ + FeatureSet.create = function create(properties) { + return new FeatureSet(properties); + }; + + /** + * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FeatureSet + * @static + * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fieldPresence != null && Object.hasOwnProperty.call(message, "fieldPresence")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.fieldPresence); + if (message.enumType != null && Object.hasOwnProperty.call(message, "enumType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enumType); + if (message.repeatedFieldEncoding != null && Object.hasOwnProperty.call(message, "repeatedFieldEncoding")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatedFieldEncoding); + if (message.utf8Validation != null && Object.hasOwnProperty.call(message, "utf8Validation")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.utf8Validation); + if (message.messageEncoding != null && Object.hasOwnProperty.call(message, "messageEncoding")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.messageEncoding); + if (message.jsonFormat != null && Object.hasOwnProperty.call(message, "jsonFormat")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jsonFormat); + return writer; + }; + + /** + * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FeatureSet + * @static + * @param {google.protobuf.IFeatureSet} message FeatureSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FeatureSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FeatureSet} FeatureSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.fieldPresence = reader.int32(); + break; + } + case 2: { + message.enumType = reader.int32(); + break; + } + case 3: { + message.repeatedFieldEncoding = reader.int32(); + break; + } + case 4: { + message.utf8Validation = reader.int32(); + break; + } + case 5: { + message.messageEncoding = reader.int32(); + break; + } + case 6: { + message.jsonFormat = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FeatureSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FeatureSet} FeatureSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureSet message. + * @function verify + * @memberof google.protobuf.FeatureSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence")) + switch (message.fieldPresence) { + default: + return "fieldPresence: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.enumType != null && message.hasOwnProperty("enumType")) + switch (message.enumType) { + default: + return "enumType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding")) + switch (message.repeatedFieldEncoding) { + default: + return "repeatedFieldEncoding: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation")) + switch (message.utf8Validation) { + default: + return "utf8Validation: enum value expected"; + case 0: + case 2: + case 3: + break; + } + if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding")) + switch (message.messageEncoding) { + default: + return "messageEncoding: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat")) + switch (message.jsonFormat) { + default: + return "jsonFormat: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FeatureSet + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FeatureSet} FeatureSet + */ + FeatureSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FeatureSet) + return object; + var message = new $root.google.protobuf.FeatureSet(); + switch (object.fieldPresence) { + default: + if (typeof object.fieldPresence === "number") { + message.fieldPresence = object.fieldPresence; + break; + } + break; + case "FIELD_PRESENCE_UNKNOWN": + case 0: + message.fieldPresence = 0; + break; + case "EXPLICIT": + case 1: + message.fieldPresence = 1; + break; + case "IMPLICIT": + case 2: + message.fieldPresence = 2; + break; + case "LEGACY_REQUIRED": + case 3: + message.fieldPresence = 3; + break; + } + switch (object.enumType) { + default: + if (typeof object.enumType === "number") { + message.enumType = object.enumType; + break; + } + break; + case "ENUM_TYPE_UNKNOWN": + case 0: + message.enumType = 0; + break; + case "OPEN": + case 1: + message.enumType = 1; + break; + case "CLOSED": + case 2: + message.enumType = 2; + break; + } + switch (object.repeatedFieldEncoding) { + default: + if (typeof object.repeatedFieldEncoding === "number") { + message.repeatedFieldEncoding = object.repeatedFieldEncoding; + break; + } + break; + case "REPEATED_FIELD_ENCODING_UNKNOWN": + case 0: + message.repeatedFieldEncoding = 0; + break; + case "PACKED": + case 1: + message.repeatedFieldEncoding = 1; + break; + case "EXPANDED": + case 2: + message.repeatedFieldEncoding = 2; + break; + } + switch (object.utf8Validation) { + default: + if (typeof object.utf8Validation === "number") { + message.utf8Validation = object.utf8Validation; + break; + } + break; + case "UTF8_VALIDATION_UNKNOWN": + case 0: + message.utf8Validation = 0; + break; + case "VERIFY": + case 2: + message.utf8Validation = 2; + break; + case "NONE": + case 3: + message.utf8Validation = 3; + break; + } + switch (object.messageEncoding) { + default: + if (typeof object.messageEncoding === "number") { + message.messageEncoding = object.messageEncoding; + break; + } + break; + case "MESSAGE_ENCODING_UNKNOWN": + case 0: + message.messageEncoding = 0; + break; + case "LENGTH_PREFIXED": + case 1: + message.messageEncoding = 1; + break; + case "DELIMITED": + case 2: + message.messageEncoding = 2; + break; + } + switch (object.jsonFormat) { + default: + if (typeof object.jsonFormat === "number") { + message.jsonFormat = object.jsonFormat; + break; + } + break; + case "JSON_FORMAT_UNKNOWN": + case 0: + message.jsonFormat = 0; + break; + case "ALLOW": + case 1: + message.jsonFormat = 1; + break; + case "LEGACY_BEST_EFFORT": + case 2: + message.jsonFormat = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a FeatureSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FeatureSet + * @static + * @param {google.protobuf.FeatureSet} message FeatureSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.fieldPresence = options.enums === String ? "FIELD_PRESENCE_UNKNOWN" : 0; + object.enumType = options.enums === String ? "ENUM_TYPE_UNKNOWN" : 0; + object.repeatedFieldEncoding = options.enums === String ? "REPEATED_FIELD_ENCODING_UNKNOWN" : 0; + object.utf8Validation = options.enums === String ? "UTF8_VALIDATION_UNKNOWN" : 0; + object.messageEncoding = options.enums === String ? "MESSAGE_ENCODING_UNKNOWN" : 0; + object.jsonFormat = options.enums === String ? "JSON_FORMAT_UNKNOWN" : 0; + } + if (message.fieldPresence != null && message.hasOwnProperty("fieldPresence")) + object.fieldPresence = options.enums === String ? $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] === undefined ? message.fieldPresence : $root.google.protobuf.FeatureSet.FieldPresence[message.fieldPresence] : message.fieldPresence; + if (message.enumType != null && message.hasOwnProperty("enumType")) + object.enumType = options.enums === String ? $root.google.protobuf.FeatureSet.EnumType[message.enumType] === undefined ? message.enumType : $root.google.protobuf.FeatureSet.EnumType[message.enumType] : message.enumType; + if (message.repeatedFieldEncoding != null && message.hasOwnProperty("repeatedFieldEncoding")) + object.repeatedFieldEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] === undefined ? message.repeatedFieldEncoding : $root.google.protobuf.FeatureSet.RepeatedFieldEncoding[message.repeatedFieldEncoding] : message.repeatedFieldEncoding; + if (message.utf8Validation != null && message.hasOwnProperty("utf8Validation")) + object.utf8Validation = options.enums === String ? $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] === undefined ? message.utf8Validation : $root.google.protobuf.FeatureSet.Utf8Validation[message.utf8Validation] : message.utf8Validation; + if (message.messageEncoding != null && message.hasOwnProperty("messageEncoding")) + object.messageEncoding = options.enums === String ? $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] === undefined ? message.messageEncoding : $root.google.protobuf.FeatureSet.MessageEncoding[message.messageEncoding] : message.messageEncoding; + if (message.jsonFormat != null && message.hasOwnProperty("jsonFormat")) + object.jsonFormat = options.enums === String ? $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] === undefined ? message.jsonFormat : $root.google.protobuf.FeatureSet.JsonFormat[message.jsonFormat] : message.jsonFormat; + return object; + }; + + /** + * Converts this FeatureSet to JSON. + * @function toJSON + * @memberof google.protobuf.FeatureSet + * @instance + * @returns {Object.} JSON object + */ + FeatureSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureSet + * @function getTypeUrl + * @memberof google.protobuf.FeatureSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FeatureSet"; + }; + + /** + * FieldPresence enum. + * @name google.protobuf.FeatureSet.FieldPresence + * @enum {number} + * @property {number} FIELD_PRESENCE_UNKNOWN=0 FIELD_PRESENCE_UNKNOWN value + * @property {number} EXPLICIT=1 EXPLICIT value + * @property {number} IMPLICIT=2 IMPLICIT value + * @property {number} LEGACY_REQUIRED=3 LEGACY_REQUIRED value + */ + FeatureSet.FieldPresence = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_PRESENCE_UNKNOWN"] = 0; + values[valuesById[1] = "EXPLICIT"] = 1; + values[valuesById[2] = "IMPLICIT"] = 2; + values[valuesById[3] = "LEGACY_REQUIRED"] = 3; + return values; + })(); + + /** + * EnumType enum. + * @name google.protobuf.FeatureSet.EnumType + * @enum {number} + * @property {number} ENUM_TYPE_UNKNOWN=0 ENUM_TYPE_UNKNOWN value + * @property {number} OPEN=1 OPEN value + * @property {number} CLOSED=2 CLOSED value + */ + FeatureSet.EnumType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ENUM_TYPE_UNKNOWN"] = 0; + values[valuesById[1] = "OPEN"] = 1; + values[valuesById[2] = "CLOSED"] = 2; + return values; + })(); + + /** + * RepeatedFieldEncoding enum. + * @name google.protobuf.FeatureSet.RepeatedFieldEncoding + * @enum {number} + * @property {number} REPEATED_FIELD_ENCODING_UNKNOWN=0 REPEATED_FIELD_ENCODING_UNKNOWN value + * @property {number} PACKED=1 PACKED value + * @property {number} EXPANDED=2 EXPANDED value + */ + FeatureSet.RepeatedFieldEncoding = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "REPEATED_FIELD_ENCODING_UNKNOWN"] = 0; + values[valuesById[1] = "PACKED"] = 1; + values[valuesById[2] = "EXPANDED"] = 2; + return values; + })(); + + /** + * Utf8Validation enum. + * @name google.protobuf.FeatureSet.Utf8Validation + * @enum {number} + * @property {number} UTF8_VALIDATION_UNKNOWN=0 UTF8_VALIDATION_UNKNOWN value + * @property {number} VERIFY=2 VERIFY value + * @property {number} NONE=3 NONE value + */ + FeatureSet.Utf8Validation = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UTF8_VALIDATION_UNKNOWN"] = 0; + values[valuesById[2] = "VERIFY"] = 2; + values[valuesById[3] = "NONE"] = 3; + return values; + })(); + + /** + * MessageEncoding enum. + * @name google.protobuf.FeatureSet.MessageEncoding + * @enum {number} + * @property {number} MESSAGE_ENCODING_UNKNOWN=0 MESSAGE_ENCODING_UNKNOWN value + * @property {number} LENGTH_PREFIXED=1 LENGTH_PREFIXED value + * @property {number} DELIMITED=2 DELIMITED value + */ + FeatureSet.MessageEncoding = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MESSAGE_ENCODING_UNKNOWN"] = 0; + values[valuesById[1] = "LENGTH_PREFIXED"] = 1; + values[valuesById[2] = "DELIMITED"] = 2; + return values; + })(); + + /** + * JsonFormat enum. + * @name google.protobuf.FeatureSet.JsonFormat + * @enum {number} + * @property {number} JSON_FORMAT_UNKNOWN=0 JSON_FORMAT_UNKNOWN value + * @property {number} ALLOW=1 ALLOW value + * @property {number} LEGACY_BEST_EFFORT=2 LEGACY_BEST_EFFORT value + */ + FeatureSet.JsonFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JSON_FORMAT_UNKNOWN"] = 0; + values[valuesById[1] = "ALLOW"] = 1; + values[valuesById[2] = "LEGACY_BEST_EFFORT"] = 2; + return values; + })(); + + return FeatureSet; + })(); + + protobuf.FeatureSetDefaults = (function() { + + /** + * Properties of a FeatureSetDefaults. + * @memberof google.protobuf + * @interface IFeatureSetDefaults + * @property {Array.|null} [defaults] FeatureSetDefaults defaults + * @property {google.protobuf.Edition|null} [minimumEdition] FeatureSetDefaults minimumEdition + * @property {google.protobuf.Edition|null} [maximumEdition] FeatureSetDefaults maximumEdition + */ + + /** + * Constructs a new FeatureSetDefaults. + * @memberof google.protobuf + * @classdesc Represents a FeatureSetDefaults. + * @implements IFeatureSetDefaults + * @constructor + * @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set + */ + function FeatureSetDefaults(properties) { + this.defaults = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FeatureSetDefaults defaults. + * @member {Array.} defaults + * @memberof google.protobuf.FeatureSetDefaults + * @instance + */ + FeatureSetDefaults.prototype.defaults = $util.emptyArray; + + /** + * FeatureSetDefaults minimumEdition. + * @member {google.protobuf.Edition} minimumEdition + * @memberof google.protobuf.FeatureSetDefaults + * @instance + */ + FeatureSetDefaults.prototype.minimumEdition = 0; + + /** + * FeatureSetDefaults maximumEdition. + * @member {google.protobuf.Edition} maximumEdition + * @memberof google.protobuf.FeatureSetDefaults + * @instance + */ + FeatureSetDefaults.prototype.maximumEdition = 0; + + /** + * Creates a new FeatureSetDefaults instance using the specified properties. + * @function create + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {google.protobuf.IFeatureSetDefaults=} [properties] Properties to set + * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults instance + */ + FeatureSetDefaults.create = function create(properties) { + return new FeatureSetDefaults(properties); + }; + + /** + * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSetDefaults.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.defaults != null && message.defaults.length) + for (var i = 0; i < message.defaults.length; ++i) + $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.encode(message.defaults[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.minimumEdition != null && Object.hasOwnProperty.call(message, "minimumEdition")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.minimumEdition); + if (message.maximumEdition != null && Object.hasOwnProperty.call(message, "maximumEdition")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maximumEdition); + return writer; + }; + + /** + * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {google.protobuf.IFeatureSetDefaults} message FeatureSetDefaults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSetDefaults.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureSetDefaults message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSetDefaults.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.defaults && message.defaults.length)) + message.defaults = []; + message.defaults.push($root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.decode(reader, reader.uint32())); + break; + } + case 4: { + message.minimumEdition = reader.int32(); + break; + } + case 5: { + message.maximumEdition = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSetDefaults.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureSetDefaults message. + * @function verify + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureSetDefaults.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.defaults != null && message.hasOwnProperty("defaults")) { + if (!Array.isArray(message.defaults)) + return "defaults: array expected"; + for (var i = 0; i < message.defaults.length; ++i) { + var error = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify(message.defaults[i]); + if (error) + return "defaults." + error; + } + } + if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition")) + switch (message.minimumEdition) { + default: + return "minimumEdition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition")) + switch (message.maximumEdition) { + default: + return "maximumEdition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + return null; + }; + + /** + * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FeatureSetDefaults} FeatureSetDefaults + */ + FeatureSetDefaults.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FeatureSetDefaults) + return object; + var message = new $root.google.protobuf.FeatureSetDefaults(); + if (object.defaults) { + if (!Array.isArray(object.defaults)) + throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: array expected"); + message.defaults = []; + for (var i = 0; i < object.defaults.length; ++i) { + if (typeof object.defaults[i] !== "object") + throw TypeError(".google.protobuf.FeatureSetDefaults.defaults: object expected"); + message.defaults[i] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.fromObject(object.defaults[i]); + } + } + switch (object.minimumEdition) { + default: + if (typeof object.minimumEdition === "number") { + message.minimumEdition = object.minimumEdition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.minimumEdition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.minimumEdition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.minimumEdition = 999; + break; + case "EDITION_2023": + case 1000: + message.minimumEdition = 1000; + break; + case "EDITION_2024": + case 1001: + message.minimumEdition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.minimumEdition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.minimumEdition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.minimumEdition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.minimumEdition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.minimumEdition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.minimumEdition = 2147483647; + break; + } + switch (object.maximumEdition) { + default: + if (typeof object.maximumEdition === "number") { + message.maximumEdition = object.maximumEdition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.maximumEdition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.maximumEdition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.maximumEdition = 999; + break; + case "EDITION_2023": + case 1000: + message.maximumEdition = 1000; + break; + case "EDITION_2024": + case 1001: + message.maximumEdition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.maximumEdition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.maximumEdition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.maximumEdition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.maximumEdition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.maximumEdition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.maximumEdition = 2147483647; + break; + } + return message; + }; + + /** + * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {google.protobuf.FeatureSetDefaults} message FeatureSetDefaults + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureSetDefaults.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.defaults = []; + if (options.defaults) { + object.minimumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0; + object.maximumEdition = options.enums === String ? "EDITION_UNKNOWN" : 0; + } + if (message.defaults && message.defaults.length) { + object.defaults = []; + for (var j = 0; j < message.defaults.length; ++j) + object.defaults[j] = $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.toObject(message.defaults[j], options); + } + if (message.minimumEdition != null && message.hasOwnProperty("minimumEdition")) + object.minimumEdition = options.enums === String ? $root.google.protobuf.Edition[message.minimumEdition] === undefined ? message.minimumEdition : $root.google.protobuf.Edition[message.minimumEdition] : message.minimumEdition; + if (message.maximumEdition != null && message.hasOwnProperty("maximumEdition")) + object.maximumEdition = options.enums === String ? $root.google.protobuf.Edition[message.maximumEdition] === undefined ? message.maximumEdition : $root.google.protobuf.Edition[message.maximumEdition] : message.maximumEdition; + return object; + }; + + /** + * Converts this FeatureSetDefaults to JSON. + * @function toJSON + * @memberof google.protobuf.FeatureSetDefaults + * @instance + * @returns {Object.} JSON object + */ + FeatureSetDefaults.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureSetDefaults + * @function getTypeUrl + * @memberof google.protobuf.FeatureSetDefaults + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureSetDefaults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults"; + }; + + FeatureSetDefaults.FeatureSetEditionDefault = (function() { + + /** + * Properties of a FeatureSetEditionDefault. + * @memberof google.protobuf.FeatureSetDefaults + * @interface IFeatureSetEditionDefault + * @property {google.protobuf.Edition|null} [edition] FeatureSetEditionDefault edition + * @property {google.protobuf.IFeatureSet|null} [features] FeatureSetEditionDefault features + */ + + /** + * Constructs a new FeatureSetEditionDefault. + * @memberof google.protobuf.FeatureSetDefaults + * @classdesc Represents a FeatureSetEditionDefault. + * @implements IFeatureSetEditionDefault + * @constructor + * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set + */ + function FeatureSetEditionDefault(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FeatureSetEditionDefault edition. + * @member {google.protobuf.Edition} edition + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @instance + */ + FeatureSetEditionDefault.prototype.edition = 0; + + /** + * FeatureSetEditionDefault features. + * @member {google.protobuf.IFeatureSet|null|undefined} features + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @instance + */ + FeatureSetEditionDefault.prototype.features = null; + + /** + * Creates a new FeatureSetEditionDefault instance using the specified properties. + * @function create + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault=} [properties] Properties to set + * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault instance + */ + FeatureSetEditionDefault.create = function create(properties) { + return new FeatureSetEditionDefault(properties); + }; + + /** + * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSetEditionDefault.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.features != null && Object.hasOwnProperty.call(message, "features")) + $root.google.protobuf.FeatureSet.encode(message.features, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.edition); + return writer; + }; + + /** + * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault} message FeatureSetEditionDefault message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSetEditionDefault.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureSetEditionDefault message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSetEditionDefault.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.edition = reader.int32(); + break; + } + case 2: { + message.features = $root.google.protobuf.FeatureSet.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSetEditionDefault.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureSetEditionDefault message. + * @function verify + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureSetEditionDefault.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + switch (message.edition) { + default: + return "edition: enum value expected"; + case 0: + case 998: + case 999: + case 1000: + case 1001: + case 1: + case 2: + case 99997: + case 99998: + case 99999: + case 2147483647: + break; + } + if (message.features != null && message.hasOwnProperty("features")) { + var error = $root.google.protobuf.FeatureSet.verify(message.features); + if (error) + return "features." + error; + } + return null; + }; + + /** + * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} FeatureSetEditionDefault + */ + FeatureSetEditionDefault.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault) + return object; + var message = new $root.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault(); + switch (object.edition) { + default: + if (typeof object.edition === "number") { + message.edition = object.edition; + break; + } + break; + case "EDITION_UNKNOWN": + case 0: + message.edition = 0; + break; + case "EDITION_PROTO2": + case 998: + message.edition = 998; + break; + case "EDITION_PROTO3": + case 999: + message.edition = 999; + break; + case "EDITION_2023": + case 1000: + message.edition = 1000; + break; + case "EDITION_2024": + case 1001: + message.edition = 1001; + break; + case "EDITION_1_TEST_ONLY": + case 1: + message.edition = 1; + break; + case "EDITION_2_TEST_ONLY": + case 2: + message.edition = 2; + break; + case "EDITION_99997_TEST_ONLY": + case 99997: + message.edition = 99997; + break; + case "EDITION_99998_TEST_ONLY": + case 99998: + message.edition = 99998; + break; + case "EDITION_99999_TEST_ONLY": + case 99999: + message.edition = 99999; + break; + case "EDITION_MAX": + case 2147483647: + message.edition = 2147483647; + break; + } + if (object.features != null) { + if (typeof object.features !== "object") + throw TypeError(".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.features: object expected"); + message.features = $root.google.protobuf.FeatureSet.fromObject(object.features); + } + return message; + }; + + /** + * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault} message FeatureSetEditionDefault + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureSetEditionDefault.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.features = null; + object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0; + } + if (message.features != null && message.hasOwnProperty("features")) + object.features = $root.google.protobuf.FeatureSet.toObject(message.features, options); + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition; + return object; + }; + + /** + * Converts this FeatureSetEditionDefault to JSON. + * @function toJSON + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @instance + * @returns {Object.} JSON object + */ + FeatureSetEditionDefault.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FeatureSetEditionDefault + * @function getTypeUrl + * @memberof google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FeatureSetEditionDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"; + }; + + return FeatureSetEditionDefault; + })(); + + return FeatureSetDefaults; + })(); + + protobuf.SourceCodeInfo = (function() { + + /** + * Properties of a SourceCodeInfo. + * @memberof google.protobuf + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location + */ + + /** + * Constructs a new SourceCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo + * @constructor + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + */ + function SourceCodeInfo(properties) { + this.location = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo + * @instance + */ + SourceCodeInfo.prototype.location = $util.emptyArray; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance + */ + SourceCodeInfo.create = function create(properties) { + return new SourceCodeInfo(properties); + }; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.location != null && message.location.length) + for (var i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SourceCodeInfo message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.location != null && message.hasOwnProperty("location")) { + if (!Array.isArray(message.location)) + return "location: array expected"; + for (var i = 0; i < message.location.length; ++i) { + var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); + if (error) + return "location." + error; + } + } + return null; + }; + + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + */ + SourceCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo) + return object; + var message = new $root.google.protobuf.SourceCodeInfo(); + if (object.location) { + if (!Array.isArray(object.location)) + throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); + message.location = []; + for (var i = 0; i < object.location.length; ++i) { + if (typeof object.location[i] !== "object") + throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); + message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SourceCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.location = []; + if (message.location && message.location.length) { + object.location = []; + for (var j = 0; j < message.location.length; ++j) + object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); + } + return object; + }; + + /** + * Converts this SourceCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo + * @instance + * @returns {Object.} JSON object + */ + SourceCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SourceCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SourceCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo"; + }; + + SourceCodeInfo.Location = (function() { + + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leadingComments] Location leadingComments + * @property {string|null} [trailingComments] Location trailingComments + * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments + */ + + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leadingDetachedComments = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; + + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; + + /** + * Location leadingComments. + * @member {string} leadingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingComments = ""; + + /** + * Location trailingComments. + * @member {string} trailingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailingComments = ""; + + /** + * Location leadingDetachedComments. + * @member {Array.} leadingDetachedComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingDetachedComments = $util.emptyArray; + + /** + * Creates a new Location instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + */ + Location.create = function create(properties) { + return new Location(properties); + }; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); + if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); + if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); + return writer; + }; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Location message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + } + case 2: { + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + } + case 3: { + message.leadingComments = reader.string(); + break; + } + case 4: { + message.trailingComments = reader.string(); + break; + } + case 6: { + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Location message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Location.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.span != null && message.hasOwnProperty("span")) { + if (!Array.isArray(message.span)) + return "span: array expected"; + for (var i = 0; i < message.span.length; ++i) + if (!$util.isInteger(message.span[i])) + return "span: integer[] expected"; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (!$util.isString(message.leadingComments)) + return "leadingComments: string expected"; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (!$util.isString(message.trailingComments)) + return "trailingComments: string expected"; + if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { + if (!Array.isArray(message.leadingDetachedComments)) + return "leadingDetachedComments: array expected"; + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + if (!$util.isString(message.leadingDetachedComments[i])) + return "leadingDetachedComments: string[] expected"; + } + return null; + }; + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo.Location} Location + */ + Location.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) + return object; + var message = new $root.google.protobuf.SourceCodeInfo.Location(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.span) { + if (!Array.isArray(object.span)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); + message.span = []; + for (var i = 0; i < object.span.length; ++i) + message.span[i] = object.span[i] | 0; + } + if (object.leadingComments != null) + message.leadingComments = String(object.leadingComments); + if (object.trailingComments != null) + message.trailingComments = String(object.trailingComments); + if (object.leadingDetachedComments) { + if (!Array.isArray(object.leadingDetachedComments)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); + message.leadingDetachedComments = []; + for (var i = 0; i < object.leadingDetachedComments.length; ++i) + message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); + } + return message; + }; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.Location} message Location + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Location.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.path = []; + object.span = []; + object.leadingDetachedComments = []; + } + if (options.defaults) { + object.leadingComments = ""; + object.trailingComments = ""; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.span && message.span.length) { + object.span = []; + for (var j = 0; j < message.span.length; ++j) + object.span[j] = message.span[j]; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + object.leadingComments = message.leadingComments; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + object.trailingComments = message.trailingComments; + if (message.leadingDetachedComments && message.leadingDetachedComments.length) { + object.leadingDetachedComments = []; + for (var j = 0; j < message.leadingDetachedComments.length; ++j) + object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; + } + return object; + }; + + /** + * Converts this Location to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + * @returns {Object.} JSON object + */ + Location.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Location + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo.Location"; + }; + + return Location; + })(); + + return SourceCodeInfo; + })(); + + protobuf.GeneratedCodeInfo = (function() { + + /** + * Properties of a GeneratedCodeInfo. + * @memberof google.protobuf + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + */ + + /** + * Constructs a new GeneratedCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo + * @constructor + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + */ + function GeneratedCodeInfo(properties) { + this.annotation = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + */ + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance + */ + GeneratedCodeInfo.create = function create(properties) { + return new GeneratedCodeInfo(properties); + }; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotation != null && message.annotation.length) + for (var i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GeneratedCodeInfo message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GeneratedCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotation != null && message.hasOwnProperty("annotation")) { + if (!Array.isArray(message.annotation)) + return "annotation: array expected"; + for (var i = 0; i < message.annotation.length; ++i) { + var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (error) + return "annotation." + error; + } + } + return null; + }; + + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + */ + GeneratedCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo(); + if (object.annotation) { + if (!Array.isArray(object.annotation)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); + message.annotation = []; + for (var i = 0; i < object.annotation.length; ++i) { + if (typeof object.annotation[i] !== "object") + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); + message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GeneratedCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.annotation = []; + if (message.annotation && message.annotation.length) { + object.annotation = []; + for (var j = 0; j < message.annotation.length; ++j) + object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); + } + return object; + }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + * @returns {Object.} JSON object + */ + GeneratedCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GeneratedCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GeneratedCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo"; + }; + + GeneratedCodeInfo.Annotation = (function() { + + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [sourceFile] Annotation sourceFile + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + * @property {google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null} [semantic] Annotation semantic + */ + + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; + + /** + * Annotation sourceFile. + * @member {string} sourceFile + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.sourceFile = ""; + + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; + + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; + + /** + * Annotation semantic. + * @member {google.protobuf.GeneratedCodeInfo.Annotation.Semantic} semantic + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.semantic = 0; + + /** + * Creates a new Annotation instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + */ + Annotation.create = function create(properties) { + return new Annotation(properties); + }; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + if (message.semantic != null && Object.hasOwnProperty.call(message, "semantic")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.semantic); + return writer; + }; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + } + case 2: { + message.sourceFile = reader.string(); + break; + } + case 3: { + message.begin = reader.int32(); + break; + } + case 4: { + message.end = reader.int32(); + break; + } + case 5: { + message.semantic = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Annotation message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (!$util.isString(message.sourceFile)) + return "sourceFile: string expected"; + if (message.begin != null && message.hasOwnProperty("begin")) + if (!$util.isInteger(message.begin)) + return "begin: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.semantic != null && message.hasOwnProperty("semantic")) + switch (message.semantic) { + default: + return "semantic: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + */ + Annotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.sourceFile != null) + message.sourceFile = String(object.sourceFile); + if (object.begin != null) + message.begin = object.begin | 0; + if (object.end != null) + message.end = object.end | 0; + switch (object.semantic) { + default: + if (typeof object.semantic === "number") { + message.semantic = object.semantic; + break; + } + break; + case "NONE": + case 0: + message.semantic = 0; + break; + case "SET": + case 1: + message.semantic = 1; + break; + case "ALIAS": + case 2: + message.semantic = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Annotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.path = []; + if (options.defaults) { + object.sourceFile = ""; + object.begin = 0; + object.end = 0; + object.semantic = options.enums === String ? "NONE" : 0; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + object.sourceFile = message.sourceFile; + if (message.begin != null && message.hasOwnProperty("begin")) + object.begin = message.begin; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.semantic != null && message.hasOwnProperty("semantic")) + object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] === undefined ? message.semantic : $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; + return object; + }; + + /** + * Converts this Annotation to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + * @returns {Object.} JSON object + */ + Annotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Annotation + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Annotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo.Annotation"; + }; + + /** + * Semantic enum. + * @name google.protobuf.GeneratedCodeInfo.Annotation.Semantic + * @enum {number} + * @property {number} NONE=0 NONE value + * @property {number} SET=1 SET value + * @property {number} ALIAS=2 ALIAS value + */ + Annotation.Semantic = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "SET"] = 1; + values[valuesById[2] = "ALIAS"] = 2; + return values; + })(); + + return Annotation; + })(); + + return GeneratedCodeInfo; + })(); + + protobuf.Duration = (function() { + + /** + * Properties of a Duration. + * @memberof google.protobuf + * @interface IDuration + * @property {number|Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos + */ + + /** + * Constructs a new Duration. + * @memberof google.protobuf + * @classdesc Represents a Duration. + * @implements IDuration + * @constructor + * @param {google.protobuf.IDuration=} [properties] Properties to set + */ + function Duration(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Duration seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.nanos = 0; + + /** + * Creates a new Duration instance using the specified properties. + * @function create + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration=} [properties] Properties to set + * @returns {google.protobuf.Duration} Duration instance + */ + Duration.create = function create(properties) { + return new Duration(properties); + }; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.seconds = reader.int64(); + break; + } + case 2: { + message.nanos = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Duration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Duration message. + * @function verify + * @memberof google.protobuf.Duration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Duration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + /** + * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Duration + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Duration} Duration + */ + Duration.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Duration) + return object; + var message = new $root.google.protobuf.Duration(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; + + /** + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.Duration} message Duration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Duration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; + + /** + * Converts this Duration to JSON. + * @function toJSON + * @memberof google.protobuf.Duration + * @instance + * @returns {Object.} JSON object + */ + Duration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Duration + * @function getTypeUrl + * @memberof google.protobuf.Duration + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Duration"; + }; + + return Duration; + })(); + + protobuf.Timestamp = (function() { + + /** + * Properties of a Timestamp. + * @memberof google.protobuf + * @interface ITimestamp + * @property {number|Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos + */ + + /** + * Constructs a new Timestamp. + * @memberof google.protobuf + * @classdesc Represents a Timestamp. + * @implements ITimestamp + * @constructor + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + */ + function Timestamp(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Timestamp seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.nanos = 0; + + /** + * Creates a new Timestamp instance using the specified properties. + * @function create + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @returns {google.protobuf.Timestamp} Timestamp instance + */ + Timestamp.create = function create(properties) { + return new Timestamp(properties); + }; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.seconds = reader.int64(); + break; + } + case 2: { + message.nanos = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Timestamp message. + * @function verify + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Timestamp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + /** + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Timestamp} Timestamp + */ + Timestamp.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Timestamp) + return object; + var message = new $root.google.protobuf.Timestamp(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; + + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.Timestamp} message Timestamp + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Timestamp.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; + + /** + * Converts this Timestamp to JSON. + * @function toJSON + * @memberof google.protobuf.Timestamp + * @instance + * @returns {Object.} JSON object + */ + Timestamp.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Timestamp + * @function getTypeUrl + * @memberof google.protobuf.Timestamp + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Timestamp"; + }; + + return Timestamp; + })(); + + return protobuf; + })(); + + return google; + })(); + + return $root; +}); + + +/***/ }), + +/***/ 58815: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"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 +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by synthtool. ** +// ** https://github.com/googleapis/synthtool ** +// ** All changes to this file may be overwritten. ** +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.protos = exports.IAMCredentialsClient = exports.v1 = void 0; +const v1 = __nccwpck_require__(22060); +exports.v1 = v1; +const IAMCredentialsClient = v1.IAMCredentialsClient; +exports.IAMCredentialsClient = IAMCredentialsClient; +exports["default"] = { v1, IAMCredentialsClient }; +const protos = __nccwpck_require__(62886); +exports.protos = protos; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 8038: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"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 +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IAMCredentialsClient = void 0; +const jsonProtos = __nccwpck_require__(41530); +/** + * Client JSON configuration object, loaded from + * `src/v1/i_a_m_credentials_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +const gapicConfig = __nccwpck_require__(10289); +const version = (__nccwpck_require__(73486)/* .version */ .rE); +/** + * A service account is a special type of Google account that belongs to your + * application or a virtual machine (VM), instead of to an individual end user. + * Your application assumes the identity of the service account to call Google + * APIs, so that the users aren't directly involved. + * + * Service account credentials are used to temporarily assume the identity + * of the service account. Supported credential types include OAuth 2.0 access + * tokens, OpenID Connect ID tokens, self-signed JSON Web Tokens (JWTs), and + * more. + * @class + * @memberof v1 + */ +class IAMCredentialsClient { + /** + * Construct an instance of IAMCredentialsClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new IAMCredentialsClient({fallback: true}, gax); + * ``` + */ + constructor(opts, gaxInstance) { + var _a, _b, _c, _d, _e; + this._terminated = false; + this.descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + // Ensure that options include all the required fields. + const staticMembers = this.constructor; + if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) && + (opts === null || opts === void 0 ? void 0 : opts.universeDomain) && + (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) { + 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; + this._universeDomain = + (_c = (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com'; + this._servicePath = 'iamcredentials.' + this._universeDomain; + const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath; + this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint)); + const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port; + const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {}; + const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function'); + opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts); + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== this._servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = __nccwpck_require__(83232); + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + // Save options to use in initialize() method. + this._opts = opts; + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth; + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = this._servicePath; + // Set the default scopes in auth client if needed. + if (servicePath === this._servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process === 'object' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } + else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } + else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings('google.iam.credentials.v1.IAMCredentials', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') }); + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.iAMCredentialsStub) { + return this.iAMCredentialsStub; + } + // Put together the "service stub" for + // google.iam.credentials.v1.IAMCredentials. + this.iAMCredentialsStub = this._gaxGrpc.createStub(this._opts.fallback + ? this._protos.lookupService('google.iam.credentials.v1.IAMCredentials') + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + this._protos.google.iam.credentials.v1.IAMCredentials, this._opts, this._providedCustomServicePath); + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const iAMCredentialsStubMethods = [ + 'generateAccessToken', + 'generateIdToken', + 'signBlob', + 'signJwt', + ]; + for (const methodName of iAMCredentialsStubMethods) { + const callPromise = this.iAMCredentialsStub.then(stub => (...args) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, (err) => () => { + throw err; + }); + const descriptor = undefined; + const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback); + this.innerApiCalls[methodName] = apiCall; + } + return this.iAMCredentialsStub; + } + /** + * The DNS address for this API service. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + if (typeof process === 'object' && + typeof process.emitWarning === 'function') { + process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'iamcredentials.googleapis.com'; + } + /** + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + if (typeof process === 'object' && + typeof process.emitWarning === 'function') { + process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); + } + return 'iamcredentials.googleapis.com'; + } + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + get universeDomain() { + return this._universeDomain; + } + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return ['https://www.googleapis.com/auth/cloud-platform']; + } + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId(callback) { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + generateAccessToken(request, optionsOrCallback, callback) { + var _a; + request = request || {}; + let options; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: (_a = request.name) !== null && _a !== void 0 ? _a : '', + }); + this.initialize(); + return this.innerApiCalls.generateAccessToken(request, options, callback); + } + generateIdToken(request, optionsOrCallback, callback) { + var _a; + request = request || {}; + let options; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: (_a = request.name) !== null && _a !== void 0 ? _a : '', + }); + this.initialize(); + return this.innerApiCalls.generateIdToken(request, options, callback); + } + signBlob(request, optionsOrCallback, callback) { + var _a; + request = request || {}; + let options; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: (_a = request.name) !== null && _a !== void 0 ? _a : '', + }); + this.initialize(); + return this.innerApiCalls.signBlob(request, options, callback); + } + signJwt(request, optionsOrCallback, callback) { + var _a; + request = request || {}; + let options; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } + else { + options = optionsOrCallback; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: (_a = request.name) !== null && _a !== void 0 ? _a : '', + }); + this.initialize(); + return this.innerApiCalls.signJwt(request, options, callback); + } + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close() { + if (this.iAMCredentialsStub && !this._terminated) { + return this.iAMCredentialsStub.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} +exports.IAMCredentialsClient = IAMCredentialsClient; +//# sourceMappingURL=i_a_m_credentials_client.js.map + +/***/ }), + +/***/ 22060: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"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 +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IAMCredentialsClient = void 0; +var i_a_m_credentials_client_1 = __nccwpck_require__(8038); +Object.defineProperty(exports, "IAMCredentialsClient", ({ enumerable: true, get: function () { return i_a_m_credentials_client_1.IAMCredentialsClient; } })); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 52914: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2021 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.registerAdminService = registerAdminService; +exports.addAdminServicesToServer = addAdminServicesToServer; +const registeredAdminServices = []; +function registerAdminService(getServiceDefinition, getHandlers) { + registeredAdminServices.push({ getServiceDefinition, getHandlers }); +} +function addAdminServicesToServer(server) { + for (const { getServiceDefinition, getHandlers } of registeredAdminServices) { + server.addService(getServiceDefinition(), getHandlers()); + } +} +//# sourceMappingURL=admin.js.map + +/***/ }), + +/***/ 14643: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BackoffTimeout = void 0; +const constants_1 = __nccwpck_require__(68288); +const logging = __nccwpck_require__(8536); +const TRACER_NAME = 'backoff'; +const INITIAL_BACKOFF_MS = 1000; +const BACKOFF_MULTIPLIER = 1.6; +const MAX_BACKOFF_MS = 120000; +const BACKOFF_JITTER = 0.2; +/** + * Get a number uniformly at random in the range [min, max) + * @param min + * @param max + */ +function uniformRandom(min, max) { + return Math.random() * (max - min) + min; +} +class BackoffTimeout { + constructor(callback, options) { + this.callback = callback; + /** + * The delay time at the start, and after each reset. + */ + this.initialDelay = INITIAL_BACKOFF_MS; + /** + * The exponential backoff multiplier. + */ + this.multiplier = BACKOFF_MULTIPLIER; + /** + * The maximum delay time + */ + this.maxDelay = MAX_BACKOFF_MS; + /** + * The maximum fraction by which the delay time can randomly vary after + * applying the multiplier. + */ + this.jitter = BACKOFF_JITTER; + /** + * Indicates whether the timer is currently running. + */ + this.running = false; + /** + * Indicates whether the timer should keep the Node process running if no + * other async operation is doing so. + */ + this.hasRef = true; + /** + * The time that the currently running timer was started. Only valid if + * running is true. + */ + this.startTime = new Date(); + /** + * The approximate time that the currently running timer will end. Only valid + * if running is true. + */ + this.endTime = new Date(); + this.id = BackoffTimeout.getNextId(); + if (options) { + if (options.initialDelay) { + this.initialDelay = options.initialDelay; + } + if (options.multiplier) { + this.multiplier = options.multiplier; + } + if (options.jitter) { + this.jitter = options.jitter; + } + if (options.maxDelay) { + this.maxDelay = options.maxDelay; + } + } + this.trace('constructed initialDelay=' + this.initialDelay + ' multiplier=' + this.multiplier + ' jitter=' + this.jitter + ' maxDelay=' + this.maxDelay); + this.nextDelay = this.initialDelay; + this.timerId = setTimeout(() => { }, 0); + clearTimeout(this.timerId); + } + static getNextId() { + return this.nextId++; + } + trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '{' + this.id + '} ' + text); + } + runTimer(delay) { + var _a, _b; + this.trace('runTimer(delay=' + delay + ')'); + this.endTime = this.startTime; + this.endTime.setMilliseconds(this.endTime.getMilliseconds() + delay); + clearTimeout(this.timerId); + this.timerId = setTimeout(() => { + this.trace('timer fired'); + this.running = false; + this.callback(); + }, delay); + if (!this.hasRef) { + (_b = (_a = this.timerId).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + } + } + /** + * Call the callback after the current amount of delay time + */ + runOnce() { + this.trace('runOnce()'); + this.running = true; + this.startTime = new Date(); + this.runTimer(this.nextDelay); + const nextBackoff = Math.min(this.nextDelay * this.multiplier, this.maxDelay); + const jitterMagnitude = nextBackoff * this.jitter; + this.nextDelay = + nextBackoff + uniformRandom(-jitterMagnitude, jitterMagnitude); + } + /** + * Stop the timer. The callback will not be called until `runOnce` is called + * again. + */ + stop() { + this.trace('stop()'); + clearTimeout(this.timerId); + this.running = false; + } + /** + * Reset the delay time to its initial value. If the timer is still running, + * retroactively apply that reset to the current timer. + */ + reset() { + this.trace('reset() running=' + this.running); + this.nextDelay = this.initialDelay; + if (this.running) { + const now = new Date(); + const newEndTime = this.startTime; + newEndTime.setMilliseconds(newEndTime.getMilliseconds() + this.nextDelay); + clearTimeout(this.timerId); + if (now < newEndTime) { + this.runTimer(newEndTime.getTime() - now.getTime()); + } + else { + this.running = false; + } + } + } + /** + * Check whether the timer is currently running. + */ + isRunning() { + return this.running; + } + /** + * Set that while the timer is running, it should keep the Node process + * running. + */ + ref() { + var _a, _b; + this.hasRef = true; + (_b = (_a = this.timerId).ref) === null || _b === void 0 ? void 0 : _b.call(_a); + } + /** + * Set that while the timer is running, it should not keep the Node process + * running. + */ + unref() { + var _a, _b; + this.hasRef = false; + (_b = (_a = this.timerId).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + } + /** + * Get the approximate timestamp of when the timer will fire. Only valid if + * this.isRunning() is true. + */ + getEndTime() { + return this.endTime; + } +} +exports.BackoffTimeout = BackoffTimeout; +BackoffTimeout.nextId = 0; +//# sourceMappingURL=backoff-timeout.js.map + +/***/ }), + +/***/ 73161: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CallCredentials = void 0; +const metadata_1 = __nccwpck_require__(36100); +function isCurrentOauth2Client(client) { + return ('getRequestHeaders' in client && + typeof client.getRequestHeaders === 'function'); +} +/** + * A class that represents a generic method of adding authentication-related + * metadata on a per-request basis. + */ +class CallCredentials { + /** + * Creates a new CallCredentials object from a given function that generates + * Metadata objects. + * @param metadataGenerator A function that accepts a set of options, and + * generates a Metadata object based on these options, which is passed back + * to the caller via a supplied (err, metadata) callback. + */ + static createFromMetadataGenerator(metadataGenerator) { + return new SingleCallCredentials(metadataGenerator); + } + /** + * Create a gRPC credential from a Google credential object. + * @param googleCredentials The authentication client to use. + * @return The resulting CallCredentials object. + */ + static createFromGoogleCredential(googleCredentials) { + return CallCredentials.createFromMetadataGenerator((options, callback) => { + let getHeaders; + if (isCurrentOauth2Client(googleCredentials)) { + getHeaders = googleCredentials.getRequestHeaders(options.service_url); + } + else { + getHeaders = new Promise((resolve, reject) => { + googleCredentials.getRequestMetadata(options.service_url, (err, headers) => { + if (err) { + reject(err); + return; + } + if (!headers) { + reject(new Error('Headers not set by metadata plugin')); + return; + } + resolve(headers); + }); + }); + } + getHeaders.then(headers => { + const metadata = new metadata_1.Metadata(); + for (const key of Object.keys(headers)) { + metadata.add(key, headers[key]); + } + callback(null, metadata); + }, err => { + callback(err); + }); + }); + } + static createEmpty() { + return new EmptyCallCredentials(); + } +} +exports.CallCredentials = CallCredentials; +class ComposedCallCredentials extends CallCredentials { + constructor(creds) { + super(); + this.creds = creds; + } + async generateMetadata(options) { + const base = new metadata_1.Metadata(); + const generated = await Promise.all(this.creds.map(cred => cred.generateMetadata(options))); + for (const gen of generated) { + base.merge(gen); + } + return base; + } + compose(other) { + return new ComposedCallCredentials(this.creds.concat([other])); + } + _equals(other) { + if (this === other) { + return true; + } + if (other instanceof ComposedCallCredentials) { + return this.creds.every((value, index) => value._equals(other.creds[index])); + } + else { + return false; + } + } +} +class SingleCallCredentials extends CallCredentials { + constructor(metadataGenerator) { + super(); + this.metadataGenerator = metadataGenerator; + } + generateMetadata(options) { + return new Promise((resolve, reject) => { + this.metadataGenerator(options, (err, metadata) => { + if (metadata !== undefined) { + resolve(metadata); + } + else { + reject(err); + } + }); + }); + } + compose(other) { + return new ComposedCallCredentials([this, other]); + } + _equals(other) { + if (this === other) { + return true; + } + if (other instanceof SingleCallCredentials) { + return this.metadataGenerator === other.metadataGenerator; + } + else { + return false; + } + } +} +class EmptyCallCredentials extends CallCredentials { + generateMetadata(options) { + return Promise.resolve(new metadata_1.Metadata()); + } + compose(other) { + return other; + } + _equals(other) { + return other instanceof EmptyCallCredentials; + } +} +//# sourceMappingURL=call-credentials.js.map + +/***/ }), + +/***/ 61803: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.InterceptingListenerImpl = void 0; +exports.statusOrFromValue = statusOrFromValue; +exports.statusOrFromError = statusOrFromError; +exports.isInterceptingListener = isInterceptingListener; +const metadata_1 = __nccwpck_require__(36100); +function statusOrFromValue(value) { + return { + ok: true, + value: value + }; +} +function statusOrFromError(error) { + var _a; + return { + ok: false, + error: Object.assign(Object.assign({}, error), { metadata: (_a = error.metadata) !== null && _a !== void 0 ? _a : new metadata_1.Metadata() }) + }; +} +function isInterceptingListener(listener) { + return (listener.onReceiveMetadata !== undefined && + listener.onReceiveMetadata.length === 1); +} +class InterceptingListenerImpl { + constructor(listener, nextListener) { + this.listener = listener; + this.nextListener = nextListener; + this.processingMetadata = false; + this.hasPendingMessage = false; + this.processingMessage = false; + this.pendingStatus = null; + } + processPendingMessage() { + if (this.hasPendingMessage) { + this.nextListener.onReceiveMessage(this.pendingMessage); + this.pendingMessage = null; + this.hasPendingMessage = false; + } + } + processPendingStatus() { + if (this.pendingStatus) { + this.nextListener.onReceiveStatus(this.pendingStatus); + } + } + onReceiveMetadata(metadata) { + this.processingMetadata = true; + this.listener.onReceiveMetadata(metadata, metadata => { + this.processingMetadata = false; + this.nextListener.onReceiveMetadata(metadata); + this.processPendingMessage(); + this.processPendingStatus(); + }); + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + onReceiveMessage(message) { + /* If this listener processes messages asynchronously, the last message may + * be reordered with respect to the status */ + this.processingMessage = true; + this.listener.onReceiveMessage(message, msg => { + this.processingMessage = false; + if (this.processingMetadata) { + this.pendingMessage = msg; + this.hasPendingMessage = true; + } + else { + this.nextListener.onReceiveMessage(msg); + this.processPendingStatus(); + } + }); + } + onReceiveStatus(status) { + this.listener.onReceiveStatus(status, processedStatus => { + if (this.processingMetadata || this.processingMessage) { + this.pendingStatus = processedStatus; + } + else { + this.nextListener.onReceiveStatus(processedStatus); + } + }); + } +} +exports.InterceptingListenerImpl = InterceptingListenerImpl; +//# sourceMappingURL=call-interface.js.map + +/***/ }), + +/***/ 35675: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getNextCallNumber = getNextCallNumber; +let nextCallNumber = 0; +function getNextCallNumber() { + return nextCallNumber++; +} +//# sourceMappingURL=call-number.js.map + +/***/ }), + +/***/ 91161: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ClientDuplexStreamImpl = exports.ClientWritableStreamImpl = exports.ClientReadableStreamImpl = exports.ClientUnaryCallImpl = void 0; +exports.callErrorFromStatus = callErrorFromStatus; +const events_1 = __nccwpck_require__(24434); +const stream_1 = __nccwpck_require__(2203); +const constants_1 = __nccwpck_require__(68288); +/** + * Construct a ServiceError from a StatusObject. This function exists primarily + * as an attempt to make the error stack trace clearly communicate that the + * error is not necessarily a problem in gRPC itself. + * @param status + */ +function callErrorFromStatus(status, callerStack) { + const message = `${status.code} ${constants_1.Status[status.code]}: ${status.details}`; + const error = new Error(message); + const stack = `${error.stack}\nfor call at\n${callerStack}`; + return Object.assign(new Error(message), status, { stack }); +} +class ClientUnaryCallImpl extends events_1.EventEmitter { + constructor() { + super(); + } + cancel() { + var _a; + (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client'); + } + getPeer() { + var _a, _b; + return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown'; + } + getAuthContext() { + var _a, _b; + return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getAuthContext()) !== null && _b !== void 0 ? _b : null; + } +} +exports.ClientUnaryCallImpl = ClientUnaryCallImpl; +class ClientReadableStreamImpl extends stream_1.Readable { + constructor(deserialize) { + super({ objectMode: true }); + this.deserialize = deserialize; + } + cancel() { + var _a; + (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client'); + } + getPeer() { + var _a, _b; + return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown'; + } + getAuthContext() { + var _a, _b; + return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getAuthContext()) !== null && _b !== void 0 ? _b : null; + } + _read(_size) { + var _a; + (_a = this.call) === null || _a === void 0 ? void 0 : _a.startRead(); + } +} +exports.ClientReadableStreamImpl = ClientReadableStreamImpl; +class ClientWritableStreamImpl extends stream_1.Writable { + constructor(serialize) { + super({ objectMode: true }); + this.serialize = serialize; + } + cancel() { + var _a; + (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client'); + } + getPeer() { + var _a, _b; + return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown'; + } + getAuthContext() { + var _a, _b; + return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getAuthContext()) !== null && _b !== void 0 ? _b : null; + } + _write(chunk, encoding, cb) { + var _a; + const context = { + callback: cb, + }; + const flags = Number(encoding); + if (!Number.isNaN(flags)) { + context.flags = flags; + } + (_a = this.call) === null || _a === void 0 ? void 0 : _a.sendMessageWithContext(context, chunk); + } + _final(cb) { + var _a; + (_a = this.call) === null || _a === void 0 ? void 0 : _a.halfClose(); + cb(); + } +} +exports.ClientWritableStreamImpl = ClientWritableStreamImpl; +class ClientDuplexStreamImpl extends stream_1.Duplex { + constructor(serialize, deserialize) { + super({ objectMode: true }); + this.serialize = serialize; + this.deserialize = deserialize; + } + cancel() { + var _a; + (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client'); + } + getPeer() { + var _a, _b; + return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown'; + } + getAuthContext() { + var _a, _b; + return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getAuthContext()) !== null && _b !== void 0 ? _b : null; + } + _read(_size) { + var _a; + (_a = this.call) === null || _a === void 0 ? void 0 : _a.startRead(); + } + _write(chunk, encoding, cb) { + var _a; + const context = { + callback: cb, + }; + const flags = Number(encoding); + if (!Number.isNaN(flags)) { + context.flags = flags; + } + (_a = this.call) === null || _a === void 0 ? void 0 : _a.sendMessageWithContext(context, chunk); + } + _final(cb) { + var _a; + (_a = this.call) === null || _a === void 0 ? void 0 : _a.halfClose(); + cb(); + } +} +exports.ClientDuplexStreamImpl = ClientDuplexStreamImpl; +//# sourceMappingURL=call.js.map + +/***/ }), + +/***/ 27974: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FileWatcherCertificateProvider = void 0; +const fs = __nccwpck_require__(79896); +const logging = __nccwpck_require__(8536); +const constants_1 = __nccwpck_require__(68288); +const util_1 = __nccwpck_require__(39023); +const TRACER_NAME = 'certificate_provider'; +function trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); +} +const readFilePromise = (0, util_1.promisify)(fs.readFile); +class FileWatcherCertificateProvider { + constructor(config) { + this.config = config; + this.refreshTimer = null; + this.fileResultPromise = null; + this.latestCaUpdate = undefined; + this.caListeners = new Set(); + this.latestIdentityUpdate = undefined; + this.identityListeners = new Set(); + this.lastUpdateTime = null; + if ((config.certificateFile === undefined) !== (config.privateKeyFile === undefined)) { + throw new Error('certificateFile and privateKeyFile must be set or unset together'); + } + if (config.certificateFile === undefined && config.caCertificateFile === undefined) { + throw new Error('At least one of certificateFile and caCertificateFile must be set'); + } + trace('File watcher constructed with config ' + JSON.stringify(config)); + } + updateCertificates() { + if (this.fileResultPromise) { + return; + } + this.fileResultPromise = Promise.allSettled([ + this.config.certificateFile ? readFilePromise(this.config.certificateFile) : Promise.reject(), + this.config.privateKeyFile ? readFilePromise(this.config.privateKeyFile) : Promise.reject(), + this.config.caCertificateFile ? readFilePromise(this.config.caCertificateFile) : Promise.reject() + ]); + this.fileResultPromise.then(([certificateResult, privateKeyResult, caCertificateResult]) => { + if (!this.refreshTimer) { + return; + } + trace('File watcher read certificates certificate ' + certificateResult.status + ', privateKey ' + privateKeyResult.status + ', CA certificate ' + caCertificateResult.status); + this.lastUpdateTime = new Date(); + this.fileResultPromise = null; + if (certificateResult.status === 'fulfilled' && privateKeyResult.status === 'fulfilled') { + this.latestIdentityUpdate = { + certificate: certificateResult.value, + privateKey: privateKeyResult.value + }; + } + else { + this.latestIdentityUpdate = null; + } + if (caCertificateResult.status === 'fulfilled') { + this.latestCaUpdate = { + caCertificate: caCertificateResult.value + }; + } + else { + this.latestCaUpdate = null; + } + for (const listener of this.identityListeners) { + listener(this.latestIdentityUpdate); + } + for (const listener of this.caListeners) { + listener(this.latestCaUpdate); + } + }); + trace('File watcher initiated certificate update'); + } + maybeStartWatchingFiles() { + if (!this.refreshTimer) { + /* Perform the first read immediately, but only if there was not already + * a recent read, to avoid reading from the filesystem significantly more + * frequently than configured if the provider quickly switches between + * used and unused. */ + const timeSinceLastUpdate = this.lastUpdateTime ? (new Date()).getTime() - this.lastUpdateTime.getTime() : Infinity; + if (timeSinceLastUpdate > this.config.refreshIntervalMs) { + this.updateCertificates(); + } + if (timeSinceLastUpdate > this.config.refreshIntervalMs * 2) { + // Clear out old updates if they are definitely stale + this.latestCaUpdate = undefined; + this.latestIdentityUpdate = undefined; + } + this.refreshTimer = setInterval(() => this.updateCertificates(), this.config.refreshIntervalMs); + trace('File watcher started watching'); + } + } + maybeStopWatchingFiles() { + if (this.caListeners.size === 0 && this.identityListeners.size === 0) { + this.fileResultPromise = null; + if (this.refreshTimer) { + clearInterval(this.refreshTimer); + this.refreshTimer = null; + } + } + } + addCaCertificateListener(listener) { + this.caListeners.add(listener); + this.maybeStartWatchingFiles(); + if (this.latestCaUpdate !== undefined) { + process.nextTick(listener, this.latestCaUpdate); + } + } + removeCaCertificateListener(listener) { + this.caListeners.delete(listener); + this.maybeStopWatchingFiles(); + } + addIdentityCertificateListener(listener) { + this.identityListeners.add(listener); + this.maybeStartWatchingFiles(); + if (this.latestIdentityUpdate !== undefined) { + process.nextTick(listener, this.latestIdentityUpdate); + } + } + removeIdentityCertificateListener(listener) { + this.identityListeners.delete(listener); + this.maybeStopWatchingFiles(); + } +} +exports.FileWatcherCertificateProvider = FileWatcherCertificateProvider; +//# sourceMappingURL=certificate-provider.js.map + +/***/ }), + +/***/ 32257: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ChannelCredentials = void 0; +exports.createCertificateProviderChannelCredentials = createCertificateProviderChannelCredentials; +const tls_1 = __nccwpck_require__(64756); +const call_credentials_1 = __nccwpck_require__(73161); +const tls_helpers_1 = __nccwpck_require__(68876); +const uri_parser_1 = __nccwpck_require__(56027); +const resolver_1 = __nccwpck_require__(76255); +const logging_1 = __nccwpck_require__(8536); +const constants_1 = __nccwpck_require__(68288); +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function verifyIsBufferOrNull(obj, friendlyName) { + if (obj && !(obj instanceof Buffer)) { + throw new TypeError(`${friendlyName}, if provided, must be a Buffer.`); + } +} +/** + * A class that contains credentials for communicating over a channel, as well + * as a set of per-call credentials, which are applied to every method call made + * over a channel initialized with an instance of this class. + */ +class ChannelCredentials { + /** + * Returns a copy of this object with the included set of per-call credentials + * expanded to include callCredentials. + * @param callCredentials A CallCredentials object to associate with this + * instance. + */ + compose(callCredentials) { + return new ComposedChannelCredentialsImpl(this, callCredentials); + } + /** + * Return a new ChannelCredentials instance with a given set of credentials. + * The resulting instance can be used to construct a Channel that communicates + * over TLS. + * @param rootCerts The root certificate data. + * @param privateKey The client certificate private key, if available. + * @param certChain The client certificate key chain, if available. + * @param verifyOptions Additional options to modify certificate verification + */ + static createSsl(rootCerts, privateKey, certChain, verifyOptions) { + var _a; + verifyIsBufferOrNull(rootCerts, 'Root certificate'); + verifyIsBufferOrNull(privateKey, 'Private key'); + verifyIsBufferOrNull(certChain, 'Certificate chain'); + if (privateKey && !certChain) { + throw new Error('Private key must be given with accompanying certificate chain'); + } + if (!privateKey && certChain) { + throw new Error('Certificate chain must be given with accompanying private key'); + } + const secureContext = (0, tls_1.createSecureContext)({ + ca: (_a = rootCerts !== null && rootCerts !== void 0 ? rootCerts : (0, tls_helpers_1.getDefaultRootsData)()) !== null && _a !== void 0 ? _a : undefined, + key: privateKey !== null && privateKey !== void 0 ? privateKey : undefined, + cert: certChain !== null && certChain !== void 0 ? certChain : undefined, + ciphers: tls_helpers_1.CIPHER_SUITES, + }); + return new SecureChannelCredentialsImpl(secureContext, verifyOptions !== null && verifyOptions !== void 0 ? verifyOptions : {}); + } + /** + * Return a new ChannelCredentials instance with credentials created using + * the provided secureContext. The resulting instances can be used to + * construct a Channel that communicates over TLS. gRPC will not override + * anything in the provided secureContext, so the environment variables + * GRPC_SSL_CIPHER_SUITES and GRPC_DEFAULT_SSL_ROOTS_FILE_PATH will + * not be applied. + * @param secureContext The return value of tls.createSecureContext() + * @param verifyOptions Additional options to modify certificate verification + */ + static createFromSecureContext(secureContext, verifyOptions) { + return new SecureChannelCredentialsImpl(secureContext, verifyOptions !== null && verifyOptions !== void 0 ? verifyOptions : {}); + } + /** + * Return a new ChannelCredentials instance with no credentials. + */ + static createInsecure() { + return new InsecureChannelCredentialsImpl(); + } +} +exports.ChannelCredentials = ChannelCredentials; +class InsecureChannelCredentialsImpl extends ChannelCredentials { + constructor() { + super(); + } + compose(callCredentials) { + throw new Error('Cannot compose insecure credentials'); + } + _isSecure() { + return false; + } + _equals(other) { + return other instanceof InsecureChannelCredentialsImpl; + } + _createSecureConnector(channelTarget, options, callCredentials) { + return { + connect(socket) { + return Promise.resolve({ + socket, + secure: false + }); + }, + waitForReady: () => { + return Promise.resolve(); + }, + getCallCredentials: () => { + return callCredentials !== null && callCredentials !== void 0 ? callCredentials : call_credentials_1.CallCredentials.createEmpty(); + }, + destroy() { } + }; + } +} +function getConnectionOptions(secureContext, verifyOptions, channelTarget, options) { + var _a, _b; + const connectionOptions = { + secureContext: secureContext + }; + let realTarget = channelTarget; + if ('grpc.http_connect_target' in options) { + const parsedTarget = (0, uri_parser_1.parseUri)(options['grpc.http_connect_target']); + if (parsedTarget) { + realTarget = parsedTarget; + } + } + const targetPath = (0, resolver_1.getDefaultAuthority)(realTarget); + const hostPort = (0, uri_parser_1.splitHostPort)(targetPath); + const remoteHost = (_a = hostPort === null || hostPort === void 0 ? void 0 : hostPort.host) !== null && _a !== void 0 ? _a : targetPath; + connectionOptions.host = remoteHost; + if (verifyOptions.checkServerIdentity) { + connectionOptions.checkServerIdentity = verifyOptions.checkServerIdentity; + } + if (verifyOptions.rejectUnauthorized !== undefined) { + connectionOptions.rejectUnauthorized = verifyOptions.rejectUnauthorized; + } + connectionOptions.ALPNProtocols = ['h2']; + if (options['grpc.ssl_target_name_override']) { + const sslTargetNameOverride = options['grpc.ssl_target_name_override']; + const originalCheckServerIdentity = (_b = connectionOptions.checkServerIdentity) !== null && _b !== void 0 ? _b : tls_1.checkServerIdentity; + connectionOptions.checkServerIdentity = (host, cert) => { + return originalCheckServerIdentity(sslTargetNameOverride, cert); + }; + connectionOptions.servername = sslTargetNameOverride; + } + else { + connectionOptions.servername = remoteHost; + } + if (options['grpc-node.tls_enable_trace']) { + connectionOptions.enableTrace = true; + } + return connectionOptions; +} +class SecureConnectorImpl { + constructor(connectionOptions, callCredentials) { + this.connectionOptions = connectionOptions; + this.callCredentials = callCredentials; + } + connect(socket) { + const tlsConnectOptions = Object.assign({ socket: socket }, this.connectionOptions); + return new Promise((resolve, reject) => { + const tlsSocket = (0, tls_1.connect)(tlsConnectOptions, () => { + var _a; + if (((_a = this.connectionOptions.rejectUnauthorized) !== null && _a !== void 0 ? _a : true) && !tlsSocket.authorized) { + reject(tlsSocket.authorizationError); + return; + } + resolve({ + socket: tlsSocket, + secure: true + }); + }); + tlsSocket.on('error', (error) => { + reject(error); + }); + }); + } + waitForReady() { + return Promise.resolve(); + } + getCallCredentials() { + return this.callCredentials; + } + destroy() { } +} +class SecureChannelCredentialsImpl extends ChannelCredentials { + constructor(secureContext, verifyOptions) { + super(); + this.secureContext = secureContext; + this.verifyOptions = verifyOptions; + } + _isSecure() { + return true; + } + _equals(other) { + if (this === other) { + return true; + } + if (other instanceof SecureChannelCredentialsImpl) { + return (this.secureContext === other.secureContext && + this.verifyOptions.checkServerIdentity === + other.verifyOptions.checkServerIdentity); + } + else { + return false; + } + } + _createSecureConnector(channelTarget, options, callCredentials) { + const connectionOptions = getConnectionOptions(this.secureContext, this.verifyOptions, channelTarget, options); + return new SecureConnectorImpl(connectionOptions, callCredentials !== null && callCredentials !== void 0 ? callCredentials : call_credentials_1.CallCredentials.createEmpty()); + } +} +class CertificateProviderChannelCredentialsImpl extends ChannelCredentials { + constructor(caCertificateProvider, identityCertificateProvider, verifyOptions) { + super(); + this.caCertificateProvider = caCertificateProvider; + this.identityCertificateProvider = identityCertificateProvider; + this.verifyOptions = verifyOptions; + this.refcount = 0; + /** + * `undefined` means that the certificates have not yet been loaded. `null` + * means that an attempt to load them has completed, and has failed. + */ + this.latestCaUpdate = undefined; + /** + * `undefined` means that the certificates have not yet been loaded. `null` + * means that an attempt to load them has completed, and has failed. + */ + this.latestIdentityUpdate = undefined; + this.caCertificateUpdateListener = this.handleCaCertificateUpdate.bind(this); + this.identityCertificateUpdateListener = this.handleIdentityCertitificateUpdate.bind(this); + this.secureContextWatchers = []; + } + _isSecure() { + return true; + } + _equals(other) { + var _a, _b; + if (this === other) { + return true; + } + if (other instanceof CertificateProviderChannelCredentialsImpl) { + return this.caCertificateProvider === other.caCertificateProvider && + this.identityCertificateProvider === other.identityCertificateProvider && + ((_a = this.verifyOptions) === null || _a === void 0 ? void 0 : _a.checkServerIdentity) === ((_b = other.verifyOptions) === null || _b === void 0 ? void 0 : _b.checkServerIdentity); + } + else { + return false; + } + } + ref() { + var _a; + if (this.refcount === 0) { + this.caCertificateProvider.addCaCertificateListener(this.caCertificateUpdateListener); + (_a = this.identityCertificateProvider) === null || _a === void 0 ? void 0 : _a.addIdentityCertificateListener(this.identityCertificateUpdateListener); + } + this.refcount += 1; + } + unref() { + var _a; + this.refcount -= 1; + if (this.refcount === 0) { + this.caCertificateProvider.removeCaCertificateListener(this.caCertificateUpdateListener); + (_a = this.identityCertificateProvider) === null || _a === void 0 ? void 0 : _a.removeIdentityCertificateListener(this.identityCertificateUpdateListener); + } + } + _createSecureConnector(channelTarget, options, callCredentials) { + this.ref(); + return new CertificateProviderChannelCredentialsImpl.SecureConnectorImpl(this, channelTarget, options, callCredentials !== null && callCredentials !== void 0 ? callCredentials : call_credentials_1.CallCredentials.createEmpty()); + } + maybeUpdateWatchers() { + if (this.hasReceivedUpdates()) { + for (const watcher of this.secureContextWatchers) { + watcher(this.getLatestSecureContext()); + } + this.secureContextWatchers = []; + } + } + handleCaCertificateUpdate(update) { + this.latestCaUpdate = update; + this.maybeUpdateWatchers(); + } + handleIdentityCertitificateUpdate(update) { + this.latestIdentityUpdate = update; + this.maybeUpdateWatchers(); + } + hasReceivedUpdates() { + if (this.latestCaUpdate === undefined) { + return false; + } + if (this.identityCertificateProvider && this.latestIdentityUpdate === undefined) { + return false; + } + return true; + } + getSecureContext() { + if (this.hasReceivedUpdates()) { + return Promise.resolve(this.getLatestSecureContext()); + } + else { + return new Promise(resolve => { + this.secureContextWatchers.push(resolve); + }); + } + } + getLatestSecureContext() { + var _a, _b; + if (!this.latestCaUpdate) { + return null; + } + if (this.identityCertificateProvider !== null && !this.latestIdentityUpdate) { + return null; + } + try { + return (0, tls_1.createSecureContext)({ + ca: this.latestCaUpdate.caCertificate, + key: (_a = this.latestIdentityUpdate) === null || _a === void 0 ? void 0 : _a.privateKey, + cert: (_b = this.latestIdentityUpdate) === null || _b === void 0 ? void 0 : _b.certificate, + ciphers: tls_helpers_1.CIPHER_SUITES + }); + } + catch (e) { + (0, logging_1.log)(constants_1.LogVerbosity.ERROR, 'Failed to createSecureContext with error ' + e.message); + return null; + } + } +} +CertificateProviderChannelCredentialsImpl.SecureConnectorImpl = class { + constructor(parent, channelTarget, options, callCredentials) { + this.parent = parent; + this.channelTarget = channelTarget; + this.options = options; + this.callCredentials = callCredentials; + } + connect(socket) { + return new Promise((resolve, reject) => { + const secureContext = this.parent.getLatestSecureContext(); + if (!secureContext) { + reject(new Error('Failed to load credentials')); + return; + } + if (socket.closed) { + reject(new Error('Socket closed while loading credentials')); + } + const connnectionOptions = getConnectionOptions(secureContext, this.parent.verifyOptions, this.channelTarget, this.options); + const tlsConnectOptions = Object.assign({ socket: socket }, connnectionOptions); + const closeCallback = () => { + reject(new Error('Socket closed')); + }; + const errorCallback = (error) => { + reject(error); + }; + const tlsSocket = (0, tls_1.connect)(tlsConnectOptions, () => { + var _a; + tlsSocket.removeListener('close', closeCallback); + tlsSocket.removeListener('error', errorCallback); + if (((_a = this.parent.verifyOptions.rejectUnauthorized) !== null && _a !== void 0 ? _a : true) && !tlsSocket.authorized) { + reject(tlsSocket.authorizationError); + return; + } + resolve({ + socket: tlsSocket, + secure: true + }); + }); + tlsSocket.once('close', closeCallback); + tlsSocket.once('error', errorCallback); + }); + } + async waitForReady() { + await this.parent.getSecureContext(); + } + getCallCredentials() { + return this.callCredentials; + } + destroy() { + this.parent.unref(); + } +}; +function createCertificateProviderChannelCredentials(caCertificateProvider, identityCertificateProvider, verifyOptions) { + return new CertificateProviderChannelCredentialsImpl(caCertificateProvider, identityCertificateProvider, verifyOptions !== null && verifyOptions !== void 0 ? verifyOptions : {}); +} +class ComposedChannelCredentialsImpl extends ChannelCredentials { + constructor(channelCredentials, callCredentials) { + super(); + this.channelCredentials = channelCredentials; + this.callCredentials = callCredentials; + if (!channelCredentials._isSecure()) { + throw new Error('Cannot compose insecure credentials'); + } + } + compose(callCredentials) { + const combinedCallCredentials = this.callCredentials.compose(callCredentials); + return new ComposedChannelCredentialsImpl(this.channelCredentials, combinedCallCredentials); + } + _isSecure() { + return true; + } + _equals(other) { + if (this === other) { + return true; + } + if (other instanceof ComposedChannelCredentialsImpl) { + return (this.channelCredentials._equals(other.channelCredentials) && + this.callCredentials._equals(other.callCredentials)); + } + else { + return false; + } + } + _createSecureConnector(channelTarget, options, callCredentials) { + const combinedCallCredentials = this.callCredentials.compose(callCredentials !== null && callCredentials !== void 0 ? callCredentials : call_credentials_1.CallCredentials.createEmpty()); + return this.channelCredentials._createSecureConnector(channelTarget, options, combinedCallCredentials); + } +} +//# sourceMappingURL=channel-credentials.js.map + +/***/ }), + +/***/ 86793: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.recognizedOptions = void 0; +exports.channelOptionsEqual = channelOptionsEqual; +/** + * This is for checking provided options at runtime. This is an object for + * easier membership checking. + */ +exports.recognizedOptions = { + 'grpc.ssl_target_name_override': true, + 'grpc.primary_user_agent': true, + 'grpc.secondary_user_agent': true, + 'grpc.default_authority': true, + 'grpc.keepalive_time_ms': true, + 'grpc.keepalive_timeout_ms': true, + 'grpc.keepalive_permit_without_calls': true, + 'grpc.service_config': true, + 'grpc.max_concurrent_streams': true, + 'grpc.initial_reconnect_backoff_ms': true, + 'grpc.max_reconnect_backoff_ms': true, + 'grpc.use_local_subchannel_pool': true, + 'grpc.max_send_message_length': true, + 'grpc.max_receive_message_length': true, + 'grpc.enable_http_proxy': true, + 'grpc.enable_channelz': true, + 'grpc.dns_min_time_between_resolutions_ms': true, + 'grpc.enable_retries': true, + 'grpc.per_rpc_retry_buffer_size': true, + 'grpc.retry_buffer_size': true, + 'grpc.max_connection_age_ms': true, + 'grpc.max_connection_age_grace_ms': true, + 'grpc-node.max_session_memory': true, + 'grpc.service_config_disable_resolution': true, + 'grpc.client_idle_timeout_ms': true, + 'grpc-node.tls_enable_trace': true, + 'grpc.lb.ring_hash.ring_size_cap': true, + 'grpc-node.retry_max_attempts_limit': true, + 'grpc-node.flow_control_window': true, + 'grpc.server_call_metric_recording': true +}; +function channelOptionsEqual(options1, options2) { + const keys1 = Object.keys(options1).sort(); + const keys2 = Object.keys(options2).sort(); + if (keys1.length !== keys2.length) { + return false; + } + for (let i = 0; i < keys1.length; i += 1) { + if (keys1[i] !== keys2[i]) { + return false; + } + if (options1[keys1[i]] !== options2[keys2[i]]) { + return false; + } + } + return true; +} +//# sourceMappingURL=channel-options.js.map + +/***/ }), + +/***/ 86918: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ChannelImplementation = void 0; +const channel_credentials_1 = __nccwpck_require__(32257); +const internal_channel_1 = __nccwpck_require__(40114); +class ChannelImplementation { + constructor(target, credentials, options) { + if (typeof target !== 'string') { + throw new TypeError('Channel target must be a string'); + } + if (!(credentials instanceof channel_credentials_1.ChannelCredentials)) { + throw new TypeError('Channel credentials must be a ChannelCredentials object'); + } + if (options) { + if (typeof options !== 'object') { + throw new TypeError('Channel options must be an object'); + } + } + this.internalChannel = new internal_channel_1.InternalChannel(target, credentials, options); + } + close() { + this.internalChannel.close(); + } + getTarget() { + return this.internalChannel.getTarget(); + } + getConnectivityState(tryToConnect) { + return this.internalChannel.getConnectivityState(tryToConnect); + } + watchConnectivityState(currentState, deadline, callback) { + this.internalChannel.watchConnectivityState(currentState, deadline, callback); + } + /** + * Get the channelz reference object for this channel. The returned value is + * garbage if channelz is disabled for this channel. + * @returns + */ + getChannelzRef() { + return this.internalChannel.getChannelzRef(); + } + createCall(method, deadline, host, parentCall, propagateFlags) { + if (typeof method !== 'string') { + throw new TypeError('Channel#createCall: method must be a string'); + } + if (!(typeof deadline === 'number' || deadline instanceof Date)) { + throw new TypeError('Channel#createCall: deadline must be a number or Date'); + } + return this.internalChannel.createCall(method, deadline, host, parentCall, propagateFlags); + } +} +exports.ChannelImplementation = ChannelImplementation; +//# sourceMappingURL=channel.js.map + +/***/ }), + +/***/ 68198: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2021 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.registerChannelzSocket = exports.registerChannelzServer = exports.registerChannelzSubchannel = exports.registerChannelzChannel = exports.ChannelzCallTrackerStub = exports.ChannelzCallTracker = exports.ChannelzChildrenTrackerStub = exports.ChannelzChildrenTracker = exports.ChannelzTrace = exports.ChannelzTraceStub = void 0; +exports.unregisterChannelzRef = unregisterChannelzRef; +exports.getChannelzHandlers = getChannelzHandlers; +exports.getChannelzServiceDefinition = getChannelzServiceDefinition; +exports.setup = setup; +const net_1 = __nccwpck_require__(69278); +const ordered_map_1 = __nccwpck_require__(60137); +const connectivity_state_1 = __nccwpck_require__(60778); +const constants_1 = __nccwpck_require__(68288); +const subchannel_address_1 = __nccwpck_require__(97021); +const admin_1 = __nccwpck_require__(52914); +const make_client_1 = __nccwpck_require__(76983); +function channelRefToMessage(ref) { + return { + channel_id: ref.id, + name: ref.name, + }; +} +function subchannelRefToMessage(ref) { + return { + subchannel_id: ref.id, + name: ref.name, + }; +} +function serverRefToMessage(ref) { + return { + server_id: ref.id, + }; +} +function socketRefToMessage(ref) { + return { + socket_id: ref.id, + name: ref.name, + }; +} +/** + * The loose upper bound on the number of events that should be retained in a + * trace. This may be exceeded by up to a factor of 2. Arbitrarily chosen as a + * number that should be large enough to contain the recent relevant + * information, but small enough to not use excessive memory. + */ +const TARGET_RETAINED_TRACES = 32; +/** + * Default number of sockets/servers/channels/subchannels to return + */ +const DEFAULT_MAX_RESULTS = 100; +class ChannelzTraceStub { + constructor() { + this.events = []; + this.creationTimestamp = new Date(); + this.eventsLogged = 0; + } + addTrace() { } + getTraceMessage() { + return { + creation_timestamp: dateToProtoTimestamp(this.creationTimestamp), + num_events_logged: this.eventsLogged, + events: [], + }; + } +} +exports.ChannelzTraceStub = ChannelzTraceStub; +class ChannelzTrace { + constructor() { + this.events = []; + this.eventsLogged = 0; + this.creationTimestamp = new Date(); + } + addTrace(severity, description, child) { + const timestamp = new Date(); + this.events.push({ + description: description, + severity: severity, + timestamp: timestamp, + childChannel: (child === null || child === void 0 ? void 0 : child.kind) === 'channel' ? child : undefined, + childSubchannel: (child === null || child === void 0 ? void 0 : child.kind) === 'subchannel' ? child : undefined, + }); + // Whenever the trace array gets too large, discard the first half + if (this.events.length >= TARGET_RETAINED_TRACES * 2) { + this.events = this.events.slice(TARGET_RETAINED_TRACES); + } + this.eventsLogged += 1; + } + getTraceMessage() { + return { + creation_timestamp: dateToProtoTimestamp(this.creationTimestamp), + num_events_logged: this.eventsLogged, + events: this.events.map(event => { + return { + description: event.description, + severity: event.severity, + timestamp: dateToProtoTimestamp(event.timestamp), + channel_ref: event.childChannel + ? channelRefToMessage(event.childChannel) + : null, + subchannel_ref: event.childSubchannel + ? subchannelRefToMessage(event.childSubchannel) + : null, + }; + }), + }; + } +} +exports.ChannelzTrace = ChannelzTrace; +class ChannelzChildrenTracker { + constructor() { + this.channelChildren = new ordered_map_1.OrderedMap(); + this.subchannelChildren = new ordered_map_1.OrderedMap(); + this.socketChildren = new ordered_map_1.OrderedMap(); + this.trackerMap = { + ["channel" /* EntityTypes.channel */]: this.channelChildren, + ["subchannel" /* EntityTypes.subchannel */]: this.subchannelChildren, + ["socket" /* EntityTypes.socket */]: this.socketChildren, + }; + } + refChild(child) { + const tracker = this.trackerMap[child.kind]; + const trackedChild = tracker.find(child.id); + if (trackedChild.equals(tracker.end())) { + tracker.setElement(child.id, { + ref: child, + count: 1, + }, trackedChild); + } + else { + trackedChild.pointer[1].count += 1; + } + } + unrefChild(child) { + const tracker = this.trackerMap[child.kind]; + const trackedChild = tracker.getElementByKey(child.id); + if (trackedChild !== undefined) { + trackedChild.count -= 1; + if (trackedChild.count === 0) { + tracker.eraseElementByKey(child.id); + } + } + } + getChildLists() { + return { + channels: this.channelChildren, + subchannels: this.subchannelChildren, + sockets: this.socketChildren, + }; + } +} +exports.ChannelzChildrenTracker = ChannelzChildrenTracker; +class ChannelzChildrenTrackerStub extends ChannelzChildrenTracker { + refChild() { } + unrefChild() { } +} +exports.ChannelzChildrenTrackerStub = ChannelzChildrenTrackerStub; +class ChannelzCallTracker { + constructor() { + this.callsStarted = 0; + this.callsSucceeded = 0; + this.callsFailed = 0; + this.lastCallStartedTimestamp = null; + } + addCallStarted() { + this.callsStarted += 1; + this.lastCallStartedTimestamp = new Date(); + } + addCallSucceeded() { + this.callsSucceeded += 1; + } + addCallFailed() { + this.callsFailed += 1; + } +} +exports.ChannelzCallTracker = ChannelzCallTracker; +class ChannelzCallTrackerStub extends ChannelzCallTracker { + addCallStarted() { } + addCallSucceeded() { } + addCallFailed() { } +} +exports.ChannelzCallTrackerStub = ChannelzCallTrackerStub; +const entityMaps = { + ["channel" /* EntityTypes.channel */]: new ordered_map_1.OrderedMap(), + ["subchannel" /* EntityTypes.subchannel */]: new ordered_map_1.OrderedMap(), + ["server" /* EntityTypes.server */]: new ordered_map_1.OrderedMap(), + ["socket" /* EntityTypes.socket */]: new ordered_map_1.OrderedMap(), +}; +const generateRegisterFn = (kind) => { + let nextId = 1; + function getNextId() { + return nextId++; + } + const entityMap = entityMaps[kind]; + return (name, getInfo, channelzEnabled) => { + const id = getNextId(); + const ref = { id, name, kind }; + if (channelzEnabled) { + entityMap.setElement(id, { ref, getInfo }); + } + return ref; + }; +}; +exports.registerChannelzChannel = generateRegisterFn("channel" /* EntityTypes.channel */); +exports.registerChannelzSubchannel = generateRegisterFn("subchannel" /* EntityTypes.subchannel */); +exports.registerChannelzServer = generateRegisterFn("server" /* EntityTypes.server */); +exports.registerChannelzSocket = generateRegisterFn("socket" /* EntityTypes.socket */); +function unregisterChannelzRef(ref) { + entityMaps[ref.kind].eraseElementByKey(ref.id); +} +/** + * Parse a single section of an IPv6 address as two bytes + * @param addressSection A hexadecimal string of length up to 4 + * @returns The pair of bytes representing this address section + */ +function parseIPv6Section(addressSection) { + const numberValue = Number.parseInt(addressSection, 16); + return [(numberValue / 256) | 0, numberValue % 256]; +} +/** + * Parse a chunk of an IPv6 address string to some number of bytes + * @param addressChunk Some number of segments of up to 4 hexadecimal + * characters each, joined by colons. + * @returns The list of bytes representing this address chunk + */ +function parseIPv6Chunk(addressChunk) { + if (addressChunk === '') { + return []; + } + const bytePairs = addressChunk + .split(':') + .map(section => parseIPv6Section(section)); + const result = []; + return result.concat(...bytePairs); +} +function isIPv6MappedIPv4(ipAddress) { + return (0, net_1.isIPv6)(ipAddress) && ipAddress.toLowerCase().startsWith('::ffff:') && (0, net_1.isIPv4)(ipAddress.substring(7)); +} +/** + * Prerequisite: isIPv4(ipAddress) + * @param ipAddress + * @returns + */ +function ipv4AddressStringToBuffer(ipAddress) { + return Buffer.from(Uint8Array.from(ipAddress.split('.').map(segment => Number.parseInt(segment)))); +} +/** + * Converts an IPv4 or IPv6 address from string representation to binary + * representation + * @param ipAddress an IP address in standard IPv4 or IPv6 text format + * @returns + */ +function ipAddressStringToBuffer(ipAddress) { + if ((0, net_1.isIPv4)(ipAddress)) { + return ipv4AddressStringToBuffer(ipAddress); + } + else if (isIPv6MappedIPv4(ipAddress)) { + return ipv4AddressStringToBuffer(ipAddress.substring(7)); + } + else if ((0, net_1.isIPv6)(ipAddress)) { + let leftSection; + let rightSection; + const doubleColonIndex = ipAddress.indexOf('::'); + if (doubleColonIndex === -1) { + leftSection = ipAddress; + rightSection = ''; + } + else { + leftSection = ipAddress.substring(0, doubleColonIndex); + rightSection = ipAddress.substring(doubleColonIndex + 2); + } + const leftBuffer = Buffer.from(parseIPv6Chunk(leftSection)); + const rightBuffer = Buffer.from(parseIPv6Chunk(rightSection)); + const middleBuffer = Buffer.alloc(16 - leftBuffer.length - rightBuffer.length, 0); + return Buffer.concat([leftBuffer, middleBuffer, rightBuffer]); + } + else { + return null; + } +} +function connectivityStateToMessage(state) { + switch (state) { + case connectivity_state_1.ConnectivityState.CONNECTING: + return { + state: 'CONNECTING', + }; + case connectivity_state_1.ConnectivityState.IDLE: + return { + state: 'IDLE', + }; + case connectivity_state_1.ConnectivityState.READY: + return { + state: 'READY', + }; + case connectivity_state_1.ConnectivityState.SHUTDOWN: + return { + state: 'SHUTDOWN', + }; + case connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE: + return { + state: 'TRANSIENT_FAILURE', + }; + default: + return { + state: 'UNKNOWN', + }; + } +} +function dateToProtoTimestamp(date) { + if (!date) { + return null; + } + const millisSinceEpoch = date.getTime(); + return { + seconds: (millisSinceEpoch / 1000) | 0, + nanos: (millisSinceEpoch % 1000) * 1000000, + }; +} +function getChannelMessage(channelEntry) { + const resolvedInfo = channelEntry.getInfo(); + const channelRef = []; + const subchannelRef = []; + resolvedInfo.children.channels.forEach(el => { + channelRef.push(channelRefToMessage(el[1].ref)); + }); + resolvedInfo.children.subchannels.forEach(el => { + subchannelRef.push(subchannelRefToMessage(el[1].ref)); + }); + return { + ref: channelRefToMessage(channelEntry.ref), + data: { + target: resolvedInfo.target, + state: connectivityStateToMessage(resolvedInfo.state), + calls_started: resolvedInfo.callTracker.callsStarted, + calls_succeeded: resolvedInfo.callTracker.callsSucceeded, + calls_failed: resolvedInfo.callTracker.callsFailed, + last_call_started_timestamp: dateToProtoTimestamp(resolvedInfo.callTracker.lastCallStartedTimestamp), + trace: resolvedInfo.trace.getTraceMessage(), + }, + channel_ref: channelRef, + subchannel_ref: subchannelRef, + }; +} +function GetChannel(call, callback) { + const channelId = parseInt(call.request.channel_id, 10); + const channelEntry = entityMaps["channel" /* EntityTypes.channel */].getElementByKey(channelId); + if (channelEntry === undefined) { + callback({ + code: constants_1.Status.NOT_FOUND, + details: 'No channel data found for id ' + channelId, + }); + return; + } + callback(null, { channel: getChannelMessage(channelEntry) }); +} +function GetTopChannels(call, callback) { + const maxResults = parseInt(call.request.max_results, 10) || DEFAULT_MAX_RESULTS; + const resultList = []; + const startId = parseInt(call.request.start_channel_id, 10); + const channelEntries = entityMaps["channel" /* EntityTypes.channel */]; + let i; + for (i = channelEntries.lowerBound(startId); !i.equals(channelEntries.end()) && resultList.length < maxResults; i = i.next()) { + resultList.push(getChannelMessage(i.pointer[1])); + } + callback(null, { + channel: resultList, + end: i.equals(channelEntries.end()), + }); +} +function getServerMessage(serverEntry) { + const resolvedInfo = serverEntry.getInfo(); + const listenSocket = []; + resolvedInfo.listenerChildren.sockets.forEach(el => { + listenSocket.push(socketRefToMessage(el[1].ref)); + }); + return { + ref: serverRefToMessage(serverEntry.ref), + data: { + calls_started: resolvedInfo.callTracker.callsStarted, + calls_succeeded: resolvedInfo.callTracker.callsSucceeded, + calls_failed: resolvedInfo.callTracker.callsFailed, + last_call_started_timestamp: dateToProtoTimestamp(resolvedInfo.callTracker.lastCallStartedTimestamp), + trace: resolvedInfo.trace.getTraceMessage(), + }, + listen_socket: listenSocket, + }; +} +function GetServer(call, callback) { + const serverId = parseInt(call.request.server_id, 10); + const serverEntries = entityMaps["server" /* EntityTypes.server */]; + const serverEntry = serverEntries.getElementByKey(serverId); + if (serverEntry === undefined) { + callback({ + code: constants_1.Status.NOT_FOUND, + details: 'No server data found for id ' + serverId, + }); + return; + } + callback(null, { server: getServerMessage(serverEntry) }); +} +function GetServers(call, callback) { + const maxResults = parseInt(call.request.max_results, 10) || DEFAULT_MAX_RESULTS; + const startId = parseInt(call.request.start_server_id, 10); + const serverEntries = entityMaps["server" /* EntityTypes.server */]; + const resultList = []; + let i; + for (i = serverEntries.lowerBound(startId); !i.equals(serverEntries.end()) && resultList.length < maxResults; i = i.next()) { + resultList.push(getServerMessage(i.pointer[1])); + } + callback(null, { + server: resultList, + end: i.equals(serverEntries.end()), + }); +} +function GetSubchannel(call, callback) { + const subchannelId = parseInt(call.request.subchannel_id, 10); + const subchannelEntry = entityMaps["subchannel" /* EntityTypes.subchannel */].getElementByKey(subchannelId); + if (subchannelEntry === undefined) { + callback({ + code: constants_1.Status.NOT_FOUND, + details: 'No subchannel data found for id ' + subchannelId, + }); + return; + } + const resolvedInfo = subchannelEntry.getInfo(); + const listenSocket = []; + resolvedInfo.children.sockets.forEach(el => { + listenSocket.push(socketRefToMessage(el[1].ref)); + }); + const subchannelMessage = { + ref: subchannelRefToMessage(subchannelEntry.ref), + data: { + target: resolvedInfo.target, + state: connectivityStateToMessage(resolvedInfo.state), + calls_started: resolvedInfo.callTracker.callsStarted, + calls_succeeded: resolvedInfo.callTracker.callsSucceeded, + calls_failed: resolvedInfo.callTracker.callsFailed, + last_call_started_timestamp: dateToProtoTimestamp(resolvedInfo.callTracker.lastCallStartedTimestamp), + trace: resolvedInfo.trace.getTraceMessage(), + }, + socket_ref: listenSocket, + }; + callback(null, { subchannel: subchannelMessage }); +} +function subchannelAddressToAddressMessage(subchannelAddress) { + var _a; + if ((0, subchannel_address_1.isTcpSubchannelAddress)(subchannelAddress)) { + return { + address: 'tcpip_address', + tcpip_address: { + ip_address: (_a = ipAddressStringToBuffer(subchannelAddress.host)) !== null && _a !== void 0 ? _a : undefined, + port: subchannelAddress.port, + }, + }; + } + else { + return { + address: 'uds_address', + uds_address: { + filename: subchannelAddress.path, + }, + }; + } +} +function GetSocket(call, callback) { + var _a, _b, _c, _d, _e; + const socketId = parseInt(call.request.socket_id, 10); + const socketEntry = entityMaps["socket" /* EntityTypes.socket */].getElementByKey(socketId); + if (socketEntry === undefined) { + callback({ + code: constants_1.Status.NOT_FOUND, + details: 'No socket data found for id ' + socketId, + }); + return; + } + const resolvedInfo = socketEntry.getInfo(); + const securityMessage = resolvedInfo.security + ? { + model: 'tls', + tls: { + cipher_suite: resolvedInfo.security.cipherSuiteStandardName + ? 'standard_name' + : 'other_name', + standard_name: (_a = resolvedInfo.security.cipherSuiteStandardName) !== null && _a !== void 0 ? _a : undefined, + other_name: (_b = resolvedInfo.security.cipherSuiteOtherName) !== null && _b !== void 0 ? _b : undefined, + local_certificate: (_c = resolvedInfo.security.localCertificate) !== null && _c !== void 0 ? _c : undefined, + remote_certificate: (_d = resolvedInfo.security.remoteCertificate) !== null && _d !== void 0 ? _d : undefined, + }, + } + : null; + const socketMessage = { + ref: socketRefToMessage(socketEntry.ref), + local: resolvedInfo.localAddress + ? subchannelAddressToAddressMessage(resolvedInfo.localAddress) + : null, + remote: resolvedInfo.remoteAddress + ? subchannelAddressToAddressMessage(resolvedInfo.remoteAddress) + : null, + remote_name: (_e = resolvedInfo.remoteName) !== null && _e !== void 0 ? _e : undefined, + security: securityMessage, + data: { + keep_alives_sent: resolvedInfo.keepAlivesSent, + streams_started: resolvedInfo.streamsStarted, + streams_succeeded: resolvedInfo.streamsSucceeded, + streams_failed: resolvedInfo.streamsFailed, + last_local_stream_created_timestamp: dateToProtoTimestamp(resolvedInfo.lastLocalStreamCreatedTimestamp), + last_remote_stream_created_timestamp: dateToProtoTimestamp(resolvedInfo.lastRemoteStreamCreatedTimestamp), + messages_received: resolvedInfo.messagesReceived, + messages_sent: resolvedInfo.messagesSent, + last_message_received_timestamp: dateToProtoTimestamp(resolvedInfo.lastMessageReceivedTimestamp), + last_message_sent_timestamp: dateToProtoTimestamp(resolvedInfo.lastMessageSentTimestamp), + local_flow_control_window: resolvedInfo.localFlowControlWindow + ? { value: resolvedInfo.localFlowControlWindow } + : null, + remote_flow_control_window: resolvedInfo.remoteFlowControlWindow + ? { value: resolvedInfo.remoteFlowControlWindow } + : null, + }, + }; + callback(null, { socket: socketMessage }); +} +function GetServerSockets(call, callback) { + const serverId = parseInt(call.request.server_id, 10); + const serverEntry = entityMaps["server" /* EntityTypes.server */].getElementByKey(serverId); + if (serverEntry === undefined) { + callback({ + code: constants_1.Status.NOT_FOUND, + details: 'No server data found for id ' + serverId, + }); + return; + } + const startId = parseInt(call.request.start_socket_id, 10); + const maxResults = parseInt(call.request.max_results, 10) || DEFAULT_MAX_RESULTS; + const resolvedInfo = serverEntry.getInfo(); + // If we wanted to include listener sockets in the result, this line would + // instead say + // const allSockets = resolvedInfo.listenerChildren.sockets.concat(resolvedInfo.sessionChildren.sockets).sort((ref1, ref2) => ref1.id - ref2.id); + const allSockets = resolvedInfo.sessionChildren.sockets; + const resultList = []; + let i; + for (i = allSockets.lowerBound(startId); !i.equals(allSockets.end()) && resultList.length < maxResults; i = i.next()) { + resultList.push(socketRefToMessage(i.pointer[1].ref)); + } + callback(null, { + socket_ref: resultList, + end: i.equals(allSockets.end()), + }); +} +function getChannelzHandlers() { + return { + GetChannel, + GetTopChannels, + GetServer, + GetServers, + GetSubchannel, + GetSocket, + GetServerSockets, + }; +} +let loadedChannelzDefinition = null; +function getChannelzServiceDefinition() { + if (loadedChannelzDefinition) { + return loadedChannelzDefinition; + } + /* The purpose of this complexity is to avoid loading @grpc/proto-loader at + * runtime for users who will not use/enable channelz. */ + const loaderLoadSync = (__nccwpck_require__(73066)/* .loadSync */ .Yi); + const loadedProto = loaderLoadSync('channelz.proto', { + keepCase: true, + longs: String, + enums: String, + defaults: true, + oneofs: true, + includeDirs: [__nccwpck_require__.ab + "proto"], + }); + const channelzGrpcObject = (0, make_client_1.loadPackageDefinition)(loadedProto); + loadedChannelzDefinition = + channelzGrpcObject.grpc.channelz.v1.Channelz.service; + return loadedChannelzDefinition; +} +function setup() { + (0, admin_1.registerAdminService)(getChannelzServiceDefinition, getChannelzHandlers); +} +//# sourceMappingURL=channelz.js.map + +/***/ }), + +/***/ 82451: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.InterceptingCall = exports.RequesterBuilder = exports.ListenerBuilder = exports.InterceptorConfigurationError = void 0; +exports.getInterceptingCall = getInterceptingCall; +const metadata_1 = __nccwpck_require__(36100); +const call_interface_1 = __nccwpck_require__(61803); +const constants_1 = __nccwpck_require__(68288); +const error_1 = __nccwpck_require__(98219); +/** + * Error class associated with passing both interceptors and interceptor + * providers to a client constructor or as call options. + */ +class InterceptorConfigurationError extends Error { + constructor(message) { + super(message); + this.name = 'InterceptorConfigurationError'; + Error.captureStackTrace(this, InterceptorConfigurationError); + } +} +exports.InterceptorConfigurationError = InterceptorConfigurationError; +class ListenerBuilder { + constructor() { + this.metadata = undefined; + this.message = undefined; + this.status = undefined; + } + withOnReceiveMetadata(onReceiveMetadata) { + this.metadata = onReceiveMetadata; + return this; + } + withOnReceiveMessage(onReceiveMessage) { + this.message = onReceiveMessage; + return this; + } + withOnReceiveStatus(onReceiveStatus) { + this.status = onReceiveStatus; + return this; + } + build() { + return { + onReceiveMetadata: this.metadata, + onReceiveMessage: this.message, + onReceiveStatus: this.status, + }; + } +} +exports.ListenerBuilder = ListenerBuilder; +class RequesterBuilder { + constructor() { + this.start = undefined; + this.message = undefined; + this.halfClose = undefined; + this.cancel = undefined; + } + withStart(start) { + this.start = start; + return this; + } + withSendMessage(sendMessage) { + this.message = sendMessage; + return this; + } + withHalfClose(halfClose) { + this.halfClose = halfClose; + return this; + } + withCancel(cancel) { + this.cancel = cancel; + return this; + } + build() { + return { + start: this.start, + sendMessage: this.message, + halfClose: this.halfClose, + cancel: this.cancel, + }; + } +} +exports.RequesterBuilder = RequesterBuilder; +/** + * A Listener with a default pass-through implementation of each method. Used + * for filling out Listeners with some methods omitted. + */ +const defaultListener = { + onReceiveMetadata: (metadata, next) => { + next(metadata); + }, + onReceiveMessage: (message, next) => { + next(message); + }, + onReceiveStatus: (status, next) => { + next(status); + }, +}; +/** + * A Requester with a default pass-through implementation of each method. Used + * for filling out Requesters with some methods omitted. + */ +const defaultRequester = { + start: (metadata, listener, next) => { + next(metadata, listener); + }, + sendMessage: (message, next) => { + next(message); + }, + halfClose: next => { + next(); + }, + cancel: next => { + next(); + }, +}; +class InterceptingCall { + constructor(nextCall, requester) { + var _a, _b, _c, _d; + this.nextCall = nextCall; + /** + * Indicates that metadata has been passed to the requester's start + * method but it has not been passed to the corresponding next callback + */ + this.processingMetadata = false; + /** + * Message context for a pending message that is waiting for + */ + this.pendingMessageContext = null; + /** + * Indicates that a message has been passed to the requester's sendMessage + * method but it has not been passed to the corresponding next callback + */ + this.processingMessage = false; + /** + * Indicates that a status was received but could not be propagated because + * a message was still being processed. + */ + this.pendingHalfClose = false; + if (requester) { + this.requester = { + start: (_a = requester.start) !== null && _a !== void 0 ? _a : defaultRequester.start, + sendMessage: (_b = requester.sendMessage) !== null && _b !== void 0 ? _b : defaultRequester.sendMessage, + halfClose: (_c = requester.halfClose) !== null && _c !== void 0 ? _c : defaultRequester.halfClose, + cancel: (_d = requester.cancel) !== null && _d !== void 0 ? _d : defaultRequester.cancel, + }; + } + else { + this.requester = defaultRequester; + } + } + cancelWithStatus(status, details) { + this.requester.cancel(() => { + this.nextCall.cancelWithStatus(status, details); + }); + } + getPeer() { + return this.nextCall.getPeer(); + } + processPendingMessage() { + if (this.pendingMessageContext) { + this.nextCall.sendMessageWithContext(this.pendingMessageContext, this.pendingMessage); + this.pendingMessageContext = null; + this.pendingMessage = null; + } + } + processPendingHalfClose() { + if (this.pendingHalfClose) { + this.nextCall.halfClose(); + } + } + start(metadata, interceptingListener) { + var _a, _b, _c, _d, _e, _f; + const fullInterceptingListener = { + onReceiveMetadata: (_b = (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMetadata) === null || _a === void 0 ? void 0 : _a.bind(interceptingListener)) !== null && _b !== void 0 ? _b : (metadata => { }), + onReceiveMessage: (_d = (_c = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMessage) === null || _c === void 0 ? void 0 : _c.bind(interceptingListener)) !== null && _d !== void 0 ? _d : (message => { }), + onReceiveStatus: (_f = (_e = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveStatus) === null || _e === void 0 ? void 0 : _e.bind(interceptingListener)) !== null && _f !== void 0 ? _f : (status => { }), + }; + this.processingMetadata = true; + this.requester.start(metadata, fullInterceptingListener, (md, listener) => { + var _a, _b, _c; + this.processingMetadata = false; + let finalInterceptingListener; + if ((0, call_interface_1.isInterceptingListener)(listener)) { + finalInterceptingListener = listener; + } + else { + const fullListener = { + onReceiveMetadata: (_a = listener.onReceiveMetadata) !== null && _a !== void 0 ? _a : defaultListener.onReceiveMetadata, + onReceiveMessage: (_b = listener.onReceiveMessage) !== null && _b !== void 0 ? _b : defaultListener.onReceiveMessage, + onReceiveStatus: (_c = listener.onReceiveStatus) !== null && _c !== void 0 ? _c : defaultListener.onReceiveStatus, + }; + finalInterceptingListener = new call_interface_1.InterceptingListenerImpl(fullListener, fullInterceptingListener); + } + this.nextCall.start(md, finalInterceptingListener); + this.processPendingMessage(); + this.processPendingHalfClose(); + }); + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + sendMessageWithContext(context, message) { + this.processingMessage = true; + this.requester.sendMessage(message, finalMessage => { + this.processingMessage = false; + if (this.processingMetadata) { + this.pendingMessageContext = context; + this.pendingMessage = message; + } + else { + this.nextCall.sendMessageWithContext(context, finalMessage); + this.processPendingHalfClose(); + } + }); + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + sendMessage(message) { + this.sendMessageWithContext({}, message); + } + startRead() { + this.nextCall.startRead(); + } + halfClose() { + this.requester.halfClose(() => { + if (this.processingMetadata || this.processingMessage) { + this.pendingHalfClose = true; + } + else { + this.nextCall.halfClose(); + } + }); + } + getAuthContext() { + return this.nextCall.getAuthContext(); + } +} +exports.InterceptingCall = InterceptingCall; +function getCall(channel, path, options) { + var _a, _b; + const deadline = (_a = options.deadline) !== null && _a !== void 0 ? _a : Infinity; + const host = options.host; + const parent = (_b = options.parent) !== null && _b !== void 0 ? _b : null; + const propagateFlags = options.propagate_flags; + const credentials = options.credentials; + const call = channel.createCall(path, deadline, host, parent, propagateFlags); + if (credentials) { + call.setCredentials(credentials); + } + return call; +} +/** + * InterceptingCall implementation that directly owns the underlying Call + * object and handles serialization and deseraizliation. + */ +class BaseInterceptingCall { + constructor(call, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + methodDefinition) { + this.call = call; + this.methodDefinition = methodDefinition; + } + cancelWithStatus(status, details) { + this.call.cancelWithStatus(status, details); + } + getPeer() { + return this.call.getPeer(); + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + sendMessageWithContext(context, message) { + let serialized; + try { + serialized = this.methodDefinition.requestSerialize(message); + } + catch (e) { + this.call.cancelWithStatus(constants_1.Status.INTERNAL, `Request message serialization failure: ${(0, error_1.getErrorMessage)(e)}`); + return; + } + this.call.sendMessageWithContext(context, serialized); + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + sendMessage(message) { + this.sendMessageWithContext({}, message); + } + start(metadata, interceptingListener) { + let readError = null; + this.call.start(metadata, { + onReceiveMetadata: metadata => { + var _a; + (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMetadata) === null || _a === void 0 ? void 0 : _a.call(interceptingListener, metadata); + }, + onReceiveMessage: message => { + var _a; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + let deserialized; + try { + deserialized = this.methodDefinition.responseDeserialize(message); + } + catch (e) { + readError = { + code: constants_1.Status.INTERNAL, + details: `Response message parsing error: ${(0, error_1.getErrorMessage)(e)}`, + metadata: new metadata_1.Metadata(), + }; + this.call.cancelWithStatus(readError.code, readError.details); + return; + } + (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMessage) === null || _a === void 0 ? void 0 : _a.call(interceptingListener, deserialized); + }, + onReceiveStatus: status => { + var _a, _b; + if (readError) { + (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveStatus) === null || _a === void 0 ? void 0 : _a.call(interceptingListener, readError); + } + else { + (_b = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveStatus) === null || _b === void 0 ? void 0 : _b.call(interceptingListener, status); + } + }, + }); + } + startRead() { + this.call.startRead(); + } + halfClose() { + this.call.halfClose(); + } + getAuthContext() { + return this.call.getAuthContext(); + } +} +/** + * BaseInterceptingCall with special-cased behavior for methods with unary + * responses. + */ +class BaseUnaryInterceptingCall extends BaseInterceptingCall { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + constructor(call, methodDefinition) { + super(call, methodDefinition); + } + start(metadata, listener) { + var _a, _b; + let receivedMessage = false; + const wrapperListener = { + onReceiveMetadata: (_b = (_a = listener === null || listener === void 0 ? void 0 : listener.onReceiveMetadata) === null || _a === void 0 ? void 0 : _a.bind(listener)) !== null && _b !== void 0 ? _b : (metadata => { }), + // eslint-disable-next-line @typescript-eslint/no-explicit-any + onReceiveMessage: (message) => { + var _a; + receivedMessage = true; + (_a = listener === null || listener === void 0 ? void 0 : listener.onReceiveMessage) === null || _a === void 0 ? void 0 : _a.call(listener, message); + }, + onReceiveStatus: (status) => { + var _a, _b; + if (!receivedMessage) { + (_a = listener === null || listener === void 0 ? void 0 : listener.onReceiveMessage) === null || _a === void 0 ? void 0 : _a.call(listener, null); + } + (_b = listener === null || listener === void 0 ? void 0 : listener.onReceiveStatus) === null || _b === void 0 ? void 0 : _b.call(listener, status); + }, + }; + super.start(metadata, wrapperListener); + this.call.startRead(); + } +} +/** + * BaseInterceptingCall with special-cased behavior for methods with streaming + * responses. + */ +class BaseStreamingInterceptingCall extends BaseInterceptingCall { +} +function getBottomInterceptingCall(channel, options, +// eslint-disable-next-line @typescript-eslint/no-explicit-any +methodDefinition) { + const call = getCall(channel, methodDefinition.path, options); + if (methodDefinition.responseStream) { + return new BaseStreamingInterceptingCall(call, methodDefinition); + } + else { + return new BaseUnaryInterceptingCall(call, methodDefinition); + } +} +function getInterceptingCall(interceptorArgs, +// eslint-disable-next-line @typescript-eslint/no-explicit-any +methodDefinition, options, channel) { + if (interceptorArgs.clientInterceptors.length > 0 && + interceptorArgs.clientInterceptorProviders.length > 0) { + throw new InterceptorConfigurationError('Both interceptors and interceptor_providers were passed as options ' + + 'to the client constructor. Only one of these is allowed.'); + } + if (interceptorArgs.callInterceptors.length > 0 && + interceptorArgs.callInterceptorProviders.length > 0) { + throw new InterceptorConfigurationError('Both interceptors and interceptor_providers were passed as call ' + + 'options. Only one of these is allowed.'); + } + let interceptors = []; + // Interceptors passed to the call override interceptors passed to the client constructor + if (interceptorArgs.callInterceptors.length > 0 || + interceptorArgs.callInterceptorProviders.length > 0) { + interceptors = [] + .concat(interceptorArgs.callInterceptors, interceptorArgs.callInterceptorProviders.map(provider => provider(methodDefinition))) + .filter(interceptor => interceptor); + // Filter out falsy values when providers return nothing + } + else { + interceptors = [] + .concat(interceptorArgs.clientInterceptors, interceptorArgs.clientInterceptorProviders.map(provider => provider(methodDefinition))) + .filter(interceptor => interceptor); + // Filter out falsy values when providers return nothing + } + const interceptorOptions = Object.assign({}, options, { + method_definition: methodDefinition, + }); + /* For each interceptor in the list, the nextCall function passed to it is + * based on the next interceptor in the list, using a nextCall function + * constructed with the following interceptor in the list, and so on. The + * initialValue, which is effectively at the end of the list, is a nextCall + * function that invokes getBottomInterceptingCall, the result of which + * handles (de)serialization and also gets the underlying call from the + * channel. */ + const getCall = interceptors.reduceRight((nextCall, nextInterceptor) => { + return currentOptions => nextInterceptor(currentOptions, nextCall); + }, (finalOptions) => getBottomInterceptingCall(channel, finalOptions, methodDefinition)); + return getCall(interceptorOptions); +} +//# sourceMappingURL=client-interceptors.js.map + +/***/ }), + +/***/ 54210: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Client = void 0; +const call_1 = __nccwpck_require__(91161); +const channel_1 = __nccwpck_require__(86918); +const connectivity_state_1 = __nccwpck_require__(60778); +const constants_1 = __nccwpck_require__(68288); +const metadata_1 = __nccwpck_require__(36100); +const client_interceptors_1 = __nccwpck_require__(82451); +const CHANNEL_SYMBOL = Symbol(); +const INTERCEPTOR_SYMBOL = Symbol(); +const INTERCEPTOR_PROVIDER_SYMBOL = Symbol(); +const CALL_INVOCATION_TRANSFORMER_SYMBOL = Symbol(); +function isFunction(arg) { + return typeof arg === 'function'; +} +function getErrorStackString(error) { + var _a; + return ((_a = error.stack) === null || _a === void 0 ? void 0 : _a.split('\n').slice(1).join('\n')) || 'no stack trace available'; +} +/** + * A generic gRPC client. Primarily useful as a base class for all generated + * clients. + */ +class Client { + constructor(address, credentials, options = {}) { + var _a, _b; + options = Object.assign({}, options); + this[INTERCEPTOR_SYMBOL] = (_a = options.interceptors) !== null && _a !== void 0 ? _a : []; + delete options.interceptors; + this[INTERCEPTOR_PROVIDER_SYMBOL] = (_b = options.interceptor_providers) !== null && _b !== void 0 ? _b : []; + delete options.interceptor_providers; + if (this[INTERCEPTOR_SYMBOL].length > 0 && + this[INTERCEPTOR_PROVIDER_SYMBOL].length > 0) { + throw new Error('Both interceptors and interceptor_providers were passed as options ' + + 'to the client constructor. Only one of these is allowed.'); + } + this[CALL_INVOCATION_TRANSFORMER_SYMBOL] = + options.callInvocationTransformer; + delete options.callInvocationTransformer; + if (options.channelOverride) { + this[CHANNEL_SYMBOL] = options.channelOverride; + } + else if (options.channelFactoryOverride) { + const channelFactoryOverride = options.channelFactoryOverride; + delete options.channelFactoryOverride; + this[CHANNEL_SYMBOL] = channelFactoryOverride(address, credentials, options); + } + else { + this[CHANNEL_SYMBOL] = new channel_1.ChannelImplementation(address, credentials, options); + } + } + close() { + this[CHANNEL_SYMBOL].close(); + } + getChannel() { + return this[CHANNEL_SYMBOL]; + } + waitForReady(deadline, callback) { + const checkState = (err) => { + if (err) { + callback(new Error('Failed to connect before the deadline')); + return; + } + let newState; + try { + newState = this[CHANNEL_SYMBOL].getConnectivityState(true); + } + catch (e) { + callback(new Error('The channel has been closed')); + return; + } + if (newState === connectivity_state_1.ConnectivityState.READY) { + callback(); + } + else { + try { + this[CHANNEL_SYMBOL].watchConnectivityState(newState, deadline, checkState); + } + catch (e) { + callback(new Error('The channel has been closed')); + } + } + }; + setImmediate(checkState); + } + checkOptionalUnaryResponseArguments(arg1, arg2, arg3) { + if (isFunction(arg1)) { + return { metadata: new metadata_1.Metadata(), options: {}, callback: arg1 }; + } + else if (isFunction(arg2)) { + if (arg1 instanceof metadata_1.Metadata) { + return { metadata: arg1, options: {}, callback: arg2 }; + } + else { + return { metadata: new metadata_1.Metadata(), options: arg1, callback: arg2 }; + } + } + else { + if (!(arg1 instanceof metadata_1.Metadata && + arg2 instanceof Object && + isFunction(arg3))) { + throw new Error('Incorrect arguments passed'); + } + return { metadata: arg1, options: arg2, callback: arg3 }; + } + } + makeUnaryRequest(method, serialize, deserialize, argument, metadata, options, callback) { + var _a, _b; + const checkedArguments = this.checkOptionalUnaryResponseArguments(metadata, options, callback); + const methodDefinition = { + path: method, + requestStream: false, + responseStream: false, + requestSerialize: serialize, + responseDeserialize: deserialize, + }; + let callProperties = { + argument: argument, + metadata: checkedArguments.metadata, + call: new call_1.ClientUnaryCallImpl(), + channel: this[CHANNEL_SYMBOL], + methodDefinition: methodDefinition, + callOptions: checkedArguments.options, + callback: checkedArguments.callback, + }; + if (this[CALL_INVOCATION_TRANSFORMER_SYMBOL]) { + callProperties = this[CALL_INVOCATION_TRANSFORMER_SYMBOL](callProperties); + } + const emitter = callProperties.call; + const interceptorArgs = { + clientInterceptors: this[INTERCEPTOR_SYMBOL], + clientInterceptorProviders: this[INTERCEPTOR_PROVIDER_SYMBOL], + callInterceptors: (_a = callProperties.callOptions.interceptors) !== null && _a !== void 0 ? _a : [], + callInterceptorProviders: (_b = callProperties.callOptions.interceptor_providers) !== null && _b !== void 0 ? _b : [], + }; + const call = (0, client_interceptors_1.getInterceptingCall)(interceptorArgs, callProperties.methodDefinition, callProperties.callOptions, callProperties.channel); + /* This needs to happen before the emitter is used. Unfortunately we can't + * enforce this with the type system. We need to construct this emitter + * before calling the CallInvocationTransformer, and we need to create the + * call after that. */ + emitter.call = call; + let responseMessage = null; + let receivedStatus = false; + let callerStackError = new Error(); + call.start(callProperties.metadata, { + onReceiveMetadata: metadata => { + emitter.emit('metadata', metadata); + }, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + onReceiveMessage(message) { + if (responseMessage !== null) { + call.cancelWithStatus(constants_1.Status.UNIMPLEMENTED, 'Too many responses received'); + } + responseMessage = message; + }, + onReceiveStatus(status) { + if (receivedStatus) { + return; + } + receivedStatus = true; + if (status.code === constants_1.Status.OK) { + if (responseMessage === null) { + const callerStack = getErrorStackString(callerStackError); + callProperties.callback((0, call_1.callErrorFromStatus)({ + code: constants_1.Status.UNIMPLEMENTED, + details: 'No message received', + metadata: status.metadata, + }, callerStack)); + } + else { + callProperties.callback(null, responseMessage); + } + } + else { + const callerStack = getErrorStackString(callerStackError); + callProperties.callback((0, call_1.callErrorFromStatus)(status, callerStack)); + } + /* Avoid retaining the callerStackError object in the call context of + * the status event handler. */ + callerStackError = null; + emitter.emit('status', status); + }, + }); + call.sendMessage(argument); + call.halfClose(); + return emitter; + } + makeClientStreamRequest(method, serialize, deserialize, metadata, options, callback) { + var _a, _b; + const checkedArguments = this.checkOptionalUnaryResponseArguments(metadata, options, callback); + const methodDefinition = { + path: method, + requestStream: true, + responseStream: false, + requestSerialize: serialize, + responseDeserialize: deserialize, + }; + let callProperties = { + metadata: checkedArguments.metadata, + call: new call_1.ClientWritableStreamImpl(serialize), + channel: this[CHANNEL_SYMBOL], + methodDefinition: methodDefinition, + callOptions: checkedArguments.options, + callback: checkedArguments.callback, + }; + if (this[CALL_INVOCATION_TRANSFORMER_SYMBOL]) { + callProperties = this[CALL_INVOCATION_TRANSFORMER_SYMBOL](callProperties); + } + const emitter = callProperties.call; + const interceptorArgs = { + clientInterceptors: this[INTERCEPTOR_SYMBOL], + clientInterceptorProviders: this[INTERCEPTOR_PROVIDER_SYMBOL], + callInterceptors: (_a = callProperties.callOptions.interceptors) !== null && _a !== void 0 ? _a : [], + callInterceptorProviders: (_b = callProperties.callOptions.interceptor_providers) !== null && _b !== void 0 ? _b : [], + }; + const call = (0, client_interceptors_1.getInterceptingCall)(interceptorArgs, callProperties.methodDefinition, callProperties.callOptions, callProperties.channel); + /* This needs to happen before the emitter is used. Unfortunately we can't + * enforce this with the type system. We need to construct this emitter + * before calling the CallInvocationTransformer, and we need to create the + * call after that. */ + emitter.call = call; + let responseMessage = null; + let receivedStatus = false; + let callerStackError = new Error(); + call.start(callProperties.metadata, { + onReceiveMetadata: metadata => { + emitter.emit('metadata', metadata); + }, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + onReceiveMessage(message) { + if (responseMessage !== null) { + call.cancelWithStatus(constants_1.Status.UNIMPLEMENTED, 'Too many responses received'); + } + responseMessage = message; + call.startRead(); + }, + onReceiveStatus(status) { + if (receivedStatus) { + return; + } + receivedStatus = true; + if (status.code === constants_1.Status.OK) { + if (responseMessage === null) { + const callerStack = getErrorStackString(callerStackError); + callProperties.callback((0, call_1.callErrorFromStatus)({ + code: constants_1.Status.UNIMPLEMENTED, + details: 'No message received', + metadata: status.metadata, + }, callerStack)); + } + else { + callProperties.callback(null, responseMessage); + } + } + else { + const callerStack = getErrorStackString(callerStackError); + callProperties.callback((0, call_1.callErrorFromStatus)(status, callerStack)); + } + /* Avoid retaining the callerStackError object in the call context of + * the status event handler. */ + callerStackError = null; + emitter.emit('status', status); + }, + }); + return emitter; + } + checkMetadataAndOptions(arg1, arg2) { + let metadata; + let options; + if (arg1 instanceof metadata_1.Metadata) { + metadata = arg1; + if (arg2) { + options = arg2; + } + else { + options = {}; + } + } + else { + if (arg1) { + options = arg1; + } + else { + options = {}; + } + metadata = new metadata_1.Metadata(); + } + return { metadata, options }; + } + makeServerStreamRequest(method, serialize, deserialize, argument, metadata, options) { + var _a, _b; + const checkedArguments = this.checkMetadataAndOptions(metadata, options); + const methodDefinition = { + path: method, + requestStream: false, + responseStream: true, + requestSerialize: serialize, + responseDeserialize: deserialize, + }; + let callProperties = { + argument: argument, + metadata: checkedArguments.metadata, + call: new call_1.ClientReadableStreamImpl(deserialize), + channel: this[CHANNEL_SYMBOL], + methodDefinition: methodDefinition, + callOptions: checkedArguments.options, + }; + if (this[CALL_INVOCATION_TRANSFORMER_SYMBOL]) { + callProperties = this[CALL_INVOCATION_TRANSFORMER_SYMBOL](callProperties); + } + const stream = callProperties.call; + const interceptorArgs = { + clientInterceptors: this[INTERCEPTOR_SYMBOL], + clientInterceptorProviders: this[INTERCEPTOR_PROVIDER_SYMBOL], + callInterceptors: (_a = callProperties.callOptions.interceptors) !== null && _a !== void 0 ? _a : [], + callInterceptorProviders: (_b = callProperties.callOptions.interceptor_providers) !== null && _b !== void 0 ? _b : [], + }; + const call = (0, client_interceptors_1.getInterceptingCall)(interceptorArgs, callProperties.methodDefinition, callProperties.callOptions, callProperties.channel); + /* This needs to happen before the emitter is used. Unfortunately we can't + * enforce this with the type system. We need to construct this emitter + * before calling the CallInvocationTransformer, and we need to create the + * call after that. */ + stream.call = call; + let receivedStatus = false; + let callerStackError = new Error(); + call.start(callProperties.metadata, { + onReceiveMetadata(metadata) { + stream.emit('metadata', metadata); + }, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + onReceiveMessage(message) { + stream.push(message); + }, + onReceiveStatus(status) { + if (receivedStatus) { + return; + } + receivedStatus = true; + stream.push(null); + if (status.code !== constants_1.Status.OK) { + const callerStack = getErrorStackString(callerStackError); + stream.emit('error', (0, call_1.callErrorFromStatus)(status, callerStack)); + } + /* Avoid retaining the callerStackError object in the call context of + * the status event handler. */ + callerStackError = null; + stream.emit('status', status); + }, + }); + call.sendMessage(argument); + call.halfClose(); + return stream; + } + makeBidiStreamRequest(method, serialize, deserialize, metadata, options) { + var _a, _b; + const checkedArguments = this.checkMetadataAndOptions(metadata, options); + const methodDefinition = { + path: method, + requestStream: true, + responseStream: true, + requestSerialize: serialize, + responseDeserialize: deserialize, + }; + let callProperties = { + metadata: checkedArguments.metadata, + call: new call_1.ClientDuplexStreamImpl(serialize, deserialize), + channel: this[CHANNEL_SYMBOL], + methodDefinition: methodDefinition, + callOptions: checkedArguments.options, + }; + if (this[CALL_INVOCATION_TRANSFORMER_SYMBOL]) { + callProperties = this[CALL_INVOCATION_TRANSFORMER_SYMBOL](callProperties); + } + const stream = callProperties.call; + const interceptorArgs = { + clientInterceptors: this[INTERCEPTOR_SYMBOL], + clientInterceptorProviders: this[INTERCEPTOR_PROVIDER_SYMBOL], + callInterceptors: (_a = callProperties.callOptions.interceptors) !== null && _a !== void 0 ? _a : [], + callInterceptorProviders: (_b = callProperties.callOptions.interceptor_providers) !== null && _b !== void 0 ? _b : [], + }; + const call = (0, client_interceptors_1.getInterceptingCall)(interceptorArgs, callProperties.methodDefinition, callProperties.callOptions, callProperties.channel); + /* This needs to happen before the emitter is used. Unfortunately we can't + * enforce this with the type system. We need to construct this emitter + * before calling the CallInvocationTransformer, and we need to create the + * call after that. */ + stream.call = call; + let receivedStatus = false; + let callerStackError = new Error(); + call.start(callProperties.metadata, { + onReceiveMetadata(metadata) { + stream.emit('metadata', metadata); + }, + onReceiveMessage(message) { + stream.push(message); + }, + onReceiveStatus(status) { + if (receivedStatus) { + return; + } + receivedStatus = true; + stream.push(null); + if (status.code !== constants_1.Status.OK) { + const callerStack = getErrorStackString(callerStackError); + stream.emit('error', (0, call_1.callErrorFromStatus)(status, callerStack)); + } + /* Avoid retaining the callerStackError object in the call context of + * the status event handler. */ + callerStackError = null; + stream.emit('status', status); + }, + }); + return stream; + } +} +exports.Client = Client; +//# sourceMappingURL=client.js.map + +/***/ }), + +/***/ 24130: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2021 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CompressionAlgorithms = void 0; +var CompressionAlgorithms; +(function (CompressionAlgorithms) { + CompressionAlgorithms[CompressionAlgorithms["identity"] = 0] = "identity"; + CompressionAlgorithms[CompressionAlgorithms["deflate"] = 1] = "deflate"; + CompressionAlgorithms[CompressionAlgorithms["gzip"] = 2] = "gzip"; +})(CompressionAlgorithms || (exports.CompressionAlgorithms = CompressionAlgorithms = {})); +//# sourceMappingURL=compression-algorithms.js.map + +/***/ }), + +/***/ 43430: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CompressionFilterFactory = exports.CompressionFilter = void 0; +const zlib = __nccwpck_require__(43106); +const compression_algorithms_1 = __nccwpck_require__(24130); +const constants_1 = __nccwpck_require__(68288); +const filter_1 = __nccwpck_require__(81467); +const logging = __nccwpck_require__(8536); +const isCompressionAlgorithmKey = (key) => { + return (typeof key === 'number' && typeof compression_algorithms_1.CompressionAlgorithms[key] === 'string'); +}; +class CompressionHandler { + /** + * @param message Raw uncompressed message bytes + * @param compress Indicates whether the message should be compressed + * @return Framed message, compressed if applicable + */ + async writeMessage(message, compress) { + let messageBuffer = message; + if (compress) { + messageBuffer = await this.compressMessage(messageBuffer); + } + const output = Buffer.allocUnsafe(messageBuffer.length + 5); + output.writeUInt8(compress ? 1 : 0, 0); + output.writeUInt32BE(messageBuffer.length, 1); + messageBuffer.copy(output, 5); + return output; + } + /** + * @param data Framed message, possibly compressed + * @return Uncompressed message + */ + async readMessage(data) { + const compressed = data.readUInt8(0) === 1; + let messageBuffer = data.slice(5); + if (compressed) { + messageBuffer = await this.decompressMessage(messageBuffer); + } + return messageBuffer; + } +} +class IdentityHandler extends CompressionHandler { + async compressMessage(message) { + return message; + } + async writeMessage(message, compress) { + const output = Buffer.allocUnsafe(message.length + 5); + /* With "identity" compression, messages should always be marked as + * uncompressed */ + output.writeUInt8(0, 0); + output.writeUInt32BE(message.length, 1); + message.copy(output, 5); + return output; + } + decompressMessage(message) { + return Promise.reject(new Error('Received compressed message but "grpc-encoding" header was identity')); + } +} +class DeflateHandler extends CompressionHandler { + constructor(maxRecvMessageLength) { + super(); + this.maxRecvMessageLength = maxRecvMessageLength; + } + compressMessage(message) { + return new Promise((resolve, reject) => { + zlib.deflate(message, (err, output) => { + if (err) { + reject(err); + } + else { + resolve(output); + } + }); + }); + } + decompressMessage(message) { + return new Promise((resolve, reject) => { + let totalLength = 0; + const messageParts = []; + const decompresser = zlib.createInflate(); + decompresser.on('error', (error) => { + reject({ + code: constants_1.Status.INTERNAL, + details: 'Failed to decompress deflate-encoded message' + }); + }); + decompresser.on('data', (chunk) => { + messageParts.push(chunk); + totalLength += chunk.byteLength; + if (this.maxRecvMessageLength !== -1 && totalLength > this.maxRecvMessageLength) { + decompresser.destroy(); + reject({ + code: constants_1.Status.RESOURCE_EXHAUSTED, + details: `Received message that decompresses to a size larger than ${this.maxRecvMessageLength}` + }); + } + }); + decompresser.on('end', () => { + resolve(Buffer.concat(messageParts)); + }); + decompresser.write(message); + decompresser.end(); + }); + } +} +class GzipHandler extends CompressionHandler { + constructor(maxRecvMessageLength) { + super(); + this.maxRecvMessageLength = maxRecvMessageLength; + } + compressMessage(message) { + return new Promise((resolve, reject) => { + zlib.gzip(message, (err, output) => { + if (err) { + reject(err); + } + else { + resolve(output); + } + }); + }); + } + decompressMessage(message) { + return new Promise((resolve, reject) => { + let totalLength = 0; + const messageParts = []; + const decompresser = zlib.createGunzip(); + decompresser.on('error', (error) => { + reject({ + code: constants_1.Status.INTERNAL, + details: 'Failed to decompress gzip-encoded message' + }); + }); + decompresser.on('data', (chunk) => { + messageParts.push(chunk); + totalLength += chunk.byteLength; + if (this.maxRecvMessageLength !== -1 && totalLength > this.maxRecvMessageLength) { + decompresser.destroy(); + reject({ + code: constants_1.Status.RESOURCE_EXHAUSTED, + details: `Received message that decompresses to a size larger than ${this.maxRecvMessageLength}` + }); + } + }); + decompresser.on('end', () => { + resolve(Buffer.concat(messageParts)); + }); + decompresser.write(message); + decompresser.end(); + }); + } +} +class UnknownHandler extends CompressionHandler { + constructor(compressionName) { + super(); + this.compressionName = compressionName; + } + compressMessage(message) { + return Promise.reject(new Error(`Received message compressed with unsupported compression method ${this.compressionName}`)); + } + decompressMessage(message) { + // This should be unreachable + return Promise.reject(new Error(`Compression method not supported: ${this.compressionName}`)); + } +} +function getCompressionHandler(compressionName, maxReceiveMessageSize) { + switch (compressionName) { + case 'identity': + return new IdentityHandler(); + case 'deflate': + return new DeflateHandler(maxReceiveMessageSize); + case 'gzip': + return new GzipHandler(maxReceiveMessageSize); + default: + return new UnknownHandler(compressionName); + } +} +class CompressionFilter extends filter_1.BaseFilter { + constructor(channelOptions, sharedFilterConfig) { + var _a, _b, _c; + super(); + this.sharedFilterConfig = sharedFilterConfig; + this.sendCompression = new IdentityHandler(); + this.receiveCompression = new IdentityHandler(); + this.currentCompressionAlgorithm = 'identity'; + const compressionAlgorithmKey = channelOptions['grpc.default_compression_algorithm']; + this.maxReceiveMessageLength = (_a = channelOptions['grpc.max_receive_message_length']) !== null && _a !== void 0 ? _a : constants_1.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH; + this.maxSendMessageLength = (_b = channelOptions['grpc.max_send_message_length']) !== null && _b !== void 0 ? _b : constants_1.DEFAULT_MAX_SEND_MESSAGE_LENGTH; + if (compressionAlgorithmKey !== undefined) { + if (isCompressionAlgorithmKey(compressionAlgorithmKey)) { + const clientSelectedEncoding = compression_algorithms_1.CompressionAlgorithms[compressionAlgorithmKey]; + const serverSupportedEncodings = (_c = sharedFilterConfig.serverSupportedEncodingHeader) === null || _c === void 0 ? void 0 : _c.split(','); + /** + * There are two possible situations here: + * 1) We don't have any info yet from the server about what compression it supports + * In that case we should just use what the client tells us to use + * 2) We've previously received a response from the server including a grpc-accept-encoding header + * In that case we only want to use the encoding chosen by the client if the server supports it + */ + if (!serverSupportedEncodings || + serverSupportedEncodings.includes(clientSelectedEncoding)) { + this.currentCompressionAlgorithm = clientSelectedEncoding; + this.sendCompression = getCompressionHandler(this.currentCompressionAlgorithm, -1); + } + } + else { + logging.log(constants_1.LogVerbosity.ERROR, `Invalid value provided for grpc.default_compression_algorithm option: ${compressionAlgorithmKey}`); + } + } + } + async sendMetadata(metadata) { + const headers = await metadata; + headers.set('grpc-accept-encoding', 'identity,deflate,gzip'); + headers.set('accept-encoding', 'identity'); + // No need to send the header if it's "identity" - behavior is identical; save the bandwidth + if (this.currentCompressionAlgorithm === 'identity') { + headers.remove('grpc-encoding'); + } + else { + headers.set('grpc-encoding', this.currentCompressionAlgorithm); + } + return headers; + } + receiveMetadata(metadata) { + const receiveEncoding = metadata.get('grpc-encoding'); + if (receiveEncoding.length > 0) { + const encoding = receiveEncoding[0]; + if (typeof encoding === 'string') { + this.receiveCompression = getCompressionHandler(encoding, this.maxReceiveMessageLength); + } + } + metadata.remove('grpc-encoding'); + /* Check to see if the compression we're using to send messages is supported by the server + * If not, reset the sendCompression filter and have it use the default IdentityHandler */ + const serverSupportedEncodingsHeader = metadata.get('grpc-accept-encoding')[0]; + if (serverSupportedEncodingsHeader) { + this.sharedFilterConfig.serverSupportedEncodingHeader = + serverSupportedEncodingsHeader; + const serverSupportedEncodings = serverSupportedEncodingsHeader.split(','); + if (!serverSupportedEncodings.includes(this.currentCompressionAlgorithm)) { + this.sendCompression = new IdentityHandler(); + this.currentCompressionAlgorithm = 'identity'; + } + } + metadata.remove('grpc-accept-encoding'); + return metadata; + } + async sendMessage(message) { + var _a; + /* This filter is special. The input message is the bare message bytes, + * and the output is a framed and possibly compressed message. For this + * reason, this filter should be at the bottom of the filter stack */ + const resolvedMessage = await message; + if (this.maxSendMessageLength !== -1 && resolvedMessage.message.length > this.maxSendMessageLength) { + throw { + code: constants_1.Status.RESOURCE_EXHAUSTED, + details: `Attempted to send message with a size larger than ${this.maxSendMessageLength}` + }; + } + let compress; + if (this.sendCompression instanceof IdentityHandler) { + compress = false; + } + else { + compress = (((_a = resolvedMessage.flags) !== null && _a !== void 0 ? _a : 0) & 2 /* WriteFlags.NoCompress */) === 0; + } + return { + message: await this.sendCompression.writeMessage(resolvedMessage.message, compress), + flags: resolvedMessage.flags, + }; + } + async receiveMessage(message) { + /* This filter is also special. The input message is framed and possibly + * compressed, and the output message is deframed and uncompressed. So + * this is another reason that this filter should be at the bottom of the + * filter stack. */ + return this.receiveCompression.readMessage(await message); + } +} +exports.CompressionFilter = CompressionFilter; +class CompressionFilterFactory { + constructor(channel, options) { + this.options = options; + this.sharedFilterConfig = {}; + } + createFilter() { + return new CompressionFilter(this.options, this.sharedFilterConfig); + } +} +exports.CompressionFilterFactory = CompressionFilterFactory; +//# sourceMappingURL=compression-filter.js.map + +/***/ }), + +/***/ 60778: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2021 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ConnectivityState = void 0; +var ConnectivityState; +(function (ConnectivityState) { + ConnectivityState[ConnectivityState["IDLE"] = 0] = "IDLE"; + ConnectivityState[ConnectivityState["CONNECTING"] = 1] = "CONNECTING"; + ConnectivityState[ConnectivityState["READY"] = 2] = "READY"; + ConnectivityState[ConnectivityState["TRANSIENT_FAILURE"] = 3] = "TRANSIENT_FAILURE"; + ConnectivityState[ConnectivityState["SHUTDOWN"] = 4] = "SHUTDOWN"; +})(ConnectivityState || (exports.ConnectivityState = ConnectivityState = {})); +//# sourceMappingURL=connectivity-state.js.map + +/***/ }), + +/***/ 68288: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH = exports.DEFAULT_MAX_SEND_MESSAGE_LENGTH = exports.Propagate = exports.LogVerbosity = exports.Status = void 0; +var Status; +(function (Status) { + Status[Status["OK"] = 0] = "OK"; + Status[Status["CANCELLED"] = 1] = "CANCELLED"; + Status[Status["UNKNOWN"] = 2] = "UNKNOWN"; + Status[Status["INVALID_ARGUMENT"] = 3] = "INVALID_ARGUMENT"; + Status[Status["DEADLINE_EXCEEDED"] = 4] = "DEADLINE_EXCEEDED"; + Status[Status["NOT_FOUND"] = 5] = "NOT_FOUND"; + Status[Status["ALREADY_EXISTS"] = 6] = "ALREADY_EXISTS"; + Status[Status["PERMISSION_DENIED"] = 7] = "PERMISSION_DENIED"; + Status[Status["RESOURCE_EXHAUSTED"] = 8] = "RESOURCE_EXHAUSTED"; + Status[Status["FAILED_PRECONDITION"] = 9] = "FAILED_PRECONDITION"; + Status[Status["ABORTED"] = 10] = "ABORTED"; + Status[Status["OUT_OF_RANGE"] = 11] = "OUT_OF_RANGE"; + Status[Status["UNIMPLEMENTED"] = 12] = "UNIMPLEMENTED"; + Status[Status["INTERNAL"] = 13] = "INTERNAL"; + Status[Status["UNAVAILABLE"] = 14] = "UNAVAILABLE"; + Status[Status["DATA_LOSS"] = 15] = "DATA_LOSS"; + Status[Status["UNAUTHENTICATED"] = 16] = "UNAUTHENTICATED"; +})(Status || (exports.Status = Status = {})); +var LogVerbosity; +(function (LogVerbosity) { + LogVerbosity[LogVerbosity["DEBUG"] = 0] = "DEBUG"; + LogVerbosity[LogVerbosity["INFO"] = 1] = "INFO"; + LogVerbosity[LogVerbosity["ERROR"] = 2] = "ERROR"; + LogVerbosity[LogVerbosity["NONE"] = 3] = "NONE"; +})(LogVerbosity || (exports.LogVerbosity = LogVerbosity = {})); +/** + * NOTE: This enum is not currently used in any implemented API in this + * library. It is included only for type parity with the other implementation. + */ +var Propagate; +(function (Propagate) { + Propagate[Propagate["DEADLINE"] = 1] = "DEADLINE"; + Propagate[Propagate["CENSUS_STATS_CONTEXT"] = 2] = "CENSUS_STATS_CONTEXT"; + Propagate[Propagate["CENSUS_TRACING_CONTEXT"] = 4] = "CENSUS_TRACING_CONTEXT"; + Propagate[Propagate["CANCELLATION"] = 8] = "CANCELLATION"; + // https://github.com/grpc/grpc/blob/master/include/grpc/impl/codegen/propagation_bits.h#L43 + Propagate[Propagate["DEFAULTS"] = 65535] = "DEFAULTS"; +})(Propagate || (exports.Propagate = Propagate = {})); +// -1 means unlimited +exports.DEFAULT_MAX_SEND_MESSAGE_LENGTH = -1; +// 4 MB default +exports.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH = 4 * 1024 * 1024; +//# sourceMappingURL=constants.js.map + +/***/ }), + +/***/ 39962: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.restrictControlPlaneStatusCode = restrictControlPlaneStatusCode; +const constants_1 = __nccwpck_require__(68288); +const INAPPROPRIATE_CONTROL_PLANE_CODES = [ + constants_1.Status.OK, + constants_1.Status.INVALID_ARGUMENT, + constants_1.Status.NOT_FOUND, + constants_1.Status.ALREADY_EXISTS, + constants_1.Status.FAILED_PRECONDITION, + constants_1.Status.ABORTED, + constants_1.Status.OUT_OF_RANGE, + constants_1.Status.DATA_LOSS, +]; +function restrictControlPlaneStatusCode(code, details) { + if (INAPPROPRIATE_CONTROL_PLANE_CODES.includes(code)) { + return { + code: constants_1.Status.INTERNAL, + details: `Invalid status from control plane: ${code} ${constants_1.Status[code]} ${details}`, + }; + } + else { + return { code, details }; + } +} +//# sourceMappingURL=control-plane-status.js.map + +/***/ }), + +/***/ 52173: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.minDeadline = minDeadline; +exports.getDeadlineTimeoutString = getDeadlineTimeoutString; +exports.getRelativeTimeout = getRelativeTimeout; +exports.deadlineToString = deadlineToString; +exports.formatDateDifference = formatDateDifference; +function minDeadline(...deadlineList) { + let minValue = Infinity; + for (const deadline of deadlineList) { + const deadlineMsecs = deadline instanceof Date ? deadline.getTime() : deadline; + if (deadlineMsecs < minValue) { + minValue = deadlineMsecs; + } + } + return minValue; +} +const units = [ + ['m', 1], + ['S', 1000], + ['M', 60 * 1000], + ['H', 60 * 60 * 1000], +]; +function getDeadlineTimeoutString(deadline) { + const now = new Date().getTime(); + if (deadline instanceof Date) { + deadline = deadline.getTime(); + } + const timeoutMs = Math.max(deadline - now, 0); + for (const [unit, factor] of units) { + const amount = timeoutMs / factor; + if (amount < 1e8) { + return String(Math.ceil(amount)) + unit; + } + } + throw new Error('Deadline is too far in the future'); +} +/** + * See https://nodejs.org/api/timers.html#settimeoutcallback-delay-args + * In particular, "When delay is larger than 2147483647 or less than 1, the + * delay will be set to 1. Non-integer delays are truncated to an integer." + * This number of milliseconds is almost 25 days. + */ +const MAX_TIMEOUT_TIME = 2147483647; +/** + * Get the timeout value that should be passed to setTimeout now for the timer + * to end at the deadline. For any deadline before now, the timer should end + * immediately, represented by a value of 0. For any deadline more than + * MAX_TIMEOUT_TIME milliseconds in the future, a timer cannot be set that will + * end at that time, so it is treated as infinitely far in the future. + * @param deadline + * @returns + */ +function getRelativeTimeout(deadline) { + const deadlineMs = deadline instanceof Date ? deadline.getTime() : deadline; + const now = new Date().getTime(); + const timeout = deadlineMs - now; + if (timeout < 0) { + return 0; + } + else if (timeout > MAX_TIMEOUT_TIME) { + return Infinity; + } + else { + return timeout; + } +} +function deadlineToString(deadline) { + if (deadline instanceof Date) { + return deadline.toISOString(); + } + else { + const dateDeadline = new Date(deadline); + if (Number.isNaN(dateDeadline.getTime())) { + return '' + deadline; + } + else { + return dateDeadline.toISOString(); + } + } +} +/** + * Calculate the difference between two dates as a number of seconds and format + * it as a string. + * @param startDate + * @param endDate + * @returns + */ +function formatDateDifference(startDate, endDate) { + return ((endDate.getTime() - startDate.getTime()) / 1000).toFixed(3) + 's'; +} +//# sourceMappingURL=deadline.js.map + +/***/ }), + +/***/ 63929: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.durationMessageToDuration = durationMessageToDuration; +exports.msToDuration = msToDuration; +exports.durationToMs = durationToMs; +exports.isDuration = isDuration; +exports.isDurationMessage = isDurationMessage; +exports.parseDuration = parseDuration; +exports.durationToString = durationToString; +function durationMessageToDuration(message) { + return { + seconds: Number.parseInt(message.seconds), + nanos: message.nanos + }; +} +function msToDuration(millis) { + return { + seconds: (millis / 1000) | 0, + nanos: ((millis % 1000) * 1000000) | 0, + }; +} +function durationToMs(duration) { + return (duration.seconds * 1000 + duration.nanos / 1000000) | 0; +} +function isDuration(value) { + return typeof value.seconds === 'number' && typeof value.nanos === 'number'; +} +function isDurationMessage(value) { + return typeof value.seconds === 'string' && typeof value.nanos === 'number'; +} +const durationRegex = /^(\d+)(?:\.(\d+))?s$/; +function parseDuration(value) { + const match = value.match(durationRegex); + if (!match) { + return null; + } + return { + seconds: Number.parseInt(match[1], 10), + nanos: match[2] ? Number.parseInt(match[2].padEnd(9, '0'), 10) : 0 + }; +} +function durationToString(duration) { + if (duration.nanos === 0) { + return `${duration.seconds}s`; + } + let scaleFactor; + if (duration.nanos % 1000000 === 0) { + scaleFactor = 1000000; + } + else if (duration.nanos % 1000 === 0) { + scaleFactor = 1000; + } + else { + scaleFactor = 1; + } + return `${duration.seconds}.${duration.nanos / scaleFactor}s`; +} +//# sourceMappingURL=duration.js.map + +/***/ }), + +/***/ 16964: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +var _a; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GRPC_NODE_USE_ALTERNATIVE_RESOLVER = void 0; +exports.GRPC_NODE_USE_ALTERNATIVE_RESOLVER = ((_a = process.env.GRPC_NODE_USE_ALTERNATIVE_RESOLVER) !== null && _a !== void 0 ? _a : 'false') === 'true'; +//# sourceMappingURL=environment.js.map + +/***/ }), + +/***/ 98219: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getErrorMessage = getErrorMessage; +exports.getErrorCode = getErrorCode; +function getErrorMessage(error) { + if (error instanceof Error) { + return error.message; + } + else { + return String(error); + } +} +function getErrorCode(error) { + if (typeof error === 'object' && + error !== null && + 'code' in error && + typeof error.code === 'number') { + return error.code; + } + else { + return null; + } +} +//# sourceMappingURL=error.js.map + +/***/ }), + +/***/ 20079: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX = exports.createCertificateProviderChannelCredentials = exports.FileWatcherCertificateProvider = exports.createCertificateProviderServerCredentials = exports.createServerCredentialsWithInterceptors = exports.BaseSubchannelWrapper = exports.registerAdminService = exports.FilterStackFactory = exports.BaseFilter = exports.statusOrFromError = exports.statusOrFromValue = exports.PickResultType = exports.QueuePicker = exports.UnavailablePicker = exports.ChildLoadBalancerHandler = exports.EndpointMap = exports.endpointHasAddress = exports.endpointToString = exports.subchannelAddressToString = exports.LeafLoadBalancer = exports.isLoadBalancerNameRegistered = exports.parseLoadBalancingConfig = exports.selectLbConfigFromList = exports.registerLoadBalancerType = exports.createChildChannelControlHelper = exports.BackoffTimeout = exports.parseDuration = exports.durationToMs = exports.splitHostPort = exports.uriToString = exports.CHANNEL_ARGS_CONFIG_SELECTOR_KEY = exports.createResolver = exports.registerResolver = exports.log = exports.trace = void 0; +var logging_1 = __nccwpck_require__(8536); +Object.defineProperty(exports, "trace", ({ enumerable: true, get: function () { return logging_1.trace; } })); +Object.defineProperty(exports, "log", ({ enumerable: true, get: function () { return logging_1.log; } })); +var resolver_1 = __nccwpck_require__(76255); +Object.defineProperty(exports, "registerResolver", ({ enumerable: true, get: function () { return resolver_1.registerResolver; } })); +Object.defineProperty(exports, "createResolver", ({ enumerable: true, get: function () { return resolver_1.createResolver; } })); +Object.defineProperty(exports, "CHANNEL_ARGS_CONFIG_SELECTOR_KEY", ({ enumerable: true, get: function () { return resolver_1.CHANNEL_ARGS_CONFIG_SELECTOR_KEY; } })); +var uri_parser_1 = __nccwpck_require__(56027); +Object.defineProperty(exports, "uriToString", ({ enumerable: true, get: function () { return uri_parser_1.uriToString; } })); +Object.defineProperty(exports, "splitHostPort", ({ enumerable: true, get: function () { return uri_parser_1.splitHostPort; } })); +var duration_1 = __nccwpck_require__(63929); +Object.defineProperty(exports, "durationToMs", ({ enumerable: true, get: function () { return duration_1.durationToMs; } })); +Object.defineProperty(exports, "parseDuration", ({ enumerable: true, get: function () { return duration_1.parseDuration; } })); +var backoff_timeout_1 = __nccwpck_require__(14643); +Object.defineProperty(exports, "BackoffTimeout", ({ enumerable: true, get: function () { return backoff_timeout_1.BackoffTimeout; } })); +var load_balancer_1 = __nccwpck_require__(7000); +Object.defineProperty(exports, "createChildChannelControlHelper", ({ enumerable: true, get: function () { return load_balancer_1.createChildChannelControlHelper; } })); +Object.defineProperty(exports, "registerLoadBalancerType", ({ enumerable: true, get: function () { return load_balancer_1.registerLoadBalancerType; } })); +Object.defineProperty(exports, "selectLbConfigFromList", ({ enumerable: true, get: function () { return load_balancer_1.selectLbConfigFromList; } })); +Object.defineProperty(exports, "parseLoadBalancingConfig", ({ enumerable: true, get: function () { return load_balancer_1.parseLoadBalancingConfig; } })); +Object.defineProperty(exports, "isLoadBalancerNameRegistered", ({ enumerable: true, get: function () { return load_balancer_1.isLoadBalancerNameRegistered; } })); +var load_balancer_pick_first_1 = __nccwpck_require__(78639); +Object.defineProperty(exports, "LeafLoadBalancer", ({ enumerable: true, get: function () { return load_balancer_pick_first_1.LeafLoadBalancer; } })); +var subchannel_address_1 = __nccwpck_require__(97021); +Object.defineProperty(exports, "subchannelAddressToString", ({ enumerable: true, get: function () { return subchannel_address_1.subchannelAddressToString; } })); +Object.defineProperty(exports, "endpointToString", ({ enumerable: true, get: function () { return subchannel_address_1.endpointToString; } })); +Object.defineProperty(exports, "endpointHasAddress", ({ enumerable: true, get: function () { return subchannel_address_1.endpointHasAddress; } })); +Object.defineProperty(exports, "EndpointMap", ({ enumerable: true, get: function () { return subchannel_address_1.EndpointMap; } })); +var load_balancer_child_handler_1 = __nccwpck_require__(99069); +Object.defineProperty(exports, "ChildLoadBalancerHandler", ({ enumerable: true, get: function () { return load_balancer_child_handler_1.ChildLoadBalancerHandler; } })); +var picker_1 = __nccwpck_require__(71663); +Object.defineProperty(exports, "UnavailablePicker", ({ enumerable: true, get: function () { return picker_1.UnavailablePicker; } })); +Object.defineProperty(exports, "QueuePicker", ({ enumerable: true, get: function () { return picker_1.QueuePicker; } })); +Object.defineProperty(exports, "PickResultType", ({ enumerable: true, get: function () { return picker_1.PickResultType; } })); +var call_interface_1 = __nccwpck_require__(61803); +Object.defineProperty(exports, "statusOrFromValue", ({ enumerable: true, get: function () { return call_interface_1.statusOrFromValue; } })); +Object.defineProperty(exports, "statusOrFromError", ({ enumerable: true, get: function () { return call_interface_1.statusOrFromError; } })); +var filter_1 = __nccwpck_require__(81467); +Object.defineProperty(exports, "BaseFilter", ({ enumerable: true, get: function () { return filter_1.BaseFilter; } })); +var filter_stack_1 = __nccwpck_require__(95726); +Object.defineProperty(exports, "FilterStackFactory", ({ enumerable: true, get: function () { return filter_stack_1.FilterStackFactory; } })); +var admin_1 = __nccwpck_require__(52914); +Object.defineProperty(exports, "registerAdminService", ({ enumerable: true, get: function () { return admin_1.registerAdminService; } })); +var subchannel_interface_1 = __nccwpck_require__(70098); +Object.defineProperty(exports, "BaseSubchannelWrapper", ({ enumerable: true, get: function () { return subchannel_interface_1.BaseSubchannelWrapper; } })); +var server_credentials_1 = __nccwpck_require__(36545); +Object.defineProperty(exports, "createServerCredentialsWithInterceptors", ({ enumerable: true, get: function () { return server_credentials_1.createServerCredentialsWithInterceptors; } })); +Object.defineProperty(exports, "createCertificateProviderServerCredentials", ({ enumerable: true, get: function () { return server_credentials_1.createCertificateProviderServerCredentials; } })); +var certificate_provider_1 = __nccwpck_require__(27974); +Object.defineProperty(exports, "FileWatcherCertificateProvider", ({ enumerable: true, get: function () { return certificate_provider_1.FileWatcherCertificateProvider; } })); +var channel_credentials_1 = __nccwpck_require__(32257); +Object.defineProperty(exports, "createCertificateProviderChannelCredentials", ({ enumerable: true, get: function () { return channel_credentials_1.createCertificateProviderChannelCredentials; } })); +var internal_channel_1 = __nccwpck_require__(40114); +Object.defineProperty(exports, "SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX", ({ enumerable: true, get: function () { return internal_channel_1.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX; } })); +//# sourceMappingURL=experimental.js.map + +/***/ }), + +/***/ 95726: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.FilterStackFactory = exports.FilterStack = void 0; +class FilterStack { + constructor(filters) { + this.filters = filters; + } + sendMetadata(metadata) { + let result = metadata; + for (let i = 0; i < this.filters.length; i++) { + result = this.filters[i].sendMetadata(result); + } + return result; + } + receiveMetadata(metadata) { + let result = metadata; + for (let i = this.filters.length - 1; i >= 0; i--) { + result = this.filters[i].receiveMetadata(result); + } + return result; + } + sendMessage(message) { + let result = message; + for (let i = 0; i < this.filters.length; i++) { + result = this.filters[i].sendMessage(result); + } + return result; + } + receiveMessage(message) { + let result = message; + for (let i = this.filters.length - 1; i >= 0; i--) { + result = this.filters[i].receiveMessage(result); + } + return result; + } + receiveTrailers(status) { + let result = status; + for (let i = this.filters.length - 1; i >= 0; i--) { + result = this.filters[i].receiveTrailers(result); + } + return result; + } + push(filters) { + this.filters.unshift(...filters); + } + getFilters() { + return this.filters; + } +} +exports.FilterStack = FilterStack; +class FilterStackFactory { + constructor(factories) { + this.factories = factories; + } + push(filterFactories) { + this.factories.unshift(...filterFactories); + } + clone() { + return new FilterStackFactory([...this.factories]); + } + createFilter() { + return new FilterStack(this.factories.map(factory => factory.createFilter())); + } +} +exports.FilterStackFactory = FilterStackFactory; +//# sourceMappingURL=filter-stack.js.map + +/***/ }), + +/***/ 81467: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BaseFilter = void 0; +class BaseFilter { + async sendMetadata(metadata) { + return metadata; + } + receiveMetadata(metadata) { + return metadata; + } + async sendMessage(message) { + return message; + } + async receiveMessage(message) { + return message; + } + receiveTrailers(status) { + return status; + } +} +exports.BaseFilter = BaseFilter; +//# sourceMappingURL=filter.js.map + +/***/ }), + +/***/ 18954: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.parseCIDR = parseCIDR; +exports.mapProxyName = mapProxyName; +exports.getProxiedConnection = getProxiedConnection; +const logging_1 = __nccwpck_require__(8536); +const constants_1 = __nccwpck_require__(68288); +const net_1 = __nccwpck_require__(69278); +const http = __nccwpck_require__(58611); +const logging = __nccwpck_require__(8536); +const subchannel_address_1 = __nccwpck_require__(97021); +const uri_parser_1 = __nccwpck_require__(56027); +const url_1 = __nccwpck_require__(87016); +const resolver_dns_1 = __nccwpck_require__(51149); +const TRACER_NAME = 'proxy'; +function trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); +} +function getProxyInfo() { + let proxyEnv = ''; + let envVar = ''; + /* Prefer using 'grpc_proxy'. Fallback on 'http_proxy' if it is not set. + * Also prefer using 'https_proxy' with fallback on 'http_proxy'. The + * fallback behavior can be removed if there's a demand for it. + */ + if (process.env.grpc_proxy) { + envVar = 'grpc_proxy'; + proxyEnv = process.env.grpc_proxy; + } + else if (process.env.https_proxy) { + envVar = 'https_proxy'; + proxyEnv = process.env.https_proxy; + } + else if (process.env.http_proxy) { + envVar = 'http_proxy'; + proxyEnv = process.env.http_proxy; + } + else { + return {}; + } + let proxyUrl; + try { + proxyUrl = new url_1.URL(proxyEnv); + } + catch (e) { + (0, logging_1.log)(constants_1.LogVerbosity.ERROR, `cannot parse value of "${envVar}" env var`); + return {}; + } + if (proxyUrl.protocol !== 'http:') { + (0, logging_1.log)(constants_1.LogVerbosity.ERROR, `"${proxyUrl.protocol}" scheme not supported in proxy URI`); + return {}; + } + let userCred = null; + if (proxyUrl.username) { + if (proxyUrl.password) { + (0, logging_1.log)(constants_1.LogVerbosity.INFO, 'userinfo found in proxy URI'); + userCred = decodeURIComponent(`${proxyUrl.username}:${proxyUrl.password}`); + } + else { + userCred = proxyUrl.username; + } + } + const hostname = proxyUrl.hostname; + let port = proxyUrl.port; + /* The proxy URL uses the scheme "http:", which has a default port number of + * 80. We need to set that explicitly here if it is omitted because otherwise + * it will use gRPC's default port 443. */ + if (port === '') { + port = '80'; + } + const result = { + address: `${hostname}:${port}`, + }; + if (userCred) { + result.creds = userCred; + } + trace('Proxy server ' + result.address + ' set by environment variable ' + envVar); + return result; +} +function getNoProxyHostList() { + /* Prefer using 'no_grpc_proxy'. Fallback on 'no_proxy' if it is not set. */ + let noProxyStr = process.env.no_grpc_proxy; + let envVar = 'no_grpc_proxy'; + if (!noProxyStr) { + noProxyStr = process.env.no_proxy; + envVar = 'no_proxy'; + } + if (noProxyStr) { + trace('No proxy server list set by environment variable ' + envVar); + return noProxyStr.split(','); + } + else { + return []; + } +} +/* + * The groups correspond to CIDR parts as follows: + * 1. ip + * 2. prefixLength + */ +function parseCIDR(cidrString) { + const splitRange = cidrString.split('/'); + if (splitRange.length !== 2) { + return null; + } + const prefixLength = parseInt(splitRange[1], 10); + if (!(0, net_1.isIPv4)(splitRange[0]) || Number.isNaN(prefixLength) || prefixLength < 0 || prefixLength > 32) { + return null; + } + return { + ip: ipToInt(splitRange[0]), + prefixLength: prefixLength + }; +} +function ipToInt(ip) { + return ip.split(".").reduce((acc, octet) => (acc << 8) + parseInt(octet, 10), 0); +} +function isIpInCIDR(cidr, serverHost) { + const ip = cidr.ip; + const mask = -1 << (32 - cidr.prefixLength); + const hostIP = ipToInt(serverHost); + return (hostIP & mask) === (ip & mask); +} +function hostMatchesNoProxyList(serverHost) { + for (const host of getNoProxyHostList()) { + const parsedCIDR = parseCIDR(host); + // host is a CIDR and serverHost is an IP address + if ((0, net_1.isIPv4)(serverHost) && parsedCIDR && isIpInCIDR(parsedCIDR, serverHost)) { + return true; + } + else if (serverHost.endsWith(host)) { + // host is a single IP or a domain name suffix + return true; + } + } + return false; +} +function mapProxyName(target, options) { + var _a; + const noProxyResult = { + target: target, + extraOptions: {}, + }; + if (((_a = options['grpc.enable_http_proxy']) !== null && _a !== void 0 ? _a : 1) === 0) { + return noProxyResult; + } + if (target.scheme === 'unix') { + return noProxyResult; + } + const proxyInfo = getProxyInfo(); + if (!proxyInfo.address) { + return noProxyResult; + } + const hostPort = (0, uri_parser_1.splitHostPort)(target.path); + if (!hostPort) { + return noProxyResult; + } + const serverHost = hostPort.host; + if (hostMatchesNoProxyList(serverHost)) { + trace('Not using proxy for target in no_proxy list: ' + (0, uri_parser_1.uriToString)(target)); + return noProxyResult; + } + const extraOptions = { + 'grpc.http_connect_target': (0, uri_parser_1.uriToString)(target), + }; + if (proxyInfo.creds) { + extraOptions['grpc.http_connect_creds'] = proxyInfo.creds; + } + return { + target: { + scheme: 'dns', + path: proxyInfo.address, + }, + extraOptions: extraOptions, + }; +} +function getProxiedConnection(address, channelOptions) { + var _a; + if (!('grpc.http_connect_target' in channelOptions)) { + return Promise.resolve(null); + } + const realTarget = channelOptions['grpc.http_connect_target']; + const parsedTarget = (0, uri_parser_1.parseUri)(realTarget); + if (parsedTarget === null) { + return Promise.resolve(null); + } + const splitHostPost = (0, uri_parser_1.splitHostPort)(parsedTarget.path); + if (splitHostPost === null) { + return Promise.resolve(null); + } + const hostPort = `${splitHostPost.host}:${(_a = splitHostPost.port) !== null && _a !== void 0 ? _a : resolver_dns_1.DEFAULT_PORT}`; + const options = { + method: 'CONNECT', + path: hostPort, + }; + const headers = { + Host: hostPort, + }; + // Connect to the subchannel address as a proxy + if ((0, subchannel_address_1.isTcpSubchannelAddress)(address)) { + options.host = address.host; + options.port = address.port; + } + else { + options.socketPath = address.path; + } + if ('grpc.http_connect_creds' in channelOptions) { + headers['Proxy-Authorization'] = + 'Basic ' + + Buffer.from(channelOptions['grpc.http_connect_creds']).toString('base64'); + } + options.headers = headers; + const proxyAddressString = (0, subchannel_address_1.subchannelAddressToString)(address); + trace('Using proxy ' + proxyAddressString + ' to connect to ' + options.path); + return new Promise((resolve, reject) => { + const request = http.request(options); + request.once('connect', (res, socket, head) => { + request.removeAllListeners(); + socket.removeAllListeners(); + if (res.statusCode === 200) { + trace('Successfully connected to ' + + options.path + + ' through proxy ' + + proxyAddressString); + // The HTTP client may have already read a few bytes of the proxied + // connection. If that's the case, put them back into the socket. + // See https://github.com/grpc/grpc-node/issues/2744. + if (head.length > 0) { + socket.unshift(head); + } + trace('Successfully established a plaintext connection to ' + + options.path + + ' through proxy ' + + proxyAddressString); + resolve(socket); + } + else { + (0, logging_1.log)(constants_1.LogVerbosity.ERROR, 'Failed to connect to ' + + options.path + + ' through proxy ' + + proxyAddressString + + ' with status ' + + res.statusCode); + reject(); + } + }); + request.once('error', err => { + request.removeAllListeners(); + (0, logging_1.log)(constants_1.LogVerbosity.ERROR, 'Failed to connect to proxy ' + + proxyAddressString + + ' with error ' + + err.message); + reject(); + }); + request.end(); + }); +} +//# sourceMappingURL=http_proxy.js.map + +/***/ }), + +/***/ 83033: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.experimental = exports.ServerMetricRecorder = exports.ServerInterceptingCall = exports.ResponderBuilder = exports.ServerListenerBuilder = exports.addAdminServicesToServer = exports.getChannelzHandlers = exports.getChannelzServiceDefinition = exports.InterceptorConfigurationError = exports.InterceptingCall = exports.RequesterBuilder = exports.ListenerBuilder = exports.StatusBuilder = exports.getClientChannel = exports.ServerCredentials = exports.Server = exports.setLogVerbosity = exports.setLogger = exports.load = exports.loadObject = exports.CallCredentials = exports.ChannelCredentials = exports.waitForClientReady = exports.closeClient = exports.Channel = exports.makeGenericClientConstructor = exports.makeClientConstructor = exports.loadPackageDefinition = exports.Client = exports.compressionAlgorithms = exports.propagate = exports.connectivityState = exports.status = exports.logVerbosity = exports.Metadata = exports.credentials = void 0; +const call_credentials_1 = __nccwpck_require__(73161); +Object.defineProperty(exports, "CallCredentials", ({ enumerable: true, get: function () { return call_credentials_1.CallCredentials; } })); +const channel_1 = __nccwpck_require__(86918); +Object.defineProperty(exports, "Channel", ({ enumerable: true, get: function () { return channel_1.ChannelImplementation; } })); +const compression_algorithms_1 = __nccwpck_require__(24130); +Object.defineProperty(exports, "compressionAlgorithms", ({ enumerable: true, get: function () { return compression_algorithms_1.CompressionAlgorithms; } })); +const connectivity_state_1 = __nccwpck_require__(60778); +Object.defineProperty(exports, "connectivityState", ({ enumerable: true, get: function () { return connectivity_state_1.ConnectivityState; } })); +const channel_credentials_1 = __nccwpck_require__(32257); +Object.defineProperty(exports, "ChannelCredentials", ({ enumerable: true, get: function () { return channel_credentials_1.ChannelCredentials; } })); +const client_1 = __nccwpck_require__(54210); +Object.defineProperty(exports, "Client", ({ enumerable: true, get: function () { return client_1.Client; } })); +const constants_1 = __nccwpck_require__(68288); +Object.defineProperty(exports, "logVerbosity", ({ enumerable: true, get: function () { return constants_1.LogVerbosity; } })); +Object.defineProperty(exports, "status", ({ enumerable: true, get: function () { return constants_1.Status; } })); +Object.defineProperty(exports, "propagate", ({ enumerable: true, get: function () { return constants_1.Propagate; } })); +const logging = __nccwpck_require__(8536); +const make_client_1 = __nccwpck_require__(76983); +Object.defineProperty(exports, "loadPackageDefinition", ({ enumerable: true, get: function () { return make_client_1.loadPackageDefinition; } })); +Object.defineProperty(exports, "makeClientConstructor", ({ enumerable: true, get: function () { return make_client_1.makeClientConstructor; } })); +Object.defineProperty(exports, "makeGenericClientConstructor", ({ enumerable: true, get: function () { return make_client_1.makeClientConstructor; } })); +const metadata_1 = __nccwpck_require__(36100); +Object.defineProperty(exports, "Metadata", ({ enumerable: true, get: function () { return metadata_1.Metadata; } })); +const server_1 = __nccwpck_require__(12390); +Object.defineProperty(exports, "Server", ({ enumerable: true, get: function () { return server_1.Server; } })); +const server_credentials_1 = __nccwpck_require__(36545); +Object.defineProperty(exports, "ServerCredentials", ({ enumerable: true, get: function () { return server_credentials_1.ServerCredentials; } })); +const status_builder_1 = __nccwpck_require__(7901); +Object.defineProperty(exports, "StatusBuilder", ({ enumerable: true, get: function () { return status_builder_1.StatusBuilder; } })); +/**** Client Credentials ****/ +// Using assign only copies enumerable properties, which is what we want +exports.credentials = { + /** + * Combine a ChannelCredentials with any number of CallCredentials into a + * single ChannelCredentials object. + * @param channelCredentials The ChannelCredentials object. + * @param callCredentials Any number of CallCredentials objects. + * @return The resulting ChannelCredentials object. + */ + combineChannelCredentials: (channelCredentials, ...callCredentials) => { + return callCredentials.reduce((acc, other) => acc.compose(other), channelCredentials); + }, + /** + * Combine any number of CallCredentials into a single CallCredentials + * object. + * @param first The first CallCredentials object. + * @param additional Any number of additional CallCredentials objects. + * @return The resulting CallCredentials object. + */ + combineCallCredentials: (first, ...additional) => { + return additional.reduce((acc, other) => acc.compose(other), first); + }, + // from channel-credentials.ts + createInsecure: channel_credentials_1.ChannelCredentials.createInsecure, + createSsl: channel_credentials_1.ChannelCredentials.createSsl, + createFromSecureContext: channel_credentials_1.ChannelCredentials.createFromSecureContext, + // from call-credentials.ts + createFromMetadataGenerator: call_credentials_1.CallCredentials.createFromMetadataGenerator, + createFromGoogleCredential: call_credentials_1.CallCredentials.createFromGoogleCredential, + createEmpty: call_credentials_1.CallCredentials.createEmpty, +}; +/** + * Close a Client object. + * @param client The client to close. + */ +const closeClient = (client) => client.close(); +exports.closeClient = closeClient; +const waitForClientReady = (client, deadline, callback) => client.waitForReady(deadline, callback); +exports.waitForClientReady = waitForClientReady; +/* eslint-enable @typescript-eslint/no-explicit-any */ +/**** Unimplemented function stubs ****/ +/* eslint-disable @typescript-eslint/no-explicit-any */ +const loadObject = (value, options) => { + throw new Error('Not available in this library. Use @grpc/proto-loader and loadPackageDefinition instead'); +}; +exports.loadObject = loadObject; +const load = (filename, format, options) => { + throw new Error('Not available in this library. Use @grpc/proto-loader and loadPackageDefinition instead'); +}; +exports.load = load; +const setLogger = (logger) => { + logging.setLogger(logger); +}; +exports.setLogger = setLogger; +const setLogVerbosity = (verbosity) => { + logging.setLoggerVerbosity(verbosity); +}; +exports.setLogVerbosity = setLogVerbosity; +const getClientChannel = (client) => { + return client_1.Client.prototype.getChannel.call(client); +}; +exports.getClientChannel = getClientChannel; +var client_interceptors_1 = __nccwpck_require__(82451); +Object.defineProperty(exports, "ListenerBuilder", ({ enumerable: true, get: function () { return client_interceptors_1.ListenerBuilder; } })); +Object.defineProperty(exports, "RequesterBuilder", ({ enumerable: true, get: function () { return client_interceptors_1.RequesterBuilder; } })); +Object.defineProperty(exports, "InterceptingCall", ({ enumerable: true, get: function () { return client_interceptors_1.InterceptingCall; } })); +Object.defineProperty(exports, "InterceptorConfigurationError", ({ enumerable: true, get: function () { return client_interceptors_1.InterceptorConfigurationError; } })); +var channelz_1 = __nccwpck_require__(68198); +Object.defineProperty(exports, "getChannelzServiceDefinition", ({ enumerable: true, get: function () { return channelz_1.getChannelzServiceDefinition; } })); +Object.defineProperty(exports, "getChannelzHandlers", ({ enumerable: true, get: function () { return channelz_1.getChannelzHandlers; } })); +var admin_1 = __nccwpck_require__(52914); +Object.defineProperty(exports, "addAdminServicesToServer", ({ enumerable: true, get: function () { return admin_1.addAdminServicesToServer; } })); +var server_interceptors_1 = __nccwpck_require__(42151); +Object.defineProperty(exports, "ServerListenerBuilder", ({ enumerable: true, get: function () { return server_interceptors_1.ServerListenerBuilder; } })); +Object.defineProperty(exports, "ResponderBuilder", ({ enumerable: true, get: function () { return server_interceptors_1.ResponderBuilder; } })); +Object.defineProperty(exports, "ServerInterceptingCall", ({ enumerable: true, get: function () { return server_interceptors_1.ServerInterceptingCall; } })); +var orca_1 = __nccwpck_require__(82124); +Object.defineProperty(exports, "ServerMetricRecorder", ({ enumerable: true, get: function () { return orca_1.ServerMetricRecorder; } })); +const experimental = __nccwpck_require__(20079); +exports.experimental = experimental; +const resolver_dns = __nccwpck_require__(51149); +const resolver_uds = __nccwpck_require__(69252); +const resolver_ip = __nccwpck_require__(52617); +const load_balancer_pick_first = __nccwpck_require__(78639); +const load_balancer_round_robin = __nccwpck_require__(71936); +const load_balancer_outlier_detection = __nccwpck_require__(95343); +const load_balancer_weighted_round_robin = __nccwpck_require__(47616); +const channelz = __nccwpck_require__(68198); +(() => { + resolver_dns.setup(); + resolver_uds.setup(); + resolver_ip.setup(); + load_balancer_pick_first.setup(); + load_balancer_round_robin.setup(); + load_balancer_outlier_detection.setup(); + load_balancer_weighted_round_robin.setup(); + channelz.setup(); +})(); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 40114: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.InternalChannel = exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX = void 0; +const channel_credentials_1 = __nccwpck_require__(32257); +const resolving_load_balancer_1 = __nccwpck_require__(63962); +const subchannel_pool_1 = __nccwpck_require__(48695); +const picker_1 = __nccwpck_require__(71663); +const metadata_1 = __nccwpck_require__(36100); +const constants_1 = __nccwpck_require__(68288); +const filter_stack_1 = __nccwpck_require__(95726); +const compression_filter_1 = __nccwpck_require__(43430); +const resolver_1 = __nccwpck_require__(76255); +const logging_1 = __nccwpck_require__(8536); +const http_proxy_1 = __nccwpck_require__(18954); +const uri_parser_1 = __nccwpck_require__(56027); +const connectivity_state_1 = __nccwpck_require__(60778); +const channelz_1 = __nccwpck_require__(68198); +const load_balancing_call_1 = __nccwpck_require__(58944); +const deadline_1 = __nccwpck_require__(52173); +const resolving_call_1 = __nccwpck_require__(8023); +const call_number_1 = __nccwpck_require__(35675); +const control_plane_status_1 = __nccwpck_require__(39962); +const retrying_call_1 = __nccwpck_require__(2532); +const subchannel_interface_1 = __nccwpck_require__(70098); +/** + * See https://nodejs.org/api/timers.html#timers_setinterval_callback_delay_args + */ +const MAX_TIMEOUT_TIME = 2147483647; +const MIN_IDLE_TIMEOUT_MS = 1000; +// 30 minutes +const DEFAULT_IDLE_TIMEOUT_MS = 30 * 60 * 1000; +const RETRY_THROTTLER_MAP = new Map(); +const DEFAULT_RETRY_BUFFER_SIZE_BYTES = 1 << 24; // 16 MB +const DEFAULT_PER_RPC_RETRY_BUFFER_SIZE_BYTES = 1 << 20; // 1 MB +class ChannelSubchannelWrapper extends subchannel_interface_1.BaseSubchannelWrapper { + constructor(childSubchannel, channel) { + super(childSubchannel); + this.channel = channel; + this.refCount = 0; + this.subchannelStateListener = (subchannel, previousState, newState, keepaliveTime) => { + channel.throttleKeepalive(keepaliveTime); + }; + } + ref() { + if (this.refCount === 0) { + this.child.addConnectivityStateListener(this.subchannelStateListener); + this.channel.addWrappedSubchannel(this); + } + this.child.ref(); + this.refCount += 1; + } + unref() { + this.child.unref(); + this.refCount -= 1; + if (this.refCount <= 0) { + this.child.removeConnectivityStateListener(this.subchannelStateListener); + this.channel.removeWrappedSubchannel(this); + } + } +} +class ShutdownPicker { + pick(pickArgs) { + return { + pickResultType: picker_1.PickResultType.DROP, + status: { + code: constants_1.Status.UNAVAILABLE, + details: 'Channel closed before call started', + metadata: new metadata_1.Metadata() + }, + subchannel: null, + onCallStarted: null, + onCallEnded: null + }; + } +} +exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX = 'grpc.internal.no_subchannel'; +class ChannelzInfoTracker { + constructor(target) { + this.target = target; + this.trace = new channelz_1.ChannelzTrace(); + this.callTracker = new channelz_1.ChannelzCallTracker(); + this.childrenTracker = new channelz_1.ChannelzChildrenTracker(); + this.state = connectivity_state_1.ConnectivityState.IDLE; + } + getChannelzInfoCallback() { + return () => { + return { + target: this.target, + state: this.state, + trace: this.trace, + callTracker: this.callTracker, + children: this.childrenTracker.getChildLists() + }; + }; + } +} +class InternalChannel { + constructor(target, credentials, options) { + var _a, _b, _c, _d, _e, _f; + this.credentials = credentials; + this.options = options; + this.connectivityState = connectivity_state_1.ConnectivityState.IDLE; + this.currentPicker = new picker_1.UnavailablePicker(); + /** + * Calls queued up to get a call config. Should only be populated before the + * first time the resolver returns a result, which includes the ConfigSelector. + */ + this.configSelectionQueue = []; + this.pickQueue = []; + this.connectivityStateWatchers = []; + /** + * This timer does not do anything on its own. Its purpose is to hold the + * event loop open while there are any pending calls for the channel that + * have not yet been assigned to specific subchannels. In other words, + * the invariant is that callRefTimer is reffed if and only if pickQueue + * is non-empty. In addition, the timer is null while the state is IDLE or + * SHUTDOWN and there are no pending calls. + */ + this.callRefTimer = null; + this.configSelector = null; + /** + * This is the error from the name resolver if it failed most recently. It + * is only used to end calls that start while there is no config selector + * and the name resolver is in backoff, so it should be nulled if + * configSelector becomes set or the channel state becomes anything other + * than TRANSIENT_FAILURE. + */ + this.currentResolutionError = null; + this.wrappedSubchannels = new Set(); + this.callCount = 0; + this.idleTimer = null; + // Channelz info + this.channelzEnabled = true; + /** + * Randomly generated ID to be passed to the config selector, for use by + * ring_hash in xDS. An integer distributed approximately uniformly between + * 0 and MAX_SAFE_INTEGER. + */ + this.randomChannelId = Math.floor(Math.random() * Number.MAX_SAFE_INTEGER); + if (typeof target !== 'string') { + throw new TypeError('Channel target must be a string'); + } + if (!(credentials instanceof channel_credentials_1.ChannelCredentials)) { + throw new TypeError('Channel credentials must be a ChannelCredentials object'); + } + if (options) { + if (typeof options !== 'object') { + throw new TypeError('Channel options must be an object'); + } + } + this.channelzInfoTracker = new ChannelzInfoTracker(target); + const originalTargetUri = (0, uri_parser_1.parseUri)(target); + if (originalTargetUri === null) { + throw new Error(`Could not parse target name "${target}"`); + } + /* This ensures that the target has a scheme that is registered with the + * resolver */ + const defaultSchemeMapResult = (0, resolver_1.mapUriDefaultScheme)(originalTargetUri); + if (defaultSchemeMapResult === null) { + throw new Error(`Could not find a default scheme for target name "${target}"`); + } + if (this.options['grpc.enable_channelz'] === 0) { + this.channelzEnabled = false; + } + this.channelzRef = (0, channelz_1.registerChannelzChannel)(target, this.channelzInfoTracker.getChannelzInfoCallback(), this.channelzEnabled); + if (this.channelzEnabled) { + this.channelzInfoTracker.trace.addTrace('CT_INFO', 'Channel created'); + } + if (this.options['grpc.default_authority']) { + this.defaultAuthority = this.options['grpc.default_authority']; + } + else { + this.defaultAuthority = (0, resolver_1.getDefaultAuthority)(defaultSchemeMapResult); + } + const proxyMapResult = (0, http_proxy_1.mapProxyName)(defaultSchemeMapResult, options); + this.target = proxyMapResult.target; + this.options = Object.assign({}, this.options, proxyMapResult.extraOptions); + /* The global boolean parameter to getSubchannelPool has the inverse meaning to what + * the grpc.use_local_subchannel_pool channel option means. */ + this.subchannelPool = (0, subchannel_pool_1.getSubchannelPool)(((_a = this.options['grpc.use_local_subchannel_pool']) !== null && _a !== void 0 ? _a : 0) === 0); + this.retryBufferTracker = new retrying_call_1.MessageBufferTracker((_b = this.options['grpc.retry_buffer_size']) !== null && _b !== void 0 ? _b : DEFAULT_RETRY_BUFFER_SIZE_BYTES, (_c = this.options['grpc.per_rpc_retry_buffer_size']) !== null && _c !== void 0 ? _c : DEFAULT_PER_RPC_RETRY_BUFFER_SIZE_BYTES); + this.keepaliveTime = (_d = this.options['grpc.keepalive_time_ms']) !== null && _d !== void 0 ? _d : -1; + this.idleTimeoutMs = Math.max((_e = this.options['grpc.client_idle_timeout_ms']) !== null && _e !== void 0 ? _e : DEFAULT_IDLE_TIMEOUT_MS, MIN_IDLE_TIMEOUT_MS); + const channelControlHelper = { + createSubchannel: (subchannelAddress, subchannelArgs) => { + const finalSubchannelArgs = {}; + for (const [key, value] of Object.entries(subchannelArgs)) { + if (!key.startsWith(exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX)) { + finalSubchannelArgs[key] = value; + } + } + const subchannel = this.subchannelPool.getOrCreateSubchannel(this.target, subchannelAddress, finalSubchannelArgs, this.credentials); + subchannel.throttleKeepalive(this.keepaliveTime); + if (this.channelzEnabled) { + this.channelzInfoTracker.trace.addTrace('CT_INFO', 'Created subchannel or used existing subchannel', subchannel.getChannelzRef()); + } + const wrappedSubchannel = new ChannelSubchannelWrapper(subchannel, this); + return wrappedSubchannel; + }, + updateState: (connectivityState, picker) => { + this.currentPicker = picker; + const queueCopy = this.pickQueue.slice(); + this.pickQueue = []; + if (queueCopy.length > 0) { + this.callRefTimerUnref(); + } + for (const call of queueCopy) { + call.doPick(); + } + this.updateState(connectivityState); + }, + requestReresolution: () => { + // This should never be called. + throw new Error('Resolving load balancer should never call requestReresolution'); + }, + addChannelzChild: (child) => { + if (this.channelzEnabled) { + this.channelzInfoTracker.childrenTracker.refChild(child); + } + }, + removeChannelzChild: (child) => { + if (this.channelzEnabled) { + this.channelzInfoTracker.childrenTracker.unrefChild(child); + } + }, + }; + this.resolvingLoadBalancer = new resolving_load_balancer_1.ResolvingLoadBalancer(this.target, channelControlHelper, this.options, (serviceConfig, configSelector) => { + var _a; + if (serviceConfig.retryThrottling) { + RETRY_THROTTLER_MAP.set(this.getTarget(), new retrying_call_1.RetryThrottler(serviceConfig.retryThrottling.maxTokens, serviceConfig.retryThrottling.tokenRatio, RETRY_THROTTLER_MAP.get(this.getTarget()))); + } + else { + RETRY_THROTTLER_MAP.delete(this.getTarget()); + } + if (this.channelzEnabled) { + this.channelzInfoTracker.trace.addTrace('CT_INFO', 'Address resolution succeeded'); + } + (_a = this.configSelector) === null || _a === void 0 ? void 0 : _a.unref(); + this.configSelector = configSelector; + this.currentResolutionError = null; + /* We process the queue asynchronously to ensure that the corresponding + * load balancer update has completed. */ + process.nextTick(() => { + const localQueue = this.configSelectionQueue; + this.configSelectionQueue = []; + if (localQueue.length > 0) { + this.callRefTimerUnref(); + } + for (const call of localQueue) { + call.getConfig(); + } + }); + }, status => { + if (this.channelzEnabled) { + this.channelzInfoTracker.trace.addTrace('CT_WARNING', 'Address resolution failed with code ' + + status.code + + ' and details "' + + status.details + + '"'); + } + if (this.configSelectionQueue.length > 0) { + this.trace('Name resolution failed with calls queued for config selection'); + } + if (this.configSelector === null) { + this.currentResolutionError = Object.assign(Object.assign({}, (0, control_plane_status_1.restrictControlPlaneStatusCode)(status.code, status.details)), { metadata: status.metadata }); + } + const localQueue = this.configSelectionQueue; + this.configSelectionQueue = []; + if (localQueue.length > 0) { + this.callRefTimerUnref(); + } + for (const call of localQueue) { + call.reportResolverError(status); + } + }); + this.filterStackFactory = new filter_stack_1.FilterStackFactory([ + new compression_filter_1.CompressionFilterFactory(this, this.options), + ]); + this.trace('Channel constructed with options ' + + JSON.stringify(options, undefined, 2)); + const error = new Error(); + if ((0, logging_1.isTracerEnabled)('channel_stacktrace')) { + (0, logging_1.trace)(constants_1.LogVerbosity.DEBUG, 'channel_stacktrace', '(' + + this.channelzRef.id + + ') ' + + 'Channel constructed \n' + + ((_f = error.stack) === null || _f === void 0 ? void 0 : _f.substring(error.stack.indexOf('\n') + 1))); + } + this.lastActivityTimestamp = new Date(); + } + trace(text, verbosityOverride) { + (0, logging_1.trace)(verbosityOverride !== null && verbosityOverride !== void 0 ? verbosityOverride : constants_1.LogVerbosity.DEBUG, 'channel', '(' + this.channelzRef.id + ') ' + (0, uri_parser_1.uriToString)(this.target) + ' ' + text); + } + callRefTimerRef() { + var _a, _b, _c, _d; + if (!this.callRefTimer) { + this.callRefTimer = setInterval(() => { }, MAX_TIMEOUT_TIME); + } + // If the hasRef function does not exist, always run the code + if (!((_b = (_a = this.callRefTimer).hasRef) === null || _b === void 0 ? void 0 : _b.call(_a))) { + this.trace('callRefTimer.ref | configSelectionQueue.length=' + + this.configSelectionQueue.length + + ' pickQueue.length=' + + this.pickQueue.length); + (_d = (_c = this.callRefTimer).ref) === null || _d === void 0 ? void 0 : _d.call(_c); + } + } + callRefTimerUnref() { + var _a, _b, _c; + // If the timer or the hasRef function does not exist, always run the code + if (!((_a = this.callRefTimer) === null || _a === void 0 ? void 0 : _a.hasRef) || this.callRefTimer.hasRef()) { + this.trace('callRefTimer.unref | configSelectionQueue.length=' + + this.configSelectionQueue.length + + ' pickQueue.length=' + + this.pickQueue.length); + (_c = (_b = this.callRefTimer) === null || _b === void 0 ? void 0 : _b.unref) === null || _c === void 0 ? void 0 : _c.call(_b); + } + } + removeConnectivityStateWatcher(watcherObject) { + const watcherIndex = this.connectivityStateWatchers.findIndex(value => value === watcherObject); + if (watcherIndex >= 0) { + this.connectivityStateWatchers.splice(watcherIndex, 1); + } + } + updateState(newState) { + (0, logging_1.trace)(constants_1.LogVerbosity.DEBUG, 'connectivity_state', '(' + + this.channelzRef.id + + ') ' + + (0, uri_parser_1.uriToString)(this.target) + + ' ' + + connectivity_state_1.ConnectivityState[this.connectivityState] + + ' -> ' + + connectivity_state_1.ConnectivityState[newState]); + if (this.channelzEnabled) { + this.channelzInfoTracker.trace.addTrace('CT_INFO', 'Connectivity state change to ' + connectivity_state_1.ConnectivityState[newState]); + } + this.connectivityState = newState; + this.channelzInfoTracker.state = newState; + const watchersCopy = this.connectivityStateWatchers.slice(); + for (const watcherObject of watchersCopy) { + if (newState !== watcherObject.currentState) { + if (watcherObject.timer) { + clearTimeout(watcherObject.timer); + } + this.removeConnectivityStateWatcher(watcherObject); + watcherObject.callback(); + } + } + if (newState !== connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { + this.currentResolutionError = null; + } + } + throttleKeepalive(newKeepaliveTime) { + if (newKeepaliveTime > this.keepaliveTime) { + this.keepaliveTime = newKeepaliveTime; + for (const wrappedSubchannel of this.wrappedSubchannels) { + wrappedSubchannel.throttleKeepalive(newKeepaliveTime); + } + } + } + addWrappedSubchannel(wrappedSubchannel) { + this.wrappedSubchannels.add(wrappedSubchannel); + } + removeWrappedSubchannel(wrappedSubchannel) { + this.wrappedSubchannels.delete(wrappedSubchannel); + } + doPick(metadata, extraPickInfo) { + return this.currentPicker.pick({ + metadata: metadata, + extraPickInfo: extraPickInfo, + }); + } + queueCallForPick(call) { + this.pickQueue.push(call); + this.callRefTimerRef(); + } + getConfig(method, metadata) { + if (this.connectivityState !== connectivity_state_1.ConnectivityState.SHUTDOWN) { + this.resolvingLoadBalancer.exitIdle(); + } + if (this.configSelector) { + return { + type: 'SUCCESS', + config: this.configSelector.invoke(method, metadata, this.randomChannelId), + }; + } + else { + if (this.currentResolutionError) { + return { + type: 'ERROR', + error: this.currentResolutionError, + }; + } + else { + return { + type: 'NONE', + }; + } + } + } + queueCallForConfig(call) { + this.configSelectionQueue.push(call); + this.callRefTimerRef(); + } + enterIdle() { + this.resolvingLoadBalancer.destroy(); + this.updateState(connectivity_state_1.ConnectivityState.IDLE); + this.currentPicker = new picker_1.QueuePicker(this.resolvingLoadBalancer); + if (this.idleTimer) { + clearTimeout(this.idleTimer); + this.idleTimer = null; + } + if (this.callRefTimer) { + clearInterval(this.callRefTimer); + this.callRefTimer = null; + } + } + startIdleTimeout(timeoutMs) { + var _a, _b; + this.idleTimer = setTimeout(() => { + if (this.callCount > 0) { + /* If there is currently a call, the channel will not go idle for a + * period of at least idleTimeoutMs, so check again after that time. + */ + this.startIdleTimeout(this.idleTimeoutMs); + return; + } + const now = new Date(); + const timeSinceLastActivity = now.valueOf() - this.lastActivityTimestamp.valueOf(); + if (timeSinceLastActivity >= this.idleTimeoutMs) { + this.trace('Idle timer triggered after ' + + this.idleTimeoutMs + + 'ms of inactivity'); + this.enterIdle(); + } + else { + /* Whenever the timer fires with the latest activity being too recent, + * set the timer again for the time when the time since the last + * activity is equal to the timeout. This should result in the timer + * firing no more than once every idleTimeoutMs/2 on average. */ + this.startIdleTimeout(this.idleTimeoutMs - timeSinceLastActivity); + } + }, timeoutMs); + (_b = (_a = this.idleTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + } + maybeStartIdleTimer() { + if (this.connectivityState !== connectivity_state_1.ConnectivityState.SHUTDOWN && + !this.idleTimer) { + this.startIdleTimeout(this.idleTimeoutMs); + } + } + onCallStart() { + if (this.channelzEnabled) { + this.channelzInfoTracker.callTracker.addCallStarted(); + } + this.callCount += 1; + } + onCallEnd(status) { + if (this.channelzEnabled) { + if (status.code === constants_1.Status.OK) { + this.channelzInfoTracker.callTracker.addCallSucceeded(); + } + else { + this.channelzInfoTracker.callTracker.addCallFailed(); + } + } + this.callCount -= 1; + this.lastActivityTimestamp = new Date(); + this.maybeStartIdleTimer(); + } + createLoadBalancingCall(callConfig, method, host, credentials, deadline) { + const callNumber = (0, call_number_1.getNextCallNumber)(); + this.trace('createLoadBalancingCall [' + callNumber + '] method="' + method + '"'); + return new load_balancing_call_1.LoadBalancingCall(this, callConfig, method, host, credentials, deadline, callNumber); + } + createRetryingCall(callConfig, method, host, credentials, deadline) { + const callNumber = (0, call_number_1.getNextCallNumber)(); + this.trace('createRetryingCall [' + callNumber + '] method="' + method + '"'); + return new retrying_call_1.RetryingCall(this, callConfig, method, host, credentials, deadline, callNumber, this.retryBufferTracker, RETRY_THROTTLER_MAP.get(this.getTarget())); + } + createResolvingCall(method, deadline, host, parentCall, propagateFlags) { + const callNumber = (0, call_number_1.getNextCallNumber)(); + this.trace('createResolvingCall [' + + callNumber + + '] method="' + + method + + '", deadline=' + + (0, deadline_1.deadlineToString)(deadline)); + const finalOptions = { + deadline: deadline, + flags: propagateFlags !== null && propagateFlags !== void 0 ? propagateFlags : constants_1.Propagate.DEFAULTS, + host: host !== null && host !== void 0 ? host : this.defaultAuthority, + parentCall: parentCall, + }; + const call = new resolving_call_1.ResolvingCall(this, method, finalOptions, this.filterStackFactory.clone(), callNumber); + this.onCallStart(); + call.addStatusWatcher(status => { + this.onCallEnd(status); + }); + return call; + } + close() { + var _a; + this.resolvingLoadBalancer.destroy(); + this.updateState(connectivity_state_1.ConnectivityState.SHUTDOWN); + this.currentPicker = new ShutdownPicker(); + for (const call of this.configSelectionQueue) { + call.cancelWithStatus(constants_1.Status.UNAVAILABLE, 'Channel closed before call started'); + } + this.configSelectionQueue = []; + for (const call of this.pickQueue) { + call.cancelWithStatus(constants_1.Status.UNAVAILABLE, 'Channel closed before call started'); + } + this.pickQueue = []; + if (this.callRefTimer) { + clearInterval(this.callRefTimer); + } + if (this.idleTimer) { + clearTimeout(this.idleTimer); + } + if (this.channelzEnabled) { + (0, channelz_1.unregisterChannelzRef)(this.channelzRef); + } + this.subchannelPool.unrefUnusedSubchannels(); + (_a = this.configSelector) === null || _a === void 0 ? void 0 : _a.unref(); + this.configSelector = null; + } + getTarget() { + return (0, uri_parser_1.uriToString)(this.target); + } + getConnectivityState(tryToConnect) { + const connectivityState = this.connectivityState; + if (tryToConnect) { + this.resolvingLoadBalancer.exitIdle(); + this.lastActivityTimestamp = new Date(); + this.maybeStartIdleTimer(); + } + return connectivityState; + } + watchConnectivityState(currentState, deadline, callback) { + if (this.connectivityState === connectivity_state_1.ConnectivityState.SHUTDOWN) { + throw new Error('Channel has been shut down'); + } + let timer = null; + if (deadline !== Infinity) { + const deadlineDate = deadline instanceof Date ? deadline : new Date(deadline); + const now = new Date(); + if (deadline === -Infinity || deadlineDate <= now) { + process.nextTick(callback, new Error('Deadline passed without connectivity state change')); + return; + } + timer = setTimeout(() => { + this.removeConnectivityStateWatcher(watcherObject); + callback(new Error('Deadline passed without connectivity state change')); + }, deadlineDate.getTime() - now.getTime()); + } + const watcherObject = { + currentState, + callback, + timer, + }; + this.connectivityStateWatchers.push(watcherObject); + } + /** + * Get the channelz reference object for this channel. The returned value is + * garbage if channelz is disabled for this channel. + * @returns + */ + getChannelzRef() { + return this.channelzRef; + } + createCall(method, deadline, host, parentCall, propagateFlags) { + if (typeof method !== 'string') { + throw new TypeError('Channel#createCall: method must be a string'); + } + if (!(typeof deadline === 'number' || deadline instanceof Date)) { + throw new TypeError('Channel#createCall: deadline must be a number or Date'); + } + if (this.connectivityState === connectivity_state_1.ConnectivityState.SHUTDOWN) { + throw new Error('Channel has been shut down'); + } + return this.createResolvingCall(method, deadline, host, parentCall, propagateFlags); + } + getOptions() { + return this.options; + } +} +exports.InternalChannel = InternalChannel; +//# sourceMappingURL=internal-channel.js.map + +/***/ }), + +/***/ 99069: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2020 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ChildLoadBalancerHandler = void 0; +const load_balancer_1 = __nccwpck_require__(7000); +const connectivity_state_1 = __nccwpck_require__(60778); +const TYPE_NAME = 'child_load_balancer_helper'; +class ChildLoadBalancerHandler { + constructor(channelControlHelper) { + this.channelControlHelper = channelControlHelper; + this.currentChild = null; + this.pendingChild = null; + this.latestConfig = null; + this.ChildPolicyHelper = class { + constructor(parent) { + this.parent = parent; + this.child = null; + } + createSubchannel(subchannelAddress, subchannelArgs) { + return this.parent.channelControlHelper.createSubchannel(subchannelAddress, subchannelArgs); + } + updateState(connectivityState, picker, errorMessage) { + var _a; + if (this.calledByPendingChild()) { + if (connectivityState === connectivity_state_1.ConnectivityState.CONNECTING) { + return; + } + (_a = this.parent.currentChild) === null || _a === void 0 ? void 0 : _a.destroy(); + this.parent.currentChild = this.parent.pendingChild; + this.parent.pendingChild = null; + } + else if (!this.calledByCurrentChild()) { + return; + } + this.parent.channelControlHelper.updateState(connectivityState, picker, errorMessage); + } + requestReresolution() { + var _a; + const latestChild = (_a = this.parent.pendingChild) !== null && _a !== void 0 ? _a : this.parent.currentChild; + if (this.child === latestChild) { + this.parent.channelControlHelper.requestReresolution(); + } + } + setChild(newChild) { + this.child = newChild; + } + addChannelzChild(child) { + this.parent.channelControlHelper.addChannelzChild(child); + } + removeChannelzChild(child) { + this.parent.channelControlHelper.removeChannelzChild(child); + } + calledByPendingChild() { + return this.child === this.parent.pendingChild; + } + calledByCurrentChild() { + return this.child === this.parent.currentChild; + } + }; + } + configUpdateRequiresNewPolicyInstance(oldConfig, newConfig) { + return oldConfig.getLoadBalancerName() !== newConfig.getLoadBalancerName(); + } + /** + * Prerequisites: lbConfig !== null and lbConfig.name is registered + * @param endpointList + * @param lbConfig + * @param attributes + */ + updateAddressList(endpointList, lbConfig, options, resolutionNote) { + let childToUpdate; + if (this.currentChild === null || + this.latestConfig === null || + this.configUpdateRequiresNewPolicyInstance(this.latestConfig, lbConfig)) { + const newHelper = new this.ChildPolicyHelper(this); + const newChild = (0, load_balancer_1.createLoadBalancer)(lbConfig, newHelper); + newHelper.setChild(newChild); + if (this.currentChild === null) { + this.currentChild = newChild; + childToUpdate = this.currentChild; + } + else { + if (this.pendingChild) { + this.pendingChild.destroy(); + } + this.pendingChild = newChild; + childToUpdate = this.pendingChild; + } + } + else { + if (this.pendingChild === null) { + childToUpdate = this.currentChild; + } + else { + childToUpdate = this.pendingChild; + } + } + this.latestConfig = lbConfig; + return childToUpdate.updateAddressList(endpointList, lbConfig, options, resolutionNote); + } + exitIdle() { + if (this.currentChild) { + this.currentChild.exitIdle(); + if (this.pendingChild) { + this.pendingChild.exitIdle(); + } + } + } + resetBackoff() { + if (this.currentChild) { + this.currentChild.resetBackoff(); + if (this.pendingChild) { + this.pendingChild.resetBackoff(); + } + } + } + destroy() { + /* Note: state updates are only propagated from the child balancer if that + * object is equal to this.currentChild or this.pendingChild. Since this + * function sets both of those to null, no further state updates will + * occur after this function returns. */ + if (this.currentChild) { + this.currentChild.destroy(); + this.currentChild = null; + } + if (this.pendingChild) { + this.pendingChild.destroy(); + this.pendingChild = null; + } + } + getTypeName() { + return TYPE_NAME; + } +} +exports.ChildLoadBalancerHandler = ChildLoadBalancerHandler; +//# sourceMappingURL=load-balancer-child-handler.js.map + +/***/ }), + +/***/ 95343: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +var _a; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OutlierDetectionLoadBalancer = exports.OutlierDetectionLoadBalancingConfig = void 0; +exports.setup = setup; +const connectivity_state_1 = __nccwpck_require__(60778); +const constants_1 = __nccwpck_require__(68288); +const duration_1 = __nccwpck_require__(63929); +const experimental_1 = __nccwpck_require__(20079); +const load_balancer_1 = __nccwpck_require__(7000); +const load_balancer_child_handler_1 = __nccwpck_require__(99069); +const picker_1 = __nccwpck_require__(71663); +const subchannel_address_1 = __nccwpck_require__(97021); +const subchannel_interface_1 = __nccwpck_require__(70098); +const logging = __nccwpck_require__(8536); +const TRACER_NAME = 'outlier_detection'; +function trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); +} +const TYPE_NAME = 'outlier_detection'; +const OUTLIER_DETECTION_ENABLED = ((_a = process.env.GRPC_EXPERIMENTAL_ENABLE_OUTLIER_DETECTION) !== null && _a !== void 0 ? _a : 'true') === 'true'; +const defaultSuccessRateEjectionConfig = { + stdev_factor: 1900, + enforcement_percentage: 100, + minimum_hosts: 5, + request_volume: 100, +}; +const defaultFailurePercentageEjectionConfig = { + threshold: 85, + enforcement_percentage: 100, + minimum_hosts: 5, + request_volume: 50, +}; +function validateFieldType(obj, fieldName, expectedType, objectName) { + if (fieldName in obj && + obj[fieldName] !== undefined && + typeof obj[fieldName] !== expectedType) { + const fullFieldName = objectName ? `${objectName}.${fieldName}` : fieldName; + throw new Error(`outlier detection config ${fullFieldName} parse error: expected ${expectedType}, got ${typeof obj[fieldName]}`); + } +} +function validatePositiveDuration(obj, fieldName, objectName) { + const fullFieldName = objectName ? `${objectName}.${fieldName}` : fieldName; + if (fieldName in obj && obj[fieldName] !== undefined) { + if (!(0, duration_1.isDuration)(obj[fieldName])) { + throw new Error(`outlier detection config ${fullFieldName} parse error: expected Duration, got ${typeof obj[fieldName]}`); + } + if (!(obj[fieldName].seconds >= 0 && + obj[fieldName].seconds <= 315576000000 && + obj[fieldName].nanos >= 0 && + obj[fieldName].nanos <= 999999999)) { + throw new Error(`outlier detection config ${fullFieldName} parse error: values out of range for non-negative Duaration`); + } + } +} +function validatePercentage(obj, fieldName, objectName) { + const fullFieldName = objectName ? `${objectName}.${fieldName}` : fieldName; + validateFieldType(obj, fieldName, 'number', objectName); + if (fieldName in obj && + obj[fieldName] !== undefined && + !(obj[fieldName] >= 0 && obj[fieldName] <= 100)) { + throw new Error(`outlier detection config ${fullFieldName} parse error: value out of range for percentage (0-100)`); + } +} +class OutlierDetectionLoadBalancingConfig { + constructor(intervalMs, baseEjectionTimeMs, maxEjectionTimeMs, maxEjectionPercent, successRateEjection, failurePercentageEjection, childPolicy) { + this.childPolicy = childPolicy; + if (childPolicy.getLoadBalancerName() === 'pick_first') { + throw new Error('outlier_detection LB policy cannot have a pick_first child policy'); + } + this.intervalMs = intervalMs !== null && intervalMs !== void 0 ? intervalMs : 10000; + this.baseEjectionTimeMs = baseEjectionTimeMs !== null && baseEjectionTimeMs !== void 0 ? baseEjectionTimeMs : 30000; + this.maxEjectionTimeMs = maxEjectionTimeMs !== null && maxEjectionTimeMs !== void 0 ? maxEjectionTimeMs : 300000; + this.maxEjectionPercent = maxEjectionPercent !== null && maxEjectionPercent !== void 0 ? maxEjectionPercent : 10; + this.successRateEjection = successRateEjection + ? Object.assign(Object.assign({}, defaultSuccessRateEjectionConfig), successRateEjection) : null; + this.failurePercentageEjection = failurePercentageEjection + ? Object.assign(Object.assign({}, defaultFailurePercentageEjectionConfig), failurePercentageEjection) : null; + } + getLoadBalancerName() { + return TYPE_NAME; + } + toJsonObject() { + var _a, _b; + return { + outlier_detection: { + interval: (0, duration_1.msToDuration)(this.intervalMs), + base_ejection_time: (0, duration_1.msToDuration)(this.baseEjectionTimeMs), + max_ejection_time: (0, duration_1.msToDuration)(this.maxEjectionTimeMs), + max_ejection_percent: this.maxEjectionPercent, + success_rate_ejection: (_a = this.successRateEjection) !== null && _a !== void 0 ? _a : undefined, + failure_percentage_ejection: (_b = this.failurePercentageEjection) !== null && _b !== void 0 ? _b : undefined, + child_policy: [this.childPolicy.toJsonObject()], + }, + }; + } + getIntervalMs() { + return this.intervalMs; + } + getBaseEjectionTimeMs() { + return this.baseEjectionTimeMs; + } + getMaxEjectionTimeMs() { + return this.maxEjectionTimeMs; + } + getMaxEjectionPercent() { + return this.maxEjectionPercent; + } + getSuccessRateEjectionConfig() { + return this.successRateEjection; + } + getFailurePercentageEjectionConfig() { + return this.failurePercentageEjection; + } + getChildPolicy() { + return this.childPolicy; + } + static createFromJson(obj) { + var _a; + validatePositiveDuration(obj, 'interval'); + validatePositiveDuration(obj, 'base_ejection_time'); + validatePositiveDuration(obj, 'max_ejection_time'); + validatePercentage(obj, 'max_ejection_percent'); + if ('success_rate_ejection' in obj && + obj.success_rate_ejection !== undefined) { + if (typeof obj.success_rate_ejection !== 'object') { + throw new Error('outlier detection config success_rate_ejection must be an object'); + } + validateFieldType(obj.success_rate_ejection, 'stdev_factor', 'number', 'success_rate_ejection'); + validatePercentage(obj.success_rate_ejection, 'enforcement_percentage', 'success_rate_ejection'); + validateFieldType(obj.success_rate_ejection, 'minimum_hosts', 'number', 'success_rate_ejection'); + validateFieldType(obj.success_rate_ejection, 'request_volume', 'number', 'success_rate_ejection'); + } + if ('failure_percentage_ejection' in obj && + obj.failure_percentage_ejection !== undefined) { + if (typeof obj.failure_percentage_ejection !== 'object') { + throw new Error('outlier detection config failure_percentage_ejection must be an object'); + } + validatePercentage(obj.failure_percentage_ejection, 'threshold', 'failure_percentage_ejection'); + validatePercentage(obj.failure_percentage_ejection, 'enforcement_percentage', 'failure_percentage_ejection'); + validateFieldType(obj.failure_percentage_ejection, 'minimum_hosts', 'number', 'failure_percentage_ejection'); + validateFieldType(obj.failure_percentage_ejection, 'request_volume', 'number', 'failure_percentage_ejection'); + } + if (!('child_policy' in obj) || !Array.isArray(obj.child_policy)) { + throw new Error('outlier detection config child_policy must be an array'); + } + const childPolicy = (0, load_balancer_1.selectLbConfigFromList)(obj.child_policy); + if (!childPolicy) { + throw new Error('outlier detection config child_policy: no valid recognized policy found'); + } + return new OutlierDetectionLoadBalancingConfig(obj.interval ? (0, duration_1.durationToMs)(obj.interval) : null, obj.base_ejection_time ? (0, duration_1.durationToMs)(obj.base_ejection_time) : null, obj.max_ejection_time ? (0, duration_1.durationToMs)(obj.max_ejection_time) : null, (_a = obj.max_ejection_percent) !== null && _a !== void 0 ? _a : null, obj.success_rate_ejection, obj.failure_percentage_ejection, childPolicy); + } +} +exports.OutlierDetectionLoadBalancingConfig = OutlierDetectionLoadBalancingConfig; +class OutlierDetectionSubchannelWrapper extends subchannel_interface_1.BaseSubchannelWrapper { + constructor(childSubchannel, mapEntry) { + super(childSubchannel); + this.mapEntry = mapEntry; + this.refCount = 0; + } + ref() { + this.child.ref(); + this.refCount += 1; + } + unref() { + this.child.unref(); + this.refCount -= 1; + if (this.refCount <= 0) { + if (this.mapEntry) { + const index = this.mapEntry.subchannelWrappers.indexOf(this); + if (index >= 0) { + this.mapEntry.subchannelWrappers.splice(index, 1); + } + } + } + } + eject() { + this.setHealthy(false); + } + uneject() { + this.setHealthy(true); + } + getMapEntry() { + return this.mapEntry; + } + getWrappedSubchannel() { + return this.child; + } +} +function createEmptyBucket() { + return { + success: 0, + failure: 0, + }; +} +class CallCounter { + constructor() { + this.activeBucket = createEmptyBucket(); + this.inactiveBucket = createEmptyBucket(); + } + addSuccess() { + this.activeBucket.success += 1; + } + addFailure() { + this.activeBucket.failure += 1; + } + switchBuckets() { + this.inactiveBucket = this.activeBucket; + this.activeBucket = createEmptyBucket(); + } + getLastSuccesses() { + return this.inactiveBucket.success; + } + getLastFailures() { + return this.inactiveBucket.failure; + } +} +class OutlierDetectionPicker { + constructor(wrappedPicker, countCalls) { + this.wrappedPicker = wrappedPicker; + this.countCalls = countCalls; + } + pick(pickArgs) { + const wrappedPick = this.wrappedPicker.pick(pickArgs); + if (wrappedPick.pickResultType === picker_1.PickResultType.COMPLETE) { + const subchannelWrapper = wrappedPick.subchannel; + const mapEntry = subchannelWrapper.getMapEntry(); + if (mapEntry) { + let onCallEnded = wrappedPick.onCallEnded; + if (this.countCalls) { + onCallEnded = (statusCode, details, metadata) => { + var _a; + if (statusCode === constants_1.Status.OK) { + mapEntry.counter.addSuccess(); + } + else { + mapEntry.counter.addFailure(); + } + (_a = wrappedPick.onCallEnded) === null || _a === void 0 ? void 0 : _a.call(wrappedPick, statusCode, details, metadata); + }; + } + return Object.assign(Object.assign({}, wrappedPick), { subchannel: subchannelWrapper.getWrappedSubchannel(), onCallEnded: onCallEnded }); + } + else { + return Object.assign(Object.assign({}, wrappedPick), { subchannel: subchannelWrapper.getWrappedSubchannel() }); + } + } + else { + return wrappedPick; + } + } +} +class OutlierDetectionLoadBalancer { + constructor(channelControlHelper) { + this.entryMap = new subchannel_address_1.EndpointMap(); + this.latestConfig = null; + this.timerStartTime = null; + this.childBalancer = new load_balancer_child_handler_1.ChildLoadBalancerHandler((0, experimental_1.createChildChannelControlHelper)(channelControlHelper, { + createSubchannel: (subchannelAddress, subchannelArgs) => { + const originalSubchannel = channelControlHelper.createSubchannel(subchannelAddress, subchannelArgs); + const mapEntry = this.entryMap.getForSubchannelAddress(subchannelAddress); + const subchannelWrapper = new OutlierDetectionSubchannelWrapper(originalSubchannel, mapEntry); + if ((mapEntry === null || mapEntry === void 0 ? void 0 : mapEntry.currentEjectionTimestamp) !== null) { + // If the address is ejected, propagate that to the new subchannel wrapper + subchannelWrapper.eject(); + } + mapEntry === null || mapEntry === void 0 ? void 0 : mapEntry.subchannelWrappers.push(subchannelWrapper); + return subchannelWrapper; + }, + updateState: (connectivityState, picker, errorMessage) => { + if (connectivityState === connectivity_state_1.ConnectivityState.READY) { + channelControlHelper.updateState(connectivityState, new OutlierDetectionPicker(picker, this.isCountingEnabled()), errorMessage); + } + else { + channelControlHelper.updateState(connectivityState, picker, errorMessage); + } + }, + })); + this.ejectionTimer = setInterval(() => { }, 0); + clearInterval(this.ejectionTimer); + } + isCountingEnabled() { + return (this.latestConfig !== null && + (this.latestConfig.getSuccessRateEjectionConfig() !== null || + this.latestConfig.getFailurePercentageEjectionConfig() !== null)); + } + getCurrentEjectionPercent() { + let ejectionCount = 0; + for (const mapEntry of this.entryMap.values()) { + if (mapEntry.currentEjectionTimestamp !== null) { + ejectionCount += 1; + } + } + return (ejectionCount * 100) / this.entryMap.size; + } + runSuccessRateCheck(ejectionTimestamp) { + if (!this.latestConfig) { + return; + } + const successRateConfig = this.latestConfig.getSuccessRateEjectionConfig(); + if (!successRateConfig) { + return; + } + trace('Running success rate check'); + // Step 1 + const targetRequestVolume = successRateConfig.request_volume; + let addresesWithTargetVolume = 0; + const successRates = []; + for (const [endpoint, mapEntry] of this.entryMap.entries()) { + const successes = mapEntry.counter.getLastSuccesses(); + const failures = mapEntry.counter.getLastFailures(); + trace('Stats for ' + + (0, subchannel_address_1.endpointToString)(endpoint) + + ': successes=' + + successes + + ' failures=' + + failures + + ' targetRequestVolume=' + + targetRequestVolume); + if (successes + failures >= targetRequestVolume) { + addresesWithTargetVolume += 1; + successRates.push(successes / (successes + failures)); + } + } + trace('Found ' + + addresesWithTargetVolume + + ' success rate candidates; currentEjectionPercent=' + + this.getCurrentEjectionPercent() + + ' successRates=[' + + successRates + + ']'); + if (addresesWithTargetVolume < successRateConfig.minimum_hosts) { + return; + } + // Step 2 + const successRateMean = successRates.reduce((a, b) => a + b) / successRates.length; + let successRateDeviationSum = 0; + for (const rate of successRates) { + const deviation = rate - successRateMean; + successRateDeviationSum += deviation * deviation; + } + const successRateVariance = successRateDeviationSum / successRates.length; + const successRateStdev = Math.sqrt(successRateVariance); + const ejectionThreshold = successRateMean - + successRateStdev * (successRateConfig.stdev_factor / 1000); + trace('stdev=' + successRateStdev + ' ejectionThreshold=' + ejectionThreshold); + // Step 3 + for (const [address, mapEntry] of this.entryMap.entries()) { + // Step 3.i + if (this.getCurrentEjectionPercent() >= + this.latestConfig.getMaxEjectionPercent()) { + break; + } + // Step 3.ii + const successes = mapEntry.counter.getLastSuccesses(); + const failures = mapEntry.counter.getLastFailures(); + if (successes + failures < targetRequestVolume) { + continue; + } + // Step 3.iii + const successRate = successes / (successes + failures); + trace('Checking candidate ' + address + ' successRate=' + successRate); + if (successRate < ejectionThreshold) { + const randomNumber = Math.random() * 100; + trace('Candidate ' + + address + + ' randomNumber=' + + randomNumber + + ' enforcement_percentage=' + + successRateConfig.enforcement_percentage); + if (randomNumber < successRateConfig.enforcement_percentage) { + trace('Ejecting candidate ' + address); + this.eject(mapEntry, ejectionTimestamp); + } + } + } + } + runFailurePercentageCheck(ejectionTimestamp) { + if (!this.latestConfig) { + return; + } + const failurePercentageConfig = this.latestConfig.getFailurePercentageEjectionConfig(); + if (!failurePercentageConfig) { + return; + } + trace('Running failure percentage check. threshold=' + + failurePercentageConfig.threshold + + ' request volume threshold=' + + failurePercentageConfig.request_volume); + // Step 1 + let addressesWithTargetVolume = 0; + for (const mapEntry of this.entryMap.values()) { + const successes = mapEntry.counter.getLastSuccesses(); + const failures = mapEntry.counter.getLastFailures(); + if (successes + failures >= failurePercentageConfig.request_volume) { + addressesWithTargetVolume += 1; + } + } + if (addressesWithTargetVolume < failurePercentageConfig.minimum_hosts) { + return; + } + // Step 2 + for (const [address, mapEntry] of this.entryMap.entries()) { + // Step 2.i + if (this.getCurrentEjectionPercent() >= + this.latestConfig.getMaxEjectionPercent()) { + break; + } + // Step 2.ii + const successes = mapEntry.counter.getLastSuccesses(); + const failures = mapEntry.counter.getLastFailures(); + trace('Candidate successes=' + successes + ' failures=' + failures); + if (successes + failures < failurePercentageConfig.request_volume) { + continue; + } + // Step 2.iii + const failurePercentage = (failures * 100) / (failures + successes); + if (failurePercentage > failurePercentageConfig.threshold) { + const randomNumber = Math.random() * 100; + trace('Candidate ' + + address + + ' randomNumber=' + + randomNumber + + ' enforcement_percentage=' + + failurePercentageConfig.enforcement_percentage); + if (randomNumber < failurePercentageConfig.enforcement_percentage) { + trace('Ejecting candidate ' + address); + this.eject(mapEntry, ejectionTimestamp); + } + } + } + } + eject(mapEntry, ejectionTimestamp) { + mapEntry.currentEjectionTimestamp = new Date(); + mapEntry.ejectionTimeMultiplier += 1; + for (const subchannelWrapper of mapEntry.subchannelWrappers) { + subchannelWrapper.eject(); + } + } + uneject(mapEntry) { + mapEntry.currentEjectionTimestamp = null; + for (const subchannelWrapper of mapEntry.subchannelWrappers) { + subchannelWrapper.uneject(); + } + } + switchAllBuckets() { + for (const mapEntry of this.entryMap.values()) { + mapEntry.counter.switchBuckets(); + } + } + startTimer(delayMs) { + var _a, _b; + this.ejectionTimer = setTimeout(() => this.runChecks(), delayMs); + (_b = (_a = this.ejectionTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + } + runChecks() { + const ejectionTimestamp = new Date(); + trace('Ejection timer running'); + this.switchAllBuckets(); + if (!this.latestConfig) { + return; + } + this.timerStartTime = ejectionTimestamp; + this.startTimer(this.latestConfig.getIntervalMs()); + this.runSuccessRateCheck(ejectionTimestamp); + this.runFailurePercentageCheck(ejectionTimestamp); + for (const [address, mapEntry] of this.entryMap.entries()) { + if (mapEntry.currentEjectionTimestamp === null) { + if (mapEntry.ejectionTimeMultiplier > 0) { + mapEntry.ejectionTimeMultiplier -= 1; + } + } + else { + const baseEjectionTimeMs = this.latestConfig.getBaseEjectionTimeMs(); + const maxEjectionTimeMs = this.latestConfig.getMaxEjectionTimeMs(); + const returnTime = new Date(mapEntry.currentEjectionTimestamp.getTime()); + returnTime.setMilliseconds(returnTime.getMilliseconds() + + Math.min(baseEjectionTimeMs * mapEntry.ejectionTimeMultiplier, Math.max(baseEjectionTimeMs, maxEjectionTimeMs))); + if (returnTime < new Date()) { + trace('Unejecting ' + address); + this.uneject(mapEntry); + } + } + } + } + updateAddressList(endpointList, lbConfig, options, resolutionNote) { + if (!(lbConfig instanceof OutlierDetectionLoadBalancingConfig)) { + return false; + } + trace('Received update with config: ' + JSON.stringify(lbConfig.toJsonObject(), undefined, 2)); + if (endpointList.ok) { + for (const endpoint of endpointList.value) { + if (!this.entryMap.has(endpoint)) { + trace('Adding map entry for ' + (0, subchannel_address_1.endpointToString)(endpoint)); + this.entryMap.set(endpoint, { + counter: new CallCounter(), + currentEjectionTimestamp: null, + ejectionTimeMultiplier: 0, + subchannelWrappers: [], + }); + } + } + this.entryMap.deleteMissing(endpointList.value); + } + const childPolicy = lbConfig.getChildPolicy(); + this.childBalancer.updateAddressList(endpointList, childPolicy, options, resolutionNote); + if (lbConfig.getSuccessRateEjectionConfig() || + lbConfig.getFailurePercentageEjectionConfig()) { + if (this.timerStartTime) { + trace('Previous timer existed. Replacing timer'); + clearTimeout(this.ejectionTimer); + const remainingDelay = lbConfig.getIntervalMs() - + (new Date().getTime() - this.timerStartTime.getTime()); + this.startTimer(remainingDelay); + } + else { + trace('Starting new timer'); + this.timerStartTime = new Date(); + this.startTimer(lbConfig.getIntervalMs()); + this.switchAllBuckets(); + } + } + else { + trace('Counting disabled. Cancelling timer.'); + this.timerStartTime = null; + clearTimeout(this.ejectionTimer); + for (const mapEntry of this.entryMap.values()) { + this.uneject(mapEntry); + mapEntry.ejectionTimeMultiplier = 0; + } + } + this.latestConfig = lbConfig; + return true; + } + exitIdle() { + this.childBalancer.exitIdle(); + } + resetBackoff() { + this.childBalancer.resetBackoff(); + } + destroy() { + clearTimeout(this.ejectionTimer); + this.childBalancer.destroy(); + } + getTypeName() { + return TYPE_NAME; + } +} +exports.OutlierDetectionLoadBalancer = OutlierDetectionLoadBalancer; +function setup() { + if (OUTLIER_DETECTION_ENABLED) { + (0, experimental_1.registerLoadBalancerType)(TYPE_NAME, OutlierDetectionLoadBalancer, OutlierDetectionLoadBalancingConfig); + } +} +//# sourceMappingURL=load-balancer-outlier-detection.js.map + +/***/ }), + +/***/ 78639: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LeafLoadBalancer = exports.PickFirstLoadBalancer = exports.PickFirstLoadBalancingConfig = void 0; +exports.shuffled = shuffled; +exports.setup = setup; +const load_balancer_1 = __nccwpck_require__(7000); +const connectivity_state_1 = __nccwpck_require__(60778); +const picker_1 = __nccwpck_require__(71663); +const subchannel_address_1 = __nccwpck_require__(97021); +const logging = __nccwpck_require__(8536); +const constants_1 = __nccwpck_require__(68288); +const subchannel_address_2 = __nccwpck_require__(97021); +const net_1 = __nccwpck_require__(69278); +const call_interface_1 = __nccwpck_require__(61803); +const TRACER_NAME = 'pick_first'; +function trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); +} +const TYPE_NAME = 'pick_first'; +/** + * Delay after starting a connection on a subchannel before starting a + * connection on the next subchannel in the list, for Happy Eyeballs algorithm. + */ +const CONNECTION_DELAY_INTERVAL_MS = 250; +class PickFirstLoadBalancingConfig { + constructor(shuffleAddressList) { + this.shuffleAddressList = shuffleAddressList; + } + getLoadBalancerName() { + return TYPE_NAME; + } + toJsonObject() { + return { + [TYPE_NAME]: { + shuffleAddressList: this.shuffleAddressList, + }, + }; + } + getShuffleAddressList() { + return this.shuffleAddressList; + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + static createFromJson(obj) { + if ('shuffleAddressList' in obj && + !(typeof obj.shuffleAddressList === 'boolean')) { + throw new Error('pick_first config field shuffleAddressList must be a boolean if provided'); + } + return new PickFirstLoadBalancingConfig(obj.shuffleAddressList === true); + } +} +exports.PickFirstLoadBalancingConfig = PickFirstLoadBalancingConfig; +/** + * Picker for a `PickFirstLoadBalancer` in the READY state. Always returns the + * picked subchannel. + */ +class PickFirstPicker { + constructor(subchannel) { + this.subchannel = subchannel; + } + pick(pickArgs) { + return { + pickResultType: picker_1.PickResultType.COMPLETE, + subchannel: this.subchannel, + status: null, + onCallStarted: null, + onCallEnded: null, + }; + } +} +/** + * Return a new array with the elements of the input array in a random order + * @param list The input array + * @returns A shuffled array of the elements of list + */ +function shuffled(list) { + const result = list.slice(); + for (let i = result.length - 1; i > 1; i--) { + const j = Math.floor(Math.random() * (i + 1)); + const temp = result[i]; + result[i] = result[j]; + result[j] = temp; + } + return result; +} +/** + * Interleave addresses in addressList by family in accordance with RFC-8304 section 4 + * @param addressList + * @returns + */ +function interleaveAddressFamilies(addressList) { + if (addressList.length === 0) { + return []; + } + const result = []; + const ipv6Addresses = []; + const ipv4Addresses = []; + const ipv6First = (0, subchannel_address_2.isTcpSubchannelAddress)(addressList[0]) && (0, net_1.isIPv6)(addressList[0].host); + for (const address of addressList) { + if ((0, subchannel_address_2.isTcpSubchannelAddress)(address) && (0, net_1.isIPv6)(address.host)) { + ipv6Addresses.push(address); + } + else { + ipv4Addresses.push(address); + } + } + const firstList = ipv6First ? ipv6Addresses : ipv4Addresses; + const secondList = ipv6First ? ipv4Addresses : ipv6Addresses; + for (let i = 0; i < Math.max(firstList.length, secondList.length); i++) { + if (i < firstList.length) { + result.push(firstList[i]); + } + if (i < secondList.length) { + result.push(secondList[i]); + } + } + return result; +} +const REPORT_HEALTH_STATUS_OPTION_NAME = 'grpc-node.internal.pick-first.report_health_status'; +class PickFirstLoadBalancer { + /** + * Load balancer that attempts to connect to each backend in the address list + * in order, and picks the first one that connects, using it for every + * request. + * @param channelControlHelper `ChannelControlHelper` instance provided by + * this load balancer's owner. + */ + constructor(channelControlHelper) { + this.channelControlHelper = channelControlHelper; + /** + * The list of subchannels this load balancer is currently attempting to + * connect to. + */ + this.children = []; + /** + * The current connectivity state of the load balancer. + */ + this.currentState = connectivity_state_1.ConnectivityState.IDLE; + /** + * The index within the `subchannels` array of the subchannel with the most + * recently started connection attempt. + */ + this.currentSubchannelIndex = 0; + /** + * The currently picked subchannel used for making calls. Populated if + * and only if the load balancer's current state is READY. In that case, + * the subchannel's current state is also READY. + */ + this.currentPick = null; + /** + * Listener callback attached to each subchannel in the `subchannels` list + * while establishing a connection. + */ + this.subchannelStateListener = (subchannel, previousState, newState, keepaliveTime, errorMessage) => { + this.onSubchannelStateUpdate(subchannel, previousState, newState, errorMessage); + }; + this.pickedSubchannelHealthListener = () => this.calculateAndReportNewState(); + /** + * The LB policy enters sticky TRANSIENT_FAILURE mode when all + * subchannels have failed to connect at least once, and it stays in that + * mode until a connection attempt is successful. While in sticky TF mode, + * the LB policy continuously attempts to connect to all of its subchannels. + */ + this.stickyTransientFailureMode = false; + this.reportHealthStatus = false; + /** + * The most recent error reported by any subchannel as it transitioned to + * TRANSIENT_FAILURE. + */ + this.lastError = null; + this.latestAddressList = null; + this.latestOptions = {}; + this.latestResolutionNote = ''; + this.connectionDelayTimeout = setTimeout(() => { }, 0); + clearTimeout(this.connectionDelayTimeout); + } + allChildrenHaveReportedTF() { + return this.children.every(child => child.hasReportedTransientFailure); + } + resetChildrenReportedTF() { + this.children.every(child => child.hasReportedTransientFailure = false); + } + calculateAndReportNewState() { + var _a; + if (this.currentPick) { + if (this.reportHealthStatus && !this.currentPick.isHealthy()) { + const errorMessage = `Picked subchannel ${this.currentPick.getAddress()} is unhealthy`; + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ + details: errorMessage, + }), errorMessage); + } + else { + this.updateState(connectivity_state_1.ConnectivityState.READY, new PickFirstPicker(this.currentPick), null); + } + } + else if (((_a = this.latestAddressList) === null || _a === void 0 ? void 0 : _a.length) === 0) { + const errorMessage = `No connection established. Last error: ${this.lastError}. Resolution note: ${this.latestResolutionNote}`; + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ + details: errorMessage, + }), errorMessage); + } + else if (this.children.length === 0) { + this.updateState(connectivity_state_1.ConnectivityState.IDLE, new picker_1.QueuePicker(this), null); + } + else { + if (this.stickyTransientFailureMode) { + const errorMessage = `No connection established. Last error: ${this.lastError}. Resolution note: ${this.latestResolutionNote}`; + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ + details: errorMessage, + }), errorMessage); + } + else { + this.updateState(connectivity_state_1.ConnectivityState.CONNECTING, new picker_1.QueuePicker(this), null); + } + } + } + requestReresolution() { + this.channelControlHelper.requestReresolution(); + } + maybeEnterStickyTransientFailureMode() { + if (!this.allChildrenHaveReportedTF()) { + return; + } + this.requestReresolution(); + this.resetChildrenReportedTF(); + if (this.stickyTransientFailureMode) { + this.calculateAndReportNewState(); + return; + } + this.stickyTransientFailureMode = true; + for (const { subchannel } of this.children) { + subchannel.startConnecting(); + } + this.calculateAndReportNewState(); + } + removeCurrentPick() { + if (this.currentPick !== null) { + this.currentPick.removeConnectivityStateListener(this.subchannelStateListener); + this.channelControlHelper.removeChannelzChild(this.currentPick.getChannelzRef()); + this.currentPick.removeHealthStateWatcher(this.pickedSubchannelHealthListener); + // Unref last, to avoid triggering listeners + this.currentPick.unref(); + this.currentPick = null; + } + } + onSubchannelStateUpdate(subchannel, previousState, newState, errorMessage) { + var _a; + if ((_a = this.currentPick) === null || _a === void 0 ? void 0 : _a.realSubchannelEquals(subchannel)) { + if (newState !== connectivity_state_1.ConnectivityState.READY) { + this.removeCurrentPick(); + this.calculateAndReportNewState(); + } + return; + } + for (const [index, child] of this.children.entries()) { + if (subchannel.realSubchannelEquals(child.subchannel)) { + if (newState === connectivity_state_1.ConnectivityState.READY) { + this.pickSubchannel(child.subchannel); + } + if (newState === connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { + child.hasReportedTransientFailure = true; + if (errorMessage) { + this.lastError = errorMessage; + } + this.maybeEnterStickyTransientFailureMode(); + if (index === this.currentSubchannelIndex) { + this.startNextSubchannelConnecting(index + 1); + } + } + child.subchannel.startConnecting(); + return; + } + } + } + startNextSubchannelConnecting(startIndex) { + clearTimeout(this.connectionDelayTimeout); + for (const [index, child] of this.children.entries()) { + if (index >= startIndex) { + const subchannelState = child.subchannel.getConnectivityState(); + if (subchannelState === connectivity_state_1.ConnectivityState.IDLE || + subchannelState === connectivity_state_1.ConnectivityState.CONNECTING) { + this.startConnecting(index); + return; + } + } + } + this.maybeEnterStickyTransientFailureMode(); + } + /** + * Have a single subchannel in the `subchannels` list start connecting. + * @param subchannelIndex The index into the `subchannels` list. + */ + startConnecting(subchannelIndex) { + var _a, _b; + clearTimeout(this.connectionDelayTimeout); + this.currentSubchannelIndex = subchannelIndex; + if (this.children[subchannelIndex].subchannel.getConnectivityState() === + connectivity_state_1.ConnectivityState.IDLE) { + trace('Start connecting to subchannel with address ' + + this.children[subchannelIndex].subchannel.getAddress()); + process.nextTick(() => { + var _a; + (_a = this.children[subchannelIndex]) === null || _a === void 0 ? void 0 : _a.subchannel.startConnecting(); + }); + } + this.connectionDelayTimeout = setTimeout(() => { + this.startNextSubchannelConnecting(subchannelIndex + 1); + }, CONNECTION_DELAY_INTERVAL_MS); + (_b = (_a = this.connectionDelayTimeout).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + } + /** + * Declare that the specified subchannel should be used to make requests. + * This functions the same independent of whether subchannel is a member of + * this.children and whether it is equal to this.currentPick. + * Prerequisite: subchannel.getConnectivityState() === READY. + * @param subchannel + */ + pickSubchannel(subchannel) { + trace('Pick subchannel with address ' + subchannel.getAddress()); + this.stickyTransientFailureMode = false; + /* Ref before removeCurrentPick and resetSubchannelList to avoid the + * refcount dropping to 0 during this process. */ + subchannel.ref(); + this.channelControlHelper.addChannelzChild(subchannel.getChannelzRef()); + this.removeCurrentPick(); + this.resetSubchannelList(); + subchannel.addConnectivityStateListener(this.subchannelStateListener); + subchannel.addHealthStateWatcher(this.pickedSubchannelHealthListener); + this.currentPick = subchannel; + clearTimeout(this.connectionDelayTimeout); + this.calculateAndReportNewState(); + } + updateState(newState, picker, errorMessage) { + trace(connectivity_state_1.ConnectivityState[this.currentState] + + ' -> ' + + connectivity_state_1.ConnectivityState[newState]); + this.currentState = newState; + this.channelControlHelper.updateState(newState, picker, errorMessage); + } + resetSubchannelList() { + for (const child of this.children) { + /* Always remoev the connectivity state listener. If the subchannel is + getting picked, it will be re-added then. */ + child.subchannel.removeConnectivityStateListener(this.subchannelStateListener); + /* Refs are counted independently for the children list and the + * currentPick, so we call unref whether or not the child is the + * currentPick. Channelz child references are also refcounted, so + * removeChannelzChild can be handled the same way. */ + child.subchannel.unref(); + this.channelControlHelper.removeChannelzChild(child.subchannel.getChannelzRef()); + } + this.currentSubchannelIndex = 0; + this.children = []; + } + connectToAddressList(addressList, options) { + trace('connectToAddressList([' + addressList.map(address => (0, subchannel_address_1.subchannelAddressToString)(address)) + '])'); + const newChildrenList = addressList.map(address => ({ + subchannel: this.channelControlHelper.createSubchannel(address, options), + hasReportedTransientFailure: false, + })); + for (const { subchannel } of newChildrenList) { + if (subchannel.getConnectivityState() === connectivity_state_1.ConnectivityState.READY) { + this.pickSubchannel(subchannel); + return; + } + } + /* Ref each subchannel before resetting the list, to ensure that + * subchannels shared between the list don't drop to 0 refs during the + * transition. */ + for (const { subchannel } of newChildrenList) { + subchannel.ref(); + this.channelControlHelper.addChannelzChild(subchannel.getChannelzRef()); + } + this.resetSubchannelList(); + this.children = newChildrenList; + for (const { subchannel } of this.children) { + subchannel.addConnectivityStateListener(this.subchannelStateListener); + } + for (const child of this.children) { + if (child.subchannel.getConnectivityState() === + connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { + child.hasReportedTransientFailure = true; + } + } + this.startNextSubchannelConnecting(0); + this.calculateAndReportNewState(); + } + updateAddressList(maybeEndpointList, lbConfig, options, resolutionNote) { + if (!(lbConfig instanceof PickFirstLoadBalancingConfig)) { + return false; + } + if (!maybeEndpointList.ok) { + if (this.children.length === 0 && this.currentPick === null) { + this.channelControlHelper.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker(maybeEndpointList.error), maybeEndpointList.error.details); + } + return true; + } + let endpointList = maybeEndpointList.value; + this.reportHealthStatus = options[REPORT_HEALTH_STATUS_OPTION_NAME]; + /* Previously, an update would be discarded if it was identical to the + * previous update, to minimize churn. Now the DNS resolver is + * rate-limited, so that is less of a concern. */ + if (lbConfig.getShuffleAddressList()) { + endpointList = shuffled(endpointList); + } + const rawAddressList = [].concat(...endpointList.map(endpoint => endpoint.addresses)); + trace('updateAddressList([' + rawAddressList.map(address => (0, subchannel_address_1.subchannelAddressToString)(address)) + '])'); + const addressList = interleaveAddressFamilies(rawAddressList); + this.latestAddressList = addressList; + this.latestOptions = options; + this.connectToAddressList(addressList, options); + this.latestResolutionNote = resolutionNote; + if (rawAddressList.length > 0) { + return true; + } + else { + this.lastError = 'No addresses resolved'; + return false; + } + } + exitIdle() { + if (this.currentState === connectivity_state_1.ConnectivityState.IDLE && + this.latestAddressList) { + this.connectToAddressList(this.latestAddressList, this.latestOptions); + } + } + resetBackoff() { + /* The pick first load balancer does not have a connection backoff, so this + * does nothing */ + } + destroy() { + this.resetSubchannelList(); + this.removeCurrentPick(); + } + getTypeName() { + return TYPE_NAME; + } +} +exports.PickFirstLoadBalancer = PickFirstLoadBalancer; +const LEAF_CONFIG = new PickFirstLoadBalancingConfig(false); +/** + * This class handles the leaf load balancing operations for a single endpoint. + * It is a thin wrapper around a PickFirstLoadBalancer with a different API + * that more closely reflects how it will be used as a leaf balancer. + */ +class LeafLoadBalancer { + constructor(endpoint, channelControlHelper, options, resolutionNote) { + this.endpoint = endpoint; + this.options = options; + this.resolutionNote = resolutionNote; + this.latestState = connectivity_state_1.ConnectivityState.IDLE; + const childChannelControlHelper = (0, load_balancer_1.createChildChannelControlHelper)(channelControlHelper, { + updateState: (connectivityState, picker, errorMessage) => { + this.latestState = connectivityState; + this.latestPicker = picker; + channelControlHelper.updateState(connectivityState, picker, errorMessage); + }, + }); + this.pickFirstBalancer = new PickFirstLoadBalancer(childChannelControlHelper); + this.latestPicker = new picker_1.QueuePicker(this.pickFirstBalancer); + } + startConnecting() { + this.pickFirstBalancer.updateAddressList((0, call_interface_1.statusOrFromValue)([this.endpoint]), LEAF_CONFIG, Object.assign(Object.assign({}, this.options), { [REPORT_HEALTH_STATUS_OPTION_NAME]: true }), this.resolutionNote); + } + /** + * Update the endpoint associated with this LeafLoadBalancer to a new + * endpoint. Does not trigger connection establishment if a connection + * attempt is not already in progress. + * @param newEndpoint + */ + updateEndpoint(newEndpoint, newOptions) { + this.options = newOptions; + this.endpoint = newEndpoint; + if (this.latestState !== connectivity_state_1.ConnectivityState.IDLE) { + this.startConnecting(); + } + } + getConnectivityState() { + return this.latestState; + } + getPicker() { + return this.latestPicker; + } + getEndpoint() { + return this.endpoint; + } + exitIdle() { + this.pickFirstBalancer.exitIdle(); + } + destroy() { + this.pickFirstBalancer.destroy(); + } +} +exports.LeafLoadBalancer = LeafLoadBalancer; +function setup() { + (0, load_balancer_1.registerLoadBalancerType)(TYPE_NAME, PickFirstLoadBalancer, PickFirstLoadBalancingConfig); + (0, load_balancer_1.registerDefaultLoadBalancerType)(TYPE_NAME); +} +//# sourceMappingURL=load-balancer-pick-first.js.map + +/***/ }), + +/***/ 71936: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RoundRobinLoadBalancer = void 0; +exports.setup = setup; +const load_balancer_1 = __nccwpck_require__(7000); +const connectivity_state_1 = __nccwpck_require__(60778); +const picker_1 = __nccwpck_require__(71663); +const logging = __nccwpck_require__(8536); +const constants_1 = __nccwpck_require__(68288); +const subchannel_address_1 = __nccwpck_require__(97021); +const load_balancer_pick_first_1 = __nccwpck_require__(78639); +const TRACER_NAME = 'round_robin'; +function trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); +} +const TYPE_NAME = 'round_robin'; +class RoundRobinLoadBalancingConfig { + getLoadBalancerName() { + return TYPE_NAME; + } + constructor() { } + toJsonObject() { + return { + [TYPE_NAME]: {}, + }; + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + static createFromJson(obj) { + return new RoundRobinLoadBalancingConfig(); + } +} +class RoundRobinPicker { + constructor(children, nextIndex = 0) { + this.children = children; + this.nextIndex = nextIndex; + } + pick(pickArgs) { + const childPicker = this.children[this.nextIndex].picker; + this.nextIndex = (this.nextIndex + 1) % this.children.length; + return childPicker.pick(pickArgs); + } + /** + * Check what the next subchannel returned would be. Used by the load + * balancer implementation to preserve this part of the picker state if + * possible when a subchannel connects or disconnects. + */ + peekNextEndpoint() { + return this.children[this.nextIndex].endpoint; + } +} +function rotateArray(list, startIndex) { + return [...list.slice(startIndex), ...list.slice(0, startIndex)]; +} +class RoundRobinLoadBalancer { + constructor(channelControlHelper) { + this.channelControlHelper = channelControlHelper; + this.children = []; + this.currentState = connectivity_state_1.ConnectivityState.IDLE; + this.currentReadyPicker = null; + this.updatesPaused = false; + this.lastError = null; + this.childChannelControlHelper = (0, load_balancer_1.createChildChannelControlHelper)(channelControlHelper, { + updateState: (connectivityState, picker, errorMessage) => { + /* Ensure that name resolution is requested again after active + * connections are dropped. This is more aggressive than necessary to + * accomplish that, so we are counting on resolvers to have + * reasonable rate limits. */ + if (this.currentState === connectivity_state_1.ConnectivityState.READY && connectivityState !== connectivity_state_1.ConnectivityState.READY) { + this.channelControlHelper.requestReresolution(); + } + if (errorMessage) { + this.lastError = errorMessage; + } + this.calculateAndUpdateState(); + }, + }); + } + countChildrenWithState(state) { + return this.children.filter(child => child.getConnectivityState() === state) + .length; + } + calculateAndUpdateState() { + if (this.updatesPaused) { + return; + } + if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.READY) > 0) { + const readyChildren = this.children.filter(child => child.getConnectivityState() === connectivity_state_1.ConnectivityState.READY); + let index = 0; + if (this.currentReadyPicker !== null) { + const nextPickedEndpoint = this.currentReadyPicker.peekNextEndpoint(); + index = readyChildren.findIndex(child => (0, subchannel_address_1.endpointEqual)(child.getEndpoint(), nextPickedEndpoint)); + if (index < 0) { + index = 0; + } + } + this.updateState(connectivity_state_1.ConnectivityState.READY, new RoundRobinPicker(readyChildren.map(child => ({ + endpoint: child.getEndpoint(), + picker: child.getPicker(), + })), index), null); + } + else if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.CONNECTING) > 0) { + this.updateState(connectivity_state_1.ConnectivityState.CONNECTING, new picker_1.QueuePicker(this), null); + } + else if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) > 0) { + const errorMessage = `round_robin: No connection established. Last error: ${this.lastError}`; + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ + details: errorMessage, + }), errorMessage); + } + else { + this.updateState(connectivity_state_1.ConnectivityState.IDLE, new picker_1.QueuePicker(this), null); + } + /* round_robin should keep all children connected, this is how we do that. + * We can't do this more efficiently in the individual child's updateState + * callback because that doesn't have a reference to which child the state + * change is associated with. */ + for (const child of this.children) { + if (child.getConnectivityState() === connectivity_state_1.ConnectivityState.IDLE) { + child.exitIdle(); + } + } + } + updateState(newState, picker, errorMessage) { + trace(connectivity_state_1.ConnectivityState[this.currentState] + + ' -> ' + + connectivity_state_1.ConnectivityState[newState]); + if (newState === connectivity_state_1.ConnectivityState.READY) { + this.currentReadyPicker = picker; + } + else { + this.currentReadyPicker = null; + } + this.currentState = newState; + this.channelControlHelper.updateState(newState, picker, errorMessage); + } + resetSubchannelList() { + for (const child of this.children) { + child.destroy(); + } + this.children = []; + } + updateAddressList(maybeEndpointList, lbConfig, options, resolutionNote) { + if (!(lbConfig instanceof RoundRobinLoadBalancingConfig)) { + return false; + } + if (!maybeEndpointList.ok) { + if (this.children.length === 0) { + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker(maybeEndpointList.error), maybeEndpointList.error.details); + } + return true; + } + const startIndex = (Math.random() * maybeEndpointList.value.length) | 0; + const endpointList = rotateArray(maybeEndpointList.value, startIndex); + this.resetSubchannelList(); + if (endpointList.length === 0) { + const errorMessage = `No addresses resolved. Resolution note: ${resolutionNote}`; + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ details: errorMessage }), errorMessage); + } + trace('Connect to endpoint list ' + endpointList.map(subchannel_address_1.endpointToString)); + this.updatesPaused = true; + this.children = endpointList.map(endpoint => new load_balancer_pick_first_1.LeafLoadBalancer(endpoint, this.childChannelControlHelper, options, resolutionNote)); + for (const child of this.children) { + child.startConnecting(); + } + this.updatesPaused = false; + this.calculateAndUpdateState(); + return true; + } + exitIdle() { + /* The round_robin LB policy is only in the IDLE state if it has no + * addresses to try to connect to and it has no picked subchannel. + * In that case, there is no meaningful action that can be taken here. */ + } + resetBackoff() { + // This LB policy has no backoff to reset + } + destroy() { + this.resetSubchannelList(); + } + getTypeName() { + return TYPE_NAME; + } +} +exports.RoundRobinLoadBalancer = RoundRobinLoadBalancer; +function setup() { + (0, load_balancer_1.registerLoadBalancerType)(TYPE_NAME, RoundRobinLoadBalancer, RoundRobinLoadBalancingConfig); +} +//# sourceMappingURL=load-balancer-round-robin.js.map + +/***/ }), + +/***/ 47616: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2025 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.WeightedRoundRobinLoadBalancingConfig = void 0; +exports.setup = setup; +const connectivity_state_1 = __nccwpck_require__(60778); +const constants_1 = __nccwpck_require__(68288); +const duration_1 = __nccwpck_require__(63929); +const load_balancer_1 = __nccwpck_require__(7000); +const load_balancer_pick_first_1 = __nccwpck_require__(78639); +const logging = __nccwpck_require__(8536); +const orca_1 = __nccwpck_require__(82124); +const picker_1 = __nccwpck_require__(71663); +const priority_queue_1 = __nccwpck_require__(58291); +const subchannel_address_1 = __nccwpck_require__(97021); +const TRACER_NAME = 'weighted_round_robin'; +function trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); +} +const TYPE_NAME = 'weighted_round_robin'; +const DEFAULT_OOB_REPORTING_PERIOD_MS = 10000; +const DEFAULT_BLACKOUT_PERIOD_MS = 10000; +const DEFAULT_WEIGHT_EXPIRATION_PERIOD_MS = 3 * 60000; +const DEFAULT_WEIGHT_UPDATE_PERIOD_MS = 1000; +const DEFAULT_ERROR_UTILIZATION_PENALTY = 1; +function validateFieldType(obj, fieldName, expectedType) { + if (fieldName in obj && + obj[fieldName] !== undefined && + typeof obj[fieldName] !== expectedType) { + throw new Error(`weighted round robin config ${fieldName} parse error: expected ${expectedType}, got ${typeof obj[fieldName]}`); + } +} +function parseDurationField(obj, fieldName) { + if (fieldName in obj && obj[fieldName] !== undefined && obj[fieldName] !== null) { + let durationObject; + if ((0, duration_1.isDuration)(obj[fieldName])) { + durationObject = obj[fieldName]; + } + else if ((0, duration_1.isDurationMessage)(obj[fieldName])) { + durationObject = (0, duration_1.durationMessageToDuration)(obj[fieldName]); + } + else if (typeof obj[fieldName] === 'string') { + const parsedDuration = (0, duration_1.parseDuration)(obj[fieldName]); + if (!parsedDuration) { + throw new Error(`weighted round robin config ${fieldName}: failed to parse duration string ${obj[fieldName]}`); + } + durationObject = parsedDuration; + } + else { + throw new Error(`weighted round robin config ${fieldName}: expected duration, got ${typeof obj[fieldName]}`); + } + return (0, duration_1.durationToMs)(durationObject); + } + return null; +} +class WeightedRoundRobinLoadBalancingConfig { + constructor(enableOobLoadReport, oobLoadReportingPeriodMs, blackoutPeriodMs, weightExpirationPeriodMs, weightUpdatePeriodMs, errorUtilizationPenalty) { + this.enableOobLoadReport = enableOobLoadReport !== null && enableOobLoadReport !== void 0 ? enableOobLoadReport : false; + this.oobLoadReportingPeriodMs = oobLoadReportingPeriodMs !== null && oobLoadReportingPeriodMs !== void 0 ? oobLoadReportingPeriodMs : DEFAULT_OOB_REPORTING_PERIOD_MS; + this.blackoutPeriodMs = blackoutPeriodMs !== null && blackoutPeriodMs !== void 0 ? blackoutPeriodMs : DEFAULT_BLACKOUT_PERIOD_MS; + this.weightExpirationPeriodMs = weightExpirationPeriodMs !== null && weightExpirationPeriodMs !== void 0 ? weightExpirationPeriodMs : DEFAULT_WEIGHT_EXPIRATION_PERIOD_MS; + this.weightUpdatePeriodMs = Math.max(weightUpdatePeriodMs !== null && weightUpdatePeriodMs !== void 0 ? weightUpdatePeriodMs : DEFAULT_WEIGHT_UPDATE_PERIOD_MS, 100); + this.errorUtilizationPenalty = errorUtilizationPenalty !== null && errorUtilizationPenalty !== void 0 ? errorUtilizationPenalty : DEFAULT_ERROR_UTILIZATION_PENALTY; + } + getLoadBalancerName() { + return TYPE_NAME; + } + toJsonObject() { + return { + enable_oob_load_report: this.enableOobLoadReport, + oob_load_reporting_period: (0, duration_1.durationToString)((0, duration_1.msToDuration)(this.oobLoadReportingPeriodMs)), + blackout_period: (0, duration_1.durationToString)((0, duration_1.msToDuration)(this.blackoutPeriodMs)), + weight_expiration_period: (0, duration_1.durationToString)((0, duration_1.msToDuration)(this.weightExpirationPeriodMs)), + weight_update_period: (0, duration_1.durationToString)((0, duration_1.msToDuration)(this.weightUpdatePeriodMs)), + error_utilization_penalty: this.errorUtilizationPenalty + }; + } + static createFromJson(obj) { + validateFieldType(obj, 'enable_oob_load_report', 'boolean'); + validateFieldType(obj, 'error_utilization_penalty', 'number'); + if (obj.error_utilization_penalty < 0) { + throw new Error('weighted round robin config error_utilization_penalty < 0'); + } + return new WeightedRoundRobinLoadBalancingConfig(obj.enable_oob_load_report, parseDurationField(obj, 'oob_load_reporting_period'), parseDurationField(obj, 'blackout_period'), parseDurationField(obj, 'weight_expiration_period'), parseDurationField(obj, 'weight_update_period'), obj.error_utilization_penalty); + } + getEnableOobLoadReport() { + return this.enableOobLoadReport; + } + getOobLoadReportingPeriodMs() { + return this.oobLoadReportingPeriodMs; + } + getBlackoutPeriodMs() { + return this.blackoutPeriodMs; + } + getWeightExpirationPeriodMs() { + return this.weightExpirationPeriodMs; + } + getWeightUpdatePeriodMs() { + return this.weightUpdatePeriodMs; + } + getErrorUtilizationPenalty() { + return this.errorUtilizationPenalty; + } +} +exports.WeightedRoundRobinLoadBalancingConfig = WeightedRoundRobinLoadBalancingConfig; +class WeightedRoundRobinPicker { + constructor(children, metricsHandler) { + this.metricsHandler = metricsHandler; + this.queue = new priority_queue_1.PriorityQueue((a, b) => a.deadline < b.deadline); + const positiveWeight = children.filter(picker => picker.weight > 0); + let averageWeight; + if (positiveWeight.length < 2) { + averageWeight = 1; + } + else { + let weightSum = 0; + for (const { weight } of positiveWeight) { + weightSum += weight; + } + averageWeight = weightSum / positiveWeight.length; + } + for (const child of children) { + const period = child.weight > 0 ? 1 / child.weight : averageWeight; + this.queue.push({ + endpointName: child.endpointName, + picker: child.picker, + period: period, + deadline: Math.random() * period + }); + } + } + pick(pickArgs) { + const entry = this.queue.pop(); + this.queue.push(Object.assign(Object.assign({}, entry), { deadline: entry.deadline + entry.period })); + const childPick = entry.picker.pick(pickArgs); + if (childPick.pickResultType === picker_1.PickResultType.COMPLETE) { + if (this.metricsHandler) { + return Object.assign(Object.assign({}, childPick), { onCallEnded: (0, orca_1.createMetricsReader)(loadReport => this.metricsHandler(loadReport, entry.endpointName), childPick.onCallEnded) }); + } + else { + const subchannelWrapper = childPick.subchannel; + return Object.assign(Object.assign({}, childPick), { subchannel: subchannelWrapper.getWrappedSubchannel() }); + } + } + else { + return childPick; + } + } +} +class WeightedRoundRobinLoadBalancer { + constructor(channelControlHelper) { + this.channelControlHelper = channelControlHelper; + this.latestConfig = null; + this.children = new Map(); + this.currentState = connectivity_state_1.ConnectivityState.IDLE; + this.updatesPaused = false; + this.lastError = null; + this.weightUpdateTimer = null; + } + countChildrenWithState(state) { + let count = 0; + for (const entry of this.children.values()) { + if (entry.child.getConnectivityState() === state) { + count += 1; + } + } + return count; + } + updateWeight(entry, loadReport) { + var _a, _b; + const qps = loadReport.rps_fractional; + let utilization = loadReport.application_utilization; + if (utilization > 0 && qps > 0) { + utilization += (loadReport.eps / qps) * ((_b = (_a = this.latestConfig) === null || _a === void 0 ? void 0 : _a.getErrorUtilizationPenalty()) !== null && _b !== void 0 ? _b : 0); + } + const newWeight = utilization === 0 ? 0 : qps / utilization; + if (newWeight === 0) { + return; + } + const now = new Date(); + if (entry.nonEmptySince === null) { + entry.nonEmptySince = now; + } + entry.lastUpdated = now; + entry.weight = newWeight; + } + getWeight(entry) { + if (!this.latestConfig) { + return 0; + } + const now = new Date().getTime(); + if (now - entry.lastUpdated.getTime() >= this.latestConfig.getWeightExpirationPeriodMs()) { + entry.nonEmptySince = null; + return 0; + } + const blackoutPeriod = this.latestConfig.getBlackoutPeriodMs(); + if (blackoutPeriod > 0 && (entry.nonEmptySince === null || now - entry.nonEmptySince.getTime() < blackoutPeriod)) { + return 0; + } + return entry.weight; + } + calculateAndUpdateState() { + if (this.updatesPaused || !this.latestConfig) { + return; + } + if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.READY) > 0) { + const weightedPickers = []; + for (const [endpoint, entry] of this.children) { + if (entry.child.getConnectivityState() !== connectivity_state_1.ConnectivityState.READY) { + continue; + } + weightedPickers.push({ + endpointName: endpoint, + picker: entry.child.getPicker(), + weight: this.getWeight(entry) + }); + } + trace('Created picker with weights: ' + weightedPickers.map(entry => entry.endpointName + ':' + entry.weight).join(',')); + let metricsHandler; + if (!this.latestConfig.getEnableOobLoadReport()) { + metricsHandler = (loadReport, endpointName) => { + const childEntry = this.children.get(endpointName); + if (childEntry) { + this.updateWeight(childEntry, loadReport); + } + }; + } + else { + metricsHandler = null; + } + this.updateState(connectivity_state_1.ConnectivityState.READY, new WeightedRoundRobinPicker(weightedPickers, metricsHandler), null); + } + else if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.CONNECTING) > 0) { + this.updateState(connectivity_state_1.ConnectivityState.CONNECTING, new picker_1.QueuePicker(this), null); + } + else if (this.countChildrenWithState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) > 0) { + const errorMessage = `weighted_round_robin: No connection established. Last error: ${this.lastError}`; + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ + details: errorMessage, + }), errorMessage); + } + else { + this.updateState(connectivity_state_1.ConnectivityState.IDLE, new picker_1.QueuePicker(this), null); + } + /* round_robin should keep all children connected, this is how we do that. + * We can't do this more efficiently in the individual child's updateState + * callback because that doesn't have a reference to which child the state + * change is associated with. */ + for (const { child } of this.children.values()) { + if (child.getConnectivityState() === connectivity_state_1.ConnectivityState.IDLE) { + child.exitIdle(); + } + } + } + updateState(newState, picker, errorMessage) { + trace(connectivity_state_1.ConnectivityState[this.currentState] + + ' -> ' + + connectivity_state_1.ConnectivityState[newState]); + this.currentState = newState; + this.channelControlHelper.updateState(newState, picker, errorMessage); + } + updateAddressList(maybeEndpointList, lbConfig, options, resolutionNote) { + var _a, _b; + if (!(lbConfig instanceof WeightedRoundRobinLoadBalancingConfig)) { + return false; + } + if (!maybeEndpointList.ok) { + if (this.children.size === 0) { + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker(maybeEndpointList.error), maybeEndpointList.error.details); + } + return true; + } + if (maybeEndpointList.value.length === 0) { + const errorMessage = `No addresses resolved. Resolution note: ${resolutionNote}`; + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker({ details: errorMessage }), errorMessage); + return false; + } + trace('Connect to endpoint list ' + maybeEndpointList.value.map(subchannel_address_1.endpointToString)); + const now = new Date(); + const seenEndpointNames = new Set(); + this.updatesPaused = true; + this.latestConfig = lbConfig; + for (const endpoint of maybeEndpointList.value) { + const name = (0, subchannel_address_1.endpointToString)(endpoint); + seenEndpointNames.add(name); + let entry = this.children.get(name); + if (!entry) { + entry = { + child: new load_balancer_pick_first_1.LeafLoadBalancer(endpoint, (0, load_balancer_1.createChildChannelControlHelper)(this.channelControlHelper, { + updateState: (connectivityState, picker, errorMessage) => { + /* Ensure that name resolution is requested again after active + * connections are dropped. This is more aggressive than necessary to + * accomplish that, so we are counting on resolvers to have + * reasonable rate limits. */ + if (this.currentState === connectivity_state_1.ConnectivityState.READY && connectivityState !== connectivity_state_1.ConnectivityState.READY) { + this.channelControlHelper.requestReresolution(); + } + if (connectivityState === connectivity_state_1.ConnectivityState.READY) { + entry.nonEmptySince = null; + } + if (errorMessage) { + this.lastError = errorMessage; + } + this.calculateAndUpdateState(); + }, + createSubchannel: (subchannelAddress, subchannelArgs) => { + const subchannel = this.channelControlHelper.createSubchannel(subchannelAddress, subchannelArgs); + if (entry === null || entry === void 0 ? void 0 : entry.oobMetricsListener) { + return new orca_1.OrcaOobMetricsSubchannelWrapper(subchannel, entry.oobMetricsListener, this.latestConfig.getOobLoadReportingPeriodMs()); + } + else { + return subchannel; + } + } + }), options, resolutionNote), + lastUpdated: now, + nonEmptySince: null, + weight: 0, + oobMetricsListener: null + }; + this.children.set(name, entry); + } + if (lbConfig.getEnableOobLoadReport()) { + entry.oobMetricsListener = loadReport => { + this.updateWeight(entry, loadReport); + }; + } + else { + entry.oobMetricsListener = null; + } + } + for (const [endpointName, entry] of this.children) { + if (seenEndpointNames.has(endpointName)) { + entry.child.startConnecting(); + } + else { + entry.child.destroy(); + this.children.delete(endpointName); + } + } + this.updatesPaused = false; + this.calculateAndUpdateState(); + if (this.weightUpdateTimer) { + clearInterval(this.weightUpdateTimer); + } + this.weightUpdateTimer = (_b = (_a = setInterval(() => { + if (this.currentState === connectivity_state_1.ConnectivityState.READY) { + this.calculateAndUpdateState(); + } + }, lbConfig.getWeightUpdatePeriodMs())).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + return true; + } + exitIdle() { + /* The weighted_round_robin LB policy is only in the IDLE state if it has + * no addresses to try to connect to and it has no picked subchannel. + * In that case, there is no meaningful action that can be taken here. */ + } + resetBackoff() { + // This LB policy has no backoff to reset + } + destroy() { + for (const entry of this.children.values()) { + entry.child.destroy(); + } + this.children.clear(); + if (this.weightUpdateTimer) { + clearInterval(this.weightUpdateTimer); + } + } + getTypeName() { + return TYPE_NAME; + } +} +function setup() { + (0, load_balancer_1.registerLoadBalancerType)(TYPE_NAME, WeightedRoundRobinLoadBalancer, WeightedRoundRobinLoadBalancingConfig); +} +//# sourceMappingURL=load-balancer-weighted-round-robin.js.map + +/***/ }), + +/***/ 7000: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createChildChannelControlHelper = createChildChannelControlHelper; +exports.registerLoadBalancerType = registerLoadBalancerType; +exports.registerDefaultLoadBalancerType = registerDefaultLoadBalancerType; +exports.createLoadBalancer = createLoadBalancer; +exports.isLoadBalancerNameRegistered = isLoadBalancerNameRegistered; +exports.parseLoadBalancingConfig = parseLoadBalancingConfig; +exports.getDefaultConfig = getDefaultConfig; +exports.selectLbConfigFromList = selectLbConfigFromList; +const logging_1 = __nccwpck_require__(8536); +const constants_1 = __nccwpck_require__(68288); +/** + * Create a child ChannelControlHelper that overrides some methods of the + * parent while letting others pass through to the parent unmodified. This + * allows other code to create these children without needing to know about + * all of the methods to be passed through. + * @param parent + * @param overrides + */ +function createChildChannelControlHelper(parent, overrides) { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; + return { + createSubchannel: (_b = (_a = overrides.createSubchannel) === null || _a === void 0 ? void 0 : _a.bind(overrides)) !== null && _b !== void 0 ? _b : parent.createSubchannel.bind(parent), + updateState: (_d = (_c = overrides.updateState) === null || _c === void 0 ? void 0 : _c.bind(overrides)) !== null && _d !== void 0 ? _d : parent.updateState.bind(parent), + requestReresolution: (_f = (_e = overrides.requestReresolution) === null || _e === void 0 ? void 0 : _e.bind(overrides)) !== null && _f !== void 0 ? _f : parent.requestReresolution.bind(parent), + addChannelzChild: (_h = (_g = overrides.addChannelzChild) === null || _g === void 0 ? void 0 : _g.bind(overrides)) !== null && _h !== void 0 ? _h : parent.addChannelzChild.bind(parent), + removeChannelzChild: (_k = (_j = overrides.removeChannelzChild) === null || _j === void 0 ? void 0 : _j.bind(overrides)) !== null && _k !== void 0 ? _k : parent.removeChannelzChild.bind(parent), + }; +} +const registeredLoadBalancerTypes = {}; +let defaultLoadBalancerType = null; +function registerLoadBalancerType(typeName, loadBalancerType, loadBalancingConfigType) { + registeredLoadBalancerTypes[typeName] = { + LoadBalancer: loadBalancerType, + LoadBalancingConfig: loadBalancingConfigType, + }; +} +function registerDefaultLoadBalancerType(typeName) { + defaultLoadBalancerType = typeName; +} +function createLoadBalancer(config, channelControlHelper) { + const typeName = config.getLoadBalancerName(); + if (typeName in registeredLoadBalancerTypes) { + return new registeredLoadBalancerTypes[typeName].LoadBalancer(channelControlHelper); + } + else { + return null; + } +} +function isLoadBalancerNameRegistered(typeName) { + return typeName in registeredLoadBalancerTypes; +} +function parseLoadBalancingConfig(rawConfig) { + const keys = Object.keys(rawConfig); + if (keys.length !== 1) { + throw new Error('Provided load balancing config has multiple conflicting entries'); + } + const typeName = keys[0]; + if (typeName in registeredLoadBalancerTypes) { + try { + return registeredLoadBalancerTypes[typeName].LoadBalancingConfig.createFromJson(rawConfig[typeName]); + } + catch (e) { + throw new Error(`${typeName}: ${e.message}`); + } + } + else { + throw new Error(`Unrecognized load balancing config name ${typeName}`); + } +} +function getDefaultConfig() { + if (!defaultLoadBalancerType) { + throw new Error('No default load balancer type registered'); + } + return new registeredLoadBalancerTypes[defaultLoadBalancerType].LoadBalancingConfig(); +} +function selectLbConfigFromList(configs, fallbackTodefault = false) { + for (const config of configs) { + try { + return parseLoadBalancingConfig(config); + } + catch (e) { + (0, logging_1.log)(constants_1.LogVerbosity.DEBUG, 'Config parsing failed with error', e.message); + continue; + } + } + if (fallbackTodefault) { + if (defaultLoadBalancerType) { + return new registeredLoadBalancerTypes[defaultLoadBalancerType].LoadBalancingConfig(); + } + else { + return null; + } + } + else { + return null; + } +} +//# sourceMappingURL=load-balancer.js.map + +/***/ }), + +/***/ 58944: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LoadBalancingCall = void 0; +const connectivity_state_1 = __nccwpck_require__(60778); +const constants_1 = __nccwpck_require__(68288); +const deadline_1 = __nccwpck_require__(52173); +const metadata_1 = __nccwpck_require__(36100); +const picker_1 = __nccwpck_require__(71663); +const uri_parser_1 = __nccwpck_require__(56027); +const logging = __nccwpck_require__(8536); +const control_plane_status_1 = __nccwpck_require__(39962); +const http2 = __nccwpck_require__(85675); +const TRACER_NAME = 'load_balancing_call'; +class LoadBalancingCall { + constructor(channel, callConfig, methodName, host, credentials, deadline, callNumber) { + var _a, _b; + this.channel = channel; + this.callConfig = callConfig; + this.methodName = methodName; + this.host = host; + this.credentials = credentials; + this.deadline = deadline; + this.callNumber = callNumber; + this.child = null; + this.readPending = false; + this.pendingMessage = null; + this.pendingHalfClose = false; + this.ended = false; + this.metadata = null; + this.listener = null; + this.onCallEnded = null; + this.childStartTime = null; + const splitPath = this.methodName.split('/'); + let serviceName = ''; + /* The standard path format is "/{serviceName}/{methodName}", so if we split + * by '/', the first item should be empty and the second should be the + * service name */ + if (splitPath.length >= 2) { + serviceName = splitPath[1]; + } + const hostname = (_b = (_a = (0, uri_parser_1.splitHostPort)(this.host)) === null || _a === void 0 ? void 0 : _a.host) !== null && _b !== void 0 ? _b : 'localhost'; + /* Currently, call credentials are only allowed on HTTPS connections, so we + * can assume that the scheme is "https" */ + this.serviceUrl = `https://${hostname}/${serviceName}`; + this.startTime = new Date(); + } + getDeadlineInfo() { + var _a, _b; + const deadlineInfo = []; + if (this.childStartTime) { + if (this.childStartTime > this.startTime) { + if ((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.getOptions().waitForReady) { + deadlineInfo.push('wait_for_ready'); + } + deadlineInfo.push(`LB pick: ${(0, deadline_1.formatDateDifference)(this.startTime, this.childStartTime)}`); + } + deadlineInfo.push(...this.child.getDeadlineInfo()); + return deadlineInfo; + } + else { + if ((_b = this.metadata) === null || _b === void 0 ? void 0 : _b.getOptions().waitForReady) { + deadlineInfo.push('wait_for_ready'); + } + deadlineInfo.push('Waiting for LB pick'); + } + return deadlineInfo; + } + trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '[' + this.callNumber + '] ' + text); + } + outputStatus(status, progress) { + var _a, _b; + if (!this.ended) { + this.ended = true; + this.trace('ended with status: code=' + + status.code + + ' details="' + + status.details + + '" start time=' + + this.startTime.toISOString()); + const finalStatus = Object.assign(Object.assign({}, status), { progress }); + (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onReceiveStatus(finalStatus); + (_b = this.onCallEnded) === null || _b === void 0 ? void 0 : _b.call(this, finalStatus.code, finalStatus.details, finalStatus.metadata); + } + } + doPick() { + var _a, _b; + if (this.ended) { + return; + } + if (!this.metadata) { + throw new Error('doPick called before start'); + } + this.trace('Pick called'); + const finalMetadata = this.metadata.clone(); + const pickResult = this.channel.doPick(finalMetadata, this.callConfig.pickInformation); + const subchannelString = pickResult.subchannel + ? '(' + + pickResult.subchannel.getChannelzRef().id + + ') ' + + pickResult.subchannel.getAddress() + : '' + pickResult.subchannel; + this.trace('Pick result: ' + + picker_1.PickResultType[pickResult.pickResultType] + + ' subchannel: ' + + subchannelString + + ' status: ' + + ((_a = pickResult.status) === null || _a === void 0 ? void 0 : _a.code) + + ' ' + + ((_b = pickResult.status) === null || _b === void 0 ? void 0 : _b.details)); + switch (pickResult.pickResultType) { + case picker_1.PickResultType.COMPLETE: + const combinedCallCredentials = this.credentials.compose(pickResult.subchannel.getCallCredentials()); + combinedCallCredentials + .generateMetadata({ method_name: this.methodName, service_url: this.serviceUrl }) + .then(credsMetadata => { + var _a; + /* If this call was cancelled (e.g. by the deadline) before + * metadata generation finished, we shouldn't do anything with + * it. */ + if (this.ended) { + this.trace('Credentials metadata generation finished after call ended'); + return; + } + finalMetadata.merge(credsMetadata); + if (finalMetadata.get('authorization').length > 1) { + this.outputStatus({ + code: constants_1.Status.INTERNAL, + details: '"authorization" metadata cannot have multiple values', + metadata: new metadata_1.Metadata(), + }, 'PROCESSED'); + } + if (pickResult.subchannel.getConnectivityState() !== + connectivity_state_1.ConnectivityState.READY) { + this.trace('Picked subchannel ' + + subchannelString + + ' has state ' + + connectivity_state_1.ConnectivityState[pickResult.subchannel.getConnectivityState()] + + ' after getting credentials metadata. Retrying pick'); + this.doPick(); + return; + } + if (this.deadline !== Infinity) { + finalMetadata.set('grpc-timeout', (0, deadline_1.getDeadlineTimeoutString)(this.deadline)); + } + try { + this.child = pickResult + .subchannel.getRealSubchannel() + .createCall(finalMetadata, this.host, this.methodName, { + onReceiveMetadata: metadata => { + this.trace('Received metadata'); + this.listener.onReceiveMetadata(metadata); + }, + onReceiveMessage: message => { + this.trace('Received message'); + this.listener.onReceiveMessage(message); + }, + onReceiveStatus: status => { + this.trace('Received status'); + if (status.rstCode === + http2.constants.NGHTTP2_REFUSED_STREAM) { + this.outputStatus(status, 'REFUSED'); + } + else { + this.outputStatus(status, 'PROCESSED'); + } + }, + }); + this.childStartTime = new Date(); + } + catch (error) { + this.trace('Failed to start call on picked subchannel ' + + subchannelString + + ' with error ' + + error.message); + this.outputStatus({ + code: constants_1.Status.INTERNAL, + details: 'Failed to start HTTP/2 stream with error ' + + error.message, + metadata: new metadata_1.Metadata(), + }, 'NOT_STARTED'); + return; + } + (_a = pickResult.onCallStarted) === null || _a === void 0 ? void 0 : _a.call(pickResult); + this.onCallEnded = pickResult.onCallEnded; + this.trace('Created child call [' + this.child.getCallNumber() + ']'); + if (this.readPending) { + this.child.startRead(); + } + if (this.pendingMessage) { + this.child.sendMessageWithContext(this.pendingMessage.context, this.pendingMessage.message); + } + if (this.pendingHalfClose) { + this.child.halfClose(); + } + }, (error) => { + // We assume the error code isn't 0 (Status.OK) + const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(typeof error.code === 'number' ? error.code : constants_1.Status.UNKNOWN, `Getting metadata from plugin failed with error: ${error.message}`); + this.outputStatus({ + code: code, + details: details, + metadata: new metadata_1.Metadata(), + }, 'PROCESSED'); + }); + break; + case picker_1.PickResultType.DROP: + const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(pickResult.status.code, pickResult.status.details); + setImmediate(() => { + this.outputStatus({ code, details, metadata: pickResult.status.metadata }, 'DROP'); + }); + break; + case picker_1.PickResultType.TRANSIENT_FAILURE: + if (this.metadata.getOptions().waitForReady) { + this.channel.queueCallForPick(this); + } + else { + const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(pickResult.status.code, pickResult.status.details); + setImmediate(() => { + this.outputStatus({ code, details, metadata: pickResult.status.metadata }, 'PROCESSED'); + }); + } + break; + case picker_1.PickResultType.QUEUE: + this.channel.queueCallForPick(this); + } + } + cancelWithStatus(status, details) { + var _a; + this.trace('cancelWithStatus code: ' + status + ' details: "' + details + '"'); + (_a = this.child) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(status, details); + this.outputStatus({ code: status, details: details, metadata: new metadata_1.Metadata() }, 'PROCESSED'); + } + getPeer() { + var _a, _b; + return (_b = (_a = this.child) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : this.channel.getTarget(); + } + start(metadata, listener) { + this.trace('start called'); + this.listener = listener; + this.metadata = metadata; + this.doPick(); + } + sendMessageWithContext(context, message) { + this.trace('write() called with message of length ' + message.length); + if (this.child) { + this.child.sendMessageWithContext(context, message); + } + else { + this.pendingMessage = { context, message }; + } + } + startRead() { + this.trace('startRead called'); + if (this.child) { + this.child.startRead(); + } + else { + this.readPending = true; + } + } + halfClose() { + this.trace('halfClose called'); + if (this.child) { + this.child.halfClose(); + } + else { + this.pendingHalfClose = true; + } + } + setCredentials(credentials) { + throw new Error('Method not implemented.'); + } + getCallNumber() { + return this.callNumber; + } + getAuthContext() { + if (this.child) { + return this.child.getAuthContext(); + } + else { + return null; + } + } +} +exports.LoadBalancingCall = LoadBalancingCall; +//# sourceMappingURL=load-balancing-call.js.map + +/***/ }), + +/***/ 8536: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +var _a, _b, _c, _d; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.log = exports.setLoggerVerbosity = exports.setLogger = exports.getLogger = void 0; +exports.trace = trace; +exports.isTracerEnabled = isTracerEnabled; +const constants_1 = __nccwpck_require__(68288); +const process_1 = __nccwpck_require__(932); +const clientVersion = (__nccwpck_require__(9943)/* .version */ .rE); +const DEFAULT_LOGGER = { + error: (message, ...optionalParams) => { + console.error('E ' + message, ...optionalParams); + }, + info: (message, ...optionalParams) => { + console.error('I ' + message, ...optionalParams); + }, + debug: (message, ...optionalParams) => { + console.error('D ' + message, ...optionalParams); + }, +}; +let _logger = DEFAULT_LOGGER; +let _logVerbosity = constants_1.LogVerbosity.ERROR; +const verbosityString = (_b = (_a = process.env.GRPC_NODE_VERBOSITY) !== null && _a !== void 0 ? _a : process.env.GRPC_VERBOSITY) !== null && _b !== void 0 ? _b : ''; +switch (verbosityString.toUpperCase()) { + case 'DEBUG': + _logVerbosity = constants_1.LogVerbosity.DEBUG; + break; + case 'INFO': + _logVerbosity = constants_1.LogVerbosity.INFO; + break; + case 'ERROR': + _logVerbosity = constants_1.LogVerbosity.ERROR; + break; + case 'NONE': + _logVerbosity = constants_1.LogVerbosity.NONE; + break; + default: + // Ignore any other values +} +const getLogger = () => { + return _logger; +}; +exports.getLogger = getLogger; +const setLogger = (logger) => { + _logger = logger; +}; +exports.setLogger = setLogger; +const setLoggerVerbosity = (verbosity) => { + _logVerbosity = verbosity; +}; +exports.setLoggerVerbosity = setLoggerVerbosity; +// eslint-disable-next-line @typescript-eslint/no-explicit-any +const log = (severity, ...args) => { + let logFunction; + if (severity >= _logVerbosity) { + switch (severity) { + case constants_1.LogVerbosity.DEBUG: + logFunction = _logger.debug; + break; + case constants_1.LogVerbosity.INFO: + logFunction = _logger.info; + break; + case constants_1.LogVerbosity.ERROR: + logFunction = _logger.error; + break; + } + /* Fall back to _logger.error when other methods are not available for + * compatiblity with older behavior that always logged to _logger.error */ + if (!logFunction) { + logFunction = _logger.error; + } + if (logFunction) { + logFunction.bind(_logger)(...args); + } + } +}; +exports.log = log; +const tracersString = (_d = (_c = process.env.GRPC_NODE_TRACE) !== null && _c !== void 0 ? _c : process.env.GRPC_TRACE) !== null && _d !== void 0 ? _d : ''; +const enabledTracers = new Set(); +const disabledTracers = new Set(); +for (const tracerName of tracersString.split(',')) { + if (tracerName.startsWith('-')) { + disabledTracers.add(tracerName.substring(1)); + } + else { + enabledTracers.add(tracerName); + } +} +const allEnabled = enabledTracers.has('all'); +function trace(severity, tracer, text) { + if (isTracerEnabled(tracer)) { + (0, exports.log)(severity, new Date().toISOString() + + ' | v' + + clientVersion + + ' ' + + process_1.pid + + ' | ' + + tracer + + ' | ' + + text); + } +} +function isTracerEnabled(tracer) { + return (!disabledTracers.has(tracer) && (allEnabled || enabledTracers.has(tracer))); +} +//# sourceMappingURL=logging.js.map + +/***/ }), + +/***/ 76983: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.makeClientConstructor = makeClientConstructor; +exports.loadPackageDefinition = loadPackageDefinition; +const client_1 = __nccwpck_require__(54210); +/** + * Map with short names for each of the requester maker functions. Used in + * makeClientConstructor + * @private + */ +const requesterFuncs = { + unary: client_1.Client.prototype.makeUnaryRequest, + server_stream: client_1.Client.prototype.makeServerStreamRequest, + client_stream: client_1.Client.prototype.makeClientStreamRequest, + bidi: client_1.Client.prototype.makeBidiStreamRequest, +}; +/** + * Returns true, if given key is included in the blacklisted + * keys. + * @param key key for check, string. + */ +function isPrototypePolluted(key) { + return ['__proto__', 'prototype', 'constructor'].includes(key); +} +/** + * Creates a constructor for a client with the given methods, as specified in + * the methods argument. The resulting class will have an instance method for + * each method in the service, which is a partial application of one of the + * [Client]{@link grpc.Client} request methods, depending on `requestSerialize` + * and `responseSerialize`, with the `method`, `serialize`, and `deserialize` + * arguments predefined. + * @param methods An object mapping method names to + * method attributes + * @param serviceName The fully qualified name of the service + * @param classOptions An options object. + * @return New client constructor, which is a subclass of + * {@link grpc.Client}, and has the same arguments as that constructor. + */ +function makeClientConstructor(methods, serviceName, classOptions) { + if (!classOptions) { + classOptions = {}; + } + class ServiceClientImpl extends client_1.Client { + } + Object.keys(methods).forEach(name => { + if (isPrototypePolluted(name)) { + return; + } + const attrs = methods[name]; + let methodType; + // TODO(murgatroid99): Verify that we don't need this anymore + if (typeof name === 'string' && name.charAt(0) === '$') { + throw new Error('Method names cannot start with $'); + } + if (attrs.requestStream) { + if (attrs.responseStream) { + methodType = 'bidi'; + } + else { + methodType = 'client_stream'; + } + } + else { + if (attrs.responseStream) { + methodType = 'server_stream'; + } + else { + methodType = 'unary'; + } + } + const serialize = attrs.requestSerialize; + const deserialize = attrs.responseDeserialize; + const methodFunc = partial(requesterFuncs[methodType], attrs.path, serialize, deserialize); + ServiceClientImpl.prototype[name] = methodFunc; + // Associate all provided attributes with the method + Object.assign(ServiceClientImpl.prototype[name], attrs); + if (attrs.originalName && !isPrototypePolluted(attrs.originalName)) { + ServiceClientImpl.prototype[attrs.originalName] = + ServiceClientImpl.prototype[name]; + } + }); + ServiceClientImpl.service = methods; + ServiceClientImpl.serviceName = serviceName; + return ServiceClientImpl; +} +function partial(fn, path, serialize, deserialize) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + return function (...args) { + return fn.call(this, path, serialize, deserialize, ...args); + }; +} +function isProtobufTypeDefinition(obj) { + return 'format' in obj; +} +/** + * Load a gRPC package definition as a gRPC object hierarchy. + * @param packageDef The package definition object. + * @return The resulting gRPC object. + */ +function loadPackageDefinition(packageDef) { + const result = {}; + for (const serviceFqn in packageDef) { + if (Object.prototype.hasOwnProperty.call(packageDef, serviceFqn)) { + const service = packageDef[serviceFqn]; + const nameComponents = serviceFqn.split('.'); + if (nameComponents.some((comp) => isPrototypePolluted(comp))) { + continue; + } + const serviceName = nameComponents[nameComponents.length - 1]; + let current = result; + for (const packageName of nameComponents.slice(0, -1)) { + if (!current[packageName]) { + current[packageName] = {}; + } + current = current[packageName]; + } + if (isProtobufTypeDefinition(service)) { + current[serviceName] = service; + } + else { + current[serviceName] = makeClientConstructor(service, serviceName, {}); + } + } + } + return result; +} +//# sourceMappingURL=make-client.js.map + +/***/ }), + +/***/ 36100: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Metadata = void 0; +const logging_1 = __nccwpck_require__(8536); +const constants_1 = __nccwpck_require__(68288); +const error_1 = __nccwpck_require__(98219); +const LEGAL_KEY_REGEX = /^[:0-9a-z_.-]+$/; +const LEGAL_NON_BINARY_VALUE_REGEX = /^[ -~]*$/; +function isLegalKey(key) { + return LEGAL_KEY_REGEX.test(key); +} +function isLegalNonBinaryValue(value) { + return LEGAL_NON_BINARY_VALUE_REGEX.test(value); +} +function isBinaryKey(key) { + return key.endsWith('-bin'); +} +function isCustomMetadata(key) { + return !key.startsWith('grpc-'); +} +function normalizeKey(key) { + return key.toLowerCase(); +} +function validate(key, value) { + if (!isLegalKey(key)) { + throw new Error('Metadata key "' + key + '" contains illegal characters'); + } + if (value !== null && value !== undefined) { + if (isBinaryKey(key)) { + if (!Buffer.isBuffer(value)) { + throw new Error("keys that end with '-bin' must have Buffer values"); + } + } + else { + if (Buffer.isBuffer(value)) { + throw new Error("keys that don't end with '-bin' must have String values"); + } + if (!isLegalNonBinaryValue(value)) { + throw new Error('Metadata string value "' + value + '" contains illegal characters'); + } + } + } +} +/** + * A class for storing metadata. Keys are normalized to lowercase ASCII. + */ +class Metadata { + constructor(options = {}) { + this.internalRepr = new Map(); + this.opaqueData = new Map(); + this.options = options; + } + /** + * Sets the given value for the given key by replacing any other values + * associated with that key. Normalizes the key. + * @param key The key to whose value should be set. + * @param value The value to set. Must be a buffer if and only + * if the normalized key ends with '-bin'. + */ + set(key, value) { + key = normalizeKey(key); + validate(key, value); + this.internalRepr.set(key, [value]); + } + /** + * Adds the given value for the given key by appending to a list of previous + * values associated with that key. Normalizes the key. + * @param key The key for which a new value should be appended. + * @param value The value to add. Must be a buffer if and only + * if the normalized key ends with '-bin'. + */ + add(key, value) { + key = normalizeKey(key); + validate(key, value); + const existingValue = this.internalRepr.get(key); + if (existingValue === undefined) { + this.internalRepr.set(key, [value]); + } + else { + existingValue.push(value); + } + } + /** + * Removes the given key and any associated values. Normalizes the key. + * @param key The key whose values should be removed. + */ + remove(key) { + key = normalizeKey(key); + // validate(key); + this.internalRepr.delete(key); + } + /** + * Gets a list of all values associated with the key. Normalizes the key. + * @param key The key whose value should be retrieved. + * @return A list of values associated with the given key. + */ + get(key) { + key = normalizeKey(key); + // validate(key); + return this.internalRepr.get(key) || []; + } + /** + * Gets a plain object mapping each key to the first value associated with it. + * This reflects the most common way that people will want to see metadata. + * @return A key/value mapping of the metadata. + */ + getMap() { + const result = {}; + for (const [key, values] of this.internalRepr) { + if (values.length > 0) { + const v = values[0]; + result[key] = Buffer.isBuffer(v) ? Buffer.from(v) : v; + } + } + return result; + } + /** + * Clones the metadata object. + * @return The newly cloned object. + */ + clone() { + const newMetadata = new Metadata(this.options); + const newInternalRepr = newMetadata.internalRepr; + for (const [key, value] of this.internalRepr) { + const clonedValue = value.map(v => { + if (Buffer.isBuffer(v)) { + return Buffer.from(v); + } + else { + return v; + } + }); + newInternalRepr.set(key, clonedValue); + } + return newMetadata; + } + /** + * Merges all key-value pairs from a given Metadata object into this one. + * If both this object and the given object have values in the same key, + * values from the other Metadata object will be appended to this object's + * values. + * @param other A Metadata object. + */ + merge(other) { + for (const [key, values] of other.internalRepr) { + const mergedValue = (this.internalRepr.get(key) || []).concat(values); + this.internalRepr.set(key, mergedValue); + } + } + setOptions(options) { + this.options = options; + } + getOptions() { + return this.options; + } + /** + * Creates an OutgoingHttpHeaders object that can be used with the http2 API. + */ + toHttp2Headers() { + // NOTE: Node <8.9 formats http2 headers incorrectly. + const result = {}; + for (const [key, values] of this.internalRepr) { + if (key.startsWith(':')) { + continue; + } + // We assume that the user's interaction with this object is limited to + // through its public API (i.e. keys and values are already validated). + result[key] = values.map(bufToString); + } + return result; + } + /** + * This modifies the behavior of JSON.stringify to show an object + * representation of the metadata map. + */ + toJSON() { + const result = {}; + for (const [key, values] of this.internalRepr) { + result[key] = values; + } + return result; + } + /** + * Attach additional data of any type to the metadata object, which will not + * be included when sending headers. The data can later be retrieved with + * `getOpaque`. Keys with the prefix `grpc` are reserved for use by this + * library. + * @param key + * @param value + */ + setOpaque(key, value) { + this.opaqueData.set(key, value); + } + /** + * Retrieve data previously added with `setOpaque`. + * @param key + * @returns + */ + getOpaque(key) { + return this.opaqueData.get(key); + } + /** + * Returns a new Metadata object based fields in a given IncomingHttpHeaders + * object. + * @param headers An IncomingHttpHeaders object. + */ + static fromHttp2Headers(headers) { + const result = new Metadata(); + for (const key of Object.keys(headers)) { + // Reserved headers (beginning with `:`) are not valid keys. + if (key.charAt(0) === ':') { + continue; + } + const values = headers[key]; + try { + if (isBinaryKey(key)) { + if (Array.isArray(values)) { + values.forEach(value => { + result.add(key, Buffer.from(value, 'base64')); + }); + } + else if (values !== undefined) { + if (isCustomMetadata(key)) { + values.split(',').forEach(v => { + result.add(key, Buffer.from(v.trim(), 'base64')); + }); + } + else { + result.add(key, Buffer.from(values, 'base64')); + } + } + } + else { + if (Array.isArray(values)) { + values.forEach(value => { + result.add(key, value); + }); + } + else if (values !== undefined) { + result.add(key, values); + } + } + } + catch (error) { + const message = `Failed to add metadata entry ${key}: ${values}. ${(0, error_1.getErrorMessage)(error)}. For more information see https://github.com/grpc/grpc-node/issues/1173`; + (0, logging_1.log)(constants_1.LogVerbosity.ERROR, message); + } + } + return result; + } +} +exports.Metadata = Metadata; +const bufToString = (val) => { + return Buffer.isBuffer(val) ? val.toString('base64') : val; +}; +//# sourceMappingURL=metadata.js.map + +/***/ }), + +/***/ 82124: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2025 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OrcaOobMetricsSubchannelWrapper = exports.GRPC_METRICS_HEADER = exports.ServerMetricRecorder = exports.PerRequestMetricRecorder = void 0; +exports.createOrcaClient = createOrcaClient; +exports.createMetricsReader = createMetricsReader; +const make_client_1 = __nccwpck_require__(76983); +const duration_1 = __nccwpck_require__(63929); +const channel_credentials_1 = __nccwpck_require__(32257); +const subchannel_interface_1 = __nccwpck_require__(70098); +const constants_1 = __nccwpck_require__(68288); +const backoff_timeout_1 = __nccwpck_require__(14643); +const connectivity_state_1 = __nccwpck_require__(60778); +const loadedOrcaProto = null; +function loadOrcaProto() { + if (loadedOrcaProto) { + return loadedOrcaProto; + } + /* The purpose of this complexity is to avoid loading @grpc/proto-loader at + * runtime for users who will not use/enable ORCA. */ + const loaderLoadSync = (__nccwpck_require__(73066)/* .loadSync */ .Yi); + const loadedProto = loaderLoadSync('xds/service/orca/v3/orca.proto', { + keepCase: true, + longs: String, + enums: String, + defaults: true, + oneofs: true, + includeDirs: [ + __nccwpck_require__.ab + "xds", + __nccwpck_require__.ab + "protoc-gen-validate" + ], + }); + return (0, make_client_1.loadPackageDefinition)(loadedProto); +} +/** + * ORCA metrics recorder for a single request + */ +class PerRequestMetricRecorder { + constructor() { + this.message = {}; + } + /** + * Records a request cost metric measurement for the call. + * @param name + * @param value + */ + recordRequestCostMetric(name, value) { + if (!this.message.request_cost) { + this.message.request_cost = {}; + } + this.message.request_cost[name] = value; + } + /** + * Records a request cost metric measurement for the call. + * @param name + * @param value + */ + recordUtilizationMetric(name, value) { + if (!this.message.utilization) { + this.message.utilization = {}; + } + this.message.utilization[name] = value; + } + /** + * Records an opaque named metric measurement for the call. + * @param name + * @param value + */ + recordNamedMetric(name, value) { + if (!this.message.named_metrics) { + this.message.named_metrics = {}; + } + this.message.named_metrics[name] = value; + } + /** + * Records the CPU utilization metric measurement for the call. + * @param value + */ + recordCPUUtilizationMetric(value) { + this.message.cpu_utilization = value; + } + /** + * Records the memory utilization metric measurement for the call. + * @param value + */ + recordMemoryUtilizationMetric(value) { + this.message.mem_utilization = value; + } + /** + * Records the memory utilization metric measurement for the call. + * @param value + */ + recordApplicationUtilizationMetric(value) { + this.message.application_utilization = value; + } + /** + * Records the queries per second measurement. + * @param value + */ + recordQpsMetric(value) { + this.message.rps_fractional = value; + } + /** + * Records the errors per second measurement. + * @param value + */ + recordEpsMetric(value) { + this.message.eps = value; + } + serialize() { + const orcaProto = loadOrcaProto(); + return orcaProto.xds.data.orca.v3.OrcaLoadReport.serialize(this.message); + } +} +exports.PerRequestMetricRecorder = PerRequestMetricRecorder; +const DEFAULT_REPORT_INTERVAL_MS = 30000; +class ServerMetricRecorder { + constructor() { + this.message = {}; + this.serviceImplementation = { + StreamCoreMetrics: call => { + const reportInterval = call.request.report_interval ? + (0, duration_1.durationToMs)((0, duration_1.durationMessageToDuration)(call.request.report_interval)) : + DEFAULT_REPORT_INTERVAL_MS; + const reportTimer = setInterval(() => { + call.write(this.message); + }, reportInterval); + call.on('cancelled', () => { + clearInterval(reportTimer); + }); + } + }; + } + putUtilizationMetric(name, value) { + if (!this.message.utilization) { + this.message.utilization = {}; + } + this.message.utilization[name] = value; + } + setAllUtilizationMetrics(metrics) { + this.message.utilization = Object.assign({}, metrics); + } + deleteUtilizationMetric(name) { + var _a; + (_a = this.message.utilization) === null || _a === void 0 ? true : delete _a[name]; + } + setCpuUtilizationMetric(value) { + this.message.cpu_utilization = value; + } + deleteCpuUtilizationMetric() { + delete this.message.cpu_utilization; + } + setApplicationUtilizationMetric(value) { + this.message.application_utilization = value; + } + deleteApplicationUtilizationMetric() { + delete this.message.application_utilization; + } + setQpsMetric(value) { + this.message.rps_fractional = value; + } + deleteQpsMetric() { + delete this.message.rps_fractional; + } + setEpsMetric(value) { + this.message.eps = value; + } + deleteEpsMetric() { + delete this.message.eps; + } + addToServer(server) { + const serviceDefinition = loadOrcaProto().xds.service.orca.v3.OpenRcaService.service; + server.addService(serviceDefinition, this.serviceImplementation); + } +} +exports.ServerMetricRecorder = ServerMetricRecorder; +function createOrcaClient(channel) { + const ClientClass = loadOrcaProto().xds.service.orca.v3.OpenRcaService; + return new ClientClass('unused', channel_credentials_1.ChannelCredentials.createInsecure(), { channelOverride: channel }); +} +exports.GRPC_METRICS_HEADER = 'endpoint-load-metrics-bin'; +const PARSED_LOAD_REPORT_KEY = 'grpc_orca_load_report'; +/** + * Create an onCallEnded callback for use in a picker. + * @param listener The listener to handle metrics, whenever they are provided. + * @param previousOnCallEnded The previous onCallEnded callback to propagate + * to, if applicable. + * @returns + */ +function createMetricsReader(listener, previousOnCallEnded) { + return (code, details, metadata) => { + let parsedLoadReport = metadata.getOpaque(PARSED_LOAD_REPORT_KEY); + if (parsedLoadReport) { + listener(parsedLoadReport); + } + else { + const serializedLoadReport = metadata.get(exports.GRPC_METRICS_HEADER); + if (serializedLoadReport.length > 0) { + const orcaProto = loadOrcaProto(); + parsedLoadReport = orcaProto.xds.data.orca.v3.OrcaLoadReport.deserialize(serializedLoadReport[0]); + listener(parsedLoadReport); + metadata.setOpaque(PARSED_LOAD_REPORT_KEY, parsedLoadReport); + } + } + if (previousOnCallEnded) { + previousOnCallEnded(code, details, metadata); + } + }; +} +const DATA_PRODUCER_KEY = 'orca_oob_metrics'; +class OobMetricsDataWatcher { + constructor(metricsListener, intervalMs) { + this.metricsListener = metricsListener; + this.intervalMs = intervalMs; + this.dataProducer = null; + } + setSubchannel(subchannel) { + const producer = subchannel.getOrCreateDataProducer(DATA_PRODUCER_KEY, createOobMetricsDataProducer); + this.dataProducer = producer; + producer.addDataWatcher(this); + } + destroy() { + var _a; + (_a = this.dataProducer) === null || _a === void 0 ? void 0 : _a.removeDataWatcher(this); + } + getInterval() { + return this.intervalMs; + } + onMetricsUpdate(metrics) { + this.metricsListener(metrics); + } +} +class OobMetricsDataProducer { + constructor(subchannel) { + this.subchannel = subchannel; + this.dataWatchers = new Set(); + this.orcaSupported = true; + this.metricsCall = null; + this.currentInterval = Infinity; + this.backoffTimer = new backoff_timeout_1.BackoffTimeout(() => this.updateMetricsSubscription()); + this.subchannelStateListener = () => this.updateMetricsSubscription(); + const channel = subchannel.getChannel(); + this.client = createOrcaClient(channel); + subchannel.addConnectivityStateListener(this.subchannelStateListener); + } + addDataWatcher(dataWatcher) { + this.dataWatchers.add(dataWatcher); + this.updateMetricsSubscription(); + } + removeDataWatcher(dataWatcher) { + var _a; + this.dataWatchers.delete(dataWatcher); + if (this.dataWatchers.size === 0) { + this.subchannel.removeDataProducer(DATA_PRODUCER_KEY); + (_a = this.metricsCall) === null || _a === void 0 ? void 0 : _a.cancel(); + this.metricsCall = null; + this.client.close(); + this.subchannel.removeConnectivityStateListener(this.subchannelStateListener); + } + else { + this.updateMetricsSubscription(); + } + } + updateMetricsSubscription() { + var _a; + if (this.dataWatchers.size === 0 || !this.orcaSupported || this.subchannel.getConnectivityState() !== connectivity_state_1.ConnectivityState.READY) { + return; + } + const newInterval = Math.min(...Array.from(this.dataWatchers).map(watcher => watcher.getInterval())); + if (!this.metricsCall || newInterval !== this.currentInterval) { + (_a = this.metricsCall) === null || _a === void 0 ? void 0 : _a.cancel(); + this.currentInterval = newInterval; + const metricsCall = this.client.streamCoreMetrics({ report_interval: (0, duration_1.msToDuration)(newInterval) }); + this.metricsCall = metricsCall; + metricsCall.on('data', (report) => { + this.dataWatchers.forEach(watcher => { + watcher.onMetricsUpdate(report); + }); + }); + metricsCall.on('error', (error) => { + this.metricsCall = null; + if (error.code === constants_1.Status.UNIMPLEMENTED) { + this.orcaSupported = false; + return; + } + if (error.code === constants_1.Status.CANCELLED) { + return; + } + this.backoffTimer.runOnce(); + }); + } + } +} +class OrcaOobMetricsSubchannelWrapper extends subchannel_interface_1.BaseSubchannelWrapper { + constructor(child, metricsListener, intervalMs) { + super(child); + this.addDataWatcher(new OobMetricsDataWatcher(metricsListener, intervalMs)); + } + getWrappedSubchannel() { + return this.child; + } +} +exports.OrcaOobMetricsSubchannelWrapper = OrcaOobMetricsSubchannelWrapper; +function createOobMetricsDataProducer(subchannel) { + return new OobMetricsDataProducer(subchannel); +} +//# sourceMappingURL=orca.js.map + +/***/ }), + +/***/ 71663: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.QueuePicker = exports.UnavailablePicker = exports.PickResultType = void 0; +const metadata_1 = __nccwpck_require__(36100); +const constants_1 = __nccwpck_require__(68288); +var PickResultType; +(function (PickResultType) { + PickResultType[PickResultType["COMPLETE"] = 0] = "COMPLETE"; + PickResultType[PickResultType["QUEUE"] = 1] = "QUEUE"; + PickResultType[PickResultType["TRANSIENT_FAILURE"] = 2] = "TRANSIENT_FAILURE"; + PickResultType[PickResultType["DROP"] = 3] = "DROP"; +})(PickResultType || (exports.PickResultType = PickResultType = {})); +/** + * A standard picker representing a load balancer in the TRANSIENT_FAILURE + * state. Always responds to every pick request with an UNAVAILABLE status. + */ +class UnavailablePicker { + constructor(status) { + this.status = Object.assign({ code: constants_1.Status.UNAVAILABLE, details: 'No connection established', metadata: new metadata_1.Metadata() }, status); + } + pick(pickArgs) { + return { + pickResultType: PickResultType.TRANSIENT_FAILURE, + subchannel: null, + status: this.status, + onCallStarted: null, + onCallEnded: null, + }; + } +} +exports.UnavailablePicker = UnavailablePicker; +/** + * A standard picker representing a load balancer in the IDLE or CONNECTING + * state. Always responds to every pick request with a QUEUE pick result + * indicating that the pick should be tried again with the next `Picker`. Also + * reports back to the load balancer that a connection should be established + * once any pick is attempted. + * If the childPicker is provided, delegate to it instead of returning the + * hardcoded QUEUE pick result, but still calls exitIdle. + */ +class QueuePicker { + // Constructed with a load balancer. Calls exitIdle on it the first time pick is called + constructor(loadBalancer, childPicker) { + this.loadBalancer = loadBalancer; + this.childPicker = childPicker; + this.calledExitIdle = false; + } + pick(pickArgs) { + if (!this.calledExitIdle) { + process.nextTick(() => { + this.loadBalancer.exitIdle(); + }); + this.calledExitIdle = true; + } + if (this.childPicker) { + return this.childPicker.pick(pickArgs); + } + else { + return { + pickResultType: PickResultType.QUEUE, + subchannel: null, + status: null, + onCallStarted: null, + onCallEnded: null, + }; + } + } +} +exports.QueuePicker = QueuePicker; +//# sourceMappingURL=picker.js.map + +/***/ }), + +/***/ 58291: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2025 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PriorityQueue = void 0; +const top = 0; +const parent = (i) => Math.floor(i / 2); +const left = (i) => i * 2 + 1; +const right = (i) => i * 2 + 2; +/** + * A generic priority queue implemented as an array-based binary heap. + * Adapted from https://stackoverflow.com/a/42919752/159388 + */ +class PriorityQueue { + /** + * + * @param comparator Returns true if the first argument should precede the + * second in the queue. Defaults to `(a, b) => a > b` + */ + constructor(comparator = (a, b) => a > b) { + this.comparator = comparator; + this.heap = []; + } + /** + * @returns The number of items currently in the queue + */ + size() { + return this.heap.length; + } + /** + * @returns True if there are no items in the queue, false otherwise + */ + isEmpty() { + return this.size() == 0; + } + /** + * Look at the front item that would be popped, without modifying the contents + * of the queue + * @returns The front item in the queue, or undefined if the queue is empty + */ + peek() { + return this.heap[top]; + } + /** + * Add the items to the queue + * @param values The items to add + * @returns The new size of the queue after adding the items + */ + push(...values) { + values.forEach(value => { + this.heap.push(value); + this.siftUp(); + }); + return this.size(); + } + /** + * Remove the front item in the queue and return it + * @returns The front item in the queue, or undefined if the queue is empty + */ + pop() { + const poppedValue = this.peek(); + const bottom = this.size() - 1; + if (bottom > top) { + this.swap(top, bottom); + } + this.heap.pop(); + this.siftDown(); + return poppedValue; + } + /** + * Simultaneously remove the front item in the queue and add the provided + * item. + * @param value The item to add + * @returns The front item in the queue, or undefined if the queue is empty + */ + replace(value) { + const replacedValue = this.peek(); + this.heap[top] = value; + this.siftDown(); + return replacedValue; + } + greater(i, j) { + return this.comparator(this.heap[i], this.heap[j]); + } + swap(i, j) { + [this.heap[i], this.heap[j]] = [this.heap[j], this.heap[i]]; + } + siftUp() { + let node = this.size() - 1; + while (node > top && this.greater(node, parent(node))) { + this.swap(node, parent(node)); + node = parent(node); + } + } + siftDown() { + let node = top; + while ((left(node) < this.size() && this.greater(left(node), node)) || + (right(node) < this.size() && this.greater(right(node), node))) { + let maxChild = (right(node) < this.size() && this.greater(right(node), left(node))) ? right(node) : left(node); + this.swap(node, maxChild); + node = maxChild; + } + } +} +exports.PriorityQueue = PriorityQueue; +//# sourceMappingURL=priority-queue.js.map + +/***/ }), + +/***/ 51149: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DEFAULT_PORT = void 0; +exports.setup = setup; +const resolver_1 = __nccwpck_require__(76255); +const dns_1 = __nccwpck_require__(49869); +const service_config_1 = __nccwpck_require__(70005); +const constants_1 = __nccwpck_require__(68288); +const call_interface_1 = __nccwpck_require__(61803); +const metadata_1 = __nccwpck_require__(36100); +const logging = __nccwpck_require__(8536); +const constants_2 = __nccwpck_require__(68288); +const uri_parser_1 = __nccwpck_require__(56027); +const net_1 = __nccwpck_require__(69278); +const backoff_timeout_1 = __nccwpck_require__(14643); +const environment_1 = __nccwpck_require__(16964); +const TRACER_NAME = 'dns_resolver'; +function trace(text) { + logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, text); +} +/** + * The default TCP port to connect to if not explicitly specified in the target. + */ +exports.DEFAULT_PORT = 443; +const DEFAULT_MIN_TIME_BETWEEN_RESOLUTIONS_MS = 30000; +/** + * Resolver implementation that handles DNS names and IP addresses. + */ +class DnsResolver { + constructor(target, listener, channelOptions) { + var _a, _b, _c; + this.target = target; + this.listener = listener; + this.pendingLookupPromise = null; + this.pendingTxtPromise = null; + this.latestLookupResult = null; + this.latestServiceConfigResult = null; + this.continueResolving = false; + this.isNextResolutionTimerRunning = false; + this.isServiceConfigEnabled = true; + this.returnedIpResult = false; + this.alternativeResolver = new dns_1.promises.Resolver(); + trace('Resolver constructed for target ' + (0, uri_parser_1.uriToString)(target)); + if (target.authority) { + this.alternativeResolver.setServers([target.authority]); + } + const hostPort = (0, uri_parser_1.splitHostPort)(target.path); + if (hostPort === null) { + this.ipResult = null; + this.dnsHostname = null; + this.port = null; + } + else { + if ((0, net_1.isIPv4)(hostPort.host) || (0, net_1.isIPv6)(hostPort.host)) { + this.ipResult = [ + { + addresses: [ + { + host: hostPort.host, + port: (_a = hostPort.port) !== null && _a !== void 0 ? _a : exports.DEFAULT_PORT, + }, + ], + }, + ]; + this.dnsHostname = null; + this.port = null; + } + else { + this.ipResult = null; + this.dnsHostname = hostPort.host; + this.port = (_b = hostPort.port) !== null && _b !== void 0 ? _b : exports.DEFAULT_PORT; + } + } + this.percentage = Math.random() * 100; + if (channelOptions['grpc.service_config_disable_resolution'] === 1) { + this.isServiceConfigEnabled = false; + } + this.defaultResolutionError = { + code: constants_1.Status.UNAVAILABLE, + details: `Name resolution failed for target ${(0, uri_parser_1.uriToString)(this.target)}`, + metadata: new metadata_1.Metadata(), + }; + const backoffOptions = { + initialDelay: channelOptions['grpc.initial_reconnect_backoff_ms'], + maxDelay: channelOptions['grpc.max_reconnect_backoff_ms'], + }; + this.backoff = new backoff_timeout_1.BackoffTimeout(() => { + if (this.continueResolving) { + this.startResolutionWithBackoff(); + } + }, backoffOptions); + this.backoff.unref(); + this.minTimeBetweenResolutionsMs = + (_c = channelOptions['grpc.dns_min_time_between_resolutions_ms']) !== null && _c !== void 0 ? _c : DEFAULT_MIN_TIME_BETWEEN_RESOLUTIONS_MS; + this.nextResolutionTimer = setTimeout(() => { }, 0); + clearTimeout(this.nextResolutionTimer); + } + /** + * If the target is an IP address, just provide that address as a result. + * Otherwise, initiate A, AAAA, and TXT lookups + */ + startResolution() { + if (this.ipResult !== null) { + if (!this.returnedIpResult) { + trace('Returning IP address for target ' + (0, uri_parser_1.uriToString)(this.target)); + setImmediate(() => { + this.listener((0, call_interface_1.statusOrFromValue)(this.ipResult), {}, null, ''); + }); + this.returnedIpResult = true; + } + this.backoff.stop(); + this.backoff.reset(); + this.stopNextResolutionTimer(); + return; + } + if (this.dnsHostname === null) { + trace('Failed to parse DNS address ' + (0, uri_parser_1.uriToString)(this.target)); + setImmediate(() => { + this.listener((0, call_interface_1.statusOrFromError)({ + code: constants_1.Status.UNAVAILABLE, + details: `Failed to parse DNS address ${(0, uri_parser_1.uriToString)(this.target)}` + }), {}, null, ''); + }); + this.stopNextResolutionTimer(); + } + else { + if (this.pendingLookupPromise !== null) { + return; + } + trace('Looking up DNS hostname ' + this.dnsHostname); + /* We clear out latestLookupResult here to ensure that it contains the + * latest result since the last time we started resolving. That way, the + * TXT resolution handler can use it, but only if it finishes second. We + * don't clear out any previous service config results because it's + * better to use a service config that's slightly out of date than to + * revert to an effectively blank one. */ + this.latestLookupResult = null; + const hostname = this.dnsHostname; + this.pendingLookupPromise = this.lookup(hostname); + this.pendingLookupPromise.then(addressList => { + if (this.pendingLookupPromise === null) { + return; + } + this.pendingLookupPromise = null; + this.latestLookupResult = (0, call_interface_1.statusOrFromValue)(addressList.map(address => ({ + addresses: [address], + }))); + const allAddressesString = '[' + + addressList.map(addr => addr.host + ':' + addr.port).join(',') + + ']'; + trace('Resolved addresses for target ' + + (0, uri_parser_1.uriToString)(this.target) + + ': ' + + allAddressesString); + /* If the TXT lookup has not yet finished, both of the last two + * arguments will be null, which is the equivalent of getting an + * empty TXT response. When the TXT lookup does finish, its handler + * can update the service config by using the same address list */ + const healthStatus = this.listener(this.latestLookupResult, {}, this.latestServiceConfigResult, ''); + this.handleHealthStatus(healthStatus); + }, err => { + if (this.pendingLookupPromise === null) { + return; + } + trace('Resolution error for target ' + + (0, uri_parser_1.uriToString)(this.target) + + ': ' + + err.message); + this.pendingLookupPromise = null; + this.stopNextResolutionTimer(); + this.listener((0, call_interface_1.statusOrFromError)(this.defaultResolutionError), {}, this.latestServiceConfigResult, ''); + }); + /* If there already is a still-pending TXT resolution, we can just use + * that result when it comes in */ + if (this.isServiceConfigEnabled && this.pendingTxtPromise === null) { + /* We handle the TXT query promise differently than the others because + * the name resolution attempt as a whole is a success even if the TXT + * lookup fails */ + this.pendingTxtPromise = this.resolveTxt(hostname); + this.pendingTxtPromise.then(txtRecord => { + if (this.pendingTxtPromise === null) { + return; + } + this.pendingTxtPromise = null; + let serviceConfig; + try { + serviceConfig = (0, service_config_1.extractAndSelectServiceConfig)(txtRecord, this.percentage); + if (serviceConfig) { + this.latestServiceConfigResult = (0, call_interface_1.statusOrFromValue)(serviceConfig); + } + else { + this.latestServiceConfigResult = null; + } + } + catch (err) { + this.latestServiceConfigResult = (0, call_interface_1.statusOrFromError)({ + code: constants_1.Status.UNAVAILABLE, + details: `Parsing service config failed with error ${err.message}` + }); + } + if (this.latestLookupResult !== null) { + /* We rely here on the assumption that calling this function with + * identical parameters will be essentialy idempotent, and calling + * it with the same address list and a different service config + * should result in a fast and seamless switchover. */ + this.listener(this.latestLookupResult, {}, this.latestServiceConfigResult, ''); + } + }, err => { + /* If TXT lookup fails we should do nothing, which means that we + * continue to use the result of the most recent successful lookup, + * or the default null config object if there has never been a + * successful lookup. We do not set the latestServiceConfigError + * here because that is specifically used for response validation + * errors. We still need to handle this error so that it does not + * bubble up as an unhandled promise rejection. */ + }); + } + } + } + /** + * The ResolverListener returns a boolean indicating whether the LB policy + * accepted the resolution result. A false result on an otherwise successful + * resolution should be treated as a resolution failure. + * @param healthStatus + */ + handleHealthStatus(healthStatus) { + if (healthStatus) { + this.backoff.stop(); + this.backoff.reset(); + } + else { + this.continueResolving = true; + } + } + async lookup(hostname) { + if (environment_1.GRPC_NODE_USE_ALTERNATIVE_RESOLVER) { + trace('Using alternative DNS resolver.'); + const records = await Promise.allSettled([ + this.alternativeResolver.resolve4(hostname), + this.alternativeResolver.resolve6(hostname), + ]); + if (records.every(result => result.status === 'rejected')) { + throw new Error(records[0].reason); + } + return records + .reduce((acc, result) => { + return result.status === 'fulfilled' + ? [...acc, ...result.value] + : acc; + }, []) + .map(addr => ({ + host: addr, + port: +this.port, + })); + } + /* We lookup both address families here and then split them up later + * because when looking up a single family, dns.lookup outputs an error + * if the name exists but there are no records for that family, and that + * error is indistinguishable from other kinds of errors */ + const addressList = await dns_1.promises.lookup(hostname, { all: true }); + return addressList.map(addr => ({ host: addr.address, port: +this.port })); + } + async resolveTxt(hostname) { + if (environment_1.GRPC_NODE_USE_ALTERNATIVE_RESOLVER) { + trace('Using alternative DNS resolver.'); + return this.alternativeResolver.resolveTxt(hostname); + } + return dns_1.promises.resolveTxt(hostname); + } + startNextResolutionTimer() { + var _a, _b; + clearTimeout(this.nextResolutionTimer); + this.nextResolutionTimer = setTimeout(() => { + this.stopNextResolutionTimer(); + if (this.continueResolving) { + this.startResolutionWithBackoff(); + } + }, this.minTimeBetweenResolutionsMs); + (_b = (_a = this.nextResolutionTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + this.isNextResolutionTimerRunning = true; + } + stopNextResolutionTimer() { + clearTimeout(this.nextResolutionTimer); + this.isNextResolutionTimerRunning = false; + } + startResolutionWithBackoff() { + if (this.pendingLookupPromise === null) { + this.continueResolving = false; + this.backoff.runOnce(); + this.startNextResolutionTimer(); + this.startResolution(); + } + } + updateResolution() { + /* If there is a pending lookup, just let it finish. Otherwise, if the + * nextResolutionTimer or backoff timer is running, set the + * continueResolving flag to resolve when whichever of those timers + * fires. Otherwise, start resolving immediately. */ + if (this.pendingLookupPromise === null) { + if (this.isNextResolutionTimerRunning || this.backoff.isRunning()) { + if (this.isNextResolutionTimerRunning) { + trace('resolution update delayed by "min time between resolutions" rate limit'); + } + else { + trace('resolution update delayed by backoff timer until ' + + this.backoff.getEndTime().toISOString()); + } + this.continueResolving = true; + } + else { + this.startResolutionWithBackoff(); + } + } + } + /** + * Reset the resolver to the same state it had when it was created. In-flight + * DNS requests cannot be cancelled, but they are discarded and their results + * will be ignored. + */ + destroy() { + this.continueResolving = false; + this.backoff.reset(); + this.backoff.stop(); + this.stopNextResolutionTimer(); + this.pendingLookupPromise = null; + this.pendingTxtPromise = null; + this.latestLookupResult = null; + this.latestServiceConfigResult = null; + this.returnedIpResult = false; + } + /** + * Get the default authority for the given target. For IP targets, that is + * the IP address. For DNS targets, it is the hostname. + * @param target + */ + static getDefaultAuthority(target) { + return target.path; + } +} +/** + * Set up the DNS resolver class by registering it as the handler for the + * "dns:" prefix and as the default resolver. + */ +function setup() { + (0, resolver_1.registerResolver)('dns', DnsResolver); + (0, resolver_1.registerDefaultScheme)('dns'); +} +//# sourceMappingURL=resolver-dns.js.map + +/***/ }), + +/***/ 52617: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2021 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.setup = setup; +const net_1 = __nccwpck_require__(69278); +const call_interface_1 = __nccwpck_require__(61803); +const constants_1 = __nccwpck_require__(68288); +const metadata_1 = __nccwpck_require__(36100); +const resolver_1 = __nccwpck_require__(76255); +const subchannel_address_1 = __nccwpck_require__(97021); +const uri_parser_1 = __nccwpck_require__(56027); +const logging = __nccwpck_require__(8536); +const TRACER_NAME = 'ip_resolver'; +function trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); +} +const IPV4_SCHEME = 'ipv4'; +const IPV6_SCHEME = 'ipv6'; +/** + * The default TCP port to connect to if not explicitly specified in the target. + */ +const DEFAULT_PORT = 443; +class IpResolver { + constructor(target, listener, channelOptions) { + var _a; + this.listener = listener; + this.endpoints = []; + this.error = null; + this.hasReturnedResult = false; + trace('Resolver constructed for target ' + (0, uri_parser_1.uriToString)(target)); + const addresses = []; + if (!(target.scheme === IPV4_SCHEME || target.scheme === IPV6_SCHEME)) { + this.error = { + code: constants_1.Status.UNAVAILABLE, + details: `Unrecognized scheme ${target.scheme} in IP resolver`, + metadata: new metadata_1.Metadata(), + }; + return; + } + const pathList = target.path.split(','); + for (const path of pathList) { + const hostPort = (0, uri_parser_1.splitHostPort)(path); + if (hostPort === null) { + this.error = { + code: constants_1.Status.UNAVAILABLE, + details: `Failed to parse ${target.scheme} address ${path}`, + metadata: new metadata_1.Metadata(), + }; + return; + } + if ((target.scheme === IPV4_SCHEME && !(0, net_1.isIPv4)(hostPort.host)) || + (target.scheme === IPV6_SCHEME && !(0, net_1.isIPv6)(hostPort.host))) { + this.error = { + code: constants_1.Status.UNAVAILABLE, + details: `Failed to parse ${target.scheme} address ${path}`, + metadata: new metadata_1.Metadata(), + }; + return; + } + addresses.push({ + host: hostPort.host, + port: (_a = hostPort.port) !== null && _a !== void 0 ? _a : DEFAULT_PORT, + }); + } + this.endpoints = addresses.map(address => ({ addresses: [address] })); + trace('Parsed ' + target.scheme + ' address list ' + addresses.map(subchannel_address_1.subchannelAddressToString)); + } + updateResolution() { + if (!this.hasReturnedResult) { + this.hasReturnedResult = true; + process.nextTick(() => { + if (this.error) { + this.listener((0, call_interface_1.statusOrFromError)(this.error), {}, null, ''); + } + else { + this.listener((0, call_interface_1.statusOrFromValue)(this.endpoints), {}, null, ''); + } + }); + } + } + destroy() { + this.hasReturnedResult = false; + } + static getDefaultAuthority(target) { + return target.path.split(',')[0]; + } +} +function setup() { + (0, resolver_1.registerResolver)(IPV4_SCHEME, IpResolver); + (0, resolver_1.registerResolver)(IPV6_SCHEME, IpResolver); +} +//# sourceMappingURL=resolver-ip.js.map + +/***/ }), + +/***/ 69252: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.setup = setup; +const resolver_1 = __nccwpck_require__(76255); +const call_interface_1 = __nccwpck_require__(61803); +class UdsResolver { + constructor(target, listener, channelOptions) { + this.listener = listener; + this.hasReturnedResult = false; + this.endpoints = []; + let path; + if (target.authority === '') { + path = '/' + target.path; + } + else { + path = target.path; + } + this.endpoints = [{ addresses: [{ path }] }]; + } + updateResolution() { + if (!this.hasReturnedResult) { + this.hasReturnedResult = true; + process.nextTick(this.listener, (0, call_interface_1.statusOrFromValue)(this.endpoints), {}, null, ''); + } + } + destroy() { + this.hasReturnedResult = false; + } + static getDefaultAuthority(target) { + return 'localhost'; + } +} +function setup() { + (0, resolver_1.registerResolver)('unix', UdsResolver); +} +//# sourceMappingURL=resolver-uds.js.map + +/***/ }), + +/***/ 76255: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CHANNEL_ARGS_CONFIG_SELECTOR_KEY = void 0; +exports.registerResolver = registerResolver; +exports.registerDefaultScheme = registerDefaultScheme; +exports.createResolver = createResolver; +exports.getDefaultAuthority = getDefaultAuthority; +exports.mapUriDefaultScheme = mapUriDefaultScheme; +const uri_parser_1 = __nccwpck_require__(56027); +exports.CHANNEL_ARGS_CONFIG_SELECTOR_KEY = 'grpc.internal.config_selector'; +const registeredResolvers = {}; +let defaultScheme = null; +/** + * Register a resolver class to handle target names prefixed with the `prefix` + * string. This prefix should correspond to a URI scheme name listed in the + * [gRPC Name Resolution document](https://github.com/grpc/grpc/blob/master/doc/naming.md) + * @param prefix + * @param resolverClass + */ +function registerResolver(scheme, resolverClass) { + registeredResolvers[scheme] = resolverClass; +} +/** + * Register a default resolver to handle target names that do not start with + * any registered prefix. + * @param resolverClass + */ +function registerDefaultScheme(scheme) { + defaultScheme = scheme; +} +/** + * Create a name resolver for the specified target, if possible. Throws an + * error if no such name resolver can be created. + * @param target + * @param listener + */ +function createResolver(target, listener, options) { + if (target.scheme !== undefined && target.scheme in registeredResolvers) { + return new registeredResolvers[target.scheme](target, listener, options); + } + else { + throw new Error(`No resolver could be created for target ${(0, uri_parser_1.uriToString)(target)}`); + } +} +/** + * Get the default authority for the specified target, if possible. Throws an + * error if no registered name resolver can parse that target string. + * @param target + */ +function getDefaultAuthority(target) { + if (target.scheme !== undefined && target.scheme in registeredResolvers) { + return registeredResolvers[target.scheme].getDefaultAuthority(target); + } + else { + throw new Error(`Invalid target ${(0, uri_parser_1.uriToString)(target)}`); + } +} +function mapUriDefaultScheme(target) { + if (target.scheme === undefined || !(target.scheme in registeredResolvers)) { + if (defaultScheme !== null) { + return { + scheme: defaultScheme, + authority: undefined, + path: (0, uri_parser_1.uriToString)(target), + }; + } + else { + return null; + } + } + return target; +} +//# sourceMappingURL=resolver.js.map + +/***/ }), + +/***/ 8023: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ResolvingCall = void 0; +const call_credentials_1 = __nccwpck_require__(73161); +const constants_1 = __nccwpck_require__(68288); +const deadline_1 = __nccwpck_require__(52173); +const metadata_1 = __nccwpck_require__(36100); +const logging = __nccwpck_require__(8536); +const control_plane_status_1 = __nccwpck_require__(39962); +const TRACER_NAME = 'resolving_call'; +class ResolvingCall { + constructor(channel, method, options, filterStackFactory, callNumber) { + this.channel = channel; + this.method = method; + this.filterStackFactory = filterStackFactory; + this.callNumber = callNumber; + this.child = null; + this.readPending = false; + this.pendingMessage = null; + this.pendingHalfClose = false; + this.ended = false; + this.readFilterPending = false; + this.writeFilterPending = false; + this.pendingChildStatus = null; + this.metadata = null; + this.listener = null; + this.statusWatchers = []; + this.deadlineTimer = setTimeout(() => { }, 0); + this.filterStack = null; + this.deadlineStartTime = null; + this.configReceivedTime = null; + this.childStartTime = null; + /** + * Credentials configured for this specific call. Does not include + * call credentials associated with the channel credentials used to create + * the channel. + */ + this.credentials = call_credentials_1.CallCredentials.createEmpty(); + this.deadline = options.deadline; + this.host = options.host; + if (options.parentCall) { + if (options.flags & constants_1.Propagate.CANCELLATION) { + options.parentCall.on('cancelled', () => { + this.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled by parent call'); + }); + } + if (options.flags & constants_1.Propagate.DEADLINE) { + this.trace('Propagating deadline from parent: ' + + options.parentCall.getDeadline()); + this.deadline = (0, deadline_1.minDeadline)(this.deadline, options.parentCall.getDeadline()); + } + } + this.trace('Created'); + this.runDeadlineTimer(); + } + trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '[' + this.callNumber + '] ' + text); + } + runDeadlineTimer() { + clearTimeout(this.deadlineTimer); + this.deadlineStartTime = new Date(); + this.trace('Deadline: ' + (0, deadline_1.deadlineToString)(this.deadline)); + const timeout = (0, deadline_1.getRelativeTimeout)(this.deadline); + if (timeout !== Infinity) { + this.trace('Deadline will be reached in ' + timeout + 'ms'); + const handleDeadline = () => { + if (!this.deadlineStartTime) { + this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, 'Deadline exceeded'); + return; + } + const deadlineInfo = []; + const deadlineEndTime = new Date(); + deadlineInfo.push(`Deadline exceeded after ${(0, deadline_1.formatDateDifference)(this.deadlineStartTime, deadlineEndTime)}`); + if (this.configReceivedTime) { + if (this.configReceivedTime > this.deadlineStartTime) { + deadlineInfo.push(`name resolution: ${(0, deadline_1.formatDateDifference)(this.deadlineStartTime, this.configReceivedTime)}`); + } + if (this.childStartTime) { + if (this.childStartTime > this.configReceivedTime) { + deadlineInfo.push(`metadata filters: ${(0, deadline_1.formatDateDifference)(this.configReceivedTime, this.childStartTime)}`); + } + } + else { + deadlineInfo.push('waiting for metadata filters'); + } + } + else { + deadlineInfo.push('waiting for name resolution'); + } + if (this.child) { + deadlineInfo.push(...this.child.getDeadlineInfo()); + } + this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, deadlineInfo.join(',')); + }; + if (timeout <= 0) { + process.nextTick(handleDeadline); + } + else { + this.deadlineTimer = setTimeout(handleDeadline, timeout); + } + } + } + outputStatus(status) { + if (!this.ended) { + this.ended = true; + if (!this.filterStack) { + this.filterStack = this.filterStackFactory.createFilter(); + } + clearTimeout(this.deadlineTimer); + const filteredStatus = this.filterStack.receiveTrailers(status); + this.trace('ended with status: code=' + + filteredStatus.code + + ' details="' + + filteredStatus.details + + '"'); + this.statusWatchers.forEach(watcher => watcher(filteredStatus)); + process.nextTick(() => { + var _a; + (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onReceiveStatus(filteredStatus); + }); + } + } + sendMessageOnChild(context, message) { + if (!this.child) { + throw new Error('sendMessageonChild called with child not populated'); + } + const child = this.child; + this.writeFilterPending = true; + this.filterStack.sendMessage(Promise.resolve({ message: message, flags: context.flags })).then(filteredMessage => { + this.writeFilterPending = false; + child.sendMessageWithContext(context, filteredMessage.message); + if (this.pendingHalfClose) { + child.halfClose(); + } + }, (status) => { + this.cancelWithStatus(status.code, status.details); + }); + } + getConfig() { + if (this.ended) { + return; + } + if (!this.metadata || !this.listener) { + throw new Error('getConfig called before start'); + } + const configResult = this.channel.getConfig(this.method, this.metadata); + if (configResult.type === 'NONE') { + this.channel.queueCallForConfig(this); + return; + } + else if (configResult.type === 'ERROR') { + if (this.metadata.getOptions().waitForReady) { + this.channel.queueCallForConfig(this); + } + else { + this.outputStatus(configResult.error); + } + return; + } + // configResult.type === 'SUCCESS' + this.configReceivedTime = new Date(); + const config = configResult.config; + if (config.status !== constants_1.Status.OK) { + const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(config.status, 'Failed to route call to method ' + this.method); + this.outputStatus({ + code: code, + details: details, + metadata: new metadata_1.Metadata(), + }); + return; + } + if (config.methodConfig.timeout) { + const configDeadline = new Date(); + configDeadline.setSeconds(configDeadline.getSeconds() + config.methodConfig.timeout.seconds); + configDeadline.setMilliseconds(configDeadline.getMilliseconds() + + config.methodConfig.timeout.nanos / 1000000); + this.deadline = (0, deadline_1.minDeadline)(this.deadline, configDeadline); + this.runDeadlineTimer(); + } + this.filterStackFactory.push(config.dynamicFilterFactories); + this.filterStack = this.filterStackFactory.createFilter(); + this.filterStack.sendMetadata(Promise.resolve(this.metadata)).then(filteredMetadata => { + this.child = this.channel.createRetryingCall(config, this.method, this.host, this.credentials, this.deadline); + this.trace('Created child [' + this.child.getCallNumber() + ']'); + this.childStartTime = new Date(); + this.child.start(filteredMetadata, { + onReceiveMetadata: metadata => { + this.trace('Received metadata'); + this.listener.onReceiveMetadata(this.filterStack.receiveMetadata(metadata)); + }, + onReceiveMessage: message => { + this.trace('Received message'); + this.readFilterPending = true; + this.filterStack.receiveMessage(message).then(filteredMesssage => { + this.trace('Finished filtering received message'); + this.readFilterPending = false; + this.listener.onReceiveMessage(filteredMesssage); + if (this.pendingChildStatus) { + this.outputStatus(this.pendingChildStatus); + } + }, (status) => { + this.cancelWithStatus(status.code, status.details); + }); + }, + onReceiveStatus: status => { + this.trace('Received status'); + if (this.readFilterPending) { + this.pendingChildStatus = status; + } + else { + this.outputStatus(status); + } + }, + }); + if (this.readPending) { + this.child.startRead(); + } + if (this.pendingMessage) { + this.sendMessageOnChild(this.pendingMessage.context, this.pendingMessage.message); + } + else if (this.pendingHalfClose) { + this.child.halfClose(); + } + }, (status) => { + this.outputStatus(status); + }); + } + reportResolverError(status) { + var _a; + if ((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.getOptions().waitForReady) { + this.channel.queueCallForConfig(this); + } + else { + this.outputStatus(status); + } + } + cancelWithStatus(status, details) { + var _a; + this.trace('cancelWithStatus code: ' + status + ' details: "' + details + '"'); + (_a = this.child) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(status, details); + this.outputStatus({ + code: status, + details: details, + metadata: new metadata_1.Metadata(), + }); + } + getPeer() { + var _a, _b; + return (_b = (_a = this.child) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : this.channel.getTarget(); + } + start(metadata, listener) { + this.trace('start called'); + this.metadata = metadata.clone(); + this.listener = listener; + this.getConfig(); + } + sendMessageWithContext(context, message) { + this.trace('write() called with message of length ' + message.length); + if (this.child) { + this.sendMessageOnChild(context, message); + } + else { + this.pendingMessage = { context, message }; + } + } + startRead() { + this.trace('startRead called'); + if (this.child) { + this.child.startRead(); + } + else { + this.readPending = true; + } + } + halfClose() { + this.trace('halfClose called'); + if (this.child && !this.writeFilterPending) { + this.child.halfClose(); + } + else { + this.pendingHalfClose = true; + } + } + setCredentials(credentials) { + this.credentials = credentials; + } + addStatusWatcher(watcher) { + this.statusWatchers.push(watcher); + } + getCallNumber() { + return this.callNumber; + } + getAuthContext() { + if (this.child) { + return this.child.getAuthContext(); + } + else { + return null; + } + } +} +exports.ResolvingCall = ResolvingCall; +//# sourceMappingURL=resolving-call.js.map + +/***/ }), + +/***/ 63962: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ResolvingLoadBalancer = void 0; +const load_balancer_1 = __nccwpck_require__(7000); +const service_config_1 = __nccwpck_require__(70005); +const connectivity_state_1 = __nccwpck_require__(60778); +const resolver_1 = __nccwpck_require__(76255); +const picker_1 = __nccwpck_require__(71663); +const backoff_timeout_1 = __nccwpck_require__(14643); +const constants_1 = __nccwpck_require__(68288); +const metadata_1 = __nccwpck_require__(36100); +const logging = __nccwpck_require__(8536); +const constants_2 = __nccwpck_require__(68288); +const uri_parser_1 = __nccwpck_require__(56027); +const load_balancer_child_handler_1 = __nccwpck_require__(99069); +const TRACER_NAME = 'resolving_load_balancer'; +function trace(text) { + logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, text); +} +/** + * Name match levels in order from most to least specific. This is the order in + * which searches will be performed. + */ +const NAME_MATCH_LEVEL_ORDER = [ + 'SERVICE_AND_METHOD', + 'SERVICE', + 'EMPTY', +]; +function hasMatchingName(service, method, methodConfig, matchLevel) { + for (const name of methodConfig.name) { + switch (matchLevel) { + case 'EMPTY': + if (!name.service && !name.method) { + return true; + } + break; + case 'SERVICE': + if (name.service === service && !name.method) { + return true; + } + break; + case 'SERVICE_AND_METHOD': + if (name.service === service && name.method === method) { + return true; + } + } + } + return false; +} +function findMatchingConfig(service, method, methodConfigs, matchLevel) { + for (const config of methodConfigs) { + if (hasMatchingName(service, method, config, matchLevel)) { + return config; + } + } + return null; +} +function getDefaultConfigSelector(serviceConfig) { + return { + invoke(methodName, metadata) { + var _a, _b; + const splitName = methodName.split('/').filter(x => x.length > 0); + const service = (_a = splitName[0]) !== null && _a !== void 0 ? _a : ''; + const method = (_b = splitName[1]) !== null && _b !== void 0 ? _b : ''; + if (serviceConfig && serviceConfig.methodConfig) { + /* Check for the following in order, and return the first method + * config that matches: + * 1. A name that exactly matches the service and method + * 2. A name with no method set that matches the service + * 3. An empty name + */ + for (const matchLevel of NAME_MATCH_LEVEL_ORDER) { + const matchingConfig = findMatchingConfig(service, method, serviceConfig.methodConfig, matchLevel); + if (matchingConfig) { + return { + methodConfig: matchingConfig, + pickInformation: {}, + status: constants_1.Status.OK, + dynamicFilterFactories: [], + }; + } + } + } + return { + methodConfig: { name: [] }, + pickInformation: {}, + status: constants_1.Status.OK, + dynamicFilterFactories: [], + }; + }, + unref() { } + }; +} +class ResolvingLoadBalancer { + /** + * Wrapper class that behaves like a `LoadBalancer` and also handles name + * resolution internally. + * @param target The address of the backend to connect to. + * @param channelControlHelper `ChannelControlHelper` instance provided by + * this load balancer's owner. + * @param defaultServiceConfig The default service configuration to be used + * if none is provided by the name resolver. A `null` value indicates + * that the default behavior should be the default unconfigured behavior. + * In practice, that means using the "pick first" load balancer + * implmentation + */ + constructor(target, channelControlHelper, channelOptions, onSuccessfulResolution, onFailedResolution) { + this.target = target; + this.channelControlHelper = channelControlHelper; + this.channelOptions = channelOptions; + this.onSuccessfulResolution = onSuccessfulResolution; + this.onFailedResolution = onFailedResolution; + this.latestChildState = connectivity_state_1.ConnectivityState.IDLE; + this.latestChildPicker = new picker_1.QueuePicker(this); + this.latestChildErrorMessage = null; + /** + * This resolving load balancer's current connectivity state. + */ + this.currentState = connectivity_state_1.ConnectivityState.IDLE; + /** + * The service config object from the last successful resolution, if + * available. A value of null indicates that we have not yet received a valid + * service config from the resolver. + */ + this.previousServiceConfig = null; + /** + * Indicates whether we should attempt to resolve again after the backoff + * timer runs out. + */ + this.continueResolving = false; + if (channelOptions['grpc.service_config']) { + this.defaultServiceConfig = (0, service_config_1.validateServiceConfig)(JSON.parse(channelOptions['grpc.service_config'])); + } + else { + this.defaultServiceConfig = { + loadBalancingConfig: [], + methodConfig: [], + }; + } + this.updateState(connectivity_state_1.ConnectivityState.IDLE, new picker_1.QueuePicker(this), null); + this.childLoadBalancer = new load_balancer_child_handler_1.ChildLoadBalancerHandler({ + createSubchannel: channelControlHelper.createSubchannel.bind(channelControlHelper), + requestReresolution: () => { + /* If the backoffTimeout is running, we're still backing off from + * making resolve requests, so we shouldn't make another one here. + * In that case, the backoff timer callback will call + * updateResolution */ + if (this.backoffTimeout.isRunning()) { + trace('requestReresolution delayed by backoff timer until ' + + this.backoffTimeout.getEndTime().toISOString()); + this.continueResolving = true; + } + else { + this.updateResolution(); + } + }, + updateState: (newState, picker, errorMessage) => { + this.latestChildState = newState; + this.latestChildPicker = picker; + this.latestChildErrorMessage = errorMessage; + this.updateState(newState, picker, errorMessage); + }, + addChannelzChild: channelControlHelper.addChannelzChild.bind(channelControlHelper), + removeChannelzChild: channelControlHelper.removeChannelzChild.bind(channelControlHelper), + }); + this.innerResolver = (0, resolver_1.createResolver)(target, this.handleResolverResult.bind(this), channelOptions); + const backoffOptions = { + initialDelay: channelOptions['grpc.initial_reconnect_backoff_ms'], + maxDelay: channelOptions['grpc.max_reconnect_backoff_ms'], + }; + this.backoffTimeout = new backoff_timeout_1.BackoffTimeout(() => { + if (this.continueResolving) { + this.updateResolution(); + this.continueResolving = false; + } + else { + this.updateState(this.latestChildState, this.latestChildPicker, this.latestChildErrorMessage); + } + }, backoffOptions); + this.backoffTimeout.unref(); + } + handleResolverResult(endpointList, attributes, serviceConfig, resolutionNote) { + var _a, _b; + this.backoffTimeout.stop(); + this.backoffTimeout.reset(); + let resultAccepted = true; + let workingServiceConfig = null; + if (serviceConfig === null) { + workingServiceConfig = this.defaultServiceConfig; + } + else if (serviceConfig.ok) { + workingServiceConfig = serviceConfig.value; + } + else { + if (this.previousServiceConfig !== null) { + workingServiceConfig = this.previousServiceConfig; + } + else { + resultAccepted = false; + this.handleResolutionFailure(serviceConfig.error); + } + } + if (workingServiceConfig !== null) { + const workingConfigList = (_a = workingServiceConfig === null || workingServiceConfig === void 0 ? void 0 : workingServiceConfig.loadBalancingConfig) !== null && _a !== void 0 ? _a : []; + const loadBalancingConfig = (0, load_balancer_1.selectLbConfigFromList)(workingConfigList, true); + if (loadBalancingConfig === null) { + resultAccepted = false; + this.handleResolutionFailure({ + code: constants_1.Status.UNAVAILABLE, + details: 'All load balancer options in service config are not compatible', + metadata: new metadata_1.Metadata(), + }); + } + else { + resultAccepted = this.childLoadBalancer.updateAddressList(endpointList, loadBalancingConfig, Object.assign(Object.assign({}, this.channelOptions), attributes), resolutionNote); + } + } + if (resultAccepted) { + this.onSuccessfulResolution(workingServiceConfig, (_b = attributes[resolver_1.CHANNEL_ARGS_CONFIG_SELECTOR_KEY]) !== null && _b !== void 0 ? _b : getDefaultConfigSelector(workingServiceConfig)); + } + return resultAccepted; + } + updateResolution() { + this.innerResolver.updateResolution(); + if (this.currentState === connectivity_state_1.ConnectivityState.IDLE) { + /* this.latestChildPicker is initialized as new QueuePicker(this), which + * is an appropriate value here if the child LB policy is unset. + * Otherwise, we want to delegate to the child here, in case that + * triggers something. */ + this.updateState(connectivity_state_1.ConnectivityState.CONNECTING, this.latestChildPicker, this.latestChildErrorMessage); + } + this.backoffTimeout.runOnce(); + } + updateState(connectivityState, picker, errorMessage) { + trace((0, uri_parser_1.uriToString)(this.target) + + ' ' + + connectivity_state_1.ConnectivityState[this.currentState] + + ' -> ' + + connectivity_state_1.ConnectivityState[connectivityState]); + // Ensure that this.exitIdle() is called by the picker + if (connectivityState === connectivity_state_1.ConnectivityState.IDLE) { + picker = new picker_1.QueuePicker(this, picker); + } + this.currentState = connectivityState; + this.channelControlHelper.updateState(connectivityState, picker, errorMessage); + } + handleResolutionFailure(error) { + if (this.latestChildState === connectivity_state_1.ConnectivityState.IDLE) { + this.updateState(connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, new picker_1.UnavailablePicker(error), error.details); + this.onFailedResolution(error); + } + } + exitIdle() { + if (this.currentState === connectivity_state_1.ConnectivityState.IDLE || + this.currentState === connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { + if (this.backoffTimeout.isRunning()) { + this.continueResolving = true; + } + else { + this.updateResolution(); + } + } + this.childLoadBalancer.exitIdle(); + } + updateAddressList(endpointList, lbConfig) { + throw new Error('updateAddressList not supported on ResolvingLoadBalancer'); + } + resetBackoff() { + this.backoffTimeout.reset(); + this.childLoadBalancer.resetBackoff(); + } + destroy() { + this.childLoadBalancer.destroy(); + this.innerResolver.destroy(); + this.backoffTimeout.reset(); + this.backoffTimeout.stop(); + this.latestChildState = connectivity_state_1.ConnectivityState.IDLE; + this.latestChildPicker = new picker_1.QueuePicker(this); + this.currentState = connectivity_state_1.ConnectivityState.IDLE; + this.previousServiceConfig = null; + this.continueResolving = false; + } + getTypeName() { + return 'resolving_load_balancer'; + } +} +exports.ResolvingLoadBalancer = ResolvingLoadBalancer; +//# sourceMappingURL=resolving-load-balancer.js.map + +/***/ }), + +/***/ 2532: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RetryingCall = exports.MessageBufferTracker = exports.RetryThrottler = void 0; +const constants_1 = __nccwpck_require__(68288); +const deadline_1 = __nccwpck_require__(52173); +const metadata_1 = __nccwpck_require__(36100); +const logging = __nccwpck_require__(8536); +const TRACER_NAME = 'retrying_call'; +class RetryThrottler { + constructor(maxTokens, tokenRatio, previousRetryThrottler) { + this.maxTokens = maxTokens; + this.tokenRatio = tokenRatio; + if (previousRetryThrottler) { + /* When carrying over tokens from a previous config, rescale them to the + * new max value */ + this.tokens = + previousRetryThrottler.tokens * + (maxTokens / previousRetryThrottler.maxTokens); + } + else { + this.tokens = maxTokens; + } + } + addCallSucceeded() { + this.tokens = Math.min(this.tokens + this.tokenRatio, this.maxTokens); + } + addCallFailed() { + this.tokens = Math.max(this.tokens - 1, 0); + } + canRetryCall() { + return this.tokens > (this.maxTokens / 2); + } +} +exports.RetryThrottler = RetryThrottler; +class MessageBufferTracker { + constructor(totalLimit, limitPerCall) { + this.totalLimit = totalLimit; + this.limitPerCall = limitPerCall; + this.totalAllocated = 0; + this.allocatedPerCall = new Map(); + } + allocate(size, callId) { + var _a; + const currentPerCall = (_a = this.allocatedPerCall.get(callId)) !== null && _a !== void 0 ? _a : 0; + if (this.limitPerCall - currentPerCall < size || + this.totalLimit - this.totalAllocated < size) { + return false; + } + this.allocatedPerCall.set(callId, currentPerCall + size); + this.totalAllocated += size; + return true; + } + free(size, callId) { + var _a; + if (this.totalAllocated < size) { + throw new Error(`Invalid buffer allocation state: call ${callId} freed ${size} > total allocated ${this.totalAllocated}`); + } + this.totalAllocated -= size; + const currentPerCall = (_a = this.allocatedPerCall.get(callId)) !== null && _a !== void 0 ? _a : 0; + if (currentPerCall < size) { + throw new Error(`Invalid buffer allocation state: call ${callId} freed ${size} > allocated for call ${currentPerCall}`); + } + this.allocatedPerCall.set(callId, currentPerCall - size); + } + freeAll(callId) { + var _a; + const currentPerCall = (_a = this.allocatedPerCall.get(callId)) !== null && _a !== void 0 ? _a : 0; + if (this.totalAllocated < currentPerCall) { + throw new Error(`Invalid buffer allocation state: call ${callId} allocated ${currentPerCall} > total allocated ${this.totalAllocated}`); + } + this.totalAllocated -= currentPerCall; + this.allocatedPerCall.delete(callId); + } +} +exports.MessageBufferTracker = MessageBufferTracker; +const PREVIONS_RPC_ATTEMPTS_METADATA_KEY = 'grpc-previous-rpc-attempts'; +const DEFAULT_MAX_ATTEMPTS_LIMIT = 5; +class RetryingCall { + constructor(channel, callConfig, methodName, host, credentials, deadline, callNumber, bufferTracker, retryThrottler) { + var _a; + this.channel = channel; + this.callConfig = callConfig; + this.methodName = methodName; + this.host = host; + this.credentials = credentials; + this.deadline = deadline; + this.callNumber = callNumber; + this.bufferTracker = bufferTracker; + this.retryThrottler = retryThrottler; + this.listener = null; + this.initialMetadata = null; + this.underlyingCalls = []; + this.writeBuffer = []; + /** + * The offset of message indices in the writeBuffer. For example, if + * writeBufferOffset is 10, message 10 is in writeBuffer[0] and message 15 + * is in writeBuffer[5]. + */ + this.writeBufferOffset = 0; + /** + * Tracks whether a read has been started, so that we know whether to start + * reads on new child calls. This only matters for the first read, because + * once a message comes in the child call becomes committed and there will + * be no new child calls. + */ + this.readStarted = false; + this.transparentRetryUsed = false; + /** + * Number of attempts so far + */ + this.attempts = 0; + this.hedgingTimer = null; + this.committedCallIndex = null; + this.initialRetryBackoffSec = 0; + this.nextRetryBackoffSec = 0; + const maxAttemptsLimit = (_a = channel.getOptions()['grpc-node.retry_max_attempts_limit']) !== null && _a !== void 0 ? _a : DEFAULT_MAX_ATTEMPTS_LIMIT; + if (channel.getOptions()['grpc.enable_retries'] === 0) { + this.state = 'NO_RETRY'; + this.maxAttempts = 1; + } + else if (callConfig.methodConfig.retryPolicy) { + this.state = 'RETRY'; + const retryPolicy = callConfig.methodConfig.retryPolicy; + this.nextRetryBackoffSec = this.initialRetryBackoffSec = Number(retryPolicy.initialBackoff.substring(0, retryPolicy.initialBackoff.length - 1)); + this.maxAttempts = Math.min(retryPolicy.maxAttempts, maxAttemptsLimit); + } + else if (callConfig.methodConfig.hedgingPolicy) { + this.state = 'HEDGING'; + this.maxAttempts = Math.min(callConfig.methodConfig.hedgingPolicy.maxAttempts, maxAttemptsLimit); + } + else { + this.state = 'TRANSPARENT_ONLY'; + this.maxAttempts = 1; + } + this.startTime = new Date(); + } + getDeadlineInfo() { + if (this.underlyingCalls.length === 0) { + return []; + } + const deadlineInfo = []; + const latestCall = this.underlyingCalls[this.underlyingCalls.length - 1]; + if (this.underlyingCalls.length > 1) { + deadlineInfo.push(`previous attempts: ${this.underlyingCalls.length - 1}`); + } + if (latestCall.startTime > this.startTime) { + deadlineInfo.push(`time to current attempt start: ${(0, deadline_1.formatDateDifference)(this.startTime, latestCall.startTime)}`); + } + deadlineInfo.push(...latestCall.call.getDeadlineInfo()); + return deadlineInfo; + } + getCallNumber() { + return this.callNumber; + } + trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '[' + this.callNumber + '] ' + text); + } + reportStatus(statusObject) { + this.trace('ended with status: code=' + + statusObject.code + + ' details="' + + statusObject.details + + '" start time=' + + this.startTime.toISOString()); + this.bufferTracker.freeAll(this.callNumber); + this.writeBufferOffset = this.writeBufferOffset + this.writeBuffer.length; + this.writeBuffer = []; + process.nextTick(() => { + var _a; + // Explicitly construct status object to remove progress field + (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onReceiveStatus({ + code: statusObject.code, + details: statusObject.details, + metadata: statusObject.metadata, + }); + }); + } + cancelWithStatus(status, details) { + this.trace('cancelWithStatus code: ' + status + ' details: "' + details + '"'); + this.reportStatus({ code: status, details, metadata: new metadata_1.Metadata() }); + for (const { call } of this.underlyingCalls) { + call.cancelWithStatus(status, details); + } + } + getPeer() { + if (this.committedCallIndex !== null) { + return this.underlyingCalls[this.committedCallIndex].call.getPeer(); + } + else { + return 'unknown'; + } + } + getBufferEntry(messageIndex) { + var _a; + return ((_a = this.writeBuffer[messageIndex - this.writeBufferOffset]) !== null && _a !== void 0 ? _a : { + entryType: 'FREED', + allocated: false, + }); + } + getNextBufferIndex() { + return this.writeBufferOffset + this.writeBuffer.length; + } + clearSentMessages() { + if (this.state !== 'COMMITTED') { + return; + } + let earliestNeededMessageIndex; + if (this.underlyingCalls[this.committedCallIndex].state === 'COMPLETED') { + /* If the committed call is completed, clear all messages, even if some + * have not been sent. */ + earliestNeededMessageIndex = this.getNextBufferIndex(); + } + else { + earliestNeededMessageIndex = + this.underlyingCalls[this.committedCallIndex].nextMessageToSend; + } + for (let messageIndex = this.writeBufferOffset; messageIndex < earliestNeededMessageIndex; messageIndex++) { + const bufferEntry = this.getBufferEntry(messageIndex); + if (bufferEntry.allocated) { + this.bufferTracker.free(bufferEntry.message.message.length, this.callNumber); + } + } + this.writeBuffer = this.writeBuffer.slice(earliestNeededMessageIndex - this.writeBufferOffset); + this.writeBufferOffset = earliestNeededMessageIndex; + } + commitCall(index) { + var _a, _b; + if (this.state === 'COMMITTED') { + return; + } + this.trace('Committing call [' + + this.underlyingCalls[index].call.getCallNumber() + + '] at index ' + + index); + this.state = 'COMMITTED'; + (_b = (_a = this.callConfig).onCommitted) === null || _b === void 0 ? void 0 : _b.call(_a); + this.committedCallIndex = index; + for (let i = 0; i < this.underlyingCalls.length; i++) { + if (i === index) { + continue; + } + if (this.underlyingCalls[i].state === 'COMPLETED') { + continue; + } + this.underlyingCalls[i].state = 'COMPLETED'; + this.underlyingCalls[i].call.cancelWithStatus(constants_1.Status.CANCELLED, 'Discarded in favor of other hedged attempt'); + } + this.clearSentMessages(); + } + commitCallWithMostMessages() { + if (this.state === 'COMMITTED') { + return; + } + let mostMessages = -1; + let callWithMostMessages = -1; + for (const [index, childCall] of this.underlyingCalls.entries()) { + if (childCall.state === 'ACTIVE' && + childCall.nextMessageToSend > mostMessages) { + mostMessages = childCall.nextMessageToSend; + callWithMostMessages = index; + } + } + if (callWithMostMessages === -1) { + /* There are no active calls, disable retries to force the next call that + * is started to be committed. */ + this.state = 'TRANSPARENT_ONLY'; + } + else { + this.commitCall(callWithMostMessages); + } + } + isStatusCodeInList(list, code) { + return list.some(value => { + var _a; + return value === code || + value.toString().toLowerCase() === ((_a = constants_1.Status[code]) === null || _a === void 0 ? void 0 : _a.toLowerCase()); + }); + } + getNextRetryJitter() { + /* Jitter of +-20% is applied: https://github.com/grpc/proposal/blob/master/A6-client-retries.md#exponential-backoff */ + return Math.random() * (1.2 - 0.8) + 0.8; + } + getNextRetryBackoffMs() { + var _a; + const retryPolicy = (_a = this.callConfig) === null || _a === void 0 ? void 0 : _a.methodConfig.retryPolicy; + if (!retryPolicy) { + return 0; + } + const jitter = this.getNextRetryJitter(); + const nextBackoffMs = jitter * this.nextRetryBackoffSec * 1000; + const maxBackoffSec = Number(retryPolicy.maxBackoff.substring(0, retryPolicy.maxBackoff.length - 1)); + this.nextRetryBackoffSec = Math.min(this.nextRetryBackoffSec * retryPolicy.backoffMultiplier, maxBackoffSec); + return nextBackoffMs; + } + maybeRetryCall(pushback, callback) { + if (this.state !== 'RETRY') { + callback(false); + return; + } + if (this.attempts >= this.maxAttempts) { + callback(false); + return; + } + let retryDelayMs; + if (pushback === null) { + retryDelayMs = this.getNextRetryBackoffMs(); + } + else if (pushback < 0) { + this.state = 'TRANSPARENT_ONLY'; + callback(false); + return; + } + else { + retryDelayMs = pushback; + this.nextRetryBackoffSec = this.initialRetryBackoffSec; + } + setTimeout(() => { + var _a, _b; + if (this.state !== 'RETRY') { + callback(false); + return; + } + if ((_b = (_a = this.retryThrottler) === null || _a === void 0 ? void 0 : _a.canRetryCall()) !== null && _b !== void 0 ? _b : true) { + callback(true); + this.attempts += 1; + this.startNewAttempt(); + } + else { + this.trace('Retry attempt denied by throttling policy'); + callback(false); + } + }, retryDelayMs); + } + countActiveCalls() { + let count = 0; + for (const call of this.underlyingCalls) { + if ((call === null || call === void 0 ? void 0 : call.state) === 'ACTIVE') { + count += 1; + } + } + return count; + } + handleProcessedStatus(status, callIndex, pushback) { + var _a, _b, _c; + switch (this.state) { + case 'COMMITTED': + case 'NO_RETRY': + case 'TRANSPARENT_ONLY': + this.commitCall(callIndex); + this.reportStatus(status); + break; + case 'HEDGING': + if (this.isStatusCodeInList((_a = this.callConfig.methodConfig.hedgingPolicy.nonFatalStatusCodes) !== null && _a !== void 0 ? _a : [], status.code)) { + (_b = this.retryThrottler) === null || _b === void 0 ? void 0 : _b.addCallFailed(); + let delayMs; + if (pushback === null) { + delayMs = 0; + } + else if (pushback < 0) { + this.state = 'TRANSPARENT_ONLY'; + this.commitCall(callIndex); + this.reportStatus(status); + return; + } + else { + delayMs = pushback; + } + setTimeout(() => { + this.maybeStartHedgingAttempt(); + // If after trying to start a call there are no active calls, this was the last one + if (this.countActiveCalls() === 0) { + this.commitCall(callIndex); + this.reportStatus(status); + } + }, delayMs); + } + else { + this.commitCall(callIndex); + this.reportStatus(status); + } + break; + case 'RETRY': + if (this.isStatusCodeInList(this.callConfig.methodConfig.retryPolicy.retryableStatusCodes, status.code)) { + (_c = this.retryThrottler) === null || _c === void 0 ? void 0 : _c.addCallFailed(); + this.maybeRetryCall(pushback, retried => { + if (!retried) { + this.commitCall(callIndex); + this.reportStatus(status); + } + }); + } + else { + this.commitCall(callIndex); + this.reportStatus(status); + } + break; + } + } + getPushback(metadata) { + const mdValue = metadata.get('grpc-retry-pushback-ms'); + if (mdValue.length === 0) { + return null; + } + try { + return parseInt(mdValue[0]); + } + catch (e) { + return -1; + } + } + handleChildStatus(status, callIndex) { + var _a; + if (this.underlyingCalls[callIndex].state === 'COMPLETED') { + return; + } + this.trace('state=' + + this.state + + ' handling status with progress ' + + status.progress + + ' from child [' + + this.underlyingCalls[callIndex].call.getCallNumber() + + '] in state ' + + this.underlyingCalls[callIndex].state); + this.underlyingCalls[callIndex].state = 'COMPLETED'; + if (status.code === constants_1.Status.OK) { + (_a = this.retryThrottler) === null || _a === void 0 ? void 0 : _a.addCallSucceeded(); + this.commitCall(callIndex); + this.reportStatus(status); + return; + } + if (this.state === 'NO_RETRY') { + this.commitCall(callIndex); + this.reportStatus(status); + return; + } + if (this.state === 'COMMITTED') { + this.reportStatus(status); + return; + } + const pushback = this.getPushback(status.metadata); + switch (status.progress) { + case 'NOT_STARTED': + // RPC never leaves the client, always safe to retry + this.startNewAttempt(); + break; + case 'REFUSED': + // RPC reaches the server library, but not the server application logic + if (this.transparentRetryUsed) { + this.handleProcessedStatus(status, callIndex, pushback); + } + else { + this.transparentRetryUsed = true; + this.startNewAttempt(); + } + break; + case 'DROP': + this.commitCall(callIndex); + this.reportStatus(status); + break; + case 'PROCESSED': + this.handleProcessedStatus(status, callIndex, pushback); + break; + } + } + maybeStartHedgingAttempt() { + if (this.state !== 'HEDGING') { + return; + } + if (!this.callConfig.methodConfig.hedgingPolicy) { + return; + } + if (this.attempts >= this.maxAttempts) { + return; + } + this.attempts += 1; + this.startNewAttempt(); + this.maybeStartHedgingTimer(); + } + maybeStartHedgingTimer() { + var _a, _b, _c; + if (this.hedgingTimer) { + clearTimeout(this.hedgingTimer); + } + if (this.state !== 'HEDGING') { + return; + } + if (!this.callConfig.methodConfig.hedgingPolicy) { + return; + } + const hedgingPolicy = this.callConfig.methodConfig.hedgingPolicy; + if (this.attempts >= this.maxAttempts) { + return; + } + const hedgingDelayString = (_a = hedgingPolicy.hedgingDelay) !== null && _a !== void 0 ? _a : '0s'; + const hedgingDelaySec = Number(hedgingDelayString.substring(0, hedgingDelayString.length - 1)); + this.hedgingTimer = setTimeout(() => { + this.maybeStartHedgingAttempt(); + }, hedgingDelaySec * 1000); + (_c = (_b = this.hedgingTimer).unref) === null || _c === void 0 ? void 0 : _c.call(_b); + } + startNewAttempt() { + const child = this.channel.createLoadBalancingCall(this.callConfig, this.methodName, this.host, this.credentials, this.deadline); + this.trace('Created child call [' + + child.getCallNumber() + + '] for attempt ' + + this.attempts); + const index = this.underlyingCalls.length; + this.underlyingCalls.push({ + state: 'ACTIVE', + call: child, + nextMessageToSend: 0, + startTime: new Date(), + }); + const previousAttempts = this.attempts - 1; + const initialMetadata = this.initialMetadata.clone(); + if (previousAttempts > 0) { + initialMetadata.set(PREVIONS_RPC_ATTEMPTS_METADATA_KEY, `${previousAttempts}`); + } + let receivedMetadata = false; + child.start(initialMetadata, { + onReceiveMetadata: metadata => { + this.trace('Received metadata from child [' + child.getCallNumber() + ']'); + this.commitCall(index); + receivedMetadata = true; + if (previousAttempts > 0) { + metadata.set(PREVIONS_RPC_ATTEMPTS_METADATA_KEY, `${previousAttempts}`); + } + if (this.underlyingCalls[index].state === 'ACTIVE') { + this.listener.onReceiveMetadata(metadata); + } + }, + onReceiveMessage: message => { + this.trace('Received message from child [' + child.getCallNumber() + ']'); + this.commitCall(index); + if (this.underlyingCalls[index].state === 'ACTIVE') { + this.listener.onReceiveMessage(message); + } + }, + onReceiveStatus: status => { + this.trace('Received status from child [' + child.getCallNumber() + ']'); + if (!receivedMetadata && previousAttempts > 0) { + status.metadata.set(PREVIONS_RPC_ATTEMPTS_METADATA_KEY, `${previousAttempts}`); + } + this.handleChildStatus(status, index); + }, + }); + this.sendNextChildMessage(index); + if (this.readStarted) { + child.startRead(); + } + } + start(metadata, listener) { + this.trace('start called'); + this.listener = listener; + this.initialMetadata = metadata; + this.attempts += 1; + this.startNewAttempt(); + this.maybeStartHedgingTimer(); + } + handleChildWriteCompleted(childIndex, messageIndex) { + var _a, _b; + (_b = (_a = this.getBufferEntry(messageIndex)).callback) === null || _b === void 0 ? void 0 : _b.call(_a); + this.clearSentMessages(); + const childCall = this.underlyingCalls[childIndex]; + childCall.nextMessageToSend += 1; + this.sendNextChildMessage(childIndex); + } + sendNextChildMessage(childIndex) { + const childCall = this.underlyingCalls[childIndex]; + if (childCall.state === 'COMPLETED') { + return; + } + const messageIndex = childCall.nextMessageToSend; + if (this.getBufferEntry(messageIndex)) { + const bufferEntry = this.getBufferEntry(messageIndex); + switch (bufferEntry.entryType) { + case 'MESSAGE': + childCall.call.sendMessageWithContext({ + callback: error => { + // Ignore error + this.handleChildWriteCompleted(childIndex, messageIndex); + }, + }, bufferEntry.message.message); + // Optimization: if the next entry is HALF_CLOSE, send it immediately + // without waiting for the message callback. This is safe because the message + // has already been passed to the underlying transport. + const nextEntry = this.getBufferEntry(messageIndex + 1); + if (nextEntry.entryType === 'HALF_CLOSE') { + this.trace('Sending halfClose immediately after message to child [' + + childCall.call.getCallNumber() + + '] - optimizing for unary/final message'); + childCall.nextMessageToSend += 1; + childCall.call.halfClose(); + } + break; + case 'HALF_CLOSE': + childCall.nextMessageToSend += 1; + childCall.call.halfClose(); + break; + case 'FREED': + // Should not be possible + break; + } + } + } + sendMessageWithContext(context, message) { + this.trace('write() called with message of length ' + message.length); + const writeObj = { + message, + flags: context.flags, + }; + const messageIndex = this.getNextBufferIndex(); + const bufferEntry = { + entryType: 'MESSAGE', + message: writeObj, + allocated: this.bufferTracker.allocate(message.length, this.callNumber), + }; + this.writeBuffer.push(bufferEntry); + if (bufferEntry.allocated) { + // Run this in next tick to avoid suspending the current execution context + // otherwise it might cause half closing the call before sending message + process.nextTick(() => { + var _a; + (_a = context.callback) === null || _a === void 0 ? void 0 : _a.call(context); + }); + for (const [callIndex, call] of this.underlyingCalls.entries()) { + if (call.state === 'ACTIVE' && + call.nextMessageToSend === messageIndex) { + call.call.sendMessageWithContext({ + callback: error => { + // Ignore error + this.handleChildWriteCompleted(callIndex, messageIndex); + }, + }, message); + } + } + } + else { + this.commitCallWithMostMessages(); + // commitCallWithMostMessages can fail if we are between ping attempts + if (this.committedCallIndex === null) { + return; + } + const call = this.underlyingCalls[this.committedCallIndex]; + bufferEntry.callback = context.callback; + if (call.state === 'ACTIVE' && call.nextMessageToSend === messageIndex) { + call.call.sendMessageWithContext({ + callback: error => { + // Ignore error + this.handleChildWriteCompleted(this.committedCallIndex, messageIndex); + }, + }, message); + } + } + } + startRead() { + this.trace('startRead called'); + this.readStarted = true; + for (const underlyingCall of this.underlyingCalls) { + if ((underlyingCall === null || underlyingCall === void 0 ? void 0 : underlyingCall.state) === 'ACTIVE') { + underlyingCall.call.startRead(); + } + } + } + halfClose() { + this.trace('halfClose called'); + const halfCloseIndex = this.getNextBufferIndex(); + this.writeBuffer.push({ + entryType: 'HALF_CLOSE', + allocated: false, + }); + for (const call of this.underlyingCalls) { + if ((call === null || call === void 0 ? void 0 : call.state) === 'ACTIVE') { + // Send halfClose to call when either: + // - nextMessageToSend === halfCloseIndex - 1: last message sent, callback pending (optimization) + // - nextMessageToSend === halfCloseIndex: all messages sent and acknowledged + if (call.nextMessageToSend === halfCloseIndex + || call.nextMessageToSend === halfCloseIndex - 1) { + this.trace('Sending halfClose immediately to child [' + + call.call.getCallNumber() + + '] - all messages already sent'); + call.nextMessageToSend += 1; + call.call.halfClose(); + } + // Otherwise, halfClose will be sent by sendNextChildMessage when message callbacks complete + } + } + } + setCredentials(newCredentials) { + throw new Error('Method not implemented.'); + } + getMethod() { + return this.methodName; + } + getHost() { + return this.host; + } + getAuthContext() { + if (this.committedCallIndex !== null) { + return this.underlyingCalls[this.committedCallIndex].call.getAuthContext(); + } + else { + return null; + } + } +} +exports.RetryingCall = RetryingCall; +//# sourceMappingURL=retrying-call.js.map + +/***/ }), + +/***/ 34615: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ServerDuplexStreamImpl = exports.ServerWritableStreamImpl = exports.ServerReadableStreamImpl = exports.ServerUnaryCallImpl = void 0; +exports.serverErrorToStatus = serverErrorToStatus; +const events_1 = __nccwpck_require__(24434); +const stream_1 = __nccwpck_require__(2203); +const constants_1 = __nccwpck_require__(68288); +const metadata_1 = __nccwpck_require__(36100); +function serverErrorToStatus(error, overrideTrailers) { + var _a; + const status = { + code: constants_1.Status.UNKNOWN, + details: 'message' in error ? error.message : 'Unknown Error', + metadata: (_a = overrideTrailers !== null && overrideTrailers !== void 0 ? overrideTrailers : error.metadata) !== null && _a !== void 0 ? _a : null, + }; + if ('code' in error && + typeof error.code === 'number' && + Number.isInteger(error.code)) { + status.code = error.code; + if ('details' in error && typeof error.details === 'string') { + status.details = error.details; + } + } + return status; +} +class ServerUnaryCallImpl extends events_1.EventEmitter { + constructor(path, call, metadata, request) { + super(); + this.path = path; + this.call = call; + this.metadata = metadata; + this.request = request; + this.cancelled = false; + } + getPeer() { + return this.call.getPeer(); + } + sendMetadata(responseMetadata) { + this.call.sendMetadata(responseMetadata); + } + getDeadline() { + return this.call.getDeadline(); + } + getPath() { + return this.path; + } + getHost() { + return this.call.getHost(); + } + getAuthContext() { + return this.call.getAuthContext(); + } + getMetricsRecorder() { + return this.call.getMetricsRecorder(); + } +} +exports.ServerUnaryCallImpl = ServerUnaryCallImpl; +class ServerReadableStreamImpl extends stream_1.Readable { + constructor(path, call, metadata) { + super({ objectMode: true }); + this.path = path; + this.call = call; + this.metadata = metadata; + this.cancelled = false; + } + _read(size) { + this.call.startRead(); + } + getPeer() { + return this.call.getPeer(); + } + sendMetadata(responseMetadata) { + this.call.sendMetadata(responseMetadata); + } + getDeadline() { + return this.call.getDeadline(); + } + getPath() { + return this.path; + } + getHost() { + return this.call.getHost(); + } + getAuthContext() { + return this.call.getAuthContext(); + } + getMetricsRecorder() { + return this.call.getMetricsRecorder(); + } +} +exports.ServerReadableStreamImpl = ServerReadableStreamImpl; +class ServerWritableStreamImpl extends stream_1.Writable { + constructor(path, call, metadata, request) { + super({ objectMode: true }); + this.path = path; + this.call = call; + this.metadata = metadata; + this.request = request; + this.pendingStatus = { + code: constants_1.Status.OK, + details: 'OK', + }; + this.cancelled = false; + this.trailingMetadata = new metadata_1.Metadata(); + this.on('error', err => { + this.pendingStatus = serverErrorToStatus(err); + this.end(); + }); + } + getPeer() { + return this.call.getPeer(); + } + sendMetadata(responseMetadata) { + this.call.sendMetadata(responseMetadata); + } + getDeadline() { + return this.call.getDeadline(); + } + getPath() { + return this.path; + } + getHost() { + return this.call.getHost(); + } + getAuthContext() { + return this.call.getAuthContext(); + } + getMetricsRecorder() { + return this.call.getMetricsRecorder(); + } + _write(chunk, encoding, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + callback) { + this.call.sendMessage(chunk, callback); + } + _final(callback) { + var _a; + callback(null); + this.call.sendStatus(Object.assign(Object.assign({}, this.pendingStatus), { metadata: (_a = this.pendingStatus.metadata) !== null && _a !== void 0 ? _a : this.trailingMetadata })); + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + end(metadata) { + if (metadata) { + this.trailingMetadata = metadata; + } + return super.end(); + } +} +exports.ServerWritableStreamImpl = ServerWritableStreamImpl; +class ServerDuplexStreamImpl extends stream_1.Duplex { + constructor(path, call, metadata) { + super({ objectMode: true }); + this.path = path; + this.call = call; + this.metadata = metadata; + this.pendingStatus = { + code: constants_1.Status.OK, + details: 'OK', + }; + this.cancelled = false; + this.trailingMetadata = new metadata_1.Metadata(); + this.on('error', err => { + this.pendingStatus = serverErrorToStatus(err); + this.end(); + }); + } + getPeer() { + return this.call.getPeer(); + } + sendMetadata(responseMetadata) { + this.call.sendMetadata(responseMetadata); + } + getDeadline() { + return this.call.getDeadline(); + } + getPath() { + return this.path; + } + getHost() { + return this.call.getHost(); + } + getAuthContext() { + return this.call.getAuthContext(); + } + getMetricsRecorder() { + return this.call.getMetricsRecorder(); + } + _read(size) { + this.call.startRead(); + } + _write(chunk, encoding, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + callback) { + this.call.sendMessage(chunk, callback); + } + _final(callback) { + var _a; + callback(null); + this.call.sendStatus(Object.assign(Object.assign({}, this.pendingStatus), { metadata: (_a = this.pendingStatus.metadata) !== null && _a !== void 0 ? _a : this.trailingMetadata })); + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + end(metadata) { + if (metadata) { + this.trailingMetadata = metadata; + } + return super.end(); + } +} +exports.ServerDuplexStreamImpl = ServerDuplexStreamImpl; +//# sourceMappingURL=server-call.js.map + +/***/ }), + +/***/ 36545: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ServerCredentials = void 0; +exports.createCertificateProviderServerCredentials = createCertificateProviderServerCredentials; +exports.createServerCredentialsWithInterceptors = createServerCredentialsWithInterceptors; +const tls_helpers_1 = __nccwpck_require__(68876); +class ServerCredentials { + constructor(serverConstructorOptions, contextOptions) { + this.serverConstructorOptions = serverConstructorOptions; + this.watchers = new Set(); + this.latestContextOptions = null; + this.latestContextOptions = contextOptions !== null && contextOptions !== void 0 ? contextOptions : null; + } + _addWatcher(watcher) { + this.watchers.add(watcher); + } + _removeWatcher(watcher) { + this.watchers.delete(watcher); + } + getWatcherCount() { + return this.watchers.size; + } + updateSecureContextOptions(options) { + this.latestContextOptions = options; + for (const watcher of this.watchers) { + watcher(this.latestContextOptions); + } + } + _isSecure() { + return this.serverConstructorOptions !== null; + } + _getSecureContextOptions() { + return this.latestContextOptions; + } + _getConstructorOptions() { + return this.serverConstructorOptions; + } + _getInterceptors() { + return []; + } + static createInsecure() { + return new InsecureServerCredentials(); + } + static createSsl(rootCerts, keyCertPairs, checkClientCertificate = false) { + var _a; + if (rootCerts !== null && !Buffer.isBuffer(rootCerts)) { + throw new TypeError('rootCerts must be null or a Buffer'); + } + if (!Array.isArray(keyCertPairs)) { + throw new TypeError('keyCertPairs must be an array'); + } + if (typeof checkClientCertificate !== 'boolean') { + throw new TypeError('checkClientCertificate must be a boolean'); + } + const cert = []; + const key = []; + for (let i = 0; i < keyCertPairs.length; i++) { + const pair = keyCertPairs[i]; + if (pair === null || typeof pair !== 'object') { + throw new TypeError(`keyCertPair[${i}] must be an object`); + } + if (!Buffer.isBuffer(pair.private_key)) { + throw new TypeError(`keyCertPair[${i}].private_key must be a Buffer`); + } + if (!Buffer.isBuffer(pair.cert_chain)) { + throw new TypeError(`keyCertPair[${i}].cert_chain must be a Buffer`); + } + cert.push(pair.cert_chain); + key.push(pair.private_key); + } + return new SecureServerCredentials({ + requestCert: checkClientCertificate, + ciphers: tls_helpers_1.CIPHER_SUITES, + }, { + ca: (_a = rootCerts !== null && rootCerts !== void 0 ? rootCerts : (0, tls_helpers_1.getDefaultRootsData)()) !== null && _a !== void 0 ? _a : undefined, + cert, + key, + }); + } +} +exports.ServerCredentials = ServerCredentials; +class InsecureServerCredentials extends ServerCredentials { + constructor() { + super(null); + } + _getSettings() { + return null; + } + _equals(other) { + return other instanceof InsecureServerCredentials; + } +} +class SecureServerCredentials extends ServerCredentials { + constructor(constructorOptions, contextOptions) { + super(constructorOptions, contextOptions); + this.options = Object.assign(Object.assign({}, constructorOptions), contextOptions); + } + /** + * Checks equality by checking the options that are actually set by + * createSsl. + * @param other + * @returns + */ + _equals(other) { + if (this === other) { + return true; + } + if (!(other instanceof SecureServerCredentials)) { + return false; + } + // options.ca equality check + if (Buffer.isBuffer(this.options.ca) && Buffer.isBuffer(other.options.ca)) { + if (!this.options.ca.equals(other.options.ca)) { + return false; + } + } + else { + if (this.options.ca !== other.options.ca) { + return false; + } + } + // options.cert equality check + if (Array.isArray(this.options.cert) && Array.isArray(other.options.cert)) { + if (this.options.cert.length !== other.options.cert.length) { + return false; + } + for (let i = 0; i < this.options.cert.length; i++) { + const thisCert = this.options.cert[i]; + const otherCert = other.options.cert[i]; + if (Buffer.isBuffer(thisCert) && Buffer.isBuffer(otherCert)) { + if (!thisCert.equals(otherCert)) { + return false; + } + } + else { + if (thisCert !== otherCert) { + return false; + } + } + } + } + else { + if (this.options.cert !== other.options.cert) { + return false; + } + } + // options.key equality check + if (Array.isArray(this.options.key) && Array.isArray(other.options.key)) { + if (this.options.key.length !== other.options.key.length) { + return false; + } + for (let i = 0; i < this.options.key.length; i++) { + const thisKey = this.options.key[i]; + const otherKey = other.options.key[i]; + if (Buffer.isBuffer(thisKey) && Buffer.isBuffer(otherKey)) { + if (!thisKey.equals(otherKey)) { + return false; + } + } + else { + if (thisKey !== otherKey) { + return false; + } + } + } + } + else { + if (this.options.key !== other.options.key) { + return false; + } + } + // options.requestCert equality check + if (this.options.requestCert !== other.options.requestCert) { + return false; + } + /* ciphers is derived from a value that is constant for the process, so no + * equality check is needed. */ + return true; + } +} +class CertificateProviderServerCredentials extends ServerCredentials { + constructor(identityCertificateProvider, caCertificateProvider, requireClientCertificate) { + super({ + requestCert: caCertificateProvider !== null, + rejectUnauthorized: requireClientCertificate, + ciphers: tls_helpers_1.CIPHER_SUITES + }); + this.identityCertificateProvider = identityCertificateProvider; + this.caCertificateProvider = caCertificateProvider; + this.requireClientCertificate = requireClientCertificate; + this.latestCaUpdate = null; + this.latestIdentityUpdate = null; + this.caCertificateUpdateListener = this.handleCaCertificateUpdate.bind(this); + this.identityCertificateUpdateListener = this.handleIdentityCertitificateUpdate.bind(this); + } + _addWatcher(watcher) { + var _a; + if (this.getWatcherCount() === 0) { + (_a = this.caCertificateProvider) === null || _a === void 0 ? void 0 : _a.addCaCertificateListener(this.caCertificateUpdateListener); + this.identityCertificateProvider.addIdentityCertificateListener(this.identityCertificateUpdateListener); + } + super._addWatcher(watcher); + } + _removeWatcher(watcher) { + var _a; + super._removeWatcher(watcher); + if (this.getWatcherCount() === 0) { + (_a = this.caCertificateProvider) === null || _a === void 0 ? void 0 : _a.removeCaCertificateListener(this.caCertificateUpdateListener); + this.identityCertificateProvider.removeIdentityCertificateListener(this.identityCertificateUpdateListener); + } + } + _equals(other) { + if (this === other) { + return true; + } + if (!(other instanceof CertificateProviderServerCredentials)) { + return false; + } + return (this.caCertificateProvider === other.caCertificateProvider && + this.identityCertificateProvider === other.identityCertificateProvider && + this.requireClientCertificate === other.requireClientCertificate); + } + calculateSecureContextOptions() { + var _a; + if (this.latestIdentityUpdate === null) { + return null; + } + if (this.caCertificateProvider !== null && this.latestCaUpdate === null) { + return null; + } + return { + ca: (_a = this.latestCaUpdate) === null || _a === void 0 ? void 0 : _a.caCertificate, + cert: [this.latestIdentityUpdate.certificate], + key: [this.latestIdentityUpdate.privateKey], + }; + } + finalizeUpdate() { + const secureContextOptions = this.calculateSecureContextOptions(); + this.updateSecureContextOptions(secureContextOptions); + } + handleCaCertificateUpdate(update) { + this.latestCaUpdate = update; + this.finalizeUpdate(); + } + handleIdentityCertitificateUpdate(update) { + this.latestIdentityUpdate = update; + this.finalizeUpdate(); + } +} +function createCertificateProviderServerCredentials(caCertificateProvider, identityCertificateProvider, requireClientCertificate) { + return new CertificateProviderServerCredentials(caCertificateProvider, identityCertificateProvider, requireClientCertificate); +} +class InterceptorServerCredentials extends ServerCredentials { + constructor(childCredentials, interceptors) { + super({}); + this.childCredentials = childCredentials; + this.interceptors = interceptors; + } + _isSecure() { + return this.childCredentials._isSecure(); + } + _equals(other) { + if (!(other instanceof InterceptorServerCredentials)) { + return false; + } + if (!(this.childCredentials._equals(other.childCredentials))) { + return false; + } + if (this.interceptors.length !== other.interceptors.length) { + return false; + } + for (let i = 0; i < this.interceptors.length; i++) { + if (this.interceptors[i] !== other.interceptors[i]) { + return false; + } + } + return true; + } + _getInterceptors() { + return this.interceptors; + } + _addWatcher(watcher) { + this.childCredentials._addWatcher(watcher); + } + _removeWatcher(watcher) { + this.childCredentials._removeWatcher(watcher); + } + _getConstructorOptions() { + return this.childCredentials._getConstructorOptions(); + } + _getSecureContextOptions() { + return this.childCredentials._getSecureContextOptions(); + } +} +function createServerCredentialsWithInterceptors(credentials, interceptors) { + return new InterceptorServerCredentials(credentials, interceptors); +} +//# sourceMappingURL=server-credentials.js.map + +/***/ }), + +/***/ 42151: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2024 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BaseServerInterceptingCall = exports.ServerInterceptingCall = exports.ResponderBuilder = exports.ServerListenerBuilder = void 0; +exports.isInterceptingServerListener = isInterceptingServerListener; +exports.getServerInterceptingCall = getServerInterceptingCall; +const metadata_1 = __nccwpck_require__(36100); +const constants_1 = __nccwpck_require__(68288); +const http2 = __nccwpck_require__(85675); +const error_1 = __nccwpck_require__(98219); +const zlib = __nccwpck_require__(43106); +const stream_decoder_1 = __nccwpck_require__(47956); +const logging = __nccwpck_require__(8536); +const tls_1 = __nccwpck_require__(64756); +const orca_1 = __nccwpck_require__(82124); +const TRACER_NAME = 'server_call'; +function trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text); +} +class ServerListenerBuilder { + constructor() { + this.metadata = undefined; + this.message = undefined; + this.halfClose = undefined; + this.cancel = undefined; + } + withOnReceiveMetadata(onReceiveMetadata) { + this.metadata = onReceiveMetadata; + return this; + } + withOnReceiveMessage(onReceiveMessage) { + this.message = onReceiveMessage; + return this; + } + withOnReceiveHalfClose(onReceiveHalfClose) { + this.halfClose = onReceiveHalfClose; + return this; + } + withOnCancel(onCancel) { + this.cancel = onCancel; + return this; + } + build() { + return { + onReceiveMetadata: this.metadata, + onReceiveMessage: this.message, + onReceiveHalfClose: this.halfClose, + onCancel: this.cancel, + }; + } +} +exports.ServerListenerBuilder = ServerListenerBuilder; +function isInterceptingServerListener(listener) { + return (listener.onReceiveMetadata !== undefined && + listener.onReceiveMetadata.length === 1); +} +class InterceptingServerListenerImpl { + constructor(listener, nextListener) { + this.listener = listener; + this.nextListener = nextListener; + /** + * Once the call is cancelled, ignore all other events. + */ + this.cancelled = false; + this.processingMetadata = false; + this.hasPendingMessage = false; + this.pendingMessage = null; + this.processingMessage = false; + this.hasPendingHalfClose = false; + } + processPendingMessage() { + if (this.hasPendingMessage) { + this.nextListener.onReceiveMessage(this.pendingMessage); + this.pendingMessage = null; + this.hasPendingMessage = false; + } + } + processPendingHalfClose() { + if (this.hasPendingHalfClose) { + this.nextListener.onReceiveHalfClose(); + this.hasPendingHalfClose = false; + } + } + onReceiveMetadata(metadata) { + if (this.cancelled) { + return; + } + this.processingMetadata = true; + this.listener.onReceiveMetadata(metadata, interceptedMetadata => { + this.processingMetadata = false; + if (this.cancelled) { + return; + } + this.nextListener.onReceiveMetadata(interceptedMetadata); + this.processPendingMessage(); + this.processPendingHalfClose(); + }); + } + onReceiveMessage(message) { + if (this.cancelled) { + return; + } + this.processingMessage = true; + this.listener.onReceiveMessage(message, msg => { + this.processingMessage = false; + if (this.cancelled) { + return; + } + if (this.processingMetadata) { + this.pendingMessage = msg; + this.hasPendingMessage = true; + } + else { + this.nextListener.onReceiveMessage(msg); + this.processPendingHalfClose(); + } + }); + } + onReceiveHalfClose() { + if (this.cancelled) { + return; + } + this.listener.onReceiveHalfClose(() => { + if (this.cancelled) { + return; + } + if (this.processingMetadata || this.processingMessage) { + this.hasPendingHalfClose = true; + } + else { + this.nextListener.onReceiveHalfClose(); + } + }); + } + onCancel() { + this.cancelled = true; + this.listener.onCancel(); + this.nextListener.onCancel(); + } +} +class ResponderBuilder { + constructor() { + this.start = undefined; + this.metadata = undefined; + this.message = undefined; + this.status = undefined; + } + withStart(start) { + this.start = start; + return this; + } + withSendMetadata(sendMetadata) { + this.metadata = sendMetadata; + return this; + } + withSendMessage(sendMessage) { + this.message = sendMessage; + return this; + } + withSendStatus(sendStatus) { + this.status = sendStatus; + return this; + } + build() { + return { + start: this.start, + sendMetadata: this.metadata, + sendMessage: this.message, + sendStatus: this.status, + }; + } +} +exports.ResponderBuilder = ResponderBuilder; +const defaultServerListener = { + onReceiveMetadata: (metadata, next) => { + next(metadata); + }, + onReceiveMessage: (message, next) => { + next(message); + }, + onReceiveHalfClose: next => { + next(); + }, + onCancel: () => { }, +}; +const defaultResponder = { + start: next => { + next(); + }, + sendMetadata: (metadata, next) => { + next(metadata); + }, + sendMessage: (message, next) => { + next(message); + }, + sendStatus: (status, next) => { + next(status); + }, +}; +class ServerInterceptingCall { + constructor(nextCall, responder) { + var _a, _b, _c, _d; + this.nextCall = nextCall; + this.processingMetadata = false; + this.sentMetadata = false; + this.processingMessage = false; + this.pendingMessage = null; + this.pendingMessageCallback = null; + this.pendingStatus = null; + this.responder = { + start: (_a = responder === null || responder === void 0 ? void 0 : responder.start) !== null && _a !== void 0 ? _a : defaultResponder.start, + sendMetadata: (_b = responder === null || responder === void 0 ? void 0 : responder.sendMetadata) !== null && _b !== void 0 ? _b : defaultResponder.sendMetadata, + sendMessage: (_c = responder === null || responder === void 0 ? void 0 : responder.sendMessage) !== null && _c !== void 0 ? _c : defaultResponder.sendMessage, + sendStatus: (_d = responder === null || responder === void 0 ? void 0 : responder.sendStatus) !== null && _d !== void 0 ? _d : defaultResponder.sendStatus, + }; + } + processPendingMessage() { + if (this.pendingMessageCallback) { + this.nextCall.sendMessage(this.pendingMessage, this.pendingMessageCallback); + this.pendingMessage = null; + this.pendingMessageCallback = null; + } + } + processPendingStatus() { + if (this.pendingStatus) { + this.nextCall.sendStatus(this.pendingStatus); + this.pendingStatus = null; + } + } + start(listener) { + this.responder.start(interceptedListener => { + var _a, _b, _c, _d; + const fullInterceptedListener = { + onReceiveMetadata: (_a = interceptedListener === null || interceptedListener === void 0 ? void 0 : interceptedListener.onReceiveMetadata) !== null && _a !== void 0 ? _a : defaultServerListener.onReceiveMetadata, + onReceiveMessage: (_b = interceptedListener === null || interceptedListener === void 0 ? void 0 : interceptedListener.onReceiveMessage) !== null && _b !== void 0 ? _b : defaultServerListener.onReceiveMessage, + onReceiveHalfClose: (_c = interceptedListener === null || interceptedListener === void 0 ? void 0 : interceptedListener.onReceiveHalfClose) !== null && _c !== void 0 ? _c : defaultServerListener.onReceiveHalfClose, + onCancel: (_d = interceptedListener === null || interceptedListener === void 0 ? void 0 : interceptedListener.onCancel) !== null && _d !== void 0 ? _d : defaultServerListener.onCancel, + }; + const finalInterceptingListener = new InterceptingServerListenerImpl(fullInterceptedListener, listener); + this.nextCall.start(finalInterceptingListener); + }); + } + sendMetadata(metadata) { + this.processingMetadata = true; + this.sentMetadata = true; + this.responder.sendMetadata(metadata, interceptedMetadata => { + this.processingMetadata = false; + this.nextCall.sendMetadata(interceptedMetadata); + this.processPendingMessage(); + this.processPendingStatus(); + }); + } + sendMessage(message, callback) { + this.processingMessage = true; + if (!this.sentMetadata) { + this.sendMetadata(new metadata_1.Metadata()); + } + this.responder.sendMessage(message, interceptedMessage => { + this.processingMessage = false; + if (this.processingMetadata) { + this.pendingMessage = interceptedMessage; + this.pendingMessageCallback = callback; + } + else { + this.nextCall.sendMessage(interceptedMessage, callback); + } + }); + } + sendStatus(status) { + this.responder.sendStatus(status, interceptedStatus => { + if (this.processingMetadata || this.processingMessage) { + this.pendingStatus = interceptedStatus; + } + else { + this.nextCall.sendStatus(interceptedStatus); + } + }); + } + startRead() { + this.nextCall.startRead(); + } + getPeer() { + return this.nextCall.getPeer(); + } + getDeadline() { + return this.nextCall.getDeadline(); + } + getHost() { + return this.nextCall.getHost(); + } + getAuthContext() { + return this.nextCall.getAuthContext(); + } + getConnectionInfo() { + return this.nextCall.getConnectionInfo(); + } + getMetricsRecorder() { + return this.nextCall.getMetricsRecorder(); + } +} +exports.ServerInterceptingCall = ServerInterceptingCall; +const GRPC_ACCEPT_ENCODING_HEADER = 'grpc-accept-encoding'; +const GRPC_ENCODING_HEADER = 'grpc-encoding'; +const GRPC_MESSAGE_HEADER = 'grpc-message'; +const GRPC_STATUS_HEADER = 'grpc-status'; +const GRPC_TIMEOUT_HEADER = 'grpc-timeout'; +const DEADLINE_REGEX = /(\d{1,8})\s*([HMSmun])/; +const deadlineUnitsToMs = { + H: 3600000, + M: 60000, + S: 1000, + m: 1, + u: 0.001, + n: 0.000001, +}; +const defaultCompressionHeaders = { + // TODO(cjihrig): Remove these encoding headers from the default response + // once compression is integrated. + [GRPC_ACCEPT_ENCODING_HEADER]: 'identity,deflate,gzip', + [GRPC_ENCODING_HEADER]: 'identity', +}; +const defaultResponseHeaders = { + [http2.constants.HTTP2_HEADER_STATUS]: http2.constants.HTTP_STATUS_OK, + [http2.constants.HTTP2_HEADER_CONTENT_TYPE]: 'application/grpc+proto', +}; +const defaultResponseOptions = { + waitForTrailers: true, +}; +class BaseServerInterceptingCall { + constructor(stream, headers, callEventTracker, handler, options) { + var _a, _b; + this.stream = stream; + this.callEventTracker = callEventTracker; + this.handler = handler; + this.listener = null; + this.deadlineTimer = null; + this.deadline = Infinity; + this.maxSendMessageSize = constants_1.DEFAULT_MAX_SEND_MESSAGE_LENGTH; + this.maxReceiveMessageSize = constants_1.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH; + this.cancelled = false; + this.metadataSent = false; + this.wantTrailers = false; + this.cancelNotified = false; + this.incomingEncoding = 'identity'; + this.readQueue = []; + this.isReadPending = false; + this.receivedHalfClose = false; + this.streamEnded = false; + this.metricsRecorder = new orca_1.PerRequestMetricRecorder(); + this.stream.once('close', () => { + var _a; + trace('Request to method ' + + ((_a = this.handler) === null || _a === void 0 ? void 0 : _a.path) + + ' stream closed with rstCode ' + + this.stream.rstCode); + if (this.callEventTracker && !this.streamEnded) { + this.streamEnded = true; + this.callEventTracker.onStreamEnd(false); + this.callEventTracker.onCallEnd({ + code: constants_1.Status.CANCELLED, + details: 'Stream closed before sending status', + metadata: null, + }); + } + this.notifyOnCancel(); + }); + this.stream.on('data', (data) => { + this.handleDataFrame(data); + }); + this.stream.pause(); + this.stream.on('end', () => { + this.handleEndEvent(); + }); + if ('grpc.max_send_message_length' in options) { + this.maxSendMessageSize = options['grpc.max_send_message_length']; + } + if ('grpc.max_receive_message_length' in options) { + this.maxReceiveMessageSize = options['grpc.max_receive_message_length']; + } + this.host = (_a = headers[':authority']) !== null && _a !== void 0 ? _a : headers.host; + this.decoder = new stream_decoder_1.StreamDecoder(this.maxReceiveMessageSize); + const metadata = metadata_1.Metadata.fromHttp2Headers(headers); + if (logging.isTracerEnabled(TRACER_NAME)) { + trace('Request to ' + + this.handler.path + + ' received headers ' + + JSON.stringify(metadata.toJSON())); + } + const timeoutHeader = metadata.get(GRPC_TIMEOUT_HEADER); + if (timeoutHeader.length > 0) { + this.handleTimeoutHeader(timeoutHeader[0]); + } + const encodingHeader = metadata.get(GRPC_ENCODING_HEADER); + if (encodingHeader.length > 0) { + this.incomingEncoding = encodingHeader[0]; + } + // Remove several headers that should not be propagated to the application + metadata.remove(GRPC_TIMEOUT_HEADER); + metadata.remove(GRPC_ENCODING_HEADER); + metadata.remove(GRPC_ACCEPT_ENCODING_HEADER); + metadata.remove(http2.constants.HTTP2_HEADER_ACCEPT_ENCODING); + metadata.remove(http2.constants.HTTP2_HEADER_TE); + metadata.remove(http2.constants.HTTP2_HEADER_CONTENT_TYPE); + this.metadata = metadata; + const socket = (_b = stream.session) === null || _b === void 0 ? void 0 : _b.socket; + this.connectionInfo = { + localAddress: socket === null || socket === void 0 ? void 0 : socket.localAddress, + localPort: socket === null || socket === void 0 ? void 0 : socket.localPort, + remoteAddress: socket === null || socket === void 0 ? void 0 : socket.remoteAddress, + remotePort: socket === null || socket === void 0 ? void 0 : socket.remotePort + }; + this.shouldSendMetrics = !!options['grpc.server_call_metric_recording']; + } + handleTimeoutHeader(timeoutHeader) { + const match = timeoutHeader.toString().match(DEADLINE_REGEX); + if (match === null) { + const status = { + code: constants_1.Status.INTERNAL, + details: `Invalid ${GRPC_TIMEOUT_HEADER} value "${timeoutHeader}"`, + metadata: null, + }; + // Wait for the constructor to complete before sending the error. + process.nextTick(() => { + this.sendStatus(status); + }); + return; + } + const timeout = (+match[1] * deadlineUnitsToMs[match[2]]) | 0; + const now = new Date(); + this.deadline = now.setMilliseconds(now.getMilliseconds() + timeout); + this.deadlineTimer = setTimeout(() => { + const status = { + code: constants_1.Status.DEADLINE_EXCEEDED, + details: 'Deadline exceeded', + metadata: null, + }; + this.sendStatus(status); + }, timeout); + } + checkCancelled() { + /* In some cases the stream can become destroyed before the close event + * fires. That creates a race condition that this check works around */ + if (!this.cancelled && (this.stream.destroyed || this.stream.closed)) { + this.notifyOnCancel(); + this.cancelled = true; + } + return this.cancelled; + } + notifyOnCancel() { + if (this.cancelNotified) { + return; + } + this.cancelNotified = true; + this.cancelled = true; + process.nextTick(() => { + var _a; + (_a = this.listener) === null || _a === void 0 ? void 0 : _a.onCancel(); + }); + if (this.deadlineTimer) { + clearTimeout(this.deadlineTimer); + } + // Flush incoming data frames + this.stream.resume(); + } + /** + * A server handler can start sending messages without explicitly sending + * metadata. In that case, we need to send headers before sending any + * messages. This function does that if necessary. + */ + maybeSendMetadata() { + if (!this.metadataSent) { + this.sendMetadata(new metadata_1.Metadata()); + } + } + /** + * Serialize a message to a length-delimited byte string. + * @param value + * @returns + */ + serializeMessage(value) { + const messageBuffer = this.handler.serialize(value); + const byteLength = messageBuffer.byteLength; + const output = Buffer.allocUnsafe(byteLength + 5); + /* Note: response compression is currently not supported, so this + * compressed bit is always 0. */ + output.writeUInt8(0, 0); + output.writeUInt32BE(byteLength, 1); + messageBuffer.copy(output, 5); + return output; + } + decompressMessage(message, encoding) { + const messageContents = message.subarray(5); + if (encoding === 'identity') { + return messageContents; + } + else if (encoding === 'deflate' || encoding === 'gzip') { + let decompresser; + if (encoding === 'deflate') { + decompresser = zlib.createInflate(); + } + else { + decompresser = zlib.createGunzip(); + } + return new Promise((resolve, reject) => { + let totalLength = 0; + const messageParts = []; + decompresser.on('error', (error) => { + reject({ + code: constants_1.Status.INTERNAL, + details: 'Failed to decompress message' + }); + }); + decompresser.on('data', (chunk) => { + messageParts.push(chunk); + totalLength += chunk.byteLength; + if (this.maxReceiveMessageSize !== -1 && totalLength > this.maxReceiveMessageSize) { + decompresser.destroy(); + reject({ + code: constants_1.Status.RESOURCE_EXHAUSTED, + details: `Received message that decompresses to a size larger than ${this.maxReceiveMessageSize}` + }); + } + }); + decompresser.on('end', () => { + resolve(Buffer.concat(messageParts)); + }); + decompresser.write(messageContents); + decompresser.end(); + }); + } + else { + return Promise.reject({ + code: constants_1.Status.UNIMPLEMENTED, + details: `Received message compressed with unsupported encoding "${encoding}"`, + }); + } + } + async decompressAndMaybePush(queueEntry) { + if (queueEntry.type !== 'COMPRESSED') { + throw new Error(`Invalid queue entry type: ${queueEntry.type}`); + } + const compressed = queueEntry.compressedMessage.readUInt8(0) === 1; + const compressedMessageEncoding = compressed + ? this.incomingEncoding + : 'identity'; + let decompressedMessage; + try { + decompressedMessage = await this.decompressMessage(queueEntry.compressedMessage, compressedMessageEncoding); + } + catch (err) { + this.sendStatus(err); + return; + } + try { + queueEntry.parsedMessage = this.handler.deserialize(decompressedMessage); + } + catch (err) { + this.sendStatus({ + code: constants_1.Status.INTERNAL, + details: `Error deserializing request: ${err.message}`, + }); + return; + } + queueEntry.type = 'READABLE'; + this.maybePushNextMessage(); + } + maybePushNextMessage() { + if (this.listener && + this.isReadPending && + this.readQueue.length > 0 && + this.readQueue[0].type !== 'COMPRESSED') { + this.isReadPending = false; + const nextQueueEntry = this.readQueue.shift(); + if (nextQueueEntry.type === 'READABLE') { + this.listener.onReceiveMessage(nextQueueEntry.parsedMessage); + } + else { + // nextQueueEntry.type === 'HALF_CLOSE' + this.listener.onReceiveHalfClose(); + } + } + } + handleDataFrame(data) { + var _a; + if (this.checkCancelled()) { + return; + } + trace('Request to ' + + this.handler.path + + ' received data frame of size ' + + data.length); + let rawMessages; + try { + rawMessages = this.decoder.write(data); + } + catch (e) { + this.sendStatus({ code: constants_1.Status.RESOURCE_EXHAUSTED, details: e.message }); + return; + } + for (const messageBytes of rawMessages) { + this.stream.pause(); + const queueEntry = { + type: 'COMPRESSED', + compressedMessage: messageBytes, + parsedMessage: null, + }; + this.readQueue.push(queueEntry); + this.decompressAndMaybePush(queueEntry); + (_a = this.callEventTracker) === null || _a === void 0 ? void 0 : _a.addMessageReceived(); + } + } + handleEndEvent() { + this.readQueue.push({ + type: 'HALF_CLOSE', + compressedMessage: null, + parsedMessage: null, + }); + this.receivedHalfClose = true; + this.maybePushNextMessage(); + } + start(listener) { + trace('Request to ' + this.handler.path + ' start called'); + if (this.checkCancelled()) { + return; + } + this.listener = listener; + listener.onReceiveMetadata(this.metadata); + } + sendMetadata(metadata) { + if (this.checkCancelled()) { + return; + } + if (this.metadataSent) { + return; + } + this.metadataSent = true; + const custom = metadata ? metadata.toHttp2Headers() : null; + const headers = Object.assign(Object.assign(Object.assign({}, defaultResponseHeaders), defaultCompressionHeaders), custom); + this.stream.respond(headers, defaultResponseOptions); + } + sendMessage(message, callback) { + if (this.checkCancelled()) { + return; + } + let response; + try { + response = this.serializeMessage(message); + } + catch (e) { + this.sendStatus({ + code: constants_1.Status.INTERNAL, + details: `Error serializing response: ${(0, error_1.getErrorMessage)(e)}`, + metadata: null, + }); + return; + } + if (this.maxSendMessageSize !== -1 && + response.length - 5 > this.maxSendMessageSize) { + this.sendStatus({ + code: constants_1.Status.RESOURCE_EXHAUSTED, + details: `Sent message larger than max (${response.length} vs. ${this.maxSendMessageSize})`, + metadata: null, + }); + return; + } + this.maybeSendMetadata(); + trace('Request to ' + + this.handler.path + + ' sent data frame of size ' + + response.length); + this.stream.write(response, error => { + var _a; + if (error) { + this.sendStatus({ + code: constants_1.Status.INTERNAL, + details: `Error writing message: ${(0, error_1.getErrorMessage)(error)}`, + metadata: null, + }); + return; + } + (_a = this.callEventTracker) === null || _a === void 0 ? void 0 : _a.addMessageSent(); + callback(); + }); + } + sendStatus(status) { + var _a, _b, _c; + if (this.checkCancelled()) { + return; + } + trace('Request to method ' + + ((_a = this.handler) === null || _a === void 0 ? void 0 : _a.path) + + ' ended with status code: ' + + constants_1.Status[status.code] + + ' details: ' + + status.details); + const statusMetadata = (_c = (_b = status.metadata) === null || _b === void 0 ? void 0 : _b.clone()) !== null && _c !== void 0 ? _c : new metadata_1.Metadata(); + if (this.shouldSendMetrics) { + statusMetadata.set(orca_1.GRPC_METRICS_HEADER, this.metricsRecorder.serialize()); + } + if (this.metadataSent) { + if (!this.wantTrailers) { + this.wantTrailers = true; + this.stream.once('wantTrailers', () => { + if (this.callEventTracker && !this.streamEnded) { + this.streamEnded = true; + this.callEventTracker.onStreamEnd(true); + this.callEventTracker.onCallEnd(status); + } + const trailersToSend = Object.assign({ [GRPC_STATUS_HEADER]: status.code, [GRPC_MESSAGE_HEADER]: encodeURI(status.details) }, statusMetadata.toHttp2Headers()); + this.stream.sendTrailers(trailersToSend); + this.notifyOnCancel(); + }); + this.stream.end(); + } + else { + this.notifyOnCancel(); + } + } + else { + if (this.callEventTracker && !this.streamEnded) { + this.streamEnded = true; + this.callEventTracker.onStreamEnd(true); + this.callEventTracker.onCallEnd(status); + } + // Trailers-only response + const trailersToSend = Object.assign(Object.assign({ [GRPC_STATUS_HEADER]: status.code, [GRPC_MESSAGE_HEADER]: encodeURI(status.details) }, defaultResponseHeaders), statusMetadata.toHttp2Headers()); + this.stream.respond(trailersToSend, { endStream: true }); + this.notifyOnCancel(); + } + } + startRead() { + trace('Request to ' + this.handler.path + ' startRead called'); + if (this.checkCancelled()) { + return; + } + this.isReadPending = true; + if (this.readQueue.length === 0) { + if (!this.receivedHalfClose) { + this.stream.resume(); + } + } + else { + this.maybePushNextMessage(); + } + } + getPeer() { + var _a; + const socket = (_a = this.stream.session) === null || _a === void 0 ? void 0 : _a.socket; + if (socket === null || socket === void 0 ? void 0 : socket.remoteAddress) { + if (socket.remotePort) { + return `${socket.remoteAddress}:${socket.remotePort}`; + } + else { + return socket.remoteAddress; + } + } + else { + return 'unknown'; + } + } + getDeadline() { + return this.deadline; + } + getHost() { + return this.host; + } + getAuthContext() { + var _a; + if (((_a = this.stream.session) === null || _a === void 0 ? void 0 : _a.socket) instanceof tls_1.TLSSocket) { + const peerCertificate = this.stream.session.socket.getPeerCertificate(); + return { + transportSecurityType: 'ssl', + sslPeerCertificate: peerCertificate.raw ? peerCertificate : undefined + }; + } + else { + return {}; + } + } + getConnectionInfo() { + return this.connectionInfo; + } + getMetricsRecorder() { + return this.metricsRecorder; + } +} +exports.BaseServerInterceptingCall = BaseServerInterceptingCall; +function getServerInterceptingCall(interceptors, stream, headers, callEventTracker, handler, options) { + const methodDefinition = { + path: handler.path, + requestStream: handler.type === 'clientStream' || handler.type === 'bidi', + responseStream: handler.type === 'serverStream' || handler.type === 'bidi', + requestDeserialize: handler.deserialize, + responseSerialize: handler.serialize, + }; + const baseCall = new BaseServerInterceptingCall(stream, headers, callEventTracker, handler, options); + return interceptors.reduce((call, interceptor) => { + return interceptor(methodDefinition, call); + }, baseCall); +} +//# sourceMappingURL=server-interceptors.js.map + +/***/ }), + +/***/ 12390: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { + var useValue = arguments.length > 2; + for (var i = 0; i < initializers.length; i++) { + value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); + } + return useValue ? value : void 0; +}; +var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { + function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } + var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; + var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; + var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); + var _, done = false; + for (var i = decorators.length - 1; i >= 0; i--) { + var context = {}; + for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; + for (var p in contextIn.access) context.access[p] = contextIn.access[p]; + context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; + var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); + if (kind === "accessor") { + if (result === void 0) continue; + if (result === null || typeof result !== "object") throw new TypeError("Object expected"); + if (_ = accept(result.get)) descriptor.get = _; + if (_ = accept(result.set)) descriptor.set = _; + if (_ = accept(result.init)) initializers.unshift(_); + } + else if (_ = accept(result)) { + if (kind === "field") initializers.unshift(_); + else descriptor[key] = _; + } + } + if (target) Object.defineProperty(target, contextIn.name, descriptor); + done = true; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Server = void 0; +const http2 = __nccwpck_require__(85675); +const util = __nccwpck_require__(39023); +const constants_1 = __nccwpck_require__(68288); +const server_call_1 = __nccwpck_require__(34615); +const server_credentials_1 = __nccwpck_require__(36545); +const resolver_1 = __nccwpck_require__(76255); +const logging = __nccwpck_require__(8536); +const subchannel_address_1 = __nccwpck_require__(97021); +const uri_parser_1 = __nccwpck_require__(56027); +const channelz_1 = __nccwpck_require__(68198); +const server_interceptors_1 = __nccwpck_require__(42151); +const UNLIMITED_CONNECTION_AGE_MS = ~(1 << 31); +const KEEPALIVE_MAX_TIME_MS = ~(1 << 31); +const KEEPALIVE_TIMEOUT_MS = 20000; +const MAX_CONNECTION_IDLE_MS = ~(1 << 31); +const { HTTP2_HEADER_PATH } = http2.constants; +const TRACER_NAME = 'server'; +const kMaxAge = Buffer.from('max_age'); +function serverCallTrace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, 'server_call', text); +} +function noop() { } +/** + * Decorator to wrap a class method with util.deprecate + * @param message The message to output if the deprecated method is called + * @returns + */ +function deprecate(message) { + return function (target, context) { + return util.deprecate(target, message); + }; +} +function getUnimplementedStatusResponse(methodName) { + return { + code: constants_1.Status.UNIMPLEMENTED, + details: `The server does not implement the method ${methodName}`, + }; +} +function getDefaultHandler(handlerType, methodName) { + const unimplementedStatusResponse = getUnimplementedStatusResponse(methodName); + switch (handlerType) { + case 'unary': + return (call, callback) => { + callback(unimplementedStatusResponse, null); + }; + case 'clientStream': + return (call, callback) => { + callback(unimplementedStatusResponse, null); + }; + case 'serverStream': + return (call) => { + call.emit('error', unimplementedStatusResponse); + }; + case 'bidi': + return (call) => { + call.emit('error', unimplementedStatusResponse); + }; + default: + throw new Error(`Invalid handlerType ${handlerType}`); + } +} +let Server = (() => { + var _a; + let _instanceExtraInitializers = []; + let _start_decorators; + return _a = class Server { + constructor(options) { + var _b, _c, _d, _e, _f, _g; + this.boundPorts = (__runInitializers(this, _instanceExtraInitializers), new Map()); + this.http2Servers = new Map(); + this.sessionIdleTimeouts = new Map(); + this.handlers = new Map(); + this.sessions = new Map(); + /** + * This field only exists to ensure that the start method throws an error if + * it is called twice, as it did previously. + */ + this.started = false; + this.shutdown = false; + this.serverAddressString = 'null'; + // Channelz Info + this.channelzEnabled = true; + this.options = options !== null && options !== void 0 ? options : {}; + if (this.options['grpc.enable_channelz'] === 0) { + this.channelzEnabled = false; + this.channelzTrace = new channelz_1.ChannelzTraceStub(); + this.callTracker = new channelz_1.ChannelzCallTrackerStub(); + this.listenerChildrenTracker = new channelz_1.ChannelzChildrenTrackerStub(); + this.sessionChildrenTracker = new channelz_1.ChannelzChildrenTrackerStub(); + } + else { + this.channelzTrace = new channelz_1.ChannelzTrace(); + this.callTracker = new channelz_1.ChannelzCallTracker(); + this.listenerChildrenTracker = new channelz_1.ChannelzChildrenTracker(); + this.sessionChildrenTracker = new channelz_1.ChannelzChildrenTracker(); + } + this.channelzRef = (0, channelz_1.registerChannelzServer)('server', () => this.getChannelzInfo(), this.channelzEnabled); + this.channelzTrace.addTrace('CT_INFO', 'Server created'); + this.maxConnectionAgeMs = + (_b = this.options['grpc.max_connection_age_ms']) !== null && _b !== void 0 ? _b : UNLIMITED_CONNECTION_AGE_MS; + this.maxConnectionAgeGraceMs = + (_c = this.options['grpc.max_connection_age_grace_ms']) !== null && _c !== void 0 ? _c : UNLIMITED_CONNECTION_AGE_MS; + this.keepaliveTimeMs = + (_d = this.options['grpc.keepalive_time_ms']) !== null && _d !== void 0 ? _d : KEEPALIVE_MAX_TIME_MS; + this.keepaliveTimeoutMs = + (_e = this.options['grpc.keepalive_timeout_ms']) !== null && _e !== void 0 ? _e : KEEPALIVE_TIMEOUT_MS; + this.sessionIdleTimeout = + (_f = this.options['grpc.max_connection_idle_ms']) !== null && _f !== void 0 ? _f : MAX_CONNECTION_IDLE_MS; + this.commonServerOptions = { + maxSendHeaderBlockLength: Number.MAX_SAFE_INTEGER, + }; + if ('grpc-node.max_session_memory' in this.options) { + this.commonServerOptions.maxSessionMemory = + this.options['grpc-node.max_session_memory']; + } + else { + /* By default, set a very large max session memory limit, to effectively + * disable enforcement of the limit. Some testing indicates that Node's + * behavior degrades badly when this limit is reached, so we solve that + * by disabling the check entirely. */ + this.commonServerOptions.maxSessionMemory = Number.MAX_SAFE_INTEGER; + } + if ('grpc.max_concurrent_streams' in this.options) { + this.commonServerOptions.settings = { + maxConcurrentStreams: this.options['grpc.max_concurrent_streams'], + }; + } + this.interceptors = (_g = this.options.interceptors) !== null && _g !== void 0 ? _g : []; + this.trace('Server constructed'); + } + getChannelzInfo() { + return { + trace: this.channelzTrace, + callTracker: this.callTracker, + listenerChildren: this.listenerChildrenTracker.getChildLists(), + sessionChildren: this.sessionChildrenTracker.getChildLists(), + }; + } + getChannelzSessionInfo(session) { + var _b, _c, _d; + const sessionInfo = this.sessions.get(session); + const sessionSocket = session.socket; + const remoteAddress = sessionSocket.remoteAddress + ? (0, subchannel_address_1.stringToSubchannelAddress)(sessionSocket.remoteAddress, sessionSocket.remotePort) + : null; + const localAddress = sessionSocket.localAddress + ? (0, subchannel_address_1.stringToSubchannelAddress)(sessionSocket.localAddress, sessionSocket.localPort) + : null; + let tlsInfo; + if (session.encrypted) { + const tlsSocket = sessionSocket; + const cipherInfo = tlsSocket.getCipher(); + const certificate = tlsSocket.getCertificate(); + const peerCertificate = tlsSocket.getPeerCertificate(); + tlsInfo = { + cipherSuiteStandardName: (_b = cipherInfo.standardName) !== null && _b !== void 0 ? _b : null, + cipherSuiteOtherName: cipherInfo.standardName ? null : cipherInfo.name, + localCertificate: certificate && 'raw' in certificate ? certificate.raw : null, + remoteCertificate: peerCertificate && 'raw' in peerCertificate + ? peerCertificate.raw + : null, + }; + } + else { + tlsInfo = null; + } + const socketInfo = { + remoteAddress: remoteAddress, + localAddress: localAddress, + security: tlsInfo, + remoteName: null, + streamsStarted: sessionInfo.streamTracker.callsStarted, + streamsSucceeded: sessionInfo.streamTracker.callsSucceeded, + streamsFailed: sessionInfo.streamTracker.callsFailed, + messagesSent: sessionInfo.messagesSent, + messagesReceived: sessionInfo.messagesReceived, + keepAlivesSent: sessionInfo.keepAlivesSent, + lastLocalStreamCreatedTimestamp: null, + lastRemoteStreamCreatedTimestamp: sessionInfo.streamTracker.lastCallStartedTimestamp, + lastMessageSentTimestamp: sessionInfo.lastMessageSentTimestamp, + lastMessageReceivedTimestamp: sessionInfo.lastMessageReceivedTimestamp, + localFlowControlWindow: (_c = session.state.localWindowSize) !== null && _c !== void 0 ? _c : null, + remoteFlowControlWindow: (_d = session.state.remoteWindowSize) !== null && _d !== void 0 ? _d : null, + }; + return socketInfo; + } + trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '(' + this.channelzRef.id + ') ' + text); + } + keepaliveTrace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, 'keepalive', '(' + this.channelzRef.id + ') ' + text); + } + addProtoService() { + throw new Error('Not implemented. Use addService() instead'); + } + addService(service, implementation) { + if (service === null || + typeof service !== 'object' || + implementation === null || + typeof implementation !== 'object') { + throw new Error('addService() requires two objects as arguments'); + } + const serviceKeys = Object.keys(service); + if (serviceKeys.length === 0) { + throw new Error('Cannot add an empty service to a server'); + } + serviceKeys.forEach(name => { + const attrs = service[name]; + let methodType; + if (attrs.requestStream) { + if (attrs.responseStream) { + methodType = 'bidi'; + } + else { + methodType = 'clientStream'; + } + } + else { + if (attrs.responseStream) { + methodType = 'serverStream'; + } + else { + methodType = 'unary'; + } + } + let implFn = implementation[name]; + let impl; + if (implFn === undefined && typeof attrs.originalName === 'string') { + implFn = implementation[attrs.originalName]; + } + if (implFn !== undefined) { + impl = implFn.bind(implementation); + } + else { + impl = getDefaultHandler(methodType, name); + } + const success = this.register(attrs.path, impl, attrs.responseSerialize, attrs.requestDeserialize, methodType); + if (success === false) { + throw new Error(`Method handler for ${attrs.path} already provided.`); + } + }); + } + removeService(service) { + if (service === null || typeof service !== 'object') { + throw new Error('removeService() requires object as argument'); + } + const serviceKeys = Object.keys(service); + serviceKeys.forEach(name => { + const attrs = service[name]; + this.unregister(attrs.path); + }); + } + bind(port, creds) { + throw new Error('Not implemented. Use bindAsync() instead'); + } + /** + * This API is experimental, so API stability is not guaranteed across minor versions. + * @param boundAddress + * @returns + */ + experimentalRegisterListenerToChannelz(boundAddress) { + return (0, channelz_1.registerChannelzSocket)((0, subchannel_address_1.subchannelAddressToString)(boundAddress), () => { + return { + localAddress: boundAddress, + remoteAddress: null, + security: null, + remoteName: null, + streamsStarted: 0, + streamsSucceeded: 0, + streamsFailed: 0, + messagesSent: 0, + messagesReceived: 0, + keepAlivesSent: 0, + lastLocalStreamCreatedTimestamp: null, + lastRemoteStreamCreatedTimestamp: null, + lastMessageSentTimestamp: null, + lastMessageReceivedTimestamp: null, + localFlowControlWindow: null, + remoteFlowControlWindow: null, + }; + }, this.channelzEnabled); + } + experimentalUnregisterListenerFromChannelz(channelzRef) { + (0, channelz_1.unregisterChannelzRef)(channelzRef); + } + createHttp2Server(credentials) { + let http2Server; + if (credentials._isSecure()) { + const constructorOptions = credentials._getConstructorOptions(); + const contextOptions = credentials._getSecureContextOptions(); + const secureServerOptions = Object.assign(Object.assign(Object.assign(Object.assign({}, this.commonServerOptions), constructorOptions), contextOptions), { enableTrace: this.options['grpc-node.tls_enable_trace'] === 1 }); + let areCredentialsValid = contextOptions !== null; + this.trace('Initial credentials valid: ' + areCredentialsValid); + http2Server = http2.createSecureServer(secureServerOptions); + http2Server.prependListener('connection', (socket) => { + if (!areCredentialsValid) { + this.trace('Dropped connection from ' + JSON.stringify(socket.address()) + ' due to unloaded credentials'); + socket.destroy(); + } + }); + http2Server.on('secureConnection', (socket) => { + /* These errors need to be handled by the user of Http2SecureServer, + * according to https://github.com/nodejs/node/issues/35824 */ + socket.on('error', (e) => { + this.trace('An incoming TLS connection closed with error: ' + e.message); + }); + }); + const credsWatcher = options => { + if (options) { + const secureServer = http2Server; + try { + secureServer.setSecureContext(options); + } + catch (e) { + logging.log(constants_1.LogVerbosity.ERROR, 'Failed to set secure context with error ' + e.message); + options = null; + } + } + areCredentialsValid = options !== null; + this.trace('Post-update credentials valid: ' + areCredentialsValid); + }; + credentials._addWatcher(credsWatcher); + http2Server.on('close', () => { + credentials._removeWatcher(credsWatcher); + }); + } + else { + http2Server = http2.createServer(this.commonServerOptions); + } + http2Server.setTimeout(0, noop); + this._setupHandlers(http2Server, credentials._getInterceptors()); + return http2Server; + } + bindOneAddress(address, boundPortObject) { + this.trace('Attempting to bind ' + (0, subchannel_address_1.subchannelAddressToString)(address)); + const http2Server = this.createHttp2Server(boundPortObject.credentials); + return new Promise((resolve, reject) => { + const onError = (err) => { + this.trace('Failed to bind ' + + (0, subchannel_address_1.subchannelAddressToString)(address) + + ' with error ' + + err.message); + resolve({ + port: 'port' in address ? address.port : 1, + error: err.message, + }); + }; + http2Server.once('error', onError); + http2Server.listen(address, () => { + const boundAddress = http2Server.address(); + let boundSubchannelAddress; + if (typeof boundAddress === 'string') { + boundSubchannelAddress = { + path: boundAddress, + }; + } + else { + boundSubchannelAddress = { + host: boundAddress.address, + port: boundAddress.port, + }; + } + const channelzRef = this.experimentalRegisterListenerToChannelz(boundSubchannelAddress); + this.listenerChildrenTracker.refChild(channelzRef); + this.http2Servers.set(http2Server, { + channelzRef: channelzRef, + sessions: new Set(), + ownsChannelzRef: true + }); + boundPortObject.listeningServers.add(http2Server); + this.trace('Successfully bound ' + + (0, subchannel_address_1.subchannelAddressToString)(boundSubchannelAddress)); + resolve({ + port: 'port' in boundSubchannelAddress ? boundSubchannelAddress.port : 1, + }); + http2Server.removeListener('error', onError); + }); + }); + } + async bindManyPorts(addressList, boundPortObject) { + if (addressList.length === 0) { + return { + count: 0, + port: 0, + errors: [], + }; + } + if ((0, subchannel_address_1.isTcpSubchannelAddress)(addressList[0]) && addressList[0].port === 0) { + /* If binding to port 0, first try to bind the first address, then bind + * the rest of the address list to the specific port that it binds. */ + const firstAddressResult = await this.bindOneAddress(addressList[0], boundPortObject); + if (firstAddressResult.error) { + /* If the first address fails to bind, try the same operation starting + * from the second item in the list. */ + const restAddressResult = await this.bindManyPorts(addressList.slice(1), boundPortObject); + return Object.assign(Object.assign({}, restAddressResult), { errors: [firstAddressResult.error, ...restAddressResult.errors] }); + } + else { + const restAddresses = addressList + .slice(1) + .map(address => (0, subchannel_address_1.isTcpSubchannelAddress)(address) + ? { host: address.host, port: firstAddressResult.port } + : address); + const restAddressResult = await Promise.all(restAddresses.map(address => this.bindOneAddress(address, boundPortObject))); + const allResults = [firstAddressResult, ...restAddressResult]; + return { + count: allResults.filter(result => result.error === undefined).length, + port: firstAddressResult.port, + errors: allResults + .filter(result => result.error) + .map(result => result.error), + }; + } + } + else { + const allResults = await Promise.all(addressList.map(address => this.bindOneAddress(address, boundPortObject))); + return { + count: allResults.filter(result => result.error === undefined).length, + port: allResults[0].port, + errors: allResults + .filter(result => result.error) + .map(result => result.error), + }; + } + } + async bindAddressList(addressList, boundPortObject) { + const bindResult = await this.bindManyPorts(addressList, boundPortObject); + if (bindResult.count > 0) { + if (bindResult.count < addressList.length) { + logging.log(constants_1.LogVerbosity.INFO, `WARNING Only ${bindResult.count} addresses added out of total ${addressList.length} resolved`); + } + return bindResult.port; + } + else { + const errorString = `No address added out of total ${addressList.length} resolved`; + logging.log(constants_1.LogVerbosity.ERROR, errorString); + throw new Error(`${errorString} errors: [${bindResult.errors.join(',')}]`); + } + } + resolvePort(port) { + return new Promise((resolve, reject) => { + let seenResolution = false; + const resolverListener = (endpointList, attributes, serviceConfig, resolutionNote) => { + if (seenResolution) { + return true; + } + seenResolution = true; + if (!endpointList.ok) { + reject(new Error(endpointList.error.details)); + return true; + } + const addressList = [].concat(...endpointList.value.map(endpoint => endpoint.addresses)); + if (addressList.length === 0) { + reject(new Error(`No addresses resolved for port ${port}`)); + return true; + } + resolve(addressList); + return true; + }; + const resolver = (0, resolver_1.createResolver)(port, resolverListener, this.options); + resolver.updateResolution(); + }); + } + async bindPort(port, boundPortObject) { + const addressList = await this.resolvePort(port); + if (boundPortObject.cancelled) { + this.completeUnbind(boundPortObject); + throw new Error('bindAsync operation cancelled by unbind call'); + } + const portNumber = await this.bindAddressList(addressList, boundPortObject); + if (boundPortObject.cancelled) { + this.completeUnbind(boundPortObject); + throw new Error('bindAsync operation cancelled by unbind call'); + } + return portNumber; + } + normalizePort(port) { + const initialPortUri = (0, uri_parser_1.parseUri)(port); + if (initialPortUri === null) { + throw new Error(`Could not parse port "${port}"`); + } + const portUri = (0, resolver_1.mapUriDefaultScheme)(initialPortUri); + if (portUri === null) { + throw new Error(`Could not get a default scheme for port "${port}"`); + } + return portUri; + } + bindAsync(port, creds, callback) { + if (this.shutdown) { + throw new Error('bindAsync called after shutdown'); + } + if (typeof port !== 'string') { + throw new TypeError('port must be a string'); + } + if (creds === null || !(creds instanceof server_credentials_1.ServerCredentials)) { + throw new TypeError('creds must be a ServerCredentials object'); + } + if (typeof callback !== 'function') { + throw new TypeError('callback must be a function'); + } + this.trace('bindAsync port=' + port); + const portUri = this.normalizePort(port); + const deferredCallback = (error, port) => { + process.nextTick(() => callback(error, port)); + }; + /* First, if this port is already bound or that bind operation is in + * progress, use that result. */ + let boundPortObject = this.boundPorts.get((0, uri_parser_1.uriToString)(portUri)); + if (boundPortObject) { + if (!creds._equals(boundPortObject.credentials)) { + deferredCallback(new Error(`${port} already bound with incompatible credentials`), 0); + return; + } + /* If that operation has previously been cancelled by an unbind call, + * uncancel it. */ + boundPortObject.cancelled = false; + if (boundPortObject.completionPromise) { + boundPortObject.completionPromise.then(portNum => callback(null, portNum), error => callback(error, 0)); + } + else { + deferredCallback(null, boundPortObject.portNumber); + } + return; + } + boundPortObject = { + mapKey: (0, uri_parser_1.uriToString)(portUri), + originalUri: portUri, + completionPromise: null, + cancelled: false, + portNumber: 0, + credentials: creds, + listeningServers: new Set(), + }; + const splitPort = (0, uri_parser_1.splitHostPort)(portUri.path); + const completionPromise = this.bindPort(portUri, boundPortObject); + boundPortObject.completionPromise = completionPromise; + /* If the port number is 0, defer populating the map entry until after the + * bind operation completes and we have a specific port number. Otherwise, + * populate it immediately. */ + if ((splitPort === null || splitPort === void 0 ? void 0 : splitPort.port) === 0) { + completionPromise.then(portNum => { + const finalUri = { + scheme: portUri.scheme, + authority: portUri.authority, + path: (0, uri_parser_1.combineHostPort)({ host: splitPort.host, port: portNum }), + }; + boundPortObject.mapKey = (0, uri_parser_1.uriToString)(finalUri); + boundPortObject.completionPromise = null; + boundPortObject.portNumber = portNum; + this.boundPorts.set(boundPortObject.mapKey, boundPortObject); + callback(null, portNum); + }, error => { + callback(error, 0); + }); + } + else { + this.boundPorts.set(boundPortObject.mapKey, boundPortObject); + completionPromise.then(portNum => { + boundPortObject.completionPromise = null; + boundPortObject.portNumber = portNum; + callback(null, portNum); + }, error => { + callback(error, 0); + }); + } + } + registerInjectorToChannelz() { + return (0, channelz_1.registerChannelzSocket)('injector', () => { + return { + localAddress: null, + remoteAddress: null, + security: null, + remoteName: null, + streamsStarted: 0, + streamsSucceeded: 0, + streamsFailed: 0, + messagesSent: 0, + messagesReceived: 0, + keepAlivesSent: 0, + lastLocalStreamCreatedTimestamp: null, + lastRemoteStreamCreatedTimestamp: null, + lastMessageSentTimestamp: null, + lastMessageReceivedTimestamp: null, + localFlowControlWindow: null, + remoteFlowControlWindow: null, + }; + }, this.channelzEnabled); + } + /** + * This API is experimental, so API stability is not guaranteed across minor versions. + * @param credentials + * @param channelzRef + * @returns + */ + experimentalCreateConnectionInjectorWithChannelzRef(credentials, channelzRef, ownsChannelzRef = false) { + if (credentials === null || !(credentials instanceof server_credentials_1.ServerCredentials)) { + throw new TypeError('creds must be a ServerCredentials object'); + } + if (this.channelzEnabled) { + this.listenerChildrenTracker.refChild(channelzRef); + } + const server = this.createHttp2Server(credentials); + const sessionsSet = new Set(); + this.http2Servers.set(server, { + channelzRef: channelzRef, + sessions: sessionsSet, + ownsChannelzRef + }); + return { + injectConnection: (connection) => { + server.emit('connection', connection); + }, + drain: (graceTimeMs) => { + var _b, _c; + for (const session of sessionsSet) { + this.closeSession(session); + } + (_c = (_b = setTimeout(() => { + for (const session of sessionsSet) { + session.destroy(http2.constants.NGHTTP2_CANCEL); + } + }, graceTimeMs)).unref) === null || _c === void 0 ? void 0 : _c.call(_b); + }, + destroy: () => { + this.closeServer(server); + for (const session of sessionsSet) { + this.closeSession(session); + } + } + }; + } + createConnectionInjector(credentials) { + if (credentials === null || !(credentials instanceof server_credentials_1.ServerCredentials)) { + throw new TypeError('creds must be a ServerCredentials object'); + } + const channelzRef = this.registerInjectorToChannelz(); + return this.experimentalCreateConnectionInjectorWithChannelzRef(credentials, channelzRef, true); + } + closeServer(server, callback) { + this.trace('Closing server with address ' + JSON.stringify(server.address())); + const serverInfo = this.http2Servers.get(server); + server.close(() => { + if (serverInfo && serverInfo.ownsChannelzRef) { + this.listenerChildrenTracker.unrefChild(serverInfo.channelzRef); + (0, channelz_1.unregisterChannelzRef)(serverInfo.channelzRef); + } + this.http2Servers.delete(server); + callback === null || callback === void 0 ? void 0 : callback(); + }); + } + closeSession(session, callback) { + var _b; + this.trace('Closing session initiated by ' + ((_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress)); + const sessionInfo = this.sessions.get(session); + const closeCallback = () => { + if (sessionInfo) { + this.sessionChildrenTracker.unrefChild(sessionInfo.ref); + (0, channelz_1.unregisterChannelzRef)(sessionInfo.ref); + } + callback === null || callback === void 0 ? void 0 : callback(); + }; + if (session.closed) { + queueMicrotask(closeCallback); + } + else { + session.close(closeCallback); + } + } + completeUnbind(boundPortObject) { + for (const server of boundPortObject.listeningServers) { + const serverInfo = this.http2Servers.get(server); + this.closeServer(server, () => { + boundPortObject.listeningServers.delete(server); + }); + if (serverInfo) { + for (const session of serverInfo.sessions) { + this.closeSession(session); + } + } + } + this.boundPorts.delete(boundPortObject.mapKey); + } + /** + * Unbind a previously bound port, or cancel an in-progress bindAsync + * operation. If port 0 was bound, only the actual bound port can be + * unbound. For example, if bindAsync was called with "localhost:0" and the + * bound port result was 54321, it can be unbound as "localhost:54321". + * @param port + */ + unbind(port) { + this.trace('unbind port=' + port); + const portUri = this.normalizePort(port); + const splitPort = (0, uri_parser_1.splitHostPort)(portUri.path); + if ((splitPort === null || splitPort === void 0 ? void 0 : splitPort.port) === 0) { + throw new Error('Cannot unbind port 0'); + } + const boundPortObject = this.boundPorts.get((0, uri_parser_1.uriToString)(portUri)); + if (boundPortObject) { + this.trace('unbinding ' + + boundPortObject.mapKey + + ' originally bound as ' + + (0, uri_parser_1.uriToString)(boundPortObject.originalUri)); + /* If the bind operation is pending, the cancelled flag will trigger + * the unbind operation later. */ + if (boundPortObject.completionPromise) { + boundPortObject.cancelled = true; + } + else { + this.completeUnbind(boundPortObject); + } + } + } + /** + * Gracefully close all connections associated with a previously bound port. + * After the grace time, forcefully close all remaining open connections. + * + * If port 0 was bound, only the actual bound port can be + * drained. For example, if bindAsync was called with "localhost:0" and the + * bound port result was 54321, it can be drained as "localhost:54321". + * @param port + * @param graceTimeMs + * @returns + */ + drain(port, graceTimeMs) { + var _b, _c; + this.trace('drain port=' + port + ' graceTimeMs=' + graceTimeMs); + const portUri = this.normalizePort(port); + const splitPort = (0, uri_parser_1.splitHostPort)(portUri.path); + if ((splitPort === null || splitPort === void 0 ? void 0 : splitPort.port) === 0) { + throw new Error('Cannot drain port 0'); + } + const boundPortObject = this.boundPorts.get((0, uri_parser_1.uriToString)(portUri)); + if (!boundPortObject) { + return; + } + const allSessions = new Set(); + for (const http2Server of boundPortObject.listeningServers) { + const serverEntry = this.http2Servers.get(http2Server); + if (serverEntry) { + for (const session of serverEntry.sessions) { + allSessions.add(session); + this.closeSession(session, () => { + allSessions.delete(session); + }); + } + } + } + /* After the grace time ends, send another goaway to all remaining sessions + * with the CANCEL code. */ + (_c = (_b = setTimeout(() => { + for (const session of allSessions) { + session.destroy(http2.constants.NGHTTP2_CANCEL); + } + }, graceTimeMs)).unref) === null || _c === void 0 ? void 0 : _c.call(_b); + } + forceShutdown() { + for (const boundPortObject of this.boundPorts.values()) { + boundPortObject.cancelled = true; + } + this.boundPorts.clear(); + // Close the server if it is still running. + for (const server of this.http2Servers.keys()) { + this.closeServer(server); + } + // Always destroy any available sessions. It's possible that one or more + // tryShutdown() calls are in progress. Don't wait on them to finish. + this.sessions.forEach((channelzInfo, session) => { + this.closeSession(session); + // Cast NGHTTP2_CANCEL to any because TypeScript doesn't seem to + // recognize destroy(code) as a valid signature. + // eslint-disable-next-line @typescript-eslint/no-explicit-any + session.destroy(http2.constants.NGHTTP2_CANCEL); + }); + this.sessions.clear(); + (0, channelz_1.unregisterChannelzRef)(this.channelzRef); + this.shutdown = true; + } + register(name, handler, serialize, deserialize, type) { + if (this.handlers.has(name)) { + return false; + } + this.handlers.set(name, { + func: handler, + serialize, + deserialize, + type, + path: name, + }); + return true; + } + unregister(name) { + return this.handlers.delete(name); + } + /** + * @deprecated No longer needed as of version 1.10.x + */ + start() { + if (this.http2Servers.size === 0 || + [...this.http2Servers.keys()].every(server => !server.listening)) { + throw new Error('server must be bound in order to start'); + } + if (this.started === true) { + throw new Error('server is already started'); + } + this.started = true; + } + tryShutdown(callback) { + var _b; + const wrappedCallback = (error) => { + (0, channelz_1.unregisterChannelzRef)(this.channelzRef); + callback(error); + }; + let pendingChecks = 0; + function maybeCallback() { + pendingChecks--; + if (pendingChecks === 0) { + wrappedCallback(); + } + } + this.shutdown = true; + for (const [serverKey, server] of this.http2Servers.entries()) { + pendingChecks++; + const serverString = server.channelzRef.name; + this.trace('Waiting for server ' + serverString + ' to close'); + this.closeServer(serverKey, () => { + this.trace('Server ' + serverString + ' finished closing'); + maybeCallback(); + }); + for (const session of server.sessions.keys()) { + pendingChecks++; + const sessionString = (_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress; + this.trace('Waiting for session ' + sessionString + ' to close'); + this.closeSession(session, () => { + this.trace('Session ' + sessionString + ' finished closing'); + maybeCallback(); + }); + } + } + if (pendingChecks === 0) { + wrappedCallback(); + } + } + addHttp2Port() { + throw new Error('Not yet implemented'); + } + /** + * Get the channelz reference object for this server. The returned value is + * garbage if channelz is disabled for this server. + * @returns + */ + getChannelzRef() { + return this.channelzRef; + } + _verifyContentType(stream, headers) { + const contentType = headers[http2.constants.HTTP2_HEADER_CONTENT_TYPE]; + if (typeof contentType !== 'string' || + !contentType.startsWith('application/grpc')) { + stream.respond({ + [http2.constants.HTTP2_HEADER_STATUS]: http2.constants.HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE, + }, { endStream: true }); + return false; + } + return true; + } + _retrieveHandler(path) { + serverCallTrace('Received call to method ' + + path + + ' at address ' + + this.serverAddressString); + const handler = this.handlers.get(path); + if (handler === undefined) { + serverCallTrace('No handler registered for method ' + + path + + '. Sending UNIMPLEMENTED status.'); + return null; + } + return handler; + } + _respondWithError(err, stream, channelzSessionInfo = null) { + var _b, _c; + const trailersToSend = Object.assign({ 'grpc-status': (_b = err.code) !== null && _b !== void 0 ? _b : constants_1.Status.INTERNAL, 'grpc-message': err.details, [http2.constants.HTTP2_HEADER_STATUS]: http2.constants.HTTP_STATUS_OK, [http2.constants.HTTP2_HEADER_CONTENT_TYPE]: 'application/grpc+proto' }, (_c = err.metadata) === null || _c === void 0 ? void 0 : _c.toHttp2Headers()); + stream.respond(trailersToSend, { endStream: true }); + this.callTracker.addCallFailed(); + channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallFailed(); + } + _channelzHandler(extraInterceptors, stream, headers) { + stream.once('error', (err) => { + /* We need an error handler to avoid uncaught error event exceptions, but + * there is nothing we can reasonably do here. Any error event should + * have a corresponding close event, which handles emitting the cancelled + * event. And the stream is now in a bad state, so we can't reasonably + * expect to be able to send an error over it. */ + }); + // for handling idle timeout + this.onStreamOpened(stream); + const channelzSessionInfo = this.sessions.get(stream.session); + this.callTracker.addCallStarted(); + channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallStarted(); + if (!this._verifyContentType(stream, headers)) { + this.callTracker.addCallFailed(); + channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallFailed(); + return; + } + const path = headers[HTTP2_HEADER_PATH]; + const handler = this._retrieveHandler(path); + if (!handler) { + this._respondWithError(getUnimplementedStatusResponse(path), stream, channelzSessionInfo); + return; + } + const callEventTracker = { + addMessageSent: () => { + if (channelzSessionInfo) { + channelzSessionInfo.messagesSent += 1; + channelzSessionInfo.lastMessageSentTimestamp = new Date(); + } + }, + addMessageReceived: () => { + if (channelzSessionInfo) { + channelzSessionInfo.messagesReceived += 1; + channelzSessionInfo.lastMessageReceivedTimestamp = new Date(); + } + }, + onCallEnd: status => { + if (status.code === constants_1.Status.OK) { + this.callTracker.addCallSucceeded(); + } + else { + this.callTracker.addCallFailed(); + } + }, + onStreamEnd: success => { + if (channelzSessionInfo) { + if (success) { + channelzSessionInfo.streamTracker.addCallSucceeded(); + } + else { + channelzSessionInfo.streamTracker.addCallFailed(); + } + } + }, + }; + const call = (0, server_interceptors_1.getServerInterceptingCall)([...extraInterceptors, ...this.interceptors], stream, headers, callEventTracker, handler, this.options); + if (!this._runHandlerForCall(call, handler)) { + this.callTracker.addCallFailed(); + channelzSessionInfo === null || channelzSessionInfo === void 0 ? void 0 : channelzSessionInfo.streamTracker.addCallFailed(); + call.sendStatus({ + code: constants_1.Status.INTERNAL, + details: `Unknown handler type: ${handler.type}`, + }); + } + } + _streamHandler(extraInterceptors, stream, headers) { + stream.once('error', (err) => { + /* We need an error handler to avoid uncaught error event exceptions, but + * there is nothing we can reasonably do here. Any error event should + * have a corresponding close event, which handles emitting the cancelled + * event. And the stream is now in a bad state, so we can't reasonably + * expect to be able to send an error over it. */ + }); + // for handling idle timeout + this.onStreamOpened(stream); + if (this._verifyContentType(stream, headers) !== true) { + return; + } + const path = headers[HTTP2_HEADER_PATH]; + const handler = this._retrieveHandler(path); + if (!handler) { + this._respondWithError(getUnimplementedStatusResponse(path), stream, null); + return; + } + const call = (0, server_interceptors_1.getServerInterceptingCall)([...extraInterceptors, ...this.interceptors], stream, headers, null, handler, this.options); + if (!this._runHandlerForCall(call, handler)) { + call.sendStatus({ + code: constants_1.Status.INTERNAL, + details: `Unknown handler type: ${handler.type}`, + }); + } + } + _runHandlerForCall(call, handler) { + const { type } = handler; + if (type === 'unary') { + handleUnary(call, handler); + } + else if (type === 'clientStream') { + handleClientStreaming(call, handler); + } + else if (type === 'serverStream') { + handleServerStreaming(call, handler); + } + else if (type === 'bidi') { + handleBidiStreaming(call, handler); + } + else { + return false; + } + return true; + } + _setupHandlers(http2Server, extraInterceptors) { + if (http2Server === null) { + return; + } + const serverAddress = http2Server.address(); + let serverAddressString = 'null'; + if (serverAddress) { + if (typeof serverAddress === 'string') { + serverAddressString = serverAddress; + } + else { + serverAddressString = serverAddress.address + ':' + serverAddress.port; + } + } + this.serverAddressString = serverAddressString; + const handler = this.channelzEnabled + ? this._channelzHandler + : this._streamHandler; + const sessionHandler = this.channelzEnabled + ? this._channelzSessionHandler(http2Server) + : this._sessionHandler(http2Server); + http2Server.on('stream', handler.bind(this, extraInterceptors)); + http2Server.on('session', sessionHandler); + } + _sessionHandler(http2Server) { + return (session) => { + var _b, _c; + (_b = this.http2Servers.get(http2Server)) === null || _b === void 0 ? void 0 : _b.sessions.add(session); + let connectionAgeTimer = null; + let connectionAgeGraceTimer = null; + let keepaliveTimer = null; + let sessionClosedByServer = false; + const idleTimeoutObj = this.enableIdleTimeout(session); + if (this.maxConnectionAgeMs !== UNLIMITED_CONNECTION_AGE_MS) { + // Apply a random jitter within a +/-10% range + const jitterMagnitude = this.maxConnectionAgeMs / 10; + const jitter = Math.random() * jitterMagnitude * 2 - jitterMagnitude; + connectionAgeTimer = setTimeout(() => { + var _b, _c; + sessionClosedByServer = true; + this.trace('Connection dropped by max connection age: ' + + ((_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress)); + try { + session.goaway(http2.constants.NGHTTP2_NO_ERROR, ~(1 << 31), kMaxAge); + } + catch (e) { + // The goaway can't be sent because the session is already closed + session.destroy(); + return; + } + session.close(); + /* Allow a grace period after sending the GOAWAY before forcibly + * closing the connection. */ + if (this.maxConnectionAgeGraceMs !== UNLIMITED_CONNECTION_AGE_MS) { + connectionAgeGraceTimer = setTimeout(() => { + session.destroy(); + }, this.maxConnectionAgeGraceMs); + (_c = connectionAgeGraceTimer.unref) === null || _c === void 0 ? void 0 : _c.call(connectionAgeGraceTimer); + } + }, this.maxConnectionAgeMs + jitter); + (_c = connectionAgeTimer.unref) === null || _c === void 0 ? void 0 : _c.call(connectionAgeTimer); + } + const clearKeepaliveTimeout = () => { + if (keepaliveTimer) { + clearTimeout(keepaliveTimer); + keepaliveTimer = null; + } + }; + const canSendPing = () => { + return (!session.destroyed && + this.keepaliveTimeMs < KEEPALIVE_MAX_TIME_MS && + this.keepaliveTimeMs > 0); + }; + /* eslint-disable-next-line prefer-const */ + let sendPing; // hoisted for use in maybeStartKeepalivePingTimer + const maybeStartKeepalivePingTimer = () => { + var _b; + if (!canSendPing()) { + return; + } + this.keepaliveTrace('Starting keepalive timer for ' + this.keepaliveTimeMs + 'ms'); + keepaliveTimer = setTimeout(() => { + clearKeepaliveTimeout(); + sendPing(); + }, this.keepaliveTimeMs); + (_b = keepaliveTimer.unref) === null || _b === void 0 ? void 0 : _b.call(keepaliveTimer); + }; + sendPing = () => { + var _b; + if (!canSendPing()) { + return; + } + this.keepaliveTrace('Sending ping with timeout ' + this.keepaliveTimeoutMs + 'ms'); + let pingSendError = ''; + try { + const pingSentSuccessfully = session.ping((err, duration, payload) => { + clearKeepaliveTimeout(); + if (err) { + this.keepaliveTrace('Ping failed with error: ' + err.message); + sessionClosedByServer = true; + session.destroy(); + } + else { + this.keepaliveTrace('Received ping response'); + maybeStartKeepalivePingTimer(); + } + }); + if (!pingSentSuccessfully) { + pingSendError = 'Ping returned false'; + } + } + catch (e) { + // grpc/grpc-node#2139 + pingSendError = + (e instanceof Error ? e.message : '') || 'Unknown error'; + } + if (pingSendError) { + this.keepaliveTrace('Ping send failed: ' + pingSendError); + this.trace('Connection dropped due to ping send error: ' + pingSendError); + sessionClosedByServer = true; + session.destroy(); + return; + } + keepaliveTimer = setTimeout(() => { + clearKeepaliveTimeout(); + this.keepaliveTrace('Ping timeout passed without response'); + this.trace('Connection dropped by keepalive timeout'); + sessionClosedByServer = true; + session.destroy(); + }, this.keepaliveTimeoutMs); + (_b = keepaliveTimer.unref) === null || _b === void 0 ? void 0 : _b.call(keepaliveTimer); + }; + maybeStartKeepalivePingTimer(); + session.on('close', () => { + var _b, _c; + if (!sessionClosedByServer) { + this.trace(`Connection dropped by client ${(_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress}`); + } + if (connectionAgeTimer) { + clearTimeout(connectionAgeTimer); + } + if (connectionAgeGraceTimer) { + clearTimeout(connectionAgeGraceTimer); + } + clearKeepaliveTimeout(); + if (idleTimeoutObj !== null) { + clearTimeout(idleTimeoutObj.timeout); + this.sessionIdleTimeouts.delete(session); + } + (_c = this.http2Servers.get(http2Server)) === null || _c === void 0 ? void 0 : _c.sessions.delete(session); + }); + }; + } + _channelzSessionHandler(http2Server) { + return (session) => { + var _b, _c, _d, _e; + const channelzRef = (0, channelz_1.registerChannelzSocket)((_c = (_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress) !== null && _c !== void 0 ? _c : 'unknown', this.getChannelzSessionInfo.bind(this, session), this.channelzEnabled); + const channelzSessionInfo = { + ref: channelzRef, + streamTracker: new channelz_1.ChannelzCallTracker(), + messagesSent: 0, + messagesReceived: 0, + keepAlivesSent: 0, + lastMessageSentTimestamp: null, + lastMessageReceivedTimestamp: null, + }; + (_d = this.http2Servers.get(http2Server)) === null || _d === void 0 ? void 0 : _d.sessions.add(session); + this.sessions.set(session, channelzSessionInfo); + const clientAddress = `${session.socket.remoteAddress}:${session.socket.remotePort}`; + this.channelzTrace.addTrace('CT_INFO', 'Connection established by client ' + clientAddress); + this.trace('Connection established by client ' + clientAddress); + this.sessionChildrenTracker.refChild(channelzRef); + let connectionAgeTimer = null; + let connectionAgeGraceTimer = null; + let keepaliveTimeout = null; + let sessionClosedByServer = false; + const idleTimeoutObj = this.enableIdleTimeout(session); + if (this.maxConnectionAgeMs !== UNLIMITED_CONNECTION_AGE_MS) { + // Apply a random jitter within a +/-10% range + const jitterMagnitude = this.maxConnectionAgeMs / 10; + const jitter = Math.random() * jitterMagnitude * 2 - jitterMagnitude; + connectionAgeTimer = setTimeout(() => { + var _b; + sessionClosedByServer = true; + this.channelzTrace.addTrace('CT_INFO', 'Connection dropped by max connection age from ' + clientAddress); + try { + session.goaway(http2.constants.NGHTTP2_NO_ERROR, ~(1 << 31), kMaxAge); + } + catch (e) { + // The goaway can't be sent because the session is already closed + session.destroy(); + return; + } + session.close(); + /* Allow a grace period after sending the GOAWAY before forcibly + * closing the connection. */ + if (this.maxConnectionAgeGraceMs !== UNLIMITED_CONNECTION_AGE_MS) { + connectionAgeGraceTimer = setTimeout(() => { + session.destroy(); + }, this.maxConnectionAgeGraceMs); + (_b = connectionAgeGraceTimer.unref) === null || _b === void 0 ? void 0 : _b.call(connectionAgeGraceTimer); + } + }, this.maxConnectionAgeMs + jitter); + (_e = connectionAgeTimer.unref) === null || _e === void 0 ? void 0 : _e.call(connectionAgeTimer); + } + const clearKeepaliveTimeout = () => { + if (keepaliveTimeout) { + clearTimeout(keepaliveTimeout); + keepaliveTimeout = null; + } + }; + const canSendPing = () => { + return (!session.destroyed && + this.keepaliveTimeMs < KEEPALIVE_MAX_TIME_MS && + this.keepaliveTimeMs > 0); + }; + /* eslint-disable-next-line prefer-const */ + let sendPing; // hoisted for use in maybeStartKeepalivePingTimer + const maybeStartKeepalivePingTimer = () => { + var _b; + if (!canSendPing()) { + return; + } + this.keepaliveTrace('Starting keepalive timer for ' + this.keepaliveTimeMs + 'ms'); + keepaliveTimeout = setTimeout(() => { + clearKeepaliveTimeout(); + sendPing(); + }, this.keepaliveTimeMs); + (_b = keepaliveTimeout.unref) === null || _b === void 0 ? void 0 : _b.call(keepaliveTimeout); + }; + sendPing = () => { + var _b; + if (!canSendPing()) { + return; + } + this.keepaliveTrace('Sending ping with timeout ' + this.keepaliveTimeoutMs + 'ms'); + let pingSendError = ''; + try { + const pingSentSuccessfully = session.ping((err, duration, payload) => { + clearKeepaliveTimeout(); + if (err) { + this.keepaliveTrace('Ping failed with error: ' + err.message); + this.channelzTrace.addTrace('CT_INFO', 'Connection dropped due to error of a ping frame ' + + err.message + + ' return in ' + + duration); + sessionClosedByServer = true; + session.destroy(); + } + else { + this.keepaliveTrace('Received ping response'); + maybeStartKeepalivePingTimer(); + } + }); + if (!pingSentSuccessfully) { + pingSendError = 'Ping returned false'; + } + } + catch (e) { + // grpc/grpc-node#2139 + pingSendError = + (e instanceof Error ? e.message : '') || 'Unknown error'; + } + if (pingSendError) { + this.keepaliveTrace('Ping send failed: ' + pingSendError); + this.channelzTrace.addTrace('CT_INFO', 'Connection dropped due to ping send error: ' + pingSendError); + sessionClosedByServer = true; + session.destroy(); + return; + } + channelzSessionInfo.keepAlivesSent += 1; + keepaliveTimeout = setTimeout(() => { + clearKeepaliveTimeout(); + this.keepaliveTrace('Ping timeout passed without response'); + this.channelzTrace.addTrace('CT_INFO', 'Connection dropped by keepalive timeout from ' + clientAddress); + sessionClosedByServer = true; + session.destroy(); + }, this.keepaliveTimeoutMs); + (_b = keepaliveTimeout.unref) === null || _b === void 0 ? void 0 : _b.call(keepaliveTimeout); + }; + maybeStartKeepalivePingTimer(); + session.on('close', () => { + var _b; + if (!sessionClosedByServer) { + this.channelzTrace.addTrace('CT_INFO', 'Connection dropped by client ' + clientAddress); + } + this.sessionChildrenTracker.unrefChild(channelzRef); + (0, channelz_1.unregisterChannelzRef)(channelzRef); + if (connectionAgeTimer) { + clearTimeout(connectionAgeTimer); + } + if (connectionAgeGraceTimer) { + clearTimeout(connectionAgeGraceTimer); + } + clearKeepaliveTimeout(); + if (idleTimeoutObj !== null) { + clearTimeout(idleTimeoutObj.timeout); + this.sessionIdleTimeouts.delete(session); + } + (_b = this.http2Servers.get(http2Server)) === null || _b === void 0 ? void 0 : _b.sessions.delete(session); + this.sessions.delete(session); + }); + }; + } + enableIdleTimeout(session) { + var _b, _c; + if (this.sessionIdleTimeout >= MAX_CONNECTION_IDLE_MS) { + return null; + } + const idleTimeoutObj = { + activeStreams: 0, + lastIdle: Date.now(), + onClose: this.onStreamClose.bind(this, session), + timeout: setTimeout(this.onIdleTimeout, this.sessionIdleTimeout, this, session), + }; + (_c = (_b = idleTimeoutObj.timeout).unref) === null || _c === void 0 ? void 0 : _c.call(_b); + this.sessionIdleTimeouts.set(session, idleTimeoutObj); + const { socket } = session; + this.trace('Enable idle timeout for ' + + socket.remoteAddress + + ':' + + socket.remotePort); + return idleTimeoutObj; + } + onIdleTimeout(ctx, session) { + const { socket } = session; + const sessionInfo = ctx.sessionIdleTimeouts.get(session); + // if it is called while we have activeStreams - timer will not be rescheduled + // until last active stream is closed, then it will call .refresh() on the timer + // important part is to not clearTimeout(timer) or it becomes unusable + // for future refreshes + if (sessionInfo !== undefined && + sessionInfo.activeStreams === 0) { + if (Date.now() - sessionInfo.lastIdle >= ctx.sessionIdleTimeout) { + ctx.trace('Session idle timeout triggered for ' + + (socket === null || socket === void 0 ? void 0 : socket.remoteAddress) + + ':' + + (socket === null || socket === void 0 ? void 0 : socket.remotePort) + + ' last idle at ' + + sessionInfo.lastIdle); + ctx.closeSession(session); + } + else { + sessionInfo.timeout.refresh(); + } + } + } + onStreamOpened(stream) { + const session = stream.session; + const idleTimeoutObj = this.sessionIdleTimeouts.get(session); + if (idleTimeoutObj) { + idleTimeoutObj.activeStreams += 1; + stream.once('close', idleTimeoutObj.onClose); + } + } + onStreamClose(session) { + var _b, _c; + const idleTimeoutObj = this.sessionIdleTimeouts.get(session); + if (idleTimeoutObj) { + idleTimeoutObj.activeStreams -= 1; + if (idleTimeoutObj.activeStreams === 0) { + idleTimeoutObj.lastIdle = Date.now(); + idleTimeoutObj.timeout.refresh(); + this.trace('Session onStreamClose' + + ((_b = session.socket) === null || _b === void 0 ? void 0 : _b.remoteAddress) + + ':' + + ((_c = session.socket) === null || _c === void 0 ? void 0 : _c.remotePort) + + ' at ' + + idleTimeoutObj.lastIdle); + } + } + } + }, + (() => { + const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0; + _start_decorators = [deprecate('Calling start() is no longer necessary. It can be safely omitted.')]; + __esDecorate(_a, null, _start_decorators, { kind: "method", name: "start", static: false, private: false, access: { has: obj => "start" in obj, get: obj => obj.start }, metadata: _metadata }, null, _instanceExtraInitializers); + if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata }); + })(), + _a; +})(); +exports.Server = Server; +async function handleUnary(call, handler) { + let stream; + function respond(err, value, trailer, flags) { + if (err) { + call.sendStatus((0, server_call_1.serverErrorToStatus)(err, trailer)); + return; + } + call.sendMessage(value, () => { + call.sendStatus({ + code: constants_1.Status.OK, + details: 'OK', + metadata: trailer !== null && trailer !== void 0 ? trailer : null, + }); + }); + } + let requestMetadata; + let requestMessage = null; + call.start({ + onReceiveMetadata(metadata) { + requestMetadata = metadata; + call.startRead(); + }, + onReceiveMessage(message) { + if (requestMessage) { + call.sendStatus({ + code: constants_1.Status.UNIMPLEMENTED, + details: `Received a second request message for server streaming method ${handler.path}`, + metadata: null, + }); + return; + } + requestMessage = message; + call.startRead(); + }, + onReceiveHalfClose() { + if (!requestMessage) { + call.sendStatus({ + code: constants_1.Status.UNIMPLEMENTED, + details: `Received no request message for server streaming method ${handler.path}`, + metadata: null, + }); + return; + } + stream = new server_call_1.ServerWritableStreamImpl(handler.path, call, requestMetadata, requestMessage); + try { + handler.func(stream, respond); + } + catch (err) { + call.sendStatus({ + code: constants_1.Status.UNKNOWN, + details: `Server method handler threw error ${err.message}`, + metadata: null, + }); + } + }, + onCancel() { + if (stream) { + stream.cancelled = true; + stream.emit('cancelled', 'cancelled'); + } + }, + }); +} +function handleClientStreaming(call, handler) { + let stream; + function respond(err, value, trailer, flags) { + if (err) { + call.sendStatus((0, server_call_1.serverErrorToStatus)(err, trailer)); + return; + } + call.sendMessage(value, () => { + call.sendStatus({ + code: constants_1.Status.OK, + details: 'OK', + metadata: trailer !== null && trailer !== void 0 ? trailer : null, + }); + }); + } + call.start({ + onReceiveMetadata(metadata) { + stream = new server_call_1.ServerDuplexStreamImpl(handler.path, call, metadata); + try { + handler.func(stream, respond); + } + catch (err) { + call.sendStatus({ + code: constants_1.Status.UNKNOWN, + details: `Server method handler threw error ${err.message}`, + metadata: null, + }); + } + }, + onReceiveMessage(message) { + stream.push(message); + }, + onReceiveHalfClose() { + stream.push(null); + }, + onCancel() { + if (stream) { + stream.cancelled = true; + stream.emit('cancelled', 'cancelled'); + stream.destroy(); + } + }, + }); +} +function handleServerStreaming(call, handler) { + let stream; + let requestMetadata; + let requestMessage = null; + call.start({ + onReceiveMetadata(metadata) { + requestMetadata = metadata; + call.startRead(); + }, + onReceiveMessage(message) { + if (requestMessage) { + call.sendStatus({ + code: constants_1.Status.UNIMPLEMENTED, + details: `Received a second request message for server streaming method ${handler.path}`, + metadata: null, + }); + return; + } + requestMessage = message; + call.startRead(); + }, + onReceiveHalfClose() { + if (!requestMessage) { + call.sendStatus({ + code: constants_1.Status.UNIMPLEMENTED, + details: `Received no request message for server streaming method ${handler.path}`, + metadata: null, + }); + return; + } + stream = new server_call_1.ServerWritableStreamImpl(handler.path, call, requestMetadata, requestMessage); + try { + handler.func(stream); + } + catch (err) { + call.sendStatus({ + code: constants_1.Status.UNKNOWN, + details: `Server method handler threw error ${err.message}`, + metadata: null, + }); + } + }, + onCancel() { + if (stream) { + stream.cancelled = true; + stream.emit('cancelled', 'cancelled'); + stream.destroy(); + } + }, + }); +} +function handleBidiStreaming(call, handler) { + let stream; + call.start({ + onReceiveMetadata(metadata) { + stream = new server_call_1.ServerDuplexStreamImpl(handler.path, call, metadata); + try { + handler.func(stream); + } + catch (err) { + call.sendStatus({ + code: constants_1.Status.UNKNOWN, + details: `Server method handler threw error ${err.message}`, + metadata: null, + }); + } + }, + onReceiveMessage(message) { + stream.push(message); + }, + onReceiveHalfClose() { + stream.push(null); + }, + onCancel() { + if (stream) { + stream.cancelled = true; + stream.emit('cancelled', 'cancelled'); + stream.destroy(); + } + }, + }); +} +//# sourceMappingURL=server.js.map + +/***/ }), + +/***/ 70005: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.validateRetryThrottling = validateRetryThrottling; +exports.validateServiceConfig = validateServiceConfig; +exports.extractAndSelectServiceConfig = extractAndSelectServiceConfig; +/* This file implements gRFC A2 and the service config spec: + * https://github.com/grpc/proposal/blob/master/A2-service-configs-in-dns.md + * https://github.com/grpc/grpc/blob/master/doc/service_config.md. Each + * function here takes an object with unknown structure and returns its + * specific object type if the input has the right structure, and throws an + * error otherwise. */ +/* The any type is purposely used here. All functions validate their input at + * runtime */ +/* eslint-disable @typescript-eslint/no-explicit-any */ +const os = __nccwpck_require__(70857); +const constants_1 = __nccwpck_require__(68288); +/** + * Recognizes a number with up to 9 digits after the decimal point, followed by + * an "s", representing a number of seconds. + */ +const DURATION_REGEX = /^\d+(\.\d{1,9})?s$/; +/** + * Client language name used for determining whether this client matches a + * `ServiceConfigCanaryConfig`'s `clientLanguage` list. + */ +const CLIENT_LANGUAGE_STRING = 'node'; +function validateName(obj) { + // In this context, and unset field and '' are considered the same + if ('service' in obj && obj.service !== '') { + if (typeof obj.service !== 'string') { + throw new Error(`Invalid method config name: invalid service: expected type string, got ${typeof obj.service}`); + } + if ('method' in obj && obj.method !== '') { + if (typeof obj.method !== 'string') { + throw new Error(`Invalid method config name: invalid method: expected type string, got ${typeof obj.service}`); + } + return { + service: obj.service, + method: obj.method, + }; + } + else { + return { + service: obj.service, + }; + } + } + else { + if ('method' in obj && obj.method !== undefined) { + throw new Error(`Invalid method config name: method set with empty or unset service`); + } + return {}; + } +} +function validateRetryPolicy(obj) { + if (!('maxAttempts' in obj) || + !Number.isInteger(obj.maxAttempts) || + obj.maxAttempts < 2) { + throw new Error('Invalid method config retry policy: maxAttempts must be an integer at least 2'); + } + if (!('initialBackoff' in obj) || + typeof obj.initialBackoff !== 'string' || + !DURATION_REGEX.test(obj.initialBackoff)) { + throw new Error('Invalid method config retry policy: initialBackoff must be a string consisting of a positive integer or decimal followed by s'); + } + if (!('maxBackoff' in obj) || + typeof obj.maxBackoff !== 'string' || + !DURATION_REGEX.test(obj.maxBackoff)) { + throw new Error('Invalid method config retry policy: maxBackoff must be a string consisting of a positive integer or decimal followed by s'); + } + if (!('backoffMultiplier' in obj) || + typeof obj.backoffMultiplier !== 'number' || + obj.backoffMultiplier <= 0) { + throw new Error('Invalid method config retry policy: backoffMultiplier must be a number greater than 0'); + } + if (!('retryableStatusCodes' in obj && Array.isArray(obj.retryableStatusCodes))) { + throw new Error('Invalid method config retry policy: retryableStatusCodes is required'); + } + if (obj.retryableStatusCodes.length === 0) { + throw new Error('Invalid method config retry policy: retryableStatusCodes must be non-empty'); + } + for (const value of obj.retryableStatusCodes) { + if (typeof value === 'number') { + if (!Object.values(constants_1.Status).includes(value)) { + throw new Error('Invalid method config retry policy: retryableStatusCodes value not in status code range'); + } + } + else if (typeof value === 'string') { + if (!Object.values(constants_1.Status).includes(value.toUpperCase())) { + throw new Error('Invalid method config retry policy: retryableStatusCodes value not a status code name'); + } + } + else { + throw new Error('Invalid method config retry policy: retryableStatusCodes value must be a string or number'); + } + } + return { + maxAttempts: obj.maxAttempts, + initialBackoff: obj.initialBackoff, + maxBackoff: obj.maxBackoff, + backoffMultiplier: obj.backoffMultiplier, + retryableStatusCodes: obj.retryableStatusCodes, + }; +} +function validateHedgingPolicy(obj) { + if (!('maxAttempts' in obj) || + !Number.isInteger(obj.maxAttempts) || + obj.maxAttempts < 2) { + throw new Error('Invalid method config hedging policy: maxAttempts must be an integer at least 2'); + } + if ('hedgingDelay' in obj && + (typeof obj.hedgingDelay !== 'string' || + !DURATION_REGEX.test(obj.hedgingDelay))) { + throw new Error('Invalid method config hedging policy: hedgingDelay must be a string consisting of a positive integer followed by s'); + } + if ('nonFatalStatusCodes' in obj && Array.isArray(obj.nonFatalStatusCodes)) { + for (const value of obj.nonFatalStatusCodes) { + if (typeof value === 'number') { + if (!Object.values(constants_1.Status).includes(value)) { + throw new Error('Invalid method config hedging policy: nonFatalStatusCodes value not in status code range'); + } + } + else if (typeof value === 'string') { + if (!Object.values(constants_1.Status).includes(value.toUpperCase())) { + throw new Error('Invalid method config hedging policy: nonFatalStatusCodes value not a status code name'); + } + } + else { + throw new Error('Invalid method config hedging policy: nonFatalStatusCodes value must be a string or number'); + } + } + } + const result = { + maxAttempts: obj.maxAttempts, + }; + if (obj.hedgingDelay) { + result.hedgingDelay = obj.hedgingDelay; + } + if (obj.nonFatalStatusCodes) { + result.nonFatalStatusCodes = obj.nonFatalStatusCodes; + } + return result; +} +function validateMethodConfig(obj) { + var _a; + const result = { + name: [], + }; + if (!('name' in obj) || !Array.isArray(obj.name)) { + throw new Error('Invalid method config: invalid name array'); + } + for (const name of obj.name) { + result.name.push(validateName(name)); + } + if ('waitForReady' in obj) { + if (typeof obj.waitForReady !== 'boolean') { + throw new Error('Invalid method config: invalid waitForReady'); + } + result.waitForReady = obj.waitForReady; + } + if ('timeout' in obj) { + if (typeof obj.timeout === 'object') { + if (!('seconds' in obj.timeout) || + !(typeof obj.timeout.seconds === 'number')) { + throw new Error('Invalid method config: invalid timeout.seconds'); + } + if (!('nanos' in obj.timeout) || + !(typeof obj.timeout.nanos === 'number')) { + throw new Error('Invalid method config: invalid timeout.nanos'); + } + result.timeout = obj.timeout; + } + else if (typeof obj.timeout === 'string' && + DURATION_REGEX.test(obj.timeout)) { + const timeoutParts = obj.timeout + .substring(0, obj.timeout.length - 1) + .split('.'); + result.timeout = { + seconds: timeoutParts[0] | 0, + nanos: ((_a = timeoutParts[1]) !== null && _a !== void 0 ? _a : 0) | 0, + }; + } + else { + throw new Error('Invalid method config: invalid timeout'); + } + } + if ('maxRequestBytes' in obj) { + if (typeof obj.maxRequestBytes !== 'number') { + throw new Error('Invalid method config: invalid maxRequestBytes'); + } + result.maxRequestBytes = obj.maxRequestBytes; + } + if ('maxResponseBytes' in obj) { + if (typeof obj.maxResponseBytes !== 'number') { + throw new Error('Invalid method config: invalid maxRequestBytes'); + } + result.maxResponseBytes = obj.maxResponseBytes; + } + if ('retryPolicy' in obj) { + if ('hedgingPolicy' in obj) { + throw new Error('Invalid method config: retryPolicy and hedgingPolicy cannot both be specified'); + } + else { + result.retryPolicy = validateRetryPolicy(obj.retryPolicy); + } + } + else if ('hedgingPolicy' in obj) { + result.hedgingPolicy = validateHedgingPolicy(obj.hedgingPolicy); + } + return result; +} +function validateRetryThrottling(obj) { + if (!('maxTokens' in obj) || + typeof obj.maxTokens !== 'number' || + obj.maxTokens <= 0 || + obj.maxTokens > 1000) { + throw new Error('Invalid retryThrottling: maxTokens must be a number in (0, 1000]'); + } + if (!('tokenRatio' in obj) || + typeof obj.tokenRatio !== 'number' || + obj.tokenRatio <= 0) { + throw new Error('Invalid retryThrottling: tokenRatio must be a number greater than 0'); + } + return { + maxTokens: +obj.maxTokens.toFixed(3), + tokenRatio: +obj.tokenRatio.toFixed(3), + }; +} +function validateLoadBalancingConfig(obj) { + if (!(typeof obj === 'object' && obj !== null)) { + throw new Error(`Invalid loadBalancingConfig: unexpected type ${typeof obj}`); + } + const keys = Object.keys(obj); + if (keys.length > 1) { + throw new Error(`Invalid loadBalancingConfig: unexpected multiple keys ${keys}`); + } + if (keys.length === 0) { + throw new Error('Invalid loadBalancingConfig: load balancing policy name required'); + } + return { + [keys[0]]: obj[keys[0]], + }; +} +function validateServiceConfig(obj) { + const result = { + loadBalancingConfig: [], + methodConfig: [], + }; + if ('loadBalancingPolicy' in obj) { + if (typeof obj.loadBalancingPolicy === 'string') { + result.loadBalancingPolicy = obj.loadBalancingPolicy; + } + else { + throw new Error('Invalid service config: invalid loadBalancingPolicy'); + } + } + if ('loadBalancingConfig' in obj) { + if (Array.isArray(obj.loadBalancingConfig)) { + for (const config of obj.loadBalancingConfig) { + result.loadBalancingConfig.push(validateLoadBalancingConfig(config)); + } + } + else { + throw new Error('Invalid service config: invalid loadBalancingConfig'); + } + } + if ('methodConfig' in obj) { + if (Array.isArray(obj.methodConfig)) { + for (const methodConfig of obj.methodConfig) { + result.methodConfig.push(validateMethodConfig(methodConfig)); + } + } + } + if ('retryThrottling' in obj) { + result.retryThrottling = validateRetryThrottling(obj.retryThrottling); + } + // Validate method name uniqueness + const seenMethodNames = []; + for (const methodConfig of result.methodConfig) { + for (const name of methodConfig.name) { + for (const seenName of seenMethodNames) { + if (name.service === seenName.service && + name.method === seenName.method) { + throw new Error(`Invalid service config: duplicate name ${name.service}/${name.method}`); + } + } + seenMethodNames.push(name); + } + } + return result; +} +function validateCanaryConfig(obj) { + if (!('serviceConfig' in obj)) { + throw new Error('Invalid service config choice: missing service config'); + } + const result = { + serviceConfig: validateServiceConfig(obj.serviceConfig), + }; + if ('clientLanguage' in obj) { + if (Array.isArray(obj.clientLanguage)) { + result.clientLanguage = []; + for (const lang of obj.clientLanguage) { + if (typeof lang === 'string') { + result.clientLanguage.push(lang); + } + else { + throw new Error('Invalid service config choice: invalid clientLanguage'); + } + } + } + else { + throw new Error('Invalid service config choice: invalid clientLanguage'); + } + } + if ('clientHostname' in obj) { + if (Array.isArray(obj.clientHostname)) { + result.clientHostname = []; + for (const lang of obj.clientHostname) { + if (typeof lang === 'string') { + result.clientHostname.push(lang); + } + else { + throw new Error('Invalid service config choice: invalid clientHostname'); + } + } + } + else { + throw new Error('Invalid service config choice: invalid clientHostname'); + } + } + if ('percentage' in obj) { + if (typeof obj.percentage === 'number' && + 0 <= obj.percentage && + obj.percentage <= 100) { + result.percentage = obj.percentage; + } + else { + throw new Error('Invalid service config choice: invalid percentage'); + } + } + // Validate that no unexpected fields are present + const allowedFields = [ + 'clientLanguage', + 'percentage', + 'clientHostname', + 'serviceConfig', + ]; + for (const field in obj) { + if (!allowedFields.includes(field)) { + throw new Error(`Invalid service config choice: unexpected field ${field}`); + } + } + return result; +} +function validateAndSelectCanaryConfig(obj, percentage) { + if (!Array.isArray(obj)) { + throw new Error('Invalid service config list'); + } + for (const config of obj) { + const validatedConfig = validateCanaryConfig(config); + /* For each field, we check if it is present, then only discard the + * config if the field value does not match the current client */ + if (typeof validatedConfig.percentage === 'number' && + percentage > validatedConfig.percentage) { + continue; + } + if (Array.isArray(validatedConfig.clientHostname)) { + let hostnameMatched = false; + for (const hostname of validatedConfig.clientHostname) { + if (hostname === os.hostname()) { + hostnameMatched = true; + } + } + if (!hostnameMatched) { + continue; + } + } + if (Array.isArray(validatedConfig.clientLanguage)) { + let languageMatched = false; + for (const language of validatedConfig.clientLanguage) { + if (language === CLIENT_LANGUAGE_STRING) { + languageMatched = true; + } + } + if (!languageMatched) { + continue; + } + } + return validatedConfig.serviceConfig; + } + throw new Error('No matching service config found'); +} +/** + * Find the "grpc_config" record among the TXT records, parse its value as JSON, validate its contents, + * and select a service config with selection fields that all match this client. Most of these steps + * can fail with an error; the caller must handle any errors thrown this way. + * @param txtRecord The TXT record array that is output from a successful call to dns.resolveTxt + * @param percentage A number chosen from the range [0, 100) that is used to select which config to use + * @return The service configuration to use, given the percentage value, or null if the service config + * data has a valid format but none of the options match the current client. + */ +function extractAndSelectServiceConfig(txtRecord, percentage) { + for (const record of txtRecord) { + if (record.length > 0 && record[0].startsWith('grpc_config=')) { + /* Treat the list of strings in this record as a single string and remove + * "grpc_config=" from the beginning. The rest should be a JSON string */ + const recordString = record.join('').substring('grpc_config='.length); + const recordJson = JSON.parse(recordString); + return validateAndSelectCanaryConfig(recordJson, percentage); + } + } + return null; +} +//# sourceMappingURL=service-config.js.map + +/***/ }), + +/***/ 40701: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2025 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SingleSubchannelChannel = void 0; +const call_number_1 = __nccwpck_require__(35675); +const channelz_1 = __nccwpck_require__(68198); +const compression_filter_1 = __nccwpck_require__(43430); +const connectivity_state_1 = __nccwpck_require__(60778); +const constants_1 = __nccwpck_require__(68288); +const control_plane_status_1 = __nccwpck_require__(39962); +const deadline_1 = __nccwpck_require__(52173); +const filter_stack_1 = __nccwpck_require__(95726); +const metadata_1 = __nccwpck_require__(36100); +const resolver_1 = __nccwpck_require__(76255); +const uri_parser_1 = __nccwpck_require__(56027); +class SubchannelCallWrapper { + constructor(subchannel, method, filterStackFactory, options, callNumber) { + var _a, _b; + this.subchannel = subchannel; + this.method = method; + this.options = options; + this.callNumber = callNumber; + this.childCall = null; + this.pendingMessage = null; + this.readPending = false; + this.halfClosePending = false; + this.pendingStatus = null; + this.readFilterPending = false; + this.writeFilterPending = false; + const splitPath = this.method.split('/'); + let serviceName = ''; + /* The standard path format is "/{serviceName}/{methodName}", so if we split + * by '/', the first item should be empty and the second should be the + * service name */ + if (splitPath.length >= 2) { + serviceName = splitPath[1]; + } + const hostname = (_b = (_a = (0, uri_parser_1.splitHostPort)(this.options.host)) === null || _a === void 0 ? void 0 : _a.host) !== null && _b !== void 0 ? _b : 'localhost'; + /* Currently, call credentials are only allowed on HTTPS connections, so we + * can assume that the scheme is "https" */ + this.serviceUrl = `https://${hostname}/${serviceName}`; + const timeout = (0, deadline_1.getRelativeTimeout)(options.deadline); + if (timeout !== Infinity) { + if (timeout <= 0) { + this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, 'Deadline exceeded'); + } + else { + setTimeout(() => { + this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, 'Deadline exceeded'); + }, timeout); + } + } + this.filterStack = filterStackFactory.createFilter(); + } + cancelWithStatus(status, details) { + if (this.childCall) { + this.childCall.cancelWithStatus(status, details); + } + else { + this.pendingStatus = { + code: status, + details: details, + metadata: new metadata_1.Metadata() + }; + } + } + getPeer() { + var _a, _b; + return (_b = (_a = this.childCall) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : this.subchannel.getAddress(); + } + async start(metadata, listener) { + if (this.pendingStatus) { + listener.onReceiveStatus(this.pendingStatus); + return; + } + if (this.subchannel.getConnectivityState() !== connectivity_state_1.ConnectivityState.READY) { + listener.onReceiveStatus({ + code: constants_1.Status.UNAVAILABLE, + details: 'Subchannel not ready', + metadata: new metadata_1.Metadata() + }); + return; + } + const filteredMetadata = await this.filterStack.sendMetadata(Promise.resolve(metadata)); + let credsMetadata; + try { + credsMetadata = await this.subchannel.getCallCredentials() + .generateMetadata({ method_name: this.method, service_url: this.serviceUrl }); + } + catch (e) { + const error = e; + const { code, details } = (0, control_plane_status_1.restrictControlPlaneStatusCode)(typeof error.code === 'number' ? error.code : constants_1.Status.UNKNOWN, `Getting metadata from plugin failed with error: ${error.message}`); + listener.onReceiveStatus({ + code: code, + details: details, + metadata: new metadata_1.Metadata(), + }); + return; + } + credsMetadata.merge(filteredMetadata); + const childListener = { + onReceiveMetadata: async (metadata) => { + listener.onReceiveMetadata(await this.filterStack.receiveMetadata(metadata)); + }, + onReceiveMessage: async (message) => { + this.readFilterPending = true; + const filteredMessage = await this.filterStack.receiveMessage(message); + this.readFilterPending = false; + listener.onReceiveMessage(filteredMessage); + if (this.pendingStatus) { + listener.onReceiveStatus(this.pendingStatus); + } + }, + onReceiveStatus: async (status) => { + const filteredStatus = await this.filterStack.receiveTrailers(status); + if (this.readFilterPending) { + this.pendingStatus = filteredStatus; + } + else { + listener.onReceiveStatus(filteredStatus); + } + } + }; + this.childCall = this.subchannel.createCall(credsMetadata, this.options.host, this.method, childListener); + if (this.readPending) { + this.childCall.startRead(); + } + if (this.pendingMessage) { + this.childCall.sendMessageWithContext(this.pendingMessage.context, this.pendingMessage.message); + } + if (this.halfClosePending && !this.writeFilterPending) { + this.childCall.halfClose(); + } + } + async sendMessageWithContext(context, message) { + this.writeFilterPending = true; + const filteredMessage = await this.filterStack.sendMessage(Promise.resolve({ message: message, flags: context.flags })); + this.writeFilterPending = false; + if (this.childCall) { + this.childCall.sendMessageWithContext(context, filteredMessage.message); + if (this.halfClosePending) { + this.childCall.halfClose(); + } + } + else { + this.pendingMessage = { context, message: filteredMessage.message }; + } + } + startRead() { + if (this.childCall) { + this.childCall.startRead(); + } + else { + this.readPending = true; + } + } + halfClose() { + if (this.childCall && !this.writeFilterPending) { + this.childCall.halfClose(); + } + else { + this.halfClosePending = true; + } + } + getCallNumber() { + return this.callNumber; + } + setCredentials(credentials) { + throw new Error("Method not implemented."); + } + getAuthContext() { + if (this.childCall) { + return this.childCall.getAuthContext(); + } + else { + return null; + } + } +} +class SingleSubchannelChannel { + constructor(subchannel, target, options) { + this.subchannel = subchannel; + this.target = target; + this.channelzEnabled = false; + this.channelzTrace = new channelz_1.ChannelzTrace(); + this.callTracker = new channelz_1.ChannelzCallTracker(); + this.childrenTracker = new channelz_1.ChannelzChildrenTracker(); + this.channelzEnabled = options['grpc.enable_channelz'] !== 0; + this.channelzRef = (0, channelz_1.registerChannelzChannel)((0, uri_parser_1.uriToString)(target), () => ({ + target: `${(0, uri_parser_1.uriToString)(target)} (${subchannel.getAddress()})`, + state: this.subchannel.getConnectivityState(), + trace: this.channelzTrace, + callTracker: this.callTracker, + children: this.childrenTracker.getChildLists() + }), this.channelzEnabled); + if (this.channelzEnabled) { + this.childrenTracker.refChild(subchannel.getChannelzRef()); + } + this.filterStackFactory = new filter_stack_1.FilterStackFactory([new compression_filter_1.CompressionFilterFactory(this, options)]); + } + close() { + if (this.channelzEnabled) { + this.childrenTracker.unrefChild(this.subchannel.getChannelzRef()); + } + (0, channelz_1.unregisterChannelzRef)(this.channelzRef); + } + getTarget() { + return (0, uri_parser_1.uriToString)(this.target); + } + getConnectivityState(tryToConnect) { + throw new Error("Method not implemented."); + } + watchConnectivityState(currentState, deadline, callback) { + throw new Error("Method not implemented."); + } + getChannelzRef() { + return this.channelzRef; + } + createCall(method, deadline) { + const callOptions = { + deadline: deadline, + host: (0, resolver_1.getDefaultAuthority)(this.target), + flags: constants_1.Propagate.DEFAULTS, + parentCall: null + }; + return new SubchannelCallWrapper(this.subchannel, method, this.filterStackFactory, callOptions, (0, call_number_1.getNextCallNumber)()); + } +} +exports.SingleSubchannelChannel = SingleSubchannelChannel; +//# sourceMappingURL=single-subchannel-channel.js.map + +/***/ }), + +/***/ 7901: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StatusBuilder = void 0; +/** + * A builder for gRPC status objects. + */ +class StatusBuilder { + constructor() { + this.code = null; + this.details = null; + this.metadata = null; + } + /** + * Adds a status code to the builder. + */ + withCode(code) { + this.code = code; + return this; + } + /** + * Adds details to the builder. + */ + withDetails(details) { + this.details = details; + return this; + } + /** + * Adds metadata to the builder. + */ + withMetadata(metadata) { + this.metadata = metadata; + return this; + } + /** + * Builds the status object. + */ + build() { + const status = {}; + if (this.code !== null) { + status.code = this.code; + } + if (this.details !== null) { + status.details = this.details; + } + if (this.metadata !== null) { + status.metadata = this.metadata; + } + return status; + } +} +exports.StatusBuilder = StatusBuilder; +//# sourceMappingURL=status-builder.js.map + +/***/ }), + +/***/ 47956: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StreamDecoder = void 0; +var ReadState; +(function (ReadState) { + ReadState[ReadState["NO_DATA"] = 0] = "NO_DATA"; + ReadState[ReadState["READING_SIZE"] = 1] = "READING_SIZE"; + ReadState[ReadState["READING_MESSAGE"] = 2] = "READING_MESSAGE"; +})(ReadState || (ReadState = {})); +class StreamDecoder { + constructor(maxReadMessageLength) { + this.maxReadMessageLength = maxReadMessageLength; + this.readState = ReadState.NO_DATA; + this.readCompressFlag = Buffer.alloc(1); + this.readPartialSize = Buffer.alloc(4); + this.readSizeRemaining = 4; + this.readMessageSize = 0; + this.readPartialMessage = []; + this.readMessageRemaining = 0; + } + write(data) { + let readHead = 0; + let toRead; + const result = []; + while (readHead < data.length) { + switch (this.readState) { + case ReadState.NO_DATA: + this.readCompressFlag = data.slice(readHead, readHead + 1); + readHead += 1; + this.readState = ReadState.READING_SIZE; + this.readPartialSize.fill(0); + this.readSizeRemaining = 4; + this.readMessageSize = 0; + this.readMessageRemaining = 0; + this.readPartialMessage = []; + break; + case ReadState.READING_SIZE: + toRead = Math.min(data.length - readHead, this.readSizeRemaining); + data.copy(this.readPartialSize, 4 - this.readSizeRemaining, readHead, readHead + toRead); + this.readSizeRemaining -= toRead; + readHead += toRead; + // readSizeRemaining >=0 here + if (this.readSizeRemaining === 0) { + this.readMessageSize = this.readPartialSize.readUInt32BE(0); + if (this.maxReadMessageLength !== -1 && this.readMessageSize > this.maxReadMessageLength) { + throw new Error(`Received message larger than max (${this.readMessageSize} vs ${this.maxReadMessageLength})`); + } + this.readMessageRemaining = this.readMessageSize; + if (this.readMessageRemaining > 0) { + this.readState = ReadState.READING_MESSAGE; + } + else { + const message = Buffer.concat([this.readCompressFlag, this.readPartialSize], 5); + this.readState = ReadState.NO_DATA; + result.push(message); + } + } + break; + case ReadState.READING_MESSAGE: + toRead = Math.min(data.length - readHead, this.readMessageRemaining); + this.readPartialMessage.push(data.slice(readHead, readHead + toRead)); + this.readMessageRemaining -= toRead; + readHead += toRead; + // readMessageRemaining >=0 here + if (this.readMessageRemaining === 0) { + // At this point, we have read a full message + const framedMessageBuffers = [ + this.readCompressFlag, + this.readPartialSize, + ].concat(this.readPartialMessage); + const framedMessage = Buffer.concat(framedMessageBuffers, this.readMessageSize + 5); + this.readState = ReadState.NO_DATA; + result.push(framedMessage); + } + break; + default: + throw new Error('Unexpected read state'); + } + } + return result; + } +} +exports.StreamDecoder = StreamDecoder; +//# sourceMappingURL=stream-decoder.js.map + +/***/ }), + +/***/ 97021: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2021 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.EndpointMap = void 0; +exports.isTcpSubchannelAddress = isTcpSubchannelAddress; +exports.subchannelAddressEqual = subchannelAddressEqual; +exports.subchannelAddressToString = subchannelAddressToString; +exports.stringToSubchannelAddress = stringToSubchannelAddress; +exports.endpointEqual = endpointEqual; +exports.endpointToString = endpointToString; +exports.endpointHasAddress = endpointHasAddress; +const net_1 = __nccwpck_require__(69278); +function isTcpSubchannelAddress(address) { + return 'port' in address; +} +function subchannelAddressEqual(address1, address2) { + if (!address1 && !address2) { + return true; + } + if (!address1 || !address2) { + return false; + } + if (isTcpSubchannelAddress(address1)) { + return (isTcpSubchannelAddress(address2) && + address1.host === address2.host && + address1.port === address2.port); + } + else { + return !isTcpSubchannelAddress(address2) && address1.path === address2.path; + } +} +function subchannelAddressToString(address) { + if (isTcpSubchannelAddress(address)) { + if ((0, net_1.isIPv6)(address.host)) { + return '[' + address.host + ']:' + address.port; + } + else { + return address.host + ':' + address.port; + } + } + else { + return address.path; + } +} +const DEFAULT_PORT = 443; +function stringToSubchannelAddress(addressString, port) { + if ((0, net_1.isIP)(addressString)) { + return { + host: addressString, + port: port !== null && port !== void 0 ? port : DEFAULT_PORT, + }; + } + else { + return { + path: addressString, + }; + } +} +function endpointEqual(endpoint1, endpoint2) { + if (endpoint1.addresses.length !== endpoint2.addresses.length) { + return false; + } + for (let i = 0; i < endpoint1.addresses.length; i++) { + if (!subchannelAddressEqual(endpoint1.addresses[i], endpoint2.addresses[i])) { + return false; + } + } + return true; +} +function endpointToString(endpoint) { + return ('[' + endpoint.addresses.map(subchannelAddressToString).join(', ') + ']'); +} +function endpointHasAddress(endpoint, expectedAddress) { + for (const address of endpoint.addresses) { + if (subchannelAddressEqual(address, expectedAddress)) { + return true; + } + } + return false; +} +function endpointEqualUnordered(endpoint1, endpoint2) { + if (endpoint1.addresses.length !== endpoint2.addresses.length) { + return false; + } + for (const address1 of endpoint1.addresses) { + let matchFound = false; + for (const address2 of endpoint2.addresses) { + if (subchannelAddressEqual(address1, address2)) { + matchFound = true; + break; + } + } + if (!matchFound) { + return false; + } + } + return true; +} +class EndpointMap { + constructor() { + this.map = new Set(); + } + get size() { + return this.map.size; + } + getForSubchannelAddress(address) { + for (const entry of this.map) { + if (endpointHasAddress(entry.key, address)) { + return entry.value; + } + } + return undefined; + } + /** + * Delete any entries in this map with keys that are not in endpoints + * @param endpoints + */ + deleteMissing(endpoints) { + const removedValues = []; + for (const entry of this.map) { + let foundEntry = false; + for (const endpoint of endpoints) { + if (endpointEqualUnordered(endpoint, entry.key)) { + foundEntry = true; + } + } + if (!foundEntry) { + removedValues.push(entry.value); + this.map.delete(entry); + } + } + return removedValues; + } + get(endpoint) { + for (const entry of this.map) { + if (endpointEqualUnordered(endpoint, entry.key)) { + return entry.value; + } + } + return undefined; + } + set(endpoint, mapEntry) { + for (const entry of this.map) { + if (endpointEqualUnordered(endpoint, entry.key)) { + entry.value = mapEntry; + return; + } + } + this.map.add({ key: endpoint, value: mapEntry }); + } + delete(endpoint) { + for (const entry of this.map) { + if (endpointEqualUnordered(endpoint, entry.key)) { + this.map.delete(entry); + return; + } + } + } + has(endpoint) { + for (const entry of this.map) { + if (endpointEqualUnordered(endpoint, entry.key)) { + return true; + } + } + return false; + } + clear() { + this.map.clear(); + } + *keys() { + for (const entry of this.map) { + yield entry.key; + } + } + *values() { + for (const entry of this.map) { + yield entry.value; + } + } + *entries() { + for (const entry of this.map) { + yield [entry.key, entry.value]; + } + } +} +exports.EndpointMap = EndpointMap; +//# sourceMappingURL=subchannel-address.js.map + +/***/ }), + +/***/ 17953: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Http2SubchannelCall = void 0; +const http2 = __nccwpck_require__(85675); +const os = __nccwpck_require__(70857); +const constants_1 = __nccwpck_require__(68288); +const metadata_1 = __nccwpck_require__(36100); +const stream_decoder_1 = __nccwpck_require__(47956); +const logging = __nccwpck_require__(8536); +const constants_2 = __nccwpck_require__(68288); +const TRACER_NAME = 'subchannel_call'; +/** + * Should do approximately the same thing as util.getSystemErrorName but the + * TypeScript types don't have that function for some reason so I just made my + * own. + * @param errno + */ +function getSystemErrorName(errno) { + for (const [name, num] of Object.entries(os.constants.errno)) { + if (num === errno) { + return name; + } + } + return 'Unknown system error ' + errno; +} +function mapHttpStatusCode(code) { + const details = `Received HTTP status code ${code}`; + let mappedStatusCode; + switch (code) { + // TODO(murgatroid99): handle 100 and 101 + case 400: + mappedStatusCode = constants_1.Status.INTERNAL; + break; + case 401: + mappedStatusCode = constants_1.Status.UNAUTHENTICATED; + break; + case 403: + mappedStatusCode = constants_1.Status.PERMISSION_DENIED; + break; + case 404: + mappedStatusCode = constants_1.Status.UNIMPLEMENTED; + break; + case 429: + case 502: + case 503: + case 504: + mappedStatusCode = constants_1.Status.UNAVAILABLE; + break; + default: + mappedStatusCode = constants_1.Status.UNKNOWN; + } + return { + code: mappedStatusCode, + details: details, + metadata: new metadata_1.Metadata() + }; +} +class Http2SubchannelCall { + constructor(http2Stream, callEventTracker, listener, transport, callId) { + var _a; + this.http2Stream = http2Stream; + this.callEventTracker = callEventTracker; + this.listener = listener; + this.transport = transport; + this.callId = callId; + this.isReadFilterPending = false; + this.isPushPending = false; + this.canPush = false; + /** + * Indicates that an 'end' event has come from the http2 stream, so there + * will be no more data events. + */ + this.readsClosed = false; + this.statusOutput = false; + this.unpushedReadMessages = []; + // This is populated (non-null) if and only if the call has ended + this.finalStatus = null; + this.internalError = null; + this.serverEndedCall = false; + this.connectionDropped = false; + const maxReceiveMessageLength = (_a = transport.getOptions()['grpc.max_receive_message_length']) !== null && _a !== void 0 ? _a : constants_1.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH; + this.decoder = new stream_decoder_1.StreamDecoder(maxReceiveMessageLength); + http2Stream.on('response', (headers, flags) => { + let headersString = ''; + for (const header of Object.keys(headers)) { + headersString += '\t\t' + header + ': ' + headers[header] + '\n'; + } + this.trace('Received server headers:\n' + headersString); + this.httpStatusCode = headers[':status']; + if (flags & http2.constants.NGHTTP2_FLAG_END_STREAM) { + this.handleTrailers(headers); + } + else { + let metadata; + try { + metadata = metadata_1.Metadata.fromHttp2Headers(headers); + } + catch (error) { + this.endCall({ + code: constants_1.Status.UNKNOWN, + details: error.message, + metadata: new metadata_1.Metadata(), + }); + return; + } + this.listener.onReceiveMetadata(metadata); + } + }); + http2Stream.on('trailers', (headers) => { + this.handleTrailers(headers); + }); + http2Stream.on('data', (data) => { + /* If the status has already been output, allow the http2 stream to + * drain without processing the data. */ + if (this.statusOutput) { + return; + } + this.trace('receive HTTP/2 data frame of length ' + data.length); + let messages; + try { + messages = this.decoder.write(data); + } + catch (e) { + /* Some servers send HTML error pages along with HTTP status codes. + * When the client attempts to parse this as a length-delimited + * message, the parsed message size is greater than the default limit, + * resulting in a message decoding error. In that situation, the HTTP + * error code information is more useful to the user than the + * RESOURCE_EXHAUSTED error is, so we report that instead. Normally, + * we delay processing the HTTP status until after the stream ends, to + * prioritize reporting the gRPC status from trailers if it is present, + * but when there is a message parsing error we end the stream early + * before processing trailers. */ + if (this.httpStatusCode !== undefined && this.httpStatusCode !== 200) { + const mappedStatus = mapHttpStatusCode(this.httpStatusCode); + this.cancelWithStatus(mappedStatus.code, mappedStatus.details); + } + else { + this.cancelWithStatus(constants_1.Status.RESOURCE_EXHAUSTED, e.message); + } + return; + } + for (const message of messages) { + this.trace('parsed message of length ' + message.length); + this.callEventTracker.addMessageReceived(); + this.tryPush(message); + } + }); + http2Stream.on('end', () => { + this.readsClosed = true; + this.maybeOutputStatus(); + }); + http2Stream.on('close', () => { + this.serverEndedCall = true; + /* Use process.next tick to ensure that this code happens after any + * "error" event that may be emitted at about the same time, so that + * we can bubble up the error message from that event. */ + process.nextTick(() => { + var _a; + this.trace('HTTP/2 stream closed with code ' + http2Stream.rstCode); + /* If we have a final status with an OK status code, that means that + * we have received all of the messages and we have processed the + * trailers and the call completed successfully, so it doesn't matter + * how the stream ends after that */ + if (((_a = this.finalStatus) === null || _a === void 0 ? void 0 : _a.code) === constants_1.Status.OK) { + return; + } + let code; + let details = ''; + switch (http2Stream.rstCode) { + case http2.constants.NGHTTP2_NO_ERROR: + /* If we get a NO_ERROR code and we already have a status, the + * stream completed properly and we just haven't fully processed + * it yet */ + if (this.finalStatus !== null) { + return; + } + if (this.httpStatusCode && this.httpStatusCode !== 200) { + const mappedStatus = mapHttpStatusCode(this.httpStatusCode); + code = mappedStatus.code; + details = mappedStatus.details; + } + else { + code = constants_1.Status.INTERNAL; + details = `Received RST_STREAM with code ${http2Stream.rstCode} (Call ended without gRPC status)`; + } + break; + case http2.constants.NGHTTP2_REFUSED_STREAM: + code = constants_1.Status.UNAVAILABLE; + details = 'Stream refused by server'; + break; + case http2.constants.NGHTTP2_CANCEL: + /* Bug reports indicate that Node synthesizes a NGHTTP2_CANCEL + * code from connection drops. We want to prioritize reporting + * an unavailable status when that happens. */ + if (this.connectionDropped) { + code = constants_1.Status.UNAVAILABLE; + details = 'Connection dropped'; + } + else { + code = constants_1.Status.CANCELLED; + details = 'Call cancelled'; + } + break; + case http2.constants.NGHTTP2_ENHANCE_YOUR_CALM: + code = constants_1.Status.RESOURCE_EXHAUSTED; + details = 'Bandwidth exhausted or memory limit exceeded'; + break; + case http2.constants.NGHTTP2_INADEQUATE_SECURITY: + code = constants_1.Status.PERMISSION_DENIED; + details = 'Protocol not secure enough'; + break; + case http2.constants.NGHTTP2_INTERNAL_ERROR: + code = constants_1.Status.INTERNAL; + if (this.internalError === null) { + /* This error code was previously handled in the default case, and + * there are several instances of it online, so I wanted to + * preserve the original error message so that people find existing + * information in searches, but also include the more recognizable + * "Internal server error" message. */ + details = `Received RST_STREAM with code ${http2Stream.rstCode} (Internal server error)`; + } + else { + if (this.internalError.code === 'ECONNRESET' || + this.internalError.code === 'ETIMEDOUT') { + code = constants_1.Status.UNAVAILABLE; + details = this.internalError.message; + } + else { + /* The "Received RST_STREAM with code ..." error is preserved + * here for continuity with errors reported online, but the + * error message at the end will probably be more relevant in + * most cases. */ + details = `Received RST_STREAM with code ${http2Stream.rstCode} triggered by internal client error: ${this.internalError.message}`; + } + } + break; + default: + code = constants_1.Status.INTERNAL; + details = `Received RST_STREAM with code ${http2Stream.rstCode}`; + } + // This is a no-op if trailers were received at all. + // This is OK, because status codes emitted here correspond to more + // catastrophic issues that prevent us from receiving trailers in the + // first place. + this.endCall({ + code, + details, + metadata: new metadata_1.Metadata(), + rstCode: http2Stream.rstCode, + }); + }); + }); + http2Stream.on('error', (err) => { + /* We need an error handler here to stop "Uncaught Error" exceptions + * from bubbling up. However, errors here should all correspond to + * "close" events, where we will handle the error more granularly */ + /* Specifically looking for stream errors that were *not* constructed + * from a RST_STREAM response here: + * https://github.com/nodejs/node/blob/8b8620d580314050175983402dfddf2674e8e22a/lib/internal/http2/core.js#L2267 + */ + if (err.code !== 'ERR_HTTP2_STREAM_ERROR') { + this.trace('Node error event: message=' + + err.message + + ' code=' + + err.code + + ' errno=' + + getSystemErrorName(err.errno) + + ' syscall=' + + err.syscall); + this.internalError = err; + } + this.callEventTracker.onStreamEnd(false); + }); + } + getDeadlineInfo() { + return [`remote_addr=${this.getPeer()}`]; + } + onDisconnect() { + this.connectionDropped = true; + /* Give the call an event loop cycle to finish naturally before reporting + * the disconnection as an error. */ + setImmediate(() => { + this.endCall({ + code: constants_1.Status.UNAVAILABLE, + details: 'Connection dropped', + metadata: new metadata_1.Metadata(), + }); + }); + } + outputStatus() { + /* Precondition: this.finalStatus !== null */ + if (!this.statusOutput) { + this.statusOutput = true; + this.trace('ended with status: code=' + + this.finalStatus.code + + ' details="' + + this.finalStatus.details + + '"'); + this.callEventTracker.onCallEnd(this.finalStatus); + /* We delay the actual action of bubbling up the status to insulate the + * cleanup code in this class from any errors that may be thrown in the + * upper layers as a result of bubbling up the status. In particular, + * if the status is not OK, the "error" event may be emitted + * synchronously at the top level, which will result in a thrown error if + * the user does not handle that event. */ + process.nextTick(() => { + this.listener.onReceiveStatus(this.finalStatus); + }); + /* Leave the http2 stream in flowing state to drain incoming messages, to + * ensure that the stream closure completes. The call stream already does + * not push more messages after the status is output, so the messages go + * nowhere either way. */ + this.http2Stream.resume(); + } + } + trace(text) { + logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, '[' + this.callId + '] ' + text); + } + /** + * On first call, emits a 'status' event with the given StatusObject. + * Subsequent calls are no-ops. + * @param status The status of the call. + */ + endCall(status) { + /* If the status is OK and a new status comes in (e.g. from a + * deserialization failure), that new status takes priority */ + if (this.finalStatus === null || this.finalStatus.code === constants_1.Status.OK) { + this.finalStatus = status; + this.maybeOutputStatus(); + } + this.destroyHttp2Stream(); + } + maybeOutputStatus() { + if (this.finalStatus !== null) { + /* The combination check of readsClosed and that the two message buffer + * arrays are empty checks that there all incoming data has been fully + * processed */ + if (this.finalStatus.code !== constants_1.Status.OK || + (this.readsClosed && + this.unpushedReadMessages.length === 0 && + !this.isReadFilterPending && + !this.isPushPending)) { + this.outputStatus(); + } + } + } + push(message) { + this.trace('pushing to reader message of length ' + + (message instanceof Buffer ? message.length : null)); + this.canPush = false; + this.isPushPending = true; + process.nextTick(() => { + this.isPushPending = false; + /* If we have already output the status any later messages should be + * ignored, and can cause out-of-order operation errors higher up in the + * stack. Checking as late as possible here to avoid any race conditions. + */ + if (this.statusOutput) { + return; + } + this.listener.onReceiveMessage(message); + this.maybeOutputStatus(); + }); + } + tryPush(messageBytes) { + if (this.canPush) { + this.http2Stream.pause(); + this.push(messageBytes); + } + else { + this.trace('unpushedReadMessages.push message of length ' + messageBytes.length); + this.unpushedReadMessages.push(messageBytes); + } + } + handleTrailers(headers) { + this.serverEndedCall = true; + this.callEventTracker.onStreamEnd(true); + let headersString = ''; + for (const header of Object.keys(headers)) { + headersString += '\t\t' + header + ': ' + headers[header] + '\n'; + } + this.trace('Received server trailers:\n' + headersString); + let metadata; + try { + metadata = metadata_1.Metadata.fromHttp2Headers(headers); + } + catch (e) { + metadata = new metadata_1.Metadata(); + } + const metadataMap = metadata.getMap(); + let status; + if (typeof metadataMap['grpc-status'] === 'string') { + const receivedStatus = Number(metadataMap['grpc-status']); + this.trace('received status code ' + receivedStatus + ' from server'); + metadata.remove('grpc-status'); + let details = ''; + if (typeof metadataMap['grpc-message'] === 'string') { + try { + details = decodeURI(metadataMap['grpc-message']); + } + catch (e) { + details = metadataMap['grpc-message']; + } + metadata.remove('grpc-message'); + this.trace('received status details string "' + details + '" from server'); + } + status = { + code: receivedStatus, + details: details, + metadata: metadata + }; + } + else if (this.httpStatusCode) { + status = mapHttpStatusCode(this.httpStatusCode); + status.metadata = metadata; + } + else { + status = { + code: constants_1.Status.UNKNOWN, + details: 'No status information received', + metadata: metadata + }; + } + // This is a no-op if the call was already ended when handling headers. + this.endCall(status); + } + destroyHttp2Stream() { + var _a; + // The http2 stream could already have been destroyed if cancelWithStatus + // is called in response to an internal http2 error. + if (this.http2Stream.destroyed) { + return; + } + /* If the server ended the call, sending an RST_STREAM is redundant, so we + * just half close on the client side instead to finish closing the stream. + */ + if (this.serverEndedCall) { + this.http2Stream.end(); + } + else { + /* If the call has ended with an OK status, communicate that when closing + * the stream, partly to avoid a situation in which we detect an error + * RST_STREAM as a result after we have the status */ + let code; + if (((_a = this.finalStatus) === null || _a === void 0 ? void 0 : _a.code) === constants_1.Status.OK) { + code = http2.constants.NGHTTP2_NO_ERROR; + } + else { + code = http2.constants.NGHTTP2_CANCEL; + } + this.trace('close http2 stream with code ' + code); + this.http2Stream.close(code); + } + } + cancelWithStatus(status, details) { + this.trace('cancelWithStatus code: ' + status + ' details: "' + details + '"'); + this.endCall({ code: status, details, metadata: new metadata_1.Metadata() }); + } + getStatus() { + return this.finalStatus; + } + getPeer() { + return this.transport.getPeerName(); + } + getCallNumber() { + return this.callId; + } + getAuthContext() { + return this.transport.getAuthContext(); + } + startRead() { + /* If the stream has ended with an error, we should not emit any more + * messages and we should communicate that the stream has ended */ + if (this.finalStatus !== null && this.finalStatus.code !== constants_1.Status.OK) { + this.readsClosed = true; + this.maybeOutputStatus(); + return; + } + this.canPush = true; + if (this.unpushedReadMessages.length > 0) { + const nextMessage = this.unpushedReadMessages.shift(); + this.push(nextMessage); + return; + } + /* Only resume reading from the http2Stream if we don't have any pending + * messages to emit */ + this.http2Stream.resume(); + } + sendMessageWithContext(context, message) { + this.trace('write() called with message of length ' + message.length); + const cb = (error) => { + /* nextTick here ensures that no stream action can be taken in the call + * stack of the write callback, in order to hopefully work around + * https://github.com/nodejs/node/issues/49147 */ + process.nextTick(() => { + var _a; + let code = constants_1.Status.UNAVAILABLE; + if ((error === null || error === void 0 ? void 0 : error.code) === + 'ERR_STREAM_WRITE_AFTER_END') { + code = constants_1.Status.INTERNAL; + } + if (error) { + this.cancelWithStatus(code, `Write error: ${error.message}`); + } + (_a = context.callback) === null || _a === void 0 ? void 0 : _a.call(context); + }); + }; + this.trace('sending data chunk of length ' + message.length); + this.callEventTracker.addMessageSent(); + try { + this.http2Stream.write(message, cb); + } + catch (error) { + this.endCall({ + code: constants_1.Status.UNAVAILABLE, + details: `Write failed with error ${error.message}`, + metadata: new metadata_1.Metadata(), + }); + } + } + halfClose() { + this.trace('end() called'); + this.trace('calling end() on HTTP/2 stream'); + this.http2Stream.end(); + } +} +exports.Http2SubchannelCall = Http2SubchannelCall; +//# sourceMappingURL=subchannel-call.js.map + +/***/ }), + +/***/ 70098: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2022 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.BaseSubchannelWrapper = void 0; +class BaseSubchannelWrapper { + constructor(child) { + this.child = child; + this.healthy = true; + this.healthListeners = new Set(); + this.refcount = 0; + this.dataWatchers = new Set(); + child.addHealthStateWatcher(childHealthy => { + /* A change to the child health state only affects this wrapper's overall + * health state if this wrapper is reporting healthy. */ + if (this.healthy) { + this.updateHealthListeners(); + } + }); + } + updateHealthListeners() { + for (const listener of this.healthListeners) { + listener(this.isHealthy()); + } + } + getConnectivityState() { + return this.child.getConnectivityState(); + } + addConnectivityStateListener(listener) { + this.child.addConnectivityStateListener(listener); + } + removeConnectivityStateListener(listener) { + this.child.removeConnectivityStateListener(listener); + } + startConnecting() { + this.child.startConnecting(); + } + getAddress() { + return this.child.getAddress(); + } + throttleKeepalive(newKeepaliveTime) { + this.child.throttleKeepalive(newKeepaliveTime); + } + ref() { + this.child.ref(); + this.refcount += 1; + } + unref() { + this.child.unref(); + this.refcount -= 1; + if (this.refcount === 0) { + this.destroy(); + } + } + destroy() { + for (const watcher of this.dataWatchers) { + watcher.destroy(); + } + } + getChannelzRef() { + return this.child.getChannelzRef(); + } + isHealthy() { + return this.healthy && this.child.isHealthy(); + } + addHealthStateWatcher(listener) { + this.healthListeners.add(listener); + } + removeHealthStateWatcher(listener) { + this.healthListeners.delete(listener); + } + addDataWatcher(dataWatcher) { + dataWatcher.setSubchannel(this.getRealSubchannel()); + this.dataWatchers.add(dataWatcher); + } + setHealthy(healthy) { + if (healthy !== this.healthy) { + this.healthy = healthy; + /* A change to this wrapper's health state only affects the overall + * reported health state if the child is healthy. */ + if (this.child.isHealthy()) { + this.updateHealthListeners(); + } + } + } + getRealSubchannel() { + return this.child.getRealSubchannel(); + } + realSubchannelEquals(other) { + return this.getRealSubchannel() === other.getRealSubchannel(); + } + getCallCredentials() { + return this.child.getCallCredentials(); + } + getChannel() { + return this.child.getChannel(); + } +} +exports.BaseSubchannelWrapper = BaseSubchannelWrapper; +//# sourceMappingURL=subchannel-interface.js.map + +/***/ }), + +/***/ 48695: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SubchannelPool = void 0; +exports.getSubchannelPool = getSubchannelPool; +const channel_options_1 = __nccwpck_require__(86793); +const subchannel_1 = __nccwpck_require__(68416); +const subchannel_address_1 = __nccwpck_require__(97021); +const uri_parser_1 = __nccwpck_require__(56027); +const transport_1 = __nccwpck_require__(33860); +// 10 seconds in milliseconds. This value is arbitrary. +/** + * The amount of time in between checks for dropping subchannels that have no + * other references + */ +const REF_CHECK_INTERVAL = 10000; +class SubchannelPool { + /** + * A pool of subchannels use for making connections. Subchannels with the + * exact same parameters will be reused. + */ + constructor() { + this.pool = Object.create(null); + /** + * A timer of a task performing a periodic subchannel cleanup. + */ + this.cleanupTimer = null; + } + /** + * Unrefs all unused subchannels and cancels the cleanup task if all + * subchannels have been unrefed. + */ + unrefUnusedSubchannels() { + let allSubchannelsUnrefed = true; + /* These objects are created with Object.create(null), so they do not + * have a prototype, which means that for (... in ...) loops over them + * do not need to be filtered */ + // eslint-disable-disable-next-line:forin + for (const channelTarget in this.pool) { + const subchannelObjArray = this.pool[channelTarget]; + const refedSubchannels = subchannelObjArray.filter(value => !value.subchannel.unrefIfOneRef()); + if (refedSubchannels.length > 0) { + allSubchannelsUnrefed = false; + } + /* For each subchannel in the pool, try to unref it if it has + * exactly one ref (which is the ref from the pool itself). If that + * does happen, remove the subchannel from the pool */ + this.pool[channelTarget] = refedSubchannels; + } + /* Currently we do not delete keys with empty values. If that results + * in significant memory usage we should change it. */ + // Cancel the cleanup task if all subchannels have been unrefed. + if (allSubchannelsUnrefed && this.cleanupTimer !== null) { + clearInterval(this.cleanupTimer); + this.cleanupTimer = null; + } + } + /** + * Ensures that the cleanup task is spawned. + */ + ensureCleanupTask() { + var _a, _b; + if (this.cleanupTimer === null) { + this.cleanupTimer = setInterval(() => { + this.unrefUnusedSubchannels(); + }, REF_CHECK_INTERVAL); + // Unref because this timer should not keep the event loop running. + // Call unref only if it exists to address electron/electron#21162 + (_b = (_a = this.cleanupTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + } + } + /** + * Get a subchannel if one already exists with exactly matching parameters. + * Otherwise, create and save a subchannel with those parameters. + * @param channelTarget + * @param subchannelTarget + * @param channelArguments + * @param channelCredentials + */ + getOrCreateSubchannel(channelTargetUri, subchannelTarget, channelArguments, channelCredentials) { + this.ensureCleanupTask(); + const channelTarget = (0, uri_parser_1.uriToString)(channelTargetUri); + if (channelTarget in this.pool) { + const subchannelObjArray = this.pool[channelTarget]; + for (const subchannelObj of subchannelObjArray) { + if ((0, subchannel_address_1.subchannelAddressEqual)(subchannelTarget, subchannelObj.subchannelAddress) && + (0, channel_options_1.channelOptionsEqual)(channelArguments, subchannelObj.channelArguments) && + channelCredentials._equals(subchannelObj.channelCredentials)) { + return subchannelObj.subchannel; + } + } + } + // If we get here, no matching subchannel was found + const subchannel = new subchannel_1.Subchannel(channelTargetUri, subchannelTarget, channelArguments, channelCredentials, new transport_1.Http2SubchannelConnector(channelTargetUri)); + if (!(channelTarget in this.pool)) { + this.pool[channelTarget] = []; + } + this.pool[channelTarget].push({ + subchannelAddress: subchannelTarget, + channelArguments, + channelCredentials, + subchannel, + }); + subchannel.ref(); + return subchannel; + } +} +exports.SubchannelPool = SubchannelPool; +const globalSubchannelPool = new SubchannelPool(); +/** + * Get either the global subchannel pool, or a new subchannel pool. + * @param global + */ +function getSubchannelPool(global) { + if (global) { + return globalSubchannelPool; + } + else { + return new SubchannelPool(); + } +} +//# sourceMappingURL=subchannel-pool.js.map + +/***/ }), + +/***/ 68416: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Subchannel = void 0; +const connectivity_state_1 = __nccwpck_require__(60778); +const backoff_timeout_1 = __nccwpck_require__(14643); +const logging = __nccwpck_require__(8536); +const constants_1 = __nccwpck_require__(68288); +const uri_parser_1 = __nccwpck_require__(56027); +const subchannel_address_1 = __nccwpck_require__(97021); +const channelz_1 = __nccwpck_require__(68198); +const single_subchannel_channel_1 = __nccwpck_require__(40701); +const TRACER_NAME = 'subchannel'; +/* setInterval and setTimeout only accept signed 32 bit integers. JS doesn't + * have a constant for the max signed 32 bit integer, so this is a simple way + * to calculate it */ +const KEEPALIVE_MAX_TIME_MS = ~(1 << 31); +class Subchannel { + /** + * A class representing a connection to a single backend. + * @param channelTarget The target string for the channel as a whole + * @param subchannelAddress The address for the backend that this subchannel + * will connect to + * @param options The channel options, plus any specific subchannel options + * for this subchannel + * @param credentials The channel credentials used to establish this + * connection + */ + constructor(channelTarget, subchannelAddress, options, credentials, connector) { + var _a; + this.channelTarget = channelTarget; + this.subchannelAddress = subchannelAddress; + this.options = options; + this.connector = connector; + /** + * The subchannel's current connectivity state. Invariant: `session` === `null` + * if and only if `connectivityState` is IDLE or TRANSIENT_FAILURE. + */ + this.connectivityState = connectivity_state_1.ConnectivityState.IDLE; + /** + * The underlying http2 session used to make requests. + */ + this.transport = null; + /** + * Indicates that the subchannel should transition from TRANSIENT_FAILURE to + * CONNECTING instead of IDLE when the backoff timeout ends. + */ + this.continueConnecting = false; + /** + * A list of listener functions that will be called whenever the connectivity + * state changes. Will be modified by `addConnectivityStateListener` and + * `removeConnectivityStateListener` + */ + this.stateListeners = new Set(); + /** + * Tracks channels and subchannel pools with references to this subchannel + */ + this.refcount = 0; + // Channelz info + this.channelzEnabled = true; + this.dataProducers = new Map(); + this.subchannelChannel = null; + const backoffOptions = { + initialDelay: options['grpc.initial_reconnect_backoff_ms'], + maxDelay: options['grpc.max_reconnect_backoff_ms'], + }; + this.backoffTimeout = new backoff_timeout_1.BackoffTimeout(() => { + this.handleBackoffTimer(); + }, backoffOptions); + this.backoffTimeout.unref(); + this.subchannelAddressString = (0, subchannel_address_1.subchannelAddressToString)(subchannelAddress); + this.keepaliveTime = (_a = options['grpc.keepalive_time_ms']) !== null && _a !== void 0 ? _a : -1; + if (options['grpc.enable_channelz'] === 0) { + this.channelzEnabled = false; + this.channelzTrace = new channelz_1.ChannelzTraceStub(); + this.callTracker = new channelz_1.ChannelzCallTrackerStub(); + this.childrenTracker = new channelz_1.ChannelzChildrenTrackerStub(); + this.streamTracker = new channelz_1.ChannelzCallTrackerStub(); + } + else { + this.channelzTrace = new channelz_1.ChannelzTrace(); + this.callTracker = new channelz_1.ChannelzCallTracker(); + this.childrenTracker = new channelz_1.ChannelzChildrenTracker(); + this.streamTracker = new channelz_1.ChannelzCallTracker(); + } + this.channelzRef = (0, channelz_1.registerChannelzSubchannel)(this.subchannelAddressString, () => this.getChannelzInfo(), this.channelzEnabled); + this.channelzTrace.addTrace('CT_INFO', 'Subchannel created'); + this.trace('Subchannel constructed with options ' + + JSON.stringify(options, undefined, 2)); + this.secureConnector = credentials._createSecureConnector(channelTarget, options); + } + getChannelzInfo() { + return { + state: this.connectivityState, + trace: this.channelzTrace, + callTracker: this.callTracker, + children: this.childrenTracker.getChildLists(), + target: this.subchannelAddressString, + }; + } + trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '(' + + this.channelzRef.id + + ') ' + + this.subchannelAddressString + + ' ' + + text); + } + refTrace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, 'subchannel_refcount', '(' + + this.channelzRef.id + + ') ' + + this.subchannelAddressString + + ' ' + + text); + } + handleBackoffTimer() { + if (this.continueConnecting) { + this.transitionToState([connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE], connectivity_state_1.ConnectivityState.CONNECTING); + } + else { + this.transitionToState([connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE], connectivity_state_1.ConnectivityState.IDLE); + } + } + /** + * Start a backoff timer with the current nextBackoff timeout + */ + startBackoff() { + this.backoffTimeout.runOnce(); + } + stopBackoff() { + this.backoffTimeout.stop(); + this.backoffTimeout.reset(); + } + startConnectingInternal() { + let options = this.options; + if (options['grpc.keepalive_time_ms']) { + const adjustedKeepaliveTime = Math.min(this.keepaliveTime, KEEPALIVE_MAX_TIME_MS); + options = Object.assign(Object.assign({}, options), { 'grpc.keepalive_time_ms': adjustedKeepaliveTime }); + } + this.connector + .connect(this.subchannelAddress, this.secureConnector, options) + .then(transport => { + if (this.transitionToState([connectivity_state_1.ConnectivityState.CONNECTING], connectivity_state_1.ConnectivityState.READY)) { + this.transport = transport; + if (this.channelzEnabled) { + this.childrenTracker.refChild(transport.getChannelzRef()); + } + transport.addDisconnectListener(tooManyPings => { + this.transitionToState([connectivity_state_1.ConnectivityState.READY], connectivity_state_1.ConnectivityState.IDLE); + if (tooManyPings && this.keepaliveTime > 0) { + this.keepaliveTime *= 2; + logging.log(constants_1.LogVerbosity.ERROR, `Connection to ${(0, uri_parser_1.uriToString)(this.channelTarget)} at ${this.subchannelAddressString} rejected by server because of excess pings. Increasing ping interval to ${this.keepaliveTime} ms`); + } + }); + } + else { + /* If we can't transition from CONNECTING to READY here, we will + * not be using this transport, so release its resources. */ + transport.shutdown(); + } + }, error => { + this.transitionToState([connectivity_state_1.ConnectivityState.CONNECTING], connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE, `${error}`); + }); + } + /** + * Initiate a state transition from any element of oldStates to the new + * state. If the current connectivityState is not in oldStates, do nothing. + * @param oldStates The set of states to transition from + * @param newState The state to transition to + * @returns True if the state changed, false otherwise + */ + transitionToState(oldStates, newState, errorMessage) { + var _a, _b; + if (oldStates.indexOf(this.connectivityState) === -1) { + return false; + } + if (errorMessage) { + this.trace(connectivity_state_1.ConnectivityState[this.connectivityState] + + ' -> ' + + connectivity_state_1.ConnectivityState[newState] + + ' with error "' + errorMessage + '"'); + } + else { + this.trace(connectivity_state_1.ConnectivityState[this.connectivityState] + + ' -> ' + + connectivity_state_1.ConnectivityState[newState]); + } + if (this.channelzEnabled) { + this.channelzTrace.addTrace('CT_INFO', 'Connectivity state change to ' + connectivity_state_1.ConnectivityState[newState]); + } + const previousState = this.connectivityState; + this.connectivityState = newState; + switch (newState) { + case connectivity_state_1.ConnectivityState.READY: + this.stopBackoff(); + break; + case connectivity_state_1.ConnectivityState.CONNECTING: + this.startBackoff(); + this.startConnectingInternal(); + this.continueConnecting = false; + break; + case connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE: + if (this.channelzEnabled && this.transport) { + this.childrenTracker.unrefChild(this.transport.getChannelzRef()); + } + (_a = this.transport) === null || _a === void 0 ? void 0 : _a.shutdown(); + this.transport = null; + /* If the backoff timer has already ended by the time we get to the + * TRANSIENT_FAILURE state, we want to immediately transition out of + * TRANSIENT_FAILURE as though the backoff timer is ending right now */ + if (!this.backoffTimeout.isRunning()) { + process.nextTick(() => { + this.handleBackoffTimer(); + }); + } + break; + case connectivity_state_1.ConnectivityState.IDLE: + if (this.channelzEnabled && this.transport) { + this.childrenTracker.unrefChild(this.transport.getChannelzRef()); + } + (_b = this.transport) === null || _b === void 0 ? void 0 : _b.shutdown(); + this.transport = null; + break; + default: + throw new Error(`Invalid state: unknown ConnectivityState ${newState}`); + } + for (const listener of this.stateListeners) { + listener(this, previousState, newState, this.keepaliveTime, errorMessage); + } + return true; + } + ref() { + this.refTrace('refcount ' + this.refcount + ' -> ' + (this.refcount + 1)); + this.refcount += 1; + } + unref() { + this.refTrace('refcount ' + this.refcount + ' -> ' + (this.refcount - 1)); + this.refcount -= 1; + if (this.refcount === 0) { + this.channelzTrace.addTrace('CT_INFO', 'Shutting down'); + (0, channelz_1.unregisterChannelzRef)(this.channelzRef); + this.secureConnector.destroy(); + process.nextTick(() => { + this.transitionToState([connectivity_state_1.ConnectivityState.CONNECTING, connectivity_state_1.ConnectivityState.READY], connectivity_state_1.ConnectivityState.IDLE); + }); + } + } + unrefIfOneRef() { + if (this.refcount === 1) { + this.unref(); + return true; + } + return false; + } + createCall(metadata, host, method, listener) { + if (!this.transport) { + throw new Error('Cannot create call, subchannel not READY'); + } + let statsTracker; + if (this.channelzEnabled) { + this.callTracker.addCallStarted(); + this.streamTracker.addCallStarted(); + statsTracker = { + onCallEnd: status => { + if (status.code === constants_1.Status.OK) { + this.callTracker.addCallSucceeded(); + } + else { + this.callTracker.addCallFailed(); + } + }, + }; + } + else { + statsTracker = {}; + } + return this.transport.createCall(metadata, host, method, listener, statsTracker); + } + /** + * If the subchannel is currently IDLE, start connecting and switch to the + * CONNECTING state. If the subchannel is current in TRANSIENT_FAILURE, + * the next time it would transition to IDLE, start connecting again instead. + * Otherwise, do nothing. + */ + startConnecting() { + process.nextTick(() => { + /* First, try to transition from IDLE to connecting. If that doesn't happen + * because the state is not currently IDLE, check if it is + * TRANSIENT_FAILURE, and if so indicate that it should go back to + * connecting after the backoff timer ends. Otherwise do nothing */ + if (!this.transitionToState([connectivity_state_1.ConnectivityState.IDLE], connectivity_state_1.ConnectivityState.CONNECTING)) { + if (this.connectivityState === connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE) { + this.continueConnecting = true; + } + } + }); + } + /** + * Get the subchannel's current connectivity state. + */ + getConnectivityState() { + return this.connectivityState; + } + /** + * Add a listener function to be called whenever the subchannel's + * connectivity state changes. + * @param listener + */ + addConnectivityStateListener(listener) { + this.stateListeners.add(listener); + } + /** + * Remove a listener previously added with `addConnectivityStateListener` + * @param listener A reference to a function previously passed to + * `addConnectivityStateListener` + */ + removeConnectivityStateListener(listener) { + this.stateListeners.delete(listener); + } + /** + * Reset the backoff timeout, and immediately start connecting if in backoff. + */ + resetBackoff() { + process.nextTick(() => { + this.backoffTimeout.reset(); + this.transitionToState([connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE], connectivity_state_1.ConnectivityState.CONNECTING); + }); + } + getAddress() { + return this.subchannelAddressString; + } + getChannelzRef() { + return this.channelzRef; + } + isHealthy() { + return true; + } + addHealthStateWatcher(listener) { + // Do nothing with the listener + } + removeHealthStateWatcher(listener) { + // Do nothing with the listener + } + getRealSubchannel() { + return this; + } + realSubchannelEquals(other) { + return other.getRealSubchannel() === this; + } + throttleKeepalive(newKeepaliveTime) { + if (newKeepaliveTime > this.keepaliveTime) { + this.keepaliveTime = newKeepaliveTime; + } + } + getCallCredentials() { + return this.secureConnector.getCallCredentials(); + } + getChannel() { + if (!this.subchannelChannel) { + this.subchannelChannel = new single_subchannel_channel_1.SingleSubchannelChannel(this, this.channelTarget, this.options); + } + return this.subchannelChannel; + } + addDataWatcher(dataWatcher) { + throw new Error('Not implemented'); + } + getOrCreateDataProducer(name, createDataProducer) { + const existingProducer = this.dataProducers.get(name); + if (existingProducer) { + return existingProducer; + } + const newProducer = createDataProducer(this); + this.dataProducers.set(name, newProducer); + return newProducer; + } + removeDataProducer(name) { + this.dataProducers.delete(name); + } +} +exports.Subchannel = Subchannel; +//# sourceMappingURL=subchannel.js.map + +/***/ }), + +/***/ 68876: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2019 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CIPHER_SUITES = void 0; +exports.getDefaultRootsData = getDefaultRootsData; +const fs = __nccwpck_require__(79896); +exports.CIPHER_SUITES = process.env.GRPC_SSL_CIPHER_SUITES; +const DEFAULT_ROOTS_FILE_PATH = process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH; +let defaultRootsData = null; +function getDefaultRootsData() { + if (DEFAULT_ROOTS_FILE_PATH) { + if (defaultRootsData === null) { + defaultRootsData = fs.readFileSync(DEFAULT_ROOTS_FILE_PATH); + } + return defaultRootsData; + } + return null; +} +//# sourceMappingURL=tls-helpers.js.map + +/***/ }), + +/***/ 33860: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/* + * Copyright 2023 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Http2SubchannelConnector = void 0; +const http2 = __nccwpck_require__(85675); +const tls_1 = __nccwpck_require__(64756); +const channelz_1 = __nccwpck_require__(68198); +const constants_1 = __nccwpck_require__(68288); +const http_proxy_1 = __nccwpck_require__(18954); +const logging = __nccwpck_require__(8536); +const resolver_1 = __nccwpck_require__(76255); +const subchannel_address_1 = __nccwpck_require__(97021); +const uri_parser_1 = __nccwpck_require__(56027); +const net = __nccwpck_require__(69278); +const subchannel_call_1 = __nccwpck_require__(17953); +const call_number_1 = __nccwpck_require__(35675); +const TRACER_NAME = 'transport'; +const FLOW_CONTROL_TRACER_NAME = 'transport_flowctrl'; +const clientVersion = (__nccwpck_require__(9943)/* .version */ .rE); +const { HTTP2_HEADER_AUTHORITY, HTTP2_HEADER_CONTENT_TYPE, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_TE, HTTP2_HEADER_USER_AGENT, } = http2.constants; +const KEEPALIVE_TIMEOUT_MS = 20000; +const tooManyPingsData = Buffer.from('too_many_pings', 'ascii'); +class Http2Transport { + constructor(session, subchannelAddress, options, + /** + * Name of the remote server, if it is not the same as the subchannel + * address, i.e. if connecting through an HTTP CONNECT proxy. + */ + remoteName) { + this.session = session; + this.options = options; + this.remoteName = remoteName; + /** + * Timer reference indicating when to send the next ping or when the most recent ping will be considered lost. + */ + this.keepaliveTimer = null; + /** + * Indicates that the keepalive timer ran out while there were no active + * calls, and a ping should be sent the next time a call starts. + */ + this.pendingSendKeepalivePing = false; + this.activeCalls = new Set(); + this.disconnectListeners = []; + this.disconnectHandled = false; + this.channelzEnabled = true; + this.keepalivesSent = 0; + this.messagesSent = 0; + this.messagesReceived = 0; + this.lastMessageSentTimestamp = null; + this.lastMessageReceivedTimestamp = null; + /* Populate subchannelAddressString and channelzRef before doing anything + * else, because they are used in the trace methods. */ + this.subchannelAddressString = (0, subchannel_address_1.subchannelAddressToString)(subchannelAddress); + if (options['grpc.enable_channelz'] === 0) { + this.channelzEnabled = false; + this.streamTracker = new channelz_1.ChannelzCallTrackerStub(); + } + else { + this.streamTracker = new channelz_1.ChannelzCallTracker(); + } + this.channelzRef = (0, channelz_1.registerChannelzSocket)(this.subchannelAddressString, () => this.getChannelzInfo(), this.channelzEnabled); + // Build user-agent string. + this.userAgent = [ + options['grpc.primary_user_agent'], + `grpc-node-js/${clientVersion}`, + options['grpc.secondary_user_agent'], + ] + .filter(e => e) + .join(' '); // remove falsey values first + if ('grpc.keepalive_time_ms' in options) { + this.keepaliveTimeMs = options['grpc.keepalive_time_ms']; + } + else { + this.keepaliveTimeMs = -1; + } + if ('grpc.keepalive_timeout_ms' in options) { + this.keepaliveTimeoutMs = options['grpc.keepalive_timeout_ms']; + } + else { + this.keepaliveTimeoutMs = KEEPALIVE_TIMEOUT_MS; + } + if ('grpc.keepalive_permit_without_calls' in options) { + this.keepaliveWithoutCalls = + options['grpc.keepalive_permit_without_calls'] === 1; + } + else { + this.keepaliveWithoutCalls = false; + } + session.once('close', () => { + this.trace('session closed'); + this.handleDisconnect(); + }); + session.once('goaway', (errorCode, lastStreamID, opaqueData) => { + let tooManyPings = false; + /* See the last paragraph of + * https://github.com/grpc/proposal/blob/master/A8-client-side-keepalive.md#basic-keepalive */ + if (errorCode === http2.constants.NGHTTP2_ENHANCE_YOUR_CALM && + opaqueData && + opaqueData.equals(tooManyPingsData)) { + tooManyPings = true; + } + this.trace('connection closed by GOAWAY with code ' + + errorCode + + ' and data ' + + (opaqueData === null || opaqueData === void 0 ? void 0 : opaqueData.toString())); + this.reportDisconnectToOwner(tooManyPings); + }); + session.once('error', error => { + this.trace('connection closed with error ' + error.message); + this.handleDisconnect(); + }); + session.socket.once('close', (hadError) => { + this.trace('connection closed. hadError=' + hadError); + this.handleDisconnect(); + }); + if (logging.isTracerEnabled(TRACER_NAME)) { + session.on('remoteSettings', (settings) => { + this.trace('new settings received' + + (this.session !== session ? ' on the old connection' : '') + + ': ' + + JSON.stringify(settings)); + }); + session.on('localSettings', (settings) => { + this.trace('local settings acknowledged by remote' + + (this.session !== session ? ' on the old connection' : '') + + ': ' + + JSON.stringify(settings)); + }); + } + /* Start the keepalive timer last, because this can trigger trace logs, + * which should only happen after everything else is set up. */ + if (this.keepaliveWithoutCalls) { + this.maybeStartKeepalivePingTimer(); + } + if (session.socket instanceof tls_1.TLSSocket) { + this.authContext = { + transportSecurityType: 'ssl', + sslPeerCertificate: session.socket.getPeerCertificate() + }; + } + else { + this.authContext = {}; + } + } + getChannelzInfo() { + var _a, _b, _c; + const sessionSocket = this.session.socket; + const remoteAddress = sessionSocket.remoteAddress + ? (0, subchannel_address_1.stringToSubchannelAddress)(sessionSocket.remoteAddress, sessionSocket.remotePort) + : null; + const localAddress = sessionSocket.localAddress + ? (0, subchannel_address_1.stringToSubchannelAddress)(sessionSocket.localAddress, sessionSocket.localPort) + : null; + let tlsInfo; + if (this.session.encrypted) { + const tlsSocket = sessionSocket; + const cipherInfo = tlsSocket.getCipher(); + const certificate = tlsSocket.getCertificate(); + const peerCertificate = tlsSocket.getPeerCertificate(); + tlsInfo = { + cipherSuiteStandardName: (_a = cipherInfo.standardName) !== null && _a !== void 0 ? _a : null, + cipherSuiteOtherName: cipherInfo.standardName ? null : cipherInfo.name, + localCertificate: certificate && 'raw' in certificate ? certificate.raw : null, + remoteCertificate: peerCertificate && 'raw' in peerCertificate + ? peerCertificate.raw + : null, + }; + } + else { + tlsInfo = null; + } + const socketInfo = { + remoteAddress: remoteAddress, + localAddress: localAddress, + security: tlsInfo, + remoteName: this.remoteName, + streamsStarted: this.streamTracker.callsStarted, + streamsSucceeded: this.streamTracker.callsSucceeded, + streamsFailed: this.streamTracker.callsFailed, + messagesSent: this.messagesSent, + messagesReceived: this.messagesReceived, + keepAlivesSent: this.keepalivesSent, + lastLocalStreamCreatedTimestamp: this.streamTracker.lastCallStartedTimestamp, + lastRemoteStreamCreatedTimestamp: null, + lastMessageSentTimestamp: this.lastMessageSentTimestamp, + lastMessageReceivedTimestamp: this.lastMessageReceivedTimestamp, + localFlowControlWindow: (_b = this.session.state.localWindowSize) !== null && _b !== void 0 ? _b : null, + remoteFlowControlWindow: (_c = this.session.state.remoteWindowSize) !== null && _c !== void 0 ? _c : null, + }; + return socketInfo; + } + trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, '(' + + this.channelzRef.id + + ') ' + + this.subchannelAddressString + + ' ' + + text); + } + keepaliveTrace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, 'keepalive', '(' + + this.channelzRef.id + + ') ' + + this.subchannelAddressString + + ' ' + + text); + } + flowControlTrace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, FLOW_CONTROL_TRACER_NAME, '(' + + this.channelzRef.id + + ') ' + + this.subchannelAddressString + + ' ' + + text); + } + internalsTrace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, 'transport_internals', '(' + + this.channelzRef.id + + ') ' + + this.subchannelAddressString + + ' ' + + text); + } + /** + * Indicate to the owner of this object that this transport should no longer + * be used. That happens if the connection drops, or if the server sends a + * GOAWAY. + * @param tooManyPings If true, this was triggered by a GOAWAY with data + * indicating that the session was closed becaues the client sent too many + * pings. + * @returns + */ + reportDisconnectToOwner(tooManyPings) { + if (this.disconnectHandled) { + return; + } + this.disconnectHandled = true; + this.disconnectListeners.forEach(listener => listener(tooManyPings)); + } + /** + * Handle connection drops, but not GOAWAYs. + */ + handleDisconnect() { + this.clearKeepaliveTimeout(); + this.reportDisconnectToOwner(false); + for (const call of this.activeCalls) { + call.onDisconnect(); + } + // Wait an event loop cycle before destroying the connection + setImmediate(() => { + this.session.destroy(); + }); + } + addDisconnectListener(listener) { + this.disconnectListeners.push(listener); + } + canSendPing() { + return (!this.session.destroyed && + this.keepaliveTimeMs > 0 && + (this.keepaliveWithoutCalls || this.activeCalls.size > 0)); + } + maybeSendPing() { + var _a, _b; + if (!this.canSendPing()) { + this.pendingSendKeepalivePing = true; + return; + } + if (this.keepaliveTimer) { + console.error('keepaliveTimeout is not null'); + return; + } + if (this.channelzEnabled) { + this.keepalivesSent += 1; + } + this.keepaliveTrace('Sending ping with timeout ' + this.keepaliveTimeoutMs + 'ms'); + this.keepaliveTimer = setTimeout(() => { + this.keepaliveTimer = null; + this.keepaliveTrace('Ping timeout passed without response'); + this.handleDisconnect(); + }, this.keepaliveTimeoutMs); + (_b = (_a = this.keepaliveTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + let pingSendError = ''; + try { + const pingSentSuccessfully = this.session.ping((err, duration, payload) => { + this.clearKeepaliveTimeout(); + if (err) { + this.keepaliveTrace('Ping failed with error ' + err.message); + this.handleDisconnect(); + } + else { + this.keepaliveTrace('Received ping response'); + this.maybeStartKeepalivePingTimer(); + } + }); + if (!pingSentSuccessfully) { + pingSendError = 'Ping returned false'; + } + } + catch (e) { + // grpc/grpc-node#2139 + pingSendError = (e instanceof Error ? e.message : '') || 'Unknown error'; + } + if (pingSendError) { + this.keepaliveTrace('Ping send failed: ' + pingSendError); + this.handleDisconnect(); + } + } + /** + * Starts the keepalive ping timer if appropriate. If the timer already ran + * out while there were no active requests, instead send a ping immediately. + * If the ping timer is already running or a ping is currently in flight, + * instead do nothing and wait for them to resolve. + */ + maybeStartKeepalivePingTimer() { + var _a, _b; + if (!this.canSendPing()) { + return; + } + if (this.pendingSendKeepalivePing) { + this.pendingSendKeepalivePing = false; + this.maybeSendPing(); + } + else if (!this.keepaliveTimer) { + this.keepaliveTrace('Starting keepalive timer for ' + this.keepaliveTimeMs + 'ms'); + this.keepaliveTimer = setTimeout(() => { + this.keepaliveTimer = null; + this.maybeSendPing(); + }, this.keepaliveTimeMs); + (_b = (_a = this.keepaliveTimer).unref) === null || _b === void 0 ? void 0 : _b.call(_a); + } + /* Otherwise, there is already either a keepalive timer or a ping pending, + * wait for those to resolve. */ + } + /** + * Clears whichever keepalive timeout is currently active, if any. + */ + clearKeepaliveTimeout() { + if (this.keepaliveTimer) { + clearTimeout(this.keepaliveTimer); + this.keepaliveTimer = null; + } + } + removeActiveCall(call) { + this.activeCalls.delete(call); + if (this.activeCalls.size === 0) { + this.session.unref(); + } + } + addActiveCall(call) { + this.activeCalls.add(call); + if (this.activeCalls.size === 1) { + this.session.ref(); + if (!this.keepaliveWithoutCalls) { + this.maybeStartKeepalivePingTimer(); + } + } + } + createCall(metadata, host, method, listener, subchannelCallStatsTracker) { + const headers = metadata.toHttp2Headers(); + headers[HTTP2_HEADER_AUTHORITY] = host; + headers[HTTP2_HEADER_USER_AGENT] = this.userAgent; + headers[HTTP2_HEADER_CONTENT_TYPE] = 'application/grpc'; + headers[HTTP2_HEADER_METHOD] = 'POST'; + headers[HTTP2_HEADER_PATH] = method; + headers[HTTP2_HEADER_TE] = 'trailers'; + let http2Stream; + /* In theory, if an error is thrown by session.request because session has + * become unusable (e.g. because it has received a goaway), this subchannel + * should soon see the corresponding close or goaway event anyway and leave + * READY. But we have seen reports that this does not happen + * (https://github.com/googleapis/nodejs-firestore/issues/1023#issuecomment-653204096) + * so for defense in depth, we just discard the session when we see an + * error here. + */ + try { + http2Stream = this.session.request(headers); + } + catch (e) { + this.handleDisconnect(); + throw e; + } + this.flowControlTrace('local window size: ' + + this.session.state.localWindowSize + + ' remote window size: ' + + this.session.state.remoteWindowSize); + this.internalsTrace('session.closed=' + + this.session.closed + + ' session.destroyed=' + + this.session.destroyed + + ' session.socket.destroyed=' + + this.session.socket.destroyed); + let eventTracker; + // eslint-disable-next-line prefer-const + let call; + if (this.channelzEnabled) { + this.streamTracker.addCallStarted(); + eventTracker = { + addMessageSent: () => { + var _a; + this.messagesSent += 1; + this.lastMessageSentTimestamp = new Date(); + (_a = subchannelCallStatsTracker.addMessageSent) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker); + }, + addMessageReceived: () => { + var _a; + this.messagesReceived += 1; + this.lastMessageReceivedTimestamp = new Date(); + (_a = subchannelCallStatsTracker.addMessageReceived) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker); + }, + onCallEnd: status => { + var _a; + (_a = subchannelCallStatsTracker.onCallEnd) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker, status); + this.removeActiveCall(call); + }, + onStreamEnd: success => { + var _a; + if (success) { + this.streamTracker.addCallSucceeded(); + } + else { + this.streamTracker.addCallFailed(); + } + (_a = subchannelCallStatsTracker.onStreamEnd) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker, success); + }, + }; + } + else { + eventTracker = { + addMessageSent: () => { + var _a; + (_a = subchannelCallStatsTracker.addMessageSent) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker); + }, + addMessageReceived: () => { + var _a; + (_a = subchannelCallStatsTracker.addMessageReceived) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker); + }, + onCallEnd: status => { + var _a; + (_a = subchannelCallStatsTracker.onCallEnd) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker, status); + this.removeActiveCall(call); + }, + onStreamEnd: success => { + var _a; + (_a = subchannelCallStatsTracker.onStreamEnd) === null || _a === void 0 ? void 0 : _a.call(subchannelCallStatsTracker, success); + }, + }; + } + call = new subchannel_call_1.Http2SubchannelCall(http2Stream, eventTracker, listener, this, (0, call_number_1.getNextCallNumber)()); + this.addActiveCall(call); + return call; + } + getChannelzRef() { + return this.channelzRef; + } + getPeerName() { + return this.subchannelAddressString; + } + getOptions() { + return this.options; + } + getAuthContext() { + return this.authContext; + } + shutdown() { + this.session.close(); + (0, channelz_1.unregisterChannelzRef)(this.channelzRef); + } +} +class Http2SubchannelConnector { + constructor(channelTarget) { + this.channelTarget = channelTarget; + this.session = null; + this.isShutdown = false; + } + trace(text) { + logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, (0, uri_parser_1.uriToString)(this.channelTarget) + ' ' + text); + } + createSession(secureConnectResult, address, options) { + if (this.isShutdown) { + return Promise.reject(); + } + if (secureConnectResult.socket.closed) { + return Promise.reject('Connection closed before starting HTTP/2 handshake'); + } + return new Promise((resolve, reject) => { + var _a, _b, _c, _d, _e, _f, _g, _h; + let remoteName = null; + let realTarget = this.channelTarget; + if ('grpc.http_connect_target' in options) { + const parsedTarget = (0, uri_parser_1.parseUri)(options['grpc.http_connect_target']); + if (parsedTarget) { + realTarget = parsedTarget; + remoteName = (0, uri_parser_1.uriToString)(parsedTarget); + } + } + const scheme = secureConnectResult.secure ? 'https' : 'http'; + const targetPath = (0, resolver_1.getDefaultAuthority)(realTarget); + const closeHandler = () => { + var _a; + (_a = this.session) === null || _a === void 0 ? void 0 : _a.destroy(); + this.session = null; + // Leave time for error event to happen before rejecting + setImmediate(() => { + if (!reportedError) { + reportedError = true; + reject(`${errorMessage.trim()} (${new Date().toISOString()})`); + } + }); + }; + const errorHandler = (error) => { + var _a; + (_a = this.session) === null || _a === void 0 ? void 0 : _a.destroy(); + errorMessage = error.message; + this.trace('connection failed with error ' + errorMessage); + if (!reportedError) { + reportedError = true; + reject(`${errorMessage} (${new Date().toISOString()})`); + } + }; + const sessionOptions = { + createConnection: (authority, option) => { + return secureConnectResult.socket; + }, + settings: { + initialWindowSize: (_d = (_a = options['grpc-node.flow_control_window']) !== null && _a !== void 0 ? _a : (_c = (_b = http2.getDefaultSettings) === null || _b === void 0 ? void 0 : _b.call(http2)) === null || _c === void 0 ? void 0 : _c.initialWindowSize) !== null && _d !== void 0 ? _d : 65535, + }, + maxSendHeaderBlockLength: Number.MAX_SAFE_INTEGER, + /* By default, set a very large max session memory limit, to effectively + * disable enforcement of the limit. Some testing indicates that Node's + * behavior degrades badly when this limit is reached, so we solve that + * by disabling the check entirely. */ + maxSessionMemory: (_e = options['grpc-node.max_session_memory']) !== null && _e !== void 0 ? _e : Number.MAX_SAFE_INTEGER + }; + const session = http2.connect(`${scheme}://${targetPath}`, sessionOptions); + // Prepare window size configuration for remoteSettings handler + const defaultWin = (_h = (_g = (_f = http2.getDefaultSettings) === null || _f === void 0 ? void 0 : _f.call(http2)) === null || _g === void 0 ? void 0 : _g.initialWindowSize) !== null && _h !== void 0 ? _h : 65535; // 65 535 B + const connWin = options['grpc-node.flow_control_window']; + this.session = session; + let errorMessage = 'Failed to connect'; + let reportedError = false; + session.unref(); + session.once('remoteSettings', () => { + var _a; + // Send WINDOW_UPDATE now to avoid 65 KB start-window stall. + if (connWin && connWin > defaultWin) { + try { + // Node ≥ 14.18 + session.setLocalWindowSize(connWin); + } + catch (_b) { + // Older Node: bump by the delta + const delta = connWin - ((_a = session.state.localWindowSize) !== null && _a !== void 0 ? _a : defaultWin); + if (delta > 0) + session.incrementWindowSize(delta); + } + } + session.removeAllListeners(); + secureConnectResult.socket.removeListener('close', closeHandler); + secureConnectResult.socket.removeListener('error', errorHandler); + resolve(new Http2Transport(session, address, options, remoteName)); + this.session = null; + }); + session.once('close', closeHandler); + session.once('error', errorHandler); + secureConnectResult.socket.once('close', closeHandler); + secureConnectResult.socket.once('error', errorHandler); + }); + } + tcpConnect(address, options) { + return (0, http_proxy_1.getProxiedConnection)(address, options).then(proxiedSocket => { + if (proxiedSocket) { + return proxiedSocket; + } + else { + return new Promise((resolve, reject) => { + const closeCallback = () => { + reject(new Error('Socket closed')); + }; + const errorCallback = (error) => { + reject(error); + }; + const socket = net.connect(address, () => { + socket.removeListener('close', closeCallback); + socket.removeListener('error', errorCallback); + resolve(socket); + }); + socket.once('close', closeCallback); + socket.once('error', errorCallback); + }); + } + }); + } + async connect(address, secureConnector, options) { + if (this.isShutdown) { + return Promise.reject(); + } + let tcpConnection = null; + let secureConnectResult = null; + const addressString = (0, subchannel_address_1.subchannelAddressToString)(address); + try { + this.trace(addressString + ' Waiting for secureConnector to be ready'); + await secureConnector.waitForReady(); + this.trace(addressString + ' secureConnector is ready'); + tcpConnection = await this.tcpConnect(address, options); + tcpConnection.setNoDelay(); + this.trace(addressString + ' Established TCP connection'); + secureConnectResult = await secureConnector.connect(tcpConnection); + this.trace(addressString + ' Established secure connection'); + return this.createSession(secureConnectResult, address, options); + } + catch (e) { + tcpConnection === null || tcpConnection === void 0 ? void 0 : tcpConnection.destroy(); + secureConnectResult === null || secureConnectResult === void 0 ? void 0 : secureConnectResult.socket.destroy(); + throw e; + } + } + shutdown() { + var _a; + this.isShutdown = true; + (_a = this.session) === null || _a === void 0 ? void 0 : _a.close(); + this.session = null; + } +} +exports.Http2SubchannelConnector = Http2SubchannelConnector; +//# sourceMappingURL=transport.js.map + +/***/ }), + +/***/ 56027: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +/* + * Copyright 2020 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.parseUri = parseUri; +exports.splitHostPort = splitHostPort; +exports.combineHostPort = combineHostPort; +exports.uriToString = uriToString; +/* + * The groups correspond to URI parts as follows: + * 1. scheme + * 2. authority + * 3. path + */ +const URI_REGEX = /^(?:([A-Za-z0-9+.-]+):)?(?:\/\/([^/]*)\/)?(.+)$/; +function parseUri(uriString) { + const parsedUri = URI_REGEX.exec(uriString); + if (parsedUri === null) { + return null; + } + return { + scheme: parsedUri[1], + authority: parsedUri[2], + path: parsedUri[3], + }; +} +const NUMBER_REGEX = /^\d+$/; +function splitHostPort(path) { + if (path.startsWith('[')) { + const hostEnd = path.indexOf(']'); + if (hostEnd === -1) { + return null; + } + const host = path.substring(1, hostEnd); + /* Only an IPv6 address should be in bracketed notation, and an IPv6 + * address should have at least one colon */ + if (host.indexOf(':') === -1) { + return null; + } + if (path.length > hostEnd + 1) { + if (path[hostEnd + 1] === ':') { + const portString = path.substring(hostEnd + 2); + if (NUMBER_REGEX.test(portString)) { + return { + host: host, + port: +portString, + }; + } + else { + return null; + } + } + else { + return null; + } + } + else { + return { + host, + }; + } + } + else { + const splitPath = path.split(':'); + /* Exactly one colon means that this is host:port. Zero colons means that + * there is no port. And multiple colons means that this is a bare IPv6 + * address with no port */ + if (splitPath.length === 2) { + if (NUMBER_REGEX.test(splitPath[1])) { + return { + host: splitPath[0], + port: +splitPath[1], + }; + } + else { + return null; + } + } + else { + return { + host: path, + }; + } + } +} +function combineHostPort(hostPort) { + if (hostPort.port === undefined) { + return hostPort.host; + } + else { + // Only an IPv6 host should include a colon + if (hostPort.host.includes(':')) { + return `[${hostPort.host}]:${hostPort.port}`; + } + else { + return `${hostPort.host}:${hostPort.port}`; + } + } +} +function uriToString(uri) { + let result = ''; + if (uri.scheme !== undefined) { + result += uri.scheme + ':'; + } + if (uri.authority !== undefined) { + result += '//' + uri.authority + '/'; + } + result += uri.path; + return result; +} +//# sourceMappingURL=uri-parser.js.map + +/***/ }), + +/***/ 73066: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +var __webpack_unused_export__; + +/** + * @license + * Copyright 2018 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +__webpack_unused_export__ = ({ value: true }); +__webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = exports.Yi = __webpack_unused_export__ = exports.Ib = __webpack_unused_export__ = __webpack_unused_export__ = void 0; +const camelCase = __nccwpck_require__(14277); +const Protobuf = __nccwpck_require__(23928); +const descriptor = __nccwpck_require__(6412); +const util_1 = __nccwpck_require__(25972); +const Long = __nccwpck_require__(66390); +__webpack_unused_export__ = Long; +function isAnyExtension(obj) { + return ('@type' in obj) && (typeof obj['@type'] === 'string'); +} +__webpack_unused_export__ = isAnyExtension; +var IdempotencyLevel; +(function (IdempotencyLevel) { + IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = "IDEMPOTENCY_UNKNOWN"; + IdempotencyLevel["NO_SIDE_EFFECTS"] = "NO_SIDE_EFFECTS"; + IdempotencyLevel["IDEMPOTENT"] = "IDEMPOTENT"; +})(IdempotencyLevel = exports.Ib || (exports.Ib = {})); +const descriptorOptions = { + longs: String, + enums: String, + bytes: String, + defaults: true, + oneofs: true, + json: true, +}; +function joinName(baseName, name) { + if (baseName === '') { + return name; + } + else { + return baseName + '.' + name; + } +} +function isHandledReflectionObject(obj) { + return (obj instanceof Protobuf.Service || + obj instanceof Protobuf.Type || + obj instanceof Protobuf.Enum); +} +function isNamespaceBase(obj) { + return obj instanceof Protobuf.Namespace || obj instanceof Protobuf.Root; +} +function getAllHandledReflectionObjects(obj, parentName) { + const objName = joinName(parentName, obj.name); + if (isHandledReflectionObject(obj)) { + return [[objName, obj]]; + } + else { + if (isNamespaceBase(obj) && typeof obj.nested !== 'undefined') { + return Object.keys(obj.nested) + .map(name => { + return getAllHandledReflectionObjects(obj.nested[name], objName); + }) + .reduce((accumulator, currentValue) => accumulator.concat(currentValue), []); + } + } + return []; +} +function createDeserializer(cls, options) { + return function deserialize(argBuf) { + return cls.toObject(cls.decode(argBuf), options); + }; +} +function createSerializer(cls) { + return function serialize(arg) { + if (Array.isArray(arg)) { + throw new Error(`Failed to serialize message: expected object with ${cls.name} structure, got array instead`); + } + const message = cls.fromObject(arg); + return cls.encode(message).finish(); + }; +} +function mapMethodOptions(options) { + return (options || []).reduce((obj, item) => { + for (const [key, value] of Object.entries(item)) { + switch (key) { + case 'uninterpreted_option': + obj.uninterpreted_option.push(item.uninterpreted_option); + break; + default: + obj[key] = value; + } + } + return obj; + }, { + deprecated: false, + idempotency_level: IdempotencyLevel.IDEMPOTENCY_UNKNOWN, + uninterpreted_option: [], + }); +} +function createMethodDefinition(method, serviceName, options, fileDescriptors) { + /* This is only ever called after the corresponding root.resolveAll(), so we + * can assume that the resolved request and response types are non-null */ + const requestType = method.resolvedRequestType; + const responseType = method.resolvedResponseType; + return { + path: '/' + serviceName + '/' + method.name, + requestStream: !!method.requestStream, + responseStream: !!method.responseStream, + requestSerialize: createSerializer(requestType), + requestDeserialize: createDeserializer(requestType, options), + responseSerialize: createSerializer(responseType), + responseDeserialize: createDeserializer(responseType, options), + // TODO(murgatroid99): Find a better way to handle this + originalName: camelCase(method.name), + requestType: createMessageDefinition(requestType, options, fileDescriptors), + responseType: createMessageDefinition(responseType, options, fileDescriptors), + options: mapMethodOptions(method.parsedOptions), + }; +} +function createServiceDefinition(service, name, options, fileDescriptors) { + const def = {}; + for (const method of service.methodsArray) { + def[method.name] = createMethodDefinition(method, name, options, fileDescriptors); + } + return def; +} +function createMessageDefinition(message, options, fileDescriptors) { + const messageDescriptor = message.toDescriptor('proto3'); + return { + format: 'Protocol Buffer 3 DescriptorProto', + type: messageDescriptor.$type.toObject(messageDescriptor, descriptorOptions), + fileDescriptorProtos: fileDescriptors, + serialize: createSerializer(message), + deserialize: createDeserializer(message, options) + }; +} +function createEnumDefinition(enumType, fileDescriptors) { + const enumDescriptor = enumType.toDescriptor('proto3'); + return { + format: 'Protocol Buffer 3 EnumDescriptorProto', + type: enumDescriptor.$type.toObject(enumDescriptor, descriptorOptions), + fileDescriptorProtos: fileDescriptors, + }; +} +/** + * function createDefinition(obj: Protobuf.Service, name: string, options: + * Options): ServiceDefinition; function createDefinition(obj: Protobuf.Type, + * name: string, options: Options): MessageTypeDefinition; function + * createDefinition(obj: Protobuf.Enum, name: string, options: Options): + * EnumTypeDefinition; + */ +function createDefinition(obj, name, options, fileDescriptors) { + if (obj instanceof Protobuf.Service) { + return createServiceDefinition(obj, name, options, fileDescriptors); + } + else if (obj instanceof Protobuf.Type) { + return createMessageDefinition(obj, options, fileDescriptors); + } + else if (obj instanceof Protobuf.Enum) { + return createEnumDefinition(obj, fileDescriptors); + } + else { + throw new Error('Type mismatch in reflection object handling'); + } +} +function createPackageDefinition(root, options) { + const def = {}; + root.resolveAll(); + const descriptorList = root.toDescriptor('proto3').file; + const bufferList = descriptorList.map(value => Buffer.from(descriptor.FileDescriptorProto.encode(value).finish())); + for (const [name, obj] of getAllHandledReflectionObjects(root, '')) { + def[name] = createDefinition(obj, name, options, bufferList); + } + return def; +} +function createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options) { + options = options || {}; + const root = Protobuf.Root.fromDescriptor(decodedDescriptorSet); + root.resolveAll(); + return createPackageDefinition(root, options); +} +/** + * Load a .proto file with the specified options. + * @param filename One or multiple file paths to load. Can be an absolute path + * or relative to an include path. + * @param options.keepCase Preserve field names. The default is to change them + * to camel case. + * @param options.longs The type that should be used to represent `long` values. + * Valid options are `Number` and `String`. Defaults to a `Long` object type + * from a library. + * @param options.enums The type that should be used to represent `enum` values. + * The only valid option is `String`. Defaults to the numeric value. + * @param options.bytes The type that should be used to represent `bytes` + * values. Valid options are `Array` and `String`. The default is to use + * `Buffer`. + * @param options.defaults Set default values on output objects. Defaults to + * `false`. + * @param options.arrays Set empty arrays for missing array values even if + * `defaults` is `false`. Defaults to `false`. + * @param options.objects Set empty objects for missing object values even if + * `defaults` is `false`. Defaults to `false`. + * @param options.oneofs Set virtual oneof properties to the present field's + * name + * @param options.json Represent Infinity and NaN as strings in float fields, + * and automatically decode google.protobuf.Any values. + * @param options.includeDirs Paths to search for imported `.proto` files. + */ +function load(filename, options) { + return (0, util_1.loadProtosWithOptions)(filename, options).then(loadedRoot => { + return createPackageDefinition(loadedRoot, options); + }); +} +__webpack_unused_export__ = load; +function loadSync(filename, options) { + const loadedRoot = (0, util_1.loadProtosWithOptionsSync)(filename, options); + return createPackageDefinition(loadedRoot, options); +} +exports.Yi = loadSync; +function fromJSON(json, options) { + options = options || {}; + const loadedRoot = Protobuf.Root.fromJSON(json); + loadedRoot.resolveAll(); + return createPackageDefinition(loadedRoot, options); +} +__webpack_unused_export__ = fromJSON; +function loadFileDescriptorSetFromBuffer(descriptorSet, options) { + const decodedDescriptorSet = descriptor.FileDescriptorSet.decode(descriptorSet); + return createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options); +} +__webpack_unused_export__ = loadFileDescriptorSetFromBuffer; +function loadFileDescriptorSetFromObject(descriptorSet, options) { + const decodedDescriptorSet = descriptor.FileDescriptorSet.fromObject(descriptorSet); + return createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options); +} +__webpack_unused_export__ = loadFileDescriptorSetFromObject; +(0, util_1.addCommonProtos)(); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 25972: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * @license + * Copyright 2018 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.addCommonProtos = exports.loadProtosWithOptionsSync = exports.loadProtosWithOptions = void 0; +const fs = __nccwpck_require__(79896); +const path = __nccwpck_require__(16928); +const Protobuf = __nccwpck_require__(23928); +function addIncludePathResolver(root, includePaths) { + const originalResolvePath = root.resolvePath; + root.resolvePath = (origin, target) => { + if (path.isAbsolute(target)) { + return target; + } + for (const directory of includePaths) { + const fullPath = path.join(directory, target); + try { + fs.accessSync(fullPath, fs.constants.R_OK); + return fullPath; + } + catch (err) { + continue; + } + } + process.emitWarning(`${target} not found in any of the include paths ${includePaths}`); + return originalResolvePath(origin, target); + }; +} +async function loadProtosWithOptions(filename, options) { + const root = new Protobuf.Root(); + options = options || {}; + if (!!options.includeDirs) { + if (!Array.isArray(options.includeDirs)) { + return Promise.reject(new Error('The includeDirs option must be an array')); + } + addIncludePathResolver(root, options.includeDirs); + } + const loadedRoot = await root.load(filename, options); + loadedRoot.resolveAll(); + return loadedRoot; +} +exports.loadProtosWithOptions = loadProtosWithOptions; +function loadProtosWithOptionsSync(filename, options) { + const root = new Protobuf.Root(); + options = options || {}; + if (!!options.includeDirs) { + if (!Array.isArray(options.includeDirs)) { + throw new Error('The includeDirs option must be an array'); + } + addIncludePathResolver(root, options.includeDirs); + } + const loadedRoot = root.loadSync(filename, options); + loadedRoot.resolveAll(); + return loadedRoot; +} +exports.loadProtosWithOptionsSync = loadProtosWithOptionsSync; +/** + * Load Google's well-known proto files that aren't exposed by Protobuf.js. + */ +function addCommonProtos() { + // Protobuf.js exposes: any, duration, empty, field_mask, struct, timestamp, + // and wrappers. compiler/plugin is excluded in Protobuf.js and here. + // Using constant strings for compatibility with tools like Webpack + const apiDescriptor = __nccwpck_require__(15434); + const descriptorDescriptor = __nccwpck_require__(93951); + const sourceContextDescriptor = __nccwpck_require__(92939); + const typeDescriptor = __nccwpck_require__(36710); + Protobuf.common('api', apiDescriptor.nested.google.nested.protobuf.nested); + Protobuf.common('descriptor', descriptorDescriptor.nested.google.nested.protobuf.nested); + Protobuf.common('source_context', sourceContextDescriptor.nested.google.nested.protobuf.nested); + Protobuf.common('type', typeDescriptor.nested.google.nested.protobuf.nested); +} +exports.addCommonProtos = addCommonProtos; +//# sourceMappingURL=util.js.map + +/***/ }), + +/***/ 76081: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * @license + * Copyright 2018 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.loadFileDescriptorSetFromObject = exports.loadFileDescriptorSetFromBuffer = exports.fromJSON = exports.loadSync = exports.load = exports.IdempotencyLevel = exports.isAnyExtension = exports.Long = void 0; +const camelCase = __nccwpck_require__(14277); +const Protobuf = __nccwpck_require__(23928); +const descriptor = __nccwpck_require__(6412); +const util_1 = __nccwpck_require__(48057); +const Long = __nccwpck_require__(66390); +exports.Long = Long; +function isAnyExtension(obj) { + return ('@type' in obj) && (typeof obj['@type'] === 'string'); +} +exports.isAnyExtension = isAnyExtension; +var IdempotencyLevel; +(function (IdempotencyLevel) { + IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = "IDEMPOTENCY_UNKNOWN"; + IdempotencyLevel["NO_SIDE_EFFECTS"] = "NO_SIDE_EFFECTS"; + IdempotencyLevel["IDEMPOTENT"] = "IDEMPOTENT"; +})(IdempotencyLevel = exports.IdempotencyLevel || (exports.IdempotencyLevel = {})); +const descriptorOptions = { + longs: String, + enums: String, + bytes: String, + defaults: true, + oneofs: true, + json: true, +}; +function joinName(baseName, name) { + if (baseName === '') { + return name; + } + else { + return baseName + '.' + name; + } +} +function isHandledReflectionObject(obj) { + return (obj instanceof Protobuf.Service || + obj instanceof Protobuf.Type || + obj instanceof Protobuf.Enum); +} +function isNamespaceBase(obj) { + return obj instanceof Protobuf.Namespace || obj instanceof Protobuf.Root; +} +function getAllHandledReflectionObjects(obj, parentName) { + const objName = joinName(parentName, obj.name); + if (isHandledReflectionObject(obj)) { + return [[objName, obj]]; + } + else { + if (isNamespaceBase(obj) && typeof obj.nested !== 'undefined') { + return Object.keys(obj.nested) + .map(name => { + return getAllHandledReflectionObjects(obj.nested[name], objName); + }) + .reduce((accumulator, currentValue) => accumulator.concat(currentValue), []); + } + } + return []; +} +function createDeserializer(cls, options) { + return function deserialize(argBuf) { + return cls.toObject(cls.decode(argBuf), options); + }; +} +function createSerializer(cls) { + return function serialize(arg) { + if (Array.isArray(arg)) { + throw new Error(`Failed to serialize message: expected object with ${cls.name} structure, got array instead`); + } + const message = cls.fromObject(arg); + return cls.encode(message).finish(); + }; +} +function mapMethodOptions(options) { + return (options || []).reduce((obj, item) => { + for (const [key, value] of Object.entries(item)) { + switch (key) { + case 'uninterpreted_option': + obj.uninterpreted_option.push(item.uninterpreted_option); + break; + default: + obj[key] = value; + } + } + return obj; + }, { + deprecated: false, + idempotency_level: IdempotencyLevel.IDEMPOTENCY_UNKNOWN, + uninterpreted_option: [], + }); +} +function createMethodDefinition(method, serviceName, options, fileDescriptors) { + /* This is only ever called after the corresponding root.resolveAll(), so we + * can assume that the resolved request and response types are non-null */ + const requestType = method.resolvedRequestType; + const responseType = method.resolvedResponseType; + return { + path: '/' + serviceName + '/' + method.name, + requestStream: !!method.requestStream, + responseStream: !!method.responseStream, + requestSerialize: createSerializer(requestType), + requestDeserialize: createDeserializer(requestType, options), + responseSerialize: createSerializer(responseType), + responseDeserialize: createDeserializer(responseType, options), + // TODO(murgatroid99): Find a better way to handle this + originalName: camelCase(method.name), + requestType: createMessageDefinition(requestType, fileDescriptors), + responseType: createMessageDefinition(responseType, fileDescriptors), + options: mapMethodOptions(method.parsedOptions), + }; +} +function createServiceDefinition(service, name, options, fileDescriptors) { + const def = {}; + for (const method of service.methodsArray) { + def[method.name] = createMethodDefinition(method, name, options, fileDescriptors); + } + return def; +} +function createMessageDefinition(message, fileDescriptors) { + const messageDescriptor = message.toDescriptor('proto3'); + return { + format: 'Protocol Buffer 3 DescriptorProto', + type: messageDescriptor.$type.toObject(messageDescriptor, descriptorOptions), + fileDescriptorProtos: fileDescriptors, + }; +} +function createEnumDefinition(enumType, fileDescriptors) { + const enumDescriptor = enumType.toDescriptor('proto3'); + return { + format: 'Protocol Buffer 3 EnumDescriptorProto', + type: enumDescriptor.$type.toObject(enumDescriptor, descriptorOptions), + fileDescriptorProtos: fileDescriptors, + }; +} +/** + * function createDefinition(obj: Protobuf.Service, name: string, options: + * Options): ServiceDefinition; function createDefinition(obj: Protobuf.Type, + * name: string, options: Options): MessageTypeDefinition; function + * createDefinition(obj: Protobuf.Enum, name: string, options: Options): + * EnumTypeDefinition; + */ +function createDefinition(obj, name, options, fileDescriptors) { + if (obj instanceof Protobuf.Service) { + return createServiceDefinition(obj, name, options, fileDescriptors); + } + else if (obj instanceof Protobuf.Type) { + return createMessageDefinition(obj, fileDescriptors); + } + else if (obj instanceof Protobuf.Enum) { + return createEnumDefinition(obj, fileDescriptors); + } + else { + throw new Error('Type mismatch in reflection object handling'); + } +} +function createPackageDefinition(root, options) { + const def = {}; + root.resolveAll(); + const descriptorList = root.toDescriptor('proto3').file; + const bufferList = descriptorList.map(value => Buffer.from(descriptor.FileDescriptorProto.encode(value).finish())); + for (const [name, obj] of getAllHandledReflectionObjects(root, '')) { + def[name] = createDefinition(obj, name, options, bufferList); + } + return def; +} +function createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options) { + options = options || {}; + const root = Protobuf.Root.fromDescriptor(decodedDescriptorSet); + root.resolveAll(); + return createPackageDefinition(root, options); +} +/** + * Load a .proto file with the specified options. + * @param filename One or multiple file paths to load. Can be an absolute path + * or relative to an include path. + * @param options.keepCase Preserve field names. The default is to change them + * to camel case. + * @param options.longs The type that should be used to represent `long` values. + * Valid options are `Number` and `String`. Defaults to a `Long` object type + * from a library. + * @param options.enums The type that should be used to represent `enum` values. + * The only valid option is `String`. Defaults to the numeric value. + * @param options.bytes The type that should be used to represent `bytes` + * values. Valid options are `Array` and `String`. The default is to use + * `Buffer`. + * @param options.defaults Set default values on output objects. Defaults to + * `false`. + * @param options.arrays Set empty arrays for missing array values even if + * `defaults` is `false`. Defaults to `false`. + * @param options.objects Set empty objects for missing object values even if + * `defaults` is `false`. Defaults to `false`. + * @param options.oneofs Set virtual oneof properties to the present field's + * name + * @param options.json Represent Infinity and NaN as strings in float fields, + * and automatically decode google.protobuf.Any values. + * @param options.includeDirs Paths to search for imported `.proto` files. + */ +function load(filename, options) { + return (0, util_1.loadProtosWithOptions)(filename, options).then(loadedRoot => { + return createPackageDefinition(loadedRoot, options); + }); +} +exports.load = load; +function loadSync(filename, options) { + const loadedRoot = (0, util_1.loadProtosWithOptionsSync)(filename, options); + return createPackageDefinition(loadedRoot, options); +} +exports.loadSync = loadSync; +function fromJSON(json, options) { + options = options || {}; + const loadedRoot = Protobuf.Root.fromJSON(json); + loadedRoot.resolveAll(); + return createPackageDefinition(loadedRoot, options); +} +exports.fromJSON = fromJSON; +function loadFileDescriptorSetFromBuffer(descriptorSet, options) { + const decodedDescriptorSet = descriptor.FileDescriptorSet.decode(descriptorSet); + return createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options); +} +exports.loadFileDescriptorSetFromBuffer = loadFileDescriptorSetFromBuffer; +function loadFileDescriptorSetFromObject(descriptorSet, options) { + const decodedDescriptorSet = descriptor.FileDescriptorSet.fromObject(descriptorSet); + return createPackageDefinitionFromDescriptorSet(decodedDescriptorSet, options); +} +exports.loadFileDescriptorSetFromObject = loadFileDescriptorSetFromObject; +(0, util_1.addCommonProtos)(); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 48057: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * @license + * Copyright 2018 gRPC authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.addCommonProtos = exports.loadProtosWithOptionsSync = exports.loadProtosWithOptions = void 0; +const fs = __nccwpck_require__(79896); +const path = __nccwpck_require__(16928); +const Protobuf = __nccwpck_require__(23928); +function addIncludePathResolver(root, includePaths) { + const originalResolvePath = root.resolvePath; + root.resolvePath = (origin, target) => { + if (path.isAbsolute(target)) { + return target; + } + for (const directory of includePaths) { + const fullPath = path.join(directory, target); + try { + fs.accessSync(fullPath, fs.constants.R_OK); + return fullPath; + } + catch (err) { + continue; + } + } + process.emitWarning(`${target} not found in any of the include paths ${includePaths}`); + return originalResolvePath(origin, target); + }; +} +async function loadProtosWithOptions(filename, options) { + const root = new Protobuf.Root(); + options = options || {}; + if (!!options.includeDirs) { + if (!Array.isArray(options.includeDirs)) { + return Promise.reject(new Error('The includeDirs option must be an array')); + } + addIncludePathResolver(root, options.includeDirs); + } + const loadedRoot = await root.load(filename, options); + loadedRoot.resolveAll(); + return loadedRoot; +} +exports.loadProtosWithOptions = loadProtosWithOptions; +function loadProtosWithOptionsSync(filename, options) { + const root = new Protobuf.Root(); + options = options || {}; + if (!!options.includeDirs) { + if (!Array.isArray(options.includeDirs)) { + throw new Error('The includeDirs option must be an array'); + } + addIncludePathResolver(root, options.includeDirs); + } + const loadedRoot = root.loadSync(filename, options); + loadedRoot.resolveAll(); + return loadedRoot; +} +exports.loadProtosWithOptionsSync = loadProtosWithOptionsSync; +/** + * Load Google's well-known proto files that aren't exposed by Protobuf.js. + */ +function addCommonProtos() { + // Protobuf.js exposes: any, duration, empty, field_mask, struct, timestamp, + // and wrappers. compiler/plugin is excluded in Protobuf.js and here. + // Using constant strings for compatibility with tools like Webpack + const apiDescriptor = __nccwpck_require__(15434); + const descriptorDescriptor = __nccwpck_require__(93951); + const sourceContextDescriptor = __nccwpck_require__(92939); + const typeDescriptor = __nccwpck_require__(36710); + Protobuf.common('api', apiDescriptor.nested.google.nested.protobuf.nested); + Protobuf.common('descriptor', descriptorDescriptor.nested.google.nested.protobuf.nested); + Protobuf.common('source_context', sourceContextDescriptor.nested.google.nested.protobuf.nested); + Protobuf.common('type', typeDescriptor.nested.google.nested.protobuf.nested); +} +exports.addCommonProtos = addCommonProtos; +//# sourceMappingURL=util.js.map + +/***/ }), + +/***/ 60137: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +Object.defineProperty(exports, "t", ({ + value: true +})); + +class TreeNode { + constructor(t, e, s = 1) { + this.i = undefined; + this.h = undefined; + this.o = undefined; + this.u = t; + this.l = e; + this.p = s; + } + I() { + let t = this; + const e = t.o.o === t; + if (e && t.p === 1) { + t = t.h; + } else if (t.i) { + t = t.i; + while (t.h) { + t = t.h; + } + } else { + if (e) { + return t.o; + } + let s = t.o; + while (s.i === t) { + t = s; + s = t.o; + } + t = s; + } + return t; + } + B() { + let t = this; + if (t.h) { + t = t.h; + while (t.i) { + t = t.i; + } + return t; + } else { + let e = t.o; + while (e.h === t) { + t = e; + e = t.o; + } + if (t.h !== e) { + return e; + } else return t; + } + } + _() { + const t = this.o; + const e = this.h; + const s = e.i; + if (t.o === this) t.o = e; else if (t.i === this) t.i = e; else t.h = e; + e.o = t; + e.i = this; + this.o = e; + this.h = s; + if (s) s.o = this; + return e; + } + g() { + const t = this.o; + const e = this.i; + const s = e.h; + if (t.o === this) t.o = e; else if (t.i === this) t.i = e; else t.h = e; + e.o = t; + e.h = this; + this.o = e; + this.i = s; + if (s) s.o = this; + return e; + } +} + +class TreeNodeEnableIndex extends TreeNode { + constructor() { + super(...arguments); + this.M = 1; + } + _() { + const t = super._(); + this.O(); + t.O(); + return t; + } + g() { + const t = super.g(); + this.O(); + t.O(); + return t; + } + O() { + this.M = 1; + if (this.i) { + this.M += this.i.M; + } + if (this.h) { + this.M += this.h.M; + } + } +} + +class ContainerIterator { + constructor(t = 0) { + this.iteratorType = t; + } + equals(t) { + return this.T === t.T; + } +} + +class Base { + constructor() { + this.m = 0; + } + get length() { + return this.m; + } + size() { + return this.m; + } + empty() { + return this.m === 0; + } +} + +class Container extends Base {} + +function throwIteratorAccessError() { + throw new RangeError("Iterator access denied!"); +} + +class TreeContainer extends Container { + constructor(t = function(t, e) { + if (t < e) return -1; + if (t > e) return 1; + return 0; + }, e = false) { + super(); + this.v = undefined; + this.A = t; + this.enableIndex = e; + this.N = e ? TreeNodeEnableIndex : TreeNode; + this.C = new this.N; + } + R(t, e) { + let s = this.C; + while (t) { + const i = this.A(t.u, e); + if (i < 0) { + t = t.h; + } else if (i > 0) { + s = t; + t = t.i; + } else return t; + } + return s; + } + K(t, e) { + let s = this.C; + while (t) { + const i = this.A(t.u, e); + if (i <= 0) { + t = t.h; + } else { + s = t; + t = t.i; + } + } + return s; + } + L(t, e) { + let s = this.C; + while (t) { + const i = this.A(t.u, e); + if (i < 0) { + s = t; + t = t.h; + } else if (i > 0) { + t = t.i; + } else return t; + } + return s; + } + k(t, e) { + let s = this.C; + while (t) { + const i = this.A(t.u, e); + if (i < 0) { + s = t; + t = t.h; + } else { + t = t.i; + } + } + return s; + } + P(t) { + while (true) { + const e = t.o; + if (e === this.C) return; + if (t.p === 1) { + t.p = 0; + return; + } + if (t === e.i) { + const s = e.h; + if (s.p === 1) { + s.p = 0; + e.p = 1; + if (e === this.v) { + this.v = e._(); + } else e._(); + } else { + if (s.h && s.h.p === 1) { + s.p = e.p; + e.p = 0; + s.h.p = 0; + if (e === this.v) { + this.v = e._(); + } else e._(); + return; + } else if (s.i && s.i.p === 1) { + s.p = 1; + s.i.p = 0; + s.g(); + } else { + s.p = 1; + t = e; + } + } + } else { + const s = e.i; + if (s.p === 1) { + s.p = 0; + e.p = 1; + if (e === this.v) { + this.v = e.g(); + } else e.g(); + } else { + if (s.i && s.i.p === 1) { + s.p = e.p; + e.p = 0; + s.i.p = 0; + if (e === this.v) { + this.v = e.g(); + } else e.g(); + return; + } else if (s.h && s.h.p === 1) { + s.p = 1; + s.h.p = 0; + s._(); + } else { + s.p = 1; + t = e; + } + } + } + } + } + S(t) { + if (this.m === 1) { + this.clear(); + return; + } + let e = t; + while (e.i || e.h) { + if (e.h) { + e = e.h; + while (e.i) e = e.i; + } else { + e = e.i; + } + const s = t.u; + t.u = e.u; + e.u = s; + const i = t.l; + t.l = e.l; + e.l = i; + t = e; + } + if (this.C.i === e) { + this.C.i = e.o; + } else if (this.C.h === e) { + this.C.h = e.o; + } + this.P(e); + let s = e.o; + if (e === s.i) { + s.i = undefined; + } else s.h = undefined; + this.m -= 1; + this.v.p = 0; + if (this.enableIndex) { + while (s !== this.C) { + s.M -= 1; + s = s.o; + } + } + } + U(t) { + const e = typeof t === "number" ? t : undefined; + const s = typeof t === "function" ? t : undefined; + const i = typeof t === "undefined" ? [] : undefined; + let r = 0; + let n = this.v; + const h = []; + while (h.length || n) { + if (n) { + h.push(n); + n = n.i; + } else { + n = h.pop(); + if (r === e) return n; + i && i.push(n); + s && s(n, r, this); + r += 1; + n = n.h; + } + } + return i; + } + j(t) { + while (true) { + const e = t.o; + if (e.p === 0) return; + const s = e.o; + if (e === s.i) { + const i = s.h; + if (i && i.p === 1) { + i.p = e.p = 0; + if (s === this.v) return; + s.p = 1; + t = s; + continue; + } else if (t === e.h) { + t.p = 0; + if (t.i) { + t.i.o = e; + } + if (t.h) { + t.h.o = s; + } + e.h = t.i; + s.i = t.h; + t.i = e; + t.h = s; + if (s === this.v) { + this.v = t; + this.C.o = t; + } else { + const e = s.o; + if (e.i === s) { + e.i = t; + } else e.h = t; + } + t.o = s.o; + e.o = t; + s.o = t; + s.p = 1; + } else { + e.p = 0; + if (s === this.v) { + this.v = s.g(); + } else s.g(); + s.p = 1; + return; + } + } else { + const i = s.i; + if (i && i.p === 1) { + i.p = e.p = 0; + if (s === this.v) return; + s.p = 1; + t = s; + continue; + } else if (t === e.i) { + t.p = 0; + if (t.i) { + t.i.o = s; + } + if (t.h) { + t.h.o = e; + } + s.h = t.i; + e.i = t.h; + t.i = s; + t.h = e; + if (s === this.v) { + this.v = t; + this.C.o = t; + } else { + const e = s.o; + if (e.i === s) { + e.i = t; + } else e.h = t; + } + t.o = s.o; + e.o = t; + s.o = t; + s.p = 1; + } else { + e.p = 0; + if (s === this.v) { + this.v = s._(); + } else s._(); + s.p = 1; + return; + } + } + if (this.enableIndex) { + e.O(); + s.O(); + t.O(); + } + return; + } + } + q(t, e, s) { + if (this.v === undefined) { + this.m += 1; + this.v = new this.N(t, e, 0); + this.v.o = this.C; + this.C.o = this.C.i = this.C.h = this.v; + return this.m; + } + let i; + const r = this.C.i; + const n = this.A(r.u, t); + if (n === 0) { + r.l = e; + return this.m; + } else if (n > 0) { + r.i = new this.N(t, e); + r.i.o = r; + i = r.i; + this.C.i = i; + } else { + const r = this.C.h; + const n = this.A(r.u, t); + if (n === 0) { + r.l = e; + return this.m; + } else if (n < 0) { + r.h = new this.N(t, e); + r.h.o = r; + i = r.h; + this.C.h = i; + } else { + if (s !== undefined) { + const r = s.T; + if (r !== this.C) { + const s = this.A(r.u, t); + if (s === 0) { + r.l = e; + return this.m; + } else if (s > 0) { + const s = r.I(); + const n = this.A(s.u, t); + if (n === 0) { + s.l = e; + return this.m; + } else if (n < 0) { + i = new this.N(t, e); + if (s.h === undefined) { + s.h = i; + i.o = s; + } else { + r.i = i; + i.o = r; + } + } + } + } + } + if (i === undefined) { + i = this.v; + while (true) { + const s = this.A(i.u, t); + if (s > 0) { + if (i.i === undefined) { + i.i = new this.N(t, e); + i.i.o = i; + i = i.i; + break; + } + i = i.i; + } else if (s < 0) { + if (i.h === undefined) { + i.h = new this.N(t, e); + i.h.o = i; + i = i.h; + break; + } + i = i.h; + } else { + i.l = e; + return this.m; + } + } + } + } + } + if (this.enableIndex) { + let t = i.o; + while (t !== this.C) { + t.M += 1; + t = t.o; + } + } + this.j(i); + this.m += 1; + return this.m; + } + H(t, e) { + while (t) { + const s = this.A(t.u, e); + if (s < 0) { + t = t.h; + } else if (s > 0) { + t = t.i; + } else return t; + } + return t || this.C; + } + clear() { + this.m = 0; + this.v = undefined; + this.C.o = undefined; + this.C.i = this.C.h = undefined; + } + updateKeyByIterator(t, e) { + const s = t.T; + if (s === this.C) { + throwIteratorAccessError(); + } + if (this.m === 1) { + s.u = e; + return true; + } + const i = s.B().u; + if (s === this.C.i) { + if (this.A(i, e) > 0) { + s.u = e; + return true; + } + return false; + } + const r = s.I().u; + if (s === this.C.h) { + if (this.A(r, e) < 0) { + s.u = e; + return true; + } + return false; + } + if (this.A(r, e) >= 0 || this.A(i, e) <= 0) return false; + s.u = e; + return true; + } + eraseElementByPos(t) { + if (t < 0 || t > this.m - 1) { + throw new RangeError; + } + const e = this.U(t); + this.S(e); + return this.m; + } + eraseElementByKey(t) { + if (this.m === 0) return false; + const e = this.H(this.v, t); + if (e === this.C) return false; + this.S(e); + return true; + } + eraseElementByIterator(t) { + const e = t.T; + if (e === this.C) { + throwIteratorAccessError(); + } + const s = e.h === undefined; + const i = t.iteratorType === 0; + if (i) { + if (s) t.next(); + } else { + if (!s || e.i === undefined) t.next(); + } + this.S(e); + return t; + } + getHeight() { + if (this.m === 0) return 0; + function traversal(t) { + if (!t) return 0; + return Math.max(traversal(t.i), traversal(t.h)) + 1; + } + return traversal(this.v); + } +} + +class TreeIterator extends ContainerIterator { + constructor(t, e, s) { + super(s); + this.T = t; + this.C = e; + if (this.iteratorType === 0) { + this.pre = function() { + if (this.T === this.C.i) { + throwIteratorAccessError(); + } + this.T = this.T.I(); + return this; + }; + this.next = function() { + if (this.T === this.C) { + throwIteratorAccessError(); + } + this.T = this.T.B(); + return this; + }; + } else { + this.pre = function() { + if (this.T === this.C.h) { + throwIteratorAccessError(); + } + this.T = this.T.B(); + return this; + }; + this.next = function() { + if (this.T === this.C) { + throwIteratorAccessError(); + } + this.T = this.T.I(); + return this; + }; + } + } + get index() { + let t = this.T; + const e = this.C.o; + if (t === this.C) { + if (e) { + return e.M - 1; + } + return 0; + } + let s = 0; + if (t.i) { + s += t.i.M; + } + while (t !== e) { + const e = t.o; + if (t === e.h) { + s += 1; + if (e.i) { + s += e.i.M; + } + } + t = e; + } + return s; + } + isAccessible() { + return this.T !== this.C; + } +} + +class OrderedMapIterator extends TreeIterator { + constructor(t, e, s, i) { + super(t, e, i); + this.container = s; + } + get pointer() { + if (this.T === this.C) { + throwIteratorAccessError(); + } + const t = this; + return new Proxy([], { + get(e, s) { + if (s === "0") return t.T.u; else if (s === "1") return t.T.l; + e[0] = t.T.u; + e[1] = t.T.l; + return e[s]; + }, + set(e, s, i) { + if (s !== "1") { + throw new TypeError("prop must be 1"); + } + t.T.l = i; + return true; + } + }); + } + copy() { + return new OrderedMapIterator(this.T, this.C, this.container, this.iteratorType); + } +} + +class OrderedMap extends TreeContainer { + constructor(t = [], e, s) { + super(e, s); + const i = this; + t.forEach((function(t) { + i.setElement(t[0], t[1]); + })); + } + begin() { + return new OrderedMapIterator(this.C.i || this.C, this.C, this); + } + end() { + return new OrderedMapIterator(this.C, this.C, this); + } + rBegin() { + return new OrderedMapIterator(this.C.h || this.C, this.C, this, 1); + } + rEnd() { + return new OrderedMapIterator(this.C, this.C, this, 1); + } + front() { + if (this.m === 0) return; + const t = this.C.i; + return [ t.u, t.l ]; + } + back() { + if (this.m === 0) return; + const t = this.C.h; + return [ t.u, t.l ]; + } + lowerBound(t) { + const e = this.R(this.v, t); + return new OrderedMapIterator(e, this.C, this); + } + upperBound(t) { + const e = this.K(this.v, t); + return new OrderedMapIterator(e, this.C, this); + } + reverseLowerBound(t) { + const e = this.L(this.v, t); + return new OrderedMapIterator(e, this.C, this); + } + reverseUpperBound(t) { + const e = this.k(this.v, t); + return new OrderedMapIterator(e, this.C, this); + } + forEach(t) { + this.U((function(e, s, i) { + t([ e.u, e.l ], s, i); + })); + } + setElement(t, e, s) { + return this.q(t, e, s); + } + getElementByPos(t) { + if (t < 0 || t > this.m - 1) { + throw new RangeError; + } + const e = this.U(t); + return [ e.u, e.l ]; + } + find(t) { + const e = this.H(this.v, t); + return new OrderedMapIterator(e, this.C, this); + } + getElementByKey(t) { + const e = this.H(this.v, t); + return e.l; + } + union(t) { + const e = this; + t.forEach((function(t) { + e.setElement(t[0], t[1]); + })); + return this.m; + } + * [Symbol.iterator]() { + const t = this.m; + const e = this.U(); + for (let s = 0; s < t; ++s) { + const t = e[s]; + yield [ t.u, t.l ]; + } + } +} + +exports.OrderedMap = OrderedMap; +//# sourceMappingURL=index.js.map + + +/***/ }), + +/***/ 26255: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.toBig = exports.shrSL = exports.shrSH = exports.rotrSL = exports.rotrSH = exports.rotrBL = exports.rotrBH = exports.rotr32L = exports.rotr32H = exports.rotlSL = exports.rotlSH = exports.rotlBL = exports.rotlBH = exports.add5L = exports.add5H = exports.add4L = exports.add4H = exports.add3L = exports.add3H = void 0; +exports.add = add; +exports.fromBig = fromBig; +exports.split = split; +/** + * Internal helpers for u64. BigUint64Array is too slow as per 2025, so we implement it using Uint32Array. + * @todo re-check https://issues.chromium.org/issues/42212588 + * @module + */ +const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1); +const _32n = /* @__PURE__ */ BigInt(32); +function fromBig(n, le = false) { + if (le) + return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) }; + return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 }; +} +function split(lst, le = false) { + const len = lst.length; + let Ah = new Uint32Array(len); + let Al = new Uint32Array(len); + for (let i = 0; i < len; i++) { + const { h, l } = fromBig(lst[i], le); + [Ah[i], Al[i]] = [h, l]; + } + return [Ah, Al]; +} +const toBig = (h, l) => (BigInt(h >>> 0) << _32n) | BigInt(l >>> 0); +exports.toBig = toBig; +// for Shift in [0, 32) +const shrSH = (h, _l, s) => h >>> s; +exports.shrSH = shrSH; +const shrSL = (h, l, s) => (h << (32 - s)) | (l >>> s); +exports.shrSL = shrSL; +// Right rotate for Shift in [1, 32) +const rotrSH = (h, l, s) => (h >>> s) | (l << (32 - s)); +exports.rotrSH = rotrSH; +const rotrSL = (h, l, s) => (h << (32 - s)) | (l >>> s); +exports.rotrSL = rotrSL; +// Right rotate for Shift in (32, 64), NOTE: 32 is special case. +const rotrBH = (h, l, s) => (h << (64 - s)) | (l >>> (s - 32)); +exports.rotrBH = rotrBH; +const rotrBL = (h, l, s) => (h >>> (s - 32)) | (l << (64 - s)); +exports.rotrBL = rotrBL; +// Right rotate for shift===32 (just swaps l&h) +const rotr32H = (_h, l) => l; +exports.rotr32H = rotr32H; +const rotr32L = (h, _l) => h; +exports.rotr32L = rotr32L; +// Left rotate for Shift in [1, 32) +const rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s)); +exports.rotlSH = rotlSH; +const rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s)); +exports.rotlSL = rotlSL; +// Left rotate for Shift in (32, 64), NOTE: 32 is special case. +const rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s)); +exports.rotlBH = rotlBH; +const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s)); +exports.rotlBL = rotlBL; +// JS uses 32-bit signed integers for bitwise operations which means we cannot +// simple take carry out of low bit sum by shift, we need to use division. +function add(Ah, Al, Bh, Bl) { + const l = (Al >>> 0) + (Bl >>> 0); + return { h: (Ah + Bh + ((l / 2 ** 32) | 0)) | 0, l: l | 0 }; +} +// Addition with more than 2 elements +const add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0); +exports.add3L = add3L; +const add3H = (low, Ah, Bh, Ch) => (Ah + Bh + Ch + ((low / 2 ** 32) | 0)) | 0; +exports.add3H = add3H; +const add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0); +exports.add4L = add4L; +const add4H = (low, Ah, Bh, Ch, Dh) => (Ah + Bh + Ch + Dh + ((low / 2 ** 32) | 0)) | 0; +exports.add4H = add4H; +const add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0); +exports.add5L = add5L; +const add5H = (low, Ah, Bh, Ch, Dh, Eh) => (Ah + Bh + Ch + Dh + Eh + ((low / 2 ** 32) | 0)) | 0; +exports.add5H = add5H; +// prettier-ignore +const u64 = { + fromBig, split, toBig, + shrSH, shrSL, + rotrSH, rotrSL, rotrBH, rotrBL, + rotr32H, rotr32L, + rotlSH, rotlSL, rotlBH, rotlBL, + add, add3L, add3H, add4L, add4H, add5H, add5L, +}; +exports["default"] = u64; +//# sourceMappingURL=_u64.js.map + +/***/ }), + +/***/ 5048: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.crypto = void 0; +/** + * Internal webcrypto alias. + * We prefer WebCrypto aka globalThis.crypto, which exists in node.js 16+. + * Falls back to Node.js built-in crypto for Node.js <=v14. + * See utils.ts for details. + * @module + */ +// @ts-ignore +const nc = __nccwpck_require__(77598); +exports.crypto = nc && typeof nc === 'object' && 'webcrypto' in nc + ? nc.webcrypto + : nc && typeof nc === 'object' && 'randomBytes' in nc + ? nc + : undefined; +//# sourceMappingURL=cryptoNode.js.map + +/***/ }), + +/***/ 23902: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.shake256 = exports.shake128 = exports.keccak_512 = exports.keccak_384 = exports.keccak_256 = exports.keccak_224 = exports.sha3_512 = exports.sha3_384 = exports.sha3_256 = exports.sha3_224 = exports.Keccak = void 0; +exports.keccakP = keccakP; +/** + * SHA3 (keccak) hash function, based on a new "Sponge function" design. + * Different from older hashes, the internal state is bigger than output size. + * + * Check out [FIPS-202](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf), + * [Website](https://keccak.team/keccak.html), + * [the differences between SHA-3 and Keccak](https://crypto.stackexchange.com/questions/15727/what-are-the-key-differences-between-the-draft-sha-3-standard-and-the-keccak-sub). + * + * Check out `sha3-addons` module for cSHAKE, k12, and others. + * @module + */ +const _u64_ts_1 = __nccwpck_require__(26255); +// prettier-ignore +const utils_ts_1 = __nccwpck_require__(4248); +// No __PURE__ annotations in sha3 header: +// EVERYTHING is in fact used on every export. +// Various per round constants calculations +const _0n = BigInt(0); +const _1n = BigInt(1); +const _2n = BigInt(2); +const _7n = BigInt(7); +const _256n = BigInt(256); +const _0x71n = BigInt(0x71); +const SHA3_PI = []; +const SHA3_ROTL = []; +const _SHA3_IOTA = []; +for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) { + // Pi + [x, y] = [y, (2 * x + 3 * y) % 5]; + SHA3_PI.push(2 * (5 * y + x)); + // Rotational + SHA3_ROTL.push((((round + 1) * (round + 2)) / 2) % 64); + // Iota + let t = _0n; + for (let j = 0; j < 7; j++) { + R = ((R << _1n) ^ ((R >> _7n) * _0x71n)) % _256n; + if (R & _2n) + t ^= _1n << ((_1n << /* @__PURE__ */ BigInt(j)) - _1n); + } + _SHA3_IOTA.push(t); +} +const IOTAS = (0, _u64_ts_1.split)(_SHA3_IOTA, true); +const SHA3_IOTA_H = IOTAS[0]; +const SHA3_IOTA_L = IOTAS[1]; +// Left rotation (without 0, 32, 64) +const rotlH = (h, l, s) => (s > 32 ? (0, _u64_ts_1.rotlBH)(h, l, s) : (0, _u64_ts_1.rotlSH)(h, l, s)); +const rotlL = (h, l, s) => (s > 32 ? (0, _u64_ts_1.rotlBL)(h, l, s) : (0, _u64_ts_1.rotlSL)(h, l, s)); +/** `keccakf1600` internal function, additionally allows to adjust round count. */ +function keccakP(s, rounds = 24) { + const B = new Uint32Array(5 * 2); + // NOTE: all indices are x2 since we store state as u32 instead of u64 (bigints to slow in js) + for (let round = 24 - rounds; round < 24; round++) { + // Theta θ + for (let x = 0; x < 10; x++) + B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40]; + for (let x = 0; x < 10; x += 2) { + const idx1 = (x + 8) % 10; + const idx0 = (x + 2) % 10; + const B0 = B[idx0]; + const B1 = B[idx0 + 1]; + const Th = rotlH(B0, B1, 1) ^ B[idx1]; + const Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1]; + for (let y = 0; y < 50; y += 10) { + s[x + y] ^= Th; + s[x + y + 1] ^= Tl; + } + } + // Rho (ρ) and Pi (π) + let curH = s[2]; + let curL = s[3]; + for (let t = 0; t < 24; t++) { + const shift = SHA3_ROTL[t]; + const Th = rotlH(curH, curL, shift); + const Tl = rotlL(curH, curL, shift); + const PI = SHA3_PI[t]; + curH = s[PI]; + curL = s[PI + 1]; + s[PI] = Th; + s[PI + 1] = Tl; + } + // Chi (χ) + for (let y = 0; y < 50; y += 10) { + for (let x = 0; x < 10; x++) + B[x] = s[y + x]; + for (let x = 0; x < 10; x++) + s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10]; + } + // Iota (ι) + s[0] ^= SHA3_IOTA_H[round]; + s[1] ^= SHA3_IOTA_L[round]; + } + (0, utils_ts_1.clean)(B); +} +/** Keccak sponge function. */ +class Keccak extends utils_ts_1.Hash { + // NOTE: we accept arguments in bytes instead of bits here. + constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) { + super(); + this.pos = 0; + this.posOut = 0; + this.finished = false; + this.destroyed = false; + this.enableXOF = false; + this.blockLen = blockLen; + this.suffix = suffix; + this.outputLen = outputLen; + this.enableXOF = enableXOF; + this.rounds = rounds; + // Can be passed from user as dkLen + (0, utils_ts_1.anumber)(outputLen); + // 1600 = 5x5 matrix of 64bit. 1600 bits === 200 bytes + // 0 < blockLen < 200 + if (!(0 < blockLen && blockLen < 200)) + throw new Error('only keccak-f1600 function is supported'); + this.state = new Uint8Array(200); + this.state32 = (0, utils_ts_1.u32)(this.state); + } + clone() { + return this._cloneInto(); + } + keccak() { + (0, utils_ts_1.swap32IfBE)(this.state32); + keccakP(this.state32, this.rounds); + (0, utils_ts_1.swap32IfBE)(this.state32); + this.posOut = 0; + this.pos = 0; + } + update(data) { + (0, utils_ts_1.aexists)(this); + data = (0, utils_ts_1.toBytes)(data); + (0, utils_ts_1.abytes)(data); + const { blockLen, state } = this; + const len = data.length; + for (let pos = 0; pos < len;) { + const take = Math.min(blockLen - this.pos, len - pos); + for (let i = 0; i < take; i++) + state[this.pos++] ^= data[pos++]; + if (this.pos === blockLen) + this.keccak(); + } + return this; + } + finish() { + if (this.finished) + return; + this.finished = true; + const { state, suffix, pos, blockLen } = this; + // Do the padding + state[pos] ^= suffix; + if ((suffix & 0x80) !== 0 && pos === blockLen - 1) + this.keccak(); + state[blockLen - 1] ^= 0x80; + this.keccak(); + } + writeInto(out) { + (0, utils_ts_1.aexists)(this, false); + (0, utils_ts_1.abytes)(out); + this.finish(); + const bufferOut = this.state; + const { blockLen } = this; + for (let pos = 0, len = out.length; pos < len;) { + if (this.posOut >= blockLen) + this.keccak(); + const take = Math.min(blockLen - this.posOut, len - pos); + out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos); + this.posOut += take; + pos += take; + } + return out; + } + xofInto(out) { + // Sha3/Keccak usage with XOF is probably mistake, only SHAKE instances can do XOF + if (!this.enableXOF) + throw new Error('XOF is not possible for this instance'); + return this.writeInto(out); + } + xof(bytes) { + (0, utils_ts_1.anumber)(bytes); + return this.xofInto(new Uint8Array(bytes)); + } + digestInto(out) { + (0, utils_ts_1.aoutput)(out, this); + if (this.finished) + throw new Error('digest() was already called'); + this.writeInto(out); + this.destroy(); + return out; + } + digest() { + return this.digestInto(new Uint8Array(this.outputLen)); + } + destroy() { + this.destroyed = true; + (0, utils_ts_1.clean)(this.state); + } + _cloneInto(to) { + const { blockLen, suffix, outputLen, rounds, enableXOF } = this; + to || (to = new Keccak(blockLen, suffix, outputLen, enableXOF, rounds)); + to.state32.set(this.state32); + to.pos = this.pos; + to.posOut = this.posOut; + to.finished = this.finished; + to.rounds = rounds; + // Suffix can change in cSHAKE + to.suffix = suffix; + to.outputLen = outputLen; + to.enableXOF = enableXOF; + to.destroyed = this.destroyed; + return to; + } +} +exports.Keccak = Keccak; +const gen = (suffix, blockLen, outputLen) => (0, utils_ts_1.createHasher)(() => new Keccak(blockLen, suffix, outputLen)); +/** SHA3-224 hash function. */ +exports.sha3_224 = (() => gen(0x06, 144, 224 / 8))(); +/** SHA3-256 hash function. Different from keccak-256. */ +exports.sha3_256 = (() => gen(0x06, 136, 256 / 8))(); +/** SHA3-384 hash function. */ +exports.sha3_384 = (() => gen(0x06, 104, 384 / 8))(); +/** SHA3-512 hash function. */ +exports.sha3_512 = (() => gen(0x06, 72, 512 / 8))(); +/** keccak-224 hash function. */ +exports.keccak_224 = (() => gen(0x01, 144, 224 / 8))(); +/** keccak-256 hash function. Different from SHA3-256. */ +exports.keccak_256 = (() => gen(0x01, 136, 256 / 8))(); +/** keccak-384 hash function. */ +exports.keccak_384 = (() => gen(0x01, 104, 384 / 8))(); +/** keccak-512 hash function. */ +exports.keccak_512 = (() => gen(0x01, 72, 512 / 8))(); +const genShake = (suffix, blockLen, outputLen) => (0, utils_ts_1.createXOFer)((opts = {}) => new Keccak(blockLen, suffix, opts.dkLen === undefined ? outputLen : opts.dkLen, true)); +/** SHAKE128 XOF with 128-bit security. */ +exports.shake128 = (() => genShake(0x1f, 168, 128 / 8))(); +/** SHAKE256 XOF with 256-bit security. */ +exports.shake256 = (() => genShake(0x1f, 136, 256 / 8))(); +//# sourceMappingURL=sha3.js.map + +/***/ }), + +/***/ 4248: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Utilities for hex, bytes, CSPRNG. + * @module + */ +/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.wrapXOFConstructorWithOpts = exports.wrapConstructorWithOpts = exports.wrapConstructor = exports.Hash = exports.nextTick = exports.swap32IfBE = exports.byteSwapIfBE = exports.swap8IfBE = exports.isLE = void 0; +exports.isBytes = isBytes; +exports.anumber = anumber; +exports.abytes = abytes; +exports.ahash = ahash; +exports.aexists = aexists; +exports.aoutput = aoutput; +exports.u8 = u8; +exports.u32 = u32; +exports.clean = clean; +exports.createView = createView; +exports.rotr = rotr; +exports.rotl = rotl; +exports.byteSwap = byteSwap; +exports.byteSwap32 = byteSwap32; +exports.bytesToHex = bytesToHex; +exports.hexToBytes = hexToBytes; +exports.asyncLoop = asyncLoop; +exports.utf8ToBytes = utf8ToBytes; +exports.bytesToUtf8 = bytesToUtf8; +exports.toBytes = toBytes; +exports.kdfInputToBytes = kdfInputToBytes; +exports.concatBytes = concatBytes; +exports.checkOpts = checkOpts; +exports.createHasher = createHasher; +exports.createOptHasher = createOptHasher; +exports.createXOFer = createXOFer; +exports.randomBytes = randomBytes; +// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. +// node.js versions earlier than v19 don't declare it in global scope. +// For node.js, package.json#exports field mapping rewrites import +// from `crypto` to `cryptoNode`, which imports native module. +// Makes the utils un-importable in browsers without a bundler. +// Once node.js 18 is deprecated (2025-04-30), we can just drop the import. +const crypto_1 = __nccwpck_require__(5048); +/** Checks if something is Uint8Array. Be careful: nodejs Buffer will return true. */ +function isBytes(a) { + return a instanceof Uint8Array || (ArrayBuffer.isView(a) && a.constructor.name === 'Uint8Array'); +} +/** Asserts something is positive integer. */ +function anumber(n) { + if (!Number.isSafeInteger(n) || n < 0) + throw new Error('positive integer expected, got ' + n); +} +/** Asserts something is Uint8Array. */ +function abytes(b, ...lengths) { + if (!isBytes(b)) + throw new Error('Uint8Array expected'); + if (lengths.length > 0 && !lengths.includes(b.length)) + throw new Error('Uint8Array expected of length ' + lengths + ', got length=' + b.length); +} +/** Asserts something is hash */ +function ahash(h) { + if (typeof h !== 'function' || typeof h.create !== 'function') + throw new Error('Hash should be wrapped by utils.createHasher'); + anumber(h.outputLen); + anumber(h.blockLen); +} +/** Asserts a hash instance has not been destroyed / finished */ +function aexists(instance, checkFinished = true) { + if (instance.destroyed) + throw new Error('Hash instance has been destroyed'); + if (checkFinished && instance.finished) + throw new Error('Hash#digest() has already been called'); +} +/** Asserts output is properly-sized byte array */ +function aoutput(out, instance) { + abytes(out); + const min = instance.outputLen; + if (out.length < min) { + throw new Error('digestInto() expects output buffer of length at least ' + min); + } +} +/** Cast u8 / u16 / u32 to u8. */ +function u8(arr) { + return new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength); +} +/** Cast u8 / u16 / u32 to u32. */ +function u32(arr) { + return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4)); +} +/** Zeroize a byte array. Warning: JS provides no guarantees. */ +function clean(...arrays) { + for (let i = 0; i < arrays.length; i++) { + arrays[i].fill(0); + } +} +/** Create DataView of an array for easy byte-level manipulation. */ +function createView(arr) { + return new DataView(arr.buffer, arr.byteOffset, arr.byteLength); +} +/** The rotate right (circular right shift) operation for uint32 */ +function rotr(word, shift) { + return (word << (32 - shift)) | (word >>> shift); +} +/** The rotate left (circular left shift) operation for uint32 */ +function rotl(word, shift) { + return (word << shift) | ((word >>> (32 - shift)) >>> 0); +} +/** Is current platform little-endian? Most are. Big-Endian platform: IBM */ +exports.isLE = (() => new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44)(); +/** The byte swap operation for uint32 */ +function byteSwap(word) { + return (((word << 24) & 0xff000000) | + ((word << 8) & 0xff0000) | + ((word >>> 8) & 0xff00) | + ((word >>> 24) & 0xff)); +} +/** Conditionally byte swap if on a big-endian platform */ +exports.swap8IfBE = exports.isLE + ? (n) => n + : (n) => byteSwap(n); +/** @deprecated */ +exports.byteSwapIfBE = exports.swap8IfBE; +/** In place byte swap for Uint32Array */ +function byteSwap32(arr) { + for (let i = 0; i < arr.length; i++) { + arr[i] = byteSwap(arr[i]); + } + return arr; +} +exports.swap32IfBE = exports.isLE + ? (u) => u + : byteSwap32; +// Built-in hex conversion https://caniuse.com/mdn-javascript_builtins_uint8array_fromhex +const hasHexBuiltin = /* @__PURE__ */ (() => +// @ts-ignore +typeof Uint8Array.from([]).toHex === 'function' && typeof Uint8Array.fromHex === 'function')(); +// Array where index 0xf0 (240) is mapped to string 'f0' +const hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, '0')); +/** + * Convert byte array to hex string. Uses built-in function, when available. + * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' + */ +function bytesToHex(bytes) { + abytes(bytes); + // @ts-ignore + if (hasHexBuiltin) + return bytes.toHex(); + // pre-caching improves the speed 6x + let hex = ''; + for (let i = 0; i < bytes.length; i++) { + hex += hexes[bytes[i]]; + } + return hex; +} +// We use optimized technique to convert hex string to byte array +const asciis = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 }; +function asciiToBase16(ch) { + if (ch >= asciis._0 && ch <= asciis._9) + return ch - asciis._0; // '2' => 50-48 + if (ch >= asciis.A && ch <= asciis.F) + return ch - (asciis.A - 10); // 'B' => 66-(65-10) + if (ch >= asciis.a && ch <= asciis.f) + return ch - (asciis.a - 10); // 'b' => 98-(97-10) + return; +} +/** + * Convert hex string to byte array. Uses built-in function, when available. + * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) + */ +function hexToBytes(hex) { + if (typeof hex !== 'string') + throw new Error('hex string expected, got ' + typeof hex); + // @ts-ignore + if (hasHexBuiltin) + return Uint8Array.fromHex(hex); + const hl = hex.length; + const al = hl / 2; + if (hl % 2) + throw new Error('hex string expected, got unpadded hex of length ' + hl); + const array = new Uint8Array(al); + for (let ai = 0, hi = 0; ai < al; ai++, hi += 2) { + const n1 = asciiToBase16(hex.charCodeAt(hi)); + const n2 = asciiToBase16(hex.charCodeAt(hi + 1)); + if (n1 === undefined || n2 === undefined) { + const char = hex[hi] + hex[hi + 1]; + throw new Error('hex string expected, got non-hex character "' + char + '" at index ' + hi); + } + array[ai] = n1 * 16 + n2; // multiply first octet, e.g. 'a3' => 10*16+3 => 160 + 3 => 163 + } + return array; +} +/** + * There is no setImmediate in browser and setTimeout is slow. + * Call of async fn will return Promise, which will be fullfiled only on + * next scheduler queue processing step and this is exactly what we need. + */ +const nextTick = async () => { }; +exports.nextTick = nextTick; +/** Returns control to thread each 'tick' ms to avoid blocking. */ +async function asyncLoop(iters, tick, cb) { + let ts = Date.now(); + for (let i = 0; i < iters; i++) { + cb(i); + // Date.now() is not monotonic, so in case if clock goes backwards we return return control too + const diff = Date.now() - ts; + if (diff >= 0 && diff < tick) + continue; + await (0, exports.nextTick)(); + ts += diff; + } +} +/** + * Converts string to bytes using UTF8 encoding. + * @example utf8ToBytes('abc') // Uint8Array.from([97, 98, 99]) + */ +function utf8ToBytes(str) { + if (typeof str !== 'string') + throw new Error('string expected'); + return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809 +} +/** + * Converts bytes to string using UTF8 encoding. + * @example bytesToUtf8(Uint8Array.from([97, 98, 99])) // 'abc' + */ +function bytesToUtf8(bytes) { + return new TextDecoder().decode(bytes); +} +/** + * Normalizes (non-hex) string or Uint8Array to Uint8Array. + * Warning: when Uint8Array is passed, it would NOT get copied. + * Keep in mind for future mutable operations. + */ +function toBytes(data) { + if (typeof data === 'string') + data = utf8ToBytes(data); + abytes(data); + return data; +} +/** + * Helper for KDFs: consumes uint8array or string. + * When string is passed, does utf8 decoding, using TextDecoder. + */ +function kdfInputToBytes(data) { + if (typeof data === 'string') + data = utf8ToBytes(data); + abytes(data); + return data; +} +/** Copies several Uint8Arrays into one. */ +function concatBytes(...arrays) { + let sum = 0; + for (let i = 0; i < arrays.length; i++) { + const a = arrays[i]; + abytes(a); + sum += a.length; + } + const res = new Uint8Array(sum); + for (let i = 0, pad = 0; i < arrays.length; i++) { + const a = arrays[i]; + res.set(a, pad); + pad += a.length; + } + return res; +} +function checkOpts(defaults, opts) { + if (opts !== undefined && {}.toString.call(opts) !== '[object Object]') + throw new Error('options should be object or undefined'); + const merged = Object.assign(defaults, opts); + return merged; +} +/** For runtime check if class implements interface */ +class Hash { +} +exports.Hash = Hash; +/** Wraps hash function, creating an interface on top of it */ +function createHasher(hashCons) { + const hashC = (msg) => hashCons().update(toBytes(msg)).digest(); + const tmp = hashCons(); + hashC.outputLen = tmp.outputLen; + hashC.blockLen = tmp.blockLen; + hashC.create = () => hashCons(); + return hashC; +} +function createOptHasher(hashCons) { + const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest(); + const tmp = hashCons({}); + hashC.outputLen = tmp.outputLen; + hashC.blockLen = tmp.blockLen; + hashC.create = (opts) => hashCons(opts); + return hashC; +} +function createXOFer(hashCons) { + const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest(); + const tmp = hashCons({}); + hashC.outputLen = tmp.outputLen; + hashC.blockLen = tmp.blockLen; + hashC.create = (opts) => hashCons(opts); + return hashC; +} +exports.wrapConstructor = createHasher; +exports.wrapConstructorWithOpts = createOptHasher; +exports.wrapXOFConstructorWithOpts = createXOFer; +/** Cryptographically secure PRNG. Uses internal OS-level `crypto.getRandomValues`. */ +function randomBytes(bytesLength = 32) { + if (crypto_1.crypto && typeof crypto_1.crypto.getRandomValues === 'function') { + return crypto_1.crypto.getRandomValues(new Uint8Array(bytesLength)); + } + // Legacy Node.js compatibility + if (crypto_1.crypto && typeof crypto_1.crypto.randomBytes === 'function') { + return Uint8Array.from(crypto_1.crypto.randomBytes(bytesLength)); + } + throw new Error('crypto.getRandomValues must be defined'); +} +//# sourceMappingURL=utils.js.map + +/***/ }), + +/***/ 88851: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +const { createId, init, getConstants, isCuid } = __nccwpck_require__(63458); + +module.exports.createId = createId; +module.exports.init = init; +module.exports.getConstants = getConstants; +module.exports.isCuid = isCuid; + + +/***/ }), + +/***/ 63458: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/* global global, window, module */ +const { sha3_512: sha3 } = __nccwpck_require__(23902); + +const defaultLength = 24; +const bigLength = 32; + +const createEntropy = (length = 4, random = Math.random) => { + let entropy = ""; + + while (entropy.length < length) { + entropy = entropy + Math.floor(random() * 36).toString(36); + } + return entropy; +}; + +/* + * Adapted from https://github.com/juanelas/bigint-conversion + * MIT License Copyright (c) 2018 Juan Hernández Serrano + */ +function bufToBigInt(buf) { + let bits = 8n; + + let value = 0n; + for (const i of buf.values()) { + const bi = BigInt(i); + value = (value << bits) + bi; + } + return value; +} + +const hash = (input = "") => { + // Drop the first character because it will bias the histogram + // to the left. + return bufToBigInt(sha3(input)).toString(36).slice(1); +}; + +const alphabet = Array.from({ length: 26 }, (x, i) => + String.fromCharCode(i + 97) +); + +const randomLetter = (random) => + alphabet[Math.floor(random() * alphabet.length)]; + +/* +This is a fingerprint of the host environment. It is used to help +prevent collisions when generating ids in a distributed system. +If no global object is available, you can pass in your own, or fall back +on a random string. +*/ +const createFingerprint = ({ + globalObj = typeof global !== "undefined" + ? global + : typeof window !== "undefined" + ? window + : {}, + random = Math.random, +} = {}) => { + const globals = Object.keys(globalObj).toString(); + const sourceString = globals.length + ? globals + createEntropy(bigLength, random) + : createEntropy(bigLength, random); + + return hash(sourceString).substring(0, bigLength); +}; + +const createCounter = (count) => () => { + return count++; +}; + +// ~22k hosts before 50% chance of initial counter collision +// with a remaining counter range of 9.0e+15 in JavaScript. +const initialCountMax = 476782367; + +const init = ({ + // Fallback if the user does not pass in a CSPRNG. This should be OK + // because we don't rely solely on the random number generator for entropy. + // We also use the host fingerprint, current time, and a session counter. + random = Math.random, + counter = createCounter(Math.floor(random() * initialCountMax)), + length = defaultLength, + fingerprint = createFingerprint({ random }), +} = {}) => { + return function cuid2() { + const firstLetter = randomLetter(random); + + // If we're lucky, the `.toString(36)` calls may reduce hashing rounds + // by shortening the input to the hash function a little. + const time = Date.now().toString(36); + const count = counter().toString(36); + + // The salt should be long enough to be globally unique across the full + // length of the hash. For simplicity, we use the same length as the + // intended id output. + const salt = createEntropy(length, random); + const hashInput = `${time + salt + count + fingerprint}`; + + return `${firstLetter + hash(hashInput).substring(1, length)}`; + }; +}; + +const createId = init(); + +const isCuid = (id, { minLength = 2, maxLength = bigLength } = {}) => { + const length = id.length; + const regex = /^[0-9a-z]+$/; + + try { + if ( + typeof id === "string" && + length >= minLength && + length <= maxLength && + regex.test(id) + ) + return true; + } finally { + } + + return false; +}; + +module.exports.getConstants = () => ({ defaultLength, bigLength }); +module.exports.init = init; +module.exports.createId = createId; +module.exports.bufToBigInt = bufToBigInt; +module.exports.createCounter = createCounter; +module.exports.createFingerprint = createFingerprint; +module.exports.isCuid = isCuid; + + +/***/ }), + +/***/ 92222: +/***/ ((module) => { + +"use strict"; - // Return NaN if either is NaN, or one is 0 and the other is Infinity. - if (!x.s || !y.s || xc && !xc[0] && !yc || yc && !yc[0] && !xc) { - y.c = y.e = y.s = null; - } else { - y.s *= x.s; +module.exports = asPromise; - // Return ±Infinity if either is ±Infinity. - if (!xc || !yc) { - y.c = y.e = null; +/** + * Callback as used by {@link util.asPromise}. + * @typedef asPromiseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {...*} params Additional arguments + * @returns {undefined} + */ - // Return ±0 if either is ±0. - } else { - y.c = [0]; - y.e = 0; - } +/** + * Returns a promise from a node-style callback function. + * @memberof util + * @param {asPromiseCallback} fn Function to call + * @param {*} ctx Function context + * @param {...*} params Function arguments + * @returns {Promise<*>} Promisified function + */ +function asPromise(fn, ctx/*, varargs */) { + var params = new Array(arguments.length - 1), + offset = 0, + index = 2, + pending = true; + while (index < arguments.length) + params[offset++] = arguments[index++]; + return new Promise(function executor(resolve, reject) { + params[offset] = function callback(err/*, varargs */) { + if (pending) { + pending = false; + if (err) + reject(err); + else { + var params = new Array(arguments.length - 1), + offset = 0; + while (offset < params.length) + params[offset++] = arguments[offset]; + resolve.apply(null, params); + } + } + }; + try { + fn.apply(ctx || null, params); + } catch (err) { + if (pending) { + pending = false; + reject(err); + } } + }); +} + + +/***/ }), + +/***/ 25478: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; - return y; - } - e = bitFloor(x.e / LOG_BASE) + bitFloor(y.e / LOG_BASE); - y.s *= x.s; - xcL = xc.length; - ycL = yc.length; +/** + * A minimal base64 implementation for number arrays. + * @memberof util + * @namespace + */ +var base64 = exports; - // Ensure xc points to longer array and xcL to its length. - if (xcL < ycL) { - zc = xc; - xc = yc; - yc = zc; - i = xcL; - xcL = ycL; - ycL = i; - } +/** + * Calculates the byte length of a base64 encoded string. + * @param {string} string Base64 encoded string + * @returns {number} Byte length + */ +base64.length = function length(string) { + var p = string.length; + if (!p) + return 0; + var n = 0; + while (--p % 4 > 1 && string.charAt(p) === "=") + ++n; + return Math.ceil(string.length * 3) / 4 - n; +}; - // Initialise the result array with zeros. - for (i = xcL + ycL, zc = []; i--; zc.push(0)); +// Base64 encoding table +var b64 = new Array(64); - base = BASE; - sqrtBase = SQRT_BASE; +// Base64 decoding table +var s64 = new Array(123); - for (i = ycL; --i >= 0;) { - c = 0; - ylo = yc[i] % sqrtBase; - yhi = yc[i] / sqrtBase | 0; +// 65..90, 97..122, 48..57, 43, 47 +for (var i = 0; i < 64;) + s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++; - for (k = xcL, j = i + k; j > i;) { - xlo = xc[--k] % sqrtBase; - xhi = xc[k] / sqrtBase | 0; - m = yhi * xlo + xhi * ylo; - xlo = ylo * xlo + ((m % sqrtBase) * sqrtBase) + zc[j] + c; - c = (xlo / base | 0) + (m / sqrtBase | 0) + yhi * xhi; - zc[j--] = xlo % base; +/** + * Encodes a buffer to a base64 encoded string. + * @param {Uint8Array} buffer Source buffer + * @param {number} start Source start + * @param {number} end Source end + * @returns {string} Base64 encoded string + */ +base64.encode = function encode(buffer, start, end) { + var parts = null, + chunk = []; + var i = 0, // output index + j = 0, // goto index + t; // temporary + while (start < end) { + var b = buffer[start++]; + switch (j) { + case 0: + chunk[i++] = b64[b >> 2]; + t = (b & 3) << 4; + j = 1; + break; + case 1: + chunk[i++] = b64[t | b >> 4]; + t = (b & 15) << 2; + j = 2; + break; + case 2: + chunk[i++] = b64[t | b >> 6]; + chunk[i++] = b64[b & 63]; + j = 0; + break; } + if (i > 8191) { + (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk)); + i = 0; + } + } + if (j) { + chunk[i++] = b64[t]; + chunk[i++] = 61; + if (j === 1) + chunk[i++] = 61; + } + if (parts) { + if (i) + parts.push(String.fromCharCode.apply(String, chunk.slice(0, i))); + return parts.join(""); + } + return String.fromCharCode.apply(String, chunk.slice(0, i)); +}; - zc[j] = c; - } - - if (c) { - ++e; - } else { - zc.splice(0, 1); - } - - return normalise(y, zc, e); - }; - - - /* - * Return a new BigNumber whose value is the value of this BigNumber negated, - * i.e. multiplied by -1. - */ - P.negated = function () { - var x = new BigNumber(this); - x.s = -x.s || null; - return x; - }; - - - /* - * n + 0 = n - * n + N = N - * n + I = I - * 0 + n = n - * 0 + 0 = 0 - * 0 + N = N - * 0 + I = I - * N + n = N - * N + 0 = N - * N + N = N - * N + I = N - * I + n = I - * I + 0 = I - * I + N = N - * I + I = I - * - * Return a new BigNumber whose value is the value of this BigNumber plus the value of - * BigNumber(y, b). - */ - P.plus = function (y, b) { - var t, - x = this, - a = x.s; - - y = new BigNumber(y, b); - b = y.s; - - // Either NaN? - if (!a || !b) return new BigNumber(NaN); - - // Signs differ? - if (a != b) { - y.s = -b; - return x.minus(y); - } - - var xe = x.e / LOG_BASE, - ye = y.e / LOG_BASE, - xc = x.c, - yc = y.c; - - if (!xe || !ye) { - - // Return ±Infinity if either ±Infinity. - if (!xc || !yc) return new BigNumber(a / 0); - - // Either zero? - // Return y if y is non-zero, x if x is non-zero, or zero if both are zero. - if (!xc[0] || !yc[0]) return yc[0] ? y : new BigNumber(xc[0] ? x : a * 0); - } - - xe = bitFloor(xe); - ye = bitFloor(ye); - xc = xc.slice(); +var invalidEncoding = "invalid encoding"; - // Prepend zeros to equalise exponents. Faster to use reverse then do unshifts. - if (a = xe - ye) { - if (a > 0) { - ye = xe; - t = yc; - } else { - a = -a; - t = xc; +/** + * Decodes a base64 encoded string to a buffer. + * @param {string} string Source string + * @param {Uint8Array} buffer Destination buffer + * @param {number} offset Destination offset + * @returns {number} Number of bytes written + * @throws {Error} If encoding is invalid + */ +base64.decode = function decode(string, buffer, offset) { + var start = offset; + var j = 0, // goto index + t; // temporary + for (var i = 0; i < string.length;) { + var c = string.charCodeAt(i++); + if (c === 61 && j > 1) + break; + if ((c = s64[c]) === undefined) + throw Error(invalidEncoding); + switch (j) { + case 0: + t = c; + j = 1; + break; + case 1: + buffer[offset++] = t << 2 | (c & 48) >> 4; + t = c; + j = 2; + break; + case 2: + buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2; + t = c; + j = 3; + break; + case 3: + buffer[offset++] = (t & 3) << 6 | c; + j = 0; + break; } + } + if (j === 1) + throw Error(invalidEncoding); + return offset - start; +}; - t.reverse(); - for (; a--; t.push(0)); - t.reverse(); - } - - a = xc.length; - b = yc.length; +/** + * Tests if the specified string appears to be base64 encoded. + * @param {string} string String to test + * @returns {boolean} `true` if probably base64 encoded, otherwise false + */ +base64.test = function test(string) { + return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string); +}; + + +/***/ }), + +/***/ 25346: +/***/ ((module) => { + +"use strict"; - // Point xc to the longer array, and b to the shorter length. - if (a - b < 0) { - t = yc; - yc = xc; - xc = t; - b = a; - } +module.exports = codegen; - // Only start adding at yc.length - 1 as the further digits of xc can be ignored. - for (a = 0; b;) { - a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0; - xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE; - } +var reservedRe = /^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/; - if (a) { - xc = [a].concat(xc); - ++ye; - } +/** + * Begins generating a function. + * @memberof util + * @param {string[]} functionParams Function parameter names + * @param {string} [functionName] Function name if not anonymous + * @returns {Codegen} Appender that appends code to the function's body + */ +function codegen(functionParams, functionName) { - // No need to check for zero, as +x + +y != 0 && -x + -y != 0 - // ye = MAX_EXP + 1 possible - return normalise(y, xc, ye); - }; + /* istanbul ignore if */ + if (typeof functionParams === "string") { + functionName = functionParams; + functionParams = undefined; + } + var body = []; - /* - * If sd is undefined or null or true or false, return the number of significant digits of - * the value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN. - * If sd is true include integer-part trailing zeros in the count. - * - * Otherwise, if sd is a number, return a new BigNumber whose value is the value of this - * BigNumber rounded to a maximum of sd significant digits using rounding mode rm, or - * ROUNDING_MODE if rm is omitted. - * - * sd {number|boolean} number: significant digits: integer, 1 to MAX inclusive. - * boolean: whether to count integer-part trailing zeros: true or false. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}' + /** + * Appends code to the function's body or finishes generation. + * @typedef Codegen + * @type {function} + * @param {string|Object.} [formatStringOrScope] Format string or, to finish the function, an object of additional scope variables, if any + * @param {...*} [formatParams] Format parameters + * @returns {Codegen|Function} Itself or the generated function if finished + * @throws {Error} If format parameter counts do not match */ - P.precision = P.sd = function (sd, rm) { - var c, n, v, - x = this; - - if (sd != null && sd !== !!sd) { - intCheck(sd, 1, MAX); - if (rm == null) rm = ROUNDING_MODE; - else intCheck(rm, 0, 8); - return round(new BigNumber(x), sd, rm); - } + function Codegen(formatStringOrScope) { + // note that explicit array handling below makes this ~50% faster - if (!(c = x.c)) return null; - v = c.length - 1; - n = v * LOG_BASE + 1; + // finish the function + if (typeof formatStringOrScope !== "string") { + var source = toString(); + if (codegen.verbose) + console.log("codegen: " + source); // eslint-disable-line no-console + source = "return " + source; + if (formatStringOrScope) { + var scopeKeys = Object.keys(formatStringOrScope), + scopeParams = new Array(scopeKeys.length + 1), + scopeValues = new Array(scopeKeys.length), + scopeOffset = 0; + while (scopeOffset < scopeKeys.length) { + scopeParams[scopeOffset] = scopeKeys[scopeOffset]; + scopeValues[scopeOffset] = formatStringOrScope[scopeKeys[scopeOffset++]]; + } + scopeParams[scopeOffset] = source; + return Function.apply(null, scopeParams).apply(null, scopeValues); // eslint-disable-line no-new-func + } + return Function(source)(); // eslint-disable-line no-new-func + } - if (v = c[v]) { + // otherwise append to body + var formatParams = new Array(arguments.length - 1), + formatOffset = 0; + while (formatOffset < formatParams.length) + formatParams[formatOffset] = arguments[++formatOffset]; + formatOffset = 0; + formatStringOrScope = formatStringOrScope.replace(/%([%dfijs])/g, function replace($0, $1) { + var value = formatParams[formatOffset++]; + switch ($1) { + case "d": case "f": return String(Number(value)); + case "i": return String(Math.floor(value)); + case "j": return JSON.stringify(value); + case "s": return String(value); + } + return "%"; + }); + if (formatOffset !== formatParams.length) + throw Error("parameter count mismatch"); + body.push(formatStringOrScope); + return Codegen; + } - // Subtract the number of trailing zeros of the last element. - for (; v % 10 == 0; v /= 10, n--); + function toString(functionNameOverride) { + return "function " + safeFunctionName(functionNameOverride || functionName) + "(" + (functionParams && functionParams.join(",") || "") + "){\n " + body.join("\n ") + "\n}"; + } - // Add the number of digits of the first element. - for (v = c[0]; v >= 10; v /= 10, n++); - } + Codegen.toString = toString; + return Codegen; +} - if (sd && x.e + 1 > n) n = x.e + 1; +/** + * Begins generating a function. + * @memberof util + * @function codegen + * @param {string} [functionName] Function name if not anonymous + * @returns {Codegen} Appender that appends code to the function's body + * @variation 2 + */ - return n; - }; +/** + * When set to `true`, codegen will log generated code to console. Useful for debugging. + * @name util.codegen.verbose + * @type {boolean} + */ +codegen.verbose = false; +function safeFunctionName(name) { + if (!name) + return ""; + name = String(name).replace(/[^\w$]/g, ""); + if (!name) + return ""; + if (/^\d/.test(name)) + name = "_" + name; + return reservedRe.test(name) ? name + "_" : name; +} + + +/***/ }), + +/***/ 32491: +/***/ ((module) => { + +"use strict"; - /* - * Return a new BigNumber whose value is the value of this BigNumber shifted by k places - * (powers of 10). Shift to the right if n > 0, and to the left if n < 0. - * - * k {number} Integer, -MAX_SAFE_INTEGER to MAX_SAFE_INTEGER inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {k}' - */ - P.shiftedBy = function (k) { - intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER); - return this.times('1e' + k); - }; +module.exports = EventEmitter; +/** + * Constructs a new event emitter instance. + * @classdesc A minimal event emitter. + * @memberof util + * @constructor + */ +function EventEmitter() { - /* - * sqrt(-n) = N - * sqrt(N) = N - * sqrt(-I) = N - * sqrt(I) = I - * sqrt(0) = 0 - * sqrt(-0) = -0 - * - * Return a new BigNumber whose value is the square root of the value of this BigNumber, - * rounded according to DECIMAL_PLACES and ROUNDING_MODE. + /** + * Registered listeners. + * @type {Object.} + * @private */ - P.squareRoot = P.sqrt = function () { - var m, n, r, rep, t, - x = this, - c = x.c, - s = x.s, - e = x.e, - dp = DECIMAL_PLACES + 4, - half = new BigNumber('0.5'); - - // Negative/NaN/Infinity/zero? - if (s !== 1 || !c || !c[0]) { - return new BigNumber(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0); - } + this._listeners = Object.create(null); +} - // Initial estimate. - s = Math.sqrt(+valueOf(x)); +/** + * Event listener as used by {@link util.EventEmitter}. + * @typedef EventEmitterListener + * @type {function} + * @param {...*} args Arguments + * @returns {undefined} + */ - // Math.sqrt underflow/overflow? - // Pass x to Math.sqrt as integer, then adjust the exponent of the result. - if (s == 0 || s == 1 / 0) { - n = coeffToString(c); - if ((n.length + e) % 2 == 0) n += '0'; - s = Math.sqrt(+n); - e = bitFloor((e + 1) / 2) - (e < 0 || e % 2); +/** + * Registers an event listener. + * @param {string} evt Event name + * @param {EventEmitterListener} fn Listener + * @param {*} [ctx] Listener context + * @returns {this} `this` + */ +EventEmitter.prototype.on = function on(evt, fn, ctx) { + (this._listeners[evt] || (this._listeners[evt] = [])).push({ + fn : fn, + ctx : ctx || this + }); + return this; +}; - if (s == 1 / 0) { - n = '5e' + e; - } else { - n = s.toExponential(); - n = n.slice(0, n.indexOf('e') + 1) + e; +/** + * Removes an event listener or any matching listeners if arguments are omitted. + * @param {string} [evt] Event name. Removes all listeners if omitted. + * @param {EventEmitterListener} [fn] Listener to remove. Removes all listeners of `evt` if omitted. + * @returns {this} `this` + */ +EventEmitter.prototype.off = function off(evt, fn) { + if (evt === undefined) + this._listeners = Object.create(null); + else { + if (fn === undefined) + this._listeners[evt] = []; + else { + var listeners = this._listeners[evt]; + if (!listeners) + return this; + for (var i = 0; i < listeners.length;) + if (listeners[i].fn === fn) + listeners.splice(i, 1); + else + ++i; } + } + return this; +}; - r = new BigNumber(n); - } else { - r = new BigNumber(s + ''); - } - - // Check for zero. - // r could be zero if MIN_EXP is changed after the this value was created. - // This would cause a division by zero (x/t) and hence Infinity below, which would cause - // coeffToString to throw. - if (r.c[0]) { - e = r.e; - s = e + dp; - if (s < 3) s = 0; - - // Newton-Raphson iteration. - for (; ;) { - t = r; - r = half.times(t.plus(div(x, t, dp, 1))); - - if (coeffToString(t.c).slice(0, s) === (n = coeffToString(r.c)).slice(0, s)) { - - // The exponent of r may here be one less than the final result exponent, - // e.g 0.0009999 (e-4) --> 0.001 (e-3), so adjust s so the rounding digits - // are indexed correctly. - if (r.e < e) --s; - n = n.slice(s - 3, s + 1); - - // The 4th rounding digit may be in error by -1 so if the 4 rounding digits - // are 9999 or 4999 (i.e. approaching a rounding boundary) continue the - // iteration. - if (n == '9999' || !rep && n == '4999') { - - // On the first iteration only, check to see if rounding up gives the - // exact result as the nines may infinitely repeat. - if (!rep) { - round(t, t.e + DECIMAL_PLACES + 2, 0); - - if (t.times(t).eq(x)) { - r = t; - break; - } - } - - dp += 4; - s += 4; - rep = 1; - } else { - - // If rounding digits are null, 0{0,4} or 50{0,3}, check for exact - // result. If not, then there are further digits and m will be truthy. - if (!+n || !+n.slice(1) && n.charAt(0) == '5') { +/** + * Emits an event by calling its listeners with the specified arguments. + * @param {string} evt Event name + * @param {...*} args Arguments + * @returns {this} `this` + */ +EventEmitter.prototype.emit = function emit(evt) { + var listeners = this._listeners[evt]; + if (listeners) { + var args = [], + i = 1; + for (; i < arguments.length;) + args.push(arguments[i++]); + for (i = 0; i < listeners.length;) + listeners[i].fn.apply(listeners[i++].ctx, args); + } + return this; +}; + + +/***/ }), + +/***/ 44279: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; - // Truncate to the first rounding digit. - round(r, r.e + DECIMAL_PLACES + 2, 1); - m = !r.times(r).eq(x); - } +module.exports = fetch; - break; - } - } - } - } +var asPromise = __nccwpck_require__(92222), + fs = __nccwpck_require__(20193); - return round(r, r.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m); - }; +/** + * Node-style callback as used by {@link util.fetch}. + * @typedef FetchCallback + * @type {function} + * @param {?Error} error Error, if any, otherwise `null` + * @param {string} [contents] File contents, if there hasn't been an error + * @returns {undefined} + */ +/** + * Options as used by {@link util.fetch}. + * @interface IFetchOptions + * @property {boolean} [binary=false] Whether expecting a binary response + * @property {boolean} [xhr=false] If `true`, forces the use of XMLHttpRequest + */ - /* - * Return a string representing the value of this BigNumber in exponential notation and - * rounded using ROUNDING_MODE to dp fixed decimal places. - * - * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' - */ - P.toExponential = function (dp, rm) { - if (dp != null) { - intCheck(dp, 0, MAX); - dp++; - } - return format(this, dp, rm, 1); - }; +/** + * Fetches the contents of a file. + * @memberof util + * @param {string} filename File path or url + * @param {IFetchOptions} options Fetch options + * @param {FetchCallback} callback Callback function + * @returns {undefined} + */ +function fetch(filename, options, callback) { + if (typeof options === "function") { + callback = options; + options = {}; + } else if (!options) + options = {}; + if (!callback) + return asPromise(fetch, this, filename, options); // eslint-disable-line no-invalid-this - /* - * Return a string representing the value of this BigNumber in fixed-point notation rounding - * to dp fixed decimal places using rounding mode rm, or ROUNDING_MODE if rm is omitted. - * - * Note: as with JavaScript's number type, (-0).toFixed(0) is '0', - * but e.g. (-0.00001).toFixed(0) is '-0'. - * - * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' - */ - P.toFixed = function (dp, rm) { - if (dp != null) { - intCheck(dp, 0, MAX); - dp = dp + this.e + 1; - } - return format(this, dp, rm); - }; + // if a node-like filesystem is present, try it first but fall back to XHR if nothing is found. + if (!options.xhr && fs && fs.readFile) + return fs.readFile(filename, function fetchReadFileCallback(err, contents) { + return err && typeof XMLHttpRequest !== "undefined" + ? fetch.xhr(filename, options, callback) + : err + ? callback(err) + : callback(null, options.binary ? contents : contents.toString("utf8")); + }); + // use the XHR version otherwise. + return fetch.xhr(filename, options, callback); +} - /* - * Return a string representing the value of this BigNumber in fixed-point notation rounded - * using rm or ROUNDING_MODE to dp decimal places, and formatted according to the properties - * of the format or FORMAT object (see BigNumber.set). - * - * The formatting object may contain some or all of the properties shown below. - * - * FORMAT = { - * prefix: '', - * groupSize: 3, - * secondaryGroupSize: 0, - * groupSeparator: ',', - * decimalSeparator: '.', - * fractionGroupSize: 0, - * fractionGroupSeparator: '\xA0', // non-breaking space - * suffix: '' - * }; - * - * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * [format] {object} Formatting options. See FORMAT pbject above. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' - * '[BigNumber Error] Argument not an object: {format}' - */ - P.toFormat = function (dp, rm, format) { - var str, - x = this; +/** + * Fetches the contents of a file. + * @name util.fetch + * @function + * @param {string} path File path or url + * @param {FetchCallback} callback Callback function + * @returns {undefined} + * @variation 2 + */ - if (format == null) { - if (dp != null && rm && typeof rm == 'object') { - format = rm; - rm = null; - } else if (dp && typeof dp == 'object') { - format = dp; - dp = rm = null; - } else { - format = FORMAT; - } - } else if (typeof format != 'object') { - throw Error - (bignumberError + 'Argument not an object: ' + format); - } +/** + * Fetches the contents of a file. + * @name util.fetch + * @function + * @param {string} path File path or url + * @param {IFetchOptions} [options] Fetch options + * @returns {Promise} Promise + * @variation 3 + */ - str = x.toFixed(dp, rm); +/**/ +fetch.xhr = function fetch_xhr(filename, options, callback) { + var xhr = new XMLHttpRequest(); + xhr.onreadystatechange /* works everywhere */ = function fetchOnReadyStateChange() { - if (x.c) { - var i, - arr = str.split('.'), - g1 = +format.groupSize, - g2 = +format.secondaryGroupSize, - groupSeparator = format.groupSeparator || '', - intPart = arr[0], - fractionPart = arr[1], - isNeg = x.s < 0, - intDigits = isNeg ? intPart.slice(1) : intPart, - len = intDigits.length; + if (xhr.readyState !== 4) + return undefined; - if (g2) { - i = g1; - g1 = g2; - g2 = i; - len -= i; - } + // local cors security errors return status 0 / empty string, too. afaik this cannot be + // reliably distinguished from an actually empty file for security reasons. feel free + // to send a pull request if you are aware of a solution. + if (xhr.status !== 0 && xhr.status !== 200) + return callback(Error("status " + xhr.status)); - if (g1 > 0 && len > 0) { - i = len % g1 || g1; - intPart = intDigits.substr(0, i); - for (; i < len; i += g1) intPart += groupSeparator + intDigits.substr(i, g1); - if (g2 > 0) intPart += groupSeparator + intDigits.slice(i); - if (isNeg) intPart = '-' + intPart; + // if binary data is expected, make sure that some sort of array is returned, even if + // ArrayBuffers are not supported. the binary string fallback, however, is unsafe. + if (options.binary) { + var buffer = xhr.response; + if (!buffer) { + buffer = []; + for (var i = 0; i < xhr.responseText.length; ++i) + buffer.push(xhr.responseText.charCodeAt(i) & 255); + } + return callback(null, typeof Uint8Array !== "undefined" ? new Uint8Array(buffer) : buffer); } - - str = fractionPart - ? intPart + (format.decimalSeparator || '') + ((g2 = +format.fractionGroupSize) - ? fractionPart.replace(new RegExp('\\d{' + g2 + '}\\B', 'g'), - '$&' + (format.fractionGroupSeparator || '')) - : fractionPart) - : intPart; - } - - return (format.prefix || '') + str + (format.suffix || ''); + return callback(null, xhr.responseText); }; + if (options.binary) { + // ref: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data#Receiving_binary_data_in_older_browsers + if ("overrideMimeType" in xhr) + xhr.overrideMimeType("text/plain; charset=x-user-defined"); + xhr.responseType = "arraybuffer"; + } - /* - * Return an array of two BigNumbers representing the value of this BigNumber as a simple - * fraction with an integer numerator and an integer denominator. - * The denominator will be a positive non-zero value less than or equal to the specified - * maximum denominator. If a maximum denominator is not specified, the denominator will be - * the lowest value necessary to represent the number exactly. - * - * [md] {number|string|BigNumber} Integer >= 1, or Infinity. The maximum denominator. - * - * '[BigNumber Error] Argument {not an integer|out of range} : {md}' - */ - P.toFraction = function (md) { - var d, d0, d1, d2, e, exp, n, n0, n1, q, r, s, - x = this, - xc = x.c; - - if (md != null) { - n = new BigNumber(md); - - // Throw if md is less than one or is not an integer, unless it is Infinity. - if (!n.isInteger() && (n.c || n.s !== 1) || n.lt(ONE)) { - throw Error - (bignumberError + 'Argument ' + - (n.isInteger() ? 'out of range: ' : 'not an integer: ') + valueOf(n)); - } - } - - if (!xc) return new BigNumber(x); - - d = new BigNumber(ONE); - n1 = d0 = new BigNumber(ONE); - d1 = n0 = new BigNumber(ONE); - s = coeffToString(xc); - - // Determine initial denominator. - // d is a power of 10 and the minimum max denominator that specifies the value exactly. - e = d.e = s.length - x.e - 1; - d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp]; - md = !md || n.comparedTo(d) > 0 ? (e > 0 ? d : n1) : n; - - exp = MAX_EXP; - MAX_EXP = 1 / 0; - n = new BigNumber(s); - - // n0 = d1 = 0 - n0.c[0] = 0; - - for (; ;) { - q = div(n, d, 0, 1); - d2 = d0.plus(q.times(d1)); - if (d2.comparedTo(md) == 1) break; - d0 = d1; - d1 = d2; - n1 = n0.plus(q.times(d2 = n1)); - n0 = d2; - d = n.minus(q.times(d2 = d)); - n = d2; - } - - d2 = div(md.minus(d0), d1, 0, 1); - n0 = n0.plus(d2.times(n1)); - d0 = d0.plus(d2.times(d1)); - n0.s = n1.s = x.s; - e = e * 2; + xhr.open("GET", filename); + xhr.send(); +}; + + +/***/ }), + +/***/ 20193: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; - // Determine which fraction is closer to x, n0/d0 or n1/d1 - r = div(n1, d1, e, ROUNDING_MODE).minus(x).abs().comparedTo( - div(n0, d0, e, ROUNDING_MODE).minus(x).abs()) < 1 ? [n1, d1] : [n0, d0]; - MAX_EXP = exp; +var fs = null; +try { + fs = __nccwpck_require__(/* webpackIgnore: true */ 79896); + if (!fs || !fs.readFile || !fs.readFileSync) + fs = null; +} catch (e) { + // `fs` is unavailable in browsers and browser-like bundles. +} +module.exports = fs; + + +/***/ }), + +/***/ 8597: +/***/ ((module) => { + +"use strict"; - return r; - }; +module.exports = factory(factory); - /* - * Return the value of this BigNumber converted to a number primitive. - */ - P.toNumber = function () { - return +valueOf(this); - }; +/** + * Reads / writes floats / doubles from / to buffers. + * @name util.float + * @namespace + */ +/** + * Writes a 32 bit float to a buffer using little endian byte order. + * @name util.float.writeFloatLE + * @function + * @param {number} val Value to write + * @param {Uint8Array} buf Target buffer + * @param {number} pos Target buffer offset + * @returns {undefined} + */ - /* - * Return a string representing the value of this BigNumber rounded to sd significant digits - * using rounding mode rm or ROUNDING_MODE. If sd is less than the number of digits - * necessary to represent the integer part of the value in fixed-point notation, then use - * exponential notation. - * - * [sd] {number} Significant digits. Integer, 1 to MAX inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}' - */ - P.toPrecision = function (sd, rm) { - if (sd != null) intCheck(sd, 1, MAX); - return format(this, sd, rm, 2); - }; +/** + * Writes a 32 bit float to a buffer using big endian byte order. + * @name util.float.writeFloatBE + * @function + * @param {number} val Value to write + * @param {Uint8Array} buf Target buffer + * @param {number} pos Target buffer offset + * @returns {undefined} + */ +/** + * Reads a 32 bit float from a buffer using little endian byte order. + * @name util.float.readFloatLE + * @function + * @param {Uint8Array} buf Source buffer + * @param {number} pos Source buffer offset + * @returns {number} Value read + */ - /* - * Return a string representing the value of this BigNumber in base b, or base 10 if b is - * omitted. If a base is specified, including base 10, round according to DECIMAL_PLACES and - * ROUNDING_MODE. If a base is not specified, and this BigNumber has a positive exponent - * that is equal to or greater than TO_EXP_POS, or a negative exponent equal to or less than - * TO_EXP_NEG, return exponential notation. - * - * [b] {number} Integer, 2 to ALPHABET.length inclusive. - * - * '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}' - */ - P.toString = function (b) { - var str, - n = this, - s = n.s, - e = n.e; +/** + * Reads a 32 bit float from a buffer using big endian byte order. + * @name util.float.readFloatBE + * @function + * @param {Uint8Array} buf Source buffer + * @param {number} pos Source buffer offset + * @returns {number} Value read + */ - // Infinity or NaN? - if (e === null) { - if (s) { - str = 'Infinity'; - if (s < 0) str = '-' + str; - } else { - str = 'NaN'; - } - } else { - if (b == null) { - str = e <= TO_EXP_NEG || e >= TO_EXP_POS - ? toExponential(coeffToString(n.c), e) - : toFixedPoint(coeffToString(n.c), e, '0'); - } else if (b === 10 && alphabetHasNormalDecimalDigits) { - n = round(new BigNumber(n), DECIMAL_PLACES + e + 1, ROUNDING_MODE); - str = toFixedPoint(coeffToString(n.c), n.e, '0'); - } else { - intCheck(b, 2, ALPHABET.length, 'Base'); - str = convertBase(toFixedPoint(coeffToString(n.c), e, '0'), 10, b, s, true); - } +/** + * Writes a 64 bit double to a buffer using little endian byte order. + * @name util.float.writeDoubleLE + * @function + * @param {number} val Value to write + * @param {Uint8Array} buf Target buffer + * @param {number} pos Target buffer offset + * @returns {undefined} + */ - if (s < 0 && n.c[0]) str = '-' + str; - } +/** + * Writes a 64 bit double to a buffer using big endian byte order. + * @name util.float.writeDoubleBE + * @function + * @param {number} val Value to write + * @param {Uint8Array} buf Target buffer + * @param {number} pos Target buffer offset + * @returns {undefined} + */ - return str; - }; +/** + * Reads a 64 bit double from a buffer using little endian byte order. + * @name util.float.readDoubleLE + * @function + * @param {Uint8Array} buf Source buffer + * @param {number} pos Source buffer offset + * @returns {number} Value read + */ +/** + * Reads a 64 bit double from a buffer using big endian byte order. + * @name util.float.readDoubleBE + * @function + * @param {Uint8Array} buf Source buffer + * @param {number} pos Source buffer offset + * @returns {number} Value read + */ - /* - * Return as toString, but do not accept a base argument, and include the minus sign for - * negative zero. - */ - P.valueOf = P.toJSON = function () { - return valueOf(this); - }; +// Factory function for the purpose of node-based testing in modified global environments +function factory(exports) { + // float: typed array + if (typeof Float32Array !== "undefined") (function() { - P._isBigNumber = true; + var f32 = new Float32Array([ -0 ]), + f8b = new Uint8Array(f32.buffer), + le = f8b[3] === 128; - if (configObject != null) BigNumber.set(configObject); + function writeFloat_f32_cpy(val, buf, pos) { + f32[0] = val; + buf[pos ] = f8b[0]; + buf[pos + 1] = f8b[1]; + buf[pos + 2] = f8b[2]; + buf[pos + 3] = f8b[3]; + } - return BigNumber; - } + function writeFloat_f32_rev(val, buf, pos) { + f32[0] = val; + buf[pos ] = f8b[3]; + buf[pos + 1] = f8b[2]; + buf[pos + 2] = f8b[1]; + buf[pos + 3] = f8b[0]; + } + /* istanbul ignore next */ + exports.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev; + /* istanbul ignore next */ + exports.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy; - // PRIVATE HELPER FUNCTIONS + function readFloat_f32_cpy(buf, pos) { + f8b[0] = buf[pos ]; + f8b[1] = buf[pos + 1]; + f8b[2] = buf[pos + 2]; + f8b[3] = buf[pos + 3]; + return f32[0]; + } - // These functions don't need access to variables, - // e.g. DECIMAL_PLACES, in the scope of the `clone` function above. + function readFloat_f32_rev(buf, pos) { + f8b[3] = buf[pos ]; + f8b[2] = buf[pos + 1]; + f8b[1] = buf[pos + 2]; + f8b[0] = buf[pos + 3]; + return f32[0]; + } + /* istanbul ignore next */ + exports.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev; + /* istanbul ignore next */ + exports.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy; - function bitFloor(n) { - var i = n | 0; - return n > 0 || n === i ? i : i - 1; - } + // float: ieee754 + })(); else (function() { + function writeFloat_ieee754(writeUint, val, buf, pos) { + var sign = val < 0 ? 1 : 0; + if (sign) + val = -val; + if (val === 0) + writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos); + else if (isNaN(val)) + writeUint(2143289344, buf, pos); + else if (val > 3.4028234663852886e+38) // +-Infinity + writeUint((sign << 31 | 2139095040) >>> 0, buf, pos); + else if (val < 1.1754943508222875e-38) // denormal + writeUint((sign << 31 | Math.round(val / 1.401298464324817e-45)) >>> 0, buf, pos); + else { + var exponent = Math.floor(Math.log(val) / Math.LN2), + mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607; + writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos); + } + } - // Return a coefficient array as a string of base 10 digits. - function coeffToString(a) { - var s, z, - i = 1, - j = a.length, - r = a[0] + ''; + exports.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE); + exports.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE); - for (; i < j;) { - s = a[i++] + ''; - z = LOG_BASE - s.length; - for (; z--; s = '0' + s); - r += s; - } + function readFloat_ieee754(readUint, buf, pos) { + var uint = readUint(buf, pos), + sign = (uint >> 31) * 2 + 1, + exponent = uint >>> 23 & 255, + mantissa = uint & 8388607; + return exponent === 255 + ? mantissa + ? NaN + : sign * Infinity + : exponent === 0 // denormal + ? sign * 1.401298464324817e-45 * mantissa + : sign * Math.pow(2, exponent - 150) * (mantissa + 8388608); + } - // Determine trailing zeros. - for (j = r.length; r.charCodeAt(--j) === 48;); + exports.readFloatLE = readFloat_ieee754.bind(null, readUintLE); + exports.readFloatBE = readFloat_ieee754.bind(null, readUintBE); - return r.slice(0, j + 1 || 1); - } + })(); + // double: typed array + if (typeof Float64Array !== "undefined") (function() { - // Compare the value of BigNumbers x and y. - function compare(x, y) { - var a, b, - xc = x.c, - yc = y.c, - i = x.s, - j = y.s, - k = x.e, - l = y.e; + var f64 = new Float64Array([-0]), + f8b = new Uint8Array(f64.buffer), + le = f8b[7] === 128; - // Either NaN? - if (!i || !j) return null; + function writeDouble_f64_cpy(val, buf, pos) { + f64[0] = val; + buf[pos ] = f8b[0]; + buf[pos + 1] = f8b[1]; + buf[pos + 2] = f8b[2]; + buf[pos + 3] = f8b[3]; + buf[pos + 4] = f8b[4]; + buf[pos + 5] = f8b[5]; + buf[pos + 6] = f8b[6]; + buf[pos + 7] = f8b[7]; + } - a = xc && !xc[0]; - b = yc && !yc[0]; + function writeDouble_f64_rev(val, buf, pos) { + f64[0] = val; + buf[pos ] = f8b[7]; + buf[pos + 1] = f8b[6]; + buf[pos + 2] = f8b[5]; + buf[pos + 3] = f8b[4]; + buf[pos + 4] = f8b[3]; + buf[pos + 5] = f8b[2]; + buf[pos + 6] = f8b[1]; + buf[pos + 7] = f8b[0]; + } - // Either zero? - if (a || b) return a ? b ? 0 : -j : i; + /* istanbul ignore next */ + exports.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev; + /* istanbul ignore next */ + exports.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy; - // Signs differ? - if (i != j) return i; + function readDouble_f64_cpy(buf, pos) { + f8b[0] = buf[pos ]; + f8b[1] = buf[pos + 1]; + f8b[2] = buf[pos + 2]; + f8b[3] = buf[pos + 3]; + f8b[4] = buf[pos + 4]; + f8b[5] = buf[pos + 5]; + f8b[6] = buf[pos + 6]; + f8b[7] = buf[pos + 7]; + return f64[0]; + } - a = i < 0; - b = k == l; + function readDouble_f64_rev(buf, pos) { + f8b[7] = buf[pos ]; + f8b[6] = buf[pos + 1]; + f8b[5] = buf[pos + 2]; + f8b[4] = buf[pos + 3]; + f8b[3] = buf[pos + 4]; + f8b[2] = buf[pos + 5]; + f8b[1] = buf[pos + 6]; + f8b[0] = buf[pos + 7]; + return f64[0]; + } - // Either Infinity? - if (!xc || !yc) return b ? 0 : !xc ^ a ? 1 : -1; + /* istanbul ignore next */ + exports.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev; + /* istanbul ignore next */ + exports.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy; - // Compare exponents. - if (!b) return k > l ^ a ? 1 : -1; + // double: ieee754 + })(); else (function() { - j = (k = xc.length) < (l = yc.length) ? k : l; + function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) { + var sign = val < 0 ? 1 : 0; + if (sign) + val = -val; + if (val === 0) { + writeUint(0, buf, pos + off0); + writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos + off1); + } else if (isNaN(val)) { + writeUint(0, buf, pos + off0); + writeUint(2146959360, buf, pos + off1); + } else if (val > 1.7976931348623157e+308) { // +-Infinity + writeUint(0, buf, pos + off0); + writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1); + } else { + var mantissa; + if (val < 2.2250738585072014e-308) { // denormal + mantissa = val / 5e-324; + writeUint(mantissa >>> 0, buf, pos + off0); + writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1); + } else { + var exponent = Math.floor(Math.log(val) / Math.LN2); + if (exponent === 1024) + exponent = 1023; + mantissa = val * Math.pow(2, -exponent); + writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0); + writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1); + } + } + } - // Compare digit by digit. - for (i = 0; i < j; i++) if (xc[i] != yc[i]) return xc[i] > yc[i] ^ a ? 1 : -1; + exports.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4); + exports.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0); - // Compare lengths. - return k == l ? 0 : k > l ^ a ? 1 : -1; - } + function readDouble_ieee754(readUint, off0, off1, buf, pos) { + var lo = readUint(buf, pos + off0), + hi = readUint(buf, pos + off1); + var sign = (hi >> 31) * 2 + 1, + exponent = hi >>> 20 & 2047, + mantissa = 4294967296 * (hi & 1048575) + lo; + return exponent === 2047 + ? mantissa + ? NaN + : sign * Infinity + : exponent === 0 // denormal + ? sign * 5e-324 * mantissa + : sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496); + } + exports.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4); + exports.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0); - /* - * Check that n is a primitive number, an integer, and in range, otherwise throw. - */ - function intCheck(n, min, max, name) { - if (n < min || n > max || n !== mathfloor(n)) { - throw Error - (bignumberError + (name || 'Argument') + (typeof n == 'number' - ? n < min || n > max ? ' out of range: ' : ' not an integer: ' - : ' not a primitive number: ') + String(n)); - } - } + })(); + return exports; +} - // Assumes finite n. - function isOdd(n) { - var k = n.c.length - 1; - return bitFloor(n.e / LOG_BASE) == k && n.c[k] % 2 != 0; - } +// uint helpers +function writeUintLE(val, buf, pos) { + buf[pos ] = val & 255; + buf[pos + 1] = val >>> 8 & 255; + buf[pos + 2] = val >>> 16 & 255; + buf[pos + 3] = val >>> 24; +} - function toExponential(str, e) { - return (str.length > 1 ? str.charAt(0) + '.' + str.slice(1) : str) + - (e < 0 ? 'e' : 'e+') + e; - } +function writeUintBE(val, buf, pos) { + buf[pos ] = val >>> 24; + buf[pos + 1] = val >>> 16 & 255; + buf[pos + 2] = val >>> 8 & 255; + buf[pos + 3] = val & 255; +} +function readUintLE(buf, pos) { + return (buf[pos ] + | buf[pos + 1] << 8 + | buf[pos + 2] << 16 + | buf[pos + 3] << 24) >>> 0; +} - function toFixedPoint(str, e, z) { - var len, zs; +function readUintBE(buf, pos) { + return (buf[pos ] << 24 + | buf[pos + 1] << 16 + | buf[pos + 2] << 8 + | buf[pos + 3]) >>> 0; +} + + +/***/ }), + +/***/ 66090: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; - // Negative exponent? - if (e < 0) { - // Prepend zeros. - for (zs = z + '.'; ++e; zs += z); - str = zs + str; +/** + * A minimal path module to resolve Unix, Windows and URL paths alike. + * @memberof util + * @namespace + */ +var path = exports; - // Positive exponent - } else { - len = str.length; +var isAbsolute = +/** + * Tests if the specified path is absolute. + * @param {string} path Path to test + * @returns {boolean} `true` if path is absolute + */ +path.isAbsolute = function isAbsolute(path) { + return /^(?:\/|\w+:)/.test(path); +}; - // Append zeros. - if (++e > len) { - for (zs = z, e -= len; --e; zs += z); - str += zs; - } else if (e < len) { - str = str.slice(0, e) + '.' + str.slice(e); - } +var normalize = +/** + * Normalizes the specified path. + * @param {string} path Path to normalize + * @returns {string} Normalized path + */ +path.normalize = function normalize(path) { + path = path.replace(/\\/g, "/") + .replace(/\/{2,}/g, "/"); + var parts = path.split("/"), + absolute = isAbsolute(path), + prefix = ""; + if (absolute) + prefix = parts.shift() + "/"; + for (var i = 0; i < parts.length;) { + if (parts[i] === "..") { + if (i > 0 && parts[i - 1] !== "..") + parts.splice(--i, 2); + else if (absolute) + parts.splice(i, 1); + else + ++i; + } else if (parts[i] === ".") + parts.splice(i, 1); + else + ++i; } + return prefix + parts.join("/"); +}; - return str; - } +/** + * Resolves the specified include path against the specified origin path. + * @param {string} originPath Path to the origin file + * @param {string} includePath Include path relative to origin path + * @param {boolean} [alreadyNormalized=false] `true` if both paths are already known to be normalized + * @returns {string} Path to the include file + */ +path.resolve = function resolve(originPath, includePath, alreadyNormalized) { + if (!alreadyNormalized) + includePath = normalize(includePath); + if (isAbsolute(includePath)) + return includePath; + if (!alreadyNormalized) + originPath = normalize(originPath); + return (originPath = originPath.replace(/(?:\/|^)[^/]+$/, "")).length ? normalize(originPath + "/" + includePath) : includePath; +}; + + +/***/ }), + +/***/ 56239: +/***/ ((module) => { + +"use strict"; +module.exports = pool; - // EXPORT +/** + * An allocator as used by {@link util.pool}. + * @typedef PoolAllocator + * @type {function} + * @param {number} size Buffer size + * @returns {Uint8Array} Buffer + */ +/** + * A slicer as used by {@link util.pool}. + * @typedef PoolSlicer + * @type {function} + * @param {number} start Start offset + * @param {number} end End offset + * @returns {Uint8Array} Buffer slice + * @this {Uint8Array} + */ - BigNumber = clone(); - BigNumber['default'] = BigNumber.BigNumber = BigNumber; +/** + * A general purpose buffer pool. + * @memberof util + * @function + * @param {PoolAllocator} alloc Allocator + * @param {PoolSlicer} slice Slicer + * @param {number} [size=8192] Slab size + * @returns {PoolAllocator} Pooled allocator + */ +function pool(alloc, slice, size) { + var SIZE = size || 8192; + var MAX = SIZE >>> 1; + var slab = null; + var offset = SIZE; + return function pool_alloc(size) { + if (size < 1 || size > MAX) + return alloc(size); + if (offset + size > SIZE) { + slab = alloc(SIZE); + offset = 0; + } + var buf = slice.call(slab, offset, offset += size); + if (offset & 7) // align to 32 bit + offset = (offset | 7) + 1; + return buf; + }; +} + + +/***/ }), + +/***/ 70958: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; - // AMD. - if (typeof define == 'function' && define.amd) { - define(function () { return BigNumber; }); - // Node.js and other environments that support module.exports. - } else if ( true && module.exports) { - module.exports = BigNumber; +/** + * A minimal UTF8 implementation for number arrays. + * @memberof util + * @namespace + */ +var utf8 = exports, + replacementCharCode = 0xFFFD; // U+FFFD REPLACEMENT CHARACTER - // Browser. - } else { - if (!globalObject) { - globalObject = typeof self != 'undefined' && self ? self : window; +/** + * Calculates the UTF8 byte length of a string. + * @param {string} string String + * @returns {number} Byte length + */ +utf8.length = function utf8_length(string) { + var len = 0, + c = 0; + for (var i = 0; i < string.length; ++i) { + c = string.charCodeAt(i); + if (c < 128) + len += 1; + else if (c < 2048) + len += 2; + else if ((c & 0xFC00) === 0xD800 && (string.charCodeAt(i + 1) & 0xFC00) === 0xDC00) { + ++i; + len += 4; + } else + len += 3; } + return len; +}; - globalObject.BigNumber = BigNumber; - } -})(this); +/** + * Reads UTF8 bytes as a string. + * @param {Uint8Array} buffer Source buffer + * @param {number} start Source start + * @param {number} end Source end + * @returns {string} String read + */ +utf8.read = function utf8_read(buffer, start, end) { + if (end - start < 1) + return ""; + // Batch code units and flush via String.fromCharCode.apply in 8192-unit + // chunks to avoid the per-character ConsString buildup of `str += ...`. + var parts = null, + chunk = [], + i = 0, // chunk write index + t, t2, c2, c3; + while (start < end) { + t = buffer[start++]; + if (t <= 0x7F) { + chunk[i++] = t; + } else if (t >= 0xC0 && t < 0xE0) { + c2 = (t & 0x1F) << 6 | buffer[start++] & 0x3F; + chunk[i++] = c2 >= 0x80 ? c2 : replacementCharCode; + } else if (t >= 0xE0 && t < 0xF0) { + c3 = (t & 0xF) << 12 | (buffer[start++] & 0x3F) << 6 | buffer[start++] & 0x3F; + chunk[i++] = c3 >= 0x800 ? c3 : replacementCharCode; + } else if (t >= 0xF0) { + t2 = (t & 7) << 18 | (buffer[start++] & 0x3F) << 12 | (buffer[start++] & 0x3F) << 6 | buffer[start++] & 0x3F; + if (t2 < 0x10000 || t2 > 0x10FFFF) + chunk[i++] = replacementCharCode; + else { + t2 -= 0x10000; + chunk[i++] = 0xD800 + (t2 >> 10); + chunk[i++] = 0xDC00 + (t2 & 0x3FF); + } + } + if (i > 8191) { + (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk.slice(0, i))); + i = 0; + } + } + if (parts) { + if (i) + parts.push(String.fromCharCode.apply(String, chunk.slice(0, i))); + return parts.join(""); + } + return String.fromCharCode.apply(String, chunk.slice(0, i)); +}; + +/** + * Writes a string as UTF8 bytes. + * @param {string} string Source string + * @param {Uint8Array} buffer Destination buffer + * @param {number} offset Destination offset + * @returns {number} Bytes written + */ +utf8.write = function utf8_write(string, buffer, offset) { + var start = offset, + c1, // character 1 + c2; // character 2 + for (var i = 0; i < string.length; ++i) { + c1 = string.charCodeAt(i); + if (c1 < 128) { + buffer[offset++] = c1; + } else if (c1 < 2048) { + buffer[offset++] = c1 >> 6 | 192; + buffer[offset++] = c1 & 63 | 128; + } else if ((c1 & 0xFC00) === 0xD800 && ((c2 = string.charCodeAt(i + 1)) & 0xFC00) === 0xDC00) { + c1 = 0x10000 + ((c1 & 0x03FF) << 10) + (c2 & 0x03FF); + ++i; + buffer[offset++] = c1 >> 18 | 240; + buffer[offset++] = c1 >> 12 & 63 | 128; + buffer[offset++] = c1 >> 6 & 63 | 128; + buffer[offset++] = c1 & 63 | 128; + } else { + buffer[offset++] = c1 >> 12 | 224; + buffer[offset++] = c1 >> 6 & 63 | 128; + buffer[offset++] = c1 & 63 | 128; + } + } + return offset - start; +}; + + +/***/ }), + +/***/ 90402: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { getSmithyContext } = __nccwpck_require__(34534); +exports.getSmithyContext = getSmithyContext; +const { HttpRequest } = __nccwpck_require__(93422); +const { requestBuilder } = __nccwpck_require__(93422); +exports.requestBuilder = requestBuilder; +const { HttpApiKeyAuthLocation } = __nccwpck_require__(90690); + +const resolveAuthOptions = (candidateAuthOptions, authSchemePreference) => { + if (!authSchemePreference || authSchemePreference.length === 0) { + return candidateAuthOptions; + } + const preferredAuthOptions = []; + for (const preferredSchemeName of authSchemePreference) { + for (const candidateAuthOption of candidateAuthOptions) { + const candidateAuthSchemeName = candidateAuthOption.schemeId.split("#")[1]; + if (candidateAuthSchemeName === preferredSchemeName) { + preferredAuthOptions.push(candidateAuthOption); + } + } + } + for (const candidateAuthOption of candidateAuthOptions) { + if (!preferredAuthOptions.find(({ schemeId }) => schemeId === candidateAuthOption.schemeId)) { + preferredAuthOptions.push(candidateAuthOption); + } + } + return preferredAuthOptions; +}; + +function convertHttpAuthSchemesToMap(httpAuthSchemes) { + const map = new Map(); + for (const scheme of httpAuthSchemes) { + map.set(scheme.schemeId, scheme); + } + return map; +} +const httpAuthSchemeMiddleware = (config, mwOptions) => (next, context) => async (args) => { + const options = config.httpAuthSchemeProvider(await mwOptions.httpAuthSchemeParametersProvider(config, context, args.input)); + const authSchemePreference = config.authSchemePreference ? await config.authSchemePreference() : []; + const resolvedOptions = resolveAuthOptions(options, authSchemePreference); + const authSchemes = convertHttpAuthSchemesToMap(config.httpAuthSchemes); + const smithyContext = getSmithyContext(context); + const failureReasons = []; + for (const option of resolvedOptions) { + const scheme = authSchemes.get(option.schemeId); + if (!scheme) { + failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` was not enabled for this service.`); + continue; + } + const identityProvider = scheme.identityProvider(await mwOptions.identityProviderConfigProvider(config)); + if (!identityProvider) { + failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` did not have an IdentityProvider configured.`); + continue; + } + const { identityProperties = {}, signingProperties = {} } = option.propertiesExtractor?.(config, context) || {}; + option.identityProperties = Object.assign(option.identityProperties || {}, identityProperties); + option.signingProperties = Object.assign(option.signingProperties || {}, signingProperties); + smithyContext.selectedHttpAuthScheme = { + httpAuthOption: option, + identity: await identityProvider(option.identityProperties), + signer: scheme.signer, + }; + break; + } + if (!smithyContext.selectedHttpAuthScheme) { + throw new Error(failureReasons.join("\n")); + } + return next(args); +}; + +const httpAuthSchemeEndpointRuleSetMiddlewareOptions = { + step: "serialize", + tags: ["HTTP_AUTH_SCHEME"], + name: "httpAuthSchemeMiddleware", + override: true, + relation: "before", + toMiddleware: "endpointV2Middleware", +}; +const getHttpAuthSchemeEndpointRuleSetPlugin = (config, { httpAuthSchemeParametersProvider, identityProviderConfigProvider, }) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo(httpAuthSchemeMiddleware(config, { + httpAuthSchemeParametersProvider, + identityProviderConfigProvider, + }), httpAuthSchemeEndpointRuleSetMiddlewareOptions); + }, +}); + +const httpAuthSchemeMiddlewareOptions = { + step: "serialize", + tags: ["HTTP_AUTH_SCHEME"], + name: "httpAuthSchemeMiddleware", + override: true, + relation: "before", + toMiddleware: "serializerMiddleware", +}; +const getHttpAuthSchemePlugin = (config, { httpAuthSchemeParametersProvider, identityProviderConfigProvider, }) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo(httpAuthSchemeMiddleware(config, { + httpAuthSchemeParametersProvider, + identityProviderConfigProvider, + }), httpAuthSchemeMiddlewareOptions); + }, +}); + +const defaultErrorHandler = (signingProperties) => (error) => { + throw error; +}; +const defaultSuccessHandler = (httpResponse, signingProperties) => { }; +const httpSigningMiddleware = (config) => (next, context) => async (args) => { + if (!HttpRequest.isInstance(args.request)) { + return next(args); + } + const smithyContext = getSmithyContext(context); + const scheme = smithyContext.selectedHttpAuthScheme; + if (!scheme) { + throw new Error(`No HttpAuthScheme was selected: unable to sign request`); + } + const { httpAuthOption: { signingProperties = {} }, identity, signer, } = scheme; + const output = await next({ + ...args, + request: await signer.sign(args.request, identity, signingProperties), + }).catch((signer.errorHandler || defaultErrorHandler)(signingProperties)); + (signer.successHandler || defaultSuccessHandler)(output.response, signingProperties); + return output; +}; + +const httpSigningMiddlewareOptions = { + step: "finalizeRequest", + tags: ["HTTP_SIGNING"], + name: "httpSigningMiddleware", + aliases: ["apiKeyMiddleware", "tokenMiddleware", "awsAuthMiddleware"], + override: true, + relation: "after", + toMiddleware: "retryMiddleware", +}; +const getHttpSigningPlugin = (config) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo(httpSigningMiddleware(), httpSigningMiddlewareOptions); + }, +}); + +const normalizeProvider = (input) => { + if (typeof input === "function") + return input; + const promisified = Promise.resolve(input); + return () => promisified; +}; + +const makePagedClientRequest = async (CommandCtor, client, input, withCommand = (_) => _, ...args) => { + let command = new CommandCtor(input); + command = withCommand(command) ?? command; + return await client.send(command, ...args); +}; +function createPaginator(ClientCtor, CommandCtor, inputTokenName, outputTokenName, pageSizeTokenName) { + return async function* paginateOperation(config, input, ...additionalArguments) { + const _input = input; + let token = config.startingToken ?? _input[inputTokenName]; + let hasNext = true; + let page; + while (hasNext) { + _input[inputTokenName] = token; + if (pageSizeTokenName) { + _input[pageSizeTokenName] = _input[pageSizeTokenName] ?? config.pageSize; + } + if (config.client instanceof ClientCtor) { + page = await makePagedClientRequest(CommandCtor, config.client, input, config.withCommand, ...additionalArguments); + } + else { + throw new Error(`Invalid client, expected instance of ${ClientCtor.name}`); + } + yield page; + const prevToken = token; + token = get(page, outputTokenName); + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; + }; +} +const get = (fromObject, path) => { + let cursor = fromObject; + const pathComponents = path.split("."); + for (const step of pathComponents) { + if (!cursor || typeof cursor !== "object") { + return undefined; + } + cursor = cursor[step]; + } + return cursor; +}; + +function setFeature(context, feature, value) { + if (!context.__smithy_context) { + context.__smithy_context = { + features: {}, + }; + } + else if (!context.__smithy_context.features) { + context.__smithy_context.features = {}; + } + context.__smithy_context.features[feature] = value; +} + +class DefaultIdentityProviderConfig { + authSchemes = new Map(); + constructor(config) { + for (const key in config) { + const value = config[key]; + if (value !== undefined) { + this.authSchemes.set(key, value); + } + } + } + getIdentityProvider(schemeId) { + return this.authSchemes.get(schemeId); + } +} + +class HttpApiKeyAuthSigner { + async sign(httpRequest, identity, signingProperties) { + if (!signingProperties) { + throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing"); + } + if (!signingProperties.name) { + throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing"); + } + if (!signingProperties.in) { + throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing"); + } + if (!identity.apiKey) { + throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined"); + } + const clonedRequest = HttpRequest.clone(httpRequest); + if (signingProperties.in === HttpApiKeyAuthLocation.QUERY) { + clonedRequest.query[signingProperties.name] = identity.apiKey; + } + else if (signingProperties.in === HttpApiKeyAuthLocation.HEADER) { + clonedRequest.headers[signingProperties.name] = signingProperties.scheme + ? `${signingProperties.scheme} ${identity.apiKey}` + : identity.apiKey; + } + else { + throw new Error("request can only be signed with `apiKey` locations `query` or `header`, " + + "but found: `" + + signingProperties.in + + "`"); + } + return clonedRequest; + } +} + +class HttpBearerAuthSigner { + async sign(httpRequest, identity, signingProperties) { + const clonedRequest = HttpRequest.clone(httpRequest); + if (!identity.token) { + throw new Error("request could not be signed with `token` since the `token` is not defined"); + } + clonedRequest.headers["Authorization"] = `Bearer ${identity.token}`; + return clonedRequest; + } +} + +class NoAuthSigner { + async sign(httpRequest, identity, signingProperties) { + return httpRequest; + } +} + +const createIsIdentityExpiredFunction = (expirationMs) => function isIdentityExpired(identity) { + return doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs; +}; +const EXPIRATION_MS = 300_000; +const isIdentityExpired = createIsIdentityExpiredFunction(EXPIRATION_MS); +const doesIdentityRequireRefresh = (identity) => identity.expiration !== undefined; +const memoizeIdentityProvider = (provider, isExpired, requiresRefresh) => { + if (provider === undefined) { + return undefined; + } + const normalizedProvider = typeof provider !== "function" ? async () => Promise.resolve(provider) : provider; + let resolved; + let pending; + let hasResult; + let isConstant = false; + const coalesceProvider = async (options) => { + if (!pending) { + pending = normalizedProvider(options); + } + try { + resolved = await pending; + hasResult = true; + isConstant = false; + } + finally { + pending = undefined; + } + return resolved; + }; + if (isExpired === undefined) { + return async (options) => { + if (!hasResult || options?.forceRefresh) { + resolved = await coalesceProvider(options); + } + return resolved; + }; + } + return async (options) => { + if (!hasResult || options?.forceRefresh) { + resolved = await coalesceProvider(options); + } + if (isConstant) { + return resolved; + } + if (!requiresRefresh(resolved)) { + isConstant = true; + return resolved; + } + if (isExpired(resolved)) { + await coalesceProvider(options); + return resolved; + } + return resolved; + }; +}; + +exports.DefaultIdentityProviderConfig = DefaultIdentityProviderConfig; +exports.EXPIRATION_MS = EXPIRATION_MS; +exports.HttpApiKeyAuthSigner = HttpApiKeyAuthSigner; +exports.HttpBearerAuthSigner = HttpBearerAuthSigner; +exports.NoAuthSigner = NoAuthSigner; +exports.createIsIdentityExpiredFunction = createIsIdentityExpiredFunction; +exports.createPaginator = createPaginator; +exports.doesIdentityRequireRefresh = doesIdentityRequireRefresh; +exports.getHttpAuthSchemeEndpointRuleSetPlugin = getHttpAuthSchemeEndpointRuleSetPlugin; +exports.getHttpAuthSchemePlugin = getHttpAuthSchemePlugin; +exports.getHttpSigningPlugin = getHttpSigningPlugin; +exports.httpAuthSchemeEndpointRuleSetMiddlewareOptions = httpAuthSchemeEndpointRuleSetMiddlewareOptions; +exports.httpAuthSchemeMiddleware = httpAuthSchemeMiddleware; +exports.httpAuthSchemeMiddlewareOptions = httpAuthSchemeMiddlewareOptions; +exports.httpSigningMiddleware = httpSigningMiddleware; +exports.httpSigningMiddlewareOptions = httpSigningMiddlewareOptions; +exports.isIdentityExpired = isIdentityExpired; +exports.memoizeIdentityProvider = memoizeIdentityProvider; +exports.normalizeProvider = normalizeProvider; +exports.setFeature = setFeature; + + +/***/ }), + +/***/ 64645: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { nv, NumericValue, calculateBodyLength, _parseEpochTimestamp, fromBase64, generateIdempotencyToken } = __nccwpck_require__(92430); +const { HttpRequest, collectBody, SerdeContext, RpcProtocol } = __nccwpck_require__(93422); +const { NormalizedSchema, deref, TypeRegistry } = __nccwpck_require__(26890); +const { getSmithyContext } = __nccwpck_require__(34534); + +const majorUint64 = 0; +const majorNegativeInt64 = 1; +const majorUnstructuredByteString = 2; +const majorUtf8String = 3; +const majorList = 4; +const majorMap = 5; +const majorTag = 6; +const majorSpecial = 7; +const specialFalse = 20; +const specialTrue = 21; +const specialNull = 22; +const specialUndefined = 23; +const extendedOneByte = 24; +const extendedFloat16 = 25; +const extendedFloat32 = 26; +const extendedFloat64 = 27; +const minorIndefinite = 31; +function alloc(size) { + return typeof Buffer !== "undefined" ? Buffer.alloc(size) : new Uint8Array(size); +} +const tagSymbol = Symbol("@smithy/core/cbor::tagSymbol"); +function tag(data) { + data[tagSymbol] = true; + return data; +} + +const USE_BUFFER$1 = typeof Buffer !== "undefined"; +const textDecoder = new TextDecoder(); +let payload = alloc(0); +let isBuffer = false; +let dataView$1 = new DataView(payload.buffer, payload.byteOffset, payload.byteLength); +let _offset = 0; +function setPayload(bytes) { + payload = bytes; + isBuffer = USE_BUFFER$1 && payload instanceof Buffer; + dataView$1 = new DataView(payload.buffer, payload.byteOffset, payload.byteLength); +} +function decode(at, to) { + if (at >= to) { + throw new Error("unexpected end of (decode) payload."); + } + const major = (payload[at] & 0b1110_0000) >> 5; + const minor = payload[at] & 0b0001_1111; + if (minor === minorIndefinite && 2 <= major && major <= 5) { + return decodeIndefinite(at, to); + } + switch (major) { + case majorUint64: + case majorNegativeInt64: + case majorTag: { + let unsignedInt; + let offset; + if (minor < 24) { + unsignedInt = minor; + offset = 1; + } + else { + switch (minor) { + case extendedOneByte: + if (to - at < 2) { + overflow(1); + } + unsignedInt = payload[at + 1]; + offset = 2; + break; + case extendedFloat16: + if (to - at < 3) { + overflow(2); + } + unsignedInt = dataView$1.getUint16(at + 1); + offset = 3; + break; + case extendedFloat32: + if (to - at < 5) { + overflow(4); + } + unsignedInt = dataView$1.getUint32(at + 1); + offset = 5; + break; + case extendedFloat64: + if (to - at < 9) { + overflow(8); + } + { + const hi = dataView$1.getUint32(at + 1); + if (hi < 0x00200000) { + unsignedInt = hi * 4294967296 + dataView$1.getUint32(at + 5); + } + else { + unsignedInt = dataView$1.getBigUint64(at + 1); + } + } + offset = 9; + break; + default: + unexpectedMinor(minor); + } + } + if (major === majorUint64) { + _offset = offset; + return castBigInt(unsignedInt); + } + else if (major === majorNegativeInt64) { + let negativeInt; + if (typeof unsignedInt === "bigint") { + negativeInt = BigInt(-1) - unsignedInt; + } + else { + negativeInt = -1 - unsignedInt; + } + _offset = offset; + return castBigInt(negativeInt); + } + else { + return decodeTagValue(at, to, minor, unsignedInt, offset); + } + } + case majorUtf8String: + return decodeUtf8String(at, to); + case majorMap: + return decodeMap(at, to); + case majorList: + return decodeList(at, to); + case majorUnstructuredByteString: + return decodeUnstructuredByteString(at, to); + default: + return decodeSpecial(at, to); + } +} +function decodeIndefinite(at, to) { + const major = (payload[at] & 0b1110_0000) >> 5; + const minor = payload[at] & 0b0001_1111; + if (minor === minorIndefinite) { + switch (major) { + case majorUtf8String: + return decodeUtf8StringIndefinite(at, to); + case majorMap: + return decodeMapIndefinite(at, to); + case majorList: + return decodeListIndefinite(at, to); + case majorUnstructuredByteString: + return decodeUnstructuredByteStringIndefinite(at, to); + } + } +} +function bytesToFloat16(a, b) { + const sign = a >> 7; + const exponent = (a & 0b0111_1100) >> 2; + const fraction = ((a & 0b0000_0011) << 8) | b; + const scalar = sign === 0 ? 1 : -1; + if (exponent === 0b00000) { + if (fraction === 0) { + return 0; + } + return scalar * (Math.pow(2, 1 - 15) * (fraction / 1024)); + } + else if (exponent === 0b11111) { + if (fraction === 0) { + return scalar * Infinity; + } + return NaN; + } + return scalar * (Math.pow(2, exponent - 15) * (1 + fraction / 1024)); +} +function decodeMap(at, to) { + const mapDataLength = decodeCount(at, to); + if (mapDataLength < 15) { + return decodeMapSmall(at, to, mapDataLength); + } + return decodeMapLarge(at, to, mapDataLength); +} +function decodeMapLarge(at, to, mapDataLength) { + const offset = _offset; + at += offset; + const base = at; + const map = Object.create(null); + for (let i = 0; i < mapDataLength; ++i) { + const key = decodeUtf8String(at, to); + at += _offset; + const valMajor = (payload[at] & 0b1110_0000) >> 5; + if (valMajor === majorUtf8String) { + map[key] = decodeUtf8String(at, to); + } + else { + map[key] = decode(at, to); + } + at += _offset; + } + _offset = offset + (at - base); + Object.setPrototypeOf(map, Object.prototype); + return map; +} +function decodeMapSmall(at, to, mapDataLength) { + const offset = _offset; + at += offset; + const base = at; + const map = {}; + for (let i = 0; i < mapDataLength; ++i) { + const key = decodeUtf8String(at, to); + at += _offset; + map[key] = decode(at, to); + at += _offset; + } + _offset = offset + (at - base); + return map; +} +function decodeList(at, to) { + const listDataLength = decodeCount(at, to); + const offset = _offset; + at += offset; + const base = at; + const list = Array(listDataLength); + for (let i = 0; i < listDataLength; ++i) { + list[i] = decode(at, to); + at += _offset; + } + _offset = offset + (at - base); + return list; +} +function decodeUtf8String(at, to) { + const length = decodeCount(at, to); + const offset = _offset; + at += offset; + if (to - at < length) { + overflow(length); + } + _offset = offset + length; + if (length < 24) { + return decodeUtf8StringCached(at, length); + } + if (isBuffer) { + return payload.toString("utf-8", at, at + length); + } + return textDecoder.decode(payload.subarray(at, at + length)); +} +const stringCache = new Array(2048); +const stringCacheEpochs = new Uint16Array(2048); +let cacheEpoch = 0; +function advanceDecodingEpoch() { + cacheEpoch = (cacheEpoch + 1) & 0b1111_1111_1111_1111; +} +function decodeUtf8StringCached(at, length) { + let h = length; + for (let i = 0; i < length; ++i) { + h = (h * 31 + payload[at + i]) | 0; + } + const slot = (h >>> 0) & 2047; + const cached = stringCache[slot]; + if (cached !== undefined) { + if (cached.length === length) { + let match = true; + for (let i = 0; i < length; ++i) { + if (cached.charCodeAt(i) !== payload[at + i]) { + match = false; + break; + } + } + if (match) { + stringCacheEpochs[slot] = cacheEpoch; + return cached; + } + } + } + const result = isBuffer + ? payload.toString("utf-8", at, at + length) + : textDecoder.decode(payload.subarray(at, at + length)); + if (stringCacheEpochs[slot] !== cacheEpoch) { + stringCache[slot] = result; + stringCacheEpochs[slot] = cacheEpoch; + } + return result; +} +function decodeUnstructuredByteString(at, to) { + const length = decodeCount(at, to); + const offset = _offset; + at += offset; + if (to - at < length) { + overflow(length); + } + const value = payload.subarray(at, at + length); + _offset = offset + length; + return value; +} +function decodeTagValue(at, to, minor, unsignedInt, offset) { + if (minor === 2 || minor === 3) { + const length = decodeCount(at + offset, to); + let b = BigInt(0); + const start = at + offset + _offset; + for (let i = start; i < start + length; ++i) { + b = (b << BigInt(8)) | BigInt(payload[i]); + } + _offset = offset + _offset + length; + return minor === 3 ? -b - BigInt(1) : b; + } + else if (minor === 4) { + const decimalFraction = decode(at + offset, to); + const [exponent, mantissa] = decimalFraction; + const normalizer = mantissa < 0 ? -1 : 1; + const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + String(BigInt(normalizer) * BigInt(mantissa)); + let numericString; + const sign = mantissa < 0 ? "-" : ""; + numericString = + exponent === 0 + ? mantissaStr + : mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent); + numericString = numericString.replace(/^0+/g, ""); + if (numericString === "") { + numericString = "0"; + } + if (numericString[0] === ".") { + numericString = "0" + numericString; + } + numericString = sign + numericString; + _offset = offset + _offset; + return nv(numericString); + } + else { + const value = decode(at + offset, to); + const valueOffset = _offset; + _offset = offset + valueOffset; + return tag({ tag: castBigInt(unsignedInt), value }); + } +} +function decodeSpecial(at, to) { + const minor = payload[at] & 0b0001_1111; + switch (minor) { + case specialTrue: + case specialFalse: + _offset = 1; + return minor === specialTrue; + case specialNull: + _offset = 1; + return null; + case specialUndefined: + _offset = 1; + return null; + case extendedFloat16: + if (to - at < 3) { + throw new Error("incomplete float16 at end of buf."); + } + _offset = 3; + return bytesToFloat16(payload[at + 1], payload[at + 2]); + case extendedFloat32: + if (to - at < 5) { + throw new Error("incomplete float32 at end of buf."); + } + _offset = 5; + return dataView$1.getFloat32(at + 1); + case extendedFloat64: + if (to - at < 9) { + throw new Error("incomplete float64 at end of buf."); + } + _offset = 9; + return dataView$1.getFloat64(at + 1); + default: + unexpectedMinor(minor); + } +} +function decodeCount(at, to) { + const minor = payload[at] & 0b0001_1111; + if (minor < 24) { + _offset = 1; + return minor; + } + switch (minor) { + case extendedOneByte: + if (to - at < 2) { + overflow(1); + } + _offset = 2; + return payload[at + 1]; + case extendedFloat16: + if (to - at < 3) { + overflow(2); + } + _offset = 3; + return dataView$1.getUint16(at + 1); + case extendedFloat32: + if (to - at < 5) { + overflow(4); + } + _offset = 5; + return dataView$1.getUint32(at + 1); + case extendedFloat64: + if (to - at < 9) { + overflow(8); + } + _offset = 9; + return demote(dataView$1.getBigUint64(at + 1)); + default: + unexpectedMinor(minor); + } +} +function decodeMapIndefinite(at, to) { + at += 1; + const base = at; + const map = {}; + for (; at < to;) { + if (payload[at] === 0b1111_1111) { + _offset = at - base + 2; + return map; + } + const key = decodeUtf8String(at, to); + at += _offset; + map[key] = decode(at, to); + at += _offset; + } + throw new Error("expected break marker."); +} +function decodeListIndefinite(at, to) { + at += 1; + const list = []; + for (const base = at; at < to;) { + if (payload[at] === 0b1111_1111) { + _offset = at - base + 2; + return list; + } + list.push(decode(at, to)); + at += _offset; + } + throw new Error("expected break marker."); +} +function decodeUtf8StringIndefinite(at, to) { + at += 1; + const vector = []; + for (const base = at; at < to;) { + if (payload[at] === 0b1111_1111) { + const data = alloc(vector.length); + data.set(vector, 0); + _offset = at - base + 2; + if (USE_BUFFER$1) { + return data.toString("utf-8", 0, data.length); + } + return textDecoder.decode(data); + } + const major = (payload[at] & 0b1110_0000) >> 5; + const minor = payload[at] & 0b0001_1111; + if (major !== majorUtf8String) { + unexpectedMajorInIndefiniteString(major); + } + if (minor === minorIndefinite) { + throw new Error("nested indefinite string."); + } + const bytes = decodeUnstructuredByteString(at, to); + const length = _offset; + at += length; + for (let i = 0; i < bytes.length; ++i) { + vector.push(bytes[i]); + } + } + throw new Error("expected break marker."); +} +function decodeUnstructuredByteStringIndefinite(at, to) { + at += 1; + const vector = []; + for (const base = at; at < to;) { + if (payload[at] === 0b1111_1111) { + const data = alloc(vector.length); + data.set(vector, 0); + _offset = at - base + 2; + return data; + } + const major = (payload[at] & 0b1110_0000) >> 5; + const minor = payload[at] & 0b0001_1111; + if (major !== majorUnstructuredByteString) { + unexpectedMajorInIndefiniteString(major); + } + if (minor === minorIndefinite) { + throw new Error("nested indefinite string."); + } + const bytes = decodeUnstructuredByteString(at, to); + const length = _offset; + at += length; + for (let i = 0; i < bytes.length; ++i) { + vector.push(bytes[i]); + } + } + throw new Error("expected break marker."); +} +function castBigInt(bigInt) { + if (typeof bigInt === "number") { + return bigInt; + } + const num = Number(bigInt); + if (Number.MIN_SAFE_INTEGER <= num && num <= Number.MAX_SAFE_INTEGER) { + return num; + } + return bigInt; +} +function demote(bigInteger) { + const num = Number(bigInteger); + if (num < Number.MIN_SAFE_INTEGER || Number.MAX_SAFE_INTEGER < num) { + console.warn(new Error(`@smithy/core/cbor - truncating BigInt(${bigInteger}) to ${num} with loss of precision.`)); + } + return num; +} +function overflow(n) { + throw new Error(`length ${n} greater than remaining buf len.`); +} +function unexpectedMinor(minor) { + throw new Error(`unexpected minor value ${minor}.`); +} +function unexpectedMajorInIndefiniteString(major) { + throw new Error(`unexpected major type ${major} in indefinite string.`); +} + +const USE_BUFFER = typeof Buffer !== "undefined"; +const encodeStringCache = new Map(); +let encodeCacheEpoch = 0; +let encodeCacheSaturated = false; +const initialSize = 2048; +let data = alloc(initialSize); +let dataView = new DataView(data.buffer, data.byteOffset, data.byteLength); +let cursor = 0; +function encode(_input) { + const encodeStack = [_input]; + while (encodeStack.length) { + const input = encodeStack.pop(); + if (typeof input === "string") { + const len = input.length; + if (USE_BUFFER) { + ensureSpace(len * 3 + 9); + if (len > 23) { + encodeHeader(majorUtf8String, Buffer.byteLength(input)); + cursor += data.write(input, cursor); + } + else { + encodeStringCached(input); + } + } + else { + const maxBytes = len * 3; + ensureSpace(maxBytes + 9); + const headerPos = cursor; + const result = new TextEncoder().encodeInto(input, data.subarray(cursor + 9)); + const byteLen = result.written; + let headerSize; + if (byteLen < 24) { + headerSize = 1; + } + else if (byteLen < 256) { + headerSize = 2; + } + else if (byteLen < 65536) { + headerSize = 3; + } + else if (byteLen < 4294967296) { + headerSize = 5; + } + else { + headerSize = 9; + } + if (headerSize < 9) { + data.copyWithin(headerPos + headerSize, headerPos + 9, headerPos + 9 + byteLen); + } + cursor = headerPos; + encodeInteger(majorUtf8String, byteLen); + cursor += byteLen; + } + continue; + } + if (data.byteLength - cursor < 9) { + ensureSpace(64); + } + if (typeof input === "number") { + if (Number.isInteger(input)) { + const nonNegative = input >= 0; + const major = nonNegative ? majorUint64 : majorNegativeInt64; + const value = nonNegative ? input : -input - 1; + if (value < 24) { + data[cursor++] = (major << 5) | value; + } + else if (value < 256) { + data[cursor++] = (major << 5) | 24; + data[cursor++] = value; + } + else if (value < 65536) { + data[cursor++] = (major << 5) | extendedFloat16; + data[cursor++] = value >> 8; + data[cursor++] = value & 0xff; + } + else if (value < 4294967296) { + data[cursor++] = (major << 5) | extendedFloat32; + dataView.setUint32(cursor, value); + cursor += 4; + } + else { + data[cursor++] = (major << 5) | extendedFloat64; + const hi = (value / 4294967296) | 0; + const lo = (value - hi * 4294967296) | 0; + dataView.setUint32(cursor, hi); + dataView.setUint32(cursor + 4, lo); + cursor += 8; + } + continue; + } + data[cursor++] = (majorSpecial << 5) | extendedFloat64; + dataView.setFloat64(cursor, input); + cursor += 8; + continue; + } + else if (typeof input === "bigint") { + const nonNegative = input >= 0; + const major = nonNegative ? majorUint64 : majorNegativeInt64; + const value = nonNegative ? input : -input - BigInt(1); + if (value < BigInt("18446744073709551616")) { + const n = Number(value); + if (n < 4294967296) { + encodeInteger(major, n); + } + else { + data[cursor++] = (major << 5) | extendedFloat64; + dataView.setBigUint64(cursor, value); + cursor += 8; + } + } + else { + const binaryBigInt = value.toString(2); + const bigIntBytes = new Uint8Array(Math.ceil(binaryBigInt.length / 8)); + let b = value; + let i = 0; + while (bigIntBytes.byteLength - ++i >= 0) { + bigIntBytes[bigIntBytes.byteLength - i] = Number(b & BigInt(255)); + b >>= BigInt(8); + } + ensureSpace(bigIntBytes.byteLength * 2 + 16); + data[cursor++] = nonNegative ? 0b110_00010 : 0b110_00011; + encodeHeader(majorUnstructuredByteString, bigIntBytes.byteLength); + data.set(bigIntBytes, cursor); + cursor += bigIntBytes.byteLength; + } + continue; + } + else if (input === null) { + data[cursor++] = (majorSpecial << 5) | specialNull; + continue; + } + else if (typeof input === "boolean") { + data[cursor++] = (majorSpecial << 5) | (input ? specialTrue : specialFalse); + continue; + } + else if (typeof input === "undefined") { + throw new Error("@smithy/core/cbor: client may not serialize undefined value."); + } + else if (Array.isArray(input)) { + encodeInteger(majorList, input.length); + ensureSpace(input.length * 9 + 64); + for (let i = input.length - 1; i >= 0; --i) { + encodeStack.push(input[i]); + } + continue; + } + else if (typeof input.byteLength === "number") { + ensureSpace(input.length * 2 + 9); + encodeInteger(majorUnstructuredByteString, input.length); + data.set(input, cursor); + cursor += input.byteLength; + continue; + } + else if (typeof input === "object") { + if (input instanceof NumericValue) { + const decimalIndex = input.string.indexOf("."); + const exponent = decimalIndex === -1 ? 0 : decimalIndex - input.string.length + 1; + const mantissa = BigInt(input.string.replace(".", "")); + data[cursor++] = 0b110_00100; + encodeInteger(majorList, 2); + encodeStack.push(mantissa); + encodeStack.push(exponent); + continue; + } + if (input[tagSymbol]) { + if ("tag" in input && "value" in input) { + encodeStack.push(input.value); + encodeHeader(majorTag, input.tag); + continue; + } + else { + throw new Error("tag encountered with missing fields, need 'tag' and 'value', found: " + JSON.stringify(input)); + } + } + const keys = Object.keys(input); + const len = keys.length; + encodeInteger(majorMap, len); + for (let i = len - 1; i >= 0; --i) { + encodeStack.push(input[keys[i]]); + encodeStack.push(keys[i]); + } + continue; + } + throw new Error(`data type ${input?.constructor?.name ?? typeof input} not compatible for encoding.`); + } +} +function advanceEncodingEpoch() { + encodeCacheEpoch = (encodeCacheEpoch + 1) & 0b1111_1111_1111_1111; + encodeCacheSaturated = false; +} +function toUint8Array() { + const out = alloc(cursor); + out.set(data.subarray(0, cursor), 0); + cursor = 0; + return out; +} +function resize(size) { + const old = data; + data = alloc(size); + if (old) { + if (old.copy) { + old.copy(data, 0, 0, old.byteLength); + } + else { + data.set(old, 0); + } + } + dataView = new DataView(data.buffer, data.byteOffset, data.byteLength); +} +function encodeStringCached(input) { + const cached = encodeStringCache.get(input); + if (cached !== undefined) { + data.set(cached.bytes, cursor); + cursor += cached.bytes.length; + cached.epoch = encodeCacheEpoch; + return; + } + const start = cursor; + const byteLen = Buffer.byteLength(input); + encodeInteger(majorUtf8String, byteLen); + cursor += data.write(input, cursor); + const bytes = Uint8Array.prototype.slice.call(data, start, cursor); + if (encodeStringCache.size >= 2048) { + if (encodeCacheSaturated) { + return; + } + let evicted = 0; + for (const [key, entry] of encodeStringCache) { + if (evicted >= 1024) { + break; + } + if (entry.epoch !== encodeCacheEpoch) { + encodeStringCache.delete(key); + evicted++; + } + } + if (evicted === 0) { + encodeCacheSaturated = true; + return; + } + } + if (encodeStringCache.size < 2048) { + encodeStringCache.set(input, { epoch: encodeCacheEpoch, bytes }); + } +} +function ensureSpace(bytes) { + const remaining = data.byteLength - cursor; + if (remaining < bytes) { + if (cursor < 16_000_000) { + resize(Math.max(data.byteLength * 4, data.byteLength + bytes)); + } + else { + resize(data.byteLength + bytes + 16_000_000); + } + } +} +function encodeHeader(major, value) { + if (value < 24) { + data[cursor++] = (major << 5) | value; + } + else if (value < 256) { + data[cursor++] = (major << 5) | 24; + data[cursor++] = value; + } + else if (value < 65536) { + data[cursor++] = (major << 5) | extendedFloat16; + dataView.setUint16(cursor, value); + cursor += 2; + } + else if (value < 4294967296) { + data[cursor++] = (major << 5) | extendedFloat32; + dataView.setUint32(cursor, value); + cursor += 4; + } + else { + data[cursor++] = (major << 5) | extendedFloat64; + dataView.setBigUint64(cursor, typeof value === "bigint" ? value : BigInt(value)); + cursor += 8; + } +} +function encodeInteger(major, value) { + if (value < 24) { + data[cursor++] = (major << 5) | value; + } + else if (value < 256) { + data[cursor++] = (major << 5) | 24; + data[cursor++] = value; + } + else if (value < 65536) { + data[cursor++] = (major << 5) | extendedFloat16; + data[cursor++] = value >> 8; + data[cursor++] = value & 0xff; + } + else if (value < 4294967296) { + data[cursor++] = (major << 5) | extendedFloat32; + dataView.setUint32(cursor, value); + cursor += 4; + } + else { + data[cursor++] = (major << 5) | extendedFloat64; + const hi = (value / 4294967296) | 0; + const lo = (value - hi * 4294967296) | 0; + dataView.setUint32(cursor, hi); + dataView.setUint32(cursor + 4, lo); + cursor += 8; + } +} + +const cbor = { + deserialize(payload) { + advanceDecodingEpoch(); + setPayload(payload); + return decode(0, payload.length); + }, + serialize(input) { + advanceEncodingEpoch(); + try { + encode(input); + return toUint8Array(); + } + catch (e) { + toUint8Array(); + throw e; + } + }, + resizeEncodingBuffer(size) { + resize(size); + }, +}; + +const parseCborBody = (streamBody, context) => { + return collectBody(streamBody, context).then(async (bytes) => { + if (bytes.length) { + try { + return cbor.deserialize(bytes); + } + catch (e) { + Object.defineProperty(e, "$responseBodyText", { + value: context.utf8Encoder(bytes), + }); + throw e; + } + } + return {}; + }); +}; +const dateToTag = (date) => { + return tag({ + tag: 1, + value: date.getTime() / 1000, + }); +}; +const parseCborErrorBody = async (errorBody, context) => { + const value = await parseCborBody(errorBody, context); + value.message = value.message ?? value.Message; + return value; +}; +const loadSmithyRpcV2CborErrorCode = (output, data) => { + const sanitizeErrorCode = (rawValue) => { + let cleanValue = rawValue; + if (typeof cleanValue === "number") { + cleanValue = cleanValue.toString(); + } + if (cleanValue.indexOf(",") >= 0) { + cleanValue = cleanValue.split(",")[0]; + } + if (cleanValue.indexOf(":") >= 0) { + cleanValue = cleanValue.split(":")[0]; + } + if (cleanValue.indexOf("#") >= 0) { + cleanValue = cleanValue.split("#")[1]; + } + return cleanValue; + }; + if (data["__type"] !== undefined) { + return sanitizeErrorCode(data["__type"]); + } + let codeKey; + for (const key in data) { + if (key.toLowerCase() === "code") { + codeKey = key; + break; + } + } + if (codeKey && data[codeKey] !== undefined) { + return sanitizeErrorCode(data[codeKey]); + } +}; +const checkCborResponse = (response) => { + if (String(response.headers["smithy-protocol"]).toLowerCase() !== "rpc-v2-cbor") { + throw new Error("Malformed RPCv2 CBOR response, status: " + response.statusCode); + } +}; +const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { + const endpoint = await context.endpoint(); + const { hostname, protocol = "https", port, path: basePath } = endpoint; + const contents = { + protocol, + hostname, + port, + method: "POST", + path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, + headers: { + ...headers, + }, + }; + if (resolvedHostname !== undefined) { + contents.hostname = resolvedHostname; + } + if (endpoint.headers) { + for (const name in endpoint.headers) { + contents.headers[name] = endpoint.headers[name]; + } + } + if (body !== undefined) { + contents.body = body; + try { + contents.headers["content-length"] = String(calculateBodyLength(body)); + } + catch (ignored) { } + } + return new HttpRequest(contents); +}; + +class CborCodec extends SerdeContext { + createSerializer() { + const serializer = new CborShapeSerializer(); + serializer.setSerdeContext(this.serdeContext); + return serializer; + } + createDeserializer() { + const deserializer = new CborShapeDeserializer(); + deserializer.setSerdeContext(this.serdeContext); + return deserializer; + } +} +class CborShapeSerializer extends SerdeContext { + value; + write(schema, value) { + this.value = this.serialize(schema, value); + } + serialize(schema, source) { + const ns = NormalizedSchema.of(schema); + if (source == null) { + if (ns.isIdempotencyToken()) { + return generateIdempotencyToken(); + } + return source; + } + if (ns.isBlobSchema()) { + if (typeof source === "string") { + return (this.serdeContext?.base64Decoder ?? fromBase64)(source); + } + return source; + } + if (ns.isTimestampSchema()) { + if (typeof source === "number" || typeof source === "bigint") { + return dateToTag(new Date((Number(source) / 1000) | 0)); + } + return dateToTag(source); + } + if (typeof source === "function" || typeof source === "object") { + const sourceObject = source; + if (ns.isListSchema() && Array.isArray(sourceObject)) { + const sparse = !!ns.getMergedTraits().sparse; + const newArray = []; + let i = 0; + for (const item of sourceObject) { + const value = this.serialize(ns.getValueSchema(), item); + if (value != null || sparse) { + newArray[i++] = value; + } + } + return newArray; + } + if (sourceObject instanceof Date) { + return dateToTag(sourceObject); + } + const newObject = {}; + if (ns.isMapSchema()) { + const sparse = !!ns.getMergedTraits().sparse; + for (const key in sourceObject) { + const value = this.serialize(ns.getValueSchema(), sourceObject[key]); + if (value != null || sparse) { + newObject[key] = value; + } + } + } + else if (ns.isStructSchema()) { + for (const [key, memberSchema] of ns.structIterator()) { + const value = this.serialize(memberSchema, sourceObject[key]); + if (value != null) { + newObject[key] = value; + } + } + const isUnion = ns.isUnionSchema(); + if (isUnion && Array.isArray(sourceObject.$unknown)) { + const [k, v] = sourceObject.$unknown; + newObject[k] = v; + } + else if (typeof sourceObject.__type === "string") { + for (const k in sourceObject) { + if (!(k in newObject)) { + newObject[k] = this.serialize(15, sourceObject[k]); + } + } + } + } + else if (ns.isDocumentSchema()) { + for (const key in sourceObject) { + newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]); + } + } + else if (ns.isBigDecimalSchema()) { + return sourceObject; + } + return newObject; + } + return source; + } + flush() { + const buffer = cbor.serialize(this.value); + this.value = undefined; + return buffer; + } +} +class CborShapeDeserializer extends SerdeContext { + read(schema, bytes) { + const data = cbor.deserialize(bytes); + return this.readValue(schema, data); + } + readValue(_schema, value) { + const ns = NormalizedSchema.of(_schema); + if (ns.isTimestampSchema()) { + if (typeof value === "number") { + return _parseEpochTimestamp(value); + } + if (typeof value === "object") { + if (value.tag === 1 && "value" in value) { + return _parseEpochTimestamp(value.value); + } + } + } + if (ns.isBlobSchema()) { + if (typeof value === "string") { + return (this.serdeContext?.base64Decoder ?? fromBase64)(value); + } + return value; + } + if (typeof value === "undefined" || + typeof value === "boolean" || + typeof value === "number" || + typeof value === "string" || + typeof value === "bigint" || + typeof value === "symbol") { + return value; + } + else if (typeof value === "object") { + if (value === null) { + return null; + } + if ("byteLength" in value) { + return value; + } + if (value instanceof Date) { + return value; + } + if (ns.isDocumentSchema()) { + return value; + } + if (ns.isListSchema()) { + const newArray = []; + const memberSchema = ns.getValueSchema(); + for (const item of value) { + const itemValue = this.readValue(memberSchema, item); + newArray.push(itemValue); + } + return newArray; + } + const newObject = {}; + if (ns.isMapSchema()) { + const targetSchema = ns.getValueSchema(); + for (const key in value) { + const itemValue = this.readValue(targetSchema, value[key]); + newObject[key] = itemValue; + } + } + else if (ns.isStructSchema()) { + const isUnion = ns.isUnionSchema(); + let keys; + if (isUnion) { + keys = new Set(); + for (const k in value) { + if (k !== "__type") { + keys.add(k); + } + } + } + for (const [key, memberSchema] of ns.structIterator()) { + if (isUnion) { + keys.delete(key); + } + if (value[key] != null) { + newObject[key] = this.readValue(memberSchema, value[key]); + } + } + if (isUnion && keys?.size === 1) { + let newObjectEmpty = true; + for (const _ in newObject) { + newObjectEmpty = false; + break; + } + if (newObjectEmpty) { + const k = keys.values().next().value; + newObject.$unknown = [k, value[k]]; + } + } + else if (typeof value.__type === "string") { + for (const k in value) { + if (!(k in newObject)) { + newObject[k] = value[k]; + } + } + } + } + else if (value instanceof NumericValue) { + return value; + } + return newObject; + } + else { + return value; + } + } +} + +class SmithyRpcV2CborProtocol extends RpcProtocol { + codec = new CborCodec(); + serializer = this.codec.createSerializer(); + deserializer = this.codec.createDeserializer(); + constructor({ defaultNamespace, errorTypeRegistries, }) { + super({ defaultNamespace, errorTypeRegistries }); + } + getShapeId() { + return "smithy.protocols#rpcv2Cbor"; + } + getPayloadCodec() { + return this.codec; + } + async serializeRequest(operationSchema, input, context) { + const request = await super.serializeRequest(operationSchema, input, context); + Object.assign(request.headers, { + "content-type": this.getDefaultContentType(), + "smithy-protocol": "rpc-v2-cbor", + accept: this.getDefaultContentType(), + }); + if (deref(operationSchema.input) === "unit") { + delete request.body; + delete request.headers["content-type"]; + } + else { + if (!request.body) { + this.serializer.write(15, {}); + request.body = this.serializer.flush(); + } + try { + request.headers["content-length"] = String(request.body.byteLength); + } + catch (ignored) { } + } + const { service, operation } = getSmithyContext(context); + const path = `/service/${service}/operation/${operation}`; + if (request.path.endsWith("/")) { + request.path += path.slice(1); + } + else { + request.path += path; + } + return request; + } + async deserializeResponse(operationSchema, context, response) { + return super.deserializeResponse(operationSchema, context, response); + } + async handleError(operationSchema, context, response, dataObject, metadata) { + const errorName = loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown"; + const errorMetadata = { + $metadata: metadata, + $fault: response.statusCode <= 500 ? "client" : "server", + }; + let namespace = this.options.defaultNamespace; + if (errorName.includes("#")) { + [namespace] = errorName.split("#"); + } + const registry = this.compositeErrorRegistry; + const nsRegistry = TypeRegistry.for(namespace); + registry.copyFrom(nsRegistry); + let errorSchema; + try { + errorSchema = registry.getSchema(errorName); + } + catch (ignored) { + if (dataObject.Message) { + dataObject.message = dataObject.Message; + } + const syntheticRegistry = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace); + registry.copyFrom(syntheticRegistry); + const baseExceptionSchema = registry.getBaseException(); + if (baseExceptionSchema) { + const ErrorCtor = registry.getErrorCtor(baseExceptionSchema); + throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject); + } + throw Object.assign(new Error(errorName), errorMetadata, dataObject); + } + const ns = NormalizedSchema.of(errorSchema); + const ErrorCtor = registry.getErrorCtor(errorSchema); + const message = dataObject.message ?? dataObject.Message ?? "Unknown"; + const exception = new ErrorCtor({}); + const output = {}; + for (const [name, member] of ns.structIterator()) { + output[name] = this.deserializer.readValue(member, dataObject[name]); + } + throw Object.assign(exception, errorMetadata, { + $fault: ns.getMergedTraits().error, + message, + }, output); + } + getDefaultContentType() { + return "application/cbor"; + } +} + +exports.CborCodec = CborCodec; +exports.CborShapeDeserializer = CborShapeDeserializer; +exports.CborShapeSerializer = CborShapeSerializer; +exports.SmithyRpcV2CborProtocol = SmithyRpcV2CborProtocol; +exports.buildHttpRpcRequest = buildHttpRpcRequest; +exports.cbor = cbor; +exports.checkCborResponse = checkCborResponse; +exports.dateToTag = dateToTag; +exports.loadSmithyRpcV2CborErrorCode = loadSmithyRpcV2CborErrorCode; +exports.parseCborBody = parseCborBody; +exports.parseCborErrorBody = parseCborErrorBody; +exports.tag = tag; +exports.tagSymbol = tagSymbol; + + +/***/ }), + +/***/ 99542: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { createReadStream } = __nccwpck_require__(73024); +const { Writable } = __nccwpck_require__(57075); +const { toUint8Array, concatBytes } = __nccwpck_require__(92430); +const { createHash, createHmac } = __nccwpck_require__(77598); +const zlib = __nccwpck_require__(38522); + +async function blobReader(blob, onChunk, chunkSize = 1024 * 1024) { + const size = blob.size; + let totalBytesRead = 0; + while (totalBytesRead < size) { + const slice = blob.slice(totalBytesRead, Math.min(size, totalBytesRead + chunkSize)); + onChunk(new Uint8Array(await slice.arrayBuffer())); + totalBytesRead += slice.size; + } +} + +const blobHasher = async function blobHasher(hashCtor, blob) { + const hash = new hashCtor(); + await blobReader(blob, (chunk) => { + hash.update(chunk); + }); + return hash.digest(); +}; + +class HashCalculator extends Writable { + hash; + constructor(hash, options) { + super(options); + this.hash = hash; + } + _write(chunk, encoding, callback) { + try { + this.hash.update(toUint8Array(chunk)); + } + catch (err) { + return callback(err); + } + callback(); + } +} + +const fileStreamHasher = (hashCtor, fileStream) => new Promise((resolve, reject) => { + if (!isReadStream(fileStream)) { + reject(new Error("Unable to calculate hash for non-file streams.")); + return; + } + const fileStreamTee = createReadStream(fileStream.path, { + start: fileStream.start, + end: fileStream.end, + }); + const hash = new hashCtor(); + const hashCalculator = new HashCalculator(hash); + fileStreamTee.pipe(hashCalculator); + fileStreamTee.on("error", (err) => { + hashCalculator.end(); + reject(err); + }); + hashCalculator.on("error", reject); + hashCalculator.on("finish", function () { + hash.digest().then(resolve).catch(reject); + }); +}); +const isReadStream = (stream) => typeof stream.path === "string"; + +const readableStreamHasher = (hashCtor, readableStream) => { + if (readableStream.readableFlowing !== null) { + throw new Error("Unable to calculate hash for flowing readable stream"); + } + const hash = new hashCtor(); + const hashCalculator = new HashCalculator(hash); + readableStream.pipe(hashCalculator); + return new Promise((resolve, reject) => { + readableStream.on("error", (err) => { + hashCalculator.end(); + reject(err); + }); + hashCalculator.on("error", reject); + hashCalculator.on("finish", () => { + hash.digest().then(resolve).catch(reject); + }); + }); +}; + +class Md5Js { + digestLength = 16; + state = Uint32Array.from(INIT$1); + writeBuffer = new DataView(new ArrayBuffer(64)); + bufferLength = 0; + bytesHashed = 0; + update(sourceData) { + const data = toUint8Array(sourceData); + let pos = 0; + let len = data.byteLength; + this.bytesHashed += len; + while (len > 0) { + this.writeBuffer.setUint8(this.bufferLength++, data[pos++]); + --len; + if (this.bufferLength === 64) { + compress(this.state, this.writeBuffer); + this.bufferLength = 0; + } + } + } + async digest() { + const state = Uint32Array.from(this.state); + const buf = new DataView(this.writeBuffer.buffer.slice(0)); + let bufLen = this.bufferLength; + const bits = this.bytesHashed * 8; + buf.setUint8(bufLen++, 0x80); + if (this.bufferLength % 64 >= 56) { + for (let i = bufLen; i < 64; ++i) { + buf.setUint8(i, 0); + } + compress(state, buf); + bufLen = 0; + } + for (let i = bufLen; i < 56; ++i) { + buf.setUint8(i, 0); + } + buf.setUint32(56, bits >>> 0, true); + buf.setUint32(60, Math.floor(bits / 2 ** 32), true); + compress(state, buf); + const out = new Uint8Array(16); + const view = new DataView(out.buffer); + for (let i = 0; i < 4; ++i) { + view.setUint32(i * 4, state[i], true); + } + return out; + } + reset() { + this.state.set(INIT$1); + this.writeBuffer = new DataView(new ArrayBuffer(64)); + this.bufferLength = 0; + this.bytesHashed = 0; + } +} +const INIT$1 = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476]; +const M = 0xffffffff; +const S = Uint8Array.of(7, 12, 17, 22, 5, 9, 14, 20, 4, 11, 16, 23, 6, 10, 15, 21); +const T = Array.from({ length: 64 }, (_, i) => (Math.abs(Math.sin(i + 1)) * 2 ** 32) >>> 0); +function compress(state, block) { + let a = state[0], b = state[1], c = state[2], d = state[3]; + for (let i = 0; i < 64; ++i) { + let f, g; + if (i < 16) { + f = (b & c) | (~b & d); + g = i; + } + else if (i < 32) { + f = (d & b) | (c & ~d); + g = (5 * i + 1) % 16; + } + else if (i < 48) { + f = b ^ c ^ d; + g = (3 * i + 5) % 16; + } + else { + f = c ^ (b | ~d); + g = (7 * i) % 16; + } + const x = block.getUint32(g * 4, true); + const tmp = d; + d = c; + c = b; + const s = S[(i >> 4) * 4 + (i & 3)]; + const sum = (((a + f) & M) + ((x + T[i]) & M)) & M; + b = (b + (((sum << s) | (sum >>> (32 - s))) >>> 0)) & M; + a = tmp; + } + state[0] = (state[0] + a) & M; + state[1] = (state[1] + b) & M; + state[2] = (state[2] + c) & M; + state[3] = (state[3] + d) & M; +} + +const hasNativeCrypto$1 = (() => { + try { + createHash("md5"); + return true; + } + catch { + return false; + } +})(); +const Md5Node = hasNativeCrypto$1 ? buildNativeClass$2() : Md5Js; +function buildNativeClass$2() { + return class Md5Node { + digestLength = 16; + hash = createHash("md5"); + update(data) { + this.hash.update(toUint8Array(data)); + } + async digest() { + const buf = this.hash.copy().digest(); + return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength); + } + reset() { + this.hash = createHash("md5"); + } + }; +} + +const CRC32_TABLE = new Uint32Array(256); +for (let i = 0; i < 256; ++i) { + let c = i; + for (let j = 0; j < 8; ++j) { + c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1; + } + CRC32_TABLE[i] = c >>> 0; +} +const ONES = 0xffff_ffff; +class Crc32Js { + digestLength = 4; + checksum = ONES; + update(data) { + for (let i = 0; i < data.length; ++i) { + this.checksum = (this.checksum >>> 8) ^ CRC32_TABLE[(this.checksum ^ data[i]) & 0xff]; + } + } + digestSync() { + return (this.checksum ^ ONES) >>> 0; + } + async digest() { + const value = this.digestSync(); + const out = new Uint8Array(4); + new DataView(out.buffer).setUint32(0, value, false); + return out; + } + reset() { + this.checksum = ONES; + } +} + +const zlibCrc32 = typeof zlib.crc32 === "function" ? zlib.crc32 : undefined; +const Crc32Node = zlibCrc32 ? buildNativeClass$1(zlibCrc32) : Crc32Js; +function buildNativeClass$1(nativeCrc32) { + return class Crc32Node { + digestLength = 4; + value = 0; + update(data) { + this.value = nativeCrc32(data, this.value); + } + digestSync() { + return this.value >>> 0; + } + async digest() { + const out = new Uint8Array(4); + new DataView(out.buffer).setUint32(0, this.digestSync(), false); + return out; + } + reset() { + this.value = 0; + } + }; +} + +const BLOCK = 64; +const DIGEST_LENGTH = 32; +const MAX_HASHABLE_LENGTH = 2 ** 53 - 1; +class Sha256Js { + digestLength = DIGEST_LENGTH; + state = Int32Array.from(INIT); + w; + buffer = new Uint8Array(64); + bufferLength = 0; + bytesHashed = 0; + finished = false; + inner; + outer; + constructor(secret) { + if (secret) { + const key = Sha256Js.normalizeKey(secret); + this.inner = new Sha256Js(); + this.outer = new Sha256Js(); + const { inner, outer } = this; + const pad = new Uint8Array(BLOCK * 2); + for (let i = 0; i < BLOCK; ++i) { + pad[i] = 0x36 ^ key[i]; + pad[i + BLOCK] = 0x5c ^ key[i]; + } + inner.update(pad.subarray(0, BLOCK)); + outer.update(pad.subarray(BLOCK)); + } + } + update(data) { + if (this.finished) { + throw new Error("Attempted to update an already finished HMAC."); + } + if (this.inner) { + this.inner.update(data); + return; + } + const chunk = toUint8Array(data); + let position = 0; + let { byteLength } = chunk; + this.bytesHashed += byteLength; + if (this.bytesHashed * 8 > MAX_HASHABLE_LENGTH) { + throw new Error("Cannot hash more than 2^53 - 1 bits"); + } + while (byteLength > 0) { + this.buffer[this.bufferLength++] = chunk[position++]; + byteLength--; + if (this.bufferLength === BLOCK) { + this.hashBuffer(); + this.bufferLength = 0; + } + } + } + async digest() { + const { inner, outer } = this; + if (inner && outer) { + if (this.finished) { + throw new Error("Attempted to digest an already finished HMAC."); + } + this.finished = true; + const innerDigest = inner.digestSync(); + outer.update(innerDigest); + return outer.digestSync(); + } + return this.digestSync(); + } + reset() { + this.state = Int32Array.from(INIT); + this.buffer = new Uint8Array(64); + this.bufferLength = 0; + this.bytesHashed = 0; + } + digestSync() { + const state = this.state.slice(); + const buffer = this.buffer.slice(); + let bufferLength = this.bufferLength; + const bitsHashed = this.bytesHashed * 8; + const bufferView = new DataView(buffer.buffer, buffer.byteOffset, buffer.byteLength); + bufferView.setUint8(bufferLength++, 0x80); + if ((bufferLength - 1) % BLOCK >= BLOCK - 8) { + for (let i = bufferLength; i < BLOCK; ++i) { + bufferView.setUint8(i, 0); + } + this.hashBufferWith(state, buffer); + bufferLength = 0; + } + for (let i = bufferLength; i < BLOCK - 8; ++i) { + bufferView.setUint8(i, 0); + } + bufferView.setUint32(BLOCK - 8, Math.floor(bitsHashed / 0x100000000), false); + bufferView.setUint32(BLOCK - 4, bitsHashed, false); + this.hashBufferWith(state, buffer); + const out = new Uint8Array(DIGEST_LENGTH); + for (let i = 0; i < 8; ++i) { + out[i * 4] = (state[i] >>> 24) & 0xff; + out[i * 4 + 1] = (state[i] >>> 16) & 0xff; + out[i * 4 + 2] = (state[i] >>> 8) & 0xff; + out[i * 4 + 3] = (state[i] >>> 0) & 0xff; + } + return out; + } + static normalizeKey(secret) { + const key = toUint8Array(secret); + if (key.byteLength > BLOCK) { + const h = new Sha256Js(); + h.update(key); + const out = h.digestSync(); + const padded = new Uint8Array(BLOCK); + padded.set(out); + return padded; + } + if (key.byteLength < BLOCK) { + const padded = new Uint8Array(BLOCK); + padded.set(key); + return padded; + } + return key; + } + hashBuffer() { + this.hashBufferWith(this.state, this.buffer); + } + hashBufferWith(state, buffer) { + const w = (this.w ??= new Int32Array(64)); + let s0 = state[0], s1 = state[1], s2 = state[2], s3 = state[3], s4 = state[4], s5 = state[5], s6 = state[6], s7 = state[7]; + for (let i = 0; i < BLOCK; ++i) { + if (i < 16) { + w[i] = + ((buffer[i * 4] & 0xff) << 24) | + ((buffer[i * 4 + 1] & 0xff) << 16) | + ((buffer[i * 4 + 2] & 0xff) << 8) | + (buffer[i * 4 + 3] & 0xff); + } + else { + let u = w[i - 2]; + const t1 = ((u >>> 17) | (u << 15)) ^ ((u >>> 19) | (u << 13)) ^ (u >>> 10); + u = w[i - 15]; + const t2 = ((u >>> 7) | (u << 25)) ^ ((u >>> 18) | (u << 14)) ^ (u >>> 3); + w[i] = ((t1 + w[i - 7]) | 0) + ((t2 + w[i - 16]) | 0); + } + const t1 = ((((((s4 >>> 6) | (s4 << 26)) ^ ((s4 >>> 11) | (s4 << 21)) ^ ((s4 >>> 25) | (s4 << 7))) + + ((s4 & s5) ^ (~s4 & s6))) | + 0) + + ((s7 + ((K[i] + w[i]) | 0)) | 0)) | + 0; + const t2 = ((((s0 >>> 2) | (s0 << 30)) ^ ((s0 >>> 13) | (s0 << 19)) ^ ((s0 >>> 22) | (s0 << 10))) + + ((s0 & s1) ^ (s0 & s2) ^ (s1 & s2))) | + 0; + s7 = s6; + s6 = s5; + s5 = s4; + s4 = (s3 + t1) | 0; + s3 = s2; + s2 = s1; + s1 = s0; + s0 = (t1 + t2) | 0; + } + state[0] += s0; + state[1] += s1; + state[2] += s2; + state[3] += s3; + state[4] += s4; + state[5] += s5; + state[6] += s6; + state[7] += s7; + } +} +const INIT = new Int32Array([ + 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19, +]); +const K = new Int32Array([ + 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, + 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, + 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, + 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, + 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, + 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, + 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, + 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2, +]); + +const hasNativeCrypto = (() => { + try { + createHash("sha256"); + return true; + } + catch { + return false; + } +})(); +const Sha256Node = hasNativeCrypto ? buildNativeClass() : Sha256Js; +function buildNativeClass() { + return class Sha256Node { + digestLength = 32; + secret; + hash; + isHmac; + finished = false; + constructor(secret) { + this.secret = secret; + this.isHmac = !!secret; + this.hash = this.createHash(); + } + update(data) { + if (this.finished) { + throw new Error("Attempted to update an already finished hash."); + } + this.hash.update(data); + } + async digest() { + let buf; + if (this.isHmac) { + this.finished = true; + buf = this.hash.digest(); + } + else { + buf = this.hash.copy().digest(); + } + return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength); + } + reset() { + this.hash = this.createHash(); + this.finished = false; + } + createHash() { + return this.secret ? createHmac("sha256", toBuffer(this.secret)) : createHash("sha256"); + } + }; +} +function toBuffer(data) { + if (typeof data === "string") { + return data; + } + if (ArrayBuffer.isView(data)) { + return Buffer.from(data.buffer, data.byteOffset, data.byteLength); + } + return Buffer.from(data); +} + +const { digest, sign, importKey } = globalThis?.crypto?.subtle ?? {}; +const subtle = typeof digest === "function" && typeof sign === "function" && typeof importKey === "function" + ? globalThis.crypto.subtle + : undefined; +const MAX_PENDING_BYTES = 8 * 1024 * 1024; +class Sha256WebCrypto { + digestLength = 32; + secret; + pending = []; + pendingBytes = 0; + fallback; + finished = false; + constructor(secret) { + if (secret) { + this.secret = toUint8Array(secret); + } + } + update(data) { + if (this.finished) { + throw new Error("Attempted to update an already finished HMAC."); + } + if (this.fallback) { + this.fallback.update(data); + return; + } + this.pending.push(data.slice()); + this.pendingBytes += data.byteLength; + if (this.pendingBytes >= MAX_PENDING_BYTES) { + this.switchToFallback(); + } + } + async digest() { + if (this.fallback) { + return this.fallback.digest(); + } + if (this.secret && this.finished) { + throw new Error("Attempted to digest an already finished HMAC."); + } + const data = concatBytes(this.pending); + if (subtle) { + if (this.secret) { + this.finished = true; + const key = await subtle.importKey("raw", this.secret, { name: "HMAC", hash: "SHA-256" }, false, ["sign"]); + const sig = await subtle.sign("HMAC", key, data); + return new Uint8Array(sig); + } + const hash = await subtle.digest("SHA-256", data); + return new Uint8Array(hash); + } + const sha256 = new Sha256Js(this.secret); + sha256.update(data); + return sha256.digest(); + } + reset() { + this.pending = []; + this.pendingBytes = 0; + this.fallback = undefined; + this.finished = false; + } + switchToFallback() { + const sha256Js = new Sha256Js(this.secret); + for (const chunk of this.pending) { + sha256Js.update(chunk); + } + this.fallback = sha256Js; + this.pending = []; + this.pendingBytes = 0; + } +} + +exports.Crc32 = Crc32Node; +exports.Crc32Js = Crc32Js; +exports.Crc32Node = Crc32Node; +exports.Md5 = Md5Node; +exports.Md5Js = Md5Js; +exports.Md5Node = Md5Node; +exports.Sha256 = Sha256Node; +exports.Sha256Js = Sha256Js; +exports.Sha256Node = Sha256Node; +exports.Sha256WebCrypto = Sha256WebCrypto; +exports.blobHasher = blobHasher; +exports.blobReader = blobReader; +exports.fileStreamHasher = fileStreamHasher; +exports.readableStreamHasher = readableStreamHasher; + + +/***/ }), + +/***/ 92658: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { getSmithyContext, normalizeProvider } = __nccwpck_require__(34534); +exports.getSmithyContext = getSmithyContext; +exports.normalizeProvider = normalizeProvider; +const { SMITHY_CONTEXT_KEY, AlgorithmId } = __nccwpck_require__(90690); +exports.AlgorithmId = AlgorithmId; +const { NormalizedSchema } = __nccwpck_require__(26890); + +const getAllAliases = (name, aliases) => { + const _aliases = []; + if (name) { + _aliases.push(name); + } + if (aliases) { + for (const alias of aliases) { + _aliases.push(alias); + } + } + return _aliases; +}; +const getMiddlewareNameWithAliases = (name, aliases) => { + return `${name || "anonymous"}${aliases && aliases.length > 0 ? ` (a.k.a. ${aliases.join(",")})` : ""}`; +}; +const constructStack = () => { + let absoluteEntries = []; + let relativeEntries = []; + let identifyOnResolve = false; + const entriesNameSet = new Set(); + const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] || + priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]); + const removeByName = (toRemove) => { + let isRemoved = false; + const filterCb = (entry) => { + const aliases = getAllAliases(entry.name, entry.aliases); + if (aliases.includes(toRemove)) { + isRemoved = true; + for (const alias of aliases) { + entriesNameSet.delete(alias); + } + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }; + const removeByReference = (toRemove) => { + let isRemoved = false; + const filterCb = (entry) => { + if (entry.middleware === toRemove) { + isRemoved = true; + for (const alias of getAllAliases(entry.name, entry.aliases)) { + entriesNameSet.delete(alias); + } + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }; + const cloneTo = (toStack) => { + absoluteEntries.forEach((entry) => { + toStack.add(entry.middleware, { ...entry }); + }); + relativeEntries.forEach((entry) => { + toStack.addRelativeTo(entry.middleware, { ...entry }); + }); + toStack.identifyOnResolve?.(stack.identifyOnResolve()); + return toStack; + }; + const expandRelativeMiddlewareList = (from) => { + const expandedMiddlewareList = []; + from.before.forEach((entry) => { + if (entry.before.length === 0 && entry.after.length === 0) { + expandedMiddlewareList.push(entry); + } + else { + expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); + } + }); + expandedMiddlewareList.push(from); + from.after.reverse().forEach((entry) => { + if (entry.before.length === 0 && entry.after.length === 0) { + expandedMiddlewareList.push(entry); + } + else { + expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); + } + }); + return expandedMiddlewareList; + }; + const getMiddlewareList = (debug = false) => { + const normalizedAbsoluteEntries = []; + const normalizedRelativeEntries = []; + const normalizedEntriesNameMap = {}; + absoluteEntries.forEach((entry) => { + const normalizedEntry = { + ...entry, + before: [], + after: [], + }; + for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) { + normalizedEntriesNameMap[alias] = normalizedEntry; + } + normalizedAbsoluteEntries.push(normalizedEntry); + }); + relativeEntries.forEach((entry) => { + const normalizedEntry = { + ...entry, + before: [], + after: [], + }; + for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) { + normalizedEntriesNameMap[alias] = normalizedEntry; + } + normalizedRelativeEntries.push(normalizedEntry); + }); + normalizedRelativeEntries.forEach((entry) => { + if (entry.toMiddleware) { + const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware]; + if (toMiddleware === undefined) { + if (debug) { + return; + } + throw new Error(`${entry.toMiddleware} is not found when adding ` + + `${getMiddlewareNameWithAliases(entry.name, entry.aliases)} ` + + `middleware ${entry.relation} ${entry.toMiddleware}`); + } + if (entry.relation === "after") { + toMiddleware.after.push(entry); + } + if (entry.relation === "before") { + toMiddleware.before.push(entry); + } + } + }); + const mainChain = sort(normalizedAbsoluteEntries) + .map(expandRelativeMiddlewareList) + .reduce((wholeList, expandedMiddlewareList) => { + wholeList.push(...expandedMiddlewareList); + return wholeList; + }, []); + return mainChain; + }; + const stack = { + add: (middleware, options = {}) => { + const { name, override, aliases: _aliases } = options; + const entry = { + step: "initialize", + priority: "normal", + middleware, + ...options, + }; + const aliases = getAllAliases(name, _aliases); + if (aliases.length > 0) { + if (aliases.some((alias) => entriesNameSet.has(alias))) { + if (!override) + throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`); + for (const alias of aliases) { + const toOverrideIndex = absoluteEntries.findIndex((entry) => entry.name === alias || entry.aliases?.some((a) => a === alias)); + if (toOverrideIndex === -1) { + continue; + } + const toOverride = absoluteEntries[toOverrideIndex]; + if (toOverride.step !== entry.step || entry.priority !== toOverride.priority) { + throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware with ` + + `${toOverride.priority} priority in ${toOverride.step} step cannot ` + + `be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware with ` + + `${entry.priority} priority in ${entry.step} step.`); + } + absoluteEntries.splice(toOverrideIndex, 1); + } + } + for (const alias of aliases) { + entriesNameSet.add(alias); + } + } + absoluteEntries.push(entry); + }, + addRelativeTo: (middleware, options) => { + const { name, override, aliases: _aliases } = options; + const entry = { + middleware, + ...options, + }; + const aliases = getAllAliases(name, _aliases); + if (aliases.length > 0) { + if (aliases.some((alias) => entriesNameSet.has(alias))) { + if (!override) + throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`); + for (const alias of aliases) { + const toOverrideIndex = relativeEntries.findIndex((entry) => entry.name === alias || entry.aliases?.some((a) => a === alias)); + if (toOverrideIndex === -1) { + continue; + } + const toOverride = relativeEntries[toOverrideIndex]; + if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) { + throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware ` + + `${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden ` + + `by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware ${entry.relation} ` + + `"${entry.toMiddleware}" middleware.`); + } + relativeEntries.splice(toOverrideIndex, 1); + } + } + for (const alias of aliases) { + entriesNameSet.add(alias); + } + } + relativeEntries.push(entry); + }, + clone: () => cloneTo(constructStack()), + use: (plugin) => { + plugin.applyToStack(stack); + }, + remove: (toRemove) => { + if (typeof toRemove === "string") + return removeByName(toRemove); + else + return removeByReference(toRemove); + }, + removeByTag: (toRemove) => { + let isRemoved = false; + const filterCb = (entry) => { + const { tags, name, aliases: _aliases } = entry; + if (tags && tags.includes(toRemove)) { + const aliases = getAllAliases(name, _aliases); + for (const alias of aliases) { + entriesNameSet.delete(alias); + } + isRemoved = true; + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }, + concat: (from) => { + const cloned = cloneTo(constructStack()); + cloned.use(from); + cloned.identifyOnResolve(identifyOnResolve || cloned.identifyOnResolve() || (from.identifyOnResolve?.() ?? false)); + return cloned; + }, + applyToStack: cloneTo, + identify: () => { + return getMiddlewareList(true).map((mw) => { + const step = mw.step ?? + mw.relation + + " " + + mw.toMiddleware; + return getMiddlewareNameWithAliases(mw.name, mw.aliases) + " - " + step; + }); + }, + identifyOnResolve(toggle) { + if (typeof toggle === "boolean") + identifyOnResolve = toggle; + return identifyOnResolve; + }, + resolve: (handler, context) => { + for (const middleware of getMiddlewareList() + .map((entry) => entry.middleware) + .reverse()) { + handler = middleware(handler, context); + } + if (identifyOnResolve) { + console.log(stack.identify()); + } + return handler; + }, + }; + return stack; +}; +const stepWeights = { + initialize: 5, + serialize: 4, + build: 3, + finalizeRequest: 2, + deserialize: 1, +}; +const priorityWeights = { + high: 3, + normal: 2, + low: 1, +}; + +const invalidFunction = (message) => () => { + throw new Error(message); +}; + +const invalidProvider = (message) => () => Promise.reject(message); + +const getCircularReplacer = () => { + const seen = new WeakSet(); + return (key, value) => { + if (typeof value === "object" && value !== null) { + if (seen.has(value)) { + return "[Circular]"; + } + seen.add(value); + } + return value; + }; +}; + +const sleep = (seconds) => { + return new Promise((resolve) => setTimeout(resolve, seconds * 1000)); +}; + +const waiterServiceDefaults = { + minDelay: 2, + maxDelay: 120, +}; +var WaiterState; +(function (WaiterState) { + WaiterState["ABORTED"] = "ABORTED"; + WaiterState["FAILURE"] = "FAILURE"; + WaiterState["SUCCESS"] = "SUCCESS"; + WaiterState["RETRY"] = "RETRY"; + WaiterState["TIMEOUT"] = "TIMEOUT"; +})(WaiterState || (WaiterState = {})); +const checkExceptions = (result) => { + if (result.state === WaiterState.ABORTED) { + const abortError = new Error(`${JSON.stringify({ + ...result, + reason: "Request was aborted", + }, getCircularReplacer())}`); + abortError.name = "AbortError"; + throw abortError; + } + else if (result.state === WaiterState.TIMEOUT) { + const timeoutError = new Error(`${JSON.stringify({ + ...result, + reason: "Waiter has timed out", + }, getCircularReplacer())}`); + timeoutError.name = "TimeoutError"; + throw timeoutError; + } + else if (result.state !== WaiterState.SUCCESS) { + throw new Error(`${JSON.stringify(result, getCircularReplacer())}`); + } + return result; +}; + +const runPolling = async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => { + const observedResponses = {}; + const [minDelayMs, maxDelayMs] = [minDelay * 1000, maxDelay * 1000]; + let currentAttempt = 0; + const waitUntil = Date.now() + maxWaitTime * 1000; + const warn403Time = Date.now() + 60_000; + let didWarn403 = false; + while (true) { + if (currentAttempt > 0) { + const delayMs = exponentialBackoffWithJitter(minDelayMs, maxDelayMs, currentAttempt, waitUntil); + if (abortController?.signal?.aborted || abortSignal?.aborted) { + const message = "AbortController signal aborted."; + observedResponses[message] |= 0; + observedResponses[message] += 1; + return { state: WaiterState.ABORTED, observedResponses }; + } + if (Date.now() + delayMs > waitUntil) { + return { state: WaiterState.TIMEOUT, observedResponses }; + } + await sleep(delayMs / 1_000); + } + const { state, reason } = await acceptorChecks(client, input); + if (reason) { + const message = createMessageFromResponse(reason); + observedResponses[message] |= 0; + observedResponses[message] += 1; + } + if (state !== WaiterState.RETRY) { + return { state, reason, final: reason, observedResponses }; + } + currentAttempt += 1; + if (!didWarn403 && Date.now() >= warn403Time) { + checkWarn403(observedResponses, client); + didWarn403 = true; + } + } +}; +const checkWarn403 = (observedResponses = {}, client) => { + const orderedErrors = Object.keys(observedResponses); + let count403 = 0; + for (const response of orderedErrors) { + const n = observedResponses[response] | 0; + if (response.startsWith("403:")) { + count403 += n; + } + } + const clientLogger = client?.config?.logger; + const warningLogger = typeof clientLogger?.warn === "function" && !clientLogger.constructor?.name?.includes?.("NoOpLogger") + ? clientLogger + : console; + if (count403 >= 3 || orderedErrors[orderedErrors.length - 1]?.startsWith("403:")) { + warningLogger.warn(`@smithy/util-waiter WARN - 403 status code encountered during waiter polling.`); + } +}; +const createMessageFromResponse = (reason) => { + const status = reason?.$response?.statusCode ?? reason?.$metadata?.httpStatusCode; + if (reason?.$responseBodyText) { + return `${status ? status + ": " : ""}Deserialization error for body: ${reason.$responseBodyText}`; + } + if (status) { + if (reason?.$response || reason?.message) { + return `${status ?? "Unknown"}: ${reason?.message}`; + } + return `${status}: OK`; + } + return String(reason?.message ?? JSON.stringify(reason, getCircularReplacer()) ?? "Unknown"); +}; +const exponentialBackoffWithJitter = (minDelayMs, maxDelayMs, attempt, waitUntil) => { + const attemptCountCeiling = Math.log(maxDelayMs / minDelayMs) / Math.log(2) + 1; + if (attempt > attemptCountCeiling) { + return maxDelayMs; + } + const delay = minDelayMs * 2 ** (attempt - 1); + const capped = Math.min(delay, maxDelayMs); + const waitFor = randomInRange(minDelayMs, capped); + if (Date.now() + waitFor > waitUntil) { + const timeRemaining = waitUntil - Date.now(); + return Math.max(0, timeRemaining - 500); + } + return waitFor; +}; +const randomInRange = (min, max) => min + Math.random() * (max - min); + +const validateWaiterOptions = (options) => { + if (options.maxWaitTime <= 0) { + throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`); + } + else if (options.minDelay <= 0) { + throw new Error(`WaiterConfiguration.minDelay must be greater than 0`); + } + else if (options.maxDelay <= 0) { + throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`); + } + else if (options.maxWaitTime <= options.minDelay) { + throw new Error(`WaiterConfiguration.maxWaitTime [${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`); + } + else if (options.maxDelay < options.minDelay) { + throw new Error(`WaiterConfiguration.maxDelay [${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`); + } +}; + +const abortTimeout = (abortSignal) => { + let onAbort; + const promise = new Promise((resolve) => { + onAbort = () => resolve({ state: WaiterState.ABORTED }); + if (typeof abortSignal.addEventListener === "function") { + abortSignal.addEventListener("abort", onAbort); + } + else { + abortSignal.onabort = onAbort; + } + }); + return { + clearListener() { + if (typeof abortSignal.removeEventListener === "function") { + abortSignal.removeEventListener("abort", onAbort); + } + }, + aborted: promise, + }; +}; +const createWaiter = async (options, input, acceptorChecks) => { + const params = { + ...waiterServiceDefaults, + ...options, + }; + validateWaiterOptions(params); + const exitConditions = [runPolling(params, input, acceptorChecks)]; + const finalize = []; + if (options.abortSignal) { + const { aborted, clearListener } = abortTimeout(options.abortSignal); + finalize.push(clearListener); + exitConditions.push(aborted); + } + if (options.abortController?.signal) { + const { aborted, clearListener } = abortTimeout(options.abortController.signal); + finalize.push(clearListener); + exitConditions.push(aborted); + } + return Promise.race(exitConditions).then((result) => { + for (const fn of finalize) { + fn(); + } + return result; + }); +}; + +class Client { + config; + middlewareStack = constructStack(); + initConfig; + handlers; + constructor(config) { + this.config = config; + const { protocol, protocolSettings } = config; + if (protocolSettings) { + if (typeof protocol === "function") { + config.protocol = new protocol(protocolSettings); + } + } + } + send(command, optionsOrCb, cb) { + const options = typeof optionsOrCb !== "function" ? optionsOrCb : undefined; + const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb; + const useHandlerCache = options === undefined && this.config.cacheMiddleware === true; + let handler; + if (useHandlerCache) { + if (!this.handlers) { + this.handlers = new WeakMap(); + } + const handlers = this.handlers; + if (handlers.has(command.constructor)) { + handler = handlers.get(command.constructor); + } + else { + handler = command.resolveMiddleware(this.middlewareStack, this.config, options); + handlers.set(command.constructor, handler); + } + } + else { + delete this.handlers; + handler = command.resolveMiddleware(this.middlewareStack, this.config, options); + } + if (callback) { + handler(command) + .then((result) => callback(null, result.output), (err) => callback(err)) + .catch(() => { }); + } + else { + return handler(command).then((result) => result.output); + } + } + destroy() { + this.config?.requestHandler?.destroy?.(); + delete this.handlers; + } +} + +const SENSITIVE_STRING$1 = "***SensitiveInformation***"; +function schemaLogFilter(schema, data) { + if (data == null) { + return data; + } + const ns = NormalizedSchema.of(schema); + if (ns.getMergedTraits().sensitive) { + return SENSITIVE_STRING$1; + } + if (ns.isListSchema()) { + const isSensitive = !!ns.getValueSchema().getMergedTraits().sensitive; + if (isSensitive) { + return SENSITIVE_STRING$1; + } + } + else if (ns.isMapSchema()) { + const isSensitive = !!ns.getKeySchema().getMergedTraits().sensitive || !!ns.getValueSchema().getMergedTraits().sensitive; + if (isSensitive) { + return SENSITIVE_STRING$1; + } + } + else if (ns.isStructSchema() && typeof data === "object") { + const object = data; + const newObject = {}; + for (const [member, memberNs] of ns.structIterator()) { + if (object[member] != null) { + newObject[member] = schemaLogFilter(memberNs, object[member]); + } + } + return newObject; + } + return data; +} + +class Command { + middlewareStack = constructStack(); + schema; + static classBuilder() { + return new ClassBuilder(); + } + resolveMiddlewareWithContext(clientStack, configuration, options, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor, }) { + for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration, options)) { + this.middlewareStack.use(mw); + } + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog, + outputFilterSensitiveLog, + [SMITHY_CONTEXT_KEY]: { + commandInstance: this, + ...smithyContext, + }, + ...additionalContext, + }; + const { requestHandler } = configuration; + let requestOptions = options ?? {}; + if (smithyContext.eventStream) { + requestOptions = { + isEventStream: true, + ...requestOptions, + }; + } + return stack.resolve((request) => requestHandler.handle(request.request, requestOptions), handlerExecutionContext); + } +} +class ClassBuilder { + _init = () => { }; + _ep = {}; + _middlewareFn = () => []; + _commandName = ""; + _clientName = ""; + _additionalContext = {}; + _smithyContext = {}; + _inputFilterSensitiveLog = undefined; + _outputFilterSensitiveLog = undefined; + _serializer = null; + _deserializer = null; + _operationSchema; + init(cb) { + this._init = cb; + } + ep(endpointParameterInstructions) { + this._ep = endpointParameterInstructions; + return this; + } + m(middlewareSupplier) { + this._middlewareFn = middlewareSupplier; + return this; + } + s(service, operation, smithyContext = {}) { + this._smithyContext = { + service, + operation, + ...smithyContext, + }; + return this; + } + c(additionalContext = {}) { + this._additionalContext = additionalContext; + return this; + } + n(clientName, commandName) { + this._clientName = clientName; + this._commandName = commandName; + return this; + } + f(inputFilter = (_) => _, outputFilter = (_) => _) { + this._inputFilterSensitiveLog = inputFilter; + this._outputFilterSensitiveLog = outputFilter; + return this; + } + ser(serializer) { + this._serializer = serializer; + return this; + } + de(deserializer) { + this._deserializer = deserializer; + return this; + } + sc(operation) { + this._operationSchema = operation; + this._smithyContext.operationSchema = operation; + return this; + } + build() { + const closure = this; + let CommandRef; + return (CommandRef = class extends Command { + input; + static getEndpointParameterInstructions() { + return closure._ep; + } + constructor(...[input]) { + super(); + this.input = input ?? {}; + closure._init(this); + this.schema = closure._operationSchema; + } + resolveMiddleware(stack, configuration, options) { + const op = closure._operationSchema; + const input = op?.[4] ?? op?.input; + const output = op?.[5] ?? op?.output; + return this.resolveMiddlewareWithContext(stack, configuration, options, { + CommandCtor: CommandRef, + middlewareFn: closure._middlewareFn, + clientName: closure._clientName, + commandName: closure._commandName, + inputFilterSensitiveLog: closure._inputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, input) : (_) => _), + outputFilterSensitiveLog: closure._outputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, output) : (_) => _), + smithyContext: closure._smithyContext, + additionalContext: closure._additionalContext, + }); + } + serialize = closure._serializer; + deserialize = closure._deserializer; + }); + } +} + +const SENSITIVE_STRING = "***SensitiveInformation***"; + +const createAggregatedClient = (commands, Client, options) => { + for (const [command, CommandCtor] of Object.entries(commands)) { + const methodImpl = async function (args, optionsOrCb, cb) { + const command = new CommandCtor(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expected http options but got ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + }; + const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, ""); + Client.prototype[methodName] = methodImpl; + } + const { paginators = {}, waiters = {} } = options ?? {}; + for (const [paginatorName, paginatorFn] of Object.entries(paginators)) { + if (Client.prototype[paginatorName] === void 0) { + Client.prototype[paginatorName] = function (commandInput = {}, paginationConfiguration, ...rest) { + return paginatorFn({ + ...paginationConfiguration, + client: this, + }, commandInput, ...rest); + }; + } + } + for (const [waiterName, waiterFn] of Object.entries(waiters)) { + if (Client.prototype[waiterName] === void 0) { + Client.prototype[waiterName] = async function (commandInput = {}, waiterConfiguration, ...rest) { + let config = waiterConfiguration; + if (typeof waiterConfiguration === "number") { + config = { + maxWaitTime: waiterConfiguration, + }; + } + return waiterFn({ + ...config, + client: this, + }, commandInput, ...rest); + }; + } + } +}; + +class ServiceException extends Error { + $fault; + $response; + $retryable; + $metadata; + constructor(options) { + super(options.message); + Object.setPrototypeOf(this, Object.getPrototypeOf(this).constructor.prototype); + this.name = options.name; + this.$fault = options.$fault; + this.$metadata = options.$metadata; + } + static isInstance(value) { + if (!value) + return false; + const candidate = value; + return (ServiceException.prototype.isPrototypeOf(candidate) || + (Boolean(candidate.$fault) && + Boolean(candidate.$metadata) && + (candidate.$fault === "client" || candidate.$fault === "server"))); + } + static [Symbol.hasInstance](instance) { + if (!instance) + return false; + const candidate = instance; + if (this === ServiceException) { + return ServiceException.isInstance(instance); + } + if (ServiceException.isInstance(instance)) { + if (candidate.name && this.name) { + return this.prototype.isPrototypeOf(instance) || candidate.name === this.name; + } + return this.prototype.isPrototypeOf(instance); + } + return false; + } +} +const decorateServiceException = (exception, additions = {}) => { + Object.entries(additions) + .filter(([, v]) => v !== undefined) + .forEach(([k, v]) => { + if (exception[k] == undefined || exception[k] === "") { + exception[k] = v; + } + }); + const message = exception.message || exception.Message || "UnknownError"; + exception.message = message; + delete exception.Message; + return exception; +}; + +const throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => { + const $metadata = deserializeMetadata(output); + const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; + const response = new exceptionCtor({ + name: parsedBody?.code || parsedBody?.Code || errorCode || statusCode || "UnknownError", + $fault: "client", + $metadata, + }); + throw decorateServiceException(response, parsedBody); +}; +const withBaseException = (ExceptionCtor) => { + return ({ output, parsedBody, errorCode }) => { + throwDefaultError({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode }); + }; +}; +const deserializeMetadata = (output) => ({ + httpStatusCode: output.statusCode, + requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"], +}); + +const loadConfigsForDefaultMode = (mode) => { + switch (mode) { + case "standard": + return { + retryMode: "standard", + connectionTimeout: 3100, + }; + case "in-region": + return { + retryMode: "standard", + connectionTimeout: 1100, + }; + case "cross-region": + return { + retryMode: "standard", + connectionTimeout: 3100, + }; + case "mobile": + return { + retryMode: "standard", + connectionTimeout: 30000, + }; + default: + return {}; + } +}; + +let warningEmitted = false; +const emitWarningIfUnsupportedVersion = (version) => { + if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) { + warningEmitted = true; + } +}; + +const knownAlgorithms = Object.values(AlgorithmId); +const getChecksumConfiguration = (runtimeConfig) => { + const checksumAlgorithms = []; + for (const id in AlgorithmId) { + const algorithmId = AlgorithmId[id]; + if (runtimeConfig[algorithmId] === undefined) { + continue; + } + checksumAlgorithms.push({ + algorithmId: () => algorithmId, + checksumConstructor: () => runtimeConfig[algorithmId], + }); + } + for (const [id, ChecksumCtor] of Object.entries(runtimeConfig.checksumAlgorithms ?? {})) { + checksumAlgorithms.push({ + algorithmId: () => id, + checksumConstructor: () => ChecksumCtor, + }); + } + return { + addChecksumAlgorithm(algo) { + runtimeConfig.checksumAlgorithms = runtimeConfig.checksumAlgorithms ?? {}; + const id = algo.algorithmId(); + const ctor = algo.checksumConstructor(); + if (knownAlgorithms.includes(id)) { + runtimeConfig.checksumAlgorithms[id.toUpperCase()] = ctor; + } + else { + runtimeConfig.checksumAlgorithms[id] = ctor; + } + checksumAlgorithms.push(algo); + }, + checksumAlgorithms() { + return checksumAlgorithms; + }, + }; +}; +const resolveChecksumRuntimeConfig = (clientConfig) => { + const runtimeConfig = {}; + clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => { + const id = checksumAlgorithm.algorithmId(); + if (knownAlgorithms.includes(id)) { + runtimeConfig[id] = checksumAlgorithm.checksumConstructor(); + } + }); + return runtimeConfig; +}; + +const getRetryConfiguration = (runtimeConfig) => { + return { + setRetryStrategy(retryStrategy) { + runtimeConfig.retryStrategy = retryStrategy; + }, + retryStrategy() { + return runtimeConfig.retryStrategy; + }, + }; +}; +const resolveRetryRuntimeConfig = (retryStrategyConfiguration) => { + const runtimeConfig = {}; + runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy(); + return runtimeConfig; +}; + +const getDefaultExtensionConfiguration = (runtimeConfig) => { + return Object.assign(getChecksumConfiguration(runtimeConfig), getRetryConfiguration(runtimeConfig)); +}; +const getDefaultClientConfiguration = getDefaultExtensionConfiguration; +const resolveDefaultRuntimeConfig = (config) => { + return Object.assign(resolveChecksumRuntimeConfig(config), resolveRetryRuntimeConfig(config)); +}; + +const getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; + +const getValueFromTextNode = (obj) => { + const textNodeName = "#text"; + for (const key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key) && obj[key][textNodeName] !== undefined) { + obj[key] = obj[key][textNodeName]; + } + else if (typeof obj[key] === "object" && obj[key] !== null) { + obj[key] = getValueFromTextNode(obj[key]); + } + } + return obj; +}; + +const isSerializableHeaderValue = (value) => { + return value != null; +}; + +class NoOpLogger { + trace() { } + debug() { } + info() { } + warn() { } + error() { } +} + +function map(arg0, arg1, arg2) { + let target; + let filter; + let instructions; + if (typeof arg1 === "undefined" && typeof arg2 === "undefined") { + target = {}; + instructions = arg0; + } + else { + target = arg0; + if (typeof arg1 === "function") { + filter = arg1; + instructions = arg2; + return mapWithFilter(target, filter, instructions); + } + else { + instructions = arg1; + } + } + for (const key of Object.keys(instructions)) { + if (!Array.isArray(instructions[key])) { + target[key] = instructions[key]; + continue; + } + applyInstruction(target, null, instructions, key); + } + return target; +} +const convertMap = (target) => { + const output = {}; + for (const [k, v] of Object.entries(target || {})) { + output[k] = [, v]; + } + return output; +}; +const take = (source, instructions) => { + const out = {}; + for (const key in instructions) { + applyInstruction(out, source, instructions, key); + } + return out; +}; +const mapWithFilter = (target, filter, instructions) => { + return map(target, Object.entries(instructions).reduce((_instructions, [key, value]) => { + if (Array.isArray(value)) { + _instructions[key] = value; + } + else { + if (typeof value === "function") { + _instructions[key] = [filter, value()]; + } + else { + _instructions[key] = [filter, value]; + } + } + return _instructions; + }, {})); +}; +const applyInstruction = (target, source, instructions, targetKey) => { + if (source !== null) { + let instruction = instructions[targetKey]; + if (typeof instruction === "function") { + instruction = [, instruction]; + } + const [filter = nonNullish, valueFn = pass, sourceKey = targetKey] = instruction; + if ((typeof filter === "function" && filter(source[sourceKey])) || (typeof filter !== "function" && !!filter)) { + target[targetKey] = valueFn(source[sourceKey]); + } + return; + } + let [filter, value] = instructions[targetKey]; + if (typeof value === "function") { + let _value; + const defaultFilterPassed = filter === undefined && (_value = value()) != null; + const customFilterPassed = (typeof filter === "function" && !!filter(void 0)) || (typeof filter !== "function" && !!filter); + if (defaultFilterPassed) { + target[targetKey] = _value; + } + else if (customFilterPassed) { + target[targetKey] = value(); + } + } + else { + const defaultFilterPassed = filter === undefined && value != null; + const customFilterPassed = (typeof filter === "function" && !!filter(value)) || (typeof filter !== "function" && !!filter); + if (defaultFilterPassed || customFilterPassed) { + target[targetKey] = value; + } + } +}; +const nonNullish = (_) => _ != null; +const pass = (_) => _; + +const serializeFloat = (value) => { + if (value !== value) { + return "NaN"; + } + switch (value) { + case Infinity: + return "Infinity"; + case -Infinity: + return "-Infinity"; + default: + return value; + } +}; +const serializeDateTime = (date) => date.toISOString().replace(".000Z", "Z"); + +const _json = (obj) => { + if (obj == null) { + return {}; + } + if (Array.isArray(obj)) { + return obj.filter((_) => _ != null).map(_json); + } + if (typeof obj === "object") { + const target = {}; + for (const key of Object.keys(obj)) { + if (obj[key] == null) { + continue; + } + target[key] = _json(obj[key]); + } + return target; + } + return obj; +}; + +function makeBuilder(common, service, name, ep) { + return function makeCommand(added, plugins, op, $, smithyContext = {}) { + const epMerged = Object.assign({}, common, added); + return Command.classBuilder() + .ep(epMerged) + .m(function (CommandCtor, clientStack, config, options) { + const list = plugins.call(this, CommandCtor, clientStack, config, options); + list.unshift(ep(config, CommandCtor.getEndpointParameterInstructions())); + return list; + }) + .s(service, op, smithyContext) + .n(name, op.charAt(0).toUpperCase() + op.slice(1) + "Command") + .sc($) + .build(); + }; +} + +exports.Client = Client; +exports.Command = Command; +exports.NoOpLogger = NoOpLogger; +exports.SENSITIVE_STRING = SENSITIVE_STRING; +exports.ServiceException = ServiceException; +exports.WaiterState = WaiterState; +exports._json = _json; +exports.checkExceptions = checkExceptions; +exports.constructStack = constructStack; +exports.convertMap = convertMap; +exports.createAggregatedClient = createAggregatedClient; +exports.createWaiter = createWaiter; +exports.decorateServiceException = decorateServiceException; +exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion; +exports.getArrayIfSingleItem = getArrayIfSingleItem; +exports.getChecksumConfiguration = getChecksumConfiguration; +exports.getDefaultClientConfiguration = getDefaultClientConfiguration; +exports.getDefaultExtensionConfiguration = getDefaultExtensionConfiguration; +exports.getRetryConfiguration = getRetryConfiguration; +exports.getValueFromTextNode = getValueFromTextNode; +exports.invalidFunction = invalidFunction; +exports.invalidProvider = invalidProvider; +exports.isSerializableHeaderValue = isSerializableHeaderValue; +exports.loadConfigsForDefaultMode = loadConfigsForDefaultMode; +exports.makeBuilder = makeBuilder; +exports.map = map; +exports.resolveChecksumRuntimeConfig = resolveChecksumRuntimeConfig; +exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig; +exports.resolveRetryRuntimeConfig = resolveRetryRuntimeConfig; +exports.schemaLogFilter = schemaLogFilter; +exports.serializeDateTime = serializeDateTime; +exports.serializeFloat = serializeFloat; +exports.take = take; +exports.throwDefaultError = throwDefaultError; +exports.waiterServiceDefaults = waiterServiceDefaults; +exports.withBaseException = withBaseException; + + +/***/ }), + +/***/ 47291: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { homedir } = __nccwpck_require__(48161); +const { sep, join } = __nccwpck_require__(76760); +const { createHash } = __nccwpck_require__(77598); +const { readFile: readFile$1 } = __nccwpck_require__(51455); +const { IniSectionType } = __nccwpck_require__(90690); +const { normalizeProvider } = __nccwpck_require__(92658); +const { isValidHostLabel } = __nccwpck_require__(34534); + +class ProviderError extends Error { + name = "ProviderError"; + tryNextLink; + constructor(message, options = true) { + let logger; + let tryNextLink = true; + if (typeof options === "boolean") { + logger = undefined; + tryNextLink = options; + } + else if (options != null && typeof options === "object") { + logger = options.logger; + tryNextLink = options.tryNextLink ?? true; + } + super(message); + this.tryNextLink = tryNextLink; + Object.setPrototypeOf(this, ProviderError.prototype); + logger?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`); + } + static from(error, options = true) { + return Object.assign(new this(error.message, options), error); + } +} + +class CredentialsProviderError extends ProviderError { + name = "CredentialsProviderError"; + constructor(message, options = true) { + super(message, options); + Object.setPrototypeOf(this, CredentialsProviderError.prototype); + } +} + +class TokenProviderError extends ProviderError { + name = "TokenProviderError"; + constructor(message, options = true) { + super(message, options); + Object.setPrototypeOf(this, TokenProviderError.prototype); + } +} + +const chain = (...providers) => async () => { + if (providers.length === 0) { + throw new ProviderError("No providers in chain"); + } + let lastProviderError; + for (const provider of providers) { + try { + const credentials = await provider(); + return credentials; + } + catch (err) { + lastProviderError = err; + if (err?.tryNextLink) { + continue; + } + throw err; + } + } + throw lastProviderError; +}; + +const fromValue = (staticValue) => () => Promise.resolve(staticValue); + +const memoize = (provider, isExpired, requiresRefresh) => { + let resolved; + let pending; + let hasResult; + let isConstant = false; + const coalesceProvider = async () => { + if (!pending) { + pending = provider(); + } + try { + resolved = await pending; + hasResult = true; + isConstant = false; + } + finally { + pending = undefined; + } + return resolved; + }; + if (isExpired === undefined) { + return async (options) => { + if (!hasResult || options?.forceRefresh) { + resolved = await coalesceProvider(); + } + return resolved; + }; + } + return async (options) => { + if (!hasResult || options?.forceRefresh) { + resolved = await coalesceProvider(); + } + if (isConstant) { + return resolved; + } + if (requiresRefresh && !requiresRefresh(resolved)) { + isConstant = true; + return resolved; + } + if (isExpired(resolved)) { + await coalesceProvider(); + return resolved; + } + return resolved; + }; +}; + +const booleanSelector = (obj, key, type) => { + if (!(key in obj)) + return undefined; + if (obj[key] === "true") + return true; + if (obj[key] === "false") + return false; + throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`); +}; + +const numberSelector = (obj, key, type) => { + if (!(key in obj)) + return undefined; + const numberValue = parseInt(obj[key], 10); + if (Number.isNaN(numberValue)) { + throw new TypeError(`Cannot load ${type} '${key}'. Expected number, got '${obj[key]}'.`); + } + return numberValue; +}; + +var SelectorType; +(function (SelectorType) { + SelectorType["ENV"] = "env"; + SelectorType["CONFIG"] = "shared config entry"; +})(SelectorType || (SelectorType = {})); + +const homeDirCache = {}; +const getHomeDirCacheKey = () => { + if (process && process.geteuid) { + return `${process.geteuid()}`; + } + return "DEFAULT"; +}; +const getHomeDir = () => { + const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${sep}` } = process.env; + if (HOME) + return HOME; + if (USERPROFILE) + return USERPROFILE; + if (HOMEPATH) + return `${HOMEDRIVE}${HOMEPATH}`; + const homeDirCacheKey = getHomeDirCacheKey(); + if (!homeDirCache[homeDirCacheKey]) + homeDirCache[homeDirCacheKey] = homedir(); + return homeDirCache[homeDirCacheKey]; +}; + +const ENV_PROFILE = "AWS_PROFILE"; +const DEFAULT_PROFILE = "default"; +const getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE; + +const getSSOTokenFilepath = (id) => { + const hasher = createHash("sha1"); + const cacheName = hasher.update(id).digest("hex"); + return join(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`); +}; + +const tokenIntercept = {}; +const getSSOTokenFromFile = async (id) => { + if (tokenIntercept[id]) { + return tokenIntercept[id]; + } + const ssoTokenFilepath = getSSOTokenFilepath(id); + const ssoTokenText = await readFile$1(ssoTokenFilepath, "utf8"); + return JSON.parse(ssoTokenText); +}; + +const CONFIG_PREFIX_SEPARATOR = "."; + +const getConfigData = (data) => Object.entries(data) + .filter(([key]) => { + const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR); + if (indexOfSeparator === -1) { + return false; + } + return Object.values(IniSectionType).includes(key.substring(0, indexOfSeparator)); +}) + .reduce((acc, [key, value]) => { + const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR); + const updatedKey = key.substring(0, indexOfSeparator) === IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key; + acc[updatedKey] = value; + return acc; +}, { + ...(data.default && { default: data.default }), +}); + +const ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; +const getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config"); + +const ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; +const getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join(getHomeDir(), ".aws", "credentials"); + +const prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/; +const profileNameBlockList = ["__proto__", "profile __proto__"]; +const parseIni = (iniData) => { + const map = {}; + let currentSection; + let currentSubSection; + for (const iniLine of iniData.split(/\r?\n/)) { + const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim(); + const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]"; + if (isSection) { + currentSection = undefined; + currentSubSection = undefined; + const sectionName = trimmedLine.substring(1, trimmedLine.length - 1); + const matches = prefixKeyRegex.exec(sectionName); + if (matches) { + const [, prefix, , name] = matches; + if (Object.values(IniSectionType).includes(prefix)) { + currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR); + } + } + else { + currentSection = sectionName; + } + if (profileNameBlockList.includes(sectionName)) { + throw new Error(`Found invalid profile name "${sectionName}"`); + } + } + else if (currentSection) { + const indexOfEqualsSign = trimmedLine.indexOf("="); + if (![0, -1].includes(indexOfEqualsSign)) { + const [name, value] = [ + trimmedLine.substring(0, indexOfEqualsSign).trim(), + trimmedLine.substring(indexOfEqualsSign + 1).trim(), + ]; + if (value === "") { + currentSubSection = name; + } + else { + if (currentSubSection && iniLine.trimStart() === iniLine) { + currentSubSection = undefined; + } + map[currentSection] = map[currentSection] || {}; + const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name; + map[currentSection][key] = value; + } + } + } + } + return map; +}; + +const filePromises = {}; +const fileIntercept = {}; +const readFile = (path, options) => { + if (fileIntercept[path] !== undefined) { + return fileIntercept[path]; + } + if (!filePromises[path] || options?.ignoreCache) { + filePromises[path] = readFile$1(path, "utf8"); + } + return filePromises[path]; +}; + +const swallowError$1 = () => ({}); +const loadSharedConfigFiles = async (init = {}) => { + const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init; + const homeDir = getHomeDir(); + const relativeHomeDirPrefix = "~/"; + let resolvedFilepath = filepath; + if (filepath.startsWith(relativeHomeDirPrefix)) { + resolvedFilepath = join(homeDir, filepath.slice(2)); + } + let resolvedConfigFilepath = configFilepath; + if (configFilepath.startsWith(relativeHomeDirPrefix)) { + resolvedConfigFilepath = join(homeDir, configFilepath.slice(2)); + } + const parsedFiles = await Promise.all([ + readFile(resolvedConfigFilepath, { + ignoreCache: init.ignoreCache, + }) + .then(parseIni) + .then(getConfigData) + .catch(swallowError$1), + readFile(resolvedFilepath, { + ignoreCache: init.ignoreCache, + }) + .then(parseIni) + .catch(swallowError$1), + ]); + return { + configFile: parsedFiles[0], + credentialsFile: parsedFiles[1], + }; +}; + +const getSsoSessionData = (data) => Object.entries(data) + .filter(([key]) => key.startsWith(IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)) + .reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {}); + +const swallowError = () => ({}); +const loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath()) + .then(parseIni) + .then(getSsoSessionData) + .catch(swallowError); + +const mergeConfigFiles = (...files) => { + const merged = {}; + for (const file of files) { + for (const [key, values] of Object.entries(file)) { + if (merged[key] !== undefined) { + Object.assign(merged[key], values); + } + else { + merged[key] = values; + } + } + } + return merged; +}; + +const parseKnownFiles = async (init) => { + const parsedFiles = await loadSharedConfigFiles(init); + return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile); +}; + +const externalDataInterceptor = { + getFileRecord() { + return fileIntercept; + }, + interceptFile(path, contents) { + fileIntercept[path] = Promise.resolve(contents); + }, + getTokenRecord() { + return tokenIntercept; + }, + interceptToken(id, contents) { + tokenIntercept[id] = contents; + }, +}; + +function getSelectorName(functionString) { + try { + const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? [])); + constants.delete("CONFIG"); + constants.delete("CONFIG_PREFIX_SEPARATOR"); + constants.delete("ENV"); + return [...constants].join(", "); + } + catch (ignored) { + return functionString; + } +} + +const fromEnv = (envVarSelector, options) => async () => { + try { + const config = envVarSelector(process.env, options); + if (config === undefined) { + throw new Error(); + } + return config; + } + catch (e) { + throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger: options?.logger }); + } +}; + +const fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => { + const profile = getProfileName(init); + const { configFile, credentialsFile } = await loadSharedConfigFiles(init); + const profileFromCredentials = credentialsFile[profile] || {}; + const profileFromConfig = configFile[profile] || {}; + const mergedProfile = preferredFile === "config" + ? { ...profileFromCredentials, ...profileFromConfig } + : { ...profileFromConfig, ...profileFromCredentials }; + try { + const cfgFile = preferredFile === "config" ? configFile : credentialsFile; + const configValue = configSelector(mergedProfile, cfgFile); + if (configValue === undefined) { + throw new Error(); + } + return configValue; + } + catch (e) { + throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger }); + } +}; + +const isFunction = (func) => typeof func === "function"; +const fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromValue(defaultValue); + +const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => { + const { signingName, logger } = configuration; + const envOptions = { signingName, logger }; + return memoize(chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue))); +}; + +const ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; +const CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; +const DEFAULT_USE_DUALSTACK_ENDPOINT = false; +const NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_DUALSTACK_ENDPOINT, SelectorType.ENV), + configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType.CONFIG), + default: false, +}; +const nodeDualstackConfigSelectors = { + environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_DUALSTACK_ENDPOINT, SelectorType.ENV), + configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType.CONFIG), + default: undefined, +}; + +const ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; +const CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; +const DEFAULT_USE_FIPS_ENDPOINT = false; +const NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_FIPS_ENDPOINT, SelectorType.ENV), + configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG), + default: false, +}; +const nodeFipsConfigSelectors = { + environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_FIPS_ENDPOINT, SelectorType.ENV), + configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG), + default: undefined, +}; + +const resolveCustomEndpointsConfig = (input) => { + const { tls, endpoint, urlParser, useDualstackEndpoint } = input; + return Object.assign(input, { + tls: tls ?? true, + endpoint: normalizeProvider(typeof endpoint === "string" ? urlParser(endpoint) : endpoint), + isCustomEndpoint: true, + useDualstackEndpoint: normalizeProvider(useDualstackEndpoint ?? false), + }); +}; + +const getEndpointFromRegion = async (input) => { + const { tls = true } = input; + const region = await input.region(); + const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); + if (!dnsHostRegex.test(region)) { + throw new Error("Invalid region in client config"); + } + const useDualstackEndpoint = await input.useDualstackEndpoint(); + const useFipsEndpoint = await input.useFipsEndpoint(); + const { hostname } = (await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint })) ?? {}; + if (!hostname) { + throw new Error("Cannot resolve hostname from client config"); + } + return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`); +}; + +const resolveEndpointsConfig = (input) => { + const useDualstackEndpoint = normalizeProvider(input.useDualstackEndpoint ?? false); + const { endpoint, useFipsEndpoint, urlParser, tls } = input; + return Object.assign(input, { + tls: tls ?? true, + endpoint: endpoint + ? normalizeProvider(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) + : () => getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }), + isCustomEndpoint: !!endpoint, + useDualstackEndpoint, + }); +}; + +const AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; +const AWS_REGION_ENV = "AWS_REGION"; +const AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION"; +const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; +const DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"]; +const IMDS_REGION_PATH = "/latest/meta-data/placement/region"; +const IMDS_TOKEN_PATH = "/latest/api/token"; +const X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token"; +const X_AWS_EC2_METADATA_TOKEN_TTL = "x-aws-ec2-metadata-token-ttl-seconds"; + +const TIMEOUT_MS = 1000; +const NEG_CACHE_TTL_MS = 60_000; +let negativeCacheUntil = 0; +const getInstanceMetadataRegion = async () => { + if (process.env[ENV_IMDS_DISABLED]) { + return undefined; + } + if (Date.now() < negativeCacheUntil) { + return undefined; + } + try { + const endpoint = resolveImdsEndpoint(); + const token = (await imdsRequest({ + ...endpoint, + path: IMDS_TOKEN_PATH, + method: "PUT", + headers: { + [X_AWS_EC2_METADATA_TOKEN_TTL]: "21600", + }, + })).toString(); + const region = (await imdsRequest({ + ...endpoint, + path: IMDS_REGION_PATH, + method: "GET", + headers: { + [X_AWS_EC2_METADATA_TOKEN]: token, + }, + })) + .toString() + .trim(); + return region || cacheNegativeAndReturnUndefined(); + } + catch { + return cacheNegativeAndReturnUndefined(); + } +}; +const cacheNegativeAndReturnUndefined = () => { + negativeCacheUntil = Date.now() + NEG_CACHE_TTL_MS; + return undefined; +}; +const resolveImdsEndpoint = () => { + const envEndpoint = process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT; + if (envEndpoint) { + const url = new URL(envEndpoint); + return { + hostname: url.hostname.replace(/^\[(.+)]$/, "$1"), + port: url.port ? Number(url.port) : undefined, + }; + } + if (process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE === "IPv6") { + return { hostname: "fd00:ec2::254" }; + } + return { hostname: "169.254.169.254" }; +}; +const imdsRequest = async (options) => { + const { request } = __nccwpck_require__(37067); + return new Promise((resolve, reject) => { + const req = request({ + hostname: options.hostname, + port: options.port, + path: options.path, + method: options.method, + headers: options.headers, + timeout: TIMEOUT_MS, + signal: AbortSignal.timeout(TIMEOUT_MS), + }); + req.on("error", (err) => { + reject(err); + req.destroy(); + }); + req.on("timeout", () => { + reject(new Error("TimeoutError from instance metadata service")); + req.destroy(); + }); + req.on("response", (res) => { + const { statusCode = 400 } = res; + if (statusCode < 200 || statusCode >= 300) { + reject(Object.assign(new Error("Error response received from instance metadata service"), { statusCode })); + req.destroy(); + return; + } + const chunks = []; + res.on("data", (chunk) => chunks.push(chunk)); + res.on("end", () => { + resolve(Buffer.concat(chunks)); + req.destroy(); + }); + }); + req.end(); + }); +}; + +const REGION_ENV_NAME = "AWS_REGION"; +const REGION_INI_NAME = "region"; +const NODE_REGION_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[REGION_ENV_NAME], + configFileSelector: (profile) => profile[REGION_INI_NAME], + default: async () => { + const region = await getInstanceMetadataRegion(); + if (region) { + return region; + } + throw new Error("Region is missing"); + }, +}; +const NODE_REGION_CONFIG_FILE_OPTIONS = { + preferredFile: "credentials", +}; + +const validRegions = new Set(); +const checkRegion = (region, check = isValidHostLabel) => { + if (!validRegions.has(region) && !check(region)) { + if (region === "*") { + console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`); + } + else { + throw new Error(`Region not accepted: region="${region}" is not a valid hostname component.`); + } + } + else { + validRegions.add(region); + } +}; + +const isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")); + +const getRealRegion = (region) => isFipsRegion(region) + ? ["fips-aws-global", "aws-fips"].includes(region) + ? "us-east-1" + : region.replace(/fips-(dkr-|prod-)?|-fips/, "") + : region; + +const resolveRegionConfig = (input) => { + const { region, useFipsEndpoint } = input; + if (!region) { + throw new Error("Region is missing"); + } + return Object.assign(input, { + region: async () => { + const providedRegion = typeof region === "function" ? await region() : region; + const realRegion = getRealRegion(providedRegion); + checkRegion(realRegion); + return realRegion; + }, + useFipsEndpoint: async () => { + const providedRegion = typeof region === "string" ? region : await region(); + if (isFipsRegion(providedRegion)) { + return true; + } + return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint(); + }, + }); +}; + +const getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))?.hostname; + +const getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname + ? regionHostname + : partitionHostname + ? partitionHostname.replace("{region}", resolvedRegion) + : undefined; + +const getResolvedPartition = (region, { partitionHash }) => Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region)) ?? "aws"; + +const getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { + if (signingRegion) { + return signingRegion; + } + else if (useFipsEndpoint) { + const regionRegexJs = regionRegex.replace("\\\\", "\\").replace(/^\^/g, "\\.").replace(/\$$/g, "\\."); + const regionRegexmatchArray = hostname.match(regionRegexJs); + if (regionRegexmatchArray) { + return regionRegexmatchArray[0].slice(1, -1); + } + } +}; + +const getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash, }) => { + const partition = getResolvedPartition(region, { partitionHash }); + const resolvedRegion = region in regionHash ? region : (partitionHash[partition]?.endpoint ?? region); + const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint }; + const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions); + const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions); + const hostname = getResolvedHostname(resolvedRegion, { regionHostname, partitionHostname }); + if (hostname === undefined) { + throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`); + } + const signingRegion = getResolvedSigningRegion(hostname, { + signingRegion: regionHash[resolvedRegion]?.signingRegion, + regionRegex: partitionHash[partition].regionRegex, + useFipsEndpoint, + }); + return { + partition, + signingService, + hostname, + ...(signingRegion && { signingRegion }), + ...(regionHash[resolvedRegion]?.signingService && { + signingService: regionHash[resolvedRegion].signingService, + }), + }; +}; + +const AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE"; +const AWS_DEFAULTS_MODE_CONFIG = "defaults_mode"; +const NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + return env[AWS_DEFAULTS_MODE_ENV]; + }, + configFileSelector: (profile) => { + return profile[AWS_DEFAULTS_MODE_CONFIG]; + }, + default: "legacy", +}; + +const resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS), } = {}) => memoize(async () => { + const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode; + switch (mode?.toLowerCase()) { + case "auto": + return resolveNodeDefaultsModeAuto(region); + case "in-region": + case "cross-region": + case "mobile": + case "standard": + case "legacy": + return Promise.resolve(mode?.toLocaleLowerCase()); + case undefined: + return Promise.resolve("legacy"); + default: + throw new Error(`Invalid parameter for "defaultsMode", expect ${DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`); + } +}); +const resolveNodeDefaultsModeAuto = async (clientRegion) => { + if (clientRegion) { + const resolvedRegion = typeof clientRegion === "function" ? await clientRegion() : clientRegion; + const inferredRegion = await inferPhysicalRegion(); + if (!inferredRegion) { + return "standard"; + } + if (resolvedRegion === inferredRegion) { + return "in-region"; + } + else { + return "cross-region"; + } + } + return "standard"; +}; +const inferPhysicalRegion = async () => { + if (process.env[AWS_EXECUTION_ENV] && (process.env[AWS_REGION_ENV] || process.env[AWS_DEFAULT_REGION_ENV])) { + return process.env[AWS_REGION_ENV] ?? process.env[AWS_DEFAULT_REGION_ENV]; + } + return getInstanceMetadataRegion(); +}; + +exports.CONFIG_PREFIX_SEPARATOR = CONFIG_PREFIX_SEPARATOR; +exports.CONFIG_USE_DUALSTACK_ENDPOINT = CONFIG_USE_DUALSTACK_ENDPOINT; +exports.CONFIG_USE_FIPS_ENDPOINT = CONFIG_USE_FIPS_ENDPOINT; +exports.CredentialsProviderError = CredentialsProviderError; +exports.DEFAULT_PROFILE = DEFAULT_PROFILE; +exports.DEFAULT_USE_DUALSTACK_ENDPOINT = DEFAULT_USE_DUALSTACK_ENDPOINT; +exports.DEFAULT_USE_FIPS_ENDPOINT = DEFAULT_USE_FIPS_ENDPOINT; +exports.ENV_PROFILE = ENV_PROFILE; +exports.ENV_USE_DUALSTACK_ENDPOINT = ENV_USE_DUALSTACK_ENDPOINT; +exports.ENV_USE_FIPS_ENDPOINT = ENV_USE_FIPS_ENDPOINT; +exports.NODE_REGION_CONFIG_FILE_OPTIONS = NODE_REGION_CONFIG_FILE_OPTIONS; +exports.NODE_REGION_CONFIG_OPTIONS = NODE_REGION_CONFIG_OPTIONS; +exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS; +exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS; +exports.ProviderError = ProviderError; +exports.REGION_ENV_NAME = REGION_ENV_NAME; +exports.REGION_INI_NAME = REGION_INI_NAME; +exports.SelectorType = SelectorType; +exports.TokenProviderError = TokenProviderError; +exports.booleanSelector = booleanSelector; +exports.chain = chain; +exports.externalDataInterceptor = externalDataInterceptor; +exports.fromStatic = fromStatic; +exports.fromValue = fromValue; +exports.getHomeDir = getHomeDir; +exports.getProfileName = getProfileName; +exports.getRegionInfo = getRegionInfo; +exports.getSSOTokenFilepath = getSSOTokenFilepath; +exports.getSSOTokenFromFile = getSSOTokenFromFile; +exports.loadConfig = loadConfig; +exports.loadSharedConfigFiles = loadSharedConfigFiles; +exports.loadSsoSessionData = loadSsoSessionData; +exports.memoize = memoize; +exports.nodeDualstackConfigSelectors = nodeDualstackConfigSelectors; +exports.nodeFipsConfigSelectors = nodeFipsConfigSelectors; +exports.numberSelector = numberSelector; +exports.parseKnownFiles = parseKnownFiles; +exports.readFile = readFile; +exports.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; +exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig; +exports.resolveEndpointsConfig = resolveEndpointsConfig; +exports.resolveRegionConfig = resolveRegionConfig; + + +/***/ }), + +/***/ 62085: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { CONFIG_PREFIX_SEPARATOR, loadConfig } = __nccwpck_require__(47291); +const { toEndpointV1, getSmithyContext, normalizeProvider, isValidHostLabel } = __nccwpck_require__(34534); +exports.isValidHostLabel = isValidHostLabel; +exports.middlewareEndpointToEndpointV1 = toEndpointV1; +exports.toEndpointV1 = toEndpointV1; +const { EndpointURLScheme } = __nccwpck_require__(90690); + +const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL"; +const CONFIG_ENDPOINT_URL = "endpoint_url"; +const getEndpointUrlConfig = (serviceId) => ({ + environmentVariableSelector: (env) => { + const serviceSuffixParts = serviceId.split(" ").map((w) => w.toUpperCase()); + const serviceEndpointUrl = env[[ENV_ENDPOINT_URL, ...serviceSuffixParts].join("_")]; + if (serviceEndpointUrl) + return serviceEndpointUrl; + const endpointUrl = env[ENV_ENDPOINT_URL]; + if (endpointUrl) + return endpointUrl; + return undefined; + }, + configFileSelector: (profile, config) => { + if (config && profile.services) { + const servicesSection = config[["services", profile.services].join(CONFIG_PREFIX_SEPARATOR)]; + if (servicesSection) { + const servicePrefixParts = serviceId.split(" ").map((w) => w.toLowerCase()); + const endpointUrl = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(CONFIG_PREFIX_SEPARATOR)]; + if (endpointUrl) + return endpointUrl; + } + } + const endpointUrl = profile[CONFIG_ENDPOINT_URL]; + if (endpointUrl) + return endpointUrl; + return undefined; + }, + default: undefined, +}); + +const getEndpointFromConfig = async (serviceId) => loadConfig(getEndpointUrlConfig(serviceId ?? ""))(); + +const resolveParamsForS3 = async (endpointParams) => { + const bucket = endpointParams?.Bucket || ""; + if (typeof endpointParams.Bucket === "string") { + endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent("#")).replace(/\?/g, encodeURIComponent("?")); + } + if (isArnBucketName(bucket)) { + if (endpointParams.ForcePathStyle === true) { + throw new Error("Path-style addressing cannot be used with ARN buckets"); + } + } + else if (!isDnsCompatibleBucketName(bucket) || + (bucket.indexOf(".") !== -1 && !String(endpointParams.Endpoint).startsWith("http:")) || + bucket.toLowerCase() !== bucket || + bucket.length < 3) { + endpointParams.ForcePathStyle = true; + } + if (endpointParams.DisableMultiRegionAccessPoints) { + endpointParams.disableMultiRegionAccessPoints = true; + endpointParams.DisableMRAP = true; + } + return endpointParams; +}; +const DOMAIN_PATTERN = /^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/; +const IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/; +const DOTS_PATTERN = /\.\./; +const isDnsCompatibleBucketName = (bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName); +const isArnBucketName = (bucketName) => { + const [arn, partition, service, , , bucket] = bucketName.split(":"); + const isArn = arn === "arn" && bucketName.split(":").length >= 6; + const isValidArn = Boolean(isArn && partition && service && bucket); + if (isArn && !isValidArn) { + throw new Error(`Invalid ARN: ${bucketName} was an invalid ARN.`); + } + return isValidArn; +}; + +const createConfigValueProvider = (configKey, canonicalEndpointParamKey, config, isClientContextParam = false) => { + const configProvider = async () => { + let configValue; + if (isClientContextParam) { + const clientContextParams = config.clientContextParams; + const nestedValue = clientContextParams?.[configKey]; + configValue = nestedValue ?? config[configKey] ?? config[canonicalEndpointParamKey]; + } + else { + configValue = config[configKey] ?? config[canonicalEndpointParamKey]; + } + if (typeof configValue === "function") { + return configValue(); + } + return configValue; + }; + if (configKey === "credentialScope" || canonicalEndpointParamKey === "CredentialScope") { + return async () => { + const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials; + const configValue = credentials?.credentialScope ?? credentials?.CredentialScope; + return configValue; + }; + } + if (configKey === "accountId" || canonicalEndpointParamKey === "AccountId") { + return async () => { + const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials; + const configValue = credentials?.accountId ?? credentials?.AccountId; + return configValue; + }; + } + if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") { + return async () => { + if (config.isCustomEndpoint === false) { + return undefined; + } + const endpoint = await configProvider(); + if (endpoint && typeof endpoint === "object") { + if ("url" in endpoint) { + return endpoint.url.href; + } + if ("hostname" in endpoint) { + const { protocol, hostname, port, path } = endpoint; + return `${protocol}//${hostname}${port ? ":" + port : ""}${path}`; + } + } + return endpoint; + }; + } + return configProvider; +}; + +function bindGetEndpointFromInstructions(getEndpointFromConfig) { + return async (commandInput, instructionsSupplier, clientConfig, context) => { + if (!clientConfig.isCustomEndpoint) { + let endpointFromConfig; + if (clientConfig.serviceConfiguredEndpoint) { + endpointFromConfig = await clientConfig.serviceConfiguredEndpoint(); + } + else { + endpointFromConfig = await getEndpointFromConfig(clientConfig.serviceId); + } + if (endpointFromConfig) { + clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig)); + clientConfig.isCustomEndpoint = true; + } + } + const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig); + if (typeof clientConfig.endpointProvider !== "function") { + throw new Error("config.endpointProvider is not set."); + } + const endpoint = clientConfig.endpointProvider(endpointParams, context); + if (clientConfig.isCustomEndpoint && clientConfig.endpoint) { + const customEndpoint = await clientConfig.endpoint(); + if (customEndpoint?.headers) { + endpoint.headers ??= {}; + for (const [name, value] of Object.entries(customEndpoint.headers)) { + endpoint.headers[name] = Array.isArray(value) ? value : [value]; + } + } + } + return endpoint; + }; +} +const resolveParams = async (commandInput, instructionsSupplier, clientConfig) => { + const endpointParams = {}; + const instructions = instructionsSupplier?.getEndpointParameterInstructions?.() || {}; + for (const [name, instruction] of Object.entries(instructions)) { + switch (instruction.type) { + case "staticContextParams": + endpointParams[name] = instruction.value; + break; + case "contextParams": + endpointParams[name] = commandInput[instruction.name]; + break; + case "clientContextParams": + case "builtInParams": + endpointParams[name] = await createConfigValueProvider(instruction.name, name, clientConfig, instruction.type !== "builtInParams")(); + break; + case "operationContextParams": + endpointParams[name] = instruction.get(commandInput); + break; + default: + throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction)); + } + } + if (Object.keys(instructions).length === 0) { + Object.assign(endpointParams, clientConfig); + } + if (String(clientConfig.serviceId).toLowerCase() === "s3") { + await resolveParamsForS3(endpointParams); + } + return endpointParams; +}; + +function setFeature(context, feature, value) { + if (!context.__smithy_context) { + context.__smithy_context = { features: {} }; + } + else if (!context.__smithy_context.features) { + context.__smithy_context.features = {}; + } + context.__smithy_context.features[feature] = value; +} +function bindEndpointMiddleware(getEndpointFromConfig) { + const getEndpointFromInstructions = bindGetEndpointFromInstructions(getEndpointFromConfig); + return ({ config, instructions, }) => { + return (next, context) => async (args) => { + if (config.isCustomEndpoint) { + setFeature(context, "ENDPOINT_OVERRIDE", "N"); + } + const endpoint = await getEndpointFromInstructions(args.input, { + getEndpointParameterInstructions() { + return instructions; + }, + }, { ...config }, context); + context.endpointV2 = endpoint; + context.authSchemes = endpoint.properties?.authSchemes; + const authScheme = context.authSchemes?.[0]; + if (authScheme) { + context["signing_region"] = authScheme.signingRegion; + context["signing_service"] = authScheme.signingName; + const smithyContext = getSmithyContext(context); + const httpAuthOption = smithyContext?.selectedHttpAuthScheme?.httpAuthOption; + if (httpAuthOption) { + httpAuthOption.signingProperties = Object.assign(httpAuthOption.signingProperties || {}, { + signing_region: authScheme.signingRegion, + signingRegion: authScheme.signingRegion, + signing_service: authScheme.signingName, + signingName: authScheme.signingName, + signingRegionSet: authScheme.signingRegionSet, + }, authScheme.properties); + } + } + return next({ + ...args, + }); + }; + }; +} + +const serializerMiddlewareOption = { + name: "serializerMiddleware"}; +const endpointMiddlewareOptions = { + step: "serialize", + tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"], + name: "endpointV2Middleware", + override: true, + relation: "before", + toMiddleware: serializerMiddlewareOption.name, +}; +function bindGetEndpointPlugin(getEndpointFromConfig) { + const endpointMiddleware = bindEndpointMiddleware(getEndpointFromConfig); + return (config, instructions) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo(endpointMiddleware({ + config, + instructions, + }), endpointMiddlewareOptions); + }, + }); +} + +function bindResolveEndpointConfig(getEndpointFromConfig) { + return (input) => { + const tls = input.tls ?? true; + const { endpoint, useDualstackEndpoint, useFipsEndpoint } = input; + const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await normalizeProvider(endpoint)()) : undefined; + const isCustomEndpoint = !!endpoint; + const resolvedConfig = Object.assign(input, { + endpoint: customEndpointProvider, + tls, + isCustomEndpoint, + useDualstackEndpoint: normalizeProvider(useDualstackEndpoint ?? false), + useFipsEndpoint: normalizeProvider(useFipsEndpoint ?? false), + }); + let configuredEndpointPromise = undefined; + resolvedConfig.serviceConfiguredEndpoint = async () => { + if (input.serviceId && !configuredEndpointPromise) { + configuredEndpointPromise = getEndpointFromConfig(input.serviceId); + } + return configuredEndpointPromise; + }; + return resolvedConfig; + }; +} + +class BinaryDecisionDiagram { + nodes; + root; + conditions; + results; + constructor(bdd, root, conditions, results) { + this.nodes = bdd; + this.root = root; + this.conditions = conditions; + this.results = results; + } + static from(bdd, root, conditions, results) { + return new BinaryDecisionDiagram(bdd, root, conditions, results); + } +} + +class EndpointCache { + capacity; + data = new Map(); + parameters = []; + constructor({ size, params }) { + this.capacity = size ?? 50; + if (params) { + this.parameters = params; + } + } + get(endpointParams, resolver) { + const key = this.hash(endpointParams); + if (key === false) { + return resolver(); + } + if (!this.data.has(key)) { + if (this.data.size > this.capacity + 10) { + const keys = this.data.keys(); + let i = 0; + while (true) { + const { value, done } = keys.next(); + this.data.delete(value); + if (done || ++i > 10) { + break; + } + } + } + this.data.set(key, resolver()); + } + return this.data.get(key); + } + size() { + return this.data.size; + } + hash(endpointParams) { + let buffer = ""; + const { parameters } = this; + if (parameters.length === 0) { + return false; + } + for (const param of parameters) { + const val = String(endpointParams[param] ?? ""); + if (val.includes("|;")) { + return false; + } + buffer += val + "|;"; + } + return buffer; + } +} + +class EndpointError extends Error { + constructor(message) { + super(message); + this.name = "EndpointError"; + } +} + +const debugId = "endpoints"; + +function toDebugString(input) { + if (typeof input !== "object" || input == null) { + return input; + } + if ("ref" in input) { + return `$${toDebugString(input.ref)}`; + } + if ("fn" in input) { + return `${input.fn}(${(input.argv || []).map(toDebugString).join(", ")})`; + } + return JSON.stringify(input, null, 2); +} + +const customEndpointFunctions = {}; + +const booleanEquals = (value1, value2) => value1 === value2; + +function coalesce(...args) { + for (const arg of args) { + if (arg != null) { + return arg; + } + } + return undefined; +} + +const getAttrPathList = (path) => { + const parts = path.split("."); + const pathList = []; + for (const part of parts) { + const squareBracketIndex = part.indexOf("["); + if (squareBracketIndex !== -1) { + if (part.indexOf("]") !== part.length - 1) { + throw new EndpointError(`Path: '${path}' does not end with ']'`); + } + const arrayIndex = part.slice(squareBracketIndex + 1, -1); + if (Number.isNaN(parseInt(arrayIndex))) { + throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path}'`); + } + if (squareBracketIndex !== 0) { + pathList.push(part.slice(0, squareBracketIndex)); + } + pathList.push(arrayIndex); + } + else { + pathList.push(part); + } + } + return pathList; +}; + +const getAttr = (value, path) => getAttrPathList(path).reduce((acc, index) => { + if (typeof acc !== "object") { + throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`); + } + else if (Array.isArray(acc)) { + const i = parseInt(index); + return acc[i < 0 ? acc.length + i : i]; + } + return acc[index]; +}, value); + +const isSet = (value) => value != null; + +function ite(condition, trueValue, falseValue) { + return condition ? trueValue : falseValue; +} + +const not = (value) => !value; + +const IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`); +const isIpAddress = (value) => IP_V4_REGEX.test(value) || (value.startsWith("[") && value.endsWith("]")); + +const DEFAULT_PORTS = { + [EndpointURLScheme.HTTP]: 80, + [EndpointURLScheme.HTTPS]: 443, +}; +const parseURL = (value) => { + const whatwgURL = (() => { + try { + if (value instanceof URL) { + return value; + } + if (typeof value === "object" && "hostname" in value) { + const { hostname, port, protocol = "", path = "", query = {} } = value; + const url = new URL(`${protocol}//${hostname}${port ? `:${port}` : ""}${path}`); + url.search = Object.entries(query) + .map(([k, v]) => `${k}=${v}`) + .join("&"); + return url; + } + return new URL(value); + } + catch (ignored) { + return null; + } + })(); + if (!whatwgURL) { + console.error(`Unable to parse ${JSON.stringify(value)} as a whatwg URL.`); + return null; + } + const urlString = whatwgURL.href; + const { host, hostname, pathname, protocol, search } = whatwgURL; + if (search) { + return null; + } + const scheme = protocol.slice(0, -1); + if (!Object.values(EndpointURLScheme).includes(scheme)) { + return null; + } + const isIp = isIpAddress(hostname); + const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || + (typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`)); + const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`; + return { + scheme, + authority, + path: pathname, + normalizedPath: pathname.endsWith("/") ? pathname : `${pathname}/`, + isIp, + }; +}; + +function split(value, delimiter, limit) { + if (limit === 1) { + return [value]; + } + if (value === "") { + return [""]; + } + const parts = value.split(delimiter); + if (limit === 0) { + return parts; + } + return parts.slice(0, limit - 1).concat(parts.slice(1).join(delimiter)); +} + +const stringEquals = (value1, value2) => value1 === value2; + +const substring = (input, start, stop, reverse) => { + if (input == null || start >= stop || input.length < stop || /[^\u0000-\u007f]/.test(input)) { + return null; + } + if (!reverse) { + return input.substring(start, stop); + } + return input.substring(input.length - stop, input.length - start); +}; + +const uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`); + +const endpointFunctions = { + booleanEquals, + coalesce, + getAttr, + isSet, + isValidHostLabel, + ite, + not, + parseURL, + split, + stringEquals, + substring, + uriEncode, +}; + +const evaluateTemplate = (template, options) => { + const evaluatedTemplateArr = []; + const { referenceRecord, endpointParams } = options; + let currentIndex = 0; + while (currentIndex < template.length) { + const openingBraceIndex = template.indexOf("{", currentIndex); + if (openingBraceIndex === -1) { + evaluatedTemplateArr.push(template.slice(currentIndex)); + break; + } + evaluatedTemplateArr.push(template.slice(currentIndex, openingBraceIndex)); + const closingBraceIndex = template.indexOf("}", openingBraceIndex); + if (closingBraceIndex === -1) { + evaluatedTemplateArr.push(template.slice(openingBraceIndex)); + break; + } + if (template[openingBraceIndex + 1] === "{" && template[closingBraceIndex + 1] === "}") { + evaluatedTemplateArr.push(template.slice(openingBraceIndex + 1, closingBraceIndex)); + currentIndex = closingBraceIndex + 2; + } + const parameterName = template.substring(openingBraceIndex + 1, closingBraceIndex); + if (parameterName.includes("#")) { + const [refName, attrName] = parameterName.split("#"); + evaluatedTemplateArr.push(getAttr((referenceRecord[refName] ?? endpointParams[refName]), attrName)); + } + else { + evaluatedTemplateArr.push((referenceRecord[parameterName] ?? endpointParams[parameterName])); + } + currentIndex = closingBraceIndex + 1; + } + return evaluatedTemplateArr.join(""); +}; + +const getReferenceValue = ({ ref }, options) => { + return options.referenceRecord[ref] ?? options.endpointParams[ref]; +}; + +const evaluateExpression = (obj, keyName, options) => { + if (typeof obj === "string") { + return evaluateTemplate(obj, options); + } + else if (obj["fn"]) { + return group$2.callFunction(obj, options); + } + else if (obj["ref"]) { + return getReferenceValue(obj, options); + } + throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`); +}; +const callFunction = ({ fn, argv }, options) => { + const evaluatedArgs = Array(argv.length); + for (let i = 0; i < evaluatedArgs.length; ++i) { + const arg = argv[i]; + if (typeof arg === "boolean" || typeof arg === "number") { + evaluatedArgs[i] = arg; + } + else { + evaluatedArgs[i] = group$2.evaluateExpression(arg, "arg", options); + } + } + const namespaceSeparatorIndex = fn.indexOf("."); + if (namespaceSeparatorIndex !== -1) { + const namespaceFunctions = customEndpointFunctions[fn.slice(0, namespaceSeparatorIndex)]; + const customFunction = namespaceFunctions?.[fn.slice(namespaceSeparatorIndex + 1)]; + if (typeof customFunction === "function") { + return customFunction(...evaluatedArgs); + } + } + const callable = endpointFunctions[fn]; + if (typeof callable === "function") { + return callable(...evaluatedArgs); + } + throw new Error(`function ${fn} not loaded in endpointFunctions.`); +}; +const group$2 = { + evaluateExpression, + callFunction, +}; + +const evaluateCondition = (condition, options) => { + const { assign } = condition; + if (assign && assign in options.referenceRecord) { + throw new EndpointError(`'${assign}' is already defined in Reference Record.`); + } + const value = callFunction(condition, options); + options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(condition)} = ${toDebugString(value)}`); + const result = value === "" ? true : !!value; + if (assign != null) { + return { result, toAssign: { name: assign, value } }; + } + return { result }; +}; + +const getEndpointHeaders = (headers, options) => Object.entries(headers ?? {}).reduce((acc, [headerKey, headerVal]) => { + acc[headerKey] = headerVal.map((headerValEntry) => { + const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options); + if (typeof processedExpr !== "string") { + throw new EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`); + } + return processedExpr; + }); + return acc; +}, {}); + +const getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => { + acc[propertyKey] = group$1.getEndpointProperty(propertyVal, options); + return acc; +}, {}); +const getEndpointProperty = (property, options) => { + if (Array.isArray(property)) { + return property.map((propertyEntry) => getEndpointProperty(propertyEntry, options)); + } + switch (typeof property) { + case "string": + return evaluateTemplate(property, options); + case "object": + if (property === null) { + throw new EndpointError(`Unexpected endpoint property: ${property}`); + } + return group$1.getEndpointProperties(property, options); + case "boolean": + return property; + default: + throw new EndpointError(`Unexpected endpoint property type: ${typeof property}`); + } +}; +const group$1 = { + getEndpointProperty, + getEndpointProperties, +}; + +const getEndpointUrl = (endpointUrl, options) => { + const expression = evaluateExpression(endpointUrl, "Endpoint URL", options); + if (typeof expression === "string") { + try { + return new URL(expression); + } + catch (error) { + console.error(`Failed to construct URL with ${expression}`, error); + throw error; + } + } + throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`); +}; + +const RESULT = 100_000_000; +const decideEndpoint = (bdd, options) => { + const { nodes, root, results, conditions } = bdd; + let ref = root; + const referenceRecord = {}; + const closure = { + referenceRecord, + endpointParams: options.endpointParams, + logger: options.logger, + }; + while (ref !== 1 && ref !== -1 && ref < RESULT) { + const node_i = 3 * (Math.abs(ref) - 1); + const [condition_i, highRef, lowRef] = [nodes[node_i], nodes[node_i + 1], nodes[node_i + 2]]; + const [fn, argv, assign] = conditions[condition_i]; + const evaluation = evaluateCondition({ fn, assign, argv }, closure); + if (evaluation.toAssign) { + const { name, value } = evaluation.toAssign; + referenceRecord[name] = value; + } + ref = ref >= 0 === evaluation.result ? highRef : lowRef; + } + if (ref >= RESULT) { + const result = results[ref - RESULT]; + if (result[0] === -1) { + const [, errorExpression] = result; + throw new EndpointError(evaluateExpression(errorExpression, "Error", closure)); + } + const [url, properties, headers] = result; + return { + url: getEndpointUrl(url, closure), + properties: getEndpointProperties(properties, closure), + headers: getEndpointHeaders(headers ?? {}, closure), + }; + } + throw new EndpointError(`No matching endpoint.`); +}; + +const evaluateConditions = (conditions = [], options) => { + const conditionsReferenceRecord = {}; + const conditionOptions = { + ...options, + referenceRecord: { ...options.referenceRecord }, + }; + let didAssign = false; + for (const condition of conditions) { + const { result, toAssign } = evaluateCondition(condition, conditionOptions); + if (!result) { + return { result }; + } + if (toAssign) { + didAssign = true; + conditionsReferenceRecord[toAssign.name] = toAssign.value; + conditionOptions.referenceRecord[toAssign.name] = toAssign.value; + options.logger?.debug?.(`${debugId} assign: ${toAssign.name} := ${toDebugString(toAssign.value)}`); + } + } + if (didAssign) { + return { result: true, referenceRecord: conditionsReferenceRecord }; + } + return { result: true }; +}; + +const evaluateEndpointRule = (endpointRule, options) => { + const { conditions, endpoint } = endpointRule; + const { result, referenceRecord } = evaluateConditions(conditions, options); + if (!result) { + return; + } + const endpointRuleOptions = referenceRecord + ? { + ...options, + referenceRecord: { ...options.referenceRecord, ...referenceRecord }, + } + : options; + const { url, properties, headers } = endpoint; + options.logger?.debug?.(`${debugId} Resolving endpoint from template: ${toDebugString(endpoint)}`); + const endpointToReturn = { url: getEndpointUrl(url, endpointRuleOptions) }; + if (headers != null) { + endpointToReturn.headers = getEndpointHeaders(headers, endpointRuleOptions); + } + if (properties != null) { + endpointToReturn.properties = getEndpointProperties(properties, endpointRuleOptions); + } + return endpointToReturn; +}; + +const evaluateErrorRule = (errorRule, options) => { + const { conditions, error } = errorRule; + const { result, referenceRecord } = evaluateConditions(conditions, options); + if (!result) { + return; + } + const errorRuleOptions = referenceRecord + ? { + ...options, + referenceRecord: { ...options.referenceRecord, ...referenceRecord }, + } + : options; + throw new EndpointError(evaluateExpression(error, "Error", errorRuleOptions)); +}; + +const evaluateRules = (rules, options) => { + for (const rule of rules) { + if (rule.type === "endpoint") { + const endpointOrUndefined = evaluateEndpointRule(rule, options); + if (endpointOrUndefined) { + return endpointOrUndefined; + } + } + else if (rule.type === "error") { + evaluateErrorRule(rule, options); + } + else if (rule.type === "tree") { + const endpointOrUndefined = group.evaluateTreeRule(rule, options); + if (endpointOrUndefined) { + return endpointOrUndefined; + } + } + else { + throw new EndpointError(`Unknown endpoint rule: ${rule}`); + } + } + throw new EndpointError(`Rules evaluation failed`); +}; +const evaluateTreeRule = (treeRule, options) => { + const { conditions, rules } = treeRule; + const { result, referenceRecord } = evaluateConditions(conditions, options); + if (!result) { + return; + } + const treeRuleOptions = referenceRecord + ? { ...options, referenceRecord: { ...options.referenceRecord, ...referenceRecord } } + : options; + return group.evaluateRules(rules, treeRuleOptions); +}; +const group = { + evaluateRules, + evaluateTreeRule, +}; + +const resolveEndpoint = (ruleSetObject, options) => { + const { endpointParams, logger } = options; + const { parameters, rules } = ruleSetObject; + options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`); + for (const paramKey in parameters) { + const parameter = parameters[paramKey]; + const endpointParam = endpointParams[paramKey]; + if (endpointParam == null && parameter.default != null) { + endpointParams[paramKey] = parameter.default; + continue; + } + if (parameter.required && endpointParam == null) { + throw new EndpointError(`Missing required parameter: '${paramKey}'`); + } + } + const endpoint = evaluateRules(rules, { endpointParams, logger, referenceRecord: {} }); + options.logger?.debug?.(`${debugId} Resolved endpoint: ${toDebugString(endpoint)}`); + return endpoint; +}; + +const resolveEndpointRequiredConfig = (input) => { + const { endpoint } = input; + if (endpoint === undefined) { + input.endpoint = async () => { + throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint."); + }; + } + return input; +}; + +const getEndpointFromInstructions = bindGetEndpointFromInstructions(getEndpointFromConfig); +const resolveEndpointConfig = bindResolveEndpointConfig(getEndpointFromConfig); +const endpointMiddleware = bindEndpointMiddleware(getEndpointFromConfig); +const getEndpointPlugin = bindGetEndpointPlugin(getEndpointFromConfig); + +exports.BinaryDecisionDiagram = BinaryDecisionDiagram; +exports.EndpointCache = EndpointCache; +exports.EndpointError = EndpointError; +exports.customEndpointFunctions = customEndpointFunctions; +exports.decideEndpoint = decideEndpoint; +exports.endpointMiddleware = endpointMiddleware; +exports.endpointMiddlewareOptions = endpointMiddlewareOptions; +exports.getEndpointFromInstructions = getEndpointFromInstructions; +exports.getEndpointPlugin = getEndpointPlugin; +exports.isIpAddress = isIpAddress; +exports.resolveEndpoint = resolveEndpoint; +exports.resolveEndpointConfig = resolveEndpointConfig; +exports.resolveEndpointRequiredConfig = resolveEndpointRequiredConfig; +exports.resolveParams = resolveParams; + + +/***/ }), + +/***/ 56579: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { Crc32 } = __nccwpck_require__(99542); +const { toHex, fromHex, toUtf8, fromUtf8 } = __nccwpck_require__(92430); +const { Readable } = __nccwpck_require__(57075); + +class Int64 { + bytes; + constructor(bytes) { + this.bytes = bytes; + if (bytes.byteLength !== 8) { + throw new Error("Int64 buffers must be exactly 8 bytes"); + } + } + static fromNumber(number) { + if (number > 9_223_372_036_854_775_807 || number < -9223372036854776e3) { + throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`); + } + const bytes = new Uint8Array(8); + for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) { + bytes[i] = remaining; + } + if (number < 0) { + negate(bytes); + } + return new Int64(bytes); + } + valueOf() { + const bytes = this.bytes.slice(0); + const negative = bytes[0] & 0b10000000; + if (negative) { + negate(bytes); + } + return parseInt(toHex(bytes), 16) * (negative ? -1 : 1); + } + toString() { + return String(this.valueOf()); + } +} +function negate(bytes) { + for (let i = 0; i < 8; i++) { + bytes[i] ^= 0xff; + } + for (let i = 7; i > -1; i--) { + bytes[i]++; + if (bytes[i] !== 0) + break; + } +} + +class HeaderMarshaller { + toUtf8; + fromUtf8; + constructor(toUtf8, fromUtf8) { + this.toUtf8 = toUtf8; + this.fromUtf8 = fromUtf8; + } + format(headers) { + const chunks = []; + for (const headerName of Object.keys(headers)) { + const bytes = this.fromUtf8(headerName); + chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName])); + } + const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0)); + let position = 0; + for (const chunk of chunks) { + out.set(chunk, position); + position += chunk.byteLength; + } + return out; + } + formatHeaderValue(header) { + switch (header.type) { + case "boolean": + return Uint8Array.from([header.value ? HEADER_VALUE_TYPE.boolTrue : HEADER_VALUE_TYPE.boolFalse]); + case "byte": + return Uint8Array.from([HEADER_VALUE_TYPE.byte, header.value]); + case "short": + const shortView = new DataView(new ArrayBuffer(3)); + shortView.setUint8(0, HEADER_VALUE_TYPE.short); + shortView.setInt16(1, header.value, false); + return new Uint8Array(shortView.buffer); + case "integer": + const intView = new DataView(new ArrayBuffer(5)); + intView.setUint8(0, HEADER_VALUE_TYPE.integer); + intView.setInt32(1, header.value, false); + return new Uint8Array(intView.buffer); + case "long": + const longBytes = new Uint8Array(9); + longBytes[0] = HEADER_VALUE_TYPE.long; + longBytes.set(header.value.bytes, 1); + return longBytes; + case "binary": + const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength)); + binView.setUint8(0, HEADER_VALUE_TYPE.byteArray); + binView.setUint16(1, header.value.byteLength, false); + const binBytes = new Uint8Array(binView.buffer); + binBytes.set(header.value, 3); + return binBytes; + case "string": + const utf8Bytes = this.fromUtf8(header.value); + const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength)); + strView.setUint8(0, HEADER_VALUE_TYPE.string); + strView.setUint16(1, utf8Bytes.byteLength, false); + const strBytes = new Uint8Array(strView.buffer); + strBytes.set(utf8Bytes, 3); + return strBytes; + case "timestamp": + const tsBytes = new Uint8Array(9); + tsBytes[0] = HEADER_VALUE_TYPE.timestamp; + tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1); + return tsBytes; + case "uuid": + if (!UUID_PATTERN.test(header.value)) { + throw new Error(`Invalid UUID received: ${header.value}`); + } + const uuidBytes = new Uint8Array(17); + uuidBytes[0] = HEADER_VALUE_TYPE.uuid; + uuidBytes.set(fromHex(header.value.replace(/-/g, "")), 1); + return uuidBytes; + } + } + parse(headers) { + const out = {}; + let position = 0; + while (position < headers.byteLength) { + const nameLength = headers.getUint8(position++); + const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength)); + position += nameLength; + switch (headers.getUint8(position++)) { + case HEADER_VALUE_TYPE.boolTrue: + out[name] = { + type: BOOLEAN_TAG, + value: true, + }; + break; + case HEADER_VALUE_TYPE.boolFalse: + out[name] = { + type: BOOLEAN_TAG, + value: false, + }; + break; + case HEADER_VALUE_TYPE.byte: + out[name] = { + type: BYTE_TAG, + value: headers.getInt8(position++), + }; + break; + case HEADER_VALUE_TYPE.short: + out[name] = { + type: SHORT_TAG, + value: headers.getInt16(position, false), + }; + position += 2; + break; + case HEADER_VALUE_TYPE.integer: + out[name] = { + type: INT_TAG, + value: headers.getInt32(position, false), + }; + position += 4; + break; + case HEADER_VALUE_TYPE.long: + out[name] = { + type: LONG_TAG, + value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)), + }; + position += 8; + break; + case HEADER_VALUE_TYPE.byteArray: + const binaryLength = headers.getUint16(position, false); + position += 2; + out[name] = { + type: BINARY_TAG, + value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength), + }; + position += binaryLength; + break; + case HEADER_VALUE_TYPE.string: + const stringLength = headers.getUint16(position, false); + position += 2; + out[name] = { + type: STRING_TAG, + value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength)), + }; + position += stringLength; + break; + case HEADER_VALUE_TYPE.timestamp: + out[name] = { + type: TIMESTAMP_TAG, + value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()), + }; + position += 8; + break; + case HEADER_VALUE_TYPE.uuid: + const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16); + position += 16; + out[name] = { + type: UUID_TAG, + value: `${toHex(uuidBytes.subarray(0, 4))}-${toHex(uuidBytes.subarray(4, 6))}-${toHex(uuidBytes.subarray(6, 8))}-${toHex(uuidBytes.subarray(8, 10))}-${toHex(uuidBytes.subarray(10))}`, + }; + break; + default: + throw new Error(`Unrecognized header type tag`); + } + } + return out; + } +} +var HEADER_VALUE_TYPE; +(function (HEADER_VALUE_TYPE) { + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolTrue"] = 0] = "boolTrue"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolFalse"] = 1] = "boolFalse"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byte"] = 2] = "byte"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["short"] = 3] = "short"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["integer"] = 4] = "integer"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["long"] = 5] = "long"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byteArray"] = 6] = "byteArray"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["string"] = 7] = "string"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["timestamp"] = 8] = "timestamp"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["uuid"] = 9] = "uuid"; +})(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {})); +const BOOLEAN_TAG = "boolean"; +const BYTE_TAG = "byte"; +const SHORT_TAG = "short"; +const INT_TAG = "integer"; +const LONG_TAG = "long"; +const BINARY_TAG = "binary"; +const STRING_TAG = "string"; +const TIMESTAMP_TAG = "timestamp"; +const UUID_TAG = "uuid"; +const UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/; + +const PRELUDE_MEMBER_LENGTH = 4; +const PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2; +const CHECKSUM_LENGTH = 4; +const MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2; +function splitMessage({ byteLength, byteOffset, buffer }) { + if (byteLength < MINIMUM_MESSAGE_LENGTH) { + throw new Error("Provided message too short to accommodate event stream message overhead"); + } + const view = new DataView(buffer, byteOffset, byteLength); + const messageLength = view.getUint32(0, false); + if (byteLength !== messageLength) { + throw new Error("Reported message length does not match received message length"); + } + const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false); + const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false); + const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false); + const checksummer = new Crc32(); + checksummer.update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH)); + if (expectedPreludeChecksum !== checksummer.digestSync()) { + throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digestSync()})`); + } + checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH))); + if (expectedMessageChecksum !== checksummer.digestSync()) { + throw new Error(`The message checksum (${checksummer.digestSync()}) did not match the expected value of ${expectedMessageChecksum}`); + } + return { + headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength), + body: new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength, messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH)), + }; +} + +class EventStreamCodec { + headerMarshaller; + messageBuffer; + isEndOfStream; + constructor(toUtf8, fromUtf8) { + this.headerMarshaller = new HeaderMarshaller(toUtf8, fromUtf8); + this.messageBuffer = []; + this.isEndOfStream = false; + } + feed(message) { + this.messageBuffer.push(this.decode(message)); + } + endOfStream() { + this.isEndOfStream = true; + } + getMessage() { + const message = this.messageBuffer.pop(); + const isEndOfStream = this.isEndOfStream; + return { + getMessage() { + return message; + }, + isEndOfStream() { + return isEndOfStream; + }, + }; + } + getAvailableMessages() { + const messages = this.messageBuffer; + this.messageBuffer = []; + const isEndOfStream = this.isEndOfStream; + return { + getMessages() { + return messages; + }, + isEndOfStream() { + return isEndOfStream; + }, + }; + } + encode({ headers: rawHeaders, body }) { + const headers = this.headerMarshaller.format(rawHeaders); + const length = headers.byteLength + body.byteLength + 16; + const out = new Uint8Array(length); + const view = new DataView(out.buffer, out.byteOffset, out.byteLength); + const checksum = new Crc32(); + view.setUint32(0, length, false); + view.setUint32(4, headers.byteLength, false); + checksum.update(out.subarray(0, 8)); + view.setUint32(8, checksum.digestSync(), false); + out.set(headers, 12); + out.set(body, headers.byteLength + 12); + checksum.update(out.subarray(8, length - 4)); + view.setUint32(length - 4, checksum.digestSync(), false); + return out; + } + decode(message) { + const { headers, body } = splitMessage(message); + return { headers: this.headerMarshaller.parse(headers), body }; + } + formatHeaders(rawHeaders) { + return this.headerMarshaller.format(rawHeaders); + } +} + +class MessageDecoderStream { + options; + constructor(options) { + this.options = options; + } + [Symbol.asyncIterator]() { + return this.asyncIterator(); + } + async *asyncIterator() { + for await (const bytes of this.options.inputStream) { + const decoded = this.options.decoder.decode(bytes); + yield decoded; + } + } +} + +class MessageEncoderStream { + options; + constructor(options) { + this.options = options; + } + [Symbol.asyncIterator]() { + return this.asyncIterator(); + } + async *asyncIterator() { + for await (const msg of this.options.messageStream) { + const encoded = this.options.encoder.encode(msg); + yield encoded; + } + if (this.options.includeEndFrame) { + yield new Uint8Array(0); + } + } +} + +class SmithyMessageDecoderStream { + options; + constructor(options) { + this.options = options; + } + [Symbol.asyncIterator]() { + return this.asyncIterator(); + } + async *asyncIterator() { + for await (const message of this.options.messageStream) { + const deserialized = await this.options.deserializer(message); + if (deserialized === undefined) + continue; + yield deserialized; + } + } +} + +class SmithyMessageEncoderStream { + options; + constructor(options) { + this.options = options; + } + [Symbol.asyncIterator]() { + return this.asyncIterator(); + } + async *asyncIterator() { + for await (const chunk of this.options.inputStream) { + const payloadBuf = this.options.serializer(chunk); + yield payloadBuf; + } + } +} + +function getChunkedStream(source) { + let currentMessageTotalLength = 0; + let currentMessagePendingLength = 0; + let currentMessage = null; + let messageLengthBuffer = null; + const allocateMessage = (size) => { + if (typeof size !== "number") { + throw new Error("Attempted to allocate an event message where size was not a number: " + size); + } + currentMessageTotalLength = size; + currentMessagePendingLength = 4; + currentMessage = new Uint8Array(size); + const currentMessageView = new DataView(currentMessage.buffer); + currentMessageView.setUint32(0, size, false); + }; + const iterator = async function* () { + const sourceIterator = source[Symbol.asyncIterator](); + while (true) { + const { value, done } = await sourceIterator.next(); + if (done) { + if (!currentMessageTotalLength) { + return; + } + else if (currentMessageTotalLength === currentMessagePendingLength) { + yield currentMessage; + } + else { + throw new Error("Truncated event message received."); + } + return; + } + const chunkLength = value.length; + let currentOffset = 0; + while (currentOffset < chunkLength) { + if (!currentMessage) { + const bytesRemaining = chunkLength - currentOffset; + if (!messageLengthBuffer) { + messageLengthBuffer = new Uint8Array(4); + } + const numBytesForTotal = Math.min(4 - currentMessagePendingLength, bytesRemaining); + messageLengthBuffer.set(value.slice(currentOffset, currentOffset + numBytesForTotal), currentMessagePendingLength); + currentMessagePendingLength += numBytesForTotal; + currentOffset += numBytesForTotal; + if (currentMessagePendingLength < 4) { + break; + } + allocateMessage(new DataView(messageLengthBuffer.buffer).getUint32(0, false)); + messageLengthBuffer = null; + } + const numBytesToWrite = Math.min(currentMessageTotalLength - currentMessagePendingLength, chunkLength - currentOffset); + currentMessage.set(value.slice(currentOffset, currentOffset + numBytesToWrite), currentMessagePendingLength); + currentMessagePendingLength += numBytesToWrite; + currentOffset += numBytesToWrite; + if (currentMessageTotalLength && currentMessageTotalLength === currentMessagePendingLength) { + yield currentMessage; + currentMessage = null; + currentMessageTotalLength = 0; + currentMessagePendingLength = 0; + } + } + } + }; + return { + [Symbol.asyncIterator]: iterator, + }; +} + +function getUnmarshalledStream(source, options) { + const messageUnmarshaller = getMessageUnmarshaller(options.deserializer, options.toUtf8); + return { + [Symbol.asyncIterator]: async function* () { + for await (const chunk of source) { + const message = options.eventStreamCodec.decode(chunk); + const type = await messageUnmarshaller(message); + if (type === undefined) + continue; + yield type; + } + }, + }; +} +function getMessageUnmarshaller(deserializer, toUtf8) { + return async function (message) { + const { value: messageType } = message.headers[":message-type"]; + if (messageType === "error") { + const unmodeledError = new Error(message.headers[":error-message"].value || "UnknownError"); + unmodeledError.name = message.headers[":error-code"].value; + throw unmodeledError; + } + else if (messageType === "exception") { + const code = message.headers[":exception-type"].value; + const exception = { [code]: message }; + const deserializedException = await deserializer(exception); + if (deserializedException.$unknown) { + const error = new Error(toUtf8(message.body)); + error.name = code; + throw error; + } + throw deserializedException[code]; + } + else if (messageType === "event") { + const event = { + [message.headers[":event-type"].value]: message, + }; + const deserialized = await deserializer(event); + if (deserialized.$unknown) + return; + return deserialized; + } + else { + throw Error(`Unrecognizable event type: ${message.headers[":event-type"].value}`); + } + }; +} + +let EventStreamMarshaller$1 = class EventStreamMarshaller { + eventStreamCodec; + utfEncoder; + constructor({ utf8Encoder, utf8Decoder }) { + this.eventStreamCodec = new EventStreamCodec(utf8Encoder, utf8Decoder); + this.utfEncoder = utf8Encoder; + } + deserialize(body, deserializer) { + const inputStream = getChunkedStream(body); + return new SmithyMessageDecoderStream({ + messageStream: new MessageDecoderStream({ inputStream, decoder: this.eventStreamCodec }), + deserializer: getMessageUnmarshaller(deserializer, this.utfEncoder), + }); + } + serialize(inputStream, serializer) { + return new MessageEncoderStream({ + messageStream: new SmithyMessageEncoderStream({ inputStream, serializer }), + encoder: this.eventStreamCodec, + includeEndFrame: true, + }); + } +}; +const eventStreamSerdeProvider$1 = (options) => new EventStreamMarshaller$1(options); + +class EventStreamMarshaller { + universalMarshaller; + constructor({ utf8Encoder, utf8Decoder }) { + this.universalMarshaller = new EventStreamMarshaller$1({ + utf8Decoder, + utf8Encoder, + }); + } + deserialize(body, deserializer) { + const bodyIterable = typeof body[Symbol.asyncIterator] === "function" ? body : readableToIterable(body); + return this.universalMarshaller.deserialize(bodyIterable, deserializer); + } + serialize(input, serializer) { + return Readable.from(this.universalMarshaller.serialize(input, serializer)); + } +} +const eventStreamSerdeProvider = (options) => new EventStreamMarshaller(options); +async function* readableToIterable(readStream) { + let streamEnded = false; + let generationEnded = false; + const records = new Array(); + readStream.on("error", (err) => { + if (!streamEnded) { + streamEnded = true; + } + if (err) { + throw err; + } + }); + readStream.on("data", (data) => { + records.push(data); + }); + readStream.on("end", () => { + streamEnded = true; + }); + while (!generationEnded) { + const value = await new Promise((resolve) => setTimeout(() => resolve(records.shift()), 0)); + if (value) { + yield value; + } + generationEnded = streamEnded && records.length === 0; + } +} + +const readableStreamToIterable = (readableStream) => ({ + [Symbol.asyncIterator]: async function* () { + const reader = readableStream.getReader(); + try { + while (true) { + const { done, value } = await reader.read(); + if (done) + return; + yield value; + } + } + finally { + reader.releaseLock(); + } + }, +}); +const iterableToReadableStream = (asyncIterable) => { + const iterator = asyncIterable[Symbol.asyncIterator](); + return new ReadableStream({ + async pull(controller) { + const { done, value } = await iterator.next(); + if (done) { + return controller.close(); + } + controller.enqueue(value); + }, + }); +}; + +const resolveEventStreamSerdeConfig = (input) => Object.assign(input, { + eventStreamMarshaller: input.eventStreamSerdeProvider(input), +}); + +class EventStreamSerde { + marshaller; + serializer; + deserializer; + serdeContext; + defaultContentType; + constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, }) { + this.marshaller = marshaller; + this.serializer = serializer; + this.deserializer = deserializer; + this.serdeContext = serdeContext; + this.defaultContentType = defaultContentType; + } + async serializeEventStream({ eventStream, requestSchema, initialRequest, }) { + const marshaller = this.marshaller; + const eventStreamMember = requestSchema.getEventStreamMember(); + const unionSchema = requestSchema.getMemberSchema(eventStreamMember); + const serializer = this.serializer; + const defaultContentType = this.defaultContentType; + const initialRequestMarker = Symbol("initialRequestMarker"); + const eventStreamIterable = { + async *[Symbol.asyncIterator]() { + if (initialRequest) { + const headers = { + ":event-type": { type: "string", value: "initial-request" }, + ":message-type": { type: "string", value: "event" }, + ":content-type": { type: "string", value: defaultContentType }, + }; + serializer.write(requestSchema, initialRequest); + const body = serializer.flush(); + yield { + [initialRequestMarker]: true, + headers, + body, + }; + } + for await (const page of eventStream) { + yield page; + } + }, + }; + return marshaller.serialize(eventStreamIterable, (event) => { + if (event[initialRequestMarker]) { + return { + headers: event.headers, + body: event.body, + }; + } + let unionMember = ""; + for (const key in event) { + if (key !== "__type") { + unionMember = key; + break; + } + } + const { additionalHeaders, body, eventType, explicitPayloadContentType } = this.writeEventBody(unionMember, unionSchema, event); + const headers = { + ":event-type": { type: "string", value: eventType }, + ":message-type": { type: "string", value: "event" }, + ":content-type": { type: "string", value: explicitPayloadContentType ?? defaultContentType }, + ...additionalHeaders, + }; + return { + headers, + body, + }; + }); + } + async deserializeEventStream({ response, responseSchema, initialResponseContainer, }) { + const marshaller = this.marshaller; + const eventStreamMember = responseSchema.getEventStreamMember(); + const unionSchema = responseSchema.getMemberSchema(eventStreamMember); + const memberSchemas = unionSchema.getMemberSchemas(); + const initialResponseMarker = Symbol("initialResponseMarker"); + const asyncIterable = marshaller.deserialize(response.body, async (event) => { + let unionMember = ""; + for (const key in event) { + if (key !== "__type") { + unionMember = key; + break; + } + } + const body = event[unionMember].body; + if (unionMember === "initial-response") { + const dataObject = await this.deserializer.read(responseSchema, body); + delete dataObject[eventStreamMember]; + return { + [initialResponseMarker]: true, + ...dataObject, + }; + } + else if (unionMember in memberSchemas) { + const eventStreamSchema = memberSchemas[unionMember]; + if (eventStreamSchema.isStructSchema()) { + const out = {}; + let hasBindings = false; + for (const [name, member] of eventStreamSchema.structIterator()) { + const { eventHeader, eventPayload } = member.getMergedTraits(); + hasBindings = hasBindings || Boolean(eventHeader || eventPayload); + if (eventPayload) { + if (member.isBlobSchema()) { + out[name] = body; + } + else if (member.isStringSchema()) { + out[name] = (this.serdeContext?.utf8Encoder ?? toUtf8)(body); + } + else if (member.isStructSchema()) { + out[name] = await this.deserializer.read(member, body); + } + } + else if (eventHeader) { + const value = event[unionMember].headers[name]?.value; + if (value != null) { + if (member.isNumericSchema()) { + if (value && typeof value === "object" && "bytes" in value) { + out[name] = BigInt(value.toString()); + } + else { + out[name] = Number(value); + } + } + else { + out[name] = value; + } + } + } + } + if (hasBindings) { + return { + [unionMember]: out, + }; + } + if (body.byteLength === 0) { + return { + [unionMember]: {}, + }; + } + } + return { + [unionMember]: await this.deserializer.read(eventStreamSchema, body), + }; + } + else { + return { + $unknown: event, + }; + } + }); + const asyncIterator = asyncIterable[Symbol.asyncIterator](); + const firstEvent = await asyncIterator.next(); + if (firstEvent.done) { + return asyncIterable; + } + if (firstEvent.value?.[initialResponseMarker]) { + if (!responseSchema) { + throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given."); + } + for (const key in firstEvent.value) { + initialResponseContainer[key] = firstEvent.value[key]; + } + } + return { + async *[Symbol.asyncIterator]() { + if (!firstEvent?.value?.[initialResponseMarker]) { + yield firstEvent.value; + } + while (true) { + const { done, value } = await asyncIterator.next(); + if (done) { + break; + } + yield value; + } + }, + }; + } + writeEventBody(unionMember, unionSchema, event) { + const serializer = this.serializer; + let eventType = unionMember; + let explicitPayloadMember = null; + let explicitPayloadContentType; + const isKnownSchema = (() => { + const struct = unionSchema.getSchema(); + return struct[4].includes(unionMember); + })(); + const additionalHeaders = {}; + if (!isKnownSchema) { + const [type, value] = event[unionMember]; + eventType = type; + serializer.write(15, value); + } + else { + const eventSchema = unionSchema.getMemberSchema(unionMember); + if (eventSchema.isStructSchema()) { + for (const [memberName, memberSchema] of eventSchema.structIterator()) { + const { eventHeader, eventPayload } = memberSchema.getMergedTraits(); + if (eventPayload) { + explicitPayloadMember = memberName; + } + else if (eventHeader) { + const value = event[unionMember][memberName]; + let type = "binary"; + if (memberSchema.isNumericSchema()) { + if ((-2) ** 31 <= value && value <= 2 ** 31 - 1) { + type = "integer"; + } + else { + type = "long"; + } + } + else if (memberSchema.isTimestampSchema()) { + type = "timestamp"; + } + else if (memberSchema.isStringSchema()) { + type = "string"; + } + else if (memberSchema.isBooleanSchema()) { + type = "boolean"; + } + if (value != null) { + additionalHeaders[memberName] = { + type, + value, + }; + delete event[unionMember][memberName]; + } + } + } + if (explicitPayloadMember !== null) { + const payloadSchema = eventSchema.getMemberSchema(explicitPayloadMember); + if (payloadSchema.isBlobSchema()) { + explicitPayloadContentType = "application/octet-stream"; + } + else if (payloadSchema.isStringSchema()) { + explicitPayloadContentType = "text/plain"; + } + serializer.write(payloadSchema, event[unionMember][explicitPayloadMember]); + } + else { + serializer.write(eventSchema, event[unionMember]); + } + } + else if (eventSchema.isUnitSchema()) { + serializer.write(eventSchema, {}); + } + else { + throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union."); + } + } + const messageSerialization = serializer.flush() ?? new Uint8Array(); + const body = typeof messageSerialization === "string" + ? (this.serdeContext?.utf8Decoder ?? fromUtf8)(messageSerialization) + : messageSerialization; + return { + body, + eventType, + explicitPayloadContentType, + additionalHeaders, + }; + } +} + +exports.EventStreamCodec = EventStreamCodec; +exports.EventStreamMarshaller = EventStreamMarshaller; +exports.EventStreamSerde = EventStreamSerde; +exports.HeaderMarshaller = HeaderMarshaller; +exports.Int64 = Int64; +exports.MessageDecoderStream = MessageDecoderStream; +exports.MessageEncoderStream = MessageEncoderStream; +exports.SmithyMessageDecoderStream = SmithyMessageDecoderStream; +exports.SmithyMessageEncoderStream = SmithyMessageEncoderStream; +exports.UniversalEventStreamMarshaller = EventStreamMarshaller$1; +exports.eventStreamSerdeProvider = eventStreamSerdeProvider; +exports.getChunkedStream = getChunkedStream; +exports.getMessageUnmarshaller = getMessageUnmarshaller; +exports.getUnmarshalledStream = getUnmarshalledStream; +exports.iterableToReadableStream = iterableToReadableStream; +exports.readableStreamToIterable = readableStreamToIterable; +exports.resolveEventStreamSerdeConfig = resolveEventStreamSerdeConfig; +exports.universalEventStreamSerdeProvider = eventStreamSerdeProvider$1; + + +/***/ }), + +/***/ 93422: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { Uint8ArrayBlobAdapter, sdkStreamMixin, splitEvery, splitHeader, fromBase64, _parseEpochTimestamp, _parseRfc7231DateTime, _parseRfc3339DateTimeWithOffset, LazyJsonString, NumericValue, toUtf8, fromUtf8, generateIdempotencyToken, toBase64, dateToUtcString, quoteHeader } = __nccwpck_require__(92430); +const { TypeRegistry, NormalizedSchema, translateTraits } = __nccwpck_require__(26890); +const { HttpRequest, HttpResponse, isValidHostname } = __nccwpck_require__(34534); +const { parseQueryString, parseUrl } = __nccwpck_require__(34534); +exports.HttpRequest = HttpRequest; +exports.HttpResponse = HttpResponse; +exports.isValidHostname = isValidHostname; +exports.parseQueryString = parseQueryString; +exports.parseUrl = parseUrl; +const { FieldPosition } = __nccwpck_require__(90690); + +const collectBody = async (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Uint8ArrayBlobAdapter.mutate(streamBody); + } + if (!streamBody) { + return Uint8ArrayBlobAdapter.mutate(new Uint8Array()); + } + const fromContext = context.streamCollector(streamBody); + return Uint8ArrayBlobAdapter.mutate(await fromContext); +}; + +function extendedEncodeURIComponent(str) { + return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { + return "%" + c.charCodeAt(0).toString(16).toUpperCase(); + }); +} + +class SerdeContext { + serdeContext; + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + } +} + +class HttpProtocol extends SerdeContext { + options; + compositeErrorRegistry; + constructor(options) { + super(); + this.options = options; + this.compositeErrorRegistry = TypeRegistry.for(options.defaultNamespace); + for (const etr of options.errorTypeRegistries ?? []) { + this.compositeErrorRegistry.copyFrom(etr); + } + } + getRequestType() { + return HttpRequest; + } + getResponseType() { + return HttpResponse; + } + setSerdeContext(serdeContext) { + this.serdeContext = serdeContext; + this.serializer.setSerdeContext(serdeContext); + this.deserializer.setSerdeContext(serdeContext); + if (this.getPayloadCodec()) { + this.getPayloadCodec().setSerdeContext(serdeContext); + } + } + updateServiceEndpoint(request, endpoint) { + if ("url" in endpoint) { + request.protocol = endpoint.url.protocol; + request.hostname = endpoint.url.hostname; + request.port = endpoint.url.port ? Number(endpoint.url.port) : undefined; + request.path = endpoint.url.pathname; + request.fragment = endpoint.url.hash || void 0; + request.username = endpoint.url.username || void 0; + request.password = endpoint.url.password || void 0; + if (!request.query) { + request.query = {}; + } + for (const [k, v] of endpoint.url.searchParams.entries()) { + request.query[k] = v; + } + if (endpoint.headers) { + for (const name in endpoint.headers) { + request.headers[name] = endpoint.headers[name].join(", "); + } + } + return request; + } + else { + request.protocol = endpoint.protocol; + request.hostname = endpoint.hostname; + request.port = endpoint.port ? Number(endpoint.port) : undefined; + request.path = endpoint.path; + request.query = { + ...endpoint.query, + }; + if (endpoint.headers) { + for (const name in endpoint.headers) { + request.headers[name] = endpoint.headers[name]; + } + } + return request; + } + } + setHostPrefix(request, operationSchema, input) { + if (this.serdeContext?.disableHostPrefix) { + return; + } + const inputNs = NormalizedSchema.of(operationSchema.input); + const opTraits = translateTraits(operationSchema.traits ?? {}); + if (opTraits.endpoint) { + let hostPrefix = opTraits.endpoint?.[0]; + if (typeof hostPrefix === "string") { + for (const [name, member] of inputNs.structIterator()) { + if (!member.getMergedTraits().hostLabel) { + continue; + } + const replacement = input[name]; + if (typeof replacement !== "string") { + throw new Error(`@smithy/core/schema - ${name} in input must be a string as hostLabel.`); + } + hostPrefix = hostPrefix.replace(`{${name}}`, replacement); + } + request.hostname = hostPrefix + request.hostname; + if (!isValidHostname(request.hostname)) { + throw new Error(`[${request.hostname}] is not a valid hostname.`); + } + } + } + } + deserializeMetadata(output) { + return { + httpStatusCode: output.statusCode, + requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"], + }; + } + async serializeEventStream({ eventStream, requestSchema, initialRequest, }) { + const eventStreamSerde = await this.loadEventStreamCapability(); + return eventStreamSerde.serializeEventStream({ + eventStream, + requestSchema, + initialRequest, + }); + } + async deserializeEventStream({ response, responseSchema, initialResponseContainer, }) { + const eventStreamSerde = await this.loadEventStreamCapability(); + return eventStreamSerde.deserializeEventStream({ + response, + responseSchema, + initialResponseContainer, + }); + } + async loadEventStreamCapability() { + const { EventStreamSerde, eventStreamSerdeProvider } = __nccwpck_require__(56579); + const marshaller = this.resolveEventStreamMarshaller(eventStreamSerdeProvider); + return new EventStreamSerde({ + marshaller, + serializer: this.serializer, + deserializer: this.deserializer, + serdeContext: this.serdeContext, + defaultContentType: this.getDefaultContentType(), + }); + } + resolveEventStreamMarshaller(importedProvider) { + const context = this.serdeContext; + if (context.eventStreamMarshaller) { + return context.eventStreamMarshaller; + } + return importedProvider(this.serdeContext); + } + getDefaultContentType() { + throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`); + } + async deserializeHttpMessage(schema, context, response, arg4, arg5) { + return []; + } + getEventStreamMarshaller() { + const context = this.serdeContext; + if (!context.eventStreamMarshaller) { + throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext."); + } + return context.eventStreamMarshaller; + } +} + +class HttpBindingProtocol extends HttpProtocol { + async serializeRequest(operationSchema, _input, context) { + const input = _input && typeof _input === "object" ? _input : {}; + const serializer = this.serializer; + const query = {}; + const headers = {}; + const endpoint = await context.endpoint(); + const ns = NormalizedSchema.of(operationSchema?.input); + const payloadMemberNames = []; + const payloadMemberSchemas = []; + let hasNonHttpBindingMember = false; + let payload; + const request = new HttpRequest({ + protocol: "", + hostname: "", + port: undefined, + path: "", + fragment: undefined, + query: query, + headers: headers, + body: undefined, + }); + if (endpoint) { + this.updateServiceEndpoint(request, endpoint); + this.setHostPrefix(request, operationSchema, input); + const opTraits = translateTraits(operationSchema.traits); + if (opTraits.http) { + request.method = opTraits.http[0]; + const [path, search] = opTraits.http[1].split("?"); + if (request.path == "/") { + request.path = path; + } + else { + request.path += path; + } + const traitSearchParams = new URLSearchParams(search ?? ""); + for (const [key, value] of traitSearchParams) { + query[key] = value; + } + } + } + for (const [memberName, memberNs] of ns.structIterator()) { + const memberTraits = memberNs.getMergedTraits() ?? {}; + const inputMemberValue = input[memberName]; + if (inputMemberValue == null && !memberNs.isIdempotencyToken()) { + if (memberTraits.httpLabel) { + if (request.path.includes(`{${memberName}+}`) || request.path.includes(`{${memberName}}`)) { + throw new Error(`No value provided for input HTTP label: ${memberName}.`); + } + } + continue; + } + if (memberTraits.httpPayload) { + const isStreaming = memberNs.isStreaming(); + if (isStreaming) { + const isEventStream = memberNs.isStructSchema(); + if (isEventStream) { + if (input[memberName]) { + payload = await this.serializeEventStream({ + eventStream: input[memberName], + requestSchema: ns, + }); + } + } + else { + payload = inputMemberValue; + } + } + else { + serializer.write(memberNs, inputMemberValue); + payload = serializer.flush(); + } + } + else if (memberTraits.httpLabel) { + serializer.write(memberNs, inputMemberValue); + const replacement = serializer.flush(); + if (request.path.includes(`{${memberName}+}`)) { + request.path = request.path.replace(`{${memberName}+}`, replacement.split("/").map(extendedEncodeURIComponent).join("/")); + } + else if (request.path.includes(`{${memberName}}`)) { + request.path = request.path.replace(`{${memberName}}`, extendedEncodeURIComponent(replacement)); + } + } + else if (memberTraits.httpHeader) { + serializer.write(memberNs, inputMemberValue); + headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush()); + } + else if (typeof memberTraits.httpPrefixHeaders === "string") { + for (const key in inputMemberValue) { + const val = inputMemberValue[key]; + const amalgam = memberTraits.httpPrefixHeaders + key; + serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val); + headers[amalgam.toLowerCase()] = serializer.flush(); + } + } + else if (memberTraits.httpQuery || memberTraits.httpQueryParams) { + this.serializeQuery(memberNs, inputMemberValue, query); + } + else { + hasNonHttpBindingMember = true; + payloadMemberNames.push(memberName); + payloadMemberSchemas.push(memberNs); + } + } + if (hasNonHttpBindingMember && input) { + const [namespace, name] = (ns.getName(true) ?? "#Unknown").split("#"); + const requiredMembers = ns.getSchema()[6]; + const payloadSchema = [ + 3, + namespace, + name, + ns.getMergedTraits(), + payloadMemberNames, + payloadMemberSchemas, + undefined, + ]; + if (requiredMembers) { + payloadSchema[6] = requiredMembers; + } + else { + payloadSchema.pop(); + } + serializer.write(payloadSchema, input); + payload = serializer.flush(); + } + request.headers = headers; + request.query = query; + request.body = payload; + return request; + } + serializeQuery(ns, data, query) { + const serializer = this.serializer; + const traits = ns.getMergedTraits(); + if (traits.httpQueryParams) { + for (const key in data) { + if (!(key in query)) { + const val = data[key]; + const valueSchema = ns.getValueSchema(); + Object.assign(valueSchema.getMergedTraits(), { + ...traits, + httpQuery: key, + httpQueryParams: undefined, + }); + this.serializeQuery(valueSchema, val, query); + } + } + return; + } + if (ns.isListSchema()) { + const sparse = !!ns.getMergedTraits().sparse; + const buffer = []; + for (const item of data) { + serializer.write([ns.getValueSchema(), traits], item); + const serializable = serializer.flush(); + if (sparse || serializable !== undefined) { + buffer.push(serializable); + } + } + query[traits.httpQuery] = buffer; + } + else { + serializer.write([ns, traits], data); + query[traits.httpQuery] = serializer.flush(); + } + } + async deserializeResponse(operationSchema, context, response) { + const deserializer = this.deserializer; + const ns = NormalizedSchema.of(operationSchema.output); + const dataObject = {}; + if (response.statusCode >= 300) { + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + Object.assign(dataObject, await deserializer.read(15, bytes)); + } + await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response)); + throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw."); + } + for (const header in response.headers) { + const value = response.headers[header]; + delete response.headers[header]; + response.headers[header.toLowerCase()] = value; + } + const nonHttpBindingMembers = await this.deserializeHttpMessage(ns, context, response, dataObject); + if (nonHttpBindingMembers.length) { + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + const dataFromBody = await deserializer.read(ns, bytes); + for (const member of nonHttpBindingMembers) { + if (dataFromBody[member] != null) { + dataObject[member] = dataFromBody[member]; + } + } + } + } + else if (nonHttpBindingMembers.discardResponseBody) { + await collectBody(response.body, context); + } + dataObject.$metadata = this.deserializeMetadata(response); + return dataObject; + } + async deserializeHttpMessage(schema, context, response, arg4, arg5) { + let dataObject; + if (arg4 instanceof Set) { + dataObject = arg5; + } + else { + dataObject = arg4; + } + let discardResponseBody = true; + const deserializer = this.deserializer; + const ns = NormalizedSchema.of(schema); + const nonHttpBindingMembers = []; + for (const [memberName, memberSchema] of ns.structIterator()) { + const memberTraits = memberSchema.getMemberTraits(); + if (memberTraits.httpPayload) { + discardResponseBody = false; + const isStreaming = memberSchema.isStreaming(); + if (isStreaming) { + const isEventStream = memberSchema.isStructSchema(); + if (isEventStream) { + dataObject[memberName] = await this.deserializeEventStream({ + response, + responseSchema: ns, + }); + } + else { + dataObject[memberName] = sdkStreamMixin(response.body); + } + } + else if (response.body) { + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + dataObject[memberName] = await deserializer.read(memberSchema, bytes); + } + } + } + else if (memberTraits.httpHeader) { + const key = String(memberTraits.httpHeader).toLowerCase(); + const value = response.headers[key]; + if (null != value) { + if (memberSchema.isListSchema()) { + const headerListValueSchema = memberSchema.getValueSchema(); + headerListValueSchema.getMergedTraits().httpHeader = key; + let sections; + if (headerListValueSchema.isTimestampSchema() && + headerListValueSchema.getSchema() === 4) { + sections = splitEvery(value, ",", 2); + } + else { + sections = splitHeader(value); + } + const list = []; + for (const section of sections) { + list.push(await deserializer.read(headerListValueSchema, section.trim())); + } + dataObject[memberName] = list; + } + else { + dataObject[memberName] = await deserializer.read(memberSchema, value); + } + } + } + else if (memberTraits.httpPrefixHeaders !== undefined) { + dataObject[memberName] = {}; + for (const header in response.headers) { + if (header.startsWith(memberTraits.httpPrefixHeaders)) { + const value = response.headers[header]; + const valueSchema = memberSchema.getValueSchema(); + valueSchema.getMergedTraits().httpHeader = header; + dataObject[memberName][header.slice(memberTraits.httpPrefixHeaders.length)] = await deserializer.read(valueSchema, value); + } + } + } + else if (memberTraits.httpResponseCode) { + dataObject[memberName] = response.statusCode; + } + else { + nonHttpBindingMembers.push(memberName); + } + } + nonHttpBindingMembers.discardResponseBody = discardResponseBody; + return nonHttpBindingMembers; + } +} + +class RpcProtocol extends HttpProtocol { + async serializeRequest(operationSchema, _input, context) { + const serializer = this.serializer; + const query = {}; + const headers = {}; + const endpoint = await context.endpoint(); + const ns = NormalizedSchema.of(operationSchema?.input); + const schema = ns.getSchema(); + let payload; + const input = _input && typeof _input === "object" ? _input : {}; + const request = new HttpRequest({ + protocol: "", + hostname: "", + port: undefined, + path: "/", + fragment: undefined, + query: query, + headers: headers, + body: undefined, + }); + if (endpoint) { + this.updateServiceEndpoint(request, endpoint); + this.setHostPrefix(request, operationSchema, input); + } + if (input) { + const eventStreamMember = ns.getEventStreamMember(); + if (eventStreamMember) { + if (input[eventStreamMember]) { + const initialRequest = {}; + for (const [memberName, memberSchema] of ns.structIterator()) { + if (memberName !== eventStreamMember && input[memberName]) { + serializer.write(memberSchema, input[memberName]); + initialRequest[memberName] = serializer.flush(); + } + } + payload = await this.serializeEventStream({ + eventStream: input[eventStreamMember], + requestSchema: ns, + initialRequest, + }); + } + } + else { + serializer.write(schema, input); + payload = serializer.flush(); + } + } + request.headers = Object.assign(request.headers, headers); + request.query = query; + request.body = payload; + request.method = "POST"; + return request; + } + async deserializeResponse(operationSchema, context, response) { + const deserializer = this.deserializer; + const ns = NormalizedSchema.of(operationSchema.output); + const dataObject = {}; + if (response.statusCode >= 300) { + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + Object.assign(dataObject, await deserializer.read(15, bytes)); + } + await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response)); + throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw."); + } + for (const header in response.headers) { + const value = response.headers[header]; + delete response.headers[header]; + response.headers[header.toLowerCase()] = value; + } + const eventStreamMember = ns.getEventStreamMember(); + if (eventStreamMember) { + dataObject[eventStreamMember] = await this.deserializeEventStream({ + response, + responseSchema: ns, + initialResponseContainer: dataObject, + }); + } + else { + const bytes = await collectBody(response.body, context); + if (bytes.byteLength > 0) { + Object.assign(dataObject, await deserializer.read(ns, bytes)); + } + } + dataObject.$metadata = this.deserializeMetadata(response); + return dataObject; + } +} + +const resolvedPath = (resolvedPath, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { + if (input != null && input[memberName] !== undefined) { + const labelValue = labelValueProvider(); + if (labelValue == null || labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: " + memberName + "."); + } + resolvedPath = resolvedPath.replace(uriLabel, isGreedyLabel + ? labelValue + .split("/") + .map((segment) => extendedEncodeURIComponent(segment)) + .join("/") + : extendedEncodeURIComponent(labelValue)); + } + else { + throw new Error("No value provided for input HTTP label: " + memberName + "."); + } + return resolvedPath; +}; + +function requestBuilder(input, context) { + return new RequestBuilder(input, context); +} +class RequestBuilder { + input; + context; + query = {}; + method = ""; + headers = {}; + path = ""; + body = null; + hostname = ""; + resolvePathStack = []; + constructor(input, context) { + this.input = input; + this.context = context; + } + async build() { + const { hostname, protocol = "https", port, path: basePath } = await this.context.endpoint(); + this.path = basePath; + for (const resolvePath of this.resolvePathStack) { + resolvePath(this.path); + } + return new HttpRequest({ + protocol, + hostname: this.hostname || hostname, + port, + method: this.method, + path: this.path, + query: this.query, + body: this.body, + headers: this.headers, + }); + } + hn(hostname) { + this.hostname = hostname; + return this; + } + bp(uriLabel) { + this.resolvePathStack.push((basePath) => { + this.path = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + uriLabel; + }); + return this; + } + p(memberName, labelValueProvider, uriLabel, isGreedyLabel) { + this.resolvePathStack.push((path) => { + this.path = resolvedPath(path, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel); + }); + return this; + } + h(headers) { + this.headers = headers; + return this; + } + q(query) { + this.query = query; + return this; + } + b(body) { + this.body = body; + return this; + } + m(method) { + this.method = method; + return this; + } +} + +function determineTimestampFormat(ns, settings) { + if (settings.timestampFormat.useTrait) { + if (ns.isTimestampSchema() && + (ns.getSchema() === 5 || + ns.getSchema() === 6 || + ns.getSchema() === 7)) { + return ns.getSchema(); + } + } + const { httpLabel, httpPrefixHeaders, httpHeader, httpQuery } = ns.getMergedTraits(); + const bindingFormat = settings.httpBindings + ? typeof httpPrefixHeaders === "string" || Boolean(httpHeader) + ? 6 + : Boolean(httpQuery) || Boolean(httpLabel) + ? 5 + : undefined + : undefined; + return bindingFormat ?? settings.timestampFormat.default; +} + +class FromStringShapeDeserializer extends SerdeContext { + settings; + constructor(settings) { + super(); + this.settings = settings; + } + read(_schema, data) { + const ns = NormalizedSchema.of(_schema); + if (ns.isListSchema()) { + return splitHeader(data).map((item) => this.read(ns.getValueSchema(), item)); + } + if (ns.isBlobSchema()) { + return (this.serdeContext?.base64Decoder ?? fromBase64)(data); + } + if (ns.isTimestampSchema()) { + const format = determineTimestampFormat(ns, this.settings); + switch (format) { + case 5: + return _parseRfc3339DateTimeWithOffset(data); + case 6: + return _parseRfc7231DateTime(data); + case 7: + return _parseEpochTimestamp(data); + default: + console.warn("Missing timestamp format, parsing value with Date constructor:", data); + return new Date(data); + } + } + if (ns.isStringSchema()) { + const mediaType = ns.getMergedTraits().mediaType; + let intermediateValue = data; + if (mediaType) { + if (ns.getMergedTraits().httpHeader) { + intermediateValue = this.base64ToUtf8(intermediateValue); + } + const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); + if (isJson) { + intermediateValue = LazyJsonString.from(intermediateValue); + } + return intermediateValue; + } + } + if (ns.isNumericSchema()) { + return Number(data); + } + if (ns.isBigIntegerSchema()) { + return BigInt(data); + } + if (ns.isBigDecimalSchema()) { + return new NumericValue(data, "bigDecimal"); + } + if (ns.isBooleanSchema()) { + return String(data).toLowerCase() === "true"; + } + return data; + } + base64ToUtf8(base64String) { + return (this.serdeContext?.utf8Encoder ?? toUtf8)((this.serdeContext?.base64Decoder ?? fromBase64)(base64String)); + } +} + +class HttpInterceptingShapeDeserializer extends SerdeContext { + codecDeserializer; + stringDeserializer; + constructor(codecDeserializer, codecSettings) { + super(); + this.codecDeserializer = codecDeserializer; + this.stringDeserializer = new FromStringShapeDeserializer(codecSettings); + } + setSerdeContext(serdeContext) { + this.stringDeserializer.setSerdeContext(serdeContext); + this.codecDeserializer.setSerdeContext(serdeContext); + this.serdeContext = serdeContext; + } + read(schema, data) { + const ns = NormalizedSchema.of(schema); + const traits = ns.getMergedTraits(); + const toString = this.serdeContext?.utf8Encoder ?? toUtf8; + if (traits.httpHeader || traits.httpResponseCode) { + return this.stringDeserializer.read(ns, toString(data)); + } + if (traits.httpPayload) { + if (ns.isBlobSchema()) { + const toBytes = this.serdeContext?.utf8Decoder ?? fromUtf8; + if (typeof data === "string") { + return toBytes(data); + } + return data; + } + else if (ns.isStringSchema()) { + if ("byteLength" in data) { + return toString(data); + } + return data; + } + } + return this.codecDeserializer.read(ns, data); + } +} + +class ToStringShapeSerializer extends SerdeContext { + settings; + stringBuffer = ""; + constructor(settings) { + super(); + this.settings = settings; + } + write(schema, value) { + const ns = NormalizedSchema.of(schema); + switch (typeof value) { + case "object": + if (value === null) { + this.stringBuffer = "null"; + return; + } + if (ns.isTimestampSchema()) { + if (!(value instanceof Date)) { + throw new Error(`@smithy/core/protocols - received non-Date value ${value} when schema expected Date in ${ns.getName(true)}`); + } + const format = determineTimestampFormat(ns, this.settings); + switch (format) { + case 5: + this.stringBuffer = value.toISOString().replace(".000Z", "Z"); + break; + case 6: + this.stringBuffer = dateToUtcString(value); + break; + case 7: + this.stringBuffer = String(value.getTime() / 1000); + break; + default: + console.warn("Missing timestamp format, using epoch seconds", value); + this.stringBuffer = String(value.getTime() / 1000); + } + return; + } + if (ns.isBlobSchema() && "byteLength" in value) { + this.stringBuffer = (this.serdeContext?.base64Encoder ?? toBase64)(value); + return; + } + if (ns.isListSchema() && Array.isArray(value)) { + let buffer = ""; + for (const item of value) { + this.write([ns.getValueSchema(), ns.getMergedTraits()], item); + const headerItem = this.flush(); + const serialized = ns.getValueSchema().isTimestampSchema() ? headerItem : quoteHeader(headerItem); + if (buffer !== "") { + buffer += ", "; + } + buffer += serialized; + } + this.stringBuffer = buffer; + return; + } + this.stringBuffer = JSON.stringify(value, null, 2); + break; + case "string": + const mediaType = ns.getMergedTraits().mediaType; + let intermediateValue = value; + if (mediaType) { + const isJson = mediaType === "application/json" || mediaType.endsWith("+json"); + if (isJson) { + intermediateValue = LazyJsonString.from(intermediateValue); + } + if (ns.getMergedTraits().httpHeader) { + this.stringBuffer = (this.serdeContext?.base64Encoder ?? toBase64)(intermediateValue.toString()); + return; + } + } + this.stringBuffer = value; + break; + default: + if (ns.isIdempotencyToken()) { + this.stringBuffer = generateIdempotencyToken(); + } + else { + this.stringBuffer = String(value); + } + } + } + flush() { + const buffer = this.stringBuffer; + this.stringBuffer = ""; + return buffer; + } +} + +class HttpInterceptingShapeSerializer { + codecSerializer; + stringSerializer; + buffer; + constructor(codecSerializer, codecSettings, stringSerializer = new ToStringShapeSerializer(codecSettings)) { + this.codecSerializer = codecSerializer; + this.stringSerializer = stringSerializer; + } + setSerdeContext(serdeContext) { + this.codecSerializer.setSerdeContext(serdeContext); + this.stringSerializer.setSerdeContext(serdeContext); + } + write(schema, value) { + const ns = NormalizedSchema.of(schema); + const traits = ns.getMergedTraits(); + if (traits.httpHeader || traits.httpLabel || traits.httpQuery) { + this.stringSerializer.write(ns, value); + this.buffer = this.stringSerializer.flush(); + return; + } + return this.codecSerializer.write(ns, value); + } + flush() { + if (this.buffer !== undefined) { + const buffer = this.buffer; + this.buffer = undefined; + return buffer; + } + return this.codecSerializer.flush(); + } +} + +class Field { + name; + kind; + values; + constructor({ name, kind = FieldPosition.HEADER, values = [] }) { + this.name = name; + this.kind = kind; + this.values = values; + } + add(value) { + this.values.push(value); + } + set(values) { + this.values = values; + } + remove(value) { + this.values = this.values.filter((v) => v !== value); + } + toString() { + return this.values.map((v) => (v.includes(",") || v.includes(" ") ? `"${v}"` : v)).join(", "); + } + get() { + return this.values; + } +} + +class Fields { + entries = {}; + encoding; + constructor({ fields = [], encoding = "utf-8" }) { + fields.forEach(this.setField.bind(this)); + this.encoding = encoding; + } + setField(field) { + this.entries[field.name.toLowerCase()] = field; + } + getField(name) { + return this.entries[name.toLowerCase()]; + } + removeField(name) { + delete this.entries[name.toLowerCase()]; + } + getByType(kind) { + return Object.values(this.entries).filter((field) => field.kind === kind); + } +} + +const getHttpHandlerExtensionConfiguration = (runtimeConfig) => { + return { + setHttpHandler(handler) { + runtimeConfig.httpHandler = handler; + }, + httpHandler() { + return runtimeConfig.httpHandler; + }, + updateHttpClientConfig(key, value) { + runtimeConfig.httpHandler?.updateHttpClientConfig(key, value); + }, + httpHandlerConfigs() { + return runtimeConfig.httpHandler.httpHandlerConfigs(); + }, + }; +}; +const resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => { + return { + httpHandler: httpHandlerExtensionConfiguration.httpHandler(), + }; +}; + +const CONTENT_LENGTH_HEADER = "content-length"; +function contentLengthMiddleware(bodyLengthChecker) { + return (next) => async (args) => { + const request = args.request; + if (HttpRequest.isInstance(request)) { + const { body, headers } = request; + if (body && + Object.keys(headers) + .map((str) => str.toLowerCase()) + .indexOf(CONTENT_LENGTH_HEADER) === -1) { + try { + const length = bodyLengthChecker(body); + request.headers = { + ...request.headers, + [CONTENT_LENGTH_HEADER]: String(length), + }; + } + catch (ignored) { + } + } + } + return next({ + ...args, + request, + }); + }; +} +const contentLengthMiddlewareOptions = { + step: "build", + tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"], + name: "contentLengthMiddleware", + override: true, +}; +const getContentLengthPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), contentLengthMiddlewareOptions); + }, +}); + +const escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); +const hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`; + +const escapeUriPath = (uri) => uri.split("/").map(escapeUri).join("/"); + +function buildQueryString(query) { + const parts = []; + for (let key of Object.keys(query).sort()) { + const value = query[key]; + key = escapeUri(key); + if (Array.isArray(value)) { + for (let i = 0, iLen = value.length; i < iLen; i++) { + parts.push(`${key}=${escapeUri(value[i])}`); + } + } + else { + let qsEntry = key; + if (value || typeof value === "string") { + qsEntry += `=${escapeUri(value)}`; + } + parts.push(qsEntry); + } + } + return parts.join("&"); +} + +exports.Field = Field; +exports.Fields = Fields; +exports.FromStringShapeDeserializer = FromStringShapeDeserializer; +exports.HttpBindingProtocol = HttpBindingProtocol; +exports.HttpInterceptingShapeDeserializer = HttpInterceptingShapeDeserializer; +exports.HttpInterceptingShapeSerializer = HttpInterceptingShapeSerializer; +exports.HttpProtocol = HttpProtocol; +exports.RequestBuilder = RequestBuilder; +exports.RpcProtocol = RpcProtocol; +exports.SerdeContext = SerdeContext; +exports.ToStringShapeSerializer = ToStringShapeSerializer; +exports.buildQueryString = buildQueryString; +exports.collectBody = collectBody; +exports.contentLengthMiddleware = contentLengthMiddleware; +exports.contentLengthMiddlewareOptions = contentLengthMiddlewareOptions; +exports.determineTimestampFormat = determineTimestampFormat; +exports.escapeUri = escapeUri; +exports.escapeUriPath = escapeUriPath; +exports.extendedEncodeURIComponent = extendedEncodeURIComponent; +exports.getContentLengthPlugin = getContentLengthPlugin; +exports.getHttpHandlerExtensionConfiguration = getHttpHandlerExtensionConfiguration; +exports.requestBuilder = requestBuilder; +exports.resolveHttpHandlerRuntimeConfig = resolveHttpHandlerRuntimeConfig; +exports.resolvedPath = resolvedPath; + + +/***/ }), + +/***/ 23609: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { Readable } = __nccwpck_require__(57075); +const { NoOpLogger, normalizeProvider } = __nccwpck_require__(92658); +const { HttpResponse, HttpRequest } = __nccwpck_require__(93422); +const { parseRfc7231DateTime, v4 } = __nccwpck_require__(92430); + +const isStreamingPayload = (request) => request?.body instanceof Readable || + (typeof ReadableStream !== "undefined" && request?.body instanceof ReadableStream); + +const CLOCK_SKEW_ERROR_CODES = [ + "AuthFailure", + "InvalidSignatureException", + "RequestExpired", + "RequestInTheFuture", + "RequestTimeTooSkewed", + "SignatureDoesNotMatch", +]; +const THROTTLING_ERROR_CODES = [ + "BandwidthLimitExceeded", + "EC2ThrottledException", + "LimitExceededException", + "PriorRequestNotComplete", + "ProvisionedThroughputExceededException", + "RequestLimitExceeded", + "RequestThrottled", + "RequestThrottledException", + "SlowDown", + "ThrottledException", + "Throttling", + "ThrottlingException", + "TooManyRequestsException", + "TransactionInProgressException", +]; +const TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"]; +const TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; +const NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"]; +const NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND", "EAI_AGAIN"]; + +const isRetryableByTrait = (error) => error?.$retryable !== undefined; +const isClockSkewError = (error) => CLOCK_SKEW_ERROR_CODES.includes(error.name); +const isClockSkewCorrectedError = (error) => error.$metadata?.clockSkewCorrected; +const isBrowserNetworkError = (error) => { + const errorMessages = new Set([ + "Failed to fetch", + "NetworkError when attempting to fetch resource", + "The Internet connection appears to be offline", + "Load failed", + "Network request failed", + ]); + const isValid = error && error instanceof TypeError; + if (!isValid) { + return false; + } + return errorMessages.has(error.message); +}; +const isThrottlingError = (error) => error.$metadata?.httpStatusCode === 429 || + THROTTLING_ERROR_CODES.includes(error.name) || + error.$retryable?.throttling == true; +const isTransientError = (error, depth = 0) => isRetryableByTrait(error) || + isClockSkewCorrectedError(error) || + (error.name === "InvalidSignatureException" && error.message?.includes("Signature expired")) || + TRANSIENT_ERROR_CODES.includes(error.name) || + NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || + NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") || + TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || + isBrowserNetworkError(error) || + isNodeJsHttp2TransientError(error) || + (error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1)); +const isServerError = (error) => { + if (error.$metadata?.httpStatusCode !== undefined) { + const statusCode = error.$metadata.httpStatusCode; + if (500 <= statusCode && statusCode <= 599 && !isTransientError(error)) { + return true; + } + return false; + } + return false; +}; +function isNodeJsHttp2TransientError(error) { + return error.code === "ERR_HTTP2_STREAM_ERROR" && error.message.includes("NGHTTP2_REFUSED_STREAM"); +} + +const DEFAULT_RETRY_DELAY_BASE = 100; +const MAXIMUM_RETRY_DELAY = 20 * 1000; +const THROTTLING_RETRY_DELAY_BASE = 500; +const INITIAL_RETRY_TOKENS = 500; +const RETRY_COST = 5; +const TIMEOUT_RETRY_COST = 10; +const NO_RETRY_INCREMENT = 1; +const INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; +const REQUEST_HEADER = "amz-sdk-request"; + +function parseRetryAfterHeader(response, logger) { + if (!HttpResponse.isInstance(response)) { + return; + } + for (const header of Object.keys(response.headers)) { + const h = header.toLowerCase(); + if (h === "retry-after") { + const retryAfter = response.headers[header]; + let retryAfterSeconds = NaN; + if (retryAfter.endsWith("GMT")) { + try { + const date = parseRfc7231DateTime(retryAfter); + retryAfterSeconds = (date.getTime() - Date.now()) / 1000; + } + catch (e) { + logger?.trace?.("Failed to parse retry-after header"); + logger?.trace?.(e); + } + } + else if (retryAfter.match(/ GMT, ((\d+)|(\d+\.\d+))$/)) { + retryAfterSeconds = Number(retryAfter.match(/ GMT, ([\d.]+)$/)?.[1]); + } + else if (retryAfter.match(/^((\d+)|(\d+\.\d+))$/)) { + retryAfterSeconds = Number(retryAfter); + } + else if (Date.parse(retryAfter) >= Date.now()) { + retryAfterSeconds = (Date.parse(retryAfter) - Date.now()) / 1000; + } + if (isNaN(retryAfterSeconds)) { + return; + } + return new Date(Date.now() + retryAfterSeconds * 1000); + } + else if (h === "x-amz-retry-after") { + const v = response.headers[header]; + const backoffMilliseconds = Number(v); + if (isNaN(backoffMilliseconds)) { + logger?.trace?.(`Failed to parse x-amz-retry-after=${v}`); + return; + } + return new Date(Date.now() + backoffMilliseconds); + } + } +} +function getRetryAfterHint(response, logger) { + return parseRetryAfterHeader(response, logger); +} + +const asSdkError = (error) => { + if (error instanceof Error) + return error; + if (error instanceof Object) + return Object.assign(new Error(), error); + if (typeof error === "string") + return new Error(error); + return new Error(`AWS SDK error wrapper for ${error}`); +}; + +function bindRetryMiddleware(isStreamingPayload) { + return (options) => (next, context) => async (args) => { + let retryStrategy = await options.retryStrategy(); + const maxAttempts = await options.maxAttempts(); + if (isRetryStrategyV2(retryStrategy)) { + retryStrategy = retryStrategy; + let retryToken = await retryStrategy.acquireInitialRetryToken((context["partition_id"] ?? "") + (context.__retryLongPoll ? ":longpoll" : "")); + let lastError = new Error(); + let attempts = 0; + let totalRetryDelay = 0; + const { request } = args; + const isRequest = HttpRequest.isInstance(request); + if (isRequest) { + request.headers[INVOCATION_ID_HEADER] = v4(); + } + while (true) { + try { + if (isRequest) { + request.headers[REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; + } + const { response, output } = await next(args); + retryStrategy.recordSuccess(retryToken); + output.$metadata.attempts = attempts + 1; + output.$metadata.totalRetryDelay = totalRetryDelay; + return { response, output }; + } + catch (e) { + const retryErrorInfo = getRetryErrorInfo(e, options.logger); + lastError = asSdkError(e); + if (isRequest && isStreamingPayload(request)) { + (context.logger instanceof NoOpLogger ? console : context.logger)?.warn("An error was encountered in a non-retryable streaming request."); + throw lastError; + } + try { + retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo); + } + catch (ignoredRefreshError) { + if (!lastError.$metadata) { + lastError.$metadata = {}; + } + lastError.$metadata.attempts = attempts + 1; + lastError.$metadata.totalRetryDelay = totalRetryDelay; + throw lastError; + } + attempts = retryToken.getRetryCount(); + const delay = retryToken.getRetryDelay(); + totalRetryDelay += (retryToken?.$retryLog?.acquisitionDelay ?? 0) + delay; + if (delay > 0) { + await cooldown(delay); + } + } + } + } + else { + retryStrategy = retryStrategy; + if (retryStrategy?.mode) { + context.userAgent = [...(context.userAgent || []), ["cfg/retry-mode", retryStrategy.mode]]; + } + return retryStrategy.retry(next, args); + } + }; +} +const cooldown = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); +const isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && + typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && + typeof retryStrategy.recordSuccess !== "undefined"; +const getRetryErrorInfo = (error, logger) => { + const errorInfo = { + error, + errorType: getRetryErrorType(error), + }; + const retryAfterHint = parseRetryAfterHeader(error.$response, logger); + if (retryAfterHint) { + errorInfo.retryAfterHint = retryAfterHint; + } + return errorInfo; +}; +const getRetryErrorType = (error) => { + if (isThrottlingError(error)) + return "THROTTLING"; + if (isTransientError(error)) + return "TRANSIENT"; + if (isServerError(error)) + return "SERVER_ERROR"; + return "CLIENT_ERROR"; +}; +const retryMiddlewareOptions = { + name: "retryMiddleware", + tags: ["RETRY"], + step: "finalizeRequest", + priority: "high", + override: true, +}; +function bindGetRetryPlugin(isStreamingPayload) { + const retryMiddleware = bindRetryMiddleware(isStreamingPayload); + return (options) => ({ + applyToStack: (clientStack) => { + clientStack.add(retryMiddleware(options), retryMiddlewareOptions); + }, + }); +} + +class DefaultRateLimiter { + static setTimeoutFn = (fn, delay) => setTimeout(fn, delay); + beta; + minCapacity; + minFillRate; + scaleConstant; + smooth; + enabled = false; + availableTokens = 0; + lastMaxRate = 0; + measuredTxRate = 0; + requestCount = 0; + fillRate; + lastThrottleTime; + lastTimestamp = 0; + lastTxRateBucket; + maxCapacity; + timeWindow = 0; + constructor(options) { + this.beta = options?.beta ?? 0.7; + this.minCapacity = options?.minCapacity ?? 1; + this.minFillRate = options?.minFillRate ?? 0.5; + this.scaleConstant = options?.scaleConstant ?? 0.4; + this.smooth = options?.smooth ?? 0.8; + this.lastThrottleTime = this.getCurrentTimeInSeconds(); + this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); + this.fillRate = this.minFillRate; + this.maxCapacity = this.minCapacity; + } + async getSendToken() { + return this.acquireTokenBucket(1); + } + updateClientSendingRate(response) { + let calculatedRate; + this.updateMeasuredRate(); + const retryErrorInfo = response; + const isThrottling = retryErrorInfo?.errorType === "THROTTLING" || isThrottlingError(retryErrorInfo?.error ?? response); + if (isThrottling) { + const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); + this.lastMaxRate = rateToUse; + this.calculateTimeWindow(); + this.lastThrottleTime = this.getCurrentTimeInSeconds(); + calculatedRate = this.cubicThrottle(rateToUse); + this.enableTokenBucket(); + } + else { + this.calculateTimeWindow(); + calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); + } + const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); + this.updateTokenBucketRate(newRate); + } + getCurrentTimeInSeconds() { + return Date.now() / 1000; + } + async acquireTokenBucket(amount) { + if (!this.enabled) { + return; + } + this.refillTokenBucket(); + while (amount > this.availableTokens) { + const delay = ((amount - this.availableTokens) / this.fillRate) * 1000; + await new Promise((resolve) => DefaultRateLimiter.setTimeoutFn(resolve, delay)); + this.refillTokenBucket(); + } + this.availableTokens = this.availableTokens - amount; + } + refillTokenBucket() { + const timestamp = this.getCurrentTimeInSeconds(); + if (!this.lastTimestamp) { + this.lastTimestamp = timestamp; + return; + } + const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; + this.availableTokens = Math.min(this.maxCapacity, this.availableTokens + fillAmount); + this.lastTimestamp = timestamp; + } + calculateTimeWindow() { + this.timeWindow = this.getPrecise(Math.pow((this.lastMaxRate * (1 - this.beta)) / this.scaleConstant, 1 / 3)); + } + cubicThrottle(rateToUse) { + return this.getPrecise(rateToUse * this.beta); + } + cubicSuccess(timestamp) { + return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); + } + enableTokenBucket() { + this.enabled = true; + } + updateTokenBucketRate(newRate) { + this.refillTokenBucket(); + this.fillRate = Math.max(newRate, this.minFillRate); + this.maxCapacity = Math.max(newRate, this.minCapacity); + this.availableTokens = Math.min(this.availableTokens, this.maxCapacity); + } + updateMeasuredRate() { + const t = this.getCurrentTimeInSeconds(); + const timeBucket = Math.floor(t * 2) / 2; + this.requestCount++; + if (timeBucket > this.lastTxRateBucket) { + const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); + this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); + this.requestCount = 0; + this.lastTxRateBucket = timeBucket; + } + } + getPrecise(num) { + return parseFloat(num.toFixed(8)); + } +} + +class Retry { + static v2026 = typeof process !== "undefined" && process.env?.SMITHY_NEW_RETRIES_2026 === "true"; + static delay() { + return Retry.v2026 ? 50 : 100; + } + static throttlingDelay() { + return Retry.v2026 ? 1_000 : 500; + } + static cost() { + return Retry.v2026 ? 14 : 5; + } + static throttlingCost() { + return Retry.v2026 ? 5 : 10; + } + static modifiedCostType() { + return Retry.v2026 ? "THROTTLING" : "TRANSIENT"; + } +} + +class DefaultRetryBackoffStrategy { + x = Retry.delay(); + computeNextBackoffDelay(i) { + const b = Math.random(); + const r = 2; + const t_i = b * Math.min(this.x * r ** i, MAXIMUM_RETRY_DELAY); + return Math.floor(t_i); + } + setDelayBase(delay) { + this.x = delay; + } +} + +class DefaultRetryToken { + delay; + count; + cost; + longPoll; + $retryLog = { + acquisitionDelay: 0, + }; + constructor(delay, count, cost, longPoll) { + this.delay = delay; + this.count = count; + this.cost = cost; + this.longPoll = longPoll; + } + getRetryCount() { + return this.count; + } + getRetryDelay() { + return Math.min(MAXIMUM_RETRY_DELAY, this.delay); + } + getRetryCost() { + return this.cost; + } + isLongPoll() { + return this.longPoll; + } +} + +var RETRY_MODES; +(function (RETRY_MODES) { + RETRY_MODES["STANDARD"] = "standard"; + RETRY_MODES["ADAPTIVE"] = "adaptive"; +})(RETRY_MODES || (RETRY_MODES = {})); +const DEFAULT_MAX_ATTEMPTS = 3; +const DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; + +const refusal = { + incompatible: 1, + attempts: 2, + capacity: 3, +}; +let StandardRetryStrategy$1 = class StandardRetryStrategy { + mode = RETRY_MODES.STANDARD; + retryBackoffStrategy; + capacity = INITIAL_RETRY_TOKENS; + maxAttemptsProvider; + baseDelay; + constructor(arg1) { + if (typeof arg1 === "number") { + this.maxAttemptsProvider = async () => arg1; + } + else if (typeof arg1 === "function") { + this.maxAttemptsProvider = arg1; + } + else if (arg1 && typeof arg1 === "object") { + this.maxAttemptsProvider = async () => arg1.maxAttempts; + this.baseDelay = arg1.baseDelay; + this.retryBackoffStrategy = arg1.backoff; + } + this.maxAttemptsProvider ??= async () => DEFAULT_MAX_ATTEMPTS; + this.baseDelay ??= Retry.delay(); + this.retryBackoffStrategy ??= new DefaultRetryBackoffStrategy(); + } + async acquireInitialRetryToken(retryTokenScope) { + return new DefaultRetryToken(Retry.delay(), 0, undefined, Retry.v2026 && retryTokenScope.includes(":longpoll")); + } + async refreshRetryTokenForRetry(token, errorInfo) { + const maxAttempts = await this.getMaxAttempts(); + const retryCode = this.retryCode(token, errorInfo, maxAttempts); + const shouldRetry = retryCode === 0; + const isLongPoll = token.isLongPoll?.(); + if (shouldRetry || isLongPoll) { + const errorType = errorInfo.errorType; + this.retryBackoffStrategy.setDelayBase(errorType === "THROTTLING" ? Retry.throttlingDelay() : this.baseDelay); + const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount()); + let retryDelay = delayFromErrorType; + if (errorInfo.retryAfterHint instanceof Date) { + retryDelay = Math.max(delayFromErrorType, Math.min(errorInfo.retryAfterHint.getTime() - Date.now(), delayFromErrorType + 5_000)); + } + if (!shouldRetry) { + const longPollBackoff = Retry.v2026 && retryCode === refusal.capacity && isLongPoll ? retryDelay : 0; + if (longPollBackoff > 0) { + await new Promise((r) => setTimeout(r, longPollBackoff)); + } + } + else { + const capacityCost = this.getCapacityCost(errorType); + this.capacity -= capacityCost; + const nextToken = new DefaultRetryToken(0, token.getRetryCount() + 1, capacityCost, token.isLongPoll?.() ?? false); + await new Promise((r) => setTimeout(r, retryDelay)); + nextToken.$retryLog.acquisitionDelay = retryDelay; + return nextToken; + } + } + throw new Error("No retry token available"); + } + recordSuccess(token) { + this.capacity = Math.min(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT)); + } + getCapacity() { + return this.capacity; + } + async maxAttempts() { + return this.maxAttemptsProvider(); + } + async getMaxAttempts() { + try { + return await this.maxAttemptsProvider(); + } + catch (ignored) { + console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`); + return DEFAULT_MAX_ATTEMPTS; + } + } + retryCode(tokenToRenew, errorInfo, maxAttempts) { + const attempts = tokenToRenew.getRetryCount() + 1; + const retryableStatus = this.isRetryableError(errorInfo.errorType) ? 0 : refusal.incompatible; + const attemptStatus = attempts < maxAttempts ? 0 : refusal.attempts; + const capacityStatus = this.capacity >= this.getCapacityCost(errorInfo.errorType) ? 0 : refusal.capacity; + return retryableStatus || attemptStatus || capacityStatus; + } + getCapacityCost(errorType) { + return errorType === Retry.modifiedCostType() ? Retry.throttlingCost() : Retry.cost(); + } + isRetryableError(errorType) { + return errorType === "THROTTLING" || errorType === "TRANSIENT"; + } +}; + +let AdaptiveRetryStrategy$1 = class AdaptiveRetryStrategy { + mode = RETRY_MODES.ADAPTIVE; + rateLimiter; + standardRetryStrategy; + constructor(maxAttemptsProvider, options) { + const { rateLimiter } = options ?? {}; + this.rateLimiter = rateLimiter ?? new DefaultRateLimiter(); + this.standardRetryStrategy = options + ? new StandardRetryStrategy$1({ + maxAttempts: typeof maxAttemptsProvider === "number" ? maxAttemptsProvider : 3, + ...options, + }) + : new StandardRetryStrategy$1(maxAttemptsProvider); + } + async acquireInitialRetryToken(retryTokenScope) { + const token = await this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope); + await this.rateLimiter.getSendToken(); + return token; + } + async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { + this.rateLimiter.updateClientSendingRate(errorInfo); + const token = await this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo); + await this.rateLimiter.getSendToken(); + return token; + } + recordSuccess(token) { + this.rateLimiter.updateClientSendingRate({}); + this.standardRetryStrategy.recordSuccess(token); + } + async maxAttemptsProvider() { + return this.standardRetryStrategy.maxAttempts(); + } +}; + +class ConfiguredRetryStrategy extends StandardRetryStrategy$1 { + computeNextBackoffDelay; + constructor(maxAttempts, computeNextBackoffDelay = Retry.delay()) { + super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts); + if (typeof computeNextBackoffDelay === "number") { + this.computeNextBackoffDelay = () => computeNextBackoffDelay; + } + else { + this.computeNextBackoffDelay = computeNextBackoffDelay; + } + this.retryBackoffStrategy.computeNextBackoffDelay = (completedAttempt) => { + const nextAttempt = completedAttempt + 1; + return this.computeNextBackoffDelay(nextAttempt); + }; + } +} + +const getDefaultRetryQuota = (initialRetryTokens, options) => { + const MAX_CAPACITY = initialRetryTokens; + const noRetryIncrement = NO_RETRY_INCREMENT; + const retryCost = RETRY_COST; + const timeoutRetryCost = TIMEOUT_RETRY_COST; + let availableCapacity = initialRetryTokens; + const getCapacityAmount = (error) => (error.name === "TimeoutError" ? timeoutRetryCost : retryCost); + const hasRetryTokens = (error) => getCapacityAmount(error) <= availableCapacity; + const retrieveRetryTokens = (error) => { + if (!hasRetryTokens(error)) { + throw new Error("No retry token available"); + } + const capacityAmount = getCapacityAmount(error); + availableCapacity -= capacityAmount; + return capacityAmount; + }; + const releaseRetryTokens = (capacityReleaseAmount) => { + availableCapacity += capacityReleaseAmount ?? noRetryIncrement; + availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); + }; + return Object.freeze({ + hasRetryTokens, + retrieveRetryTokens, + releaseRetryTokens, + }); +}; + +const defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); + +const defaultRetryDecider = (error) => { + if (!error) { + return false; + } + return isRetryableByTrait(error) || isClockSkewError(error) || isThrottlingError(error) || isTransientError(error); +}; + +class StandardRetryStrategy { + maxAttemptsProvider; + retryDecider; + delayDecider; + retryQuota; + mode = RETRY_MODES.STANDARD; + constructor(maxAttemptsProvider, options) { + this.maxAttemptsProvider = maxAttemptsProvider; + this.retryDecider = options?.retryDecider ?? defaultRetryDecider; + this.delayDecider = options?.delayDecider ?? defaultDelayDecider; + this.retryQuota = options?.retryQuota ?? getDefaultRetryQuota(INITIAL_RETRY_TOKENS); + } + shouldRetry(error, attempts, maxAttempts) { + return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error); + } + async getMaxAttempts() { + let maxAttempts; + try { + maxAttempts = await this.maxAttemptsProvider(); + } + catch (ignored) { + maxAttempts = DEFAULT_MAX_ATTEMPTS; + } + return maxAttempts; + } + async retry(next, args, options) { + let retryTokenAmount; + let attempts = 0; + let totalDelay = 0; + const maxAttempts = await this.getMaxAttempts(); + const { request } = args; + if (HttpRequest.isInstance(request)) { + request.headers[INVOCATION_ID_HEADER] = v4(); + } + while (true) { + try { + if (HttpRequest.isInstance(request)) { + request.headers[REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; + } + if (options?.beforeRequest) { + await options.beforeRequest(); + } + const { response, output } = await next(args); + if (options?.afterRequest) { + options.afterRequest(response); + } + this.retryQuota.releaseRetryTokens(retryTokenAmount); + output.$metadata.attempts = attempts + 1; + output.$metadata.totalRetryDelay = totalDelay; + return { response, output }; + } + catch (e) { + const err = asSdkError(e); + attempts++; + if (this.shouldRetry(err, attempts, maxAttempts)) { + retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); + const delayFromDecider = this.delayDecider(isThrottlingError(err) ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE, attempts); + const delayFromResponse = getDelayFromRetryAfterHeader(err.$response); + const delay = Math.max(delayFromResponse || 0, delayFromDecider); + totalDelay += delay; + await new Promise((resolve) => setTimeout(resolve, delay)); + continue; + } + if (!err.$metadata) { + err.$metadata = {}; + } + err.$metadata.attempts = attempts; + err.$metadata.totalRetryDelay = totalDelay; + throw err; + } + } + } +} +const getDelayFromRetryAfterHeader = (response) => { + if (!HttpResponse.isInstance(response)) + return; + const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); + if (!retryAfterHeaderName) + return; + const retryAfter = response.headers[retryAfterHeaderName]; + const retryAfterSeconds = Number(retryAfter); + if (!Number.isNaN(retryAfterSeconds)) + return Math.min(retryAfterSeconds * 1000, 20_000); + const retryAfterDate = new Date(retryAfter); + return Math.min(retryAfterDate.getTime() - Date.now(), 20_000); +}; + +class AdaptiveRetryStrategy extends StandardRetryStrategy { + rateLimiter; + constructor(maxAttemptsProvider, options) { + const { rateLimiter, ...superOptions } = options ?? {}; + super(maxAttemptsProvider, superOptions); + this.rateLimiter = rateLimiter ?? new DefaultRateLimiter(); + this.mode = RETRY_MODES.ADAPTIVE; + } + async retry(next, args) { + return super.retry(next, args, { + beforeRequest: async () => { + return this.rateLimiter.getSendToken(); + }, + afterRequest: (response) => { + this.rateLimiter.updateClientSendingRate(response); + }, + }); + } +} + +const ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; +const CONFIG_MAX_ATTEMPTS = "max_attempts"; +const NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + const value = env[ENV_MAX_ATTEMPTS]; + if (!value) + return undefined; + const maxAttempt = parseInt(value); + if (Number.isNaN(maxAttempt)) { + throw new Error(`Environment variable ${ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`); + } + return maxAttempt; + }, + configFileSelector: (profile) => { + const value = profile[CONFIG_MAX_ATTEMPTS]; + if (!value) + return undefined; + const maxAttempt = parseInt(value); + if (Number.isNaN(maxAttempt)) { + throw new Error(`Shared config file entry ${CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`); + } + return maxAttempt; + }, + default: DEFAULT_MAX_ATTEMPTS, +}; +const resolveRetryConfig = (input, defaults) => { + const { retryStrategy, retryMode } = input; + const { defaultMaxAttempts = DEFAULT_MAX_ATTEMPTS, defaultBaseDelay = Retry.delay() } = defaults ?? {}; + const maxAttemptsProvider = normalizeProvider(input.maxAttempts ?? defaultMaxAttempts); + let controller = retryStrategy + ? Promise.resolve(retryStrategy) + : undefined; + const getDefault = async () => { + const maxAttempts = await maxAttemptsProvider(); + const adaptive = (await normalizeProvider(retryMode)()) === RETRY_MODES.ADAPTIVE; + if (adaptive) { + return new AdaptiveRetryStrategy$1(maxAttemptsProvider, { + maxAttempts, + baseDelay: defaultBaseDelay, + }); + } + return new StandardRetryStrategy$1({ + maxAttempts, + baseDelay: defaultBaseDelay, + }); + }; + return Object.assign(input, { + maxAttempts: maxAttemptsProvider, + retryStrategy: () => (controller ??= getDefault()), + }); +}; +const ENV_RETRY_MODE = "AWS_RETRY_MODE"; +const CONFIG_RETRY_MODE = "retry_mode"; +const NODE_RETRY_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[ENV_RETRY_MODE], + configFileSelector: (profile) => profile[CONFIG_RETRY_MODE], + default: DEFAULT_RETRY_MODE, +}; + +const omitRetryHeadersMiddleware = () => (next) => async (args) => { + const { request } = args; + if (HttpRequest.isInstance(request)) { + delete request.headers[INVOCATION_ID_HEADER]; + delete request.headers[REQUEST_HEADER]; + } + return next(args); +}; +const omitRetryHeadersMiddlewareOptions = { + name: "omitRetryHeadersMiddleware", + tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"], + relation: "before", + toMiddleware: "awsAuthMiddleware", + override: true, +}; +const getOmitRetryHeadersPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo(omitRetryHeadersMiddleware(), omitRetryHeadersMiddlewareOptions); + }, +}); + +const retryMiddleware = bindRetryMiddleware(isStreamingPayload); +const getRetryPlugin = bindGetRetryPlugin(isStreamingPayload); + +exports.AdaptiveRetryStrategy = AdaptiveRetryStrategy$1; +exports.CONFIG_MAX_ATTEMPTS = CONFIG_MAX_ATTEMPTS; +exports.CONFIG_RETRY_MODE = CONFIG_RETRY_MODE; +exports.ConfiguredRetryStrategy = ConfiguredRetryStrategy; +exports.DEFAULT_MAX_ATTEMPTS = DEFAULT_MAX_ATTEMPTS; +exports.DEFAULT_RETRY_DELAY_BASE = DEFAULT_RETRY_DELAY_BASE; +exports.DEFAULT_RETRY_MODE = DEFAULT_RETRY_MODE; +exports.DefaultRateLimiter = DefaultRateLimiter; +exports.DeprecatedAdaptiveRetryStrategy = AdaptiveRetryStrategy; +exports.DeprecatedStandardRetryStrategy = StandardRetryStrategy; +exports.ENV_MAX_ATTEMPTS = ENV_MAX_ATTEMPTS; +exports.ENV_RETRY_MODE = ENV_RETRY_MODE; +exports.INITIAL_RETRY_TOKENS = INITIAL_RETRY_TOKENS; +exports.INVOCATION_ID_HEADER = INVOCATION_ID_HEADER; +exports.MAXIMUM_RETRY_DELAY = MAXIMUM_RETRY_DELAY; +exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = NODE_MAX_ATTEMPT_CONFIG_OPTIONS; +exports.NODE_RETRY_MODE_CONFIG_OPTIONS = NODE_RETRY_MODE_CONFIG_OPTIONS; +exports.NO_RETRY_INCREMENT = NO_RETRY_INCREMENT; +exports.REQUEST_HEADER = REQUEST_HEADER; +exports.RETRY_COST = RETRY_COST; +exports.RETRY_MODES = RETRY_MODES; +exports.Retry = Retry; +exports.StandardRetryStrategy = StandardRetryStrategy$1; +exports.THROTTLING_RETRY_DELAY_BASE = THROTTLING_RETRY_DELAY_BASE; +exports.TIMEOUT_RETRY_COST = TIMEOUT_RETRY_COST; +exports.defaultDelayDecider = defaultDelayDecider; +exports.defaultRetryDecider = defaultRetryDecider; +exports.getOmitRetryHeadersPlugin = getOmitRetryHeadersPlugin; +exports.getRetryAfterHint = getRetryAfterHint; +exports.getRetryPlugin = getRetryPlugin; +exports.isBrowserNetworkError = isBrowserNetworkError; +exports.isClockSkewCorrectedError = isClockSkewCorrectedError; +exports.isClockSkewError = isClockSkewError; +exports.isNodeJsHttp2TransientError = isNodeJsHttp2TransientError; +exports.isRetryableByTrait = isRetryableByTrait; +exports.isServerError = isServerError; +exports.isThrottlingError = isThrottlingError; +exports.isTransientError = isTransientError; +exports.omitRetryHeadersMiddleware = omitRetryHeadersMiddleware; +exports.omitRetryHeadersMiddlewareOptions = omitRetryHeadersMiddlewareOptions; +exports.resolveRetryConfig = resolveRetryConfig; +exports.retryMiddleware = retryMiddleware; +exports.retryMiddlewareOptions = retryMiddlewareOptions; + + +/***/ }), + +/***/ 26890: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { getSmithyContext, HttpResponse, toEndpointV1 } = __nccwpck_require__(34534); + +const deref = (schemaRef) => { + if (typeof schemaRef === "function") { + return schemaRef(); + } + return schemaRef; +}; + +const operation = (namespace, name, traits, input, output) => ({ + name, + namespace, + traits, + input, + output, +}); + +const schemaDeserializationMiddleware = (config) => (next, context) => async (args) => { + const { response } = await next(args); + const { operationSchema } = getSmithyContext(context); + const [, ns, n, t, i, o] = operationSchema ?? []; + try { + const parsed = await config.protocol.deserializeResponse(operation(ns, n, t, i, o), { + ...config, + ...context, + }, response); + return { + response, + output: parsed, + }; + } + catch (error) { + Object.defineProperty(error, "$response", { + value: response, + enumerable: false, + writable: false, + configurable: false, + }); + if (!("$metadata" in error)) { + const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`; + try { + error.message += "\n " + hint; + } + catch (ignored) { + if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") { + console.warn(hint); + } + else { + context.logger?.warn?.(hint); + } + } + if (typeof error.$responseBodyText !== "undefined") { + if (error.$response) { + error.$response.body = error.$responseBodyText; + } + } + try { + if (HttpResponse.isInstance(response)) { + const { headers = {}, statusCode } = response; + const headerEntries = Object.entries(headers); + error.$metadata = { + httpStatusCode: statusCode, + requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries), + extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries), + cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries), + }; + } + } + catch (ignored) { + } + } + throw error; + } +}; +const findHeader = (pattern, headers) => { + return (headers.find(([k]) => { + return k.match(pattern); + }) || [void 0, void 0])[1]; +}; + +const schemaSerializationMiddleware = (config) => (next, context) => async (args) => { + const { operationSchema } = getSmithyContext(context); + const [, ns, n, t, i, o] = operationSchema ?? []; + const endpoint = context.endpointV2 + ? async () => toEndpointV1(context.endpointV2) + : config.endpoint; + const request = await config.protocol.serializeRequest(operation(ns, n, t, i, o), args.input, { + ...config, + ...context, + endpoint, + }); + return next({ + ...args, + request, + }); +}; + +const deserializerMiddlewareOption = { + name: "deserializerMiddleware", + step: "deserialize", + tags: ["DESERIALIZER"], + override: true, +}; +const serializerMiddlewareOption = { + name: "serializerMiddleware", + step: "serialize", + tags: ["SERIALIZER"], + override: true, +}; +function getSchemaSerdePlugin(config) { + return { + applyToStack: (commandStack) => { + commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption); + commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption); + config.protocol.setSerdeContext(config); + }, + }; +} + +class Schema { + name; + namespace; + traits; + static assign(instance, values) { + const schema = Object.assign(instance, values); + return schema; + } + static [Symbol.hasInstance](lhs) { + const isPrototype = this.prototype.isPrototypeOf(lhs); + if (!isPrototype && typeof lhs === "object" && lhs !== null) { + const list = lhs; + return list.symbol === this.symbol; + } + return isPrototype; + } + getName() { + return this.namespace + "#" + this.name; + } +} + +class ListSchema extends Schema { + static symbol = Symbol.for("@smithy/lis"); + name; + traits; + valueSchema; + symbol = ListSchema.symbol; +} +const list = (namespace, name, traits, valueSchema) => Schema.assign(new ListSchema(), { + name, + namespace, + traits, + valueSchema, +}); + +class MapSchema extends Schema { + static symbol = Symbol.for("@smithy/map"); + name; + traits; + keySchema; + valueSchema; + symbol = MapSchema.symbol; +} +const map = (namespace, name, traits, keySchema, valueSchema) => Schema.assign(new MapSchema(), { + name, + namespace, + traits, + keySchema, + valueSchema, +}); + +class OperationSchema extends Schema { + static symbol = Symbol.for("@smithy/ope"); + name; + traits; + input; + output; + symbol = OperationSchema.symbol; +} +const op = (namespace, name, traits, input, output) => Schema.assign(new OperationSchema(), { + name, + namespace, + traits, + input, + output, +}); + +class StructureSchema extends Schema { + static symbol = Symbol.for("@smithy/str"); + name; + traits; + memberNames; + memberList; + symbol = StructureSchema.symbol; +} +const struct = (namespace, name, traits, memberNames, memberList) => Schema.assign(new StructureSchema(), { + name, + namespace, + traits, + memberNames, + memberList, +}); + +class ErrorSchema extends StructureSchema { + static symbol = Symbol.for("@smithy/err"); + ctor; + symbol = ErrorSchema.symbol; +} +const error = (namespace, name, traits, memberNames, memberList, _ctor) => Schema.assign(new ErrorSchema(), { + name, + namespace, + traits, + memberNames, + memberList, + ctor: null, +}); + +const traitsCache = []; +function translateTraits(indicator) { + if (typeof indicator === "object") { + return indicator; + } + indicator = indicator | 0; + if (traitsCache[indicator]) { + return traitsCache[indicator]; + } + const traits = {}; + let i = 0; + for (const trait of [ + "httpLabel", + "idempotent", + "idempotencyToken", + "sensitive", + "httpPayload", + "httpResponseCode", + "httpQueryParams", + ]) { + if (((indicator >> i++) & 1) === 1) { + traits[trait] = 1; + } + } + return (traitsCache[indicator] = traits); +} + +const anno = { + it: Symbol.for("@smithy/nor-struct-it"), + ns: Symbol.for("@smithy/ns"), +}; +const simpleSchemaCacheN = []; +const simpleSchemaCacheS = {}; +class NormalizedSchema { + ref; + memberName; + static symbol = Symbol.for("@smithy/nor"); + symbol = NormalizedSchema.symbol; + name; + schema; + _isMemberSchema; + traits; + memberTraits; + normalizedTraits; + constructor(ref, memberName) { + this.ref = ref; + this.memberName = memberName; + const traitStack = []; + let _ref = ref; + let schema = ref; + this._isMemberSchema = false; + while (isMemberSchema(_ref)) { + traitStack.push(_ref[1]); + _ref = _ref[0]; + schema = deref(_ref); + this._isMemberSchema = true; + } + if (traitStack.length > 0) { + this.memberTraits = {}; + for (let i = traitStack.length - 1; i >= 0; --i) { + const traitSet = traitStack[i]; + Object.assign(this.memberTraits, translateTraits(traitSet)); + } + } + else { + this.memberTraits = 0; + } + if (schema instanceof NormalizedSchema) { + const computedMemberTraits = this.memberTraits; + Object.assign(this, schema); + this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits()); + this.normalizedTraits = void 0; + this.memberName = memberName ?? schema.memberName; + return; + } + this.schema = deref(schema); + if (isStaticSchema(this.schema)) { + this.name = `${this.schema[1]}#${this.schema[2]}`; + this.traits = this.schema[3]; + } + else { + this.name = this.memberName ?? String(schema); + this.traits = 0; + } + if (this._isMemberSchema && !memberName) { + throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`); + } + } + static [Symbol.hasInstance](lhs) { + const isPrototype = this.prototype.isPrototypeOf(lhs); + if (!isPrototype && typeof lhs === "object" && lhs !== null) { + const ns = lhs; + return ns.symbol === this.symbol; + } + return isPrototype; + } + static of(ref) { + const keyAble = typeof ref === "function" || (typeof ref === "object" && ref !== null); + if (typeof ref === "number") { + if (simpleSchemaCacheN[ref]) { + return simpleSchemaCacheN[ref]; + } + } + else if (typeof ref === "string") { + if (simpleSchemaCacheS[ref]) { + return simpleSchemaCacheS[ref]; + } + } + else if (keyAble) { + if (ref[anno.ns]) { + return ref[anno.ns]; + } + } + const sc = deref(ref); + if (sc instanceof NormalizedSchema) { + return sc; + } + if (isMemberSchema(sc)) { + const [ns, traits] = sc; + if (ns instanceof NormalizedSchema) { + Object.assign(ns.getMergedTraits(), translateTraits(traits)); + return ns; + } + throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`); + } + const ns = new NormalizedSchema(sc); + if (keyAble) { + return (ref[anno.ns] = ns); + } + if (typeof sc === "string") { + return (simpleSchemaCacheS[sc] = ns); + } + if (typeof sc === "number") { + return (simpleSchemaCacheN[sc] = ns); + } + return ns; + } + getSchema() { + const sc = this.schema; + if (Array.isArray(sc) && sc[0] === 0) { + return sc[4]; + } + return sc; + } + getName(withNamespace = false) { + const { name } = this; + const short = !withNamespace && name && name.includes("#"); + return short ? name.split("#")[1] : name || undefined; + } + getMemberName() { + return this.memberName; + } + isMemberSchema() { + return this._isMemberSchema; + } + isListSchema() { + const sc = this.getSchema(); + return typeof sc === "number" + ? sc >= 64 && sc < 128 + : sc[0] === 1; + } + isMapSchema() { + const sc = this.getSchema(); + return typeof sc === "number" + ? sc >= 128 && sc <= 0b1111_1111 + : sc[0] === 2; + } + isStructSchema() { + const sc = this.getSchema(); + if (typeof sc !== "object") { + return false; + } + const id = sc[0]; + return (id === 3 || + id === -3 || + id === 4); + } + isUnionSchema() { + const sc = this.getSchema(); + if (typeof sc !== "object") { + return false; + } + return sc[0] === 4; + } + isBlobSchema() { + const sc = this.getSchema(); + return sc === 21 || sc === 42; + } + isTimestampSchema() { + const sc = this.getSchema(); + return (typeof sc === "number" && + sc >= 4 && + sc <= 7); + } + isUnitSchema() { + return this.getSchema() === "unit"; + } + isDocumentSchema() { + return this.getSchema() === 15; + } + isStringSchema() { + return this.getSchema() === 0; + } + isBooleanSchema() { + return this.getSchema() === 2; + } + isNumericSchema() { + return this.getSchema() === 1; + } + isBigIntegerSchema() { + return this.getSchema() === 17; + } + isBigDecimalSchema() { + return this.getSchema() === 19; + } + isStreaming() { + const { streaming } = this.getMergedTraits(); + return !!streaming || this.getSchema() === 42; + } + isIdempotencyToken() { + return !!this.getMergedTraits().idempotencyToken; + } + getMergedTraits() { + return (this.normalizedTraits ?? + (this.normalizedTraits = { + ...this.getOwnTraits(), + ...this.getMemberTraits(), + })); + } + getMemberTraits() { + return translateTraits(this.memberTraits); + } + getOwnTraits() { + return translateTraits(this.traits); + } + getKeySchema() { + const [isDoc, isMap] = [this.isDocumentSchema(), this.isMapSchema()]; + if (!isDoc && !isMap) { + throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`); + } + const schema = this.getSchema(); + const memberSchema = isDoc + ? 15 + : (schema[4] ?? 0); + return member([memberSchema, 0], "key"); + } + getValueSchema() { + const sc = this.getSchema(); + const [isDoc, isMap, isList] = [this.isDocumentSchema(), this.isMapSchema(), this.isListSchema()]; + const memberSchema = typeof sc === "number" + ? 0b0011_1111 & sc + : sc && typeof sc === "object" && (isMap || isList) + ? sc[3 + sc[0]] + : isDoc + ? 15 + : void 0; + if (memberSchema != null) { + return member([memberSchema, 0], isMap ? "value" : "member"); + } + throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`); + } + getMemberSchema(memberName) { + const struct = this.getSchema(); + if (this.isStructSchema() && struct[4].includes(memberName)) { + const i = struct[4].indexOf(memberName); + const memberSchema = struct[5][i]; + return member(isMemberSchema(memberSchema) ? memberSchema : [memberSchema, 0], memberName); + } + if (this.isDocumentSchema()) { + return member([15, 0], memberName); + } + throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${memberName}.`); + } + getMemberSchemas() { + const buffer = {}; + try { + for (const [k, v] of this.structIterator()) { + buffer[k] = v; + } + } + catch (ignored) { } + return buffer; + } + getEventStreamMember() { + if (this.isStructSchema()) { + for (const [memberName, memberSchema] of this.structIterator()) { + if (memberSchema.isStreaming() && memberSchema.isStructSchema()) { + return memberName; + } + } + } + return ""; + } + *structIterator() { + if (this.isUnitSchema()) { + return; + } + if (!this.isStructSchema()) { + throw new Error("@smithy/core/schema - cannot iterate non-struct schema."); + } + const struct = this.getSchema(); + const z = struct[4].length; + let it = struct[anno.it]; + if (it && z === it.length) { + yield* it; + return; + } + it = Array(z); + for (let i = 0; i < z; ++i) { + const k = struct[4][i]; + const v = member([struct[5][i], 0], k); + yield (it[i] = [k, v]); + } + struct[anno.it] = it; + } +} +function member(memberSchema, memberName) { + if (memberSchema instanceof NormalizedSchema) { + return Object.assign(memberSchema, { + memberName, + _isMemberSchema: true, + }); + } + const internalCtorAccess = NormalizedSchema; + return new internalCtorAccess(memberSchema, memberName); +} +const isMemberSchema = (sc) => Array.isArray(sc) && sc.length === 2; +const isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5; + +class SimpleSchema extends Schema { + static symbol = Symbol.for("@smithy/sim"); + name; + schemaRef; + traits; + symbol = SimpleSchema.symbol; +} +const sim = (namespace, name, schemaRef, traits) => Schema.assign(new SimpleSchema(), { + name, + namespace, + traits, + schemaRef, +}); +const simAdapter = (namespace, name, traits, schemaRef) => Schema.assign(new SimpleSchema(), { + name, + namespace, + traits, + schemaRef, +}); + +const SCHEMA = { + BLOB: 0b0001_0101, + STREAMING_BLOB: 0b0010_1010, + BOOLEAN: 0b0000_0010, + STRING: 0b0000_0000, + NUMERIC: 0b0000_0001, + BIG_INTEGER: 0b0001_0001, + BIG_DECIMAL: 0b0001_0011, + DOCUMENT: 0b0000_1111, + TIMESTAMP_DEFAULT: 0b0000_0100, + TIMESTAMP_DATE_TIME: 0b0000_0101, + TIMESTAMP_HTTP_DATE: 0b0000_0110, + TIMESTAMP_EPOCH_SECONDS: 0b0000_0111, + LIST_MODIFIER: 0b0100_0000, + MAP_MODIFIER: 0b1000_0000, +}; + +class TypeRegistry { + namespace; + schemas; + exceptions; + static registries = new Map(); + constructor(namespace, schemas = new Map(), exceptions = new Map()) { + this.namespace = namespace; + this.schemas = schemas; + this.exceptions = exceptions; + } + static for(namespace) { + if (!TypeRegistry.registries.has(namespace)) { + TypeRegistry.registries.set(namespace, new TypeRegistry(namespace)); + } + return TypeRegistry.registries.get(namespace); + } + copyFrom(other) { + const { schemas, exceptions } = this; + for (const [k, v] of other.schemas) { + if (!schemas.has(k)) { + schemas.set(k, v); + } + } + for (const [k, v] of other.exceptions) { + if (!exceptions.has(k)) { + exceptions.set(k, v); + } + } + } + register(shapeId, schema) { + const qualifiedName = this.normalizeShapeId(shapeId); + for (const r of [this, TypeRegistry.for(qualifiedName.split("#")[0])]) { + r.schemas.set(qualifiedName, schema); + } + } + getSchema(shapeId) { + const id = this.normalizeShapeId(shapeId); + if (!this.schemas.has(id)) { + if (!shapeId.includes("#")) { + const suffix = "#" + shapeId; + const candidates = []; + for (const [shapeId, schema] of this.schemas.entries()) { + if (shapeId.endsWith(suffix)) { + candidates.push(schema); + } + } + if (candidates.length === 1) { + return candidates[0]; + } + } + throw new Error(`@smithy/core/schema - schema not found for ${id}`); + } + return this.schemas.get(id); + } + registerError(es, ctor) { + const $error = es; + const ns = $error[1]; + for (const r of [this, TypeRegistry.for(ns)]) { + r.schemas.set(ns + "#" + $error[2], $error); + r.exceptions.set($error, ctor); + } + } + getErrorCtor(es) { + const $error = es; + if (this.exceptions.has($error)) { + return this.exceptions.get($error); + } + const registry = TypeRegistry.for($error[1]); + return registry.exceptions.get($error); + } + getBaseException() { + for (const exceptionKey of this.exceptions.keys()) { + if (Array.isArray(exceptionKey)) { + const [, ns, name] = exceptionKey; + const id = ns + "#" + name; + if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) { + return exceptionKey; + } + } + } + return undefined; + } + find(predicate) { + for (const schema of this.schemas.values()) { + if (predicate(schema)) { + return schema; + } + } + return undefined; + } + clear() { + this.schemas.clear(); + this.exceptions.clear(); + } + normalizeShapeId(shapeId) { + if (shapeId.includes("#")) { + return shapeId; + } + return this.namespace + "#" + shapeId; + } +} + +exports.ErrorSchema = ErrorSchema; +exports.ListSchema = ListSchema; +exports.MapSchema = MapSchema; +exports.NormalizedSchema = NormalizedSchema; +exports.OperationSchema = OperationSchema; +exports.SCHEMA = SCHEMA; +exports.Schema = Schema; +exports.SimpleSchema = SimpleSchema; +exports.StructureSchema = StructureSchema; +exports.TypeRegistry = TypeRegistry; +exports.deref = deref; +exports.deserializerMiddlewareOption = deserializerMiddlewareOption; +exports.error = error; +exports.getSchemaSerdePlugin = getSchemaSerdePlugin; +exports.isStaticSchema = isStaticSchema; +exports.list = list; +exports.map = map; +exports.op = op; +exports.operation = operation; +exports.serializerMiddlewareOption = serializerMiddlewareOption; +exports.sim = sim; +exports.simAdapter = simAdapter; +exports.simpleSchemaCacheN = simpleSchemaCacheN; +exports.simpleSchemaCacheS = simpleSchemaCacheS; +exports.struct = struct; +exports.traitsCache = traitsCache; +exports.translateTraits = translateTraits; + + +/***/ }), + +/***/ 92430: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { createHmac, createHash, getRandomValues } = __nccwpck_require__(77598); +const { ReadStream, lstatSync, fstatSync } = __nccwpck_require__(73024); +const { HttpResponse } = __nccwpck_require__(34534); +const { toEndpointV1 } = __nccwpck_require__(62085); +const { Readable, Writable, PassThrough } = __nccwpck_require__(57075); + +const isArrayBuffer = (arg) => (typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer) || + Object.prototype.toString.call(arg) === "[object ArrayBuffer]"; + +const fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { + if (!isArrayBuffer(input)) { + throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`); + } + return Buffer.from(input, offset, length); +}; +const fromString = (input, encoding) => { + if (typeof input !== "string") { + throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`); + } + return encoding ? Buffer.from(input, encoding) : Buffer.from(input); +}; + +const BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; +const fromBase64 = (input) => { + if ((input.length * 3) % 4 !== 0) { + throw new TypeError(`Incorrect padding on base64 string.`); + } + if (!BASE64_REGEX.exec(input)) { + throw new TypeError(`Invalid base64 string.`); + } + const buffer = fromString(input, "base64"); + return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); +}; + +const fromUtf8$1 = (input) => { + const buf = fromString(input, "utf8"); + return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); +}; + +const toBase64$1 = (_input) => { + let input; + if (typeof _input === "string") { + input = fromUtf8$1(_input); + } + else { + input = _input; + } + if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") { + throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array."); + } + return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("base64"); +}; + +function bindUint8ArrayBlobAdapter(toUtf8, fromUtf8, toBase64, fromBase64) { + return class Uint8ArrayBlobAdapter extends Uint8Array { + static fromString(source, encoding = "utf-8") { + if (typeof source === "string") { + if (encoding === "base64") { + return Uint8ArrayBlobAdapter.mutate(fromBase64(source)); + } + return Uint8ArrayBlobAdapter.mutate(fromUtf8(source)); + } + throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`); + } + static mutate(source) { + Object.setPrototypeOf(source, Uint8ArrayBlobAdapter.prototype); + return source; + } + transformToString(encoding = "utf-8") { + if (encoding === "base64") { + return toBase64(this); + } + return toUtf8(this); + } + }; +} + +const toUtf8$1 = (input) => { + if (typeof input === "string") { + return input; + } + if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") { + throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array."); + } + return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8"); +}; + +const decimalToHex = Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0")); +function bindV4(getRandomValues) { + if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") { + return () => crypto.randomUUID(); + } + return () => { + const rnds = new Uint8Array(16); + getRandomValues(rnds); + rnds[6] = (rnds[6] & 0x0f) | 0x40; + rnds[8] = (rnds[8] & 0x3f) | 0x80; + return (decimalToHex[rnds[0]] + + decimalToHex[rnds[1]] + + decimalToHex[rnds[2]] + + decimalToHex[rnds[3]] + + "-" + + decimalToHex[rnds[4]] + + decimalToHex[rnds[5]] + + "-" + + decimalToHex[rnds[6]] + + decimalToHex[rnds[7]] + + "-" + + decimalToHex[rnds[8]] + + decimalToHex[rnds[9]] + + "-" + + decimalToHex[rnds[10]] + + decimalToHex[rnds[11]] + + decimalToHex[rnds[12]] + + decimalToHex[rnds[13]] + + decimalToHex[rnds[14]] + + decimalToHex[rnds[15]]); + }; +} + +const copyDocumentWithTransform = (source, _schemaRef, _transform = (_) => _) => source; + +const parseBoolean = (value) => { + switch (value) { + case "true": + return true; + case "false": + return false; + default: + throw new Error(`Unable to parse boolean value "${value}"`); + } +}; +const expectBoolean = (value) => { + if (value === null || value === undefined) { + return undefined; + } + if (typeof value === "number") { + if (value === 0 || value === 1) { + logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + } + if (value === 0) { + return false; + } + if (value === 1) { + return true; + } + } + if (typeof value === "string") { + const lower = value.toLowerCase(); + if (lower === "false" || lower === "true") { + logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); + } + if (lower === "false") { + return false; + } + if (lower === "true") { + return true; + } + } + if (typeof value === "boolean") { + return value; + } + throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`); +}; +const expectNumber = (value) => { + if (value === null || value === undefined) { + return undefined; + } + if (typeof value === "string") { + const parsed = parseFloat(value); + if (!Number.isNaN(parsed)) { + if (String(parsed) !== String(value)) { + logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`)); + } + return parsed; + } + } + if (typeof value === "number") { + return value; + } + throw new TypeError(`Expected number, got ${typeof value}: ${value}`); +}; +const MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); +const expectFloat32 = (value) => { + const expected = expectNumber(value); + if (expected !== undefined && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { + if (Math.abs(expected) > MAX_FLOAT) { + throw new TypeError(`Expected 32-bit float, got ${value}`); + } + } + return expected; +}; +const expectLong = (value) => { + if (value === null || value === undefined) { + return undefined; + } + if (Number.isInteger(value) && !Number.isNaN(value)) { + return value; + } + throw new TypeError(`Expected integer, got ${typeof value}: ${value}`); +}; +const expectInt = expectLong; +const expectInt32 = (value) => expectSizedInt(value, 32); +const expectShort = (value) => expectSizedInt(value, 16); +const expectByte = (value) => expectSizedInt(value, 8); +const expectSizedInt = (value, size) => { + const expected = expectLong(value); + if (expected !== undefined && castInt(expected, size) !== expected) { + throw new TypeError(`Expected ${size}-bit integer, got ${value}`); + } + return expected; +}; +const castInt = (value, size) => { + switch (size) { + case 32: + return Int32Array.of(value)[0]; + case 16: + return Int16Array.of(value)[0]; + case 8: + return Int8Array.of(value)[0]; + } +}; +const expectNonNull = (value, location) => { + if (value === null || value === undefined) { + if (location) { + throw new TypeError(`Expected a non-null value for ${location}`); + } + throw new TypeError("Expected a non-null value"); + } + return value; +}; +const expectObject = (value) => { + if (value === null || value === undefined) { + return undefined; + } + if (typeof value === "object" && !Array.isArray(value)) { + return value; + } + const receivedType = Array.isArray(value) ? "array" : typeof value; + throw new TypeError(`Expected object, got ${receivedType}: ${value}`); +}; +const expectString = (value) => { + if (value === null || value === undefined) { + return undefined; + } + if (typeof value === "string") { + return value; + } + if (["boolean", "number", "bigint"].includes(typeof value)) { + logger.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`)); + return String(value); + } + throw new TypeError(`Expected string, got ${typeof value}: ${value}`); +}; +const expectUnion = (value) => { + if (value === null || value === undefined) { + return undefined; + } + const asObject = expectObject(value); + const setKeys = []; + for (const k in asObject) { + if (asObject[k] != null) { + setKeys.push(k); + } + } + if (setKeys.length === 0) { + throw new TypeError(`Unions must have exactly one non-null member. None were found.`); + } + if (setKeys.length > 1) { + throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`); + } + return asObject; +}; +const strictParseDouble = (value) => { + if (typeof value == "string") { + return expectNumber(parseNumber(value)); + } + return expectNumber(value); +}; +const strictParseFloat = strictParseDouble; +const strictParseFloat32 = (value) => { + if (typeof value == "string") { + return expectFloat32(parseNumber(value)); + } + return expectFloat32(value); +}; +const NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g; +const parseNumber = (value) => { + const matches = value.match(NUMBER_REGEX); + if (matches === null || matches[0].length !== value.length) { + throw new TypeError(`Expected real number, got implicit NaN`); + } + return parseFloat(value); +}; +const limitedParseDouble = (value) => { + if (typeof value == "string") { + return parseFloatString(value); + } + return expectNumber(value); +}; +const handleFloat = limitedParseDouble; +const limitedParseFloat = limitedParseDouble; +const limitedParseFloat32 = (value) => { + if (typeof value == "string") { + return parseFloatString(value); + } + return expectFloat32(value); +}; +const parseFloatString = (value) => { + switch (value) { + case "NaN": + return NaN; + case "Infinity": + return Infinity; + case "-Infinity": + return -Infinity; + default: + throw new Error(`Unable to parse float value: ${value}`); + } +}; +const strictParseLong = (value) => { + if (typeof value === "string") { + return expectLong(parseNumber(value)); + } + return expectLong(value); +}; +const strictParseInt = strictParseLong; +const strictParseInt32 = (value) => { + if (typeof value === "string") { + return expectInt32(parseNumber(value)); + } + return expectInt32(value); +}; +const strictParseShort = (value) => { + if (typeof value === "string") { + return expectShort(parseNumber(value)); + } + return expectShort(value); +}; +const strictParseByte = (value) => { + if (typeof value === "string") { + return expectByte(parseNumber(value)); + } + return expectByte(value); +}; +const stackTraceWarning = (message) => { + return String(new TypeError(message).stack || message) + .split("\n") + .slice(0, 5) + .filter((s) => !s.includes("stackTraceWarning")) + .join("\n"); +}; +const logger = { + warn: console.warn, +}; + +const DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; +const MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; +function dateToUtcString(date) { + const year = date.getUTCFullYear(); + const month = date.getUTCMonth(); + const dayOfWeek = date.getUTCDay(); + const dayOfMonthInt = date.getUTCDate(); + const hoursInt = date.getUTCHours(); + const minutesInt = date.getUTCMinutes(); + const secondsInt = date.getUTCSeconds(); + const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`; + const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`; + const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`; + const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`; + return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`; +} +const RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/); +const parseRfc3339DateTime = (value) => { + if (value === null || value === undefined) { + return undefined; + } + if (typeof value !== "string") { + throw new TypeError("RFC-3339 date-times must be expressed as strings"); + } + const match = RFC3339.exec(value); + if (!match) { + throw new TypeError("Invalid RFC-3339 date-time value"); + } + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; + const year = strictParseShort(stripLeadingZeroes(yearStr)); + const month = parseDateValue(monthStr, "month", 1, 12); + const day = parseDateValue(dayStr, "day", 1, 31); + return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); +}; +const RFC3339_WITH_OFFSET$1 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/); +const parseRfc3339DateTimeWithOffset = (value) => { + if (value === null || value === undefined) { + return undefined; + } + if (typeof value !== "string") { + throw new TypeError("RFC-3339 date-times must be expressed as strings"); + } + const match = RFC3339_WITH_OFFSET$1.exec(value); + if (!match) { + throw new TypeError("Invalid RFC-3339 date-time value"); + } + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match; + const year = strictParseShort(stripLeadingZeroes(yearStr)); + const month = parseDateValue(monthStr, "month", 1, 12); + const day = parseDateValue(dayStr, "day", 1, 31); + const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); + if (offsetStr.toUpperCase() != "Z") { + date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr)); + } + return date; +}; +const IMF_FIXDATE$1 = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); +const RFC_850_DATE$1 = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); +const ASC_TIME$1 = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/); +const parseRfc7231DateTime = (value) => { + if (value === null || value === undefined) { + return undefined; + } + if (typeof value !== "string") { + throw new TypeError("RFC-7231 date-times must be expressed as strings"); + } + let match = IMF_FIXDATE$1.exec(value); + if (match) { + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + return buildDate(strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); + } + match = RFC_850_DATE$1.exec(value); + if (match) { + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { + hours, + minutes, + seconds, + fractionalMilliseconds, + })); + } + match = ASC_TIME$1.exec(value); + if (match) { + const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; + return buildDate(strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); + } + throw new TypeError("Invalid RFC-7231 date-time value"); +}; +const parseEpochTimestamp = (value) => { + if (value === null || value === undefined) { + return undefined; + } + let valueAsDouble; + if (typeof value === "number") { + valueAsDouble = value; + } + else if (typeof value === "string") { + valueAsDouble = strictParseDouble(value); + } + else if (typeof value === "object" && value.tag === 1) { + valueAsDouble = value.value; + } + else { + throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation"); + } + if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { + throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics"); + } + return new Date(Math.round(valueAsDouble * 1000)); +}; +const buildDate = (year, month, day, time) => { + const adjustedMonth = month - 1; + validateDayOfMonth(year, adjustedMonth, day); + return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, "hour", 0, 23), parseDateValue(time.minutes, "minute", 0, 59), parseDateValue(time.seconds, "seconds", 0, 60), parseMilliseconds(time.fractionalMilliseconds))); +}; +const parseTwoDigitYear = (value) => { + const thisYear = new Date().getUTCFullYear(); + const valueInThisCentury = Math.floor(thisYear / 100) * 100 + strictParseShort(stripLeadingZeroes(value)); + if (valueInThisCentury < thisYear) { + return valueInThisCentury + 100; + } + return valueInThisCentury; +}; +const FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1000; +const adjustRfc850Year = (input) => { + if (input.getTime() - new Date().getTime() > FIFTY_YEARS_IN_MILLIS) { + return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds())); + } + return input; +}; +const parseMonthByShortName = (value) => { + const monthIdx = MONTHS.indexOf(value); + if (monthIdx < 0) { + throw new TypeError(`Invalid month: ${value}`); + } + return monthIdx + 1; +}; +const DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; +const validateDayOfMonth = (year, month, day) => { + let maxDays = DAYS_IN_MONTH[month]; + if (month === 1 && isLeapYear(year)) { + maxDays = 29; + } + if (day > maxDays) { + throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`); + } +}; +const isLeapYear = (year) => { + return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); +}; +const parseDateValue = (value, type, lower, upper) => { + const dateVal = strictParseByte(stripLeadingZeroes(value)); + if (dateVal < lower || dateVal > upper) { + throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`); + } + return dateVal; +}; +const parseMilliseconds = (value) => { + if (value === null || value === undefined) { + return 0; + } + return strictParseFloat32("0." + value) * 1000; +}; +const parseOffsetToMilliseconds = (value) => { + const directionStr = value[0]; + let direction = 1; + if (directionStr == "+") { + direction = 1; + } + else if (directionStr == "-") { + direction = -1; + } + else { + throw new TypeError(`Offset direction, ${directionStr}, must be "+" or "-"`); + } + const hour = Number(value.substring(1, 3)); + const minute = Number(value.substring(4, 6)); + return direction * (hour * 60 + minute) * 60 * 1000; +}; +const stripLeadingZeroes = (value) => { + let idx = 0; + while (idx < value.length - 1 && value.charAt(idx) === "0") { + idx++; + } + if (idx === 0) { + return value; + } + return value.slice(idx); +}; + +const LazyJsonString = function LazyJsonString(val) { + const str = Object.assign(new String(val), { + deserializeJSON() { + return JSON.parse(String(val)); + }, + toString() { + return String(val); + }, + toJSON() { + return String(val); + }, + }); + return str; +}; +LazyJsonString.from = (object) => { + if (object && typeof object === "object" && (object instanceof LazyJsonString || "deserializeJSON" in object)) { + return object; + } + else if (typeof object === "string" || Object.getPrototypeOf(object) === String.prototype) { + return LazyJsonString(String(object)); + } + return LazyJsonString(JSON.stringify(object)); +}; +LazyJsonString.fromObject = LazyJsonString.from; + +function quoteHeader(part) { + if (part.includes(",") || part.includes('"')) { + part = `"${part.replace(/"/g, '\\"')}"`; + } + return part; +} + +const ddd = `(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`; +const mmm = `(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`; +const time = `(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`; +const date = `(\\d?\\d)`; +const year = `(\\d{4})`; +const RFC3339_WITH_OFFSET = new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/); +const IMF_FIXDATE = new RegExp(`^${ddd}, ${date} ${mmm} ${year} ${time} GMT$`); +const RFC_850_DATE = new RegExp(`^${ddd}, ${date}-${mmm}-(\\d\\d) ${time} GMT$`); +const ASC_TIME = new RegExp(`^${ddd} ${mmm} ( [1-9]|\\d\\d) ${time} ${year}$`); +const months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; +const _parseEpochTimestamp = (value) => { + if (value == null) { + return void 0; + } + let num = NaN; + if (typeof value === "number") { + num = value; + } + else if (typeof value === "string") { + if (!/^-?\d*\.?\d+$/.test(value)) { + throw new TypeError(`parseEpochTimestamp - numeric string invalid.`); + } + num = Number.parseFloat(value); + } + else if (typeof value === "object" && value.tag === 1) { + num = value.value; + } + if (isNaN(num) || Math.abs(num) === Infinity) { + throw new TypeError("Epoch timestamps must be valid finite numbers."); + } + return new Date(Math.round(num * 1000)); +}; +const _parseRfc3339DateTimeWithOffset = (value) => { + if (value == null) { + return void 0; + } + if (typeof value !== "string") { + throw new TypeError("RFC3339 timestamps must be strings"); + } + const matches = RFC3339_WITH_OFFSET.exec(value); + if (!matches) { + throw new TypeError(`Invalid RFC3339 timestamp format ${value}`); + } + const [, yearStr, monthStr, dayStr, hours, minutes, seconds, , ms, offsetStr] = matches; + range(monthStr, 1, 12); + range(dayStr, 1, 31); + range(hours, 0, 23); + range(minutes, 0, 59); + range(seconds, 0, 60); + const date = new Date(Date.UTC(Number(yearStr), Number(monthStr) - 1, Number(dayStr), Number(hours), Number(minutes), Number(seconds), Number(ms) ? Math.round(parseFloat(`0.${ms}`) * 1000) : 0)); + date.setUTCFullYear(Number(yearStr)); + if (offsetStr.toUpperCase() != "Z") { + const [, sign, offsetH, offsetM] = /([+-])(\d\d):(\d\d)/.exec(offsetStr) || [void 0, "+", 0, 0]; + const scalar = sign === "-" ? 1 : -1; + date.setTime(date.getTime() + scalar * (Number(offsetH) * 60 * 60 * 1000 + Number(offsetM) * 60 * 1000)); + } + return date; +}; +const _parseRfc7231DateTime = (value) => { + if (value == null) { + return void 0; + } + if (typeof value !== "string") { + throw new TypeError("RFC7231 timestamps must be strings."); + } + let day; + let month; + let year; + let hour; + let minute; + let second; + let fraction; + let matches; + if ((matches = IMF_FIXDATE.exec(value))) { + [, day, month, year, hour, minute, second, fraction] = matches; + } + else if ((matches = RFC_850_DATE.exec(value))) { + [, day, month, year, hour, minute, second, fraction] = matches; + year = (Number(year) + 1900).toString(); + } + else if ((matches = ASC_TIME.exec(value))) { + [, month, day, hour, minute, second, fraction, year] = matches; + } + if (year && second) { + const timestamp = Date.UTC(Number(year), months.indexOf(month), Number(day), Number(hour), Number(minute), Number(second), fraction ? Math.round(parseFloat(`0.${fraction}`) * 1000) : 0); + range(day, 1, 31); + range(hour, 0, 23); + range(minute, 0, 59); + range(second, 0, 60); + const date = new Date(timestamp); + date.setUTCFullYear(Number(year)); + return date; + } + throw new TypeError(`Invalid RFC7231 date-time value ${value}.`); +}; +function range(v, min, max) { + const _v = Number(v); + if (_v < min || _v > max) { + throw new Error(`Value ${_v} out of range [${min}, ${max}]`); + } +} + +function splitEvery(value, delimiter, numDelimiters) { + if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { + throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery."); + } + const segments = value.split(delimiter); + if (numDelimiters === 1) { + return segments; + } + const compoundSegments = []; + let currentSegment = ""; + for (let i = 0; i < segments.length; i++) { + if (currentSegment === "") { + currentSegment = segments[i]; + } + else { + currentSegment += delimiter + segments[i]; + } + if ((i + 1) % numDelimiters === 0) { + compoundSegments.push(currentSegment); + currentSegment = ""; + } + } + if (currentSegment !== "") { + compoundSegments.push(currentSegment); + } + return compoundSegments; +} + +const splitHeader = (value) => { + const z = value.length; + const values = []; + let withinQuotes = false; + let prevChar = undefined; + let anchor = 0; + for (let i = 0; i < z; ++i) { + const char = value[i]; + switch (char) { + case `"`: + if (prevChar !== "\\") { + withinQuotes = !withinQuotes; + } + break; + case ",": + if (!withinQuotes) { + values.push(value.slice(anchor, i)); + anchor = i + 1; + } + break; + } + prevChar = char; + } + values.push(value.slice(anchor)); + return values.map((v) => { + v = v.trim(); + const z = v.length; + if (z < 2) { + return v; + } + if (v[0] === `"` && v[z - 1] === `"`) { + v = v.slice(1, z - 1); + } + return v.replace(/\\"/g, '"'); + }); +}; + +const format = /^-?\d*(\.\d+)?$/; +class NumericValue { + string; + type; + constructor(string, type) { + this.string = string; + this.type = type; + if (!format.test(string)) { + throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`); + } + } + toString() { + return this.string; + } + static [Symbol.hasInstance](object) { + if (!object || typeof object !== "object") { + return false; + } + const _nv = object; + return NumericValue.prototype.isPrototypeOf(object) || (_nv.type === "bigDecimal" && format.test(_nv.string)); + } +} +function nv(input) { + return new NumericValue(String(input), "bigDecimal"); +} + +const SHORT_TO_HEX = {}; +const HEX_TO_SHORT = {}; +for (let i = 0; i < 256; i++) { + let encodedByte = i.toString(16).toLowerCase(); + if (encodedByte.length === 1) { + encodedByte = `0${encodedByte}`; + } + SHORT_TO_HEX[i] = encodedByte; + HEX_TO_SHORT[encodedByte] = i; +} +function fromHex(encoded) { + if (encoded.length % 2 !== 0) { + throw new Error("Hex encoded strings must have an even number length"); + } + const out = new Uint8Array(encoded.length / 2); + for (let i = 0; i < encoded.length; i += 2) { + const encodedByte = encoded.slice(i, i + 2).toLowerCase(); + if (encodedByte in HEX_TO_SHORT) { + out[i / 2] = HEX_TO_SHORT[encodedByte]; + } + else { + throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`); + } + } + return out; +} +function toHex(bytes) { + let out = ""; + for (let i = 0; i < bytes.byteLength; i++) { + out += SHORT_TO_HEX[bytes[i]]; + } + return out; +} + +const calculateBodyLength = (body) => { + if (!body) { + return 0; + } + if (typeof body === "string") { + return Buffer.byteLength(body); + } + else if (typeof body.byteLength === "number") { + return body.byteLength; + } + else if (typeof body.size === "number") { + return body.size; + } + else if (typeof body.start === "number" && typeof body.end === "number") { + return body.end + 1 - body.start; + } + else if (body instanceof ReadStream) { + if (body.path != null) { + return lstatSync(body.path).size; + } + else if (typeof body.fd === "number") { + return fstatSync(body.fd).size; + } + } + throw new Error(`Body Length computation failed for ${body}`); +}; + +const toUint8Array = (data) => { + if (data instanceof Uint8Array) { + return data; + } + if (typeof data === "string") { + return fromUtf8$1(data); + } + if (ArrayBuffer.isView(data)) { + return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); + } + return new Uint8Array(data); +}; + +function concatBytes(arrays, length) { + if (length === undefined) { + length = 0; + for (const bytes of arrays) { + length += bytes.byteLength; + } + } + const result = new Uint8Array(length); + let offset = 0; + for (const buf of arrays) { + result.set(buf, offset); + offset += buf.byteLength; + } + return result; +} + +const deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => { + const { response } = await next(args); + try { + const parsed = await deserializer(response, options); + return { + response, + output: parsed, + }; + } + catch (error) { + Object.defineProperty(error, "$response", { + value: response, + enumerable: false, + writable: false, + configurable: false, + }); + if (!("$metadata" in error)) { + const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`; + try { + error.message += "\n " + hint; + } + catch (ignored) { + if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") { + console.warn(hint); + } + else { + context.logger?.warn?.(hint); + } + } + if (typeof error.$responseBodyText !== "undefined") { + if (error.$response) { + error.$response.body = error.$responseBodyText; + } + } + try { + if (HttpResponse.isInstance(response)) { + const { headers = {} } = response; + const headerEntries = Object.entries(headers); + error.$metadata = { + httpStatusCode: response.statusCode, + requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries), + extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries), + cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries), + }; + } + } + catch (ignored) { + } + } + throw error; + } +}; +const findHeader = (pattern, headers) => { + return (headers.find(([k]) => { + return k.match(pattern); + }) || [void 0, void 0])[1]; +}; + +const serializerMiddleware = (options, serializer) => (next, context) => async (args) => { + const endpointConfig = options; + const endpoint = context.endpointV2 + ? async () => toEndpointV1(context.endpointV2) + : endpointConfig.endpoint; + if (!endpoint) { + throw new Error("No valid endpoint provider available."); + } + const request = await serializer(args.input, { ...options, endpoint }); + return next({ + ...args, + request, + }); +}; + +const deserializerMiddlewareOption = { + name: "deserializerMiddleware", + step: "deserialize", + tags: ["DESERIALIZER"], + override: true, +}; +const serializerMiddlewareOption = { + name: "serializerMiddleware", + step: "serialize", + tags: ["SERIALIZER"], + override: true, +}; +function getSerdePlugin(config, serializer, deserializer) { + return { + applyToStack: (commandStack) => { + commandStack.add(deserializerMiddleware(config, deserializer), deserializerMiddlewareOption); + commandStack.add(serializerMiddleware(config, serializer), serializerMiddlewareOption); + }, + }; +} + +class Hash { + algorithmIdentifier; + secret; + hash; + constructor(algorithmIdentifier, secret) { + this.algorithmIdentifier = algorithmIdentifier; + this.secret = secret; + this.reset(); + } + update(toHash, encoding) { + this.hash.update(toUint8Array(castSourceData(toHash, encoding))); + } + digest() { + return Promise.resolve(this.hash.digest()); + } + reset() { + this.hash = this.secret + ? createHmac(this.algorithmIdentifier, castSourceData(this.secret)) + : createHash(this.algorithmIdentifier); + } +} +function castSourceData(toCast, encoding) { + if (Buffer.isBuffer(toCast)) { + return toCast; + } + if (typeof toCast === "string") { + return fromString(toCast, encoding); + } + if (ArrayBuffer.isView(toCast)) { + return fromArrayBuffer(toCast.buffer, toCast.byteOffset, toCast.byteLength); + } + return fromArrayBuffer(toCast); +} + +let ChecksumStream$1 = class ChecksumStream extends Readable { + expectedChecksum; + checksumSourceLocation; + checksum; + source; + base64Encoder; + constructor({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }) { + super(); + if (typeof source.pipe !== "function") { + throw new Error(`@smithy/util-stream: unsupported source type ${source?.constructor?.name ?? source} in ChecksumStream.`); + } + this.source = source; + this.base64Encoder = base64Encoder ?? toBase64$1; + this.expectedChecksum = expectedChecksum; + this.checksum = checksum; + this.checksumSourceLocation = checksumSourceLocation; + this.source.on("data", this.onSourceData); + this.source.on("end", this.onSourceEnd); + this.source.on("error", this.onSourceError); + this.source.on("close", this.onSourceClose); + this.source.pause(); + } + onSourceData = (chunk) => { + if (this.destroyed) { + return; + } + try { + this.checksum.update(chunk); + } + catch (e) { + this.destroy(e); + return; + } + if (!this.push(chunk)) { + this.source.pause(); + } + }; + onSourceEnd = async () => { + if (this.destroyed) { + return; + } + try { + const digest = await this.checksum.digest(); + const received = this.base64Encoder(digest); + if (this.expectedChecksum !== received) { + this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${received}"` + + ` in response header "${this.checksumSourceLocation}".`)); + return; + } + } + catch (e) { + this.destroy(e); + return; + } + this.push(null); + }; + onSourceError = (error) => { + this.destroy(error); + }; + onSourceClose = () => { + if (!this.destroyed && !this.source.readableEnded) { + this.destroy(new Error("Connection lost or stream closed before all data was received.")); + } + }; + _read(_size) { + this.source.resume(); + } + _destroy(error, callback) { + this.source?.removeListener("data", this.onSourceData); + this.source?.removeListener("end", this.onSourceEnd); + this.source?.removeListener("error", this.onSourceError); + this.source?.removeListener("close", this.onSourceClose); + this.source?.destroy(); + callback(error); + } +}; + +const isReadableStream = (stream) => typeof ReadableStream === "function" && + (stream?.constructor?.name === ReadableStream.name || stream instanceof ReadableStream); +const isBlob = (blob) => { + return typeof Blob === "function" && (blob?.constructor?.name === Blob.name || blob instanceof Blob); +}; + +const fromUtf8 = (input) => new TextEncoder().encode(input); + +const chars = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`; +Object.entries(chars).reduce((acc, [i, c]) => { + acc[c] = Number(i); + return acc; +}, {}); +const alphabetByValue = chars.split(""); +const bitsPerLetter = 6; +const bitsPerByte = 8; +const maxLetterValue = 0b111111; + +function toBase64(_input) { + let input; + if (typeof _input === "string") { + input = fromUtf8(_input); + } + else { + input = _input; + } + const isArrayLike = typeof input === "object" && typeof input.length === "number"; + const isUint8Array = typeof input === "object" && + typeof input.byteOffset === "number" && + typeof input.byteLength === "number"; + if (!isArrayLike && !isUint8Array) { + throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array."); + } + let str = ""; + for (let i = 0; i < input.length; i += 3) { + let bits = 0; + let bitLength = 0; + for (let j = i, limit = Math.min(i + 3, input.length); j < limit; j++) { + bits |= input[j] << ((limit - j - 1) * bitsPerByte); + bitLength += bitsPerByte; + } + const bitClusterCount = Math.ceil(bitLength / bitsPerLetter); + bits <<= bitClusterCount * bitsPerLetter - bitLength; + for (let k = 1; k <= bitClusterCount; k++) { + const offset = (bitClusterCount - k) * bitsPerLetter; + str += alphabetByValue[(bits & (maxLetterValue << offset)) >> offset]; + } + str += "==".slice(0, 4 - bitClusterCount); + } + return str; +} + +const ReadableStreamRef = typeof ReadableStream === "function" ? ReadableStream : function () { }; +class ChecksumStream extends ReadableStreamRef { +} + +const createChecksumStream$1 = ({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }) => { + if (!isReadableStream(source)) { + throw new Error(`@smithy/util-stream: unsupported source type ${source?.constructor?.name ?? source} in ChecksumStream.`); + } + const encoder = base64Encoder ?? toBase64; + if (typeof TransformStream !== "function") { + throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream."); + } + const transform = new TransformStream({ + start() { }, + async transform(chunk, controller) { + checksum.update(chunk); + controller.enqueue(chunk); + }, + async flush(controller) { + const digest = await checksum.digest(); + const received = encoder(digest); + if (expectedChecksum !== received) { + const error = new Error(`Checksum mismatch: expected "${expectedChecksum}" but received "${received}"` + + ` in response header "${checksumSourceLocation}".`); + controller.error(error); + } + else { + controller.terminate(); + } + }, + }); + source.pipeThrough(transform); + const readable = transform.readable; + Object.setPrototypeOf(readable, ChecksumStream.prototype); + return readable; +}; + +function createChecksumStream(init) { + if (typeof ReadableStream === "function" && isReadableStream(init.source)) { + return createChecksumStream$1(init); + } + return new ChecksumStream$1(init); +} + +class ByteArrayCollector { + allocByteArray; + byteLength = 0; + byteArrays = []; + constructor(allocByteArray) { + this.allocByteArray = allocByteArray; + } + push(byteArray) { + this.byteArrays.push(byteArray); + this.byteLength += byteArray.byteLength; + } + flush() { + if (this.byteArrays.length === 1) { + const bytes = this.byteArrays[0]; + this.reset(); + return bytes; + } + const aggregation = this.allocByteArray(this.byteLength); + let cursor = 0; + for (let i = 0; i < this.byteArrays.length; ++i) { + const bytes = this.byteArrays[i]; + aggregation.set(bytes, cursor); + cursor += bytes.byteLength; + } + this.reset(); + return aggregation; + } + reset() { + this.byteArrays = []; + this.byteLength = 0; + } +} + +function createBufferedReadableStream(upstream, size, logger) { + const reader = upstream.getReader(); + let streamBufferingLoggedWarning = false; + let bytesSeen = 0; + const buffers = ["", new ByteArrayCollector((size) => new Uint8Array(size))]; + let mode = -1; + const pull = async (controller) => { + const { value, done } = await reader.read(); + const chunk = value; + if (done) { + if (mode !== -1) { + const remainder = flush(buffers, mode); + if (sizeOf(remainder) > 0) { + controller.enqueue(remainder); + } + } + controller.close(); + } + else { + const chunkMode = modeOf(chunk, false); + if (mode !== chunkMode) { + if (mode >= 0) { + controller.enqueue(flush(buffers, mode)); + } + mode = chunkMode; + } + if (mode === -1) { + controller.enqueue(chunk); + return; + } + const chunkSize = sizeOf(chunk); + bytesSeen += chunkSize; + const bufferSize = sizeOf(buffers[mode]); + if (chunkSize >= size && bufferSize === 0) { + controller.enqueue(chunk); + } + else { + const newSize = merge(buffers, mode, chunk); + if (!streamBufferingLoggedWarning && bytesSeen > size * 2) { + streamBufferingLoggedWarning = true; + logger?.warn(`@smithy/util-stream - stream chunk size ${chunkSize} is below threshold of ${size}, automatically buffering.`); + } + if (newSize >= size) { + controller.enqueue(flush(buffers, mode)); + } + else { + await pull(controller); + } + } + } + }; + return new ReadableStream({ + pull, + }); +} +function merge(buffers, mode, chunk) { + switch (mode) { + case 0: + buffers[0] += chunk; + return sizeOf(buffers[0]); + case 1: + case 2: + buffers[mode].push(chunk); + return sizeOf(buffers[mode]); + } +} +function flush(buffers, mode) { + switch (mode) { + case 0: + const s = buffers[0]; + buffers[0] = ""; + return s; + case 1: + case 2: + return buffers[mode].flush(); + } + throw new Error(`@smithy/util-stream - invalid index ${mode} given to flush()`); +} +function sizeOf(chunk) { + return chunk?.byteLength ?? chunk?.length ?? 0; +} +function modeOf(chunk, allowBuffer = true) { + if (allowBuffer && typeof Buffer !== "undefined" && chunk instanceof Buffer) { + return 2; + } + if (chunk instanceof Uint8Array) { + return 1; + } + if (typeof chunk === "string") { + return 0; + } + return -1; +} + +function createBufferedReadable(upstream, size, logger) { + if (isReadableStream(upstream)) { + return createBufferedReadableStream(upstream, size, logger); + } + const downstream = new Readable({ read() { } }); + let streamBufferingLoggedWarning = false; + let bytesSeen = 0; + const buffers = [ + "", + new ByteArrayCollector((size) => new Uint8Array(size)), + new ByteArrayCollector((size) => Buffer.from(new Uint8Array(size))), + ]; + let mode = -1; + upstream.on("data", (chunk) => { + const chunkMode = modeOf(chunk, true); + if (mode !== chunkMode) { + if (mode >= 0) { + downstream.push(flush(buffers, mode)); + } + mode = chunkMode; + } + if (mode === -1) { + downstream.push(chunk); + return; + } + const chunkSize = sizeOf(chunk); + bytesSeen += chunkSize; + const bufferSize = sizeOf(buffers[mode]); + if (chunkSize >= size && bufferSize === 0) { + downstream.push(chunk); + } + else { + const newSize = merge(buffers, mode, chunk); + if (!streamBufferingLoggedWarning && bytesSeen > size * 2) { + streamBufferingLoggedWarning = true; + logger?.warn(`@smithy/util-stream - stream chunk size ${chunkSize} is below threshold of ${size}, automatically buffering.`); + } + if (newSize >= size) { + downstream.push(flush(buffers, mode)); + } + } + }); + upstream.on("end", () => { + if (mode !== -1) { + const remainder = flush(buffers, mode); + if (sizeOf(remainder) > 0) { + downstream.push(remainder); + } + } + downstream.push(null); + }); + return downstream; +} + +const getAwsChunkedEncodingStream$1 = (readableStream, options) => { + const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options; + const checksumRequired = base64Encoder !== undefined && + bodyLengthChecker !== undefined && + checksumAlgorithmFn !== undefined && + checksumLocationName !== undefined && + streamHasher !== undefined; + const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined; + const reader = readableStream.getReader(); + return new ReadableStream({ + async pull(controller) { + const { value, done } = await reader.read(); + if (done) { + controller.enqueue(`0\r\n`); + if (checksumRequired) { + const checksum = base64Encoder(await digest); + controller.enqueue(`${checksumLocationName}:${checksum}\r\n`); + controller.enqueue(`\r\n`); + } + controller.close(); + } + else { + controller.enqueue(`${(bodyLengthChecker(value) || 0).toString(16)}\r\n${value}\r\n`); + } + }, + }); +}; + +function getAwsChunkedEncodingStream(stream, options) { + const readable = stream; + const readableStream = stream; + if (isReadableStream(readableStream)) { + return getAwsChunkedEncodingStream$1(readableStream, options); + } + const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options; + const checksumRequired = base64Encoder !== undefined && + checksumAlgorithmFn !== undefined && + checksumLocationName !== undefined && + streamHasher !== undefined; + const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readable) : undefined; + const awsChunkedEncodingStream = new Readable({ + read: () => { }, + }); + readable.on("data", (data) => { + const length = bodyLengthChecker(data) || 0; + if (length === 0) { + return; + } + awsChunkedEncodingStream.push(`${length.toString(16)}\r\n`); + awsChunkedEncodingStream.push(data); + awsChunkedEncodingStream.push("\r\n"); + }); + readable.on("end", async () => { + awsChunkedEncodingStream.push(`0\r\n`); + if (checksumRequired) { + const checksum = base64Encoder(await digest); + awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r\n`); + awsChunkedEncodingStream.push(`\r\n`); + } + awsChunkedEncodingStream.push(null); + }); + return awsChunkedEncodingStream; +} + +async function headStream$1(stream, bytes) { + let byteLengthCounter = 0; + const chunks = []; + const reader = stream.getReader(); + let isDone = false; + while (!isDone) { + const { done, value } = await reader.read(); + if (value) { + chunks.push(value); + byteLengthCounter += value?.byteLength ?? 0; + } + if (byteLengthCounter >= bytes) { + break; + } + isDone = done; + } + reader.releaseLock(); + const collected = new Uint8Array(Math.min(bytes, byteLengthCounter)); + let offset = 0; + for (const chunk of chunks) { + if (chunk.byteLength > collected.byteLength - offset) { + collected.set(chunk.subarray(0, collected.byteLength - offset), offset); + break; + } + else { + collected.set(chunk, offset); + } + offset += chunk.length; + } + return collected; +} + +const headStream = (stream, bytes) => { + if (isReadableStream(stream)) { + return headStream$1(stream, bytes); + } + return new Promise((resolve, reject) => { + const collector = new Collector$1(); + collector.limit = bytes; + stream.pipe(collector); + stream.on("error", (err) => { + collector.end(); + reject(err); + }); + collector.on("error", reject); + collector.on("finish", function () { + const bytes = concatBytes(this.buffers); + resolve(bytes); + }); + }); +}; +let Collector$1 = class Collector extends Writable { + buffers = []; + limit = Infinity; + bytesBuffered = 0; + _write(chunk, encoding, callback) { + this.buffers.push(chunk); + this.bytesBuffered += chunk.byteLength ?? 0; + if (this.bytesBuffered >= this.limit) { + const excess = this.bytesBuffered - this.limit; + const tailBuffer = this.buffers[this.buffers.length - 1]; + this.buffers[this.buffers.length - 1] = tailBuffer.subarray(0, tailBuffer.byteLength - excess); + this.emit("finish"); + } + callback(); + } +}; + +const toUtf8 = (input) => { + if (typeof input === "string") { + return input; + } + if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") { + throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array."); + } + return new TextDecoder("utf-8").decode(input); +}; + +const streamCollector$1 = async (stream) => { + if (isBlob(stream)) { + return collectBlob(stream); + } + return collectReadableStream(stream); +}; +async function collectBlob(blob) { + return blob.arrayBuffer().then((ab) => new Uint8Array(ab)); +} +async function collectReadableStream(stream) { + const chunks = []; + const reader = stream.getReader(); + let length = 0; + while (true) { + const { done, value } = await reader.read(); + if (value) { + chunks.push(value); + length += value.length; + } + if (done) { + break; + } + } + return concatBytes(chunks, length); +} + +const ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED$1 = "The stream has already been transformed."; +const sdkStreamMixin$1 = (stream) => { + if (!isBlobInstance(stream) && !isReadableStream(stream)) { + const name = stream?.__proto__?.constructor?.name || stream; + throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${name}`); + } + let transformed = false; + const transformToByteArray = async () => { + if (transformed) { + throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED$1); + } + transformed = true; + return await streamCollector$1(stream); + }; + const blobToWebStream = (blob) => { + if (typeof blob.stream !== "function") { + throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\n" + + "If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body"); + } + return blob.stream(); + }; + return Object.assign(stream, { + transformToByteArray: transformToByteArray, + transformToString: async (encoding) => { + const buf = await transformToByteArray(); + if (encoding === "base64") { + return toBase64(buf); + } + else if (encoding === "hex") { + return toHex(buf); + } + else if (encoding === undefined || encoding === "utf8" || encoding === "utf-8") { + return toUtf8(buf); + } + else if (typeof TextDecoder === "function") { + return new TextDecoder(encoding).decode(buf); + } + else { + throw new Error("TextDecoder is not available, please make sure polyfill is provided."); + } + }, + transformToWebStream: () => { + if (transformed) { + throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED$1); + } + transformed = true; + if (isBlobInstance(stream)) { + return blobToWebStream(stream); + } + else if (isReadableStream(stream)) { + return stream; + } + else { + throw new Error(`Cannot transform payload to web stream, got ${stream}`); + } + }, + }); +}; +const isBlobInstance = (stream) => typeof Blob === "function" && stream instanceof Blob; + +const streamCollector = (stream) => { + if (isBlob(stream)) { + return collectBlob(stream); + } + if (isReadableStream(stream)) { + return collectReadableStream(stream); + } + return new Promise((resolve, reject) => { + const collector = new Collector(); + const nodeStream = stream; + nodeStream.pipe(collector); + nodeStream.on("error", (err) => { + collector.end(); + reject(err); + }); + collector.on("error", reject); + collector.on("finish", function () { + const bytes = concatBytes(this.bufferedBytes); + resolve(bytes); + }); + }); +}; +class Collector extends Writable { + bufferedBytes = []; + _write(chunk, encoding, callback) { + this.bufferedBytes.push(chunk); + callback(); + } +} + +const ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed."; +const sdkStreamMixin = (stream) => { + if (!(stream instanceof Readable)) { + try { + return sdkStreamMixin$1(stream); + } + catch (ignored) { + const name = stream?.__proto__?.constructor?.name || stream; + throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${name}`); + } + } + let transformed = false; + const transformToByteArray = async () => { + if (transformed) { + throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED); + } + transformed = true; + return await streamCollector(stream); + }; + return Object.assign(stream, { + transformToByteArray, + transformToString: async (encoding) => { + const buf = await transformToByteArray(); + if (encoding === undefined || Buffer.isEncoding(encoding)) { + return fromArrayBuffer(buf.buffer, buf.byteOffset, buf.byteLength).toString(encoding); + } + else { + const decoder = new TextDecoder(encoding); + return decoder.decode(buf); + } + }, + transformToWebStream: () => { + if (transformed) { + throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED); + } + if (stream.readableFlowing !== null) { + throw new Error("The stream has been consumed by other callbacks."); + } + if (typeof Readable.toWeb !== "function") { + throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available."); + } + transformed = true; + return Readable.toWeb(stream); + }, + }); +}; + +async function splitStream$1(stream) { + if (typeof stream.stream === "function") { + stream = stream.stream(); + } + const readableStream = stream; + return readableStream.tee(); +} + +async function splitStream(stream) { + if (isReadableStream(stream) || isBlob(stream)) { + return splitStream$1(stream); + } + const stream1 = new PassThrough(); + const stream2 = new PassThrough(); + stream.pipe(stream1); + stream.pipe(stream2); + return [stream1, stream2]; +} + +class Uint8ArrayBlobAdapter extends bindUint8ArrayBlobAdapter(toUtf8$1, fromUtf8$1, toBase64$1, fromBase64) { +} +const _getRandomValues = getRandomValues; +const v4 = bindV4(_getRandomValues); +const generateIdempotencyToken = v4; + +exports.ChecksumStream = ChecksumStream$1; +exports.Hash = Hash; +exports.LazyJsonString = LazyJsonString; +exports.NumericValue = NumericValue; +exports.Uint8ArrayBlobAdapter = Uint8ArrayBlobAdapter; +exports._parseEpochTimestamp = _parseEpochTimestamp; +exports._parseRfc3339DateTimeWithOffset = _parseRfc3339DateTimeWithOffset; +exports._parseRfc7231DateTime = _parseRfc7231DateTime; +exports.calculateBodyLength = calculateBodyLength; +exports.concatBytes = concatBytes; +exports.copyDocumentWithTransform = copyDocumentWithTransform; +exports.createBufferedReadable = createBufferedReadable; +exports.createChecksumStream = createChecksumStream; +exports.dateToUtcString = dateToUtcString; +exports.deserializerMiddleware = deserializerMiddleware; +exports.deserializerMiddlewareOption = deserializerMiddlewareOption; +exports.expectBoolean = expectBoolean; +exports.expectByte = expectByte; +exports.expectFloat32 = expectFloat32; +exports.expectInt = expectInt; +exports.expectInt32 = expectInt32; +exports.expectLong = expectLong; +exports.expectNonNull = expectNonNull; +exports.expectNumber = expectNumber; +exports.expectObject = expectObject; +exports.expectShort = expectShort; +exports.expectString = expectString; +exports.expectUnion = expectUnion; +exports.fromArrayBuffer = fromArrayBuffer; +exports.fromBase64 = fromBase64; +exports.fromHex = fromHex; +exports.fromString = fromString; +exports.fromUtf8 = fromUtf8$1; +exports.generateIdempotencyToken = generateIdempotencyToken; +exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream; +exports.getSerdePlugin = getSerdePlugin; +exports.handleFloat = handleFloat; +exports.headStream = headStream; +exports.isArrayBuffer = isArrayBuffer; +exports.isBlob = isBlob; +exports.isReadableStream = isReadableStream; +exports.limitedParseDouble = limitedParseDouble; +exports.limitedParseFloat = limitedParseFloat; +exports.limitedParseFloat32 = limitedParseFloat32; +exports.logger = logger; +exports.nv = nv; +exports.parseBoolean = parseBoolean; +exports.parseEpochTimestamp = parseEpochTimestamp; +exports.parseRfc3339DateTime = parseRfc3339DateTime; +exports.parseRfc3339DateTimeWithOffset = parseRfc3339DateTimeWithOffset; +exports.parseRfc7231DateTime = parseRfc7231DateTime; +exports.quoteHeader = quoteHeader; +exports.sdkStreamMixin = sdkStreamMixin; +exports.serializerMiddleware = serializerMiddleware; +exports.serializerMiddlewareOption = serializerMiddlewareOption; +exports.splitEvery = splitEvery; +exports.splitHeader = splitHeader; +exports.splitStream = splitStream; +exports.streamCollector = streamCollector; +exports.strictParseByte = strictParseByte; +exports.strictParseDouble = strictParseDouble; +exports.strictParseFloat = strictParseFloat; +exports.strictParseFloat32 = strictParseFloat32; +exports.strictParseInt = strictParseInt; +exports.strictParseInt32 = strictParseInt32; +exports.strictParseLong = strictParseLong; +exports.strictParseShort = strictParseShort; +exports.toBase64 = toBase64$1; +exports.toHex = toHex; +exports.toUint8Array = toUint8Array; +exports.toUtf8 = toUtf8$1; +exports.v4 = v4; + + +/***/ }), + +/***/ 34534: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { SMITHY_CONTEXT_KEY } = __nccwpck_require__(90690); + +const getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {}); + +class HttpRequest { + method; + protocol; + hostname; + port; + path; + query; + headers; + username; + password; + fragment; + body; + constructor(options) { + this.method = options.method || "GET"; + this.hostname = options.hostname || "localhost"; + this.port = options.port; + this.query = options.query || {}; + this.headers = options.headers || {}; + this.body = options.body; + this.protocol = options.protocol + ? options.protocol.slice(-1) !== ":" + ? `${options.protocol}:` + : options.protocol + : "https:"; + this.path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/"; + this.username = options.username; + this.password = options.password; + this.fragment = options.fragment; + } + static clone(request) { + const cloned = new HttpRequest({ + ...request, + headers: { ...request.headers }, + }); + if (cloned.query) { + cloned.query = cloneQuery(cloned.query); + } + return cloned; + } + static isInstance(request) { + if (!request) { + return false; + } + const req = request; + return ("method" in req && + "protocol" in req && + "hostname" in req && + "path" in req && + typeof req["query"] === "object" && + typeof req["headers"] === "object"); + } + clone() { + return HttpRequest.clone(this); + } +} +function cloneQuery(query) { + return Object.keys(query).reduce((carry, paramName) => { + const param = query[paramName]; + return { + ...carry, + [paramName]: Array.isArray(param) ? [...param] : param, + }; + }, {}); +} + +class HttpResponse { + statusCode; + reason; + headers; + body; + constructor(options) { + this.statusCode = options.statusCode; + this.reason = options.reason; + this.headers = options.headers || {}; + this.body = options.body; + } + static isInstance(response) { + if (!response) + return false; + const resp = response; + return typeof resp.statusCode === "number" && typeof resp.headers === "object"; + } +} + +const VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`); +const isValidHostLabel = (value, allowSubDomains = false) => { + if (!allowSubDomains) { + return VALID_HOST_LABEL_REGEX.test(value); + } + const labels = value.split("."); + for (const label of labels) { + if (!isValidHostLabel(label)) { + return false; + } + } + return true; +}; + +function isValidHostname(hostname) { + const hostPattern = /^[a-z0-9][a-z0-9.-]*[a-z0-9]$/; + return hostPattern.test(hostname); +} + +const normalizeProvider = (input) => { + if (typeof input === "function") + return input; + const promisified = Promise.resolve(input); + return () => promisified; +}; + +function parseQueryString(querystring) { + const query = {}; + querystring = querystring.replace(/^\?/, ""); + if (querystring) { + for (const pair of querystring.split("&")) { + let [key, value = null] = pair.split("="); + key = decodeURIComponent(key); + if (value) { + value = decodeURIComponent(value); + } + if (!(key in query)) { + query[key] = value; + } + else if (Array.isArray(query[key])) { + query[key].push(value); + } + else { + query[key] = [query[key], value]; + } + } + } + return query; +} + +const parseUrl = (url) => { + if (typeof url === "string") { + return parseUrl(new URL(url)); + } + const { hostname, pathname, port, protocol, search } = url; + let query; + if (search) { + query = parseQueryString(search); + } + return { + hostname, + port: port ? parseInt(port) : undefined, + protocol, + path: pathname, + query, + }; +}; + +const toEndpointV1 = (endpoint) => { + if (typeof endpoint === "object") { + if ("url" in endpoint) { + const v1Endpoint = parseUrl(endpoint.url); + if (endpoint.headers) { + v1Endpoint.headers = {}; + for (const name in endpoint.headers) { + v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", "); + } + } + return v1Endpoint; + } + return endpoint; + } + return parseUrl(endpoint); +}; + +exports.HttpRequest = HttpRequest; +exports.HttpResponse = HttpResponse; +exports.getSmithyContext = getSmithyContext; +exports.isValidHostLabel = isValidHostLabel; +exports.isValidHostname = isValidHostname; +exports.normalizeProvider = normalizeProvider; +exports.parseQueryString = parseQueryString; +exports.parseUrl = parseUrl; +exports.toEndpointV1 = toEndpointV1; + + +/***/ }), + +/***/ 40566: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { ProviderError, CredentialsProviderError, loadConfig } = __nccwpck_require__(47291); +const node_http = __nccwpck_require__(37067); +const { parseUrl } = __nccwpck_require__(93422); + +const isImdsCredentials = (arg) => Boolean(arg) && + typeof arg === "object" && + typeof arg.AccessKeyId === "string" && + typeof arg.SecretAccessKey === "string" && + typeof arg.Token === "string" && + typeof arg.Expiration === "string"; +const fromImdsCredentials = (creds) => ({ + accessKeyId: creds.AccessKeyId, + secretAccessKey: creds.SecretAccessKey, + sessionToken: creds.Token, + expiration: new Date(creds.Expiration), + ...(creds.AccountId && { accountId: creds.AccountId }), +}); + +const DEFAULT_TIMEOUT = 1000; +const DEFAULT_MAX_RETRIES = 0; +const providerConfigFromInit = ({ maxRetries = DEFAULT_MAX_RETRIES, timeout = DEFAULT_TIMEOUT, }) => ({ maxRetries, timeout }); + +function httpRequest(options) { + return new Promise((resolve, reject) => { + const req = node_http.request({ + method: "GET", + ...options, + hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1"), + }); + req.on("error", (err) => { + reject(Object.assign(new ProviderError("Unable to connect to instance metadata service"), err)); + req.destroy(); + }); + req.on("timeout", () => { + reject(new ProviderError("TimeoutError from instance metadata service")); + req.destroy(); + }); + req.on("response", (res) => { + const { statusCode = 400 } = res; + if (statusCode < 200 || 300 <= statusCode) { + reject(Object.assign(new ProviderError("Error response received from instance metadata service"), { statusCode })); + req.destroy(); + } + const chunks = []; + res.on("data", (chunk) => { + chunks.push(chunk); + }); + res.on("end", () => { + resolve(Buffer.concat(chunks)); + req.destroy(); + }); + }); + req.end(); + }); +} + +const retry = (toRetry, maxRetries) => { + let promise = toRetry(); + for (let i = 0; i < maxRetries; i++) { + promise = promise.catch(toRetry); + } + return promise; +}; + +const ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; +const ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; +const ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; +const fromContainerMetadata = (init = {}) => { + const { timeout, maxRetries } = providerConfigFromInit(init); + return () => retry(async () => { + const requestOptions = await getCmdsUri({ logger: init.logger }); + const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions)); + if (!isImdsCredentials(credsResponse)) { + throw new CredentialsProviderError("Invalid response received from instance metadata service.", { + logger: init.logger, + }); + } + return fromImdsCredentials(credsResponse); + }, maxRetries); +}; +const requestFromEcsImds = async (timeout, options) => { + if (process.env[ENV_CMDS_AUTH_TOKEN]) { + options.headers = { + ...options.headers, + Authorization: process.env[ENV_CMDS_AUTH_TOKEN], + }; + } + const buffer = await httpRequest({ + ...options, + timeout, + }); + return buffer.toString(); +}; +const CMDS_IP = "169.254.170.2"; +const GREENGRASS_HOSTS = new Set(["localhost", "127.0.0.1"]); +const GREENGRASS_PROTOCOLS = new Set(["http:", "https:"]); +const getCmdsUri = async ({ logger }) => { + if (process.env[ENV_CMDS_RELATIVE_URI]) { + return { + hostname: CMDS_IP, + path: process.env[ENV_CMDS_RELATIVE_URI], + }; + } + if (process.env[ENV_CMDS_FULL_URI]) { + let parsed; + try { + parsed = new URL(process.env[ENV_CMDS_FULL_URI]); + } + catch { + throw new CredentialsProviderError(`${process.env[ENV_CMDS_FULL_URI]} is not a valid container metadata service URL`, { tryNextLink: false, logger }); + } + if (!parsed.hostname || !GREENGRASS_HOSTS.has(parsed.hostname)) { + throw new CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, { + tryNextLink: false, + logger, + }); + } + if (!parsed.protocol || !GREENGRASS_PROTOCOLS.has(parsed.protocol)) { + throw new CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, { + tryNextLink: false, + logger, + }); + } + return { + protocol: parsed.protocol, + hostname: parsed.hostname, + path: parsed.pathname + parsed.search, + port: parsed.port ? parseInt(parsed.port, 10) : undefined, + }; + } + throw new CredentialsProviderError("The container metadata credential provider cannot be used unless" + + ` the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment` + + " variable is set", { + tryNextLink: false, + logger, + }); +}; + +class InstanceMetadataV1FallbackError extends CredentialsProviderError { + tryNextLink; + name = "InstanceMetadataV1FallbackError"; + constructor(message, tryNextLink = true) { + super(message, tryNextLink); + this.tryNextLink = tryNextLink; + Object.setPrototypeOf(this, InstanceMetadataV1FallbackError.prototype); + } +} + +var Endpoint; +(function (Endpoint) { + Endpoint["IPv4"] = "http://169.254.169.254"; + Endpoint["IPv6"] = "http://[fd00:ec2::254]"; +})(Endpoint || (Endpoint = {})); + +const ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; +const CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; +const ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[ENV_ENDPOINT_NAME], + configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME], + default: undefined, +}; + +var EndpointMode; +(function (EndpointMode) { + EndpointMode["IPv4"] = "IPv4"; + EndpointMode["IPv6"] = "IPv6"; +})(EndpointMode || (EndpointMode = {})); + +const ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; +const CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; +const ENDPOINT_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[ENV_ENDPOINT_MODE_NAME], + configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME], + default: EndpointMode.IPv4, +}; + +const getInstanceMetadataEndpoint = async () => parseUrl((await getFromEndpointConfig()) || (await getFromEndpointModeConfig())); +const getFromEndpointConfig = async () => loadConfig(ENDPOINT_CONFIG_OPTIONS)(); +const getFromEndpointModeConfig = async () => { + const endpointMode = await loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS)(); + switch (endpointMode) { + case EndpointMode.IPv4: + return Endpoint.IPv4; + case EndpointMode.IPv6: + return Endpoint.IPv6; + default: + throw new Error(`Unsupported endpoint mode: ${endpointMode}.` + ` Select from ${Object.values(EndpointMode)}`); + } +}; + +const STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60; +const STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60; +const STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html"; +const getExtendedInstanceMetadataCredentials = (credentials, logger) => { + const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS); + const newExpiration = new Date(Date.now() + refreshInterval * 1000); + logger.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these " + + `credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: ` + + STATIC_STABILITY_DOC_URL); + const originalExpiration = credentials.originalExpiration ?? credentials.expiration; + return { + ...credentials, + ...(originalExpiration ? { originalExpiration } : {}), + expiration: newExpiration, + }; +}; + +const staticStabilityProvider = (provider, options = {}) => { + const logger = options?.logger || console; + let pastCredentials; + return async () => { + let credentials; + try { + credentials = await provider(); + if (credentials.expiration && credentials.expiration.getTime() < Date.now()) { + credentials = getExtendedInstanceMetadataCredentials(credentials, logger); + } + } + catch (e) { + if (pastCredentials) { + logger.warn("Credential renew failed: ", e); + credentials = getExtendedInstanceMetadataCredentials(pastCredentials, logger); + } + else { + throw e; + } + } + pastCredentials = credentials; + return credentials; + }; +}; + +const IMDS_PATH = "/latest/meta-data/iam/security-credentials/"; +const IMDS_TOKEN_PATH = "/latest/api/token"; +const AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED"; +const PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled"; +const X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token"; +const fromInstanceMetadata = (init = {}) => staticStabilityProvider(getInstanceMetadataProvider(init), { logger: init.logger }); +const getInstanceMetadataProvider = (init = {}) => { + let disableFetchToken = false; + const { logger, profile } = init; + const { timeout, maxRetries } = providerConfigFromInit(init); + const getCredentials = async (maxRetries, options) => { + const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null; + if (isImdsV1Fallback) { + let fallbackBlockedFromProfile = false; + let fallbackBlockedFromProcessEnv = false; + const configValue = await loadConfig({ + environmentVariableSelector: (env) => { + const envValue = env[AWS_EC2_METADATA_V1_DISABLED]; + fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false"; + if (envValue === undefined) { + throw new CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger }); + } + return fallbackBlockedFromProcessEnv; + }, + configFileSelector: (profile) => { + const profileValue = profile[PROFILE_AWS_EC2_METADATA_V1_DISABLED]; + fallbackBlockedFromProfile = !!profileValue && profileValue !== "false"; + return fallbackBlockedFromProfile; + }, + default: false, + }, { + profile, + })(); + if (init.ec2MetadataV1Disabled || configValue) { + const causes = []; + if (init.ec2MetadataV1Disabled) + causes.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"); + if (fallbackBlockedFromProfile) + causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`); + if (fallbackBlockedFromProcessEnv) + causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`); + throw new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(", ")}].`); + } + } + const imdsProfile = (await retry(async () => { + let profile; + try { + profile = await getProfile(options); + } + catch (err) { + if (err.statusCode === 401) { + disableFetchToken = false; + } + throw err; + } + return profile; + }, maxRetries)).trim(); + return retry(async () => { + let creds; + try { + creds = await getCredentialsFromProfile(imdsProfile, options, init); + } + catch (err) { + if (err.statusCode === 401) { + disableFetchToken = false; + } + throw err; + } + return creds; + }, maxRetries); + }; + return async () => { + const endpoint = await getInstanceMetadataEndpoint(); + if (disableFetchToken) { + logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)"); + return getCredentials(maxRetries, { ...endpoint, timeout }); + } + else { + let token; + try { + token = (await getMetadataToken({ ...endpoint, timeout })).toString(); + } + catch (error) { + if (error?.statusCode === 400) { + throw Object.assign(error, { + message: "EC2 Metadata token request returned error", + }); + } + else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) { + disableFetchToken = true; + } + logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)"); + return getCredentials(maxRetries, { ...endpoint, timeout }); + } + return getCredentials(maxRetries, { + ...endpoint, + headers: { + [X_AWS_EC2_METADATA_TOKEN]: token, + }, + timeout, + }); + } + }; +}; +const getMetadataToken = async (options) => httpRequest({ + ...options, + path: IMDS_TOKEN_PATH, + method: "PUT", + headers: { + "x-aws-ec2-metadata-token-ttl-seconds": "21600", + }, +}); +const getProfile = async (options) => (await httpRequest({ ...options, path: IMDS_PATH })).toString(); +const getCredentialsFromProfile = async (profile, options, init) => { + const credentialsResponse = JSON.parse((await httpRequest({ + ...options, + path: IMDS_PATH + profile, + })).toString()); + if (!isImdsCredentials(credentialsResponse)) { + throw new CredentialsProviderError("Invalid response received from instance metadata service.", { + logger: init.logger, + }); + } + return fromImdsCredentials(credentialsResponse); +}; + +exports.DEFAULT_MAX_RETRIES = DEFAULT_MAX_RETRIES; +exports.DEFAULT_TIMEOUT = DEFAULT_TIMEOUT; +exports.ENV_CMDS_AUTH_TOKEN = ENV_CMDS_AUTH_TOKEN; +exports.ENV_CMDS_FULL_URI = ENV_CMDS_FULL_URI; +exports.ENV_CMDS_RELATIVE_URI = ENV_CMDS_RELATIVE_URI; +exports.Endpoint = Endpoint; +exports.fromContainerMetadata = fromContainerMetadata; +exports.fromInstanceMetadata = fromInstanceMetadata; +exports.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; +exports.httpRequest = httpRequest; +exports.providerConfigFromInit = providerConfigFromInit; + + +/***/ }), + +/***/ 86130: +/***/ ((module) => { + +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/index.ts +var src_exports = {}; +__export(src_exports, { + isArrayBuffer: () => isArrayBuffer +}); +module.exports = __toCommonJS(src_exports); +var isArrayBuffer = /* @__PURE__ */ __name((arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]", "isArrayBuffer"); +// Annotate the CommonJS export names for ESM import in node: + +0 && (0); + + + +/***/ }), + +/***/ 61279: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { buildQueryString, HttpResponse } = __nccwpck_require__(93422); +const node_https = __nccwpck_require__(44708); +const { Readable } = __nccwpck_require__(57075); +const http2 = __nccwpck_require__(32467); +const { streamCollector } = __nccwpck_require__(92430); +exports.streamCollector = streamCollector; + +function buildAbortError(abortSignal) { + const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal + ? abortSignal.reason + : undefined; + if (reason) { + if (reason instanceof Error) { + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + abortError.cause = reason; + return abortError; + } + const abortError = new Error(String(reason)); + abortError.name = "AbortError"; + return abortError; + } + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + return abortError; +} + +const NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; + +const getTransformedHeaders = (headers) => { + const transformedHeaders = {}; + for (const name in headers) { + const headerValues = headers[name]; + transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues; + } + return transformedHeaders; +}; + +const timing = { + setTimeout: (cb, ms) => setTimeout(cb, ms), + clearTimeout: (timeoutId) => clearTimeout(timeoutId), +}; + +const DEFER_EVENT_LISTENER_TIME$2 = 1000; +const setConnectionTimeout = (request, reject, timeoutInMs = 0) => { + if (!timeoutInMs) { + return -1; + } + const registerTimeout = (offset) => { + const timeoutId = timing.setTimeout(() => { + request.destroy(); + reject(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${timeoutInMs} ms.`), { + name: "TimeoutError", + })); + }, timeoutInMs - offset); + const doWithSocket = (socket) => { + if (socket?.connecting) { + socket.on("connect", () => { + timing.clearTimeout(timeoutId); + }); + } + else { + timing.clearTimeout(timeoutId); + } + }; + if (request.socket) { + doWithSocket(request.socket); + } + else { + request.on("socket", doWithSocket); + } + }; + if (timeoutInMs < 2000) { + registerTimeout(0); + return 0; + } + return timing.setTimeout(registerTimeout.bind(null, DEFER_EVENT_LISTENER_TIME$2), DEFER_EVENT_LISTENER_TIME$2); +}; + +const setRequestTimeout = (req, reject, timeoutInMs = 0, throwOnRequestTimeout, logger) => { + if (timeoutInMs) { + return timing.setTimeout(() => { + let msg = `@smithy/node-http-handler - [${throwOnRequestTimeout ? "ERROR" : "WARN"}] a request has exceeded the configured ${timeoutInMs} ms requestTimeout.`; + if (throwOnRequestTimeout) { + const error = Object.assign(new Error(msg), { + name: "TimeoutError", + code: "ETIMEDOUT", + }); + req.destroy(error); + reject(error); + } + else { + msg += ` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`; + logger?.warn?.(msg); + } + }, timeoutInMs); + } + return -1; +}; + +const DEFER_EVENT_LISTENER_TIME$1 = 3000; +const setSocketKeepAlive = (request, { keepAlive, keepAliveMsecs }, deferTimeMs = DEFER_EVENT_LISTENER_TIME$1) => { + if (keepAlive !== true) { + return -1; + } + const registerListener = () => { + if (request.socket) { + request.socket.setKeepAlive(keepAlive, keepAliveMsecs || 0); + } + else { + request.on("socket", (socket) => { + socket.setKeepAlive(keepAlive, keepAliveMsecs || 0); + }); + } + }; + if (deferTimeMs === 0) { + registerListener(); + return 0; + } + return timing.setTimeout(registerListener, deferTimeMs); +}; + +const DEFER_EVENT_LISTENER_TIME = 3000; +const setSocketTimeout = (request, reject, timeoutInMs = 0) => { + const registerTimeout = (offset) => { + const timeout = timeoutInMs - offset; + const onTimeout = () => { + request.destroy(); + reject(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${timeoutInMs} ms of inactivity (configured by client requestHandler).`), { name: "TimeoutError" })); + }; + if (request.socket) { + request.socket.setTimeout(timeout, onTimeout); + request.on("close", () => request.socket?.removeListener("timeout", onTimeout)); + } + else { + request.setTimeout(timeout, onTimeout); + } + }; + if (0 < timeoutInMs && timeoutInMs < 6000) { + registerTimeout(0); + return 0; + } + return timing.setTimeout(registerTimeout.bind(null, timeoutInMs === 0 ? 0 : DEFER_EVENT_LISTENER_TIME), DEFER_EVENT_LISTENER_TIME); +}; + +const MIN_WAIT_TIME = 6_000; +async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME, externalAgent = false) { + const headers = request.headers; + const expect = headers ? headers.Expect || headers.expect : undefined; + let timeoutId = -1; + let sendBody = true; + if (!externalAgent && expect === "100-continue") { + sendBody = await Promise.race([ + new Promise((resolve) => { + timeoutId = Number(timing.setTimeout(() => resolve(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs))); + }), + new Promise((resolve) => { + httpRequest.on("continue", () => { + timing.clearTimeout(timeoutId); + resolve(true); + }); + httpRequest.on("response", () => { + timing.clearTimeout(timeoutId); + resolve(false); + }); + httpRequest.on("error", () => { + timing.clearTimeout(timeoutId); + resolve(false); + }); + }), + ]); + } + if (sendBody) { + writeBody(httpRequest, request.body); + } +} +function writeBody(httpRequest, body) { + if (body instanceof Readable) { + body.pipe(httpRequest); + return; + } + if (body) { + const isBuffer = Buffer.isBuffer(body); + const isString = typeof body === "string"; + if (isBuffer || isString) { + if (isBuffer && body.byteLength === 0) { + httpRequest.end(); + } + else { + httpRequest.end(body); + } + return; + } + const uint8 = body; + if (typeof uint8 === "object" && + uint8.buffer && + typeof uint8.byteOffset === "number" && + typeof uint8.byteLength === "number") { + httpRequest.end(Buffer.from(uint8.buffer, uint8.byteOffset, uint8.byteLength)); + return; + } + httpRequest.end(Buffer.from(body)); + return; + } + httpRequest.end(); +} + +const DEFAULT_REQUEST_TIMEOUT = 0; +let hAgent = undefined; +let hRequest = undefined; +class NodeHttpHandler { + config; + configProvider; + socketWarningTimestamp = 0; + externalAgent = false; + metadata = { handlerProtocol: "http/1.1" }; + static create(instanceOrOptions) { + if (typeof instanceOrOptions?.handle === "function") { + return instanceOrOptions; + } + return new NodeHttpHandler(instanceOrOptions); + } + static checkSocketUsage(agent, socketWarningTimestamp, logger = console) { + const { sockets, requests, maxSockets } = agent; + if (typeof maxSockets !== "number" || maxSockets === Infinity) { + return socketWarningTimestamp; + } + const interval = 15_000; + if (Date.now() - interval < socketWarningTimestamp) { + return socketWarningTimestamp; + } + if (sockets && requests) { + for (const origin in sockets) { + const socketsInUse = sockets[origin]?.length ?? 0; + const requestsEnqueued = requests[origin]?.length ?? 0; + if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) { + logger?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${socketsInUse} and ${requestsEnqueued} additional requests are enqueued. +See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html +or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`); + return Date.now(); + } + } + } + return socketWarningTimestamp; + } + constructor(options) { + this.configProvider = new Promise((resolve, reject) => { + if (typeof options === "function") { + options() + .then((_options) => { + resolve(this.resolveDefaultConfig(_options)); + }) + .catch(reject); + } + else { + resolve(this.resolveDefaultConfig(options)); + } + }); + } + destroy() { + this.config?.httpAgent?.destroy(); + this.config?.httpsAgent?.destroy(); + } + async handle(request, { abortSignal, requestTimeout } = {}) { + if (!this.config) { + this.config = await this.configProvider; + } + const config = this.config; + const isSSL = request.protocol === "https:"; + if (!isSSL && !this.config.httpAgent) { + this.config.httpAgent = await this.config.httpAgentProvider(); + } + return new Promise((_resolve, _reject) => { + let writeRequestBodyPromise = undefined; + let socketWarningTimeoutId = -1; + let connectionTimeoutId = -1; + let requestTimeoutId = -1; + let socketTimeoutId = -1; + let keepAliveTimeoutId = -1; + const clearTimeouts = () => { + timing.clearTimeout(socketWarningTimeoutId); + timing.clearTimeout(connectionTimeoutId); + timing.clearTimeout(requestTimeoutId); + timing.clearTimeout(socketTimeoutId); + timing.clearTimeout(keepAliveTimeoutId); + }; + const resolve = async (arg) => { + await writeRequestBodyPromise; + clearTimeouts(); + _resolve(arg); + }; + const reject = async (arg) => { + await writeRequestBodyPromise; + clearTimeouts(); + _reject(arg); + }; + if (abortSignal?.aborted) { + const abortError = buildAbortError(abortSignal); + reject(abortError); + return; + } + const headers = request.headers; + const expectContinue = headers ? (headers.Expect ?? headers.expect) === "100-continue" : false; + let agent = isSSL ? config.httpsAgent : config.httpAgent; + if (expectContinue && !this.externalAgent) { + agent = new (isSSL ? node_https.Agent : hAgent)({ + keepAlive: false, + maxSockets: Infinity, + }); + } + socketWarningTimeoutId = timing.setTimeout(() => { + this.socketWarningTimestamp = NodeHttpHandler.checkSocketUsage(agent, this.socketWarningTimestamp, config.logger); + }, config.socketAcquisitionWarningTimeout ?? (config.requestTimeout ?? 2000) + (config.connectionTimeout ?? 1000)); + const queryString = request.query ? buildQueryString(request.query) : ""; + let auth = undefined; + if (request.username != null || request.password != null) { + const username = request.username ?? ""; + const password = request.password ?? ""; + auth = `${username}:${password}`; + } + let path = request.path; + if (queryString) { + path += `?${queryString}`; + } + if (request.fragment) { + path += `#${request.fragment}`; + } + let hostname = request.hostname ?? ""; + if (hostname[0] === "[" && hostname.endsWith("]")) { + hostname = request.hostname.slice(1, -1); + } + else { + hostname = request.hostname; + } + const nodeHttpsOptions = { + headers: request.headers, + host: hostname, + method: request.method, + path, + port: request.port, + agent, + auth, + }; + const requestFunc = isSSL ? node_https.request : hRequest; + const req = requestFunc(nodeHttpsOptions, (res) => { + const httpResponse = new HttpResponse({ + statusCode: res.statusCode || -1, + reason: res.statusMessage, + headers: getTransformedHeaders(res.headers), + body: res, + }); + resolve({ response: httpResponse }); + }); + req.on("error", (err) => { + if (NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) { + reject(Object.assign(err, { name: "TimeoutError" })); + } + else { + reject(err); + } + }); + if (abortSignal) { + const onAbort = () => { + req.destroy(); + const abortError = buildAbortError(abortSignal); + reject(abortError); + }; + if (typeof abortSignal.addEventListener === "function") { + const signal = abortSignal; + signal.addEventListener("abort", onAbort, { once: true }); + req.once("close", () => signal.removeEventListener("abort", onAbort)); + } + else { + abortSignal.onabort = onAbort; + } + } + const effectiveRequestTimeout = requestTimeout ?? config.requestTimeout; + connectionTimeoutId = setConnectionTimeout(req, reject, config.connectionTimeout); + requestTimeoutId = setRequestTimeout(req, reject, effectiveRequestTimeout, config.throwOnRequestTimeout, config.logger ?? console); + socketTimeoutId = setSocketTimeout(req, reject, config.socketTimeout); + const httpAgent = nodeHttpsOptions.agent; + if (typeof httpAgent === "object" && "keepAlive" in httpAgent) { + keepAliveTimeoutId = setSocketKeepAlive(req, { + keepAlive: httpAgent.keepAlive, + keepAliveMsecs: httpAgent.keepAliveMsecs, + }); + } + writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout, this.externalAgent).catch((e) => { + clearTimeouts(); + return _reject(e); + }); + }); + } + updateHttpClientConfig(key, value) { + this.config = undefined; + this.configProvider = this.configProvider.then((config) => { + return { + ...config, + [key]: value, + }; + }); + } + httpHandlerConfigs() { + return this.config ?? {}; + } + resolveDefaultConfig(options) { + const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, logger, } = options || {}; + const keepAlive = true; + const maxSockets = 50; + return { + connectionTimeout, + requestTimeout, + socketTimeout, + socketAcquisitionWarningTimeout, + throwOnRequestTimeout, + httpAgentProvider: async () => { + const node_http = __nccwpck_require__(37067); + const { Agent, request } = node_http.default ?? node_http; + hRequest = request; + hAgent = Agent; + if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") { + this.externalAgent = true; + return httpAgent; + } + return new hAgent({ keepAlive, maxSockets, ...httpAgent }); + }, + httpsAgent: (() => { + if (httpsAgent instanceof node_https.Agent || typeof httpsAgent?.destroy === "function") { + this.externalAgent = true; + return httpsAgent; + } + return new node_https.Agent({ keepAlive, maxSockets, ...httpsAgent }); + })(), + logger, + }; + } +} + +const ids = new Uint16Array(1); +class ClientHttp2SessionRef { + id = ids[0]++; + total = 0; + max = 0; + session; + refs = 0; + constructor(session) { + session.unref(); + this.session = session; + } + retain() { + if (this.session.destroyed) { + throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session."); + } + this.refs += 1; + this.total += 1; + this.max = Math.max(this.refs, this.max); + this.session.ref(); + } + free() { + if (this.session.destroyed) { + return; + } + this.refs -= 1; + if (this.refs === 0) { + this.session.unref(); + } + if (this.refs < 0) { + throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement."); + } + } + deref() { + return this.session; + } + close() { + if (!this.session.closed) { + this.session.close(); + } + } + destroy() { + this.refs = 0; + if (!this.session.destroyed) { + this.session.destroy(); + } + } + useCount() { + return this.refs; + } +} + +class NodeHttp2ConnectionPool { + sessions = []; + maxConcurrency = 0; + constructor(sessions) { + this.sessions = (sessions ?? []).map((session) => new ClientHttp2SessionRef(session)); + } + poll() { + let cleanup = false; + for (const session of this.sessions) { + if (session.deref().destroyed) { + cleanup = true; + continue; + } + if (!this.maxConcurrency || session.useCount() < this.maxConcurrency) { + return session; + } + } + if (cleanup) { + for (const session of this.sessions) { + if (session.deref().destroyed) { + this.remove(session); + } + } + } + } + offerLast(ref) { + this.sessions.push(ref); + } + remove(ref) { + const ix = this.sessions.indexOf(ref); + if (ix > -1) { + this.sessions.splice(ix, 1); + } + } + [Symbol.iterator]() { + return this.sessions[Symbol.iterator](); + } + setMaxConcurrency(maxConcurrency) { + this.maxConcurrency = maxConcurrency; + } + destroy(ref) { + this.remove(ref); + ref.destroy(); + } +} + +class NodeHttp2ConnectionManager { + config; + connectOptions; + connectionPools = new Map(); + constructor(config) { + this.config = config; + if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) { + throw new RangeError("maxConcurrency must be greater than zero."); + } + } + lease(requestContext, connectionConfiguration) { + const url = this.getUrlString(requestContext); + const pool = this.getPool(url); + if (!this.config.disableConcurrency && !connectionConfiguration.isEventStream) { + const available = pool.poll(); + if (available) { + available.retain(); + return available; + } + } + const ref = new ClientHttp2SessionRef(this.connect(url)); + const session = ref.deref(); + if (this.config.maxConcurrency) { + session.settings({ maxConcurrentStreams: this.config.maxConcurrency }, (err) => { + if (err) { + throw new Error("Fail to set maxConcurrentStreams to " + + this.config.maxConcurrency + + "when creating new session for " + + requestContext.destination.toString()); + } + }); + } + const graceful = () => { + this.removeFromPoolAndClose(url, ref); + }; + const ensureDestroyed = () => { + this.removeFromPoolAndCheckedDestroy(url, ref); + }; + session.on("goaway", graceful); + session.on("error", ensureDestroyed); + session.on("frameError", ensureDestroyed); + session.on("close", ensureDestroyed); + if (connectionConfiguration.requestTimeout) { + session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed); + } + pool.offerLast(ref); + ref.retain(); + return ref; + } + release(_requestContext, ref) { + ref.free(); + } + createIsolatedSession(requestContext, connectionConfiguration) { + const url = this.getUrlString(requestContext); + const ref = new ClientHttp2SessionRef(this.connect(url)); + const session = ref.deref(); + session.settings({ maxConcurrentStreams: 1 }); + const ensureDestroyed = () => { + ref.destroy(); + }; + session.on("error", ensureDestroyed); + session.on("frameError", ensureDestroyed); + session.on("close", ensureDestroyed); + if (connectionConfiguration.requestTimeout) { + session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed); + } + ref.retain(); + return ref; + } + destroy() { + for (const [url, connectionPool] of this.connectionPools) { + for (const session of [...connectionPool]) { + session.destroy(); + } + this.connectionPools.delete(url); + } + } + setMaxConcurrentStreams(maxConcurrentStreams) { + if (maxConcurrentStreams && maxConcurrentStreams <= 0) { + throw new RangeError("maxConcurrentStreams must be greater than zero."); + } + this.config.maxConcurrency = maxConcurrentStreams; + for (const pool of this.connectionPools.values()) { + pool.setMaxConcurrency(maxConcurrentStreams); + } + } + setDisableConcurrentStreams(disableConcurrentStreams) { + this.config.disableConcurrency = disableConcurrentStreams; + } + setNodeHttp2ConnectOptions(nodeHttp2ConnectOptions) { + this.connectOptions = nodeHttp2ConnectOptions; + } + debug() { + const pools = {}; + for (const [url, pool] of this.connectionPools) { + const sessions = []; + for (const ref of pool) { + sessions.push({ + id: ref.id, + active: ref.useCount(), + maxConcurrent: ref.max, + totalRequests: ref.total, + }); + } + pools[url] = { sessions }; + } + return pools; + } + removeFromPoolAndClose(authority, ref) { + this.connectionPools.get(authority)?.remove(ref); + ref.close(); + } + removeFromPoolAndCheckedDestroy(authority, ref) { + this.connectionPools.get(authority)?.remove(ref); + ref.destroy(); + } + getPool(url) { + if (!this.connectionPools.has(url)) { + const pool = new NodeHttp2ConnectionPool(); + if (this.config.maxConcurrency) { + pool.setMaxConcurrency(this.config.maxConcurrency); + } + this.connectionPools.set(url, pool); + } + return this.connectionPools.get(url); + } + getUrlString(request) { + return request.destination.toString(); + } + connect(url) { + return this.connectOptions === undefined ? http2.connect(url) : http2.connect(url, this.connectOptions); + } +} + +const { constants } = http2; +class NodeHttp2Handler { + config; + configProvider; + metadata = { handlerProtocol: "h2" }; + connectionManager = new NodeHttp2ConnectionManager({}); + static create(instanceOrOptions) { + if (typeof instanceOrOptions?.handle === "function") { + return instanceOrOptions; + } + return new NodeHttp2Handler(instanceOrOptions); + } + constructor(options) { + this.configProvider = new Promise((resolve, reject) => { + if (typeof options === "function") { + options() + .then((opts) => { + resolve(opts || {}); + }) + .catch(reject); + } + else { + resolve(options || {}); + } + }); + } + destroy() { + this.connectionManager.destroy(); + } + async handle(request, { abortSignal, requestTimeout, isEventStream } = {}) { + if (!this.config) { + this.config = await this.configProvider; + const { disableConcurrentStreams, maxConcurrentStreams, nodeHttp2ConnectOptions } = this.config; + this.connectionManager.setDisableConcurrentStreams(disableConcurrentStreams ?? false); + if (maxConcurrentStreams) { + this.connectionManager.setMaxConcurrentStreams(maxConcurrentStreams); + } + if (nodeHttp2ConnectOptions) { + this.connectionManager.setNodeHttp2ConnectOptions(nodeHttp2ConnectOptions); + } + } + const { requestTimeout: configRequestTimeout, disableConcurrentStreams } = this.config; + const useIsolatedSession = disableConcurrentStreams || isEventStream; + const effectiveRequestTimeout = requestTimeout ?? configRequestTimeout; + return new Promise((_resolve, _reject) => { + let fulfilled = false; + let writeRequestBodyPromise = undefined; + const resolve = async (arg) => { + await writeRequestBodyPromise; + _resolve(arg); + }; + const reject = async (arg) => { + await writeRequestBodyPromise; + _reject(arg); + }; + if (abortSignal?.aborted) { + fulfilled = true; + const abortError = buildAbortError(abortSignal); + reject(abortError); + return; + } + const { hostname, method, port, protocol, query } = request; + let auth = ""; + if (request.username != null || request.password != null) { + const username = request.username ?? ""; + const password = request.password ?? ""; + auth = `${username}:${password}@`; + } + const authority = `${protocol}//${auth}${hostname}${port ? `:${port}` : ""}`; + const requestContext = { destination: new URL(authority) }; + const connectConfig = { + requestTimeout: this.config?.sessionTimeout, + isEventStream, + }; + const ref = useIsolatedSession + ? this.connectionManager.createIsolatedSession(requestContext, connectConfig) + : this.connectionManager.lease(requestContext, connectConfig); + const session = ref.deref(); + const rejectWithDestroy = (err) => { + if (useIsolatedSession) { + ref.destroy(); + } + fulfilled = true; + reject(err); + }; + const queryString = query ? buildQueryString(query) : ""; + let path = request.path; + if (queryString) { + path += `?${queryString}`; + } + if (request.fragment) { + path += `#${request.fragment}`; + } + const clientHttp2Stream = session.request({ + ...request.headers, + [constants.HTTP2_HEADER_PATH]: path, + [constants.HTTP2_HEADER_METHOD]: method, + }); + if (effectiveRequestTimeout) { + clientHttp2Stream.setTimeout(effectiveRequestTimeout, () => { + clientHttp2Stream.close(); + const timeoutError = new Error(`Stream timed out because of no activity for ${effectiveRequestTimeout} ms`); + timeoutError.name = "TimeoutError"; + rejectWithDestroy(timeoutError); + }); + } + if (abortSignal) { + const onAbort = () => { + clientHttp2Stream.close(); + const abortError = buildAbortError(abortSignal); + rejectWithDestroy(abortError); + }; + if (typeof abortSignal.addEventListener === "function") { + const signal = abortSignal; + signal.addEventListener("abort", onAbort, { once: true }); + clientHttp2Stream.once("close", () => signal.removeEventListener("abort", onAbort)); + } + else { + abortSignal.onabort = onAbort; + } + } + clientHttp2Stream.on("frameError", (type, code, id) => { + rejectWithDestroy(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`)); + }); + clientHttp2Stream.on("error", rejectWithDestroy); + clientHttp2Stream.on("aborted", () => { + rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${clientHttp2Stream.rstCode}.`)); + }); + clientHttp2Stream.on("response", (headers) => { + const httpResponse = new HttpResponse({ + statusCode: headers[":status"] ?? -1, + headers: getTransformedHeaders(headers), + body: clientHttp2Stream, + }); + fulfilled = true; + resolve({ response: httpResponse }); + if (useIsolatedSession) { + session.close(); + } + }); + clientHttp2Stream.on("close", () => { + if (useIsolatedSession) { + ref.destroy(); + } + else { + this.connectionManager.release(requestContext, ref); + } + if (!fulfilled) { + rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response")); + } + }); + writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout); + }); + } + updateHttpClientConfig(key, value) { + this.config = undefined; + this.configProvider = this.configProvider.then((config) => { + return { + ...config, + [key]: value, + }; + }); + } + httpHandlerConfigs() { + return this.config ?? {}; + } +} + +exports.DEFAULT_REQUEST_TIMEOUT = DEFAULT_REQUEST_TIMEOUT; +exports.NodeHttp2Handler = NodeHttp2Handler; +exports.NodeHttpHandler = NodeHttpHandler; + + +/***/ }), + +/***/ 72356: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveHttpHandlerRuntimeConfig = exports.getHttpHandlerExtensionConfiguration = exports.isValidHostname = exports.HttpResponse = exports.HttpRequest = exports.Fields = exports.Field = void 0; +var protocols_1 = __nccwpck_require__(93422); +Object.defineProperty(exports, "Field", ({ enumerable: true, get: function () { return protocols_1.Field; } })); +Object.defineProperty(exports, "Fields", ({ enumerable: true, get: function () { return protocols_1.Fields; } })); +Object.defineProperty(exports, "HttpRequest", ({ enumerable: true, get: function () { return protocols_1.HttpRequest; } })); +Object.defineProperty(exports, "HttpResponse", ({ enumerable: true, get: function () { return protocols_1.HttpResponse; } })); +Object.defineProperty(exports, "isValidHostname", ({ enumerable: true, get: function () { return protocols_1.isValidHostname; } })); +Object.defineProperty(exports, "getHttpHandlerExtensionConfiguration", ({ enumerable: true, get: function () { return protocols_1.getHttpHandlerExtensionConfiguration; } })); +Object.defineProperty(exports, "resolveHttpHandlerRuntimeConfig", ({ enumerable: true, get: function () { return protocols_1.resolveHttpHandlerRuntimeConfig; } })); + + +/***/ }), + +/***/ 75118: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +const { fromUtf8, fromHex, toHex, toUint8Array, isArrayBuffer } = __nccwpck_require__(92430); +const { normalizeProvider } = __nccwpck_require__(92658); +const { escapeUri, HttpRequest } = __nccwpck_require__(93422); + +class HeaderFormatter { + format(headers) { + const chunks = []; + for (const headerName of Object.keys(headers)) { + const bytes = fromUtf8(headerName); + chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName])); + } + const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0)); + let position = 0; + for (const chunk of chunks) { + out.set(chunk, position); + position += chunk.byteLength; + } + return out; + } + formatHeaderValue(header) { + switch (header.type) { + case "boolean": + return Uint8Array.from([header.value ? HEADER_VALUE_TYPE.boolTrue : HEADER_VALUE_TYPE.boolFalse]); + case "byte": + return Uint8Array.from([HEADER_VALUE_TYPE.byte, header.value]); + case "short": + const shortView = new DataView(new ArrayBuffer(3)); + shortView.setUint8(0, HEADER_VALUE_TYPE.short); + shortView.setInt16(1, header.value, false); + return new Uint8Array(shortView.buffer); + case "integer": + const intView = new DataView(new ArrayBuffer(5)); + intView.setUint8(0, HEADER_VALUE_TYPE.integer); + intView.setInt32(1, header.value, false); + return new Uint8Array(intView.buffer); + case "long": + const longBytes = new Uint8Array(9); + longBytes[0] = HEADER_VALUE_TYPE.long; + longBytes.set(header.value.bytes, 1); + return longBytes; + case "binary": + const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength)); + binView.setUint8(0, HEADER_VALUE_TYPE.byteArray); + binView.setUint16(1, header.value.byteLength, false); + const binBytes = new Uint8Array(binView.buffer); + binBytes.set(header.value, 3); + return binBytes; + case "string": + const utf8Bytes = fromUtf8(header.value); + const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength)); + strView.setUint8(0, HEADER_VALUE_TYPE.string); + strView.setUint16(1, utf8Bytes.byteLength, false); + const strBytes = new Uint8Array(strView.buffer); + strBytes.set(utf8Bytes, 3); + return strBytes; + case "timestamp": + const tsBytes = new Uint8Array(9); + tsBytes[0] = HEADER_VALUE_TYPE.timestamp; + tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1); + return tsBytes; + case "uuid": + if (!UUID_PATTERN.test(header.value)) { + throw new Error(`Invalid UUID received: ${header.value}`); + } + const uuidBytes = new Uint8Array(17); + uuidBytes[0] = HEADER_VALUE_TYPE.uuid; + uuidBytes.set(fromHex(header.value.replace(/-/g, "")), 1); + return uuidBytes; + } + } +} +var HEADER_VALUE_TYPE; +(function (HEADER_VALUE_TYPE) { + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolTrue"] = 0] = "boolTrue"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolFalse"] = 1] = "boolFalse"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byte"] = 2] = "byte"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["short"] = 3] = "short"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["integer"] = 4] = "integer"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["long"] = 5] = "long"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byteArray"] = 6] = "byteArray"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["string"] = 7] = "string"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["timestamp"] = 8] = "timestamp"; + HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["uuid"] = 9] = "uuid"; +})(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {})); +const UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/; +class Int64 { + bytes; + constructor(bytes) { + this.bytes = bytes; + if (bytes.byteLength !== 8) { + throw new Error("Int64 buffers must be exactly 8 bytes"); + } + } + static fromNumber(number) { + if (number > 9_223_372_036_854_775_807 || number < -9223372036854776e3) { + throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`); + } + const bytes = new Uint8Array(8); + for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) { + bytes[i] = remaining; + } + if (number < 0) { + negate(bytes); + } + return new Int64(bytes); + } + valueOf() { + const bytes = this.bytes.slice(0); + const negative = bytes[0] & 0b10000000; + if (negative) { + negate(bytes); + } + return parseInt(toHex(bytes), 16) * (negative ? -1 : 1); + } + toString() { + return String(this.valueOf()); + } +} +function negate(bytes) { + for (let i = 0; i < 8; i++) { + bytes[i] ^= 0xff; + } + for (let i = 7; i > -1; i--) { + bytes[i]++; + if (bytes[i] !== 0) + break; + } +} + +const ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; +const CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; +const AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; +const SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; +const EXPIRES_QUERY_PARAM = "X-Amz-Expires"; +const SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; +const TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; +const REGION_SET_PARAM = "X-Amz-Region-Set"; +const AUTH_HEADER = "authorization"; +const AMZ_DATE_HEADER = AMZ_DATE_QUERY_PARAM.toLowerCase(); +const DATE_HEADER = "date"; +const GENERATED_HEADERS = [AUTH_HEADER, AMZ_DATE_HEADER, DATE_HEADER]; +const SIGNATURE_HEADER = SIGNATURE_QUERY_PARAM.toLowerCase(); +const SHA256_HEADER = "x-amz-content-sha256"; +const TOKEN_HEADER = TOKEN_QUERY_PARAM.toLowerCase(); +const HOST_HEADER = "host"; +const ALWAYS_UNSIGNABLE_HEADERS = { + authorization: true, + "cache-control": true, + connection: true, + expect: true, + from: true, + "keep-alive": true, + "max-forwards": true, + pragma: true, + referer: true, + te: true, + trailer: true, + "transfer-encoding": true, + upgrade: true, + "user-agent": true, + "x-amzn-trace-id": true, +}; +const PROXY_HEADER_PATTERN = /^proxy-/; +const SEC_HEADER_PATTERN = /^sec-/; +const UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; +const ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; +const ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; +const EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; +const UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; +const MAX_CACHE_SIZE = 50; +const KEY_TYPE_IDENTIFIER = "aws4_request"; +const MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; + +const getCanonicalQuery = ({ query = {} }) => { + const keys = []; + const serialized = {}; + for (const key of Object.keys(query)) { + if (key.toLowerCase() === SIGNATURE_HEADER) { + continue; + } + const encodedKey = escapeUri(key); + keys.push(encodedKey); + const value = query[key]; + if (typeof value === "string") { + serialized[encodedKey] = `${encodedKey}=${escapeUri(value)}`; + } + else if (Array.isArray(value)) { + serialized[encodedKey] = value + .slice(0) + .reduce((encoded, value) => encoded.concat([`${encodedKey}=${escapeUri(value)}`]), []) + .sort() + .join("&"); + } + } + return keys + .sort() + .map((key) => serialized[key]) + .filter((serialized) => serialized) + .join("&"); +}; + +const iso8601 = (time) => toDate(time) + .toISOString() + .replace(/\.\d{3}Z$/, "Z"); +const toDate = (time) => { + if (typeof time === "number") { + return new Date(time * 1000); + } + if (typeof time === "string") { + if (Number(time)) { + return new Date(Number(time) * 1000); + } + return new Date(time); + } + return time; +}; + +class SignatureV4Base { + service; + regionProvider; + credentialProvider; + sha256; + uriEscapePath; + applyChecksum; + constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true, }) { + this.service = service; + this.sha256 = sha256; + this.uriEscapePath = uriEscapePath; + this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; + this.regionProvider = normalizeProvider(region); + this.credentialProvider = normalizeProvider(credentials); + } + createCanonicalRequest(request, canonicalHeaders, payloadHash) { + const sortedHeaders = Object.keys(canonicalHeaders).sort(); + return `${request.method} +${this.getCanonicalPath(request)} +${getCanonicalQuery(request)} +${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join("\n")} + +${sortedHeaders.join(";")} +${payloadHash}`; + } + async createStringToSign(longDate, credentialScope, canonicalRequest, algorithmIdentifier) { + const hash = new this.sha256(); + hash.update(toUint8Array(canonicalRequest)); + const hashedRequest = await hash.digest(); + return `${algorithmIdentifier} +${longDate} +${credentialScope} +${toHex(hashedRequest)}`; + } + getCanonicalPath({ path }) { + if (this.uriEscapePath) { + const normalizedPathSegments = []; + for (const pathSegment of path.split("/")) { + if (pathSegment?.length === 0) + continue; + if (pathSegment === ".") + continue; + if (pathSegment === "..") { + normalizedPathSegments.pop(); + } + else { + normalizedPathSegments.push(pathSegment); + } + } + const normalizedPath = `${path?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path?.endsWith("/") ? "/" : ""}`; + const doubleEncoded = escapeUri(normalizedPath); + return doubleEncoded.replace(/%2F/g, "/"); + } + return path; + } + validateResolvedCredentials(credentials) { + if (typeof credentials !== "object" || + typeof credentials.accessKeyId !== "string" || + typeof credentials.secretAccessKey !== "string") { + throw new Error("Resolved credential object is not valid"); + } + } + formatDate(now) { + const longDate = iso8601(now).replace(/[-:]/g, ""); + return { + longDate, + shortDate: longDate.slice(0, 8), + }; + } + getCanonicalHeaderList(headers) { + return Object.keys(headers).sort().join(";"); + } +} + +const signingKeyCache = {}; +const cacheQueue = []; +const createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`; +const getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { + const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); + const cacheKey = `${shortDate}:${region}:${service}:${toHex(credsHash)}:${credentials.sessionToken}`; + if (cacheKey in signingKeyCache) { + return signingKeyCache[cacheKey]; + } + cacheQueue.push(cacheKey); + while (cacheQueue.length > MAX_CACHE_SIZE) { + delete signingKeyCache[cacheQueue.shift()]; + } + let key = `AWS4${credentials.secretAccessKey}`; + for (const signable of [shortDate, region, service, KEY_TYPE_IDENTIFIER]) { + key = await hmac(sha256Constructor, key, signable); + } + return (signingKeyCache[cacheKey] = key); +}; +const clearCredentialCache = () => { + cacheQueue.length = 0; + Object.keys(signingKeyCache).forEach((cacheKey) => { + delete signingKeyCache[cacheKey]; + }); +}; +const hmac = (ctor, secret, data) => { + const hash = new ctor(secret); + hash.update(toUint8Array(data)); + return hash.digest(); +}; + +const getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => { + const canonical = {}; + for (const headerName of Object.keys(headers).sort()) { + if (headers[headerName] == undefined) { + continue; + } + const canonicalHeaderName = headerName.toLowerCase(); + if (canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS || + unsignableHeaders?.has(canonicalHeaderName) || + PROXY_HEADER_PATTERN.test(canonicalHeaderName) || + SEC_HEADER_PATTERN.test(canonicalHeaderName)) { + if (!signableHeaders || (signableHeaders && !signableHeaders.has(canonicalHeaderName))) { + continue; + } + } + canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " "); + } + return canonical; +}; + +const getPayloadHash = async ({ headers, body }, hashConstructor) => { + for (const headerName of Object.keys(headers)) { + if (headerName.toLowerCase() === SHA256_HEADER) { + return headers[headerName]; + } + } + if (body == undefined) { + return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; + } + else if (typeof body === "string" || ArrayBuffer.isView(body) || isArrayBuffer(body)) { + const hashCtor = new hashConstructor(); + hashCtor.update(toUint8Array(body)); + return toHex(await hashCtor.digest()); + } + return UNSIGNED_PAYLOAD; +}; + +const hasHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return true; + } + } + return false; +}; + +const moveHeadersToQuery = (request, options = {}) => { + const { headers, query = {} } = HttpRequest.clone(request); + for (const name of Object.keys(headers)) { + const lname = name.toLowerCase(); + if ((lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname)) || + options.hoistableHeaders?.has(lname)) { + query[name] = headers[name]; + delete headers[name]; + } + } + return { + ...request, + headers, + query, + }; +}; + +const prepareRequest = (request) => { + request = HttpRequest.clone(request); + for (const headerName of Object.keys(request.headers)) { + if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { + delete request.headers[headerName]; + } + } + return request; +}; + +class SignatureV4 extends SignatureV4Base { + headerFormatter = new HeaderFormatter(); + constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true, }) { + super({ + applyChecksum, + credentials, + region, + service, + sha256, + uriEscapePath, + }); + } + async presign(originalRequest, options = {}) { + const { signingDate = new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, hoistableHeaders, signingRegion, signingService, } = options; + const credentials = await this.credentialProvider(); + this.validateResolvedCredentials(credentials); + const region = signingRegion ?? (await this.regionProvider()); + const { longDate, shortDate } = this.formatDate(signingDate); + if (expiresIn > MAX_PRESIGNED_TTL) { + return Promise.reject("Signature version 4 presigned URLs" + " must have an expiration date less than one week in" + " the future"); + } + const scope = createScope(shortDate, region, signingService ?? this.service); + const request = moveHeadersToQuery(prepareRequest(originalRequest), { unhoistableHeaders, hoistableHeaders }); + if (credentials.sessionToken) { + request.query[TOKEN_QUERY_PARAM] = credentials.sessionToken; + } + request.query[ALGORITHM_QUERY_PARAM] = ALGORITHM_IDENTIFIER; + request.query[CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`; + request.query[AMZ_DATE_QUERY_PARAM] = longDate; + request.query[EXPIRES_QUERY_PARAM] = expiresIn.toString(10); + const canonicalHeaders = getCanonicalHeaders(request, unsignableHeaders, signableHeaders); + request.query[SIGNED_HEADERS_QUERY_PARAM] = this.getCanonicalHeaderList(canonicalHeaders); + request.query[SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, await getPayloadHash(originalRequest, this.sha256))); + return request; + } + async sign(toSign, options) { + if (typeof toSign === "string") { + return this.signString(toSign, options); + } + else if (toSign.headers && toSign.payload) { + return this.signEvent(toSign, options); + } + else if (toSign.message) { + return this.signMessage(toSign, options); + } + else { + return this.signRequest(toSign, options); + } + } + async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService, eventStreamCredentials, }) { + const region = signingRegion ?? (await this.regionProvider()); + const { shortDate, longDate } = this.formatDate(signingDate); + const scope = createScope(shortDate, region, signingService ?? this.service); + const hashedPayload = await getPayloadHash({ headers: {}, body: payload }, this.sha256); + const hash = new this.sha256(); + hash.update(headers); + const hashedHeaders = toHex(await hash.digest()); + const stringToSign = [ + EVENT_ALGORITHM_IDENTIFIER, + longDate, + scope, + priorSignature, + hashedHeaders, + hashedPayload, + ].join("\n"); + return this.signString(stringToSign, { + signingDate, + signingRegion: region, + signingService, + eventStreamCredentials, + }); + } + async signMessage(signableMessage, { signingDate = new Date(), signingRegion, signingService, eventStreamCredentials }) { + const promise = this.signEvent({ + headers: this.headerFormatter.format(signableMessage.message.headers), + payload: signableMessage.message.body, + }, { + signingDate, + signingRegion, + signingService, + priorSignature: signableMessage.priorSignature, + eventStreamCredentials, + }); + return promise.then((signature) => { + return { message: signableMessage.message, signature }; + }); + } + async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService, eventStreamCredentials, } = {}) { + const credentials = eventStreamCredentials ?? (await this.credentialProvider()); + this.validateResolvedCredentials(credentials); + const region = signingRegion ?? (await this.regionProvider()); + const { shortDate } = this.formatDate(signingDate); + const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); + hash.update(toUint8Array(stringToSign)); + return toHex(await hash.digest()); + } + async signRequest(requestToSign, { signingDate = new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService, } = {}) { + const credentials = await this.credentialProvider(); + this.validateResolvedCredentials(credentials); + const region = signingRegion ?? (await this.regionProvider()); + const request = prepareRequest(requestToSign); + const { longDate, shortDate } = this.formatDate(signingDate); + const scope = createScope(shortDate, region, signingService ?? this.service); + request.headers[AMZ_DATE_HEADER] = longDate; + if (credentials.sessionToken) { + request.headers[TOKEN_HEADER] = credentials.sessionToken; + } + const payloadHash = await getPayloadHash(request, this.sha256); + if (!hasHeader(SHA256_HEADER, request.headers) && this.applyChecksum) { + request.headers[SHA256_HEADER] = payloadHash; + } + const canonicalHeaders = getCanonicalHeaders(request, unsignableHeaders, signableHeaders); + const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash)); + request.headers[AUTH_HEADER] = + `${ALGORITHM_IDENTIFIER} ` + + `Credential=${credentials.accessKeyId}/${scope}, ` + + `SignedHeaders=${this.getCanonicalHeaderList(canonicalHeaders)}, ` + + `Signature=${signature}`; + return request; + } + async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { + const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest, ALGORITHM_IDENTIFIER); + const hash = new this.sha256(await keyPromise); + hash.update(toUint8Array(stringToSign)); + return toHex(await hash.digest()); + } + getSigningKey(credentials, region, shortDate, service) { + return getSigningKey(this.sha256, credentials, shortDate, region, service || this.service); + } +} + +const signatureV4aContainer = { + SignatureV4a: null, +}; + +exports.ALGORITHM_IDENTIFIER = ALGORITHM_IDENTIFIER; +exports.ALGORITHM_IDENTIFIER_V4A = ALGORITHM_IDENTIFIER_V4A; +exports.ALGORITHM_QUERY_PARAM = ALGORITHM_QUERY_PARAM; +exports.ALWAYS_UNSIGNABLE_HEADERS = ALWAYS_UNSIGNABLE_HEADERS; +exports.AMZ_DATE_HEADER = AMZ_DATE_HEADER; +exports.AMZ_DATE_QUERY_PARAM = AMZ_DATE_QUERY_PARAM; +exports.AUTH_HEADER = AUTH_HEADER; +exports.CREDENTIAL_QUERY_PARAM = CREDENTIAL_QUERY_PARAM; +exports.DATE_HEADER = DATE_HEADER; +exports.EVENT_ALGORITHM_IDENTIFIER = EVENT_ALGORITHM_IDENTIFIER; +exports.EXPIRES_QUERY_PARAM = EXPIRES_QUERY_PARAM; +exports.GENERATED_HEADERS = GENERATED_HEADERS; +exports.HOST_HEADER = HOST_HEADER; +exports.KEY_TYPE_IDENTIFIER = KEY_TYPE_IDENTIFIER; +exports.MAX_CACHE_SIZE = MAX_CACHE_SIZE; +exports.MAX_PRESIGNED_TTL = MAX_PRESIGNED_TTL; +exports.PROXY_HEADER_PATTERN = PROXY_HEADER_PATTERN; +exports.REGION_SET_PARAM = REGION_SET_PARAM; +exports.SEC_HEADER_PATTERN = SEC_HEADER_PATTERN; +exports.SHA256_HEADER = SHA256_HEADER; +exports.SIGNATURE_HEADER = SIGNATURE_HEADER; +exports.SIGNATURE_QUERY_PARAM = SIGNATURE_QUERY_PARAM; +exports.SIGNED_HEADERS_QUERY_PARAM = SIGNED_HEADERS_QUERY_PARAM; +exports.SignatureV4 = SignatureV4; +exports.SignatureV4Base = SignatureV4Base; +exports.TOKEN_HEADER = TOKEN_HEADER; +exports.TOKEN_QUERY_PARAM = TOKEN_QUERY_PARAM; +exports.UNSIGNABLE_PATTERNS = UNSIGNABLE_PATTERNS; +exports.UNSIGNED_PAYLOAD = UNSIGNED_PAYLOAD; +exports.clearCredentialCache = clearCredentialCache; +exports.createScope = createScope; +exports.getCanonicalHeaders = getCanonicalHeaders; +exports.getCanonicalQuery = getCanonicalQuery; +exports.getPayloadHash = getPayloadHash; +exports.getSigningKey = getSigningKey; +exports.hasHeader = hasHeader; +exports.moveHeadersToQuery = moveHeadersToQuery; +exports.prepareRequest = prepareRequest; +exports.signatureV4aContainer = signatureV4aContainer; + + +/***/ }), + +/***/ 90690: +/***/ ((__unused_webpack_module, exports) => { + +var HttpAuthLocation; +(function (HttpAuthLocation) { + HttpAuthLocation["HEADER"] = "header"; + HttpAuthLocation["QUERY"] = "query"; +})(HttpAuthLocation || (HttpAuthLocation = {})); + +var HttpApiKeyAuthLocation; +(function (HttpApiKeyAuthLocation) { + HttpApiKeyAuthLocation["HEADER"] = "header"; + HttpApiKeyAuthLocation["QUERY"] = "query"; +})(HttpApiKeyAuthLocation || (HttpApiKeyAuthLocation = {})); + +var EndpointURLScheme; +(function (EndpointURLScheme) { + EndpointURLScheme["HTTP"] = "http"; + EndpointURLScheme["HTTPS"] = "https"; +})(EndpointURLScheme || (EndpointURLScheme = {})); + +var AlgorithmId; +(function (AlgorithmId) { + AlgorithmId["MD5"] = "md5"; + AlgorithmId["CRC32"] = "crc32"; + AlgorithmId["CRC32C"] = "crc32c"; + AlgorithmId["SHA1"] = "sha1"; + AlgorithmId["SHA256"] = "sha256"; +})(AlgorithmId || (AlgorithmId = {})); +const getChecksumConfiguration = (runtimeConfig) => { + const checksumAlgorithms = []; + if (runtimeConfig.sha256 !== undefined) { + checksumAlgorithms.push({ + algorithmId: () => AlgorithmId.SHA256, + checksumConstructor: () => runtimeConfig.sha256, + }); + } + if (runtimeConfig.md5 != undefined) { + checksumAlgorithms.push({ + algorithmId: () => AlgorithmId.MD5, + checksumConstructor: () => runtimeConfig.md5, + }); + } + return { + addChecksumAlgorithm(algo) { + checksumAlgorithms.push(algo); + }, + checksumAlgorithms() { + return checksumAlgorithms; + }, + }; +}; +const resolveChecksumRuntimeConfig = (clientConfig) => { + const runtimeConfig = {}; + clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => { + runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor(); + }); + return runtimeConfig; +}; + +const getDefaultClientConfiguration = (runtimeConfig) => { + return getChecksumConfiguration(runtimeConfig); +}; +const resolveDefaultRuntimeConfig = (config) => { + return resolveChecksumRuntimeConfig(config); +}; + +var FieldPosition; +(function (FieldPosition) { + FieldPosition[FieldPosition["HEADER"] = 0] = "HEADER"; + FieldPosition[FieldPosition["TRAILER"] = 1] = "TRAILER"; +})(FieldPosition || (FieldPosition = {})); + +const SMITHY_CONTEXT_KEY = "__smithy_context"; + +var IniSectionType; +(function (IniSectionType) { + IniSectionType["PROFILE"] = "profile"; + IniSectionType["SSO_SESSION"] = "sso-session"; + IniSectionType["SERVICES"] = "services"; +})(IniSectionType || (IniSectionType = {})); + +var RequestHandlerProtocol; +(function (RequestHandlerProtocol) { + RequestHandlerProtocol["HTTP_0_9"] = "http/0.9"; + RequestHandlerProtocol["HTTP_1_0"] = "http/1.0"; + RequestHandlerProtocol["TDS_8_0"] = "tds/8.0"; +})(RequestHandlerProtocol || (RequestHandlerProtocol = {})); + +exports.AlgorithmId = AlgorithmId; +exports.EndpointURLScheme = EndpointURLScheme; +exports.FieldPosition = FieldPosition; +exports.HttpApiKeyAuthLocation = HttpApiKeyAuthLocation; +exports.HttpAuthLocation = HttpAuthLocation; +exports.IniSectionType = IniSectionType; +exports.RequestHandlerProtocol = RequestHandlerProtocol; +exports.SMITHY_CONTEXT_KEY = SMITHY_CONTEXT_KEY; +exports.getDefaultClientConfiguration = getDefaultClientConfiguration; +exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig; + + +/***/ }), + +/***/ 44151: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/index.ts +var src_exports = {}; +__export(src_exports, { + fromArrayBuffer: () => fromArrayBuffer, + fromString: () => fromString +}); +module.exports = __toCommonJS(src_exports); +var import_is_array_buffer = __nccwpck_require__(86130); +var import_buffer = __nccwpck_require__(20181); +var fromArrayBuffer = /* @__PURE__ */ __name((input, offset = 0, length = input.byteLength - offset) => { + if (!(0, import_is_array_buffer.isArrayBuffer)(input)) { + throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`); + } + return import_buffer.Buffer.from(input, offset, length); +}, "fromArrayBuffer"); +var fromString = /* @__PURE__ */ __name((input, encoding) => { + if (typeof input !== "string") { + throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`); + } + return encoding ? import_buffer.Buffer.from(input, encoding) : import_buffer.Buffer.from(input); +}, "fromString"); +// Annotate the CommonJS export names for ESM import in node: + +0 && (0); + + + +/***/ }), + +/***/ 71577: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/index.ts +var src_exports = {}; +__export(src_exports, { + fromUtf8: () => fromUtf8, + toUint8Array: () => toUint8Array, + toUtf8: () => toUtf8 +}); +module.exports = __toCommonJS(src_exports); + +// src/fromUtf8.ts +var import_util_buffer_from = __nccwpck_require__(44151); +var fromUtf8 = /* @__PURE__ */ __name((input) => { + const buf = (0, import_util_buffer_from.fromString)(input, "utf8"); + return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); +}, "fromUtf8"); + +// src/toUint8Array.ts +var toUint8Array = /* @__PURE__ */ __name((data) => { + if (typeof data === "string") { + return fromUtf8(data); + } + if (ArrayBuffer.isView(data)) { + return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); + } + return new Uint8Array(data); +}, "toUint8Array"); + +// src/toUtf8.ts + +var toUtf8 = /* @__PURE__ */ __name((input) => { + if (typeof input === "string") { + return input; + } + if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") { + throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array."); + } + return (0, import_util_buffer_from.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8"); +}, "toUtf8"); +// Annotate the CommonJS export names for ESM import in node: + +0 && (0); + + + +/***/ }), + +/***/ 17413: +/***/ ((module, exports, __nccwpck_require__) => { + +"use strict"; +/** + * @author Toru Nagashima + * See LICENSE file in root directory for full license. + */ + + +Object.defineProperty(exports, "__esModule", ({ value: true })); + +var eventTargetShim = __nccwpck_require__(16577); + +/** + * The signal class. + * @see https://dom.spec.whatwg.org/#abortsignal + */ +class AbortSignal extends eventTargetShim.EventTarget { + /** + * AbortSignal cannot be constructed directly. + */ + constructor() { + super(); + throw new TypeError("AbortSignal cannot be constructed directly"); + } + /** + * Returns `true` if this `AbortSignal`'s `AbortController` has signaled to abort, and `false` otherwise. + */ + get aborted() { + const aborted = abortedFlags.get(this); + if (typeof aborted !== "boolean") { + throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`); + } + return aborted; + } +} +eventTargetShim.defineEventAttribute(AbortSignal.prototype, "abort"); +/** + * Create an AbortSignal object. + */ +function createAbortSignal() { + const signal = Object.create(AbortSignal.prototype); + eventTargetShim.EventTarget.call(signal); + abortedFlags.set(signal, false); + return signal; +} +/** + * Abort a given signal. + */ +function abortSignal(signal) { + if (abortedFlags.get(signal) !== false) { + return; + } + abortedFlags.set(signal, true); + signal.dispatchEvent({ type: "abort" }); +} +/** + * Aborted flag for each instances. + */ +const abortedFlags = new WeakMap(); +// Properties should be enumerable. +Object.defineProperties(AbortSignal.prototype, { + aborted: { enumerable: true }, +}); +// `toString()` should return `"[object AbortSignal]"` +if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") { + Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, { + configurable: true, + value: "AbortSignal", + }); +} + +/** + * The AbortController. + * @see https://dom.spec.whatwg.org/#abortcontroller + */ +class AbortController { + /** + * Initialize this controller. + */ + constructor() { + signals.set(this, createAbortSignal()); + } + /** + * Returns the `AbortSignal` object associated with this object. + */ + get signal() { + return getSignal(this); + } + /** + * Abort and signal to any observers that the associated activity is to be aborted. + */ + abort() { + abortSignal(getSignal(this)); + } +} +/** + * Associated signals. + */ +const signals = new WeakMap(); +/** + * Get the associated signal of a given controller. + */ +function getSignal(controller) { + const signal = signals.get(controller); + if (signal == null) { + throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${controller === null ? "null" : typeof controller}`); + } + return signal; +} +// Properties should be enumerable. +Object.defineProperties(AbortController.prototype, { + signal: { enumerable: true }, + abort: { enumerable: true }, +}); +if (typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol") { + Object.defineProperty(AbortController.prototype, Symbol.toStringTag, { + configurable: true, + value: "AbortController", + }); +} + +exports.AbortController = AbortController; +exports.AbortSignal = AbortSignal; +exports["default"] = AbortController; + +module.exports = AbortController +module.exports.AbortController = module.exports["default"] = AbortController +module.exports.AbortSignal = AbortSignal +//# sourceMappingURL=abort-controller.js.map + + +/***/ }), + +/***/ 70421: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.req = exports.json = exports.toBuffer = void 0; +const http = __importStar(__nccwpck_require__(58611)); +const https = __importStar(__nccwpck_require__(65692)); +async function toBuffer(stream) { + let length = 0; + const chunks = []; + for await (const chunk of stream) { + length += chunk.length; + chunks.push(chunk); + } + return Buffer.concat(chunks, length); +} +exports.toBuffer = toBuffer; +// eslint-disable-next-line @typescript-eslint/no-explicit-any +async function json(stream) { + const buf = await toBuffer(stream); + const str = buf.toString('utf8'); + try { + return JSON.parse(str); + } + catch (_err) { + const err = _err; + err.message += ` (input: ${str})`; + throw err; + } +} +exports.json = json; +function req(url, opts = {}) { + const href = typeof url === 'string' ? url : url.href; + const req = (href.startsWith('https:') ? https : http).request(url, opts); + const promise = new Promise((resolve, reject) => { + req + .once('response', resolve) + .once('error', reject) + .end(); + }); + req.then = promise.then.bind(promise); + return req; +} +exports.req = req; +//# sourceMappingURL=helpers.js.map + +/***/ }), + +/***/ 98894: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Agent = void 0; +const net = __importStar(__nccwpck_require__(69278)); +const http = __importStar(__nccwpck_require__(58611)); +const https_1 = __nccwpck_require__(65692); +__exportStar(__nccwpck_require__(70421), exports); +const INTERNAL = Symbol('AgentBaseInternalState'); +class Agent extends http.Agent { + constructor(opts) { + super(opts); + this[INTERNAL] = {}; + } + /** + * Determine whether this is an `http` or `https` request. + */ + isSecureEndpoint(options) { + if (options) { + // First check the `secureEndpoint` property explicitly, since this + // means that a parent `Agent` is "passing through" to this instance. + // eslint-disable-next-line @typescript-eslint/no-explicit-any + if (typeof options.secureEndpoint === 'boolean') { + return options.secureEndpoint; + } + // If no explicit `secure` endpoint, check if `protocol` property is + // set. This will usually be the case since using a full string URL + // or `URL` instance should be the most common usage. + if (typeof options.protocol === 'string') { + return options.protocol === 'https:'; + } + } + // Finally, if no `protocol` property was set, then fall back to + // checking the stack trace of the current call stack, and try to + // detect the "https" module. + const { stack } = new Error(); + if (typeof stack !== 'string') + return false; + return stack + .split('\n') + .some((l) => l.indexOf('(https.js:') !== -1 || + l.indexOf('node:https:') !== -1); + } + // In order to support async signatures in `connect()` and Node's native + // connection pooling in `http.Agent`, the array of sockets for each origin + // has to be updated synchronously. This is so the length of the array is + // accurate when `addRequest()` is next called. We achieve this by creating a + // fake socket and adding it to `sockets[origin]` and incrementing + // `totalSocketCount`. + incrementSockets(name) { + // If `maxSockets` and `maxTotalSockets` are both Infinity then there is no + // need to create a fake socket because Node.js native connection pooling + // will never be invoked. + if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) { + return null; + } + // All instances of `sockets` are expected TypeScript errors. The + // alternative is to add it as a private property of this class but that + // will break TypeScript subclassing. + if (!this.sockets[name]) { + // @ts-expect-error `sockets` is readonly in `@types/node` + this.sockets[name] = []; + } + const fakeSocket = new net.Socket({ writable: false }); + this.sockets[name].push(fakeSocket); + // @ts-expect-error `totalSocketCount` isn't defined in `@types/node` + this.totalSocketCount++; + return fakeSocket; + } + decrementSockets(name, socket) { + if (!this.sockets[name] || socket === null) { + return; + } + const sockets = this.sockets[name]; + const index = sockets.indexOf(socket); + if (index !== -1) { + sockets.splice(index, 1); + // @ts-expect-error `totalSocketCount` isn't defined in `@types/node` + this.totalSocketCount--; + if (sockets.length === 0) { + // @ts-expect-error `sockets` is readonly in `@types/node` + delete this.sockets[name]; + } + } + } + // In order to properly update the socket pool, we need to call `getName()` on + // the core `https.Agent` if it is a secureEndpoint. + getName(options) { + const secureEndpoint = this.isSecureEndpoint(options); + if (secureEndpoint) { + // @ts-expect-error `getName()` isn't defined in `@types/node` + return https_1.Agent.prototype.getName.call(this, options); + } + // @ts-expect-error `getName()` isn't defined in `@types/node` + return super.getName(options); + } + createSocket(req, options, cb) { + const connectOpts = { + ...options, + secureEndpoint: this.isSecureEndpoint(options), + }; + const name = this.getName(connectOpts); + const fakeSocket = this.incrementSockets(name); + Promise.resolve() + .then(() => this.connect(req, connectOpts)) + .then((socket) => { + this.decrementSockets(name, fakeSocket); + if (socket instanceof http.Agent) { + try { + // @ts-expect-error `addRequest()` isn't defined in `@types/node` + return socket.addRequest(req, connectOpts); + } + catch (err) { + return cb(err); + } + } + this[INTERNAL].currentSocket = socket; + // @ts-expect-error `createSocket()` isn't defined in `@types/node` + super.createSocket(req, options, cb); + }, (err) => { + this.decrementSockets(name, fakeSocket); + cb(err); + }); + } + createConnection() { + const socket = this[INTERNAL].currentSocket; + this[INTERNAL].currentSocket = undefined; + if (!socket) { + throw new Error('No socket was returned in the `connect()` function'); + } + return socket; + } + get defaultPort() { + return (this[INTERNAL].defaultPort ?? + (this.protocol === 'https:' ? 443 : 80)); + } + set defaultPort(v) { + if (this[INTERNAL]) { + this[INTERNAL].defaultPort = v; + } + } + get protocol() { + return (this[INTERNAL].protocol ?? + (this.isSecureEndpoint() ? 'https:' : 'http:')); + } + set protocol(v) { + if (this[INTERNAL]) { + this[INTERNAL].protocol = v; + } + } +} +exports.Agent = Agent; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 59327: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _superagent = _interopRequireDefault(__nccwpck_require__(9653)); + +var _querystring = _interopRequireDefault(__nccwpck_require__(83480)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** +* @module ApiClient +* @version 3.6.3 +*/ + +/** +* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an +* application to use this class directly - the *Api and model classes provide the public API for the service. The +* contents of this file should be regarded as internal but are documented for completeness. +* @alias module:ApiClient +* @class +*/ +var ApiClient = /*#__PURE__*/function () { + function ApiClient() { + _classCallCheck(this, ApiClient); + + /** + * The base URL against which to resolve every API call's (relative) path. + * @type {String} + * @default https://api.akeyless.io + */ + this.basePath = 'https://api.akeyless.io'.replace(/\/+$/, ''); + /** + * The authentication methods to be included for all API calls. + * @type {Array.} + */ + + this.authentications = {}; + /** + * The default HTTP headers to be included for all API calls. + * @type {Array.} + * @default {} + */ + + this.defaultHeaders = {}; + /** + * The default HTTP timeout for all API calls. + * @type {Number} + * @default 60000 + */ + + this.timeout = 60000; + /** + * If set to false an additional timestamp parameter is added to all API GET calls to + * prevent browser caching + * @type {Boolean} + * @default true + */ + + this.cache = true; + /** + * If set to true, the client will save the cookies from each server + * response, and return them in the next request. + * @default false + */ + + this.enableCookies = false; + /* + * Used to save and return cookies in a node.js (non-browser) setting, + * if this.enableCookies is set to true. + */ + + if (typeof window === 'undefined') { + this.agent = new _superagent["default"].agent(); + } + /* + * Allow user to override superagent agent + */ + + + this.requestAgent = null; + /* + * Allow user to add superagent plugins + */ + + this.plugins = null; + } + /** + * Returns a string representation for an actual parameter. + * @param param The actual parameter. + * @returns {String} The string representation of param. + */ + + + _createClass(ApiClient, [{ + key: "paramToString", + value: function paramToString(param) { + if (param == undefined || param == null) { + return ''; + } + + if (param instanceof Date) { + return param.toJSON(); + } + + return param.toString(); + } + /** + * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. + * NOTE: query parameters are not handled here. + * @param {String} path The path to append to the base URL. + * @param {Object} pathParams The parameter values to append. + * @param {String} apiBasePath Base path defined in the path, operation level to override the default one + * @returns {String} The encoded path with parameter values substituted. + */ + + }, { + key: "buildUrl", + value: function buildUrl(path, pathParams, apiBasePath) { + var _this = this; + + if (!path.match(/^\//)) { + path = '/' + path; + } + + var url = this.basePath + path; // use API (operation, path) base path if defined + + if (apiBasePath !== null && apiBasePath !== undefined) { + url = apiBasePath + path; + } + + url = url.replace(/\{([\w-]+)\}/g, function (fullMatch, key) { + var value; + + if (pathParams.hasOwnProperty(key)) { + value = _this.paramToString(pathParams[key]); + } else { + value = fullMatch; + } + + return encodeURIComponent(value); + }); + return url; + } + /** + * Checks whether the given content type represents JSON.
+ * JSON content type examples:
+ *
    + *
  • application/json
  • + *
  • application/json; charset=UTF8
  • + *
  • APPLICATION/JSON
  • + *
+ * @param {String} contentType The MIME content type to check. + * @returns {Boolean} true if contentType represents JSON, otherwise false. + */ + + }, { + key: "isJsonMime", + value: function isJsonMime(contentType) { + return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); + } + /** + * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. + * @param {Array.} contentTypes + * @returns {String} The chosen content type, preferring JSON. + */ + + }, { + key: "jsonPreferredMime", + value: function jsonPreferredMime(contentTypes) { + for (var i = 0; i < contentTypes.length; i++) { + if (this.isJsonMime(contentTypes[i])) { + return contentTypes[i]; + } + } + + return contentTypes[0]; + } + /** + * Checks whether the given parameter value represents file-like content. + * @param param The parameter to check. + * @returns {Boolean} true if param represents a file. + */ + + }, { + key: "isFileParam", + value: function isFileParam(param) { + // fs.ReadStream in Node.js and Electron (but not in runtime like browserify) + if (true) { + var fs; + + try { + fs = __nccwpck_require__(79896); + } catch (err) {} + + if (fs && fs.ReadStream && param instanceof fs.ReadStream) { + return true; + } + } // Buffer in Node.js + + + if (typeof Buffer === 'function' && param instanceof Buffer) { + return true; + } // Blob in browser + + + if (typeof Blob === 'function' && param instanceof Blob) { + return true; + } // File in browser (it seems File object is also instance of Blob, but keep this for safe) + + + if (typeof File === 'function' && param instanceof File) { + return true; + } + + return false; + } + /** + * Normalizes parameter values: + *
    + *
  • remove nils
  • + *
  • keep files and arrays
  • + *
  • format to string with `paramToString` for other cases
  • + *
+ * @param {Object.} params The parameters as object properties. + * @returns {Object.} normalized parameters. + */ + + }, { + key: "normalizeParams", + value: function normalizeParams(params) { + var newParams = {}; + + for (var key in params) { + if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { + var value = params[key]; + + if (this.isFileParam(value) || Array.isArray(value)) { + newParams[key] = value; + } else { + newParams[key] = this.paramToString(value); + } + } + } + + return newParams; + } + /** + * Builds a string representation of an array-type actual parameter, according to the given collection format. + * @param {Array} param An array parameter. + * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. + * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns + * param as is if collectionFormat is multi. + */ + + }, { + key: "buildCollectionParam", + value: function buildCollectionParam(param, collectionFormat) { + if (param == null) { + return null; + } + + switch (collectionFormat) { + case 'csv': + return param.map(this.paramToString).join(','); + + case 'ssv': + return param.map(this.paramToString).join(' '); + + case 'tsv': + return param.map(this.paramToString).join('\t'); + + case 'pipes': + return param.map(this.paramToString).join('|'); + + case 'multi': + //return the array directly as SuperAgent will handle it as expected + return param.map(this.paramToString); + + default: + throw new Error('Unknown collection format: ' + collectionFormat); + } + } + /** + * Applies authentication headers to the request. + * @param {Object} request The request object created by a superagent() call. + * @param {Array.} authNames An array of authentication method names. + */ + + }, { + key: "applyAuthToRequest", + value: function applyAuthToRequest(request, authNames) { + var _this2 = this; + + authNames.forEach(function (authName) { + var auth = _this2.authentications[authName]; + + switch (auth.type) { + case 'basic': + if (auth.username || auth.password) { + request.auth(auth.username || '', auth.password || ''); + } + + break; + + case 'bearer': + if (auth.accessToken) { + request.set({ + 'Authorization': 'Bearer ' + auth.accessToken + }); + } + + break; + + case 'apiKey': + if (auth.apiKey) { + var data = {}; + + if (auth.apiKeyPrefix) { + data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; + } else { + data[auth.name] = auth.apiKey; + } + + if (auth['in'] === 'header') { + request.set(data); + } else { + request.query(data); + } + } + + break; + + case 'oauth2': + if (auth.accessToken) { + request.set({ + 'Authorization': 'Bearer ' + auth.accessToken + }); + } + + break; + + default: + throw new Error('Unknown authentication type: ' + auth.type); + } + }); + } + /** + * Deserializes an HTTP response body into a value of the specified type. + * @param {Object} response A SuperAgent response object. + * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types + * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To + * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: + * all properties on data will be converted to this type. + * @returns A value of the specified type. + */ + + }, { + key: "deserialize", + value: function deserialize(response, returnType) { + if (response == null || returnType == null || response.status == 204) { + return null; + } // Rely on SuperAgent for parsing response body. + // See http://visionmedia.github.io/superagent/#parsing-response-bodies + + + var data = response.body; + + if (data == null || _typeof(data) === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length) { + // SuperAgent does not always produce a body; use the unparsed response as a fallback + data = response.text; + } + + return ApiClient.convertToType(data, returnType); + } + /** + * Invokes the REST service using the supplied settings and parameters. + * @param {String} path The base URL to invoke. + * @param {String} httpMethod The HTTP method to use. + * @param {Object.} pathParams A map of path parameters and their values. + * @param {Object.} queryParams A map of query parameters and their values. + * @param {Object.} headerParams A map of header parameters and their values. + * @param {Object.} formParams A map of form parameters and their values. + * @param {Object} bodyParam The value to pass as the request body. + * @param {Array.} authNames An array of authentication type names. + * @param {Array.} contentTypes An array of request MIME types. + * @param {Array.} accepts An array of acceptable response MIME types. + * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the + * constructor for a complex type. + * @param {String} apiBasePath base path defined in the operation/path level to override the default one + * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object. + */ + + }, { + key: "callApi", + value: function callApi(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType, apiBasePath) { + var _this3 = this; + + var url = this.buildUrl(path, pathParams, apiBasePath); + var request = (0, _superagent["default"])(httpMethod, url); + + if (this.plugins !== null) { + for (var index in this.plugins) { + if (this.plugins.hasOwnProperty(index)) { + request.use(this.plugins[index]); + } + } + } // apply authentications + + + this.applyAuthToRequest(request, authNames); // set query parameters + + if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { + queryParams['_'] = new Date().getTime(); + } + + request.query(this.normalizeParams(queryParams)); // set header parameters + + request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); // set requestAgent if it is set by user + + if (this.requestAgent) { + request.agent(this.requestAgent); + } // set request timeout + + + request.timeout(this.timeout); + var contentType = this.jsonPreferredMime(contentTypes); + + if (contentType) { + // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) + if (contentType != 'multipart/form-data') { + request.type(contentType); + } + } + + if (contentType === 'application/x-www-form-urlencoded') { + request.send(_querystring["default"].stringify(this.normalizeParams(formParams))); + } else if (contentType == 'multipart/form-data') { + var _formParams = this.normalizeParams(formParams); + + for (var key in _formParams) { + if (_formParams.hasOwnProperty(key)) { + if (this.isFileParam(_formParams[key])) { + // file field + request.attach(key, _formParams[key]); + } else { + request.field(key, _formParams[key]); + } + } + } + } else if (bodyParam !== null && bodyParam !== undefined) { + if (!request.header['Content-Type']) { + request.type('application/json'); + } + + request.send(bodyParam); + } + + var accept = this.jsonPreferredMime(accepts); + + if (accept) { + request.accept(accept); + } + + if (returnType === 'Blob') { + request.responseType('blob'); + } else if (returnType === 'String') { + request.responseType('string'); + } // Attach previously saved cookies, if enabled + + + if (this.enableCookies) { + if (typeof window === 'undefined') { + this.agent._attachCookies(request); + } else { + request.withCredentials(); + } + } + + return new Promise(function (resolve, reject) { + request.end(function (error, response) { + if (error) { + var err = {}; + + if (response) { + err.status = response.status; + err.statusText = response.statusText; + err.body = response.body; + err.response = response; + } + + err.error = error; + reject(err); + } else { + try { + var data = _this3.deserialize(response, returnType); + + if (_this3.enableCookies && typeof window === 'undefined') { + _this3.agent._saveCookies(response); + } + + resolve({ + data: data, + response: response + }); + } catch (err) { + reject(err); + } + } + }); + }); + } + /** + * Parses an ISO-8601 string representation of a date value. + * @param {String} str The date value as a string. + * @returns {Date} The parsed date object. + */ + + }, { + key: "hostSettings", + + /** + * Gets an array of host settings + * @returns An array of host settings + */ + value: function hostSettings() { + return [{ + 'url': "https://api.akeyless.io/", + 'description': "No description provided" + }]; + } + }, { + key: "getBasePathFromSettings", + value: function getBasePathFromSettings(index) { + var variables = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var servers = this.hostSettings(); // check array index out of bound + + if (index < 0 || index >= servers.length) { + throw new Error("Invalid index " + index + " when selecting the host settings. Must be less than " + servers.length); + } + + var server = servers[index]; + var url = server['url']; // go through variable and assign a value + + for (var variable_name in server['variables']) { + if (variable_name in variables) { + var variable = server['variables'][variable_name]; + + if (!('enum_values' in variable) || variable['enum_values'].includes(variables[variable_name])) { + url = url.replace("{" + variable_name + "}", variables[variable_name]); + } else { + throw new Error("The variable `" + variable_name + "` in the host URL has invalid value " + variables[variable_name] + ". Must be " + server['variables'][variable_name]['enum_values'] + "."); + } + } else { + // use default value + url = url.replace("{" + variable_name + "}", server['variables'][variable_name]['default_value']); + } + } + + return url; + } + /** + * Constructs a new map or array model from REST data. + * @param data {Object|Array} The REST data. + * @param obj {Object|Array} The target object or array. + */ + + }], [{ + key: "parseDate", + value: function parseDate(str) { + return new Date(str); + } + /** + * Converts a value to the specified type. + * @param {(String|Object)} data The data to convert, as a string or object. + * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types + * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To + * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: + * all properties on data will be converted to this type. + * @returns An instance of the specified type or null or undefined if data is null or undefined. + */ + + }, { + key: "convertToType", + value: function convertToType(data, type) { + if (data === null || data === undefined) return data; + + switch (type) { + case 'Boolean': + return Boolean(data); + + case 'Integer': + return parseInt(data, 10); + + case 'Number': + return parseFloat(data); + + case 'String': + return String(data); + + case 'Date': + return ApiClient.parseDate(String(data)); + + case 'Blob': + return data; + + default: + if (type === Object) { + // generic object, return directly + return data; + } else if (typeof type.constructFromObject === 'function') { + // for model type like User and enum class + return type.constructFromObject(data); + } else if (Array.isArray(type)) { + // for array type like: ['String'] + var itemType = type[0]; + return data.map(function (item) { + return ApiClient.convertToType(item, itemType); + }); + } else if (_typeof(type) === 'object') { + // for plain object type like: {'String': 'Integer'} + var keyType, valueType; + + for (var k in type) { + if (type.hasOwnProperty(k)) { + keyType = k; + valueType = type[k]; + break; + } + } + + var result = {}; + + for (var k in data) { + if (data.hasOwnProperty(k)) { + var key = ApiClient.convertToType(k, keyType); + var value = ApiClient.convertToType(data[k], valueType); + result[key] = value; + } + } + + return result; + } else { + // for unknown type, return the data directly + return data; + } + + } + } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj, itemType) { + if (Array.isArray(data)) { + for (var i = 0; i < data.length; i++) { + if (data.hasOwnProperty(i)) obj[i] = ApiClient.convertToType(data[i], itemType); + } + } else { + for (var k in data) { + if (data.hasOwnProperty(k)) obj[k] = ApiClient.convertToType(data[k], itemType); + } + } + } + }]); + + return ApiClient; +}(); +/** + * Enumeration of collection format separator strategies. + * @enum {String} + * @readonly + */ + + +ApiClient.CollectionFormatEnum = { + /** + * Comma-separated values. Value: csv + * @const + */ + CSV: ',', + + /** + * Space-separated values. Value: ssv + * @const + */ + SSV: ' ', + + /** + * Tab-separated values. Value: tsv + * @const + */ + TSV: '\t', + + /** + * Pipe(|)-separated values. Value: pipes + * @const + */ + PIPES: '|', + + /** + * Native array. Value: multi + * @const + */ + MULTI: 'multi' +}; +/** +* The default API client implementation. +* @type {module:ApiClient} +*/ + +ApiClient.instance = new ApiClient(); +var _default = ApiClient; +exports["default"] = _default; + +/***/ }), + +/***/ 78207: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +Object.defineProperty(exports, "__esModule", ({value:true}));exports["default"]=void 0;var _ApiClient=_interopRequireDefault(__nccwpck_require__(59327));var _AkeylessGatewayConfig=_interopRequireDefault(__nccwpck_require__(45995));var _AllAnalyticsData=_interopRequireDefault(__nccwpck_require__(80541));var _AllowedAccess=_interopRequireDefault(__nccwpck_require__(61540));var _AssocRoleAuthMethod=_interopRequireDefault(__nccwpck_require__(17378));var _AssocTargetItem=_interopRequireDefault(__nccwpck_require__(68883));var _Auth=_interopRequireDefault(__nccwpck_require__(51330));var _AuthMethod=_interopRequireDefault(__nccwpck_require__(52187));var _AuthOutput=_interopRequireDefault(__nccwpck_require__(68871));var _BastionsList=_interopRequireDefault(__nccwpck_require__(34873));var _Configure=_interopRequireDefault(__nccwpck_require__(2610));var _ConfigureOutput=_interopRequireDefault(__nccwpck_require__(6103));var _Connect=_interopRequireDefault(__nccwpck_require__(92264));var _CreateAWSTarget=_interopRequireDefault(__nccwpck_require__(69350));var _CreateAWSTargetOutput=_interopRequireDefault(__nccwpck_require__(30851));var _CreateArtifactoryTarget=_interopRequireDefault(__nccwpck_require__(87961));var _CreateArtifactoryTargetOutput=_interopRequireDefault(__nccwpck_require__(85020));var _CreateAuthMethod=_interopRequireDefault(__nccwpck_require__(97067));var _CreateAuthMethodAWSIAM=_interopRequireDefault(__nccwpck_require__(39317));var _CreateAuthMethodAWSIAMOutput=_interopRequireDefault(__nccwpck_require__(29184));var _CreateAuthMethodAzureAD=_interopRequireDefault(__nccwpck_require__(47553));var _CreateAuthMethodAzureADOutput=_interopRequireDefault(__nccwpck_require__(40820));var _CreateAuthMethodCert=_interopRequireDefault(__nccwpck_require__(9265));var _CreateAuthMethodCertOutput=_interopRequireDefault(__nccwpck_require__(64228));var _CreateAuthMethodEmail=_interopRequireDefault(__nccwpck_require__(42003));var _CreateAuthMethodEmailOutput=_interopRequireDefault(__nccwpck_require__(20898));var _CreateAuthMethodGCP=_interopRequireDefault(__nccwpck_require__(26285));var _CreateAuthMethodGCPOutput=_interopRequireDefault(__nccwpck_require__(62664));var _CreateAuthMethodHuawei=_interopRequireDefault(__nccwpck_require__(96274));var _CreateAuthMethodHuaweiOutput=_interopRequireDefault(__nccwpck_require__(90359));var _CreateAuthMethodK8S=_interopRequireDefault(__nccwpck_require__(39443));var _CreateAuthMethodK8SOutput=_interopRequireDefault(__nccwpck_require__(7586));var _CreateAuthMethodLDAP=_interopRequireDefault(__nccwpck_require__(10158));var _CreateAuthMethodLDAPOutput=_interopRequireDefault(__nccwpck_require__(85019));var _CreateAuthMethodOAuth=_interopRequireDefault(__nccwpck_require__(46424));var _CreateAuthMethodOAuth2Output=_interopRequireDefault(__nccwpck_require__(60689));var _CreateAuthMethodOCI=_interopRequireDefault(__nccwpck_require__(95038));var _CreateAuthMethodOCIOutput=_interopRequireDefault(__nccwpck_require__(98027));var _CreateAuthMethodOIDC=_interopRequireDefault(__nccwpck_require__(94918));var _CreateAuthMethodOIDCOutput=_interopRequireDefault(__nccwpck_require__(56259));var _CreateAuthMethodOutput=_interopRequireDefault(__nccwpck_require__(55338));var _CreateAuthMethodSAML=_interopRequireDefault(__nccwpck_require__(33710));var _CreateAuthMethodSAMLOutput=_interopRequireDefault(__nccwpck_require__(41307));var _CreateAuthMethodUniversalIdentity=_interopRequireDefault(__nccwpck_require__(73904));var _CreateAuthMethodUniversalIdentityOutput=_interopRequireDefault(__nccwpck_require__(33625));var _CreateAzureTarget=_interopRequireDefault(__nccwpck_require__(46492));var _CreateAzureTargetOutput=_interopRequireDefault(__nccwpck_require__(67837));var _CreateCertificate=_interopRequireDefault(__nccwpck_require__(54713));var _CreateCertificateOutput=_interopRequireDefault(__nccwpck_require__(9916));var _CreateClassicKey=_interopRequireDefault(__nccwpck_require__(85575));var _CreateClassicKeyOutput=_interopRequireDefault(__nccwpck_require__(87166));var _CreateDBTarget=_interopRequireDefault(__nccwpck_require__(84315));var _CreateDBTargetOutput=_interopRequireDefault(__nccwpck_require__(90170));var _CreateDFCKey=_interopRequireDefault(__nccwpck_require__(19450));var _CreateDFCKeyOutput=_interopRequireDefault(__nccwpck_require__(71247));var _CreateDockerhubTarget=_interopRequireDefault(__nccwpck_require__(17396));var _CreateDockerhubTargetOutput=_interopRequireDefault(__nccwpck_require__(19845));var _CreateDynamicSecret=_interopRequireDefault(__nccwpck_require__(78607));var _CreateEKSTarget=_interopRequireDefault(__nccwpck_require__(25086));var _CreateEKSTargetOutput=_interopRequireDefault(__nccwpck_require__(67307));var _CreateESM=_interopRequireDefault(__nccwpck_require__(87617));var _CreateESMOutput=_interopRequireDefault(__nccwpck_require__(64564));var _CreateEventForwarder=_interopRequireDefault(__nccwpck_require__(55910));var _CreateEventForwarderOutput=_interopRequireDefault(__nccwpck_require__(91555));var _CreateGKETarget=_interopRequireDefault(__nccwpck_require__(3302));var _CreateGKETargetOutput=_interopRequireDefault(__nccwpck_require__(15235));var _CreateGcpTarget=_interopRequireDefault(__nccwpck_require__(38705));var _CreateGcpTargetOutput=_interopRequireDefault(__nccwpck_require__(39108));var _CreateGithubTarget=_interopRequireDefault(__nccwpck_require__(28702));var _CreateGithubTargetOutput=_interopRequireDefault(__nccwpck_require__(6731));var _CreateGlobalSignAtlasTarget=_interopRequireDefault(__nccwpck_require__(45966));var _CreateGlobalSignAtlasTargetOutput=_interopRequireDefault(__nccwpck_require__(315));var _CreateGlobalSignTarget=_interopRequireDefault(__nccwpck_require__(63799));var _CreateGlobalSignTargetOutput=_interopRequireDefault(__nccwpck_require__(41550));var _CreateGodaddyTarget=_interopRequireDefault(__nccwpck_require__(71167));var _CreateGodaddyTargetOutput=_interopRequireDefault(__nccwpck_require__(83238));var _CreateGroup=_interopRequireDefault(__nccwpck_require__(37089));var _CreateGroupOutput=_interopRequireDefault(__nccwpck_require__(96628));var _CreateKey=_interopRequireDefault(__nccwpck_require__(59569));var _CreateKeyOutput=_interopRequireDefault(__nccwpck_require__(92036));var _CreateLdapTarget=_interopRequireDefault(__nccwpck_require__(12279));var _CreateLdapTargetOutput=_interopRequireDefault(__nccwpck_require__(24309));var _CreateLinkedTarget=_interopRequireDefault(__nccwpck_require__(91736));var _CreateLinkedTargetOutput=_interopRequireDefault(__nccwpck_require__(45297));var _CreateNativeK8STarget=_interopRequireDefault(__nccwpck_require__(36798));var _CreateNativeK8STargetOutput=_interopRequireDefault(__nccwpck_require__(15947));var _CreateOidcApp=_interopRequireDefault(__nccwpck_require__(18538));var _CreateOidcAppOutput=_interopRequireDefault(__nccwpck_require__(41695));var _CreatePKICertIssuer=_interopRequireDefault(__nccwpck_require__(10515));var _CreatePKICertIssuerOutput=_interopRequireDefault(__nccwpck_require__(70178));var _CreatePingTarget=_interopRequireDefault(__nccwpck_require__(17729));var _CreatePingTargetOutput=_interopRequireDefault(__nccwpck_require__(83860));var _CreateRabbitMQTarget=_interopRequireDefault(__nccwpck_require__(28099));var _CreateRabbitMQTargetOutput=_interopRequireDefault(__nccwpck_require__(64274));var _CreateRole=_interopRequireDefault(__nccwpck_require__(36904));var _CreateRoleAuthMethodAssocOutput=_interopRequireDefault(__nccwpck_require__(41569));var _CreateRotatedSecret=_interopRequireDefault(__nccwpck_require__(25203));var _CreateRotatedSecretOutput=_interopRequireDefault(__nccwpck_require__(89634));var _CreateSSHCertIssuer=_interopRequireDefault(__nccwpck_require__(1985));var _CreateSSHCertIssuerOutput=_interopRequireDefault(__nccwpck_require__(84148));var _CreateSSHTarget=_interopRequireDefault(__nccwpck_require__(70101));var _CreateSSHTargetOutput=_interopRequireDefault(__nccwpck_require__(98560));var _CreateSalesforceTarget=_interopRequireDefault(__nccwpck_require__(89382));var _CreateSalesforceTargetOutput=_interopRequireDefault(__nccwpck_require__(63395));var _CreateSecret=_interopRequireDefault(__nccwpck_require__(48156));var _CreateSecretOutput=_interopRequireDefault(__nccwpck_require__(2397));var _CreateTargetItemAssocOutput=_interopRequireDefault(__nccwpck_require__(24022));var _CreateTokenizer=_interopRequireDefault(__nccwpck_require__(85747));var _CreateTokenizerOutput=_interopRequireDefault(__nccwpck_require__(77602));var _CreateUSC=_interopRequireDefault(__nccwpck_require__(59331));var _CreateUSCOutput=_interopRequireDefault(__nccwpck_require__(7634));var _CreateUserEvent=_interopRequireDefault(__nccwpck_require__(56891));var _CreateUserEventOutput=_interopRequireDefault(__nccwpck_require__(90618));var _CreateWebTarget=_interopRequireDefault(__nccwpck_require__(95805));var _CreateWebTargetOutput=_interopRequireDefault(__nccwpck_require__(38200));var _CreateWindowsTarget=_interopRequireDefault(__nccwpck_require__(61054));var _CreateWindowsTargetOutput=_interopRequireDefault(__nccwpck_require__(76267));var _CreateZeroSSLTarget=_interopRequireDefault(__nccwpck_require__(84899));var _CreateZeroSSLTargetOutput=_interopRequireDefault(__nccwpck_require__(43026));var _DSProducerDetails=_interopRequireDefault(__nccwpck_require__(50601));var _Decrypt=_interopRequireDefault(__nccwpck_require__(25823));var _DecryptGPG=_interopRequireDefault(__nccwpck_require__(61391));var _DecryptGPGOutput=_interopRequireDefault(__nccwpck_require__(64758));var _DecryptOutput=_interopRequireDefault(__nccwpck_require__(88134));var _DecryptPKCS=_interopRequireDefault(__nccwpck_require__(61013));var _DecryptPKCS1Output=_interopRequireDefault(__nccwpck_require__(88320));var _DecryptWithClassicKey=_interopRequireDefault(__nccwpck_require__(90932));var _DecryptWithClassicKeyOutput=_interopRequireDefault(__nccwpck_require__(48133));var _DeleteAuthMethod=_interopRequireDefault(__nccwpck_require__(63388));var _DeleteAuthMethodOutput=_interopRequireDefault(__nccwpck_require__(85245));var _DeleteAuthMethods=_interopRequireDefault(__nccwpck_require__(10611));var _DeleteAuthMethodsOutput=_interopRequireDefault(__nccwpck_require__(76162));var _DeleteEventForwarder=_interopRequireDefault(__nccwpck_require__(85877));var _DeleteGatewayAllowedAccessId=_interopRequireDefault(__nccwpck_require__(36438));var _DeleteGroup=_interopRequireDefault(__nccwpck_require__(79900));var _DeleteGroupOutput=_interopRequireDefault(__nccwpck_require__(97885));var _DeleteGwCluster=_interopRequireDefault(__nccwpck_require__(74979));var _DeleteItem=_interopRequireDefault(__nccwpck_require__(55440));var _DeleteItemOutput=_interopRequireDefault(__nccwpck_require__(44409));var _DeleteItems=_interopRequireDefault(__nccwpck_require__(83663));var _DeleteItemsOutput=_interopRequireDefault(__nccwpck_require__(79478));var _DeleteRole=_interopRequireDefault(__nccwpck_require__(13059));var _DeleteRoleAssociation=_interopRequireDefault(__nccwpck_require__(56192));var _DeleteRoleRule=_interopRequireDefault(__nccwpck_require__(99117));var _DeleteRoleRuleOutput=_interopRequireDefault(__nccwpck_require__(98120));var _DeleteRoles=_interopRequireDefault(__nccwpck_require__(49222));var _DeleteTarget=_interopRequireDefault(__nccwpck_require__(93094));var _DeleteTargetAssociation=_interopRequireDefault(__nccwpck_require__(36747));var _DeleteTargets=_interopRequireDefault(__nccwpck_require__(22509));var _DeriveKey=_interopRequireDefault(__nccwpck_require__(69284));var _DeriveKeyOutput=_interopRequireDefault(__nccwpck_require__(4117));var _DescribeAssoc=_interopRequireDefault(__nccwpck_require__(80258));var _DescribeItem=_interopRequireDefault(__nccwpck_require__(96290));var _DescribePermissions=_interopRequireDefault(__nccwpck_require__(5013));var _DescribePermissionsOutput=_interopRequireDefault(__nccwpck_require__(88032));var _DescribeSubClaims=_interopRequireDefault(__nccwpck_require__(57046));var _DescribeSubClaimsOutput=_interopRequireDefault(__nccwpck_require__(15891));var _Detokenize=_interopRequireDefault(__nccwpck_require__(97122));var _DetokenizeOutput=_interopRequireDefault(__nccwpck_require__(84807));var _DynamicSecretCreateArtifactory=_interopRequireDefault(__nccwpck_require__(42057));var _DynamicSecretCreateAws=_interopRequireDefault(__nccwpck_require__(77442));var _DynamicSecretCreateAzure=_interopRequireDefault(__nccwpck_require__(19784));var _DynamicSecretCreateCassandra=_interopRequireDefault(__nccwpck_require__(20425));var _DynamicSecretCreateCustom=_interopRequireDefault(__nccwpck_require__(28052));var _DynamicSecretCreateDockerhub=_interopRequireDefault(__nccwpck_require__(20476));var _DynamicSecretCreateEks=_interopRequireDefault(__nccwpck_require__(930));var _DynamicSecretCreateGcp=_interopRequireDefault(__nccwpck_require__(49861));var _DynamicSecretCreateGithub=_interopRequireDefault(__nccwpck_require__(81984));var _DynamicSecretCreateGke=_interopRequireDefault(__nccwpck_require__(86274));var _DynamicSecretCreateHanaDb=_interopRequireDefault(__nccwpck_require__(57451));var _DynamicSecretCreateK8s=_interopRequireDefault(__nccwpck_require__(17387));var _DynamicSecretCreateLdap=_interopRequireDefault(__nccwpck_require__(85446));var _DynamicSecretCreateMongoDb=_interopRequireDefault(__nccwpck_require__(34721));var _DynamicSecretCreateMsSql=_interopRequireDefault(__nccwpck_require__(8267));var _DynamicSecretCreateMySql=_interopRequireDefault(__nccwpck_require__(9317));var _DynamicSecretCreateOracleDb=_interopRequireDefault(__nccwpck_require__(62299));var _DynamicSecretCreateOutput=_interopRequireDefault(__nccwpck_require__(32898));var _DynamicSecretCreatePing=_interopRequireDefault(__nccwpck_require__(88331));var _DynamicSecretCreatePostgreSql=_interopRequireDefault(__nccwpck_require__(50577));var _DynamicSecretCreateRabbitMq=_interopRequireDefault(__nccwpck_require__(92377));var _DynamicSecretCreateRdp=_interopRequireDefault(__nccwpck_require__(43849));var _DynamicSecretCreateRedis=_interopRequireDefault(__nccwpck_require__(33092));var _DynamicSecretCreateRedshift=_interopRequireDefault(__nccwpck_require__(87426));var _DynamicSecretCreateSnowflake=_interopRequireDefault(__nccwpck_require__(61111));var _DynamicSecretCreateVenafi=_interopRequireDefault(__nccwpck_require__(49390));var _DynamicSecretDelete=_interopRequireDefault(__nccwpck_require__(73872));var _DynamicSecretDeleteOutput=_interopRequireDefault(__nccwpck_require__(92057));var _DynamicSecretGetValue=_interopRequireDefault(__nccwpck_require__(42958));var _DynamicSecretList=_interopRequireDefault(__nccwpck_require__(6343));var _DynamicSecretTmpCredsDelete=_interopRequireDefault(__nccwpck_require__(41262));var _DynamicSecretTmpCredsGet=_interopRequireDefault(__nccwpck_require__(68697));var _DynamicSecretTmpCredsUpdate=_interopRequireDefault(__nccwpck_require__(85584));var _DynamicSecretUpdateArtifactory=_interopRequireDefault(__nccwpck_require__(87534));var _DynamicSecretUpdateAws=_interopRequireDefault(__nccwpck_require__(79205));var _DynamicSecretUpdateAzure=_interopRequireDefault(__nccwpck_require__(43971));var _DynamicSecretUpdateCassandra=_interopRequireDefault(__nccwpck_require__(49178));var _DynamicSecretUpdateCustom=_interopRequireDefault(__nccwpck_require__(18573));var _DynamicSecretUpdateDockerhub=_interopRequireDefault(__nccwpck_require__(20303));var _DynamicSecretUpdateEks=_interopRequireDefault(__nccwpck_require__(41477));var _DynamicSecretUpdateGcp=_interopRequireDefault(__nccwpck_require__(66754));var _DynamicSecretUpdateGithub=_interopRequireDefault(__nccwpck_require__(22985));var _DynamicSecretUpdateGke=_interopRequireDefault(__nccwpck_require__(30389));var _DynamicSecretUpdateHanaDb=_interopRequireDefault(__nccwpck_require__(3270));var _DynamicSecretUpdateK8s=_interopRequireDefault(__nccwpck_require__(18976));var _DynamicSecretUpdateLdap=_interopRequireDefault(__nccwpck_require__(72708));var _DynamicSecretUpdateMongoDb=_interopRequireDefault(__nccwpck_require__(77150));var _DynamicSecretUpdateMsSql=_interopRequireDefault(__nccwpck_require__(67604));var _DynamicSecretUpdateMySql=_interopRequireDefault(__nccwpck_require__(12690));var _DynamicSecretUpdateOracleDb=_interopRequireDefault(__nccwpck_require__(39678));var _DynamicSecretUpdateOutput=_interopRequireDefault(__nccwpck_require__(56847));var _DynamicSecretUpdatePing=_interopRequireDefault(__nccwpck_require__(16662));var _DynamicSecretUpdatePostgreSql=_interopRequireDefault(__nccwpck_require__(39708));var _DynamicSecretUpdateRabbitMq=_interopRequireDefault(__nccwpck_require__(36628));var _DynamicSecretUpdateRdp=_interopRequireDefault(__nccwpck_require__(25030));var _DynamicSecretUpdateRedis=_interopRequireDefault(__nccwpck_require__(46287));var _DynamicSecretUpdateRedshift=_interopRequireDefault(__nccwpck_require__(71099));var _DynamicSecretUpdateSnowflake=_interopRequireDefault(__nccwpck_require__(51976));var _DynamicSecretUpdateVenafi=_interopRequireDefault(__nccwpck_require__(17323));var _Encrypt=_interopRequireDefault(__nccwpck_require__(24155));var _EncryptGPG=_interopRequireDefault(__nccwpck_require__(81299));var _EncryptGPGOutput=_interopRequireDefault(__nccwpck_require__(71906));var _EncryptOutput=_interopRequireDefault(__nccwpck_require__(74426));var _EncryptWithClassicKey=_interopRequireDefault(__nccwpck_require__(80064));var _EsmCreate=_interopRequireDefault(__nccwpck_require__(69101));var _EsmCreateSecretOutput=_interopRequireDefault(__nccwpck_require__(37808));var _EsmDelete=_interopRequireDefault(__nccwpck_require__(26602));var _EsmDeleteSecretOutput=_interopRequireDefault(__nccwpck_require__(99707));var _EsmGet=_interopRequireDefault(__nccwpck_require__(1541));var _EsmGetSecretOutput=_interopRequireDefault(__nccwpck_require__(13496));var _EsmList=_interopRequireDefault(__nccwpck_require__(59317));var _EsmListSecretsOutput=_interopRequireDefault(__nccwpck_require__(63233));var _EsmUpdate=_interopRequireDefault(__nccwpck_require__(29564));var _EsmUpdateSecretOutput=_interopRequireDefault(__nccwpck_require__(45309));var _EventAction=_interopRequireDefault(__nccwpck_require__(73404));var _EventForwarderCreateEmail=_interopRequireDefault(__nccwpck_require__(39252));var _EventForwarderCreateServiceNow=_interopRequireDefault(__nccwpck_require__(66787));var _EventForwarderCreateSlack=_interopRequireDefault(__nccwpck_require__(60868));var _EventForwarderCreateUpdateOutput=_interopRequireDefault(__nccwpck_require__(80474));var _EventForwarderCreateWebhook=_interopRequireDefault(__nccwpck_require__(15929));var _EventForwarderDelete=_interopRequireDefault(__nccwpck_require__(22077));var _EventForwarderDeleteOutput=_interopRequireDefault(__nccwpck_require__(54520));var _EventForwarderGet=_interopRequireDefault(__nccwpck_require__(7172));var _EventForwarderGetOutput=_interopRequireDefault(__nccwpck_require__(85749));var _EventForwarderUpdateEmail=_interopRequireDefault(__nccwpck_require__(18163));var _EventForwarderUpdateServiceNow=_interopRequireDefault(__nccwpck_require__(32026));var _EventForwarderUpdateSlack=_interopRequireDefault(__nccwpck_require__(79995));var _EventForwarderUpdateWebhook=_interopRequireDefault(__nccwpck_require__(46086));var _ExportClassicKey=_interopRequireDefault(__nccwpck_require__(91005));var _ExportClassicKeyOutput=_interopRequireDefault(__nccwpck_require__(52248));var _GatewayCreateAllowedAccess=_interopRequireDefault(__nccwpck_require__(17300));var _GatewayCreateK8SAuthConfig=_interopRequireDefault(__nccwpck_require__(30862));var _GatewayCreateK8SAuthConfigOutput=_interopRequireDefault(__nccwpck_require__(38267));var _GatewayCreateMigration=_interopRequireDefault(__nccwpck_require__(23658));var _GatewayCreateProducerArtifactory=_interopRequireDefault(__nccwpck_require__(41510));var _GatewayCreateProducerArtifactoryOutput=_interopRequireDefault(__nccwpck_require__(55523));var _GatewayCreateProducerAws=_interopRequireDefault(__nccwpck_require__(45677));var _GatewayCreateProducerAwsOutput=_interopRequireDefault(__nccwpck_require__(98248));var _GatewayCreateProducerAzure=_interopRequireDefault(__nccwpck_require__(84283));var _GatewayCreateProducerAzureOutput=_interopRequireDefault(__nccwpck_require__(35770));var _GatewayCreateProducerCassandra=_interopRequireDefault(__nccwpck_require__(53266));var _GatewayCreateProducerCassandraOutput=_interopRequireDefault(__nccwpck_require__(43031));var _GatewayCreateProducerChef=_interopRequireDefault(__nccwpck_require__(81410));var _GatewayCreateProducerChefOutput=_interopRequireDefault(__nccwpck_require__(74951));var _GatewayCreateProducerCustom=_interopRequireDefault(__nccwpck_require__(91173));var _GatewayCreateProducerCustomOutput=_interopRequireDefault(__nccwpck_require__(24592));var _GatewayCreateProducerDockerhub=_interopRequireDefault(__nccwpck_require__(3207));var _GatewayCreateProducerDockerhubOutput=_interopRequireDefault(__nccwpck_require__(89470));var _GatewayCreateProducerEks=_interopRequireDefault(__nccwpck_require__(82045));var _GatewayCreateProducerEksOutput=_interopRequireDefault(__nccwpck_require__(93688));var _GatewayCreateProducerGcp=_interopRequireDefault(__nccwpck_require__(19050));var _GatewayCreateProducerGcpOutput=_interopRequireDefault(__nccwpck_require__(4767));var _GatewayCreateProducerGithub=_interopRequireDefault(__nccwpck_require__(15521));var _GatewayCreateProducerGithubOutput=_interopRequireDefault(__nccwpck_require__(67988));var _GatewayCreateProducerGke=_interopRequireDefault(__nccwpck_require__(43341));var _GatewayCreateProducerGkeOutput=_interopRequireDefault(__nccwpck_require__(12136));var _GatewayCreateProducerHanaDb=_interopRequireDefault(__nccwpck_require__(77662));var _GatewayCreateProducerHanaDbOutput=_interopRequireDefault(__nccwpck_require__(69707));var _GatewayCreateProducerLdap=_interopRequireDefault(__nccwpck_require__(74815));var _GatewayCreateProducerLdapOutput=_interopRequireDefault(__nccwpck_require__(53382));var _GatewayCreateProducerMSSQL=_interopRequireDefault(__nccwpck_require__(91036));var _GatewayCreateProducerMSSQLOutput=_interopRequireDefault(__nccwpck_require__(91709));var _GatewayCreateProducerMongo=_interopRequireDefault(__nccwpck_require__(84176));var _GatewayCreateProducerMongoOutput=_interopRequireDefault(__nccwpck_require__(27257));var _GatewayCreateProducerMySQL=_interopRequireDefault(__nccwpck_require__(20490));var _GatewayCreateProducerMySQLOutput=_interopRequireDefault(__nccwpck_require__(37983));var _GatewayCreateProducerNativeK8S=_interopRequireDefault(__nccwpck_require__(50589));var _GatewayCreateProducerNativeK8SOutput=_interopRequireDefault(__nccwpck_require__(4408));var _GatewayCreateProducerOracleDb=_interopRequireDefault(__nccwpck_require__(11382));var _GatewayCreateProducerOracleDbOutput=_interopRequireDefault(__nccwpck_require__(92499));var _GatewayCreateProducerPing=_interopRequireDefault(__nccwpck_require__(29262));var _GatewayCreateProducerPingOutput=_interopRequireDefault(__nccwpck_require__(7579));var _GatewayCreateProducerPostgreSQL=_interopRequireDefault(__nccwpck_require__(42452));var _GatewayCreateProducerPostgreSQLOutput=_interopRequireDefault(__nccwpck_require__(84613));var _GatewayCreateProducerRabbitMQ=_interopRequireDefault(__nccwpck_require__(57964));var _GatewayCreateProducerRabbitMQOutput=_interopRequireDefault(__nccwpck_require__(57357));var _GatewayCreateProducerRdp=_interopRequireDefault(__nccwpck_require__(40686));var _GatewayCreateProducerRdpOutput=_interopRequireDefault(__nccwpck_require__(1915));var _GatewayCreateProducerRedis=_interopRequireDefault(__nccwpck_require__(30759));var _GatewayCreateProducerRedisOutput=_interopRequireDefault(__nccwpck_require__(69950));var _GatewayCreateProducerRedshift=_interopRequireDefault(__nccwpck_require__(84307));var _GatewayCreateProducerRedshiftOutput=_interopRequireDefault(__nccwpck_require__(51074));var _GatewayCreateProducerSnowflake=_interopRequireDefault(__nccwpck_require__(59024));var _GatewayCreateProducerSnowflakeOutput=_interopRequireDefault(__nccwpck_require__(35609));var _GatewayCreateProducerVenafi=_interopRequireDefault(__nccwpck_require__(66051));var _GatewayCreateProducerVenafiOutput=_interopRequireDefault(__nccwpck_require__(52274));var _GatewayDeleteAllowedAccess=_interopRequireDefault(__nccwpck_require__(99401));var _GatewayDeleteAllowedAccessOutput=_interopRequireDefault(__nccwpck_require__(98572));var _GatewayDeleteK8SAuthConfig=_interopRequireDefault(__nccwpck_require__(48163));var _GatewayDeleteK8SAuthConfigOutput=_interopRequireDefault(__nccwpck_require__(3506));var _GatewayDeleteMigration=_interopRequireDefault(__nccwpck_require__(92895));var _GatewayDeleteProducer=_interopRequireDefault(__nccwpck_require__(24177));var _GatewayDeleteProducerOutput=_interopRequireDefault(__nccwpck_require__(31236));var _GatewayDownloadCustomerFragments=_interopRequireDefault(__nccwpck_require__(70355));var _GatewayDownloadCustomerFragmentsOutput=_interopRequireDefault(__nccwpck_require__(62210));var _GatewayGetAllowedAccess=_interopRequireDefault(__nccwpck_require__(99262));var _GatewayGetConfig=_interopRequireDefault(__nccwpck_require__(16048));var _GatewayGetK8SAuthConfig=_interopRequireDefault(__nccwpck_require__(12748));var _GatewayGetK8SAuthConfigOutput=_interopRequireDefault(__nccwpck_require__(5645));var _GatewayGetLdapAuthConfig=_interopRequireDefault(__nccwpck_require__(3495));var _GatewayGetLdapAuthConfigOutput=_interopRequireDefault(__nccwpck_require__(79454));var _GatewayGetMigration=_interopRequireDefault(__nccwpck_require__(41484));var _GatewayGetProducer=_interopRequireDefault(__nccwpck_require__(51523));var _GatewayGetTmpUsers=_interopRequireDefault(__nccwpck_require__(70701));var _GatewayListMigration=_interopRequireDefault(__nccwpck_require__(2946));var _GatewayListProducers=_interopRequireDefault(__nccwpck_require__(92425));var _GatewayListRotatedSecrets=_interopRequireDefault(__nccwpck_require__(74718));var _GatewayMigratePersonalItems=_interopRequireDefault(__nccwpck_require__(22791));var _GatewayMigratePersonalItemsOutput=_interopRequireDefault(__nccwpck_require__(70462));var _GatewayMigrationCreateOutput=_interopRequireDefault(__nccwpck_require__(19863));var _GatewayMigrationDeleteOutput=_interopRequireDefault(__nccwpck_require__(16996));var _GatewayMigrationGetOutput=_interopRequireDefault(__nccwpck_require__(90097));var _GatewayMigrationListOutput=_interopRequireDefault(__nccwpck_require__(80859));var _GatewayMigrationSyncOutput=_interopRequireDefault(__nccwpck_require__(10052));var _GatewayMigrationUpdateOutput=_interopRequireDefault(__nccwpck_require__(90294));var _GatewayRevokeTmpUsers=_interopRequireDefault(__nccwpck_require__(20353));var _GatewayStartProducer=_interopRequireDefault(__nccwpck_require__(81196));var _GatewayStartProducerOutput=_interopRequireDefault(__nccwpck_require__(66477));var _GatewayStatusMigration=_interopRequireDefault(__nccwpck_require__(32708));var _GatewayStopProducer=_interopRequireDefault(__nccwpck_require__(55242));var _GatewayStopProducerOutput=_interopRequireDefault(__nccwpck_require__(74239));var _GatewaySyncMigration=_interopRequireDefault(__nccwpck_require__(93147));var _GatewayUpdateAllowedAccess=_interopRequireDefault(__nccwpck_require__(60395));var _GatewayUpdateItem=_interopRequireDefault(__nccwpck_require__(88678));var _GatewayUpdateItemOutput=_interopRequireDefault(__nccwpck_require__(11235));var _GatewayUpdateK8SAuthConfig=_interopRequireDefault(__nccwpck_require__(88681));var _GatewayUpdateK8SAuthConfigOutput=_interopRequireDefault(__nccwpck_require__(74380));var _GatewayUpdateLdapAuthConfig=_interopRequireDefault(__nccwpck_require__(36544));var _GatewayUpdateLdapAuthConfigOutput=_interopRequireDefault(__nccwpck_require__(20489));var _GatewayUpdateMigration=_interopRequireDefault(__nccwpck_require__(22313));var _GatewayUpdateProducerArtifactory=_interopRequireDefault(__nccwpck_require__(72781));var _GatewayUpdateProducerArtifactoryOutput=_interopRequireDefault(__nccwpck_require__(92424));var _GatewayUpdateProducerAws=_interopRequireDefault(__nccwpck_require__(2334));var _GatewayUpdateProducerAwsOutput=_interopRequireDefault(__nccwpck_require__(55019));var _GatewayUpdateProducerAzure=_interopRequireDefault(__nccwpck_require__(97644));var _GatewayUpdateProducerAzureOutput=_interopRequireDefault(__nccwpck_require__(97773));var _GatewayUpdateProducerCassandra=_interopRequireDefault(__nccwpck_require__(82093));var _GatewayUpdateProducerCassandraOutput=_interopRequireDefault(__nccwpck_require__(4328));var _GatewayUpdateProducerChef=_interopRequireDefault(__nccwpck_require__(98899));var _GatewayUpdateProducerChefOutput=_interopRequireDefault(__nccwpck_require__(85442));var _GatewayUpdateProducerCustom=_interopRequireDefault(__nccwpck_require__(40320));var _GatewayUpdateProducerCustomOutput=_interopRequireDefault(__nccwpck_require__(28777));var _GatewayUpdateProducerDockerhub=_interopRequireDefault(__nccwpck_require__(63280));var _GatewayUpdateProducerDockerhubOutput=_interopRequireDefault(__nccwpck_require__(14201));var _GatewayUpdateProducerEks=_interopRequireDefault(__nccwpck_require__(32382));var _GatewayUpdateProducerEksOutput=_interopRequireDefault(__nccwpck_require__(11115));var _GatewayUpdateProducerGcp=_interopRequireDefault(__nccwpck_require__(20241));var _GatewayUpdateProducerGcpOutput=_interopRequireDefault(__nccwpck_require__(75972));var _GatewayUpdateProducerGithub=_interopRequireDefault(__nccwpck_require__(92212));var _GatewayUpdateProducerGithubOutput=_interopRequireDefault(__nccwpck_require__(86213));var _GatewayUpdateProducerGke=_interopRequireDefault(__nccwpck_require__(25062));var _GatewayUpdateProducerGkeOutput=_interopRequireDefault(__nccwpck_require__(46467));var _GatewayUpdateProducerHanaDb=_interopRequireDefault(__nccwpck_require__(88599));var _GatewayUpdateProducerHanaDbOutput=_interopRequireDefault(__nccwpck_require__(44014));var _GatewayUpdateProducerLdap=_interopRequireDefault(__nccwpck_require__(65026));var _GatewayUpdateProducerLdapOutput=_interopRequireDefault(__nccwpck_require__(45863));var _GatewayUpdateProducerMSSQL=_interopRequireDefault(__nccwpck_require__(43407));var _GatewayUpdateProducerMSSQLOutput=_interopRequireDefault(__nccwpck_require__(8726));var _GatewayUpdateProducerMongo=_interopRequireDefault(__nccwpck_require__(24975));var _GatewayUpdateProducerMongoOutput=_interopRequireDefault(__nccwpck_require__(38390));var _GatewayUpdateProducerMySQL=_interopRequireDefault(__nccwpck_require__(50937));var _GatewayUpdateProducerMySQLOutput=_interopRequireDefault(__nccwpck_require__(7548));var _GatewayUpdateProducerNativeK8S=_interopRequireDefault(__nccwpck_require__(47170));var _GatewayUpdateProducerNativeK8SOutput=_interopRequireDefault(__nccwpck_require__(80839));var _GatewayUpdateProducerOracleDb=_interopRequireDefault(__nccwpck_require__(9399));var _GatewayUpdateProducerOracleDbOutput=_interopRequireDefault(__nccwpck_require__(97550));var _GatewayUpdateProducerPing=_interopRequireDefault(__nccwpck_require__(2311));var _GatewayUpdateProducerPingOutput=_interopRequireDefault(__nccwpck_require__(82046));var _GatewayUpdateProducerPostgreSQL=_interopRequireDefault(__nccwpck_require__(42517));var _GatewayUpdateProducerPostgreSQLOutput=_interopRequireDefault(__nccwpck_require__(41024));var _GatewayUpdateProducerRabbitMQ=_interopRequireDefault(__nccwpck_require__(70229));var _GatewayUpdateProducerRabbitMQOutput=_interopRequireDefault(__nccwpck_require__(13216));var _GatewayUpdateProducerRdp=_interopRequireDefault(__nccwpck_require__(47813));var _GatewayUpdateProducerRdpOutput=_interopRequireDefault(__nccwpck_require__(73488));var _GatewayUpdateProducerRedis=_interopRequireDefault(__nccwpck_require__(75080));var _GatewayUpdateProducerRedisOutput=_interopRequireDefault(__nccwpck_require__(79073));var _GatewayUpdateProducerRedshift=_interopRequireDefault(__nccwpck_require__(73230));var _GatewayUpdateProducerRedshiftOutput=_interopRequireDefault(__nccwpck_require__(50171));var _GatewayUpdateProducerSnowflake=_interopRequireDefault(__nccwpck_require__(92043));var _GatewayUpdateProducerSnowflakeOutput=_interopRequireDefault(__nccwpck_require__(78122));var _GatewayUpdateProducerVenafi=_interopRequireDefault(__nccwpck_require__(29402));var _GatewayUpdateProducerVenafiOutput=_interopRequireDefault(__nccwpck_require__(83983));var _GatewayUpdateTlsCert=_interopRequireDefault(__nccwpck_require__(89886));var _GatewayUpdateTlsCertOutput=_interopRequireDefault(__nccwpck_require__(49259));var _GatewayUpdateTmpUsers=_interopRequireDefault(__nccwpck_require__(98074));var _GatewaysListResponse=_interopRequireDefault(__nccwpck_require__(34840));var _GenerateCsr=_interopRequireDefault(__nccwpck_require__(87627));var _GenerateCsrOutput=_interopRequireDefault(__nccwpck_require__(85130));var _GetAccountSettings=_interopRequireDefault(__nccwpck_require__(46150));var _GetAccountSettingsCommandOutput=_interopRequireDefault(__nccwpck_require__(61968));var _GetAnalyticsData=_interopRequireDefault(__nccwpck_require__(28084));var _GetAuthMethod=_interopRequireDefault(__nccwpck_require__(19101));var _GetCertificateValue=_interopRequireDefault(__nccwpck_require__(25574));var _GetCertificateValueOutput=_interopRequireDefault(__nccwpck_require__(54819));var _GetDynamicSecretValue=_interopRequireDefault(__nccwpck_require__(17840));var _GetEventForwarder=_interopRequireDefault(__nccwpck_require__(7183));var _GetEventForwarderOutput=_interopRequireDefault(__nccwpck_require__(31549));var _GetGroup=_interopRequireDefault(__nccwpck_require__(99359));var _GetGroupOutput=_interopRequireDefault(__nccwpck_require__(83334));var _GetKubeExecCreds=_interopRequireDefault(__nccwpck_require__(48313));var _GetKubeExecCredsOutput=_interopRequireDefault(__nccwpck_require__(31740));var _GetLastUserEventStatus=_interopRequireDefault(__nccwpck_require__(96111));var _GetPKICertificate=_interopRequireDefault(__nccwpck_require__(8453));var _GetPKICertificateOutput=_interopRequireDefault(__nccwpck_require__(1840));var _GetProducersListReplyObj=_interopRequireDefault(__nccwpck_require__(43282));var _GetRSAPublic=_interopRequireDefault(__nccwpck_require__(4599));var _GetRSAPublicOutput=_interopRequireDefault(__nccwpck_require__(71534));var _GetRole=_interopRequireDefault(__nccwpck_require__(19262));var _GetRotatedSecretValue=_interopRequireDefault(__nccwpck_require__(14948));var _GetSSHCertificate=_interopRequireDefault(__nccwpck_require__(95215));var _GetSSHCertificateOutput=_interopRequireDefault(__nccwpck_require__(94518));var _GetSecretValue=_interopRequireDefault(__nccwpck_require__(24725));var _GetTags=_interopRequireDefault(__nccwpck_require__(26075));var _GetTarget=_interopRequireDefault(__nccwpck_require__(51395));var _GetTargetDetails=_interopRequireDefault(__nccwpck_require__(48741));var _GetTargetDetailsOutput=_interopRequireDefault(__nccwpck_require__(69392));var _GetUserEventStatusOutput=_interopRequireDefault(__nccwpck_require__(96266));var _Hmac=_interopRequireDefault(__nccwpck_require__(9727));var _HmacOutput=_interopRequireDefault(__nccwpck_require__(67718));var _ImportPasswords=_interopRequireDefault(__nccwpck_require__(76407));var _ImportPasswordsOutput=_interopRequireDefault(__nccwpck_require__(8494));var _Item=_interopRequireDefault(__nccwpck_require__(23711));var _JSONError=_interopRequireDefault(__nccwpck_require__(39994));var _KMIPClientGetResponse=_interopRequireDefault(__nccwpck_require__(13983));var _KMIPClientListResponse=_interopRequireDefault(__nccwpck_require__(22033));var _KMIPClientUpdateResponse=_interopRequireDefault(__nccwpck_require__(83564));var _KMIPEnvironmentCreateResponse=_interopRequireDefault(__nccwpck_require__(48931));var _KmipClientDeleteRule=_interopRequireDefault(__nccwpck_require__(88039));var _KmipClientSetRule=_interopRequireDefault(__nccwpck_require__(55778));var _KmipCreateClient=_interopRequireDefault(__nccwpck_require__(59390));var _KmipCreateClientOutput=_interopRequireDefault(__nccwpck_require__(39768));var _KmipDeleteClient=_interopRequireDefault(__nccwpck_require__(14353));var _KmipDeleteServer=_interopRequireDefault(__nccwpck_require__(23205));var _KmipDescribeClient=_interopRequireDefault(__nccwpck_require__(58003));var _KmipDescribeServer=_interopRequireDefault(__nccwpck_require__(63487));var _KmipDescribeServerOutput=_interopRequireDefault(__nccwpck_require__(28038));var _KmipListClients=_interopRequireDefault(__nccwpck_require__(37829));var _KmipMoveServer=_interopRequireDefault(__nccwpck_require__(61411));var _KmipMoveServerOutput=_interopRequireDefault(__nccwpck_require__(23954));var _KmipRenewClientCertificate=_interopRequireDefault(__nccwpck_require__(67724));var _KmipRenewClientCertificateOutput=_interopRequireDefault(__nccwpck_require__(52557));var _KmipRenewServerCertificate=_interopRequireDefault(__nccwpck_require__(97536));var _KmipRenewServerCertificateOutput=_interopRequireDefault(__nccwpck_require__(96809));var _KmipServerSetup=_interopRequireDefault(__nccwpck_require__(54249));var _KmipSetServerState=_interopRequireDefault(__nccwpck_require__(87265));var _KmipSetServerStateOutput=_interopRequireDefault(__nccwpck_require__(9044));var _ListAuthMethods=_interopRequireDefault(__nccwpck_require__(60486));var _ListAuthMethodsOutput=_interopRequireDefault(__nccwpck_require__(8995));var _ListGateways=_interopRequireDefault(__nccwpck_require__(91099));var _ListGroups=_interopRequireDefault(__nccwpck_require__(46460));var _ListGroupsOutput=_interopRequireDefault(__nccwpck_require__(88061));var _ListItems=_interopRequireDefault(__nccwpck_require__(27410));var _ListItemsInPathOutput=_interopRequireDefault(__nccwpck_require__(423));var _ListItemsOutput=_interopRequireDefault(__nccwpck_require__(41751));var _ListRoles=_interopRequireDefault(__nccwpck_require__(7007));var _ListRolesOutput=_interopRequireDefault(__nccwpck_require__(65702));var _ListSRABastions=_interopRequireDefault(__nccwpck_require__(59255));var _ListSharedItems=_interopRequireDefault(__nccwpck_require__(90349));var _ListTargets=_interopRequireDefault(__nccwpck_require__(97640));var _ListTargetsOutput=_interopRequireDefault(__nccwpck_require__(52161));var _MigrationStatusReplyObj=_interopRequireDefault(__nccwpck_require__(95821));var _MoveObjects=_interopRequireDefault(__nccwpck_require__(3781));var _ProvisionCertificate=_interopRequireDefault(__nccwpck_require__(99210));var _ProvisionCertificateOutput=_interopRequireDefault(__nccwpck_require__(88255));var _RawCreds=_interopRequireDefault(__nccwpck_require__(18791));var _RefreshKey=_interopRequireDefault(__nccwpck_require__(94978));var _RefreshKeyOutput=_interopRequireDefault(__nccwpck_require__(1383));var _RenewCertificate=_interopRequireDefault(__nccwpck_require__(97884));var _RenewCertificateOutput=_interopRequireDefault(__nccwpck_require__(38941));var _RequestAccess=_interopRequireDefault(__nccwpck_require__(14565));var _RequestAccessOutput=_interopRequireDefault(__nccwpck_require__(86512));var _ReverseRBAC=_interopRequireDefault(__nccwpck_require__(7820));var _ReverseRBACOutput=_interopRequireDefault(__nccwpck_require__(46413));var _RevokeCertificate=_interopRequireDefault(__nccwpck_require__(89487));var _Role=_interopRequireDefault(__nccwpck_require__(74264));var _RoleAssociationDetails=_interopRequireDefault(__nccwpck_require__(30915));var _RollbackSecret=_interopRequireDefault(__nccwpck_require__(3200));var _RollbackSecretOutput=_interopRequireDefault(__nccwpck_require__(76745));var _RotateKey=_interopRequireDefault(__nccwpck_require__(77056));var _RotateKeyOutput=_interopRequireDefault(__nccwpck_require__(58153));var _RotateOidcClientOutput=_interopRequireDefault(__nccwpck_require__(38772));var _RotateOidcClientSecret=_interopRequireDefault(__nccwpck_require__(47153));var _RotateSecret=_interopRequireDefault(__nccwpck_require__(90983));var _RotatedSecretCreateAws=_interopRequireDefault(__nccwpck_require__(6094));var _RotatedSecretCreateAzure=_interopRequireDefault(__nccwpck_require__(53980));var _RotatedSecretCreateCassandra=_interopRequireDefault(__nccwpck_require__(6301));var _RotatedSecretCreateCustom=_interopRequireDefault(__nccwpck_require__(37488));var _RotatedSecretCreateDockerhub=_interopRequireDefault(__nccwpck_require__(15232));var _RotatedSecretCreateGcp=_interopRequireDefault(__nccwpck_require__(19137));var _RotatedSecretCreateHanadb=_interopRequireDefault(__nccwpck_require__(4967));var _RotatedSecretCreateLdap=_interopRequireDefault(__nccwpck_require__(71730));var _RotatedSecretCreateMongodb=_interopRequireDefault(__nccwpck_require__(90405));var _RotatedSecretCreateMssql=_interopRequireDefault(__nccwpck_require__(15103));var _RotatedSecretCreateMysql=_interopRequireDefault(__nccwpck_require__(11433));var _RotatedSecretCreateOracledb=_interopRequireDefault(__nccwpck_require__(14823));var _RotatedSecretCreateOutput=_interopRequireDefault(__nccwpck_require__(5094));var _RotatedSecretCreatePostgresql=_interopRequireDefault(__nccwpck_require__(93061));var _RotatedSecretCreateRedis=_interopRequireDefault(__nccwpck_require__(82328));var _RotatedSecretCreateRedshift=_interopRequireDefault(__nccwpck_require__(4830));var _RotatedSecretCreateSnowflake=_interopRequireDefault(__nccwpck_require__(85883));var _RotatedSecretCreateSsh=_interopRequireDefault(__nccwpck_require__(84077));var _RotatedSecretCreateWindows=_interopRequireDefault(__nccwpck_require__(96926));var _RotatedSecretGetValue=_interopRequireDefault(__nccwpck_require__(634));var _RotatedSecretList=_interopRequireDefault(__nccwpck_require__(54507));var _RotatedSecretOutput=_interopRequireDefault(__nccwpck_require__(74226));var _RotatedSecretUpdateAws=_interopRequireDefault(__nccwpck_require__(55993));var _RotatedSecretUpdateAzure=_interopRequireDefault(__nccwpck_require__(41471));var _RotatedSecretUpdateCassandra=_interopRequireDefault(__nccwpck_require__(19766));var _RotatedSecretUpdateCustom=_interopRequireDefault(__nccwpck_require__(52337));var _RotatedSecretUpdateDockerhub=_interopRequireDefault(__nccwpck_require__(40251));var _RotatedSecretUpdateGcp=_interopRequireDefault(__nccwpck_require__(98918));var _RotatedSecretUpdateHanadb=_interopRequireDefault(__nccwpck_require__(28538));var _RotatedSecretUpdateLdap=_interopRequireDefault(__nccwpck_require__(90859));var _RotatedSecretUpdateMongodb=_interopRequireDefault(__nccwpck_require__(73885));var _RotatedSecretUpdateMssql=_interopRequireDefault(__nccwpck_require__(18512));var _RotatedSecretUpdateMysql=_interopRequireDefault(__nccwpck_require__(11630));var _RotatedSecretUpdateOracledb=_interopRequireDefault(__nccwpck_require__(73650));var _RotatedSecretUpdateOutput=_interopRequireDefault(__nccwpck_require__(86747));var _RotatedSecretUpdatePostgresql=_interopRequireDefault(__nccwpck_require__(80808));var _RotatedSecretUpdateRedis=_interopRequireDefault(__nccwpck_require__(75371));var _RotatedSecretUpdateRedshift=_interopRequireDefault(__nccwpck_require__(51615));var _RotatedSecretUpdateSnowflake=_interopRequireDefault(__nccwpck_require__(14308));var _RotatedSecretUpdateSsh=_interopRequireDefault(__nccwpck_require__(33578));var _RotatedSecretUpdateWindows=_interopRequireDefault(__nccwpck_require__(97749));var _SetItemState=_interopRequireDefault(__nccwpck_require__(53920));var _SetRoleRule=_interopRequireDefault(__nccwpck_require__(57460));var _ShareItem=_interopRequireDefault(__nccwpck_require__(21310));var _SignDataWithClassicKey=_interopRequireDefault(__nccwpck_require__(61530));var _SignEcDsa=_interopRequireDefault(__nccwpck_require__(46273));var _SignEcDsaOutput=_interopRequireDefault(__nccwpck_require__(18996));var _SignGPG=_interopRequireDefault(__nccwpck_require__(95289));var _SignGPGOutput=_interopRequireDefault(__nccwpck_require__(72732));var _SignJWTOutput=_interopRequireDefault(__nccwpck_require__(23913));var _SignJWTWithClassicKey=_interopRequireDefault(__nccwpck_require__(32259));var _SignOutput=_interopRequireDefault(__nccwpck_require__(40040));var _SignPKCS=_interopRequireDefault(__nccwpck_require__(5227));var _SignPKCS1Output=_interopRequireDefault(__nccwpck_require__(76138));var _SignPKICertOutput=_interopRequireDefault(__nccwpck_require__(50538));var _SignPKICertWithClassicKey=_interopRequireDefault(__nccwpck_require__(52048));var _SignRsaSsaPss=_interopRequireDefault(__nccwpck_require__(77718));var _SignRsaSsaPssOutput=_interopRequireDefault(__nccwpck_require__(22067));var _StaticCredsAuth=_interopRequireDefault(__nccwpck_require__(39307));var _StaticCredsAuthOutput=_interopRequireDefault(__nccwpck_require__(53322));var _SystemAccessCredentialsReplyObj=_interopRequireDefault(__nccwpck_require__(58908));var _Target=_interopRequireDefault(__nccwpck_require__(50373));var _TmpUserData=_interopRequireDefault(__nccwpck_require__(36764));var _Tokenize=_interopRequireDefault(__nccwpck_require__(43289));var _TokenizeOutput=_interopRequireDefault(__nccwpck_require__(88732));var _UidCreateChildToken=_interopRequireDefault(__nccwpck_require__(35191));var _UidCreateChildTokenOutput=_interopRequireDefault(__nccwpck_require__(25070));var _UidGenerateToken=_interopRequireDefault(__nccwpck_require__(56690));var _UidGenerateTokenOutput=_interopRequireDefault(__nccwpck_require__(33367));var _UidListChildren=_interopRequireDefault(__nccwpck_require__(55603));var _UidRevokeToken=_interopRequireDefault(__nccwpck_require__(60409));var _UidRotateToken=_interopRequireDefault(__nccwpck_require__(36310));var _UidRotateTokenOutput=_interopRequireDefault(__nccwpck_require__(34899));var _UniversalIdentityDetails=_interopRequireDefault(__nccwpck_require__(81607));var _UpdateAWSTarget=_interopRequireDefault(__nccwpck_require__(82797));var _UpdateAWSTargetDetails=_interopRequireDefault(__nccwpck_require__(13631));var _UpdateAccountSettings=_interopRequireDefault(__nccwpck_require__(7427));var _UpdateAccountSettingsOutput=_interopRequireDefault(__nccwpck_require__(73106));var _UpdateArtifactoryTarget=_interopRequireDefault(__nccwpck_require__(68146));var _UpdateArtifactoryTargetOutput=_interopRequireDefault(__nccwpck_require__(95639));var _UpdateAssoc=_interopRequireDefault(__nccwpck_require__(68862));var _UpdateAuthMethod=_interopRequireDefault(__nccwpck_require__(25222));var _UpdateAuthMethodAWSIAM=_interopRequireDefault(__nccwpck_require__(67296));var _UpdateAuthMethodAzureAD=_interopRequireDefault(__nccwpck_require__(95622));var _UpdateAuthMethodCert=_interopRequireDefault(__nccwpck_require__(18408));var _UpdateAuthMethodCertOutput=_interopRequireDefault(__nccwpck_require__(33));var _UpdateAuthMethodGCP=_interopRequireDefault(__nccwpck_require__(56494));var _UpdateAuthMethodK8S=_interopRequireDefault(__nccwpck_require__(45908));var _UpdateAuthMethodK8SOutput=_interopRequireDefault(__nccwpck_require__(75557));var _UpdateAuthMethodLDAP=_interopRequireDefault(__nccwpck_require__(54035));var _UpdateAuthMethodLDAPOutput=_interopRequireDefault(__nccwpck_require__(52290));var _UpdateAuthMethodOAuth=_interopRequireDefault(__nccwpck_require__(13933));var _UpdateAuthMethodOCI=_interopRequireDefault(__nccwpck_require__(925));var _UpdateAuthMethodOCIOutput=_interopRequireDefault(__nccwpck_require__(16280));var _UpdateAuthMethodOIDC=_interopRequireDefault(__nccwpck_require__(85407));var _UpdateAuthMethodOutput=_interopRequireDefault(__nccwpck_require__(49923));var _UpdateAuthMethodSAML=_interopRequireDefault(__nccwpck_require__(41983));var _UpdateAuthMethodUniversalIdentity=_interopRequireDefault(__nccwpck_require__(4775));var _UpdateAzureTarget=_interopRequireDefault(__nccwpck_require__(10443));var _UpdateAzureTargetOutput=_interopRequireDefault(__nccwpck_require__(16042));var _UpdateCertificateOutput=_interopRequireDefault(__nccwpck_require__(12471));var _UpdateCertificateValue=_interopRequireDefault(__nccwpck_require__(19705));var _UpdateClassicKeyCertificate=_interopRequireDefault(__nccwpck_require__(49451));var _UpdateDBTarget=_interopRequireDefault(__nccwpck_require__(33529));var _UpdateDBTargetDetails=_interopRequireDefault(__nccwpck_require__(80190));var _UpdateDBTargetOutput=_interopRequireDefault(__nccwpck_require__(72131));var _UpdateDockerhubTarget=_interopRequireDefault(__nccwpck_require__(8307));var _UpdateDockerhubTargetOutput=_interopRequireDefault(__nccwpck_require__(56962));var _UpdateEKSTarget=_interopRequireDefault(__nccwpck_require__(54749));var _UpdateEKSTargetOutput=_interopRequireDefault(__nccwpck_require__(69048));var _UpdateEventForwarder=_interopRequireDefault(__nccwpck_require__(69923));var _UpdateGKETarget=_interopRequireDefault(__nccwpck_require__(98909));var _UpdateGKETargetOutput=_interopRequireDefault(__nccwpck_require__(57048));var _UpdateGcpTarget=_interopRequireDefault(__nccwpck_require__(27770));var _UpdateGcpTargetOutput=_interopRequireDefault(__nccwpck_require__(18991));var _UpdateGithubTarget=_interopRequireDefault(__nccwpck_require__(47511));var _UpdateGithubTargetOutput=_interopRequireDefault(__nccwpck_require__(14926));var _UpdateGlobalSignAtlasTarget=_interopRequireDefault(__nccwpck_require__(90781));var _UpdateGlobalSignAtlasTargetOutput=_interopRequireDefault(__nccwpck_require__(89912));var _UpdateGlobalSignTarget=_interopRequireDefault(__nccwpck_require__(7530));var _UpdateGlobalSignTargetOutput=_interopRequireDefault(__nccwpck_require__(40415));var _UpdateGodaddyTarget=_interopRequireDefault(__nccwpck_require__(84692));var _UpdateGodaddyTargetOutput=_interopRequireDefault(__nccwpck_require__(17989));var _UpdateGroup=_interopRequireDefault(__nccwpck_require__(59722));var _UpdateGroupOutput=_interopRequireDefault(__nccwpck_require__(63647));var _UpdateItem=_interopRequireDefault(__nccwpck_require__(49094));var _UpdateItemOutput=_interopRequireDefault(__nccwpck_require__(15651));var _UpdateLdapTarget=_interopRequireDefault(__nccwpck_require__(3589));var _UpdateLdapTargetDetails=_interopRequireDefault(__nccwpck_require__(34663));var _UpdateLdapTargetOutput=_interopRequireDefault(__nccwpck_require__(4912));var _UpdateLinkedTarget=_interopRequireDefault(__nccwpck_require__(26477));var _UpdateNativeK8STarget=_interopRequireDefault(__nccwpck_require__(30593));var _UpdateNativeK8STargetOutput=_interopRequireDefault(__nccwpck_require__(99636));var _UpdateOidcApp=_interopRequireDefault(__nccwpck_require__(94701));var _UpdatePKICertIssuer=_interopRequireDefault(__nccwpck_require__(79264));var _UpdatePKICertIssuerOutput=_interopRequireDefault(__nccwpck_require__(13449));var _UpdatePingTarget=_interopRequireDefault(__nccwpck_require__(85764));var _UpdateRDPTargetDetails=_interopRequireDefault(__nccwpck_require__(54450));var _UpdateRabbitMQTarget=_interopRequireDefault(__nccwpck_require__(26622));var _UpdateRabbitMQTargetDetails=_interopRequireDefault(__nccwpck_require__(87334));var _UpdateRabbitMQTargetOutput=_interopRequireDefault(__nccwpck_require__(87403));var _UpdateRole=_interopRequireDefault(__nccwpck_require__(57081));var _UpdateRoleOutput=_interopRequireDefault(__nccwpck_require__(99836));var _UpdateRotatedSecret=_interopRequireDefault(__nccwpck_require__(64696));var _UpdateRotatedSecretOutput=_interopRequireDefault(__nccwpck_require__(2961));var _UpdateRotationSettings=_interopRequireDefault(__nccwpck_require__(42482));var _UpdateSSHCertIssuer=_interopRequireDefault(__nccwpck_require__(65022));var _UpdateSSHCertIssuerOutput=_interopRequireDefault(__nccwpck_require__(96523));var _UpdateSSHTarget=_interopRequireDefault(__nccwpck_require__(72830));var _UpdateSSHTargetDetails=_interopRequireDefault(__nccwpck_require__(58790));var _UpdateSSHTargetOutput=_interopRequireDefault(__nccwpck_require__(73931));var _UpdateSalesforceTarget=_interopRequireDefault(__nccwpck_require__(41539));var _UpdateSalesforceTargetOutput=_interopRequireDefault(__nccwpck_require__(69266));var _UpdateSecretVal=_interopRequireDefault(__nccwpck_require__(89102));var _UpdateSecretValOutput=_interopRequireDefault(__nccwpck_require__(30427));var _UpdateTarget=_interopRequireDefault(__nccwpck_require__(30092));var _UpdateTargetDetails=_interopRequireDefault(__nccwpck_require__(90476));var _UpdateTargetOutput=_interopRequireDefault(__nccwpck_require__(29293));var _UpdateWebTarget=_interopRequireDefault(__nccwpck_require__(54946));var _UpdateWebTargetDetails=_interopRequireDefault(__nccwpck_require__(24642));var _UpdateWebTargetOutput=_interopRequireDefault(__nccwpck_require__(43751));var _UpdateWindowsTarget=_interopRequireDefault(__nccwpck_require__(39713));var _UpdateZeroSSLTarget=_interopRequireDefault(__nccwpck_require__(32664));var _UpdateZeroSSLTargetOutput=_interopRequireDefault(__nccwpck_require__(16401));var _UploadRSA=_interopRequireDefault(__nccwpck_require__(22255));var _UscCreateSecretOutput=_interopRequireDefault(__nccwpck_require__(34938));var _UscDelete=_interopRequireDefault(__nccwpck_require__(31972));var _UscDeleteSecretOutput=_interopRequireDefault(__nccwpck_require__(31605));var _UscGet=_interopRequireDefault(__nccwpck_require__(44023));var _UscGetSecretOutput=_interopRequireDefault(__nccwpck_require__(20754));var _UscList=_interopRequireDefault(__nccwpck_require__(66619));var _UscListSecretsOutput=_interopRequireDefault(__nccwpck_require__(29423));var _UscUpdate=_interopRequireDefault(__nccwpck_require__(86622));var _UscUpdateSecretOutput=_interopRequireDefault(__nccwpck_require__(40159));var _ValidateToken=_interopRequireDefault(__nccwpck_require__(62049));var _ValidateTokenOutput=_interopRequireDefault(__nccwpck_require__(56148));var _VerifyDataWithClassicKey=_interopRequireDefault(__nccwpck_require__(89370));var _VerifyEcDsa=_interopRequireDefault(__nccwpck_require__(9281));var _VerifyGPG=_interopRequireDefault(__nccwpck_require__(9817));var _VerifyJWTOutput=_interopRequireDefault(__nccwpck_require__(11401));var _VerifyJWTWithClassicKey=_interopRequireDefault(__nccwpck_require__(35587));var _VerifyPKCS=_interopRequireDefault(__nccwpck_require__(94187));var _VerifyPKICertOutput=_interopRequireDefault(__nccwpck_require__(9610));var _VerifyPKICertWithClassicKey=_interopRequireDefault(__nccwpck_require__(1456));var _VerifyRsaSsaPss=_interopRequireDefault(__nccwpck_require__(11350));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i} and HTTP response + */},{key:"dynamicSecretGetValueWithHttpInfo",value:function dynamicSecretGetValueWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretGetValue");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType={'String':'String'};return this.apiClient.callApi('/dynamic-secret-get-value','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretGetValue} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} + */},{key:"dynamicSecretGetValue",value:function dynamicSecretGetValue(body){return this.dynamicSecretGetValueWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretList} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducersListReplyObj} and HTTP response + */},{key:"dynamicSecretListWithHttpInfo",value:function dynamicSecretListWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretList");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetProducersListReplyObj["default"];return this.apiClient.callApi('/dynamic-secret-list','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretList} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducersListReplyObj} + */},{key:"dynamicSecretList",value:function dynamicSecretList(body){return this.dynamicSecretListWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretTmpCredsDelete} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */},{key:"dynamicSecretTmpCredsDeleteWithHttpInfo",value:function dynamicSecretTmpCredsDeleteWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretTmpCredsDelete");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=null;return this.apiClient.callApi('/dynamic-secret-tmp-creds-delete','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretTmpCredsDelete} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */},{key:"dynamicSecretTmpCredsDelete",value:function dynamicSecretTmpCredsDelete(body){return this.dynamicSecretTmpCredsDeleteWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretTmpCredsGet} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response + */},{key:"dynamicSecretTmpCredsGetWithHttpInfo",value:function dynamicSecretTmpCredsGetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretTmpCredsGet");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=[_TmpUserData["default"]];return this.apiClient.callApi('/dynamic-secret-tmp-creds-Get','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretTmpCredsGet} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} + */},{key:"dynamicSecretTmpCredsGet",value:function dynamicSecretTmpCredsGet(body){return this.dynamicSecretTmpCredsGetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretTmpCredsUpdate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */},{key:"dynamicSecretTmpCredsUpdateWithHttpInfo",value:function dynamicSecretTmpCredsUpdateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretTmpCredsUpdate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=null;return this.apiClient.callApi('/dynamic-secret-tmp-creds-update','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretTmpCredsUpdate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */},{key:"dynamicSecretTmpCredsUpdate",value:function dynamicSecretTmpCredsUpdate(body){return this.dynamicSecretTmpCredsUpdateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateArtifactory} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateArtifactoryWithHttpInfo",value:function dynamicSecretUpdateArtifactoryWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateArtifactory");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-artifactory','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateArtifactory} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateArtifactory",value:function dynamicSecretUpdateArtifactory(body){return this.dynamicSecretUpdateArtifactoryWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateAws} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateAwsWithHttpInfo",value:function dynamicSecretUpdateAwsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateAws");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-aws','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateAws} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateAws",value:function dynamicSecretUpdateAws(body){return this.dynamicSecretUpdateAwsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateAzure} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateAzureWithHttpInfo",value:function dynamicSecretUpdateAzureWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateAzure");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-azure','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateAzure} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateAzure",value:function dynamicSecretUpdateAzure(body){return this.dynamicSecretUpdateAzureWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateCassandra} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateCassandraWithHttpInfo",value:function dynamicSecretUpdateCassandraWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateCassandra");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-cassandra','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateCassandra} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateCassandra",value:function dynamicSecretUpdateCassandra(body){return this.dynamicSecretUpdateCassandraWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/DynamicSecretUpdateCustom} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateCustomWithHttpInfo",value:function dynamicSecretUpdateCustomWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-custom','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/DynamicSecretUpdateCustom} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateCustom",value:function dynamicSecretUpdateCustom(opts){return this.dynamicSecretUpdateCustomWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateDockerhub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateDockerhubWithHttpInfo",value:function dynamicSecretUpdateDockerhubWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateDockerhub");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-dockerhub','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateDockerhub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateDockerhub",value:function dynamicSecretUpdateDockerhub(body){return this.dynamicSecretUpdateDockerhubWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateEks} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateEksWithHttpInfo",value:function dynamicSecretUpdateEksWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateEks");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-eks','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateEks} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateEks",value:function dynamicSecretUpdateEks(body){return this.dynamicSecretUpdateEksWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateGcp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateGcpWithHttpInfo",value:function dynamicSecretUpdateGcpWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateGcp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-gcp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateGcp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateGcp",value:function dynamicSecretUpdateGcp(body){return this.dynamicSecretUpdateGcpWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateGithub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateGithubWithHttpInfo",value:function dynamicSecretUpdateGithubWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateGithub");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-github','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateGithub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateGithub",value:function dynamicSecretUpdateGithub(body){return this.dynamicSecretUpdateGithubWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateGke} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateGkeWithHttpInfo",value:function dynamicSecretUpdateGkeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateGke");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-gke','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateGke} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateGke",value:function dynamicSecretUpdateGke(body){return this.dynamicSecretUpdateGkeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateHanaDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateHanaDbWithHttpInfo",value:function dynamicSecretUpdateHanaDbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateHanaDb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-hana','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateHanaDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateHanaDb",value:function dynamicSecretUpdateHanaDb(body){return this.dynamicSecretUpdateHanaDbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateK8s} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateK8sWithHttpInfo",value:function dynamicSecretUpdateK8sWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateK8s");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-k8s','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateK8s} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateK8s",value:function dynamicSecretUpdateK8s(body){return this.dynamicSecretUpdateK8sWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateLdap} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateLdapWithHttpInfo",value:function dynamicSecretUpdateLdapWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateLdap");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-ldap','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateLdap} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateLdap",value:function dynamicSecretUpdateLdap(body){return this.dynamicSecretUpdateLdapWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateMongoDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateMongoDbWithHttpInfo",value:function dynamicSecretUpdateMongoDbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateMongoDb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-mongo','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateMongoDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateMongoDb",value:function dynamicSecretUpdateMongoDb(body){return this.dynamicSecretUpdateMongoDbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateMsSql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateMsSqlWithHttpInfo",value:function dynamicSecretUpdateMsSqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateMsSql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-mssql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateMsSql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateMsSql",value:function dynamicSecretUpdateMsSql(body){return this.dynamicSecretUpdateMsSqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateMySql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateMySqlWithHttpInfo",value:function dynamicSecretUpdateMySqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateMySql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-mysql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateMySql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateMySql",value:function dynamicSecretUpdateMySql(body){return this.dynamicSecretUpdateMySqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateOracleDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateOracleDbWithHttpInfo",value:function dynamicSecretUpdateOracleDbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateOracleDb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-oracle','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateOracleDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateOracleDb",value:function dynamicSecretUpdateOracleDb(body){return this.dynamicSecretUpdateOracleDbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdatePing} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdatePingWithHttpInfo",value:function dynamicSecretUpdatePingWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdatePing");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-ping','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdatePing} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdatePing",value:function dynamicSecretUpdatePing(body){return this.dynamicSecretUpdatePingWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdatePostgreSql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdatePostgreSqlWithHttpInfo",value:function dynamicSecretUpdatePostgreSqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdatePostgreSql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-postgresql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdatePostgreSql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdatePostgreSql",value:function dynamicSecretUpdatePostgreSql(body){return this.dynamicSecretUpdatePostgreSqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateRabbitMq} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateRabbitMqWithHttpInfo",value:function dynamicSecretUpdateRabbitMqWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateRabbitMq");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-rabbitmq','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateRabbitMq} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateRabbitMq",value:function dynamicSecretUpdateRabbitMq(body){return this.dynamicSecretUpdateRabbitMqWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateRdp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateRdpWithHttpInfo",value:function dynamicSecretUpdateRdpWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateRdp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-rdp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateRdp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateRdp",value:function dynamicSecretUpdateRdp(body){return this.dynamicSecretUpdateRdpWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateRedis} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateRedisWithHttpInfo",value:function dynamicSecretUpdateRedisWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateRedis");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-redis','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateRedis} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateRedis",value:function dynamicSecretUpdateRedis(body){return this.dynamicSecretUpdateRedisWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateRedshift} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateRedshiftWithHttpInfo",value:function dynamicSecretUpdateRedshiftWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateRedshift");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-redshift','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateRedshift} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateRedshift",value:function dynamicSecretUpdateRedshift(body){return this.dynamicSecretUpdateRedshiftWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateSnowflake} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateSnowflakeWithHttpInfo",value:function dynamicSecretUpdateSnowflakeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateSnowflake");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-snowflake','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateSnowflake} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateSnowflake",value:function dynamicSecretUpdateSnowflake(body){return this.dynamicSecretUpdateSnowflakeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/DynamicSecretUpdateVenafi} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DynamicSecretUpdateOutput} and HTTP response + */},{key:"dynamicSecretUpdateVenafiWithHttpInfo",value:function dynamicSecretUpdateVenafiWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling dynamicSecretUpdateVenafi");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DynamicSecretUpdateOutput["default"];return this.apiClient.callApi('/dynamic-secret-update-venafi','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/DynamicSecretUpdateVenafi} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DynamicSecretUpdateOutput} + */},{key:"dynamicSecretUpdateVenafi",value:function dynamicSecretUpdateVenafi(body){return this.dynamicSecretUpdateVenafiWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/Encrypt} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EncryptOutput} and HTTP response + */},{key:"encryptWithHttpInfo",value:function encryptWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling encrypt");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EncryptOutput["default"];return this.apiClient.callApi('/encrypt','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/Encrypt} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EncryptOutput} + */},{key:"encrypt",value:function encrypt(body){return this.encryptWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EncryptGPG} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EncryptGPGOutput} and HTTP response + */},{key:"encryptGPGWithHttpInfo",value:function encryptGPGWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling encryptGPG");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EncryptGPGOutput["default"];return this.apiClient.callApi('/encrypt-gpg','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EncryptGPG} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EncryptGPGOutput} + */},{key:"encryptGPG",value:function encryptGPG(body){return this.encryptGPGWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EncryptWithClassicKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EncryptOutput} and HTTP response + */},{key:"encryptWithClassicKeyWithHttpInfo",value:function encryptWithClassicKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling encryptWithClassicKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EncryptOutput["default"];return this.apiClient.callApi('/encrypt-with-classic-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EncryptWithClassicKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EncryptOutput} + */},{key:"encryptWithClassicKey",value:function encryptWithClassicKey(body){return this.encryptWithClassicKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EsmCreate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EsmCreateSecretOutput} and HTTP response + */},{key:"esmCreateWithHttpInfo",value:function esmCreateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling esmCreate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EsmCreateSecretOutput["default"];return this.apiClient.callApi('/esm-create','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EsmCreate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EsmCreateSecretOutput} + */},{key:"esmCreate",value:function esmCreate(body){return this.esmCreateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EsmDelete} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EsmDeleteSecretOutput} and HTTP response + */},{key:"esmDeleteWithHttpInfo",value:function esmDeleteWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling esmDelete");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EsmDeleteSecretOutput["default"];return this.apiClient.callApi('/esm-delete','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EsmDelete} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EsmDeleteSecretOutput} + */},{key:"esmDelete",value:function esmDelete(body){return this.esmDeleteWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EsmGet} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EsmGetSecretOutput} and HTTP response + */},{key:"esmGetWithHttpInfo",value:function esmGetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling esmGet");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EsmGetSecretOutput["default"];return this.apiClient.callApi('/esm-get','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EsmGet} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EsmGetSecretOutput} + */},{key:"esmGet",value:function esmGet(body){return this.esmGetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EsmList} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EsmListSecretsOutput} and HTTP response + */},{key:"esmListWithHttpInfo",value:function esmListWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling esmList");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EsmListSecretsOutput["default"];return this.apiClient.callApi('/esm-list','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EsmList} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EsmListSecretsOutput} + */},{key:"esmList",value:function esmList(body){return this.esmListWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EsmUpdate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EsmUpdateSecretOutput} and HTTP response + */},{key:"esmUpdateWithHttpInfo",value:function esmUpdateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling esmUpdate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EsmUpdateSecretOutput["default"];return this.apiClient.callApi('/esm-update','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EsmUpdate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EsmUpdateSecretOutput} + */},{key:"esmUpdate",value:function esmUpdate(body){return this.esmUpdateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventAction} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"eventActionWithHttpInfo",value:function eventActionWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventAction");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/event-action','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventAction} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"eventAction",value:function eventAction(body){return this.eventActionWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderCreateEmail} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderCreateUpdateOutput} and HTTP response + */},{key:"eventForwarderCreateEmailWithHttpInfo",value:function eventForwarderCreateEmailWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderCreateEmail");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderCreateUpdateOutput["default"];return this.apiClient.callApi('/event-forwarder-create-email','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderCreateEmail} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderCreateUpdateOutput} + */},{key:"eventForwarderCreateEmail",value:function eventForwarderCreateEmail(body){return this.eventForwarderCreateEmailWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderCreateServiceNow} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderCreateUpdateOutput} and HTTP response + */},{key:"eventForwarderCreateServiceNowWithHttpInfo",value:function eventForwarderCreateServiceNowWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderCreateServiceNow");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderCreateUpdateOutput["default"];return this.apiClient.callApi('/event-forwarder-create-servicenow','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderCreateServiceNow} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderCreateUpdateOutput} + */},{key:"eventForwarderCreateServiceNow",value:function eventForwarderCreateServiceNow(body){return this.eventForwarderCreateServiceNowWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderCreateSlack} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderCreateUpdateOutput} and HTTP response + */},{key:"eventForwarderCreateSlackWithHttpInfo",value:function eventForwarderCreateSlackWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderCreateSlack");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderCreateUpdateOutput["default"];return this.apiClient.callApi('/event-forwarder-create-slack','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderCreateSlack} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderCreateUpdateOutput} + */},{key:"eventForwarderCreateSlack",value:function eventForwarderCreateSlack(body){return this.eventForwarderCreateSlackWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderCreateWebhook} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderCreateUpdateOutput} and HTTP response + */},{key:"eventForwarderCreateWebhookWithHttpInfo",value:function eventForwarderCreateWebhookWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderCreateWebhook");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderCreateUpdateOutput["default"];return this.apiClient.callApi('/event-forwarder-create-webhook','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderCreateWebhook} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderCreateUpdateOutput} + */},{key:"eventForwarderCreateWebhook",value:function eventForwarderCreateWebhook(body){return this.eventForwarderCreateWebhookWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderDelete} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderDeleteOutput} and HTTP response + */},{key:"eventForwarderDeleteWithHttpInfo",value:function eventForwarderDeleteWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderDelete");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderDeleteOutput["default"];return this.apiClient.callApi('/event-forwarder-delete','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderDelete} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderDeleteOutput} + */},{key:"eventForwarderDelete",value:function eventForwarderDelete(body){return this.eventForwarderDeleteWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderGet} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderGetOutput} and HTTP response + */},{key:"eventForwarderGetWithHttpInfo",value:function eventForwarderGetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderGet");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderGetOutput["default"];return this.apiClient.callApi('/event-forwarder-get','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderGet} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderGetOutput} + */},{key:"eventForwarderGet",value:function eventForwarderGet(body){return this.eventForwarderGetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderUpdateEmail} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderCreateUpdateOutput} and HTTP response + */},{key:"eventForwarderUpdateEmailWithHttpInfo",value:function eventForwarderUpdateEmailWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderUpdateEmail");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderCreateUpdateOutput["default"];return this.apiClient.callApi('/event-forwarder-update-email','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderUpdateEmail} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderCreateUpdateOutput} + */},{key:"eventForwarderUpdateEmail",value:function eventForwarderUpdateEmail(body){return this.eventForwarderUpdateEmailWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderUpdateServiceNow} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderCreateUpdateOutput} and HTTP response + */},{key:"eventForwarderUpdateServiceNowWithHttpInfo",value:function eventForwarderUpdateServiceNowWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderUpdateServiceNow");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderCreateUpdateOutput["default"];return this.apiClient.callApi('/event-forwarder-update-servicenow','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderUpdateServiceNow} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderCreateUpdateOutput} + */},{key:"eventForwarderUpdateServiceNow",value:function eventForwarderUpdateServiceNow(body){return this.eventForwarderUpdateServiceNowWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderUpdateSlack} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderCreateUpdateOutput} and HTTP response + */},{key:"eventForwarderUpdateSlackWithHttpInfo",value:function eventForwarderUpdateSlackWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderUpdateSlack");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderCreateUpdateOutput["default"];return this.apiClient.callApi('/event-forwarder-update-slack','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderUpdateSlack} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderCreateUpdateOutput} + */},{key:"eventForwarderUpdateSlack",value:function eventForwarderUpdateSlack(body){return this.eventForwarderUpdateSlackWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/EventForwarderUpdateWebhook} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EventForwarderCreateUpdateOutput} and HTTP response + */},{key:"eventForwarderUpdateWebhookWithHttpInfo",value:function eventForwarderUpdateWebhookWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling eventForwarderUpdateWebhook");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_EventForwarderCreateUpdateOutput["default"];return this.apiClient.callApi('/event-forwarder-update-webhook','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/EventForwarderUpdateWebhook} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EventForwarderCreateUpdateOutput} + */},{key:"eventForwarderUpdateWebhook",value:function eventForwarderUpdateWebhook(body){return this.eventForwarderUpdateWebhookWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/ExportClassicKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ExportClassicKeyOutput} and HTTP response + */},{key:"exportClassicKeyWithHttpInfo",value:function exportClassicKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling exportClassicKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ExportClassicKeyOutput["default"];return this.apiClient.callApi('/export-classic-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/ExportClassicKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ExportClassicKeyOutput} + */},{key:"exportClassicKey",value:function exportClassicKey(body){return this.exportClassicKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateAllowedAccess} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AllowedAccess} and HTTP response + */},{key:"gatewayCreateAllowedAccessWithHttpInfo",value:function gatewayCreateAllowedAccessWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateAllowedAccess");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_AllowedAccess["default"];return this.apiClient.callApi('/gateway-create-allowed-access','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateAllowedAccess} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllowedAccess} + */},{key:"gatewayCreateAllowedAccess",value:function gatewayCreateAllowedAccess(body){return this.gatewayCreateAllowedAccessWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateK8SAuthConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateK8SAuthConfigOutput} and HTTP response + */},{key:"gatewayCreateK8SAuthConfigWithHttpInfo",value:function gatewayCreateK8SAuthConfigWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateK8SAuthConfig");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateK8SAuthConfigOutput["default"];return this.apiClient.callApi('/gateway-create-k8s-auth-config','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateK8SAuthConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateK8SAuthConfigOutput} + */},{key:"gatewayCreateK8SAuthConfig",value:function gatewayCreateK8SAuthConfig(body){return this.gatewayCreateK8SAuthConfigWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateMigration} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationCreateOutput} and HTTP response + */},{key:"gatewayCreateMigrationWithHttpInfo",value:function gatewayCreateMigrationWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateMigration");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayMigrationCreateOutput["default"];return this.apiClient.callApi('/gateway-create-migration','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateMigration} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationCreateOutput} + */},{key:"gatewayCreateMigration",value:function gatewayCreateMigration(body){return this.gatewayCreateMigrationWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerArtifactory} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerArtifactoryOutput} and HTTP response + */},{key:"gatewayCreateProducerArtifactoryWithHttpInfo",value:function gatewayCreateProducerArtifactoryWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerArtifactory");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerArtifactoryOutput["default"];return this.apiClient.callApi('/gateway-create-producer-artifactory','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerArtifactory} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerArtifactoryOutput} + */},{key:"gatewayCreateProducerArtifactory",value:function gatewayCreateProducerArtifactory(body){return this.gatewayCreateProducerArtifactoryWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerAws} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerAwsOutput} and HTTP response + */},{key:"gatewayCreateProducerAwsWithHttpInfo",value:function gatewayCreateProducerAwsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerAws");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerAwsOutput["default"];return this.apiClient.callApi('/gateway-create-producer-aws','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerAws} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerAwsOutput} + */},{key:"gatewayCreateProducerAws",value:function gatewayCreateProducerAws(body){return this.gatewayCreateProducerAwsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerAzure} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerAzureOutput} and HTTP response + */},{key:"gatewayCreateProducerAzureWithHttpInfo",value:function gatewayCreateProducerAzureWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerAzure");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerAzureOutput["default"];return this.apiClient.callApi('/gateway-create-producer-azure','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerAzure} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerAzureOutput} + */},{key:"gatewayCreateProducerAzure",value:function gatewayCreateProducerAzure(body){return this.gatewayCreateProducerAzureWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerCassandra} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerCassandraOutput} and HTTP response + */},{key:"gatewayCreateProducerCassandraWithHttpInfo",value:function gatewayCreateProducerCassandraWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerCassandra");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerCassandraOutput["default"];return this.apiClient.callApi('/gateway-create-producer-cassandra','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerCassandra} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerCassandraOutput} + */},{key:"gatewayCreateProducerCassandra",value:function gatewayCreateProducerCassandra(body){return this.gatewayCreateProducerCassandraWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerChef} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerChefOutput} and HTTP response + */},{key:"gatewayCreateProducerChefWithHttpInfo",value:function gatewayCreateProducerChefWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerChef");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerChefOutput["default"];return this.apiClient.callApi('/gateway-create-producer-chef','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerChef} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerChefOutput} + */},{key:"gatewayCreateProducerChef",value:function gatewayCreateProducerChef(body){return this.gatewayCreateProducerChefWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/GatewayCreateProducerCustom} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerCustomOutput} and HTTP response + */},{key:"gatewayCreateProducerCustomWithHttpInfo",value:function gatewayCreateProducerCustomWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerCustomOutput["default"];return this.apiClient.callApi('/gateway-create-producer-custom','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/GatewayCreateProducerCustom} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerCustomOutput} + */},{key:"gatewayCreateProducerCustom",value:function gatewayCreateProducerCustom(opts){return this.gatewayCreateProducerCustomWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerDockerhub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerDockerhubOutput} and HTTP response + */},{key:"gatewayCreateProducerDockerhubWithHttpInfo",value:function gatewayCreateProducerDockerhubWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerDockerhub");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerDockerhubOutput["default"];return this.apiClient.callApi('/gateway-create-producer-dockerhub','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerDockerhub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerDockerhubOutput} + */},{key:"gatewayCreateProducerDockerhub",value:function gatewayCreateProducerDockerhub(body){return this.gatewayCreateProducerDockerhubWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerEks} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerEksOutput} and HTTP response + */},{key:"gatewayCreateProducerEksWithHttpInfo",value:function gatewayCreateProducerEksWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerEks");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerEksOutput["default"];return this.apiClient.callApi('/gateway-create-producer-eks','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerEks} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerEksOutput} + */},{key:"gatewayCreateProducerEks",value:function gatewayCreateProducerEks(body){return this.gatewayCreateProducerEksWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerGcp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerGcpOutput} and HTTP response + */},{key:"gatewayCreateProducerGcpWithHttpInfo",value:function gatewayCreateProducerGcpWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerGcp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerGcpOutput["default"];return this.apiClient.callApi('/gateway-create-producer-gcp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerGcp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerGcpOutput} + */},{key:"gatewayCreateProducerGcp",value:function gatewayCreateProducerGcp(body){return this.gatewayCreateProducerGcpWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerGithub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerGithubOutput} and HTTP response + */},{key:"gatewayCreateProducerGithubWithHttpInfo",value:function gatewayCreateProducerGithubWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerGithub");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerGithubOutput["default"];return this.apiClient.callApi('/gateway-create-producer-github','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerGithub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerGithubOutput} + */},{key:"gatewayCreateProducerGithub",value:function gatewayCreateProducerGithub(body){return this.gatewayCreateProducerGithubWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerGke} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerGkeOutput} and HTTP response + */},{key:"gatewayCreateProducerGkeWithHttpInfo",value:function gatewayCreateProducerGkeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerGke");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerGkeOutput["default"];return this.apiClient.callApi('/gateway-create-producer-gke','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerGke} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerGkeOutput} + */},{key:"gatewayCreateProducerGke",value:function gatewayCreateProducerGke(body){return this.gatewayCreateProducerGkeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerHanaDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerHanaDbOutput} and HTTP response + */},{key:"gatewayCreateProducerHanaDbWithHttpInfo",value:function gatewayCreateProducerHanaDbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerHanaDb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerHanaDbOutput["default"];return this.apiClient.callApi('/gateway-create-producer-hanadb','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerHanaDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerHanaDbOutput} + */},{key:"gatewayCreateProducerHanaDb",value:function gatewayCreateProducerHanaDb(body){return this.gatewayCreateProducerHanaDbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerLdap} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerLdapOutput} and HTTP response + */},{key:"gatewayCreateProducerLdapWithHttpInfo",value:function gatewayCreateProducerLdapWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerLdap");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerLdapOutput["default"];return this.apiClient.callApi('/gateway-create-producer-ldap','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerLdap} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerLdapOutput} + */},{key:"gatewayCreateProducerLdap",value:function gatewayCreateProducerLdap(body){return this.gatewayCreateProducerLdapWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerMSSQL} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerMSSQLOutput} and HTTP response + */},{key:"gatewayCreateProducerMSSQLWithHttpInfo",value:function gatewayCreateProducerMSSQLWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerMSSQL");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerMSSQLOutput["default"];return this.apiClient.callApi('/gateway-create-producer-mssql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerMSSQL} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerMSSQLOutput} + */},{key:"gatewayCreateProducerMSSQL",value:function gatewayCreateProducerMSSQL(body){return this.gatewayCreateProducerMSSQLWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerMongo} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerMongoOutput} and HTTP response + */},{key:"gatewayCreateProducerMongoWithHttpInfo",value:function gatewayCreateProducerMongoWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerMongo");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerMongoOutput["default"];return this.apiClient.callApi('/gateway-create-producer-mongo','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerMongo} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerMongoOutput} + */},{key:"gatewayCreateProducerMongo",value:function gatewayCreateProducerMongo(body){return this.gatewayCreateProducerMongoWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerMySQL} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerMySQLOutput} and HTTP response + */},{key:"gatewayCreateProducerMySQLWithHttpInfo",value:function gatewayCreateProducerMySQLWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerMySQL");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerMySQLOutput["default"];return this.apiClient.callApi('/gateway-create-producer-mysql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerMySQL} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerMySQLOutput} + */},{key:"gatewayCreateProducerMySQL",value:function gatewayCreateProducerMySQL(body){return this.gatewayCreateProducerMySQLWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerNativeK8S} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerNativeK8SOutput} and HTTP response + */},{key:"gatewayCreateProducerNativeK8SWithHttpInfo",value:function gatewayCreateProducerNativeK8SWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerNativeK8S");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerNativeK8SOutput["default"];return this.apiClient.callApi('/gateway-create-producer-k8s','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerNativeK8S} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerNativeK8SOutput} + */},{key:"gatewayCreateProducerNativeK8S",value:function gatewayCreateProducerNativeK8S(body){return this.gatewayCreateProducerNativeK8SWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerOracleDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerOracleDbOutput} and HTTP response + */},{key:"gatewayCreateProducerOracleDbWithHttpInfo",value:function gatewayCreateProducerOracleDbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerOracleDb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerOracleDbOutput["default"];return this.apiClient.callApi('/gateway-create-producer-oracle','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerOracleDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerOracleDbOutput} + */},{key:"gatewayCreateProducerOracleDb",value:function gatewayCreateProducerOracleDb(body){return this.gatewayCreateProducerOracleDbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerPing} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerPingOutput} and HTTP response + */},{key:"gatewayCreateProducerPingWithHttpInfo",value:function gatewayCreateProducerPingWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerPing");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerPingOutput["default"];return this.apiClient.callApi('/gateway-create-producer-ping','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerPing} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerPingOutput} + */},{key:"gatewayCreateProducerPing",value:function gatewayCreateProducerPing(body){return this.gatewayCreateProducerPingWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerPostgreSQL} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerPostgreSQLOutput} and HTTP response + */},{key:"gatewayCreateProducerPostgreSQLWithHttpInfo",value:function gatewayCreateProducerPostgreSQLWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerPostgreSQL");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerPostgreSQLOutput["default"];return this.apiClient.callApi('/gateway-create-producer-postgresql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerPostgreSQL} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerPostgreSQLOutput} + */},{key:"gatewayCreateProducerPostgreSQL",value:function gatewayCreateProducerPostgreSQL(body){return this.gatewayCreateProducerPostgreSQLWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerRabbitMQ} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerRabbitMQOutput} and HTTP response + */},{key:"gatewayCreateProducerRabbitMQWithHttpInfo",value:function gatewayCreateProducerRabbitMQWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerRabbitMQ");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerRabbitMQOutput["default"];return this.apiClient.callApi('/gateway-create-producer-rabbitmq','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerRabbitMQ} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerRabbitMQOutput} + */},{key:"gatewayCreateProducerRabbitMQ",value:function gatewayCreateProducerRabbitMQ(body){return this.gatewayCreateProducerRabbitMQWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerRdp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerRdpOutput} and HTTP response + */},{key:"gatewayCreateProducerRdpWithHttpInfo",value:function gatewayCreateProducerRdpWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerRdp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerRdpOutput["default"];return this.apiClient.callApi('/gateway-create-producer-rdp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerRdp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerRdpOutput} + */},{key:"gatewayCreateProducerRdp",value:function gatewayCreateProducerRdp(body){return this.gatewayCreateProducerRdpWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerRedis} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerRedisOutput} and HTTP response + */},{key:"gatewayCreateProducerRedisWithHttpInfo",value:function gatewayCreateProducerRedisWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerRedis");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerRedisOutput["default"];return this.apiClient.callApi('/gateway-create-producer-Redis','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerRedis} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerRedisOutput} + */},{key:"gatewayCreateProducerRedis",value:function gatewayCreateProducerRedis(body){return this.gatewayCreateProducerRedisWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerRedshift} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerRedshiftOutput} and HTTP response + */},{key:"gatewayCreateProducerRedshiftWithHttpInfo",value:function gatewayCreateProducerRedshiftWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerRedshift");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerRedshiftOutput["default"];return this.apiClient.callApi('/gateway-create-producer-redshift','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerRedshift} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerRedshiftOutput} + */},{key:"gatewayCreateProducerRedshift",value:function gatewayCreateProducerRedshift(body){return this.gatewayCreateProducerRedshiftWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerSnowflake} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerSnowflakeOutput} and HTTP response + */},{key:"gatewayCreateProducerSnowflakeWithHttpInfo",value:function gatewayCreateProducerSnowflakeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerSnowflake");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerSnowflakeOutput["default"];return this.apiClient.callApi('/gateway-create-producer-snowflake','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerSnowflake} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerSnowflakeOutput} + */},{key:"gatewayCreateProducerSnowflake",value:function gatewayCreateProducerSnowflake(body){return this.gatewayCreateProducerSnowflakeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayCreateProducerVenafi} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayCreateProducerVenafiOutput} and HTTP response + */},{key:"gatewayCreateProducerVenafiWithHttpInfo",value:function gatewayCreateProducerVenafiWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayCreateProducerVenafi");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayCreateProducerVenafiOutput["default"];return this.apiClient.callApi('/gateway-create-producer-certificate-automation','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayCreateProducerVenafi} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayCreateProducerVenafiOutput} + */},{key:"gatewayCreateProducerVenafi",value:function gatewayCreateProducerVenafi(body){return this.gatewayCreateProducerVenafiWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayDeleteAllowedAccess} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayDeleteAllowedAccessOutput} and HTTP response + */},{key:"gatewayDeleteAllowedAccessWithHttpInfo",value:function gatewayDeleteAllowedAccessWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayDeleteAllowedAccess");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayDeleteAllowedAccessOutput["default"];return this.apiClient.callApi('/gateway-delete-allowed-access','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayDeleteAllowedAccess} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayDeleteAllowedAccessOutput} + */},{key:"gatewayDeleteAllowedAccess",value:function gatewayDeleteAllowedAccess(body){return this.gatewayDeleteAllowedAccessWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayDeleteK8SAuthConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayDeleteK8SAuthConfigOutput} and HTTP response + */},{key:"gatewayDeleteK8SAuthConfigWithHttpInfo",value:function gatewayDeleteK8SAuthConfigWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayDeleteK8SAuthConfig");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayDeleteK8SAuthConfigOutput["default"];return this.apiClient.callApi('/gateway-delete-k8s-auth-config','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayDeleteK8SAuthConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayDeleteK8SAuthConfigOutput} + */},{key:"gatewayDeleteK8SAuthConfig",value:function gatewayDeleteK8SAuthConfig(body){return this.gatewayDeleteK8SAuthConfigWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayDeleteMigration} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationDeleteOutput} and HTTP response + */},{key:"gatewayDeleteMigrationWithHttpInfo",value:function gatewayDeleteMigrationWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayDeleteMigration");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayMigrationDeleteOutput["default"];return this.apiClient.callApi('/gateway-delete-migration','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayDeleteMigration} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationDeleteOutput} + */},{key:"gatewayDeleteMigration",value:function gatewayDeleteMigration(body){return this.gatewayDeleteMigrationWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayDeleteProducer} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayDeleteProducerOutput} and HTTP response + */},{key:"gatewayDeleteProducerWithHttpInfo",value:function gatewayDeleteProducerWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayDeleteProducer");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayDeleteProducerOutput["default"];return this.apiClient.callApi('/gateway-delete-producer','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayDeleteProducer} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayDeleteProducerOutput} + */},{key:"gatewayDeleteProducer",value:function gatewayDeleteProducer(body){return this.gatewayDeleteProducerWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayDownloadCustomerFragments} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayDownloadCustomerFragmentsOutput} and HTTP response + */},{key:"gatewayDownloadCustomerFragmentsWithHttpInfo",value:function gatewayDownloadCustomerFragmentsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayDownloadCustomerFragments");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayDownloadCustomerFragmentsOutput["default"];return this.apiClient.callApi('/gateway-download-customer-fragments','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayDownloadCustomerFragments} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayDownloadCustomerFragmentsOutput} + */},{key:"gatewayDownloadCustomerFragments",value:function gatewayDownloadCustomerFragments(body){return this.gatewayDownloadCustomerFragmentsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayGetAllowedAccess} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AllowedAccess} and HTTP response + */},{key:"gatewayGetAllowedAccessWithHttpInfo",value:function gatewayGetAllowedAccessWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayGetAllowedAccess");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_AllowedAccess["default"];return this.apiClient.callApi('/gateway-get-allowed-access','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayGetAllowedAccess} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllowedAccess} + */},{key:"gatewayGetAllowedAccess",value:function gatewayGetAllowedAccess(body){return this.gatewayGetAllowedAccessWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayGetConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AkeylessGatewayConfig} and HTTP response + */},{key:"gatewayGetConfigWithHttpInfo",value:function gatewayGetConfigWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayGetConfig");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_AkeylessGatewayConfig["default"];return this.apiClient.callApi('/gateway-get-config','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayGetConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AkeylessGatewayConfig} + */},{key:"gatewayGetConfig",value:function gatewayGetConfig(body){return this.gatewayGetConfigWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayGetK8SAuthConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayGetK8SAuthConfigOutput} and HTTP response + */},{key:"gatewayGetK8SAuthConfigWithHttpInfo",value:function gatewayGetK8SAuthConfigWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayGetK8SAuthConfig");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayGetK8SAuthConfigOutput["default"];return this.apiClient.callApi('/gateway-get-k8s-auth-config','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayGetK8SAuthConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayGetK8SAuthConfigOutput} + */},{key:"gatewayGetK8SAuthConfig",value:function gatewayGetK8SAuthConfig(body){return this.gatewayGetK8SAuthConfigWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayGetLdapAuthConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayGetLdapAuthConfigOutput} and HTTP response + */},{key:"gatewayGetLdapAuthConfigWithHttpInfo",value:function gatewayGetLdapAuthConfigWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayGetLdapAuthConfig");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayGetLdapAuthConfigOutput["default"];return this.apiClient.callApi('/gateway-get-ldap-auth-config','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayGetLdapAuthConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayGetLdapAuthConfigOutput} + */},{key:"gatewayGetLdapAuthConfig",value:function gatewayGetLdapAuthConfig(body){return this.gatewayGetLdapAuthConfigWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayGetMigration} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationGetOutput} and HTTP response + */},{key:"gatewayGetMigrationWithHttpInfo",value:function gatewayGetMigrationWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayGetMigration");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayMigrationGetOutput["default"];return this.apiClient.callApi('/gateway-get-migration','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayGetMigration} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationGetOutput} + */},{key:"gatewayGetMigration",value:function gatewayGetMigration(body){return this.gatewayGetMigrationWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayGetProducer} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DSProducerDetails} and HTTP response + */},{key:"gatewayGetProducerWithHttpInfo",value:function gatewayGetProducerWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayGetProducer");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_DSProducerDetails["default"];return this.apiClient.callApi('/gateway-get-producer','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayGetProducer} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DSProducerDetails} + */},{key:"gatewayGetProducer",value:function gatewayGetProducer(body){return this.gatewayGetProducerWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayGetTmpUsers} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response + */},{key:"gatewayGetTmpUsersWithHttpInfo",value:function gatewayGetTmpUsersWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayGetTmpUsers");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=[_TmpUserData["default"]];return this.apiClient.callApi('/gateway-get-producer-tmp-creds','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayGetTmpUsers} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} + */},{key:"gatewayGetTmpUsers",value:function gatewayGetTmpUsers(body){return this.gatewayGetTmpUsersWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayListMigration} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationListOutput} and HTTP response + */},{key:"gatewayListMigrationWithHttpInfo",value:function gatewayListMigrationWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayListMigration");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayMigrationListOutput["default"];return this.apiClient.callApi('/gateway-list-migration','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayListMigration} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationListOutput} + */},{key:"gatewayListMigration",value:function gatewayListMigration(body){return this.gatewayListMigrationWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayListProducers} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducersListReplyObj} and HTTP response + */},{key:"gatewayListProducersWithHttpInfo",value:function gatewayListProducersWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayListProducers");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetProducersListReplyObj["default"];return this.apiClient.callApi('/gateway-list-producers','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayListProducers} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducersListReplyObj} + */},{key:"gatewayListProducers",value:function gatewayListProducers(body){return this.gatewayListProducersWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayListRotatedSecrets} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListItemsOutput} and HTTP response + */},{key:"gatewayListRotatedSecretsWithHttpInfo",value:function gatewayListRotatedSecretsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayListRotatedSecrets");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ListItemsOutput["default"];return this.apiClient.callApi('/gateway-list-rotated-secrets','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayListRotatedSecrets} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListItemsOutput} + */},{key:"gatewayListRotatedSecrets",value:function gatewayListRotatedSecrets(body){return this.gatewayListRotatedSecretsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/GatewayMigratePersonalItems} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigratePersonalItemsOutput} and HTTP response + */},{key:"gatewayMigratePersonalItemsWithHttpInfo",value:function gatewayMigratePersonalItemsWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayMigratePersonalItemsOutput["default"];return this.apiClient.callApi('/gateway-migrate-personal-items','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/GatewayMigratePersonalItems} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigratePersonalItemsOutput} + */},{key:"gatewayMigratePersonalItems",value:function gatewayMigratePersonalItems(opts){return this.gatewayMigratePersonalItemsWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayRevokeTmpUsers} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */},{key:"gatewayRevokeTmpUsersWithHttpInfo",value:function gatewayRevokeTmpUsersWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayRevokeTmpUsers");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=null;return this.apiClient.callApi('/gateway-revoke-producer-tmp-creds','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayRevokeTmpUsers} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */},{key:"gatewayRevokeTmpUsers",value:function gatewayRevokeTmpUsers(body){return this.gatewayRevokeTmpUsersWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayStartProducer} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayStartProducerOutput} and HTTP response + */},{key:"gatewayStartProducerWithHttpInfo",value:function gatewayStartProducerWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayStartProducer");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayStartProducerOutput["default"];return this.apiClient.callApi('/gateway-start-producer','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayStartProducer} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayStartProducerOutput} + */},{key:"gatewayStartProducer",value:function gatewayStartProducer(body){return this.gatewayStartProducerWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayStatusMigration} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MigrationStatusReplyObj} and HTTP response + */},{key:"gatewayStatusMigrationWithHttpInfo",value:function gatewayStatusMigrationWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayStatusMigration");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_MigrationStatusReplyObj["default"];return this.apiClient.callApi('/gateway-migration-status','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayStatusMigration} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MigrationStatusReplyObj} + */},{key:"gatewayStatusMigration",value:function gatewayStatusMigration(body){return this.gatewayStatusMigrationWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayStopProducer} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayStopProducerOutput} and HTTP response + */},{key:"gatewayStopProducerWithHttpInfo",value:function gatewayStopProducerWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayStopProducer");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayStopProducerOutput["default"];return this.apiClient.callApi('/gateway-stop-producer','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayStopProducer} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayStopProducerOutput} + */},{key:"gatewayStopProducer",value:function gatewayStopProducer(body){return this.gatewayStopProducerWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewaySyncMigration} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationSyncOutput} and HTTP response + */},{key:"gatewaySyncMigrationWithHttpInfo",value:function gatewaySyncMigrationWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewaySyncMigration");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayMigrationSyncOutput["default"];return this.apiClient.callApi('/gateway-sync-migration','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewaySyncMigration} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationSyncOutput} + */},{key:"gatewaySyncMigration",value:function gatewaySyncMigration(body){return this.gatewaySyncMigrationWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateAllowedAccess} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AllowedAccess} and HTTP response + */},{key:"gatewayUpdateAllowedAccessWithHttpInfo",value:function gatewayUpdateAllowedAccessWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateAllowedAccess");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_AllowedAccess["default"];return this.apiClient.callApi('/gateway-update-allowed-access','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateAllowedAccess} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllowedAccess} + */},{key:"gatewayUpdateAllowedAccess",value:function gatewayUpdateAllowedAccess(body){return this.gatewayUpdateAllowedAccessWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateItem} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateItemOutput} and HTTP response + */},{key:"gatewayUpdateItemWithHttpInfo",value:function gatewayUpdateItemWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateItem");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateItemOutput["default"];return this.apiClient.callApi('/gateway-update-item','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateItem} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateItemOutput} + */},{key:"gatewayUpdateItem",value:function gatewayUpdateItem(body){return this.gatewayUpdateItemWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateK8SAuthConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateK8SAuthConfigOutput} and HTTP response + */},{key:"gatewayUpdateK8SAuthConfigWithHttpInfo",value:function gatewayUpdateK8SAuthConfigWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateK8SAuthConfig");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateK8SAuthConfigOutput["default"];return this.apiClient.callApi('/gateway-update-k8s-auth-config','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateK8SAuthConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateK8SAuthConfigOutput} + */},{key:"gatewayUpdateK8SAuthConfig",value:function gatewayUpdateK8SAuthConfig(body){return this.gatewayUpdateK8SAuthConfigWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateLdapAuthConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateLdapAuthConfigOutput} and HTTP response + */},{key:"gatewayUpdateLdapAuthConfigWithHttpInfo",value:function gatewayUpdateLdapAuthConfigWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateLdapAuthConfig");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateLdapAuthConfigOutput["default"];return this.apiClient.callApi('/gateway-update-ldap-auth-config','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateLdapAuthConfig} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateLdapAuthConfigOutput} + */},{key:"gatewayUpdateLdapAuthConfig",value:function gatewayUpdateLdapAuthConfig(body){return this.gatewayUpdateLdapAuthConfigWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateMigration} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayMigrationUpdateOutput} and HTTP response + */},{key:"gatewayUpdateMigrationWithHttpInfo",value:function gatewayUpdateMigrationWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateMigration");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayMigrationUpdateOutput["default"];return this.apiClient.callApi('/gateway-update-migration','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateMigration} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayMigrationUpdateOutput} + */},{key:"gatewayUpdateMigration",value:function gatewayUpdateMigration(body){return this.gatewayUpdateMigrationWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerArtifactory} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerArtifactoryOutput} and HTTP response + */},{key:"gatewayUpdateProducerArtifactoryWithHttpInfo",value:function gatewayUpdateProducerArtifactoryWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerArtifactory");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerArtifactoryOutput["default"];return this.apiClient.callApi('/gateway-update-producer-artifactory','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerArtifactory} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerArtifactoryOutput} + */},{key:"gatewayUpdateProducerArtifactory",value:function gatewayUpdateProducerArtifactory(body){return this.gatewayUpdateProducerArtifactoryWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerAws} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerAwsOutput} and HTTP response + */},{key:"gatewayUpdateProducerAwsWithHttpInfo",value:function gatewayUpdateProducerAwsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerAws");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerAwsOutput["default"];return this.apiClient.callApi('/gateway-update-producer-aws','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerAws} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerAwsOutput} + */},{key:"gatewayUpdateProducerAws",value:function gatewayUpdateProducerAws(body){return this.gatewayUpdateProducerAwsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerAzure} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerAzureOutput} and HTTP response + */},{key:"gatewayUpdateProducerAzureWithHttpInfo",value:function gatewayUpdateProducerAzureWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerAzure");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerAzureOutput["default"];return this.apiClient.callApi('/gateway-update-producer-azure','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerAzure} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerAzureOutput} + */},{key:"gatewayUpdateProducerAzure",value:function gatewayUpdateProducerAzure(body){return this.gatewayUpdateProducerAzureWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerCassandra} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerCassandraOutput} and HTTP response + */},{key:"gatewayUpdateProducerCassandraWithHttpInfo",value:function gatewayUpdateProducerCassandraWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerCassandra");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerCassandraOutput["default"];return this.apiClient.callApi('/gateway-update-producer-cassandra','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerCassandra} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerCassandraOutput} + */},{key:"gatewayUpdateProducerCassandra",value:function gatewayUpdateProducerCassandra(body){return this.gatewayUpdateProducerCassandraWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerChef} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerChefOutput} and HTTP response + */},{key:"gatewayUpdateProducerChefWithHttpInfo",value:function gatewayUpdateProducerChefWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerChef");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerChefOutput["default"];return this.apiClient.callApi('/gateway-update-producer-chef','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerChef} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerChefOutput} + */},{key:"gatewayUpdateProducerChef",value:function gatewayUpdateProducerChef(body){return this.gatewayUpdateProducerChefWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/GatewayUpdateProducerCustom} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerCustomOutput} and HTTP response + */},{key:"gatewayUpdateProducerCustomWithHttpInfo",value:function gatewayUpdateProducerCustomWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerCustomOutput["default"];return this.apiClient.callApi('/gateway-update-producer-custom','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/GatewayUpdateProducerCustom} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerCustomOutput} + */},{key:"gatewayUpdateProducerCustom",value:function gatewayUpdateProducerCustom(opts){return this.gatewayUpdateProducerCustomWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerDockerhub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerDockerhubOutput} and HTTP response + */},{key:"gatewayUpdateProducerDockerhubWithHttpInfo",value:function gatewayUpdateProducerDockerhubWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerDockerhub");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerDockerhubOutput["default"];return this.apiClient.callApi('/gateway-update-producer-dockerhub','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerDockerhub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerDockerhubOutput} + */},{key:"gatewayUpdateProducerDockerhub",value:function gatewayUpdateProducerDockerhub(body){return this.gatewayUpdateProducerDockerhubWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerEks} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerEksOutput} and HTTP response + */},{key:"gatewayUpdateProducerEksWithHttpInfo",value:function gatewayUpdateProducerEksWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerEks");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerEksOutput["default"];return this.apiClient.callApi('/gateway-update-producer-eks','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerEks} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerEksOutput} + */},{key:"gatewayUpdateProducerEks",value:function gatewayUpdateProducerEks(body){return this.gatewayUpdateProducerEksWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerGcp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerGcpOutput} and HTTP response + */},{key:"gatewayUpdateProducerGcpWithHttpInfo",value:function gatewayUpdateProducerGcpWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerGcp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerGcpOutput["default"];return this.apiClient.callApi('/gateway-update-producer-gcp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerGcp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerGcpOutput} + */},{key:"gatewayUpdateProducerGcp",value:function gatewayUpdateProducerGcp(body){return this.gatewayUpdateProducerGcpWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerGithub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerGithubOutput} and HTTP response + */},{key:"gatewayUpdateProducerGithubWithHttpInfo",value:function gatewayUpdateProducerGithubWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerGithub");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerGithubOutput["default"];return this.apiClient.callApi('/gateway-update-producer-github','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerGithub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerGithubOutput} + */},{key:"gatewayUpdateProducerGithub",value:function gatewayUpdateProducerGithub(body){return this.gatewayUpdateProducerGithubWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerGke} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerGkeOutput} and HTTP response + */},{key:"gatewayUpdateProducerGkeWithHttpInfo",value:function gatewayUpdateProducerGkeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerGke");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerGkeOutput["default"];return this.apiClient.callApi('/gateway-update-producer-gke','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerGke} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerGkeOutput} + */},{key:"gatewayUpdateProducerGke",value:function gatewayUpdateProducerGke(body){return this.gatewayUpdateProducerGkeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerHanaDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerHanaDbOutput} and HTTP response + */},{key:"gatewayUpdateProducerHanaDbWithHttpInfo",value:function gatewayUpdateProducerHanaDbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerHanaDb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerHanaDbOutput["default"];return this.apiClient.callApi('/gateway-update-producer-hana','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerHanaDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerHanaDbOutput} + */},{key:"gatewayUpdateProducerHanaDb",value:function gatewayUpdateProducerHanaDb(body){return this.gatewayUpdateProducerHanaDbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerLdap} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerLdapOutput} and HTTP response + */},{key:"gatewayUpdateProducerLdapWithHttpInfo",value:function gatewayUpdateProducerLdapWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerLdap");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerLdapOutput["default"];return this.apiClient.callApi('/gateway-update-producer-ldap','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerLdap} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerLdapOutput} + */},{key:"gatewayUpdateProducerLdap",value:function gatewayUpdateProducerLdap(body){return this.gatewayUpdateProducerLdapWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerMSSQL} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerMSSQLOutput} and HTTP response + */},{key:"gatewayUpdateProducerMSSQLWithHttpInfo",value:function gatewayUpdateProducerMSSQLWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerMSSQL");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerMSSQLOutput["default"];return this.apiClient.callApi('/gateway-update-producer-mssql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerMSSQL} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerMSSQLOutput} + */},{key:"gatewayUpdateProducerMSSQL",value:function gatewayUpdateProducerMSSQL(body){return this.gatewayUpdateProducerMSSQLWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerMongo} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerMongoOutput} and HTTP response + */},{key:"gatewayUpdateProducerMongoWithHttpInfo",value:function gatewayUpdateProducerMongoWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerMongo");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerMongoOutput["default"];return this.apiClient.callApi('/gateway-update-producer-mongo','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerMongo} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerMongoOutput} + */},{key:"gatewayUpdateProducerMongo",value:function gatewayUpdateProducerMongo(body){return this.gatewayUpdateProducerMongoWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerMySQL} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerMySQLOutput} and HTTP response + */},{key:"gatewayUpdateProducerMySQLWithHttpInfo",value:function gatewayUpdateProducerMySQLWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerMySQL");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerMySQLOutput["default"];return this.apiClient.callApi('/gateway-update-producer-mysql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerMySQL} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerMySQLOutput} + */},{key:"gatewayUpdateProducerMySQL",value:function gatewayUpdateProducerMySQL(body){return this.gatewayUpdateProducerMySQLWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerNativeK8S} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerNativeK8SOutput} and HTTP response + */},{key:"gatewayUpdateProducerNativeK8SWithHttpInfo",value:function gatewayUpdateProducerNativeK8SWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerNativeK8S");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerNativeK8SOutput["default"];return this.apiClient.callApi('/gateway-update-producer-k8s','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerNativeK8S} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerNativeK8SOutput} + */},{key:"gatewayUpdateProducerNativeK8S",value:function gatewayUpdateProducerNativeK8S(body){return this.gatewayUpdateProducerNativeK8SWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerOracleDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerOracleDbOutput} and HTTP response + */},{key:"gatewayUpdateProducerOracleDbWithHttpInfo",value:function gatewayUpdateProducerOracleDbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerOracleDb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerOracleDbOutput["default"];return this.apiClient.callApi('/gateway-update-producer-oracle','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerOracleDb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerOracleDbOutput} + */},{key:"gatewayUpdateProducerOracleDb",value:function gatewayUpdateProducerOracleDb(body){return this.gatewayUpdateProducerOracleDbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerPing} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerPingOutput} and HTTP response + */},{key:"gatewayUpdateProducerPingWithHttpInfo",value:function gatewayUpdateProducerPingWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerPing");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerPingOutput["default"];return this.apiClient.callApi('/gateway-update-producer-ping','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerPing} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerPingOutput} + */},{key:"gatewayUpdateProducerPing",value:function gatewayUpdateProducerPing(body){return this.gatewayUpdateProducerPingWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerPostgreSQL} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerPostgreSQLOutput} and HTTP response + */},{key:"gatewayUpdateProducerPostgreSQLWithHttpInfo",value:function gatewayUpdateProducerPostgreSQLWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerPostgreSQL");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerPostgreSQLOutput["default"];return this.apiClient.callApi('/gateway-update-producer-postgresql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerPostgreSQL} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerPostgreSQLOutput} + */},{key:"gatewayUpdateProducerPostgreSQL",value:function gatewayUpdateProducerPostgreSQL(body){return this.gatewayUpdateProducerPostgreSQLWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerRabbitMQ} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerRabbitMQOutput} and HTTP response + */},{key:"gatewayUpdateProducerRabbitMQWithHttpInfo",value:function gatewayUpdateProducerRabbitMQWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerRabbitMQ");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerRabbitMQOutput["default"];return this.apiClient.callApi('/gateway-update-producer-rabbitmq','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerRabbitMQ} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerRabbitMQOutput} + */},{key:"gatewayUpdateProducerRabbitMQ",value:function gatewayUpdateProducerRabbitMQ(body){return this.gatewayUpdateProducerRabbitMQWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerRdp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerRdpOutput} and HTTP response + */},{key:"gatewayUpdateProducerRdpWithHttpInfo",value:function gatewayUpdateProducerRdpWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerRdp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerRdpOutput["default"];return this.apiClient.callApi('/gateway-update-producer-rdp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerRdp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerRdpOutput} + */},{key:"gatewayUpdateProducerRdp",value:function gatewayUpdateProducerRdp(body){return this.gatewayUpdateProducerRdpWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerRedis} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerRedisOutput} and HTTP response + */},{key:"gatewayUpdateProducerRedisWithHttpInfo",value:function gatewayUpdateProducerRedisWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerRedis");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerRedisOutput["default"];return this.apiClient.callApi('/gateway-update-producer-redis','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerRedis} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerRedisOutput} + */},{key:"gatewayUpdateProducerRedis",value:function gatewayUpdateProducerRedis(body){return this.gatewayUpdateProducerRedisWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerRedshift} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerRedshiftOutput} and HTTP response + */},{key:"gatewayUpdateProducerRedshiftWithHttpInfo",value:function gatewayUpdateProducerRedshiftWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerRedshift");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerRedshiftOutput["default"];return this.apiClient.callApi('/gateway-update-producer-redshift','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerRedshift} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerRedshiftOutput} + */},{key:"gatewayUpdateProducerRedshift",value:function gatewayUpdateProducerRedshift(body){return this.gatewayUpdateProducerRedshiftWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerSnowflake} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerSnowflakeOutput} and HTTP response + */},{key:"gatewayUpdateProducerSnowflakeWithHttpInfo",value:function gatewayUpdateProducerSnowflakeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerSnowflake");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerSnowflakeOutput["default"];return this.apiClient.callApi('/gateway-update-producer-snowflake','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerSnowflake} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerSnowflakeOutput} + */},{key:"gatewayUpdateProducerSnowflake",value:function gatewayUpdateProducerSnowflake(body){return this.gatewayUpdateProducerSnowflakeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateProducerVenafi} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateProducerVenafiOutput} and HTTP response + */},{key:"gatewayUpdateProducerVenafiWithHttpInfo",value:function gatewayUpdateProducerVenafiWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateProducerVenafi");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateProducerVenafiOutput["default"];return this.apiClient.callApi('/gateway-update-producer-certificate-automation','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateProducerVenafi} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateProducerVenafiOutput} + */},{key:"gatewayUpdateProducerVenafi",value:function gatewayUpdateProducerVenafi(body){return this.gatewayUpdateProducerVenafiWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateTlsCert} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewayUpdateTlsCertOutput} and HTTP response + */},{key:"gatewayUpdateTlsCertWithHttpInfo",value:function gatewayUpdateTlsCertWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateTlsCert");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewayUpdateTlsCertOutput["default"];return this.apiClient.callApi('/gateway-update-tls-cert','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateTlsCert} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewayUpdateTlsCertOutput} + */},{key:"gatewayUpdateTlsCert",value:function gatewayUpdateTlsCert(body){return this.gatewayUpdateTlsCertWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GatewayUpdateTmpUsers} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */},{key:"gatewayUpdateTmpUsersWithHttpInfo",value:function gatewayUpdateTmpUsersWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling gatewayUpdateTmpUsers");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=null;return this.apiClient.callApi('/gateway-update-producer-tmp-creds','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GatewayUpdateTmpUsers} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */},{key:"gatewayUpdateTmpUsers",value:function gatewayUpdateTmpUsers(body){return this.gatewayUpdateTmpUsersWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GenerateCsr} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GenerateCsrOutput} and HTTP response + */},{key:"generateCsrWithHttpInfo",value:function generateCsrWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling generateCsr");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GenerateCsrOutput["default"];return this.apiClient.callApi('/generate-csr','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GenerateCsr} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GenerateCsrOutput} + */},{key:"generateCsr",value:function generateCsr(body){return this.generateCsrWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response + */},{key:"getAccountLogoWithHttpInfo",value:function getAccountLogoWithHttpInfo(){var postBody=null;var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=[];var accepts=['application/json'];var returnType={'String':'String'};return this.apiClient.callApi('/get-account-logo','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} + */},{key:"getAccountLogo",value:function getAccountLogo(){return this.getAccountLogoWithHttpInfo().then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetAccountSettings} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAccountSettingsCommandOutput} and HTTP response + */},{key:"getAccountSettingsWithHttpInfo",value:function getAccountSettingsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getAccountSettings");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetAccountSettingsCommandOutput["default"];return this.apiClient.callApi('/get-account-settings','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetAccountSettings} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAccountSettingsCommandOutput} + */},{key:"getAccountSettings",value:function getAccountSettings(body){return this.getAccountSettingsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetAnalyticsData} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AllAnalyticsData} and HTTP response + */},{key:"getAnalyticsDataWithHttpInfo",value:function getAnalyticsDataWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getAnalyticsData");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_AllAnalyticsData["default"];return this.apiClient.callApi('/get-analytics-data','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetAnalyticsData} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllAnalyticsData} + */},{key:"getAnalyticsData",value:function getAnalyticsData(body){return this.getAnalyticsDataWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetAuthMethod} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AuthMethod} and HTTP response + */},{key:"getAuthMethodWithHttpInfo",value:function getAuthMethodWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getAuthMethod");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_AuthMethod["default"];return this.apiClient.callApi('/get-auth-method','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetAuthMethod} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AuthMethod} + */},{key:"getAuthMethod",value:function getAuthMethod(body){return this.getAuthMethodWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetCertificateValue} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetCertificateValueOutput} and HTTP response + */},{key:"getCertificateValueWithHttpInfo",value:function getCertificateValueWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getCertificateValue");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetCertificateValueOutput["default"];return this.apiClient.callApi('/get-certificate-value','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetCertificateValue} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetCertificateValueOutput} + */},{key:"getCertificateValue",value:function getCertificateValue(body){return this.getCertificateValueWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetDynamicSecretValue} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response + */},{key:"getDynamicSecretValueWithHttpInfo",value:function getDynamicSecretValueWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getDynamicSecretValue");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType={'String':'String'};return this.apiClient.callApi('/get-dynamic-secret-value','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetDynamicSecretValue} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} + */},{key:"getDynamicSecretValue",value:function getDynamicSecretValue(body){return this.getDynamicSecretValueWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetEventForwarder} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEventForwarderOutput} and HTTP response + */},{key:"getEventForwarderWithHttpInfo",value:function getEventForwarderWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getEventForwarder");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetEventForwarderOutput["default"];return this.apiClient.callApi('/get-event-forwarder','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetEventForwarder} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEventForwarderOutput} + */},{key:"getEventForwarder",value:function getEventForwarder(body){return this.getEventForwarderWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetGroup} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetGroupOutput} and HTTP response + */},{key:"getGroupWithHttpInfo",value:function getGroupWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getGroup");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetGroupOutput["default"];return this.apiClient.callApi('/get-group','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetGroup} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetGroupOutput} + */},{key:"getGroup",value:function getGroup(body){return this.getGroupWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetKubeExecCreds} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetKubeExecCredsOutput} and HTTP response + */},{key:"getKubeExecCredsWithHttpInfo",value:function getKubeExecCredsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getKubeExecCreds");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetKubeExecCredsOutput["default"];return this.apiClient.callApi('/get-kube-exec-creds','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetKubeExecCreds} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetKubeExecCredsOutput} + */},{key:"getKubeExecCreds",value:function getKubeExecCreds(body){return this.getKubeExecCredsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetLastUserEventStatus} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetUserEventStatusOutput} and HTTP response + */},{key:"getLastUserEventStatusWithHttpInfo",value:function getLastUserEventStatusWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getLastUserEventStatus");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetUserEventStatusOutput["default"];return this.apiClient.callApi('/user-event-last-status','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetLastUserEventStatus} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetUserEventStatusOutput} + */},{key:"getLastUserEventStatus",value:function getLastUserEventStatus(body){return this.getLastUserEventStatusWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetPKICertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetPKICertificateOutput} and HTTP response + */},{key:"getPKICertificateWithHttpInfo",value:function getPKICertificateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getPKICertificate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetPKICertificateOutput["default"];return this.apiClient.callApi('/get-pki-certificate','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetPKICertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetPKICertificateOutput} + */},{key:"getPKICertificate",value:function getPKICertificate(body){return this.getPKICertificateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetRSAPublic} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRSAPublicOutput} and HTTP response + */},{key:"getRSAPublicWithHttpInfo",value:function getRSAPublicWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getRSAPublic");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetRSAPublicOutput["default"];return this.apiClient.callApi('/get-rsa-public','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetRSAPublic} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRSAPublicOutput} + */},{key:"getRSAPublic",value:function getRSAPublic(body){return this.getRSAPublicWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetRole} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Role} and HTTP response + */},{key:"getRoleWithHttpInfo",value:function getRoleWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getRole");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_Role["default"];return this.apiClient.callApi('/get-role','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetRole} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Role} + */},{key:"getRole",value:function getRole(body){return this.getRoleWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetRotatedSecretValue} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response + */},{key:"getRotatedSecretValueWithHttpInfo",value:function getRotatedSecretValueWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getRotatedSecretValue");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType={'String':Object};return this.apiClient.callApi('/get-rotated-secret-value','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetRotatedSecretValue} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} + */},{key:"getRotatedSecretValue",value:function getRotatedSecretValue(body){return this.getRotatedSecretValueWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetSSHCertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSSHCertificateOutput} and HTTP response + */},{key:"getSSHCertificateWithHttpInfo",value:function getSSHCertificateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getSSHCertificate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetSSHCertificateOutput["default"];return this.apiClient.callApi('/get-ssh-certificate','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetSSHCertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSSHCertificateOutput} + */},{key:"getSSHCertificate",value:function getSSHCertificate(body){return this.getSSHCertificateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetSecretValue} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response + */},{key:"getSecretValueWithHttpInfo",value:function getSecretValueWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getSecretValue");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType={'String':'String'};return this.apiClient.callApi('/get-secret-value','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetSecretValue} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} + */},{key:"getSecretValue",value:function getSecretValue(body){return this.getSecretValueWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetTags} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response + */},{key:"getTagsWithHttpInfo",value:function getTagsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getTags");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=['String'];return this.apiClient.callApi('/get-tags','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetTags} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} + */},{key:"getTags",value:function getTags(body){return this.getTagsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Target} and HTTP response + */},{key:"getTargetWithHttpInfo",value:function getTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_Target["default"];return this.apiClient.callApi('/get-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Target} + */},{key:"getTarget",value:function getTarget(body){return this.getTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/GetTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetTargetDetailsOutput} and HTTP response + */},{key:"getTargetDetailsWithHttpInfo",value:function getTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling getTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetTargetDetailsOutput["default"];return this.apiClient.callApi('/get-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/GetTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetTargetDetailsOutput} + */},{key:"getTargetDetails",value:function getTargetDetails(body){return this.getTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/Hmac} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HmacOutput} and HTTP response + */},{key:"hmacWithHttpInfo",value:function hmacWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling hmac");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_HmacOutput["default"];return this.apiClient.callApi('/hmac','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/Hmac} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HmacOutput} + */},{key:"hmac",value:function hmac(body){return this.hmacWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/ImportPasswords} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ImportPasswordsOutput} and HTTP response + */},{key:"importPasswordsWithHttpInfo",value:function importPasswordsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling importPasswords");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ImportPasswordsOutput["default"];return this.apiClient.callApi('/import-passwords','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/ImportPasswords} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ImportPasswordsOutput} + */},{key:"importPasswords",value:function importPasswords(body){return this.importPasswordsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipClientDeleteRule} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KMIPClientUpdateResponse} and HTTP response + */},{key:"kmipClientDeleteRuleWithHttpInfo",value:function kmipClientDeleteRuleWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KMIPClientUpdateResponse["default"];return this.apiClient.callApi('/kmip-client-delete-rule','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipClientDeleteRule} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KMIPClientUpdateResponse} + */},{key:"kmipClientDeleteRule",value:function kmipClientDeleteRule(opts){return this.kmipClientDeleteRuleWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipClientSetRule} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KMIPClientUpdateResponse} and HTTP response + */},{key:"kmipClientSetRuleWithHttpInfo",value:function kmipClientSetRuleWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KMIPClientUpdateResponse["default"];return this.apiClient.callApi('/kmip-client-set-rule','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipClientSetRule} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KMIPClientUpdateResponse} + */},{key:"kmipClientSetRule",value:function kmipClientSetRule(opts){return this.kmipClientSetRuleWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipCreateClient} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipCreateClientOutput} and HTTP response + */},{key:"kmipCreateClientWithHttpInfo",value:function kmipCreateClientWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KmipCreateClientOutput["default"];return this.apiClient.callApi('/kmip-create-client','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipCreateClient} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipCreateClientOutput} + */},{key:"kmipCreateClient",value:function kmipCreateClient(opts){return this.kmipCreateClientWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipDeleteClient} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"kmipDeleteClientWithHttpInfo",value:function kmipDeleteClientWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/kmip-delete-client','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipDeleteClient} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"kmipDeleteClient",value:function kmipDeleteClient(opts){return this.kmipDeleteClientWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipDeleteServer} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"kmipDeleteServerWithHttpInfo",value:function kmipDeleteServerWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/kmip-delete-environment','DELETE',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipDeleteServer} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"kmipDeleteServer",value:function kmipDeleteServer(opts){return this.kmipDeleteServerWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipDescribeClient} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KMIPClientGetResponse} and HTTP response + */},{key:"kmipDescribeClientWithHttpInfo",value:function kmipDescribeClientWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KMIPClientGetResponse["default"];return this.apiClient.callApi('/kmip-get-client','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipDescribeClient} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KMIPClientGetResponse} + */},{key:"kmipDescribeClient",value:function kmipDescribeClient(opts){return this.kmipDescribeClientWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipDescribeServer} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipDescribeServerOutput} and HTTP response + */},{key:"kmipDescribeServerWithHttpInfo",value:function kmipDescribeServerWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KmipDescribeServerOutput["default"];return this.apiClient.callApi('/kmip-get-environment','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipDescribeServer} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipDescribeServerOutput} + */},{key:"kmipDescribeServer",value:function kmipDescribeServer(opts){return this.kmipDescribeServerWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipListClients} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KMIPClientListResponse} and HTTP response + */},{key:"kmipListClientsWithHttpInfo",value:function kmipListClientsWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KMIPClientListResponse["default"];return this.apiClient.callApi('/kmip-list-clients','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipListClients} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KMIPClientListResponse} + */},{key:"kmipListClients",value:function kmipListClients(opts){return this.kmipListClientsWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipMoveServer} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipMoveServerOutput} and HTTP response + */},{key:"kmipMoveServerWithHttpInfo",value:function kmipMoveServerWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KmipMoveServerOutput["default"];return this.apiClient.callApi('/kmip-move-environment','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipMoveServer} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipMoveServerOutput} + */},{key:"kmipMoveServer",value:function kmipMoveServer(opts){return this.kmipMoveServerWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipRenewClientCertificate} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipRenewClientCertificateOutput} and HTTP response + */},{key:"kmipRenewClientCertificateWithHttpInfo",value:function kmipRenewClientCertificateWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KmipRenewClientCertificateOutput["default"];return this.apiClient.callApi('/kmip-renew-client','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipRenewClientCertificate} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipRenewClientCertificateOutput} + */},{key:"kmipRenewClientCertificate",value:function kmipRenewClientCertificate(opts){return this.kmipRenewClientCertificateWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipRenewServerCertificate} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipRenewServerCertificateOutput} and HTTP response + */},{key:"kmipRenewServerCertificateWithHttpInfo",value:function kmipRenewServerCertificateWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KmipRenewServerCertificateOutput["default"];return this.apiClient.callApi('/kmip-renew-environment','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipRenewServerCertificate} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipRenewServerCertificateOutput} + */},{key:"kmipRenewServerCertificate",value:function kmipRenewServerCertificate(opts){return this.kmipRenewServerCertificateWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipServerSetup} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KMIPEnvironmentCreateResponse} and HTTP response + */},{key:"kmipServerSetupWithHttpInfo",value:function kmipServerSetupWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KMIPEnvironmentCreateResponse["default"];return this.apiClient.callApi('/kmip-create-environment','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipServerSetup} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KMIPEnvironmentCreateResponse} + */},{key:"kmipServerSetup",value:function kmipServerSetup(opts){return this.kmipServerSetupWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipSetServerState} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/KmipSetServerStateOutput} and HTTP response + */},{key:"kmipSetServerStateWithHttpInfo",value:function kmipSetServerStateWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_KmipSetServerStateOutput["default"];return this.apiClient.callApi('/kmip-set-environment-state','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/KmipSetServerState} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/KmipSetServerStateOutput} + */},{key:"kmipSetServerState",value:function kmipSetServerState(opts){return this.kmipSetServerStateWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/ListAuthMethods} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAuthMethodsOutput} and HTTP response + */},{key:"listAuthMethodsWithHttpInfo",value:function listAuthMethodsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling listAuthMethods");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ListAuthMethodsOutput["default"];return this.apiClient.callApi('/list-auth-methods','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/ListAuthMethods} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAuthMethodsOutput} + */},{key:"listAuthMethods",value:function listAuthMethods(body){return this.listAuthMethodsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/ListGateways} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GatewaysListResponse} and HTTP response + */},{key:"listGatewaysWithHttpInfo",value:function listGatewaysWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling listGateways");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GatewaysListResponse["default"];return this.apiClient.callApi('/list-gateways','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/ListGateways} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GatewaysListResponse} + */},{key:"listGateways",value:function listGateways(body){return this.listGatewaysWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/ListGroups} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListGroupsOutput} and HTTP response + */},{key:"listGroupsWithHttpInfo",value:function listGroupsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling listGroups");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ListGroupsOutput["default"];return this.apiClient.callApi('/list-group','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/ListGroups} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListGroupsOutput} + */},{key:"listGroups",value:function listGroups(body){return this.listGroupsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/ListItems} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListItemsInPathOutput} and HTTP response + */},{key:"listItemsWithHttpInfo",value:function listItemsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling listItems");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ListItemsInPathOutput["default"];return this.apiClient.callApi('/list-items','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/ListItems} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListItemsInPathOutput} + */},{key:"listItems",value:function listItems(body){return this.listItemsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/ListRoles} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListRolesOutput} and HTTP response + */},{key:"listRolesWithHttpInfo",value:function listRolesWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling listRoles");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ListRolesOutput["default"];return this.apiClient.callApi('/list-roles','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/ListRoles} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListRolesOutput} + */},{key:"listRoles",value:function listRoles(body){return this.listRolesWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/ListSRABastions} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BastionsList} and HTTP response + */},{key:"listSRABastionsWithHttpInfo",value:function listSRABastionsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling listSRABastions");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_BastionsList["default"];return this.apiClient.callApi('/list-sra-bastions','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/ListSRABastions} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BastionsList} + */},{key:"listSRABastions",value:function listSRABastions(body){return this.listSRABastionsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/ListSharedItems} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */},{key:"listSharedItemsWithHttpInfo",value:function listSharedItemsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling listSharedItems");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=null;return this.apiClient.callApi('/list-shared-items','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/ListSharedItems} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */},{key:"listSharedItems",value:function listSharedItems(body){return this.listSharedItemsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/ListTargets} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTargetsOutput} and HTTP response + */},{key:"listTargetsWithHttpInfo",value:function listTargetsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling listTargets");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ListTargetsOutput["default"];return this.apiClient.callApi('/list-targets','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/ListTargets} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTargetsOutput} + */},{key:"listTargets",value:function listTargets(body){return this.listTargetsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/MoveObjects} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"moveObjectsWithHttpInfo",value:function moveObjectsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling moveObjects");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/move-objects','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/MoveObjects} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"moveObjects",value:function moveObjects(body){return this.moveObjectsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/ProvisionCertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProvisionCertificateOutput} and HTTP response + */},{key:"provisionCertificateWithHttpInfo",value:function provisionCertificateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling provisionCertificate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ProvisionCertificateOutput["default"];return this.apiClient.callApi('/provision-certificate','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/ProvisionCertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProvisionCertificateOutput} + */},{key:"provisionCertificate",value:function provisionCertificate(body){return this.provisionCertificateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {Object} opts Optional parameters + * @param {module:model/RawCreds} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SystemAccessCredentialsReplyObj} and HTTP response + */},{key:"rawCredsWithHttpInfo",value:function rawCredsWithHttpInfo(opts){opts=opts||{};var postBody=opts['body'];var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_SystemAccessCredentialsReplyObj["default"];return this.apiClient.callApi('/raw-creds','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {Object} opts Optional parameters + * @param {module:model/RawCreds} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SystemAccessCredentialsReplyObj} + */},{key:"rawCreds",value:function rawCreds(opts){return this.rawCredsWithHttpInfo(opts).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RefreshKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RefreshKeyOutput} and HTTP response + */},{key:"refreshKeyWithHttpInfo",value:function refreshKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling refreshKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RefreshKeyOutput["default"];return this.apiClient.callApi('/refresh-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RefreshKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RefreshKeyOutput} + */},{key:"refreshKey",value:function refreshKey(body){return this.refreshKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RenewCertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RenewCertificateOutput} and HTTP response + */},{key:"renewCertificateWithHttpInfo",value:function renewCertificateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling renewCertificate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RenewCertificateOutput["default"];return this.apiClient.callApi('/renew-certificate','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RenewCertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RenewCertificateOutput} + */},{key:"renewCertificate",value:function renewCertificate(body){return this.renewCertificateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RequestAccess} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RequestAccessOutput} and HTTP response + */},{key:"requestAccessWithHttpInfo",value:function requestAccessWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling requestAccess");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RequestAccessOutput["default"];return this.apiClient.callApi('/request-access','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RequestAccess} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RequestAccessOutput} + */},{key:"requestAccess",value:function requestAccess(body){return this.requestAccessWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/ReverseRBAC} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ReverseRBACOutput} and HTTP response + */},{key:"reverseRBACWithHttpInfo",value:function reverseRBACWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling reverseRBAC");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ReverseRBACOutput["default"];return this.apiClient.callApi('/reverse-rbac','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/ReverseRBAC} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ReverseRBACOutput} + */},{key:"reverseRBAC",value:function reverseRBAC(body){return this.reverseRBACWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RevokeCertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"revokeCertificateWithHttpInfo",value:function revokeCertificateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling revokeCertificate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/revoke-certificate','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RevokeCertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"revokeCertificate",value:function revokeCertificate(body){return this.revokeCertificateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"revokeCredsWithHttpInfo",value:function revokeCredsWithHttpInfo(){var postBody=null;var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=[];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/revoke-creds','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"revokeCreds",value:function revokeCreds(){return this.revokeCredsWithHttpInfo().then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RollbackSecret} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RollbackSecretOutput} and HTTP response + */},{key:"rollbackSecretWithHttpInfo",value:function rollbackSecretWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rollbackSecret");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RollbackSecretOutput["default"];return this.apiClient.callApi('/rollback-secret','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RollbackSecret} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RollbackSecretOutput} + */},{key:"rollbackSecret",value:function rollbackSecret(body){return this.rollbackSecretWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotateKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotateKeyOutput} and HTTP response + */},{key:"rotateKeyWithHttpInfo",value:function rotateKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotateKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotateKeyOutput["default"];return this.apiClient.callApi('/rotate-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotateKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotateKeyOutput} + */},{key:"rotateKey",value:function rotateKey(body){return this.rotateKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotateOidcClientSecret} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotateOidcClientOutput} and HTTP response + */},{key:"rotateOidcClientSecretWithHttpInfo",value:function rotateOidcClientSecretWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotateOidcClientSecret");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotateOidcClientOutput["default"];return this.apiClient.callApi('/rotate-oidc-client-secret','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotateOidcClientSecret} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotateOidcClientOutput} + */},{key:"rotateOidcClientSecret",value:function rotateOidcClientSecret(body){return this.rotateOidcClientSecretWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotateSecret} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretOutput} and HTTP response + */},{key:"rotateSecretWithHttpInfo",value:function rotateSecretWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotateSecret");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretOutput["default"];return this.apiClient.callApi('/gateway-rotate-secret','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotateSecret} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretOutput} + */},{key:"rotateSecret",value:function rotateSecret(body){return this.rotateSecretWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateAws} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateAwsWithHttpInfo",value:function rotatedSecretCreateAwsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateAws");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-aws','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateAws} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateAws",value:function rotatedSecretCreateAws(body){return this.rotatedSecretCreateAwsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateAzure} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateAzureWithHttpInfo",value:function rotatedSecretCreateAzureWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateAzure");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-azure','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateAzure} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateAzure",value:function rotatedSecretCreateAzure(body){return this.rotatedSecretCreateAzureWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateCassandra} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateCassandraWithHttpInfo",value:function rotatedSecretCreateCassandraWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateCassandra");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-cassandra','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateCassandra} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateCassandra",value:function rotatedSecretCreateCassandra(body){return this.rotatedSecretCreateCassandraWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateCustom} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateCustomWithHttpInfo",value:function rotatedSecretCreateCustomWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateCustom");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-custom','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateCustom} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateCustom",value:function rotatedSecretCreateCustom(body){return this.rotatedSecretCreateCustomWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateDockerhub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateDockerhubWithHttpInfo",value:function rotatedSecretCreateDockerhubWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateDockerhub");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-dockerhub','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateDockerhub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateDockerhub",value:function rotatedSecretCreateDockerhub(body){return this.rotatedSecretCreateDockerhubWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateGcp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateGcpWithHttpInfo",value:function rotatedSecretCreateGcpWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateGcp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-gcp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateGcp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateGcp",value:function rotatedSecretCreateGcp(body){return this.rotatedSecretCreateGcpWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateHanadb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateHanadbWithHttpInfo",value:function rotatedSecretCreateHanadbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateHanadb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-hanadb','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateHanadb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateHanadb",value:function rotatedSecretCreateHanadb(body){return this.rotatedSecretCreateHanadbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateLdap} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateLdapWithHttpInfo",value:function rotatedSecretCreateLdapWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateLdap");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-ldap','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateLdap} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateLdap",value:function rotatedSecretCreateLdap(body){return this.rotatedSecretCreateLdapWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateMongodb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateMongodbWithHttpInfo",value:function rotatedSecretCreateMongodbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateMongodb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-mongodb','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateMongodb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateMongodb",value:function rotatedSecretCreateMongodb(body){return this.rotatedSecretCreateMongodbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateMssql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateMssqlWithHttpInfo",value:function rotatedSecretCreateMssqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateMssql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-mssql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateMssql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateMssql",value:function rotatedSecretCreateMssql(body){return this.rotatedSecretCreateMssqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateMysql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateMysqlWithHttpInfo",value:function rotatedSecretCreateMysqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateMysql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-mysql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateMysql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateMysql",value:function rotatedSecretCreateMysql(body){return this.rotatedSecretCreateMysqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateOracledb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateOracledbWithHttpInfo",value:function rotatedSecretCreateOracledbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateOracledb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-oracledb','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateOracledb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateOracledb",value:function rotatedSecretCreateOracledb(body){return this.rotatedSecretCreateOracledbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreatePostgresql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreatePostgresqlWithHttpInfo",value:function rotatedSecretCreatePostgresqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreatePostgresql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-postgresql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreatePostgresql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreatePostgresql",value:function rotatedSecretCreatePostgresql(body){return this.rotatedSecretCreatePostgresqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateRedis} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateRedisWithHttpInfo",value:function rotatedSecretCreateRedisWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateRedis");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-redis','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateRedis} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateRedis",value:function rotatedSecretCreateRedis(body){return this.rotatedSecretCreateRedisWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateRedshift} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateRedshiftWithHttpInfo",value:function rotatedSecretCreateRedshiftWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateRedshift");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-redshift','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateRedshift} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateRedshift",value:function rotatedSecretCreateRedshift(body){return this.rotatedSecretCreateRedshiftWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateSnowflake} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateSnowflakeWithHttpInfo",value:function rotatedSecretCreateSnowflakeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateSnowflake");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-snowflake','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateSnowflake} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateSnowflake",value:function rotatedSecretCreateSnowflake(body){return this.rotatedSecretCreateSnowflakeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateSsh} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateSshWithHttpInfo",value:function rotatedSecretCreateSshWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateSsh");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-ssh','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateSsh} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateSsh",value:function rotatedSecretCreateSsh(body){return this.rotatedSecretCreateSshWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretCreateWindows} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretCreateOutput} and HTTP response + */},{key:"rotatedSecretCreateWindowsWithHttpInfo",value:function rotatedSecretCreateWindowsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretCreateWindows");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretCreateOutput["default"];return this.apiClient.callApi('/rotated-secret-create-windows','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretCreateWindows} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretCreateOutput} + */},{key:"rotatedSecretCreateWindows",value:function rotatedSecretCreateWindows(body){return this.rotatedSecretCreateWindowsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretGetValue} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response + */},{key:"rotatedSecretGetValueWithHttpInfo",value:function rotatedSecretGetValueWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretGetValue");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType={'String':'String'};return this.apiClient.callApi('/rotated-secret-get-value','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretGetValue} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} + */},{key:"rotatedSecretGetValue",value:function rotatedSecretGetValue(body){return this.rotatedSecretGetValueWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretList} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducersListReplyObj} and HTTP response + */},{key:"rotatedSecretListWithHttpInfo",value:function rotatedSecretListWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretList");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_GetProducersListReplyObj["default"];return this.apiClient.callApi('/rotated-secret-list','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretList} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducersListReplyObj} + */},{key:"rotatedSecretList",value:function rotatedSecretList(body){return this.rotatedSecretListWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateAws} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateAwsWithHttpInfo",value:function rotatedSecretUpdateAwsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateAws");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-aws','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateAws} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateAws",value:function rotatedSecretUpdateAws(body){return this.rotatedSecretUpdateAwsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateAzure} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateAzureWithHttpInfo",value:function rotatedSecretUpdateAzureWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateAzure");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-azure','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateAzure} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateAzure",value:function rotatedSecretUpdateAzure(body){return this.rotatedSecretUpdateAzureWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateCassandra} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateCassandraWithHttpInfo",value:function rotatedSecretUpdateCassandraWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateCassandra");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-cassandra','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateCassandra} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateCassandra",value:function rotatedSecretUpdateCassandra(body){return this.rotatedSecretUpdateCassandraWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateCustom} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateCustomWithHttpInfo",value:function rotatedSecretUpdateCustomWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateCustom");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-custom','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateCustom} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateCustom",value:function rotatedSecretUpdateCustom(body){return this.rotatedSecretUpdateCustomWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateDockerhub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateDockerhubWithHttpInfo",value:function rotatedSecretUpdateDockerhubWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateDockerhub");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-dockerhub','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateDockerhub} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateDockerhub",value:function rotatedSecretUpdateDockerhub(body){return this.rotatedSecretUpdateDockerhubWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateGcp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateGcpWithHttpInfo",value:function rotatedSecretUpdateGcpWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateGcp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-gcp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateGcp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateGcp",value:function rotatedSecretUpdateGcp(body){return this.rotatedSecretUpdateGcpWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateHanadb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateHanadbWithHttpInfo",value:function rotatedSecretUpdateHanadbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateHanadb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-hanadb','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateHanadb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateHanadb",value:function rotatedSecretUpdateHanadb(body){return this.rotatedSecretUpdateHanadbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateLdap} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateLdapWithHttpInfo",value:function rotatedSecretUpdateLdapWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateLdap");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-ldap','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateLdap} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateLdap",value:function rotatedSecretUpdateLdap(body){return this.rotatedSecretUpdateLdapWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateMongodb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateMongodbWithHttpInfo",value:function rotatedSecretUpdateMongodbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateMongodb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-mongodb','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateMongodb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateMongodb",value:function rotatedSecretUpdateMongodb(body){return this.rotatedSecretUpdateMongodbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateMssql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateMssqlWithHttpInfo",value:function rotatedSecretUpdateMssqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateMssql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-mssql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateMssql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateMssql",value:function rotatedSecretUpdateMssql(body){return this.rotatedSecretUpdateMssqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateMysql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateMysqlWithHttpInfo",value:function rotatedSecretUpdateMysqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateMysql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-mysql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateMysql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateMysql",value:function rotatedSecretUpdateMysql(body){return this.rotatedSecretUpdateMysqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateOracledb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateOracledbWithHttpInfo",value:function rotatedSecretUpdateOracledbWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateOracledb");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-oracledb','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateOracledb} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateOracledb",value:function rotatedSecretUpdateOracledb(body){return this.rotatedSecretUpdateOracledbWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdatePostgresql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdatePostgresqlWithHttpInfo",value:function rotatedSecretUpdatePostgresqlWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdatePostgresql");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-postgresql','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdatePostgresql} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdatePostgresql",value:function rotatedSecretUpdatePostgresql(body){return this.rotatedSecretUpdatePostgresqlWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateRedis} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateRedisWithHttpInfo",value:function rotatedSecretUpdateRedisWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateRedis");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-redis','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateRedis} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateRedis",value:function rotatedSecretUpdateRedis(body){return this.rotatedSecretUpdateRedisWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateRedshift} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateRedshiftWithHttpInfo",value:function rotatedSecretUpdateRedshiftWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateRedshift");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-redshift','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateRedshift} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateRedshift",value:function rotatedSecretUpdateRedshift(body){return this.rotatedSecretUpdateRedshiftWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateSnowflake} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateSnowflakeWithHttpInfo",value:function rotatedSecretUpdateSnowflakeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateSnowflake");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-snowflake','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateSnowflake} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateSnowflake",value:function rotatedSecretUpdateSnowflake(body){return this.rotatedSecretUpdateSnowflakeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateSsh} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateSshWithHttpInfo",value:function rotatedSecretUpdateSshWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateSsh");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-ssh','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateSsh} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateSsh",value:function rotatedSecretUpdateSsh(body){return this.rotatedSecretUpdateSshWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/RotatedSecretUpdateWindows} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotatedSecretUpdateOutput} and HTTP response + */},{key:"rotatedSecretUpdateWindowsWithHttpInfo",value:function rotatedSecretUpdateWindowsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling rotatedSecretUpdateWindows");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotatedSecretUpdateOutput["default"];return this.apiClient.callApi('/rotated-secret-update-windows','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/RotatedSecretUpdateWindows} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotatedSecretUpdateOutput} + */},{key:"rotatedSecretUpdateWindows",value:function rotatedSecretUpdateWindows(body){return this.rotatedSecretUpdateWindowsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/SetItemState} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"setItemStateWithHttpInfo",value:function setItemStateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling setItemState");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/set-item-state','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/SetItemState} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"setItemState",value:function setItemState(body){return this.setItemStateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/SetRoleRule} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"setRoleRuleWithHttpInfo",value:function setRoleRuleWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling setRoleRule");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/set-role-rule','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/SetRoleRule} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"setRoleRule",value:function setRoleRule(body){return this.setRoleRuleWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/ShareItem} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */},{key:"shareItemWithHttpInfo",value:function shareItemWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling shareItem");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=null;return this.apiClient.callApi('/share-item','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/ShareItem} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */},{key:"shareItem",value:function shareItem(body){return this.shareItemWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/SignDataWithClassicKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignOutput} and HTTP response + */},{key:"signDataWithClassicKeyWithHttpInfo",value:function signDataWithClassicKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling signDataWithClassicKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_SignOutput["default"];return this.apiClient.callApi('/sign-data-with-classic-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/SignDataWithClassicKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignOutput} + */},{key:"signDataWithClassicKey",value:function signDataWithClassicKey(body){return this.signDataWithClassicKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/SignEcDsa} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignEcDsaOutput} and HTTP response + */},{key:"signEcDsaWithHttpInfo",value:function signEcDsaWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling signEcDsa");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_SignEcDsaOutput["default"];return this.apiClient.callApi('/sign-ecdsa','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/SignEcDsa} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignEcDsaOutput} + */},{key:"signEcDsa",value:function signEcDsa(body){return this.signEcDsaWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/SignGPG} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignGPGOutput} and HTTP response + */},{key:"signGPGWithHttpInfo",value:function signGPGWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling signGPG");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_SignGPGOutput["default"];return this.apiClient.callApi('/sign-gpg','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/SignGPG} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignGPGOutput} + */},{key:"signGPG",value:function signGPG(body){return this.signGPGWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/SignJWTWithClassicKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignJWTOutput} and HTTP response + */},{key:"signJWTWithClassicKeyWithHttpInfo",value:function signJWTWithClassicKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling signJWTWithClassicKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_SignJWTOutput["default"];return this.apiClient.callApi('/sign-jwt-with-classic-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/SignJWTWithClassicKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignJWTOutput} + */},{key:"signJWTWithClassicKey",value:function signJWTWithClassicKey(body){return this.signJWTWithClassicKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/SignPKCS1} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignPKCS1Output} and HTTP response + */},{key:"signPKCS1WithHttpInfo",value:function signPKCS1WithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling signPKCS1");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_SignPKCS1Output["default"];return this.apiClient.callApi('/sign-pkcs1','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/SignPKCS1} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignPKCS1Output} + */},{key:"signPKCS1",value:function signPKCS1(body){return this.signPKCS1WithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/SignPKICertWithClassicKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignPKICertOutput} and HTTP response + */},{key:"signPKICertWithClassicKeyWithHttpInfo",value:function signPKICertWithClassicKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling signPKICertWithClassicKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_SignPKICertOutput["default"];return this.apiClient.callApi('/sign-pki-cert-with-classic-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/SignPKICertWithClassicKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignPKICertOutput} + */},{key:"signPKICertWithClassicKey",value:function signPKICertWithClassicKey(body){return this.signPKICertWithClassicKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/SignRsaSsaPss} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SignRsaSsaPssOutput} and HTTP response + */},{key:"signRsaSsaPssWithHttpInfo",value:function signRsaSsaPssWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling signRsaSsaPss");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_SignRsaSsaPssOutput["default"];return this.apiClient.callApi('/sign-rsassa-pss','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/SignRsaSsaPss} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SignRsaSsaPssOutput} + */},{key:"signRsaSsaPss",value:function signRsaSsaPss(body){return this.signRsaSsaPssWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/StaticCredsAuth} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/StaticCredsAuthOutput} and HTTP response + */},{key:"staticCredsAuthWithHttpInfo",value:function staticCredsAuthWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling staticCredsAuth");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_StaticCredsAuthOutput["default"];return this.apiClient.callApi('/static-creds-auth','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/StaticCredsAuth} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/StaticCredsAuthOutput} + */},{key:"staticCredsAuth",value:function staticCredsAuth(body){return this.staticCredsAuthWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/Tokenize} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TokenizeOutput} and HTTP response + */},{key:"tokenizeWithHttpInfo",value:function tokenizeWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling tokenize");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_TokenizeOutput["default"];return this.apiClient.callApi('/tokenize','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/Tokenize} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TokenizeOutput} + */},{key:"tokenize",value:function tokenize(body){return this.tokenizeWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UidCreateChildToken} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UidCreateChildTokenOutput} and HTTP response + */},{key:"uidCreateChildTokenWithHttpInfo",value:function uidCreateChildTokenWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uidCreateChildToken");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UidCreateChildTokenOutput["default"];return this.apiClient.callApi('/uid-create-child-token','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UidCreateChildToken} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UidCreateChildTokenOutput} + */},{key:"uidCreateChildToken",value:function uidCreateChildToken(body){return this.uidCreateChildTokenWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UidGenerateToken} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UidGenerateTokenOutput} and HTTP response + */},{key:"uidGenerateTokenWithHttpInfo",value:function uidGenerateTokenWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uidGenerateToken");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UidGenerateTokenOutput["default"];return this.apiClient.callApi('/uid-generate-token','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UidGenerateToken} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UidGenerateTokenOutput} + */},{key:"uidGenerateToken",value:function uidGenerateToken(body){return this.uidGenerateTokenWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UidListChildren} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UniversalIdentityDetails} and HTTP response + */},{key:"uidListChildrenWithHttpInfo",value:function uidListChildrenWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uidListChildren");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UniversalIdentityDetails["default"];return this.apiClient.callApi('/uid-list-children','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UidListChildren} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UniversalIdentityDetails} + */},{key:"uidListChildren",value:function uidListChildren(body){return this.uidListChildrenWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UidRevokeToken} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"uidRevokeTokenWithHttpInfo",value:function uidRevokeTokenWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uidRevokeToken");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/uid-revoke-token','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UidRevokeToken} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"uidRevokeToken",value:function uidRevokeToken(body){return this.uidRevokeTokenWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UidRotateToken} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UidRotateTokenOutput} and HTTP response + */},{key:"uidRotateTokenWithHttpInfo",value:function uidRotateTokenWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uidRotateToken");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UidRotateTokenOutput["default"];return this.apiClient.callApi('/uid-rotate-token','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UidRotateToken} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UidRotateTokenOutput} + */},{key:"uidRotateToken",value:function uidRotateToken(body){return this.uidRotateTokenWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAWSTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updateAWSTargetWithHttpInfo",value:function updateAWSTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAWSTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-aws-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAWSTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updateAWSTarget",value:function updateAWSTarget(body){return this.updateAWSTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAWSTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response + */},{key:"updateAWSTargetDetailsWithHttpInfo",value:function updateAWSTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAWSTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-aws-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAWSTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} + */},{key:"updateAWSTargetDetails",value:function updateAWSTargetDetails(body){return this.updateAWSTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAccountSettings} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAccountSettingsOutput} and HTTP response + */},{key:"updateAccountSettingsWithHttpInfo",value:function updateAccountSettingsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAccountSettings");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateAccountSettingsOutput["default"];return this.apiClient.callApi('/update-account-settings','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAccountSettings} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAccountSettingsOutput} + */},{key:"updateAccountSettings",value:function updateAccountSettings(body){return this.updateAccountSettingsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateArtifactoryTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateArtifactoryTargetOutput} and HTTP response + */},{key:"updateArtifactoryTargetWithHttpInfo",value:function updateArtifactoryTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateArtifactoryTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateArtifactoryTargetOutput["default"];return this.apiClient.callApi('/update-artifactory-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateArtifactoryTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateArtifactoryTargetOutput} + */},{key:"updateArtifactoryTarget",value:function updateArtifactoryTarget(body){return this.updateArtifactoryTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAssoc} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updateAssocWithHttpInfo",value:function updateAssocWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAssoc");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-assoc','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAssoc} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updateAssoc",value:function updateAssoc(body){return this.updateAssocWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAuthMethod} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAuthMethodOutput} and HTTP response + */},{key:"updateAuthMethodWithHttpInfo",value:function updateAuthMethodWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethod");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateAuthMethodOutput["default"];return this.apiClient.callApi('/update-auth-method','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAuthMethod} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAuthMethodOutput} + */},{key:"updateAuthMethod",value:function updateAuthMethod(body){return this.updateAuthMethodWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAuthMethodAWSIAM} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updateAuthMethodAWSIAMWithHttpInfo",value:function updateAuthMethodAWSIAMWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodAWSIAM");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-auth-method-aws-iam','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAuthMethodAWSIAM} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updateAuthMethodAWSIAM",value:function updateAuthMethodAWSIAM(body){return this.updateAuthMethodAWSIAMWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAuthMethodAzureAD} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updateAuthMethodAzureADWithHttpInfo",value:function updateAuthMethodAzureADWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodAzureAD");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-auth-method-azure-ad','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAuthMethodAzureAD} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updateAuthMethodAzureAD",value:function updateAuthMethodAzureAD(body){return this.updateAuthMethodAzureADWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAuthMethodCert} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAuthMethodCertOutput} and HTTP response + */},{key:"updateAuthMethodCertWithHttpInfo",value:function updateAuthMethodCertWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodCert");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateAuthMethodCertOutput["default"];return this.apiClient.callApi('/update-auth-method-cert','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAuthMethodCert} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAuthMethodCertOutput} + */},{key:"updateAuthMethodCert",value:function updateAuthMethodCert(body){return this.updateAuthMethodCertWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAuthMethodGCP} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updateAuthMethodGCPWithHttpInfo",value:function updateAuthMethodGCPWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodGCP");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-auth-method-gcp','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAuthMethodGCP} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updateAuthMethodGCP",value:function updateAuthMethodGCP(body){return this.updateAuthMethodGCPWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAuthMethodK8S} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAuthMethodK8SOutput} and HTTP response + */},{key:"updateAuthMethodK8SWithHttpInfo",value:function updateAuthMethodK8SWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodK8S");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateAuthMethodK8SOutput["default"];return this.apiClient.callApi('/update-auth-method-k8s','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAuthMethodK8S} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAuthMethodK8SOutput} + */},{key:"updateAuthMethodK8S",value:function updateAuthMethodK8S(body){return this.updateAuthMethodK8SWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAuthMethodLDAP} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAuthMethodLDAPOutput} and HTTP response + */},{key:"updateAuthMethodLDAPWithHttpInfo",value:function updateAuthMethodLDAPWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodLDAP");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateAuthMethodLDAPOutput["default"];return this.apiClient.callApi('/update-auth-method-ldap','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAuthMethodLDAP} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAuthMethodLDAPOutput} + */},{key:"updateAuthMethodLDAP",value:function updateAuthMethodLDAP(body){return this.updateAuthMethodLDAPWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAuthMethodOAuth2} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updateAuthMethodOAuth2WithHttpInfo",value:function updateAuthMethodOAuth2WithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodOAuth2");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-auth-method-oauth2','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAuthMethodOAuth2} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updateAuthMethodOAuth2",value:function updateAuthMethodOAuth2(body){return this.updateAuthMethodOAuth2WithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAuthMethodOCI} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAuthMethodOCIOutput} and HTTP response + */},{key:"updateAuthMethodOCIWithHttpInfo",value:function updateAuthMethodOCIWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodOCI");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateAuthMethodOCIOutput["default"];return this.apiClient.callApi('/update-auth-method-oci','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAuthMethodOCI} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAuthMethodOCIOutput} + */},{key:"updateAuthMethodOCI",value:function updateAuthMethodOCI(body){return this.updateAuthMethodOCIWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAuthMethodOIDC} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updateAuthMethodOIDCWithHttpInfo",value:function updateAuthMethodOIDCWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodOIDC");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-auth-method-oidc','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAuthMethodOIDC} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updateAuthMethodOIDC",value:function updateAuthMethodOIDC(body){return this.updateAuthMethodOIDCWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAuthMethodSAML} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updateAuthMethodSAMLWithHttpInfo",value:function updateAuthMethodSAMLWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodSAML");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-auth-method-saml','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAuthMethodSAML} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updateAuthMethodSAML",value:function updateAuthMethodSAML(body){return this.updateAuthMethodSAMLWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAuthMethodUniversalIdentity} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updateAuthMethodUniversalIdentityWithHttpInfo",value:function updateAuthMethodUniversalIdentityWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAuthMethodUniversalIdentity");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-auth-method-universal-identity','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAuthMethodUniversalIdentity} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updateAuthMethodUniversalIdentity",value:function updateAuthMethodUniversalIdentity(body){return this.updateAuthMethodUniversalIdentityWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateAzureTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAzureTargetOutput} and HTTP response + */},{key:"updateAzureTargetWithHttpInfo",value:function updateAzureTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateAzureTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateAzureTargetOutput["default"];return this.apiClient.callApi('/update-azure-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateAzureTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAzureTargetOutput} + */},{key:"updateAzureTarget",value:function updateAzureTarget(body){return this.updateAzureTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateCertificateValue} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateCertificateOutput} and HTTP response + */},{key:"updateCertificateValueWithHttpInfo",value:function updateCertificateValueWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateCertificateValue");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateCertificateOutput["default"];return this.apiClient.callApi('/update-certificate-value','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateCertificateValue} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateCertificateOutput} + */},{key:"updateCertificateValue",value:function updateCertificateValue(body){return this.updateCertificateValueWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateClassicKeyCertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updateClassicKeyCertificateWithHttpInfo",value:function updateClassicKeyCertificateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateClassicKeyCertificate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-classic-key-certificate','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateClassicKeyCertificate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updateClassicKeyCertificate",value:function updateClassicKeyCertificate(body){return this.updateClassicKeyCertificateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateDBTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateDBTargetOutput} and HTTP response + */},{key:"updateDBTargetWithHttpInfo",value:function updateDBTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateDBTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateDBTargetOutput["default"];return this.apiClient.callApi('/update-db-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateDBTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateDBTargetOutput} + */},{key:"updateDBTarget",value:function updateDBTarget(body){return this.updateDBTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateDBTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response + */},{key:"updateDBTargetDetailsWithHttpInfo",value:function updateDBTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateDBTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-db-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateDBTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} + */},{key:"updateDBTargetDetails",value:function updateDBTargetDetails(body){return this.updateDBTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateDockerhubTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateDockerhubTargetOutput} and HTTP response + */},{key:"updateDockerhubTargetWithHttpInfo",value:function updateDockerhubTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateDockerhubTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateDockerhubTargetOutput["default"];return this.apiClient.callApi('/update-dockerhub-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateDockerhubTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateDockerhubTargetOutput} + */},{key:"updateDockerhubTarget",value:function updateDockerhubTarget(body){return this.updateDockerhubTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateEKSTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateEKSTargetOutput} and HTTP response + */},{key:"updateEKSTargetWithHttpInfo",value:function updateEKSTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateEKSTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateEKSTargetOutput["default"];return this.apiClient.callApi('/update-eks-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateEKSTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateEKSTargetOutput} + */},{key:"updateEKSTarget",value:function updateEKSTarget(body){return this.updateEKSTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateEventForwarder} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updateEventForwarderWithHttpInfo",value:function updateEventForwarderWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateEventForwarder");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-event-forwarder','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateEventForwarder} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updateEventForwarder",value:function updateEventForwarder(body){return this.updateEventForwarderWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateGKETarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGKETargetOutput} and HTTP response + */},{key:"updateGKETargetWithHttpInfo",value:function updateGKETargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateGKETarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateGKETargetOutput["default"];return this.apiClient.callApi('/update-gke-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateGKETarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGKETargetOutput} + */},{key:"updateGKETarget",value:function updateGKETarget(body){return this.updateGKETargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateGcpTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGcpTargetOutput} and HTTP response + */},{key:"updateGcpTargetWithHttpInfo",value:function updateGcpTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateGcpTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateGcpTargetOutput["default"];return this.apiClient.callApi('/update-gcp-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateGcpTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGcpTargetOutput} + */},{key:"updateGcpTarget",value:function updateGcpTarget(body){return this.updateGcpTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateGithubTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGithubTargetOutput} and HTTP response + */},{key:"updateGithubTargetWithHttpInfo",value:function updateGithubTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateGithubTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateGithubTargetOutput["default"];return this.apiClient.callApi('/update-github-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateGithubTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGithubTargetOutput} + */},{key:"updateGithubTarget",value:function updateGithubTarget(body){return this.updateGithubTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateGlobalSignAtlasTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGlobalSignAtlasTargetOutput} and HTTP response + */},{key:"updateGlobalSignAtlasTargetWithHttpInfo",value:function updateGlobalSignAtlasTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateGlobalSignAtlasTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateGlobalSignAtlasTargetOutput["default"];return this.apiClient.callApi('/update-globalsign-atlas-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateGlobalSignAtlasTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGlobalSignAtlasTargetOutput} + */},{key:"updateGlobalSignAtlasTarget",value:function updateGlobalSignAtlasTarget(body){return this.updateGlobalSignAtlasTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateGlobalSignTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGlobalSignTargetOutput} and HTTP response + */},{key:"updateGlobalSignTargetWithHttpInfo",value:function updateGlobalSignTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateGlobalSignTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateGlobalSignTargetOutput["default"];return this.apiClient.callApi('/update-globalsign-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateGlobalSignTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGlobalSignTargetOutput} + */},{key:"updateGlobalSignTarget",value:function updateGlobalSignTarget(body){return this.updateGlobalSignTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateGodaddyTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGodaddyTargetOutput} and HTTP response + */},{key:"updateGodaddyTargetWithHttpInfo",value:function updateGodaddyTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateGodaddyTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateGodaddyTargetOutput["default"];return this.apiClient.callApi('/update-godaddy-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateGodaddyTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGodaddyTargetOutput} + */},{key:"updateGodaddyTarget",value:function updateGodaddyTarget(body){return this.updateGodaddyTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateGroup} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateGroupOutput} and HTTP response + */},{key:"updateGroupWithHttpInfo",value:function updateGroupWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateGroup");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateGroupOutput["default"];return this.apiClient.callApi('/update-group','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateGroup} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateGroupOutput} + */},{key:"updateGroup",value:function updateGroup(body){return this.updateGroupWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateItem} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateItemOutput} and HTTP response + */},{key:"updateItemWithHttpInfo",value:function updateItemWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateItem");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateItemOutput["default"];return this.apiClient.callApi('/update-item','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateItem} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateItemOutput} + */},{key:"updateItem",value:function updateItem(body){return this.updateItemWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateLdapTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateLdapTargetOutput} and HTTP response + */},{key:"updateLdapTargetWithHttpInfo",value:function updateLdapTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateLdapTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateLdapTargetOutput["default"];return this.apiClient.callApi('/update-ldap-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateLdapTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateLdapTargetOutput} + */},{key:"updateLdapTarget",value:function updateLdapTarget(body){return this.updateLdapTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateLdapTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response + */},{key:"updateLdapTargetDetailsWithHttpInfo",value:function updateLdapTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateLdapTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-ldap-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateLdapTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} + */},{key:"updateLdapTargetDetails",value:function updateLdapTargetDetails(body){return this.updateLdapTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateLinkedTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updateLinkedTargetWithHttpInfo",value:function updateLinkedTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateLinkedTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-linked-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateLinkedTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updateLinkedTarget",value:function updateLinkedTarget(body){return this.updateLinkedTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateNativeK8STarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateNativeK8STargetOutput} and HTTP response + */},{key:"updateNativeK8STargetWithHttpInfo",value:function updateNativeK8STargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateNativeK8STarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateNativeK8STargetOutput["default"];return this.apiClient.callApi('/update-k8s-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateNativeK8STarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateNativeK8STargetOutput} + */},{key:"updateNativeK8STarget",value:function updateNativeK8STarget(body){return this.updateNativeK8STargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateOidcApp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updateOidcAppWithHttpInfo",value:function updateOidcAppWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateOidcApp");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-oidc-app','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateOidcApp} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updateOidcApp",value:function updateOidcApp(body){return this.updateOidcAppWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdatePKICertIssuer} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatePKICertIssuerOutput} and HTTP response + */},{key:"updatePKICertIssuerWithHttpInfo",value:function updatePKICertIssuerWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updatePKICertIssuer");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdatePKICertIssuerOutput["default"];return this.apiClient.callApi('/update-pki-cert-issuer','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdatePKICertIssuer} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatePKICertIssuerOutput} + */},{key:"updatePKICertIssuer",value:function updatePKICertIssuer(body){return this.updatePKICertIssuerWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdatePingTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updatePingTargetWithHttpInfo",value:function updatePingTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updatePingTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-ping-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdatePingTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updatePingTarget",value:function updatePingTarget(body){return this.updatePingTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateRDPTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response + */},{key:"updateRDPTargetDetailsWithHttpInfo",value:function updateRDPTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateRDPTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-rdp-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateRDPTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} + */},{key:"updateRDPTargetDetails",value:function updateRDPTargetDetails(body){return this.updateRDPTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateRabbitMQTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateRabbitMQTargetOutput} and HTTP response + */},{key:"updateRabbitMQTargetWithHttpInfo",value:function updateRabbitMQTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateRabbitMQTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateRabbitMQTargetOutput["default"];return this.apiClient.callApi('/update-rabbitmq-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateRabbitMQTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateRabbitMQTargetOutput} + */},{key:"updateRabbitMQTarget",value:function updateRabbitMQTarget(body){return this.updateRabbitMQTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateRabbitMQTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response + */},{key:"updateRabbitMQTargetDetailsWithHttpInfo",value:function updateRabbitMQTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateRabbitMQTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-rabbitmq-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateRabbitMQTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} + */},{key:"updateRabbitMQTargetDetails",value:function updateRabbitMQTargetDetails(body){return this.updateRabbitMQTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateRole} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateRoleOutput} and HTTP response + */},{key:"updateRoleWithHttpInfo",value:function updateRoleWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateRole");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateRoleOutput["default"];return this.apiClient.callApi('/update-role','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateRole} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateRoleOutput} + */},{key:"updateRole",value:function updateRole(body){return this.updateRoleWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateRotatedSecret} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateRotatedSecretOutput} and HTTP response + */},{key:"updateRotatedSecretWithHttpInfo",value:function updateRotatedSecretWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateRotatedSecret");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateRotatedSecretOutput["default"];return this.apiClient.callApi('/update-rotated-secret','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateRotatedSecret} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateRotatedSecretOutput} + */},{key:"updateRotatedSecret",value:function updateRotatedSecret(body){return this.updateRotatedSecretWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateRotationSettings} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RotateKeyOutput} and HTTP response + */},{key:"updateRotationSettingsWithHttpInfo",value:function updateRotationSettingsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateRotationSettings");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_RotateKeyOutput["default"];return this.apiClient.callApi('/update-rotation-settings','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateRotationSettings} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RotateKeyOutput} + */},{key:"updateRotationSettings",value:function updateRotationSettings(body){return this.updateRotationSettingsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateSSHCertIssuer} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateSSHCertIssuerOutput} and HTTP response + */},{key:"updateSSHCertIssuerWithHttpInfo",value:function updateSSHCertIssuerWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateSSHCertIssuer");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateSSHCertIssuerOutput["default"];return this.apiClient.callApi('/update-ssh-cert-issuer','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateSSHCertIssuer} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateSSHCertIssuerOutput} + */},{key:"updateSSHCertIssuer",value:function updateSSHCertIssuer(body){return this.updateSSHCertIssuerWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateSSHTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateSSHTargetOutput} and HTTP response + */},{key:"updateSSHTargetWithHttpInfo",value:function updateSSHTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateSSHTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateSSHTargetOutput["default"];return this.apiClient.callApi('/update-ssh-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateSSHTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateSSHTargetOutput} + */},{key:"updateSSHTarget",value:function updateSSHTarget(body){return this.updateSSHTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateSSHTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response + */},{key:"updateSSHTargetDetailsWithHttpInfo",value:function updateSSHTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateSSHTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-ssh-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateSSHTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} + */},{key:"updateSSHTargetDetails",value:function updateSSHTargetDetails(body){return this.updateSSHTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateSalesforceTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateSalesforceTargetOutput} and HTTP response + */},{key:"updateSalesforceTargetWithHttpInfo",value:function updateSalesforceTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateSalesforceTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateSalesforceTargetOutput["default"];return this.apiClient.callApi('/update-salesforce-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateSalesforceTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateSalesforceTargetOutput} + */},{key:"updateSalesforceTarget",value:function updateSalesforceTarget(body){return this.updateSalesforceTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateSecretVal} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateSecretValOutput} and HTTP response + */},{key:"updateSecretValWithHttpInfo",value:function updateSecretValWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateSecretVal");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateSecretValOutput["default"];return this.apiClient.callApi('/update-secret-val','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateSecretVal} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateSecretValOutput} + */},{key:"updateSecretVal",value:function updateSecretVal(body){return this.updateSecretValWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response + */},{key:"updateTargetWithHttpInfo",value:function updateTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} + */},{key:"updateTarget",value:function updateTarget(body){return this.updateTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response + */},{key:"updateTargetDetailsWithHttpInfo",value:function updateTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} + */},{key:"updateTargetDetails",value:function updateTargetDetails(body){return this.updateTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateWebTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateWebTargetOutput} and HTTP response + */},{key:"updateWebTargetWithHttpInfo",value:function updateWebTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateWebTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateWebTargetOutput["default"];return this.apiClient.callApi('/update-web-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateWebTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateWebTargetOutput} + */},{key:"updateWebTarget",value:function updateWebTarget(body){return this.updateWebTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateWebTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTargetOutput} and HTTP response + */},{key:"updateWebTargetDetailsWithHttpInfo",value:function updateWebTargetDetailsWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateWebTargetDetails");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateTargetOutput["default"];return this.apiClient.callApi('/update-web-target-details','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateWebTargetDetails} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTargetOutput} + */},{key:"updateWebTargetDetails",value:function updateWebTargetDetails(body){return this.updateWebTargetDetailsWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateWindowsTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"updateWindowsTargetWithHttpInfo",value:function updateWindowsTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateWindowsTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/update-windows-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateWindowsTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"updateWindowsTarget",value:function updateWindowsTarget(body){return this.updateWindowsTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UpdateZeroSSLTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateZeroSSLTargetOutput} and HTTP response + */},{key:"updateZeroSSLTargetWithHttpInfo",value:function updateZeroSSLTargetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling updateZeroSSLTarget");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UpdateZeroSSLTargetOutput["default"];return this.apiClient.callApi('/update-zerossl-target','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UpdateZeroSSLTarget} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateZeroSSLTargetOutput} + */},{key:"updateZeroSSLTarget",value:function updateZeroSSLTarget(body){return this.updateZeroSSLTargetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UploadRSA} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"uploadRSAWithHttpInfo",value:function uploadRSAWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uploadRSA");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/upload-rsa','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UploadRSA} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"uploadRSA",value:function uploadRSA(body){return this.uploadRSAWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UscUpdate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UscCreateSecretOutput} and HTTP response + */},{key:"uscCreateWithHttpInfo",value:function uscCreateWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uscCreate");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UscCreateSecretOutput["default"];return this.apiClient.callApi('/usc-create','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UscUpdate} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UscCreateSecretOutput} + */},{key:"uscCreate",value:function uscCreate(body){return this.uscCreateWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UscDelete} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UscDeleteSecretOutput} and HTTP response + */},{key:"uscDeleteWithHttpInfo",value:function uscDeleteWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uscDelete");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UscDeleteSecretOutput["default"];return this.apiClient.callApi('/usc-delete','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UscDelete} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UscDeleteSecretOutput} + */},{key:"uscDelete",value:function uscDelete(body){return this.uscDeleteWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UscGet} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UscGetSecretOutput} and HTTP response + */},{key:"uscGetWithHttpInfo",value:function uscGetWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uscGet");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UscGetSecretOutput["default"];return this.apiClient.callApi('/usc-get','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UscGet} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UscGetSecretOutput} + */},{key:"uscGet",value:function uscGet(body){return this.uscGetWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/UscList} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UscListSecretsOutput} and HTTP response + */},{key:"uscListWithHttpInfo",value:function uscListWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling uscList");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_UscListSecretsOutput["default"];return this.apiClient.callApi('/usc-list','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/UscList} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UscListSecretsOutput} + */},{key:"uscList",value:function uscList(body){return this.uscListWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UscUpdateSecretOutput} and HTTP response + */},{key:"uscUpdateWithHttpInfo",value:function uscUpdateWithHttpInfo(){var postBody=null;var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=[];var accepts=['application/json'];var returnType=_UscUpdateSecretOutput["default"];return this.apiClient.callApi('/usc-update','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UscUpdateSecretOutput} + */},{key:"uscUpdate",value:function uscUpdate(){return this.uscUpdateWithHttpInfo().then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/ValidateToken} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ValidateTokenOutput} and HTTP response + */},{key:"validateTokenWithHttpInfo",value:function validateTokenWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling validateToken");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_ValidateTokenOutput["default"];return this.apiClient.callApi('/validate-token','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/ValidateToken} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ValidateTokenOutput} + */},{key:"validateToken",value:function validateToken(body){return this.validateTokenWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/VerifyDataWithClassicKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VerifyPKICertOutput} and HTTP response + */},{key:"verifyDataWithClassicKeyWithHttpInfo",value:function verifyDataWithClassicKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling verifyDataWithClassicKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_VerifyPKICertOutput["default"];return this.apiClient.callApi('/verify-data-with-classic-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/VerifyDataWithClassicKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VerifyPKICertOutput} + */},{key:"verifyDataWithClassicKey",value:function verifyDataWithClassicKey(body){return this.verifyDataWithClassicKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/VerifyEcDsa} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"verifyEcDsaWithHttpInfo",value:function verifyEcDsaWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling verifyEcDsa");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/verify-ecdsa','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/VerifyEcDsa} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"verifyEcDsa",value:function verifyEcDsa(body){return this.verifyEcDsaWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/VerifyGPG} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"verifyGPGWithHttpInfo",value:function verifyGPGWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling verifyGPG");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/verify-gpg','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/VerifyGPG} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"verifyGPG",value:function verifyGPG(body){return this.verifyGPGWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/VerifyJWTWithClassicKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VerifyJWTOutput} and HTTP response + */},{key:"verifyJWTWithClassicKeyWithHttpInfo",value:function verifyJWTWithClassicKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling verifyJWTWithClassicKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_VerifyJWTOutput["default"];return this.apiClient.callApi('/verify-jwt-with-classic-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/VerifyJWTWithClassicKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VerifyJWTOutput} + */},{key:"verifyJWTWithClassicKey",value:function verifyJWTWithClassicKey(body){return this.verifyJWTWithClassicKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/VerifyPKCS1} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"verifyPKCS1WithHttpInfo",value:function verifyPKCS1WithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling verifyPKCS1");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/verify-pkcs1','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/VerifyPKCS1} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"verifyPKCS1",value:function verifyPKCS1(body){return this.verifyPKCS1WithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/VerifyPKICertWithClassicKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VerifyPKICertOutput} and HTTP response + */},{key:"verifyPKICertWithClassicKeyWithHttpInfo",value:function verifyPKICertWithClassicKeyWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling verifyPKICertWithClassicKey");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=_VerifyPKICertOutput["default"];return this.apiClient.callApi('/verify-pki-cert-with-classic-key','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/VerifyPKICertWithClassicKey} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VerifyPKICertOutput} + */},{key:"verifyPKICertWithClassicKey",value:function verifyPKICertWithClassicKey(body){return this.verifyPKICertWithClassicKeyWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}/** + * @param {module:model/VerifyRsaSsaPss} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */},{key:"verifyRsaSsaPssWithHttpInfo",value:function verifyRsaSsaPssWithHttpInfo(body){var postBody=body;// verify the required parameter 'body' is set +if(body===undefined||body===null){throw new Error("Missing the required parameter 'body' when calling verifyRsaSsaPss");}var pathParams={};var queryParams={};var headerParams={};var formParams={};var authNames=[];var contentTypes=['application/json'];var accepts=['application/json'];var returnType=Object;return this.apiClient.callApi('/verify-rsassa-pss','POST',pathParams,queryParams,headerParams,formParams,postBody,authNames,contentTypes,accepts,returnType,null);}/** + * @param {module:model/VerifyRsaSsaPss} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */},{key:"verifyRsaSsaPss",value:function verifyRsaSsaPss(body){return this.verifyRsaSsaPssWithHttpInfo(body).then(function(response_and_data){return response_and_data.data;});}}]);return V2Api;}();exports["default"]=V2Api; + +/***/ }), + +/***/ 94896: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "ApiClient", ({ + enumerable: true, + get: function get() { + return _ApiClient["default"]; + } +})); +Object.defineProperty(exports, "APIKeyAccessRules", ({ + enumerable: true, + get: function get() { + return _APIKeyAccessRules["default"]; + } +})); +Object.defineProperty(exports, "AWSIAMAccessRules", ({ + enumerable: true, + get: function get() { + return _AWSIAMAccessRules["default"]; + } +})); +Object.defineProperty(exports, "AWSPayload", ({ + enumerable: true, + get: function get() { + return _AWSPayload["default"]; + } +})); +Object.defineProperty(exports, "AWSSecretsMigration", ({ + enumerable: true, + get: function get() { + return _AWSSecretsMigration["default"]; + } +})); +Object.defineProperty(exports, "AWSTargetDetails", ({ + enumerable: true, + get: function get() { + return _AWSTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "AccessOrGroupPermissionAssignment", ({ + enumerable: true, + get: function get() { + return _AccessOrGroupPermissionAssignment["default"]; + } +})); +Object.defineProperty(exports, "AccessPermissionAssignment", ({ + enumerable: true, + get: function get() { + return _AccessPermissionAssignment["default"]; + } +})); +Object.defineProperty(exports, "AccountGeneralSettings", ({ + enumerable: true, + get: function get() { + return _AccountGeneralSettings["default"]; + } +})); +Object.defineProperty(exports, "AccountObjectVersionSettingsOutput", ({ + enumerable: true, + get: function get() { + return _AccountObjectVersionSettingsOutput["default"]; + } +})); +Object.defineProperty(exports, "ActiveDirectoryMigration", ({ + enumerable: true, + get: function get() { + return _ActiveDirectoryMigration["default"]; + } +})); +Object.defineProperty(exports, "ActiveDirectoryPayload", ({ + enumerable: true, + get: function get() { + return _ActiveDirectoryPayload["default"]; + } +})); +Object.defineProperty(exports, "AddGatewayAllowedAccessId", ({ + enumerable: true, + get: function get() { + return _AddGatewayAllowedAccessId["default"]; + } +})); +Object.defineProperty(exports, "AdminsConfigPart", ({ + enumerable: true, + get: function get() { + return _AdminsConfigPart["default"]; + } +})); +Object.defineProperty(exports, "AkeylessGatewayConfig", ({ + enumerable: true, + get: function get() { + return _AkeylessGatewayConfig["default"]; + } +})); +Object.defineProperty(exports, "AllAnalyticsData", ({ + enumerable: true, + get: function get() { + return _AllAnalyticsData["default"]; + } +})); +Object.defineProperty(exports, "AllowedAccess", ({ + enumerable: true, + get: function get() { + return _AllowedAccess["default"]; + } +})); +Object.defineProperty(exports, "AllowedAccessOld", ({ + enumerable: true, + get: function get() { + return _AllowedAccessOld["default"]; + } +})); +Object.defineProperty(exports, "ArtifactoryTargetDetails", ({ + enumerable: true, + get: function get() { + return _ArtifactoryTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "AssocRoleAuthMethod", ({ + enumerable: true, + get: function get() { + return _AssocRoleAuthMethod["default"]; + } +})); +Object.defineProperty(exports, "AssocTargetItem", ({ + enumerable: true, + get: function get() { + return _AssocTargetItem["default"]; + } +})); +Object.defineProperty(exports, "AttributeTypeAndValue", ({ + enumerable: true, + get: function get() { + return _AttributeTypeAndValue["default"]; + } +})); +Object.defineProperty(exports, "Auth", ({ + enumerable: true, + get: function get() { + return _Auth["default"]; + } +})); +Object.defineProperty(exports, "AuthMethod", ({ + enumerable: true, + get: function get() { + return _AuthMethod["default"]; + } +})); +Object.defineProperty(exports, "AuthMethodAccessInfo", ({ + enumerable: true, + get: function get() { + return _AuthMethodAccessInfo["default"]; + } +})); +Object.defineProperty(exports, "AuthMethodRoleAssociation", ({ + enumerable: true, + get: function get() { + return _AuthMethodRoleAssociation["default"]; + } +})); +Object.defineProperty(exports, "AuthOutput", ({ + enumerable: true, + get: function get() { + return _AuthOutput["default"]; + } +})); +Object.defineProperty(exports, "AwsS3LogForwardingConfig", ({ + enumerable: true, + get: function get() { + return _AwsS3LogForwardingConfig["default"]; + } +})); +Object.defineProperty(exports, "AzureADAccessRules", ({ + enumerable: true, + get: function get() { + return _AzureADAccessRules["default"]; + } +})); +Object.defineProperty(exports, "AzureKeyVaultMigration", ({ + enumerable: true, + get: function get() { + return _AzureKeyVaultMigration["default"]; + } +})); +Object.defineProperty(exports, "AzureLogAnalyticsForwardingConfig", ({ + enumerable: true, + get: function get() { + return _AzureLogAnalyticsForwardingConfig["default"]; + } +})); +Object.defineProperty(exports, "AzurePayload", ({ + enumerable: true, + get: function get() { + return _AzurePayload["default"]; + } +})); +Object.defineProperty(exports, "AzureTargetDetails", ({ + enumerable: true, + get: function get() { + return _AzureTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "BastionListEntry", ({ + enumerable: true, + get: function get() { + return _BastionListEntry["default"]; + } +})); +Object.defineProperty(exports, "BastionsList", ({ + enumerable: true, + get: function get() { + return _BastionsList["default"]; + } +})); +Object.defineProperty(exports, "CFConfigPart", ({ + enumerable: true, + get: function get() { + return _CFConfigPart["default"]; + } +})); +Object.defineProperty(exports, "CacheConfigPart", ({ + enumerable: true, + get: function get() { + return _CacheConfigPart["default"]; + } +})); +Object.defineProperty(exports, "CertAccessRules", ({ + enumerable: true, + get: function get() { + return _CertAccessRules["default"]; + } +})); +Object.defineProperty(exports, "CertificateAnalyticAggregation", ({ + enumerable: true, + get: function get() { + return _CertificateAnalyticAggregation["default"]; + } +})); +Object.defineProperty(exports, "CertificateChainInfo", ({ + enumerable: true, + get: function get() { + return _CertificateChainInfo["default"]; + } +})); +Object.defineProperty(exports, "CertificateExpirationEvent", ({ + enumerable: true, + get: function get() { + return _CertificateExpirationEvent["default"]; + } +})); +Object.defineProperty(exports, "CertificateInfo", ({ + enumerable: true, + get: function get() { + return _CertificateInfo["default"]; + } +})); +Object.defineProperty(exports, "CertificateIssueInfo", ({ + enumerable: true, + get: function get() { + return _CertificateIssueInfo["default"]; + } +})); +Object.defineProperty(exports, "CertificateTemplateInfo", ({ + enumerable: true, + get: function get() { + return _CertificateTemplateInfo["default"]; + } +})); +Object.defineProperty(exports, "CertificateVersionInfo", ({ + enumerable: true, + get: function get() { + return _CertificateVersionInfo["default"]; + } +})); +Object.defineProperty(exports, "CfInfo", ({ + enumerable: true, + get: function get() { + return _CfInfo["default"]; + } +})); +Object.defineProperty(exports, "ChefTargetDetails", ({ + enumerable: true, + get: function get() { + return _ChefTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "ClassicKeyDetailsInfo", ({ + enumerable: true, + get: function get() { + return _ClassicKeyDetailsInfo["default"]; + } +})); +Object.defineProperty(exports, "ClassicKeyStatusInfo", ({ + enumerable: true, + get: function get() { + return _ClassicKeyStatusInfo["default"]; + } +})); +Object.defineProperty(exports, "ClassicKeyTargetInfo", ({ + enumerable: true, + get: function get() { + return _ClassicKeyTargetInfo["default"]; + } +})); +Object.defineProperty(exports, "ClientData", ({ + enumerable: true, + get: function get() { + return _ClientData["default"]; + } +})); +Object.defineProperty(exports, "ClientUsageInfo", ({ + enumerable: true, + get: function get() { + return _ClientUsageInfo["default"]; + } +})); +Object.defineProperty(exports, "ClientsUsageReport", ({ + enumerable: true, + get: function get() { + return _ClientsUsageReport["default"]; + } +})); +Object.defineProperty(exports, "ConfigChange", ({ + enumerable: true, + get: function get() { + return _ConfigChange["default"]; + } +})); +Object.defineProperty(exports, "ConfigHash", ({ + enumerable: true, + get: function get() { + return _ConfigHash["default"]; + } +})); +Object.defineProperty(exports, "Configure", ({ + enumerable: true, + get: function get() { + return _Configure["default"]; + } +})); +Object.defineProperty(exports, "ConfigureOutput", ({ + enumerable: true, + get: function get() { + return _ConfigureOutput["default"]; + } +})); +Object.defineProperty(exports, "Connect", ({ + enumerable: true, + get: function get() { + return _Connect["default"]; + } +})); +Object.defineProperty(exports, "CreateAWSTarget", ({ + enumerable: true, + get: function get() { + return _CreateAWSTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateAWSTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateAWSTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateArtifactoryTarget", ({ + enumerable: true, + get: function get() { + return _CreateArtifactoryTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateArtifactoryTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateArtifactoryTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethod", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethod["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodAWSIAM", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodAWSIAM["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodAWSIAMOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodAWSIAMOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodAzureAD", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodAzureAD["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodAzureADOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodAzureADOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodCert", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodCert["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodCertOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodCertOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodEmail", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodEmail["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodEmailOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodEmailOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodGCP", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodGCP["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodGCPOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodGCPOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodHuawei", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodHuawei["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodHuaweiOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodHuaweiOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodK8S", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodK8S["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodK8SOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodK8SOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodLDAP", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodLDAP["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodLDAPOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodLDAPOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodOAuth2", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodOAuth["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodOAuth2Output", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodOAuth2Output["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodOCI", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodOCI["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodOCIOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodOCIOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodOIDC", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodOIDC["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodOIDCOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodOIDCOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodSAML", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodSAML["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodSAMLOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodSAMLOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodUniversalIdentity", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodUniversalIdentity["default"]; + } +})); +Object.defineProperty(exports, "CreateAuthMethodUniversalIdentityOutput", ({ + enumerable: true, + get: function get() { + return _CreateAuthMethodUniversalIdentityOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateAzureTarget", ({ + enumerable: true, + get: function get() { + return _CreateAzureTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateAzureTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateAzureTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateCertificate", ({ + enumerable: true, + get: function get() { + return _CreateCertificate["default"]; + } +})); +Object.defineProperty(exports, "CreateCertificateOutput", ({ + enumerable: true, + get: function get() { + return _CreateCertificateOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateClassicKey", ({ + enumerable: true, + get: function get() { + return _CreateClassicKey["default"]; + } +})); +Object.defineProperty(exports, "CreateClassicKeyOutput", ({ + enumerable: true, + get: function get() { + return _CreateClassicKeyOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateDBTarget", ({ + enumerable: true, + get: function get() { + return _CreateDBTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateDBTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateDBTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateDFCKey", ({ + enumerable: true, + get: function get() { + return _CreateDFCKey["default"]; + } +})); +Object.defineProperty(exports, "CreateDFCKeyOutput", ({ + enumerable: true, + get: function get() { + return _CreateDFCKeyOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateDockerhubTarget", ({ + enumerable: true, + get: function get() { + return _CreateDockerhubTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateDockerhubTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateDockerhubTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateDynamicSecret", ({ + enumerable: true, + get: function get() { + return _CreateDynamicSecret["default"]; + } +})); +Object.defineProperty(exports, "CreateEKSTarget", ({ + enumerable: true, + get: function get() { + return _CreateEKSTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateEKSTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateEKSTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateESM", ({ + enumerable: true, + get: function get() { + return _CreateESM["default"]; + } +})); +Object.defineProperty(exports, "CreateESMOutput", ({ + enumerable: true, + get: function get() { + return _CreateESMOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateEventForwarder", ({ + enumerable: true, + get: function get() { + return _CreateEventForwarder["default"]; + } +})); +Object.defineProperty(exports, "CreateEventForwarderOutput", ({ + enumerable: true, + get: function get() { + return _CreateEventForwarderOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateGKETarget", ({ + enumerable: true, + get: function get() { + return _CreateGKETarget["default"]; + } +})); +Object.defineProperty(exports, "CreateGKETargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateGKETargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateGcpTarget", ({ + enumerable: true, + get: function get() { + return _CreateGcpTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateGcpTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateGcpTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateGithubTarget", ({ + enumerable: true, + get: function get() { + return _CreateGithubTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateGithubTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateGithubTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateGlobalSignAtlasTarget", ({ + enumerable: true, + get: function get() { + return _CreateGlobalSignAtlasTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateGlobalSignAtlasTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateGlobalSignAtlasTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateGlobalSignTarget", ({ + enumerable: true, + get: function get() { + return _CreateGlobalSignTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateGlobalSignTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateGlobalSignTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateGodaddyTarget", ({ + enumerable: true, + get: function get() { + return _CreateGodaddyTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateGodaddyTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateGodaddyTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateGroup", ({ + enumerable: true, + get: function get() { + return _CreateGroup["default"]; + } +})); +Object.defineProperty(exports, "CreateGroupOutput", ({ + enumerable: true, + get: function get() { + return _CreateGroupOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateKey", ({ + enumerable: true, + get: function get() { + return _CreateKey["default"]; + } +})); +Object.defineProperty(exports, "CreateKeyOutput", ({ + enumerable: true, + get: function get() { + return _CreateKeyOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateLdapTarget", ({ + enumerable: true, + get: function get() { + return _CreateLdapTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateLdapTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateLdapTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateLinkedTarget", ({ + enumerable: true, + get: function get() { + return _CreateLinkedTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateLinkedTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateLinkedTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateNativeK8STarget", ({ + enumerable: true, + get: function get() { + return _CreateNativeK8STarget["default"]; + } +})); +Object.defineProperty(exports, "CreateNativeK8STargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateNativeK8STargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateOidcApp", ({ + enumerable: true, + get: function get() { + return _CreateOidcApp["default"]; + } +})); +Object.defineProperty(exports, "CreateOidcAppOutput", ({ + enumerable: true, + get: function get() { + return _CreateOidcAppOutput["default"]; + } +})); +Object.defineProperty(exports, "CreatePKICertIssuer", ({ + enumerable: true, + get: function get() { + return _CreatePKICertIssuer["default"]; + } +})); +Object.defineProperty(exports, "CreatePKICertIssuerOutput", ({ + enumerable: true, + get: function get() { + return _CreatePKICertIssuerOutput["default"]; + } +})); +Object.defineProperty(exports, "CreatePingTarget", ({ + enumerable: true, + get: function get() { + return _CreatePingTarget["default"]; + } +})); +Object.defineProperty(exports, "CreatePingTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreatePingTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateRabbitMQTarget", ({ + enumerable: true, + get: function get() { + return _CreateRabbitMQTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateRabbitMQTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateRabbitMQTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateRole", ({ + enumerable: true, + get: function get() { + return _CreateRole["default"]; + } +})); +Object.defineProperty(exports, "CreateRoleAuthMethodAssocOutput", ({ + enumerable: true, + get: function get() { + return _CreateRoleAuthMethodAssocOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateRotatedSecret", ({ + enumerable: true, + get: function get() { + return _CreateRotatedSecret["default"]; + } +})); +Object.defineProperty(exports, "CreateRotatedSecretOutput", ({ + enumerable: true, + get: function get() { + return _CreateRotatedSecretOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateSSHCertIssuer", ({ + enumerable: true, + get: function get() { + return _CreateSSHCertIssuer["default"]; + } +})); +Object.defineProperty(exports, "CreateSSHCertIssuerOutput", ({ + enumerable: true, + get: function get() { + return _CreateSSHCertIssuerOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateSSHTarget", ({ + enumerable: true, + get: function get() { + return _CreateSSHTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateSSHTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateSSHTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateSalesforceTarget", ({ + enumerable: true, + get: function get() { + return _CreateSalesforceTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateSalesforceTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateSalesforceTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateSecret", ({ + enumerable: true, + get: function get() { + return _CreateSecret["default"]; + } +})); +Object.defineProperty(exports, "CreateSecretOutput", ({ + enumerable: true, + get: function get() { + return _CreateSecretOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateTargetItemAssocOutput", ({ + enumerable: true, + get: function get() { + return _CreateTargetItemAssocOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateTokenizer", ({ + enumerable: true, + get: function get() { + return _CreateTokenizer["default"]; + } +})); +Object.defineProperty(exports, "CreateTokenizerOutput", ({ + enumerable: true, + get: function get() { + return _CreateTokenizerOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateUSC", ({ + enumerable: true, + get: function get() { + return _CreateUSC["default"]; + } +})); +Object.defineProperty(exports, "CreateUSCOutput", ({ + enumerable: true, + get: function get() { + return _CreateUSCOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateUserEvent", ({ + enumerable: true, + get: function get() { + return _CreateUserEvent["default"]; + } +})); +Object.defineProperty(exports, "CreateUserEventOutput", ({ + enumerable: true, + get: function get() { + return _CreateUserEventOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateWebTarget", ({ + enumerable: true, + get: function get() { + return _CreateWebTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateWebTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateWebTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateWindowsTarget", ({ + enumerable: true, + get: function get() { + return _CreateWindowsTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateWindowsTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateWindowsTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CreateZeroSSLTarget", ({ + enumerable: true, + get: function get() { + return _CreateZeroSSLTarget["default"]; + } +})); +Object.defineProperty(exports, "CreateZeroSSLTargetOutput", ({ + enumerable: true, + get: function get() { + return _CreateZeroSSLTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "CustomTargetDetails", ({ + enumerable: true, + get: function get() { + return _CustomTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "CustomerFragmentConfig", ({ + enumerable: true, + get: function get() { + return _CustomerFragmentConfig["default"]; + } +})); +Object.defineProperty(exports, "CustomerFragmentsConfigJson", ({ + enumerable: true, + get: function get() { + return _CustomerFragmentsConfigJson["default"]; + } +})); +Object.defineProperty(exports, "CustomerFullAddress", ({ + enumerable: true, + get: function get() { + return _CustomerFullAddress["default"]; + } +})); +Object.defineProperty(exports, "DSProducerDetails", ({ + enumerable: true, + get: function get() { + return _DSProducerDetails["default"]; + } +})); +Object.defineProperty(exports, "DataProtectionSection", ({ + enumerable: true, + get: function get() { + return _DataProtectionSection["default"]; + } +})); +Object.defineProperty(exports, "DatadogForwardingConfig", ({ + enumerable: true, + get: function get() { + return _DatadogForwardingConfig["default"]; + } +})); +Object.defineProperty(exports, "DbTargetDetails", ({ + enumerable: true, + get: function get() { + return _DbTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "Decrypt", ({ + enumerable: true, + get: function get() { + return _Decrypt["default"]; + } +})); +Object.defineProperty(exports, "DecryptFile", ({ + enumerable: true, + get: function get() { + return _DecryptFile["default"]; + } +})); +Object.defineProperty(exports, "DecryptFileOutput", ({ + enumerable: true, + get: function get() { + return _DecryptFileOutput["default"]; + } +})); +Object.defineProperty(exports, "DecryptGPG", ({ + enumerable: true, + get: function get() { + return _DecryptGPG["default"]; + } +})); +Object.defineProperty(exports, "DecryptGPGOutput", ({ + enumerable: true, + get: function get() { + return _DecryptGPGOutput["default"]; + } +})); +Object.defineProperty(exports, "DecryptOutput", ({ + enumerable: true, + get: function get() { + return _DecryptOutput["default"]; + } +})); +Object.defineProperty(exports, "DecryptPKCS1", ({ + enumerable: true, + get: function get() { + return _DecryptPKCS["default"]; + } +})); +Object.defineProperty(exports, "DecryptPKCS1Output", ({ + enumerable: true, + get: function get() { + return _DecryptPKCS1Output["default"]; + } +})); +Object.defineProperty(exports, "DecryptWithClassicKey", ({ + enumerable: true, + get: function get() { + return _DecryptWithClassicKey["default"]; + } +})); +Object.defineProperty(exports, "DecryptWithClassicKeyOutput", ({ + enumerable: true, + get: function get() { + return _DecryptWithClassicKeyOutput["default"]; + } +})); +Object.defineProperty(exports, "DefaultConfigPart", ({ + enumerable: true, + get: function get() { + return _DefaultConfigPart["default"]; + } +})); +Object.defineProperty(exports, "DeleteAuthMethod", ({ + enumerable: true, + get: function get() { + return _DeleteAuthMethod["default"]; + } +})); +Object.defineProperty(exports, "DeleteAuthMethodOutput", ({ + enumerable: true, + get: function get() { + return _DeleteAuthMethodOutput["default"]; + } +})); +Object.defineProperty(exports, "DeleteAuthMethods", ({ + enumerable: true, + get: function get() { + return _DeleteAuthMethods["default"]; + } +})); +Object.defineProperty(exports, "DeleteAuthMethodsOutput", ({ + enumerable: true, + get: function get() { + return _DeleteAuthMethodsOutput["default"]; + } +})); +Object.defineProperty(exports, "DeleteEventForwarder", ({ + enumerable: true, + get: function get() { + return _DeleteEventForwarder["default"]; + } +})); +Object.defineProperty(exports, "DeleteGatewayAllowedAccessId", ({ + enumerable: true, + get: function get() { + return _DeleteGatewayAllowedAccessId["default"]; + } +})); +Object.defineProperty(exports, "DeleteGroup", ({ + enumerable: true, + get: function get() { + return _DeleteGroup["default"]; + } +})); +Object.defineProperty(exports, "DeleteGroupOutput", ({ + enumerable: true, + get: function get() { + return _DeleteGroupOutput["default"]; + } +})); +Object.defineProperty(exports, "DeleteGwCluster", ({ + enumerable: true, + get: function get() { + return _DeleteGwCluster["default"]; + } +})); +Object.defineProperty(exports, "DeleteItem", ({ + enumerable: true, + get: function get() { + return _DeleteItem["default"]; + } +})); +Object.defineProperty(exports, "DeleteItemOutput", ({ + enumerable: true, + get: function get() { + return _DeleteItemOutput["default"]; + } +})); +Object.defineProperty(exports, "DeleteItems", ({ + enumerable: true, + get: function get() { + return _DeleteItems["default"]; + } +})); +Object.defineProperty(exports, "DeleteItemsOutput", ({ + enumerable: true, + get: function get() { + return _DeleteItemsOutput["default"]; + } +})); +Object.defineProperty(exports, "DeleteRole", ({ + enumerable: true, + get: function get() { + return _DeleteRole["default"]; + } +})); +Object.defineProperty(exports, "DeleteRoleAssociation", ({ + enumerable: true, + get: function get() { + return _DeleteRoleAssociation["default"]; + } +})); +Object.defineProperty(exports, "DeleteRoleRule", ({ + enumerable: true, + get: function get() { + return _DeleteRoleRule["default"]; + } +})); +Object.defineProperty(exports, "DeleteRoleRuleOutput", ({ + enumerable: true, + get: function get() { + return _DeleteRoleRuleOutput["default"]; + } +})); +Object.defineProperty(exports, "DeleteRoles", ({ + enumerable: true, + get: function get() { + return _DeleteRoles["default"]; + } +})); +Object.defineProperty(exports, "DeleteTarget", ({ + enumerable: true, + get: function get() { + return _DeleteTarget["default"]; + } +})); +Object.defineProperty(exports, "DeleteTargetAssociation", ({ + enumerable: true, + get: function get() { + return _DeleteTargetAssociation["default"]; + } +})); +Object.defineProperty(exports, "DeleteTargets", ({ + enumerable: true, + get: function get() { + return _DeleteTargets["default"]; + } +})); +Object.defineProperty(exports, "DeriveKey", ({ + enumerable: true, + get: function get() { + return _DeriveKey["default"]; + } +})); +Object.defineProperty(exports, "DeriveKeyOutput", ({ + enumerable: true, + get: function get() { + return _DeriveKeyOutput["default"]; + } +})); +Object.defineProperty(exports, "DescribeAssoc", ({ + enumerable: true, + get: function get() { + return _DescribeAssoc["default"]; + } +})); +Object.defineProperty(exports, "DescribeItem", ({ + enumerable: true, + get: function get() { + return _DescribeItem["default"]; + } +})); +Object.defineProperty(exports, "DescribePermissions", ({ + enumerable: true, + get: function get() { + return _DescribePermissions["default"]; + } +})); +Object.defineProperty(exports, "DescribePermissionsOutput", ({ + enumerable: true, + get: function get() { + return _DescribePermissionsOutput["default"]; + } +})); +Object.defineProperty(exports, "DescribeSubClaims", ({ + enumerable: true, + get: function get() { + return _DescribeSubClaims["default"]; + } +})); +Object.defineProperty(exports, "DescribeSubClaimsOutput", ({ + enumerable: true, + get: function get() { + return _DescribeSubClaimsOutput["default"]; + } +})); +Object.defineProperty(exports, "Detokenize", ({ + enumerable: true, + get: function get() { + return _Detokenize["default"]; + } +})); +Object.defineProperty(exports, "DetokenizeOutput", ({ + enumerable: true, + get: function get() { + return _DetokenizeOutput["default"]; + } +})); +Object.defineProperty(exports, "DockerhubTargetDetails", ({ + enumerable: true, + get: function get() { + return _DockerhubTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateArtifactory", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateArtifactory["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateAws", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateAws["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateAzure", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateAzure["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateCassandra", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateCassandra["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateChef", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateChef["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateCustom", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateCustom["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateDockerhub", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateDockerhub["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateEks", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateEks["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateGcp", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateGcp["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateGithub", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateGithub["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateGke", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateGke["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateHanaDb", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateHanaDb["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateK8s", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateK8s["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateLdap", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateLdap["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateMongoDb", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateMongoDb["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateMsSql", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateMsSql["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateMySql", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateMySql["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateOracleDb", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateOracleDb["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateOutput", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateOutput["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreatePing", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreatePing["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreatePostgreSql", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreatePostgreSql["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateRabbitMq", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateRabbitMq["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateRdp", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateRdp["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateRedis", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateRedis["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateRedshift", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateRedshift["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateSnowflake", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateSnowflake["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretCreateVenafi", ({ + enumerable: true, + get: function get() { + return _DynamicSecretCreateVenafi["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretDelete", ({ + enumerable: true, + get: function get() { + return _DynamicSecretDelete["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretDeleteOutput", ({ + enumerable: true, + get: function get() { + return _DynamicSecretDeleteOutput["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretGet", ({ + enumerable: true, + get: function get() { + return _DynamicSecretGet["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretGetValue", ({ + enumerable: true, + get: function get() { + return _DynamicSecretGetValue["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretList", ({ + enumerable: true, + get: function get() { + return _DynamicSecretList["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretMaxTtl", ({ + enumerable: true, + get: function get() { + return _DynamicSecretMaxTtl["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretProducerInfo", ({ + enumerable: true, + get: function get() { + return _DynamicSecretProducerInfo["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretTmpCredsDelete", ({ + enumerable: true, + get: function get() { + return _DynamicSecretTmpCredsDelete["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretTmpCredsGet", ({ + enumerable: true, + get: function get() { + return _DynamicSecretTmpCredsGet["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretTmpCredsUpdate", ({ + enumerable: true, + get: function get() { + return _DynamicSecretTmpCredsUpdate["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateArtifactory", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateArtifactory["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateAws", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateAws["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateAzure", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateAzure["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateCassandra", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateCassandra["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateChef", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateChef["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateCustom", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateCustom["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateDockerhub", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateDockerhub["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateEks", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateEks["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateGcp", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateGcp["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateGithub", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateGithub["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateGke", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateGke["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateHanaDb", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateHanaDb["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateK8s", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateK8s["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateLdap", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateLdap["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateMongoDb", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateMongoDb["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateMsSql", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateMsSql["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateMySql", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateMySql["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateOracleDb", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateOracleDb["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateOutput", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateOutput["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdatePing", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdatePing["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdatePostgreSql", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdatePostgreSql["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateRabbitMq", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateRabbitMq["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateRdp", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateRdp["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateRedis", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateRedis["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateRedshift", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateRedshift["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateSnowflake", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateSnowflake["default"]; + } +})); +Object.defineProperty(exports, "DynamicSecretUpdateVenafi", ({ + enumerable: true, + get: function get() { + return _DynamicSecretUpdateVenafi["default"]; + } +})); +Object.defineProperty(exports, "EKSTargetDetails", ({ + enumerable: true, + get: function get() { + return _EKSTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "ElasticsearchLogForwardingConfig", ({ + enumerable: true, + get: function get() { + return _ElasticsearchLogForwardingConfig["default"]; + } +})); +Object.defineProperty(exports, "EmailEntry", ({ + enumerable: true, + get: function get() { + return _EmailEntry["default"]; + } +})); +Object.defineProperty(exports, "EmailPassAccessRules", ({ + enumerable: true, + get: function get() { + return _EmailPassAccessRules["default"]; + } +})); +Object.defineProperty(exports, "EmailTokenizerInfo", ({ + enumerable: true, + get: function get() { + return _EmailTokenizerInfo["default"]; + } +})); +Object.defineProperty(exports, "Encrypt", ({ + enumerable: true, + get: function get() { + return _Encrypt["default"]; + } +})); +Object.defineProperty(exports, "EncryptFile", ({ + enumerable: true, + get: function get() { + return _EncryptFile["default"]; + } +})); +Object.defineProperty(exports, "EncryptFileOutput", ({ + enumerable: true, + get: function get() { + return _EncryptFileOutput["default"]; + } +})); +Object.defineProperty(exports, "EncryptGPG", ({ + enumerable: true, + get: function get() { + return _EncryptGPG["default"]; + } +})); +Object.defineProperty(exports, "EncryptGPGOutput", ({ + enumerable: true, + get: function get() { + return _EncryptGPGOutput["default"]; + } +})); +Object.defineProperty(exports, "EncryptOutput", ({ + enumerable: true, + get: function get() { + return _EncryptOutput["default"]; + } +})); +Object.defineProperty(exports, "EncryptWithClassicKey", ({ + enumerable: true, + get: function get() { + return _EncryptWithClassicKey["default"]; + } +})); +Object.defineProperty(exports, "EncryptWithClassicKeyOutput", ({ + enumerable: true, + get: function get() { + return _EncryptWithClassicKeyOutput["default"]; + } +})); +Object.defineProperty(exports, "EsmCreate", ({ + enumerable: true, + get: function get() { + return _EsmCreate["default"]; + } +})); +Object.defineProperty(exports, "EsmCreateSecretOutput", ({ + enumerable: true, + get: function get() { + return _EsmCreateSecretOutput["default"]; + } +})); +Object.defineProperty(exports, "EsmDelete", ({ + enumerable: true, + get: function get() { + return _EsmDelete["default"]; + } +})); +Object.defineProperty(exports, "EsmDeleteSecretOutput", ({ + enumerable: true, + get: function get() { + return _EsmDeleteSecretOutput["default"]; + } +})); +Object.defineProperty(exports, "EsmGet", ({ + enumerable: true, + get: function get() { + return _EsmGet["default"]; + } +})); +Object.defineProperty(exports, "EsmGetSecretOutput", ({ + enumerable: true, + get: function get() { + return _EsmGetSecretOutput["default"]; + } +})); +Object.defineProperty(exports, "EsmList", ({ + enumerable: true, + get: function get() { + return _EsmList["default"]; + } +})); +Object.defineProperty(exports, "EsmListSecretsOutput", ({ + enumerable: true, + get: function get() { + return _EsmListSecretsOutput["default"]; + } +})); +Object.defineProperty(exports, "EsmUpdate", ({ + enumerable: true, + get: function get() { + return _EsmUpdate["default"]; + } +})); +Object.defineProperty(exports, "EsmUpdateSecretOutput", ({ + enumerable: true, + get: function get() { + return _EsmUpdateSecretOutput["default"]; + } +})); +Object.defineProperty(exports, "EventAction", ({ + enumerable: true, + get: function get() { + return _EventAction["default"]; + } +})); +Object.defineProperty(exports, "EventForwarderCreateEmail", ({ + enumerable: true, + get: function get() { + return _EventForwarderCreateEmail["default"]; + } +})); +Object.defineProperty(exports, "EventForwarderCreateServiceNow", ({ + enumerable: true, + get: function get() { + return _EventForwarderCreateServiceNow["default"]; + } +})); +Object.defineProperty(exports, "EventForwarderCreateSlack", ({ + enumerable: true, + get: function get() { + return _EventForwarderCreateSlack["default"]; + } +})); +Object.defineProperty(exports, "EventForwarderCreateUpdateOutput", ({ + enumerable: true, + get: function get() { + return _EventForwarderCreateUpdateOutput["default"]; + } +})); +Object.defineProperty(exports, "EventForwarderCreateWebhook", ({ + enumerable: true, + get: function get() { + return _EventForwarderCreateWebhook["default"]; + } +})); +Object.defineProperty(exports, "EventForwarderDelete", ({ + enumerable: true, + get: function get() { + return _EventForwarderDelete["default"]; + } +})); +Object.defineProperty(exports, "EventForwarderDeleteOutput", ({ + enumerable: true, + get: function get() { + return _EventForwarderDeleteOutput["default"]; + } +})); +Object.defineProperty(exports, "EventForwarderGet", ({ + enumerable: true, + get: function get() { + return _EventForwarderGet["default"]; + } +})); +Object.defineProperty(exports, "EventForwarderGetOutput", ({ + enumerable: true, + get: function get() { + return _EventForwarderGetOutput["default"]; + } +})); +Object.defineProperty(exports, "EventForwarderUpdateEmail", ({ + enumerable: true, + get: function get() { + return _EventForwarderUpdateEmail["default"]; + } +})); +Object.defineProperty(exports, "EventForwarderUpdateServiceNow", ({ + enumerable: true, + get: function get() { + return _EventForwarderUpdateServiceNow["default"]; + } +})); +Object.defineProperty(exports, "EventForwarderUpdateSlack", ({ + enumerable: true, + get: function get() { + return _EventForwarderUpdateSlack["default"]; + } +})); +Object.defineProperty(exports, "EventForwarderUpdateWebhook", ({ + enumerable: true, + get: function get() { + return _EventForwarderUpdateWebhook["default"]; + } +})); +Object.defineProperty(exports, "ExportClassicKey", ({ + enumerable: true, + get: function get() { + return _ExportClassicKey["default"]; + } +})); +Object.defineProperty(exports, "ExportClassicKeyOutput", ({ + enumerable: true, + get: function get() { + return _ExportClassicKeyOutput["default"]; + } +})); +Object.defineProperty(exports, "Extension", ({ + enumerable: true, + get: function get() { + return _Extension["default"]; + } +})); +Object.defineProperty(exports, "ExternalKMSKeyId", ({ + enumerable: true, + get: function get() { + return _ExternalKMSKeyId["default"]; + } +})); +Object.defineProperty(exports, "GCPAccessRules", ({ + enumerable: true, + get: function get() { + return _GCPAccessRules["default"]; + } +})); +Object.defineProperty(exports, "GCPPayload", ({ + enumerable: true, + get: function get() { + return _GCPPayload["default"]; + } +})); +Object.defineProperty(exports, "GCPSecretsMigration", ({ + enumerable: true, + get: function get() { + return _GCPSecretsMigration["default"]; + } +})); +Object.defineProperty(exports, "GKETargetDetails", ({ + enumerable: true, + get: function get() { + return _GKETargetDetails["default"]; + } +})); +Object.defineProperty(exports, "GatewayBasicInfo", ({ + enumerable: true, + get: function get() { + return _GatewayBasicInfo["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateAllowedAccess", ({ + enumerable: true, + get: function get() { + return _GatewayCreateAllowedAccess["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateK8SAuthConfig", ({ + enumerable: true, + get: function get() { + return _GatewayCreateK8SAuthConfig["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateK8SAuthConfigOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateK8SAuthConfigOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateMigration", ({ + enumerable: true, + get: function get() { + return _GatewayCreateMigration["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerArtifactory", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerArtifactory["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerArtifactoryOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerArtifactoryOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerAws", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerAws["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerAwsOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerAwsOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerAzure", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerAzure["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerAzureOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerAzureOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerCassandra", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerCassandra["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerCassandraOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerCassandraOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerChef", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerChef["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerChefOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerChefOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerCustom", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerCustom["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerCustomOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerCustomOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerDockerhub", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerDockerhub["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerDockerhubOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerDockerhubOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerEks", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerEks["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerEksOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerEksOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerGcp", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerGcp["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerGcpOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerGcpOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerGithub", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerGithub["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerGithubOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerGithubOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerGke", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerGke["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerGkeOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerGkeOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerHanaDb", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerHanaDb["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerHanaDbOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerHanaDbOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerLdap", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerLdap["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerLdapOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerLdapOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerMSSQL", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerMSSQL["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerMSSQLOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerMSSQLOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerMongo", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerMongo["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerMongoOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerMongoOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerMySQL", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerMySQL["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerMySQLOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerMySQLOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerNativeK8S", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerNativeK8S["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerNativeK8SOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerNativeK8SOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerOracleDb", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerOracleDb["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerOracleDbOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerOracleDbOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerPing", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerPing["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerPingOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerPingOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerPostgreSQL", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerPostgreSQL["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerPostgreSQLOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerPostgreSQLOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerRabbitMQ", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerRabbitMQ["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerRabbitMQOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerRabbitMQOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerRdp", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerRdp["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerRdpOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerRdpOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerRedis", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerRedis["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerRedisOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerRedisOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerRedshift", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerRedshift["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerRedshiftOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerRedshiftOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerSnowflake", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerSnowflake["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerSnowflakeOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerSnowflakeOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerVenafi", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerVenafi["default"]; + } +})); +Object.defineProperty(exports, "GatewayCreateProducerVenafiOutput", ({ + enumerable: true, + get: function get() { + return _GatewayCreateProducerVenafiOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayDeleteAllowedAccess", ({ + enumerable: true, + get: function get() { + return _GatewayDeleteAllowedAccess["default"]; + } +})); +Object.defineProperty(exports, "GatewayDeleteAllowedAccessOutput", ({ + enumerable: true, + get: function get() { + return _GatewayDeleteAllowedAccessOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayDeleteK8SAuthConfig", ({ + enumerable: true, + get: function get() { + return _GatewayDeleteK8SAuthConfig["default"]; + } +})); +Object.defineProperty(exports, "GatewayDeleteK8SAuthConfigOutput", ({ + enumerable: true, + get: function get() { + return _GatewayDeleteK8SAuthConfigOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayDeleteMigration", ({ + enumerable: true, + get: function get() { + return _GatewayDeleteMigration["default"]; + } +})); +Object.defineProperty(exports, "GatewayDeleteProducer", ({ + enumerable: true, + get: function get() { + return _GatewayDeleteProducer["default"]; + } +})); +Object.defineProperty(exports, "GatewayDeleteProducerOutput", ({ + enumerable: true, + get: function get() { + return _GatewayDeleteProducerOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayDownloadCustomerFragments", ({ + enumerable: true, + get: function get() { + return _GatewayDownloadCustomerFragments["default"]; + } +})); +Object.defineProperty(exports, "GatewayDownloadCustomerFragmentsOutput", ({ + enumerable: true, + get: function get() { + return _GatewayDownloadCustomerFragmentsOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetAllowedAccess", ({ + enumerable: true, + get: function get() { + return _GatewayGetAllowedAccess["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetConfig", ({ + enumerable: true, + get: function get() { + return _GatewayGetConfig["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetK8SAuthConfig", ({ + enumerable: true, + get: function get() { + return _GatewayGetK8SAuthConfig["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetK8SAuthConfigOutput", ({ + enumerable: true, + get: function get() { + return _GatewayGetK8SAuthConfigOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetLdapAuthConfig", ({ + enumerable: true, + get: function get() { + return _GatewayGetLdapAuthConfig["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetLdapAuthConfigOutput", ({ + enumerable: true, + get: function get() { + return _GatewayGetLdapAuthConfigOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetMigration", ({ + enumerable: true, + get: function get() { + return _GatewayGetMigration["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetProducer", ({ + enumerable: true, + get: function get() { + return _GatewayGetProducer["default"]; + } +})); +Object.defineProperty(exports, "GatewayGetTmpUsers", ({ + enumerable: true, + get: function get() { + return _GatewayGetTmpUsers["default"]; + } +})); +Object.defineProperty(exports, "GatewayListMigration", ({ + enumerable: true, + get: function get() { + return _GatewayListMigration["default"]; + } +})); +Object.defineProperty(exports, "GatewayListProducers", ({ + enumerable: true, + get: function get() { + return _GatewayListProducers["default"]; + } +})); +Object.defineProperty(exports, "GatewayListRotatedSecrets", ({ + enumerable: true, + get: function get() { + return _GatewayListRotatedSecrets["default"]; + } +})); +Object.defineProperty(exports, "GatewayMessageQueueInfo", ({ + enumerable: true, + get: function get() { + return _GatewayMessageQueueInfo["default"]; + } +})); +Object.defineProperty(exports, "GatewayMigratePersonalItems", ({ + enumerable: true, + get: function get() { + return _GatewayMigratePersonalItems["default"]; + } +})); +Object.defineProperty(exports, "GatewayMigratePersonalItemsOutput", ({ + enumerable: true, + get: function get() { + return _GatewayMigratePersonalItemsOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayMigrationCreateOutput", ({ + enumerable: true, + get: function get() { + return _GatewayMigrationCreateOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayMigrationDeleteOutput", ({ + enumerable: true, + get: function get() { + return _GatewayMigrationDeleteOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayMigrationGetOutput", ({ + enumerable: true, + get: function get() { + return _GatewayMigrationGetOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayMigrationListOutput", ({ + enumerable: true, + get: function get() { + return _GatewayMigrationListOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayMigrationSyncOutput", ({ + enumerable: true, + get: function get() { + return _GatewayMigrationSyncOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayMigrationUpdateOutput", ({ + enumerable: true, + get: function get() { + return _GatewayMigrationUpdateOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayRevokeTmpUsers", ({ + enumerable: true, + get: function get() { + return _GatewayRevokeTmpUsers["default"]; + } +})); +Object.defineProperty(exports, "GatewayStartProducer", ({ + enumerable: true, + get: function get() { + return _GatewayStartProducer["default"]; + } +})); +Object.defineProperty(exports, "GatewayStartProducerOutput", ({ + enumerable: true, + get: function get() { + return _GatewayStartProducerOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayStatusMigration", ({ + enumerable: true, + get: function get() { + return _GatewayStatusMigration["default"]; + } +})); +Object.defineProperty(exports, "GatewayStopProducer", ({ + enumerable: true, + get: function get() { + return _GatewayStopProducer["default"]; + } +})); +Object.defineProperty(exports, "GatewayStopProducerOutput", ({ + enumerable: true, + get: function get() { + return _GatewayStopProducerOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewaySyncMigration", ({ + enumerable: true, + get: function get() { + return _GatewaySyncMigration["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateAllowedAccess", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateAllowedAccess["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateItem", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateItem["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateItemOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateItemOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateK8SAuthConfig", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateK8SAuthConfig["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateK8SAuthConfigOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateK8SAuthConfigOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateLdapAuthConfig", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateLdapAuthConfig["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateLdapAuthConfigOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateLdapAuthConfigOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateMigration", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateMigration["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerArtifactory", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerArtifactory["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerArtifactoryOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerArtifactoryOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerAws", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerAws["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerAwsOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerAwsOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerAzure", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerAzure["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerAzureOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerAzureOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerCassandra", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerCassandra["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerCassandraOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerCassandraOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerChef", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerChef["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerChefOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerChefOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerCustom", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerCustom["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerCustomOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerCustomOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerDockerhub", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerDockerhub["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerDockerhubOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerDockerhubOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerEks", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerEks["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerEksOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerEksOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerGcp", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerGcp["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerGcpOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerGcpOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerGithub", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerGithub["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerGithubOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerGithubOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerGke", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerGke["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerGkeOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerGkeOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerHanaDb", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerHanaDb["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerHanaDbOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerHanaDbOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerLdap", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerLdap["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerLdapOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerLdapOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerMSSQL", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerMSSQL["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerMSSQLOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerMSSQLOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerMongo", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerMongo["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerMongoOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerMongoOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerMySQL", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerMySQL["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerMySQLOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerMySQLOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerNativeK8S", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerNativeK8S["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerNativeK8SOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerNativeK8SOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerOracleDb", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerOracleDb["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerOracleDbOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerOracleDbOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerPing", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerPing["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerPingOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerPingOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerPostgreSQL", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerPostgreSQL["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerPostgreSQLOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerPostgreSQLOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerRabbitMQ", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerRabbitMQ["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerRabbitMQOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerRabbitMQOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerRdp", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerRdp["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerRdpOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerRdpOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerRedis", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerRedis["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerRedisOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerRedisOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerRedshift", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerRedshift["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerRedshiftOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerRedshiftOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerSnowflake", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerSnowflake["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerSnowflakeOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerSnowflakeOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerVenafi", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerVenafi["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateProducerVenafiOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateProducerVenafiOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateTlsCert", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateTlsCert["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateTlsCertOutput", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateTlsCertOutput["default"]; + } +})); +Object.defineProperty(exports, "GatewayUpdateTmpUsers", ({ + enumerable: true, + get: function get() { + return _GatewayUpdateTmpUsers["default"]; + } +})); +Object.defineProperty(exports, "GatewaysListResponse", ({ + enumerable: true, + get: function get() { + return _GatewaysListResponse["default"]; + } +})); +Object.defineProperty(exports, "GcpTargetDetails", ({ + enumerable: true, + get: function get() { + return _GcpTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "GenCustomerFragment", ({ + enumerable: true, + get: function get() { + return _GenCustomerFragment["default"]; + } +})); +Object.defineProperty(exports, "GeneralConfigPart", ({ + enumerable: true, + get: function get() { + return _GeneralConfigPart["default"]; + } +})); +Object.defineProperty(exports, "GenerateCsr", ({ + enumerable: true, + get: function get() { + return _GenerateCsr["default"]; + } +})); +Object.defineProperty(exports, "GenerateCsrOutput", ({ + enumerable: true, + get: function get() { + return _GenerateCsrOutput["default"]; + } +})); +Object.defineProperty(exports, "GetAccountSettings", ({ + enumerable: true, + get: function get() { + return _GetAccountSettings["default"]; + } +})); +Object.defineProperty(exports, "GetAccountSettingsCommandOutput", ({ + enumerable: true, + get: function get() { + return _GetAccountSettingsCommandOutput["default"]; + } +})); +Object.defineProperty(exports, "GetAnalyticsData", ({ + enumerable: true, + get: function get() { + return _GetAnalyticsData["default"]; + } +})); +Object.defineProperty(exports, "GetAuthMethod", ({ + enumerable: true, + get: function get() { + return _GetAuthMethod["default"]; + } +})); +Object.defineProperty(exports, "GetCertificateValue", ({ + enumerable: true, + get: function get() { + return _GetCertificateValue["default"]; + } +})); +Object.defineProperty(exports, "GetCertificateValueOutput", ({ + enumerable: true, + get: function get() { + return _GetCertificateValueOutput["default"]; + } +})); +Object.defineProperty(exports, "GetDynamicSecretValue", ({ + enumerable: true, + get: function get() { + return _GetDynamicSecretValue["default"]; + } +})); +Object.defineProperty(exports, "GetEventForwarder", ({ + enumerable: true, + get: function get() { + return _GetEventForwarder["default"]; + } +})); +Object.defineProperty(exports, "GetEventForwarderOutput", ({ + enumerable: true, + get: function get() { + return _GetEventForwarderOutput["default"]; + } +})); +Object.defineProperty(exports, "GetGroup", ({ + enumerable: true, + get: function get() { + return _GetGroup["default"]; + } +})); +Object.defineProperty(exports, "GetGroupOutput", ({ + enumerable: true, + get: function get() { + return _GetGroupOutput["default"]; + } +})); +Object.defineProperty(exports, "GetKubeExecCreds", ({ + enumerable: true, + get: function get() { + return _GetKubeExecCreds["default"]; + } +})); +Object.defineProperty(exports, "GetKubeExecCredsOutput", ({ + enumerable: true, + get: function get() { + return _GetKubeExecCredsOutput["default"]; + } +})); +Object.defineProperty(exports, "GetLastUserEventStatus", ({ + enumerable: true, + get: function get() { + return _GetLastUserEventStatus["default"]; + } +})); +Object.defineProperty(exports, "GetPKICertificate", ({ + enumerable: true, + get: function get() { + return _GetPKICertificate["default"]; + } +})); +Object.defineProperty(exports, "GetPKICertificateOutput", ({ + enumerable: true, + get: function get() { + return _GetPKICertificateOutput["default"]; + } +})); +Object.defineProperty(exports, "GetProducersListReplyObj", ({ + enumerable: true, + get: function get() { + return _GetProducersListReplyObj["default"]; + } +})); +Object.defineProperty(exports, "GetRSAPublic", ({ + enumerable: true, + get: function get() { + return _GetRSAPublic["default"]; + } +})); +Object.defineProperty(exports, "GetRSAPublicOutput", ({ + enumerable: true, + get: function get() { + return _GetRSAPublicOutput["default"]; + } +})); +Object.defineProperty(exports, "GetRole", ({ + enumerable: true, + get: function get() { + return _GetRole["default"]; + } +})); +Object.defineProperty(exports, "GetRotatedSecretValue", ({ + enumerable: true, + get: function get() { + return _GetRotatedSecretValue["default"]; + } +})); +Object.defineProperty(exports, "GetSSHCertificate", ({ + enumerable: true, + get: function get() { + return _GetSSHCertificate["default"]; + } +})); +Object.defineProperty(exports, "GetSSHCertificateOutput", ({ + enumerable: true, + get: function get() { + return _GetSSHCertificateOutput["default"]; + } +})); +Object.defineProperty(exports, "GetSecretValue", ({ + enumerable: true, + get: function get() { + return _GetSecretValue["default"]; + } +})); +Object.defineProperty(exports, "GetTags", ({ + enumerable: true, + get: function get() { + return _GetTags["default"]; + } +})); +Object.defineProperty(exports, "GetTarget", ({ + enumerable: true, + get: function get() { + return _GetTarget["default"]; + } +})); +Object.defineProperty(exports, "GetTargetDetails", ({ + enumerable: true, + get: function get() { + return _GetTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "GetTargetDetailsOutput", ({ + enumerable: true, + get: function get() { + return _GetTargetDetailsOutput["default"]; + } +})); +Object.defineProperty(exports, "GetUserEventStatusOutput", ({ + enumerable: true, + get: function get() { + return _GetUserEventStatusOutput["default"]; + } +})); +Object.defineProperty(exports, "GithubTargetDetails", ({ + enumerable: true, + get: function get() { + return _GithubTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "GlobalSignAtlasTargetDetails", ({ + enumerable: true, + get: function get() { + return _GlobalSignAtlasTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "GlobalSignGCCTargetDetails", ({ + enumerable: true, + get: function get() { + return _GlobalSignGCCTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "GodaddyTargetDetails", ({ + enumerable: true, + get: function get() { + return _GodaddyTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "GoogleChronicleForwardingConfig", ({ + enumerable: true, + get: function get() { + return _GoogleChronicleForwardingConfig["default"]; + } +})); +Object.defineProperty(exports, "Group", ({ + enumerable: true, + get: function get() { + return _Group["default"]; + } +})); +Object.defineProperty(exports, "GwClusterIdentity", ({ + enumerable: true, + get: function get() { + return _GwClusterIdentity["default"]; + } +})); +Object.defineProperty(exports, "HashiMigration", ({ + enumerable: true, + get: function get() { + return _HashiMigration["default"]; + } +})); +Object.defineProperty(exports, "HashiPayload", ({ + enumerable: true, + get: function get() { + return _HashiPayload["default"]; + } +})); +Object.defineProperty(exports, "Hmac", ({ + enumerable: true, + get: function get() { + return _Hmac["default"]; + } +})); +Object.defineProperty(exports, "HmacOutput", ({ + enumerable: true, + get: function get() { + return _HmacOutput["default"]; + } +})); +Object.defineProperty(exports, "HuaweiAccessRules", ({ + enumerable: true, + get: function get() { + return _HuaweiAccessRules["default"]; + } +})); +Object.defineProperty(exports, "ImportPasswords", ({ + enumerable: true, + get: function get() { + return _ImportPasswords["default"]; + } +})); +Object.defineProperty(exports, "ImportPasswordsOutput", ({ + enumerable: true, + get: function get() { + return _ImportPasswordsOutput["default"]; + } +})); +Object.defineProperty(exports, "ImporterInfo", ({ + enumerable: true, + get: function get() { + return _ImporterInfo["default"]; + } +})); +Object.defineProperty(exports, "Item", ({ + enumerable: true, + get: function get() { + return _Item["default"]; + } +})); +Object.defineProperty(exports, "ItemGeneralInfo", ({ + enumerable: true, + get: function get() { + return _ItemGeneralInfo["default"]; + } +})); +Object.defineProperty(exports, "ItemSraStatus", ({ + enumerable: true, + get: function get() { + return _ItemSraStatus["default"]; + } +})); +Object.defineProperty(exports, "ItemTargetAssociation", ({ + enumerable: true, + get: function get() { + return _ItemTargetAssociation["default"]; + } +})); +Object.defineProperty(exports, "ItemVersion", ({ + enumerable: true, + get: function get() { + return _ItemVersion["default"]; + } +})); +Object.defineProperty(exports, "JSONError", ({ + enumerable: true, + get: function get() { + return _JSONError["default"]; + } +})); +Object.defineProperty(exports, "K8SAuth", ({ + enumerable: true, + get: function get() { + return _K8SAuth["default"]; + } +})); +Object.defineProperty(exports, "K8SAuthsConfigLastChange", ({ + enumerable: true, + get: function get() { + return _K8SAuthsConfigLastChange["default"]; + } +})); +Object.defineProperty(exports, "K8SAuthsConfigPart", ({ + enumerable: true, + get: function get() { + return _K8SAuthsConfigPart["default"]; + } +})); +Object.defineProperty(exports, "K8SMigration", ({ + enumerable: true, + get: function get() { + return _K8SMigration["default"]; + } +})); +Object.defineProperty(exports, "K8SPayload", ({ + enumerable: true, + get: function get() { + return _K8SPayload["default"]; + } +})); +Object.defineProperty(exports, "KMIPClient", ({ + enumerable: true, + get: function get() { + return _KMIPClient["default"]; + } +})); +Object.defineProperty(exports, "KMIPClientGetResponse", ({ + enumerable: true, + get: function get() { + return _KMIPClientGetResponse["default"]; + } +})); +Object.defineProperty(exports, "KMIPClientListResponse", ({ + enumerable: true, + get: function get() { + return _KMIPClientListResponse["default"]; + } +})); +Object.defineProperty(exports, "KMIPClientUpdateResponse", ({ + enumerable: true, + get: function get() { + return _KMIPClientUpdateResponse["default"]; + } +})); +Object.defineProperty(exports, "KMIPConfigPart", ({ + enumerable: true, + get: function get() { + return _KMIPConfigPart["default"]; + } +})); +Object.defineProperty(exports, "KMIPEnvironmentCreateResponse", ({ + enumerable: true, + get: function get() { + return _KMIPEnvironmentCreateResponse["default"]; + } +})); +Object.defineProperty(exports, "KMIPServer", ({ + enumerable: true, + get: function get() { + return _KMIPServer["default"]; + } +})); +Object.defineProperty(exports, "KmipClientDeleteRule", ({ + enumerable: true, + get: function get() { + return _KmipClientDeleteRule["default"]; + } +})); +Object.defineProperty(exports, "KmipClientSetRule", ({ + enumerable: true, + get: function get() { + return _KmipClientSetRule["default"]; + } +})); +Object.defineProperty(exports, "KmipCreateClient", ({ + enumerable: true, + get: function get() { + return _KmipCreateClient["default"]; + } +})); +Object.defineProperty(exports, "KmipCreateClientOutput", ({ + enumerable: true, + get: function get() { + return _KmipCreateClientOutput["default"]; + } +})); +Object.defineProperty(exports, "KmipDeleteClient", ({ + enumerable: true, + get: function get() { + return _KmipDeleteClient["default"]; + } +})); +Object.defineProperty(exports, "KmipDeleteServer", ({ + enumerable: true, + get: function get() { + return _KmipDeleteServer["default"]; + } +})); +Object.defineProperty(exports, "KmipDescribeClient", ({ + enumerable: true, + get: function get() { + return _KmipDescribeClient["default"]; + } +})); +Object.defineProperty(exports, "KmipDescribeServer", ({ + enumerable: true, + get: function get() { + return _KmipDescribeServer["default"]; + } +})); +Object.defineProperty(exports, "KmipDescribeServerOutput", ({ + enumerable: true, + get: function get() { + return _KmipDescribeServerOutput["default"]; + } +})); +Object.defineProperty(exports, "KmipListClients", ({ + enumerable: true, + get: function get() { + return _KmipListClients["default"]; + } +})); +Object.defineProperty(exports, "KmipMoveServer", ({ + enumerable: true, + get: function get() { + return _KmipMoveServer["default"]; + } +})); +Object.defineProperty(exports, "KmipMoveServerOutput", ({ + enumerable: true, + get: function get() { + return _KmipMoveServerOutput["default"]; + } +})); +Object.defineProperty(exports, "KmipRenewClientCertificate", ({ + enumerable: true, + get: function get() { + return _KmipRenewClientCertificate["default"]; + } +})); +Object.defineProperty(exports, "KmipRenewClientCertificateOutput", ({ + enumerable: true, + get: function get() { + return _KmipRenewClientCertificateOutput["default"]; + } +})); +Object.defineProperty(exports, "KmipRenewServerCertificate", ({ + enumerable: true, + get: function get() { + return _KmipRenewServerCertificate["default"]; + } +})); +Object.defineProperty(exports, "KmipRenewServerCertificateOutput", ({ + enumerable: true, + get: function get() { + return _KmipRenewServerCertificateOutput["default"]; + } +})); +Object.defineProperty(exports, "KmipServerSetup", ({ + enumerable: true, + get: function get() { + return _KmipServerSetup["default"]; + } +})); +Object.defineProperty(exports, "KmipSetServerState", ({ + enumerable: true, + get: function get() { + return _KmipSetServerState["default"]; + } +})); +Object.defineProperty(exports, "KmipSetServerStateOutput", ({ + enumerable: true, + get: function get() { + return _KmipSetServerStateOutput["default"]; + } +})); +Object.defineProperty(exports, "KubernetesAccessRules", ({ + enumerable: true, + get: function get() { + return _KubernetesAccessRules["default"]; + } +})); +Object.defineProperty(exports, "LDAPAccessRules", ({ + enumerable: true, + get: function get() { + return _LDAPAccessRules["default"]; + } +})); +Object.defineProperty(exports, "LastConfigChange", ({ + enumerable: true, + get: function get() { + return _LastConfigChange["default"]; + } +})); +Object.defineProperty(exports, "LastStatusInfo", ({ + enumerable: true, + get: function get() { + return _LastStatusInfo["default"]; + } +})); +Object.defineProperty(exports, "LdapConfigPart", ({ + enumerable: true, + get: function get() { + return _LdapConfigPart["default"]; + } +})); +Object.defineProperty(exports, "LdapTargetDetails", ({ + enumerable: true, + get: function get() { + return _LdapTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "LeadershipConfigPart", ({ + enumerable: true, + get: function get() { + return _LeadershipConfigPart["default"]; + } +})); +Object.defineProperty(exports, "LinkedDetails", ({ + enumerable: true, + get: function get() { + return _LinkedDetails["default"]; + } +})); +Object.defineProperty(exports, "LinkedTargetDetails", ({ + enumerable: true, + get: function get() { + return _LinkedTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "ListAuthMethods", ({ + enumerable: true, + get: function get() { + return _ListAuthMethods["default"]; + } +})); +Object.defineProperty(exports, "ListAuthMethodsOutput", ({ + enumerable: true, + get: function get() { + return _ListAuthMethodsOutput["default"]; + } +})); +Object.defineProperty(exports, "ListGateways", ({ + enumerable: true, + get: function get() { + return _ListGateways["default"]; + } +})); +Object.defineProperty(exports, "ListGroups", ({ + enumerable: true, + get: function get() { + return _ListGroups["default"]; + } +})); +Object.defineProperty(exports, "ListGroupsOutput", ({ + enumerable: true, + get: function get() { + return _ListGroupsOutput["default"]; + } +})); +Object.defineProperty(exports, "ListItems", ({ + enumerable: true, + get: function get() { + return _ListItems["default"]; + } +})); +Object.defineProperty(exports, "ListItemsInPathOutput", ({ + enumerable: true, + get: function get() { + return _ListItemsInPathOutput["default"]; + } +})); +Object.defineProperty(exports, "ListItemsOutput", ({ + enumerable: true, + get: function get() { + return _ListItemsOutput["default"]; + } +})); +Object.defineProperty(exports, "ListRoles", ({ + enumerable: true, + get: function get() { + return _ListRoles["default"]; + } +})); +Object.defineProperty(exports, "ListRolesOutput", ({ + enumerable: true, + get: function get() { + return _ListRolesOutput["default"]; + } +})); +Object.defineProperty(exports, "ListSRABastions", ({ + enumerable: true, + get: function get() { + return _ListSRABastions["default"]; + } +})); +Object.defineProperty(exports, "ListSharedItems", ({ + enumerable: true, + get: function get() { + return _ListSharedItems["default"]; + } +})); +Object.defineProperty(exports, "ListTargets", ({ + enumerable: true, + get: function get() { + return _ListTargets["default"]; + } +})); +Object.defineProperty(exports, "ListTargetsOutput", ({ + enumerable: true, + get: function get() { + return _ListTargetsOutput["default"]; + } +})); +Object.defineProperty(exports, "LogForwardingConfigPart", ({ + enumerable: true, + get: function get() { + return _LogForwardingConfigPart["default"]; + } +})); +Object.defineProperty(exports, "LogstashLogForwardingConfig", ({ + enumerable: true, + get: function get() { + return _LogstashLogForwardingConfig["default"]; + } +})); +Object.defineProperty(exports, "LogzIoLogForwardingConfig", ({ + enumerable: true, + get: function get() { + return _LogzIoLogForwardingConfig["default"]; + } +})); +Object.defineProperty(exports, "MigrationGeneral", ({ + enumerable: true, + get: function get() { + return _MigrationGeneral["default"]; + } +})); +Object.defineProperty(exports, "MigrationItems", ({ + enumerable: true, + get: function get() { + return _MigrationItems["default"]; + } +})); +Object.defineProperty(exports, "MigrationStatus", ({ + enumerable: true, + get: function get() { + return _MigrationStatus["default"]; + } +})); +Object.defineProperty(exports, "MigrationStatusReplyObj", ({ + enumerable: true, + get: function get() { + return _MigrationStatusReplyObj["default"]; + } +})); +Object.defineProperty(exports, "MigrationsConfigLastChange", ({ + enumerable: true, + get: function get() { + return _MigrationsConfigLastChange["default"]; + } +})); +Object.defineProperty(exports, "MigrationsConfigPart", ({ + enumerable: true, + get: function get() { + return _MigrationsConfigPart["default"]; + } +})); +Object.defineProperty(exports, "MockMigration", ({ + enumerable: true, + get: function get() { + return _MockMigration["default"]; + } +})); +Object.defineProperty(exports, "MockPayload", ({ + enumerable: true, + get: function get() { + return _MockPayload["default"]; + } +})); +Object.defineProperty(exports, "MongoDBTargetDetails", ({ + enumerable: true, + get: function get() { + return _MongoDBTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "MoveObjects", ({ + enumerable: true, + get: function get() { + return _MoveObjects["default"]; + } +})); +Object.defineProperty(exports, "Name", ({ + enumerable: true, + get: function get() { + return _Name["default"]; + } +})); +Object.defineProperty(exports, "NativeK8sTargetDetails", ({ + enumerable: true, + get: function get() { + return _NativeK8sTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "NotiForwarder", ({ + enumerable: true, + get: function get() { + return _NotiForwarder["default"]; + } +})); +Object.defineProperty(exports, "OAuth2AccessRules", ({ + enumerable: true, + get: function get() { + return _OAuth2AccessRules["default"]; + } +})); +Object.defineProperty(exports, "OAuth2CustomClaim", ({ + enumerable: true, + get: function get() { + return _OAuth2CustomClaim["default"]; + } +})); +Object.defineProperty(exports, "OCIAccessRules", ({ + enumerable: true, + get: function get() { + return _OCIAccessRules["default"]; + } +})); +Object.defineProperty(exports, "OIDCAccessRules", ({ + enumerable: true, + get: function get() { + return _OIDCAccessRules["default"]; + } +})); +Object.defineProperty(exports, "OIDCCustomClaim", ({ + enumerable: true, + get: function get() { + return _OIDCCustomClaim["default"]; + } +})); +Object.defineProperty(exports, "ObjectVersionSettingsOutput", ({ + enumerable: true, + get: function get() { + return _ObjectVersionSettingsOutput["default"]; + } +})); +Object.defineProperty(exports, "OidcClientInfo", ({ + enumerable: true, + get: function get() { + return _OidcClientInfo["default"]; + } +})); +Object.defineProperty(exports, "OnePasswordMigration", ({ + enumerable: true, + get: function get() { + return _OnePasswordMigration["default"]; + } +})); +Object.defineProperty(exports, "OnePasswordPayload", ({ + enumerable: true, + get: function get() { + return _OnePasswordPayload["default"]; + } +})); +Object.defineProperty(exports, "PKICertificateIssueDetails", ({ + enumerable: true, + get: function get() { + return _PKICertificateIssueDetails["default"]; + } +})); +Object.defineProperty(exports, "PasswordPolicyInfo", ({ + enumerable: true, + get: function get() { + return _PasswordPolicyInfo["default"]; + } +})); +Object.defineProperty(exports, "PathRule", ({ + enumerable: true, + get: function get() { + return _PathRule["default"]; + } +})); +Object.defineProperty(exports, "PingTargetDetails", ({ + enumerable: true, + get: function get() { + return _PingTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "Producer", ({ + enumerable: true, + get: function get() { + return _Producer["default"]; + } +})); +Object.defineProperty(exports, "ProducersConfigPart", ({ + enumerable: true, + get: function get() { + return _ProducersConfigPart["default"]; + } +})); +Object.defineProperty(exports, "ProvisionCertificate", ({ + enumerable: true, + get: function get() { + return _ProvisionCertificate["default"]; + } +})); +Object.defineProperty(exports, "ProvisionCertificateOutput", ({ + enumerable: true, + get: function get() { + return _ProvisionCertificateOutput["default"]; + } +})); +Object.defineProperty(exports, "RabbitMQTargetDetails", ({ + enumerable: true, + get: function get() { + return _RabbitMQTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "RawCreds", ({ + enumerable: true, + get: function get() { + return _RawCreds["default"]; + } +})); +Object.defineProperty(exports, "RefreshKey", ({ + enumerable: true, + get: function get() { + return _RefreshKey["default"]; + } +})); +Object.defineProperty(exports, "RefreshKeyOutput", ({ + enumerable: true, + get: function get() { + return _RefreshKeyOutput["default"]; + } +})); +Object.defineProperty(exports, "RegexpTokenizerInfo", ({ + enumerable: true, + get: function get() { + return _RegexpTokenizerInfo["default"]; + } +})); +Object.defineProperty(exports, "RenewCertificate", ({ + enumerable: true, + get: function get() { + return _RenewCertificate["default"]; + } +})); +Object.defineProperty(exports, "RenewCertificateOutput", ({ + enumerable: true, + get: function get() { + return _RenewCertificateOutput["default"]; + } +})); +Object.defineProperty(exports, "RequestAccess", ({ + enumerable: true, + get: function get() { + return _RequestAccess["default"]; + } +})); +Object.defineProperty(exports, "RequestAccessOutput", ({ + enumerable: true, + get: function get() { + return _RequestAccessOutput["default"]; + } +})); +Object.defineProperty(exports, "RequiredActivity", ({ + enumerable: true, + get: function get() { + return _RequiredActivity["default"]; + } +})); +Object.defineProperty(exports, "ReverseRBAC", ({ + enumerable: true, + get: function get() { + return _ReverseRBAC["default"]; + } +})); +Object.defineProperty(exports, "ReverseRBACClient", ({ + enumerable: true, + get: function get() { + return _ReverseRBACClient["default"]; + } +})); +Object.defineProperty(exports, "ReverseRBACOutput", ({ + enumerable: true, + get: function get() { + return _ReverseRBACOutput["default"]; + } +})); +Object.defineProperty(exports, "RevokeCertificate", ({ + enumerable: true, + get: function get() { + return _RevokeCertificate["default"]; + } +})); +Object.defineProperty(exports, "RevokeCreds", ({ + enumerable: true, + get: function get() { + return _RevokeCreds["default"]; + } +})); +Object.defineProperty(exports, "Role", ({ + enumerable: true, + get: function get() { + return _Role["default"]; + } +})); +Object.defineProperty(exports, "RoleAssociationDetails", ({ + enumerable: true, + get: function get() { + return _RoleAssociationDetails["default"]; + } +})); +Object.defineProperty(exports, "RoleAuthMethodAssociation", ({ + enumerable: true, + get: function get() { + return _RoleAuthMethodAssociation["default"]; + } +})); +Object.defineProperty(exports, "RollbackSecret", ({ + enumerable: true, + get: function get() { + return _RollbackSecret["default"]; + } +})); +Object.defineProperty(exports, "RollbackSecretOutput", ({ + enumerable: true, + get: function get() { + return _RollbackSecretOutput["default"]; + } +})); +Object.defineProperty(exports, "RotateKey", ({ + enumerable: true, + get: function get() { + return _RotateKey["default"]; + } +})); +Object.defineProperty(exports, "RotateKeyOutput", ({ + enumerable: true, + get: function get() { + return _RotateKeyOutput["default"]; + } +})); +Object.defineProperty(exports, "RotateOidcClientOutput", ({ + enumerable: true, + get: function get() { + return _RotateOidcClientOutput["default"]; + } +})); +Object.defineProperty(exports, "RotateOidcClientSecret", ({ + enumerable: true, + get: function get() { + return _RotateOidcClientSecret["default"]; + } +})); +Object.defineProperty(exports, "RotateSecret", ({ + enumerable: true, + get: function get() { + return _RotateSecret["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateAws", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateAws["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateAzure", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateAzure["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateCassandra", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateCassandra["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateCustom", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateCustom["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateDockerhub", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateDockerhub["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateGcp", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateGcp["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateHanadb", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateHanadb["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateLdap", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateLdap["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateMongodb", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateMongodb["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateMssql", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateMssql["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateMysql", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateMysql["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateOracledb", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateOracledb["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateOutput", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateOutput["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreatePostgresql", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreatePostgresql["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateRedis", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateRedis["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateRedshift", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateRedshift["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateSnowflake", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateSnowflake["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateSsh", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateSsh["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretCreateWindows", ({ + enumerable: true, + get: function get() { + return _RotatedSecretCreateWindows["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretDetailsInfo", ({ + enumerable: true, + get: function get() { + return _RotatedSecretDetailsInfo["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretGetValue", ({ + enumerable: true, + get: function get() { + return _RotatedSecretGetValue["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretList", ({ + enumerable: true, + get: function get() { + return _RotatedSecretList["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretOutput", ({ + enumerable: true, + get: function get() { + return _RotatedSecretOutput["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateAws", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateAws["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateAzure", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateAzure["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateCassandra", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateCassandra["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateCustom", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateCustom["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateDockerhub", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateDockerhub["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateGcp", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateGcp["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateHanadb", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateHanadb["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateLdap", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateLdap["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateMongodb", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateMongodb["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateMssql", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateMssql["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateMysql", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateMysql["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateOracledb", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateOracledb["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateOutput", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateOutput["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdatePostgresql", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdatePostgresql["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateRedis", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateRedis["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateRedshift", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateRedshift["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateSnowflake", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateSnowflake["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateSsh", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateSsh["default"]; + } +})); +Object.defineProperty(exports, "RotatedSecretUpdateWindows", ({ + enumerable: true, + get: function get() { + return _RotatedSecretUpdateWindows["default"]; + } +})); +Object.defineProperty(exports, "RotationSecretMaxInterval", ({ + enumerable: true, + get: function get() { + return _RotationSecretMaxInterval["default"]; + } +})); +Object.defineProperty(exports, "Rotator", ({ + enumerable: true, + get: function get() { + return _Rotator["default"]; + } +})); +Object.defineProperty(exports, "RotatorsConfigPart", ({ + enumerable: true, + get: function get() { + return _RotatorsConfigPart["default"]; + } +})); +Object.defineProperty(exports, "RuleAssigner", ({ + enumerable: true, + get: function get() { + return _RuleAssigner["default"]; + } +})); +Object.defineProperty(exports, "Rules", ({ + enumerable: true, + get: function get() { + return _Rules["default"]; + } +})); +Object.defineProperty(exports, "SAMLAccessRules", ({ + enumerable: true, + get: function get() { + return _SAMLAccessRules["default"]; + } +})); +Object.defineProperty(exports, "SAMLAttribute", ({ + enumerable: true, + get: function get() { + return _SAMLAttribute["default"]; + } +})); +Object.defineProperty(exports, "SSHCertificateIssueDetails", ({ + enumerable: true, + get: function get() { + return _SSHCertificateIssueDetails["default"]; + } +})); +Object.defineProperty(exports, "SSHTargetDetails", ({ + enumerable: true, + get: function get() { + return _SSHTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "SalesforceTargetDetails", ({ + enumerable: true, + get: function get() { + return _SalesforceTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "SecretInfo", ({ + enumerable: true, + get: function get() { + return _SecretInfo["default"]; + } +})); +Object.defineProperty(exports, "SecureRemoteAccess", ({ + enumerable: true, + get: function get() { + return _SecureRemoteAccess["default"]; + } +})); +Object.defineProperty(exports, "ServerInventoryMigration", ({ + enumerable: true, + get: function get() { + return _ServerInventoryMigration["default"]; + } +})); +Object.defineProperty(exports, "ServerInventoryPayload", ({ + enumerable: true, + get: function get() { + return _ServerInventoryPayload["default"]; + } +})); +Object.defineProperty(exports, "SetItemState", ({ + enumerable: true, + get: function get() { + return _SetItemState["default"]; + } +})); +Object.defineProperty(exports, "SetRoleRule", ({ + enumerable: true, + get: function get() { + return _SetRoleRule["default"]; + } +})); +Object.defineProperty(exports, "ShareItem", ({ + enumerable: true, + get: function get() { + return _ShareItem["default"]; + } +})); +Object.defineProperty(exports, "SharingPolicyInfo", ({ + enumerable: true, + get: function get() { + return _SharingPolicyInfo["default"]; + } +})); +Object.defineProperty(exports, "SignDataWithClassicKey", ({ + enumerable: true, + get: function get() { + return _SignDataWithClassicKey["default"]; + } +})); +Object.defineProperty(exports, "SignEcDsa", ({ + enumerable: true, + get: function get() { + return _SignEcDsa["default"]; + } +})); +Object.defineProperty(exports, "SignEcDsaOutput", ({ + enumerable: true, + get: function get() { + return _SignEcDsaOutput["default"]; + } +})); +Object.defineProperty(exports, "SignGPG", ({ + enumerable: true, + get: function get() { + return _SignGPG["default"]; + } +})); +Object.defineProperty(exports, "SignGPGOutput", ({ + enumerable: true, + get: function get() { + return _SignGPGOutput["default"]; + } +})); +Object.defineProperty(exports, "SignJWTOutput", ({ + enumerable: true, + get: function get() { + return _SignJWTOutput["default"]; + } +})); +Object.defineProperty(exports, "SignJWTWithClassicKey", ({ + enumerable: true, + get: function get() { + return _SignJWTWithClassicKey["default"]; + } +})); +Object.defineProperty(exports, "SignOutput", ({ + enumerable: true, + get: function get() { + return _SignOutput["default"]; + } +})); +Object.defineProperty(exports, "SignPKCS1", ({ + enumerable: true, + get: function get() { + return _SignPKCS["default"]; + } +})); +Object.defineProperty(exports, "SignPKCS1Output", ({ + enumerable: true, + get: function get() { + return _SignPKCS1Output["default"]; + } +})); +Object.defineProperty(exports, "SignPKICertOutput", ({ + enumerable: true, + get: function get() { + return _SignPKICertOutput["default"]; + } +})); +Object.defineProperty(exports, "SignPKICertWithClassicKey", ({ + enumerable: true, + get: function get() { + return _SignPKICertWithClassicKey["default"]; + } +})); +Object.defineProperty(exports, "SignRsaSsaPss", ({ + enumerable: true, + get: function get() { + return _SignRsaSsaPss["default"]; + } +})); +Object.defineProperty(exports, "SignRsaSsaPssOutput", ({ + enumerable: true, + get: function get() { + return _SignRsaSsaPssOutput["default"]; + } +})); +Object.defineProperty(exports, "SmInfo", ({ + enumerable: true, + get: function get() { + return _SmInfo["default"]; + } +})); +Object.defineProperty(exports, "SplunkLogForwardingConfig", ({ + enumerable: true, + get: function get() { + return _SplunkLogForwardingConfig["default"]; + } +})); +Object.defineProperty(exports, "SraInfo", ({ + enumerable: true, + get: function get() { + return _SraInfo["default"]; + } +})); +Object.defineProperty(exports, "StaticCredsAuth", ({ + enumerable: true, + get: function get() { + return _StaticCredsAuth["default"]; + } +})); +Object.defineProperty(exports, "StaticCredsAuthOutput", ({ + enumerable: true, + get: function get() { + return _StaticCredsAuthOutput["default"]; + } +})); +Object.defineProperty(exports, "StaticSecretDetailsInfo", ({ + enumerable: true, + get: function get() { + return _StaticSecretDetailsInfo["default"]; + } +})); +Object.defineProperty(exports, "SumologicLogForwardingConfig", ({ + enumerable: true, + get: function get() { + return _SumologicLogForwardingConfig["default"]; + } +})); +Object.defineProperty(exports, "SyslogLogForwardingConfig", ({ + enumerable: true, + get: function get() { + return _SyslogLogForwardingConfig["default"]; + } +})); +Object.defineProperty(exports, "SystemAccessCredentialsReplyObj", ({ + enumerable: true, + get: function get() { + return _SystemAccessCredentialsReplyObj["default"]; + } +})); +Object.defineProperty(exports, "SystemAccessCredsSettings", ({ + enumerable: true, + get: function get() { + return _SystemAccessCredsSettings["default"]; + } +})); +Object.defineProperty(exports, "Target", ({ + enumerable: true, + get: function get() { + return _Target["default"]; + } +})); +Object.defineProperty(exports, "TargetItemAssociation", ({ + enumerable: true, + get: function get() { + return _TargetItemAssociation["default"]; + } +})); +Object.defineProperty(exports, "TargetItemVersion", ({ + enumerable: true, + get: function get() { + return _TargetItemVersion["default"]; + } +})); +Object.defineProperty(exports, "TargetNameWithHosts", ({ + enumerable: true, + get: function get() { + return _TargetNameWithHosts["default"]; + } +})); +Object.defineProperty(exports, "TargetTypeDetailsInput", ({ + enumerable: true, + get: function get() { + return _TargetTypeDetailsInput["default"]; + } +})); +Object.defineProperty(exports, "TmpUserData", ({ + enumerable: true, + get: function get() { + return _TmpUserData["default"]; + } +})); +Object.defineProperty(exports, "Tokenize", ({ + enumerable: true, + get: function get() { + return _Tokenize["default"]; + } +})); +Object.defineProperty(exports, "TokenizeOutput", ({ + enumerable: true, + get: function get() { + return _TokenizeOutput["default"]; + } +})); +Object.defineProperty(exports, "TokenizerInfo", ({ + enumerable: true, + get: function get() { + return _TokenizerInfo["default"]; + } +})); +Object.defineProperty(exports, "UIDTokenDetails", ({ + enumerable: true, + get: function get() { + return _UIDTokenDetails["default"]; + } +})); +Object.defineProperty(exports, "UidCreateChildToken", ({ + enumerable: true, + get: function get() { + return _UidCreateChildToken["default"]; + } +})); +Object.defineProperty(exports, "UidCreateChildTokenOutput", ({ + enumerable: true, + get: function get() { + return _UidCreateChildTokenOutput["default"]; + } +})); +Object.defineProperty(exports, "UidGenerateToken", ({ + enumerable: true, + get: function get() { + return _UidGenerateToken["default"]; + } +})); +Object.defineProperty(exports, "UidGenerateTokenOutput", ({ + enumerable: true, + get: function get() { + return _UidGenerateTokenOutput["default"]; + } +})); +Object.defineProperty(exports, "UidListChildren", ({ + enumerable: true, + get: function get() { + return _UidListChildren["default"]; + } +})); +Object.defineProperty(exports, "UidRevokeToken", ({ + enumerable: true, + get: function get() { + return _UidRevokeToken["default"]; + } +})); +Object.defineProperty(exports, "UidRotateToken", ({ + enumerable: true, + get: function get() { + return _UidRotateToken["default"]; + } +})); +Object.defineProperty(exports, "UidRotateTokenOutput", ({ + enumerable: true, + get: function get() { + return _UidRotateTokenOutput["default"]; + } +})); +Object.defineProperty(exports, "Unconfigure", ({ + enumerable: true, + get: function get() { + return _Unconfigure["default"]; + } +})); +Object.defineProperty(exports, "UniversalIdentityAccessRules", ({ + enumerable: true, + get: function get() { + return _UniversalIdentityAccessRules["default"]; + } +})); +Object.defineProperty(exports, "UniversalIdentityDetails", ({ + enumerable: true, + get: function get() { + return _UniversalIdentityDetails["default"]; + } +})); +Object.defineProperty(exports, "Update", ({ + enumerable: true, + get: function get() { + return _Update["default"]; + } +})); +Object.defineProperty(exports, "UpdateAWSTarget", ({ + enumerable: true, + get: function get() { + return _UpdateAWSTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateAWSTargetDetails", ({ + enumerable: true, + get: function get() { + return _UpdateAWSTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "UpdateAccountSettings", ({ + enumerable: true, + get: function get() { + return _UpdateAccountSettings["default"]; + } +})); +Object.defineProperty(exports, "UpdateAccountSettingsOutput", ({ + enumerable: true, + get: function get() { + return _UpdateAccountSettingsOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateArtifactoryTarget", ({ + enumerable: true, + get: function get() { + return _UpdateArtifactoryTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateArtifactoryTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateArtifactoryTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateAssoc", ({ + enumerable: true, + get: function get() { + return _UpdateAssoc["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethod", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethod["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethodAWSIAM", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethodAWSIAM["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethodAzureAD", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethodAzureAD["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethodCert", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethodCert["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethodCertOutput", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethodCertOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethodGCP", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethodGCP["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethodK8S", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethodK8S["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethodK8SOutput", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethodK8SOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethodLDAP", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethodLDAP["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethodLDAPOutput", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethodLDAPOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethodOAuth2", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethodOAuth["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethodOCI", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethodOCI["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethodOCIOutput", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethodOCIOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethodOIDC", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethodOIDC["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethodOutput", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethodOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethodSAML", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethodSAML["default"]; + } +})); +Object.defineProperty(exports, "UpdateAuthMethodUniversalIdentity", ({ + enumerable: true, + get: function get() { + return _UpdateAuthMethodUniversalIdentity["default"]; + } +})); +Object.defineProperty(exports, "UpdateAzureTarget", ({ + enumerable: true, + get: function get() { + return _UpdateAzureTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateAzureTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateAzureTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateCertificateOutput", ({ + enumerable: true, + get: function get() { + return _UpdateCertificateOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateCertificateValue", ({ + enumerable: true, + get: function get() { + return _UpdateCertificateValue["default"]; + } +})); +Object.defineProperty(exports, "UpdateClassicKeyCertificate", ({ + enumerable: true, + get: function get() { + return _UpdateClassicKeyCertificate["default"]; + } +})); +Object.defineProperty(exports, "UpdateDBTarget", ({ + enumerable: true, + get: function get() { + return _UpdateDBTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateDBTargetDetails", ({ + enumerable: true, + get: function get() { + return _UpdateDBTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "UpdateDBTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateDBTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateDockerhubTarget", ({ + enumerable: true, + get: function get() { + return _UpdateDockerhubTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateDockerhubTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateDockerhubTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateEKSTarget", ({ + enumerable: true, + get: function get() { + return _UpdateEKSTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateEKSTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateEKSTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateEventForwarder", ({ + enumerable: true, + get: function get() { + return _UpdateEventForwarder["default"]; + } +})); +Object.defineProperty(exports, "UpdateGKETarget", ({ + enumerable: true, + get: function get() { + return _UpdateGKETarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateGKETargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateGKETargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateGcpTarget", ({ + enumerable: true, + get: function get() { + return _UpdateGcpTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateGcpTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateGcpTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateGithubTarget", ({ + enumerable: true, + get: function get() { + return _UpdateGithubTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateGithubTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateGithubTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateGlobalSignAtlasTarget", ({ + enumerable: true, + get: function get() { + return _UpdateGlobalSignAtlasTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateGlobalSignAtlasTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateGlobalSignAtlasTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateGlobalSignTarget", ({ + enumerable: true, + get: function get() { + return _UpdateGlobalSignTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateGlobalSignTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateGlobalSignTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateGodaddyTarget", ({ + enumerable: true, + get: function get() { + return _UpdateGodaddyTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateGodaddyTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateGodaddyTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateGroup", ({ + enumerable: true, + get: function get() { + return _UpdateGroup["default"]; + } +})); +Object.defineProperty(exports, "UpdateGroupOutput", ({ + enumerable: true, + get: function get() { + return _UpdateGroupOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateItem", ({ + enumerable: true, + get: function get() { + return _UpdateItem["default"]; + } +})); +Object.defineProperty(exports, "UpdateItemOutput", ({ + enumerable: true, + get: function get() { + return _UpdateItemOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateLdapTarget", ({ + enumerable: true, + get: function get() { + return _UpdateLdapTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateLdapTargetDetails", ({ + enumerable: true, + get: function get() { + return _UpdateLdapTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "UpdateLdapTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateLdapTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateLinkedTarget", ({ + enumerable: true, + get: function get() { + return _UpdateLinkedTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateNativeK8STarget", ({ + enumerable: true, + get: function get() { + return _UpdateNativeK8STarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateNativeK8STargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateNativeK8STargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateOidcApp", ({ + enumerable: true, + get: function get() { + return _UpdateOidcApp["default"]; + } +})); +Object.defineProperty(exports, "UpdateOutput", ({ + enumerable: true, + get: function get() { + return _UpdateOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdatePKICertIssuer", ({ + enumerable: true, + get: function get() { + return _UpdatePKICertIssuer["default"]; + } +})); +Object.defineProperty(exports, "UpdatePKICertIssuerOutput", ({ + enumerable: true, + get: function get() { + return _UpdatePKICertIssuerOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdatePingTarget", ({ + enumerable: true, + get: function get() { + return _UpdatePingTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateRDPTargetDetails", ({ + enumerable: true, + get: function get() { + return _UpdateRDPTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "UpdateRabbitMQTarget", ({ + enumerable: true, + get: function get() { + return _UpdateRabbitMQTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateRabbitMQTargetDetails", ({ + enumerable: true, + get: function get() { + return _UpdateRabbitMQTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "UpdateRabbitMQTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateRabbitMQTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateRole", ({ + enumerable: true, + get: function get() { + return _UpdateRole["default"]; + } +})); +Object.defineProperty(exports, "UpdateRoleOutput", ({ + enumerable: true, + get: function get() { + return _UpdateRoleOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateRotatedSecret", ({ + enumerable: true, + get: function get() { + return _UpdateRotatedSecret["default"]; + } +})); +Object.defineProperty(exports, "UpdateRotatedSecretOutput", ({ + enumerable: true, + get: function get() { + return _UpdateRotatedSecretOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateRotationSettings", ({ + enumerable: true, + get: function get() { + return _UpdateRotationSettings["default"]; + } +})); +Object.defineProperty(exports, "UpdateSSHCertIssuer", ({ + enumerable: true, + get: function get() { + return _UpdateSSHCertIssuer["default"]; + } +})); +Object.defineProperty(exports, "UpdateSSHCertIssuerOutput", ({ + enumerable: true, + get: function get() { + return _UpdateSSHCertIssuerOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateSSHTarget", ({ + enumerable: true, + get: function get() { + return _UpdateSSHTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateSSHTargetDetails", ({ + enumerable: true, + get: function get() { + return _UpdateSSHTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "UpdateSSHTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateSSHTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateSalesforceTarget", ({ + enumerable: true, + get: function get() { + return _UpdateSalesforceTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateSalesforceTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateSalesforceTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateSecretVal", ({ + enumerable: true, + get: function get() { + return _UpdateSecretVal["default"]; + } +})); +Object.defineProperty(exports, "UpdateSecretValOutput", ({ + enumerable: true, + get: function get() { + return _UpdateSecretValOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateTarget", ({ + enumerable: true, + get: function get() { + return _UpdateTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateTargetDetails", ({ + enumerable: true, + get: function get() { + return _UpdateTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "UpdateTargetDetailsOutput", ({ + enumerable: true, + get: function get() { + return _UpdateTargetDetailsOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateWebTarget", ({ + enumerable: true, + get: function get() { + return _UpdateWebTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateWebTargetDetails", ({ + enumerable: true, + get: function get() { + return _UpdateWebTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "UpdateWebTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateWebTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UpdateWindowsTarget", ({ + enumerable: true, + get: function get() { + return _UpdateWindowsTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateZeroSSLTarget", ({ + enumerable: true, + get: function get() { + return _UpdateZeroSSLTarget["default"]; + } +})); +Object.defineProperty(exports, "UpdateZeroSSLTargetOutput", ({ + enumerable: true, + get: function get() { + return _UpdateZeroSSLTargetOutput["default"]; + } +})); +Object.defineProperty(exports, "UploadPKCS12", ({ + enumerable: true, + get: function get() { + return _UploadPKCS["default"]; + } +})); +Object.defineProperty(exports, "UploadRSA", ({ + enumerable: true, + get: function get() { + return _UploadRSA["default"]; + } +})); +Object.defineProperty(exports, "UsageEventSetting", ({ + enumerable: true, + get: function get() { + return _UsageEventSetting["default"]; + } +})); +Object.defineProperty(exports, "UsageReportSummary", ({ + enumerable: true, + get: function get() { + return _UsageReportSummary["default"]; + } +})); +Object.defineProperty(exports, "UscCreate", ({ + enumerable: true, + get: function get() { + return _UscCreate["default"]; + } +})); +Object.defineProperty(exports, "UscCreateSecretOutput", ({ + enumerable: true, + get: function get() { + return _UscCreateSecretOutput["default"]; + } +})); +Object.defineProperty(exports, "UscDelete", ({ + enumerable: true, + get: function get() { + return _UscDelete["default"]; + } +})); +Object.defineProperty(exports, "UscDeleteSecretOutput", ({ + enumerable: true, + get: function get() { + return _UscDeleteSecretOutput["default"]; + } +})); +Object.defineProperty(exports, "UscGet", ({ + enumerable: true, + get: function get() { + return _UscGet["default"]; + } +})); +Object.defineProperty(exports, "UscGetSecretOutput", ({ + enumerable: true, + get: function get() { + return _UscGetSecretOutput["default"]; + } +})); +Object.defineProperty(exports, "UscList", ({ + enumerable: true, + get: function get() { + return _UscList["default"]; + } +})); +Object.defineProperty(exports, "UscListSecretsOutput", ({ + enumerable: true, + get: function get() { + return _UscListSecretsOutput["default"]; + } +})); +Object.defineProperty(exports, "UscUpdate", ({ + enumerable: true, + get: function get() { + return _UscUpdate["default"]; + } +})); +Object.defineProperty(exports, "UscUpdateSecretOutput", ({ + enumerable: true, + get: function get() { + return _UscUpdateSecretOutput["default"]; + } +})); +Object.defineProperty(exports, "ValidateToken", ({ + enumerable: true, + get: function get() { + return _ValidateToken["default"]; + } +})); +Object.defineProperty(exports, "ValidateTokenOutput", ({ + enumerable: true, + get: function get() { + return _ValidateTokenOutput["default"]; + } +})); +Object.defineProperty(exports, "VaultlessTokenizerInfo", ({ + enumerable: true, + get: function get() { + return _VaultlessTokenizerInfo["default"]; + } +})); +Object.defineProperty(exports, "VenafiTargetDetails", ({ + enumerable: true, + get: function get() { + return _VenafiTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "VerifyDataWithClassicKey", ({ + enumerable: true, + get: function get() { + return _VerifyDataWithClassicKey["default"]; + } +})); +Object.defineProperty(exports, "VerifyEcDsa", ({ + enumerable: true, + get: function get() { + return _VerifyEcDsa["default"]; + } +})); +Object.defineProperty(exports, "VerifyGPG", ({ + enumerable: true, + get: function get() { + return _VerifyGPG["default"]; + } +})); +Object.defineProperty(exports, "VerifyJWTOutput", ({ + enumerable: true, + get: function get() { + return _VerifyJWTOutput["default"]; + } +})); +Object.defineProperty(exports, "VerifyJWTWithClassicKey", ({ + enumerable: true, + get: function get() { + return _VerifyJWTWithClassicKey["default"]; + } +})); +Object.defineProperty(exports, "VerifyPKCS1", ({ + enumerable: true, + get: function get() { + return _VerifyPKCS["default"]; + } +})); +Object.defineProperty(exports, "VerifyPKICertOutput", ({ + enumerable: true, + get: function get() { + return _VerifyPKICertOutput["default"]; + } +})); +Object.defineProperty(exports, "VerifyPKICertWithClassicKey", ({ + enumerable: true, + get: function get() { + return _VerifyPKICertWithClassicKey["default"]; + } +})); +Object.defineProperty(exports, "VerifyRsaSsaPss", ({ + enumerable: true, + get: function get() { + return _VerifyRsaSsaPss["default"]; + } +})); +Object.defineProperty(exports, "WebHookNotiForwarderPublicDetails", ({ + enumerable: true, + get: function get() { + return _WebHookNotiForwarderPublicDetails["default"]; + } +})); +Object.defineProperty(exports, "WebTargetDetails", ({ + enumerable: true, + get: function get() { + return _WebTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "WindowsService", ({ + enumerable: true, + get: function get() { + return _WindowsService["default"]; + } +})); +Object.defineProperty(exports, "WindowsServiceAttributes", ({ + enumerable: true, + get: function get() { + return _WindowsServiceAttributes["default"]; + } +})); +Object.defineProperty(exports, "WindowsTargetDetails", ({ + enumerable: true, + get: function get() { + return _WindowsTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "ZeroSSLTargetDetails", ({ + enumerable: true, + get: function get() { + return _ZeroSSLTargetDetails["default"]; + } +})); +Object.defineProperty(exports, "V2Api", ({ + enumerable: true, + get: function get() { + return _V2Api["default"]; + } +})); + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _APIKeyAccessRules = _interopRequireDefault(__nccwpck_require__(84834)); + +var _AWSIAMAccessRules = _interopRequireDefault(__nccwpck_require__(74237)); + +var _AWSPayload = _interopRequireDefault(__nccwpck_require__(47437)); + +var _AWSSecretsMigration = _interopRequireDefault(__nccwpck_require__(10380)); + +var _AWSTargetDetails = _interopRequireDefault(__nccwpck_require__(4398)); + +var _AccessOrGroupPermissionAssignment = _interopRequireDefault(__nccwpck_require__(44466)); + +var _AccessPermissionAssignment = _interopRequireDefault(__nccwpck_require__(95036)); + +var _AccountGeneralSettings = _interopRequireDefault(__nccwpck_require__(85700)); + +var _AccountObjectVersionSettingsOutput = _interopRequireDefault(__nccwpck_require__(57060)); + +var _ActiveDirectoryMigration = _interopRequireDefault(__nccwpck_require__(46703)); + +var _ActiveDirectoryPayload = _interopRequireDefault(__nccwpck_require__(941)); + +var _AddGatewayAllowedAccessId = _interopRequireDefault(__nccwpck_require__(51400)); + +var _AdminsConfigPart = _interopRequireDefault(__nccwpck_require__(32299)); + +var _AkeylessGatewayConfig = _interopRequireDefault(__nccwpck_require__(45995)); + +var _AllAnalyticsData = _interopRequireDefault(__nccwpck_require__(80541)); + +var _AllowedAccess = _interopRequireDefault(__nccwpck_require__(61540)); + +var _AllowedAccessOld = _interopRequireDefault(__nccwpck_require__(50727)); + +var _ArtifactoryTargetDetails = _interopRequireDefault(__nccwpck_require__(99747)); + +var _AssocRoleAuthMethod = _interopRequireDefault(__nccwpck_require__(17378)); + +var _AssocTargetItem = _interopRequireDefault(__nccwpck_require__(68883)); + +var _AttributeTypeAndValue = _interopRequireDefault(__nccwpck_require__(90188)); + +var _Auth = _interopRequireDefault(__nccwpck_require__(51330)); + +var _AuthMethod = _interopRequireDefault(__nccwpck_require__(52187)); + +var _AuthMethodAccessInfo = _interopRequireDefault(__nccwpck_require__(27225)); + +var _AuthMethodRoleAssociation = _interopRequireDefault(__nccwpck_require__(39304)); + +var _AuthOutput = _interopRequireDefault(__nccwpck_require__(68871)); + +var _AwsS3LogForwardingConfig = _interopRequireDefault(__nccwpck_require__(20090)); + +var _AzureADAccessRules = _interopRequireDefault(__nccwpck_require__(20467)); + +var _AzureKeyVaultMigration = _interopRequireDefault(__nccwpck_require__(15410)); + +var _AzureLogAnalyticsForwardingConfig = _interopRequireDefault(__nccwpck_require__(20430)); + +var _AzurePayload = _interopRequireDefault(__nccwpck_require__(85035)); + +var _AzureTargetDetails = _interopRequireDefault(__nccwpck_require__(58540)); + +var _BastionListEntry = _interopRequireDefault(__nccwpck_require__(62548)); + +var _BastionsList = _interopRequireDefault(__nccwpck_require__(34873)); + +var _CFConfigPart = _interopRequireDefault(__nccwpck_require__(6102)); + +var _CacheConfigPart = _interopRequireDefault(__nccwpck_require__(31951)); + +var _CertAccessRules = _interopRequireDefault(__nccwpck_require__(38173)); + +var _CertificateAnalyticAggregation = _interopRequireDefault(__nccwpck_require__(5346)); + +var _CertificateChainInfo = _interopRequireDefault(__nccwpck_require__(60084)); + +var _CertificateExpirationEvent = _interopRequireDefault(__nccwpck_require__(61726)); + +var _CertificateInfo = _interopRequireDefault(__nccwpck_require__(25201)); + +var _CertificateIssueInfo = _interopRequireDefault(__nccwpck_require__(72182)); + +var _CertificateTemplateInfo = _interopRequireDefault(__nccwpck_require__(89755)); + +var _CertificateVersionInfo = _interopRequireDefault(__nccwpck_require__(67405)); + +var _CfInfo = _interopRequireDefault(__nccwpck_require__(31185)); + +var _ChefTargetDetails = _interopRequireDefault(__nccwpck_require__(29095)); + +var _ClassicKeyDetailsInfo = _interopRequireDefault(__nccwpck_require__(49881)); + +var _ClassicKeyStatusInfo = _interopRequireDefault(__nccwpck_require__(6277)); + +var _ClassicKeyTargetInfo = _interopRequireDefault(__nccwpck_require__(41418)); + +var _ClientData = _interopRequireDefault(__nccwpck_require__(49671)); + +var _ClientUsageInfo = _interopRequireDefault(__nccwpck_require__(95328)); + +var _ClientsUsageReport = _interopRequireDefault(__nccwpck_require__(6313)); + +var _ConfigChange = _interopRequireDefault(__nccwpck_require__(47166)); + +var _ConfigHash = _interopRequireDefault(__nccwpck_require__(95122)); + +var _Configure = _interopRequireDefault(__nccwpck_require__(2610)); + +var _ConfigureOutput = _interopRequireDefault(__nccwpck_require__(6103)); + +var _Connect = _interopRequireDefault(__nccwpck_require__(92264)); + +var _CreateAWSTarget = _interopRequireDefault(__nccwpck_require__(69350)); + +var _CreateAWSTargetOutput = _interopRequireDefault(__nccwpck_require__(30851)); + +var _CreateArtifactoryTarget = _interopRequireDefault(__nccwpck_require__(87961)); + +var _CreateArtifactoryTargetOutput = _interopRequireDefault(__nccwpck_require__(85020)); + +var _CreateAuthMethod = _interopRequireDefault(__nccwpck_require__(97067)); + +var _CreateAuthMethodAWSIAM = _interopRequireDefault(__nccwpck_require__(39317)); + +var _CreateAuthMethodAWSIAMOutput = _interopRequireDefault(__nccwpck_require__(29184)); + +var _CreateAuthMethodAzureAD = _interopRequireDefault(__nccwpck_require__(47553)); + +var _CreateAuthMethodAzureADOutput = _interopRequireDefault(__nccwpck_require__(40820)); + +var _CreateAuthMethodCert = _interopRequireDefault(__nccwpck_require__(9265)); + +var _CreateAuthMethodCertOutput = _interopRequireDefault(__nccwpck_require__(64228)); + +var _CreateAuthMethodEmail = _interopRequireDefault(__nccwpck_require__(42003)); + +var _CreateAuthMethodEmailOutput = _interopRequireDefault(__nccwpck_require__(20898)); + +var _CreateAuthMethodGCP = _interopRequireDefault(__nccwpck_require__(26285)); + +var _CreateAuthMethodGCPOutput = _interopRequireDefault(__nccwpck_require__(62664)); + +var _CreateAuthMethodHuawei = _interopRequireDefault(__nccwpck_require__(96274)); + +var _CreateAuthMethodHuaweiOutput = _interopRequireDefault(__nccwpck_require__(90359)); + +var _CreateAuthMethodK8S = _interopRequireDefault(__nccwpck_require__(39443)); + +var _CreateAuthMethodK8SOutput = _interopRequireDefault(__nccwpck_require__(7586)); + +var _CreateAuthMethodLDAP = _interopRequireDefault(__nccwpck_require__(10158)); + +var _CreateAuthMethodLDAPOutput = _interopRequireDefault(__nccwpck_require__(85019)); + +var _CreateAuthMethodOAuth = _interopRequireDefault(__nccwpck_require__(46424)); + +var _CreateAuthMethodOAuth2Output = _interopRequireDefault(__nccwpck_require__(60689)); + +var _CreateAuthMethodOCI = _interopRequireDefault(__nccwpck_require__(95038)); + +var _CreateAuthMethodOCIOutput = _interopRequireDefault(__nccwpck_require__(98027)); + +var _CreateAuthMethodOIDC = _interopRequireDefault(__nccwpck_require__(94918)); + +var _CreateAuthMethodOIDCOutput = _interopRequireDefault(__nccwpck_require__(56259)); + +var _CreateAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(55338)); + +var _CreateAuthMethodSAML = _interopRequireDefault(__nccwpck_require__(33710)); + +var _CreateAuthMethodSAMLOutput = _interopRequireDefault(__nccwpck_require__(41307)); + +var _CreateAuthMethodUniversalIdentity = _interopRequireDefault(__nccwpck_require__(73904)); + +var _CreateAuthMethodUniversalIdentityOutput = _interopRequireDefault(__nccwpck_require__(33625)); + +var _CreateAzureTarget = _interopRequireDefault(__nccwpck_require__(46492)); + +var _CreateAzureTargetOutput = _interopRequireDefault(__nccwpck_require__(67837)); + +var _CreateCertificate = _interopRequireDefault(__nccwpck_require__(54713)); + +var _CreateCertificateOutput = _interopRequireDefault(__nccwpck_require__(9916)); + +var _CreateClassicKey = _interopRequireDefault(__nccwpck_require__(85575)); + +var _CreateClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(87166)); + +var _CreateDBTarget = _interopRequireDefault(__nccwpck_require__(84315)); + +var _CreateDBTargetOutput = _interopRequireDefault(__nccwpck_require__(90170)); + +var _CreateDFCKey = _interopRequireDefault(__nccwpck_require__(19450)); + +var _CreateDFCKeyOutput = _interopRequireDefault(__nccwpck_require__(71247)); + +var _CreateDockerhubTarget = _interopRequireDefault(__nccwpck_require__(17396)); + +var _CreateDockerhubTargetOutput = _interopRequireDefault(__nccwpck_require__(19845)); + +var _CreateDynamicSecret = _interopRequireDefault(__nccwpck_require__(78607)); + +var _CreateEKSTarget = _interopRequireDefault(__nccwpck_require__(25086)); + +var _CreateEKSTargetOutput = _interopRequireDefault(__nccwpck_require__(67307)); + +var _CreateESM = _interopRequireDefault(__nccwpck_require__(87617)); + +var _CreateESMOutput = _interopRequireDefault(__nccwpck_require__(64564)); + +var _CreateEventForwarder = _interopRequireDefault(__nccwpck_require__(55910)); + +var _CreateEventForwarderOutput = _interopRequireDefault(__nccwpck_require__(91555)); + +var _CreateGKETarget = _interopRequireDefault(__nccwpck_require__(3302)); + +var _CreateGKETargetOutput = _interopRequireDefault(__nccwpck_require__(15235)); + +var _CreateGcpTarget = _interopRequireDefault(__nccwpck_require__(38705)); + +var _CreateGcpTargetOutput = _interopRequireDefault(__nccwpck_require__(39108)); + +var _CreateGithubTarget = _interopRequireDefault(__nccwpck_require__(28702)); + +var _CreateGithubTargetOutput = _interopRequireDefault(__nccwpck_require__(6731)); + +var _CreateGlobalSignAtlasTarget = _interopRequireDefault(__nccwpck_require__(45966)); + +var _CreateGlobalSignAtlasTargetOutput = _interopRequireDefault(__nccwpck_require__(315)); + +var _CreateGlobalSignTarget = _interopRequireDefault(__nccwpck_require__(63799)); + +var _CreateGlobalSignTargetOutput = _interopRequireDefault(__nccwpck_require__(41550)); + +var _CreateGodaddyTarget = _interopRequireDefault(__nccwpck_require__(71167)); + +var _CreateGodaddyTargetOutput = _interopRequireDefault(__nccwpck_require__(83238)); + +var _CreateGroup = _interopRequireDefault(__nccwpck_require__(37089)); + +var _CreateGroupOutput = _interopRequireDefault(__nccwpck_require__(96628)); + +var _CreateKey = _interopRequireDefault(__nccwpck_require__(59569)); + +var _CreateKeyOutput = _interopRequireDefault(__nccwpck_require__(92036)); + +var _CreateLdapTarget = _interopRequireDefault(__nccwpck_require__(12279)); + +var _CreateLdapTargetOutput = _interopRequireDefault(__nccwpck_require__(24309)); + +var _CreateLinkedTarget = _interopRequireDefault(__nccwpck_require__(91736)); + +var _CreateLinkedTargetOutput = _interopRequireDefault(__nccwpck_require__(45297)); + +var _CreateNativeK8STarget = _interopRequireDefault(__nccwpck_require__(36798)); + +var _CreateNativeK8STargetOutput = _interopRequireDefault(__nccwpck_require__(15947)); + +var _CreateOidcApp = _interopRequireDefault(__nccwpck_require__(18538)); + +var _CreateOidcAppOutput = _interopRequireDefault(__nccwpck_require__(41695)); + +var _CreatePKICertIssuer = _interopRequireDefault(__nccwpck_require__(10515)); + +var _CreatePKICertIssuerOutput = _interopRequireDefault(__nccwpck_require__(70178)); + +var _CreatePingTarget = _interopRequireDefault(__nccwpck_require__(17729)); + +var _CreatePingTargetOutput = _interopRequireDefault(__nccwpck_require__(83860)); + +var _CreateRabbitMQTarget = _interopRequireDefault(__nccwpck_require__(28099)); + +var _CreateRabbitMQTargetOutput = _interopRequireDefault(__nccwpck_require__(64274)); + +var _CreateRole = _interopRequireDefault(__nccwpck_require__(36904)); + +var _CreateRoleAuthMethodAssocOutput = _interopRequireDefault(__nccwpck_require__(41569)); + +var _CreateRotatedSecret = _interopRequireDefault(__nccwpck_require__(25203)); + +var _CreateRotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(89634)); + +var _CreateSSHCertIssuer = _interopRequireDefault(__nccwpck_require__(1985)); + +var _CreateSSHCertIssuerOutput = _interopRequireDefault(__nccwpck_require__(84148)); + +var _CreateSSHTarget = _interopRequireDefault(__nccwpck_require__(70101)); + +var _CreateSSHTargetOutput = _interopRequireDefault(__nccwpck_require__(98560)); + +var _CreateSalesforceTarget = _interopRequireDefault(__nccwpck_require__(89382)); + +var _CreateSalesforceTargetOutput = _interopRequireDefault(__nccwpck_require__(63395)); + +var _CreateSecret = _interopRequireDefault(__nccwpck_require__(48156)); + +var _CreateSecretOutput = _interopRequireDefault(__nccwpck_require__(2397)); + +var _CreateTargetItemAssocOutput = _interopRequireDefault(__nccwpck_require__(24022)); + +var _CreateTokenizer = _interopRequireDefault(__nccwpck_require__(85747)); + +var _CreateTokenizerOutput = _interopRequireDefault(__nccwpck_require__(77602)); + +var _CreateUSC = _interopRequireDefault(__nccwpck_require__(59331)); + +var _CreateUSCOutput = _interopRequireDefault(__nccwpck_require__(7634)); + +var _CreateUserEvent = _interopRequireDefault(__nccwpck_require__(56891)); + +var _CreateUserEventOutput = _interopRequireDefault(__nccwpck_require__(90618)); + +var _CreateWebTarget = _interopRequireDefault(__nccwpck_require__(95805)); + +var _CreateWebTargetOutput = _interopRequireDefault(__nccwpck_require__(38200)); + +var _CreateWindowsTarget = _interopRequireDefault(__nccwpck_require__(61054)); + +var _CreateWindowsTargetOutput = _interopRequireDefault(__nccwpck_require__(76267)); + +var _CreateZeroSSLTarget = _interopRequireDefault(__nccwpck_require__(84899)); + +var _CreateZeroSSLTargetOutput = _interopRequireDefault(__nccwpck_require__(43026)); + +var _CustomTargetDetails = _interopRequireDefault(__nccwpck_require__(70142)); + +var _CustomerFragmentConfig = _interopRequireDefault(__nccwpck_require__(77034)); + +var _CustomerFragmentsConfigJson = _interopRequireDefault(__nccwpck_require__(63071)); + +var _CustomerFullAddress = _interopRequireDefault(__nccwpck_require__(37009)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +var _DataProtectionSection = _interopRequireDefault(__nccwpck_require__(2116)); + +var _DatadogForwardingConfig = _interopRequireDefault(__nccwpck_require__(26413)); + +var _DbTargetDetails = _interopRequireDefault(__nccwpck_require__(33853)); + +var _Decrypt = _interopRequireDefault(__nccwpck_require__(25823)); + +var _DecryptFile = _interopRequireDefault(__nccwpck_require__(88873)); + +var _DecryptFileOutput = _interopRequireDefault(__nccwpck_require__(35180)); + +var _DecryptGPG = _interopRequireDefault(__nccwpck_require__(61391)); + +var _DecryptGPGOutput = _interopRequireDefault(__nccwpck_require__(64758)); + +var _DecryptOutput = _interopRequireDefault(__nccwpck_require__(88134)); + +var _DecryptPKCS = _interopRequireDefault(__nccwpck_require__(61013)); + +var _DecryptPKCS1Output = _interopRequireDefault(__nccwpck_require__(88320)); + +var _DecryptWithClassicKey = _interopRequireDefault(__nccwpck_require__(90932)); + +var _DecryptWithClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(48133)); + +var _DefaultConfigPart = _interopRequireDefault(__nccwpck_require__(12332)); + +var _DeleteAuthMethod = _interopRequireDefault(__nccwpck_require__(63388)); + +var _DeleteAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(85245)); + +var _DeleteAuthMethods = _interopRequireDefault(__nccwpck_require__(10611)); + +var _DeleteAuthMethodsOutput = _interopRequireDefault(__nccwpck_require__(76162)); + +var _DeleteEventForwarder = _interopRequireDefault(__nccwpck_require__(85877)); + +var _DeleteGatewayAllowedAccessId = _interopRequireDefault(__nccwpck_require__(36438)); + +var _DeleteGroup = _interopRequireDefault(__nccwpck_require__(79900)); + +var _DeleteGroupOutput = _interopRequireDefault(__nccwpck_require__(97885)); + +var _DeleteGwCluster = _interopRequireDefault(__nccwpck_require__(74979)); + +var _DeleteItem = _interopRequireDefault(__nccwpck_require__(55440)); + +var _DeleteItemOutput = _interopRequireDefault(__nccwpck_require__(44409)); + +var _DeleteItems = _interopRequireDefault(__nccwpck_require__(83663)); + +var _DeleteItemsOutput = _interopRequireDefault(__nccwpck_require__(79478)); + +var _DeleteRole = _interopRequireDefault(__nccwpck_require__(13059)); + +var _DeleteRoleAssociation = _interopRequireDefault(__nccwpck_require__(56192)); + +var _DeleteRoleRule = _interopRequireDefault(__nccwpck_require__(99117)); + +var _DeleteRoleRuleOutput = _interopRequireDefault(__nccwpck_require__(98120)); + +var _DeleteRoles = _interopRequireDefault(__nccwpck_require__(49222)); + +var _DeleteTarget = _interopRequireDefault(__nccwpck_require__(93094)); + +var _DeleteTargetAssociation = _interopRequireDefault(__nccwpck_require__(36747)); + +var _DeleteTargets = _interopRequireDefault(__nccwpck_require__(22509)); + +var _DeriveKey = _interopRequireDefault(__nccwpck_require__(69284)); + +var _DeriveKeyOutput = _interopRequireDefault(__nccwpck_require__(4117)); + +var _DescribeAssoc = _interopRequireDefault(__nccwpck_require__(80258)); + +var _DescribeItem = _interopRequireDefault(__nccwpck_require__(96290)); + +var _DescribePermissions = _interopRequireDefault(__nccwpck_require__(5013)); + +var _DescribePermissionsOutput = _interopRequireDefault(__nccwpck_require__(88032)); + +var _DescribeSubClaims = _interopRequireDefault(__nccwpck_require__(57046)); + +var _DescribeSubClaimsOutput = _interopRequireDefault(__nccwpck_require__(15891)); + +var _Detokenize = _interopRequireDefault(__nccwpck_require__(97122)); + +var _DetokenizeOutput = _interopRequireDefault(__nccwpck_require__(84807)); + +var _DockerhubTargetDetails = _interopRequireDefault(__nccwpck_require__(57844)); + +var _DynamicSecretCreateArtifactory = _interopRequireDefault(__nccwpck_require__(42057)); + +var _DynamicSecretCreateAws = _interopRequireDefault(__nccwpck_require__(77442)); + +var _DynamicSecretCreateAzure = _interopRequireDefault(__nccwpck_require__(19784)); + +var _DynamicSecretCreateCassandra = _interopRequireDefault(__nccwpck_require__(20425)); + +var _DynamicSecretCreateChef = _interopRequireDefault(__nccwpck_require__(16663)); + +var _DynamicSecretCreateCustom = _interopRequireDefault(__nccwpck_require__(28052)); + +var _DynamicSecretCreateDockerhub = _interopRequireDefault(__nccwpck_require__(20476)); + +var _DynamicSecretCreateEks = _interopRequireDefault(__nccwpck_require__(930)); + +var _DynamicSecretCreateGcp = _interopRequireDefault(__nccwpck_require__(49861)); + +var _DynamicSecretCreateGithub = _interopRequireDefault(__nccwpck_require__(81984)); + +var _DynamicSecretCreateGke = _interopRequireDefault(__nccwpck_require__(86274)); + +var _DynamicSecretCreateHanaDb = _interopRequireDefault(__nccwpck_require__(57451)); + +var _DynamicSecretCreateK8s = _interopRequireDefault(__nccwpck_require__(17387)); + +var _DynamicSecretCreateLdap = _interopRequireDefault(__nccwpck_require__(85446)); + +var _DynamicSecretCreateMongoDb = _interopRequireDefault(__nccwpck_require__(34721)); + +var _DynamicSecretCreateMsSql = _interopRequireDefault(__nccwpck_require__(8267)); + +var _DynamicSecretCreateMySql = _interopRequireDefault(__nccwpck_require__(9317)); + +var _DynamicSecretCreateOracleDb = _interopRequireDefault(__nccwpck_require__(62299)); + +var _DynamicSecretCreateOutput = _interopRequireDefault(__nccwpck_require__(32898)); + +var _DynamicSecretCreatePing = _interopRequireDefault(__nccwpck_require__(88331)); + +var _DynamicSecretCreatePostgreSql = _interopRequireDefault(__nccwpck_require__(50577)); + +var _DynamicSecretCreateRabbitMq = _interopRequireDefault(__nccwpck_require__(92377)); + +var _DynamicSecretCreateRdp = _interopRequireDefault(__nccwpck_require__(43849)); + +var _DynamicSecretCreateRedis = _interopRequireDefault(__nccwpck_require__(33092)); + +var _DynamicSecretCreateRedshift = _interopRequireDefault(__nccwpck_require__(87426)); + +var _DynamicSecretCreateSnowflake = _interopRequireDefault(__nccwpck_require__(61111)); + +var _DynamicSecretCreateVenafi = _interopRequireDefault(__nccwpck_require__(49390)); + +var _DynamicSecretDelete = _interopRequireDefault(__nccwpck_require__(73872)); + +var _DynamicSecretDeleteOutput = _interopRequireDefault(__nccwpck_require__(92057)); + +var _DynamicSecretGet = _interopRequireDefault(__nccwpck_require__(95219)); + +var _DynamicSecretGetValue = _interopRequireDefault(__nccwpck_require__(42958)); + +var _DynamicSecretList = _interopRequireDefault(__nccwpck_require__(6343)); + +var _DynamicSecretMaxTtl = _interopRequireDefault(__nccwpck_require__(31553)); + +var _DynamicSecretProducerInfo = _interopRequireDefault(__nccwpck_require__(98109)); + +var _DynamicSecretTmpCredsDelete = _interopRequireDefault(__nccwpck_require__(41262)); + +var _DynamicSecretTmpCredsGet = _interopRequireDefault(__nccwpck_require__(68697)); + +var _DynamicSecretTmpCredsUpdate = _interopRequireDefault(__nccwpck_require__(85584)); + +var _DynamicSecretUpdateArtifactory = _interopRequireDefault(__nccwpck_require__(87534)); + +var _DynamicSecretUpdateAws = _interopRequireDefault(__nccwpck_require__(79205)); + +var _DynamicSecretUpdateAzure = _interopRequireDefault(__nccwpck_require__(43971)); + +var _DynamicSecretUpdateCassandra = _interopRequireDefault(__nccwpck_require__(49178)); + +var _DynamicSecretUpdateChef = _interopRequireDefault(__nccwpck_require__(58970)); + +var _DynamicSecretUpdateCustom = _interopRequireDefault(__nccwpck_require__(18573)); + +var _DynamicSecretUpdateDockerhub = _interopRequireDefault(__nccwpck_require__(20303)); + +var _DynamicSecretUpdateEks = _interopRequireDefault(__nccwpck_require__(41477)); + +var _DynamicSecretUpdateGcp = _interopRequireDefault(__nccwpck_require__(66754)); + +var _DynamicSecretUpdateGithub = _interopRequireDefault(__nccwpck_require__(22985)); + +var _DynamicSecretUpdateGke = _interopRequireDefault(__nccwpck_require__(30389)); + +var _DynamicSecretUpdateHanaDb = _interopRequireDefault(__nccwpck_require__(3270)); + +var _DynamicSecretUpdateK8s = _interopRequireDefault(__nccwpck_require__(18976)); + +var _DynamicSecretUpdateLdap = _interopRequireDefault(__nccwpck_require__(72708)); + +var _DynamicSecretUpdateMongoDb = _interopRequireDefault(__nccwpck_require__(77150)); + +var _DynamicSecretUpdateMsSql = _interopRequireDefault(__nccwpck_require__(67604)); + +var _DynamicSecretUpdateMySql = _interopRequireDefault(__nccwpck_require__(12690)); + +var _DynamicSecretUpdateOracleDb = _interopRequireDefault(__nccwpck_require__(39678)); + +var _DynamicSecretUpdateOutput = _interopRequireDefault(__nccwpck_require__(56847)); + +var _DynamicSecretUpdatePing = _interopRequireDefault(__nccwpck_require__(16662)); + +var _DynamicSecretUpdatePostgreSql = _interopRequireDefault(__nccwpck_require__(39708)); + +var _DynamicSecretUpdateRabbitMq = _interopRequireDefault(__nccwpck_require__(36628)); + +var _DynamicSecretUpdateRdp = _interopRequireDefault(__nccwpck_require__(25030)); + +var _DynamicSecretUpdateRedis = _interopRequireDefault(__nccwpck_require__(46287)); + +var _DynamicSecretUpdateRedshift = _interopRequireDefault(__nccwpck_require__(71099)); + +var _DynamicSecretUpdateSnowflake = _interopRequireDefault(__nccwpck_require__(51976)); + +var _DynamicSecretUpdateVenafi = _interopRequireDefault(__nccwpck_require__(17323)); + +var _EKSTargetDetails = _interopRequireDefault(__nccwpck_require__(18422)); + +var _ElasticsearchLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(15078)); + +var _EmailEntry = _interopRequireDefault(__nccwpck_require__(30864)); + +var _EmailPassAccessRules = _interopRequireDefault(__nccwpck_require__(42046)); + +var _EmailTokenizerInfo = _interopRequireDefault(__nccwpck_require__(41957)); + +var _Encrypt = _interopRequireDefault(__nccwpck_require__(24155)); + +var _EncryptFile = _interopRequireDefault(__nccwpck_require__(3949)); + +var _EncryptFileOutput = _interopRequireDefault(__nccwpck_require__(87112)); + +var _EncryptGPG = _interopRequireDefault(__nccwpck_require__(81299)); + +var _EncryptGPGOutput = _interopRequireDefault(__nccwpck_require__(71906)); + +var _EncryptOutput = _interopRequireDefault(__nccwpck_require__(74426)); + +var _EncryptWithClassicKey = _interopRequireDefault(__nccwpck_require__(80064)); + +var _EncryptWithClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(29257)); + +var _EsmCreate = _interopRequireDefault(__nccwpck_require__(69101)); + +var _EsmCreateSecretOutput = _interopRequireDefault(__nccwpck_require__(37808)); + +var _EsmDelete = _interopRequireDefault(__nccwpck_require__(26602)); + +var _EsmDeleteSecretOutput = _interopRequireDefault(__nccwpck_require__(99707)); + +var _EsmGet = _interopRequireDefault(__nccwpck_require__(1541)); + +var _EsmGetSecretOutput = _interopRequireDefault(__nccwpck_require__(13496)); + +var _EsmList = _interopRequireDefault(__nccwpck_require__(59317)); + +var _EsmListSecretsOutput = _interopRequireDefault(__nccwpck_require__(63233)); + +var _EsmUpdate = _interopRequireDefault(__nccwpck_require__(29564)); + +var _EsmUpdateSecretOutput = _interopRequireDefault(__nccwpck_require__(45309)); + +var _EventAction = _interopRequireDefault(__nccwpck_require__(73404)); + +var _EventForwarderCreateEmail = _interopRequireDefault(__nccwpck_require__(39252)); + +var _EventForwarderCreateServiceNow = _interopRequireDefault(__nccwpck_require__(66787)); + +var _EventForwarderCreateSlack = _interopRequireDefault(__nccwpck_require__(60868)); + +var _EventForwarderCreateUpdateOutput = _interopRequireDefault(__nccwpck_require__(80474)); + +var _EventForwarderCreateWebhook = _interopRequireDefault(__nccwpck_require__(15929)); + +var _EventForwarderDelete = _interopRequireDefault(__nccwpck_require__(22077)); + +var _EventForwarderDeleteOutput = _interopRequireDefault(__nccwpck_require__(54520)); + +var _EventForwarderGet = _interopRequireDefault(__nccwpck_require__(7172)); + +var _EventForwarderGetOutput = _interopRequireDefault(__nccwpck_require__(85749)); + +var _EventForwarderUpdateEmail = _interopRequireDefault(__nccwpck_require__(18163)); + +var _EventForwarderUpdateServiceNow = _interopRequireDefault(__nccwpck_require__(32026)); + +var _EventForwarderUpdateSlack = _interopRequireDefault(__nccwpck_require__(79995)); + +var _EventForwarderUpdateWebhook = _interopRequireDefault(__nccwpck_require__(46086)); + +var _ExportClassicKey = _interopRequireDefault(__nccwpck_require__(91005)); + +var _ExportClassicKeyOutput = _interopRequireDefault(__nccwpck_require__(52248)); + +var _Extension = _interopRequireDefault(__nccwpck_require__(30079)); + +var _ExternalKMSKeyId = _interopRequireDefault(__nccwpck_require__(80238)); + +var _GCPAccessRules = _interopRequireDefault(__nccwpck_require__(94515)); + +var _GCPPayload = _interopRequireDefault(__nccwpck_require__(15080)); + +var _GCPSecretsMigration = _interopRequireDefault(__nccwpck_require__(40859)); + +var _GKETargetDetails = _interopRequireDefault(__nccwpck_require__(13006)); + +var _GatewayBasicInfo = _interopRequireDefault(__nccwpck_require__(27208)); + +var _GatewayCreateAllowedAccess = _interopRequireDefault(__nccwpck_require__(17300)); + +var _GatewayCreateK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(30862)); + +var _GatewayCreateK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(38267)); + +var _GatewayCreateMigration = _interopRequireDefault(__nccwpck_require__(23658)); + +var _GatewayCreateProducerArtifactory = _interopRequireDefault(__nccwpck_require__(41510)); + +var _GatewayCreateProducerArtifactoryOutput = _interopRequireDefault(__nccwpck_require__(55523)); + +var _GatewayCreateProducerAws = _interopRequireDefault(__nccwpck_require__(45677)); + +var _GatewayCreateProducerAwsOutput = _interopRequireDefault(__nccwpck_require__(98248)); + +var _GatewayCreateProducerAzure = _interopRequireDefault(__nccwpck_require__(84283)); + +var _GatewayCreateProducerAzureOutput = _interopRequireDefault(__nccwpck_require__(35770)); + +var _GatewayCreateProducerCassandra = _interopRequireDefault(__nccwpck_require__(53266)); + +var _GatewayCreateProducerCassandraOutput = _interopRequireDefault(__nccwpck_require__(43031)); + +var _GatewayCreateProducerChef = _interopRequireDefault(__nccwpck_require__(81410)); + +var _GatewayCreateProducerChefOutput = _interopRequireDefault(__nccwpck_require__(74951)); + +var _GatewayCreateProducerCustom = _interopRequireDefault(__nccwpck_require__(91173)); + +var _GatewayCreateProducerCustomOutput = _interopRequireDefault(__nccwpck_require__(24592)); + +var _GatewayCreateProducerDockerhub = _interopRequireDefault(__nccwpck_require__(3207)); + +var _GatewayCreateProducerDockerhubOutput = _interopRequireDefault(__nccwpck_require__(89470)); + +var _GatewayCreateProducerEks = _interopRequireDefault(__nccwpck_require__(82045)); + +var _GatewayCreateProducerEksOutput = _interopRequireDefault(__nccwpck_require__(93688)); + +var _GatewayCreateProducerGcp = _interopRequireDefault(__nccwpck_require__(19050)); + +var _GatewayCreateProducerGcpOutput = _interopRequireDefault(__nccwpck_require__(4767)); + +var _GatewayCreateProducerGithub = _interopRequireDefault(__nccwpck_require__(15521)); + +var _GatewayCreateProducerGithubOutput = _interopRequireDefault(__nccwpck_require__(67988)); + +var _GatewayCreateProducerGke = _interopRequireDefault(__nccwpck_require__(43341)); + +var _GatewayCreateProducerGkeOutput = _interopRequireDefault(__nccwpck_require__(12136)); + +var _GatewayCreateProducerHanaDb = _interopRequireDefault(__nccwpck_require__(77662)); + +var _GatewayCreateProducerHanaDbOutput = _interopRequireDefault(__nccwpck_require__(69707)); + +var _GatewayCreateProducerLdap = _interopRequireDefault(__nccwpck_require__(74815)); + +var _GatewayCreateProducerLdapOutput = _interopRequireDefault(__nccwpck_require__(53382)); + +var _GatewayCreateProducerMSSQL = _interopRequireDefault(__nccwpck_require__(91036)); + +var _GatewayCreateProducerMSSQLOutput = _interopRequireDefault(__nccwpck_require__(91709)); + +var _GatewayCreateProducerMongo = _interopRequireDefault(__nccwpck_require__(84176)); + +var _GatewayCreateProducerMongoOutput = _interopRequireDefault(__nccwpck_require__(27257)); + +var _GatewayCreateProducerMySQL = _interopRequireDefault(__nccwpck_require__(20490)); + +var _GatewayCreateProducerMySQLOutput = _interopRequireDefault(__nccwpck_require__(37983)); + +var _GatewayCreateProducerNativeK8S = _interopRequireDefault(__nccwpck_require__(50589)); + +var _GatewayCreateProducerNativeK8SOutput = _interopRequireDefault(__nccwpck_require__(4408)); + +var _GatewayCreateProducerOracleDb = _interopRequireDefault(__nccwpck_require__(11382)); + +var _GatewayCreateProducerOracleDbOutput = _interopRequireDefault(__nccwpck_require__(92499)); + +var _GatewayCreateProducerPing = _interopRequireDefault(__nccwpck_require__(29262)); + +var _GatewayCreateProducerPingOutput = _interopRequireDefault(__nccwpck_require__(7579)); + +var _GatewayCreateProducerPostgreSQL = _interopRequireDefault(__nccwpck_require__(42452)); + +var _GatewayCreateProducerPostgreSQLOutput = _interopRequireDefault(__nccwpck_require__(84613)); + +var _GatewayCreateProducerRabbitMQ = _interopRequireDefault(__nccwpck_require__(57964)); + +var _GatewayCreateProducerRabbitMQOutput = _interopRequireDefault(__nccwpck_require__(57357)); + +var _GatewayCreateProducerRdp = _interopRequireDefault(__nccwpck_require__(40686)); + +var _GatewayCreateProducerRdpOutput = _interopRequireDefault(__nccwpck_require__(1915)); + +var _GatewayCreateProducerRedis = _interopRequireDefault(__nccwpck_require__(30759)); + +var _GatewayCreateProducerRedisOutput = _interopRequireDefault(__nccwpck_require__(69950)); + +var _GatewayCreateProducerRedshift = _interopRequireDefault(__nccwpck_require__(84307)); + +var _GatewayCreateProducerRedshiftOutput = _interopRequireDefault(__nccwpck_require__(51074)); + +var _GatewayCreateProducerSnowflake = _interopRequireDefault(__nccwpck_require__(59024)); + +var _GatewayCreateProducerSnowflakeOutput = _interopRequireDefault(__nccwpck_require__(35609)); + +var _GatewayCreateProducerVenafi = _interopRequireDefault(__nccwpck_require__(66051)); + +var _GatewayCreateProducerVenafiOutput = _interopRequireDefault(__nccwpck_require__(52274)); + +var _GatewayDeleteAllowedAccess = _interopRequireDefault(__nccwpck_require__(99401)); + +var _GatewayDeleteAllowedAccessOutput = _interopRequireDefault(__nccwpck_require__(98572)); + +var _GatewayDeleteK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(48163)); + +var _GatewayDeleteK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(3506)); + +var _GatewayDeleteMigration = _interopRequireDefault(__nccwpck_require__(92895)); + +var _GatewayDeleteProducer = _interopRequireDefault(__nccwpck_require__(24177)); + +var _GatewayDeleteProducerOutput = _interopRequireDefault(__nccwpck_require__(31236)); + +var _GatewayDownloadCustomerFragments = _interopRequireDefault(__nccwpck_require__(70355)); + +var _GatewayDownloadCustomerFragmentsOutput = _interopRequireDefault(__nccwpck_require__(62210)); + +var _GatewayGetAllowedAccess = _interopRequireDefault(__nccwpck_require__(99262)); + +var _GatewayGetConfig = _interopRequireDefault(__nccwpck_require__(16048)); + +var _GatewayGetK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(12748)); + +var _GatewayGetK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(5645)); + +var _GatewayGetLdapAuthConfig = _interopRequireDefault(__nccwpck_require__(3495)); + +var _GatewayGetLdapAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(79454)); + +var _GatewayGetMigration = _interopRequireDefault(__nccwpck_require__(41484)); + +var _GatewayGetProducer = _interopRequireDefault(__nccwpck_require__(51523)); + +var _GatewayGetTmpUsers = _interopRequireDefault(__nccwpck_require__(70701)); + +var _GatewayListMigration = _interopRequireDefault(__nccwpck_require__(2946)); + +var _GatewayListProducers = _interopRequireDefault(__nccwpck_require__(92425)); + +var _GatewayListRotatedSecrets = _interopRequireDefault(__nccwpck_require__(74718)); + +var _GatewayMessageQueueInfo = _interopRequireDefault(__nccwpck_require__(78626)); + +var _GatewayMigratePersonalItems = _interopRequireDefault(__nccwpck_require__(22791)); + +var _GatewayMigratePersonalItemsOutput = _interopRequireDefault(__nccwpck_require__(70462)); + +var _GatewayMigrationCreateOutput = _interopRequireDefault(__nccwpck_require__(19863)); + +var _GatewayMigrationDeleteOutput = _interopRequireDefault(__nccwpck_require__(16996)); + +var _GatewayMigrationGetOutput = _interopRequireDefault(__nccwpck_require__(90097)); + +var _GatewayMigrationListOutput = _interopRequireDefault(__nccwpck_require__(80859)); + +var _GatewayMigrationSyncOutput = _interopRequireDefault(__nccwpck_require__(10052)); + +var _GatewayMigrationUpdateOutput = _interopRequireDefault(__nccwpck_require__(90294)); + +var _GatewayRevokeTmpUsers = _interopRequireDefault(__nccwpck_require__(20353)); + +var _GatewayStartProducer = _interopRequireDefault(__nccwpck_require__(81196)); + +var _GatewayStartProducerOutput = _interopRequireDefault(__nccwpck_require__(66477)); + +var _GatewayStatusMigration = _interopRequireDefault(__nccwpck_require__(32708)); + +var _GatewayStopProducer = _interopRequireDefault(__nccwpck_require__(55242)); + +var _GatewayStopProducerOutput = _interopRequireDefault(__nccwpck_require__(74239)); + +var _GatewaySyncMigration = _interopRequireDefault(__nccwpck_require__(93147)); + +var _GatewayUpdateAllowedAccess = _interopRequireDefault(__nccwpck_require__(60395)); + +var _GatewayUpdateItem = _interopRequireDefault(__nccwpck_require__(88678)); + +var _GatewayUpdateItemOutput = _interopRequireDefault(__nccwpck_require__(11235)); + +var _GatewayUpdateK8SAuthConfig = _interopRequireDefault(__nccwpck_require__(88681)); + +var _GatewayUpdateK8SAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(74380)); + +var _GatewayUpdateLdapAuthConfig = _interopRequireDefault(__nccwpck_require__(36544)); + +var _GatewayUpdateLdapAuthConfigOutput = _interopRequireDefault(__nccwpck_require__(20489)); + +var _GatewayUpdateMigration = _interopRequireDefault(__nccwpck_require__(22313)); + +var _GatewayUpdateProducerArtifactory = _interopRequireDefault(__nccwpck_require__(72781)); + +var _GatewayUpdateProducerArtifactoryOutput = _interopRequireDefault(__nccwpck_require__(92424)); + +var _GatewayUpdateProducerAws = _interopRequireDefault(__nccwpck_require__(2334)); + +var _GatewayUpdateProducerAwsOutput = _interopRequireDefault(__nccwpck_require__(55019)); + +var _GatewayUpdateProducerAzure = _interopRequireDefault(__nccwpck_require__(97644)); + +var _GatewayUpdateProducerAzureOutput = _interopRequireDefault(__nccwpck_require__(97773)); + +var _GatewayUpdateProducerCassandra = _interopRequireDefault(__nccwpck_require__(82093)); + +var _GatewayUpdateProducerCassandraOutput = _interopRequireDefault(__nccwpck_require__(4328)); + +var _GatewayUpdateProducerChef = _interopRequireDefault(__nccwpck_require__(98899)); + +var _GatewayUpdateProducerChefOutput = _interopRequireDefault(__nccwpck_require__(85442)); + +var _GatewayUpdateProducerCustom = _interopRequireDefault(__nccwpck_require__(40320)); + +var _GatewayUpdateProducerCustomOutput = _interopRequireDefault(__nccwpck_require__(28777)); + +var _GatewayUpdateProducerDockerhub = _interopRequireDefault(__nccwpck_require__(63280)); + +var _GatewayUpdateProducerDockerhubOutput = _interopRequireDefault(__nccwpck_require__(14201)); + +var _GatewayUpdateProducerEks = _interopRequireDefault(__nccwpck_require__(32382)); + +var _GatewayUpdateProducerEksOutput = _interopRequireDefault(__nccwpck_require__(11115)); + +var _GatewayUpdateProducerGcp = _interopRequireDefault(__nccwpck_require__(20241)); + +var _GatewayUpdateProducerGcpOutput = _interopRequireDefault(__nccwpck_require__(75972)); + +var _GatewayUpdateProducerGithub = _interopRequireDefault(__nccwpck_require__(92212)); + +var _GatewayUpdateProducerGithubOutput = _interopRequireDefault(__nccwpck_require__(86213)); + +var _GatewayUpdateProducerGke = _interopRequireDefault(__nccwpck_require__(25062)); + +var _GatewayUpdateProducerGkeOutput = _interopRequireDefault(__nccwpck_require__(46467)); + +var _GatewayUpdateProducerHanaDb = _interopRequireDefault(__nccwpck_require__(88599)); + +var _GatewayUpdateProducerHanaDbOutput = _interopRequireDefault(__nccwpck_require__(44014)); + +var _GatewayUpdateProducerLdap = _interopRequireDefault(__nccwpck_require__(65026)); + +var _GatewayUpdateProducerLdapOutput = _interopRequireDefault(__nccwpck_require__(45863)); + +var _GatewayUpdateProducerMSSQL = _interopRequireDefault(__nccwpck_require__(43407)); + +var _GatewayUpdateProducerMSSQLOutput = _interopRequireDefault(__nccwpck_require__(8726)); + +var _GatewayUpdateProducerMongo = _interopRequireDefault(__nccwpck_require__(24975)); + +var _GatewayUpdateProducerMongoOutput = _interopRequireDefault(__nccwpck_require__(38390)); + +var _GatewayUpdateProducerMySQL = _interopRequireDefault(__nccwpck_require__(50937)); + +var _GatewayUpdateProducerMySQLOutput = _interopRequireDefault(__nccwpck_require__(7548)); + +var _GatewayUpdateProducerNativeK8S = _interopRequireDefault(__nccwpck_require__(47170)); + +var _GatewayUpdateProducerNativeK8SOutput = _interopRequireDefault(__nccwpck_require__(80839)); + +var _GatewayUpdateProducerOracleDb = _interopRequireDefault(__nccwpck_require__(9399)); + +var _GatewayUpdateProducerOracleDbOutput = _interopRequireDefault(__nccwpck_require__(97550)); + +var _GatewayUpdateProducerPing = _interopRequireDefault(__nccwpck_require__(2311)); + +var _GatewayUpdateProducerPingOutput = _interopRequireDefault(__nccwpck_require__(82046)); + +var _GatewayUpdateProducerPostgreSQL = _interopRequireDefault(__nccwpck_require__(42517)); + +var _GatewayUpdateProducerPostgreSQLOutput = _interopRequireDefault(__nccwpck_require__(41024)); + +var _GatewayUpdateProducerRabbitMQ = _interopRequireDefault(__nccwpck_require__(70229)); + +var _GatewayUpdateProducerRabbitMQOutput = _interopRequireDefault(__nccwpck_require__(13216)); + +var _GatewayUpdateProducerRdp = _interopRequireDefault(__nccwpck_require__(47813)); + +var _GatewayUpdateProducerRdpOutput = _interopRequireDefault(__nccwpck_require__(73488)); + +var _GatewayUpdateProducerRedis = _interopRequireDefault(__nccwpck_require__(75080)); + +var _GatewayUpdateProducerRedisOutput = _interopRequireDefault(__nccwpck_require__(79073)); + +var _GatewayUpdateProducerRedshift = _interopRequireDefault(__nccwpck_require__(73230)); + +var _GatewayUpdateProducerRedshiftOutput = _interopRequireDefault(__nccwpck_require__(50171)); + +var _GatewayUpdateProducerSnowflake = _interopRequireDefault(__nccwpck_require__(92043)); + +var _GatewayUpdateProducerSnowflakeOutput = _interopRequireDefault(__nccwpck_require__(78122)); + +var _GatewayUpdateProducerVenafi = _interopRequireDefault(__nccwpck_require__(29402)); + +var _GatewayUpdateProducerVenafiOutput = _interopRequireDefault(__nccwpck_require__(83983)); + +var _GatewayUpdateTlsCert = _interopRequireDefault(__nccwpck_require__(89886)); + +var _GatewayUpdateTlsCertOutput = _interopRequireDefault(__nccwpck_require__(49259)); + +var _GatewayUpdateTmpUsers = _interopRequireDefault(__nccwpck_require__(98074)); + +var _GatewaysListResponse = _interopRequireDefault(__nccwpck_require__(34840)); + +var _GcpTargetDetails = _interopRequireDefault(__nccwpck_require__(83083)); + +var _GenCustomerFragment = _interopRequireDefault(__nccwpck_require__(26628)); + +var _GeneralConfigPart = _interopRequireDefault(__nccwpck_require__(94565)); + +var _GenerateCsr = _interopRequireDefault(__nccwpck_require__(87627)); + +var _GenerateCsrOutput = _interopRequireDefault(__nccwpck_require__(85130)); + +var _GetAccountSettings = _interopRequireDefault(__nccwpck_require__(46150)); + +var _GetAccountSettingsCommandOutput = _interopRequireDefault(__nccwpck_require__(61968)); + +var _GetAnalyticsData = _interopRequireDefault(__nccwpck_require__(28084)); + +var _GetAuthMethod = _interopRequireDefault(__nccwpck_require__(19101)); + +var _GetCertificateValue = _interopRequireDefault(__nccwpck_require__(25574)); + +var _GetCertificateValueOutput = _interopRequireDefault(__nccwpck_require__(54819)); + +var _GetDynamicSecretValue = _interopRequireDefault(__nccwpck_require__(17840)); + +var _GetEventForwarder = _interopRequireDefault(__nccwpck_require__(7183)); + +var _GetEventForwarderOutput = _interopRequireDefault(__nccwpck_require__(31549)); + +var _GetGroup = _interopRequireDefault(__nccwpck_require__(99359)); + +var _GetGroupOutput = _interopRequireDefault(__nccwpck_require__(83334)); + +var _GetKubeExecCreds = _interopRequireDefault(__nccwpck_require__(48313)); + +var _GetKubeExecCredsOutput = _interopRequireDefault(__nccwpck_require__(31740)); + +var _GetLastUserEventStatus = _interopRequireDefault(__nccwpck_require__(96111)); + +var _GetPKICertificate = _interopRequireDefault(__nccwpck_require__(8453)); + +var _GetPKICertificateOutput = _interopRequireDefault(__nccwpck_require__(1840)); + +var _GetProducersListReplyObj = _interopRequireDefault(__nccwpck_require__(43282)); + +var _GetRSAPublic = _interopRequireDefault(__nccwpck_require__(4599)); + +var _GetRSAPublicOutput = _interopRequireDefault(__nccwpck_require__(71534)); + +var _GetRole = _interopRequireDefault(__nccwpck_require__(19262)); + +var _GetRotatedSecretValue = _interopRequireDefault(__nccwpck_require__(14948)); + +var _GetSSHCertificate = _interopRequireDefault(__nccwpck_require__(95215)); + +var _GetSSHCertificateOutput = _interopRequireDefault(__nccwpck_require__(94518)); + +var _GetSecretValue = _interopRequireDefault(__nccwpck_require__(24725)); + +var _GetTags = _interopRequireDefault(__nccwpck_require__(26075)); + +var _GetTarget = _interopRequireDefault(__nccwpck_require__(51395)); + +var _GetTargetDetails = _interopRequireDefault(__nccwpck_require__(48741)); + +var _GetTargetDetailsOutput = _interopRequireDefault(__nccwpck_require__(69392)); + +var _GetUserEventStatusOutput = _interopRequireDefault(__nccwpck_require__(96266)); + +var _GithubTargetDetails = _interopRequireDefault(__nccwpck_require__(46870)); + +var _GlobalSignAtlasTargetDetails = _interopRequireDefault(__nccwpck_require__(77606)); + +var _GlobalSignGCCTargetDetails = _interopRequireDefault(__nccwpck_require__(4150)); + +var _GodaddyTargetDetails = _interopRequireDefault(__nccwpck_require__(52393)); + +var _GoogleChronicleForwardingConfig = _interopRequireDefault(__nccwpck_require__(36479)); + +var _Group = _interopRequireDefault(__nccwpck_require__(1617)); + +var _GwClusterIdentity = _interopRequireDefault(__nccwpck_require__(73728)); + +var _HashiMigration = _interopRequireDefault(__nccwpck_require__(16157)); + +var _HashiPayload = _interopRequireDefault(__nccwpck_require__(2703)); + +var _Hmac = _interopRequireDefault(__nccwpck_require__(9727)); + +var _HmacOutput = _interopRequireDefault(__nccwpck_require__(67718)); + +var _HuaweiAccessRules = _interopRequireDefault(__nccwpck_require__(59348)); + +var _ImportPasswords = _interopRequireDefault(__nccwpck_require__(76407)); + +var _ImportPasswordsOutput = _interopRequireDefault(__nccwpck_require__(8494)); + +var _ImporterInfo = _interopRequireDefault(__nccwpck_require__(9586)); + +var _Item = _interopRequireDefault(__nccwpck_require__(23711)); + +var _ItemGeneralInfo = _interopRequireDefault(__nccwpck_require__(5427)); + +var _ItemSraStatus = _interopRequireDefault(__nccwpck_require__(96357)); + +var _ItemTargetAssociation = _interopRequireDefault(__nccwpck_require__(24223)); + +var _ItemVersion = _interopRequireDefault(__nccwpck_require__(71931)); + +var _JSONError = _interopRequireDefault(__nccwpck_require__(39994)); + +var _K8SAuth = _interopRequireDefault(__nccwpck_require__(12684)); + +var _K8SAuthsConfigLastChange = _interopRequireDefault(__nccwpck_require__(2421)); + +var _K8SAuthsConfigPart = _interopRequireDefault(__nccwpck_require__(37768)); + +var _K8SMigration = _interopRequireDefault(__nccwpck_require__(79488)); + +var _K8SPayload = _interopRequireDefault(__nccwpck_require__(25334)); + +var _KMIPClient = _interopRequireDefault(__nccwpck_require__(71178)); + +var _KMIPClientGetResponse = _interopRequireDefault(__nccwpck_require__(13983)); + +var _KMIPClientListResponse = _interopRequireDefault(__nccwpck_require__(22033)); + +var _KMIPClientUpdateResponse = _interopRequireDefault(__nccwpck_require__(83564)); + +var _KMIPConfigPart = _interopRequireDefault(__nccwpck_require__(90506)); + +var _KMIPEnvironmentCreateResponse = _interopRequireDefault(__nccwpck_require__(48931)); + +var _KMIPServer = _interopRequireDefault(__nccwpck_require__(60094)); + +var _KmipClientDeleteRule = _interopRequireDefault(__nccwpck_require__(88039)); + +var _KmipClientSetRule = _interopRequireDefault(__nccwpck_require__(55778)); + +var _KmipCreateClient = _interopRequireDefault(__nccwpck_require__(59390)); + +var _KmipCreateClientOutput = _interopRequireDefault(__nccwpck_require__(39768)); + +var _KmipDeleteClient = _interopRequireDefault(__nccwpck_require__(14353)); + +var _KmipDeleteServer = _interopRequireDefault(__nccwpck_require__(23205)); + +var _KmipDescribeClient = _interopRequireDefault(__nccwpck_require__(58003)); + +var _KmipDescribeServer = _interopRequireDefault(__nccwpck_require__(63487)); + +var _KmipDescribeServerOutput = _interopRequireDefault(__nccwpck_require__(28038)); + +var _KmipListClients = _interopRequireDefault(__nccwpck_require__(37829)); + +var _KmipMoveServer = _interopRequireDefault(__nccwpck_require__(61411)); + +var _KmipMoveServerOutput = _interopRequireDefault(__nccwpck_require__(23954)); + +var _KmipRenewClientCertificate = _interopRequireDefault(__nccwpck_require__(67724)); + +var _KmipRenewClientCertificateOutput = _interopRequireDefault(__nccwpck_require__(52557)); + +var _KmipRenewServerCertificate = _interopRequireDefault(__nccwpck_require__(97536)); + +var _KmipRenewServerCertificateOutput = _interopRequireDefault(__nccwpck_require__(96809)); + +var _KmipServerSetup = _interopRequireDefault(__nccwpck_require__(54249)); + +var _KmipSetServerState = _interopRequireDefault(__nccwpck_require__(87265)); + +var _KmipSetServerStateOutput = _interopRequireDefault(__nccwpck_require__(9044)); + +var _KubernetesAccessRules = _interopRequireDefault(__nccwpck_require__(71267)); + +var _LDAPAccessRules = _interopRequireDefault(__nccwpck_require__(86012)); + +var _LastConfigChange = _interopRequireDefault(__nccwpck_require__(48174)); + +var _LastStatusInfo = _interopRequireDefault(__nccwpck_require__(12778)); + +var _LdapConfigPart = _interopRequireDefault(__nccwpck_require__(2846)); + +var _LdapTargetDetails = _interopRequireDefault(__nccwpck_require__(11780)); + +var _LeadershipConfigPart = _interopRequireDefault(__nccwpck_require__(25900)); + +var _LinkedDetails = _interopRequireDefault(__nccwpck_require__(33863)); + +var _LinkedTargetDetails = _interopRequireDefault(__nccwpck_require__(35968)); + +var _ListAuthMethods = _interopRequireDefault(__nccwpck_require__(60486)); + +var _ListAuthMethodsOutput = _interopRequireDefault(__nccwpck_require__(8995)); + +var _ListGateways = _interopRequireDefault(__nccwpck_require__(91099)); + +var _ListGroups = _interopRequireDefault(__nccwpck_require__(46460)); + +var _ListGroupsOutput = _interopRequireDefault(__nccwpck_require__(88061)); + +var _ListItems = _interopRequireDefault(__nccwpck_require__(27410)); + +var _ListItemsInPathOutput = _interopRequireDefault(__nccwpck_require__(423)); + +var _ListItemsOutput = _interopRequireDefault(__nccwpck_require__(41751)); + +var _ListRoles = _interopRequireDefault(__nccwpck_require__(7007)); + +var _ListRolesOutput = _interopRequireDefault(__nccwpck_require__(65702)); + +var _ListSRABastions = _interopRequireDefault(__nccwpck_require__(59255)); + +var _ListSharedItems = _interopRequireDefault(__nccwpck_require__(90349)); + +var _ListTargets = _interopRequireDefault(__nccwpck_require__(97640)); + +var _ListTargetsOutput = _interopRequireDefault(__nccwpck_require__(52161)); + +var _LogForwardingConfigPart = _interopRequireDefault(__nccwpck_require__(65736)); + +var _LogstashLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(35480)); + +var _LogzIoLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(8725)); + +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); + +var _MigrationItems = _interopRequireDefault(__nccwpck_require__(84208)); + +var _MigrationStatus = _interopRequireDefault(__nccwpck_require__(97664)); + +var _MigrationStatusReplyObj = _interopRequireDefault(__nccwpck_require__(95821)); + +var _MigrationsConfigLastChange = _interopRequireDefault(__nccwpck_require__(66135)); + +var _MigrationsConfigPart = _interopRequireDefault(__nccwpck_require__(27734)); + +var _MockMigration = _interopRequireDefault(__nccwpck_require__(33516)); + +var _MockPayload = _interopRequireDefault(__nccwpck_require__(47698)); + +var _MongoDBTargetDetails = _interopRequireDefault(__nccwpck_require__(57731)); + +var _MoveObjects = _interopRequireDefault(__nccwpck_require__(3781)); + +var _Name = _interopRequireDefault(__nccwpck_require__(65739)); + +var _NativeK8sTargetDetails = _interopRequireDefault(__nccwpck_require__(80406)); + +var _NotiForwarder = _interopRequireDefault(__nccwpck_require__(21724)); + +var _OAuth2AccessRules = _interopRequireDefault(__nccwpck_require__(63338)); + +var _OAuth2CustomClaim = _interopRequireDefault(__nccwpck_require__(41338)); + +var _OCIAccessRules = _interopRequireDefault(__nccwpck_require__(18334)); + +var _OIDCAccessRules = _interopRequireDefault(__nccwpck_require__(53344)); + +var _OIDCCustomClaim = _interopRequireDefault(__nccwpck_require__(87440)); + +var _ObjectVersionSettingsOutput = _interopRequireDefault(__nccwpck_require__(82163)); + +var _OidcClientInfo = _interopRequireDefault(__nccwpck_require__(2338)); + +var _OnePasswordMigration = _interopRequireDefault(__nccwpck_require__(99171)); + +var _OnePasswordPayload = _interopRequireDefault(__nccwpck_require__(75617)); + +var _PKICertificateIssueDetails = _interopRequireDefault(__nccwpck_require__(16540)); + +var _PasswordPolicyInfo = _interopRequireDefault(__nccwpck_require__(34827)); + +var _PathRule = _interopRequireDefault(__nccwpck_require__(10929)); + +var _PingTargetDetails = _interopRequireDefault(__nccwpck_require__(18619)); + +var _Producer = _interopRequireDefault(__nccwpck_require__(11490)); + +var _ProducersConfigPart = _interopRequireDefault(__nccwpck_require__(24318)); + +var _ProvisionCertificate = _interopRequireDefault(__nccwpck_require__(99210)); + +var _ProvisionCertificateOutput = _interopRequireDefault(__nccwpck_require__(88255)); + +var _RabbitMQTargetDetails = _interopRequireDefault(__nccwpck_require__(78325)); + +var _RawCreds = _interopRequireDefault(__nccwpck_require__(18791)); + +var _RefreshKey = _interopRequireDefault(__nccwpck_require__(94978)); + +var _RefreshKeyOutput = _interopRequireDefault(__nccwpck_require__(1383)); + +var _RegexpTokenizerInfo = _interopRequireDefault(__nccwpck_require__(38336)); + +var _RenewCertificate = _interopRequireDefault(__nccwpck_require__(97884)); + +var _RenewCertificateOutput = _interopRequireDefault(__nccwpck_require__(38941)); + +var _RequestAccess = _interopRequireDefault(__nccwpck_require__(14565)); + +var _RequestAccessOutput = _interopRequireDefault(__nccwpck_require__(86512)); + +var _RequiredActivity = _interopRequireDefault(__nccwpck_require__(78028)); + +var _ReverseRBAC = _interopRequireDefault(__nccwpck_require__(7820)); + +var _ReverseRBACClient = _interopRequireDefault(__nccwpck_require__(42271)); + +var _ReverseRBACOutput = _interopRequireDefault(__nccwpck_require__(46413)); + +var _RevokeCertificate = _interopRequireDefault(__nccwpck_require__(89487)); + +var _RevokeCreds = _interopRequireDefault(__nccwpck_require__(46521)); + +var _Role = _interopRequireDefault(__nccwpck_require__(74264)); + +var _RoleAssociationDetails = _interopRequireDefault(__nccwpck_require__(30915)); + +var _RoleAuthMethodAssociation = _interopRequireDefault(__nccwpck_require__(2372)); + +var _RollbackSecret = _interopRequireDefault(__nccwpck_require__(3200)); + +var _RollbackSecretOutput = _interopRequireDefault(__nccwpck_require__(76745)); + +var _RotateKey = _interopRequireDefault(__nccwpck_require__(77056)); + +var _RotateKeyOutput = _interopRequireDefault(__nccwpck_require__(58153)); + +var _RotateOidcClientOutput = _interopRequireDefault(__nccwpck_require__(38772)); + +var _RotateOidcClientSecret = _interopRequireDefault(__nccwpck_require__(47153)); + +var _RotateSecret = _interopRequireDefault(__nccwpck_require__(90983)); + +var _RotatedSecretCreateAws = _interopRequireDefault(__nccwpck_require__(6094)); + +var _RotatedSecretCreateAzure = _interopRequireDefault(__nccwpck_require__(53980)); + +var _RotatedSecretCreateCassandra = _interopRequireDefault(__nccwpck_require__(6301)); + +var _RotatedSecretCreateCustom = _interopRequireDefault(__nccwpck_require__(37488)); + +var _RotatedSecretCreateDockerhub = _interopRequireDefault(__nccwpck_require__(15232)); + +var _RotatedSecretCreateGcp = _interopRequireDefault(__nccwpck_require__(19137)); + +var _RotatedSecretCreateHanadb = _interopRequireDefault(__nccwpck_require__(4967)); + +var _RotatedSecretCreateLdap = _interopRequireDefault(__nccwpck_require__(71730)); + +var _RotatedSecretCreateMongodb = _interopRequireDefault(__nccwpck_require__(90405)); + +var _RotatedSecretCreateMssql = _interopRequireDefault(__nccwpck_require__(15103)); + +var _RotatedSecretCreateMysql = _interopRequireDefault(__nccwpck_require__(11433)); + +var _RotatedSecretCreateOracledb = _interopRequireDefault(__nccwpck_require__(14823)); + +var _RotatedSecretCreateOutput = _interopRequireDefault(__nccwpck_require__(5094)); + +var _RotatedSecretCreatePostgresql = _interopRequireDefault(__nccwpck_require__(93061)); + +var _RotatedSecretCreateRedis = _interopRequireDefault(__nccwpck_require__(82328)); + +var _RotatedSecretCreateRedshift = _interopRequireDefault(__nccwpck_require__(4830)); + +var _RotatedSecretCreateSnowflake = _interopRequireDefault(__nccwpck_require__(85883)); + +var _RotatedSecretCreateSsh = _interopRequireDefault(__nccwpck_require__(84077)); + +var _RotatedSecretCreateWindows = _interopRequireDefault(__nccwpck_require__(96926)); + +var _RotatedSecretDetailsInfo = _interopRequireDefault(__nccwpck_require__(25957)); + +var _RotatedSecretGetValue = _interopRequireDefault(__nccwpck_require__(634)); + +var _RotatedSecretList = _interopRequireDefault(__nccwpck_require__(54507)); + +var _RotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(74226)); + +var _RotatedSecretUpdateAws = _interopRequireDefault(__nccwpck_require__(55993)); + +var _RotatedSecretUpdateAzure = _interopRequireDefault(__nccwpck_require__(41471)); + +var _RotatedSecretUpdateCassandra = _interopRequireDefault(__nccwpck_require__(19766)); + +var _RotatedSecretUpdateCustom = _interopRequireDefault(__nccwpck_require__(52337)); + +var _RotatedSecretUpdateDockerhub = _interopRequireDefault(__nccwpck_require__(40251)); + +var _RotatedSecretUpdateGcp = _interopRequireDefault(__nccwpck_require__(98918)); + +var _RotatedSecretUpdateHanadb = _interopRequireDefault(__nccwpck_require__(28538)); + +var _RotatedSecretUpdateLdap = _interopRequireDefault(__nccwpck_require__(90859)); + +var _RotatedSecretUpdateMongodb = _interopRequireDefault(__nccwpck_require__(73885)); + +var _RotatedSecretUpdateMssql = _interopRequireDefault(__nccwpck_require__(18512)); + +var _RotatedSecretUpdateMysql = _interopRequireDefault(__nccwpck_require__(11630)); + +var _RotatedSecretUpdateOracledb = _interopRequireDefault(__nccwpck_require__(73650)); + +var _RotatedSecretUpdateOutput = _interopRequireDefault(__nccwpck_require__(86747)); + +var _RotatedSecretUpdatePostgresql = _interopRequireDefault(__nccwpck_require__(80808)); + +var _RotatedSecretUpdateRedis = _interopRequireDefault(__nccwpck_require__(75371)); + +var _RotatedSecretUpdateRedshift = _interopRequireDefault(__nccwpck_require__(51615)); + +var _RotatedSecretUpdateSnowflake = _interopRequireDefault(__nccwpck_require__(14308)); + +var _RotatedSecretUpdateSsh = _interopRequireDefault(__nccwpck_require__(33578)); + +var _RotatedSecretUpdateWindows = _interopRequireDefault(__nccwpck_require__(97749)); + +var _RotationSecretMaxInterval = _interopRequireDefault(__nccwpck_require__(41987)); + +var _Rotator = _interopRequireDefault(__nccwpck_require__(98559)); + +var _RotatorsConfigPart = _interopRequireDefault(__nccwpck_require__(37665)); + +var _RuleAssigner = _interopRequireDefault(__nccwpck_require__(48396)); + +var _Rules = _interopRequireDefault(__nccwpck_require__(74529)); + +var _SAMLAccessRules = _interopRequireDefault(__nccwpck_require__(25540)); + +var _SAMLAttribute = _interopRequireDefault(__nccwpck_require__(70045)); + +var _SSHCertificateIssueDetails = _interopRequireDefault(__nccwpck_require__(29238)); + +var _SSHTargetDetails = _interopRequireDefault(__nccwpck_require__(615)); + +var _SalesforceTargetDetails = _interopRequireDefault(__nccwpck_require__(48590)); + +var _SecretInfo = _interopRequireDefault(__nccwpck_require__(39800)); + +var _SecureRemoteAccess = _interopRequireDefault(__nccwpck_require__(66513)); + +var _ServerInventoryMigration = _interopRequireDefault(__nccwpck_require__(75499)); + +var _ServerInventoryPayload = _interopRequireDefault(__nccwpck_require__(937)); + +var _SetItemState = _interopRequireDefault(__nccwpck_require__(53920)); + +var _SetRoleRule = _interopRequireDefault(__nccwpck_require__(57460)); + +var _ShareItem = _interopRequireDefault(__nccwpck_require__(21310)); + +var _SharingPolicyInfo = _interopRequireDefault(__nccwpck_require__(78156)); + +var _SignDataWithClassicKey = _interopRequireDefault(__nccwpck_require__(61530)); + +var _SignEcDsa = _interopRequireDefault(__nccwpck_require__(46273)); + +var _SignEcDsaOutput = _interopRequireDefault(__nccwpck_require__(18996)); + +var _SignGPG = _interopRequireDefault(__nccwpck_require__(95289)); + +var _SignGPGOutput = _interopRequireDefault(__nccwpck_require__(72732)); + +var _SignJWTOutput = _interopRequireDefault(__nccwpck_require__(23913)); + +var _SignJWTWithClassicKey = _interopRequireDefault(__nccwpck_require__(32259)); + +var _SignOutput = _interopRequireDefault(__nccwpck_require__(40040)); + +var _SignPKCS = _interopRequireDefault(__nccwpck_require__(5227)); + +var _SignPKCS1Output = _interopRequireDefault(__nccwpck_require__(76138)); + +var _SignPKICertOutput = _interopRequireDefault(__nccwpck_require__(50538)); + +var _SignPKICertWithClassicKey = _interopRequireDefault(__nccwpck_require__(52048)); + +var _SignRsaSsaPss = _interopRequireDefault(__nccwpck_require__(77718)); + +var _SignRsaSsaPssOutput = _interopRequireDefault(__nccwpck_require__(22067)); + +var _SmInfo = _interopRequireDefault(__nccwpck_require__(69132)); + +var _SplunkLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(39760)); + +var _SraInfo = _interopRequireDefault(__nccwpck_require__(85658)); + +var _StaticCredsAuth = _interopRequireDefault(__nccwpck_require__(39307)); + +var _StaticCredsAuthOutput = _interopRequireDefault(__nccwpck_require__(53322)); + +var _StaticSecretDetailsInfo = _interopRequireDefault(__nccwpck_require__(38674)); + +var _SumologicLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(58097)); + +var _SyslogLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(68494)); + +var _SystemAccessCredentialsReplyObj = _interopRequireDefault(__nccwpck_require__(58908)); + +var _SystemAccessCredsSettings = _interopRequireDefault(__nccwpck_require__(36395)); + +var _Target = _interopRequireDefault(__nccwpck_require__(50373)); + +var _TargetItemAssociation = _interopRequireDefault(__nccwpck_require__(78551)); + +var _TargetItemVersion = _interopRequireDefault(__nccwpck_require__(42216)); + +var _TargetNameWithHosts = _interopRequireDefault(__nccwpck_require__(9507)); + +var _TargetTypeDetailsInput = _interopRequireDefault(__nccwpck_require__(6643)); + +var _TmpUserData = _interopRequireDefault(__nccwpck_require__(36764)); + +var _Tokenize = _interopRequireDefault(__nccwpck_require__(43289)); + +var _TokenizeOutput = _interopRequireDefault(__nccwpck_require__(88732)); + +var _TokenizerInfo = _interopRequireDefault(__nccwpck_require__(61767)); + +var _UIDTokenDetails = _interopRequireDefault(__nccwpck_require__(33593)); + +var _UidCreateChildToken = _interopRequireDefault(__nccwpck_require__(35191)); + +var _UidCreateChildTokenOutput = _interopRequireDefault(__nccwpck_require__(25070)); + +var _UidGenerateToken = _interopRequireDefault(__nccwpck_require__(56690)); + +var _UidGenerateTokenOutput = _interopRequireDefault(__nccwpck_require__(33367)); + +var _UidListChildren = _interopRequireDefault(__nccwpck_require__(55603)); + +var _UidRevokeToken = _interopRequireDefault(__nccwpck_require__(60409)); + +var _UidRotateToken = _interopRequireDefault(__nccwpck_require__(36310)); + +var _UidRotateTokenOutput = _interopRequireDefault(__nccwpck_require__(34899)); + +var _Unconfigure = _interopRequireDefault(__nccwpck_require__(52179)); + +var _UniversalIdentityAccessRules = _interopRequireDefault(__nccwpck_require__(66824)); + +var _UniversalIdentityDetails = _interopRequireDefault(__nccwpck_require__(81607)); + +var _Update = _interopRequireDefault(__nccwpck_require__(14745)); + +var _UpdateAWSTarget = _interopRequireDefault(__nccwpck_require__(82797)); + +var _UpdateAWSTargetDetails = _interopRequireDefault(__nccwpck_require__(13631)); + +var _UpdateAccountSettings = _interopRequireDefault(__nccwpck_require__(7427)); + +var _UpdateAccountSettingsOutput = _interopRequireDefault(__nccwpck_require__(73106)); + +var _UpdateArtifactoryTarget = _interopRequireDefault(__nccwpck_require__(68146)); + +var _UpdateArtifactoryTargetOutput = _interopRequireDefault(__nccwpck_require__(95639)); + +var _UpdateAssoc = _interopRequireDefault(__nccwpck_require__(68862)); + +var _UpdateAuthMethod = _interopRequireDefault(__nccwpck_require__(25222)); + +var _UpdateAuthMethodAWSIAM = _interopRequireDefault(__nccwpck_require__(67296)); + +var _UpdateAuthMethodAzureAD = _interopRequireDefault(__nccwpck_require__(95622)); + +var _UpdateAuthMethodCert = _interopRequireDefault(__nccwpck_require__(18408)); + +var _UpdateAuthMethodCertOutput = _interopRequireDefault(__nccwpck_require__(33)); + +var _UpdateAuthMethodGCP = _interopRequireDefault(__nccwpck_require__(56494)); + +var _UpdateAuthMethodK8S = _interopRequireDefault(__nccwpck_require__(45908)); + +var _UpdateAuthMethodK8SOutput = _interopRequireDefault(__nccwpck_require__(75557)); + +var _UpdateAuthMethodLDAP = _interopRequireDefault(__nccwpck_require__(54035)); + +var _UpdateAuthMethodLDAPOutput = _interopRequireDefault(__nccwpck_require__(52290)); + +var _UpdateAuthMethodOAuth = _interopRequireDefault(__nccwpck_require__(13933)); + +var _UpdateAuthMethodOCI = _interopRequireDefault(__nccwpck_require__(925)); + +var _UpdateAuthMethodOCIOutput = _interopRequireDefault(__nccwpck_require__(16280)); + +var _UpdateAuthMethodOIDC = _interopRequireDefault(__nccwpck_require__(85407)); + +var _UpdateAuthMethodOutput = _interopRequireDefault(__nccwpck_require__(49923)); + +var _UpdateAuthMethodSAML = _interopRequireDefault(__nccwpck_require__(41983)); + +var _UpdateAuthMethodUniversalIdentity = _interopRequireDefault(__nccwpck_require__(4775)); + +var _UpdateAzureTarget = _interopRequireDefault(__nccwpck_require__(10443)); + +var _UpdateAzureTargetOutput = _interopRequireDefault(__nccwpck_require__(16042)); + +var _UpdateCertificateOutput = _interopRequireDefault(__nccwpck_require__(12471)); + +var _UpdateCertificateValue = _interopRequireDefault(__nccwpck_require__(19705)); + +var _UpdateClassicKeyCertificate = _interopRequireDefault(__nccwpck_require__(49451)); + +var _UpdateDBTarget = _interopRequireDefault(__nccwpck_require__(33529)); + +var _UpdateDBTargetDetails = _interopRequireDefault(__nccwpck_require__(80190)); + +var _UpdateDBTargetOutput = _interopRequireDefault(__nccwpck_require__(72131)); + +var _UpdateDockerhubTarget = _interopRequireDefault(__nccwpck_require__(8307)); + +var _UpdateDockerhubTargetOutput = _interopRequireDefault(__nccwpck_require__(56962)); + +var _UpdateEKSTarget = _interopRequireDefault(__nccwpck_require__(54749)); + +var _UpdateEKSTargetOutput = _interopRequireDefault(__nccwpck_require__(69048)); + +var _UpdateEventForwarder = _interopRequireDefault(__nccwpck_require__(69923)); + +var _UpdateGKETarget = _interopRequireDefault(__nccwpck_require__(98909)); + +var _UpdateGKETargetOutput = _interopRequireDefault(__nccwpck_require__(57048)); + +var _UpdateGcpTarget = _interopRequireDefault(__nccwpck_require__(27770)); + +var _UpdateGcpTargetOutput = _interopRequireDefault(__nccwpck_require__(18991)); + +var _UpdateGithubTarget = _interopRequireDefault(__nccwpck_require__(47511)); + +var _UpdateGithubTargetOutput = _interopRequireDefault(__nccwpck_require__(14926)); + +var _UpdateGlobalSignAtlasTarget = _interopRequireDefault(__nccwpck_require__(90781)); + +var _UpdateGlobalSignAtlasTargetOutput = _interopRequireDefault(__nccwpck_require__(89912)); + +var _UpdateGlobalSignTarget = _interopRequireDefault(__nccwpck_require__(7530)); + +var _UpdateGlobalSignTargetOutput = _interopRequireDefault(__nccwpck_require__(40415)); + +var _UpdateGodaddyTarget = _interopRequireDefault(__nccwpck_require__(84692)); + +var _UpdateGodaddyTargetOutput = _interopRequireDefault(__nccwpck_require__(17989)); + +var _UpdateGroup = _interopRequireDefault(__nccwpck_require__(59722)); + +var _UpdateGroupOutput = _interopRequireDefault(__nccwpck_require__(63647)); + +var _UpdateItem = _interopRequireDefault(__nccwpck_require__(49094)); + +var _UpdateItemOutput = _interopRequireDefault(__nccwpck_require__(15651)); + +var _UpdateLdapTarget = _interopRequireDefault(__nccwpck_require__(3589)); + +var _UpdateLdapTargetDetails = _interopRequireDefault(__nccwpck_require__(34663)); + +var _UpdateLdapTargetOutput = _interopRequireDefault(__nccwpck_require__(4912)); + +var _UpdateLinkedTarget = _interopRequireDefault(__nccwpck_require__(26477)); + +var _UpdateNativeK8STarget = _interopRequireDefault(__nccwpck_require__(30593)); + +var _UpdateNativeK8STargetOutput = _interopRequireDefault(__nccwpck_require__(99636)); + +var _UpdateOidcApp = _interopRequireDefault(__nccwpck_require__(94701)); + +var _UpdateOutput = _interopRequireDefault(__nccwpck_require__(47356)); + +var _UpdatePKICertIssuer = _interopRequireDefault(__nccwpck_require__(79264)); + +var _UpdatePKICertIssuerOutput = _interopRequireDefault(__nccwpck_require__(13449)); + +var _UpdatePingTarget = _interopRequireDefault(__nccwpck_require__(85764)); + +var _UpdateRDPTargetDetails = _interopRequireDefault(__nccwpck_require__(54450)); + +var _UpdateRabbitMQTarget = _interopRequireDefault(__nccwpck_require__(26622)); + +var _UpdateRabbitMQTargetDetails = _interopRequireDefault(__nccwpck_require__(87334)); + +var _UpdateRabbitMQTargetOutput = _interopRequireDefault(__nccwpck_require__(87403)); + +var _UpdateRole = _interopRequireDefault(__nccwpck_require__(57081)); + +var _UpdateRoleOutput = _interopRequireDefault(__nccwpck_require__(99836)); + +var _UpdateRotatedSecret = _interopRequireDefault(__nccwpck_require__(64696)); + +var _UpdateRotatedSecretOutput = _interopRequireDefault(__nccwpck_require__(2961)); + +var _UpdateRotationSettings = _interopRequireDefault(__nccwpck_require__(42482)); + +var _UpdateSSHCertIssuer = _interopRequireDefault(__nccwpck_require__(65022)); + +var _UpdateSSHCertIssuerOutput = _interopRequireDefault(__nccwpck_require__(96523)); + +var _UpdateSSHTarget = _interopRequireDefault(__nccwpck_require__(72830)); + +var _UpdateSSHTargetDetails = _interopRequireDefault(__nccwpck_require__(58790)); + +var _UpdateSSHTargetOutput = _interopRequireDefault(__nccwpck_require__(73931)); + +var _UpdateSalesforceTarget = _interopRequireDefault(__nccwpck_require__(41539)); + +var _UpdateSalesforceTargetOutput = _interopRequireDefault(__nccwpck_require__(69266)); + +var _UpdateSecretVal = _interopRequireDefault(__nccwpck_require__(89102)); + +var _UpdateSecretValOutput = _interopRequireDefault(__nccwpck_require__(30427)); + +var _UpdateTarget = _interopRequireDefault(__nccwpck_require__(30092)); + +var _UpdateTargetDetails = _interopRequireDefault(__nccwpck_require__(90476)); + +var _UpdateTargetDetailsOutput = _interopRequireDefault(__nccwpck_require__(78669)); + +var _UpdateTargetOutput = _interopRequireDefault(__nccwpck_require__(29293)); + +var _UpdateWebTarget = _interopRequireDefault(__nccwpck_require__(54946)); + +var _UpdateWebTargetDetails = _interopRequireDefault(__nccwpck_require__(24642)); + +var _UpdateWebTargetOutput = _interopRequireDefault(__nccwpck_require__(43751)); + +var _UpdateWindowsTarget = _interopRequireDefault(__nccwpck_require__(39713)); + +var _UpdateZeroSSLTarget = _interopRequireDefault(__nccwpck_require__(32664)); + +var _UpdateZeroSSLTargetOutput = _interopRequireDefault(__nccwpck_require__(16401)); + +var _UploadPKCS = _interopRequireDefault(__nccwpck_require__(4373)); + +var _UploadRSA = _interopRequireDefault(__nccwpck_require__(22255)); + +var _UsageEventSetting = _interopRequireDefault(__nccwpck_require__(87505)); + +var _UsageReportSummary = _interopRequireDefault(__nccwpck_require__(31923)); + +var _UscCreate = _interopRequireDefault(__nccwpck_require__(15183)); + +var _UscCreateSecretOutput = _interopRequireDefault(__nccwpck_require__(34938)); + +var _UscDelete = _interopRequireDefault(__nccwpck_require__(31972)); + +var _UscDeleteSecretOutput = _interopRequireDefault(__nccwpck_require__(31605)); + +var _UscGet = _interopRequireDefault(__nccwpck_require__(44023)); + +var _UscGetSecretOutput = _interopRequireDefault(__nccwpck_require__(20754)); + +var _UscList = _interopRequireDefault(__nccwpck_require__(66619)); + +var _UscListSecretsOutput = _interopRequireDefault(__nccwpck_require__(29423)); + +var _UscUpdate = _interopRequireDefault(__nccwpck_require__(86622)); + +var _UscUpdateSecretOutput = _interopRequireDefault(__nccwpck_require__(40159)); + +var _ValidateToken = _interopRequireDefault(__nccwpck_require__(62049)); + +var _ValidateTokenOutput = _interopRequireDefault(__nccwpck_require__(56148)); + +var _VaultlessTokenizerInfo = _interopRequireDefault(__nccwpck_require__(56618)); + +var _VenafiTargetDetails = _interopRequireDefault(__nccwpck_require__(17420)); + +var _VerifyDataWithClassicKey = _interopRequireDefault(__nccwpck_require__(89370)); + +var _VerifyEcDsa = _interopRequireDefault(__nccwpck_require__(9281)); + +var _VerifyGPG = _interopRequireDefault(__nccwpck_require__(9817)); + +var _VerifyJWTOutput = _interopRequireDefault(__nccwpck_require__(11401)); + +var _VerifyJWTWithClassicKey = _interopRequireDefault(__nccwpck_require__(35587)); + +var _VerifyPKCS = _interopRequireDefault(__nccwpck_require__(94187)); + +var _VerifyPKICertOutput = _interopRequireDefault(__nccwpck_require__(9610)); + +var _VerifyPKICertWithClassicKey = _interopRequireDefault(__nccwpck_require__(1456)); + +var _VerifyRsaSsaPss = _interopRequireDefault(__nccwpck_require__(11350)); + +var _WebHookNotiForwarderPublicDetails = _interopRequireDefault(__nccwpck_require__(50660)); + +var _WebTargetDetails = _interopRequireDefault(__nccwpck_require__(99871)); + +var _WindowsService = _interopRequireDefault(__nccwpck_require__(1940)); + +var _WindowsServiceAttributes = _interopRequireDefault(__nccwpck_require__(82933)); + +var _WindowsTargetDetails = _interopRequireDefault(__nccwpck_require__(70614)); + +var _ZeroSSLTargetDetails = _interopRequireDefault(__nccwpck_require__(57621)); + +var _V2Api = _interopRequireDefault(__nccwpck_require__(78207)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +/***/ }), + +/***/ 84834: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The APIKeyAccessRules model module. + * @module model/APIKeyAccessRules + * @version 3.6.3 + */ +var APIKeyAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new APIKeyAccessRules. + * @alias module:model/APIKeyAccessRules + */ + function APIKeyAccessRules() { + _classCallCheck(this, APIKeyAccessRules); + + APIKeyAccessRules.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(APIKeyAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a APIKeyAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/APIKeyAccessRules} obj Optional instance to populate. + * @return {module:model/APIKeyAccessRules} The populated APIKeyAccessRules instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new APIKeyAccessRules(); + + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } + } + + return obj; + } + }]); + + return APIKeyAccessRules; +}(); +/** + * @member {String} alg + */ + + +APIKeyAccessRules.prototype['alg'] = undefined; +/** + * The public key value of the API-key. + * @member {String} key + */ + +APIKeyAccessRules.prototype['key'] = undefined; +/** + * @member {Date} modification_date + */ + +APIKeyAccessRules.prototype['modification_date'] = undefined; +var _default = APIKeyAccessRules; +exports["default"] = _default; + +/***/ }), + +/***/ 74237: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AWSIAMAccessRules model module. + * @module model/AWSIAMAccessRules + * @version 3.6.3 + */ +var AWSIAMAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new AWSIAMAccessRules. + * @alias module:model/AWSIAMAccessRules + */ + function AWSIAMAccessRules() { + _classCallCheck(this, AWSIAMAccessRules); + + AWSIAMAccessRules.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AWSIAMAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AWSIAMAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AWSIAMAccessRules} obj Optional instance to populate. + * @return {module:model/AWSIAMAccessRules} The populated AWSIAMAccessRules instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AWSIAMAccessRules(); + + if (data.hasOwnProperty('account_id')) { + obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], ['String']); + } + + if (data.hasOwnProperty('arn')) { + obj['arn'] = _ApiClient["default"].convertToType(data['arn'], ['String']); + } + + if (data.hasOwnProperty('resource_id')) { + obj['resource_id'] = _ApiClient["default"].convertToType(data['resource_id'], ['String']); + } + + if (data.hasOwnProperty('role_id')) { + obj['role_id'] = _ApiClient["default"].convertToType(data['role_id'], ['String']); + } + + if (data.hasOwnProperty('role_name')) { + obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], ['String']); + } + + if (data.hasOwnProperty('sts_endpoint')) { + obj['sts_endpoint'] = _ApiClient["default"].convertToType(data['sts_endpoint'], 'String'); + } + + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], ['String']); + } + + if (data.hasOwnProperty('user_name')) { + obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], ['String']); + } + } + + return obj; + } + }]); + + return AWSIAMAccessRules; +}(); +/** + * The list of account ids that the login is restricted to. + * @member {Array.} account_id + */ + + +AWSIAMAccessRules.prototype['account_id'] = undefined; +/** + * The list of ARNs that the login is restricted to. + * @member {Array.} arn + */ + +AWSIAMAccessRules.prototype['arn'] = undefined; +/** + * The list of resource ids that the login is restricted to. + * @member {Array.} resource_id + */ + +AWSIAMAccessRules.prototype['resource_id'] = undefined; +/** + * The list of role ids that the login is restricted to. + * @member {Array.} role_id + */ + +AWSIAMAccessRules.prototype['role_id'] = undefined; +/** + * The list of role names that the login is restricted to. + * @member {Array.} role_name + */ + +AWSIAMAccessRules.prototype['role_name'] = undefined; +/** + * The sts URL. + * @member {String} sts_endpoint + */ + +AWSIAMAccessRules.prototype['sts_endpoint'] = undefined; +/** + * The list of user ids that the login is restricted to. + * @member {Array.} user_id + */ + +AWSIAMAccessRules.prototype['user_id'] = undefined; +/** + * The list of user names that the login is restricted to. + * @member {Array.} user_name + */ + +AWSIAMAccessRules.prototype['user_name'] = undefined; +var _default = AWSIAMAccessRules; +exports["default"] = _default; + +/***/ }), + +/***/ 47437: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AWSPayload model module. + * @module model/AWSPayload + * @version 3.6.3 + */ +var AWSPayload = /*#__PURE__*/function () { + /** + * Constructs a new AWSPayload. + * @alias module:model/AWSPayload + */ + function AWSPayload() { + _classCallCheck(this, AWSPayload); + + AWSPayload.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AWSPayload, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AWSPayload from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AWSPayload} obj Optional instance to populate. + * @return {module:model/AWSPayload} The populated AWSPayload instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AWSPayload(); + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } + + if (data.hasOwnProperty('secret')) { + obj['secret'] = _ApiClient["default"].convertToType(data['secret'], 'String'); + } + } + + return obj; + } + }]); + + return AWSPayload; +}(); +/** + * @member {String} key + */ + + +AWSPayload.prototype['key'] = undefined; +/** + * @member {String} region + */ + +AWSPayload.prototype['region'] = undefined; +/** + * @member {String} secret + */ + +AWSPayload.prototype['secret'] = undefined; +var _default = AWSPayload; +exports["default"] = _default; + +/***/ }), + +/***/ 10380: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _AWSPayload = _interopRequireDefault(__nccwpck_require__(47437)); + +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AWSSecretsMigration model module. + * @module model/AWSSecretsMigration + * @version 3.6.3 + */ +var AWSSecretsMigration = /*#__PURE__*/function () { + /** + * Constructs a new AWSSecretsMigration. + * @alias module:model/AWSSecretsMigration + */ + function AWSSecretsMigration() { + _classCallCheck(this, AWSSecretsMigration); + + AWSSecretsMigration.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AWSSecretsMigration, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AWSSecretsMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AWSSecretsMigration} obj Optional instance to populate. + * @return {module:model/AWSSecretsMigration} The populated AWSSecretsMigration instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AWSSecretsMigration(); + + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _AWSPayload["default"].constructFromObject(data['payload']); + } + } + + return obj; + } + }]); + + return AWSSecretsMigration; +}(); +/** + * @member {module:model/MigrationGeneral} general + */ + + +AWSSecretsMigration.prototype['general'] = undefined; +/** + * @member {module:model/AWSPayload} payload + */ + +AWSSecretsMigration.prototype['payload'] = undefined; +var _default = AWSSecretsMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 4398: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AWSTargetDetails model module. + * @module model/AWSTargetDetails + * @version 3.6.3 + */ +var AWSTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new AWSTargetDetails. + * @alias module:model/AWSTargetDetails + */ + function AWSTargetDetails() { + _classCallCheck(this, AWSTargetDetails); + + AWSTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AWSTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AWSTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AWSTargetDetails} obj Optional instance to populate. + * @return {module:model/AWSTargetDetails} The populated AWSTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AWSTargetDetails(); + + if (data.hasOwnProperty('aws_access_key_id')) { + obj['aws_access_key_id'] = _ApiClient["default"].convertToType(data['aws_access_key_id'], 'String'); + } + + if (data.hasOwnProperty('aws_region')) { + obj['aws_region'] = _ApiClient["default"].convertToType(data['aws_region'], 'String'); + } + + if (data.hasOwnProperty('aws_secret_access_key')) { + obj['aws_secret_access_key'] = _ApiClient["default"].convertToType(data['aws_secret_access_key'], 'String'); + } + + if (data.hasOwnProperty('aws_session_token')) { + obj['aws_session_token'] = _ApiClient["default"].convertToType(data['aws_session_token'], 'String'); + } + + if (data.hasOwnProperty('use_gw_cloud_identity')) { + obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return AWSTargetDetails; +}(); +/** + * @member {String} aws_access_key_id + */ + + +AWSTargetDetails.prototype['aws_access_key_id'] = undefined; +/** + * @member {String} aws_region + */ + +AWSTargetDetails.prototype['aws_region'] = undefined; +/** + * @member {String} aws_secret_access_key + */ + +AWSTargetDetails.prototype['aws_secret_access_key'] = undefined; +/** + * @member {String} aws_session_token + */ + +AWSTargetDetails.prototype['aws_session_token'] = undefined; +/** + * @member {Boolean} use_gw_cloud_identity + */ + +AWSTargetDetails.prototype['use_gw_cloud_identity'] = undefined; +var _default = AWSTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 44466: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AccessOrGroupPermissionAssignment model module. + * @module model/AccessOrGroupPermissionAssignment + * @version 3.6.3 + */ +var AccessOrGroupPermissionAssignment = /*#__PURE__*/function () { + /** + * Constructs a new AccessOrGroupPermissionAssignment. + * @alias module:model/AccessOrGroupPermissionAssignment + */ + function AccessOrGroupPermissionAssignment() { + _classCallCheck(this, AccessOrGroupPermissionAssignment); + + AccessOrGroupPermissionAssignment.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AccessOrGroupPermissionAssignment, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AccessOrGroupPermissionAssignment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccessOrGroupPermissionAssignment} obj Optional instance to populate. + * @return {module:model/AccessOrGroupPermissionAssignment} The populated AccessOrGroupPermissionAssignment instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AccessOrGroupPermissionAssignment(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('access_type')) { + obj['access_type'] = _ApiClient["default"].convertToType(data['access_type'], 'String'); + } + + if (data.hasOwnProperty('assignment_name')) { + obj['assignment_name'] = _ApiClient["default"].convertToType(data['assignment_name'], 'String'); + } + + if (data.hasOwnProperty('assignment_type')) { + obj['assignment_type'] = _ApiClient["default"].convertToType(data['assignment_type'], 'String'); + } + + if (data.hasOwnProperty('group_id')) { + obj['group_id'] = _ApiClient["default"].convertToType(data['group_id'], 'String'); + } + + if (data.hasOwnProperty('sub_claims')) { + obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { + 'String': ['String'] + }); + } + } + + return obj; + } + }]); + + return AccessOrGroupPermissionAssignment; +}(); +/** + * @member {String} access_id + */ + + +AccessOrGroupPermissionAssignment.prototype['access_id'] = undefined; +/** + * @member {String} access_type + */ + +AccessOrGroupPermissionAssignment.prototype['access_type'] = undefined; +/** + * @member {String} assignment_name + */ + +AccessOrGroupPermissionAssignment.prototype['assignment_name'] = undefined; +/** + * @member {String} assignment_type + */ + +AccessOrGroupPermissionAssignment.prototype['assignment_type'] = undefined; +/** + * @member {String} group_id + */ + +AccessOrGroupPermissionAssignment.prototype['group_id'] = undefined; +/** + * @member {Object.>} sub_claims + */ + +AccessOrGroupPermissionAssignment.prototype['sub_claims'] = undefined; +var _default = AccessOrGroupPermissionAssignment; +exports["default"] = _default; + +/***/ }), + +/***/ 95036: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AccessPermissionAssignment model module. + * @module model/AccessPermissionAssignment + * @version 3.6.3 + */ +var AccessPermissionAssignment = /*#__PURE__*/function () { + /** + * Constructs a new AccessPermissionAssignment. + * @alias module:model/AccessPermissionAssignment + */ + function AccessPermissionAssignment() { + _classCallCheck(this, AccessPermissionAssignment); + + AccessPermissionAssignment.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AccessPermissionAssignment, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AccessPermissionAssignment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccessPermissionAssignment} obj Optional instance to populate. + * @return {module:model/AccessPermissionAssignment} The populated AccessPermissionAssignment instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AccessPermissionAssignment(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('access_type')) { + obj['access_type'] = _ApiClient["default"].convertToType(data['access_type'], 'String'); + } + + if (data.hasOwnProperty('sub_claims')) { + obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { + 'String': ['String'] + }); + } + } + + return obj; + } + }]); + + return AccessPermissionAssignment; +}(); +/** + * @member {String} access_id + */ + + +AccessPermissionAssignment.prototype['access_id'] = undefined; +/** + * @member {String} access_type + */ + +AccessPermissionAssignment.prototype['access_type'] = undefined; +/** + * @member {Object.>} sub_claims + */ + +AccessPermissionAssignment.prototype['sub_claims'] = undefined; +var _default = AccessPermissionAssignment; +exports["default"] = _default; + +/***/ }), + +/***/ 85700: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DataProtectionSection = _interopRequireDefault(__nccwpck_require__(2116)); + +var _DynamicSecretMaxTtl = _interopRequireDefault(__nccwpck_require__(31553)); + +var _PasswordPolicyInfo = _interopRequireDefault(__nccwpck_require__(34827)); + +var _RotationSecretMaxInterval = _interopRequireDefault(__nccwpck_require__(41987)); + +var _SharingPolicyInfo = _interopRequireDefault(__nccwpck_require__(78156)); + +var _UsageEventSetting = _interopRequireDefault(__nccwpck_require__(87505)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AccountGeneralSettings model module. + * @module model/AccountGeneralSettings + * @version 3.6.3 + */ +var AccountGeneralSettings = /*#__PURE__*/function () { + /** + * Constructs a new AccountGeneralSettings. + * AccountGeneralSettings describes general settings for an account + * @alias module:model/AccountGeneralSettings + */ + function AccountGeneralSettings() { + _classCallCheck(this, AccountGeneralSettings); + + AccountGeneralSettings.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AccountGeneralSettings, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AccountGeneralSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccountGeneralSettings} obj Optional instance to populate. + * @return {module:model/AccountGeneralSettings} The populated AccountGeneralSettings instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AccountGeneralSettings(); + + if (data.hasOwnProperty('account_default_key_item_id')) { + obj['account_default_key_item_id'] = _ApiClient["default"].convertToType(data['account_default_key_item_id'], 'Number'); + } + + if (data.hasOwnProperty('account_default_key_name')) { + obj['account_default_key_name'] = _ApiClient["default"].convertToType(data['account_default_key_name'], 'String'); + } + + if (data.hasOwnProperty('auth_usage_event')) { + obj['auth_usage_event'] = _UsageEventSetting["default"].constructFromObject(data['auth_usage_event']); + } + + if (data.hasOwnProperty('data_protection_section')) { + obj['data_protection_section'] = _DataProtectionSection["default"].constructFromObject(data['data_protection_section']); + } + + if (data.hasOwnProperty('dynamic_secret_max_ttl')) { + obj['dynamic_secret_max_ttl'] = _DynamicSecretMaxTtl["default"].constructFromObject(data['dynamic_secret_max_ttl']); + } + + if (data.hasOwnProperty('enable_request_for_access')) { + obj['enable_request_for_access'] = _ApiClient["default"].convertToType(data['enable_request_for_access'], 'Boolean'); + } + + if (data.hasOwnProperty('invalid_characters')) { + obj['invalid_characters'] = _ApiClient["default"].convertToType(data['invalid_characters'], 'String'); + } + + if (data.hasOwnProperty('item_usage_event')) { + obj['item_usage_event'] = _UsageEventSetting["default"].constructFromObject(data['item_usage_event']); + } + + if (data.hasOwnProperty('lock_default_key')) { + obj['lock_default_key'] = _ApiClient["default"].convertToType(data['lock_default_key'], 'Boolean'); + } + + if (data.hasOwnProperty('password_policy')) { + obj['password_policy'] = _PasswordPolicyInfo["default"].constructFromObject(data['password_policy']); + } + + if (data.hasOwnProperty('protect_items_by_default')) { + obj['protect_items_by_default'] = _ApiClient["default"].convertToType(data['protect_items_by_default'], 'Boolean'); + } + + if (data.hasOwnProperty('rotation_secret_max_interval')) { + obj['rotation_secret_max_interval'] = _RotationSecretMaxInterval["default"].constructFromObject(data['rotation_secret_max_interval']); + } + + if (data.hasOwnProperty('sharing_policy')) { + obj['sharing_policy'] = _SharingPolicyInfo["default"].constructFromObject(data['sharing_policy']); + } + } + + return obj; + } + }]); + + return AccountGeneralSettings; +}(); +/** + * AccountDefaultKeyItemID is the item ID of the DFC key item configured as the default protection key + * @member {Number} account_default_key_item_id + */ + + +AccountGeneralSettings.prototype['account_default_key_item_id'] = undefined; +/** + * AccountDefaultKeyName is the name of the DFC key item configured as the default key This is here simply for the response to include the item name in addition to the display ID so the client can properly show this to the user. It will not be saved to the DB, only the AccountDefaultKeyItemID will. + * @member {String} account_default_key_name + */ + +AccountGeneralSettings.prototype['account_default_key_name'] = undefined; +/** + * @member {module:model/UsageEventSetting} auth_usage_event + */ + +AccountGeneralSettings.prototype['auth_usage_event'] = undefined; +/** + * @member {module:model/DataProtectionSection} data_protection_section + */ + +AccountGeneralSettings.prototype['data_protection_section'] = undefined; +/** + * @member {module:model/DynamicSecretMaxTtl} dynamic_secret_max_ttl + */ + +AccountGeneralSettings.prototype['dynamic_secret_max_ttl'] = undefined; +/** + * @member {Boolean} enable_request_for_access + */ + +AccountGeneralSettings.prototype['enable_request_for_access'] = undefined; +/** + * InvalidCharacters is the invalid characters for items/targets/roles/auths/notifier_forwarder naming convention + * @member {String} invalid_characters + */ + +AccountGeneralSettings.prototype['invalid_characters'] = undefined; +/** + * @member {module:model/UsageEventSetting} item_usage_event + */ + +AccountGeneralSettings.prototype['item_usage_event'] = undefined; +/** + * LockDefaultKey determines whether the configured default key can be updated by end-users on a per-request basis true - all requests use the configured default key false - every request can determine its protection key (default) nil - change nothing (every request can determine its protection key (default)) This parameter is only relevant if AccountDefaultKeyItemID is not empty + * @member {Boolean} lock_default_key + */ + +AccountGeneralSettings.prototype['lock_default_key'] = undefined; +/** + * @member {module:model/PasswordPolicyInfo} password_policy + */ + +AccountGeneralSettings.prototype['password_policy'] = undefined; +/** + * @member {Boolean} protect_items_by_default + */ + +AccountGeneralSettings.prototype['protect_items_by_default'] = undefined; +/** + * @member {module:model/RotationSecretMaxInterval} rotation_secret_max_interval + */ + +AccountGeneralSettings.prototype['rotation_secret_max_interval'] = undefined; +/** + * @member {module:model/SharingPolicyInfo} sharing_policy + */ + +AccountGeneralSettings.prototype['sharing_policy'] = undefined; +var _default = AccountGeneralSettings; +exports["default"] = _default; + +/***/ }), + +/***/ 57060: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _ObjectVersionSettingsOutput = _interopRequireDefault(__nccwpck_require__(82163)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AccountObjectVersionSettingsOutput model module. + * @module model/AccountObjectVersionSettingsOutput + * @version 3.6.3 + */ +var AccountObjectVersionSettingsOutput = /*#__PURE__*/function () { + /** + * Constructs a new AccountObjectVersionSettingsOutput. + * @alias module:model/AccountObjectVersionSettingsOutput + */ + function AccountObjectVersionSettingsOutput() { + _classCallCheck(this, AccountObjectVersionSettingsOutput); + + AccountObjectVersionSettingsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AccountObjectVersionSettingsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AccountObjectVersionSettingsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AccountObjectVersionSettingsOutput} obj Optional instance to populate. + * @return {module:model/AccountObjectVersionSettingsOutput} The populated AccountObjectVersionSettingsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AccountObjectVersionSettingsOutput(); + + if (data.hasOwnProperty('default-versioning')) { + obj['default-versioning'] = _ApiClient["default"].convertToType(data['default-versioning'], 'Boolean'); + } + + if (data.hasOwnProperty('force_new_versions')) { + obj['force_new_versions'] = _ApiClient["default"].convertToType(data['force_new_versions'], 'Boolean'); + } + + if (data.hasOwnProperty('items')) { + obj['items'] = _ApiClient["default"].convertToType(data['items'], [_ObjectVersionSettingsOutput["default"]]); + } + } + + return obj; + } + }]); + + return AccountObjectVersionSettingsOutput; +}(); +/** + * @member {Boolean} default-versioning + */ + + +AccountObjectVersionSettingsOutput.prototype['default-versioning'] = undefined; +/** + * @member {Boolean} force_new_versions + */ + +AccountObjectVersionSettingsOutput.prototype['force_new_versions'] = undefined; +/** + * @member {Array.} items + */ + +AccountObjectVersionSettingsOutput.prototype['items'] = undefined; +var _default = AccountObjectVersionSettingsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 46703: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _ActiveDirectoryPayload = _interopRequireDefault(__nccwpck_require__(941)); + +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ActiveDirectoryMigration model module. + * @module model/ActiveDirectoryMigration + * @version 3.6.3 + */ +var ActiveDirectoryMigration = /*#__PURE__*/function () { + /** + * Constructs a new ActiveDirectoryMigration. + * @alias module:model/ActiveDirectoryMigration + */ + function ActiveDirectoryMigration() { + _classCallCheck(this, ActiveDirectoryMigration); + + ActiveDirectoryMigration.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ActiveDirectoryMigration, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ActiveDirectoryMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ActiveDirectoryMigration} obj Optional instance to populate. + * @return {module:model/ActiveDirectoryMigration} The populated ActiveDirectoryMigration instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ActiveDirectoryMigration(); + + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _ActiveDirectoryPayload["default"].constructFromObject(data['payload']); + } + } + + return obj; + } + }]); + + return ActiveDirectoryMigration; +}(); +/** + * @member {module:model/MigrationGeneral} general + */ + + +ActiveDirectoryMigration.prototype['general'] = undefined; +/** + * @member {module:model/ActiveDirectoryPayload} payload + */ + +ActiveDirectoryMigration.prototype['payload'] = undefined; +var _default = ActiveDirectoryMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 941: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ActiveDirectoryPayload model module. + * @module model/ActiveDirectoryPayload + * @version 3.6.3 + */ +var ActiveDirectoryPayload = /*#__PURE__*/function () { + /** + * Constructs a new ActiveDirectoryPayload. + * @alias module:model/ActiveDirectoryPayload + */ + function ActiveDirectoryPayload() { + _classCallCheck(this, ActiveDirectoryPayload); + + ActiveDirectoryPayload.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ActiveDirectoryPayload, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ActiveDirectoryPayload from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ActiveDirectoryPayload} obj Optional instance to populate. + * @return {module:model/ActiveDirectoryPayload} The populated ActiveDirectoryPayload instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ActiveDirectoryPayload(); + + if (data.hasOwnProperty('active_directory_target_id')) { + obj['active_directory_target_id'] = _ApiClient["default"].convertToType(data['active_directory_target_id'], 'Number'); + } + + if (data.hasOwnProperty('auto_rotate')) { + obj['auto_rotate'] = _ApiClient["default"].convertToType(data['auto_rotate'], 'Boolean'); + } + + if (data.hasOwnProperty('auto_rotate_interval_in_days')) { + obj['auto_rotate_interval_in_days'] = _ApiClient["default"].convertToType(data['auto_rotate_interval_in_days'], 'Number'); + } + + if (data.hasOwnProperty('auto_rotate_rotation_hour')) { + obj['auto_rotate_rotation_hour'] = _ApiClient["default"].convertToType(data['auto_rotate_rotation_hour'], 'Number'); + } + + if (data.hasOwnProperty('computer_base_dn')) { + obj['computer_base_dn'] = _ApiClient["default"].convertToType(data['computer_base_dn'], 'String'); + } + + if (data.hasOwnProperty('discover_local_users')) { + obj['discover_local_users'] = _ApiClient["default"].convertToType(data['discover_local_users'], 'Boolean'); + } + + if (data.hasOwnProperty('discover_services')) { + obj['discover_services'] = _ApiClient["default"].convertToType(data['discover_services'], 'Boolean'); + } + + if (data.hasOwnProperty('discovery_types')) { + obj['discovery_types'] = _ApiClient["default"].convertToType(data['discovery_types'], ['String']); + } + + if (data.hasOwnProperty('domain_name')) { + obj['domain_name'] = _ApiClient["default"].convertToType(data['domain_name'], 'String'); + } + + if (data.hasOwnProperty('domain_server_targets_path_template')) { + obj['domain_server_targets_path_template'] = _ApiClient["default"].convertToType(data['domain_server_targets_path_template'], 'String'); + } + + if (data.hasOwnProperty('domain_users_rotated_secrets_path_template')) { + obj['domain_users_rotated_secrets_path_template'] = _ApiClient["default"].convertToType(data['domain_users_rotated_secrets_path_template'], 'String'); + } + + if (data.hasOwnProperty('enable_rdp_sra')) { + obj['enable_rdp_sra'] = _ApiClient["default"].convertToType(data['enable_rdp_sra'], 'Boolean'); + } + + if (data.hasOwnProperty('local_users_ignore_list')) { + obj['local_users_ignore_list'] = _ApiClient["default"].convertToType(data['local_users_ignore_list'], { + 'String': 'Boolean' + }); + } + + if (data.hasOwnProperty('local_users_rotated_secrets_path_template')) { + obj['local_users_rotated_secrets_path_template'] = _ApiClient["default"].convertToType(data['local_users_rotated_secrets_path_template'], 'String'); + } + + if (data.hasOwnProperty('os_filter')) { + obj['os_filter'] = _ApiClient["default"].convertToType(data['os_filter'], 'String'); + } + + if (data.hasOwnProperty('ssh_port')) { + obj['ssh_port'] = _ApiClient["default"].convertToType(data['ssh_port'], 'String'); + } + + if (data.hasOwnProperty('target_format')) { + obj['target_format'] = _ApiClient["default"].convertToType(data['target_format'], 'String'); + } + + if (data.hasOwnProperty('targets_type')) { + obj['targets_type'] = _ApiClient["default"].convertToType(data['targets_type'], 'String'); + } + + if (data.hasOwnProperty('user_base_dn')) { + obj['user_base_dn'] = _ApiClient["default"].convertToType(data['user_base_dn'], 'String'); + } + + if (data.hasOwnProperty('user_groups')) { + obj['user_groups'] = _ApiClient["default"].convertToType(data['user_groups'], ['String']); + } + + if (data.hasOwnProperty('winrm_over_http')) { + obj['winrm_over_http'] = _ApiClient["default"].convertToType(data['winrm_over_http'], 'Boolean'); + } + + if (data.hasOwnProperty('winrm_port')) { + obj['winrm_port'] = _ApiClient["default"].convertToType(data['winrm_port'], 'String'); + } + } + + return obj; + } + }]); + + return ActiveDirectoryPayload; +}(); +/** + * @member {Number} active_directory_target_id + */ + + +ActiveDirectoryPayload.prototype['active_directory_target_id'] = undefined; +/** + * @member {Boolean} auto_rotate + */ + +ActiveDirectoryPayload.prototype['auto_rotate'] = undefined; +/** + * @member {Number} auto_rotate_interval_in_days + */ + +ActiveDirectoryPayload.prototype['auto_rotate_interval_in_days'] = undefined; +/** + * @member {Number} auto_rotate_rotation_hour + */ + +ActiveDirectoryPayload.prototype['auto_rotate_rotation_hour'] = undefined; +/** + * @member {String} computer_base_dn + */ + +ActiveDirectoryPayload.prototype['computer_base_dn'] = undefined; +/** + * Deprecated + * @member {Boolean} discover_local_users + */ + +ActiveDirectoryPayload.prototype['discover_local_users'] = undefined; +/** + * @member {Boolean} discover_services + */ + +ActiveDirectoryPayload.prototype['discover_services'] = undefined; +/** + * @member {Array.} discovery_types + */ + +ActiveDirectoryPayload.prototype['discovery_types'] = undefined; +/** + * @member {String} domain_name + */ + +ActiveDirectoryPayload.prototype['domain_name'] = undefined; +/** + * @member {String} domain_server_targets_path_template + */ + +ActiveDirectoryPayload.prototype['domain_server_targets_path_template'] = undefined; +/** + * @member {String} domain_users_rotated_secrets_path_template + */ + +ActiveDirectoryPayload.prototype['domain_users_rotated_secrets_path_template'] = undefined; +/** + * @member {Boolean} enable_rdp_sra + */ + +ActiveDirectoryPayload.prototype['enable_rdp_sra'] = undefined; +/** + * @member {Object.} local_users_ignore_list + */ + +ActiveDirectoryPayload.prototype['local_users_ignore_list'] = undefined; +/** + * @member {String} local_users_rotated_secrets_path_template + */ + +ActiveDirectoryPayload.prototype['local_users_rotated_secrets_path_template'] = undefined; +/** + * @member {String} os_filter + */ + +ActiveDirectoryPayload.prototype['os_filter'] = undefined; +/** + * @member {String} ssh_port + */ + +ActiveDirectoryPayload.prototype['ssh_port'] = undefined; +/** + * @member {String} target_format + */ + +ActiveDirectoryPayload.prototype['target_format'] = undefined; +/** + * @member {String} targets_type + */ + +ActiveDirectoryPayload.prototype['targets_type'] = undefined; +/** + * @member {String} user_base_dn + */ + +ActiveDirectoryPayload.prototype['user_base_dn'] = undefined; +/** + * @member {Array.} user_groups + */ + +ActiveDirectoryPayload.prototype['user_groups'] = undefined; +/** + * @member {Boolean} winrm_over_http + */ + +ActiveDirectoryPayload.prototype['winrm_over_http'] = undefined; +/** + * @member {String} winrm_port + */ + +ActiveDirectoryPayload.prototype['winrm_port'] = undefined; +var _default = ActiveDirectoryPayload; +exports["default"] = _default; + +/***/ }), + +/***/ 51400: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AddGatewayAllowedAccessId model module. + * @module model/AddGatewayAllowedAccessId + * @version 3.6.3 + */ +var AddGatewayAllowedAccessId = /*#__PURE__*/function () { + /** + * Constructs a new AddGatewayAllowedAccessId. + * Responses: default: errorResponse 200: addGatewayAllowedAccessIdResponse + * @alias module:model/AddGatewayAllowedAccessId + * @param accessId {String} The access id that will be able to access to gateway + * @param clusterName {String} The name of the updated cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster + */ + function AddGatewayAllowedAccessId(accessId, clusterName) { + _classCallCheck(this, AddGatewayAllowedAccessId); + + AddGatewayAllowedAccessId.initialize(this, accessId, clusterName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AddGatewayAllowedAccessId, null, [{ + key: "initialize", + value: function initialize(obj, accessId, clusterName) { + obj['access-id'] = accessId; + obj['cluster-name'] = clusterName; + } + /** + * Constructs a AddGatewayAllowedAccessId from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AddGatewayAllowedAccessId} obj Optional instance to populate. + * @return {module:model/AddGatewayAllowedAccessId} The populated AddGatewayAllowedAccessId instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AddGatewayAllowedAccessId(); + + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('cluster-name')) { + obj['cluster-name'] = _ApiClient["default"].convertToType(data['cluster-name'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('sub-claims')) { + obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return AddGatewayAllowedAccessId; +}(); +/** + * The access id that will be able to access to gateway + * @member {String} access-id + */ + + +AddGatewayAllowedAccessId.prototype['access-id'] = undefined; +/** + * The name of the updated cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster + * @member {String} cluster-name + */ + +AddGatewayAllowedAccessId.prototype['cluster-name'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +AddGatewayAllowedAccessId.prototype['json'] = false; +/** + * key/val of sub claims, e.g group=admins,developers + * @member {Object.} sub-claims + */ + +AddGatewayAllowedAccessId.prototype['sub-claims'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +AddGatewayAllowedAccessId.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +AddGatewayAllowedAccessId.prototype['uid-token'] = undefined; +var _default = AddGatewayAllowedAccessId; +exports["default"] = _default; + +/***/ }), + +/***/ 32299: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _AllowedAccessOld = _interopRequireDefault(__nccwpck_require__(50727)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AdminsConfigPart model module. + * @module model/AdminsConfigPart + * @version 3.6.3 + */ +var AdminsConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new AdminsConfigPart. + * @alias module:model/AdminsConfigPart + */ + function AdminsConfigPart() { + _classCallCheck(this, AdminsConfigPart); + + AdminsConfigPart.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AdminsConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AdminsConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AdminsConfigPart} obj Optional instance to populate. + * @return {module:model/AdminsConfigPart} The populated AdminsConfigPart instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AdminsConfigPart(); + + if (data.hasOwnProperty('admins_migration_status')) { + obj['admins_migration_status'] = _ApiClient["default"].convertToType(data['admins_migration_status'], 'Number'); + } + + if (data.hasOwnProperty('allowed_access')) { + obj['allowed_access'] = _ApiClient["default"].convertToType(data['allowed_access'], { + 'String': _AllowedAccessOld["default"] + }); + } + } + + return obj; + } + }]); + + return AdminsConfigPart; +}(); +/** + * @member {Number} admins_migration_status + */ + + +AdminsConfigPart.prototype['admins_migration_status'] = undefined; +/** + * @member {Object.} allowed_access + */ + +AdminsConfigPart.prototype['allowed_access'] = undefined; +var _default = AdminsConfigPart; +exports["default"] = _default; + +/***/ }), + +/***/ 45995: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _AdminsConfigPart = _interopRequireDefault(__nccwpck_require__(32299)); + +var _CFConfigPart = _interopRequireDefault(__nccwpck_require__(6102)); + +var _CacheConfigPart = _interopRequireDefault(__nccwpck_require__(31951)); + +var _DefaultConfigPart = _interopRequireDefault(__nccwpck_require__(12332)); + +var _GatewayMessageQueueInfo = _interopRequireDefault(__nccwpck_require__(78626)); + +var _GeneralConfigPart = _interopRequireDefault(__nccwpck_require__(94565)); + +var _K8SAuthsConfigPart = _interopRequireDefault(__nccwpck_require__(37768)); + +var _KMIPConfigPart = _interopRequireDefault(__nccwpck_require__(90506)); + +var _LdapConfigPart = _interopRequireDefault(__nccwpck_require__(2846)); + +var _LeadershipConfigPart = _interopRequireDefault(__nccwpck_require__(25900)); + +var _LogForwardingConfigPart = _interopRequireDefault(__nccwpck_require__(65736)); + +var _MigrationsConfigPart = _interopRequireDefault(__nccwpck_require__(27734)); + +var _ProducersConfigPart = _interopRequireDefault(__nccwpck_require__(24318)); + +var _RotatorsConfigPart = _interopRequireDefault(__nccwpck_require__(37665)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AkeylessGatewayConfig model module. + * @module model/AkeylessGatewayConfig + * @version 3.6.3 + */ +var AkeylessGatewayConfig = /*#__PURE__*/function () { + /** + * Constructs a new AkeylessGatewayConfig. + * @alias module:model/AkeylessGatewayConfig + */ + function AkeylessGatewayConfig() { + _classCallCheck(this, AkeylessGatewayConfig); + + AkeylessGatewayConfig.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AkeylessGatewayConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AkeylessGatewayConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AkeylessGatewayConfig} obj Optional instance to populate. + * @return {module:model/AkeylessGatewayConfig} The populated AkeylessGatewayConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AkeylessGatewayConfig(); + + if (data.hasOwnProperty('admins')) { + obj['admins'] = _AdminsConfigPart["default"].constructFromObject(data['admins']); + } + + if (data.hasOwnProperty('cache')) { + obj['cache'] = _CacheConfigPart["default"].constructFromObject(data['cache']); + } + + if (data.hasOwnProperty('cf')) { + obj['cf'] = _CFConfigPart["default"].constructFromObject(data['cf']); + } + + if (data.hasOwnProperty('config_protection_key_name')) { + obj['config_protection_key_name'] = _ApiClient["default"].convertToType(data['config_protection_key_name'], 'String'); + } + + if (data.hasOwnProperty('general')) { + obj['general'] = _GeneralConfigPart["default"].constructFromObject(data['general']); + } + + if (data.hasOwnProperty('k8s_auths')) { + obj['k8s_auths'] = _K8SAuthsConfigPart["default"].constructFromObject(data['k8s_auths']); + } + + if (data.hasOwnProperty('kmip_clients')) { + obj['kmip_clients'] = _KMIPConfigPart["default"].constructFromObject(data['kmip_clients']); + } + + if (data.hasOwnProperty('ldap')) { + obj['ldap'] = _LdapConfigPart["default"].constructFromObject(data['ldap']); + } + + if (data.hasOwnProperty('leadership')) { + obj['leadership'] = _LeadershipConfigPart["default"].constructFromObject(data['leadership']); + } + + if (data.hasOwnProperty('log_forwarding')) { + obj['log_forwarding'] = _LogForwardingConfigPart["default"].constructFromObject(data['log_forwarding']); + } + + if (data.hasOwnProperty('message_queue_info')) { + obj['message_queue_info'] = _GatewayMessageQueueInfo["default"].constructFromObject(data['message_queue_info']); + } + + if (data.hasOwnProperty('migrations')) { + obj['migrations'] = _MigrationsConfigPart["default"].constructFromObject(data['migrations']); + } + + if (data.hasOwnProperty('producers')) { + obj['producers'] = _ProducersConfigPart["default"].constructFromObject(data['producers']); + } + + if (data.hasOwnProperty('rotators')) { + obj['rotators'] = _RotatorsConfigPart["default"].constructFromObject(data['rotators']); + } + + if (data.hasOwnProperty('saml')) { + obj['saml'] = _DefaultConfigPart["default"].constructFromObject(data['saml']); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return AkeylessGatewayConfig; +}(); +/** + * @member {module:model/AdminsConfigPart} admins + */ + + +AkeylessGatewayConfig.prototype['admins'] = undefined; +/** + * @member {module:model/CacheConfigPart} cache + */ + +AkeylessGatewayConfig.prototype['cache'] = undefined; +/** + * @member {module:model/CFConfigPart} cf + */ + +AkeylessGatewayConfig.prototype['cf'] = undefined; +/** + * @member {String} config_protection_key_name + */ + +AkeylessGatewayConfig.prototype['config_protection_key_name'] = undefined; +/** + * @member {module:model/GeneralConfigPart} general + */ + +AkeylessGatewayConfig.prototype['general'] = undefined; +/** + * @member {module:model/K8SAuthsConfigPart} k8s_auths + */ + +AkeylessGatewayConfig.prototype['k8s_auths'] = undefined; +/** + * @member {module:model/KMIPConfigPart} kmip_clients + */ + +AkeylessGatewayConfig.prototype['kmip_clients'] = undefined; +/** + * @member {module:model/LdapConfigPart} ldap + */ + +AkeylessGatewayConfig.prototype['ldap'] = undefined; +/** + * @member {module:model/LeadershipConfigPart} leadership + */ + +AkeylessGatewayConfig.prototype['leadership'] = undefined; +/** + * @member {module:model/LogForwardingConfigPart} log_forwarding + */ + +AkeylessGatewayConfig.prototype['log_forwarding'] = undefined; +/** + * @member {module:model/GatewayMessageQueueInfo} message_queue_info + */ + +AkeylessGatewayConfig.prototype['message_queue_info'] = undefined; +/** + * @member {module:model/MigrationsConfigPart} migrations + */ + +AkeylessGatewayConfig.prototype['migrations'] = undefined; +/** + * @member {module:model/ProducersConfigPart} producers + */ + +AkeylessGatewayConfig.prototype['producers'] = undefined; +/** + * @member {module:model/RotatorsConfigPart} rotators + */ + +AkeylessGatewayConfig.prototype['rotators'] = undefined; +/** + * @member {module:model/DefaultConfigPart} saml + */ + +AkeylessGatewayConfig.prototype['saml'] = undefined; +/** + * @member {Number} version + */ + +AkeylessGatewayConfig.prototype['version'] = undefined; +var _default = AkeylessGatewayConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 80541: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _CertificateAnalyticAggregation = _interopRequireDefault(__nccwpck_require__(5346)); + +var _ClientsUsageReport = _interopRequireDefault(__nccwpck_require__(6313)); + +var _UsageReportSummary = _interopRequireDefault(__nccwpck_require__(31923)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AllAnalyticsData model module. + * @module model/AllAnalyticsData + * @version 3.6.3 + */ +var AllAnalyticsData = /*#__PURE__*/function () { + /** + * Constructs a new AllAnalyticsData. + * @alias module:model/AllAnalyticsData + */ + function AllAnalyticsData() { + _classCallCheck(this, AllAnalyticsData); + + AllAnalyticsData.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AllAnalyticsData, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AllAnalyticsData from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AllAnalyticsData} obj Optional instance to populate. + * @return {module:model/AllAnalyticsData} The populated AllAnalyticsData instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AllAnalyticsData(); + + if (data.hasOwnProperty('analytics_data')) { + obj['analytics_data'] = _ApiClient["default"].convertToType(data['analytics_data'], { + 'String': [['String']] + }); + } + + if (data.hasOwnProperty('certificates_expiry_data')) { + obj['certificates_expiry_data'] = _CertificateAnalyticAggregation["default"].constructFromObject(data['certificates_expiry_data']); + } + + if (data.hasOwnProperty('clients_usage_reports')) { + obj['clients_usage_reports'] = _ApiClient["default"].convertToType(data['clients_usage_reports'], { + 'String': _ClientsUsageReport["default"] + }); + } + + if (data.hasOwnProperty('date_updated')) { + obj['date_updated'] = _ApiClient["default"].convertToType(data['date_updated'], 'Number'); + } + + if (data.hasOwnProperty('usage_reports')) { + obj['usage_reports'] = _ApiClient["default"].convertToType(data['usage_reports'], { + 'String': _UsageReportSummary["default"] + }); + } + } + + return obj; + } + }]); + + return AllAnalyticsData; +}(); +/** + * @member {Object.>>} analytics_data + */ + + +AllAnalyticsData.prototype['analytics_data'] = undefined; +/** + * @member {module:model/CertificateAnalyticAggregation} certificates_expiry_data + */ + +AllAnalyticsData.prototype['certificates_expiry_data'] = undefined; +/** + * @member {Object.} clients_usage_reports + */ + +AllAnalyticsData.prototype['clients_usage_reports'] = undefined; +/** + * @member {Number} date_updated + */ + +AllAnalyticsData.prototype['date_updated'] = undefined; +/** + * @member {Object.} usage_reports + */ + +AllAnalyticsData.prototype['usage_reports'] = undefined; +var _default = AllAnalyticsData; +exports["default"] = _default; + +/***/ }), + +/***/ 61540: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AllowedAccess model module. + * @module model/AllowedAccess + * @version 3.6.3 + */ +var AllowedAccess = /*#__PURE__*/function () { + /** + * Constructs a new AllowedAccess. + * @alias module:model/AllowedAccess + */ + function AllowedAccess() { + _classCallCheck(this, AllowedAccess); + + AllowedAccess.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AllowedAccess, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AllowedAccess from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AllowedAccess} obj Optional instance to populate. + * @return {module:model/AllowedAccess} The populated AllowedAccess instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AllowedAccess(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('access_type')) { + obj['access_type'] = _ApiClient["default"].convertToType(data['access_type'], 'String'); + } + + if (data.hasOwnProperty('cluster_id')) { + obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'Number'); + } + + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('editable')) { + obj['editable'] = _ApiClient["default"].convertToType(data['editable'], 'Boolean'); + } + + if (data.hasOwnProperty('error')) { + obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); + } + + if (data.hasOwnProperty('is_valid')) { + obj['is_valid'] = _ApiClient["default"].convertToType(data['is_valid'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('permissions')) { + obj['permissions'] = _ApiClient["default"].convertToType(data['permissions'], ['String']); + } + + if (data.hasOwnProperty('sub_claims')) { + obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { + 'String': ['String'] + }); + } + + if (data.hasOwnProperty('sub_claims_case_insensitive')) { + obj['sub_claims_case_insensitive'] = _ApiClient["default"].convertToType(data['sub_claims_case_insensitive'], 'Boolean'); + } + + if (data.hasOwnProperty('updated_at')) { + obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date'); + } + } + + return obj; + } + }]); + + return AllowedAccess; +}(); +/** + * @member {String} access_id + */ + + +AllowedAccess.prototype['access_id'] = undefined; +/** + * @member {String} access_type + */ + +AllowedAccess.prototype['access_type'] = undefined; +/** + * @member {Number} cluster_id + */ + +AllowedAccess.prototype['cluster_id'] = undefined; +/** + * @member {Date} created_at + */ + +AllowedAccess.prototype['created_at'] = undefined; +/** + * @member {String} description + */ + +AllowedAccess.prototype['description'] = undefined; +/** + * @member {Boolean} editable + */ + +AllowedAccess.prototype['editable'] = undefined; +/** + * @member {String} error + */ + +AllowedAccess.prototype['error'] = undefined; +/** + * @member {Number} id + */ + +AllowedAccess.prototype['id'] = undefined; +/** + * @member {Boolean} is_valid + */ + +AllowedAccess.prototype['is_valid'] = undefined; +/** + * @member {String} name + */ + +AllowedAccess.prototype['name'] = undefined; +/** + * @member {Array.} permissions + */ + +AllowedAccess.prototype['permissions'] = undefined; +/** + * @member {Object.>} sub_claims + */ + +AllowedAccess.prototype['sub_claims'] = undefined; +/** + * @member {Boolean} sub_claims_case_insensitive + */ + +AllowedAccess.prototype['sub_claims_case_insensitive'] = undefined; +/** + * @member {Date} updated_at + */ + +AllowedAccess.prototype['updated_at'] = undefined; +var _default = AllowedAccess; +exports["default"] = _default; + +/***/ }), + +/***/ 50727: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AllowedAccessOld model module. + * @module model/AllowedAccessOld + * @version 3.6.3 + */ +var AllowedAccessOld = /*#__PURE__*/function () { + /** + * Constructs a new AllowedAccessOld. + * Deprecated: AllowedAccessOld please use Gator allowed_access API structs such as AllowedAccessInput/AllowedAccess + * @alias module:model/AllowedAccessOld + */ + function AllowedAccessOld() { + _classCallCheck(this, AllowedAccessOld); + + AllowedAccessOld.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AllowedAccessOld, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AllowedAccessOld from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AllowedAccessOld} obj Optional instance to populate. + * @return {module:model/AllowedAccessOld} The populated AllowedAccessOld instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AllowedAccessOld(); + + if (data.hasOwnProperty('acc_id')) { + obj['acc_id'] = _ApiClient["default"].convertToType(data['acc_id'], 'String'); + } + + if (data.hasOwnProperty('access_permissions')) { + obj['access_permissions'] = _ApiClient["default"].convertToType(data['access_permissions'], ['String']); + } + + if (data.hasOwnProperty('access_rules_type')) { + obj['access_rules_type'] = _ApiClient["default"].convertToType(data['access_rules_type'], 'String'); + } + + if (data.hasOwnProperty('allowed_api')) { + obj['allowed_api'] = _ApiClient["default"].convertToType(data['allowed_api'], 'Boolean'); + } + + if (data.hasOwnProperty('alloweds_login')) { + obj['alloweds_login'] = _ApiClient["default"].convertToType(data['alloweds_login'], 'Boolean'); + } + + if (data.hasOwnProperty('editable')) { + obj['editable'] = _ApiClient["default"].convertToType(data['editable'], 'Boolean'); + } + + if (data.hasOwnProperty('err_msg')) { + obj['err_msg'] = _ApiClient["default"].convertToType(data['err_msg'], 'String'); + } + + if (data.hasOwnProperty('hash')) { + obj['hash'] = _ApiClient["default"].convertToType(data['hash'], 'String'); + } + + if (data.hasOwnProperty('is_valid')) { + obj['is_valid'] = _ApiClient["default"].convertToType(data['is_valid'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('sub_claims')) { + obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { + 'String': ['String'] + }); + } + } + + return obj; + } + }]); + + return AllowedAccessOld; +}(); +/** + * @member {String} acc_id + */ + + +AllowedAccessOld.prototype['acc_id'] = undefined; +/** + * @member {Array.} access_permissions + */ + +AllowedAccessOld.prototype['access_permissions'] = undefined; +/** + * @member {String} access_rules_type + */ + +AllowedAccessOld.prototype['access_rules_type'] = undefined; +/** + * @member {Boolean} allowed_api + */ + +AllowedAccessOld.prototype['allowed_api'] = undefined; +/** + * @member {Boolean} alloweds_login + */ + +AllowedAccessOld.prototype['alloweds_login'] = undefined; +/** + * @member {Boolean} editable + */ + +AllowedAccessOld.prototype['editable'] = undefined; +/** + * @member {String} err_msg + */ + +AllowedAccessOld.prototype['err_msg'] = undefined; +/** + * @member {String} hash + */ + +AllowedAccessOld.prototype['hash'] = undefined; +/** + * @member {Boolean} is_valid + */ + +AllowedAccessOld.prototype['is_valid'] = undefined; +/** + * @member {String} name + */ + +AllowedAccessOld.prototype['name'] = undefined; +/** + * @member {Object.>} sub_claims + */ + +AllowedAccessOld.prototype['sub_claims'] = undefined; +var _default = AllowedAccessOld; +exports["default"] = _default; + +/***/ }), + +/***/ 99747: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ArtifactoryTargetDetails model module. + * @module model/ArtifactoryTargetDetails + * @version 3.6.3 + */ +var ArtifactoryTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new ArtifactoryTargetDetails. + * @alias module:model/ArtifactoryTargetDetails + */ + function ArtifactoryTargetDetails() { + _classCallCheck(this, ArtifactoryTargetDetails); + + ArtifactoryTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ArtifactoryTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ArtifactoryTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ArtifactoryTargetDetails} obj Optional instance to populate. + * @return {module:model/ArtifactoryTargetDetails} The populated ArtifactoryTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ArtifactoryTargetDetails(); + + if (data.hasOwnProperty('artifactory_admin_apikey')) { + obj['artifactory_admin_apikey'] = _ApiClient["default"].convertToType(data['artifactory_admin_apikey'], 'String'); + } + + if (data.hasOwnProperty('artifactory_admin_username')) { + obj['artifactory_admin_username'] = _ApiClient["default"].convertToType(data['artifactory_admin_username'], 'String'); + } + + if (data.hasOwnProperty('artifactory_base_url')) { + obj['artifactory_base_url'] = _ApiClient["default"].convertToType(data['artifactory_base_url'], 'String'); + } + } + + return obj; + } + }]); + + return ArtifactoryTargetDetails; +}(); +/** + * @member {String} artifactory_admin_apikey + */ + + +ArtifactoryTargetDetails.prototype['artifactory_admin_apikey'] = undefined; +/** + * @member {String} artifactory_admin_username + */ + +ArtifactoryTargetDetails.prototype['artifactory_admin_username'] = undefined; +/** + * @member {String} artifactory_base_url + */ + +ArtifactoryTargetDetails.prototype['artifactory_base_url'] = undefined; +var _default = ArtifactoryTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 17378: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AssocRoleAuthMethod model module. + * @module model/AssocRoleAuthMethod + * @version 3.6.3 + */ +var AssocRoleAuthMethod = /*#__PURE__*/function () { + /** + * Constructs a new AssocRoleAuthMethod. + * assocRoleAuthMethod is a command that creates an association between role and auth method. + * @alias module:model/AssocRoleAuthMethod + * @param amName {String} The auth method to associate + * @param roleName {String} The role to associate + */ + function AssocRoleAuthMethod(amName, roleName) { + _classCallCheck(this, AssocRoleAuthMethod); + + AssocRoleAuthMethod.initialize(this, amName, roleName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AssocRoleAuthMethod, null, [{ + key: "initialize", + value: function initialize(obj, amName, roleName) { + obj['am-name'] = amName; + obj['role-name'] = roleName; + } + /** + * Constructs a AssocRoleAuthMethod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AssocRoleAuthMethod} obj Optional instance to populate. + * @return {module:model/AssocRoleAuthMethod} The populated AssocRoleAuthMethod instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AssocRoleAuthMethod(); + + if (data.hasOwnProperty('am-name')) { + obj['am-name'] = _ApiClient["default"].convertToType(data['am-name'], 'String'); + } + + if (data.hasOwnProperty('case-sensitive')) { + obj['case-sensitive'] = _ApiClient["default"].convertToType(data['case-sensitive'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('role-name')) { + obj['role-name'] = _ApiClient["default"].convertToType(data['role-name'], 'String'); + } + + if (data.hasOwnProperty('sub-claims')) { + obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return AssocRoleAuthMethod; +}(); +/** + * The auth method to associate + * @member {String} am-name + */ + + +AssocRoleAuthMethod.prototype['am-name'] = undefined; +/** + * Treat sub claims as case-sensitive [true/false] + * @member {String} case-sensitive + * @default 'true' + */ + +AssocRoleAuthMethod.prototype['case-sensitive'] = 'true'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +AssocRoleAuthMethod.prototype['json'] = false; +/** + * The role to associate + * @member {String} role-name + */ + +AssocRoleAuthMethod.prototype['role-name'] = undefined; +/** + * key/val of sub claims, e.g group=admins,developers + * @member {Object.} sub-claims + */ + +AssocRoleAuthMethod.prototype['sub-claims'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +AssocRoleAuthMethod.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +AssocRoleAuthMethod.prototype['uid-token'] = undefined; +var _default = AssocRoleAuthMethod; +exports["default"] = _default; + +/***/ }), + +/***/ 68883: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AssocTargetItem model module. + * @module model/AssocTargetItem + * @version 3.6.3 + */ +var AssocTargetItem = /*#__PURE__*/function () { + /** + * Constructs a new AssocTargetItem. + * assocTargetItem is a command that creates an association between target and item. + * @alias module:model/AssocTargetItem + * @param name {String} The item to associate + * @param targetName {String} The target to associate + */ + function AssocTargetItem(name, targetName) { + _classCallCheck(this, AssocTargetItem); + + AssocTargetItem.initialize(this, name, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AssocTargetItem, null, [{ + key: "initialize", + value: function initialize(obj, name, targetName) { + obj['name'] = name; + obj['target-name'] = targetName; + } + /** + * Constructs a AssocTargetItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AssocTargetItem} obj Optional instance to populate. + * @return {module:model/AssocTargetItem} The populated AssocTargetItem instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AssocTargetItem(); + + if (data.hasOwnProperty('certificate-path')) { + obj['certificate-path'] = _ApiClient["default"].convertToType(data['certificate-path'], 'String'); + } + + if (data.hasOwnProperty('chain-path')) { + obj['chain-path'] = _ApiClient["default"].convertToType(data['chain-path'], 'String'); + } + + if (data.hasOwnProperty('disable-previous-key-version')) { + obj['disable-previous-key-version'] = _ApiClient["default"].convertToType(data['disable-previous-key-version'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-operations')) { + obj['key-operations'] = _ApiClient["default"].convertToType(data['key-operations'], ['String']); + } + + if (data.hasOwnProperty('keyring-name')) { + obj['keyring-name'] = _ApiClient["default"].convertToType(data['keyring-name'], 'String'); + } + + if (data.hasOwnProperty('kms-algorithm')) { + obj['kms-algorithm'] = _ApiClient["default"].convertToType(data['kms-algorithm'], 'String'); + } + + if (data.hasOwnProperty('location-id')) { + obj['location-id'] = _ApiClient["default"].convertToType(data['location-id'], 'String'); + } + + if (data.hasOwnProperty('multi-region')) { + obj['multi-region'] = _ApiClient["default"].convertToType(data['multi-region'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('post-provision-command')) { + obj['post-provision-command'] = _ApiClient["default"].convertToType(data['post-provision-command'], 'String'); + } + + if (data.hasOwnProperty('private-key-path')) { + obj['private-key-path'] = _ApiClient["default"].convertToType(data['private-key-path'], 'String'); + } + + if (data.hasOwnProperty('project-id')) { + obj['project-id'] = _ApiClient["default"].convertToType(data['project-id'], 'String'); + } + + if (data.hasOwnProperty('purpose')) { + obj['purpose'] = _ApiClient["default"].convertToType(data['purpose'], 'String'); + } + + if (data.hasOwnProperty('regions')) { + obj['regions'] = _ApiClient["default"].convertToType(data['regions'], ['String']); + } + + if (data.hasOwnProperty('sra-association')) { + obj['sra-association'] = _ApiClient["default"].convertToType(data['sra-association'], 'Boolean'); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('tenant-secret-type')) { + obj['tenant-secret-type'] = _ApiClient["default"].convertToType(data['tenant-secret-type'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('vault-name')) { + obj['vault-name'] = _ApiClient["default"].convertToType(data['vault-name'], 'String'); + } + } + + return obj; + } + }]); + + return AssocTargetItem; +}(); +/** + * A path on the target to store the certificate pem file (relevant only for certificate provisioning) + * @member {String} certificate-path + */ + + +AssocTargetItem.prototype['certificate-path'] = undefined; +/** + * A path on the target to store the full chain pem file (relevant only for certificate provisioning) + * @member {String} chain-path + */ + +AssocTargetItem.prototype['chain-path'] = undefined; +/** + * Automatically disable previous key version (required for azure targets) + * @member {Boolean} disable-previous-key-version + * @default false + */ + +AssocTargetItem.prototype['disable-previous-key-version'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +AssocTargetItem.prototype['json'] = false; +/** + * A list of allowed operations for the key (required for azure targets) + * @member {Array.} key-operations + */ + +AssocTargetItem.prototype['key-operations'] = undefined; +/** + * Keyring name of the GCP KMS (required for gcp targets) + * @member {String} keyring-name + */ + +AssocTargetItem.prototype['keyring-name'] = undefined; +/** + * Algorithm of the key in GCP KMS (required for gcp targets) + * @member {String} kms-algorithm + */ + +AssocTargetItem.prototype['kms-algorithm'] = undefined; +/** + * Location id of the GCP KMS (required for gcp targets) + * @member {String} location-id + */ + +AssocTargetItem.prototype['location-id'] = undefined; +/** + * Set to 'true' to create a multi-region managed key. (Relevant only for Classic Key AWS targets) + * @member {String} multi-region + * @default 'false' + */ + +AssocTargetItem.prototype['multi-region'] = 'false'; +/** + * The item to associate + * @member {String} name + */ + +AssocTargetItem.prototype['name'] = undefined; +/** + * A custom command to run on the remote target after successful provisioning (relevant only for certificate provisioning) + * @member {String} post-provision-command + */ + +AssocTargetItem.prototype['post-provision-command'] = undefined; +/** + * A path on the target to store the private key (relevant only for certificate provisioning) + * @member {String} private-key-path + */ + +AssocTargetItem.prototype['private-key-path'] = undefined; +/** + * Project id of the GCP KMS (required for gcp targets) + * @member {String} project-id + */ + +AssocTargetItem.prototype['project-id'] = undefined; +/** + * Purpose of the key in GCP KMS (required for gcp targets) + * @member {String} purpose + */ + +AssocTargetItem.prototype['purpose'] = undefined; +/** + * The list of regions to create a copy of the key in (relevant for aws targets) + * @member {Array.} regions + */ + +AssocTargetItem.prototype['regions'] = undefined; +/** + * Is the target to associate is for sra, relevant only for linked target association for ldap rotated secret + * @member {Boolean} sra-association + * @default false + */ + +AssocTargetItem.prototype['sra-association'] = false; +/** + * The target to associate + * @member {String} target-name + */ + +AssocTargetItem.prototype['target-name'] = undefined; +/** + * The tenant secret type [Data/SearchIndex/Analytics] (required for salesforce targets) + * @member {String} tenant-secret-type + */ + +AssocTargetItem.prototype['tenant-secret-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +AssocTargetItem.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +AssocTargetItem.prototype['uid-token'] = undefined; +/** + * Name of the vault used (required for azure targets) + * @member {String} vault-name + */ + +AssocTargetItem.prototype['vault-name'] = undefined; +var _default = AssocTargetItem; +exports["default"] = _default; + +/***/ }), + +/***/ 90188: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AttributeTypeAndValue model module. + * @module model/AttributeTypeAndValue + * @version 3.6.3 + */ +var AttributeTypeAndValue = /*#__PURE__*/function () { + /** + * Constructs a new AttributeTypeAndValue. + * AttributeTypeAndValue mirrors the ASN.1 structure of the same name in RFC 5280, Section 4.1.2.4. + * @alias module:model/AttributeTypeAndValue + */ + function AttributeTypeAndValue() { + _classCallCheck(this, AttributeTypeAndValue); + + AttributeTypeAndValue.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AttributeTypeAndValue, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AttributeTypeAndValue from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AttributeTypeAndValue} obj Optional instance to populate. + * @return {module:model/AttributeTypeAndValue} The populated AttributeTypeAndValue instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AttributeTypeAndValue(); + + if (data.hasOwnProperty('Type')) { + obj['Type'] = _ApiClient["default"].convertToType(data['Type'], ['Number']); + } + + if (data.hasOwnProperty('Value')) { + obj['Value'] = _ApiClient["default"].convertToType(data['Value'], Object); + } + } + + return obj; + } + }]); + + return AttributeTypeAndValue; +}(); +/** + * @member {Array.} Type + */ + + +AttributeTypeAndValue.prototype['Type'] = undefined; +/** + * @member {Object} Value + */ + +AttributeTypeAndValue.prototype['Value'] = undefined; +var _default = AttributeTypeAndValue; +exports["default"] = _default; + +/***/ }), + +/***/ 51330: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Auth model module. + * @module model/Auth + * @version 3.6.3 + */ +var Auth = /*#__PURE__*/function () { + /** + * Constructs a new Auth. + * @alias module:model/Auth + */ + function Auth() { + _classCallCheck(this, Auth); + + Auth.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Auth, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Auth from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Auth} obj Optional instance to populate. + * @return {module:model/Auth} The populated Auth instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Auth(); + + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('access-key')) { + obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); + } + + if (data.hasOwnProperty('access-type')) { + obj['access-type'] = _ApiClient["default"].convertToType(data['access-type'], 'String'); + } + + if (data.hasOwnProperty('account-id')) { + obj['account-id'] = _ApiClient["default"].convertToType(data['account-id'], 'String'); + } + + if (data.hasOwnProperty('admin-email')) { + obj['admin-email'] = _ApiClient["default"].convertToType(data['admin-email'], 'String'); + } + + if (data.hasOwnProperty('admin-password')) { + obj['admin-password'] = _ApiClient["default"].convertToType(data['admin-password'], 'String'); + } + + if (data.hasOwnProperty('cert-data')) { + obj['cert-data'] = _ApiClient["default"].convertToType(data['cert-data'], 'String'); + } + + if (data.hasOwnProperty('cloud-id')) { + obj['cloud-id'] = _ApiClient["default"].convertToType(data['cloud-id'], 'String'); + } + + if (data.hasOwnProperty('debug')) { + obj['debug'] = _ApiClient["default"].convertToType(data['debug'], 'Boolean'); + } + + if (data.hasOwnProperty('gateway-url')) { + obj['gateway-url'] = _ApiClient["default"].convertToType(data['gateway-url'], 'String'); + } + + if (data.hasOwnProperty('gcp-audience')) { + obj['gcp-audience'] = _ApiClient["default"].convertToType(data['gcp-audience'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt')) { + obj['jwt'] = _ApiClient["default"].convertToType(data['jwt'], 'String'); + } + + if (data.hasOwnProperty('k8s-auth-config-name')) { + obj['k8s-auth-config-name'] = _ApiClient["default"].convertToType(data['k8s-auth-config-name'], 'String'); + } + + if (data.hasOwnProperty('k8s-service-account-token')) { + obj['k8s-service-account-token'] = _ApiClient["default"].convertToType(data['k8s-service-account-token'], 'String'); + } + + if (data.hasOwnProperty('key-data')) { + obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); + } + + if (data.hasOwnProperty('ldap_password')) { + obj['ldap_password'] = _ApiClient["default"].convertToType(data['ldap_password'], 'String'); + } + + if (data.hasOwnProperty('ldap_username')) { + obj['ldap_username'] = _ApiClient["default"].convertToType(data['ldap_username'], 'String'); + } + + if (data.hasOwnProperty('oci-auth-type')) { + obj['oci-auth-type'] = _ApiClient["default"].convertToType(data['oci-auth-type'], 'String'); + } + + if (data.hasOwnProperty('oci-group-ocid')) { + obj['oci-group-ocid'] = _ApiClient["default"].convertToType(data['oci-group-ocid'], ['String']); + } + + if (data.hasOwnProperty('uid_token')) { + obj['uid_token'] = _ApiClient["default"].convertToType(data['uid_token'], 'String'); + } + } + + return obj; + } + }]); + + return Auth; +}(); +/** + * Access ID + * @member {String} access-id + */ + + +Auth.prototype['access-id'] = undefined; +/** + * Access key (relevant only for access-type=access_key) + * @member {String} access-key + */ + +Auth.prototype['access-key'] = undefined; +/** + * Access Type (access_key/password/saml/ldap/k8s/azure_ad/oidc/aws_iam/universal_identity/jwt/gcp/cert) + * @member {String} access-type + * @default 'access_key' + */ + +Auth.prototype['access-type'] = 'access_key'; +/** + * Account id (relevant only for access-type=password where the email address is associated with more than one account) + * @member {String} account-id + */ + +Auth.prototype['account-id'] = undefined; +/** + * Email (relevant only for access-type=password) + * @member {String} admin-email + */ + +Auth.prototype['admin-email'] = undefined; +/** + * Password (relevant only for access-type=password) + * @member {String} admin-password + */ + +Auth.prototype['admin-password'] = undefined; +/** + * Certificate data encoded in base64. Used if file was not provided. (relevant only for access-type=cert) + * @member {String} cert-data + */ + +Auth.prototype['cert-data'] = undefined; +/** + * The cloud identity (relevant only for access-type=azure_ad,aws_iam,gcp) + * @member {String} cloud-id + */ + +Auth.prototype['cloud-id'] = undefined; +/** + * @member {Boolean} debug + */ + +Auth.prototype['debug'] = undefined; +/** + * Gateway URL for the K8S/OAUTH2 authenticated (relevant only for access-type=k8s/oauth2) + * @member {String} gateway-url + */ + +Auth.prototype['gateway-url'] = undefined; +/** + * GCP JWT audience + * @member {String} gcp-audience + * @default 'akeyless.io' + */ + +Auth.prototype['gcp-audience'] = 'akeyless.io'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +Auth.prototype['json'] = false; +/** + * The Json Web Token (relevant only for access-type=jwt/oidc) + * @member {String} jwt + */ + +Auth.prototype['jwt'] = undefined; +/** + * The K8S Auth config name (relevant only for access-type=k8s) + * @member {String} k8s-auth-config-name + */ + +Auth.prototype['k8s-auth-config-name'] = undefined; +/** + * The K8S service account token. (relevant only for access-type=k8s) + * @member {String} k8s-service-account-token + */ + +Auth.prototype['k8s-service-account-token'] = undefined; +/** + * Private key data encoded in base64. Used if file was not provided.(relevant only for access-type=cert) + * @member {String} key-data + */ + +Auth.prototype['key-data'] = undefined; +/** + * LDAP password (relevant only for access-type=ldap) + * @member {String} ldap_password + */ + +Auth.prototype['ldap_password'] = undefined; +/** + * LDAP username (relevant only for access-type=ldap) + * @member {String} ldap_username + */ + +Auth.prototype['ldap_username'] = undefined; +/** + * The type of the OCI configuration to use [instance/apikey/resource] (relevant only for access-type=oci) + * @member {String} oci-auth-type + * @default 'apikey' + */ + +Auth.prototype['oci-auth-type'] = 'apikey'; +/** + * A list of Oracle Cloud IDs groups (relevant only for access-type=oci) + * @member {Array.} oci-group-ocid + */ + +Auth.prototype['oci-group-ocid'] = undefined; +/** + * The universal_identity token (relevant only for access-type=universal_identity) + * @member {String} uid_token + */ + +Auth.prototype['uid_token'] = undefined; +var _default = Auth; +exports["default"] = _default; + +/***/ }), + +/***/ 52187: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _AuthMethodAccessInfo = _interopRequireDefault(__nccwpck_require__(27225)); + +var _AuthMethodRoleAssociation = _interopRequireDefault(__nccwpck_require__(39304)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AuthMethod model module. + * @module model/AuthMethod + * @version 3.6.3 + */ +var AuthMethod = /*#__PURE__*/function () { + /** + * Constructs a new AuthMethod. + * @alias module:model/AuthMethod + */ + function AuthMethod() { + _classCallCheck(this, AuthMethod); + + AuthMethod.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AuthMethod, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AuthMethod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthMethod} obj Optional instance to populate. + * @return {module:model/AuthMethod} The populated AuthMethod instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthMethod(); + + if (data.hasOwnProperty('access_date')) { + obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); + } + + if (data.hasOwnProperty('access_date_display')) { + obj['access_date_display'] = _ApiClient["default"].convertToType(data['access_date_display'], 'String'); + } + + if (data.hasOwnProperty('access_info')) { + obj['access_info'] = _AuthMethodAccessInfo["default"].constructFromObject(data['access_info']); + } + + if (data.hasOwnProperty('account_id')) { + obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); + } + + if (data.hasOwnProperty('associated_gw_ids')) { + obj['associated_gw_ids'] = _ApiClient["default"].convertToType(data['associated_gw_ids'], ['Number']); + } + + if (data.hasOwnProperty('auth_method_access_id')) { + obj['auth_method_access_id'] = _ApiClient["default"].convertToType(data['auth_method_access_id'], 'String'); + } + + if (data.hasOwnProperty('auth_method_name')) { + obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); + } + + if (data.hasOwnProperty('auth_method_roles_assoc')) { + obj['auth_method_roles_assoc'] = _ApiClient["default"].convertToType(data['auth_method_roles_assoc'], [_AuthMethodRoleAssociation["default"]]); + } + + if (data.hasOwnProperty('client_permissions')) { + obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); + } + + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('is_approved')) { + obj['is_approved'] = _ApiClient["default"].convertToType(data['is_approved'], 'Boolean'); + } + + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } + } + + return obj; + } + }]); + + return AuthMethod; +}(); +/** + * @member {Date} access_date + */ + + +AuthMethod.prototype['access_date'] = undefined; +/** + * @member {String} access_date_display + */ + +AuthMethod.prototype['access_date_display'] = undefined; +/** + * @member {module:model/AuthMethodAccessInfo} access_info + */ + +AuthMethod.prototype['access_info'] = undefined; +/** + * @member {String} account_id + */ + +AuthMethod.prototype['account_id'] = undefined; +/** + * @member {Array.} associated_gw_ids + */ + +AuthMethod.prototype['associated_gw_ids'] = undefined; +/** + * @member {String} auth_method_access_id + */ + +AuthMethod.prototype['auth_method_access_id'] = undefined; +/** + * @member {String} auth_method_name + */ + +AuthMethod.prototype['auth_method_name'] = undefined; +/** + * @member {Array.} auth_method_roles_assoc + */ + +AuthMethod.prototype['auth_method_roles_assoc'] = undefined; +/** + * @member {Array.} client_permissions + */ + +AuthMethod.prototype['client_permissions'] = undefined; +/** + * @member {Date} creation_date + */ + +AuthMethod.prototype['creation_date'] = undefined; +/** + * @member {String} description + */ + +AuthMethod.prototype['description'] = undefined; +/** + * @member {Boolean} is_approved + */ + +AuthMethod.prototype['is_approved'] = undefined; +/** + * @member {Date} modification_date + */ + +AuthMethod.prototype['modification_date'] = undefined; +var _default = AuthMethod; +exports["default"] = _default; + +/***/ }), + +/***/ 27225: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _APIKeyAccessRules = _interopRequireDefault(__nccwpck_require__(84834)); + +var _AWSIAMAccessRules = _interopRequireDefault(__nccwpck_require__(74237)); + +var _AzureADAccessRules = _interopRequireDefault(__nccwpck_require__(20467)); + +var _CertAccessRules = _interopRequireDefault(__nccwpck_require__(38173)); + +var _EmailPassAccessRules = _interopRequireDefault(__nccwpck_require__(42046)); + +var _GCPAccessRules = _interopRequireDefault(__nccwpck_require__(94515)); + +var _HuaweiAccessRules = _interopRequireDefault(__nccwpck_require__(59348)); + +var _KubernetesAccessRules = _interopRequireDefault(__nccwpck_require__(71267)); + +var _LDAPAccessRules = _interopRequireDefault(__nccwpck_require__(86012)); + +var _OAuth2AccessRules = _interopRequireDefault(__nccwpck_require__(63338)); + +var _OCIAccessRules = _interopRequireDefault(__nccwpck_require__(18334)); + +var _OIDCAccessRules = _interopRequireDefault(__nccwpck_require__(53344)); + +var _SAMLAccessRules = _interopRequireDefault(__nccwpck_require__(25540)); + +var _UniversalIdentityAccessRules = _interopRequireDefault(__nccwpck_require__(66824)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AuthMethodAccessInfo model module. + * @module model/AuthMethodAccessInfo + * @version 3.6.3 + */ +var AuthMethodAccessInfo = /*#__PURE__*/function () { + /** + * Constructs a new AuthMethodAccessInfo. + * @alias module:model/AuthMethodAccessInfo + */ + function AuthMethodAccessInfo() { + _classCallCheck(this, AuthMethodAccessInfo); + + AuthMethodAccessInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AuthMethodAccessInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AuthMethodAccessInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthMethodAccessInfo} obj Optional instance to populate. + * @return {module:model/AuthMethodAccessInfo} The populated AuthMethodAccessInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthMethodAccessInfo(); + + if (data.hasOwnProperty('access_expires')) { + obj['access_expires'] = _ApiClient["default"].convertToType(data['access_expires'], 'Number'); + } + + if (data.hasOwnProperty('access_id_alias')) { + obj['access_id_alias'] = _ApiClient["default"].convertToType(data['access_id_alias'], 'String'); + } + + if (data.hasOwnProperty('api_key_access_rules')) { + obj['api_key_access_rules'] = _APIKeyAccessRules["default"].constructFromObject(data['api_key_access_rules']); + } + + if (data.hasOwnProperty('aws_iam_access_rules')) { + obj['aws_iam_access_rules'] = _AWSIAMAccessRules["default"].constructFromObject(data['aws_iam_access_rules']); + } + + if (data.hasOwnProperty('azure_ad_access_rules')) { + obj['azure_ad_access_rules'] = _AzureADAccessRules["default"].constructFromObject(data['azure_ad_access_rules']); + } + + if (data.hasOwnProperty('cert_access_rules')) { + obj['cert_access_rules'] = _CertAccessRules["default"].constructFromObject(data['cert_access_rules']); + } + + if (data.hasOwnProperty('cidr_whitelist')) { + obj['cidr_whitelist'] = _ApiClient["default"].convertToType(data['cidr_whitelist'], 'String'); + } + + if (data.hasOwnProperty('email_pass_access_rules')) { + obj['email_pass_access_rules'] = _EmailPassAccessRules["default"].constructFromObject(data['email_pass_access_rules']); + } + + if (data.hasOwnProperty('force_sub_claims')) { + obj['force_sub_claims'] = _ApiClient["default"].convertToType(data['force_sub_claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gcp_access_rules')) { + obj['gcp_access_rules'] = _GCPAccessRules["default"].constructFromObject(data['gcp_access_rules']); + } + + if (data.hasOwnProperty('gw_cidr_whitelist')) { + obj['gw_cidr_whitelist'] = _ApiClient["default"].convertToType(data['gw_cidr_whitelist'], 'String'); + } + + if (data.hasOwnProperty('huawei_access_rules')) { + obj['huawei_access_rules'] = _HuaweiAccessRules["default"].constructFromObject(data['huawei_access_rules']); + } + + if (data.hasOwnProperty('jwt_ttl')) { + obj['jwt_ttl'] = _ApiClient["default"].convertToType(data['jwt_ttl'], 'Number'); + } + + if (data.hasOwnProperty('k8s_access_rules')) { + obj['k8s_access_rules'] = _KubernetesAccessRules["default"].constructFromObject(data['k8s_access_rules']); + } + + if (data.hasOwnProperty('ldap_access_rules')) { + obj['ldap_access_rules'] = _LDAPAccessRules["default"].constructFromObject(data['ldap_access_rules']); + } + + if (data.hasOwnProperty('oauth2_access_rules')) { + obj['oauth2_access_rules'] = _OAuth2AccessRules["default"].constructFromObject(data['oauth2_access_rules']); + } + + if (data.hasOwnProperty('oci_access_rules')) { + obj['oci_access_rules'] = _OCIAccessRules["default"].constructFromObject(data['oci_access_rules']); + } + + if (data.hasOwnProperty('oidc_access_rules')) { + obj['oidc_access_rules'] = _OIDCAccessRules["default"].constructFromObject(data['oidc_access_rules']); + } + + if (data.hasOwnProperty('product_types')) { + obj['product_types'] = _ApiClient["default"].convertToType(data['product_types'], ['String']); + } + + if (data.hasOwnProperty('rules_type')) { + obj['rules_type'] = _ApiClient["default"].convertToType(data['rules_type'], 'String'); + } + + if (data.hasOwnProperty('saml_access_rules')) { + obj['saml_access_rules'] = _SAMLAccessRules["default"].constructFromObject(data['saml_access_rules']); + } + + if (data.hasOwnProperty('sub_claims_delimiters')) { + obj['sub_claims_delimiters'] = _ApiClient["default"].convertToType(data['sub_claims_delimiters'], ['String']); + } + + if (data.hasOwnProperty('universal_identity_access_rules')) { + obj['universal_identity_access_rules'] = _UniversalIdentityAccessRules["default"].constructFromObject(data['universal_identity_access_rules']); + } + } + + return obj; + } + }]); + + return AuthMethodAccessInfo; +}(); +/** + * @member {Number} access_expires + */ + + +AuthMethodAccessInfo.prototype['access_expires'] = undefined; +/** + * for accounts where AccessId holds encrypted email this field will hold generated AccessId, for accounts based on regular AccessId it will be equal to accessId itself + * @member {String} access_id_alias + */ + +AuthMethodAccessInfo.prototype['access_id_alias'] = undefined; +/** + * @member {module:model/APIKeyAccessRules} api_key_access_rules + */ + +AuthMethodAccessInfo.prototype['api_key_access_rules'] = undefined; +/** + * @member {module:model/AWSIAMAccessRules} aws_iam_access_rules + */ + +AuthMethodAccessInfo.prototype['aws_iam_access_rules'] = undefined; +/** + * @member {module:model/AzureADAccessRules} azure_ad_access_rules + */ + +AuthMethodAccessInfo.prototype['azure_ad_access_rules'] = undefined; +/** + * @member {module:model/CertAccessRules} cert_access_rules + */ + +AuthMethodAccessInfo.prototype['cert_access_rules'] = undefined; +/** + * @member {String} cidr_whitelist + */ + +AuthMethodAccessInfo.prototype['cidr_whitelist'] = undefined; +/** + * @member {module:model/EmailPassAccessRules} email_pass_access_rules + */ + +AuthMethodAccessInfo.prototype['email_pass_access_rules'] = undefined; +/** + * if true the role associated with this auth method must include sub claims + * @member {Boolean} force_sub_claims + */ + +AuthMethodAccessInfo.prototype['force_sub_claims'] = undefined; +/** + * @member {module:model/GCPAccessRules} gcp_access_rules + */ + +AuthMethodAccessInfo.prototype['gcp_access_rules'] = undefined; +/** + * @member {String} gw_cidr_whitelist + */ + +AuthMethodAccessInfo.prototype['gw_cidr_whitelist'] = undefined; +/** + * @member {module:model/HuaweiAccessRules} huawei_access_rules + */ + +AuthMethodAccessInfo.prototype['huawei_access_rules'] = undefined; +/** + * @member {Number} jwt_ttl + */ + +AuthMethodAccessInfo.prototype['jwt_ttl'] = undefined; +/** + * @member {module:model/KubernetesAccessRules} k8s_access_rules + */ + +AuthMethodAccessInfo.prototype['k8s_access_rules'] = undefined; +/** + * @member {module:model/LDAPAccessRules} ldap_access_rules + */ + +AuthMethodAccessInfo.prototype['ldap_access_rules'] = undefined; +/** + * @member {module:model/OAuth2AccessRules} oauth2_access_rules + */ + +AuthMethodAccessInfo.prototype['oauth2_access_rules'] = undefined; +/** + * @member {module:model/OCIAccessRules} oci_access_rules + */ + +AuthMethodAccessInfo.prototype['oci_access_rules'] = undefined; +/** + * @member {module:model/OIDCAccessRules} oidc_access_rules + */ + +AuthMethodAccessInfo.prototype['oidc_access_rules'] = undefined; +/** + * List of product types this auth method will be in use of + * @member {Array.} product_types + */ + +AuthMethodAccessInfo.prototype['product_types'] = undefined; +/** + * @member {String} rules_type + */ + +AuthMethodAccessInfo.prototype['rules_type'] = undefined; +/** + * @member {module:model/SAMLAccessRules} saml_access_rules + */ + +AuthMethodAccessInfo.prototype['saml_access_rules'] = undefined; +/** + * @member {Array.} sub_claims_delimiters + */ + +AuthMethodAccessInfo.prototype['sub_claims_delimiters'] = undefined; +/** + * @member {module:model/UniversalIdentityAccessRules} universal_identity_access_rules + */ + +AuthMethodAccessInfo.prototype['universal_identity_access_rules'] = undefined; +var _default = AuthMethodAccessInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 39304: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _Rules = _interopRequireDefault(__nccwpck_require__(74529)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AuthMethodRoleAssociation model module. + * @module model/AuthMethodRoleAssociation + * @version 3.6.3 + */ +var AuthMethodRoleAssociation = /*#__PURE__*/function () { + /** + * Constructs a new AuthMethodRoleAssociation. + * AuthMethodRoleAssociation includes details of an association between an auth method and a role. + * @alias module:model/AuthMethodRoleAssociation + */ + function AuthMethodRoleAssociation() { + _classCallCheck(this, AuthMethodRoleAssociation); + + AuthMethodRoleAssociation.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AuthMethodRoleAssociation, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AuthMethodRoleAssociation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthMethodRoleAssociation} obj Optional instance to populate. + * @return {module:model/AuthMethodRoleAssociation} The populated AuthMethodRoleAssociation instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthMethodRoleAssociation(); + + if (data.hasOwnProperty('allowed_ops')) { + obj['allowed_ops'] = _ApiClient["default"].convertToType(data['allowed_ops'], ['String']); + } + + if (data.hasOwnProperty('assoc_id')) { + obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); + } + + if (data.hasOwnProperty('auth_method_sub_claims')) { + obj['auth_method_sub_claims'] = _ApiClient["default"].convertToType(data['auth_method_sub_claims'], { + 'String': ['String'] + }); + } + + if (data.hasOwnProperty('is_sub_claims_case_sensitive')) { + obj['is_sub_claims_case_sensitive'] = _ApiClient["default"].convertToType(data['is_sub_claims_case_sensitive'], 'Boolean'); + } + + if (data.hasOwnProperty('role_name')) { + obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], 'String'); + } + + if (data.hasOwnProperty('rules')) { + obj['rules'] = _Rules["default"].constructFromObject(data['rules']); + } + } + + return obj; + } + }]); + + return AuthMethodRoleAssociation; +}(); +/** + * @member {Array.} allowed_ops + */ + + +AuthMethodRoleAssociation.prototype['allowed_ops'] = undefined; +/** + * @member {String} assoc_id + */ + +AuthMethodRoleAssociation.prototype['assoc_id'] = undefined; +/** + * @member {Object.>} auth_method_sub_claims + */ + +AuthMethodRoleAssociation.prototype['auth_method_sub_claims'] = undefined; +/** + * @member {Boolean} is_sub_claims_case_sensitive + */ + +AuthMethodRoleAssociation.prototype['is_sub_claims_case_sensitive'] = undefined; +/** + * @member {String} role_name + */ + +AuthMethodRoleAssociation.prototype['role_name'] = undefined; +/** + * @member {module:model/Rules} rules + */ + +AuthMethodRoleAssociation.prototype['rules'] = undefined; +var _default = AuthMethodRoleAssociation; +exports["default"] = _default; + +/***/ }), + +/***/ 68871: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _SystemAccessCredentialsReplyObj = _interopRequireDefault(__nccwpck_require__(58908)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AuthOutput model module. + * @module model/AuthOutput + * @version 3.6.3 + */ +var AuthOutput = /*#__PURE__*/function () { + /** + * Constructs a new AuthOutput. + * @alias module:model/AuthOutput + */ + function AuthOutput() { + _classCallCheck(this, AuthOutput); + + AuthOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AuthOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AuthOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AuthOutput} obj Optional instance to populate. + * @return {module:model/AuthOutput} The populated AuthOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AuthOutput(); + + if (data.hasOwnProperty('creds')) { + obj['creds'] = _SystemAccessCredentialsReplyObj["default"].constructFromObject(data['creds']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + } + + return obj; + } + }]); + + return AuthOutput; +}(); +/** + * @member {module:model/SystemAccessCredentialsReplyObj} creds + */ + + +AuthOutput.prototype['creds'] = undefined; +/** + * @member {String} token + */ + +AuthOutput.prototype['token'] = undefined; +var _default = AuthOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 20090: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AwsS3LogForwardingConfig model module. + * @module model/AwsS3LogForwardingConfig + * @version 3.6.3 + */ +var AwsS3LogForwardingConfig = /*#__PURE__*/function () { + /** + * Constructs a new AwsS3LogForwardingConfig. + * @alias module:model/AwsS3LogForwardingConfig + */ + function AwsS3LogForwardingConfig() { + _classCallCheck(this, AwsS3LogForwardingConfig); + + AwsS3LogForwardingConfig.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AwsS3LogForwardingConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AwsS3LogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AwsS3LogForwardingConfig} obj Optional instance to populate. + * @return {module:model/AwsS3LogForwardingConfig} The populated AwsS3LogForwardingConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AwsS3LogForwardingConfig(); + + if (data.hasOwnProperty('aws_access_id')) { + obj['aws_access_id'] = _ApiClient["default"].convertToType(data['aws_access_id'], 'String'); + } + + if (data.hasOwnProperty('aws_access_key')) { + obj['aws_access_key'] = _ApiClient["default"].convertToType(data['aws_access_key'], 'String'); + } + + if (data.hasOwnProperty('aws_auth_type')) { + obj['aws_auth_type'] = _ApiClient["default"].convertToType(data['aws_auth_type'], 'String'); + } + + if (data.hasOwnProperty('aws_region')) { + obj['aws_region'] = _ApiClient["default"].convertToType(data['aws_region'], 'String'); + } + + if (data.hasOwnProperty('aws_role_arn')) { + obj['aws_role_arn'] = _ApiClient["default"].convertToType(data['aws_role_arn'], 'String'); + } + + if (data.hasOwnProperty('aws_use_gateway_cloud_identity')) { + obj['aws_use_gateway_cloud_identity'] = _ApiClient["default"].convertToType(data['aws_use_gateway_cloud_identity'], 'Boolean'); + } + + if (data.hasOwnProperty('bucket_name')) { + obj['bucket_name'] = _ApiClient["default"].convertToType(data['bucket_name'], 'String'); + } + + if (data.hasOwnProperty('log_folder')) { + obj['log_folder'] = _ApiClient["default"].convertToType(data['log_folder'], 'String'); + } + } + + return obj; + } + }]); + + return AwsS3LogForwardingConfig; +}(); +/** + * @member {String} aws_access_id + */ + + +AwsS3LogForwardingConfig.prototype['aws_access_id'] = undefined; +/** + * @member {String} aws_access_key + */ + +AwsS3LogForwardingConfig.prototype['aws_access_key'] = undefined; +/** + * @member {String} aws_auth_type + */ + +AwsS3LogForwardingConfig.prototype['aws_auth_type'] = undefined; +/** + * @member {String} aws_region + */ + +AwsS3LogForwardingConfig.prototype['aws_region'] = undefined; +/** + * @member {String} aws_role_arn + */ + +AwsS3LogForwardingConfig.prototype['aws_role_arn'] = undefined; +/** + * deprecated + * @member {Boolean} aws_use_gateway_cloud_identity + */ + +AwsS3LogForwardingConfig.prototype['aws_use_gateway_cloud_identity'] = undefined; +/** + * @member {String} bucket_name + */ + +AwsS3LogForwardingConfig.prototype['bucket_name'] = undefined; +/** + * @member {String} log_folder + */ + +AwsS3LogForwardingConfig.prototype['log_folder'] = undefined; +var _default = AwsS3LogForwardingConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 20467: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AzureADAccessRules model module. + * @module model/AzureADAccessRules + * @version 3.6.3 + */ +var AzureADAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new AzureADAccessRules. + * AzureADAccessRules contains access rules specific to Azure Active Directory authentication. + * @alias module:model/AzureADAccessRules + */ + function AzureADAccessRules() { + _classCallCheck(this, AzureADAccessRules); + + AzureADAccessRules.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AzureADAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AzureADAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AzureADAccessRules} obj Optional instance to populate. + * @return {module:model/AzureADAccessRules} The populated AzureADAccessRules instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AzureADAccessRules(); + + if (data.hasOwnProperty('ad_endpoint')) { + obj['ad_endpoint'] = _ApiClient["default"].convertToType(data['ad_endpoint'], 'String'); + } + + if (data.hasOwnProperty('bound_group_ids')) { + obj['bound_group_ids'] = _ApiClient["default"].convertToType(data['bound_group_ids'], ['String']); + } + + if (data.hasOwnProperty('bound_resource_groups')) { + obj['bound_resource_groups'] = _ApiClient["default"].convertToType(data['bound_resource_groups'], ['String']); + } + + if (data.hasOwnProperty('bound_resource_ids')) { + obj['bound_resource_ids'] = _ApiClient["default"].convertToType(data['bound_resource_ids'], ['String']); + } + + if (data.hasOwnProperty('bound_resource_names')) { + obj['bound_resource_names'] = _ApiClient["default"].convertToType(data['bound_resource_names'], ['String']); + } + + if (data.hasOwnProperty('bound_resource_providers')) { + obj['bound_resource_providers'] = _ApiClient["default"].convertToType(data['bound_resource_providers'], ['String']); + } + + if (data.hasOwnProperty('bound_resource_types')) { + obj['bound_resource_types'] = _ApiClient["default"].convertToType(data['bound_resource_types'], ['String']); + } + + if (data.hasOwnProperty('bound_service_principal_ids')) { + obj['bound_service_principal_ids'] = _ApiClient["default"].convertToType(data['bound_service_principal_ids'], ['String']); + } + + if (data.hasOwnProperty('bound_subscription_ids')) { + obj['bound_subscription_ids'] = _ApiClient["default"].convertToType(data['bound_subscription_ids'], ['String']); + } + + if (data.hasOwnProperty('bound_tenant_id')) { + obj['bound_tenant_id'] = _ApiClient["default"].convertToType(data['bound_tenant_id'], 'String'); + } + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } + + if (data.hasOwnProperty('jwks_uri')) { + obj['jwks_uri'] = _ApiClient["default"].convertToType(data['jwks_uri'], 'String'); + } + } + + return obj; + } + }]); + + return AzureADAccessRules; +}(); +/** + * The audience in the JWT. + * @member {String} ad_endpoint + */ + + +AzureADAccessRules.prototype['ad_endpoint'] = undefined; +/** + * The list of group ids that login is restricted to. + * @member {Array.} bound_group_ids + */ + +AzureADAccessRules.prototype['bound_group_ids'] = undefined; +/** + * The list of resource groups that login is restricted to. + * @member {Array.} bound_resource_groups + */ + +AzureADAccessRules.prototype['bound_resource_groups'] = undefined; +/** + * The list of full resource ids that the login is restricted to. + * @member {Array.} bound_resource_ids + */ + +AzureADAccessRules.prototype['bound_resource_ids'] = undefined; +/** + * The list of resource names that the login is restricted to (e.g, a virtual machine name, scale set name, etc). + * @member {Array.} bound_resource_names + */ + +AzureADAccessRules.prototype['bound_resource_names'] = undefined; +/** + * The list of resource providers that login is restricted to (e.g, Microsoft.Compute, Microsoft.ManagedIdentity, etc). + * @member {Array.} bound_resource_providers + */ + +AzureADAccessRules.prototype['bound_resource_providers'] = undefined; +/** + * The list of resource types that login is restricted to (e.g, virtualMachines, userAssignedIdentities, etc). + * @member {Array.} bound_resource_types + */ + +AzureADAccessRules.prototype['bound_resource_types'] = undefined; +/** + * The list of service principal IDs that login is restricted to. + * @member {Array.} bound_service_principal_ids + */ + +AzureADAccessRules.prototype['bound_service_principal_ids'] = undefined; +/** + * The list of subscription IDs that login is restricted to. + * @member {Array.} bound_subscription_ids + */ + +AzureADAccessRules.prototype['bound_subscription_ids'] = undefined; +/** + * The tenants id for the Azure Active Directory organization. + * @member {String} bound_tenant_id + */ + +AzureADAccessRules.prototype['bound_tenant_id'] = undefined; +/** + * Issuer URL + * @member {String} issuer + */ + +AzureADAccessRules.prototype['issuer'] = undefined; +/** + * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. + * @member {String} jwks_uri + */ + +AzureADAccessRules.prototype['jwks_uri'] = undefined; +var _default = AzureADAccessRules; +exports["default"] = _default; + +/***/ }), + +/***/ 15410: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _AzurePayload = _interopRequireDefault(__nccwpck_require__(85035)); + +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AzureKeyVaultMigration model module. + * @module model/AzureKeyVaultMigration + * @version 3.6.3 + */ +var AzureKeyVaultMigration = /*#__PURE__*/function () { + /** + * Constructs a new AzureKeyVaultMigration. + * @alias module:model/AzureKeyVaultMigration + */ + function AzureKeyVaultMigration() { + _classCallCheck(this, AzureKeyVaultMigration); + + AzureKeyVaultMigration.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AzureKeyVaultMigration, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AzureKeyVaultMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AzureKeyVaultMigration} obj Optional instance to populate. + * @return {module:model/AzureKeyVaultMigration} The populated AzureKeyVaultMigration instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AzureKeyVaultMigration(); + + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _AzurePayload["default"].constructFromObject(data['payload']); + } + } + + return obj; + } + }]); + + return AzureKeyVaultMigration; +}(); +/** + * @member {module:model/MigrationGeneral} general + */ + + +AzureKeyVaultMigration.prototype['general'] = undefined; +/** + * @member {module:model/AzurePayload} payload + */ + +AzureKeyVaultMigration.prototype['payload'] = undefined; +var _default = AzureKeyVaultMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 20430: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AzureLogAnalyticsForwardingConfig model module. + * @module model/AzureLogAnalyticsForwardingConfig + * @version 3.6.3 + */ +var AzureLogAnalyticsForwardingConfig = /*#__PURE__*/function () { + /** + * Constructs a new AzureLogAnalyticsForwardingConfig. + * @alias module:model/AzureLogAnalyticsForwardingConfig + */ + function AzureLogAnalyticsForwardingConfig() { + _classCallCheck(this, AzureLogAnalyticsForwardingConfig); + + AzureLogAnalyticsForwardingConfig.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AzureLogAnalyticsForwardingConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AzureLogAnalyticsForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AzureLogAnalyticsForwardingConfig} obj Optional instance to populate. + * @return {module:model/AzureLogAnalyticsForwardingConfig} The populated AzureLogAnalyticsForwardingConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AzureLogAnalyticsForwardingConfig(); + + if (data.hasOwnProperty('azure_workspace_id')) { + obj['azure_workspace_id'] = _ApiClient["default"].convertToType(data['azure_workspace_id'], 'String'); + } + + if (data.hasOwnProperty('azure_workspace_key')) { + obj['azure_workspace_key'] = _ApiClient["default"].convertToType(data['azure_workspace_key'], 'String'); + } + } + + return obj; + } + }]); + + return AzureLogAnalyticsForwardingConfig; +}(); +/** + * @member {String} azure_workspace_id + */ + + +AzureLogAnalyticsForwardingConfig.prototype['azure_workspace_id'] = undefined; +/** + * @member {String} azure_workspace_key + */ + +AzureLogAnalyticsForwardingConfig.prototype['azure_workspace_key'] = undefined; +var _default = AzureLogAnalyticsForwardingConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 85035: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AzurePayload model module. + * @module model/AzurePayload + * @version 3.6.3 + */ +var AzurePayload = /*#__PURE__*/function () { + /** + * Constructs a new AzurePayload. + * @alias module:model/AzurePayload + */ + function AzurePayload() { + _classCallCheck(this, AzurePayload); + + AzurePayload.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AzurePayload, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AzurePayload from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AzurePayload} obj Optional instance to populate. + * @return {module:model/AzurePayload} The populated AzurePayload instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AzurePayload(); + + if (data.hasOwnProperty('client')) { + obj['client'] = _ApiClient["default"].convertToType(data['client'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('secret')) { + obj['secret'] = _ApiClient["default"].convertToType(data['secret'], 'String'); + } + + if (data.hasOwnProperty('tenant')) { + obj['tenant'] = _ApiClient["default"].convertToType(data['tenant'], 'String'); + } + } + + return obj; + } + }]); + + return AzurePayload; +}(); +/** + * @member {String} client + */ + + +AzurePayload.prototype['client'] = undefined; +/** + * @member {String} name + */ + +AzurePayload.prototype['name'] = undefined; +/** + * @member {String} secret + */ + +AzurePayload.prototype['secret'] = undefined; +/** + * @member {String} tenant + */ + +AzurePayload.prototype['tenant'] = undefined; +var _default = AzurePayload; +exports["default"] = _default; + +/***/ }), + +/***/ 58540: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The AzureTargetDetails model module. + * @module model/AzureTargetDetails + * @version 3.6.3 + */ +var AzureTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new AzureTargetDetails. + * @alias module:model/AzureTargetDetails + */ + function AzureTargetDetails() { + _classCallCheck(this, AzureTargetDetails); + + AzureTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(AzureTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a AzureTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AzureTargetDetails} obj Optional instance to populate. + * @return {module:model/AzureTargetDetails} The populated AzureTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AzureTargetDetails(); + + if (data.hasOwnProperty('azure_client_id')) { + obj['azure_client_id'] = _ApiClient["default"].convertToType(data['azure_client_id'], 'String'); + } + + if (data.hasOwnProperty('azure_client_secret')) { + obj['azure_client_secret'] = _ApiClient["default"].convertToType(data['azure_client_secret'], 'String'); + } + + if (data.hasOwnProperty('azure_resource_group_name')) { + obj['azure_resource_group_name'] = _ApiClient["default"].convertToType(data['azure_resource_group_name'], 'String'); + } + + if (data.hasOwnProperty('azure_resource_name')) { + obj['azure_resource_name'] = _ApiClient["default"].convertToType(data['azure_resource_name'], 'String'); + } + + if (data.hasOwnProperty('azure_subscription_id')) { + obj['azure_subscription_id'] = _ApiClient["default"].convertToType(data['azure_subscription_id'], 'String'); + } + + if (data.hasOwnProperty('azure_tenant_id')) { + obj['azure_tenant_id'] = _ApiClient["default"].convertToType(data['azure_tenant_id'], 'String'); + } + + if (data.hasOwnProperty('azure_username')) { + obj['azure_username'] = _ApiClient["default"].convertToType(data['azure_username'], 'String'); + } + + if (data.hasOwnProperty('use_gw_cloud_identity')) { + obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return AzureTargetDetails; +}(); +/** + * @member {String} azure_client_id + */ + + +AzureTargetDetails.prototype['azure_client_id'] = undefined; +/** + * @member {String} azure_client_secret + */ + +AzureTargetDetails.prototype['azure_client_secret'] = undefined; +/** + * @member {String} azure_resource_group_name + */ + +AzureTargetDetails.prototype['azure_resource_group_name'] = undefined; +/** + * @member {String} azure_resource_name + */ + +AzureTargetDetails.prototype['azure_resource_name'] = undefined; +/** + * @member {String} azure_subscription_id + */ + +AzureTargetDetails.prototype['azure_subscription_id'] = undefined; +/** + * @member {String} azure_tenant_id + */ + +AzureTargetDetails.prototype['azure_tenant_id'] = undefined; +/** + * @member {String} azure_username + */ + +AzureTargetDetails.prototype['azure_username'] = undefined; +/** + * @member {Boolean} use_gw_cloud_identity + */ + +AzureTargetDetails.prototype['use_gw_cloud_identity'] = undefined; +var _default = AzureTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 62548: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The BastionListEntry model module. + * @module model/BastionListEntry + * @version 3.6.3 + */ +var BastionListEntry = /*#__PURE__*/function () { + /** + * Constructs a new BastionListEntry. + * @alias module:model/BastionListEntry + */ + function BastionListEntry() { + _classCallCheck(this, BastionListEntry); + + BastionListEntry.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(BastionListEntry, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a BastionListEntry from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BastionListEntry} obj Optional instance to populate. + * @return {module:model/BastionListEntry} The populated BastionListEntry instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new BastionListEntry(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('allowed_access_ids')) { + obj['allowed_access_ids'] = _ApiClient["default"].convertToType(data['allowed_access_ids'], ['String']); + } + + if (data.hasOwnProperty('allowed_urls')) { + obj['allowed_urls'] = _ApiClient["default"].convertToType(data['allowed_urls'], ['String']); + } + + if (data.hasOwnProperty('allowed_urls_per_instance')) { + obj['allowed_urls_per_instance'] = _ApiClient["default"].convertToType(data['allowed_urls_per_instance'], { + 'String': ['String'] + }); + } + + if (data.hasOwnProperty('cluster_name')) { + obj['cluster_name'] = _ApiClient["default"].convertToType(data['cluster_name'], 'String'); + } + + if (data.hasOwnProperty('display_name')) { + obj['display_name'] = _ApiClient["default"].convertToType(data['display_name'], 'String'); + } + + if (data.hasOwnProperty('last_report')) { + obj['last_report'] = _ApiClient["default"].convertToType(data['last_report'], 'Date'); + } + } + + return obj; + } + }]); + + return BastionListEntry; +}(); +/** + * @member {String} access_id + */ + + +BastionListEntry.prototype['access_id'] = undefined; +/** + * @member {Array.} allowed_access_ids + */ + +BastionListEntry.prototype['allowed_access_ids'] = undefined; +/** + * @member {Array.} allowed_urls + */ + +BastionListEntry.prototype['allowed_urls'] = undefined; +/** + * @member {Object.>} allowed_urls_per_instance + */ + +BastionListEntry.prototype['allowed_urls_per_instance'] = undefined; +/** + * @member {String} cluster_name + */ + +BastionListEntry.prototype['cluster_name'] = undefined; +/** + * @member {String} display_name + */ + +BastionListEntry.prototype['display_name'] = undefined; +/** + * @member {Date} last_report + */ + +BastionListEntry.prototype['last_report'] = undefined; +var _default = BastionListEntry; +exports["default"] = _default; + +/***/ }), + +/***/ 34873: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _BastionListEntry = _interopRequireDefault(__nccwpck_require__(62548)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The BastionsList model module. + * @module model/BastionsList + * @version 3.6.3 + */ +var BastionsList = /*#__PURE__*/function () { + /** + * Constructs a new BastionsList. + * @alias module:model/BastionsList + */ + function BastionsList() { + _classCallCheck(this, BastionsList); + + BastionsList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(BastionsList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a BastionsList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BastionsList} obj Optional instance to populate. + * @return {module:model/BastionsList} The populated BastionsList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new BastionsList(); + + if (data.hasOwnProperty('clusters')) { + obj['clusters'] = _ApiClient["default"].convertToType(data['clusters'], [_BastionListEntry["default"]]); + } + } + + return obj; + } + }]); + + return BastionsList; +}(); +/** + * @member {Array.} clusters + */ + + +BastionsList.prototype['clusters'] = undefined; +var _default = BastionsList; +exports["default"] = _default; + +/***/ }), + +/***/ 6102: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CFConfigPart model module. + * @module model/CFConfigPart + * @version 3.6.3 + */ +var CFConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new CFConfigPart. + * @alias module:model/CFConfigPart + */ + function CFConfigPart() { + _classCallCheck(this, CFConfigPart); + + CFConfigPart.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CFConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CFConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CFConfigPart} obj Optional instance to populate. + * @return {module:model/CFConfigPart} The populated CFConfigPart instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CFConfigPart(); + + if (data.hasOwnProperty('customer_fragements')) { + obj['customer_fragements'] = _ApiClient["default"].convertToType(data['customer_fragements'], { + 'String': 'String' + }); + } + } + + return obj; + } + }]); + + return CFConfigPart; +}(); +/** + * @member {Object.} customer_fragements + */ + + +CFConfigPart.prototype['customer_fragements'] = undefined; +var _default = CFConfigPart; +exports["default"] = _default; + +/***/ }), + +/***/ 31951: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CacheConfigPart model module. + * @module model/CacheConfigPart + * @version 3.6.3 + */ +var CacheConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new CacheConfigPart. + * @alias module:model/CacheConfigPart + */ + function CacheConfigPart() { + _classCallCheck(this, CacheConfigPart); + + CacheConfigPart.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CacheConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CacheConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CacheConfigPart} obj Optional instance to populate. + * @return {module:model/CacheConfigPart} The populated CacheConfigPart instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CacheConfigPart(); + + if (data.hasOwnProperty('cache_enable')) { + obj['cache_enable'] = _ApiClient["default"].convertToType(data['cache_enable'], 'Boolean'); + } + + if (data.hasOwnProperty('cache_ttl')) { + obj['cache_ttl'] = _ApiClient["default"].convertToType(data['cache_ttl'], 'String'); + } + + if (data.hasOwnProperty('new_proactive_cache_enable')) { + obj['new_proactive_cache_enable'] = _ApiClient["default"].convertToType(data['new_proactive_cache_enable'], 'Boolean'); + } + + if (data.hasOwnProperty('proactive_cache_dump_interval')) { + obj['proactive_cache_dump_interval'] = _ApiClient["default"].convertToType(data['proactive_cache_dump_interval'], 'String'); + } + + if (data.hasOwnProperty('proactive_cache_enable')) { + obj['proactive_cache_enable'] = _ApiClient["default"].convertToType(data['proactive_cache_enable'], 'Boolean'); + } + + if (data.hasOwnProperty('proactive_cache_minimum_fetching_time')) { + obj['proactive_cache_minimum_fetching_time'] = _ApiClient["default"].convertToType(data['proactive_cache_minimum_fetching_time'], 'String'); + } + } + + return obj; + } + }]); + + return CacheConfigPart; +}(); +/** + * @member {Boolean} cache_enable + */ + + +CacheConfigPart.prototype['cache_enable'] = undefined; +/** + * @member {String} cache_ttl + */ + +CacheConfigPart.prototype['cache_ttl'] = undefined; +/** + * @member {Boolean} new_proactive_cache_enable + */ + +CacheConfigPart.prototype['new_proactive_cache_enable'] = undefined; +/** + * @member {String} proactive_cache_dump_interval + */ + +CacheConfigPart.prototype['proactive_cache_dump_interval'] = undefined; +/** + * @member {Boolean} proactive_cache_enable + */ + +CacheConfigPart.prototype['proactive_cache_enable'] = undefined; +/** + * @member {String} proactive_cache_minimum_fetching_time + */ + +CacheConfigPart.prototype['proactive_cache_minimum_fetching_time'] = undefined; +var _default = CacheConfigPart; +exports["default"] = _default; + +/***/ }), + +/***/ 38173: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CertAccessRules model module. + * @module model/CertAccessRules + * @version 3.6.3 + */ +var CertAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new CertAccessRules. + * @alias module:model/CertAccessRules + */ + function CertAccessRules() { + _classCallCheck(this, CertAccessRules); + + CertAccessRules.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CertAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CertAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertAccessRules} obj Optional instance to populate. + * @return {module:model/CertAccessRules} The populated CertAccessRules instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertAccessRules(); + + if (data.hasOwnProperty('allowed_cors')) { + obj['allowed_cors'] = _ApiClient["default"].convertToType(data['allowed_cors'], ['String']); + } + + if (data.hasOwnProperty('bound_common_names')) { + obj['bound_common_names'] = _ApiClient["default"].convertToType(data['bound_common_names'], ['String']); + } + + if (data.hasOwnProperty('bound_dns_sans')) { + obj['bound_dns_sans'] = _ApiClient["default"].convertToType(data['bound_dns_sans'], ['String']); + } + + if (data.hasOwnProperty('bound_email_sans')) { + obj['bound_email_sans'] = _ApiClient["default"].convertToType(data['bound_email_sans'], ['String']); + } + + if (data.hasOwnProperty('bound_extensions')) { + obj['bound_extensions'] = _ApiClient["default"].convertToType(data['bound_extensions'], ['String']); + } + + if (data.hasOwnProperty('bound_organizational_units')) { + obj['bound_organizational_units'] = _ApiClient["default"].convertToType(data['bound_organizational_units'], ['String']); + } + + if (data.hasOwnProperty('bound_uri_sans')) { + obj['bound_uri_sans'] = _ApiClient["default"].convertToType(data['bound_uri_sans'], ['String']); + } + + if (data.hasOwnProperty('certificate')) { + obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); + } + + if (data.hasOwnProperty('revoked_cert_ids')) { + obj['revoked_cert_ids'] = _ApiClient["default"].convertToType(data['revoked_cert_ids'], ['String']); + } + + if (data.hasOwnProperty('unique_identifier')) { + obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); + } + } + + return obj; + } + }]); + + return CertAccessRules; +}(); +/** + * a list of allowed cors domains if used for browser authentication + * @member {Array.} allowed_cors + */ + + +CertAccessRules.prototype['allowed_cors'] = undefined; +/** + * A list of names. At least one must exist in the Common Name. Supports globbing. + * @member {Array.} bound_common_names + */ + +CertAccessRules.prototype['bound_common_names'] = undefined; +/** + * A list of DNS names. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound_dns_sans + */ + +CertAccessRules.prototype['bound_dns_sans'] = undefined; +/** + * A list of Email Addresses. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound_email_sans + */ + +CertAccessRules.prototype['bound_email_sans'] = undefined; +/** + * A list of extensions formatted as \"oid:value\". Expects the extension value to be some type of ASN1 encoded string. All values must match. Supports globbing on \"value\". + * @member {Array.} bound_extensions + */ + +CertAccessRules.prototype['bound_extensions'] = undefined; +/** + * A list of Organizational Units names. At least one must exist in the OU field. + * @member {Array.} bound_organizational_units + */ + +CertAccessRules.prototype['bound_organizational_units'] = undefined; +/** + * A list of URIs. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound_uri_sans + */ + +CertAccessRules.prototype['bound_uri_sans'] = undefined; +/** + * Base64 encdoed PEM certificate + * @member {String} certificate + */ + +CertAccessRules.prototype['certificate'] = undefined; +/** + * A list of revoked cert ids + * @member {Array.} revoked_cert_ids + */ + +CertAccessRules.prototype['revoked_cert_ids'] = undefined; +/** + * A unique identifier to distinguish different users + * @member {String} unique_identifier + */ + +CertAccessRules.prototype['unique_identifier'] = undefined; +var _default = CertAccessRules; +exports["default"] = _default; + +/***/ }), + +/***/ 5346: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CertificateAnalyticAggregation model module. + * @module model/CertificateAnalyticAggregation + * @version 3.6.3 + */ +var CertificateAnalyticAggregation = /*#__PURE__*/function () { + /** + * Constructs a new CertificateAnalyticAggregation. + * @alias module:model/CertificateAnalyticAggregation + */ + function CertificateAnalyticAggregation() { + _classCallCheck(this, CertificateAnalyticAggregation); + + CertificateAnalyticAggregation.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CertificateAnalyticAggregation, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CertificateAnalyticAggregation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertificateAnalyticAggregation} obj Optional instance to populate. + * @return {module:model/CertificateAnalyticAggregation} The populated CertificateAnalyticAggregation instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertificateAnalyticAggregation(); + + if (data.hasOwnProperty('account_id')) { + obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); + } + + if (data.hasOwnProperty('ca_counts')) { + obj['ca_counts'] = _ApiClient["default"].convertToType(data['ca_counts'], { + 'String': 'Number' + }); + } + + if (data.hasOwnProperty('risk_counts')) { + obj['risk_counts'] = _ApiClient["default"].convertToType(data['risk_counts'], { + 'String': 'Number' + }); + } + } + + return obj; + } + }]); + + return CertificateAnalyticAggregation; +}(); +/** + * @member {String} account_id + */ + + +CertificateAnalyticAggregation.prototype['account_id'] = undefined; +/** + * @member {Object.} ca_counts + */ + +CertificateAnalyticAggregation.prototype['ca_counts'] = undefined; +/** + * @member {Object.} risk_counts + */ + +CertificateAnalyticAggregation.prototype['risk_counts'] = undefined; +var _default = CertificateAnalyticAggregation; +exports["default"] = _default; + +/***/ }), + +/***/ 60084: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _CertificateExpirationEvent = _interopRequireDefault(__nccwpck_require__(61726)); + +var _CertificateInfo = _interopRequireDefault(__nccwpck_require__(25201)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CertificateChainInfo model module. + * @module model/CertificateChainInfo + * @version 3.6.3 + */ +var CertificateChainInfo = /*#__PURE__*/function () { + /** + * Constructs a new CertificateChainInfo. + * @alias module:model/CertificateChainInfo + */ + function CertificateChainInfo() { + _classCallCheck(this, CertificateChainInfo); + + CertificateChainInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CertificateChainInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CertificateChainInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertificateChainInfo} obj Optional instance to populate. + * @return {module:model/CertificateChainInfo} The populated CertificateChainInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertificateChainInfo(); + + if (data.hasOwnProperty('certificate_chain')) { + obj['certificate_chain'] = _ApiClient["default"].convertToType(data['certificate_chain'], [_CertificateInfo["default"]]); + } + + if (data.hasOwnProperty('certificate_format')) { + obj['certificate_format'] = _ApiClient["default"].convertToType(data['certificate_format'], 'String'); + } + + if (data.hasOwnProperty('certificate_has_private_key')) { + obj['certificate_has_private_key'] = _ApiClient["default"].convertToType(data['certificate_has_private_key'], 'Boolean'); + } + + if (data.hasOwnProperty('certificate_issuer_gw_cluster_url')) { + obj['certificate_issuer_gw_cluster_url'] = _ApiClient["default"].convertToType(data['certificate_issuer_gw_cluster_url'], 'String'); + } + + if (data.hasOwnProperty('certificate_issuer_item_id')) { + obj['certificate_issuer_item_id'] = _ApiClient["default"].convertToType(data['certificate_issuer_item_id'], 'Number'); + } + + if (data.hasOwnProperty('certificate_issuer_name')) { + obj['certificate_issuer_name'] = _ApiClient["default"].convertToType(data['certificate_issuer_name'], 'String'); + } + + if (data.hasOwnProperty('certificate_pem')) { + obj['certificate_pem'] = _ApiClient["default"].convertToType(data['certificate_pem'], 'String'); + } + + if (data.hasOwnProperty('certificate_status')) { + obj['certificate_status'] = _ApiClient["default"].convertToType(data['certificate_status'], 'String'); + } + + if (data.hasOwnProperty('expiration_events')) { + obj['expiration_events'] = _ApiClient["default"].convertToType(data['expiration_events'], [_CertificateExpirationEvent["default"]]); + } + } + + return obj; + } + }]); + + return CertificateChainInfo; +}(); +/** + * @member {Array.} certificate_chain + */ + + +CertificateChainInfo.prototype['certificate_chain'] = undefined; +/** + * @member {String} certificate_format + */ + +CertificateChainInfo.prototype['certificate_format'] = undefined; +/** + * @member {Boolean} certificate_has_private_key + */ + +CertificateChainInfo.prototype['certificate_has_private_key'] = undefined; +/** + * @member {String} certificate_issuer_gw_cluster_url + */ + +CertificateChainInfo.prototype['certificate_issuer_gw_cluster_url'] = undefined; +/** + * @member {Number} certificate_issuer_item_id + */ + +CertificateChainInfo.prototype['certificate_issuer_item_id'] = undefined; +/** + * @member {String} certificate_issuer_name + */ + +CertificateChainInfo.prototype['certificate_issuer_name'] = undefined; +/** + * @member {String} certificate_pem + */ + +CertificateChainInfo.prototype['certificate_pem'] = undefined; +/** + * @member {String} certificate_status + */ + +CertificateChainInfo.prototype['certificate_status'] = undefined; +/** + * @member {Array.} expiration_events + */ + +CertificateChainInfo.prototype['expiration_events'] = undefined; +var _default = CertificateChainInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 61726: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CertificateExpirationEvent model module. + * @module model/CertificateExpirationEvent + * @version 3.6.3 + */ +var CertificateExpirationEvent = /*#__PURE__*/function () { + /** + * Constructs a new CertificateExpirationEvent. + * @alias module:model/CertificateExpirationEvent + */ + function CertificateExpirationEvent() { + _classCallCheck(this, CertificateExpirationEvent); + + CertificateExpirationEvent.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CertificateExpirationEvent, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CertificateExpirationEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertificateExpirationEvent} obj Optional instance to populate. + * @return {module:model/CertificateExpirationEvent} The populated CertificateExpirationEvent instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertificateExpirationEvent(); + + if (data.hasOwnProperty('seconds_before')) { + obj['seconds_before'] = _ApiClient["default"].convertToType(data['seconds_before'], 'Number'); + } + } + + return obj; + } + }]); + + return CertificateExpirationEvent; +}(); +/** + * @member {Number} seconds_before + */ + + +CertificateExpirationEvent.prototype['seconds_before'] = undefined; +var _default = CertificateExpirationEvent; +exports["default"] = _default; + +/***/ }), + +/***/ 25201: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _Extension = _interopRequireDefault(__nccwpck_require__(30079)); + +var _Name = _interopRequireDefault(__nccwpck_require__(65739)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CertificateInfo model module. + * @module model/CertificateInfo + * @version 3.6.3 + */ +var CertificateInfo = /*#__PURE__*/function () { + /** + * Constructs a new CertificateInfo. + * @alias module:model/CertificateInfo + */ + function CertificateInfo() { + _classCallCheck(this, CertificateInfo); + + CertificateInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CertificateInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CertificateInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertificateInfo} obj Optional instance to populate. + * @return {module:model/CertificateInfo} The populated CertificateInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertificateInfo(); + + if (data.hasOwnProperty('ExtKeyUsage')) { + obj['ExtKeyUsage'] = _ApiClient["default"].convertToType(data['ExtKeyUsage'], ['Number']); + } + + if (data.hasOwnProperty('KeyUsage')) { + obj['KeyUsage'] = _ApiClient["default"].convertToType(data['KeyUsage'], 'Number'); + } + + if (data.hasOwnProperty('crl_distribution_points')) { + obj['crl_distribution_points'] = _ApiClient["default"].convertToType(data['crl_distribution_points'], ['String']); + } + + if (data.hasOwnProperty('dns_names')) { + obj['dns_names'] = _ApiClient["default"].convertToType(data['dns_names'], ['String']); + } + + if (data.hasOwnProperty('email_addresses')) { + obj['email_addresses'] = _ApiClient["default"].convertToType(data['email_addresses'], ['String']); + } + + if (data.hasOwnProperty('extensions')) { + obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], [_Extension["default"]]); + } + + if (data.hasOwnProperty('ip_addresses')) { + obj['ip_addresses'] = _ApiClient["default"].convertToType(data['ip_addresses'], ['String']); + } + + if (data.hasOwnProperty('is_ca')) { + obj['is_ca'] = _ApiClient["default"].convertToType(data['is_ca'], 'Boolean'); + } + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _Name["default"].constructFromObject(data['issuer']); + } + + if (data.hasOwnProperty('issuing_certificate_url')) { + obj['issuing_certificate_url'] = _ApiClient["default"].convertToType(data['issuing_certificate_url'], ['String']); + } + + if (data.hasOwnProperty('key_size')) { + obj['key_size'] = _ApiClient["default"].convertToType(data['key_size'], 'Number'); + } + + if (data.hasOwnProperty('not_after')) { + obj['not_after'] = _ApiClient["default"].convertToType(data['not_after'], 'Date'); + } + + if (data.hasOwnProperty('not_before')) { + obj['not_before'] = _ApiClient["default"].convertToType(data['not_before'], 'Date'); + } + + if (data.hasOwnProperty('ocsp_server')) { + obj['ocsp_server'] = _ApiClient["default"].convertToType(data['ocsp_server'], ['String']); + } + + if (data.hasOwnProperty('public_key_algorithm_name')) { + obj['public_key_algorithm_name'] = _ApiClient["default"].convertToType(data['public_key_algorithm_name'], 'String'); + } + + if (data.hasOwnProperty('serial_number')) { + obj['serial_number'] = _ApiClient["default"].convertToType(data['serial_number'], 'String'); + } + + if (data.hasOwnProperty('sha_1_fingerprint')) { + obj['sha_1_fingerprint'] = _ApiClient["default"].convertToType(data['sha_1_fingerprint'], 'String'); + } + + if (data.hasOwnProperty('sha_256_fingerprint')) { + obj['sha_256_fingerprint'] = _ApiClient["default"].convertToType(data['sha_256_fingerprint'], 'String'); + } + + if (data.hasOwnProperty('signature')) { + obj['signature'] = _ApiClient["default"].convertToType(data['signature'], 'String'); + } + + if (data.hasOwnProperty('signature_algorithm_name')) { + obj['signature_algorithm_name'] = _ApiClient["default"].convertToType(data['signature_algorithm_name'], 'String'); + } + + if (data.hasOwnProperty('subject')) { + obj['subject'] = _Name["default"].constructFromObject(data['subject']); + } + + if (data.hasOwnProperty('subject_public_key')) { + obj['subject_public_key'] = _ApiClient["default"].convertToType(data['subject_public_key'], 'String'); + } + + if (data.hasOwnProperty('uris')) { + obj['uris'] = _ApiClient["default"].convertToType(data['uris'], ['String']); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return CertificateInfo; +}(); +/** + * @member {Array.} ExtKeyUsage + */ + + +CertificateInfo.prototype['ExtKeyUsage'] = undefined; +/** + * KeyUsage represents the set of actions that are valid for a given key. It's a bitmap of the KeyUsage* constants. + * @member {Number} KeyUsage + */ + +CertificateInfo.prototype['KeyUsage'] = undefined; +/** + * @member {Array.} crl_distribution_points + */ + +CertificateInfo.prototype['crl_distribution_points'] = undefined; +/** + * @member {Array.} dns_names + */ + +CertificateInfo.prototype['dns_names'] = undefined; +/** + * @member {Array.} email_addresses + */ + +CertificateInfo.prototype['email_addresses'] = undefined; +/** + * @member {Array.} extensions + */ + +CertificateInfo.prototype['extensions'] = undefined; +/** + * @member {Array.} ip_addresses + */ + +CertificateInfo.prototype['ip_addresses'] = undefined; +/** + * @member {Boolean} is_ca + */ + +CertificateInfo.prototype['is_ca'] = undefined; +/** + * @member {module:model/Name} issuer + */ + +CertificateInfo.prototype['issuer'] = undefined; +/** + * @member {Array.} issuing_certificate_url + */ + +CertificateInfo.prototype['issuing_certificate_url'] = undefined; +/** + * @member {Number} key_size + */ + +CertificateInfo.prototype['key_size'] = undefined; +/** + * @member {Date} not_after + */ + +CertificateInfo.prototype['not_after'] = undefined; +/** + * @member {Date} not_before + */ + +CertificateInfo.prototype['not_before'] = undefined; +/** + * @member {Array.} ocsp_server + */ + +CertificateInfo.prototype['ocsp_server'] = undefined; +/** + * @member {String} public_key_algorithm_name + */ + +CertificateInfo.prototype['public_key_algorithm_name'] = undefined; +/** + * @member {String} serial_number + */ + +CertificateInfo.prototype['serial_number'] = undefined; +/** + * @member {String} sha_1_fingerprint + */ + +CertificateInfo.prototype['sha_1_fingerprint'] = undefined; +/** + * @member {String} sha_256_fingerprint + */ + +CertificateInfo.prototype['sha_256_fingerprint'] = undefined; +/** + * @member {String} signature + */ + +CertificateInfo.prototype['signature'] = undefined; +/** + * @member {String} signature_algorithm_name + */ + +CertificateInfo.prototype['signature_algorithm_name'] = undefined; +/** + * @member {module:model/Name} subject + */ + +CertificateInfo.prototype['subject'] = undefined; +/** + * @member {String} subject_public_key + */ + +CertificateInfo.prototype['subject_public_key'] = undefined; +/** + * @member {Array.} uris + */ + +CertificateInfo.prototype['uris'] = undefined; +/** + * @member {Number} version + */ + +CertificateInfo.prototype['version'] = undefined; +var _default = CertificateInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 72182: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _PKICertificateIssueDetails = _interopRequireDefault(__nccwpck_require__(16540)); + +var _SSHCertificateIssueDetails = _interopRequireDefault(__nccwpck_require__(29238)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CertificateIssueInfo model module. + * @module model/CertificateIssueInfo + * @version 3.6.3 + */ +var CertificateIssueInfo = /*#__PURE__*/function () { + /** + * Constructs a new CertificateIssueInfo. + * @alias module:model/CertificateIssueInfo + */ + function CertificateIssueInfo() { + _classCallCheck(this, CertificateIssueInfo); + + CertificateIssueInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CertificateIssueInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CertificateIssueInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertificateIssueInfo} obj Optional instance to populate. + * @return {module:model/CertificateIssueInfo} The populated CertificateIssueInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertificateIssueInfo(); + + if (data.hasOwnProperty('cert_issuer_type')) { + obj['cert_issuer_type'] = _ApiClient["default"].convertToType(data['cert_issuer_type'], 'String'); + } + + if (data.hasOwnProperty('max_ttl')) { + obj['max_ttl'] = _ApiClient["default"].convertToType(data['max_ttl'], 'Number'); + } + + if (data.hasOwnProperty('pki_cert_issuer_details')) { + obj['pki_cert_issuer_details'] = _PKICertificateIssueDetails["default"].constructFromObject(data['pki_cert_issuer_details']); + } + + if (data.hasOwnProperty('ssh_cert_issuer_details')) { + obj['ssh_cert_issuer_details'] = _SSHCertificateIssueDetails["default"].constructFromObject(data['ssh_cert_issuer_details']); + } + } + + return obj; + } + }]); + + return CertificateIssueInfo; +}(); +/** + * @member {String} cert_issuer_type + */ + + +CertificateIssueInfo.prototype['cert_issuer_type'] = undefined; +/** + * @member {Number} max_ttl + */ + +CertificateIssueInfo.prototype['max_ttl'] = undefined; +/** + * @member {module:model/PKICertificateIssueDetails} pki_cert_issuer_details + */ + +CertificateIssueInfo.prototype['pki_cert_issuer_details'] = undefined; +/** + * @member {module:model/SSHCertificateIssueDetails} ssh_cert_issuer_details + */ + +CertificateIssueInfo.prototype['ssh_cert_issuer_details'] = undefined; +var _default = CertificateIssueInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 89755: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CertificateTemplateInfo model module. + * @module model/CertificateTemplateInfo + * @version 3.6.3 + */ +var CertificateTemplateInfo = /*#__PURE__*/function () { + /** + * Constructs a new CertificateTemplateInfo. + * @alias module:model/CertificateTemplateInfo + */ + function CertificateTemplateInfo() { + _classCallCheck(this, CertificateTemplateInfo); + + CertificateTemplateInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CertificateTemplateInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CertificateTemplateInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertificateTemplateInfo} obj Optional instance to populate. + * @return {module:model/CertificateTemplateInfo} The populated CertificateTemplateInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertificateTemplateInfo(); + + if (data.hasOwnProperty('common_name')) { + obj['common_name'] = _ApiClient["default"].convertToType(data['common_name'], 'String'); + } + + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); + } + + if (data.hasOwnProperty('csr_cnf_base_64')) { + obj['csr_cnf_base_64'] = _ApiClient["default"].convertToType(data['csr_cnf_base_64'], 'String'); + } + + if (data.hasOwnProperty('digest_algo')) { + obj['digest_algo'] = _ApiClient["default"].convertToType(data['digest_algo'], 'String'); + } + + if (data.hasOwnProperty('locality')) { + obj['locality'] = _ApiClient["default"].convertToType(data['locality'], 'String'); + } + + if (data.hasOwnProperty('organization')) { + obj['organization'] = _ApiClient["default"].convertToType(data['organization'], 'String'); + } + + if (data.hasOwnProperty('province')) { + obj['province'] = _ApiClient["default"].convertToType(data['province'], 'String'); + } + + if (data.hasOwnProperty('self_signed_enabled')) { + obj['self_signed_enabled'] = _ApiClient["default"].convertToType(data['self_signed_enabled'], 'Boolean'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + } + + return obj; + } + }]); + + return CertificateTemplateInfo; +}(); +/** + * @member {String} common_name + */ + + +CertificateTemplateInfo.prototype['common_name'] = undefined; +/** + * @member {String} country + */ + +CertificateTemplateInfo.prototype['country'] = undefined; +/** + * @member {String} csr_cnf_base_64 + */ + +CertificateTemplateInfo.prototype['csr_cnf_base_64'] = undefined; +/** + * @member {String} digest_algo + */ + +CertificateTemplateInfo.prototype['digest_algo'] = undefined; +/** + * @member {String} locality + */ + +CertificateTemplateInfo.prototype['locality'] = undefined; +/** + * @member {String} organization + */ + +CertificateTemplateInfo.prototype['organization'] = undefined; +/** + * @member {String} province + */ + +CertificateTemplateInfo.prototype['province'] = undefined; +/** + * @member {Boolean} self_signed_enabled + */ + +CertificateTemplateInfo.prototype['self_signed_enabled'] = undefined; +/** + * @member {Number} ttl + */ + +CertificateTemplateInfo.prototype['ttl'] = undefined; +var _default = CertificateTemplateInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 67405: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CertificateVersionInfo model module. + * @module model/CertificateVersionInfo + * @version 3.6.3 + */ +var CertificateVersionInfo = /*#__PURE__*/function () { + /** + * Constructs a new CertificateVersionInfo. + * @alias module:model/CertificateVersionInfo + */ + function CertificateVersionInfo() { + _classCallCheck(this, CertificateVersionInfo); + + CertificateVersionInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CertificateVersionInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CertificateVersionInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CertificateVersionInfo} obj Optional instance to populate. + * @return {module:model/CertificateVersionInfo} The populated CertificateVersionInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CertificateVersionInfo(); + + if (data.hasOwnProperty('not_after')) { + obj['not_after'] = _ApiClient["default"].convertToType(data['not_after'], 'Date'); + } + + if (data.hasOwnProperty('not_before')) { + obj['not_before'] = _ApiClient["default"].convertToType(data['not_before'], 'Date'); + } + + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); + } + } + + return obj; + } + }]); + + return CertificateVersionInfo; +}(); +/** + * @member {Date} not_after + */ + + +CertificateVersionInfo.prototype['not_after'] = undefined; +/** + * @member {Date} not_before + */ + +CertificateVersionInfo.prototype['not_before'] = undefined; +/** + * @member {String} status + */ + +CertificateVersionInfo.prototype['status'] = undefined; +var _default = CertificateVersionInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 31185: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CfInfo model module. + * @module model/CfInfo + * @version 3.6.3 + */ +var CfInfo = /*#__PURE__*/function () { + /** + * Constructs a new CfInfo. + * @alias module:model/CfInfo + */ + function CfInfo() { + _classCallCheck(this, CfInfo); + + CfInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CfInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CfInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CfInfo} obj Optional instance to populate. + * @return {module:model/CfInfo} The populated CfInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CfInfo(); + + if (data.hasOwnProperty('cf_name')) { + obj['cf_name'] = _ApiClient["default"].convertToType(data['cf_name'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('hash')) { + obj['hash'] = _ApiClient["default"].convertToType(data['hash'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + } + + return obj; + } + }]); + + return CfInfo; +}(); +/** + * @member {String} cf_name + */ + + +CfInfo.prototype['cf_name'] = undefined; +/** + * @member {String} description + */ + +CfInfo.prototype['description'] = undefined; +/** + * @member {String} hash + */ + +CfInfo.prototype['hash'] = undefined; +/** + * @member {String} id + */ + +CfInfo.prototype['id'] = undefined; +var _default = CfInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 29095: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ChefTargetDetails model module. + * @module model/ChefTargetDetails + * @version 3.6.3 + */ +var ChefTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new ChefTargetDetails. + * ChefTargetDetails + * @alias module:model/ChefTargetDetails + */ + function ChefTargetDetails() { + _classCallCheck(this, ChefTargetDetails); + + ChefTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ChefTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ChefTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ChefTargetDetails} obj Optional instance to populate. + * @return {module:model/ChefTargetDetails} The populated ChefTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ChefTargetDetails(); + + if (data.hasOwnProperty('chef_server_host_name')) { + obj['chef_server_host_name'] = _ApiClient["default"].convertToType(data['chef_server_host_name'], 'String'); + } + + if (data.hasOwnProperty('chef_server_key')) { + obj['chef_server_key'] = _ApiClient["default"].convertToType(data['chef_server_key'], 'String'); + } + + if (data.hasOwnProperty('chef_server_port')) { + obj['chef_server_port'] = _ApiClient["default"].convertToType(data['chef_server_port'], 'String'); + } + + if (data.hasOwnProperty('chef_server_url')) { + obj['chef_server_url'] = _ApiClient["default"].convertToType(data['chef_server_url'], 'String'); + } + + if (data.hasOwnProperty('chef_server_username')) { + obj['chef_server_username'] = _ApiClient["default"].convertToType(data['chef_server_username'], 'String'); + } + + if (data.hasOwnProperty('chef_skip_ssl')) { + obj['chef_skip_ssl'] = _ApiClient["default"].convertToType(data['chef_skip_ssl'], 'Boolean'); + } + } + + return obj; + } + }]); + + return ChefTargetDetails; +}(); +/** + * @member {String} chef_server_host_name + */ + + +ChefTargetDetails.prototype['chef_server_host_name'] = undefined; +/** + * @member {String} chef_server_key + */ + +ChefTargetDetails.prototype['chef_server_key'] = undefined; +/** + * @member {String} chef_server_port + */ + +ChefTargetDetails.prototype['chef_server_port'] = undefined; +/** + * @member {String} chef_server_url + */ + +ChefTargetDetails.prototype['chef_server_url'] = undefined; +/** + * @member {String} chef_server_username + */ + +ChefTargetDetails.prototype['chef_server_username'] = undefined; +/** + * @member {Boolean} chef_skip_ssl + */ + +ChefTargetDetails.prototype['chef_skip_ssl'] = undefined; +var _default = ChefTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 49881: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _ClassicKeyTargetInfo = _interopRequireDefault(__nccwpck_require__(41418)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ClassicKeyDetailsInfo model module. + * @module model/ClassicKeyDetailsInfo + * @version 3.6.3 + */ +var ClassicKeyDetailsInfo = /*#__PURE__*/function () { + /** + * Constructs a new ClassicKeyDetailsInfo. + * @alias module:model/ClassicKeyDetailsInfo + */ + function ClassicKeyDetailsInfo() { + _classCallCheck(this, ClassicKeyDetailsInfo); + + ClassicKeyDetailsInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ClassicKeyDetailsInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ClassicKeyDetailsInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClassicKeyDetailsInfo} obj Optional instance to populate. + * @return {module:model/ClassicKeyDetailsInfo} The populated ClassicKeyDetailsInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ClassicKeyDetailsInfo(); + + if (data.hasOwnProperty('classic_key_attributes')) { + obj['classic_key_attributes'] = _ApiClient["default"].convertToType(data['classic_key_attributes'], { + 'String': ['String'] + }); + } + + if (data.hasOwnProperty('classic_key_id')) { + obj['classic_key_id'] = _ApiClient["default"].convertToType(data['classic_key_id'], 'String'); + } + + if (data.hasOwnProperty('gw_cluster_id')) { + obj['gw_cluster_id'] = _ApiClient["default"].convertToType(data['gw_cluster_id'], 'Number'); + } + + if (data.hasOwnProperty('has_certificate')) { + obj['has_certificate'] = _ApiClient["default"].convertToType(data['has_certificate'], 'Boolean'); + } + + if (data.hasOwnProperty('is_provided_by_user')) { + obj['is_provided_by_user'] = _ApiClient["default"].convertToType(data['is_provided_by_user'], 'Boolean'); + } + + if (data.hasOwnProperty('is_unexportable')) { + obj['is_unexportable'] = _ApiClient["default"].convertToType(data['is_unexportable'], 'Boolean'); + } + + if (data.hasOwnProperty('key_state')) { + obj['key_state'] = _ApiClient["default"].convertToType(data['key_state'], 'String'); + } + + if (data.hasOwnProperty('key_type')) { + obj['key_type'] = _ApiClient["default"].convertToType(data['key_type'], 'String'); + } + + if (data.hasOwnProperty('last_error')) { + obj['last_error'] = _ApiClient["default"].convertToType(data['last_error'], 'String'); + } + + if (data.hasOwnProperty('public_key')) { + obj['public_key'] = _ApiClient["default"].convertToType(data['public_key'], 'String'); + } + + if (data.hasOwnProperty('target_alias_helper')) { + obj['target_alias_helper'] = _ApiClient["default"].convertToType(data['target_alias_helper'], 'String'); + } + + if (data.hasOwnProperty('target_types')) { + obj['target_types'] = _ApiClient["default"].convertToType(data['target_types'], ['String']); + } + + if (data.hasOwnProperty('targets')) { + obj['targets'] = _ApiClient["default"].convertToType(data['targets'], [_ClassicKeyTargetInfo["default"]]); + } + } + + return obj; + } + }]); + + return ClassicKeyDetailsInfo; +}(); +/** + * @member {Object.>} classic_key_attributes + */ + + +ClassicKeyDetailsInfo.prototype['classic_key_attributes'] = undefined; +/** + * @member {String} classic_key_id + */ + +ClassicKeyDetailsInfo.prototype['classic_key_id'] = undefined; +/** + * @member {Number} gw_cluster_id + */ + +ClassicKeyDetailsInfo.prototype['gw_cluster_id'] = undefined; +/** + * @member {Boolean} has_certificate + */ + +ClassicKeyDetailsInfo.prototype['has_certificate'] = undefined; +/** + * @member {Boolean} is_provided_by_user + */ + +ClassicKeyDetailsInfo.prototype['is_provided_by_user'] = undefined; +/** + * @member {Boolean} is_unexportable + */ + +ClassicKeyDetailsInfo.prototype['is_unexportable'] = undefined; +/** + * ItemState defines the different states an Item can be in + * @member {String} key_state + */ + +ClassicKeyDetailsInfo.prototype['key_state'] = undefined; +/** + * @member {String} key_type + */ + +ClassicKeyDetailsInfo.prototype['key_type'] = undefined; +/** + * @member {String} last_error + */ + +ClassicKeyDetailsInfo.prototype['last_error'] = undefined; +/** + * @member {String} public_key + */ + +ClassicKeyDetailsInfo.prototype['public_key'] = undefined; +/** + * @member {String} target_alias_helper + */ + +ClassicKeyDetailsInfo.prototype['target_alias_helper'] = undefined; +/** + * @member {Array.} target_types + */ + +ClassicKeyDetailsInfo.prototype['target_types'] = undefined; +/** + * @member {Array.} targets + */ + +ClassicKeyDetailsInfo.prototype['targets'] = undefined; +var _default = ClassicKeyDetailsInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 6277: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ClassicKeyStatusInfo model module. + * @module model/ClassicKeyStatusInfo + * @version 3.6.3 + */ +var ClassicKeyStatusInfo = /*#__PURE__*/function () { + /** + * Constructs a new ClassicKeyStatusInfo. + * @alias module:model/ClassicKeyStatusInfo + */ + function ClassicKeyStatusInfo() { + _classCallCheck(this, ClassicKeyStatusInfo); + + ClassicKeyStatusInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ClassicKeyStatusInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ClassicKeyStatusInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClassicKeyStatusInfo} obj Optional instance to populate. + * @return {module:model/ClassicKeyStatusInfo} The populated ClassicKeyStatusInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ClassicKeyStatusInfo(); + + if (data.hasOwnProperty('error_date')) { + obj['error_date'] = _ApiClient["default"].convertToType(data['error_date'], 'Date'); + } + + if (data.hasOwnProperty('last_error')) { + obj['last_error'] = _ApiClient["default"].convertToType(data['last_error'], 'String'); + } + + if (data.hasOwnProperty('last_status')) { + obj['last_status'] = _ApiClient["default"].convertToType(data['last_status'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return ClassicKeyStatusInfo; +}(); +/** + * @member {Date} error_date + */ + + +ClassicKeyStatusInfo.prototype['error_date'] = undefined; +/** + * @member {String} last_error + */ + +ClassicKeyStatusInfo.prototype['last_error'] = undefined; +/** + * ClassicKeyTargetStatus defines status of classic key target + * @member {String} last_status + */ + +ClassicKeyStatusInfo.prototype['last_status'] = undefined; +/** + * @member {Number} version + */ + +ClassicKeyStatusInfo.prototype['version'] = undefined; +var _default = ClassicKeyStatusInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 41418: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _ClassicKeyStatusInfo = _interopRequireDefault(__nccwpck_require__(6277)); + +var _ExternalKMSKeyId = _interopRequireDefault(__nccwpck_require__(80238)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ClassicKeyTargetInfo model module. + * @module model/ClassicKeyTargetInfo + * @version 3.6.3 + */ +var ClassicKeyTargetInfo = /*#__PURE__*/function () { + /** + * Constructs a new ClassicKeyTargetInfo. + * @alias module:model/ClassicKeyTargetInfo + */ + function ClassicKeyTargetInfo() { + _classCallCheck(this, ClassicKeyTargetInfo); + + ClassicKeyTargetInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ClassicKeyTargetInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ClassicKeyTargetInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClassicKeyTargetInfo} obj Optional instance to populate. + * @return {module:model/ClassicKeyTargetInfo} The populated ClassicKeyTargetInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ClassicKeyTargetInfo(); + + if (data.hasOwnProperty('external_kms_id')) { + obj['external_kms_id'] = _ExternalKMSKeyId["default"].constructFromObject(data['external_kms_id']); + } + + if (data.hasOwnProperty('key_purpose')) { + obj['key_purpose'] = _ApiClient["default"].convertToType(data['key_purpose'], ['String']); + } + + if (data.hasOwnProperty('key_status')) { + obj['key_status'] = _ClassicKeyStatusInfo["default"].constructFromObject(data['key_status']); + } + + if (data.hasOwnProperty('target_assoc_id')) { + obj['target_assoc_id'] = _ApiClient["default"].convertToType(data['target_assoc_id'], 'String'); + } + + if (data.hasOwnProperty('target_type')) { + obj['target_type'] = _ApiClient["default"].convertToType(data['target_type'], 'String'); + } + } + + return obj; + } + }]); + + return ClassicKeyTargetInfo; +}(); +/** + * @member {module:model/ExternalKMSKeyId} external_kms_id + */ + + +ClassicKeyTargetInfo.prototype['external_kms_id'] = undefined; +/** + * @member {Array.} key_purpose + */ + +ClassicKeyTargetInfo.prototype['key_purpose'] = undefined; +/** + * @member {module:model/ClassicKeyStatusInfo} key_status + */ + +ClassicKeyTargetInfo.prototype['key_status'] = undefined; +/** + * @member {String} target_assoc_id + */ + +ClassicKeyTargetInfo.prototype['target_assoc_id'] = undefined; +/** + * @member {String} target_type + */ + +ClassicKeyTargetInfo.prototype['target_type'] = undefined; +var _default = ClassicKeyTargetInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 49671: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ClientData model module. + * @module model/ClientData + * @version 3.6.3 + */ +var ClientData = /*#__PURE__*/function () { + /** + * Constructs a new ClientData. + * @alias module:model/ClientData + */ + function ClientData() { + _classCallCheck(this, ClientData); + + ClientData.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ClientData, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ClientData from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClientData} obj Optional instance to populate. + * @return {module:model/ClientData} The populated ClientData instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ClientData(); + + if (data.hasOwnProperty('clientCertificateData')) { + obj['clientCertificateData'] = _ApiClient["default"].convertToType(data['clientCertificateData'], 'String'); + } + + if (data.hasOwnProperty('clientKeyData')) { + obj['clientKeyData'] = _ApiClient["default"].convertToType(data['clientKeyData'], 'String'); + } + + if (data.hasOwnProperty('parentCertificateData')) { + obj['parentCertificateData'] = _ApiClient["default"].convertToType(data['parentCertificateData'], 'String'); + } + } + + return obj; + } + }]); + + return ClientData; +}(); +/** + * @member {String} clientCertificateData + */ + + +ClientData.prototype['clientCertificateData'] = undefined; +/** + * @member {String} clientKeyData + */ + +ClientData.prototype['clientKeyData'] = undefined; +/** + * @member {String} parentCertificateData + */ + +ClientData.prototype['parentCertificateData'] = undefined; +var _default = ClientData; +exports["default"] = _default; + +/***/ }), + +/***/ 95328: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ClientUsageInfo model module. + * @module model/ClientUsageInfo + * @version 3.6.3 + */ +var ClientUsageInfo = /*#__PURE__*/function () { + /** + * Constructs a new ClientUsageInfo. + * @alias module:model/ClientUsageInfo + */ + function ClientUsageInfo() { + _classCallCheck(this, ClientUsageInfo); + + ClientUsageInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ClientUsageInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ClientUsageInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClientUsageInfo} obj Optional instance to populate. + * @return {module:model/ClientUsageInfo} The populated ClientUsageInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ClientUsageInfo(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('access_type')) { + obj['access_type'] = _ApiClient["default"].convertToType(data['access_type'], 'String'); + } + + if (data.hasOwnProperty('auth_method_name')) { + obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); + } + + if (data.hasOwnProperty('client_unique_id')) { + obj['client_unique_id'] = _ApiClient["default"].convertToType(data['client_unique_id'], 'String'); + } + + if (data.hasOwnProperty('exceeded_clients')) { + obj['exceeded_clients'] = _ApiClient["default"].convertToType(data['exceeded_clients'], 'Number'); + } + } + + return obj; + } + }]); + + return ClientUsageInfo; +}(); +/** + * @member {String} access_id + */ + + +ClientUsageInfo.prototype['access_id'] = undefined; +/** + * @member {String} access_type + */ + +ClientUsageInfo.prototype['access_type'] = undefined; +/** + * @member {String} auth_method_name + */ + +ClientUsageInfo.prototype['auth_method_name'] = undefined; +/** + * @member {String} client_unique_id + */ + +ClientUsageInfo.prototype['client_unique_id'] = undefined; +/** + * @member {Number} exceeded_clients + */ + +ClientUsageInfo.prototype['exceeded_clients'] = undefined; +var _default = ClientUsageInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 6313: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _ClientUsageInfo = _interopRequireDefault(__nccwpck_require__(95328)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ClientsUsageReport model module. + * @module model/ClientsUsageReport + * @version 3.6.3 + */ +var ClientsUsageReport = /*#__PURE__*/function () { + /** + * Constructs a new ClientsUsageReport. + * @alias module:model/ClientsUsageReport + */ + function ClientsUsageReport() { + _classCallCheck(this, ClientsUsageReport); + + ClientsUsageReport.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ClientsUsageReport, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ClientsUsageReport from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClientsUsageReport} obj Optional instance to populate. + * @return {module:model/ClientsUsageReport} The populated ClientsUsageReport instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ClientsUsageReport(); + + if (data.hasOwnProperty('account_id')) { + obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); + } + + if (data.hasOwnProperty('clients')) { + obj['clients'] = _ApiClient["default"].convertToType(data['clients'], [_ClientUsageInfo["default"]]); + } + + if (data.hasOwnProperty('product')) { + obj['product'] = _ApiClient["default"].convertToType(data['product'], 'String'); + } + + if (data.hasOwnProperty('time')) { + obj['time'] = _ApiClient["default"].convertToType(data['time'], 'Date'); + } + + if (data.hasOwnProperty('total_clients')) { + obj['total_clients'] = _ApiClient["default"].convertToType(data['total_clients'], 'Number'); + } + } + + return obj; + } + }]); + + return ClientsUsageReport; +}(); +/** + * @member {String} account_id + */ + + +ClientsUsageReport.prototype['account_id'] = undefined; +/** + * @member {Array.} clients + */ + +ClientsUsageReport.prototype['clients'] = undefined; +/** + * @member {String} product + */ + +ClientsUsageReport.prototype['product'] = undefined; +/** + * @member {Date} time + */ + +ClientsUsageReport.prototype['time'] = undefined; +/** + * @member {Number} total_clients + */ + +ClientsUsageReport.prototype['total_clients'] = undefined; +var _default = ClientsUsageReport; +exports["default"] = _default; + +/***/ }), + +/***/ 47166: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _ConfigHash = _interopRequireDefault(__nccwpck_require__(95122)); + +var _LastConfigChange = _interopRequireDefault(__nccwpck_require__(48174)); + +var _LastStatusInfo = _interopRequireDefault(__nccwpck_require__(12778)); + +var _RequiredActivity = _interopRequireDefault(__nccwpck_require__(78028)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ConfigChange model module. + * @module model/ConfigChange + * @version 3.6.3 + */ +var ConfigChange = /*#__PURE__*/function () { + /** + * Constructs a new ConfigChange. + * @alias module:model/ConfigChange + */ + function ConfigChange() { + _classCallCheck(this, ConfigChange); + + ConfigChange.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ConfigChange, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ConfigChange from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ConfigChange} obj Optional instance to populate. + * @return {module:model/ConfigChange} The populated ConfigChange instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ConfigChange(); + + if (data.hasOwnProperty('config_hash')) { + obj['config_hash'] = _ConfigHash["default"].constructFromObject(data['config_hash']); + } + + if (data.hasOwnProperty('last_change')) { + obj['last_change'] = _LastConfigChange["default"].constructFromObject(data['last_change']); + } + + if (data.hasOwnProperty('last_status')) { + obj['last_status'] = _LastStatusInfo["default"].constructFromObject(data['last_status']); + } + + if (data.hasOwnProperty('required_activity')) { + obj['required_activity'] = _RequiredActivity["default"].constructFromObject(data['required_activity']); + } + + if (data.hasOwnProperty('update_stamp')) { + obj['update_stamp'] = _ApiClient["default"].convertToType(data['update_stamp'], 'Number'); + } + } + + return obj; + } + }]); + + return ConfigChange; +}(); +/** + * @member {module:model/ConfigHash} config_hash + */ + + +ConfigChange.prototype['config_hash'] = undefined; +/** + * @member {module:model/LastConfigChange} last_change + */ + +ConfigChange.prototype['last_change'] = undefined; +/** + * @member {module:model/LastStatusInfo} last_status + */ + +ConfigChange.prototype['last_status'] = undefined; +/** + * @member {module:model/RequiredActivity} required_activity + */ + +ConfigChange.prototype['required_activity'] = undefined; +/** + * @member {Number} update_stamp + */ + +ConfigChange.prototype['update_stamp'] = undefined; +var _default = ConfigChange; +exports["default"] = _default; + +/***/ }), + +/***/ 95122: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ConfigHash model module. + * @module model/ConfigHash + * @version 3.6.3 + */ +var ConfigHash = /*#__PURE__*/function () { + /** + * Constructs a new ConfigHash. + * @alias module:model/ConfigHash + */ + function ConfigHash() { + _classCallCheck(this, ConfigHash); + + ConfigHash.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ConfigHash, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ConfigHash from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ConfigHash} obj Optional instance to populate. + * @return {module:model/ConfigHash} The populated ConfigHash instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ConfigHash(); + + if (data.hasOwnProperty('admins')) { + obj['admins'] = _ApiClient["default"].convertToType(data['admins'], 'String'); + } + + if (data.hasOwnProperty('cache')) { + obj['cache'] = _ApiClient["default"].convertToType(data['cache'], 'String'); + } + + if (data.hasOwnProperty('customer_fragements')) { + obj['customer_fragements'] = _ApiClient["default"].convertToType(data['customer_fragements'], 'String'); + } + + if (data.hasOwnProperty('general')) { + obj['general'] = _ApiClient["default"].convertToType(data['general'], 'String'); + } + + if (data.hasOwnProperty('k8s_auths')) { + obj['k8s_auths'] = _ApiClient["default"].convertToType(data['k8s_auths'], 'String'); + } + + if (data.hasOwnProperty('kmip')) { + obj['kmip'] = _ApiClient["default"].convertToType(data['kmip'], 'String'); + } + + if (data.hasOwnProperty('ldap')) { + obj['ldap'] = _ApiClient["default"].convertToType(data['ldap'], 'String'); + } + + if (data.hasOwnProperty('leadership')) { + obj['leadership'] = _ApiClient["default"].convertToType(data['leadership'], 'String'); + } + + if (data.hasOwnProperty('log_forwarding')) { + obj['log_forwarding'] = _ApiClient["default"].convertToType(data['log_forwarding'], 'String'); + } + + if (data.hasOwnProperty('m_queue')) { + obj['m_queue'] = _ApiClient["default"].convertToType(data['m_queue'], 'String'); + } + + if (data.hasOwnProperty('migration_status')) { + obj['migration_status'] = _ApiClient["default"].convertToType(data['migration_status'], 'String'); + } + + if (data.hasOwnProperty('migrations')) { + obj['migrations'] = _ApiClient["default"].convertToType(data['migrations'], 'String'); + } + + if (data.hasOwnProperty('producers')) { + obj['producers'] = _ApiClient["default"].convertToType(data['producers'], Object); + } + + if (data.hasOwnProperty('producers_status')) { + obj['producers_status'] = _ApiClient["default"].convertToType(data['producers_status'], 'String'); + } + + if (data.hasOwnProperty('rotators')) { + obj['rotators'] = _ApiClient["default"].convertToType(data['rotators'], Object); + } + + if (data.hasOwnProperty('saml')) { + obj['saml'] = _ApiClient["default"].convertToType(data['saml'], 'String'); + } + + if (data.hasOwnProperty('universal_identity')) { + obj['universal_identity'] = _ApiClient["default"].convertToType(data['universal_identity'], 'String'); + } + } + + return obj; + } + }]); + + return ConfigHash; +}(); +/** + * @member {String} admins + */ + + +ConfigHash.prototype['admins'] = undefined; +/** + * @member {String} cache + */ + +ConfigHash.prototype['cache'] = undefined; +/** + * @member {String} customer_fragements + */ + +ConfigHash.prototype['customer_fragements'] = undefined; +/** + * @member {String} general + */ + +ConfigHash.prototype['general'] = undefined; +/** + * @member {String} k8s_auths + */ + +ConfigHash.prototype['k8s_auths'] = undefined; +/** + * @member {String} kmip + */ + +ConfigHash.prototype['kmip'] = undefined; +/** + * @member {String} ldap + */ + +ConfigHash.prototype['ldap'] = undefined; +/** + * @member {String} leadership + */ + +ConfigHash.prototype['leadership'] = undefined; +/** + * @member {String} log_forwarding + */ + +ConfigHash.prototype['log_forwarding'] = undefined; +/** + * @member {String} m_queue + */ + +ConfigHash.prototype['m_queue'] = undefined; +/** + * @member {String} migration_status + */ + +ConfigHash.prototype['migration_status'] = undefined; +/** + * @member {String} migrations + */ + +ConfigHash.prototype['migrations'] = undefined; +/** + * @member {Object} producers + */ + +ConfigHash.prototype['producers'] = undefined; +/** + * @member {String} producers_status + */ + +ConfigHash.prototype['producers_status'] = undefined; +/** + * @member {Object} rotators + */ + +ConfigHash.prototype['rotators'] = undefined; +/** + * @member {String} saml + */ + +ConfigHash.prototype['saml'] = undefined; +/** + * @member {String} universal_identity + */ + +ConfigHash.prototype['universal_identity'] = undefined; +var _default = ConfigHash; +exports["default"] = _default; + +/***/ }), + +/***/ 2610: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Configure model module. + * @module model/Configure + * @version 3.6.3 + */ +var Configure = /*#__PURE__*/function () { + /** + * Constructs a new Configure. + * @alias module:model/Configure + */ + function Configure() { + _classCallCheck(this, Configure); + + Configure.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Configure, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Configure from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Configure} obj Optional instance to populate. + * @return {module:model/Configure} The populated Configure instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Configure(); + + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('access-key')) { + obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); + } + + if (data.hasOwnProperty('access-type')) { + obj['access-type'] = _ApiClient["default"].convertToType(data['access-type'], 'String'); + } + + if (data.hasOwnProperty('account-id')) { + obj['account-id'] = _ApiClient["default"].convertToType(data['account-id'], 'String'); + } + + if (data.hasOwnProperty('admin-email')) { + obj['admin-email'] = _ApiClient["default"].convertToType(data['admin-email'], 'String'); + } + + if (data.hasOwnProperty('admin-password')) { + obj['admin-password'] = _ApiClient["default"].convertToType(data['admin-password'], 'String'); + } + + if (data.hasOwnProperty('azure_ad_object_id')) { + obj['azure_ad_object_id'] = _ApiClient["default"].convertToType(data['azure_ad_object_id'], 'String'); + } + + if (data.hasOwnProperty('cert-data')) { + obj['cert-data'] = _ApiClient["default"].convertToType(data['cert-data'], 'String'); + } + + if (data.hasOwnProperty('gcp-audience')) { + obj['gcp-audience'] = _ApiClient["default"].convertToType(data['gcp-audience'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-auth-config-name')) { + obj['k8s-auth-config-name'] = _ApiClient["default"].convertToType(data['k8s-auth-config-name'], 'String'); + } + + if (data.hasOwnProperty('key-data')) { + obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); + } + + if (data.hasOwnProperty('oci-auth-type')) { + obj['oci-auth-type'] = _ApiClient["default"].convertToType(data['oci-auth-type'], 'String'); + } + + if (data.hasOwnProperty('oci-group-ocid')) { + obj['oci-group-ocid'] = _ApiClient["default"].convertToType(data['oci-group-ocid'], ['String']); + } + } + + return obj; + } + }]); + + return Configure; +}(); +/** + * Access ID + * @member {String} access-id + */ + + +Configure.prototype['access-id'] = undefined; +/** + * Access Key + * @member {String} access-key + */ + +Configure.prototype['access-key'] = undefined; +/** + * Access Type (access_key/password/azure_ad/saml/oidc/aws_iam/gcp/k8s/cert) + * @member {String} access-type + * @default 'access_key' + */ + +Configure.prototype['access-type'] = 'access_key'; +/** + * Account id (relevant only for access-type=password where the email address is associated with more than one account) + * @member {String} account-id + */ + +Configure.prototype['account-id'] = undefined; +/** + * Email (relevant only for access-type=password) + * @member {String} admin-email + */ + +Configure.prototype['admin-email'] = undefined; +/** + * Password (relevant only for access-type=password) + * @member {String} admin-password + */ + +Configure.prototype['admin-password'] = undefined; +/** + * Azure Active Directory ObjectId (relevant only for access-type=azure_ad) + * @member {String} azure_ad_object_id + */ + +Configure.prototype['azure_ad_object_id'] = undefined; +/** + * Certificate data encoded in base64. Used if file was not provided. (relevant only for access-type=cert in Curl Context) + * @member {String} cert-data + */ + +Configure.prototype['cert-data'] = undefined; +/** + * GCP JWT audience + * @member {String} gcp-audience + * @default 'akeyless.io' + */ + +Configure.prototype['gcp-audience'] = 'akeyless.io'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +Configure.prototype['json'] = false; +/** + * The K8S Auth config name (relevant only for access-type=k8s) + * @member {String} k8s-auth-config-name + */ + +Configure.prototype['k8s-auth-config-name'] = undefined; +/** + * Private key data encoded in base64. Used if file was not provided.(relevant only for access-type=cert in Curl Context) + * @member {String} key-data + */ + +Configure.prototype['key-data'] = undefined; +/** + * The type of the OCI configuration to use [instance/apikey/resource] (relevant only for access-type=oci) + * @member {String} oci-auth-type + * @default 'apikey' + */ + +Configure.prototype['oci-auth-type'] = 'apikey'; +/** + * A list of Oracle Cloud IDs groups (relevant only for access-type=oci) + * @member {Array.} oci-group-ocid + */ + +Configure.prototype['oci-group-ocid'] = undefined; +var _default = Configure; +exports["default"] = _default; + +/***/ }), + +/***/ 6103: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ConfigureOutput model module. + * @module model/ConfigureOutput + * @version 3.6.3 + */ +var ConfigureOutput = /*#__PURE__*/function () { + /** + * Constructs a new ConfigureOutput. + * @alias module:model/ConfigureOutput + */ + function ConfigureOutput() { + _classCallCheck(this, ConfigureOutput); + + ConfigureOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ConfigureOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ConfigureOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ConfigureOutput} obj Optional instance to populate. + * @return {module:model/ConfigureOutput} The populated ConfigureOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ConfigureOutput(); + + if (data.hasOwnProperty('profile')) { + obj['profile'] = _ApiClient["default"].convertToType(data['profile'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + } + + return obj; + } + }]); + + return ConfigureOutput; +}(); +/** + * @member {String} profile + */ + + +ConfigureOutput.prototype['profile'] = undefined; +/** + * @member {String} token + */ + +ConfigureOutput.prototype['token'] = undefined; +var _default = ConfigureOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 92264: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Connect model module. + * @module model/Connect + * @version 3.6.3 + */ +var Connect = /*#__PURE__*/function () { + /** + * Constructs a new Connect. + * Connect is a command that performs secure remote access + * @alias module:model/Connect + */ + function Connect() { + _classCallCheck(this, Connect); + + Connect.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Connect, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Connect from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Connect} obj Optional instance to populate. + * @return {module:model/Connect} The populated Connect instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Connect(); + + if (data.hasOwnProperty('Helper')) { + obj['Helper'] = _ApiClient["default"].convertToType(data['Helper'], Object); + } + + if (data.hasOwnProperty('RcFileOverride')) { + obj['RcFileOverride'] = _ApiClient["default"].convertToType(data['RcFileOverride'], 'String'); + } + + if (data.hasOwnProperty('bastion-ctrl-path')) { + obj['bastion-ctrl-path'] = _ApiClient["default"].convertToType(data['bastion-ctrl-path'], 'String'); + } + + if (data.hasOwnProperty('bastion-ctrl-port')) { + obj['bastion-ctrl-port'] = _ApiClient["default"].convertToType(data['bastion-ctrl-port'], 'String'); + } + + if (data.hasOwnProperty('bastion-ctrl-proto')) { + obj['bastion-ctrl-proto'] = _ApiClient["default"].convertToType(data['bastion-ctrl-proto'], 'String'); + } + + if (data.hasOwnProperty('bastion-ctrl-subdomain')) { + obj['bastion-ctrl-subdomain'] = _ApiClient["default"].convertToType(data['bastion-ctrl-subdomain'], 'String'); + } + + if (data.hasOwnProperty('cert-issuer-name')) { + obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); + } + + if (data.hasOwnProperty('identity-file')) { + obj['identity-file'] = _ApiClient["default"].convertToType(data['identity-file'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('justification')) { + obj['justification'] = _ApiClient["default"].convertToType(data['justification'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('ssh-command')) { + obj['ssh-command'] = _ApiClient["default"].convertToType(data['ssh-command'], 'String'); + } + + if (data.hasOwnProperty('ssh-extra-args')) { + obj['ssh-extra-args'] = _ApiClient["default"].convertToType(data['ssh-extra-args'], 'String'); + } + + if (data.hasOwnProperty('ssh-legacy-signing-alg')) { + obj['ssh-legacy-signing-alg'] = _ApiClient["default"].convertToType(data['ssh-legacy-signing-alg'], 'Boolean'); + } + + if (data.hasOwnProperty('target')) { + obj['target'] = _ApiClient["default"].convertToType(data['target'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-ssh-agent')) { + obj['use-ssh-agent'] = _ApiClient["default"].convertToType(data['use-ssh-agent'], 'Boolean'); + } + + if (data.hasOwnProperty('via-bastion')) { + obj['via-bastion'] = _ApiClient["default"].convertToType(data['via-bastion'], 'String'); + } + } + + return obj; + } + }]); + + return Connect; +}(); +/** + * @member {Object} Helper + */ + + +Connect.prototype['Helper'] = undefined; +/** + * used to override .akeyless-connect.rc in tests + * @member {String} RcFileOverride + */ + +Connect.prototype['RcFileOverride'] = undefined; +/** + * The Bastion API path + * @member {String} bastion-ctrl-path + */ + +Connect.prototype['bastion-ctrl-path'] = undefined; +/** + * The Bastion API Port + * @member {String} bastion-ctrl-port + * @default '9900' + */ + +Connect.prototype['bastion-ctrl-port'] = '9900'; +/** + * The Bastion API protocol + * @member {String} bastion-ctrl-proto + * @default 'http' + */ + +Connect.prototype['bastion-ctrl-proto'] = 'http'; +/** + * The Bastion API prefix + * @member {String} bastion-ctrl-subdomain + */ + +Connect.prototype['bastion-ctrl-subdomain'] = undefined; +/** + * The Akeyless certificate issuer name + * @member {String} cert-issuer-name + */ + +Connect.prototype['cert-issuer-name'] = undefined; +/** + * The file from which the identity (private key) for public key authentication is read + * @member {String} identity-file + */ + +Connect.prototype['identity-file'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +Connect.prototype['json'] = false; +/** + * @member {String} justification + */ + +Connect.prototype['justification'] = undefined; +/** + * The Secret name (for database and AWS producers - producer name) + * @member {String} name + */ + +Connect.prototype['name'] = undefined; +/** + * Path to SSH executable. e.g. /usr/bin/ssh + * @member {String} ssh-command + */ + +Connect.prototype['ssh-command'] = undefined; +/** + * Additional SSH arguments (except -i) + * @member {String} ssh-extra-args + */ + +Connect.prototype['ssh-extra-args'] = undefined; +/** + * Set this option to output legacy ('ssh-rsa-cert-v01@openssh.com') signing algorithm name in the ssh certificate. + * @member {Boolean} ssh-legacy-signing-alg + * @default false + */ + +Connect.prototype['ssh-legacy-signing-alg'] = false; +/** + * The target + * @member {String} target + */ + +Connect.prototype['target'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +Connect.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +Connect.prototype['uid-token'] = undefined; +/** + * Enable ssh-agent + * @member {Boolean} use-ssh-agent + */ + +Connect.prototype['use-ssh-agent'] = undefined; +/** + * The jump box server + * @member {String} via-bastion + */ + +Connect.prototype['via-bastion'] = undefined; +var _default = Connect; +exports["default"] = _default; + +/***/ }), + +/***/ 69350: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAWSTarget model module. + * @module model/CreateAWSTarget + * @version 3.6.3 + */ +var CreateAWSTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateAWSTarget. + * @alias module:model/CreateAWSTarget + * @param accessKey {String} AWS secret access key + * @param accessKeyId {String} AWS access key ID + * @param name {String} Target name + */ + function CreateAWSTarget(accessKey, accessKeyId, name) { + _classCallCheck(this, CreateAWSTarget); + + CreateAWSTarget.initialize(this, accessKey, accessKeyId, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAWSTarget, null, [{ + key: "initialize", + value: function initialize(obj, accessKey, accessKeyId, name) { + obj['access-key'] = accessKey; + obj['access-key-id'] = accessKeyId; + obj['name'] = name; + } + /** + * Constructs a CreateAWSTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAWSTarget} obj Optional instance to populate. + * @return {module:model/CreateAWSTarget} The populated CreateAWSTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAWSTarget(); + + if (data.hasOwnProperty('access-key')) { + obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); + } + + if (data.hasOwnProperty('access-key-id')) { + obj['access-key-id'] = _ApiClient["default"].convertToType(data['access-key-id'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } + + if (data.hasOwnProperty('session-token')) { + obj['session-token'] = _ApiClient["default"].convertToType(data['session-token'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return CreateAWSTarget; +}(); +/** + * AWS secret access key + * @member {String} access-key + */ + + +CreateAWSTarget.prototype['access-key'] = undefined; +/** + * AWS access key ID + * @member {String} access-key-id + */ + +CreateAWSTarget.prototype['access-key-id'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateAWSTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateAWSTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAWSTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateAWSTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateAWSTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateAWSTarget.prototype['name'] = undefined; +/** + * AWS region + * @member {String} region + * @default 'us-east-2' + */ + +CreateAWSTarget.prototype['region'] = 'us-east-2'; +/** + * Required only for temporary security credentials retrieved using STS + * @member {String} session-token + */ + +CreateAWSTarget.prototype['session-token'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAWSTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAWSTarget.prototype['uid-token'] = undefined; +/** + * Use the GW's Cloud IAM + * @member {Boolean} use-gw-cloud-identity + */ + +CreateAWSTarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = CreateAWSTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 30851: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAWSTargetOutput model module. + * @module model/CreateAWSTargetOutput + * @version 3.6.3 + */ +var CreateAWSTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAWSTargetOutput. + * @alias module:model/CreateAWSTargetOutput + */ + function CreateAWSTargetOutput() { + _classCallCheck(this, CreateAWSTargetOutput); + + CreateAWSTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAWSTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAWSTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAWSTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateAWSTargetOutput} The populated CreateAWSTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAWSTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateAWSTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateAWSTargetOutput.prototype['target_id'] = undefined; +var _default = CreateAWSTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 87961: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateArtifactoryTarget model module. + * @module model/CreateArtifactoryTarget + * @version 3.6.3 + */ +var CreateArtifactoryTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateArtifactoryTarget. + * @alias module:model/CreateArtifactoryTarget + * @param artifactoryAdminName {String} Artifactory Admin Name + * @param artifactoryAdminPwd {String} Artifactory Admin password + * @param baseUrl {String} Base URL + * @param name {String} Target name + */ + function CreateArtifactoryTarget(artifactoryAdminName, artifactoryAdminPwd, baseUrl, name) { + _classCallCheck(this, CreateArtifactoryTarget); + + CreateArtifactoryTarget.initialize(this, artifactoryAdminName, artifactoryAdminPwd, baseUrl, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateArtifactoryTarget, null, [{ + key: "initialize", + value: function initialize(obj, artifactoryAdminName, artifactoryAdminPwd, baseUrl, name) { + obj['artifactory-admin-name'] = artifactoryAdminName; + obj['artifactory-admin-pwd'] = artifactoryAdminPwd; + obj['base-url'] = baseUrl; + obj['name'] = name; + } + /** + * Constructs a CreateArtifactoryTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateArtifactoryTarget} obj Optional instance to populate. + * @return {module:model/CreateArtifactoryTarget} The populated CreateArtifactoryTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateArtifactoryTarget(); + + if (data.hasOwnProperty('artifactory-admin-name')) { + obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); + } + + if (data.hasOwnProperty('artifactory-admin-pwd')) { + obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('base-url')) { + obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateArtifactoryTarget; +}(); +/** + * Artifactory Admin Name + * @member {String} artifactory-admin-name + */ + + +CreateArtifactoryTarget.prototype['artifactory-admin-name'] = undefined; +/** + * Artifactory Admin password + * @member {String} artifactory-admin-pwd + */ + +CreateArtifactoryTarget.prototype['artifactory-admin-pwd'] = undefined; +/** + * Base URL + * @member {String} base-url + */ + +CreateArtifactoryTarget.prototype['base-url'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateArtifactoryTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateArtifactoryTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateArtifactoryTarget.prototype['json'] = false; +/** + * The name of a key used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateArtifactoryTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateArtifactoryTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateArtifactoryTarget.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateArtifactoryTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateArtifactoryTarget.prototype['uid-token'] = undefined; +var _default = CreateArtifactoryTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 85020: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateArtifactoryTargetOutput model module. + * @module model/CreateArtifactoryTargetOutput + * @version 3.6.3 + */ +var CreateArtifactoryTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateArtifactoryTargetOutput. + * @alias module:model/CreateArtifactoryTargetOutput + */ + function CreateArtifactoryTargetOutput() { + _classCallCheck(this, CreateArtifactoryTargetOutput); + + CreateArtifactoryTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateArtifactoryTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateArtifactoryTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateArtifactoryTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateArtifactoryTargetOutput} The populated CreateArtifactoryTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateArtifactoryTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateArtifactoryTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateArtifactoryTargetOutput.prototype['target_id'] = undefined; +var _default = CreateArtifactoryTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 97067: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethod model module. + * @module model/CreateAuthMethod + * @version 3.6.3 + */ +var CreateAuthMethod = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethod. + * @alias module:model/CreateAuthMethod + * @param name {String} Auth Method name + */ + function CreateAuthMethod(name) { + _classCallCheck(this, CreateAuthMethod); + + CreateAuthMethod.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethod, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateAuthMethod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethod} obj Optional instance to populate. + * @return {module:model/CreateAuthMethod} The populated CreateAuthMethod instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethod(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethod; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethod.prototype['access-expires'] = 0; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethod.prototype['bound-ips'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethod.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethod.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethod.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethod.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethod.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethod.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethod.prototype['product-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethod.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethod.prototype['uid-token'] = undefined; +var _default = CreateAuthMethod; +exports["default"] = _default; + +/***/ }), + +/***/ 39317: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodAWSIAM model module. + * @module model/CreateAuthMethodAWSIAM + * @version 3.6.3 + */ +var CreateAuthMethodAWSIAM = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodAWSIAM. + * createAuthMethodAWSIAM is a command that creates a new Auth Method that will be able to authenticate using AWS IAM credentials. + * @alias module:model/CreateAuthMethodAWSIAM + * @param boundAwsAccountId {Array.} A list of AWS account-IDs that the access is restricted to + * @param name {String} Auth Method name + */ + function CreateAuthMethodAWSIAM(boundAwsAccountId, name) { + _classCallCheck(this, CreateAuthMethodAWSIAM); + + CreateAuthMethodAWSIAM.initialize(this, boundAwsAccountId, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodAWSIAM, null, [{ + key: "initialize", + value: function initialize(obj, boundAwsAccountId, name) { + obj['bound-aws-account-id'] = boundAwsAccountId; + obj['name'] = name; + } + /** + * Constructs a CreateAuthMethodAWSIAM from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodAWSIAM} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodAWSIAM} The populated CreateAuthMethodAWSIAM instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodAWSIAM(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('bound-arn')) { + obj['bound-arn'] = _ApiClient["default"].convertToType(data['bound-arn'], ['String']); + } + + if (data.hasOwnProperty('bound-aws-account-id')) { + obj['bound-aws-account-id'] = _ApiClient["default"].convertToType(data['bound-aws-account-id'], ['String']); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('bound-resource-id')) { + obj['bound-resource-id'] = _ApiClient["default"].convertToType(data['bound-resource-id'], ['String']); + } + + if (data.hasOwnProperty('bound-role-id')) { + obj['bound-role-id'] = _ApiClient["default"].convertToType(data['bound-role-id'], ['String']); + } + + if (data.hasOwnProperty('bound-role-name')) { + obj['bound-role-name'] = _ApiClient["default"].convertToType(data['bound-role-name'], ['String']); + } + + if (data.hasOwnProperty('bound-user-id')) { + obj['bound-user-id'] = _ApiClient["default"].convertToType(data['bound-user-id'], ['String']); + } + + if (data.hasOwnProperty('bound-user-name')) { + obj['bound-user-name'] = _ApiClient["default"].convertToType(data['bound-user-name'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('sts-url')) { + obj['sts-url'] = _ApiClient["default"].convertToType(data['sts-url'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodAWSIAM; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodAWSIAM.prototype['access-expires'] = 0; +/** + * A list of full arns that the access is restricted to + * @member {Array.} bound-arn + */ + +CreateAuthMethodAWSIAM.prototype['bound-arn'] = undefined; +/** + * A list of AWS account-IDs that the access is restricted to + * @member {Array.} bound-aws-account-id + */ + +CreateAuthMethodAWSIAM.prototype['bound-aws-account-id'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodAWSIAM.prototype['bound-ips'] = undefined; +/** + * A list of full resource ids that the access is restricted to + * @member {Array.} bound-resource-id + */ + +CreateAuthMethodAWSIAM.prototype['bound-resource-id'] = undefined; +/** + * A list of full role ids that the access is restricted to + * @member {Array.} bound-role-id + */ + +CreateAuthMethodAWSIAM.prototype['bound-role-id'] = undefined; +/** + * A list of full role-name that the access is restricted to + * @member {Array.} bound-role-name + */ + +CreateAuthMethodAWSIAM.prototype['bound-role-name'] = undefined; +/** + * A list of full user ids that the access is restricted to + * @member {Array.} bound-user-id + */ + +CreateAuthMethodAWSIAM.prototype['bound-user-id'] = undefined; +/** + * A list of full user-name that the access is restricted to + * @member {Array.} bound-user-name + */ + +CreateAuthMethodAWSIAM.prototype['bound-user-name'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodAWSIAM.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodAWSIAM.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodAWSIAM.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodAWSIAM.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodAWSIAM.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodAWSIAM.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodAWSIAM.prototype['product-type'] = undefined; +/** + * sts URL + * @member {String} sts-url + * @default 'https://sts.amazonaws.com' + */ + +CreateAuthMethodAWSIAM.prototype['sts-url'] = 'https://sts.amazonaws.com'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodAWSIAM.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodAWSIAM.prototype['uid-token'] = undefined; +var _default = CreateAuthMethodAWSIAM; +exports["default"] = _default; + +/***/ }), + +/***/ 29184: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodAWSIAMOutput model module. + * @module model/CreateAuthMethodAWSIAMOutput + * @version 3.6.3 + */ +var CreateAuthMethodAWSIAMOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodAWSIAMOutput. + * @alias module:model/CreateAuthMethodAWSIAMOutput + */ + function CreateAuthMethodAWSIAMOutput() { + _classCallCheck(this, CreateAuthMethodAWSIAMOutput); + + CreateAuthMethodAWSIAMOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodAWSIAMOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodAWSIAMOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodAWSIAMOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodAWSIAMOutput} The populated CreateAuthMethodAWSIAMOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodAWSIAMOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodAWSIAMOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodAWSIAMOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodAWSIAMOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 47553: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodAzureAD model module. + * @module model/CreateAuthMethodAzureAD + * @version 3.6.3 + */ +var CreateAuthMethodAzureAD = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodAzureAD. + * createAuthMethodAzureAD is a command that creates a new auth method that will be able to authenticate using Azure Active Directory credentials. + * @alias module:model/CreateAuthMethodAzureAD + * @param boundTenantId {String} The Azure tenant id that the access is restricted to + * @param name {String} Auth Method name + */ + function CreateAuthMethodAzureAD(boundTenantId, name) { + _classCallCheck(this, CreateAuthMethodAzureAD); + + CreateAuthMethodAzureAD.initialize(this, boundTenantId, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodAzureAD, null, [{ + key: "initialize", + value: function initialize(obj, boundTenantId, name) { + obj['bound-tenant-id'] = boundTenantId; + obj['name'] = name; + } + /** + * Constructs a CreateAuthMethodAzureAD from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodAzureAD} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodAzureAD} The populated CreateAuthMethodAzureAD instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodAzureAD(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('bound-group-id')) { + obj['bound-group-id'] = _ApiClient["default"].convertToType(data['bound-group-id'], ['String']); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('bound-providers')) { + obj['bound-providers'] = _ApiClient["default"].convertToType(data['bound-providers'], ['String']); + } + + if (data.hasOwnProperty('bound-resource-id')) { + obj['bound-resource-id'] = _ApiClient["default"].convertToType(data['bound-resource-id'], ['String']); + } + + if (data.hasOwnProperty('bound-resource-names')) { + obj['bound-resource-names'] = _ApiClient["default"].convertToType(data['bound-resource-names'], ['String']); + } + + if (data.hasOwnProperty('bound-resource-types')) { + obj['bound-resource-types'] = _ApiClient["default"].convertToType(data['bound-resource-types'], ['String']); + } + + if (data.hasOwnProperty('bound-rg-id')) { + obj['bound-rg-id'] = _ApiClient["default"].convertToType(data['bound-rg-id'], ['String']); + } + + if (data.hasOwnProperty('bound-spid')) { + obj['bound-spid'] = _ApiClient["default"].convertToType(data['bound-spid'], ['String']); + } + + if (data.hasOwnProperty('bound-sub-id')) { + obj['bound-sub-id'] = _ApiClient["default"].convertToType(data['bound-sub-id'], ['String']); + } + + if (data.hasOwnProperty('bound-tenant-id')) { + obj['bound-tenant-id'] = _ApiClient["default"].convertToType(data['bound-tenant-id'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwks-uri')) { + obj['jwks-uri'] = _ApiClient["default"].convertToType(data['jwks-uri'], 'String'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodAzureAD; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodAzureAD.prototype['access-expires'] = 0; +/** + * Deprecated (Deprecated) The audience in the JWT + * @member {String} audience + * @default 'https://management.azure.com/' + */ + +CreateAuthMethodAzureAD.prototype['audience'] = 'https://management.azure.com/'; +/** + * A list of group ids that the access is restricted to + * @member {Array.} bound-group-id + */ + +CreateAuthMethodAzureAD.prototype['bound-group-id'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodAzureAD.prototype['bound-ips'] = undefined; +/** + * A list of resource providers that the access is restricted to (e.g, Microsoft.Compute, Microsoft.ManagedIdentity, etc) + * @member {Array.} bound-providers + */ + +CreateAuthMethodAzureAD.prototype['bound-providers'] = undefined; +/** + * A list of full resource ids that the access is restricted to + * @member {Array.} bound-resource-id + */ + +CreateAuthMethodAzureAD.prototype['bound-resource-id'] = undefined; +/** + * A list of resource names that the access is restricted to (e.g, a virtual machine name, scale set name, etc). + * @member {Array.} bound-resource-names + */ + +CreateAuthMethodAzureAD.prototype['bound-resource-names'] = undefined; +/** + * A list of resource types that the access is restricted to (e.g, virtualMachines, userAssignedIdentities, etc) + * @member {Array.} bound-resource-types + */ + +CreateAuthMethodAzureAD.prototype['bound-resource-types'] = undefined; +/** + * A list of resource groups that the access is restricted to + * @member {Array.} bound-rg-id + */ + +CreateAuthMethodAzureAD.prototype['bound-rg-id'] = undefined; +/** + * A list of service principal IDs that the access is restricted to + * @member {Array.} bound-spid + */ + +CreateAuthMethodAzureAD.prototype['bound-spid'] = undefined; +/** + * A list of subscription ids that the access is restricted to + * @member {Array.} bound-sub-id + */ + +CreateAuthMethodAzureAD.prototype['bound-sub-id'] = undefined; +/** + * The Azure tenant id that the access is restricted to + * @member {String} bound-tenant-id + */ + +CreateAuthMethodAzureAD.prototype['bound-tenant-id'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodAzureAD.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodAzureAD.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodAzureAD.prototype['gw-bound-ips'] = undefined; +/** + * Issuer URL + * @member {String} issuer + * @default 'https://sts.windows.net/---bound_tenant_id---' + */ + +CreateAuthMethodAzureAD.prototype['issuer'] = 'https://sts.windows.net/---bound_tenant_id---'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodAzureAD.prototype['json'] = false; +/** + * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. + * @member {String} jwks-uri + * @default 'https://login.microsoftonline.com/common/discovery/keys' + */ + +CreateAuthMethodAzureAD.prototype['jwks-uri'] = 'https://login.microsoftonline.com/common/discovery/keys'; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodAzureAD.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodAzureAD.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodAzureAD.prototype['product-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodAzureAD.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodAzureAD.prototype['uid-token'] = undefined; +var _default = CreateAuthMethodAzureAD; +exports["default"] = _default; + +/***/ }), + +/***/ 40820: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodAzureADOutput model module. + * @module model/CreateAuthMethodAzureADOutput + * @version 3.6.3 + */ +var CreateAuthMethodAzureADOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodAzureADOutput. + * @alias module:model/CreateAuthMethodAzureADOutput + */ + function CreateAuthMethodAzureADOutput() { + _classCallCheck(this, CreateAuthMethodAzureADOutput); + + CreateAuthMethodAzureADOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodAzureADOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodAzureADOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodAzureADOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodAzureADOutput} The populated CreateAuthMethodAzureADOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodAzureADOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodAzureADOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodAzureADOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodAzureADOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 9265: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodCert model module. + * @module model/CreateAuthMethodCert + * @version 3.6.3 + */ +var CreateAuthMethodCert = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodCert. + * createAuthMethodCert is a command that creates a new auth method that will be able to authenticate using a client certificae + * @alias module:model/CreateAuthMethodCert + * @param name {String} Auth Method name + * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured, such as common_name or organizational_unit Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + */ + function CreateAuthMethodCert(name, uniqueIdentifier) { + _classCallCheck(this, CreateAuthMethodCert); + + CreateAuthMethodCert.initialize(this, name, uniqueIdentifier); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodCert, null, [{ + key: "initialize", + value: function initialize(obj, name, uniqueIdentifier) { + obj['name'] = name; + obj['unique-identifier'] = uniqueIdentifier; + } + /** + * Constructs a CreateAuthMethodCert from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodCert} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodCert} The populated CreateAuthMethodCert instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodCert(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('allowed-cors')) { + obj['allowed-cors'] = _ApiClient["default"].convertToType(data['allowed-cors'], 'String'); + } + + if (data.hasOwnProperty('bound-common-names')) { + obj['bound-common-names'] = _ApiClient["default"].convertToType(data['bound-common-names'], ['String']); + } + + if (data.hasOwnProperty('bound-dns-sans')) { + obj['bound-dns-sans'] = _ApiClient["default"].convertToType(data['bound-dns-sans'], ['String']); + } + + if (data.hasOwnProperty('bound-email-sans')) { + obj['bound-email-sans'] = _ApiClient["default"].convertToType(data['bound-email-sans'], ['String']); + } + + if (data.hasOwnProperty('bound-extensions')) { + obj['bound-extensions'] = _ApiClient["default"].convertToType(data['bound-extensions'], ['String']); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('bound-organizational-units')) { + obj['bound-organizational-units'] = _ApiClient["default"].convertToType(data['bound-organizational-units'], ['String']); + } + + if (data.hasOwnProperty('bound-uri-sans')) { + obj['bound-uri-sans'] = _ApiClient["default"].convertToType(data['bound-uri-sans'], ['String']); + } + + if (data.hasOwnProperty('certificate-data')) { + obj['certificate-data'] = _ApiClient["default"].convertToType(data['certificate-data'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('revoked-cert-ids')) { + obj['revoked-cert-ids'] = _ApiClient["default"].convertToType(data['revoked-cert-ids'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodCert; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodCert.prototype['access-expires'] = 0; +/** + * Comma separated list of allowed CORS domains to be validated as part of the authentication flow. + * @member {String} allowed-cors + */ + +CreateAuthMethodCert.prototype['allowed-cors'] = undefined; +/** + * A list of names. At least one must exist in the Common Name. Supports globbing. + * @member {Array.} bound-common-names + */ + +CreateAuthMethodCert.prototype['bound-common-names'] = undefined; +/** + * A list of DNS names. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound-dns-sans + */ + +CreateAuthMethodCert.prototype['bound-dns-sans'] = undefined; +/** + * A list of Email Addresses. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound-email-sans + */ + +CreateAuthMethodCert.prototype['bound-email-sans'] = undefined; +/** + * A list of extensions formatted as \"oid:value\". Expects the extension value to be some type of ASN1 encoded string. All values much match. Supports globbing on \"value\". + * @member {Array.} bound-extensions + */ + +CreateAuthMethodCert.prototype['bound-extensions'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodCert.prototype['bound-ips'] = undefined; +/** + * A list of Organizational Units names. At least one must exist in the OU field. + * @member {Array.} bound-organizational-units + */ + +CreateAuthMethodCert.prototype['bound-organizational-units'] = undefined; +/** + * A list of URIs. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound-uri-sans + */ + +CreateAuthMethodCert.prototype['bound-uri-sans'] = undefined; +/** + * The certificate data in base64, if no file was provided + * @member {String} certificate-data + */ + +CreateAuthMethodCert.prototype['certificate-data'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodCert.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodCert.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodCert.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodCert.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodCert.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodCert.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodCert.prototype['product-type'] = undefined; +/** + * A list of revoked cert ids + * @member {Array.} revoked-cert-ids + */ + +CreateAuthMethodCert.prototype['revoked-cert-ids'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodCert.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodCert.prototype['uid-token'] = undefined; +/** + * A unique identifier (ID) value should be configured, such as common_name or organizational_unit Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier + */ + +CreateAuthMethodCert.prototype['unique-identifier'] = undefined; +var _default = CreateAuthMethodCert; +exports["default"] = _default; + +/***/ }), + +/***/ 64228: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodCertOutput model module. + * @module model/CreateAuthMethodCertOutput + * @version 3.6.3 + */ +var CreateAuthMethodCertOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodCertOutput. + * @alias module:model/CreateAuthMethodCertOutput + */ + function CreateAuthMethodCertOutput() { + _classCallCheck(this, CreateAuthMethodCertOutput); + + CreateAuthMethodCertOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodCertOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodCertOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodCertOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodCertOutput} The populated CreateAuthMethodCertOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodCertOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodCertOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodCertOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodCertOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 42003: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodEmail model module. + * @module model/CreateAuthMethodEmail + * @version 3.6.3 + */ +var CreateAuthMethodEmail = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodEmail. + * createAuthMethodEmail is a command that creates a new auth method that will be able to authenticate using email. + * @alias module:model/CreateAuthMethodEmail + * @param email {String} An email address to be invited to have access + * @param name {String} Auth Method name + */ + function CreateAuthMethodEmail(email, name) { + _classCallCheck(this, CreateAuthMethodEmail); + + CreateAuthMethodEmail.initialize(this, email, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodEmail, null, [{ + key: "initialize", + value: function initialize(obj, email, name) { + obj['email'] = email; + obj['name'] = name; + } + /** + * Constructs a CreateAuthMethodEmail from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodEmail} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodEmail} The populated CreateAuthMethodEmail instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodEmail(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('email')) { + obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodEmail; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodEmail.prototype['access-expires'] = 0; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodEmail.prototype['bound-ips'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodEmail.prototype['description'] = undefined; +/** + * An email address to be invited to have access + * @member {String} email + */ + +CreateAuthMethodEmail.prototype['email'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodEmail.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodEmail.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodEmail.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodEmail.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodEmail.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodEmail.prototype['product-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodEmail.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodEmail.prototype['uid-token'] = undefined; +var _default = CreateAuthMethodEmail; +exports["default"] = _default; + +/***/ }), + +/***/ 20898: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodEmailOutput model module. + * @module model/CreateAuthMethodEmailOutput + * @version 3.6.3 + */ +var CreateAuthMethodEmailOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodEmailOutput. + * @alias module:model/CreateAuthMethodEmailOutput + */ + function CreateAuthMethodEmailOutput() { + _classCallCheck(this, CreateAuthMethodEmailOutput); + + CreateAuthMethodEmailOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodEmailOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodEmailOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodEmailOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodEmailOutput} The populated CreateAuthMethodEmailOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodEmailOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodEmailOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodEmailOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodEmailOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 26285: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodGCP model module. + * @module model/CreateAuthMethodGCP + * @version 3.6.3 + */ +var CreateAuthMethodGCP = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodGCP. + * createAuthMethodGCP is a command that creates a new auth method that will be able to authenticate using GCP IAM Service Account credentials or GCE instance credentials. + * @alias module:model/CreateAuthMethodGCP + * @param audience {String} The audience to verify in the JWT received by the client + * @param name {String} Auth Method name + * @param type {String} Type of the GCP Access Rules + */ + function CreateAuthMethodGCP(audience, name, type) { + _classCallCheck(this, CreateAuthMethodGCP); + + CreateAuthMethodGCP.initialize(this, audience, name, type); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodGCP, null, [{ + key: "initialize", + value: function initialize(obj, audience, name, type) { + obj['audience'] = audience; + obj['name'] = name; + obj['type'] = type; + } + /** + * Constructs a CreateAuthMethodGCP from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodGCP} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodGCP} The populated CreateAuthMethodGCP instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodGCP(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('bound-labels')) { + obj['bound-labels'] = _ApiClient["default"].convertToType(data['bound-labels'], ['String']); + } + + if (data.hasOwnProperty('bound-projects')) { + obj['bound-projects'] = _ApiClient["default"].convertToType(data['bound-projects'], ['String']); + } + + if (data.hasOwnProperty('bound-regions')) { + obj['bound-regions'] = _ApiClient["default"].convertToType(data['bound-regions'], ['String']); + } + + if (data.hasOwnProperty('bound-service-accounts')) { + obj['bound-service-accounts'] = _ApiClient["default"].convertToType(data['bound-service-accounts'], ['String']); + } + + if (data.hasOwnProperty('bound-zones')) { + obj['bound-zones'] = _ApiClient["default"].convertToType(data['bound-zones'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('service-account-creds-data')) { + obj['service-account-creds-data'] = _ApiClient["default"].convertToType(data['service-account-creds-data'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodGCP; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodGCP.prototype['access-expires'] = 0; +/** + * The audience to verify in the JWT received by the client + * @member {String} audience + * @default 'akeyless.io' + */ + +CreateAuthMethodGCP.prototype['audience'] = 'akeyless.io'; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodGCP.prototype['bound-ips'] = undefined; +/** + * A comma-separated list of GCP labels formatted as \"key:value\" strings that must be set on authorized GCE instances. TODO: Because GCP labels are not currently ACL'd .... + * @member {Array.} bound-labels + */ + +CreateAuthMethodGCP.prototype['bound-labels'] = undefined; +/** + * === Human and Machine authentication section === Array of GCP project IDs. Only entities belonging to any of the provided projects can authenticate. + * @member {Array.} bound-projects + */ + +CreateAuthMethodGCP.prototype['bound-projects'] = undefined; +/** + * List of regions that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored. + * @member {Array.} bound-regions + */ + +CreateAuthMethodGCP.prototype['bound-regions'] = undefined; +/** + * List of service accounts the service account must be part of in order to be authenticated. + * @member {Array.} bound-service-accounts + */ + +CreateAuthMethodGCP.prototype['bound-service-accounts'] = undefined; +/** + * === Machine authentication section === List of zones that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone. + * @member {Array.} bound-zones + */ + +CreateAuthMethodGCP.prototype['bound-zones'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodGCP.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodGCP.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodGCP.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodGCP.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodGCP.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodGCP.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodGCP.prototype['product-type'] = undefined; +/** + * ServiceAccount credentials data instead of giving a file path, base64 encoded + * @member {String} service-account-creds-data + */ + +CreateAuthMethodGCP.prototype['service-account-creds-data'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodGCP.prototype['token'] = undefined; +/** + * Type of the GCP Access Rules + * @member {String} type + */ + +CreateAuthMethodGCP.prototype['type'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodGCP.prototype['uid-token'] = undefined; +var _default = CreateAuthMethodGCP; +exports["default"] = _default; + +/***/ }), + +/***/ 62664: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodGCPOutput model module. + * @module model/CreateAuthMethodGCPOutput + * @version 3.6.3 + */ +var CreateAuthMethodGCPOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodGCPOutput. + * @alias module:model/CreateAuthMethodGCPOutput + */ + function CreateAuthMethodGCPOutput() { + _classCallCheck(this, CreateAuthMethodGCPOutput); + + CreateAuthMethodGCPOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodGCPOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodGCPOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodGCPOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodGCPOutput} The populated CreateAuthMethodGCPOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodGCPOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodGCPOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodGCPOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodGCPOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 96274: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodHuawei model module. + * @module model/CreateAuthMethodHuawei + * @version 3.6.3 + */ +var CreateAuthMethodHuawei = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodHuawei. + * createAuthMethodHuawei is a command that creates a new auth method that will be able to authenticate using Huawei credentials. + * @alias module:model/CreateAuthMethodHuawei + * @param name {String} Auth Method name + */ + function CreateAuthMethodHuawei(name) { + _classCallCheck(this, CreateAuthMethodHuawei); + + CreateAuthMethodHuawei.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodHuawei, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateAuthMethodHuawei from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodHuawei} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodHuawei} The populated CreateAuthMethodHuawei instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodHuawei(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('auth-url')) { + obj['auth-url'] = _ApiClient["default"].convertToType(data['auth-url'], 'String'); + } + + if (data.hasOwnProperty('bound-domain-id')) { + obj['bound-domain-id'] = _ApiClient["default"].convertToType(data['bound-domain-id'], ['String']); + } + + if (data.hasOwnProperty('bound-domain-name')) { + obj['bound-domain-name'] = _ApiClient["default"].convertToType(data['bound-domain-name'], ['String']); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('bound-tenant-id')) { + obj['bound-tenant-id'] = _ApiClient["default"].convertToType(data['bound-tenant-id'], ['String']); + } + + if (data.hasOwnProperty('bound-tenant-name')) { + obj['bound-tenant-name'] = _ApiClient["default"].convertToType(data['bound-tenant-name'], ['String']); + } + + if (data.hasOwnProperty('bound-user-id')) { + obj['bound-user-id'] = _ApiClient["default"].convertToType(data['bound-user-id'], ['String']); + } + + if (data.hasOwnProperty('bound-user-name')) { + obj['bound-user-name'] = _ApiClient["default"].convertToType(data['bound-user-name'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodHuawei; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodHuawei.prototype['access-expires'] = 0; +/** + * sts URL + * @member {String} auth-url + * @default 'https://iam.myhwclouds.com:443/v3' + */ + +CreateAuthMethodHuawei.prototype['auth-url'] = 'https://iam.myhwclouds.com:443/v3'; +/** + * A list of domain IDs that the access is restricted to + * @member {Array.} bound-domain-id + */ + +CreateAuthMethodHuawei.prototype['bound-domain-id'] = undefined; +/** + * A list of domain names that the access is restricted to + * @member {Array.} bound-domain-name + */ + +CreateAuthMethodHuawei.prototype['bound-domain-name'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodHuawei.prototype['bound-ips'] = undefined; +/** + * A list of full tenant ids that the access is restricted to + * @member {Array.} bound-tenant-id + */ + +CreateAuthMethodHuawei.prototype['bound-tenant-id'] = undefined; +/** + * A list of full tenant names that the access is restricted to + * @member {Array.} bound-tenant-name + */ + +CreateAuthMethodHuawei.prototype['bound-tenant-name'] = undefined; +/** + * A list of full user ids that the access is restricted to + * @member {Array.} bound-user-id + */ + +CreateAuthMethodHuawei.prototype['bound-user-id'] = undefined; +/** + * A list of full user-name that the access is restricted to + * @member {Array.} bound-user-name + */ + +CreateAuthMethodHuawei.prototype['bound-user-name'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodHuawei.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodHuawei.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodHuawei.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodHuawei.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodHuawei.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodHuawei.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodHuawei.prototype['product-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodHuawei.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodHuawei.prototype['uid-token'] = undefined; +var _default = CreateAuthMethodHuawei; +exports["default"] = _default; + +/***/ }), + +/***/ 90359: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodHuaweiOutput model module. + * @module model/CreateAuthMethodHuaweiOutput + * @version 3.6.3 + */ +var CreateAuthMethodHuaweiOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodHuaweiOutput. + * @alias module:model/CreateAuthMethodHuaweiOutput + */ + function CreateAuthMethodHuaweiOutput() { + _classCallCheck(this, CreateAuthMethodHuaweiOutput); + + CreateAuthMethodHuaweiOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodHuaweiOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodHuaweiOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodHuaweiOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodHuaweiOutput} The populated CreateAuthMethodHuaweiOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodHuaweiOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodHuaweiOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodHuaweiOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodHuaweiOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 39443: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodK8S model module. + * @module model/CreateAuthMethodK8S + * @version 3.6.3 + */ +var CreateAuthMethodK8S = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodK8S. + * createAuthMethodK8S is a command that creates a new auth method that will be able to authenticate using K8S. + * @alias module:model/CreateAuthMethodK8S + * @param name {String} Auth Method name + */ + function CreateAuthMethodK8S(name) { + _classCallCheck(this, CreateAuthMethodK8S); + + CreateAuthMethodK8S.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodK8S, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateAuthMethodK8S from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodK8S} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodK8S} The populated CreateAuthMethodK8S instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodK8S(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('bound-namespaces')) { + obj['bound-namespaces'] = _ApiClient["default"].convertToType(data['bound-namespaces'], ['String']); + } + + if (data.hasOwnProperty('bound-pod-names')) { + obj['bound-pod-names'] = _ApiClient["default"].convertToType(data['bound-pod-names'], ['String']); + } + + if (data.hasOwnProperty('bound-sa-names')) { + obj['bound-sa-names'] = _ApiClient["default"].convertToType(data['bound-sa-names'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gen-key')) { + obj['gen-key'] = _ApiClient["default"].convertToType(data['gen-key'], 'String'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('public-key')) { + obj['public-key'] = _ApiClient["default"].convertToType(data['public-key'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodK8S; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodK8S.prototype['access-expires'] = 0; +/** + * The audience in the Kubernetes JWT that the access is restricted to + * @member {String} audience + */ + +CreateAuthMethodK8S.prototype['audience'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodK8S.prototype['bound-ips'] = undefined; +/** + * A list of namespaces that the access is restricted to + * @member {Array.} bound-namespaces + */ + +CreateAuthMethodK8S.prototype['bound-namespaces'] = undefined; +/** + * A list of pod names that the access is restricted to + * @member {Array.} bound-pod-names + */ + +CreateAuthMethodK8S.prototype['bound-pod-names'] = undefined; +/** + * A list of service account names that the access is restricted to + * @member {Array.} bound-sa-names + */ + +CreateAuthMethodK8S.prototype['bound-sa-names'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodK8S.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodK8S.prototype['force-sub-claims'] = undefined; +/** + * Automatically generate key-pair for K8S configuration. If set to false, a public key needs to be provided [true/false] + * @member {String} gen-key + * @default 'true' + */ + +CreateAuthMethodK8S.prototype['gen-key'] = 'true'; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodK8S.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodK8S.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodK8S.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodK8S.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodK8S.prototype['product-type'] = undefined; +/** + * Base64-encoded or PEM formatted public key data for K8S authentication method is required [RSA2048] + * @member {String} public-key + */ + +CreateAuthMethodK8S.prototype['public-key'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodK8S.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodK8S.prototype['uid-token'] = undefined; +var _default = CreateAuthMethodK8S; +exports["default"] = _default; + +/***/ }), + +/***/ 7586: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodK8SOutput model module. + * @module model/CreateAuthMethodK8SOutput + * @version 3.6.3 + */ +var CreateAuthMethodK8SOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodK8SOutput. + * @alias module:model/CreateAuthMethodK8SOutput + */ + function CreateAuthMethodK8SOutput() { + _classCallCheck(this, CreateAuthMethodK8SOutput); + + CreateAuthMethodK8SOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodK8SOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodK8SOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodK8SOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodK8SOutput} The populated CreateAuthMethodK8SOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodK8SOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('prv_key')) { + obj['prv_key'] = _ApiClient["default"].convertToType(data['prv_key'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodK8SOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodK8SOutput.prototype['access_id'] = undefined; +/** + * @member {String} prv_key + */ + +CreateAuthMethodK8SOutput.prototype['prv_key'] = undefined; +var _default = CreateAuthMethodK8SOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 10158: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodLDAP model module. + * @module model/CreateAuthMethodLDAP + * @version 3.6.3 + */ +var CreateAuthMethodLDAP = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodLDAP. + * createAuthMethodLDAP is a command that creates a new auth method that will be able to authenticate using LDAP. + * @alias module:model/CreateAuthMethodLDAP + * @param name {String} Auth Method name + */ + function CreateAuthMethodLDAP(name) { + _classCallCheck(this, CreateAuthMethodLDAP); + + CreateAuthMethodLDAP.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodLDAP, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateAuthMethodLDAP from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodLDAP} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodLDAP} The populated CreateAuthMethodLDAP instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodLDAP(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gen-key')) { + obj['gen-key'] = _ApiClient["default"].convertToType(data['gen-key'], 'String'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('public-key-data')) { + obj['public-key-data'] = _ApiClient["default"].convertToType(data['public-key-data'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodLDAP; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodLDAP.prototype['access-expires'] = 0; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodLDAP.prototype['bound-ips'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodLDAP.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodLDAP.prototype['force-sub-claims'] = undefined; +/** + * Automatically generate key-pair for LDAP configuration. If set to false, a public key needs to be provided [true/false] + * @member {String} gen-key + * @default 'true' + */ + +CreateAuthMethodLDAP.prototype['gen-key'] = 'true'; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodLDAP.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodLDAP.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodLDAP.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodLDAP.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodLDAP.prototype['product-type'] = undefined; +/** + * A public key generated for LDAP authentication method on Akeyless in base64 or PEM format [RSA2048] + * @member {String} public-key-data + */ + +CreateAuthMethodLDAP.prototype['public-key-data'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodLDAP.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodLDAP.prototype['uid-token'] = undefined; +/** + * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier + * @default 'users' + */ + +CreateAuthMethodLDAP.prototype['unique-identifier'] = 'users'; +var _default = CreateAuthMethodLDAP; +exports["default"] = _default; + +/***/ }), + +/***/ 85019: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodLDAPOutput model module. + * @module model/CreateAuthMethodLDAPOutput + * @version 3.6.3 + */ +var CreateAuthMethodLDAPOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodLDAPOutput. + * @alias module:model/CreateAuthMethodLDAPOutput + */ + function CreateAuthMethodLDAPOutput() { + _classCallCheck(this, CreateAuthMethodLDAPOutput); + + CreateAuthMethodLDAPOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodLDAPOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodLDAPOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodLDAPOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodLDAPOutput} The populated CreateAuthMethodLDAPOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodLDAPOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('prv_key')) { + obj['prv_key'] = _ApiClient["default"].convertToType(data['prv_key'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodLDAPOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodLDAPOutput.prototype['access_id'] = undefined; +/** + * @member {String} prv_key + */ + +CreateAuthMethodLDAPOutput.prototype['prv_key'] = undefined; +var _default = CreateAuthMethodLDAPOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 46424: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodOAuth2 model module. + * @module model/CreateAuthMethodOAuth2 + * @version 3.6.3 + */ +var CreateAuthMethodOAuth2 = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodOAuth2. + * createAuthMethodOAuth2 is a command that creates a new auth method that will be able to authenticate using Oauth2. + * @alias module:model/CreateAuthMethodOAuth2 + * @param jwksUri {String} The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. + * @param name {String} Auth Method name + * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + */ + function CreateAuthMethodOAuth2(jwksUri, name, uniqueIdentifier) { + _classCallCheck(this, CreateAuthMethodOAuth2); + + CreateAuthMethodOAuth2.initialize(this, jwksUri, name, uniqueIdentifier); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodOAuth2, null, [{ + key: "initialize", + value: function initialize(obj, jwksUri, name, uniqueIdentifier) { + obj['jwks-uri'] = jwksUri; + obj['name'] = name; + obj['unique-identifier'] = uniqueIdentifier; + } + /** + * Constructs a CreateAuthMethodOAuth2 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodOAuth2} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodOAuth2} The populated CreateAuthMethodOAuth2 instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodOAuth2(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('bound-client-ids')) { + obj['bound-client-ids'] = _ApiClient["default"].convertToType(data['bound-client-ids'], ['String']); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('cert')) { + obj['cert'] = _ApiClient["default"].convertToType(data['cert'], 'String'); + } + + if (data.hasOwnProperty('cert-file-data')) { + obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gateway-url')) { + obj['gateway-url'] = _ApiClient["default"].convertToType(data['gateway-url'], 'String'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwks-json-data')) { + obj['jwks-json-data'] = _ApiClient["default"].convertToType(data['jwks-json-data'], 'String'); + } + + if (data.hasOwnProperty('jwks-uri')) { + obj['jwks-uri'] = _ApiClient["default"].convertToType(data['jwks-uri'], 'String'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('subclaims-delimiters')) { + obj['subclaims-delimiters'] = _ApiClient["default"].convertToType(data['subclaims-delimiters'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodOAuth2; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodOAuth2.prototype['access-expires'] = 0; +/** + * The audience in the JWT + * @member {String} audience + */ + +CreateAuthMethodOAuth2.prototype['audience'] = undefined; +/** + * The clients ids that the access is restricted to + * @member {Array.} bound-client-ids + */ + +CreateAuthMethodOAuth2.prototype['bound-client-ids'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodOAuth2.prototype['bound-ips'] = undefined; +/** + * CertificateFile Path to a file that contain the certificate in a PEM format. + * @member {String} cert + */ + +CreateAuthMethodOAuth2.prototype['cert'] = undefined; +/** + * CertificateFileData PEM Certificate in a Base64 format. + * @member {String} cert-file-data + */ + +CreateAuthMethodOAuth2.prototype['cert-file-data'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodOAuth2.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodOAuth2.prototype['force-sub-claims'] = undefined; +/** + * Akeyless Gateway URL (Configuration Management port). Relevant only when the jwks-uri is accessible only from the gateway. + * @member {String} gateway-url + */ + +CreateAuthMethodOAuth2.prototype['gateway-url'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodOAuth2.prototype['gw-bound-ips'] = undefined; +/** + * Issuer URL + * @member {String} issuer + */ + +CreateAuthMethodOAuth2.prototype['issuer'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodOAuth2.prototype['json'] = false; +/** + * The JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. base64 encoded string + * @member {String} jwks-json-data + */ + +CreateAuthMethodOAuth2.prototype['jwks-json-data'] = undefined; +/** + * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. + * @member {String} jwks-uri + * @default 'default_jwks_url' + */ + +CreateAuthMethodOAuth2.prototype['jwks-uri'] = 'default_jwks_url'; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodOAuth2.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodOAuth2.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodOAuth2.prototype['product-type'] = undefined; +/** + * A list of additional sub claims delimiters (relevant only for SAML, OIDC, OAuth2/JWT) + * @member {Array.} subclaims-delimiters + */ + +CreateAuthMethodOAuth2.prototype['subclaims-delimiters'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodOAuth2.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodOAuth2.prototype['uid-token'] = undefined; +/** + * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier + */ + +CreateAuthMethodOAuth2.prototype['unique-identifier'] = undefined; +var _default = CreateAuthMethodOAuth2; +exports["default"] = _default; + +/***/ }), + +/***/ 60689: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodOAuth2Output model module. + * @module model/CreateAuthMethodOAuth2Output + * @version 3.6.3 + */ +var CreateAuthMethodOAuth2Output = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodOAuth2Output. + * @alias module:model/CreateAuthMethodOAuth2Output + */ + function CreateAuthMethodOAuth2Output() { + _classCallCheck(this, CreateAuthMethodOAuth2Output); + + CreateAuthMethodOAuth2Output.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodOAuth2Output, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodOAuth2Output from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodOAuth2Output} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodOAuth2Output} The populated CreateAuthMethodOAuth2Output instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodOAuth2Output(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodOAuth2Output; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodOAuth2Output.prototype['access_id'] = undefined; +var _default = CreateAuthMethodOAuth2Output; +exports["default"] = _default; + +/***/ }), + +/***/ 95038: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodOCI model module. + * @module model/CreateAuthMethodOCI + * @version 3.6.3 + */ +var CreateAuthMethodOCI = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodOCI. + * createAuthMethodOCI is a command that Creates a new Oracle Auth Method that will be used in the account using OCI principle and groups. + * @alias module:model/CreateAuthMethodOCI + * @param groupOcid {Array.} A list of required groups ocids + * @param name {String} Auth Method name + * @param tenantOcid {String} The Oracle Cloud tenant ID + */ + function CreateAuthMethodOCI(groupOcid, name, tenantOcid) { + _classCallCheck(this, CreateAuthMethodOCI); + + CreateAuthMethodOCI.initialize(this, groupOcid, name, tenantOcid); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodOCI, null, [{ + key: "initialize", + value: function initialize(obj, groupOcid, name, tenantOcid) { + obj['group-ocid'] = groupOcid; + obj['name'] = name; + obj['tenant-ocid'] = tenantOcid; + } + /** + * Constructs a CreateAuthMethodOCI from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodOCI} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodOCI} The populated CreateAuthMethodOCI instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodOCI(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('group-ocid')) { + obj['group-ocid'] = _ApiClient["default"].convertToType(data['group-ocid'], ['String']); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('tenant-ocid')) { + obj['tenant-ocid'] = _ApiClient["default"].convertToType(data['tenant-ocid'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodOCI; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodOCI.prototype['access-expires'] = 0; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodOCI.prototype['bound-ips'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodOCI.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodOCI.prototype['force-sub-claims'] = undefined; +/** + * A list of required groups ocids + * @member {Array.} group-ocid + */ + +CreateAuthMethodOCI.prototype['group-ocid'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodOCI.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodOCI.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodOCI.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodOCI.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodOCI.prototype['product-type'] = undefined; +/** + * The Oracle Cloud tenant ID + * @member {String} tenant-ocid + */ + +CreateAuthMethodOCI.prototype['tenant-ocid'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodOCI.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodOCI.prototype['uid-token'] = undefined; +var _default = CreateAuthMethodOCI; +exports["default"] = _default; + +/***/ }), + +/***/ 98027: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodOCIOutput model module. + * @module model/CreateAuthMethodOCIOutput + * @version 3.6.3 + */ +var CreateAuthMethodOCIOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodOCIOutput. + * @alias module:model/CreateAuthMethodOCIOutput + */ + function CreateAuthMethodOCIOutput() { + _classCallCheck(this, CreateAuthMethodOCIOutput); + + CreateAuthMethodOCIOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodOCIOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodOCIOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodOCIOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodOCIOutput} The populated CreateAuthMethodOCIOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodOCIOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodOCIOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodOCIOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodOCIOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 94918: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodOIDC model module. + * @module model/CreateAuthMethodOIDC + * @version 3.6.3 + */ +var CreateAuthMethodOIDC = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodOIDC. + * createAuthMethodOIDC is a command that creates a new auth method that will be available to authenticate using OIDC. + * @alias module:model/CreateAuthMethodOIDC + * @param name {String} Auth Method name + * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OIDC, OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + */ + function CreateAuthMethodOIDC(name, uniqueIdentifier) { + _classCallCheck(this, CreateAuthMethodOIDC); + + CreateAuthMethodOIDC.initialize(this, name, uniqueIdentifier); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodOIDC, null, [{ + key: "initialize", + value: function initialize(obj, name, uniqueIdentifier) { + obj['name'] = name; + obj['unique-identifier'] = uniqueIdentifier; + } + /** + * Constructs a CreateAuthMethodOIDC from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodOIDC} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodOIDC} The populated CreateAuthMethodOIDC instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodOIDC(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('allowed-redirect-uri')) { + obj['allowed-redirect-uri'] = _ApiClient["default"].convertToType(data['allowed-redirect-uri'], ['String']); + } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + } + + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('required-scopes')) { + obj['required-scopes'] = _ApiClient["default"].convertToType(data['required-scopes'], ['String']); + } + + if (data.hasOwnProperty('required-scopes-prefix')) { + obj['required-scopes-prefix'] = _ApiClient["default"].convertToType(data['required-scopes-prefix'], 'String'); + } + + if (data.hasOwnProperty('subclaims-delimiters')) { + obj['subclaims-delimiters'] = _ApiClient["default"].convertToType(data['subclaims-delimiters'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodOIDC; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodOIDC.prototype['access-expires'] = 0; +/** + * Allowed redirect URIs after the authentication + * @member {Array.} allowed-redirect-uri + */ + +CreateAuthMethodOIDC.prototype['allowed-redirect-uri'] = undefined; +/** + * Audience claim to be used as part of the authentication flow. In case set, it must match the one configured on the Identity Provider's Application + * @member {String} audience + */ + +CreateAuthMethodOIDC.prototype['audience'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodOIDC.prototype['bound-ips'] = undefined; +/** + * Client ID + * @member {String} client-id + */ + +CreateAuthMethodOIDC.prototype['client-id'] = undefined; +/** + * Client Secret + * @member {String} client-secret + */ + +CreateAuthMethodOIDC.prototype['client-secret'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodOIDC.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodOIDC.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodOIDC.prototype['gw-bound-ips'] = undefined; +/** + * Issuer URL + * @member {String} issuer + */ + +CreateAuthMethodOIDC.prototype['issuer'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodOIDC.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodOIDC.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodOIDC.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodOIDC.prototype['product-type'] = undefined; +/** + * RequiredScopes is a list of required scopes that the oidc method will request from the oidc provider and the user must approve + * @member {Array.} required-scopes + */ + +CreateAuthMethodOIDC.prototype['required-scopes'] = undefined; +/** + * RequiredScopesPrefix is a a prefix to add to all required-scopes when requesting them from the oidc server (for example, azures' Application ID URI) + * @member {String} required-scopes-prefix + */ + +CreateAuthMethodOIDC.prototype['required-scopes-prefix'] = undefined; +/** + * A list of additional sub claims delimiters (relevant only for SAML, OIDC, OAuth2/JWT) + * @member {Array.} subclaims-delimiters + */ + +CreateAuthMethodOIDC.prototype['subclaims-delimiters'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodOIDC.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodOIDC.prototype['uid-token'] = undefined; +/** + * A unique identifier (ID) value should be configured for OIDC, OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier + */ + +CreateAuthMethodOIDC.prototype['unique-identifier'] = undefined; +var _default = CreateAuthMethodOIDC; +exports["default"] = _default; + +/***/ }), + +/***/ 56259: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodOIDCOutput model module. + * @module model/CreateAuthMethodOIDCOutput + * @version 3.6.3 + */ +var CreateAuthMethodOIDCOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodOIDCOutput. + * @alias module:model/CreateAuthMethodOIDCOutput + */ + function CreateAuthMethodOIDCOutput() { + _classCallCheck(this, CreateAuthMethodOIDCOutput); + + CreateAuthMethodOIDCOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodOIDCOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodOIDCOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodOIDCOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodOIDCOutput} The populated CreateAuthMethodOIDCOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodOIDCOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodOIDCOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodOIDCOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodOIDCOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 55338: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodOutput model module. + * @module model/CreateAuthMethodOutput + * @version 3.6.3 + */ +var CreateAuthMethodOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodOutput. + * @alias module:model/CreateAuthMethodOutput + */ + function CreateAuthMethodOutput() { + _classCallCheck(this, CreateAuthMethodOutput); + + CreateAuthMethodOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodOutput} The populated CreateAuthMethodOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('access_key')) { + obj['access_key'] = _ApiClient["default"].convertToType(data['access_key'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodOutput.prototype['access_id'] = undefined; +/** + * @member {String} access_key + */ + +CreateAuthMethodOutput.prototype['access_key'] = undefined; +/** + * @member {String} name + */ + +CreateAuthMethodOutput.prototype['name'] = undefined; +var _default = CreateAuthMethodOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 33710: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodSAML model module. + * @module model/CreateAuthMethodSAML + * @version 3.6.3 + */ +var CreateAuthMethodSAML = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodSAML. + * createAuthMethodSAML is a command that creates a new auth method that will be available to authenticate using SAML. + * @alias module:model/CreateAuthMethodSAML + * @param name {String} Auth Method name + * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + */ + function CreateAuthMethodSAML(name, uniqueIdentifier) { + _classCallCheck(this, CreateAuthMethodSAML); + + CreateAuthMethodSAML.initialize(this, name, uniqueIdentifier); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodSAML, null, [{ + key: "initialize", + value: function initialize(obj, name, uniqueIdentifier) { + obj['name'] = name; + obj['unique-identifier'] = uniqueIdentifier; + } + /** + * Constructs a CreateAuthMethodSAML from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodSAML} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodSAML} The populated CreateAuthMethodSAML instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodSAML(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('allowed-redirect-uri')) { + obj['allowed-redirect-uri'] = _ApiClient["default"].convertToType(data['allowed-redirect-uri'], ['String']); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('idp-metadata-url')) { + obj['idp-metadata-url'] = _ApiClient["default"].convertToType(data['idp-metadata-url'], 'String'); + } + + if (data.hasOwnProperty('idp-metadata-xml-data')) { + obj['idp-metadata-xml-data'] = _ApiClient["default"].convertToType(data['idp-metadata-xml-data'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('subclaims-delimiters')) { + obj['subclaims-delimiters'] = _ApiClient["default"].convertToType(data['subclaims-delimiters'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodSAML; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodSAML.prototype['access-expires'] = 0; +/** + * Allowed redirect URIs after the authentication + * @member {Array.} allowed-redirect-uri + */ + +CreateAuthMethodSAML.prototype['allowed-redirect-uri'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodSAML.prototype['bound-ips'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodSAML.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodSAML.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodSAML.prototype['gw-bound-ips'] = undefined; +/** + * IDP metadata url + * @member {String} idp-metadata-url + */ + +CreateAuthMethodSAML.prototype['idp-metadata-url'] = undefined; +/** + * IDP metadata xml data + * @member {String} idp-metadata-xml-data + */ + +CreateAuthMethodSAML.prototype['idp-metadata-xml-data'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodSAML.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodSAML.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodSAML.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodSAML.prototype['product-type'] = undefined; +/** + * A list of additional sub claims delimiters (relevant only for SAML, OIDC, OAuth2/JWT) + * @member {Array.} subclaims-delimiters + */ + +CreateAuthMethodSAML.prototype['subclaims-delimiters'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodSAML.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodSAML.prototype['uid-token'] = undefined; +/** + * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier + */ + +CreateAuthMethodSAML.prototype['unique-identifier'] = undefined; +var _default = CreateAuthMethodSAML; +exports["default"] = _default; + +/***/ }), + +/***/ 41307: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodSAMLOutput model module. + * @module model/CreateAuthMethodSAMLOutput + * @version 3.6.3 + */ +var CreateAuthMethodSAMLOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodSAMLOutput. + * @alias module:model/CreateAuthMethodSAMLOutput + */ + function CreateAuthMethodSAMLOutput() { + _classCallCheck(this, CreateAuthMethodSAMLOutput); + + CreateAuthMethodSAMLOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodSAMLOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodSAMLOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodSAMLOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodSAMLOutput} The populated CreateAuthMethodSAMLOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodSAMLOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodSAMLOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodSAMLOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodSAMLOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 73904: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodUniversalIdentity model module. + * @module model/CreateAuthMethodUniversalIdentity + * @version 3.6.3 + */ +var CreateAuthMethodUniversalIdentity = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodUniversalIdentity. + * createAuthMethodUniversalIdentity is a command that creates a new auth method that will be able to authenticate using Akeyless Universal Identity. + * @alias module:model/CreateAuthMethodUniversalIdentity + * @param name {String} Auth Method name + */ + function CreateAuthMethodUniversalIdentity(name) { + _classCallCheck(this, CreateAuthMethodUniversalIdentity); + + CreateAuthMethodUniversalIdentity.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodUniversalIdentity, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateAuthMethodUniversalIdentity from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodUniversalIdentity} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodUniversalIdentity} The populated CreateAuthMethodUniversalIdentity instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodUniversalIdentity(); + + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } + + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } + + if (data.hasOwnProperty('deny-inheritance')) { + obj['deny-inheritance'] = _ApiClient["default"].convertToType(data['deny-inheritance'], 'Boolean'); + } + + if (data.hasOwnProperty('deny-rotate')) { + obj['deny-rotate'] = _ApiClient["default"].convertToType(data['deny-rotate'], 'Boolean'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } + + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodUniversalIdentity; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ + + +CreateAuthMethodUniversalIdentity.prototype['access-expires'] = 0; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ + +CreateAuthMethodUniversalIdentity.prototype['bound-ips'] = undefined; +/** + * Deny from root to create children + * @member {Boolean} deny-inheritance + */ + +CreateAuthMethodUniversalIdentity.prototype['deny-inheritance'] = undefined; +/** + * Deny from the token to rotate + * @member {Boolean} deny-rotate + */ + +CreateAuthMethodUniversalIdentity.prototype['deny-rotate'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +CreateAuthMethodUniversalIdentity.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ + +CreateAuthMethodUniversalIdentity.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ + +CreateAuthMethodUniversalIdentity.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAuthMethodUniversalIdentity.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ + +CreateAuthMethodUniversalIdentity.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ + +CreateAuthMethodUniversalIdentity.prototype['name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ + +CreateAuthMethodUniversalIdentity.prototype['product-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAuthMethodUniversalIdentity.prototype['token'] = undefined; +/** + * Token ttl + * @member {Number} ttl + * @default 60 + */ + +CreateAuthMethodUniversalIdentity.prototype['ttl'] = 60; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAuthMethodUniversalIdentity.prototype['uid-token'] = undefined; +var _default = CreateAuthMethodUniversalIdentity; +exports["default"] = _default; + +/***/ }), + +/***/ 33625: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAuthMethodUniversalIdentityOutput model module. + * @module model/CreateAuthMethodUniversalIdentityOutput + * @version 3.6.3 + */ +var CreateAuthMethodUniversalIdentityOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAuthMethodUniversalIdentityOutput. + * @alias module:model/CreateAuthMethodUniversalIdentityOutput + */ + function CreateAuthMethodUniversalIdentityOutput() { + _classCallCheck(this, CreateAuthMethodUniversalIdentityOutput); + + CreateAuthMethodUniversalIdentityOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAuthMethodUniversalIdentityOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAuthMethodUniversalIdentityOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAuthMethodUniversalIdentityOutput} obj Optional instance to populate. + * @return {module:model/CreateAuthMethodUniversalIdentityOutput} The populated CreateAuthMethodUniversalIdentityOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAuthMethodUniversalIdentityOutput(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateAuthMethodUniversalIdentityOutput; +}(); +/** + * @member {String} access_id + */ + + +CreateAuthMethodUniversalIdentityOutput.prototype['access_id'] = undefined; +var _default = CreateAuthMethodUniversalIdentityOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 46492: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAzureTarget model module. + * @module model/CreateAzureTarget + * @version 3.6.3 + */ +var CreateAzureTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateAzureTarget. + * @alias module:model/CreateAzureTarget + * @param name {String} Target name + */ + function CreateAzureTarget(name) { + _classCallCheck(this, CreateAzureTarget); + + CreateAzureTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAzureTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateAzureTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAzureTarget} obj Optional instance to populate. + * @return {module:model/CreateAzureTarget} The populated CreateAzureTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAzureTarget(); + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + } + + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('resource-group-name')) { + obj['resource-group-name'] = _ApiClient["default"].convertToType(data['resource-group-name'], 'String'); + } + + if (data.hasOwnProperty('resource-name')) { + obj['resource-name'] = _ApiClient["default"].convertToType(data['resource-name'], 'String'); + } + + if (data.hasOwnProperty('subscription-id')) { + obj['subscription-id'] = _ApiClient["default"].convertToType(data['subscription-id'], 'String'); + } + + if (data.hasOwnProperty('tenant-id')) { + obj['tenant-id'] = _ApiClient["default"].convertToType(data['tenant-id'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return CreateAzureTarget; +}(); +/** + * @member {String} client-id + */ + + +CreateAzureTarget.prototype['client-id'] = undefined; +/** + * @member {String} client-secret + */ + +CreateAzureTarget.prototype['client-secret'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateAzureTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateAzureTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateAzureTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateAzureTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateAzureTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateAzureTarget.prototype['name'] = undefined; +/** + * The Resource Group name in your Azure subscription + * @member {String} resource-group-name + */ + +CreateAzureTarget.prototype['resource-group-name'] = undefined; +/** + * The name of the relevant Resource + * @member {String} resource-name + */ + +CreateAzureTarget.prototype['resource-name'] = undefined; +/** + * Azure Subscription Id + * @member {String} subscription-id + */ + +CreateAzureTarget.prototype['subscription-id'] = undefined; +/** + * @member {String} tenant-id + */ + +CreateAzureTarget.prototype['tenant-id'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateAzureTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateAzureTarget.prototype['uid-token'] = undefined; +/** + * @member {Boolean} use-gw-cloud-identity + */ + +CreateAzureTarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = CreateAzureTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 67837: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateAzureTargetOutput model module. + * @module model/CreateAzureTargetOutput + * @version 3.6.3 + */ +var CreateAzureTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateAzureTargetOutput. + * @alias module:model/CreateAzureTargetOutput + */ + function CreateAzureTargetOutput() { + _classCallCheck(this, CreateAzureTargetOutput); + + CreateAzureTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateAzureTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateAzureTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAzureTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateAzureTargetOutput} The populated CreateAzureTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAzureTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateAzureTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateAzureTargetOutput.prototype['target_id'] = undefined; +var _default = CreateAzureTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 54713: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateCertificate model module. + * @module model/CreateCertificate + * @version 3.6.3 + */ +var CreateCertificate = /*#__PURE__*/function () { + /** + * Constructs a new CreateCertificate. + * @alias module:model/CreateCertificate + * @param name {String} Certificate name + */ + function CreateCertificate(name) { + _classCallCheck(this, CreateCertificate); + + CreateCertificate.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateCertificate, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateCertificate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateCertificate} obj Optional instance to populate. + * @return {module:model/CreateCertificate} The populated CreateCertificate instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateCertificate(); + + if (data.hasOwnProperty('certificate-data')) { + obj['certificate-data'] = _ApiClient["default"].convertToType(data['certificate-data'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('expiration-event-in')) { + obj['expiration-event-in'] = _ApiClient["default"].convertToType(data['expiration-event-in'], ['String']); + } + + if (data.hasOwnProperty('format')) { + obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('key-data')) { + obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateCertificate; +}(); +/** + * Content of the certificate in a Base64 format. + * @member {String} certificate-data + */ + + +CreateCertificate.prototype['certificate-data'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateCertificate.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateCertificate.prototype['description'] = undefined; +/** + * How many days before the expiration of the certificate would you like to be notified. + * @member {Array.} expiration-event-in + */ + +CreateCertificate.prototype['expiration-event-in'] = undefined; +/** + * CertificateFormat of the certificate and private key, possible values: cer,crt,pem,pfx,p12. Required when passing inline certificate content with --certificate-data or --key-data, otherwise format is derived from the file extension. + * @member {String} format + */ + +CreateCertificate.prototype['format'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateCertificate.prototype['json'] = false; +/** + * The name of a key to use to encrypt the certificate's key (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateCertificate.prototype['key'] = undefined; +/** + * Content of the certificate's private key in a Base64 format. + * @member {String} key-data + */ + +CreateCertificate.prototype['key-data'] = undefined; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateCertificate.prototype['metadata'] = undefined; +/** + * Certificate name + * @member {String} name + */ + +CreateCertificate.prototype['name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +CreateCertificate.prototype['tags'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateCertificate.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateCertificate.prototype['uid-token'] = undefined; +var _default = CreateCertificate; +exports["default"] = _default; + +/***/ }), + +/***/ 9916: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateCertificateOutput model module. + * @module model/CreateCertificateOutput + * @version 3.6.3 + */ +var CreateCertificateOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateCertificateOutput. + * @alias module:model/CreateCertificateOutput + */ + function CreateCertificateOutput() { + _classCallCheck(this, CreateCertificateOutput); + + CreateCertificateOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateCertificateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateCertificateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateCertificateOutput} obj Optional instance to populate. + * @return {module:model/CreateCertificateOutput} The populated CreateCertificateOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateCertificateOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateCertificateOutput; +}(); +/** + * @member {String} name + */ + + +CreateCertificateOutput.prototype['name'] = undefined; +var _default = CreateCertificateOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 85575: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateClassicKey model module. + * @module model/CreateClassicKey + * @version 3.6.3 + */ +var CreateClassicKey = /*#__PURE__*/function () { + /** + * Constructs a new CreateClassicKey. + * CreateClassicKey is a command that creates classic key + * @alias module:model/CreateClassicKey + * @param alg {String} Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG] + * @param name {String} ClassicKey name + */ + function CreateClassicKey(alg, name) { + _classCallCheck(this, CreateClassicKey); + + CreateClassicKey.initialize(this, alg, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateClassicKey, null, [{ + key: "initialize", + value: function initialize(obj, alg, name) { + obj['alg'] = alg; + obj['name'] = name; + } + /** + * Constructs a CreateClassicKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateClassicKey} obj Optional instance to populate. + * @return {module:model/CreateClassicKey} The populated CreateClassicKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateClassicKey(); + + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + } + + if (data.hasOwnProperty('cert-file-data')) { + obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); + } + + if (data.hasOwnProperty('certificate-common-name')) { + obj['certificate-common-name'] = _ApiClient["default"].convertToType(data['certificate-common-name'], 'String'); + } + + if (data.hasOwnProperty('certificate-country')) { + obj['certificate-country'] = _ApiClient["default"].convertToType(data['certificate-country'], 'String'); + } + + if (data.hasOwnProperty('certificate-digest-algo')) { + obj['certificate-digest-algo'] = _ApiClient["default"].convertToType(data['certificate-digest-algo'], 'String'); + } + + if (data.hasOwnProperty('certificate-locality')) { + obj['certificate-locality'] = _ApiClient["default"].convertToType(data['certificate-locality'], 'String'); + } + + if (data.hasOwnProperty('certificate-organization')) { + obj['certificate-organization'] = _ApiClient["default"].convertToType(data['certificate-organization'], 'String'); + } + + if (data.hasOwnProperty('certificate-province')) { + obj['certificate-province'] = _ApiClient["default"].convertToType(data['certificate-province'], 'String'); + } + + if (data.hasOwnProperty('certificate-ttl')) { + obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); + } + + if (data.hasOwnProperty('conf-file-data')) { + obj['conf-file-data'] = _ApiClient["default"].convertToType(data['conf-file-data'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('generate-self-signed-certificate')) { + obj['generate-self-signed-certificate'] = _ApiClient["default"].convertToType(data['generate-self-signed-certificate'], 'Boolean'); + } + + if (data.hasOwnProperty('gpg-alg')) { + obj['gpg-alg'] = _ApiClient["default"].convertToType(data['gpg-alg'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-data')) { + obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('protection-key-name')) { + obj['protection-key-name'] = _ApiClient["default"].convertToType(data['protection-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateClassicKey; +}(); +/** + * Classic Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, RSA1024, RSA2048, RSA3072, RSA4096, EC256, EC384, GPG] + * @member {String} alg + */ + + +CreateClassicKey.prototype['alg'] = undefined; +/** + * Certificate in a PEM format. + * @member {String} cert-file-data + */ + +CreateClassicKey.prototype['cert-file-data'] = undefined; +/** + * Common name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-common-name + */ + +CreateClassicKey.prototype['certificate-common-name'] = undefined; +/** + * Country name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-country + */ + +CreateClassicKey.prototype['certificate-country'] = undefined; +/** + * Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI. + * @member {String} certificate-digest-algo + */ + +CreateClassicKey.prototype['certificate-digest-algo'] = undefined; +/** + * Locality for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-locality + */ + +CreateClassicKey.prototype['certificate-locality'] = undefined; +/** + * Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-organization + */ + +CreateClassicKey.prototype['certificate-organization'] = undefined; +/** + * Province name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-province + */ + +CreateClassicKey.prototype['certificate-province'] = undefined; +/** + * TTL in days for the generated certificate. Required only for generate-self-signed-certificate. + * @member {Number} certificate-ttl + */ + +CreateClassicKey.prototype['certificate-ttl'] = undefined; +/** + * The csr config data in base64 encoding + * @member {String} conf-file-data + */ + +CreateClassicKey.prototype['conf-file-data'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateClassicKey.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateClassicKey.prototype['description'] = undefined; +/** + * Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided. + * @member {Boolean} generate-self-signed-certificate + */ + +CreateClassicKey.prototype['generate-self-signed-certificate'] = undefined; +/** + * gpg alg: Relevant only if GPG key type selected; options: [RSA1024, RSA2048, RSA3072, RSA4096, Ed25519] + * @member {String} gpg-alg + */ + +CreateClassicKey.prototype['gpg-alg'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateClassicKey.prototype['json'] = false; +/** + * Base64-encoded classic key value + * @member {String} key-data + */ + +CreateClassicKey.prototype['key-data'] = undefined; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateClassicKey.prototype['metadata'] = undefined; +/** + * ClassicKey name + * @member {String} name + */ + +CreateClassicKey.prototype['name'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection-key-name + */ + +CreateClassicKey.prototype['protection-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +CreateClassicKey.prototype['tags'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateClassicKey.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateClassicKey.prototype['uid-token'] = undefined; +var _default = CreateClassicKey; +exports["default"] = _default; + +/***/ }), + +/***/ 87166: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateClassicKeyOutput model module. + * @module model/CreateClassicKeyOutput + * @version 3.6.3 + */ +var CreateClassicKeyOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateClassicKeyOutput. + * @alias module:model/CreateClassicKeyOutput + */ + function CreateClassicKeyOutput() { + _classCallCheck(this, CreateClassicKeyOutput); + + CreateClassicKeyOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateClassicKeyOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateClassicKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateClassicKeyOutput} obj Optional instance to populate. + * @return {module:model/CreateClassicKeyOutput} The populated CreateClassicKeyOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateClassicKeyOutput(); + + if (data.hasOwnProperty('classic_key_id')) { + obj['classic_key_id'] = _ApiClient["default"].convertToType(data['classic_key_id'], 'String'); + } + + if (data.hasOwnProperty('classic_key_name')) { + obj['classic_key_name'] = _ApiClient["default"].convertToType(data['classic_key_name'], 'String'); + } + + if (data.hasOwnProperty('classic_key_type')) { + obj['classic_key_type'] = _ApiClient["default"].convertToType(data['classic_key_type'], 'String'); + } + + if (data.hasOwnProperty('public_key')) { + obj['public_key'] = _ApiClient["default"].convertToType(data['public_key'], 'String'); + } + } + + return obj; + } + }]); + + return CreateClassicKeyOutput; +}(); +/** + * @member {String} classic_key_id + */ + + +CreateClassicKeyOutput.prototype['classic_key_id'] = undefined; +/** + * @member {String} classic_key_name + */ + +CreateClassicKeyOutput.prototype['classic_key_name'] = undefined; +/** + * @member {String} classic_key_type + */ + +CreateClassicKeyOutput.prototype['classic_key_type'] = undefined; +/** + * @member {String} public_key + */ + +CreateClassicKeyOutput.prototype['public_key'] = undefined; +var _default = CreateClassicKeyOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 84315: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateDBTarget model module. + * @module model/CreateDBTarget + * @version 3.6.3 + */ +var CreateDBTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateDBTarget. + * @alias module:model/CreateDBTarget + * @param connectionType {String} (Optional) Type of connection to mssql database [credentials/cloud-identity] + * @param dbType {String} + * @param name {String} Target name + */ + function CreateDBTarget(connectionType, dbType, name) { + _classCallCheck(this, CreateDBTarget); + + CreateDBTarget.initialize(this, connectionType, dbType, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateDBTarget, null, [{ + key: "initialize", + value: function initialize(obj, connectionType, dbType, name) { + obj['connection-type'] = connectionType; + obj['db-type'] = dbType; + obj['name'] = name; + } + /** + * Constructs a CreateDBTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateDBTarget} obj Optional instance to populate. + * @return {module:model/CreateDBTarget} The populated CreateDBTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateDBTarget(); + + if (data.hasOwnProperty('DBDefinedConnectionType')) { + obj['DBDefinedConnectionType'] = _ApiClient["default"].convertToType(data['DBDefinedConnectionType'], 'String'); + } + + if (data.hasOwnProperty('azure-client-id')) { + obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); + } + + if (data.hasOwnProperty('azure-client-secret')) { + obj['azure-client-secret'] = _ApiClient["default"].convertToType(data['azure-client-secret'], 'String'); + } + + if (data.hasOwnProperty('azure-tenant-id')) { + obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); + } + + if (data.hasOwnProperty('cloud-service-provider')) { + obj['cloud-service-provider'] = _ApiClient["default"].convertToType(data['cloud-service-provider'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('connection-type')) { + obj['connection-type'] = _ApiClient["default"].convertToType(data['connection-type'], 'String'); + } + + if (data.hasOwnProperty('db-name')) { + obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); + } + + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); + } + + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + } + + if (data.hasOwnProperty('db-type')) { + obj['db-type'] = _ApiClient["default"].convertToType(data['db-type'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('mongodb-atlas')) { + obj['mongodb-atlas'] = _ApiClient["default"].convertToType(data['mongodb-atlas'], 'Boolean'); + } + + if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { + obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); + } + + if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { + obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); + } + + if (data.hasOwnProperty('mongodb-atlas-project-id')) { + obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); + } + + if (data.hasOwnProperty('mongodb-default-auth-db')) { + obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); + } + + if (data.hasOwnProperty('mongodb-uri-options')) { + obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('oracle-service-name')) { + obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); + } + + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } + + if (data.hasOwnProperty('pwd')) { + obj['pwd'] = _ApiClient["default"].convertToType(data['pwd'], 'String'); + } + + if (data.hasOwnProperty('snowflake-account')) { + obj['snowflake-account'] = _ApiClient["default"].convertToType(data['snowflake-account'], 'String'); + } + + if (data.hasOwnProperty('snowflake-api-private-key')) { + obj['snowflake-api-private-key'] = _ApiClient["default"].convertToType(data['snowflake-api-private-key'], 'String'); + } + + if (data.hasOwnProperty('snowflake-api-private-key-password')) { + obj['snowflake-api-private-key-password'] = _ApiClient["default"].convertToType(data['snowflake-api-private-key-password'], 'String'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-name')) { + obj['user-name'] = _ApiClient["default"].convertToType(data['user-name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateDBTarget; +}(); +/** + * @member {String} DBDefinedConnectionType + */ + + +CreateDBTarget.prototype['DBDefinedConnectionType'] = undefined; +/** + * (Optional) Client id (relevant for \"cloud-service-provider\" only) + * @member {String} azure-client-id + */ + +CreateDBTarget.prototype['azure-client-id'] = undefined; +/** + * (Optional) Client secret (relevant for \"cloud-service-provider\" only) + * @member {String} azure-client-secret + */ + +CreateDBTarget.prototype['azure-client-secret'] = undefined; +/** + * (Optional) Tenant id (relevant for \"cloud-service-provider\" only) + * @member {String} azure-tenant-id + */ + +CreateDBTarget.prototype['azure-tenant-id'] = undefined; +/** + * (Optional) Cloud service provider (currently only supports Azure) + * @member {String} cloud-service-provider + */ + +CreateDBTarget.prototype['cloud-service-provider'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateDBTarget.prototype['comment'] = undefined; +/** + * (Optional) Type of connection to mssql database [credentials/cloud-identity] + * @member {String} connection-type + * @default 'credentials' + */ + +CreateDBTarget.prototype['connection-type'] = 'credentials'; +/** + * @member {String} db-name + */ + +CreateDBTarget.prototype['db-name'] = undefined; +/** + * (Optional) DB server certificates + * @member {String} db-server-certificates + */ + +CreateDBTarget.prototype['db-server-certificates'] = undefined; +/** + * (Optional) Server name for certificate verification + * @member {String} db-server-name + */ + +CreateDBTarget.prototype['db-server-name'] = undefined; +/** + * @member {String} db-type + */ + +CreateDBTarget.prototype['db-type'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateDBTarget.prototype['description'] = undefined; +/** + * @member {String} host + */ + +CreateDBTarget.prototype['host'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateDBTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateDBTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateDBTarget.prototype['max-versions'] = undefined; +/** + * @member {Boolean} mongodb-atlas + */ + +CreateDBTarget.prototype['mongodb-atlas'] = undefined; +/** + * MongoDB Atlas private key + * @member {String} mongodb-atlas-api-private-key + */ + +CreateDBTarget.prototype['mongodb-atlas-api-private-key'] = undefined; +/** + * MongoDB Atlas public key + * @member {String} mongodb-atlas-api-public-key + */ + +CreateDBTarget.prototype['mongodb-atlas-api-public-key'] = undefined; +/** + * MongoDB Atlas project ID + * @member {String} mongodb-atlas-project-id + */ + +CreateDBTarget.prototype['mongodb-atlas-project-id'] = undefined; +/** + * MongoDB server default authentication database + * @member {String} mongodb-default-auth-db + */ + +CreateDBTarget.prototype['mongodb-default-auth-db'] = undefined; +/** + * MongoDB server URI options + * @member {String} mongodb-uri-options + */ + +CreateDBTarget.prototype['mongodb-uri-options'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateDBTarget.prototype['name'] = undefined; +/** + * @member {String} oracle-service-name + */ + +CreateDBTarget.prototype['oracle-service-name'] = undefined; +/** + * @member {String} port + */ + +CreateDBTarget.prototype['port'] = undefined; +/** + * @member {String} pwd + */ + +CreateDBTarget.prototype['pwd'] = undefined; +/** + * @member {String} snowflake-account + */ + +CreateDBTarget.prototype['snowflake-account'] = undefined; +/** + * RSA Private key (base64 encoded) + * @member {String} snowflake-api-private-key + */ + +CreateDBTarget.prototype['snowflake-api-private-key'] = undefined; +/** + * The Private key passphrase + * @member {String} snowflake-api-private-key-password + */ + +CreateDBTarget.prototype['snowflake-api-private-key-password'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +CreateDBTarget.prototype['ssl'] = false; +/** + * SSL connection certificate + * @member {String} ssl-certificate + */ + +CreateDBTarget.prototype['ssl-certificate'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateDBTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateDBTarget.prototype['uid-token'] = undefined; +/** + * @member {String} user-name + */ + +CreateDBTarget.prototype['user-name'] = undefined; +var _default = CreateDBTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 90170: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateDBTargetOutput model module. + * @module model/CreateDBTargetOutput + * @version 3.6.3 + */ +var CreateDBTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateDBTargetOutput. + * @alias module:model/CreateDBTargetOutput + */ + function CreateDBTargetOutput() { + _classCallCheck(this, CreateDBTargetOutput); + + CreateDBTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateDBTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateDBTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateDBTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateDBTargetOutput} The populated CreateDBTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateDBTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateDBTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateDBTargetOutput.prototype['target_id'] = undefined; +var _default = CreateDBTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 19450: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateDFCKey model module. + * @module model/CreateDFCKey + * @version 3.6.3 + */ +var CreateDFCKey = /*#__PURE__*/function () { + /** + * Constructs a new CreateDFCKey. + * @alias module:model/CreateDFCKey + * @param alg {String} DFCKey type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096] + * @param name {String} DFCKey name + */ + function CreateDFCKey(alg, name) { + _classCallCheck(this, CreateDFCKey); + + CreateDFCKey.initialize(this, alg, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateDFCKey, null, [{ + key: "initialize", + value: function initialize(obj, alg, name) { + obj['alg'] = alg; + obj['name'] = name; + } + /** + * Constructs a CreateDFCKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateDFCKey} obj Optional instance to populate. + * @return {module:model/CreateDFCKey} The populated CreateDFCKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateDFCKey(); + + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + } + + if (data.hasOwnProperty('certificate-common-name')) { + obj['certificate-common-name'] = _ApiClient["default"].convertToType(data['certificate-common-name'], 'String'); + } + + if (data.hasOwnProperty('certificate-country')) { + obj['certificate-country'] = _ApiClient["default"].convertToType(data['certificate-country'], 'String'); + } + + if (data.hasOwnProperty('certificate-digest-algo')) { + obj['certificate-digest-algo'] = _ApiClient["default"].convertToType(data['certificate-digest-algo'], 'String'); + } + + if (data.hasOwnProperty('certificate-locality')) { + obj['certificate-locality'] = _ApiClient["default"].convertToType(data['certificate-locality'], 'String'); + } + + if (data.hasOwnProperty('certificate-organization')) { + obj['certificate-organization'] = _ApiClient["default"].convertToType(data['certificate-organization'], 'String'); + } + + if (data.hasOwnProperty('certificate-province')) { + obj['certificate-province'] = _ApiClient["default"].convertToType(data['certificate-province'], 'String'); + } + + if (data.hasOwnProperty('certificate-ttl')) { + obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); + } + + if (data.hasOwnProperty('conf-file-data')) { + obj['conf-file-data'] = _ApiClient["default"].convertToType(data['conf-file-data'], 'String'); + } + + if (data.hasOwnProperty('customer-frg-id')) { + obj['customer-frg-id'] = _ApiClient["default"].convertToType(data['customer-frg-id'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('generate-self-signed-certificate')) { + obj['generate-self-signed-certificate'] = _ApiClient["default"].convertToType(data['generate-self-signed-certificate'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('split-level')) { + obj['split-level'] = _ApiClient["default"].convertToType(data['split-level'], 'Number'); + } + + if (data.hasOwnProperty('tag')) { + obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateDFCKey; +}(); +/** + * DFCKey type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096] + * @member {String} alg + */ + + +CreateDFCKey.prototype['alg'] = undefined; +/** + * Common name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-common-name + */ + +CreateDFCKey.prototype['certificate-common-name'] = undefined; +/** + * Country name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-country + */ + +CreateDFCKey.prototype['certificate-country'] = undefined; +/** + * Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI. + * @member {String} certificate-digest-algo + */ + +CreateDFCKey.prototype['certificate-digest-algo'] = undefined; +/** + * Locality for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-locality + */ + +CreateDFCKey.prototype['certificate-locality'] = undefined; +/** + * Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-organization + */ + +CreateDFCKey.prototype['certificate-organization'] = undefined; +/** + * Province name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-province + */ + +CreateDFCKey.prototype['certificate-province'] = undefined; +/** + * TTL in days for the generated certificate. Required only for generate-self-signed-certificate. + * @member {Number} certificate-ttl + */ + +CreateDFCKey.prototype['certificate-ttl'] = undefined; +/** + * The csr config data in base64 encoding + * @member {String} conf-file-data + */ + +CreateDFCKey.prototype['conf-file-data'] = undefined; +/** + * The customer fragment ID that will be used to create the DFC key (if empty, the key will be created independently of a customer fragment) + * @member {String} customer-frg-id + */ + +CreateDFCKey.prototype['customer-frg-id'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateDFCKey.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateDFCKey.prototype['description'] = undefined; +/** + * Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided. + * @member {Boolean} generate-self-signed-certificate + */ + +CreateDFCKey.prototype['generate-self-signed-certificate'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateDFCKey.prototype['json'] = false; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateDFCKey.prototype['metadata'] = undefined; +/** + * DFCKey name + * @member {String} name + */ + +CreateDFCKey.prototype['name'] = undefined; +/** + * The number of fragments that the item will be split into (not includes customer fragment) + * @member {Number} split-level + * @default 3 + */ + +CreateDFCKey.prototype['split-level'] = 3; +/** + * List of the tags attached to this DFC key + * @member {Array.} tag + */ + +CreateDFCKey.prototype['tag'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateDFCKey.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateDFCKey.prototype['uid-token'] = undefined; +var _default = CreateDFCKey; +exports["default"] = _default; + +/***/ }), + +/***/ 71247: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateDFCKeyOutput model module. + * @module model/CreateDFCKeyOutput + * @version 3.6.3 + */ +var CreateDFCKeyOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateDFCKeyOutput. + * @alias module:model/CreateDFCKeyOutput + */ + function CreateDFCKeyOutput() { + _classCallCheck(this, CreateDFCKeyOutput); + + CreateDFCKeyOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateDFCKeyOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateDFCKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateDFCKeyOutput} obj Optional instance to populate. + * @return {module:model/CreateDFCKeyOutput} The populated CreateDFCKeyOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateDFCKeyOutput(); + + if (data.hasOwnProperty('fragment_results')) { + obj['fragment_results'] = _ApiClient["default"].convertToType(data['fragment_results'], ['Number']); + } + } + + return obj; + } + }]); + + return CreateDFCKeyOutput; +}(); +/** + * @member {Array.} fragment_results + */ + + +CreateDFCKeyOutput.prototype['fragment_results'] = undefined; +var _default = CreateDFCKeyOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 17396: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateDockerhubTarget model module. + * @module model/CreateDockerhubTarget + * @version 3.6.3 + */ +var CreateDockerhubTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateDockerhubTarget. + * @alias module:model/CreateDockerhubTarget + * @param name {String} Target name + */ + function CreateDockerhubTarget(name) { + _classCallCheck(this, CreateDockerhubTarget); + + CreateDockerhubTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateDockerhubTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateDockerhubTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateDockerhubTarget} obj Optional instance to populate. + * @return {module:model/CreateDockerhubTarget} The populated CreateDockerhubTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateDockerhubTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('dockerhub-password')) { + obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); + } + + if (data.hasOwnProperty('dockerhub-username')) { + obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateDockerhubTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateDockerhubTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateDockerhubTarget.prototype['description'] = undefined; +/** + * DockerhubPassword is either the user's password to manage the repository + * @member {String} dockerhub-password + */ + +CreateDockerhubTarget.prototype['dockerhub-password'] = undefined; +/** + * DockerhubUsername is the name of the user in dockerhub + * @member {String} dockerhub-username + */ + +CreateDockerhubTarget.prototype['dockerhub-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateDockerhubTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateDockerhubTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateDockerhubTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateDockerhubTarget.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateDockerhubTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateDockerhubTarget.prototype['uid-token'] = undefined; +var _default = CreateDockerhubTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 19845: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateDockerhubTargetOutput model module. + * @module model/CreateDockerhubTargetOutput + * @version 3.6.3 + */ +var CreateDockerhubTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateDockerhubTargetOutput. + * @alias module:model/CreateDockerhubTargetOutput + */ + function CreateDockerhubTargetOutput() { + _classCallCheck(this, CreateDockerhubTargetOutput); + + CreateDockerhubTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateDockerhubTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateDockerhubTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateDockerhubTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateDockerhubTargetOutput} The populated CreateDockerhubTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateDockerhubTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateDockerhubTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateDockerhubTargetOutput.prototype['target_id'] = undefined; +var _default = CreateDockerhubTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 78607: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateDynamicSecret model module. + * @module model/CreateDynamicSecret + * @version 3.6.3 + */ +var CreateDynamicSecret = /*#__PURE__*/function () { + /** + * Constructs a new CreateDynamicSecret. + * @alias module:model/CreateDynamicSecret + * @param name {String} Dynamic secret name + */ + function CreateDynamicSecret(name) { + _classCallCheck(this, CreateDynamicSecret); + + CreateDynamicSecret.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateDynamicSecret, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateDynamicSecret from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateDynamicSecret} obj Optional instance to populate. + * @return {module:model/CreateDynamicSecret} The populated CreateDynamicSecret instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateDynamicSecret(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateDynamicSecret; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +CreateDynamicSecret.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateDynamicSecret.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateDynamicSecret.prototype['json'] = false; +/** + * The name of a key that used to encrypt the dynamic secret values (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateDynamicSecret.prototype['key'] = undefined; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateDynamicSecret.prototype['metadata'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +CreateDynamicSecret.prototype['name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +CreateDynamicSecret.prototype['tags'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateDynamicSecret.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateDynamicSecret.prototype['uid-token'] = undefined; +var _default = CreateDynamicSecret; +exports["default"] = _default; + +/***/ }), + +/***/ 25086: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateEKSTarget model module. + * @module model/CreateEKSTarget + * @version 3.6.3 + */ +var CreateEKSTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateEKSTarget. + * @alias module:model/CreateEKSTarget + * @param eksAccessKeyId {String} Access Key ID + * @param eksClusterCaCert {String} EKS cluster CA certificate + * @param eksClusterEndpoint {String} EKS cluster URL endpoint + * @param eksClusterName {String} EKS cluster name + * @param eksSecretAccessKey {String} Secret Access Key + * @param name {String} Target name + */ + function CreateEKSTarget(eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name) { + _classCallCheck(this, CreateEKSTarget); + + CreateEKSTarget.initialize(this, eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateEKSTarget, null, [{ + key: "initialize", + value: function initialize(obj, eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name) { + obj['eks-access-key-id'] = eksAccessKeyId; + obj['eks-cluster-ca-cert'] = eksClusterCaCert; + obj['eks-cluster-endpoint'] = eksClusterEndpoint; + obj['eks-cluster-name'] = eksClusterName; + obj['eks-secret-access-key'] = eksSecretAccessKey; + obj['name'] = name; + } + /** + * Constructs a CreateEKSTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateEKSTarget} obj Optional instance to populate. + * @return {module:model/CreateEKSTarget} The populated CreateEKSTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateEKSTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('eks-access-key-id')) { + obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-ca-cert')) { + obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-endpoint')) { + obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-name')) { + obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); + } + + if (data.hasOwnProperty('eks-region')) { + obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); + } + + if (data.hasOwnProperty('eks-secret-access-key')) { + obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return CreateEKSTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateEKSTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateEKSTarget.prototype['description'] = undefined; +/** + * Access Key ID + * @member {String} eks-access-key-id + */ + +CreateEKSTarget.prototype['eks-access-key-id'] = undefined; +/** + * EKS cluster CA certificate + * @member {String} eks-cluster-ca-cert + */ + +CreateEKSTarget.prototype['eks-cluster-ca-cert'] = undefined; +/** + * EKS cluster URL endpoint + * @member {String} eks-cluster-endpoint + */ + +CreateEKSTarget.prototype['eks-cluster-endpoint'] = undefined; +/** + * EKS cluster name + * @member {String} eks-cluster-name + */ + +CreateEKSTarget.prototype['eks-cluster-name'] = undefined; +/** + * Region + * @member {String} eks-region + * @default 'us-east-2' + */ + +CreateEKSTarget.prototype['eks-region'] = 'us-east-2'; +/** + * Secret Access Key + * @member {String} eks-secret-access-key + */ + +CreateEKSTarget.prototype['eks-secret-access-key'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateEKSTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateEKSTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateEKSTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateEKSTarget.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateEKSTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateEKSTarget.prototype['uid-token'] = undefined; +/** + * @member {Boolean} use-gw-cloud-identity + */ + +CreateEKSTarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = CreateEKSTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 67307: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateEKSTargetOutput model module. + * @module model/CreateEKSTargetOutput + * @version 3.6.3 + */ +var CreateEKSTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateEKSTargetOutput. + * @alias module:model/CreateEKSTargetOutput + */ + function CreateEKSTargetOutput() { + _classCallCheck(this, CreateEKSTargetOutput); + + CreateEKSTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateEKSTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateEKSTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateEKSTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateEKSTargetOutput} The populated CreateEKSTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateEKSTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateEKSTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateEKSTargetOutput.prototype['target_id'] = undefined; +var _default = CreateEKSTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 87617: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateESM model module. + * @module model/CreateESM + * @version 3.6.3 + */ +var CreateESM = /*#__PURE__*/function () { + /** + * Constructs a new CreateESM. + * CreateESM is a command that creates an External Secrets Manager. [Deprecated: Use command create-usc] + * @alias module:model/CreateESM + * @param name {String} External Secrets Manager name + * @param targetToAssociate {String} Target External Secrets Manager to connect + */ + function CreateESM(name, targetToAssociate) { + _classCallCheck(this, CreateESM); + + CreateESM.initialize(this, name, targetToAssociate); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateESM, null, [{ + key: "initialize", + value: function initialize(obj, name, targetToAssociate) { + obj['name'] = name; + obj['target-to-associate'] = targetToAssociate; + } + /** + * Constructs a CreateESM from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateESM} obj Optional instance to populate. + * @return {module:model/CreateESM} The populated CreateESM instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateESM(); + + if (data.hasOwnProperty('azure-kv-name')) { + obj['azure-kv-name'] = _ApiClient["default"].convertToType(data['azure-kv-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-namespace')) { + obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-to-associate')) { + obj['target-to-associate'] = _ApiClient["default"].convertToType(data['target-to-associate'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateESM; +}(); +/** + * Azure Key Vault name (Relevant only for Azure targets) + * @member {String} azure-kv-name + */ + + +CreateESM.prototype['azure-kv-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateESM.prototype['delete_protection'] = undefined; +/** + * Description of the External Secrets Manager + * @member {String} description + */ + +CreateESM.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateESM.prototype['json'] = false; +/** + * K8s namespace (Relevant to Kubernetes targets) + * @member {String} k8s-namespace + */ + +CreateESM.prototype['k8s-namespace'] = undefined; +/** + * External Secrets Manager name + * @member {String} name + */ + +CreateESM.prototype['name'] = undefined; +/** + * List of the tags attached to this External Secrets Manager + * @member {Array.} tags + */ + +CreateESM.prototype['tags'] = undefined; +/** + * Target External Secrets Manager to connect + * @member {String} target-to-associate + */ + +CreateESM.prototype['target-to-associate'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateESM.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateESM.prototype['uid-token'] = undefined; +var _default = CreateESM; +exports["default"] = _default; + +/***/ }), + +/***/ 64564: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateESMOutput model module. + * @module model/CreateESMOutput + * @version 3.6.3 + */ +var CreateESMOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateESMOutput. + * @alias module:model/CreateESMOutput + */ + function CreateESMOutput() { + _classCallCheck(this, CreateESMOutput); + + CreateESMOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateESMOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateESMOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateESMOutput} obj Optional instance to populate. + * @return {module:model/CreateESMOutput} The populated CreateESMOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateESMOutput(); + + if (data.hasOwnProperty('external_secret_manager_id')) { + obj['external_secret_manager_id'] = _ApiClient["default"].convertToType(data['external_secret_manager_id'], 'Number'); + } + + if (data.hasOwnProperty('external_secret_manager_name')) { + obj['external_secret_manager_name'] = _ApiClient["default"].convertToType(data['external_secret_manager_name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateESMOutput; +}(); +/** + * @member {Number} external_secret_manager_id + */ + + +CreateESMOutput.prototype['external_secret_manager_id'] = undefined; +/** + * @member {String} external_secret_manager_name + */ + +CreateESMOutput.prototype['external_secret_manager_name'] = undefined; +var _default = CreateESMOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 55910: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateEventForwarder model module. + * @module model/CreateEventForwarder + * @version 3.6.3 + */ +var CreateEventForwarder = /*#__PURE__*/function () { + /** + * Constructs a new CreateEventForwarder. + * createEventForwarder is a command that creates a new event forwarder [Deprecated - please use event-forwarder-create-* command] + * @alias module:model/CreateEventForwarder + * @param eventSourceLocations {Array.} Event sources + * @param forwarderType {String} + * @param name {String} EventForwarder name + * @param runnerType {String} + */ + function CreateEventForwarder(eventSourceLocations, forwarderType, name, runnerType) { + _classCallCheck(this, CreateEventForwarder); + + CreateEventForwarder.initialize(this, eventSourceLocations, forwarderType, name, runnerType); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateEventForwarder, null, [{ + key: "initialize", + value: function initialize(obj, eventSourceLocations, forwarderType, name, runnerType) { + obj['event-source-locations'] = eventSourceLocations; + obj['forwarder-type'] = forwarderType; + obj['name'] = name; + obj['runner-type'] = runnerType; + } + /** + * Constructs a CreateEventForwarder from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateEventForwarder} obj Optional instance to populate. + * @return {module:model/CreateEventForwarder} The populated CreateEventForwarder instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateEventForwarder(); + + if (data.hasOwnProperty('admin-name')) { + obj['admin-name'] = _ApiClient["default"].convertToType(data['admin-name'], 'String'); + } + + if (data.hasOwnProperty('admin-pwd')) { + obj['admin-pwd'] = _ApiClient["default"].convertToType(data['admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('app-private-key-base64')) { + obj['app-private-key-base64'] = _ApiClient["default"].convertToType(data['app-private-key-base64'], 'String'); + } + + if (data.hasOwnProperty('auth-type')) { + obj['auth-type'] = _ApiClient["default"].convertToType(data['auth-type'], 'String'); + } + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + } + + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('email-to')) { + obj['email-to'] = _ApiClient["default"].convertToType(data['email-to'], 'String'); + } + + if (data.hasOwnProperty('event-source-locations')) { + obj['event-source-locations'] = _ApiClient["default"].convertToType(data['event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('event-source-type')) { + obj['event-source-type'] = _ApiClient["default"].convertToType(data['event-source-type'], 'String'); + } + + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); + } + + if (data.hasOwnProperty('every')) { + obj['every'] = _ApiClient["default"].convertToType(data['every'], 'String'); + } + + if (data.hasOwnProperty('forwarder-type')) { + obj['forwarder-type'] = _ApiClient["default"].convertToType(data['forwarder-type'], 'String'); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('runner-type')) { + obj['runner-type'] = _ApiClient["default"].convertToType(data['runner-type'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-email')) { + obj['user-email'] = _ApiClient["default"].convertToType(data['user-email'], 'String'); + } + } + + return obj; + } + }]); + + return CreateEventForwarder; +}(); +/** + * Workstation Admin Name + * @member {String} admin-name + */ + + +CreateEventForwarder.prototype['admin-name'] = undefined; +/** + * Workstation Admin password + * @member {String} admin-pwd + */ + +CreateEventForwarder.prototype['admin-pwd'] = undefined; +/** + * The RSA Private Key PEM formatted in base64 to use when connecting to ServiceNow with jwt authentication + * @member {String} app-private-key-base64 + */ + +CreateEventForwarder.prototype['app-private-key-base64'] = undefined; +/** + * The authentication type to use when connecting to ServiceNow (user-pass / jwt) + * @member {String} auth-type + * @default 'user-pass' + */ + +CreateEventForwarder.prototype['auth-type'] = 'user-pass'; +/** + * The client ID to use when connecting to ServiceNow with jwt authentication + * @member {String} client-id + */ + +CreateEventForwarder.prototype['client-id'] = undefined; +/** + * The client secret to use when connecting to ServiceNow with jwt authentication + * @member {String} client-secret + */ + +CreateEventForwarder.prototype['client-secret'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateEventForwarder.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateEventForwarder.prototype['description'] = undefined; +/** + * A comma seperated list of email addresses to send event to (relevant only for \"email\" Event Forwarder) + * @member {String} email-to + */ + +CreateEventForwarder.prototype['email-to'] = undefined; +/** + * Event sources + * @member {Array.} event-source-locations + */ + +CreateEventForwarder.prototype['event-source-locations'] = undefined; +/** + * Event Source type [item, target, auth_method, gateway] + * @member {String} event-source-type + * @default 'item' + */ + +CreateEventForwarder.prototype['event-source-type'] = 'item'; +/** + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types + */ + +CreateEventForwarder.prototype['event-types'] = undefined; +/** + * Rate of periodic runner repetition in hours + * @member {String} every + */ + +CreateEventForwarder.prototype['every'] = undefined; +/** + * @member {String} forwarder-type + */ + +CreateEventForwarder.prototype['forwarder-type'] = undefined; +/** + * Workstation Host + * @member {String} host + */ + +CreateEventForwarder.prototype['host'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateEventForwarder.prototype['json'] = false; +/** + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateEventForwarder.prototype['key'] = undefined; +/** + * EventForwarder name + * @member {String} name + */ + +CreateEventForwarder.prototype['name'] = undefined; +/** + * @member {String} runner-type + */ + +CreateEventForwarder.prototype['runner-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateEventForwarder.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateEventForwarder.prototype['uid-token'] = undefined; +/** + * The user email to use when connecting to ServiceNow with jwt authentication + * @member {String} user-email + */ + +CreateEventForwarder.prototype['user-email'] = undefined; +var _default = CreateEventForwarder; +exports["default"] = _default; + +/***/ }), + +/***/ 91555: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateEventForwarderOutput model module. + * @module model/CreateEventForwarderOutput + * @version 3.6.3 + */ +var CreateEventForwarderOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateEventForwarderOutput. + * @alias module:model/CreateEventForwarderOutput + */ + function CreateEventForwarderOutput() { + _classCallCheck(this, CreateEventForwarderOutput); + + CreateEventForwarderOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateEventForwarderOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateEventForwarderOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateEventForwarderOutput} obj Optional instance to populate. + * @return {module:model/CreateEventForwarderOutput} The populated CreateEventForwarderOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateEventForwarderOutput(); + + if (data.hasOwnProperty('event_forwarder_id')) { + obj['event_forwarder_id'] = _ApiClient["default"].convertToType(data['event_forwarder_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateEventForwarderOutput; +}(); +/** + * @member {Number} event_forwarder_id + */ + + +CreateEventForwarderOutput.prototype['event_forwarder_id'] = undefined; +var _default = CreateEventForwarderOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 3302: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGKETarget model module. + * @module model/CreateGKETarget + * @version 3.6.3 + */ +var CreateGKETarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateGKETarget. + * @alias module:model/CreateGKETarget + * @param name {String} Target name + */ + function CreateGKETarget(name) { + _classCallCheck(this, CreateGKETarget); + + CreateGKETarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGKETarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateGKETarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGKETarget} obj Optional instance to populate. + * @return {module:model/CreateGKETarget} The populated CreateGKETarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGKETarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('gke-account-key')) { + obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-cert')) { + obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-endpoint')) { + obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-name')) { + obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); + } + + if (data.hasOwnProperty('gke-service-account-email')) { + obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return CreateGKETarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateGKETarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateGKETarget.prototype['description'] = undefined; +/** + * GKE Service Account key file path + * @member {String} gke-account-key + */ + +CreateGKETarget.prototype['gke-account-key'] = undefined; +/** + * GKE cluster CA certificate + * @member {String} gke-cluster-cert + */ + +CreateGKETarget.prototype['gke-cluster-cert'] = undefined; +/** + * GKE cluster URL endpoint + * @member {String} gke-cluster-endpoint + */ + +CreateGKETarget.prototype['gke-cluster-endpoint'] = undefined; +/** + * GKE cluster name + * @member {String} gke-cluster-name + */ + +CreateGKETarget.prototype['gke-cluster-name'] = undefined; +/** + * GKE service account email + * @member {String} gke-service-account-email + */ + +CreateGKETarget.prototype['gke-service-account-email'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateGKETarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateGKETarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateGKETarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateGKETarget.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateGKETarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateGKETarget.prototype['uid-token'] = undefined; +/** + * @member {Boolean} use-gw-cloud-identity + */ + +CreateGKETarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = CreateGKETarget; +exports["default"] = _default; + +/***/ }), + +/***/ 15235: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGKETargetOutput model module. + * @module model/CreateGKETargetOutput + * @version 3.6.3 + */ +var CreateGKETargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateGKETargetOutput. + * @alias module:model/CreateGKETargetOutput + */ + function CreateGKETargetOutput() { + _classCallCheck(this, CreateGKETargetOutput); + + CreateGKETargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGKETargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateGKETargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGKETargetOutput} obj Optional instance to populate. + * @return {module:model/CreateGKETargetOutput} The populated CreateGKETargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGKETargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateGKETargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateGKETargetOutput.prototype['target_id'] = undefined; +var _default = CreateGKETargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 38705: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGcpTarget model module. + * @module model/CreateGcpTarget + * @version 3.6.3 + */ +var CreateGcpTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateGcpTarget. + * @alias module:model/CreateGcpTarget + * @param name {String} Target name + */ + function CreateGcpTarget(name) { + _classCallCheck(this, CreateGcpTarget); + + CreateGcpTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGcpTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateGcpTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGcpTarget} obj Optional instance to populate. + * @return {module:model/CreateGcpTarget} The populated CreateGcpTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGcpTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return CreateGcpTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateGcpTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateGcpTarget.prototype['description'] = undefined; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ + +CreateGcpTarget.prototype['gcp-key'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateGcpTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateGcpTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateGcpTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateGcpTarget.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateGcpTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateGcpTarget.prototype['uid-token'] = undefined; +/** + * @member {Boolean} use-gw-cloud-identity + */ + +CreateGcpTarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = CreateGcpTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 39108: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGcpTargetOutput model module. + * @module model/CreateGcpTargetOutput + * @version 3.6.3 + */ +var CreateGcpTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateGcpTargetOutput. + * @alias module:model/CreateGcpTargetOutput + */ + function CreateGcpTargetOutput() { + _classCallCheck(this, CreateGcpTargetOutput); + + CreateGcpTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGcpTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateGcpTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGcpTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateGcpTargetOutput} The populated CreateGcpTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGcpTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateGcpTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateGcpTargetOutput.prototype['target_id'] = undefined; +var _default = CreateGcpTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 28702: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGithubTarget model module. + * @module model/CreateGithubTarget + * @version 3.6.3 + */ +var CreateGithubTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateGithubTarget. + * @alias module:model/CreateGithubTarget + * @param name {String} Target name + */ + function CreateGithubTarget(name) { + _classCallCheck(this, CreateGithubTarget); + + CreateGithubTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGithubTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateGithubTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGithubTarget} obj Optional instance to populate. + * @return {module:model/CreateGithubTarget} The populated CreateGithubTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGithubTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('github-app-id')) { + obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); + } + + if (data.hasOwnProperty('github-app-private-key')) { + obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); + } + + if (data.hasOwnProperty('github-base-url')) { + obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateGithubTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateGithubTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateGithubTarget.prototype['description'] = undefined; +/** + * Github app id + * @member {Number} github-app-id + */ + +CreateGithubTarget.prototype['github-app-id'] = undefined; +/** + * App private key + * @member {String} github-app-private-key + */ + +CreateGithubTarget.prototype['github-app-private-key'] = undefined; +/** + * Base URL + * @member {String} github-base-url + * @default 'https://api.github.com/' + */ + +CreateGithubTarget.prototype['github-base-url'] = 'https://api.github.com/'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateGithubTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateGithubTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateGithubTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateGithubTarget.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateGithubTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateGithubTarget.prototype['uid-token'] = undefined; +var _default = CreateGithubTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 6731: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGithubTargetOutput model module. + * @module model/CreateGithubTargetOutput + * @version 3.6.3 + */ +var CreateGithubTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateGithubTargetOutput. + * @alias module:model/CreateGithubTargetOutput + */ + function CreateGithubTargetOutput() { + _classCallCheck(this, CreateGithubTargetOutput); + + CreateGithubTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGithubTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateGithubTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGithubTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateGithubTargetOutput} The populated CreateGithubTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGithubTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateGithubTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateGithubTargetOutput.prototype['target_id'] = undefined; +var _default = CreateGithubTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 45966: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGlobalSignAtlasTarget model module. + * @module model/CreateGlobalSignAtlasTarget + * @version 3.6.3 + */ +var CreateGlobalSignAtlasTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateGlobalSignAtlasTarget. + * @alias module:model/CreateGlobalSignAtlasTarget + * @param apiKey {String} API Key of the GlobalSign Atlas account + * @param apiSecret {String} API Secret of the GlobalSign Atlas account + * @param name {String} Target name + */ + function CreateGlobalSignAtlasTarget(apiKey, apiSecret, name) { + _classCallCheck(this, CreateGlobalSignAtlasTarget); + + CreateGlobalSignAtlasTarget.initialize(this, apiKey, apiSecret, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGlobalSignAtlasTarget, null, [{ + key: "initialize", + value: function initialize(obj, apiKey, apiSecret, name) { + obj['api-key'] = apiKey; + obj['api-secret'] = apiSecret; + obj['name'] = name; + } + /** + * Constructs a CreateGlobalSignAtlasTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGlobalSignAtlasTarget} obj Optional instance to populate. + * @return {module:model/CreateGlobalSignAtlasTarget} The populated CreateGlobalSignAtlasTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGlobalSignAtlasTarget(); + + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + } + + if (data.hasOwnProperty('api-secret')) { + obj['api-secret'] = _ApiClient["default"].convertToType(data['api-secret'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('mtls-cert-data-base64')) { + obj['mtls-cert-data-base64'] = _ApiClient["default"].convertToType(data['mtls-cert-data-base64'], 'String'); + } + + if (data.hasOwnProperty('mtls-key-data-base64')) { + obj['mtls-key-data-base64'] = _ApiClient["default"].convertToType(data['mtls-key-data-base64'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateGlobalSignAtlasTarget; +}(); +/** + * API Key of the GlobalSign Atlas account + * @member {String} api-key + */ + + +CreateGlobalSignAtlasTarget.prototype['api-key'] = undefined; +/** + * API Secret of the GlobalSign Atlas account + * @member {String} api-secret + */ + +CreateGlobalSignAtlasTarget.prototype['api-secret'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateGlobalSignAtlasTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateGlobalSignAtlasTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateGlobalSignAtlasTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateGlobalSignAtlasTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateGlobalSignAtlasTarget.prototype['max-versions'] = undefined; +/** + * Mutual TLS Certificate contents of the GlobalSign Atlas account encoded in base64, either mtls-cert-file-path or mtls-cert-data-base64 must be supplied + * @member {String} mtls-cert-data-base64 + */ + +CreateGlobalSignAtlasTarget.prototype['mtls-cert-data-base64'] = undefined; +/** + * Mutual TLS Key contents of the GlobalSign Atlas account encoded in base64, either mtls-key-file-path or mtls-data-base64 must be supplied + * @member {String} mtls-key-data-base64 + */ + +CreateGlobalSignAtlasTarget.prototype['mtls-key-data-base64'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateGlobalSignAtlasTarget.prototype['name'] = undefined; +/** + * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. + * @member {String} timeout + * @default '5m' + */ + +CreateGlobalSignAtlasTarget.prototype['timeout'] = '5m'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateGlobalSignAtlasTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateGlobalSignAtlasTarget.prototype['uid-token'] = undefined; +var _default = CreateGlobalSignAtlasTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 315: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGlobalSignAtlasTargetOutput model module. + * @module model/CreateGlobalSignAtlasTargetOutput + * @version 3.6.3 + */ +var CreateGlobalSignAtlasTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateGlobalSignAtlasTargetOutput. + * @alias module:model/CreateGlobalSignAtlasTargetOutput + */ + function CreateGlobalSignAtlasTargetOutput() { + _classCallCheck(this, CreateGlobalSignAtlasTargetOutput); + + CreateGlobalSignAtlasTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGlobalSignAtlasTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateGlobalSignAtlasTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGlobalSignAtlasTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateGlobalSignAtlasTargetOutput} The populated CreateGlobalSignAtlasTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGlobalSignAtlasTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateGlobalSignAtlasTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateGlobalSignAtlasTargetOutput.prototype['target_id'] = undefined; +var _default = CreateGlobalSignAtlasTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 63799: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGlobalSignTarget model module. + * @module model/CreateGlobalSignTarget + * @version 3.6.3 + */ +var CreateGlobalSignTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateGlobalSignTarget. + * @alias module:model/CreateGlobalSignTarget + * @param contactEmail {String} Email of the GlobalSign GCC account contact + * @param contactFirstName {String} First name of the GlobalSign GCC account contact + * @param contactLastName {String} Last name of the GlobalSign GCC account contact + * @param contactPhone {String} Telephone of the GlobalSign GCC account contact + * @param name {String} Target name + * @param password {String} Password of the GlobalSign GCC account + * @param profileId {String} Profile ID of the GlobalSign GCC account + * @param username {String} Username of the GlobalSign GCC account + */ + function CreateGlobalSignTarget(contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username) { + _classCallCheck(this, CreateGlobalSignTarget); + + CreateGlobalSignTarget.initialize(this, contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGlobalSignTarget, null, [{ + key: "initialize", + value: function initialize(obj, contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username) { + obj['contact-email'] = contactEmail; + obj['contact-first-name'] = contactFirstName; + obj['contact-last-name'] = contactLastName; + obj['contact-phone'] = contactPhone; + obj['name'] = name; + obj['password'] = password; + obj['profile-id'] = profileId; + obj['username'] = username; + } + /** + * Constructs a CreateGlobalSignTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGlobalSignTarget} obj Optional instance to populate. + * @return {module:model/CreateGlobalSignTarget} The populated CreateGlobalSignTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGlobalSignTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('contact-email')) { + obj['contact-email'] = _ApiClient["default"].convertToType(data['contact-email'], 'String'); + } + + if (data.hasOwnProperty('contact-first-name')) { + obj['contact-first-name'] = _ApiClient["default"].convertToType(data['contact-first-name'], 'String'); + } + + if (data.hasOwnProperty('contact-last-name')) { + obj['contact-last-name'] = _ApiClient["default"].convertToType(data['contact-last-name'], 'String'); + } + + if (data.hasOwnProperty('contact-phone')) { + obj['contact-phone'] = _ApiClient["default"].convertToType(data['contact-phone'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('profile-id')) { + obj['profile-id'] = _ApiClient["default"].convertToType(data['profile-id'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + } + + return obj; + } + }]); + + return CreateGlobalSignTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateGlobalSignTarget.prototype['comment'] = undefined; +/** + * Email of the GlobalSign GCC account contact + * @member {String} contact-email + */ + +CreateGlobalSignTarget.prototype['contact-email'] = undefined; +/** + * First name of the GlobalSign GCC account contact + * @member {String} contact-first-name + */ + +CreateGlobalSignTarget.prototype['contact-first-name'] = undefined; +/** + * Last name of the GlobalSign GCC account contact + * @member {String} contact-last-name + */ + +CreateGlobalSignTarget.prototype['contact-last-name'] = undefined; +/** + * Telephone of the GlobalSign GCC account contact + * @member {String} contact-phone + */ + +CreateGlobalSignTarget.prototype['contact-phone'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateGlobalSignTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateGlobalSignTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateGlobalSignTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateGlobalSignTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateGlobalSignTarget.prototype['name'] = undefined; +/** + * Password of the GlobalSign GCC account + * @member {String} password + */ + +CreateGlobalSignTarget.prototype['password'] = undefined; +/** + * Profile ID of the GlobalSign GCC account + * @member {String} profile-id + */ + +CreateGlobalSignTarget.prototype['profile-id'] = undefined; +/** + * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. + * @member {String} timeout + * @default '5m' + */ + +CreateGlobalSignTarget.prototype['timeout'] = '5m'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateGlobalSignTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateGlobalSignTarget.prototype['uid-token'] = undefined; +/** + * Username of the GlobalSign GCC account + * @member {String} username + */ + +CreateGlobalSignTarget.prototype['username'] = undefined; +var _default = CreateGlobalSignTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 41550: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGlobalSignTargetOutput model module. + * @module model/CreateGlobalSignTargetOutput + * @version 3.6.3 + */ +var CreateGlobalSignTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateGlobalSignTargetOutput. + * @alias module:model/CreateGlobalSignTargetOutput + */ + function CreateGlobalSignTargetOutput() { + _classCallCheck(this, CreateGlobalSignTargetOutput); + + CreateGlobalSignTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGlobalSignTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateGlobalSignTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGlobalSignTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateGlobalSignTargetOutput} The populated CreateGlobalSignTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGlobalSignTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateGlobalSignTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateGlobalSignTargetOutput.prototype['target_id'] = undefined; +var _default = CreateGlobalSignTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 71167: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGodaddyTarget model module. + * @module model/CreateGodaddyTarget + * @version 3.6.3 + */ +var CreateGodaddyTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateGodaddyTarget. + * @alias module:model/CreateGodaddyTarget + * @param apiKey {String} Key of the api credentials to the Godaddy account + * @param imapFqdn {String} ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS + * @param imapPassword {String} ImapPassword to access the IMAP service + * @param imapUsername {String} ImapUsername to access the IMAP service + * @param name {String} Target name + * @param secret {String} Secret of the api credentials to the Godaddy account + */ + function CreateGodaddyTarget(apiKey, imapFqdn, imapPassword, imapUsername, name, secret) { + _classCallCheck(this, CreateGodaddyTarget); + + CreateGodaddyTarget.initialize(this, apiKey, imapFqdn, imapPassword, imapUsername, name, secret); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGodaddyTarget, null, [{ + key: "initialize", + value: function initialize(obj, apiKey, imapFqdn, imapPassword, imapUsername, name, secret) { + obj['api-key'] = apiKey; + obj['imap-fqdn'] = imapFqdn; + obj['imap-password'] = imapPassword; + obj['imap-username'] = imapUsername; + obj['name'] = name; + obj['secret'] = secret; + } + /** + * Constructs a CreateGodaddyTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGodaddyTarget} obj Optional instance to populate. + * @return {module:model/CreateGodaddyTarget} The populated CreateGodaddyTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGodaddyTarget(); + + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('imap-fqdn')) { + obj['imap-fqdn'] = _ApiClient["default"].convertToType(data['imap-fqdn'], 'String'); + } + + if (data.hasOwnProperty('imap-password')) { + obj['imap-password'] = _ApiClient["default"].convertToType(data['imap-password'], 'String'); + } + + if (data.hasOwnProperty('imap-port')) { + obj['imap-port'] = _ApiClient["default"].convertToType(data['imap-port'], 'String'); + } + + if (data.hasOwnProperty('imap-username')) { + obj['imap-username'] = _ApiClient["default"].convertToType(data['imap-username'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('secret')) { + obj['secret'] = _ApiClient["default"].convertToType(data['secret'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateGodaddyTarget; +}(); +/** + * Key of the api credentials to the Godaddy account + * @member {String} api-key + */ + + +CreateGodaddyTarget.prototype['api-key'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateGodaddyTarget.prototype['description'] = undefined; +/** + * ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS + * @member {String} imap-fqdn + */ + +CreateGodaddyTarget.prototype['imap-fqdn'] = undefined; +/** + * ImapPassword to access the IMAP service + * @member {String} imap-password + */ + +CreateGodaddyTarget.prototype['imap-password'] = undefined; +/** + * ImapPort of the IMAP service + * @member {String} imap-port + * @default '993' + */ + +CreateGodaddyTarget.prototype['imap-port'] = '993'; +/** + * ImapUsername to access the IMAP service + * @member {String} imap-username + */ + +CreateGodaddyTarget.prototype['imap-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateGodaddyTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateGodaddyTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateGodaddyTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateGodaddyTarget.prototype['name'] = undefined; +/** + * Secret of the api credentials to the Godaddy account + * @member {String} secret + */ + +CreateGodaddyTarget.prototype['secret'] = undefined; +/** + * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. + * @member {String} timeout + * @default '5m' + */ + +CreateGodaddyTarget.prototype['timeout'] = '5m'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateGodaddyTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateGodaddyTarget.prototype['uid-token'] = undefined; +var _default = CreateGodaddyTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 83238: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGodaddyTargetOutput model module. + * @module model/CreateGodaddyTargetOutput + * @version 3.6.3 + */ +var CreateGodaddyTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateGodaddyTargetOutput. + * @alias module:model/CreateGodaddyTargetOutput + */ + function CreateGodaddyTargetOutput() { + _classCallCheck(this, CreateGodaddyTargetOutput); + + CreateGodaddyTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGodaddyTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateGodaddyTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGodaddyTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateGodaddyTargetOutput} The populated CreateGodaddyTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGodaddyTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateGodaddyTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateGodaddyTargetOutput.prototype['target_id'] = undefined; +var _default = CreateGodaddyTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 37089: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGroup model module. + * @module model/CreateGroup + * @version 3.6.3 + */ +var CreateGroup = /*#__PURE__*/function () { + /** + * Constructs a new CreateGroup. + * @alias module:model/CreateGroup + * @param groupAlias {String} A short group alias + * @param name {String} Group name + */ + function CreateGroup(groupAlias, name) { + _classCallCheck(this, CreateGroup); + + CreateGroup.initialize(this, groupAlias, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGroup, null, [{ + key: "initialize", + value: function initialize(obj, groupAlias, name) { + obj['group-alias'] = groupAlias; + obj['name'] = name; + } + /** + * Constructs a CreateGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGroup} obj Optional instance to populate. + * @return {module:model/CreateGroup} The populated CreateGroup instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGroup(); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('group-alias')) { + obj['group-alias'] = _ApiClient["default"].convertToType(data['group-alias'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-assignment')) { + obj['user-assignment'] = _ApiClient["default"].convertToType(data['user-assignment'], 'String'); + } + } + + return obj; + } + }]); + + return CreateGroup; +}(); +/** + * Description of the object + * @member {String} description + */ + + +CreateGroup.prototype['description'] = undefined; +/** + * A short group alias + * @member {String} group-alias + */ + +CreateGroup.prototype['group-alias'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateGroup.prototype['json'] = false; +/** + * Group name + * @member {String} name + */ + +CreateGroup.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateGroup.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateGroup.prototype['uid-token'] = undefined; +/** + * A json string defining the access permission assignment for this client + * @member {String} user-assignment + */ + +CreateGroup.prototype['user-assignment'] = undefined; +var _default = CreateGroup; +exports["default"] = _default; + +/***/ }), + +/***/ 96628: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateGroupOutput model module. + * @module model/CreateGroupOutput + * @version 3.6.3 + */ +var CreateGroupOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateGroupOutput. + * @alias module:model/CreateGroupOutput + */ + function CreateGroupOutput() { + _classCallCheck(this, CreateGroupOutput); + + CreateGroupOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateGroupOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateGroupOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateGroupOutput} obj Optional instance to populate. + * @return {module:model/CreateGroupOutput} The populated CreateGroupOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateGroupOutput(); + + if (data.hasOwnProperty('group_alias')) { + obj['group_alias'] = _ApiClient["default"].convertToType(data['group_alias'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateGroupOutput; +}(); +/** + * @member {String} group_alias + */ + + +CreateGroupOutput.prototype['group_alias'] = undefined; +/** + * @member {String} id + */ + +CreateGroupOutput.prototype['id'] = undefined; +/** + * @member {String} name + */ + +CreateGroupOutput.prototype['name'] = undefined; +var _default = CreateGroupOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 59569: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateKey model module. + * @module model/CreateKey + * @version 3.6.3 + */ +var CreateKey = /*#__PURE__*/function () { + /** + * Constructs a new CreateKey. + * createKey is a command that creates a new key. [Deprecated: Use command create-dfc-key] + * @alias module:model/CreateKey + * @param alg {String} Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096] + * @param name {String} Key name + */ + function CreateKey(alg, name) { + _classCallCheck(this, CreateKey); + + CreateKey.initialize(this, alg, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateKey, null, [{ + key: "initialize", + value: function initialize(obj, alg, name) { + obj['alg'] = alg; + obj['name'] = name; + } + /** + * Constructs a CreateKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateKey} obj Optional instance to populate. + * @return {module:model/CreateKey} The populated CreateKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateKey(); + + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + } + + if (data.hasOwnProperty('certificate-common-name')) { + obj['certificate-common-name'] = _ApiClient["default"].convertToType(data['certificate-common-name'], 'String'); + } + + if (data.hasOwnProperty('certificate-country')) { + obj['certificate-country'] = _ApiClient["default"].convertToType(data['certificate-country'], 'String'); + } + + if (data.hasOwnProperty('certificate-digest-algo')) { + obj['certificate-digest-algo'] = _ApiClient["default"].convertToType(data['certificate-digest-algo'], 'String'); + } + + if (data.hasOwnProperty('certificate-locality')) { + obj['certificate-locality'] = _ApiClient["default"].convertToType(data['certificate-locality'], 'String'); + } + + if (data.hasOwnProperty('certificate-organization')) { + obj['certificate-organization'] = _ApiClient["default"].convertToType(data['certificate-organization'], 'String'); + } + + if (data.hasOwnProperty('certificate-province')) { + obj['certificate-province'] = _ApiClient["default"].convertToType(data['certificate-province'], 'String'); + } + + if (data.hasOwnProperty('certificate-ttl')) { + obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); + } + + if (data.hasOwnProperty('conf-file-data')) { + obj['conf-file-data'] = _ApiClient["default"].convertToType(data['conf-file-data'], 'String'); + } + + if (data.hasOwnProperty('customer-frg-id')) { + obj['customer-frg-id'] = _ApiClient["default"].convertToType(data['customer-frg-id'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('generate-self-signed-certificate')) { + obj['generate-self-signed-certificate'] = _ApiClient["default"].convertToType(data['generate-self-signed-certificate'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('split-level')) { + obj['split-level'] = _ApiClient["default"].convertToType(data['split-level'], 'Number'); + } + + if (data.hasOwnProperty('tag')) { + obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateKey; +}(); +/** + * Key type; options: [AES128GCM, AES256GCM, AES128SIV, AES256SIV, AES128CBC, AES256CBC, RSA1024, RSA2048, RSA3072, RSA4096] + * @member {String} alg + */ + + +CreateKey.prototype['alg'] = undefined; +/** + * Common name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-common-name + */ + +CreateKey.prototype['certificate-common-name'] = undefined; +/** + * Country name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-country + */ + +CreateKey.prototype['certificate-country'] = undefined; +/** + * Digest algorithm to be used for the certificate key signing. Currently, we support only \"sha256\" so we hide this option for CLI. + * @member {String} certificate-digest-algo + */ + +CreateKey.prototype['certificate-digest-algo'] = undefined; +/** + * Locality for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-locality + */ + +CreateKey.prototype['certificate-locality'] = undefined; +/** + * Organization name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-organization + */ + +CreateKey.prototype['certificate-organization'] = undefined; +/** + * Province name for the generated certificate. Relevant only for generate-self-signed-certificate. + * @member {String} certificate-province + */ + +CreateKey.prototype['certificate-province'] = undefined; +/** + * TTL in days for the generated certificate. Required only for generate-self-signed-certificate. + * @member {Number} certificate-ttl + */ + +CreateKey.prototype['certificate-ttl'] = undefined; +/** + * The csr config data in base64 encoding + * @member {String} conf-file-data + */ + +CreateKey.prototype['conf-file-data'] = undefined; +/** + * The customer fragment ID that will be used to create the key (if empty, the key will be created independently of a customer fragment) + * @member {String} customer-frg-id + */ + +CreateKey.prototype['customer-frg-id'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateKey.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateKey.prototype['description'] = undefined; +/** + * Whether to generate a self signed certificate with the key. If set, --certificate-ttl must be provided. + * @member {Boolean} generate-self-signed-certificate + */ + +CreateKey.prototype['generate-self-signed-certificate'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateKey.prototype['json'] = false; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateKey.prototype['metadata'] = undefined; +/** + * Key name + * @member {String} name + */ + +CreateKey.prototype['name'] = undefined; +/** + * The number of fragments that the item will be split into (not includes customer fragment) + * @member {Number} split-level + * @default 3 + */ + +CreateKey.prototype['split-level'] = 3; +/** + * List of the tags attached to this key + * @member {Array.} tag + */ + +CreateKey.prototype['tag'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateKey.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateKey.prototype['uid-token'] = undefined; +var _default = CreateKey; +exports["default"] = _default; + +/***/ }), + +/***/ 92036: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateKeyOutput model module. + * @module model/CreateKeyOutput + * @version 3.6.3 + */ +var CreateKeyOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateKeyOutput. + * @alias module:model/CreateKeyOutput + */ + function CreateKeyOutput() { + _classCallCheck(this, CreateKeyOutput); + + CreateKeyOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateKeyOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateKeyOutput} obj Optional instance to populate. + * @return {module:model/CreateKeyOutput} The populated CreateKeyOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateKeyOutput(); + + if (data.hasOwnProperty('display_id')) { + obj['display_id'] = _ApiClient["default"].convertToType(data['display_id'], 'String'); + } + + if (data.hasOwnProperty('fragment_results')) { + obj['fragment_results'] = _ApiClient["default"].convertToType(data['fragment_results'], ['Number']); + } + + if (data.hasOwnProperty('item_id')) { + obj['item_id'] = _ApiClient["default"].convertToType(data['item_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateKeyOutput; +}(); +/** + * @member {String} display_id + */ + + +CreateKeyOutput.prototype['display_id'] = undefined; +/** + * @member {Array.} fragment_results + */ + +CreateKeyOutput.prototype['fragment_results'] = undefined; +/** + * @member {Number} item_id + */ + +CreateKeyOutput.prototype['item_id'] = undefined; +var _default = CreateKeyOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 12279: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateLdapTarget model module. + * @module model/CreateLdapTarget + * @version 3.6.3 + */ +var CreateLdapTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateLdapTarget. + * @alias module:model/CreateLdapTarget + * @param bindDn {String} Bind DN + * @param bindDnPassword {String} Bind DN Password + * @param ldapUrl {String} LDAP Server URL + * @param name {String} Target name + */ + function CreateLdapTarget(bindDn, bindDnPassword, ldapUrl, name) { + _classCallCheck(this, CreateLdapTarget); + + CreateLdapTarget.initialize(this, bindDn, bindDnPassword, ldapUrl, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateLdapTarget, null, [{ + key: "initialize", + value: function initialize(obj, bindDn, bindDnPassword, ldapUrl, name) { + obj['bind-dn'] = bindDn; + obj['bind-dn-password'] = bindDnPassword; + obj['ldap-url'] = ldapUrl; + obj['name'] = name; + } + /** + * Constructs a CreateLdapTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateLdapTarget} obj Optional instance to populate. + * @return {module:model/CreateLdapTarget} The populated CreateLdapTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateLdapTarget(); + + if (data.hasOwnProperty('bind-dn')) { + obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); + } + + if (data.hasOwnProperty('bind-dn-password')) { + obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('ldap-ca-cert')) { + obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('ldap-url')) { + obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('server-type')) { + obj['server-type'] = _ApiClient["default"].convertToType(data['server-type'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('token-expiration')) { + obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateLdapTarget; +}(); +/** + * Bind DN + * @member {String} bind-dn + */ + + +CreateLdapTarget.prototype['bind-dn'] = undefined; +/** + * Bind DN Password + * @member {String} bind-dn-password + */ + +CreateLdapTarget.prototype['bind-dn-password'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateLdapTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateLdapTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateLdapTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateLdapTarget.prototype['key'] = undefined; +/** + * CA Certificate File Content + * @member {String} ldap-ca-cert + */ + +CreateLdapTarget.prototype['ldap-ca-cert'] = undefined; +/** + * LDAP Server URL + * @member {String} ldap-url + */ + +CreateLdapTarget.prototype['ldap-url'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateLdapTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateLdapTarget.prototype['name'] = undefined; +/** + * Set Ldap server type, Options:[OpenLDAP, ActiveDirectory]. Default is OpenLDAP + * @member {String} server-type + * @default 'OpenLDAP' + */ + +CreateLdapTarget.prototype['server-type'] = 'OpenLDAP'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateLdapTarget.prototype['token'] = undefined; +/** + * Token expiration + * @member {String} token-expiration + */ + +CreateLdapTarget.prototype['token-expiration'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateLdapTarget.prototype['uid-token'] = undefined; +var _default = CreateLdapTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 24309: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateLdapTargetOutput model module. + * @module model/CreateLdapTargetOutput + * @version 3.6.3 + */ +var CreateLdapTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateLdapTargetOutput. + * @alias module:model/CreateLdapTargetOutput + */ + function CreateLdapTargetOutput() { + _classCallCheck(this, CreateLdapTargetOutput); + + CreateLdapTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateLdapTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateLdapTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateLdapTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateLdapTargetOutput} The populated CreateLdapTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateLdapTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateLdapTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateLdapTargetOutput.prototype['target_id'] = undefined; +var _default = CreateLdapTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 91736: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateLinkedTarget model module. + * @module model/CreateLinkedTarget + * @version 3.6.3 + */ +var CreateLinkedTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateLinkedTarget. + * @alias module:model/CreateLinkedTarget + * @param name {String} Target name + */ + function CreateLinkedTarget(name) { + _classCallCheck(this, CreateLinkedTarget); + + CreateLinkedTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateLinkedTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateLinkedTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateLinkedTarget} obj Optional instance to populate. + * @return {module:model/CreateLinkedTarget} The populated CreateLinkedTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateLinkedTarget(); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('hosts')) { + obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('parent-target-name')) { + obj['parent-target-name'] = _ApiClient["default"].convertToType(data['parent-target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateLinkedTarget; +}(); +/** + * Description of the object + * @member {String} description + */ + + +CreateLinkedTarget.prototype['description'] = undefined; +/** + * A comma seperated list of server hosts and server descriptions joined by semicolon ';' (i.e. 'server-dev.com;My Dev server,server-prod.com;My Prod server description') + * @member {String} hosts + */ + +CreateLinkedTarget.prototype['hosts'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateLinkedTarget.prototype['json'] = false; +/** + * Target name + * @member {String} name + */ + +CreateLinkedTarget.prototype['name'] = undefined; +/** + * The parent Target name + * @member {String} parent-target-name + */ + +CreateLinkedTarget.prototype['parent-target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateLinkedTarget.prototype['token'] = undefined; +/** + * Specifies the hosts type, relevant only when working without parent target + * @member {String} type + */ + +CreateLinkedTarget.prototype['type'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateLinkedTarget.prototype['uid-token'] = undefined; +var _default = CreateLinkedTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 45297: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateLinkedTargetOutput model module. + * @module model/CreateLinkedTargetOutput + * @version 3.6.3 + */ +var CreateLinkedTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateLinkedTargetOutput. + * @alias module:model/CreateLinkedTargetOutput + */ + function CreateLinkedTargetOutput() { + _classCallCheck(this, CreateLinkedTargetOutput); + + CreateLinkedTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateLinkedTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateLinkedTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateLinkedTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateLinkedTargetOutput} The populated CreateLinkedTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateLinkedTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateLinkedTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateLinkedTargetOutput.prototype['target_id'] = undefined; +var _default = CreateLinkedTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 36798: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateNativeK8STarget model module. + * @module model/CreateNativeK8STarget + * @version 3.6.3 + */ +var CreateNativeK8STarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateNativeK8STarget. + * @alias module:model/CreateNativeK8STarget + * @param k8sClusterCaCert {String} K8S cluster CA certificate + * @param k8sClusterEndpoint {String} K8S cluster URL endpoint + * @param k8sClusterToken {String} K8S cluster Bearer token + * @param name {String} Target name + */ + function CreateNativeK8STarget(k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name) { + _classCallCheck(this, CreateNativeK8STarget); + + CreateNativeK8STarget.initialize(this, k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateNativeK8STarget, null, [{ + key: "initialize", + value: function initialize(obj, k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name) { + obj['k8s-cluster-ca-cert'] = k8sClusterCaCert; + obj['k8s-cluster-endpoint'] = k8sClusterEndpoint; + obj['k8s-cluster-token'] = k8sClusterToken; + obj['name'] = name; + } + /** + * Constructs a CreateNativeK8STarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateNativeK8STarget} obj Optional instance to populate. + * @return {module:model/CreateNativeK8STarget} The populated CreateNativeK8STarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateNativeK8STarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-auth-type')) { + obj['k8s-auth-type'] = _ApiClient["default"].convertToType(data['k8s-auth-type'], 'String'); + } + + if (data.hasOwnProperty('k8s-client-certificate')) { + obj['k8s-client-certificate'] = _ApiClient["default"].convertToType(data['k8s-client-certificate'], 'String'); + } + + if (data.hasOwnProperty('k8s-client-key')) { + obj['k8s-client-key'] = _ApiClient["default"].convertToType(data['k8s-client-key'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-ca-cert')) { + obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-endpoint')) { + obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-token')) { + obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-service-account')) { + obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + } + } + + return obj; + } + }]); + + return CreateNativeK8STarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateNativeK8STarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateNativeK8STarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateNativeK8STarget.prototype['json'] = false; +/** + * K8S auth type [token/certificate] + * @member {String} k8s-auth-type + * @default 'token' + */ + +CreateNativeK8STarget.prototype['k8s-auth-type'] = 'token'; +/** + * Content of the k8 client certificate (PEM format) in a Base64 format + * @member {String} k8s-client-certificate + */ + +CreateNativeK8STarget.prototype['k8s-client-certificate'] = undefined; +/** + * Content of the k8 client private key (PEM format) in a Base64 format + * @member {String} k8s-client-key + */ + +CreateNativeK8STarget.prototype['k8s-client-key'] = undefined; +/** + * K8S cluster CA certificate + * @member {String} k8s-cluster-ca-cert + * @default 'dummy_val' + */ + +CreateNativeK8STarget.prototype['k8s-cluster-ca-cert'] = 'dummy_val'; +/** + * K8S cluster URL endpoint + * @member {String} k8s-cluster-endpoint + * @default 'dummy_val' + */ + +CreateNativeK8STarget.prototype['k8s-cluster-endpoint'] = 'dummy_val'; +/** + * K8S cluster Bearer token + * @member {String} k8s-cluster-token + * @default 'dummy_val' + */ + +CreateNativeK8STarget.prototype['k8s-cluster-token'] = 'dummy_val'; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateNativeK8STarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateNativeK8STarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateNativeK8STarget.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateNativeK8STarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateNativeK8STarget.prototype['uid-token'] = undefined; +/** + * Use the GW's service account + * @member {Boolean} use-gw-service-account + */ + +CreateNativeK8STarget.prototype['use-gw-service-account'] = undefined; +var _default = CreateNativeK8STarget; +exports["default"] = _default; + +/***/ }), + +/***/ 15947: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateNativeK8STargetOutput model module. + * @module model/CreateNativeK8STargetOutput + * @version 3.6.3 + */ +var CreateNativeK8STargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateNativeK8STargetOutput. + * @alias module:model/CreateNativeK8STargetOutput + */ + function CreateNativeK8STargetOutput() { + _classCallCheck(this, CreateNativeK8STargetOutput); + + CreateNativeK8STargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateNativeK8STargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateNativeK8STargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateNativeK8STargetOutput} obj Optional instance to populate. + * @return {module:model/CreateNativeK8STargetOutput} The populated CreateNativeK8STargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateNativeK8STargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateNativeK8STargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateNativeK8STargetOutput.prototype['target_id'] = undefined; +var _default = CreateNativeK8STargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 18538: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateOidcApp model module. + * @module model/CreateOidcApp + * @version 3.6.3 + */ +var CreateOidcApp = /*#__PURE__*/function () { + /** + * Constructs a new CreateOidcApp. + * @alias module:model/CreateOidcApp + * @param name {String} OIDC application name + */ + function CreateOidcApp(name) { + _classCallCheck(this, CreateOidcApp); + + CreateOidcApp.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateOidcApp, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateOidcApp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateOidcApp} obj Optional instance to populate. + * @return {module:model/CreateOidcApp} The populated CreateOidcApp instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateOidcApp(); + + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('permission-assignment')) { + obj['permission-assignment'] = _ApiClient["default"].convertToType(data['permission-assignment'], 'String'); + } + + if (data.hasOwnProperty('public')) { + obj['public'] = _ApiClient["default"].convertToType(data['public'], 'Boolean'); + } + + if (data.hasOwnProperty('redirect-uris')) { + obj['redirect-uris'] = _ApiClient["default"].convertToType(data['redirect-uris'], 'String'); + } + + if (data.hasOwnProperty('scopes')) { + obj['scopes'] = _ApiClient["default"].convertToType(data['scopes'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateOidcApp; +}(); +/** + * for personal password manager + * @member {String} accessibility + * @default 'regular' + */ + + +CreateOidcApp.prototype['accessibility'] = 'regular'; +/** + * A comma separated list of allowed audiences + * @member {String} audience + */ + +CreateOidcApp.prototype['audience'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateOidcApp.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateOidcApp.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateOidcApp.prototype['json'] = false; +/** + * The name of a key that used to encrypt the OIDC application (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateOidcApp.prototype['key'] = undefined; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateOidcApp.prototype['metadata'] = undefined; +/** + * OIDC application name + * @member {String} name + */ + +CreateOidcApp.prototype['name'] = undefined; +/** + * A json string defining the access permission assignment for this app + * @member {String} permission-assignment + */ + +CreateOidcApp.prototype['permission-assignment'] = undefined; +/** + * Set to true if the app is public (cannot keep secrets) + * @member {Boolean} public + */ + +CreateOidcApp.prototype['public'] = undefined; +/** + * A comma separated list of allowed redirect uris + * @member {String} redirect-uris + */ + +CreateOidcApp.prototype['redirect-uris'] = undefined; +/** + * A comma separated list of allowed scopes + * @member {String} scopes + * @default 'openid' + */ + +CreateOidcApp.prototype['scopes'] = 'openid'; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +CreateOidcApp.prototype['tags'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateOidcApp.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateOidcApp.prototype['uid-token'] = undefined; +var _default = CreateOidcApp; +exports["default"] = _default; + +/***/ }), + +/***/ 41695: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateOidcAppOutput model module. + * @module model/CreateOidcAppOutput + * @version 3.6.3 + */ +var CreateOidcAppOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateOidcAppOutput. + * @alias module:model/CreateOidcAppOutput + */ + function CreateOidcAppOutput() { + _classCallCheck(this, CreateOidcAppOutput); + + CreateOidcAppOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateOidcAppOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateOidcAppOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateOidcAppOutput} obj Optional instance to populate. + * @return {module:model/CreateOidcAppOutput} The populated CreateOidcAppOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateOidcAppOutput(); + + if (data.hasOwnProperty('client_id')) { + obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String'); + } + + if (data.hasOwnProperty('client_secret')) { + obj['client_secret'] = _ApiClient["default"].convertToType(data['client_secret'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateOidcAppOutput; +}(); +/** + * @member {String} client_id + */ + + +CreateOidcAppOutput.prototype['client_id'] = undefined; +/** + * @member {String} client_secret + */ + +CreateOidcAppOutput.prototype['client_secret'] = undefined; +/** + * @member {String} name + */ + +CreateOidcAppOutput.prototype['name'] = undefined; +var _default = CreateOidcAppOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 10515: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreatePKICertIssuer model module. + * @module model/CreatePKICertIssuer + * @version 3.6.3 + */ +var CreatePKICertIssuer = /*#__PURE__*/function () { + /** + * Constructs a new CreatePKICertIssuer. + * @alias module:model/CreatePKICertIssuer + * @param name {String} PKI certificate issuer name + * @param signerKeyName {String} A key to sign the certificate with, required in Private CA mode + * @param ttl {Number} The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs + */ + function CreatePKICertIssuer(name, signerKeyName, ttl) { + _classCallCheck(this, CreatePKICertIssuer); + + CreatePKICertIssuer.initialize(this, name, signerKeyName, ttl); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreatePKICertIssuer, null, [{ + key: "initialize", + value: function initialize(obj, name, signerKeyName, ttl) { + obj['name'] = name; + obj['signer-key-name'] = signerKeyName; + obj['ttl'] = ttl; + } + /** + * Constructs a CreatePKICertIssuer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreatePKICertIssuer} obj Optional instance to populate. + * @return {module:model/CreatePKICertIssuer} The populated CreatePKICertIssuer instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreatePKICertIssuer(); + + if (data.hasOwnProperty('allow-any-name')) { + obj['allow-any-name'] = _ApiClient["default"].convertToType(data['allow-any-name'], 'Boolean'); + } + + if (data.hasOwnProperty('allow-copy-ext-from-csr')) { + obj['allow-copy-ext-from-csr'] = _ApiClient["default"].convertToType(data['allow-copy-ext-from-csr'], 'Boolean'); + } + + if (data.hasOwnProperty('allow-subdomains')) { + obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); + } + + if (data.hasOwnProperty('allowed-domains')) { + obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], 'String'); + } + + if (data.hasOwnProperty('allowed-extra-extensions')) { + obj['allowed-extra-extensions'] = _ApiClient["default"].convertToType(data['allowed-extra-extensions'], 'String'); + } + + if (data.hasOwnProperty('allowed-uri-sans')) { + obj['allowed-uri-sans'] = _ApiClient["default"].convertToType(data['allowed-uri-sans'], 'String'); + } + + if (data.hasOwnProperty('ca-target')) { + obj['ca-target'] = _ApiClient["default"].convertToType(data['ca-target'], 'String'); + } + + if (data.hasOwnProperty('client-flag')) { + obj['client-flag'] = _ApiClient["default"].convertToType(data['client-flag'], 'Boolean'); + } + + if (data.hasOwnProperty('code-signing-flag')) { + obj['code-signing-flag'] = _ApiClient["default"].convertToType(data['code-signing-flag'], 'Boolean'); + } + + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); + } + + if (data.hasOwnProperty('create-private-crl')) { + obj['create-private-crl'] = _ApiClient["default"].convertToType(data['create-private-crl'], 'Boolean'); + } + + if (data.hasOwnProperty('create-public-crl')) { + obj['create-public-crl'] = _ApiClient["default"].convertToType(data['create-public-crl'], 'Boolean'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('destination-path')) { + obj['destination-path'] = _ApiClient["default"].convertToType(data['destination-path'], 'String'); + } + + if (data.hasOwnProperty('expiration-event-in')) { + obj['expiration-event-in'] = _ApiClient["default"].convertToType(data['expiration-event-in'], ['String']); + } + + if (data.hasOwnProperty('gw-cluster-url')) { + obj['gw-cluster-url'] = _ApiClient["default"].convertToType(data['gw-cluster-url'], 'String'); + } + + if (data.hasOwnProperty('is-ca')) { + obj['is-ca'] = _ApiClient["default"].convertToType(data['is-ca'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-usage')) { + obj['key-usage'] = _ApiClient["default"].convertToType(data['key-usage'], 'String'); + } + + if (data.hasOwnProperty('locality')) { + obj['locality'] = _ApiClient["default"].convertToType(data['locality'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('not-enforce-hostnames')) { + obj['not-enforce-hostnames'] = _ApiClient["default"].convertToType(data['not-enforce-hostnames'], 'Boolean'); + } + + if (data.hasOwnProperty('not-require-cn')) { + obj['not-require-cn'] = _ApiClient["default"].convertToType(data['not-require-cn'], 'Boolean'); + } + + if (data.hasOwnProperty('organizational-units')) { + obj['organizational-units'] = _ApiClient["default"].convertToType(data['organizational-units'], 'String'); + } + + if (data.hasOwnProperty('organizations')) { + obj['organizations'] = _ApiClient["default"].convertToType(data['organizations'], 'String'); + } + + if (data.hasOwnProperty('postal-code')) { + obj['postal-code'] = _ApiClient["default"].convertToType(data['postal-code'], 'String'); + } + + if (data.hasOwnProperty('protect-certificates')) { + obj['protect-certificates'] = _ApiClient["default"].convertToType(data['protect-certificates'], 'Boolean'); + } + + if (data.hasOwnProperty('province')) { + obj['province'] = _ApiClient["default"].convertToType(data['province'], 'String'); + } + + if (data.hasOwnProperty('server-flag')) { + obj['server-flag'] = _ApiClient["default"].convertToType(data['server-flag'], 'Boolean'); + } + + if (data.hasOwnProperty('signer-key-name')) { + obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); + } + + if (data.hasOwnProperty('street-address')) { + obj['street-address'] = _ApiClient["default"].convertToType(data['street-address'], 'String'); + } + + if (data.hasOwnProperty('tag')) { + obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreatePKICertIssuer; +}(); +/** + * If set, clients can request certificates for any CN + * @member {Boolean} allow-any-name + */ + + +CreatePKICertIssuer.prototype['allow-any-name'] = undefined; +/** + * If set, will allow copying the extra extensions from the csr file (if given) + * @member {Boolean} allow-copy-ext-from-csr + */ + +CreatePKICertIssuer.prototype['allow-copy-ext-from-csr'] = undefined; +/** + * If set, clients can request certificates for subdomains and wildcard subdomains of the allowed domains + * @member {Boolean} allow-subdomains + */ + +CreatePKICertIssuer.prototype['allow-subdomains'] = undefined; +/** + * A list of the allowed domains that clients can request to be included in the certificate (in a comma-delimited list) + * @member {String} allowed-domains + */ + +CreatePKICertIssuer.prototype['allowed-domains'] = undefined; +/** + * A json string containing the allowed extra extensions for the pki cert issuer + * @member {String} allowed-extra-extensions + */ + +CreatePKICertIssuer.prototype['allowed-extra-extensions'] = undefined; +/** + * A list of the allowed URIs that clients can request to be included in the certificate as part of the URI Subject Alternative Names (in a comma-delimited list) + * @member {String} allowed-uri-sans + */ + +CreatePKICertIssuer.prototype['allowed-uri-sans'] = undefined; +/** + * The name of an existing CA target to attach this PKI Certificate Issuer to, required in Public CA mode + * @member {String} ca-target + */ + +CreatePKICertIssuer.prototype['ca-target'] = undefined; +/** + * If set, certificates will be flagged for client auth use + * @member {Boolean} client-flag + */ + +CreatePKICertIssuer.prototype['client-flag'] = undefined; +/** + * If set, certificates will be flagged for code signing use + * @member {Boolean} code-signing-flag + */ + +CreatePKICertIssuer.prototype['code-signing-flag'] = undefined; +/** + * A comma-separated list of countries that will be set in the issued certificate + * @member {String} country + */ + +CreatePKICertIssuer.prototype['country'] = undefined; +/** + * Set this to allow the issuer will expose a CRL endpoint in the Gateway + * @member {Boolean} create-private-crl + */ + +CreatePKICertIssuer.prototype['create-private-crl'] = undefined; +/** + * Set this to allow the cert issuer will expose a public CRL endpoint + * @member {Boolean} create-public-crl + */ + +CreatePKICertIssuer.prototype['create-public-crl'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreatePKICertIssuer.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreatePKICertIssuer.prototype['description'] = undefined; +/** + * A path in which to save generated certificates + * @member {String} destination-path + */ + +CreatePKICertIssuer.prototype['destination-path'] = undefined; +/** + * How many days before the expiration of the certificate would you like to be notified. + * @member {Array.} expiration-event-in + */ + +CreatePKICertIssuer.prototype['expiration-event-in'] = undefined; +/** + * The GW cluster URL to issue the certificate from, required in Public CA mode or to allow CRLs on private CA + * @member {String} gw-cluster-url + */ + +CreatePKICertIssuer.prototype['gw-cluster-url'] = undefined; +/** + * If set, the basic constraints extension will be added to certificate + * @member {Boolean} is-ca + */ + +CreatePKICertIssuer.prototype['is-ca'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreatePKICertIssuer.prototype['json'] = false; +/** + * key-usage + * @member {String} key-usage + * @default 'DigitalSignature,KeyAgreement,KeyEncipherment' + */ + +CreatePKICertIssuer.prototype['key-usage'] = 'DigitalSignature,KeyAgreement,KeyEncipherment'; +/** + * A comma-separated list of localities that will be set in the issued certificate + * @member {String} locality + */ + +CreatePKICertIssuer.prototype['locality'] = undefined; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreatePKICertIssuer.prototype['metadata'] = undefined; +/** + * PKI certificate issuer name + * @member {String} name + */ + +CreatePKICertIssuer.prototype['name'] = undefined; +/** + * If set, any names are allowed for CN and SANs in the certificate and not only a valid host name + * @member {Boolean} not-enforce-hostnames + */ + +CreatePKICertIssuer.prototype['not-enforce-hostnames'] = undefined; +/** + * If set, clients can request certificates without a CN + * @member {Boolean} not-require-cn + */ + +CreatePKICertIssuer.prototype['not-require-cn'] = undefined; +/** + * A comma-separated list of organizational units (OU) that will be set in the issued certificate + * @member {String} organizational-units + */ + +CreatePKICertIssuer.prototype['organizational-units'] = undefined; +/** + * A comma-separated list of organizations (O) that will be set in the issued certificate + * @member {String} organizations + */ + +CreatePKICertIssuer.prototype['organizations'] = undefined; +/** + * A comma-separated list of postal codes that will be set in the issued certificate + * @member {String} postal-code + */ + +CreatePKICertIssuer.prototype['postal-code'] = undefined; +/** + * Whether to protect generated certificates from deletion + * @member {Boolean} protect-certificates + */ + +CreatePKICertIssuer.prototype['protect-certificates'] = undefined; +/** + * A comma-separated list of provinces that will be set in the issued certificate + * @member {String} province + */ + +CreatePKICertIssuer.prototype['province'] = undefined; +/** + * If set, certificates will be flagged for server auth use + * @member {Boolean} server-flag + */ + +CreatePKICertIssuer.prototype['server-flag'] = undefined; +/** + * A key to sign the certificate with, required in Private CA mode + * @member {String} signer-key-name + * @default 'dummy_signer_key' + */ + +CreatePKICertIssuer.prototype['signer-key-name'] = 'dummy_signer_key'; +/** + * A comma-separated list of street addresses that will be set in the issued certificate + * @member {String} street-address + */ + +CreatePKICertIssuer.prototype['street-address'] = undefined; +/** + * List of the tags attached to this key + * @member {Array.} tag + */ + +CreatePKICertIssuer.prototype['tag'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreatePKICertIssuer.prototype['token'] = undefined; +/** + * The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs + * @member {Number} ttl + */ + +CreatePKICertIssuer.prototype['ttl'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreatePKICertIssuer.prototype['uid-token'] = undefined; +var _default = CreatePKICertIssuer; +exports["default"] = _default; + +/***/ }), + +/***/ 70178: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreatePKICertIssuerOutput model module. + * @module model/CreatePKICertIssuerOutput + * @version 3.6.3 + */ +var CreatePKICertIssuerOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreatePKICertIssuerOutput. + * @alias module:model/CreatePKICertIssuerOutput + */ + function CreatePKICertIssuerOutput() { + _classCallCheck(this, CreatePKICertIssuerOutput); + + CreatePKICertIssuerOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreatePKICertIssuerOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreatePKICertIssuerOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreatePKICertIssuerOutput} obj Optional instance to populate. + * @return {module:model/CreatePKICertIssuerOutput} The populated CreatePKICertIssuerOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreatePKICertIssuerOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreatePKICertIssuerOutput; +}(); +/** + * @member {String} name + */ + + +CreatePKICertIssuerOutput.prototype['name'] = undefined; +var _default = CreatePKICertIssuerOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 17729: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreatePingTarget model module. + * @module model/CreatePingTarget + * @version 3.6.3 + */ +var CreatePingTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreatePingTarget. + * @alias module:model/CreatePingTarget + * @param name {String} Target name + */ + function CreatePingTarget(name) { + _classCallCheck(this, CreatePingTarget); + + CreatePingTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreatePingTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreatePingTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreatePingTarget} obj Optional instance to populate. + * @return {module:model/CreatePingTarget} The populated CreatePingTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreatePingTarget(); + + if (data.hasOwnProperty('administrative-port')) { + obj['administrative-port'] = _ApiClient["default"].convertToType(data['administrative-port'], 'String'); + } + + if (data.hasOwnProperty('authorization-port')) { + obj['authorization-port'] = _ApiClient["default"].convertToType(data['authorization-port'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('ping-url')) { + obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); + } + + if (data.hasOwnProperty('privileged-user')) { + obj['privileged-user'] = _ApiClient["default"].convertToType(data['privileged-user'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreatePingTarget; +}(); +/** + * Ping Federate administrative port + * @member {String} administrative-port + * @default '9999' + */ + + +CreatePingTarget.prototype['administrative-port'] = '9999'; +/** + * Ping Federate authorization port + * @member {String} authorization-port + * @default '9031' + */ + +CreatePingTarget.prototype['authorization-port'] = '9031'; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreatePingTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreatePingTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreatePingTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreatePingTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreatePingTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreatePingTarget.prototype['name'] = undefined; +/** + * Ping Federate privileged user password + * @member {String} password + */ + +CreatePingTarget.prototype['password'] = undefined; +/** + * Ping URL + * @member {String} ping-url + */ + +CreatePingTarget.prototype['ping-url'] = undefined; +/** + * Ping Federate privileged user + * @member {String} privileged-user + */ + +CreatePingTarget.prototype['privileged-user'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreatePingTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreatePingTarget.prototype['uid-token'] = undefined; +var _default = CreatePingTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 83860: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreatePingTargetOutput model module. + * @module model/CreatePingTargetOutput + * @version 3.6.3 + */ +var CreatePingTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreatePingTargetOutput. + * @alias module:model/CreatePingTargetOutput + */ + function CreatePingTargetOutput() { + _classCallCheck(this, CreatePingTargetOutput); + + CreatePingTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreatePingTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreatePingTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreatePingTargetOutput} obj Optional instance to populate. + * @return {module:model/CreatePingTargetOutput} The populated CreatePingTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreatePingTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreatePingTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreatePingTargetOutput.prototype['target_id'] = undefined; +var _default = CreatePingTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 28099: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateRabbitMQTarget model module. + * @module model/CreateRabbitMQTarget + * @version 3.6.3 + */ +var CreateRabbitMQTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateRabbitMQTarget. + * @alias module:model/CreateRabbitMQTarget + * @param name {String} Target name + */ + function CreateRabbitMQTarget(name) { + _classCallCheck(this, CreateRabbitMQTarget); + + CreateRabbitMQTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateRabbitMQTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateRabbitMQTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateRabbitMQTarget} obj Optional instance to populate. + * @return {module:model/CreateRabbitMQTarget} The populated CreateRabbitMQTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateRabbitMQTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-server-password')) { + obj['rabbitmq-server-password'] = _ApiClient["default"].convertToType(data['rabbitmq-server-password'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-server-uri')) { + obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-server-user')) { + obj['rabbitmq-server-user'] = _ApiClient["default"].convertToType(data['rabbitmq-server-user'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateRabbitMQTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateRabbitMQTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateRabbitMQTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateRabbitMQTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateRabbitMQTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateRabbitMQTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateRabbitMQTarget.prototype['name'] = undefined; +/** + * @member {String} rabbitmq-server-password + */ + +CreateRabbitMQTarget.prototype['rabbitmq-server-password'] = undefined; +/** + * @member {String} rabbitmq-server-uri + */ + +CreateRabbitMQTarget.prototype['rabbitmq-server-uri'] = undefined; +/** + * @member {String} rabbitmq-server-user + */ + +CreateRabbitMQTarget.prototype['rabbitmq-server-user'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateRabbitMQTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateRabbitMQTarget.prototype['uid-token'] = undefined; +var _default = CreateRabbitMQTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 64274: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateRabbitMQTargetOutput model module. + * @module model/CreateRabbitMQTargetOutput + * @version 3.6.3 + */ +var CreateRabbitMQTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateRabbitMQTargetOutput. + * @alias module:model/CreateRabbitMQTargetOutput + */ + function CreateRabbitMQTargetOutput() { + _classCallCheck(this, CreateRabbitMQTargetOutput); + + CreateRabbitMQTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateRabbitMQTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateRabbitMQTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateRabbitMQTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateRabbitMQTargetOutput} The populated CreateRabbitMQTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateRabbitMQTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateRabbitMQTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateRabbitMQTargetOutput.prototype['target_id'] = undefined; +var _default = CreateRabbitMQTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 36904: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateRole model module. + * @module model/CreateRole + * @version 3.6.3 + */ +var CreateRole = /*#__PURE__*/function () { + /** + * Constructs a new CreateRole. + * @alias module:model/CreateRole + * @param name {String} Role name + */ + function CreateRole(name) { + _classCallCheck(this, CreateRole); + + CreateRole.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateRole, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateRole from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateRole} obj Optional instance to populate. + * @return {module:model/CreateRole} The populated CreateRole instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateRole(); + + if (data.hasOwnProperty('analytics-access')) { + obj['analytics-access'] = _ApiClient["default"].convertToType(data['analytics-access'], 'String'); + } + + if (data.hasOwnProperty('audit-access')) { + obj['audit-access'] = _ApiClient["default"].convertToType(data['audit-access'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('event-center-access')) { + obj['event-center-access'] = _ApiClient["default"].convertToType(data['event-center-access'], 'String'); + } + + if (data.hasOwnProperty('event-forwarders-access')) { + obj['event-forwarders-access'] = _ApiClient["default"].convertToType(data['event-forwarders-access'], 'String'); + } + + if (data.hasOwnProperty('gw-analytics-access')) { + obj['gw-analytics-access'] = _ApiClient["default"].convertToType(data['gw-analytics-access'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('sra-reports-access')) { + obj['sra-reports-access'] = _ApiClient["default"].convertToType(data['sra-reports-access'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('usage-reports-access')) { + obj['usage-reports-access'] = _ApiClient["default"].convertToType(data['usage-reports-access'], 'String'); + } + } + + return obj; + } + }]); + + return CreateRole; +}(); +/** + * Allow this role to view analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. + * @member {String} analytics-access + */ + + +CreateRole.prototype['analytics-access'] = undefined; +/** + * Allow this role to view audit logs. Currently only 'none', 'own' and 'all' values are supported, allowing associated auth methods to view audit logs produced by the same auth methods. + * @member {String} audit-access + */ + +CreateRole.prototype['audit-access'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateRole.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateRole.prototype['description'] = undefined; +/** + * Allow this role to view Event Center. Currently only 'none', 'own' and 'all' values are supported + * @member {String} event-center-access + */ + +CreateRole.prototype['event-center-access'] = undefined; +/** + * Allow this role to manage Event Forwarders. Currently only 'none' and 'all' values are supported. + * @member {String} event-forwarders-access + */ + +CreateRole.prototype['event-forwarders-access'] = undefined; +/** + * Allow this role to view gw analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. + * @member {String} gw-analytics-access + */ + +CreateRole.prototype['gw-analytics-access'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateRole.prototype['json'] = false; +/** + * Role name + * @member {String} name + */ + +CreateRole.prototype['name'] = undefined; +/** + * Allow this role to view SRA Clusters. Currently only 'none', 'own', 'all' values are supported. + * @member {String} sra-reports-access + */ + +CreateRole.prototype['sra-reports-access'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateRole.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateRole.prototype['uid-token'] = undefined; +/** + * Allow this role to view Usage Report. Currently only 'none' and 'all' values are supported. + * @member {String} usage-reports-access + */ + +CreateRole.prototype['usage-reports-access'] = undefined; +var _default = CreateRole; +exports["default"] = _default; + +/***/ }), + +/***/ 41569: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateRoleAuthMethodAssocOutput model module. + * @module model/CreateRoleAuthMethodAssocOutput + * @version 3.6.3 + */ +var CreateRoleAuthMethodAssocOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateRoleAuthMethodAssocOutput. + * CreateRoleAuthMethodAssocOutput defines output of CreateRoleAuthMethodAssoc operation. + * @alias module:model/CreateRoleAuthMethodAssocOutput + */ + function CreateRoleAuthMethodAssocOutput() { + _classCallCheck(this, CreateRoleAuthMethodAssocOutput); + + CreateRoleAuthMethodAssocOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateRoleAuthMethodAssocOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateRoleAuthMethodAssocOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateRoleAuthMethodAssocOutput} obj Optional instance to populate. + * @return {module:model/CreateRoleAuthMethodAssocOutput} The populated CreateRoleAuthMethodAssocOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateRoleAuthMethodAssocOutput(); + + if (data.hasOwnProperty('assoc_id')) { + obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateRoleAuthMethodAssocOutput; +}(); +/** + * @member {String} assoc_id + */ + + +CreateRoleAuthMethodAssocOutput.prototype['assoc_id'] = undefined; +var _default = CreateRoleAuthMethodAssocOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 25203: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateRotatedSecret model module. + * @module model/CreateRotatedSecret + * @version 3.6.3 + */ +var CreateRotatedSecret = /*#__PURE__*/function () { + /** + * Constructs a new CreateRotatedSecret. + * createRotatedSecret is a command that creates a rotated secret [Deprecated: Use rotated-secret-create commands] + * @alias module:model/CreateRotatedSecret + * @param name {String} Secret name + * @param rotatorType {String} Rotator Type + * @param targetName {String} Target name + */ + function CreateRotatedSecret(name, rotatorType, targetName) { + _classCallCheck(this, CreateRotatedSecret); + + CreateRotatedSecret.initialize(this, name, rotatorType, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateRotatedSecret, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } + /** + * Constructs a CreateRotatedSecret from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateRotatedSecret} obj Optional instance to populate. + * @return {module:model/CreateRotatedSecret} The populated CreateRotatedSecret instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateRotatedSecret(); + + if (data.hasOwnProperty('ProviderType')) { + obj['ProviderType'] = _ApiClient["default"].convertToType(data['ProviderType'], 'String'); + } + + if (data.hasOwnProperty('api-id')) { + obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); + } + + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + } + + if (data.hasOwnProperty('application-id')) { + obj['application-id'] = _ApiClient["default"].convertToType(data['application-id'], 'String'); + } + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('aws-region')) { + obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); + } + + if (data.hasOwnProperty('custom-payload')) { + obj['custom-payload'] = _ApiClient["default"].convertToType(data['custom-payload'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } + + if (data.hasOwnProperty('gcp-service-account-email')) { + obj['gcp-service-account-email'] = _ApiClient["default"].convertToType(data['gcp-service-account-email'], 'String'); + } + + if (data.hasOwnProperty('gcp-service-account-key-id')) { + obj['gcp-service-account-key-id'] = _ApiClient["default"].convertToType(data['gcp-service-account-key-id'], 'String'); + } + + if (data.hasOwnProperty('grace-rotation')) { + obj['grace-rotation'] = _ApiClient["default"].convertToType(data['grace-rotation'], 'String'); + } + + if (data.hasOwnProperty('host-provider')) { + obj['host-provider'] = _ApiClient["default"].convertToType(data['host-provider'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-creds-type')) { + obj['rotator-creds-type'] = _ApiClient["default"].convertToType(data['rotator-creds-type'], 'String'); + } + + if (data.hasOwnProperty('rotator-custom-cmd')) { + obj['rotator-custom-cmd'] = _ApiClient["default"].convertToType(data['rotator-custom-cmd'], 'String'); + } + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + + if (data.hasOwnProperty('same-password')) { + obj['same-password'] = _ApiClient["default"].convertToType(data['same-password'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); + } + + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } + + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('ssh-password')) { + obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); + } + + if (data.hasOwnProperty('ssh-username')) { + obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); + } + + if (data.hasOwnProperty('storage-account-key-name')) { + obj['storage-account-key-name'] = _ApiClient["default"].convertToType(data['storage-account-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target')) { + obj['target'] = _ApiClient["default"].convertToType(data['target'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); + } + + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); + } + } + + return obj; + } + }]); + + return CreateRotatedSecret; +}(); +/** + * @member {String} ProviderType + */ + + +CreateRotatedSecret.prototype['ProviderType'] = undefined; +/** + * API ID to rotate (relevant only for rotator-type=api-key) + * @member {String} api-id + */ + +CreateRotatedSecret.prototype['api-id'] = undefined; +/** + * API key to rotate (relevant only for rotator-type=api-key) + * @member {String} api-key + */ + +CreateRotatedSecret.prototype['api-key'] = undefined; +/** + * ApplicationId (used in azure) + * @member {String} application-id + */ + +CreateRotatedSecret.prototype['application-id'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + +CreateRotatedSecret.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +CreateRotatedSecret.prototype['auto-rotate'] = undefined; +/** + * Aws Region (relevant only for aws) + * @member {String} aws-region + * @default 'us-east-2' + */ + +CreateRotatedSecret.prototype['aws-region'] = 'us-east-2'; +/** + * Secret payload to be sent with rotation request (relevant only for rotator-type=custom) + * @member {String} custom-payload + */ + +CreateRotatedSecret.prototype['custom-payload'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateRotatedSecret.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateRotatedSecret.prototype['description'] = undefined; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ + +CreateRotatedSecret.prototype['gcp-key'] = undefined; +/** + * The email of the gcp service account to rotate + * @member {String} gcp-service-account-email + */ + +CreateRotatedSecret.prototype['gcp-service-account-email'] = undefined; +/** + * The key id of the gcp service account to rotate + * @member {String} gcp-service-account-key-id + */ + +CreateRotatedSecret.prototype['gcp-service-account-key-id'] = undefined; +/** + * Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false] + * @member {String} grace-rotation + */ + +CreateRotatedSecret.prototype['grace-rotation'] = undefined; +/** + * Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret + * @member {String} host-provider + * @default 'explicit' + */ + +CreateRotatedSecret.prototype['host-provider'] = 'explicit'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateRotatedSecret.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateRotatedSecret.prototype['key'] = undefined; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateRotatedSecret.prototype['metadata'] = undefined; +/** + * Secret name + * @member {String} name + */ + +CreateRotatedSecret.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +CreateRotatedSecret.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +CreateRotatedSecret.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +CreateRotatedSecret.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ + +CreateRotatedSecret.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC. Default rotation-hour is 14:00 + * @member {Number} rotation-hour + */ + +CreateRotatedSecret.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +CreateRotatedSecret.prototype['rotation-interval'] = undefined; +/** + * @member {String} rotator-creds-type + */ + +CreateRotatedSecret.prototype['rotator-creds-type'] = undefined; +/** + * Custom rotation command (relevant only for ssh target) + * @member {String} rotator-custom-cmd + */ + +CreateRotatedSecret.prototype['rotator-custom-cmd'] = undefined; +/** + * Rotator Type + * @member {String} rotator-type + */ + +CreateRotatedSecret.prototype['rotator-type'] = undefined; +/** + * Rotate same password for each host from the Linked Target (relevant only for Linked Target) + * @member {String} same-password + */ + +CreateRotatedSecret.prototype['same-password'] = undefined; +/** + * Allow providing external user for a domain users (relevant only for rdp) + * @member {Boolean} secure-access-allow-external-user + * @default false + */ + +CreateRotatedSecret.prototype['secure-access-allow-external-user'] = false; +/** + * The AWS account id (relevant only for aws) + * @member {String} secure-access-aws-account-id + */ + +CreateRotatedSecret.prototype['secure-access-aws-account-id'] = undefined; +/** + * The AWS native cli + * @member {Boolean} secure-access-aws-native-cli + */ + +CreateRotatedSecret.prototype['secure-access-aws-native-cli'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +CreateRotatedSecret.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ + +CreateRotatedSecret.prototype['secure-access-db-name'] = undefined; +/** + * The db schema (relevant only for mssql or postgresql) + * @member {String} secure-access-db-schema + */ + +CreateRotatedSecret.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +CreateRotatedSecret.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +CreateRotatedSecret.prototype['secure-access-host'] = undefined; +/** + * Required when the Dynamic Secret is used for a domain user (relevant only for RDP Dynamic-Secret) + * @member {String} secure-access-rdp-domain + */ + +CreateRotatedSecret.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username (relevant only for rdp) + * @member {String} secure-access-rdp-user + */ + +CreateRotatedSecret.prototype['secure-access-rdp-user'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ + +CreateRotatedSecret.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +CreateRotatedSecret.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion (relevant only for aws or azure) + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +CreateRotatedSecret.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion (relevant only for aws or azure) + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +CreateRotatedSecret.prototype['secure-access-web-proxy'] = false; +/** + * Deprecated: use RotatedPassword + * @member {String} ssh-password + */ + +CreateRotatedSecret.prototype['ssh-password'] = undefined; +/** + * Deprecated: use RotatedUser + * @member {String} ssh-username + */ + +CreateRotatedSecret.prototype['ssh-username'] = undefined; +/** + * The name of the storage account key to rotate [key1/key2/kerb1/kerb2] (relevat to azure-storage-account) + * @member {String} storage-account-key-name + */ + +CreateRotatedSecret.prototype['storage-account-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +CreateRotatedSecret.prototype['tags'] = undefined; +/** + * A list of linked targets to be associated, Relevant only for Secure Remote Access for ssh cert issuer and ldap rotated secret, To specify multiple targets use argument multiple times + * @member {Array.} target + */ + +CreateRotatedSecret.prototype['target'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +CreateRotatedSecret.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateRotatedSecret.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateRotatedSecret.prototype['uid-token'] = undefined; +/** + * LDAP User Attribute, Default value \"cn\" + * @member {String} user-attribute + * @default 'cn' + */ + +CreateRotatedSecret.prototype['user-attribute'] = 'cn'; +/** + * LDAP User Base DN + * @member {String} user-dn + */ + +CreateRotatedSecret.prototype['user-dn'] = undefined; +var _default = CreateRotatedSecret; +exports["default"] = _default; + +/***/ }), + +/***/ 89634: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateRotatedSecretOutput model module. + * @module model/CreateRotatedSecretOutput + * @version 3.6.3 + */ +var CreateRotatedSecretOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateRotatedSecretOutput. + * @alias module:model/CreateRotatedSecretOutput + */ + function CreateRotatedSecretOutput() { + _classCallCheck(this, CreateRotatedSecretOutput); + + CreateRotatedSecretOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateRotatedSecretOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateRotatedSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateRotatedSecretOutput} obj Optional instance to populate. + * @return {module:model/CreateRotatedSecretOutput} The populated CreateRotatedSecretOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateRotatedSecretOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateRotatedSecretOutput; +}(); +/** + * @member {String} name + */ + + +CreateRotatedSecretOutput.prototype['name'] = undefined; +var _default = CreateRotatedSecretOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 1985: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateSSHCertIssuer model module. + * @module model/CreateSSHCertIssuer + * @version 3.6.3 + */ +var CreateSSHCertIssuer = /*#__PURE__*/function () { + /** + * Constructs a new CreateSSHCertIssuer. + * @alias module:model/CreateSSHCertIssuer + * @param allowedUsers {String} Users allowed to fetch the certificate, e.g root,ubuntu + * @param name {String} SSH certificate issuer name + * @param signerKeyName {String} A key to sign the certificate with + * @param ttl {Number} The requested Time To Live for the certificate, in seconds + */ + function CreateSSHCertIssuer(allowedUsers, name, signerKeyName, ttl) { + _classCallCheck(this, CreateSSHCertIssuer); + + CreateSSHCertIssuer.initialize(this, allowedUsers, name, signerKeyName, ttl); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateSSHCertIssuer, null, [{ + key: "initialize", + value: function initialize(obj, allowedUsers, name, signerKeyName, ttl) { + obj['allowed-users'] = allowedUsers; + obj['name'] = name; + obj['signer-key-name'] = signerKeyName; + obj['ttl'] = ttl; + } + /** + * Constructs a CreateSSHCertIssuer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateSSHCertIssuer} obj Optional instance to populate. + * @return {module:model/CreateSSHCertIssuer} The populated CreateSSHCertIssuer instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateSSHCertIssuer(); + + if (data.hasOwnProperty('ProviderType')) { + obj['ProviderType'] = _ApiClient["default"].convertToType(data['ProviderType'], 'String'); + } + + if (data.hasOwnProperty('allowed-users')) { + obj['allowed-users'] = _ApiClient["default"].convertToType(data['allowed-users'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('extensions')) { + obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('host-provider')) { + obj['host-provider'] = _ApiClient["default"].convertToType(data['host-provider'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('principals')) { + obj['principals'] = _ApiClient["default"].convertToType(data['principals'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-api')) { + obj['secure-access-bastion-api'] = _ApiClient["default"].convertToType(data['secure-access-bastion-api'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-ssh')) { + obj['secure-access-bastion-ssh'] = _ApiClient["default"].convertToType(data['secure-access-bastion-ssh'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-ssh-creds-user')) { + obj['secure-access-ssh-creds-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds-user'], 'String'); + } + + if (data.hasOwnProperty('secure-access-use-internal-bastion')) { + obj['secure-access-use-internal-bastion'] = _ApiClient["default"].convertToType(data['secure-access-use-internal-bastion'], 'Boolean'); + } + + if (data.hasOwnProperty('signer-key-name')) { + obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); + } + + if (data.hasOwnProperty('tag')) { + obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + } + + if (data.hasOwnProperty('target')) { + obj['target'] = _ApiClient["default"].convertToType(data['target'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateSSHCertIssuer; +}(); +/** + * @member {String} ProviderType + */ + + +CreateSSHCertIssuer.prototype['ProviderType'] = undefined; +/** + * Users allowed to fetch the certificate, e.g root,ubuntu + * @member {String} allowed-users + */ + +CreateSSHCertIssuer.prototype['allowed-users'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateSSHCertIssuer.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateSSHCertIssuer.prototype['description'] = undefined; +/** + * Signed certificates with extensions, e.g permit-port-forwarding=\\\"\\\" + * @member {Object.} extensions + */ + +CreateSSHCertIssuer.prototype['extensions'] = undefined; +/** + * Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret + * @member {String} host-provider + * @default 'explicit' + */ + +CreateSSHCertIssuer.prototype['host-provider'] = 'explicit'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateSSHCertIssuer.prototype['json'] = false; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateSSHCertIssuer.prototype['metadata'] = undefined; +/** + * SSH certificate issuer name + * @member {String} name + */ + +CreateSSHCertIssuer.prototype['name'] = undefined; +/** + * Signed certificates with principal, e.g example_role1,example_role2 + * @member {String} principals + */ + +CreateSSHCertIssuer.prototype['principals'] = undefined; +/** + * Bastion's SSH control API endpoint. E.g. https://my.bastion:9900 + * @member {String} secure-access-bastion-api + */ + +CreateSSHCertIssuer.prototype['secure-access-bastion-api'] = undefined; +/** + * Bastion's SSH server. E.g. my.bastion:22 + * @member {String} secure-access-bastion-ssh + */ + +CreateSSHCertIssuer.prototype['secure-access-bastion-ssh'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +CreateSSHCertIssuer.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +CreateSSHCertIssuer.prototype['secure-access-host'] = undefined; +/** + * SSH username to connect to target server, must be in 'Allowed Users' list + * @member {String} secure-access-ssh-creds-user + */ + +CreateSSHCertIssuer.prototype['secure-access-ssh-creds-user'] = undefined; +/** + * Use internal SSH Bastion + * @member {Boolean} secure-access-use-internal-bastion + */ + +CreateSSHCertIssuer.prototype['secure-access-use-internal-bastion'] = undefined; +/** + * A key to sign the certificate with + * @member {String} signer-key-name + */ + +CreateSSHCertIssuer.prototype['signer-key-name'] = undefined; +/** + * List of the tags attached to this key + * @member {Array.} tag + */ + +CreateSSHCertIssuer.prototype['tag'] = undefined; +/** + * A list of linked targets to be associated, Relevant only for Secure Remote Access for ssh cert issuer and ldap rotated secret, To specify multiple targets use argument multiple times + * @member {Array.} target + */ + +CreateSSHCertIssuer.prototype['target'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateSSHCertIssuer.prototype['token'] = undefined; +/** + * The requested Time To Live for the certificate, in seconds + * @member {Number} ttl + */ + +CreateSSHCertIssuer.prototype['ttl'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateSSHCertIssuer.prototype['uid-token'] = undefined; +var _default = CreateSSHCertIssuer; +exports["default"] = _default; + +/***/ }), + +/***/ 84148: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateSSHCertIssuerOutput model module. + * @module model/CreateSSHCertIssuerOutput + * @version 3.6.3 + */ +var CreateSSHCertIssuerOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateSSHCertIssuerOutput. + * @alias module:model/CreateSSHCertIssuerOutput + */ + function CreateSSHCertIssuerOutput() { + _classCallCheck(this, CreateSSHCertIssuerOutput); + + CreateSSHCertIssuerOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateSSHCertIssuerOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateSSHCertIssuerOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateSSHCertIssuerOutput} obj Optional instance to populate. + * @return {module:model/CreateSSHCertIssuerOutput} The populated CreateSSHCertIssuerOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateSSHCertIssuerOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateSSHCertIssuerOutput; +}(); +/** + * @member {String} name + */ + + +CreateSSHCertIssuerOutput.prototype['name'] = undefined; +var _default = CreateSSHCertIssuerOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 70101: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateSSHTarget model module. + * @module model/CreateSSHTarget + * @version 3.6.3 + */ +var CreateSSHTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateSSHTarget. + * @alias module:model/CreateSSHTarget + * @param name {String} Target name + */ + function CreateSSHTarget(name) { + _classCallCheck(this, CreateSSHTarget); + + CreateSSHTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateSSHTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateSSHTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateSSHTarget} obj Optional instance to populate. + * @return {module:model/CreateSSHTarget} The populated CreateSSHTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateSSHTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } + + if (data.hasOwnProperty('private-key')) { + obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); + } + + if (data.hasOwnProperty('private-key-password')) { + obj['private-key-password'] = _ApiClient["default"].convertToType(data['private-key-password'], 'String'); + } + + if (data.hasOwnProperty('ssh-password')) { + obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); + } + + if (data.hasOwnProperty('ssh-username')) { + obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateSSHTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateSSHTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateSSHTarget.prototype['description'] = undefined; +/** + * SSH host name + * @member {String} host + */ + +CreateSSHTarget.prototype['host'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateSSHTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateSSHTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateSSHTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateSSHTarget.prototype['name'] = undefined; +/** + * SSH port + * @member {String} port + * @default '22' + */ + +CreateSSHTarget.prototype['port'] = '22'; +/** + * SSH private key + * @member {String} private-key + */ + +CreateSSHTarget.prototype['private-key'] = undefined; +/** + * SSH private key password + * @member {String} private-key-password + */ + +CreateSSHTarget.prototype['private-key-password'] = undefined; +/** + * SSH password to rotate + * @member {String} ssh-password + */ + +CreateSSHTarget.prototype['ssh-password'] = undefined; +/** + * SSH username + * @member {String} ssh-username + */ + +CreateSSHTarget.prototype['ssh-username'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateSSHTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateSSHTarget.prototype['uid-token'] = undefined; +var _default = CreateSSHTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 98560: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateSSHTargetOutput model module. + * @module model/CreateSSHTargetOutput + * @version 3.6.3 + */ +var CreateSSHTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateSSHTargetOutput. + * @alias module:model/CreateSSHTargetOutput + */ + function CreateSSHTargetOutput() { + _classCallCheck(this, CreateSSHTargetOutput); + + CreateSSHTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateSSHTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateSSHTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateSSHTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateSSHTargetOutput} The populated CreateSSHTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateSSHTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateSSHTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateSSHTargetOutput.prototype['target_id'] = undefined; +var _default = CreateSSHTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 89382: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateSalesforceTarget model module. + * @module model/CreateSalesforceTarget + * @version 3.6.3 + */ +var CreateSalesforceTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateSalesforceTarget. + * @alias module:model/CreateSalesforceTarget + * @param authFlow {String} type of the auth flow ('jwt' / 'user-password') + * @param clientId {String} Client ID of the oauth2 app to use for connecting to Salesforce + * @param email {String} The email of the user attached to the oauth2 app used for connecting to Salesforce + * @param name {String} Target name + * @param tenantUrl {String} Url of the Salesforce tenant + */ + function CreateSalesforceTarget(authFlow, clientId, email, name, tenantUrl) { + _classCallCheck(this, CreateSalesforceTarget); + + CreateSalesforceTarget.initialize(this, authFlow, clientId, email, name, tenantUrl); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateSalesforceTarget, null, [{ + key: "initialize", + value: function initialize(obj, authFlow, clientId, email, name, tenantUrl) { + obj['auth-flow'] = authFlow; + obj['client-id'] = clientId; + obj['email'] = email; + obj['name'] = name; + obj['tenant-url'] = tenantUrl; + } + /** + * Constructs a CreateSalesforceTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateSalesforceTarget} obj Optional instance to populate. + * @return {module:model/CreateSalesforceTarget} The populated CreateSalesforceTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateSalesforceTarget(); + + if (data.hasOwnProperty('app-private-key-data')) { + obj['app-private-key-data'] = _ApiClient["default"].convertToType(data['app-private-key-data'], 'String'); + } + + if (data.hasOwnProperty('auth-flow')) { + obj['auth-flow'] = _ApiClient["default"].convertToType(data['auth-flow'], 'String'); + } + + if (data.hasOwnProperty('ca-cert-data')) { + obj['ca-cert-data'] = _ApiClient["default"].convertToType(data['ca-cert-data'], 'String'); + } + + if (data.hasOwnProperty('ca-cert-name')) { + obj['ca-cert-name'] = _ApiClient["default"].convertToType(data['ca-cert-name'], 'String'); + } + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + } + + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('email')) { + obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('security-token')) { + obj['security-token'] = _ApiClient["default"].convertToType(data['security-token'], 'String'); + } + + if (data.hasOwnProperty('tenant-url')) { + obj['tenant-url'] = _ApiClient["default"].convertToType(data['tenant-url'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateSalesforceTarget; +}(); +/** + * Base64 encoded PEM of the connected app private key (relevant for JWT auth only) + * @member {String} app-private-key-data + */ + + +CreateSalesforceTarget.prototype['app-private-key-data'] = undefined; +/** + * type of the auth flow ('jwt' / 'user-password') + * @member {String} auth-flow + */ + +CreateSalesforceTarget.prototype['auth-flow'] = undefined; +/** + * Base64 encoded PEM cert to use when uploading a new key to Salesforce + * @member {String} ca-cert-data + */ + +CreateSalesforceTarget.prototype['ca-cert-data'] = undefined; +/** + * name of the certificate in Salesforce tenant to use when uploading new key + * @member {String} ca-cert-name + */ + +CreateSalesforceTarget.prototype['ca-cert-name'] = undefined; +/** + * Client ID of the oauth2 app to use for connecting to Salesforce + * @member {String} client-id + */ + +CreateSalesforceTarget.prototype['client-id'] = undefined; +/** + * Client secret of the oauth2 app to use for connecting to Salesforce (required for password flow) + * @member {String} client-secret + */ + +CreateSalesforceTarget.prototype['client-secret'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateSalesforceTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateSalesforceTarget.prototype['description'] = undefined; +/** + * The email of the user attached to the oauth2 app used for connecting to Salesforce + * @member {String} email + */ + +CreateSalesforceTarget.prototype['email'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateSalesforceTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateSalesforceTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateSalesforceTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateSalesforceTarget.prototype['name'] = undefined; +/** + * The password of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow) + * @member {String} password + */ + +CreateSalesforceTarget.prototype['password'] = undefined; +/** + * The security token of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow) + * @member {String} security-token + */ + +CreateSalesforceTarget.prototype['security-token'] = undefined; +/** + * Url of the Salesforce tenant + * @member {String} tenant-url + */ + +CreateSalesforceTarget.prototype['tenant-url'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateSalesforceTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateSalesforceTarget.prototype['uid-token'] = undefined; +var _default = CreateSalesforceTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 63395: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateSalesforceTargetOutput model module. + * @module model/CreateSalesforceTargetOutput + * @version 3.6.3 + */ +var CreateSalesforceTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateSalesforceTargetOutput. + * @alias module:model/CreateSalesforceTargetOutput + */ + function CreateSalesforceTargetOutput() { + _classCallCheck(this, CreateSalesforceTargetOutput); + + CreateSalesforceTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateSalesforceTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateSalesforceTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateSalesforceTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateSalesforceTargetOutput} The populated CreateSalesforceTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateSalesforceTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateSalesforceTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateSalesforceTargetOutput.prototype['target_id'] = undefined; +var _default = CreateSalesforceTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 48156: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateSecret model module. + * @module model/CreateSecret + * @version 3.6.3 + */ +var CreateSecret = /*#__PURE__*/function () { + /** + * Constructs a new CreateSecret. + * @alias module:model/CreateSecret + * @param name {String} Secret name + * @param value {String} The secret value (relevant only for type 'generic') + */ + function CreateSecret(name, value) { + _classCallCheck(this, CreateSecret); + + CreateSecret.initialize(this, name, value); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateSecret, null, [{ + key: "initialize", + value: function initialize(obj, name, value) { + obj['name'] = name; + obj['value'] = value; + } + /** + * Constructs a CreateSecret from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateSecret} obj Optional instance to populate. + * @return {module:model/CreateSecret} The populated CreateSecret instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateSecret(); + + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + } + + if (data.hasOwnProperty('change-event')) { + obj['change-event'] = _ApiClient["default"].convertToType(data['change-event'], 'String'); + } + + if (data.hasOwnProperty('custom-field')) { + obj['custom-field'] = _ApiClient["default"].convertToType(data['custom-field'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('format')) { + obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); + } + + if (data.hasOwnProperty('inject-url')) { + obj['inject-url'] = _ApiClient["default"].convertToType(data['inject-url'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('multiline_value')) { + obj['multiline_value'] = _ApiClient["default"].convertToType(data['multiline_value'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } + + if (data.hasOwnProperty('secure-access-ssh-creds')) { + obj['secure-access-ssh-creds'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds'], 'String'); + } + + if (data.hasOwnProperty('secure-access-ssh-user')) { + obj['secure-access-ssh-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-user'], 'String'); + } + + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + + if (data.hasOwnProperty('value')) { + obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); + } + } + + return obj; + } + }]); + + return CreateSecret; +}(); +/** + * for personal password manager + * @member {String} accessibility + * @default 'regular' + */ + + +CreateSecret.prototype['accessibility'] = 'regular'; +/** + * Trigger an event when a secret value changed [true/false] (Relevant only for Static Secret) + * @member {String} change-event + */ + +CreateSecret.prototype['change-event'] = undefined; +/** + * For Password Management use, additional fields + * @member {Object.} custom-field + */ + +CreateSecret.prototype['custom-field'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateSecret.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateSecret.prototype['description'] = undefined; +/** + * Secret format [text/json] (relevant only for type 'generic') + * @member {String} format + * @default 'text' + */ + +CreateSecret.prototype['format'] = 'text'; +/** + * For Password Management use, reflect the website context + * @member {Array.} inject-url + */ + +CreateSecret.prototype['inject-url'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateSecret.prototype['json'] = false; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateSecret.prototype['max-versions'] = undefined; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateSecret.prototype['metadata'] = undefined; +/** + * The provided value is a multiline value (separated by '\\n') + * @member {Boolean} multiline_value + */ + +CreateSecret.prototype['multiline_value'] = undefined; +/** + * Secret name + * @member {String} name + */ + +CreateSecret.prototype['name'] = undefined; +/** + * For Password Management use, additional fields + * @member {String} password + */ + +CreateSecret.prototype['password'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection_key + */ + +CreateSecret.prototype['protection_key'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +CreateSecret.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +CreateSecret.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +CreateSecret.prototype['secure-access-host'] = undefined; +/** + * Remote Desktop Username + * @member {String} secure-access-rdp-user + */ + +CreateSecret.prototype['secure-access-rdp-user'] = undefined; +/** + * Static-Secret values contains SSH Credentials, either Private Key or Password [password/private-key] + * @member {String} secure-access-ssh-creds + */ + +CreateSecret.prototype['secure-access-ssh-creds'] = undefined; +/** + * Override the SSH username as indicated in SSH Certificate Issuer + * @member {String} secure-access-ssh-user + */ + +CreateSecret.prototype['secure-access-ssh-user'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ + +CreateSecret.prototype['secure-access-url'] = undefined; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +CreateSecret.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +CreateSecret.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +CreateSecret.prototype['tags'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateSecret.prototype['token'] = undefined; +/** + * The secret sub type [generic/password] + * @member {String} type + * @default 'generic' + */ + +CreateSecret.prototype['type'] = 'generic'; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateSecret.prototype['uid-token'] = undefined; +/** + * For Password Management use + * @member {String} username + */ + +CreateSecret.prototype['username'] = undefined; +/** + * The secret value (relevant only for type 'generic') + * @member {String} value + */ + +CreateSecret.prototype['value'] = undefined; +var _default = CreateSecret; +exports["default"] = _default; + +/***/ }), + +/***/ 2397: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateSecretOutput model module. + * @module model/CreateSecretOutput + * @version 3.6.3 + */ +var CreateSecretOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateSecretOutput. + * @alias module:model/CreateSecretOutput + */ + function CreateSecretOutput() { + _classCallCheck(this, CreateSecretOutput); + + CreateSecretOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateSecretOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateSecretOutput} obj Optional instance to populate. + * @return {module:model/CreateSecretOutput} The populated CreateSecretOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateSecretOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateSecretOutput; +}(); +/** + * @member {String} name + */ + + +CreateSecretOutput.prototype['name'] = undefined; +var _default = CreateSecretOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 24022: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateTargetItemAssocOutput model module. + * @module model/CreateTargetItemAssocOutput + * @version 3.6.3 + */ +var CreateTargetItemAssocOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateTargetItemAssocOutput. + * CreateTargetItemAssocOutput defines output of CreateTargetItemAssoc operation. + * @alias module:model/CreateTargetItemAssocOutput + */ + function CreateTargetItemAssocOutput() { + _classCallCheck(this, CreateTargetItemAssocOutput); + + CreateTargetItemAssocOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateTargetItemAssocOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateTargetItemAssocOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateTargetItemAssocOutput} obj Optional instance to populate. + * @return {module:model/CreateTargetItemAssocOutput} The populated CreateTargetItemAssocOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateTargetItemAssocOutput(); + + if (data.hasOwnProperty('assoc_id')) { + obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); + } + } + + return obj; + } + }]); + + return CreateTargetItemAssocOutput; +}(); +/** + * @member {String} assoc_id + */ + + +CreateTargetItemAssocOutput.prototype['assoc_id'] = undefined; +var _default = CreateTargetItemAssocOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 85747: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateTokenizer model module. + * @module model/CreateTokenizer + * @version 3.6.3 + */ +var CreateTokenizer = /*#__PURE__*/function () { + /** + * Constructs a new CreateTokenizer. + * createTokenizer is a command that creates a tokenizer item + * @alias module:model/CreateTokenizer + * @param name {String} Tokenizer name + * @param templateType {String} Which template type this tokenizer is used for [SSN,CreditCard,USPhoneNumber,Email,Regexp] + * @param tokenizerType {String} Tokenizer type + */ + function CreateTokenizer(name, templateType, tokenizerType) { + _classCallCheck(this, CreateTokenizer); + + CreateTokenizer.initialize(this, name, templateType, tokenizerType); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateTokenizer, null, [{ + key: "initialize", + value: function initialize(obj, name, templateType, tokenizerType) { + obj['name'] = name; + obj['template-type'] = templateType; + obj['tokenizer-type'] = tokenizerType; + } + /** + * Constructs a CreateTokenizer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateTokenizer} obj Optional instance to populate. + * @return {module:model/CreateTokenizer} The populated CreateTokenizer instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateTokenizer(); + + if (data.hasOwnProperty('alphabet')) { + obj['alphabet'] = _ApiClient["default"].convertToType(data['alphabet'], 'String'); + } + + if (data.hasOwnProperty('decoding-template')) { + obj['decoding-template'] = _ApiClient["default"].convertToType(data['decoding-template'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('encoding-template')) { + obj['encoding-template'] = _ApiClient["default"].convertToType(data['encoding-template'], 'String'); + } + + if (data.hasOwnProperty('encryption-key-name')) { + obj['encryption-key-name'] = _ApiClient["default"].convertToType(data['encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('pattern')) { + obj['pattern'] = _ApiClient["default"].convertToType(data['pattern'], 'String'); + } + + if (data.hasOwnProperty('tag')) { + obj['tag'] = _ApiClient["default"].convertToType(data['tag'], ['String']); + } + + if (data.hasOwnProperty('template-type')) { + obj['template-type'] = _ApiClient["default"].convertToType(data['template-type'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('tokenizer-type')) { + obj['tokenizer-type'] = _ApiClient["default"].convertToType(data['tokenizer-type'], 'String'); + } + + if (data.hasOwnProperty('tweak-type')) { + obj['tweak-type'] = _ApiClient["default"].convertToType(data['tweak-type'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateTokenizer; +}(); +/** + * Alphabet to use in regexp vaultless tokenization + * @member {String} alphabet + */ + + +CreateTokenizer.prototype['alphabet'] = undefined; +/** + * The Decoding output template to use in regexp vaultless tokenization + * @member {String} decoding-template + */ + +CreateTokenizer.prototype['decoding-template'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateTokenizer.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateTokenizer.prototype['description'] = undefined; +/** + * The Encoding output template to use in regexp vaultless tokenization + * @member {String} encoding-template + */ + +CreateTokenizer.prototype['encoding-template'] = undefined; +/** + * AES key name to use in vaultless tokenization + * @member {String} encryption-key-name + */ + +CreateTokenizer.prototype['encryption-key-name'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateTokenizer.prototype['json'] = false; +/** + * Deprecated - use description + * @member {String} metadata + */ + +CreateTokenizer.prototype['metadata'] = undefined; +/** + * Tokenizer name + * @member {String} name + */ + +CreateTokenizer.prototype['name'] = undefined; +/** + * Pattern to use in regexp vaultless tokenization + * @member {String} pattern + */ + +CreateTokenizer.prototype['pattern'] = undefined; +/** + * List of the tags attached to this key + * @member {Array.} tag + */ + +CreateTokenizer.prototype['tag'] = undefined; +/** + * Which template type this tokenizer is used for [SSN,CreditCard,USPhoneNumber,Email,Regexp] + * @member {String} template-type + */ + +CreateTokenizer.prototype['template-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateTokenizer.prototype['token'] = undefined; +/** + * Tokenizer type + * @member {String} tokenizer-type + * @default 'vaultless' + */ + +CreateTokenizer.prototype['tokenizer-type'] = 'vaultless'; +/** + * The tweak type to use in vaultless tokenization [Supplied, Generated, Internal, Masking] + * @member {String} tweak-type + */ + +CreateTokenizer.prototype['tweak-type'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateTokenizer.prototype['uid-token'] = undefined; +var _default = CreateTokenizer; +exports["default"] = _default; + +/***/ }), + +/***/ 77602: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateTokenizerOutput model module. + * @module model/CreateTokenizerOutput + * @version 3.6.3 + */ +var CreateTokenizerOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateTokenizerOutput. + * @alias module:model/CreateTokenizerOutput + */ + function CreateTokenizerOutput() { + _classCallCheck(this, CreateTokenizerOutput); + + CreateTokenizerOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateTokenizerOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateTokenizerOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateTokenizerOutput} obj Optional instance to populate. + * @return {module:model/CreateTokenizerOutput} The populated CreateTokenizerOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateTokenizerOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateTokenizerOutput; +}(); +/** + * @member {String} name + */ + + +CreateTokenizerOutput.prototype['name'] = undefined; +var _default = CreateTokenizerOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 59331: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateUSC model module. + * @module model/CreateUSC + * @version 3.6.3 + */ +var CreateUSC = /*#__PURE__*/function () { + /** + * Constructs a new CreateUSC. + * CreateUSC is a command that creates a Universal Secrets Connector + * @alias module:model/CreateUSC + * @param name {String} Universal Secrets Connector name + * @param targetToAssociate {String} Target Universal Secrets Connector to connect + */ + function CreateUSC(name, targetToAssociate) { + _classCallCheck(this, CreateUSC); + + CreateUSC.initialize(this, name, targetToAssociate); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateUSC, null, [{ + key: "initialize", + value: function initialize(obj, name, targetToAssociate) { + obj['name'] = name; + obj['target-to-associate'] = targetToAssociate; + } + /** + * Constructs a CreateUSC from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateUSC} obj Optional instance to populate. + * @return {module:model/CreateUSC} The populated CreateUSC instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateUSC(); + + if (data.hasOwnProperty('azure-kv-name')) { + obj['azure-kv-name'] = _ApiClient["default"].convertToType(data['azure-kv-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-namespace')) { + obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-to-associate')) { + obj['target-to-associate'] = _ApiClient["default"].convertToType(data['target-to-associate'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateUSC; +}(); +/** + * Azure Key Vault name (Relevant only for Azure targets) + * @member {String} azure-kv-name + */ + + +CreateUSC.prototype['azure-kv-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +CreateUSC.prototype['delete_protection'] = undefined; +/** + * Description of the Universal Secrets Connector + * @member {String} description + */ + +CreateUSC.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateUSC.prototype['json'] = false; +/** + * K8s namespace (Relevant to Kubernetes targets) + * @member {String} k8s-namespace + */ + +CreateUSC.prototype['k8s-namespace'] = undefined; +/** + * Universal Secrets Connector name + * @member {String} name + */ + +CreateUSC.prototype['name'] = undefined; +/** + * List of the tags attached to this Universal Secrets Connector + * @member {Array.} tags + */ + +CreateUSC.prototype['tags'] = undefined; +/** + * Target Universal Secrets Connector to connect + * @member {String} target-to-associate + */ + +CreateUSC.prototype['target-to-associate'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateUSC.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateUSC.prototype['uid-token'] = undefined; +var _default = CreateUSC; +exports["default"] = _default; + +/***/ }), + +/***/ 7634: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateUSCOutput model module. + * @module model/CreateUSCOutput + * @version 3.6.3 + */ +var CreateUSCOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateUSCOutput. + * @alias module:model/CreateUSCOutput + */ + function CreateUSCOutput() { + _classCallCheck(this, CreateUSCOutput); + + CreateUSCOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateUSCOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateUSCOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateUSCOutput} obj Optional instance to populate. + * @return {module:model/CreateUSCOutput} The populated CreateUSCOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateUSCOutput(); + + if (data.hasOwnProperty('universal_secrets_connector_id')) { + obj['universal_secrets_connector_id'] = _ApiClient["default"].convertToType(data['universal_secrets_connector_id'], 'Number'); + } + + if (data.hasOwnProperty('universal_secrets_connector_name')) { + obj['universal_secrets_connector_name'] = _ApiClient["default"].convertToType(data['universal_secrets_connector_name'], 'String'); + } + } + + return obj; + } + }]); + + return CreateUSCOutput; +}(); +/** + * @member {Number} universal_secrets_connector_id + */ + + +CreateUSCOutput.prototype['universal_secrets_connector_id'] = undefined; +/** + * @member {String} universal_secrets_connector_name + */ + +CreateUSCOutput.prototype['universal_secrets_connector_name'] = undefined; +var _default = CreateUSCOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 56891: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateUserEvent model module. + * @module model/CreateUserEvent + * @version 3.6.3 + */ +var CreateUserEvent = /*#__PURE__*/function () { + /** + * Constructs a new CreateUserEvent. + * @alias module:model/CreateUserEvent + * @param eventType {String} + * @param itemName {String} EventItemName Event item name + * @param itemType {String} EventItemType Event item type + */ + function CreateUserEvent(eventType, itemName, itemType) { + _classCallCheck(this, CreateUserEvent); + + CreateUserEvent.initialize(this, eventType, itemName, itemType); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateUserEvent, null, [{ + key: "initialize", + value: function initialize(obj, eventType, itemName, itemType) { + obj['event-type'] = eventType; + obj['item-name'] = itemName; + obj['item-type'] = itemType; + } + /** + * Constructs a CreateUserEvent from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateUserEvent} obj Optional instance to populate. + * @return {module:model/CreateUserEvent} The populated CreateUserEvent instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateUserEvent(); + + if (data.hasOwnProperty('capabilities')) { + obj['capabilities'] = _ApiClient["default"].convertToType(data['capabilities'], ['String']); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('event-source')) { + obj['event-source'] = _ApiClient["default"].convertToType(data['event-source'], 'String'); + } + + if (data.hasOwnProperty('event-type')) { + obj['event-type'] = _ApiClient["default"].convertToType(data['event-type'], 'String'); + } + + if (data.hasOwnProperty('item-name')) { + obj['item-name'] = _ApiClient["default"].convertToType(data['item-name'], 'String'); + } + + if (data.hasOwnProperty('item-type')) { + obj['item-type'] = _ApiClient["default"].convertToType(data['item-type'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('request-access-ttl')) { + obj['request-access-ttl'] = _ApiClient["default"].convertToType(data['request-access-ttl'], 'Number'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateUserEvent; +}(); +/** + * List of the required capabilities options: [read, update, delete,sra_transparently_connect]. Relevant only for request-access event types + * @member {Array.} capabilities + */ + + +CreateUserEvent.prototype['capabilities'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateUserEvent.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateUserEvent.prototype['description'] = undefined; +/** + * @member {String} event-source + */ + +CreateUserEvent.prototype['event-source'] = undefined; +/** + * @member {String} event-type + */ + +CreateUserEvent.prototype['event-type'] = undefined; +/** + * EventItemName Event item name + * @member {String} item-name + */ + +CreateUserEvent.prototype['item-name'] = undefined; +/** + * EventItemType Event item type + * @member {String} item-type + */ + +CreateUserEvent.prototype['item-type'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateUserEvent.prototype['json'] = false; +/** + * For how long to grant the requested access, in minutes + * @member {Number} request-access-ttl + */ + +CreateUserEvent.prototype['request-access-ttl'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateUserEvent.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateUserEvent.prototype['uid-token'] = undefined; +var _default = CreateUserEvent; +exports["default"] = _default; + +/***/ }), + +/***/ 90618: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateUserEventOutput model module. + * @module model/CreateUserEventOutput + * @version 3.6.3 + */ +var CreateUserEventOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateUserEventOutput. + * @alias module:model/CreateUserEventOutput + */ + function CreateUserEventOutput() { + _classCallCheck(this, CreateUserEventOutput); + + CreateUserEventOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateUserEventOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateUserEventOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateUserEventOutput} obj Optional instance to populate. + * @return {module:model/CreateUserEventOutput} The populated CreateUserEventOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateUserEventOutput(); + + if (data.hasOwnProperty('response')) { + obj['response'] = _ApiClient["default"].convertToType(data['response'], 'String'); + } + } + + return obj; + } + }]); + + return CreateUserEventOutput; +}(); +/** + * @member {String} response + */ + + +CreateUserEventOutput.prototype['response'] = undefined; +var _default = CreateUserEventOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 95805: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateWebTarget model module. + * @module model/CreateWebTarget + * @version 3.6.3 + */ +var CreateWebTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateWebTarget. + * @alias module:model/CreateWebTarget + * @param name {String} Target name + */ + function CreateWebTarget(name) { + _classCallCheck(this, CreateWebTarget); + + CreateWebTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateWebTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a CreateWebTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateWebTarget} obj Optional instance to populate. + * @return {module:model/CreateWebTarget} The populated CreateWebTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateWebTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } + } + + return obj; + } + }]); + + return CreateWebTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +CreateWebTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateWebTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateWebTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateWebTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateWebTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateWebTarget.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateWebTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateWebTarget.prototype['uid-token'] = undefined; +/** + * The url + * @member {String} url + */ + +CreateWebTarget.prototype['url'] = undefined; +var _default = CreateWebTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 38200: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateWebTargetOutput model module. + * @module model/CreateWebTargetOutput + * @version 3.6.3 + */ +var CreateWebTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateWebTargetOutput. + * @alias module:model/CreateWebTargetOutput + */ + function CreateWebTargetOutput() { + _classCallCheck(this, CreateWebTargetOutput); + + CreateWebTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateWebTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateWebTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateWebTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateWebTargetOutput} The populated CreateWebTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateWebTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateWebTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateWebTargetOutput.prototype['target_id'] = undefined; +var _default = CreateWebTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 61054: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateWindowsTarget model module. + * @module model/CreateWindowsTarget + * @version 3.6.3 + */ +var CreateWindowsTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateWindowsTarget. + * @alias module:model/CreateWindowsTarget + * @param hostname {String} Server hostname + * @param name {String} Target name + * @param password {String} Privileged user password + * @param username {String} Privileged username + */ + function CreateWindowsTarget(hostname, name, password, username) { + _classCallCheck(this, CreateWindowsTarget); + + CreateWindowsTarget.initialize(this, hostname, name, password, username); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateWindowsTarget, null, [{ + key: "initialize", + value: function initialize(obj, hostname, name, password, username) { + obj['hostname'] = hostname; + obj['name'] = name; + obj['password'] = password; + obj['username'] = username; + } + /** + * Constructs a CreateWindowsTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateWindowsTarget} obj Optional instance to populate. + * @return {module:model/CreateWindowsTarget} The populated CreateWindowsTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateWindowsTarget(); + + if (data.hasOwnProperty('certificate')) { + obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('domain')) { + obj['domain'] = _ApiClient["default"].convertToType(data['domain'], 'String'); + } + + if (data.hasOwnProperty('hostname')) { + obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-tls')) { + obj['use-tls'] = _ApiClient["default"].convertToType(data['use-tls'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + } + + return obj; + } + }]); + + return CreateWindowsTarget; +}(); +/** + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} certificate + */ + + +CreateWindowsTarget.prototype['certificate'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateWindowsTarget.prototype['description'] = undefined; +/** + * User domain name + * @member {String} domain + */ + +CreateWindowsTarget.prototype['domain'] = undefined; +/** + * Server hostname + * @member {String} hostname + */ + +CreateWindowsTarget.prototype['hostname'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateWindowsTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateWindowsTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateWindowsTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateWindowsTarget.prototype['name'] = undefined; +/** + * Privileged user password + * @member {String} password + */ + +CreateWindowsTarget.prototype['password'] = undefined; +/** + * Server WinRM port + * @member {String} port + * @default '5986' + */ + +CreateWindowsTarget.prototype['port'] = '5986'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateWindowsTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateWindowsTarget.prototype['uid-token'] = undefined; +/** + * Enable/Disable TLS for WinRM over HTTPS [true/false] + * @member {String} use-tls + * @default 'true' + */ + +CreateWindowsTarget.prototype['use-tls'] = 'true'; +/** + * Privileged username + * @member {String} username + */ + +CreateWindowsTarget.prototype['username'] = undefined; +var _default = CreateWindowsTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 76267: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateWindowsTargetOutput model module. + * @module model/CreateWindowsTargetOutput + * @version 3.6.3 + */ +var CreateWindowsTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateWindowsTargetOutput. + * @alias module:model/CreateWindowsTargetOutput + */ + function CreateWindowsTargetOutput() { + _classCallCheck(this, CreateWindowsTargetOutput); + + CreateWindowsTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateWindowsTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateWindowsTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateWindowsTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateWindowsTargetOutput} The populated CreateWindowsTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateWindowsTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateWindowsTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateWindowsTargetOutput.prototype['target_id'] = undefined; +var _default = CreateWindowsTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 84899: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateZeroSSLTarget model module. + * @module model/CreateZeroSSLTarget + * @version 3.6.3 + */ +var CreateZeroSSLTarget = /*#__PURE__*/function () { + /** + * Constructs a new CreateZeroSSLTarget. + * @alias module:model/CreateZeroSSLTarget + * @param apiKey {String} API Key of the ZeroSSLTarget account + * @param imapFqdn {String} ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS + * @param imapPassword {String} ImapPassword to access the IMAP service + * @param imapUsername {String} ImapUsername to access the IMAP service + * @param name {String} Target name + */ + function CreateZeroSSLTarget(apiKey, imapFqdn, imapPassword, imapUsername, name) { + _classCallCheck(this, CreateZeroSSLTarget); + + CreateZeroSSLTarget.initialize(this, apiKey, imapFqdn, imapPassword, imapUsername, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateZeroSSLTarget, null, [{ + key: "initialize", + value: function initialize(obj, apiKey, imapFqdn, imapPassword, imapUsername, name) { + obj['api-key'] = apiKey; + obj['imap-fqdn'] = imapFqdn; + obj['imap-password'] = imapPassword; + obj['imap-username'] = imapUsername; + obj['name'] = name; + } + /** + * Constructs a CreateZeroSSLTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateZeroSSLTarget} obj Optional instance to populate. + * @return {module:model/CreateZeroSSLTarget} The populated CreateZeroSSLTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateZeroSSLTarget(); + + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('imap-fqdn')) { + obj['imap-fqdn'] = _ApiClient["default"].convertToType(data['imap-fqdn'], 'String'); + } + + if (data.hasOwnProperty('imap-password')) { + obj['imap-password'] = _ApiClient["default"].convertToType(data['imap-password'], 'String'); + } + + if (data.hasOwnProperty('imap-port')) { + obj['imap-port'] = _ApiClient["default"].convertToType(data['imap-port'], 'String'); + } + + if (data.hasOwnProperty('imap-target-email')) { + obj['imap-target-email'] = _ApiClient["default"].convertToType(data['imap-target-email'], 'String'); + } + + if (data.hasOwnProperty('imap-username')) { + obj['imap-username'] = _ApiClient["default"].convertToType(data['imap-username'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return CreateZeroSSLTarget; +}(); +/** + * API Key of the ZeroSSLTarget account + * @member {String} api-key + */ + + +CreateZeroSSLTarget.prototype['api-key'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ + +CreateZeroSSLTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +CreateZeroSSLTarget.prototype['description'] = undefined; +/** + * ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS + * @member {String} imap-fqdn + */ + +CreateZeroSSLTarget.prototype['imap-fqdn'] = undefined; +/** + * ImapPassword to access the IMAP service + * @member {String} imap-password + */ + +CreateZeroSSLTarget.prototype['imap-password'] = undefined; +/** + * ImapPort of the IMAP service + * @member {String} imap-port + * @default '993' + */ + +CreateZeroSSLTarget.prototype['imap-port'] = '993'; +/** + * ImapValidationEmail to use when asking ZeroSSL to send a validation email, if empty will user imap-username + * @member {String} imap-target-email + */ + +CreateZeroSSLTarget.prototype['imap-target-email'] = undefined; +/** + * ImapUsername to access the IMAP service + * @member {String} imap-username + */ + +CreateZeroSSLTarget.prototype['imap-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +CreateZeroSSLTarget.prototype['json'] = false; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +CreateZeroSSLTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +CreateZeroSSLTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +CreateZeroSSLTarget.prototype['name'] = undefined; +/** + * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. + * @member {String} timeout + * @default '5m' + */ + +CreateZeroSSLTarget.prototype['timeout'] = '5m'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +CreateZeroSSLTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +CreateZeroSSLTarget.prototype['uid-token'] = undefined; +var _default = CreateZeroSSLTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 43026: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CreateZeroSSLTargetOutput model module. + * @module model/CreateZeroSSLTargetOutput + * @version 3.6.3 + */ +var CreateZeroSSLTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new CreateZeroSSLTargetOutput. + * @alias module:model/CreateZeroSSLTargetOutput + */ + function CreateZeroSSLTargetOutput() { + _classCallCheck(this, CreateZeroSSLTargetOutput); + + CreateZeroSSLTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CreateZeroSSLTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CreateZeroSSLTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateZeroSSLTargetOutput} obj Optional instance to populate. + * @return {module:model/CreateZeroSSLTargetOutput} The populated CreateZeroSSLTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateZeroSSLTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return CreateZeroSSLTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +CreateZeroSSLTargetOutput.prototype['target_id'] = undefined; +var _default = CreateZeroSSLTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 70142: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CustomTargetDetails model module. + * @module model/CustomTargetDetails + * @version 3.6.3 + */ +var CustomTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new CustomTargetDetails. + * @alias module:model/CustomTargetDetails + */ + function CustomTargetDetails() { + _classCallCheck(this, CustomTargetDetails); + + CustomTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CustomTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CustomTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomTargetDetails} obj Optional instance to populate. + * @return {module:model/CustomTargetDetails} The populated CustomTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomTargetDetails(); + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); + } + } + + return obj; + } + }]); + + return CustomTargetDetails; +}(); +/** + * @member {String} payload + */ + + +CustomTargetDetails.prototype['payload'] = undefined; +var _default = CustomTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 77034: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CustomerFragmentConfig model module. + * @module model/CustomerFragmentConfig + * @version 3.6.3 + */ +var CustomerFragmentConfig = /*#__PURE__*/function () { + /** + * Constructs a new CustomerFragmentConfig. + * @alias module:model/CustomerFragmentConfig + */ + function CustomerFragmentConfig() { + _classCallCheck(this, CustomerFragmentConfig); + + CustomerFragmentConfig.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CustomerFragmentConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CustomerFragmentConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerFragmentConfig} obj Optional instance to populate. + * @return {module:model/CustomerFragmentConfig} The populated CustomerFragmentConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerFragmentConfig(); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('fragment_type')) { + obj['fragment_type'] = _ApiClient["default"].convertToType(data['fragment_type'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('key_label')) { + obj['key_label'] = _ApiClient["default"].convertToType(data['key_label'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('value')) { + obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); + } + } + + return obj; + } + }]); + + return CustomerFragmentConfig; +}(); +/** + * @member {String} description + */ + + +CustomerFragmentConfig.prototype['description'] = undefined; +/** + * @member {String} fragment_type + */ + +CustomerFragmentConfig.prototype['fragment_type'] = undefined; +/** + * @member {String} id + */ + +CustomerFragmentConfig.prototype['id'] = undefined; +/** + * @member {String} key_label + */ + +CustomerFragmentConfig.prototype['key_label'] = undefined; +/** + * @member {String} name + */ + +CustomerFragmentConfig.prototype['name'] = undefined; +/** + * @member {String} value + */ + +CustomerFragmentConfig.prototype['value'] = undefined; +var _default = CustomerFragmentConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 63071: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _CustomerFragmentConfig = _interopRequireDefault(__nccwpck_require__(77034)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CustomerFragmentsConfigJson model module. + * @module model/CustomerFragmentsConfigJson + * @version 3.6.3 + */ +var CustomerFragmentsConfigJson = /*#__PURE__*/function () { + /** + * Constructs a new CustomerFragmentsConfigJson. + * @alias module:model/CustomerFragmentsConfigJson + */ + function CustomerFragmentsConfigJson() { + _classCallCheck(this, CustomerFragmentsConfigJson); + + CustomerFragmentsConfigJson.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CustomerFragmentsConfigJson, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CustomerFragmentsConfigJson from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerFragmentsConfigJson} obj Optional instance to populate. + * @return {module:model/CustomerFragmentsConfigJson} The populated CustomerFragmentsConfigJson instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerFragmentsConfigJson(); + + if (data.hasOwnProperty('customer_fragments')) { + obj['customer_fragments'] = _ApiClient["default"].convertToType(data['customer_fragments'], [_CustomerFragmentConfig["default"]]); + } + } + + return obj; + } + }]); + + return CustomerFragmentsConfigJson; +}(); +/** + * @member {Array.} customer_fragments + */ + + +CustomerFragmentsConfigJson.prototype['customer_fragments'] = undefined; +var _default = CustomerFragmentsConfigJson; +exports["default"] = _default; + +/***/ }), + +/***/ 37009: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The CustomerFullAddress model module. + * @module model/CustomerFullAddress + * @version 3.6.3 + */ +var CustomerFullAddress = /*#__PURE__*/function () { + /** + * Constructs a new CustomerFullAddress. + * @alias module:model/CustomerFullAddress + */ + function CustomerFullAddress() { + _classCallCheck(this, CustomerFullAddress); + + CustomerFullAddress.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(CustomerFullAddress, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a CustomerFullAddress from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CustomerFullAddress} obj Optional instance to populate. + * @return {module:model/CustomerFullAddress} The populated CustomerFullAddress instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerFullAddress(); + + if (data.hasOwnProperty('city')) { + obj['city'] = _ApiClient["default"].convertToType(data['city'], 'String'); + } + + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); + } + + if (data.hasOwnProperty('postal_code')) { + obj['postal_code'] = _ApiClient["default"].convertToType(data['postal_code'], 'String'); + } + + if (data.hasOwnProperty('street')) { + obj['street'] = _ApiClient["default"].convertToType(data['street'], 'String'); + } + } + + return obj; + } + }]); + + return CustomerFullAddress; +}(); +/** + * @member {String} city + */ + + +CustomerFullAddress.prototype['city'] = undefined; +/** + * @member {String} country + */ + +CustomerFullAddress.prototype['country'] = undefined; +/** + * @member {String} postal_code + */ + +CustomerFullAddress.prototype['postal_code'] = undefined; +/** + * @member {String} street + */ + +CustomerFullAddress.prototype['street'] = undefined; +var _default = CustomerFullAddress; +exports["default"] = _default; + +/***/ }), + +/***/ 50601: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _ItemTargetAssociation = _interopRequireDefault(__nccwpck_require__(24223)); + +var _SecureRemoteAccess = _interopRequireDefault(__nccwpck_require__(66513)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DSProducerDetails model module. + * @module model/DSProducerDetails + * @version 3.6.3 + */ +var DSProducerDetails = /*#__PURE__*/function () { + /** + * Constructs a new DSProducerDetails. + * @alias module:model/DSProducerDetails + */ + function DSProducerDetails() { + _classCallCheck(this, DSProducerDetails); + + DSProducerDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DSProducerDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DSProducerDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DSProducerDetails} obj Optional instance to populate. + * @return {module:model/DSProducerDetails} The populated DSProducerDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DSProducerDetails(); + + if (data.hasOwnProperty('access_token_manager_id')) { + obj['access_token_manager_id'] = _ApiClient["default"].convertToType(data['access_token_manager_id'], 'String'); + } + + if (data.hasOwnProperty('acl_rules')) { + obj['acl_rules'] = _ApiClient["default"].convertToType(data['acl_rules'], ['String']); + } + + if (data.hasOwnProperty('active')) { + obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean'); + } + + if (data.hasOwnProperty('admin_name')) { + obj['admin_name'] = _ApiClient["default"].convertToType(data['admin_name'], 'String'); + } + + if (data.hasOwnProperty('admin_pwd')) { + obj['admin_pwd'] = _ApiClient["default"].convertToType(data['admin_pwd'], 'String'); + } + + if (data.hasOwnProperty('admin_rotation_interval_days')) { + obj['admin_rotation_interval_days'] = _ApiClient["default"].convertToType(data['admin_rotation_interval_days'], 'Number'); + } + + if (data.hasOwnProperty('administrative_port')) { + obj['administrative_port'] = _ApiClient["default"].convertToType(data['administrative_port'], 'String'); + } + + if (data.hasOwnProperty('artifactory_admin_apikey')) { + obj['artifactory_admin_apikey'] = _ApiClient["default"].convertToType(data['artifactory_admin_apikey'], 'String'); + } + + if (data.hasOwnProperty('artifactory_admin_username')) { + obj['artifactory_admin_username'] = _ApiClient["default"].convertToType(data['artifactory_admin_username'], 'String'); + } + + if (data.hasOwnProperty('artifactory_base_url')) { + obj['artifactory_base_url'] = _ApiClient["default"].convertToType(data['artifactory_base_url'], 'String'); + } + + if (data.hasOwnProperty('artifactory_token_audience')) { + obj['artifactory_token_audience'] = _ApiClient["default"].convertToType(data['artifactory_token_audience'], 'String'); + } + + if (data.hasOwnProperty('artifactory_token_scope')) { + obj['artifactory_token_scope'] = _ApiClient["default"].convertToType(data['artifactory_token_scope'], 'String'); + } + + if (data.hasOwnProperty('authorization_port')) { + obj['authorization_port'] = _ApiClient["default"].convertToType(data['authorization_port'], 'String'); + } + + if (data.hasOwnProperty('aws_access_key_id')) { + obj['aws_access_key_id'] = _ApiClient["default"].convertToType(data['aws_access_key_id'], 'String'); + } + + if (data.hasOwnProperty('aws_access_mode')) { + obj['aws_access_mode'] = _ApiClient["default"].convertToType(data['aws_access_mode'], 'String'); + } + + if (data.hasOwnProperty('aws_region')) { + obj['aws_region'] = _ApiClient["default"].convertToType(data['aws_region'], 'String'); + } + + if (data.hasOwnProperty('aws_role_arns')) { + obj['aws_role_arns'] = _ApiClient["default"].convertToType(data['aws_role_arns'], 'String'); + } + + if (data.hasOwnProperty('aws_secret_access_key')) { + obj['aws_secret_access_key'] = _ApiClient["default"].convertToType(data['aws_secret_access_key'], 'String'); + } + + if (data.hasOwnProperty('aws_session_token')) { + obj['aws_session_token'] = _ApiClient["default"].convertToType(data['aws_session_token'], 'String'); + } + + if (data.hasOwnProperty('aws_user_console_access')) { + obj['aws_user_console_access'] = _ApiClient["default"].convertToType(data['aws_user_console_access'], 'Boolean'); + } + + if (data.hasOwnProperty('aws_user_groups')) { + obj['aws_user_groups'] = _ApiClient["default"].convertToType(data['aws_user_groups'], 'String'); + } + + if (data.hasOwnProperty('aws_user_policies')) { + obj['aws_user_policies'] = _ApiClient["default"].convertToType(data['aws_user_policies'], 'String'); + } + + if (data.hasOwnProperty('aws_user_programmatic_access')) { + obj['aws_user_programmatic_access'] = _ApiClient["default"].convertToType(data['aws_user_programmatic_access'], 'Boolean'); + } + + if (data.hasOwnProperty('azure_app_object_id')) { + obj['azure_app_object_id'] = _ApiClient["default"].convertToType(data['azure_app_object_id'], 'String'); + } + + if (data.hasOwnProperty('azure_client_id')) { + obj['azure_client_id'] = _ApiClient["default"].convertToType(data['azure_client_id'], 'String'); + } + + if (data.hasOwnProperty('azure_client_secret')) { + obj['azure_client_secret'] = _ApiClient["default"].convertToType(data['azure_client_secret'], 'String'); + } + + if (data.hasOwnProperty('azure_fixed_user_name_sub_claim_key')) { + obj['azure_fixed_user_name_sub_claim_key'] = _ApiClient["default"].convertToType(data['azure_fixed_user_name_sub_claim_key'], 'String'); + } + + if (data.hasOwnProperty('azure_fixed_user_only')) { + obj['azure_fixed_user_only'] = _ApiClient["default"].convertToType(data['azure_fixed_user_only'], 'Boolean'); + } + + if (data.hasOwnProperty('azure_resource_group_name')) { + obj['azure_resource_group_name'] = _ApiClient["default"].convertToType(data['azure_resource_group_name'], 'String'); + } + + if (data.hasOwnProperty('azure_resource_name')) { + obj['azure_resource_name'] = _ApiClient["default"].convertToType(data['azure_resource_name'], 'String'); + } + + if (data.hasOwnProperty('azure_subscription_id')) { + obj['azure_subscription_id'] = _ApiClient["default"].convertToType(data['azure_subscription_id'], 'String'); + } + + if (data.hasOwnProperty('azure_tenant_id')) { + obj['azure_tenant_id'] = _ApiClient["default"].convertToType(data['azure_tenant_id'], 'String'); + } + + if (data.hasOwnProperty('azure_user_groups_obj_id')) { + obj['azure_user_groups_obj_id'] = _ApiClient["default"].convertToType(data['azure_user_groups_obj_id'], 'String'); + } + + if (data.hasOwnProperty('azure_user_portal_access')) { + obj['azure_user_portal_access'] = _ApiClient["default"].convertToType(data['azure_user_portal_access'], 'Boolean'); + } + + if (data.hasOwnProperty('azure_user_programmatic_access')) { + obj['azure_user_programmatic_access'] = _ApiClient["default"].convertToType(data['azure_user_programmatic_access'], 'Boolean'); + } + + if (data.hasOwnProperty('azure_user_roles_template_id')) { + obj['azure_user_roles_template_id'] = _ApiClient["default"].convertToType(data['azure_user_roles_template_id'], 'String'); + } + + if (data.hasOwnProperty('azure_username')) { + obj['azure_username'] = _ApiClient["default"].convertToType(data['azure_username'], 'String'); + } + + if (data.hasOwnProperty('cassandra_creation_statements')) { + obj['cassandra_creation_statements'] = _ApiClient["default"].convertToType(data['cassandra_creation_statements'], 'String'); + } + + if (data.hasOwnProperty('chef_organizations')) { + obj['chef_organizations'] = _ApiClient["default"].convertToType(data['chef_organizations'], 'String'); + } + + if (data.hasOwnProperty('chef_server_access_mode')) { + obj['chef_server_access_mode'] = _ApiClient["default"].convertToType(data['chef_server_access_mode'], 'String'); + } + + if (data.hasOwnProperty('chef_server_host_name')) { + obj['chef_server_host_name'] = _ApiClient["default"].convertToType(data['chef_server_host_name'], 'String'); + } + + if (data.hasOwnProperty('chef_server_key')) { + obj['chef_server_key'] = _ApiClient["default"].convertToType(data['chef_server_key'], 'String'); + } + + if (data.hasOwnProperty('chef_server_port')) { + obj['chef_server_port'] = _ApiClient["default"].convertToType(data['chef_server_port'], 'String'); + } + + if (data.hasOwnProperty('chef_server_url')) { + obj['chef_server_url'] = _ApiClient["default"].convertToType(data['chef_server_url'], 'String'); + } + + if (data.hasOwnProperty('chef_server_username')) { + obj['chef_server_username'] = _ApiClient["default"].convertToType(data['chef_server_username'], 'String'); + } + + if (data.hasOwnProperty('chef_skip_ssl')) { + obj['chef_skip_ssl'] = _ApiClient["default"].convertToType(data['chef_skip_ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('client_authentication_type')) { + obj['client_authentication_type'] = _ApiClient["default"].convertToType(data['client_authentication_type'], 'String'); + } + + if (data.hasOwnProperty('cloud_service_provider')) { + obj['cloud_service_provider'] = _ApiClient["default"].convertToType(data['cloud_service_provider'], 'String'); + } + + if (data.hasOwnProperty('connection_type')) { + obj['connection_type'] = _ApiClient["default"].convertToType(data['connection_type'], 'String'); + } + + if (data.hasOwnProperty('create_sync_url')) { + obj['create_sync_url'] = _ApiClient["default"].convertToType(data['create_sync_url'], 'String'); + } + + if (data.hasOwnProperty('db_client_id')) { + obj['db_client_id'] = _ApiClient["default"].convertToType(data['db_client_id'], 'String'); + } + + if (data.hasOwnProperty('db_client_secret')) { + obj['db_client_secret'] = _ApiClient["default"].convertToType(data['db_client_secret'], 'String'); + } + + if (data.hasOwnProperty('db_host_name')) { + obj['db_host_name'] = _ApiClient["default"].convertToType(data['db_host_name'], 'String'); + } + + if (data.hasOwnProperty('db_isolation_level')) { + obj['db_isolation_level'] = _ApiClient["default"].convertToType(data['db_isolation_level'], 'String'); + } + + if (data.hasOwnProperty('db_max_idle_conns')) { + obj['db_max_idle_conns'] = _ApiClient["default"].convertToType(data['db_max_idle_conns'], 'String'); + } + + if (data.hasOwnProperty('db_max_open_conns')) { + obj['db_max_open_conns'] = _ApiClient["default"].convertToType(data['db_max_open_conns'], 'String'); + } + + if (data.hasOwnProperty('db_name')) { + obj['db_name'] = _ApiClient["default"].convertToType(data['db_name'], 'String'); + } + + if (data.hasOwnProperty('db_port')) { + obj['db_port'] = _ApiClient["default"].convertToType(data['db_port'], 'String'); + } + + if (data.hasOwnProperty('db_private_key')) { + obj['db_private_key'] = _ApiClient["default"].convertToType(data['db_private_key'], 'String'); + } + + if (data.hasOwnProperty('db_private_key_passphrase')) { + obj['db_private_key_passphrase'] = _ApiClient["default"].convertToType(data['db_private_key_passphrase'], 'String'); + } + + if (data.hasOwnProperty('db_pwd')) { + obj['db_pwd'] = _ApiClient["default"].convertToType(data['db_pwd'], 'String'); + } + + if (data.hasOwnProperty('db_server_certificates')) { + obj['db_server_certificates'] = _ApiClient["default"].convertToType(data['db_server_certificates'], 'String'); + } + + if (data.hasOwnProperty('db_server_name')) { + obj['db_server_name'] = _ApiClient["default"].convertToType(data['db_server_name'], 'String'); + } + + if (data.hasOwnProperty('db_tenant_id')) { + obj['db_tenant_id'] = _ApiClient["default"].convertToType(data['db_tenant_id'], 'String'); + } + + if (data.hasOwnProperty('db_user_name')) { + obj['db_user_name'] = _ApiClient["default"].convertToType(data['db_user_name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'Boolean'); + } + + if (data.hasOwnProperty('dynamic_secret_id')) { + obj['dynamic_secret_id'] = _ApiClient["default"].convertToType(data['dynamic_secret_id'], 'Number'); + } + + if (data.hasOwnProperty('dynamic_secret_key')) { + obj['dynamic_secret_key'] = _ApiClient["default"].convertToType(data['dynamic_secret_key'], 'String'); + } + + if (data.hasOwnProperty('dynamic_secret_name')) { + obj['dynamic_secret_name'] = _ApiClient["default"].convertToType(data['dynamic_secret_name'], 'String'); + } + + if (data.hasOwnProperty('dynamic_secret_type')) { + obj['dynamic_secret_type'] = _ApiClient["default"].convertToType(data['dynamic_secret_type'], 'String'); + } + + if (data.hasOwnProperty('eks_access_key_id')) { + obj['eks_access_key_id'] = _ApiClient["default"].convertToType(data['eks_access_key_id'], 'String'); + } + + if (data.hasOwnProperty('eks_assume_role')) { + obj['eks_assume_role'] = _ApiClient["default"].convertToType(data['eks_assume_role'], 'String'); + } + + if (data.hasOwnProperty('eks_cluster_ca_certificate')) { + obj['eks_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['eks_cluster_ca_certificate'], 'String'); + } + + if (data.hasOwnProperty('eks_cluster_endpoint')) { + obj['eks_cluster_endpoint'] = _ApiClient["default"].convertToType(data['eks_cluster_endpoint'], 'String'); + } + + if (data.hasOwnProperty('eks_cluster_name')) { + obj['eks_cluster_name'] = _ApiClient["default"].convertToType(data['eks_cluster_name'], 'String'); + } + + if (data.hasOwnProperty('eks_region')) { + obj['eks_region'] = _ApiClient["default"].convertToType(data['eks_region'], 'String'); + } + + if (data.hasOwnProperty('eks_secret_access_key')) { + obj['eks_secret_access_key'] = _ApiClient["default"].convertToType(data['eks_secret_access_key'], 'String'); + } + + if (data.hasOwnProperty('enable_admin_rotation')) { + obj['enable_admin_rotation'] = _ApiClient["default"].convertToType(data['enable_admin_rotation'], 'Boolean'); + } + + if (data.hasOwnProperty('enforce_replay_prevention')) { + obj['enforce_replay_prevention'] = _ApiClient["default"].convertToType(data['enforce_replay_prevention'], 'Boolean'); + } + + if (data.hasOwnProperty('externally_provided_user')) { + obj['externally_provided_user'] = _ApiClient["default"].convertToType(data['externally_provided_user'], 'String'); + } + + if (data.hasOwnProperty('failure_message')) { + obj['failure_message'] = _ApiClient["default"].convertToType(data['failure_message'], 'String'); + } + + if (data.hasOwnProperty('fixed_user_only')) { + obj['fixed_user_only'] = _ApiClient["default"].convertToType(data['fixed_user_only'], 'String'); + } + + if (data.hasOwnProperty('gcp_key_algo')) { + obj['gcp_key_algo'] = _ApiClient["default"].convertToType(data['gcp_key_algo'], 'String'); + } + + if (data.hasOwnProperty('gcp_role_bindings')) { + obj['gcp_role_bindings'] = _ApiClient["default"].convertToType(data['gcp_role_bindings'], { + 'String': ['String'] + }); + } + + if (data.hasOwnProperty('gcp_service_account_email')) { + obj['gcp_service_account_email'] = _ApiClient["default"].convertToType(data['gcp_service_account_email'], 'String'); + } + + if (data.hasOwnProperty('gcp_service_account_key')) { + obj['gcp_service_account_key'] = _ApiClient["default"].convertToType(data['gcp_service_account_key'], 'String'); + } + + if (data.hasOwnProperty('gcp_service_account_key_base64')) { + obj['gcp_service_account_key_base64'] = _ApiClient["default"].convertToType(data['gcp_service_account_key_base64'], 'String'); + } + + if (data.hasOwnProperty('gcp_service_account_key_id')) { + obj['gcp_service_account_key_id'] = _ApiClient["default"].convertToType(data['gcp_service_account_key_id'], 'String'); + } + + if (data.hasOwnProperty('gcp_service_account_type')) { + obj['gcp_service_account_type'] = _ApiClient["default"].convertToType(data['gcp_service_account_type'], 'String'); + } + + if (data.hasOwnProperty('gcp_tmp_service_account_name')) { + obj['gcp_tmp_service_account_name'] = _ApiClient["default"].convertToType(data['gcp_tmp_service_account_name'], 'String'); + } + + if (data.hasOwnProperty('gcp_token_lifetime')) { + obj['gcp_token_lifetime'] = _ApiClient["default"].convertToType(data['gcp_token_lifetime'], 'String'); + } + + if (data.hasOwnProperty('gcp_token_scope')) { + obj['gcp_token_scope'] = _ApiClient["default"].convertToType(data['gcp_token_scope'], 'String'); + } + + if (data.hasOwnProperty('gcp_token_type')) { + obj['gcp_token_type'] = _ApiClient["default"].convertToType(data['gcp_token_type'], 'String'); + } + + if (data.hasOwnProperty('github_app_id')) { + obj['github_app_id'] = _ApiClient["default"].convertToType(data['github_app_id'], 'Number'); + } + + if (data.hasOwnProperty('github_app_private_key')) { + obj['github_app_private_key'] = _ApiClient["default"].convertToType(data['github_app_private_key'], 'String'); + } + + if (data.hasOwnProperty('github_base_url')) { + obj['github_base_url'] = _ApiClient["default"].convertToType(data['github_base_url'], 'String'); + } + + if (data.hasOwnProperty('github_installation_id')) { + obj['github_installation_id'] = _ApiClient["default"].convertToType(data['github_installation_id'], 'Number'); + } + + if (data.hasOwnProperty('github_installation_token_permissions')) { + obj['github_installation_token_permissions'] = _ApiClient["default"].convertToType(data['github_installation_token_permissions'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('github_installation_token_repositories')) { + obj['github_installation_token_repositories'] = _ApiClient["default"].convertToType(data['github_installation_token_repositories'], ['String']); + } + + if (data.hasOwnProperty('github_installation_token_repositories_ids')) { + obj['github_installation_token_repositories_ids'] = _ApiClient["default"].convertToType(data['github_installation_token_repositories_ids'], ['Number']); + } + + if (data.hasOwnProperty('github_organization_name')) { + obj['github_organization_name'] = _ApiClient["default"].convertToType(data['github_organization_name'], 'String'); + } + + if (data.hasOwnProperty('github_repository_path')) { + obj['github_repository_path'] = _ApiClient["default"].convertToType(data['github_repository_path'], 'String'); + } + + if (data.hasOwnProperty('gke_cluster_ca_certificate')) { + obj['gke_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['gke_cluster_ca_certificate'], 'String'); + } + + if (data.hasOwnProperty('gke_cluster_endpoint')) { + obj['gke_cluster_endpoint'] = _ApiClient["default"].convertToType(data['gke_cluster_endpoint'], 'String'); + } + + if (data.hasOwnProperty('gke_cluster_name')) { + obj['gke_cluster_name'] = _ApiClient["default"].convertToType(data['gke_cluster_name'], 'String'); + } + + if (data.hasOwnProperty('gke_service_account_key')) { + obj['gke_service_account_key'] = _ApiClient["default"].convertToType(data['gke_service_account_key'], 'String'); + } + + if (data.hasOwnProperty('gke_service_account_name')) { + obj['gke_service_account_name'] = _ApiClient["default"].convertToType(data['gke_service_account_name'], 'String'); + } + + if (data.hasOwnProperty('grant_types')) { + obj['grant_types'] = _ApiClient["default"].convertToType(data['grant_types'], ['String']); + } + + if (data.hasOwnProperty('groups')) { + obj['groups'] = _ApiClient["default"].convertToType(data['groups'], 'String'); + } + + if (data.hasOwnProperty('hanadb_creation_statements')) { + obj['hanadb_creation_statements'] = _ApiClient["default"].convertToType(data['hanadb_creation_statements'], 'String'); + } + + if (data.hasOwnProperty('hanadb_revocation_statements')) { + obj['hanadb_revocation_statements'] = _ApiClient["default"].convertToType(data['hanadb_revocation_statements'], 'String'); + } + + if (data.hasOwnProperty('host_name')) { + obj['host_name'] = _ApiClient["default"].convertToType(data['host_name'], 'String'); + } + + if (data.hasOwnProperty('host_port')) { + obj['host_port'] = _ApiClient["default"].convertToType(data['host_port'], 'String'); + } + + if (data.hasOwnProperty('implementation_type')) { + obj['implementation_type'] = _ApiClient["default"].convertToType(data['implementation_type'], 'String'); + } + + if (data.hasOwnProperty('is_fixed_user')) { + obj['is_fixed_user'] = _ApiClient["default"].convertToType(data['is_fixed_user'], 'String'); + } + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } + + if (data.hasOwnProperty('item_targets_assoc')) { + obj['item_targets_assoc'] = _ApiClient["default"].convertToType(data['item_targets_assoc'], [_ItemTargetAssociation["default"]]); + } + + if (data.hasOwnProperty('jwks')) { + obj['jwks'] = _ApiClient["default"].convertToType(data['jwks'], 'String'); + } + + if (data.hasOwnProperty('jwks_url')) { + obj['jwks_url'] = _ApiClient["default"].convertToType(data['jwks_url'], 'String'); + } + + if (data.hasOwnProperty('k8s_allowed_namespaces')) { + obj['k8s_allowed_namespaces'] = _ApiClient["default"].convertToType(data['k8s_allowed_namespaces'], 'String'); + } + + if (data.hasOwnProperty('k8s_auth_type')) { + obj['k8s_auth_type'] = _ApiClient["default"].convertToType(data['k8s_auth_type'], 'String'); + } + + if (data.hasOwnProperty('k8s_bearer_token')) { + obj['k8s_bearer_token'] = _ApiClient["default"].convertToType(data['k8s_bearer_token'], 'String'); + } + + if (data.hasOwnProperty('k8s_client_cert_data')) { + obj['k8s_client_cert_data'] = _ApiClient["default"].convertToType(data['k8s_client_cert_data'], 'String'); + } + + if (data.hasOwnProperty('k8s_client_key_data')) { + obj['k8s_client_key_data'] = _ApiClient["default"].convertToType(data['k8s_client_key_data'], 'String'); + } + + if (data.hasOwnProperty('k8s_cluster_ca_certificate')) { + obj['k8s_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['k8s_cluster_ca_certificate'], 'String'); + } + + if (data.hasOwnProperty('k8s_cluster_endpoint')) { + obj['k8s_cluster_endpoint'] = _ApiClient["default"].convertToType(data['k8s_cluster_endpoint'], 'String'); + } + + if (data.hasOwnProperty('k8s_dynamic_mode')) { + obj['k8s_dynamic_mode'] = _ApiClient["default"].convertToType(data['k8s_dynamic_mode'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s_multiple_doc_yaml_temp_definition')) { + obj['k8s_multiple_doc_yaml_temp_definition'] = _ApiClient["default"].convertToType(data['k8s_multiple_doc_yaml_temp_definition'], ['Number']); + } + + if (data.hasOwnProperty('k8s_namespace')) { + obj['k8s_namespace'] = _ApiClient["default"].convertToType(data['k8s_namespace'], 'String'); + } + + if (data.hasOwnProperty('k8s_role_name')) { + obj['k8s_role_name'] = _ApiClient["default"].convertToType(data['k8s_role_name'], 'String'); + } + + if (data.hasOwnProperty('k8s_role_type')) { + obj['k8s_role_type'] = _ApiClient["default"].convertToType(data['k8s_role_type'], 'String'); + } + + if (data.hasOwnProperty('k8s_service_account')) { + obj['k8s_service_account'] = _ApiClient["default"].convertToType(data['k8s_service_account'], 'String'); + } + + if (data.hasOwnProperty('last_admin_rotation')) { + obj['last_admin_rotation'] = _ApiClient["default"].convertToType(data['last_admin_rotation'], 'Number'); + } + + if (data.hasOwnProperty('ldap_audience')) { + obj['ldap_audience'] = _ApiClient["default"].convertToType(data['ldap_audience'], 'String'); + } + + if (data.hasOwnProperty('ldap_bind_dn')) { + obj['ldap_bind_dn'] = _ApiClient["default"].convertToType(data['ldap_bind_dn'], 'String'); + } + + if (data.hasOwnProperty('ldap_bind_password')) { + obj['ldap_bind_password'] = _ApiClient["default"].convertToType(data['ldap_bind_password'], 'String'); + } + + if (data.hasOwnProperty('ldap_certificate')) { + obj['ldap_certificate'] = _ApiClient["default"].convertToType(data['ldap_certificate'], 'String'); + } + + if (data.hasOwnProperty('ldap_group_dn')) { + obj['ldap_group_dn'] = _ApiClient["default"].convertToType(data['ldap_group_dn'], 'String'); + } + + if (data.hasOwnProperty('ldap_token_expiration')) { + obj['ldap_token_expiration'] = _ApiClient["default"].convertToType(data['ldap_token_expiration'], 'String'); + } + + if (data.hasOwnProperty('ldap_url')) { + obj['ldap_url'] = _ApiClient["default"].convertToType(data['ldap_url'], 'String'); + } + + if (data.hasOwnProperty('ldap_user_attr')) { + obj['ldap_user_attr'] = _ApiClient["default"].convertToType(data['ldap_user_attr'], 'String'); + } + + if (data.hasOwnProperty('ldap_user_dn')) { + obj['ldap_user_dn'] = _ApiClient["default"].convertToType(data['ldap_user_dn'], 'String'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('mongodb_atlas_api_private_key')) { + obj['mongodb_atlas_api_private_key'] = _ApiClient["default"].convertToType(data['mongodb_atlas_api_private_key'], 'String'); + } + + if (data.hasOwnProperty('mongodb_atlas_api_public_key')) { + obj['mongodb_atlas_api_public_key'] = _ApiClient["default"].convertToType(data['mongodb_atlas_api_public_key'], 'String'); + } + + if (data.hasOwnProperty('mongodb_atlas_project_id')) { + obj['mongodb_atlas_project_id'] = _ApiClient["default"].convertToType(data['mongodb_atlas_project_id'], 'String'); + } + + if (data.hasOwnProperty('mongodb_custom_data')) { + obj['mongodb_custom_data'] = _ApiClient["default"].convertToType(data['mongodb_custom_data'], 'String'); + } + + if (data.hasOwnProperty('mongodb_db_name')) { + obj['mongodb_db_name'] = _ApiClient["default"].convertToType(data['mongodb_db_name'], 'String'); + } + + if (data.hasOwnProperty('mongodb_default_auth_db')) { + obj['mongodb_default_auth_db'] = _ApiClient["default"].convertToType(data['mongodb_default_auth_db'], 'String'); + } + + if (data.hasOwnProperty('mongodb_host_port')) { + obj['mongodb_host_port'] = _ApiClient["default"].convertToType(data['mongodb_host_port'], 'String'); + } + + if (data.hasOwnProperty('mongodb_is_atlas')) { + obj['mongodb_is_atlas'] = _ApiClient["default"].convertToType(data['mongodb_is_atlas'], 'Boolean'); + } + + if (data.hasOwnProperty('mongodb_password')) { + obj['mongodb_password'] = _ApiClient["default"].convertToType(data['mongodb_password'], 'String'); + } + + if (data.hasOwnProperty('mongodb_roles')) { + obj['mongodb_roles'] = _ApiClient["default"].convertToType(data['mongodb_roles'], 'String'); + } + + if (data.hasOwnProperty('mongodb_uri_connection')) { + obj['mongodb_uri_connection'] = _ApiClient["default"].convertToType(data['mongodb_uri_connection'], 'String'); + } + + if (data.hasOwnProperty('mongodb_uri_options')) { + obj['mongodb_uri_options'] = _ApiClient["default"].convertToType(data['mongodb_uri_options'], 'String'); + } + + if (data.hasOwnProperty('mongodb_username')) { + obj['mongodb_username'] = _ApiClient["default"].convertToType(data['mongodb_username'], 'String'); + } + + if (data.hasOwnProperty('mssql_creation_statements')) { + obj['mssql_creation_statements'] = _ApiClient["default"].convertToType(data['mssql_creation_statements'], 'String'); + } + + if (data.hasOwnProperty('mssql_revocation_statements')) { + obj['mssql_revocation_statements'] = _ApiClient["default"].convertToType(data['mssql_revocation_statements'], 'String'); + } + + if (data.hasOwnProperty('mysql_creation_statements')) { + obj['mysql_creation_statements'] = _ApiClient["default"].convertToType(data['mysql_creation_statements'], 'String'); + } + + if (data.hasOwnProperty('mysql_revocation_statements')) { + obj['mysql_revocation_statements'] = _ApiClient["default"].convertToType(data['mysql_revocation_statements'], 'String'); + } + + if (data.hasOwnProperty('oracle_creation_statements')) { + obj['oracle_creation_statements'] = _ApiClient["default"].convertToType(data['oracle_creation_statements'], 'String'); + } + + if (data.hasOwnProperty('oracle_revocation_statements')) { + obj['oracle_revocation_statements'] = _ApiClient["default"].convertToType(data['oracle_revocation_statements'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('password_length')) { + obj['password_length'] = _ApiClient["default"].convertToType(data['password_length'], 'Number'); + } + + if (data.hasOwnProperty('password_policy')) { + obj['password_policy'] = _ApiClient["default"].convertToType(data['password_policy'], 'String'); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); + } + + if (data.hasOwnProperty('ping_url')) { + obj['ping_url'] = _ApiClient["default"].convertToType(data['ping_url'], 'String'); + } + + if (data.hasOwnProperty('postgres_creation_statements')) { + obj['postgres_creation_statements'] = _ApiClient["default"].convertToType(data['postgres_creation_statements'], 'String'); + } + + if (data.hasOwnProperty('postgres_revocation_statements')) { + obj['postgres_revocation_statements'] = _ApiClient["default"].convertToType(data['postgres_revocation_statements'], 'String'); + } + + if (data.hasOwnProperty('privileged_user')) { + obj['privileged_user'] = _ApiClient["default"].convertToType(data['privileged_user'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_server_password')) { + obj['rabbitmq_server_password'] = _ApiClient["default"].convertToType(data['rabbitmq_server_password'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_server_uri')) { + obj['rabbitmq_server_uri'] = _ApiClient["default"].convertToType(data['rabbitmq_server_uri'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_server_user')) { + obj['rabbitmq_server_user'] = _ApiClient["default"].convertToType(data['rabbitmq_server_user'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_user_conf_permission')) { + obj['rabbitmq_user_conf_permission'] = _ApiClient["default"].convertToType(data['rabbitmq_user_conf_permission'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_user_read_permission')) { + obj['rabbitmq_user_read_permission'] = _ApiClient["default"].convertToType(data['rabbitmq_user_read_permission'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_user_tags')) { + obj['rabbitmq_user_tags'] = _ApiClient["default"].convertToType(data['rabbitmq_user_tags'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_user_vhost')) { + obj['rabbitmq_user_vhost'] = _ApiClient["default"].convertToType(data['rabbitmq_user_vhost'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq_user_write_permission')) { + obj['rabbitmq_user_write_permission'] = _ApiClient["default"].convertToType(data['rabbitmq_user_write_permission'], 'String'); + } + + if (data.hasOwnProperty('redirect_uris')) { + obj['redirect_uris'] = _ApiClient["default"].convertToType(data['redirect_uris'], ['String']); + } + + if (data.hasOwnProperty('redshift_creation_statements')) { + obj['redshift_creation_statements'] = _ApiClient["default"].convertToType(data['redshift_creation_statements'], 'String'); + } + + if (data.hasOwnProperty('restricted_scopes')) { + obj['restricted_scopes'] = _ApiClient["default"].convertToType(data['restricted_scopes'], ['String']); + } + + if (data.hasOwnProperty('revoke_sync_url')) { + obj['revoke_sync_url'] = _ApiClient["default"].convertToType(data['revoke_sync_url'], 'String'); + } + + if (data.hasOwnProperty('rotate_sync_url')) { + obj['rotate_sync_url'] = _ApiClient["default"].convertToType(data['rotate_sync_url'], 'String'); + } + + if (data.hasOwnProperty('scopes')) { + obj['scopes'] = _ApiClient["default"].convertToType(data['scopes'], ['String']); + } + + if (data.hasOwnProperty('secure_remote_access_details')) { + obj['secure_remote_access_details'] = _SecureRemoteAccess["default"].constructFromObject(data['secure_remote_access_details']); + } + + if (data.hasOwnProperty('session_extension_warn_interval_min')) { + obj['session_extension_warn_interval_min'] = _ApiClient["default"].convertToType(data['session_extension_warn_interval_min'], 'Number'); + } + + if (data.hasOwnProperty('sf_account')) { + obj['sf_account'] = _ApiClient["default"].convertToType(data['sf_account'], 'String'); + } + + if (data.hasOwnProperty('sf_user_role')) { + obj['sf_user_role'] = _ApiClient["default"].convertToType(data['sf_user_role'], 'String'); + } + + if (data.hasOwnProperty('sf_warehouse_name')) { + obj['sf_warehouse_name'] = _ApiClient["default"].convertToType(data['sf_warehouse_name'], 'String'); + } + + if (data.hasOwnProperty('should_stop')) { + obj['should_stop'] = _ApiClient["default"].convertToType(data['should_stop'], 'String'); + } + + if (data.hasOwnProperty('signing_algorithm')) { + obj['signing_algorithm'] = _ApiClient["default"].convertToType(data['signing_algorithm'], 'String'); + } + + if (data.hasOwnProperty('ssl_connection_certificate')) { + obj['ssl_connection_certificate'] = _ApiClient["default"].convertToType(data['ssl_connection_certificate'], 'String'); + } + + if (data.hasOwnProperty('ssl_connection_mode')) { + obj['ssl_connection_mode'] = _ApiClient["default"].convertToType(data['ssl_connection_mode'], 'Boolean'); + } + + if (data.hasOwnProperty('subject_dn')) { + obj['subject_dn'] = _ApiClient["default"].convertToType(data['subject_dn'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('timeout_seconds')) { + obj['timeout_seconds'] = _ApiClient["default"].convertToType(data['timeout_seconds'], 'Number'); + } + + if (data.hasOwnProperty('use_gw_cloud_identity')) { + obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); + } + + if (data.hasOwnProperty('use_gw_service_account')) { + obj['use_gw_service_account'] = _ApiClient["default"].convertToType(data['use_gw_service_account'], 'Boolean'); + } + + if (data.hasOwnProperty('user_name')) { + obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], 'String'); + } + + if (data.hasOwnProperty('user_password')) { + obj['user_password'] = _ApiClient["default"].convertToType(data['user_password'], 'String'); + } + + if (data.hasOwnProperty('user_principal_name')) { + obj['user_principal_name'] = _ApiClient["default"].convertToType(data['user_principal_name'], 'String'); + } + + if (data.hasOwnProperty('user_ttl')) { + obj['user_ttl'] = _ApiClient["default"].convertToType(data['user_ttl'], 'String'); + } + + if (data.hasOwnProperty('username_length')) { + obj['username_length'] = _ApiClient["default"].convertToType(data['username_length'], 'Number'); + } + + if (data.hasOwnProperty('username_policy')) { + obj['username_policy'] = _ApiClient["default"].convertToType(data['username_policy'], 'String'); + } + + if (data.hasOwnProperty('venafi_allow_subdomains')) { + obj['venafi_allow_subdomains'] = _ApiClient["default"].convertToType(data['venafi_allow_subdomains'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi_allowed_domains')) { + obj['venafi_allowed_domains'] = _ApiClient["default"].convertToType(data['venafi_allowed_domains'], ['String']); + } + + if (data.hasOwnProperty('venafi_api_key')) { + obj['venafi_api_key'] = _ApiClient["default"].convertToType(data['venafi_api_key'], 'String'); + } + + if (data.hasOwnProperty('venafi_auto_generated_folder')) { + obj['venafi_auto_generated_folder'] = _ApiClient["default"].convertToType(data['venafi_auto_generated_folder'], 'String'); + } + + if (data.hasOwnProperty('venafi_base_url')) { + obj['venafi_base_url'] = _ApiClient["default"].convertToType(data['venafi_base_url'], 'String'); + } + + if (data.hasOwnProperty('venafi_root_first_in_chain')) { + obj['venafi_root_first_in_chain'] = _ApiClient["default"].convertToType(data['venafi_root_first_in_chain'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi_sign_using_akeyless_pki')) { + obj['venafi_sign_using_akeyless_pki'] = _ApiClient["default"].convertToType(data['venafi_sign_using_akeyless_pki'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi_signer_key_name')) { + obj['venafi_signer_key_name'] = _ApiClient["default"].convertToType(data['venafi_signer_key_name'], 'String'); + } + + if (data.hasOwnProperty('venafi_store_private_key')) { + obj['venafi_store_private_key'] = _ApiClient["default"].convertToType(data['venafi_store_private_key'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi_tpp_access_token')) { + obj['venafi_tpp_access_token'] = _ApiClient["default"].convertToType(data['venafi_tpp_access_token'], 'String'); + } + + if (data.hasOwnProperty('venafi_tpp_client_id')) { + obj['venafi_tpp_client_id'] = _ApiClient["default"].convertToType(data['venafi_tpp_client_id'], 'String'); + } + + if (data.hasOwnProperty('venafi_tpp_password')) { + obj['venafi_tpp_password'] = _ApiClient["default"].convertToType(data['venafi_tpp_password'], 'String'); + } + + if (data.hasOwnProperty('venafi_tpp_refresh_token')) { + obj['venafi_tpp_refresh_token'] = _ApiClient["default"].convertToType(data['venafi_tpp_refresh_token'], 'String'); + } + + if (data.hasOwnProperty('venafi_tpp_username')) { + obj['venafi_tpp_username'] = _ApiClient["default"].convertToType(data['venafi_tpp_username'], 'String'); + } + + if (data.hasOwnProperty('venafi_use_tpp')) { + obj['venafi_use_tpp'] = _ApiClient["default"].convertToType(data['venafi_use_tpp'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi_zone')) { + obj['venafi_zone'] = _ApiClient["default"].convertToType(data['venafi_zone'], 'String'); + } + + if (data.hasOwnProperty('warn_before_user_expiration_min')) { + obj['warn_before_user_expiration_min'] = _ApiClient["default"].convertToType(data['warn_before_user_expiration_min'], 'Number'); + } + } + + return obj; + } + }]); + + return DSProducerDetails; +}(); +/** + * @member {String} access_token_manager_id + */ + + +DSProducerDetails.prototype['access_token_manager_id'] = undefined; +/** + * @member {Array.} acl_rules + */ + +DSProducerDetails.prototype['acl_rules'] = undefined; +/** + * @member {Boolean} active + */ + +DSProducerDetails.prototype['active'] = undefined; +/** + * @member {String} admin_name + */ + +DSProducerDetails.prototype['admin_name'] = undefined; +/** + * @member {String} admin_pwd + */ + +DSProducerDetails.prototype['admin_pwd'] = undefined; +/** + * @member {Number} admin_rotation_interval_days + */ + +DSProducerDetails.prototype['admin_rotation_interval_days'] = undefined; +/** + * @member {String} administrative_port + */ + +DSProducerDetails.prototype['administrative_port'] = undefined; +/** + * @member {String} artifactory_admin_apikey + */ + +DSProducerDetails.prototype['artifactory_admin_apikey'] = undefined; +/** + * @member {String} artifactory_admin_username + */ + +DSProducerDetails.prototype['artifactory_admin_username'] = undefined; +/** + * @member {String} artifactory_base_url + */ + +DSProducerDetails.prototype['artifactory_base_url'] = undefined; +/** + * @member {String} artifactory_token_audience + */ + +DSProducerDetails.prototype['artifactory_token_audience'] = undefined; +/** + * @member {String} artifactory_token_scope + */ + +DSProducerDetails.prototype['artifactory_token_scope'] = undefined; +/** + * @member {String} authorization_port + */ + +DSProducerDetails.prototype['authorization_port'] = undefined; +/** + * @member {String} aws_access_key_id + */ + +DSProducerDetails.prototype['aws_access_key_id'] = undefined; +/** + * @member {String} aws_access_mode + */ + +DSProducerDetails.prototype['aws_access_mode'] = undefined; +/** + * @member {String} aws_region + */ + +DSProducerDetails.prototype['aws_region'] = undefined; +/** + * @member {String} aws_role_arns + */ + +DSProducerDetails.prototype['aws_role_arns'] = undefined; +/** + * @member {String} aws_secret_access_key + */ + +DSProducerDetails.prototype['aws_secret_access_key'] = undefined; +/** + * @member {String} aws_session_token + */ + +DSProducerDetails.prototype['aws_session_token'] = undefined; +/** + * @member {Boolean} aws_user_console_access + */ + +DSProducerDetails.prototype['aws_user_console_access'] = undefined; +/** + * @member {String} aws_user_groups + */ + +DSProducerDetails.prototype['aws_user_groups'] = undefined; +/** + * @member {String} aws_user_policies + */ + +DSProducerDetails.prototype['aws_user_policies'] = undefined; +/** + * @member {Boolean} aws_user_programmatic_access + */ + +DSProducerDetails.prototype['aws_user_programmatic_access'] = undefined; +/** + * @member {String} azure_app_object_id + */ + +DSProducerDetails.prototype['azure_app_object_id'] = undefined; +/** + * @member {String} azure_client_id + */ + +DSProducerDetails.prototype['azure_client_id'] = undefined; +/** + * @member {String} azure_client_secret + */ + +DSProducerDetails.prototype['azure_client_secret'] = undefined; +/** + * @member {String} azure_fixed_user_name_sub_claim_key + */ + +DSProducerDetails.prototype['azure_fixed_user_name_sub_claim_key'] = undefined; +/** + * @member {Boolean} azure_fixed_user_only + */ + +DSProducerDetails.prototype['azure_fixed_user_only'] = undefined; +/** + * @member {String} azure_resource_group_name + */ + +DSProducerDetails.prototype['azure_resource_group_name'] = undefined; +/** + * @member {String} azure_resource_name + */ + +DSProducerDetails.prototype['azure_resource_name'] = undefined; +/** + * @member {String} azure_subscription_id + */ + +DSProducerDetails.prototype['azure_subscription_id'] = undefined; +/** + * @member {String} azure_tenant_id + */ + +DSProducerDetails.prototype['azure_tenant_id'] = undefined; +/** + * @member {String} azure_user_groups_obj_id + */ + +DSProducerDetails.prototype['azure_user_groups_obj_id'] = undefined; +/** + * @member {Boolean} azure_user_portal_access + */ + +DSProducerDetails.prototype['azure_user_portal_access'] = undefined; +/** + * @member {Boolean} azure_user_programmatic_access + */ + +DSProducerDetails.prototype['azure_user_programmatic_access'] = undefined; +/** + * @member {String} azure_user_roles_template_id + */ + +DSProducerDetails.prototype['azure_user_roles_template_id'] = undefined; +/** + * @member {String} azure_username + */ + +DSProducerDetails.prototype['azure_username'] = undefined; +/** + * @member {String} cassandra_creation_statements + */ + +DSProducerDetails.prototype['cassandra_creation_statements'] = undefined; +/** + * @member {String} chef_organizations + */ + +DSProducerDetails.prototype['chef_organizations'] = undefined; +/** + * @member {String} chef_server_access_mode + */ + +DSProducerDetails.prototype['chef_server_access_mode'] = undefined; +/** + * @member {String} chef_server_host_name + */ + +DSProducerDetails.prototype['chef_server_host_name'] = undefined; +/** + * @member {String} chef_server_key + */ + +DSProducerDetails.prototype['chef_server_key'] = undefined; +/** + * @member {String} chef_server_port + */ + +DSProducerDetails.prototype['chef_server_port'] = undefined; +/** + * @member {String} chef_server_url + */ + +DSProducerDetails.prototype['chef_server_url'] = undefined; +/** + * @member {String} chef_server_username + */ + +DSProducerDetails.prototype['chef_server_username'] = undefined; +/** + * @member {Boolean} chef_skip_ssl + */ + +DSProducerDetails.prototype['chef_skip_ssl'] = undefined; +/** + * @member {String} client_authentication_type + */ + +DSProducerDetails.prototype['client_authentication_type'] = undefined; +/** + * @member {String} cloud_service_provider + */ + +DSProducerDetails.prototype['cloud_service_provider'] = undefined; +/** + * @member {String} connection_type + */ + +DSProducerDetails.prototype['connection_type'] = undefined; +/** + * @member {String} create_sync_url + */ + +DSProducerDetails.prototype['create_sync_url'] = undefined; +/** + * @member {String} db_client_id + */ + +DSProducerDetails.prototype['db_client_id'] = undefined; +/** + * @member {String} db_client_secret + */ + +DSProducerDetails.prototype['db_client_secret'] = undefined; +/** + * @member {String} db_host_name + */ + +DSProducerDetails.prototype['db_host_name'] = undefined; +/** + * @member {String} db_isolation_level + */ + +DSProducerDetails.prototype['db_isolation_level'] = undefined; +/** + * @member {String} db_max_idle_conns + */ + +DSProducerDetails.prototype['db_max_idle_conns'] = undefined; +/** + * @member {String} db_max_open_conns + */ + +DSProducerDetails.prototype['db_max_open_conns'] = undefined; +/** + * @member {String} db_name + */ + +DSProducerDetails.prototype['db_name'] = undefined; +/** + * @member {String} db_port + */ + +DSProducerDetails.prototype['db_port'] = undefined; +/** + * (Optional) Private Key in PEM format + * @member {String} db_private_key + */ + +DSProducerDetails.prototype['db_private_key'] = undefined; +/** + * @member {String} db_private_key_passphrase + */ + +DSProducerDetails.prototype['db_private_key_passphrase'] = undefined; +/** + * @member {String} db_pwd + */ + +DSProducerDetails.prototype['db_pwd'] = undefined; +/** + * (Optional) DBServerCertificates defines the set of root certificate authorities that clients use when verifying server certificates. If DBServerCertificates is empty, TLS uses the host's root CA set. + * @member {String} db_server_certificates + */ + +DSProducerDetails.prototype['db_server_certificates'] = undefined; +/** + * (Optional) ServerName is used to verify the hostname on the returned certificates unless InsecureSkipVerify is given. It is also included in the client's handshake to support virtual hosting unless it is an IP address. + * @member {String} db_server_name + */ + +DSProducerDetails.prototype['db_server_name'] = undefined; +/** + * @member {String} db_tenant_id + */ + +DSProducerDetails.prototype['db_tenant_id'] = undefined; +/** + * @member {String} db_user_name + */ + +DSProducerDetails.prototype['db_user_name'] = undefined; +/** + * @member {Boolean} delete_protection + */ + +DSProducerDetails.prototype['delete_protection'] = undefined; +/** + * @member {Number} dynamic_secret_id + */ + +DSProducerDetails.prototype['dynamic_secret_id'] = undefined; +/** + * @member {String} dynamic_secret_key + */ + +DSProducerDetails.prototype['dynamic_secret_key'] = undefined; +/** + * @member {String} dynamic_secret_name + */ + +DSProducerDetails.prototype['dynamic_secret_name'] = undefined; +/** + * @member {String} dynamic_secret_type + */ + +DSProducerDetails.prototype['dynamic_secret_type'] = undefined; +/** + * @member {String} eks_access_key_id + */ + +DSProducerDetails.prototype['eks_access_key_id'] = undefined; +/** + * @member {String} eks_assume_role + */ + +DSProducerDetails.prototype['eks_assume_role'] = undefined; +/** + * @member {String} eks_cluster_ca_certificate + */ + +DSProducerDetails.prototype['eks_cluster_ca_certificate'] = undefined; +/** + * @member {String} eks_cluster_endpoint + */ + +DSProducerDetails.prototype['eks_cluster_endpoint'] = undefined; +/** + * @member {String} eks_cluster_name + */ + +DSProducerDetails.prototype['eks_cluster_name'] = undefined; +/** + * @member {String} eks_region + */ + +DSProducerDetails.prototype['eks_region'] = undefined; +/** + * @member {String} eks_secret_access_key + */ + +DSProducerDetails.prototype['eks_secret_access_key'] = undefined; +/** + * @member {Boolean} enable_admin_rotation + */ + +DSProducerDetails.prototype['enable_admin_rotation'] = undefined; +/** + * relevant for PRIVATE_KEY_JWT client authentication type + * @member {Boolean} enforce_replay_prevention + */ + +DSProducerDetails.prototype['enforce_replay_prevention'] = undefined; +/** + * @member {String} externally_provided_user + */ + +DSProducerDetails.prototype['externally_provided_user'] = undefined; +/** + * @member {String} failure_message + */ + +DSProducerDetails.prototype['failure_message'] = undefined; +/** + * @member {String} fixed_user_only + */ + +DSProducerDetails.prototype['fixed_user_only'] = undefined; +/** + * @member {String} gcp_key_algo + */ + +DSProducerDetails.prototype['gcp_key_algo'] = undefined; +/** + * @member {Object.>} gcp_role_bindings + */ + +DSProducerDetails.prototype['gcp_role_bindings'] = undefined; +/** + * GCPServiceAccountEmail overrides the deprecated field from the target + * @member {String} gcp_service_account_email + */ + +DSProducerDetails.prototype['gcp_service_account_email'] = undefined; +/** + * @member {String} gcp_service_account_key + */ + +DSProducerDetails.prototype['gcp_service_account_key'] = undefined; +/** + * @member {String} gcp_service_account_key_base64 + */ + +DSProducerDetails.prototype['gcp_service_account_key_base64'] = undefined; +/** + * @member {String} gcp_service_account_key_id + */ + +DSProducerDetails.prototype['gcp_service_account_key_id'] = undefined; +/** + * @member {String} gcp_service_account_type + */ + +DSProducerDetails.prototype['gcp_service_account_type'] = undefined; +/** + * @member {String} gcp_tmp_service_account_name + */ + +DSProducerDetails.prototype['gcp_tmp_service_account_name'] = undefined; +/** + * @member {String} gcp_token_lifetime + */ + +DSProducerDetails.prototype['gcp_token_lifetime'] = undefined; +/** + * @member {String} gcp_token_scope + */ + +DSProducerDetails.prototype['gcp_token_scope'] = undefined; +/** + * @member {String} gcp_token_type + */ + +DSProducerDetails.prototype['gcp_token_type'] = undefined; +/** + * @member {Number} github_app_id + */ + +DSProducerDetails.prototype['github_app_id'] = undefined; +/** + * @member {String} github_app_private_key + */ + +DSProducerDetails.prototype['github_app_private_key'] = undefined; +/** + * @member {String} github_base_url + */ + +DSProducerDetails.prototype['github_base_url'] = undefined; +/** + * @member {Number} github_installation_id + */ + +DSProducerDetails.prototype['github_installation_id'] = undefined; +/** + * @member {Object.} github_installation_token_permissions + */ + +DSProducerDetails.prototype['github_installation_token_permissions'] = undefined; +/** + * @member {Array.} github_installation_token_repositories + */ + +DSProducerDetails.prototype['github_installation_token_repositories'] = undefined; +/** + * @member {Array.} github_installation_token_repositories_ids + */ + +DSProducerDetails.prototype['github_installation_token_repositories_ids'] = undefined; +/** + * @member {String} github_organization_name + */ + +DSProducerDetails.prototype['github_organization_name'] = undefined; +/** + * @member {String} github_repository_path + */ + +DSProducerDetails.prototype['github_repository_path'] = undefined; +/** + * @member {String} gke_cluster_ca_certificate + */ + +DSProducerDetails.prototype['gke_cluster_ca_certificate'] = undefined; +/** + * @member {String} gke_cluster_endpoint + */ + +DSProducerDetails.prototype['gke_cluster_endpoint'] = undefined; +/** + * @member {String} gke_cluster_name + */ + +DSProducerDetails.prototype['gke_cluster_name'] = undefined; +/** + * @member {String} gke_service_account_key + */ + +DSProducerDetails.prototype['gke_service_account_key'] = undefined; +/** + * @member {String} gke_service_account_name + */ + +DSProducerDetails.prototype['gke_service_account_name'] = undefined; +/** + * @member {Array.} grant_types + */ + +DSProducerDetails.prototype['grant_types'] = undefined; +/** + * @member {String} groups + */ + +DSProducerDetails.prototype['groups'] = undefined; +/** + * @member {String} hanadb_creation_statements + */ + +DSProducerDetails.prototype['hanadb_creation_statements'] = undefined; +/** + * @member {String} hanadb_revocation_statements + */ + +DSProducerDetails.prototype['hanadb_revocation_statements'] = undefined; +/** + * @member {String} host_name + */ + +DSProducerDetails.prototype['host_name'] = undefined; +/** + * @member {String} host_port + */ + +DSProducerDetails.prototype['host_port'] = undefined; +/** + * @member {String} implementation_type + */ + +DSProducerDetails.prototype['implementation_type'] = undefined; +/** + * @member {String} is_fixed_user + */ + +DSProducerDetails.prototype['is_fixed_user'] = undefined; +/** + * relevant for CLIENT_TLS_CERTIFICATE client authentication type + * @member {String} issuer + */ + +DSProducerDetails.prototype['issuer'] = undefined; +/** + * @member {Array.} item_targets_assoc + */ + +DSProducerDetails.prototype['item_targets_assoc'] = undefined; +/** + * @member {String} jwks + */ + +DSProducerDetails.prototype['jwks'] = undefined; +/** + * @member {String} jwks_url + */ + +DSProducerDetails.prototype['jwks_url'] = undefined; +/** + * comma-separated list of allowed namespaces. Can hold just * which signifies that any namespace is allowed + * @member {String} k8s_allowed_namespaces + */ + +DSProducerDetails.prototype['k8s_allowed_namespaces'] = undefined; +/** + * @member {String} k8s_auth_type + */ + +DSProducerDetails.prototype['k8s_auth_type'] = undefined; +/** + * @member {String} k8s_bearer_token + */ + +DSProducerDetails.prototype['k8s_bearer_token'] = undefined; +/** + * For K8s Client certificates authentication + * @member {String} k8s_client_cert_data + */ + +DSProducerDetails.prototype['k8s_client_cert_data'] = undefined; +/** + * @member {String} k8s_client_key_data + */ + +DSProducerDetails.prototype['k8s_client_key_data'] = undefined; +/** + * @member {String} k8s_cluster_ca_certificate + */ + +DSProducerDetails.prototype['k8s_cluster_ca_certificate'] = undefined; +/** + * @member {String} k8s_cluster_endpoint + */ + +DSProducerDetails.prototype['k8s_cluster_endpoint'] = undefined; +/** + * when native k8s is in dynamic mode, user can define allowed namespaces, K8sServiceAccount doesn't exist from the start and will only be created at time of getting dynamic secret value By default dynamic mode is false and producer behaves like it did before + * @member {Boolean} k8s_dynamic_mode + */ + +DSProducerDetails.prototype['k8s_dynamic_mode'] = undefined; +/** + * Yaml definition for creation of temporary objects. Field that can hold multiple docs from which following will be extracted: ServiceAccount, Role/ClusterRole and RoleBinding/ClusterRoleBinding. If ServiceAccount not specified - it will be generated automatically + * @member {Array.} k8s_multiple_doc_yaml_temp_definition + */ + +DSProducerDetails.prototype['k8s_multiple_doc_yaml_temp_definition'] = undefined; +/** + * @member {String} k8s_namespace + */ + +DSProducerDetails.prototype['k8s_namespace'] = undefined; +/** + * Name of the pre-existing Role or ClusterRole to bind a generated service account to. + * @member {String} k8s_role_name + */ + +DSProducerDetails.prototype['k8s_role_name'] = undefined; +/** + * @member {String} k8s_role_type + */ + +DSProducerDetails.prototype['k8s_role_type'] = undefined; +/** + * @member {String} k8s_service_account + */ + +DSProducerDetails.prototype['k8s_service_account'] = undefined; +/** + * @member {Number} last_admin_rotation + */ + +DSProducerDetails.prototype['last_admin_rotation'] = undefined; +/** + * @member {String} ldap_audience + */ + +DSProducerDetails.prototype['ldap_audience'] = undefined; +/** + * @member {String} ldap_bind_dn + */ + +DSProducerDetails.prototype['ldap_bind_dn'] = undefined; +/** + * @member {String} ldap_bind_password + */ + +DSProducerDetails.prototype['ldap_bind_password'] = undefined; +/** + * @member {String} ldap_certificate + */ + +DSProducerDetails.prototype['ldap_certificate'] = undefined; +/** + * @member {String} ldap_group_dn + */ + +DSProducerDetails.prototype['ldap_group_dn'] = undefined; +/** + * @member {String} ldap_token_expiration + */ + +DSProducerDetails.prototype['ldap_token_expiration'] = undefined; +/** + * @member {String} ldap_url + */ + +DSProducerDetails.prototype['ldap_url'] = undefined; +/** + * @member {String} ldap_user_attr + */ + +DSProducerDetails.prototype['ldap_user_attr'] = undefined; +/** + * @member {String} ldap_user_dn + */ + +DSProducerDetails.prototype['ldap_user_dn'] = undefined; +/** + * @member {String} metadata + */ + +DSProducerDetails.prototype['metadata'] = undefined; +/** + * @member {String} mongodb_atlas_api_private_key + */ + +DSProducerDetails.prototype['mongodb_atlas_api_private_key'] = undefined; +/** + * @member {String} mongodb_atlas_api_public_key + */ + +DSProducerDetails.prototype['mongodb_atlas_api_public_key'] = undefined; +/** + * mongodb atlas fields + * @member {String} mongodb_atlas_project_id + */ + +DSProducerDetails.prototype['mongodb_atlas_project_id'] = undefined; +/** + * @member {String} mongodb_custom_data + */ + +DSProducerDetails.prototype['mongodb_custom_data'] = undefined; +/** + * common fields + * @member {String} mongodb_db_name + */ + +DSProducerDetails.prototype['mongodb_db_name'] = undefined; +/** + * @member {String} mongodb_default_auth_db + */ + +DSProducerDetails.prototype['mongodb_default_auth_db'] = undefined; +/** + * @member {String} mongodb_host_port + */ + +DSProducerDetails.prototype['mongodb_host_port'] = undefined; +/** + * @member {Boolean} mongodb_is_atlas + */ + +DSProducerDetails.prototype['mongodb_is_atlas'] = undefined; +/** + * @member {String} mongodb_password + */ + +DSProducerDetails.prototype['mongodb_password'] = undefined; +/** + * common fields + * @member {String} mongodb_roles + */ + +DSProducerDetails.prototype['mongodb_roles'] = undefined; +/** + * mongodb fields + * @member {String} mongodb_uri_connection + */ + +DSProducerDetails.prototype['mongodb_uri_connection'] = undefined; +/** + * @member {String} mongodb_uri_options + */ + +DSProducerDetails.prototype['mongodb_uri_options'] = undefined; +/** + * @member {String} mongodb_username + */ + +DSProducerDetails.prototype['mongodb_username'] = undefined; +/** + * @member {String} mssql_creation_statements + */ + +DSProducerDetails.prototype['mssql_creation_statements'] = undefined; +/** + * @member {String} mssql_revocation_statements + */ + +DSProducerDetails.prototype['mssql_revocation_statements'] = undefined; +/** + * @member {String} mysql_creation_statements + */ + +DSProducerDetails.prototype['mysql_creation_statements'] = undefined; +/** + * @member {String} mysql_revocation_statements + */ + +DSProducerDetails.prototype['mysql_revocation_statements'] = undefined; +/** + * @member {String} oracle_creation_statements + */ + +DSProducerDetails.prototype['oracle_creation_statements'] = undefined; +/** + * @member {String} oracle_revocation_statements + */ + +DSProducerDetails.prototype['oracle_revocation_statements'] = undefined; +/** + * @member {String} password + */ + +DSProducerDetails.prototype['password'] = undefined; +/** + * @member {Number} password_length + */ + +DSProducerDetails.prototype['password_length'] = undefined; +/** + * @member {String} password_policy + */ + +DSProducerDetails.prototype['password_policy'] = undefined; +/** + * @member {String} payload + */ + +DSProducerDetails.prototype['payload'] = undefined; +/** + * @member {String} ping_url + */ + +DSProducerDetails.prototype['ping_url'] = undefined; +/** + * @member {String} postgres_creation_statements + */ + +DSProducerDetails.prototype['postgres_creation_statements'] = undefined; +/** + * @member {String} postgres_revocation_statements + */ + +DSProducerDetails.prototype['postgres_revocation_statements'] = undefined; +/** + * @member {String} privileged_user + */ + +DSProducerDetails.prototype['privileged_user'] = undefined; +/** + * @member {String} rabbitmq_server_password + */ + +DSProducerDetails.prototype['rabbitmq_server_password'] = undefined; +/** + * @member {String} rabbitmq_server_uri + */ + +DSProducerDetails.prototype['rabbitmq_server_uri'] = undefined; +/** + * @member {String} rabbitmq_server_user + */ + +DSProducerDetails.prototype['rabbitmq_server_user'] = undefined; +/** + * @member {String} rabbitmq_user_conf_permission + */ + +DSProducerDetails.prototype['rabbitmq_user_conf_permission'] = undefined; +/** + * @member {String} rabbitmq_user_read_permission + */ + +DSProducerDetails.prototype['rabbitmq_user_read_permission'] = undefined; +/** + * @member {String} rabbitmq_user_tags + */ + +DSProducerDetails.prototype['rabbitmq_user_tags'] = undefined; +/** + * @member {String} rabbitmq_user_vhost + */ + +DSProducerDetails.prototype['rabbitmq_user_vhost'] = undefined; +/** + * @member {String} rabbitmq_user_write_permission + */ + +DSProducerDetails.prototype['rabbitmq_user_write_permission'] = undefined; +/** + * @member {Array.} redirect_uris + */ + +DSProducerDetails.prototype['redirect_uris'] = undefined; +/** + * @member {String} redshift_creation_statements + */ + +DSProducerDetails.prototype['redshift_creation_statements'] = undefined; +/** + * @member {Array.} restricted_scopes + */ + +DSProducerDetails.prototype['restricted_scopes'] = undefined; +/** + * @member {String} revoke_sync_url + */ + +DSProducerDetails.prototype['revoke_sync_url'] = undefined; +/** + * @member {String} rotate_sync_url + */ + +DSProducerDetails.prototype['rotate_sync_url'] = undefined; +/** + * @member {Array.} scopes + */ + +DSProducerDetails.prototype['scopes'] = undefined; +/** + * @member {module:model/SecureRemoteAccess} secure_remote_access_details + */ + +DSProducerDetails.prototype['secure_remote_access_details'] = undefined; +/** + * @member {Number} session_extension_warn_interval_min + */ + +DSProducerDetails.prototype['session_extension_warn_interval_min'] = undefined; +/** + * @member {String} sf_account + */ + +DSProducerDetails.prototype['sf_account'] = undefined; +/** + * generated users info + * @member {String} sf_user_role + */ + +DSProducerDetails.prototype['sf_user_role'] = undefined; +/** + * @member {String} sf_warehouse_name + */ + +DSProducerDetails.prototype['sf_warehouse_name'] = undefined; +/** + * TODO delete this after migration + * @member {String} should_stop + */ + +DSProducerDetails.prototype['should_stop'] = undefined; +/** + * @member {String} signing_algorithm + */ + +DSProducerDetails.prototype['signing_algorithm'] = undefined; +/** + * (Optional) SSLConnectionCertificate defines the certificate for SSL connection. Must be base64 certificate loaded by UI using file loader field + * @member {String} ssl_connection_certificate + */ + +DSProducerDetails.prototype['ssl_connection_certificate'] = undefined; +/** + * (Optional) SSLConnectionMode defines if SSL mode will be used to connect to DB + * @member {Boolean} ssl_connection_mode + */ + +DSProducerDetails.prototype['ssl_connection_mode'] = undefined; +/** + * @member {String} subject_dn + */ + +DSProducerDetails.prototype['subject_dn'] = undefined; +/** + * @member {Array.} tags + */ + +DSProducerDetails.prototype['tags'] = undefined; +/** + * @member {Number} timeout_seconds + */ + +DSProducerDetails.prototype['timeout_seconds'] = undefined; +/** + * @member {Boolean} use_gw_cloud_identity + */ + +DSProducerDetails.prototype['use_gw_cloud_identity'] = undefined; +/** + * @member {Boolean} use_gw_service_account + */ + +DSProducerDetails.prototype['use_gw_service_account'] = undefined; +/** + * @member {String} user_name + */ + +DSProducerDetails.prototype['user_name'] = undefined; +/** + * @member {String} user_password + */ + +DSProducerDetails.prototype['user_password'] = undefined; +/** + * @member {String} user_principal_name + */ + +DSProducerDetails.prototype['user_principal_name'] = undefined; +/** + * @member {String} user_ttl + */ + +DSProducerDetails.prototype['user_ttl'] = undefined; +/** + * @member {Number} username_length + */ + +DSProducerDetails.prototype['username_length'] = undefined; +/** + * @member {String} username_policy + */ + +DSProducerDetails.prototype['username_policy'] = undefined; +/** + * @member {Boolean} venafi_allow_subdomains + */ + +DSProducerDetails.prototype['venafi_allow_subdomains'] = undefined; +/** + * @member {Array.} venafi_allowed_domains + */ + +DSProducerDetails.prototype['venafi_allowed_domains'] = undefined; +/** + * @member {String} venafi_api_key + */ + +DSProducerDetails.prototype['venafi_api_key'] = undefined; +/** + * @member {String} venafi_auto_generated_folder + */ + +DSProducerDetails.prototype['venafi_auto_generated_folder'] = undefined; +/** + * @member {String} venafi_base_url + */ + +DSProducerDetails.prototype['venafi_base_url'] = undefined; +/** + * @member {Boolean} venafi_root_first_in_chain + */ + +DSProducerDetails.prototype['venafi_root_first_in_chain'] = undefined; +/** + * @member {Boolean} venafi_sign_using_akeyless_pki + */ + +DSProducerDetails.prototype['venafi_sign_using_akeyless_pki'] = undefined; +/** + * @member {String} venafi_signer_key_name + */ + +DSProducerDetails.prototype['venafi_signer_key_name'] = undefined; +/** + * @member {Boolean} venafi_store_private_key + */ + +DSProducerDetails.prototype['venafi_store_private_key'] = undefined; +/** + * @member {String} venafi_tpp_access_token + */ + +DSProducerDetails.prototype['venafi_tpp_access_token'] = undefined; +/** + * @member {String} venafi_tpp_client_id + */ + +DSProducerDetails.prototype['venafi_tpp_client_id'] = undefined; +/** + * Deprecated: VenafiAccessToken and VenafiRefreshToken should be used instead + * @member {String} venafi_tpp_password + */ + +DSProducerDetails.prototype['venafi_tpp_password'] = undefined; +/** + * @member {String} venafi_tpp_refresh_token + */ + +DSProducerDetails.prototype['venafi_tpp_refresh_token'] = undefined; +/** + * Deprecated: VenafiAccessToken and VenafiRefreshToken should be used instead + * @member {String} venafi_tpp_username + */ + +DSProducerDetails.prototype['venafi_tpp_username'] = undefined; +/** + * @member {Boolean} venafi_use_tpp + */ + +DSProducerDetails.prototype['venafi_use_tpp'] = undefined; +/** + * @member {String} venafi_zone + */ + +DSProducerDetails.prototype['venafi_zone'] = undefined; +/** + * @member {Number} warn_before_user_expiration_min + */ + +DSProducerDetails.prototype['warn_before_user_expiration_min'] = undefined; +var _default = DSProducerDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 2116: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DataProtectionSection model module. + * @module model/DataProtectionSection + * @version 3.6.3 + */ +var DataProtectionSection = /*#__PURE__*/function () { + /** + * Constructs a new DataProtectionSection. + * We need the fields to be pointers as we use the same struct for partial updates as well + * @alias module:model/DataProtectionSection + */ + function DataProtectionSection() { + _classCallCheck(this, DataProtectionSection); + + DataProtectionSection.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DataProtectionSection, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DataProtectionSection from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DataProtectionSection} obj Optional instance to populate. + * @return {module:model/DataProtectionSection} The populated DataProtectionSection instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DataProtectionSection(); + + if (data.hasOwnProperty('enable_classic_key_protection')) { + obj['enable_classic_key_protection'] = _ApiClient["default"].convertToType(data['enable_classic_key_protection'], 'Boolean'); + } + } + + return obj; + } + }]); + + return DataProtectionSection; +}(); +/** + * @member {Boolean} enable_classic_key_protection + */ + + +DataProtectionSection.prototype['enable_classic_key_protection'] = undefined; +var _default = DataProtectionSection; +exports["default"] = _default; + +/***/ }), + +/***/ 26413: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DatadogForwardingConfig model module. + * @module model/DatadogForwardingConfig + * @version 3.6.3 + */ +var DatadogForwardingConfig = /*#__PURE__*/function () { + /** + * Constructs a new DatadogForwardingConfig. + * @alias module:model/DatadogForwardingConfig + */ + function DatadogForwardingConfig() { + _classCallCheck(this, DatadogForwardingConfig); + + DatadogForwardingConfig.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DatadogForwardingConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DatadogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DatadogForwardingConfig} obj Optional instance to populate. + * @return {module:model/DatadogForwardingConfig} The populated DatadogForwardingConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DatadogForwardingConfig(); + + if (data.hasOwnProperty('datadog_api_key')) { + obj['datadog_api_key'] = _ApiClient["default"].convertToType(data['datadog_api_key'], 'String'); + } + + if (data.hasOwnProperty('datadog_host')) { + obj['datadog_host'] = _ApiClient["default"].convertToType(data['datadog_host'], 'String'); + } + + if (data.hasOwnProperty('datadog_log_service')) { + obj['datadog_log_service'] = _ApiClient["default"].convertToType(data['datadog_log_service'], 'String'); + } + + if (data.hasOwnProperty('datadog_log_source')) { + obj['datadog_log_source'] = _ApiClient["default"].convertToType(data['datadog_log_source'], 'String'); + } + + if (data.hasOwnProperty('datadog_log_tags')) { + obj['datadog_log_tags'] = _ApiClient["default"].convertToType(data['datadog_log_tags'], 'String'); + } + } + + return obj; + } + }]); + + return DatadogForwardingConfig; +}(); +/** + * @member {String} datadog_api_key + */ + + +DatadogForwardingConfig.prototype['datadog_api_key'] = undefined; +/** + * @member {String} datadog_host + */ + +DatadogForwardingConfig.prototype['datadog_host'] = undefined; +/** + * @member {String} datadog_log_service + */ + +DatadogForwardingConfig.prototype['datadog_log_service'] = undefined; +/** + * @member {String} datadog_log_source + */ + +DatadogForwardingConfig.prototype['datadog_log_source'] = undefined; +/** + * @member {String} datadog_log_tags + */ + +DatadogForwardingConfig.prototype['datadog_log_tags'] = undefined; +var _default = DatadogForwardingConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 33853: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DbTargetDetails model module. + * @module model/DbTargetDetails + * @version 3.6.3 + */ +var DbTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new DbTargetDetails. + * DbTargetDetails + * @alias module:model/DbTargetDetails + */ + function DbTargetDetails() { + _classCallCheck(this, DbTargetDetails); + + DbTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DbTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DbTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DbTargetDetails} obj Optional instance to populate. + * @return {module:model/DbTargetDetails} The populated DbTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DbTargetDetails(); + + if (data.hasOwnProperty('cloud_service_provider')) { + obj['cloud_service_provider'] = _ApiClient["default"].convertToType(data['cloud_service_provider'], 'String'); + } + + if (data.hasOwnProperty('connection_type')) { + obj['connection_type'] = _ApiClient["default"].convertToType(data['connection_type'], 'String'); + } + + if (data.hasOwnProperty('db_client_id')) { + obj['db_client_id'] = _ApiClient["default"].convertToType(data['db_client_id'], 'String'); + } + + if (data.hasOwnProperty('db_client_secret')) { + obj['db_client_secret'] = _ApiClient["default"].convertToType(data['db_client_secret'], 'String'); + } + + if (data.hasOwnProperty('db_host_name')) { + obj['db_host_name'] = _ApiClient["default"].convertToType(data['db_host_name'], 'String'); + } + + if (data.hasOwnProperty('db_name')) { + obj['db_name'] = _ApiClient["default"].convertToType(data['db_name'], 'String'); + } + + if (data.hasOwnProperty('db_port')) { + obj['db_port'] = _ApiClient["default"].convertToType(data['db_port'], 'String'); + } + + if (data.hasOwnProperty('db_private_key')) { + obj['db_private_key'] = _ApiClient["default"].convertToType(data['db_private_key'], 'String'); + } + + if (data.hasOwnProperty('db_private_key_passphrase')) { + obj['db_private_key_passphrase'] = _ApiClient["default"].convertToType(data['db_private_key_passphrase'], 'String'); + } + + if (data.hasOwnProperty('db_pwd')) { + obj['db_pwd'] = _ApiClient["default"].convertToType(data['db_pwd'], 'String'); + } + + if (data.hasOwnProperty('db_server_certificates')) { + obj['db_server_certificates'] = _ApiClient["default"].convertToType(data['db_server_certificates'], 'String'); + } + + if (data.hasOwnProperty('db_server_name')) { + obj['db_server_name'] = _ApiClient["default"].convertToType(data['db_server_name'], 'String'); + } + + if (data.hasOwnProperty('db_tenant_id')) { + obj['db_tenant_id'] = _ApiClient["default"].convertToType(data['db_tenant_id'], 'String'); + } + + if (data.hasOwnProperty('db_user_name')) { + obj['db_user_name'] = _ApiClient["default"].convertToType(data['db_user_name'], 'String'); + } + + if (data.hasOwnProperty('sf_account')) { + obj['sf_account'] = _ApiClient["default"].convertToType(data['sf_account'], 'String'); + } + + if (data.hasOwnProperty('ssl_connection_certificate')) { + obj['ssl_connection_certificate'] = _ApiClient["default"].convertToType(data['ssl_connection_certificate'], 'String'); + } + + if (data.hasOwnProperty('ssl_connection_mode')) { + obj['ssl_connection_mode'] = _ApiClient["default"].convertToType(data['ssl_connection_mode'], 'Boolean'); + } + } + + return obj; + } + }]); + + return DbTargetDetails; +}(); +/** + * @member {String} cloud_service_provider + */ + + +DbTargetDetails.prototype['cloud_service_provider'] = undefined; +/** + * @member {String} connection_type + */ + +DbTargetDetails.prototype['connection_type'] = undefined; +/** + * @member {String} db_client_id + */ + +DbTargetDetails.prototype['db_client_id'] = undefined; +/** + * @member {String} db_client_secret + */ + +DbTargetDetails.prototype['db_client_secret'] = undefined; +/** + * @member {String} db_host_name + */ + +DbTargetDetails.prototype['db_host_name'] = undefined; +/** + * @member {String} db_name + */ + +DbTargetDetails.prototype['db_name'] = undefined; +/** + * @member {String} db_port + */ + +DbTargetDetails.prototype['db_port'] = undefined; +/** + * (Optional) Private Key in PEM format + * @member {String} db_private_key + */ + +DbTargetDetails.prototype['db_private_key'] = undefined; +/** + * @member {String} db_private_key_passphrase + */ + +DbTargetDetails.prototype['db_private_key_passphrase'] = undefined; +/** + * @member {String} db_pwd + */ + +DbTargetDetails.prototype['db_pwd'] = undefined; +/** + * (Optional) DBServerCertificates defines the set of root certificate authorities that clients use when verifying server certificates. If DBServerCertificates is empty, TLS uses the host's root CA set. + * @member {String} db_server_certificates + */ + +DbTargetDetails.prototype['db_server_certificates'] = undefined; +/** + * (Optional) ServerName is used to verify the hostname on the returned certificates unless InsecureSkipVerify is given. It is also included in the client's handshake to support virtual hosting unless it is an IP address. + * @member {String} db_server_name + */ + +DbTargetDetails.prototype['db_server_name'] = undefined; +/** + * @member {String} db_tenant_id + */ + +DbTargetDetails.prototype['db_tenant_id'] = undefined; +/** + * @member {String} db_user_name + */ + +DbTargetDetails.prototype['db_user_name'] = undefined; +/** + * @member {String} sf_account + */ + +DbTargetDetails.prototype['sf_account'] = undefined; +/** + * (Optional) SSLConnectionCertificate defines the certificate for SSL connection. Must be base64 certificate loaded by UI using file loader field + * @member {String} ssl_connection_certificate + */ + +DbTargetDetails.prototype['ssl_connection_certificate'] = undefined; +/** + * (Optional) SSLConnectionMode defines if SSL mode will be used to connect to DB + * @member {Boolean} ssl_connection_mode + */ + +DbTargetDetails.prototype['ssl_connection_mode'] = undefined; +var _default = DbTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 25823: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Decrypt model module. + * @module model/Decrypt + * @version 3.6.3 + */ +var Decrypt = /*#__PURE__*/function () { + /** + * Constructs a new Decrypt. + * decrypt is a command that decrypts ciphertext into plaintext by using an AES key. + * @alias module:model/Decrypt + * @param keyName {String} The name of the key to use in the decryption process + */ + function Decrypt(keyName) { + _classCallCheck(this, Decrypt); + + Decrypt.initialize(this, keyName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Decrypt, null, [{ + key: "initialize", + value: function initialize(obj, keyName) { + obj['key-name'] = keyName; + } + /** + * Constructs a Decrypt from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Decrypt} obj Optional instance to populate. + * @return {module:model/Decrypt} The populated Decrypt instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Decrypt(); + + if (data.hasOwnProperty('ciphertext')) { + obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); + } + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('encryption-context')) { + obj['encryption-context'] = _ApiClient["default"].convertToType(data['encryption-context'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('output-format')) { + obj['output-format'] = _ApiClient["default"].convertToType(data['output-format'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return Decrypt; +}(); +/** + * Ciphertext to be decrypted in base64 encoded format + * @member {String} ciphertext + */ + + +Decrypt.prototype['ciphertext'] = undefined; +/** + * The display id of the key to use in the decryption process + * @member {String} display-id + */ + +Decrypt.prototype['display-id'] = undefined; +/** + * The encryption context. If this was specified in the encrypt command, it must be specified here or the decryption operation will fail + * @member {Object.} encryption-context + */ + +Decrypt.prototype['encryption-context'] = undefined; +/** + * The item id of the key to use in the decryption process + * @member {Number} item-id + */ + +Decrypt.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +Decrypt.prototype['json'] = false; +/** + * The name of the key to use in the decryption process + * @member {String} key-name + */ + +Decrypt.prototype['key-name'] = undefined; +/** + * If specified, the output will be formatted accordingly. options: [base64] + * @member {String} output-format + */ + +Decrypt.prototype['output-format'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +Decrypt.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +Decrypt.prototype['uid-token'] = undefined; +/** + * key version (relevant only for classic key) + * @member {Number} version + */ + +Decrypt.prototype['version'] = undefined; +var _default = Decrypt; +exports["default"] = _default; + +/***/ }), + +/***/ 88873: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptFile model module. + * @module model/DecryptFile + * @version 3.6.3 + */ +var DecryptFile = /*#__PURE__*/function () { + /** + * Constructs a new DecryptFile. + * @alias module:model/DecryptFile + * @param _in {String} Path to the file to be decrypted. If not provided, the content will be taken from stdin + * @param keyName {String} The name of the key to use in the decryption process + */ + function DecryptFile(_in, keyName) { + _classCallCheck(this, DecryptFile); + + DecryptFile.initialize(this, _in, keyName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptFile, null, [{ + key: "initialize", + value: function initialize(obj, _in, keyName) { + obj['in'] = _in; + obj['key-name'] = keyName; + } + /** + * Constructs a DecryptFile from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptFile} obj Optional instance to populate. + * @return {module:model/DecryptFile} The populated DecryptFile instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptFile(); + + if (data.hasOwnProperty('cyphertext-header')) { + obj['cyphertext-header'] = _ApiClient["default"].convertToType(data['cyphertext-header'], 'String'); + } + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('in')) { + obj['in'] = _ApiClient["default"].convertToType(data['in'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('out')) { + obj['out'] = _ApiClient["default"].convertToType(data['out'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DecryptFile; +}(); +/** + * @member {String} cyphertext-header + */ + + +DecryptFile.prototype['cyphertext-header'] = undefined; +/** + * The display id of the key to use in the decryption process + * @member {String} display-id + */ + +DecryptFile.prototype['display-id'] = undefined; +/** + * Path to the file to be decrypted. If not provided, the content will be taken from stdin + * @member {String} in + */ + +DecryptFile.prototype['in'] = undefined; +/** + * The item id of the key to use in the decryption process + * @member {Number} item-id + */ + +DecryptFile.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DecryptFile.prototype['json'] = false; +/** + * The name of the key to use in the decryption process + * @member {String} key-name + */ + +DecryptFile.prototype['key-name'] = undefined; +/** + * Path to the output file. If not provided, the output will be sent to stdout + * @member {String} out + */ + +DecryptFile.prototype['out'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DecryptFile.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DecryptFile.prototype['uid-token'] = undefined; +var _default = DecryptFile; +exports["default"] = _default; + +/***/ }), + +/***/ 35180: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptFileOutput model module. + * @module model/DecryptFileOutput + * @version 3.6.3 + */ +var DecryptFileOutput = /*#__PURE__*/function () { + /** + * Constructs a new DecryptFileOutput. + * @alias module:model/DecryptFileOutput + */ + function DecryptFileOutput() { + _classCallCheck(this, DecryptFileOutput); + + DecryptFileOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptFileOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DecryptFileOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptFileOutput} obj Optional instance to populate. + * @return {module:model/DecryptFileOutput} The populated DecryptFileOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptFileOutput(); + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('plain_text')) { + obj['plain_text'] = _ApiClient["default"].convertToType(data['plain_text'], 'String'); + } + } + + return obj; + } + }]); + + return DecryptFileOutput; +}(); +/** + * @member {String} path + */ + + +DecryptFileOutput.prototype['path'] = undefined; +/** + * @member {String} plain_text + */ + +DecryptFileOutput.prototype['plain_text'] = undefined; +var _default = DecryptFileOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 61391: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptGPG model module. + * @module model/DecryptGPG + * @version 3.6.3 + */ +var DecryptGPG = /*#__PURE__*/function () { + /** + * Constructs a new DecryptGPG. + * @alias module:model/DecryptGPG + * @param ciphertext {String} Ciphertext to be decrypted in base64 encoded format + * @param keyName {String} The name of the key to use in the decryption process + */ + function DecryptGPG(ciphertext, keyName) { + _classCallCheck(this, DecryptGPG); + + DecryptGPG.initialize(this, ciphertext, keyName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptGPG, null, [{ + key: "initialize", + value: function initialize(obj, ciphertext, keyName) { + obj['ciphertext'] = ciphertext; + obj['key-name'] = keyName; + } + /** + * Constructs a DecryptGPG from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptGPG} obj Optional instance to populate. + * @return {module:model/DecryptGPG} The populated DecryptGPG instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptGPG(); + + if (data.hasOwnProperty('ciphertext')) { + obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); + } + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('output-format')) { + obj['output-format'] = _ApiClient["default"].convertToType(data['output-format'], 'String'); + } + + if (data.hasOwnProperty('passphrase')) { + obj['passphrase'] = _ApiClient["default"].convertToType(data['passphrase'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DecryptGPG; +}(); +/** + * Ciphertext to be decrypted in base64 encoded format + * @member {String} ciphertext + */ + + +DecryptGPG.prototype['ciphertext'] = undefined; +/** + * The display id of the key to use in the decryption process + * @member {String} display-id + */ + +DecryptGPG.prototype['display-id'] = undefined; +/** + * The item id of the key to use in the decryption process + * @member {Number} item-id + */ + +DecryptGPG.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DecryptGPG.prototype['json'] = false; +/** + * The name of the key to use in the decryption process + * @member {String} key-name + */ + +DecryptGPG.prototype['key-name'] = undefined; +/** + * If specified, the output will be formatted accordingly. options: [base64] + * @member {String} output-format + */ + +DecryptGPG.prototype['output-format'] = undefined; +/** + * Passphrase that was used to generate the key + * @member {String} passphrase + */ + +DecryptGPG.prototype['passphrase'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DecryptGPG.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DecryptGPG.prototype['uid-token'] = undefined; +var _default = DecryptGPG; +exports["default"] = _default; + +/***/ }), + +/***/ 64758: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptGPGOutput model module. + * @module model/DecryptGPGOutput + * @version 3.6.3 + */ +var DecryptGPGOutput = /*#__PURE__*/function () { + /** + * Constructs a new DecryptGPGOutput. + * @alias module:model/DecryptGPGOutput + */ + function DecryptGPGOutput() { + _classCallCheck(this, DecryptGPGOutput); + + DecryptGPGOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptGPGOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DecryptGPGOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptGPGOutput} obj Optional instance to populate. + * @return {module:model/DecryptGPGOutput} The populated DecryptGPGOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptGPGOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return DecryptGPGOutput; +}(); +/** + * @member {String} result + */ + + +DecryptGPGOutput.prototype['result'] = undefined; +var _default = DecryptGPGOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 88134: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptOutput model module. + * @module model/DecryptOutput + * @version 3.6.3 + */ +var DecryptOutput = /*#__PURE__*/function () { + /** + * Constructs a new DecryptOutput. + * @alias module:model/DecryptOutput + */ + function DecryptOutput() { + _classCallCheck(this, DecryptOutput); + + DecryptOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DecryptOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptOutput} obj Optional instance to populate. + * @return {module:model/DecryptOutput} The populated DecryptOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return DecryptOutput; +}(); +/** + * @member {String} result + */ + + +DecryptOutput.prototype['result'] = undefined; +var _default = DecryptOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 61013: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptPKCS1 model module. + * @module model/DecryptPKCS1 + * @version 3.6.3 + */ +var DecryptPKCS1 = /*#__PURE__*/function () { + /** + * Constructs a new DecryptPKCS1. + * @alias module:model/DecryptPKCS1 + * @param ciphertext {String} Ciphertext to be decrypted in base64 encoded format + * @param keyName {String} The name of the key to use in the decryption process + */ + function DecryptPKCS1(ciphertext, keyName) { + _classCallCheck(this, DecryptPKCS1); + + DecryptPKCS1.initialize(this, ciphertext, keyName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptPKCS1, null, [{ + key: "initialize", + value: function initialize(obj, ciphertext, keyName) { + obj['ciphertext'] = ciphertext; + obj['key-name'] = keyName; + } + /** + * Constructs a DecryptPKCS1 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptPKCS1} obj Optional instance to populate. + * @return {module:model/DecryptPKCS1} The populated DecryptPKCS1 instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptPKCS1(); + + if (data.hasOwnProperty('ciphertext')) { + obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); + } + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('output-format')) { + obj['output-format'] = _ApiClient["default"].convertToType(data['output-format'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return DecryptPKCS1; +}(); +/** + * Ciphertext to be decrypted in base64 encoded format + * @member {String} ciphertext + */ + + +DecryptPKCS1.prototype['ciphertext'] = undefined; +/** + * The display id of the key to use in the decryption process + * @member {String} display-id + */ + +DecryptPKCS1.prototype['display-id'] = undefined; +/** + * The item id of the key to use in the decryption process + * @member {Number} item-id + */ + +DecryptPKCS1.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DecryptPKCS1.prototype['json'] = false; +/** + * The name of the key to use in the decryption process + * @member {String} key-name + */ + +DecryptPKCS1.prototype['key-name'] = undefined; +/** + * If specified, the output will be formatted accordingly. options: [base64] + * @member {String} output-format + */ + +DecryptPKCS1.prototype['output-format'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DecryptPKCS1.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DecryptPKCS1.prototype['uid-token'] = undefined; +/** + * key version (relevant only for classic key) + * @member {Number} version + */ + +DecryptPKCS1.prototype['version'] = undefined; +var _default = DecryptPKCS1; +exports["default"] = _default; + +/***/ }), + +/***/ 88320: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptPKCS1Output model module. + * @module model/DecryptPKCS1Output + * @version 3.6.3 + */ +var DecryptPKCS1Output = /*#__PURE__*/function () { + /** + * Constructs a new DecryptPKCS1Output. + * @alias module:model/DecryptPKCS1Output + */ + function DecryptPKCS1Output() { + _classCallCheck(this, DecryptPKCS1Output); + + DecryptPKCS1Output.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptPKCS1Output, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DecryptPKCS1Output from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptPKCS1Output} obj Optional instance to populate. + * @return {module:model/DecryptPKCS1Output} The populated DecryptPKCS1Output instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptPKCS1Output(); + + if (data.hasOwnProperty('plaintext')) { + obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); + } + } + + return obj; + } + }]); + + return DecryptPKCS1Output; +}(); +/** + * @member {String} plaintext + */ + + +DecryptPKCS1Output.prototype['plaintext'] = undefined; +var _default = DecryptPKCS1Output; +exports["default"] = _default; + +/***/ }), + +/***/ 90932: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptWithClassicKey model module. + * @module model/DecryptWithClassicKey + * @version 3.6.3 + */ +var DecryptWithClassicKey = /*#__PURE__*/function () { + /** + * Constructs a new DecryptWithClassicKey. + * @alias module:model/DecryptWithClassicKey + * @param ciphertext {String} Ciphertext to be decrypted in base64 encoded format + * @param displayId {String} The name of the key to use in the encryption process + * @param version {Number} classic key version + */ + function DecryptWithClassicKey(ciphertext, displayId, version) { + _classCallCheck(this, DecryptWithClassicKey); + + DecryptWithClassicKey.initialize(this, ciphertext, displayId, version); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptWithClassicKey, null, [{ + key: "initialize", + value: function initialize(obj, ciphertext, displayId, version) { + obj['ciphertext'] = ciphertext; + obj['display-id'] = displayId; + obj['version'] = version; + } + /** + * Constructs a DecryptWithClassicKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptWithClassicKey} obj Optional instance to populate. + * @return {module:model/DecryptWithClassicKey} The populated DecryptWithClassicKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptWithClassicKey(); + + if (data.hasOwnProperty('ciphertext')) { + obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); + } + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return DecryptWithClassicKey; +}(); +/** + * Ciphertext to be decrypted in base64 encoded format + * @member {String} ciphertext + */ + + +DecryptWithClassicKey.prototype['ciphertext'] = undefined; +/** + * The name of the key to use in the encryption process + * @member {String} display-id + */ + +DecryptWithClassicKey.prototype['display-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DecryptWithClassicKey.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DecryptWithClassicKey.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DecryptWithClassicKey.prototype['uid-token'] = undefined; +/** + * classic key version + * @member {Number} version + */ + +DecryptWithClassicKey.prototype['version'] = undefined; +var _default = DecryptWithClassicKey; +exports["default"] = _default; + +/***/ }), + +/***/ 48133: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DecryptWithClassicKeyOutput model module. + * @module model/DecryptWithClassicKeyOutput + * @version 3.6.3 + */ +var DecryptWithClassicKeyOutput = /*#__PURE__*/function () { + /** + * Constructs a new DecryptWithClassicKeyOutput. + * @alias module:model/DecryptWithClassicKeyOutput + */ + function DecryptWithClassicKeyOutput() { + _classCallCheck(this, DecryptWithClassicKeyOutput); + + DecryptWithClassicKeyOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DecryptWithClassicKeyOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DecryptWithClassicKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DecryptWithClassicKeyOutput} obj Optional instance to populate. + * @return {module:model/DecryptWithClassicKeyOutput} The populated DecryptWithClassicKeyOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DecryptWithClassicKeyOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return DecryptWithClassicKeyOutput; +}(); +/** + * @member {String} result + */ + + +DecryptWithClassicKeyOutput.prototype['result'] = undefined; +var _default = DecryptWithClassicKeyOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 12332: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DefaultConfigPart model module. + * @module model/DefaultConfigPart + * @version 3.6.3 + */ +var DefaultConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new DefaultConfigPart. + * @alias module:model/DefaultConfigPart + */ + function DefaultConfigPart() { + _classCallCheck(this, DefaultConfigPart); + + DefaultConfigPart.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DefaultConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DefaultConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DefaultConfigPart} obj Optional instance to populate. + * @return {module:model/DefaultConfigPart} The populated DefaultConfigPart instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DefaultConfigPart(); + + if (data.hasOwnProperty('certificate_access_id')) { + obj['certificate_access_id'] = _ApiClient["default"].convertToType(data['certificate_access_id'], 'String'); + } + + if (data.hasOwnProperty('default_protection_key_id')) { + obj['default_protection_key_id'] = _ApiClient["default"].convertToType(data['default_protection_key_id'], 'Number'); + } + + if (data.hasOwnProperty('default_secret_location')) { + obj['default_secret_location'] = _ApiClient["default"].convertToType(data['default_secret_location'], 'String'); + } + + if (data.hasOwnProperty('oidc_access_id')) { + obj['oidc_access_id'] = _ApiClient["default"].convertToType(data['oidc_access_id'], 'String'); + } + + if (data.hasOwnProperty('saml_access_id')) { + obj['saml_access_id'] = _ApiClient["default"].convertToType(data['saml_access_id'], 'String'); + } + } + + return obj; + } + }]); + + return DefaultConfigPart; +}(); +/** + * @member {String} certificate_access_id + */ + + +DefaultConfigPart.prototype['certificate_access_id'] = undefined; +/** + * @member {Number} default_protection_key_id + */ + +DefaultConfigPart.prototype['default_protection_key_id'] = undefined; +/** + * @member {String} default_secret_location + */ + +DefaultConfigPart.prototype['default_secret_location'] = undefined; +/** + * @member {String} oidc_access_id + */ + +DefaultConfigPart.prototype['oidc_access_id'] = undefined; +/** + * @member {String} saml_access_id + */ + +DefaultConfigPart.prototype['saml_access_id'] = undefined; +var _default = DefaultConfigPart; +exports["default"] = _default; + +/***/ }), + +/***/ 63388: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteAuthMethod model module. + * @module model/DeleteAuthMethod + * @version 3.6.3 + */ +var DeleteAuthMethod = /*#__PURE__*/function () { + /** + * Constructs a new DeleteAuthMethod. + * @alias module:model/DeleteAuthMethod + * @param name {String} Auth Method name + */ + function DeleteAuthMethod(name) { + _classCallCheck(this, DeleteAuthMethod); + + DeleteAuthMethod.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteAuthMethod, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DeleteAuthMethod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteAuthMethod} obj Optional instance to populate. + * @return {module:model/DeleteAuthMethod} The populated DeleteAuthMethod instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteAuthMethod(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteAuthMethod; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DeleteAuthMethod.prototype['json'] = false; +/** + * Auth Method name + * @member {String} name + */ + +DeleteAuthMethod.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteAuthMethod.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteAuthMethod.prototype['uid-token'] = undefined; +var _default = DeleteAuthMethod; +exports["default"] = _default; + +/***/ }), + +/***/ 85245: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteAuthMethodOutput model module. + * @module model/DeleteAuthMethodOutput + * @version 3.6.3 + */ +var DeleteAuthMethodOutput = /*#__PURE__*/function () { + /** + * Constructs a new DeleteAuthMethodOutput. + * @alias module:model/DeleteAuthMethodOutput + */ + function DeleteAuthMethodOutput() { + _classCallCheck(this, DeleteAuthMethodOutput); + + DeleteAuthMethodOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteAuthMethodOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DeleteAuthMethodOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteAuthMethodOutput} obj Optional instance to populate. + * @return {module:model/DeleteAuthMethodOutput} The populated DeleteAuthMethodOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteAuthMethodOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteAuthMethodOutput; +}(); +/** + * @member {String} name + */ + + +DeleteAuthMethodOutput.prototype['name'] = undefined; +var _default = DeleteAuthMethodOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 10611: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteAuthMethods model module. + * @module model/DeleteAuthMethods + * @version 3.6.3 + */ +var DeleteAuthMethods = /*#__PURE__*/function () { + /** + * Constructs a new DeleteAuthMethods. + * deleteAuthMethods is a command that deletes multiple auth methods from a given path. + * @alias module:model/DeleteAuthMethods + * @param path {String} Path to delete the auth methods from + */ + function DeleteAuthMethods(path) { + _classCallCheck(this, DeleteAuthMethods); + + DeleteAuthMethods.initialize(this, path); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteAuthMethods, null, [{ + key: "initialize", + value: function initialize(obj, path) { + obj['path'] = path; + } + /** + * Constructs a DeleteAuthMethods from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteAuthMethods} obj Optional instance to populate. + * @return {module:model/DeleteAuthMethods} The populated DeleteAuthMethods instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteAuthMethods(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteAuthMethods; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DeleteAuthMethods.prototype['json'] = false; +/** + * Path to delete the auth methods from + * @member {String} path + */ + +DeleteAuthMethods.prototype['path'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteAuthMethods.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteAuthMethods.prototype['uid-token'] = undefined; +var _default = DeleteAuthMethods; +exports["default"] = _default; + +/***/ }), + +/***/ 76162: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteAuthMethodsOutput model module. + * @module model/DeleteAuthMethodsOutput + * @version 3.6.3 + */ +var DeleteAuthMethodsOutput = /*#__PURE__*/function () { + /** + * Constructs a new DeleteAuthMethodsOutput. + * @alias module:model/DeleteAuthMethodsOutput + */ + function DeleteAuthMethodsOutput() { + _classCallCheck(this, DeleteAuthMethodsOutput); + + DeleteAuthMethodsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteAuthMethodsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DeleteAuthMethodsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteAuthMethodsOutput} obj Optional instance to populate. + * @return {module:model/DeleteAuthMethodsOutput} The populated DeleteAuthMethodsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteAuthMethodsOutput(); + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteAuthMethodsOutput; +}(); +/** + * @member {String} path + */ + + +DeleteAuthMethodsOutput.prototype['path'] = undefined; +var _default = DeleteAuthMethodsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 85877: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteEventForwarder model module. + * @module model/DeleteEventForwarder + * @version 3.6.3 + */ +var DeleteEventForwarder = /*#__PURE__*/function () { + /** + * Constructs a new DeleteEventForwarder. + * deleteEventForwarder is a command that creates a new event forwarder [Deprecated - please use event-forwarder-delete command] + * @alias module:model/DeleteEventForwarder + * @param name {String} EventForwarder name + */ + function DeleteEventForwarder(name) { + _classCallCheck(this, DeleteEventForwarder); + + DeleteEventForwarder.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteEventForwarder, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DeleteEventForwarder from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteEventForwarder} obj Optional instance to populate. + * @return {module:model/DeleteEventForwarder} The populated DeleteEventForwarder instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteEventForwarder(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteEventForwarder; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DeleteEventForwarder.prototype['json'] = false; +/** + * EventForwarder name + * @member {String} name + */ + +DeleteEventForwarder.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteEventForwarder.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteEventForwarder.prototype['uid-token'] = undefined; +var _default = DeleteEventForwarder; +exports["default"] = _default; + +/***/ }), + +/***/ 36438: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteGatewayAllowedAccessId model module. + * @module model/DeleteGatewayAllowedAccessId + * @version 3.6.3 + */ +var DeleteGatewayAllowedAccessId = /*#__PURE__*/function () { + /** + * Constructs a new DeleteGatewayAllowedAccessId. + * deleteGatewayAllowedAccessId is a command that deletes access-id + * @alias module:model/DeleteGatewayAllowedAccessId + * @param accessId {String} The access id to be stripped of access to gateway + * @param clusterName {String} The name of the updated cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster + */ + function DeleteGatewayAllowedAccessId(accessId, clusterName) { + _classCallCheck(this, DeleteGatewayAllowedAccessId); + + DeleteGatewayAllowedAccessId.initialize(this, accessId, clusterName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteGatewayAllowedAccessId, null, [{ + key: "initialize", + value: function initialize(obj, accessId, clusterName) { + obj['access-id'] = accessId; + obj['cluster-name'] = clusterName; + } + /** + * Constructs a DeleteGatewayAllowedAccessId from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteGatewayAllowedAccessId} obj Optional instance to populate. + * @return {module:model/DeleteGatewayAllowedAccessId} The populated DeleteGatewayAllowedAccessId instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteGatewayAllowedAccessId(); + + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('cluster-name')) { + obj['cluster-name'] = _ApiClient["default"].convertToType(data['cluster-name'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteGatewayAllowedAccessId; +}(); +/** + * The access id to be stripped of access to gateway + * @member {String} access-id + */ + + +DeleteGatewayAllowedAccessId.prototype['access-id'] = undefined; +/** + * The name of the updated cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster + * @member {String} cluster-name + */ + +DeleteGatewayAllowedAccessId.prototype['cluster-name'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeleteGatewayAllowedAccessId.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteGatewayAllowedAccessId.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteGatewayAllowedAccessId.prototype['uid-token'] = undefined; +var _default = DeleteGatewayAllowedAccessId; +exports["default"] = _default; + +/***/ }), + +/***/ 79900: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteGroup model module. + * @module model/DeleteGroup + * @version 3.6.3 + */ +var DeleteGroup = /*#__PURE__*/function () { + /** + * Constructs a new DeleteGroup. + * @alias module:model/DeleteGroup + * @param name {String} Group name + */ + function DeleteGroup(name) { + _classCallCheck(this, DeleteGroup); + + DeleteGroup.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteGroup, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DeleteGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteGroup} obj Optional instance to populate. + * @return {module:model/DeleteGroup} The populated DeleteGroup instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteGroup(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteGroup; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DeleteGroup.prototype['json'] = false; +/** + * Group name + * @member {String} name + */ + +DeleteGroup.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteGroup.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteGroup.prototype['uid-token'] = undefined; +var _default = DeleteGroup; +exports["default"] = _default; + +/***/ }), + +/***/ 97885: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteGroupOutput model module. + * @module model/DeleteGroupOutput + * @version 3.6.3 + */ +var DeleteGroupOutput = /*#__PURE__*/function () { + /** + * Constructs a new DeleteGroupOutput. + * @alias module:model/DeleteGroupOutput + */ + function DeleteGroupOutput() { + _classCallCheck(this, DeleteGroupOutput); + + DeleteGroupOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteGroupOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DeleteGroupOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteGroupOutput} obj Optional instance to populate. + * @return {module:model/DeleteGroupOutput} The populated DeleteGroupOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteGroupOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteGroupOutput; +}(); +/** + * @member {String} name + */ + + +DeleteGroupOutput.prototype['name'] = undefined; +var _default = DeleteGroupOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 74979: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteGwCluster model module. + * @module model/DeleteGwCluster + * @version 3.6.3 + */ +var DeleteGwCluster = /*#__PURE__*/function () { + /** + * Constructs a new DeleteGwCluster. + * @alias module:model/DeleteGwCluster + * @param clusterName {String} Gateway Cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster + */ + function DeleteGwCluster(clusterName) { + _classCallCheck(this, DeleteGwCluster); + + DeleteGwCluster.initialize(this, clusterName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteGwCluster, null, [{ + key: "initialize", + value: function initialize(obj, clusterName) { + obj['cluster-name'] = clusterName; + } + /** + * Constructs a DeleteGwCluster from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteGwCluster} obj Optional instance to populate. + * @return {module:model/DeleteGwCluster} The populated DeleteGwCluster instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteGwCluster(); + + if (data.hasOwnProperty('cluster-name')) { + obj['cluster-name'] = _ApiClient["default"].convertToType(data['cluster-name'], 'String'); + } + + if (data.hasOwnProperty('force-deletion')) { + obj['force-deletion'] = _ApiClient["default"].convertToType(data['force-deletion'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteGwCluster; +}(); +/** + * Gateway Cluster, e.g. acc-abcd12345678/p-123456789012/defaultCluster + * @member {String} cluster-name + */ + + +DeleteGwCluster.prototype['cluster-name'] = undefined; +/** + * Enforce deletion + * @member {Boolean} force-deletion + */ + +DeleteGwCluster.prototype['force-deletion'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeleteGwCluster.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteGwCluster.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteGwCluster.prototype['uid-token'] = undefined; +var _default = DeleteGwCluster; +exports["default"] = _default; + +/***/ }), + +/***/ 55440: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteItem model module. + * @module model/DeleteItem + * @version 3.6.3 + */ +var DeleteItem = /*#__PURE__*/function () { + /** + * Constructs a new DeleteItem. + * @alias module:model/DeleteItem + * @param name {String} Item name + */ + function DeleteItem(name) { + _classCallCheck(this, DeleteItem); + + DeleteItem.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteItem, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DeleteItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteItem} obj Optional instance to populate. + * @return {module:model/DeleteItem} The populated DeleteItem instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteItem(); + + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + } + + if (data.hasOwnProperty('delete-immediately')) { + obj['delete-immediately'] = _ApiClient["default"].convertToType(data['delete-immediately'], 'Boolean'); + } + + if (data.hasOwnProperty('delete-in-days')) { + obj['delete-in-days'] = _ApiClient["default"].convertToType(data['delete-in-days'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return DeleteItem; +}(); +/** + * for personal password manager + * @member {String} accessibility + * @default 'regular' + */ + + +DeleteItem.prototype['accessibility'] = 'regular'; +/** + * When delete-in-days=-1, must be set + * @member {Boolean} delete-immediately + * @default false + */ + +DeleteItem.prototype['delete-immediately'] = false; +/** + * The number of days to wait before deleting the item (relevant for keys only) + * @member {Number} delete-in-days + * @default 7 + */ + +DeleteItem.prototype['delete-in-days'] = 7; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeleteItem.prototype['json'] = false; +/** + * Item name + * @member {String} name + */ + +DeleteItem.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteItem.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteItem.prototype['uid-token'] = undefined; +/** + * The specific version you want to delete - 0=last version, -1=entire item with all versions (default) + * @member {Number} version + * @default -1 + */ + +DeleteItem.prototype['version'] = -1; +var _default = DeleteItem; +exports["default"] = _default; + +/***/ }), + +/***/ 44409: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteItemOutput model module. + * @module model/DeleteItemOutput + * @version 3.6.3 + */ +var DeleteItemOutput = /*#__PURE__*/function () { + /** + * Constructs a new DeleteItemOutput. + * @alias module:model/DeleteItemOutput + */ + function DeleteItemOutput() { + _classCallCheck(this, DeleteItemOutput); + + DeleteItemOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteItemOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DeleteItemOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteItemOutput} obj Optional instance to populate. + * @return {module:model/DeleteItemOutput} The populated DeleteItemOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteItemOutput(); + + if (data.hasOwnProperty('deletion_date')) { + obj['deletion_date'] = _ApiClient["default"].convertToType(data['deletion_date'], 'Date'); + } + + if (data.hasOwnProperty('item_id')) { + obj['item_id'] = _ApiClient["default"].convertToType(data['item_id'], 'Number'); + } + + if (data.hasOwnProperty('item_name')) { + obj['item_name'] = _ApiClient["default"].convertToType(data['item_name'], 'String'); + } + + if (data.hasOwnProperty('version_deleted')) { + obj['version_deleted'] = _ApiClient["default"].convertToType(data['version_deleted'], 'Number'); + } + } + + return obj; + } + }]); + + return DeleteItemOutput; +}(); +/** + * @member {Date} deletion_date + */ + + +DeleteItemOutput.prototype['deletion_date'] = undefined; +/** + * @member {Number} item_id + */ + +DeleteItemOutput.prototype['item_id'] = undefined; +/** + * @member {String} item_name + */ + +DeleteItemOutput.prototype['item_name'] = undefined; +/** + * @member {Number} version_deleted + */ + +DeleteItemOutput.prototype['version_deleted'] = undefined; +var _default = DeleteItemOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 83663: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteItems model module. + * @module model/DeleteItems + * @version 3.6.3 + */ +var DeleteItems = /*#__PURE__*/function () { + /** + * Constructs a new DeleteItems. + * @alias module:model/DeleteItems + * @param path {String} Path to delete the items from + */ + function DeleteItems(path) { + _classCallCheck(this, DeleteItems); + + DeleteItems.initialize(this, path); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteItems, null, [{ + key: "initialize", + value: function initialize(obj, path) { + obj['path'] = path; + } + /** + * Constructs a DeleteItems from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteItems} obj Optional instance to populate. + * @return {module:model/DeleteItems} The populated DeleteItems instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteItems(); + + if (data.hasOwnProperty('item')) { + obj['item'] = _ApiClient["default"].convertToType(data['item'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteItems; +}(); +/** + * A list of items to delete, To specify multiple items use argument multiple times + * @member {Array.} item + */ + + +DeleteItems.prototype['item'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeleteItems.prototype['json'] = false; +/** + * Path to delete the items from + * @member {String} path + * @default 'dummy_path' + */ + +DeleteItems.prototype['path'] = 'dummy_path'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteItems.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteItems.prototype['uid-token'] = undefined; +var _default = DeleteItems; +exports["default"] = _default; + +/***/ }), + +/***/ 79478: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteItemsOutput model module. + * @module model/DeleteItemsOutput + * @version 3.6.3 + */ +var DeleteItemsOutput = /*#__PURE__*/function () { + /** + * Constructs a new DeleteItemsOutput. + * @alias module:model/DeleteItemsOutput + */ + function DeleteItemsOutput() { + _classCallCheck(this, DeleteItemsOutput); + + DeleteItemsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteItemsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DeleteItemsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteItemsOutput} obj Optional instance to populate. + * @return {module:model/DeleteItemsOutput} The populated DeleteItemsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteItemsOutput(); + + if (data.hasOwnProperty('deleted_items')) { + obj['deleted_items'] = _ApiClient["default"].convertToType(data['deleted_items'], ['String']); + } + + if (data.hasOwnProperty('failed_deleted_items')) { + obj['failed_deleted_items'] = _ApiClient["default"].convertToType(data['failed_deleted_items'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteItemsOutput; +}(); +/** + * @member {Array.} deleted_items + */ + + +DeleteItemsOutput.prototype['deleted_items'] = undefined; +/** + * @member {Object.} failed_deleted_items + */ + +DeleteItemsOutput.prototype['failed_deleted_items'] = undefined; +/** + * @member {String} path + */ + +DeleteItemsOutput.prototype['path'] = undefined; +var _default = DeleteItemsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 13059: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteRole model module. + * @module model/DeleteRole + * @version 3.6.3 + */ +var DeleteRole = /*#__PURE__*/function () { + /** + * Constructs a new DeleteRole. + * @alias module:model/DeleteRole + * @param name {String} Role name + */ + function DeleteRole(name) { + _classCallCheck(this, DeleteRole); + + DeleteRole.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteRole, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DeleteRole from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteRole} obj Optional instance to populate. + * @return {module:model/DeleteRole} The populated DeleteRole instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteRole(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteRole; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DeleteRole.prototype['json'] = false; +/** + * Role name + * @member {String} name + */ + +DeleteRole.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteRole.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteRole.prototype['uid-token'] = undefined; +var _default = DeleteRole; +exports["default"] = _default; + +/***/ }), + +/***/ 56192: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteRoleAssociation model module. + * @module model/DeleteRoleAssociation + * @version 3.6.3 + */ +var DeleteRoleAssociation = /*#__PURE__*/function () { + /** + * Constructs a new DeleteRoleAssociation. + * deleteRoleAssociation is a command that deletes an association between role and auth method. + * @alias module:model/DeleteRoleAssociation + * @param assocId {String} The association id to be deleted + */ + function DeleteRoleAssociation(assocId) { + _classCallCheck(this, DeleteRoleAssociation); + + DeleteRoleAssociation.initialize(this, assocId); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteRoleAssociation, null, [{ + key: "initialize", + value: function initialize(obj, assocId) { + obj['assoc-id'] = assocId; + } + /** + * Constructs a DeleteRoleAssociation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteRoleAssociation} obj Optional instance to populate. + * @return {module:model/DeleteRoleAssociation} The populated DeleteRoleAssociation instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteRoleAssociation(); + + if (data.hasOwnProperty('assoc-id')) { + obj['assoc-id'] = _ApiClient["default"].convertToType(data['assoc-id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteRoleAssociation; +}(); +/** + * The association id to be deleted + * @member {String} assoc-id + */ + + +DeleteRoleAssociation.prototype['assoc-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeleteRoleAssociation.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteRoleAssociation.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteRoleAssociation.prototype['uid-token'] = undefined; +var _default = DeleteRoleAssociation; +exports["default"] = _default; + +/***/ }), + +/***/ 99117: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteRoleRule model module. + * @module model/DeleteRoleRule + * @version 3.6.3 + */ +var DeleteRoleRule = /*#__PURE__*/function () { + /** + * Constructs a new DeleteRoleRule. + * @alias module:model/DeleteRoleRule + * @param path {String} The path the rule refers to + * @param roleName {String} The role name to be updated + */ + function DeleteRoleRule(path, roleName) { + _classCallCheck(this, DeleteRoleRule); + + DeleteRoleRule.initialize(this, path, roleName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteRoleRule, null, [{ + key: "initialize", + value: function initialize(obj, path, roleName) { + obj['path'] = path; + obj['role-name'] = roleName; + } + /** + * Constructs a DeleteRoleRule from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteRoleRule} obj Optional instance to populate. + * @return {module:model/DeleteRoleRule} The populated DeleteRoleRule instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteRoleRule(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('role-name')) { + obj['role-name'] = _ApiClient["default"].convertToType(data['role-name'], 'String'); + } + + if (data.hasOwnProperty('rule-type')) { + obj['rule-type'] = _ApiClient["default"].convertToType(data['rule-type'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteRoleRule; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DeleteRoleRule.prototype['json'] = false; +/** + * The path the rule refers to + * @member {String} path + */ + +DeleteRoleRule.prototype['path'] = undefined; +/** + * The role name to be updated + * @member {String} role-name + */ + +DeleteRoleRule.prototype['role-name'] = undefined; +/** + * item-rule, role-rule, auth-method-rule, search-rule, reports-rule, gw-reports-rule or sra-reports-rule + * @member {String} rule-type + * @default 'item-rule' + */ + +DeleteRoleRule.prototype['rule-type'] = 'item-rule'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteRoleRule.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteRoleRule.prototype['uid-token'] = undefined; +var _default = DeleteRoleRule; +exports["default"] = _default; + +/***/ }), + +/***/ 98120: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteRoleRuleOutput model module. + * @module model/DeleteRoleRuleOutput + * @version 3.6.3 + */ +var DeleteRoleRuleOutput = /*#__PURE__*/function () { + /** + * Constructs a new DeleteRoleRuleOutput. + * @alias module:model/DeleteRoleRuleOutput + */ + function DeleteRoleRuleOutput() { + _classCallCheck(this, DeleteRoleRuleOutput); + + DeleteRoleRuleOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteRoleRuleOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DeleteRoleRuleOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteRoleRuleOutput} obj Optional instance to populate. + * @return {module:model/DeleteRoleRuleOutput} The populated DeleteRoleRuleOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteRoleRuleOutput(); + + if (data.hasOwnProperty('deleted')) { + obj['deleted'] = _ApiClient["default"].convertToType(data['deleted'], 'Boolean'); + } + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteRoleRuleOutput; +}(); +/** + * @member {Boolean} deleted + */ + + +DeleteRoleRuleOutput.prototype['deleted'] = undefined; +/** + * @member {String} result + */ + +DeleteRoleRuleOutput.prototype['result'] = undefined; +var _default = DeleteRoleRuleOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 49222: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteRoles model module. + * @module model/DeleteRoles + * @version 3.6.3 + */ +var DeleteRoles = /*#__PURE__*/function () { + /** + * Constructs a new DeleteRoles. + * @alias module:model/DeleteRoles + * @param path {String} Path to delete the auth methods from + */ + function DeleteRoles(path) { + _classCallCheck(this, DeleteRoles); + + DeleteRoles.initialize(this, path); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteRoles, null, [{ + key: "initialize", + value: function initialize(obj, path) { + obj['path'] = path; + } + /** + * Constructs a DeleteRoles from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteRoles} obj Optional instance to populate. + * @return {module:model/DeleteRoles} The populated DeleteRoles instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteRoles(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteRoles; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DeleteRoles.prototype['json'] = false; +/** + * Path to delete the auth methods from + * @member {String} path + */ + +DeleteRoles.prototype['path'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteRoles.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteRoles.prototype['uid-token'] = undefined; +var _default = DeleteRoles; +exports["default"] = _default; + +/***/ }), + +/***/ 93094: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteTarget model module. + * @module model/DeleteTarget + * @version 3.6.3 + */ +var DeleteTarget = /*#__PURE__*/function () { + /** + * Constructs a new DeleteTarget. + * @alias module:model/DeleteTarget + * @param name {String} Target name + */ + function DeleteTarget(name) { + _classCallCheck(this, DeleteTarget); + + DeleteTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DeleteTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteTarget} obj Optional instance to populate. + * @return {module:model/DeleteTarget} The populated DeleteTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteTarget(); + + if (data.hasOwnProperty('force-deletion')) { + obj['force-deletion'] = _ApiClient["default"].convertToType(data['force-deletion'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('target-version')) { + obj['target-version'] = _ApiClient["default"].convertToType(data['target-version'], 'Number'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteTarget; +}(); +/** + * Enforce deletion + * @member {Boolean} force-deletion + * @default false + */ + + +DeleteTarget.prototype['force-deletion'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeleteTarget.prototype['json'] = false; +/** + * Target name + * @member {String} name + */ + +DeleteTarget.prototype['name'] = undefined; +/** + * Target version + * @member {Number} target-version + */ + +DeleteTarget.prototype['target-version'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteTarget.prototype['uid-token'] = undefined; +var _default = DeleteTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 36747: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteTargetAssociation model module. + * @module model/DeleteTargetAssociation + * @version 3.6.3 + */ +var DeleteTargetAssociation = /*#__PURE__*/function () { + /** + * Constructs a new DeleteTargetAssociation. + * deleteTargetAssociation is a command that deletes an association between target and item. + * @alias module:model/DeleteTargetAssociation + * @param name {String} Item name + */ + function DeleteTargetAssociation(name) { + _classCallCheck(this, DeleteTargetAssociation); + + DeleteTargetAssociation.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteTargetAssociation, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DeleteTargetAssociation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteTargetAssociation} obj Optional instance to populate. + * @return {module:model/DeleteTargetAssociation} The populated DeleteTargetAssociation instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteTargetAssociation(); + + if (data.hasOwnProperty('assoc-id')) { + obj['assoc-id'] = _ApiClient["default"].convertToType(data['assoc-id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteTargetAssociation; +}(); +/** + * The association id to be deleted + * @member {String} assoc-id + */ + + +DeleteTargetAssociation.prototype['assoc-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeleteTargetAssociation.prototype['json'] = false; +/** + * Item name + * @member {String} name + */ + +DeleteTargetAssociation.prototype['name'] = undefined; +/** + * The target to associate + * @member {String} target-name + */ + +DeleteTargetAssociation.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteTargetAssociation.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteTargetAssociation.prototype['uid-token'] = undefined; +var _default = DeleteTargetAssociation; +exports["default"] = _default; + +/***/ }), + +/***/ 22509: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeleteTargets model module. + * @module model/DeleteTargets + * @version 3.6.3 + */ +var DeleteTargets = /*#__PURE__*/function () { + /** + * Constructs a new DeleteTargets. + * @alias module:model/DeleteTargets + * @param path {String} Path to delete the targets from + */ + function DeleteTargets(path) { + _classCallCheck(this, DeleteTargets); + + DeleteTargets.initialize(this, path); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeleteTargets, null, [{ + key: "initialize", + value: function initialize(obj, path) { + obj['path'] = path; + } + /** + * Constructs a DeleteTargets from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeleteTargets} obj Optional instance to populate. + * @return {module:model/DeleteTargets} The populated DeleteTargets instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeleteTargets(); + + if (data.hasOwnProperty('force-deletion')) { + obj['force-deletion'] = _ApiClient["default"].convertToType(data['force-deletion'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeleteTargets; +}(); +/** + * Enforce deletion + * @member {Boolean} force-deletion + * @default false + */ + + +DeleteTargets.prototype['force-deletion'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeleteTargets.prototype['json'] = false; +/** + * Path to delete the targets from + * @member {String} path + */ + +DeleteTargets.prototype['path'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeleteTargets.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeleteTargets.prototype['uid-token'] = undefined; +var _default = DeleteTargets; +exports["default"] = _default; + +/***/ }), + +/***/ 69284: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeriveKey model module. + * @module model/DeriveKey + * @version 3.6.3 + */ +var DeriveKey = /*#__PURE__*/function () { + /** + * Constructs a new DeriveKey. + * @alias module:model/DeriveKey + * @param alg {String} Kdf algorithm + * @param iter {Number} IterationCount the number of iterations + * @param keyLen {Number} KeyLength the byte length of the generated key + * @param name {String} Static Secret full name + */ + function DeriveKey(alg, iter, keyLen, name) { + _classCallCheck(this, DeriveKey); + + DeriveKey.initialize(this, alg, iter, keyLen, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeriveKey, null, [{ + key: "initialize", + value: function initialize(obj, alg, iter, keyLen, name) { + obj['alg'] = alg; + obj['iter'] = iter; + obj['key-len'] = keyLen; + obj['name'] = name; + } + /** + * Constructs a DeriveKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeriveKey} obj Optional instance to populate. + * @return {module:model/DeriveKey} The populated DeriveKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeriveKey(); + + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + } + + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + } + + if (data.hasOwnProperty('hash-function')) { + obj['hash-function'] = _ApiClient["default"].convertToType(data['hash-function'], 'String'); + } + + if (data.hasOwnProperty('iter')) { + obj['iter'] = _ApiClient["default"].convertToType(data['iter'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-len')) { + obj['key-len'] = _ApiClient["default"].convertToType(data['key-len'], 'Number'); + } + + if (data.hasOwnProperty('mem')) { + obj['mem'] = _ApiClient["default"].convertToType(data['mem'], 'Number'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('parallelism')) { + obj['parallelism'] = _ApiClient["default"].convertToType(data['parallelism'], 'Number'); + } + + if (data.hasOwnProperty('salt')) { + obj['salt'] = _ApiClient["default"].convertToType(data['salt'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DeriveKey; +}(); +/** + * for personal password manager + * @member {String} accessibility + * @default 'regular' + */ + + +DeriveKey.prototype['accessibility'] = 'regular'; +/** + * Kdf algorithm + * @member {String} alg + * @default 'pbkdf2' + */ + +DeriveKey.prototype['alg'] = 'pbkdf2'; +/** + * HashFunction the hash function to use (relevant for pbkdf2) + * @member {String} hash-function + * @default 'sha256' + */ + +DeriveKey.prototype['hash-function'] = 'sha256'; +/** + * IterationCount the number of iterations + * @member {Number} iter + */ + +DeriveKey.prototype['iter'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DeriveKey.prototype['json'] = false; +/** + * KeyLength the byte length of the generated key + * @member {Number} key-len + */ + +DeriveKey.prototype['key-len'] = undefined; +/** + * MemorySizeInKb the memory paramter in kb (relevant for argon2id) + * @member {Number} mem + * @default 16384 + */ + +DeriveKey.prototype['mem'] = 16384; +/** + * Static Secret full name + * @member {String} name + */ + +DeriveKey.prototype['name'] = undefined; +/** + * Parallelism the number of threads to use (relevant for argon2id) + * @member {Number} parallelism + * @default 1 + */ + +DeriveKey.prototype['parallelism'] = 1; +/** + * Salt Base64 encoded salt value. If not provided, the salt will be generated as part of the operation. The salt should be securely-generated random bytes, minimum 64 bits, 128 bits is recommended + * @member {String} salt + */ + +DeriveKey.prototype['salt'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DeriveKey.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DeriveKey.prototype['uid-token'] = undefined; +var _default = DeriveKey; +exports["default"] = _default; + +/***/ }), + +/***/ 4117: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DeriveKeyOutput model module. + * @module model/DeriveKeyOutput + * @version 3.6.3 + */ +var DeriveKeyOutput = /*#__PURE__*/function () { + /** + * Constructs a new DeriveKeyOutput. + * @alias module:model/DeriveKeyOutput + */ + function DeriveKeyOutput() { + _classCallCheck(this, DeriveKeyOutput); + + DeriveKeyOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DeriveKeyOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DeriveKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DeriveKeyOutput} obj Optional instance to populate. + * @return {module:model/DeriveKeyOutput} The populated DeriveKeyOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DeriveKeyOutput(); + + if (data.hasOwnProperty('Key')) { + obj['Key'] = _ApiClient["default"].convertToType(data['Key'], 'String'); + } + + if (data.hasOwnProperty('Salt')) { + obj['Salt'] = _ApiClient["default"].convertToType(data['Salt'], 'String'); + } + } + + return obj; + } + }]); + + return DeriveKeyOutput; +}(); +/** + * @member {String} Key + */ + + +DeriveKeyOutput.prototype['Key'] = undefined; +/** + * @member {String} Salt + */ + +DeriveKeyOutput.prototype['Salt'] = undefined; +var _default = DeriveKeyOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 80258: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DescribeAssoc model module. + * @module model/DescribeAssoc + * @version 3.6.3 + */ +var DescribeAssoc = /*#__PURE__*/function () { + /** + * Constructs a new DescribeAssoc. + * @alias module:model/DescribeAssoc + * @param assocId {String} The association id + */ + function DescribeAssoc(assocId) { + _classCallCheck(this, DescribeAssoc); + + DescribeAssoc.initialize(this, assocId); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DescribeAssoc, null, [{ + key: "initialize", + value: function initialize(obj, assocId) { + obj['assoc-id'] = assocId; + } + /** + * Constructs a DescribeAssoc from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DescribeAssoc} obj Optional instance to populate. + * @return {module:model/DescribeAssoc} The populated DescribeAssoc instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DescribeAssoc(); + + if (data.hasOwnProperty('assoc-id')) { + obj['assoc-id'] = _ApiClient["default"].convertToType(data['assoc-id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DescribeAssoc; +}(); +/** + * The association id + * @member {String} assoc-id + */ + + +DescribeAssoc.prototype['assoc-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DescribeAssoc.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DescribeAssoc.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DescribeAssoc.prototype['uid-token'] = undefined; +var _default = DescribeAssoc; +exports["default"] = _default; + +/***/ }), + +/***/ 96290: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DescribeItem model module. + * @module model/DescribeItem + * @version 3.6.3 + */ +var DescribeItem = /*#__PURE__*/function () { + /** + * Constructs a new DescribeItem. + * @alias module:model/DescribeItem + * @param name {String} Item name + */ + function DescribeItem(name) { + _classCallCheck(this, DescribeItem); + + DescribeItem.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DescribeItem, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DescribeItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DescribeItem} obj Optional instance to populate. + * @return {module:model/DescribeItem} The populated DescribeItem instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DescribeItem(); + + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + } + + if (data.hasOwnProperty('bastion-details')) { + obj['bastion-details'] = _ApiClient["default"].convertToType(data['bastion-details'], 'Boolean'); + } + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('gateway-details')) { + obj['gateway-details'] = _ApiClient["default"].convertToType(data['gateway-details'], 'Boolean'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('services-details')) { + obj['services-details'] = _ApiClient["default"].convertToType(data['services-details'], 'Boolean'); + } + + if (data.hasOwnProperty('show-versions')) { + obj['show-versions'] = _ApiClient["default"].convertToType(data['show-versions'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DescribeItem; +}(); +/** + * for personal password manager + * @member {String} accessibility + * @default 'regular' + */ + + +DescribeItem.prototype['accessibility'] = 'regular'; +/** + * Indicate if the item should return with ztb cluster details (url, etc) + * @member {Boolean} bastion-details + * @default false + */ + +DescribeItem.prototype['bastion-details'] = false; +/** + * The display id of the item + * @member {String} display-id + */ + +DescribeItem.prototype['display-id'] = undefined; +/** + * Indicate if the item should return with clusters details (url, etc) + * @member {Boolean} gateway-details + * @default false + */ + +DescribeItem.prototype['gateway-details'] = false; +/** + * Item id of the item + * @member {Number} item-id + */ + +DescribeItem.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DescribeItem.prototype['json'] = false; +/** + * Item name + * @member {String} name + */ + +DescribeItem.prototype['name'] = undefined; +/** + * Include all associated services details + * @member {Boolean} services-details + * @default false + */ + +DescribeItem.prototype['services-details'] = false; +/** + * Include all item versions in reply + * @member {Boolean} show-versions + * @default false + */ + +DescribeItem.prototype['show-versions'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DescribeItem.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DescribeItem.prototype['uid-token'] = undefined; +var _default = DescribeItem; +exports["default"] = _default; + +/***/ }), + +/***/ 5013: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DescribePermissions model module. + * @module model/DescribePermissions + * @version 3.6.3 + */ +var DescribePermissions = /*#__PURE__*/function () { + /** + * Constructs a new DescribePermissions. + * describePermissions is a command that shows which permissions your have to a particular path. + * @alias module:model/DescribePermissions + * @param path {String} Path to an object + * @param type {String} Type of object (item, am, role, target) + */ + function DescribePermissions(path, type) { + _classCallCheck(this, DescribePermissions); + + DescribePermissions.initialize(this, path, type); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DescribePermissions, null, [{ + key: "initialize", + value: function initialize(obj, path, type) { + obj['path'] = path; + obj['type'] = type; + } + /** + * Constructs a DescribePermissions from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DescribePermissions} obj Optional instance to populate. + * @return {module:model/DescribePermissions} The populated DescribePermissions instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DescribePermissions(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DescribePermissions; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DescribePermissions.prototype['json'] = false; +/** + * Path to an object + * @member {String} path + */ + +DescribePermissions.prototype['path'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DescribePermissions.prototype['token'] = undefined; +/** + * Type of object (item, am, role, target) + * @member {String} type + */ + +DescribePermissions.prototype['type'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DescribePermissions.prototype['uid-token'] = undefined; +var _default = DescribePermissions; +exports["default"] = _default; + +/***/ }), + +/***/ 88032: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DescribePermissionsOutput model module. + * @module model/DescribePermissionsOutput + * @version 3.6.3 + */ +var DescribePermissionsOutput = /*#__PURE__*/function () { + /** + * Constructs a new DescribePermissionsOutput. + * @alias module:model/DescribePermissionsOutput + */ + function DescribePermissionsOutput() { + _classCallCheck(this, DescribePermissionsOutput); + + DescribePermissionsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DescribePermissionsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DescribePermissionsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DescribePermissionsOutput} obj Optional instance to populate. + * @return {module:model/DescribePermissionsOutput} The populated DescribePermissionsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DescribePermissionsOutput(); + + if (data.hasOwnProperty('client_permissions')) { + obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); + } + } + + return obj; + } + }]); + + return DescribePermissionsOutput; +}(); +/** + * @member {Array.} client_permissions + */ + + +DescribePermissionsOutput.prototype['client_permissions'] = undefined; +var _default = DescribePermissionsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 57046: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DescribeSubClaims model module. + * @module model/DescribeSubClaims + * @version 3.6.3 + */ +var DescribeSubClaims = /*#__PURE__*/function () { + /** + * Constructs a new DescribeSubClaims. + * describe-sub-claims Get the sub-claims associated with the provided token or authentication profile + * @alias module:model/DescribeSubClaims + */ + function DescribeSubClaims() { + _classCallCheck(this, DescribeSubClaims); + + DescribeSubClaims.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DescribeSubClaims, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DescribeSubClaims from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DescribeSubClaims} obj Optional instance to populate. + * @return {module:model/DescribeSubClaims} The populated DescribeSubClaims instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DescribeSubClaims(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DescribeSubClaims; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DescribeSubClaims.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DescribeSubClaims.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DescribeSubClaims.prototype['uid-token'] = undefined; +var _default = DescribeSubClaims; +exports["default"] = _default; + +/***/ }), + +/***/ 15891: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DescribeSubClaimsOutput model module. + * @module model/DescribeSubClaimsOutput + * @version 3.6.3 + */ +var DescribeSubClaimsOutput = /*#__PURE__*/function () { + /** + * Constructs a new DescribeSubClaimsOutput. + * @alias module:model/DescribeSubClaimsOutput + */ + function DescribeSubClaimsOutput() { + _classCallCheck(this, DescribeSubClaimsOutput); + + DescribeSubClaimsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DescribeSubClaimsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DescribeSubClaimsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DescribeSubClaimsOutput} obj Optional instance to populate. + * @return {module:model/DescribeSubClaimsOutput} The populated DescribeSubClaimsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DescribeSubClaimsOutput(); + + if (data.hasOwnProperty('sub_claims')) { + obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { + 'String': ['String'] + }); + } + } + + return obj; + } + }]); + + return DescribeSubClaimsOutput; +}(); +/** + * @member {Object.>} sub_claims + */ + + +DescribeSubClaimsOutput.prototype['sub_claims'] = undefined; +var _default = DescribeSubClaimsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 97122: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Detokenize model module. + * @module model/Detokenize + * @version 3.6.3 + */ +var Detokenize = /*#__PURE__*/function () { + /** + * Constructs a new Detokenize. + * detokenize is a command that decrypts text with a tokenizer + * @alias module:model/Detokenize + * @param ciphertext {String} Data to be decrypted + * @param tokenizerName {String} The name of the tokenizer to use in the decryption process + */ + function Detokenize(ciphertext, tokenizerName) { + _classCallCheck(this, Detokenize); + + Detokenize.initialize(this, ciphertext, tokenizerName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Detokenize, null, [{ + key: "initialize", + value: function initialize(obj, ciphertext, tokenizerName) { + obj['ciphertext'] = ciphertext; + obj['tokenizer-name'] = tokenizerName; + } + /** + * Constructs a Detokenize from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Detokenize} obj Optional instance to populate. + * @return {module:model/Detokenize} The populated Detokenize instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Detokenize(); + + if (data.hasOwnProperty('ciphertext')) { + obj['ciphertext'] = _ApiClient["default"].convertToType(data['ciphertext'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('tokenizer-name')) { + obj['tokenizer-name'] = _ApiClient["default"].convertToType(data['tokenizer-name'], 'String'); + } + + if (data.hasOwnProperty('tweak')) { + obj['tweak'] = _ApiClient["default"].convertToType(data['tweak'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return Detokenize; +}(); +/** + * Data to be decrypted + * @member {String} ciphertext + */ + + +Detokenize.prototype['ciphertext'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +Detokenize.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +Detokenize.prototype['token'] = undefined; +/** + * The name of the tokenizer to use in the decryption process + * @member {String} tokenizer-name + */ + +Detokenize.prototype['tokenizer-name'] = undefined; +/** + * Base64 encoded tweak for vaultless encryption + * @member {String} tweak + */ + +Detokenize.prototype['tweak'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +Detokenize.prototype['uid-token'] = undefined; +var _default = Detokenize; +exports["default"] = _default; + +/***/ }), + +/***/ 84807: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DetokenizeOutput model module. + * @module model/DetokenizeOutput + * @version 3.6.3 + */ +var DetokenizeOutput = /*#__PURE__*/function () { + /** + * Constructs a new DetokenizeOutput. + * @alias module:model/DetokenizeOutput + */ + function DetokenizeOutput() { + _classCallCheck(this, DetokenizeOutput); + + DetokenizeOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DetokenizeOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DetokenizeOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DetokenizeOutput} obj Optional instance to populate. + * @return {module:model/DetokenizeOutput} The populated DetokenizeOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DetokenizeOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return DetokenizeOutput; +}(); +/** + * @member {String} result + */ + + +DetokenizeOutput.prototype['result'] = undefined; +var _default = DetokenizeOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 57844: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DockerhubTargetDetails model module. + * @module model/DockerhubTargetDetails + * @version 3.6.3 + */ +var DockerhubTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new DockerhubTargetDetails. + * DockerhubTargetDetails + * @alias module:model/DockerhubTargetDetails + */ + function DockerhubTargetDetails() { + _classCallCheck(this, DockerhubTargetDetails); + + DockerhubTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DockerhubTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DockerhubTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DockerhubTargetDetails} obj Optional instance to populate. + * @return {module:model/DockerhubTargetDetails} The populated DockerhubTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DockerhubTargetDetails(); + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('user_name')) { + obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], 'String'); + } + } + + return obj; + } + }]); + + return DockerhubTargetDetails; +}(); +/** + * @member {String} password + */ + + +DockerhubTargetDetails.prototype['password'] = undefined; +/** + * @member {String} user_name + */ + +DockerhubTargetDetails.prototype['user_name'] = undefined; +var _default = DockerhubTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 42057: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateArtifactory model module. + * @module model/DynamicSecretCreateArtifactory + * @version 3.6.3 + */ +var DynamicSecretCreateArtifactory = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateArtifactory. + * dynamicSecretCreateArtifactory is a command that creates artifactory dynamic secret + * @alias module:model/DynamicSecretCreateArtifactory + * @param artifactoryTokenAudience {String} Token Audience + * @param artifactoryTokenScope {String} Token Scope + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateArtifactory(artifactoryTokenAudience, artifactoryTokenScope, name) { + _classCallCheck(this, DynamicSecretCreateArtifactory); + + DynamicSecretCreateArtifactory.initialize(this, artifactoryTokenAudience, artifactoryTokenScope, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateArtifactory, null, [{ + key: "initialize", + value: function initialize(obj, artifactoryTokenAudience, artifactoryTokenScope, name) { + obj['artifactory-token-audience'] = artifactoryTokenAudience; + obj['artifactory-token-scope'] = artifactoryTokenScope; + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateArtifactory from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateArtifactory} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateArtifactory} The populated DynamicSecretCreateArtifactory instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateArtifactory(); + + if (data.hasOwnProperty('artifactory-admin-name')) { + obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); + } + + if (data.hasOwnProperty('artifactory-admin-pwd')) { + obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('artifactory-token-audience')) { + obj['artifactory-token-audience'] = _ApiClient["default"].convertToType(data['artifactory-token-audience'], 'String'); + } + + if (data.hasOwnProperty('artifactory-token-scope')) { + obj['artifactory-token-scope'] = _ApiClient["default"].convertToType(data['artifactory-token-scope'], 'String'); + } + + if (data.hasOwnProperty('base-url')) { + obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateArtifactory; +}(); +/** + * Artifactory Admin Name + * @member {String} artifactory-admin-name + */ + + +DynamicSecretCreateArtifactory.prototype['artifactory-admin-name'] = undefined; +/** + * Artifactory Admin password + * @member {String} artifactory-admin-pwd + */ + +DynamicSecretCreateArtifactory.prototype['artifactory-admin-pwd'] = undefined; +/** + * Token Audience + * @member {String} artifactory-token-audience + */ + +DynamicSecretCreateArtifactory.prototype['artifactory-token-audience'] = undefined; +/** + * Token Scope + * @member {String} artifactory-token-scope + */ + +DynamicSecretCreateArtifactory.prototype['artifactory-token-scope'] = undefined; +/** + * Base URL + * @member {String} base-url + */ + +DynamicSecretCreateArtifactory.prototype['base-url'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreateArtifactory.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateArtifactory.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateArtifactory.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateArtifactory.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateArtifactory.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateArtifactory.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateArtifactory.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateArtifactory.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateArtifactory.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateArtifactory.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateArtifactory; +exports["default"] = _default; + +/***/ }), + +/***/ 77442: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateAws model module. + * @module model/DynamicSecretCreateAws + * @version 3.6.3 + */ +var DynamicSecretCreateAws = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateAws. + * dynamicSecretCreateAws is a command that creates aws dynamic secret + * @alias module:model/DynamicSecretCreateAws + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateAws(name) { + _classCallCheck(this, DynamicSecretCreateAws); + + DynamicSecretCreateAws.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateAws, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateAws from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateAws} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateAws} The populated DynamicSecretCreateAws instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateAws(); + + if (data.hasOwnProperty('access-mode')) { + obj['access-mode'] = _ApiClient["default"].convertToType(data['access-mode'], 'String'); + } + + if (data.hasOwnProperty('admin-rotation-interval-days')) { + obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); + } + + if (data.hasOwnProperty('aws-access-key-id')) { + obj['aws-access-key-id'] = _ApiClient["default"].convertToType(data['aws-access-key-id'], 'String'); + } + + if (data.hasOwnProperty('aws-access-secret-key')) { + obj['aws-access-secret-key'] = _ApiClient["default"].convertToType(data['aws-access-secret-key'], 'String'); + } + + if (data.hasOwnProperty('aws-role-arns')) { + obj['aws-role-arns'] = _ApiClient["default"].convertToType(data['aws-role-arns'], 'String'); + } + + if (data.hasOwnProperty('aws-user-console-access')) { + obj['aws-user-console-access'] = _ApiClient["default"].convertToType(data['aws-user-console-access'], 'Boolean'); + } + + if (data.hasOwnProperty('aws-user-groups')) { + obj['aws-user-groups'] = _ApiClient["default"].convertToType(data['aws-user-groups'], 'String'); + } + + if (data.hasOwnProperty('aws-user-policies')) { + obj['aws-user-policies'] = _ApiClient["default"].convertToType(data['aws-user-policies'], 'String'); + } + + if (data.hasOwnProperty('aws-user-programmatic-access')) { + obj['aws-user-programmatic-access'] = _ApiClient["default"].convertToType(data['aws-user-programmatic-access'], 'Boolean'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('enable-admin-rotation')) { + obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } + + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); + } + + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateAws; +}(); +/** + * @member {String} access-mode + */ + + +DynamicSecretCreateAws.prototype['access-mode'] = undefined; +/** + * Admin credentials rotation interval (days) + * @member {Number} admin-rotation-interval-days + * @default 0 + */ + +DynamicSecretCreateAws.prototype['admin-rotation-interval-days'] = 0; +/** + * Access Key ID + * @member {String} aws-access-key-id + */ + +DynamicSecretCreateAws.prototype['aws-access-key-id'] = undefined; +/** + * Secret Access Key + * @member {String} aws-access-secret-key + */ + +DynamicSecretCreateAws.prototype['aws-access-secret-key'] = undefined; +/** + * AWS Role ARNs to be used in the Assume Role operation (relevant only for assume_role mode) + * @member {String} aws-role-arns + */ + +DynamicSecretCreateAws.prototype['aws-role-arns'] = undefined; +/** + * AWS User console access + * @member {Boolean} aws-user-console-access + * @default false + */ + +DynamicSecretCreateAws.prototype['aws-user-console-access'] = false; +/** + * AWS User groups + * @member {String} aws-user-groups + */ + +DynamicSecretCreateAws.prototype['aws-user-groups'] = undefined; +/** + * AWS User policies + * @member {String} aws-user-policies + */ + +DynamicSecretCreateAws.prototype['aws-user-policies'] = undefined; +/** + * Enable AWS User programmatic access + * @member {Boolean} aws-user-programmatic-access + * @default true + */ + +DynamicSecretCreateAws.prototype['aws-user-programmatic-access'] = true; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreateAws.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateAws.prototype['description'] = undefined; +/** + * Automatic admin credentials rotation + * @member {Boolean} enable-admin-rotation + * @default false + */ + +DynamicSecretCreateAws.prototype['enable-admin-rotation'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateAws.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateAws.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreateAws.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateAws.prototype['producer-encryption-key-name'] = undefined; +/** + * Region + * @member {String} region + * @default 'us-east-2' + */ + +DynamicSecretCreateAws.prototype['region'] = 'us-east-2'; +/** + * The AWS account id + * @member {String} secure-access-aws-account-id + */ + +DynamicSecretCreateAws.prototype['secure-access-aws-account-id'] = undefined; +/** + * The AWS native cli + * @member {Boolean} secure-access-aws-native-cli + */ + +DynamicSecretCreateAws.prototype['secure-access-aws-native-cli'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretCreateAws.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretCreateAws.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ + +DynamicSecretCreateAws.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +DynamicSecretCreateAws.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +DynamicSecretCreateAws.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateAws.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateAws.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateAws.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateAws.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateAws.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateAws; +exports["default"] = _default; + +/***/ }), + +/***/ 19784: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateAzure model module. + * @module model/DynamicSecretCreateAzure + * @version 3.6.3 + */ +var DynamicSecretCreateAzure = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateAzure. + * dynamicSecretCreateAzure is a command that creates azure dynamic secret + * @alias module:model/DynamicSecretCreateAzure + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateAzure(name) { + _classCallCheck(this, DynamicSecretCreateAzure); + + DynamicSecretCreateAzure.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateAzure, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateAzure from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateAzure} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateAzure} The populated DynamicSecretCreateAzure instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateAzure(); + + if (data.hasOwnProperty('app-obj-id')) { + obj['app-obj-id'] = _ApiClient["default"].convertToType(data['app-obj-id'], 'String'); + } + + if (data.hasOwnProperty('azure-client-id')) { + obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); + } + + if (data.hasOwnProperty('azure-client-secret')) { + obj['azure-client-secret'] = _ApiClient["default"].convertToType(data['azure-client-secret'], 'String'); + } + + if (data.hasOwnProperty('azure-tenant-id')) { + obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('fixed-user-claim-keyname')) { + obj['fixed-user-claim-keyname'] = _ApiClient["default"].convertToType(data['fixed-user-claim-keyname'], 'String'); + } + + if (data.hasOwnProperty('fixed-user-only')) { + obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-group-obj-id')) { + obj['user-group-obj-id'] = _ApiClient["default"].convertToType(data['user-group-obj-id'], 'String'); + } + + if (data.hasOwnProperty('user-portal-access')) { + obj['user-portal-access'] = _ApiClient["default"].convertToType(data['user-portal-access'], 'Boolean'); + } + + if (data.hasOwnProperty('user-principal-name')) { + obj['user-principal-name'] = _ApiClient["default"].convertToType(data['user-principal-name'], 'String'); + } + + if (data.hasOwnProperty('user-programmatic-access')) { + obj['user-programmatic-access'] = _ApiClient["default"].convertToType(data['user-programmatic-access'], 'Boolean'); + } + + if (data.hasOwnProperty('user-role-template-id')) { + obj['user-role-template-id'] = _ApiClient["default"].convertToType(data['user-role-template-id'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateAzure; +}(); +/** + * Azure App Object Id + * @member {String} app-obj-id + */ + + +DynamicSecretCreateAzure.prototype['app-obj-id'] = undefined; +/** + * Azure Client ID + * @member {String} azure-client-id + */ + +DynamicSecretCreateAzure.prototype['azure-client-id'] = undefined; +/** + * Azure Client Secret + * @member {String} azure-client-secret + */ + +DynamicSecretCreateAzure.prototype['azure-client-secret'] = undefined; +/** + * Azure Tenant ID + * @member {String} azure-tenant-id + */ + +DynamicSecretCreateAzure.prototype['azure-tenant-id'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreateAzure.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateAzure.prototype['description'] = undefined; +/** + * FixedUserClaimKeyname + * @member {String} fixed-user-claim-keyname + * @default 'false' + */ + +DynamicSecretCreateAzure.prototype['fixed-user-claim-keyname'] = 'false'; +/** + * Fixed user + * @member {Boolean} fixed-user-only + * @default false + */ + +DynamicSecretCreateAzure.prototype['fixed-user-only'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateAzure.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateAzure.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreateAzure.prototype['password-length'] = undefined; +/** + * Dynamic secret encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateAzure.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretCreateAzure.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ + +DynamicSecretCreateAzure.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +DynamicSecretCreateAzure.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +DynamicSecretCreateAzure.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateAzure.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateAzure.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateAzure.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateAzure.prototype['uid-token'] = undefined; +/** + * User Group Object Id + * @member {String} user-group-obj-id + */ + +DynamicSecretCreateAzure.prototype['user-group-obj-id'] = undefined; +/** + * Azure User portal access + * @member {Boolean} user-portal-access + * @default false + */ + +DynamicSecretCreateAzure.prototype['user-portal-access'] = false; +/** + * User Principal Name + * @member {String} user-principal-name + */ + +DynamicSecretCreateAzure.prototype['user-principal-name'] = undefined; +/** + * Azure User programmatic access + * @member {Boolean} user-programmatic-access + * @default false + */ + +DynamicSecretCreateAzure.prototype['user-programmatic-access'] = false; +/** + * User Role Template Id + * @member {String} user-role-template-id + */ + +DynamicSecretCreateAzure.prototype['user-role-template-id'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateAzure.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateAzure; +exports["default"] = _default; + +/***/ }), + +/***/ 20425: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateCassandra model module. + * @module model/DynamicSecretCreateCassandra + * @version 3.6.3 + */ +var DynamicSecretCreateCassandra = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateCassandra. + * dynamicSecretCreateCassandra is a command that creates a Cassandra dynamic secret + * @alias module:model/DynamicSecretCreateCassandra + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateCassandra(name) { + _classCallCheck(this, DynamicSecretCreateCassandra); + + DynamicSecretCreateCassandra.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateCassandra, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateCassandra from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateCassandra} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateCassandra} The populated DynamicSecretCreateCassandra instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateCassandra(); + + if (data.hasOwnProperty('cassandra-creation-statements')) { + obj['cassandra-creation-statements'] = _ApiClient["default"].convertToType(data['cassandra-creation-statements'], 'String'); + } + + if (data.hasOwnProperty('cassandra-hosts')) { + obj['cassandra-hosts'] = _ApiClient["default"].convertToType(data['cassandra-hosts'], 'String'); + } + + if (data.hasOwnProperty('cassandra-password')) { + obj['cassandra-password'] = _ApiClient["default"].convertToType(data['cassandra-password'], 'String'); + } + + if (data.hasOwnProperty('cassandra-port')) { + obj['cassandra-port'] = _ApiClient["default"].convertToType(data['cassandra-port'], 'String'); + } + + if (data.hasOwnProperty('cassandra-username')) { + obj['cassandra-username'] = _ApiClient["default"].convertToType(data['cassandra-username'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateCassandra; +}(); +/** + * Cassandra creation statements + * @member {String} cassandra-creation-statements + */ + + +DynamicSecretCreateCassandra.prototype['cassandra-creation-statements'] = undefined; +/** + * Cassandra hosts IP or addresses, comma separated + * @member {String} cassandra-hosts + */ + +DynamicSecretCreateCassandra.prototype['cassandra-hosts'] = undefined; +/** + * Cassandra superuser password + * @member {String} cassandra-password + */ + +DynamicSecretCreateCassandra.prototype['cassandra-password'] = undefined; +/** + * Cassandra port + * @member {String} cassandra-port + * @default '9042' + */ + +DynamicSecretCreateCassandra.prototype['cassandra-port'] = '9042'; +/** + * Cassandra superuser username + * @member {String} cassandra-username + */ + +DynamicSecretCreateCassandra.prototype['cassandra-username'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreateCassandra.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateCassandra.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateCassandra.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateCassandra.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreateCassandra.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateCassandra.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +DynamicSecretCreateCassandra.prototype['ssl'] = false; +/** + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} ssl-certificate + */ + +DynamicSecretCreateCassandra.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateCassandra.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateCassandra.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateCassandra.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateCassandra.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateCassandra.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateCassandra; +exports["default"] = _default; + +/***/ }), + +/***/ 16663: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateChef model module. + * @module model/DynamicSecretCreateChef + * @version 3.6.3 + */ +var DynamicSecretCreateChef = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateChef. + * dynamicSecretCreateChef is a command that creates chef dynamic secret + * @alias module:model/DynamicSecretCreateChef + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateChef(name) { + _classCallCheck(this, DynamicSecretCreateChef); + + DynamicSecretCreateChef.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateChef, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateChef from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateChef} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateChef} The populated DynamicSecretCreateChef instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateChef(); + + if (data.hasOwnProperty('chef-orgs')) { + obj['chef-orgs'] = _ApiClient["default"].convertToType(data['chef-orgs'], 'String'); + } + + if (data.hasOwnProperty('chef-server-key')) { + obj['chef-server-key'] = _ApiClient["default"].convertToType(data['chef-server-key'], 'String'); + } + + if (data.hasOwnProperty('chef-server-url')) { + obj['chef-server-url'] = _ApiClient["default"].convertToType(data['chef-server-url'], 'String'); + } + + if (data.hasOwnProperty('chef-server-username')) { + obj['chef-server-username'] = _ApiClient["default"].convertToType(data['chef-server-username'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('skip-ssl')) { + obj['skip-ssl'] = _ApiClient["default"].convertToType(data['skip-ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateChef; +}(); +/** + * Organizations + * @member {String} chef-orgs + */ + + +DynamicSecretCreateChef.prototype['chef-orgs'] = undefined; +/** + * Server key + * @member {String} chef-server-key + */ + +DynamicSecretCreateChef.prototype['chef-server-key'] = undefined; +/** + * Server URL + * @member {String} chef-server-url + */ + +DynamicSecretCreateChef.prototype['chef-server-url'] = undefined; +/** + * Server username + * @member {String} chef-server-username + */ + +DynamicSecretCreateChef.prototype['chef-server-username'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreateChef.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateChef.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateChef.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateChef.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreateChef.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateChef.prototype['producer-encryption-key-name'] = undefined; +/** + * Skip SSL + * @member {Boolean} skip-ssl + * @default true + */ + +DynamicSecretCreateChef.prototype['skip-ssl'] = true; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateChef.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateChef.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateChef.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateChef.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateChef.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateChef; +exports["default"] = _default; + +/***/ }), + +/***/ 28052: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateCustom model module. + * @module model/DynamicSecretCreateCustom + * @version 3.6.3 + */ +var DynamicSecretCreateCustom = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateCustom. + * @alias module:model/DynamicSecretCreateCustom + * @param createSyncUrl {String} URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create + * @param name {String} Dynamic secret name + * @param revokeSyncUrl {String} URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke + */ + function DynamicSecretCreateCustom(createSyncUrl, name, revokeSyncUrl) { + _classCallCheck(this, DynamicSecretCreateCustom); + + DynamicSecretCreateCustom.initialize(this, createSyncUrl, name, revokeSyncUrl); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateCustom, null, [{ + key: "initialize", + value: function initialize(obj, createSyncUrl, name, revokeSyncUrl) { + obj['create-sync-url'] = createSyncUrl; + obj['name'] = name; + obj['revoke-sync-url'] = revokeSyncUrl; + } + /** + * Constructs a DynamicSecretCreateCustom from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateCustom} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateCustom} The populated DynamicSecretCreateCustom instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateCustom(); + + if (data.hasOwnProperty('admin_rotation_interval_days')) { + obj['admin_rotation_interval_days'] = _ApiClient["default"].convertToType(data['admin_rotation_interval_days'], 'Number'); + } + + if (data.hasOwnProperty('create-sync-url')) { + obj['create-sync-url'] = _ApiClient["default"].convertToType(data['create-sync-url'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('enable_admin_rotation')) { + obj['enable_admin_rotation'] = _ApiClient["default"].convertToType(data['enable_admin_rotation'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('revoke-sync-url')) { + obj['revoke-sync-url'] = _ApiClient["default"].convertToType(data['revoke-sync-url'], 'String'); + } + + if (data.hasOwnProperty('rotate-sync-url')) { + obj['rotate-sync-url'] = _ApiClient["default"].convertToType(data['rotate-sync-url'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('timeout-sec')) { + obj['timeout-sec'] = _ApiClient["default"].convertToType(data['timeout-sec'], 'Number'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateCustom; +}(); +/** + * Define rotation interval in days + * @member {Number} admin_rotation_interval_days + */ + + +DynamicSecretCreateCustom.prototype['admin_rotation_interval_days'] = undefined; +/** + * URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create + * @member {String} create-sync-url + */ + +DynamicSecretCreateCustom.prototype['create-sync-url'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreateCustom.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateCustom.prototype['description'] = undefined; +/** + * Should admin credentials be rotated + * @member {Boolean} enable_admin_rotation + * @default false + */ + +DynamicSecretCreateCustom.prototype['enable_admin_rotation'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateCustom.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateCustom.prototype['name'] = undefined; +/** + * Secret payload to be sent with each create/revoke webhook request + * @member {String} payload + */ + +DynamicSecretCreateCustom.prototype['payload'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateCustom.prototype['producer-encryption-key-name'] = undefined; +/** + * URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke + * @member {String} revoke-sync-url + */ + +DynamicSecretCreateCustom.prototype['revoke-sync-url'] = undefined; +/** + * URL of an endpoint that implements /sync/rotate method, for example https://webhook.example.com/sync/rotate + * @member {String} rotate-sync-url + */ + +DynamicSecretCreateCustom.prototype['rotate-sync-url'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateCustom.prototype['tags'] = undefined; +/** + * Maximum allowed time in seconds for the webhook to return the results + * @member {Number} timeout-sec + * @default 60 + */ + +DynamicSecretCreateCustom.prototype['timeout-sec'] = 60; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateCustom.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateCustom.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateCustom.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateCustom; +exports["default"] = _default; + +/***/ }), + +/***/ 20476: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateDockerhub model module. + * @module model/DynamicSecretCreateDockerhub + * @version 3.6.3 + */ +var DynamicSecretCreateDockerhub = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateDockerhub. + * dynamicSecretCreateDockerhub is a command that creates a DOCKERHUB dynamic secret + * @alias module:model/DynamicSecretCreateDockerhub + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateDockerhub(name) { + _classCallCheck(this, DynamicSecretCreateDockerhub); + + DynamicSecretCreateDockerhub.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateDockerhub, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateDockerhub from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateDockerhub} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateDockerhub} The populated DynamicSecretCreateDockerhub instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateDockerhub(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('dockerhub-password')) { + obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); + } + + if (data.hasOwnProperty('dockerhub-token-scopes')) { + obj['dockerhub-token-scopes'] = _ApiClient["default"].convertToType(data['dockerhub-token-scopes'], 'String'); + } + + if (data.hasOwnProperty('dockerhub-username')) { + obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateDockerhub; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretCreateDockerhub.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateDockerhub.prototype['description'] = undefined; +/** + * DockerhubPassword is either the user's password access token to manage the repository + * @member {String} dockerhub-password + */ + +DynamicSecretCreateDockerhub.prototype['dockerhub-password'] = undefined; +/** + * Access token scopes list (comma-separated) to give the dynamic secret valid options are in \"repo:admin\", \"repo:write\", \"repo:read\", \"repo:public_read\" + * @member {String} dockerhub-token-scopes + */ + +DynamicSecretCreateDockerhub.prototype['dockerhub-token-scopes'] = undefined; +/** + * DockerhubUsername is the name of the user in dockerhub + * @member {String} dockerhub-username + */ + +DynamicSecretCreateDockerhub.prototype['dockerhub-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateDockerhub.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateDockerhub.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateDockerhub.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateDockerhub.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateDockerhub.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateDockerhub.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateDockerhub.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateDockerhub.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateDockerhub; +exports["default"] = _default; + +/***/ }), + +/***/ 930: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateEks model module. + * @module model/DynamicSecretCreateEks + * @version 3.6.3 + */ +var DynamicSecretCreateEks = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateEks. + * dynamicSecretCreateEks is a command that creates eks dynamic secret + * @alias module:model/DynamicSecretCreateEks + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateEks(name) { + _classCallCheck(this, DynamicSecretCreateEks); + + DynamicSecretCreateEks.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateEks, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateEks from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateEks} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateEks} The populated DynamicSecretCreateEks instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateEks(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('eks-access-key-id')) { + obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); + } + + if (data.hasOwnProperty('eks-assume-role')) { + obj['eks-assume-role'] = _ApiClient["default"].convertToType(data['eks-assume-role'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-ca-cert')) { + obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-endpoint')) { + obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-name')) { + obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); + } + + if (data.hasOwnProperty('eks-region')) { + obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); + } + + if (data.hasOwnProperty('eks-secret-access-key')) { + obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateEks; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretCreateEks.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateEks.prototype['description'] = undefined; +/** + * Access Key ID + * @member {String} eks-access-key-id + */ + +DynamicSecretCreateEks.prototype['eks-access-key-id'] = undefined; +/** + * IAM assume role + * @member {String} eks-assume-role + */ + +DynamicSecretCreateEks.prototype['eks-assume-role'] = undefined; +/** + * EKS cluster CA certificate + * @member {String} eks-cluster-ca-cert + */ + +DynamicSecretCreateEks.prototype['eks-cluster-ca-cert'] = undefined; +/** + * EKS cluster URL endpoint + * @member {String} eks-cluster-endpoint + */ + +DynamicSecretCreateEks.prototype['eks-cluster-endpoint'] = undefined; +/** + * EKS cluster name + * @member {String} eks-cluster-name + */ + +DynamicSecretCreateEks.prototype['eks-cluster-name'] = undefined; +/** + * Region + * @member {String} eks-region + * @default 'us-east-2' + */ + +DynamicSecretCreateEks.prototype['eks-region'] = 'us-east-2'; +/** + * Secret Access Key + * @member {String} eks-secret-access-key + */ + +DynamicSecretCreateEks.prototype['eks-secret-access-key'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateEks.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateEks.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateEks.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ + +DynamicSecretCreateEks.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretCreateEks.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ + +DynamicSecretCreateEks.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretCreateEks.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretCreateEks.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateEks.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateEks.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateEks.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateEks.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '15m' + */ + +DynamicSecretCreateEks.prototype['user-ttl'] = '15m'; +var _default = DynamicSecretCreateEks; +exports["default"] = _default; + +/***/ }), + +/***/ 49861: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateGcp model module. + * @module model/DynamicSecretCreateGcp + * @version 3.6.3 + */ +var DynamicSecretCreateGcp = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateGcp. + * dynamicSecretCreateGcp is a command that creates a GCP dynamic secret + * @alias module:model/DynamicSecretCreateGcp + * @param name {String} Dynamic secret name + * @param serviceAccountType {String} The type of the gcp dynamic secret. Options[fixed, dynamic] + */ + function DynamicSecretCreateGcp(name, serviceAccountType) { + _classCallCheck(this, DynamicSecretCreateGcp); + + DynamicSecretCreateGcp.initialize(this, name, serviceAccountType); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateGcp, null, [{ + key: "initialize", + value: function initialize(obj, name, serviceAccountType) { + obj['name'] = name; + obj['service-account-type'] = serviceAccountType; + } + /** + * Constructs a DynamicSecretCreateGcp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateGcp} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateGcp} The populated DynamicSecretCreateGcp instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateGcp(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('gcp-cred-type')) { + obj['gcp-cred-type'] = _ApiClient["default"].convertToType(data['gcp-cred-type'], 'String'); + } + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } + + if (data.hasOwnProperty('gcp-key-algo')) { + obj['gcp-key-algo'] = _ApiClient["default"].convertToType(data['gcp-key-algo'], 'String'); + } + + if (data.hasOwnProperty('gcp-sa-email')) { + obj['gcp-sa-email'] = _ApiClient["default"].convertToType(data['gcp-sa-email'], 'String'); + } + + if (data.hasOwnProperty('gcp-token-scopes')) { + obj['gcp-token-scopes'] = _ApiClient["default"].convertToType(data['gcp-token-scopes'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('role-binding')) { + obj['role-binding'] = _ApiClient["default"].convertToType(data['role-binding'], 'String'); + } + + if (data.hasOwnProperty('service-account-type')) { + obj['service-account-type'] = _ApiClient["default"].convertToType(data['service-account-type'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateGcp; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretCreateGcp.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateGcp.prototype['description'] = undefined; +/** + * @member {String} gcp-cred-type + */ + +DynamicSecretCreateGcp.prototype['gcp-cred-type'] = undefined; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ + +DynamicSecretCreateGcp.prototype['gcp-key'] = undefined; +/** + * Service account key algorithm, e.g. KEY_ALG_RSA_1024 + * @member {String} gcp-key-algo + */ + +DynamicSecretCreateGcp.prototype['gcp-key-algo'] = undefined; +/** + * The email of the fixed service acocunt to generate keys or tokens for. (revelant for service-account-type=fixed) + * @member {String} gcp-sa-email + */ + +DynamicSecretCreateGcp.prototype['gcp-sa-email'] = undefined; +/** + * Access token scopes list, e.g. scope1,scope2 + * @member {String} gcp-token-scopes + */ + +DynamicSecretCreateGcp.prototype['gcp-token-scopes'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateGcp.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateGcp.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateGcp.prototype['producer-encryption-key-name'] = undefined; +/** + * Role binding definitions in json format + * @member {String} role-binding + */ + +DynamicSecretCreateGcp.prototype['role-binding'] = undefined; +/** + * The type of the gcp dynamic secret. Options[fixed, dynamic] + * @member {String} service-account-type + * @default 'fixed' + */ + +DynamicSecretCreateGcp.prototype['service-account-type'] = 'fixed'; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateGcp.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateGcp.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateGcp.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateGcp.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateGcp.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateGcp; +exports["default"] = _default; + +/***/ }), + +/***/ 81984: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateGithub model module. + * @module model/DynamicSecretCreateGithub + * @version 3.6.3 + */ +var DynamicSecretCreateGithub = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateGithub. + * dynamicSecretCreateGithub is a command that creates github dynamic secret + * @alias module:model/DynamicSecretCreateGithub + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateGithub(name) { + _classCallCheck(this, DynamicSecretCreateGithub); + + DynamicSecretCreateGithub.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateGithub, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateGithub from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateGithub} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateGithub} The populated DynamicSecretCreateGithub instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateGithub(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('github-app-id')) { + obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); + } + + if (data.hasOwnProperty('github-app-private-key')) { + obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); + } + + if (data.hasOwnProperty('github-base-url')) { + obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); + } + + if (data.hasOwnProperty('installation-id')) { + obj['installation-id'] = _ApiClient["default"].convertToType(data['installation-id'], 'Number'); + } + + if (data.hasOwnProperty('installation-organization')) { + obj['installation-organization'] = _ApiClient["default"].convertToType(data['installation-organization'], 'String'); + } + + if (data.hasOwnProperty('installation-repository')) { + obj['installation-repository'] = _ApiClient["default"].convertToType(data['installation-repository'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('token-permissions')) { + obj['token-permissions'] = _ApiClient["default"].convertToType(data['token-permissions'], ['String']); + } + + if (data.hasOwnProperty('token-repositories')) { + obj['token-repositories'] = _ApiClient["default"].convertToType(data['token-repositories'], ['String']); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateGithub; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretCreateGithub.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateGithub.prototype['description'] = undefined; +/** + * Github app id + * @member {Number} github-app-id + */ + +DynamicSecretCreateGithub.prototype['github-app-id'] = undefined; +/** + * App private key + * @member {String} github-app-private-key + */ + +DynamicSecretCreateGithub.prototype['github-app-private-key'] = undefined; +/** + * Base URL + * @member {String} github-base-url + * @default 'https://api.github.com/' + */ + +DynamicSecretCreateGithub.prototype['github-base-url'] = 'https://api.github.com/'; +/** + * GitHub application installation id + * @member {Number} installation-id + */ + +DynamicSecretCreateGithub.prototype['installation-id'] = undefined; +/** + * Optional, mutually exclusive with installation id, GitHub organization name + * @member {String} installation-organization + */ + +DynamicSecretCreateGithub.prototype['installation-organization'] = undefined; +/** + * Optional, mutually exclusive with installation id, GitHub repository '/' + * @member {String} installation-repository + */ + +DynamicSecretCreateGithub.prototype['installation-repository'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateGithub.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateGithub.prototype['name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateGithub.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateGithub.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateGithub.prototype['token'] = undefined; +/** + * Optional - installation token's allowed permissions + * @member {Array.} token-permissions + */ + +DynamicSecretCreateGithub.prototype['token-permissions'] = undefined; +/** + * Optional - installation token's allowed repositories + * @member {Array.} token-repositories + */ + +DynamicSecretCreateGithub.prototype['token-repositories'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateGithub.prototype['uid-token'] = undefined; +var _default = DynamicSecretCreateGithub; +exports["default"] = _default; + +/***/ }), + +/***/ 86274: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateGke model module. + * @module model/DynamicSecretCreateGke + * @version 3.6.3 + */ +var DynamicSecretCreateGke = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateGke. + * dynamicSecretCreateGke is a command that creates gke dynamic secret + * @alias module:model/DynamicSecretCreateGke + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateGke(name) { + _classCallCheck(this, DynamicSecretCreateGke); + + DynamicSecretCreateGke.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateGke, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateGke from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateGke} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateGke} The populated DynamicSecretCreateGke instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateGke(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('gke-account-key')) { + obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-cert')) { + obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-endpoint')) { + obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-name')) { + obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); + } + + if (data.hasOwnProperty('gke-service-account-email')) { + obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateGke; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretCreateGke.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateGke.prototype['description'] = undefined; +/** + * GKE Service Account key file path + * @member {String} gke-account-key + */ + +DynamicSecretCreateGke.prototype['gke-account-key'] = undefined; +/** + * GKE cluster CA certificate + * @member {String} gke-cluster-cert + */ + +DynamicSecretCreateGke.prototype['gke-cluster-cert'] = undefined; +/** + * GKE cluster URL endpoint + * @member {String} gke-cluster-endpoint + */ + +DynamicSecretCreateGke.prototype['gke-cluster-endpoint'] = undefined; +/** + * GKE cluster name + * @member {String} gke-cluster-name + */ + +DynamicSecretCreateGke.prototype['gke-cluster-name'] = undefined; +/** + * GKE service account email + * @member {String} gke-service-account-email + */ + +DynamicSecretCreateGke.prototype['gke-service-account-email'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateGke.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateGke.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateGke.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ + +DynamicSecretCreateGke.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretCreateGke.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ + +DynamicSecretCreateGke.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretCreateGke.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretCreateGke.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateGke.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateGke.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateGke.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateGke.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateGke.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateGke; +exports["default"] = _default; + +/***/ }), + +/***/ 57451: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateHanaDb model module. + * @module model/DynamicSecretCreateHanaDb + * @version 3.6.3 + */ +var DynamicSecretCreateHanaDb = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateHanaDb. + * dynamicSecretCreateHanaDb is a command that creates hanadb dynamic secret + * @alias module:model/DynamicSecretCreateHanaDb + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateHanaDb(name) { + _classCallCheck(this, DynamicSecretCreateHanaDb); + + DynamicSecretCreateHanaDb.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateHanaDb, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateHanaDb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateHanaDb} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateHanaDb} The populated DynamicSecretCreateHanaDb instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateHanaDb(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('hana-dbname')) { + obj['hana-dbname'] = _ApiClient["default"].convertToType(data['hana-dbname'], 'String'); + } + + if (data.hasOwnProperty('hanadb-create-statements')) { + obj['hanadb-create-statements'] = _ApiClient["default"].convertToType(data['hanadb-create-statements'], 'String'); + } + + if (data.hasOwnProperty('hanadb-host')) { + obj['hanadb-host'] = _ApiClient["default"].convertToType(data['hanadb-host'], 'String'); + } + + if (data.hasOwnProperty('hanadb-password')) { + obj['hanadb-password'] = _ApiClient["default"].convertToType(data['hanadb-password'], 'String'); + } + + if (data.hasOwnProperty('hanadb-port')) { + obj['hanadb-port'] = _ApiClient["default"].convertToType(data['hanadb-port'], 'String'); + } + + if (data.hasOwnProperty('hanadb-revocation-statements')) { + obj['hanadb-revocation-statements'] = _ApiClient["default"].convertToType(data['hanadb-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('hanadb-username')) { + obj['hanadb-username'] = _ApiClient["default"].convertToType(data['hanadb-username'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateHanaDb; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretCreateHanaDb.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateHanaDb.prototype['description'] = undefined; +/** + * HanaDb Name + * @member {String} hana-dbname + */ + +DynamicSecretCreateHanaDb.prototype['hana-dbname'] = undefined; +/** + * HanaDb Creation statements + * @member {String} hanadb-create-statements + */ + +DynamicSecretCreateHanaDb.prototype['hanadb-create-statements'] = undefined; +/** + * HanaDb Host + * @member {String} hanadb-host + * @default '127.0.0.1' + */ + +DynamicSecretCreateHanaDb.prototype['hanadb-host'] = '127.0.0.1'; +/** + * HanaDb Password + * @member {String} hanadb-password + */ + +DynamicSecretCreateHanaDb.prototype['hanadb-password'] = undefined; +/** + * HanaDb Port + * @member {String} hanadb-port + * @default '443' + */ + +DynamicSecretCreateHanaDb.prototype['hanadb-port'] = '443'; +/** + * HanaDb Revocation statements + * @member {String} hanadb-revocation-statements + */ + +DynamicSecretCreateHanaDb.prototype['hanadb-revocation-statements'] = undefined; +/** + * HanaDb Username + * @member {String} hanadb-username + */ + +DynamicSecretCreateHanaDb.prototype['hanadb-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateHanaDb.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateHanaDb.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreateHanaDb.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateHanaDb.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretCreateHanaDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ + +DynamicSecretCreateHanaDb.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretCreateHanaDb.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretCreateHanaDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretCreateHanaDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateHanaDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateHanaDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateHanaDb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateHanaDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateHanaDb.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateHanaDb; +exports["default"] = _default; + +/***/ }), + +/***/ 17387: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateK8s model module. + * @module model/DynamicSecretCreateK8s + * @version 3.6.3 + */ +var DynamicSecretCreateK8s = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateK8s. + * dynamicSecretCreateK8s is a command that creates k8s dynamic secret + * @alias module:model/DynamicSecretCreateK8s + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateK8s(name) { + _classCallCheck(this, DynamicSecretCreateK8s); + + DynamicSecretCreateK8s.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateK8s, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateK8s from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateK8s} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateK8s} The populated DynamicSecretCreateK8s instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateK8s(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-allowed-namespaces')) { + obj['k8s-allowed-namespaces'] = _ApiClient["default"].convertToType(data['k8s-allowed-namespaces'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-ca-cert')) { + obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-endpoint')) { + obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-token')) { + obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); + } + + if (data.hasOwnProperty('k8s-namespace')) { + obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + } + + if (data.hasOwnProperty('k8s-predefined-role-name')) { + obj['k8s-predefined-role-name'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-name'], 'String'); + } + + if (data.hasOwnProperty('k8s-predefined-role-type')) { + obj['k8s-predefined-role-type'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-type'], 'String'); + } + + if (data.hasOwnProperty('k8s-rolebinding-yaml-def')) { + obj['k8s-rolebinding-yaml-def'] = _ApiClient["default"].convertToType(data['k8s-rolebinding-yaml-def'], 'String'); + } + + if (data.hasOwnProperty('k8s-service-account')) { + obj['k8s-service-account'] = _ApiClient["default"].convertToType(data['k8s-service-account'], 'String'); + } + + if (data.hasOwnProperty('k8s-service-account-type')) { + obj['k8s-service-account-type'] = _ApiClient["default"].convertToType(data['k8s-service-account-type'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-dashboard-url')) { + obj['secure-access-dashboard-url'] = _ApiClient["default"].convertToType(data['secure-access-dashboard-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-service-account')) { + obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateK8s; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretCreateK8s.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateK8s.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateK8s.prototype['json'] = false; +/** + * Comma-separated list of allowed K8S namespaces for the generated ServiceAccount (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-allowed-namespaces + */ + +DynamicSecretCreateK8s.prototype['k8s-allowed-namespaces'] = undefined; +/** + * K8S cluster CA certificate + * @member {String} k8s-cluster-ca-cert + */ + +DynamicSecretCreateK8s.prototype['k8s-cluster-ca-cert'] = undefined; +/** + * K8S cluster URL endpoint + * @member {String} k8s-cluster-endpoint + */ + +DynamicSecretCreateK8s.prototype['k8s-cluster-endpoint'] = undefined; +/** + * K8S cluster Bearer token + * @member {String} k8s-cluster-token + */ + +DynamicSecretCreateK8s.prototype['k8s-cluster-token'] = undefined; +/** + * K8S Namespace where the ServiceAccount exists. + * @member {String} k8s-namespace + */ + +DynamicSecretCreateK8s.prototype['k8s-namespace'] = undefined; +/** + * The pre-existing Role or ClusterRole name to bind the generated ServiceAccount to (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-predefined-role-name + */ + +DynamicSecretCreateK8s.prototype['k8s-predefined-role-name'] = undefined; +/** + * Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-predefined-role-type + */ + +DynamicSecretCreateK8s.prototype['k8s-predefined-role-type'] = undefined; +/** + * Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-rolebinding-yaml-def + */ + +DynamicSecretCreateK8s.prototype['k8s-rolebinding-yaml-def'] = undefined; +/** + * K8S ServiceAccount to extract token from. + * @member {String} k8s-service-account + */ + +DynamicSecretCreateK8s.prototype['k8s-service-account'] = undefined; +/** + * K8S ServiceAccount type [fixed, dynamic]. + * @member {String} k8s-service-account-type + */ + +DynamicSecretCreateK8s.prototype['k8s-service-account-type'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateK8s.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateK8s.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ + +DynamicSecretCreateK8s.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretCreateK8s.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ + +DynamicSecretCreateK8s.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * The K8s dashboard url + * @member {String} secure-access-dashboard-url + */ + +DynamicSecretCreateK8s.prototype['secure-access-dashboard-url'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretCreateK8s.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretCreateK8s.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +DynamicSecretCreateK8s.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +DynamicSecretCreateK8s.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateK8s.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateK8s.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateK8s.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateK8s.prototype['uid-token'] = undefined; +/** + * Use the GW's service account + * @member {Boolean} use-gw-service-account + */ + +DynamicSecretCreateK8s.prototype['use-gw-service-account'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateK8s.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateK8s; +exports["default"] = _default; + +/***/ }), + +/***/ 85446: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateLdap model module. + * @module model/DynamicSecretCreateLdap + * @version 3.6.3 + */ +var DynamicSecretCreateLdap = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateLdap. + * dynamicSecretCreateLdap is a command that creates ldap dynamic secret + * @alias module:model/DynamicSecretCreateLdap + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateLdap(name) { + _classCallCheck(this, DynamicSecretCreateLdap); + + DynamicSecretCreateLdap.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateLdap, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateLdap from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateLdap} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateLdap} The populated DynamicSecretCreateLdap instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateLdap(); + + if (data.hasOwnProperty('bind-dn')) { + obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); + } + + if (data.hasOwnProperty('bind-dn-password')) { + obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('external-username')) { + obj['external-username'] = _ApiClient["default"].convertToType(data['external-username'], 'String'); + } + + if (data.hasOwnProperty('group-dn')) { + obj['group-dn'] = _ApiClient["default"].convertToType(data['group-dn'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('ldap-ca-cert')) { + obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('ldap-url')) { + obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('token-expiration')) { + obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); + } + + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateLdap; +}(); +/** + * Bind DN + * @member {String} bind-dn + */ + + +DynamicSecretCreateLdap.prototype['bind-dn'] = undefined; +/** + * Bind DN Password + * @member {String} bind-dn-password + */ + +DynamicSecretCreateLdap.prototype['bind-dn-password'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreateLdap.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateLdap.prototype['description'] = undefined; +/** + * Externally provided username [true/false] + * @member {String} external-username + * @default 'false' + */ + +DynamicSecretCreateLdap.prototype['external-username'] = 'false'; +/** + * Group DN which the temporary user should be added + * @member {String} group-dn + */ + +DynamicSecretCreateLdap.prototype['group-dn'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateLdap.prototype['json'] = false; +/** + * CA Certificate File Content + * @member {String} ldap-ca-cert + */ + +DynamicSecretCreateLdap.prototype['ldap-ca-cert'] = undefined; +/** + * LDAP Server URL + * @member {String} ldap-url + */ + +DynamicSecretCreateLdap.prototype['ldap-url'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateLdap.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreateLdap.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateLdap.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateLdap.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateLdap.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateLdap.prototype['token'] = undefined; +/** + * Token expiration + * @member {String} token-expiration + */ + +DynamicSecretCreateLdap.prototype['token-expiration'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateLdap.prototype['uid-token'] = undefined; +/** + * User Attribute + * @member {String} user-attribute + */ + +DynamicSecretCreateLdap.prototype['user-attribute'] = undefined; +/** + * User DN + * @member {String} user-dn + */ + +DynamicSecretCreateLdap.prototype['user-dn'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateLdap.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateLdap; +exports["default"] = _default; + +/***/ }), + +/***/ 34721: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateMongoDb model module. + * @module model/DynamicSecretCreateMongoDb + * @version 3.6.3 + */ +var DynamicSecretCreateMongoDb = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateMongoDb. + * dynamicSecretCreateMongoDb is a command that creates either mongodb dynamic secret or mongodb atlas dynamic secret + * @alias module:model/DynamicSecretCreateMongoDb + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateMongoDb(name) { + _classCallCheck(this, DynamicSecretCreateMongoDb); + + DynamicSecretCreateMongoDb.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateMongoDb, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateMongoDb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateMongoDb} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateMongoDb} The populated DynamicSecretCreateMongoDb instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateMongoDb(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { + obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); + } + + if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { + obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); + } + + if (data.hasOwnProperty('mongodb-atlas-project-id')) { + obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); + } + + if (data.hasOwnProperty('mongodb-custom-data')) { + obj['mongodb-custom-data'] = _ApiClient["default"].convertToType(data['mongodb-custom-data'], 'String'); + } + + if (data.hasOwnProperty('mongodb-default-auth-db')) { + obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); + } + + if (data.hasOwnProperty('mongodb-host-port')) { + obj['mongodb-host-port'] = _ApiClient["default"].convertToType(data['mongodb-host-port'], 'String'); + } + + if (data.hasOwnProperty('mongodb-name')) { + obj['mongodb-name'] = _ApiClient["default"].convertToType(data['mongodb-name'], 'String'); + } + + if (data.hasOwnProperty('mongodb-password')) { + obj['mongodb-password'] = _ApiClient["default"].convertToType(data['mongodb-password'], 'String'); + } + + if (data.hasOwnProperty('mongodb-roles')) { + obj['mongodb-roles'] = _ApiClient["default"].convertToType(data['mongodb-roles'], 'String'); + } + + if (data.hasOwnProperty('mongodb-server-uri')) { + obj['mongodb-server-uri'] = _ApiClient["default"].convertToType(data['mongodb-server-uri'], 'String'); + } + + if (data.hasOwnProperty('mongodb-uri-options')) { + obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); + } + + if (data.hasOwnProperty('mongodb-username')) { + obj['mongodb-username'] = _ApiClient["default"].convertToType(data['mongodb-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateMongoDb; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretCreateMongoDb.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateMongoDb.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateMongoDb.prototype['json'] = false; +/** + * MongoDB Atlas private key + * @member {String} mongodb-atlas-api-private-key + */ + +DynamicSecretCreateMongoDb.prototype['mongodb-atlas-api-private-key'] = undefined; +/** + * MongoDB Atlas public key + * @member {String} mongodb-atlas-api-public-key + */ + +DynamicSecretCreateMongoDb.prototype['mongodb-atlas-api-public-key'] = undefined; +/** + * MongoDB Atlas project ID + * @member {String} mongodb-atlas-project-id + */ + +DynamicSecretCreateMongoDb.prototype['mongodb-atlas-project-id'] = undefined; +/** + * MongoDB custom data + * @member {String} mongodb-custom-data + */ + +DynamicSecretCreateMongoDb.prototype['mongodb-custom-data'] = undefined; +/** + * MongoDB server default authentication database + * @member {String} mongodb-default-auth-db + */ + +DynamicSecretCreateMongoDb.prototype['mongodb-default-auth-db'] = undefined; +/** + * MongoDB server host and port + * @member {String} mongodb-host-port + */ + +DynamicSecretCreateMongoDb.prototype['mongodb-host-port'] = undefined; +/** + * MongoDB Name + * @member {String} mongodb-name + */ + +DynamicSecretCreateMongoDb.prototype['mongodb-name'] = undefined; +/** + * MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters + * @member {String} mongodb-password + */ + +DynamicSecretCreateMongoDb.prototype['mongodb-password'] = undefined; +/** + * MongoDB Roles + * @member {String} mongodb-roles + * @default '[]' + */ + +DynamicSecretCreateMongoDb.prototype['mongodb-roles'] = '[]'; +/** + * MongoDB server URI + * @member {String} mongodb-server-uri + */ + +DynamicSecretCreateMongoDb.prototype['mongodb-server-uri'] = undefined; +/** + * MongoDB server URI options + * @member {String} mongodb-uri-options + */ + +DynamicSecretCreateMongoDb.prototype['mongodb-uri-options'] = undefined; +/** + * MongoDB server username + * @member {String} mongodb-username + */ + +DynamicSecretCreateMongoDb.prototype['mongodb-username'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateMongoDb.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreateMongoDb.prototype['password-length'] = undefined; +/** + * Encrypt producer with following key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateMongoDb.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretCreateMongoDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretCreateMongoDb.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretCreateMongoDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretCreateMongoDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateMongoDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateMongoDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateMongoDb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateMongoDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateMongoDb.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateMongoDb; +exports["default"] = _default; + +/***/ }), + +/***/ 8267: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateMsSql model module. + * @module model/DynamicSecretCreateMsSql + * @version 3.6.3 + */ +var DynamicSecretCreateMsSql = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateMsSql. + * dynamicSecretCreateMsSql is a command that creates mssql dynamic secret + * @alias module:model/DynamicSecretCreateMsSql + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateMsSql(name) { + _classCallCheck(this, DynamicSecretCreateMsSql); + + DynamicSecretCreateMsSql.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateMsSql, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateMsSql from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateMsSql} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateMsSql} The populated DynamicSecretCreateMsSql instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateMsSql(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('mssql-create-statements')) { + obj['mssql-create-statements'] = _ApiClient["default"].convertToType(data['mssql-create-statements'], 'String'); + } + + if (data.hasOwnProperty('mssql-dbname')) { + obj['mssql-dbname'] = _ApiClient["default"].convertToType(data['mssql-dbname'], 'String'); + } + + if (data.hasOwnProperty('mssql-host')) { + obj['mssql-host'] = _ApiClient["default"].convertToType(data['mssql-host'], 'String'); + } + + if (data.hasOwnProperty('mssql-password')) { + obj['mssql-password'] = _ApiClient["default"].convertToType(data['mssql-password'], 'String'); + } + + if (data.hasOwnProperty('mssql-port')) { + obj['mssql-port'] = _ApiClient["default"].convertToType(data['mssql-port'], 'String'); + } + + if (data.hasOwnProperty('mssql-revocation-statements')) { + obj['mssql-revocation-statements'] = _ApiClient["default"].convertToType(data['mssql-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('mssql-username')) { + obj['mssql-username'] = _ApiClient["default"].convertToType(data['mssql-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateMsSql; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretCreateMsSql.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateMsSql.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateMsSql.prototype['json'] = false; +/** + * MSSQL Creation statements + * @member {String} mssql-create-statements + */ + +DynamicSecretCreateMsSql.prototype['mssql-create-statements'] = undefined; +/** + * MSSQL Name + * @member {String} mssql-dbname + */ + +DynamicSecretCreateMsSql.prototype['mssql-dbname'] = undefined; +/** + * MSSQL Host + * @member {String} mssql-host + * @default '127.0.0.1' + */ + +DynamicSecretCreateMsSql.prototype['mssql-host'] = '127.0.0.1'; +/** + * MSSQL Password + * @member {String} mssql-password + */ + +DynamicSecretCreateMsSql.prototype['mssql-password'] = undefined; +/** + * MSSQL Port + * @member {String} mssql-port + * @default '1433' + */ + +DynamicSecretCreateMsSql.prototype['mssql-port'] = '1433'; +/** + * MSSQL Revocation statements + * @member {String} mssql-revocation-statements + */ + +DynamicSecretCreateMsSql.prototype['mssql-revocation-statements'] = undefined; +/** + * MSSQL Username + * @member {String} mssql-username + */ + +DynamicSecretCreateMsSql.prototype['mssql-username'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateMsSql.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreateMsSql.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateMsSql.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretCreateMsSql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ + +DynamicSecretCreateMsSql.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretCreateMsSql.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretCreateMsSql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretCreateMsSql.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateMsSql.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateMsSql.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateMsSql.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateMsSql.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateMsSql.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateMsSql; +exports["default"] = _default; + +/***/ }), + +/***/ 9317: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateMySql model module. + * @module model/DynamicSecretCreateMySql + * @version 3.6.3 + */ +var DynamicSecretCreateMySql = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateMySql. + * dynamicSecretCreateMySql is a command that creates mysql dynamic secret + * @alias module:model/DynamicSecretCreateMySql + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateMySql(name) { + _classCallCheck(this, DynamicSecretCreateMySql); + + DynamicSecretCreateMySql.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateMySql, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateMySql from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateMySql} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateMySql} The populated DynamicSecretCreateMySql instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateMySql(); + + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); + } + + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('mysql-dbname')) { + obj['mysql-dbname'] = _ApiClient["default"].convertToType(data['mysql-dbname'], 'String'); + } + + if (data.hasOwnProperty('mysql-host')) { + obj['mysql-host'] = _ApiClient["default"].convertToType(data['mysql-host'], 'String'); + } + + if (data.hasOwnProperty('mysql-password')) { + obj['mysql-password'] = _ApiClient["default"].convertToType(data['mysql-password'], 'String'); + } + + if (data.hasOwnProperty('mysql-port')) { + obj['mysql-port'] = _ApiClient["default"].convertToType(data['mysql-port'], 'String'); + } + + if (data.hasOwnProperty('mysql-revocation-statements')) { + obj['mysql-revocation-statements'] = _ApiClient["default"].convertToType(data['mysql-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('mysql-screation-statements')) { + obj['mysql-screation-statements'] = _ApiClient["default"].convertToType(data['mysql-screation-statements'], 'String'); + } + + if (data.hasOwnProperty('mysql-username')) { + obj['mysql-username'] = _ApiClient["default"].convertToType(data['mysql-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateMySql; +}(); +/** + * (Optional) DB server certificates + * @member {String} db-server-certificates + */ + + +DynamicSecretCreateMySql.prototype['db-server-certificates'] = undefined; +/** + * (Optional) Server name for certificate verification + * @member {String} db-server-name + */ + +DynamicSecretCreateMySql.prototype['db-server-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreateMySql.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateMySql.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateMySql.prototype['json'] = false; +/** + * MySQL DB Name + * @member {String} mysql-dbname + */ + +DynamicSecretCreateMySql.prototype['mysql-dbname'] = undefined; +/** + * MySQL Host + * @member {String} mysql-host + * @default '127.0.0.1' + */ + +DynamicSecretCreateMySql.prototype['mysql-host'] = '127.0.0.1'; +/** + * MySQL Password + * @member {String} mysql-password + */ + +DynamicSecretCreateMySql.prototype['mysql-password'] = undefined; +/** + * MySQL Port + * @member {String} mysql-port + * @default '3306' + */ + +DynamicSecretCreateMySql.prototype['mysql-port'] = '3306'; +/** + * MySQL Revocation statements + * @member {String} mysql-revocation-statements + */ + +DynamicSecretCreateMySql.prototype['mysql-revocation-statements'] = undefined; +/** + * MySQL Creation statements + * @member {String} mysql-screation-statements + */ + +DynamicSecretCreateMySql.prototype['mysql-screation-statements'] = undefined; +/** + * MySQL Username + * @member {String} mysql-username + */ + +DynamicSecretCreateMySql.prototype['mysql-username'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateMySql.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreateMySql.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateMySql.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretCreateMySql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretCreateMySql.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretCreateMySql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretCreateMySql.prototype['secure-access-web'] = false; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +DynamicSecretCreateMySql.prototype['ssl'] = false; +/** + * SSL connection certificate + * @member {String} ssl-certificate + */ + +DynamicSecretCreateMySql.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateMySql.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateMySql.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateMySql.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateMySql.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateMySql.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateMySql; +exports["default"] = _default; + +/***/ }), + +/***/ 62299: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateOracleDb model module. + * @module model/DynamicSecretCreateOracleDb + * @version 3.6.3 + */ +var DynamicSecretCreateOracleDb = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateOracleDb. + * dynamicSecretCreateOracleDb is a command that creates oracle db dynamic secret + * @alias module:model/DynamicSecretCreateOracleDb + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateOracleDb(name) { + _classCallCheck(this, DynamicSecretCreateOracleDb); + + DynamicSecretCreateOracleDb.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateOracleDb, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateOracleDb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateOracleDb} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateOracleDb} The populated DynamicSecretCreateOracleDb instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateOracleDb(); + + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); + } + + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('oracle-host')) { + obj['oracle-host'] = _ApiClient["default"].convertToType(data['oracle-host'], 'String'); + } + + if (data.hasOwnProperty('oracle-password')) { + obj['oracle-password'] = _ApiClient["default"].convertToType(data['oracle-password'], 'String'); + } + + if (data.hasOwnProperty('oracle-port')) { + obj['oracle-port'] = _ApiClient["default"].convertToType(data['oracle-port'], 'String'); + } + + if (data.hasOwnProperty('oracle-revocation-statements')) { + obj['oracle-revocation-statements'] = _ApiClient["default"].convertToType(data['oracle-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('oracle-screation-statements')) { + obj['oracle-screation-statements'] = _ApiClient["default"].convertToType(data['oracle-screation-statements'], 'String'); + } + + if (data.hasOwnProperty('oracle-service-name')) { + obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); + } + + if (data.hasOwnProperty('oracle-username')) { + obj['oracle-username'] = _ApiClient["default"].convertToType(data['oracle-username'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateOracleDb; +}(); +/** + * (Optional) DB server certificates + * @member {String} db-server-certificates + */ + + +DynamicSecretCreateOracleDb.prototype['db-server-certificates'] = undefined; +/** + * (Optional) Server name for certificate verification + * @member {String} db-server-name + */ + +DynamicSecretCreateOracleDb.prototype['db-server-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreateOracleDb.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateOracleDb.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateOracleDb.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateOracleDb.prototype['name'] = undefined; +/** + * Oracle Host + * @member {String} oracle-host + * @default '127.0.0.1' + */ + +DynamicSecretCreateOracleDb.prototype['oracle-host'] = '127.0.0.1'; +/** + * Oracle Password + * @member {String} oracle-password + */ + +DynamicSecretCreateOracleDb.prototype['oracle-password'] = undefined; +/** + * Oracle Port + * @member {String} oracle-port + * @default '1521' + */ + +DynamicSecretCreateOracleDb.prototype['oracle-port'] = '1521'; +/** + * Oracle Revocation statements + * @member {String} oracle-revocation-statements + */ + +DynamicSecretCreateOracleDb.prototype['oracle-revocation-statements'] = undefined; +/** + * Oracle Creation statements + * @member {String} oracle-screation-statements + */ + +DynamicSecretCreateOracleDb.prototype['oracle-screation-statements'] = undefined; +/** + * Oracle DB Name + * @member {String} oracle-service-name + */ + +DynamicSecretCreateOracleDb.prototype['oracle-service-name'] = undefined; +/** + * Oracle Username + * @member {String} oracle-username + */ + +DynamicSecretCreateOracleDb.prototype['oracle-username'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreateOracleDb.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateOracleDb.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretCreateOracleDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + * @default 'false' + */ + +DynamicSecretCreateOracleDb.prototype['secure-access-enable'] = 'false'; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretCreateOracleDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretCreateOracleDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateOracleDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateOracleDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateOracleDb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateOracleDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateOracleDb.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateOracleDb; +exports["default"] = _default; + +/***/ }), + +/***/ 32898: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateOutput model module. + * @module model/DynamicSecretCreateOutput + * @version 3.6.3 + */ +var DynamicSecretCreateOutput = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateOutput. + * @alias module:model/DynamicSecretCreateOutput + */ + function DynamicSecretCreateOutput() { + _classCallCheck(this, DynamicSecretCreateOutput); + + DynamicSecretCreateOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DynamicSecretCreateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateOutput} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateOutput} The populated DynamicSecretCreateOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateOutput(); + + if (data.hasOwnProperty('dynamic_secret_details')) { + obj['dynamic_secret_details'] = _DSProducerDetails["default"].constructFromObject(data['dynamic_secret_details']); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateOutput; +}(); +/** + * @member {module:model/DSProducerDetails} dynamic_secret_details + */ + + +DynamicSecretCreateOutput.prototype['dynamic_secret_details'] = undefined; +var _default = DynamicSecretCreateOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 88331: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreatePing model module. + * @module model/DynamicSecretCreatePing + * @version 3.6.3 + */ +var DynamicSecretCreatePing = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreatePing. + * dynamicSecretCreatePing is a command that creates ping dynamic secret + * @alias module:model/DynamicSecretCreatePing + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreatePing(name) { + _classCallCheck(this, DynamicSecretCreatePing); + + DynamicSecretCreatePing.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreatePing, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreatePing from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreatePing} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreatePing} The populated DynamicSecretCreatePing instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreatePing(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('ping-administrative-port')) { + obj['ping-administrative-port'] = _ApiClient["default"].convertToType(data['ping-administrative-port'], 'String'); + } + + if (data.hasOwnProperty('ping-atm-id')) { + obj['ping-atm-id'] = _ApiClient["default"].convertToType(data['ping-atm-id'], 'String'); + } + + if (data.hasOwnProperty('ping-authorization-port')) { + obj['ping-authorization-port'] = _ApiClient["default"].convertToType(data['ping-authorization-port'], 'String'); + } + + if (data.hasOwnProperty('ping-cert-subject-dn')) { + obj['ping-cert-subject-dn'] = _ApiClient["default"].convertToType(data['ping-cert-subject-dn'], 'String'); + } + + if (data.hasOwnProperty('ping-client-authentication-type')) { + obj['ping-client-authentication-type'] = _ApiClient["default"].convertToType(data['ping-client-authentication-type'], 'String'); + } + + if (data.hasOwnProperty('ping-enforce-replay-prevention')) { + obj['ping-enforce-replay-prevention'] = _ApiClient["default"].convertToType(data['ping-enforce-replay-prevention'], 'String'); + } + + if (data.hasOwnProperty('ping-grant-types')) { + obj['ping-grant-types'] = _ApiClient["default"].convertToType(data['ping-grant-types'], ['String']); + } + + if (data.hasOwnProperty('ping-issuer-dn')) { + obj['ping-issuer-dn'] = _ApiClient["default"].convertToType(data['ping-issuer-dn'], 'String'); + } + + if (data.hasOwnProperty('ping-jwks')) { + obj['ping-jwks'] = _ApiClient["default"].convertToType(data['ping-jwks'], 'String'); + } + + if (data.hasOwnProperty('ping-jwks-url')) { + obj['ping-jwks-url'] = _ApiClient["default"].convertToType(data['ping-jwks-url'], 'String'); + } + + if (data.hasOwnProperty('ping-password')) { + obj['ping-password'] = _ApiClient["default"].convertToType(data['ping-password'], 'String'); + } + + if (data.hasOwnProperty('ping-privileged-user')) { + obj['ping-privileged-user'] = _ApiClient["default"].convertToType(data['ping-privileged-user'], 'String'); + } + + if (data.hasOwnProperty('ping-redirect-uris')) { + obj['ping-redirect-uris'] = _ApiClient["default"].convertToType(data['ping-redirect-uris'], ['String']); + } + + if (data.hasOwnProperty('ping-restricted-scopes')) { + obj['ping-restricted-scopes'] = _ApiClient["default"].convertToType(data['ping-restricted-scopes'], ['String']); + } + + if (data.hasOwnProperty('ping-signing-algo')) { + obj['ping-signing-algo'] = _ApiClient["default"].convertToType(data['ping-signing-algo'], 'String'); + } + + if (data.hasOwnProperty('ping-url')) { + obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreatePing; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretCreatePing.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreatePing.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreatePing.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreatePing.prototype['name'] = undefined; +/** + * Ping Federate administrative port + * @member {String} ping-administrative-port + * @default '9999' + */ + +DynamicSecretCreatePing.prototype['ping-administrative-port'] = '9999'; +/** + * Set a specific Access Token Management (ATM) instance for the created OAuth Client by providing the ATM Id. If no explicit value is given, the default pingfederate server ATM will be set. + * @member {String} ping-atm-id + */ + +DynamicSecretCreatePing.prototype['ping-atm-id'] = undefined; +/** + * Ping Federate authorization port + * @member {String} ping-authorization-port + * @default '9031' + */ + +DynamicSecretCreatePing.prototype['ping-authorization-port'] = '9031'; +/** + * The subject DN of the client certificate. If no explicit value is given, the producer will create CA certificate and matched client certificate and return it as value. Used in conjunction with ping-issuer-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) + * @member {String} ping-cert-subject-dn + */ + +DynamicSecretCreatePing.prototype['ping-cert-subject-dn'] = undefined; +/** + * OAuth Client Authentication Type [CLIENT_SECRET, PRIVATE_KEY_JWT, CLIENT_TLS_CERTIFICATE] + * @member {String} ping-client-authentication-type + * @default 'CLIENT_SECRET' + */ + +DynamicSecretCreatePing.prototype['ping-client-authentication-type'] = 'CLIENT_SECRET'; +/** + * Determines whether PingFederate requires a unique signed JWT from the client for each action (relevant for PRIVATE_KEY_JWT authentication method) [true/false] + * @member {String} ping-enforce-replay-prevention + * @default 'false' + */ + +DynamicSecretCreatePing.prototype['ping-enforce-replay-prevention'] = 'false'; +/** + * List of OAuth client grant types [IMPLICIT, AUTHORIZATION_CODE, CLIENT_CREDENTIALS, TOKEN_EXCHANGE, REFRESH_TOKEN, ASSERTION_GRANTS, PASSWORD, RESOURCE_OWNER_CREDENTIALS]. If no explicit value is given, AUTHORIZATION_CODE will be selected as default. + * @member {Array.} ping-grant-types + */ + +DynamicSecretCreatePing.prototype['ping-grant-types'] = undefined; +/** + * Issuer DN of trusted CA certificate that imported into Ping Federate server. You may select \\\"Trust Any\\\" to trust all the existing issuers in Ping Federate server. Used in conjunction with ping-cert-subject-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) + * @member {String} ping-issuer-dn + */ + +DynamicSecretCreatePing.prototype['ping-issuer-dn'] = undefined; +/** + * Base64-encoded JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT (Sign Algo: RS256) and return it as value (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-jwks + */ + +DynamicSecretCreatePing.prototype['ping-jwks'] = undefined; +/** + * The URL of the JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT and return it as value (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-jwks-url + */ + +DynamicSecretCreatePing.prototype['ping-jwks-url'] = undefined; +/** + * Ping Federate privileged user password + * @member {String} ping-password + */ + +DynamicSecretCreatePing.prototype['ping-password'] = undefined; +/** + * Ping Federate privileged user + * @member {String} ping-privileged-user + */ + +DynamicSecretCreatePing.prototype['ping-privileged-user'] = undefined; +/** + * List of URIs to which the OAuth authorization server may redirect the resource owner's user agent after authorization is obtained. At least one redirection URI is required for the AUTHORIZATION_CODE and IMPLICIT grant types. + * @member {Array.} ping-redirect-uris + */ + +DynamicSecretCreatePing.prototype['ping-redirect-uris'] = undefined; +/** + * Limit the OAuth client to specific scopes list + * @member {Array.} ping-restricted-scopes + */ + +DynamicSecretCreatePing.prototype['ping-restricted-scopes'] = undefined; +/** + * The signing algorithm that the client must use to sign its request objects [RS256,RS384,RS512,ES256,ES384,ES512,PS256,PS384,PS512] If no explicit value is given, the client can use any of the supported signing algorithms (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-signing-algo + */ + +DynamicSecretCreatePing.prototype['ping-signing-algo'] = undefined; +/** + * Ping URL + * @member {String} ping-url + */ + +DynamicSecretCreatePing.prototype['ping-url'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreatePing.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreatePing.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreatePing.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreatePing.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreatePing.prototype['uid-token'] = undefined; +/** + * The time from dynamic secret creation to expiration. + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreatePing.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreatePing; +exports["default"] = _default; + +/***/ }), + +/***/ 50577: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreatePostgreSql model module. + * @module model/DynamicSecretCreatePostgreSql + * @version 3.6.3 + */ +var DynamicSecretCreatePostgreSql = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreatePostgreSql. + * dynamicSecretCreatePostgreSql is a command that creates postgresql dynamic secret + * @alias module:model/DynamicSecretCreatePostgreSql + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreatePostgreSql(name) { + _classCallCheck(this, DynamicSecretCreatePostgreSql); + + DynamicSecretCreatePostgreSql.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreatePostgreSql, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreatePostgreSql from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreatePostgreSql} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreatePostgreSql} The populated DynamicSecretCreatePostgreSql instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreatePostgreSql(); + + if (data.hasOwnProperty('creation-statements')) { + obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('postgresql-db-name')) { + obj['postgresql-db-name'] = _ApiClient["default"].convertToType(data['postgresql-db-name'], 'String'); + } + + if (data.hasOwnProperty('postgresql-host')) { + obj['postgresql-host'] = _ApiClient["default"].convertToType(data['postgresql-host'], 'String'); + } + + if (data.hasOwnProperty('postgresql-password')) { + obj['postgresql-password'] = _ApiClient["default"].convertToType(data['postgresql-password'], 'String'); + } + + if (data.hasOwnProperty('postgresql-port')) { + obj['postgresql-port'] = _ApiClient["default"].convertToType(data['postgresql-port'], 'String'); + } + + if (data.hasOwnProperty('postgresql-username')) { + obj['postgresql-username'] = _ApiClient["default"].convertToType(data['postgresql-username'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key')) { + obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); + } + + if (data.hasOwnProperty('revocation-statement')) { + obj['revocation-statement'] = _ApiClient["default"].convertToType(data['revocation-statement'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreatePostgreSql; +}(); +/** + * PostgreSQL Creation statements + * @member {String} creation-statements + */ + + +DynamicSecretCreatePostgreSql.prototype['creation-statements'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreatePostgreSql.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreatePostgreSql.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreatePostgreSql.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreatePostgreSql.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreatePostgreSql.prototype['password-length'] = undefined; +/** + * PostgreSQL DB Name + * @member {String} postgresql-db-name + */ + +DynamicSecretCreatePostgreSql.prototype['postgresql-db-name'] = undefined; +/** + * PostgreSQL Host + * @member {String} postgresql-host + * @default '127.0.0.1' + */ + +DynamicSecretCreatePostgreSql.prototype['postgresql-host'] = '127.0.0.1'; +/** + * PostgreSQL Password + * @member {String} postgresql-password + */ + +DynamicSecretCreatePostgreSql.prototype['postgresql-password'] = undefined; +/** + * PostgreSQL Port + * @member {String} postgresql-port + * @default '5432' + */ + +DynamicSecretCreatePostgreSql.prototype['postgresql-port'] = '5432'; +/** + * PostgreSQL Username + * @member {String} postgresql-username + */ + +DynamicSecretCreatePostgreSql.prototype['postgresql-username'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key + */ + +DynamicSecretCreatePostgreSql.prototype['producer-encryption-key'] = undefined; +/** + * PostgreSQL Revocation statements + * @member {String} revocation-statement + */ + +DynamicSecretCreatePostgreSql.prototype['revocation-statement'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretCreatePostgreSql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ + +DynamicSecretCreatePostgreSql.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretCreatePostgreSql.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretCreatePostgreSql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretCreatePostgreSql.prototype['secure-access-web'] = false; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +DynamicSecretCreatePostgreSql.prototype['ssl'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreatePostgreSql.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreatePostgreSql.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreatePostgreSql.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreatePostgreSql.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreatePostgreSql.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreatePostgreSql; +exports["default"] = _default; + +/***/ }), + +/***/ 92377: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateRabbitMq model module. + * @module model/DynamicSecretCreateRabbitMq + * @version 3.6.3 + */ +var DynamicSecretCreateRabbitMq = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateRabbitMq. + * dynamicSecretCreateRabbitMq is a command that creates rabbitmq dynamic secret + * @alias module:model/DynamicSecretCreateRabbitMq + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateRabbitMq(name) { + _classCallCheck(this, DynamicSecretCreateRabbitMq); + + DynamicSecretCreateRabbitMq.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateRabbitMq, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateRabbitMq from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateRabbitMq} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateRabbitMq} The populated DynamicSecretCreateRabbitMq instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateRabbitMq(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-admin-pwd')) { + obj['rabbitmq-admin-pwd'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-admin-user')) { + obj['rabbitmq-admin-user'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-user'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-server-uri')) { + obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-conf-permission')) { + obj['rabbitmq-user-conf-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-conf-permission'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-read-permission')) { + obj['rabbitmq-user-read-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-read-permission'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-tags')) { + obj['rabbitmq-user-tags'] = _ApiClient["default"].convertToType(data['rabbitmq-user-tags'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-vhost')) { + obj['rabbitmq-user-vhost'] = _ApiClient["default"].convertToType(data['rabbitmq-user-vhost'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-write-permission')) { + obj['rabbitmq-user-write-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-write-permission'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateRabbitMq; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretCreateRabbitMq.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateRabbitMq.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateRabbitMq.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateRabbitMq.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreateRabbitMq.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateRabbitMq.prototype['producer-encryption-key-name'] = undefined; +/** + * RabbitMQ Admin password + * @member {String} rabbitmq-admin-pwd + */ + +DynamicSecretCreateRabbitMq.prototype['rabbitmq-admin-pwd'] = undefined; +/** + * RabbitMQ Admin User + * @member {String} rabbitmq-admin-user + */ + +DynamicSecretCreateRabbitMq.prototype['rabbitmq-admin-user'] = undefined; +/** + * Server URI + * @member {String} rabbitmq-server-uri + */ + +DynamicSecretCreateRabbitMq.prototype['rabbitmq-server-uri'] = undefined; +/** + * User configuration permission + * @member {String} rabbitmq-user-conf-permission + */ + +DynamicSecretCreateRabbitMq.prototype['rabbitmq-user-conf-permission'] = undefined; +/** + * User read permission + * @member {String} rabbitmq-user-read-permission + */ + +DynamicSecretCreateRabbitMq.prototype['rabbitmq-user-read-permission'] = undefined; +/** + * User Tags + * @member {String} rabbitmq-user-tags + */ + +DynamicSecretCreateRabbitMq.prototype['rabbitmq-user-tags'] = undefined; +/** + * User Virtual Host + * @member {String} rabbitmq-user-vhost + */ + +DynamicSecretCreateRabbitMq.prototype['rabbitmq-user-vhost'] = undefined; +/** + * User write permission + * @member {String} rabbitmq-user-write-permission + */ + +DynamicSecretCreateRabbitMq.prototype['rabbitmq-user-write-permission'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretCreateRabbitMq.prototype['secure-access-enable'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ + +DynamicSecretCreateRabbitMq.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ + +DynamicSecretCreateRabbitMq.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +DynamicSecretCreateRabbitMq.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +DynamicSecretCreateRabbitMq.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateRabbitMq.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateRabbitMq.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateRabbitMq.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateRabbitMq.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateRabbitMq.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateRabbitMq; +exports["default"] = _default; + +/***/ }), + +/***/ 43849: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateRdp model module. + * @module model/DynamicSecretCreateRdp + * @version 3.6.3 + */ +var DynamicSecretCreateRdp = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateRdp. + * dynamicSecretCreateRdp is a command that creates rdp dynamic secret + * @alias module:model/DynamicSecretCreateRdp + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateRdp(name) { + _classCallCheck(this, DynamicSecretCreateRdp); + + DynamicSecretCreateRdp.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateRdp, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateRdp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateRdp} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateRdp} The populated DynamicSecretCreateRdp instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateRdp(); + + if (data.hasOwnProperty('allow-user-extend-session')) { + obj['allow-user-extend-session'] = _ApiClient["default"].convertToType(data['allow-user-extend-session'], 'Number'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('fixed-user-only')) { + obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('rdp-admin-name')) { + obj['rdp-admin-name'] = _ApiClient["default"].convertToType(data['rdp-admin-name'], 'String'); + } + + if (data.hasOwnProperty('rdp-admin-pwd')) { + obj['rdp-admin-pwd'] = _ApiClient["default"].convertToType(data['rdp-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('rdp-host-name')) { + obj['rdp-host-name'] = _ApiClient["default"].convertToType(data['rdp-host-name'], 'String'); + } + + if (data.hasOwnProperty('rdp-host-port')) { + obj['rdp-host-port'] = _ApiClient["default"].convertToType(data['rdp-host-port'], 'String'); + } + + if (data.hasOwnProperty('rdp-user-groups')) { + obj['rdp-user-groups'] = _ApiClient["default"].convertToType(data['rdp-user-groups'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-rd-gateway-server')) { + obj['secure-access-rd-gateway-server'] = _ApiClient["default"].convertToType(data['secure-access-rd-gateway-server'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('warn-user-before-expiration')) { + obj['warn-user-before-expiration'] = _ApiClient["default"].convertToType(data['warn-user-before-expiration'], 'Number'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateRdp; +}(); +/** + * AllowUserExtendSession + * @member {Number} allow-user-extend-session + */ + + +DynamicSecretCreateRdp.prototype['allow-user-extend-session'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreateRdp.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateRdp.prototype['description'] = undefined; +/** + * Allow access using externally (IdP) provided username [true/false] + * @member {String} fixed-user-only + * @default 'false' + */ + +DynamicSecretCreateRdp.prototype['fixed-user-only'] = 'false'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateRdp.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateRdp.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreateRdp.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateRdp.prototype['producer-encryption-key-name'] = undefined; +/** + * RDP Admin Name + * @member {String} rdp-admin-name + */ + +DynamicSecretCreateRdp.prototype['rdp-admin-name'] = undefined; +/** + * RDP Admin password + * @member {String} rdp-admin-pwd + */ + +DynamicSecretCreateRdp.prototype['rdp-admin-pwd'] = undefined; +/** + * Hostname + * @member {String} rdp-host-name + */ + +DynamicSecretCreateRdp.prototype['rdp-host-name'] = undefined; +/** + * Port + * @member {String} rdp-host-port + * @default '22' + */ + +DynamicSecretCreateRdp.prototype['rdp-host-port'] = '22'; +/** + * Groups + * @member {String} rdp-user-groups + */ + +DynamicSecretCreateRdp.prototype['rdp-user-groups'] = undefined; +/** + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false + */ + +DynamicSecretCreateRdp.prototype['secure-access-allow-external-user'] = false; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretCreateRdp.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +DynamicSecretCreateRdp.prototype['secure-access-host'] = undefined; +/** + * RD Gateway server + * @member {String} secure-access-rd-gateway-server + */ + +DynamicSecretCreateRdp.prototype['secure-access-rd-gateway-server'] = undefined; +/** + * Required when the Dynamic Secret is used for a domain user + * @member {String} secure-access-rdp-domain + */ + +DynamicSecretCreateRdp.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ + +DynamicSecretCreateRdp.prototype['secure-access-rdp-user'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateRdp.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateRdp.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateRdp.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateRdp.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateRdp.prototype['user-ttl'] = '60m'; +/** + * WarnBeforeUserExpiration + * @member {Number} warn-user-before-expiration + */ + +DynamicSecretCreateRdp.prototype['warn-user-before-expiration'] = undefined; +var _default = DynamicSecretCreateRdp; +exports["default"] = _default; + +/***/ }), + +/***/ 33092: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateRedis model module. + * @module model/DynamicSecretCreateRedis + * @version 3.6.3 + */ +var DynamicSecretCreateRedis = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateRedis. + * dynamicSecretCreateRedis is a command that creates Redis dynamic secret + * @alias module:model/DynamicSecretCreateRedis + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateRedis(name) { + _classCallCheck(this, DynamicSecretCreateRedis); + + DynamicSecretCreateRedis.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateRedis, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateRedis from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateRedis} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateRedis} The populated DynamicSecretCreateRedis instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateRedis(); + + if (data.hasOwnProperty('acl-rules')) { + obj['acl-rules'] = _ApiClient["default"].convertToType(data['acl-rules'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateRedis; +}(); +/** + * A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '[\"~*\", \"+@read\"]' + * @member {String} acl-rules + */ + + +DynamicSecretCreateRedis.prototype['acl-rules'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreateRedis.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateRedis.prototype['description'] = undefined; +/** + * Redis Host + * @member {String} host + * @default '127.0.0.1' + */ + +DynamicSecretCreateRedis.prototype['host'] = '127.0.0.1'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateRedis.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateRedis.prototype['name'] = undefined; +/** + * Redis Password + * @member {String} password + */ + +DynamicSecretCreateRedis.prototype['password'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreateRedis.prototype['password-length'] = undefined; +/** + * Redis Port + * @member {String} port + * @default '6379' + */ + +DynamicSecretCreateRedis.prototype['port'] = '6379'; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateRedis.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +DynamicSecretCreateRedis.prototype['ssl'] = false; +/** + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} ssl-certificate + */ + +DynamicSecretCreateRedis.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateRedis.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateRedis.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateRedis.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateRedis.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateRedis.prototype['user-ttl'] = '60m'; +/** + * Redis Username + * @member {String} username + */ + +DynamicSecretCreateRedis.prototype['username'] = undefined; +var _default = DynamicSecretCreateRedis; +exports["default"] = _default; + +/***/ }), + +/***/ 87426: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateRedshift model module. + * @module model/DynamicSecretCreateRedshift + * @version 3.6.3 + */ +var DynamicSecretCreateRedshift = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateRedshift. + * dynamicSecretCreateRedshift is a command that creates redshift dynamic secret + * @alias module:model/DynamicSecretCreateRedshift + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateRedshift(name) { + _classCallCheck(this, DynamicSecretCreateRedshift); + + DynamicSecretCreateRedshift.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateRedshift, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateRedshift from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateRedshift} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateRedshift} The populated DynamicSecretCreateRedshift instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateRedshift(); + + if (data.hasOwnProperty('creation-statements')) { + obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key')) { + obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); + } + + if (data.hasOwnProperty('redshift-db-name')) { + obj['redshift-db-name'] = _ApiClient["default"].convertToType(data['redshift-db-name'], 'String'); + } + + if (data.hasOwnProperty('redshift-host')) { + obj['redshift-host'] = _ApiClient["default"].convertToType(data['redshift-host'], 'String'); + } + + if (data.hasOwnProperty('redshift-password')) { + obj['redshift-password'] = _ApiClient["default"].convertToType(data['redshift-password'], 'String'); + } + + if (data.hasOwnProperty('redshift-port')) { + obj['redshift-port'] = _ApiClient["default"].convertToType(data['redshift-port'], 'String'); + } + + if (data.hasOwnProperty('redshift-username')) { + obj['redshift-username'] = _ApiClient["default"].convertToType(data['redshift-username'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateRedshift; +}(); +/** + * Redshift Creation statements + * @member {String} creation-statements + */ + + +DynamicSecretCreateRedshift.prototype['creation-statements'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreateRedshift.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateRedshift.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateRedshift.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateRedshift.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreateRedshift.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key + */ + +DynamicSecretCreateRedshift.prototype['producer-encryption-key'] = undefined; +/** + * Redshift DB Name + * @member {String} redshift-db-name + */ + +DynamicSecretCreateRedshift.prototype['redshift-db-name'] = undefined; +/** + * Redshift Host + * @member {String} redshift-host + * @default '127.0.0.1' + */ + +DynamicSecretCreateRedshift.prototype['redshift-host'] = '127.0.0.1'; +/** + * Redshift Password + * @member {String} redshift-password + */ + +DynamicSecretCreateRedshift.prototype['redshift-password'] = undefined; +/** + * Redshift Port + * @member {String} redshift-port + * @default '5439' + */ + +DynamicSecretCreateRedshift.prototype['redshift-port'] = '5439'; +/** + * Redshift Username + * @member {String} redshift-username + */ + +DynamicSecretCreateRedshift.prototype['redshift-username'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretCreateRedshift.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretCreateRedshift.prototype['secure-access-host'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +DynamicSecretCreateRedshift.prototype['ssl'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateRedshift.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateRedshift.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateRedshift.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateRedshift.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretCreateRedshift.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretCreateRedshift; +exports["default"] = _default; + +/***/ }), + +/***/ 61111: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateSnowflake model module. + * @module model/DynamicSecretCreateSnowflake + * @version 3.6.3 + */ +var DynamicSecretCreateSnowflake = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateSnowflake. + * GatewayCreateProducerSnowflakeCmd is a command that creates a Snowflake dynamic secret + * @alias module:model/DynamicSecretCreateSnowflake + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateSnowflake(name) { + _classCallCheck(this, DynamicSecretCreateSnowflake); + + DynamicSecretCreateSnowflake.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateSnowflake, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateSnowflake from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateSnowflake} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateSnowflake} The populated DynamicSecretCreateSnowflake instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateSnowflake(); + + if (data.hasOwnProperty('account')) { + obj['account'] = _ApiClient["default"].convertToType(data['account'], 'String'); + } + + if (data.hasOwnProperty('account-password')) { + obj['account-password'] = _ApiClient["default"].convertToType(data['account-password'], 'String'); + } + + if (data.hasOwnProperty('account-username')) { + obj['account-username'] = _ApiClient["default"].convertToType(data['account-username'], 'String'); + } + + if (data.hasOwnProperty('db-name')) { + obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('private-key')) { + obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); + } + + if (data.hasOwnProperty('private-key-passphrase')) { + obj['private-key-passphrase'] = _ApiClient["default"].convertToType(data['private-key-passphrase'], 'String'); + } + + if (data.hasOwnProperty('role')) { + obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('warehouse')) { + obj['warehouse'] = _ApiClient["default"].convertToType(data['warehouse'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateSnowflake; +}(); +/** + * Account name + * @member {String} account + */ + + +DynamicSecretCreateSnowflake.prototype['account'] = undefined; +/** + * Database Password + * @member {String} account-password + */ + +DynamicSecretCreateSnowflake.prototype['account-password'] = undefined; +/** + * Database Username + * @member {String} account-username + */ + +DynamicSecretCreateSnowflake.prototype['account-username'] = undefined; +/** + * Database name + * @member {String} db-name + */ + +DynamicSecretCreateSnowflake.prototype['db-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreateSnowflake.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateSnowflake.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateSnowflake.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateSnowflake.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretCreateSnowflake.prototype['password-length'] = undefined; +/** + * RSA Private key (base64 encoded) + * @member {String} private-key + */ + +DynamicSecretCreateSnowflake.prototype['private-key'] = undefined; +/** + * The Private key passphrase + * @member {String} private-key-passphrase + */ + +DynamicSecretCreateSnowflake.prototype['private-key-passphrase'] = undefined; +/** + * User role + * @member {String} role + */ + +DynamicSecretCreateSnowflake.prototype['role'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateSnowflake.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateSnowflake.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateSnowflake.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateSnowflake.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '24h' + */ + +DynamicSecretCreateSnowflake.prototype['user-ttl'] = '24h'; +/** + * Warehouse name + * @member {String} warehouse + */ + +DynamicSecretCreateSnowflake.prototype['warehouse'] = undefined; +var _default = DynamicSecretCreateSnowflake; +exports["default"] = _default; + +/***/ }), + +/***/ 49390: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretCreateVenafi model module. + * @module model/DynamicSecretCreateVenafi + * @version 3.6.3 + */ +var DynamicSecretCreateVenafi = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretCreateVenafi. + * dynamicSecretCreateVenafi is a command that creates a Venafi dynamic secret to dynamically create certificates generated by Venafi or have Akeyless generated certificates using PKI be monitored by Venafi + * @alias module:model/DynamicSecretCreateVenafi + * @param name {String} Dynamic secret name + */ + function DynamicSecretCreateVenafi(name) { + _classCallCheck(this, DynamicSecretCreateVenafi); + + DynamicSecretCreateVenafi.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretCreateVenafi, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretCreateVenafi from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretCreateVenafi} obj Optional instance to populate. + * @return {module:model/DynamicSecretCreateVenafi} The populated DynamicSecretCreateVenafi instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretCreateVenafi(); + + if (data.hasOwnProperty('admin-rotation-interval-days')) { + obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); + } + + if (data.hasOwnProperty('allow-subdomains')) { + obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); + } + + if (data.hasOwnProperty('allowed-domains')) { + obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], ['String']); + } + + if (data.hasOwnProperty('auto-generated-folder')) { + obj['auto-generated-folder'] = _ApiClient["default"].convertToType(data['auto-generated-folder'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('enable-admin-rotation')) { + obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('root-first-in-chain')) { + obj['root-first-in-chain'] = _ApiClient["default"].convertToType(data['root-first-in-chain'], 'Boolean'); + } + + if (data.hasOwnProperty('sign-using-akeyless-pki')) { + obj['sign-using-akeyless-pki'] = _ApiClient["default"].convertToType(data['sign-using-akeyless-pki'], 'Boolean'); + } + + if (data.hasOwnProperty('signer-key-name')) { + obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); + } + + if (data.hasOwnProperty('store-private-key')) { + obj['store-private-key'] = _ApiClient["default"].convertToType(data['store-private-key'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('venafi-access-token')) { + obj['venafi-access-token'] = _ApiClient["default"].convertToType(data['venafi-access-token'], 'String'); + } + + if (data.hasOwnProperty('venafi-api-key')) { + obj['venafi-api-key'] = _ApiClient["default"].convertToType(data['venafi-api-key'], 'String'); + } + + if (data.hasOwnProperty('venafi-baseurl')) { + obj['venafi-baseurl'] = _ApiClient["default"].convertToType(data['venafi-baseurl'], 'String'); + } + + if (data.hasOwnProperty('venafi-client-id')) { + obj['venafi-client-id'] = _ApiClient["default"].convertToType(data['venafi-client-id'], 'String'); + } + + if (data.hasOwnProperty('venafi-refresh-token')) { + obj['venafi-refresh-token'] = _ApiClient["default"].convertToType(data['venafi-refresh-token'], 'String'); + } + + if (data.hasOwnProperty('venafi-use-tpp')) { + obj['venafi-use-tpp'] = _ApiClient["default"].convertToType(data['venafi-use-tpp'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi-zone')) { + obj['venafi-zone'] = _ApiClient["default"].convertToType(data['venafi-zone'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretCreateVenafi; +}(); +/** + * Admin credentials rotation interval (days) + * @member {Number} admin-rotation-interval-days + * @default 0 + */ + + +DynamicSecretCreateVenafi.prototype['admin-rotation-interval-days'] = 0; +/** + * Allow subdomains + * @member {Boolean} allow-subdomains + */ + +DynamicSecretCreateVenafi.prototype['allow-subdomains'] = undefined; +/** + * Allowed domains + * @member {Array.} allowed-domains + */ + +DynamicSecretCreateVenafi.prototype['allowed-domains'] = undefined; +/** + * Auto generated folder + * @member {String} auto-generated-folder + */ + +DynamicSecretCreateVenafi.prototype['auto-generated-folder'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretCreateVenafi.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretCreateVenafi.prototype['description'] = undefined; +/** + * Automatic admin credentials rotation + * @member {Boolean} enable-admin-rotation + * @default false + */ + +DynamicSecretCreateVenafi.prototype['enable-admin-rotation'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretCreateVenafi.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretCreateVenafi.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretCreateVenafi.prototype['producer-encryption-key-name'] = undefined; +/** + * Root first in chain + * @member {Boolean} root-first-in-chain + */ + +DynamicSecretCreateVenafi.prototype['root-first-in-chain'] = undefined; +/** + * Use Akeyless PKI issuer or Venafi issuer + * @member {Boolean} sign-using-akeyless-pki + */ + +DynamicSecretCreateVenafi.prototype['sign-using-akeyless-pki'] = undefined; +/** + * Signer key name + * @member {String} signer-key-name + */ + +DynamicSecretCreateVenafi.prototype['signer-key-name'] = undefined; +/** + * Store private key + * @member {Boolean} store-private-key + */ + +DynamicSecretCreateVenafi.prototype['store-private-key'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretCreateVenafi.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretCreateVenafi.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretCreateVenafi.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretCreateVenafi.prototype['uid-token'] = undefined; +/** + * User TTL in time.Duration format (2160h / 129600m / etc...). When using sign-using-akeyless-pki certificates created will have this validity period, otherwise the user-ttl is taken from the Validity Period field of the Zone's' Issuing Template. When using cert-manager it is advised to have a TTL of above 60 days (1440h). For more information - https://cert-manager.io/docs/usage/certificate/ + * @member {String} user-ttl + * @default '2160h' + */ + +DynamicSecretCreateVenafi.prototype['user-ttl'] = '2160h'; +/** + * Venafi Access Token to use to access the TPP environment (Relevant when using TPP) + * @member {String} venafi-access-token + */ + +DynamicSecretCreateVenafi.prototype['venafi-access-token'] = undefined; +/** + * Venafi API key + * @member {String} venafi-api-key + */ + +DynamicSecretCreateVenafi.prototype['venafi-api-key'] = undefined; +/** + * Venafi Baseurl + * @member {String} venafi-baseurl + */ + +DynamicSecretCreateVenafi.prototype['venafi-baseurl'] = undefined; +/** + * Venafi Client ID that was used when the access token was generated + * @member {String} venafi-client-id + * @default 'akeyless' + */ + +DynamicSecretCreateVenafi.prototype['venafi-client-id'] = 'akeyless'; +/** + * Venafi Refresh Token to use when the Access Token is expired (Relevant when using TPP) + * @member {String} venafi-refresh-token + */ + +DynamicSecretCreateVenafi.prototype['venafi-refresh-token'] = undefined; +/** + * Venafi using TPP + * @member {Boolean} venafi-use-tpp + */ + +DynamicSecretCreateVenafi.prototype['venafi-use-tpp'] = undefined; +/** + * Venafi Zone + * @member {String} venafi-zone + */ + +DynamicSecretCreateVenafi.prototype['venafi-zone'] = undefined; +var _default = DynamicSecretCreateVenafi; +exports["default"] = _default; + +/***/ }), + +/***/ 73872: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretDelete model module. + * @module model/DynamicSecretDelete + * @version 3.6.3 + */ +var DynamicSecretDelete = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretDelete. + * dynamicSecretDelete is a command that deletes dynamic secret + * @alias module:model/DynamicSecretDelete + * @param name {String} Dynamic secret name + */ + function DynamicSecretDelete(name) { + _classCallCheck(this, DynamicSecretDelete); + + DynamicSecretDelete.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretDelete, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretDelete from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretDelete} obj Optional instance to populate. + * @return {module:model/DynamicSecretDelete} The populated DynamicSecretDelete instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretDelete(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretDelete; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DynamicSecretDelete.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretDelete.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretDelete.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretDelete.prototype['uid-token'] = undefined; +var _default = DynamicSecretDelete; +exports["default"] = _default; + +/***/ }), + +/***/ 92057: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretDeleteOutput model module. + * @module model/DynamicSecretDeleteOutput + * @version 3.6.3 + */ +var DynamicSecretDeleteOutput = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretDeleteOutput. + * @alias module:model/DynamicSecretDeleteOutput + */ + function DynamicSecretDeleteOutput() { + _classCallCheck(this, DynamicSecretDeleteOutput); + + DynamicSecretDeleteOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretDeleteOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DynamicSecretDeleteOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretDeleteOutput} obj Optional instance to populate. + * @return {module:model/DynamicSecretDeleteOutput} The populated DynamicSecretDeleteOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretDeleteOutput(); + + if (data.hasOwnProperty('dynamic_secret_name')) { + obj['dynamic_secret_name'] = _ApiClient["default"].convertToType(data['dynamic_secret_name'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretDeleteOutput; +}(); +/** + * @member {String} dynamic_secret_name + */ + + +DynamicSecretDeleteOutput.prototype['dynamic_secret_name'] = undefined; +var _default = DynamicSecretDeleteOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 95219: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretGet model module. + * @module model/DynamicSecretGet + * @version 3.6.3 + */ +var DynamicSecretGet = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretGet. + * DynamicSecretGet is a command that returns dynamic secret details + * @alias module:model/DynamicSecretGet + * @param name {String} Dynamic secret name + */ + function DynamicSecretGet(name) { + _classCallCheck(this, DynamicSecretGet); + + DynamicSecretGet.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretGet, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretGet from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretGet} obj Optional instance to populate. + * @return {module:model/DynamicSecretGet} The populated DynamicSecretGet instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretGet(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretGet; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DynamicSecretGet.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretGet.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretGet.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretGet.prototype['uid-token'] = undefined; +var _default = DynamicSecretGet; +exports["default"] = _default; + +/***/ }), + +/***/ 42958: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretGetValue model module. + * @module model/DynamicSecretGetValue + * @version 3.6.3 + */ +var DynamicSecretGetValue = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretGetValue. + * @alias module:model/DynamicSecretGetValue + * @param name {String} Dynamic secret name + */ + function DynamicSecretGetValue(name) { + _classCallCheck(this, DynamicSecretGetValue); + + DynamicSecretGetValue.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretGetValue, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretGetValue from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretGetValue} obj Optional instance to populate. + * @return {module:model/DynamicSecretGetValue} The populated DynamicSecretGetValue instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretGetValue(); + + if (data.hasOwnProperty('args')) { + obj['args'] = _ApiClient["default"].convertToType(data['args'], ['String']); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('target')) { + obj['target'] = _ApiClient["default"].convertToType(data['target'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretGetValue; +}(); +/** + * Optional arguments as key=value pairs or JSON strings, e.g - \\\"--args=csr=base64_encoded_csr --args=common_name=bar\\\" or args='{\\\"csr\\\":\\\"base64_encoded_csr\\\"}. It is possible to combine both formats.' + * @member {Array.} args + */ + + +DynamicSecretGetValue.prototype['args'] = undefined; +/** + * Host + * @member {String} host + */ + +DynamicSecretGetValue.prototype['host'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretGetValue.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretGetValue.prototype['name'] = undefined; +/** + * Target Name + * @member {String} target + */ + +DynamicSecretGetValue.prototype['target'] = undefined; +/** + * Timeout in seconds + * @member {Number} timeout + * @default 15 + */ + +DynamicSecretGetValue.prototype['timeout'] = 15; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretGetValue.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretGetValue.prototype['uid-token'] = undefined; +var _default = DynamicSecretGetValue; +exports["default"] = _default; + +/***/ }), + +/***/ 6343: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretList model module. + * @module model/DynamicSecretList + * @version 3.6.3 + */ +var DynamicSecretList = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretList. + * dynamicSecretList is a command that returns a list of dynamic secrets + * @alias module:model/DynamicSecretList + */ + function DynamicSecretList() { + _classCallCheck(this, DynamicSecretList); + + DynamicSecretList.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DynamicSecretList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretList} obj Optional instance to populate. + * @return {module:model/DynamicSecretList} The populated DynamicSecretList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretList(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretList; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DynamicSecretList.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretList.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretList.prototype['uid-token'] = undefined; +var _default = DynamicSecretList; +exports["default"] = _default; + +/***/ }), + +/***/ 31553: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretMaxTtl model module. + * @module model/DynamicSecretMaxTtl + * @version 3.6.3 + */ +var DynamicSecretMaxTtl = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretMaxTtl. + * @alias module:model/DynamicSecretMaxTtl + */ + function DynamicSecretMaxTtl() { + _classCallCheck(this, DynamicSecretMaxTtl); + + DynamicSecretMaxTtl.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretMaxTtl, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DynamicSecretMaxTtl from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretMaxTtl} obj Optional instance to populate. + * @return {module:model/DynamicSecretMaxTtl} The populated DynamicSecretMaxTtl instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretMaxTtl(); + + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'Boolean'); + } + + if (data.hasOwnProperty('max_ttl_by_minutes')) { + obj['max_ttl_by_minutes'] = _ApiClient["default"].convertToType(data['max_ttl_by_minutes'], 'Number'); + } + } + + return obj; + } + }]); + + return DynamicSecretMaxTtl; +}(); +/** + * @member {Boolean} enable + */ + + +DynamicSecretMaxTtl.prototype['enable'] = undefined; +/** + * @member {Number} max_ttl_by_minutes + */ + +DynamicSecretMaxTtl.prototype['max_ttl_by_minutes'] = undefined; +var _default = DynamicSecretMaxTtl; +exports["default"] = _default; + +/***/ }), + +/***/ 98109: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretProducerInfo model module. + * @module model/DynamicSecretProducerInfo + * @version 3.6.3 + */ +var DynamicSecretProducerInfo = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretProducerInfo. + * DynamicSecretProducerInfo The dynamic secret producer info This parameter relevant and required only in case of create update dynamic secret. + * @alias module:model/DynamicSecretProducerInfo + */ + function DynamicSecretProducerInfo() { + _classCallCheck(this, DynamicSecretProducerInfo); + + DynamicSecretProducerInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretProducerInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DynamicSecretProducerInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretProducerInfo} obj Optional instance to populate. + * @return {module:model/DynamicSecretProducerInfo} The populated DynamicSecretProducerInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretProducerInfo(); + + if (data.hasOwnProperty('failure_message')) { + obj['failure_message'] = _ApiClient["default"].convertToType(data['failure_message'], 'String'); + } + + if (data.hasOwnProperty('gw_cluster_id')) { + obj['gw_cluster_id'] = _ApiClient["default"].convertToType(data['gw_cluster_id'], 'Number'); + } + + if (data.hasOwnProperty('k8s_allowed_namespaces')) { + obj['k8s_allowed_namespaces'] = _ApiClient["default"].convertToType(data['k8s_allowed_namespaces'], 'String'); + } + + if (data.hasOwnProperty('k8s_dynamic_mode')) { + obj['k8s_dynamic_mode'] = _ApiClient["default"].convertToType(data['k8s_dynamic_mode'], 'Boolean'); + } + + if (data.hasOwnProperty('producer_last_keep_alive')) { + obj['producer_last_keep_alive'] = _ApiClient["default"].convertToType(data['producer_last_keep_alive'], 'String'); + } + + if (data.hasOwnProperty('producer_metadata')) { + obj['producer_metadata'] = _ApiClient["default"].convertToType(data['producer_metadata'], 'String'); + } + + if (data.hasOwnProperty('producer_status')) { + obj['producer_status'] = _ApiClient["default"].convertToType(data['producer_status'], 'String'); + } + + if (data.hasOwnProperty('producer_type')) { + obj['producer_type'] = _ApiClient["default"].convertToType(data['producer_type'], 'String'); + } + + if (data.hasOwnProperty('user_ttl')) { + obj['user_ttl'] = _ApiClient["default"].convertToType(data['user_ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretProducerInfo; +}(); +/** + * @member {String} failure_message + */ + + +DynamicSecretProducerInfo.prototype['failure_message'] = undefined; +/** + * @member {Number} gw_cluster_id + */ + +DynamicSecretProducerInfo.prototype['gw_cluster_id'] = undefined; +/** + * Relevant only for generic k8s producer + * @member {String} k8s_allowed_namespaces + */ + +DynamicSecretProducerInfo.prototype['k8s_allowed_namespaces'] = undefined; +/** + * Relevant only for generic k8s producer + * @member {Boolean} k8s_dynamic_mode + */ + +DynamicSecretProducerInfo.prototype['k8s_dynamic_mode'] = undefined; +/** + * @member {String} producer_last_keep_alive + */ + +DynamicSecretProducerInfo.prototype['producer_last_keep_alive'] = undefined; +/** + * @member {String} producer_metadata + */ + +DynamicSecretProducerInfo.prototype['producer_metadata'] = undefined; +/** + * RotationStatus defines types of rotation Status + * @member {String} producer_status + */ + +DynamicSecretProducerInfo.prototype['producer_status'] = undefined; +/** + * @member {String} producer_type + */ + +DynamicSecretProducerInfo.prototype['producer_type'] = undefined; +/** + * @member {String} user_ttl + */ + +DynamicSecretProducerInfo.prototype['user_ttl'] = undefined; +var _default = DynamicSecretProducerInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 41262: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretTmpCredsDelete model module. + * @module model/DynamicSecretTmpCredsDelete + * @version 3.6.3 + */ +var DynamicSecretTmpCredsDelete = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretTmpCredsDelete. + * dynamicSecretTmpCredsDelete is a command that deletes dynamic secret temp creds + * @alias module:model/DynamicSecretTmpCredsDelete + * @param name {String} Dynamic secret name + * @param tmpCredsId {String} Tmp Creds ID + */ + function DynamicSecretTmpCredsDelete(name, tmpCredsId) { + _classCallCheck(this, DynamicSecretTmpCredsDelete); + + DynamicSecretTmpCredsDelete.initialize(this, name, tmpCredsId); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretTmpCredsDelete, null, [{ + key: "initialize", + value: function initialize(obj, name, tmpCredsId) { + obj['name'] = name; + obj['tmp-creds-id'] = tmpCredsId; + } + /** + * Constructs a DynamicSecretTmpCredsDelete from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretTmpCredsDelete} obj Optional instance to populate. + * @return {module:model/DynamicSecretTmpCredsDelete} The populated DynamicSecretTmpCredsDelete instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretTmpCredsDelete(); + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('revoke-all')) { + obj['revoke-all'] = _ApiClient["default"].convertToType(data['revoke-all'], 'Boolean'); + } + + if (data.hasOwnProperty('soft-delete')) { + obj['soft-delete'] = _ApiClient["default"].convertToType(data['soft-delete'], 'Boolean'); + } + + if (data.hasOwnProperty('tmp-creds-id')) { + obj['tmp-creds-id'] = _ApiClient["default"].convertToType(data['tmp-creds-id'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretTmpCredsDelete; +}(); +/** + * Host + * @member {String} host + */ + + +DynamicSecretTmpCredsDelete.prototype['host'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretTmpCredsDelete.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretTmpCredsDelete.prototype['name'] = undefined; +/** + * Revoke All Temp Creds + * @member {Boolean} revoke-all + */ + +DynamicSecretTmpCredsDelete.prototype['revoke-all'] = undefined; +/** + * Soft Delete + * @member {Boolean} soft-delete + */ + +DynamicSecretTmpCredsDelete.prototype['soft-delete'] = undefined; +/** + * Tmp Creds ID + * @member {String} tmp-creds-id + * @default 'demo_default_tmp_creds_id_for_sdk_bc' + */ + +DynamicSecretTmpCredsDelete.prototype['tmp-creds-id'] = 'demo_default_tmp_creds_id_for_sdk_bc'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretTmpCredsDelete.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretTmpCredsDelete.prototype['uid-token'] = undefined; +var _default = DynamicSecretTmpCredsDelete; +exports["default"] = _default; + +/***/ }), + +/***/ 68697: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretTmpCredsGet model module. + * @module model/DynamicSecretTmpCredsGet + * @version 3.6.3 + */ +var DynamicSecretTmpCredsGet = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretTmpCredsGet. + * dynamicSecretTmpCredsGet is a command that returns dynamic secret temp creds + * @alias module:model/DynamicSecretTmpCredsGet + * @param name {String} Dynamic secret name + */ + function DynamicSecretTmpCredsGet(name) { + _classCallCheck(this, DynamicSecretTmpCredsGet); + + DynamicSecretTmpCredsGet.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretTmpCredsGet, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretTmpCredsGet from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretTmpCredsGet} obj Optional instance to populate. + * @return {module:model/DynamicSecretTmpCredsGet} The populated DynamicSecretTmpCredsGet instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretTmpCredsGet(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretTmpCredsGet; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +DynamicSecretTmpCredsGet.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretTmpCredsGet.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretTmpCredsGet.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretTmpCredsGet.prototype['uid-token'] = undefined; +var _default = DynamicSecretTmpCredsGet; +exports["default"] = _default; + +/***/ }), + +/***/ 85584: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretTmpCredsUpdate model module. + * @module model/DynamicSecretTmpCredsUpdate + * @version 3.6.3 + */ +var DynamicSecretTmpCredsUpdate = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretTmpCredsUpdate. + * dynamicSecretTmpCredsUpdate is a command that updates dynamic secret temp creds + * @alias module:model/DynamicSecretTmpCredsUpdate + * @param host {String} Host + * @param name {String} Dynamic secret name + * @param newTtlMin {Number} New TTL in Minutes + * @param tmpCredsId {String} Tmp Creds ID + */ + function DynamicSecretTmpCredsUpdate(host, name, newTtlMin, tmpCredsId) { + _classCallCheck(this, DynamicSecretTmpCredsUpdate); + + DynamicSecretTmpCredsUpdate.initialize(this, host, name, newTtlMin, tmpCredsId); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretTmpCredsUpdate, null, [{ + key: "initialize", + value: function initialize(obj, host, name, newTtlMin, tmpCredsId) { + obj['host'] = host; + obj['name'] = name; + obj['new-ttl-min'] = newTtlMin; + obj['tmp-creds-id'] = tmpCredsId; + } + /** + * Constructs a DynamicSecretTmpCredsUpdate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretTmpCredsUpdate} obj Optional instance to populate. + * @return {module:model/DynamicSecretTmpCredsUpdate} The populated DynamicSecretTmpCredsUpdate instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretTmpCredsUpdate(); + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-ttl-min')) { + obj['new-ttl-min'] = _ApiClient["default"].convertToType(data['new-ttl-min'], 'Number'); + } + + if (data.hasOwnProperty('tmp-creds-id')) { + obj['tmp-creds-id'] = _ApiClient["default"].convertToType(data['tmp-creds-id'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretTmpCredsUpdate; +}(); +/** + * Host + * @member {String} host + */ + + +DynamicSecretTmpCredsUpdate.prototype['host'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretTmpCredsUpdate.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretTmpCredsUpdate.prototype['name'] = undefined; +/** + * New TTL in Minutes + * @member {Number} new-ttl-min + */ + +DynamicSecretTmpCredsUpdate.prototype['new-ttl-min'] = undefined; +/** + * Tmp Creds ID + * @member {String} tmp-creds-id + */ + +DynamicSecretTmpCredsUpdate.prototype['tmp-creds-id'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretTmpCredsUpdate.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretTmpCredsUpdate.prototype['uid-token'] = undefined; +var _default = DynamicSecretTmpCredsUpdate; +exports["default"] = _default; + +/***/ }), + +/***/ 87534: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateArtifactory model module. + * @module model/DynamicSecretUpdateArtifactory + * @version 3.6.3 + */ +var DynamicSecretUpdateArtifactory = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateArtifactory. + * dynamicSecretUpdateArtifactory is a command that updates artifactory dynamic secret + * @alias module:model/DynamicSecretUpdateArtifactory + * @param artifactoryTokenAudience {String} Token Audience + * @param artifactoryTokenScope {String} Token Scope + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateArtifactory(artifactoryTokenAudience, artifactoryTokenScope, name) { + _classCallCheck(this, DynamicSecretUpdateArtifactory); + + DynamicSecretUpdateArtifactory.initialize(this, artifactoryTokenAudience, artifactoryTokenScope, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateArtifactory, null, [{ + key: "initialize", + value: function initialize(obj, artifactoryTokenAudience, artifactoryTokenScope, name) { + obj['artifactory-token-audience'] = artifactoryTokenAudience; + obj['artifactory-token-scope'] = artifactoryTokenScope; + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateArtifactory from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateArtifactory} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateArtifactory} The populated DynamicSecretUpdateArtifactory instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateArtifactory(); + + if (data.hasOwnProperty('artifactory-admin-name')) { + obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); + } + + if (data.hasOwnProperty('artifactory-admin-pwd')) { + obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('artifactory-token-audience')) { + obj['artifactory-token-audience'] = _ApiClient["default"].convertToType(data['artifactory-token-audience'], 'String'); + } + + if (data.hasOwnProperty('artifactory-token-scope')) { + obj['artifactory-token-scope'] = _ApiClient["default"].convertToType(data['artifactory-token-scope'], 'String'); + } + + if (data.hasOwnProperty('base-url')) { + obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateArtifactory; +}(); +/** + * Artifactory Admin Name + * @member {String} artifactory-admin-name + */ + + +DynamicSecretUpdateArtifactory.prototype['artifactory-admin-name'] = undefined; +/** + * Artifactory Admin password + * @member {String} artifactory-admin-pwd + */ + +DynamicSecretUpdateArtifactory.prototype['artifactory-admin-pwd'] = undefined; +/** + * Token Audience + * @member {String} artifactory-token-audience + */ + +DynamicSecretUpdateArtifactory.prototype['artifactory-token-audience'] = undefined; +/** + * Token Scope + * @member {String} artifactory-token-scope + */ + +DynamicSecretUpdateArtifactory.prototype['artifactory-token-scope'] = undefined; +/** + * Base URL + * @member {String} base-url + */ + +DynamicSecretUpdateArtifactory.prototype['base-url'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateArtifactory.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateArtifactory.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateArtifactory.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateArtifactory.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateArtifactory.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateArtifactory.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateArtifactory.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateArtifactory.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateArtifactory.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateArtifactory.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateArtifactory.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateArtifactory; +exports["default"] = _default; + +/***/ }), + +/***/ 79205: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateAws model module. + * @module model/DynamicSecretUpdateAws + * @version 3.6.3 + */ +var DynamicSecretUpdateAws = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateAws. + * dynamicSecretUpdateAws is a command that Updates aws dynamic secret + * @alias module:model/DynamicSecretUpdateAws + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateAws(name) { + _classCallCheck(this, DynamicSecretUpdateAws); + + DynamicSecretUpdateAws.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateAws, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateAws from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateAws} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateAws} The populated DynamicSecretUpdateAws instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateAws(); + + if (data.hasOwnProperty('access-mode')) { + obj['access-mode'] = _ApiClient["default"].convertToType(data['access-mode'], 'String'); + } + + if (data.hasOwnProperty('admin-rotation-interval-days')) { + obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); + } + + if (data.hasOwnProperty('aws-access-key-id')) { + obj['aws-access-key-id'] = _ApiClient["default"].convertToType(data['aws-access-key-id'], 'String'); + } + + if (data.hasOwnProperty('aws-access-secret-key')) { + obj['aws-access-secret-key'] = _ApiClient["default"].convertToType(data['aws-access-secret-key'], 'String'); + } + + if (data.hasOwnProperty('aws-role-arns')) { + obj['aws-role-arns'] = _ApiClient["default"].convertToType(data['aws-role-arns'], 'String'); + } + + if (data.hasOwnProperty('aws-user-console-access')) { + obj['aws-user-console-access'] = _ApiClient["default"].convertToType(data['aws-user-console-access'], 'Boolean'); + } + + if (data.hasOwnProperty('aws-user-groups')) { + obj['aws-user-groups'] = _ApiClient["default"].convertToType(data['aws-user-groups'], 'String'); + } + + if (data.hasOwnProperty('aws-user-policies')) { + obj['aws-user-policies'] = _ApiClient["default"].convertToType(data['aws-user-policies'], 'String'); + } + + if (data.hasOwnProperty('aws-user-programmatic-access')) { + obj['aws-user-programmatic-access'] = _ApiClient["default"].convertToType(data['aws-user-programmatic-access'], 'Boolean'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('enable-admin-rotation')) { + obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } + + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); + } + + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateAws; +}(); +/** + * @member {String} access-mode + */ + + +DynamicSecretUpdateAws.prototype['access-mode'] = undefined; +/** + * Admin credentials rotation interval (days) + * @member {Number} admin-rotation-interval-days + * @default 0 + */ + +DynamicSecretUpdateAws.prototype['admin-rotation-interval-days'] = 0; +/** + * Access Key ID + * @member {String} aws-access-key-id + */ + +DynamicSecretUpdateAws.prototype['aws-access-key-id'] = undefined; +/** + * Secret Access Key + * @member {String} aws-access-secret-key + */ + +DynamicSecretUpdateAws.prototype['aws-access-secret-key'] = undefined; +/** + * AWS Role ARNs to be used in the Assume Role operation (relevant only for assume_role mode) + * @member {String} aws-role-arns + */ + +DynamicSecretUpdateAws.prototype['aws-role-arns'] = undefined; +/** + * AWS User console access + * @member {Boolean} aws-user-console-access + * @default false + */ + +DynamicSecretUpdateAws.prototype['aws-user-console-access'] = false; +/** + * AWS User groups + * @member {String} aws-user-groups + */ + +DynamicSecretUpdateAws.prototype['aws-user-groups'] = undefined; +/** + * AWS User policies + * @member {String} aws-user-policies + */ + +DynamicSecretUpdateAws.prototype['aws-user-policies'] = undefined; +/** + * Enable AWS User programmatic access + * @member {Boolean} aws-user-programmatic-access + * @default true + */ + +DynamicSecretUpdateAws.prototype['aws-user-programmatic-access'] = true; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateAws.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateAws.prototype['description'] = undefined; +/** + * Automatic admin credentials rotation + * @member {Boolean} enable-admin-rotation + * @default false + */ + +DynamicSecretUpdateAws.prototype['enable-admin-rotation'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateAws.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateAws.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateAws.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateAws.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateAws.prototype['producer-encryption-key-name'] = undefined; +/** + * Region + * @member {String} region + * @default 'us-east-2' + */ + +DynamicSecretUpdateAws.prototype['region'] = 'us-east-2'; +/** + * The AWS account id + * @member {String} secure-access-aws-account-id + */ + +DynamicSecretUpdateAws.prototype['secure-access-aws-account-id'] = undefined; +/** + * The AWS native cli + * @member {Boolean} secure-access-aws-native-cli + */ + +DynamicSecretUpdateAws.prototype['secure-access-aws-native-cli'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretUpdateAws.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdateAws.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ + +DynamicSecretUpdateAws.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +DynamicSecretUpdateAws.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +DynamicSecretUpdateAws.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateAws.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateAws.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateAws.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateAws.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateAws.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateAws; +exports["default"] = _default; + +/***/ }), + +/***/ 43971: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateAzure model module. + * @module model/DynamicSecretUpdateAzure + * @version 3.6.3 + */ +var DynamicSecretUpdateAzure = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateAzure. + * dynamicSecretUpdateAzure is a command that updates azure dynamic secret + * @alias module:model/DynamicSecretUpdateAzure + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateAzure(name) { + _classCallCheck(this, DynamicSecretUpdateAzure); + + DynamicSecretUpdateAzure.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateAzure, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateAzure from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateAzure} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateAzure} The populated DynamicSecretUpdateAzure instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateAzure(); + + if (data.hasOwnProperty('app-obj-id')) { + obj['app-obj-id'] = _ApiClient["default"].convertToType(data['app-obj-id'], 'String'); + } + + if (data.hasOwnProperty('azure-client-id')) { + obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); + } + + if (data.hasOwnProperty('azure-client-secret')) { + obj['azure-client-secret'] = _ApiClient["default"].convertToType(data['azure-client-secret'], 'String'); + } + + if (data.hasOwnProperty('azure-tenant-id')) { + obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('fixed-user-claim-keyname')) { + obj['fixed-user-claim-keyname'] = _ApiClient["default"].convertToType(data['fixed-user-claim-keyname'], 'String'); + } + + if (data.hasOwnProperty('fixed-user-only')) { + obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-group-obj-id')) { + obj['user-group-obj-id'] = _ApiClient["default"].convertToType(data['user-group-obj-id'], 'String'); + } + + if (data.hasOwnProperty('user-portal-access')) { + obj['user-portal-access'] = _ApiClient["default"].convertToType(data['user-portal-access'], 'Boolean'); + } + + if (data.hasOwnProperty('user-principal-name')) { + obj['user-principal-name'] = _ApiClient["default"].convertToType(data['user-principal-name'], 'String'); + } + + if (data.hasOwnProperty('user-programmatic-access')) { + obj['user-programmatic-access'] = _ApiClient["default"].convertToType(data['user-programmatic-access'], 'Boolean'); + } + + if (data.hasOwnProperty('user-role-template-id')) { + obj['user-role-template-id'] = _ApiClient["default"].convertToType(data['user-role-template-id'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateAzure; +}(); +/** + * Azure App Object Id + * @member {String} app-obj-id + */ + + +DynamicSecretUpdateAzure.prototype['app-obj-id'] = undefined; +/** + * Azure Client ID + * @member {String} azure-client-id + */ + +DynamicSecretUpdateAzure.prototype['azure-client-id'] = undefined; +/** + * Azure Client Secret + * @member {String} azure-client-secret + */ + +DynamicSecretUpdateAzure.prototype['azure-client-secret'] = undefined; +/** + * Azure Tenant ID + * @member {String} azure-tenant-id + */ + +DynamicSecretUpdateAzure.prototype['azure-tenant-id'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateAzure.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateAzure.prototype['description'] = undefined; +/** + * FixedUserClaimKeyname + * @member {String} fixed-user-claim-keyname + * @default 'false' + */ + +DynamicSecretUpdateAzure.prototype['fixed-user-claim-keyname'] = 'false'; +/** + * Fixed user + * @member {Boolean} fixed-user-only + * @default false + */ + +DynamicSecretUpdateAzure.prototype['fixed-user-only'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateAzure.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateAzure.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateAzure.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateAzure.prototype['password-length'] = undefined; +/** + * Dynamic secret encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateAzure.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdateAzure.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ + +DynamicSecretUpdateAzure.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +DynamicSecretUpdateAzure.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +DynamicSecretUpdateAzure.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateAzure.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateAzure.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateAzure.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateAzure.prototype['uid-token'] = undefined; +/** + * User Group Object Id + * @member {String} user-group-obj-id + */ + +DynamicSecretUpdateAzure.prototype['user-group-obj-id'] = undefined; +/** + * Azure User portal access + * @member {Boolean} user-portal-access + * @default false + */ + +DynamicSecretUpdateAzure.prototype['user-portal-access'] = false; +/** + * User Principal Name + * @member {String} user-principal-name + */ + +DynamicSecretUpdateAzure.prototype['user-principal-name'] = undefined; +/** + * Azure User programmatic access + * @member {Boolean} user-programmatic-access + * @default false + */ + +DynamicSecretUpdateAzure.prototype['user-programmatic-access'] = false; +/** + * User Role Template Id + * @member {String} user-role-template-id + */ + +DynamicSecretUpdateAzure.prototype['user-role-template-id'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateAzure.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateAzure; +exports["default"] = _default; + +/***/ }), + +/***/ 49178: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateCassandra model module. + * @module model/DynamicSecretUpdateCassandra + * @version 3.6.3 + */ +var DynamicSecretUpdateCassandra = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateCassandra. + * dynamicSecretUpdateCassandra is a command that updates a Cassandra dynamic secret + * @alias module:model/DynamicSecretUpdateCassandra + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateCassandra(name) { + _classCallCheck(this, DynamicSecretUpdateCassandra); + + DynamicSecretUpdateCassandra.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateCassandra, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateCassandra from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateCassandra} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateCassandra} The populated DynamicSecretUpdateCassandra instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateCassandra(); + + if (data.hasOwnProperty('cassandra-creation-statements')) { + obj['cassandra-creation-statements'] = _ApiClient["default"].convertToType(data['cassandra-creation-statements'], 'String'); + } + + if (data.hasOwnProperty('cassandra-hosts')) { + obj['cassandra-hosts'] = _ApiClient["default"].convertToType(data['cassandra-hosts'], 'String'); + } + + if (data.hasOwnProperty('cassandra-password')) { + obj['cassandra-password'] = _ApiClient["default"].convertToType(data['cassandra-password'], 'String'); + } + + if (data.hasOwnProperty('cassandra-port')) { + obj['cassandra-port'] = _ApiClient["default"].convertToType(data['cassandra-port'], 'String'); + } + + if (data.hasOwnProperty('cassandra-username')) { + obj['cassandra-username'] = _ApiClient["default"].convertToType(data['cassandra-username'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateCassandra; +}(); +/** + * Cassandra creation statements + * @member {String} cassandra-creation-statements + */ + + +DynamicSecretUpdateCassandra.prototype['cassandra-creation-statements'] = undefined; +/** + * Cassandra hosts IP or addresses, comma separated + * @member {String} cassandra-hosts + */ + +DynamicSecretUpdateCassandra.prototype['cassandra-hosts'] = undefined; +/** + * Cassandra superuser password + * @member {String} cassandra-password + */ + +DynamicSecretUpdateCassandra.prototype['cassandra-password'] = undefined; +/** + * Cassandra port + * @member {String} cassandra-port + * @default '9042' + */ + +DynamicSecretUpdateCassandra.prototype['cassandra-port'] = '9042'; +/** + * Cassandra superuser username + * @member {String} cassandra-username + */ + +DynamicSecretUpdateCassandra.prototype['cassandra-username'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateCassandra.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateCassandra.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateCassandra.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateCassandra.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateCassandra.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateCassandra.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateCassandra.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +DynamicSecretUpdateCassandra.prototype['ssl'] = false; +/** + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} ssl-certificate + */ + +DynamicSecretUpdateCassandra.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateCassandra.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateCassandra.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateCassandra.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateCassandra.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateCassandra.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateCassandra; +exports["default"] = _default; + +/***/ }), + +/***/ 58970: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateChef model module. + * @module model/DynamicSecretUpdateChef + * @version 3.6.3 + */ +var DynamicSecretUpdateChef = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateChef. + * dynamicSecretUpdateChef is a command that updates chef dynamic secret + * @alias module:model/DynamicSecretUpdateChef + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateChef(name) { + _classCallCheck(this, DynamicSecretUpdateChef); + + DynamicSecretUpdateChef.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateChef, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateChef from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateChef} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateChef} The populated DynamicSecretUpdateChef instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateChef(); + + if (data.hasOwnProperty('chef-orgs')) { + obj['chef-orgs'] = _ApiClient["default"].convertToType(data['chef-orgs'], 'String'); + } + + if (data.hasOwnProperty('chef-server-key')) { + obj['chef-server-key'] = _ApiClient["default"].convertToType(data['chef-server-key'], 'String'); + } + + if (data.hasOwnProperty('chef-server-url')) { + obj['chef-server-url'] = _ApiClient["default"].convertToType(data['chef-server-url'], 'String'); + } + + if (data.hasOwnProperty('chef-server-username')) { + obj['chef-server-username'] = _ApiClient["default"].convertToType(data['chef-server-username'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('skip-ssl')) { + obj['skip-ssl'] = _ApiClient["default"].convertToType(data['skip-ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateChef; +}(); +/** + * Organizations + * @member {String} chef-orgs + */ + + +DynamicSecretUpdateChef.prototype['chef-orgs'] = undefined; +/** + * Server key + * @member {String} chef-server-key + */ + +DynamicSecretUpdateChef.prototype['chef-server-key'] = undefined; +/** + * Server URL + * @member {String} chef-server-url + */ + +DynamicSecretUpdateChef.prototype['chef-server-url'] = undefined; +/** + * Server username + * @member {String} chef-server-username + */ + +DynamicSecretUpdateChef.prototype['chef-server-username'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateChef.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateChef.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateChef.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateChef.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateChef.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateChef.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateChef.prototype['producer-encryption-key-name'] = undefined; +/** + * Skip SSL + * @member {Boolean} skip-ssl + * @default true + */ + +DynamicSecretUpdateChef.prototype['skip-ssl'] = true; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateChef.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateChef.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateChef.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateChef.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateChef.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateChef; +exports["default"] = _default; + +/***/ }), + +/***/ 18573: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateCustom model module. + * @module model/DynamicSecretUpdateCustom + * @version 3.6.3 + */ +var DynamicSecretUpdateCustom = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateCustom. + * @alias module:model/DynamicSecretUpdateCustom + * @param createSyncUrl {String} URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create + * @param name {String} Dynamic secret name + * @param revokeSyncUrl {String} URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke + */ + function DynamicSecretUpdateCustom(createSyncUrl, name, revokeSyncUrl) { + _classCallCheck(this, DynamicSecretUpdateCustom); + + DynamicSecretUpdateCustom.initialize(this, createSyncUrl, name, revokeSyncUrl); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateCustom, null, [{ + key: "initialize", + value: function initialize(obj, createSyncUrl, name, revokeSyncUrl) { + obj['create-sync-url'] = createSyncUrl; + obj['name'] = name; + obj['revoke-sync-url'] = revokeSyncUrl; + } + /** + * Constructs a DynamicSecretUpdateCustom from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateCustom} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateCustom} The populated DynamicSecretUpdateCustom instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateCustom(); + + if (data.hasOwnProperty('admin_rotation_interval_days')) { + obj['admin_rotation_interval_days'] = _ApiClient["default"].convertToType(data['admin_rotation_interval_days'], 'Number'); + } + + if (data.hasOwnProperty('create-sync-url')) { + obj['create-sync-url'] = _ApiClient["default"].convertToType(data['create-sync-url'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('enable_admin_rotation')) { + obj['enable_admin_rotation'] = _ApiClient["default"].convertToType(data['enable_admin_rotation'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('revoke-sync-url')) { + obj['revoke-sync-url'] = _ApiClient["default"].convertToType(data['revoke-sync-url'], 'String'); + } + + if (data.hasOwnProperty('rotate-sync-url')) { + obj['rotate-sync-url'] = _ApiClient["default"].convertToType(data['rotate-sync-url'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('timeout-sec')) { + obj['timeout-sec'] = _ApiClient["default"].convertToType(data['timeout-sec'], 'Number'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateCustom; +}(); +/** + * Define rotation interval in days + * @member {Number} admin_rotation_interval_days + */ + + +DynamicSecretUpdateCustom.prototype['admin_rotation_interval_days'] = undefined; +/** + * URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create + * @member {String} create-sync-url + */ + +DynamicSecretUpdateCustom.prototype['create-sync-url'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateCustom.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateCustom.prototype['description'] = undefined; +/** + * Should admin credentials be rotated + * @member {Boolean} enable_admin_rotation + * @default false + */ + +DynamicSecretUpdateCustom.prototype['enable_admin_rotation'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateCustom.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateCustom.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateCustom.prototype['new-name'] = undefined; +/** + * Secret payload to be sent with each create/revoke webhook request + * @member {String} payload + */ + +DynamicSecretUpdateCustom.prototype['payload'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateCustom.prototype['producer-encryption-key-name'] = undefined; +/** + * URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke + * @member {String} revoke-sync-url + */ + +DynamicSecretUpdateCustom.prototype['revoke-sync-url'] = undefined; +/** + * URL of an endpoint that implements /sync/rotate method, for example https://webhook.example.com/sync/rotate + * @member {String} rotate-sync-url + */ + +DynamicSecretUpdateCustom.prototype['rotate-sync-url'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateCustom.prototype['tags'] = undefined; +/** + * Maximum allowed time in seconds for the webhook to return the results + * @member {Number} timeout-sec + * @default 60 + */ + +DynamicSecretUpdateCustom.prototype['timeout-sec'] = 60; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateCustom.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateCustom.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateCustom.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateCustom; +exports["default"] = _default; + +/***/ }), + +/***/ 20303: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateDockerhub model module. + * @module model/DynamicSecretUpdateDockerhub + * @version 3.6.3 + */ +var DynamicSecretUpdateDockerhub = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateDockerhub. + * dynamicSecretUpdateDockerhub is a command that updates a DOCKERHUB dynamic secret + * @alias module:model/DynamicSecretUpdateDockerhub + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateDockerhub(name) { + _classCallCheck(this, DynamicSecretUpdateDockerhub); + + DynamicSecretUpdateDockerhub.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateDockerhub, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateDockerhub from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateDockerhub} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateDockerhub} The populated DynamicSecretUpdateDockerhub instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateDockerhub(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('dockerhub-password')) { + obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); + } + + if (data.hasOwnProperty('dockerhub-token-scopes')) { + obj['dockerhub-token-scopes'] = _ApiClient["default"].convertToType(data['dockerhub-token-scopes'], 'String'); + } + + if (data.hasOwnProperty('dockerhub-username')) { + obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateDockerhub; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretUpdateDockerhub.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateDockerhub.prototype['description'] = undefined; +/** + * DockerhubPassword is either the user's password access token to manage the repository + * @member {String} dockerhub-password + */ + +DynamicSecretUpdateDockerhub.prototype['dockerhub-password'] = undefined; +/** + * Access token scopes list (comma-separated) to give the dynamic secret valid options are in \"repo:admin\", \"repo:write\", \"repo:read\", \"repo:public_read\" + * @member {String} dockerhub-token-scopes + */ + +DynamicSecretUpdateDockerhub.prototype['dockerhub-token-scopes'] = undefined; +/** + * DockerhubUsername is the name of the user in dockerhub + * @member {String} dockerhub-username + */ + +DynamicSecretUpdateDockerhub.prototype['dockerhub-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateDockerhub.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateDockerhub.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateDockerhub.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateDockerhub.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateDockerhub.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateDockerhub.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateDockerhub.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateDockerhub.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateDockerhub.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateDockerhub; +exports["default"] = _default; + +/***/ }), + +/***/ 41477: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateEks model module. + * @module model/DynamicSecretUpdateEks + * @version 3.6.3 + */ +var DynamicSecretUpdateEks = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateEks. + * dynamicSecretUpdateEks is a command that updates eks dynamic secret + * @alias module:model/DynamicSecretUpdateEks + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateEks(name) { + _classCallCheck(this, DynamicSecretUpdateEks); + + DynamicSecretUpdateEks.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateEks, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateEks from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateEks} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateEks} The populated DynamicSecretUpdateEks instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateEks(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('eks-access-key-id')) { + obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); + } + + if (data.hasOwnProperty('eks-assume-role')) { + obj['eks-assume-role'] = _ApiClient["default"].convertToType(data['eks-assume-role'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-ca-cert')) { + obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-endpoint')) { + obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-name')) { + obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); + } + + if (data.hasOwnProperty('eks-region')) { + obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); + } + + if (data.hasOwnProperty('eks-secret-access-key')) { + obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateEks; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretUpdateEks.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateEks.prototype['description'] = undefined; +/** + * Access Key ID + * @member {String} eks-access-key-id + */ + +DynamicSecretUpdateEks.prototype['eks-access-key-id'] = undefined; +/** + * IAM assume role + * @member {String} eks-assume-role + */ + +DynamicSecretUpdateEks.prototype['eks-assume-role'] = undefined; +/** + * EKS cluster CA certificate + * @member {String} eks-cluster-ca-cert + */ + +DynamicSecretUpdateEks.prototype['eks-cluster-ca-cert'] = undefined; +/** + * EKS cluster URL endpoint + * @member {String} eks-cluster-endpoint + */ + +DynamicSecretUpdateEks.prototype['eks-cluster-endpoint'] = undefined; +/** + * EKS cluster name + * @member {String} eks-cluster-name + */ + +DynamicSecretUpdateEks.prototype['eks-cluster-name'] = undefined; +/** + * Region + * @member {String} eks-region + * @default 'us-east-2' + */ + +DynamicSecretUpdateEks.prototype['eks-region'] = 'us-east-2'; +/** + * Secret Access Key + * @member {String} eks-secret-access-key + */ + +DynamicSecretUpdateEks.prototype['eks-secret-access-key'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateEks.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateEks.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateEks.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateEks.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ + +DynamicSecretUpdateEks.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretUpdateEks.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ + +DynamicSecretUpdateEks.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdateEks.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretUpdateEks.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateEks.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateEks.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateEks.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateEks.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '15m' + */ + +DynamicSecretUpdateEks.prototype['user-ttl'] = '15m'; +var _default = DynamicSecretUpdateEks; +exports["default"] = _default; + +/***/ }), + +/***/ 66754: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateGcp model module. + * @module model/DynamicSecretUpdateGcp + * @version 3.6.3 + */ +var DynamicSecretUpdateGcp = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateGcp. + * dynamicSecretUpdateGcp is a command that updates a GCP dynamic secret + * @alias module:model/DynamicSecretUpdateGcp + * @param name {String} Dynamic secret name + * @param serviceAccountType {String} The type of the gcp dynamic secret. Options[fixed, dynamic] + */ + function DynamicSecretUpdateGcp(name, serviceAccountType) { + _classCallCheck(this, DynamicSecretUpdateGcp); + + DynamicSecretUpdateGcp.initialize(this, name, serviceAccountType); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateGcp, null, [{ + key: "initialize", + value: function initialize(obj, name, serviceAccountType) { + obj['name'] = name; + obj['service-account-type'] = serviceAccountType; + } + /** + * Constructs a DynamicSecretUpdateGcp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateGcp} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateGcp} The populated DynamicSecretUpdateGcp instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateGcp(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('gcp-cred-type')) { + obj['gcp-cred-type'] = _ApiClient["default"].convertToType(data['gcp-cred-type'], 'String'); + } + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } + + if (data.hasOwnProperty('gcp-key-algo')) { + obj['gcp-key-algo'] = _ApiClient["default"].convertToType(data['gcp-key-algo'], 'String'); + } + + if (data.hasOwnProperty('gcp-sa-email')) { + obj['gcp-sa-email'] = _ApiClient["default"].convertToType(data['gcp-sa-email'], 'String'); + } + + if (data.hasOwnProperty('gcp-token-scopes')) { + obj['gcp-token-scopes'] = _ApiClient["default"].convertToType(data['gcp-token-scopes'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('role-binding')) { + obj['role-binding'] = _ApiClient["default"].convertToType(data['role-binding'], 'String'); + } + + if (data.hasOwnProperty('service-account-type')) { + obj['service-account-type'] = _ApiClient["default"].convertToType(data['service-account-type'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateGcp; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretUpdateGcp.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateGcp.prototype['description'] = undefined; +/** + * @member {String} gcp-cred-type + */ + +DynamicSecretUpdateGcp.prototype['gcp-cred-type'] = undefined; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ + +DynamicSecretUpdateGcp.prototype['gcp-key'] = undefined; +/** + * Service account key algorithm, e.g. KEY_ALG_RSA_1024 + * @member {String} gcp-key-algo + */ + +DynamicSecretUpdateGcp.prototype['gcp-key-algo'] = undefined; +/** + * The email of the fixed service acocunt to generate keys or tokens for. (revelant for service-account-type=fixed) + * @member {String} gcp-sa-email + */ + +DynamicSecretUpdateGcp.prototype['gcp-sa-email'] = undefined; +/** + * Access token scopes list, e.g. scope1,scope2 + * @member {String} gcp-token-scopes + */ + +DynamicSecretUpdateGcp.prototype['gcp-token-scopes'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateGcp.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateGcp.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateGcp.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateGcp.prototype['producer-encryption-key-name'] = undefined; +/** + * Role binding definitions in json format + * @member {String} role-binding + */ + +DynamicSecretUpdateGcp.prototype['role-binding'] = undefined; +/** + * The type of the gcp dynamic secret. Options[fixed, dynamic] + * @member {String} service-account-type + * @default 'fixed' + */ + +DynamicSecretUpdateGcp.prototype['service-account-type'] = 'fixed'; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateGcp.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateGcp.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateGcp.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateGcp.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateGcp.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateGcp; +exports["default"] = _default; + +/***/ }), + +/***/ 22985: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateGithub model module. + * @module model/DynamicSecretUpdateGithub + * @version 3.6.3 + */ +var DynamicSecretUpdateGithub = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateGithub. + * dynamicSecretUpdateGithub is a command that updates github dynamic secret + * @alias module:model/DynamicSecretUpdateGithub + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateGithub(name) { + _classCallCheck(this, DynamicSecretUpdateGithub); + + DynamicSecretUpdateGithub.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateGithub, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateGithub from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateGithub} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateGithub} The populated DynamicSecretUpdateGithub instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateGithub(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('github-app-id')) { + obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); + } + + if (data.hasOwnProperty('github-app-private-key')) { + obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); + } + + if (data.hasOwnProperty('github-base-url')) { + obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); + } + + if (data.hasOwnProperty('installation-id')) { + obj['installation-id'] = _ApiClient["default"].convertToType(data['installation-id'], 'Number'); + } + + if (data.hasOwnProperty('installation-organization')) { + obj['installation-organization'] = _ApiClient["default"].convertToType(data['installation-organization'], 'String'); + } + + if (data.hasOwnProperty('installation-repository')) { + obj['installation-repository'] = _ApiClient["default"].convertToType(data['installation-repository'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('token-permissions')) { + obj['token-permissions'] = _ApiClient["default"].convertToType(data['token-permissions'], ['String']); + } + + if (data.hasOwnProperty('token-repositories')) { + obj['token-repositories'] = _ApiClient["default"].convertToType(data['token-repositories'], ['String']); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateGithub; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretUpdateGithub.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateGithub.prototype['description'] = undefined; +/** + * Github app id + * @member {Number} github-app-id + */ + +DynamicSecretUpdateGithub.prototype['github-app-id'] = undefined; +/** + * App private key + * @member {String} github-app-private-key + */ + +DynamicSecretUpdateGithub.prototype['github-app-private-key'] = undefined; +/** + * Base URL + * @member {String} github-base-url + * @default 'https://api.github.com/' + */ + +DynamicSecretUpdateGithub.prototype['github-base-url'] = 'https://api.github.com/'; +/** + * GitHub application installation id + * @member {Number} installation-id + */ + +DynamicSecretUpdateGithub.prototype['installation-id'] = undefined; +/** + * Optional, mutually exclusive with installation id, GitHub organization name + * @member {String} installation-organization + */ + +DynamicSecretUpdateGithub.prototype['installation-organization'] = undefined; +/** + * Optional, mutually exclusive with installation id, GitHub repository '/' + * @member {String} installation-repository + */ + +DynamicSecretUpdateGithub.prototype['installation-repository'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateGithub.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateGithub.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateGithub.prototype['new-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateGithub.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateGithub.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateGithub.prototype['token'] = undefined; +/** + * Optional - installation token's allowed permissions + * @member {Array.} token-permissions + */ + +DynamicSecretUpdateGithub.prototype['token-permissions'] = undefined; +/** + * Optional - installation token's allowed repositories + * @member {Array.} token-repositories + */ + +DynamicSecretUpdateGithub.prototype['token-repositories'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateGithub.prototype['uid-token'] = undefined; +var _default = DynamicSecretUpdateGithub; +exports["default"] = _default; + +/***/ }), + +/***/ 30389: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateGke model module. + * @module model/DynamicSecretUpdateGke + * @version 3.6.3 + */ +var DynamicSecretUpdateGke = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateGke. + * dynamicSecretUpdateGke is a command that updates gke dynamic secret + * @alias module:model/DynamicSecretUpdateGke + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateGke(name) { + _classCallCheck(this, DynamicSecretUpdateGke); + + DynamicSecretUpdateGke.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateGke, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateGke from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateGke} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateGke} The populated DynamicSecretUpdateGke instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateGke(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('gke-account-key')) { + obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-cert')) { + obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-endpoint')) { + obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-name')) { + obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); + } + + if (data.hasOwnProperty('gke-service-account-email')) { + obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateGke; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretUpdateGke.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateGke.prototype['description'] = undefined; +/** + * GKE Service Account key file path + * @member {String} gke-account-key + */ + +DynamicSecretUpdateGke.prototype['gke-account-key'] = undefined; +/** + * GKE cluster CA certificate + * @member {String} gke-cluster-cert + */ + +DynamicSecretUpdateGke.prototype['gke-cluster-cert'] = undefined; +/** + * GKE cluster URL endpoint + * @member {String} gke-cluster-endpoint + */ + +DynamicSecretUpdateGke.prototype['gke-cluster-endpoint'] = undefined; +/** + * GKE cluster name + * @member {String} gke-cluster-name + */ + +DynamicSecretUpdateGke.prototype['gke-cluster-name'] = undefined; +/** + * GKE service account email + * @member {String} gke-service-account-email + */ + +DynamicSecretUpdateGke.prototype['gke-service-account-email'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateGke.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateGke.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateGke.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateGke.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ + +DynamicSecretUpdateGke.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretUpdateGke.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ + +DynamicSecretUpdateGke.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdateGke.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretUpdateGke.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateGke.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateGke.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateGke.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateGke.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateGke.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateGke; +exports["default"] = _default; + +/***/ }), + +/***/ 3270: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateHanaDb model module. + * @module model/DynamicSecretUpdateHanaDb + * @version 3.6.3 + */ +var DynamicSecretUpdateHanaDb = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateHanaDb. + * dynamicSecretUpdateHanaDb is a command that updates hanadb dynamic secret + * @alias module:model/DynamicSecretUpdateHanaDb + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateHanaDb(name) { + _classCallCheck(this, DynamicSecretUpdateHanaDb); + + DynamicSecretUpdateHanaDb.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateHanaDb, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateHanaDb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateHanaDb} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateHanaDb} The populated DynamicSecretUpdateHanaDb instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateHanaDb(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('hana-dbname')) { + obj['hana-dbname'] = _ApiClient["default"].convertToType(data['hana-dbname'], 'String'); + } + + if (data.hasOwnProperty('hanadb-create-statements')) { + obj['hanadb-create-statements'] = _ApiClient["default"].convertToType(data['hanadb-create-statements'], 'String'); + } + + if (data.hasOwnProperty('hanadb-host')) { + obj['hanadb-host'] = _ApiClient["default"].convertToType(data['hanadb-host'], 'String'); + } + + if (data.hasOwnProperty('hanadb-password')) { + obj['hanadb-password'] = _ApiClient["default"].convertToType(data['hanadb-password'], 'String'); + } + + if (data.hasOwnProperty('hanadb-port')) { + obj['hanadb-port'] = _ApiClient["default"].convertToType(data['hanadb-port'], 'String'); + } + + if (data.hasOwnProperty('hanadb-revocation-statements')) { + obj['hanadb-revocation-statements'] = _ApiClient["default"].convertToType(data['hanadb-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('hanadb-username')) { + obj['hanadb-username'] = _ApiClient["default"].convertToType(data['hanadb-username'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateHanaDb; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretUpdateHanaDb.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateHanaDb.prototype['description'] = undefined; +/** + * HanaDb Name + * @member {String} hana-dbname + */ + +DynamicSecretUpdateHanaDb.prototype['hana-dbname'] = undefined; +/** + * HanaDb Creation statements + * @member {String} hanadb-create-statements + */ + +DynamicSecretUpdateHanaDb.prototype['hanadb-create-statements'] = undefined; +/** + * HanaDb Host + * @member {String} hanadb-host + * @default '127.0.0.1' + */ + +DynamicSecretUpdateHanaDb.prototype['hanadb-host'] = '127.0.0.1'; +/** + * HanaDb Password + * @member {String} hanadb-password + */ + +DynamicSecretUpdateHanaDb.prototype['hanadb-password'] = undefined; +/** + * HanaDb Port + * @member {String} hanadb-port + * @default '443' + */ + +DynamicSecretUpdateHanaDb.prototype['hanadb-port'] = '443'; +/** + * HanaDb Revocation statements + * @member {String} hanadb-revocation-statements + */ + +DynamicSecretUpdateHanaDb.prototype['hanadb-revocation-statements'] = undefined; +/** + * HanaDb Username + * @member {String} hanadb-username + */ + +DynamicSecretUpdateHanaDb.prototype['hanadb-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateHanaDb.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateHanaDb.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateHanaDb.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateHanaDb.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateHanaDb.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretUpdateHanaDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ + +DynamicSecretUpdateHanaDb.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdateHanaDb.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretUpdateHanaDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretUpdateHanaDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateHanaDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateHanaDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateHanaDb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateHanaDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateHanaDb.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateHanaDb; +exports["default"] = _default; + +/***/ }), + +/***/ 18976: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateK8s model module. + * @module model/DynamicSecretUpdateK8s + * @version 3.6.3 + */ +var DynamicSecretUpdateK8s = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateK8s. + * dynamicSecretUpdateK8s is a command that updates k8s dynamic secret + * @alias module:model/DynamicSecretUpdateK8s + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateK8s(name) { + _classCallCheck(this, DynamicSecretUpdateK8s); + + DynamicSecretUpdateK8s.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateK8s, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateK8s from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateK8s} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateK8s} The populated DynamicSecretUpdateK8s instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateK8s(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-allowed-namespaces')) { + obj['k8s-allowed-namespaces'] = _ApiClient["default"].convertToType(data['k8s-allowed-namespaces'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-ca-cert')) { + obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-endpoint')) { + obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-token')) { + obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); + } + + if (data.hasOwnProperty('k8s-namespace')) { + obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + } + + if (data.hasOwnProperty('k8s-predefined-role-name')) { + obj['k8s-predefined-role-name'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-name'], 'String'); + } + + if (data.hasOwnProperty('k8s-predefined-role-type')) { + obj['k8s-predefined-role-type'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-type'], 'String'); + } + + if (data.hasOwnProperty('k8s-rolebinding-yaml-def')) { + obj['k8s-rolebinding-yaml-def'] = _ApiClient["default"].convertToType(data['k8s-rolebinding-yaml-def'], 'String'); + } + + if (data.hasOwnProperty('k8s-service-account')) { + obj['k8s-service-account'] = _ApiClient["default"].convertToType(data['k8s-service-account'], 'String'); + } + + if (data.hasOwnProperty('k8s-service-account-type')) { + obj['k8s-service-account-type'] = _ApiClient["default"].convertToType(data['k8s-service-account-type'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-dashboard-url')) { + obj['secure-access-dashboard-url'] = _ApiClient["default"].convertToType(data['secure-access-dashboard-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-service-account')) { + obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateK8s; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretUpdateK8s.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateK8s.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateK8s.prototype['json'] = false; +/** + * Comma-separated list of allowed K8S namespaces for the generated ServiceAccount (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-allowed-namespaces + */ + +DynamicSecretUpdateK8s.prototype['k8s-allowed-namespaces'] = undefined; +/** + * K8S cluster CA certificate + * @member {String} k8s-cluster-ca-cert + */ + +DynamicSecretUpdateK8s.prototype['k8s-cluster-ca-cert'] = undefined; +/** + * K8S cluster URL endpoint + * @member {String} k8s-cluster-endpoint + */ + +DynamicSecretUpdateK8s.prototype['k8s-cluster-endpoint'] = undefined; +/** + * K8S cluster Bearer token + * @member {String} k8s-cluster-token + */ + +DynamicSecretUpdateK8s.prototype['k8s-cluster-token'] = undefined; +/** + * K8S Namespace where the ServiceAccount exists. + * @member {String} k8s-namespace + */ + +DynamicSecretUpdateK8s.prototype['k8s-namespace'] = undefined; +/** + * The pre-existing Role or ClusterRole name to bind the generated ServiceAccount to (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-predefined-role-name + */ + +DynamicSecretUpdateK8s.prototype['k8s-predefined-role-name'] = undefined; +/** + * Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-predefined-role-type + */ + +DynamicSecretUpdateK8s.prototype['k8s-predefined-role-type'] = undefined; +/** + * Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-rolebinding-yaml-def + */ + +DynamicSecretUpdateK8s.prototype['k8s-rolebinding-yaml-def'] = undefined; +/** + * K8S ServiceAccount to extract token from. + * @member {String} k8s-service-account + */ + +DynamicSecretUpdateK8s.prototype['k8s-service-account'] = undefined; +/** + * K8S ServiceAccount type [fixed, dynamic]. + * @member {String} k8s-service-account-type + */ + +DynamicSecretUpdateK8s.prototype['k8s-service-account-type'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateK8s.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateK8s.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateK8s.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ + +DynamicSecretUpdateK8s.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretUpdateK8s.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ + +DynamicSecretUpdateK8s.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * The K8s dashboard url + * @member {String} secure-access-dashboard-url + */ + +DynamicSecretUpdateK8s.prototype['secure-access-dashboard-url'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdateK8s.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretUpdateK8s.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +DynamicSecretUpdateK8s.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +DynamicSecretUpdateK8s.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateK8s.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateK8s.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateK8s.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateK8s.prototype['uid-token'] = undefined; +/** + * Use the GW's service account + * @member {Boolean} use-gw-service-account + */ + +DynamicSecretUpdateK8s.prototype['use-gw-service-account'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateK8s.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateK8s; +exports["default"] = _default; + +/***/ }), + +/***/ 72708: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateLdap model module. + * @module model/DynamicSecretUpdateLdap + * @version 3.6.3 + */ +var DynamicSecretUpdateLdap = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateLdap. + * dynamicSecretUpdateLdap is a command that updates ldap dynamic secret + * @alias module:model/DynamicSecretUpdateLdap + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateLdap(name) { + _classCallCheck(this, DynamicSecretUpdateLdap); + + DynamicSecretUpdateLdap.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateLdap, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateLdap from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateLdap} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateLdap} The populated DynamicSecretUpdateLdap instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateLdap(); + + if (data.hasOwnProperty('bind-dn')) { + obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); + } + + if (data.hasOwnProperty('bind-dn-password')) { + obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('external-username')) { + obj['external-username'] = _ApiClient["default"].convertToType(data['external-username'], 'String'); + } + + if (data.hasOwnProperty('group-dn')) { + obj['group-dn'] = _ApiClient["default"].convertToType(data['group-dn'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('ldap-ca-cert')) { + obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('ldap-url')) { + obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('token-expiration')) { + obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); + } + + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateLdap; +}(); +/** + * Bind DN + * @member {String} bind-dn + */ + + +DynamicSecretUpdateLdap.prototype['bind-dn'] = undefined; +/** + * Bind DN Password + * @member {String} bind-dn-password + */ + +DynamicSecretUpdateLdap.prototype['bind-dn-password'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateLdap.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateLdap.prototype['description'] = undefined; +/** + * Externally provided username [true/false] + * @member {String} external-username + * @default 'false' + */ + +DynamicSecretUpdateLdap.prototype['external-username'] = 'false'; +/** + * Group DN which the temporary user should be added + * @member {String} group-dn + */ + +DynamicSecretUpdateLdap.prototype['group-dn'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateLdap.prototype['json'] = false; +/** + * CA Certificate File Content + * @member {String} ldap-ca-cert + */ + +DynamicSecretUpdateLdap.prototype['ldap-ca-cert'] = undefined; +/** + * LDAP Server URL + * @member {String} ldap-url + */ + +DynamicSecretUpdateLdap.prototype['ldap-url'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateLdap.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateLdap.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateLdap.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateLdap.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateLdap.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateLdap.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateLdap.prototype['token'] = undefined; +/** + * Token expiration + * @member {String} token-expiration + */ + +DynamicSecretUpdateLdap.prototype['token-expiration'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateLdap.prototype['uid-token'] = undefined; +/** + * User Attribute + * @member {String} user-attribute + */ + +DynamicSecretUpdateLdap.prototype['user-attribute'] = undefined; +/** + * User DN + * @member {String} user-dn + */ + +DynamicSecretUpdateLdap.prototype['user-dn'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateLdap.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateLdap; +exports["default"] = _default; + +/***/ }), + +/***/ 77150: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateMongoDb model module. + * @module model/DynamicSecretUpdateMongoDb + * @version 3.6.3 + */ +var DynamicSecretUpdateMongoDb = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateMongoDb. + * dynamicSecretUpdateMongoDb is a command that updates either mongodb dynamic secret or mongodb atlas dynamic secret + * @alias module:model/DynamicSecretUpdateMongoDb + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateMongoDb(name) { + _classCallCheck(this, DynamicSecretUpdateMongoDb); + + DynamicSecretUpdateMongoDb.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateMongoDb, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateMongoDb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateMongoDb} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateMongoDb} The populated DynamicSecretUpdateMongoDb instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateMongoDb(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { + obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); + } + + if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { + obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); + } + + if (data.hasOwnProperty('mongodb-atlas-project-id')) { + obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); + } + + if (data.hasOwnProperty('mongodb-custom-data')) { + obj['mongodb-custom-data'] = _ApiClient["default"].convertToType(data['mongodb-custom-data'], 'String'); + } + + if (data.hasOwnProperty('mongodb-default-auth-db')) { + obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); + } + + if (data.hasOwnProperty('mongodb-host-port')) { + obj['mongodb-host-port'] = _ApiClient["default"].convertToType(data['mongodb-host-port'], 'String'); + } + + if (data.hasOwnProperty('mongodb-name')) { + obj['mongodb-name'] = _ApiClient["default"].convertToType(data['mongodb-name'], 'String'); + } + + if (data.hasOwnProperty('mongodb-password')) { + obj['mongodb-password'] = _ApiClient["default"].convertToType(data['mongodb-password'], 'String'); + } + + if (data.hasOwnProperty('mongodb-roles')) { + obj['mongodb-roles'] = _ApiClient["default"].convertToType(data['mongodb-roles'], 'String'); + } + + if (data.hasOwnProperty('mongodb-server-uri')) { + obj['mongodb-server-uri'] = _ApiClient["default"].convertToType(data['mongodb-server-uri'], 'String'); + } + + if (data.hasOwnProperty('mongodb-uri-options')) { + obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); + } + + if (data.hasOwnProperty('mongodb-username')) { + obj['mongodb-username'] = _ApiClient["default"].convertToType(data['mongodb-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateMongoDb; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretUpdateMongoDb.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateMongoDb.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateMongoDb.prototype['json'] = false; +/** + * MongoDB Atlas private key + * @member {String} mongodb-atlas-api-private-key + */ + +DynamicSecretUpdateMongoDb.prototype['mongodb-atlas-api-private-key'] = undefined; +/** + * MongoDB Atlas public key + * @member {String} mongodb-atlas-api-public-key + */ + +DynamicSecretUpdateMongoDb.prototype['mongodb-atlas-api-public-key'] = undefined; +/** + * MongoDB Atlas project ID + * @member {String} mongodb-atlas-project-id + */ + +DynamicSecretUpdateMongoDb.prototype['mongodb-atlas-project-id'] = undefined; +/** + * MongoDB custom data + * @member {String} mongodb-custom-data + */ + +DynamicSecretUpdateMongoDb.prototype['mongodb-custom-data'] = undefined; +/** + * MongoDB server default authentication database + * @member {String} mongodb-default-auth-db + */ + +DynamicSecretUpdateMongoDb.prototype['mongodb-default-auth-db'] = undefined; +/** + * MongoDB server host and port + * @member {String} mongodb-host-port + */ + +DynamicSecretUpdateMongoDb.prototype['mongodb-host-port'] = undefined; +/** + * MongoDB Name + * @member {String} mongodb-name + */ + +DynamicSecretUpdateMongoDb.prototype['mongodb-name'] = undefined; +/** + * MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters + * @member {String} mongodb-password + */ + +DynamicSecretUpdateMongoDb.prototype['mongodb-password'] = undefined; +/** + * MongoDB Roles + * @member {String} mongodb-roles + * @default '[]' + */ + +DynamicSecretUpdateMongoDb.prototype['mongodb-roles'] = '[]'; +/** + * MongoDB server URI + * @member {String} mongodb-server-uri + */ + +DynamicSecretUpdateMongoDb.prototype['mongodb-server-uri'] = undefined; +/** + * MongoDB server URI options + * @member {String} mongodb-uri-options + */ + +DynamicSecretUpdateMongoDb.prototype['mongodb-uri-options'] = undefined; +/** + * MongoDB server username + * @member {String} mongodb-username + */ + +DynamicSecretUpdateMongoDb.prototype['mongodb-username'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateMongoDb.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateMongoDb.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateMongoDb.prototype['password-length'] = undefined; +/** + * Encrypt producer with following key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateMongoDb.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretUpdateMongoDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdateMongoDb.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretUpdateMongoDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretUpdateMongoDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateMongoDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateMongoDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateMongoDb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateMongoDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateMongoDb.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateMongoDb; +exports["default"] = _default; + +/***/ }), + +/***/ 67604: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateMsSql model module. + * @module model/DynamicSecretUpdateMsSql + * @version 3.6.3 + */ +var DynamicSecretUpdateMsSql = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateMsSql. + * dynamicSecretUpdateMsSql is a command that updates mssql dynamic secret + * @alias module:model/DynamicSecretUpdateMsSql + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateMsSql(name) { + _classCallCheck(this, DynamicSecretUpdateMsSql); + + DynamicSecretUpdateMsSql.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateMsSql, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateMsSql from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateMsSql} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateMsSql} The populated DynamicSecretUpdateMsSql instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateMsSql(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('mssql-create-statements')) { + obj['mssql-create-statements'] = _ApiClient["default"].convertToType(data['mssql-create-statements'], 'String'); + } + + if (data.hasOwnProperty('mssql-dbname')) { + obj['mssql-dbname'] = _ApiClient["default"].convertToType(data['mssql-dbname'], 'String'); + } + + if (data.hasOwnProperty('mssql-host')) { + obj['mssql-host'] = _ApiClient["default"].convertToType(data['mssql-host'], 'String'); + } + + if (data.hasOwnProperty('mssql-password')) { + obj['mssql-password'] = _ApiClient["default"].convertToType(data['mssql-password'], 'String'); + } + + if (data.hasOwnProperty('mssql-port')) { + obj['mssql-port'] = _ApiClient["default"].convertToType(data['mssql-port'], 'String'); + } + + if (data.hasOwnProperty('mssql-revocation-statements')) { + obj['mssql-revocation-statements'] = _ApiClient["default"].convertToType(data['mssql-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('mssql-username')) { + obj['mssql-username'] = _ApiClient["default"].convertToType(data['mssql-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateMsSql; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretUpdateMsSql.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateMsSql.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateMsSql.prototype['json'] = false; +/** + * MSSQL Creation statements + * @member {String} mssql-create-statements + */ + +DynamicSecretUpdateMsSql.prototype['mssql-create-statements'] = undefined; +/** + * MSSQL Name + * @member {String} mssql-dbname + */ + +DynamicSecretUpdateMsSql.prototype['mssql-dbname'] = undefined; +/** + * MSSQL Host + * @member {String} mssql-host + * @default '127.0.0.1' + */ + +DynamicSecretUpdateMsSql.prototype['mssql-host'] = '127.0.0.1'; +/** + * MSSQL Password + * @member {String} mssql-password + */ + +DynamicSecretUpdateMsSql.prototype['mssql-password'] = undefined; +/** + * MSSQL Port + * @member {String} mssql-port + * @default '1433' + */ + +DynamicSecretUpdateMsSql.prototype['mssql-port'] = '1433'; +/** + * MSSQL Revocation statements + * @member {String} mssql-revocation-statements + */ + +DynamicSecretUpdateMsSql.prototype['mssql-revocation-statements'] = undefined; +/** + * MSSQL Username + * @member {String} mssql-username + */ + +DynamicSecretUpdateMsSql.prototype['mssql-username'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateMsSql.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateMsSql.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateMsSql.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateMsSql.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretUpdateMsSql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ + +DynamicSecretUpdateMsSql.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdateMsSql.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretUpdateMsSql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretUpdateMsSql.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateMsSql.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateMsSql.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateMsSql.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateMsSql.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateMsSql.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateMsSql; +exports["default"] = _default; + +/***/ }), + +/***/ 12690: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateMySql model module. + * @module model/DynamicSecretUpdateMySql + * @version 3.6.3 + */ +var DynamicSecretUpdateMySql = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateMySql. + * dynamicSecretUpdateMySql is a command that updates mysql dynamic secret + * @alias module:model/DynamicSecretUpdateMySql + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateMySql(name) { + _classCallCheck(this, DynamicSecretUpdateMySql); + + DynamicSecretUpdateMySql.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateMySql, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateMySql from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateMySql} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateMySql} The populated DynamicSecretUpdateMySql instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateMySql(); + + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); + } + + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('mysql-dbname')) { + obj['mysql-dbname'] = _ApiClient["default"].convertToType(data['mysql-dbname'], 'String'); + } + + if (data.hasOwnProperty('mysql-host')) { + obj['mysql-host'] = _ApiClient["default"].convertToType(data['mysql-host'], 'String'); + } + + if (data.hasOwnProperty('mysql-password')) { + obj['mysql-password'] = _ApiClient["default"].convertToType(data['mysql-password'], 'String'); + } + + if (data.hasOwnProperty('mysql-port')) { + obj['mysql-port'] = _ApiClient["default"].convertToType(data['mysql-port'], 'String'); + } + + if (data.hasOwnProperty('mysql-revocation-statements')) { + obj['mysql-revocation-statements'] = _ApiClient["default"].convertToType(data['mysql-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('mysql-screation-statements')) { + obj['mysql-screation-statements'] = _ApiClient["default"].convertToType(data['mysql-screation-statements'], 'String'); + } + + if (data.hasOwnProperty('mysql-username')) { + obj['mysql-username'] = _ApiClient["default"].convertToType(data['mysql-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateMySql; +}(); +/** + * (Optional) DB server certificates + * @member {String} db-server-certificates + */ + + +DynamicSecretUpdateMySql.prototype['db-server-certificates'] = undefined; +/** + * (Optional) Server name for certificate verification + * @member {String} db-server-name + */ + +DynamicSecretUpdateMySql.prototype['db-server-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateMySql.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateMySql.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateMySql.prototype['json'] = false; +/** + * MySQL DB Name + * @member {String} mysql-dbname + */ + +DynamicSecretUpdateMySql.prototype['mysql-dbname'] = undefined; +/** + * MySQL Host + * @member {String} mysql-host + * @default '127.0.0.1' + */ + +DynamicSecretUpdateMySql.prototype['mysql-host'] = '127.0.0.1'; +/** + * MySQL Password + * @member {String} mysql-password + */ + +DynamicSecretUpdateMySql.prototype['mysql-password'] = undefined; +/** + * MySQL Port + * @member {String} mysql-port + * @default '3306' + */ + +DynamicSecretUpdateMySql.prototype['mysql-port'] = '3306'; +/** + * MySQL Revocation statements + * @member {String} mysql-revocation-statements + */ + +DynamicSecretUpdateMySql.prototype['mysql-revocation-statements'] = undefined; +/** + * MySQL Creation statements + * @member {String} mysql-screation-statements + */ + +DynamicSecretUpdateMySql.prototype['mysql-screation-statements'] = undefined; +/** + * MySQL Username + * @member {String} mysql-username + */ + +DynamicSecretUpdateMySql.prototype['mysql-username'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateMySql.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateMySql.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateMySql.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateMySql.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretUpdateMySql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdateMySql.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretUpdateMySql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretUpdateMySql.prototype['secure-access-web'] = false; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +DynamicSecretUpdateMySql.prototype['ssl'] = false; +/** + * SSL connection certificate + * @member {String} ssl-certificate + */ + +DynamicSecretUpdateMySql.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateMySql.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateMySql.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateMySql.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateMySql.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateMySql.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateMySql; +exports["default"] = _default; + +/***/ }), + +/***/ 39678: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateOracleDb model module. + * @module model/DynamicSecretUpdateOracleDb + * @version 3.6.3 + */ +var DynamicSecretUpdateOracleDb = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateOracleDb. + * dynamicSecretUpdateOracleDb is a command that updates oracle db dynamic secret + * @alias module:model/DynamicSecretUpdateOracleDb + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateOracleDb(name) { + _classCallCheck(this, DynamicSecretUpdateOracleDb); + + DynamicSecretUpdateOracleDb.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateOracleDb, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateOracleDb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateOracleDb} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateOracleDb} The populated DynamicSecretUpdateOracleDb instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateOracleDb(); + + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); + } + + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('oracle-host')) { + obj['oracle-host'] = _ApiClient["default"].convertToType(data['oracle-host'], 'String'); + } + + if (data.hasOwnProperty('oracle-password')) { + obj['oracle-password'] = _ApiClient["default"].convertToType(data['oracle-password'], 'String'); + } + + if (data.hasOwnProperty('oracle-port')) { + obj['oracle-port'] = _ApiClient["default"].convertToType(data['oracle-port'], 'String'); + } + + if (data.hasOwnProperty('oracle-revocation-statements')) { + obj['oracle-revocation-statements'] = _ApiClient["default"].convertToType(data['oracle-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('oracle-screation-statements')) { + obj['oracle-screation-statements'] = _ApiClient["default"].convertToType(data['oracle-screation-statements'], 'String'); + } + + if (data.hasOwnProperty('oracle-service-name')) { + obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); + } + + if (data.hasOwnProperty('oracle-username')) { + obj['oracle-username'] = _ApiClient["default"].convertToType(data['oracle-username'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateOracleDb; +}(); +/** + * (Optional) DB server certificates + * @member {String} db-server-certificates + */ + + +DynamicSecretUpdateOracleDb.prototype['db-server-certificates'] = undefined; +/** + * (Optional) Server name for certificate verification + * @member {String} db-server-name + */ + +DynamicSecretUpdateOracleDb.prototype['db-server-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateOracleDb.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateOracleDb.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateOracleDb.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateOracleDb.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateOracleDb.prototype['new-name'] = undefined; +/** + * Oracle Host + * @member {String} oracle-host + * @default '127.0.0.1' + */ + +DynamicSecretUpdateOracleDb.prototype['oracle-host'] = '127.0.0.1'; +/** + * Oracle Password + * @member {String} oracle-password + */ + +DynamicSecretUpdateOracleDb.prototype['oracle-password'] = undefined; +/** + * Oracle Port + * @member {String} oracle-port + * @default '1521' + */ + +DynamicSecretUpdateOracleDb.prototype['oracle-port'] = '1521'; +/** + * Oracle Revocation statements + * @member {String} oracle-revocation-statements + */ + +DynamicSecretUpdateOracleDb.prototype['oracle-revocation-statements'] = undefined; +/** + * Oracle Creation statements + * @member {String} oracle-screation-statements + */ + +DynamicSecretUpdateOracleDb.prototype['oracle-screation-statements'] = undefined; +/** + * Oracle DB Name + * @member {String} oracle-service-name + */ + +DynamicSecretUpdateOracleDb.prototype['oracle-service-name'] = undefined; +/** + * Oracle Username + * @member {String} oracle-username + */ + +DynamicSecretUpdateOracleDb.prototype['oracle-username'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateOracleDb.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateOracleDb.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretUpdateOracleDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + * @default 'false' + */ + +DynamicSecretUpdateOracleDb.prototype['secure-access-enable'] = 'false'; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretUpdateOracleDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretUpdateOracleDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateOracleDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateOracleDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateOracleDb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateOracleDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateOracleDb.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateOracleDb; +exports["default"] = _default; + +/***/ }), + +/***/ 56847: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateOutput model module. + * @module model/DynamicSecretUpdateOutput + * @version 3.6.3 + */ +var DynamicSecretUpdateOutput = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateOutput. + * @alias module:model/DynamicSecretUpdateOutput + */ + function DynamicSecretUpdateOutput() { + _classCallCheck(this, DynamicSecretUpdateOutput); + + DynamicSecretUpdateOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a DynamicSecretUpdateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateOutput} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateOutput} The populated DynamicSecretUpdateOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateOutput(); + + if (data.hasOwnProperty('dynamic_secret_details')) { + obj['dynamic_secret_details'] = _DSProducerDetails["default"].constructFromObject(data['dynamic_secret_details']); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateOutput; +}(); +/** + * @member {module:model/DSProducerDetails} dynamic_secret_details + */ + + +DynamicSecretUpdateOutput.prototype['dynamic_secret_details'] = undefined; +var _default = DynamicSecretUpdateOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 16662: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdatePing model module. + * @module model/DynamicSecretUpdatePing + * @version 3.6.3 + */ +var DynamicSecretUpdatePing = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdatePing. + * dynamicSecretUpdatePing is a command that updates Ping dynamic secret + * @alias module:model/DynamicSecretUpdatePing + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdatePing(name) { + _classCallCheck(this, DynamicSecretUpdatePing); + + DynamicSecretUpdatePing.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdatePing, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdatePing from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdatePing} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdatePing} The populated DynamicSecretUpdatePing instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdatePing(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('ping-administrative-port')) { + obj['ping-administrative-port'] = _ApiClient["default"].convertToType(data['ping-administrative-port'], 'String'); + } + + if (data.hasOwnProperty('ping-atm-id')) { + obj['ping-atm-id'] = _ApiClient["default"].convertToType(data['ping-atm-id'], 'String'); + } + + if (data.hasOwnProperty('ping-authorization-port')) { + obj['ping-authorization-port'] = _ApiClient["default"].convertToType(data['ping-authorization-port'], 'String'); + } + + if (data.hasOwnProperty('ping-cert-subject-dn')) { + obj['ping-cert-subject-dn'] = _ApiClient["default"].convertToType(data['ping-cert-subject-dn'], 'String'); + } + + if (data.hasOwnProperty('ping-client-authentication-type')) { + obj['ping-client-authentication-type'] = _ApiClient["default"].convertToType(data['ping-client-authentication-type'], 'String'); + } + + if (data.hasOwnProperty('ping-enforce-replay-prevention')) { + obj['ping-enforce-replay-prevention'] = _ApiClient["default"].convertToType(data['ping-enforce-replay-prevention'], 'String'); + } + + if (data.hasOwnProperty('ping-grant-types')) { + obj['ping-grant-types'] = _ApiClient["default"].convertToType(data['ping-grant-types'], ['String']); + } + + if (data.hasOwnProperty('ping-issuer-dn')) { + obj['ping-issuer-dn'] = _ApiClient["default"].convertToType(data['ping-issuer-dn'], 'String'); + } + + if (data.hasOwnProperty('ping-jwks')) { + obj['ping-jwks'] = _ApiClient["default"].convertToType(data['ping-jwks'], 'String'); + } + + if (data.hasOwnProperty('ping-jwks-url')) { + obj['ping-jwks-url'] = _ApiClient["default"].convertToType(data['ping-jwks-url'], 'String'); + } + + if (data.hasOwnProperty('ping-password')) { + obj['ping-password'] = _ApiClient["default"].convertToType(data['ping-password'], 'String'); + } + + if (data.hasOwnProperty('ping-privileged-user')) { + obj['ping-privileged-user'] = _ApiClient["default"].convertToType(data['ping-privileged-user'], 'String'); + } + + if (data.hasOwnProperty('ping-redirect-uris')) { + obj['ping-redirect-uris'] = _ApiClient["default"].convertToType(data['ping-redirect-uris'], ['String']); + } + + if (data.hasOwnProperty('ping-restricted-scopes')) { + obj['ping-restricted-scopes'] = _ApiClient["default"].convertToType(data['ping-restricted-scopes'], ['String']); + } + + if (data.hasOwnProperty('ping-signing-algo')) { + obj['ping-signing-algo'] = _ApiClient["default"].convertToType(data['ping-signing-algo'], 'String'); + } + + if (data.hasOwnProperty('ping-url')) { + obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdatePing; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretUpdatePing.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdatePing.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdatePing.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdatePing.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdatePing.prototype['new-name'] = undefined; +/** + * Ping Federate administrative port + * @member {String} ping-administrative-port + * @default '9999' + */ + +DynamicSecretUpdatePing.prototype['ping-administrative-port'] = '9999'; +/** + * Set a specific Access Token Management (ATM) instance for the created OAuth Client by providing the ATM Id. If no explicit value is given, the default pingfederate server ATM will be set. + * @member {String} ping-atm-id + */ + +DynamicSecretUpdatePing.prototype['ping-atm-id'] = undefined; +/** + * Ping Federate authorization port + * @member {String} ping-authorization-port + * @default '9031' + */ + +DynamicSecretUpdatePing.prototype['ping-authorization-port'] = '9031'; +/** + * The subject DN of the client certificate. If no explicit value is given, the producer will create CA certificate and matched client certificate and return it as value. Used in conjunction with ping-issuer-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) + * @member {String} ping-cert-subject-dn + */ + +DynamicSecretUpdatePing.prototype['ping-cert-subject-dn'] = undefined; +/** + * OAuth Client Authentication Type [CLIENT_SECRET, PRIVATE_KEY_JWT, CLIENT_TLS_CERTIFICATE] + * @member {String} ping-client-authentication-type + * @default 'CLIENT_SECRET' + */ + +DynamicSecretUpdatePing.prototype['ping-client-authentication-type'] = 'CLIENT_SECRET'; +/** + * Determines whether PingFederate requires a unique signed JWT from the client for each action (relevant for PRIVATE_KEY_JWT authentication method) [true/false] + * @member {String} ping-enforce-replay-prevention + * @default 'false' + */ + +DynamicSecretUpdatePing.prototype['ping-enforce-replay-prevention'] = 'false'; +/** + * List of OAuth client grant types [IMPLICIT, AUTHORIZATION_CODE, CLIENT_CREDENTIALS, TOKEN_EXCHANGE, REFRESH_TOKEN, ASSERTION_GRANTS, PASSWORD, RESOURCE_OWNER_CREDENTIALS]. If no explicit value is given, AUTHORIZATION_CODE will be selected as default. + * @member {Array.} ping-grant-types + */ + +DynamicSecretUpdatePing.prototype['ping-grant-types'] = undefined; +/** + * Issuer DN of trusted CA certificate that imported into Ping Federate server. You may select \\\"Trust Any\\\" to trust all the existing issuers in Ping Federate server. Used in conjunction with ping-cert-subject-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) + * @member {String} ping-issuer-dn + */ + +DynamicSecretUpdatePing.prototype['ping-issuer-dn'] = undefined; +/** + * Base64-encoded JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT (Sign Algo: RS256) and return it as value (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-jwks + */ + +DynamicSecretUpdatePing.prototype['ping-jwks'] = undefined; +/** + * The URL of the JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT and return it as value (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-jwks-url + */ + +DynamicSecretUpdatePing.prototype['ping-jwks-url'] = undefined; +/** + * Ping Federate privileged user password + * @member {String} ping-password + */ + +DynamicSecretUpdatePing.prototype['ping-password'] = undefined; +/** + * Ping Federate privileged user + * @member {String} ping-privileged-user + */ + +DynamicSecretUpdatePing.prototype['ping-privileged-user'] = undefined; +/** + * List of URIs to which the OAuth authorization server may redirect the resource owner's user agent after authorization is obtained. At least one redirection URI is required for the AUTHORIZATION_CODE and IMPLICIT grant types. + * @member {Array.} ping-redirect-uris + */ + +DynamicSecretUpdatePing.prototype['ping-redirect-uris'] = undefined; +/** + * Limit the OAuth client to specific scopes list + * @member {Array.} ping-restricted-scopes + */ + +DynamicSecretUpdatePing.prototype['ping-restricted-scopes'] = undefined; +/** + * The signing algorithm that the client must use to sign its request objects [RS256,RS384,RS512,ES256,ES384,ES512,PS256,PS384,PS512] If no explicit value is given, the client can use any of the supported signing algorithms (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-signing-algo + */ + +DynamicSecretUpdatePing.prototype['ping-signing-algo'] = undefined; +/** + * Ping URL + * @member {String} ping-url + */ + +DynamicSecretUpdatePing.prototype['ping-url'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdatePing.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdatePing.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdatePing.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdatePing.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdatePing.prototype['uid-token'] = undefined; +/** + * The time from dynamic secret creation to expiration. + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdatePing.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdatePing; +exports["default"] = _default; + +/***/ }), + +/***/ 39708: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdatePostgreSql model module. + * @module model/DynamicSecretUpdatePostgreSql + * @version 3.6.3 + */ +var DynamicSecretUpdatePostgreSql = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdatePostgreSql. + * dynamicSecretUpdatePostgreSql is a command that updates postgresql dynamic secret + * @alias module:model/DynamicSecretUpdatePostgreSql + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdatePostgreSql(name) { + _classCallCheck(this, DynamicSecretUpdatePostgreSql); + + DynamicSecretUpdatePostgreSql.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdatePostgreSql, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdatePostgreSql from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdatePostgreSql} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdatePostgreSql} The populated DynamicSecretUpdatePostgreSql instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdatePostgreSql(); + + if (data.hasOwnProperty('creation-statements')) { + obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('postgresql-db-name')) { + obj['postgresql-db-name'] = _ApiClient["default"].convertToType(data['postgresql-db-name'], 'String'); + } + + if (data.hasOwnProperty('postgresql-host')) { + obj['postgresql-host'] = _ApiClient["default"].convertToType(data['postgresql-host'], 'String'); + } + + if (data.hasOwnProperty('postgresql-password')) { + obj['postgresql-password'] = _ApiClient["default"].convertToType(data['postgresql-password'], 'String'); + } + + if (data.hasOwnProperty('postgresql-port')) { + obj['postgresql-port'] = _ApiClient["default"].convertToType(data['postgresql-port'], 'String'); + } + + if (data.hasOwnProperty('postgresql-username')) { + obj['postgresql-username'] = _ApiClient["default"].convertToType(data['postgresql-username'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key')) { + obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); + } + + if (data.hasOwnProperty('revocation-statement')) { + obj['revocation-statement'] = _ApiClient["default"].convertToType(data['revocation-statement'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdatePostgreSql; +}(); +/** + * PostgreSQL Creation statements + * @member {String} creation-statements + */ + + +DynamicSecretUpdatePostgreSql.prototype['creation-statements'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdatePostgreSql.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdatePostgreSql.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdatePostgreSql.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdatePostgreSql.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +DynamicSecretUpdatePostgreSql.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdatePostgreSql.prototype['password-length'] = undefined; +/** + * PostgreSQL DB Name + * @member {String} postgresql-db-name + */ + +DynamicSecretUpdatePostgreSql.prototype['postgresql-db-name'] = undefined; +/** + * PostgreSQL Host + * @member {String} postgresql-host + * @default '127.0.0.1' + */ + +DynamicSecretUpdatePostgreSql.prototype['postgresql-host'] = '127.0.0.1'; +/** + * PostgreSQL Password + * @member {String} postgresql-password + */ + +DynamicSecretUpdatePostgreSql.prototype['postgresql-password'] = undefined; +/** + * PostgreSQL Port + * @member {String} postgresql-port + * @default '5432' + */ + +DynamicSecretUpdatePostgreSql.prototype['postgresql-port'] = '5432'; +/** + * PostgreSQL Username + * @member {String} postgresql-username + */ + +DynamicSecretUpdatePostgreSql.prototype['postgresql-username'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key + */ + +DynamicSecretUpdatePostgreSql.prototype['producer-encryption-key'] = undefined; +/** + * PostgreSQL Revocation statements + * @member {String} revocation-statement + */ + +DynamicSecretUpdatePostgreSql.prototype['revocation-statement'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +DynamicSecretUpdatePostgreSql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ + +DynamicSecretUpdatePostgreSql.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdatePostgreSql.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretUpdatePostgreSql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +DynamicSecretUpdatePostgreSql.prototype['secure-access-web'] = false; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +DynamicSecretUpdatePostgreSql.prototype['ssl'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdatePostgreSql.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdatePostgreSql.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdatePostgreSql.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdatePostgreSql.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdatePostgreSql.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdatePostgreSql; +exports["default"] = _default; + +/***/ }), + +/***/ 36628: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateRabbitMq model module. + * @module model/DynamicSecretUpdateRabbitMq + * @version 3.6.3 + */ +var DynamicSecretUpdateRabbitMq = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateRabbitMq. + * dynamicSecretUpdateRabbitMq is a command that updates rabbitmq dynamic secret + * @alias module:model/DynamicSecretUpdateRabbitMq + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateRabbitMq(name) { + _classCallCheck(this, DynamicSecretUpdateRabbitMq); + + DynamicSecretUpdateRabbitMq.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateRabbitMq, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateRabbitMq from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateRabbitMq} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateRabbitMq} The populated DynamicSecretUpdateRabbitMq instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateRabbitMq(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-admin-pwd')) { + obj['rabbitmq-admin-pwd'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-admin-user')) { + obj['rabbitmq-admin-user'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-user'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-server-uri')) { + obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-conf-permission')) { + obj['rabbitmq-user-conf-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-conf-permission'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-read-permission')) { + obj['rabbitmq-user-read-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-read-permission'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-tags')) { + obj['rabbitmq-user-tags'] = _ApiClient["default"].convertToType(data['rabbitmq-user-tags'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-vhost')) { + obj['rabbitmq-user-vhost'] = _ApiClient["default"].convertToType(data['rabbitmq-user-vhost'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-write-permission')) { + obj['rabbitmq-user-write-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-write-permission'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateRabbitMq; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +DynamicSecretUpdateRabbitMq.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateRabbitMq.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateRabbitMq.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateRabbitMq.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +DynamicSecretUpdateRabbitMq.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateRabbitMq.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateRabbitMq.prototype['producer-encryption-key-name'] = undefined; +/** + * RabbitMQ Admin password + * @member {String} rabbitmq-admin-pwd + */ + +DynamicSecretUpdateRabbitMq.prototype['rabbitmq-admin-pwd'] = undefined; +/** + * RabbitMQ Admin User + * @member {String} rabbitmq-admin-user + */ + +DynamicSecretUpdateRabbitMq.prototype['rabbitmq-admin-user'] = undefined; +/** + * Server URI + * @member {String} rabbitmq-server-uri + */ + +DynamicSecretUpdateRabbitMq.prototype['rabbitmq-server-uri'] = undefined; +/** + * User configuration permission + * @member {String} rabbitmq-user-conf-permission + */ + +DynamicSecretUpdateRabbitMq.prototype['rabbitmq-user-conf-permission'] = undefined; +/** + * User read permission + * @member {String} rabbitmq-user-read-permission + */ + +DynamicSecretUpdateRabbitMq.prototype['rabbitmq-user-read-permission'] = undefined; +/** + * User Tags + * @member {String} rabbitmq-user-tags + */ + +DynamicSecretUpdateRabbitMq.prototype['rabbitmq-user-tags'] = undefined; +/** + * User Virtual Host + * @member {String} rabbitmq-user-vhost + */ + +DynamicSecretUpdateRabbitMq.prototype['rabbitmq-user-vhost'] = undefined; +/** + * User write permission + * @member {String} rabbitmq-user-write-permission + */ + +DynamicSecretUpdateRabbitMq.prototype['rabbitmq-user-write-permission'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdateRabbitMq.prototype['secure-access-enable'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ + +DynamicSecretUpdateRabbitMq.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ + +DynamicSecretUpdateRabbitMq.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +DynamicSecretUpdateRabbitMq.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +DynamicSecretUpdateRabbitMq.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateRabbitMq.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateRabbitMq.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateRabbitMq.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateRabbitMq.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateRabbitMq.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateRabbitMq; +exports["default"] = _default; + +/***/ }), + +/***/ 25030: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateRdp model module. + * @module model/DynamicSecretUpdateRdp + * @version 3.6.3 + */ +var DynamicSecretUpdateRdp = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateRdp. + * dynamicSecretUpdateRdp is a command that updates rdp dynamic secret + * @alias module:model/DynamicSecretUpdateRdp + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateRdp(name) { + _classCallCheck(this, DynamicSecretUpdateRdp); + + DynamicSecretUpdateRdp.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateRdp, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateRdp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateRdp} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateRdp} The populated DynamicSecretUpdateRdp instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateRdp(); + + if (data.hasOwnProperty('allow-user-extend-session')) { + obj['allow-user-extend-session'] = _ApiClient["default"].convertToType(data['allow-user-extend-session'], 'Number'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('fixed-user-only')) { + obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('rdp-admin-name')) { + obj['rdp-admin-name'] = _ApiClient["default"].convertToType(data['rdp-admin-name'], 'String'); + } + + if (data.hasOwnProperty('rdp-admin-pwd')) { + obj['rdp-admin-pwd'] = _ApiClient["default"].convertToType(data['rdp-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('rdp-host-name')) { + obj['rdp-host-name'] = _ApiClient["default"].convertToType(data['rdp-host-name'], 'String'); + } + + if (data.hasOwnProperty('rdp-host-port')) { + obj['rdp-host-port'] = _ApiClient["default"].convertToType(data['rdp-host-port'], 'String'); + } + + if (data.hasOwnProperty('rdp-user-groups')) { + obj['rdp-user-groups'] = _ApiClient["default"].convertToType(data['rdp-user-groups'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-rd-gateway-server')) { + obj['secure-access-rd-gateway-server'] = _ApiClient["default"].convertToType(data['secure-access-rd-gateway-server'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('warn-user-before-expiration')) { + obj['warn-user-before-expiration'] = _ApiClient["default"].convertToType(data['warn-user-before-expiration'], 'Number'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateRdp; +}(); +/** + * AllowUserExtendSession + * @member {Number} allow-user-extend-session + */ + + +DynamicSecretUpdateRdp.prototype['allow-user-extend-session'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateRdp.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateRdp.prototype['description'] = undefined; +/** + * Allow access using externally (IdP) provided username [true/false] + * @member {String} fixed-user-only + * @default 'false' + */ + +DynamicSecretUpdateRdp.prototype['fixed-user-only'] = 'false'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateRdp.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateRdp.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +DynamicSecretUpdateRdp.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateRdp.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateRdp.prototype['producer-encryption-key-name'] = undefined; +/** + * RDP Admin Name + * @member {String} rdp-admin-name + */ + +DynamicSecretUpdateRdp.prototype['rdp-admin-name'] = undefined; +/** + * RDP Admin password + * @member {String} rdp-admin-pwd + */ + +DynamicSecretUpdateRdp.prototype['rdp-admin-pwd'] = undefined; +/** + * Hostname + * @member {String} rdp-host-name + */ + +DynamicSecretUpdateRdp.prototype['rdp-host-name'] = undefined; +/** + * Port + * @member {String} rdp-host-port + * @default '22' + */ + +DynamicSecretUpdateRdp.prototype['rdp-host-port'] = '22'; +/** + * Groups + * @member {String} rdp-user-groups + */ + +DynamicSecretUpdateRdp.prototype['rdp-user-groups'] = undefined; +/** + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false + */ + +DynamicSecretUpdateRdp.prototype['secure-access-allow-external-user'] = false; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdateRdp.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +DynamicSecretUpdateRdp.prototype['secure-access-host'] = undefined; +/** + * RD Gateway server + * @member {String} secure-access-rd-gateway-server + */ + +DynamicSecretUpdateRdp.prototype['secure-access-rd-gateway-server'] = undefined; +/** + * Required when the Dynamic Secret is used for a domain user + * @member {String} secure-access-rdp-domain + */ + +DynamicSecretUpdateRdp.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ + +DynamicSecretUpdateRdp.prototype['secure-access-rdp-user'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateRdp.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateRdp.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateRdp.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateRdp.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateRdp.prototype['user-ttl'] = '60m'; +/** + * WarnBeforeUserExpiration + * @member {Number} warn-user-before-expiration + */ + +DynamicSecretUpdateRdp.prototype['warn-user-before-expiration'] = undefined; +var _default = DynamicSecretUpdateRdp; +exports["default"] = _default; + +/***/ }), + +/***/ 46287: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateRedis model module. + * @module model/DynamicSecretUpdateRedis + * @version 3.6.3 + */ +var DynamicSecretUpdateRedis = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateRedis. + * dynamicSecretUpdateRedis is a command that updates redis dynamic secret + * @alias module:model/DynamicSecretUpdateRedis + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateRedis(name) { + _classCallCheck(this, DynamicSecretUpdateRedis); + + DynamicSecretUpdateRedis.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateRedis, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateRedis from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateRedis} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateRedis} The populated DynamicSecretUpdateRedis instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateRedis(); + + if (data.hasOwnProperty('acl-rules')) { + obj['acl-rules'] = _ApiClient["default"].convertToType(data['acl-rules'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateRedis; +}(); +/** + * A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '[\"~*\", \"+@read\"]' + * @member {String} acl-rules + */ + + +DynamicSecretUpdateRedis.prototype['acl-rules'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateRedis.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateRedis.prototype['description'] = undefined; +/** + * Redis Host + * @member {String} host + * @default '127.0.0.1' + */ + +DynamicSecretUpdateRedis.prototype['host'] = '127.0.0.1'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateRedis.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateRedis.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +DynamicSecretUpdateRedis.prototype['new-name'] = undefined; +/** + * Redis Password + * @member {String} password + */ + +DynamicSecretUpdateRedis.prototype['password'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateRedis.prototype['password-length'] = undefined; +/** + * Redis Port + * @member {String} port + * @default '6379' + */ + +DynamicSecretUpdateRedis.prototype['port'] = '6379'; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateRedis.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +DynamicSecretUpdateRedis.prototype['ssl'] = false; +/** + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} ssl-certificate + */ + +DynamicSecretUpdateRedis.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateRedis.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateRedis.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateRedis.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateRedis.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateRedis.prototype['user-ttl'] = '60m'; +/** + * Redis Username + * @member {String} username + */ + +DynamicSecretUpdateRedis.prototype['username'] = undefined; +var _default = DynamicSecretUpdateRedis; +exports["default"] = _default; + +/***/ }), + +/***/ 71099: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateRedshift model module. + * @module model/DynamicSecretUpdateRedshift + * @version 3.6.3 + */ +var DynamicSecretUpdateRedshift = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateRedshift. + * dynamicSecretUpdateRedshift is a command that updates redshift dynamic secret + * @alias module:model/DynamicSecretUpdateRedshift + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateRedshift(name) { + _classCallCheck(this, DynamicSecretUpdateRedshift); + + DynamicSecretUpdateRedshift.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateRedshift, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateRedshift from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateRedshift} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateRedshift} The populated DynamicSecretUpdateRedshift instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateRedshift(); + + if (data.hasOwnProperty('creation-statements')) { + obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key')) { + obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); + } + + if (data.hasOwnProperty('redshift-db-name')) { + obj['redshift-db-name'] = _ApiClient["default"].convertToType(data['redshift-db-name'], 'String'); + } + + if (data.hasOwnProperty('redshift-host')) { + obj['redshift-host'] = _ApiClient["default"].convertToType(data['redshift-host'], 'String'); + } + + if (data.hasOwnProperty('redshift-password')) { + obj['redshift-password'] = _ApiClient["default"].convertToType(data['redshift-password'], 'String'); + } + + if (data.hasOwnProperty('redshift-port')) { + obj['redshift-port'] = _ApiClient["default"].convertToType(data['redshift-port'], 'String'); + } + + if (data.hasOwnProperty('redshift-username')) { + obj['redshift-username'] = _ApiClient["default"].convertToType(data['redshift-username'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateRedshift; +}(); +/** + * Redshift Creation statements + * @member {String} creation-statements + */ + + +DynamicSecretUpdateRedshift.prototype['creation-statements'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateRedshift.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateRedshift.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateRedshift.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateRedshift.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +DynamicSecretUpdateRedshift.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateRedshift.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key + */ + +DynamicSecretUpdateRedshift.prototype['producer-encryption-key'] = undefined; +/** + * Redshift DB Name + * @member {String} redshift-db-name + */ + +DynamicSecretUpdateRedshift.prototype['redshift-db-name'] = undefined; +/** + * Redshift Host + * @member {String} redshift-host + * @default '127.0.0.1' + */ + +DynamicSecretUpdateRedshift.prototype['redshift-host'] = '127.0.0.1'; +/** + * Redshift Password + * @member {String} redshift-password + */ + +DynamicSecretUpdateRedshift.prototype['redshift-password'] = undefined; +/** + * Redshift Port + * @member {String} redshift-port + * @default '5439' + */ + +DynamicSecretUpdateRedshift.prototype['redshift-port'] = '5439'; +/** + * Redshift Username + * @member {String} redshift-username + */ + +DynamicSecretUpdateRedshift.prototype['redshift-username'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +DynamicSecretUpdateRedshift.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +DynamicSecretUpdateRedshift.prototype['secure-access-host'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +DynamicSecretUpdateRedshift.prototype['ssl'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateRedshift.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateRedshift.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateRedshift.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateRedshift.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +DynamicSecretUpdateRedshift.prototype['user-ttl'] = '60m'; +var _default = DynamicSecretUpdateRedshift; +exports["default"] = _default; + +/***/ }), + +/***/ 51976: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateSnowflake model module. + * @module model/DynamicSecretUpdateSnowflake + * @version 3.6.3 + */ +var DynamicSecretUpdateSnowflake = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateSnowflake. + * GatewayUpdateProducerSnowflakeCmd is a command that updates a Snowflake dynamic secret + * @alias module:model/DynamicSecretUpdateSnowflake + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateSnowflake(name) { + _classCallCheck(this, DynamicSecretUpdateSnowflake); + + DynamicSecretUpdateSnowflake.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateSnowflake, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateSnowflake from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateSnowflake} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateSnowflake} The populated DynamicSecretUpdateSnowflake instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateSnowflake(); + + if (data.hasOwnProperty('account')) { + obj['account'] = _ApiClient["default"].convertToType(data['account'], 'String'); + } + + if (data.hasOwnProperty('account-password')) { + obj['account-password'] = _ApiClient["default"].convertToType(data['account-password'], 'String'); + } + + if (data.hasOwnProperty('account-username')) { + obj['account-username'] = _ApiClient["default"].convertToType(data['account-username'], 'String'); + } + + if (data.hasOwnProperty('db-name')) { + obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('private-key')) { + obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); + } + + if (data.hasOwnProperty('private-key-passphrase')) { + obj['private-key-passphrase'] = _ApiClient["default"].convertToType(data['private-key-passphrase'], 'String'); + } + + if (data.hasOwnProperty('role')) { + obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('warehouse')) { + obj['warehouse'] = _ApiClient["default"].convertToType(data['warehouse'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateSnowflake; +}(); +/** + * Account name + * @member {String} account + */ + + +DynamicSecretUpdateSnowflake.prototype['account'] = undefined; +/** + * Database Password + * @member {String} account-password + */ + +DynamicSecretUpdateSnowflake.prototype['account-password'] = undefined; +/** + * Database Username + * @member {String} account-username + */ + +DynamicSecretUpdateSnowflake.prototype['account-username'] = undefined; +/** + * Database name + * @member {String} db-name + */ + +DynamicSecretUpdateSnowflake.prototype['db-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateSnowflake.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateSnowflake.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateSnowflake.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateSnowflake.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +DynamicSecretUpdateSnowflake.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +DynamicSecretUpdateSnowflake.prototype['password-length'] = undefined; +/** + * RSA Private key (base64 encoded) + * @member {String} private-key + */ + +DynamicSecretUpdateSnowflake.prototype['private-key'] = undefined; +/** + * The Private key passphrase + * @member {String} private-key-passphrase + */ + +DynamicSecretUpdateSnowflake.prototype['private-key-passphrase'] = undefined; +/** + * User role + * @member {String} role + */ + +DynamicSecretUpdateSnowflake.prototype['role'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateSnowflake.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateSnowflake.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateSnowflake.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateSnowflake.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '24h' + */ + +DynamicSecretUpdateSnowflake.prototype['user-ttl'] = '24h'; +/** + * Warehouse name + * @member {String} warehouse + */ + +DynamicSecretUpdateSnowflake.prototype['warehouse'] = undefined; +var _default = DynamicSecretUpdateSnowflake; +exports["default"] = _default; + +/***/ }), + +/***/ 17323: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The DynamicSecretUpdateVenafi model module. + * @module model/DynamicSecretUpdateVenafi + * @version 3.6.3 + */ +var DynamicSecretUpdateVenafi = /*#__PURE__*/function () { + /** + * Constructs a new DynamicSecretUpdateVenafi. + * dynamicSecretUpdateVenafi is a command that updates a Venafi dynamic secret to dynamically update certificates generated by Venafi or have Akeyless generated certificates using PKI be monitored by Venafi + * @alias module:model/DynamicSecretUpdateVenafi + * @param name {String} Dynamic secret name + */ + function DynamicSecretUpdateVenafi(name) { + _classCallCheck(this, DynamicSecretUpdateVenafi); + + DynamicSecretUpdateVenafi.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(DynamicSecretUpdateVenafi, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a DynamicSecretUpdateVenafi from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DynamicSecretUpdateVenafi} obj Optional instance to populate. + * @return {module:model/DynamicSecretUpdateVenafi} The populated DynamicSecretUpdateVenafi instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new DynamicSecretUpdateVenafi(); + + if (data.hasOwnProperty('admin-rotation-interval-days')) { + obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); + } + + if (data.hasOwnProperty('allow-subdomains')) { + obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); + } + + if (data.hasOwnProperty('allowed-domains')) { + obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], ['String']); + } + + if (data.hasOwnProperty('auto-generated-folder')) { + obj['auto-generated-folder'] = _ApiClient["default"].convertToType(data['auto-generated-folder'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('enable-admin-rotation')) { + obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('root-first-in-chain')) { + obj['root-first-in-chain'] = _ApiClient["default"].convertToType(data['root-first-in-chain'], 'Boolean'); + } + + if (data.hasOwnProperty('sign-using-akeyless-pki')) { + obj['sign-using-akeyless-pki'] = _ApiClient["default"].convertToType(data['sign-using-akeyless-pki'], 'Boolean'); + } + + if (data.hasOwnProperty('signer-key-name')) { + obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); + } + + if (data.hasOwnProperty('store-private-key')) { + obj['store-private-key'] = _ApiClient["default"].convertToType(data['store-private-key'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('venafi-access-token')) { + obj['venafi-access-token'] = _ApiClient["default"].convertToType(data['venafi-access-token'], 'String'); + } + + if (data.hasOwnProperty('venafi-api-key')) { + obj['venafi-api-key'] = _ApiClient["default"].convertToType(data['venafi-api-key'], 'String'); + } + + if (data.hasOwnProperty('venafi-baseurl')) { + obj['venafi-baseurl'] = _ApiClient["default"].convertToType(data['venafi-baseurl'], 'String'); + } + + if (data.hasOwnProperty('venafi-client-id')) { + obj['venafi-client-id'] = _ApiClient["default"].convertToType(data['venafi-client-id'], 'String'); + } + + if (data.hasOwnProperty('venafi-refresh-token')) { + obj['venafi-refresh-token'] = _ApiClient["default"].convertToType(data['venafi-refresh-token'], 'String'); + } + + if (data.hasOwnProperty('venafi-use-tpp')) { + obj['venafi-use-tpp'] = _ApiClient["default"].convertToType(data['venafi-use-tpp'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi-zone')) { + obj['venafi-zone'] = _ApiClient["default"].convertToType(data['venafi-zone'], 'String'); + } + } + + return obj; + } + }]); + + return DynamicSecretUpdateVenafi; +}(); +/** + * Admin credentials rotation interval (days) + * @member {Number} admin-rotation-interval-days + * @default 0 + */ + + +DynamicSecretUpdateVenafi.prototype['admin-rotation-interval-days'] = 0; +/** + * Allow subdomains + * @member {Boolean} allow-subdomains + */ + +DynamicSecretUpdateVenafi.prototype['allow-subdomains'] = undefined; +/** + * Allowed domains + * @member {Array.} allowed-domains + */ + +DynamicSecretUpdateVenafi.prototype['allowed-domains'] = undefined; +/** + * Auto generated folder + * @member {String} auto-generated-folder + */ + +DynamicSecretUpdateVenafi.prototype['auto-generated-folder'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +DynamicSecretUpdateVenafi.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +DynamicSecretUpdateVenafi.prototype['description'] = undefined; +/** + * Automatic admin credentials rotation + * @member {Boolean} enable-admin-rotation + * @default false + */ + +DynamicSecretUpdateVenafi.prototype['enable-admin-rotation'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +DynamicSecretUpdateVenafi.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +DynamicSecretUpdateVenafi.prototype['name'] = undefined; +/** + * Dynamic secret new name + * @member {String} new-name + */ + +DynamicSecretUpdateVenafi.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +DynamicSecretUpdateVenafi.prototype['producer-encryption-key-name'] = undefined; +/** + * Root first in chain + * @member {Boolean} root-first-in-chain + */ + +DynamicSecretUpdateVenafi.prototype['root-first-in-chain'] = undefined; +/** + * Use Akeyless PKI issuer or Venafi issuer + * @member {Boolean} sign-using-akeyless-pki + */ + +DynamicSecretUpdateVenafi.prototype['sign-using-akeyless-pki'] = undefined; +/** + * Signer key name + * @member {String} signer-key-name + */ + +DynamicSecretUpdateVenafi.prototype['signer-key-name'] = undefined; +/** + * Store private key + * @member {Boolean} store-private-key + */ + +DynamicSecretUpdateVenafi.prototype['store-private-key'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +DynamicSecretUpdateVenafi.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +DynamicSecretUpdateVenafi.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +DynamicSecretUpdateVenafi.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +DynamicSecretUpdateVenafi.prototype['uid-token'] = undefined; +/** + * User TTL in time.Duration format (2160h / 129600m / etc...). When using sign-using-akeyless-pki certificates created will have this validity period, otherwise the user-ttl is taken from the Validity Period field of the Zone's' Issuing Template. When using cert-manager it is advised to have a TTL of above 60 days (1440h). For more information - https://cert-manager.io/docs/usage/certificate/ + * @member {String} user-ttl + * @default '2160h' + */ + +DynamicSecretUpdateVenafi.prototype['user-ttl'] = '2160h'; +/** + * Venafi Access Token to use to access the TPP environment (Relevant when using TPP) + * @member {String} venafi-access-token + */ + +DynamicSecretUpdateVenafi.prototype['venafi-access-token'] = undefined; +/** + * Venafi API key + * @member {String} venafi-api-key + */ + +DynamicSecretUpdateVenafi.prototype['venafi-api-key'] = undefined; +/** + * Venafi Baseurl + * @member {String} venafi-baseurl + */ + +DynamicSecretUpdateVenafi.prototype['venafi-baseurl'] = undefined; +/** + * Venafi Client ID that was used when the access token was generated + * @member {String} venafi-client-id + * @default 'akeyless' + */ + +DynamicSecretUpdateVenafi.prototype['venafi-client-id'] = 'akeyless'; +/** + * Venafi Refresh Token to use when the Access Token is expired (Relevant when using TPP) + * @member {String} venafi-refresh-token + */ + +DynamicSecretUpdateVenafi.prototype['venafi-refresh-token'] = undefined; +/** + * Venafi using TPP + * @member {Boolean} venafi-use-tpp + */ + +DynamicSecretUpdateVenafi.prototype['venafi-use-tpp'] = undefined; +/** + * Venafi Zone + * @member {String} venafi-zone + */ + +DynamicSecretUpdateVenafi.prototype['venafi-zone'] = undefined; +var _default = DynamicSecretUpdateVenafi; +exports["default"] = _default; + +/***/ }), + +/***/ 18422: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EKSTargetDetails model module. + * @module model/EKSTargetDetails + * @version 3.6.3 + */ +var EKSTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new EKSTargetDetails. + * EKSTargetDetails defines details related to connecting to a EKS (Elastic Container Service) target + * @alias module:model/EKSTargetDetails + */ + function EKSTargetDetails() { + _classCallCheck(this, EKSTargetDetails); + + EKSTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EKSTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EKSTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EKSTargetDetails} obj Optional instance to populate. + * @return {module:model/EKSTargetDetails} The populated EKSTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EKSTargetDetails(); + + if (data.hasOwnProperty('eks_access_key_id')) { + obj['eks_access_key_id'] = _ApiClient["default"].convertToType(data['eks_access_key_id'], 'String'); + } + + if (data.hasOwnProperty('eks_cluster_ca_certificate')) { + obj['eks_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['eks_cluster_ca_certificate'], 'String'); + } + + if (data.hasOwnProperty('eks_cluster_endpoint')) { + obj['eks_cluster_endpoint'] = _ApiClient["default"].convertToType(data['eks_cluster_endpoint'], 'String'); + } + + if (data.hasOwnProperty('eks_cluster_name')) { + obj['eks_cluster_name'] = _ApiClient["default"].convertToType(data['eks_cluster_name'], 'String'); + } + + if (data.hasOwnProperty('eks_region')) { + obj['eks_region'] = _ApiClient["default"].convertToType(data['eks_region'], 'String'); + } + + if (data.hasOwnProperty('eks_secret_access_key')) { + obj['eks_secret_access_key'] = _ApiClient["default"].convertToType(data['eks_secret_access_key'], 'String'); + } + + if (data.hasOwnProperty('use_gw_cloud_identity')) { + obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return EKSTargetDetails; +}(); +/** + * @member {String} eks_access_key_id + */ + + +EKSTargetDetails.prototype['eks_access_key_id'] = undefined; +/** + * @member {String} eks_cluster_ca_certificate + */ + +EKSTargetDetails.prototype['eks_cluster_ca_certificate'] = undefined; +/** + * @member {String} eks_cluster_endpoint + */ + +EKSTargetDetails.prototype['eks_cluster_endpoint'] = undefined; +/** + * @member {String} eks_cluster_name + */ + +EKSTargetDetails.prototype['eks_cluster_name'] = undefined; +/** + * @member {String} eks_region + */ + +EKSTargetDetails.prototype['eks_region'] = undefined; +/** + * @member {String} eks_secret_access_key + */ + +EKSTargetDetails.prototype['eks_secret_access_key'] = undefined; +/** + * @member {Boolean} use_gw_cloud_identity + */ + +EKSTargetDetails.prototype['use_gw_cloud_identity'] = undefined; +var _default = EKSTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 15078: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ElasticsearchLogForwardingConfig model module. + * @module model/ElasticsearchLogForwardingConfig + * @version 3.6.3 + */ +var ElasticsearchLogForwardingConfig = /*#__PURE__*/function () { + /** + * Constructs a new ElasticsearchLogForwardingConfig. + * @alias module:model/ElasticsearchLogForwardingConfig + */ + function ElasticsearchLogForwardingConfig() { + _classCallCheck(this, ElasticsearchLogForwardingConfig); + + ElasticsearchLogForwardingConfig.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ElasticsearchLogForwardingConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ElasticsearchLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ElasticsearchLogForwardingConfig} obj Optional instance to populate. + * @return {module:model/ElasticsearchLogForwardingConfig} The populated ElasticsearchLogForwardingConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ElasticsearchLogForwardingConfig(); + + if (data.hasOwnProperty('elasticsearch_api_key')) { + obj['elasticsearch_api_key'] = _ApiClient["default"].convertToType(data['elasticsearch_api_key'], 'String'); + } + + if (data.hasOwnProperty('elasticsearch_auth_type')) { + obj['elasticsearch_auth_type'] = _ApiClient["default"].convertToType(data['elasticsearch_auth_type'], 'String'); + } + + if (data.hasOwnProperty('elasticsearch_cloud_id')) { + obj['elasticsearch_cloud_id'] = _ApiClient["default"].convertToType(data['elasticsearch_cloud_id'], 'String'); + } + + if (data.hasOwnProperty('elasticsearch_enable_tls')) { + obj['elasticsearch_enable_tls'] = _ApiClient["default"].convertToType(data['elasticsearch_enable_tls'], 'Boolean'); + } + + if (data.hasOwnProperty('elasticsearch_index')) { + obj['elasticsearch_index'] = _ApiClient["default"].convertToType(data['elasticsearch_index'], 'String'); + } + + if (data.hasOwnProperty('elasticsearch_nodes')) { + obj['elasticsearch_nodes'] = _ApiClient["default"].convertToType(data['elasticsearch_nodes'], 'String'); + } + + if (data.hasOwnProperty('elasticsearch_password')) { + obj['elasticsearch_password'] = _ApiClient["default"].convertToType(data['elasticsearch_password'], 'String'); + } + + if (data.hasOwnProperty('elasticsearch_server_type')) { + obj['elasticsearch_server_type'] = _ApiClient["default"].convertToType(data['elasticsearch_server_type'], 'String'); + } + + if (data.hasOwnProperty('elasticsearch_tls_certificate')) { + obj['elasticsearch_tls_certificate'] = _ApiClient["default"].convertToType(data['elasticsearch_tls_certificate'], 'String'); + } + + if (data.hasOwnProperty('elasticsearch_user_name')) { + obj['elasticsearch_user_name'] = _ApiClient["default"].convertToType(data['elasticsearch_user_name'], 'String'); + } + } + + return obj; + } + }]); + + return ElasticsearchLogForwardingConfig; +}(); +/** + * @member {String} elasticsearch_api_key + */ + + +ElasticsearchLogForwardingConfig.prototype['elasticsearch_api_key'] = undefined; +/** + * @member {String} elasticsearch_auth_type + */ + +ElasticsearchLogForwardingConfig.prototype['elasticsearch_auth_type'] = undefined; +/** + * @member {String} elasticsearch_cloud_id + */ + +ElasticsearchLogForwardingConfig.prototype['elasticsearch_cloud_id'] = undefined; +/** + * @member {Boolean} elasticsearch_enable_tls + */ + +ElasticsearchLogForwardingConfig.prototype['elasticsearch_enable_tls'] = undefined; +/** + * @member {String} elasticsearch_index + */ + +ElasticsearchLogForwardingConfig.prototype['elasticsearch_index'] = undefined; +/** + * @member {String} elasticsearch_nodes + */ + +ElasticsearchLogForwardingConfig.prototype['elasticsearch_nodes'] = undefined; +/** + * @member {String} elasticsearch_password + */ + +ElasticsearchLogForwardingConfig.prototype['elasticsearch_password'] = undefined; +/** + * @member {String} elasticsearch_server_type + */ + +ElasticsearchLogForwardingConfig.prototype['elasticsearch_server_type'] = undefined; +/** + * @member {String} elasticsearch_tls_certificate + */ + +ElasticsearchLogForwardingConfig.prototype['elasticsearch_tls_certificate'] = undefined; +/** + * @member {String} elasticsearch_user_name + */ + +ElasticsearchLogForwardingConfig.prototype['elasticsearch_user_name'] = undefined; +var _default = ElasticsearchLogForwardingConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 30864: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EmailEntry model module. + * @module model/EmailEntry + * @version 3.6.3 + */ +var EmailEntry = /*#__PURE__*/function () { + /** + * Constructs a new EmailEntry. + * @alias module:model/EmailEntry + */ + function EmailEntry() { + _classCallCheck(this, EmailEntry); + + EmailEntry.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EmailEntry, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EmailEntry from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EmailEntry} obj Optional instance to populate. + * @return {module:model/EmailEntry} The populated EmailEntry instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EmailEntry(); + + if (data.hasOwnProperty('to_email')) { + obj['to_email'] = _ApiClient["default"].convertToType(data['to_email'], 'String'); + } + + if (data.hasOwnProperty('to_name')) { + obj['to_name'] = _ApiClient["default"].convertToType(data['to_name'], 'String'); + } + } + + return obj; + } + }]); + + return EmailEntry; +}(); +/** + * @member {String} to_email + */ + + +EmailEntry.prototype['to_email'] = undefined; +/** + * @member {String} to_name + */ + +EmailEntry.prototype['to_name'] = undefined; +var _default = EmailEntry; +exports["default"] = _default; + +/***/ }), + +/***/ 42046: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EmailPassAccessRules model module. + * @module model/EmailPassAccessRules + * @version 3.6.3 + */ +var EmailPassAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new EmailPassAccessRules. + * @alias module:model/EmailPassAccessRules + */ + function EmailPassAccessRules() { + _classCallCheck(this, EmailPassAccessRules); + + EmailPassAccessRules.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EmailPassAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EmailPassAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EmailPassAccessRules} obj Optional instance to populate. + * @return {module:model/EmailPassAccessRules} The populated EmailPassAccessRules instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EmailPassAccessRules(); + + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + } + + if (data.hasOwnProperty('email')) { + obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); + } + + if (data.hasOwnProperty('enc_email_with_shared_key')) { + obj['enc_email_with_shared_key'] = _ApiClient["default"].convertToType(data['enc_email_with_shared_key'], 'String'); + } + + if (data.hasOwnProperty('hash_pass')) { + obj['hash_pass'] = _ApiClient["default"].convertToType(data['hash_pass'], 'String'); + } + } + + return obj; + } + }]); + + return EmailPassAccessRules; +}(); +/** + * @member {String} alg + */ + + +EmailPassAccessRules.prototype['alg'] = undefined; +/** + * The Email value + * @member {String} email + */ + +EmailPassAccessRules.prototype['email'] = undefined; +/** + * EncEmailWithSharedKey is the email of this auth method, encrypted with the shared auth/uam key (for use in uam) + * @member {String} enc_email_with_shared_key + */ + +EmailPassAccessRules.prototype['enc_email_with_shared_key'] = undefined; +/** + * The password value + * @member {String} hash_pass + */ + +EmailPassAccessRules.prototype['hash_pass'] = undefined; +var _default = EmailPassAccessRules; +exports["default"] = _default; + +/***/ }), + +/***/ 41957: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EmailTokenizerInfo model module. + * @module model/EmailTokenizerInfo + * @version 3.6.3 + */ +var EmailTokenizerInfo = /*#__PURE__*/function () { + /** + * Constructs a new EmailTokenizerInfo. + * EmailTokenizerInfo represents a tokenizer that specifically tokenizes emails + * @alias module:model/EmailTokenizerInfo + */ + function EmailTokenizerInfo() { + _classCallCheck(this, EmailTokenizerInfo); + + EmailTokenizerInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EmailTokenizerInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EmailTokenizerInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EmailTokenizerInfo} obj Optional instance to populate. + * @return {module:model/EmailTokenizerInfo} The populated EmailTokenizerInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EmailTokenizerInfo(); + + if (data.hasOwnProperty('domain_suffix_length')) { + obj['domain_suffix_length'] = _ApiClient["default"].convertToType(data['domain_suffix_length'], 'Number'); + } + + if (data.hasOwnProperty('fixed_domain_suffix')) { + obj['fixed_domain_suffix'] = _ApiClient["default"].convertToType(data['fixed_domain_suffix'], 'String'); + } + + if (data.hasOwnProperty('keep_prefix_length')) { + obj['keep_prefix_length'] = _ApiClient["default"].convertToType(data['keep_prefix_length'], 'Number'); + } + } + + return obj; + } + }]); + + return EmailTokenizerInfo; +}(); +/** + * What length of a random domain suffix to generate used only if FixedDomainSuffix is empty + * @member {Number} domain_suffix_length + */ + + +EmailTokenizerInfo.prototype['domain_suffix_length'] = undefined; +/** + * if FixedDomainSuffix isn't empty, it will be appended to the output + * @member {String} fixed_domain_suffix + */ + +EmailTokenizerInfo.prototype['fixed_domain_suffix'] = undefined; +/** + * How many letters of the plaintext to keep in the output + * @member {Number} keep_prefix_length + */ + +EmailTokenizerInfo.prototype['keep_prefix_length'] = undefined; +var _default = EmailTokenizerInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 24155: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Encrypt model module. + * @module model/Encrypt + * @version 3.6.3 + */ +var Encrypt = /*#__PURE__*/function () { + /** + * Constructs a new Encrypt. + * @alias module:model/Encrypt + * @param keyName {String} The name of the key to use in the encryption process + */ + function Encrypt(keyName) { + _classCallCheck(this, Encrypt); + + Encrypt.initialize(this, keyName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Encrypt, null, [{ + key: "initialize", + value: function initialize(obj, keyName) { + obj['key-name'] = keyName; + } + /** + * Constructs a Encrypt from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Encrypt} obj Optional instance to populate. + * @return {module:model/Encrypt} The populated Encrypt instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Encrypt(); + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('encryption-context')) { + obj['encryption-context'] = _ApiClient["default"].convertToType(data['encryption-context'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('input-format')) { + obj['input-format'] = _ApiClient["default"].convertToType(data['input-format'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('plaintext')) { + obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return Encrypt; +}(); +/** + * The display id of the key to use in the encryption process + * @member {String} display-id + */ + + +Encrypt.prototype['display-id'] = undefined; +/** + * name-value pair that specifies the encryption context to be used for authenticated encryption. If used here, the same value must be supplied to the decrypt command or decryption will fail + * @member {Object.} encryption-context + */ + +Encrypt.prototype['encryption-context'] = undefined; +/** + * Select default assumed format for any plaintext input. Currently supported options: [base64] + * @member {String} input-format + */ + +Encrypt.prototype['input-format'] = undefined; +/** + * The item id of the key to use in the encryption process + * @member {Number} item-id + */ + +Encrypt.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +Encrypt.prototype['json'] = false; +/** + * The name of the key to use in the encryption process + * @member {String} key-name + */ + +Encrypt.prototype['key-name'] = undefined; +/** + * Data to be encrypted + * @member {String} plaintext + */ + +Encrypt.prototype['plaintext'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +Encrypt.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +Encrypt.prototype['uid-token'] = undefined; +/** + * key version (relevant only for classic key) + * @member {Number} version + */ + +Encrypt.prototype['version'] = undefined; +var _default = Encrypt; +exports["default"] = _default; + +/***/ }), + +/***/ 3949: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EncryptFile model module. + * @module model/EncryptFile + * @version 3.6.3 + */ +var EncryptFile = /*#__PURE__*/function () { + /** + * Constructs a new EncryptFile. + * @alias module:model/EncryptFile + * @param _in {String} Path to the file to be encrypted. If not provided, the content will be taken from stdin + * @param keyName {String} The name of the key to use in the encryption process + */ + function EncryptFile(_in, keyName) { + _classCallCheck(this, EncryptFile); + + EncryptFile.initialize(this, _in, keyName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EncryptFile, null, [{ + key: "initialize", + value: function initialize(obj, _in, keyName) { + obj['in'] = _in; + obj['key-name'] = keyName; + } + /** + * Constructs a EncryptFile from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EncryptFile} obj Optional instance to populate. + * @return {module:model/EncryptFile} The populated EncryptFile instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EncryptFile(); + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('in')) { + obj['in'] = _ApiClient["default"].convertToType(data['in'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('out')) { + obj['out'] = _ApiClient["default"].convertToType(data['out'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return EncryptFile; +}(); +/** + * The display id of the key to use in the encryption process + * @member {String} display-id + */ + + +EncryptFile.prototype['display-id'] = undefined; +/** + * Path to the file to be encrypted. If not provided, the content will be taken from stdin + * @member {String} in + */ + +EncryptFile.prototype['in'] = undefined; +/** + * The item id of the key to use in the encryption process + * @member {Number} item-id + */ + +EncryptFile.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EncryptFile.prototype['json'] = false; +/** + * The name of the key to use in the encryption process + * @member {String} key-name + */ + +EncryptFile.prototype['key-name'] = undefined; +/** + * Path to the output file. If not provided, the output will be sent to stdout + * @member {String} out + */ + +EncryptFile.prototype['out'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EncryptFile.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EncryptFile.prototype['uid-token'] = undefined; +var _default = EncryptFile; +exports["default"] = _default; + +/***/ }), + +/***/ 87112: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EncryptFileOutput model module. + * @module model/EncryptFileOutput + * @version 3.6.3 + */ +var EncryptFileOutput = /*#__PURE__*/function () { + /** + * Constructs a new EncryptFileOutput. + * @alias module:model/EncryptFileOutput + */ + function EncryptFileOutput() { + _classCallCheck(this, EncryptFileOutput); + + EncryptFileOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EncryptFileOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EncryptFileOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EncryptFileOutput} obj Optional instance to populate. + * @return {module:model/EncryptFileOutput} The populated EncryptFileOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EncryptFileOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return EncryptFileOutput; +}(); +/** + * @member {String} result + */ + + +EncryptFileOutput.prototype['result'] = undefined; +var _default = EncryptFileOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 81299: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EncryptGPG model module. + * @module model/EncryptGPG + * @version 3.6.3 + */ +var EncryptGPG = /*#__PURE__*/function () { + /** + * Constructs a new EncryptGPG. + * @alias module:model/EncryptGPG + * @param keyName {String} The name of the key to use in the encryption process + * @param plaintext {String} Data to be encrypted + */ + function EncryptGPG(keyName, plaintext) { + _classCallCheck(this, EncryptGPG); + + EncryptGPG.initialize(this, keyName, plaintext); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EncryptGPG, null, [{ + key: "initialize", + value: function initialize(obj, keyName, plaintext) { + obj['key-name'] = keyName; + obj['plaintext'] = plaintext; + } + /** + * Constructs a EncryptGPG from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EncryptGPG} obj Optional instance to populate. + * @return {module:model/EncryptGPG} The populated EncryptGPG instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EncryptGPG(); + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('input-format')) { + obj['input-format'] = _ApiClient["default"].convertToType(data['input-format'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('plaintext')) { + obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return EncryptGPG; +}(); +/** + * The display id of the key to use in the encryption process + * @member {String} display-id + */ + + +EncryptGPG.prototype['display-id'] = undefined; +/** + * If specified, the plaintext input is assumed to be formatted accordingly. Current supported options: [base64] + * @member {String} input-format + */ + +EncryptGPG.prototype['input-format'] = undefined; +/** + * The item id of the key to use in the encryption process + * @member {Number} item-id + */ + +EncryptGPG.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EncryptGPG.prototype['json'] = false; +/** + * The name of the key to use in the encryption process + * @member {String} key-name + */ + +EncryptGPG.prototype['key-name'] = undefined; +/** + * Data to be encrypted + * @member {String} plaintext + */ + +EncryptGPG.prototype['plaintext'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EncryptGPG.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EncryptGPG.prototype['uid-token'] = undefined; +var _default = EncryptGPG; +exports["default"] = _default; + +/***/ }), + +/***/ 71906: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EncryptGPGOutput model module. + * @module model/EncryptGPGOutput + * @version 3.6.3 + */ +var EncryptGPGOutput = /*#__PURE__*/function () { + /** + * Constructs a new EncryptGPGOutput. + * @alias module:model/EncryptGPGOutput + */ + function EncryptGPGOutput() { + _classCallCheck(this, EncryptGPGOutput); + + EncryptGPGOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EncryptGPGOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EncryptGPGOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EncryptGPGOutput} obj Optional instance to populate. + * @return {module:model/EncryptGPGOutput} The populated EncryptGPGOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EncryptGPGOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return EncryptGPGOutput; +}(); +/** + * @member {String} result + */ + + +EncryptGPGOutput.prototype['result'] = undefined; +var _default = EncryptGPGOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 74426: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EncryptOutput model module. + * @module model/EncryptOutput + * @version 3.6.3 + */ +var EncryptOutput = /*#__PURE__*/function () { + /** + * Constructs a new EncryptOutput. + * @alias module:model/EncryptOutput + */ + function EncryptOutput() { + _classCallCheck(this, EncryptOutput); + + EncryptOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EncryptOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EncryptOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EncryptOutput} obj Optional instance to populate. + * @return {module:model/EncryptOutput} The populated EncryptOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EncryptOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return EncryptOutput; +}(); +/** + * @member {String} result + */ + + +EncryptOutput.prototype['result'] = undefined; +var _default = EncryptOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 80064: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EncryptWithClassicKey model module. + * @module model/EncryptWithClassicKey + * @version 3.6.3 + */ +var EncryptWithClassicKey = /*#__PURE__*/function () { + /** + * Constructs a new EncryptWithClassicKey. + * @alias module:model/EncryptWithClassicKey + * @param displayId {String} The name of the key to use in the encryption process + * @param plaintext {String} Data to be encrypted + * @param version {Number} classic key version + */ + function EncryptWithClassicKey(displayId, plaintext, version) { + _classCallCheck(this, EncryptWithClassicKey); + + EncryptWithClassicKey.initialize(this, displayId, plaintext, version); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EncryptWithClassicKey, null, [{ + key: "initialize", + value: function initialize(obj, displayId, plaintext, version) { + obj['display-id'] = displayId; + obj['plaintext'] = plaintext; + obj['version'] = version; + } + /** + * Constructs a EncryptWithClassicKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EncryptWithClassicKey} obj Optional instance to populate. + * @return {module:model/EncryptWithClassicKey} The populated EncryptWithClassicKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EncryptWithClassicKey(); + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('plaintext')) { + obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return EncryptWithClassicKey; +}(); +/** + * The name of the key to use in the encryption process + * @member {String} display-id + */ + + +EncryptWithClassicKey.prototype['display-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EncryptWithClassicKey.prototype['json'] = false; +/** + * Data to be encrypted + * @member {String} plaintext + */ + +EncryptWithClassicKey.prototype['plaintext'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EncryptWithClassicKey.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EncryptWithClassicKey.prototype['uid-token'] = undefined; +/** + * classic key version + * @member {Number} version + */ + +EncryptWithClassicKey.prototype['version'] = undefined; +var _default = EncryptWithClassicKey; +exports["default"] = _default; + +/***/ }), + +/***/ 29257: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EncryptWithClassicKeyOutput model module. + * @module model/EncryptWithClassicKeyOutput + * @version 3.6.3 + */ +var EncryptWithClassicKeyOutput = /*#__PURE__*/function () { + /** + * Constructs a new EncryptWithClassicKeyOutput. + * @alias module:model/EncryptWithClassicKeyOutput + */ + function EncryptWithClassicKeyOutput() { + _classCallCheck(this, EncryptWithClassicKeyOutput); + + EncryptWithClassicKeyOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EncryptWithClassicKeyOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EncryptWithClassicKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EncryptWithClassicKeyOutput} obj Optional instance to populate. + * @return {module:model/EncryptWithClassicKeyOutput} The populated EncryptWithClassicKeyOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EncryptWithClassicKeyOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return EncryptWithClassicKeyOutput; +}(); +/** + * @member {String} result + */ + + +EncryptWithClassicKeyOutput.prototype['result'] = undefined; +var _default = EncryptWithClassicKeyOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 69101: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EsmCreate model module. + * @module model/EsmCreate + * @version 3.6.3 + */ +var EsmCreate = /*#__PURE__*/function () { + /** + * Constructs a new EsmCreate. + * esmCreate is a command that creates a new secret in an External Secrets Manager + * @alias module:model/EsmCreate + * @param esmName {String} Name of the External Secrets Manager item + * @param secretName {String} Name for the new external secret + * @param value {String} Value of the external secret item, either text or base64 encoded binary + */ + function EsmCreate(esmName, secretName, value) { + _classCallCheck(this, EsmCreate); + + EsmCreate.initialize(this, esmName, secretName, value); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EsmCreate, null, [{ + key: "initialize", + value: function initialize(obj, esmName, secretName, value) { + obj['esm-name'] = esmName; + obj['secret-name'] = secretName; + obj['value'] = value; + } + /** + * Constructs a EsmCreate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EsmCreate} obj Optional instance to populate. + * @return {module:model/EsmCreate} The populated EsmCreate instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EsmCreate(); + + if (data.hasOwnProperty('binary-value')) { + obj['binary-value'] = _ApiClient["default"].convertToType(data['binary-value'], 'Boolean'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('esm-name')) { + obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('secret-name')) { + obj['secret-name'] = _ApiClient["default"].convertToType(data['secret-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('value')) { + obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); + } + } + + return obj; + } + }]); + + return EsmCreate; +}(); +/** + * Use this option if the external secret value is a base64 encoded binary + * @member {Boolean} binary-value + */ + + +EsmCreate.prototype['binary-value'] = undefined; +/** + * Description of the external secret + * @member {String} description + */ + +EsmCreate.prototype['description'] = undefined; +/** + * Name of the External Secrets Manager item + * @member {String} esm-name + */ + +EsmCreate.prototype['esm-name'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EsmCreate.prototype['json'] = false; +/** + * Name for the new external secret + * @member {String} secret-name + */ + +EsmCreate.prototype['secret-name'] = undefined; +/** + * Tags for the external secret + * @member {Object.} tags + */ + +EsmCreate.prototype['tags'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EsmCreate.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EsmCreate.prototype['uid-token'] = undefined; +/** + * Value of the external secret item, either text or base64 encoded binary + * @member {String} value + */ + +EsmCreate.prototype['value'] = undefined; +var _default = EsmCreate; +exports["default"] = _default; + +/***/ }), + +/***/ 37808: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EsmCreateSecretOutput model module. + * @module model/EsmCreateSecretOutput + * @version 3.6.3 + */ +var EsmCreateSecretOutput = /*#__PURE__*/function () { + /** + * Constructs a new EsmCreateSecretOutput. + * @alias module:model/EsmCreateSecretOutput + */ + function EsmCreateSecretOutput() { + _classCallCheck(this, EsmCreateSecretOutput); + + EsmCreateSecretOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EsmCreateSecretOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EsmCreateSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EsmCreateSecretOutput} obj Optional instance to populate. + * @return {module:model/EsmCreateSecretOutput} The populated EsmCreateSecretOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EsmCreateSecretOutput(); + + if (data.hasOwnProperty('secret_id')) { + obj['secret_id'] = _ApiClient["default"].convertToType(data['secret_id'], 'String'); + } + + if (data.hasOwnProperty('version_id')) { + obj['version_id'] = _ApiClient["default"].convertToType(data['version_id'], 'String'); + } + } + + return obj; + } + }]); + + return EsmCreateSecretOutput; +}(); +/** + * @member {String} secret_id + */ + + +EsmCreateSecretOutput.prototype['secret_id'] = undefined; +/** + * @member {String} version_id + */ + +EsmCreateSecretOutput.prototype['version_id'] = undefined; +var _default = EsmCreateSecretOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 26602: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EsmDelete model module. + * @module model/EsmDelete + * @version 3.6.3 + */ +var EsmDelete = /*#__PURE__*/function () { + /** + * Constructs a new EsmDelete. + * esmDelete is a command that deletes a secret from an External Secrets Manager + * @alias module:model/EsmDelete + * @param esmName {String} Name of the External Secrets Manager item + * @param secretId {String} The external secret id (or name, for AWS, Azure or K8s targets) to delete + */ + function EsmDelete(esmName, secretId) { + _classCallCheck(this, EsmDelete); + + EsmDelete.initialize(this, esmName, secretId); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EsmDelete, null, [{ + key: "initialize", + value: function initialize(obj, esmName, secretId) { + obj['esm-name'] = esmName; + obj['secret-id'] = secretId; + } + /** + * Constructs a EsmDelete from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EsmDelete} obj Optional instance to populate. + * @return {module:model/EsmDelete} The populated EsmDelete instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EsmDelete(); + + if (data.hasOwnProperty('esm-name')) { + obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('secret-id')) { + obj['secret-id'] = _ApiClient["default"].convertToType(data['secret-id'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return EsmDelete; +}(); +/** + * Name of the External Secrets Manager item + * @member {String} esm-name + */ + + +EsmDelete.prototype['esm-name'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EsmDelete.prototype['json'] = false; +/** + * The external secret id (or name, for AWS, Azure or K8s targets) to delete + * @member {String} secret-id + */ + +EsmDelete.prototype['secret-id'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EsmDelete.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EsmDelete.prototype['uid-token'] = undefined; +var _default = EsmDelete; +exports["default"] = _default; + +/***/ }), + +/***/ 99707: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EsmDeleteSecretOutput model module. + * @module model/EsmDeleteSecretOutput + * @version 3.6.3 + */ +var EsmDeleteSecretOutput = /*#__PURE__*/function () { + /** + * Constructs a new EsmDeleteSecretOutput. + * @alias module:model/EsmDeleteSecretOutput + */ + function EsmDeleteSecretOutput() { + _classCallCheck(this, EsmDeleteSecretOutput); + + EsmDeleteSecretOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EsmDeleteSecretOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EsmDeleteSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EsmDeleteSecretOutput} obj Optional instance to populate. + * @return {module:model/EsmDeleteSecretOutput} The populated EsmDeleteSecretOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EsmDeleteSecretOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return EsmDeleteSecretOutput; +}(); +/** + * @member {String} name + */ + + +EsmDeleteSecretOutput.prototype['name'] = undefined; +var _default = EsmDeleteSecretOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 1541: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EsmGet model module. + * @module model/EsmGet + * @version 3.6.3 + */ +var EsmGet = /*#__PURE__*/function () { + /** + * Constructs a new EsmGet. + * esmGet is a command that gets the value and interal details of a secret from an External Secrets Manager + * @alias module:model/EsmGet + * @param esmName {String} Name of the External Secrets Manager item + * @param secretId {String} The secret id (or name, for AWS, Azure or K8s targets) to get from the External Secrets Manager + */ + function EsmGet(esmName, secretId) { + _classCallCheck(this, EsmGet); + + EsmGet.initialize(this, esmName, secretId); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EsmGet, null, [{ + key: "initialize", + value: function initialize(obj, esmName, secretId) { + obj['esm-name'] = esmName; + obj['secret-id'] = secretId; + } + /** + * Constructs a EsmGet from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EsmGet} obj Optional instance to populate. + * @return {module:model/EsmGet} The populated EsmGet instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EsmGet(); + + if (data.hasOwnProperty('esm-name')) { + obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('secret-id')) { + obj['secret-id'] = _ApiClient["default"].convertToType(data['secret-id'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return EsmGet; +}(); +/** + * Name of the External Secrets Manager item + * @member {String} esm-name + */ + + +EsmGet.prototype['esm-name'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EsmGet.prototype['json'] = false; +/** + * The secret id (or name, for AWS, Azure or K8s targets) to get from the External Secrets Manager + * @member {String} secret-id + */ + +EsmGet.prototype['secret-id'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EsmGet.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EsmGet.prototype['uid-token'] = undefined; +var _default = EsmGet; +exports["default"] = _default; + +/***/ }), + +/***/ 13496: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EsmGetSecretOutput model module. + * @module model/EsmGetSecretOutput + * @version 3.6.3 + */ +var EsmGetSecretOutput = /*#__PURE__*/function () { + /** + * Constructs a new EsmGetSecretOutput. + * @alias module:model/EsmGetSecretOutput + */ + function EsmGetSecretOutput() { + _classCallCheck(this, EsmGetSecretOutput); + + EsmGetSecretOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EsmGetSecretOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EsmGetSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EsmGetSecretOutput} obj Optional instance to populate. + * @return {module:model/EsmGetSecretOutput} The populated EsmGetSecretOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EsmGetSecretOutput(); + + if (data.hasOwnProperty('binary_value')) { + obj['binary_value'] = _ApiClient["default"].convertToType(data['binary_value'], 'Boolean'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('value')) { + obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); + } + } + + return obj; + } + }]); + + return EsmGetSecretOutput; +}(); +/** + * @member {Boolean} binary_value + */ + + +EsmGetSecretOutput.prototype['binary_value'] = undefined; +/** + * @member {Object} metadata + */ + +EsmGetSecretOutput.prototype['metadata'] = undefined; +/** + * @member {String} name + */ + +EsmGetSecretOutput.prototype['name'] = undefined; +/** + * @member {String} value + */ + +EsmGetSecretOutput.prototype['value'] = undefined; +var _default = EsmGetSecretOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 59317: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EsmList model module. + * @module model/EsmList + * @version 3.6.3 + */ +var EsmList = /*#__PURE__*/function () { + /** + * Constructs a new EsmList. + * esmList is a command that lists the secrets of an External Secrets Manager + * @alias module:model/EsmList + * @param esmName {String} Name of the External Secrets Manager item + */ + function EsmList(esmName) { + _classCallCheck(this, EsmList); + + EsmList.initialize(this, esmName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EsmList, null, [{ + key: "initialize", + value: function initialize(obj, esmName) { + obj['esm-name'] = esmName; + } + /** + * Constructs a EsmList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EsmList} obj Optional instance to populate. + * @return {module:model/EsmList} The populated EsmList instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EsmList(); + + if (data.hasOwnProperty('esm-name')) { + obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return EsmList; +}(); +/** + * Name of the External Secrets Manager item + * @member {String} esm-name + */ + + +EsmList.prototype['esm-name'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EsmList.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EsmList.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EsmList.prototype['uid-token'] = undefined; +var _default = EsmList; +exports["default"] = _default; + +/***/ }), + +/***/ 63233: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _SecretInfo = _interopRequireDefault(__nccwpck_require__(39800)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EsmListSecretsOutput model module. + * @module model/EsmListSecretsOutput + * @version 3.6.3 + */ +var EsmListSecretsOutput = /*#__PURE__*/function () { + /** + * Constructs a new EsmListSecretsOutput. + * @alias module:model/EsmListSecretsOutput + */ + function EsmListSecretsOutput() { + _classCallCheck(this, EsmListSecretsOutput); + + EsmListSecretsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EsmListSecretsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EsmListSecretsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EsmListSecretsOutput} obj Optional instance to populate. + * @return {module:model/EsmListSecretsOutput} The populated EsmListSecretsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EsmListSecretsOutput(); + + if (data.hasOwnProperty('secrets_list')) { + obj['secrets_list'] = _ApiClient["default"].convertToType(data['secrets_list'], [_SecretInfo["default"]]); + } + } + + return obj; + } + }]); + + return EsmListSecretsOutput; +}(); +/** + * @member {Array.} secrets_list + */ + + +EsmListSecretsOutput.prototype['secrets_list'] = undefined; +var _default = EsmListSecretsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 29564: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EsmUpdate model module. + * @module model/EsmUpdate + * @version 3.6.3 + */ +var EsmUpdate = /*#__PURE__*/function () { + /** + * Constructs a new EsmUpdate. + * esmUpdate is a command that updates a secret in an External Secrets Manager + * @alias module:model/EsmUpdate + * @param esmName {String} Name of the External Secrets Manager item + * @param secretId {String} The external secret id (or name, for AWS, Azure or K8s targets) to update + * @param value {String} Value of the external secret item, either text or base64 encoded binary + */ + function EsmUpdate(esmName, secretId, value) { + _classCallCheck(this, EsmUpdate); + + EsmUpdate.initialize(this, esmName, secretId, value); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EsmUpdate, null, [{ + key: "initialize", + value: function initialize(obj, esmName, secretId, value) { + obj['esm-name'] = esmName; + obj['secret-id'] = secretId; + obj['value'] = value; + } + /** + * Constructs a EsmUpdate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EsmUpdate} obj Optional instance to populate. + * @return {module:model/EsmUpdate} The populated EsmUpdate instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EsmUpdate(); + + if (data.hasOwnProperty('binary-value')) { + obj['binary-value'] = _ApiClient["default"].convertToType(data['binary-value'], 'Boolean'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('esm-name')) { + obj['esm-name'] = _ApiClient["default"].convertToType(data['esm-name'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('secret-id')) { + obj['secret-id'] = _ApiClient["default"].convertToType(data['secret-id'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('value')) { + obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); + } + } + + return obj; + } + }]); + + return EsmUpdate; +}(); +/** + * Use this option if the external secret value is a base64 encoded binary + * @member {Boolean} binary-value + */ + + +EsmUpdate.prototype['binary-value'] = undefined; +/** + * Description of the external secret + * @member {String} description + */ + +EsmUpdate.prototype['description'] = undefined; +/** + * Name of the External Secrets Manager item + * @member {String} esm-name + */ + +EsmUpdate.prototype['esm-name'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EsmUpdate.prototype['json'] = false; +/** + * The external secret id (or name, for AWS, Azure or K8s targets) to update + * @member {String} secret-id + */ + +EsmUpdate.prototype['secret-id'] = undefined; +/** + * Tags for the external secret + * @member {Object.} tags + */ + +EsmUpdate.prototype['tags'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EsmUpdate.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EsmUpdate.prototype['uid-token'] = undefined; +/** + * Value of the external secret item, either text or base64 encoded binary + * @member {String} value + */ + +EsmUpdate.prototype['value'] = undefined; +var _default = EsmUpdate; +exports["default"] = _default; + +/***/ }), + +/***/ 45309: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EsmUpdateSecretOutput model module. + * @module model/EsmUpdateSecretOutput + * @version 3.6.3 + */ +var EsmUpdateSecretOutput = /*#__PURE__*/function () { + /** + * Constructs a new EsmUpdateSecretOutput. + * @alias module:model/EsmUpdateSecretOutput + */ + function EsmUpdateSecretOutput() { + _classCallCheck(this, EsmUpdateSecretOutput); + + EsmUpdateSecretOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EsmUpdateSecretOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EsmUpdateSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EsmUpdateSecretOutput} obj Optional instance to populate. + * @return {module:model/EsmUpdateSecretOutput} The populated EsmUpdateSecretOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EsmUpdateSecretOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('secret_id')) { + obj['secret_id'] = _ApiClient["default"].convertToType(data['secret_id'], 'String'); + } + + if (data.hasOwnProperty('version_id')) { + obj['version_id'] = _ApiClient["default"].convertToType(data['version_id'], 'String'); + } + } + + return obj; + } + }]); + + return EsmUpdateSecretOutput; +}(); +/** + * @member {String} name + */ + + +EsmUpdateSecretOutput.prototype['name'] = undefined; +/** + * @member {String} secret_id + */ + +EsmUpdateSecretOutput.prototype['secret_id'] = undefined; +/** + * @member {String} version_id + */ + +EsmUpdateSecretOutput.prototype['version_id'] = undefined; +var _default = EsmUpdateSecretOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 73404: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EventAction model module. + * @module model/EventAction + * @version 3.6.3 + */ +var EventAction = /*#__PURE__*/function () { + /** + * Constructs a new EventAction. + * @alias module:model/EventAction + * @param action {String} The Event Action [approve/deny] + * @param eventId {Number} The Event ID + */ + function EventAction(action, eventId) { + _classCallCheck(this, EventAction); + + EventAction.initialize(this, action, eventId); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EventAction, null, [{ + key: "initialize", + value: function initialize(obj, action, eventId) { + obj['action'] = action; + obj['event-id'] = eventId; + } + /** + * Constructs a EventAction from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EventAction} obj Optional instance to populate. + * @return {module:model/EventAction} The populated EventAction instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EventAction(); + + if (data.hasOwnProperty('action')) { + obj['action'] = _ApiClient["default"].convertToType(data['action'], 'String'); + } + + if (data.hasOwnProperty('event-id')) { + obj['event-id'] = _ApiClient["default"].convertToType(data['event-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return EventAction; +}(); +/** + * The Event Action [approve/deny] + * @member {String} action + */ + + +EventAction.prototype['action'] = undefined; +/** + * The Event ID + * @member {Number} event-id + */ + +EventAction.prototype['event-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EventAction.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EventAction.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EventAction.prototype['uid-token'] = undefined; +var _default = EventAction; +exports["default"] = _default; + +/***/ }), + +/***/ 39252: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EventForwarderCreateEmail model module. + * @module model/EventForwarderCreateEmail + * @version 3.6.3 + */ +var EventForwarderCreateEmail = /*#__PURE__*/function () { + /** + * Constructs a new EventForwarderCreateEmail. + * eventForwarderCreateEmail is a command that creates email event forwarder + * @alias module:model/EventForwarderCreateEmail + * @param gatewaysEventSourceLocations {Array.} Event sources + * @param name {String} EventForwarder name + * @param runnerType {String} + */ + function EventForwarderCreateEmail(gatewaysEventSourceLocations, name, runnerType) { + _classCallCheck(this, EventForwarderCreateEmail); + + EventForwarderCreateEmail.initialize(this, gatewaysEventSourceLocations, name, runnerType); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EventForwarderCreateEmail, null, [{ + key: "initialize", + value: function initialize(obj, gatewaysEventSourceLocations, name, runnerType) { + obj['gateways-event-source-locations'] = gatewaysEventSourceLocations; + obj['name'] = name; + obj['runner-type'] = runnerType; + } + /** + * Constructs a EventForwarderCreateEmail from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EventForwarderCreateEmail} obj Optional instance to populate. + * @return {module:model/EventForwarderCreateEmail} The populated EventForwarderCreateEmail instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EventForwarderCreateEmail(); + + if (data.hasOwnProperty('auth-methods-event-source-locations')) { + obj['auth-methods-event-source-locations'] = _ApiClient["default"].convertToType(data['auth-methods-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('email-to')) { + obj['email-to'] = _ApiClient["default"].convertToType(data['email-to'], 'String'); + } + + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); + } + + if (data.hasOwnProperty('every')) { + obj['every'] = _ApiClient["default"].convertToType(data['every'], 'String'); + } + + if (data.hasOwnProperty('gateways-event-source-locations')) { + obj['gateways-event-source-locations'] = _ApiClient["default"].convertToType(data['gateways-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('items-event-source-locations')) { + obj['items-event-source-locations'] = _ApiClient["default"].convertToType(data['items-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('override-url')) { + obj['override-url'] = _ApiClient["default"].convertToType(data['override-url'], 'String'); + } + + if (data.hasOwnProperty('runner-type')) { + obj['runner-type'] = _ApiClient["default"].convertToType(data['runner-type'], 'String'); + } + + if (data.hasOwnProperty('targets-event-source-locations')) { + obj['targets-event-source-locations'] = _ApiClient["default"].convertToType(data['targets-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return EventForwarderCreateEmail; +}(); +/** + * Auth Method Event sources + * @member {Array.} auth-methods-event-source-locations + */ + + +EventForwarderCreateEmail.prototype['auth-methods-event-source-locations'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +EventForwarderCreateEmail.prototype['description'] = undefined; +/** + * A comma seperated list of email addresses to send event to + * @member {String} email-to + */ + +EventForwarderCreateEmail.prototype['email-to'] = undefined; +/** + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types + */ + +EventForwarderCreateEmail.prototype['event-types'] = undefined; +/** + * Rate of periodic runner repetition in hours + * @member {String} every + */ + +EventForwarderCreateEmail.prototype['every'] = undefined; +/** + * Event sources + * @member {Array.} gateways-event-source-locations + */ + +EventForwarderCreateEmail.prototype['gateways-event-source-locations'] = undefined; +/** + * Items Event sources + * @member {Array.} items-event-source-locations + */ + +EventForwarderCreateEmail.prototype['items-event-source-locations'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EventForwarderCreateEmail.prototype['json'] = false; +/** + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +EventForwarderCreateEmail.prototype['key'] = undefined; +/** + * EventForwarder name + * @member {String} name + */ + +EventForwarderCreateEmail.prototype['name'] = undefined; +/** + * Override Akeyless default URL with your Gateway url (port 18888) + * @member {String} override-url + */ + +EventForwarderCreateEmail.prototype['override-url'] = undefined; +/** + * @member {String} runner-type + */ + +EventForwarderCreateEmail.prototype['runner-type'] = undefined; +/** + * Targets Event sources + * @member {Array.} targets-event-source-locations + */ + +EventForwarderCreateEmail.prototype['targets-event-source-locations'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EventForwarderCreateEmail.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EventForwarderCreateEmail.prototype['uid-token'] = undefined; +var _default = EventForwarderCreateEmail; +exports["default"] = _default; + +/***/ }), + +/***/ 66787: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EventForwarderCreateServiceNow model module. + * @module model/EventForwarderCreateServiceNow + * @version 3.6.3 + */ +var EventForwarderCreateServiceNow = /*#__PURE__*/function () { + /** + * Constructs a new EventForwarderCreateServiceNow. + * eventForwarderCreateServiceNow is a command that creates service-now event forwarder + * @alias module:model/EventForwarderCreateServiceNow + * @param gatewaysEventSourceLocations {Array.} Event sources + * @param name {String} EventForwarder name + * @param runnerType {String} + */ + function EventForwarderCreateServiceNow(gatewaysEventSourceLocations, name, runnerType) { + _classCallCheck(this, EventForwarderCreateServiceNow); + + EventForwarderCreateServiceNow.initialize(this, gatewaysEventSourceLocations, name, runnerType); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EventForwarderCreateServiceNow, null, [{ + key: "initialize", + value: function initialize(obj, gatewaysEventSourceLocations, name, runnerType) { + obj['gateways-event-source-locations'] = gatewaysEventSourceLocations; + obj['name'] = name; + obj['runner-type'] = runnerType; + } + /** + * Constructs a EventForwarderCreateServiceNow from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EventForwarderCreateServiceNow} obj Optional instance to populate. + * @return {module:model/EventForwarderCreateServiceNow} The populated EventForwarderCreateServiceNow instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EventForwarderCreateServiceNow(); + + if (data.hasOwnProperty('admin-name')) { + obj['admin-name'] = _ApiClient["default"].convertToType(data['admin-name'], 'String'); + } + + if (data.hasOwnProperty('admin-pwd')) { + obj['admin-pwd'] = _ApiClient["default"].convertToType(data['admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('app-private-key-base64')) { + obj['app-private-key-base64'] = _ApiClient["default"].convertToType(data['app-private-key-base64'], 'String'); + } + + if (data.hasOwnProperty('auth-methods-event-source-locations')) { + obj['auth-methods-event-source-locations'] = _ApiClient["default"].convertToType(data['auth-methods-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('auth-type')) { + obj['auth-type'] = _ApiClient["default"].convertToType(data['auth-type'], 'String'); + } + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + } + + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); + } + + if (data.hasOwnProperty('every')) { + obj['every'] = _ApiClient["default"].convertToType(data['every'], 'String'); + } + + if (data.hasOwnProperty('gateways-event-source-locations')) { + obj['gateways-event-source-locations'] = _ApiClient["default"].convertToType(data['gateways-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('items-event-source-locations')) { + obj['items-event-source-locations'] = _ApiClient["default"].convertToType(data['items-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('runner-type')) { + obj['runner-type'] = _ApiClient["default"].convertToType(data['runner-type'], 'String'); + } + + if (data.hasOwnProperty('targets-event-source-locations')) { + obj['targets-event-source-locations'] = _ApiClient["default"].convertToType(data['targets-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-email')) { + obj['user-email'] = _ApiClient["default"].convertToType(data['user-email'], 'String'); + } + } + + return obj; + } + }]); + + return EventForwarderCreateServiceNow; +}(); +/** + * Workstation Admin Name + * @member {String} admin-name + */ + + +EventForwarderCreateServiceNow.prototype['admin-name'] = undefined; +/** + * Workstation Admin Password + * @member {String} admin-pwd + */ + +EventForwarderCreateServiceNow.prototype['admin-pwd'] = undefined; +/** + * The RSA Private Key to use when connecting with jwt authentication + * @member {String} app-private-key-base64 + */ + +EventForwarderCreateServiceNow.prototype['app-private-key-base64'] = undefined; +/** + * Auth Method Event sources + * @member {Array.} auth-methods-event-source-locations + */ + +EventForwarderCreateServiceNow.prototype['auth-methods-event-source-locations'] = undefined; +/** + * The authentication type to use [user-pass/jwt] + * @member {String} auth-type + * @default 'user-pass' + */ + +EventForwarderCreateServiceNow.prototype['auth-type'] = 'user-pass'; +/** + * The client ID to use when connecting with jwt authentication + * @member {String} client-id + */ + +EventForwarderCreateServiceNow.prototype['client-id'] = undefined; +/** + * The client secret to use when connecting with jwt authentication + * @member {String} client-secret + */ + +EventForwarderCreateServiceNow.prototype['client-secret'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +EventForwarderCreateServiceNow.prototype['description'] = undefined; +/** + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types + */ + +EventForwarderCreateServiceNow.prototype['event-types'] = undefined; +/** + * Rate of periodic runner repetition in hours + * @member {String} every + */ + +EventForwarderCreateServiceNow.prototype['every'] = undefined; +/** + * Event sources + * @member {Array.} gateways-event-source-locations + */ + +EventForwarderCreateServiceNow.prototype['gateways-event-source-locations'] = undefined; +/** + * Workstation Host + * @member {String} host + */ + +EventForwarderCreateServiceNow.prototype['host'] = undefined; +/** + * Items Event sources + * @member {Array.} items-event-source-locations + */ + +EventForwarderCreateServiceNow.prototype['items-event-source-locations'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EventForwarderCreateServiceNow.prototype['json'] = false; +/** + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +EventForwarderCreateServiceNow.prototype['key'] = undefined; +/** + * EventForwarder name + * @member {String} name + */ + +EventForwarderCreateServiceNow.prototype['name'] = undefined; +/** + * @member {String} runner-type + */ + +EventForwarderCreateServiceNow.prototype['runner-type'] = undefined; +/** + * Targets Event sources + * @member {Array.} targets-event-source-locations + */ + +EventForwarderCreateServiceNow.prototype['targets-event-source-locations'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EventForwarderCreateServiceNow.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EventForwarderCreateServiceNow.prototype['uid-token'] = undefined; +/** + * The user email to identify with when connecting with jwt authentication + * @member {String} user-email + */ + +EventForwarderCreateServiceNow.prototype['user-email'] = undefined; +var _default = EventForwarderCreateServiceNow; +exports["default"] = _default; + +/***/ }), + +/***/ 60868: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EventForwarderCreateSlack model module. + * @module model/EventForwarderCreateSlack + * @version 3.6.3 + */ +var EventForwarderCreateSlack = /*#__PURE__*/function () { + /** + * Constructs a new EventForwarderCreateSlack. + * eventForwarderCreateSlack is a command that creates slack event forwarder + * @alias module:model/EventForwarderCreateSlack + * @param gatewaysEventSourceLocations {Array.} Event sources + * @param name {String} EventForwarder name + * @param runnerType {String} + * @param url {String} Slack Webhook URL + */ + function EventForwarderCreateSlack(gatewaysEventSourceLocations, name, runnerType, url) { + _classCallCheck(this, EventForwarderCreateSlack); + + EventForwarderCreateSlack.initialize(this, gatewaysEventSourceLocations, name, runnerType, url); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EventForwarderCreateSlack, null, [{ + key: "initialize", + value: function initialize(obj, gatewaysEventSourceLocations, name, runnerType, url) { + obj['gateways-event-source-locations'] = gatewaysEventSourceLocations; + obj['name'] = name; + obj['runner-type'] = runnerType; + obj['url'] = url; + } + /** + * Constructs a EventForwarderCreateSlack from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EventForwarderCreateSlack} obj Optional instance to populate. + * @return {module:model/EventForwarderCreateSlack} The populated EventForwarderCreateSlack instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EventForwarderCreateSlack(); + + if (data.hasOwnProperty('auth-methods-event-source-locations')) { + obj['auth-methods-event-source-locations'] = _ApiClient["default"].convertToType(data['auth-methods-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); + } + + if (data.hasOwnProperty('every')) { + obj['every'] = _ApiClient["default"].convertToType(data['every'], 'String'); + } + + if (data.hasOwnProperty('gateways-event-source-locations')) { + obj['gateways-event-source-locations'] = _ApiClient["default"].convertToType(data['gateways-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('items-event-source-locations')) { + obj['items-event-source-locations'] = _ApiClient["default"].convertToType(data['items-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('runner-type')) { + obj['runner-type'] = _ApiClient["default"].convertToType(data['runner-type'], 'String'); + } + + if (data.hasOwnProperty('targets-event-source-locations')) { + obj['targets-event-source-locations'] = _ApiClient["default"].convertToType(data['targets-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } + } + + return obj; + } + }]); + + return EventForwarderCreateSlack; +}(); +/** + * Auth Method Event sources + * @member {Array.} auth-methods-event-source-locations + */ + + +EventForwarderCreateSlack.prototype['auth-methods-event-source-locations'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +EventForwarderCreateSlack.prototype['description'] = undefined; +/** + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types + */ + +EventForwarderCreateSlack.prototype['event-types'] = undefined; +/** + * Rate of periodic runner repetition in hours + * @member {String} every + */ + +EventForwarderCreateSlack.prototype['every'] = undefined; +/** + * Event sources + * @member {Array.} gateways-event-source-locations + */ + +EventForwarderCreateSlack.prototype['gateways-event-source-locations'] = undefined; +/** + * Items Event sources + * @member {Array.} items-event-source-locations + */ + +EventForwarderCreateSlack.prototype['items-event-source-locations'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EventForwarderCreateSlack.prototype['json'] = false; +/** + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +EventForwarderCreateSlack.prototype['key'] = undefined; +/** + * EventForwarder name + * @member {String} name + */ + +EventForwarderCreateSlack.prototype['name'] = undefined; +/** + * @member {String} runner-type + */ + +EventForwarderCreateSlack.prototype['runner-type'] = undefined; +/** + * Targets Event sources + * @member {Array.} targets-event-source-locations + */ + +EventForwarderCreateSlack.prototype['targets-event-source-locations'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EventForwarderCreateSlack.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EventForwarderCreateSlack.prototype['uid-token'] = undefined; +/** + * Slack Webhook URL + * @member {String} url + */ + +EventForwarderCreateSlack.prototype['url'] = undefined; +var _default = EventForwarderCreateSlack; +exports["default"] = _default; + +/***/ }), + +/***/ 80474: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EventForwarderCreateUpdateOutput model module. + * @module model/EventForwarderCreateUpdateOutput + * @version 3.6.3 + */ +var EventForwarderCreateUpdateOutput = /*#__PURE__*/function () { + /** + * Constructs a new EventForwarderCreateUpdateOutput. + * @alias module:model/EventForwarderCreateUpdateOutput + */ + function EventForwarderCreateUpdateOutput() { + _classCallCheck(this, EventForwarderCreateUpdateOutput); + + EventForwarderCreateUpdateOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EventForwarderCreateUpdateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EventForwarderCreateUpdateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EventForwarderCreateUpdateOutput} obj Optional instance to populate. + * @return {module:model/EventForwarderCreateUpdateOutput} The populated EventForwarderCreateUpdateOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EventForwarderCreateUpdateOutput(); + + if (data.hasOwnProperty('event_forwarder_id')) { + obj['event_forwarder_id'] = _ApiClient["default"].convertToType(data['event_forwarder_id'], 'Number'); + } + + if (data.hasOwnProperty('event_forwarder_name')) { + obj['event_forwarder_name'] = _ApiClient["default"].convertToType(data['event_forwarder_name'], 'String'); + } + } + + return obj; + } + }]); + + return EventForwarderCreateUpdateOutput; +}(); +/** + * @member {Number} event_forwarder_id + */ + + +EventForwarderCreateUpdateOutput.prototype['event_forwarder_id'] = undefined; +/** + * @member {String} event_forwarder_name + */ + +EventForwarderCreateUpdateOutput.prototype['event_forwarder_name'] = undefined; +var _default = EventForwarderCreateUpdateOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 15929: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EventForwarderCreateWebhook model module. + * @module model/EventForwarderCreateWebhook + * @version 3.6.3 + */ +var EventForwarderCreateWebhook = /*#__PURE__*/function () { + /** + * Constructs a new EventForwarderCreateWebhook. + * eventForwarderCreateWebhook is a command that creates webhook event forwarder + * @alias module:model/EventForwarderCreateWebhook + * @param gatewaysEventSourceLocations {Array.} Event sources + * @param name {String} EventForwarder name + * @param runnerType {String} + */ + function EventForwarderCreateWebhook(gatewaysEventSourceLocations, name, runnerType) { + _classCallCheck(this, EventForwarderCreateWebhook); + + EventForwarderCreateWebhook.initialize(this, gatewaysEventSourceLocations, name, runnerType); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EventForwarderCreateWebhook, null, [{ + key: "initialize", + value: function initialize(obj, gatewaysEventSourceLocations, name, runnerType) { + obj['gateways-event-source-locations'] = gatewaysEventSourceLocations; + obj['name'] = name; + obj['runner-type'] = runnerType; + } + /** + * Constructs a EventForwarderCreateWebhook from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EventForwarderCreateWebhook} obj Optional instance to populate. + * @return {module:model/EventForwarderCreateWebhook} The populated EventForwarderCreateWebhook instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EventForwarderCreateWebhook(); + + if (data.hasOwnProperty('auth-methods-event-source-locations')) { + obj['auth-methods-event-source-locations'] = _ApiClient["default"].convertToType(data['auth-methods-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('auth-token')) { + obj['auth-token'] = _ApiClient["default"].convertToType(data['auth-token'], 'String'); + } + + if (data.hasOwnProperty('auth-type')) { + obj['auth-type'] = _ApiClient["default"].convertToType(data['auth-type'], 'String'); + } + + if (data.hasOwnProperty('client-cert-data')) { + obj['client-cert-data'] = _ApiClient["default"].convertToType(data['client-cert-data'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); + } + + if (data.hasOwnProperty('every')) { + obj['every'] = _ApiClient["default"].convertToType(data['every'], 'String'); + } + + if (data.hasOwnProperty('gateways-event-source-locations')) { + obj['gateways-event-source-locations'] = _ApiClient["default"].convertToType(data['gateways-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('items-event-source-locations')) { + obj['items-event-source-locations'] = _ApiClient["default"].convertToType(data['items-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('private-key-data')) { + obj['private-key-data'] = _ApiClient["default"].convertToType(data['private-key-data'], 'String'); + } + + if (data.hasOwnProperty('runner-type')) { + obj['runner-type'] = _ApiClient["default"].convertToType(data['runner-type'], 'String'); + } + + if (data.hasOwnProperty('server-certificates')) { + obj['server-certificates'] = _ApiClient["default"].convertToType(data['server-certificates'], 'String'); + } + + if (data.hasOwnProperty('targets-event-source-locations')) { + obj['targets-event-source-locations'] = _ApiClient["default"].convertToType(data['targets-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + } + + return obj; + } + }]); + + return EventForwarderCreateWebhook; +}(); +/** + * Auth Method Event sources + * @member {Array.} auth-methods-event-source-locations + */ + + +EventForwarderCreateWebhook.prototype['auth-methods-event-source-locations'] = undefined; +/** + * Base64 encoded Token string for authentication type Token + * @member {String} auth-token + */ + +EventForwarderCreateWebhook.prototype['auth-token'] = undefined; +/** + * The Webhook authentication type [user-pass, token, certificate] + * @member {String} auth-type + * @default 'user-pass' + */ + +EventForwarderCreateWebhook.prototype['auth-type'] = 'user-pass'; +/** + * Base64 encoded PEM certificate, relevant for certificate auth-type + * @member {String} client-cert-data + */ + +EventForwarderCreateWebhook.prototype['client-cert-data'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +EventForwarderCreateWebhook.prototype['description'] = undefined; +/** + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types + */ + +EventForwarderCreateWebhook.prototype['event-types'] = undefined; +/** + * Rate of periodic runner repetition in hours + * @member {String} every + */ + +EventForwarderCreateWebhook.prototype['every'] = undefined; +/** + * Event sources + * @member {Array.} gateways-event-source-locations + */ + +EventForwarderCreateWebhook.prototype['gateways-event-source-locations'] = undefined; +/** + * Items Event sources + * @member {Array.} items-event-source-locations + */ + +EventForwarderCreateWebhook.prototype['items-event-source-locations'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EventForwarderCreateWebhook.prototype['json'] = false; +/** + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +EventForwarderCreateWebhook.prototype['key'] = undefined; +/** + * EventForwarder name + * @member {String} name + */ + +EventForwarderCreateWebhook.prototype['name'] = undefined; +/** + * Password for authentication relevant for user-pass auth-type + * @member {String} password + */ + +EventForwarderCreateWebhook.prototype['password'] = undefined; +/** + * Base64 encoded PEM RSA Private Key, relevant for certificate auth-type + * @member {String} private-key-data + */ + +EventForwarderCreateWebhook.prototype['private-key-data'] = undefined; +/** + * @member {String} runner-type + */ + +EventForwarderCreateWebhook.prototype['runner-type'] = undefined; +/** + * Base64 encoded PEM certificate of the Webhook + * @member {String} server-certificates + */ + +EventForwarderCreateWebhook.prototype['server-certificates'] = undefined; +/** + * Targets Event sources + * @member {Array.} targets-event-source-locations + */ + +EventForwarderCreateWebhook.prototype['targets-event-source-locations'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EventForwarderCreateWebhook.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EventForwarderCreateWebhook.prototype['uid-token'] = undefined; +/** + * Webhook URL + * @member {String} url + */ + +EventForwarderCreateWebhook.prototype['url'] = undefined; +/** + * Username for authentication relevant for user-pass auth-type + * @member {String} username + */ + +EventForwarderCreateWebhook.prototype['username'] = undefined; +var _default = EventForwarderCreateWebhook; +exports["default"] = _default; + +/***/ }), + +/***/ 22077: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EventForwarderDelete model module. + * @module model/EventForwarderDelete + * @version 3.6.3 + */ +var EventForwarderDelete = /*#__PURE__*/function () { + /** + * Constructs a new EventForwarderDelete. + * eventForwarderDelete is a command that delete event forwarder + * @alias module:model/EventForwarderDelete + * @param name {String} EventForwarder name + */ + function EventForwarderDelete(name) { + _classCallCheck(this, EventForwarderDelete); + + EventForwarderDelete.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EventForwarderDelete, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a EventForwarderDelete from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EventForwarderDelete} obj Optional instance to populate. + * @return {module:model/EventForwarderDelete} The populated EventForwarderDelete instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EventForwarderDelete(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return EventForwarderDelete; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +EventForwarderDelete.prototype['json'] = false; +/** + * EventForwarder name + * @member {String} name + */ + +EventForwarderDelete.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EventForwarderDelete.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EventForwarderDelete.prototype['uid-token'] = undefined; +var _default = EventForwarderDelete; +exports["default"] = _default; + +/***/ }), + +/***/ 54520: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EventForwarderDeleteOutput model module. + * @module model/EventForwarderDeleteOutput + * @version 3.6.3 + */ +var EventForwarderDeleteOutput = /*#__PURE__*/function () { + /** + * Constructs a new EventForwarderDeleteOutput. + * @alias module:model/EventForwarderDeleteOutput + */ + function EventForwarderDeleteOutput() { + _classCallCheck(this, EventForwarderDeleteOutput); + + EventForwarderDeleteOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EventForwarderDeleteOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EventForwarderDeleteOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EventForwarderDeleteOutput} obj Optional instance to populate. + * @return {module:model/EventForwarderDeleteOutput} The populated EventForwarderDeleteOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EventForwarderDeleteOutput(); + + if (data.hasOwnProperty('event_forwarder_name')) { + obj['event_forwarder_name'] = _ApiClient["default"].convertToType(data['event_forwarder_name'], 'String'); + } + } + + return obj; + } + }]); + + return EventForwarderDeleteOutput; +}(); +/** + * @member {String} event_forwarder_name + */ + + +EventForwarderDeleteOutput.prototype['event_forwarder_name'] = undefined; +var _default = EventForwarderDeleteOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 7172: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EventForwarderGet model module. + * @module model/EventForwarderGet + * @version 3.6.3 + */ +var EventForwarderGet = /*#__PURE__*/function () { + /** + * Constructs a new EventForwarderGet. + * eventForwarderGet is a command that get event forwarder + * @alias module:model/EventForwarderGet + * @param name {String} EventForwarder name + */ + function EventForwarderGet(name) { + _classCallCheck(this, EventForwarderGet); + + EventForwarderGet.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EventForwarderGet, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a EventForwarderGet from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EventForwarderGet} obj Optional instance to populate. + * @return {module:model/EventForwarderGet} The populated EventForwarderGet instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EventForwarderGet(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return EventForwarderGet; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +EventForwarderGet.prototype['json'] = false; +/** + * EventForwarder name + * @member {String} name + */ + +EventForwarderGet.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EventForwarderGet.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EventForwarderGet.prototype['uid-token'] = undefined; +var _default = EventForwarderGet; +exports["default"] = _default; + +/***/ }), + +/***/ 85749: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _NotiForwarder = _interopRequireDefault(__nccwpck_require__(21724)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EventForwarderGetOutput model module. + * @module model/EventForwarderGetOutput + * @version 3.6.3 + */ +var EventForwarderGetOutput = /*#__PURE__*/function () { + /** + * Constructs a new EventForwarderGetOutput. + * @alias module:model/EventForwarderGetOutput + */ + function EventForwarderGetOutput() { + _classCallCheck(this, EventForwarderGetOutput); + + EventForwarderGetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EventForwarderGetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a EventForwarderGetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EventForwarderGetOutput} obj Optional instance to populate. + * @return {module:model/EventForwarderGetOutput} The populated EventForwarderGetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EventForwarderGetOutput(); + + if (data.hasOwnProperty('event_forwarder')) { + obj['event_forwarder'] = _NotiForwarder["default"].constructFromObject(data['event_forwarder']); + } + } + + return obj; + } + }]); + + return EventForwarderGetOutput; +}(); +/** + * @member {module:model/NotiForwarder} event_forwarder + */ + + +EventForwarderGetOutput.prototype['event_forwarder'] = undefined; +var _default = EventForwarderGetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 18163: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EventForwarderUpdateEmail model module. + * @module model/EventForwarderUpdateEmail + * @version 3.6.3 + */ +var EventForwarderUpdateEmail = /*#__PURE__*/function () { + /** + * Constructs a new EventForwarderUpdateEmail. + * eventForwarderUpdateEmail is a command that updates email event forwarder + * @alias module:model/EventForwarderUpdateEmail + * @param gatewaysEventSourceLocations {Array.} Event sources + * @param name {String} EventForwarder name + */ + function EventForwarderUpdateEmail(gatewaysEventSourceLocations, name) { + _classCallCheck(this, EventForwarderUpdateEmail); + + EventForwarderUpdateEmail.initialize(this, gatewaysEventSourceLocations, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EventForwarderUpdateEmail, null, [{ + key: "initialize", + value: function initialize(obj, gatewaysEventSourceLocations, name) { + obj['gateways-event-source-locations'] = gatewaysEventSourceLocations; + obj['name'] = name; + } + /** + * Constructs a EventForwarderUpdateEmail from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EventForwarderUpdateEmail} obj Optional instance to populate. + * @return {module:model/EventForwarderUpdateEmail} The populated EventForwarderUpdateEmail instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EventForwarderUpdateEmail(); + + if (data.hasOwnProperty('auth-methods-event-source-locations')) { + obj['auth-methods-event-source-locations'] = _ApiClient["default"].convertToType(data['auth-methods-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('email-to')) { + obj['email-to'] = _ApiClient["default"].convertToType(data['email-to'], 'String'); + } + + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'String'); + } + + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); + } + + if (data.hasOwnProperty('gateways-event-source-locations')) { + obj['gateways-event-source-locations'] = _ApiClient["default"].convertToType(data['gateways-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('items-event-source-locations')) { + obj['items-event-source-locations'] = _ApiClient["default"].convertToType(data['items-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('override-url')) { + obj['override-url'] = _ApiClient["default"].convertToType(data['override-url'], 'String'); + } + + if (data.hasOwnProperty('targets-event-source-locations')) { + obj['targets-event-source-locations'] = _ApiClient["default"].convertToType(data['targets-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return EventForwarderUpdateEmail; +}(); +/** + * Auth Method Event sources + * @member {Array.} auth-methods-event-source-locations + */ + + +EventForwarderUpdateEmail.prototype['auth-methods-event-source-locations'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +EventForwarderUpdateEmail.prototype['description'] = undefined; +/** + * A comma seperated list of email addresses to send event to + * @member {String} email-to + */ + +EventForwarderUpdateEmail.prototype['email-to'] = undefined; +/** + * Enable/Disable Event Forwarder [true/false] + * @member {String} enable + * @default 'true' + */ + +EventForwarderUpdateEmail.prototype['enable'] = 'true'; +/** + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types + */ + +EventForwarderUpdateEmail.prototype['event-types'] = undefined; +/** + * Event sources + * @member {Array.} gateways-event-source-locations + */ + +EventForwarderUpdateEmail.prototype['gateways-event-source-locations'] = undefined; +/** + * Items Event sources + * @member {Array.} items-event-source-locations + */ + +EventForwarderUpdateEmail.prototype['items-event-source-locations'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EventForwarderUpdateEmail.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ + +EventForwarderUpdateEmail.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +EventForwarderUpdateEmail.prototype['key'] = undefined; +/** + * EventForwarder name + * @member {String} name + */ + +EventForwarderUpdateEmail.prototype['name'] = undefined; +/** + * New EventForwarder name + * @member {String} new-name + */ + +EventForwarderUpdateEmail.prototype['new-name'] = undefined; +/** + * Override Akeyless default URL with your Gateway url (port 18888) + * @member {String} override-url + */ + +EventForwarderUpdateEmail.prototype['override-url'] = undefined; +/** + * Targets Event sources + * @member {Array.} targets-event-source-locations + */ + +EventForwarderUpdateEmail.prototype['targets-event-source-locations'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EventForwarderUpdateEmail.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EventForwarderUpdateEmail.prototype['uid-token'] = undefined; +var _default = EventForwarderUpdateEmail; +exports["default"] = _default; + +/***/ }), + +/***/ 32026: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EventForwarderUpdateServiceNow model module. + * @module model/EventForwarderUpdateServiceNow + * @version 3.6.3 + */ +var EventForwarderUpdateServiceNow = /*#__PURE__*/function () { + /** + * Constructs a new EventForwarderUpdateServiceNow. + * eventForwarderUpdateServiceNow is a command that updates service now event forwarder + * @alias module:model/EventForwarderUpdateServiceNow + * @param gatewaysEventSourceLocations {Array.} Event sources + * @param name {String} EventForwarder name + */ + function EventForwarderUpdateServiceNow(gatewaysEventSourceLocations, name) { + _classCallCheck(this, EventForwarderUpdateServiceNow); + + EventForwarderUpdateServiceNow.initialize(this, gatewaysEventSourceLocations, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EventForwarderUpdateServiceNow, null, [{ + key: "initialize", + value: function initialize(obj, gatewaysEventSourceLocations, name) { + obj['gateways-event-source-locations'] = gatewaysEventSourceLocations; + obj['name'] = name; + } + /** + * Constructs a EventForwarderUpdateServiceNow from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EventForwarderUpdateServiceNow} obj Optional instance to populate. + * @return {module:model/EventForwarderUpdateServiceNow} The populated EventForwarderUpdateServiceNow instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EventForwarderUpdateServiceNow(); + + if (data.hasOwnProperty('admin-name')) { + obj['admin-name'] = _ApiClient["default"].convertToType(data['admin-name'], 'String'); + } + + if (data.hasOwnProperty('admin-pwd')) { + obj['admin-pwd'] = _ApiClient["default"].convertToType(data['admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('app-private-key-base64')) { + obj['app-private-key-base64'] = _ApiClient["default"].convertToType(data['app-private-key-base64'], 'String'); + } + + if (data.hasOwnProperty('auth-methods-event-source-locations')) { + obj['auth-methods-event-source-locations'] = _ApiClient["default"].convertToType(data['auth-methods-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('auth-type')) { + obj['auth-type'] = _ApiClient["default"].convertToType(data['auth-type'], 'String'); + } + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + } + + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'String'); + } + + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); + } + + if (data.hasOwnProperty('gateways-event-source-locations')) { + obj['gateways-event-source-locations'] = _ApiClient["default"].convertToType(data['gateways-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('items-event-source-locations')) { + obj['items-event-source-locations'] = _ApiClient["default"].convertToType(data['items-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('targets-event-source-locations')) { + obj['targets-event-source-locations'] = _ApiClient["default"].convertToType(data['targets-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-email')) { + obj['user-email'] = _ApiClient["default"].convertToType(data['user-email'], 'String'); + } + } + + return obj; + } + }]); + + return EventForwarderUpdateServiceNow; +}(); +/** + * Workstation Admin Name + * @member {String} admin-name + */ + + +EventForwarderUpdateServiceNow.prototype['admin-name'] = undefined; +/** + * Workstation Admin Password + * @member {String} admin-pwd + */ + +EventForwarderUpdateServiceNow.prototype['admin-pwd'] = undefined; +/** + * The RSA Private Key to use when connecting with jwt authentication + * @member {String} app-private-key-base64 + */ + +EventForwarderUpdateServiceNow.prototype['app-private-key-base64'] = undefined; +/** + * Auth Method Event sources + * @member {Array.} auth-methods-event-source-locations + */ + +EventForwarderUpdateServiceNow.prototype['auth-methods-event-source-locations'] = undefined; +/** + * The authentication type to use [user-pass/jwt] + * @member {String} auth-type + * @default 'user-pass' + */ + +EventForwarderUpdateServiceNow.prototype['auth-type'] = 'user-pass'; +/** + * The client ID to use when connecting with jwt authentication + * @member {String} client-id + */ + +EventForwarderUpdateServiceNow.prototype['client-id'] = undefined; +/** + * The client secret to use when connecting with jwt authentication + * @member {String} client-secret + */ + +EventForwarderUpdateServiceNow.prototype['client-secret'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +EventForwarderUpdateServiceNow.prototype['description'] = undefined; +/** + * Enable/Disable Event Forwarder [true/false] + * @member {String} enable + * @default 'true' + */ + +EventForwarderUpdateServiceNow.prototype['enable'] = 'true'; +/** + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types + */ + +EventForwarderUpdateServiceNow.prototype['event-types'] = undefined; +/** + * Event sources + * @member {Array.} gateways-event-source-locations + */ + +EventForwarderUpdateServiceNow.prototype['gateways-event-source-locations'] = undefined; +/** + * Workstation Host + * @member {String} host + */ + +EventForwarderUpdateServiceNow.prototype['host'] = undefined; +/** + * Items Event sources + * @member {Array.} items-event-source-locations + */ + +EventForwarderUpdateServiceNow.prototype['items-event-source-locations'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EventForwarderUpdateServiceNow.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ + +EventForwarderUpdateServiceNow.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +EventForwarderUpdateServiceNow.prototype['key'] = undefined; +/** + * EventForwarder name + * @member {String} name + */ + +EventForwarderUpdateServiceNow.prototype['name'] = undefined; +/** + * New EventForwarder name + * @member {String} new-name + */ + +EventForwarderUpdateServiceNow.prototype['new-name'] = undefined; +/** + * Targets Event sources + * @member {Array.} targets-event-source-locations + */ + +EventForwarderUpdateServiceNow.prototype['targets-event-source-locations'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EventForwarderUpdateServiceNow.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EventForwarderUpdateServiceNow.prototype['uid-token'] = undefined; +/** + * The user email to identify with when connecting with jwt authentication + * @member {String} user-email + */ + +EventForwarderUpdateServiceNow.prototype['user-email'] = undefined; +var _default = EventForwarderUpdateServiceNow; +exports["default"] = _default; + +/***/ }), + +/***/ 79995: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EventForwarderUpdateSlack model module. + * @module model/EventForwarderUpdateSlack + * @version 3.6.3 + */ +var EventForwarderUpdateSlack = /*#__PURE__*/function () { + /** + * Constructs a new EventForwarderUpdateSlack. + * eventForwarderUpdateSlack is a command that updates slack event forwarder + * @alias module:model/EventForwarderUpdateSlack + * @param gatewaysEventSourceLocations {Array.} Event sources + * @param name {String} EventForwarder name + * @param url {String} Slack Webhook URL + */ + function EventForwarderUpdateSlack(gatewaysEventSourceLocations, name, url) { + _classCallCheck(this, EventForwarderUpdateSlack); + + EventForwarderUpdateSlack.initialize(this, gatewaysEventSourceLocations, name, url); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EventForwarderUpdateSlack, null, [{ + key: "initialize", + value: function initialize(obj, gatewaysEventSourceLocations, name, url) { + obj['gateways-event-source-locations'] = gatewaysEventSourceLocations; + obj['name'] = name; + obj['url'] = url; + } + /** + * Constructs a EventForwarderUpdateSlack from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EventForwarderUpdateSlack} obj Optional instance to populate. + * @return {module:model/EventForwarderUpdateSlack} The populated EventForwarderUpdateSlack instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EventForwarderUpdateSlack(); + + if (data.hasOwnProperty('auth-methods-event-source-locations')) { + obj['auth-methods-event-source-locations'] = _ApiClient["default"].convertToType(data['auth-methods-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'String'); + } + + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); + } + + if (data.hasOwnProperty('gateways-event-source-locations')) { + obj['gateways-event-source-locations'] = _ApiClient["default"].convertToType(data['gateways-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('items-event-source-locations')) { + obj['items-event-source-locations'] = _ApiClient["default"].convertToType(data['items-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('targets-event-source-locations')) { + obj['targets-event-source-locations'] = _ApiClient["default"].convertToType(data['targets-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } + } + + return obj; + } + }]); + + return EventForwarderUpdateSlack; +}(); +/** + * Auth Method Event sources + * @member {Array.} auth-methods-event-source-locations + */ + + +EventForwarderUpdateSlack.prototype['auth-methods-event-source-locations'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +EventForwarderUpdateSlack.prototype['description'] = undefined; +/** + * Enable/Disable Event Forwarder [true/false] + * @member {String} enable + * @default 'true' + */ + +EventForwarderUpdateSlack.prototype['enable'] = 'true'; +/** + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types + */ + +EventForwarderUpdateSlack.prototype['event-types'] = undefined; +/** + * Event sources + * @member {Array.} gateways-event-source-locations + */ + +EventForwarderUpdateSlack.prototype['gateways-event-source-locations'] = undefined; +/** + * Items Event sources + * @member {Array.} items-event-source-locations + */ + +EventForwarderUpdateSlack.prototype['items-event-source-locations'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EventForwarderUpdateSlack.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ + +EventForwarderUpdateSlack.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +EventForwarderUpdateSlack.prototype['key'] = undefined; +/** + * EventForwarder name + * @member {String} name + */ + +EventForwarderUpdateSlack.prototype['name'] = undefined; +/** + * New EventForwarder name + * @member {String} new-name + */ + +EventForwarderUpdateSlack.prototype['new-name'] = undefined; +/** + * Targets Event sources + * @member {Array.} targets-event-source-locations + */ + +EventForwarderUpdateSlack.prototype['targets-event-source-locations'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EventForwarderUpdateSlack.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EventForwarderUpdateSlack.prototype['uid-token'] = undefined; +/** + * Slack Webhook URL + * @member {String} url + */ + +EventForwarderUpdateSlack.prototype['url'] = undefined; +var _default = EventForwarderUpdateSlack; +exports["default"] = _default; + +/***/ }), + +/***/ 46086: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The EventForwarderUpdateWebhook model module. + * @module model/EventForwarderUpdateWebhook + * @version 3.6.3 + */ +var EventForwarderUpdateWebhook = /*#__PURE__*/function () { + /** + * Constructs a new EventForwarderUpdateWebhook. + * eventForwarderUpdateWebhook is a command that updates webhook event forwarder + * @alias module:model/EventForwarderUpdateWebhook + * @param gatewaysEventSourceLocations {Array.} Event sources + * @param name {String} EventForwarder name + */ + function EventForwarderUpdateWebhook(gatewaysEventSourceLocations, name) { + _classCallCheck(this, EventForwarderUpdateWebhook); + + EventForwarderUpdateWebhook.initialize(this, gatewaysEventSourceLocations, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(EventForwarderUpdateWebhook, null, [{ + key: "initialize", + value: function initialize(obj, gatewaysEventSourceLocations, name) { + obj['gateways-event-source-locations'] = gatewaysEventSourceLocations; + obj['name'] = name; + } + /** + * Constructs a EventForwarderUpdateWebhook from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/EventForwarderUpdateWebhook} obj Optional instance to populate. + * @return {module:model/EventForwarderUpdateWebhook} The populated EventForwarderUpdateWebhook instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new EventForwarderUpdateWebhook(); + + if (data.hasOwnProperty('auth-methods-event-source-locations')) { + obj['auth-methods-event-source-locations'] = _ApiClient["default"].convertToType(data['auth-methods-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('auth-token')) { + obj['auth-token'] = _ApiClient["default"].convertToType(data['auth-token'], 'String'); + } + + if (data.hasOwnProperty('auth-type')) { + obj['auth-type'] = _ApiClient["default"].convertToType(data['auth-type'], 'String'); + } + + if (data.hasOwnProperty('client-cert-data')) { + obj['client-cert-data'] = _ApiClient["default"].convertToType(data['client-cert-data'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'String'); + } + + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); + } + + if (data.hasOwnProperty('gateways-event-source-locations')) { + obj['gateways-event-source-locations'] = _ApiClient["default"].convertToType(data['gateways-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('items-event-source-locations')) { + obj['items-event-source-locations'] = _ApiClient["default"].convertToType(data['items-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('private-key-data')) { + obj['private-key-data'] = _ApiClient["default"].convertToType(data['private-key-data'], 'String'); + } + + if (data.hasOwnProperty('server-certificates')) { + obj['server-certificates'] = _ApiClient["default"].convertToType(data['server-certificates'], 'String'); + } + + if (data.hasOwnProperty('targets-event-source-locations')) { + obj['targets-event-source-locations'] = _ApiClient["default"].convertToType(data['targets-event-source-locations'], ['String']); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + } + + return obj; + } + }]); + + return EventForwarderUpdateWebhook; +}(); +/** + * Auth Method Event sources + * @member {Array.} auth-methods-event-source-locations + */ + + +EventForwarderUpdateWebhook.prototype['auth-methods-event-source-locations'] = undefined; +/** + * Base64 encoded Token string for authentication type Token + * @member {String} auth-token + */ + +EventForwarderUpdateWebhook.prototype['auth-token'] = undefined; +/** + * The Webhook authentication type [user-pass, token, certificate] + * @member {String} auth-type + * @default 'user-pass' + */ + +EventForwarderUpdateWebhook.prototype['auth-type'] = 'user-pass'; +/** + * Base64 encoded PEM certificate, relevant for certificate auth-type + * @member {String} client-cert-data + */ + +EventForwarderUpdateWebhook.prototype['client-cert-data'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +EventForwarderUpdateWebhook.prototype['description'] = undefined; +/** + * Enable/Disable Event Forwarder [true/false] + * @member {String} enable + * @default 'true' + */ + +EventForwarderUpdateWebhook.prototype['enable'] = 'true'; +/** + * List of event types to notify about [request-access, certificate-pending-expiration, certificate-expired, certificate-provisioning-success, certificate-provisioning-failure, auth-method-pending-expiration, auth-method-expired, rotated-secret-success, rotated-secret-failure, dynamic-secret-failure, multi-auth-failure, uid-rotation-failure, apply-justification, email-auth-method-approved, usage, rotation-usage, gateway-inactive, static-secret-updated] + * @member {Array.} event-types + */ + +EventForwarderUpdateWebhook.prototype['event-types'] = undefined; +/** + * Event sources + * @member {Array.} gateways-event-source-locations + */ + +EventForwarderUpdateWebhook.prototype['gateways-event-source-locations'] = undefined; +/** + * Items Event sources + * @member {Array.} items-event-source-locations + */ + +EventForwarderUpdateWebhook.prototype['items-event-source-locations'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +EventForwarderUpdateWebhook.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ + +EventForwarderUpdateWebhook.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the EventForwarder secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +EventForwarderUpdateWebhook.prototype['key'] = undefined; +/** + * EventForwarder name + * @member {String} name + */ + +EventForwarderUpdateWebhook.prototype['name'] = undefined; +/** + * New EventForwarder name + * @member {String} new-name + */ + +EventForwarderUpdateWebhook.prototype['new-name'] = undefined; +/** + * Password for authentication relevant for user-pass auth-type + * @member {String} password + */ + +EventForwarderUpdateWebhook.prototype['password'] = undefined; +/** + * Base64 encoded PEM RSA Private Key, relevant for certificate auth-type + * @member {String} private-key-data + */ + +EventForwarderUpdateWebhook.prototype['private-key-data'] = undefined; +/** + * Base64 encoded PEM certificate of the Webhook + * @member {String} server-certificates + */ + +EventForwarderUpdateWebhook.prototype['server-certificates'] = undefined; +/** + * Targets Event sources + * @member {Array.} targets-event-source-locations + */ + +EventForwarderUpdateWebhook.prototype['targets-event-source-locations'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +EventForwarderUpdateWebhook.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +EventForwarderUpdateWebhook.prototype['uid-token'] = undefined; +/** + * Webhook URL + * @member {String} url + */ + +EventForwarderUpdateWebhook.prototype['url'] = undefined; +/** + * Username for authentication relevant for user-pass auth-type + * @member {String} username + */ + +EventForwarderUpdateWebhook.prototype['username'] = undefined; +var _default = EventForwarderUpdateWebhook; +exports["default"] = _default; + +/***/ }), + +/***/ 91005: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ExportClassicKey model module. + * @module model/ExportClassicKey + * @version 3.6.3 + */ +var ExportClassicKey = /*#__PURE__*/function () { + /** + * Constructs a new ExportClassicKey. + * ExportClassicKey is a command that returns the classic key material + * @alias module:model/ExportClassicKey + * @param name {String} ClassicKey name + */ + function ExportClassicKey(name) { + _classCallCheck(this, ExportClassicKey); + + ExportClassicKey.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ExportClassicKey, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a ExportClassicKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ExportClassicKey} obj Optional instance to populate. + * @return {module:model/ExportClassicKey} The populated ExportClassicKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ExportClassicKey(); + + if (data.hasOwnProperty('export-public-key')) { + obj['export-public-key'] = _ApiClient["default"].convertToType(data['export-public-key'], 'Boolean'); + } + + if (data.hasOwnProperty('ignore-cache')) { + obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return ExportClassicKey; +}(); +/** + * Use this option to output only public key + * @member {Boolean} export-public-key + * @default false + */ + + +ExportClassicKey.prototype['export-public-key'] = false; +/** + * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI + * @member {String} ignore-cache + * @default 'false' + */ + +ExportClassicKey.prototype['ignore-cache'] = 'false'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +ExportClassicKey.prototype['json'] = false; +/** + * ClassicKey name + * @member {String} name + */ + +ExportClassicKey.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +ExportClassicKey.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +ExportClassicKey.prototype['uid-token'] = undefined; +/** + * Classic key version + * @member {Number} version + */ + +ExportClassicKey.prototype['version'] = undefined; +var _default = ExportClassicKey; +exports["default"] = _default; + +/***/ }), + +/***/ 52248: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ExportClassicKeyOutput model module. + * @module model/ExportClassicKeyOutput + * @version 3.6.3 + */ +var ExportClassicKeyOutput = /*#__PURE__*/function () { + /** + * Constructs a new ExportClassicKeyOutput. + * @alias module:model/ExportClassicKeyOutput + */ + function ExportClassicKeyOutput() { + _classCallCheck(this, ExportClassicKeyOutput); + + ExportClassicKeyOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ExportClassicKeyOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ExportClassicKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ExportClassicKeyOutput} obj Optional instance to populate. + * @return {module:model/ExportClassicKeyOutput} The populated ExportClassicKeyOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ExportClassicKeyOutput(); + + if (data.hasOwnProperty('certificatePem')) { + obj['certificatePem'] = _ApiClient["default"].convertToType(data['certificatePem'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + } + + return obj; + } + }]); + + return ExportClassicKeyOutput; +}(); +/** + * @member {String} certificatePem + */ + + +ExportClassicKeyOutput.prototype['certificatePem'] = undefined; +/** + * @member {String} key + */ + +ExportClassicKeyOutput.prototype['key'] = undefined; +var _default = ExportClassicKeyOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 30079: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Extension model module. + * @module model/Extension + * @version 3.6.3 + */ +var Extension = /*#__PURE__*/function () { + /** + * Constructs a new Extension. + * @alias module:model/Extension + */ + function Extension() { + _classCallCheck(this, Extension); + + Extension.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Extension, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Extension from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Extension} obj Optional instance to populate. + * @return {module:model/Extension} The populated Extension instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Extension(); + + if (data.hasOwnProperty('Critical')) { + obj['Critical'] = _ApiClient["default"].convertToType(data['Critical'], 'Boolean'); + } + + if (data.hasOwnProperty('Name')) { + obj['Name'] = _ApiClient["default"].convertToType(data['Name'], 'String'); + } + + if (data.hasOwnProperty('Value')) { + obj['Value'] = _ApiClient["default"].convertToType(data['Value'], 'String'); + } + } + + return obj; + } + }]); + + return Extension; +}(); +/** + * @member {Boolean} Critical + */ + + +Extension.prototype['Critical'] = undefined; +/** + * @member {String} Name + */ + +Extension.prototype['Name'] = undefined; +/** + * @member {String} Value + */ + +Extension.prototype['Value'] = undefined; +var _default = Extension; +exports["default"] = _default; + +/***/ }), + +/***/ 80238: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ExternalKMSKeyId model module. + * @module model/ExternalKMSKeyId + * @version 3.6.3 + */ +var ExternalKMSKeyId = /*#__PURE__*/function () { + /** + * Constructs a new ExternalKMSKeyId. + * @alias module:model/ExternalKMSKeyId + */ + function ExternalKMSKeyId() { + _classCallCheck(this, ExternalKMSKeyId); + + ExternalKMSKeyId.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ExternalKMSKeyId, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ExternalKMSKeyId from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ExternalKMSKeyId} obj Optional instance to populate. + * @return {module:model/ExternalKMSKeyId} The populated ExternalKMSKeyId instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ExternalKMSKeyId(); + + if (data.hasOwnProperty('key_id')) { + obj['key_id'] = _ApiClient["default"].convertToType(data['key_id'], 'String'); + } + + if (data.hasOwnProperty('key_reference')) { + obj['key_reference'] = _ApiClient["default"].convertToType(data['key_reference'], 'String'); + } + } + + return obj; + } + }]); + + return ExternalKMSKeyId; +}(); +/** + * @member {String} key_id + */ + + +ExternalKMSKeyId.prototype['key_id'] = undefined; +/** + * @member {String} key_reference + */ + +ExternalKMSKeyId.prototype['key_reference'] = undefined; +var _default = ExternalKMSKeyId; +exports["default"] = _default; + +/***/ }), + +/***/ 94515: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GCPAccessRules model module. + * @module model/GCPAccessRules + * @version 3.6.3 + */ +var GCPAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new GCPAccessRules. + * @alias module:model/GCPAccessRules + */ + function GCPAccessRules() { + _classCallCheck(this, GCPAccessRules); + + GCPAccessRules.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GCPAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GCPAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GCPAccessRules} obj Optional instance to populate. + * @return {module:model/GCPAccessRules} The populated GCPAccessRules instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GCPAccessRules(); + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } + + if (data.hasOwnProperty('bound_labels')) { + obj['bound_labels'] = _ApiClient["default"].convertToType(data['bound_labels'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('bound_projects')) { + obj['bound_projects'] = _ApiClient["default"].convertToType(data['bound_projects'], ['String']); + } + + if (data.hasOwnProperty('bound_regions')) { + obj['bound_regions'] = _ApiClient["default"].convertToType(data['bound_regions'], ['String']); + } + + if (data.hasOwnProperty('bound_service_accounts')) { + obj['bound_service_accounts'] = _ApiClient["default"].convertToType(data['bound_service_accounts'], ['String']); + } + + if (data.hasOwnProperty('bound_zones')) { + obj['bound_zones'] = _ApiClient["default"].convertToType(data['bound_zones'], ['String']); + } + + if (data.hasOwnProperty('service_account')) { + obj['service_account'] = _ApiClient["default"].convertToType(data['service_account'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + } + + return obj; + } + }]); + + return GCPAccessRules; +}(); +/** + * The audience in the JWT + * @member {String} audience + * @default 'akeyless.io' + */ + + +GCPAccessRules.prototype['audience'] = 'akeyless.io'; +/** + * A map of GCP labels formatted as \"key:value\" strings that must be set on authorized GCE instances. TODO: Because GCP labels are not currently ACL'd .... + * @member {Object.} bound_labels + */ + +GCPAccessRules.prototype['bound_labels'] = undefined; +/** + * Human and Machine authentication section Array of GCP project IDs. Only entities belonging to any of the provided projects can authenticate. + * @member {Array.} bound_projects + */ + +GCPAccessRules.prototype['bound_projects'] = undefined; +/** + * List of regions that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored. + * @member {Array.} bound_regions + */ + +GCPAccessRules.prototype['bound_regions'] = undefined; +/** + * List of service accounts the service account must be part of in order to be authenticated + * @member {Array.} bound_service_accounts + */ + +GCPAccessRules.prototype['bound_service_accounts'] = undefined; +/** + * === Machine authentication section === List of zones that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone. + * @member {Array.} bound_zones + */ + +GCPAccessRules.prototype['bound_zones'] = undefined; +/** + * ServiceAccount holds the credentials file contents to be used by Akeyless to validate IAM (Human) and GCE (Machine) logins against GCP base64 encoded string + * @member {String} service_account + */ + +GCPAccessRules.prototype['service_account'] = undefined; +/** + * @member {String} type + */ + +GCPAccessRules.prototype['type'] = undefined; +var _default = GCPAccessRules; +exports["default"] = _default; + +/***/ }), + +/***/ 15080: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GCPPayload model module. + * @module model/GCPPayload + * @version 3.6.3 + */ +var GCPPayload = /*#__PURE__*/function () { + /** + * Constructs a new GCPPayload. + * @alias module:model/GCPPayload + */ + function GCPPayload() { + _classCallCheck(this, GCPPayload); + + GCPPayload.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GCPPayload, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GCPPayload from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GCPPayload} obj Optional instance to populate. + * @return {module:model/GCPPayload} The populated GCPPayload instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GCPPayload(); + + if (data.hasOwnProperty('gcp_credentials_json')) { + obj['gcp_credentials_json'] = _ApiClient["default"].convertToType(data['gcp_credentials_json'], 'String'); + } + } + + return obj; + } + }]); + + return GCPPayload; +}(); +/** + * @member {String} gcp_credentials_json + */ + + +GCPPayload.prototype['gcp_credentials_json'] = undefined; +var _default = GCPPayload; +exports["default"] = _default; + +/***/ }), + +/***/ 40859: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _GCPPayload = _interopRequireDefault(__nccwpck_require__(15080)); + +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GCPSecretsMigration model module. + * @module model/GCPSecretsMigration + * @version 3.6.3 + */ +var GCPSecretsMigration = /*#__PURE__*/function () { + /** + * Constructs a new GCPSecretsMigration. + * @alias module:model/GCPSecretsMigration + */ + function GCPSecretsMigration() { + _classCallCheck(this, GCPSecretsMigration); + + GCPSecretsMigration.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GCPSecretsMigration, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GCPSecretsMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GCPSecretsMigration} obj Optional instance to populate. + * @return {module:model/GCPSecretsMigration} The populated GCPSecretsMigration instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GCPSecretsMigration(); + + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _GCPPayload["default"].constructFromObject(data['payload']); + } + } + + return obj; + } + }]); + + return GCPSecretsMigration; +}(); +/** + * @member {module:model/MigrationGeneral} general + */ + + +GCPSecretsMigration.prototype['general'] = undefined; +/** + * @member {module:model/GCPPayload} payload + */ + +GCPSecretsMigration.prototype['payload'] = undefined; +var _default = GCPSecretsMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 13006: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GKETargetDetails model module. + * @module model/GKETargetDetails + * @version 3.6.3 + */ +var GKETargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new GKETargetDetails. + * GKETargetDetails defines details related to connecting to a GKE (Google Kubernetes Engine) target + * @alias module:model/GKETargetDetails + */ + function GKETargetDetails() { + _classCallCheck(this, GKETargetDetails); + + GKETargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GKETargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GKETargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GKETargetDetails} obj Optional instance to populate. + * @return {module:model/GKETargetDetails} The populated GKETargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GKETargetDetails(); + + if (data.hasOwnProperty('gke_cluster_ca_certificate')) { + obj['gke_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['gke_cluster_ca_certificate'], 'String'); + } + + if (data.hasOwnProperty('gke_cluster_endpoint')) { + obj['gke_cluster_endpoint'] = _ApiClient["default"].convertToType(data['gke_cluster_endpoint'], 'String'); + } + + if (data.hasOwnProperty('gke_cluster_name')) { + obj['gke_cluster_name'] = _ApiClient["default"].convertToType(data['gke_cluster_name'], 'String'); + } + + if (data.hasOwnProperty('gke_service_account_key')) { + obj['gke_service_account_key'] = _ApiClient["default"].convertToType(data['gke_service_account_key'], 'String'); + } + + if (data.hasOwnProperty('gke_service_account_name')) { + obj['gke_service_account_name'] = _ApiClient["default"].convertToType(data['gke_service_account_name'], 'String'); + } + + if (data.hasOwnProperty('use_gw_cloud_identity')) { + obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return GKETargetDetails; +}(); +/** + * @member {String} gke_cluster_ca_certificate + */ + + +GKETargetDetails.prototype['gke_cluster_ca_certificate'] = undefined; +/** + * @member {String} gke_cluster_endpoint + */ + +GKETargetDetails.prototype['gke_cluster_endpoint'] = undefined; +/** + * @member {String} gke_cluster_name + */ + +GKETargetDetails.prototype['gke_cluster_name'] = undefined; +/** + * @member {String} gke_service_account_key + */ + +GKETargetDetails.prototype['gke_service_account_key'] = undefined; +/** + * @member {String} gke_service_account_name + */ + +GKETargetDetails.prototype['gke_service_account_name'] = undefined; +/** + * @member {Boolean} use_gw_cloud_identity + */ + +GKETargetDetails.prototype['use_gw_cloud_identity'] = undefined; +var _default = GKETargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 27208: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayBasicInfo model module. + * @module model/GatewayBasicInfo + * @version 3.6.3 + */ +var GatewayBasicInfo = /*#__PURE__*/function () { + /** + * Constructs a new GatewayBasicInfo. + * @alias module:model/GatewayBasicInfo + */ + function GatewayBasicInfo() { + _classCallCheck(this, GatewayBasicInfo); + + GatewayBasicInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayBasicInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayBasicInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayBasicInfo} obj Optional instance to populate. + * @return {module:model/GatewayBasicInfo} The populated GatewayBasicInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayBasicInfo(); + + if (data.hasOwnProperty('cluster_display_name')) { + obj['cluster_display_name'] = _ApiClient["default"].convertToType(data['cluster_display_name'], 'String'); + } + + if (data.hasOwnProperty('cluster_id')) { + obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'Number'); + } + + if (data.hasOwnProperty('cluster_name')) { + obj['cluster_name'] = _ApiClient["default"].convertToType(data['cluster_name'], 'String'); + } + + if (data.hasOwnProperty('cluster_url')) { + obj['cluster_url'] = _ApiClient["default"].convertToType(data['cluster_url'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayBasicInfo; +}(); +/** + * @member {String} cluster_display_name + */ + + +GatewayBasicInfo.prototype['cluster_display_name'] = undefined; +/** + * @member {Number} cluster_id + */ + +GatewayBasicInfo.prototype['cluster_id'] = undefined; +/** + * @member {String} cluster_name + */ + +GatewayBasicInfo.prototype['cluster_name'] = undefined; +/** + * @member {String} cluster_url + */ + +GatewayBasicInfo.prototype['cluster_url'] = undefined; +var _default = GatewayBasicInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 17300: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateAllowedAccess model module. + * @module model/GatewayCreateAllowedAccess + * @version 3.6.3 + */ +var GatewayCreateAllowedAccess = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateAllowedAccess. + * gatewayCreateAllowedAccess is a command that creates allowed access in Gator + * @alias module:model/GatewayCreateAllowedAccess + * @param accessId {String} Access ID The access id to be attached to this allowed access. Auth method with this access id should already exist. + * @param name {String} Allowed access name + */ + function GatewayCreateAllowedAccess(accessId, name) { + _classCallCheck(this, GatewayCreateAllowedAccess); + + GatewayCreateAllowedAccess.initialize(this, accessId, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateAllowedAccess, null, [{ + key: "initialize", + value: function initialize(obj, accessId, name) { + obj['access-id'] = accessId; + obj['name'] = name; + } + /** + * Constructs a GatewayCreateAllowedAccess from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateAllowedAccess} obj Optional instance to populate. + * @return {module:model/GatewayCreateAllowedAccess} The populated GatewayCreateAllowedAccess instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateAllowedAccess(); + + if (data.hasOwnProperty('SubClaimsCaseInsensitive')) { + obj['SubClaimsCaseInsensitive'] = _ApiClient["default"].convertToType(data['SubClaimsCaseInsensitive'], 'Boolean'); + } + + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('case-sensitive')) { + obj['case-sensitive'] = _ApiClient["default"].convertToType(data['case-sensitive'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('permissions')) { + obj['permissions'] = _ApiClient["default"].convertToType(data['permissions'], 'String'); + } + + if (data.hasOwnProperty('sub-claims')) { + obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateAllowedAccess; +}(); +/** + * @member {Boolean} SubClaimsCaseInsensitive + */ + + +GatewayCreateAllowedAccess.prototype['SubClaimsCaseInsensitive'] = undefined; +/** + * Access ID The access id to be attached to this allowed access. Auth method with this access id should already exist. + * @member {String} access-id + */ + +GatewayCreateAllowedAccess.prototype['access-id'] = undefined; +/** + * Treat sub claims as case-sensitive [true/false] + * @member {String} case-sensitive + * @default 'true' + */ + +GatewayCreateAllowedAccess.prototype['case-sensitive'] = 'true'; +/** + * Allowed access description + * @member {String} description + */ + +GatewayCreateAllowedAccess.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateAllowedAccess.prototype['json'] = false; +/** + * Allowed access name + * @member {String} name + */ + +GatewayCreateAllowedAccess.prototype['name'] = undefined; +/** + * Permissions Comma-seperated list of permissions for this allowed access. Available permissions: [defaults,targets,classic_keys,automatic_migration,ldap_auth,dynamic_secret,k8s_auth,log_forwarding,zero_knowledge_encryption,rotated_secret,caching,event_forwarding,admin,kmip,general] + * @member {String} permissions + */ + +GatewayCreateAllowedAccess.prototype['permissions'] = undefined; +/** + * Sub claims key/val of sub claims, e.g group=admins,developers + * @member {Object.} sub-claims + */ + +GatewayCreateAllowedAccess.prototype['sub-claims'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateAllowedAccess.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateAllowedAccess.prototype['uid-token'] = undefined; +var _default = GatewayCreateAllowedAccess; +exports["default"] = _default; + +/***/ }), + +/***/ 30862: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateK8SAuthConfig model module. + * @module model/GatewayCreateK8SAuthConfig + * @version 3.6.3 + */ +var GatewayCreateK8SAuthConfig = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateK8SAuthConfig. + * gatewayCreateK8SAuth is a command that creates k8s auth config + * @alias module:model/GatewayCreateK8SAuthConfig + * @param accessId {String} The access ID of the Kubernetes auth method + * @param k8sHost {String} The URL of the kubernetes API server + * @param name {String} K8S Auth config name + * @param signingKey {String} The private key (base64 encoded) associated with the public key defined in the Kubernetes auth + */ + function GatewayCreateK8SAuthConfig(accessId, k8sHost, name, signingKey) { + _classCallCheck(this, GatewayCreateK8SAuthConfig); + + GatewayCreateK8SAuthConfig.initialize(this, accessId, k8sHost, name, signingKey); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateK8SAuthConfig, null, [{ + key: "initialize", + value: function initialize(obj, accessId, k8sHost, name, signingKey) { + obj['access-id'] = accessId; + obj['k8s-host'] = k8sHost; + obj['name'] = name; + obj['signing-key'] = signingKey; + } + /** + * Constructs a GatewayCreateK8SAuthConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateK8SAuthConfig} obj Optional instance to populate. + * @return {module:model/GatewayCreateK8SAuthConfig} The populated GatewayCreateK8SAuthConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateK8SAuthConfig(); + + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('cluster-api-type')) { + obj['cluster-api-type'] = _ApiClient["default"].convertToType(data['cluster-api-type'], 'String'); + } + + if (data.hasOwnProperty('config-encryption-key-name')) { + obj['config-encryption-key-name'] = _ApiClient["default"].convertToType(data['config-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('disable-issuer-validation')) { + obj['disable-issuer-validation'] = _ApiClient["default"].convertToType(data['disable-issuer-validation'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-auth-type')) { + obj['k8s-auth-type'] = _ApiClient["default"].convertToType(data['k8s-auth-type'], 'String'); + } + + if (data.hasOwnProperty('k8s-ca-cert')) { + obj['k8s-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('k8s-client-certificate')) { + obj['k8s-client-certificate'] = _ApiClient["default"].convertToType(data['k8s-client-certificate'], 'String'); + } + + if (data.hasOwnProperty('k8s-client-key')) { + obj['k8s-client-key'] = _ApiClient["default"].convertToType(data['k8s-client-key'], 'String'); + } + + if (data.hasOwnProperty('k8s-host')) { + obj['k8s-host'] = _ApiClient["default"].convertToType(data['k8s-host'], 'String'); + } + + if (data.hasOwnProperty('k8s-issuer')) { + obj['k8s-issuer'] = _ApiClient["default"].convertToType(data['k8s-issuer'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('rancher-api-key')) { + obj['rancher-api-key'] = _ApiClient["default"].convertToType(data['rancher-api-key'], 'String'); + } + + if (data.hasOwnProperty('rancher-cluster-id')) { + obj['rancher-cluster-id'] = _ApiClient["default"].convertToType(data['rancher-cluster-id'], 'String'); + } + + if (data.hasOwnProperty('signing-key')) { + obj['signing-key'] = _ApiClient["default"].convertToType(data['signing-key'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('token-exp')) { + obj['token-exp'] = _ApiClient["default"].convertToType(data['token-exp'], 'Number'); + } + + if (data.hasOwnProperty('token-reviewer-jwt')) { + obj['token-reviewer-jwt'] = _ApiClient["default"].convertToType(data['token-reviewer-jwt'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-service-account')) { + obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + } + } + + return obj; + } + }]); + + return GatewayCreateK8SAuthConfig; +}(); +/** + * The access ID of the Kubernetes auth method + * @member {String} access-id + */ + + +GatewayCreateK8SAuthConfig.prototype['access-id'] = undefined; +/** + * Cluster access type. options: [native_k8s, rancher] + * @member {String} cluster-api-type + * @default 'native_k8s' + */ + +GatewayCreateK8SAuthConfig.prototype['cluster-api-type'] = 'native_k8s'; +/** + * Config encryption key + * @member {String} config-encryption-key-name + */ + +GatewayCreateK8SAuthConfig.prototype['config-encryption-key-name'] = undefined; +/** + * Disable issuer validation [true/false] + * @member {String} disable-issuer-validation + */ + +GatewayCreateK8SAuthConfig.prototype['disable-issuer-validation'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateK8SAuthConfig.prototype['json'] = false; +/** + * K8S auth type [token/certificate]. (relevant for \"native_k8s\" only) + * @member {String} k8s-auth-type + * @default 'token' + */ + +GatewayCreateK8SAuthConfig.prototype['k8s-auth-type'] = 'token'; +/** + * The CA Certificate (base64 encoded) to use to call into the kubernetes API server + * @member {String} k8s-ca-cert + */ + +GatewayCreateK8SAuthConfig.prototype['k8s-ca-cert'] = undefined; +/** + * Content of the k8 client certificate (PEM format) in a Base64 format (relevant for \"native_k8s\" only) + * @member {String} k8s-client-certificate + */ + +GatewayCreateK8SAuthConfig.prototype['k8s-client-certificate'] = undefined; +/** + * Content of the k8 client private key (PEM format) in a Base64 format (relevant for \"native_k8s\" only) + * @member {String} k8s-client-key + */ + +GatewayCreateK8SAuthConfig.prototype['k8s-client-key'] = undefined; +/** + * The URL of the kubernetes API server + * @member {String} k8s-host + */ + +GatewayCreateK8SAuthConfig.prototype['k8s-host'] = undefined; +/** + * The Kubernetes JWT issuer name. K8SIssuer is the claim that specifies who issued the Kubernetes token + * @member {String} k8s-issuer + * @default 'kubernetes/serviceaccount' + */ + +GatewayCreateK8SAuthConfig.prototype['k8s-issuer'] = 'kubernetes/serviceaccount'; +/** + * K8S Auth config name + * @member {String} name + */ + +GatewayCreateK8SAuthConfig.prototype['name'] = undefined; +/** + * The api key used to access the TokenReview API to validate other JWTs (relevant for \"rancher\" only) + * @member {String} rancher-api-key + */ + +GatewayCreateK8SAuthConfig.prototype['rancher-api-key'] = undefined; +/** + * The cluster id as define in rancher (relevant for \"rancher\" only) + * @member {String} rancher-cluster-id + */ + +GatewayCreateK8SAuthConfig.prototype['rancher-cluster-id'] = undefined; +/** + * The private key (base64 encoded) associated with the public key defined in the Kubernetes auth + * @member {String} signing-key + */ + +GatewayCreateK8SAuthConfig.prototype['signing-key'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateK8SAuthConfig.prototype['token'] = undefined; +/** + * Time in seconds of expiration of the Akeyless Kube Auth Method token + * @member {Number} token-exp + * @default 300 + */ + +GatewayCreateK8SAuthConfig.prototype['token-exp'] = 300; +/** + * A Kubernetes service account JWT used to access the TokenReview API to validate other JWTs (relevant for \"native_k8s\" only). If not set, the JWT submitted in the authentication process will be used to access the Kubernetes TokenReview API. + * @member {String} token-reviewer-jwt + */ + +GatewayCreateK8SAuthConfig.prototype['token-reviewer-jwt'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateK8SAuthConfig.prototype['uid-token'] = undefined; +/** + * Use the GW's service account + * @member {Boolean} use-gw-service-account + */ + +GatewayCreateK8SAuthConfig.prototype['use-gw-service-account'] = undefined; +var _default = GatewayCreateK8SAuthConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 38267: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _ConfigChange = _interopRequireDefault(__nccwpck_require__(47166)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateK8SAuthConfigOutput model module. + * @module model/GatewayCreateK8SAuthConfigOutput + * @version 3.6.3 + */ +var GatewayCreateK8SAuthConfigOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateK8SAuthConfigOutput. + * @alias module:model/GatewayCreateK8SAuthConfigOutput + */ + function GatewayCreateK8SAuthConfigOutput() { + _classCallCheck(this, GatewayCreateK8SAuthConfigOutput); + + GatewayCreateK8SAuthConfigOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateK8SAuthConfigOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateK8SAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateK8SAuthConfigOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateK8SAuthConfigOutput} The populated GatewayCreateK8SAuthConfigOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateK8SAuthConfigOutput(); + + if (data.hasOwnProperty('cluster_id')) { + obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'String'); + } + + if (data.hasOwnProperty('parts_change')) { + obj['parts_change'] = _ConfigChange["default"].constructFromObject(data['parts_change']); + } + + if (data.hasOwnProperty('total_hash')) { + obj['total_hash'] = _ApiClient["default"].convertToType(data['total_hash'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateK8SAuthConfigOutput; +}(); +/** + * @member {String} cluster_id + */ + + +GatewayCreateK8SAuthConfigOutput.prototype['cluster_id'] = undefined; +/** + * @member {module:model/ConfigChange} parts_change + */ + +GatewayCreateK8SAuthConfigOutput.prototype['parts_change'] = undefined; +/** + * @member {String} total_hash + */ + +GatewayCreateK8SAuthConfigOutput.prototype['total_hash'] = undefined; +var _default = GatewayCreateK8SAuthConfigOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 23658: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateMigration model module. + * @module model/GatewayCreateMigration + * @version 3.6.3 + */ +var GatewayCreateMigration = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateMigration. + * gatewayCreateMigration is a command that create migration + * @alias module:model/GatewayCreateMigration + * @param name {String} Migration name + * @param siTargetName {String} SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration) + * @param siUsersPathTemplate {String} Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration) + * @param targetLocation {String} Target location in Akeyless for imported secrets + */ + function GatewayCreateMigration(name, siTargetName, siUsersPathTemplate, targetLocation) { + _classCallCheck(this, GatewayCreateMigration); + + GatewayCreateMigration.initialize(this, name, siTargetName, siUsersPathTemplate, targetLocation); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateMigration, null, [{ + key: "initialize", + value: function initialize(obj, name, siTargetName, siUsersPathTemplate, targetLocation) { + obj['name'] = name; + obj['si-target-name'] = siTargetName; + obj['si-users-path-template'] = siUsersPathTemplate; + obj['target-location'] = targetLocation; + } + /** + * Constructs a GatewayCreateMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateMigration} obj Optional instance to populate. + * @return {module:model/GatewayCreateMigration} The populated GatewayCreateMigration instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateMigration(); + + if (data.hasOwnProperty('1password-email')) { + obj['1password-email'] = _ApiClient["default"].convertToType(data['1password-email'], 'String'); + } + + if (data.hasOwnProperty('1password-password')) { + obj['1password-password'] = _ApiClient["default"].convertToType(data['1password-password'], 'String'); + } + + if (data.hasOwnProperty('1password-secret-key')) { + obj['1password-secret-key'] = _ApiClient["default"].convertToType(data['1password-secret-key'], 'String'); + } + + if (data.hasOwnProperty('1password-url')) { + obj['1password-url'] = _ApiClient["default"].convertToType(data['1password-url'], 'String'); + } + + if (data.hasOwnProperty('1password-vaults')) { + obj['1password-vaults'] = _ApiClient["default"].convertToType(data['1password-vaults'], ['String']); + } + + if (data.hasOwnProperty('ad-discover-services')) { + obj['ad-discover-services'] = _ApiClient["default"].convertToType(data['ad-discover-services'], 'String'); + } + + if (data.hasOwnProperty('ad-discovery-types')) { + obj['ad-discovery-types'] = _ApiClient["default"].convertToType(data['ad-discovery-types'], ['String']); + } + + if (data.hasOwnProperty('ad-os-filter')) { + obj['ad-os-filter'] = _ApiClient["default"].convertToType(data['ad-os-filter'], 'String'); + } + + if (data.hasOwnProperty('ad-ssh-port')) { + obj['ad-ssh-port'] = _ApiClient["default"].convertToType(data['ad-ssh-port'], 'String'); + } + + if (data.hasOwnProperty('ad-target-format')) { + obj['ad-target-format'] = _ApiClient["default"].convertToType(data['ad-target-format'], 'String'); + } + + if (data.hasOwnProperty('ad-targets-type')) { + obj['ad-targets-type'] = _ApiClient["default"].convertToType(data['ad-targets-type'], 'String'); + } + + if (data.hasOwnProperty('ad-winrm-over-http')) { + obj['ad-winrm-over-http'] = _ApiClient["default"].convertToType(data['ad-winrm-over-http'], 'String'); + } + + if (data.hasOwnProperty('ad-winrm-port')) { + obj['ad-winrm-port'] = _ApiClient["default"].convertToType(data['ad-winrm-port'], 'String'); + } + + if (data.hasOwnProperty('ad_auto_rotate')) { + obj['ad_auto_rotate'] = _ApiClient["default"].convertToType(data['ad_auto_rotate'], 'String'); + } + + if (data.hasOwnProperty('ad_computer_base_dn')) { + obj['ad_computer_base_dn'] = _ApiClient["default"].convertToType(data['ad_computer_base_dn'], 'String'); + } + + if (data.hasOwnProperty('ad_discover_local_users')) { + obj['ad_discover_local_users'] = _ApiClient["default"].convertToType(data['ad_discover_local_users'], 'String'); + } + + if (data.hasOwnProperty('ad_domain_name')) { + obj['ad_domain_name'] = _ApiClient["default"].convertToType(data['ad_domain_name'], 'String'); + } + + if (data.hasOwnProperty('ad_domain_users_path_template')) { + obj['ad_domain_users_path_template'] = _ApiClient["default"].convertToType(data['ad_domain_users_path_template'], 'String'); + } + + if (data.hasOwnProperty('ad_local_users_ignore')) { + obj['ad_local_users_ignore'] = _ApiClient["default"].convertToType(data['ad_local_users_ignore'], 'String'); + } + + if (data.hasOwnProperty('ad_local_users_path_template')) { + obj['ad_local_users_path_template'] = _ApiClient["default"].convertToType(data['ad_local_users_path_template'], 'String'); + } + + if (data.hasOwnProperty('ad_rotation_hour')) { + obj['ad_rotation_hour'] = _ApiClient["default"].convertToType(data['ad_rotation_hour'], 'Number'); + } + + if (data.hasOwnProperty('ad_rotation_interval')) { + obj['ad_rotation_interval'] = _ApiClient["default"].convertToType(data['ad_rotation_interval'], 'Number'); + } + + if (data.hasOwnProperty('ad_sra_enable_rdp')) { + obj['ad_sra_enable_rdp'] = _ApiClient["default"].convertToType(data['ad_sra_enable_rdp'], 'String'); + } + + if (data.hasOwnProperty('ad_target_name')) { + obj['ad_target_name'] = _ApiClient["default"].convertToType(data['ad_target_name'], 'String'); + } + + if (data.hasOwnProperty('ad_targets_path_template')) { + obj['ad_targets_path_template'] = _ApiClient["default"].convertToType(data['ad_targets_path_template'], 'String'); + } + + if (data.hasOwnProperty('ad_user_base_dn')) { + obj['ad_user_base_dn'] = _ApiClient["default"].convertToType(data['ad_user_base_dn'], 'String'); + } + + if (data.hasOwnProperty('ad_user_groups')) { + obj['ad_user_groups'] = _ApiClient["default"].convertToType(data['ad_user_groups'], 'String'); + } + + if (data.hasOwnProperty('aws-key')) { + obj['aws-key'] = _ApiClient["default"].convertToType(data['aws-key'], 'String'); + } + + if (data.hasOwnProperty('aws-key-id')) { + obj['aws-key-id'] = _ApiClient["default"].convertToType(data['aws-key-id'], 'String'); + } + + if (data.hasOwnProperty('aws-region')) { + obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); + } + + if (data.hasOwnProperty('azure-client-id')) { + obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); + } + + if (data.hasOwnProperty('azure-kv-name')) { + obj['azure-kv-name'] = _ApiClient["default"].convertToType(data['azure-kv-name'], 'String'); + } + + if (data.hasOwnProperty('azure-secret')) { + obj['azure-secret'] = _ApiClient["default"].convertToType(data['azure-secret'], 'String'); + } + + if (data.hasOwnProperty('azure-tenant-id')) { + obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); + } + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } + + if (data.hasOwnProperty('hashi-json')) { + obj['hashi-json'] = _ApiClient["default"].convertToType(data['hashi-json'], 'String'); + } + + if (data.hasOwnProperty('hashi-ns')) { + obj['hashi-ns'] = _ApiClient["default"].convertToType(data['hashi-ns'], ['String']); + } + + if (data.hasOwnProperty('hashi-token')) { + obj['hashi-token'] = _ApiClient["default"].convertToType(data['hashi-token'], 'String'); + } + + if (data.hasOwnProperty('hashi-url')) { + obj['hashi-url'] = _ApiClient["default"].convertToType(data['hashi-url'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-ca-certificate')) { + obj['k8s-ca-certificate'] = _ApiClient["default"].convertToType(data['k8s-ca-certificate'], ['Number']); + } + + if (data.hasOwnProperty('k8s-client-certificate')) { + obj['k8s-client-certificate'] = _ApiClient["default"].convertToType(data['k8s-client-certificate'], ['Number']); + } + + if (data.hasOwnProperty('k8s-client-key')) { + obj['k8s-client-key'] = _ApiClient["default"].convertToType(data['k8s-client-key'], ['Number']); + } + + if (data.hasOwnProperty('k8s-namespace')) { + obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + } + + if (data.hasOwnProperty('k8s-password')) { + obj['k8s-password'] = _ApiClient["default"].convertToType(data['k8s-password'], 'String'); + } + + if (data.hasOwnProperty('k8s-skip-system')) { + obj['k8s-skip-system'] = _ApiClient["default"].convertToType(data['k8s-skip-system'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-token')) { + obj['k8s-token'] = _ApiClient["default"].convertToType(data['k8s-token'], 'String'); + } + + if (data.hasOwnProperty('k8s-url')) { + obj['k8s-url'] = _ApiClient["default"].convertToType(data['k8s-url'], 'String'); + } + + if (data.hasOwnProperty('k8s-username')) { + obj['k8s-username'] = _ApiClient["default"].convertToType(data['k8s-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('protection-key')) { + obj['protection-key'] = _ApiClient["default"].convertToType(data['protection-key'], 'String'); + } + + if (data.hasOwnProperty('si-auto-rotate')) { + obj['si-auto-rotate'] = _ApiClient["default"].convertToType(data['si-auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('si-rotation-hour')) { + obj['si-rotation-hour'] = _ApiClient["default"].convertToType(data['si-rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('si-rotation-interval')) { + obj['si-rotation-interval'] = _ApiClient["default"].convertToType(data['si-rotation-interval'], 'Number'); + } + + if (data.hasOwnProperty('si-sra-enable-rdp')) { + obj['si-sra-enable-rdp'] = _ApiClient["default"].convertToType(data['si-sra-enable-rdp'], 'String'); + } + + if (data.hasOwnProperty('si-target-name')) { + obj['si-target-name'] = _ApiClient["default"].convertToType(data['si-target-name'], 'String'); + } + + if (data.hasOwnProperty('si-user-groups')) { + obj['si-user-groups'] = _ApiClient["default"].convertToType(data['si-user-groups'], 'String'); + } + + if (data.hasOwnProperty('si-users-ignore')) { + obj['si-users-ignore'] = _ApiClient["default"].convertToType(data['si-users-ignore'], 'String'); + } + + if (data.hasOwnProperty('si-users-path-template')) { + obj['si-users-path-template'] = _ApiClient["default"].convertToType(data['si-users-path-template'], 'String'); + } + + if (data.hasOwnProperty('target-location')) { + obj['target-location'] = _ApiClient["default"].convertToType(data['target-location'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateMigration; +}(); +/** + * 1Password user email to connect to the API + * @member {String} 1password-email + */ + + +GatewayCreateMigration.prototype['1password-email'] = undefined; +/** + * 1Password user password to connect to the API + * @member {String} 1password-password + */ + +GatewayCreateMigration.prototype['1password-password'] = undefined; +/** + * 1Password user secret key to connect to the API + * @member {String} 1password-secret-key + */ + +GatewayCreateMigration.prototype['1password-secret-key'] = undefined; +/** + * 1Password api container url + * @member {String} 1password-url + */ + +GatewayCreateMigration.prototype['1password-url'] = undefined; +/** + * 1Password list of vault to get the items from + * @member {Array.} 1password-vaults + */ + +GatewayCreateMigration.prototype['1password-vaults'] = undefined; +/** + * Enable/Disable discovery of Windows services from each domain server as part of the SSH/Windows Rotated Secrets. Default is false. (Relevant only for Active Directory migration) + * @member {String} ad-discover-services + * @default 'false' + */ + +GatewayCreateMigration.prototype['ad-discover-services'] = 'false'; +/** + * Set migration discovery types (domain-users, computers, local-users). (Relevant only for Active Directory migration) + * @member {Array.} ad-discovery-types + */ + +GatewayCreateMigration.prototype['ad-discovery-types'] = undefined; +/** + * Filter by Operating System to run the migration, can be used with wildcards, e.g. SRV20* (Relevant only for Active Directory migration) + * @member {String} ad-os-filter + */ + +GatewayCreateMigration.prototype['ad-os-filter'] = undefined; +/** + * Set the SSH Port for further connection to the domain servers. Default is port 22 (Relevant only for Active Directory migration) + * @member {String} ad-ssh-port + * @default '22' + */ + +GatewayCreateMigration.prototype['ad-ssh-port'] = '22'; +/** + * Relevant only for ad-discovery-types=computers. For linked, all computers will be migrated into a linked target(s). if set with regular, the migration will create a target for each computer. + * @member {String} ad-target-format + * @default 'linked' + */ + +GatewayCreateMigration.prototype['ad-target-format'] = 'linked'; +/** + * Set the target type of the domain servers [ssh/windows](Relevant only for Active Directory migration) + * @member {String} ad-targets-type + * @default 'windows' + */ + +GatewayCreateMigration.prototype['ad-targets-type'] = 'windows'; +/** + * Use WinRM over HTTP, by default runs over HTTPS + * @member {String} ad-winrm-over-http + * @default 'false' + */ + +GatewayCreateMigration.prototype['ad-winrm-over-http'] = 'false'; +/** + * Set the WinRM Port for further connection to the domain servers. Default is 5986 (Relevant only for Active Directory migration) + * @member {String} ad-winrm-port + * @default '5986' + */ + +GatewayCreateMigration.prototype['ad-winrm-port'] = '5986'; +/** + * Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --ad-rotation-interval and --ad-rotation-hour parameters (Relevant only for Active Directory migration) + * @member {String} ad_auto_rotate + */ + +GatewayCreateMigration.prototype['ad_auto_rotate'] = undefined; +/** + * Distinguished Name of Computer objects (servers) to search in Active Directory e.g.: CN=Computers,DC=example,DC=com (Relevant only for Active Directory migration) + * @member {String} ad_computer_base_dn + */ + +GatewayCreateMigration.prototype['ad_computer_base_dn'] = undefined; +/** + * Enable/Disable discovery of local users from each domain server and migrate them as SSH/Windows Rotated Secrets. Default is false: only domain users will be migrated. Discovery of local users might require further installation of SSH on the servers, based on the supplied computer base DN. This will be implemented automatically as part of the migration process (Relevant only for Active Directory migration) Deprecated: use AdDiscoverTypes + * @member {String} ad_discover_local_users + */ + +GatewayCreateMigration.prototype['ad_discover_local_users'] = undefined; +/** + * Active Directory Domain Name (Relevant only for Active Directory migration) + * @member {String} ad_domain_name + */ + +GatewayCreateMigration.prototype['ad_domain_name'] = undefined; +/** + * Path location template for migrating domain users as Rotated Secrets e.g.: .../DomainUsers/{{USERNAME}} (Relevant only for Active Directory migration) + * @member {String} ad_domain_users_path_template + */ + +GatewayCreateMigration.prototype['ad_domain_users_path_template'] = undefined; +/** + * Comma-separated list of Local Users which should not be migrated (Relevant only for Active Directory migration) + * @member {String} ad_local_users_ignore + */ + +GatewayCreateMigration.prototype['ad_local_users_ignore'] = undefined; +/** + * Path location template for migrating domain users as Rotated Secrets e.g.: .../LocalUsers/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Active Directory migration) + * @member {String} ad_local_users_path_template + */ + +GatewayCreateMigration.prototype['ad_local_users_path_template'] = undefined; +/** + * The hour of the scheduled rotation in UTC (Relevant only for Active Directory migration) + * @member {Number} ad_rotation_hour + */ + +GatewayCreateMigration.prototype['ad_rotation_hour'] = undefined; +/** + * The number of days to wait between every automatic rotation [1-365] (Relevant only for Active Directory migration) + * @member {Number} ad_rotation_interval + */ + +GatewayCreateMigration.prototype['ad_rotation_interval'] = undefined; +/** + * Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Active Directory migration) + * @member {String} ad_sra_enable_rdp + */ + +GatewayCreateMigration.prototype['ad_sra_enable_rdp'] = undefined; +/** + * Active Directory LDAP Target Name. Server type should be Active Directory (Relevant only for Active Directory migration) + * @member {String} ad_target_name + */ + +GatewayCreateMigration.prototype['ad_target_name'] = undefined; +/** + * Path location template for migrating domain servers as SSH/Windows Targets e.g.: .../Servers/{{COMPUTER_NAME}} (Relevant only for Active Directory migration) + * @member {String} ad_targets_path_template + */ + +GatewayCreateMigration.prototype['ad_targets_path_template'] = undefined; +/** + * Distinguished Name of User objects to search in Active Directory, e.g.: CN=Users,DC=example,DC=com (Relevant only for Active Directory migration) + * @member {String} ad_user_base_dn + */ + +GatewayCreateMigration.prototype['ad_user_base_dn'] = undefined; +/** + * Comma-separated list of domain groups from which privileged domain users will be migrated. If empty, migrate all users based on the --ad-user-base-dn (Relevant only for Active Directory migration) + * @member {String} ad_user_groups + */ + +GatewayCreateMigration.prototype['ad_user_groups'] = undefined; +/** + * AWS Secret Access Key (relevant only for AWS migration) + * @member {String} aws-key + */ + +GatewayCreateMigration.prototype['aws-key'] = undefined; +/** + * AWS Access Key ID with sufficient permissions to get all secrets, e.g. 'arn:aws:secretsmanager:[Region]:[AccountId]:secret:[/path/to/secrets/_*]' (relevant only for AWS migration) + * @member {String} aws-key-id + */ + +GatewayCreateMigration.prototype['aws-key-id'] = undefined; +/** + * AWS region of the required Secrets Manager (relevant only for AWS migration) + * @member {String} aws-region + * @default 'us-east-2' + */ + +GatewayCreateMigration.prototype['aws-region'] = 'us-east-2'; +/** + * Azure Key Vault Access client ID, should be Azure AD App with a service principal (relevant only for Azure Key Vault migration) + * @member {String} azure-client-id + */ + +GatewayCreateMigration.prototype['azure-client-id'] = undefined; +/** + * Azure Key Vault Name (relevant only for Azure Key Vault migration) + * @member {String} azure-kv-name + */ + +GatewayCreateMigration.prototype['azure-kv-name'] = undefined; +/** + * Azure Key Vault secret (relevant only for Azure Key Vault migration) + * @member {String} azure-secret + */ + +GatewayCreateMigration.prototype['azure-secret'] = undefined; +/** + * Azure Key Vault Access tenant ID (relevant only for Azure Key Vault migration) + * @member {String} azure-tenant-id + */ + +GatewayCreateMigration.prototype['azure-tenant-id'] = undefined; +/** + * Base64-encoded GCP Service Account private key text with sufficient permissions to Secrets Manager, Minimum required permission is Secret Manager Secret Accessor, e.g. 'roles/secretmanager.secretAccessor' (relevant only for GCP migration) + * @member {String} gcp-key + */ + +GatewayCreateMigration.prototype['gcp-key'] = undefined; +/** + * Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false] + * @member {String} hashi-json + * @default 'true' + */ + +GatewayCreateMigration.prototype['hashi-json'] = 'true'; +/** + * HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration) + * @member {Array.} hashi-ns + */ + +GatewayCreateMigration.prototype['hashi-ns'] = undefined; +/** + * HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration) + * @member {String} hashi-token + */ + +GatewayCreateMigration.prototype['hashi-token'] = undefined; +/** + * HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration) + * @member {String} hashi-url + */ + +GatewayCreateMigration.prototype['hashi-url'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateMigration.prototype['json'] = false; +/** + * For Certificate Authentication method K8s Cluster CA certificate (relevant only for K8s migration with Certificate Authentication method) + * @member {Array.} k8s-ca-certificate + */ + +GatewayCreateMigration.prototype['k8s-ca-certificate'] = undefined; +/** + * K8s Client certificate with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Certificate Authentication method) + * @member {Array.} k8s-client-certificate + */ + +GatewayCreateMigration.prototype['k8s-client-certificate'] = undefined; +/** + * K8s Client key (relevant only for K8s migration with Certificate Authentication method) + * @member {Array.} k8s-client-key + */ + +GatewayCreateMigration.prototype['k8s-client-key'] = undefined; +/** + * K8s Namespace, Use this field to import secrets from a particular namespace only. By default, the secrets are imported from all namespaces (relevant only for K8s migration) + * @member {String} k8s-namespace + */ + +GatewayCreateMigration.prototype['k8s-namespace'] = undefined; +/** + * K8s Client password (relevant only for K8s migration with Password Authentication method) + * @member {String} k8s-password + */ + +GatewayCreateMigration.prototype['k8s-password'] = undefined; +/** + * K8s Skip Control Plane Secrets, This option allows to avoid importing secrets from system namespaces (relevant only for K8s migration) + * @member {Boolean} k8s-skip-system + */ + +GatewayCreateMigration.prototype['k8s-skip-system'] = undefined; +/** + * For Token Authentication method K8s Bearer Token with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Token Authentication method) + * @member {String} k8s-token + */ + +GatewayCreateMigration.prototype['k8s-token'] = undefined; +/** + * K8s API Server URL, e.g. https://k8s-api.mycompany.com:6443 (relevant only for K8s migration) + * @member {String} k8s-url + */ + +GatewayCreateMigration.prototype['k8s-url'] = undefined; +/** + * For Password Authentication method K8s Client username with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Password Authentication method) + * @member {String} k8s-username + */ + +GatewayCreateMigration.prototype['k8s-username'] = undefined; +/** + * Migration name + * @member {String} name + */ + +GatewayCreateMigration.prototype['name'] = undefined; +/** + * The name of the key that protects the classic key value (if empty, the account default key will be used) + * @member {String} protection-key + */ + +GatewayCreateMigration.prototype['protection-key'] = undefined; +/** + * Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --si-rotation-interval and --si-rotation-hour parameters (Relevant only for Server Inventory migration) + * @member {String} si-auto-rotate + */ + +GatewayCreateMigration.prototype['si-auto-rotate'] = undefined; +/** + * The hour of the scheduled rotation in UTC (Relevant only for Server Inventory migration) + * @member {Number} si-rotation-hour + */ + +GatewayCreateMigration.prototype['si-rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic rotation [1-365] (Relevant only for Server Inventory migration) + * @member {Number} si-rotation-interval + */ + +GatewayCreateMigration.prototype['si-rotation-interval'] = undefined; +/** + * Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Server Inventory migration) + * @member {String} si-sra-enable-rdp + * @default 'false' + */ + +GatewayCreateMigration.prototype['si-sra-enable-rdp'] = 'false'; +/** + * SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration) + * @member {String} si-target-name + */ + +GatewayCreateMigration.prototype['si-target-name'] = undefined; +/** + * Comma-separated list of groups to migrate users from. If empty, all users from all groups will be migrated (Relevant only for Server Inventory migration) + * @member {String} si-user-groups + */ + +GatewayCreateMigration.prototype['si-user-groups'] = undefined; +/** + * Comma-separated list of Local Users which should not be migrated (Relevant only for Server Inventory migration) + * @member {String} si-users-ignore + */ + +GatewayCreateMigration.prototype['si-users-ignore'] = undefined; +/** + * Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration) + * @member {String} si-users-path-template + */ + +GatewayCreateMigration.prototype['si-users-path-template'] = undefined; +/** + * Target location in Akeyless for imported secrets + * @member {String} target-location + */ + +GatewayCreateMigration.prototype['target-location'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateMigration.prototype['token'] = undefined; +/** + * Migration type (hashi/aws/gcp/k8s/azure_kv/1password/active_directory) + * @member {String} type + */ + +GatewayCreateMigration.prototype['type'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateMigration.prototype['uid-token'] = undefined; +var _default = GatewayCreateMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 41510: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerArtifactory model module. + * @module model/GatewayCreateProducerArtifactory + * @version 3.6.3 + */ +var GatewayCreateProducerArtifactory = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerArtifactory. + * gatewayCreateProducerArtifactory is a command that creates artifactory producer [Deprecated: Use dynamic-secret-create-artifactory command] + * @alias module:model/GatewayCreateProducerArtifactory + * @param artifactoryTokenAudience {String} Token Audience + * @param artifactoryTokenScope {String} Token Scope + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerArtifactory(artifactoryTokenAudience, artifactoryTokenScope, name) { + _classCallCheck(this, GatewayCreateProducerArtifactory); + + GatewayCreateProducerArtifactory.initialize(this, artifactoryTokenAudience, artifactoryTokenScope, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerArtifactory, null, [{ + key: "initialize", + value: function initialize(obj, artifactoryTokenAudience, artifactoryTokenScope, name) { + obj['artifactory-token-audience'] = artifactoryTokenAudience; + obj['artifactory-token-scope'] = artifactoryTokenScope; + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerArtifactory from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerArtifactory} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerArtifactory} The populated GatewayCreateProducerArtifactory instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerArtifactory(); + + if (data.hasOwnProperty('artifactory-admin-name')) { + obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); + } + + if (data.hasOwnProperty('artifactory-admin-pwd')) { + obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('artifactory-token-audience')) { + obj['artifactory-token-audience'] = _ApiClient["default"].convertToType(data['artifactory-token-audience'], 'String'); + } + + if (data.hasOwnProperty('artifactory-token-scope')) { + obj['artifactory-token-scope'] = _ApiClient["default"].convertToType(data['artifactory-token-scope'], 'String'); + } + + if (data.hasOwnProperty('base-url')) { + obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerArtifactory; +}(); +/** + * Artifactory Admin Name + * @member {String} artifactory-admin-name + */ + + +GatewayCreateProducerArtifactory.prototype['artifactory-admin-name'] = undefined; +/** + * Artifactory Admin password + * @member {String} artifactory-admin-pwd + */ + +GatewayCreateProducerArtifactory.prototype['artifactory-admin-pwd'] = undefined; +/** + * Token Audience + * @member {String} artifactory-token-audience + */ + +GatewayCreateProducerArtifactory.prototype['artifactory-token-audience'] = undefined; +/** + * Token Scope + * @member {String} artifactory-token-scope + */ + +GatewayCreateProducerArtifactory.prototype['artifactory-token-scope'] = undefined; +/** + * Base URL + * @member {String} base-url + */ + +GatewayCreateProducerArtifactory.prototype['base-url'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerArtifactory.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerArtifactory.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerArtifactory.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerArtifactory.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerArtifactory.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerArtifactory.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerArtifactory.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerArtifactory.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerArtifactory.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerArtifactory; +exports["default"] = _default; + +/***/ }), + +/***/ 55523: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerArtifactoryOutput model module. + * @module model/GatewayCreateProducerArtifactoryOutput + * @version 3.6.3 + */ +var GatewayCreateProducerArtifactoryOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerArtifactoryOutput. + * @alias module:model/GatewayCreateProducerArtifactoryOutput + */ + function GatewayCreateProducerArtifactoryOutput() { + _classCallCheck(this, GatewayCreateProducerArtifactoryOutput); + + GatewayCreateProducerArtifactoryOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerArtifactoryOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerArtifactoryOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerArtifactoryOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerArtifactoryOutput} The populated GatewayCreateProducerArtifactoryOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerArtifactoryOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerArtifactoryOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerArtifactoryOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerArtifactoryOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 45677: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerAws model module. + * @module model/GatewayCreateProducerAws + * @version 3.6.3 + */ +var GatewayCreateProducerAws = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerAws. + * gatewayCreateProducerAws is a command that creates aws producer [Deprecated: Use dynamic-secret-create-aws command] + * @alias module:model/GatewayCreateProducerAws + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerAws(name) { + _classCallCheck(this, GatewayCreateProducerAws); + + GatewayCreateProducerAws.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerAws, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerAws from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerAws} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerAws} The populated GatewayCreateProducerAws instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerAws(); + + if (data.hasOwnProperty('access-mode')) { + obj['access-mode'] = _ApiClient["default"].convertToType(data['access-mode'], 'String'); + } + + if (data.hasOwnProperty('admin-rotation-interval-days')) { + obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); + } + + if (data.hasOwnProperty('aws-access-key-id')) { + obj['aws-access-key-id'] = _ApiClient["default"].convertToType(data['aws-access-key-id'], 'String'); + } + + if (data.hasOwnProperty('aws-access-secret-key')) { + obj['aws-access-secret-key'] = _ApiClient["default"].convertToType(data['aws-access-secret-key'], 'String'); + } + + if (data.hasOwnProperty('aws-role-arns')) { + obj['aws-role-arns'] = _ApiClient["default"].convertToType(data['aws-role-arns'], 'String'); + } + + if (data.hasOwnProperty('aws-user-console-access')) { + obj['aws-user-console-access'] = _ApiClient["default"].convertToType(data['aws-user-console-access'], 'Boolean'); + } + + if (data.hasOwnProperty('aws-user-groups')) { + obj['aws-user-groups'] = _ApiClient["default"].convertToType(data['aws-user-groups'], 'String'); + } + + if (data.hasOwnProperty('aws-user-policies')) { + obj['aws-user-policies'] = _ApiClient["default"].convertToType(data['aws-user-policies'], 'String'); + } + + if (data.hasOwnProperty('aws-user-programmatic-access')) { + obj['aws-user-programmatic-access'] = _ApiClient["default"].convertToType(data['aws-user-programmatic-access'], 'Boolean'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('enable-admin-rotation')) { + obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } + + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); + } + + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerAws; +}(); +/** + * @member {String} access-mode + */ + + +GatewayCreateProducerAws.prototype['access-mode'] = undefined; +/** + * Admin credentials rotation interval (days) + * @member {Number} admin-rotation-interval-days + * @default 0 + */ + +GatewayCreateProducerAws.prototype['admin-rotation-interval-days'] = 0; +/** + * Access Key ID + * @member {String} aws-access-key-id + */ + +GatewayCreateProducerAws.prototype['aws-access-key-id'] = undefined; +/** + * Secret Access Key + * @member {String} aws-access-secret-key + */ + +GatewayCreateProducerAws.prototype['aws-access-secret-key'] = undefined; +/** + * AWS Role ARNs to be used in the Assume Role operation (relevant only for assume_role mode) + * @member {String} aws-role-arns + */ + +GatewayCreateProducerAws.prototype['aws-role-arns'] = undefined; +/** + * AWS User console access + * @member {Boolean} aws-user-console-access + * @default false + */ + +GatewayCreateProducerAws.prototype['aws-user-console-access'] = false; +/** + * AWS User groups + * @member {String} aws-user-groups + */ + +GatewayCreateProducerAws.prototype['aws-user-groups'] = undefined; +/** + * AWS User policies + * @member {String} aws-user-policies + */ + +GatewayCreateProducerAws.prototype['aws-user-policies'] = undefined; +/** + * Enable AWS User programmatic access + * @member {Boolean} aws-user-programmatic-access + * @default true + */ + +GatewayCreateProducerAws.prototype['aws-user-programmatic-access'] = true; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerAws.prototype['delete_protection'] = undefined; +/** + * Automatic admin credentials rotation + * @member {Boolean} enable-admin-rotation + * @default false + */ + +GatewayCreateProducerAws.prototype['enable-admin-rotation'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerAws.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerAws.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerAws.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerAws.prototype['producer-encryption-key-name'] = undefined; +/** + * Region + * @member {String} region + * @default 'us-east-2' + */ + +GatewayCreateProducerAws.prototype['region'] = 'us-east-2'; +/** + * The AWS account id + * @member {String} secure-access-aws-account-id + */ + +GatewayCreateProducerAws.prototype['secure-access-aws-account-id'] = undefined; +/** + * The AWS native cli + * @member {Boolean} secure-access-aws-native-cli + */ + +GatewayCreateProducerAws.prototype['secure-access-aws-native-cli'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayCreateProducerAws.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayCreateProducerAws.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ + +GatewayCreateProducerAws.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +GatewayCreateProducerAws.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +GatewayCreateProducerAws.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerAws.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerAws.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerAws.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerAws.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerAws.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerAws; +exports["default"] = _default; + +/***/ }), + +/***/ 98248: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerAwsOutput model module. + * @module model/GatewayCreateProducerAwsOutput + * @version 3.6.3 + */ +var GatewayCreateProducerAwsOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerAwsOutput. + * @alias module:model/GatewayCreateProducerAwsOutput + */ + function GatewayCreateProducerAwsOutput() { + _classCallCheck(this, GatewayCreateProducerAwsOutput); + + GatewayCreateProducerAwsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerAwsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerAwsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerAwsOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerAwsOutput} The populated GatewayCreateProducerAwsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerAwsOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerAwsOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerAwsOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerAwsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 84283: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerAzure model module. + * @module model/GatewayCreateProducerAzure + * @version 3.6.3 + */ +var GatewayCreateProducerAzure = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerAzure. + * gatewayCreateProducerAzure is a command that creates azure dynamic secret [Deprecated: Use dynamic-secret-create-azure command] + * @alias module:model/GatewayCreateProducerAzure + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerAzure(name) { + _classCallCheck(this, GatewayCreateProducerAzure); + + GatewayCreateProducerAzure.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerAzure, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerAzure from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerAzure} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerAzure} The populated GatewayCreateProducerAzure instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerAzure(); + + if (data.hasOwnProperty('app-obj-id')) { + obj['app-obj-id'] = _ApiClient["default"].convertToType(data['app-obj-id'], 'String'); + } + + if (data.hasOwnProperty('azure-client-id')) { + obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); + } + + if (data.hasOwnProperty('azure-client-secret')) { + obj['azure-client-secret'] = _ApiClient["default"].convertToType(data['azure-client-secret'], 'String'); + } + + if (data.hasOwnProperty('azure-tenant-id')) { + obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('fixed-user-claim-keyname')) { + obj['fixed-user-claim-keyname'] = _ApiClient["default"].convertToType(data['fixed-user-claim-keyname'], 'String'); + } + + if (data.hasOwnProperty('fixed-user-only')) { + obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-group-obj-id')) { + obj['user-group-obj-id'] = _ApiClient["default"].convertToType(data['user-group-obj-id'], 'String'); + } + + if (data.hasOwnProperty('user-portal-access')) { + obj['user-portal-access'] = _ApiClient["default"].convertToType(data['user-portal-access'], 'Boolean'); + } + + if (data.hasOwnProperty('user-principal-name')) { + obj['user-principal-name'] = _ApiClient["default"].convertToType(data['user-principal-name'], 'String'); + } + + if (data.hasOwnProperty('user-programmatic-access')) { + obj['user-programmatic-access'] = _ApiClient["default"].convertToType(data['user-programmatic-access'], 'Boolean'); + } + + if (data.hasOwnProperty('user-role-template-id')) { + obj['user-role-template-id'] = _ApiClient["default"].convertToType(data['user-role-template-id'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerAzure; +}(); +/** + * Azure App Object Id + * @member {String} app-obj-id + */ + + +GatewayCreateProducerAzure.prototype['app-obj-id'] = undefined; +/** + * Azure Client ID + * @member {String} azure-client-id + */ + +GatewayCreateProducerAzure.prototype['azure-client-id'] = undefined; +/** + * Azure Client Secret + * @member {String} azure-client-secret + */ + +GatewayCreateProducerAzure.prototype['azure-client-secret'] = undefined; +/** + * Azure Tenant ID + * @member {String} azure-tenant-id + */ + +GatewayCreateProducerAzure.prototype['azure-tenant-id'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerAzure.prototype['delete_protection'] = undefined; +/** + * FixedUserClaimKeyname + * @member {String} fixed-user-claim-keyname + * @default 'false' + */ + +GatewayCreateProducerAzure.prototype['fixed-user-claim-keyname'] = 'false'; +/** + * Fixed user + * @member {Boolean} fixed-user-only + * @default false + */ + +GatewayCreateProducerAzure.prototype['fixed-user-only'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerAzure.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerAzure.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerAzure.prototype['password-length'] = undefined; +/** + * Dynamic secret encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerAzure.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayCreateProducerAzure.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ + +GatewayCreateProducerAzure.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +GatewayCreateProducerAzure.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +GatewayCreateProducerAzure.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerAzure.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerAzure.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerAzure.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerAzure.prototype['uid-token'] = undefined; +/** + * User Group Object Id + * @member {String} user-group-obj-id + */ + +GatewayCreateProducerAzure.prototype['user-group-obj-id'] = undefined; +/** + * Azure User portal access + * @member {Boolean} user-portal-access + * @default false + */ + +GatewayCreateProducerAzure.prototype['user-portal-access'] = false; +/** + * User Principal Name + * @member {String} user-principal-name + */ + +GatewayCreateProducerAzure.prototype['user-principal-name'] = undefined; +/** + * Azure User programmatic access + * @member {Boolean} user-programmatic-access + * @default false + */ + +GatewayCreateProducerAzure.prototype['user-programmatic-access'] = false; +/** + * User Role Template Id + * @member {String} user-role-template-id + */ + +GatewayCreateProducerAzure.prototype['user-role-template-id'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerAzure.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerAzure; +exports["default"] = _default; + +/***/ }), + +/***/ 35770: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerAzureOutput model module. + * @module model/GatewayCreateProducerAzureOutput + * @version 3.6.3 + */ +var GatewayCreateProducerAzureOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerAzureOutput. + * @alias module:model/GatewayCreateProducerAzureOutput + */ + function GatewayCreateProducerAzureOutput() { + _classCallCheck(this, GatewayCreateProducerAzureOutput); + + GatewayCreateProducerAzureOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerAzureOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerAzureOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerAzureOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerAzureOutput} The populated GatewayCreateProducerAzureOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerAzureOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerAzureOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerAzureOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerAzureOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 53266: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerCassandra model module. + * @module model/GatewayCreateProducerCassandra + * @version 3.6.3 + */ +var GatewayCreateProducerCassandra = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerCassandra. + * gatewayCreateProducerCassandra is a command that creates a Cassandra producer [Deprecated: Use dynamic-secret-create-cassandra command] + * @alias module:model/GatewayCreateProducerCassandra + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerCassandra(name) { + _classCallCheck(this, GatewayCreateProducerCassandra); + + GatewayCreateProducerCassandra.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerCassandra, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerCassandra from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerCassandra} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerCassandra} The populated GatewayCreateProducerCassandra instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerCassandra(); + + if (data.hasOwnProperty('cassandra-creation-statements')) { + obj['cassandra-creation-statements'] = _ApiClient["default"].convertToType(data['cassandra-creation-statements'], 'String'); + } + + if (data.hasOwnProperty('cassandra-hosts')) { + obj['cassandra-hosts'] = _ApiClient["default"].convertToType(data['cassandra-hosts'], 'String'); + } + + if (data.hasOwnProperty('cassandra-password')) { + obj['cassandra-password'] = _ApiClient["default"].convertToType(data['cassandra-password'], 'String'); + } + + if (data.hasOwnProperty('cassandra-port')) { + obj['cassandra-port'] = _ApiClient["default"].convertToType(data['cassandra-port'], 'String'); + } + + if (data.hasOwnProperty('cassandra-username')) { + obj['cassandra-username'] = _ApiClient["default"].convertToType(data['cassandra-username'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerCassandra; +}(); +/** + * Cassandra creation statements + * @member {String} cassandra-creation-statements + */ + + +GatewayCreateProducerCassandra.prototype['cassandra-creation-statements'] = undefined; +/** + * Cassandra hosts IP or addresses, comma separated + * @member {String} cassandra-hosts + */ + +GatewayCreateProducerCassandra.prototype['cassandra-hosts'] = undefined; +/** + * Cassandra superuser password + * @member {String} cassandra-password + */ + +GatewayCreateProducerCassandra.prototype['cassandra-password'] = undefined; +/** + * Cassandra port + * @member {String} cassandra-port + * @default '9042' + */ + +GatewayCreateProducerCassandra.prototype['cassandra-port'] = '9042'; +/** + * Cassandra superuser username + * @member {String} cassandra-username + */ + +GatewayCreateProducerCassandra.prototype['cassandra-username'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerCassandra.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerCassandra.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerCassandra.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerCassandra.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerCassandra.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +GatewayCreateProducerCassandra.prototype['ssl'] = false; +/** + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} ssl-certificate + */ + +GatewayCreateProducerCassandra.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerCassandra.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerCassandra.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerCassandra.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerCassandra.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerCassandra.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerCassandra; +exports["default"] = _default; + +/***/ }), + +/***/ 43031: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerCassandraOutput model module. + * @module model/GatewayCreateProducerCassandraOutput + * @version 3.6.3 + */ +var GatewayCreateProducerCassandraOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerCassandraOutput. + * @alias module:model/GatewayCreateProducerCassandraOutput + */ + function GatewayCreateProducerCassandraOutput() { + _classCallCheck(this, GatewayCreateProducerCassandraOutput); + + GatewayCreateProducerCassandraOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerCassandraOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerCassandraOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerCassandraOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerCassandraOutput} The populated GatewayCreateProducerCassandraOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerCassandraOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerCassandraOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerCassandraOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerCassandraOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 81410: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerChef model module. + * @module model/GatewayCreateProducerChef + * @version 3.6.3 + */ +var GatewayCreateProducerChef = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerChef. + * gatewayCreateProducerChef is a command that creates chef producer [Deprecated: Use dynamic-secret-create-chef command] + * @alias module:model/GatewayCreateProducerChef + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerChef(name) { + _classCallCheck(this, GatewayCreateProducerChef); + + GatewayCreateProducerChef.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerChef, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerChef from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerChef} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerChef} The populated GatewayCreateProducerChef instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerChef(); + + if (data.hasOwnProperty('chef-orgs')) { + obj['chef-orgs'] = _ApiClient["default"].convertToType(data['chef-orgs'], 'String'); + } + + if (data.hasOwnProperty('chef-server-key')) { + obj['chef-server-key'] = _ApiClient["default"].convertToType(data['chef-server-key'], 'String'); + } + + if (data.hasOwnProperty('chef-server-url')) { + obj['chef-server-url'] = _ApiClient["default"].convertToType(data['chef-server-url'], 'String'); + } + + if (data.hasOwnProperty('chef-server-username')) { + obj['chef-server-username'] = _ApiClient["default"].convertToType(data['chef-server-username'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('skip-ssl')) { + obj['skip-ssl'] = _ApiClient["default"].convertToType(data['skip-ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerChef; +}(); +/** + * Organizations + * @member {String} chef-orgs + */ + + +GatewayCreateProducerChef.prototype['chef-orgs'] = undefined; +/** + * Server key + * @member {String} chef-server-key + */ + +GatewayCreateProducerChef.prototype['chef-server-key'] = undefined; +/** + * Server URL + * @member {String} chef-server-url + */ + +GatewayCreateProducerChef.prototype['chef-server-url'] = undefined; +/** + * Server username + * @member {String} chef-server-username + */ + +GatewayCreateProducerChef.prototype['chef-server-username'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerChef.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerChef.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerChef.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerChef.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerChef.prototype['producer-encryption-key-name'] = undefined; +/** + * Skip SSL + * @member {Boolean} skip-ssl + * @default true + */ + +GatewayCreateProducerChef.prototype['skip-ssl'] = true; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerChef.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerChef.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerChef.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerChef.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerChef.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerChef; +exports["default"] = _default; + +/***/ }), + +/***/ 74951: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerChefOutput model module. + * @module model/GatewayCreateProducerChefOutput + * @version 3.6.3 + */ +var GatewayCreateProducerChefOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerChefOutput. + * @alias module:model/GatewayCreateProducerChefOutput + */ + function GatewayCreateProducerChefOutput() { + _classCallCheck(this, GatewayCreateProducerChefOutput); + + GatewayCreateProducerChefOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerChefOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerChefOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerChefOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerChefOutput} The populated GatewayCreateProducerChefOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerChefOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerChefOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerChefOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerChefOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 91173: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerCustom model module. + * @module model/GatewayCreateProducerCustom + * @version 3.6.3 + */ +var GatewayCreateProducerCustom = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerCustom. + * gatewayCreateProducerCustom is a command that creates a custom producer. [Deprecated: Use dynamic-secret-create-custom command] + * @alias module:model/GatewayCreateProducerCustom + * @param createSyncUrl {String} URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create + * @param name {String} Dynamic secret name + * @param revokeSyncUrl {String} URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke + */ + function GatewayCreateProducerCustom(createSyncUrl, name, revokeSyncUrl) { + _classCallCheck(this, GatewayCreateProducerCustom); + + GatewayCreateProducerCustom.initialize(this, createSyncUrl, name, revokeSyncUrl); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerCustom, null, [{ + key: "initialize", + value: function initialize(obj, createSyncUrl, name, revokeSyncUrl) { + obj['create-sync-url'] = createSyncUrl; + obj['name'] = name; + obj['revoke-sync-url'] = revokeSyncUrl; + } + /** + * Constructs a GatewayCreateProducerCustom from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerCustom} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerCustom} The populated GatewayCreateProducerCustom instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerCustom(); + + if (data.hasOwnProperty('admin_rotation_interval_days')) { + obj['admin_rotation_interval_days'] = _ApiClient["default"].convertToType(data['admin_rotation_interval_days'], 'Number'); + } + + if (data.hasOwnProperty('create-sync-url')) { + obj['create-sync-url'] = _ApiClient["default"].convertToType(data['create-sync-url'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('enable_admin_rotation')) { + obj['enable_admin_rotation'] = _ApiClient["default"].convertToType(data['enable_admin_rotation'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('revoke-sync-url')) { + obj['revoke-sync-url'] = _ApiClient["default"].convertToType(data['revoke-sync-url'], 'String'); + } + + if (data.hasOwnProperty('rotate-sync-url')) { + obj['rotate-sync-url'] = _ApiClient["default"].convertToType(data['rotate-sync-url'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('timeout-sec')) { + obj['timeout-sec'] = _ApiClient["default"].convertToType(data['timeout-sec'], 'Number'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerCustom; +}(); +/** + * Define rotation interval in days + * @member {Number} admin_rotation_interval_days + */ + + +GatewayCreateProducerCustom.prototype['admin_rotation_interval_days'] = undefined; +/** + * URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create + * @member {String} create-sync-url + */ + +GatewayCreateProducerCustom.prototype['create-sync-url'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerCustom.prototype['delete_protection'] = undefined; +/** + * Should admin credentials be rotated + * @member {Boolean} enable_admin_rotation + * @default false + */ + +GatewayCreateProducerCustom.prototype['enable_admin_rotation'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerCustom.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerCustom.prototype['name'] = undefined; +/** + * Secret payload to be sent with each create/revoke webhook request + * @member {String} payload + */ + +GatewayCreateProducerCustom.prototype['payload'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerCustom.prototype['producer-encryption-key-name'] = undefined; +/** + * URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke + * @member {String} revoke-sync-url + */ + +GatewayCreateProducerCustom.prototype['revoke-sync-url'] = undefined; +/** + * URL of an endpoint that implements /sync/rotate method, for example https://webhook.example.com/sync/rotate + * @member {String} rotate-sync-url + */ + +GatewayCreateProducerCustom.prototype['rotate-sync-url'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerCustom.prototype['tags'] = undefined; +/** + * Maximum allowed time in seconds for the webhook to return the results + * @member {Number} timeout-sec + * @default 60 + */ + +GatewayCreateProducerCustom.prototype['timeout-sec'] = 60; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerCustom.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerCustom.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerCustom.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerCustom; +exports["default"] = _default; + +/***/ }), + +/***/ 24592: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerCustomOutput model module. + * @module model/GatewayCreateProducerCustomOutput + * @version 3.6.3 + */ +var GatewayCreateProducerCustomOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerCustomOutput. + * @alias module:model/GatewayCreateProducerCustomOutput + */ + function GatewayCreateProducerCustomOutput() { + _classCallCheck(this, GatewayCreateProducerCustomOutput); + + GatewayCreateProducerCustomOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerCustomOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerCustomOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerCustomOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerCustomOutput} The populated GatewayCreateProducerCustomOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerCustomOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerCustomOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerCustomOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerCustomOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 3207: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerDockerhub model module. + * @module model/GatewayCreateProducerDockerhub + * @version 3.6.3 + */ +var GatewayCreateProducerDockerhub = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerDockerhub. + * gatewayCreateProducerDockerhub is a command that creates a DOCKERHUB producer [Deprecated: Use dynamic-secret-create-dockerhub command] + * @alias module:model/GatewayCreateProducerDockerhub + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerDockerhub(name) { + _classCallCheck(this, GatewayCreateProducerDockerhub); + + GatewayCreateProducerDockerhub.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerDockerhub, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerDockerhub from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerDockerhub} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerDockerhub} The populated GatewayCreateProducerDockerhub instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerDockerhub(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('dockerhub-password')) { + obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); + } + + if (data.hasOwnProperty('dockerhub-token-scopes')) { + obj['dockerhub-token-scopes'] = _ApiClient["default"].convertToType(data['dockerhub-token-scopes'], 'String'); + } + + if (data.hasOwnProperty('dockerhub-username')) { + obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerDockerhub; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayCreateProducerDockerhub.prototype['delete_protection'] = undefined; +/** + * DockerhubPassword is either the user's password access token to manage the repository + * @member {String} dockerhub-password + */ + +GatewayCreateProducerDockerhub.prototype['dockerhub-password'] = undefined; +/** + * Access token scopes list (comma-separated) to give the dynamic secret valid options are in \"repo:admin\", \"repo:write\", \"repo:read\", \"repo:public_read\" + * @member {String} dockerhub-token-scopes + */ + +GatewayCreateProducerDockerhub.prototype['dockerhub-token-scopes'] = undefined; +/** + * DockerhubUsername is the name of the user in dockerhub + * @member {String} dockerhub-username + */ + +GatewayCreateProducerDockerhub.prototype['dockerhub-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerDockerhub.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerDockerhub.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerDockerhub.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerDockerhub.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerDockerhub.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerDockerhub.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerDockerhub.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerDockerhub.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerDockerhub; +exports["default"] = _default; + +/***/ }), + +/***/ 89470: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerDockerhubOutput model module. + * @module model/GatewayCreateProducerDockerhubOutput + * @version 3.6.3 + */ +var GatewayCreateProducerDockerhubOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerDockerhubOutput. + * @alias module:model/GatewayCreateProducerDockerhubOutput + */ + function GatewayCreateProducerDockerhubOutput() { + _classCallCheck(this, GatewayCreateProducerDockerhubOutput); + + GatewayCreateProducerDockerhubOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerDockerhubOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerDockerhubOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerDockerhubOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerDockerhubOutput} The populated GatewayCreateProducerDockerhubOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerDockerhubOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerDockerhubOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerDockerhubOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerDockerhubOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 82045: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerEks model module. + * @module model/GatewayCreateProducerEks + * @version 3.6.3 + */ +var GatewayCreateProducerEks = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerEks. + * gatewayCreateProducerEks is a command that creates eks producer [Deprecated: Use dynamic-secret-create-eks command] + * @alias module:model/GatewayCreateProducerEks + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerEks(name) { + _classCallCheck(this, GatewayCreateProducerEks); + + GatewayCreateProducerEks.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerEks, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerEks from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerEks} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerEks} The populated GatewayCreateProducerEks instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerEks(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('eks-access-key-id')) { + obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); + } + + if (data.hasOwnProperty('eks-assume-role')) { + obj['eks-assume-role'] = _ApiClient["default"].convertToType(data['eks-assume-role'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-ca-cert')) { + obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-endpoint')) { + obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-name')) { + obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); + } + + if (data.hasOwnProperty('eks-region')) { + obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); + } + + if (data.hasOwnProperty('eks-secret-access-key')) { + obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerEks; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayCreateProducerEks.prototype['delete_protection'] = undefined; +/** + * Access Key ID + * @member {String} eks-access-key-id + */ + +GatewayCreateProducerEks.prototype['eks-access-key-id'] = undefined; +/** + * IAM assume role + * @member {String} eks-assume-role + */ + +GatewayCreateProducerEks.prototype['eks-assume-role'] = undefined; +/** + * EKS cluster CA certificate + * @member {String} eks-cluster-ca-cert + */ + +GatewayCreateProducerEks.prototype['eks-cluster-ca-cert'] = undefined; +/** + * EKS cluster URL endpoint + * @member {String} eks-cluster-endpoint + */ + +GatewayCreateProducerEks.prototype['eks-cluster-endpoint'] = undefined; +/** + * EKS cluster name + * @member {String} eks-cluster-name + */ + +GatewayCreateProducerEks.prototype['eks-cluster-name'] = undefined; +/** + * Region + * @member {String} eks-region + * @default 'us-east-2' + */ + +GatewayCreateProducerEks.prototype['eks-region'] = 'us-east-2'; +/** + * Secret Access Key + * @member {String} eks-secret-access-key + */ + +GatewayCreateProducerEks.prototype['eks-secret-access-key'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerEks.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerEks.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerEks.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ + +GatewayCreateProducerEks.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayCreateProducerEks.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ + +GatewayCreateProducerEks.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayCreateProducerEks.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayCreateProducerEks.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerEks.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerEks.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerEks.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerEks.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '15m' + */ + +GatewayCreateProducerEks.prototype['user-ttl'] = '15m'; +var _default = GatewayCreateProducerEks; +exports["default"] = _default; + +/***/ }), + +/***/ 93688: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerEksOutput model module. + * @module model/GatewayCreateProducerEksOutput + * @version 3.6.3 + */ +var GatewayCreateProducerEksOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerEksOutput. + * @alias module:model/GatewayCreateProducerEksOutput + */ + function GatewayCreateProducerEksOutput() { + _classCallCheck(this, GatewayCreateProducerEksOutput); + + GatewayCreateProducerEksOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerEksOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerEksOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerEksOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerEksOutput} The populated GatewayCreateProducerEksOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerEksOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerEksOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerEksOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerEksOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 19050: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerGcp model module. + * @module model/GatewayCreateProducerGcp + * @version 3.6.3 + */ +var GatewayCreateProducerGcp = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerGcp. + * gatewayCreateProducerGcp is a command that creates a GCP producer [Deprecated: Use dynamic-secret-create-gcp command] + * @alias module:model/GatewayCreateProducerGcp + * @param name {String} Dynamic secret name + * @param serviceAccountType {String} The type of the gcp dynamic secret. Options[fixed, dynamic] + */ + function GatewayCreateProducerGcp(name, serviceAccountType) { + _classCallCheck(this, GatewayCreateProducerGcp); + + GatewayCreateProducerGcp.initialize(this, name, serviceAccountType); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerGcp, null, [{ + key: "initialize", + value: function initialize(obj, name, serviceAccountType) { + obj['name'] = name; + obj['service-account-type'] = serviceAccountType; + } + /** + * Constructs a GatewayCreateProducerGcp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerGcp} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerGcp} The populated GatewayCreateProducerGcp instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerGcp(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('gcp-cred-type')) { + obj['gcp-cred-type'] = _ApiClient["default"].convertToType(data['gcp-cred-type'], 'String'); + } + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } + + if (data.hasOwnProperty('gcp-key-algo')) { + obj['gcp-key-algo'] = _ApiClient["default"].convertToType(data['gcp-key-algo'], 'String'); + } + + if (data.hasOwnProperty('gcp-sa-email')) { + obj['gcp-sa-email'] = _ApiClient["default"].convertToType(data['gcp-sa-email'], 'String'); + } + + if (data.hasOwnProperty('gcp-token-scopes')) { + obj['gcp-token-scopes'] = _ApiClient["default"].convertToType(data['gcp-token-scopes'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('role-binding')) { + obj['role-binding'] = _ApiClient["default"].convertToType(data['role-binding'], 'String'); + } + + if (data.hasOwnProperty('service-account-type')) { + obj['service-account-type'] = _ApiClient["default"].convertToType(data['service-account-type'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerGcp; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayCreateProducerGcp.prototype['delete_protection'] = undefined; +/** + * @member {String} gcp-cred-type + */ + +GatewayCreateProducerGcp.prototype['gcp-cred-type'] = undefined; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ + +GatewayCreateProducerGcp.prototype['gcp-key'] = undefined; +/** + * Service account key algorithm, e.g. KEY_ALG_RSA_1024 + * @member {String} gcp-key-algo + */ + +GatewayCreateProducerGcp.prototype['gcp-key-algo'] = undefined; +/** + * The email of the fixed service acocunt to generate keys or tokens for. (revelant for service-account-type=fixed) + * @member {String} gcp-sa-email + */ + +GatewayCreateProducerGcp.prototype['gcp-sa-email'] = undefined; +/** + * Access token scopes list, e.g. scope1,scope2 + * @member {String} gcp-token-scopes + */ + +GatewayCreateProducerGcp.prototype['gcp-token-scopes'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerGcp.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerGcp.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerGcp.prototype['producer-encryption-key-name'] = undefined; +/** + * Role binding definitions in json format + * @member {String} role-binding + */ + +GatewayCreateProducerGcp.prototype['role-binding'] = undefined; +/** + * The type of the gcp dynamic secret. Options[fixed, dynamic] + * @member {String} service-account-type + * @default 'fixed' + */ + +GatewayCreateProducerGcp.prototype['service-account-type'] = 'fixed'; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerGcp.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerGcp.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerGcp.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerGcp.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerGcp.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerGcp; +exports["default"] = _default; + +/***/ }), + +/***/ 4767: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerGcpOutput model module. + * @module model/GatewayCreateProducerGcpOutput + * @version 3.6.3 + */ +var GatewayCreateProducerGcpOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerGcpOutput. + * @alias module:model/GatewayCreateProducerGcpOutput + */ + function GatewayCreateProducerGcpOutput() { + _classCallCheck(this, GatewayCreateProducerGcpOutput); + + GatewayCreateProducerGcpOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerGcpOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerGcpOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerGcpOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerGcpOutput} The populated GatewayCreateProducerGcpOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerGcpOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerGcpOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerGcpOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerGcpOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 15521: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerGithub model module. + * @module model/GatewayCreateProducerGithub + * @version 3.6.3 + */ +var GatewayCreateProducerGithub = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerGithub. + * gatewayCreateProducerGithub is a command that creates github producer [Deprecated: Use dynamic-secret-create-github command] + * @alias module:model/GatewayCreateProducerGithub + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerGithub(name) { + _classCallCheck(this, GatewayCreateProducerGithub); + + GatewayCreateProducerGithub.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerGithub, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerGithub from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerGithub} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerGithub} The populated GatewayCreateProducerGithub instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerGithub(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('github-app-id')) { + obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); + } + + if (data.hasOwnProperty('github-app-private-key')) { + obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); + } + + if (data.hasOwnProperty('github-base-url')) { + obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); + } + + if (data.hasOwnProperty('installation-id')) { + obj['installation-id'] = _ApiClient["default"].convertToType(data['installation-id'], 'Number'); + } + + if (data.hasOwnProperty('installation-organization')) { + obj['installation-organization'] = _ApiClient["default"].convertToType(data['installation-organization'], 'String'); + } + + if (data.hasOwnProperty('installation-repository')) { + obj['installation-repository'] = _ApiClient["default"].convertToType(data['installation-repository'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('token-permissions')) { + obj['token-permissions'] = _ApiClient["default"].convertToType(data['token-permissions'], ['String']); + } + + if (data.hasOwnProperty('token-repositories')) { + obj['token-repositories'] = _ApiClient["default"].convertToType(data['token-repositories'], ['String']); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerGithub; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayCreateProducerGithub.prototype['delete_protection'] = undefined; +/** + * Github app id + * @member {Number} github-app-id + */ + +GatewayCreateProducerGithub.prototype['github-app-id'] = undefined; +/** + * App private key + * @member {String} github-app-private-key + */ + +GatewayCreateProducerGithub.prototype['github-app-private-key'] = undefined; +/** + * Base URL + * @member {String} github-base-url + * @default 'https://api.github.com/' + */ + +GatewayCreateProducerGithub.prototype['github-base-url'] = 'https://api.github.com/'; +/** + * GitHub application installation id + * @member {Number} installation-id + */ + +GatewayCreateProducerGithub.prototype['installation-id'] = undefined; +/** + * Optional, mutually exclusive with installation id, GitHub organization name + * @member {String} installation-organization + */ + +GatewayCreateProducerGithub.prototype['installation-organization'] = undefined; +/** + * Optional, mutually exclusive with installation id, GitHub repository '/' + * @member {String} installation-repository + */ + +GatewayCreateProducerGithub.prototype['installation-repository'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerGithub.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerGithub.prototype['name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerGithub.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerGithub.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerGithub.prototype['token'] = undefined; +/** + * Optional - installation token's allowed permissions + * @member {Array.} token-permissions + */ + +GatewayCreateProducerGithub.prototype['token-permissions'] = undefined; +/** + * Optional - installation token's allowed repositories + * @member {Array.} token-repositories + */ + +GatewayCreateProducerGithub.prototype['token-repositories'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerGithub.prototype['uid-token'] = undefined; +var _default = GatewayCreateProducerGithub; +exports["default"] = _default; + +/***/ }), + +/***/ 67988: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerGithubOutput model module. + * @module model/GatewayCreateProducerGithubOutput + * @version 3.6.3 + */ +var GatewayCreateProducerGithubOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerGithubOutput. + * @alias module:model/GatewayCreateProducerGithubOutput + */ + function GatewayCreateProducerGithubOutput() { + _classCallCheck(this, GatewayCreateProducerGithubOutput); + + GatewayCreateProducerGithubOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerGithubOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerGithubOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerGithubOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerGithubOutput} The populated GatewayCreateProducerGithubOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerGithubOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerGithubOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerGithubOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerGithubOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 43341: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerGke model module. + * @module model/GatewayCreateProducerGke + * @version 3.6.3 + */ +var GatewayCreateProducerGke = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerGke. + * gatewayCreateProducerGke is a command that creates gke producer [Deprecated: Use dynamic-secret-create-gke command] + * @alias module:model/GatewayCreateProducerGke + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerGke(name) { + _classCallCheck(this, GatewayCreateProducerGke); + + GatewayCreateProducerGke.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerGke, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerGke from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerGke} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerGke} The populated GatewayCreateProducerGke instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerGke(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('gke-account-key')) { + obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-cert')) { + obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-endpoint')) { + obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-name')) { + obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); + } + + if (data.hasOwnProperty('gke-service-account-email')) { + obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerGke; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayCreateProducerGke.prototype['delete_protection'] = undefined; +/** + * GKE Service Account key file path + * @member {String} gke-account-key + */ + +GatewayCreateProducerGke.prototype['gke-account-key'] = undefined; +/** + * GKE cluster CA certificate + * @member {String} gke-cluster-cert + */ + +GatewayCreateProducerGke.prototype['gke-cluster-cert'] = undefined; +/** + * GKE cluster URL endpoint + * @member {String} gke-cluster-endpoint + */ + +GatewayCreateProducerGke.prototype['gke-cluster-endpoint'] = undefined; +/** + * GKE cluster name + * @member {String} gke-cluster-name + */ + +GatewayCreateProducerGke.prototype['gke-cluster-name'] = undefined; +/** + * GKE service account email + * @member {String} gke-service-account-email + */ + +GatewayCreateProducerGke.prototype['gke-service-account-email'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerGke.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerGke.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerGke.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ + +GatewayCreateProducerGke.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayCreateProducerGke.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ + +GatewayCreateProducerGke.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayCreateProducerGke.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayCreateProducerGke.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerGke.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerGke.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerGke.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerGke.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerGke.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerGke; +exports["default"] = _default; + +/***/ }), + +/***/ 12136: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerGkeOutput model module. + * @module model/GatewayCreateProducerGkeOutput + * @version 3.6.3 + */ +var GatewayCreateProducerGkeOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerGkeOutput. + * @alias module:model/GatewayCreateProducerGkeOutput + */ + function GatewayCreateProducerGkeOutput() { + _classCallCheck(this, GatewayCreateProducerGkeOutput); + + GatewayCreateProducerGkeOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerGkeOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerGkeOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerGkeOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerGkeOutput} The populated GatewayCreateProducerGkeOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerGkeOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerGkeOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerGkeOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerGkeOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 77662: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerHanaDb model module. + * @module model/GatewayCreateProducerHanaDb + * @version 3.6.3 + */ +var GatewayCreateProducerHanaDb = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerHanaDb. + * gatewayCreateProducerHanaDb is a command that creates hanadb producer [Deprecated: Use dynamic-secret-create-hanadb command] + * @alias module:model/GatewayCreateProducerHanaDb + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerHanaDb(name) { + _classCallCheck(this, GatewayCreateProducerHanaDb); + + GatewayCreateProducerHanaDb.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerHanaDb, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerHanaDb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerHanaDb} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerHanaDb} The populated GatewayCreateProducerHanaDb instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerHanaDb(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('hana-dbname')) { + obj['hana-dbname'] = _ApiClient["default"].convertToType(data['hana-dbname'], 'String'); + } + + if (data.hasOwnProperty('hanadb-create-statements')) { + obj['hanadb-create-statements'] = _ApiClient["default"].convertToType(data['hanadb-create-statements'], 'String'); + } + + if (data.hasOwnProperty('hanadb-host')) { + obj['hanadb-host'] = _ApiClient["default"].convertToType(data['hanadb-host'], 'String'); + } + + if (data.hasOwnProperty('hanadb-password')) { + obj['hanadb-password'] = _ApiClient["default"].convertToType(data['hanadb-password'], 'String'); + } + + if (data.hasOwnProperty('hanadb-port')) { + obj['hanadb-port'] = _ApiClient["default"].convertToType(data['hanadb-port'], 'String'); + } + + if (data.hasOwnProperty('hanadb-revocation-statements')) { + obj['hanadb-revocation-statements'] = _ApiClient["default"].convertToType(data['hanadb-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('hanadb-username')) { + obj['hanadb-username'] = _ApiClient["default"].convertToType(data['hanadb-username'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerHanaDb; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayCreateProducerHanaDb.prototype['delete_protection'] = undefined; +/** + * HanaDb Name + * @member {String} hana-dbname + */ + +GatewayCreateProducerHanaDb.prototype['hana-dbname'] = undefined; +/** + * HanaDb Creation statements + * @member {String} hanadb-create-statements + */ + +GatewayCreateProducerHanaDb.prototype['hanadb-create-statements'] = undefined; +/** + * HanaDb Host + * @member {String} hanadb-host + * @default '127.0.0.1' + */ + +GatewayCreateProducerHanaDb.prototype['hanadb-host'] = '127.0.0.1'; +/** + * HanaDb Password + * @member {String} hanadb-password + */ + +GatewayCreateProducerHanaDb.prototype['hanadb-password'] = undefined; +/** + * HanaDb Port + * @member {String} hanadb-port + * @default '443' + */ + +GatewayCreateProducerHanaDb.prototype['hanadb-port'] = '443'; +/** + * HanaDb Revocation statements + * @member {String} hanadb-revocation-statements + */ + +GatewayCreateProducerHanaDb.prototype['hanadb-revocation-statements'] = undefined; +/** + * HanaDb Username + * @member {String} hanadb-username + */ + +GatewayCreateProducerHanaDb.prototype['hanadb-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerHanaDb.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerHanaDb.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerHanaDb.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerHanaDb.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayCreateProducerHanaDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ + +GatewayCreateProducerHanaDb.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayCreateProducerHanaDb.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayCreateProducerHanaDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayCreateProducerHanaDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerHanaDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerHanaDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerHanaDb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerHanaDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerHanaDb.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerHanaDb; +exports["default"] = _default; + +/***/ }), + +/***/ 69707: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerHanaDbOutput model module. + * @module model/GatewayCreateProducerHanaDbOutput + * @version 3.6.3 + */ +var GatewayCreateProducerHanaDbOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerHanaDbOutput. + * @alias module:model/GatewayCreateProducerHanaDbOutput + */ + function GatewayCreateProducerHanaDbOutput() { + _classCallCheck(this, GatewayCreateProducerHanaDbOutput); + + GatewayCreateProducerHanaDbOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerHanaDbOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerHanaDbOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerHanaDbOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerHanaDbOutput} The populated GatewayCreateProducerHanaDbOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerHanaDbOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerHanaDbOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerHanaDbOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerHanaDbOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 74815: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerLdap model module. + * @module model/GatewayCreateProducerLdap + * @version 3.6.3 + */ +var GatewayCreateProducerLdap = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerLdap. + * gatewayCreateProducerLdap is a command that creates ldap producer [Deprecated: Use dynamic-secret-create-ldap command] + * @alias module:model/GatewayCreateProducerLdap + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerLdap(name) { + _classCallCheck(this, GatewayCreateProducerLdap); + + GatewayCreateProducerLdap.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerLdap, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerLdap from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerLdap} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerLdap} The populated GatewayCreateProducerLdap instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerLdap(); + + if (data.hasOwnProperty('bind-dn')) { + obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); + } + + if (data.hasOwnProperty('bind-dn-password')) { + obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('external-username')) { + obj['external-username'] = _ApiClient["default"].convertToType(data['external-username'], 'String'); + } + + if (data.hasOwnProperty('group-dn')) { + obj['group-dn'] = _ApiClient["default"].convertToType(data['group-dn'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('ldap-ca-cert')) { + obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('ldap-url')) { + obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('token-expiration')) { + obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); + } + + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerLdap; +}(); +/** + * Bind DN + * @member {String} bind-dn + */ + + +GatewayCreateProducerLdap.prototype['bind-dn'] = undefined; +/** + * Bind DN Password + * @member {String} bind-dn-password + */ + +GatewayCreateProducerLdap.prototype['bind-dn-password'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerLdap.prototype['delete_protection'] = undefined; +/** + * Externally provided username [true/false] + * @member {String} external-username + * @default 'false' + */ + +GatewayCreateProducerLdap.prototype['external-username'] = 'false'; +/** + * Group DN which the temporary user should be added + * @member {String} group-dn + */ + +GatewayCreateProducerLdap.prototype['group-dn'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerLdap.prototype['json'] = false; +/** + * CA Certificate File Content + * @member {String} ldap-ca-cert + */ + +GatewayCreateProducerLdap.prototype['ldap-ca-cert'] = undefined; +/** + * LDAP Server URL + * @member {String} ldap-url + */ + +GatewayCreateProducerLdap.prototype['ldap-url'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerLdap.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerLdap.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerLdap.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerLdap.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerLdap.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerLdap.prototype['token'] = undefined; +/** + * Token expiration + * @member {String} token-expiration + */ + +GatewayCreateProducerLdap.prototype['token-expiration'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerLdap.prototype['uid-token'] = undefined; +/** + * User Attribute + * @member {String} user-attribute + */ + +GatewayCreateProducerLdap.prototype['user-attribute'] = undefined; +/** + * User DN + * @member {String} user-dn + */ + +GatewayCreateProducerLdap.prototype['user-dn'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerLdap.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerLdap; +exports["default"] = _default; + +/***/ }), + +/***/ 53382: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerLdapOutput model module. + * @module model/GatewayCreateProducerLdapOutput + * @version 3.6.3 + */ +var GatewayCreateProducerLdapOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerLdapOutput. + * @alias module:model/GatewayCreateProducerLdapOutput + */ + function GatewayCreateProducerLdapOutput() { + _classCallCheck(this, GatewayCreateProducerLdapOutput); + + GatewayCreateProducerLdapOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerLdapOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerLdapOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerLdapOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerLdapOutput} The populated GatewayCreateProducerLdapOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerLdapOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerLdapOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerLdapOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerLdapOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 91036: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerMSSQL model module. + * @module model/GatewayCreateProducerMSSQL + * @version 3.6.3 + */ +var GatewayCreateProducerMSSQL = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerMSSQL. + * gatewayCreateProducerMSSQL is a command that creates mssql producer [Deprecated: Use dynamic-secret-create-mssql command] + * @alias module:model/GatewayCreateProducerMSSQL + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerMSSQL(name) { + _classCallCheck(this, GatewayCreateProducerMSSQL); + + GatewayCreateProducerMSSQL.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerMSSQL, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerMSSQL from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerMSSQL} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerMSSQL} The populated GatewayCreateProducerMSSQL instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerMSSQL(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('mssql-create-statements')) { + obj['mssql-create-statements'] = _ApiClient["default"].convertToType(data['mssql-create-statements'], 'String'); + } + + if (data.hasOwnProperty('mssql-dbname')) { + obj['mssql-dbname'] = _ApiClient["default"].convertToType(data['mssql-dbname'], 'String'); + } + + if (data.hasOwnProperty('mssql-host')) { + obj['mssql-host'] = _ApiClient["default"].convertToType(data['mssql-host'], 'String'); + } + + if (data.hasOwnProperty('mssql-password')) { + obj['mssql-password'] = _ApiClient["default"].convertToType(data['mssql-password'], 'String'); + } + + if (data.hasOwnProperty('mssql-port')) { + obj['mssql-port'] = _ApiClient["default"].convertToType(data['mssql-port'], 'String'); + } + + if (data.hasOwnProperty('mssql-revocation-statements')) { + obj['mssql-revocation-statements'] = _ApiClient["default"].convertToType(data['mssql-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('mssql-username')) { + obj['mssql-username'] = _ApiClient["default"].convertToType(data['mssql-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerMSSQL; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayCreateProducerMSSQL.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerMSSQL.prototype['json'] = false; +/** + * MSSQL Creation statements + * @member {String} mssql-create-statements + */ + +GatewayCreateProducerMSSQL.prototype['mssql-create-statements'] = undefined; +/** + * MSSQL Name + * @member {String} mssql-dbname + */ + +GatewayCreateProducerMSSQL.prototype['mssql-dbname'] = undefined; +/** + * MSSQL Host + * @member {String} mssql-host + * @default '127.0.0.1' + */ + +GatewayCreateProducerMSSQL.prototype['mssql-host'] = '127.0.0.1'; +/** + * MSSQL Password + * @member {String} mssql-password + */ + +GatewayCreateProducerMSSQL.prototype['mssql-password'] = undefined; +/** + * MSSQL Port + * @member {String} mssql-port + * @default '1433' + */ + +GatewayCreateProducerMSSQL.prototype['mssql-port'] = '1433'; +/** + * MSSQL Revocation statements + * @member {String} mssql-revocation-statements + */ + +GatewayCreateProducerMSSQL.prototype['mssql-revocation-statements'] = undefined; +/** + * MSSQL Username + * @member {String} mssql-username + */ + +GatewayCreateProducerMSSQL.prototype['mssql-username'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerMSSQL.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerMSSQL.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerMSSQL.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayCreateProducerMSSQL.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ + +GatewayCreateProducerMSSQL.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayCreateProducerMSSQL.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayCreateProducerMSSQL.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayCreateProducerMSSQL.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerMSSQL.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerMSSQL.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerMSSQL.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerMSSQL.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerMSSQL.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerMSSQL; +exports["default"] = _default; + +/***/ }), + +/***/ 91709: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerMSSQLOutput model module. + * @module model/GatewayCreateProducerMSSQLOutput + * @version 3.6.3 + */ +var GatewayCreateProducerMSSQLOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerMSSQLOutput. + * @alias module:model/GatewayCreateProducerMSSQLOutput + */ + function GatewayCreateProducerMSSQLOutput() { + _classCallCheck(this, GatewayCreateProducerMSSQLOutput); + + GatewayCreateProducerMSSQLOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerMSSQLOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerMSSQLOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerMSSQLOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerMSSQLOutput} The populated GatewayCreateProducerMSSQLOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerMSSQLOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerMSSQLOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerMSSQLOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerMSSQLOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 84176: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerMongo model module. + * @module model/GatewayCreateProducerMongo + * @version 3.6.3 + */ +var GatewayCreateProducerMongo = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerMongo. + * gatewayCreateProducerMongo is a command that creates either mongodb producer or mongodb atlas producer [Deprecated: Use dynamic-secret-create-mongodb command] + * @alias module:model/GatewayCreateProducerMongo + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerMongo(name) { + _classCallCheck(this, GatewayCreateProducerMongo); + + GatewayCreateProducerMongo.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerMongo, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerMongo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerMongo} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerMongo} The populated GatewayCreateProducerMongo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerMongo(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { + obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); + } + + if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { + obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); + } + + if (data.hasOwnProperty('mongodb-atlas-project-id')) { + obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); + } + + if (data.hasOwnProperty('mongodb-custom-data')) { + obj['mongodb-custom-data'] = _ApiClient["default"].convertToType(data['mongodb-custom-data'], 'String'); + } + + if (data.hasOwnProperty('mongodb-default-auth-db')) { + obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); + } + + if (data.hasOwnProperty('mongodb-host-port')) { + obj['mongodb-host-port'] = _ApiClient["default"].convertToType(data['mongodb-host-port'], 'String'); + } + + if (data.hasOwnProperty('mongodb-name')) { + obj['mongodb-name'] = _ApiClient["default"].convertToType(data['mongodb-name'], 'String'); + } + + if (data.hasOwnProperty('mongodb-password')) { + obj['mongodb-password'] = _ApiClient["default"].convertToType(data['mongodb-password'], 'String'); + } + + if (data.hasOwnProperty('mongodb-roles')) { + obj['mongodb-roles'] = _ApiClient["default"].convertToType(data['mongodb-roles'], 'String'); + } + + if (data.hasOwnProperty('mongodb-server-uri')) { + obj['mongodb-server-uri'] = _ApiClient["default"].convertToType(data['mongodb-server-uri'], 'String'); + } + + if (data.hasOwnProperty('mongodb-uri-options')) { + obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); + } + + if (data.hasOwnProperty('mongodb-username')) { + obj['mongodb-username'] = _ApiClient["default"].convertToType(data['mongodb-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerMongo; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayCreateProducerMongo.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerMongo.prototype['json'] = false; +/** + * MongoDB Atlas private key + * @member {String} mongodb-atlas-api-private-key + */ + +GatewayCreateProducerMongo.prototype['mongodb-atlas-api-private-key'] = undefined; +/** + * MongoDB Atlas public key + * @member {String} mongodb-atlas-api-public-key + */ + +GatewayCreateProducerMongo.prototype['mongodb-atlas-api-public-key'] = undefined; +/** + * MongoDB Atlas project ID + * @member {String} mongodb-atlas-project-id + */ + +GatewayCreateProducerMongo.prototype['mongodb-atlas-project-id'] = undefined; +/** + * MongoDB custom data + * @member {String} mongodb-custom-data + */ + +GatewayCreateProducerMongo.prototype['mongodb-custom-data'] = undefined; +/** + * MongoDB server default authentication database + * @member {String} mongodb-default-auth-db + */ + +GatewayCreateProducerMongo.prototype['mongodb-default-auth-db'] = undefined; +/** + * MongoDB server host and port + * @member {String} mongodb-host-port + */ + +GatewayCreateProducerMongo.prototype['mongodb-host-port'] = undefined; +/** + * MongoDB Name + * @member {String} mongodb-name + */ + +GatewayCreateProducerMongo.prototype['mongodb-name'] = undefined; +/** + * MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters + * @member {String} mongodb-password + */ + +GatewayCreateProducerMongo.prototype['mongodb-password'] = undefined; +/** + * MongoDB Roles + * @member {String} mongodb-roles + * @default '[]' + */ + +GatewayCreateProducerMongo.prototype['mongodb-roles'] = '[]'; +/** + * MongoDB server URI + * @member {String} mongodb-server-uri + */ + +GatewayCreateProducerMongo.prototype['mongodb-server-uri'] = undefined; +/** + * MongoDB server URI options + * @member {String} mongodb-uri-options + */ + +GatewayCreateProducerMongo.prototype['mongodb-uri-options'] = undefined; +/** + * MongoDB server username + * @member {String} mongodb-username + */ + +GatewayCreateProducerMongo.prototype['mongodb-username'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerMongo.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerMongo.prototype['password-length'] = undefined; +/** + * Encrypt producer with following key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerMongo.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayCreateProducerMongo.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayCreateProducerMongo.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayCreateProducerMongo.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayCreateProducerMongo.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerMongo.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerMongo.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerMongo.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerMongo.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerMongo.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerMongo; +exports["default"] = _default; + +/***/ }), + +/***/ 27257: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerMongoOutput model module. + * @module model/GatewayCreateProducerMongoOutput + * @version 3.6.3 + */ +var GatewayCreateProducerMongoOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerMongoOutput. + * @alias module:model/GatewayCreateProducerMongoOutput + */ + function GatewayCreateProducerMongoOutput() { + _classCallCheck(this, GatewayCreateProducerMongoOutput); + + GatewayCreateProducerMongoOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerMongoOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerMongoOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerMongoOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerMongoOutput} The populated GatewayCreateProducerMongoOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerMongoOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerMongoOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerMongoOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerMongoOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 20490: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerMySQL model module. + * @module model/GatewayCreateProducerMySQL + * @version 3.6.3 + */ +var GatewayCreateProducerMySQL = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerMySQL. + * gatewayCreateProducerMySQL is a command that creates mysql producer [Deprecated: Use dynamic-secret-create-mysql command] + * @alias module:model/GatewayCreateProducerMySQL + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerMySQL(name) { + _classCallCheck(this, GatewayCreateProducerMySQL); + + GatewayCreateProducerMySQL.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerMySQL, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerMySQL from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerMySQL} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerMySQL} The populated GatewayCreateProducerMySQL instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerMySQL(); + + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); + } + + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('mysql-dbname')) { + obj['mysql-dbname'] = _ApiClient["default"].convertToType(data['mysql-dbname'], 'String'); + } + + if (data.hasOwnProperty('mysql-host')) { + obj['mysql-host'] = _ApiClient["default"].convertToType(data['mysql-host'], 'String'); + } + + if (data.hasOwnProperty('mysql-password')) { + obj['mysql-password'] = _ApiClient["default"].convertToType(data['mysql-password'], 'String'); + } + + if (data.hasOwnProperty('mysql-port')) { + obj['mysql-port'] = _ApiClient["default"].convertToType(data['mysql-port'], 'String'); + } + + if (data.hasOwnProperty('mysql-revocation-statements')) { + obj['mysql-revocation-statements'] = _ApiClient["default"].convertToType(data['mysql-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('mysql-screation-statements')) { + obj['mysql-screation-statements'] = _ApiClient["default"].convertToType(data['mysql-screation-statements'], 'String'); + } + + if (data.hasOwnProperty('mysql-username')) { + obj['mysql-username'] = _ApiClient["default"].convertToType(data['mysql-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerMySQL; +}(); +/** + * (Optional) DB server certificates + * @member {String} db-server-certificates + */ + + +GatewayCreateProducerMySQL.prototype['db-server-certificates'] = undefined; +/** + * (Optional) Server name for certificate verification + * @member {String} db-server-name + */ + +GatewayCreateProducerMySQL.prototype['db-server-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerMySQL.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerMySQL.prototype['json'] = false; +/** + * MySQL DB Name + * @member {String} mysql-dbname + */ + +GatewayCreateProducerMySQL.prototype['mysql-dbname'] = undefined; +/** + * MySQL Host + * @member {String} mysql-host + * @default '127.0.0.1' + */ + +GatewayCreateProducerMySQL.prototype['mysql-host'] = '127.0.0.1'; +/** + * MySQL Password + * @member {String} mysql-password + */ + +GatewayCreateProducerMySQL.prototype['mysql-password'] = undefined; +/** + * MySQL Port + * @member {String} mysql-port + * @default '3306' + */ + +GatewayCreateProducerMySQL.prototype['mysql-port'] = '3306'; +/** + * MySQL Revocation statements + * @member {String} mysql-revocation-statements + */ + +GatewayCreateProducerMySQL.prototype['mysql-revocation-statements'] = undefined; +/** + * MySQL Creation statements + * @member {String} mysql-screation-statements + */ + +GatewayCreateProducerMySQL.prototype['mysql-screation-statements'] = undefined; +/** + * MySQL Username + * @member {String} mysql-username + */ + +GatewayCreateProducerMySQL.prototype['mysql-username'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerMySQL.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerMySQL.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerMySQL.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayCreateProducerMySQL.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayCreateProducerMySQL.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayCreateProducerMySQL.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayCreateProducerMySQL.prototype['secure-access-web'] = false; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +GatewayCreateProducerMySQL.prototype['ssl'] = false; +/** + * SSL connection certificate + * @member {String} ssl-certificate + */ + +GatewayCreateProducerMySQL.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerMySQL.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerMySQL.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerMySQL.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerMySQL.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerMySQL.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerMySQL; +exports["default"] = _default; + +/***/ }), + +/***/ 37983: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerMySQLOutput model module. + * @module model/GatewayCreateProducerMySQLOutput + * @version 3.6.3 + */ +var GatewayCreateProducerMySQLOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerMySQLOutput. + * @alias module:model/GatewayCreateProducerMySQLOutput + */ + function GatewayCreateProducerMySQLOutput() { + _classCallCheck(this, GatewayCreateProducerMySQLOutput); + + GatewayCreateProducerMySQLOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerMySQLOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerMySQLOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerMySQLOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerMySQLOutput} The populated GatewayCreateProducerMySQLOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerMySQLOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerMySQLOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerMySQLOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerMySQLOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 50589: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerNativeK8S model module. + * @module model/GatewayCreateProducerNativeK8S + * @version 3.6.3 + */ +var GatewayCreateProducerNativeK8S = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerNativeK8S. + * gatewayCreateProducerNativeK8S is a command that creates k8s producer [Deprecated: Use dynamic-secret-create-k8s command] + * @alias module:model/GatewayCreateProducerNativeK8S + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerNativeK8S(name) { + _classCallCheck(this, GatewayCreateProducerNativeK8S); + + GatewayCreateProducerNativeK8S.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerNativeK8S, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerNativeK8S from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerNativeK8S} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerNativeK8S} The populated GatewayCreateProducerNativeK8S instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerNativeK8S(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-allowed-namespaces')) { + obj['k8s-allowed-namespaces'] = _ApiClient["default"].convertToType(data['k8s-allowed-namespaces'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-ca-cert')) { + obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-endpoint')) { + obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-token')) { + obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); + } + + if (data.hasOwnProperty('k8s-namespace')) { + obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + } + + if (data.hasOwnProperty('k8s-predefined-role-name')) { + obj['k8s-predefined-role-name'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-name'], 'String'); + } + + if (data.hasOwnProperty('k8s-predefined-role-type')) { + obj['k8s-predefined-role-type'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-type'], 'String'); + } + + if (data.hasOwnProperty('k8s-rolebinding-yaml-def')) { + obj['k8s-rolebinding-yaml-def'] = _ApiClient["default"].convertToType(data['k8s-rolebinding-yaml-def'], 'String'); + } + + if (data.hasOwnProperty('k8s-service-account')) { + obj['k8s-service-account'] = _ApiClient["default"].convertToType(data['k8s-service-account'], 'String'); + } + + if (data.hasOwnProperty('k8s-service-account-type')) { + obj['k8s-service-account-type'] = _ApiClient["default"].convertToType(data['k8s-service-account-type'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-dashboard-url')) { + obj['secure-access-dashboard-url'] = _ApiClient["default"].convertToType(data['secure-access-dashboard-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-service-account')) { + obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerNativeK8S; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayCreateProducerNativeK8S.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerNativeK8S.prototype['json'] = false; +/** + * Comma-separated list of allowed K8S namespaces for the generated ServiceAccount (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-allowed-namespaces + */ + +GatewayCreateProducerNativeK8S.prototype['k8s-allowed-namespaces'] = undefined; +/** + * K8S cluster CA certificate + * @member {String} k8s-cluster-ca-cert + */ + +GatewayCreateProducerNativeK8S.prototype['k8s-cluster-ca-cert'] = undefined; +/** + * K8S cluster URL endpoint + * @member {String} k8s-cluster-endpoint + */ + +GatewayCreateProducerNativeK8S.prototype['k8s-cluster-endpoint'] = undefined; +/** + * K8S cluster Bearer token + * @member {String} k8s-cluster-token + */ + +GatewayCreateProducerNativeK8S.prototype['k8s-cluster-token'] = undefined; +/** + * K8S Namespace where the ServiceAccount exists. + * @member {String} k8s-namespace + */ + +GatewayCreateProducerNativeK8S.prototype['k8s-namespace'] = undefined; +/** + * The pre-existing Role or ClusterRole name to bind the generated ServiceAccount to (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-predefined-role-name + */ + +GatewayCreateProducerNativeK8S.prototype['k8s-predefined-role-name'] = undefined; +/** + * Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-predefined-role-type + */ + +GatewayCreateProducerNativeK8S.prototype['k8s-predefined-role-type'] = undefined; +/** + * Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-rolebinding-yaml-def + */ + +GatewayCreateProducerNativeK8S.prototype['k8s-rolebinding-yaml-def'] = undefined; +/** + * K8S ServiceAccount to extract token from. + * @member {String} k8s-service-account + */ + +GatewayCreateProducerNativeK8S.prototype['k8s-service-account'] = undefined; +/** + * K8S ServiceAccount type [fixed, dynamic]. + * @member {String} k8s-service-account-type + */ + +GatewayCreateProducerNativeK8S.prototype['k8s-service-account-type'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerNativeK8S.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerNativeK8S.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ + +GatewayCreateProducerNativeK8S.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayCreateProducerNativeK8S.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ + +GatewayCreateProducerNativeK8S.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * The K8s dashboard url + * @member {String} secure-access-dashboard-url + */ + +GatewayCreateProducerNativeK8S.prototype['secure-access-dashboard-url'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayCreateProducerNativeK8S.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayCreateProducerNativeK8S.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +GatewayCreateProducerNativeK8S.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +GatewayCreateProducerNativeK8S.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerNativeK8S.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerNativeK8S.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerNativeK8S.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerNativeK8S.prototype['uid-token'] = undefined; +/** + * Use the GW's service account + * @member {Boolean} use-gw-service-account + */ + +GatewayCreateProducerNativeK8S.prototype['use-gw-service-account'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerNativeK8S.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerNativeK8S; +exports["default"] = _default; + +/***/ }), + +/***/ 4408: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerNativeK8SOutput model module. + * @module model/GatewayCreateProducerNativeK8SOutput + * @version 3.6.3 + */ +var GatewayCreateProducerNativeK8SOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerNativeK8SOutput. + * @alias module:model/GatewayCreateProducerNativeK8SOutput + */ + function GatewayCreateProducerNativeK8SOutput() { + _classCallCheck(this, GatewayCreateProducerNativeK8SOutput); + + GatewayCreateProducerNativeK8SOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerNativeK8SOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerNativeK8SOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerNativeK8SOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerNativeK8SOutput} The populated GatewayCreateProducerNativeK8SOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerNativeK8SOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerNativeK8SOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerNativeK8SOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerNativeK8SOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 11382: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerOracleDb model module. + * @module model/GatewayCreateProducerOracleDb + * @version 3.6.3 + */ +var GatewayCreateProducerOracleDb = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerOracleDb. + * gatewayCreateProducerOracleDb is a command that creates oracle db producer [Deprecated: Use dynamic-secret-create-oracledb command] + * @alias module:model/GatewayCreateProducerOracleDb + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerOracleDb(name) { + _classCallCheck(this, GatewayCreateProducerOracleDb); + + GatewayCreateProducerOracleDb.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerOracleDb, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerOracleDb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerOracleDb} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerOracleDb} The populated GatewayCreateProducerOracleDb instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerOracleDb(); + + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); + } + + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('oracle-host')) { + obj['oracle-host'] = _ApiClient["default"].convertToType(data['oracle-host'], 'String'); + } + + if (data.hasOwnProperty('oracle-password')) { + obj['oracle-password'] = _ApiClient["default"].convertToType(data['oracle-password'], 'String'); + } + + if (data.hasOwnProperty('oracle-port')) { + obj['oracle-port'] = _ApiClient["default"].convertToType(data['oracle-port'], 'String'); + } + + if (data.hasOwnProperty('oracle-revocation-statements')) { + obj['oracle-revocation-statements'] = _ApiClient["default"].convertToType(data['oracle-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('oracle-screation-statements')) { + obj['oracle-screation-statements'] = _ApiClient["default"].convertToType(data['oracle-screation-statements'], 'String'); + } + + if (data.hasOwnProperty('oracle-service-name')) { + obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); + } + + if (data.hasOwnProperty('oracle-username')) { + obj['oracle-username'] = _ApiClient["default"].convertToType(data['oracle-username'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerOracleDb; +}(); +/** + * (Optional) DB server certificates + * @member {String} db-server-certificates + */ + + +GatewayCreateProducerOracleDb.prototype['db-server-certificates'] = undefined; +/** + * (Optional) Server name for certificate verification + * @member {String} db-server-name + */ + +GatewayCreateProducerOracleDb.prototype['db-server-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerOracleDb.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerOracleDb.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerOracleDb.prototype['name'] = undefined; +/** + * Oracle Host + * @member {String} oracle-host + * @default '127.0.0.1' + */ + +GatewayCreateProducerOracleDb.prototype['oracle-host'] = '127.0.0.1'; +/** + * Oracle Password + * @member {String} oracle-password + */ + +GatewayCreateProducerOracleDb.prototype['oracle-password'] = undefined; +/** + * Oracle Port + * @member {String} oracle-port + * @default '1521' + */ + +GatewayCreateProducerOracleDb.prototype['oracle-port'] = '1521'; +/** + * Oracle Revocation statements + * @member {String} oracle-revocation-statements + */ + +GatewayCreateProducerOracleDb.prototype['oracle-revocation-statements'] = undefined; +/** + * Oracle Creation statements + * @member {String} oracle-screation-statements + */ + +GatewayCreateProducerOracleDb.prototype['oracle-screation-statements'] = undefined; +/** + * Oracle DB Name + * @member {String} oracle-service-name + */ + +GatewayCreateProducerOracleDb.prototype['oracle-service-name'] = undefined; +/** + * Oracle Username + * @member {String} oracle-username + */ + +GatewayCreateProducerOracleDb.prototype['oracle-username'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerOracleDb.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerOracleDb.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayCreateProducerOracleDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + * @default 'false' + */ + +GatewayCreateProducerOracleDb.prototype['secure-access-enable'] = 'false'; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayCreateProducerOracleDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayCreateProducerOracleDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerOracleDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerOracleDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerOracleDb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerOracleDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerOracleDb.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerOracleDb; +exports["default"] = _default; + +/***/ }), + +/***/ 92499: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerOracleDbOutput model module. + * @module model/GatewayCreateProducerOracleDbOutput + * @version 3.6.3 + */ +var GatewayCreateProducerOracleDbOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerOracleDbOutput. + * @alias module:model/GatewayCreateProducerOracleDbOutput + */ + function GatewayCreateProducerOracleDbOutput() { + _classCallCheck(this, GatewayCreateProducerOracleDbOutput); + + GatewayCreateProducerOracleDbOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerOracleDbOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerOracleDbOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerOracleDbOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerOracleDbOutput} The populated GatewayCreateProducerOracleDbOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerOracleDbOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerOracleDbOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerOracleDbOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerOracleDbOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 29262: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerPing model module. + * @module model/GatewayCreateProducerPing + * @version 3.6.3 + */ +var GatewayCreateProducerPing = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerPing. + * gatewayCreateProducerPing is a command that creates ping producer [Deprecated: Use dynamic-secret-create-ping command] + * @alias module:model/GatewayCreateProducerPing + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerPing(name) { + _classCallCheck(this, GatewayCreateProducerPing); + + GatewayCreateProducerPing.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerPing, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerPing from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerPing} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerPing} The populated GatewayCreateProducerPing instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerPing(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('ping-administrative-port')) { + obj['ping-administrative-port'] = _ApiClient["default"].convertToType(data['ping-administrative-port'], 'String'); + } + + if (data.hasOwnProperty('ping-atm-id')) { + obj['ping-atm-id'] = _ApiClient["default"].convertToType(data['ping-atm-id'], 'String'); + } + + if (data.hasOwnProperty('ping-authorization-port')) { + obj['ping-authorization-port'] = _ApiClient["default"].convertToType(data['ping-authorization-port'], 'String'); + } + + if (data.hasOwnProperty('ping-cert-subject-dn')) { + obj['ping-cert-subject-dn'] = _ApiClient["default"].convertToType(data['ping-cert-subject-dn'], 'String'); + } + + if (data.hasOwnProperty('ping-client-authentication-type')) { + obj['ping-client-authentication-type'] = _ApiClient["default"].convertToType(data['ping-client-authentication-type'], 'String'); + } + + if (data.hasOwnProperty('ping-enforce-replay-prevention')) { + obj['ping-enforce-replay-prevention'] = _ApiClient["default"].convertToType(data['ping-enforce-replay-prevention'], 'String'); + } + + if (data.hasOwnProperty('ping-grant-types')) { + obj['ping-grant-types'] = _ApiClient["default"].convertToType(data['ping-grant-types'], ['String']); + } + + if (data.hasOwnProperty('ping-issuer-dn')) { + obj['ping-issuer-dn'] = _ApiClient["default"].convertToType(data['ping-issuer-dn'], 'String'); + } + + if (data.hasOwnProperty('ping-jwks')) { + obj['ping-jwks'] = _ApiClient["default"].convertToType(data['ping-jwks'], 'String'); + } + + if (data.hasOwnProperty('ping-jwks-url')) { + obj['ping-jwks-url'] = _ApiClient["default"].convertToType(data['ping-jwks-url'], 'String'); + } + + if (data.hasOwnProperty('ping-password')) { + obj['ping-password'] = _ApiClient["default"].convertToType(data['ping-password'], 'String'); + } + + if (data.hasOwnProperty('ping-privileged-user')) { + obj['ping-privileged-user'] = _ApiClient["default"].convertToType(data['ping-privileged-user'], 'String'); + } + + if (data.hasOwnProperty('ping-redirect-uris')) { + obj['ping-redirect-uris'] = _ApiClient["default"].convertToType(data['ping-redirect-uris'], ['String']); + } + + if (data.hasOwnProperty('ping-restricted-scopes')) { + obj['ping-restricted-scopes'] = _ApiClient["default"].convertToType(data['ping-restricted-scopes'], ['String']); + } + + if (data.hasOwnProperty('ping-signing-algo')) { + obj['ping-signing-algo'] = _ApiClient["default"].convertToType(data['ping-signing-algo'], 'String'); + } + + if (data.hasOwnProperty('ping-url')) { + obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerPing; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayCreateProducerPing.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerPing.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerPing.prototype['name'] = undefined; +/** + * Ping Federate administrative port + * @member {String} ping-administrative-port + * @default '9999' + */ + +GatewayCreateProducerPing.prototype['ping-administrative-port'] = '9999'; +/** + * Set a specific Access Token Management (ATM) instance for the created OAuth Client by providing the ATM Id. If no explicit value is given, the default pingfederate server ATM will be set. + * @member {String} ping-atm-id + */ + +GatewayCreateProducerPing.prototype['ping-atm-id'] = undefined; +/** + * Ping Federate authorization port + * @member {String} ping-authorization-port + * @default '9031' + */ + +GatewayCreateProducerPing.prototype['ping-authorization-port'] = '9031'; +/** + * The subject DN of the client certificate. If no explicit value is given, the producer will create CA certificate and matched client certificate and return it as value. Used in conjunction with ping-issuer-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) + * @member {String} ping-cert-subject-dn + */ + +GatewayCreateProducerPing.prototype['ping-cert-subject-dn'] = undefined; +/** + * OAuth Client Authentication Type [CLIENT_SECRET, PRIVATE_KEY_JWT, CLIENT_TLS_CERTIFICATE] + * @member {String} ping-client-authentication-type + * @default 'CLIENT_SECRET' + */ + +GatewayCreateProducerPing.prototype['ping-client-authentication-type'] = 'CLIENT_SECRET'; +/** + * Determines whether PingFederate requires a unique signed JWT from the client for each action (relevant for PRIVATE_KEY_JWT authentication method) [true/false] + * @member {String} ping-enforce-replay-prevention + * @default 'false' + */ + +GatewayCreateProducerPing.prototype['ping-enforce-replay-prevention'] = 'false'; +/** + * List of OAuth client grant types [IMPLICIT, AUTHORIZATION_CODE, CLIENT_CREDENTIALS, TOKEN_EXCHANGE, REFRESH_TOKEN, ASSERTION_GRANTS, PASSWORD, RESOURCE_OWNER_CREDENTIALS]. If no explicit value is given, AUTHORIZATION_CODE will be selected as default. + * @member {Array.} ping-grant-types + */ + +GatewayCreateProducerPing.prototype['ping-grant-types'] = undefined; +/** + * Issuer DN of trusted CA certificate that imported into Ping Federate server. You may select \\\"Trust Any\\\" to trust all the existing issuers in Ping Federate server. Used in conjunction with ping-cert-subject-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) + * @member {String} ping-issuer-dn + */ + +GatewayCreateProducerPing.prototype['ping-issuer-dn'] = undefined; +/** + * Base64-encoded JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT (Sign Algo: RS256) and return it as value (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-jwks + */ + +GatewayCreateProducerPing.prototype['ping-jwks'] = undefined; +/** + * The URL of the JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT and return it as value (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-jwks-url + */ + +GatewayCreateProducerPing.prototype['ping-jwks-url'] = undefined; +/** + * Ping Federate privileged user password + * @member {String} ping-password + */ + +GatewayCreateProducerPing.prototype['ping-password'] = undefined; +/** + * Ping Federate privileged user + * @member {String} ping-privileged-user + */ + +GatewayCreateProducerPing.prototype['ping-privileged-user'] = undefined; +/** + * List of URIs to which the OAuth authorization server may redirect the resource owner's user agent after authorization is obtained. At least one redirection URI is required for the AUTHORIZATION_CODE and IMPLICIT grant types. + * @member {Array.} ping-redirect-uris + */ + +GatewayCreateProducerPing.prototype['ping-redirect-uris'] = undefined; +/** + * Limit the OAuth client to specific scopes list + * @member {Array.} ping-restricted-scopes + */ + +GatewayCreateProducerPing.prototype['ping-restricted-scopes'] = undefined; +/** + * The signing algorithm that the client must use to sign its request objects [RS256,RS384,RS512,ES256,ES384,ES512,PS256,PS384,PS512] If no explicit value is given, the client can use any of the supported signing algorithms (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-signing-algo + */ + +GatewayCreateProducerPing.prototype['ping-signing-algo'] = undefined; +/** + * Ping URL + * @member {String} ping-url + */ + +GatewayCreateProducerPing.prototype['ping-url'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerPing.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerPing.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerPing.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerPing.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerPing.prototype['uid-token'] = undefined; +/** + * The time from dynamic secret creation to expiration. + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerPing.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerPing; +exports["default"] = _default; + +/***/ }), + +/***/ 7579: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerPingOutput model module. + * @module model/GatewayCreateProducerPingOutput + * @version 3.6.3 + */ +var GatewayCreateProducerPingOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerPingOutput. + * @alias module:model/GatewayCreateProducerPingOutput + */ + function GatewayCreateProducerPingOutput() { + _classCallCheck(this, GatewayCreateProducerPingOutput); + + GatewayCreateProducerPingOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerPingOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerPingOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerPingOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerPingOutput} The populated GatewayCreateProducerPingOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerPingOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerPingOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerPingOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerPingOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 42452: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerPostgreSQL model module. + * @module model/GatewayCreateProducerPostgreSQL + * @version 3.6.3 + */ +var GatewayCreateProducerPostgreSQL = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerPostgreSQL. + * gatewayCreateProducerPostgreSQL is a command that creates postgresql producer [Deprecated: Use dynamic-secret-create-postgresql command] + * @alias module:model/GatewayCreateProducerPostgreSQL + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerPostgreSQL(name) { + _classCallCheck(this, GatewayCreateProducerPostgreSQL); + + GatewayCreateProducerPostgreSQL.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerPostgreSQL, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerPostgreSQL from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerPostgreSQL} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerPostgreSQL} The populated GatewayCreateProducerPostgreSQL instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerPostgreSQL(); + + if (data.hasOwnProperty('creation-statements')) { + obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('postgresql-db-name')) { + obj['postgresql-db-name'] = _ApiClient["default"].convertToType(data['postgresql-db-name'], 'String'); + } + + if (data.hasOwnProperty('postgresql-host')) { + obj['postgresql-host'] = _ApiClient["default"].convertToType(data['postgresql-host'], 'String'); + } + + if (data.hasOwnProperty('postgresql-password')) { + obj['postgresql-password'] = _ApiClient["default"].convertToType(data['postgresql-password'], 'String'); + } + + if (data.hasOwnProperty('postgresql-port')) { + obj['postgresql-port'] = _ApiClient["default"].convertToType(data['postgresql-port'], 'String'); + } + + if (data.hasOwnProperty('postgresql-username')) { + obj['postgresql-username'] = _ApiClient["default"].convertToType(data['postgresql-username'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key')) { + obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); + } + + if (data.hasOwnProperty('revocation-statement')) { + obj['revocation-statement'] = _ApiClient["default"].convertToType(data['revocation-statement'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerPostgreSQL; +}(); +/** + * PostgreSQL Creation statements + * @member {String} creation-statements + */ + + +GatewayCreateProducerPostgreSQL.prototype['creation-statements'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerPostgreSQL.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerPostgreSQL.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerPostgreSQL.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerPostgreSQL.prototype['password-length'] = undefined; +/** + * PostgreSQL DB Name + * @member {String} postgresql-db-name + */ + +GatewayCreateProducerPostgreSQL.prototype['postgresql-db-name'] = undefined; +/** + * PostgreSQL Host + * @member {String} postgresql-host + * @default '127.0.0.1' + */ + +GatewayCreateProducerPostgreSQL.prototype['postgresql-host'] = '127.0.0.1'; +/** + * PostgreSQL Password + * @member {String} postgresql-password + */ + +GatewayCreateProducerPostgreSQL.prototype['postgresql-password'] = undefined; +/** + * PostgreSQL Port + * @member {String} postgresql-port + * @default '5432' + */ + +GatewayCreateProducerPostgreSQL.prototype['postgresql-port'] = '5432'; +/** + * PostgreSQL Username + * @member {String} postgresql-username + */ + +GatewayCreateProducerPostgreSQL.prototype['postgresql-username'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key + */ + +GatewayCreateProducerPostgreSQL.prototype['producer-encryption-key'] = undefined; +/** + * PostgreSQL Revocation statements + * @member {String} revocation-statement + */ + +GatewayCreateProducerPostgreSQL.prototype['revocation-statement'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayCreateProducerPostgreSQL.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ + +GatewayCreateProducerPostgreSQL.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayCreateProducerPostgreSQL.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayCreateProducerPostgreSQL.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayCreateProducerPostgreSQL.prototype['secure-access-web'] = false; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +GatewayCreateProducerPostgreSQL.prototype['ssl'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerPostgreSQL.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerPostgreSQL.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerPostgreSQL.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerPostgreSQL.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerPostgreSQL.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerPostgreSQL; +exports["default"] = _default; + +/***/ }), + +/***/ 84613: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerPostgreSQLOutput model module. + * @module model/GatewayCreateProducerPostgreSQLOutput + * @version 3.6.3 + */ +var GatewayCreateProducerPostgreSQLOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerPostgreSQLOutput. + * @alias module:model/GatewayCreateProducerPostgreSQLOutput + */ + function GatewayCreateProducerPostgreSQLOutput() { + _classCallCheck(this, GatewayCreateProducerPostgreSQLOutput); + + GatewayCreateProducerPostgreSQLOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerPostgreSQLOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerPostgreSQLOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerPostgreSQLOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerPostgreSQLOutput} The populated GatewayCreateProducerPostgreSQLOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerPostgreSQLOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerPostgreSQLOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerPostgreSQLOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerPostgreSQLOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 57964: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerRabbitMQ model module. + * @module model/GatewayCreateProducerRabbitMQ + * @version 3.6.3 + */ +var GatewayCreateProducerRabbitMQ = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerRabbitMQ. + * gatewayCreateProducerRabbitMQ is a command that creates rabbitmq producer [Deprecated: Use dynamic-secret-create-rabbitmq command] + * @alias module:model/GatewayCreateProducerRabbitMQ + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerRabbitMQ(name) { + _classCallCheck(this, GatewayCreateProducerRabbitMQ); + + GatewayCreateProducerRabbitMQ.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerRabbitMQ, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerRabbitMQ from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerRabbitMQ} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerRabbitMQ} The populated GatewayCreateProducerRabbitMQ instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerRabbitMQ(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-admin-pwd')) { + obj['rabbitmq-admin-pwd'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-admin-user')) { + obj['rabbitmq-admin-user'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-user'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-server-uri')) { + obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-conf-permission')) { + obj['rabbitmq-user-conf-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-conf-permission'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-read-permission')) { + obj['rabbitmq-user-read-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-read-permission'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-tags')) { + obj['rabbitmq-user-tags'] = _ApiClient["default"].convertToType(data['rabbitmq-user-tags'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-vhost')) { + obj['rabbitmq-user-vhost'] = _ApiClient["default"].convertToType(data['rabbitmq-user-vhost'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-write-permission')) { + obj['rabbitmq-user-write-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-write-permission'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerRabbitMQ; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayCreateProducerRabbitMQ.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerRabbitMQ.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerRabbitMQ.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerRabbitMQ.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerRabbitMQ.prototype['producer-encryption-key-name'] = undefined; +/** + * RabbitMQ Admin password + * @member {String} rabbitmq-admin-pwd + */ + +GatewayCreateProducerRabbitMQ.prototype['rabbitmq-admin-pwd'] = undefined; +/** + * RabbitMQ Admin User + * @member {String} rabbitmq-admin-user + */ + +GatewayCreateProducerRabbitMQ.prototype['rabbitmq-admin-user'] = undefined; +/** + * Server URI + * @member {String} rabbitmq-server-uri + */ + +GatewayCreateProducerRabbitMQ.prototype['rabbitmq-server-uri'] = undefined; +/** + * User configuration permission + * @member {String} rabbitmq-user-conf-permission + */ + +GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-conf-permission'] = undefined; +/** + * User read permission + * @member {String} rabbitmq-user-read-permission + */ + +GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-read-permission'] = undefined; +/** + * User Tags + * @member {String} rabbitmq-user-tags + */ + +GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-tags'] = undefined; +/** + * User Virtual Host + * @member {String} rabbitmq-user-vhost + */ + +GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-vhost'] = undefined; +/** + * User write permission + * @member {String} rabbitmq-user-write-permission + */ + +GatewayCreateProducerRabbitMQ.prototype['rabbitmq-user-write-permission'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayCreateProducerRabbitMQ.prototype['secure-access-enable'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ + +GatewayCreateProducerRabbitMQ.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ + +GatewayCreateProducerRabbitMQ.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +GatewayCreateProducerRabbitMQ.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +GatewayCreateProducerRabbitMQ.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerRabbitMQ.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerRabbitMQ.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerRabbitMQ.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerRabbitMQ.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerRabbitMQ.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerRabbitMQ; +exports["default"] = _default; + +/***/ }), + +/***/ 57357: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerRabbitMQOutput model module. + * @module model/GatewayCreateProducerRabbitMQOutput + * @version 3.6.3 + */ +var GatewayCreateProducerRabbitMQOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerRabbitMQOutput. + * @alias module:model/GatewayCreateProducerRabbitMQOutput + */ + function GatewayCreateProducerRabbitMQOutput() { + _classCallCheck(this, GatewayCreateProducerRabbitMQOutput); + + GatewayCreateProducerRabbitMQOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerRabbitMQOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerRabbitMQOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerRabbitMQOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerRabbitMQOutput} The populated GatewayCreateProducerRabbitMQOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerRabbitMQOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerRabbitMQOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerRabbitMQOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerRabbitMQOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 40686: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerRdp model module. + * @module model/GatewayCreateProducerRdp + * @version 3.6.3 + */ +var GatewayCreateProducerRdp = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerRdp. + * gatewayCreateProducerRdp is a command that creates rdp producer [Deprecated: Use dynamic-secret-create-rdp command] + * @alias module:model/GatewayCreateProducerRdp + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerRdp(name) { + _classCallCheck(this, GatewayCreateProducerRdp); + + GatewayCreateProducerRdp.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerRdp, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerRdp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerRdp} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerRdp} The populated GatewayCreateProducerRdp instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerRdp(); + + if (data.hasOwnProperty('allow-user-extend-session')) { + obj['allow-user-extend-session'] = _ApiClient["default"].convertToType(data['allow-user-extend-session'], 'Number'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('fixed-user-only')) { + obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('rdp-admin-name')) { + obj['rdp-admin-name'] = _ApiClient["default"].convertToType(data['rdp-admin-name'], 'String'); + } + + if (data.hasOwnProperty('rdp-admin-pwd')) { + obj['rdp-admin-pwd'] = _ApiClient["default"].convertToType(data['rdp-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('rdp-host-name')) { + obj['rdp-host-name'] = _ApiClient["default"].convertToType(data['rdp-host-name'], 'String'); + } + + if (data.hasOwnProperty('rdp-host-port')) { + obj['rdp-host-port'] = _ApiClient["default"].convertToType(data['rdp-host-port'], 'String'); + } + + if (data.hasOwnProperty('rdp-user-groups')) { + obj['rdp-user-groups'] = _ApiClient["default"].convertToType(data['rdp-user-groups'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-rd-gateway-server')) { + obj['secure-access-rd-gateway-server'] = _ApiClient["default"].convertToType(data['secure-access-rd-gateway-server'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('warn-user-before-expiration')) { + obj['warn-user-before-expiration'] = _ApiClient["default"].convertToType(data['warn-user-before-expiration'], 'Number'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerRdp; +}(); +/** + * AllowUserExtendSession + * @member {Number} allow-user-extend-session + */ + + +GatewayCreateProducerRdp.prototype['allow-user-extend-session'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerRdp.prototype['delete_protection'] = undefined; +/** + * Allow access using externally (IdP) provided username [true/false] + * @member {String} fixed-user-only + * @default 'false' + */ + +GatewayCreateProducerRdp.prototype['fixed-user-only'] = 'false'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerRdp.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerRdp.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerRdp.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerRdp.prototype['producer-encryption-key-name'] = undefined; +/** + * RDP Admin Name + * @member {String} rdp-admin-name + */ + +GatewayCreateProducerRdp.prototype['rdp-admin-name'] = undefined; +/** + * RDP Admin password + * @member {String} rdp-admin-pwd + */ + +GatewayCreateProducerRdp.prototype['rdp-admin-pwd'] = undefined; +/** + * Hostname + * @member {String} rdp-host-name + */ + +GatewayCreateProducerRdp.prototype['rdp-host-name'] = undefined; +/** + * Port + * @member {String} rdp-host-port + * @default '22' + */ + +GatewayCreateProducerRdp.prototype['rdp-host-port'] = '22'; +/** + * Groups + * @member {String} rdp-user-groups + */ + +GatewayCreateProducerRdp.prototype['rdp-user-groups'] = undefined; +/** + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false + */ + +GatewayCreateProducerRdp.prototype['secure-access-allow-external-user'] = false; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayCreateProducerRdp.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +GatewayCreateProducerRdp.prototype['secure-access-host'] = undefined; +/** + * RD Gateway server + * @member {String} secure-access-rd-gateway-server + */ + +GatewayCreateProducerRdp.prototype['secure-access-rd-gateway-server'] = undefined; +/** + * Required when the Dynamic Secret is used for a domain user + * @member {String} secure-access-rdp-domain + */ + +GatewayCreateProducerRdp.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ + +GatewayCreateProducerRdp.prototype['secure-access-rdp-user'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerRdp.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerRdp.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerRdp.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerRdp.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerRdp.prototype['user-ttl'] = '60m'; +/** + * WarnBeforeUserExpiration + * @member {Number} warn-user-before-expiration + */ + +GatewayCreateProducerRdp.prototype['warn-user-before-expiration'] = undefined; +var _default = GatewayCreateProducerRdp; +exports["default"] = _default; + +/***/ }), + +/***/ 1915: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerRdpOutput model module. + * @module model/GatewayCreateProducerRdpOutput + * @version 3.6.3 + */ +var GatewayCreateProducerRdpOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerRdpOutput. + * @alias module:model/GatewayCreateProducerRdpOutput + */ + function GatewayCreateProducerRdpOutput() { + _classCallCheck(this, GatewayCreateProducerRdpOutput); + + GatewayCreateProducerRdpOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerRdpOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerRdpOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerRdpOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerRdpOutput} The populated GatewayCreateProducerRdpOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerRdpOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerRdpOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerRdpOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerRdpOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 30759: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerRedis model module. + * @module model/GatewayCreateProducerRedis + * @version 3.6.3 + */ +var GatewayCreateProducerRedis = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerRedis. + * gatewayCreateProducerRedis is a command that creates Redis producer [Deprecated: Use dynamic-secret-create-redis command] + * @alias module:model/GatewayCreateProducerRedis + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerRedis(name) { + _classCallCheck(this, GatewayCreateProducerRedis); + + GatewayCreateProducerRedis.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerRedis, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerRedis from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerRedis} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerRedis} The populated GatewayCreateProducerRedis instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerRedis(); + + if (data.hasOwnProperty('acl-rules')) { + obj['acl-rules'] = _ApiClient["default"].convertToType(data['acl-rules'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerRedis; +}(); +/** + * A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '[\"~*\", \"+@read\"]' + * @member {String} acl-rules + */ + + +GatewayCreateProducerRedis.prototype['acl-rules'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerRedis.prototype['delete_protection'] = undefined; +/** + * Redis Host + * @member {String} host + * @default '127.0.0.1' + */ + +GatewayCreateProducerRedis.prototype['host'] = '127.0.0.1'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerRedis.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerRedis.prototype['name'] = undefined; +/** + * Redis Password + * @member {String} password + */ + +GatewayCreateProducerRedis.prototype['password'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerRedis.prototype['password-length'] = undefined; +/** + * Redis Port + * @member {String} port + * @default '6379' + */ + +GatewayCreateProducerRedis.prototype['port'] = '6379'; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerRedis.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +GatewayCreateProducerRedis.prototype['ssl'] = false; +/** + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} ssl-certificate + */ + +GatewayCreateProducerRedis.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerRedis.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerRedis.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerRedis.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerRedis.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerRedis.prototype['user-ttl'] = '60m'; +/** + * Redis Username + * @member {String} username + */ + +GatewayCreateProducerRedis.prototype['username'] = undefined; +var _default = GatewayCreateProducerRedis; +exports["default"] = _default; + +/***/ }), + +/***/ 69950: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerRedisOutput model module. + * @module model/GatewayCreateProducerRedisOutput + * @version 3.6.3 + */ +var GatewayCreateProducerRedisOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerRedisOutput. + * @alias module:model/GatewayCreateProducerRedisOutput + */ + function GatewayCreateProducerRedisOutput() { + _classCallCheck(this, GatewayCreateProducerRedisOutput); + + GatewayCreateProducerRedisOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerRedisOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerRedisOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerRedisOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerRedisOutput} The populated GatewayCreateProducerRedisOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerRedisOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerRedisOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerRedisOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerRedisOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 84307: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerRedshift model module. + * @module model/GatewayCreateProducerRedshift + * @version 3.6.3 + */ +var GatewayCreateProducerRedshift = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerRedshift. + * gatewayCreateProducerRedshift is a command that creates redshift producer [Deprecated: Use dynamic-secret-create-redshift command] + * @alias module:model/GatewayCreateProducerRedshift + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerRedshift(name) { + _classCallCheck(this, GatewayCreateProducerRedshift); + + GatewayCreateProducerRedshift.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerRedshift, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerRedshift from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerRedshift} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerRedshift} The populated GatewayCreateProducerRedshift instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerRedshift(); + + if (data.hasOwnProperty('creation-statements')) { + obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key')) { + obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); + } + + if (data.hasOwnProperty('redshift-db-name')) { + obj['redshift-db-name'] = _ApiClient["default"].convertToType(data['redshift-db-name'], 'String'); + } + + if (data.hasOwnProperty('redshift-host')) { + obj['redshift-host'] = _ApiClient["default"].convertToType(data['redshift-host'], 'String'); + } + + if (data.hasOwnProperty('redshift-password')) { + obj['redshift-password'] = _ApiClient["default"].convertToType(data['redshift-password'], 'String'); + } + + if (data.hasOwnProperty('redshift-port')) { + obj['redshift-port'] = _ApiClient["default"].convertToType(data['redshift-port'], 'String'); + } + + if (data.hasOwnProperty('redshift-username')) { + obj['redshift-username'] = _ApiClient["default"].convertToType(data['redshift-username'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerRedshift; +}(); +/** + * Redshift Creation statements + * @member {String} creation-statements + */ + + +GatewayCreateProducerRedshift.prototype['creation-statements'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerRedshift.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerRedshift.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerRedshift.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerRedshift.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key + */ + +GatewayCreateProducerRedshift.prototype['producer-encryption-key'] = undefined; +/** + * Redshift DB Name + * @member {String} redshift-db-name + */ + +GatewayCreateProducerRedshift.prototype['redshift-db-name'] = undefined; +/** + * Redshift Host + * @member {String} redshift-host + * @default '127.0.0.1' + */ + +GatewayCreateProducerRedshift.prototype['redshift-host'] = '127.0.0.1'; +/** + * Redshift Password + * @member {String} redshift-password + */ + +GatewayCreateProducerRedshift.prototype['redshift-password'] = undefined; +/** + * Redshift Port + * @member {String} redshift-port + * @default '5439' + */ + +GatewayCreateProducerRedshift.prototype['redshift-port'] = '5439'; +/** + * Redshift Username + * @member {String} redshift-username + */ + +GatewayCreateProducerRedshift.prototype['redshift-username'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayCreateProducerRedshift.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayCreateProducerRedshift.prototype['secure-access-host'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +GatewayCreateProducerRedshift.prototype['ssl'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerRedshift.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerRedshift.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerRedshift.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerRedshift.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayCreateProducerRedshift.prototype['user-ttl'] = '60m'; +var _default = GatewayCreateProducerRedshift; +exports["default"] = _default; + +/***/ }), + +/***/ 51074: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerRedshiftOutput model module. + * @module model/GatewayCreateProducerRedshiftOutput + * @version 3.6.3 + */ +var GatewayCreateProducerRedshiftOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerRedshiftOutput. + * @alias module:model/GatewayCreateProducerRedshiftOutput + */ + function GatewayCreateProducerRedshiftOutput() { + _classCallCheck(this, GatewayCreateProducerRedshiftOutput); + + GatewayCreateProducerRedshiftOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerRedshiftOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerRedshiftOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerRedshiftOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerRedshiftOutput} The populated GatewayCreateProducerRedshiftOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerRedshiftOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerRedshiftOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerRedshiftOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerRedshiftOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 59024: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerSnowflake model module. + * @module model/GatewayCreateProducerSnowflake + * @version 3.6.3 + */ +var GatewayCreateProducerSnowflake = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerSnowflake. + * GatewayCreateProducerSnowflakeCmd is a command that creates a Snowflake producer [Deprecated: Use dynamic-secret-create-snowflake command] + * @alias module:model/GatewayCreateProducerSnowflake + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerSnowflake(name) { + _classCallCheck(this, GatewayCreateProducerSnowflake); + + GatewayCreateProducerSnowflake.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerSnowflake, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerSnowflake from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerSnowflake} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerSnowflake} The populated GatewayCreateProducerSnowflake instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerSnowflake(); + + if (data.hasOwnProperty('account')) { + obj['account'] = _ApiClient["default"].convertToType(data['account'], 'String'); + } + + if (data.hasOwnProperty('account-password')) { + obj['account-password'] = _ApiClient["default"].convertToType(data['account-password'], 'String'); + } + + if (data.hasOwnProperty('account-username')) { + obj['account-username'] = _ApiClient["default"].convertToType(data['account-username'], 'String'); + } + + if (data.hasOwnProperty('db-name')) { + obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('private-key')) { + obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); + } + + if (data.hasOwnProperty('private-key-passphrase')) { + obj['private-key-passphrase'] = _ApiClient["default"].convertToType(data['private-key-passphrase'], 'String'); + } + + if (data.hasOwnProperty('role')) { + obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('warehouse')) { + obj['warehouse'] = _ApiClient["default"].convertToType(data['warehouse'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerSnowflake; +}(); +/** + * Account name + * @member {String} account + */ + + +GatewayCreateProducerSnowflake.prototype['account'] = undefined; +/** + * Database Password + * @member {String} account-password + */ + +GatewayCreateProducerSnowflake.prototype['account-password'] = undefined; +/** + * Database Username + * @member {String} account-username + */ + +GatewayCreateProducerSnowflake.prototype['account-username'] = undefined; +/** + * Database name + * @member {String} db-name + */ + +GatewayCreateProducerSnowflake.prototype['db-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerSnowflake.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerSnowflake.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerSnowflake.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayCreateProducerSnowflake.prototype['password-length'] = undefined; +/** + * RSA Private key (base64 encoded) + * @member {String} private-key + */ + +GatewayCreateProducerSnowflake.prototype['private-key'] = undefined; +/** + * The Private key passphrase + * @member {String} private-key-passphrase + */ + +GatewayCreateProducerSnowflake.prototype['private-key-passphrase'] = undefined; +/** + * User role + * @member {String} role + */ + +GatewayCreateProducerSnowflake.prototype['role'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerSnowflake.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerSnowflake.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerSnowflake.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerSnowflake.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '24h' + */ + +GatewayCreateProducerSnowflake.prototype['user-ttl'] = '24h'; +/** + * Warehouse name + * @member {String} warehouse + */ + +GatewayCreateProducerSnowflake.prototype['warehouse'] = undefined; +var _default = GatewayCreateProducerSnowflake; +exports["default"] = _default; + +/***/ }), + +/***/ 35609: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerSnowflakeOutput model module. + * @module model/GatewayCreateProducerSnowflakeOutput + * @version 3.6.3 + */ +var GatewayCreateProducerSnowflakeOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerSnowflakeOutput. + * @alias module:model/GatewayCreateProducerSnowflakeOutput + */ + function GatewayCreateProducerSnowflakeOutput() { + _classCallCheck(this, GatewayCreateProducerSnowflakeOutput); + + GatewayCreateProducerSnowflakeOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerSnowflakeOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerSnowflakeOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerSnowflakeOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerSnowflakeOutput} The populated GatewayCreateProducerSnowflakeOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerSnowflakeOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerSnowflakeOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerSnowflakeOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerSnowflakeOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 66051: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerVenafi model module. + * @module model/GatewayCreateProducerVenafi + * @version 3.6.3 + */ +var GatewayCreateProducerVenafi = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerVenafi. + * gatewayCreateProducerVenafi is a command that creates a Venafi dynamic secret producer to dynamically create certificates generated by Venafi or have Akeyless generated certificates using PKI be monitored by Venafi [Deprecated: Use dynamic-secret-create-venafi command] + * @alias module:model/GatewayCreateProducerVenafi + * @param name {String} Dynamic secret name + */ + function GatewayCreateProducerVenafi(name) { + _classCallCheck(this, GatewayCreateProducerVenafi); + + GatewayCreateProducerVenafi.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerVenafi, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayCreateProducerVenafi from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerVenafi} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerVenafi} The populated GatewayCreateProducerVenafi instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerVenafi(); + + if (data.hasOwnProperty('admin-rotation-interval-days')) { + obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); + } + + if (data.hasOwnProperty('allow-subdomains')) { + obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); + } + + if (data.hasOwnProperty('allowed-domains')) { + obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], ['String']); + } + + if (data.hasOwnProperty('auto-generated-folder')) { + obj['auto-generated-folder'] = _ApiClient["default"].convertToType(data['auto-generated-folder'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('enable-admin-rotation')) { + obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('root-first-in-chain')) { + obj['root-first-in-chain'] = _ApiClient["default"].convertToType(data['root-first-in-chain'], 'Boolean'); + } + + if (data.hasOwnProperty('sign-using-akeyless-pki')) { + obj['sign-using-akeyless-pki'] = _ApiClient["default"].convertToType(data['sign-using-akeyless-pki'], 'Boolean'); + } + + if (data.hasOwnProperty('signer-key-name')) { + obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); + } + + if (data.hasOwnProperty('store-private-key')) { + obj['store-private-key'] = _ApiClient["default"].convertToType(data['store-private-key'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('venafi-access-token')) { + obj['venafi-access-token'] = _ApiClient["default"].convertToType(data['venafi-access-token'], 'String'); + } + + if (data.hasOwnProperty('venafi-api-key')) { + obj['venafi-api-key'] = _ApiClient["default"].convertToType(data['venafi-api-key'], 'String'); + } + + if (data.hasOwnProperty('venafi-baseurl')) { + obj['venafi-baseurl'] = _ApiClient["default"].convertToType(data['venafi-baseurl'], 'String'); + } + + if (data.hasOwnProperty('venafi-client-id')) { + obj['venafi-client-id'] = _ApiClient["default"].convertToType(data['venafi-client-id'], 'String'); + } + + if (data.hasOwnProperty('venafi-refresh-token')) { + obj['venafi-refresh-token'] = _ApiClient["default"].convertToType(data['venafi-refresh-token'], 'String'); + } + + if (data.hasOwnProperty('venafi-use-tpp')) { + obj['venafi-use-tpp'] = _ApiClient["default"].convertToType(data['venafi-use-tpp'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi-zone')) { + obj['venafi-zone'] = _ApiClient["default"].convertToType(data['venafi-zone'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerVenafi; +}(); +/** + * Admin credentials rotation interval (days) + * @member {Number} admin-rotation-interval-days + * @default 0 + */ + + +GatewayCreateProducerVenafi.prototype['admin-rotation-interval-days'] = 0; +/** + * Allow subdomains + * @member {Boolean} allow-subdomains + */ + +GatewayCreateProducerVenafi.prototype['allow-subdomains'] = undefined; +/** + * Allowed domains + * @member {Array.} allowed-domains + */ + +GatewayCreateProducerVenafi.prototype['allowed-domains'] = undefined; +/** + * Auto generated folder + * @member {String} auto-generated-folder + */ + +GatewayCreateProducerVenafi.prototype['auto-generated-folder'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayCreateProducerVenafi.prototype['delete_protection'] = undefined; +/** + * Automatic admin credentials rotation + * @member {Boolean} enable-admin-rotation + * @default false + */ + +GatewayCreateProducerVenafi.prototype['enable-admin-rotation'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayCreateProducerVenafi.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayCreateProducerVenafi.prototype['name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayCreateProducerVenafi.prototype['producer-encryption-key-name'] = undefined; +/** + * Root first in chain + * @member {Boolean} root-first-in-chain + */ + +GatewayCreateProducerVenafi.prototype['root-first-in-chain'] = undefined; +/** + * Use Akeyless PKI issuer or Venafi issuer + * @member {Boolean} sign-using-akeyless-pki + */ + +GatewayCreateProducerVenafi.prototype['sign-using-akeyless-pki'] = undefined; +/** + * Signer key name + * @member {String} signer-key-name + */ + +GatewayCreateProducerVenafi.prototype['signer-key-name'] = undefined; +/** + * Store private key + * @member {Boolean} store-private-key + */ + +GatewayCreateProducerVenafi.prototype['store-private-key'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayCreateProducerVenafi.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayCreateProducerVenafi.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayCreateProducerVenafi.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayCreateProducerVenafi.prototype['uid-token'] = undefined; +/** + * User TTL in time.Duration format (2160h / 129600m / etc...). When using sign-using-akeyless-pki certificates created will have this validity period, otherwise the user-ttl is taken from the Validity Period field of the Zone's' Issuing Template. When using cert-manager it is advised to have a TTL of above 60 days (1440h). For more information - https://cert-manager.io/docs/usage/certificate/ + * @member {String} user-ttl + * @default '2160h' + */ + +GatewayCreateProducerVenafi.prototype['user-ttl'] = '2160h'; +/** + * Venafi Access Token to use to access the TPP environment (Relevant when using TPP) + * @member {String} venafi-access-token + */ + +GatewayCreateProducerVenafi.prototype['venafi-access-token'] = undefined; +/** + * Venafi API key + * @member {String} venafi-api-key + */ + +GatewayCreateProducerVenafi.prototype['venafi-api-key'] = undefined; +/** + * Venafi Baseurl + * @member {String} venafi-baseurl + */ + +GatewayCreateProducerVenafi.prototype['venafi-baseurl'] = undefined; +/** + * Venafi Client ID that was used when the access token was generated + * @member {String} venafi-client-id + * @default 'akeyless' + */ + +GatewayCreateProducerVenafi.prototype['venafi-client-id'] = 'akeyless'; +/** + * Venafi Refresh Token to use when the Access Token is expired (Relevant when using TPP) + * @member {String} venafi-refresh-token + */ + +GatewayCreateProducerVenafi.prototype['venafi-refresh-token'] = undefined; +/** + * Venafi using TPP + * @member {Boolean} venafi-use-tpp + */ + +GatewayCreateProducerVenafi.prototype['venafi-use-tpp'] = undefined; +/** + * Venafi Zone + * @member {String} venafi-zone + */ + +GatewayCreateProducerVenafi.prototype['venafi-zone'] = undefined; +var _default = GatewayCreateProducerVenafi; +exports["default"] = _default; + +/***/ }), + +/***/ 52274: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayCreateProducerVenafiOutput model module. + * @module model/GatewayCreateProducerVenafiOutput + * @version 3.6.3 + */ +var GatewayCreateProducerVenafiOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayCreateProducerVenafiOutput. + * @alias module:model/GatewayCreateProducerVenafiOutput + */ + function GatewayCreateProducerVenafiOutput() { + _classCallCheck(this, GatewayCreateProducerVenafiOutput); + + GatewayCreateProducerVenafiOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayCreateProducerVenafiOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayCreateProducerVenafiOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayCreateProducerVenafiOutput} obj Optional instance to populate. + * @return {module:model/GatewayCreateProducerVenafiOutput} The populated GatewayCreateProducerVenafiOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayCreateProducerVenafiOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayCreateProducerVenafiOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayCreateProducerVenafiOutput.prototype['producer_details'] = undefined; +var _default = GatewayCreateProducerVenafiOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 99401: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayDeleteAllowedAccess model module. + * @module model/GatewayDeleteAllowedAccess + * @version 3.6.3 + */ +var GatewayDeleteAllowedAccess = /*#__PURE__*/function () { + /** + * Constructs a new GatewayDeleteAllowedAccess. + * gatewayDeleteAllowedAccess is a command that deletes allowed access from gateway + * @alias module:model/GatewayDeleteAllowedAccess + * @param name {String} Allowed access name to delete + */ + function GatewayDeleteAllowedAccess(name) { + _classCallCheck(this, GatewayDeleteAllowedAccess); + + GatewayDeleteAllowedAccess.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayDeleteAllowedAccess, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayDeleteAllowedAccess from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayDeleteAllowedAccess} obj Optional instance to populate. + * @return {module:model/GatewayDeleteAllowedAccess} The populated GatewayDeleteAllowedAccess instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayDeleteAllowedAccess(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayDeleteAllowedAccess; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayDeleteAllowedAccess.prototype['json'] = false; +/** + * Allowed access name to delete + * @member {String} name + */ + +GatewayDeleteAllowedAccess.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayDeleteAllowedAccess.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayDeleteAllowedAccess.prototype['uid-token'] = undefined; +var _default = GatewayDeleteAllowedAccess; +exports["default"] = _default; + +/***/ }), + +/***/ 98572: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayDeleteAllowedAccessOutput model module. + * @module model/GatewayDeleteAllowedAccessOutput + * @version 3.6.3 + */ +var GatewayDeleteAllowedAccessOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayDeleteAllowedAccessOutput. + * @alias module:model/GatewayDeleteAllowedAccessOutput + */ + function GatewayDeleteAllowedAccessOutput() { + _classCallCheck(this, GatewayDeleteAllowedAccessOutput); + + GatewayDeleteAllowedAccessOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayDeleteAllowedAccessOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayDeleteAllowedAccessOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayDeleteAllowedAccessOutput} obj Optional instance to populate. + * @return {module:model/GatewayDeleteAllowedAccessOutput} The populated GatewayDeleteAllowedAccessOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayDeleteAllowedAccessOutput(); + + if (data.hasOwnProperty('allowed_access_name')) { + obj['allowed_access_name'] = _ApiClient["default"].convertToType(data['allowed_access_name'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayDeleteAllowedAccessOutput; +}(); +/** + * @member {String} allowed_access_name + */ + + +GatewayDeleteAllowedAccessOutput.prototype['allowed_access_name'] = undefined; +var _default = GatewayDeleteAllowedAccessOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 48163: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayDeleteK8SAuthConfig model module. + * @module model/GatewayDeleteK8SAuthConfig + * @version 3.6.3 + */ +var GatewayDeleteK8SAuthConfig = /*#__PURE__*/function () { + /** + * Constructs a new GatewayDeleteK8SAuthConfig. + * gatewayDeleteK8SAuth is a command that deletes k8s auth config + * @alias module:model/GatewayDeleteK8SAuthConfig + * @param name {String} K8S Auth config name + */ + function GatewayDeleteK8SAuthConfig(name) { + _classCallCheck(this, GatewayDeleteK8SAuthConfig); + + GatewayDeleteK8SAuthConfig.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayDeleteK8SAuthConfig, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayDeleteK8SAuthConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayDeleteK8SAuthConfig} obj Optional instance to populate. + * @return {module:model/GatewayDeleteK8SAuthConfig} The populated GatewayDeleteK8SAuthConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayDeleteK8SAuthConfig(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayDeleteK8SAuthConfig; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayDeleteK8SAuthConfig.prototype['json'] = false; +/** + * K8S Auth config name + * @member {String} name + */ + +GatewayDeleteK8SAuthConfig.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayDeleteK8SAuthConfig.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayDeleteK8SAuthConfig.prototype['uid-token'] = undefined; +var _default = GatewayDeleteK8SAuthConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 3506: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _ConfigChange = _interopRequireDefault(__nccwpck_require__(47166)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayDeleteK8SAuthConfigOutput model module. + * @module model/GatewayDeleteK8SAuthConfigOutput + * @version 3.6.3 + */ +var GatewayDeleteK8SAuthConfigOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayDeleteK8SAuthConfigOutput. + * @alias module:model/GatewayDeleteK8SAuthConfigOutput + */ + function GatewayDeleteK8SAuthConfigOutput() { + _classCallCheck(this, GatewayDeleteK8SAuthConfigOutput); + + GatewayDeleteK8SAuthConfigOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayDeleteK8SAuthConfigOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayDeleteK8SAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayDeleteK8SAuthConfigOutput} obj Optional instance to populate. + * @return {module:model/GatewayDeleteK8SAuthConfigOutput} The populated GatewayDeleteK8SAuthConfigOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayDeleteK8SAuthConfigOutput(); + + if (data.hasOwnProperty('cluster_id')) { + obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'String'); + } + + if (data.hasOwnProperty('parts_change')) { + obj['parts_change'] = _ConfigChange["default"].constructFromObject(data['parts_change']); + } + + if (data.hasOwnProperty('total_hash')) { + obj['total_hash'] = _ApiClient["default"].convertToType(data['total_hash'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayDeleteK8SAuthConfigOutput; +}(); +/** + * @member {String} cluster_id + */ + + +GatewayDeleteK8SAuthConfigOutput.prototype['cluster_id'] = undefined; +/** + * @member {module:model/ConfigChange} parts_change + */ + +GatewayDeleteK8SAuthConfigOutput.prototype['parts_change'] = undefined; +/** + * @member {String} total_hash + */ + +GatewayDeleteK8SAuthConfigOutput.prototype['total_hash'] = undefined; +var _default = GatewayDeleteK8SAuthConfigOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 92895: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayDeleteMigration model module. + * @module model/GatewayDeleteMigration + * @version 3.6.3 + */ +var GatewayDeleteMigration = /*#__PURE__*/function () { + /** + * Constructs a new GatewayDeleteMigration. + * gatewayDeleteMigration is a command that delete migration + * @alias module:model/GatewayDeleteMigration + * @param id {String} Migration ID + */ + function GatewayDeleteMigration(id) { + _classCallCheck(this, GatewayDeleteMigration); + + GatewayDeleteMigration.initialize(this, id); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayDeleteMigration, null, [{ + key: "initialize", + value: function initialize(obj, id) { + obj['id'] = id; + } + /** + * Constructs a GatewayDeleteMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayDeleteMigration} obj Optional instance to populate. + * @return {module:model/GatewayDeleteMigration} The populated GatewayDeleteMigration instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayDeleteMigration(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayDeleteMigration; +}(); +/** + * Migration ID + * @member {String} id + */ + + +GatewayDeleteMigration.prototype['id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayDeleteMigration.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayDeleteMigration.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayDeleteMigration.prototype['uid-token'] = undefined; +var _default = GatewayDeleteMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 24177: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayDeleteProducer model module. + * @module model/GatewayDeleteProducer + * @version 3.6.3 + */ +var GatewayDeleteProducer = /*#__PURE__*/function () { + /** + * Constructs a new GatewayDeleteProducer. + * gatewayDeleteProducer is a command that deletes producer [Deprecated: Use dynamic-secret-delete command] + * @alias module:model/GatewayDeleteProducer + * @param name {String} Dynamic secret name + */ + function GatewayDeleteProducer(name) { + _classCallCheck(this, GatewayDeleteProducer); + + GatewayDeleteProducer.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayDeleteProducer, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayDeleteProducer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayDeleteProducer} obj Optional instance to populate. + * @return {module:model/GatewayDeleteProducer} The populated GatewayDeleteProducer instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayDeleteProducer(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayDeleteProducer; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayDeleteProducer.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayDeleteProducer.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayDeleteProducer.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayDeleteProducer.prototype['uid-token'] = undefined; +var _default = GatewayDeleteProducer; +exports["default"] = _default; + +/***/ }), + +/***/ 31236: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayDeleteProducerOutput model module. + * @module model/GatewayDeleteProducerOutput + * @version 3.6.3 + */ +var GatewayDeleteProducerOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayDeleteProducerOutput. + * @alias module:model/GatewayDeleteProducerOutput + */ + function GatewayDeleteProducerOutput() { + _classCallCheck(this, GatewayDeleteProducerOutput); + + GatewayDeleteProducerOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayDeleteProducerOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayDeleteProducerOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayDeleteProducerOutput} obj Optional instance to populate. + * @return {module:model/GatewayDeleteProducerOutput} The populated GatewayDeleteProducerOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayDeleteProducerOutput(); + + if (data.hasOwnProperty('producer_name')) { + obj['producer_name'] = _ApiClient["default"].convertToType(data['producer_name'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayDeleteProducerOutput; +}(); +/** + * @member {String} producer_name + */ + + +GatewayDeleteProducerOutput.prototype['producer_name'] = undefined; +var _default = GatewayDeleteProducerOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 70355: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayDownloadCustomerFragments model module. + * @module model/GatewayDownloadCustomerFragments + * @version 3.6.3 + */ +var GatewayDownloadCustomerFragments = /*#__PURE__*/function () { + /** + * Constructs a new GatewayDownloadCustomerFragments. + * gatewayDownloadCustomerFragments is a command that downloads customer fragments + * @alias module:model/GatewayDownloadCustomerFragments + */ + function GatewayDownloadCustomerFragments() { + _classCallCheck(this, GatewayDownloadCustomerFragments); + + GatewayDownloadCustomerFragments.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayDownloadCustomerFragments, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayDownloadCustomerFragments from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayDownloadCustomerFragments} obj Optional instance to populate. + * @return {module:model/GatewayDownloadCustomerFragments} The populated GatewayDownloadCustomerFragments instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayDownloadCustomerFragments(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayDownloadCustomerFragments; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayDownloadCustomerFragments.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayDownloadCustomerFragments.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayDownloadCustomerFragments.prototype['uid-token'] = undefined; +var _default = GatewayDownloadCustomerFragments; +exports["default"] = _default; + +/***/ }), + +/***/ 62210: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayDownloadCustomerFragmentsOutput model module. + * @module model/GatewayDownloadCustomerFragmentsOutput + * @version 3.6.3 + */ +var GatewayDownloadCustomerFragmentsOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayDownloadCustomerFragmentsOutput. + * @alias module:model/GatewayDownloadCustomerFragmentsOutput + */ + function GatewayDownloadCustomerFragmentsOutput() { + _classCallCheck(this, GatewayDownloadCustomerFragmentsOutput); + + GatewayDownloadCustomerFragmentsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayDownloadCustomerFragmentsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayDownloadCustomerFragmentsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayDownloadCustomerFragmentsOutput} obj Optional instance to populate. + * @return {module:model/GatewayDownloadCustomerFragmentsOutput} The populated GatewayDownloadCustomerFragmentsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayDownloadCustomerFragmentsOutput(); + + if (data.hasOwnProperty('cf_json')) { + obj['cf_json'] = _ApiClient["default"].convertToType(data['cf_json'], { + 'String': Object + }); + } + } + + return obj; + } + }]); + + return GatewayDownloadCustomerFragmentsOutput; +}(); +/** + * @member {Object.} cf_json + */ + + +GatewayDownloadCustomerFragmentsOutput.prototype['cf_json'] = undefined; +var _default = GatewayDownloadCustomerFragmentsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 99262: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayGetAllowedAccess model module. + * @module model/GatewayGetAllowedAccess + * @version 3.6.3 + */ +var GatewayGetAllowedAccess = /*#__PURE__*/function () { + /** + * Constructs a new GatewayGetAllowedAccess. + * gatewayGetAllowedAccess is a command that gets allowed access from gateway + * @alias module:model/GatewayGetAllowedAccess + * @param name {String} Allowed access name + */ + function GatewayGetAllowedAccess(name) { + _classCallCheck(this, GatewayGetAllowedAccess); + + GatewayGetAllowedAccess.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayGetAllowedAccess, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayGetAllowedAccess from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayGetAllowedAccess} obj Optional instance to populate. + * @return {module:model/GatewayGetAllowedAccess} The populated GatewayGetAllowedAccess instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayGetAllowedAccess(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayGetAllowedAccess; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayGetAllowedAccess.prototype['json'] = false; +/** + * Allowed access name + * @member {String} name + */ + +GatewayGetAllowedAccess.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayGetAllowedAccess.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayGetAllowedAccess.prototype['uid-token'] = undefined; +var _default = GatewayGetAllowedAccess; +exports["default"] = _default; + +/***/ }), + +/***/ 16048: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayGetConfig model module. + * @module model/GatewayGetConfig + * @version 3.6.3 + */ +var GatewayGetConfig = /*#__PURE__*/function () { + /** + * Constructs a new GatewayGetConfig. + * gatewayGetConfig is a command that returns gateway configuration + * @alias module:model/GatewayGetConfig + */ + function GatewayGetConfig() { + _classCallCheck(this, GatewayGetConfig); + + GatewayGetConfig.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayGetConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayGetConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayGetConfig} obj Optional instance to populate. + * @return {module:model/GatewayGetConfig} The populated GatewayGetConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayGetConfig(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayGetConfig; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayGetConfig.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayGetConfig.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayGetConfig.prototype['uid-token'] = undefined; +var _default = GatewayGetConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 12748: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayGetK8SAuthConfig model module. + * @module model/GatewayGetK8SAuthConfig + * @version 3.6.3 + */ +var GatewayGetK8SAuthConfig = /*#__PURE__*/function () { + /** + * Constructs a new GatewayGetK8SAuthConfig. + * gatewayGetK8SAuth is a command that gets k8s auth config + * @alias module:model/GatewayGetK8SAuthConfig + * @param name {String} K8S Auth config name + */ + function GatewayGetK8SAuthConfig(name) { + _classCallCheck(this, GatewayGetK8SAuthConfig); + + GatewayGetK8SAuthConfig.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayGetK8SAuthConfig, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayGetK8SAuthConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayGetK8SAuthConfig} obj Optional instance to populate. + * @return {module:model/GatewayGetK8SAuthConfig} The populated GatewayGetK8SAuthConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayGetK8SAuthConfig(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayGetK8SAuthConfig; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayGetK8SAuthConfig.prototype['json'] = false; +/** + * K8S Auth config name + * @member {String} name + */ + +GatewayGetK8SAuthConfig.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayGetK8SAuthConfig.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayGetK8SAuthConfig.prototype['uid-token'] = undefined; +var _default = GatewayGetK8SAuthConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 5645: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayGetK8SAuthConfigOutput model module. + * @module model/GatewayGetK8SAuthConfigOutput + * @version 3.6.3 + */ +var GatewayGetK8SAuthConfigOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayGetK8SAuthConfigOutput. + * @alias module:model/GatewayGetK8SAuthConfigOutput + */ + function GatewayGetK8SAuthConfigOutput() { + _classCallCheck(this, GatewayGetK8SAuthConfigOutput); + + GatewayGetK8SAuthConfigOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayGetK8SAuthConfigOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayGetK8SAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayGetK8SAuthConfigOutput} obj Optional instance to populate. + * @return {module:model/GatewayGetK8SAuthConfigOutput} The populated GatewayGetK8SAuthConfigOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayGetK8SAuthConfigOutput(); + + if (data.hasOwnProperty('am_token_expiration')) { + obj['am_token_expiration'] = _ApiClient["default"].convertToType(data['am_token_expiration'], 'Number'); + } + + if (data.hasOwnProperty('auth_method_access_id')) { + obj['auth_method_access_id'] = _ApiClient["default"].convertToType(data['auth_method_access_id'], 'String'); + } + + if (data.hasOwnProperty('auth_method_prv_key_pem')) { + obj['auth_method_prv_key_pem'] = _ApiClient["default"].convertToType(data['auth_method_prv_key_pem'], 'String'); + } + + if (data.hasOwnProperty('cluster_api_type')) { + obj['cluster_api_type'] = _ApiClient["default"].convertToType(data['cluster_api_type'], 'String'); + } + + if (data.hasOwnProperty('disable_iss_validation')) { + obj['disable_iss_validation'] = _ApiClient["default"].convertToType(data['disable_iss_validation'], 'Boolean'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('k8s_auth_type')) { + obj['k8s_auth_type'] = _ApiClient["default"].convertToType(data['k8s_auth_type'], 'String'); + } + + if (data.hasOwnProperty('k8s_ca_cert')) { + obj['k8s_ca_cert'] = _ApiClient["default"].convertToType(data['k8s_ca_cert'], 'String'); + } + + if (data.hasOwnProperty('k8s_client_cert_data')) { + obj['k8s_client_cert_data'] = _ApiClient["default"].convertToType(data['k8s_client_cert_data'], 'String'); + } + + if (data.hasOwnProperty('k8s_client_key_data')) { + obj['k8s_client_key_data'] = _ApiClient["default"].convertToType(data['k8s_client_key_data'], 'String'); + } + + if (data.hasOwnProperty('k8s_host')) { + obj['k8s_host'] = _ApiClient["default"].convertToType(data['k8s_host'], 'String'); + } + + if (data.hasOwnProperty('k8s_issuer')) { + obj['k8s_issuer'] = _ApiClient["default"].convertToType(data['k8s_issuer'], 'String'); + } + + if (data.hasOwnProperty('k8s_pub_keys_pem')) { + obj['k8s_pub_keys_pem'] = _ApiClient["default"].convertToType(data['k8s_pub_keys_pem'], ['String']); + } + + if (data.hasOwnProperty('k8s_token_reviewer_jwt')) { + obj['k8s_token_reviewer_jwt'] = _ApiClient["default"].convertToType(data['k8s_token_reviewer_jwt'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } + + if (data.hasOwnProperty('rancher_api_key')) { + obj['rancher_api_key'] = _ApiClient["default"].convertToType(data['rancher_api_key'], 'String'); + } + + if (data.hasOwnProperty('rancher_cluster_id')) { + obj['rancher_cluster_id'] = _ApiClient["default"].convertToType(data['rancher_cluster_id'], 'String'); + } + + if (data.hasOwnProperty('use_local_ca_jwt')) { + obj['use_local_ca_jwt'] = _ApiClient["default"].convertToType(data['use_local_ca_jwt'], 'Boolean'); + } + } + + return obj; + } + }]); + + return GatewayGetK8SAuthConfigOutput; +}(); +/** + * AuthMethodTokenExpiration is time in seconds of expiration of the Akeyless Kube Auth Method token + * @member {Number} am_token_expiration + */ + + +GatewayGetK8SAuthConfigOutput.prototype['am_token_expiration'] = undefined; +/** + * AuthMethodAccessId of the Kubernetes auth method + * @member {String} auth_method_access_id + */ + +GatewayGetK8SAuthConfigOutput.prototype['auth_method_access_id'] = undefined; +/** + * AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method + * @member {String} auth_method_prv_key_pem + */ + +GatewayGetK8SAuthConfigOutput.prototype['auth_method_prv_key_pem'] = undefined; +/** + * ClusterApiType defines types of API access to cluster + * @member {String} cluster_api_type + */ + +GatewayGetK8SAuthConfigOutput.prototype['cluster_api_type'] = undefined; +/** + * DisableISSValidation is optional parameter to disable ISS validation + * @member {Boolean} disable_iss_validation + */ + +GatewayGetK8SAuthConfigOutput.prototype['disable_iss_validation'] = undefined; +/** + * @member {String} id + */ + +GatewayGetK8SAuthConfigOutput.prototype['id'] = undefined; +/** + * @member {String} k8s_auth_type + */ + +GatewayGetK8SAuthConfigOutput.prototype['k8s_auth_type'] = undefined; +/** + * K8SCACert is the CA Cert to use to call into the kubernetes API + * @member {String} k8s_ca_cert + */ + +GatewayGetK8SAuthConfigOutput.prototype['k8s_ca_cert'] = undefined; +/** + * K8sClientCertData is the client certificate for k8s client certificate authentication + * @member {String} k8s_client_cert_data + */ + +GatewayGetK8SAuthConfigOutput.prototype['k8s_client_cert_data'] = undefined; +/** + * K8sClientKeyData is the client key for k8s client certificate authentication + * @member {String} k8s_client_key_data + */ + +GatewayGetK8SAuthConfigOutput.prototype['k8s_client_key_data'] = undefined; +/** + * K8SHost is the url string for the kubernetes API + * @member {String} k8s_host + */ + +GatewayGetK8SAuthConfigOutput.prototype['k8s_host'] = undefined; +/** + * K8SIssuer is the claim that specifies who issued the Kubernetes token + * @member {String} k8s_issuer + */ + +GatewayGetK8SAuthConfigOutput.prototype['k8s_issuer'] = undefined; +/** + * K8SPublicKeysPEM is the list of public key in PEM format + * @member {Array.} k8s_pub_keys_pem + */ + +GatewayGetK8SAuthConfigOutput.prototype['k8s_pub_keys_pem'] = undefined; +/** + * K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call + * @member {String} k8s_token_reviewer_jwt + */ + +GatewayGetK8SAuthConfigOutput.prototype['k8s_token_reviewer_jwt'] = undefined; +/** + * @member {String} name + */ + +GatewayGetK8SAuthConfigOutput.prototype['name'] = undefined; +/** + * @member {String} protection_key + */ + +GatewayGetK8SAuthConfigOutput.prototype['protection_key'] = undefined; +/** + * RancherApiKey the bear token for clusterApiTypeRancher + * @member {String} rancher_api_key + */ + +GatewayGetK8SAuthConfigOutput.prototype['rancher_api_key'] = undefined; +/** + * RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher) + * @member {String} rancher_cluster_id + */ + +GatewayGetK8SAuthConfigOutput.prototype['rancher_cluster_id'] = undefined; +/** + * UseLocalCAJwt is an optional parameter to set defaulting to using the local service account when running in a Kubernetes pod + * @member {Boolean} use_local_ca_jwt + */ + +GatewayGetK8SAuthConfigOutput.prototype['use_local_ca_jwt'] = undefined; +var _default = GatewayGetK8SAuthConfigOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 3495: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayGetLdapAuthConfig model module. + * @module model/GatewayGetLdapAuthConfig + * @version 3.6.3 + */ +var GatewayGetLdapAuthConfig = /*#__PURE__*/function () { + /** + * Constructs a new GatewayGetLdapAuthConfig. + * gatewayGetLdapAuth is a command that gets ldap auth config + * @alias module:model/GatewayGetLdapAuthConfig + */ + function GatewayGetLdapAuthConfig() { + _classCallCheck(this, GatewayGetLdapAuthConfig); + + GatewayGetLdapAuthConfig.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayGetLdapAuthConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayGetLdapAuthConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayGetLdapAuthConfig} obj Optional instance to populate. + * @return {module:model/GatewayGetLdapAuthConfig} The populated GatewayGetLdapAuthConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayGetLdapAuthConfig(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayGetLdapAuthConfig; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayGetLdapAuthConfig.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayGetLdapAuthConfig.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayGetLdapAuthConfig.prototype['uid-token'] = undefined; +var _default = GatewayGetLdapAuthConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 79454: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayGetLdapAuthConfigOutput model module. + * @module model/GatewayGetLdapAuthConfigOutput + * @version 3.6.3 + */ +var GatewayGetLdapAuthConfigOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayGetLdapAuthConfigOutput. + * @alias module:model/GatewayGetLdapAuthConfigOutput + */ + function GatewayGetLdapAuthConfigOutput() { + _classCallCheck(this, GatewayGetLdapAuthConfigOutput); + + GatewayGetLdapAuthConfigOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayGetLdapAuthConfigOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayGetLdapAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayGetLdapAuthConfigOutput} obj Optional instance to populate. + * @return {module:model/GatewayGetLdapAuthConfigOutput} The populated GatewayGetLdapAuthConfigOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayGetLdapAuthConfigOutput(); + + if (data.hasOwnProperty('ldap_access_id')) { + obj['ldap_access_id'] = _ApiClient["default"].convertToType(data['ldap_access_id'], 'String'); + } + + if (data.hasOwnProperty('ldap_anonymous_search')) { + obj['ldap_anonymous_search'] = _ApiClient["default"].convertToType(data['ldap_anonymous_search'], 'Boolean'); + } + + if (data.hasOwnProperty('ldap_bind_dn')) { + obj['ldap_bind_dn'] = _ApiClient["default"].convertToType(data['ldap_bind_dn'], 'String'); + } + + if (data.hasOwnProperty('ldap_bind_password')) { + obj['ldap_bind_password'] = _ApiClient["default"].convertToType(data['ldap_bind_password'], 'String'); + } + + if (data.hasOwnProperty('ldap_cert')) { + obj['ldap_cert'] = _ApiClient["default"].convertToType(data['ldap_cert'], 'String'); + } + + if (data.hasOwnProperty('ldap_enable')) { + obj['ldap_enable'] = _ApiClient["default"].convertToType(data['ldap_enable'], 'Boolean'); + } + + if (data.hasOwnProperty('ldap_group_attr')) { + obj['ldap_group_attr'] = _ApiClient["default"].convertToType(data['ldap_group_attr'], 'String'); + } + + if (data.hasOwnProperty('ldap_group_dn')) { + obj['ldap_group_dn'] = _ApiClient["default"].convertToType(data['ldap_group_dn'], 'String'); + } + + if (data.hasOwnProperty('ldap_group_filter')) { + obj['ldap_group_filter'] = _ApiClient["default"].convertToType(data['ldap_group_filter'], 'String'); + } + + if (data.hasOwnProperty('ldap_private_key')) { + obj['ldap_private_key'] = _ApiClient["default"].convertToType(data['ldap_private_key'], 'String'); + } + + if (data.hasOwnProperty('ldap_token_expiration')) { + obj['ldap_token_expiration'] = _ApiClient["default"].convertToType(data['ldap_token_expiration'], 'String'); + } + + if (data.hasOwnProperty('ldap_url')) { + obj['ldap_url'] = _ApiClient["default"].convertToType(data['ldap_url'], 'String'); + } + + if (data.hasOwnProperty('ldap_user_attr')) { + obj['ldap_user_attr'] = _ApiClient["default"].convertToType(data['ldap_user_attr'], 'String'); + } + + if (data.hasOwnProperty('ldap_user_dn')) { + obj['ldap_user_dn'] = _ApiClient["default"].convertToType(data['ldap_user_dn'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayGetLdapAuthConfigOutput; +}(); +/** + * @member {String} ldap_access_id + */ + + +GatewayGetLdapAuthConfigOutput.prototype['ldap_access_id'] = undefined; +/** + * @member {Boolean} ldap_anonymous_search + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_anonymous_search'] = undefined; +/** + * @member {String} ldap_bind_dn + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_bind_dn'] = undefined; +/** + * @member {String} ldap_bind_password + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_bind_password'] = undefined; +/** + * @member {String} ldap_cert + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_cert'] = undefined; +/** + * @member {Boolean} ldap_enable + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_enable'] = undefined; +/** + * @member {String} ldap_group_attr + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_group_attr'] = undefined; +/** + * @member {String} ldap_group_dn + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_group_dn'] = undefined; +/** + * @member {String} ldap_group_filter + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_group_filter'] = undefined; +/** + * @member {String} ldap_private_key + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_private_key'] = undefined; +/** + * @member {String} ldap_token_expiration + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_token_expiration'] = undefined; +/** + * @member {String} ldap_url + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_url'] = undefined; +/** + * @member {String} ldap_user_attr + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_user_attr'] = undefined; +/** + * @member {String} ldap_user_dn + */ + +GatewayGetLdapAuthConfigOutput.prototype['ldap_user_dn'] = undefined; +var _default = GatewayGetLdapAuthConfigOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 41484: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayGetMigration model module. + * @module model/GatewayGetMigration + * @version 3.6.3 + */ +var GatewayGetMigration = /*#__PURE__*/function () { + /** + * Constructs a new GatewayGetMigration. + * gatewayGetMigration is a command that get migration + * @alias module:model/GatewayGetMigration + */ + function GatewayGetMigration() { + _classCallCheck(this, GatewayGetMigration); + + GatewayGetMigration.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayGetMigration, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayGetMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayGetMigration} obj Optional instance to populate. + * @return {module:model/GatewayGetMigration} The populated GatewayGetMigration instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayGetMigration(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayGetMigration; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayGetMigration.prototype['json'] = false; +/** + * Migration name to display + * @member {String} name + */ + +GatewayGetMigration.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayGetMigration.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayGetMigration.prototype['uid-token'] = undefined; +var _default = GatewayGetMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 51523: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayGetProducer model module. + * @module model/GatewayGetProducer + * @version 3.6.3 + */ +var GatewayGetProducer = /*#__PURE__*/function () { + /** + * Constructs a new GatewayGetProducer. + * gatewayGetProducer is a command that returns producer [Deprecated: Use dynamic-secret-get command] + * @alias module:model/GatewayGetProducer + * @param name {String} Dynamic secret name + */ + function GatewayGetProducer(name) { + _classCallCheck(this, GatewayGetProducer); + + GatewayGetProducer.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayGetProducer, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayGetProducer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayGetProducer} obj Optional instance to populate. + * @return {module:model/GatewayGetProducer} The populated GatewayGetProducer instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayGetProducer(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayGetProducer; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayGetProducer.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayGetProducer.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayGetProducer.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayGetProducer.prototype['uid-token'] = undefined; +var _default = GatewayGetProducer; +exports["default"] = _default; + +/***/ }), + +/***/ 70701: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayGetTmpUsers model module. + * @module model/GatewayGetTmpUsers + * @version 3.6.3 + */ +var GatewayGetTmpUsers = /*#__PURE__*/function () { + /** + * Constructs a new GatewayGetTmpUsers. + * gatewayGetTmpUsers is a command that returns gateway configuration [Deprecated: Use dynamic-secret-tmp-creds-get command] + * @alias module:model/GatewayGetTmpUsers + * @param name {String} Dynamic secret name + */ + function GatewayGetTmpUsers(name) { + _classCallCheck(this, GatewayGetTmpUsers); + + GatewayGetTmpUsers.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayGetTmpUsers, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayGetTmpUsers from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayGetTmpUsers} obj Optional instance to populate. + * @return {module:model/GatewayGetTmpUsers} The populated GatewayGetTmpUsers instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayGetTmpUsers(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayGetTmpUsers; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayGetTmpUsers.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayGetTmpUsers.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayGetTmpUsers.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayGetTmpUsers.prototype['uid-token'] = undefined; +var _default = GatewayGetTmpUsers; +exports["default"] = _default; + +/***/ }), + +/***/ 2946: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayListMigration model module. + * @module model/GatewayListMigration + * @version 3.6.3 + */ +var GatewayListMigration = /*#__PURE__*/function () { + /** + * Constructs a new GatewayListMigration. + * gatewayListMigration is a command that list migration + * @alias module:model/GatewayListMigration + */ + function GatewayListMigration() { + _classCallCheck(this, GatewayListMigration); + + GatewayListMigration.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayListMigration, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayListMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayListMigration} obj Optional instance to populate. + * @return {module:model/GatewayListMigration} The populated GatewayListMigration instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayListMigration(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayListMigration; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayListMigration.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayListMigration.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayListMigration.prototype['uid-token'] = undefined; +var _default = GatewayListMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 92425: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayListProducers model module. + * @module model/GatewayListProducers + * @version 3.6.3 + */ +var GatewayListProducers = /*#__PURE__*/function () { + /** + * Constructs a new GatewayListProducers. + * gatewayListProducers is a command that returns a list of producers [Deprecated: Use dynamic-secret-list command] + * @alias module:model/GatewayListProducers + */ + function GatewayListProducers() { + _classCallCheck(this, GatewayListProducers); + + GatewayListProducers.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayListProducers, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayListProducers from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayListProducers} obj Optional instance to populate. + * @return {module:model/GatewayListProducers} The populated GatewayListProducers instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayListProducers(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayListProducers; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayListProducers.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayListProducers.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayListProducers.prototype['uid-token'] = undefined; +var _default = GatewayListProducers; +exports["default"] = _default; + +/***/ }), + +/***/ 74718: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayListRotatedSecrets model module. + * @module model/GatewayListRotatedSecrets + * @version 3.6.3 + */ +var GatewayListRotatedSecrets = /*#__PURE__*/function () { + /** + * Constructs a new GatewayListRotatedSecrets. + * gatewayListRotatedSecrets is a command that returns a list of rotated secrets. [Deprecated: Use rotated-secret list command] + * @alias module:model/GatewayListRotatedSecrets + */ + function GatewayListRotatedSecrets() { + _classCallCheck(this, GatewayListRotatedSecrets); + + GatewayListRotatedSecrets.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayListRotatedSecrets, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayListRotatedSecrets from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayListRotatedSecrets} obj Optional instance to populate. + * @return {module:model/GatewayListRotatedSecrets} The populated GatewayListRotatedSecrets instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayListRotatedSecrets(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayListRotatedSecrets; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayListRotatedSecrets.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayListRotatedSecrets.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayListRotatedSecrets.prototype['uid-token'] = undefined; +var _default = GatewayListRotatedSecrets; +exports["default"] = _default; + +/***/ }), + +/***/ 78626: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayMessageQueueInfo model module. + * @module model/GatewayMessageQueueInfo + * @version 3.6.3 + */ +var GatewayMessageQueueInfo = /*#__PURE__*/function () { + /** + * Constructs a new GatewayMessageQueueInfo. + * @alias module:model/GatewayMessageQueueInfo + */ + function GatewayMessageQueueInfo() { + _classCallCheck(this, GatewayMessageQueueInfo); + + GatewayMessageQueueInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayMessageQueueInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayMessageQueueInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayMessageQueueInfo} obj Optional instance to populate. + * @return {module:model/GatewayMessageQueueInfo} The populated GatewayMessageQueueInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayMessageQueueInfo(); + + if (data.hasOwnProperty('broadcast_queue_name_a')) { + obj['broadcast_queue_name_a'] = _ApiClient["default"].convertToType(data['broadcast_queue_name_a'], 'String'); + } + + if (data.hasOwnProperty('mq_type')) { + obj['mq_type'] = _ApiClient["default"].convertToType(data['mq_type'], 'String'); + } + + if (data.hasOwnProperty('queue_name')) { + obj['queue_name'] = _ApiClient["default"].convertToType(data['queue_name'], 'String'); + } + + if (data.hasOwnProperty('queue_url')) { + obj['queue_url'] = _ApiClient["default"].convertToType(data['queue_url'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayMessageQueueInfo; +}(); +/** + * @member {String} broadcast_queue_name_a + */ + + +GatewayMessageQueueInfo.prototype['broadcast_queue_name_a'] = undefined; +/** + * @member {String} mq_type + */ + +GatewayMessageQueueInfo.prototype['mq_type'] = undefined; +/** + * @member {String} queue_name + */ + +GatewayMessageQueueInfo.prototype['queue_name'] = undefined; +/** + * @member {String} queue_url + */ + +GatewayMessageQueueInfo.prototype['queue_url'] = undefined; +var _default = GatewayMessageQueueInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 22791: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayMigratePersonalItems model module. + * @module model/GatewayMigratePersonalItems + * @version 3.6.3 + */ +var GatewayMigratePersonalItems = /*#__PURE__*/function () { + /** + * Constructs a new GatewayMigratePersonalItems. + * gatewayMigratePersonalItems is a command that migrate personal items from external vault + * @alias module:model/GatewayMigratePersonalItems + */ + function GatewayMigratePersonalItems() { + _classCallCheck(this, GatewayMigratePersonalItems); + + GatewayMigratePersonalItems.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayMigratePersonalItems, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayMigratePersonalItems from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayMigratePersonalItems} obj Optional instance to populate. + * @return {module:model/GatewayMigratePersonalItems} The populated GatewayMigratePersonalItems instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayMigratePersonalItems(); + + if (data.hasOwnProperty('1password-email')) { + obj['1password-email'] = _ApiClient["default"].convertToType(data['1password-email'], 'String'); + } + + if (data.hasOwnProperty('1password-password')) { + obj['1password-password'] = _ApiClient["default"].convertToType(data['1password-password'], 'String'); + } + + if (data.hasOwnProperty('1password-secret-key')) { + obj['1password-secret-key'] = _ApiClient["default"].convertToType(data['1password-secret-key'], 'String'); + } + + if (data.hasOwnProperty('1password-url')) { + obj['1password-url'] = _ApiClient["default"].convertToType(data['1password-url'], 'String'); + } + + if (data.hasOwnProperty('1password-vaults')) { + obj['1password-vaults'] = _ApiClient["default"].convertToType(data['1password-vaults'], ['String']); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('protection-key')) { + obj['protection-key'] = _ApiClient["default"].convertToType(data['protection-key'], 'String'); + } + + if (data.hasOwnProperty('target-location')) { + obj['target-location'] = _ApiClient["default"].convertToType(data['target-location'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayMigratePersonalItems; +}(); +/** + * 1Password user email to connect to the API + * @member {String} 1password-email + */ + + +GatewayMigratePersonalItems.prototype['1password-email'] = undefined; +/** + * 1Password user password to connect to the API + * @member {String} 1password-password + */ + +GatewayMigratePersonalItems.prototype['1password-password'] = undefined; +/** + * 1Password user secret key to connect to the API + * @member {String} 1password-secret-key + */ + +GatewayMigratePersonalItems.prototype['1password-secret-key'] = undefined; +/** + * 1Password api container url + * @member {String} 1password-url + */ + +GatewayMigratePersonalItems.prototype['1password-url'] = undefined; +/** + * 1Password list of vault to get the items from + * @member {Array.} 1password-vaults + */ + +GatewayMigratePersonalItems.prototype['1password-vaults'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayMigratePersonalItems.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value + * @member {String} protection-key + */ + +GatewayMigratePersonalItems.prototype['protection-key'] = undefined; +/** + * Target location in your Akeyless personal folder for migrated secrets + * @member {String} target-location + */ + +GatewayMigratePersonalItems.prototype['target-location'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayMigratePersonalItems.prototype['token'] = undefined; +/** + * Migration type for now only 1password. + * @member {String} type + * @default '1password' + */ + +GatewayMigratePersonalItems.prototype['type'] = '1password'; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayMigratePersonalItems.prototype['uid-token'] = undefined; +var _default = GatewayMigratePersonalItems; +exports["default"] = _default; + +/***/ }), + +/***/ 70462: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _MigrationItems = _interopRequireDefault(__nccwpck_require__(84208)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayMigratePersonalItemsOutput model module. + * @module model/GatewayMigratePersonalItemsOutput + * @version 3.6.3 + */ +var GatewayMigratePersonalItemsOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayMigratePersonalItemsOutput. + * @alias module:model/GatewayMigratePersonalItemsOutput + */ + function GatewayMigratePersonalItemsOutput() { + _classCallCheck(this, GatewayMigratePersonalItemsOutput); + + GatewayMigratePersonalItemsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayMigratePersonalItemsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayMigratePersonalItemsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayMigratePersonalItemsOutput} obj Optional instance to populate. + * @return {module:model/GatewayMigratePersonalItemsOutput} The populated GatewayMigratePersonalItemsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayMigratePersonalItemsOutput(); + + if (data.hasOwnProperty('migration_items')) { + obj['migration_items'] = _MigrationItems["default"].constructFromObject(data['migration_items']); + } + } + + return obj; + } + }]); + + return GatewayMigratePersonalItemsOutput; +}(); +/** + * @member {module:model/MigrationItems} migration_items + */ + + +GatewayMigratePersonalItemsOutput.prototype['migration_items'] = undefined; +var _default = GatewayMigratePersonalItemsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 19863: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayMigrationCreateOutput model module. + * @module model/GatewayMigrationCreateOutput + * @version 3.6.3 + */ +var GatewayMigrationCreateOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayMigrationCreateOutput. + * @alias module:model/GatewayMigrationCreateOutput + */ + function GatewayMigrationCreateOutput() { + _classCallCheck(this, GatewayMigrationCreateOutput); + + GatewayMigrationCreateOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayMigrationCreateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayMigrationCreateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayMigrationCreateOutput} obj Optional instance to populate. + * @return {module:model/GatewayMigrationCreateOutput} The populated GatewayMigrationCreateOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayMigrationCreateOutput(); + + if (data.hasOwnProperty('migration_name')) { + obj['migration_name'] = _ApiClient["default"].convertToType(data['migration_name'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayMigrationCreateOutput; +}(); +/** + * @member {String} migration_name + */ + + +GatewayMigrationCreateOutput.prototype['migration_name'] = undefined; +var _default = GatewayMigrationCreateOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 16996: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayMigrationDeleteOutput model module. + * @module model/GatewayMigrationDeleteOutput + * @version 3.6.3 + */ +var GatewayMigrationDeleteOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayMigrationDeleteOutput. + * @alias module:model/GatewayMigrationDeleteOutput + */ + function GatewayMigrationDeleteOutput() { + _classCallCheck(this, GatewayMigrationDeleteOutput); + + GatewayMigrationDeleteOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayMigrationDeleteOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayMigrationDeleteOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayMigrationDeleteOutput} obj Optional instance to populate. + * @return {module:model/GatewayMigrationDeleteOutput} The populated GatewayMigrationDeleteOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayMigrationDeleteOutput(); + + if (data.hasOwnProperty('migration_id')) { + obj['migration_id'] = _ApiClient["default"].convertToType(data['migration_id'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayMigrationDeleteOutput; +}(); +/** + * @member {String} migration_id + */ + + +GatewayMigrationDeleteOutput.prototype['migration_id'] = undefined; +var _default = GatewayMigrationDeleteOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 90097: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _MigrationsConfigPart = _interopRequireDefault(__nccwpck_require__(27734)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayMigrationGetOutput model module. + * @module model/GatewayMigrationGetOutput + * @version 3.6.3 + */ +var GatewayMigrationGetOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayMigrationGetOutput. + * @alias module:model/GatewayMigrationGetOutput + */ + function GatewayMigrationGetOutput() { + _classCallCheck(this, GatewayMigrationGetOutput); + + GatewayMigrationGetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayMigrationGetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayMigrationGetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayMigrationGetOutput} obj Optional instance to populate. + * @return {module:model/GatewayMigrationGetOutput} The populated GatewayMigrationGetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayMigrationGetOutput(); + + if (data.hasOwnProperty('body')) { + obj['body'] = _MigrationsConfigPart["default"].constructFromObject(data['body']); + } + } + + return obj; + } + }]); + + return GatewayMigrationGetOutput; +}(); +/** + * @member {module:model/MigrationsConfigPart} body + */ + + +GatewayMigrationGetOutput.prototype['body'] = undefined; +var _default = GatewayMigrationGetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 80859: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _MigrationsConfigPart = _interopRequireDefault(__nccwpck_require__(27734)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayMigrationListOutput model module. + * @module model/GatewayMigrationListOutput + * @version 3.6.3 + */ +var GatewayMigrationListOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayMigrationListOutput. + * @alias module:model/GatewayMigrationListOutput + */ + function GatewayMigrationListOutput() { + _classCallCheck(this, GatewayMigrationListOutput); + + GatewayMigrationListOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayMigrationListOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayMigrationListOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayMigrationListOutput} obj Optional instance to populate. + * @return {module:model/GatewayMigrationListOutput} The populated GatewayMigrationListOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayMigrationListOutput(); + + if (data.hasOwnProperty('body')) { + obj['body'] = _MigrationsConfigPart["default"].constructFromObject(data['body']); + } + } + + return obj; + } + }]); + + return GatewayMigrationListOutput; +}(); +/** + * @member {module:model/MigrationsConfigPart} body + */ + + +GatewayMigrationListOutput.prototype['body'] = undefined; +var _default = GatewayMigrationListOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 10052: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayMigrationSyncOutput model module. + * @module model/GatewayMigrationSyncOutput + * @version 3.6.3 + */ +var GatewayMigrationSyncOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayMigrationSyncOutput. + * @alias module:model/GatewayMigrationSyncOutput + */ + function GatewayMigrationSyncOutput() { + _classCallCheck(this, GatewayMigrationSyncOutput); + + GatewayMigrationSyncOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayMigrationSyncOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayMigrationSyncOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayMigrationSyncOutput} obj Optional instance to populate. + * @return {module:model/GatewayMigrationSyncOutput} The populated GatewayMigrationSyncOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayMigrationSyncOutput(); + + if (data.hasOwnProperty('migration_name')) { + obj['migration_name'] = _ApiClient["default"].convertToType(data['migration_name'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayMigrationSyncOutput; +}(); +/** + * @member {String} migration_name + */ + + +GatewayMigrationSyncOutput.prototype['migration_name'] = undefined; +var _default = GatewayMigrationSyncOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 90294: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayMigrationUpdateOutput model module. + * @module model/GatewayMigrationUpdateOutput + * @version 3.6.3 + */ +var GatewayMigrationUpdateOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayMigrationUpdateOutput. + * @alias module:model/GatewayMigrationUpdateOutput + */ + function GatewayMigrationUpdateOutput() { + _classCallCheck(this, GatewayMigrationUpdateOutput); + + GatewayMigrationUpdateOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayMigrationUpdateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayMigrationUpdateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayMigrationUpdateOutput} obj Optional instance to populate. + * @return {module:model/GatewayMigrationUpdateOutput} The populated GatewayMigrationUpdateOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayMigrationUpdateOutput(); + + if (data.hasOwnProperty('migration_name')) { + obj['migration_name'] = _ApiClient["default"].convertToType(data['migration_name'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayMigrationUpdateOutput; +}(); +/** + * @member {String} migration_name + */ + + +GatewayMigrationUpdateOutput.prototype['migration_name'] = undefined; +var _default = GatewayMigrationUpdateOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 20353: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayRevokeTmpUsers model module. + * @module model/GatewayRevokeTmpUsers + * @version 3.6.3 + */ +var GatewayRevokeTmpUsers = /*#__PURE__*/function () { + /** + * Constructs a new GatewayRevokeTmpUsers. + * gatewayRevokeTmpUsers is a command that revoke producer tmp user [Deprecated: Use dynamic-secret-tmp-creds-delete command] + * @alias module:model/GatewayRevokeTmpUsers + * @param name {String} Dynamic secret name + * @param tmpCredsId {String} Tmp Creds ID + */ + function GatewayRevokeTmpUsers(name, tmpCredsId) { + _classCallCheck(this, GatewayRevokeTmpUsers); + + GatewayRevokeTmpUsers.initialize(this, name, tmpCredsId); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayRevokeTmpUsers, null, [{ + key: "initialize", + value: function initialize(obj, name, tmpCredsId) { + obj['name'] = name; + obj['tmp-creds-id'] = tmpCredsId; + } + /** + * Constructs a GatewayRevokeTmpUsers from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayRevokeTmpUsers} obj Optional instance to populate. + * @return {module:model/GatewayRevokeTmpUsers} The populated GatewayRevokeTmpUsers instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayRevokeTmpUsers(); + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('revoke-all')) { + obj['revoke-all'] = _ApiClient["default"].convertToType(data['revoke-all'], 'Boolean'); + } + + if (data.hasOwnProperty('soft-delete')) { + obj['soft-delete'] = _ApiClient["default"].convertToType(data['soft-delete'], 'Boolean'); + } + + if (data.hasOwnProperty('tmp-creds-id')) { + obj['tmp-creds-id'] = _ApiClient["default"].convertToType(data['tmp-creds-id'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayRevokeTmpUsers; +}(); +/** + * Host + * @member {String} host + */ + + +GatewayRevokeTmpUsers.prototype['host'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayRevokeTmpUsers.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayRevokeTmpUsers.prototype['name'] = undefined; +/** + * Revoke All Temp Creds + * @member {Boolean} revoke-all + */ + +GatewayRevokeTmpUsers.prototype['revoke-all'] = undefined; +/** + * Soft Delete + * @member {Boolean} soft-delete + */ + +GatewayRevokeTmpUsers.prototype['soft-delete'] = undefined; +/** + * Tmp Creds ID + * @member {String} tmp-creds-id + * @default 'demo_default_tmp_creds_id_for_sdk_bc' + */ + +GatewayRevokeTmpUsers.prototype['tmp-creds-id'] = 'demo_default_tmp_creds_id_for_sdk_bc'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayRevokeTmpUsers.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayRevokeTmpUsers.prototype['uid-token'] = undefined; +var _default = GatewayRevokeTmpUsers; +exports["default"] = _default; + +/***/ }), + +/***/ 81196: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayStartProducer model module. + * @module model/GatewayStartProducer + * @version 3.6.3 + */ +var GatewayStartProducer = /*#__PURE__*/function () { + /** + * Constructs a new GatewayStartProducer. + * gatewayStartProducer is a command that starts producer [Deprecated: Use set-item-state command] + * @alias module:model/GatewayStartProducer + * @param name {String} Dynamic secret name + */ + function GatewayStartProducer(name) { + _classCallCheck(this, GatewayStartProducer); + + GatewayStartProducer.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayStartProducer, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayStartProducer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayStartProducer} obj Optional instance to populate. + * @return {module:model/GatewayStartProducer} The populated GatewayStartProducer instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayStartProducer(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayStartProducer; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayStartProducer.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayStartProducer.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayStartProducer.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayStartProducer.prototype['uid-token'] = undefined; +var _default = GatewayStartProducer; +exports["default"] = _default; + +/***/ }), + +/***/ 66477: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayStartProducerOutput model module. + * @module model/GatewayStartProducerOutput + * @version 3.6.3 + */ +var GatewayStartProducerOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayStartProducerOutput. + * @alias module:model/GatewayStartProducerOutput + */ + function GatewayStartProducerOutput() { + _classCallCheck(this, GatewayStartProducerOutput); + + GatewayStartProducerOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayStartProducerOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayStartProducerOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayStartProducerOutput} obj Optional instance to populate. + * @return {module:model/GatewayStartProducerOutput} The populated GatewayStartProducerOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayStartProducerOutput(); + + if (data.hasOwnProperty('producer_name')) { + obj['producer_name'] = _ApiClient["default"].convertToType(data['producer_name'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayStartProducerOutput; +}(); +/** + * @member {String} producer_name + */ + + +GatewayStartProducerOutput.prototype['producer_name'] = undefined; +var _default = GatewayStartProducerOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 32708: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayStatusMigration model module. + * @module model/GatewayStatusMigration + * @version 3.6.3 + */ +var GatewayStatusMigration = /*#__PURE__*/function () { + /** + * Constructs a new GatewayStatusMigration. + * gatewayStatusMigration is a command that get migration status + * @alias module:model/GatewayStatusMigration + */ + function GatewayStatusMigration() { + _classCallCheck(this, GatewayStatusMigration); + + GatewayStatusMigration.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayStatusMigration, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayStatusMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayStatusMigration} obj Optional instance to populate. + * @return {module:model/GatewayStatusMigration} The populated GatewayStatusMigration instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayStatusMigration(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayStatusMigration; +}(); +/** + * Migration ID + * @member {String} id + */ + + +GatewayStatusMigration.prototype['id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayStatusMigration.prototype['json'] = false; +/** + * Migration name to display + * @member {String} name + */ + +GatewayStatusMigration.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayStatusMigration.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayStatusMigration.prototype['uid-token'] = undefined; +var _default = GatewayStatusMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 55242: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayStopProducer model module. + * @module model/GatewayStopProducer + * @version 3.6.3 + */ +var GatewayStopProducer = /*#__PURE__*/function () { + /** + * Constructs a new GatewayStopProducer. + * gatewayStopProducer is a command that stops producer [Deprecated: Use set-item-state command] + * @alias module:model/GatewayStopProducer + * @param name {String} Dynamic secret name + */ + function GatewayStopProducer(name) { + _classCallCheck(this, GatewayStopProducer); + + GatewayStopProducer.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayStopProducer, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayStopProducer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayStopProducer} obj Optional instance to populate. + * @return {module:model/GatewayStopProducer} The populated GatewayStopProducer instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayStopProducer(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayStopProducer; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewayStopProducer.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayStopProducer.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayStopProducer.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayStopProducer.prototype['uid-token'] = undefined; +var _default = GatewayStopProducer; +exports["default"] = _default; + +/***/ }), + +/***/ 74239: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayStopProducerOutput model module. + * @module model/GatewayStopProducerOutput + * @version 3.6.3 + */ +var GatewayStopProducerOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayStopProducerOutput. + * @alias module:model/GatewayStopProducerOutput + */ + function GatewayStopProducerOutput() { + _classCallCheck(this, GatewayStopProducerOutput); + + GatewayStopProducerOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayStopProducerOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayStopProducerOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayStopProducerOutput} obj Optional instance to populate. + * @return {module:model/GatewayStopProducerOutput} The populated GatewayStopProducerOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayStopProducerOutput(); + + if (data.hasOwnProperty('producer_name')) { + obj['producer_name'] = _ApiClient["default"].convertToType(data['producer_name'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayStopProducerOutput; +}(); +/** + * @member {String} producer_name + */ + + +GatewayStopProducerOutput.prototype['producer_name'] = undefined; +var _default = GatewayStopProducerOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 93147: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewaySyncMigration model module. + * @module model/GatewaySyncMigration + * @version 3.6.3 + */ +var GatewaySyncMigration = /*#__PURE__*/function () { + /** + * Constructs a new GatewaySyncMigration. + * gatewaySyncMigration is a command that sync migration + * @alias module:model/GatewaySyncMigration + * @param name {String} Migration name + */ + function GatewaySyncMigration(name) { + _classCallCheck(this, GatewaySyncMigration); + + GatewaySyncMigration.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewaySyncMigration, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewaySyncMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewaySyncMigration} obj Optional instance to populate. + * @return {module:model/GatewaySyncMigration} The populated GatewaySyncMigration instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewaySyncMigration(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('start-sync')) { + obj['start-sync'] = _ApiClient["default"].convertToType(data['start-sync'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewaySyncMigration; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GatewaySyncMigration.prototype['json'] = false; +/** + * Migration name + * @member {String} name + */ + +GatewaySyncMigration.prototype['name'] = undefined; +/** + * true, for starting synchronization, false for stopping + * @member {Boolean} start-sync + */ + +GatewaySyncMigration.prototype['start-sync'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewaySyncMigration.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewaySyncMigration.prototype['uid-token'] = undefined; +var _default = GatewaySyncMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 60395: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateAllowedAccess model module. + * @module model/GatewayUpdateAllowedAccess + * @version 3.6.3 + */ +var GatewayUpdateAllowedAccess = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateAllowedAccess. + * gatewayUpdateAllowedAccess is a command that update allowed access in Gator + * @alias module:model/GatewayUpdateAllowedAccess + * @param accessId {String} Access ID The access id to be attached to this allowed access. Auth method with this access id should already exist. + * @param name {String} Allowed access name + */ + function GatewayUpdateAllowedAccess(accessId, name) { + _classCallCheck(this, GatewayUpdateAllowedAccess); + + GatewayUpdateAllowedAccess.initialize(this, accessId, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateAllowedAccess, null, [{ + key: "initialize", + value: function initialize(obj, accessId, name) { + obj['access-id'] = accessId; + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateAllowedAccess from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateAllowedAccess} obj Optional instance to populate. + * @return {module:model/GatewayUpdateAllowedAccess} The populated GatewayUpdateAllowedAccess instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateAllowedAccess(); + + if (data.hasOwnProperty('SubClaimsCaseInsensitive')) { + obj['SubClaimsCaseInsensitive'] = _ApiClient["default"].convertToType(data['SubClaimsCaseInsensitive'], 'Boolean'); + } + + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('case-sensitive')) { + obj['case-sensitive'] = _ApiClient["default"].convertToType(data['case-sensitive'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('permissions')) { + obj['permissions'] = _ApiClient["default"].convertToType(data['permissions'], 'String'); + } + + if (data.hasOwnProperty('sub-claims')) { + obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateAllowedAccess; +}(); +/** + * @member {Boolean} SubClaimsCaseInsensitive + */ + + +GatewayUpdateAllowedAccess.prototype['SubClaimsCaseInsensitive'] = undefined; +/** + * Access ID The access id to be attached to this allowed access. Auth method with this access id should already exist. + * @member {String} access-id + */ + +GatewayUpdateAllowedAccess.prototype['access-id'] = undefined; +/** + * Treat sub claims as case-sensitive [true/false] + * @member {String} case-sensitive + * @default 'true' + */ + +GatewayUpdateAllowedAccess.prototype['case-sensitive'] = 'true'; +/** + * Allowed access description + * @member {String} description + */ + +GatewayUpdateAllowedAccess.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateAllowedAccess.prototype['json'] = false; +/** + * Allowed access name + * @member {String} name + */ + +GatewayUpdateAllowedAccess.prototype['name'] = undefined; +/** + * New allowed access name + * @member {String} new-name + */ + +GatewayUpdateAllowedAccess.prototype['new-name'] = undefined; +/** + * Permissions Comma-seperated list of permissions for this allowed access. Available permissions: [defaults,targets,classic_keys,automatic_migration,ldap_auth,dynamic_secret,k8s_auth,log_forwarding,zero_knowledge_encryption,rotated_secret,caching,event_forwarding,admin,kmip,general] + * @member {String} permissions + */ + +GatewayUpdateAllowedAccess.prototype['permissions'] = undefined; +/** + * Sub claims key/val of sub claims, e.g group=admins,developers + * @member {Object.} sub-claims + */ + +GatewayUpdateAllowedAccess.prototype['sub-claims'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateAllowedAccess.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateAllowedAccess.prototype['uid-token'] = undefined; +var _default = GatewayUpdateAllowedAccess; +exports["default"] = _default; + +/***/ }), + +/***/ 88678: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateItem model module. + * @module model/GatewayUpdateItem + * @version 3.6.3 + */ +var GatewayUpdateItem = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateItem. + * gatewayUpdateItem is a command that updates classic key + * @alias module:model/GatewayUpdateItem + * @param name {String} Item name + * @param type {String} Item type + */ + function GatewayUpdateItem(name, type) { + _classCallCheck(this, GatewayUpdateItem); + + GatewayUpdateItem.initialize(this, name, type); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateItem, null, [{ + key: "initialize", + value: function initialize(obj, name, type) { + obj['name'] = name; + obj['type'] = type; + } + /** + * Constructs a GatewayUpdateItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateItem} obj Optional instance to populate. + * @return {module:model/GatewayUpdateItem} The populated GatewayUpdateItem instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateItem(); + + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } + + if (data.hasOwnProperty('api-id')) { + obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); + } + + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + } + + if (data.hasOwnProperty('app-id')) { + obj['app-id'] = _ApiClient["default"].convertToType(data['app-id'], 'String'); + } + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('custom-payload')) { + obj['custom-payload'] = _ApiClient["default"].convertToType(data['custom-payload'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } + + if (data.hasOwnProperty('gcp-service-account-email')) { + obj['gcp-service-account-email'] = _ApiClient["default"].convertToType(data['gcp-service-account-email'], 'String'); + } + + if (data.hasOwnProperty('gcp-service-account-key-id')) { + obj['gcp-service-account-key-id'] = _ApiClient["default"].convertToType(data['gcp-service-account-key-id'], 'String'); + } + + if (data.hasOwnProperty('grace-rotation')) { + obj['grace-rotation'] = _ApiClient["default"].convertToType(data['grace-rotation'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-metadata')) { + obj['new-metadata'] = _ApiClient["default"].convertToType(data['new-metadata'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('new-version')) { + obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-creds-type')) { + obj['rotator-creds-type'] = _ApiClient["default"].convertToType(data['rotator-creds-type'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateItem; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ + + +GatewayUpdateItem.prototype['add-tag'] = undefined; +/** + * API ID to rotate (relevant only for rotator-type=api-key) + * @member {String} api-id + */ + +GatewayUpdateItem.prototype['api-id'] = undefined; +/** + * API key to rotate (relevant only for rotator-type=api-key) + * @member {String} api-key + */ + +GatewayUpdateItem.prototype['api-key'] = undefined; +/** + * ApplicationId (used in azure) + * @member {String} app-id + */ + +GatewayUpdateItem.prototype['app-id'] = undefined; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +GatewayUpdateItem.prototype['auto-rotate'] = undefined; +/** + * Secret payload to be sent with rotation request (relevant only for rotator-type=custom) + * @member {String} custom-payload + */ + +GatewayUpdateItem.prototype['custom-payload'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateItem.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ + +GatewayUpdateItem.prototype['description'] = 'default_metadata'; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ + +GatewayUpdateItem.prototype['gcp-key'] = undefined; +/** + * The email of the gcp service account to rotate + * @member {String} gcp-service-account-email + */ + +GatewayUpdateItem.prototype['gcp-service-account-email'] = undefined; +/** + * The key id of the gcp service account to rotate + * @member {String} gcp-service-account-key-id + */ + +GatewayUpdateItem.prototype['gcp-service-account-key-id'] = undefined; +/** + * Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false] + * @member {String} grace-rotation + */ + +GatewayUpdateItem.prototype['grace-rotation'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateItem.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. (relevant only for --type=rotated-secret). If not set, use default according to account settings + * @member {String} keep-prev-version + */ + +GatewayUpdateItem.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +GatewayUpdateItem.prototype['key'] = undefined; +/** + * Item name + * @member {String} name + */ + +GatewayUpdateItem.prototype['name'] = undefined; +/** + * Deprecated - use description + * @member {String} new-metadata + * @default 'default_metadata' + */ + +GatewayUpdateItem.prototype['new-metadata'] = 'default_metadata'; +/** + * New item name + * @member {String} new-name + */ + +GatewayUpdateItem.prototype['new-name'] = undefined; +/** + * Deprecated + * @member {Boolean} new-version + */ + +GatewayUpdateItem.prototype['new-version'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateItem.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ + +GatewayUpdateItem.prototype['rm-tag'] = undefined; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +GatewayUpdateItem.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected \\\"use-self-creds\\\" at rotator-creds-type, this username will try to rotate it's own password, if \\\"use-target-creds\\\" is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ + +GatewayUpdateItem.prototype['rotated-username'] = undefined; +/** + * The Rotation Hour + * @member {Number} rotation-hour + * @default 0 + */ + +GatewayUpdateItem.prototype['rotation-hour'] = 0; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +GatewayUpdateItem.prototype['rotation-interval'] = undefined; +/** + * The rotation credentials type + * @member {String} rotator-creds-type + * @default 'use-self-creds' + */ + +GatewayUpdateItem.prototype['rotator-creds-type'] = 'use-self-creds'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateItem.prototype['token'] = undefined; +/** + * Item type + * @member {String} type + */ + +GatewayUpdateItem.prototype['type'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateItem.prototype['uid-token'] = undefined; +var _default = GatewayUpdateItem; +exports["default"] = _default; + +/***/ }), + +/***/ 11235: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateItemOutput model module. + * @module model/GatewayUpdateItemOutput + * @version 3.6.3 + */ +var GatewayUpdateItemOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateItemOutput. + * @alias module:model/GatewayUpdateItemOutput + */ + function GatewayUpdateItemOutput() { + _classCallCheck(this, GatewayUpdateItemOutput); + + GatewayUpdateItemOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateItemOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateItemOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateItemOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateItemOutput} The populated GatewayUpdateItemOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateItemOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateItemOutput; +}(); +/** + * @member {String} name + */ + + +GatewayUpdateItemOutput.prototype['name'] = undefined; +var _default = GatewayUpdateItemOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 88681: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateK8SAuthConfig model module. + * @module model/GatewayUpdateK8SAuthConfig + * @version 3.6.3 + */ +var GatewayUpdateK8SAuthConfig = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateK8SAuthConfig. + * gatewayUpdateK8SAuth is a command that updates k8s auth config + * @alias module:model/GatewayUpdateK8SAuthConfig + * @param accessId {String} The access ID of the Kubernetes auth method + * @param k8sHost {String} The URL of the kubernetes API server + * @param name {String} K8S Auth config name + * @param newName {String} K8S Auth config new name + * @param signingKey {String} The private key (base64 encoded) associated with the public key defined in the Kubernetes auth + */ + function GatewayUpdateK8SAuthConfig(accessId, k8sHost, name, newName, signingKey) { + _classCallCheck(this, GatewayUpdateK8SAuthConfig); + + GatewayUpdateK8SAuthConfig.initialize(this, accessId, k8sHost, name, newName, signingKey); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateK8SAuthConfig, null, [{ + key: "initialize", + value: function initialize(obj, accessId, k8sHost, name, newName, signingKey) { + obj['access-id'] = accessId; + obj['k8s-host'] = k8sHost; + obj['name'] = name; + obj['new-name'] = newName; + obj['signing-key'] = signingKey; + } + /** + * Constructs a GatewayUpdateK8SAuthConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateK8SAuthConfig} obj Optional instance to populate. + * @return {module:model/GatewayUpdateK8SAuthConfig} The populated GatewayUpdateK8SAuthConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateK8SAuthConfig(); + + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('cluster-api-type')) { + obj['cluster-api-type'] = _ApiClient["default"].convertToType(data['cluster-api-type'], 'String'); + } + + if (data.hasOwnProperty('config-encryption-key-name')) { + obj['config-encryption-key-name'] = _ApiClient["default"].convertToType(data['config-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('disable-issuer-validation')) { + obj['disable-issuer-validation'] = _ApiClient["default"].convertToType(data['disable-issuer-validation'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-auth-type')) { + obj['k8s-auth-type'] = _ApiClient["default"].convertToType(data['k8s-auth-type'], 'String'); + } + + if (data.hasOwnProperty('k8s-ca-cert')) { + obj['k8s-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('k8s-client-certificate')) { + obj['k8s-client-certificate'] = _ApiClient["default"].convertToType(data['k8s-client-certificate'], 'String'); + } + + if (data.hasOwnProperty('k8s-client-key')) { + obj['k8s-client-key'] = _ApiClient["default"].convertToType(data['k8s-client-key'], 'String'); + } + + if (data.hasOwnProperty('k8s-host')) { + obj['k8s-host'] = _ApiClient["default"].convertToType(data['k8s-host'], 'String'); + } + + if (data.hasOwnProperty('k8s-issuer')) { + obj['k8s-issuer'] = _ApiClient["default"].convertToType(data['k8s-issuer'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('rancher-api-key')) { + obj['rancher-api-key'] = _ApiClient["default"].convertToType(data['rancher-api-key'], 'String'); + } + + if (data.hasOwnProperty('rancher-cluster-id')) { + obj['rancher-cluster-id'] = _ApiClient["default"].convertToType(data['rancher-cluster-id'], 'String'); + } + + if (data.hasOwnProperty('signing-key')) { + obj['signing-key'] = _ApiClient["default"].convertToType(data['signing-key'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('token-exp')) { + obj['token-exp'] = _ApiClient["default"].convertToType(data['token-exp'], 'Number'); + } + + if (data.hasOwnProperty('token-reviewer-jwt')) { + obj['token-reviewer-jwt'] = _ApiClient["default"].convertToType(data['token-reviewer-jwt'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-service-account')) { + obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + } + } + + return obj; + } + }]); + + return GatewayUpdateK8SAuthConfig; +}(); +/** + * The access ID of the Kubernetes auth method + * @member {String} access-id + */ + + +GatewayUpdateK8SAuthConfig.prototype['access-id'] = undefined; +/** + * Cluster access type. options: [native_k8s, rancher] + * @member {String} cluster-api-type + * @default 'native_k8s' + */ + +GatewayUpdateK8SAuthConfig.prototype['cluster-api-type'] = 'native_k8s'; +/** + * Config encryption key + * @member {String} config-encryption-key-name + */ + +GatewayUpdateK8SAuthConfig.prototype['config-encryption-key-name'] = undefined; +/** + * Disable issuer validation [true/false] + * @member {String} disable-issuer-validation + */ + +GatewayUpdateK8SAuthConfig.prototype['disable-issuer-validation'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateK8SAuthConfig.prototype['json'] = false; +/** + * K8S auth type [token/certificate]. (relevant for \"native_k8s\" only) + * @member {String} k8s-auth-type + * @default 'token' + */ + +GatewayUpdateK8SAuthConfig.prototype['k8s-auth-type'] = 'token'; +/** + * The CA Certificate (base64 encoded) to use to call into the kubernetes API server + * @member {String} k8s-ca-cert + */ + +GatewayUpdateK8SAuthConfig.prototype['k8s-ca-cert'] = undefined; +/** + * Content of the k8 client certificate (PEM format) in a Base64 format (relevant for \"native_k8s\" only) + * @member {String} k8s-client-certificate + */ + +GatewayUpdateK8SAuthConfig.prototype['k8s-client-certificate'] = undefined; +/** + * Content of the k8 client private key (PEM format) in a Base64 format (relevant for \"native_k8s\" only) + * @member {String} k8s-client-key + */ + +GatewayUpdateK8SAuthConfig.prototype['k8s-client-key'] = undefined; +/** + * The URL of the kubernetes API server + * @member {String} k8s-host + */ + +GatewayUpdateK8SAuthConfig.prototype['k8s-host'] = undefined; +/** + * The Kubernetes JWT issuer name. K8SIssuer is the claim that specifies who issued the Kubernetes token + * @member {String} k8s-issuer + * @default 'kubernetes/serviceaccount' + */ + +GatewayUpdateK8SAuthConfig.prototype['k8s-issuer'] = 'kubernetes/serviceaccount'; +/** + * K8S Auth config name + * @member {String} name + */ + +GatewayUpdateK8SAuthConfig.prototype['name'] = undefined; +/** + * K8S Auth config new name + * @member {String} new-name + */ + +GatewayUpdateK8SAuthConfig.prototype['new-name'] = undefined; +/** + * The api key used to access the TokenReview API to validate other JWTs (relevant for \"rancher\" only) + * @member {String} rancher-api-key + */ + +GatewayUpdateK8SAuthConfig.prototype['rancher-api-key'] = undefined; +/** + * The cluster id as define in rancher (relevant for \"rancher\" only) + * @member {String} rancher-cluster-id + */ + +GatewayUpdateK8SAuthConfig.prototype['rancher-cluster-id'] = undefined; +/** + * The private key (base64 encoded) associated with the public key defined in the Kubernetes auth + * @member {String} signing-key + */ + +GatewayUpdateK8SAuthConfig.prototype['signing-key'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateK8SAuthConfig.prototype['token'] = undefined; +/** + * Time in seconds of expiration of the Akeyless Kube Auth Method token + * @member {Number} token-exp + * @default 300 + */ + +GatewayUpdateK8SAuthConfig.prototype['token-exp'] = 300; +/** + * A Kubernetes service account JWT used to access the TokenReview API to validate other JWTs (relevant for \"native_k8s\" only). If not set, the JWT submitted in the authentication process will be used to access the Kubernetes TokenReview API. + * @member {String} token-reviewer-jwt + */ + +GatewayUpdateK8SAuthConfig.prototype['token-reviewer-jwt'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateK8SAuthConfig.prototype['uid-token'] = undefined; +/** + * Use the GW's service account + * @member {Boolean} use-gw-service-account + */ + +GatewayUpdateK8SAuthConfig.prototype['use-gw-service-account'] = undefined; +var _default = GatewayUpdateK8SAuthConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 74380: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _ConfigChange = _interopRequireDefault(__nccwpck_require__(47166)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateK8SAuthConfigOutput model module. + * @module model/GatewayUpdateK8SAuthConfigOutput + * @version 3.6.3 + */ +var GatewayUpdateK8SAuthConfigOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateK8SAuthConfigOutput. + * @alias module:model/GatewayUpdateK8SAuthConfigOutput + */ + function GatewayUpdateK8SAuthConfigOutput() { + _classCallCheck(this, GatewayUpdateK8SAuthConfigOutput); + + GatewayUpdateK8SAuthConfigOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateK8SAuthConfigOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateK8SAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateK8SAuthConfigOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateK8SAuthConfigOutput} The populated GatewayUpdateK8SAuthConfigOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateK8SAuthConfigOutput(); + + if (data.hasOwnProperty('cluster_id')) { + obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'String'); + } + + if (data.hasOwnProperty('parts_change')) { + obj['parts_change'] = _ConfigChange["default"].constructFromObject(data['parts_change']); + } + + if (data.hasOwnProperty('total_hash')) { + obj['total_hash'] = _ApiClient["default"].convertToType(data['total_hash'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateK8SAuthConfigOutput; +}(); +/** + * @member {String} cluster_id + */ + + +GatewayUpdateK8SAuthConfigOutput.prototype['cluster_id'] = undefined; +/** + * @member {module:model/ConfigChange} parts_change + */ + +GatewayUpdateK8SAuthConfigOutput.prototype['parts_change'] = undefined; +/** + * @member {String} total_hash + */ + +GatewayUpdateK8SAuthConfigOutput.prototype['total_hash'] = undefined; +var _default = GatewayUpdateK8SAuthConfigOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 36544: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateLdapAuthConfig model module. + * @module model/GatewayUpdateLdapAuthConfig + * @version 3.6.3 + */ +var GatewayUpdateLdapAuthConfig = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateLdapAuthConfig. + * gatewayUpdateLdapAuth is a command that updates ldap auth config + * @alias module:model/GatewayUpdateLdapAuthConfig + */ + function GatewayUpdateLdapAuthConfig() { + _classCallCheck(this, GatewayUpdateLdapAuthConfig); + + GatewayUpdateLdapAuthConfig.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateLdapAuthConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateLdapAuthConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateLdapAuthConfig} obj Optional instance to populate. + * @return {module:model/GatewayUpdateLdapAuthConfig} The populated GatewayUpdateLdapAuthConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateLdapAuthConfig(); + + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } + + if (data.hasOwnProperty('bind-dn')) { + obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); + } + + if (data.hasOwnProperty('bind-dn-password')) { + obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); + } + + if (data.hasOwnProperty('group-attr')) { + obj['group-attr'] = _ApiClient["default"].convertToType(data['group-attr'], 'String'); + } + + if (data.hasOwnProperty('group-dn')) { + obj['group-dn'] = _ApiClient["default"].convertToType(data['group-dn'], 'String'); + } + + if (data.hasOwnProperty('group-filter')) { + obj['group-filter'] = _ApiClient["default"].convertToType(data['group-filter'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('ldap-ca-cert')) { + obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('ldap-enable')) { + obj['ldap-enable'] = _ApiClient["default"].convertToType(data['ldap-enable'], 'String'); + } + + if (data.hasOwnProperty('ldap-url')) { + obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); + } + + if (data.hasOwnProperty('ldap_anonymous_search')) { + obj['ldap_anonymous_search'] = _ApiClient["default"].convertToType(data['ldap_anonymous_search'], 'Boolean'); + } + + if (data.hasOwnProperty('signing-key-data')) { + obj['signing-key-data'] = _ApiClient["default"].convertToType(data['signing-key-data'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); + } + + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateLdapAuthConfig; +}(); +/** + * The access ID of the Ldap auth method + * @member {String} access-id + */ + + +GatewayUpdateLdapAuthConfig.prototype['access-id'] = undefined; +/** + * Bind DN + * @member {String} bind-dn + */ + +GatewayUpdateLdapAuthConfig.prototype['bind-dn'] = undefined; +/** + * Bind DN Password + * @member {String} bind-dn-password + */ + +GatewayUpdateLdapAuthConfig.prototype['bind-dn-password'] = undefined; +/** + * Group Attr + * @member {String} group-attr + */ + +GatewayUpdateLdapAuthConfig.prototype['group-attr'] = undefined; +/** + * Group Dn + * @member {String} group-dn + */ + +GatewayUpdateLdapAuthConfig.prototype['group-dn'] = undefined; +/** + * Group Filter + * @member {String} group-filter + */ + +GatewayUpdateLdapAuthConfig.prototype['group-filter'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateLdapAuthConfig.prototype['json'] = false; +/** + * LDAP CA Certificate (base64 encoded) + * @member {String} ldap-ca-cert + */ + +GatewayUpdateLdapAuthConfig.prototype['ldap-ca-cert'] = undefined; +/** + * Enable Ldap [true/false] + * @member {String} ldap-enable + */ + +GatewayUpdateLdapAuthConfig.prototype['ldap-enable'] = undefined; +/** + * LDAP Server URL, e.g. ldap://planetexpress.com:389 + * @member {String} ldap-url + */ + +GatewayUpdateLdapAuthConfig.prototype['ldap-url'] = undefined; +/** + * Ldap Anonymous Search + * @member {Boolean} ldap_anonymous_search + */ + +GatewayUpdateLdapAuthConfig.prototype['ldap_anonymous_search'] = undefined; +/** + * The private key (base64 encoded), associated with the public key defined in the Ldap auth + * @member {String} signing-key-data + */ + +GatewayUpdateLdapAuthConfig.prototype['signing-key-data'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateLdapAuthConfig.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateLdapAuthConfig.prototype['uid-token'] = undefined; +/** + * User Attribute + * @member {String} user-attribute + */ + +GatewayUpdateLdapAuthConfig.prototype['user-attribute'] = undefined; +/** + * User DN + * @member {String} user-dn + */ + +GatewayUpdateLdapAuthConfig.prototype['user-dn'] = undefined; +var _default = GatewayUpdateLdapAuthConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 20489: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateLdapAuthConfigOutput model module. + * @module model/GatewayUpdateLdapAuthConfigOutput + * @version 3.6.3 + */ +var GatewayUpdateLdapAuthConfigOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateLdapAuthConfigOutput. + * @alias module:model/GatewayUpdateLdapAuthConfigOutput + */ + function GatewayUpdateLdapAuthConfigOutput() { + _classCallCheck(this, GatewayUpdateLdapAuthConfigOutput); + + GatewayUpdateLdapAuthConfigOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateLdapAuthConfigOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateLdapAuthConfigOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateLdapAuthConfigOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateLdapAuthConfigOutput} The populated GatewayUpdateLdapAuthConfigOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateLdapAuthConfigOutput(); + + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); + } + } + + return obj; + } + }]); + + return GatewayUpdateLdapAuthConfigOutput; +}(); +/** + * @member {Boolean} updated + */ + + +GatewayUpdateLdapAuthConfigOutput.prototype['updated'] = undefined; +var _default = GatewayUpdateLdapAuthConfigOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 22313: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateMigration model module. + * @module model/GatewayUpdateMigration + * @version 3.6.3 + */ +var GatewayUpdateMigration = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateMigration. + * gatewayUpdateMigration is a command that update migration + * @alias module:model/GatewayUpdateMigration + * @param siTargetName {String} SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration) + * @param siUsersPathTemplate {String} Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration) + * @param targetLocation {String} Target location in Akeyless for imported secrets + */ + function GatewayUpdateMigration(siTargetName, siUsersPathTemplate, targetLocation) { + _classCallCheck(this, GatewayUpdateMigration); + + GatewayUpdateMigration.initialize(this, siTargetName, siUsersPathTemplate, targetLocation); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateMigration, null, [{ + key: "initialize", + value: function initialize(obj, siTargetName, siUsersPathTemplate, targetLocation) { + obj['si-target-name'] = siTargetName; + obj['si-users-path-template'] = siUsersPathTemplate; + obj['target-location'] = targetLocation; + } + /** + * Constructs a GatewayUpdateMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateMigration} obj Optional instance to populate. + * @return {module:model/GatewayUpdateMigration} The populated GatewayUpdateMigration instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateMigration(); + + if (data.hasOwnProperty('1password-email')) { + obj['1password-email'] = _ApiClient["default"].convertToType(data['1password-email'], 'String'); + } + + if (data.hasOwnProperty('1password-password')) { + obj['1password-password'] = _ApiClient["default"].convertToType(data['1password-password'], 'String'); + } + + if (data.hasOwnProperty('1password-secret-key')) { + obj['1password-secret-key'] = _ApiClient["default"].convertToType(data['1password-secret-key'], 'String'); + } + + if (data.hasOwnProperty('1password-url')) { + obj['1password-url'] = _ApiClient["default"].convertToType(data['1password-url'], 'String'); + } + + if (data.hasOwnProperty('1password-vaults')) { + obj['1password-vaults'] = _ApiClient["default"].convertToType(data['1password-vaults'], ['String']); + } + + if (data.hasOwnProperty('ad-discover-services')) { + obj['ad-discover-services'] = _ApiClient["default"].convertToType(data['ad-discover-services'], 'String'); + } + + if (data.hasOwnProperty('ad-discovery-types')) { + obj['ad-discovery-types'] = _ApiClient["default"].convertToType(data['ad-discovery-types'], ['String']); + } + + if (data.hasOwnProperty('ad-os-filter')) { + obj['ad-os-filter'] = _ApiClient["default"].convertToType(data['ad-os-filter'], 'String'); + } + + if (data.hasOwnProperty('ad-ssh-port')) { + obj['ad-ssh-port'] = _ApiClient["default"].convertToType(data['ad-ssh-port'], 'String'); + } + + if (data.hasOwnProperty('ad-target-format')) { + obj['ad-target-format'] = _ApiClient["default"].convertToType(data['ad-target-format'], 'String'); + } + + if (data.hasOwnProperty('ad-targets-type')) { + obj['ad-targets-type'] = _ApiClient["default"].convertToType(data['ad-targets-type'], 'String'); + } + + if (data.hasOwnProperty('ad-winrm-over-http')) { + obj['ad-winrm-over-http'] = _ApiClient["default"].convertToType(data['ad-winrm-over-http'], 'String'); + } + + if (data.hasOwnProperty('ad-winrm-port')) { + obj['ad-winrm-port'] = _ApiClient["default"].convertToType(data['ad-winrm-port'], 'String'); + } + + if (data.hasOwnProperty('ad_auto_rotate')) { + obj['ad_auto_rotate'] = _ApiClient["default"].convertToType(data['ad_auto_rotate'], 'String'); + } + + if (data.hasOwnProperty('ad_computer_base_dn')) { + obj['ad_computer_base_dn'] = _ApiClient["default"].convertToType(data['ad_computer_base_dn'], 'String'); + } + + if (data.hasOwnProperty('ad_discover_local_users')) { + obj['ad_discover_local_users'] = _ApiClient["default"].convertToType(data['ad_discover_local_users'], 'String'); + } + + if (data.hasOwnProperty('ad_domain_name')) { + obj['ad_domain_name'] = _ApiClient["default"].convertToType(data['ad_domain_name'], 'String'); + } + + if (data.hasOwnProperty('ad_domain_users_path_template')) { + obj['ad_domain_users_path_template'] = _ApiClient["default"].convertToType(data['ad_domain_users_path_template'], 'String'); + } + + if (data.hasOwnProperty('ad_local_users_ignore')) { + obj['ad_local_users_ignore'] = _ApiClient["default"].convertToType(data['ad_local_users_ignore'], 'String'); + } + + if (data.hasOwnProperty('ad_local_users_path_template')) { + obj['ad_local_users_path_template'] = _ApiClient["default"].convertToType(data['ad_local_users_path_template'], 'String'); + } + + if (data.hasOwnProperty('ad_rotation_hour')) { + obj['ad_rotation_hour'] = _ApiClient["default"].convertToType(data['ad_rotation_hour'], 'Number'); + } + + if (data.hasOwnProperty('ad_rotation_interval')) { + obj['ad_rotation_interval'] = _ApiClient["default"].convertToType(data['ad_rotation_interval'], 'Number'); + } + + if (data.hasOwnProperty('ad_sra_enable_rdp')) { + obj['ad_sra_enable_rdp'] = _ApiClient["default"].convertToType(data['ad_sra_enable_rdp'], 'String'); + } + + if (data.hasOwnProperty('ad_target_name')) { + obj['ad_target_name'] = _ApiClient["default"].convertToType(data['ad_target_name'], 'String'); + } + + if (data.hasOwnProperty('ad_targets_path_template')) { + obj['ad_targets_path_template'] = _ApiClient["default"].convertToType(data['ad_targets_path_template'], 'String'); + } + + if (data.hasOwnProperty('ad_user_base_dn')) { + obj['ad_user_base_dn'] = _ApiClient["default"].convertToType(data['ad_user_base_dn'], 'String'); + } + + if (data.hasOwnProperty('ad_user_groups')) { + obj['ad_user_groups'] = _ApiClient["default"].convertToType(data['ad_user_groups'], 'String'); + } + + if (data.hasOwnProperty('aws-key')) { + obj['aws-key'] = _ApiClient["default"].convertToType(data['aws-key'], 'String'); + } + + if (data.hasOwnProperty('aws-key-id')) { + obj['aws-key-id'] = _ApiClient["default"].convertToType(data['aws-key-id'], 'String'); + } + + if (data.hasOwnProperty('aws-region')) { + obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); + } + + if (data.hasOwnProperty('azure-client-id')) { + obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); + } + + if (data.hasOwnProperty('azure-kv-name')) { + obj['azure-kv-name'] = _ApiClient["default"].convertToType(data['azure-kv-name'], 'String'); + } + + if (data.hasOwnProperty('azure-secret')) { + obj['azure-secret'] = _ApiClient["default"].convertToType(data['azure-secret'], 'String'); + } + + if (data.hasOwnProperty('azure-tenant-id')) { + obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); + } + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } + + if (data.hasOwnProperty('hashi-json')) { + obj['hashi-json'] = _ApiClient["default"].convertToType(data['hashi-json'], 'String'); + } + + if (data.hasOwnProperty('hashi-ns')) { + obj['hashi-ns'] = _ApiClient["default"].convertToType(data['hashi-ns'], ['String']); + } + + if (data.hasOwnProperty('hashi-token')) { + obj['hashi-token'] = _ApiClient["default"].convertToType(data['hashi-token'], 'String'); + } + + if (data.hasOwnProperty('hashi-url')) { + obj['hashi-url'] = _ApiClient["default"].convertToType(data['hashi-url'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-ca-certificate')) { + obj['k8s-ca-certificate'] = _ApiClient["default"].convertToType(data['k8s-ca-certificate'], ['Number']); + } + + if (data.hasOwnProperty('k8s-client-certificate')) { + obj['k8s-client-certificate'] = _ApiClient["default"].convertToType(data['k8s-client-certificate'], ['Number']); + } + + if (data.hasOwnProperty('k8s-client-key')) { + obj['k8s-client-key'] = _ApiClient["default"].convertToType(data['k8s-client-key'], ['Number']); + } + + if (data.hasOwnProperty('k8s-namespace')) { + obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + } + + if (data.hasOwnProperty('k8s-password')) { + obj['k8s-password'] = _ApiClient["default"].convertToType(data['k8s-password'], 'String'); + } + + if (data.hasOwnProperty('k8s-skip-system')) { + obj['k8s-skip-system'] = _ApiClient["default"].convertToType(data['k8s-skip-system'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-token')) { + obj['k8s-token'] = _ApiClient["default"].convertToType(data['k8s-token'], 'String'); + } + + if (data.hasOwnProperty('k8s-url')) { + obj['k8s-url'] = _ApiClient["default"].convertToType(data['k8s-url'], 'String'); + } + + if (data.hasOwnProperty('k8s-username')) { + obj['k8s-username'] = _ApiClient["default"].convertToType(data['k8s-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new_name')) { + obj['new_name'] = _ApiClient["default"].convertToType(data['new_name'], 'String'); + } + + if (data.hasOwnProperty('protection-key')) { + obj['protection-key'] = _ApiClient["default"].convertToType(data['protection-key'], 'String'); + } + + if (data.hasOwnProperty('si-auto-rotate')) { + obj['si-auto-rotate'] = _ApiClient["default"].convertToType(data['si-auto-rotate'], 'String'); + } + + if (data.hasOwnProperty('si-rotation-hour')) { + obj['si-rotation-hour'] = _ApiClient["default"].convertToType(data['si-rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('si-rotation-interval')) { + obj['si-rotation-interval'] = _ApiClient["default"].convertToType(data['si-rotation-interval'], 'Number'); + } + + if (data.hasOwnProperty('si-sra-enable-rdp')) { + obj['si-sra-enable-rdp'] = _ApiClient["default"].convertToType(data['si-sra-enable-rdp'], 'String'); + } + + if (data.hasOwnProperty('si-target-name')) { + obj['si-target-name'] = _ApiClient["default"].convertToType(data['si-target-name'], 'String'); + } + + if (data.hasOwnProperty('si-user-groups')) { + obj['si-user-groups'] = _ApiClient["default"].convertToType(data['si-user-groups'], 'String'); + } + + if (data.hasOwnProperty('si-users-ignore')) { + obj['si-users-ignore'] = _ApiClient["default"].convertToType(data['si-users-ignore'], 'String'); + } + + if (data.hasOwnProperty('si-users-path-template')) { + obj['si-users-path-template'] = _ApiClient["default"].convertToType(data['si-users-path-template'], 'String'); + } + + if (data.hasOwnProperty('target-location')) { + obj['target-location'] = _ApiClient["default"].convertToType(data['target-location'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateMigration; +}(); +/** + * 1Password user email to connect to the API + * @member {String} 1password-email + */ + + +GatewayUpdateMigration.prototype['1password-email'] = undefined; +/** + * 1Password user password to connect to the API + * @member {String} 1password-password + */ + +GatewayUpdateMigration.prototype['1password-password'] = undefined; +/** + * 1Password user secret key to connect to the API + * @member {String} 1password-secret-key + */ + +GatewayUpdateMigration.prototype['1password-secret-key'] = undefined; +/** + * 1Password api container url + * @member {String} 1password-url + */ + +GatewayUpdateMigration.prototype['1password-url'] = undefined; +/** + * 1Password list of vault to get the items from + * @member {Array.} 1password-vaults + */ + +GatewayUpdateMigration.prototype['1password-vaults'] = undefined; +/** + * Enable/Disable discovery of Windows services from each domain server as part of the SSH/Windows Rotated Secrets. Default is false. (Relevant only for Active Directory migration) + * @member {String} ad-discover-services + * @default 'false' + */ + +GatewayUpdateMigration.prototype['ad-discover-services'] = 'false'; +/** + * Set migration discovery types (domain-users, computers, local-users). (Relevant only for Active Directory migration) + * @member {Array.} ad-discovery-types + */ + +GatewayUpdateMigration.prototype['ad-discovery-types'] = undefined; +/** + * Filter by Operating System to run the migration, can be used with wildcards, e.g. SRV20* (Relevant only for Active Directory migration) + * @member {String} ad-os-filter + */ + +GatewayUpdateMigration.prototype['ad-os-filter'] = undefined; +/** + * Set the SSH Port for further connection to the domain servers. Default is port 22 (Relevant only for Active Directory migration) + * @member {String} ad-ssh-port + * @default '22' + */ + +GatewayUpdateMigration.prototype['ad-ssh-port'] = '22'; +/** + * Relevant only for ad-discovery-types=computers. For linked, all computers will be migrated into a linked target(s). if set with regular, the migration will create a target for each computer. + * @member {String} ad-target-format + * @default 'linked' + */ + +GatewayUpdateMigration.prototype['ad-target-format'] = 'linked'; +/** + * Set the target type of the domain servers [ssh/windows](Relevant only for Active Directory migration) + * @member {String} ad-targets-type + * @default 'windows' + */ + +GatewayUpdateMigration.prototype['ad-targets-type'] = 'windows'; +/** + * Use WinRM over HTTP, by default runs over HTTPS + * @member {String} ad-winrm-over-http + * @default 'false' + */ + +GatewayUpdateMigration.prototype['ad-winrm-over-http'] = 'false'; +/** + * Set the WinRM Port for further connection to the domain servers. Default is 5986 (Relevant only for Active Directory migration) + * @member {String} ad-winrm-port + * @default '5986' + */ + +GatewayUpdateMigration.prototype['ad-winrm-port'] = '5986'; +/** + * Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --ad-rotation-interval and --ad-rotation-hour parameters (Relevant only for Active Directory migration) + * @member {String} ad_auto_rotate + */ + +GatewayUpdateMigration.prototype['ad_auto_rotate'] = undefined; +/** + * Distinguished Name of Computer objects (servers) to search in Active Directory e.g.: CN=Computers,DC=example,DC=com (Relevant only for Active Directory migration) + * @member {String} ad_computer_base_dn + */ + +GatewayUpdateMigration.prototype['ad_computer_base_dn'] = undefined; +/** + * Enable/Disable discovery of local users from each domain server and migrate them as SSH/Windows Rotated Secrets. Default is false: only domain users will be migrated. Discovery of local users might require further installation of SSH on the servers, based on the supplied computer base DN. This will be implemented automatically as part of the migration process (Relevant only for Active Directory migration) Deprecated: use AdDiscoverTypes + * @member {String} ad_discover_local_users + */ + +GatewayUpdateMigration.prototype['ad_discover_local_users'] = undefined; +/** + * Active Directory Domain Name (Relevant only for Active Directory migration) + * @member {String} ad_domain_name + */ + +GatewayUpdateMigration.prototype['ad_domain_name'] = undefined; +/** + * Path location template for migrating domain users as Rotated Secrets e.g.: .../DomainUsers/{{USERNAME}} (Relevant only for Active Directory migration) + * @member {String} ad_domain_users_path_template + */ + +GatewayUpdateMigration.prototype['ad_domain_users_path_template'] = undefined; +/** + * Comma-separated list of Local Users which should not be migrated (Relevant only for Active Directory migration) + * @member {String} ad_local_users_ignore + */ + +GatewayUpdateMigration.prototype['ad_local_users_ignore'] = undefined; +/** + * Path location template for migrating domain users as Rotated Secrets e.g.: .../LocalUsers/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Active Directory migration) + * @member {String} ad_local_users_path_template + */ + +GatewayUpdateMigration.prototype['ad_local_users_path_template'] = undefined; +/** + * The hour of the scheduled rotation in UTC (Relevant only for Active Directory migration) + * @member {Number} ad_rotation_hour + */ + +GatewayUpdateMigration.prototype['ad_rotation_hour'] = undefined; +/** + * The number of days to wait between every automatic rotation [1-365] (Relevant only for Active Directory migration) + * @member {Number} ad_rotation_interval + */ + +GatewayUpdateMigration.prototype['ad_rotation_interval'] = undefined; +/** + * Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Active Directory migration) + * @member {String} ad_sra_enable_rdp + */ + +GatewayUpdateMigration.prototype['ad_sra_enable_rdp'] = undefined; +/** + * Active Directory LDAP Target Name. Server type should be Active Directory (Relevant only for Active Directory migration) + * @member {String} ad_target_name + */ + +GatewayUpdateMigration.prototype['ad_target_name'] = undefined; +/** + * Path location template for migrating domain servers as SSH/Windows Targets e.g.: .../Servers/{{COMPUTER_NAME}} (Relevant only for Active Directory migration) + * @member {String} ad_targets_path_template + */ + +GatewayUpdateMigration.prototype['ad_targets_path_template'] = undefined; +/** + * Distinguished Name of User objects to search in Active Directory, e.g.: CN=Users,DC=example,DC=com (Relevant only for Active Directory migration) + * @member {String} ad_user_base_dn + */ + +GatewayUpdateMigration.prototype['ad_user_base_dn'] = undefined; +/** + * Comma-separated list of domain groups from which privileged domain users will be migrated. If empty, migrate all users based on the --ad-user-base-dn (Relevant only for Active Directory migration) + * @member {String} ad_user_groups + */ + +GatewayUpdateMigration.prototype['ad_user_groups'] = undefined; +/** + * AWS Secret Access Key (relevant only for AWS migration) + * @member {String} aws-key + */ + +GatewayUpdateMigration.prototype['aws-key'] = undefined; +/** + * AWS Access Key ID with sufficient permissions to get all secrets, e.g. 'arn:aws:secretsmanager:[Region]:[AccountId]:secret:[/path/to/secrets/_*]' (relevant only for AWS migration) + * @member {String} aws-key-id + */ + +GatewayUpdateMigration.prototype['aws-key-id'] = undefined; +/** + * AWS region of the required Secrets Manager (relevant only for AWS migration) + * @member {String} aws-region + * @default 'us-east-2' + */ + +GatewayUpdateMigration.prototype['aws-region'] = 'us-east-2'; +/** + * Azure Key Vault Access client ID, should be Azure AD App with a service principal (relevant only for Azure Key Vault migration) + * @member {String} azure-client-id + */ + +GatewayUpdateMigration.prototype['azure-client-id'] = undefined; +/** + * Azure Key Vault Name (relevant only for Azure Key Vault migration) + * @member {String} azure-kv-name + */ + +GatewayUpdateMigration.prototype['azure-kv-name'] = undefined; +/** + * Azure Key Vault secret (relevant only for Azure Key Vault migration) + * @member {String} azure-secret + */ + +GatewayUpdateMigration.prototype['azure-secret'] = undefined; +/** + * Azure Key Vault Access tenant ID (relevant only for Azure Key Vault migration) + * @member {String} azure-tenant-id + */ + +GatewayUpdateMigration.prototype['azure-tenant-id'] = undefined; +/** + * Base64-encoded GCP Service Account private key text with sufficient permissions to Secrets Manager, Minimum required permission is Secret Manager Secret Accessor, e.g. 'roles/secretmanager.secretAccessor' (relevant only for GCP migration) + * @member {String} gcp-key + */ + +GatewayUpdateMigration.prototype['gcp-key'] = undefined; +/** + * Import secret key as json value or independent secrets (relevant only for HasiCorp Vault migration) [true/false] + * @member {String} hashi-json + * @default 'true' + */ + +GatewayUpdateMigration.prototype['hashi-json'] = 'true'; +/** + * HashiCorp Vault Namespaces is a comma-separated list of namespaces which need to be imported into Akeyless Vault. For every provided namespace, all its child namespaces are imported as well, e.g. nmsp/subnmsp1/subnmsp2,nmsp/anothernmsp. By default, import all namespaces (relevant only for HasiCorp Vault migration) + * @member {Array.} hashi-ns + */ + +GatewayUpdateMigration.prototype['hashi-ns'] = undefined; +/** + * HashiCorp Vault access token with sufficient permissions to preform list & read operations on secrets objects (relevant only for HasiCorp Vault migration) + * @member {String} hashi-token + */ + +GatewayUpdateMigration.prototype['hashi-token'] = undefined; +/** + * HashiCorp Vault API URL, e.g. https://vault-mgr01:8200 (relevant only for HasiCorp Vault migration) + * @member {String} hashi-url + */ + +GatewayUpdateMigration.prototype['hashi-url'] = undefined; +/** + * Migration ID (Can be retrieved with gateway-list-migration command) + * @member {String} id + */ + +GatewayUpdateMigration.prototype['id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateMigration.prototype['json'] = false; +/** + * For Certificate Authentication method K8s Cluster CA certificate (relevant only for K8s migration with Certificate Authentication method) + * @member {Array.} k8s-ca-certificate + */ + +GatewayUpdateMigration.prototype['k8s-ca-certificate'] = undefined; +/** + * K8s Client certificate with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Certificate Authentication method) + * @member {Array.} k8s-client-certificate + */ + +GatewayUpdateMigration.prototype['k8s-client-certificate'] = undefined; +/** + * K8s Client key (relevant only for K8s migration with Certificate Authentication method) + * @member {Array.} k8s-client-key + */ + +GatewayUpdateMigration.prototype['k8s-client-key'] = undefined; +/** + * K8s Namespace, Use this field to import secrets from a particular namespace only. By default, the secrets are imported from all namespaces (relevant only for K8s migration) + * @member {String} k8s-namespace + */ + +GatewayUpdateMigration.prototype['k8s-namespace'] = undefined; +/** + * K8s Client password (relevant only for K8s migration with Password Authentication method) + * @member {String} k8s-password + */ + +GatewayUpdateMigration.prototype['k8s-password'] = undefined; +/** + * K8s Skip Control Plane Secrets, This option allows to avoid importing secrets from system namespaces (relevant only for K8s migration) + * @member {Boolean} k8s-skip-system + */ + +GatewayUpdateMigration.prototype['k8s-skip-system'] = undefined; +/** + * For Token Authentication method K8s Bearer Token with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Token Authentication method) + * @member {String} k8s-token + */ + +GatewayUpdateMigration.prototype['k8s-token'] = undefined; +/** + * K8s API Server URL, e.g. https://k8s-api.mycompany.com:6443 (relevant only for K8s migration) + * @member {String} k8s-url + */ + +GatewayUpdateMigration.prototype['k8s-url'] = undefined; +/** + * For Password Authentication method K8s Client username with sufficient permission to list and get secrets in the namespace(s) you selected (relevant only for K8s migration with Password Authentication method) + * @member {String} k8s-username + */ + +GatewayUpdateMigration.prototype['k8s-username'] = undefined; +/** + * Migration name + * @member {String} name + */ + +GatewayUpdateMigration.prototype['name'] = undefined; +/** + * New migration name + * @member {String} new_name + */ + +GatewayUpdateMigration.prototype['new_name'] = undefined; +/** + * The name of the key that protects the classic key value (if empty, the account default key will be used) + * @member {String} protection-key + */ + +GatewayUpdateMigration.prototype['protection-key'] = undefined; +/** + * Enable/Disable automatic/recurrent rotation for migrated secrets. Default is false: only manual rotation is allowed for migrated secrets. If set to true, this command should be combined with --si-rotation-interval and --si-rotation-hour parameters (Relevant only for Server Inventory migration) + * @member {String} si-auto-rotate + */ + +GatewayUpdateMigration.prototype['si-auto-rotate'] = undefined; +/** + * The hour of the scheduled rotation in UTC (Relevant only for Server Inventory migration) + * @member {Number} si-rotation-hour + */ + +GatewayUpdateMigration.prototype['si-rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic rotation [1-365] (Relevant only for Server Inventory migration) + * @member {Number} si-rotation-interval + */ + +GatewayUpdateMigration.prototype['si-rotation-interval'] = undefined; +/** + * Enable/Disable RDP Secure Remote Access for the migrated local users rotated secrets. Default is false: rotated secrets will not be created with SRA (Relevant only for Server Inventory migration) + * @member {String} si-sra-enable-rdp + * @default 'false' + */ + +GatewayUpdateMigration.prototype['si-sra-enable-rdp'] = 'false'; +/** + * SSH, Windows or Linked Target Name. (Relevant only for Server Inventory migration) + * @member {String} si-target-name + */ + +GatewayUpdateMigration.prototype['si-target-name'] = undefined; +/** + * Comma-separated list of groups to migrate users from. If empty, all users from all groups will be migrated (Relevant only for Server Inventory migration) + * @member {String} si-user-groups + */ + +GatewayUpdateMigration.prototype['si-user-groups'] = undefined; +/** + * Comma-separated list of Local Users which should not be migrated (Relevant only for Server Inventory migration) + * @member {String} si-users-ignore + */ + +GatewayUpdateMigration.prototype['si-users-ignore'] = undefined; +/** + * Path location template for migrating users as Rotated Secrets e.g.: .../Users/{{COMPUTER_NAME}}/{{USERNAME}} (Relevant only for Server Inventory migration) + * @member {String} si-users-path-template + */ + +GatewayUpdateMigration.prototype['si-users-path-template'] = undefined; +/** + * Target location in Akeyless for imported secrets + * @member {String} target-location + */ + +GatewayUpdateMigration.prototype['target-location'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateMigration.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateMigration.prototype['uid-token'] = undefined; +var _default = GatewayUpdateMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 72781: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerArtifactory model module. + * @module model/GatewayUpdateProducerArtifactory + * @version 3.6.3 + */ +var GatewayUpdateProducerArtifactory = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerArtifactory. + * gatewayUpdateProducerArtifactory is a command that updates artifactory producer [Deprecated: Use dynamic-secret-update-artifactory command] + * @alias module:model/GatewayUpdateProducerArtifactory + * @param artifactoryTokenAudience {String} Token Audience + * @param artifactoryTokenScope {String} Token Scope + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerArtifactory(artifactoryTokenAudience, artifactoryTokenScope, name) { + _classCallCheck(this, GatewayUpdateProducerArtifactory); + + GatewayUpdateProducerArtifactory.initialize(this, artifactoryTokenAudience, artifactoryTokenScope, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerArtifactory, null, [{ + key: "initialize", + value: function initialize(obj, artifactoryTokenAudience, artifactoryTokenScope, name) { + obj['artifactory-token-audience'] = artifactoryTokenAudience; + obj['artifactory-token-scope'] = artifactoryTokenScope; + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerArtifactory from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerArtifactory} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerArtifactory} The populated GatewayUpdateProducerArtifactory instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerArtifactory(); + + if (data.hasOwnProperty('artifactory-admin-name')) { + obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); + } + + if (data.hasOwnProperty('artifactory-admin-pwd')) { + obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('artifactory-token-audience')) { + obj['artifactory-token-audience'] = _ApiClient["default"].convertToType(data['artifactory-token-audience'], 'String'); + } + + if (data.hasOwnProperty('artifactory-token-scope')) { + obj['artifactory-token-scope'] = _ApiClient["default"].convertToType(data['artifactory-token-scope'], 'String'); + } + + if (data.hasOwnProperty('base-url')) { + obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerArtifactory; +}(); +/** + * Artifactory Admin Name + * @member {String} artifactory-admin-name + */ + + +GatewayUpdateProducerArtifactory.prototype['artifactory-admin-name'] = undefined; +/** + * Artifactory Admin password + * @member {String} artifactory-admin-pwd + */ + +GatewayUpdateProducerArtifactory.prototype['artifactory-admin-pwd'] = undefined; +/** + * Token Audience + * @member {String} artifactory-token-audience + */ + +GatewayUpdateProducerArtifactory.prototype['artifactory-token-audience'] = undefined; +/** + * Token Scope + * @member {String} artifactory-token-scope + */ + +GatewayUpdateProducerArtifactory.prototype['artifactory-token-scope'] = undefined; +/** + * Base URL + * @member {String} base-url + */ + +GatewayUpdateProducerArtifactory.prototype['base-url'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateProducerArtifactory.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerArtifactory.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerArtifactory.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerArtifactory.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerArtifactory.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerArtifactory.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerArtifactory.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerArtifactory.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerArtifactory.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerArtifactory.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerArtifactory; +exports["default"] = _default; + +/***/ }), + +/***/ 92424: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerArtifactoryOutput model module. + * @module model/GatewayUpdateProducerArtifactoryOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerArtifactoryOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerArtifactoryOutput. + * @alias module:model/GatewayUpdateProducerArtifactoryOutput + */ + function GatewayUpdateProducerArtifactoryOutput() { + _classCallCheck(this, GatewayUpdateProducerArtifactoryOutput); + + GatewayUpdateProducerArtifactoryOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerArtifactoryOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerArtifactoryOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerArtifactoryOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerArtifactoryOutput} The populated GatewayUpdateProducerArtifactoryOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerArtifactoryOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerArtifactoryOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerArtifactoryOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerArtifactoryOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 2334: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerAws model module. + * @module model/GatewayUpdateProducerAws + * @version 3.6.3 + */ +var GatewayUpdateProducerAws = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerAws. + * gatewayUpdateProducerAws is a command that Updates aws producer [Deprecated: Use dynamic-secret-update-aws command] + * @alias module:model/GatewayUpdateProducerAws + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerAws(name) { + _classCallCheck(this, GatewayUpdateProducerAws); + + GatewayUpdateProducerAws.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerAws, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerAws from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerAws} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerAws} The populated GatewayUpdateProducerAws instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerAws(); + + if (data.hasOwnProperty('access-mode')) { + obj['access-mode'] = _ApiClient["default"].convertToType(data['access-mode'], 'String'); + } + + if (data.hasOwnProperty('admin-rotation-interval-days')) { + obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); + } + + if (data.hasOwnProperty('aws-access-key-id')) { + obj['aws-access-key-id'] = _ApiClient["default"].convertToType(data['aws-access-key-id'], 'String'); + } + + if (data.hasOwnProperty('aws-access-secret-key')) { + obj['aws-access-secret-key'] = _ApiClient["default"].convertToType(data['aws-access-secret-key'], 'String'); + } + + if (data.hasOwnProperty('aws-role-arns')) { + obj['aws-role-arns'] = _ApiClient["default"].convertToType(data['aws-role-arns'], 'String'); + } + + if (data.hasOwnProperty('aws-user-console-access')) { + obj['aws-user-console-access'] = _ApiClient["default"].convertToType(data['aws-user-console-access'], 'Boolean'); + } + + if (data.hasOwnProperty('aws-user-groups')) { + obj['aws-user-groups'] = _ApiClient["default"].convertToType(data['aws-user-groups'], 'String'); + } + + if (data.hasOwnProperty('aws-user-policies')) { + obj['aws-user-policies'] = _ApiClient["default"].convertToType(data['aws-user-policies'], 'String'); + } + + if (data.hasOwnProperty('aws-user-programmatic-access')) { + obj['aws-user-programmatic-access'] = _ApiClient["default"].convertToType(data['aws-user-programmatic-access'], 'Boolean'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('enable-admin-rotation')) { + obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } + + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); + } + + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerAws; +}(); +/** + * @member {String} access-mode + */ + + +GatewayUpdateProducerAws.prototype['access-mode'] = undefined; +/** + * Admin credentials rotation interval (days) + * @member {Number} admin-rotation-interval-days + * @default 0 + */ + +GatewayUpdateProducerAws.prototype['admin-rotation-interval-days'] = 0; +/** + * Access Key ID + * @member {String} aws-access-key-id + */ + +GatewayUpdateProducerAws.prototype['aws-access-key-id'] = undefined; +/** + * Secret Access Key + * @member {String} aws-access-secret-key + */ + +GatewayUpdateProducerAws.prototype['aws-access-secret-key'] = undefined; +/** + * AWS Role ARNs to be used in the Assume Role operation (relevant only for assume_role mode) + * @member {String} aws-role-arns + */ + +GatewayUpdateProducerAws.prototype['aws-role-arns'] = undefined; +/** + * AWS User console access + * @member {Boolean} aws-user-console-access + * @default false + */ + +GatewayUpdateProducerAws.prototype['aws-user-console-access'] = false; +/** + * AWS User groups + * @member {String} aws-user-groups + */ + +GatewayUpdateProducerAws.prototype['aws-user-groups'] = undefined; +/** + * AWS User policies + * @member {String} aws-user-policies + */ + +GatewayUpdateProducerAws.prototype['aws-user-policies'] = undefined; +/** + * Enable AWS User programmatic access + * @member {Boolean} aws-user-programmatic-access + * @default true + */ + +GatewayUpdateProducerAws.prototype['aws-user-programmatic-access'] = true; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateProducerAws.prototype['delete_protection'] = undefined; +/** + * Automatic admin credentials rotation + * @member {Boolean} enable-admin-rotation + * @default false + */ + +GatewayUpdateProducerAws.prototype['enable-admin-rotation'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerAws.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerAws.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerAws.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerAws.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerAws.prototype['producer-encryption-key-name'] = undefined; +/** + * Region + * @member {String} region + * @default 'us-east-2' + */ + +GatewayUpdateProducerAws.prototype['region'] = 'us-east-2'; +/** + * The AWS account id + * @member {String} secure-access-aws-account-id + */ + +GatewayUpdateProducerAws.prototype['secure-access-aws-account-id'] = undefined; +/** + * The AWS native cli + * @member {Boolean} secure-access-aws-native-cli + */ + +GatewayUpdateProducerAws.prototype['secure-access-aws-native-cli'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayUpdateProducerAws.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerAws.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ + +GatewayUpdateProducerAws.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +GatewayUpdateProducerAws.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +GatewayUpdateProducerAws.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerAws.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerAws.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerAws.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerAws.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerAws.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerAws; +exports["default"] = _default; + +/***/ }), + +/***/ 55019: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerAwsOutput model module. + * @module model/GatewayUpdateProducerAwsOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerAwsOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerAwsOutput. + * @alias module:model/GatewayUpdateProducerAwsOutput + */ + function GatewayUpdateProducerAwsOutput() { + _classCallCheck(this, GatewayUpdateProducerAwsOutput); + + GatewayUpdateProducerAwsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerAwsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerAwsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerAwsOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerAwsOutput} The populated GatewayUpdateProducerAwsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerAwsOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerAwsOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerAwsOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerAwsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 97644: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerAzure model module. + * @module model/GatewayUpdateProducerAzure + * @version 3.6.3 + */ +var GatewayUpdateProducerAzure = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerAzure. + * gatewayUpdateProducerAzure is a command that updates azure producer [Deprecated: Use dynamic-secret-update-azure command] + * @alias module:model/GatewayUpdateProducerAzure + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerAzure(name) { + _classCallCheck(this, GatewayUpdateProducerAzure); + + GatewayUpdateProducerAzure.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerAzure, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerAzure from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerAzure} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerAzure} The populated GatewayUpdateProducerAzure instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerAzure(); + + if (data.hasOwnProperty('app-obj-id')) { + obj['app-obj-id'] = _ApiClient["default"].convertToType(data['app-obj-id'], 'String'); + } + + if (data.hasOwnProperty('azure-client-id')) { + obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); + } + + if (data.hasOwnProperty('azure-client-secret')) { + obj['azure-client-secret'] = _ApiClient["default"].convertToType(data['azure-client-secret'], 'String'); + } + + if (data.hasOwnProperty('azure-tenant-id')) { + obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('fixed-user-claim-keyname')) { + obj['fixed-user-claim-keyname'] = _ApiClient["default"].convertToType(data['fixed-user-claim-keyname'], 'String'); + } + + if (data.hasOwnProperty('fixed-user-only')) { + obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-group-obj-id')) { + obj['user-group-obj-id'] = _ApiClient["default"].convertToType(data['user-group-obj-id'], 'String'); + } + + if (data.hasOwnProperty('user-portal-access')) { + obj['user-portal-access'] = _ApiClient["default"].convertToType(data['user-portal-access'], 'Boolean'); + } + + if (data.hasOwnProperty('user-principal-name')) { + obj['user-principal-name'] = _ApiClient["default"].convertToType(data['user-principal-name'], 'String'); + } + + if (data.hasOwnProperty('user-programmatic-access')) { + obj['user-programmatic-access'] = _ApiClient["default"].convertToType(data['user-programmatic-access'], 'Boolean'); + } + + if (data.hasOwnProperty('user-role-template-id')) { + obj['user-role-template-id'] = _ApiClient["default"].convertToType(data['user-role-template-id'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerAzure; +}(); +/** + * Azure App Object Id + * @member {String} app-obj-id + */ + + +GatewayUpdateProducerAzure.prototype['app-obj-id'] = undefined; +/** + * Azure Client ID + * @member {String} azure-client-id + */ + +GatewayUpdateProducerAzure.prototype['azure-client-id'] = undefined; +/** + * Azure Client Secret + * @member {String} azure-client-secret + */ + +GatewayUpdateProducerAzure.prototype['azure-client-secret'] = undefined; +/** + * Azure Tenant ID + * @member {String} azure-tenant-id + */ + +GatewayUpdateProducerAzure.prototype['azure-tenant-id'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateProducerAzure.prototype['delete_protection'] = undefined; +/** + * FixedUserClaimKeyname + * @member {String} fixed-user-claim-keyname + * @default 'false' + */ + +GatewayUpdateProducerAzure.prototype['fixed-user-claim-keyname'] = 'false'; +/** + * Fixed user + * @member {Boolean} fixed-user-only + * @default false + */ + +GatewayUpdateProducerAzure.prototype['fixed-user-only'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerAzure.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerAzure.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerAzure.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerAzure.prototype['password-length'] = undefined; +/** + * Dynamic secret encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerAzure.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerAzure.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ + +GatewayUpdateProducerAzure.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +GatewayUpdateProducerAzure.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +GatewayUpdateProducerAzure.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerAzure.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerAzure.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerAzure.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerAzure.prototype['uid-token'] = undefined; +/** + * User Group Object Id + * @member {String} user-group-obj-id + */ + +GatewayUpdateProducerAzure.prototype['user-group-obj-id'] = undefined; +/** + * Azure User portal access + * @member {Boolean} user-portal-access + * @default false + */ + +GatewayUpdateProducerAzure.prototype['user-portal-access'] = false; +/** + * User Principal Name + * @member {String} user-principal-name + */ + +GatewayUpdateProducerAzure.prototype['user-principal-name'] = undefined; +/** + * Azure User programmatic access + * @member {Boolean} user-programmatic-access + * @default false + */ + +GatewayUpdateProducerAzure.prototype['user-programmatic-access'] = false; +/** + * User Role Template Id + * @member {String} user-role-template-id + */ + +GatewayUpdateProducerAzure.prototype['user-role-template-id'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerAzure.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerAzure; +exports["default"] = _default; + +/***/ }), + +/***/ 97773: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerAzureOutput model module. + * @module model/GatewayUpdateProducerAzureOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerAzureOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerAzureOutput. + * @alias module:model/GatewayUpdateProducerAzureOutput + */ + function GatewayUpdateProducerAzureOutput() { + _classCallCheck(this, GatewayUpdateProducerAzureOutput); + + GatewayUpdateProducerAzureOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerAzureOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerAzureOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerAzureOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerAzureOutput} The populated GatewayUpdateProducerAzureOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerAzureOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerAzureOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerAzureOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerAzureOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 82093: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerCassandra model module. + * @module model/GatewayUpdateProducerCassandra + * @version 3.6.3 + */ +var GatewayUpdateProducerCassandra = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerCassandra. + * gatewayUpdateProducerCassandra is a command that updates a Cassandra producer [Deprecated: Use dynamic-secret-update-cassandra command] + * @alias module:model/GatewayUpdateProducerCassandra + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerCassandra(name) { + _classCallCheck(this, GatewayUpdateProducerCassandra); + + GatewayUpdateProducerCassandra.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerCassandra, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerCassandra from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerCassandra} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerCassandra} The populated GatewayUpdateProducerCassandra instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerCassandra(); + + if (data.hasOwnProperty('cassandra-creation-statements')) { + obj['cassandra-creation-statements'] = _ApiClient["default"].convertToType(data['cassandra-creation-statements'], 'String'); + } + + if (data.hasOwnProperty('cassandra-hosts')) { + obj['cassandra-hosts'] = _ApiClient["default"].convertToType(data['cassandra-hosts'], 'String'); + } + + if (data.hasOwnProperty('cassandra-password')) { + obj['cassandra-password'] = _ApiClient["default"].convertToType(data['cassandra-password'], 'String'); + } + + if (data.hasOwnProperty('cassandra-port')) { + obj['cassandra-port'] = _ApiClient["default"].convertToType(data['cassandra-port'], 'String'); + } + + if (data.hasOwnProperty('cassandra-username')) { + obj['cassandra-username'] = _ApiClient["default"].convertToType(data['cassandra-username'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerCassandra; +}(); +/** + * Cassandra creation statements + * @member {String} cassandra-creation-statements + */ + + +GatewayUpdateProducerCassandra.prototype['cassandra-creation-statements'] = undefined; +/** + * Cassandra hosts IP or addresses, comma separated + * @member {String} cassandra-hosts + */ + +GatewayUpdateProducerCassandra.prototype['cassandra-hosts'] = undefined; +/** + * Cassandra superuser password + * @member {String} cassandra-password + */ + +GatewayUpdateProducerCassandra.prototype['cassandra-password'] = undefined; +/** + * Cassandra port + * @member {String} cassandra-port + * @default '9042' + */ + +GatewayUpdateProducerCassandra.prototype['cassandra-port'] = '9042'; +/** + * Cassandra superuser username + * @member {String} cassandra-username + */ + +GatewayUpdateProducerCassandra.prototype['cassandra-username'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateProducerCassandra.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerCassandra.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerCassandra.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerCassandra.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerCassandra.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerCassandra.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +GatewayUpdateProducerCassandra.prototype['ssl'] = false; +/** + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} ssl-certificate + */ + +GatewayUpdateProducerCassandra.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerCassandra.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerCassandra.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerCassandra.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerCassandra.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerCassandra.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerCassandra; +exports["default"] = _default; + +/***/ }), + +/***/ 4328: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerCassandraOutput model module. + * @module model/GatewayUpdateProducerCassandraOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerCassandraOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerCassandraOutput. + * @alias module:model/GatewayUpdateProducerCassandraOutput + */ + function GatewayUpdateProducerCassandraOutput() { + _classCallCheck(this, GatewayUpdateProducerCassandraOutput); + + GatewayUpdateProducerCassandraOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerCassandraOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerCassandraOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerCassandraOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerCassandraOutput} The populated GatewayUpdateProducerCassandraOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerCassandraOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerCassandraOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerCassandraOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerCassandraOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 98899: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerChef model module. + * @module model/GatewayUpdateProducerChef + * @version 3.6.3 + */ +var GatewayUpdateProducerChef = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerChef. + * gatewayUpdateProducerChef is a command that updates chef producer [Deprecated: Use dynamic-secret-update-chef command] + * @alias module:model/GatewayUpdateProducerChef + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerChef(name) { + _classCallCheck(this, GatewayUpdateProducerChef); + + GatewayUpdateProducerChef.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerChef, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerChef from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerChef} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerChef} The populated GatewayUpdateProducerChef instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerChef(); + + if (data.hasOwnProperty('chef-orgs')) { + obj['chef-orgs'] = _ApiClient["default"].convertToType(data['chef-orgs'], 'String'); + } + + if (data.hasOwnProperty('chef-server-key')) { + obj['chef-server-key'] = _ApiClient["default"].convertToType(data['chef-server-key'], 'String'); + } + + if (data.hasOwnProperty('chef-server-url')) { + obj['chef-server-url'] = _ApiClient["default"].convertToType(data['chef-server-url'], 'String'); + } + + if (data.hasOwnProperty('chef-server-username')) { + obj['chef-server-username'] = _ApiClient["default"].convertToType(data['chef-server-username'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('skip-ssl')) { + obj['skip-ssl'] = _ApiClient["default"].convertToType(data['skip-ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerChef; +}(); +/** + * Organizations + * @member {String} chef-orgs + */ + + +GatewayUpdateProducerChef.prototype['chef-orgs'] = undefined; +/** + * Server key + * @member {String} chef-server-key + */ + +GatewayUpdateProducerChef.prototype['chef-server-key'] = undefined; +/** + * Server URL + * @member {String} chef-server-url + */ + +GatewayUpdateProducerChef.prototype['chef-server-url'] = undefined; +/** + * Server username + * @member {String} chef-server-username + */ + +GatewayUpdateProducerChef.prototype['chef-server-username'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateProducerChef.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerChef.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerChef.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerChef.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerChef.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerChef.prototype['producer-encryption-key-name'] = undefined; +/** + * Skip SSL + * @member {Boolean} skip-ssl + * @default true + */ + +GatewayUpdateProducerChef.prototype['skip-ssl'] = true; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerChef.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerChef.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerChef.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerChef.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerChef.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerChef; +exports["default"] = _default; + +/***/ }), + +/***/ 85442: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerChefOutput model module. + * @module model/GatewayUpdateProducerChefOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerChefOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerChefOutput. + * @alias module:model/GatewayUpdateProducerChefOutput + */ + function GatewayUpdateProducerChefOutput() { + _classCallCheck(this, GatewayUpdateProducerChefOutput); + + GatewayUpdateProducerChefOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerChefOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerChefOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerChefOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerChefOutput} The populated GatewayUpdateProducerChefOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerChefOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerChefOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerChefOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerChefOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 40320: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerCustom model module. + * @module model/GatewayUpdateProducerCustom + * @version 3.6.3 + */ +var GatewayUpdateProducerCustom = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerCustom. + * gatewayUpdateProducerCustom is a command that updates a custom producer. [Deprecated: Use dynamic-secret-update-custom command] + * @alias module:model/GatewayUpdateProducerCustom + * @param createSyncUrl {String} URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create + * @param name {String} Dynamic secret name + * @param revokeSyncUrl {String} URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke + */ + function GatewayUpdateProducerCustom(createSyncUrl, name, revokeSyncUrl) { + _classCallCheck(this, GatewayUpdateProducerCustom); + + GatewayUpdateProducerCustom.initialize(this, createSyncUrl, name, revokeSyncUrl); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerCustom, null, [{ + key: "initialize", + value: function initialize(obj, createSyncUrl, name, revokeSyncUrl) { + obj['create-sync-url'] = createSyncUrl; + obj['name'] = name; + obj['revoke-sync-url'] = revokeSyncUrl; + } + /** + * Constructs a GatewayUpdateProducerCustom from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerCustom} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerCustom} The populated GatewayUpdateProducerCustom instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerCustom(); + + if (data.hasOwnProperty('admin_rotation_interval_days')) { + obj['admin_rotation_interval_days'] = _ApiClient["default"].convertToType(data['admin_rotation_interval_days'], 'Number'); + } + + if (data.hasOwnProperty('create-sync-url')) { + obj['create-sync-url'] = _ApiClient["default"].convertToType(data['create-sync-url'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('enable_admin_rotation')) { + obj['enable_admin_rotation'] = _ApiClient["default"].convertToType(data['enable_admin_rotation'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('revoke-sync-url')) { + obj['revoke-sync-url'] = _ApiClient["default"].convertToType(data['revoke-sync-url'], 'String'); + } + + if (data.hasOwnProperty('rotate-sync-url')) { + obj['rotate-sync-url'] = _ApiClient["default"].convertToType(data['rotate-sync-url'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('timeout-sec')) { + obj['timeout-sec'] = _ApiClient["default"].convertToType(data['timeout-sec'], 'Number'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerCustom; +}(); +/** + * Define rotation interval in days + * @member {Number} admin_rotation_interval_days + */ + + +GatewayUpdateProducerCustom.prototype['admin_rotation_interval_days'] = undefined; +/** + * URL of an endpoint that implements /sync/create method, for example https://webhook.example.com/sync/create + * @member {String} create-sync-url + */ + +GatewayUpdateProducerCustom.prototype['create-sync-url'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateProducerCustom.prototype['delete_protection'] = undefined; +/** + * Should admin credentials be rotated + * @member {Boolean} enable_admin_rotation + * @default false + */ + +GatewayUpdateProducerCustom.prototype['enable_admin_rotation'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerCustom.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerCustom.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerCustom.prototype['new-name'] = undefined; +/** + * Secret payload to be sent with each create/revoke webhook request + * @member {String} payload + */ + +GatewayUpdateProducerCustom.prototype['payload'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerCustom.prototype['producer-encryption-key-name'] = undefined; +/** + * URL of an endpoint that implements /sync/revoke method, for example https://webhook.example.com/sync/revoke + * @member {String} revoke-sync-url + */ + +GatewayUpdateProducerCustom.prototype['revoke-sync-url'] = undefined; +/** + * URL of an endpoint that implements /sync/rotate method, for example https://webhook.example.com/sync/rotate + * @member {String} rotate-sync-url + */ + +GatewayUpdateProducerCustom.prototype['rotate-sync-url'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerCustom.prototype['tags'] = undefined; +/** + * Maximum allowed time in seconds for the webhook to return the results + * @member {Number} timeout-sec + * @default 60 + */ + +GatewayUpdateProducerCustom.prototype['timeout-sec'] = 60; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerCustom.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerCustom.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerCustom.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerCustom; +exports["default"] = _default; + +/***/ }), + +/***/ 28777: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerCustomOutput model module. + * @module model/GatewayUpdateProducerCustomOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerCustomOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerCustomOutput. + * @alias module:model/GatewayUpdateProducerCustomOutput + */ + function GatewayUpdateProducerCustomOutput() { + _classCallCheck(this, GatewayUpdateProducerCustomOutput); + + GatewayUpdateProducerCustomOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerCustomOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerCustomOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerCustomOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerCustomOutput} The populated GatewayUpdateProducerCustomOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerCustomOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerCustomOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerCustomOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerCustomOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 63280: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerDockerhub model module. + * @module model/GatewayUpdateProducerDockerhub + * @version 3.6.3 + */ +var GatewayUpdateProducerDockerhub = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerDockerhub. + * gatewayUpdateProducerDockerhub is a command that updates a DOCKERHUB producer [Deprecated: Use dynamic-secret-update-dockerhub command] + * @alias module:model/GatewayUpdateProducerDockerhub + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerDockerhub(name) { + _classCallCheck(this, GatewayUpdateProducerDockerhub); + + GatewayUpdateProducerDockerhub.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerDockerhub, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerDockerhub from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerDockerhub} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerDockerhub} The populated GatewayUpdateProducerDockerhub instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerDockerhub(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('dockerhub-password')) { + obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); + } + + if (data.hasOwnProperty('dockerhub-token-scopes')) { + obj['dockerhub-token-scopes'] = _ApiClient["default"].convertToType(data['dockerhub-token-scopes'], 'String'); + } + + if (data.hasOwnProperty('dockerhub-username')) { + obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerDockerhub; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayUpdateProducerDockerhub.prototype['delete_protection'] = undefined; +/** + * DockerhubPassword is either the user's password access token to manage the repository + * @member {String} dockerhub-password + */ + +GatewayUpdateProducerDockerhub.prototype['dockerhub-password'] = undefined; +/** + * Access token scopes list (comma-separated) to give the dynamic secret valid options are in \"repo:admin\", \"repo:write\", \"repo:read\", \"repo:public_read\" + * @member {String} dockerhub-token-scopes + */ + +GatewayUpdateProducerDockerhub.prototype['dockerhub-token-scopes'] = undefined; +/** + * DockerhubUsername is the name of the user in dockerhub + * @member {String} dockerhub-username + */ + +GatewayUpdateProducerDockerhub.prototype['dockerhub-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerDockerhub.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerDockerhub.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerDockerhub.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerDockerhub.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerDockerhub.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerDockerhub.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerDockerhub.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerDockerhub.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerDockerhub.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerDockerhub; +exports["default"] = _default; + +/***/ }), + +/***/ 14201: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerDockerhubOutput model module. + * @module model/GatewayUpdateProducerDockerhubOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerDockerhubOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerDockerhubOutput. + * @alias module:model/GatewayUpdateProducerDockerhubOutput + */ + function GatewayUpdateProducerDockerhubOutput() { + _classCallCheck(this, GatewayUpdateProducerDockerhubOutput); + + GatewayUpdateProducerDockerhubOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerDockerhubOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerDockerhubOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerDockerhubOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerDockerhubOutput} The populated GatewayUpdateProducerDockerhubOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerDockerhubOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerDockerhubOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerDockerhubOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerDockerhubOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 32382: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerEks model module. + * @module model/GatewayUpdateProducerEks + * @version 3.6.3 + */ +var GatewayUpdateProducerEks = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerEks. + * gatewayUpdateProducerEks is a command that updates eks producer [Deprecated: Use dynamic-secret-update-eks command] + * @alias module:model/GatewayUpdateProducerEks + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerEks(name) { + _classCallCheck(this, GatewayUpdateProducerEks); + + GatewayUpdateProducerEks.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerEks, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerEks from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerEks} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerEks} The populated GatewayUpdateProducerEks instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerEks(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('eks-access-key-id')) { + obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); + } + + if (data.hasOwnProperty('eks-assume-role')) { + obj['eks-assume-role'] = _ApiClient["default"].convertToType(data['eks-assume-role'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-ca-cert')) { + obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-endpoint')) { + obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('eks-cluster-name')) { + obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); + } + + if (data.hasOwnProperty('eks-region')) { + obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); + } + + if (data.hasOwnProperty('eks-secret-access-key')) { + obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerEks; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayUpdateProducerEks.prototype['delete_protection'] = undefined; +/** + * Access Key ID + * @member {String} eks-access-key-id + */ + +GatewayUpdateProducerEks.prototype['eks-access-key-id'] = undefined; +/** + * IAM assume role + * @member {String} eks-assume-role + */ + +GatewayUpdateProducerEks.prototype['eks-assume-role'] = undefined; +/** + * EKS cluster CA certificate + * @member {String} eks-cluster-ca-cert + */ + +GatewayUpdateProducerEks.prototype['eks-cluster-ca-cert'] = undefined; +/** + * EKS cluster URL endpoint + * @member {String} eks-cluster-endpoint + */ + +GatewayUpdateProducerEks.prototype['eks-cluster-endpoint'] = undefined; +/** + * EKS cluster name + * @member {String} eks-cluster-name + */ + +GatewayUpdateProducerEks.prototype['eks-cluster-name'] = undefined; +/** + * Region + * @member {String} eks-region + * @default 'us-east-2' + */ + +GatewayUpdateProducerEks.prototype['eks-region'] = 'us-east-2'; +/** + * Secret Access Key + * @member {String} eks-secret-access-key + */ + +GatewayUpdateProducerEks.prototype['eks-secret-access-key'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerEks.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerEks.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerEks.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerEks.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ + +GatewayUpdateProducerEks.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayUpdateProducerEks.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ + +GatewayUpdateProducerEks.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerEks.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayUpdateProducerEks.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerEks.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerEks.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerEks.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerEks.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '15m' + */ + +GatewayUpdateProducerEks.prototype['user-ttl'] = '15m'; +var _default = GatewayUpdateProducerEks; +exports["default"] = _default; + +/***/ }), + +/***/ 11115: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerEksOutput model module. + * @module model/GatewayUpdateProducerEksOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerEksOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerEksOutput. + * @alias module:model/GatewayUpdateProducerEksOutput + */ + function GatewayUpdateProducerEksOutput() { + _classCallCheck(this, GatewayUpdateProducerEksOutput); + + GatewayUpdateProducerEksOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerEksOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerEksOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerEksOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerEksOutput} The populated GatewayUpdateProducerEksOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerEksOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerEksOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerEksOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerEksOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 20241: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerGcp model module. + * @module model/GatewayUpdateProducerGcp + * @version 3.6.3 + */ +var GatewayUpdateProducerGcp = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerGcp. + * gatewayUpdateProducerGcp is a command that updates a GCP producer [Deprecated: Use dynamic-secret-update-gcp command] + * @alias module:model/GatewayUpdateProducerGcp + * @param name {String} Dynamic secret name + * @param serviceAccountType {String} The type of the gcp dynamic secret. Options[fixed, dynamic] + */ + function GatewayUpdateProducerGcp(name, serviceAccountType) { + _classCallCheck(this, GatewayUpdateProducerGcp); + + GatewayUpdateProducerGcp.initialize(this, name, serviceAccountType); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerGcp, null, [{ + key: "initialize", + value: function initialize(obj, name, serviceAccountType) { + obj['name'] = name; + obj['service-account-type'] = serviceAccountType; + } + /** + * Constructs a GatewayUpdateProducerGcp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerGcp} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerGcp} The populated GatewayUpdateProducerGcp instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerGcp(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('gcp-cred-type')) { + obj['gcp-cred-type'] = _ApiClient["default"].convertToType(data['gcp-cred-type'], 'String'); + } + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } + + if (data.hasOwnProperty('gcp-key-algo')) { + obj['gcp-key-algo'] = _ApiClient["default"].convertToType(data['gcp-key-algo'], 'String'); + } + + if (data.hasOwnProperty('gcp-sa-email')) { + obj['gcp-sa-email'] = _ApiClient["default"].convertToType(data['gcp-sa-email'], 'String'); + } + + if (data.hasOwnProperty('gcp-token-scopes')) { + obj['gcp-token-scopes'] = _ApiClient["default"].convertToType(data['gcp-token-scopes'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('role-binding')) { + obj['role-binding'] = _ApiClient["default"].convertToType(data['role-binding'], 'String'); + } + + if (data.hasOwnProperty('service-account-type')) { + obj['service-account-type'] = _ApiClient["default"].convertToType(data['service-account-type'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerGcp; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayUpdateProducerGcp.prototype['delete_protection'] = undefined; +/** + * @member {String} gcp-cred-type + */ + +GatewayUpdateProducerGcp.prototype['gcp-cred-type'] = undefined; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ + +GatewayUpdateProducerGcp.prototype['gcp-key'] = undefined; +/** + * Service account key algorithm, e.g. KEY_ALG_RSA_1024 + * @member {String} gcp-key-algo + */ + +GatewayUpdateProducerGcp.prototype['gcp-key-algo'] = undefined; +/** + * The email of the fixed service acocunt to generate keys or tokens for. (revelant for service-account-type=fixed) + * @member {String} gcp-sa-email + */ + +GatewayUpdateProducerGcp.prototype['gcp-sa-email'] = undefined; +/** + * Access token scopes list, e.g. scope1,scope2 + * @member {String} gcp-token-scopes + */ + +GatewayUpdateProducerGcp.prototype['gcp-token-scopes'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerGcp.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerGcp.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerGcp.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerGcp.prototype['producer-encryption-key-name'] = undefined; +/** + * Role binding definitions in json format + * @member {String} role-binding + */ + +GatewayUpdateProducerGcp.prototype['role-binding'] = undefined; +/** + * The type of the gcp dynamic secret. Options[fixed, dynamic] + * @member {String} service-account-type + * @default 'fixed' + */ + +GatewayUpdateProducerGcp.prototype['service-account-type'] = 'fixed'; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerGcp.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerGcp.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerGcp.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerGcp.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerGcp.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerGcp; +exports["default"] = _default; + +/***/ }), + +/***/ 75972: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerGcpOutput model module. + * @module model/GatewayUpdateProducerGcpOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerGcpOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerGcpOutput. + * @alias module:model/GatewayUpdateProducerGcpOutput + */ + function GatewayUpdateProducerGcpOutput() { + _classCallCheck(this, GatewayUpdateProducerGcpOutput); + + GatewayUpdateProducerGcpOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerGcpOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerGcpOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerGcpOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerGcpOutput} The populated GatewayUpdateProducerGcpOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerGcpOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerGcpOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerGcpOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerGcpOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 92212: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerGithub model module. + * @module model/GatewayUpdateProducerGithub + * @version 3.6.3 + */ +var GatewayUpdateProducerGithub = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerGithub. + * gatewayUpdateProducerGithub is a command that updates github producer [Deprecated: Use dynamic-secret-update-github command] + * @alias module:model/GatewayUpdateProducerGithub + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerGithub(name) { + _classCallCheck(this, GatewayUpdateProducerGithub); + + GatewayUpdateProducerGithub.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerGithub, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerGithub from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerGithub} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerGithub} The populated GatewayUpdateProducerGithub instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerGithub(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('github-app-id')) { + obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); + } + + if (data.hasOwnProperty('github-app-private-key')) { + obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); + } + + if (data.hasOwnProperty('github-base-url')) { + obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); + } + + if (data.hasOwnProperty('installation-id')) { + obj['installation-id'] = _ApiClient["default"].convertToType(data['installation-id'], 'Number'); + } + + if (data.hasOwnProperty('installation-organization')) { + obj['installation-organization'] = _ApiClient["default"].convertToType(data['installation-organization'], 'String'); + } + + if (data.hasOwnProperty('installation-repository')) { + obj['installation-repository'] = _ApiClient["default"].convertToType(data['installation-repository'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('token-permissions')) { + obj['token-permissions'] = _ApiClient["default"].convertToType(data['token-permissions'], ['String']); + } + + if (data.hasOwnProperty('token-repositories')) { + obj['token-repositories'] = _ApiClient["default"].convertToType(data['token-repositories'], ['String']); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerGithub; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayUpdateProducerGithub.prototype['delete_protection'] = undefined; +/** + * Github app id + * @member {Number} github-app-id + */ + +GatewayUpdateProducerGithub.prototype['github-app-id'] = undefined; +/** + * App private key + * @member {String} github-app-private-key + */ + +GatewayUpdateProducerGithub.prototype['github-app-private-key'] = undefined; +/** + * Base URL + * @member {String} github-base-url + * @default 'https://api.github.com/' + */ + +GatewayUpdateProducerGithub.prototype['github-base-url'] = 'https://api.github.com/'; +/** + * GitHub application installation id + * @member {Number} installation-id + */ + +GatewayUpdateProducerGithub.prototype['installation-id'] = undefined; +/** + * Optional, mutually exclusive with installation id, GitHub organization name + * @member {String} installation-organization + */ + +GatewayUpdateProducerGithub.prototype['installation-organization'] = undefined; +/** + * Optional, mutually exclusive with installation id, GitHub repository '/' + * @member {String} installation-repository + */ + +GatewayUpdateProducerGithub.prototype['installation-repository'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerGithub.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerGithub.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerGithub.prototype['new-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerGithub.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerGithub.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerGithub.prototype['token'] = undefined; +/** + * Optional - installation token's allowed permissions + * @member {Array.} token-permissions + */ + +GatewayUpdateProducerGithub.prototype['token-permissions'] = undefined; +/** + * Optional - installation token's allowed repositories + * @member {Array.} token-repositories + */ + +GatewayUpdateProducerGithub.prototype['token-repositories'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerGithub.prototype['uid-token'] = undefined; +var _default = GatewayUpdateProducerGithub; +exports["default"] = _default; + +/***/ }), + +/***/ 86213: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerGithubOutput model module. + * @module model/GatewayUpdateProducerGithubOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerGithubOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerGithubOutput. + * @alias module:model/GatewayUpdateProducerGithubOutput + */ + function GatewayUpdateProducerGithubOutput() { + _classCallCheck(this, GatewayUpdateProducerGithubOutput); + + GatewayUpdateProducerGithubOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerGithubOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerGithubOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerGithubOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerGithubOutput} The populated GatewayUpdateProducerGithubOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerGithubOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerGithubOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerGithubOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerGithubOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 25062: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerGke model module. + * @module model/GatewayUpdateProducerGke + * @version 3.6.3 + */ +var GatewayUpdateProducerGke = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerGke. + * gatewayUpdateProducerGke is a command that updates gke producer [Deprecated: Use dynamic-secret-update-gke command] + * @alias module:model/GatewayUpdateProducerGke + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerGke(name) { + _classCallCheck(this, GatewayUpdateProducerGke); + + GatewayUpdateProducerGke.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerGke, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerGke from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerGke} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerGke} The populated GatewayUpdateProducerGke instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerGke(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('gke-account-key')) { + obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-cert')) { + obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-endpoint')) { + obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('gke-cluster-name')) { + obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); + } + + if (data.hasOwnProperty('gke-service-account-email')) { + obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerGke; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayUpdateProducerGke.prototype['delete_protection'] = undefined; +/** + * GKE Service Account key file path + * @member {String} gke-account-key + */ + +GatewayUpdateProducerGke.prototype['gke-account-key'] = undefined; +/** + * GKE cluster CA certificate + * @member {String} gke-cluster-cert + */ + +GatewayUpdateProducerGke.prototype['gke-cluster-cert'] = undefined; +/** + * GKE cluster URL endpoint + * @member {String} gke-cluster-endpoint + */ + +GatewayUpdateProducerGke.prototype['gke-cluster-endpoint'] = undefined; +/** + * GKE cluster name + * @member {String} gke-cluster-name + */ + +GatewayUpdateProducerGke.prototype['gke-cluster-name'] = undefined; +/** + * GKE service account email + * @member {String} gke-service-account-email + */ + +GatewayUpdateProducerGke.prototype['gke-service-account-email'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerGke.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerGke.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerGke.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerGke.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ + +GatewayUpdateProducerGke.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayUpdateProducerGke.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ + +GatewayUpdateProducerGke.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerGke.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayUpdateProducerGke.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerGke.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerGke.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerGke.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerGke.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerGke.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerGke; +exports["default"] = _default; + +/***/ }), + +/***/ 46467: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerGkeOutput model module. + * @module model/GatewayUpdateProducerGkeOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerGkeOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerGkeOutput. + * @alias module:model/GatewayUpdateProducerGkeOutput + */ + function GatewayUpdateProducerGkeOutput() { + _classCallCheck(this, GatewayUpdateProducerGkeOutput); + + GatewayUpdateProducerGkeOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerGkeOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerGkeOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerGkeOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerGkeOutput} The populated GatewayUpdateProducerGkeOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerGkeOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerGkeOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerGkeOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerGkeOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 88599: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerHanaDb model module. + * @module model/GatewayUpdateProducerHanaDb + * @version 3.6.3 + */ +var GatewayUpdateProducerHanaDb = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerHanaDb. + * gatewayUpdateProducerHanaDb is a command that updates hanadb producer [Deprecated: Use dynamic-secret-update-hanadb command] + * @alias module:model/GatewayUpdateProducerHanaDb + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerHanaDb(name) { + _classCallCheck(this, GatewayUpdateProducerHanaDb); + + GatewayUpdateProducerHanaDb.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerHanaDb, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerHanaDb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerHanaDb} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerHanaDb} The populated GatewayUpdateProducerHanaDb instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerHanaDb(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('hana-dbname')) { + obj['hana-dbname'] = _ApiClient["default"].convertToType(data['hana-dbname'], 'String'); + } + + if (data.hasOwnProperty('hanadb-create-statements')) { + obj['hanadb-create-statements'] = _ApiClient["default"].convertToType(data['hanadb-create-statements'], 'String'); + } + + if (data.hasOwnProperty('hanadb-host')) { + obj['hanadb-host'] = _ApiClient["default"].convertToType(data['hanadb-host'], 'String'); + } + + if (data.hasOwnProperty('hanadb-password')) { + obj['hanadb-password'] = _ApiClient["default"].convertToType(data['hanadb-password'], 'String'); + } + + if (data.hasOwnProperty('hanadb-port')) { + obj['hanadb-port'] = _ApiClient["default"].convertToType(data['hanadb-port'], 'String'); + } + + if (data.hasOwnProperty('hanadb-revocation-statements')) { + obj['hanadb-revocation-statements'] = _ApiClient["default"].convertToType(data['hanadb-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('hanadb-username')) { + obj['hanadb-username'] = _ApiClient["default"].convertToType(data['hanadb-username'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerHanaDb; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayUpdateProducerHanaDb.prototype['delete_protection'] = undefined; +/** + * HanaDb Name + * @member {String} hana-dbname + */ + +GatewayUpdateProducerHanaDb.prototype['hana-dbname'] = undefined; +/** + * HanaDb Creation statements + * @member {String} hanadb-create-statements + */ + +GatewayUpdateProducerHanaDb.prototype['hanadb-create-statements'] = undefined; +/** + * HanaDb Host + * @member {String} hanadb-host + * @default '127.0.0.1' + */ + +GatewayUpdateProducerHanaDb.prototype['hanadb-host'] = '127.0.0.1'; +/** + * HanaDb Password + * @member {String} hanadb-password + */ + +GatewayUpdateProducerHanaDb.prototype['hanadb-password'] = undefined; +/** + * HanaDb Port + * @member {String} hanadb-port + * @default '443' + */ + +GatewayUpdateProducerHanaDb.prototype['hanadb-port'] = '443'; +/** + * HanaDb Revocation statements + * @member {String} hanadb-revocation-statements + */ + +GatewayUpdateProducerHanaDb.prototype['hanadb-revocation-statements'] = undefined; +/** + * HanaDb Username + * @member {String} hanadb-username + */ + +GatewayUpdateProducerHanaDb.prototype['hanadb-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerHanaDb.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerHanaDb.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerHanaDb.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerHanaDb.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerHanaDb.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayUpdateProducerHanaDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ + +GatewayUpdateProducerHanaDb.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerHanaDb.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayUpdateProducerHanaDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayUpdateProducerHanaDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerHanaDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerHanaDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerHanaDb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerHanaDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerHanaDb.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerHanaDb; +exports["default"] = _default; + +/***/ }), + +/***/ 44014: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerHanaDbOutput model module. + * @module model/GatewayUpdateProducerHanaDbOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerHanaDbOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerHanaDbOutput. + * @alias module:model/GatewayUpdateProducerHanaDbOutput + */ + function GatewayUpdateProducerHanaDbOutput() { + _classCallCheck(this, GatewayUpdateProducerHanaDbOutput); + + GatewayUpdateProducerHanaDbOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerHanaDbOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerHanaDbOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerHanaDbOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerHanaDbOutput} The populated GatewayUpdateProducerHanaDbOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerHanaDbOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerHanaDbOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerHanaDbOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerHanaDbOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 65026: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerLdap model module. + * @module model/GatewayUpdateProducerLdap + * @version 3.6.3 + */ +var GatewayUpdateProducerLdap = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerLdap. + * gatewayUpdateProducerLdap is a command that updates ldap producer [Deprecated: Use dynamic-secret-update-ldap command] + * @alias module:model/GatewayUpdateProducerLdap + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerLdap(name) { + _classCallCheck(this, GatewayUpdateProducerLdap); + + GatewayUpdateProducerLdap.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerLdap, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerLdap from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerLdap} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerLdap} The populated GatewayUpdateProducerLdap instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerLdap(); + + if (data.hasOwnProperty('bind-dn')) { + obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); + } + + if (data.hasOwnProperty('bind-dn-password')) { + obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('external-username')) { + obj['external-username'] = _ApiClient["default"].convertToType(data['external-username'], 'String'); + } + + if (data.hasOwnProperty('group-dn')) { + obj['group-dn'] = _ApiClient["default"].convertToType(data['group-dn'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('ldap-ca-cert')) { + obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('ldap-url')) { + obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('token-expiration')) { + obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); + } + + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerLdap; +}(); +/** + * Bind DN + * @member {String} bind-dn + */ + + +GatewayUpdateProducerLdap.prototype['bind-dn'] = undefined; +/** + * Bind DN Password + * @member {String} bind-dn-password + */ + +GatewayUpdateProducerLdap.prototype['bind-dn-password'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateProducerLdap.prototype['delete_protection'] = undefined; +/** + * Externally provided username [true/false] + * @member {String} external-username + * @default 'false' + */ + +GatewayUpdateProducerLdap.prototype['external-username'] = 'false'; +/** + * Group DN which the temporary user should be added + * @member {String} group-dn + */ + +GatewayUpdateProducerLdap.prototype['group-dn'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerLdap.prototype['json'] = false; +/** + * CA Certificate File Content + * @member {String} ldap-ca-cert + */ + +GatewayUpdateProducerLdap.prototype['ldap-ca-cert'] = undefined; +/** + * LDAP Server URL + * @member {String} ldap-url + */ + +GatewayUpdateProducerLdap.prototype['ldap-url'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerLdap.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerLdap.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerLdap.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerLdap.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerLdap.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerLdap.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerLdap.prototype['token'] = undefined; +/** + * Token expiration + * @member {String} token-expiration + */ + +GatewayUpdateProducerLdap.prototype['token-expiration'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerLdap.prototype['uid-token'] = undefined; +/** + * User Attribute + * @member {String} user-attribute + */ + +GatewayUpdateProducerLdap.prototype['user-attribute'] = undefined; +/** + * User DN + * @member {String} user-dn + */ + +GatewayUpdateProducerLdap.prototype['user-dn'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerLdap.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerLdap; +exports["default"] = _default; + +/***/ }), + +/***/ 45863: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerLdapOutput model module. + * @module model/GatewayUpdateProducerLdapOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerLdapOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerLdapOutput. + * @alias module:model/GatewayUpdateProducerLdapOutput + */ + function GatewayUpdateProducerLdapOutput() { + _classCallCheck(this, GatewayUpdateProducerLdapOutput); + + GatewayUpdateProducerLdapOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerLdapOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerLdapOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerLdapOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerLdapOutput} The populated GatewayUpdateProducerLdapOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerLdapOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerLdapOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerLdapOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerLdapOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 43407: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerMSSQL model module. + * @module model/GatewayUpdateProducerMSSQL + * @version 3.6.3 + */ +var GatewayUpdateProducerMSSQL = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerMSSQL. + * gatewayUpdateProducerMSSQL is a command that updates mssql producer [Deprecated: Use dynamic-secret-update-mssql command] + * @alias module:model/GatewayUpdateProducerMSSQL + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerMSSQL(name) { + _classCallCheck(this, GatewayUpdateProducerMSSQL); + + GatewayUpdateProducerMSSQL.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerMSSQL, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerMSSQL from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerMSSQL} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerMSSQL} The populated GatewayUpdateProducerMSSQL instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerMSSQL(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('mssql-create-statements')) { + obj['mssql-create-statements'] = _ApiClient["default"].convertToType(data['mssql-create-statements'], 'String'); + } + + if (data.hasOwnProperty('mssql-dbname')) { + obj['mssql-dbname'] = _ApiClient["default"].convertToType(data['mssql-dbname'], 'String'); + } + + if (data.hasOwnProperty('mssql-host')) { + obj['mssql-host'] = _ApiClient["default"].convertToType(data['mssql-host'], 'String'); + } + + if (data.hasOwnProperty('mssql-password')) { + obj['mssql-password'] = _ApiClient["default"].convertToType(data['mssql-password'], 'String'); + } + + if (data.hasOwnProperty('mssql-port')) { + obj['mssql-port'] = _ApiClient["default"].convertToType(data['mssql-port'], 'String'); + } + + if (data.hasOwnProperty('mssql-revocation-statements')) { + obj['mssql-revocation-statements'] = _ApiClient["default"].convertToType(data['mssql-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('mssql-username')) { + obj['mssql-username'] = _ApiClient["default"].convertToType(data['mssql-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerMSSQL; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayUpdateProducerMSSQL.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerMSSQL.prototype['json'] = false; +/** + * MSSQL Creation statements + * @member {String} mssql-create-statements + */ + +GatewayUpdateProducerMSSQL.prototype['mssql-create-statements'] = undefined; +/** + * MSSQL Name + * @member {String} mssql-dbname + */ + +GatewayUpdateProducerMSSQL.prototype['mssql-dbname'] = undefined; +/** + * MSSQL Host + * @member {String} mssql-host + * @default '127.0.0.1' + */ + +GatewayUpdateProducerMSSQL.prototype['mssql-host'] = '127.0.0.1'; +/** + * MSSQL Password + * @member {String} mssql-password + */ + +GatewayUpdateProducerMSSQL.prototype['mssql-password'] = undefined; +/** + * MSSQL Port + * @member {String} mssql-port + * @default '1433' + */ + +GatewayUpdateProducerMSSQL.prototype['mssql-port'] = '1433'; +/** + * MSSQL Revocation statements + * @member {String} mssql-revocation-statements + */ + +GatewayUpdateProducerMSSQL.prototype['mssql-revocation-statements'] = undefined; +/** + * MSSQL Username + * @member {String} mssql-username + */ + +GatewayUpdateProducerMSSQL.prototype['mssql-username'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerMSSQL.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerMSSQL.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerMSSQL.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerMSSQL.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayUpdateProducerMSSQL.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ + +GatewayUpdateProducerMSSQL.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerMSSQL.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayUpdateProducerMSSQL.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayUpdateProducerMSSQL.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerMSSQL.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerMSSQL.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerMSSQL.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerMSSQL.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerMSSQL.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerMSSQL; +exports["default"] = _default; + +/***/ }), + +/***/ 8726: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerMSSQLOutput model module. + * @module model/GatewayUpdateProducerMSSQLOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerMSSQLOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerMSSQLOutput. + * @alias module:model/GatewayUpdateProducerMSSQLOutput + */ + function GatewayUpdateProducerMSSQLOutput() { + _classCallCheck(this, GatewayUpdateProducerMSSQLOutput); + + GatewayUpdateProducerMSSQLOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerMSSQLOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerMSSQLOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerMSSQLOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerMSSQLOutput} The populated GatewayUpdateProducerMSSQLOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerMSSQLOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerMSSQLOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerMSSQLOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerMSSQLOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 24975: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerMongo model module. + * @module model/GatewayUpdateProducerMongo + * @version 3.6.3 + */ +var GatewayUpdateProducerMongo = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerMongo. + * gatewayUpdateProducerMongo is a command that updates either mongodb producer or mongodb atlas producer [Deprecated: Use dynamic-secret-update-mongodb command] + * @alias module:model/GatewayUpdateProducerMongo + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerMongo(name) { + _classCallCheck(this, GatewayUpdateProducerMongo); + + GatewayUpdateProducerMongo.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerMongo, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerMongo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerMongo} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerMongo} The populated GatewayUpdateProducerMongo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerMongo(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { + obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); + } + + if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { + obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); + } + + if (data.hasOwnProperty('mongodb-atlas-project-id')) { + obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); + } + + if (data.hasOwnProperty('mongodb-custom-data')) { + obj['mongodb-custom-data'] = _ApiClient["default"].convertToType(data['mongodb-custom-data'], 'String'); + } + + if (data.hasOwnProperty('mongodb-default-auth-db')) { + obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); + } + + if (data.hasOwnProperty('mongodb-host-port')) { + obj['mongodb-host-port'] = _ApiClient["default"].convertToType(data['mongodb-host-port'], 'String'); + } + + if (data.hasOwnProperty('mongodb-name')) { + obj['mongodb-name'] = _ApiClient["default"].convertToType(data['mongodb-name'], 'String'); + } + + if (data.hasOwnProperty('mongodb-password')) { + obj['mongodb-password'] = _ApiClient["default"].convertToType(data['mongodb-password'], 'String'); + } + + if (data.hasOwnProperty('mongodb-roles')) { + obj['mongodb-roles'] = _ApiClient["default"].convertToType(data['mongodb-roles'], 'String'); + } + + if (data.hasOwnProperty('mongodb-server-uri')) { + obj['mongodb-server-uri'] = _ApiClient["default"].convertToType(data['mongodb-server-uri'], 'String'); + } + + if (data.hasOwnProperty('mongodb-uri-options')) { + obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); + } + + if (data.hasOwnProperty('mongodb-username')) { + obj['mongodb-username'] = _ApiClient["default"].convertToType(data['mongodb-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerMongo; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayUpdateProducerMongo.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerMongo.prototype['json'] = false; +/** + * MongoDB Atlas private key + * @member {String} mongodb-atlas-api-private-key + */ + +GatewayUpdateProducerMongo.prototype['mongodb-atlas-api-private-key'] = undefined; +/** + * MongoDB Atlas public key + * @member {String} mongodb-atlas-api-public-key + */ + +GatewayUpdateProducerMongo.prototype['mongodb-atlas-api-public-key'] = undefined; +/** + * MongoDB Atlas project ID + * @member {String} mongodb-atlas-project-id + */ + +GatewayUpdateProducerMongo.prototype['mongodb-atlas-project-id'] = undefined; +/** + * MongoDB custom data + * @member {String} mongodb-custom-data + */ + +GatewayUpdateProducerMongo.prototype['mongodb-custom-data'] = undefined; +/** + * MongoDB server default authentication database + * @member {String} mongodb-default-auth-db + */ + +GatewayUpdateProducerMongo.prototype['mongodb-default-auth-db'] = undefined; +/** + * MongoDB server host and port + * @member {String} mongodb-host-port + */ + +GatewayUpdateProducerMongo.prototype['mongodb-host-port'] = undefined; +/** + * MongoDB Name + * @member {String} mongodb-name + */ + +GatewayUpdateProducerMongo.prototype['mongodb-name'] = undefined; +/** + * MongoDB server password. You will prompted to provide a password if it will not appear in CLI parameters + * @member {String} mongodb-password + */ + +GatewayUpdateProducerMongo.prototype['mongodb-password'] = undefined; +/** + * MongoDB Roles + * @member {String} mongodb-roles + * @default '[]' + */ + +GatewayUpdateProducerMongo.prototype['mongodb-roles'] = '[]'; +/** + * MongoDB server URI + * @member {String} mongodb-server-uri + */ + +GatewayUpdateProducerMongo.prototype['mongodb-server-uri'] = undefined; +/** + * MongoDB server URI options + * @member {String} mongodb-uri-options + */ + +GatewayUpdateProducerMongo.prototype['mongodb-uri-options'] = undefined; +/** + * MongoDB server username + * @member {String} mongodb-username + */ + +GatewayUpdateProducerMongo.prototype['mongodb-username'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerMongo.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerMongo.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerMongo.prototype['password-length'] = undefined; +/** + * Encrypt producer with following key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerMongo.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayUpdateProducerMongo.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerMongo.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayUpdateProducerMongo.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayUpdateProducerMongo.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerMongo.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerMongo.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerMongo.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerMongo.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerMongo.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerMongo; +exports["default"] = _default; + +/***/ }), + +/***/ 38390: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerMongoOutput model module. + * @module model/GatewayUpdateProducerMongoOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerMongoOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerMongoOutput. + * @alias module:model/GatewayUpdateProducerMongoOutput + */ + function GatewayUpdateProducerMongoOutput() { + _classCallCheck(this, GatewayUpdateProducerMongoOutput); + + GatewayUpdateProducerMongoOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerMongoOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerMongoOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerMongoOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerMongoOutput} The populated GatewayUpdateProducerMongoOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerMongoOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerMongoOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerMongoOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerMongoOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 50937: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerMySQL model module. + * @module model/GatewayUpdateProducerMySQL + * @version 3.6.3 + */ +var GatewayUpdateProducerMySQL = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerMySQL. + * gatewayUpdateProducerMySQL is a command that updates mysql producer [Deprecated: Use dynamic-secret-update-mysql command] + * @alias module:model/GatewayUpdateProducerMySQL + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerMySQL(name) { + _classCallCheck(this, GatewayUpdateProducerMySQL); + + GatewayUpdateProducerMySQL.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerMySQL, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerMySQL from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerMySQL} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerMySQL} The populated GatewayUpdateProducerMySQL instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerMySQL(); + + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); + } + + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('mysql-dbname')) { + obj['mysql-dbname'] = _ApiClient["default"].convertToType(data['mysql-dbname'], 'String'); + } + + if (data.hasOwnProperty('mysql-host')) { + obj['mysql-host'] = _ApiClient["default"].convertToType(data['mysql-host'], 'String'); + } + + if (data.hasOwnProperty('mysql-password')) { + obj['mysql-password'] = _ApiClient["default"].convertToType(data['mysql-password'], 'String'); + } + + if (data.hasOwnProperty('mysql-port')) { + obj['mysql-port'] = _ApiClient["default"].convertToType(data['mysql-port'], 'String'); + } + + if (data.hasOwnProperty('mysql-revocation-statements')) { + obj['mysql-revocation-statements'] = _ApiClient["default"].convertToType(data['mysql-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('mysql-screation-statements')) { + obj['mysql-screation-statements'] = _ApiClient["default"].convertToType(data['mysql-screation-statements'], 'String'); + } + + if (data.hasOwnProperty('mysql-username')) { + obj['mysql-username'] = _ApiClient["default"].convertToType(data['mysql-username'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerMySQL; +}(); +/** + * (Optional) DB server certificates + * @member {String} db-server-certificates + */ + + +GatewayUpdateProducerMySQL.prototype['db-server-certificates'] = undefined; +/** + * (Optional) Server name for certificate verification + * @member {String} db-server-name + */ + +GatewayUpdateProducerMySQL.prototype['db-server-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateProducerMySQL.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerMySQL.prototype['json'] = false; +/** + * MySQL DB Name + * @member {String} mysql-dbname + */ + +GatewayUpdateProducerMySQL.prototype['mysql-dbname'] = undefined; +/** + * MySQL Host + * @member {String} mysql-host + * @default '127.0.0.1' + */ + +GatewayUpdateProducerMySQL.prototype['mysql-host'] = '127.0.0.1'; +/** + * MySQL Password + * @member {String} mysql-password + */ + +GatewayUpdateProducerMySQL.prototype['mysql-password'] = undefined; +/** + * MySQL Port + * @member {String} mysql-port + * @default '3306' + */ + +GatewayUpdateProducerMySQL.prototype['mysql-port'] = '3306'; +/** + * MySQL Revocation statements + * @member {String} mysql-revocation-statements + */ + +GatewayUpdateProducerMySQL.prototype['mysql-revocation-statements'] = undefined; +/** + * MySQL Creation statements + * @member {String} mysql-screation-statements + */ + +GatewayUpdateProducerMySQL.prototype['mysql-screation-statements'] = undefined; +/** + * MySQL Username + * @member {String} mysql-username + */ + +GatewayUpdateProducerMySQL.prototype['mysql-username'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerMySQL.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerMySQL.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerMySQL.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerMySQL.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayUpdateProducerMySQL.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerMySQL.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayUpdateProducerMySQL.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayUpdateProducerMySQL.prototype['secure-access-web'] = false; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +GatewayUpdateProducerMySQL.prototype['ssl'] = false; +/** + * SSL connection certificate + * @member {String} ssl-certificate + */ + +GatewayUpdateProducerMySQL.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerMySQL.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerMySQL.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerMySQL.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerMySQL.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerMySQL.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerMySQL; +exports["default"] = _default; + +/***/ }), + +/***/ 7548: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerMySQLOutput model module. + * @module model/GatewayUpdateProducerMySQLOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerMySQLOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerMySQLOutput. + * @alias module:model/GatewayUpdateProducerMySQLOutput + */ + function GatewayUpdateProducerMySQLOutput() { + _classCallCheck(this, GatewayUpdateProducerMySQLOutput); + + GatewayUpdateProducerMySQLOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerMySQLOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerMySQLOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerMySQLOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerMySQLOutput} The populated GatewayUpdateProducerMySQLOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerMySQLOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerMySQLOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerMySQLOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerMySQLOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 47170: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerNativeK8S model module. + * @module model/GatewayUpdateProducerNativeK8S + * @version 3.6.3 + */ +var GatewayUpdateProducerNativeK8S = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerNativeK8S. + * gatewayUpdateProducerNativeK8S is a command that updates k8s producer [Deprecated: Use dynamic-secret-update-k8s command] + * @alias module:model/GatewayUpdateProducerNativeK8S + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerNativeK8S(name) { + _classCallCheck(this, GatewayUpdateProducerNativeK8S); + + GatewayUpdateProducerNativeK8S.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerNativeK8S, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerNativeK8S from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerNativeK8S} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerNativeK8S} The populated GatewayUpdateProducerNativeK8S instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerNativeK8S(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('k8s-allowed-namespaces')) { + obj['k8s-allowed-namespaces'] = _ApiClient["default"].convertToType(data['k8s-allowed-namespaces'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-ca-cert')) { + obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-endpoint')) { + obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('k8s-cluster-token')) { + obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); + } + + if (data.hasOwnProperty('k8s-namespace')) { + obj['k8s-namespace'] = _ApiClient["default"].convertToType(data['k8s-namespace'], 'String'); + } + + if (data.hasOwnProperty('k8s-predefined-role-name')) { + obj['k8s-predefined-role-name'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-name'], 'String'); + } + + if (data.hasOwnProperty('k8s-predefined-role-type')) { + obj['k8s-predefined-role-type'] = _ApiClient["default"].convertToType(data['k8s-predefined-role-type'], 'String'); + } + + if (data.hasOwnProperty('k8s-rolebinding-yaml-def')) { + obj['k8s-rolebinding-yaml-def'] = _ApiClient["default"].convertToType(data['k8s-rolebinding-yaml-def'], 'String'); + } + + if (data.hasOwnProperty('k8s-service-account')) { + obj['k8s-service-account'] = _ApiClient["default"].convertToType(data['k8s-service-account'], 'String'); + } + + if (data.hasOwnProperty('k8s-service-account-type')) { + obj['k8s-service-account-type'] = _ApiClient["default"].convertToType(data['k8s-service-account-type'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); + } + + if (data.hasOwnProperty('secure-access-dashboard-url')) { + obj['secure-access-dashboard-url'] = _ApiClient["default"].convertToType(data['secure-access-dashboard-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('use-gw-service-account')) { + obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerNativeK8S; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayUpdateProducerNativeK8S.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerNativeK8S.prototype['json'] = false; +/** + * Comma-separated list of allowed K8S namespaces for the generated ServiceAccount (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-allowed-namespaces + */ + +GatewayUpdateProducerNativeK8S.prototype['k8s-allowed-namespaces'] = undefined; +/** + * K8S cluster CA certificate + * @member {String} k8s-cluster-ca-cert + */ + +GatewayUpdateProducerNativeK8S.prototype['k8s-cluster-ca-cert'] = undefined; +/** + * K8S cluster URL endpoint + * @member {String} k8s-cluster-endpoint + */ + +GatewayUpdateProducerNativeK8S.prototype['k8s-cluster-endpoint'] = undefined; +/** + * K8S cluster Bearer token + * @member {String} k8s-cluster-token + */ + +GatewayUpdateProducerNativeK8S.prototype['k8s-cluster-token'] = undefined; +/** + * K8S Namespace where the ServiceAccount exists. + * @member {String} k8s-namespace + */ + +GatewayUpdateProducerNativeK8S.prototype['k8s-namespace'] = undefined; +/** + * The pre-existing Role or ClusterRole name to bind the generated ServiceAccount to (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-predefined-role-name + */ + +GatewayUpdateProducerNativeK8S.prototype['k8s-predefined-role-name'] = undefined; +/** + * Specifies the type of the pre-existing K8S role [Role, ClusterRole] (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-predefined-role-type + */ + +GatewayUpdateProducerNativeK8S.prototype['k8s-predefined-role-type'] = undefined; +/** + * Path to yaml file that contains definitions of K8S role and role binding (relevant only for k8s-service-account-type=dynamic) + * @member {String} k8s-rolebinding-yaml-def + */ + +GatewayUpdateProducerNativeK8S.prototype['k8s-rolebinding-yaml-def'] = undefined; +/** + * K8S ServiceAccount to extract token from. + * @member {String} k8s-service-account + */ + +GatewayUpdateProducerNativeK8S.prototype['k8s-service-account'] = undefined; +/** + * K8S ServiceAccount type [fixed, dynamic]. + * @member {String} k8s-service-account-type + */ + +GatewayUpdateProducerNativeK8S.prototype['k8s-service-account-type'] = undefined; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerNativeK8S.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerNativeK8S.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerNativeK8S.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable Port forwarding while using CLI access + * @member {Boolean} secure-access-allow-port-forwading + */ + +GatewayUpdateProducerNativeK8S.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayUpdateProducerNativeK8S.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The K8s cluster endpoint URL + * @member {String} secure-access-cluster-endpoint + */ + +GatewayUpdateProducerNativeK8S.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * The K8s dashboard url + * @member {String} secure-access-dashboard-url + */ + +GatewayUpdateProducerNativeK8S.prototype['secure-access-dashboard-url'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerNativeK8S.prototype['secure-access-enable'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayUpdateProducerNativeK8S.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +GatewayUpdateProducerNativeK8S.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +GatewayUpdateProducerNativeK8S.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerNativeK8S.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerNativeK8S.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerNativeK8S.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerNativeK8S.prototype['uid-token'] = undefined; +/** + * Use the GW's service account + * @member {Boolean} use-gw-service-account + */ + +GatewayUpdateProducerNativeK8S.prototype['use-gw-service-account'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerNativeK8S.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerNativeK8S; +exports["default"] = _default; + +/***/ }), + +/***/ 80839: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerNativeK8SOutput model module. + * @module model/GatewayUpdateProducerNativeK8SOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerNativeK8SOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerNativeK8SOutput. + * @alias module:model/GatewayUpdateProducerNativeK8SOutput + */ + function GatewayUpdateProducerNativeK8SOutput() { + _classCallCheck(this, GatewayUpdateProducerNativeK8SOutput); + + GatewayUpdateProducerNativeK8SOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerNativeK8SOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerNativeK8SOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerNativeK8SOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerNativeK8SOutput} The populated GatewayUpdateProducerNativeK8SOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerNativeK8SOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerNativeK8SOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerNativeK8SOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerNativeK8SOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 9399: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerOracleDb model module. + * @module model/GatewayUpdateProducerOracleDb + * @version 3.6.3 + */ +var GatewayUpdateProducerOracleDb = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerOracleDb. + * gatewayUpdateProducerOracleDb is a command that updates oracle db producer [Deprecated: Use dynamic-secret-update-oracledb command] + * @alias module:model/GatewayUpdateProducerOracleDb + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerOracleDb(name) { + _classCallCheck(this, GatewayUpdateProducerOracleDb); + + GatewayUpdateProducerOracleDb.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerOracleDb, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerOracleDb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerOracleDb} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerOracleDb} The populated GatewayUpdateProducerOracleDb instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerOracleDb(); + + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); + } + + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('oracle-host')) { + obj['oracle-host'] = _ApiClient["default"].convertToType(data['oracle-host'], 'String'); + } + + if (data.hasOwnProperty('oracle-password')) { + obj['oracle-password'] = _ApiClient["default"].convertToType(data['oracle-password'], 'String'); + } + + if (data.hasOwnProperty('oracle-port')) { + obj['oracle-port'] = _ApiClient["default"].convertToType(data['oracle-port'], 'String'); + } + + if (data.hasOwnProperty('oracle-revocation-statements')) { + obj['oracle-revocation-statements'] = _ApiClient["default"].convertToType(data['oracle-revocation-statements'], 'String'); + } + + if (data.hasOwnProperty('oracle-screation-statements')) { + obj['oracle-screation-statements'] = _ApiClient["default"].convertToType(data['oracle-screation-statements'], 'String'); + } + + if (data.hasOwnProperty('oracle-service-name')) { + obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); + } + + if (data.hasOwnProperty('oracle-username')) { + obj['oracle-username'] = _ApiClient["default"].convertToType(data['oracle-username'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerOracleDb; +}(); +/** + * (Optional) DB server certificates + * @member {String} db-server-certificates + */ + + +GatewayUpdateProducerOracleDb.prototype['db-server-certificates'] = undefined; +/** + * (Optional) Server name for certificate verification + * @member {String} db-server-name + */ + +GatewayUpdateProducerOracleDb.prototype['db-server-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateProducerOracleDb.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerOracleDb.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerOracleDb.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerOracleDb.prototype['new-name'] = undefined; +/** + * Oracle Host + * @member {String} oracle-host + * @default '127.0.0.1' + */ + +GatewayUpdateProducerOracleDb.prototype['oracle-host'] = '127.0.0.1'; +/** + * Oracle Password + * @member {String} oracle-password + */ + +GatewayUpdateProducerOracleDb.prototype['oracle-password'] = undefined; +/** + * Oracle Port + * @member {String} oracle-port + * @default '1521' + */ + +GatewayUpdateProducerOracleDb.prototype['oracle-port'] = '1521'; +/** + * Oracle Revocation statements + * @member {String} oracle-revocation-statements + */ + +GatewayUpdateProducerOracleDb.prototype['oracle-revocation-statements'] = undefined; +/** + * Oracle Creation statements + * @member {String} oracle-screation-statements + */ + +GatewayUpdateProducerOracleDb.prototype['oracle-screation-statements'] = undefined; +/** + * Oracle DB Name + * @member {String} oracle-service-name + */ + +GatewayUpdateProducerOracleDb.prototype['oracle-service-name'] = undefined; +/** + * Oracle Username + * @member {String} oracle-username + */ + +GatewayUpdateProducerOracleDb.prototype['oracle-username'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerOracleDb.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerOracleDb.prototype['producer-encryption-key-name'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayUpdateProducerOracleDb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + * @default 'false' + */ + +GatewayUpdateProducerOracleDb.prototype['secure-access-enable'] = 'false'; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayUpdateProducerOracleDb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayUpdateProducerOracleDb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerOracleDb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerOracleDb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerOracleDb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerOracleDb.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerOracleDb.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerOracleDb; +exports["default"] = _default; + +/***/ }), + +/***/ 97550: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerOracleDbOutput model module. + * @module model/GatewayUpdateProducerOracleDbOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerOracleDbOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerOracleDbOutput. + * @alias module:model/GatewayUpdateProducerOracleDbOutput + */ + function GatewayUpdateProducerOracleDbOutput() { + _classCallCheck(this, GatewayUpdateProducerOracleDbOutput); + + GatewayUpdateProducerOracleDbOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerOracleDbOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerOracleDbOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerOracleDbOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerOracleDbOutput} The populated GatewayUpdateProducerOracleDbOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerOracleDbOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerOracleDbOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerOracleDbOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerOracleDbOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 2311: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerPing model module. + * @module model/GatewayUpdateProducerPing + * @version 3.6.3 + */ +var GatewayUpdateProducerPing = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerPing. + * gatewayUpdateProducerPing is a command that updates Ping producer [Deprecated: Use dynamic-secret-update-ping command] + * @alias module:model/GatewayUpdateProducerPing + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerPing(name) { + _classCallCheck(this, GatewayUpdateProducerPing); + + GatewayUpdateProducerPing.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerPing, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerPing from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerPing} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerPing} The populated GatewayUpdateProducerPing instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerPing(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('ping-administrative-port')) { + obj['ping-administrative-port'] = _ApiClient["default"].convertToType(data['ping-administrative-port'], 'String'); + } + + if (data.hasOwnProperty('ping-atm-id')) { + obj['ping-atm-id'] = _ApiClient["default"].convertToType(data['ping-atm-id'], 'String'); + } + + if (data.hasOwnProperty('ping-authorization-port')) { + obj['ping-authorization-port'] = _ApiClient["default"].convertToType(data['ping-authorization-port'], 'String'); + } + + if (data.hasOwnProperty('ping-cert-subject-dn')) { + obj['ping-cert-subject-dn'] = _ApiClient["default"].convertToType(data['ping-cert-subject-dn'], 'String'); + } + + if (data.hasOwnProperty('ping-client-authentication-type')) { + obj['ping-client-authentication-type'] = _ApiClient["default"].convertToType(data['ping-client-authentication-type'], 'String'); + } + + if (data.hasOwnProperty('ping-enforce-replay-prevention')) { + obj['ping-enforce-replay-prevention'] = _ApiClient["default"].convertToType(data['ping-enforce-replay-prevention'], 'String'); + } + + if (data.hasOwnProperty('ping-grant-types')) { + obj['ping-grant-types'] = _ApiClient["default"].convertToType(data['ping-grant-types'], ['String']); + } + + if (data.hasOwnProperty('ping-issuer-dn')) { + obj['ping-issuer-dn'] = _ApiClient["default"].convertToType(data['ping-issuer-dn'], 'String'); + } + + if (data.hasOwnProperty('ping-jwks')) { + obj['ping-jwks'] = _ApiClient["default"].convertToType(data['ping-jwks'], 'String'); + } + + if (data.hasOwnProperty('ping-jwks-url')) { + obj['ping-jwks-url'] = _ApiClient["default"].convertToType(data['ping-jwks-url'], 'String'); + } + + if (data.hasOwnProperty('ping-password')) { + obj['ping-password'] = _ApiClient["default"].convertToType(data['ping-password'], 'String'); + } + + if (data.hasOwnProperty('ping-privileged-user')) { + obj['ping-privileged-user'] = _ApiClient["default"].convertToType(data['ping-privileged-user'], 'String'); + } + + if (data.hasOwnProperty('ping-redirect-uris')) { + obj['ping-redirect-uris'] = _ApiClient["default"].convertToType(data['ping-redirect-uris'], ['String']); + } + + if (data.hasOwnProperty('ping-restricted-scopes')) { + obj['ping-restricted-scopes'] = _ApiClient["default"].convertToType(data['ping-restricted-scopes'], ['String']); + } + + if (data.hasOwnProperty('ping-signing-algo')) { + obj['ping-signing-algo'] = _ApiClient["default"].convertToType(data['ping-signing-algo'], 'String'); + } + + if (data.hasOwnProperty('ping-url')) { + obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerPing; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayUpdateProducerPing.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerPing.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerPing.prototype['name'] = undefined; +/** + * Dynamic secret New name + * @member {String} new-name + */ + +GatewayUpdateProducerPing.prototype['new-name'] = undefined; +/** + * Ping Federate administrative port + * @member {String} ping-administrative-port + * @default '9999' + */ + +GatewayUpdateProducerPing.prototype['ping-administrative-port'] = '9999'; +/** + * Set a specific Access Token Management (ATM) instance for the created OAuth Client by providing the ATM Id. If no explicit value is given, the default pingfederate server ATM will be set. + * @member {String} ping-atm-id + */ + +GatewayUpdateProducerPing.prototype['ping-atm-id'] = undefined; +/** + * Ping Federate authorization port + * @member {String} ping-authorization-port + * @default '9031' + */ + +GatewayUpdateProducerPing.prototype['ping-authorization-port'] = '9031'; +/** + * The subject DN of the client certificate. If no explicit value is given, the producer will create CA certificate and matched client certificate and return it as value. Used in conjunction with ping-issuer-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) + * @member {String} ping-cert-subject-dn + */ + +GatewayUpdateProducerPing.prototype['ping-cert-subject-dn'] = undefined; +/** + * OAuth Client Authentication Type [CLIENT_SECRET, PRIVATE_KEY_JWT, CLIENT_TLS_CERTIFICATE] + * @member {String} ping-client-authentication-type + * @default 'CLIENT_SECRET' + */ + +GatewayUpdateProducerPing.prototype['ping-client-authentication-type'] = 'CLIENT_SECRET'; +/** + * Determines whether PingFederate requires a unique signed JWT from the client for each action (relevant for PRIVATE_KEY_JWT authentication method) [true/false] + * @member {String} ping-enforce-replay-prevention + * @default 'false' + */ + +GatewayUpdateProducerPing.prototype['ping-enforce-replay-prevention'] = 'false'; +/** + * List of OAuth client grant types [IMPLICIT, AUTHORIZATION_CODE, CLIENT_CREDENTIALS, TOKEN_EXCHANGE, REFRESH_TOKEN, ASSERTION_GRANTS, PASSWORD, RESOURCE_OWNER_CREDENTIALS]. If no explicit value is given, AUTHORIZATION_CODE will be selected as default. + * @member {Array.} ping-grant-types + */ + +GatewayUpdateProducerPing.prototype['ping-grant-types'] = undefined; +/** + * Issuer DN of trusted CA certificate that imported into Ping Federate server. You may select \\\"Trust Any\\\" to trust all the existing issuers in Ping Federate server. Used in conjunction with ping-cert-subject-dn (relevant for CLIENT_TLS_CERTIFICATE authentication method) + * @member {String} ping-issuer-dn + */ + +GatewayUpdateProducerPing.prototype['ping-issuer-dn'] = undefined; +/** + * Base64-encoded JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT (Sign Algo: RS256) and return it as value (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-jwks + */ + +GatewayUpdateProducerPing.prototype['ping-jwks'] = undefined; +/** + * The URL of the JSON Web Key Set (JWKS). If no explicit value is given, the producer will create JWKs and matched signed JWT and return it as value (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-jwks-url + */ + +GatewayUpdateProducerPing.prototype['ping-jwks-url'] = undefined; +/** + * Ping Federate privileged user password + * @member {String} ping-password + */ + +GatewayUpdateProducerPing.prototype['ping-password'] = undefined; +/** + * Ping Federate privileged user + * @member {String} ping-privileged-user + */ + +GatewayUpdateProducerPing.prototype['ping-privileged-user'] = undefined; +/** + * List of URIs to which the OAuth authorization server may redirect the resource owner's user agent after authorization is obtained. At least one redirection URI is required for the AUTHORIZATION_CODE and IMPLICIT grant types. + * @member {Array.} ping-redirect-uris + */ + +GatewayUpdateProducerPing.prototype['ping-redirect-uris'] = undefined; +/** + * Limit the OAuth client to specific scopes list + * @member {Array.} ping-restricted-scopes + */ + +GatewayUpdateProducerPing.prototype['ping-restricted-scopes'] = undefined; +/** + * The signing algorithm that the client must use to sign its request objects [RS256,RS384,RS512,ES256,ES384,ES512,PS256,PS384,PS512] If no explicit value is given, the client can use any of the supported signing algorithms (relevant for PRIVATE_KEY_JWT authentication method) + * @member {String} ping-signing-algo + */ + +GatewayUpdateProducerPing.prototype['ping-signing-algo'] = undefined; +/** + * Ping URL + * @member {String} ping-url + */ + +GatewayUpdateProducerPing.prototype['ping-url'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerPing.prototype['producer-encryption-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerPing.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerPing.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerPing.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerPing.prototype['uid-token'] = undefined; +/** + * The time from dynamic secret creation to expiration. + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerPing.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerPing; +exports["default"] = _default; + +/***/ }), + +/***/ 82046: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerPingOutput model module. + * @module model/GatewayUpdateProducerPingOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerPingOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerPingOutput. + * @alias module:model/GatewayUpdateProducerPingOutput + */ + function GatewayUpdateProducerPingOutput() { + _classCallCheck(this, GatewayUpdateProducerPingOutput); + + GatewayUpdateProducerPingOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerPingOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerPingOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerPingOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerPingOutput} The populated GatewayUpdateProducerPingOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerPingOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerPingOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerPingOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerPingOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 42517: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerPostgreSQL model module. + * @module model/GatewayUpdateProducerPostgreSQL + * @version 3.6.3 + */ +var GatewayUpdateProducerPostgreSQL = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerPostgreSQL. + * gatewayUpdateProducerPostgreSQL is a command that updates postgresql producer [Deprecated: Use dynamic-secret-update-postgresql command] + * @alias module:model/GatewayUpdateProducerPostgreSQL + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerPostgreSQL(name) { + _classCallCheck(this, GatewayUpdateProducerPostgreSQL); + + GatewayUpdateProducerPostgreSQL.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerPostgreSQL, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerPostgreSQL from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerPostgreSQL} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerPostgreSQL} The populated GatewayUpdateProducerPostgreSQL instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerPostgreSQL(); + + if (data.hasOwnProperty('creation-statements')) { + obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('postgresql-db-name')) { + obj['postgresql-db-name'] = _ApiClient["default"].convertToType(data['postgresql-db-name'], 'String'); + } + + if (data.hasOwnProperty('postgresql-host')) { + obj['postgresql-host'] = _ApiClient["default"].convertToType(data['postgresql-host'], 'String'); + } + + if (data.hasOwnProperty('postgresql-password')) { + obj['postgresql-password'] = _ApiClient["default"].convertToType(data['postgresql-password'], 'String'); + } + + if (data.hasOwnProperty('postgresql-port')) { + obj['postgresql-port'] = _ApiClient["default"].convertToType(data['postgresql-port'], 'String'); + } + + if (data.hasOwnProperty('postgresql-username')) { + obj['postgresql-username'] = _ApiClient["default"].convertToType(data['postgresql-username'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key')) { + obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); + } + + if (data.hasOwnProperty('revocation-statement')) { + obj['revocation-statement'] = _ApiClient["default"].convertToType(data['revocation-statement'], 'String'); + } + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerPostgreSQL; +}(); +/** + * PostgreSQL Creation statements + * @member {String} creation-statements + */ + + +GatewayUpdateProducerPostgreSQL.prototype['creation-statements'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateProducerPostgreSQL.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerPostgreSQL.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerPostgreSQL.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerPostgreSQL.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerPostgreSQL.prototype['password-length'] = undefined; +/** + * PostgreSQL DB Name + * @member {String} postgresql-db-name + */ + +GatewayUpdateProducerPostgreSQL.prototype['postgresql-db-name'] = undefined; +/** + * PostgreSQL Host + * @member {String} postgresql-host + * @default '127.0.0.1' + */ + +GatewayUpdateProducerPostgreSQL.prototype['postgresql-host'] = '127.0.0.1'; +/** + * PostgreSQL Password + * @member {String} postgresql-password + */ + +GatewayUpdateProducerPostgreSQL.prototype['postgresql-password'] = undefined; +/** + * PostgreSQL Port + * @member {String} postgresql-port + * @default '5432' + */ + +GatewayUpdateProducerPostgreSQL.prototype['postgresql-port'] = '5432'; +/** + * PostgreSQL Username + * @member {String} postgresql-username + */ + +GatewayUpdateProducerPostgreSQL.prototype['postgresql-username'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key + */ + +GatewayUpdateProducerPostgreSQL.prototype['producer-encryption-key'] = undefined; +/** + * PostgreSQL Revocation statements + * @member {String} revocation-statement + */ + +GatewayUpdateProducerPostgreSQL.prototype['revocation-statement'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +GatewayUpdateProducerPostgreSQL.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ + +GatewayUpdateProducerPostgreSQL.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerPostgreSQL.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayUpdateProducerPostgreSQL.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +GatewayUpdateProducerPostgreSQL.prototype['secure-access-web'] = false; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +GatewayUpdateProducerPostgreSQL.prototype['ssl'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerPostgreSQL.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerPostgreSQL.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerPostgreSQL.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerPostgreSQL.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerPostgreSQL.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerPostgreSQL; +exports["default"] = _default; + +/***/ }), + +/***/ 41024: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerPostgreSQLOutput model module. + * @module model/GatewayUpdateProducerPostgreSQLOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerPostgreSQLOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerPostgreSQLOutput. + * @alias module:model/GatewayUpdateProducerPostgreSQLOutput + */ + function GatewayUpdateProducerPostgreSQLOutput() { + _classCallCheck(this, GatewayUpdateProducerPostgreSQLOutput); + + GatewayUpdateProducerPostgreSQLOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerPostgreSQLOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerPostgreSQLOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerPostgreSQLOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerPostgreSQLOutput} The populated GatewayUpdateProducerPostgreSQLOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerPostgreSQLOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerPostgreSQLOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerPostgreSQLOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerPostgreSQLOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 70229: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerRabbitMQ model module. + * @module model/GatewayUpdateProducerRabbitMQ + * @version 3.6.3 + */ +var GatewayUpdateProducerRabbitMQ = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerRabbitMQ. + * gatewayUpdateProducerRabbitMQ is a command that updates rabbitmq producer [Deprecated: Use dynamic-secret-update-rabbitmq command] + * @alias module:model/GatewayUpdateProducerRabbitMQ + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerRabbitMQ(name) { + _classCallCheck(this, GatewayUpdateProducerRabbitMQ); + + GatewayUpdateProducerRabbitMQ.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerRabbitMQ, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerRabbitMQ from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerRabbitMQ} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerRabbitMQ} The populated GatewayUpdateProducerRabbitMQ instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerRabbitMQ(); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-admin-pwd')) { + obj['rabbitmq-admin-pwd'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-admin-user')) { + obj['rabbitmq-admin-user'] = _ApiClient["default"].convertToType(data['rabbitmq-admin-user'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-server-uri')) { + obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-conf-permission')) { + obj['rabbitmq-user-conf-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-conf-permission'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-read-permission')) { + obj['rabbitmq-user-read-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-read-permission'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-tags')) { + obj['rabbitmq-user-tags'] = _ApiClient["default"].convertToType(data['rabbitmq-user-tags'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-vhost')) { + obj['rabbitmq-user-vhost'] = _ApiClient["default"].convertToType(data['rabbitmq-user-vhost'], 'String'); + } + + if (data.hasOwnProperty('rabbitmq-user-write-permission')) { + obj['rabbitmq-user-write-permission'] = _ApiClient["default"].convertToType(data['rabbitmq-user-write-permission'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerRabbitMQ; +}(); +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + + +GatewayUpdateProducerRabbitMQ.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerRabbitMQ.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerRabbitMQ.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerRabbitMQ.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerRabbitMQ.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerRabbitMQ.prototype['producer-encryption-key-name'] = undefined; +/** + * RabbitMQ Admin password + * @member {String} rabbitmq-admin-pwd + */ + +GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-admin-pwd'] = undefined; +/** + * RabbitMQ Admin User + * @member {String} rabbitmq-admin-user + */ + +GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-admin-user'] = undefined; +/** + * Server URI + * @member {String} rabbitmq-server-uri + */ + +GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-server-uri'] = undefined; +/** + * User configuration permission + * @member {String} rabbitmq-user-conf-permission + */ + +GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-conf-permission'] = undefined; +/** + * User read permission + * @member {String} rabbitmq-user-read-permission + */ + +GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-read-permission'] = undefined; +/** + * User Tags + * @member {String} rabbitmq-user-tags + */ + +GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-tags'] = undefined; +/** + * User Virtual Host + * @member {String} rabbitmq-user-vhost + */ + +GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-vhost'] = undefined; +/** + * User write permission + * @member {String} rabbitmq-user-write-permission + */ + +GatewayUpdateProducerRabbitMQ.prototype['rabbitmq-user-write-permission'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerRabbitMQ.prototype['secure-access-enable'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ + +GatewayUpdateProducerRabbitMQ.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default true + */ + +GatewayUpdateProducerRabbitMQ.prototype['secure-access-web'] = true; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +GatewayUpdateProducerRabbitMQ.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +GatewayUpdateProducerRabbitMQ.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerRabbitMQ.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerRabbitMQ.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerRabbitMQ.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerRabbitMQ.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerRabbitMQ.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerRabbitMQ; +exports["default"] = _default; + +/***/ }), + +/***/ 13216: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerRabbitMQOutput model module. + * @module model/GatewayUpdateProducerRabbitMQOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerRabbitMQOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerRabbitMQOutput. + * @alias module:model/GatewayUpdateProducerRabbitMQOutput + */ + function GatewayUpdateProducerRabbitMQOutput() { + _classCallCheck(this, GatewayUpdateProducerRabbitMQOutput); + + GatewayUpdateProducerRabbitMQOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerRabbitMQOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerRabbitMQOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerRabbitMQOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerRabbitMQOutput} The populated GatewayUpdateProducerRabbitMQOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerRabbitMQOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerRabbitMQOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerRabbitMQOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerRabbitMQOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 47813: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerRdp model module. + * @module model/GatewayUpdateProducerRdp + * @version 3.6.3 + */ +var GatewayUpdateProducerRdp = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerRdp. + * gatewayUpdateProducerRdp is a command that updates rdp producer [Deprecated: Use dynamic-secret-update-rdp command] + * @alias module:model/GatewayUpdateProducerRdp + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerRdp(name) { + _classCallCheck(this, GatewayUpdateProducerRdp); + + GatewayUpdateProducerRdp.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerRdp, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerRdp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerRdp} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerRdp} The populated GatewayUpdateProducerRdp instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerRdp(); + + if (data.hasOwnProperty('allow-user-extend-session')) { + obj['allow-user-extend-session'] = _ApiClient["default"].convertToType(data['allow-user-extend-session'], 'Number'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('fixed-user-only')) { + obj['fixed-user-only'] = _ApiClient["default"].convertToType(data['fixed-user-only'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('rdp-admin-name')) { + obj['rdp-admin-name'] = _ApiClient["default"].convertToType(data['rdp-admin-name'], 'String'); + } + + if (data.hasOwnProperty('rdp-admin-pwd')) { + obj['rdp-admin-pwd'] = _ApiClient["default"].convertToType(data['rdp-admin-pwd'], 'String'); + } + + if (data.hasOwnProperty('rdp-host-name')) { + obj['rdp-host-name'] = _ApiClient["default"].convertToType(data['rdp-host-name'], 'String'); + } + + if (data.hasOwnProperty('rdp-host-port')) { + obj['rdp-host-port'] = _ApiClient["default"].convertToType(data['rdp-host-port'], 'String'); + } + + if (data.hasOwnProperty('rdp-user-groups')) { + obj['rdp-user-groups'] = _ApiClient["default"].convertToType(data['rdp-user-groups'], 'String'); + } + + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-rd-gateway-server')) { + obj['secure-access-rd-gateway-server'] = _ApiClient["default"].convertToType(data['secure-access-rd-gateway-server'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('warn-user-before-expiration')) { + obj['warn-user-before-expiration'] = _ApiClient["default"].convertToType(data['warn-user-before-expiration'], 'Number'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerRdp; +}(); +/** + * AllowUserExtendSession + * @member {Number} allow-user-extend-session + */ + + +GatewayUpdateProducerRdp.prototype['allow-user-extend-session'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateProducerRdp.prototype['delete_protection'] = undefined; +/** + * Allow access using externally (IdP) provided username [true/false] + * @member {String} fixed-user-only + * @default 'false' + */ + +GatewayUpdateProducerRdp.prototype['fixed-user-only'] = 'false'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerRdp.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerRdp.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerRdp.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerRdp.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerRdp.prototype['producer-encryption-key-name'] = undefined; +/** + * RDP Admin Name + * @member {String} rdp-admin-name + */ + +GatewayUpdateProducerRdp.prototype['rdp-admin-name'] = undefined; +/** + * RDP Admin password + * @member {String} rdp-admin-pwd + */ + +GatewayUpdateProducerRdp.prototype['rdp-admin-pwd'] = undefined; +/** + * Hostname + * @member {String} rdp-host-name + */ + +GatewayUpdateProducerRdp.prototype['rdp-host-name'] = undefined; +/** + * Port + * @member {String} rdp-host-port + * @default '22' + */ + +GatewayUpdateProducerRdp.prototype['rdp-host-port'] = '22'; +/** + * Groups + * @member {String} rdp-user-groups + */ + +GatewayUpdateProducerRdp.prototype['rdp-user-groups'] = undefined; +/** + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false + */ + +GatewayUpdateProducerRdp.prototype['secure-access-allow-external-user'] = false; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerRdp.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +GatewayUpdateProducerRdp.prototype['secure-access-host'] = undefined; +/** + * RD Gateway server + * @member {String} secure-access-rd-gateway-server + */ + +GatewayUpdateProducerRdp.prototype['secure-access-rd-gateway-server'] = undefined; +/** + * Required when the Dynamic Secret is used for a domain user + * @member {String} secure-access-rdp-domain + */ + +GatewayUpdateProducerRdp.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ + +GatewayUpdateProducerRdp.prototype['secure-access-rdp-user'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerRdp.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerRdp.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerRdp.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerRdp.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerRdp.prototype['user-ttl'] = '60m'; +/** + * WarnBeforeUserExpiration + * @member {Number} warn-user-before-expiration + */ + +GatewayUpdateProducerRdp.prototype['warn-user-before-expiration'] = undefined; +var _default = GatewayUpdateProducerRdp; +exports["default"] = _default; + +/***/ }), + +/***/ 73488: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerRdpOutput model module. + * @module model/GatewayUpdateProducerRdpOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerRdpOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerRdpOutput. + * @alias module:model/GatewayUpdateProducerRdpOutput + */ + function GatewayUpdateProducerRdpOutput() { + _classCallCheck(this, GatewayUpdateProducerRdpOutput); + + GatewayUpdateProducerRdpOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerRdpOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerRdpOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerRdpOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerRdpOutput} The populated GatewayUpdateProducerRdpOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerRdpOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerRdpOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerRdpOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerRdpOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 75080: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerRedis model module. + * @module model/GatewayUpdateProducerRedis + * @version 3.6.3 + */ +var GatewayUpdateProducerRedis = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerRedis. + * gatewayUpdateProducerRedis is a command that updates redis producer [Deprecated: Use dynamic-secret-update-redis command] + * @alias module:model/GatewayUpdateProducerRedis + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerRedis(name) { + _classCallCheck(this, GatewayUpdateProducerRedis); + + GatewayUpdateProducerRedis.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerRedis, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerRedis from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerRedis} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerRedis} The populated GatewayUpdateProducerRedis instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerRedis(); + + if (data.hasOwnProperty('acl-rules')) { + obj['acl-rules'] = _ApiClient["default"].convertToType(data['acl-rules'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerRedis; +}(); +/** + * A JSON array list of redis ACL rules to attach to the created user. For available rules see the ACL CAT command https://redis.io/commands/acl-cat By default the user will have permissions to read all keys '[\"~*\", \"+@read\"]' + * @member {String} acl-rules + */ + + +GatewayUpdateProducerRedis.prototype['acl-rules'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateProducerRedis.prototype['delete_protection'] = undefined; +/** + * Redis Host + * @member {String} host + * @default '127.0.0.1' + */ + +GatewayUpdateProducerRedis.prototype['host'] = '127.0.0.1'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerRedis.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerRedis.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerRedis.prototype['new-name'] = undefined; +/** + * Redis Password + * @member {String} password + */ + +GatewayUpdateProducerRedis.prototype['password'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerRedis.prototype['password-length'] = undefined; +/** + * Redis Port + * @member {String} port + * @default '6379' + */ + +GatewayUpdateProducerRedis.prototype['port'] = '6379'; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerRedis.prototype['producer-encryption-key-name'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +GatewayUpdateProducerRedis.prototype['ssl'] = false; +/** + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} ssl-certificate + */ + +GatewayUpdateProducerRedis.prototype['ssl-certificate'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerRedis.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerRedis.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerRedis.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerRedis.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerRedis.prototype['user-ttl'] = '60m'; +/** + * Redis Username + * @member {String} username + */ + +GatewayUpdateProducerRedis.prototype['username'] = undefined; +var _default = GatewayUpdateProducerRedis; +exports["default"] = _default; + +/***/ }), + +/***/ 79073: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerRedisOutput model module. + * @module model/GatewayUpdateProducerRedisOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerRedisOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerRedisOutput. + * @alias module:model/GatewayUpdateProducerRedisOutput + */ + function GatewayUpdateProducerRedisOutput() { + _classCallCheck(this, GatewayUpdateProducerRedisOutput); + + GatewayUpdateProducerRedisOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerRedisOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerRedisOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerRedisOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerRedisOutput} The populated GatewayUpdateProducerRedisOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerRedisOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerRedisOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerRedisOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerRedisOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 73230: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerRedshift model module. + * @module model/GatewayUpdateProducerRedshift + * @version 3.6.3 + */ +var GatewayUpdateProducerRedshift = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerRedshift. + * gatewayUpdateProducerRedshift is a command that updates redshift producer [Deprecated: Use dynamic-secret-update-redshift command] + * @alias module:model/GatewayUpdateProducerRedshift + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerRedshift(name) { + _classCallCheck(this, GatewayUpdateProducerRedshift); + + GatewayUpdateProducerRedshift.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerRedshift, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerRedshift from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerRedshift} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerRedshift} The populated GatewayUpdateProducerRedshift instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerRedshift(); + + if (data.hasOwnProperty('creation-statements')) { + obj['creation-statements'] = _ApiClient["default"].convertToType(data['creation-statements'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key')) { + obj['producer-encryption-key'] = _ApiClient["default"].convertToType(data['producer-encryption-key'], 'String'); + } + + if (data.hasOwnProperty('redshift-db-name')) { + obj['redshift-db-name'] = _ApiClient["default"].convertToType(data['redshift-db-name'], 'String'); + } + + if (data.hasOwnProperty('redshift-host')) { + obj['redshift-host'] = _ApiClient["default"].convertToType(data['redshift-host'], 'String'); + } + + if (data.hasOwnProperty('redshift-password')) { + obj['redshift-password'] = _ApiClient["default"].convertToType(data['redshift-password'], 'String'); + } + + if (data.hasOwnProperty('redshift-port')) { + obj['redshift-port'] = _ApiClient["default"].convertToType(data['redshift-port'], 'String'); + } + + if (data.hasOwnProperty('redshift-username')) { + obj['redshift-username'] = _ApiClient["default"].convertToType(data['redshift-username'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerRedshift; +}(); +/** + * Redshift Creation statements + * @member {String} creation-statements + */ + + +GatewayUpdateProducerRedshift.prototype['creation-statements'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateProducerRedshift.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerRedshift.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerRedshift.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerRedshift.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerRedshift.prototype['password-length'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key + */ + +GatewayUpdateProducerRedshift.prototype['producer-encryption-key'] = undefined; +/** + * Redshift DB Name + * @member {String} redshift-db-name + */ + +GatewayUpdateProducerRedshift.prototype['redshift-db-name'] = undefined; +/** + * Redshift Host + * @member {String} redshift-host + * @default '127.0.0.1' + */ + +GatewayUpdateProducerRedshift.prototype['redshift-host'] = '127.0.0.1'; +/** + * Redshift Password + * @member {String} redshift-password + */ + +GatewayUpdateProducerRedshift.prototype['redshift-password'] = undefined; +/** + * Redshift Port + * @member {String} redshift-port + * @default '5439' + */ + +GatewayUpdateProducerRedshift.prototype['redshift-port'] = '5439'; +/** + * Redshift Username + * @member {String} redshift-username + */ + +GatewayUpdateProducerRedshift.prototype['redshift-username'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +GatewayUpdateProducerRedshift.prototype['secure-access-enable'] = undefined; +/** + * Target DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts) + * @member {Array.} secure-access-host + */ + +GatewayUpdateProducerRedshift.prototype['secure-access-host'] = undefined; +/** + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false + */ + +GatewayUpdateProducerRedshift.prototype['ssl'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerRedshift.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerRedshift.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerRedshift.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerRedshift.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '60m' + */ + +GatewayUpdateProducerRedshift.prototype['user-ttl'] = '60m'; +var _default = GatewayUpdateProducerRedshift; +exports["default"] = _default; + +/***/ }), + +/***/ 50171: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerRedshiftOutput model module. + * @module model/GatewayUpdateProducerRedshiftOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerRedshiftOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerRedshiftOutput. + * @alias module:model/GatewayUpdateProducerRedshiftOutput + */ + function GatewayUpdateProducerRedshiftOutput() { + _classCallCheck(this, GatewayUpdateProducerRedshiftOutput); + + GatewayUpdateProducerRedshiftOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerRedshiftOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerRedshiftOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerRedshiftOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerRedshiftOutput} The populated GatewayUpdateProducerRedshiftOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerRedshiftOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerRedshiftOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerRedshiftOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerRedshiftOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 92043: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerSnowflake model module. + * @module model/GatewayUpdateProducerSnowflake + * @version 3.6.3 + */ +var GatewayUpdateProducerSnowflake = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerSnowflake. + * GatewayUpdateProducerSnowflakeCmd is a command that updates a Snowflake producer [Deprecated: Use dynamic-secret-update-snowflake command] + * @alias module:model/GatewayUpdateProducerSnowflake + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerSnowflake(name) { + _classCallCheck(this, GatewayUpdateProducerSnowflake); + + GatewayUpdateProducerSnowflake.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerSnowflake, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerSnowflake from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerSnowflake} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerSnowflake} The populated GatewayUpdateProducerSnowflake instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerSnowflake(); + + if (data.hasOwnProperty('account')) { + obj['account'] = _ApiClient["default"].convertToType(data['account'], 'String'); + } + + if (data.hasOwnProperty('account-password')) { + obj['account-password'] = _ApiClient["default"].convertToType(data['account-password'], 'String'); + } + + if (data.hasOwnProperty('account-username')) { + obj['account-username'] = _ApiClient["default"].convertToType(data['account-username'], 'String'); + } + + if (data.hasOwnProperty('db-name')) { + obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('private-key')) { + obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); + } + + if (data.hasOwnProperty('private-key-passphrase')) { + obj['private-key-passphrase'] = _ApiClient["default"].convertToType(data['private-key-passphrase'], 'String'); + } + + if (data.hasOwnProperty('role')) { + obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('warehouse')) { + obj['warehouse'] = _ApiClient["default"].convertToType(data['warehouse'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerSnowflake; +}(); +/** + * Account name + * @member {String} account + */ + + +GatewayUpdateProducerSnowflake.prototype['account'] = undefined; +/** + * Database Password + * @member {String} account-password + */ + +GatewayUpdateProducerSnowflake.prototype['account-password'] = undefined; +/** + * Database Username + * @member {String} account-username + */ + +GatewayUpdateProducerSnowflake.prototype['account-username'] = undefined; +/** + * Database name + * @member {String} db-name + */ + +GatewayUpdateProducerSnowflake.prototype['db-name'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateProducerSnowflake.prototype['delete_protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerSnowflake.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerSnowflake.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerSnowflake.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +GatewayUpdateProducerSnowflake.prototype['password-length'] = undefined; +/** + * RSA Private key (base64 encoded) + * @member {String} private-key + */ + +GatewayUpdateProducerSnowflake.prototype['private-key'] = undefined; +/** + * The Private key passphrase + * @member {String} private-key-passphrase + */ + +GatewayUpdateProducerSnowflake.prototype['private-key-passphrase'] = undefined; +/** + * User role + * @member {String} role + */ + +GatewayUpdateProducerSnowflake.prototype['role'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerSnowflake.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerSnowflake.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerSnowflake.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerSnowflake.prototype['uid-token'] = undefined; +/** + * User TTL + * @member {String} user-ttl + * @default '24h' + */ + +GatewayUpdateProducerSnowflake.prototype['user-ttl'] = '24h'; +/** + * Warehouse name + * @member {String} warehouse + */ + +GatewayUpdateProducerSnowflake.prototype['warehouse'] = undefined; +var _default = GatewayUpdateProducerSnowflake; +exports["default"] = _default; + +/***/ }), + +/***/ 78122: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerSnowflakeOutput model module. + * @module model/GatewayUpdateProducerSnowflakeOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerSnowflakeOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerSnowflakeOutput. + * @alias module:model/GatewayUpdateProducerSnowflakeOutput + */ + function GatewayUpdateProducerSnowflakeOutput() { + _classCallCheck(this, GatewayUpdateProducerSnowflakeOutput); + + GatewayUpdateProducerSnowflakeOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerSnowflakeOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerSnowflakeOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerSnowflakeOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerSnowflakeOutput} The populated GatewayUpdateProducerSnowflakeOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerSnowflakeOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerSnowflakeOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerSnowflakeOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerSnowflakeOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 29402: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerVenafi model module. + * @module model/GatewayUpdateProducerVenafi + * @version 3.6.3 + */ +var GatewayUpdateProducerVenafi = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerVenafi. + * gatewayUpdateProducerVenafi is a command that updates a Venafi dynamic secret producer to dynamically update certificates generated by Venafi or have Akeyless generated certificates using PKI be monitored by Venafi [Deprecated: Use dynamic-secret-update-venafi command] + * @alias module:model/GatewayUpdateProducerVenafi + * @param name {String} Dynamic secret name + */ + function GatewayUpdateProducerVenafi(name) { + _classCallCheck(this, GatewayUpdateProducerVenafi); + + GatewayUpdateProducerVenafi.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerVenafi, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GatewayUpdateProducerVenafi from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerVenafi} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerVenafi} The populated GatewayUpdateProducerVenafi instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerVenafi(); + + if (data.hasOwnProperty('admin-rotation-interval-days')) { + obj['admin-rotation-interval-days'] = _ApiClient["default"].convertToType(data['admin-rotation-interval-days'], 'Number'); + } + + if (data.hasOwnProperty('allow-subdomains')) { + obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); + } + + if (data.hasOwnProperty('allowed-domains')) { + obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], ['String']); + } + + if (data.hasOwnProperty('auto-generated-folder')) { + obj['auto-generated-folder'] = _ApiClient["default"].convertToType(data['auto-generated-folder'], 'String'); + } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + + if (data.hasOwnProperty('enable-admin-rotation')) { + obj['enable-admin-rotation'] = _ApiClient["default"].convertToType(data['enable-admin-rotation'], 'Boolean'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('producer-encryption-key-name')) { + obj['producer-encryption-key-name'] = _ApiClient["default"].convertToType(data['producer-encryption-key-name'], 'String'); + } + + if (data.hasOwnProperty('root-first-in-chain')) { + obj['root-first-in-chain'] = _ApiClient["default"].convertToType(data['root-first-in-chain'], 'Boolean'); + } + + if (data.hasOwnProperty('sign-using-akeyless-pki')) { + obj['sign-using-akeyless-pki'] = _ApiClient["default"].convertToType(data['sign-using-akeyless-pki'], 'Boolean'); + } + + if (data.hasOwnProperty('signer-key-name')) { + obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); + } + + if (data.hasOwnProperty('store-private-key')) { + obj['store-private-key'] = _ApiClient["default"].convertToType(data['store-private-key'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-ttl')) { + obj['user-ttl'] = _ApiClient["default"].convertToType(data['user-ttl'], 'String'); + } + + if (data.hasOwnProperty('venafi-access-token')) { + obj['venafi-access-token'] = _ApiClient["default"].convertToType(data['venafi-access-token'], 'String'); + } + + if (data.hasOwnProperty('venafi-api-key')) { + obj['venafi-api-key'] = _ApiClient["default"].convertToType(data['venafi-api-key'], 'String'); + } + + if (data.hasOwnProperty('venafi-baseurl')) { + obj['venafi-baseurl'] = _ApiClient["default"].convertToType(data['venafi-baseurl'], 'String'); + } + + if (data.hasOwnProperty('venafi-client-id')) { + obj['venafi-client-id'] = _ApiClient["default"].convertToType(data['venafi-client-id'], 'String'); + } + + if (data.hasOwnProperty('venafi-refresh-token')) { + obj['venafi-refresh-token'] = _ApiClient["default"].convertToType(data['venafi-refresh-token'], 'String'); + } + + if (data.hasOwnProperty('venafi-use-tpp')) { + obj['venafi-use-tpp'] = _ApiClient["default"].convertToType(data['venafi-use-tpp'], 'Boolean'); + } + + if (data.hasOwnProperty('venafi-zone')) { + obj['venafi-zone'] = _ApiClient["default"].convertToType(data['venafi-zone'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerVenafi; +}(); +/** + * Admin credentials rotation interval (days) + * @member {Number} admin-rotation-interval-days + * @default 0 + */ + + +GatewayUpdateProducerVenafi.prototype['admin-rotation-interval-days'] = 0; +/** + * Allow subdomains + * @member {Boolean} allow-subdomains + */ + +GatewayUpdateProducerVenafi.prototype['allow-subdomains'] = undefined; +/** + * Allowed domains + * @member {Array.} allowed-domains + */ + +GatewayUpdateProducerVenafi.prototype['allowed-domains'] = undefined; +/** + * Auto generated folder + * @member {String} auto-generated-folder + */ + +GatewayUpdateProducerVenafi.prototype['auto-generated-folder'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +GatewayUpdateProducerVenafi.prototype['delete_protection'] = undefined; +/** + * Automatic admin credentials rotation + * @member {Boolean} enable-admin-rotation + * @default false + */ + +GatewayUpdateProducerVenafi.prototype['enable-admin-rotation'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateProducerVenafi.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateProducerVenafi.prototype['name'] = undefined; +/** + * Dynamic secret name + * @member {String} new-name + */ + +GatewayUpdateProducerVenafi.prototype['new-name'] = undefined; +/** + * Dynamic producer encryption key + * @member {String} producer-encryption-key-name + */ + +GatewayUpdateProducerVenafi.prototype['producer-encryption-key-name'] = undefined; +/** + * Root first in chain + * @member {Boolean} root-first-in-chain + */ + +GatewayUpdateProducerVenafi.prototype['root-first-in-chain'] = undefined; +/** + * Use Akeyless PKI issuer or Venafi issuer + * @member {Boolean} sign-using-akeyless-pki + */ + +GatewayUpdateProducerVenafi.prototype['sign-using-akeyless-pki'] = undefined; +/** + * Signer key name + * @member {String} signer-key-name + */ + +GatewayUpdateProducerVenafi.prototype['signer-key-name'] = undefined; +/** + * Store private key + * @member {Boolean} store-private-key + */ + +GatewayUpdateProducerVenafi.prototype['store-private-key'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +GatewayUpdateProducerVenafi.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +GatewayUpdateProducerVenafi.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateProducerVenafi.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateProducerVenafi.prototype['uid-token'] = undefined; +/** + * User TTL in time.Duration format (2160h / 129600m / etc...). When using sign-using-akeyless-pki certificates created will have this validity period, otherwise the user-ttl is taken from the Validity Period field of the Zone's' Issuing Template. When using cert-manager it is advised to have a TTL of above 60 days (1440h). For more information - https://cert-manager.io/docs/usage/certificate/ + * @member {String} user-ttl + * @default '2160h' + */ + +GatewayUpdateProducerVenafi.prototype['user-ttl'] = '2160h'; +/** + * Venafi Access Token to use to access the TPP environment (Relevant when using TPP) + * @member {String} venafi-access-token + */ + +GatewayUpdateProducerVenafi.prototype['venafi-access-token'] = undefined; +/** + * Venafi API key + * @member {String} venafi-api-key + */ + +GatewayUpdateProducerVenafi.prototype['venafi-api-key'] = undefined; +/** + * Venafi Baseurl + * @member {String} venafi-baseurl + */ + +GatewayUpdateProducerVenafi.prototype['venafi-baseurl'] = undefined; +/** + * Venafi Client ID that was used when the access token was generated + * @member {String} venafi-client-id + * @default 'akeyless' + */ + +GatewayUpdateProducerVenafi.prototype['venafi-client-id'] = 'akeyless'; +/** + * Venafi Refresh Token to use when the Access Token is expired (Relevant when using TPP) + * @member {String} venafi-refresh-token + */ + +GatewayUpdateProducerVenafi.prototype['venafi-refresh-token'] = undefined; +/** + * Venafi using TPP + * @member {Boolean} venafi-use-tpp + */ + +GatewayUpdateProducerVenafi.prototype['venafi-use-tpp'] = undefined; +/** + * Venafi Zone + * @member {String} venafi-zone + */ + +GatewayUpdateProducerVenafi.prototype['venafi-zone'] = undefined; +var _default = GatewayUpdateProducerVenafi; +exports["default"] = _default; + +/***/ }), + +/***/ 83983: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _DSProducerDetails = _interopRequireDefault(__nccwpck_require__(50601)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateProducerVenafiOutput model module. + * @module model/GatewayUpdateProducerVenafiOutput + * @version 3.6.3 + */ +var GatewayUpdateProducerVenafiOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateProducerVenafiOutput. + * @alias module:model/GatewayUpdateProducerVenafiOutput + */ + function GatewayUpdateProducerVenafiOutput() { + _classCallCheck(this, GatewayUpdateProducerVenafiOutput); + + GatewayUpdateProducerVenafiOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateProducerVenafiOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateProducerVenafiOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateProducerVenafiOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateProducerVenafiOutput} The populated GatewayUpdateProducerVenafiOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateProducerVenafiOutput(); + + if (data.hasOwnProperty('producer_details')) { + obj['producer_details'] = _DSProducerDetails["default"].constructFromObject(data['producer_details']); + } + } + + return obj; + } + }]); + + return GatewayUpdateProducerVenafiOutput; +}(); +/** + * @member {module:model/DSProducerDetails} producer_details + */ + + +GatewayUpdateProducerVenafiOutput.prototype['producer_details'] = undefined; +var _default = GatewayUpdateProducerVenafiOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 89886: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateTlsCert model module. + * @module model/GatewayUpdateTlsCert + * @version 3.6.3 + */ +var GatewayUpdateTlsCert = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateTlsCert. + * gatewayUpdateTlsCert is a command that updates Gateway TLS certificate + * @alias module:model/GatewayUpdateTlsCert + */ + function GatewayUpdateTlsCert() { + _classCallCheck(this, GatewayUpdateTlsCert); + + GatewayUpdateTlsCert.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateTlsCert, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateTlsCert from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateTlsCert} obj Optional instance to populate. + * @return {module:model/GatewayUpdateTlsCert} The populated GatewayUpdateTlsCert instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateTlsCert(); + + if (data.hasOwnProperty('cert-data')) { + obj['cert-data'] = _ApiClient["default"].convertToType(data['cert-data'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-data')) { + obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateTlsCert; +}(); +/** + * TLS Certificate (base64 encoded) + * @member {String} cert-data + */ + + +GatewayUpdateTlsCert.prototype['cert-data'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateTlsCert.prototype['json'] = false; +/** + * TLS Private Key (base64 encoded) + * @member {String} key-data + */ + +GatewayUpdateTlsCert.prototype['key-data'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateTlsCert.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateTlsCert.prototype['uid-token'] = undefined; +var _default = GatewayUpdateTlsCert; +exports["default"] = _default; + +/***/ }), + +/***/ 49259: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateTlsCertOutput model module. + * @module model/GatewayUpdateTlsCertOutput + * @version 3.6.3 + */ +var GatewayUpdateTlsCertOutput = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateTlsCertOutput. + * @alias module:model/GatewayUpdateTlsCertOutput + */ + function GatewayUpdateTlsCertOutput() { + _classCallCheck(this, GatewayUpdateTlsCertOutput); + + GatewayUpdateTlsCertOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateTlsCertOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewayUpdateTlsCertOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateTlsCertOutput} obj Optional instance to populate. + * @return {module:model/GatewayUpdateTlsCertOutput} The populated GatewayUpdateTlsCertOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateTlsCertOutput(); + + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); + } + } + + return obj; + } + }]); + + return GatewayUpdateTlsCertOutput; +}(); +/** + * @member {Boolean} updated + */ + + +GatewayUpdateTlsCertOutput.prototype['updated'] = undefined; +var _default = GatewayUpdateTlsCertOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 98074: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewayUpdateTmpUsers model module. + * @module model/GatewayUpdateTmpUsers + * @version 3.6.3 + */ +var GatewayUpdateTmpUsers = /*#__PURE__*/function () { + /** + * Constructs a new GatewayUpdateTmpUsers. + * gatewayUpdateTmpUsers is a command that returns gateway configuration [Deprecated: Use dynamic-secret-tmp-creds-update command] + * @alias module:model/GatewayUpdateTmpUsers + * @param host {String} Host + * @param name {String} Dynamic secret name + * @param newTtlMin {Number} New TTL in Minutes + * @param tmpCredsId {String} Tmp Creds ID + */ + function GatewayUpdateTmpUsers(host, name, newTtlMin, tmpCredsId) { + _classCallCheck(this, GatewayUpdateTmpUsers); + + GatewayUpdateTmpUsers.initialize(this, host, name, newTtlMin, tmpCredsId); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewayUpdateTmpUsers, null, [{ + key: "initialize", + value: function initialize(obj, host, name, newTtlMin, tmpCredsId) { + obj['host'] = host; + obj['name'] = name; + obj['new-ttl-min'] = newTtlMin; + obj['tmp-creds-id'] = tmpCredsId; + } + /** + * Constructs a GatewayUpdateTmpUsers from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewayUpdateTmpUsers} obj Optional instance to populate. + * @return {module:model/GatewayUpdateTmpUsers} The populated GatewayUpdateTmpUsers instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewayUpdateTmpUsers(); + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-ttl-min')) { + obj['new-ttl-min'] = _ApiClient["default"].convertToType(data['new-ttl-min'], 'Number'); + } + + if (data.hasOwnProperty('tmp-creds-id')) { + obj['tmp-creds-id'] = _ApiClient["default"].convertToType(data['tmp-creds-id'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GatewayUpdateTmpUsers; +}(); +/** + * Host + * @member {String} host + */ + + +GatewayUpdateTmpUsers.prototype['host'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GatewayUpdateTmpUsers.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GatewayUpdateTmpUsers.prototype['name'] = undefined; +/** + * New TTL in Minutes + * @member {Number} new-ttl-min + */ + +GatewayUpdateTmpUsers.prototype['new-ttl-min'] = undefined; +/** + * Tmp Creds ID + * @member {String} tmp-creds-id + */ + +GatewayUpdateTmpUsers.prototype['tmp-creds-id'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GatewayUpdateTmpUsers.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GatewayUpdateTmpUsers.prototype['uid-token'] = undefined; +var _default = GatewayUpdateTmpUsers; +exports["default"] = _default; + +/***/ }), + +/***/ 34840: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _GwClusterIdentity = _interopRequireDefault(__nccwpck_require__(73728)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GatewaysListResponse model module. + * @module model/GatewaysListResponse + * @version 3.6.3 + */ +var GatewaysListResponse = /*#__PURE__*/function () { + /** + * Constructs a new GatewaysListResponse. + * GatewaysListResponse Gateway cluster identity list + * @alias module:model/GatewaysListResponse + */ + function GatewaysListResponse() { + _classCallCheck(this, GatewaysListResponse); + + GatewaysListResponse.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GatewaysListResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GatewaysListResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GatewaysListResponse} obj Optional instance to populate. + * @return {module:model/GatewaysListResponse} The populated GatewaysListResponse instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GatewaysListResponse(); + + if (data.hasOwnProperty('clusters')) { + obj['clusters'] = _ApiClient["default"].convertToType(data['clusters'], [_GwClusterIdentity["default"]]); + } + } + + return obj; + } + }]); + + return GatewaysListResponse; +}(); +/** + * @member {Array.} clusters + */ + + +GatewaysListResponse.prototype['clusters'] = undefined; +var _default = GatewaysListResponse; +exports["default"] = _default; + +/***/ }), + +/***/ 83083: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GcpTargetDetails model module. + * @module model/GcpTargetDetails + * @version 3.6.3 + */ +var GcpTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new GcpTargetDetails. + * @alias module:model/GcpTargetDetails + */ + function GcpTargetDetails() { + _classCallCheck(this, GcpTargetDetails); + + GcpTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GcpTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GcpTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GcpTargetDetails} obj Optional instance to populate. + * @return {module:model/GcpTargetDetails} The populated GcpTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GcpTargetDetails(); + + if (data.hasOwnProperty('gcp_service_account_email')) { + obj['gcp_service_account_email'] = _ApiClient["default"].convertToType(data['gcp_service_account_email'], 'String'); + } + + if (data.hasOwnProperty('gcp_service_account_key')) { + obj['gcp_service_account_key'] = _ApiClient["default"].convertToType(data['gcp_service_account_key'], 'String'); + } + + if (data.hasOwnProperty('gcp_service_account_key_base64')) { + obj['gcp_service_account_key_base64'] = _ApiClient["default"].convertToType(data['gcp_service_account_key_base64'], 'String'); + } + + if (data.hasOwnProperty('gcp_service_account_key_id')) { + obj['gcp_service_account_key_id'] = _ApiClient["default"].convertToType(data['gcp_service_account_key_id'], 'String'); + } + + if (data.hasOwnProperty('use_gw_cloud_identity')) { + obj['use_gw_cloud_identity'] = _ApiClient["default"].convertToType(data['use_gw_cloud_identity'], 'Boolean'); + } + } + + return obj; + } + }]); + + return GcpTargetDetails; +}(); +/** + * @member {String} gcp_service_account_email + */ + + +GcpTargetDetails.prototype['gcp_service_account_email'] = undefined; +/** + * @member {String} gcp_service_account_key + */ + +GcpTargetDetails.prototype['gcp_service_account_key'] = undefined; +/** + * @member {String} gcp_service_account_key_base64 + */ + +GcpTargetDetails.prototype['gcp_service_account_key_base64'] = undefined; +/** + * @member {String} gcp_service_account_key_id + */ + +GcpTargetDetails.prototype['gcp_service_account_key_id'] = undefined; +/** + * @member {Boolean} use_gw_cloud_identity + */ + +GcpTargetDetails.prototype['use_gw_cloud_identity'] = undefined; +var _default = GcpTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 26628: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GenCustomerFragment model module. + * @module model/GenCustomerFragment + * @version 3.6.3 + */ +var GenCustomerFragment = /*#__PURE__*/function () { + /** + * Constructs a new GenCustomerFragment. + * @alias module:model/GenCustomerFragment + */ + function GenCustomerFragment() { + _classCallCheck(this, GenCustomerFragment); + + GenCustomerFragment.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GenCustomerFragment, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GenCustomerFragment from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GenCustomerFragment} obj Optional instance to populate. + * @return {module:model/GenCustomerFragment} The populated GenCustomerFragment instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GenCustomerFragment(); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('hsm-key-label')) { + obj['hsm-key-label'] = _ApiClient["default"].convertToType(data['hsm-key-label'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + } + + return obj; + } + }]); + + return GenCustomerFragment; +}(); +/** + * Description of the object + * @member {String} description + */ + + +GenCustomerFragment.prototype['description'] = undefined; +/** + * The label of the hsm key to use for customer fragment operations (relevant for hsm_wrapped/hsm_protected customer fragments) + * @member {String} hsm-key-label + */ + +GenCustomerFragment.prototype['hsm-key-label'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GenCustomerFragment.prototype['json'] = false; +/** + * Deprecated - use description + * @member {String} metadata + */ + +GenCustomerFragment.prototype['metadata'] = undefined; +/** + * Customer fragment name + * @member {String} name + */ + +GenCustomerFragment.prototype['name'] = undefined; +/** + * Customer fragment type [standard/hsm_wrapped/hsm_secured] + * @member {String} type + * @default 'standard' + */ + +GenCustomerFragment.prototype['type'] = 'standard'; +var _default = GenCustomerFragment; +exports["default"] = _default; + +/***/ }), + +/***/ 94565: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GeneralConfigPart model module. + * @module model/GeneralConfigPart + * @version 3.6.3 + */ +var GeneralConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new GeneralConfigPart. + * @alias module:model/GeneralConfigPart + */ + function GeneralConfigPart() { + _classCallCheck(this, GeneralConfigPart); + + GeneralConfigPart.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GeneralConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GeneralConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GeneralConfigPart} obj Optional instance to populate. + * @return {module:model/GeneralConfigPart} The populated GeneralConfigPart instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GeneralConfigPart(); + + if (data.hasOwnProperty('akeyless_url')) { + obj['akeyless_url'] = _ApiClient["default"].convertToType(data['akeyless_url'], 'String'); + } + + if (data.hasOwnProperty('api_token_ttl')) { + obj['api_token_ttl'] = _ApiClient["default"].convertToType(data['api_token_ttl'], 'String'); + } + + if (data.hasOwnProperty('display_name')) { + obj['display_name'] = _ApiClient["default"].convertToType(data['display_name'], 'String'); + } + + if (data.hasOwnProperty('enable_sni_proxy')) { + obj['enable_sni_proxy'] = _ApiClient["default"].convertToType(data['enable_sni_proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('enable_tls')) { + obj['enable_tls'] = _ApiClient["default"].convertToType(data['enable_tls'], 'Boolean'); + } + + if (data.hasOwnProperty('enable_tls_configure')) { + obj['enable_tls_configure'] = _ApiClient["default"].convertToType(data['enable_tls_configure'], 'Boolean'); + } + + if (data.hasOwnProperty('enable_tls_curl')) { + obj['enable_tls_curl'] = _ApiClient["default"].convertToType(data['enable_tls_curl'], 'Boolean'); + } + + if (data.hasOwnProperty('enable_tls_hvp')) { + obj['enable_tls_hvp'] = _ApiClient["default"].convertToType(data['enable_tls_hvp'], 'Boolean'); + } + + if (data.hasOwnProperty('gw_cluster_url')) { + obj['gw_cluster_url'] = _ApiClient["default"].convertToType(data['gw_cluster_url'], 'String'); + } + + if (data.hasOwnProperty('notify_on_status_change')) { + obj['notify_on_status_change'] = _ApiClient["default"].convertToType(data['notify_on_status_change'], 'Boolean'); + } + + if (data.hasOwnProperty('tcp_port')) { + obj['tcp_port'] = _ApiClient["default"].convertToType(data['tcp_port'], 'String'); + } + + if (data.hasOwnProperty('tls_cert')) { + obj['tls_cert'] = _ApiClient["default"].convertToType(data['tls_cert'], 'String'); + } + + if (data.hasOwnProperty('tls_key')) { + obj['tls_key'] = _ApiClient["default"].convertToType(data['tls_key'], 'String'); + } + } + + return obj; + } + }]); + + return GeneralConfigPart; +}(); +/** + * AkeylessUrl is here for BC only. Gator will still return it if it exists in the configuration, but new clients (>=2.34.0) will ignore it and override it with what exists in their local file. It will no longer be sent to Gator for update, so new clusters will only have the default value saved in the DB. + * @member {String} akeyless_url + */ + + +GeneralConfigPart.prototype['akeyless_url'] = undefined; +/** + * @member {String} api_token_ttl + */ + +GeneralConfigPart.prototype['api_token_ttl'] = undefined; +/** + * @member {String} display_name + */ + +GeneralConfigPart.prototype['display_name'] = undefined; +/** + * @member {Boolean} enable_sni_proxy + */ + +GeneralConfigPart.prototype['enable_sni_proxy'] = undefined; +/** + * @member {Boolean} enable_tls + */ + +GeneralConfigPart.prototype['enable_tls'] = undefined; +/** + * @member {Boolean} enable_tls_configure + */ + +GeneralConfigPart.prototype['enable_tls_configure'] = undefined; +/** + * @member {Boolean} enable_tls_curl + */ + +GeneralConfigPart.prototype['enable_tls_curl'] = undefined; +/** + * @member {Boolean} enable_tls_hvp + */ + +GeneralConfigPart.prototype['enable_tls_hvp'] = undefined; +/** + * @member {String} gw_cluster_url + */ + +GeneralConfigPart.prototype['gw_cluster_url'] = undefined; +/** + * @member {Boolean} notify_on_status_change + */ + +GeneralConfigPart.prototype['notify_on_status_change'] = undefined; +/** + * @member {String} tcp_port + */ + +GeneralConfigPart.prototype['tcp_port'] = undefined; +/** + * @member {String} tls_cert + */ + +GeneralConfigPart.prototype['tls_cert'] = undefined; +/** + * @member {String} tls_key + */ + +GeneralConfigPart.prototype['tls_key'] = undefined; +var _default = GeneralConfigPart; +exports["default"] = _default; + +/***/ }), + +/***/ 87627: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GenerateCsr model module. + * @module model/GenerateCsr + * @version 3.6.3 + */ +var GenerateCsr = /*#__PURE__*/function () { + /** + * Constructs a new GenerateCsr. + * @alias module:model/GenerateCsr + * @param commonName {String} The common name to be included in the CSR certificate + * @param keyType {String} The type of the key to generate (classic-key/dfc) + * @param name {String} The key name + */ + function GenerateCsr(commonName, keyType, name) { + _classCallCheck(this, GenerateCsr); + + GenerateCsr.initialize(this, commonName, keyType, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GenerateCsr, null, [{ + key: "initialize", + value: function initialize(obj, commonName, keyType, name) { + obj['common-name'] = commonName; + obj['key-type'] = keyType; + obj['name'] = name; + } + /** + * Constructs a GenerateCsr from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GenerateCsr} obj Optional instance to populate. + * @return {module:model/GenerateCsr} The populated GenerateCsr instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GenerateCsr(); + + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); + } + + if (data.hasOwnProperty('alt-names')) { + obj['alt-names'] = _ApiClient["default"].convertToType(data['alt-names'], 'String'); + } + + if (data.hasOwnProperty('certificate-type')) { + obj['certificate-type'] = _ApiClient["default"].convertToType(data['certificate-type'], 'String'); + } + + if (data.hasOwnProperty('city')) { + obj['city'] = _ApiClient["default"].convertToType(data['city'], 'String'); + } + + if (data.hasOwnProperty('common-name')) { + obj['common-name'] = _ApiClient["default"].convertToType(data['common-name'], 'String'); + } + + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); + } + + if (data.hasOwnProperty('critical')) { + obj['critical'] = _ApiClient["default"].convertToType(data['critical'], 'Boolean'); + } + + if (data.hasOwnProperty('dep')) { + obj['dep'] = _ApiClient["default"].convertToType(data['dep'], 'String'); + } + + if (data.hasOwnProperty('email-addresses')) { + obj['email-addresses'] = _ApiClient["default"].convertToType(data['email-addresses'], 'String'); + } + + if (data.hasOwnProperty('generate-key')) { + obj['generate-key'] = _ApiClient["default"].convertToType(data['generate-key'], 'Boolean'); + } + + if (data.hasOwnProperty('ip-addresses')) { + obj['ip-addresses'] = _ApiClient["default"].convertToType(data['ip-addresses'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-type')) { + obj['key-type'] = _ApiClient["default"].convertToType(data['key-type'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('org')) { + obj['org'] = _ApiClient["default"].convertToType(data['org'], 'String'); + } + + if (data.hasOwnProperty('split-level')) { + obj['split-level'] = _ApiClient["default"].convertToType(data['split-level'], 'Number'); + } + + if (data.hasOwnProperty('state')) { + obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('uri-sans')) { + obj['uri-sans'] = _ApiClient["default"].convertToType(data['uri-sans'], 'String'); + } + } + + return obj; + } + }]); + + return GenerateCsr; +}(); +/** + * @member {String} alg + */ + + +GenerateCsr.prototype['alg'] = undefined; +/** + * A comma-separated list of dns alternative names + * @member {String} alt-names + */ + +GenerateCsr.prototype['alt-names'] = undefined; +/** + * The certificate type to be included in the CSR certificate (ssl-client/ssl-server/certificate-signing) + * @member {String} certificate-type + */ + +GenerateCsr.prototype['certificate-type'] = undefined; +/** + * The city to be included in the CSR certificate + * @member {String} city + */ + +GenerateCsr.prototype['city'] = undefined; +/** + * The common name to be included in the CSR certificate + * @member {String} common-name + */ + +GenerateCsr.prototype['common-name'] = undefined; +/** + * The country to be included in the CSR certificate + * @member {String} country + */ + +GenerateCsr.prototype['country'] = undefined; +/** + * Add critical to the key usage extension (will be false if not added) + * @member {Boolean} critical + */ + +GenerateCsr.prototype['critical'] = undefined; +/** + * The department to be included in the CSR certificate + * @member {String} dep + */ + +GenerateCsr.prototype['dep'] = undefined; +/** + * A comma-separated list of email addresses alternative names + * @member {String} email-addresses + */ + +GenerateCsr.prototype['email-addresses'] = undefined; +/** + * Generate a new classic key for the csr + * @member {Boolean} generate-key + */ + +GenerateCsr.prototype['generate-key'] = undefined; +/** + * A comma-separated list of ip addresses alternative names + * @member {String} ip-addresses + */ + +GenerateCsr.prototype['ip-addresses'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GenerateCsr.prototype['json'] = false; +/** + * The type of the key to generate (classic-key/dfc) + * @member {String} key-type + * @default 'classic-key' + */ + +GenerateCsr.prototype['key-type'] = 'classic-key'; +/** + * The key name + * @member {String} name + */ + +GenerateCsr.prototype['name'] = undefined; +/** + * The organization to be included in the CSR certificate + * @member {String} org + */ + +GenerateCsr.prototype['org'] = undefined; +/** + * The number of fragments that the item will be split into (not includes customer fragment) + * @member {Number} split-level + * @default 3 + */ + +GenerateCsr.prototype['split-level'] = 3; +/** + * The state to be included in the CSR certificate + * @member {String} state + */ + +GenerateCsr.prototype['state'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GenerateCsr.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GenerateCsr.prototype['uid-token'] = undefined; +/** + * A comma-separated list of uri alternative names + * @member {String} uri-sans + */ + +GenerateCsr.prototype['uri-sans'] = undefined; +var _default = GenerateCsr; +exports["default"] = _default; + +/***/ }), + +/***/ 85130: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GenerateCsrOutput model module. + * @module model/GenerateCsrOutput + * @version 3.6.3 + */ +var GenerateCsrOutput = /*#__PURE__*/function () { + /** + * Constructs a new GenerateCsrOutput. + * @alias module:model/GenerateCsrOutput + */ + function GenerateCsrOutput() { + _classCallCheck(this, GenerateCsrOutput); + + GenerateCsrOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GenerateCsrOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GenerateCsrOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GenerateCsrOutput} obj Optional instance to populate. + * @return {module:model/GenerateCsrOutput} The populated GenerateCsrOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GenerateCsrOutput(); + + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + } + + return obj; + } + }]); + + return GenerateCsrOutput; +}(); +/** + * @member {String} data + */ + + +GenerateCsrOutput.prototype['data'] = undefined; +var _default = GenerateCsrOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 46150: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GetAccountSettings model module. + * @module model/GetAccountSettings + * @version 3.6.3 + */ +var GetAccountSettings = /*#__PURE__*/function () { + /** + * Constructs a new GetAccountSettings. + * @alias module:model/GetAccountSettings + */ + function GetAccountSettings() { + _classCallCheck(this, GetAccountSettings); + + GetAccountSettings.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GetAccountSettings, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GetAccountSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetAccountSettings} obj Optional instance to populate. + * @return {module:model/GetAccountSettings} The populated GetAccountSettings instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetAccountSettings(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GetAccountSettings; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GetAccountSettings.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GetAccountSettings.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GetAccountSettings.prototype['uid-token'] = undefined; +var _default = GetAccountSettings; +exports["default"] = _default; + +/***/ }), + +/***/ 61968: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _AccountGeneralSettings = _interopRequireDefault(__nccwpck_require__(85700)); + +var _AccountObjectVersionSettingsOutput = _interopRequireDefault(__nccwpck_require__(57060)); + +var _CustomerFullAddress = _interopRequireDefault(__nccwpck_require__(37009)); + +var _SmInfo = _interopRequireDefault(__nccwpck_require__(69132)); + +var _SraInfo = _interopRequireDefault(__nccwpck_require__(85658)); + +var _SystemAccessCredsSettings = _interopRequireDefault(__nccwpck_require__(36395)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GetAccountSettingsCommandOutput model module. + * @module model/GetAccountSettingsCommandOutput + * @version 3.6.3 + */ +var GetAccountSettingsCommandOutput = /*#__PURE__*/function () { + /** + * Constructs a new GetAccountSettingsCommandOutput. + * @alias module:model/GetAccountSettingsCommandOutput + */ + function GetAccountSettingsCommandOutput() { + _classCallCheck(this, GetAccountSettingsCommandOutput); + + GetAccountSettingsCommandOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GetAccountSettingsCommandOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GetAccountSettingsCommandOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetAccountSettingsCommandOutput} obj Optional instance to populate. + * @return {module:model/GetAccountSettingsCommandOutput} The populated GetAccountSettingsCommandOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetAccountSettingsCommandOutput(); + + if (data.hasOwnProperty('account_id')) { + obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); + } + + if (data.hasOwnProperty('address')) { + obj['address'] = _CustomerFullAddress["default"].constructFromObject(data['address']); + } + + if (data.hasOwnProperty('company_name')) { + obj['company_name'] = _ApiClient["default"].convertToType(data['company_name'], 'String'); + } + + if (data.hasOwnProperty('email')) { + obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); + } + + if (data.hasOwnProperty('general_settings')) { + obj['general_settings'] = _AccountGeneralSettings["default"].constructFromObject(data['general_settings']); + } + + if (data.hasOwnProperty('object_version_settings')) { + obj['object_version_settings'] = _AccountObjectVersionSettingsOutput["default"].constructFromObject(data['object_version_settings']); + } + + if (data.hasOwnProperty('phone')) { + obj['phone'] = _ApiClient["default"].convertToType(data['phone'], 'String'); + } + + if (data.hasOwnProperty('secret_management')) { + obj['secret_management'] = _SmInfo["default"].constructFromObject(data['secret_management']); + } + + if (data.hasOwnProperty('secure_remote_access')) { + obj['secure_remote_access'] = _SraInfo["default"].constructFromObject(data['secure_remote_access']); + } + + if (data.hasOwnProperty('system_access_creds_settings')) { + obj['system_access_creds_settings'] = _SystemAccessCredsSettings["default"].constructFromObject(data['system_access_creds_settings']); + } + } + + return obj; + } + }]); + + return GetAccountSettingsCommandOutput; +}(); +/** + * @member {String} account_id + */ + + +GetAccountSettingsCommandOutput.prototype['account_id'] = undefined; +/** + * @member {module:model/CustomerFullAddress} address + */ + +GetAccountSettingsCommandOutput.prototype['address'] = undefined; +/** + * @member {String} company_name + */ + +GetAccountSettingsCommandOutput.prototype['company_name'] = undefined; +/** + * @member {String} email + */ + +GetAccountSettingsCommandOutput.prototype['email'] = undefined; +/** + * @member {module:model/AccountGeneralSettings} general_settings + */ + +GetAccountSettingsCommandOutput.prototype['general_settings'] = undefined; +/** + * @member {module:model/AccountObjectVersionSettingsOutput} object_version_settings + */ + +GetAccountSettingsCommandOutput.prototype['object_version_settings'] = undefined; +/** + * @member {String} phone + */ + +GetAccountSettingsCommandOutput.prototype['phone'] = undefined; +/** + * @member {module:model/SmInfo} secret_management + */ +GetAccountSettingsCommandOutput.prototype['secret_management'] = undefined; +/** + * @member {module:model/SraInfo} secure_remote_access + */ + +GetAccountSettingsCommandOutput.prototype['secure_remote_access'] = undefined; +/** + * @member {module:model/SystemAccessCredsSettings} system_access_creds_settings + */ + +GetAccountSettingsCommandOutput.prototype['system_access_creds_settings'] = undefined; +var _default = GetAccountSettingsCommandOutput; +exports["default"] = _default; /***/ }), -/***/ 39732: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 28084: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -/*jshint node:true */ -var Buffer = (__nccwpck_require__(20181).Buffer); // browserify -var SlowBuffer = (__nccwpck_require__(20181).SlowBuffer); -module.exports = bufferEq; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -function bufferEq(a, b) { +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // shortcutting on type is necessary for correctness - if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { - return false; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // buffer sizes should be well-known information, so despite this - // shortcutting, it doesn't leak any information about the *contents* of the - // buffers. - if (a.length !== b.length) { - return false; - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var c = 0; - for (var i = 0; i < a.length; i++) { - /*jshint bitwise:false */ - c |= a[i] ^ b[i]; // XOR +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GetAnalyticsData model module. + * @module model/GetAnalyticsData + * @version 3.6.3 + */ +var GetAnalyticsData = /*#__PURE__*/function () { + /** + * Constructs a new GetAnalyticsData. + * @alias module:model/GetAnalyticsData + */ + function GetAnalyticsData() { + _classCallCheck(this, GetAnalyticsData); + + GetAnalyticsData.initialize(this); } - return c === 0; -} + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -bufferEq.install = function() { - Buffer.prototype.equal = SlowBuffer.prototype.equal = function equal(that) { - return bufferEq(this, that); - }; -}; -var origBufEqual = Buffer.prototype.equal; -var origSlowBufEqual = SlowBuffer.prototype.equal; -bufferEq.restore = function() { - Buffer.prototype.equal = origBufEqual; - SlowBuffer.prototype.equal = origSlowBufEqual; -}; + _createClass(GetAnalyticsData, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GetAnalyticsData from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetAnalyticsData} obj Optional instance to populate. + * @return {module:model/GetAnalyticsData} The populated GetAnalyticsData instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetAnalyticsData(); -/***/ }), + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/***/ 22639: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + return GetAnalyticsData; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var bind = __nccwpck_require__(37564); -var $apply = __nccwpck_require__(33945); -var $call = __nccwpck_require__(88093); -var $reflectApply = __nccwpck_require__(31330); +GetAnalyticsData.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -/** @type {import('./actualApply')} */ -module.exports = $reflectApply || bind.call($call, $apply); +GetAnalyticsData.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +GetAnalyticsData.prototype['uid-token'] = undefined; +var _default = GetAnalyticsData; +exports["default"] = _default; /***/ }), -/***/ 76002: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 19101: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var bind = __nccwpck_require__(37564); -var $apply = __nccwpck_require__(33945); -var actualApply = __nccwpck_require__(22639); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/** @type {import('./applyBind')} */ -module.exports = function applyBind() { - return actualApply(bind, $apply, arguments); -}; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ }), +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/***/ 33945: -/***/ ((module) => { +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -"use strict"; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GetAuthMethod model module. + * @module model/GetAuthMethod + * @version 3.6.3 + */ +var GetAuthMethod = /*#__PURE__*/function () { + /** + * Constructs a new GetAuthMethod. + * @alias module:model/GetAuthMethod + * @param name {String} Auth Method name + */ + function GetAuthMethod(name) { + _classCallCheck(this, GetAuthMethod); + + GetAuthMethod.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/** @type {import('./functionApply')} */ -module.exports = Function.prototype.apply; + _createClass(GetAuthMethod, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GetAuthMethod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetAuthMethod} obj Optional instance to populate. + * @return {module:model/GetAuthMethod} The populated GetAuthMethod instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetAuthMethod(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GetAuthMethod; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GetAuthMethod.prototype['json'] = false; +/** + * Auth Method name + * @member {String} name + */ + +GetAuthMethod.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GetAuthMethod.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +GetAuthMethod.prototype['uid-token'] = undefined; +var _default = GetAuthMethod; +exports["default"] = _default; /***/ }), -/***/ 88093: -/***/ ((module) => { +/***/ 25574: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -/** @type {import('./functionCall')} */ -module.exports = Function.prototype.call; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GetCertificateValue model module. + * @module model/GetCertificateValue + * @version 3.6.3 + */ +var GetCertificateValue = /*#__PURE__*/function () { + /** + * Constructs a new GetCertificateValue. + * @alias module:model/GetCertificateValue + * @param name {String} Certificate name + */ + function GetCertificateValue(name) { + _classCallCheck(this, GetCertificateValue); + + GetCertificateValue.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GetCertificateValue, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GetCertificateValue from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetCertificateValue} obj Optional instance to populate. + * @return {module:model/GetCertificateValue} The populated GetCertificateValue instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetCertificateValue(); + + if (data.hasOwnProperty('cert-issuer-name')) { + obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); + } + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('ignore-cache')) { + obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); + } + + if (data.hasOwnProperty('issuance-token')) { + obj['issuance-token'] = _ApiClient["default"].convertToType(data['issuance-token'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + + return GetCertificateValue; +}(); +/** + * The parent PKI Certificate Issuer's name of the certificate, required when used with display-id and token + * @member {String} cert-issuer-name + */ + + +GetCertificateValue.prototype['cert-issuer-name'] = undefined; +/** + * Certificate display ID + * @member {String} display-id + */ + +GetCertificateValue.prototype['display-id'] = undefined; +/** + * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI + * @member {String} ignore-cache + * @default 'false' + */ + +GetCertificateValue.prototype['ignore-cache'] = 'false'; +/** + * Token for getting the issued certificate + * @member {String} issuance-token + */ + +GetCertificateValue.prototype['issuance-token'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GetCertificateValue.prototype['json'] = false; +/** + * Certificate name + * @member {String} name + * @default 'dummy_certificate_name' + */ + +GetCertificateValue.prototype['name'] = 'dummy_certificate_name'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GetCertificateValue.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GetCertificateValue.prototype['uid-token'] = undefined; +/** + * Certificate version + * @member {Number} version + */ +GetCertificateValue.prototype['version'] = undefined; +var _default = GetCertificateValue; +exports["default"] = _default; /***/ }), -/***/ 88705: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 54819: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var bind = __nccwpck_require__(37564); -var $TypeError = __nccwpck_require__(73314); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var $call = __nccwpck_require__(88093); -var $actualApply = __nccwpck_require__(22639); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */ -module.exports = function callBindBasic(args) { - if (args.length < 1 || typeof args[0] !== 'function') { - throw new $TypeError('a function is required'); - } - return $actualApply(bind, $call, args); -}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GetCertificateValueOutput model module. + * @module model/GetCertificateValueOutput + * @version 3.6.3 + */ +var GetCertificateValueOutput = /*#__PURE__*/function () { + /** + * Constructs a new GetCertificateValueOutput. + * @alias module:model/GetCertificateValueOutput + */ + function GetCertificateValueOutput() { + _classCallCheck(this, GetCertificateValueOutput); + + GetCertificateValueOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GetCertificateValueOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GetCertificateValueOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetCertificateValueOutput} obj Optional instance to populate. + * @return {module:model/GetCertificateValueOutput} The populated GetCertificateValueOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetCertificateValueOutput(); + + if (data.hasOwnProperty('certificate_pem')) { + obj['certificate_pem'] = _ApiClient["default"].convertToType(data['certificate_pem'], 'String'); + } + + if (data.hasOwnProperty('private_key_pem')) { + obj['private_key_pem'] = _ApiClient["default"].convertToType(data['private_key_pem'], 'String'); + } + } + + return obj; + } + }]); + + return GetCertificateValueOutput; +}(); +/** + * @member {String} certificate_pem + */ + + +GetCertificateValueOutput.prototype['certificate_pem'] = undefined; +/** + * @member {String} private_key_pem + */ +GetCertificateValueOutput.prototype['private_key_pem'] = undefined; +var _default = GetCertificateValueOutput; +exports["default"] = _default; /***/ }), -/***/ 31330: -/***/ ((module) => { +/***/ 17840: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -/** @type {import('./reflectApply')} */ -module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GetDynamicSecretValue model module. + * @module model/GetDynamicSecretValue + * @version 3.6.3 + */ +var GetDynamicSecretValue = /*#__PURE__*/function () { + /** + * Constructs a new GetDynamicSecretValue. + * @alias module:model/GetDynamicSecretValue + * @param name {String} Dynamic secret name + */ + function GetDynamicSecretValue(name) { + _classCallCheck(this, GetDynamicSecretValue); + + GetDynamicSecretValue.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GetDynamicSecretValue, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GetDynamicSecretValue from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetDynamicSecretValue} obj Optional instance to populate. + * @return {module:model/GetDynamicSecretValue} The populated GetDynamicSecretValue instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetDynamicSecretValue(); + + if (data.hasOwnProperty('args')) { + obj['args'] = _ApiClient["default"].convertToType(data['args'], ['String']); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('target')) { + obj['target'] = _ApiClient["default"].convertToType(data['target'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GetDynamicSecretValue; +}(); +/** + * Optional arguments as key=value pairs or JSON strings, e.g - \\\"--args=csr=base64_encoded_csr --args=common_name=bar\\\" or args='{\\\"csr\\\":\\\"base64_encoded_csr\\\"}. It is possible to combine both formats.' + * @member {Array.} args + */ + + +GetDynamicSecretValue.prototype['args'] = undefined; +/** + * Host + * @member {String} host + */ + +GetDynamicSecretValue.prototype['host'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GetDynamicSecretValue.prototype['json'] = false; +/** + * Dynamic secret name + * @member {String} name + */ + +GetDynamicSecretValue.prototype['name'] = undefined; +/** + * Target Name + * @member {String} target + */ + +GetDynamicSecretValue.prototype['target'] = undefined; +/** + * Timeout in seconds + * @member {Number} timeout + * @default 15 + */ + +GetDynamicSecretValue.prototype['timeout'] = 15; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GetDynamicSecretValue.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +GetDynamicSecretValue.prototype['uid-token'] = undefined; +var _default = GetDynamicSecretValue; +exports["default"] = _default; /***/ }), -/***/ 12856: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 7183: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var GetIntrinsic = __nccwpck_require__(60470); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -var callBind = __nccwpck_require__(53844); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -module.exports = function callBoundIntrinsic(name, allowMissing) { - var intrinsic = GetIntrinsic(name, !!allowMissing); - if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { - return callBind(intrinsic); - } - return intrinsic; -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GetEventForwarder model module. + * @module model/GetEventForwarder + * @version 3.6.3 + */ +var GetEventForwarder = /*#__PURE__*/function () { + /** + * Constructs a new GetEventForwarder. + * getEventForwarder is a command that creates a new event forwarder [Deprecated - please use event-forwarder-get command] + * @alias module:model/GetEventForwarder + * @param name {String} EventForwarder name + */ + function GetEventForwarder(name) { + _classCallCheck(this, GetEventForwarder); + + GetEventForwarder.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GetEventForwarder, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GetEventForwarder from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetEventForwarder} obj Optional instance to populate. + * @return {module:model/GetEventForwarder} The populated GetEventForwarder instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetEventForwarder(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return GetEventForwarder; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GetEventForwarder.prototype['json'] = false; +/** + * EventForwarder name + * @member {String} name + */ + +GetEventForwarder.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GetEventForwarder.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +GetEventForwarder.prototype['uid-token'] = undefined; +var _default = GetEventForwarder; +exports["default"] = _default; /***/ }), -/***/ 53844: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 31549: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var setFunctionLength = __nccwpck_require__(49346); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var $defineProperty = __nccwpck_require__(79094); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -var callBindBasic = __nccwpck_require__(88705); -var applyBind = __nccwpck_require__(76002); +var _NotiForwarder = _interopRequireDefault(__nccwpck_require__(21724)); -module.exports = function callBind(originalFunction) { - var func = callBindBasic(arguments); - var adjustedLength = originalFunction.length - (arguments.length - 1); - return setFunctionLength( - func, - 1 + (adjustedLength > 0 ? adjustedLength : 0), - true - ); -}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -if ($defineProperty) { - $defineProperty(module.exports, 'apply', { value: applyBind }); -} else { - module.exports.apply = applyBind; -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GetEventForwarderOutput model module. + * @module model/GetEventForwarderOutput + * @version 3.6.3 + */ +var GetEventForwarderOutput = /*#__PURE__*/function () { + /** + * Constructs a new GetEventForwarderOutput. + * @alias module:model/GetEventForwarderOutput + */ + function GetEventForwarderOutput() { + _classCallCheck(this, GetEventForwarderOutput); + + GetEventForwarderOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GetEventForwarderOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GetEventForwarderOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetEventForwarderOutput} obj Optional instance to populate. + * @return {module:model/GetEventForwarderOutput} The populated GetEventForwarderOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetEventForwarderOutput(); + + if (data.hasOwnProperty('event_forwarder')) { + obj['event_forwarder'] = _NotiForwarder["default"].constructFromObject(data['event_forwarder']); + } + } + + return obj; + } + }]); + + return GetEventForwarderOutput; +}(); +/** + * @member {module:model/NotiForwarder} event_forwarder + */ +GetEventForwarderOutput.prototype['event_forwarder'] = undefined; +var _default = GetEventForwarderOutput; +exports["default"] = _default; + /***/ }), -/***/ 35630: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 99359: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var util = __nccwpck_require__(39023); -var Stream = (__nccwpck_require__(2203).Stream); -var DelayedStream = __nccwpck_require__(72710); +"use strict"; -module.exports = CombinedStream; -function CombinedStream() { - this.writable = false; - this.readable = true; - this.dataSize = 0; - this.maxDataSize = 2 * 1024 * 1024; - this.pauseStreams = true; - this._released = false; - this._streams = []; - this._currentStream = null; - this._insideLoop = false; - this._pendingNext = false; -} -util.inherits(CombinedStream, Stream); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -CombinedStream.create = function(options) { - var combinedStream = new this(); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - options = options || {}; - for (var option in options) { - combinedStream[option] = options[option]; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - return combinedStream; -}; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -CombinedStream.isStreamLike = function(stream) { - return (typeof stream !== 'function') - && (typeof stream !== 'string') - && (typeof stream !== 'boolean') - && (typeof stream !== 'number') - && (!Buffer.isBuffer(stream)); -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -CombinedStream.prototype.append = function(stream) { - var isStreamLike = CombinedStream.isStreamLike(stream); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (isStreamLike) { - if (!(stream instanceof DelayedStream)) { - var newStream = DelayedStream.create(stream, { - maxDataSize: Infinity, - pauseStream: this.pauseStreams, - }); - stream.on('data', this._checkDataSize.bind(this)); - stream = newStream; +/** + * The GetGroup model module. + * @module model/GetGroup + * @version 3.6.3 + */ +var GetGroup = /*#__PURE__*/function () { + /** + * Constructs a new GetGroup. + * @alias module:model/GetGroup + * @param name {String} Group name + */ + function GetGroup(name) { + _classCallCheck(this, GetGroup); + + GetGroup.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GetGroup, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } + /** + * Constructs a GetGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetGroup} obj Optional instance to populate. + * @return {module:model/GetGroup} The populated GetGroup instance. + */ - this._handleErrors(stream); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetGroup(); - if (this.pauseStreams) { - stream.pause(); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } - } + }]); + + return GetGroup; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +GetGroup.prototype['json'] = false; +/** + * Group name + * @member {String} name + */ + +GetGroup.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GetGroup.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GetGroup.prototype['uid-token'] = undefined; +var _default = GetGroup; +exports["default"] = _default; + +/***/ }), + +/***/ 83334: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; - this._streams.push(stream); - return this; -}; -CombinedStream.prototype.pipe = function(dest, options) { - Stream.prototype.pipe.call(this, dest, options); - this.resume(); - return dest; -}; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -CombinedStream.prototype._getNext = function() { - this._currentStream = null; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (this._insideLoop) { - this._pendingNext = true; - return; // defer call - } +var _AccessPermissionAssignment = _interopRequireDefault(__nccwpck_require__(95036)); - this._insideLoop = true; - try { - do { - this._pendingNext = false; - this._realGetNext(); - } while (this._pendingNext); - } finally { - this._insideLoop = false; - } -}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -CombinedStream.prototype._realGetNext = function() { - var stream = this._streams.shift(); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (typeof stream == 'undefined') { - this.end(); - return; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (typeof stream !== 'function') { - this._pipeNext(stream); - return; +/** + * The GetGroupOutput model module. + * @module model/GetGroupOutput + * @version 3.6.3 + */ +var GetGroupOutput = /*#__PURE__*/function () { + /** + * Constructs a new GetGroupOutput. + * @alias module:model/GetGroupOutput + */ + function GetGroupOutput() { + _classCallCheck(this, GetGroupOutput); + + GetGroupOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - var getStream = stream; - getStream(function(stream) { - var isStreamLike = CombinedStream.isStreamLike(stream); - if (isStreamLike) { - stream.on('data', this._checkDataSize.bind(this)); - this._handleErrors(stream); - } - this._pipeNext(stream); - }.bind(this)); -}; + _createClass(GetGroupOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GetGroupOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetGroupOutput} obj Optional instance to populate. + * @return {module:model/GetGroupOutput} The populated GetGroupOutput instance. + */ -CombinedStream.prototype._pipeNext = function(stream) { - this._currentStream = stream; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetGroupOutput(); - var isStreamLike = CombinedStream.isStreamLike(stream); - if (isStreamLike) { - stream.on('end', this._getNext.bind(this)); - stream.pipe(this, {end: false}); - return; - } + if (data.hasOwnProperty('account_id')) { + obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); + } - var value = stream; - this.write(value); - this._getNext(); -}; + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); + } -CombinedStream.prototype._handleErrors = function(stream) { - var self = this; - stream.on('error', function(err) { - self._emitError(err); - }); -}; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -CombinedStream.prototype.write = function(data) { - this.emit('data', data); -}; + if (data.hasOwnProperty('group_alias')) { + obj['group_alias'] = _ApiClient["default"].convertToType(data['group_alias'], 'String'); + } -CombinedStream.prototype.pause = function() { - if (!this.pauseStreams) { - return; - } + if (data.hasOwnProperty('group_id')) { + obj['group_id'] = _ApiClient["default"].convertToType(data['group_id'], 'String'); + } - if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause(); - this.emit('pause'); -}; + if (data.hasOwnProperty('group_name')) { + obj['group_name'] = _ApiClient["default"].convertToType(data['group_name'], 'String'); + } -CombinedStream.prototype.resume = function() { - if (!this._released) { - this._released = true; - this.writable = true; - this._getNext(); - } + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } - if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume(); - this.emit('resume'); -}; + if (data.hasOwnProperty('user_assignments')) { + obj['user_assignments'] = _ApiClient["default"].convertToType(data['user_assignments'], [_AccessPermissionAssignment["default"]]); + } + } -CombinedStream.prototype.end = function() { - this._reset(); - this.emit('end'); -}; + return obj; + } + }]); -CombinedStream.prototype.destroy = function() { - this._reset(); - this.emit('close'); -}; + return GetGroupOutput; +}(); +/** + * @member {String} account_id + */ -CombinedStream.prototype._reset = function() { - this.writable = false; - this._streams = []; - this._currentStream = null; -}; -CombinedStream.prototype._checkDataSize = function() { - this._updateDataSize(); - if (this.dataSize <= this.maxDataSize) { - return; - } +GetGroupOutput.prototype['account_id'] = undefined; +/** + * @member {Date} creation_date + */ - var message = - 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'; - this._emitError(new Error(message)); -}; +GetGroupOutput.prototype['creation_date'] = undefined; +/** + * @member {String} description + */ -CombinedStream.prototype._updateDataSize = function() { - this.dataSize = 0; +GetGroupOutput.prototype['description'] = undefined; +/** + * @member {String} group_alias + */ - var self = this; - this._streams.forEach(function(stream) { - if (!stream.dataSize) { - return; - } +GetGroupOutput.prototype['group_alias'] = undefined; +/** + * @member {String} group_id + */ - self.dataSize += stream.dataSize; - }); +GetGroupOutput.prototype['group_id'] = undefined; +/** + * @member {String} group_name + */ - if (this._currentStream && this._currentStream.dataSize) { - this.dataSize += this._currentStream.dataSize; - } -}; +GetGroupOutput.prototype['group_name'] = undefined; +/** + * @member {Date} modification_date + */ -CombinedStream.prototype._emitError = function(err) { - this._reset(); - this.emit('error', err); -}; +GetGroupOutput.prototype['modification_date'] = undefined; +/** + * @member {Array.} user_assignments + */ +GetGroupOutput.prototype['user_assignments'] = undefined; +var _default = GetGroupOutput; +exports["default"] = _default; /***/ }), -/***/ 81128: -/***/ ((__unused_webpack_module, exports) => { +/***/ 48313: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var __webpack_unused_export__; -/* jshint node: true */ -(function () { - "use strict"; +"use strict"; - function CookieAccessInfo(domain, path, secure, script) { - if (this instanceof CookieAccessInfo) { - this.domain = domain || undefined; - this.path = path || "/"; - this.secure = !!secure; - this.script = !!script; - return this; - } - return new CookieAccessInfo(domain, path, secure, script); - } - CookieAccessInfo.All = Object.freeze(Object.create(null)); - exports.xW = CookieAccessInfo; - function Cookie(cookiestr, request_domain, request_path) { - if (cookiestr instanceof Cookie) { - return cookiestr; - } - if (this instanceof Cookie) { - this.name = null; - this.value = null; - this.expiration_date = Infinity; - this.path = String(request_path || "/"); - this.explicit_path = false; - this.domain = request_domain || null; - this.explicit_domain = false; - this.secure = false; //how to define default? - this.noscript = false; //httponly - if (cookiestr) { - this.parse(cookiestr, request_domain, request_path); - } - return this; - } - return new Cookie(cookiestr, request_domain, request_path); - } - __webpack_unused_export__ = Cookie; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - Cookie.prototype.toString = function toString() { - var str = [this.name + "=" + this.value]; - if (this.expiration_date !== Infinity) { - str.push("expires=" + (new Date(this.expiration_date)).toGMTString()); - } - if (this.domain) { - str.push("domain=" + this.domain); - } - if (this.path) { - str.push("path=" + this.path); - } - if (this.secure) { - str.push("secure"); - } - if (this.noscript) { - str.push("httponly"); - } - return str.join("; "); - }; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - Cookie.prototype.toValueString = function toValueString() { - return this.name + "=" + this.value; - }; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var cookie_str_splitter = /[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g; - Cookie.prototype.parse = function parse(str, request_domain, request_path) { - if (this instanceof Cookie) { - if ( str.length > 32768 ) { - console.warn("Cookie too long for parsing (>32768 characters)"); - return; - } - - var parts = str.split(";").filter(function (value) { - return !!value; - }); - var i; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var pair = parts[0].match(/([^=]+)=([\s\S]*)/); - if (!pair) { - console.warn("Invalid cookie header encountered. Header: '"+str+"'"); - return; - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - var key = pair[1]; - var value = pair[2]; - if ( typeof key !== 'string' || key.length === 0 || typeof value !== 'string' ) { - console.warn("Unable to extract values from cookie header. Cookie: '"+str+"'"); - return; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - this.name = key; - this.value = value; +/** + * The GetKubeExecCreds model module. + * @module model/GetKubeExecCreds + * @version 3.6.3 + */ +var GetKubeExecCreds = /*#__PURE__*/function () { + /** + * Constructs a new GetKubeExecCreds. + * getKubeExecCreds is a command that gets credentials for authentication with Kubernetes cluster based on a PKI cert issuer. + * @alias module:model/GetKubeExecCreds + * @param certIssuerName {String} The name of the PKI certificate issuer + */ + function GetKubeExecCreds(certIssuerName) { + _classCallCheck(this, GetKubeExecCreds); - for (i = 1; i < parts.length; i += 1) { - pair = parts[i].match(/([^=]+)(?:=([\s\S]*))?/); - key = pair[1].trim().toLowerCase(); - value = pair[2]; - switch (key) { - case "httponly": - this.noscript = true; - break; - case "expires": - this.expiration_date = value ? - Number(Date.parse(value)) : - Infinity; - break; - case "path": - this.path = value ? - value.trim() : - ""; - this.explicit_path = true; - break; - case "domain": - this.domain = value ? - value.trim() : - ""; - this.explicit_domain = !!this.domain; - break; - case "secure": - this.secure = true; - break; - } - } + GetKubeExecCreds.initialize(this, certIssuerName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (!this.explicit_path) { - this.path = request_path || "/"; - } - if (!this.explicit_domain) { - this.domain = request_domain; - } - return this; - } - return new Cookie().parse(str, request_domain, request_path); - }; + _createClass(GetKubeExecCreds, null, [{ + key: "initialize", + value: function initialize(obj, certIssuerName) { + obj['cert-issuer-name'] = certIssuerName; + } + /** + * Constructs a GetKubeExecCreds from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetKubeExecCreds} obj Optional instance to populate. + * @return {module:model/GetKubeExecCreds} The populated GetKubeExecCreds instance. + */ - Cookie.prototype.matches = function matches(access_info) { - if (access_info === CookieAccessInfo.All) { - return true; - } - if (this.noscript && access_info.script || - this.secure && !access_info.secure || - !this.collidesWith(access_info)) { - return false; - } - return true; - }; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetKubeExecCreds(); - Cookie.prototype.collidesWith = function collidesWith(access_info) { - if ((this.path && !access_info.path) || (this.domain && !access_info.domain)) { - return false; + if (data.hasOwnProperty('alt-names')) { + obj['alt-names'] = _ApiClient["default"].convertToType(data['alt-names'], 'String'); } - if (this.path && access_info.path.indexOf(this.path) !== 0) { - return false; + + if (data.hasOwnProperty('api-version')) { + obj['api-version'] = _ApiClient["default"].convertToType(data['api-version'], 'String'); } - if (this.explicit_path && access_info.path.indexOf( this.path ) !== 0) { - return false; + + if (data.hasOwnProperty('cert-issuer-name')) { + obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); } - var access_domain = access_info.domain && access_info.domain.replace(/^[\.]/,''); - var cookie_domain = this.domain && this.domain.replace(/^[\.]/,''); - if (cookie_domain === access_domain) { - return true; + + if (data.hasOwnProperty('common-name')) { + obj['common-name'] = _ApiClient["default"].convertToType(data['common-name'], 'String'); } - if (cookie_domain) { - if (!this.explicit_domain) { - return false; // we already checked if the domains were exactly the same - } - var wildcard = access_domain.indexOf(cookie_domain); - if (wildcard === -1 || wildcard !== access_domain.length - cookie_domain.length) { - return false; - } - return true; + + if (data.hasOwnProperty('csr-data-base64')) { + obj['csr-data-base64'] = _ApiClient["default"].convertToType(data['csr-data-base64'], 'String'); } - return true; - }; - function CookieJar() { - var cookies, cookies_list, collidable_cookie; - if (this instanceof CookieJar) { - cookies = Object.create(null); //name: [Cookie] + if (data.hasOwnProperty('extended-key-usage')) { + obj['extended-key-usage'] = _ApiClient["default"].convertToType(data['extended-key-usage'], 'String'); + } - this.setCookie = function setCookie(cookie, request_domain, request_path) { - var remove, i; - cookie = new Cookie(cookie, request_domain, request_path); - //Delete the cookie if the set is past the current time - remove = cookie.expiration_date <= Date.now(); - if (cookies[cookie.name] !== undefined) { - cookies_list = cookies[cookie.name]; - for (i = 0; i < cookies_list.length; i += 1) { - collidable_cookie = cookies_list[i]; - if (collidable_cookie.collidesWith(cookie)) { - if (remove) { - cookies_list.splice(i, 1); - if (cookies_list.length === 0) { - delete cookies[cookie.name]; - } - return false; - } - cookies_list[i] = cookie; - return cookie; - } - } - if (remove) { - return false; - } - cookies_list.push(cookie); - return cookie; - } - if (remove) { - return false; - } - cookies[cookie.name] = [cookie]; - return cookies[cookie.name]; - }; - //returns a cookie - this.getCookie = function getCookie(cookie_name, access_info) { - var cookie, i; - cookies_list = cookies[cookie_name]; - if (!cookies_list) { - return; - } - for (i = 0; i < cookies_list.length; i += 1) { - cookie = cookies_list[i]; - if (cookie.expiration_date <= Date.now()) { - if (cookies_list.length === 0) { - delete cookies[cookie.name]; - } - continue; - } + if (data.hasOwnProperty('extra-extensions')) { + obj['extra-extensions'] = _ApiClient["default"].convertToType(data['extra-extensions'], 'String'); + } - if (cookie.matches(access_info)) { - return cookie; - } - } - }; - //returns a list of cookies - this.getCookies = function getCookies(access_info) { - var matches = [], cookie_name, cookie; - for (cookie_name in cookies) { - cookie = this.getCookie(cookie_name, access_info); - if (cookie) { - matches.push(cookie); - } - } - matches.toString = function toString() { - return matches.join(":"); - }; - matches.toValueString = function toValueString() { - return matches.map(function (c) { - return c.toValueString(); - }).join('; '); - }; - return matches; - }; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - return this; + if (data.hasOwnProperty('key-data-base64')) { + obj['key-data-base64'] = _ApiClient["default"].convertToType(data['key-data-base64'], 'String'); } - return new CookieJar(); - } - exports.cP = CookieJar; - //returns list of cookies that were set correctly. Cookies that are expired and removed are not returned. - CookieJar.prototype.setCookies = function setCookies(cookies, request_domain, request_path) { - cookies = Array.isArray(cookies) ? - cookies : - cookies.split(cookie_str_splitter); - var successful = [], - i, - cookie; - cookies = cookies.map(function(item){ - return new Cookie(item, request_domain, request_path); - }); - for (i = 0; i < cookies.length; i += 1) { - cookie = cookies[i]; - if (this.setCookie(cookie, request_domain, request_path)) { - successful.push(cookie); - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - return successful; - }; -}()); + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } -/***/ }), + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -/***/ 6110: -/***/ ((module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('uri-sans')) { + obj['uri-sans'] = _ApiClient["default"].convertToType(data['uri-sans'], 'String'); + } + } -/* eslint-env browser */ + return obj; + } + }]); + return GetKubeExecCreds; +}(); /** - * This is the web browser implementation of `debug()`. + * The Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any DNS.* names are taken from it) + * @member {String} alt-names */ -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; -exports.storage = localstorage(); -exports.destroy = (() => { - let warned = false; - - return () => { - if (!warned) { - warned = true; - console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); - } - }; -})(); +GetKubeExecCreds.prototype['alt-names'] = undefined; /** - * Colors. + * Client authentication API version + * @member {String} api-version + * @default 'v1' */ -exports.colors = [ - '#0000CC', - '#0000FF', - '#0033CC', - '#0033FF', - '#0066CC', - '#0066FF', - '#0099CC', - '#0099FF', - '#00CC00', - '#00CC33', - '#00CC66', - '#00CC99', - '#00CCCC', - '#00CCFF', - '#3300CC', - '#3300FF', - '#3333CC', - '#3333FF', - '#3366CC', - '#3366FF', - '#3399CC', - '#3399FF', - '#33CC00', - '#33CC33', - '#33CC66', - '#33CC99', - '#33CCCC', - '#33CCFF', - '#6600CC', - '#6600FF', - '#6633CC', - '#6633FF', - '#66CC00', - '#66CC33', - '#9900CC', - '#9900FF', - '#9933CC', - '#9933FF', - '#99CC00', - '#99CC33', - '#CC0000', - '#CC0033', - '#CC0066', - '#CC0099', - '#CC00CC', - '#CC00FF', - '#CC3300', - '#CC3333', - '#CC3366', - '#CC3399', - '#CC33CC', - '#CC33FF', - '#CC6600', - '#CC6633', - '#CC9900', - '#CC9933', - '#CCCC00', - '#CCCC33', - '#FF0000', - '#FF0033', - '#FF0066', - '#FF0099', - '#FF00CC', - '#FF00FF', - '#FF3300', - '#FF3333', - '#FF3366', - '#FF3399', - '#FF33CC', - '#FF33FF', - '#FF6600', - '#FF6633', - '#FF9900', - '#FF9933', - '#FFCC00', - '#FFCC33' -]; - +GetKubeExecCreds.prototype['api-version'] = 'v1'; /** - * Currently only WebKit-based Web Inspectors, Firefox >= v31, - * and the Firebug extension (any Firefox version) are known - * to support "%c" CSS customizations. - * - * TODO: add a `localStorage` variable to explicitly enable/disable colors + * The name of the PKI certificate issuer + * @member {String} cert-issuer-name */ -// eslint-disable-next-line complexity -function useColors() { - // NB: In an Electron preload script, document will be defined but not fully - // initialized. Since we know we're in Chrome, we'll just detect this case - // explicitly - if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) { - return true; - } - - // Internet Explorer and Edge do not support colors. - if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { - return false; - } - - // Is webkit? http://stackoverflow.com/a/16459606/376773 - // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 - return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || - // Is firebug? http://stackoverflow.com/a/398120/376773 - (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || - // Is firefox >= v31? - // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages - (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || - // Double check webkit in userAgent just in case we are in a worker - (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); -} - +GetKubeExecCreds.prototype['cert-issuer-name'] = undefined; /** - * Colorize log arguments if enabled. - * - * @api public + * The common name to be included in the PKI certificate (if CSR is supplied this flag is ignored and the CSR subject CN is taken) + * @member {String} common-name */ -function formatArgs(args) { - args[0] = (this.useColors ? '%c' : '') + - this.namespace + - (this.useColors ? ' %c' : ' ') + - args[0] + - (this.useColors ? '%c ' : ' ') + - '+' + module.exports.humanize(this.diff); - - if (!this.useColors) { - return; - } - - const c = 'color: ' + this.color; - args.splice(1, 0, c, 'color: inherit'); - - // The final "%c" is somewhat tricky, because there could be other - // arguments passed either before or after the %c, so we need to - // figure out the correct index to insert the CSS into - let index = 0; - let lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, match => { - if (match === '%%') { - return; - } - index++; - if (match === '%c') { - // We only are interested in the *last* %c - // (the user may have provided their own) - lastC = index; - } - }); - - args.splice(lastC, 0, c); -} - +GetKubeExecCreds.prototype['common-name'] = undefined; /** - * Invokes `console.debug()` when available. - * No-op when `console.debug` is not a "function". - * If `console.debug` is not available, falls back - * to `console.log`. - * - * @api public + * Certificate Signing Request contents encoded in base64 to generate the certificate with + * @member {String} csr-data-base64 */ -exports.log = console.debug || console.log || (() => {}); +GetKubeExecCreds.prototype['csr-data-base64'] = undefined; /** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private + * A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth'. + * @member {String} extended-key-usage */ -function save(namespaces) { - try { - if (namespaces) { - exports.storage.setItem('debug', namespaces); - } else { - exports.storage.removeItem('debug'); - } - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } -} +GetKubeExecCreds.prototype['extended-key-usage'] = undefined; /** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private + * A json string that defines the requested extra extensions for the certificate + * @member {String} extra-extensions */ -function load() { - let r; - try { - r = exports.storage.getItem('debug'); - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } - - // If debug isn't set in LS, and we're in Electron, try to load $DEBUG - if (!r && typeof process !== 'undefined' && 'env' in process) { - r = process.env.DEBUG; - } - - return r; -} +GetKubeExecCreds.prototype['extra-extensions'] = undefined; /** - * Localstorage attempts to return the localstorage. - * - * This is necessary because safari throws - * when a user disables cookies/localstorage - * and you attempt to access it. - * - * @return {LocalStorage} - * @api private + * Set output format to JSON + * @member {Boolean} json + * @default false */ -function localstorage() { - try { - // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context - // The Browser also has localStorage in the global context. - return localStorage; - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } -} +GetKubeExecCreds.prototype['json'] = false; +/** + * PKI key file contents. If this option is used, the certificate will be printed to stdout + * @member {String} key-data-base64 + */ -module.exports = __nccwpck_require__(40897)(exports); +GetKubeExecCreds.prototype['key-data-base64'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -const {formatters} = module.exports; +GetKubeExecCreds.prototype['token'] = undefined; +/** + * Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL) + * @member {Number} ttl + */ +GetKubeExecCreds.prototype['ttl'] = undefined; /** - * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -formatters.j = function (v) { - try { - return JSON.stringify(v); - } catch (error) { - return '[UnexpectedJSONParseError]: ' + error.message; - } -}; +GetKubeExecCreds.prototype['uid-token'] = undefined; +/** + * The URI Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any URI.* names are taken from it) + * @member {String} uri-sans + */ +GetKubeExecCreds.prototype['uri-sans'] = undefined; +var _default = GetKubeExecCreds; +exports["default"] = _default; /***/ }), -/***/ 40897: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 31740: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +"use strict"; -/** - * This is the common logic for both the Node.js and web browser - * implementations of `debug()`. - */ -function setup(env) { - createDebug.debug = createDebug; - createDebug.default = createDebug; - createDebug.coerce = coerce; - createDebug.disable = disable; - createDebug.enable = enable; - createDebug.enabled = enabled; - createDebug.humanize = __nccwpck_require__(70744); - createDebug.destroy = destroy; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - Object.keys(env).forEach(key => { - createDebug[key] = env[key]; - }); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - /** - * The currently active debug mode names, and names to skip. - */ +var _ClientData = _interopRequireDefault(__nccwpck_require__(49671)); - createDebug.names = []; - createDebug.skips = []; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - /** - * Map of special "%n" handling functions, for the debug "format" argument. - * - * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". - */ - createDebug.formatters = {}; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - /** - * Selects a color for a debug namespace - * @param {String} namespace The namespace string for the debug instance to be colored - * @return {Number|String} An ANSI color code for the given namespace - * @api private - */ - function selectColor(namespace) { - let hash = 0; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - for (let i = 0; i < namespace.length; i++) { - hash = ((hash << 5) - hash) + namespace.charCodeAt(i); - hash |= 0; // Convert to 32bit integer - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; - } - createDebug.selectColor = selectColor; +/** + * The GetKubeExecCredsOutput model module. + * @module model/GetKubeExecCredsOutput + * @version 3.6.3 + */ +var GetKubeExecCredsOutput = /*#__PURE__*/function () { + /** + * Constructs a new GetKubeExecCredsOutput. + * @alias module:model/GetKubeExecCredsOutput + */ + function GetKubeExecCredsOutput() { + _classCallCheck(this, GetKubeExecCredsOutput); - /** - * Create a debugger with the given `namespace`. - * - * @param {String} namespace - * @return {Function} - * @api public - */ - function createDebug(namespace) { - let prevTime; - let enableOverride = null; - let namespacesCache; - let enabledCache; + GetKubeExecCredsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - function debug(...args) { - // Disabled? - if (!debug.enabled) { - return; - } - const self = debug; + _createClass(GetKubeExecCredsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GetKubeExecCredsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetKubeExecCredsOutput} obj Optional instance to populate. + * @return {module:model/GetKubeExecCredsOutput} The populated GetKubeExecCredsOutput instance. + */ - // Set `diff` timestamp - const curr = Number(new Date()); - const ms = curr - (prevTime || curr); - self.diff = ms; - self.prev = prevTime; - self.curr = curr; - prevTime = curr; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetKubeExecCredsOutput(); - args[0] = createDebug.coerce(args[0]); + if (data.hasOwnProperty('apiVersion')) { + obj['apiVersion'] = _ApiClient["default"].convertToType(data['apiVersion'], 'String'); + } - if (typeof args[0] !== 'string') { - // Anything else let's inspect with %O - args.unshift('%O'); - } + if (data.hasOwnProperty('kind')) { + obj['kind'] = _ApiClient["default"].convertToType(data['kind'], 'String'); + } - // Apply any `formatters` transformations - let index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { - // If we encounter an escaped % then don't increase the array index - if (match === '%%') { - return '%'; - } - index++; - const formatter = createDebug.formatters[format]; - if (typeof formatter === 'function') { - const val = args[index]; - match = formatter.call(self, val); + if (data.hasOwnProperty('status')) { + obj['status'] = _ClientData["default"].constructFromObject(data['status']); + } + } - // Now we need to remove `args[index]` since it's inlined in the `format` - args.splice(index, 1); - index--; - } - return match; - }); + return obj; + } + }]); - // Apply env-specific formatting (colors, etc.) - createDebug.formatArgs.call(self, args); + return GetKubeExecCredsOutput; +}(); +/** + * @member {String} apiVersion + */ - const logFn = self.log || createDebug.log; - logFn.apply(self, args); - } - debug.namespace = namespace; - debug.useColors = createDebug.useColors(); - debug.color = createDebug.selectColor(namespace); - debug.extend = extend; - debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release. +GetKubeExecCredsOutput.prototype['apiVersion'] = undefined; +/** + * @member {String} kind + */ - Object.defineProperty(debug, 'enabled', { - enumerable: true, - configurable: false, - get: () => { - if (enableOverride !== null) { - return enableOverride; - } - if (namespacesCache !== createDebug.namespaces) { - namespacesCache = createDebug.namespaces; - enabledCache = createDebug.enabled(namespace); - } +GetKubeExecCredsOutput.prototype['kind'] = undefined; +/** + * @member {module:model/ClientData} status + */ - return enabledCache; - }, - set: v => { - enableOverride = v; - } - }); +GetKubeExecCredsOutput.prototype['status'] = undefined; +var _default = GetKubeExecCredsOutput; +exports["default"] = _default; - // Env-specific initialization logic for debug instances - if (typeof createDebug.init === 'function') { - createDebug.init(debug); - } +/***/ }), - return debug; - } +/***/ 96111: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - function extend(namespace, delimiter) { - const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace); - newDebug.log = this.log; - return newDebug; - } +"use strict"; - /** - * Enables a debug mode by namespaces. This can include modes - * separated by a colon and wildcards. - * - * @param {String} namespaces - * @api public - */ - function enable(namespaces) { - createDebug.save(namespaces); - createDebug.namespaces = namespaces; - createDebug.names = []; - createDebug.skips = []; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - let i; - const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); - const len = split.length; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - for (i = 0; i < len; i++) { - if (!split[i]) { - // ignore empty strings - continue; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - namespaces = split[i].replace(/\*/g, '.*?'); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (namespaces[0] === '-') { - createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$')); - } else { - createDebug.names.push(new RegExp('^' + namespaces + '$')); - } - } - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - /** - * Disable debug output. - * - * @return {String} namespaces - * @api public - */ - function disable() { - const namespaces = [ - ...createDebug.names.map(toNamespace), - ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace) - ].join(','); - createDebug.enable(''); - return namespaces; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - /** - * Returns true if the given mode name is enabled, false otherwise. - * - * @param {String} name - * @return {Boolean} - * @api public - */ - function enabled(name) { - if (name[name.length - 1] === '*') { - return true; - } +/** + * The GetLastUserEventStatus model module. + * @module model/GetLastUserEventStatus + * @version 3.6.3 + */ +var GetLastUserEventStatus = /*#__PURE__*/function () { + /** + * Constructs a new GetLastUserEventStatus. + * @alias module:model/GetLastUserEventStatus + * @param eventType {String} + * @param itemName {String} Event item name + * @param itemType {String} Event item type can be either \"target\" or type of item eg \"static_secret\"/\"dynamic_secret\" To get type of some item run `akeyless describe-item -n {ITEM_NAME} --jq-expression .item_type` + */ + function GetLastUserEventStatus(eventType, itemName, itemType) { + _classCallCheck(this, GetLastUserEventStatus); - let i; - let len; + GetLastUserEventStatus.initialize(this, eventType, itemName, itemType); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - for (i = 0, len = createDebug.skips.length; i < len; i++) { - if (createDebug.skips[i].test(name)) { - return false; - } - } - for (i = 0, len = createDebug.names.length; i < len; i++) { - if (createDebug.names[i].test(name)) { - return true; - } - } + _createClass(GetLastUserEventStatus, null, [{ + key: "initialize", + value: function initialize(obj, eventType, itemName, itemType) { + obj['event-type'] = eventType; + obj['item-name'] = itemName; + obj['item-type'] = itemType; + } + /** + * Constructs a GetLastUserEventStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetLastUserEventStatus} obj Optional instance to populate. + * @return {module:model/GetLastUserEventStatus} The populated GetLastUserEventStatus instance. + */ - return false; - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetLastUserEventStatus(); - /** - * Convert regexp to namespace - * - * @param {RegExp} regxep - * @return {String} namespace - * @api private - */ - function toNamespace(regexp) { - return regexp.toString() - .substring(2, regexp.toString().length - 2) - .replace(/\.\*\?$/, '*'); - } + if (data.hasOwnProperty('event-source')) { + obj['event-source'] = _ApiClient["default"].convertToType(data['event-source'], 'String'); + } - /** - * Coerce `val`. - * - * @param {Mixed} val - * @return {Mixed} - * @api private - */ - function coerce(val) { - if (val instanceof Error) { - return val.stack || val.message; - } - return val; - } + if (data.hasOwnProperty('event-type')) { + obj['event-type'] = _ApiClient["default"].convertToType(data['event-type'], 'String'); + } - /** - * XXX DO NOT USE. This is a temporary stub function. - * XXX It WILL be removed in the next major release. - */ - function destroy() { - console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); - } + if (data.hasOwnProperty('item-name')) { + obj['item-name'] = _ApiClient["default"].convertToType(data['item-name'], 'String'); + } - createDebug.enable(createDebug.load()); + if (data.hasOwnProperty('item-type')) { + obj['item-type'] = _ApiClient["default"].convertToType(data['item-type'], 'String'); + } - return createDebug; -} + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -module.exports = setup; + if (data.hasOwnProperty('time-back')) { + obj['time-back'] = _ApiClient["default"].convertToType(data['time-back'], 'String'); + } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } -/***/ 2830: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + return obj; + } + }]); + return GetLastUserEventStatus; +}(); /** - * Detect Electron renderer / nwjs process, which is node, but we should - * treat as a browser. + * @member {String} event-source */ -if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { - module.exports = __nccwpck_require__(6110); -} else { - module.exports = __nccwpck_require__(95108); -} - -/***/ }), +GetLastUserEventStatus.prototype['event-source'] = undefined; +/** + * @member {String} event-type + */ -/***/ 95108: -/***/ ((module, exports, __nccwpck_require__) => { +GetLastUserEventStatus.prototype['event-type'] = undefined; +/** + * Event item name + * @member {String} item-name + */ +GetLastUserEventStatus.prototype['item-name'] = undefined; /** - * Module dependencies. + * Event item type can be either \"target\" or type of item eg \"static_secret\"/\"dynamic_secret\" To get type of some item run `akeyless describe-item -n {ITEM_NAME} --jq-expression .item_type` + * @member {String} item-type */ -const tty = __nccwpck_require__(52018); -const util = __nccwpck_require__(39023); +GetLastUserEventStatus.prototype['item-type'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ +GetLastUserEventStatus.prototype['json'] = false; /** - * This is the Node.js implementation of `debug()`. + * The time back to search the event, for example if the value is \"5m\" we will return the last user event issued in the last 5 minutes. By default, we will search without any time boundary. + * @member {String} time-back */ -exports.init = init; -exports.log = log; -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; -exports.destroy = util.deprecate( - () => {}, - 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.' -); +GetLastUserEventStatus.prototype['time-back'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ +GetLastUserEventStatus.prototype['token'] = undefined; /** - * Colors. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -exports.colors = [6, 2, 3, 4, 5, 1]; +GetLastUserEventStatus.prototype['uid-token'] = undefined; +var _default = GetLastUserEventStatus; +exports["default"] = _default; -try { - // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json) - // eslint-disable-next-line import/no-extraneous-dependencies - const supportsColor = __nccwpck_require__(21450); +/***/ }), - if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { - exports.colors = [ - 20, - 21, - 26, - 27, - 32, - 33, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 56, - 57, - 62, - 63, - 68, - 69, - 74, - 75, - 76, - 77, - 78, - 79, - 80, - 81, - 92, - 93, - 98, - 99, - 112, - 113, - 128, - 129, - 134, - 135, - 148, - 149, - 160, - 161, - 162, - 163, - 164, - 165, - 166, - 167, - 168, - 169, - 170, - 171, - 172, - 173, - 178, - 179, - 184, - 185, - 196, - 197, - 198, - 199, - 200, - 201, - 202, - 203, - 204, - 205, - 206, - 207, - 208, - 209, - 214, - 215, - 220, - 221 - ]; - } -} catch (error) { - // Swallow - we only care if `supports-color` is available; it doesn't have to be. -} +/***/ 8453: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** - * Build up the default `inspectOpts` object from the environment variables. - * - * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js - */ +"use strict"; -exports.inspectOpts = Object.keys(process.env).filter(key => { - return /^debug_/i.test(key); -}).reduce((obj, key) => { - // Camel-case - const prop = key - .substring(6) - .toLowerCase() - .replace(/_([a-z])/g, (_, k) => { - return k.toUpperCase(); - }); - // Coerce string value into JS value - let val = process.env[key]; - if (/^(yes|on|true|enabled)$/i.test(val)) { - val = true; - } else if (/^(no|off|false|disabled)$/i.test(val)) { - val = false; - } else if (val === 'null') { - val = null; - } else { - val = Number(val); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - obj[prop] = val; - return obj; -}, {}); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/** - * Is stdout a TTY? Colored output is enabled when `true`. - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function useColors() { - return 'colors' in exports.inspectOpts ? - Boolean(exports.inspectOpts.colors) : - tty.isatty(process.stderr.fd); -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Adds ANSI color escape codes if enabled. - * - * @api public + * The GetPKICertificate model module. + * @module model/GetPKICertificate + * @version 3.6.3 */ +var GetPKICertificate = /*#__PURE__*/function () { + /** + * Constructs a new GetPKICertificate. + * @alias module:model/GetPKICertificate + * @param certIssuerName {String} The name of the PKI certificate issuer + */ + function GetPKICertificate(certIssuerName) { + _classCallCheck(this, GetPKICertificate); -function formatArgs(args) { - const {namespace: name, useColors} = this; + GetPKICertificate.initialize(this, certIssuerName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (useColors) { - const c = this.color; - const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c); - const prefix = ` ${colorCode};1m${name} \u001B[0m`; - args[0] = prefix + args[0].split('\n').join('\n' + prefix); - args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m'); - } else { - args[0] = getDate() + name + ' ' + args[0]; - } -} + _createClass(GetPKICertificate, null, [{ + key: "initialize", + value: function initialize(obj, certIssuerName) { + obj['cert-issuer-name'] = certIssuerName; + } + /** + * Constructs a GetPKICertificate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetPKICertificate} obj Optional instance to populate. + * @return {module:model/GetPKICertificate} The populated GetPKICertificate instance. + */ -function getDate() { - if (exports.inspectOpts.hideDate) { - return ''; - } - return new Date().toISOString() + ' '; -} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetPKICertificate(); + + if (data.hasOwnProperty('alt-names')) { + obj['alt-names'] = _ApiClient["default"].convertToType(data['alt-names'], 'String'); + } + + if (data.hasOwnProperty('cert-issuer-name')) { + obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); + } + if (data.hasOwnProperty('common-name')) { + obj['common-name'] = _ApiClient["default"].convertToType(data['common-name'], 'String'); + } + + if (data.hasOwnProperty('csr-data-base64')) { + obj['csr-data-base64'] = _ApiClient["default"].convertToType(data['csr-data-base64'], 'String'); + } + + if (data.hasOwnProperty('extended-key-usage')) { + obj['extended-key-usage'] = _ApiClient["default"].convertToType(data['extended-key-usage'], 'String'); + } + + if (data.hasOwnProperty('extra-extensions')) { + obj['extra-extensions'] = _ApiClient["default"].convertToType(data['extra-extensions'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-data-base64')) { + obj['key-data-base64'] = _ApiClient["default"].convertToType(data['key-data-base64'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('uri-sans')) { + obj['uri-sans'] = _ApiClient["default"].convertToType(data['uri-sans'], 'String'); + } + } + + return obj; + } + }]); + + return GetPKICertificate; +}(); /** - * Invokes `util.format()` with the specified arguments and writes to stderr. + * The Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any DNS.* names are taken from it) + * @member {String} alt-names */ -function log(...args) { - return process.stderr.write(util.format(...args) + '\n'); -} +GetPKICertificate.prototype['alt-names'] = undefined; /** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private + * The name of the PKI certificate issuer + * @member {String} cert-issuer-name */ -function save(namespaces) { - if (namespaces) { - process.env.DEBUG = namespaces; - } else { - // If you set a process.env field to null or undefined, it gets cast to the - // string 'null' or 'undefined'. Just delete instead. - delete process.env.DEBUG; - } -} +GetPKICertificate.prototype['cert-issuer-name'] = undefined; /** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private + * The common name to be included in the PKI certificate (if CSR is supplied this flag is ignored and the CSR subject CN is taken) + * @member {String} common-name */ -function load() { - return process.env.DEBUG; -} - +GetPKICertificate.prototype['common-name'] = undefined; /** - * Init logic for `debug` instances. - * - * Create a new `inspectOpts` object in case `useColors` is set - * differently for a particular `debug` instance. + * Certificate Signing Request contents encoded in base64 to generate the certificate with + * @member {String} csr-data-base64 */ -function init(debug) { - debug.inspectOpts = {}; +GetPKICertificate.prototype['csr-data-base64'] = undefined; +/** + * A comma-separated list of extended key usage requests which will be used for certificate issuance. Supported values: 'clientauth', 'serverauth'. + * @member {String} extended-key-usage + */ - const keys = Object.keys(exports.inspectOpts); - for (let i = 0; i < keys.length; i++) { - debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; - } -} +GetPKICertificate.prototype['extended-key-usage'] = undefined; +/** + * A json string that defines the requested extra extensions for the certificate + * @member {String} extra-extensions + */ -module.exports = __nccwpck_require__(40897)(exports); +GetPKICertificate.prototype['extra-extensions'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -const {formatters} = module.exports; +GetPKICertificate.prototype['json'] = false; +/** + * PKI key file contents. If this option is used, the certificate will be printed to stdout + * @member {String} key-data-base64 + */ +GetPKICertificate.prototype['key-data-base64'] = undefined; /** - * Map %o to `util.inspect()`, all on a single line. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -formatters.o = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts) - .split('\n') - .map(str => str.trim()) - .join(' '); -}; +GetPKICertificate.prototype['token'] = undefined; +/** + * Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL) + * @member {Number} ttl + */ +GetPKICertificate.prototype['ttl'] = undefined; /** - * Map %O to `util.inspect()`, allowing multiple lines if needed. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -formatters.O = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts); -}; +GetPKICertificate.prototype['uid-token'] = undefined; +/** + * The URI Subject Alternative Names to be included in the PKI certificate (in a comma-separated list) (if CSR is supplied this flag is ignored and any URI.* names are taken from it) + * @member {String} uri-sans + */ +GetPKICertificate.prototype['uri-sans'] = undefined; +var _default = GetPKICertificate; +exports["default"] = _default; /***/ }), -/***/ 31316: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 1840: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var $defineProperty = __nccwpck_require__(79094); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var $SyntaxError = __nccwpck_require__(80105); -var $TypeError = __nccwpck_require__(73314); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -var gopd = __nccwpck_require__(33170); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/** @type {import('.')} */ -module.exports = function defineDataProperty( - obj, - property, - value -) { - if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) { - throw new $TypeError('`obj` must be an object or a function`'); - } - if (typeof property !== 'string' && typeof property !== 'symbol') { - throw new $TypeError('`property` must be a string or a symbol`'); - } - if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) { - throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null'); - } - if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) { - throw new $TypeError('`nonWritable`, if provided, must be a boolean or null'); - } - if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) { - throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null'); - } - if (arguments.length > 6 && typeof arguments[6] !== 'boolean') { - throw new $TypeError('`loose`, if provided, must be a boolean'); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var nonEnumerable = arguments.length > 3 ? arguments[3] : null; - var nonWritable = arguments.length > 4 ? arguments[4] : null; - var nonConfigurable = arguments.length > 5 ? arguments[5] : null; - var loose = arguments.length > 6 ? arguments[6] : false; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - /* @type {false | TypedPropertyDescriptor} */ - var desc = !!gopd && gopd(obj, property); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if ($defineProperty) { - $defineProperty(obj, property, { - configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable, - enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable, - value: value, - writable: nonWritable === null && desc ? desc.writable : !nonWritable - }); - } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) { - // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable - obj[property] = value; // eslint-disable-line no-param-reassign - } else { - throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.'); - } -}; +/** + * The GetPKICertificateOutput model module. + * @module model/GetPKICertificateOutput + * @version 3.6.3 + */ +var GetPKICertificateOutput = /*#__PURE__*/function () { + /** + * Constructs a new GetPKICertificateOutput. + * @alias module:model/GetPKICertificateOutput + */ + function GetPKICertificateOutput() { + _classCallCheck(this, GetPKICertificateOutput); + GetPKICertificateOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), -/***/ 72710: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + _createClass(GetPKICertificateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GetPKICertificateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetPKICertificateOutput} obj Optional instance to populate. + * @return {module:model/GetPKICertificateOutput} The populated GetPKICertificateOutput instance. + */ -var Stream = (__nccwpck_require__(2203).Stream); -var util = __nccwpck_require__(39023); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetPKICertificateOutput(); -module.exports = DelayedStream; -function DelayedStream() { - this.source = null; - this.dataSize = 0; - this.maxDataSize = 1024 * 1024; - this.pauseStream = true; + if (data.hasOwnProperty('cert_display_id')) { + obj['cert_display_id'] = _ApiClient["default"].convertToType(data['cert_display_id'], 'String'); + } - this._maxDataSizeExceeded = false; - this._released = false; - this._bufferedEvents = []; -} -util.inherits(DelayedStream, Stream); + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } -DelayedStream.create = function(source, options) { - var delayedStream = new this(); + if (data.hasOwnProperty('parent_cert')) { + obj['parent_cert'] = _ApiClient["default"].convertToType(data['parent_cert'], 'String'); + } - options = options || {}; - for (var option in options) { - delayedStream[option] = options[option]; - } + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } - delayedStream.source = source; + if (data.hasOwnProperty('reading_token')) { + obj['reading_token'] = _ApiClient["default"].convertToType(data['reading_token'], 'String'); + } + } - var realEmit = source.emit; - source.emit = function() { - delayedStream._handleEmit(arguments); - return realEmit.apply(source, arguments); - }; + return obj; + } + }]); - source.on('error', function() {}); - if (delayedStream.pauseStream) { - source.pause(); - } + return GetPKICertificateOutput; +}(); +/** + * @member {String} cert_display_id + */ - return delayedStream; -}; -Object.defineProperty(DelayedStream.prototype, 'readable', { - configurable: true, - enumerable: true, - get: function() { - return this.source.readable; - } -}); +GetPKICertificateOutput.prototype['cert_display_id'] = undefined; +/** + * @member {String} data + */ -DelayedStream.prototype.setEncoding = function() { - return this.source.setEncoding.apply(this.source, arguments); -}; +GetPKICertificateOutput.prototype['data'] = undefined; +/** + * @member {String} parent_cert + */ -DelayedStream.prototype.resume = function() { - if (!this._released) { - this.release(); - } +GetPKICertificateOutput.prototype['parent_cert'] = undefined; +/** + * @member {String} path + */ - this.source.resume(); -}; +GetPKICertificateOutput.prototype['path'] = undefined; +/** + * @member {String} reading_token + */ -DelayedStream.prototype.pause = function() { - this.source.pause(); -}; +GetPKICertificateOutput.prototype['reading_token'] = undefined; +var _default = GetPKICertificateOutput; +exports["default"] = _default; -DelayedStream.prototype.release = function() { - this._released = true; +/***/ }), - this._bufferedEvents.forEach(function(args) { - this.emit.apply(this, args); - }.bind(this)); - this._bufferedEvents = []; -}; +/***/ 43282: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -DelayedStream.prototype.pipe = function() { - var r = Stream.prototype.pipe.apply(this, arguments); - this.resume(); - return r; -}; +"use strict"; -DelayedStream.prototype._handleEmit = function(args) { - if (this._released) { - this.emit.apply(this, args); - return; - } - if (args[0] === 'data') { - this.dataSize += args[1].length; - this._checkIfMaxDataSizeExceeded(); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - this._bufferedEvents.push(args); -}; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() { - if (this._maxDataSizeExceeded) { - return; - } +var _Producer = _interopRequireDefault(__nccwpck_require__(11490)); - if (this.dataSize <= this.maxDataSize) { - return; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GetProducersListReplyObj model module. + * @module model/GetProducersListReplyObj + * @version 3.6.3 + */ +var GetProducersListReplyObj = /*#__PURE__*/function () { + /** + * Constructs a new GetProducersListReplyObj. + * @alias module:model/GetProducersListReplyObj + */ + function GetProducersListReplyObj() { + _classCallCheck(this, GetProducersListReplyObj); + + GetProducersListReplyObj.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - this._maxDataSizeExceeded = true; - var message = - 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.' - this.emit('error', new Error(message)); -}; + _createClass(GetProducersListReplyObj, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GetProducersListReplyObj from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetProducersListReplyObj} obj Optional instance to populate. + * @return {module:model/GetProducersListReplyObj} The populated GetProducersListReplyObj instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetProducersListReplyObj(); + + if (data.hasOwnProperty('producers')) { + obj['producers'] = _ApiClient["default"].convertToType(data['producers'], [_Producer["default"]]); + } + + if (data.hasOwnProperty('producers_errors')) { + obj['producers_errors'] = _ApiClient["default"].convertToType(data['producers_errors'], Object); + } + } + + return obj; + } + }]); + + return GetProducersListReplyObj; +}(); +/** + * @member {Array.} producers + */ + + +GetProducersListReplyObj.prototype['producers'] = undefined; +/** + * @member {Object} producers_errors + */ + +GetProducersListReplyObj.prototype['producers_errors'] = undefined; +var _default = GetProducersListReplyObj; +exports["default"] = _default; /***/ }), -/***/ 26669: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 4599: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var callBind = __nccwpck_require__(88705); -var gOPD = __nccwpck_require__(33170); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var hasProtoAccessor; -try { - // eslint-disable-next-line no-extra-parens, no-proto - hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype; -} catch (e) { - if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') { - throw e; - } -} +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -// eslint-disable-next-line no-extra-parens -var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__')); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var $Object = Object; -var $getPrototypeOf = $Object.getPrototypeOf; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/** @type {import('./get')} */ -module.exports = desc && typeof desc.get === 'function' - ? callBind([desc.get]) - : typeof $getPrototypeOf === 'function' - ? /** @type {import('./get')} */ function getDunder(value) { - // eslint-disable-next-line eqeqeq - return $getPrototypeOf(value == null ? value : $Object(value)); - } - : false; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -/***/ }), +/** + * The GetRSAPublic model module. + * @module model/GetRSAPublic + * @version 3.6.3 + */ +var GetRSAPublic = /*#__PURE__*/function () { + /** + * Constructs a new GetRSAPublic. + * getRSAPublic is a command that obtains the public key from a specific RSA private key. + * @alias module:model/GetRSAPublic + * @param name {String} Name of RSA key to extract the public key from + */ + function GetRSAPublic(name) { + _classCallCheck(this, GetRSAPublic); -/***/ 29112: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + GetRSAPublic.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var stream = __nccwpck_require__(29843) -var eos = __nccwpck_require__(31424) -var inherits = __nccwpck_require__(39598) -var shift = __nccwpck_require__(34633) -var SIGNAL_FLUSH = (Buffer.from && Buffer.from !== Uint8Array.from) - ? Buffer.from([0]) - : new Buffer([0]) + _createClass(GetRSAPublic, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GetRSAPublic from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetRSAPublic} obj Optional instance to populate. + * @return {module:model/GetRSAPublic} The populated GetRSAPublic instance. + */ -var onuncork = function(self, fn) { - if (self._corked) self.once('uncork', fn) - else fn() -} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetRSAPublic(); -var autoDestroy = function (self, err) { - if (self._autoDestroy) self.destroy(err) -} + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var destroyer = function(self, end) { - return function(err) { - if (err) autoDestroy(self, err.message === 'premature close' ? null : err) - else if (end && !self._ended) self.end() - } -} + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var end = function(ws, fn) { - if (!ws) return fn() - if (ws._writableState && ws._writableState.finished) return fn() - if (ws._writableState) return ws.end(fn) - ws.end() - fn() -} + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var noop = function() {} + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } -var toStreams2 = function(rs) { - return new (stream.Readable)({objectMode:true, highWaterMark:16}).wrap(rs) -} + return obj; + } + }]); -var Duplexify = function(writable, readable, opts) { - if (!(this instanceof Duplexify)) return new Duplexify(writable, readable, opts) - stream.Duplex.call(this, opts) + return GetRSAPublic; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - this._writable = null - this._readable = null - this._readable2 = null - this._autoDestroy = !opts || opts.autoDestroy !== false - this._forwardDestroy = !opts || opts.destroy !== false - this._forwardEnd = !opts || opts.end !== false - this._corked = 1 // start corked - this._ondrain = null - this._drained = false - this._forwarding = false - this._unwrite = null - this._unread = null - this._ended = false +GetRSAPublic.prototype['json'] = false; +/** + * Name of RSA key to extract the public key from + * @member {String} name + */ - this.destroyed = false +GetRSAPublic.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - if (writable) this.setWritable(writable) - if (readable) this.setReadable(readable) -} +GetRSAPublic.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -inherits(Duplexify, stream.Duplex) +GetRSAPublic.prototype['uid-token'] = undefined; +var _default = GetRSAPublic; +exports["default"] = _default; -Duplexify.obj = function(writable, readable, opts) { - if (!opts) opts = {} - opts.objectMode = true - opts.highWaterMark = 16 - return new Duplexify(writable, readable, opts) -} +/***/ }), -Duplexify.prototype.cork = function() { - if (++this._corked === 1) this.emit('cork') -} +/***/ 71534: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -Duplexify.prototype.uncork = function() { - if (this._corked && --this._corked === 0) this.emit('uncork') -} +"use strict"; -Duplexify.prototype.setWritable = function(writable) { - if (this._unwrite) this._unwrite() - if (this.destroyed) { - if (writable && writable.destroy) writable.destroy() - return - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (writable === null || writable === false) { - this.end() - return +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GetRSAPublicOutput model module. + * @module model/GetRSAPublicOutput + * @version 3.6.3 + */ +var GetRSAPublicOutput = /*#__PURE__*/function () { + /** + * Constructs a new GetRSAPublicOutput. + * @alias module:model/GetRSAPublicOutput + */ + function GetRSAPublicOutput() { + _classCallCheck(this, GetRSAPublicOutput); + + GetRSAPublicOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + - var self = this - var unend = eos(writable, {writable:true, readable:false}, destroyer(this, this._forwardEnd)) + _createClass(GetRSAPublicOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GetRSAPublicOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetRSAPublicOutput} obj Optional instance to populate. + * @return {module:model/GetRSAPublicOutput} The populated GetRSAPublicOutput instance. + */ - var ondrain = function() { - var ondrain = self._ondrain - self._ondrain = null - if (ondrain) ondrain() - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetRSAPublicOutput(); - var clear = function() { - self._writable.removeListener('drain', ondrain) - unend() - } + if (data.hasOwnProperty('pem')) { + obj['pem'] = _ApiClient["default"].convertToType(data['pem'], 'String'); + } - if (this._unwrite) process.nextTick(ondrain) // force a drain on stream reset to avoid livelocks + if (data.hasOwnProperty('raw')) { + obj['raw'] = _ApiClient["default"].convertToType(data['raw'], 'String'); + } - this._writable = writable - this._writable.on('drain', ondrain) - this._unwrite = clear + if (data.hasOwnProperty('ssh')) { + obj['ssh'] = _ApiClient["default"].convertToType(data['ssh'], 'String'); + } + } - this.uncork() // always uncork setWritable -} + return obj; + } + }]); -Duplexify.prototype.setReadable = function(readable) { - if (this._unread) this._unread() + return GetRSAPublicOutput; +}(); +/** + * @member {String} pem + */ - if (this.destroyed) { - if (readable && readable.destroy) readable.destroy() - return - } - if (readable === null || readable === false) { - this.push(null) - this.resume() - return - } +GetRSAPublicOutput.prototype['pem'] = undefined; +/** + * @member {String} raw + */ - var self = this - var unend = eos(readable, {writable:false, readable:true}, destroyer(this)) +GetRSAPublicOutput.prototype['raw'] = undefined; +/** + * @member {String} ssh + */ - var onreadable = function() { - self._forward() - } +GetRSAPublicOutput.prototype['ssh'] = undefined; +var _default = GetRSAPublicOutput; +exports["default"] = _default; - var onend = function() { - self.push(null) - } +/***/ }), - var clear = function() { - self._readable2.removeListener('readable', onreadable) - self._readable2.removeListener('end', onend) - unend() - } +/***/ 19262: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - this._drained = true - this._readable = readable - this._readable2 = readable._readableState ? readable : toStreams2(readable) - this._readable2.on('readable', onreadable) - this._readable2.on('end', onend) - this._unread = clear +"use strict"; - this._forward() -} -Duplexify.prototype._read = function() { - this._drained = true - this._forward() -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -Duplexify.prototype._forward = function() { - if (this._forwarding || !this._readable2 || !this._drained) return - this._forwarding = true +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - var data +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - while (this._drained && (data = shift(this._readable2)) !== null) { - if (this.destroyed) continue - this._drained = this.push(data) - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - this._forwarding = false -} +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -Duplexify.prototype.destroy = function(err, cb) { - if (!cb) cb = noop - if (this.destroyed) return cb(null) - this.destroyed = true +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - var self = this - process.nextTick(function() { - self._destroy(err) - cb(null) - }) -} +/** + * The GetRole model module. + * @module model/GetRole + * @version 3.6.3 + */ +var GetRole = /*#__PURE__*/function () { + /** + * Constructs a new GetRole. + * @alias module:model/GetRole + * @param name {String} Role name + */ + function GetRole(name) { + _classCallCheck(this, GetRole); -Duplexify.prototype._destroy = function(err) { - if (err) { - var ondrain = this._ondrain - this._ondrain = null - if (ondrain) ondrain(err) - else this.emit('error', err) + GetRole.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (this._forwardDestroy) { - if (this._readable && this._readable.destroy) this._readable.destroy() - if (this._writable && this._writable.destroy) this._writable.destroy() - } - this.emit('close') -} + _createClass(GetRole, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GetRole from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetRole} obj Optional instance to populate. + * @return {module:model/GetRole} The populated GetRole instance. + */ -Duplexify.prototype._write = function(data, enc, cb) { - if (this.destroyed) return - if (this._corked) return onuncork(this, this._write.bind(this, data, enc, cb)) - if (data === SIGNAL_FLUSH) return this._finish(cb) - if (!this._writable) return cb() + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetRole(); - if (this._writable.write(data) === false) this._ondrain = cb - else if (!this.destroyed) cb() -} + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -Duplexify.prototype._finish = function(cb) { - var self = this - this.emit('preend') - onuncork(this, function() { - end(self._forwardEnd && self._writable, function() { - // haxx to not emit prefinish twice - if (self._writableState.prefinished === false) self._writableState.prefinished = true - self.emit('prefinish') - onuncork(self, cb) - }) - }) -} + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -Duplexify.prototype.end = function(data, enc, cb) { - if (typeof data === 'function') return this.end(null, null, data) - if (typeof enc === 'function') return this.end(data, null, enc) - this._ended = true - if (data) this.write(data) - if (!this._writableState.ending && !this._writableState.destroyed) this.write(SIGNAL_FLUSH) - return stream.Writable.prototype.end.call(this, cb) -} + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -module.exports = Duplexify + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + return obj; + } + }]); -/***/ }), + return GetRole; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ 58940: -/***/ ((module) => { -"use strict"; +GetRole.prototype['json'] = false; +/** + * Role name + * @member {String} name + */ +GetRole.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -const codes = {}; +GetRole.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -function createErrorType(code, message, Base) { - if (!Base) { - Base = Error - } +GetRole.prototype['uid-token'] = undefined; +var _default = GetRole; +exports["default"] = _default; - function getMessage (arg1, arg2, arg3) { - if (typeof message === 'string') { - return message - } else { - return message(arg1, arg2, arg3) - } - } +/***/ }), - class NodeError extends Base { - constructor (arg1, arg2, arg3) { - super(getMessage(arg1, arg2, arg3)); - } - } +/***/ 14948: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - NodeError.prototype.name = Base.name; - NodeError.prototype.code = code; +"use strict"; - codes[code] = NodeError; -} -// https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js -function oneOf(expected, thing) { - if (Array.isArray(expected)) { - const len = expected.length; - expected = expected.map((i) => String(i)); - if (len > 2) { - return `one of ${thing} ${expected.slice(0, len - 1).join(', ')}, or ` + - expected[len - 1]; - } else if (len === 2) { - return `one of ${thing} ${expected[0]} or ${expected[1]}`; - } else { - return `of ${thing} ${expected[0]}`; - } - } else { - return `of ${thing} ${String(expected)}`; - } -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith -function startsWith(str, search, pos) { - return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search; -} +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith -function endsWith(str, search, this_len) { - if (this_len === undefined || this_len > str.length) { - this_len = str.length; - } - return str.substring(this_len - search.length, this_len) === search; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes -function includes(str, search, start) { - if (typeof start !== 'number') { - start = 0; - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (start + search.length > str.length) { - return false; - } else { - return str.indexOf(search, start) !== -1; - } -} +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -createErrorType('ERR_INVALID_OPT_VALUE', function (name, value) { - return 'The value "' + value + '" is invalid for option "' + name + '"' -}, TypeError); -createErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) { - // determiner: 'must be' or 'must not be' - let determiner; - if (typeof expected === 'string' && startsWith(expected, 'not ')) { - determiner = 'must not be'; - expected = expected.replace(/^not /, ''); - } else { - determiner = 'must be'; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - let msg; - if (endsWith(name, ' argument')) { - // For cases like 'first argument' - msg = `The ${name} ${determiner} ${oneOf(expected, 'type')}`; - } else { - const type = includes(name, '.') ? 'property' : 'argument'; - msg = `The "${name}" ${type} ${determiner} ${oneOf(expected, 'type')}`; +/** + * The GetRotatedSecretValue model module. + * @module model/GetRotatedSecretValue + * @version 3.6.3 + */ +var GetRotatedSecretValue = /*#__PURE__*/function () { + /** + * Constructs a new GetRotatedSecretValue. + * getRotatedSecretValue is a command that creates a new Akeyless profile. [Deprecated: Use rotated-secret get-value command] + * @alias module:model/GetRotatedSecretValue + * @param names {String} Secret name + */ + function GetRotatedSecretValue(names) { + _classCallCheck(this, GetRotatedSecretValue); + + GetRotatedSecretValue.initialize(this, names); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - msg += `. Received type ${typeof actual}`; - return msg; -}, TypeError); -createErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF'); -createErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) { - return 'The ' + name + ' method is not implemented' -}); -createErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close'); -createErrorType('ERR_STREAM_DESTROYED', function (name) { - return 'Cannot call ' + name + ' after a stream was destroyed'; -}); -createErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times'); -createErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable'); -createErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end'); -createErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError); -createErrorType('ERR_UNKNOWN_ENCODING', function (arg) { - return 'Unknown encoding: ' + arg -}, TypeError); -createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event'); -module.exports.F = codes; + _createClass(GetRotatedSecretValue, null, [{ + key: "initialize", + value: function initialize(obj, names) { + obj['names'] = names; + } + /** + * Constructs a GetRotatedSecretValue from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetRotatedSecretValue} obj Optional instance to populate. + * @return {module:model/GetRotatedSecretValue} The populated GetRotatedSecretValue instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetRotatedSecretValue(); -/***/ }), + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } -/***/ 60175: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('ignore-cache')) { + obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); + } -"use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -// a duplex stream is just a stream that is both readable and writable. -// Since JS doesn't have multiple prototypal inheritance, this class -// prototypally inherits from Readable, and then parasitically from -// Writable. + if (data.hasOwnProperty('names')) { + obj['names'] = _ApiClient["default"].convertToType(data['names'], 'String'); + } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -/**/ -var objectKeys = Object.keys || function (obj) { - var keys = []; - for (var key in obj) keys.push(key); - return keys; -}; -/**/ + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } -module.exports = Duplex; -var Readable = __nccwpck_require__(45869); -var Writable = __nccwpck_require__(1805); -__nccwpck_require__(39598)(Duplex, Readable); -{ - // Allow the keys array to be GC'ed. - var keys = objectKeys(Writable.prototype); - for (var v = 0; v < keys.length; v++) { - var method = keys[v]; - if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; - } -} -function Duplex(options) { - if (!(this instanceof Duplex)) return new Duplex(options); - Readable.call(this, options); - Writable.call(this, options); - this.allowHalfOpen = true; - if (options) { - if (options.readable === false) this.readable = false; - if (options.writable === false) this.writable = false; - if (options.allowHalfOpen === false) { - this.allowHalfOpen = false; - this.once('end', onend); + return obj; } - } -} -Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._writableState.highWaterMark; - } -}); -Object.defineProperty(Duplex.prototype, 'writableBuffer', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._writableState && this._writableState.getBuffer(); - } -}); -Object.defineProperty(Duplex.prototype, 'writableLength', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._writableState.length; - } -}); - -// the no-half-open enforcer -function onend() { - // If the writable side ended, then we're ok. - if (this._writableState.ended) return; + }]); - // no more data can be written. - // But allow more writes to happen in this tick. - process.nextTick(onEndNT, this); -} -function onEndNT(self) { - self.end(); -} -Object.defineProperty(Duplex.prototype, 'destroyed', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - if (this._readableState === undefined || this._writableState === undefined) { - return false; - } - return this._readableState.destroyed && this._writableState.destroyed; - }, - set: function set(value) { - // we ignore the value if the stream - // has not been initialized yet - if (this._readableState === undefined || this._writableState === undefined) { - return; - } + return GetRotatedSecretValue; +}(); +/** + * Get rotated secret value of specific Host (relevant only for Linked Target) + * @member {String} host + */ - // backward compatibility, the user is explicitly - // managing destroyed - this._readableState.destroyed = value; - this._writableState.destroyed = value; - } -}); -/***/ }), +GetRotatedSecretValue.prototype['host'] = undefined; +/** + * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI + * @member {String} ignore-cache + * @default 'false' + */ -/***/ 59379: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +GetRotatedSecretValue.prototype['ignore-cache'] = 'false'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -"use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. +GetRotatedSecretValue.prototype['json'] = false; +/** + * Secret name + * @member {String} names + */ -// a passthrough stream. -// basically just the most minimal sort of Transform stream. -// Every written chunk gets output as-is. +GetRotatedSecretValue.prototype['names'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ +GetRotatedSecretValue.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +GetRotatedSecretValue.prototype['uid-token'] = undefined; +/** + * Secret version + * @member {Number} version + */ -module.exports = PassThrough; -var Transform = __nccwpck_require__(69329); -__nccwpck_require__(39598)(PassThrough, Transform); -function PassThrough(options) { - if (!(this instanceof PassThrough)) return new PassThrough(options); - Transform.call(this, options); -} -PassThrough.prototype._transform = function (chunk, encoding, cb) { - cb(null, chunk); -}; +GetRotatedSecretValue.prototype['version'] = undefined; +var _default = GetRotatedSecretValue; +exports["default"] = _default; /***/ }), -/***/ 45869: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 95215: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -module.exports = Readable; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/**/ -var Duplex; -/**/ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -Readable.ReadableState = ReadableState; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/**/ -var EE = (__nccwpck_require__(24434).EventEmitter); -var EElistenerCount = function EElistenerCount(emitter, type) { - return emitter.listeners(type).length; -}; -/**/ +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/**/ -var Stream = __nccwpck_require__(94291); -/**/ +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var Buffer = (__nccwpck_require__(20181).Buffer); -var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}; -function _uint8ArrayToBuffer(chunk) { - return Buffer.from(chunk); -} -function _isUint8Array(obj) { - return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; -} +/** + * The GetSSHCertificate model module. + * @module model/GetSSHCertificate + * @version 3.6.3 + */ +var GetSSHCertificate = /*#__PURE__*/function () { + /** + * Constructs a new GetSSHCertificate. + * @alias module:model/GetSSHCertificate + * @param certIssuerName {String} The name of the SSH certificate issuer + * @param certUsername {String} The username to sign in the SSH certificate + */ + function GetSSHCertificate(certIssuerName, certUsername) { + _classCallCheck(this, GetSSHCertificate); -/**/ -var debugUtil = __nccwpck_require__(39023); -var debug; -if (debugUtil && debugUtil.debuglog) { - debug = debugUtil.debuglog('stream'); -} else { - debug = function debug() {}; -} -/**/ + GetSSHCertificate.initialize(this, certIssuerName, certUsername); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var BufferList = __nccwpck_require__(82027); -var destroyImpl = __nccwpck_require__(91457); -var _require = __nccwpck_require__(6394), - getHighWaterMark = _require.getHighWaterMark; -var _require$codes = (__nccwpck_require__(58940)/* .codes */ .F), - ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, - ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF, - ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, - ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; -// Lazy loaded to improve the startup performance. -var StringDecoder; -var createReadableStreamAsyncIterator; -var from; -__nccwpck_require__(39598)(Readable, Stream); -var errorOrDestroy = destroyImpl.errorOrDestroy; -var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume']; -function prependListener(emitter, event, fn) { - // Sadly this is not cacheable as some libraries bundle their own - // event emitter implementation with them. - if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); + _createClass(GetSSHCertificate, null, [{ + key: "initialize", + value: function initialize(obj, certIssuerName, certUsername) { + obj['cert-issuer-name'] = certIssuerName; + obj['cert-username'] = certUsername; + } + /** + * Constructs a GetSSHCertificate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetSSHCertificate} obj Optional instance to populate. + * @return {module:model/GetSSHCertificate} The populated GetSSHCertificate instance. + */ - // This is a hack to make sure that our error handler is attached before any - // userland ones. NEVER DO THIS. This is here only because this code needs - // to continue to work with older versions of Node.js that do not include - // the prependListener() method. The goal is to eventually remove this hack. - if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]]; -} -function ReadableState(options, stream, isDuplex) { - Duplex = Duplex || __nccwpck_require__(60175); - options = options || {}; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetSSHCertificate(); - // Duplex streams are both readable and writable, but share - // the same options object. - // However, some cases require setting options to different - // values for the readable and the writable sides of the duplex stream. - // These options can be provided separately as readableXXX and writableXXX. - if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; + if (data.hasOwnProperty('cert-issuer-name')) { + obj['cert-issuer-name'] = _ApiClient["default"].convertToType(data['cert-issuer-name'], 'String'); + } - // object stream flag. Used to make read(n) ignore n and to - // make all the buffer merging and length checks go away - this.objectMode = !!options.objectMode; - if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; + if (data.hasOwnProperty('cert-username')) { + obj['cert-username'] = _ApiClient["default"].convertToType(data['cert-username'], 'String'); + } - // the point at which it stops calling _read() to fill the buffer - // Note: 0 is a valid value, means "don't call _read preemptively ever" - this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - // A linked list is used to store data chunks instead of an array because the - // linked list can remove elements from the beginning faster than - // array.shift() - this.buffer = new BufferList(); - this.length = 0; - this.pipes = null; - this.pipesCount = 0; - this.flowing = null; - this.ended = false; - this.endEmitted = false; - this.reading = false; + if (data.hasOwnProperty('legacy-signing-alg-name')) { + obj['legacy-signing-alg-name'] = _ApiClient["default"].convertToType(data['legacy-signing-alg-name'], 'Boolean'); + } - // a flag to be able to tell if the event 'readable'/'data' is emitted - // immediately, or on a later tick. We set this to true at first, because - // any actions that shouldn't happen until "later" should generally also - // not happen before the first read call. - this.sync = true; + if (data.hasOwnProperty('public-key-data')) { + obj['public-key-data'] = _ApiClient["default"].convertToType(data['public-key-data'], 'String'); + } - // whenever we return null, then we set a flag to say - // that we're awaiting a 'readable' event emission. - this.needReadable = false; - this.emittedReadable = false; - this.readableListening = false; - this.resumeScheduled = false; - this.paused = true; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - // Should close be emitted on destroy. Defaults to true. - this.emitClose = options.emitClose !== false; + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } - // Should .destroy() be called after 'end' (and potentially 'finish') - this.autoDestroy = !!options.autoDestroy; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - // has it been destroyed - this.destroyed = false; + return obj; + } + }]); - // Crypto is kind of old and crusty. Historically, its default string - // encoding is 'binary' so we have to make this configurable. - // Everything else in the universe uses 'utf8', though. - this.defaultEncoding = options.defaultEncoding || 'utf8'; + return GetSSHCertificate; +}(); +/** + * The name of the SSH certificate issuer + * @member {String} cert-issuer-name + */ - // the number of writers that are awaiting a drain event in .pipe()s - this.awaitDrain = 0; - // if true, a maybeReadMore has been scheduled - this.readingMore = false; - this.decoder = null; - this.encoding = null; - if (options.encoding) { - if (!StringDecoder) StringDecoder = (__nccwpck_require__(80634)/* .StringDecoder */ .I); - this.decoder = new StringDecoder(options.encoding); - this.encoding = options.encoding; - } -} -function Readable(options) { - Duplex = Duplex || __nccwpck_require__(60175); - if (!(this instanceof Readable)) return new Readable(options); +GetSSHCertificate.prototype['cert-issuer-name'] = undefined; +/** + * The username to sign in the SSH certificate + * @member {String} cert-username + */ - // Checking for a Stream.Duplex instance is faster here instead of inside - // the ReadableState constructor, at least with V8 6.5 - var isDuplex = this instanceof Duplex; - this._readableState = new ReadableState(options, this, isDuplex); +GetSSHCertificate.prototype['cert-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - // legacy - this.readable = true; - if (options) { - if (typeof options.read === 'function') this._read = options.read; - if (typeof options.destroy === 'function') this._destroy = options.destroy; - } - Stream.call(this); -} -Object.defineProperty(Readable.prototype, 'destroyed', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - if (this._readableState === undefined) { - return false; - } - return this._readableState.destroyed; - }, - set: function set(value) { - // we ignore the value if the stream - // has not been initialized yet - if (!this._readableState) { - return; - } +GetSSHCertificate.prototype['json'] = false; +/** + * Set this option to output legacy ('ssh-rsa-cert-v01@openssh.com') signing algorithm name in the certificate. + * @member {Boolean} legacy-signing-alg-name + * @default false + */ - // backward compatibility, the user is explicitly - // managing destroyed - this._readableState.destroyed = value; - } -}); -Readable.prototype.destroy = destroyImpl.destroy; -Readable.prototype._undestroy = destroyImpl.undestroy; -Readable.prototype._destroy = function (err, cb) { - cb(err); -}; +GetSSHCertificate.prototype['legacy-signing-alg-name'] = false; +/** + * SSH public key file contents. If this option is used, the certificate will be printed to stdout + * @member {String} public-key-data + */ -// Manually shove something into the read() buffer. -// This returns true if the highWaterMark has not been hit yet, -// similar to how Writable.write() returns true if you should -// write() some more. -Readable.prototype.push = function (chunk, encoding) { - var state = this._readableState; - var skipChunkCheck; - if (!state.objectMode) { - if (typeof chunk === 'string') { - encoding = encoding || state.defaultEncoding; - if (encoding !== state.encoding) { - chunk = Buffer.from(chunk, encoding); - encoding = ''; - } - skipChunkCheck = true; - } - } else { - skipChunkCheck = true; - } - return readableAddChunk(this, chunk, encoding, false, skipChunkCheck); -}; +GetSSHCertificate.prototype['public-key-data'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -// Unshift should *always* be something directly out of read() -Readable.prototype.unshift = function (chunk) { - return readableAddChunk(this, chunk, null, true, false); -}; -function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) { - debug('readableAddChunk', chunk); - var state = stream._readableState; - if (chunk === null) { - state.reading = false; - onEofChunk(stream, state); - } else { - var er; - if (!skipChunkCheck) er = chunkInvalid(state, chunk); - if (er) { - errorOrDestroy(stream, er); - } else if (state.objectMode || chunk && chunk.length > 0) { - if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) { - chunk = _uint8ArrayToBuffer(chunk); - } - if (addToFront) { - if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true); - } else if (state.ended) { - errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF()); - } else if (state.destroyed) { - return false; - } else { - state.reading = false; - if (state.decoder && !encoding) { - chunk = state.decoder.write(chunk); - if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state); - } else { - addChunk(stream, state, chunk, false); - } - } - } else if (!addToFront) { - state.reading = false; - maybeReadMore(stream, state); - } - } +GetSSHCertificate.prototype['token'] = undefined; +/** + * Updated certificate lifetime in seconds (must be less than the Certificate Issuer default TTL) + * @member {Number} ttl + */ - // We can push more data if we are below the highWaterMark. - // Also, if we have no data yet, we can stand some more bytes. - // This is to work around cases where hwm=0, such as the repl. - return !state.ended && (state.length < state.highWaterMark || state.length === 0); -} -function addChunk(stream, state, chunk, addToFront) { - if (state.flowing && state.length === 0 && !state.sync) { - state.awaitDrain = 0; - stream.emit('data', chunk); - } else { - // update the buffer info. - state.length += state.objectMode ? 1 : chunk.length; - if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); - if (state.needReadable) emitReadable(stream); - } - maybeReadMore(stream, state); -} -function chunkInvalid(state, chunk) { - var er; - if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { - er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk); - } - return er; -} -Readable.prototype.isPaused = function () { - return this._readableState.flowing === false; -}; +GetSSHCertificate.prototype['ttl'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -// backwards compatibility. -Readable.prototype.setEncoding = function (enc) { - if (!StringDecoder) StringDecoder = (__nccwpck_require__(80634)/* .StringDecoder */ .I); - var decoder = new StringDecoder(enc); - this._readableState.decoder = decoder; - // If setEncoding(null), decoder.encoding equals utf8 - this._readableState.encoding = this._readableState.decoder.encoding; +GetSSHCertificate.prototype['uid-token'] = undefined; +var _default = GetSSHCertificate; +exports["default"] = _default; - // Iterate over current buffer to convert already stored Buffers: - var p = this._readableState.buffer.head; - var content = ''; - while (p !== null) { - content += decoder.write(p.data); - p = p.next; - } - this._readableState.buffer.clear(); - if (content !== '') this._readableState.buffer.push(content); - this._readableState.length = content.length; - return this; -}; +/***/ }), + +/***/ 94518: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// Don't raise the hwm > 1GB -var MAX_HWM = 0x40000000; -function computeNewHighWaterMark(n) { - if (n >= MAX_HWM) { - // TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE. - n = MAX_HWM; - } else { - // Get the next highest power of 2 to prevent increasing hwm excessively in - // tiny amounts - n--; - n |= n >>> 1; - n |= n >>> 2; - n |= n >>> 4; - n |= n >>> 8; - n |= n >>> 16; - n++; - } - return n; -} +"use strict"; -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function howMuchToRead(n, state) { - if (n <= 0 || state.length === 0 && state.ended) return 0; - if (state.objectMode) return 1; - if (n !== n) { - // Only flow one buffer at a time - if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length; - } - // If we're asking for more than the current hwm, then raise the hwm. - if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); - if (n <= state.length) return n; - // Don't have enough - if (!state.ended) { - state.needReadable = true; - return 0; - } - return state.length; -} -// you can override either this method, or the async _read(n) below. -Readable.prototype.read = function (n) { - debug('read', n); - n = parseInt(n, 10); - var state = this._readableState; - var nOrig = n; - if (n !== 0) state.emittedReadable = false; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // if we're doing read(0) to trigger a readable event, but we - // already have a bunch of data in the buffer, then just trigger - // the 'readable' event and move on. - if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) { - debug('read: emitReadable', state.length, state.ended); - if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); - return null; - } - n = howMuchToRead(n, state); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // if we've ended, and we're now clear, then finish it up. - if (n === 0 && state.ended) { - if (state.length === 0) endReadable(this); - return null; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // All the actual chunk generation logic needs to be - // *below* the call to _read. The reason is that in certain - // synthetic stream cases, such as passthrough streams, _read - // may be a completely synchronous operation which may change - // the state of the read buffer, providing enough data when - // before there was *not* enough. - // - // So, the steps are: - // 1. Figure out what the state of things will be after we do - // a read from the buffer. - // - // 2. If that resulting state will trigger a _read, then call _read. - // Note that this may be asynchronous, or synchronous. Yes, it is - // deeply ugly to write APIs this way, but that still doesn't mean - // that the Readable class should behave improperly, as streams are - // designed to be sync/async agnostic. - // Take note if the _read call is sync or async (ie, if the read call - // has returned yet), so that we know whether or not it's safe to emit - // 'readable' etc. - // - // 3. Actually pull the requested chunks out of the buffer and return. +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // if we need a readable event, then we need to do some reading. - var doRead = state.needReadable; - debug('need readable', doRead); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // if we currently have less than the highWaterMark, then also read some - if (state.length === 0 || state.length - n < state.highWaterMark) { - doRead = true; - debug('length less than watermark', doRead); - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // however, if we've ended, then there's no point, and if we're already - // reading, then it's unnecessary. - if (state.ended || state.reading) { - doRead = false; - debug('reading or ended', doRead); - } else if (doRead) { - debug('do read'); - state.reading = true; - state.sync = true; - // if the length is currently zero, then we *need* a readable event. - if (state.length === 0) state.needReadable = true; - // call internal read method - this._read(state.highWaterMark); - state.sync = false; - // If _read pushed data synchronously, then `reading` will be false, - // and we need to re-evaluate how much data we can return to the user. - if (!state.reading) n = howMuchToRead(nOrig, state); - } - var ret; - if (n > 0) ret = fromList(n, state);else ret = null; - if (ret === null) { - state.needReadable = state.length <= state.highWaterMark; - n = 0; - } else { - state.length -= n; - state.awaitDrain = 0; - } - if (state.length === 0) { - // If we have nothing in the buffer, then we want to know - // as soon as we *do* get something into the buffer. - if (!state.ended) state.needReadable = true; +/** + * The GetSSHCertificateOutput model module. + * @module model/GetSSHCertificateOutput + * @version 3.6.3 + */ +var GetSSHCertificateOutput = /*#__PURE__*/function () { + /** + * Constructs a new GetSSHCertificateOutput. + * @alias module:model/GetSSHCertificateOutput + */ + function GetSSHCertificateOutput() { + _classCallCheck(this, GetSSHCertificateOutput); - // If we tried to read() past the EOF, then emit end on the next tick. - if (nOrig !== n && state.ended) endReadable(this); - } - if (ret !== null) this.emit('data', ret); - return ret; -}; -function onEofChunk(stream, state) { - debug('onEofChunk'); - if (state.ended) return; - if (state.decoder) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) { - state.buffer.push(chunk); - state.length += state.objectMode ? 1 : chunk.length; - } - } - state.ended = true; - if (state.sync) { - // if we are sync, wait until next tick to emit the data. - // Otherwise we risk emitting data in the flow() - // the readable code triggers during a read() call - emitReadable(stream); - } else { - // emit 'readable' now to make sure it gets picked up. - state.needReadable = false; - if (!state.emittedReadable) { - state.emittedReadable = true; - emitReadable_(stream); - } + GetSSHCertificateOutput.initialize(this); } -} + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -// Don't emit readable right away in sync mode, because this can trigger -// another read() call => stack overflow. This way, it might trigger -// a nextTick recursion warning, but that's not so bad. -function emitReadable(stream) { - var state = stream._readableState; - debug('emitReadable', state.needReadable, state.emittedReadable); - state.needReadable = false; - if (!state.emittedReadable) { - debug('emitReadable', state.flowing); - state.emittedReadable = true; - process.nextTick(emitReadable_, stream); - } -} -function emitReadable_(stream) { - var state = stream._readableState; - debug('emitReadable_', state.destroyed, state.length, state.ended); - if (!state.destroyed && (state.length || state.ended)) { - stream.emit('readable'); - state.emittedReadable = false; - } - // The stream needs another readable event if - // 1. It is not flowing, as the flow mechanism will take - // care of it. - // 2. It is not ended. - // 3. It is below the highWaterMark, so we can schedule - // another readable later. - state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark; - flow(stream); -} + _createClass(GetSSHCertificateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GetSSHCertificateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetSSHCertificateOutput} obj Optional instance to populate. + * @return {module:model/GetSSHCertificateOutput} The populated GetSSHCertificateOutput instance. + */ -// at this point, the user has presumably seen the 'readable' event, -// and called read() to consume some data. that may have triggered -// in turn another _read(n) call, in which case reading = true if -// it's in progress. -// However, if we're not ended, or reading, and the length < hwm, -// then go ahead and try to read some more preemptively. -function maybeReadMore(stream, state) { - if (!state.readingMore) { - state.readingMore = true; - process.nextTick(maybeReadMore_, stream, state); - } -} -function maybeReadMore_(stream, state) { - // Attempt to read more data if we should. - // - // The conditions for reading more data are (one of): - // - Not enough data buffered (state.length < state.highWaterMark). The loop - // is responsible for filling the buffer with enough data if such data - // is available. If highWaterMark is 0 and we are not in the flowing mode - // we should _not_ attempt to buffer any extra data. We'll get more data - // when the stream consumer calls read() instead. - // - No data in the buffer, and the stream is in flowing mode. In this mode - // the loop below is responsible for ensuring read() is called. Failing to - // call read here would abort the flow and there's no other mechanism for - // continuing the flow if the stream consumer has just subscribed to the - // 'data' event. - // - // In addition to the above conditions to keep reading data, the following - // conditions prevent the data from being read: - // - The stream has ended (state.ended). - // - There is already a pending 'read' operation (state.reading). This is a - // case where the the stream has called the implementation defined _read() - // method, but they are processing the call asynchronously and have _not_ - // called push() with new data. In this case we skip performing more - // read()s. The execution ends in this method again after the _read() ends - // up calling push() with more data. - while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) { - var len = state.length; - debug('maybeReadMore read 0'); - stream.read(0); - if (len === state.length) - // didn't get any data, stop spinning. - break; - } - state.readingMore = false; -} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetSSHCertificateOutput(); -// abstract method. to be overridden in specific implementation classes. -// call cb(er, data) where data is <= n in length. -// for virtual (non-string, non-buffer) streams, "length" is somewhat -// arbitrary, and perhaps not very meaningful. -Readable.prototype._read = function (n) { - errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED('_read()')); -}; -Readable.prototype.pipe = function (dest, pipeOpts) { - var src = this; - var state = this._readableState; - switch (state.pipesCount) { - case 0: - state.pipes = dest; - break; - case 1: - state.pipes = [state.pipes, dest]; - break; - default: - state.pipes.push(dest); - break; - } - state.pipesCount += 1; - debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); - var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; - var endFn = doEnd ? onend : unpipe; - if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn); - dest.on('unpipe', onunpipe); - function onunpipe(readable, unpipeInfo) { - debug('onunpipe'); - if (readable === src) { - if (unpipeInfo && unpipeInfo.hasUnpiped === false) { - unpipeInfo.hasUnpiped = true; - cleanup(); + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } } + + return obj; } - } - function onend() { - debug('onend'); - dest.end(); - } + }]); - // when the dest drains, it reduces the awaitDrain counter - // on the source. This would be more elegant with a .once() - // handler in flow(), but adding and removing repeatedly is - // too slow. - var ondrain = pipeOnDrain(src); - dest.on('drain', ondrain); - var cleanedUp = false; - function cleanup() { - debug('cleanup'); - // cleanup event handlers once the pipe is broken - dest.removeListener('close', onclose); - dest.removeListener('finish', onfinish); - dest.removeListener('drain', ondrain); - dest.removeListener('error', onerror); - dest.removeListener('unpipe', onunpipe); - src.removeListener('end', onend); - src.removeListener('end', unpipe); - src.removeListener('data', ondata); - cleanedUp = true; + return GetSSHCertificateOutput; +}(); +/** + * @member {String} data + */ - // if the reader is waiting for a drain event from this - // specific writer, then it would cause it to never start - // flowing again. - // So, if this is awaiting a drain, then we just call it now. - // If we don't know, then assume that we are waiting for one. - if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); - } - src.on('data', ondata); - function ondata(chunk) { - debug('ondata'); - var ret = dest.write(chunk); - debug('dest.write', ret); - if (ret === false) { - // If the user unpiped during `dest.write()`, it is possible - // to get stuck in a permanently paused state if that write - // also returned false. - // => Check whether `dest` is still a piping destination. - if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { - debug('false write response, pause', state.awaitDrain); - state.awaitDrain++; - } - src.pause(); - } - } - // if the dest has an error, then stop piping into it. - // however, don't suppress the throwing behavior for this. - function onerror(er) { - debug('onerror', er); - unpipe(); - dest.removeListener('error', onerror); - if (EElistenerCount(dest, 'error') === 0) errorOrDestroy(dest, er); - } +GetSSHCertificateOutput.prototype['data'] = undefined; +/** + * @member {String} path + */ - // Make sure our error handler is attached before userland ones. - prependListener(dest, 'error', onerror); +GetSSHCertificateOutput.prototype['path'] = undefined; +var _default = GetSSHCertificateOutput; +exports["default"] = _default; - // Both close and finish should trigger unpipe, but only once. - function onclose() { - dest.removeListener('finish', onfinish); - unpipe(); - } - dest.once('close', onclose); - function onfinish() { - debug('onfinish'); - dest.removeListener('close', onclose); - unpipe(); - } - dest.once('finish', onfinish); - function unpipe() { - debug('unpipe'); - src.unpipe(dest); - } +/***/ }), - // tell the dest that it's being piped to - dest.emit('pipe', src); +/***/ 24725: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // start the flow if it hasn't been started already. - if (!state.flowing) { - debug('pipe resume'); - src.resume(); - } - return dest; -}; -function pipeOnDrain(src) { - return function pipeOnDrainFunctionResult() { - var state = src._readableState; - debug('pipeOnDrain', state.awaitDrain); - if (state.awaitDrain) state.awaitDrain--; - if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { - state.flowing = true; - flow(src); - } - }; -} -Readable.prototype.unpipe = function (dest) { - var state = this._readableState; - var unpipeInfo = { - hasUnpiped: false - }; +"use strict"; - // if we're not piping anywhere, then do nothing. - if (state.pipesCount === 0) return this; - // just one destination. most common case. - if (state.pipesCount === 1) { - // passed in one, but it's not the right one. - if (dest && dest !== state.pipes) return this; - if (!dest) dest = state.pipes; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // got a match. - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - if (dest) dest.emit('unpipe', this, unpipeInfo); - return this; - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // slow case. multiple pipe destinations. +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (!dest) { - // remove all. - var dests = state.pipes; - var len = state.pipesCount; - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - for (var i = 0; i < len; i++) dests[i].emit('unpipe', this, { - hasUnpiped: false - }); - return this; - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // try to find the right one. - var index = indexOf(state.pipes, dest); - if (index === -1) return this; - state.pipes.splice(index, 1); - state.pipesCount -= 1; - if (state.pipesCount === 1) state.pipes = state.pipes[0]; - dest.emit('unpipe', this, unpipeInfo); - return this; -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -// set up data events if they are asked for -// Ensure readable listeners eventually get something -Readable.prototype.on = function (ev, fn) { - var res = Stream.prototype.on.call(this, ev, fn); - var state = this._readableState; - if (ev === 'data') { - // update readableListening so that resume() may be a no-op - // a few lines down. This is needed to support once('readable'). - state.readableListening = this.listenerCount('readable') > 0; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // Try start flowing on next tick if stream isn't explicitly paused - if (state.flowing !== false) this.resume(); - } else if (ev === 'readable') { - if (!state.endEmitted && !state.readableListening) { - state.readableListening = state.needReadable = true; - state.flowing = false; - state.emittedReadable = false; - debug('on readable', state.length, state.reading); - if (state.length) { - emitReadable(this); - } else if (!state.reading) { - process.nextTick(nReadingNextTick, this); - } - } - } - return res; -}; -Readable.prototype.addListener = Readable.prototype.on; -Readable.prototype.removeListener = function (ev, fn) { - var res = Stream.prototype.removeListener.call(this, ev, fn); - if (ev === 'readable') { - // We need to check if there is someone still listening to - // readable and reset the state. However this needs to happen - // after readable has been emitted but before I/O (nextTick) to - // support once('readable', fn) cycles. This means that calling - // resume within the same tick will have no - // effect. - process.nextTick(updateReadableListening, this); - } - return res; -}; -Readable.prototype.removeAllListeners = function (ev) { - var res = Stream.prototype.removeAllListeners.apply(this, arguments); - if (ev === 'readable' || ev === undefined) { - // We need to check if there is someone still listening to - // readable and reset the state. However this needs to happen - // after readable has been emitted but before I/O (nextTick) to - // support once('readable', fn) cycles. This means that calling - // resume within the same tick will have no - // effect. - process.nextTick(updateReadableListening, this); - } - return res; -}; -function updateReadableListening(self) { - var state = self._readableState; - state.readableListening = self.listenerCount('readable') > 0; - if (state.resumeScheduled && !state.paused) { - // flowing needs to be set to true now, otherwise - // the upcoming resume will not flow. - state.flowing = true; +/** + * The GetSecretValue model module. + * @module model/GetSecretValue + * @version 3.6.3 + */ +var GetSecretValue = /*#__PURE__*/function () { + /** + * Constructs a new GetSecretValue. + * @alias module:model/GetSecretValue + * @param names {Array.} Secret name + */ + function GetSecretValue(names) { + _classCallCheck(this, GetSecretValue); - // crude way to check if we should resume - } else if (self.listenerCount('data') > 0) { - self.resume(); + GetSecretValue.initialize(this, names); } -} -function nReadingNextTick(self) { - debug('readable nexttick read 0'); - self.read(0); -} + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -// pause() and resume() are remnants of the legacy readable stream API -// If the user uses them, then switch into old mode. -Readable.prototype.resume = function () { - var state = this._readableState; - if (!state.flowing) { - debug('resume'); - // we flow only if there is no one listening - // for readable, but we still have to call - // resume() - state.flowing = !state.readableListening; - resume(this, state); - } - state.paused = false; - return this; -}; -function resume(stream, state) { - if (!state.resumeScheduled) { - state.resumeScheduled = true; - process.nextTick(resume_, stream, state); - } -} -function resume_(stream, state) { - debug('resume', state.reading); - if (!state.reading) { - stream.read(0); - } - state.resumeScheduled = false; - stream.emit('resume'); - flow(stream); - if (state.flowing && !state.reading) stream.read(0); -} -Readable.prototype.pause = function () { - debug('call pause flowing=%j', this._readableState.flowing); - if (this._readableState.flowing !== false) { - debug('pause'); - this._readableState.flowing = false; - this.emit('pause'); - } - this._readableState.paused = true; - return this; -}; -function flow(stream) { - var state = stream._readableState; - debug('flow', state.flowing); - while (state.flowing && stream.read() !== null); -} -// wrap an old-style stream as the async data source. -// This is *not* part of the readable stream interface. -// It is an ugly unfortunate mess of history. -Readable.prototype.wrap = function (stream) { - var _this = this; - var state = this._readableState; - var paused = false; - stream.on('end', function () { - debug('wrapped end'); - if (state.decoder && !state.ended) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) _this.push(chunk); + _createClass(GetSecretValue, null, [{ + key: "initialize", + value: function initialize(obj, names) { + obj['names'] = names; } - _this.push(null); - }); - stream.on('data', function (chunk) { - debug('wrapped data'); - if (state.decoder) chunk = state.decoder.write(chunk); + /** + * Constructs a GetSecretValue from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetSecretValue} obj Optional instance to populate. + * @return {module:model/GetSecretValue} The populated GetSecretValue instance. + */ - // don't skip over falsy values in objectMode - if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; - var ret = _this.push(chunk); - if (!ret) { - paused = true; - stream.pause(); - } - }); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetSecretValue(); - // proxy all the other methods. - // important when wrapping filters and duplexes. - for (var i in stream) { - if (this[i] === undefined && typeof stream[i] === 'function') { - this[i] = function methodWrap(method) { - return function methodWrapReturnFunction() { - return stream[method].apply(stream, arguments); - }; - }(i); - } - } + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + } - // proxy certain important events. - for (var n = 0; n < kProxyEvents.length; n++) { - stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n])); - } + if (data.hasOwnProperty('ignore-cache')) { + obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); + } - // when we try to consume some more bytes, simply unpause the - // underlying stream. - this._read = function (n) { - debug('wrapped _read', n); - if (paused) { - paused = false; - stream.resume(); - } - }; - return this; -}; -if (typeof Symbol === 'function') { - Readable.prototype[Symbol.asyncIterator] = function () { - if (createReadableStreamAsyncIterator === undefined) { - createReadableStreamAsyncIterator = __nccwpck_require__(48692); - } - return createReadableStreamAsyncIterator(this); - }; -} -Object.defineProperty(Readable.prototype, 'readableHighWaterMark', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._readableState.highWaterMark; - } -}); -Object.defineProperty(Readable.prototype, 'readableBuffer', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._readableState && this._readableState.buffer; - } -}); -Object.defineProperty(Readable.prototype, 'readableFlowing', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._readableState.flowing; - }, - set: function set(state) { - if (this._readableState) { - this._readableState.flowing = state; - } - } -}); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -// exposed for testing purposes only. -Readable._fromList = fromList; -Object.defineProperty(Readable.prototype, 'readableLength', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._readableState.length; - } -}); + if (data.hasOwnProperty('names')) { + obj['names'] = _ApiClient["default"].convertToType(data['names'], ['String']); + } -// Pluck off n bytes from an array of buffers. -// Length is the combined lengths of all the buffers in the list. -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function fromList(n, state) { - // nothing buffered - if (state.length === 0) return null; - var ret; - if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) { - // read it all, truncate the list - if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.first();else ret = state.buffer.concat(state.length); - state.buffer.clear(); - } else { - // read part of list - ret = state.buffer.consume(n, state.decoder); - } - return ret; -} -function endReadable(stream) { - var state = stream._readableState; - debug('endReadable', state.endEmitted); - if (!state.endEmitted) { - state.ended = true; - process.nextTick(endReadableNT, state, stream); - } -} -function endReadableNT(state, stream) { - debug('endReadableNT', state.endEmitted, state.length); + if (data.hasOwnProperty('pretty-print')) { + obj['pretty-print'] = _ApiClient["default"].convertToType(data['pretty-print'], 'Boolean'); + } - // Check that we didn't get one last unshift. - if (!state.endEmitted && state.length === 0) { - state.endEmitted = true; - stream.readable = false; - stream.emit('end'); - if (state.autoDestroy) { - // In case of duplex streams we need a way to detect - // if the writable side is ready for autoDestroy as well - var wState = stream._writableState; - if (!wState || wState.autoDestroy && wState.finished) { - stream.destroy(); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } } + + return obj; } - } -} -if (typeof Symbol === 'function') { - Readable.from = function (iterable, opts) { - if (from === undefined) { - from = __nccwpck_require__(17491); - } - return from(Readable, iterable, opts); - }; -} -function indexOf(xs, x) { - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) return i; - } - return -1; -} + }]); + + return GetSecretValue; +}(); +/** + * for personal password manager + * @member {String} accessibility + * @default 'regular' + */ + + +GetSecretValue.prototype['accessibility'] = 'regular'; +/** + * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI + * @member {String} ignore-cache + * @default 'false' + */ + +GetSecretValue.prototype['ignore-cache'] = 'false'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +GetSecretValue.prototype['json'] = false; +/** + * Secret name + * @member {Array.} names + */ + +GetSecretValue.prototype['names'] = undefined; +/** + * Print the secret value with json-pretty-print (not relevent to SDK) + * @member {Boolean} pretty-print + */ + +GetSecretValue.prototype['pretty-print'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +GetSecretValue.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GetSecretValue.prototype['uid-token'] = undefined; +/** + * Secret version, if negative value N is provided the last N versions will return (maximum 20) + * @member {Number} version + */ + +GetSecretValue.prototype['version'] = undefined; +var _default = GetSecretValue; +exports["default"] = _default; /***/ }), -/***/ 69329: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 26075: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. -// a transform stream is a readable/writable stream where you do -// something with the data. Sometimes it's called a "filter", -// but that's not a great name for it, since that implies a thing where -// some bits pass through, and others are simply ignored. (That would -// be a valid example of a transform, of course.) -// -// While the output is causally related to the input, it's not a -// necessarily symmetric or synchronous transformation. For example, -// a zlib stream might take multiple plain-text writes(), and then -// emit a single compressed chunk some time in the future. -// -// Here's how this works: -// -// The Transform stream has all the aspects of the readable and writable -// stream classes. When you write(chunk), that calls _write(chunk,cb) -// internally, and returns false if there's a lot of pending writes -// buffered up. When you call read(), that calls _read(n) until -// there's enough pending readable data buffered up. -// -// In a transform stream, the written data is placed in a buffer. When -// _read(n) is called, it transforms the queued up data, calling the -// buffered _write cb's as it consumes chunks. If consuming a single -// written chunk would result in multiple output chunks, then the first -// outputted bit calls the readcb, and subsequent chunks just go into -// the read buffer, and will cause it to emit 'readable' if necessary. -// -// This way, back-pressure is actually determined by the reading side, -// since _read has to be called to start processing a new chunk. However, -// a pathological inflate type of transform can cause excessive buffering -// here. For example, imagine a stream where every byte of input is -// interpreted as an integer from 0-255, and then results in that many -// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in -// 1kb of data being output. In this case, you could write a very small -// amount of input, and end up with a very large amount of output. In -// such a pathological inflating mechanism, there'd be no way to tell -// the system to stop doing the transform. A single 4MB write could -// cause the system to run out of memory. -// -// However, even in such a pathological case, only a single written chunk -// would be consumed, and then the rest would wait (un-transformed) until -// the results of the previous transformed chunk were consumed. +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -module.exports = Transform; -var _require$codes = (__nccwpck_require__(58940)/* .codes */ .F), - ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, - ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, - ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING, - ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0; -var Duplex = __nccwpck_require__(60175); -__nccwpck_require__(39598)(Transform, Duplex); -function afterTransform(er, data) { - var ts = this._transformState; - ts.transforming = false; - var cb = ts.writecb; - if (cb === null) { - return this.emit('error', new ERR_MULTIPLE_CALLBACK()); - } - ts.writechunk = null; - ts.writecb = null; - if (data != null) - // single equals check for both `null` and `undefined` - this.push(data); - cb(er); - var rs = this._readableState; - rs.reading = false; - if (rs.needReadable || rs.length < rs.highWaterMark) { - this._read(rs.highWaterMark); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GetTags model module. + * @module model/GetTags + * @version 3.6.3 + */ +var GetTags = /*#__PURE__*/function () { + /** + * Constructs a new GetTags. + * @alias module:model/GetTags + * @param name {String} Item name + */ + function GetTags(name) { + _classCallCheck(this, GetTags); + + GetTags.initialize(this, name); } -} -function Transform(options) { - if (!(this instanceof Transform)) return new Transform(options); - Duplex.call(this, options); - this._transformState = { - afterTransform: afterTransform.bind(this), - needTransform: false, - transforming: false, - writecb: null, - writechunk: null, - writeencoding: null - }; + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GetTags, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GetTags from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetTags} obj Optional instance to populate. + * @return {module:model/GetTags} The populated GetTags instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetTags(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - // start out asking for a readable event once data is transformed. - this._readableState.needReadable = true; + return obj; + } + }]); - // we have implemented the _read method, and done the other things - // that Readable wants before the first _read call, so unset the - // sync guard flag. - this._readableState.sync = false; - if (options) { - if (typeof options.transform === 'function') this._transform = options.transform; - if (typeof options.flush === 'function') this._flush = options.flush; - } + return GetTags; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - // When the writable side finishes, then flush out anything remaining. - this.on('prefinish', prefinish); -} -function prefinish() { - var _this = this; - if (typeof this._flush === 'function' && !this._readableState.destroyed) { - this._flush(function (er, data) { - done(_this, er, data); - }); - } else { - done(this, null, null); - } -} -Transform.prototype.push = function (chunk, encoding) { - this._transformState.needTransform = false; - return Duplex.prototype.push.call(this, chunk, encoding); -}; -// This is the part where you do stuff! -// override this function in implementation classes. -// 'chunk' is an input chunk. -// -// Call `push(newChunk)` to pass along transformed output -// to the readable side. You may call 'push' zero or more times. -// -// Call `cb(err)` when you are done with this chunk. If you pass -// an error, then that'll put the hurt on the whole operation. If you -// never call cb(), then you'll never get another chunk. -Transform.prototype._transform = function (chunk, encoding, cb) { - cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()')); -}; -Transform.prototype._write = function (chunk, encoding, cb) { - var ts = this._transformState; - ts.writecb = cb; - ts.writechunk = chunk; - ts.writeencoding = encoding; - if (!ts.transforming) { - var rs = this._readableState; - if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); - } -}; +GetTags.prototype['json'] = false; +/** + * Item name + * @member {String} name + */ -// Doesn't matter what the args are here. -// _transform does all the work. -// That we got here means that the readable side wants more data. -Transform.prototype._read = function (n) { - var ts = this._transformState; - if (ts.writechunk !== null && !ts.transforming) { - ts.transforming = true; - this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); - } else { - // mark that we need a transform, so that any data that comes in - // will get processed, now that we've asked for it. - ts.needTransform = true; - } -}; -Transform.prototype._destroy = function (err, cb) { - Duplex.prototype._destroy.call(this, err, function (err2) { - cb(err2); - }); -}; -function done(stream, er, data) { - if (er) return stream.emit('error', er); - if (data != null) - // single equals check for both `null` and `undefined` - stream.push(data); +GetTags.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - // TODO(BridgeAR): Write a test for these two error cases - // if there's nothing in the write buffer, then that means - // that nothing more will ever be provided - if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0(); - if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING(); - return stream.push(null); -} +GetTags.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GetTags.prototype['uid-token'] = undefined; +var _default = GetTags; +exports["default"] = _default; /***/ }), -/***/ 1805: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 51395: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. -// A bit simpler than readable streams. -// Implement an async ._write(chunk, encoding, cb), and it'll handle all -// the drain event emission and buffering. +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -module.exports = Writable; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/* */ -function WriteReq(chunk, encoding, cb) { - this.chunk = chunk; - this.encoding = encoding; - this.callback = cb; - this.next = null; -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -// It seems a linked list but it is not -// there will be only 2 of these for each stream -function CorkedRequest(state) { - var _this = this; - this.next = null; - this.entry = null; - this.finish = function () { - onCorkedFinish(_this, state); - }; -} -/* */ +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/**/ -var Duplex; -/**/ +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -Writable.WritableState = WritableState; +/** + * The GetTarget model module. + * @module model/GetTarget + * @version 3.6.3 + */ +var GetTarget = /*#__PURE__*/function () { + /** + * Constructs a new GetTarget. + * @alias module:model/GetTarget + * @param name {String} Target name + */ + function GetTarget(name) { + _classCallCheck(this, GetTarget); -/**/ -var internalUtil = { - deprecate: __nccwpck_require__(24488) -}; -/**/ + GetTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/**/ -var Stream = __nccwpck_require__(94291); -/**/ -var Buffer = (__nccwpck_require__(20181).Buffer); -var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}; -function _uint8ArrayToBuffer(chunk) { - return Buffer.from(chunk); -} -function _isUint8Array(obj) { - return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; -} -var destroyImpl = __nccwpck_require__(91457); -var _require = __nccwpck_require__(6394), - getHighWaterMark = _require.getHighWaterMark; -var _require$codes = (__nccwpck_require__(58940)/* .codes */ .F), - ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, - ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, - ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, - ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE, - ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED, - ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES, - ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END, - ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING; -var errorOrDestroy = destroyImpl.errorOrDestroy; -__nccwpck_require__(39598)(Writable, Stream); -function nop() {} -function WritableState(options, stream, isDuplex) { - Duplex = Duplex || __nccwpck_require__(60175); - options = options || {}; + _createClass(GetTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a GetTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetTarget} obj Optional instance to populate. + * @return {module:model/GetTarget} The populated GetTarget instance. + */ - // Duplex streams are both readable and writable, but share - // the same options object. - // However, some cases require setting options to different - // values for the readable and the writable sides of the duplex stream, - // e.g. options.readableObjectMode vs. options.writableObjectMode, etc. - if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetTarget(); - // object stream flag to indicate whether or not this stream - // contains buffers or objects. - this.objectMode = !!options.objectMode; - if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - // the point at which write() starts returning false - // Note: 0 is a valid value, means that we always return false if - // the entire buffer is not flushed immediately on write() - this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - // if _final has been called - this.finalCalled = false; + if (data.hasOwnProperty('show-versions')) { + obj['show-versions'] = _ApiClient["default"].convertToType(data['show-versions'], 'Boolean'); + } - // drain event flag. - this.needDrain = false; - // at the start of calling end() - this.ending = false; - // when end() has been called, and returned - this.ended = false; - // when 'finish' is emitted - this.finished = false; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - // has it been destroyed - this.destroyed = false; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - // should we decode strings into buffers before passing to _write? - // this is here so that some node-core streams can optimize string - // handling at a lower level. - var noDecode = options.decodeStrings === false; - this.decodeStrings = !noDecode; + return obj; + } + }]); - // Crypto is kind of old and crusty. Historically, its default string - // encoding is 'binary' so we have to make this configurable. - // Everything else in the universe uses 'utf8', though. - this.defaultEncoding = options.defaultEncoding || 'utf8'; + return GetTarget; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - // not an actual buffer we keep track of, but a measurement - // of how much we're waiting to get pushed to some underlying - // socket or file. - this.length = 0; - // a flag to see when we're in the middle of a write. - this.writing = false; +GetTarget.prototype['json'] = false; +/** + * Target name + * @member {String} name + */ - // when true all writes will be buffered until .uncork() call - this.corked = 0; +GetTarget.prototype['name'] = undefined; +/** + * Include all target versions in reply + * @member {Boolean} show-versions + * @default false + */ - // a flag to be able to tell if the onwrite cb is called immediately, - // or on a later tick. We set this to true at first, because any - // actions that shouldn't happen until "later" should generally also - // not happen before the first write call. - this.sync = true; +GetTarget.prototype['show-versions'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - // a flag to know if we're processing previously buffered items, which - // may call the _write() callback in the same tick, so that we don't - // end up in an overlapped onwrite situation. - this.bufferProcessing = false; +GetTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - // the callback that's passed to _write(chunk,cb) - this.onwrite = function (er) { - onwrite(stream, er); - }; +GetTarget.prototype['uid-token'] = undefined; +var _default = GetTarget; +exports["default"] = _default; - // the callback that the user supplies to write(chunk,encoding,cb) - this.writecb = null; +/***/ }), - // the amount that is being written when _write is called. - this.writelen = 0; - this.bufferedRequest = null; - this.lastBufferedRequest = null; +/***/ 48741: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // number of pending user-supplied write callbacks - // this must be 0 before 'finish' can be emitted - this.pendingcb = 0; +"use strict"; - // emit prefinish if the only thing we're waiting for is _write cbs - // This is relevant for synchronous Transform streams - this.prefinished = false; - // True if the error was already emitted and should not be thrown again - this.errorEmitted = false; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // Should close be emitted on destroy. Defaults to true. - this.emitClose = options.emitClose !== false; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // Should .destroy() be called after 'finish' (and potentially 'end') - this.autoDestroy = !!options.autoDestroy; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // count buffered requests - this.bufferedRequestCount = 0; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // allocate the first CorkedRequest, there is always - // one allocated and free to use, and we maintain at most two - this.corkedRequestsFree = new CorkedRequest(this); -} -WritableState.prototype.getBuffer = function getBuffer() { - var current = this.bufferedRequest; - var out = []; - while (current) { - out.push(current); - current = current.next; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GetTargetDetails model module. + * @module model/GetTargetDetails + * @version 3.6.3 + */ +var GetTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new GetTargetDetails. + * @alias module:model/GetTargetDetails + * @param name {String} Target name + */ + function GetTargetDetails(name) { + _classCallCheck(this, GetTargetDetails); + + GetTargetDetails.initialize(this, name); } - return out; -}; -(function () { - try { - Object.defineProperty(WritableState.prototype, 'buffer', { - get: internalUtil.deprecate(function writableStateBufferGetter() { - return this.getBuffer(); - }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003') - }); - } catch (_) {} -})(); + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -// Test _writableState for inheritance to account for Duplex streams, -// whose prototype chain only points to Readable. -var realHasInstance; -if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') { - realHasInstance = Function.prototype[Symbol.hasInstance]; - Object.defineProperty(Writable, Symbol.hasInstance, { - value: function value(object) { - if (realHasInstance.call(this, object)) return true; - if (this !== Writable) return false; - return object && object._writableState instanceof WritableState; + + _createClass(GetTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } - }); -} else { - realHasInstance = function realHasInstance(object) { - return object instanceof this; - }; -} -function Writable(options) { - Duplex = Duplex || __nccwpck_require__(60175); + /** + * Constructs a GetTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetTargetDetails} obj Optional instance to populate. + * @return {module:model/GetTargetDetails} The populated GetTargetDetails instance. + */ - // Writable ctor is applied to Duplexes, too. - // `realHasInstance` is necessary because using plain `instanceof` - // would return false, as no `_writableState` property is attached. + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetTargetDetails(); - // Trying to use the custom `instanceof` for Writable here will also break the - // Node.js LazyTransform implementation, which has a non-trivial getter for - // `_writableState` that would lead to infinite recursion. + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - // Checking for a Stream.Duplex instance is faster here instead of inside - // the WritableState constructor, at least with V8 6.5 - var isDuplex = this instanceof Duplex; - if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options); - this._writableState = new WritableState(options, this, isDuplex); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - // legacy. - this.writable = true; - if (options) { - if (typeof options.write === 'function') this._write = options.write; - if (typeof options.writev === 'function') this._writev = options.writev; - if (typeof options.destroy === 'function') this._destroy = options.destroy; - if (typeof options.final === 'function') this._final = options.final; - } - Stream.call(this); -} + if (data.hasOwnProperty('show-versions')) { + obj['show-versions'] = _ApiClient["default"].convertToType(data['show-versions'], 'Boolean'); + } -// Otherwise people can pipe Writable streams, which is just wrong. -Writable.prototype.pipe = function () { - errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE()); -}; -function writeAfterEnd(stream, cb) { - var er = new ERR_STREAM_WRITE_AFTER_END(); - // TODO: defer error events consistently everywhere, not just the cb - errorOrDestroy(stream, er); - process.nextTick(cb, er); -} + if (data.hasOwnProperty('target-version')) { + obj['target-version'] = _ApiClient["default"].convertToType(data['target-version'], 'Number'); + } -// Checks that a user-supplied chunk is valid, especially for the particular -// mode the stream is in. Currently this means that `null` is never accepted -// and undefined/non-string values are only allowed in object mode. -function validChunk(stream, state, chunk, cb) { - var er; - if (chunk === null) { - er = new ERR_STREAM_NULL_VALUES(); - } else if (typeof chunk !== 'string' && !state.objectMode) { - er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk); - } - if (er) { - errorOrDestroy(stream, er); - process.nextTick(cb, er); - return false; - } - return true; -} -Writable.prototype.write = function (chunk, encoding, cb) { - var state = this._writableState; - var ret = false; - var isBuf = !state.objectMode && _isUint8Array(chunk); - if (isBuf && !Buffer.isBuffer(chunk)) { - chunk = _uint8ArrayToBuffer(chunk); - } - if (typeof encoding === 'function') { - cb = encoding; - encoding = null; - } - if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; - if (typeof cb !== 'function') cb = nop; - if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) { - state.pendingcb++; - ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb); - } - return ret; -}; -Writable.prototype.cork = function () { - this._writableState.corked++; -}; -Writable.prototype.uncork = function () { - var state = this._writableState; - if (state.corked) { - state.corked--; - if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); - } -}; -Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { - // node::ParseEncoding() requires lower case. - if (typeof encoding === 'string') encoding = encoding.toLowerCase(); - if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding); - this._writableState.defaultEncoding = encoding; - return this; -}; -Object.defineProperty(Writable.prototype, 'writableBuffer', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._writableState && this._writableState.getBuffer(); - } -}); -function decodeChunk(state, chunk, encoding) { - if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { - chunk = Buffer.from(chunk, encoding); - } - return chunk; -} -Object.defineProperty(Writable.prototype, 'writableHighWaterMark', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._writableState.highWaterMark; - } -}); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -// if we're already writing something, then just put this -// in the queue, and wait our turn. Otherwise, call _write -// If we return false, then we need a drain event, so set that flag. -function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) { - if (!isBuf) { - var newChunk = decodeChunk(state, chunk, encoding); - if (chunk !== newChunk) { - isBuf = true; - encoding = 'buffer'; - chunk = newChunk; - } - } - var len = state.objectMode ? 1 : chunk.length; - state.length += len; - var ret = state.length < state.highWaterMark; - // we must ensure that previous needDrain will not be reset to false. - if (!ret) state.needDrain = true; - if (state.writing || state.corked) { - var last = state.lastBufferedRequest; - state.lastBufferedRequest = { - chunk: chunk, - encoding: encoding, - isBuf: isBuf, - callback: cb, - next: null - }; - if (last) { - last.next = state.lastBufferedRequest; - } else { - state.bufferedRequest = state.lastBufferedRequest; - } - state.bufferedRequestCount += 1; - } else { - doWrite(stream, state, false, len, chunk, encoding, cb); - } - return ret; -} -function doWrite(stream, state, writev, len, chunk, encoding, cb) { - state.writelen = len; - state.writecb = cb; - state.writing = true; - state.sync = true; - if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); - state.sync = false; -} -function onwriteError(stream, state, sync, er, cb) { - --state.pendingcb; - if (sync) { - // defer the callback if we are being called synchronously - // to avoid piling up things on the stack - process.nextTick(cb, er); - // this can emit finish, and it will always happen - // after error - process.nextTick(finishMaybe, stream, state); - stream._writableState.errorEmitted = true; - errorOrDestroy(stream, er); - } else { - // the caller expect this to happen before if - // it is async - cb(er); - stream._writableState.errorEmitted = true; - errorOrDestroy(stream, er); - // this can emit finish, but finish must - // always follow error - finishMaybe(stream, state); - } -} -function onwriteStateUpdate(state) { - state.writing = false; - state.writecb = null; - state.length -= state.writelen; - state.writelen = 0; -} -function onwrite(stream, er) { - var state = stream._writableState; - var sync = state.sync; - var cb = state.writecb; - if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK(); - onwriteStateUpdate(state); - if (er) onwriteError(stream, state, sync, er, cb);else { - // Check if we're actually ready to finish, but don't emit yet - var finished = needFinish(state) || stream.destroyed; - if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { - clearBuffer(stream, state); - } - if (sync) { - process.nextTick(afterWrite, stream, state, finished, cb); - } else { - afterWrite(stream, state, finished, cb); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } - } -} -function afterWrite(stream, state, finished, cb) { - if (!finished) onwriteDrain(stream, state); - state.pendingcb--; - cb(); - finishMaybe(stream, state); -} + }]); -// Must force callback to be called on nextTick, so that we don't -// emit 'drain' before the write() consumer gets the 'false' return -// value, and has a chance to attach a 'drain' listener. -function onwriteDrain(stream, state) { - if (state.length === 0 && state.needDrain) { - state.needDrain = false; - stream.emit('drain'); - } -} + return GetTargetDetails; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -// if there's something in the buffer waiting, then process it -function clearBuffer(stream, state) { - state.bufferProcessing = true; - var entry = state.bufferedRequest; - if (stream._writev && entry && entry.next) { - // Fast case, write everything using _writev() - var l = state.bufferedRequestCount; - var buffer = new Array(l); - var holder = state.corkedRequestsFree; - holder.entry = entry; - var count = 0; - var allBuffers = true; - while (entry) { - buffer[count] = entry; - if (!entry.isBuf) allBuffers = false; - entry = entry.next; - count += 1; - } - buffer.allBuffers = allBuffers; - doWrite(stream, state, true, state.length, buffer, '', holder.finish); - // doWrite is almost always async, defer these to save a bit of time - // as the hot path ends with doWrite - state.pendingcb++; - state.lastBufferedRequest = null; - if (holder.next) { - state.corkedRequestsFree = holder.next; - holder.next = null; - } else { - state.corkedRequestsFree = new CorkedRequest(state); - } - state.bufferedRequestCount = 0; - } else { - // Slow case, write chunks one-by-one - while (entry) { - var chunk = entry.chunk; - var encoding = entry.encoding; - var cb = entry.callback; - var len = state.objectMode ? 1 : chunk.length; - doWrite(stream, state, false, len, chunk, encoding, cb); - entry = entry.next; - state.bufferedRequestCount--; - // if we didn't call the onwrite immediately, then - // it means that we need to wait until it does. - // also, that means that the chunk and cb are currently - // being processed, so move the buffer counter past them. - if (state.writing) { - break; - } - } - if (entry === null) state.lastBufferedRequest = null; - } - state.bufferedRequest = entry; - state.bufferProcessing = false; -} -Writable.prototype._write = function (chunk, encoding, cb) { - cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()')); -}; -Writable.prototype._writev = null; -Writable.prototype.end = function (chunk, encoding, cb) { - var state = this._writableState; - if (typeof chunk === 'function') { - cb = chunk; - chunk = null; - encoding = null; - } else if (typeof encoding === 'function') { - cb = encoding; - encoding = null; - } - if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); +GetTargetDetails.prototype['json'] = false; +/** + * Target name + * @member {String} name + */ - // .end() fully uncorks - if (state.corked) { - state.corked = 1; - this.uncork(); - } +GetTargetDetails.prototype['name'] = undefined; +/** + * Include all target versions in reply + * @member {Boolean} show-versions + * @default false + */ - // ignore unnecessary end() calls. - if (!state.ending) endWritable(this, state, cb); - return this; -}; -Object.defineProperty(Writable.prototype, 'writableLength', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._writableState.length; - } -}); -function needFinish(state) { - return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; -} -function callFinal(stream, state) { - stream._final(function (err) { - state.pendingcb--; - if (err) { - errorOrDestroy(stream, err); - } - state.prefinished = true; - stream.emit('prefinish'); - finishMaybe(stream, state); - }); -} -function prefinish(stream, state) { - if (!state.prefinished && !state.finalCalled) { - if (typeof stream._final === 'function' && !state.destroyed) { - state.pendingcb++; - state.finalCalled = true; - process.nextTick(callFinal, stream, state); - } else { - state.prefinished = true; - stream.emit('prefinish'); - } - } -} -function finishMaybe(stream, state) { - var need = needFinish(state); - if (need) { - prefinish(stream, state); - if (state.pendingcb === 0) { - state.finished = true; - stream.emit('finish'); - if (state.autoDestroy) { - // In case of duplex streams we need a way to detect - // if the readable side is ready for autoDestroy as well - var rState = stream._readableState; - if (!rState || rState.autoDestroy && rState.endEmitted) { - stream.destroy(); - } - } - } - } - return need; -} -function endWritable(stream, state, cb) { - state.ending = true; - finishMaybe(stream, state); - if (cb) { - if (state.finished) process.nextTick(cb);else stream.once('finish', cb); - } - state.ended = true; - stream.writable = false; -} -function onCorkedFinish(corkReq, state, err) { - var entry = corkReq.entry; - corkReq.entry = null; - while (entry) { - var cb = entry.callback; - state.pendingcb--; - cb(err); - entry = entry.next; - } +GetTargetDetails.prototype['show-versions'] = false; +/** + * Target version + * @member {Number} target-version + */ - // reuse the free corkReq. - state.corkedRequestsFree.next = corkReq; -} -Object.defineProperty(Writable.prototype, 'destroyed', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - if (this._writableState === undefined) { - return false; - } - return this._writableState.destroyed; - }, - set: function set(value) { - // we ignore the value if the stream - // has not been initialized yet - if (!this._writableState) { - return; - } +GetTargetDetails.prototype['target-version'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - // backward compatibility, the user is explicitly - // managing destroyed - this._writableState.destroyed = value; - } -}); -Writable.prototype.destroy = destroyImpl.destroy; -Writable.prototype._undestroy = destroyImpl.undestroy; -Writable.prototype._destroy = function (err, cb) { - cb(err); -}; +GetTargetDetails.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +GetTargetDetails.prototype['uid-token'] = undefined; +var _default = GetTargetDetails; +exports["default"] = _default; /***/ }), -/***/ 48692: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 69392: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var _Object$setPrototypeO; -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } -var finished = __nccwpck_require__(72175); -var kLastResolve = Symbol('lastResolve'); -var kLastReject = Symbol('lastReject'); -var kError = Symbol('error'); -var kEnded = Symbol('ended'); -var kLastPromise = Symbol('lastPromise'); -var kHandlePromise = Symbol('handlePromise'); -var kStream = Symbol('stream'); -function createIterResult(value, done) { - return { - value: value, - done: done - }; -} -function readAndResolve(iter) { - var resolve = iter[kLastResolve]; - if (resolve !== null) { - var data = iter[kStream].read(); - // we defer if data is null - // we can be expecting either 'end' or - // 'error' - if (data !== null) { - iter[kLastPromise] = null; - iter[kLastResolve] = null; - iter[kLastReject] = null; - resolve(createIterResult(data, false)); - } - } -} -function onReadable(iter) { - // we wait for the next tick, because it might - // emit an error with process.nextTick - process.nextTick(readAndResolve, iter); -} -function wrapForNext(lastPromise, iter) { - return function (resolve, reject) { - lastPromise.then(function () { - if (iter[kEnded]) { - resolve(createIterResult(undefined, true)); - return; - } - iter[kHandlePromise](resolve, reject); - }, reject); - }; -} -var AsyncIteratorPrototype = Object.getPrototypeOf(function () {}); -var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = { - get stream() { - return this[kStream]; - }, - next: function next() { - var _this = this; - // if we have detected an error in the meanwhile - // reject straight away - var error = this[kError]; - if (error !== null) { - return Promise.reject(error); - } - if (this[kEnded]) { - return Promise.resolve(createIterResult(undefined, true)); - } - if (this[kStream].destroyed) { - // We need to defer via nextTick because if .destroy(err) is - // called, the error will be emitted via nextTick, and - // we cannot guarantee that there is no error lingering around - // waiting to be emitted. - return new Promise(function (resolve, reject) { - process.nextTick(function () { - if (_this[kError]) { - reject(_this[kError]); - } else { - resolve(createIterResult(undefined, true)); - } - }); - }); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // if we have multiple next() calls - // we will wait for the previous Promise to finish - // this logic is optimized to support for await loops, - // where next() is only called once at a time - var lastPromise = this[kLastPromise]; - var promise; - if (lastPromise) { - promise = new Promise(wrapForNext(lastPromise, this)); - } else { - // fast path needed to support multiple this.push() - // without triggering the next() queue - var data = this[kStream].read(); - if (data !== null) { - return Promise.resolve(createIterResult(data, false)); - } - promise = new Promise(this[kHandlePromise]); - } - this[kLastPromise] = promise; - return promise; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _Target = _interopRequireDefault(__nccwpck_require__(50373)); + +var _TargetTypeDetailsInput = _interopRequireDefault(__nccwpck_require__(6643)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GetTargetDetailsOutput model module. + * @module model/GetTargetDetailsOutput + * @version 3.6.3 + */ +var GetTargetDetailsOutput = /*#__PURE__*/function () { + /** + * Constructs a new GetTargetDetailsOutput. + * @alias module:model/GetTargetDetailsOutput + */ + function GetTargetDetailsOutput() { + _classCallCheck(this, GetTargetDetailsOutput); + + GetTargetDetailsOutput.initialize(this); } -}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () { - return this; -}), _defineProperty(_Object$setPrototypeO, "return", function _return() { - var _this2 = this; - // destroy(err, cb) is a private API - // we can guarantee we have that here, because we control the - // Readable class this is attached to - return new Promise(function (resolve, reject) { - _this2[kStream].destroy(null, function (err) { - if (err) { - reject(err); - return; - } - resolve(createIterResult(undefined, true)); - }); - }); -}), _Object$setPrototypeO), AsyncIteratorPrototype); -var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) { - var _Object$create; - var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, { - value: stream, - writable: true - }), _defineProperty(_Object$create, kLastResolve, { - value: null, - writable: true - }), _defineProperty(_Object$create, kLastReject, { - value: null, - writable: true - }), _defineProperty(_Object$create, kError, { - value: null, - writable: true - }), _defineProperty(_Object$create, kEnded, { - value: stream._readableState.endEmitted, - writable: true - }), _defineProperty(_Object$create, kHandlePromise, { - value: function value(resolve, reject) { - var data = iterator[kStream].read(); + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GetTargetDetailsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GetTargetDetailsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetTargetDetailsOutput} obj Optional instance to populate. + * @return {module:model/GetTargetDetailsOutput} The populated GetTargetDetailsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { if (data) { - iterator[kLastPromise] = null; - iterator[kLastResolve] = null; - iterator[kLastReject] = null; - resolve(createIterResult(data, false)); - } else { - iterator[kLastResolve] = resolve; - iterator[kLastReject] = reject; - } - }, - writable: true - }), _Object$create)); - iterator[kLastPromise] = null; - finished(stream, function (err) { - if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') { - var reject = iterator[kLastReject]; - // reject if we are waiting for data in the Promise - // returned by next() and store the error - if (reject !== null) { - iterator[kLastPromise] = null; - iterator[kLastResolve] = null; - iterator[kLastReject] = null; - reject(err); + obj = obj || new GetTargetDetailsOutput(); + + if (data.hasOwnProperty('target')) { + obj['target'] = _Target["default"].constructFromObject(data['target']); + } + + if (data.hasOwnProperty('value')) { + obj['value'] = _TargetTypeDetailsInput["default"].constructFromObject(data['value']); + } } - iterator[kError] = err; - return; - } - var resolve = iterator[kLastResolve]; - if (resolve !== null) { - iterator[kLastPromise] = null; - iterator[kLastResolve] = null; - iterator[kLastReject] = null; - resolve(createIterResult(undefined, true)); + + return obj; } - iterator[kEnded] = true; - }); - stream.on('readable', onReadable.bind(null, iterator)); - return iterator; -}; -module.exports = createReadableStreamAsyncIterator; + }]); + + return GetTargetDetailsOutput; +}(); +/** + * @member {module:model/Target} target + */ + + +GetTargetDetailsOutput.prototype['target'] = undefined; +/** + * @member {module:model/TargetTypeDetailsInput} value + */ + +GetTargetDetailsOutput.prototype['value'] = undefined; +var _default = GetTargetDetailsOutput; +exports["default"] = _default; /***/ }), -/***/ 82027: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 96266: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } -var _require = __nccwpck_require__(20181), - Buffer = _require.Buffer; -var _require2 = __nccwpck_require__(39023), - inspect = _require2.inspect; -var custom = inspect && inspect.custom || 'inspect'; -function copyBuffer(src, target, offset) { - Buffer.prototype.copy.call(src, target, offset); -} -module.exports = /*#__PURE__*/function () { - function BufferList() { - _classCallCheck(this, BufferList); - this.head = null; - this.tail = null; - this.length = 0; + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GetUserEventStatusOutput model module. + * @module model/GetUserEventStatusOutput + * @version 3.6.3 + */ +var GetUserEventStatusOutput = /*#__PURE__*/function () { + /** + * Constructs a new GetUserEventStatusOutput. + * @alias module:model/GetUserEventStatusOutput + */ + function GetUserEventStatusOutput() { + _classCallCheck(this, GetUserEventStatusOutput); + + GetUserEventStatusOutput.initialize(this); } - _createClass(BufferList, [{ - key: "push", - value: function push(v) { - var entry = { - data: v, - next: null - }; - if (this.length > 0) this.tail.next = entry;else this.head = entry; - this.tail = entry; - ++this.length; - } - }, { - key: "unshift", - value: function unshift(v) { - var entry = { - data: v, - next: this.head - }; - if (this.length === 0) this.tail = entry; - this.head = entry; - ++this.length; - } - }, { - key: "shift", - value: function shift() { - if (this.length === 0) return; - var ret = this.head.data; - if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next; - --this.length; - return ret; - } - }, { - key: "clear", - value: function clear() { - this.head = this.tail = null; - this.length = 0; - } - }, { - key: "join", - value: function join(s) { - if (this.length === 0) return ''; - var p = this.head; - var ret = '' + p.data; - while (p = p.next) ret += s + p.data; - return ret; - } - }, { - key: "concat", - value: function concat(n) { - if (this.length === 0) return Buffer.alloc(0); - var ret = Buffer.allocUnsafe(n >>> 0); - var p = this.head; - var i = 0; - while (p) { - copyBuffer(p.data, ret, i); - i += p.data.length; - p = p.next; - } - return ret; - } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // Consumes a specified amount of bytes or characters from the buffered data. - }, { - key: "consume", - value: function consume(n, hasStrings) { - var ret; - if (n < this.head.data.length) { - // `slice` is the same for buffers and strings. - ret = this.head.data.slice(0, n); - this.head.data = this.head.data.slice(n); - } else if (n === this.head.data.length) { - // First chunk is a perfect match. - ret = this.shift(); - } else { - // Result spans more than one buffer. - ret = hasStrings ? this._getString(n) : this._getBuffer(n); - } - return ret; - } - }, { - key: "first", - value: function first() { - return this.head.data; - } - // Consumes a specified amount of characters from the buffered data. + _createClass(GetUserEventStatusOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GetUserEventStatusOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetUserEventStatusOutput} obj Optional instance to populate. + * @return {module:model/GetUserEventStatusOutput} The populated GetUserEventStatusOutput instance. + */ + }, { - key: "_getString", - value: function _getString(n) { - var p = this.head; - var c = 1; - var ret = p.data; - n -= ret.length; - while (p = p.next) { - var str = p.data; - var nb = n > str.length ? str.length : n; - if (nb === str.length) ret += str;else ret += str.slice(0, n); - n -= nb; - if (n === 0) { - if (nb === str.length) { - ++c; - if (p.next) this.head = p.next;else this.head = this.tail = null; - } else { - this.head = p; - p.data = str.slice(nb); - } - break; + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetUserEventStatusOutput(); + + if (data.hasOwnProperty('access_status')) { + obj['access_status'] = _ApiClient["default"].convertToType(data['access_status'], 'String'); } - ++c; - } - this.length -= c; - return ret; - } - // Consumes a specified amount of bytes from the buffered data. - }, { - key: "_getBuffer", - value: function _getBuffer(n) { - var ret = Buffer.allocUnsafe(n); - var p = this.head; - var c = 1; - p.data.copy(ret); - n -= p.data.length; - while (p = p.next) { - var buf = p.data; - var nb = n > buf.length ? buf.length : n; - buf.copy(ret, ret.length - n, 0, nb); - n -= nb; - if (n === 0) { - if (nb === buf.length) { - ++c; - if (p.next) this.head = p.next;else this.head = this.tail = null; - } else { - this.head = p; - p.data = buf.slice(nb); - } - break; + if (data.hasOwnProperty('event_created_at')) { + obj['event_created_at'] = _ApiClient["default"].convertToType(data['event_created_at'], 'Date'); + } + + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); } - ++c; } - this.length -= c; - return ret; - } - // Make sure the linked list only shows the minimal necessary information. - }, { - key: custom, - value: function value(_, options) { - return inspect(this, _objectSpread(_objectSpread({}, options), {}, { - // Only inspect one level. - depth: 0, - // It should not recurse. - customInspect: false - })); + return obj; } }]); - return BufferList; + + return GetUserEventStatusOutput; }(); +/** + * @member {String} access_status + */ + + +GetUserEventStatusOutput.prototype['access_status'] = undefined; +/** + * @member {Date} event_created_at + */ + +GetUserEventStatusOutput.prototype['event_created_at'] = undefined; +/** + * @member {String} status + */ + +GetUserEventStatusOutput.prototype['status'] = undefined; +var _default = GetUserEventStatusOutput; +exports["default"] = _default; /***/ }), -/***/ 91457: -/***/ ((module) => { +/***/ 46870: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// undocumented cb() API, needed for core, not for public API -function destroy(err, cb) { - var _this = this; - var readableDestroyed = this._readableState && this._readableState.destroyed; - var writableDestroyed = this._writableState && this._writableState.destroyed; - if (readableDestroyed || writableDestroyed) { - if (cb) { - cb(err); - } else if (err) { - if (!this._writableState) { - process.nextTick(emitErrorNT, this, err); - } else if (!this._writableState.errorEmitted) { - this._writableState.errorEmitted = true; - process.nextTick(emitErrorNT, this, err); - } - } - return this; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // we set destroyed to true before firing error callbacks in order - // to make it re-entrance safe in case destroy() is called within callbacks +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (this._readableState) { - this._readableState.destroyed = true; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // if this is a duplex stream mark the writable part as destroyed as well - if (this._writableState) { - this._writableState.destroyed = true; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The GithubTargetDetails model module. + * @module model/GithubTargetDetails + * @version 3.6.3 + */ +var GithubTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new GithubTargetDetails. + * @alias module:model/GithubTargetDetails + */ + function GithubTargetDetails() { + _classCallCheck(this, GithubTargetDetails); + + GithubTargetDetails.initialize(this); } - this._destroy(err || null, function (err) { - if (!cb && err) { - if (!_this._writableState) { - process.nextTick(emitErrorAndCloseNT, _this, err); - } else if (!_this._writableState.errorEmitted) { - _this._writableState.errorEmitted = true; - process.nextTick(emitErrorAndCloseNT, _this, err); - } else { - process.nextTick(emitCloseNT, _this); + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GithubTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GithubTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GithubTargetDetails} obj Optional instance to populate. + * @return {module:model/GithubTargetDetails} The populated GithubTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GithubTargetDetails(); + + if (data.hasOwnProperty('github_app_id')) { + obj['github_app_id'] = _ApiClient["default"].convertToType(data['github_app_id'], 'Number'); + } + + if (data.hasOwnProperty('github_app_private_key')) { + obj['github_app_private_key'] = _ApiClient["default"].convertToType(data['github_app_private_key'], 'String'); + } + + if (data.hasOwnProperty('github_base_url')) { + obj['github_base_url'] = _ApiClient["default"].convertToType(data['github_base_url'], 'String'); + } } - } else if (cb) { - process.nextTick(emitCloseNT, _this); - cb(err); - } else { - process.nextTick(emitCloseNT, _this); + + return obj; } - }); - return this; -} -function emitErrorAndCloseNT(self, err) { - emitErrorNT(self, err); - emitCloseNT(self); -} -function emitCloseNT(self) { - if (self._writableState && !self._writableState.emitClose) return; - if (self._readableState && !self._readableState.emitClose) return; - self.emit('close'); -} -function undestroy() { - if (this._readableState) { - this._readableState.destroyed = false; - this._readableState.reading = false; - this._readableState.ended = false; - this._readableState.endEmitted = false; - } - if (this._writableState) { - this._writableState.destroyed = false; - this._writableState.ended = false; - this._writableState.ending = false; - this._writableState.finalCalled = false; - this._writableState.prefinished = false; - this._writableState.finished = false; - this._writableState.errorEmitted = false; - } -} -function emitErrorNT(self, err) { - self.emit('error', err); -} -function errorOrDestroy(stream, err) { - // We have tests that rely on errors being emitted - // in the same tick, so changing this is semver major. - // For now when you opt-in to autoDestroy we allow - // the error to be emitted nextTick. In a future - // semver major update we should change the default to this. + }]); - var rState = stream._readableState; - var wState = stream._writableState; - if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err); -} -module.exports = { - destroy: destroy, - undestroy: undestroy, - errorOrDestroy: errorOrDestroy -}; + return GithubTargetDetails; +}(); +/** + * @member {Number} github_app_id + */ + + +GithubTargetDetails.prototype['github_app_id'] = undefined; +/** + * @member {String} github_app_private_key + */ + +GithubTargetDetails.prototype['github_app_private_key'] = undefined; +/** + * @member {String} github_base_url + */ + +GithubTargetDetails.prototype['github_base_url'] = undefined; +var _default = GithubTargetDetails; +exports["default"] = _default; /***/ }), -/***/ 72175: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 77606: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Ported from https://github.com/mafintosh/end-of-stream with -// permission from the author, Mathias Buus (@mafintosh). +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var ERR_STREAM_PREMATURE_CLOSE = (__nccwpck_require__(58940)/* .codes */ .F).ERR_STREAM_PREMATURE_CLOSE; -function once(callback) { - var called = false; - return function () { - if (called) return; - called = true; - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - callback.apply(this, args); - }; -} -function noop() {} -function isRequest(stream) { - return stream.setHeader && typeof stream.abort === 'function'; -} -function eos(stream, opts, callback) { - if (typeof opts === 'function') return eos(stream, null, opts); - if (!opts) opts = {}; - callback = once(callback || noop); - var readable = opts.readable || opts.readable !== false && stream.readable; - var writable = opts.writable || opts.writable !== false && stream.writable; - var onlegacyfinish = function onlegacyfinish() { - if (!stream.writable) onfinish(); - }; - var writableEnded = stream._writableState && stream._writableState.finished; - var onfinish = function onfinish() { - writable = false; - writableEnded = true; - if (!readable) callback.call(stream); - }; - var readableEnded = stream._readableState && stream._readableState.endEmitted; - var onend = function onend() { - readable = false; - readableEnded = true; - if (!writable) callback.call(stream); - }; - var onerror = function onerror(err) { - callback.call(stream, err); - }; - var onclose = function onclose() { - var err; - if (readable && !readableEnded) { - if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE(); - return callback.call(stream, err); - } - if (writable && !writableEnded) { - if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE(); - return callback.call(stream, err); - } - }; - var onrequest = function onrequest() { - stream.req.on('finish', onfinish); - }; - if (isRequest(stream)) { - stream.on('complete', onfinish); - stream.on('abort', onclose); - if (stream.req) onrequest();else stream.on('request', onrequest); - } else if (writable && !stream._writableState) { - // legacy streams - stream.on('end', onlegacyfinish); - stream.on('close', onlegacyfinish); - } - stream.on('end', onend); - stream.on('finish', onfinish); - if (opts.error !== false) stream.on('error', onerror); - stream.on('close', onclose); - return function () { - stream.removeListener('complete', onfinish); - stream.removeListener('abort', onclose); - stream.removeListener('request', onrequest); - if (stream.req) stream.req.removeListener('finish', onfinish); - stream.removeListener('end', onlegacyfinish); - stream.removeListener('close', onlegacyfinish); - stream.removeListener('finish', onfinish); - stream.removeListener('end', onend); - stream.removeListener('error', onerror); - stream.removeListener('close', onclose); - }; -} -module.exports = eos; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ }), +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ 17491: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -"use strict"; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } -var ERR_INVALID_ARG_TYPE = (__nccwpck_require__(58940)/* .codes */ .F).ERR_INVALID_ARG_TYPE; -function from(Readable, iterable, opts) { - var iterator; - if (iterable && typeof iterable.next === 'function') { - iterator = iterable; - } else if (iterable && iterable[Symbol.asyncIterator]) iterator = iterable[Symbol.asyncIterator]();else if (iterable && iterable[Symbol.iterator]) iterator = iterable[Symbol.iterator]();else throw new ERR_INVALID_ARG_TYPE('iterable', ['Iterable'], iterable); - var readable = new Readable(_objectSpread({ - objectMode: true - }, opts)); - // Reading boolean to protect against _read - // being called before last iteration completion. - var reading = false; - readable._read = function () { - if (!reading) { - reading = true; - next(); - } - }; - function next() { - return _next2.apply(this, arguments); +/** + * The GlobalSignAtlasTargetDetails model module. + * @module model/GlobalSignAtlasTargetDetails + * @version 3.6.3 + */ +var GlobalSignAtlasTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new GlobalSignAtlasTargetDetails. + * GlobalSignAtlasTargetDetails + * @alias module:model/GlobalSignAtlasTargetDetails + */ + function GlobalSignAtlasTargetDetails() { + _classCallCheck(this, GlobalSignAtlasTargetDetails); + + GlobalSignAtlasTargetDetails.initialize(this); } - function _next2() { - _next2 = _asyncToGenerator(function* () { - try { - var _yield$iterator$next = yield iterator.next(), - value = _yield$iterator$next.value, - done = _yield$iterator$next.done; - if (done) { - readable.push(null); - } else if (readable.push(yield value)) { - next(); - } else { - reading = false; + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(GlobalSignAtlasTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GlobalSignAtlasTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GlobalSignAtlasTargetDetails} obj Optional instance to populate. + * @return {module:model/GlobalSignAtlasTargetDetails} The populated GlobalSignAtlasTargetDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GlobalSignAtlasTargetDetails(); + + if (data.hasOwnProperty('api_key')) { + obj['api_key'] = _ApiClient["default"].convertToType(data['api_key'], 'String'); + } + + if (data.hasOwnProperty('api_secret')) { + obj['api_secret'] = _ApiClient["default"].convertToType(data['api_secret'], 'String'); + } + + if (data.hasOwnProperty('mtls_cert')) { + obj['mtls_cert'] = _ApiClient["default"].convertToType(data['mtls_cert'], 'String'); + } + + if (data.hasOwnProperty('mtls_key')) { + obj['mtls_key'] = _ApiClient["default"].convertToType(data['mtls_key'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); } - } catch (err) { - readable.destroy(err); } - }); - return _next2.apply(this, arguments); - } - return readable; -} -module.exports = from; + return obj; + } + }]); -/***/ }), + return GlobalSignAtlasTargetDetails; +}(); +/** + * @member {String} api_key + */ -/***/ 29725: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; -// Ported from https://github.com/mafintosh/pump with -// permission from the author, Mathias Buus (@mafintosh). +GlobalSignAtlasTargetDetails.prototype['api_key'] = undefined; +/** + * @member {String} api_secret + */ +GlobalSignAtlasTargetDetails.prototype['api_secret'] = undefined; +/** + * @member {String} mtls_cert + */ +GlobalSignAtlasTargetDetails.prototype['mtls_cert'] = undefined; +/** + * @member {String} mtls_key + */ -var eos; -function once(callback) { - var called = false; - return function () { - if (called) return; - called = true; - callback.apply(void 0, arguments); - }; -} -var _require$codes = (__nccwpck_require__(58940)/* .codes */ .F), - ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS, - ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED; -function noop(err) { - // Rethrow the error if it exists to avoid swallowing it - if (err) throw err; -} -function isRequest(stream) { - return stream.setHeader && typeof stream.abort === 'function'; -} -function destroyer(stream, reading, writing, callback) { - callback = once(callback); - var closed = false; - stream.on('close', function () { - closed = true; - }); - if (eos === undefined) eos = __nccwpck_require__(72175); - eos(stream, { - readable: reading, - writable: writing - }, function (err) { - if (err) return callback(err); - closed = true; - callback(); - }); - var destroyed = false; - return function (err) { - if (closed) return; - if (destroyed) return; - destroyed = true; +GlobalSignAtlasTargetDetails.prototype['mtls_key'] = undefined; +/** + * A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. + * @member {Number} timeout + */ - // request.destroy just do .end - .abort is what we want - if (isRequest(stream)) return stream.abort(); - if (typeof stream.destroy === 'function') return stream.destroy(); - callback(err || new ERR_STREAM_DESTROYED('pipe')); - }; -} -function call(fn) { - fn(); -} -function pipe(from, to) { - return from.pipe(to); -} -function popCallback(streams) { - if (!streams.length) return noop; - if (typeof streams[streams.length - 1] !== 'function') return noop; - return streams.pop(); -} -function pipeline() { - for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) { - streams[_key] = arguments[_key]; - } - var callback = popCallback(streams); - if (Array.isArray(streams[0])) streams = streams[0]; - if (streams.length < 2) { - throw new ERR_MISSING_ARGS('streams'); - } - var error; - var destroys = streams.map(function (stream, i) { - var reading = i < streams.length - 1; - var writing = i > 0; - return destroyer(stream, reading, writing, function (err) { - if (!error) error = err; - if (err) destroys.forEach(call); - if (reading) return; - destroys.forEach(call); - callback(error); - }); - }); - return streams.reduce(pipe); -} -module.exports = pipeline; +GlobalSignAtlasTargetDetails.prototype['timeout'] = undefined; +var _default = GlobalSignAtlasTargetDetails; +exports["default"] = _default; /***/ }), -/***/ 6394: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 4150: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var ERR_INVALID_OPT_VALUE = (__nccwpck_require__(58940)/* .codes */ .F).ERR_INVALID_OPT_VALUE; -function highWaterMarkFrom(options, isDuplex, duplexKey) { - return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null; -} -function getHighWaterMark(state, options, duplexKey, isDuplex) { - var hwm = highWaterMarkFrom(options, isDuplex, duplexKey); - if (hwm != null) { - if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) { - var name = isDuplex ? duplexKey : 'highWaterMark'; - throw new ERR_INVALID_OPT_VALUE(name, hwm); - } - return Math.floor(hwm); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // Default value - return state.objectMode ? 16 : 16 * 1024; -} -module.exports = { - getHighWaterMark: getHighWaterMark -}; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ }), +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ 94291: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -module.exports = __nccwpck_require__(2203); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -/***/ }), +/** + * The GlobalSignGCCTargetDetails model module. + * @module model/GlobalSignGCCTargetDetails + * @version 3.6.3 + */ +var GlobalSignGCCTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new GlobalSignGCCTargetDetails. + * GlobalSignGCCTargetDetails + * @alias module:model/GlobalSignGCCTargetDetails + */ + function GlobalSignGCCTargetDetails() { + _classCallCheck(this, GlobalSignGCCTargetDetails); -/***/ 29843: -/***/ ((module, exports, __nccwpck_require__) => { + GlobalSignGCCTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var Stream = __nccwpck_require__(2203); -if (process.env.READABLE_STREAM === 'disable' && Stream) { - module.exports = Stream.Readable; - Object.assign(module.exports, Stream); - module.exports.Stream = Stream; -} else { - exports = module.exports = __nccwpck_require__(45869); - exports.Stream = Stream || exports; - exports.Readable = exports; - exports.Writable = __nccwpck_require__(1805); - exports.Duplex = __nccwpck_require__(60175); - exports.Transform = __nccwpck_require__(69329); - exports.PassThrough = __nccwpck_require__(59379); - exports.finished = __nccwpck_require__(72175); - exports.pipeline = __nccwpck_require__(29725); -} + _createClass(GlobalSignGCCTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GlobalSignGCCTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GlobalSignGCCTargetDetails} obj Optional instance to populate. + * @return {module:model/GlobalSignGCCTargetDetails} The populated GlobalSignGCCTargetDetails instance. + */ -/***/ }), + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GlobalSignGCCTargetDetails(); -/***/ 325: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('email')) { + obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('first_name')) { + obj['first_name'] = _ApiClient["default"].convertToType(data['first_name'], 'String'); + } + if (data.hasOwnProperty('last_name')) { + obj['last_name'] = _ApiClient["default"].convertToType(data['last_name'], 'String'); + } -var Buffer = (__nccwpck_require__(93058).Buffer); + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } -var getParamBytesForAlg = __nccwpck_require__(5028); + if (data.hasOwnProperty('phone')) { + obj['phone'] = _ApiClient["default"].convertToType(data['phone'], 'String'); + } -var MAX_OCTET = 0x80, - CLASS_UNIVERSAL = 0, - PRIMITIVE_BIT = 0x20, - TAG_SEQ = 0x10, - TAG_INT = 0x02, - ENCODED_TAG_SEQ = (TAG_SEQ | PRIMITIVE_BIT) | (CLASS_UNIVERSAL << 6), - ENCODED_TAG_INT = TAG_INT | (CLASS_UNIVERSAL << 6); + if (data.hasOwnProperty('profile_id')) { + obj['profile_id'] = _ApiClient["default"].convertToType(data['profile_id'], 'String'); + } -function base64Url(base64) { - return base64 - .replace(/=/g, '') - .replace(/\+/g, '-') - .replace(/\//g, '_'); -} + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); + } -function signatureAsBuffer(signature) { - if (Buffer.isBuffer(signature)) { - return signature; - } else if ('string' === typeof signature) { - return Buffer.from(signature, 'base64'); - } + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + } - throw new TypeError('ECDSA signature must be a Base64 string or a Buffer'); -} + return obj; + } + }]); -function derToJose(signature, alg) { - signature = signatureAsBuffer(signature); - var paramBytes = getParamBytesForAlg(alg); + return GlobalSignGCCTargetDetails; +}(); +/** + * @member {String} email + */ - // the DER encoded param should at most be the param size, plus a padding - // zero, since due to being a signed integer - var maxEncodedParamLength = paramBytes + 1; - var inputLength = signature.length; +GlobalSignGCCTargetDetails.prototype['email'] = undefined; +/** + * Contact Info - GlobalSign requires this to be sent with every certificate creation request + * @member {String} first_name + */ - var offset = 0; - if (signature[offset++] !== ENCODED_TAG_SEQ) { - throw new Error('Could not find expected "seq"'); - } +GlobalSignGCCTargetDetails.prototype['first_name'] = undefined; +/** + * @member {String} last_name + */ - var seqLength = signature[offset++]; - if (seqLength === (MAX_OCTET | 1)) { - seqLength = signature[offset++]; - } +GlobalSignGCCTargetDetails.prototype['last_name'] = undefined; +/** + * @member {String} password + */ - if (inputLength - offset < seqLength) { - throw new Error('"seq" specified length of "' + seqLength + '", only "' + (inputLength - offset) + '" remaining'); - } +GlobalSignGCCTargetDetails.prototype['password'] = undefined; +/** + * @member {String} phone + */ + +GlobalSignGCCTargetDetails.prototype['phone'] = undefined; +/** + * @member {String} profile_id + */ + +GlobalSignGCCTargetDetails.prototype['profile_id'] = undefined; +/** + * A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. + * @member {Number} timeout + */ + +GlobalSignGCCTargetDetails.prototype['timeout'] = undefined; +/** + * @member {String} username + */ - if (signature[offset++] !== ENCODED_TAG_INT) { - throw new Error('Could not find expected "int" for "r"'); - } +GlobalSignGCCTargetDetails.prototype['username'] = undefined; +var _default = GlobalSignGCCTargetDetails; +exports["default"] = _default; - var rLength = signature[offset++]; +/***/ }), - if (inputLength - offset - 2 < rLength) { - throw new Error('"r" specified length of "' + rLength + '", only "' + (inputLength - offset - 2) + '" available'); - } +/***/ 52393: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (maxEncodedParamLength < rLength) { - throw new Error('"r" specified length of "' + rLength + '", max of "' + maxEncodedParamLength + '" is acceptable'); - } +"use strict"; - var rOffset = offset; - offset += rLength; - if (signature[offset++] !== ENCODED_TAG_INT) { - throw new Error('Could not find expected "int" for "s"'); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - var sLength = signature[offset++]; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (inputLength - offset !== sLength) { - throw new Error('"s" specified length of "' + sLength + '", expected "' + (inputLength - offset) + '"'); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (maxEncodedParamLength < sLength) { - throw new Error('"s" specified length of "' + sLength + '", max of "' + maxEncodedParamLength + '" is acceptable'); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var sOffset = offset; - offset += sLength; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (offset !== inputLength) { - throw new Error('Expected to consume entire buffer, but "' + (inputLength - offset) + '" bytes remain'); - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - var rPadding = paramBytes - rLength, - sPadding = paramBytes - sLength; +/** + * The GodaddyTargetDetails model module. + * @module model/GodaddyTargetDetails + * @version 3.6.3 + */ +var GodaddyTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new GodaddyTargetDetails. + * GodaddyTargetDetails + * @alias module:model/GodaddyTargetDetails + */ + function GodaddyTargetDetails() { + _classCallCheck(this, GodaddyTargetDetails); - var dst = Buffer.allocUnsafe(rPadding + rLength + sPadding + sLength); + GodaddyTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - for (offset = 0; offset < rPadding; ++offset) { - dst[offset] = 0; - } - signature.copy(dst, offset, rOffset + Math.max(-rPadding, 0), rOffset + rLength); - offset = paramBytes; + _createClass(GodaddyTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GodaddyTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GodaddyTargetDetails} obj Optional instance to populate. + * @return {module:model/GodaddyTargetDetails} The populated GodaddyTargetDetails instance. + */ - for (var o = offset; offset < o + sPadding; ++offset) { - dst[offset] = 0; - } - signature.copy(dst, offset, sOffset + Math.max(-sPadding, 0), sOffset + sLength); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GodaddyTargetDetails(); - dst = dst.toString('base64'); - dst = base64Url(dst); + if (data.hasOwnProperty('imap_fqdn')) { + obj['imap_fqdn'] = _ApiClient["default"].convertToType(data['imap_fqdn'], 'String'); + } - return dst; -} + if (data.hasOwnProperty('imap_password')) { + obj['imap_password'] = _ApiClient["default"].convertToType(data['imap_password'], 'String'); + } -function countPadding(buf, start, stop) { - var padding = 0; - while (start + padding < stop && buf[start + padding] === 0) { - ++padding; - } + if (data.hasOwnProperty('imap_port')) { + obj['imap_port'] = _ApiClient["default"].convertToType(data['imap_port'], 'String'); + } - var needsSign = buf[start + padding] >= MAX_OCTET; - if (needsSign) { - --padding; - } + if (data.hasOwnProperty('imap_user')) { + obj['imap_user'] = _ApiClient["default"].convertToType(data['imap_user'], 'String'); + } - return padding; -} + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -function joseToDer(signature, alg) { - signature = signatureAsBuffer(signature); - var paramBytes = getParamBytesForAlg(alg); + if (data.hasOwnProperty('secret')) { + obj['secret'] = _ApiClient["default"].convertToType(data['secret'], 'String'); + } - var signatureBytes = signature.length; - if (signatureBytes !== paramBytes * 2) { - throw new TypeError('"' + alg + '" signatures must be "' + paramBytes * 2 + '" bytes, saw "' + signatureBytes + '"'); - } + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number'); + } - var rPadding = countPadding(signature, 0, paramBytes); - var sPadding = countPadding(signature, paramBytes, signature.length); - var rLength = paramBytes - rPadding; - var sLength = paramBytes - sPadding; + if (data.hasOwnProperty('validation_email')) { + obj['validation_email'] = _ApiClient["default"].convertToType(data['validation_email'], 'String'); + } + } - var rsBytes = 1 + 1 + rLength + 1 + 1 + sLength; + return obj; + } + }]); - var shortLength = rsBytes < MAX_OCTET; + return GodaddyTargetDetails; +}(); +/** + * @member {String} imap_fqdn + */ - var dst = Buffer.allocUnsafe((shortLength ? 2 : 3) + rsBytes); - var offset = 0; - dst[offset++] = ENCODED_TAG_SEQ; - if (shortLength) { - // Bit 8 has value "0" - // bits 7-1 give the length. - dst[offset++] = rsBytes; - } else { - // Bit 8 of first octet has value "1" - // bits 7-1 give the number of additional length octets. - dst[offset++] = MAX_OCTET | 1; - // length, base 256 - dst[offset++] = rsBytes & 0xff; - } - dst[offset++] = ENCODED_TAG_INT; - dst[offset++] = rLength; - if (rPadding < 0) { - dst[offset++] = 0; - offset += signature.copy(dst, offset, 0, paramBytes); - } else { - offset += signature.copy(dst, offset, rPadding, paramBytes); - } - dst[offset++] = ENCODED_TAG_INT; - dst[offset++] = sLength; - if (sPadding < 0) { - dst[offset++] = 0; - signature.copy(dst, offset, paramBytes); - } else { - signature.copy(dst, offset, paramBytes + sPadding); - } +GodaddyTargetDetails.prototype['imap_fqdn'] = undefined; +/** + * @member {String} imap_password + */ - return dst; -} +GodaddyTargetDetails.prototype['imap_password'] = undefined; +/** + * @member {String} imap_port + */ -module.exports = { - derToJose: derToJose, - joseToDer: joseToDer -}; +GodaddyTargetDetails.prototype['imap_port'] = undefined; +/** + * @member {String} imap_user + */ +GodaddyTargetDetails.prototype['imap_user'] = undefined; +/** + * @member {String} key + */ -/***/ }), +GodaddyTargetDetails.prototype['key'] = undefined; +/** + * @member {String} secret + */ -/***/ 5028: -/***/ ((module) => { +GodaddyTargetDetails.prototype['secret'] = undefined; +/** + * A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. + * @member {Number} timeout + */ -"use strict"; +GodaddyTargetDetails.prototype['timeout'] = undefined; +/** + * @member {String} validation_email + */ +GodaddyTargetDetails.prototype['validation_email'] = undefined; +var _default = GodaddyTargetDetails; +exports["default"] = _default; -function getParamSize(keySize) { - var result = ((keySize / 8) | 0) + (keySize % 8 === 0 ? 0 : 1); - return result; -} +/***/ }), -var paramBytesForAlg = { - ES256: getParamSize(256), - ES384: getParamSize(384), - ES512: getParamSize(521) -}; +/***/ 36479: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -function getParamBytesForAlg(alg) { - var paramBytes = paramBytesForAlg[alg]; - if (paramBytes) { - return paramBytes; - } +"use strict"; - throw new Error('Unknown algorithm "' + alg + '"'); -} -module.exports = getParamBytesForAlg; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ }), +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ 31424: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var once = __nccwpck_require__(55560); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var noop = function() {}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var qnt = global.Bare ? queueMicrotask : process.nextTick.bind(process); +/** + * The GoogleChronicleForwardingConfig model module. + * @module model/GoogleChronicleForwardingConfig + * @version 3.6.3 + */ +var GoogleChronicleForwardingConfig = /*#__PURE__*/function () { + /** + * Constructs a new GoogleChronicleForwardingConfig. + * @alias module:model/GoogleChronicleForwardingConfig + */ + function GoogleChronicleForwardingConfig() { + _classCallCheck(this, GoogleChronicleForwardingConfig); -var isRequest = function(stream) { - return stream.setHeader && typeof stream.abort === 'function'; -}; + GoogleChronicleForwardingConfig.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var isChildProcess = function(stream) { - return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3 -}; -var eos = function(stream, opts, callback) { - if (typeof opts === 'function') return eos(stream, null, opts); - if (!opts) opts = {}; + _createClass(GoogleChronicleForwardingConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GoogleChronicleForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GoogleChronicleForwardingConfig} obj Optional instance to populate. + * @return {module:model/GoogleChronicleForwardingConfig} The populated GoogleChronicleForwardingConfig instance. + */ - callback = once(callback || noop); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GoogleChronicleForwardingConfig(); - var ws = stream._writableState; - var rs = stream._readableState; - var readable = opts.readable || (opts.readable !== false && stream.readable); - var writable = opts.writable || (opts.writable !== false && stream.writable); - var cancelled = false; + if (data.hasOwnProperty('customer_id')) { + obj['customer_id'] = _ApiClient["default"].convertToType(data['customer_id'], 'String'); + } - var onlegacyfinish = function() { - if (!stream.writable) onfinish(); - }; + if (data.hasOwnProperty('log_type')) { + obj['log_type'] = _ApiClient["default"].convertToType(data['log_type'], 'String'); + } - var onfinish = function() { - writable = false; - if (!readable) callback.call(stream); - }; + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } - var onend = function() { - readable = false; - if (!writable) callback.call(stream); - }; + if (data.hasOwnProperty('service_account_key')) { + obj['service_account_key'] = _ApiClient["default"].convertToType(data['service_account_key'], 'String'); + } + } - var onexit = function(exitCode) { - callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null); - }; + return obj; + } + }]); - var onerror = function(err) { - callback.call(stream, err); - }; + return GoogleChronicleForwardingConfig; +}(); +/** + * @member {String} customer_id + */ - var onclose = function() { - qnt(onclosenexttick); - }; - var onclosenexttick = function() { - if (cancelled) return; - if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close')); - if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close')); - }; +GoogleChronicleForwardingConfig.prototype['customer_id'] = undefined; +/** + * @member {String} log_type + */ - var onrequest = function() { - stream.req.on('finish', onfinish); - }; +GoogleChronicleForwardingConfig.prototype['log_type'] = undefined; +/** + * @member {String} region + */ - if (isRequest(stream)) { - stream.on('complete', onfinish); - stream.on('abort', onclose); - if (stream.req) onrequest(); - else stream.on('request', onrequest); - } else if (writable && !ws) { // legacy streams - stream.on('end', onlegacyfinish); - stream.on('close', onlegacyfinish); - } +GoogleChronicleForwardingConfig.prototype['region'] = undefined; +/** + * @member {String} service_account_key + */ - if (isChildProcess(stream)) stream.on('exit', onexit); +GoogleChronicleForwardingConfig.prototype['service_account_key'] = undefined; +var _default = GoogleChronicleForwardingConfig; +exports["default"] = _default; - stream.on('end', onend); - stream.on('finish', onfinish); - if (opts.error !== false) stream.on('error', onerror); - stream.on('close', onclose); +/***/ }), - return function() { - cancelled = true; - stream.removeListener('complete', onfinish); - stream.removeListener('abort', onclose); - stream.removeListener('request', onrequest); - if (stream.req) stream.req.removeListener('finish', onfinish); - stream.removeListener('end', onlegacyfinish); - stream.removeListener('close', onlegacyfinish); - stream.removeListener('finish', onfinish); - stream.removeListener('exit', onexit); - stream.removeListener('end', onend); - stream.removeListener('error', onerror); - stream.removeListener('close', onclose); - }; -}; +/***/ 1617: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -module.exports = eos; +"use strict"; -/***/ }), +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/***/ 79094: -/***/ ((module) => { +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -"use strict"; +var _AccessPermissionAssignment = _interopRequireDefault(__nccwpck_require__(95036)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/** @type {import('.')} */ -var $defineProperty = Object.defineProperty || false; -if ($defineProperty) { - try { - $defineProperty({}, 'a', { value: 1 }); - } catch (e) { - // IE 8 has a broken defineProperty - $defineProperty = false; - } -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -module.exports = $defineProperty; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -/***/ }), +/** + * The Group model module. + * @module model/Group + * @version 3.6.3 + */ +var Group = /*#__PURE__*/function () { + /** + * Constructs a new Group. + * @alias module:model/Group + */ + function Group() { + _classCallCheck(this, Group); -/***/ 33056: -/***/ ((module) => { + Group.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -"use strict"; + _createClass(Group, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Group from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Group} obj Optional instance to populate. + * @return {module:model/Group} The populated Group instance. + */ -/** @type {import('./eval')} */ -module.exports = EvalError; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Group(); + if (data.hasOwnProperty('account_id')) { + obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); + } -/***/ 31620: -/***/ ((module) => { + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('group_alias')) { + obj['group_alias'] = _ApiClient["default"].convertToType(data['group_alias'], 'String'); + } + if (data.hasOwnProperty('group_id')) { + obj['group_id'] = _ApiClient["default"].convertToType(data['group_id'], 'String'); + } -/** @type {import('.')} */ -module.exports = Error; + if (data.hasOwnProperty('group_name')) { + obj['group_name'] = _ApiClient["default"].convertToType(data['group_name'], 'String'); + } + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } -/***/ }), + if (data.hasOwnProperty('user_assignments')) { + obj['user_assignments'] = _ApiClient["default"].convertToType(data['user_assignments'], [_AccessPermissionAssignment["default"]]); + } + } -/***/ 14585: -/***/ ((module) => { + return obj; + } + }]); -"use strict"; + return Group; +}(); +/** + * @member {String} account_id + */ -/** @type {import('./range')} */ -module.exports = RangeError; +Group.prototype['account_id'] = undefined; +/** + * @member {Date} creation_date + */ +Group.prototype['creation_date'] = undefined; +/** + * @member {String} description + */ -/***/ }), +Group.prototype['description'] = undefined; +/** + * @member {String} group_alias + */ -/***/ 46905: -/***/ ((module) => { +Group.prototype['group_alias'] = undefined; +/** + * @member {String} group_id + */ -"use strict"; +Group.prototype['group_id'] = undefined; +/** + * @member {String} group_name + */ +Group.prototype['group_name'] = undefined; +/** + * @member {Date} modification_date + */ -/** @type {import('./ref')} */ -module.exports = ReferenceError; +Group.prototype['modification_date'] = undefined; +/** + * @member {Array.} user_assignments + */ +Group.prototype['user_assignments'] = undefined; +var _default = Group; +exports["default"] = _default; /***/ }), -/***/ 80105: -/***/ ((module) => { +/***/ 73728: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -/** @type {import('./syntax')} */ -module.exports = SyntaxError; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ }), +var _CfInfo = _interopRequireDefault(__nccwpck_require__(31185)); -/***/ 73314: -/***/ ((module) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -"use strict"; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/** @type {import('./type')} */ -module.exports = TypeError; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +/** + * The GwClusterIdentity model module. + * @module model/GwClusterIdentity + * @version 3.6.3 + */ +var GwClusterIdentity = /*#__PURE__*/function () { + /** + * Constructs a new GwClusterIdentity. + * @alias module:model/GwClusterIdentity + */ + function GwClusterIdentity() { + _classCallCheck(this, GwClusterIdentity); -/***/ }), + GwClusterIdentity.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ 32578: -/***/ ((module) => { -"use strict"; + _createClass(GwClusterIdentity, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a GwClusterIdentity from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GwClusterIdentity} obj Optional instance to populate. + * @return {module:model/GwClusterIdentity} The populated GwClusterIdentity instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GwClusterIdentity(); -/** @type {import('./uri')} */ -module.exports = URIError; + if (data.hasOwnProperty('action_allowed')) { + obj['action_allowed'] = _ApiClient["default"].convertToType(data['action_allowed'], 'Boolean'); + } + if (data.hasOwnProperty('allowed')) { + obj['allowed'] = _ApiClient["default"].convertToType(data['allowed'], 'Boolean'); + } -/***/ }), + if (data.hasOwnProperty('allowed_access_ids')) { + obj['allowed_access_ids'] = _ApiClient["default"].convertToType(data['allowed_access_ids'], ['String']); + } -/***/ 95399: -/***/ ((module) => { + if (data.hasOwnProperty('cluster_name')) { + obj['cluster_name'] = _ApiClient["default"].convertToType(data['cluster_name'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('cluster_url')) { + obj['cluster_url'] = _ApiClient["default"].convertToType(data['cluster_url'], 'String'); + } + if (data.hasOwnProperty('current_gw')) { + obj['current_gw'] = _ApiClient["default"].convertToType(data['current_gw'], 'Boolean'); + } -/** @type {import('.')} */ -module.exports = Object; + if (data.hasOwnProperty('customer_fragment_ids')) { + obj['customer_fragment_ids'] = _ApiClient["default"].convertToType(data['customer_fragment_ids'], ['String']); + } + if (data.hasOwnProperty('customer_fragments')) { + obj['customer_fragments'] = _ApiClient["default"].convertToType(data['customer_fragments'], [_CfInfo["default"]]); + } -/***/ }), + if (data.hasOwnProperty('default_protection_key_id')) { + obj['default_protection_key_id'] = _ApiClient["default"].convertToType(data['default_protection_key_id'], 'Number'); + } -/***/ 88700: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('default_secret_location')) { + obj['default_secret_location'] = _ApiClient["default"].convertToType(data['default_secret_location'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('display_name')) { + obj['display_name'] = _ApiClient["default"].convertToType(data['display_name'], 'String'); + } + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); + } -var GetIntrinsic = __nccwpck_require__(60470); + if (data.hasOwnProperty('serverless_type')) { + obj['serverless_type'] = _ApiClient["default"].convertToType(data['serverless_type'], 'String'); + } -var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); + } -var hasToStringTag = __nccwpck_require__(85479)(); -var hasOwn = __nccwpck_require__(54076); -var $TypeError = __nccwpck_require__(73314); + if (data.hasOwnProperty('status_description')) { + obj['status_description'] = _ApiClient["default"].convertToType(data['status_description'], 'String'); + } + } -var toStringTag = hasToStringTag ? Symbol.toStringTag : null; + return obj; + } + }]); -/** @type {import('.')} */ -module.exports = function setToStringTag(object, value) { - var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force; - var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable; - if ( - (typeof overrideIfSet !== 'undefined' && typeof overrideIfSet !== 'boolean') - || (typeof nonConfigurable !== 'undefined' && typeof nonConfigurable !== 'boolean') - ) { - throw new $TypeError('if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans'); - } - if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) { - if ($defineProperty) { - $defineProperty(object, toStringTag, { - configurable: !nonConfigurable, - enumerable: false, - value: value, - writable: false - }); - } else { - object[toStringTag] = value; // eslint-disable-line no-param-reassign - } - } -}; + return GwClusterIdentity; +}(); +/** + * @member {Boolean} action_allowed + */ -/***/ }), +GwClusterIdentity.prototype['action_allowed'] = undefined; +/** + * @member {Boolean} allowed + */ -/***/ 16577: -/***/ ((module, exports) => { +GwClusterIdentity.prototype['allowed'] = undefined; +/** + * @member {Array.} allowed_access_ids + */ -"use strict"; +GwClusterIdentity.prototype['allowed_access_ids'] = undefined; /** - * @author Toru Nagashima - * @copyright 2015 Toru Nagashima. All rights reserved. - * See LICENSE file in root directory for full license. + * @member {String} cluster_name */ +GwClusterIdentity.prototype['cluster_name'] = undefined; +/** + * @member {String} cluster_url + */ -Object.defineProperty(exports, "__esModule", ({ value: true })); +GwClusterIdentity.prototype['cluster_url'] = undefined; +/** + * @member {Boolean} current_gw + */ +GwClusterIdentity.prototype['current_gw'] = undefined; /** - * @typedef {object} PrivateData - * @property {EventTarget} eventTarget The event target. - * @property {{type:string}} event The original event object. - * @property {number} eventPhase The current event phase. - * @property {EventTarget|null} currentTarget The current event target. - * @property {boolean} canceled The flag to prevent default. - * @property {boolean} stopped The flag to stop propagation. - * @property {boolean} immediateStopped The flag to stop propagation immediately. - * @property {Function|null} passiveListener The listener if the current listener is passive. Otherwise this is null. - * @property {number} timeStamp The unix time. - * @private + * Deprecated - use CustomerFragments instead + * @member {Array.} customer_fragment_ids */ +GwClusterIdentity.prototype['customer_fragment_ids'] = undefined; /** - * Private data for event wrappers. - * @type {WeakMap} - * @private + * @member {Array.} customer_fragments */ -const privateData = new WeakMap(); +GwClusterIdentity.prototype['customer_fragments'] = undefined; /** - * Cache for wrapper classes. - * @type {WeakMap} - * @private + * @member {Number} default_protection_key_id */ -const wrappers = new WeakMap(); +GwClusterIdentity.prototype['default_protection_key_id'] = undefined; /** - * Get private data. - * @param {Event} event The event object to get private data. - * @returns {PrivateData} The private data of the event. - * @private + * @member {String} default_secret_location */ -function pd(event) { - const retv = privateData.get(event); - console.assert( - retv != null, - "'this' is expected an Event object, but got", - event - ); - return retv -} +GwClusterIdentity.prototype['default_secret_location'] = undefined; /** - * https://dom.spec.whatwg.org/#set-the-canceled-flag - * @param data {PrivateData} private data. + * @member {String} display_name */ -function setCancelFlag(data) { - if (data.passiveListener != null) { - if ( - typeof console !== "undefined" && - typeof console.error === "function" - ) { - console.error( - "Unable to preventDefault inside passive event listener invocation.", - data.passiveListener - ); - } - return - } - if (!data.event.cancelable) { - return - } - data.canceled = true; - if (typeof data.event.preventDefault === "function") { - data.event.preventDefault(); - } -} +GwClusterIdentity.prototype['display_name'] = undefined; +/** + * @member {Number} id + */ +GwClusterIdentity.prototype['id'] = undefined; /** - * @see https://dom.spec.whatwg.org/#interface-event - * @private + * @member {String} serverless_type */ + +GwClusterIdentity.prototype['serverless_type'] = undefined; /** - * The event wrapper. - * @constructor - * @param {EventTarget} eventTarget The event target of this dispatching. - * @param {Event|{type:string}} event The original event to wrap. + * @member {String} status */ -function Event(eventTarget, event) { - privateData.set(this, { - eventTarget, - event, - eventPhase: 2, - currentTarget: eventTarget, - canceled: false, - stopped: false, - immediateStopped: false, - passiveListener: null, - timeStamp: event.timeStamp || Date.now(), - }); - // https://heycam.github.io/webidl/#Unforgeable - Object.defineProperty(this, "isTrusted", { value: false, enumerable: true }); +GwClusterIdentity.prototype['status'] = undefined; +/** + * @member {String} status_description + */ - // Define accessors - const keys = Object.keys(event); - for (let i = 0; i < keys.length; ++i) { - const key = keys[i]; - if (!(key in this)) { - Object.defineProperty(this, key, defineRedirectDescriptor(key)); - } - } -} +GwClusterIdentity.prototype['status_description'] = undefined; +var _default = GwClusterIdentity; +exports["default"] = _default; -// Should be enumerable, but class methods are not enumerable. -Event.prototype = { - /** - * The type of this event. - * @type {string} - */ - get type() { - return pd(this).event.type - }, +/***/ }), - /** - * The target of this event. - * @type {EventTarget} - */ - get target() { - return pd(this).eventTarget - }, +/***/ 16157: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - /** - * The target of this event. - * @type {EventTarget} - */ - get currentTarget() { - return pd(this).currentTarget - }, +"use strict"; - /** - * @returns {EventTarget[]} The composed path of this event. - */ - composedPath() { - const currentTarget = pd(this).currentTarget; - if (currentTarget == null) { - return [] - } - return [currentTarget] - }, - /** - * Constant of NONE. - * @type {number} - */ - get NONE() { - return 0 - }, +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - /** - * Constant of CAPTURING_PHASE. - * @type {number} - */ - get CAPTURING_PHASE() { - return 1 - }, +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - /** - * Constant of AT_TARGET. - * @type {number} - */ - get AT_TARGET() { - return 2 - }, +var _HashiPayload = _interopRequireDefault(__nccwpck_require__(2703)); - /** - * Constant of BUBBLING_PHASE. - * @type {number} - */ - get BUBBLING_PHASE() { - return 3 - }, +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); - /** - * The target of this event. - * @type {number} - */ - get eventPhase() { - return pd(this).eventPhase - }, +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - /** - * Stop event bubbling. - * @returns {void} - */ - stopPropagation() { - const data = pd(this); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - data.stopped = true; - if (typeof data.event.stopPropagation === "function") { - data.event.stopPropagation(); - } - }, +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The HashiMigration model module. + * @module model/HashiMigration + * @version 3.6.3 + */ +var HashiMigration = /*#__PURE__*/function () { + /** + * Constructs a new HashiMigration. + * @alias module:model/HashiMigration + */ + function HashiMigration() { + _classCallCheck(this, HashiMigration); + + HashiMigration.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(HashiMigration, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Stop event bubbling. - * @returns {void} + * Constructs a HashiMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HashiMigration} obj Optional instance to populate. + * @return {module:model/HashiMigration} The populated HashiMigration instance. */ - stopImmediatePropagation() { - const data = pd(this); - data.stopped = true; - data.immediateStopped = true; - if (typeof data.event.stopImmediatePropagation === "function") { - data.event.stopImmediatePropagation(); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new HashiMigration(); + + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); } - }, - /** - * The flag to be bubbling. - * @type {boolean} - */ - get bubbles() { - return Boolean(pd(this).event.bubbles) - }, + if (data.hasOwnProperty('payload')) { + obj['payload'] = _HashiPayload["default"].constructFromObject(data['payload']); + } + } - /** - * The flag to be cancelable. - * @type {boolean} - */ - get cancelable() { - return Boolean(pd(this).event.cancelable) - }, + return obj; + } + }]); - /** - * Cancel this event. - * @returns {void} - */ - preventDefault() { - setCancelFlag(pd(this)); - }, + return HashiMigration; +}(); +/** + * @member {module:model/MigrationGeneral} general + */ - /** - * The flag to indicate cancellation state. - * @type {boolean} - */ - get defaultPrevented() { - return pd(this).canceled - }, - /** - * The flag to be composed. - * @type {boolean} - */ - get composed() { - return Boolean(pd(this).event.composed) - }, +HashiMigration.prototype['general'] = undefined; +/** + * @member {module:model/HashiPayload} payload + */ - /** - * The unix time of this event. - * @type {number} - */ - get timeStamp() { - return pd(this).timeStamp - }, +HashiMigration.prototype['payload'] = undefined; +var _default = HashiMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 2703: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The HashiPayload model module. + * @module model/HashiPayload + * @version 3.6.3 + */ +var HashiPayload = /*#__PURE__*/function () { + /** + * Constructs a new HashiPayload. + * @alias module:model/HashiPayload + */ + function HashiPayload() { + _classCallCheck(this, HashiPayload); + + HashiPayload.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - /** - * The target of this event. - * @type {EventTarget} - * @deprecated - */ - get srcElement() { - return pd(this).eventTarget - }, + _createClass(HashiPayload, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * The flag to stop event bubbling. - * @type {boolean} - * @deprecated + * Constructs a HashiPayload from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HashiPayload} obj Optional instance to populate. + * @return {module:model/HashiPayload} The populated HashiPayload instance. */ - get cancelBubble() { - return pd(this).stopped - }, - set cancelBubble(value) { - if (!value) { - return + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new HashiPayload(); + + if (data.hasOwnProperty('import_as_json')) { + obj['import_as_json'] = _ApiClient["default"].convertToType(data['import_as_json'], 'Boolean'); } - const data = pd(this); - data.stopped = true; - if (typeof data.event.cancelBubble === "boolean") { - data.event.cancelBubble = true; + if (data.hasOwnProperty('namespaces')) { + obj['namespaces'] = _ApiClient["default"].convertToType(data['namespaces'], ['String']); } - }, - /** - * The flag to indicate cancellation state. - * @type {boolean} - * @deprecated - */ - get returnValue() { - return !pd(this).canceled - }, - set returnValue(value) { - if (!value) { - setCancelFlag(pd(this)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - }, - /** - * Initialize this event object. But do nothing under event dispatching. - * @param {string} type The event type. - * @param {boolean} [bubbles=false] The flag to be possible to bubble up. - * @param {boolean} [cancelable=false] The flag to be possible to cancel. - * @deprecated - */ - initEvent() { - // Do nothing. - }, -}; + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } + } -// `constructor` is not enumerable. -Object.defineProperty(Event.prototype, "constructor", { - value: Event, - configurable: true, - writable: true, -}); + return obj; + } + }]); -// Ensure `event instanceof window.Event` is `true`. -if (typeof window !== "undefined" && typeof window.Event !== "undefined") { - Object.setPrototypeOf(Event.prototype, window.Event.prototype); + return HashiPayload; +}(); +/** + * @member {Boolean} import_as_json + */ - // Make association for wrappers. - wrappers.set(window.Event.prototype, Event); -} +HashiPayload.prototype['import_as_json'] = undefined; /** - * Get the property descriptor to redirect a given property. - * @param {string} key Property name to define property descriptor. - * @returns {PropertyDescriptor} The property descriptor to redirect the property. - * @private + * @member {Array.} namespaces */ -function defineRedirectDescriptor(key) { - return { - get() { - return pd(this).event[key] - }, - set(value) { - pd(this).event[key] = value; - }, - configurable: true, - enumerable: true, - } -} +HashiPayload.prototype['namespaces'] = undefined; /** - * Get the property descriptor to call a given method property. - * @param {string} key Property name to define property descriptor. - * @returns {PropertyDescriptor} The property descriptor to call the method property. - * @private + * @member {String} token */ -function defineCallDescriptor(key) { - return { - value() { - const event = pd(this).event; - return event[key].apply(event, arguments) - }, - configurable: true, - enumerable: true, - } -} +HashiPayload.prototype['token'] = undefined; /** - * Define new wrapper class. - * @param {Function} BaseEvent The base wrapper class. - * @param {Object} proto The prototype of the original event. - * @returns {Function} The defined wrapper class. - * @private + * @member {String} url */ -function defineWrapper(BaseEvent, proto) { - const keys = Object.keys(proto); - if (keys.length === 0) { - return BaseEvent - } - /** CustomEvent */ - function CustomEvent(eventTarget, event) { - BaseEvent.call(this, eventTarget, event); - } +HashiPayload.prototype['url'] = undefined; +var _default = HashiPayload; +exports["default"] = _default; - CustomEvent.prototype = Object.create(BaseEvent.prototype, { - constructor: { value: CustomEvent, configurable: true, writable: true }, - }); +/***/ }), - // Define accessors. - for (let i = 0; i < keys.length; ++i) { - const key = keys[i]; - if (!(key in BaseEvent.prototype)) { - const descriptor = Object.getOwnPropertyDescriptor(proto, key); - const isFunc = typeof descriptor.value === "function"; - Object.defineProperty( - CustomEvent.prototype, - key, - isFunc - ? defineCallDescriptor(key) - : defineRedirectDescriptor(key) - ); - } - } +/***/ 9727: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; - return CustomEvent -} + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Get the wrapper class of a given prototype. - * @param {Object} proto The prototype of the original event to get its wrapper. - * @returns {Function} The wrapper class. - * @private + * The Hmac model module. + * @module model/Hmac + * @version 3.6.3 */ -function getWrapper(proto) { - if (proto == null || proto === Object.prototype) { - return Event +var Hmac = /*#__PURE__*/function () { + /** + * Constructs a new Hmac. + * @alias module:model/Hmac + * @param keyName {String} The name of the key to use in the encryption process + */ + function Hmac(keyName) { + _classCallCheck(this, Hmac); + + Hmac.initialize(this, keyName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Hmac, null, [{ + key: "initialize", + value: function initialize(obj, keyName) { + obj['key-name'] = keyName; } + /** + * Constructs a Hmac from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Hmac} obj Optional instance to populate. + * @return {module:model/Hmac} The populated Hmac instance. + */ - let wrapper = wrappers.get(proto); - if (wrapper == null) { - wrapper = defineWrapper(getWrapper(Object.getPrototypeOf(proto)), proto); - wrappers.set(proto, wrapper); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Hmac(); + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('hash-function')) { + obj['hash-function'] = _ApiClient["default"].convertToType(data['hash-function'], 'String'); + } + + if (data.hasOwnProperty('input-format')) { + obj['input-format'] = _ApiClient["default"].convertToType(data['input-format'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('plaintext')) { + obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } - return wrapper -} + }]); + return Hmac; +}(); /** - * Wrap a given event to management a dispatching. - * @param {EventTarget} eventTarget The event target of this dispatching. - * @param {Object} event The event to wrap. - * @returns {Event} The wrapper instance. - * @private + * The display id of the key to use in the encryption process + * @member {String} display-id */ -function wrapEvent(eventTarget, event) { - const Wrapper = getWrapper(Object.getPrototypeOf(event)); - return new Wrapper(eventTarget, event) -} + +Hmac.prototype['display-id'] = undefined; /** - * Get the immediateStopped flag of a given event. - * @param {Event} event The event to get. - * @returns {boolean} The flag to stop propagation immediately. - * @private + * Hash function [sha-256,sha-512] + * @member {String} hash-function + * @default 'sha-256' */ -function isStopped(event) { - return pd(event).immediateStopped -} +Hmac.prototype['hash-function'] = 'sha-256'; /** - * Set the current event phase of a given event. - * @param {Event} event The event to set current target. - * @param {number} eventPhase New event phase. - * @returns {void} - * @private + * Select default assumed format for any plaintext input. Currently supported options: [base64] + * @member {String} input-format */ -function setEventPhase(event, eventPhase) { - pd(event).eventPhase = eventPhase; -} +Hmac.prototype['input-format'] = undefined; /** - * Set the current target of a given event. - * @param {Event} event The event to set current target. - * @param {EventTarget|null} currentTarget New current target. - * @returns {void} - * @private + * The item id of the key to use in the encryption process + * @member {Number} item-id */ -function setCurrentTarget(event, currentTarget) { - pd(event).currentTarget = currentTarget; -} +Hmac.prototype['item-id'] = undefined; /** - * Set a passive listener of a given event. - * @param {Event} event The event to set current target. - * @param {Function|null} passiveListener New passive listener. - * @returns {void} - * @private + * Set output format to JSON + * @member {Boolean} json + * @default false */ -function setPassiveListener(event, passiveListener) { - pd(event).passiveListener = passiveListener; -} +Hmac.prototype['json'] = false; /** - * @typedef {object} ListenerNode - * @property {Function} listener - * @property {1|2|3} listenerType - * @property {boolean} passive - * @property {boolean} once - * @property {ListenerNode|null} next - * @private + * The name of the key to use in the encryption process + * @member {String} key-name */ +Hmac.prototype['key-name'] = undefined; /** - * @type {WeakMap>} - * @private + * Data to perform hmac on + * @member {String} plaintext */ -const listenersMap = new WeakMap(); - -// Listener types -const CAPTURE = 1; -const BUBBLE = 2; -const ATTRIBUTE = 3; +Hmac.prototype['plaintext'] = undefined; /** - * Check whether a given value is an object or not. - * @param {any} x The value to check. - * @returns {boolean} `true` if the value is an object. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -function isObject(x) { - return x !== null && typeof x === "object" //eslint-disable-line no-restricted-syntax -} +Hmac.prototype['token'] = undefined; /** - * Get listeners. - * @param {EventTarget} eventTarget The event target to get. - * @returns {Map} The listeners. - * @private + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -function getListeners(eventTarget) { - const listeners = listenersMap.get(eventTarget); - if (listeners == null) { - throw new TypeError( - "'this' is expected an EventTarget object, but got another value." - ) - } - return listeners -} + +Hmac.prototype['uid-token'] = undefined; +var _default = Hmac; +exports["default"] = _default; + +/***/ }), + +/***/ 67718: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Get the property descriptor for the event attribute of a given event. - * @param {string} eventName The event name to get property descriptor. - * @returns {PropertyDescriptor} The property descriptor. - * @private + * The HmacOutput model module. + * @module model/HmacOutput + * @version 3.6.3 */ -function defineEventAttributeDescriptor(eventName) { - return { - get() { - const listeners = getListeners(this); - let node = listeners.get(eventName); - while (node != null) { - if (node.listenerType === ATTRIBUTE) { - return node.listener - } - node = node.next; - } - return null - }, +var HmacOutput = /*#__PURE__*/function () { + /** + * Constructs a new HmacOutput. + * @alias module:model/HmacOutput + */ + function HmacOutput() { + _classCallCheck(this, HmacOutput); - set(listener) { - if (typeof listener !== "function" && !isObject(listener)) { - listener = null; // eslint-disable-line no-param-reassign - } - const listeners = getListeners(this); + HmacOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // Traverse to the tail while removing old value. - let prev = null; - let node = listeners.get(eventName); - while (node != null) { - if (node.listenerType === ATTRIBUTE) { - // Remove old value. - if (prev !== null) { - prev.next = node.next; - } else if (node.next !== null) { - listeners.set(eventName, node.next); - } else { - listeners.delete(eventName); - } - } else { - prev = node; - } - node = node.next; - } + _createClass(HmacOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a HmacOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HmacOutput} obj Optional instance to populate. + * @return {module:model/HmacOutput} The populated HmacOutput instance. + */ - // Add new value. - if (listener !== null) { - const newNode = { - listener, - listenerType: ATTRIBUTE, - passive: false, - once: false, - next: null, - }; - if (prev === null) { - listeners.set(eventName, newNode); - } else { - prev.next = newNode; - } - } - }, - configurable: true, - enumerable: true, + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new HmacOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; } -} + }]); + return HmacOutput; +}(); /** - * Define an event attribute (e.g. `eventTarget.onclick`). - * @param {Object} eventTargetPrototype The event target prototype to define an event attrbite. - * @param {string} eventName The event name to define. - * @returns {void} + * @member {String} result */ -function defineEventAttribute(eventTargetPrototype, eventName) { - Object.defineProperty( - eventTargetPrototype, - `on${eventName}`, - defineEventAttributeDescriptor(eventName) - ); -} -/** - * Define a custom EventTarget with event attributes. - * @param {string[]} eventNames Event names for event attributes. - * @returns {EventTarget} The custom EventTarget. - * @private - */ -function defineCustomEventTarget(eventNames) { - /** CustomEventTarget */ - function CustomEventTarget() { - EventTarget.call(this); - } - CustomEventTarget.prototype = Object.create(EventTarget.prototype, { - constructor: { - value: CustomEventTarget, - configurable: true, - writable: true, - }, - }); +HmacOutput.prototype['result'] = undefined; +var _default = HmacOutput; +exports["default"] = _default; - for (let i = 0; i < eventNames.length; ++i) { - defineEventAttribute(CustomEventTarget.prototype, eventNames[i]); - } +/***/ }), - return CustomEventTarget -} +/***/ 59348: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * EventTarget. - * - * - This is constructor if no arguments. - * - This is a function which returns a CustomEventTarget constructor if there are arguments. - * - * For example: - * - * class A extends EventTarget {} - * class B extends EventTarget("message") {} - * class C extends EventTarget("message", "error") {} - * class D extends EventTarget(["message", "error"]) {} + * The HuaweiAccessRules model module. + * @module model/HuaweiAccessRules + * @version 3.6.3 */ -function EventTarget() { - /*eslint-disable consistent-return */ - if (this instanceof EventTarget) { - listenersMap.set(this, new Map()); - return - } - if (arguments.length === 1 && Array.isArray(arguments[0])) { - return defineCustomEventTarget(arguments[0]) - } - if (arguments.length > 0) { - const types = new Array(arguments.length); - for (let i = 0; i < arguments.length; ++i) { - types[i] = arguments[i]; - } - return defineCustomEventTarget(types) - } - throw new TypeError("Cannot call a class as a function") - /*eslint-enable consistent-return */ -} +var HuaweiAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new HuaweiAccessRules. + * @alias module:model/HuaweiAccessRules + */ + function HuaweiAccessRules() { + _classCallCheck(this, HuaweiAccessRules); -// Should be enumerable, but class methods are not enumerable. -EventTarget.prototype = { + HuaweiAccessRules.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(HuaweiAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Add a given listener to this event target. - * @param {string} eventName The event name to add. - * @param {Function} listener The listener to add. - * @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener. - * @returns {void} + * Constructs a HuaweiAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HuaweiAccessRules} obj Optional instance to populate. + * @return {module:model/HuaweiAccessRules} The populated HuaweiAccessRules instance. */ - addEventListener(eventName, listener, options) { - if (listener == null) { - return + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new HuaweiAccessRules(); + + if (data.hasOwnProperty('auth_endpoint')) { + obj['auth_endpoint'] = _ApiClient["default"].convertToType(data['auth_endpoint'], 'String'); } - if (typeof listener !== "function" && !isObject(listener)) { - throw new TypeError("'listener' should be a function or an object.") + + if (data.hasOwnProperty('domain_id')) { + obj['domain_id'] = _ApiClient["default"].convertToType(data['domain_id'], ['String']); } - const listeners = getListeners(this); - const optionsIsObj = isObject(options); - const capture = optionsIsObj - ? Boolean(options.capture) - : Boolean(options); - const listenerType = capture ? CAPTURE : BUBBLE; - const newNode = { - listener, - listenerType, - passive: optionsIsObj && Boolean(options.passive), - once: optionsIsObj && Boolean(options.once), - next: null, - }; + if (data.hasOwnProperty('domain_name')) { + obj['domain_name'] = _ApiClient["default"].convertToType(data['domain_name'], ['String']); + } - // Set it as the first node if the first node is null. - let node = listeners.get(eventName); - if (node === undefined) { - listeners.set(eventName, newNode); - return + if (data.hasOwnProperty('tenant_id')) { + obj['tenant_id'] = _ApiClient["default"].convertToType(data['tenant_id'], ['String']); } - // Traverse to the tail while checking duplication.. - let prev = null; - while (node != null) { - if ( - node.listener === listener && - node.listenerType === listenerType - ) { - // Should ignore duplication. - return - } - prev = node; - node = node.next; + if (data.hasOwnProperty('tenant_name')) { + obj['tenant_name'] = _ApiClient["default"].convertToType(data['tenant_name'], ['String']); } - // Add it. - prev.next = newNode; - }, + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], ['String']); + } - /** - * Remove a given listener from this event target. - * @param {string} eventName The event name to remove. - * @param {Function} listener The listener to remove. - * @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener. - * @returns {void} - */ - removeEventListener(eventName, listener, options) { - if (listener == null) { - return + if (data.hasOwnProperty('user_name')) { + obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], ['String']); } + } - const listeners = getListeners(this); - const capture = isObject(options) - ? Boolean(options.capture) - : Boolean(options); - const listenerType = capture ? CAPTURE : BUBBLE; + return obj; + } + }]); - let prev = null; - let node = listeners.get(eventName); - while (node != null) { - if ( - node.listener === listener && - node.listenerType === listenerType - ) { - if (prev !== null) { - prev.next = node.next; - } else if (node.next !== null) { - listeners.set(eventName, node.next); - } else { - listeners.delete(eventName); - } - return - } + return HuaweiAccessRules; +}(); +/** + * The auth URL. + * @member {String} auth_endpoint + */ - prev = node; - node = node.next; - } - }, - /** - * Dispatch a given event. - * @param {Event|{type:string}} event The event to dispatch. - * @returns {boolean} `false` if canceled. - */ - dispatchEvent(event) { - if (event == null || typeof event.type !== "string") { - throw new TypeError('"event.type" should be a string.') - } +HuaweiAccessRules.prototype['auth_endpoint'] = undefined; +/** + * The list of domain ids that the login is restricted to. + * @member {Array.} domain_id + */ - // If listeners aren't registered, terminate. - const listeners = getListeners(this); - const eventName = event.type; - let node = listeners.get(eventName); - if (node == null) { - return true - } +HuaweiAccessRules.prototype['domain_id'] = undefined; +/** + * The list of domainNames that the login is restricted to. + * @member {Array.} domain_name + */ - // Since we cannot rewrite several properties, so wrap object. - const wrappedEvent = wrapEvent(this, event); +HuaweiAccessRules.prototype['domain_name'] = undefined; +/** + * The list of tenantIDs that the login is restricted to. + * @member {Array.} tenant_id + */ - // This doesn't process capturing phase and bubbling phase. - // This isn't participating in a tree. - let prev = null; - while (node != null) { - // Remove this listener if it's once - if (node.once) { - if (prev !== null) { - prev.next = node.next; - } else if (node.next !== null) { - listeners.set(eventName, node.next); - } else { - listeners.delete(eventName); - } - } else { - prev = node; - } +HuaweiAccessRules.prototype['tenant_id'] = undefined; +/** + * The list of tenantNames that the login is restricted to. + * @member {Array.} tenant_name + */ - // Call this listener - setPassiveListener( - wrappedEvent, - node.passive ? node.listener : null - ); - if (typeof node.listener === "function") { - try { - node.listener.call(this, wrappedEvent); - } catch (err) { - if ( - typeof console !== "undefined" && - typeof console.error === "function" - ) { - console.error(err); - } - } - } else if ( - node.listenerType !== ATTRIBUTE && - typeof node.listener.handleEvent === "function" - ) { - node.listener.handleEvent(wrappedEvent); - } +HuaweiAccessRules.prototype['tenant_name'] = undefined; +/** + * The list of user ids that the login is restricted to. + * @member {Array.} user_id + */ - // Break if `event.stopImmediatePropagation` was called. - if (isStopped(wrappedEvent)) { - break - } +HuaweiAccessRules.prototype['user_id'] = undefined; +/** + * The list of user names that the login is restricted to. + * @member {Array.} user_name + */ - node = node.next; +HuaweiAccessRules.prototype['user_name'] = undefined; +var _default = HuaweiAccessRules; +exports["default"] = _default; + +/***/ }), + +/***/ 76407: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ImportPasswords model module. + * @module model/ImportPasswords + * @version 3.6.3 + */ +var ImportPasswords = /*#__PURE__*/function () { + /** + * Constructs a new ImportPasswords. + * importPasswords is a command that import passwords + * @alias module:model/ImportPasswords + * @param importPath {String} File path + */ + function ImportPasswords(importPath) { + _classCallCheck(this, ImportPasswords); + + ImportPasswords.initialize(this, importPath); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ImportPasswords, null, [{ + key: "initialize", + value: function initialize(obj, importPath) { + obj['import-path'] = importPath; + } + /** + * Constructs a ImportPasswords from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ImportPasswords} obj Optional instance to populate. + * @return {module:model/ImportPasswords} The populated ImportPasswords instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ImportPasswords(); + + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); } - setPassiveListener(wrappedEvent, null); - setEventPhase(wrappedEvent, 0); - setCurrentTarget(wrappedEvent, null); - return !wrappedEvent.defaultPrevented - }, -}; + if (data.hasOwnProperty('format')) { + obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); + } -// `constructor` is not enumerable. -Object.defineProperty(EventTarget.prototype, "constructor", { - value: EventTarget, - configurable: true, - writable: true, -}); + if (data.hasOwnProperty('import-path')) { + obj['import-path'] = _ApiClient["default"].convertToType(data['import-path'], 'String'); + } -// Ensure `eventTarget instanceof window.EventTarget` is `true`. -if ( - typeof window !== "undefined" && - typeof window.EventTarget !== "undefined" -) { - Object.setPrototypeOf(EventTarget.prototype, window.EventTarget.prototype); -} + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -exports.defineEventAttribute = defineEventAttribute; -exports.EventTarget = EventTarget; -exports["default"] = EventTarget; + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } -module.exports = EventTarget -module.exports.EventTarget = module.exports["default"] = EventTarget -module.exports.defineEventAttribute = defineEventAttribute -//# sourceMappingURL=event-target-shim.js.map + if (data.hasOwnProperty('target-folder')) { + obj['target-folder'] = _ApiClient["default"].convertToType(data['target-folder'], 'String'); + } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -/***/ 23860: -/***/ ((module) => { + if (data.hasOwnProperty('update-mode')) { + obj['update-mode'] = _ApiClient["default"].convertToType(data['update-mode'], 'String'); + } + } -"use strict"; + return obj; + } + }]); + return ImportPasswords; +}(); +/** + * for personal password manager + * @member {String} accessibility + * @default 'personal' + */ -var hasOwn = Object.prototype.hasOwnProperty; -var toStr = Object.prototype.toString; -var defineProperty = Object.defineProperty; -var gOPD = Object.getOwnPropertyDescriptor; -var isArray = function isArray(arr) { - if (typeof Array.isArray === 'function') { - return Array.isArray(arr); - } +ImportPasswords.prototype['accessibility'] = 'personal'; +/** + * Password format type [LastPass/Chrome/Firefox] + * @member {String} format + * @default 'LastPass' + */ - return toStr.call(arr) === '[object Array]'; -}; +ImportPasswords.prototype['format'] = 'LastPass'; +/** + * File path + * @member {String} import-path + */ -var isPlainObject = function isPlainObject(obj) { - if (!obj || toStr.call(obj) !== '[object Object]') { - return false; - } +ImportPasswords.prototype['import-path'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - var hasOwnConstructor = hasOwn.call(obj, 'constructor'); - var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf'); - // Not own constructor property must be Object - if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) { - return false; - } +ImportPasswords.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection_key + */ - // Own properties are enumerated firstly, so to speed up, - // if last one is own, then all properties are own. - var key; - for (key in obj) { /**/ } +ImportPasswords.prototype['protection_key'] = undefined; +/** + * Target folder for imported passwords + * @member {String} target-folder + * @default '/' + */ - return typeof key === 'undefined' || hasOwn.call(obj, key); -}; +ImportPasswords.prototype['target-folder'] = '/'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -// If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target -var setProperty = function setProperty(target, options) { - if (defineProperty && options.name === '__proto__') { - defineProperty(target, options.name, { - enumerable: true, - configurable: true, - value: options.newValue, - writable: true - }); - } else { - target[options.name] = options.newValue; - } -}; +ImportPasswords.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -// Return undefined instead of __proto__ if '__proto__' is not an own property -var getProperty = function getProperty(obj, name) { - if (name === '__proto__') { - if (!hasOwn.call(obj, name)) { - return void 0; - } else if (gOPD) { - // In early versions of node, obj['__proto__'] is buggy when obj has - // __proto__ as an own property. Object.getOwnPropertyDescriptor() works. - return gOPD(obj, name).value; - } - } +ImportPasswords.prototype['uid-token'] = undefined; +/** + * @member {String} update-mode + */ - return obj[name]; -}; +ImportPasswords.prototype['update-mode'] = undefined; +var _default = ImportPasswords; +exports["default"] = _default; -module.exports = function extend() { - var options, name, src, copy, copyIsArray, clone; - var target = arguments[0]; - var i = 1; - var length = arguments.length; - var deep = false; +/***/ }), - // Handle a deep copy situation - if (typeof target === 'boolean') { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - if (target == null || (typeof target !== 'object' && typeof target !== 'function')) { - target = {}; - } +/***/ 8494: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - for (; i < length; ++i) { - options = arguments[i]; - // Only deal with non-null/undefined values - if (options != null) { - // Extend the base object - for (name in options) { - src = getProperty(target, name); - copy = getProperty(options, name); +"use strict"; - // Prevent never-ending loop - if (target !== copy) { - // Recurse if we're merging plain objects or arrays - if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) { - if (copyIsArray) { - copyIsArray = false; - clone = src && isArray(src) ? src : []; - } else { - clone = src && isPlainObject(src) ? src : {}; - } - // Never move original objects, clone them - setProperty(target, { name: name, newValue: extend(deep, clone, copy) }); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // Don't bring in undefined values - } else if (typeof copy !== 'undefined') { - setProperty(target, { name: name, newValue: copy }); - } - } - } - } - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // Return the modified object - return target; -}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/***/ }), +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/***/ 79463: -/***/ (function() { +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -(function(scope) {'use strict'; -function B(r,e){var f;return r instanceof Buffer?f=r:f=Buffer.from(r.buffer,r.byteOffset,r.byteLength),f.toString(e)}var w=function(r){return Buffer.from(r)};function h(r){for(var e=0,f=Math.min(256*256,r.length+1),n=new Uint16Array(f),i=[],o=0;;){var t=e=f-1){var s=n.subarray(0,o),m=s;if(i.push(String.fromCharCode.apply(null,m)),!t)return i.join("");r=r.subarray(e),e=0,o=0}var a=r[e++];if((a&128)===0)n[o++]=a;else if((a&224)===192){var d=r[e++]&63;n[o++]=(a&31)<<6|d}else if((a&240)===224){var d=r[e++]&63,l=r[e++]&63;n[o++]=(a&31)<<12|d<<6|l}else if((a&248)===240){var d=r[e++]&63,l=r[e++]&63,R=r[e++]&63,c=(a&7)<<18|d<<12|l<<6|R;c>65535&&(c-=65536,n[o++]=c>>>10&1023|55296,c=56320|c&1023),n[o++]=c}}}function F(r){for(var e=0,f=r.length,n=0,i=Math.max(32,f+(f>>>1)+7),o=new Uint8Array(i>>>3<<3);e=55296&&t<=56319){if(e=55296&&t<=56319)continue}if(n+4>o.length){i+=8,i*=1+e/r.length*2,i=i>>>3<<3;var m=new Uint8Array(i);m.set(o),o=m}if((t&4294967168)===0){o[n++]=t;continue}else if((t&4294965248)===0)o[n++]=t>>>6&31|192;else if((t&4294901760)===0)o[n++]=t>>>12&15|224,o[n++]=t>>>6&63|128;else if((t&4292870144)===0)o[n++]=t>>>18&7|240,o[n++]=t>>>12&63|128,o[n++]=t>>>6&63|128;else continue;o[n++]=t&63|128}return o.slice?o.slice(0,n):o.subarray(0,n)}var u="Failed to ",p=function(r,e,f){if(r)throw new Error("".concat(u).concat(e,": the '").concat(f,"' option is unsupported."))};var x=typeof Buffer=="function"&&Buffer.from;var A=x?w:F;function v(){this.encoding="utf-8"}v.prototype.encode=function(r,e){return p(e&&e.stream,"encode","stream"),A(r)};function U(r){var e;try{var f=new Blob([r],{type:"text/plain;charset=UTF-8"});e=URL.createObjectURL(f);var n=new XMLHttpRequest;return n.open("GET",e,!1),n.send(),n.responseText}finally{e&&URL.revokeObjectURL(e)}}var O=!x&&typeof Blob=="function"&&typeof URL=="function"&&typeof URL.createObjectURL=="function",S=["utf-8","utf8","unicode-1-1-utf-8"],T=h;x?T=B:O&&(T=function(r){try{return U(r)}catch(e){return h(r)}});var y="construct 'TextDecoder'",E="".concat(u," ").concat(y,": the ");function g(r,e){p(e&&e.fatal,y,"fatal"),r=r||"utf-8";var f;if(x?f=Buffer.isEncoding(r):f=S.indexOf(r.toLowerCase())!==-1,!f)throw new RangeError("".concat(E," encoding label provided ('").concat(r,"') is invalid."));this.encoding=r,this.fatal=!1,this.ignoreBOM=!1}g.prototype.decode=function(r,e){p(e&&e.stream,"decode","stream");var f;return r instanceof Uint8Array?f=r:r.buffer instanceof ArrayBuffer?f=new Uint8Array(r.buffer):f=new Uint8Array(r),T(f,this.encoding)};scope.TextEncoder=scope.TextEncoder||v;scope.TextDecoder=scope.TextDecoder||g; -}(typeof window !== 'undefined' ? window : (typeof global !== 'undefined' ? global : this))); +/** + * The ImportPasswordsOutput model module. + * @module model/ImportPasswordsOutput + * @version 3.6.3 + */ +var ImportPasswordsOutput = /*#__PURE__*/function () { + /** + * Constructs a new ImportPasswordsOutput. + * @alias module:model/ImportPasswordsOutput + */ + function ImportPasswordsOutput() { + _classCallCheck(this, ImportPasswordsOutput); + ImportPasswordsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), -/***/ 96454: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + _createClass(ImportPasswordsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ImportPasswordsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ImportPasswordsOutput} obj Optional instance to populate. + * @return {module:model/ImportPasswordsOutput} The populated ImportPasswordsOutput instance. + */ -"use strict"; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ImportPasswordsOutput(); + if (data.hasOwnProperty('imported')) { + obj['imported'] = _ApiClient["default"].convertToType(data['imported'], 'Number'); + } -var CombinedStream = __nccwpck_require__(35630); -var util = __nccwpck_require__(39023); -var path = __nccwpck_require__(16928); -var http = __nccwpck_require__(58611); -var https = __nccwpck_require__(65692); -var parseUrl = (__nccwpck_require__(87016).parse); -var fs = __nccwpck_require__(79896); -var crypto = __nccwpck_require__(76982); -var mime = __nccwpck_require__(14096); -var asynckit = __nccwpck_require__(31324); -var hasOwn = __nccwpck_require__(54076); -var setToStringTag = __nccwpck_require__(88700); -var populate = __nccwpck_require__(11835); -var Buffer = (__nccwpck_require__(87981).Buffer); + if (data.hasOwnProperty('passwords_in_file')) { + obj['passwords_in_file'] = _ApiClient["default"].convertToType(data['passwords_in_file'], 'Number'); + } + + if (data.hasOwnProperty('successfully_parsed')) { + obj['successfully_parsed'] = _ApiClient["default"].convertToType(data['successfully_parsed'], 'Number'); + } + + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Number'); + } + } + return obj; + } + }]); + + return ImportPasswordsOutput; +}(); /** - * Create readable "multipart/form-data" streams. - * Can be used to submit forms - * and file uploads to other web applications. - * - * @constructor - * @param {Object} options - Properties to be added/overriden for FormData and CombinedStream + * @member {Number} imported */ -function FormData(options) { - if (!(this instanceof FormData)) { - return new FormData(); - } - this._overheadLength = 0; - this._valueLength = 0; - this._valuesToMeasure = []; - CombinedStream.call(this); +ImportPasswordsOutput.prototype['imported'] = undefined; +/** + * @member {Number} passwords_in_file + */ - options = options || {}; - for (var option in options) { // eslint-disable-line no-restricted-syntax - this[option] = options[option]; - } -} +ImportPasswordsOutput.prototype['passwords_in_file'] = undefined; +/** + * @member {Number} successfully_parsed + */ -// make it a Stream -util.inherits(FormData, CombinedStream); +ImportPasswordsOutput.prototype['successfully_parsed'] = undefined; +/** + * @member {Number} updated + */ -FormData.LINE_BREAK = '\r\n'; -FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream'; +ImportPasswordsOutput.prototype['updated'] = undefined; +var _default = ImportPasswordsOutput; +exports["default"] = _default; -FormData.prototype.append = function (field, value, options) { +/***/ }), - options = options || {}; +/***/ 9586: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // allow filename as single option - if (typeof options === 'string') { - options = { filename: options }; - } +"use strict"; - var append = CombinedStream.prototype.append.bind(this); - // all that streamy business can't handle numbers - if (typeof value === 'number' || value == null) { - value = String(value); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // https://github.com/felixge/node-form-data/issues/38 - if (Array.isArray(value)) { - /* - * Please convert your array into string - * the way web server expects it - */ - this._error(new Error('Arrays are not supported.')); - return; - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - var header = this._multiPartHeader(field, value, options); - var footer = this._multiPartFooter(); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - append(header); - append(value); - append(footer); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // pass along options.knownLength - this._trackLength(header, value, options); -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -FormData.prototype._trackLength = function (header, value, options) { - var valueLength = 0; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - /* - * used w/ getLengthSync(), when length is known. - * e.g. for streaming directly from a remote server, - * w/ a known file a size, and not wanting to wait for - * incoming file to finish to get its size. +/** + * The ImporterInfo model module. + * @module model/ImporterInfo + * @version 3.6.3 + */ +var ImporterInfo = /*#__PURE__*/function () { + /** + * Constructs a new ImporterInfo. + * @alias module:model/ImporterInfo */ - if (options.knownLength != null) { - valueLength += Number(options.knownLength); - } else if (Buffer.isBuffer(value)) { - valueLength = value.length; - } else if (typeof value === 'string') { - valueLength = Buffer.byteLength(value); + function ImporterInfo() { + _classCallCheck(this, ImporterInfo); + + ImporterInfo.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - this._valueLength += valueLength; - // @check why add CRLF? does this account for custom/multiple CRLFs? - this._overheadLength += Buffer.byteLength(header) + FormData.LINE_BREAK.length; + _createClass(ImporterInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ImporterInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ImporterInfo} obj Optional instance to populate. + * @return {module:model/ImporterInfo} The populated ImporterInfo instance. + */ - // empty or either doesn't have path or not an http response - if (!value || (!value.path && !(value.readable && hasOwn(value, 'httpVersion')))) { - return; - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ImporterInfo(); - // no need to bother with the length - if (!options.knownLength) { - this._valuesToMeasure.push(value); - } -}; + if (data.hasOwnProperty('external_item_id')) { + obj['external_item_id'] = _ApiClient["default"].convertToType(data['external_item_id'], 'String'); + } -FormData.prototype._lengthRetriever = function (value, callback) { - if (hasOwn(value, 'fd')) { + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } - /* - * take read range into a account - * `end` = Infinity –> read file till the end - * - * TODO: Looks like there is bug in Node fs.createReadStream - * it doesn't respect `end` options without `start` options - * Fix it when node fixes it. - * https://github.com/joyent/node/issues/7819 - */ - if (value.end != null && value.end !== Infinity && value.start != null) { + return obj; + } + }]); - /* - * when end specified - * no need to calculate range - * inclusive, starts with 0 - */ - callback(null, value.end + 1 - (value.start ? value.start : 0)); + return ImporterInfo; +}(); +/** + * @member {String} external_item_id + */ - // not that fast snoopy - } else { - // still need to fetch file size from fs - fs.stat(value.path, function (err, stat) { - var fileSize; +ImporterInfo.prototype['external_item_id'] = undefined; +/** + * @member {Number} version + */ - if (err) { - callback(err); - return; - } +ImporterInfo.prototype['version'] = undefined; +var _default = ImporterInfo; +exports["default"] = _default; - // update final size based on the range options - fileSize = stat.size - (value.start ? value.start : 0); - callback(null, fileSize); - }); - } +/***/ }), - // or http response - } else if (hasOwn(value, 'httpVersion')) { - callback(null, Number(value.headers['content-length'])); +/***/ 23711: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // or request stream http://github.com/mikeal/request - } else if (hasOwn(value, 'httpModule')) { - // wait till response come back - value.on('response', function (response) { - value.pause(); - callback(null, Number(response.headers['content-length'])); - }); - value.resume(); +"use strict"; - // something else - } else { - callback('Unknown stream'); - } -}; -FormData.prototype._multiPartHeader = function (field, value, options) { - /* - * custom header specified (as string)? - * it becomes responsible for boundary - * (e.g. to handle extra CRLFs on .NET servers) - */ - if (typeof options.header === 'string') { - return options.header; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - var contentDisposition = this._getContentDisposition(value, options); - var contentType = this._getContentType(value, options); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - var contents = ''; - var headers = { - // add custom disposition as third element or keep it two elements if not - 'Content-Disposition': ['form-data', 'name="' + field + '"'].concat(contentDisposition || []), - // if no content type. allow it to be empty array - 'Content-Type': [].concat(contentType || []), - }; +var _BastionsList = _interopRequireDefault(__nccwpck_require__(34873)); - // allow custom headers. - if (typeof options.header === 'object') { - populate(headers, options.header); - } +var _CertificateIssueInfo = _interopRequireDefault(__nccwpck_require__(72182)); - var header; - for (var prop in headers) { // eslint-disable-line no-restricted-syntax - if (hasOwn(headers, prop)) { - header = headers[prop]; +var _GatewayBasicInfo = _interopRequireDefault(__nccwpck_require__(27208)); - // skip nullish headers. - if (header == null) { - continue; // eslint-disable-line no-continue, no-restricted-syntax - } +var _ItemGeneralInfo = _interopRequireDefault(__nccwpck_require__(5427)); - // convert all headers to arrays. - if (!Array.isArray(header)) { - header = [header]; - } +var _ItemTargetAssociation = _interopRequireDefault(__nccwpck_require__(24223)); - // add non-empty headers. - if (header.length) { - contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK; - } - } - } +var _ItemVersion = _interopRequireDefault(__nccwpck_require__(71931)); - return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK; -}; +var _LinkedDetails = _interopRequireDefault(__nccwpck_require__(33863)); -FormData.prototype._getContentDisposition = function (value, options) { +var _RuleAssigner = _interopRequireDefault(__nccwpck_require__(48396)); - var filename, - contentDisposition; - if (typeof options.filepath === 'string') { - // custom filepath for relative paths - filename = path.normalize(options.filepath).replace(/\\/g, '/'); - } else if (options.filename || (value && (value.name || value.path))) { - /* - * custom filename take precedence - * formidable and the browser add a name property - * fs- and request- streams have path property - */ - filename = path.basename(options.filename || (value && (value.name || value.path))); - } else if (value && value.readable && hasOwn(value, 'httpVersion')) { - // or try http response - filename = path.basename(value.client._httpMessage.path || ''); - } +var _TargetItemVersion = _interopRequireDefault(__nccwpck_require__(42216)); - if (filename) { - contentDisposition = 'filename="' + filename + '"'; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - return contentDisposition; -}; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -FormData.prototype._getContentType = function (value, options) { +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // use custom content-type above all - var contentType = options.contentType; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // or try `name` from formidable, browser - if (!contentType && value && value.name) { - contentType = mime.lookup(value.name); - } +/** + * The Item model module. + * @module model/Item + * @version 3.6.3 + */ +var Item = /*#__PURE__*/function () { + /** + * Constructs a new Item. + * @alias module:model/Item + */ + function Item() { + _classCallCheck(this, Item); - // or try `path` from fs-, request- streams - if (!contentType && value && value.path) { - contentType = mime.lookup(value.path); + Item.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // or if it's http-reponse - if (!contentType && value && value.readable && hasOwn(value, 'httpVersion')) { - contentType = value.headers['content-type']; - } - // or guess it from the filepath or filename - if (!contentType && (options.filepath || options.filename)) { - contentType = mime.lookup(options.filepath || options.filename); - } + _createClass(Item, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Item from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Item} obj Optional instance to populate. + * @return {module:model/Item} The populated Item instance. + */ - // fallback to the default content type if `value` is not simple value - if (!contentType && value && typeof value === 'object') { - contentType = FormData.DEFAULT_CONTENT_TYPE; - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Item(); - return contentType; -}; + if (data.hasOwnProperty('access_date')) { + obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); + } -FormData.prototype._multiPartFooter = function () { - return function (next) { - var footer = FormData.LINE_BREAK; + if (data.hasOwnProperty('access_date_display')) { + obj['access_date_display'] = _ApiClient["default"].convertToType(data['access_date_display'], 'String'); + } - var lastPart = this._streams.length === 0; - if (lastPart) { - footer += this._lastBoundary(); - } + if (data.hasOwnProperty('access_request_status')) { + obj['access_request_status'] = _ApiClient["default"].convertToType(data['access_request_status'], 'String'); + } - next(footer); - }.bind(this); -}; + if (data.hasOwnProperty('auto_rotate')) { + obj['auto_rotate'] = _ApiClient["default"].convertToType(data['auto_rotate'], 'Boolean'); + } -FormData.prototype._lastBoundary = function () { - return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK; -}; + if (data.hasOwnProperty('bastion_details')) { + obj['bastion_details'] = _BastionsList["default"].constructFromObject(data['bastion_details']); + } -FormData.prototype.getHeaders = function (userHeaders) { - var header; - var formHeaders = { - 'content-type': 'multipart/form-data; boundary=' + this.getBoundary(), - }; + if (data.hasOwnProperty('cert_issuer_signer_key_name')) { + obj['cert_issuer_signer_key_name'] = _ApiClient["default"].convertToType(data['cert_issuer_signer_key_name'], 'String'); + } - for (header in userHeaders) { // eslint-disable-line no-restricted-syntax - if (hasOwn(userHeaders, header)) { - formHeaders[header.toLowerCase()] = userHeaders[header]; - } - } + if (data.hasOwnProperty('certificate_issue_details')) { + obj['certificate_issue_details'] = _CertificateIssueInfo["default"].constructFromObject(data['certificate_issue_details']); + } - return formHeaders; -}; + if (data.hasOwnProperty('certificates')) { + obj['certificates'] = _ApiClient["default"].convertToType(data['certificates'], 'String'); + } -FormData.prototype.setBoundary = function (boundary) { - if (typeof boundary !== 'string') { - throw new TypeError('FormData boundary must be a string'); - } - this._boundary = boundary; -}; + if (data.hasOwnProperty('client_permissions')) { + obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); + } -FormData.prototype.getBoundary = function () { - if (!this._boundary) { - this._generateBoundary(); - } + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); + } - return this._boundary; -}; + if (data.hasOwnProperty('customer_fragment_id')) { + obj['customer_fragment_id'] = _ApiClient["default"].convertToType(data['customer_fragment_id'], 'String'); + } -FormData.prototype.getBuffer = function () { - var dataBuffer = Buffer.alloc(0); - var boundary = this.getBoundary(); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'Boolean'); + } - // Create the form content. Add Line breaks to the end of data. - for (var i = 0, len = this._streams.length; i < len; i++) { - if (typeof this._streams[i] !== 'function') { + if (data.hasOwnProperty('deletion_date')) { + obj['deletion_date'] = _ApiClient["default"].convertToType(data['deletion_date'], 'Date'); + } - // Add content to the buffer. - if (Buffer.isBuffer(this._streams[i])) { - dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]); - } else { - dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]); - } + if (data.hasOwnProperty('display_id')) { + obj['display_id'] = _ApiClient["default"].convertToType(data['display_id'], 'String'); + } - // Add break after content. - if (typeof this._streams[i] !== 'string' || this._streams[i].substring(2, boundary.length + 2) !== boundary) { - dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData.LINE_BREAK)]); - } - } - } + if (data.hasOwnProperty('gateway_details')) { + obj['gateway_details'] = _ApiClient["default"].convertToType(data['gateway_details'], [_GatewayBasicInfo["default"]]); + } - // Add the footer and return the Buffer object. - return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]); -}; + if (data.hasOwnProperty('is_access_request_enabled')) { + obj['is_access_request_enabled'] = _ApiClient["default"].convertToType(data['is_access_request_enabled'], 'Boolean'); + } -FormData.prototype._generateBoundary = function () { - // This generates a 50 character boundary similar to those used by Firefox. + if (data.hasOwnProperty('is_enabled')) { + obj['is_enabled'] = _ApiClient["default"].convertToType(data['is_enabled'], 'Boolean'); + } - // They are optimized for boyer-moore parsing. - this._boundary = '--------------------------' + crypto.randomBytes(12).toString('hex'); -}; + if (data.hasOwnProperty('item_accessibility')) { + obj['item_accessibility'] = _ApiClient["default"].convertToType(data['item_accessibility'], 'Number'); + } -/* - * Note: getLengthSync DOESN'T calculate streams length - * As workaround one can calculate file size manually - * and add it as knownLength option - */ -FormData.prototype.getLengthSync = function () { - var knownLength = this._overheadLength + this._valueLength; + if (data.hasOwnProperty('item_general_info')) { + obj['item_general_info'] = _ItemGeneralInfo["default"].constructFromObject(data['item_general_info']); + } - /* - * Don't get confused, there are 3 "internal" streams for each keyval pair - * so it basically checks if there is any value added to the form - */ - if (this._streams.length) { - knownLength += this._lastBoundary().length; - } + if (data.hasOwnProperty('item_id')) { + obj['item_id'] = _ApiClient["default"].convertToType(data['item_id'], 'Number'); + } - // https://github.com/form-data/form-data/issues/40 - if (!this.hasKnownLength()) { - /* - * Some async length retrievers are present - * therefore synchronous length calculation is false. - * Please use getLength(callback) to get proper length - */ - this._error(new Error('Cannot calculate proper length in synchronous way.')); - } + if (data.hasOwnProperty('item_metadata')) { + obj['item_metadata'] = _ApiClient["default"].convertToType(data['item_metadata'], 'String'); + } - return knownLength; -}; + if (data.hasOwnProperty('item_name')) { + obj['item_name'] = _ApiClient["default"].convertToType(data['item_name'], 'String'); + } -/* - * Public API to check if length of added values is known - * https://github.com/form-data/form-data/issues/196 - * https://github.com/form-data/form-data/issues/262 - */ -FormData.prototype.hasKnownLength = function () { - var hasKnownLength = true; + if (data.hasOwnProperty('item_size')) { + obj['item_size'] = _ApiClient["default"].convertToType(data['item_size'], 'Number'); + } - if (this._valuesToMeasure.length) { - hasKnownLength = false; - } + if (data.hasOwnProperty('item_state')) { + obj['item_state'] = _ApiClient["default"].convertToType(data['item_state'], 'String'); + } - return hasKnownLength; -}; + if (data.hasOwnProperty('item_sub_type')) { + obj['item_sub_type'] = _ApiClient["default"].convertToType(data['item_sub_type'], 'String'); + } -FormData.prototype.getLength = function (cb) { - var knownLength = this._overheadLength + this._valueLength; + if (data.hasOwnProperty('item_tags')) { + obj['item_tags'] = _ApiClient["default"].convertToType(data['item_tags'], ['String']); + } - if (this._streams.length) { - knownLength += this._lastBoundary().length; - } + if (data.hasOwnProperty('item_targets_assoc')) { + obj['item_targets_assoc'] = _ApiClient["default"].convertToType(data['item_targets_assoc'], [_ItemTargetAssociation["default"]]); + } - if (!this._valuesToMeasure.length) { - process.nextTick(cb.bind(this, null, knownLength)); - return; - } + if (data.hasOwnProperty('item_type')) { + obj['item_type'] = _ApiClient["default"].convertToType(data['item_type'], 'String'); + } - asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function (err, values) { - if (err) { - cb(err); - return; - } + if (data.hasOwnProperty('item_versions')) { + obj['item_versions'] = _ApiClient["default"].convertToType(data['item_versions'], [_ItemVersion["default"]]); + } - values.forEach(function (length) { - knownLength += length; - }); + if (data.hasOwnProperty('last_rotation_date')) { + obj['last_rotation_date'] = _ApiClient["default"].convertToType(data['last_rotation_date'], 'Date'); + } - cb(null, knownLength); - }); -}; + if (data.hasOwnProperty('last_version')) { + obj['last_version'] = _ApiClient["default"].convertToType(data['last_version'], 'Number'); + } -FormData.prototype.submit = function (params, cb) { - var request; - var options; - var defaults = { method: 'post' }; + if (data.hasOwnProperty('linked_details')) { + obj['linked_details'] = _LinkedDetails["default"].constructFromObject(data['linked_details']); + } - /* - * parse provided url if it's string - * or treat it as options object - */ - if (typeof params === 'string') { + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } - params = parseUrl(params); - options = populate({ - port: params.port, - path: params.pathname, - host: params.hostname, - protocol: params.protocol, - }, defaults); + if (data.hasOwnProperty('next_rotation_date')) { + obj['next_rotation_date'] = _ApiClient["default"].convertToType(data['next_rotation_date'], 'Date'); + } - // use custom params - } else { + if (data.hasOwnProperty('protection_key_name')) { + obj['protection_key_name'] = _ApiClient["default"].convertToType(data['protection_key_name'], 'String'); + } - options = populate(params, defaults); - // if no port provided use default one - if (!options.port) { - options.port = options.protocol === 'https:' ? 443 : 80; - } - } + if (data.hasOwnProperty('protection_key_type')) { + obj['protection_key_type'] = _ApiClient["default"].convertToType(data['protection_key_type'], 'String'); + } - // put that good code in getHeaders to some use - options.headers = this.getHeaders(params.headers); + if (data.hasOwnProperty('public_value')) { + obj['public_value'] = _ApiClient["default"].convertToType(data['public_value'], 'String'); + } - // https if specified, fallback to http in any other case - if (options.protocol === 'https:') { - request = https.request(options); - } else { - request = http.request(options); - } + if (data.hasOwnProperty('rotation_interval')) { + obj['rotation_interval'] = _ApiClient["default"].convertToType(data['rotation_interval'], 'Number'); + } - // get content length and fire away - this.getLength(function (err, length) { - if (err) { - this._error(err); - return; - } + if (data.hasOwnProperty('shared_by')) { + obj['shared_by'] = _RuleAssigner["default"].constructFromObject(data['shared_by']); + } - // add content length - request.setHeader('Content-Length', length); + if (data.hasOwnProperty('target_versions')) { + obj['target_versions'] = _ApiClient["default"].convertToType(data['target_versions'], [_TargetItemVersion["default"]]); + } - this.pipe(request); - if (cb) { - request.on('error', cb); - request.on('response', cb.bind(this, null)); + if (data.hasOwnProperty('with_customer_fragment')) { + obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); + } + } + + return obj; } - }.bind(this)); + }]); - return request; -}; + return Item; +}(); +/** + * @member {Date} access_date + */ -FormData.prototype._error = function (err) { - if (!this.error) { - this.error = err; - this.pause(); - this.emit('error', err); - } -}; -FormData.prototype.toString = function () { - return '[object FormData]'; -}; -setToStringTag(FormData, 'FormData'); +Item.prototype['access_date'] = undefined; +/** + * @member {String} access_date_display + */ -module.exports = FormData; +Item.prototype['access_date_display'] = undefined; +/** + * @member {String} access_request_status + */ +Item.prototype['access_request_status'] = undefined; +/** + * @member {Boolean} auto_rotate + */ -/***/ }), +Item.prototype['auto_rotate'] = undefined; +/** + * @member {module:model/BastionsList} bastion_details + */ -/***/ 11835: -/***/ ((module) => { +Item.prototype['bastion_details'] = undefined; +/** + * @member {String} cert_issuer_signer_key_name + */ -"use strict"; +Item.prototype['cert_issuer_signer_key_name'] = undefined; +/** + * @member {module:model/CertificateIssueInfo} certificate_issue_details + */ +Item.prototype['certificate_issue_details'] = undefined; +/** + * @member {String} certificates + */ -// populates missing values -module.exports = function (dst, src) { - Object.keys(src).forEach(function (prop) { - dst[prop] = dst[prop] || src[prop]; - }); +Item.prototype['certificates'] = undefined; +/** + * @member {Array.} client_permissions + */ - return dst; -}; +Item.prototype['client_permissions'] = undefined; +/** + * @member {Date} creation_date + */ +Item.prototype['creation_date'] = undefined; +/** + * @member {String} customer_fragment_id + */ -/***/ }), +Item.prototype['customer_fragment_id'] = undefined; +/** + * @member {Boolean} delete_protection + */ -/***/ 87981: -/***/ ((module, exports, __nccwpck_require__) => { +Item.prototype['delete_protection'] = undefined; +/** + * @member {Date} deletion_date + */ -/*! safe-buffer. MIT License. Feross Aboukhadijeh */ -/* eslint-disable node/no-deprecated-api */ -var buffer = __nccwpck_require__(20181) -var Buffer = buffer.Buffer +Item.prototype['deletion_date'] = undefined; +/** + * @member {String} display_id + */ -// alternative to using Object.keys for old browsers -function copyProps (src, dst) { - for (var key in src) { - dst[key] = src[key] - } -} -if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { - module.exports = buffer -} else { - // Copy properties from require('buffer') - copyProps(buffer, exports) - exports.Buffer = SafeBuffer -} +Item.prototype['display_id'] = undefined; +/** + * @member {Array.} gateway_details + */ -function SafeBuffer (arg, encodingOrOffset, length) { - return Buffer(arg, encodingOrOffset, length) -} +Item.prototype['gateway_details'] = undefined; +/** + * @member {Boolean} is_access_request_enabled + */ -SafeBuffer.prototype = Object.create(Buffer.prototype) +Item.prototype['is_access_request_enabled'] = undefined; +/** + * @member {Boolean} is_enabled + */ -// Copy static methods from Buffer -copyProps(Buffer, SafeBuffer) +Item.prototype['is_enabled'] = undefined; +/** + * @member {Number} item_accessibility + */ -SafeBuffer.from = function (arg, encodingOrOffset, length) { - if (typeof arg === 'number') { - throw new TypeError('Argument must not be a number') - } - return Buffer(arg, encodingOrOffset, length) -} +Item.prototype['item_accessibility'] = undefined; +/** + * @member {module:model/ItemGeneralInfo} item_general_info + */ -SafeBuffer.alloc = function (size, fill, encoding) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') - } - var buf = Buffer(size) - if (fill !== undefined) { - if (typeof encoding === 'string') { - buf.fill(fill, encoding) - } else { - buf.fill(fill) - } - } else { - buf.fill(0) - } - return buf -} +Item.prototype['item_general_info'] = undefined; +/** + * @member {Number} item_id + */ -SafeBuffer.allocUnsafe = function (size) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') - } - return Buffer(size) -} +Item.prototype['item_id'] = undefined; +/** + * @member {String} item_metadata + */ -SafeBuffer.allocUnsafeSlow = function (size) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') - } - return buffer.SlowBuffer(size) -} +Item.prototype['item_metadata'] = undefined; +/** + * @member {String} item_name + */ +Item.prototype['item_name'] = undefined; +/** + * @member {Number} item_size + */ -/***/ }), +Item.prototype['item_size'] = undefined; +/** + * ItemState defines the different states an Item can be in + * @member {String} item_state + */ -/***/ 20437: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +Item.prototype['item_state'] = undefined; +/** + * @member {String} item_sub_type + */ -var require;if (global.GENTLY) require = GENTLY.hijack(require); +Item.prototype['item_sub_type'] = undefined; +/** + * @member {Array.} item_tags + */ -var util = __nccwpck_require__(39023), - fs = __nccwpck_require__(79896), - EventEmitter = (__nccwpck_require__(24434).EventEmitter), - crypto = __nccwpck_require__(76982); +Item.prototype['item_tags'] = undefined; +/** + * @member {Array.} item_targets_assoc + */ -function File(properties) { - EventEmitter.call(this); +Item.prototype['item_targets_assoc'] = undefined; +/** + * @member {String} item_type + */ - this.size = 0; - this.path = null; - this.name = null; - this.type = null; - this.hash = null; - this.lastModifiedDate = null; +Item.prototype['item_type'] = undefined; +/** + * @member {Array.} item_versions + */ - this._writeStream = null; - - for (var key in properties) { - this[key] = properties[key]; - } +Item.prototype['item_versions'] = undefined; +/** + * @member {Date} last_rotation_date + */ - if(typeof this.hash === 'string') { - this.hash = crypto.createHash(properties.hash); - } else { - this.hash = null; - } -} -module.exports = File; -util.inherits(File, EventEmitter); +Item.prototype['last_rotation_date'] = undefined; +/** + * @member {Number} last_version + */ -File.prototype.open = function() { - this._writeStream = new fs.WriteStream(this.path); -}; +Item.prototype['last_version'] = undefined; +/** + * @member {module:model/LinkedDetails} linked_details + */ -File.prototype.toJSON = function() { - var json = { - size: this.size, - path: this.path, - name: this.name, - type: this.type, - mtime: this.lastModifiedDate, - length: this.length, - filename: this.filename, - mime: this.mime - }; - if (this.hash && this.hash != "") { - json.hash = this.hash; - } - return json; -}; +Item.prototype['linked_details'] = undefined; +/** + * @member {Date} modification_date + */ -File.prototype.write = function(buffer, cb) { - var self = this; - if (self.hash) { - self.hash.update(buffer); - } +Item.prototype['modification_date'] = undefined; +/** + * @member {Date} next_rotation_date + */ - if (this._writeStream.closed) { - return cb(); - } +Item.prototype['next_rotation_date'] = undefined; +/** + * @member {String} protection_key_name + */ - this._writeStream.write(buffer, function() { - self.lastModifiedDate = new Date(); - self.size += buffer.length; - self.emit('progress', self.size); - cb(); - }); -}; +Item.prototype['protection_key_name'] = undefined; +/** + * @member {String} protection_key_type + */ -File.prototype.end = function(cb) { - var self = this; - if (self.hash) { - self.hash = self.hash.digest('hex'); - } - this._writeStream.end(function() { - self.emit('end'); - cb(); - }); -}; +Item.prototype['protection_key_type'] = undefined; +/** + * @member {String} public_value + */ + +Item.prototype['public_value'] = undefined; +/** + * @member {Number} rotation_interval + */ + +Item.prototype['rotation_interval'] = undefined; +/** + * @member {module:model/RuleAssigner} shared_by + */ + +Item.prototype['shared_by'] = undefined; +/** + * @member {Array.} target_versions + */ + +Item.prototype['target_versions'] = undefined; +/** + * @member {Boolean} with_customer_fragment + */ +Item.prototype['with_customer_fragment'] = undefined; +var _default = Item; +exports["default"] = _default; /***/ }), -/***/ 75428: +/***/ 5427: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var require;if (global.GENTLY) require = GENTLY.hijack(require); +"use strict"; -var crypto = __nccwpck_require__(76982); -var fs = __nccwpck_require__(79896); -var util = __nccwpck_require__(39023), - path = __nccwpck_require__(16928), - File = __nccwpck_require__(20437), - MultipartParser = (__nccwpck_require__(43917).MultipartParser), - QuerystringParser = (__nccwpck_require__(78054)/* .QuerystringParser */ .V), - OctetParser = (__nccwpck_require__(63876)/* .OctetParser */ .h), - JSONParser = (__nccwpck_require__(81307)/* .JSONParser */ .o), - StringDecoder = (__nccwpck_require__(13193).StringDecoder), - EventEmitter = (__nccwpck_require__(24434).EventEmitter), - Stream = (__nccwpck_require__(2203).Stream), - os = __nccwpck_require__(70857); - -function IncomingForm(opts) { - if (!(this instanceof IncomingForm)) return new IncomingForm(opts); - EventEmitter.call(this); - - opts=opts||{}; - - this.error = null; - this.ended = false; - this.maxFields = opts.maxFields || 1000; - this.maxFieldsSize = opts.maxFieldsSize || 20 * 1024 * 1024; - this.maxFileSize = opts.maxFileSize || 200 * 1024 * 1024; - this.keepExtensions = opts.keepExtensions || false; - this.uploadDir = opts.uploadDir || (os.tmpdir && os.tmpdir()) || os.tmpDir(); - this.encoding = opts.encoding || 'utf-8'; - this.headers = null; - this.type = null; - this.hash = opts.hash || false; - this.multiples = opts.multiples || false; - - this.bytesReceived = null; - this.bytesExpected = null; - - this._parser = null; - this._flushing = 0; - this._fieldsSize = 0; - this._fileSize = 0; - this.openedFiles = []; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _CertificateChainInfo = _interopRequireDefault(__nccwpck_require__(60084)); + +var _CertificateIssueInfo = _interopRequireDefault(__nccwpck_require__(72182)); + +var _CertificateTemplateInfo = _interopRequireDefault(__nccwpck_require__(89755)); + +var _ClassicKeyDetailsInfo = _interopRequireDefault(__nccwpck_require__(49881)); + +var _DynamicSecretProducerInfo = _interopRequireDefault(__nccwpck_require__(98109)); - return this; -} -util.inherits(IncomingForm, EventEmitter); -exports.h = IncomingForm; +var _ImporterInfo = _interopRequireDefault(__nccwpck_require__(9586)); -IncomingForm.prototype.parse = function(req, cb) { - this.pause = function() { - try { - req.pause(); - } catch (err) { - // the stream was destroyed - if (!this.ended) { - // before it was completed, crash & burn - this._error(err); - } - return false; - } - return true; - }; +var _OidcClientInfo = _interopRequireDefault(__nccwpck_require__(2338)); - this.resume = function() { - try { - req.resume(); - } catch (err) { - // the stream was destroyed - if (!this.ended) { - // before it was completed, crash & burn - this._error(err); - } - return false; - } +var _PasswordPolicyInfo = _interopRequireDefault(__nccwpck_require__(34827)); - return true; - }; +var _RotatedSecretDetailsInfo = _interopRequireDefault(__nccwpck_require__(25957)); - // Setup callback first, so we don't miss anything from data events emitted - // immediately. - if (cb) { - var fields = {}, files = {}; - this - .on('field', function(name, value) { - fields[name] = value; - }) - .on('file', function(name, file) { - if (this.multiples) { - if (files[name]) { - if (!Array.isArray(files[name])) { - files[name] = [files[name]]; - } - files[name].push(file); - } else { - files[name] = file; - } - } else { - files[name] = file; - } - }) - .on('error', function(err) { - cb(err, fields, files); - }) - .on('end', function() { - cb(null, fields, files); - }); - } +var _SecureRemoteAccess = _interopRequireDefault(__nccwpck_require__(66513)); - // Parse headers and setup the parser, ready to start listening for data. - this.writeHeaders(req.headers); +var _StaticSecretDetailsInfo = _interopRequireDefault(__nccwpck_require__(38674)); - // Start listening for data. - var self = this; - req - .on('error', function(err) { - self._error(err); - }) - .on('aborted', function() { - self.emit('aborted'); - self._error(new Error('Request aborted')); - }) - .on('data', function(buffer) { - self.write(buffer); - }) - .on('end', function() { - if (self.error) { - return; - } +var _TokenizerInfo = _interopRequireDefault(__nccwpck_require__(61767)); - var err = self._parser.end(); - if (err) { - self._error(err); - } - }); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - return this; -}; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -IncomingForm.prototype.writeHeaders = function(headers) { - this.headers = headers; - this._parseContentLength(); - this._parseContentType(); -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -IncomingForm.prototype.write = function(buffer) { - if (this.error) { - return; - } - if (!this._parser) { - this._error(new Error('uninitialized parser')); - return; - } - if (typeof this._parser.write !== 'function') { - this._error(new Error('did not expect data')); - return; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - this.bytesReceived += buffer.length; - this.emit('progress', this.bytesReceived, this.bytesExpected); +/** + * The ItemGeneralInfo model module. + * @module model/ItemGeneralInfo + * @version 3.6.3 + */ +var ItemGeneralInfo = /*#__PURE__*/function () { + /** + * Constructs a new ItemGeneralInfo. + * @alias module:model/ItemGeneralInfo + */ + function ItemGeneralInfo() { + _classCallCheck(this, ItemGeneralInfo); - var bytesParsed = this._parser.write(buffer); - if (bytesParsed !== buffer.length) { - this._error(new Error('parser error, '+bytesParsed+' of '+buffer.length+' bytes parsed')); + ItemGeneralInfo.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - return bytesParsed; -}; - -IncomingForm.prototype.pause = function() { - // this does nothing, unless overwritten in IncomingForm.parse - return false; -}; - -IncomingForm.prototype.resume = function() { - // this does nothing, unless overwritten in IncomingForm.parse - return false; -}; -IncomingForm.prototype.onPart = function(part) { - // this method can be overwritten by the user - this.handlePart(part); -}; + _createClass(ItemGeneralInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ItemGeneralInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ItemGeneralInfo} obj Optional instance to populate. + * @return {module:model/ItemGeneralInfo} The populated ItemGeneralInfo instance. + */ -IncomingForm.prototype.handlePart = function(part) { - var self = this; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ItemGeneralInfo(); - // This MUST check exactly for undefined. You can not change it to !part.filename. - if (part.filename === undefined) { - var value = '' - , decoder = new StringDecoder(this.encoding); + if (data.hasOwnProperty('cert_issue_details')) { + obj['cert_issue_details'] = _CertificateIssueInfo["default"].constructFromObject(data['cert_issue_details']); + } - part.on('data', function(buffer) { - self._fieldsSize += buffer.length; - if (self._fieldsSize > self.maxFieldsSize) { - self._error(new Error('maxFieldsSize exceeded, received '+self._fieldsSize+' bytes of field data')); - return; - } - value += decoder.write(buffer); - }); + if (data.hasOwnProperty('certificate_chain_info')) { + obj['certificate_chain_info'] = _CertificateChainInfo["default"].constructFromObject(data['certificate_chain_info']); + } - part.on('end', function() { - self.emit('field', part.name, value); - }); - return; - } + if (data.hasOwnProperty('certificates_template_info')) { + obj['certificates_template_info'] = _CertificateTemplateInfo["default"].constructFromObject(data['certificates_template_info']); + } - this._flushing++; + if (data.hasOwnProperty('classic_key_details')) { + obj['classic_key_details'] = _ClassicKeyDetailsInfo["default"].constructFromObject(data['classic_key_details']); + } - var file = new File({ - path: this._uploadPath(part.filename), - name: part.filename, - type: part.mime, - hash: self.hash - }); + if (data.hasOwnProperty('cluster_gw_url')) { + obj['cluster_gw_url'] = _ApiClient["default"].convertToType(data['cluster_gw_url'], 'String'); + } - this.emit('fileBegin', part.name, file); + if (data.hasOwnProperty('display_metadata')) { + obj['display_metadata'] = _ApiClient["default"].convertToType(data['display_metadata'], 'String'); + } - file.open(); - this.openedFiles.push(file); + if (data.hasOwnProperty('dynamic_secret_producer_details')) { + obj['dynamic_secret_producer_details'] = _DynamicSecretProducerInfo["default"].constructFromObject(data['dynamic_secret_producer_details']); + } - part.on('data', function(buffer) { - self._fileSize += buffer.length; - if (self._fileSize > self.maxFileSize) { - self._error(new Error('maxFileSize exceeded, received '+self._fileSize+' bytes of file data')); - return; - } - if (buffer.length == 0) { - return; - } - self.pause(); - file.write(buffer, function() { - self.resume(); - }); - }); + if (data.hasOwnProperty('importer_info')) { + obj['importer_info'] = _ImporterInfo["default"].constructFromObject(data['importer_info']); + } - part.on('end', function() { - file.end(function() { - self._flushing--; - self.emit('file', part.name, file); - self._maybeEnd(); - }); - }); -}; + if (data.hasOwnProperty('oidc_client_info')) { + obj['oidc_client_info'] = _OidcClientInfo["default"].constructFromObject(data['oidc_client_info']); + } -function dummyParser(self) { - return { - end: function () { - self.ended = true; - self._maybeEnd(); - return null; - } - }; -} + if (data.hasOwnProperty('password_policy')) { + obj['password_policy'] = _PasswordPolicyInfo["default"].constructFromObject(data['password_policy']); + } -IncomingForm.prototype._parseContentType = function() { - if (this.bytesExpected === 0) { - this._parser = dummyParser(this); - return; - } + if (data.hasOwnProperty('rotated_secret_details')) { + obj['rotated_secret_details'] = _RotatedSecretDetailsInfo["default"].constructFromObject(data['rotated_secret_details']); + } - if (!this.headers['content-type']) { - this._error(new Error('bad content-type header, no content-type')); - return; - } + if (data.hasOwnProperty('secure_remote_access_details')) { + obj['secure_remote_access_details'] = _SecureRemoteAccess["default"].constructFromObject(data['secure_remote_access_details']); + } - if (this.headers['content-type'].match(/octet-stream/i)) { - this._initOctetStream(); - return; - } + if (data.hasOwnProperty('static_secret_info')) { + obj['static_secret_info'] = _StaticSecretDetailsInfo["default"].constructFromObject(data['static_secret_info']); + } - if (this.headers['content-type'].match(/urlencoded/i)) { - this._initUrlencoded(); - return; - } + if (data.hasOwnProperty('tokenizer_info')) { + obj['tokenizer_info'] = _TokenizerInfo["default"].constructFromObject(data['tokenizer_info']); + } + } - if (this.headers['content-type'].match(/multipart/i)) { - var m = this.headers['content-type'].match(/boundary=(?:"([^"]+)"|([^;]+))/i); - if (m) { - this._initMultipart(m[1] || m[2]); - } else { - this._error(new Error('bad content-type header, no multipart boundary')); + return obj; } - return; - } + }]); - if (this.headers['content-type'].match(/json/i)) { - this._initJSONencoded(); - return; - } + return ItemGeneralInfo; +}(); +/** + * @member {module:model/CertificateIssueInfo} cert_issue_details + */ - this._error(new Error('bad content-type header, unknown content-type: '+this.headers['content-type'])); -}; -IncomingForm.prototype._error = function(err) { - if (this.error || this.ended) { - return; - } +ItemGeneralInfo.prototype['cert_issue_details'] = undefined; +/** + * @member {module:model/CertificateChainInfo} certificate_chain_info + */ - this.error = err; - this.emit('error', err); +ItemGeneralInfo.prototype['certificate_chain_info'] = undefined; +/** + * @member {module:model/CertificateTemplateInfo} certificates_template_info + */ - if (Array.isArray(this.openedFiles)) { - this.openedFiles.forEach(function(file) { - file._writeStream - .on('error', function() {}) - .destroy(); - setTimeout(fs.unlink, 0, file.path, function(error) { }); - }); - } -}; +ItemGeneralInfo.prototype['certificates_template_info'] = undefined; +/** + * @member {module:model/ClassicKeyDetailsInfo} classic_key_details + */ -IncomingForm.prototype._parseContentLength = function() { - this.bytesReceived = 0; - if (this.headers['content-length']) { - this.bytesExpected = parseInt(this.headers['content-length'], 10); - } else if (this.headers['transfer-encoding'] === undefined) { - this.bytesExpected = 0; - } +ItemGeneralInfo.prototype['classic_key_details'] = undefined; +/** + * @member {String} cluster_gw_url + */ - if (this.bytesExpected !== null) { - this.emit('progress', this.bytesReceived, this.bytesExpected); - } -}; +ItemGeneralInfo.prototype['cluster_gw_url'] = undefined; +/** + * @member {String} display_metadata + */ -IncomingForm.prototype._newParser = function() { - return new MultipartParser(); -}; +ItemGeneralInfo.prototype['display_metadata'] = undefined; +/** + * @member {module:model/DynamicSecretProducerInfo} dynamic_secret_producer_details + */ -IncomingForm.prototype._initMultipart = function(boundary) { - this.type = 'multipart'; +ItemGeneralInfo.prototype['dynamic_secret_producer_details'] = undefined; +/** + * @member {module:model/ImporterInfo} importer_info + */ - var parser = new MultipartParser(), - self = this, - headerField, - headerValue, - part; +ItemGeneralInfo.prototype['importer_info'] = undefined; +/** + * @member {module:model/OidcClientInfo} oidc_client_info + */ - parser.initWithBoundary(boundary); +ItemGeneralInfo.prototype['oidc_client_info'] = undefined; +/** + * @member {module:model/PasswordPolicyInfo} password_policy + */ - parser.onPartBegin = function() { - part = new Stream(); - part.readable = true; - part.headers = {}; - part.name = null; - part.filename = null; - part.mime = null; +ItemGeneralInfo.prototype['password_policy'] = undefined; +/** + * @member {module:model/RotatedSecretDetailsInfo} rotated_secret_details + */ - part.transferEncoding = 'binary'; - part.transferBuffer = ''; +ItemGeneralInfo.prototype['rotated_secret_details'] = undefined; +/** + * @member {module:model/SecureRemoteAccess} secure_remote_access_details + */ - headerField = ''; - headerValue = ''; - }; +ItemGeneralInfo.prototype['secure_remote_access_details'] = undefined; +/** + * @member {module:model/StaticSecretDetailsInfo} static_secret_info + */ - parser.onHeaderField = function(b, start, end) { - headerField += b.toString(self.encoding, start, end); - }; +ItemGeneralInfo.prototype['static_secret_info'] = undefined; +/** + * @member {module:model/TokenizerInfo} tokenizer_info + */ - parser.onHeaderValue = function(b, start, end) { - headerValue += b.toString(self.encoding, start, end); - }; +ItemGeneralInfo.prototype['tokenizer_info'] = undefined; +var _default = ItemGeneralInfo; +exports["default"] = _default; - parser.onHeaderEnd = function() { - headerField = headerField.toLowerCase(); - part.headers[headerField] = headerValue; +/***/ }), - // matches either a quoted-string or a token (RFC 2616 section 19.5.1) - var m = headerValue.match(/\bname=("([^"]*)"|([^\(\)<>@,;:\\"\/\[\]\?=\{\}\s\t/]+))/i); - if (headerField == 'content-disposition') { - if (m) { - part.name = m[2] || m[3] || ''; - } +/***/ 96357: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - part.filename = self._fileName(headerValue); - } else if (headerField == 'content-type') { - part.mime = headerValue; - } else if (headerField == 'content-transfer-encoding') { - part.transferEncoding = headerValue.toLowerCase(); - } +"use strict"; - headerField = ''; - headerValue = ''; - }; - parser.onHeadersEnd = function() { - switch(part.transferEncoding){ - case 'binary': - case '7bit': - case '8bit': - parser.onPartData = function(b, start, end) { - part.emit('data', b.slice(start, end)); - }; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - parser.onPartEnd = function() { - part.emit('end'); - }; - break; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - case 'base64': - parser.onPartData = function(b, start, end) { - part.transferBuffer += b.slice(start, end).toString('ascii'); - - /* - four bytes (chars) in base64 converts to three bytes in binary - encoding. So we should always work with a number of bytes that - can be divided by 4, it will result in a number of buytes that - can be divided vy 3. - */ - var offset = parseInt(part.transferBuffer.length / 4, 10) * 4; - part.emit('data', new Buffer(part.transferBuffer.substring(0, offset), 'base64')); - part.transferBuffer = part.transferBuffer.substring(offset); - }; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - parser.onPartEnd = function() { - part.emit('data', new Buffer(part.transferBuffer, 'base64')); - part.emit('end'); - }; - break; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - default: - return self._error(new Error('unknown transfer-encoding')); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - self.onPart(part); - }; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +/** + * The ItemSraStatus model module. + * @module model/ItemSraStatus + * @version 3.6.3 + */ +var ItemSraStatus = /*#__PURE__*/function () { + /** + * Constructs a new ItemSraStatus. + * @alias module:model/ItemSraStatus + */ + function ItemSraStatus() { + _classCallCheck(this, ItemSraStatus); - parser.onEnd = function() { - self.ended = true; - self._maybeEnd(); - }; + ItemSraStatus.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - this._parser = parser; -}; -IncomingForm.prototype._fileName = function(headerValue) { - // matches either a quoted-string or a token (RFC 2616 section 19.5.1) - var m = headerValue.match(/\bfilename=("(.*?)"|([^\(\)<>@,;:\\"\/\[\]\?=\{\}\s\t/]+))($|;\s)/i); - if (!m) return; + _createClass(ItemSraStatus, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ItemSraStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ItemSraStatus} obj Optional instance to populate. + * @return {module:model/ItemSraStatus} The populated ItemSraStatus instance. + */ - var match = m[2] || m[3] || ''; - var filename = match.substr(match.lastIndexOf('\\') + 1); - filename = filename.replace(/%22/g, '"'); - filename = filename.replace(/&#([\d]{4});/g, function(m, code) { - return String.fromCharCode(code); - }); - return filename; -}; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ItemSraStatus(); -IncomingForm.prototype._initUrlencoded = function() { - this.type = 'urlencoded'; + if (data.hasOwnProperty('bastion_access_id')) { + obj['bastion_access_id'] = _ApiClient["default"].convertToType(data['bastion_access_id'], 'String'); + } - var parser = new QuerystringParser(this.maxFields) - , self = this; + if (data.hasOwnProperty('bastion_cluster_name')) { + obj['bastion_cluster_name'] = _ApiClient["default"].convertToType(data['bastion_cluster_name'], 'String'); + } - parser.onField = function(key, val) { - self.emit('field', key, val); - }; + if (data.hasOwnProperty('bastion_instance_id')) { + obj['bastion_instance_id'] = _ApiClient["default"].convertToType(data['bastion_instance_id'], 'String'); + } - parser.onEnd = function() { - self.ended = true; - self._maybeEnd(); - }; + if (data.hasOwnProperty('is_in_used')) { + obj['is_in_used'] = _ApiClient["default"].convertToType(data['is_in_used'], 'Boolean'); + } - this._parser = parser; -}; + if (data.hasOwnProperty('session_id')) { + obj['session_id'] = _ApiClient["default"].convertToType(data['session_id'], 'String'); + } -IncomingForm.prototype._initOctetStream = function() { - this.type = 'octet-stream'; - var filename = this.headers['x-file-name']; - var mime = this.headers['content-type']; + if (data.hasOwnProperty('time')) { + obj['time'] = _ApiClient["default"].convertToType(data['time'], 'Date'); + } + } - var file = new File({ - path: this._uploadPath(filename), - name: filename, - type: mime - }); + return obj; + } + }]); - this.emit('fileBegin', filename, file); - file.open(); - this.openedFiles.push(file); - this._flushing++; + return ItemSraStatus; +}(); +/** + * @member {String} bastion_access_id + */ - var self = this; - self._parser = new OctetParser(); +ItemSraStatus.prototype['bastion_access_id'] = undefined; +/** + * @member {String} bastion_cluster_name + */ - //Keep track of writes that haven't finished so we don't emit the file before it's done being written - var outstandingWrites = 0; +ItemSraStatus.prototype['bastion_cluster_name'] = undefined; +/** + * @member {String} bastion_instance_id + */ - self._parser.on('data', function(buffer){ - self.pause(); - outstandingWrites++; +ItemSraStatus.prototype['bastion_instance_id'] = undefined; +/** + * @member {Boolean} is_in_used + */ - file.write(buffer, function() { - outstandingWrites--; - self.resume(); +ItemSraStatus.prototype['is_in_used'] = undefined; +/** + * @member {String} session_id + */ - if(self.ended){ - self._parser.emit('doneWritingFile'); - } - }); - }); +ItemSraStatus.prototype['session_id'] = undefined; +/** + * @member {Date} time + */ - self._parser.on('end', function(){ - self._flushing--; - self.ended = true; +ItemSraStatus.prototype['time'] = undefined; +var _default = ItemSraStatus; +exports["default"] = _default; - var done = function(){ - file.end(function() { - self.emit('file', 'file', file); - self._maybeEnd(); - }); - }; +/***/ }), - if(outstandingWrites === 0){ - done(); - } else { - self._parser.once('doneWritingFile', done); - } - }); -}; +/***/ 24223: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -IncomingForm.prototype._initJSONencoded = function() { - this.type = 'json'; +"use strict"; - var parser = new JSONParser(this) - , self = this; - parser.onField = function(key, val) { - self.emit('field', key, val); - }; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - parser.onEnd = function() { - self.ended = true; - self._maybeEnd(); - }; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - this._parser = parser; -}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -IncomingForm.prototype._uploadPath = function(filename) { - var buf = crypto.randomBytes(16); - var name = 'upload_' + buf.toString('hex'); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (this.keepExtensions) { - var ext = path.extname(filename); - ext = ext.replace(/(\.[a-z0-9]+).*/i, '$1'); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - name += ext; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - return path.join(this.uploadDir, name); -}; +/** + * The ItemTargetAssociation model module. + * @module model/ItemTargetAssociation + * @version 3.6.3 + */ +var ItemTargetAssociation = /*#__PURE__*/function () { + /** + * Constructs a new ItemTargetAssociation. + * and a target. + * @alias module:model/ItemTargetAssociation + */ + function ItemTargetAssociation() { + _classCallCheck(this, ItemTargetAssociation); -IncomingForm.prototype._maybeEnd = function() { - if (!this.ended || this._flushing || this.error) { - return; + ItemTargetAssociation.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - this.emit('end'); -}; + _createClass(ItemTargetAssociation, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ItemTargetAssociation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ItemTargetAssociation} obj Optional instance to populate. + * @return {module:model/ItemTargetAssociation} The populated ItemTargetAssociation instance. + */ -/***/ }), + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ItemTargetAssociation(); -/***/ 30391: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('assoc_id')) { + obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); + } -var IncomingForm = (__nccwpck_require__(75428)/* .IncomingForm */ .h); -IncomingForm.IncomingForm = IncomingForm; -module.exports = IncomingForm; + if (data.hasOwnProperty('attributes')) { + obj['attributes'] = _ApiClient["default"].convertToType(data['attributes'], { + 'String': 'String' + }); + } + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } -/***/ }), + if (data.hasOwnProperty('target_name')) { + obj['target_name'] = _ApiClient["default"].convertToType(data['target_name'], 'String'); + } -/***/ 81307: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('target_type')) { + obj['target_type'] = _ApiClient["default"].convertToType(data['target_type'], 'String'); + } + } -var require;if (global.GENTLY) require = GENTLY.hijack(require); + return obj; + } + }]); -var Buffer = (__nccwpck_require__(20181).Buffer); + return ItemTargetAssociation; +}(); +/** + * @member {String} assoc_id + */ -function JSONParser(parent) { - this.parent = parent; - this.chunks = []; - this.bytesWritten = 0; -} -exports.o = JSONParser; -JSONParser.prototype.write = function(buffer) { - this.bytesWritten += buffer.length; - this.chunks.push(buffer); - return buffer.length; -}; +ItemTargetAssociation.prototype['assoc_id'] = undefined; +/** + * @member {Object.} attributes + */ -JSONParser.prototype.end = function() { - try { - var fields = JSON.parse(Buffer.concat(this.chunks)); - for (var field in fields) { - this.onField(field, fields[field]); - } - } catch (e) { - this.parent.emit('error', e); - } - this.data = null; +ItemTargetAssociation.prototype['attributes'] = undefined; +/** + * @member {Number} target_id + */ - this.onEnd(); -}; +ItemTargetAssociation.prototype['target_id'] = undefined; +/** + * @member {String} target_name + */ +ItemTargetAssociation.prototype['target_name'] = undefined; +/** + * @member {String} target_type + */ + +ItemTargetAssociation.prototype['target_type'] = undefined; +var _default = ItemTargetAssociation; +exports["default"] = _default; /***/ }), -/***/ 43917: +/***/ 71931: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var Buffer = (__nccwpck_require__(20181).Buffer), - s = 0, - S = - { PARSER_UNINITIALIZED: s++, - START: s++, - START_BOUNDARY: s++, - HEADER_FIELD_START: s++, - HEADER_FIELD: s++, - HEADER_VALUE_START: s++, - HEADER_VALUE: s++, - HEADER_VALUE_ALMOST_DONE: s++, - HEADERS_ALMOST_DONE: s++, - PART_DATA_START: s++, - PART_DATA: s++, - PART_END: s++, - END: s++ - }, +"use strict"; - f = 1, - F = - { PART_BOUNDARY: f, - LAST_BOUNDARY: f *= 2 - }, - LF = 10, - CR = 13, - SPACE = 32, - HYPHEN = 45, - COLON = 58, - A = 97, - Z = 122, +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - lower = function(c) { - return c | 0x20; - }; +var _CertificateVersionInfo = _interopRequireDefault(__nccwpck_require__(67405)); -for (s in S) { - exports[s] = S[s]; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function MultipartParser() { - this.boundary = null; - this.boundaryChars = null; - this.lookbehind = null; - this.state = S.PARSER_UNINITIALIZED; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - this.index = null; - this.flags = 0; -} -exports.MultipartParser = MultipartParser; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -MultipartParser.stateToString = function(stateNumber) { - for (var state in S) { - var number = S[state]; - if (number === stateNumber) return state; - } -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -MultipartParser.prototype.initWithBoundary = function(str) { - this.boundary = new Buffer(str.length+4); - this.boundary.write('\r\n--', 0); - this.boundary.write(str, 4); - this.lookbehind = new Buffer(this.boundary.length+8); - this.state = S.START; +/** + * The ItemVersion model module. + * @module model/ItemVersion + * @version 3.6.3 + */ +var ItemVersion = /*#__PURE__*/function () { + /** + * Constructs a new ItemVersion. + * @alias module:model/ItemVersion + */ + function ItemVersion() { + _classCallCheck(this, ItemVersion); - this.boundaryChars = {}; - for (var i = 0; i < this.boundary.length; i++) { - this.boundaryChars[this.boundary[i]] = true; + ItemVersion.initialize(this); } -}; + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -MultipartParser.prototype.write = function(buffer) { - var self = this, - i = 0, - len = buffer.length, - prevIndex = this.index, - index = this.index, - state = this.state, - flags = this.flags, - lookbehind = this.lookbehind, - boundary = this.boundary, - boundaryChars = this.boundaryChars, - boundaryLength = this.boundary.length, - boundaryEnd = boundaryLength - 1, - bufferLength = buffer.length, - c, - cl, - mark = function(name) { - self[name+'Mark'] = i; - }, - clear = function(name) { - delete self[name+'Mark']; - }, - callback = function(name, buffer, start, end) { - if (start !== undefined && start === end) { - return; - } + _createClass(ItemVersion, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ItemVersion from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ItemVersion} obj Optional instance to populate. + * @return {module:model/ItemVersion} The populated ItemVersion instance. + */ - var callbackSymbol = 'on'+name.substr(0, 1).toUpperCase()+name.substr(1); - if (callbackSymbol in self) { - self[callbackSymbol](buffer, start, end); - } - }, - dataCallback = function(name, clear) { - var markSymbol = name+'Mark'; - if (!(markSymbol in self)) { - return; - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ItemVersion(); - if (!clear) { - callback(name, buffer, self[markSymbol], buffer.length); - self[markSymbol] = 0; - } else { - callback(name, buffer, self[markSymbol], i); - delete self[markSymbol]; + if (data.hasOwnProperty('access_date')) { + obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); } - }; - for (i = 0; i < len; i++) { - c = buffer[i]; - switch (state) { - case S.PARSER_UNINITIALIZED: - return i; - case S.START: - index = 0; - state = S.START_BOUNDARY; - case S.START_BOUNDARY: - if (index == boundary.length - 2) { - if (c == HYPHEN) { - flags |= F.LAST_BOUNDARY; - } else if (c != CR) { - return i; - } - index++; - break; - } else if (index - 1 == boundary.length - 2) { - if (flags & F.LAST_BOUNDARY && c == HYPHEN){ - callback('end'); - state = S.END; - flags = 0; - } else if (!(flags & F.LAST_BOUNDARY) && c == LF) { - index = 0; - callback('partBegin'); - state = S.HEADER_FIELD_START; - } else { - return i; - } - break; + if (data.hasOwnProperty('access_date_display')) { + obj['access_date_display'] = _ApiClient["default"].convertToType(data['access_date_display'], 'String'); } - if (c != boundary[index+2]) { - index = -2; - } - if (c == boundary[index+2]) { - index++; - } - break; - case S.HEADER_FIELD_START: - state = S.HEADER_FIELD; - mark('headerField'); - index = 0; - case S.HEADER_FIELD: - if (c == CR) { - clear('headerField'); - state = S.HEADERS_ALMOST_DONE; - break; + if (data.hasOwnProperty('certificate_version_info')) { + obj['certificate_version_info'] = _CertificateVersionInfo["default"].constructFromObject(data['certificate_version_info']); } - index++; - if (c == HYPHEN) { - break; + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); } - if (c == COLON) { - if (index == 1) { - // empty header field - return i; - } - dataCallback('headerField', true); - state = S.HEADER_VALUE_START; - break; + if (data.hasOwnProperty('customer_fragment_id')) { + obj['customer_fragment_id'] = _ApiClient["default"].convertToType(data['customer_fragment_id'], 'String'); } - cl = lower(c); - if (cl < A || cl > Z) { - return i; - } - break; - case S.HEADER_VALUE_START: - if (c == SPACE) { - break; + if (data.hasOwnProperty('deletion_date')) { + obj['deletion_date'] = _ApiClient["default"].convertToType(data['deletion_date'], 'Date'); } - mark('headerValue'); - state = S.HEADER_VALUE; - case S.HEADER_VALUE: - if (c == CR) { - dataCallback('headerValue', true); - callback('headerEnd'); - state = S.HEADER_VALUE_ALMOST_DONE; - } - break; - case S.HEADER_VALUE_ALMOST_DONE: - if (c != LF) { - return i; - } - state = S.HEADER_FIELD_START; - break; - case S.HEADERS_ALMOST_DONE: - if (c != LF) { - return i; + if (data.hasOwnProperty('item_version_state')) { + obj['item_version_state'] = _ApiClient["default"].convertToType(data['item_version_state'], 'String'); } - callback('headersEnd'); - state = S.PART_DATA_START; - break; - case S.PART_DATA_START: - state = S.PART_DATA; - mark('partData'); - case S.PART_DATA: - prevIndex = index; - - if (index === 0) { - // boyer-moore derrived algorithm to safely skip non-boundary data - i += boundaryEnd; - while (i < bufferLength && !(buffer[i] in boundaryChars)) { - i += boundaryLength; - } - i -= boundaryEnd; - c = buffer[i]; + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); } - if (index < boundary.length) { - if (boundary[index] == c) { - if (index === 0) { - dataCallback('partData', true); - } - index++; - } else { - index = 0; - } - } else if (index == boundary.length) { - index++; - if (c == CR) { - // CR = part boundary - flags |= F.PART_BOUNDARY; - } else if (c == HYPHEN) { - // HYPHEN = end boundary - flags |= F.LAST_BOUNDARY; - } else { - index = 0; - } - } else if (index - 1 == boundary.length) { - if (flags & F.PART_BOUNDARY) { - index = 0; - if (c == LF) { - // unset the PART_BOUNDARY flag - flags &= ~F.PART_BOUNDARY; - callback('partEnd'); - callback('partBegin'); - state = S.HEADER_FIELD_START; - break; - } - } else if (flags & F.LAST_BOUNDARY) { - if (c == HYPHEN) { - callback('partEnd'); - callback('end'); - state = S.END; - flags = 0; - } else { - index = 0; - } - } else { - index = 0; - } + if (data.hasOwnProperty('protection_key_name')) { + obj['protection_key_name'] = _ApiClient["default"].convertToType(data['protection_key_name'], 'String'); } - if (index > 0) { - // when matching a possible boundary, keep a lookbehind reference - // in case it turns out to be a false lead - lookbehind[index-1] = c; - } else if (prevIndex > 0) { - // if our boundary turned out to be rubbish, the captured lookbehind - // belongs to partData - callback('partData', lookbehind, 0, prevIndex); - prevIndex = 0; - mark('partData'); + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } - // reconsider the current character even so it interrupted the sequence - // it could be the beginning of a new sequence - i--; + if (data.hasOwnProperty('with_customer_fragment')) { + obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); } + } - break; - case S.END: - break; - default: - return i; + return obj; } - } - - dataCallback('headerField'); - dataCallback('headerValue'); - dataCallback('partData'); - - this.index = index; - this.state = state; - this.flags = flags; + }]); - return len; -}; + return ItemVersion; +}(); +/** + * @member {Date} access_date + */ -MultipartParser.prototype.end = function() { - var callback = function(self, name) { - var callbackSymbol = 'on'+name.substr(0, 1).toUpperCase()+name.substr(1); - if (callbackSymbol in self) { - self[callbackSymbol](); - } - }; - if ((this.state == S.HEADER_FIELD_START && this.index === 0) || - (this.state == S.PART_DATA && this.index == this.boundary.length)) { - callback(this, 'partEnd'); - callback(this, 'end'); - } else if (this.state != S.END) { - return new Error('MultipartParser.end(): stream ended unexpectedly: ' + this.explain()); - } -}; -MultipartParser.prototype.explain = function() { - return 'state = ' + MultipartParser.stateToString(this.state); -}; +ItemVersion.prototype['access_date'] = undefined; +/** + * @member {String} access_date_display + */ +ItemVersion.prototype['access_date_display'] = undefined; +/** + * @member {module:model/CertificateVersionInfo} certificate_version_info + */ -/***/ }), +ItemVersion.prototype['certificate_version_info'] = undefined; +/** + * @member {Date} creation_date + */ -/***/ 63876: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +ItemVersion.prototype['creation_date'] = undefined; +/** + * @member {String} customer_fragment_id + */ -var EventEmitter = (__nccwpck_require__(24434).EventEmitter) - , util = __nccwpck_require__(39023); +ItemVersion.prototype['customer_fragment_id'] = undefined; +/** + * @member {Date} deletion_date + */ -function OctetParser(options){ - if(!(this instanceof OctetParser)) return new OctetParser(options); - EventEmitter.call(this); -} +ItemVersion.prototype['deletion_date'] = undefined; +/** + * ItemState defines the different states an Item can be in + * @member {String} item_version_state + */ -util.inherits(OctetParser, EventEmitter); +ItemVersion.prototype['item_version_state'] = undefined; +/** + * @member {Date} modification_date + */ -exports.h = OctetParser; +ItemVersion.prototype['modification_date'] = undefined; +/** + * @member {String} protection_key_name + */ -OctetParser.prototype.write = function(buffer) { - this.emit('data', buffer); - return buffer.length; -}; +ItemVersion.prototype['protection_key_name'] = undefined; +/** + * @member {Number} version + */ -OctetParser.prototype.end = function() { - this.emit('end'); -}; +ItemVersion.prototype['version'] = undefined; +/** + * @member {Boolean} with_customer_fragment + */ +ItemVersion.prototype['with_customer_fragment'] = undefined; +var _default = ItemVersion; +exports["default"] = _default; /***/ }), -/***/ 78054: +/***/ 39994: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var require;if (global.GENTLY) require = GENTLY.hijack(require); - -// This is a buffering parser, not quite as nice as the multipart one. -// If I find time I'll rewrite this to be fully streaming as well -var querystring = __nccwpck_require__(83480); - -function QuerystringParser(maxKeys) { - this.maxKeys = maxKeys; - this.buffer = ''; -} -exports.V = QuerystringParser; - -QuerystringParser.prototype.write = function(buffer) { - this.buffer += buffer.toString('ascii'); - return buffer.length; -}; - -QuerystringParser.prototype.end = function() { - var fields = querystring.parse(this.buffer, '&', '=', { maxKeys: this.maxKeys }); - for (var field in fields) { - this.onField(field, fields[field]); - } - this.buffer = ''; - - this.onEnd(); -}; - - +"use strict"; -/***/ }), -/***/ 99808: -/***/ ((module) => { +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -"use strict"; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/* eslint no-invalid-this: 1 */ +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible '; -var toStr = Object.prototype.toString; -var max = Math.max; -var funcType = '[object Function]'; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var concatty = function concatty(a, b) { - var arr = []; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - for (var i = 0; i < a.length; i += 1) { - arr[i] = a[i]; - } - for (var j = 0; j < b.length; j += 1) { - arr[j + a.length] = b[j]; - } +/** + * The JSONError model module. + * @module model/JSONError + * @version 3.6.3 + */ +var JSONError = /*#__PURE__*/function () { + /** + * Constructs a new JSONError. + * @alias module:model/JSONError + */ + function JSONError() { + _classCallCheck(this, JSONError); - return arr; -}; + JSONError.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var slicy = function slicy(arrLike, offset) { - var arr = []; - for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) { - arr[j] = arrLike[i]; - } - return arr; -}; -var joiny = function (arr, joiner) { - var str = ''; - for (var i = 0; i < arr.length; i += 1) { - str += arr[i]; - if (i + 1 < arr.length) { - str += joiner; - } - } - return str; -}; + _createClass(JSONError, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a JSONError from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JSONError} obj Optional instance to populate. + * @return {module:model/JSONError} The populated JSONError instance. + */ -module.exports = function bind(that) { - var target = this; - if (typeof target !== 'function' || toStr.apply(target) !== funcType) { - throw new TypeError(ERROR_MESSAGE + target); - } - var args = slicy(arguments, 1); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JSONError(); - var bound; - var binder = function () { - if (this instanceof bound) { - var result = target.apply( - this, - concatty(args, arguments) - ); - if (Object(result) === result) { - return result; - } - return this; + if (data.hasOwnProperty('error')) { + obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String'); } - return target.apply( - that, - concatty(args, arguments) - ); - - }; + } - var boundLength = max(0, target.length - args.length); - var boundArgs = []; - for (var i = 0; i < boundLength; i++) { - boundArgs[i] = '$' + i; + return obj; } + }]); - bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder); - - if (target.prototype) { - var Empty = function Empty() {}; - Empty.prototype = target.prototype; - bound.prototype = new Empty(); - Empty.prototype = null; - } + return JSONError; +}(); +/** + * @member {String} error + */ - return bound; -}; +JSONError.prototype['error'] = undefined; +var _default = JSONError; +exports["default"] = _default; /***/ }), -/***/ 37564: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 12684: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var implementation = __nccwpck_require__(99808); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -module.exports = Function.prototype.bind || implementation; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ }), +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/***/ 47506: -/***/ ((__unused_webpack_module, exports) => { +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -"use strict"; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -// Copyright 2018 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GaxiosError = void 0; -/* eslint-disable @typescript-eslint/no-explicit-any */ -class GaxiosError extends Error { - constructor(message, options, response) { - super(message); - this.response = response; - this.config = options; - this.code = response.status.toString(); - } -} -exports.GaxiosError = GaxiosError; -//# sourceMappingURL=common.js.map +/** + * The K8SAuth model module. + * @module model/K8SAuth + * @version 3.6.3 + */ +var K8SAuth = /*#__PURE__*/function () { + /** + * Constructs a new K8SAuth. + * @alias module:model/K8SAuth + */ + function K8SAuth() { + _classCallCheck(this, K8SAuth); -/***/ }), + K8SAuth.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ 6010: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; + _createClass(K8SAuth, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a K8SAuth from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/K8SAuth} obj Optional instance to populate. + * @return {module:model/K8SAuth} The populated K8SAuth instance. + */ -// Copyright 2018 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Gaxios = void 0; -const extend_1 = __importDefault(__nccwpck_require__(23860)); -const https_1 = __nccwpck_require__(65692); -const node_fetch_1 = __importDefault(__nccwpck_require__(26705)); -const querystring_1 = __importDefault(__nccwpck_require__(83480)); -const is_stream_1 = __importDefault(__nccwpck_require__(96543)); -const url_1 = __nccwpck_require__(87016); -const common_1 = __nccwpck_require__(47506); -const retry_1 = __nccwpck_require__(32789); -/* eslint-disable @typescript-eslint/no-explicit-any */ -const fetch = hasFetch() ? window.fetch : node_fetch_1.default; -function hasWindow() { - return typeof window !== 'undefined' && !!window; -} -function hasFetch() { - return hasWindow() && !!window.fetch; -} -function hasBuffer() { - return typeof Buffer !== 'undefined'; -} -function hasHeader(options, header) { - return !!getHeader(options, header); -} -function getHeader(options, header) { - header = header.toLowerCase(); - for (const key of Object.keys((options === null || options === void 0 ? void 0 : options.headers) || {})) { - if (header === key.toLowerCase()) { - return options.headers[key]; - } - } - return undefined; -} -let HttpsProxyAgent; -function loadProxy() { - const proxy = process.env.HTTPS_PROXY || - process.env.https_proxy || - process.env.HTTP_PROXY || - process.env.http_proxy; - if (proxy) { - HttpsProxyAgent = __nccwpck_require__(3669); - } - return proxy; -} -loadProxy(); -function skipProxy(url) { - var _a; - const noProxyEnv = (_a = process.env.NO_PROXY) !== null && _a !== void 0 ? _a : process.env.no_proxy; - if (!noProxyEnv) { - return false; - } - const noProxyUrls = noProxyEnv.split(','); - const parsedURL = new url_1.URL(url); - return !!noProxyUrls.find(url => { - if (url.startsWith('*.') || url.startsWith('.')) { - url = url.replace(/^\*\./, '.'); - return parsedURL.hostname.endsWith(url); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new K8SAuth(); + + if (data.hasOwnProperty('am_token_expiration')) { + obj['am_token_expiration'] = _ApiClient["default"].convertToType(data['am_token_expiration'], 'Number'); } - else { - return url === parsedURL.origin || url === parsedURL.hostname; + + if (data.hasOwnProperty('auth_method_access_id')) { + obj['auth_method_access_id'] = _ApiClient["default"].convertToType(data['auth_method_access_id'], 'String'); } - }); -} -// Figure out if we should be using a proxy. Only if it's required, load -// the https-proxy-agent module as it adds startup cost. -function getProxy(url) { - // If there is a match between the no_proxy env variables and the url, then do not proxy - if (skipProxy(url)) { - return undefined; - // If there is not a match between the no_proxy env variables and the url, check to see if there should be a proxy - } - else { - return loadProxy(); - } -} -class Gaxios { - /** - * The Gaxios class is responsible for making HTTP requests. - * @param defaults The default set of options to be used for this instance. - */ - constructor(defaults) { - this.agentCache = new Map(); - this.defaults = defaults || {}; - } - /** - * Perform an HTTP request with the given options. - * @param opts Set of HTTP options that will be used for this HTTP request. - */ - async request(opts = {}) { - opts = this.validateOpts(opts); - return this._request(opts); - } - async _defaultAdapter(opts) { - const fetchImpl = opts.fetchImplementation || fetch; - const res = (await fetchImpl(opts.url, opts)); - const data = await this.getResponseData(opts, res); - return this.translateResponse(opts, res, data); - } - /** - * Internal, retryable version of the `request` method. - * @param opts Set of HTTP options that will be used for this HTTP request. - */ - async _request(opts = {}) { - try { - let translatedResponse; - if (opts.adapter) { - translatedResponse = await opts.adapter(opts, this._defaultAdapter.bind(this)); - } - else { - translatedResponse = await this._defaultAdapter(opts); - } - if (!opts.validateStatus(translatedResponse.status)) { - throw new common_1.GaxiosError(`Request failed with status code ${translatedResponse.status}`, opts, translatedResponse); - } - return translatedResponse; + + if (data.hasOwnProperty('auth_method_prv_key_pem')) { + obj['auth_method_prv_key_pem'] = _ApiClient["default"].convertToType(data['auth_method_prv_key_pem'], 'String'); } - catch (e) { - const err = e; - err.config = opts; - const { shouldRetry, config } = await retry_1.getRetryConfig(e); - if (shouldRetry && config) { - err.config.retryConfig.currentRetryAttempt = - config.retryConfig.currentRetryAttempt; - return this._request(err.config); - } - throw err; + + if (data.hasOwnProperty('cluster_api_type')) { + obj['cluster_api_type'] = _ApiClient["default"].convertToType(data['cluster_api_type'], 'String'); } - } - async getResponseData(opts, res) { - switch (opts.responseType) { - case 'stream': - return res.body; - case 'json': { - let data = await res.text(); - try { - data = JSON.parse(data); - } - catch (_a) { - // continue - } - return data; - } - case 'arraybuffer': - return res.arrayBuffer(); - case 'blob': - return res.blob(); - default: - return res.text(); + + if (data.hasOwnProperty('disable_iss_validation')) { + obj['disable_iss_validation'] = _ApiClient["default"].convertToType(data['disable_iss_validation'], 'Boolean'); } - } - /** - * Validates the options, and merges them with defaults. - * @param opts The original options passed from the client. - */ - validateOpts(options) { - const opts = extend_1.default(true, {}, this.defaults, options); - if (!opts.url) { - throw new Error('URL is required.'); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); } - // baseUrl has been deprecated, remove in 2.0 - const baseUrl = opts.baseUrl || opts.baseURL; - if (baseUrl) { - opts.url = baseUrl + opts.url; + + if (data.hasOwnProperty('k8s_auth_type')) { + obj['k8s_auth_type'] = _ApiClient["default"].convertToType(data['k8s_auth_type'], 'String'); } - opts.paramsSerializer = opts.paramsSerializer || this.paramsSerializer; - if (opts.params && Object.keys(opts.params).length > 0) { - let additionalQueryParams = opts.paramsSerializer(opts.params); - if (additionalQueryParams.startsWith('?')) { - additionalQueryParams = additionalQueryParams.slice(1); - } - const prefix = opts.url.includes('?') ? '&' : '?'; - opts.url = opts.url + prefix + additionalQueryParams; + + if (data.hasOwnProperty('k8s_ca_cert')) { + obj['k8s_ca_cert'] = _ApiClient["default"].convertToType(data['k8s_ca_cert'], 'String'); } - if (typeof options.maxContentLength === 'number') { - opts.size = options.maxContentLength; + + if (data.hasOwnProperty('k8s_client_cert_data')) { + obj['k8s_client_cert_data'] = _ApiClient["default"].convertToType(data['k8s_client_cert_data'], 'String'); } - if (typeof options.maxRedirects === 'number') { - opts.follow = options.maxRedirects; + + if (data.hasOwnProperty('k8s_client_key_data')) { + obj['k8s_client_key_data'] = _ApiClient["default"].convertToType(data['k8s_client_key_data'], 'String'); } - opts.headers = opts.headers || {}; - if (opts.data) { - const isFormData = typeof FormData === 'undefined' - ? false - : (opts === null || opts === void 0 ? void 0 : opts.data) instanceof FormData; - if (is_stream_1.default.readable(opts.data)) { - opts.body = opts.data; - } - else if (hasBuffer() && Buffer.isBuffer(opts.data)) { - // Do not attempt to JSON.stringify() a Buffer: - opts.body = opts.data; - if (!hasHeader(opts, 'Content-Type')) { - opts.headers['Content-Type'] = 'application/json'; - } - } - else if (typeof opts.data === 'object') { - // If www-form-urlencoded content type has been set, but data is - // provided as an object, serialize the content using querystring: - if (!isFormData) { - if (getHeader(opts, 'content-type') === - 'application/x-www-form-urlencoded') { - opts.body = opts.paramsSerializer(opts.data); - } - else { - // } else if (!(opts.data instanceof FormData)) { - if (!hasHeader(opts, 'Content-Type')) { - opts.headers['Content-Type'] = 'application/json'; - } - opts.body = JSON.stringify(opts.data); - } - } - } - else { - opts.body = opts.data; - } + + if (data.hasOwnProperty('k8s_host')) { + obj['k8s_host'] = _ApiClient["default"].convertToType(data['k8s_host'], 'String'); } - opts.validateStatus = opts.validateStatus || this.validateStatus; - opts.responseType = opts.responseType || 'json'; - if (!opts.headers['Accept'] && opts.responseType === 'json') { - opts.headers['Accept'] = 'application/json'; + + if (data.hasOwnProperty('k8s_issuer')) { + obj['k8s_issuer'] = _ApiClient["default"].convertToType(data['k8s_issuer'], 'String'); } - opts.method = opts.method || 'GET'; - const proxy = getProxy(opts.url); - if (proxy) { - if (this.agentCache.has(proxy)) { - opts.agent = this.agentCache.get(proxy); - } - else { - // Proxy is being used in conjunction with mTLS. - if (opts.cert && opts.key) { - const parsedURL = new url_1.URL(proxy); - opts.agent = new HttpsProxyAgent({ - port: parsedURL.port, - host: parsedURL.host, - protocol: parsedURL.protocol, - cert: opts.cert, - key: opts.key, - }); - } - else { - opts.agent = new HttpsProxyAgent(proxy); - } - this.agentCache.set(proxy, opts.agent); - } + + if (data.hasOwnProperty('k8s_pub_keys_pem')) { + obj['k8s_pub_keys_pem'] = _ApiClient["default"].convertToType(data['k8s_pub_keys_pem'], ['String']); } - else if (opts.cert && opts.key) { - // Configure client for mTLS: - if (this.agentCache.has(opts.key)) { - opts.agent = this.agentCache.get(opts.key); - } - else { - opts.agent = new https_1.Agent({ - cert: opts.cert, - key: opts.key, - }); - this.agentCache.set(opts.key, opts.agent); - } + + if (data.hasOwnProperty('k8s_token_reviewer_jwt')) { + obj['k8s_token_reviewer_jwt'] = _ApiClient["default"].convertToType(data['k8s_token_reviewer_jwt'], 'String'); } - return opts; - } - /** - * By default, throw for any non-2xx status code - * @param status status code from the HTTP response - */ - validateStatus(status) { - return status >= 200 && status < 300; - } - /** - * Encode a set of key/value pars into a querystring format (?foo=bar&baz=boo) - * @param params key value pars to encode - */ - paramsSerializer(params) { - return querystring_1.default.stringify(params); - } - translateResponse(opts, res, data) { - // headers need to be converted from a map to an obj - const headers = {}; - res.headers.forEach((value, key) => { - headers[key] = value; - }); - return { - config: opts, - data: data, - headers, - status: res.status, - statusText: res.statusText, - // XMLHttpRequestLike - request: { - responseURL: res.url, - }, - }; - } -} -exports.Gaxios = Gaxios; -//# sourceMappingURL=gaxios.js.map -/***/ }), + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -/***/ 97003: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('rancher_api_key')) { + obj['rancher_api_key'] = _ApiClient["default"].convertToType(data['rancher_api_key'], 'String'); + } -// Copyright 2018 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.request = exports.instance = exports.Gaxios = void 0; -const gaxios_1 = __nccwpck_require__(6010); -Object.defineProperty(exports, "Gaxios", ({ enumerable: true, get: function () { return gaxios_1.Gaxios; } })); -var common_1 = __nccwpck_require__(47506); -Object.defineProperty(exports, "GaxiosError", ({ enumerable: true, get: function () { return common_1.GaxiosError; } })); + if (data.hasOwnProperty('rancher_cluster_id')) { + obj['rancher_cluster_id'] = _ApiClient["default"].convertToType(data['rancher_cluster_id'], 'String'); + } + + if (data.hasOwnProperty('use_local_ca_jwt')) { + obj['use_local_ca_jwt'] = _ApiClient["default"].convertToType(data['use_local_ca_jwt'], 'Boolean'); + } + } + + return obj; + } + }]); + + return K8SAuth; +}(); /** - * The default instance used when the `request` method is directly - * invoked. + * AuthMethodTokenExpiration is time in seconds of expiration of the Akeyless Kube Auth Method token + * @member {Number} am_token_expiration */ -exports.instance = new gaxios_1.Gaxios(); + + +K8SAuth.prototype['am_token_expiration'] = undefined; /** - * Make an HTTP request using the given options. - * @param opts Options for the request + * AuthMethodAccessId of the Kubernetes auth method + * @member {String} auth_method_access_id */ -async function request(opts) { - return exports.instance.request(opts); -} -exports.request = request; -//# sourceMappingURL=index.js.map -/***/ }), +K8SAuth.prototype['auth_method_access_id'] = undefined; +/** + * AuthMethodSigningKey is the private key (in base64 of the PEM format) associated with the public key defined in the Kubernetes auth method, that used to sign the internal token for the Akeyless Kubernetes Auth Method + * @member {String} auth_method_prv_key_pem + */ -/***/ 32789: -/***/ ((__unused_webpack_module, exports) => { +K8SAuth.prototype['auth_method_prv_key_pem'] = undefined; +/** + * ClusterApiType defines types of API access to cluster + * @member {String} cluster_api_type + */ -"use strict"; +K8SAuth.prototype['cluster_api_type'] = undefined; +/** + * DisableISSValidation is optional parameter to disable ISS validation + * @member {Boolean} disable_iss_validation + */ -// Copyright 2018 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRetryConfig = void 0; -async function getRetryConfig(err) { - var _a; - let config = getConfig(err); - if (!err || !err.config || (!config && !err.config.retry)) { - return { shouldRetry: false }; - } - config = config || {}; - config.currentRetryAttempt = config.currentRetryAttempt || 0; - config.retry = - config.retry === undefined || config.retry === null ? 3 : config.retry; - config.httpMethodsToRetry = config.httpMethodsToRetry || [ - 'GET', - 'HEAD', - 'PUT', - 'OPTIONS', - 'DELETE', - ]; - config.noResponseRetries = - config.noResponseRetries === undefined || config.noResponseRetries === null - ? 2 - : config.noResponseRetries; - // If this wasn't in the list of status codes where we want - // to automatically retry, return. - const retryRanges = [ - // https://en.wikipedia.org/wiki/List_of_HTTP_status_codes - // 1xx - Retry (Informational, request still processing) - // 2xx - Do not retry (Success) - // 3xx - Do not retry (Redirect) - // 4xx - Do not retry (Client errors) - // 429 - Retry ("Too Many Requests") - // 5xx - Retry (Server errors) - [100, 199], - [429, 429], - [500, 599], - ]; - config.statusCodesToRetry = config.statusCodesToRetry || retryRanges; - // Put the config back into the err - err.config.retryConfig = config; - // Determine if we should retry the request - const shouldRetryFn = config.shouldRetry || shouldRetryRequest; - if (!(await shouldRetryFn(err))) { - return { shouldRetry: false, config: err.config }; - } - // Calculate time to wait with exponential backoff. - // If this is the first retry, look for a configured retryDelay. - const retryDelay = config.currentRetryAttempt ? 0 : (_a = config.retryDelay) !== null && _a !== void 0 ? _a : 100; - // Formula: retryDelay + ((2^c - 1 / 2) * 1000) - const delay = retryDelay + ((Math.pow(2, config.currentRetryAttempt) - 1) / 2) * 1000; - // We're going to retry! Incremenent the counter. - err.config.retryConfig.currentRetryAttempt += 1; - // Create a promise that invokes the retry after the backOffDelay - const backoff = new Promise(resolve => { - setTimeout(resolve, delay); - }); - // Notify the user if they added an `onRetryAttempt` handler - if (config.onRetryAttempt) { - config.onRetryAttempt(err); - } - // Return the promise in which recalls Gaxios to retry the request - await backoff; - return { shouldRetry: true, config: err.config }; -} -exports.getRetryConfig = getRetryConfig; +K8SAuth.prototype['disable_iss_validation'] = undefined; /** - * Determine based on config if we should retry the request. - * @param err The GaxiosError passed to the interceptor. + * @member {String} id */ -function shouldRetryRequest(err) { - const config = getConfig(err); - // node-fetch raises an AbortError if signaled: - // https://github.com/bitinn/node-fetch#request-cancellation-with-abortsignal - if (err.name === 'AbortError') { - return false; - } - // If there's no config, or retries are disabled, return. - if (!config || config.retry === 0) { - return false; - } - // Check if this error has no response (ETIMEDOUT, ENOTFOUND, etc) - if (!err.response && - (config.currentRetryAttempt || 0) >= config.noResponseRetries) { - return false; - } - // Only retry with configured HttpMethods. - if (!err.config.method || - config.httpMethodsToRetry.indexOf(err.config.method.toUpperCase()) < 0) { - return false; - } - // If this wasn't in the list of status codes where we want - // to automatically retry, return. - if (err.response && err.response.status) { - let isInRange = false; - for (const [min, max] of config.statusCodesToRetry) { - const status = err.response.status; - if (status >= min && status <= max) { - isInRange = true; - break; - } - } - if (!isInRange) { - return false; - } - } - // If we are out of retry attempts, return - config.currentRetryAttempt = config.currentRetryAttempt || 0; - if (config.currentRetryAttempt >= config.retry) { - return false; - } - return true; -} + +K8SAuth.prototype['id'] = undefined; /** - * Acquire the raxConfig object from an GaxiosError if available. - * @param err The Gaxios error with a config object. + * @member {String} k8s_auth_type */ -function getConfig(err) { - if (err && err.config && err.config.retryConfig) { - return err.config.retryConfig; - } - return; -} -//# sourceMappingURL=retry.js.map -/***/ }), +K8SAuth.prototype['k8s_auth_type'] = undefined; +/** + * K8SCACert is the CA Cert to use to call into the kubernetes API + * @member {String} k8s_ca_cert + */ -/***/ 23046: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +K8SAuth.prototype['k8s_ca_cert'] = undefined; +/** + * K8sClientCertData is the client certificate for k8s client certificate authentication + * @member {String} k8s_client_cert_data + */ -"use strict"; +K8SAuth.prototype['k8s_client_cert_data'] = undefined; +/** + * K8sClientKeyData is the client key for k8s client certificate authentication + * @member {String} k8s_client_key_data + */ +K8SAuth.prototype['k8s_client_key_data'] = undefined; /** - * Copyright 2018 Google LLC - * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + * K8SHost is the url string for the kubernetes API + * @member {String} k8s_host */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.requestTimeout = exports.resetIsAvailableCache = exports.isAvailable = exports.project = exports.instance = exports.HEADERS = exports.HEADER_VALUE = exports.HEADER_NAME = exports.SECONDARY_HOST_ADDRESS = exports.HOST_ADDRESS = exports.BASE_PATH = void 0; -const gaxios_1 = __nccwpck_require__(97003); -const jsonBigint = __nccwpck_require__(14826); -exports.BASE_PATH = '/computeMetadata/v1'; -exports.HOST_ADDRESS = 'http://169.254.169.254'; -exports.SECONDARY_HOST_ADDRESS = 'http://metadata.google.internal.'; -exports.HEADER_NAME = 'Metadata-Flavor'; -exports.HEADER_VALUE = 'Google'; -exports.HEADERS = Object.freeze({ [exports.HEADER_NAME]: exports.HEADER_VALUE }); + +K8SAuth.prototype['k8s_host'] = undefined; /** - * Returns the base URL while taking into account the GCE_METADATA_HOST - * environment variable if it exists. - * - * @returns The base URL, e.g., http://169.254.169.254/computeMetadata/v1. + * K8SIssuer is the claim that specifies who issued the Kubernetes token + * @member {String} k8s_issuer */ -function getBaseUrl(baseUrl) { - if (!baseUrl) { - baseUrl = - process.env.GCE_METADATA_IP || - process.env.GCE_METADATA_HOST || - exports.HOST_ADDRESS; - } - // If no scheme is provided default to HTTP: - if (!/^https?:\/\//.test(baseUrl)) { - baseUrl = `http://${baseUrl}`; - } - return new URL(exports.BASE_PATH, baseUrl).href; -} -// Accepts an options object passed from the user to the API. In previous -// versions of the API, it referred to a `Request` or an `Axios` request -// options object. Now it refers to an object with very limited property -// names. This is here to help ensure users don't pass invalid options when -// they upgrade from 0.4 to 0.5 to 0.8. -function validate(options) { - Object.keys(options).forEach(key => { - switch (key) { - case 'params': - case 'property': - case 'headers': - break; - case 'qs': - throw new Error("'qs' is not a valid configuration option. Please use 'params' instead."); - default: - throw new Error(`'${key}' is not a valid configuration option.`); - } - }); -} -async function metadataAccessor(type, options, noResponseRetries = 3, fastFail = false) { - options = options || {}; - if (typeof options === 'string') { - options = { property: options }; - } - let property = ''; - if (typeof options === 'object' && options.property) { - property = '/' + options.property; - } - validate(options); - try { - const requestMethod = fastFail ? fastFailMetadataRequest : gaxios_1.request; - const res = await requestMethod({ - url: `${getBaseUrl()}/${type}${property}`, - headers: Object.assign({}, exports.HEADERS, options.headers), - retryConfig: { noResponseRetries }, - params: options.params, - responseType: 'text', - timeout: requestTimeout(), - }); - // NOTE: node.js converts all incoming headers to lower case. - if (res.headers[exports.HEADER_NAME.toLowerCase()] !== exports.HEADER_VALUE) { - throw new Error(`Invalid response from metadata service: incorrect ${exports.HEADER_NAME} header.`); - } - else if (!res.data) { - throw new Error('Invalid response from the metadata service'); - } - if (typeof res.data === 'string') { - try { - return jsonBigint.parse(res.data); - } - catch (_a) { - /* ignore */ - } - } - return res.data; - } - catch (e) { - if (e.response && e.response.status !== 200) { - e.message = `Unsuccessful response status code. ${e.message}`; - } - throw e; - } -} -async function fastFailMetadataRequest(options) { - const secondaryOptions = { - ...options, - url: options.url.replace(getBaseUrl(), getBaseUrl(exports.SECONDARY_HOST_ADDRESS)), - }; - // We race a connection between DNS/IP to metadata server. There are a couple - // reasons for this: - // - // 1. the DNS is slow in some GCP environments; by checking both, we might - // detect the runtime environment signficantly faster. - // 2. we can't just check the IP, which is tarpitted and slow to respond - // on a user's local machine. - // - // Additional logic has been added to make sure that we don't create an - // unhandled rejection in scenarios where a failure happens sometime - // after a success. - // - // Note, however, if a failure happens prior to a success, a rejection should - // occur, this is for folks running locally. - // - let responded = false; - const r1 = gaxios_1.request(options) - .then(res => { - responded = true; - return res; - }) - .catch(err => { - if (responded) { - return r2; - } - else { - responded = true; - throw err; - } - }); - const r2 = gaxios_1.request(secondaryOptions) - .then(res => { - responded = true; - return res; - }) - .catch(err => { - if (responded) { - return r1; - } - else { - responded = true; - throw err; - } - }); - return Promise.race([r1, r2]); -} + +K8SAuth.prototype['k8s_issuer'] = undefined; /** - * Obtain metadata for the current GCE instance + * K8SPublicKeysPEM is the list of public key in PEM format + * @member {Array.} k8s_pub_keys_pem */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function instance(options) { - return metadataAccessor('instance', options); -} -exports.instance = instance; + +K8SAuth.prototype['k8s_pub_keys_pem'] = undefined; /** - * Obtain metadata for the current GCP Project. + * K8STokenReviewerJWT is the bearer for clusterApiTypeK8s, used during TokenReview API call + * @member {String} k8s_token_reviewer_jwt */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function project(options) { - return metadataAccessor('project', options); -} -exports.project = project; -/* - * How many times should we retry detecting GCP environment. + +K8SAuth.prototype['k8s_token_reviewer_jwt'] = undefined; +/** + * @member {String} name */ -function detectGCPAvailableRetries() { - return process.env.DETECT_GCP_RETRIES - ? Number(process.env.DETECT_GCP_RETRIES) - : 0; -} -let cachedIsAvailableResponse; + +K8SAuth.prototype['name'] = undefined; /** - * Determine if the metadata server is currently available. + * @member {String} protection_key */ -async function isAvailable() { - try { - // If a user is instantiating several GCP libraries at the same time, - // this may result in multiple calls to isAvailable(), to detect the - // runtime environment. We use the same promise for each of these calls - // to reduce the network load. - if (cachedIsAvailableResponse === undefined) { - cachedIsAvailableResponse = metadataAccessor('instance', undefined, detectGCPAvailableRetries(), - // If the default HOST_ADDRESS has been overridden, we should not - // make an effort to try SECONDARY_HOST_ADDRESS (as we are likely in - // a non-GCP environment): - !(process.env.GCE_METADATA_IP || process.env.GCE_METADATA_HOST)); - } - await cachedIsAvailableResponse; - return true; - } - catch (err) { - if (process.env.DEBUG_AUTH) { - console.info(err); - } - if (err.type === 'request-timeout') { - // If running in a GCP environment, metadata endpoint should return - // within ms. - return false; - } - if (err.response && err.response.status === 404) { - return false; - } - else { - if (!(err.response && err.response.status === 404) && - // A warning is emitted if we see an unexpected err.code, or err.code - // is not populated: - (!err.code || - ![ - 'EHOSTDOWN', - 'EHOSTUNREACH', - 'ENETUNREACH', - 'ENOENT', - 'ENOTFOUND', - 'ECONNREFUSED', - ].includes(err.code))) { - let code = 'UNKNOWN'; - if (err.code) - code = err.code; - process.emitWarning(`received unexpected error = ${err.message} code = ${code}`, 'MetadataLookupWarning'); - } - // Failure to resolve the metadata service means that it is not available. - return false; - } - } -} -exports.isAvailable = isAvailable; + +K8SAuth.prototype['protection_key'] = undefined; /** - * reset the memoized isAvailable() lookup. + * RancherApiKey the bear token for clusterApiTypeRancher + * @member {String} rancher_api_key */ -function resetIsAvailableCache() { - cachedIsAvailableResponse = undefined; -} -exports.resetIsAvailableCache = resetIsAvailableCache; + +K8SAuth.prototype['rancher_api_key'] = undefined; /** - * Obtain the timeout for requests to the metadata server. + * RancherClusterId cluster id as define in rancher (in case of clusterApiTypeRancher) + * @member {String} rancher_cluster_id */ -function requestTimeout() { - // In testing, we were able to reproduce behavior similar to - // https://github.com/googleapis/google-auth-library-nodejs/issues/798 - // by making many concurrent network requests. Requests do not actually fail, - // rather they take significantly longer to complete (and we hit our - // default 3000ms timeout). - // - // This logic detects a GCF environment, using the documented environment - // variables K_SERVICE and FUNCTION_NAME: - // https://cloud.google.com/functions/docs/env-var and, in a GCF environment - // eliminates timeouts (by setting the value to 0 to disable). - return process.env.K_SERVICE || process.env.FUNCTION_NAME ? 0 : 3000; -} -exports.requestTimeout = requestTimeout; -//# sourceMappingURL=index.js.map + +K8SAuth.prototype['rancher_cluster_id'] = undefined; +/** + * UseLocalCAJwt is an optional parameter to set defaulting to using the local service account when running in a Kubernetes pod + * @member {Boolean} use_local_ca_jwt + */ + +K8SAuth.prototype['use_local_ca_jwt'] = undefined; +var _default = K8SAuth; +exports["default"] = _default; /***/ }), -/***/ 60470: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 2421: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var undefined; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var $Object = __nccwpck_require__(95399); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -var $Error = __nccwpck_require__(31620); -var $EvalError = __nccwpck_require__(33056); -var $RangeError = __nccwpck_require__(14585); -var $ReferenceError = __nccwpck_require__(46905); -var $SyntaxError = __nccwpck_require__(80105); -var $TypeError = __nccwpck_require__(73314); -var $URIError = __nccwpck_require__(32578); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var abs = __nccwpck_require__(55641); -var floor = __nccwpck_require__(96171); -var max = __nccwpck_require__(57147); -var min = __nccwpck_require__(41017); -var pow = __nccwpck_require__(56947); -var round = __nccwpck_require__(42621); -var sign = __nccwpck_require__(30156); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var $Function = Function; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -// eslint-disable-next-line consistent-return -var getEvalledConstructor = function (expressionSyntax) { - try { - return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); - } catch (e) {} -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var $gOPD = __nccwpck_require__(33170); -var $defineProperty = __nccwpck_require__(79094); +/** + * The K8SAuthsConfigLastChange model module. + * @module model/K8SAuthsConfigLastChange + * @version 3.6.3 + */ +var K8SAuthsConfigLastChange = /*#__PURE__*/function () { + /** + * Constructs a new K8SAuthsConfigLastChange. + * @alias module:model/K8SAuthsConfigLastChange + */ + function K8SAuthsConfigLastChange() { + _classCallCheck(this, K8SAuthsConfigLastChange); -var throwTypeError = function () { - throw new $TypeError(); -}; -var ThrowTypeError = $gOPD - ? (function () { - try { - // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties - arguments.callee; // IE 8 does not throw here - return throwTypeError; - } catch (calleeThrows) { - try { - // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '') - return $gOPD(arguments, 'callee').get; - } catch (gOPDthrows) { - return throwTypeError; - } - } - }()) - : throwTypeError; + K8SAuthsConfigLastChange.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var hasSymbols = __nccwpck_require__(23336)(); -var getProto = __nccwpck_require__(81967); -var $ObjectGPO = __nccwpck_require__(91311); -var $ReflectGPO = __nccwpck_require__(48681); + _createClass(K8SAuthsConfigLastChange, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a K8SAuthsConfigLastChange from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/K8SAuthsConfigLastChange} obj Optional instance to populate. + * @return {module:model/K8SAuthsConfigLastChange} The populated K8SAuthsConfigLastChange instance. + */ -var $apply = __nccwpck_require__(33945); -var $call = __nccwpck_require__(88093); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new K8SAuthsConfigLastChange(); -var needsEval = {}; + if (data.hasOwnProperty('changed_k8s_auths_ids')) { + obj['changed_k8s_auths_ids'] = _ApiClient["default"].convertToType(data['changed_k8s_auths_ids'], ['String']); + } -var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array); + if (data.hasOwnProperty('created_k8s_auths_ids')) { + obj['created_k8s_auths_ids'] = _ApiClient["default"].convertToType(data['created_k8s_auths_ids'], ['String']); + } -var INTRINSICS = { - __proto__: null, - '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, - '%Array%': Array, - '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, - '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined, - '%AsyncFromSyncIteratorPrototype%': undefined, - '%AsyncFunction%': needsEval, - '%AsyncGenerator%': needsEval, - '%AsyncGeneratorFunction%': needsEval, - '%AsyncIteratorPrototype%': needsEval, - '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, - '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, - '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array, - '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array, - '%Boolean%': Boolean, - '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, - '%Date%': Date, - '%decodeURI%': decodeURI, - '%decodeURIComponent%': decodeURIComponent, - '%encodeURI%': encodeURI, - '%encodeURIComponent%': encodeURIComponent, - '%Error%': $Error, - '%eval%': eval, // eslint-disable-line no-eval - '%EvalError%': $EvalError, - '%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array, - '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, - '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, - '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry, - '%Function%': $Function, - '%GeneratorFunction%': needsEval, - '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, - '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, - '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, - '%isFinite%': isFinite, - '%isNaN%': isNaN, - '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined, - '%JSON%': typeof JSON === 'object' ? JSON : undefined, - '%Map%': typeof Map === 'undefined' ? undefined : Map, - '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()), - '%Math%': Math, - '%Number%': Number, - '%Object%': $Object, - '%Object.getOwnPropertyDescriptor%': $gOPD, - '%parseFloat%': parseFloat, - '%parseInt%': parseInt, - '%Promise%': typeof Promise === 'undefined' ? undefined : Promise, - '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, - '%RangeError%': $RangeError, - '%ReferenceError%': $ReferenceError, - '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, - '%RegExp%': RegExp, - '%Set%': typeof Set === 'undefined' ? undefined : Set, - '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()), - '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, - '%String%': String, - '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined, - '%Symbol%': hasSymbols ? Symbol : undefined, - '%SyntaxError%': $SyntaxError, - '%ThrowTypeError%': ThrowTypeError, - '%TypedArray%': TypedArray, - '%TypeError%': $TypeError, - '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, - '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, - '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, - '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, - '%URIError%': $URIError, - '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, - '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef, - '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet, + if (data.hasOwnProperty('deleted_k8s_auths_ids')) { + obj['deleted_k8s_auths_ids'] = _ApiClient["default"].convertToType(data['deleted_k8s_auths_ids'], ['String']); + } + } - '%Function.prototype.call%': $call, - '%Function.prototype.apply%': $apply, - '%Object.defineProperty%': $defineProperty, - '%Object.getPrototypeOf%': $ObjectGPO, - '%Math.abs%': abs, - '%Math.floor%': floor, - '%Math.max%': max, - '%Math.min%': min, - '%Math.pow%': pow, - '%Math.round%': round, - '%Math.sign%': sign, - '%Reflect.getPrototypeOf%': $ReflectGPO -}; + return obj; + } + }]); -if (getProto) { - try { - null.error; // eslint-disable-line no-unused-expressions - } catch (e) { - // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 - var errorProto = getProto(getProto(e)); - INTRINSICS['%Error.prototype%'] = errorProto; - } -} + return K8SAuthsConfigLastChange; +}(); +/** + * @member {Array.} changed_k8s_auths_ids + */ -var doEval = function doEval(name) { - var value; - if (name === '%AsyncFunction%') { - value = getEvalledConstructor('async function () {}'); - } else if (name === '%GeneratorFunction%') { - value = getEvalledConstructor('function* () {}'); - } else if (name === '%AsyncGeneratorFunction%') { - value = getEvalledConstructor('async function* () {}'); - } else if (name === '%AsyncGenerator%') { - var fn = doEval('%AsyncGeneratorFunction%'); - if (fn) { - value = fn.prototype; - } - } else if (name === '%AsyncIteratorPrototype%') { - var gen = doEval('%AsyncGenerator%'); - if (gen && getProto) { - value = getProto(gen.prototype); - } - } - INTRINSICS[name] = value; +K8SAuthsConfigLastChange.prototype['changed_k8s_auths_ids'] = undefined; +/** + * @member {Array.} created_k8s_auths_ids + */ - return value; -}; +K8SAuthsConfigLastChange.prototype['created_k8s_auths_ids'] = undefined; +/** + * @member {Array.} deleted_k8s_auths_ids + */ -var LEGACY_ALIASES = { - __proto__: null, - '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], - '%ArrayPrototype%': ['Array', 'prototype'], - '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], - '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], - '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], - '%ArrayProto_values%': ['Array', 'prototype', 'values'], - '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], - '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], - '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], - '%BooleanPrototype%': ['Boolean', 'prototype'], - '%DataViewPrototype%': ['DataView', 'prototype'], - '%DatePrototype%': ['Date', 'prototype'], - '%ErrorPrototype%': ['Error', 'prototype'], - '%EvalErrorPrototype%': ['EvalError', 'prototype'], - '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], - '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], - '%FunctionPrototype%': ['Function', 'prototype'], - '%Generator%': ['GeneratorFunction', 'prototype'], - '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], - '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], - '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], - '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], - '%JSONParse%': ['JSON', 'parse'], - '%JSONStringify%': ['JSON', 'stringify'], - '%MapPrototype%': ['Map', 'prototype'], - '%NumberPrototype%': ['Number', 'prototype'], - '%ObjectPrototype%': ['Object', 'prototype'], - '%ObjProto_toString%': ['Object', 'prototype', 'toString'], - '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], - '%PromisePrototype%': ['Promise', 'prototype'], - '%PromiseProto_then%': ['Promise', 'prototype', 'then'], - '%Promise_all%': ['Promise', 'all'], - '%Promise_reject%': ['Promise', 'reject'], - '%Promise_resolve%': ['Promise', 'resolve'], - '%RangeErrorPrototype%': ['RangeError', 'prototype'], - '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], - '%RegExpPrototype%': ['RegExp', 'prototype'], - '%SetPrototype%': ['Set', 'prototype'], - '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], - '%StringPrototype%': ['String', 'prototype'], - '%SymbolPrototype%': ['Symbol', 'prototype'], - '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], - '%TypedArrayPrototype%': ['TypedArray', 'prototype'], - '%TypeErrorPrototype%': ['TypeError', 'prototype'], - '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], - '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], - '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], - '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], - '%URIErrorPrototype%': ['URIError', 'prototype'], - '%WeakMapPrototype%': ['WeakMap', 'prototype'], - '%WeakSetPrototype%': ['WeakSet', 'prototype'] -}; +K8SAuthsConfigLastChange.prototype['deleted_k8s_auths_ids'] = undefined; +var _default = K8SAuthsConfigLastChange; +exports["default"] = _default; -var bind = __nccwpck_require__(37564); -var hasOwn = __nccwpck_require__(54076); -var $concat = bind.call($call, Array.prototype.concat); -var $spliceApply = bind.call($apply, Array.prototype.splice); -var $replace = bind.call($call, String.prototype.replace); -var $strSlice = bind.call($call, String.prototype.slice); -var $exec = bind.call($call, RegExp.prototype.exec); +/***/ }), -/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ -var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; -var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */ -var stringToPath = function stringToPath(string) { - var first = $strSlice(string, 0, 1); - var last = $strSlice(string, -1); - if (first === '%' && last !== '%') { - throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`'); - } else if (last === '%' && first !== '%') { - throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`'); - } - var result = []; - $replace(string, rePropName, function (match, number, quote, subString) { - result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; - }); - return result; -}; -/* end adaptation */ +/***/ 37768: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { - var intrinsicName = name; - var alias; - if (hasOwn(LEGACY_ALIASES, intrinsicName)) { - alias = LEGACY_ALIASES[intrinsicName]; - intrinsicName = '%' + alias[0] + '%'; - } +"use strict"; - if (hasOwn(INTRINSICS, intrinsicName)) { - var value = INTRINSICS[intrinsicName]; - if (value === needsEval) { - value = doEval(intrinsicName); - } - if (typeof value === 'undefined' && !allowMissing) { - throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); - } - return { - alias: alias, - name: intrinsicName, - value: value - }; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); -}; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -module.exports = function GetIntrinsic(name, allowMissing) { - if (typeof name !== 'string' || name.length === 0) { - throw new $TypeError('intrinsic name must be a non-empty string'); - } - if (arguments.length > 1 && typeof allowMissing !== 'boolean') { - throw new $TypeError('"allowMissing" argument must be a boolean'); - } +var _K8SAuth = _interopRequireDefault(__nccwpck_require__(12684)); - if ($exec(/^%?[^%]*%?$/, name) === null) { - throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name'); - } - var parts = stringToPath(name); - var intrinsicBaseName = parts.length > 0 ? parts[0] : ''; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing); - var intrinsicRealName = intrinsic.name; - var value = intrinsic.value; - var skipFurtherCaching = false; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var alias = intrinsic.alias; - if (alias) { - intrinsicBaseName = alias[0]; - $spliceApply(parts, $concat([0, 1], alias)); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - for (var i = 1, isOwn = true; i < parts.length; i += 1) { - var part = parts[i]; - var first = $strSlice(part, 0, 1); - var last = $strSlice(part, -1); - if ( - ( - (first === '"' || first === "'" || first === '`') - || (last === '"' || last === "'" || last === '`') - ) - && first !== last - ) { - throw new $SyntaxError('property names with quotes must have matching quotes'); - } - if (part === 'constructor' || !isOwn) { - skipFurtherCaching = true; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - intrinsicBaseName += '.' + part; - intrinsicRealName = '%' + intrinsicBaseName + '%'; +/** + * The K8SAuthsConfigPart model module. + * @module model/K8SAuthsConfigPart + * @version 3.6.3 + */ +var K8SAuthsConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new K8SAuthsConfigPart. + * @alias module:model/K8SAuthsConfigPart + */ + function K8SAuthsConfigPart() { + _classCallCheck(this, K8SAuthsConfigPart); - if (hasOwn(INTRINSICS, intrinsicRealName)) { - value = INTRINSICS[intrinsicRealName]; - } else if (value != null) { - if (!(part in value)) { - if (!allowMissing) { - throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); - } - return void undefined; - } - if ($gOPD && (i + 1) >= parts.length) { - var desc = $gOPD(value, part); - isOwn = !!desc; + K8SAuthsConfigPart.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // By convention, when a data property is converted to an accessor - // property to emulate a data property that does not suffer from - // the override mistake, that accessor's getter is marked with - // an `originalValue` property. Here, when we detect this, we - // uphold the illusion by pretending to see that original data - // property, i.e., returning the value rather than the getter - // itself. - if (isOwn && 'get' in desc && !('originalValue' in desc.get)) { - value = desc.get; - } else { - value = value[part]; - } - } else { - isOwn = hasOwn(value, part); - value = value[part]; - } - if (isOwn && !skipFurtherCaching) { - INTRINSICS[intrinsicRealName] = value; - } - } - } - return value; -}; + _createClass(K8SAuthsConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a K8SAuthsConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/K8SAuthsConfigPart} obj Optional instance to populate. + * @return {module:model/K8SAuthsConfigPart} The populated K8SAuthsConfigPart instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new K8SAuthsConfigPart(); + + if (data.hasOwnProperty('k8s_auths')) { + obj['k8s_auths'] = _ApiClient["default"].convertToType(data['k8s_auths'], [_K8SAuth["default"]]); + } + } + + return obj; + } + }]); + + return K8SAuthsConfigPart; +}(); +/** + * @member {Array.} k8s_auths + */ + +K8SAuthsConfigPart.prototype['k8s_auths'] = undefined; +var _default = K8SAuthsConfigPart; +exports["default"] = _default; /***/ }), -/***/ 91311: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 79488: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var $Object = __nccwpck_require__(95399); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/** @type {import('./Object.getPrototypeOf')} */ -module.exports = $Object.getPrototypeOf || null; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); +var _K8SPayload = _interopRequireDefault(__nccwpck_require__(25334)); -/***/ }), +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); -/***/ 48681: -/***/ ((module) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -"use strict"; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -/** @type {import('./Reflect.getPrototypeOf')} */ -module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null; +/** + * The K8SMigration model module. + * @module model/K8SMigration + * @version 3.6.3 + */ +var K8SMigration = /*#__PURE__*/function () { + /** + * Constructs a new K8SMigration. + * @alias module:model/K8SMigration + */ + function K8SMigration() { + _classCallCheck(this, K8SMigration); + K8SMigration.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), -/***/ 81967: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + _createClass(K8SMigration, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a K8SMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/K8SMigration} obj Optional instance to populate. + * @return {module:model/K8SMigration} The populated K8SMigration instance. + */ -"use strict"; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new K8SMigration(); + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); + } -var reflectGetProto = __nccwpck_require__(48681); -var originalGetProto = __nccwpck_require__(91311); + if (data.hasOwnProperty('payload')) { + obj['payload'] = _K8SPayload["default"].constructFromObject(data['payload']); + } + } -var getDunderProto = __nccwpck_require__(26669); + return obj; + } + }]); -/** @type {import('.')} */ -module.exports = reflectGetProto - ? function getProto(O) { - // @ts-expect-error TS can't narrow inside a closure, for some reason - return reflectGetProto(O); - } - : originalGetProto - ? function getProto(O) { - if (!O || (typeof O !== 'object' && typeof O !== 'function')) { - throw new TypeError('getProto: not an object'); - } - // @ts-expect-error TS can't narrow inside a closure, for some reason - return originalGetProto(O); - } - : getDunderProto - ? function getProto(O) { - // @ts-expect-error TS can't narrow inside a closure, for some reason - return getDunderProto(O); - } - : null; + return K8SMigration; +}(); +/** + * @member {module:model/MigrationGeneral} general + */ + + +K8SMigration.prototype['general'] = undefined; +/** + * @member {module:model/K8SPayload} payload + */ +K8SMigration.prototype['payload'] = undefined; +var _default = K8SMigration; +exports["default"] = _default; /***/ }), -/***/ 34810: +/***/ 25334: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2012 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AuthClient = void 0; -const events_1 = __nccwpck_require__(24434); -const transporters_1 = __nccwpck_require__(67633); -class AuthClient extends events_1.EventEmitter { - constructor() { - super(...arguments); - this.transporter = new transporters_1.DefaultTransporter(); - this.credentials = {}; - this.eagerRefreshThresholdMillis = 5 * 60 * 1000; - this.forceRefreshOnFailure = false; - } - /** - * Sets the auth credentials. - */ - setCredentials(credentials) { - this.credentials = credentials; - } - /** - * Append additional headers, e.g., x-goog-user-project, shared across the - * classes inheriting AuthClient. This method should be used by any method - * that overrides getRequestMetadataAsync(), which is a shared helper for - * setting request information in both gRPC and HTTP API calls. - * - * @param headers object to append additional headers to. - */ - addSharedMetadataHeaders(headers) { - // quota_project_id, stored in application_default_credentials.json, is set in - // the x-goog-user-project header, to indicate an alternate account for - // billing and quota: - if (!headers['x-goog-user-project'] && // don't override a value the user sets. - this.quotaProjectId) { - headers['x-goog-user-project'] = this.quotaProjectId; - } - return headers; - } -} -exports.AuthClient = AuthClient; -//# sourceMappingURL=authclient.js.map -/***/ }), +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/***/ 81261: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -"use strict"; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AwsClient = void 0; -const awsrequestsigner_1 = __nccwpck_require__(27647); -const baseexternalclient_1 = __nccwpck_require__(142); /** - * AWS external account client. This is used for AWS workloads, where - * AWS STS GetCallerIdentity serialized signed requests are exchanged for - * GCP access token. + * The K8SPayload model module. + * @module model/K8SPayload + * @version 3.6.3 */ -class AwsClient extends baseexternalclient_1.BaseExternalAccountClient { +var K8SPayload = /*#__PURE__*/function () { + /** + * Constructs a new K8SPayload. + * @alias module:model/K8SPayload + */ + function K8SPayload() { + _classCallCheck(this, K8SPayload); + + K8SPayload.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(K8SPayload, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Instantiates an AwsClient instance using the provided JSON - * object loaded from an external account credentials file. - * An error is thrown if the credential is not a valid AWS credential. - * @param options The external account options object typically loaded - * from the external account JSON credential file. - * @param additionalOptions Optional additional behavior customization - * options. These currently customize expiration threshold time and - * whether to retry on 401/403 API request errors. + * Constructs a K8SPayload from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/K8SPayload} obj Optional instance to populate. + * @return {module:model/K8SPayload} The populated K8SPayload instance. */ - constructor(options, additionalOptions) { - var _a; - super(options, additionalOptions); - this.environmentId = options.credential_source.environment_id; - // This is only required if the AWS region is not available in the - // AWS_REGION or AWS_DEFAULT_REGION environment variables. - this.regionUrl = options.credential_source.region_url; - // This is only required if AWS security credentials are not available in - // environment variables. - this.securityCredentialsUrl = options.credential_source.url; - this.regionalCredVerificationUrl = - options.credential_source.regional_cred_verification_url; - this.imdsV2SessionTokenUrl = - options.credential_source.imdsv2_session_token_url; - const match = (_a = this.environmentId) === null || _a === void 0 ? void 0 : _a.match(/^(aws)(\d+)$/); - if (!match || !this.regionalCredVerificationUrl) { - throw new Error('No valid AWS "credential_source" provided'); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new K8SPayload(); + + if (data.hasOwnProperty('ca')) { + obj['ca'] = _ApiClient["default"].convertToType(data['ca'], ['Number']); } - else if (parseInt(match[2], 10) !== 1) { - throw new Error(`aws version "${match[2]}" is not supported in the current build.`); + + if (data.hasOwnProperty('client_cert')) { + obj['client_cert'] = _ApiClient["default"].convertToType(data['client_cert'], ['Number']); } - this.awsRequestSigner = null; - this.region = ''; - } - /** - * Triggered when an external subject token is needed to be exchanged for a - * GCP access token via GCP STS endpoint. - * This uses the `options.credential_source` object to figure out how - * to retrieve the token using the current environment. In this case, - * this uses a serialized AWS signed request to the STS GetCallerIdentity - * endpoint. - * The logic is summarized as: - * 1. If imdsv2_session_token_url is provided in the credential source, then - * fetch the aws session token and include it in the headers of the - * metadata requests. This is a requirement for IDMSv2 but optional - * for IDMSv1. - * 2. Retrieve AWS region from availability-zone. - * 3a. Check AWS credentials in environment variables. If not found, get - * from security-credentials endpoint. - * 3b. Get AWS credentials from security-credentials endpoint. In order - * to retrieve this, the AWS role needs to be determined by calling - * security-credentials endpoint without any argument. Then the - * credentials can be retrieved via: security-credentials/role_name - * 4. Generate the signed request to AWS STS GetCallerIdentity action. - * 5. Inject x-goog-cloud-target-resource into header and serialize the - * signed request. This will be the subject-token to pass to GCP STS. - * @return A promise that resolves with the external subject token. - */ - async retrieveSubjectToken() { - // Initialize AWS request signer if not already initialized. - if (!this.awsRequestSigner) { - const metadataHeaders = {}; - if (this.imdsV2SessionTokenUrl) { - metadataHeaders['x-aws-ec2-metadata-token'] = - await this.getImdsV2SessionToken(); - } - this.region = await this.getAwsRegion(metadataHeaders); - this.awsRequestSigner = new awsrequestsigner_1.AwsRequestSigner(async () => { - // Check environment variables for permanent credentials first. - // https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html - if (process.env['AWS_ACCESS_KEY_ID'] && - process.env['AWS_SECRET_ACCESS_KEY']) { - return { - accessKeyId: process.env['AWS_ACCESS_KEY_ID'], - secretAccessKey: process.env['AWS_SECRET_ACCESS_KEY'], - // This is normally not available for permanent credentials. - token: process.env['AWS_SESSION_TOKEN'], - }; - } - // Since the role on a VM can change, we don't need to cache it. - const roleName = await this.getAwsRoleName(metadataHeaders); - // Temporary credentials typically last for several hours. - // Expiration is returned in response. - // Consider future optimization of this logic to cache AWS tokens - // until their natural expiration. - const awsCreds = await this.getAwsSecurityCredentials(roleName, metadataHeaders); - return { - accessKeyId: awsCreds.AccessKeyId, - secretAccessKey: awsCreds.SecretAccessKey, - token: awsCreds.Token, - }; - }, this.region); + + if (data.hasOwnProperty('client_key')) { + obj['client_key'] = _ApiClient["default"].convertToType(data['client_key'], ['Number']); } - // Generate signed request to AWS STS GetCallerIdentity API. - // Use the required regional endpoint. Otherwise, the request will fail. - const options = await this.awsRequestSigner.getRequestOptions({ - url: this.regionalCredVerificationUrl.replace('{region}', this.region), - method: 'POST', - }); - // The GCP STS endpoint expects the headers to be formatted as: - // [ - // {key: 'x-amz-date', value: '...'}, - // {key: 'Authorization', value: '...'}, - // ... - // ] - // And then serialized as: - // encodeURIComponent(JSON.stringify({ - // url: '...', - // method: 'POST', - // headers: [{key: 'x-amz-date', value: '...'}, ...] - // })) - const reformattedHeader = []; - const extendedHeaders = Object.assign({ - // The full, canonical resource name of the workload identity pool - // provider, with or without the HTTPS prefix. - // Including this header as part of the signature is recommended to - // ensure data integrity. - 'x-goog-cloud-target-resource': this.audience, - }, options.headers); - // Reformat header to GCP STS expected format. - for (const key in extendedHeaders) { - reformattedHeader.push({ - key, - value: extendedHeaders[key], - }); + + if (data.hasOwnProperty('namespace')) { + obj['namespace'] = _ApiClient["default"].convertToType(data['namespace'], 'String'); } - // Serialize the reformatted signed request. - return encodeURIComponent(JSON.stringify({ - url: options.url, - method: options.method, - headers: reformattedHeader, - })); - } - /** - * @return A promise that resolves with the IMDSv2 Session Token. - */ - async getImdsV2SessionToken() { - const opts = { - url: this.imdsV2SessionTokenUrl, - method: 'PUT', - responseType: 'text', - headers: { 'x-aws-ec2-metadata-token-ttl-seconds': '300' }, - }; - const response = await this.transporter.request(opts); - return response.data; - } - /** - * @param headers The headers to be used in the metadata request. - * @return A promise that resolves with the current AWS region. - */ - async getAwsRegion(headers) { - // Priority order for region determination: - // AWS_REGION > AWS_DEFAULT_REGION > metadata server. - if (process.env['AWS_REGION'] || process.env['AWS_DEFAULT_REGION']) { - return (process.env['AWS_REGION'] || process.env['AWS_DEFAULT_REGION']); + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); } - if (!this.regionUrl) { - throw new Error('Unable to determine AWS region due to missing ' + - '"options.credential_source.region_url"'); + + if (data.hasOwnProperty('server')) { + obj['server'] = _ApiClient["default"].convertToType(data['server'], 'String'); } - const opts = { - url: this.regionUrl, - method: 'GET', - responseType: 'text', - headers: headers, - }; - const response = await this.transporter.request(opts); - // Remove last character. For example, if us-east-2b is returned, - // the region would be us-east-2. - return response.data.substr(0, response.data.length - 1); - } - /** - * @param headers The headers to be used in the metadata request. - * @return A promise that resolves with the assigned role to the current - * AWS VM. This is needed for calling the security-credentials endpoint. - */ - async getAwsRoleName(headers) { - if (!this.securityCredentialsUrl) { - throw new Error('Unable to determine AWS role name due to missing ' + - '"options.credential_source.url"'); + + if (data.hasOwnProperty('skip_system')) { + obj['skip_system'] = _ApiClient["default"].convertToType(data['skip_system'], 'Boolean'); } - const opts = { - url: this.securityCredentialsUrl, - method: 'GET', - responseType: 'text', - headers: headers, - }; - const response = await this.transporter.request(opts); - return response.data; - } - /** - * Retrieves the temporary AWS credentials by calling the security-credentials - * endpoint as specified in the `credential_source` object. - * @param roleName The role attached to the current VM. - * @param headers The headers to be used in the metadata request. - * @return A promise that resolves with the temporary AWS credentials - * needed for creating the GetCallerIdentity signed request. - */ - async getAwsSecurityCredentials(roleName, headers) { - const response = await this.transporter.request({ - url: `${this.securityCredentialsUrl}/${roleName}`, - responseType: 'json', - headers: headers, - }); - return response.data; - } -} -exports.AwsClient = AwsClient; -//# sourceMappingURL=awsclient.js.map -/***/ }), + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -/***/ 27647: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + } -"use strict"; + return obj; + } + }]); -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AwsRequestSigner = void 0; -const crypto_1 = __nccwpck_require__(88851); -/** AWS Signature Version 4 signing algorithm identifier. */ -const AWS_ALGORITHM = 'AWS4-HMAC-SHA256'; + return K8SPayload; +}(); /** - * The termination string for the AWS credential scope value as defined in - * https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html + * @member {Array.} ca */ -const AWS_REQUEST_TYPE = 'aws4_request'; + + +K8SPayload.prototype['ca'] = undefined; /** - * Implements an AWS API request signer based on the AWS Signature Version 4 - * signing process. - * https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html + * @member {Array.} client_cert */ -class AwsRequestSigner { - /** - * Instantiates an AWS API request signer used to send authenticated signed - * requests to AWS APIs based on the AWS Signature Version 4 signing process. - * This also provides a mechanism to generate the signed request without - * sending it. - * @param getCredentials A mechanism to retrieve AWS security credentials - * when needed. - * @param region The AWS region to use. - */ - constructor(getCredentials, region) { - this.getCredentials = getCredentials; - this.region = region; - this.crypto = crypto_1.createCrypto(); - } - /** - * Generates the signed request for the provided HTTP request for calling - * an AWS API. This follows the steps described at: - * https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html - * @param amzOptions The AWS request options that need to be signed. - * @return A promise that resolves with the GaxiosOptions containing the - * signed HTTP request parameters. - */ - async getRequestOptions(amzOptions) { - if (!amzOptions.url) { - throw new Error('"url" is required in "amzOptions"'); - } - // Stringify JSON requests. This will be set in the request body of the - // generated signed request. - const requestPayloadData = typeof amzOptions.data === 'object' - ? JSON.stringify(amzOptions.data) - : amzOptions.data; - const url = amzOptions.url; - const method = amzOptions.method || 'GET'; - const requestPayload = amzOptions.body || requestPayloadData; - const additionalAmzHeaders = amzOptions.headers; - const awsSecurityCredentials = await this.getCredentials(); - const uri = new URL(url); - const headerMap = await generateAuthenticationHeaderMap({ - crypto: this.crypto, - host: uri.host, - canonicalUri: uri.pathname, - canonicalQuerystring: uri.search.substr(1), - method, - region: this.region, - securityCredentials: awsSecurityCredentials, - requestPayload, - additionalAmzHeaders, - }); - // Append additional optional headers, eg. X-Amz-Target, Content-Type, etc. - const headers = Object.assign( - // Add x-amz-date if available. - headerMap.amzDate ? { 'x-amz-date': headerMap.amzDate } : {}, { - Authorization: headerMap.authorizationHeader, - host: uri.host, - }, additionalAmzHeaders || {}); - if (awsSecurityCredentials.token) { - Object.assign(headers, { - 'x-amz-security-token': awsSecurityCredentials.token, - }); - } - const awsSignedReq = { - url, - method: method, - headers, - }; - if (typeof requestPayload !== 'undefined') { - awsSignedReq.body = requestPayload; - } - return awsSignedReq; - } -} -exports.AwsRequestSigner = AwsRequestSigner; + +K8SPayload.prototype['client_cert'] = undefined; /** - * Creates the HMAC-SHA256 hash of the provided message using the - * provided key. - * - * @param crypto The crypto instance used to facilitate cryptographic - * operations. - * @param key The HMAC-SHA256 key to use. - * @param msg The message to hash. - * @return The computed hash bytes. + * @member {Array.} client_key */ -async function sign(crypto, key, msg) { - return await crypto.signWithHmacSha256(key, msg); -} + +K8SPayload.prototype['client_key'] = undefined; /** - * Calculates the signing key used to calculate the signature for - * AWS Signature Version 4 based on: - * https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html - * - * @param crypto The crypto instance used to facilitate cryptographic - * operations. - * @param key The AWS secret access key. - * @param dateStamp The '%Y%m%d' date format. - * @param region The AWS region. - * @param serviceName The AWS service name, eg. sts. - * @return The signing key bytes. + * @member {String} namespace */ -async function getSigningKey(crypto, key, dateStamp, region, serviceName) { - const kDate = await sign(crypto, `AWS4${key}`, dateStamp); - const kRegion = await sign(crypto, kDate, region); - const kService = await sign(crypto, kRegion, serviceName); - const kSigning = await sign(crypto, kService, 'aws4_request'); - return kSigning; -} + +K8SPayload.prototype['namespace'] = undefined; /** - * Generates the authentication header map needed for generating the AWS - * Signature Version 4 signed request. - * - * @param option The options needed to compute the authentication header map. - * @return The AWS authentication header map which constitutes of the following - * components: amz-date, authorization header and canonical query string. + * @member {String} password */ -async function generateAuthenticationHeaderMap(options) { - const additionalAmzHeaders = options.additionalAmzHeaders || {}; - const requestPayload = options.requestPayload || ''; - // iam.amazonaws.com host => iam service. - // sts.us-east-2.amazonaws.com => sts service. - const serviceName = options.host.split('.')[0]; - const now = new Date(); - // Format: '%Y%m%dT%H%M%SZ'. - const amzDate = now - .toISOString() - .replace(/[-:]/g, '') - .replace(/\.[0-9]+/, ''); - // Format: '%Y%m%d'. - const dateStamp = now.toISOString().replace(/[-]/g, '').replace(/T.*/, ''); - // Change all additional headers to be lower case. - const reformattedAdditionalAmzHeaders = {}; - Object.keys(additionalAmzHeaders).forEach(key => { - reformattedAdditionalAmzHeaders[key.toLowerCase()] = - additionalAmzHeaders[key]; - }); - // Add AWS token if available. - if (options.securityCredentials.token) { - reformattedAdditionalAmzHeaders['x-amz-security-token'] = - options.securityCredentials.token; - } - // Header keys need to be sorted alphabetically. - const amzHeaders = Object.assign({ - host: options.host, - }, - // Previously the date was not fixed with x-amz- and could be provided manually. - // https://github.com/boto/botocore/blob/879f8440a4e9ace5d3cf145ce8b3d5e5ffb892ef/tests/unit/auth/aws4_testsuite/get-header-value-trim.req - reformattedAdditionalAmzHeaders.date ? {} : { 'x-amz-date': amzDate }, reformattedAdditionalAmzHeaders); - let canonicalHeaders = ''; - const signedHeadersList = Object.keys(amzHeaders).sort(); - signedHeadersList.forEach(key => { - canonicalHeaders += `${key}:${amzHeaders[key]}\n`; - }); - const signedHeaders = signedHeadersList.join(';'); - const payloadHash = await options.crypto.sha256DigestHex(requestPayload); - // https://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html - const canonicalRequest = `${options.method}\n` + - `${options.canonicalUri}\n` + - `${options.canonicalQuerystring}\n` + - `${canonicalHeaders}\n` + - `${signedHeaders}\n` + - `${payloadHash}`; - const credentialScope = `${dateStamp}/${options.region}/${serviceName}/${AWS_REQUEST_TYPE}`; - // https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html - const stringToSign = `${AWS_ALGORITHM}\n` + - `${amzDate}\n` + - `${credentialScope}\n` + - (await options.crypto.sha256DigestHex(canonicalRequest)); - // https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html - const signingKey = await getSigningKey(options.crypto, options.securityCredentials.secretAccessKey, dateStamp, options.region, serviceName); - const signature = await sign(options.crypto, signingKey, stringToSign); - // https://docs.aws.amazon.com/general/latest/gr/sigv4-add-signature-to-request.html - const authorizationHeader = `${AWS_ALGORITHM} Credential=${options.securityCredentials.accessKeyId}/` + - `${credentialScope}, SignedHeaders=${signedHeaders}, ` + - `Signature=${crypto_1.fromArrayBufferToHex(signature)}`; - return { - // Do not return x-amz-date if date is available. - amzDate: reformattedAdditionalAmzHeaders.date ? undefined : amzDate, - authorizationHeader, - canonicalQuerystring: options.canonicalQuerystring, - }; -} -//# sourceMappingURL=awsrequestsigner.js.map - -/***/ }), -/***/ 142: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BaseExternalAccountClient = exports.CLOUD_RESOURCE_MANAGER = exports.EXTERNAL_ACCOUNT_TYPE = exports.EXPIRATION_TIME_OFFSET = void 0; -const stream = __nccwpck_require__(2203); -const authclient_1 = __nccwpck_require__(34810); -const sts = __nccwpck_require__(121); +K8SPayload.prototype['password'] = undefined; /** - * The required token exchange grant_type: rfc8693#section-2.1 + * @member {String} server */ -const STS_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange'; + +K8SPayload.prototype['server'] = undefined; /** - * The requested token exchange requested_token_type: rfc8693#section-2.1 + * @member {Boolean} skip_system */ -const STS_REQUEST_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; -/** The default OAuth scope to request when none is provided. */ -const DEFAULT_OAUTH_SCOPE = 'https://www.googleapis.com/auth/cloud-platform'; -/** The google apis domain pattern. */ -const GOOGLE_APIS_DOMAIN_PATTERN = '\\.googleapis\\.com$'; -/** The variable portion pattern in a Google APIs domain. */ -const VARIABLE_PORTION_PATTERN = '[^\\.\\s\\/\\\\]+'; + +K8SPayload.prototype['skip_system'] = undefined; /** - * Offset to take into account network delays and server clock skews. + * @member {String} token */ -exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000; + +K8SPayload.prototype['token'] = undefined; /** - * The credentials JSON file type for external account clients. - * There are 3 types of JSON configs: - * 1. authorized_user => Google end user credential - * 2. service_account => Google service account credential - * 3. external_Account => non-GCP service (eg. AWS, Azure, K8s) + * @member {String} username */ -exports.EXTERNAL_ACCOUNT_TYPE = 'external_account'; -/** Cloud resource manager URL used to retrieve project information. */ -exports.CLOUD_RESOURCE_MANAGER = 'https://cloudresourcemanager.googleapis.com/v1/projects/'; -/** The workforce audience pattern. */ -const WORKFORCE_AUDIENCE_PATTERN = '//iam.googleapis.com/locations/[^/]+/workforcePools/[^/]+/providers/.+'; + +K8SPayload.prototype['username'] = undefined; +var _default = K8SPayload; +exports["default"] = _default; + +/***/ }), + +/***/ 71178: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _PathRule = _interopRequireDefault(__nccwpck_require__(10929)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Base external account client. This is used to instantiate AuthClients for - * exchanging external account credentials for GCP access token and authorizing - * requests to GCP APIs. - * The base class implements common logic for exchanging various type of - * external credentials for GCP access token. The logic of determining and - * retrieving the external credential based on the environment and - * credential_source will be left for the subclasses. + * The KMIPClient model module. + * @module model/KMIPClient + * @version 3.6.3 */ -class BaseExternalAccountClient extends authclient_1.AuthClient { - /** - * Instantiate a BaseExternalAccountClient instance using the provided JSON - * object loaded from an external account credentials file. - * @param options The external account options object typically loaded - * from the external account JSON credential file. - * @param additionalOptions Optional additional behavior customization - * options. These currently customize expiration threshold time and - * whether to retry on 401/403 API request errors. - */ - constructor(options, additionalOptions) { - super(); - if (options.type !== exports.EXTERNAL_ACCOUNT_TYPE) { - throw new Error(`Expected "${exports.EXTERNAL_ACCOUNT_TYPE}" type but ` + - `received "${options.type}"`); - } - this.clientAuth = options.client_id - ? { - confidentialClientType: 'basic', - clientId: options.client_id, - clientSecret: options.client_secret, - } - : undefined; - if (!this.validateGoogleAPIsUrl('sts', options.token_url)) { - throw new Error(`"${options.token_url}" is not a valid token url.`); - } - this.stsCredential = new sts.StsCredentials(options.token_url, this.clientAuth); - // Default OAuth scope. This could be overridden via public property. - this.scopes = [DEFAULT_OAUTH_SCOPE]; - this.cachedAccessToken = null; - this.audience = options.audience; - this.subjectTokenType = options.subject_token_type; - this.quotaProjectId = options.quota_project_id; - this.workforcePoolUserProject = options.workforce_pool_user_project; - const workforceAudiencePattern = new RegExp(WORKFORCE_AUDIENCE_PATTERN); - if (this.workforcePoolUserProject && - !this.audience.match(workforceAudiencePattern)) { - throw new Error('workforcePoolUserProject should not be set for non-workforce pool ' + - 'credentials.'); - } - if (typeof options.service_account_impersonation_url !== 'undefined' && - !this.validateGoogleAPIsUrl('iamcredentials', options.service_account_impersonation_url)) { - throw new Error(`"${options.service_account_impersonation_url}" is ` + - 'not a valid service account impersonation url.'); - } - this.serviceAccountImpersonationUrl = - options.service_account_impersonation_url; - // As threshold could be zero, - // eagerRefreshThresholdMillis || EXPIRATION_TIME_OFFSET will override the - // zero value. - if (typeof (additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.eagerRefreshThresholdMillis) !== 'number') { - this.eagerRefreshThresholdMillis = exports.EXPIRATION_TIME_OFFSET; - } - else { - this.eagerRefreshThresholdMillis = additionalOptions - .eagerRefreshThresholdMillis; - } - this.forceRefreshOnFailure = !!(additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.forceRefreshOnFailure); - this.projectId = null; - this.projectNumber = this.getProjectNumber(this.audience); - } - /** The service account email to be impersonated, if available. */ - getServiceAccountEmail() { - var _a; - if (this.serviceAccountImpersonationUrl) { - // Parse email from URL. The formal looks as follows: - // https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/name@project-id.iam.gserviceaccount.com:generateAccessToken - const re = /serviceAccounts\/(?[^:]+):generateAccessToken$/; - const result = re.exec(this.serviceAccountImpersonationUrl); - return ((_a = result === null || result === void 0 ? void 0 : result.groups) === null || _a === void 0 ? void 0 : _a.email) || null; - } - return null; - } - /** - * Provides a mechanism to inject GCP access tokens directly. - * When the provided credential expires, a new credential, using the - * external account options, is retrieved. - * @param credentials The Credentials object to set on the current client. - */ - setCredentials(credentials) { - super.setCredentials(credentials); - this.cachedAccessToken = credentials; - } - /** - * @return A promise that resolves with the current GCP access token - * response. If the current credential is expired, a new one is retrieved. - */ - async getAccessToken() { - // If cached access token is unavailable or expired, force refresh. - if (!this.cachedAccessToken || this.isExpired(this.cachedAccessToken)) { - await this.refreshAccessTokenAsync(); - } - // Return GCP access token in GetAccessTokenResponse format. - return { - token: this.cachedAccessToken.access_token, - res: this.cachedAccessToken.res, - }; - } - /** - * The main authentication interface. It takes an optional url which when - * present is the endpoint being accessed, and returns a Promise which - * resolves with authorization header fields. - * - * The result has the form: - * { Authorization: 'Bearer ' } - */ - async getRequestHeaders() { - const accessTokenResponse = await this.getAccessToken(); - const headers = { - Authorization: `Bearer ${accessTokenResponse.token}`, - }; - return this.addSharedMetadataHeaders(headers); - } - request(opts, callback) { - if (callback) { - this.requestAsync(opts).then(r => callback(null, r), e => { - return callback(e, e.response); - }); - } - else { - return this.requestAsync(opts); - } - } - /** - * @return A promise that resolves with the project ID corresponding to the - * current workload identity pool or current workforce pool if - * determinable. For workforce pool credential, it returns the project ID - * corresponding to the workforcePoolUserProject. - * This is introduced to match the current pattern of using the Auth - * library: - * const projectId = await auth.getProjectId(); - * const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`; - * const res = await client.request({ url }); - * The resource may not have permission - * (resourcemanager.projects.get) to call this API or the required - * scopes may not be selected: - * https://cloud.google.com/resource-manager/reference/rest/v1/projects/get#authorization-scopes - */ - async getProjectId() { - const projectNumber = this.projectNumber || this.workforcePoolUserProject; - if (this.projectId) { - // Return previously determined project ID. - return this.projectId; - } - else if (projectNumber) { - // Preferable not to use request() to avoid retrial policies. - const headers = await this.getRequestHeaders(); - const response = await this.transporter.request({ - headers, - url: `${exports.CLOUD_RESOURCE_MANAGER}${projectNumber}`, - responseType: 'json', - }); - this.projectId = response.data.projectId; - return this.projectId; - } - return null; - } - /** - * Authenticates the provided HTTP request, processes it and resolves with the - * returned response. - * @param opts The HTTP request options. - * @param retry Whether the current attempt is a retry after a failed attempt. - * @return A promise that resolves with the successful response. - */ - async requestAsync(opts, retry = false) { - let response; - try { - const requestHeaders = await this.getRequestHeaders(); - opts.headers = opts.headers || {}; - if (requestHeaders && requestHeaders['x-goog-user-project']) { - opts.headers['x-goog-user-project'] = - requestHeaders['x-goog-user-project']; - } - if (requestHeaders && requestHeaders.Authorization) { - opts.headers.Authorization = requestHeaders.Authorization; - } - response = await this.transporter.request(opts); - } - catch (e) { - const res = e.response; - if (res) { - const statusCode = res.status; - // Retry the request for metadata if the following criteria are true: - // - We haven't already retried. It only makes sense to retry once. - // - The response was a 401 or a 403 - // - The request didn't send a readableStream - // - forceRefreshOnFailure is true - const isReadableStream = res.config.data instanceof stream.Readable; - const isAuthErr = statusCode === 401 || statusCode === 403; - if (!retry && - isAuthErr && - !isReadableStream && - this.forceRefreshOnFailure) { - await this.refreshAccessTokenAsync(); - return await this.requestAsync(opts, true); - } - } - throw e; - } - return response; - } - /** - * Forces token refresh, even if unexpired tokens are currently cached. - * External credentials are exchanged for GCP access tokens via the token - * exchange endpoint and other settings provided in the client options - * object. - * If the service_account_impersonation_url is provided, an additional - * step to exchange the external account GCP access token for a service - * account impersonated token is performed. - * @return A promise that resolves with the fresh GCP access tokens. - */ - async refreshAccessTokenAsync() { - // Retrieve the external credential. - const subjectToken = await this.retrieveSubjectToken(); - // Construct the STS credentials options. - const stsCredentialsOptions = { - grantType: STS_GRANT_TYPE, - audience: this.audience, - requestedTokenType: STS_REQUEST_TOKEN_TYPE, - subjectToken, - subjectTokenType: this.subjectTokenType, - // generateAccessToken requires the provided access token to have - // scopes: - // https://www.googleapis.com/auth/iam or - // https://www.googleapis.com/auth/cloud-platform - // The new service account access token scopes will match the user - // provided ones. - scope: this.serviceAccountImpersonationUrl - ? [DEFAULT_OAUTH_SCOPE] - : this.getScopesArray(), - }; - // Exchange the external credentials for a GCP access token. - // Client auth is prioritized over passing the workforcePoolUserProject - // parameter for STS token exchange. - const additionalOptions = !this.clientAuth && this.workforcePoolUserProject - ? { userProject: this.workforcePoolUserProject } - : undefined; - const stsResponse = await this.stsCredential.exchangeToken(stsCredentialsOptions, undefined, additionalOptions); - if (this.serviceAccountImpersonationUrl) { - this.cachedAccessToken = await this.getImpersonatedAccessToken(stsResponse.access_token); - } - else if (stsResponse.expires_in) { - // Save response in cached access token. - this.cachedAccessToken = { - access_token: stsResponse.access_token, - expiry_date: new Date().getTime() + stsResponse.expires_in * 1000, - res: stsResponse.res, - }; - } - else { - // Save response in cached access token. - this.cachedAccessToken = { - access_token: stsResponse.access_token, - res: stsResponse.res, - }; - } - // Save credentials. - this.credentials = {}; - Object.assign(this.credentials, this.cachedAccessToken); - delete this.credentials.res; - // Trigger tokens event to notify external listeners. - this.emit('tokens', { - refresh_token: null, - expiry_date: this.cachedAccessToken.expiry_date, - access_token: this.cachedAccessToken.access_token, - token_type: 'Bearer', - id_token: null, - }); - // Return the cached access token. - return this.cachedAccessToken; - } - /** - * Returns the workload identity pool project number if it is determinable - * from the audience resource name. - * @param audience The STS audience used to determine the project number. - * @return The project number associated with the workload identity pool, if - * this can be determined from the STS audience field. Otherwise, null is - * returned. - */ - getProjectNumber(audience) { - // STS audience pattern: - // //iam.googleapis.com/projects/$PROJECT_NUMBER/locations/... - const match = audience.match(/\/projects\/([^/]+)/); - if (!match) { - return null; - } - return match[1]; - } - /** - * Exchanges an external account GCP access token for a service - * account impersonated access token using iamcredentials - * GenerateAccessToken API. - * @param token The access token to exchange for a service account access - * token. - * @return A promise that resolves with the service account impersonated - * credentials response. - */ - async getImpersonatedAccessToken(token) { - const opts = { - url: this.serviceAccountImpersonationUrl, - method: 'POST', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${token}`, - }, - data: { - scope: this.getScopesArray(), - }, - responseType: 'json', - }; - const response = await this.transporter.request(opts); - const successResponse = response.data; - return { - access_token: successResponse.accessToken, - // Convert from ISO format to timestamp. - expiry_date: new Date(successResponse.expireTime).getTime(), - res: response, - }; - } - /** - * Returns whether the provided credentials are expired or not. - * If there is no expiry time, assumes the token is not expired or expiring. - * @param accessToken The credentials to check for expiration. - * @return Whether the credentials are expired or not. - */ - isExpired(accessToken) { - const now = new Date().getTime(); - return accessToken.expiry_date - ? now >= accessToken.expiry_date - this.eagerRefreshThresholdMillis - : false; - } +var KMIPClient = /*#__PURE__*/function () { + /** + * Constructs a new KMIPClient. + * @alias module:model/KMIPClient + */ + function KMIPClient() { + _classCallCheck(this, KMIPClient); + + KMIPClient.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KMIPClient, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * @return The list of scopes for the requested GCP access token. + * Constructs a KMIPClient from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KMIPClient} obj Optional instance to populate. + * @return {module:model/KMIPClient} The populated KMIPClient instance. */ - getScopesArray() { - // Since scopes can be provided as string or array, the type should - // be normalized. - if (typeof this.scopes === 'string') { - return [this.scopes]; - } - else if (typeof this.scopes === 'undefined') { - return [DEFAULT_OAUTH_SCOPE]; - } - else { - return this.scopes; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KMIPClient(); + + if (data.hasOwnProperty('activate_keys_on_creation')) { + obj['activate_keys_on_creation'] = _ApiClient["default"].convertToType(data['activate_keys_on_creation'], 'Boolean'); } - } - /** - * Checks whether Google APIs URL is valid. - * @param apiName The apiName of url. - * @param url The Google API URL to validate. - * @return Whether the URL is valid or not. - */ - validateGoogleAPIsUrl(apiName, url) { - let parsedUrl; - // Return false if error is thrown during parsing URL. - try { - parsedUrl = new URL(url); + + if (data.hasOwnProperty('certificate_issue_date')) { + obj['certificate_issue_date'] = _ApiClient["default"].convertToType(data['certificate_issue_date'], 'Date'); } - catch (e) { - return false; + + if (data.hasOwnProperty('certificate_ttl_in_seconds')) { + obj['certificate_ttl_in_seconds'] = _ApiClient["default"].convertToType(data['certificate_ttl_in_seconds'], 'Number'); } - const urlDomain = parsedUrl.hostname; - // Check the protocol is https. - if (parsedUrl.protocol !== 'https:') { - return false; + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); } - const googleAPIsDomainPatterns = [ - new RegExp('^' + - VARIABLE_PORTION_PATTERN + - '\\.' + - apiName + - GOOGLE_APIS_DOMAIN_PATTERN), - new RegExp('^' + apiName + GOOGLE_APIS_DOMAIN_PATTERN), - new RegExp('^' + - apiName + - '\\.' + - VARIABLE_PORTION_PATTERN + - GOOGLE_APIS_DOMAIN_PATTERN), - new RegExp('^' + - VARIABLE_PORTION_PATTERN + - '\\-' + - apiName + - GOOGLE_APIS_DOMAIN_PATTERN), - ]; - for (const googleAPIsDomainPattern of googleAPIsDomainPatterns) { - if (urlDomain.match(googleAPIsDomainPattern)) { - return true; - } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - return false; + + if (data.hasOwnProperty('rules')) { + obj['rules'] = _ApiClient["default"].convertToType(data['rules'], [_PathRule["default"]]); + } + } + + return obj; } -} -exports.BaseExternalAccountClient = BaseExternalAccountClient; -//# sourceMappingURL=baseexternalclient.js.map + }]); + + return KMIPClient; +}(); +/** + * @member {Boolean} activate_keys_on_creation + */ + + +KMIPClient.prototype['activate_keys_on_creation'] = undefined; +/** + * @member {Date} certificate_issue_date + */ + +KMIPClient.prototype['certificate_issue_date'] = undefined; +/** + * @member {Number} certificate_ttl_in_seconds + */ + +KMIPClient.prototype['certificate_ttl_in_seconds'] = undefined; +/** + * @member {String} id + */ + +KMIPClient.prototype['id'] = undefined; +/** + * @member {String} name + */ + +KMIPClient.prototype['name'] = undefined; +/** + * @member {Array.} rules + */ + +KMIPClient.prototype['rules'] = undefined; +var _default = KMIPClient; +exports["default"] = _default; /***/ }), -/***/ 20977: +/***/ 13983: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2013 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Compute = void 0; -const arrify = __nccwpck_require__(26251); -const gcpMetadata = __nccwpck_require__(23046); -const oauth2client_1 = __nccwpck_require__(32472); -class Compute extends oauth2client_1.OAuth2Client { + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _KMIPClient = _interopRequireDefault(__nccwpck_require__(71178)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KMIPClientGetResponse model module. + * @module model/KMIPClientGetResponse + * @version 3.6.3 + */ +var KMIPClientGetResponse = /*#__PURE__*/function () { + /** + * Constructs a new KMIPClientGetResponse. + * @alias module:model/KMIPClientGetResponse + */ + function KMIPClientGetResponse() { + _classCallCheck(this, KMIPClientGetResponse); + + KMIPClientGetResponse.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KMIPClientGetResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Google Compute Engine service account credentials. - * - * Retrieve access token from the metadata server. - * See: https://developers.google.com/compute/docs/authentication + * Constructs a KMIPClientGetResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KMIPClientGetResponse} obj Optional instance to populate. + * @return {module:model/KMIPClientGetResponse} The populated KMIPClientGetResponse instance. */ - constructor(options = {}) { - super(options); - // Start with an expired refresh token, which will automatically be - // refreshed before the first API call is made. - this.credentials = { expiry_date: 1, refresh_token: 'compute-placeholder' }; - this.serviceAccountEmail = options.serviceAccountEmail || 'default'; - this.scopes = arrify(options.scopes); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KMIPClientGetResponse(); + + if (data.hasOwnProperty('client')) { + obj['client'] = _KMIPClient["default"].constructFromObject(data['client']); + } + } + + return obj; } + }]); + + return KMIPClientGetResponse; +}(); +/** + * @member {module:model/KMIPClient} client + */ + + +KMIPClientGetResponse.prototype['client'] = undefined; +var _default = KMIPClientGetResponse; +exports["default"] = _default; + +/***/ }), + +/***/ 22033: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _KMIPClient = _interopRequireDefault(__nccwpck_require__(71178)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KMIPClientListResponse model module. + * @module model/KMIPClientListResponse + * @version 3.6.3 + */ +var KMIPClientListResponse = /*#__PURE__*/function () { + /** + * Constructs a new KMIPClientListResponse. + * @alias module:model/KMIPClientListResponse + */ + function KMIPClientListResponse() { + _classCallCheck(this, KMIPClientListResponse); + + KMIPClientListResponse.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KMIPClientListResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Refreshes the access token. - * @param refreshToken Unused parameter + * Constructs a KMIPClientListResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KMIPClientListResponse} obj Optional instance to populate. + * @return {module:model/KMIPClientListResponse} The populated KMIPClientListResponse instance. */ - async refreshTokenNoCache( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - refreshToken) { - const tokenPath = `service-accounts/${this.serviceAccountEmail}/token`; - let data; - try { - const instanceOptions = { - property: tokenPath, - }; - if (this.scopes.length > 0) { - instanceOptions.params = { - scopes: this.scopes.join(','), - }; - } - data = await gcpMetadata.instance(instanceOptions); - } - catch (e) { - e.message = `Could not refresh access token: ${e.message}`; - this.wrapError(e); - throw e; - } - const tokens = data; - if (data && data.expires_in) { - tokens.expiry_date = new Date().getTime() + data.expires_in * 1000; - delete tokens.expires_in; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KMIPClientListResponse(); + + if (data.hasOwnProperty('clients')) { + obj['clients'] = _ApiClient["default"].convertToType(data['clients'], [_KMIPClient["default"]]); } - this.emit('tokens', tokens); - return { tokens, res: null }; + } + + return obj; } + }]); + + return KMIPClientListResponse; +}(); +/** + * @member {Array.} clients + */ + + +KMIPClientListResponse.prototype['clients'] = undefined; +var _default = KMIPClientListResponse; +exports["default"] = _default; + +/***/ }), + +/***/ 83564: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _KMIPClient = _interopRequireDefault(__nccwpck_require__(71178)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KMIPClientUpdateResponse model module. + * @module model/KMIPClientUpdateResponse + * @version 3.6.3 + */ +var KMIPClientUpdateResponse = /*#__PURE__*/function () { + /** + * Constructs a new KMIPClientUpdateResponse. + * @alias module:model/KMIPClientUpdateResponse + */ + function KMIPClientUpdateResponse() { + _classCallCheck(this, KMIPClientUpdateResponse); + + KMIPClientUpdateResponse.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KMIPClientUpdateResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Fetches an ID token. - * @param targetAudience the audience for the fetched ID token. + * Constructs a KMIPClientUpdateResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KMIPClientUpdateResponse} obj Optional instance to populate. + * @return {module:model/KMIPClientUpdateResponse} The populated KMIPClientUpdateResponse instance. */ - async fetchIdToken(targetAudience) { - const idTokenPath = `service-accounts/${this.serviceAccountEmail}/identity` + - `?format=full&audience=${targetAudience}`; - let idToken; - try { - const instanceOptions = { - property: idTokenPath, - }; - idToken = await gcpMetadata.instance(instanceOptions); - } - catch (e) { - e.message = `Could not fetch ID token: ${e.message}`; - throw e; - } - return idToken; - } - wrapError(e) { - const res = e.response; - if (res && res.status) { - e.code = res.status.toString(); - if (res.status === 403) { - e.message = - 'A Forbidden error was returned while attempting to retrieve an access ' + - 'token for the Compute Engine built-in service account. This may be because the Compute ' + - 'Engine instance does not have the correct permission scopes specified: ' + - e.message; - } - else if (res.status === 404) { - e.message = - 'A Not Found error was returned while attempting to retrieve an access' + - 'token for the Compute Engine built-in service account. This may be because the Compute ' + - 'Engine instance does not have any permission scopes specified: ' + - e.message; - } + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KMIPClientUpdateResponse(); + + if (data.hasOwnProperty('client')) { + obj['client'] = _KMIPClient["default"].constructFromObject(data['client']); } + } + + return obj; } -} -exports.Compute = Compute; -//# sourceMappingURL=computeclient.js.map + }]); + + return KMIPClientUpdateResponse; +}(); +/** + * @member {module:model/KMIPClient} client + */ + + +KMIPClientUpdateResponse.prototype['client'] = undefined; +var _default = KMIPClientUpdateResponse; +exports["default"] = _default; /***/ }), -/***/ 77556: +/***/ 90506: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DownscopedClient = exports.EXPIRATION_TIME_OFFSET = exports.MAX_ACCESS_BOUNDARY_RULES_COUNT = void 0; -const stream = __nccwpck_require__(2203); -const authclient_1 = __nccwpck_require__(34810); -const sts = __nccwpck_require__(121); + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _KMIPClient = _interopRequireDefault(__nccwpck_require__(71178)); + +var _KMIPServer = _interopRequireDefault(__nccwpck_require__(60094)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * The required token exchange grant_type: rfc8693#section-2.1 + * The KMIPConfigPart model module. + * @module model/KMIPConfigPart + * @version 3.6.3 */ -const STS_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange'; +var KMIPConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new KMIPConfigPart. + * @alias module:model/KMIPConfigPart + */ + function KMIPConfigPart() { + _classCallCheck(this, KMIPConfigPart); + + KMIPConfigPart.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KMIPConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a KMIPConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KMIPConfigPart} obj Optional instance to populate. + * @return {module:model/KMIPConfigPart} The populated KMIPConfigPart instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KMIPConfigPart(); + + if (data.hasOwnProperty('clients')) { + obj['clients'] = _ApiClient["default"].convertToType(data['clients'], { + 'String': _KMIPClient["default"] + }); + } + + if (data.hasOwnProperty('key_enc')) { + obj['key_enc'] = _ApiClient["default"].convertToType(data['key_enc'], ['Number']); + } + + if (data.hasOwnProperty('server')) { + obj['server'] = _KMIPServer["default"].constructFromObject(data['server']); + } + + if (data.hasOwnProperty('server_enc')) { + obj['server_enc'] = _ApiClient["default"].convertToType(data['server_enc'], ['Number']); + } + } + + return obj; + } + }]); + + return KMIPConfigPart; +}(); /** - * The requested token exchange requested_token_type: rfc8693#section-2.1 + * @member {Object.} clients */ -const STS_REQUEST_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; + + +KMIPConfigPart.prototype['clients'] = undefined; /** - * The requested token exchange subject_token_type: rfc8693#section-2.1 + * Saves the private key of the cert issuer in encypted form + * @member {Array.} key_enc */ -const STS_SUBJECT_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; -/** The STS access token exchange end point. */ -const STS_ACCESS_TOKEN_URL = 'https://sts.googleapis.com/v1/token'; + +KMIPConfigPart.prototype['key_enc'] = undefined; /** - * The maximum number of access boundary rules a Credential Access Boundary - * can contain. + * @member {module:model/KMIPServer} server */ -exports.MAX_ACCESS_BOUNDARY_RULES_COUNT = 10; + +KMIPConfigPart.prototype['server'] = undefined; /** - * Offset to take into account network delays and server clock skews. + * Saved for backward compatibility TODO: remove this after all clients upgrade + * @member {Array.} server_enc */ -exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000; + +KMIPConfigPart.prototype['server_enc'] = undefined; +var _default = KMIPConfigPart; +exports["default"] = _default; + +/***/ }), + +/***/ 48931: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Defines a set of Google credentials that are downscoped from an existing set - * of Google OAuth2 credentials. This is useful to restrict the Identity and - * Access Management (IAM) permissions that a short-lived credential can use. - * The common pattern of usage is to have a token broker with elevated access - * generate these downscoped credentials from higher access source credentials - * and pass the downscoped short-lived access tokens to a token consumer via - * some secure authenticated channel for limited access to Google Cloud Storage - * resources. + * The KMIPEnvironmentCreateResponse model module. + * @module model/KMIPEnvironmentCreateResponse + * @version 3.6.3 */ -class DownscopedClient extends authclient_1.AuthClient { +var KMIPEnvironmentCreateResponse = /*#__PURE__*/function () { + /** + * Constructs a new KMIPEnvironmentCreateResponse. + * @alias module:model/KMIPEnvironmentCreateResponse + */ + function KMIPEnvironmentCreateResponse() { + _classCallCheck(this, KMIPEnvironmentCreateResponse); + + KMIPEnvironmentCreateResponse.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KMIPEnvironmentCreateResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Instantiates a downscoped client object using the provided source - * AuthClient and credential access boundary rules. - * To downscope permissions of a source AuthClient, a Credential Access - * Boundary that specifies which resources the new credential can access, as - * well as an upper bound on the permissions that are available on each - * resource, has to be defined. A downscoped client can then be instantiated - * using the source AuthClient and the Credential Access Boundary. - * @param authClient The source AuthClient to be downscoped based on the - * provided Credential Access Boundary rules. - * @param credentialAccessBoundary The Credential Access Boundary which - * contains a list of access boundary rules. Each rule contains information - * on the resource that the rule applies to, the upper bound of the - * permissions that are available on that resource and an optional - * condition to further restrict permissions. - * @param additionalOptions Optional additional behavior customization - * options. These currently customize expiration threshold time and - * whether to retry on 401/403 API request errors. - * @param quotaProjectId Optional quota project id for setting up in the - * x-goog-user-project header. + * Constructs a KMIPEnvironmentCreateResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KMIPEnvironmentCreateResponse} obj Optional instance to populate. + * @return {module:model/KMIPEnvironmentCreateResponse} The populated KMIPEnvironmentCreateResponse instance. */ - constructor(authClient, credentialAccessBoundary, additionalOptions, quotaProjectId) { - super(); - this.authClient = authClient; - this.credentialAccessBoundary = credentialAccessBoundary; - // Check 1-10 Access Boundary Rules are defined within Credential Access - // Boundary. - if (credentialAccessBoundary.accessBoundary.accessBoundaryRules.length === 0) { - throw new Error('At least one access boundary rule needs to be defined.'); - } - else if (credentialAccessBoundary.accessBoundary.accessBoundaryRules.length > - exports.MAX_ACCESS_BOUNDARY_RULES_COUNT) { - throw new Error('The provided access boundary has more than ' + - `${exports.MAX_ACCESS_BOUNDARY_RULES_COUNT} access boundary rules.`); - } - // Check at least one permission should be defined in each Access Boundary - // Rule. - for (const rule of credentialAccessBoundary.accessBoundary - .accessBoundaryRules) { - if (rule.availablePermissions.length === 0) { - throw new Error('At least one permission should be defined in access boundary rules.'); - } - } - this.stsCredential = new sts.StsCredentials(STS_ACCESS_TOKEN_URL); - this.cachedDownscopedAccessToken = null; - // As threshold could be zero, - // eagerRefreshThresholdMillis || EXPIRATION_TIME_OFFSET will override the - // zero value. - if (typeof (additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.eagerRefreshThresholdMillis) !== 'number') { - this.eagerRefreshThresholdMillis = exports.EXPIRATION_TIME_OFFSET; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KMIPEnvironmentCreateResponse(); + + if (data.hasOwnProperty('ca_cert')) { + obj['ca_cert'] = _ApiClient["default"].convertToType(data['ca_cert'], ['Number']); } - else { - this.eagerRefreshThresholdMillis = additionalOptions - .eagerRefreshThresholdMillis; + + if (data.hasOwnProperty('root')) { + obj['root'] = _ApiClient["default"].convertToType(data['root'], 'String'); } - this.forceRefreshOnFailure = !!(additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.forceRefreshOnFailure); - this.quotaProjectId = quotaProjectId; + } + + return obj; } + }]); + + return KMIPEnvironmentCreateResponse; +}(); +/** + * @member {Array.} ca_cert + */ + + +KMIPEnvironmentCreateResponse.prototype['ca_cert'] = undefined; +/** + * @member {String} root + */ + +KMIPEnvironmentCreateResponse.prototype['root'] = undefined; +var _default = KMIPEnvironmentCreateResponse; +exports["default"] = _default; + +/***/ }), + +/***/ 60094: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KMIPServer model module. + * @module model/KMIPServer + * @version 3.6.3 + */ +var KMIPServer = /*#__PURE__*/function () { + /** + * Constructs a new KMIPServer. + * @alias module:model/KMIPServer + */ + function KMIPServer() { + _classCallCheck(this, KMIPServer); + + KMIPServer.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KMIPServer, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Provides a mechanism to inject Downscoped access tokens directly. - * The expiry_date field is required to facilitate determination of the token - * expiration which would make it easier for the token consumer to handle. - * @param credentials The Credentials object to set on the current client. + * Constructs a KMIPServer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KMIPServer} obj Optional instance to populate. + * @return {module:model/KMIPServer} The populated KMIPServer instance. */ - setCredentials(credentials) { - if (!credentials.expiry_date) { - throw new Error('The access token expiry_date field is missing in the provided ' + - 'credentials.'); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KMIPServer(); + + if (data.hasOwnProperty('active')) { + obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean'); } - super.setCredentials(credentials); - this.cachedDownscopedAccessToken = credentials; - } - async getAccessToken() { - // If the cached access token is unavailable or expired, force refresh. - // The Downscoped access token will be returned in - // DownscopedAccessTokenResponse format. - if (!this.cachedDownscopedAccessToken || - this.isExpired(this.cachedDownscopedAccessToken)) { - await this.refreshAccessTokenAsync(); + + if (data.hasOwnProperty('ca')) { + obj['ca'] = _ApiClient["default"].convertToType(data['ca'], ['Number']); } - // Return Downscoped access token in DownscopedAccessTokenResponse format. - return { - token: this.cachedDownscopedAccessToken.access_token, - expirationTime: this.cachedDownscopedAccessToken.expiry_date, - res: this.cachedDownscopedAccessToken.res, - }; - } - /** - * The main authentication interface. It takes an optional url which when - * present is the endpoint being accessed, and returns a Promise which - * resolves with authorization header fields. - * - * The result has the form: - * { Authorization: 'Bearer ' } - */ - async getRequestHeaders() { - const accessTokenResponse = await this.getAccessToken(); - const headers = { - Authorization: `Bearer ${accessTokenResponse.token}`, - }; - return this.addSharedMetadataHeaders(headers); - } - request(opts, callback) { - if (callback) { - this.requestAsync(opts).then(r => callback(null, r), e => { - return callback(e, e.response); - }); + + if (data.hasOwnProperty('certificate')) { + obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], ['Number']); } - else { - return this.requestAsync(opts); + + if (data.hasOwnProperty('certificate_issue_date')) { + obj['certificate_issue_date'] = _ApiClient["default"].convertToType(data['certificate_issue_date'], 'Date'); } - } - /** - * Authenticates the provided HTTP request, processes it and resolves with the - * returned response. - * @param opts The HTTP request options. - * @param retry Whether the current attempt is a retry after a failed attempt. - * @return A promise that resolves with the successful response. - */ - async requestAsync(opts, retry = false) { - let response; - try { - const requestHeaders = await this.getRequestHeaders(); - opts.headers = opts.headers || {}; - if (requestHeaders && requestHeaders['x-goog-user-project']) { - opts.headers['x-goog-user-project'] = - requestHeaders['x-goog-user-project']; - } - if (requestHeaders && requestHeaders.Authorization) { - opts.headers.Authorization = requestHeaders.Authorization; - } - response = await this.transporter.request(opts); + + if (data.hasOwnProperty('certificate_ttl_in_seconds')) { + obj['certificate_ttl_in_seconds'] = _ApiClient["default"].convertToType(data['certificate_ttl_in_seconds'], 'Number'); } - catch (e) { - const res = e.response; - if (res) { - const statusCode = res.status; - // Retry the request for metadata if the following criteria are true: - // - We haven't already retried. It only makes sense to retry once. - // - The response was a 401 or a 403 - // - The request didn't send a readableStream - // - forceRefreshOnFailure is true - const isReadableStream = res.config.data instanceof stream.Readable; - const isAuthErr = statusCode === 401 || statusCode === 403; - if (!retry && - isAuthErr && - !isReadableStream && - this.forceRefreshOnFailure) { - await this.refreshAccessTokenAsync(); - return await this.requestAsync(opts, true); - } - } - throw e; + + if (data.hasOwnProperty('hostname')) { + obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); } - return response; - } - /** - * Forces token refresh, even if unexpired tokens are currently cached. - * GCP access tokens are retrieved from authclient object/source credential. - * Then GCP access tokens are exchanged for downscoped access tokens via the - * token exchange endpoint. - * @return A promise that resolves with the fresh downscoped access token. - */ - async refreshAccessTokenAsync() { - var _a; - // Retrieve GCP access token from source credential. - const subjectToken = (await this.authClient.getAccessToken()).token; - // Construct the STS credentials options. - const stsCredentialsOptions = { - grantType: STS_GRANT_TYPE, - requestedTokenType: STS_REQUEST_TOKEN_TYPE, - subjectToken: subjectToken, - subjectTokenType: STS_SUBJECT_TOKEN_TYPE, - }; - // Exchange the source AuthClient access token for a Downscoped access - // token. - const stsResponse = await this.stsCredential.exchangeToken(stsCredentialsOptions, undefined, this.credentialAccessBoundary); - /** - * The STS endpoint will only return the expiration time for the downscoped - * access token if the original access token represents a service account. - * The downscoped token's expiration time will always match the source - * credential expiration. When no expires_in is returned, we can copy the - * source credential's expiration time. - */ - const sourceCredExpireDate = ((_a = this.authClient.credentials) === null || _a === void 0 ? void 0 : _a.expiry_date) || null; - const expiryDate = stsResponse.expires_in - ? new Date().getTime() + stsResponse.expires_in * 1000 - : sourceCredExpireDate; - // Save response in cached access token. - this.cachedDownscopedAccessToken = { - access_token: stsResponse.access_token, - expiry_date: expiryDate, - res: stsResponse.res, - }; - // Save credentials. - this.credentials = {}; - Object.assign(this.credentials, this.cachedDownscopedAccessToken); - delete this.credentials.res; - // Trigger tokens event to notify external listeners. - this.emit('tokens', { - refresh_token: null, - expiry_date: this.cachedDownscopedAccessToken.expiry_date, - access_token: this.cachedDownscopedAccessToken.access_token, - token_type: 'Bearer', - id_token: null, - }); - // Return the cached access token. - return this.cachedDownscopedAccessToken; - } - /** - * Returns whether the provided credentials are expired or not. - * If there is no expiry time, assumes the token is not expired or expiring. - * @param downscopedAccessToken The credentials to check for expiration. - * @return Whether the credentials are expired or not. - */ - isExpired(downscopedAccessToken) { - const now = new Date().getTime(); - return downscopedAccessToken.expiry_date - ? now >= - downscopedAccessToken.expiry_date - this.eagerRefreshThresholdMillis - : false; + + if (data.hasOwnProperty('root')) { + obj['root'] = _ApiClient["default"].convertToType(data['root'], 'String'); + } + } + + return obj; } -} -exports.DownscopedClient = DownscopedClient; -//# sourceMappingURL=downscopedclient.js.map + }]); + + return KMIPServer; +}(); +/** + * @member {Boolean} active + */ + + +KMIPServer.prototype['active'] = undefined; +/** + * @member {Array.} ca + */ + +KMIPServer.prototype['ca'] = undefined; +/** + * @member {Array.} certificate + */ + +KMIPServer.prototype['certificate'] = undefined; +/** + * @member {Date} certificate_issue_date + */ + +KMIPServer.prototype['certificate_issue_date'] = undefined; +/** + * @member {Number} certificate_ttl_in_seconds + */ + +KMIPServer.prototype['certificate_ttl_in_seconds'] = undefined; +/** + * @member {String} hostname + */ + +KMIPServer.prototype['hostname'] = undefined; +/** + * @member {String} root + */ + +KMIPServer.prototype['root'] = undefined; +var _default = KMIPServer; +exports["default"] = _default; /***/ }), -/***/ 60963: +/***/ 88039: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2018 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getEnv = exports.clear = exports.GCPEnv = void 0; -const gcpMetadata = __nccwpck_require__(23046); -var GCPEnv; -(function (GCPEnv) { - GCPEnv["APP_ENGINE"] = "APP_ENGINE"; - GCPEnv["KUBERNETES_ENGINE"] = "KUBERNETES_ENGINE"; - GCPEnv["CLOUD_FUNCTIONS"] = "CLOUD_FUNCTIONS"; - GCPEnv["COMPUTE_ENGINE"] = "COMPUTE_ENGINE"; - GCPEnv["CLOUD_RUN"] = "CLOUD_RUN"; - GCPEnv["NONE"] = "NONE"; -})(GCPEnv = exports.GCPEnv || (exports.GCPEnv = {})); -let envPromise; -function clear() { - envPromise = undefined; -} -exports.clear = clear; -async function getEnv() { - if (envPromise) { - return envPromise; - } - envPromise = getEnvMemoized(); - return envPromise; -} -exports.getEnv = getEnv; -async function getEnvMemoized() { - let env = GCPEnv.NONE; - if (isAppEngine()) { - env = GCPEnv.APP_ENGINE; - } - else if (isCloudFunction()) { - env = GCPEnv.CLOUD_FUNCTIONS; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipClientDeleteRule model module. + * @module model/KmipClientDeleteRule + * @version 3.6.3 + */ +var KmipClientDeleteRule = /*#__PURE__*/function () { + /** + * Constructs a new KmipClientDeleteRule. + * @alias module:model/KmipClientDeleteRule + * @param path {String} Access path + */ + function KmipClientDeleteRule(path) { + _classCallCheck(this, KmipClientDeleteRule); + + KmipClientDeleteRule.initialize(this, path); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipClientDeleteRule, null, [{ + key: "initialize", + value: function initialize(obj, path) { + obj['path'] = path; } - else if (await isComputeEngine()) { - if (await isKubernetesEngine()) { - env = GCPEnv.KUBERNETES_ENGINE; + /** + * Constructs a KmipClientDeleteRule from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipClientDeleteRule} obj Optional instance to populate. + * @return {module:model/KmipClientDeleteRule} The populated KmipClientDeleteRule instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipClientDeleteRule(); + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - else if (isCloudRun()) { - env = GCPEnv.CLOUD_RUN; + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - else { - env = GCPEnv.COMPUTE_ENGINE; + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } - else { - env = GCPEnv.NONE; - } - return env; -} -function isAppEngine() { - return !!(process.env.GAE_SERVICE || process.env.GAE_MODULE_NAME); -} -function isCloudFunction() { - return !!(process.env.FUNCTION_NAME || process.env.FUNCTION_TARGET); -} + }]); + + return KmipClientDeleteRule; +}(); /** - * This check only verifies that the environment is running knative. - * This must be run *after* checking for Kubernetes, otherwise it will - * return a false positive. + * @member {String} client-id */ -function isCloudRun() { - return !!process.env.K_CONFIGURATION; -} -async function isKubernetesEngine() { - try { - await gcpMetadata.instance('attributes/cluster-name'); - return true; - } - catch (e) { - return false; - } -} -async function isComputeEngine() { - return gcpMetadata.isAvailable(); -} -//# sourceMappingURL=envDetect.js.map -/***/ }), -/***/ 88323: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +KmipClientDeleteRule.prototype['client-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -"use strict"; +KmipClientDeleteRule.prototype['json'] = false; +/** + * @member {String} name + */ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ExternalAccountClient = void 0; -const baseexternalclient_1 = __nccwpck_require__(142); -const identitypoolclient_1 = __nccwpck_require__(29960); -const awsclient_1 = __nccwpck_require__(81261); +KmipClientDeleteRule.prototype['name'] = undefined; /** - * Dummy class with no constructor. Developers are expected to use fromJSON. + * Access path + * @member {String} path */ -class ExternalAccountClient { - constructor() { - throw new Error('ExternalAccountClients should be initialized via: ' + - 'ExternalAccountClient.fromJSON(), ' + - 'directly via explicit constructors, eg. ' + - 'new AwsClient(options), new IdentityPoolClient(options) or via ' + - 'new GoogleAuth(options).getClient()'); - } - /** - * This static method will instantiate the - * corresponding type of external account credential depending on the - * underlying credential source. - * @param options The external account options object typically loaded - * from the external account JSON credential file. - * @param additionalOptions Optional additional behavior customization - * options. These currently customize expiration threshold time and - * whether to retry on 401/403 API request errors. - * @return A BaseExternalAccountClient instance or null if the options - * provided do not correspond to an external account credential. - */ - static fromJSON(options, additionalOptions) { - var _a; - if (options && options.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { - if ((_a = options.credential_source) === null || _a === void 0 ? void 0 : _a.environment_id) { - return new awsclient_1.AwsClient(options, additionalOptions); - } - else { - return new identitypoolclient_1.IdentityPoolClient(options, additionalOptions); - } - } - else { - return null; - } - } -} -exports.ExternalAccountClient = ExternalAccountClient; -//# sourceMappingURL=externalclient.js.map + +KmipClientDeleteRule.prototype['path'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipClientDeleteRule.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipClientDeleteRule.prototype['uid-token'] = undefined; +var _default = KmipClientDeleteRule; +exports["default"] = _default; /***/ }), -/***/ 95934: +/***/ 55778: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GoogleAuth = exports.CLOUD_SDK_CLIENT_ID = void 0; -const child_process_1 = __nccwpck_require__(35317); -const fs = __nccwpck_require__(79896); -const gcpMetadata = __nccwpck_require__(23046); -const os = __nccwpck_require__(70857); -const path = __nccwpck_require__(16928); -const crypto_1 = __nccwpck_require__(88851); -const transporters_1 = __nccwpck_require__(67633); -const computeclient_1 = __nccwpck_require__(20977); -const idtokenclient_1 = __nccwpck_require__(12718); -const envDetect_1 = __nccwpck_require__(60963); -const jwtclient_1 = __nccwpck_require__(75277); -const refreshclient_1 = __nccwpck_require__(99807); -const externalclient_1 = __nccwpck_require__(88323); -const baseexternalclient_1 = __nccwpck_require__(142); -exports.CLOUD_SDK_CLIENT_ID = '764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com'; -class GoogleAuth { - constructor(opts) { - /** - * Caches a value indicating whether the auth layer is running on Google - * Compute Engine. - * @private - */ - this.checkIsGCE = undefined; - // To save the contents of the JSON credential file - this.jsonContent = null; - this.cachedCredential = null; - opts = opts || {}; - this._cachedProjectId = opts.projectId || null; - this.cachedCredential = opts.authClient || null; - this.keyFilename = opts.keyFilename || opts.keyFile; - this.scopes = opts.scopes; - this.jsonContent = opts.credentials || null; - this.clientOptions = opts.clientOptions; - } - // Note: this properly is only public to satisify unit tests. - // https://github.com/Microsoft/TypeScript/issues/5228 - get isGCE() { - return this.checkIsGCE; - } - // GAPIC client libraries should always use self-signed JWTs. The following - // variables are set on the JWT client in order to indicate the type of library, - // and sign the JWT with the correct audience and scopes (if not supplied). - setGapicJWTValues(client) { - client.defaultServicePath = this.defaultServicePath; - client.useJWTAccessWithScope = this.useJWTAccessWithScope; - client.defaultScopes = this.defaultScopes; - } - getProjectId(callback) { - if (callback) { - this.getProjectIdAsync().then(r => callback(null, r), callback); - } - else { - return this.getProjectIdAsync(); - } - } - getProjectIdAsync() { - if (this._cachedProjectId) { - return Promise.resolve(this._cachedProjectId); - } - // In implicit case, supports three environments. In order of precedence, - // the implicit environments are: - // - GCLOUD_PROJECT or GOOGLE_CLOUD_PROJECT environment variable - // - GOOGLE_APPLICATION_CREDENTIALS JSON file - // - Cloud SDK: `gcloud config config-helper --format json` - // - GCE project ID from metadata server) - if (!this._getDefaultProjectIdPromise) { - // TODO: refactor the below code so that it doesn't mix and match - // promises and async/await. - this._getDefaultProjectIdPromise = new Promise( - // eslint-disable-next-line no-async-promise-executor - async (resolve, reject) => { - try { - const projectId = this.getProductionProjectId() || - (await this.getFileProjectId()) || - (await this.getDefaultServiceProjectId()) || - (await this.getGCEProjectId()) || - (await this.getExternalAccountClientProjectId()); - this._cachedProjectId = projectId; - if (!projectId) { - throw new Error('Unable to detect a Project Id in the current environment. \n' + - 'To learn more about authentication and Google APIs, visit: \n' + - 'https://cloud.google.com/docs/authentication/getting-started'); - } - resolve(projectId); - } - catch (e) { - reject(e); - } - }); - } - return this._getDefaultProjectIdPromise; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipClientSetRule model module. + * @module model/KmipClientSetRule + * @version 3.6.3 + */ +var KmipClientSetRule = /*#__PURE__*/function () { + /** + * Constructs a new KmipClientSetRule. + * @alias module:model/KmipClientSetRule + * @param capability {Array.} Access capabilities + * @param path {String} Access path + */ + function KmipClientSetRule(capability, path) { + _classCallCheck(this, KmipClientSetRule); + + KmipClientSetRule.initialize(this, capability, path); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipClientSetRule, null, [{ + key: "initialize", + value: function initialize(obj, capability, path) { + obj['capability'] = capability; + obj['path'] = path; } /** - * @returns Any scopes (user-specified or default scopes specified by the - * client library) that need to be set on the current Auth client. + * Constructs a KmipClientSetRule from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipClientSetRule} obj Optional instance to populate. + * @return {module:model/KmipClientSetRule} The populated KmipClientSetRule instance. */ - getAnyScopes() { - return this.scopes || this.defaultScopes; - } - getApplicationDefault(optionsOrCallback = {}, callback) { - let options; - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - } - else { - options = optionsOrCallback; - } - if (callback) { - this.getApplicationDefaultAsync(options).then(r => callback(null, r.credential, r.projectId), callback); - } - else { - return this.getApplicationDefaultAsync(options); - } - } - async getApplicationDefaultAsync(options = {}) { - // If we've already got a cached credential, just return it. - if (this.cachedCredential) { - return { - credential: this.cachedCredential, - projectId: await this.getProjectIdAsync(), - }; - } - let credential; - let projectId; - // Check for the existence of a local environment variable pointing to the - // location of the credential file. This is typically used in local - // developer scenarios. - credential = - await this._tryGetApplicationCredentialsFromEnvironmentVariable(options); - if (credential) { - if (credential instanceof jwtclient_1.JWT) { - credential.scopes = this.scopes; - } - else if (credential instanceof baseexternalclient_1.BaseExternalAccountClient) { - credential.scopes = this.getAnyScopes(); - } - this.cachedCredential = credential; - projectId = await this.getProjectId(); - return { credential, projectId }; - } - // Look in the well-known credential file location. - credential = await this._tryGetApplicationCredentialsFromWellKnownFile(options); - if (credential) { - if (credential instanceof jwtclient_1.JWT) { - credential.scopes = this.scopes; - } - else if (credential instanceof baseexternalclient_1.BaseExternalAccountClient) { - credential.scopes = this.getAnyScopes(); - } - this.cachedCredential = credential; - projectId = await this.getProjectId(); - return { credential, projectId }; - } - // Determine if we're running on GCE. - let isGCE; - try { - isGCE = await this._checkIsGCE(); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipClientSetRule(); + + if (data.hasOwnProperty('capability')) { + obj['capability'] = _ApiClient["default"].convertToType(data['capability'], ['String']); } - catch (e) { - if (e instanceof Error) { - e.message = `Unexpected error determining execution environment: ${e.message}`; - } - throw e; + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); } - if (!isGCE) { - // We failed to find the default credentials. Bail out with an error. - throw new Error('Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.'); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - // For GCE, just return a default ComputeClient. It will take care of - // the rest. - options.scopes = this.getAnyScopes(); - this.cachedCredential = new computeclient_1.Compute(options); - projectId = await this.getProjectId(); - return { projectId, credential: this.cachedCredential }; - } - /** - * Determines whether the auth layer is running on Google Compute Engine. - * @returns A promise that resolves with the boolean. - * @api private - */ - async _checkIsGCE() { - if (this.checkIsGCE === undefined) { - this.checkIsGCE = await gcpMetadata.isAvailable(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - return this.checkIsGCE; - } - /** - * Attempts to load default credentials from the environment variable path.. - * @returns Promise that resolves with the OAuth2Client or null. - * @api private - */ - async _tryGetApplicationCredentialsFromEnvironmentVariable(options) { - const credentialsPath = process.env['GOOGLE_APPLICATION_CREDENTIALS'] || - process.env['google_application_credentials']; - if (!credentialsPath || credentialsPath.length === 0) { - return null; + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); } - try { - return this._getApplicationCredentialsFromFilePath(credentialsPath, options); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - catch (e) { - if (e instanceof Error) { - e.message = `Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${e.message}`; - } - throw e; + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + } + + return obj; } - /** - * Attempts to load default credentials from a well-known file location - * @return Promise that resolves with the OAuth2Client or null. - * @api private - */ - async _tryGetApplicationCredentialsFromWellKnownFile(options) { - // First, figure out the location of the file, depending upon the OS type. - let location = null; - if (this._isWindows()) { - // Windows - location = process.env['APPDATA']; - } - else { - // Linux or Mac - const home = process.env['HOME']; - if (home) { - location = path.join(home, '.config'); - } - } - // If we found the root path, expand it. - if (location) { - location = path.join(location, 'gcloud', 'application_default_credentials.json'); - if (!fs.existsSync(location)) { - location = null; - } - } - // The file does not exist. - if (!location) { - return null; - } - // The file seems to exist. Try to use it. - const client = await this._getApplicationCredentialsFromFilePath(location, options); - return client; + }]); + + return KmipClientSetRule; +}(); +/** + * Access capabilities + * @member {Array.} capability + */ + + +KmipClientSetRule.prototype['capability'] = undefined; +/** + * @member {String} client-id + */ + +KmipClientSetRule.prototype['client-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +KmipClientSetRule.prototype['json'] = false; +/** + * @member {String} name + */ + +KmipClientSetRule.prototype['name'] = undefined; +/** + * Access path + * @member {String} path + */ + +KmipClientSetRule.prototype['path'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipClientSetRule.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipClientSetRule.prototype['uid-token'] = undefined; +var _default = KmipClientSetRule; +exports["default"] = _default; + +/***/ }), + +/***/ 59390: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipCreateClient model module. + * @module model/KmipCreateClient + * @version 3.6.3 + */ +var KmipCreateClient = /*#__PURE__*/function () { + /** + * Constructs a new KmipCreateClient. + * @alias module:model/KmipCreateClient + * @param name {String} Client name + */ + function KmipCreateClient(name) { + _classCallCheck(this, KmipCreateClient); + + KmipCreateClient.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipCreateClient, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Attempts to load default credentials from a file at the given path.. - * @param filePath The path to the file to read. - * @returns Promise that resolves with the OAuth2Client - * @api private + * Constructs a KmipCreateClient from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipCreateClient} obj Optional instance to populate. + * @return {module:model/KmipCreateClient} The populated KmipCreateClient instance. */ - async _getApplicationCredentialsFromFilePath(filePath, options = {}) { - // Make sure the path looks like a string. - if (!filePath || filePath.length === 0) { - throw new Error('The file path is invalid.'); - } - // Make sure there is a file at the path. lstatSync will throw if there is - // nothing there. - try { - // Resolve path to actual file in case of symlink. Expect a thrown error - // if not resolvable. - filePath = fs.realpathSync(filePath); - if (!fs.lstatSync(filePath).isFile()) { - throw new Error(); - } + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipCreateClient(); + + if (data.hasOwnProperty('activate-keys-on-creation')) { + obj['activate-keys-on-creation'] = _ApiClient["default"].convertToType(data['activate-keys-on-creation'], 'String'); } - catch (err) { - if (err instanceof Error) { - err.message = `The file at ${filePath} does not exist, or it is not a file. ${err.message}`; - } - throw err; + + if (data.hasOwnProperty('certificate-ttl')) { + obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); } - // Now open a read stream on the file, and parse it. - const readStream = fs.createReadStream(filePath); - return this.fromStream(readStream, options); - } - /** - * Create a credentials instance using the given input options. - * @param json The input object. - * @param options The JWT or UserRefresh options for the client - * @returns JWT or UserRefresh Client with data - */ - fromJSON(json, options) { - let client; - if (!json) { - throw new Error('Must pass in a JSON object containing the Google auth settings.'); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - options = options || {}; - if (json.type === 'authorized_user') { - client = new refreshclient_1.UserRefreshClient(options); - client.fromJSON(json); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - else if (json.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { - client = externalclient_1.ExternalAccountClient.fromJSON(json, options); - client.scopes = this.getAnyScopes(); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - else { - options.scopes = this.scopes; - client = new jwtclient_1.JWT(options); - this.setGapicJWTValues(client); - client.fromJSON(json); + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - return client; + } + + return obj; } + }]); + + return KmipCreateClient; +}(); +/** + * If set to 'true', newly created keys on the client will be set to an 'active' state + * @member {String} activate-keys-on-creation + * @default 'false' + */ + + +KmipCreateClient.prototype['activate-keys-on-creation'] = 'false'; +/** + * Client certificate TTL in days + * @member {Number} certificate-ttl + * @default 90 + */ + +KmipCreateClient.prototype['certificate-ttl'] = 90; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +KmipCreateClient.prototype['json'] = false; +/** + * Client name + * @member {String} name + */ + +KmipCreateClient.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipCreateClient.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipCreateClient.prototype['uid-token'] = undefined; +var _default = KmipCreateClient; +exports["default"] = _default; + +/***/ }), + +/***/ 39768: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipCreateClientOutput model module. + * @module model/KmipCreateClientOutput + * @version 3.6.3 + */ +var KmipCreateClientOutput = /*#__PURE__*/function () { + /** + * Constructs a new KmipCreateClientOutput. + * @alias module:model/KmipCreateClientOutput + */ + function KmipCreateClientOutput() { + _classCallCheck(this, KmipCreateClientOutput); + + KmipCreateClientOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipCreateClientOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Return a JWT or UserRefreshClient from JavaScript object, caching both the - * object used to instantiate and the client. - * @param json The input object. - * @param options The JWT or UserRefresh options for the client - * @returns JWT or UserRefresh Client with data + * Constructs a KmipCreateClientOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipCreateClientOutput} obj Optional instance to populate. + * @return {module:model/KmipCreateClientOutput} The populated KmipCreateClientOutput instance. */ - _cacheClientFromJSON(json, options) { - let client; - // create either a UserRefreshClient or JWT client. - options = options || {}; - if (json.type === 'authorized_user') { - client = new refreshclient_1.UserRefreshClient(options); - client.fromJSON(json); - } - else if (json.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { - client = externalclient_1.ExternalAccountClient.fromJSON(json, options); - client.scopes = this.getAnyScopes(); - } - else { - options.scopes = this.scopes; - client = new jwtclient_1.JWT(options); - this.setGapicJWTValues(client); - client.fromJSON(json); - } - // cache both raw data used to instantiate client and client itself. - this.jsonContent = json; - this.cachedCredential = client; - return client; - } - fromStream(inputStream, optionsOrCallback = {}, callback) { - let options = {}; - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - } - else { - options = optionsOrCallback; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipCreateClientOutput(); + + if (data.hasOwnProperty('certificate')) { + obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); } - if (callback) { - this.fromStreamAsync(inputStream, options).then(r => callback(null, r), callback); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); } - else { - return this.fromStreamAsync(inputStream, options); + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } + } + + return obj; } - fromStreamAsync(inputStream, options) { - return new Promise((resolve, reject) => { - if (!inputStream) { - throw new Error('Must pass in a stream containing the Google auth settings.'); - } - let s = ''; - inputStream - .setEncoding('utf8') - .on('error', reject) - .on('data', chunk => (s += chunk)) - .on('end', () => { - try { - try { - const data = JSON.parse(s); - const r = this._cacheClientFromJSON(data, options); - return resolve(r); - } - catch (err) { - // If we failed parsing this.keyFileName, assume that it - // is a PEM or p12 certificate: - if (!this.keyFilename) - throw err; - const client = new jwtclient_1.JWT({ - ...this.clientOptions, - keyFile: this.keyFilename, - }); - this.cachedCredential = client; - this.setGapicJWTValues(client); - return resolve(client); - } - } - catch (err) { - return reject(err); - } - }); - }); - } - /** - * Create a credentials instance using the given API key string. - * @param apiKey The API key string - * @param options An optional options object. - * @returns A JWT loaded from the key - */ - fromAPIKey(apiKey, options) { - options = options || {}; - const client = new jwtclient_1.JWT(options); - client.fromAPIKey(apiKey); - return client; - } + }]); + + return KmipCreateClientOutput; +}(); +/** + * @member {String} certificate + */ + + +KmipCreateClientOutput.prototype['certificate'] = undefined; +/** + * @member {String} id + */ + +KmipCreateClientOutput.prototype['id'] = undefined; +/** + * @member {String} key + */ + +KmipCreateClientOutput.prototype['key'] = undefined; +var _default = KmipCreateClientOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 14353: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipDeleteClient model module. + * @module model/KmipDeleteClient + * @version 3.6.3 + */ +var KmipDeleteClient = /*#__PURE__*/function () { + /** + * Constructs a new KmipDeleteClient. + * @alias module:model/KmipDeleteClient + */ + function KmipDeleteClient() { + _classCallCheck(this, KmipDeleteClient); + + KmipDeleteClient.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipDeleteClient, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Determines whether the current operating system is Windows. - * @api private + * Constructs a KmipDeleteClient from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipDeleteClient} obj Optional instance to populate. + * @return {module:model/KmipDeleteClient} The populated KmipDeleteClient instance. */ - _isWindows() { - const sys = os.platform(); - if (sys && sys.length >= 3) { - if (sys.substring(0, 3).toLowerCase() === 'win') { - return true; - } + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipDeleteClient(); + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); } - return false; - } - /** - * Run the Google Cloud SDK command that prints the default project ID - */ - async getDefaultServiceProjectId() { - return new Promise(resolve => { - child_process_1.exec('gcloud config config-helper --format json', (err, stdout) => { - if (!err && stdout) { - try { - const projectId = JSON.parse(stdout).configuration.properties.core.project; - resolve(projectId); - return; - } - catch (e) { - // ignore errors - } - } - resolve(null); - }); - }); - } - /** - * Loads the project id from environment variables. - * @api private - */ - getProductionProjectId() { - return (process.env['GCLOUD_PROJECT'] || - process.env['GOOGLE_CLOUD_PROJECT'] || - process.env['gcloud_project'] || - process.env['google_cloud_project']); - } - /** - * Loads the project id from the GOOGLE_APPLICATION_CREDENTIALS json file. - * @api private - */ - async getFileProjectId() { - if (this.cachedCredential) { - // Try to read the project ID from the cached credentials file - return this.cachedCredential.projectId; + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - // Ensure the projectId is loaded from the keyFile if available. - if (this.keyFilename) { - const creds = await this.getClient(); - if (creds && creds.projectId) { - return creds.projectId; - } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - // Try to load a credentials file and read its project ID - const r = await this._tryGetApplicationCredentialsFromEnvironmentVariable(); - if (r) { - return r.projectId; + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - else { - return null; + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + } + + return obj; } + }]); + + return KmipDeleteClient; +}(); +/** + * @member {String} client-id + */ + + +KmipDeleteClient.prototype['client-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +KmipDeleteClient.prototype['json'] = false; +/** + * @member {String} name + */ + +KmipDeleteClient.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipDeleteClient.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipDeleteClient.prototype['uid-token'] = undefined; +var _default = KmipDeleteClient; +exports["default"] = _default; + +/***/ }), + +/***/ 23205: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipDeleteServer model module. + * @module model/KmipDeleteServer + * @version 3.6.3 + */ +var KmipDeleteServer = /*#__PURE__*/function () { + /** + * Constructs a new KmipDeleteServer. + * kmipDeleteServer is a command that the kmip server (allowed only if it has no clients nor associated items) + * @alias module:model/KmipDeleteServer + */ + function KmipDeleteServer() { + _classCallCheck(this, KmipDeleteServer); + + KmipDeleteServer.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipDeleteServer, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Gets the project ID from external account client if available. + * Constructs a KmipDeleteServer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipDeleteServer} obj Optional instance to populate. + * @return {module:model/KmipDeleteServer} The populated KmipDeleteServer instance. */ - async getExternalAccountClientProjectId() { - if (!this.jsonContent || this.jsonContent.type !== baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { - return null; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipDeleteServer(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - const creds = await this.getClient(); - // Do not suppress the underlying error, as the error could contain helpful - // information for debugging and fixing. This is especially true for - // external account creds as in order to get the project ID, the following - // operations have to succeed: - // 1. Valid credentials file should be supplied. - // 2. Ability to retrieve access tokens from STS token exchange API. - // 3. Ability to exchange for service account impersonated credentials (if - // enabled). - // 4. Ability to get project info using the access token from step 2 or 3. - // Without surfacing the error, it is harder for developers to determine - // which step went wrong. - return await creds.getProjectId(); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } + }]); + + return KmipDeleteServer; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +KmipDeleteServer.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipDeleteServer.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipDeleteServer.prototype['uid-token'] = undefined; +var _default = KmipDeleteServer; +exports["default"] = _default; + +/***/ }), + +/***/ 58003: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipDescribeClient model module. + * @module model/KmipDescribeClient + * @version 3.6.3 + */ +var KmipDescribeClient = /*#__PURE__*/function () { + /** + * Constructs a new KmipDescribeClient. + * @alias module:model/KmipDescribeClient + */ + function KmipDescribeClient() { + _classCallCheck(this, KmipDescribeClient); + + KmipDescribeClient.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipDescribeClient, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Gets the Compute Engine project ID if it can be inferred. + * Constructs a KmipDescribeClient from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipDescribeClient} obj Optional instance to populate. + * @return {module:model/KmipDescribeClient} The populated KmipDescribeClient instance. */ - async getGCEProjectId() { - try { - const r = await gcpMetadata.project('project-id'); - return r; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipDescribeClient(); + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); } - catch (e) { - // Ignore any errors - return null; + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - } - getCredentials(callback) { - if (callback) { - this.getCredentialsAsync().then(r => callback(null, r), callback); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - else { - return this.getCredentialsAsync(); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - } - async getCredentialsAsync() { - await this.getClient(); - if (this.jsonContent) { - const credential = { - client_email: this.jsonContent.client_email, - private_key: this.jsonContent.private_key, - }; - return credential; - } - const isGCE = await this._checkIsGCE(); - if (!isGCE) { - throw new Error('Unknown error.'); - } - // For GCE, return the service account details from the metadata server - // NOTE: The trailing '/' at the end of service-accounts/ is very important! - // The GCF metadata server doesn't respect querystring params if this / is - // not included. - const data = await gcpMetadata.instance({ - property: 'service-accounts/', - params: { recursive: 'true' }, - }); - if (!data || !data.default || !data.default.email) { - throw new Error('Failure from metadata server.'); + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - return { client_email: data.default.email }; + } + + return obj; } + }]); + + return KmipDescribeClient; +}(); +/** + * @member {String} client-id + */ + + +KmipDescribeClient.prototype['client-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +KmipDescribeClient.prototype['json'] = false; +/** + * @member {String} name + */ + +KmipDescribeClient.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipDescribeClient.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipDescribeClient.prototype['uid-token'] = undefined; +var _default = KmipDescribeClient; +exports["default"] = _default; + +/***/ }), + +/***/ 63487: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipDescribeServer model module. + * @module model/KmipDescribeServer + * @version 3.6.3 + */ +var KmipDescribeServer = /*#__PURE__*/function () { + /** + * Constructs a new KmipDescribeServer. + * @alias module:model/KmipDescribeServer + */ + function KmipDescribeServer() { + _classCallCheck(this, KmipDescribeServer); + + KmipDescribeServer.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipDescribeServer, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Automatically obtain a client based on the provided configuration. If no - * options were passed, use Application Default Credentials. + * Constructs a KmipDescribeServer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipDescribeServer} obj Optional instance to populate. + * @return {module:model/KmipDescribeServer} The populated KmipDescribeServer instance. */ - async getClient(options) { - if (options) { - throw new Error('Passing options to getClient is forbidden in v5.0.0. Use new GoogleAuth(opts) instead.'); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipDescribeServer(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (!this.cachedCredential) { - if (this.jsonContent) { - this._cacheClientFromJSON(this.jsonContent, this.clientOptions); - } - else if (this.keyFilename) { - const filePath = path.resolve(this.keyFilename); - const stream = fs.createReadStream(filePath); - await this.fromStreamAsync(stream, this.clientOptions); - } - else { - await this.getApplicationDefaultAsync(this.clientOptions); - } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - return this.cachedCredential; - } - /** - * Creates a client which will fetch an ID token for authorization. - * @param targetAudience the audience for the fetched ID token. - * @returns IdTokenClient for making HTTP calls authenticated with ID tokens. - */ - async getIdTokenClient(targetAudience) { - const client = await this.getClient(); - if (!('fetchIdToken' in client)) { - throw new Error('Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.'); + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - return new idtokenclient_1.IdTokenClient({ targetAudience, idTokenProvider: client }); - } - /** - * Automatically obtain application default credentials, and return - * an access token for making requests. - */ - async getAccessToken() { - const client = await this.getClient(); - return (await client.getAccessToken()).token; - } - /** - * Obtain the HTTP headers that will provide authorization for a given - * request. - */ - async getRequestHeaders(url) { - const client = await this.getClient(); - return client.getRequestHeaders(url); - } - /** - * Obtain credentials for a request, then attach the appropriate headers to - * the request options. - * @param opts Axios or Request options on which to attach the headers - */ - async authorizeRequest(opts) { - opts = opts || {}; - const url = opts.url || opts.uri; - const client = await this.getClient(); - const headers = await client.getRequestHeaders(url); - opts.headers = Object.assign(opts.headers || {}, headers); - return opts; - } - /** - * Automatically obtain application default credentials, and make an - * HTTP request using the given options. - * @param opts Axios request options for the HTTP request. - */ - // eslint-disable-next-line @typescript-eslint/no-explicit-any - async request(opts) { - const client = await this.getClient(); - return client.request(opts); - } - /** - * Determine the compute environment in which the code is running. - */ - getEnv() { - return envDetect_1.getEnv(); + } + + return obj; } + }]); + + return KmipDescribeServer; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +KmipDescribeServer.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipDescribeServer.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipDescribeServer.prototype['uid-token'] = undefined; +var _default = KmipDescribeServer; +exports["default"] = _default; + +/***/ }), + +/***/ 28038: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipDescribeServerOutput model module. + * @module model/KmipDescribeServerOutput + * @version 3.6.3 + */ +var KmipDescribeServerOutput = /*#__PURE__*/function () { + /** + * Constructs a new KmipDescribeServerOutput. + * @alias module:model/KmipDescribeServerOutput + */ + function KmipDescribeServerOutput() { + _classCallCheck(this, KmipDescribeServerOutput); + + KmipDescribeServerOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipDescribeServerOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Sign the given data with the current private key, or go out - * to the IAM API to sign it. - * @param data The data to be signed. + * Constructs a KmipDescribeServerOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipDescribeServerOutput} obj Optional instance to populate. + * @return {module:model/KmipDescribeServerOutput} The populated KmipDescribeServerOutput instance. */ - async sign(data) { - const client = await this.getClient(); - const crypto = crypto_1.createCrypto(); - if (client instanceof jwtclient_1.JWT && client.key) { - const sign = await crypto.sign(client.key, data); - return sign; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipDescribeServerOutput(); + + if (data.hasOwnProperty('active')) { + obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean'); } - // signBlob requires a service account email and the underlying - // access token to have iam.serviceAccounts.signBlob permission - // on the specified resource name. - // The "Service Account Token Creator" role should cover this. - // As a result external account credentials can support this - // operation when service account impersonation is enabled. - if (client instanceof baseexternalclient_1.BaseExternalAccountClient && - client.getServiceAccountEmail()) { - return this.signBlob(crypto, client.getServiceAccountEmail(), data); + + if (data.hasOwnProperty('ca_cert')) { + obj['ca_cert'] = _ApiClient["default"].convertToType(data['ca_cert'], ['Number']); } - const projectId = await this.getProjectId(); - if (!projectId) { - throw new Error('Cannot sign data without a project ID.'); + + if (data.hasOwnProperty('certificate_issue_date')) { + obj['certificate_issue_date'] = _ApiClient["default"].convertToType(data['certificate_issue_date'], 'Date'); } - const creds = await this.getCredentials(); - if (!creds.client_email) { - throw new Error('Cannot sign data without `client_email`.'); + + if (data.hasOwnProperty('certificate_ttl_in_seconds')) { + obj['certificate_ttl_in_seconds'] = _ApiClient["default"].convertToType(data['certificate_ttl_in_seconds'], 'Number'); } - return this.signBlob(crypto, creds.client_email, data); - } - async signBlob(crypto, emailOrUniqueId, data) { - const url = 'https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/' + - `${emailOrUniqueId}:signBlob`; - const res = await this.request({ - method: 'POST', - url, - data: { - payload: crypto.encodeBase64StringUtf8(data), - }, - }); - return res.data.signedBlob; + + if (data.hasOwnProperty('hostname')) { + obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); + } + + if (data.hasOwnProperty('root')) { + obj['root'] = _ApiClient["default"].convertToType(data['root'], 'String'); + } + } + + return obj; } -} -exports.GoogleAuth = GoogleAuth; + }]); + + return KmipDescribeServerOutput; +}(); /** - * Export DefaultTransporter as a static property of the class. + * @member {Boolean} active */ -GoogleAuth.DefaultTransporter = transporters_1.DefaultTransporter; -//# sourceMappingURL=googleauth.js.map + + +KmipDescribeServerOutput.prototype['active'] = undefined; +/** + * @member {Array.} ca_cert + */ + +KmipDescribeServerOutput.prototype['ca_cert'] = undefined; +/** + * @member {Date} certificate_issue_date + */ + +KmipDescribeServerOutput.prototype['certificate_issue_date'] = undefined; +/** + * @member {Number} certificate_ttl_in_seconds + */ + +KmipDescribeServerOutput.prototype['certificate_ttl_in_seconds'] = undefined; +/** + * @member {String} hostname + */ + +KmipDescribeServerOutput.prototype['hostname'] = undefined; +/** + * @member {String} root + */ + +KmipDescribeServerOutput.prototype['root'] = undefined; +var _default = KmipDescribeServerOutput; +exports["default"] = _default; /***/ }), -/***/ 89390: -/***/ ((__unused_webpack_module, exports) => { +/***/ 37829: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2014 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.IAMAuth = void 0; -class IAMAuth { - /** - * IAM credentials. - * - * @param selector the iam authority selector - * @param token the token - * @constructor - */ - constructor(selector, token) { - this.selector = selector; - this.token = token; - this.selector = selector; - this.token = token; - } + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipListClients model module. + * @module model/KmipListClients + * @version 3.6.3 + */ +var KmipListClients = /*#__PURE__*/function () { + /** + * Constructs a new KmipListClients. + * @alias module:model/KmipListClients + */ + function KmipListClients() { + _classCallCheck(this, KmipListClients); + + KmipListClients.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipListClients, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Acquire the HTTP headers required to make an authenticated request. + * Constructs a KmipListClients from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipListClients} obj Optional instance to populate. + * @return {module:model/KmipListClients} The populated KmipListClients instance. */ - getRequestHeaders() { - return { - 'x-goog-iam-authority-selector': this.selector, - 'x-goog-iam-authorization-token': this.token, - }; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipListClients(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } -} -exports.IAMAuth = IAMAuth; -//# sourceMappingURL=iam.js.map + }]); + + return KmipListClients; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +KmipListClients.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipListClients.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipListClients.prototype['uid-token'] = undefined; +var _default = KmipListClients; +exports["default"] = _default; /***/ }), -/***/ 29960: +/***/ 61411: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var _a, _b, _c; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.IdentityPoolClient = void 0; -const fs = __nccwpck_require__(79896); -const util_1 = __nccwpck_require__(39023); -const baseexternalclient_1 = __nccwpck_require__(142); -// fs.readfile is undefined in browser karma tests causing -// `npm run browser-test` to fail as test.oauth2.ts imports this file via -// src/index.ts. -// Fallback to void function to avoid promisify throwing a TypeError. -const readFile = util_1.promisify((_a = fs.readFile) !== null && _a !== void 0 ? _a : (() => { })); -const realpath = util_1.promisify((_b = fs.realpath) !== null && _b !== void 0 ? _b : (() => { })); -const lstat = util_1.promisify((_c = fs.lstat) !== null && _c !== void 0 ? _c : (() => { })); + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Defines the Url-sourced and file-sourced external account clients mainly - * used for K8s and Azure workloads. + * The KmipMoveServer model module. + * @module model/KmipMoveServer + * @version 3.6.3 */ -class IdentityPoolClient extends baseexternalclient_1.BaseExternalAccountClient { +var KmipMoveServer = /*#__PURE__*/function () { + /** + * Constructs a new KmipMoveServer. + * kmipMoveServer is a command that Moves the root location of the kmip server and all associated items to a new root location + * @alias module:model/KmipMoveServer + * @param newRoot {String} New root for the kmip server + */ + function KmipMoveServer(newRoot) { + _classCallCheck(this, KmipMoveServer); + + KmipMoveServer.initialize(this, newRoot); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipMoveServer, null, [{ + key: "initialize", + value: function initialize(obj, newRoot) { + obj['new-root'] = newRoot; + } /** - * Instantiate an IdentityPoolClient instance using the provided JSON - * object loaded from an external account credentials file. - * An error is thrown if the credential is not a valid file-sourced or - * url-sourced credential or a workforce pool user project is provided - * with a non workforce audience. - * @param options The external account options object typically loaded - * from the external account JSON credential file. - * @param additionalOptions Optional additional behavior customization - * options. These currently customize expiration threshold time and - * whether to retry on 401/403 API request errors. + * Constructs a KmipMoveServer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipMoveServer} obj Optional instance to populate. + * @return {module:model/KmipMoveServer} The populated KmipMoveServer instance. */ - constructor(options, additionalOptions) { - var _a, _b; - super(options, additionalOptions); - this.file = options.credential_source.file; - this.url = options.credential_source.url; - this.headers = options.credential_source.headers; - if (!this.file && !this.url) { - throw new Error('No valid Identity Pool "credential_source" provided'); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipMoveServer(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('new-root')) { + obj['new-root'] = _ApiClient["default"].convertToType(data['new-root'], 'String'); } - // Text is the default format type. - this.formatType = ((_a = options.credential_source.format) === null || _a === void 0 ? void 0 : _a.type) || 'text'; - this.formatSubjectTokenFieldName = (_b = options.credential_source.format) === null || _b === void 0 ? void 0 : _b.subject_token_field_name; - if (this.formatType !== 'json' && this.formatType !== 'text') { - throw new Error(`Invalid credential_source format "${this.formatType}"`); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (this.formatType === 'json' && !this.formatSubjectTokenFieldName) { - throw new Error('Missing subject_token_field_name for JSON credential_source format'); + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + } + + return obj; } + }]); + + return KmipMoveServer; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +KmipMoveServer.prototype['json'] = false; +/** + * New root for the kmip server + * @member {String} new-root + */ + +KmipMoveServer.prototype['new-root'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipMoveServer.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipMoveServer.prototype['uid-token'] = undefined; +var _default = KmipMoveServer; +exports["default"] = _default; + +/***/ }), + +/***/ 23954: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipMoveServerOutput model module. + * @module model/KmipMoveServerOutput + * @version 3.6.3 + */ +var KmipMoveServerOutput = /*#__PURE__*/function () { + /** + * Constructs a new KmipMoveServerOutput. + * @alias module:model/KmipMoveServerOutput + */ + function KmipMoveServerOutput() { + _classCallCheck(this, KmipMoveServerOutput); + + KmipMoveServerOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipMoveServerOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Triggered when a external subject token is needed to be exchanged for a GCP - * access token via GCP STS endpoint. - * This uses the `options.credential_source` object to figure out how - * to retrieve the token using the current environment. In this case, - * this either retrieves the local credential from a file location (k8s - * workload) or by sending a GET request to a local metadata server (Azure - * workloads). - * @return A promise that resolves with the external subject token. + * Constructs a KmipMoveServerOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipMoveServerOutput} obj Optional instance to populate. + * @return {module:model/KmipMoveServerOutput} The populated KmipMoveServerOutput instance. */ - async retrieveSubjectToken() { - if (this.file) { - return await this.getTokenFromFile(this.file, this.formatType, this.formatSubjectTokenFieldName); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipMoveServerOutput(); + + if (data.hasOwnProperty('new_root')) { + obj['new_root'] = _ApiClient["default"].convertToType(data['new_root'], 'String'); + } + + if (data.hasOwnProperty('old_root')) { + obj['old_root'] = _ApiClient["default"].convertToType(data['old_root'], 'String'); } - return await this.getTokenFromUrl(this.url, this.formatType, this.formatSubjectTokenFieldName, this.headers); + } + + return obj; } + }]); + + return KmipMoveServerOutput; +}(); +/** + * @member {String} new_root + */ + + +KmipMoveServerOutput.prototype['new_root'] = undefined; +/** + * @member {String} old_root + */ + +KmipMoveServerOutput.prototype['old_root'] = undefined; +var _default = KmipMoveServerOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 67724: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipRenewClientCertificate model module. + * @module model/KmipRenewClientCertificate + * @version 3.6.3 + */ +var KmipRenewClientCertificate = /*#__PURE__*/function () { + /** + * Constructs a new KmipRenewClientCertificate. + * @alias module:model/KmipRenewClientCertificate + */ + function KmipRenewClientCertificate() { + _classCallCheck(this, KmipRenewClientCertificate); + + KmipRenewClientCertificate.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipRenewClientCertificate, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Looks up the external subject token in the file path provided and - * resolves with that token. - * @param file The file path where the external credential is located. - * @param formatType The token file or URL response type (JSON or text). - * @param formatSubjectTokenFieldName For JSON response types, this is the - * subject_token field name. For Azure, this is access_token. For text - * response types, this is ignored. - * @return A promise that resolves with the external subject token. + * Constructs a KmipRenewClientCertificate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipRenewClientCertificate} obj Optional instance to populate. + * @return {module:model/KmipRenewClientCertificate} The populated KmipRenewClientCertificate instance. */ - async getTokenFromFile(filePath, formatType, formatSubjectTokenFieldName) { - // Make sure there is a file at the path. lstatSync will throw if there is - // nothing there. - try { - // Resolve path to actual file in case of symlink. Expect a thrown error - // if not resolvable. - filePath = await realpath(filePath); - if (!(await lstat(filePath)).isFile()) { - throw new Error(); - } + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipRenewClientCertificate(); + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); } - catch (err) { - err.message = `The file at ${filePath} does not exist, or it is not a file. ${err.message}`; - throw err; + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - let subjectToken; - const rawText = await readFile(filePath, { encoding: 'utf8' }); - if (formatType === 'text') { - subjectToken = rawText; + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - else if (formatType === 'json' && formatSubjectTokenFieldName) { - const json = JSON.parse(rawText); - subjectToken = json[formatSubjectTokenFieldName]; + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (!subjectToken) { - throw new Error('Unable to parse the subject_token from the credential_source file'); + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - return subjectToken; + } + + return obj; } + }]); + + return KmipRenewClientCertificate; +}(); +/** + * @member {String} client-id + */ + + +KmipRenewClientCertificate.prototype['client-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +KmipRenewClientCertificate.prototype['json'] = false; +/** + * @member {String} name + */ + +KmipRenewClientCertificate.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipRenewClientCertificate.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipRenewClientCertificate.prototype['uid-token'] = undefined; +var _default = KmipRenewClientCertificate; +exports["default"] = _default; + +/***/ }), + +/***/ 52557: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipRenewClientCertificateOutput model module. + * @module model/KmipRenewClientCertificateOutput + * @version 3.6.3 + */ +var KmipRenewClientCertificateOutput = /*#__PURE__*/function () { + /** + * Constructs a new KmipRenewClientCertificateOutput. + * @alias module:model/KmipRenewClientCertificateOutput + */ + function KmipRenewClientCertificateOutput() { + _classCallCheck(this, KmipRenewClientCertificateOutput); + + KmipRenewClientCertificateOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipRenewClientCertificateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Sends a GET request to the URL provided and resolves with the returned - * external subject token. - * @param url The URL to call to retrieve the subject token. This is typically - * a local metadata server. - * @param formatType The token file or URL response type (JSON or text). - * @param formatSubjectTokenFieldName For JSON response types, this is the - * subject_token field name. For Azure, this is access_token. For text - * response types, this is ignored. - * @param headers The optional additional headers to send with the request to - * the metadata server url. - * @return A promise that resolves with the external subject token. + * Constructs a KmipRenewClientCertificateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipRenewClientCertificateOutput} obj Optional instance to populate. + * @return {module:model/KmipRenewClientCertificateOutput} The populated KmipRenewClientCertificateOutput instance. */ - async getTokenFromUrl(url, formatType, formatSubjectTokenFieldName, headers) { - const opts = { - url, - method: 'GET', - headers, - responseType: formatType, - }; - let subjectToken; - if (formatType === 'text') { - const response = await this.transporter.request(opts); - subjectToken = response.data; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipRenewClientCertificateOutput(); + + if (data.hasOwnProperty('certificate')) { + obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); } - else if (formatType === 'json' && formatSubjectTokenFieldName) { - const response = await this.transporter.request(opts); - subjectToken = response.data[formatSubjectTokenFieldName]; + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); } - if (!subjectToken) { - throw new Error('Unable to parse the subject_token from the credential_source URL'); + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - return subjectToken; + } + + return obj; } -} -exports.IdentityPoolClient = IdentityPoolClient; -//# sourceMappingURL=identitypoolclient.js.map + }]); + + return KmipRenewClientCertificateOutput; +}(); +/** + * @member {String} certificate + */ + + +KmipRenewClientCertificateOutput.prototype['certificate'] = undefined; +/** + * @member {String} id + */ + +KmipRenewClientCertificateOutput.prototype['id'] = undefined; +/** + * @member {String} key + */ + +KmipRenewClientCertificateOutput.prototype['key'] = undefined; +var _default = KmipRenewClientCertificateOutput; +exports["default"] = _default; /***/ }), -/***/ 12718: +/***/ 97536: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.IdTokenClient = void 0; -const oauth2client_1 = __nccwpck_require__(32472); -class IdTokenClient extends oauth2client_1.OAuth2Client { + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipRenewServerCertificate model module. + * @module model/KmipRenewServerCertificate + * @version 3.6.3 + */ +var KmipRenewServerCertificate = /*#__PURE__*/function () { + /** + * Constructs a new KmipRenewServerCertificate. + * @alias module:model/KmipRenewServerCertificate + */ + function KmipRenewServerCertificate() { + _classCallCheck(this, KmipRenewServerCertificate); + + KmipRenewServerCertificate.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipRenewServerCertificate, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Google ID Token client - * - * Retrieve access token from the metadata server. - * See: https://developers.google.com/compute/docs/authentication + * Constructs a KmipRenewServerCertificate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipRenewServerCertificate} obj Optional instance to populate. + * @return {module:model/KmipRenewServerCertificate} The populated KmipRenewServerCertificate instance. */ - constructor(options) { - super(); - this.targetAudience = options.targetAudience; - this.idTokenProvider = options.idTokenProvider; - } - async getRequestMetadataAsync( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - url) { - if (!this.credentials.id_token || - (this.credentials.expiry_date || 0) < Date.now()) { - const idToken = await this.idTokenProvider.fetchIdToken(this.targetAudience); - this.credentials = { - id_token: idToken, - expiry_date: this.getIdTokenExpiryDate(idToken), - }; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipRenewServerCertificate(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - const headers = { - Authorization: 'Bearer ' + this.credentials.id_token, - }; - return { headers }; - } - getIdTokenExpiryDate(idToken) { - const payloadB64 = idToken.split('.')[1]; - if (payloadB64) { - const payload = JSON.parse(Buffer.from(payloadB64, 'base64').toString('ascii')); - return payload.exp * 1000; + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + } + + return obj; } -} -exports.IdTokenClient = IdTokenClient; -//# sourceMappingURL=idtokenclient.js.map + }]); + + return KmipRenewServerCertificate; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +KmipRenewServerCertificate.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipRenewServerCertificate.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipRenewServerCertificate.prototype['uid-token'] = undefined; +var _default = KmipRenewServerCertificate; +exports["default"] = _default; /***/ }), -/***/ 39964: +/***/ 96809: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * 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. + * The KmipRenewServerCertificateOutput model module. + * @module model/KmipRenewServerCertificateOutput + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Impersonated = void 0; -const oauth2client_1 = __nccwpck_require__(32472); -class Impersonated extends oauth2client_1.OAuth2Client { - /** - * Impersonated service account credentials. - * - * Create a new access token by impersonating another service account. - * - * Impersonated Credentials allowing credentials issued to a user or - * service account to impersonate another. The source project using - * Impersonated Credentials must enable the "IAMCredentials" API. - * Also, the target service account must grant the orginating principal - * the "Service Account Token Creator" IAM role. - * - * @param {object} options - The configuration object. - * @param {object} [options.sourceClient] the source credential used as to - * acquire the impersonated credentials. - * @param {string} [options.targetPrincipal] the service account to - * impersonate. - * @param {string[]} [options.delegates] the chained list of delegates - * required to grant the final access_token. If set, the sequence of - * identities must have "Service Account Token Creator" capability granted to - * the preceding identity. For example, if set to [serviceAccountB, - * serviceAccountC], the sourceCredential must have the Token Creator role on - * serviceAccountB. serviceAccountB must have the Token Creator on - * serviceAccountC. Finally, C must have Token Creator on target_principal. - * If left unset, sourceCredential must have that role on targetPrincipal. - * @param {string[]} [options.targetScopes] scopes to request during the - * authorization grant. - * @param {number} [options.lifetime] number of seconds the delegated - * credential should be valid for up to 3600 seconds by default, or 43,200 - * seconds by extending the token's lifetime, see: - * https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials#sa-credentials-oauth - * @param {string} [options.endpoint] api endpoint override. - */ - constructor(options = {}) { - var _a, _b, _c, _d, _e, _f; - super(options); - this.credentials = { - expiry_date: 1, - refresh_token: 'impersonated-placeholder', - }; - this.sourceClient = (_a = options.sourceClient) !== null && _a !== void 0 ? _a : new oauth2client_1.OAuth2Client(); - this.targetPrincipal = (_b = options.targetPrincipal) !== null && _b !== void 0 ? _b : ''; - this.delegates = (_c = options.delegates) !== null && _c !== void 0 ? _c : []; - this.targetScopes = (_d = options.targetScopes) !== null && _d !== void 0 ? _d : []; - this.lifetime = (_e = options.lifetime) !== null && _e !== void 0 ? _e : 3600; - this.endpoint = (_f = options.endpoint) !== null && _f !== void 0 ? _f : 'https://iamcredentials.googleapis.com'; - } +var KmipRenewServerCertificateOutput = /*#__PURE__*/function () { + /** + * Constructs a new KmipRenewServerCertificateOutput. + * @alias module:model/KmipRenewServerCertificateOutput + */ + function KmipRenewServerCertificateOutput() { + _classCallCheck(this, KmipRenewServerCertificateOutput); + + KmipRenewServerCertificateOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipRenewServerCertificateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Refreshes the access token. - * @param refreshToken Unused parameter + * Constructs a KmipRenewServerCertificateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipRenewServerCertificateOutput} obj Optional instance to populate. + * @return {module:model/KmipRenewServerCertificateOutput} The populated KmipRenewServerCertificateOutput instance. */ - async refreshToken(refreshToken) { - var _a, _b, _c, _d, _e, _f; - try { - await this.sourceClient.getAccessToken(); - const name = 'projects/-/serviceAccounts/' + this.targetPrincipal; - const u = `${this.endpoint}/v1/${name}:generateAccessToken`; - const body = { - delegates: this.delegates, - scope: this.targetScopes, - lifetime: this.lifetime + 's', - }; - const res = await this.sourceClient.request({ - url: u, - data: body, - method: 'POST', - }); - const tokenResponse = res.data; - this.credentials.access_token = tokenResponse.accessToken; - this.credentials.expiry_date = Date.parse(tokenResponse.expireTime); - return { - tokens: this.credentials, - res, - }; - } - catch (error) { - const status = (_c = (_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) === null || _c === void 0 ? void 0 : _c.status; - const message = (_f = (_e = (_d = error === null || error === void 0 ? void 0 : error.response) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.error) === null || _f === void 0 ? void 0 : _f.message; - if (status && message) { - error.message = `${status}: unable to impersonate: ${message}`; - throw error; - } - else { - error.message = `unable to impersonate: ${error}`; - throw error; - } + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipRenewServerCertificateOutput(); + + if (data.hasOwnProperty('ca_cert')) { + obj['ca_cert'] = _ApiClient["default"].convertToType(data['ca_cert'], 'String'); } + } + + return obj; } -} -exports.Impersonated = Impersonated; -//# sourceMappingURL=impersonated.js.map + }]); + + return KmipRenewServerCertificateOutput; +}(); +/** + * @member {String} ca_cert + */ + + +KmipRenewServerCertificateOutput.prototype['ca_cert'] = undefined; +var _default = KmipRenewServerCertificateOutput; +exports["default"] = _default; /***/ }), -/***/ 27060: +/***/ 54249: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2015 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.JWTAccess = void 0; -const jws = __nccwpck_require__(33324); -const LRU = __nccwpck_require__(8804); -const DEFAULT_HEADER = { - alg: 'RS256', - typ: 'JWT', -}; -class JWTAccess { - /** - * JWTAccess service account credentials. - * - * Create a new access token by using the credential to create a new JWT token - * that's recognized as the access token. - * - * @param email the service account email address. - * @param key the private key that will be used to sign the token. - * @param keyId the ID of the private key used to sign the token. - */ - constructor(email, key, keyId, eagerRefreshThresholdMillis) { - this.cache = new LRU({ - max: 500, - maxAge: 60 * 60 * 1000, - }); - this.email = email; - this.key = key; - this.keyId = keyId; - this.eagerRefreshThresholdMillis = eagerRefreshThresholdMillis !== null && eagerRefreshThresholdMillis !== void 0 ? eagerRefreshThresholdMillis : 5 * 60 * 1000; - } - /** - * Ensures that we're caching a key appropriately, giving precedence to scopes vs. url - * - * @param url The URI being authorized. - * @param scopes The scope or scopes being authorized - * @returns A string that returns the cached key. - */ - getCachedKey(url, scopes) { - let cacheKey = url; - if (scopes && Array.isArray(scopes) && scopes.length) { - cacheKey = url ? `${url}_${scopes.join('_')}` : `${scopes.join('_')}`; - } - else if (typeof scopes === 'string') { - cacheKey = url ? `${url}_${scopes}` : scopes; - } - if (!cacheKey) { - throw Error('Scopes or url must be provided'); - } - return cacheKey; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipServerSetup model module. + * @module model/KmipServerSetup + * @version 3.6.3 + */ +var KmipServerSetup = /*#__PURE__*/function () { + /** + * Constructs a new KmipServerSetup. + * @alias module:model/KmipServerSetup + * @param hostname {String} Hostname + * @param root {String} Root path of KMIP Resources + */ + function KmipServerSetup(hostname, root) { + _classCallCheck(this, KmipServerSetup); + + KmipServerSetup.initialize(this, hostname, root); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipServerSetup, null, [{ + key: "initialize", + value: function initialize(obj, hostname, root) { + obj['hostname'] = hostname; + obj['root'] = root; } /** - * Get a non-expired access token, after refreshing if necessary. - * - * @param url The URI being authorized. - * @param additionalClaims An object with a set of additional claims to - * include in the payload. - * @returns An object that includes the authorization header. + * Constructs a KmipServerSetup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipServerSetup} obj Optional instance to populate. + * @return {module:model/KmipServerSetup} The populated KmipServerSetup instance. */ - getRequestHeaders(url, additionalClaims, scopes) { - // Return cached authorization headers, unless we are within - // eagerRefreshThresholdMillis ms of them expiring: - const key = this.getCachedKey(url, scopes); - const cachedToken = this.cache.get(key); - const now = Date.now(); - if (cachedToken && - cachedToken.expiration - now > this.eagerRefreshThresholdMillis) { - return cachedToken.headers; - } - const iat = Math.floor(Date.now() / 1000); - const exp = JWTAccess.getExpirationTime(iat); - let defaultClaims; - // Turn scopes into space-separated string - if (Array.isArray(scopes)) { - scopes = scopes.join(' '); - } - // If scopes are specified, sign with scopes - if (scopes) { - defaultClaims = { - iss: this.email, - sub: this.email, - scope: scopes, - exp, - iat, - }; - } - else { - defaultClaims = { - iss: this.email, - sub: this.email, - aud: url, - exp, - iat, - }; - } - // if additionalClaims are provided, ensure they do not collide with - // other required claims. - if (additionalClaims) { - for (const claim in defaultClaims) { - if (additionalClaims[claim]) { - throw new Error(`The '${claim}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`); - } - } + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipServerSetup(); + + if (data.hasOwnProperty('certificate-ttl')) { + obj['certificate-ttl'] = _ApiClient["default"].convertToType(data['certificate-ttl'], 'Number'); } - const header = this.keyId - ? { ...DEFAULT_HEADER, kid: this.keyId } - : DEFAULT_HEADER; - const payload = Object.assign(defaultClaims, additionalClaims); - // Sign the jwt and add it to the cache - const signedJWT = jws.sign({ header, payload, secret: this.key }); - const headers = { Authorization: `Bearer ${signedJWT}` }; - this.cache.set(key, { - expiration: exp * 1000, - headers, - }); - return headers; - } - /** - * Returns an expiration time for the JWT token. - * - * @param iat The issued at time for the JWT. - * @returns An expiration time for the JWT. - */ - static getExpirationTime(iat) { - const exp = iat + 3600; // 3600 seconds = 1 hour - return exp; - } - /** - * Create a JWTAccess credentials instance using the given input options. - * @param json The input object. - */ - fromJSON(json) { - if (!json) { - throw new Error('Must pass in a JSON object containing the service account auth settings.'); + + if (data.hasOwnProperty('hostname')) { + obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); } - if (!json.client_email) { - throw new Error('The incoming JSON object does not contain a client_email field'); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (!json.private_key) { - throw new Error('The incoming JSON object does not contain a private_key field'); + + if (data.hasOwnProperty('root')) { + obj['root'] = _ApiClient["default"].convertToType(data['root'], 'String'); } - // Extract the relevant information from the json key file. - this.email = json.client_email; - this.key = json.private_key; - this.keyId = json.private_key_id; - this.projectId = json.project_id; - } - fromStream(inputStream, callback) { - if (callback) { - this.fromStreamAsync(inputStream).then(() => callback(), callback); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - else { - return this.fromStreamAsync(inputStream); + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + } + + return obj; } - fromStreamAsync(inputStream) { - return new Promise((resolve, reject) => { - if (!inputStream) { - reject(new Error('Must pass in a stream containing the service account auth settings.')); - } - let s = ''; - inputStream - .setEncoding('utf8') - .on('data', chunk => (s += chunk)) - .on('error', reject) - .on('end', () => { - try { - const data = JSON.parse(s); - this.fromJSON(data); - resolve(); - } - catch (err) { - reject(err); - } - }); - }); - } -} -exports.JWTAccess = JWTAccess; -//# sourceMappingURL=jwtaccess.js.map + }]); + + return KmipServerSetup; +}(); +/** + * Server certificate TTL in days + * @member {Number} certificate-ttl + * @default 90 + */ + + +KmipServerSetup.prototype['certificate-ttl'] = 90; +/** + * Hostname + * @member {String} hostname + */ + +KmipServerSetup.prototype['hostname'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +KmipServerSetup.prototype['json'] = false; +/** + * Root path of KMIP Resources + * @member {String} root + */ + +KmipServerSetup.prototype['root'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipServerSetup.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipServerSetup.prototype['uid-token'] = undefined; +var _default = KmipServerSetup; +exports["default"] = _default; /***/ }), -/***/ 75277: +/***/ 87265: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2013 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.JWT = void 0; -const gtoken_1 = __nccwpck_require__(28568); -const jwtaccess_1 = __nccwpck_require__(27060); -const oauth2client_1 = __nccwpck_require__(32472); -class JWT extends oauth2client_1.OAuth2Client { - constructor(optionsOrEmail, keyFile, key, scopes, subject, keyId) { - const opts = optionsOrEmail && typeof optionsOrEmail === 'object' - ? optionsOrEmail - : { email: optionsOrEmail, keyFile, key, keyId, scopes, subject }; - super({ - eagerRefreshThresholdMillis: opts.eagerRefreshThresholdMillis, - forceRefreshOnFailure: opts.forceRefreshOnFailure, - }); - this.email = opts.email; - this.keyFile = opts.keyFile; - this.key = opts.key; - this.keyId = opts.keyId; - this.scopes = opts.scopes; - this.subject = opts.subject; - this.additionalClaims = opts.additionalClaims; - this.credentials = { refresh_token: 'jwt-placeholder', expiry_date: 1 }; - } - /** - * Creates a copy of the credential with the specified scopes. - * @param scopes List of requested scopes or a single scope. - * @return The cloned instance. - */ - createScoped(scopes) { - return new JWT({ - email: this.email, - keyFile: this.keyFile, - key: this.key, - keyId: this.keyId, - scopes, - subject: this.subject, - additionalClaims: this.additionalClaims, - }); - } - /** - * Obtains the metadata to be sent with the request. - * - * @param url the URI being authorized. - */ - async getRequestMetadataAsync(url) { - url = this.defaultServicePath ? `https://${this.defaultServicePath}/` : url; - const useSelfSignedJWT = (!this.hasUserScopes() && url) || - (this.useJWTAccessWithScope && this.hasAnyScopes()); - if (!this.apiKey && useSelfSignedJWT) { - if (this.additionalClaims && - this.additionalClaims.target_audience) { - const { tokens } = await this.refreshToken(); - return { - headers: this.addSharedMetadataHeaders({ - Authorization: `Bearer ${tokens.id_token}`, - }), - }; - } - else { - // no scopes have been set, but a uri has been provided. Use JWTAccess - // credentials. - if (!this.access) { - this.access = new jwtaccess_1.JWTAccess(this.email, this.key, this.keyId, this.eagerRefreshThresholdMillis); - } - let scopes; - if (this.hasUserScopes()) { - scopes = this.scopes; - } - else if (!url) { - scopes = this.defaultScopes; - } - const headers = await this.access.getRequestHeaders(url !== null && url !== void 0 ? url : undefined, this.additionalClaims, - // Scopes take precedent over audience for signing, - // so we only provide them if useJWTAccessWithScope is on - this.useJWTAccessWithScope ? scopes : undefined); - return { headers: this.addSharedMetadataHeaders(headers) }; - } - } - else if (this.hasAnyScopes() || this.apiKey) { - return super.getRequestMetadataAsync(url); - } - else { - // If no audience, apiKey, or scopes are provided, we should not attempt - // to populate any headers: - return { headers: {} }; - } - } - /** - * Fetches an ID token. - * @param targetAudience the audience for the fetched ID token. - */ - async fetchIdToken(targetAudience) { - // Create a new gToken for fetching an ID token - const gtoken = new gtoken_1.GoogleToken({ - iss: this.email, - sub: this.subject, - scope: this.scopes || this.defaultScopes, - keyFile: this.keyFile, - key: this.key, - additionalClaims: { target_audience: targetAudience }, - }); - await gtoken.getToken({ - forceRefresh: true, - }); - if (!gtoken.idToken) { - throw new Error('Unknown error: Failed to fetch ID token'); - } - return gtoken.idToken; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipSetServerState model module. + * @module model/KmipSetServerState + * @version 3.6.3 + */ +var KmipSetServerState = /*#__PURE__*/function () { + /** + * Constructs a new KmipSetServerState. + * kmipSetServerState is a command that sets the environment state to active/inactive. + * @alias module:model/KmipSetServerState + * @param state {String} + */ + function KmipSetServerState(state) { + _classCallCheck(this, KmipSetServerState); + + KmipSetServerState.initialize(this, state); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipSetServerState, null, [{ + key: "initialize", + value: function initialize(obj, state) { + obj['state'] = state; } /** - * Determine if there are currently scopes available. + * Constructs a KmipSetServerState from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipSetServerState} obj Optional instance to populate. + * @return {module:model/KmipSetServerState} The populated KmipSetServerState instance. */ - hasUserScopes() { - if (!this.scopes) { - return false; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipSetServerState(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - return this.scopes.length > 0; - } - /** - * Are there any default or user scopes defined. - */ - hasAnyScopes() { - if (this.scopes && this.scopes.length > 0) - return true; - if (this.defaultScopes && this.defaultScopes.length > 0) - return true; - return false; - } - authorize(callback) { - if (callback) { - this.authorizeAsync().then(r => callback(null, r), callback); + + if (data.hasOwnProperty('state')) { + obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); } - else { - return this.authorizeAsync(); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - } - async authorizeAsync() { - const result = await this.refreshToken(); - if (!result) { - throw new Error('No result returned'); + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - this.credentials = result.tokens; - this.credentials.refresh_token = 'jwt-placeholder'; - this.key = this.gtoken.key; - this.email = this.gtoken.iss; - return result.tokens; - } - /** - * Refreshes the access token. - * @param refreshToken ignored - * @private - */ - async refreshTokenNoCache( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - refreshToken) { - const gtoken = this.createGToken(); - const token = await gtoken.getToken({ - forceRefresh: this.isTokenExpiring(), - }); - const tokens = { - access_token: token.access_token, - token_type: 'Bearer', - expiry_date: gtoken.expiresAt, - id_token: gtoken.idToken, - }; - this.emit('tokens', tokens); - return { res: null, tokens }; + } + + return obj; } + }]); + + return KmipSetServerState; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +KmipSetServerState.prototype['json'] = false; +/** + * @member {String} state + */ + +KmipSetServerState.prototype['state'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +KmipSetServerState.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +KmipSetServerState.prototype['uid-token'] = undefined; +var _default = KmipSetServerState; +exports["default"] = _default; + +/***/ }), + +/***/ 9044: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KmipSetServerStateOutput model module. + * @module model/KmipSetServerStateOutput + * @version 3.6.3 + */ +var KmipSetServerStateOutput = /*#__PURE__*/function () { + /** + * Constructs a new KmipSetServerStateOutput. + * @alias module:model/KmipSetServerStateOutput + */ + function KmipSetServerStateOutput() { + _classCallCheck(this, KmipSetServerStateOutput); + + KmipSetServerStateOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KmipSetServerStateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Create a gToken if it doesn't already exist. + * Constructs a KmipSetServerStateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KmipSetServerStateOutput} obj Optional instance to populate. + * @return {module:model/KmipSetServerStateOutput} The populated KmipSetServerStateOutput instance. */ - createGToken() { - if (!this.gtoken) { - this.gtoken = new gtoken_1.GoogleToken({ - iss: this.email, - sub: this.subject, - scope: this.scopes || this.defaultScopes, - keyFile: this.keyFile, - key: this.key, - additionalClaims: this.additionalClaims, - }); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KmipSetServerStateOutput(); + + if (data.hasOwnProperty('is_active')) { + obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean'); } - return this.gtoken; + } + + return obj; } + }]); + + return KmipSetServerStateOutput; +}(); +/** + * @member {Boolean} is_active + */ + + +KmipSetServerStateOutput.prototype['is_active'] = undefined; +var _default = KmipSetServerStateOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 71267: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The KubernetesAccessRules model module. + * @module model/KubernetesAccessRules + * @version 3.6.3 + */ +var KubernetesAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new KubernetesAccessRules. + * @alias module:model/KubernetesAccessRules + */ + function KubernetesAccessRules() { + _classCallCheck(this, KubernetesAccessRules); + + KubernetesAccessRules.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(KubernetesAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Create a JWT credentials instance using the given input options. - * @param json The input object. + * Constructs a KubernetesAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/KubernetesAccessRules} obj Optional instance to populate. + * @return {module:model/KubernetesAccessRules} The populated KubernetesAccessRules instance. */ - fromJSON(json) { - if (!json) { - throw new Error('Must pass in a JSON object containing the service account auth settings.'); - } - if (!json.client_email) { - throw new Error('The incoming JSON object does not contain a client_email field'); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KubernetesAccessRules(); + + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); } - if (!json.private_key) { - throw new Error('The incoming JSON object does not contain a private_key field'); + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); } - // Extract the relevant information from the json key file. - this.email = json.client_email; - this.key = json.private_key; - this.keyId = json.private_key_id; - this.projectId = json.project_id; - this.quotaProjectId = json.quota_project_id; - } - fromStream(inputStream, callback) { - if (callback) { - this.fromStreamAsync(inputStream).then(() => callback(), callback); + + if (data.hasOwnProperty('bound_namespaces')) { + obj['bound_namespaces'] = _ApiClient["default"].convertToType(data['bound_namespaces'], ['String']); } - else { - return this.fromStreamAsync(inputStream); + + if (data.hasOwnProperty('bound_pod_names')) { + obj['bound_pod_names'] = _ApiClient["default"].convertToType(data['bound_pod_names'], ['String']); } - } - fromStreamAsync(inputStream) { - return new Promise((resolve, reject) => { - if (!inputStream) { - throw new Error('Must pass in a stream containing the service account auth settings.'); - } - let s = ''; - inputStream - .setEncoding('utf8') - .on('error', reject) - .on('data', chunk => (s += chunk)) - .on('end', () => { - try { - const data = JSON.parse(s); - this.fromJSON(data); - resolve(); - } - catch (e) { - reject(e); - } - }); - }); - } - /** - * Creates a JWT credentials instance using an API Key for authentication. - * @param apiKey The API Key in string form. - */ - fromAPIKey(apiKey) { - if (typeof apiKey !== 'string') { - throw new Error('Must provide an API Key string.'); + + if (data.hasOwnProperty('bound_service_account_names')) { + obj['bound_service_account_names'] = _ApiClient["default"].convertToType(data['bound_service_account_names'], ['String']); } - this.apiKey = apiKey; - } - /** - * Using the key or keyFile on the JWT client, obtain an object that contains - * the key and the client email. - */ - async getCredentials() { - if (this.key) { - return { private_key: this.key, client_email: this.email }; + + if (data.hasOwnProperty('gen_key_pair')) { + obj['gen_key_pair'] = _ApiClient["default"].convertToType(data['gen_key_pair'], 'String'); } - else if (this.keyFile) { - const gtoken = this.createGToken(); - const creds = await gtoken.getCredentials(this.keyFile); - return { private_key: creds.privateKey, client_email: creds.clientEmail }; + + if (data.hasOwnProperty('pub_key')) { + obj['pub_key'] = _ApiClient["default"].convertToType(data['pub_key'], 'String'); } - throw new Error('A key or a keyFile must be provided to getCredentials.'); + } + + return obj; } -} -exports.JWT = JWT; -//# sourceMappingURL=jwtclient.js.map + }]); + + return KubernetesAccessRules; +}(); +/** + * @member {String} alg + */ + + +KubernetesAccessRules.prototype['alg'] = undefined; +/** + * Audience is an optional Kubernetes jwt claim to verify + * @member {String} audience + */ + +KubernetesAccessRules.prototype['audience'] = undefined; +/** + * A list of namespaces that the authentication is restricted to. + * @member {Array.} bound_namespaces + */ + +KubernetesAccessRules.prototype['bound_namespaces'] = undefined; +/** + * A list of pods names that the authentication is restricted to. + * @member {Array.} bound_pod_names + */ + +KubernetesAccessRules.prototype['bound_pod_names'] = undefined; +/** + * A list of service account names that the authentication is restricted to. + * @member {Array.} bound_service_account_names + */ + +KubernetesAccessRules.prototype['bound_service_account_names'] = undefined; +/** + * Generate public/private key (the private key is required for the K8S Auth Config in the Akeyless Gateway) + * @member {String} gen_key_pair + */ + +KubernetesAccessRules.prototype['gen_key_pair'] = undefined; +/** + * The public key value of the Kubernetes auth method configuration in the Akeyless Gateway. + * @member {String} pub_key + */ + +KubernetesAccessRules.prototype['pub_key'] = undefined; +var _default = KubernetesAccessRules; +exports["default"] = _default; /***/ }), -/***/ 53882: -/***/ ((__unused_webpack_module, exports) => { +/***/ 86012: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2014 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LoginTicket = void 0; -class LoginTicket { - /** - * Create a simple class to extract user ID from an ID Token - * - * @param {string} env Envelope of the jwt - * @param {TokenPayload} pay Payload of the jwt - * @constructor - */ - constructor(env, pay) { - this.envelope = env; - this.payload = pay; - } - getEnvelope() { - return this.envelope; - } - getPayload() { - return this.payload; - } + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The LDAPAccessRules model module. + * @module model/LDAPAccessRules + * @version 3.6.3 + */ +var LDAPAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new LDAPAccessRules. + * @alias module:model/LDAPAccessRules + */ + function LDAPAccessRules() { + _classCallCheck(this, LDAPAccessRules); + + LDAPAccessRules.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LDAPAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Create a simple class to extract user ID from an ID Token - * - * @return The user ID + * Constructs a LDAPAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LDAPAccessRules} obj Optional instance to populate. + * @return {module:model/LDAPAccessRules} The populated LDAPAccessRules instance. */ - getUserId() { - const payload = this.getPayload(); - if (payload && payload.sub) { - return payload.sub; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LDAPAccessRules(); + + if (data.hasOwnProperty('alg')) { + obj['alg'] = _ApiClient["default"].convertToType(data['alg'], 'String'); } - return null; - } - /** - * Returns attributes from the login ticket. This can contain - * various information about the user session. - * - * @return The envelope and payload - */ - getAttributes() { - return { envelope: this.getEnvelope(), payload: this.getPayload() }; + + if (data.hasOwnProperty('gen_key_pair')) { + obj['gen_key_pair'] = _ApiClient["default"].convertToType(data['gen_key_pair'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('unique_identifier')) { + obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); + } + } + + return obj; } -} -exports.LoginTicket = LoginTicket; -//# sourceMappingURL=loginticket.js.map + }]); + + return LDAPAccessRules; +}(); +/** + * @member {String} alg + */ + + +LDAPAccessRules.prototype['alg'] = undefined; +/** + * Generate public/private key (the private key is required for the LDAP Auth Config in the Akeyless Gateway) + * @member {String} gen_key_pair + */ + +LDAPAccessRules.prototype['gen_key_pair'] = undefined; +/** + * The public key value of LDAP. + * @member {String} key + */ + +LDAPAccessRules.prototype['key'] = undefined; +/** + * A unique identifier to distinguish different users + * @member {String} unique_identifier + */ + +LDAPAccessRules.prototype['unique_identifier'] = undefined; +var _default = LDAPAccessRules; +exports["default"] = _default; /***/ }), -/***/ 32472: +/***/ 48174: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.OAuth2Client = exports.CertificateFormat = exports.CodeChallengeMethod = void 0; -const querystring = __nccwpck_require__(83480); -const stream = __nccwpck_require__(2203); -const formatEcdsa = __nccwpck_require__(325); -const crypto_1 = __nccwpck_require__(88851); -const authclient_1 = __nccwpck_require__(34810); -const loginticket_1 = __nccwpck_require__(53882); -var CodeChallengeMethod; -(function (CodeChallengeMethod) { - CodeChallengeMethod["Plain"] = "plain"; - CodeChallengeMethod["S256"] = "S256"; -})(CodeChallengeMethod = exports.CodeChallengeMethod || (exports.CodeChallengeMethod = {})); -var CertificateFormat; -(function (CertificateFormat) { - CertificateFormat["PEM"] = "PEM"; - CertificateFormat["JWK"] = "JWK"; -})(CertificateFormat = exports.CertificateFormat || (exports.CertificateFormat = {})); -class OAuth2Client extends authclient_1.AuthClient { - constructor(optionsOrClientId, clientSecret, redirectUri) { - super(); - this.certificateCache = {}; - this.certificateExpiry = null; - this.certificateCacheFormat = CertificateFormat.PEM; - this.refreshTokenPromises = new Map(); - const opts = optionsOrClientId && typeof optionsOrClientId === 'object' - ? optionsOrClientId - : { clientId: optionsOrClientId, clientSecret, redirectUri }; - this._clientId = opts.clientId; - this._clientSecret = opts.clientSecret; - this.redirectUri = opts.redirectUri; - this.eagerRefreshThresholdMillis = - opts.eagerRefreshThresholdMillis || 5 * 60 * 1000; - this.forceRefreshOnFailure = !!opts.forceRefreshOnFailure; - } + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _K8SAuthsConfigLastChange = _interopRequireDefault(__nccwpck_require__(2421)); + +var _MigrationsConfigLastChange = _interopRequireDefault(__nccwpck_require__(66135)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The LastConfigChange model module. + * @module model/LastConfigChange + * @version 3.6.3 + */ +var LastConfigChange = /*#__PURE__*/function () { + /** + * Constructs a new LastConfigChange. + * @alias module:model/LastConfigChange + */ + function LastConfigChange() { + _classCallCheck(this, LastConfigChange); + + LastConfigChange.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LastConfigChange, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Generates URL for consent page landing. - * @param opts Options. - * @return URL to consent page. + * Constructs a LastConfigChange from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LastConfigChange} obj Optional instance to populate. + * @return {module:model/LastConfigChange} The populated LastConfigChange instance. */ - generateAuthUrl(opts = {}) { - if (opts.code_challenge_method && !opts.code_challenge) { - throw new Error('If a code_challenge_method is provided, code_challenge must be included.'); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LastConfigChange(); + + if (data.hasOwnProperty('last_k8s_auths_change')) { + obj['last_k8s_auths_change'] = _K8SAuthsConfigLastChange["default"].constructFromObject(data['last_k8s_auths_change']); } - opts.response_type = opts.response_type || 'code'; - opts.client_id = opts.client_id || this._clientId; - opts.redirect_uri = opts.redirect_uri || this.redirectUri; - // Allow scopes to be passed either as array or a string - if (opts.scope instanceof Array) { - opts.scope = opts.scope.join(' '); + + if (data.hasOwnProperty('last_migrations_change')) { + obj['last_migrations_change'] = _MigrationsConfigLastChange["default"].constructFromObject(data['last_migrations_change']); } - const rootUrl = OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_; - return (rootUrl + - '?' + - querystring.stringify(opts)); - } - generateCodeVerifier() { - // To make the code compatible with browser SubtleCrypto we need to make - // this method async. - throw new Error('generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.'); + } + + return obj; } + }]); + + return LastConfigChange; +}(); +/** + * @member {module:model/K8SAuthsConfigLastChange} last_k8s_auths_change + */ + + +LastConfigChange.prototype['last_k8s_auths_change'] = undefined; +/** + * @member {module:model/MigrationsConfigLastChange} last_migrations_change + */ + +LastConfigChange.prototype['last_migrations_change'] = undefined; +var _default = LastConfigChange; +exports["default"] = _default; + +/***/ }), + +/***/ 12778: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _MigrationStatus = _interopRequireDefault(__nccwpck_require__(97664)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The LastStatusInfo model module. + * @module model/LastStatusInfo + * @version 3.6.3 + */ +var LastStatusInfo = /*#__PURE__*/function () { + /** + * Constructs a new LastStatusInfo. + * @alias module:model/LastStatusInfo + */ + function LastStatusInfo() { + _classCallCheck(this, LastStatusInfo); + + LastStatusInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LastStatusInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Convenience method to automatically generate a code_verifier, and its - * resulting SHA256. If used, this must be paired with a S256 - * code_challenge_method. - * - * For a full example see: - * https://github.com/googleapis/google-auth-library-nodejs/blob/main/samples/oauth2-codeVerifier.js + * Constructs a LastStatusInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LastStatusInfo} obj Optional instance to populate. + * @return {module:model/LastStatusInfo} The populated LastStatusInfo instance. */ - async generateCodeVerifierAsync() { - // base64 encoding uses 6 bits per character, and we want to generate128 - // characters. 6*128/8 = 96. - const crypto = crypto_1.createCrypto(); - const randomString = crypto.randomBytesBase64(96); - // The valid characters in the code_verifier are [A-Z]/[a-z]/[0-9]/ - // "-"/"."/"_"/"~". Base64 encoded strings are pretty close, so we're just - // swapping out a few chars. - const codeVerifier = randomString - .replace(/\+/g, '~') - .replace(/=/g, '_') - .replace(/\//g, '-'); - // Generate the base64 encoded SHA256 - const unencodedCodeChallenge = await crypto.sha256DigestBase64(codeVerifier); - // We need to use base64UrlEncoding instead of standard base64 - const codeChallenge = unencodedCodeChallenge - .split('=')[0] - .replace(/\+/g, '-') - .replace(/\//g, '_'); - return { codeVerifier, codeChallenge }; - } - getToken(codeOrOptions, callback) { - const options = typeof codeOrOptions === 'string' ? { code: codeOrOptions } : codeOrOptions; - if (callback) { - this.getTokenAsync(options).then(r => callback(null, r.tokens, r.res), e => callback(e, null, e.response)); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LastStatusInfo(); + + if (data.hasOwnProperty('migrations_status')) { + obj['migrations_status'] = _MigrationStatus["default"].constructFromObject(data['migrations_status']); } - else { - return this.getTokenAsync(options); + + if (data.hasOwnProperty('producers_errors')) { + obj['producers_errors'] = _ApiClient["default"].convertToType(data['producers_errors'], Object); } - } - async getTokenAsync(options) { - const url = OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_; - const values = { - code: options.code, - client_id: options.client_id || this._clientId, - client_secret: this._clientSecret, - redirect_uri: options.redirect_uri || this.redirectUri, - grant_type: 'authorization_code', - code_verifier: options.codeVerifier, - }; - const res = await this.transporter.request({ - method: 'POST', - url, - data: querystring.stringify(values), - headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - }); - const tokens = res.data; - if (res.data && res.data.expires_in) { - tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000; - delete tokens.expires_in; + + if (data.hasOwnProperty('was_migrations_copied_to_new_table')) { + obj['was_migrations_copied_to_new_table'] = _ApiClient["default"].convertToType(data['was_migrations_copied_to_new_table'], 'Boolean'); } - this.emit('tokens', tokens); - return { tokens, res }; + } + + return obj; } + }]); + + return LastStatusInfo; +}(); +/** + * @member {module:model/MigrationStatus} migrations_status + */ + + +LastStatusInfo.prototype['migrations_status'] = undefined; +/** + * @member {Object} producers_errors + */ + +LastStatusInfo.prototype['producers_errors'] = undefined; +/** + * flag to indicate migrationStatus copied to new table + * @member {Boolean} was_migrations_copied_to_new_table + */ + +LastStatusInfo.prototype['was_migrations_copied_to_new_table'] = undefined; +var _default = LastStatusInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 2846: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The LdapConfigPart model module. + * @module model/LdapConfigPart + * @version 3.6.3 + */ +var LdapConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new LdapConfigPart. + * @alias module:model/LdapConfigPart + */ + function LdapConfigPart() { + _classCallCheck(this, LdapConfigPart); + + LdapConfigPart.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LdapConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Refreshes the access token. - * @param refresh_token Existing refresh token. - * @private + * Constructs a LdapConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LdapConfigPart} obj Optional instance to populate. + * @return {module:model/LdapConfigPart} The populated LdapConfigPart instance. */ - async refreshToken(refreshToken) { - if (!refreshToken) { - return this.refreshTokenNoCache(refreshToken); - } - // If a request to refresh using the same token has started, - // return the same promise. - if (this.refreshTokenPromises.has(refreshToken)) { - return this.refreshTokenPromises.get(refreshToken); - } - const p = this.refreshTokenNoCache(refreshToken).then(r => { - this.refreshTokenPromises.delete(refreshToken); - return r; - }, e => { - this.refreshTokenPromises.delete(refreshToken); - throw e; - }); - this.refreshTokenPromises.set(refreshToken, p); - return p; - } - async refreshTokenNoCache(refreshToken) { - if (!refreshToken) { - throw new Error('No refresh token is set.'); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LdapConfigPart(); + + if (data.hasOwnProperty('ldap_access_id')) { + obj['ldap_access_id'] = _ApiClient["default"].convertToType(data['ldap_access_id'], 'String'); } - const url = OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_; - const data = { - refresh_token: refreshToken, - client_id: this._clientId, - client_secret: this._clientSecret, - grant_type: 'refresh_token', - }; - // request for new token - const res = await this.transporter.request({ - method: 'POST', - url, - data: querystring.stringify(data), - headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - }); - const tokens = res.data; - // TODO: de-duplicate this code from a few spots - if (res.data && res.data.expires_in) { - tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000; - delete tokens.expires_in; + + if (data.hasOwnProperty('ldap_anonymous_search')) { + obj['ldap_anonymous_search'] = _ApiClient["default"].convertToType(data['ldap_anonymous_search'], 'Boolean'); } - this.emit('tokens', tokens); - return { tokens, res }; - } - refreshAccessToken(callback) { - if (callback) { - this.refreshAccessTokenAsync().then(r => callback(null, r.credentials, r.res), callback); + + if (data.hasOwnProperty('ldap_bind_dn')) { + obj['ldap_bind_dn'] = _ApiClient["default"].convertToType(data['ldap_bind_dn'], 'String'); } - else { - return this.refreshAccessTokenAsync(); + + if (data.hasOwnProperty('ldap_bind_password')) { + obj['ldap_bind_password'] = _ApiClient["default"].convertToType(data['ldap_bind_password'], 'String'); } - } - async refreshAccessTokenAsync() { - const r = await this.refreshToken(this.credentials.refresh_token); - const tokens = r.tokens; - tokens.refresh_token = this.credentials.refresh_token; - this.credentials = tokens; - return { credentials: this.credentials, res: r.res }; - } - getAccessToken(callback) { - if (callback) { - this.getAccessTokenAsync().then(r => callback(null, r.token, r.res), callback); + + if (data.hasOwnProperty('ldap_cert')) { + obj['ldap_cert'] = _ApiClient["default"].convertToType(data['ldap_cert'], 'String'); } - else { - return this.getAccessTokenAsync(); + + if (data.hasOwnProperty('ldap_enable')) { + obj['ldap_enable'] = _ApiClient["default"].convertToType(data['ldap_enable'], 'Boolean'); } - } - async getAccessTokenAsync() { - const shouldRefresh = !this.credentials.access_token || this.isTokenExpiring(); - if (shouldRefresh) { - if (!this.credentials.refresh_token) { - if (this.refreshHandler) { - const refreshedAccessToken = await this.processAndValidateRefreshHandler(); - if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { - this.setCredentials(refreshedAccessToken); - return { token: this.credentials.access_token }; - } - } - else { - throw new Error('No refresh token or refresh handler callback is set.'); - } - } - const r = await this.refreshAccessTokenAsync(); - if (!r.credentials || (r.credentials && !r.credentials.access_token)) { - throw new Error('Could not refresh access token.'); - } - return { token: r.credentials.access_token, res: r.res }; + + if (data.hasOwnProperty('ldap_group_attr')) { + obj['ldap_group_attr'] = _ApiClient["default"].convertToType(data['ldap_group_attr'], 'String'); } - else { - return { token: this.credentials.access_token }; + + if (data.hasOwnProperty('ldap_group_dn')) { + obj['ldap_group_dn'] = _ApiClient["default"].convertToType(data['ldap_group_dn'], 'String'); } - } - /** - * The main authentication interface. It takes an optional url which when - * present is the endpoint being accessed, and returns a Promise which - * resolves with authorization header fields. - * - * In OAuth2Client, the result has the form: - * { Authorization: 'Bearer ' } - * @param url The optional url being authorized - */ - async getRequestHeaders(url) { - const headers = (await this.getRequestMetadataAsync(url)).headers; - return headers; - } - async getRequestMetadataAsync( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - url) { - const thisCreds = this.credentials; - if (!thisCreds.access_token && - !thisCreds.refresh_token && - !this.apiKey && - !this.refreshHandler) { - throw new Error('No access, refresh token, API key or refresh handler callback is set.'); + + if (data.hasOwnProperty('ldap_group_filter')) { + obj['ldap_group_filter'] = _ApiClient["default"].convertToType(data['ldap_group_filter'], 'String'); } - if (thisCreds.access_token && !this.isTokenExpiring()) { - thisCreds.token_type = thisCreds.token_type || 'Bearer'; - const headers = { - Authorization: thisCreds.token_type + ' ' + thisCreds.access_token, - }; - return { headers: this.addSharedMetadataHeaders(headers) }; + + if (data.hasOwnProperty('ldap_private_key')) { + obj['ldap_private_key'] = _ApiClient["default"].convertToType(data['ldap_private_key'], 'String'); } - // If refreshHandler exists, call processAndValidateRefreshHandler(). - if (this.refreshHandler) { - const refreshedAccessToken = await this.processAndValidateRefreshHandler(); - if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { - this.setCredentials(refreshedAccessToken); - const headers = { - Authorization: 'Bearer ' + this.credentials.access_token, - }; - return { headers: this.addSharedMetadataHeaders(headers) }; - } + + if (data.hasOwnProperty('ldap_token_expiration')) { + obj['ldap_token_expiration'] = _ApiClient["default"].convertToType(data['ldap_token_expiration'], 'String'); } - if (this.apiKey) { - return { headers: { 'X-Goog-Api-Key': this.apiKey } }; + + if (data.hasOwnProperty('ldap_url')) { + obj['ldap_url'] = _ApiClient["default"].convertToType(data['ldap_url'], 'String'); } - let r = null; - let tokens = null; - try { - r = await this.refreshToken(thisCreds.refresh_token); - tokens = r.tokens; + + if (data.hasOwnProperty('ldap_user_attr')) { + obj['ldap_user_attr'] = _ApiClient["default"].convertToType(data['ldap_user_attr'], 'String'); } - catch (err) { - const e = err; - if (e.response && - (e.response.status === 403 || e.response.status === 404)) { - e.message = `Could not refresh access token: ${e.message}`; - } - throw e; + + if (data.hasOwnProperty('ldap_user_dn')) { + obj['ldap_user_dn'] = _ApiClient["default"].convertToType(data['ldap_user_dn'], 'String'); } - const credentials = this.credentials; - credentials.token_type = credentials.token_type || 'Bearer'; - tokens.refresh_token = credentials.refresh_token; - this.credentials = tokens; - const headers = { - Authorization: credentials.token_type + ' ' + tokens.access_token, - }; - return { headers: this.addSharedMetadataHeaders(headers), res: r.res }; + } + + return obj; } + }]); + + return LdapConfigPart; +}(); +/** + * @member {String} ldap_access_id + */ + + +LdapConfigPart.prototype['ldap_access_id'] = undefined; +/** + * @member {Boolean} ldap_anonymous_search + */ + +LdapConfigPart.prototype['ldap_anonymous_search'] = undefined; +/** + * @member {String} ldap_bind_dn + */ + +LdapConfigPart.prototype['ldap_bind_dn'] = undefined; +/** + * @member {String} ldap_bind_password + */ + +LdapConfigPart.prototype['ldap_bind_password'] = undefined; +/** + * @member {String} ldap_cert + */ + +LdapConfigPart.prototype['ldap_cert'] = undefined; +/** + * @member {Boolean} ldap_enable + */ + +LdapConfigPart.prototype['ldap_enable'] = undefined; +/** + * @member {String} ldap_group_attr + */ + +LdapConfigPart.prototype['ldap_group_attr'] = undefined; +/** + * @member {String} ldap_group_dn + */ + +LdapConfigPart.prototype['ldap_group_dn'] = undefined; +/** + * @member {String} ldap_group_filter + */ + +LdapConfigPart.prototype['ldap_group_filter'] = undefined; +/** + * @member {String} ldap_private_key + */ + +LdapConfigPart.prototype['ldap_private_key'] = undefined; +/** + * @member {String} ldap_token_expiration + */ + +LdapConfigPart.prototype['ldap_token_expiration'] = undefined; +/** + * @member {String} ldap_url + */ + +LdapConfigPart.prototype['ldap_url'] = undefined; +/** + * @member {String} ldap_user_attr + */ + +LdapConfigPart.prototype['ldap_user_attr'] = undefined; +/** + * @member {String} ldap_user_dn + */ + +LdapConfigPart.prototype['ldap_user_dn'] = undefined; +var _default = LdapConfigPart; +exports["default"] = _default; + +/***/ }), + +/***/ 11780: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The LdapTargetDetails model module. + * @module model/LdapTargetDetails + * @version 3.6.3 + */ +var LdapTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new LdapTargetDetails. + * LdapTargetDetails + * @alias module:model/LdapTargetDetails + */ + function LdapTargetDetails() { + _classCallCheck(this, LdapTargetDetails); + + LdapTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LdapTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Generates an URL to revoke the given token. - * @param token The existing token to be revoked. + * Constructs a LdapTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LdapTargetDetails} obj Optional instance to populate. + * @return {module:model/LdapTargetDetails} The populated LdapTargetDetails instance. */ - static getRevokeTokenUrl(token) { - const parameters = querystring.stringify({ token }); - return `${OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_}?${parameters}`; - } - revokeToken(token, callback) { - const opts = { - url: OAuth2Client.getRevokeTokenUrl(token), - method: 'POST', - }; - if (callback) { - this.transporter - .request(opts) - .then(r => callback(null, r), callback); - } - else { - return this.transporter.request(opts); - } - } - revokeCredentials(callback) { - if (callback) { - this.revokeCredentialsAsync().then(res => callback(null, res), callback); - } - else { - return this.revokeCredentialsAsync(); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LdapTargetDetails(); + + if (data.hasOwnProperty('implementation_type')) { + obj['implementation_type'] = _ApiClient["default"].convertToType(data['implementation_type'], 'String'); } - } - async revokeCredentialsAsync() { - const token = this.credentials.access_token; - this.credentials = {}; - if (token) { - return this.revokeToken(token); + + if (data.hasOwnProperty('ldap_audience')) { + obj['ldap_audience'] = _ApiClient["default"].convertToType(data['ldap_audience'], 'String'); } - else { - throw new Error('No access token to revoke.'); + + if (data.hasOwnProperty('ldap_bind_dn')) { + obj['ldap_bind_dn'] = _ApiClient["default"].convertToType(data['ldap_bind_dn'], 'String'); } - } - request(opts, callback) { - if (callback) { - this.requestAsync(opts).then(r => callback(null, r), e => { - return callback(e, e.response); - }); + + if (data.hasOwnProperty('ldap_bind_password')) { + obj['ldap_bind_password'] = _ApiClient["default"].convertToType(data['ldap_bind_password'], 'String'); } - else { - return this.requestAsync(opts); + + if (data.hasOwnProperty('ldap_certificate')) { + obj['ldap_certificate'] = _ApiClient["default"].convertToType(data['ldap_certificate'], 'String'); } - } - async requestAsync(opts, retry = false) { - let r2; - try { - const r = await this.getRequestMetadataAsync(opts.url); - opts.headers = opts.headers || {}; - if (r.headers && r.headers['x-goog-user-project']) { - opts.headers['x-goog-user-project'] = r.headers['x-goog-user-project']; - } - if (r.headers && r.headers.Authorization) { - opts.headers.Authorization = r.headers.Authorization; - } - if (this.apiKey) { - opts.headers['X-Goog-Api-Key'] = this.apiKey; - } - r2 = await this.transporter.request(opts); + + if (data.hasOwnProperty('ldap_token_expiration')) { + obj['ldap_token_expiration'] = _ApiClient["default"].convertToType(data['ldap_token_expiration'], 'String'); } - catch (e) { - const res = e.response; - if (res) { - const statusCode = res.status; - // Retry the request for metadata if the following criteria are true: - // - We haven't already retried. It only makes sense to retry once. - // - The response was a 401 or a 403 - // - The request didn't send a readableStream - // - An access_token and refresh_token were available, but either no - // expiry_date was available or the forceRefreshOnFailure flag is set. - // The absent expiry_date case can happen when developers stash the - // access_token and refresh_token for later use, but the access_token - // fails on the first try because it's expired. Some developers may - // choose to enable forceRefreshOnFailure to mitigate time-related - // errors. - // Or the following criteria are true: - // - We haven't already retried. It only makes sense to retry once. - // - The response was a 401 or a 403 - // - The request didn't send a readableStream - // - No refresh_token was available - // - An access_token and a refreshHandler callback were available, but - // either no expiry_date was available or the forceRefreshOnFailure - // flag is set. The access_token fails on the first try because it's - // expired. Some developers may choose to enable forceRefreshOnFailure - // to mitigate time-related errors. - const mayRequireRefresh = this.credentials && - this.credentials.access_token && - this.credentials.refresh_token && - (!this.credentials.expiry_date || this.forceRefreshOnFailure); - const mayRequireRefreshWithNoRefreshToken = this.credentials && - this.credentials.access_token && - !this.credentials.refresh_token && - (!this.credentials.expiry_date || this.forceRefreshOnFailure) && - this.refreshHandler; - const isReadableStream = res.config.data instanceof stream.Readable; - const isAuthErr = statusCode === 401 || statusCode === 403; - if (!retry && isAuthErr && !isReadableStream && mayRequireRefresh) { - await this.refreshAccessTokenAsync(); - return this.requestAsync(opts, true); - } - else if (!retry && - isAuthErr && - !isReadableStream && - mayRequireRefreshWithNoRefreshToken) { - const refreshedAccessToken = await this.processAndValidateRefreshHandler(); - if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { - this.setCredentials(refreshedAccessToken); - } - return this.requestAsync(opts, true); - } - } - throw e; + + if (data.hasOwnProperty('ldap_url')) { + obj['ldap_url'] = _ApiClient["default"].convertToType(data['ldap_url'], 'String'); } - return r2; + } + + return obj; } - verifyIdToken(options, callback) { - // This function used to accept two arguments instead of an options object. - // Check the types to help users upgrade with less pain. - // This check can be removed after a 2.0 release. - if (callback && typeof callback !== 'function') { - throw new Error('This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.'); - } - if (callback) { - this.verifyIdTokenAsync(options).then(r => callback(null, r), callback); - } - else { - return this.verifyIdTokenAsync(options); + }]); + + return LdapTargetDetails; +}(); +/** + * @member {String} implementation_type + */ + + +LdapTargetDetails.prototype['implementation_type'] = undefined; +/** + * @member {String} ldap_audience + */ + +LdapTargetDetails.prototype['ldap_audience'] = undefined; +/** + * @member {String} ldap_bind_dn + */ + +LdapTargetDetails.prototype['ldap_bind_dn'] = undefined; +/** + * @member {String} ldap_bind_password + */ + +LdapTargetDetails.prototype['ldap_bind_password'] = undefined; +/** + * @member {String} ldap_certificate + */ + +LdapTargetDetails.prototype['ldap_certificate'] = undefined; +/** + * @member {String} ldap_token_expiration + */ + +LdapTargetDetails.prototype['ldap_token_expiration'] = undefined; +/** + * @member {String} ldap_url + */ + +LdapTargetDetails.prototype['ldap_url'] = undefined; +var _default = LdapTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 25900: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The LeadershipConfigPart model module. + * @module model/LeadershipConfigPart + * @version 3.6.3 + */ +var LeadershipConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new LeadershipConfigPart. + * @alias module:model/LeadershipConfigPart + */ + function LeadershipConfigPart() { + _classCallCheck(this, LeadershipConfigPart); + + LeadershipConfigPart.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LeadershipConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a LeadershipConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LeadershipConfigPart} obj Optional instance to populate. + * @return {module:model/LeadershipConfigPart} The populated LeadershipConfigPart instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LeadershipConfigPart(); + + if (data.hasOwnProperty('open_leadership')) { + obj['open_leadership'] = _ApiClient["default"].convertToType(data['open_leadership'], ['Number']); } + } + + return obj; } - async verifyIdTokenAsync(options) { - if (!options.idToken) { - throw new Error('The verifyIdToken method requires an ID Token'); + }]); + + return LeadershipConfigPart; +}(); +/** + * @member {Array.} open_leadership + */ + + +LeadershipConfigPart.prototype['open_leadership'] = undefined; +var _default = LeadershipConfigPart; +exports["default"] = _default; + +/***/ }), + +/***/ 33863: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The LinkedDetails model module. + * @module model/LinkedDetails + * @version 3.6.3 + */ +var LinkedDetails = /*#__PURE__*/function () { + /** + * Constructs a new LinkedDetails. + * @alias module:model/LinkedDetails + */ + function LinkedDetails() { + _classCallCheck(this, LinkedDetails); + + LinkedDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LinkedDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a LinkedDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LinkedDetails} obj Optional instance to populate. + * @return {module:model/LinkedDetails} The populated LinkedDetails instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LinkedDetails(); + + if (data.hasOwnProperty('hosts')) { + obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], { + 'String': 'String' + }); } - const response = await this.getFederatedSignonCertsAsync(); - const login = await this.verifySignedJwtWithCertsAsync(options.idToken, response.certs, options.audience, OAuth2Client.ISSUERS_, options.maxExpiry); - return login; + } + + return obj; } + }]); + + return LinkedDetails; +}(); +/** + * @member {Object.} hosts + */ + + +LinkedDetails.prototype['hosts'] = undefined; +var _default = LinkedDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 35968: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The LinkedTargetDetails model module. + * @module model/LinkedTargetDetails + * @version 3.6.3 + */ +var LinkedTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new LinkedTargetDetails. + * LinkedTargetDetails + * @alias module:model/LinkedTargetDetails + */ + function LinkedTargetDetails() { + _classCallCheck(this, LinkedTargetDetails); + + LinkedTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LinkedTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Obtains information about the provisioned access token. Especially useful - * if you want to check the scopes that were provisioned to a given token. - * - * @param accessToken Required. The Access Token for which you want to get - * user info. + * Constructs a LinkedTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LinkedTargetDetails} obj Optional instance to populate. + * @return {module:model/LinkedTargetDetails} The populated LinkedTargetDetails instance. */ - async getTokenInfo(accessToken) { - const { data } = await this.transporter.request({ - method: 'POST', - headers: { - 'Content-Type': 'application/x-www-form-urlencoded', - Authorization: `Bearer ${accessToken}`, - }, - url: OAuth2Client.GOOGLE_TOKEN_INFO_URL, - }); - const info = Object.assign({ - expiry_date: new Date().getTime() + data.expires_in * 1000, - scopes: data.scope.split(' '), - }, data); - delete info.expires_in; - delete info.scope; - return info; - } - getFederatedSignonCerts(callback) { - if (callback) { - this.getFederatedSignonCertsAsync().then(r => callback(null, r.certs, r.res), callback); - } - else { - return this.getFederatedSignonCertsAsync(); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LinkedTargetDetails(); + + if (data.hasOwnProperty('hosts')) { + obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], { + 'String': 'String' + }); } + } + + return obj; } - async getFederatedSignonCertsAsync() { - const nowTime = new Date().getTime(); - const format = crypto_1.hasBrowserCrypto() - ? CertificateFormat.JWK - : CertificateFormat.PEM; - if (this.certificateExpiry && - nowTime < this.certificateExpiry.getTime() && - this.certificateCacheFormat === format) { - return { certs: this.certificateCache, format }; - } - let res; - let url; - switch (format) { - case CertificateFormat.PEM: - url = OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_; - break; - case CertificateFormat.JWK: - url = OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_; - break; - default: - throw new Error(`Unsupported certificate format ${format}`); - } - try { - res = await this.transporter.request({ url }); + }]); + + return LinkedTargetDetails; +}(); +/** + * key hostname, value description + * @member {Object.} hosts + */ + + +LinkedTargetDetails.prototype['hosts'] = undefined; +var _default = LinkedTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 60486: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ListAuthMethods model module. + * @module model/ListAuthMethods + * @version 3.6.3 + */ +var ListAuthMethods = /*#__PURE__*/function () { + /** + * Constructs a new ListAuthMethods. + * listAuthMethods is a command that returns a list of all auth methods in the account. + * @alias module:model/ListAuthMethods + */ + function ListAuthMethods() { + _classCallCheck(this, ListAuthMethods); + + ListAuthMethods.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ListAuthMethods, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ListAuthMethods from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListAuthMethods} obj Optional instance to populate. + * @return {module:model/ListAuthMethods} The populated ListAuthMethods instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListAuthMethods(); + + if (data.hasOwnProperty('filter')) { + obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); } - catch (e) { - e.message = `Failed to retrieve verification certificates: ${e.message}`; - throw e; + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - const cacheControl = res ? res.headers['cache-control'] : undefined; - let cacheAge = -1; - if (cacheControl) { - const pattern = new RegExp('max-age=([0-9]*)'); - const regexResult = pattern.exec(cacheControl); - if (regexResult && regexResult.length === 2) { - // Cache results with max-age (in seconds) - cacheAge = Number(regexResult[1]) * 1000; // milliseconds - } + + if (data.hasOwnProperty('pagination-token')) { + obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); } - let certificates = {}; - switch (format) { - case CertificateFormat.PEM: - certificates = res.data; - break; - case CertificateFormat.JWK: - for (const key of res.data.keys) { - certificates[key.kid] = key; - } - break; - default: - throw new Error(`Unsupported certificate format ${format}`); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - const now = new Date(); - this.certificateExpiry = - cacheAge === -1 ? null : new Date(now.getTime() + cacheAge); - this.certificateCache = certificates; - this.certificateCacheFormat = format; - return { certs: certificates, format, res }; - } - getIapPublicKeys(callback) { - if (callback) { - this.getIapPublicKeysAsync().then(r => callback(null, r.pubkeys, r.res), callback); + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], ['String']); } - else { - return this.getIapPublicKeysAsync(); + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + } + + return obj; } - async getIapPublicKeysAsync() { - let res; - const url = OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_; - try { - res = await this.transporter.request({ url }); + }]); + + return ListAuthMethods; +}(); +/** + * Filter by auth method name or part of it + * @member {String} filter + */ + + +ListAuthMethods.prototype['filter'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +ListAuthMethods.prototype['json'] = false; +/** + * Next page reference + * @member {String} pagination-token + */ + +ListAuthMethods.prototype['pagination-token'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +ListAuthMethods.prototype['token'] = undefined; +/** + * The Auth method types list of the requested method. In case it is empty, all types of auth methods will be returned. options: [api_key, azure_ad, oauth2/jwt, saml2, ldap, aws_iam, oidc, universal_identity, gcp, k8s, cert] + * @member {Array.} type + */ + +ListAuthMethods.prototype['type'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +ListAuthMethods.prototype['uid-token'] = undefined; +var _default = ListAuthMethods; +exports["default"] = _default; + +/***/ }), + +/***/ 8995: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _AuthMethod = _interopRequireDefault(__nccwpck_require__(52187)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ListAuthMethodsOutput model module. + * @module model/ListAuthMethodsOutput + * @version 3.6.3 + */ +var ListAuthMethodsOutput = /*#__PURE__*/function () { + /** + * Constructs a new ListAuthMethodsOutput. + * @alias module:model/ListAuthMethodsOutput + */ + function ListAuthMethodsOutput() { + _classCallCheck(this, ListAuthMethodsOutput); + + ListAuthMethodsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ListAuthMethodsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ListAuthMethodsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListAuthMethodsOutput} obj Optional instance to populate. + * @return {module:model/ListAuthMethodsOutput} The populated ListAuthMethodsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListAuthMethodsOutput(); + + if (data.hasOwnProperty('auth_methods')) { + obj['auth_methods'] = _ApiClient["default"].convertToType(data['auth_methods'], [_AuthMethod["default"]]); } - catch (e) { - e.message = `Failed to retrieve verification certificates: ${e.message}`; - throw e; + + if (data.hasOwnProperty('next_page')) { + obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); } - return { pubkeys: res.data, res }; - } - verifySignedJwtWithCerts() { - // To make the code compatible with browser SubtleCrypto we need to make - // this method async. - throw new Error('verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.'); + } + + return obj; } + }]); + + return ListAuthMethodsOutput; +}(); +/** + * @member {Array.} auth_methods + */ + + +ListAuthMethodsOutput.prototype['auth_methods'] = undefined; +/** + * @member {String} next_page + */ + +ListAuthMethodsOutput.prototype['next_page'] = undefined; +var _default = ListAuthMethodsOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 91099: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ListGateways model module. + * @module model/ListGateways + * @version 3.6.3 + */ +var ListGateways = /*#__PURE__*/function () { + /** + * Constructs a new ListGateways. + * @alias module:model/ListGateways + */ + function ListGateways() { + _classCallCheck(this, ListGateways); + + ListGateways.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ListGateways, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Verify the id token is signed with the correct certificate - * and is from the correct audience. - * @param jwt The jwt to verify (The ID Token in this case). - * @param certs The array of certs to test the jwt against. - * @param requiredAudience The audience to test the jwt against. - * @param issuers The allowed issuers of the jwt (Optional). - * @param maxExpiry The max expiry the certificate can be (Optional). - * @return Returns a promise resolving to LoginTicket on verification. + * Constructs a ListGateways from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListGateways} obj Optional instance to populate. + * @return {module:model/ListGateways} The populated ListGateways instance. */ - async verifySignedJwtWithCertsAsync(jwt, certs, requiredAudience, issuers, maxExpiry) { - const crypto = crypto_1.createCrypto(); - if (!maxExpiry) { - maxExpiry = OAuth2Client.MAX_TOKEN_LIFETIME_SECS_; - } - const segments = jwt.split('.'); - if (segments.length !== 3) { - throw new Error('Wrong number of segments in token: ' + jwt); - } - const signed = segments[0] + '.' + segments[1]; - let signature = segments[2]; - let envelope; - let payload; - try { - envelope = JSON.parse(crypto.decodeBase64StringUtf8(segments[0])); - } - catch (err) { - err.message = `Can't parse token envelope: ${segments[0]}': ${err.message}`; - throw err; - } - if (!envelope) { - throw new Error("Can't parse token envelope: " + segments[0]); - } - try { - payload = JSON.parse(crypto.decodeBase64StringUtf8(segments[1])); - } - catch (err) { - err.message = `Can't parse token payload '${segments[0]}`; - throw err; - } - if (!payload) { - throw new Error("Can't parse token payload: " + segments[1]); - } - if (!Object.prototype.hasOwnProperty.call(certs, envelope.kid)) { - // If this is not present, then there's no reason to attempt verification - throw new Error('No pem found for envelope: ' + JSON.stringify(envelope)); - } - const cert = certs[envelope.kid]; - if (envelope.alg === 'ES256') { - signature = formatEcdsa.joseToDer(signature, 'ES256').toString('base64'); - } - const verified = await crypto.verify(cert, signed, signature); - if (!verified) { - throw new Error('Invalid token signature: ' + jwt); - } - if (!payload.iat) { - throw new Error('No issue time in token: ' + JSON.stringify(payload)); - } - if (!payload.exp) { - throw new Error('No expiration time in token: ' + JSON.stringify(payload)); - } - const iat = Number(payload.iat); - if (isNaN(iat)) - throw new Error('iat field using invalid format'); - const exp = Number(payload.exp); - if (isNaN(exp)) - throw new Error('exp field using invalid format'); - const now = new Date().getTime() / 1000; - if (exp >= now + maxExpiry) { - throw new Error('Expiration time too far in future: ' + JSON.stringify(payload)); - } - const earliest = iat - OAuth2Client.CLOCK_SKEW_SECS_; - const latest = exp + OAuth2Client.CLOCK_SKEW_SECS_; - if (now < earliest) { - throw new Error('Token used too early, ' + - now + - ' < ' + - earliest + - ': ' + - JSON.stringify(payload)); - } - if (now > latest) { - throw new Error('Token used too late, ' + - now + - ' > ' + - latest + - ': ' + - JSON.stringify(payload)); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListGateways(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (issuers && issuers.indexOf(payload.iss) < 0) { - throw new Error('Invalid issuer, expected one of [' + - issuers + - '], but got ' + - payload.iss); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - // Check the audience matches if we have one - if (typeof requiredAudience !== 'undefined' && requiredAudience !== null) { - const aud = payload.aud; - let audVerified = false; - // If the requiredAudience is an array, check if it contains token - // audience - if (requiredAudience.constructor === Array) { - audVerified = requiredAudience.indexOf(aud) > -1; - } - else { - audVerified = aud === requiredAudience; - } - if (!audVerified) { - throw new Error('Wrong recipient, payload audience != requiredAudience'); - } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - return new loginticket_1.LoginTicket(envelope, payload); + } + + return obj; } + }]); + + return ListGateways; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +ListGateways.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +ListGateways.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +ListGateways.prototype['uid-token'] = undefined; +var _default = ListGateways; +exports["default"] = _default; + +/***/ }), + +/***/ 46460: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ListGroups model module. + * @module model/ListGroups + * @version 3.6.3 + */ +var ListGroups = /*#__PURE__*/function () { + /** + * Constructs a new ListGroups. + * @alias module:model/ListGroups + */ + function ListGroups() { + _classCallCheck(this, ListGroups); + + ListGroups.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ListGroups, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Returns a promise that resolves with AccessTokenResponse type if - * refreshHandler is defined. - * If not, nothing is returned. + * Constructs a ListGroups from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListGroups} obj Optional instance to populate. + * @return {module:model/ListGroups} The populated ListGroups instance. */ - async processAndValidateRefreshHandler() { - if (this.refreshHandler) { - const accessTokenResponse = await this.refreshHandler(); - if (!accessTokenResponse.access_token) { - throw new Error('No access token is returned by the refreshHandler callback.'); - } - return accessTokenResponse; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListGroups(); + + if (data.hasOwnProperty('filter')) { + obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('pagination-token')) { + obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - return; - } - /** - * Returns true if a token is expired or will expire within - * eagerRefreshThresholdMillismilliseconds. - * If there is no expiry time, assumes the token is not expired or expiring. - */ - isTokenExpiring() { - const expiryDate = this.credentials.expiry_date; - return expiryDate - ? expiryDate <= new Date().getTime() + this.eagerRefreshThresholdMillis - : false; + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } -} -exports.OAuth2Client = OAuth2Client; -OAuth2Client.GOOGLE_TOKEN_INFO_URL = 'https://oauth2.googleapis.com/tokeninfo'; -/** - * The base URL for auth endpoints. - */ -OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_ = 'https://accounts.google.com/o/oauth2/v2/auth'; -/** - * The base endpoint for token retrieval. - */ -OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_ = 'https://oauth2.googleapis.com/token'; -/** - * The base endpoint to revoke tokens. - */ -OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_ = 'https://oauth2.googleapis.com/revoke'; -/** - * Google Sign on certificates in PEM format. - */ -OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_ = 'https://www.googleapis.com/oauth2/v1/certs'; + }]); + + return ListGroups; +}(); /** - * Google Sign on certificates in JWK format. + * Filter by auth method name or part of it + * @member {String} filter */ -OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_ = 'https://www.googleapis.com/oauth2/v3/certs'; + + +ListGroups.prototype['filter'] = undefined; /** - * Google Sign on certificates in JWK format. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_ = 'https://www.gstatic.com/iap/verify/public_key'; + +ListGroups.prototype['json'] = false; /** - * Clock skew - five minutes in seconds + * Next page reference + * @member {String} pagination-token */ -OAuth2Client.CLOCK_SKEW_SECS_ = 300; + +ListGroups.prototype['pagination-token'] = undefined; /** - * Max Token Lifetime is one day in seconds + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -OAuth2Client.MAX_TOKEN_LIFETIME_SECS_ = 86400; + +ListGroups.prototype['token'] = undefined; /** - * The allowed oauth token issuers. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -OAuth2Client.ISSUERS_ = [ - 'accounts.google.com', - 'https://accounts.google.com', -]; -//# sourceMappingURL=oauth2client.js.map + +ListGroups.prototype['uid-token'] = undefined; +var _default = ListGroups; +exports["default"] = _default; /***/ }), -/***/ 6653: +/***/ 88061: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getErrorFromOAuthErrorResponse = exports.OAuthClientAuthHandler = void 0; -const querystring = __nccwpck_require__(83480); -const crypto_1 = __nccwpck_require__(88851); -/** List of HTTP methods that accept request bodies. */ -const METHODS_SUPPORTING_REQUEST_BODY = ['PUT', 'POST', 'PATCH']; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _Group = _interopRequireDefault(__nccwpck_require__(1617)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Abstract class for handling client authentication in OAuth-based - * operations. - * When request-body client authentication is used, only application/json and - * application/x-www-form-urlencoded content types for HTTP methods that support - * request bodies are supported. + * The ListGroupsOutput model module. + * @module model/ListGroupsOutput + * @version 3.6.3 */ -class OAuthClientAuthHandler { - /** - * Instantiates an OAuth client authentication handler. - * @param clientAuthentication The client auth credentials. - */ - constructor(clientAuthentication) { - this.clientAuthentication = clientAuthentication; - this.crypto = crypto_1.createCrypto(); - } - /** - * Applies client authentication on the OAuth request's headers or POST - * body but does not process the request. - * @param opts The GaxiosOptions whose headers or data are to be modified - * depending on the client authentication mechanism to be used. - * @param bearerToken The optional bearer token to use for authentication. - * When this is used, no client authentication credentials are needed. - */ - applyClientAuthenticationOptions(opts, bearerToken) { - // Inject authenticated header. - this.injectAuthenticatedHeaders(opts, bearerToken); - // Inject authenticated request body. - if (!bearerToken) { - this.injectAuthenticatedRequestBody(opts); - } - } +var ListGroupsOutput = /*#__PURE__*/function () { + /** + * Constructs a new ListGroupsOutput. + * @alias module:model/ListGroupsOutput + */ + function ListGroupsOutput() { + _classCallCheck(this, ListGroupsOutput); + + ListGroupsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ListGroupsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Applies client authentication on the request's header if either - * basic authentication or bearer token authentication is selected. - * - * @param opts The GaxiosOptions whose headers or data are to be modified - * depending on the client authentication mechanism to be used. - * @param bearerToken The optional bearer token to use for authentication. - * When this is used, no client authentication credentials are needed. + * Constructs a ListGroupsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListGroupsOutput} obj Optional instance to populate. + * @return {module:model/ListGroupsOutput} The populated ListGroupsOutput instance. */ - injectAuthenticatedHeaders(opts, bearerToken) { - var _a; - // Bearer token prioritized higher than basic Auth. - if (bearerToken) { - opts.headers = opts.headers || {}; - Object.assign(opts.headers, { - Authorization: `Bearer ${bearerToken}}`, - }); - } - else if (((_a = this.clientAuthentication) === null || _a === void 0 ? void 0 : _a.confidentialClientType) === 'basic') { - opts.headers = opts.headers || {}; - const clientId = this.clientAuthentication.clientId; - const clientSecret = this.clientAuthentication.clientSecret || ''; - const base64EncodedCreds = this.crypto.encodeBase64StringUtf8(`${clientId}:${clientSecret}`); - Object.assign(opts.headers, { - Authorization: `Basic ${base64EncodedCreds}`, - }); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListGroupsOutput(); + + if (data.hasOwnProperty('groups')) { + obj['groups'] = _ApiClient["default"].convertToType(data['groups'], [_Group["default"]]); } - } - /** - * Applies client authentication on the request's body if request-body - * client authentication is selected. - * - * @param opts The GaxiosOptions whose headers or data are to be modified - * depending on the client authentication mechanism to be used. - */ - injectAuthenticatedRequestBody(opts) { - var _a; - if (((_a = this.clientAuthentication) === null || _a === void 0 ? void 0 : _a.confidentialClientType) === 'request-body') { - const method = (opts.method || 'GET').toUpperCase(); - // Inject authenticated request body. - if (METHODS_SUPPORTING_REQUEST_BODY.indexOf(method) !== -1) { - // Get content-type. - let contentType; - const headers = opts.headers || {}; - for (const key in headers) { - if (key.toLowerCase() === 'content-type' && headers[key]) { - contentType = headers[key].toLowerCase(); - break; - } - } - if (contentType === 'application/x-www-form-urlencoded') { - opts.data = opts.data || ''; - const data = querystring.parse(opts.data); - Object.assign(data, { - client_id: this.clientAuthentication.clientId, - client_secret: this.clientAuthentication.clientSecret || '', - }); - opts.data = querystring.stringify(data); - } - else if (contentType === 'application/json') { - opts.data = opts.data || {}; - Object.assign(opts.data, { - client_id: this.clientAuthentication.clientId, - client_secret: this.clientAuthentication.clientSecret || '', - }); - } - else { - throw new Error(`${contentType} content-types are not supported with ` + - `${this.clientAuthentication.confidentialClientType} ` + - 'client authentication'); - } - } - else { - throw new Error(`${method} HTTP method does not support ` + - `${this.clientAuthentication.confidentialClientType} ` + - 'client authentication'); - } + + if (data.hasOwnProperty('next_page')) { + obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); } + } + + return obj; } -} -exports.OAuthClientAuthHandler = OAuthClientAuthHandler; + }]); + + return ListGroupsOutput; +}(); /** - * Converts an OAuth error response to a native JavaScript Error. - * @param resp The OAuth error response to convert to a native Error object. - * @param err The optional original error. If provided, the error properties - * will be copied to the new error. - * @return The converted native Error object. + * @member {Array.} groups */ -function getErrorFromOAuthErrorResponse(resp, err) { - // Error response. - const errorCode = resp.error; - const errorDescription = resp.error_description; - const errorUri = resp.error_uri; - let message = `Error code ${errorCode}`; - if (typeof errorDescription !== 'undefined') { - message += `: ${errorDescription}`; - } - if (typeof errorUri !== 'undefined') { - message += ` - ${errorUri}`; - } - const newError = new Error(message); - // Copy properties from original error to newly generated error. - if (err) { - const keys = Object.keys(err); - if (err.stack) { - // Copy error.stack if available. - keys.push('stack'); - } - keys.forEach(key => { - // Do not overwrite the message field. - if (key !== 'message') { - Object.defineProperty(newError, key, { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - value: err[key], - writable: false, - enumerable: true, - }); - } - }); - } - return newError; -} -exports.getErrorFromOAuthErrorResponse = getErrorFromOAuthErrorResponse; -//# sourceMappingURL=oauth2common.js.map + + +ListGroupsOutput.prototype['groups'] = undefined; +/** + * @member {String} next_page + */ + +ListGroupsOutput.prototype['next_page'] = undefined; +var _default = ListGroupsOutput; +exports["default"] = _default; /***/ }), -/***/ 99807: +/***/ 27410: /***/ ((__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 = void 0; -const oauth2client_1 = __nccwpck_require__(32472); -class UserRefreshClient extends oauth2client_1.OAuth2Client { - constructor(optionsOrClientId, clientSecret, refreshToken, eagerRefreshThresholdMillis, forceRefreshOnFailure) { - const opts = optionsOrClientId && typeof optionsOrClientId === 'object' - ? optionsOrClientId - : { - clientId: optionsOrClientId, - clientSecret, - refreshToken, - eagerRefreshThresholdMillis, - forceRefreshOnFailure, - }; - super({ - clientId: opts.clientId, - clientSecret: opts.clientSecret, - eagerRefreshThresholdMillis: opts.eagerRefreshThresholdMillis, - forceRefreshOnFailure: opts.forceRefreshOnFailure, - }); - this._refreshToken = opts.refreshToken; - this.credentials.refresh_token = opts.refreshToken; - } - /** - * Refreshes the access token. - * @param refreshToken An ignored refreshToken.. - * @param callback Optional callback. - */ - async refreshTokenNoCache( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - refreshToken) { - return super.refreshTokenNoCache(this._refreshToken); - } + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ListItems model module. + * @module model/ListItems + * @version 3.6.3 + */ +var ListItems = /*#__PURE__*/function () { + /** + * Constructs a new ListItems. + * @alias module:model/ListItems + */ + function ListItems() { + _classCallCheck(this, ListItems); + + ListItems.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ListItems, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Create a UserRefreshClient credentials instance using the given input - * options. - * @param json The input object. + * Constructs a ListItems from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListItems} obj Optional instance to populate. + * @return {module:model/ListItems} The populated ListItems instance. */ - 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'); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListItems(); + + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); } - if (!json.client_secret) { - throw new Error('The incoming JSON object does not contain a client_secret field'); + + if (data.hasOwnProperty('advanced-filter')) { + obj['advanced-filter'] = _ApiClient["default"].convertToType(data['advanced-filter'], 'String'); } - if (!json.refresh_token) { - throw new Error('The incoming JSON object does not contain a refresh_token field'); + + if (data.hasOwnProperty('auto-pagination')) { + obj['auto-pagination'] = _ApiClient["default"].convertToType(data['auto-pagination'], 'String'); } - this._clientId = json.client_id; - this._clientSecret = json.client_secret; - this._refreshToken = json.refresh_token; - this.credentials.refresh_token = json.refresh_token; - this.quotaProjectId = json.quota_project_id; - } - fromStream(inputStream, callback) { - if (callback) { - this.fromStreamAsync(inputStream).then(() => callback(), callback); + + if (data.hasOwnProperty('filter')) { + obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); } - else { - return this.fromStreamAsync(inputStream); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - } - async fromStreamAsync(inputStream) { - return new Promise((resolve, reject) => { - if (!inputStream) { - return reject(new Error('Must pass in a stream containing the user refresh token.')); - } - let s = ''; - inputStream - .setEncoding('utf8') - .on('error', reject) - .on('data', chunk => (s += chunk)) - .on('end', () => { - try { - const data = JSON.parse(s); - this.fromJSON(data); - return resolve(); - } - catch (err) { - return reject(err); - } - }); - }); - } -} -exports.UserRefreshClient = UserRefreshClient; -//# sourceMappingURL=refreshclient.js.map -/***/ }), + if (data.hasOwnProperty('minimal-view')) { + obj['minimal-view'] = _ApiClient["default"].convertToType(data['minimal-view'], 'Boolean'); + } -/***/ 121: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('modified-after')) { + obj['modified-after'] = _ApiClient["default"].convertToType(data['modified-after'], 'Number'); + } -"use strict"; + if (data.hasOwnProperty('pagination-token')) { + obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); + } -// 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 querystring = __nccwpck_require__(83480); -const transporters_1 = __nccwpck_require__(67633); -const oauth2common_1 = __nccwpck_require__(6653); -/** - * Implements the OAuth 2.0 token exchange based on - * https://tools.ietf.org/html/rfc8693 - */ -class StsCredentials extends oauth2common_1.OAuthClientAuthHandler { - /** - * Initializes an STS credentials instance. - * @param tokenExchangeEndpoint The token exchange endpoint. - * @param clientAuthentication The client authentication credentials if - * available. - */ - constructor(tokenExchangeEndpoint, clientAuthentication) { - super(clientAuthentication); - this.tokenExchangeEndpoint = tokenExchangeEndpoint; - this.transporter = new transporters_1.DefaultTransporter(); - } - /** - * Exchanges the provided token for another type of token based on the - * rfc8693 spec. - * @param stsCredentialsOptions The token exchange options used to populate - * the token exchange request. - * @param additionalHeaders Optional additional headers to pass along the - * request. - * @param options Optional additional GCP-specific non-spec defined options - * to send with the request. - * Example: `&options=${encodeUriComponent(JSON.stringified(options))}` - * @return A promise that resolves with the token exchange response containing - * the requested token and its expiration time. - */ - async exchangeToken(stsCredentialsOptions, additionalHeaders, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - options) { - var _a, _b, _c; - const values = { - grant_type: stsCredentialsOptions.grantType, - resource: stsCredentialsOptions.resource, - audience: stsCredentialsOptions.audience, - scope: (_a = stsCredentialsOptions.scope) === null || _a === void 0 ? void 0 : _a.join(' '), - requested_token_type: stsCredentialsOptions.requestedTokenType, - subject_token: stsCredentialsOptions.subjectToken, - subject_token_type: stsCredentialsOptions.subjectTokenType, - actor_token: (_b = stsCredentialsOptions.actingParty) === null || _b === void 0 ? void 0 : _b.actorToken, - actor_token_type: (_c = stsCredentialsOptions.actingParty) === null || _c === void 0 ? void 0 : _c.actorTokenType, - // Non-standard GCP-specific options. - options: options && JSON.stringify(options), - }; - // Remove undefined fields. - Object.keys(values).forEach(key => { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - if (typeof values[key] === 'undefined') { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - delete values[key]; - } - }); - const headers = { - 'Content-Type': 'application/x-www-form-urlencoded', - }; - // Inject additional STS headers if available. - Object.assign(headers, additionalHeaders || {}); - const opts = { - url: this.tokenExchangeEndpoint, - method: 'POST', - headers, - data: querystring.stringify(values), - responseType: 'json', - }; - // Apply OAuth client authentication. - this.applyClientAuthenticationOptions(opts); - try { - const response = await this.transporter.request(opts); - // Successful response. - const stsSuccessfulResponse = response.data; - stsSuccessfulResponse.res = response; - return stsSuccessfulResponse; + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); } - catch (error) { - // Translate error to OAuthError. - if (error.response) { - throw oauth2common_1.getErrorFromOAuthErrorResponse(error.response.data, - // Preserve other fields from the original error. - error); - } - // Request could fail before the server responds. - throw error; + + if (data.hasOwnProperty('sra-only')) { + obj['sra-only'] = _ApiClient["default"].convertToType(data['sra-only'], 'Boolean'); } - } -} -exports.StsCredentials = StsCredentials; -//# sourceMappingURL=stscredentials.js.map -/***/ }), + if (data.hasOwnProperty('sub_types')) { + obj['sub_types'] = _ApiClient["default"].convertToType(data['sub_types'], ['String']); + } -/***/ 93438: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('tag')) { + obj['tag'] = _ApiClient["default"].convertToType(data['tag'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/* global window */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BrowserCrypto = void 0; -// This file implements crypto functions we need using in-browser -// SubtleCrypto interface `window.crypto.subtle`. -const base64js = __nccwpck_require__(38793); -// Not all browsers support `TextEncoder`. The following `require` will -// provide a fast UTF8-only replacement for those browsers that don't support -// text encoding natively. -// eslint-disable-next-line node/no-unsupported-features/node-builtins -if (typeof process === 'undefined' && typeof TextEncoder === 'undefined') { - __nccwpck_require__(79463); -} -const crypto_1 = __nccwpck_require__(88851); -class BrowserCrypto { - constructor() { - if (typeof window === 'undefined' || - window.crypto === undefined || - window.crypto.subtle === undefined) { - throw new Error("SubtleCrypto not found. Make sure it's an https:// website."); + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], ['String']); } - } - async sha256DigestBase64(str) { - // SubtleCrypto digest() method is async, so we must make - // this method async as well. - // To calculate SHA256 digest using SubtleCrypto, we first - // need to convert an input string to an ArrayBuffer: - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const inputBuffer = new TextEncoder().encode(str); - // Result is ArrayBuffer as well. - const outputBuffer = await window.crypto.subtle.digest('SHA-256', inputBuffer); - return base64js.fromByteArray(new Uint8Array(outputBuffer)); - } - randomBytesBase64(count) { - const array = new Uint8Array(count); - window.crypto.getRandomValues(array); - return base64js.fromByteArray(array); - } - static padBase64(base64) { - // base64js requires padding, so let's add some '=' - while (base64.length % 4 !== 0) { - base64 += '='; + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - return base64; - } - async verify(pubkey, data, signature) { - const algo = { - name: 'RSASSA-PKCS1-v1_5', - hash: { name: 'SHA-256' }, - }; - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const dataArray = new TextEncoder().encode(data); - const signatureArray = base64js.toByteArray(BrowserCrypto.padBase64(signature)); - const cryptoKey = await window.crypto.subtle.importKey('jwk', pubkey, algo, true, ['verify']); - // SubtleCrypto's verify method is async so we must make - // this method async as well. - const result = await window.crypto.subtle.verify(algo, cryptoKey, signatureArray, dataArray); - return result; - } - async sign(privateKey, data) { - const algo = { - name: 'RSASSA-PKCS1-v1_5', - hash: { name: 'SHA-256' }, - }; - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const dataArray = new TextEncoder().encode(data); - const cryptoKey = await window.crypto.subtle.importKey('jwk', privateKey, algo, true, ['sign']); - // SubtleCrypto's sign method is async so we must make - // this method async as well. - const result = await window.crypto.subtle.sign(algo, cryptoKey, dataArray); - return base64js.fromByteArray(new Uint8Array(result)); - } - decodeBase64StringUtf8(base64) { - const uint8array = base64js.toByteArray(BrowserCrypto.padBase64(base64)); - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const result = new TextDecoder().decode(uint8array); - return result; - } - encodeBase64StringUtf8(text) { - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const uint8array = new TextEncoder().encode(text); - const result = base64js.fromByteArray(uint8array); - return result; - } - /** - * Computes the SHA-256 hash of the provided string. - * @param str The plain text string to hash. - * @return A promise that resolves with the SHA-256 hash of the provided - * string in hexadecimal encoding. - */ - async sha256DigestHex(str) { - // SubtleCrypto digest() method is async, so we must make - // this method async as well. - // To calculate SHA256 digest using SubtleCrypto, we first - // need to convert an input string to an ArrayBuffer: - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const inputBuffer = new TextEncoder().encode(str); - // Result is ArrayBuffer as well. - const outputBuffer = await window.crypto.subtle.digest('SHA-256', inputBuffer); - return crypto_1.fromArrayBufferToHex(outputBuffer); - } - /** - * Computes the HMAC hash of a message using the provided crypto key and the - * SHA-256 algorithm. - * @param key The secret crypto key in utf-8 or ArrayBuffer format. - * @param msg The plain text message. - * @return A promise that resolves with the HMAC-SHA256 hash in ArrayBuffer - * format. - */ - async signWithHmacSha256(key, msg) { - // Convert key, if provided in ArrayBuffer format, to string. - const rawKey = typeof key === 'string' - ? key - : String.fromCharCode(...new Uint16Array(key)); - // eslint-disable-next-line node/no-unsupported-features/node-builtins - const enc = new TextEncoder(); - const cryptoKey = await window.crypto.subtle.importKey('raw', enc.encode(rawKey), { - name: 'HMAC', - hash: { - name: 'SHA-256', - }, - }, false, ['sign']); - return window.crypto.subtle.sign('HMAC', cryptoKey, enc.encode(msg)); + } + + return obj; } -} -exports.BrowserCrypto = BrowserCrypto; -//# sourceMappingURL=crypto.js.map + }]); -/***/ }), + return ListItems; +}(); +/** + * for personal password manager + * @member {String} accessibility + * @default 'regular' + */ -/***/ 88851: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; +ListItems.prototype['accessibility'] = 'regular'; +/** + * Filter by item name/username/website or part of it + * @member {String} advanced-filter + */ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/* global window */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromArrayBufferToHex = exports.hasBrowserCrypto = exports.createCrypto = void 0; -const crypto_1 = __nccwpck_require__(93438); -const crypto_2 = __nccwpck_require__(27388); -function createCrypto() { - if (hasBrowserCrypto()) { - return new crypto_1.BrowserCrypto(); - } - return new crypto_2.NodeCrypto(); -} -exports.createCrypto = createCrypto; -function hasBrowserCrypto() { - return (typeof window !== 'undefined' && - typeof window.crypto !== 'undefined' && - typeof window.crypto.subtle !== 'undefined'); -} -exports.hasBrowserCrypto = hasBrowserCrypto; +ListItems.prototype['advanced-filter'] = undefined; /** - * Converts an ArrayBuffer to a hexadecimal string. - * @param arrayBuffer The ArrayBuffer to convert to hexadecimal string. - * @return The hexadecimal encoding of the ArrayBuffer. + * Retrieve all items using pagination, when disabled retrieving only first 1000 items + * @member {String} auto-pagination + * @default 'enabled' */ -function fromArrayBufferToHex(arrayBuffer) { - // Convert buffer to byte array. - const byteArray = Array.from(new Uint8Array(arrayBuffer)); - // Convert bytes to hex string. - return byteArray - .map(byte => { - return byte.toString(16).padStart(2, '0'); - }) - .join(''); -} -exports.fromArrayBufferToHex = fromArrayBufferToHex; -//# sourceMappingURL=crypto.js.map -/***/ }), +ListItems.prototype['auto-pagination'] = 'enabled'; +/** + * Filter by item name or part of it + * @member {String} filter + */ -/***/ 27388: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +ListItems.prototype['filter'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -"use strict"; +ListItems.prototype['json'] = false; +/** + * Show only basic information of the items + * @member {Boolean} minimal-view + */ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NodeCrypto = void 0; -const crypto = __nccwpck_require__(76982); -class NodeCrypto { - async sha256DigestBase64(str) { - return crypto.createHash('sha256').update(str).digest('base64'); - } - randomBytesBase64(count) { - return crypto.randomBytes(count).toString('base64'); - } - async verify(pubkey, data, signature) { - const verifier = crypto.createVerify('sha256'); - verifier.update(data); - verifier.end(); - return verifier.verify(pubkey, signature, 'base64'); - } - async sign(privateKey, data) { - const signer = crypto.createSign('RSA-SHA256'); - signer.update(data); - signer.end(); - return signer.sign(privateKey, 'base64'); - } - decodeBase64StringUtf8(base64) { - return Buffer.from(base64, 'base64').toString('utf-8'); - } - encodeBase64StringUtf8(text) { - return Buffer.from(text, 'utf-8').toString('base64'); - } - /** - * Computes the SHA-256 hash of the provided string. - * @param str The plain text string to hash. - * @return A promise that resolves with the SHA-256 hash of the provided - * string in hexadecimal encoding. - */ - async sha256DigestHex(str) { - return crypto.createHash('sha256').update(str).digest('hex'); - } - /** - * Computes the HMAC hash of a message using the provided crypto key and the - * SHA-256 algorithm. - * @param key The secret crypto key in utf-8 or ArrayBuffer format. - * @param msg The plain text message. - * @return A promise that resolves with the HMAC-SHA256 hash in ArrayBuffer - * format. - */ - async signWithHmacSha256(key, msg) { - const cryptoKey = typeof key === 'string' ? key : toBuffer(key); - return toArrayBuffer(crypto.createHmac('sha256', cryptoKey).update(msg).digest()); - } -} -exports.NodeCrypto = NodeCrypto; +ListItems.prototype['minimal-view'] = undefined; /** - * 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. + * List only secrets modified after specified date (in unix time) + * @member {Number} modified-after */ -function toArrayBuffer(buffer) { - return buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength); -} + +ListItems.prototype['modified-after'] = undefined; /** - * Converts an ArrayBuffer to a Node.js Buffer. - * @param arrayBuffer The ArrayBuffer input to covert. - * @return The Buffer representation of the input. + * Next page reference + * @member {String} pagination-token */ -function toBuffer(arrayBuffer) { - return Buffer.from(arrayBuffer); -} -//# sourceMappingURL=crypto.js.map -/***/ }), +ListItems.prototype['pagination-token'] = undefined; +/** + * Path to folder + * @member {String} path + */ -/***/ 492: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +ListItems.prototype['path'] = undefined; +/** + * Filter by items with SRA functionality enabled + * @member {Boolean} sra-only + * @default false + */ -"use strict"; +ListItems.prototype['sra-only'] = false; +/** + * @member {Array.} sub_types + */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GoogleAuth = exports.auth = void 0; -// Copyright 2017 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -const googleauth_1 = __nccwpck_require__(95934); -Object.defineProperty(exports, "GoogleAuth", ({ enumerable: true, get: function () { return googleauth_1.GoogleAuth; } })); -var authclient_1 = __nccwpck_require__(34810); -Object.defineProperty(exports, "AuthClient", ({ enumerable: true, get: function () { return authclient_1.AuthClient; } })); -var computeclient_1 = __nccwpck_require__(20977); -Object.defineProperty(exports, "Compute", ({ enumerable: true, get: function () { return computeclient_1.Compute; } })); -var envDetect_1 = __nccwpck_require__(60963); -Object.defineProperty(exports, "GCPEnv", ({ enumerable: true, get: function () { return envDetect_1.GCPEnv; } })); -var iam_1 = __nccwpck_require__(89390); -Object.defineProperty(exports, "IAMAuth", ({ enumerable: true, get: function () { return iam_1.IAMAuth; } })); -var idtokenclient_1 = __nccwpck_require__(12718); -Object.defineProperty(exports, "IdTokenClient", ({ enumerable: true, get: function () { return idtokenclient_1.IdTokenClient; } })); -var jwtaccess_1 = __nccwpck_require__(27060); -Object.defineProperty(exports, "JWTAccess", ({ enumerable: true, get: function () { return jwtaccess_1.JWTAccess; } })); -var jwtclient_1 = __nccwpck_require__(75277); -Object.defineProperty(exports, "JWT", ({ enumerable: true, get: function () { return jwtclient_1.JWT; } })); -var impersonated_1 = __nccwpck_require__(39964); -Object.defineProperty(exports, "Impersonated", ({ enumerable: true, get: function () { return impersonated_1.Impersonated; } })); -var oauth2client_1 = __nccwpck_require__(32472); -Object.defineProperty(exports, "CodeChallengeMethod", ({ enumerable: true, get: function () { return oauth2client_1.CodeChallengeMethod; } })); -Object.defineProperty(exports, "OAuth2Client", ({ enumerable: true, get: function () { return oauth2client_1.OAuth2Client; } })); -var loginticket_1 = __nccwpck_require__(53882); -Object.defineProperty(exports, "LoginTicket", ({ enumerable: true, get: function () { return loginticket_1.LoginTicket; } })); -var refreshclient_1 = __nccwpck_require__(99807); -Object.defineProperty(exports, "UserRefreshClient", ({ enumerable: true, get: function () { return refreshclient_1.UserRefreshClient; } })); -var awsclient_1 = __nccwpck_require__(81261); -Object.defineProperty(exports, "AwsClient", ({ enumerable: true, get: function () { return awsclient_1.AwsClient; } })); -var identitypoolclient_1 = __nccwpck_require__(29960); -Object.defineProperty(exports, "IdentityPoolClient", ({ enumerable: true, get: function () { return identitypoolclient_1.IdentityPoolClient; } })); -var externalclient_1 = __nccwpck_require__(88323); -Object.defineProperty(exports, "ExternalAccountClient", ({ enumerable: true, get: function () { return externalclient_1.ExternalAccountClient; } })); -var baseexternalclient_1 = __nccwpck_require__(142); -Object.defineProperty(exports, "BaseExternalAccountClient", ({ enumerable: true, get: function () { return baseexternalclient_1.BaseExternalAccountClient; } })); -var downscopedclient_1 = __nccwpck_require__(77556); -Object.defineProperty(exports, "DownscopedClient", ({ enumerable: true, get: function () { return downscopedclient_1.DownscopedClient; } })); -var transporters_1 = __nccwpck_require__(67633); -Object.defineProperty(exports, "DefaultTransporter", ({ enumerable: true, get: function () { return transporters_1.DefaultTransporter; } })); -const auth = new googleauth_1.GoogleAuth(); -exports.auth = auth; -//# sourceMappingURL=index.js.map +ListItems.prototype['sub_types'] = undefined; +/** + * Filter by item tag + * @member {String} tag + */ -/***/ }), +ListItems.prototype['tag'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -/***/ 78290: -/***/ ((__unused_webpack_module, exports) => { +ListItems.prototype['token'] = undefined; +/** + * The item types list of the requested items. In case it is empty, all types of items will be returned. options: [key, static-secret, dynamic-secret, classic-key] + * @member {Array.} type + */ -"use strict"; +ListItems.prototype['type'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -// Copyright 2017 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.validate = void 0; -// Accepts an options object passed from the user to the API. In the -// previous version of the API, it referred to a `Request` options object. -// Now it refers to an Axiox Request Config object. This is here to help -// ensure users don't pass invalid options when they upgrade from 0.x to 1.x. -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function validate(options) { - const vpairs = [ - { invalid: 'uri', expected: 'url' }, - { invalid: 'json', expected: 'data' }, - { invalid: 'qs', expected: 'params' }, - ]; - for (const pair of vpairs) { - if (options[pair.invalid]) { - const e = `'${pair.invalid}' is not a valid configuration option. Please use '${pair.expected}' instead. This library is using Axios for requests. Please see https://github.com/axios/axios to learn more about the valid request options.`; - throw new Error(e); - } - } -} -exports.validate = validate; -//# sourceMappingURL=options.js.map +ListItems.prototype['uid-token'] = undefined; +var _default = ListItems; +exports["default"] = _default; /***/ }), -/***/ 67633: +/***/ 423: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DefaultTransporter = void 0; -const gaxios_1 = __nccwpck_require__(97003); -const options_1 = __nccwpck_require__(78290); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const pkg = __nccwpck_require__(96066); -const PRODUCT_NAME = 'google-api-nodejs-client'; -class DefaultTransporter { + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _Item = _interopRequireDefault(__nccwpck_require__(23711)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ListItemsInPathOutput model module. + * @module model/ListItemsInPathOutput + * @version 3.6.3 + */ +var ListItemsInPathOutput = /*#__PURE__*/function () { + /** + * Constructs a new ListItemsInPathOutput. + * @alias module:model/ListItemsInPathOutput + */ + function ListItemsInPathOutput() { + _classCallCheck(this, ListItemsInPathOutput); + + ListItemsInPathOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ListItemsInPathOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Configures request options before making a request. - * @param opts GaxiosOptions options. - * @return Configured options. + * Constructs a ListItemsInPathOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListItemsInPathOutput} obj Optional instance to populate. + * @return {module:model/ListItemsInPathOutput} The populated ListItemsInPathOutput instance. */ - configure(opts = {}) { - opts.headers = opts.headers || {}; - if (typeof window === 'undefined') { - // set transporter user agent if not in browser - const uaValue = opts.headers['User-Agent']; - if (!uaValue) { - opts.headers['User-Agent'] = DefaultTransporter.USER_AGENT; - } - else if (!uaValue.includes(`${PRODUCT_NAME}/`)) { - opts.headers['User-Agent'] = `${uaValue} ${DefaultTransporter.USER_AGENT}`; - } - // track google-auth-library-nodejs version: - const authVersion = `auth/${pkg.version}`; - if (opts.headers['x-goog-api-client'] && - !opts.headers['x-goog-api-client'].includes(authVersion)) { - opts.headers['x-goog-api-client'] = `${opts.headers['x-goog-api-client']} ${authVersion}`; - } - else if (!opts.headers['x-goog-api-client']) { - const nodeVersion = process.version.replace(/^v/, ''); - opts.headers['x-goog-api-client'] = `gl-node/${nodeVersion} ${authVersion}`; - } - } - return opts; - } - request(opts, callback) { - // ensure the user isn't passing in request-style options - opts = this.configure(opts); - try { - options_1.validate(opts); - } - catch (e) { - if (callback) { - return callback(e); - } - else { - throw e; - } - } - if (callback) { - gaxios_1.request(opts).then(r => { - callback(null, r); - }, e => { - callback(this.processError(e)); - }); - } - else { - return gaxios_1.request(opts).catch(e => { - throw this.processError(e); - }); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListItemsInPathOutput(); + + if (data.hasOwnProperty('folders')) { + obj['folders'] = _ApiClient["default"].convertToType(data['folders'], ['String']); } - } - /** - * Changes the error to include details from the body. - */ - processError(e) { - const res = e.response; - const err = e; - const body = res ? res.data : null; - if (res && body && body.error && res.status !== 200) { - if (typeof body.error === 'string') { - err.message = body.error; - err.code = res.status.toString(); - } - else if (Array.isArray(body.error.errors)) { - err.message = body.error.errors - .map((err2) => err2.message) - .join('\n'); - err.code = body.error.code; - err.errors = body.error.errors; - } - else { - err.message = body.error.message; - err.code = body.error.code || res.status; - } + + if (data.hasOwnProperty('items')) { + obj['items'] = _ApiClient["default"].convertToType(data['items'], [_Item["default"]]); } - else if (res && res.status >= 400) { - // Consider all 4xx and 5xx responses errors. - err.message = body; - err.code = res.status.toString(); + + if (data.hasOwnProperty('next_page')) { + obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); } - return err; + } + + return obj; } -} -exports.DefaultTransporter = DefaultTransporter; + }]); + + return ListItemsInPathOutput; +}(); /** - * Default user agent. + * @member {Array.} folders */ -DefaultTransporter.USER_AGENT = `${PRODUCT_NAME}/${pkg.version}`; -//# sourceMappingURL=transporters.js.map + + +ListItemsInPathOutput.prototype['folders'] = undefined; +/** + * @member {Array.} items + */ + +ListItemsInPathOutput.prototype['items'] = undefined; +/** + * @member {String} next_page + */ + +ListItemsInPathOutput.prototype['next_page'] = undefined; +var _default = ListItemsInPathOutput; +exports["default"] = _default; /***/ }), -/***/ 8804: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 41751: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// A linked list to keep track of recently-used-ness -const Yallist = __nccwpck_require__(24658) +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -const MAX = Symbol('max') -const LENGTH = Symbol('length') -const LENGTH_CALCULATOR = Symbol('lengthCalculator') -const ALLOW_STALE = Symbol('allowStale') -const MAX_AGE = Symbol('maxAge') -const DISPOSE = Symbol('dispose') -const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet') -const LRU_LIST = Symbol('lruList') -const CACHE = Symbol('cache') -const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet') +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -const naiveLength = () => 1 +var _Item = _interopRequireDefault(__nccwpck_require__(23711)); -// lruList is a yallist where the head is the youngest -// item, and the tail is the oldest. the list contains the Hit -// objects as the entries. -// Each Hit object has a reference to its Yallist.Node. This -// never changes. -// -// cache is a Map (or PseudoMap) that matches the keys to -// the Yallist.Node object. -class LRUCache { - constructor (options) { - if (typeof options === 'number') - options = { max: options } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (!options) - options = {} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (options.max && (typeof options.max !== 'number' || options.max < 0)) - throw new TypeError('max must be a non-negative number') - // Kind of weird to have a default max of Infinity, but oh well. - const max = this[MAX] = options.max || Infinity +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - const lc = options.length || naiveLength - this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc - this[ALLOW_STALE] = options.stale || false - if (options.maxAge && typeof options.maxAge !== 'number') - throw new TypeError('maxAge must be a number') - this[MAX_AGE] = options.maxAge || 0 - this[DISPOSE] = options.dispose - this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false - this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false - this.reset() - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // resize the cache when the max changes. - set max (mL) { - if (typeof mL !== 'number' || mL < 0) - throw new TypeError('max must be a non-negative number') +/** + * The ListItemsOutput model module. + * @module model/ListItemsOutput + * @version 3.6.3 + */ +var ListItemsOutput = /*#__PURE__*/function () { + /** + * Constructs a new ListItemsOutput. + * @alias module:model/ListItemsOutput + */ + function ListItemsOutput() { + _classCallCheck(this, ListItemsOutput); - this[MAX] = mL || Infinity - trim(this) - } - get max () { - return this[MAX] + ListItemsOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - set allowStale (allowStale) { - this[ALLOW_STALE] = !!allowStale - } - get allowStale () { - return this[ALLOW_STALE] - } - set maxAge (mA) { - if (typeof mA !== 'number') - throw new TypeError('maxAge must be a non-negative number') + _createClass(ListItemsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ListItemsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListItemsOutput} obj Optional instance to populate. + * @return {module:model/ListItemsOutput} The populated ListItemsOutput instance. + */ - this[MAX_AGE] = mA - trim(this) - } - get maxAge () { - return this[MAX_AGE] - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListItemsOutput(); - // resize the cache when the lengthCalculator changes. - set lengthCalculator (lC) { - if (typeof lC !== 'function') - lC = naiveLength + if (data.hasOwnProperty('items')) { + obj['items'] = _ApiClient["default"].convertToType(data['items'], [_Item["default"]]); + } - if (lC !== this[LENGTH_CALCULATOR]) { - this[LENGTH_CALCULATOR] = lC - this[LENGTH] = 0 - this[LRU_LIST].forEach(hit => { - hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key) - this[LENGTH] += hit.length - }) + if (data.hasOwnProperty('next_page')) { + obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); + } + } + + return obj; } - trim(this) - } - get lengthCalculator () { return this[LENGTH_CALCULATOR] } + }]); - get length () { return this[LENGTH] } - get itemCount () { return this[LRU_LIST].length } + return ListItemsOutput; +}(); +/** + * @member {Array.} items + */ - rforEach (fn, thisp) { - thisp = thisp || this - for (let walker = this[LRU_LIST].tail; walker !== null;) { - const prev = walker.prev - forEachStep(this, fn, walker, thisp) - walker = prev - } - } - forEach (fn, thisp) { - thisp = thisp || this - for (let walker = this[LRU_LIST].head; walker !== null;) { - const next = walker.next - forEachStep(this, fn, walker, thisp) - walker = next - } - } +ListItemsOutput.prototype['items'] = undefined; +/** + * @member {String} next_page + */ - keys () { - return this[LRU_LIST].toArray().map(k => k.key) - } +ListItemsOutput.prototype['next_page'] = undefined; +var _default = ListItemsOutput; +exports["default"] = _default; - values () { - return this[LRU_LIST].toArray().map(k => k.value) - } +/***/ }), - reset () { - if (this[DISPOSE] && - this[LRU_LIST] && - this[LRU_LIST].length) { - this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value)) - } +/***/ 7007: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - this[CACHE] = new Map() // hash of items by key - this[LRU_LIST] = new Yallist() // list of items in order of use recency - this[LENGTH] = 0 // length of items in the list - } +"use strict"; - dump () { - return this[LRU_LIST].map(hit => - isStale(this, hit) ? false : { - k: hit.key, - v: hit.value, - e: hit.now + (hit.maxAge || 0) - }).toArray().filter(h => h) - } - dumpLru () { - return this[LRU_LIST] +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ListRoles model module. + * @module model/ListRoles + * @version 3.6.3 + */ +var ListRoles = /*#__PURE__*/function () { + /** + * Constructs a new ListRoles. + * @alias module:model/ListRoles + */ + function ListRoles() { + _classCallCheck(this, ListRoles); + + ListRoles.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ListRoles, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ListRoles from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListRoles} obj Optional instance to populate. + * @return {module:model/ListRoles} The populated ListRoles instance. + */ - set (key, value, maxAge) { - maxAge = maxAge || this[MAX_AGE] + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListRoles(); - if (maxAge && typeof maxAge !== 'number') - throw new TypeError('maxAge must be a number') + if (data.hasOwnProperty('filter')) { + obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); + } - const now = maxAge ? Date.now() : 0 - const len = this[LENGTH_CALCULATOR](value, key) + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - if (this[CACHE].has(key)) { - if (len > this[MAX]) { - del(this, this[CACHE].get(key)) - return false - } + if (data.hasOwnProperty('pagination-token')) { + obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); + } - const node = this[CACHE].get(key) - const item = node.value + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - // dispose of the old one before overwriting - // split out into 2 ifs for better coverage tracking - if (this[DISPOSE]) { - if (!this[NO_DISPOSE_ON_SET]) - this[DISPOSE](key, item.value) + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } } - item.now = now - item.maxAge = maxAge - item.value = value - this[LENGTH] += len - item.length - item.length = len - this.get(key) - trim(this) - return true + return obj; } + }]); - const hit = new Entry(key, value, len, now, maxAge) - - // oversized objects fall out of cache automatically. - if (hit.length > this[MAX]) { - if (this[DISPOSE]) - this[DISPOSE](key, value) + return ListRoles; +}(); +/** + * Filter by item name or part of it + * @member {String} filter + */ - return false - } - this[LENGTH] += hit.length - this[LRU_LIST].unshift(hit) - this[CACHE].set(key, this[LRU_LIST].head) - trim(this) - return true - } +ListRoles.prototype['filter'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - has (key) { - if (!this[CACHE].has(key)) return false - const hit = this[CACHE].get(key).value - return !isStale(this, hit) - } +ListRoles.prototype['json'] = false; +/** + * Next page reference + * @member {String} pagination-token + */ - get (key) { - return get(this, key, true) - } +ListRoles.prototype['pagination-token'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - peek (key) { - return get(this, key, false) - } +ListRoles.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - pop () { - const node = this[LRU_LIST].tail - if (!node) - return null +ListRoles.prototype['uid-token'] = undefined; +var _default = ListRoles; +exports["default"] = _default; - del(this, node) - return node.value - } +/***/ }), - del (key) { - del(this, this[CACHE].get(key)) - } +/***/ 65702: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - load (arr) { - // reset the cache - this.reset() +"use strict"; - const now = Date.now() - // A previous serialized cache has the most recent items first - for (let l = arr.length - 1; l >= 0; l--) { - const hit = arr[l] - const expiresAt = hit.e || 0 - if (expiresAt === 0) - // the item was created without expiration in a non aged cache - this.set(hit.k, hit.v) - else { - const maxAge = expiresAt - now - // dont add already expired items - if (maxAge > 0) { - this.set(hit.k, hit.v, maxAge) - } - } - } - } - prune () { - this[CACHE].forEach((value, key) => get(this, key, false)) - } -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -const get = (self, key, doUse) => { - const node = self[CACHE].get(key) - if (node) { - const hit = node.value - if (isStale(self, hit)) { - del(self, node) - if (!self[ALLOW_STALE]) - return undefined - } else { - if (doUse) { - if (self[UPDATE_AGE_ON_GET]) - node.value.now = Date.now() - self[LRU_LIST].unshiftNode(node) - } - } - return hit.value - } -} +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -const isStale = (self, hit) => { - if (!hit || (!hit.maxAge && !self[MAX_AGE])) - return false +var _Role = _interopRequireDefault(__nccwpck_require__(74264)); - const diff = Date.now() - hit.now - return hit.maxAge ? diff > hit.maxAge - : self[MAX_AGE] && (diff > self[MAX_AGE]) -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -const trim = self => { - if (self[LENGTH] > self[MAX]) { - for (let walker = self[LRU_LIST].tail; - self[LENGTH] > self[MAX] && walker !== null;) { - // We know that we're about to delete this one, and also - // what the next least recently used key will be, so just - // go ahead and set it now. - const prev = walker.prev - del(self, walker) - walker = prev - } - } -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -const del = (self, node) => { - if (node) { - const hit = node.value - if (self[DISPOSE]) - self[DISPOSE](hit.key, hit.value) +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - self[LENGTH] -= hit.length - self[CACHE].delete(hit.key) - self[LRU_LIST].removeNode(node) - } -} +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -class Entry { - constructor (key, value, length, now, maxAge) { - this.key = key - this.value = value - this.length = length - this.now = now - this.maxAge = maxAge || 0 - } -} +/** + * The ListRolesOutput model module. + * @module model/ListRolesOutput + * @version 3.6.3 + */ +var ListRolesOutput = /*#__PURE__*/function () { + /** + * Constructs a new ListRolesOutput. + * @alias module:model/ListRolesOutput + */ + function ListRolesOutput() { + _classCallCheck(this, ListRolesOutput); -const forEachStep = (self, fn, node, thisp) => { - let hit = node.value - if (isStale(self, hit)) { - del(self, node) - if (!self[ALLOW_STALE]) - hit = undefined + ListRolesOutput.initialize(this); } - if (hit) - fn.call(thisp, hit.value, hit.key, self) -} + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -module.exports = LRUCache + _createClass(ListRolesOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ListRolesOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListRolesOutput} obj Optional instance to populate. + * @return {module:model/ListRolesOutput} The populated ListRolesOutput instance. + */ -/***/ }), + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListRolesOutput(); -/***/ 5240: -/***/ ((module) => { + if (data.hasOwnProperty('next_page')) { + obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('roles')) { + obj['roles'] = _ApiClient["default"].convertToType(data['roles'], [_Role["default"]]); + } + } -module.exports = function (Yallist) { - Yallist.prototype[Symbol.iterator] = function* () { - for (let walker = this.head; walker; walker = walker.next) { - yield walker.value + return obj; } - } -} + }]); + + return ListRolesOutput; +}(); +/** + * @member {String} next_page + */ + + +ListRolesOutput.prototype['next_page'] = undefined; +/** + * @member {Array.} roles + */ +ListRolesOutput.prototype['roles'] = undefined; +var _default = ListRolesOutput; +exports["default"] = _default; /***/ }), -/***/ 24658: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 59255: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -module.exports = Yallist -Yallist.Node = Node -Yallist.create = Yallist +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -function Yallist (list) { - var self = this - if (!(self instanceof Yallist)) { - self = new Yallist() - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - self.tail = null - self.head = null - self.length = 0 +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (list && typeof list.forEach === 'function') { - list.forEach(function (item) { - self.push(item) - }) - } else if (arguments.length > 0) { - for (var i = 0, l = arguments.length; i < l; i++) { - self.push(arguments[i]) - } - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - return self -} +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -Yallist.prototype.removeNode = function (node) { - if (node.list !== this) { - throw new Error('removing node which does not belong to this list') - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - var next = node.next - var prev = node.prev +/** + * The ListSRABastions model module. + * @module model/ListSRABastions + * @version 3.6.3 + */ +var ListSRABastions = /*#__PURE__*/function () { + /** + * Constructs a new ListSRABastions. + * @alias module:model/ListSRABastions + */ + function ListSRABastions() { + _classCallCheck(this, ListSRABastions); - if (next) { - next.prev = prev + ListSRABastions.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (prev) { - prev.next = next - } - if (node === this.head) { - this.head = next - } - if (node === this.tail) { - this.tail = prev - } + _createClass(ListSRABastions, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ListSRABastions from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListSRABastions} obj Optional instance to populate. + * @return {module:model/ListSRABastions} The populated ListSRABastions instance. + */ - node.list.length-- - node.next = null - node.prev = null - node.list = null + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListSRABastions(); - return next -} + if (data.hasOwnProperty('allowed-urls-only')) { + obj['allowed-urls-only'] = _ApiClient["default"].convertToType(data['allowed-urls-only'], 'Boolean'); + } -Yallist.prototype.unshiftNode = function (node) { - if (node === this.head) { - return - } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - if (node.list) { - node.list.removeNode(node) - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - var head = this.head - node.list = this - node.next = head - if (head) { - head.prev = node - } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - this.head = node - if (!this.tail) { - this.tail = node - } - this.length++ -} + return obj; + } + }]); -Yallist.prototype.pushNode = function (node) { - if (node === this.tail) { - return - } + return ListSRABastions; +}(); +/** + * Filter the response to show only bastions allowed URLs + * @member {Boolean} allowed-urls-only + * @default false + */ - if (node.list) { - node.list.removeNode(node) - } - var tail = this.tail - node.list = this - node.prev = tail - if (tail) { - tail.next = node - } +ListSRABastions.prototype['allowed-urls-only'] = false; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - this.tail = node - if (!this.head) { - this.head = node - } - this.length++ -} +ListSRABastions.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -Yallist.prototype.push = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - push(this, arguments[i]) - } - return this.length -} +ListSRABastions.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -Yallist.prototype.unshift = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - unshift(this, arguments[i]) - } - return this.length -} +ListSRABastions.prototype['uid-token'] = undefined; +var _default = ListSRABastions; +exports["default"] = _default; -Yallist.prototype.pop = function () { - if (!this.tail) { - return undefined - } +/***/ }), - var res = this.tail.value - this.tail = this.tail.prev - if (this.tail) { - this.tail.next = null - } else { - this.head = null - } - this.length-- - return res -} +/***/ 90349: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -Yallist.prototype.shift = function () { - if (!this.head) { - return undefined - } +"use strict"; - var res = this.head.value - this.head = this.head.next - if (this.head) { - this.head.prev = null - } else { - this.tail = null - } - this.length-- - return res -} -Yallist.prototype.forEach = function (fn, thisp) { - thisp = thisp || this - for (var walker = this.head, i = 0; walker !== null; i++) { - fn.call(thisp, walker.value, i, this) - walker = walker.next - } -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -Yallist.prototype.forEachReverse = function (fn, thisp) { - thisp = thisp || this - for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { - fn.call(thisp, walker.value, i, this) - walker = walker.prev - } -} +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -Yallist.prototype.get = function (n) { - for (var i = 0, walker = this.head; walker !== null && i < n; i++) { - // abort out of the list early if we hit a cycle - walker = walker.next - } - if (i === n && walker !== null) { - return walker.value - } -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -Yallist.prototype.getReverse = function (n) { - for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { - // abort out of the list early if we hit a cycle - walker = walker.prev - } - if (i === n && walker !== null) { - return walker.value - } -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Yallist.prototype.map = function (fn, thisp) { - thisp = thisp || this - var res = new Yallist() - for (var walker = this.head; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)) - walker = walker.next - } - return res -} +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -Yallist.prototype.mapReverse = function (fn, thisp) { - thisp = thisp || this - var res = new Yallist() - for (var walker = this.tail; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)) - walker = walker.prev - } - return res -} +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -Yallist.prototype.reduce = function (fn, initial) { - var acc - var walker = this.head - if (arguments.length > 1) { - acc = initial - } else if (this.head) { - walker = this.head.next - acc = this.head.value - } else { - throw new TypeError('Reduce of empty list with no initial value') - } +/** + * The ListSharedItems model module. + * @module model/ListSharedItems + * @version 3.6.3 + */ +var ListSharedItems = /*#__PURE__*/function () { + /** + * Constructs a new ListSharedItems. + * listSharedItems is a command to list all the items been shared + * @alias module:model/ListSharedItems + */ + function ListSharedItems() { + _classCallCheck(this, ListSharedItems); - for (var i = 0; walker !== null; i++) { - acc = fn(acc, walker.value, i) - walker = walker.next + ListSharedItems.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - return acc -} -Yallist.prototype.reduceReverse = function (fn, initial) { - var acc - var walker = this.tail - if (arguments.length > 1) { - acc = initial - } else if (this.tail) { - walker = this.tail.prev - acc = this.tail.value - } else { - throw new TypeError('Reduce of empty list with no initial value') - } + _createClass(ListSharedItems, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ListSharedItems from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListSharedItems} obj Optional instance to populate. + * @return {module:model/ListSharedItems} The populated ListSharedItems instance. + */ - for (var i = this.length - 1; walker !== null; i--) { - acc = fn(acc, walker.value, i) - walker = walker.prev - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListSharedItems(); - return acc -} + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + } -Yallist.prototype.toArray = function () { - var arr = new Array(this.length) - for (var i = 0, walker = this.head; walker !== null; i++) { - arr[i] = walker.value - walker = walker.next - } - return arr -} + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -Yallist.prototype.toArrayReverse = function () { - var arr = new Array(this.length) - for (var i = 0, walker = this.tail; walker !== null; i++) { - arr[i] = walker.value - walker = walker.prev - } - return arr -} + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -Yallist.prototype.slice = function (from, to) { - to = to || this.length - if (to < 0) { - to += this.length - } - from = from || 0 - if (from < 0) { - from += this.length - } - var ret = new Yallist() - if (to < from || to < 0) { - return ret - } - if (from < 0) { - from = 0 - } - if (to > this.length) { - to = this.length - } - for (var i = 0, walker = this.head; walker !== null && i < from; i++) { - walker = walker.next - } - for (; walker !== null && i < to; i++, walker = walker.next) { - ret.push(walker.value) - } - return ret -} + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } -Yallist.prototype.sliceReverse = function (from, to) { - to = to || this.length - if (to < 0) { - to += this.length - } - from = from || 0 - if (from < 0) { - from += this.length - } - var ret = new Yallist() - if (to < from || to < 0) { - return ret - } - if (from < 0) { - from = 0 - } - if (to > this.length) { - to = this.length - } - for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { - walker = walker.prev - } - for (; walker !== null && i > from; i--, walker = walker.prev) { - ret.push(walker.value) - } - return ret -} + return obj; + } + }]); -Yallist.prototype.splice = function (start, deleteCount, ...nodes) { - if (start > this.length) { - start = this.length - 1 - } - if (start < 0) { - start = this.length + start; - } + return ListSharedItems; +}(); +/** + * for personal password manager + * @member {String} accessibility + * @default 'regular' + */ - for (var i = 0, walker = this.head; walker !== null && i < start; i++) { - walker = walker.next - } - var ret = [] - for (var i = 0; walker && i < deleteCount; i++) { - ret.push(walker.value) - walker = this.removeNode(walker) - } - if (walker === null) { - walker = this.tail - } +ListSharedItems.prototype['accessibility'] = 'regular'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - if (walker !== this.head && walker !== this.tail) { - walker = walker.prev - } +ListSharedItems.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - for (var i = 0; i < nodes.length; i++) { - walker = insert(this, walker, nodes[i]) - } - return ret; -} +ListSharedItems.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -Yallist.prototype.reverse = function () { - var head = this.head - var tail = this.tail - for (var walker = head; walker !== null; walker = walker.prev) { - var p = walker.prev - walker.prev = walker.next - walker.next = p - } - this.head = tail - this.tail = head - return this -} +ListSharedItems.prototype['uid-token'] = undefined; +var _default = ListSharedItems; +exports["default"] = _default; -function insert (self, node, value) { - var inserted = node === self.head ? - new Node(value, null, node, self) : - new Node(value, node, node.next, self) +/***/ }), - if (inserted.next === null) { - self.tail = inserted - } - if (inserted.prev === null) { - self.head = inserted - } +/***/ 97640: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - self.length++ +"use strict"; - return inserted -} -function push (self, item) { - self.tail = new Node(item, self.tail, null, self) - if (!self.head) { - self.head = self.tail - } - self.length++ -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -function unshift (self, item) { - self.head = new Node(item, null, self.head, self) - if (!self.tail) { - self.tail = self.head - } - self.length++ -} +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -function Node (value, prev, next, list) { - if (!(this instanceof Node)) { - return new Node(value, prev, next, list) - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - this.list = list - this.value = value +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (prev) { - prev.next = this - this.prev = prev - } else { - this.prev = null - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (next) { - next.prev = this - this.next = next - } else { - this.next = null - } -} +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -try { - // add if support for Symbol.iterator is present - __nccwpck_require__(5240)(Yallist) -} catch (er) {} +/** + * The ListTargets model module. + * @module model/ListTargets + * @version 3.6.3 + */ +var ListTargets = /*#__PURE__*/function () { + /** + * Constructs a new ListTargets. + * @alias module:model/ListTargets + */ + function ListTargets() { + _classCallCheck(this, ListTargets); + ListTargets.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), -/***/ 37312: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + _createClass(ListTargets, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ListTargets from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListTargets} obj Optional instance to populate. + * @return {module:model/ListTargets} The populated ListTargets instance. + */ -/* module decorator */ module = __nccwpck_require__.nmd(module); -(e=>{"function"==typeof define&&define.amd?define(["protobufjs/minimal"],e): true&&module&&module.exports&&(module.exports=e(__nccwpck_require__(37823)))})(function(o){var e,t,n,r,F,a=o.Reader,i=o.Writer,p=o.util,l=o.roots.iam_protos||(o.roots.iam_protos={});function B(e,t,n){o.rpc.Service.call(this,e,t,n)}function s(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.resource=e.string();break;case 2:o.policy=l.google.iam.v1.Policy.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},s.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},s.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.resource&&e.hasOwnProperty("resource")&&!p.isString(e.resource))return"resource: string expected";if(null!=e.policy&&e.hasOwnProperty("policy")){e=l.google.iam.v1.Policy.verify(e.policy);if(e)return"policy."+e}return null},s.fromObject=function(e){if(e instanceof l.google.iam.v1.SetIamPolicyRequest)return e;var t=new l.google.iam.v1.SetIamPolicyRequest;if(null!=e.resource&&(t.resource=String(e.resource)),null!=e.policy){if("object"!=typeof e.policy)throw TypeError(".google.iam.v1.SetIamPolicyRequest.policy: object expected");t.policy=l.google.iam.v1.Policy.fromObject(e.policy)}return t},s.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.resource="",n.policy=null),null!=e.resource&&e.hasOwnProperty("resource")&&(n.resource=e.resource),null!=e.policy&&e.hasOwnProperty("policy")&&(n.policy=l.google.iam.v1.Policy.toObject(e.policy,t)),n},s.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},s),t.GetIamPolicyRequest=(u.prototype.resource="",u.prototype.options=null,u.create=function(e){return new u(e)},u.encode=function(e,t){return t=t||i.create(),null!=e.resource&&Object.hasOwnProperty.call(e,"resource")&&t.uint32(10).string(e.resource),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.iam.v1.GetPolicyOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},u.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},u.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.iam.v1.GetIamPolicyRequest;e.pos>>3){case 1:o.resource=e.string();break;case 2:o.options=l.google.iam.v1.GetPolicyOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},u.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},u.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.resource&&e.hasOwnProperty("resource")&&!p.isString(e.resource))return"resource: string expected";if(null!=e.options&&e.hasOwnProperty("options")){e=l.google.iam.v1.GetPolicyOptions.verify(e.options);if(e)return"options."+e}return null},u.fromObject=function(e){if(e instanceof l.google.iam.v1.GetIamPolicyRequest)return e;var t=new l.google.iam.v1.GetIamPolicyRequest;if(null!=e.resource&&(t.resource=String(e.resource)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.iam.v1.GetIamPolicyRequest.options: object expected");t.options=l.google.iam.v1.GetPolicyOptions.fromObject(e.options)}return t},u.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.resource="",n.options=null),null!=e.resource&&e.hasOwnProperty("resource")&&(n.resource=e.resource),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.iam.v1.GetPolicyOptions.toObject(e.options,t)),n},u.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},u),t.TestIamPermissionsRequest=(c.prototype.resource="",c.prototype.permissions=p.emptyArray,c.create=function(e){return new c(e)},c.encode=function(e,t){if(t=t||i.create(),null!=e.resource&&Object.hasOwnProperty.call(e,"resource")&&t.uint32(10).string(e.resource),null!=e.permissions&&e.permissions.length)for(var n=0;n>>3){case 1:o.resource=e.string();break;case 2:o.permissions&&o.permissions.length||(o.permissions=[]),o.permissions.push(e.string());break;default:e.skipType(7&r)}}return o},c.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},c.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.resource&&e.hasOwnProperty("resource")&&!p.isString(e.resource))return"resource: string expected";if(null!=e.permissions&&e.hasOwnProperty("permissions")){if(!Array.isArray(e.permissions))return"permissions: array expected";for(var t=0;t>>3==1?(o.permissions&&o.permissions.length||(o.permissions=[]),o.permissions.push(e.string())):e.skipType(7&r)}return o},G.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},G.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.permissions&&e.hasOwnProperty("permissions")){if(!Array.isArray(e.permissions))return"permissions: array expected";for(var t=0;t>>3==1?o.requestedPolicyVersion=e.int32():e.skipType(7&r)}return o},U.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},U.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.requestedPolicyVersion&&e.hasOwnProperty("requestedPolicyVersion")&&!p.isInteger(e.requestedPolicyVersion)?"requestedPolicyVersion: integer expected":null},U.fromObject=function(e){var t;return e instanceof l.google.iam.v1.GetPolicyOptions?e:(t=new l.google.iam.v1.GetPolicyOptions,null!=e.requestedPolicyVersion&&(t.requestedPolicyVersion=0|e.requestedPolicyVersion),t)},U.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.requestedPolicyVersion=0),null!=e.requestedPolicyVersion&&e.hasOwnProperty("requestedPolicyVersion")&&(n.requestedPolicyVersion=e.requestedPolicyVersion),n},U.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},U),t.Policy=(d.prototype.version=0,d.prototype.bindings=p.emptyArray,d.prototype.etag=p.newBuffer([]),d.create=function(e){return new d(e)},d.encode=function(e,t){if(t=t||i.create(),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(8).int32(e.version),null!=e.etag&&Object.hasOwnProperty.call(e,"etag")&&t.uint32(26).bytes(e.etag),null!=e.bindings&&e.bindings.length)for(var n=0;n>>3){case 1:o.version=e.int32();break;case 4:o.bindings&&o.bindings.length||(o.bindings=[]),o.bindings.push(l.google.iam.v1.Binding.decode(e,e.uint32()));break;case 3:o.etag=e.bytes();break;default:e.skipType(7&r)}}return o},d.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},d.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.version&&e.hasOwnProperty("version")&&!p.isInteger(e.version))return"version: integer expected";if(null!=e.bindings&&e.hasOwnProperty("bindings")){if(!Array.isArray(e.bindings))return"bindings: array expected";for(var t=0;t>>3){case 1:o.role=e.string();break;case 2:o.members&&o.members.length||(o.members=[]),o.members.push(e.string());break;case 3:o.condition=l.google.type.Expr.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},g.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},g.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.role&&e.hasOwnProperty("role")&&!p.isString(e.role))return"role: string expected";if(null!=e.members&&e.hasOwnProperty("members")){if(!Array.isArray(e.members))return"members: array expected";for(var t=0;t>>3){case 1:o.bindingDeltas&&o.bindingDeltas.length||(o.bindingDeltas=[]),o.bindingDeltas.push(l.google.iam.v1.BindingDelta.decode(e,e.uint32()));break;case 2:o.auditConfigDeltas&&o.auditConfigDeltas.length||(o.auditConfigDeltas=[]),o.auditConfigDeltas.push(l.google.iam.v1.AuditConfigDelta.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},M.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},M.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.bindingDeltas&&e.hasOwnProperty("bindingDeltas")){if(!Array.isArray(e.bindingDeltas))return"bindingDeltas: array expected";for(var t=0;t>>3){case 1:o.action=e.int32();break;case 2:o.role=e.string();break;case 3:o.member=e.string();break;case 4:o.condition=l.google.type.Expr.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},f.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},f.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.action&&e.hasOwnProperty("action"))switch(e.action){default:return"action: enum value expected";case 0:case 1:case 2:}if(null!=e.role&&e.hasOwnProperty("role")&&!p.isString(e.role))return"role: string expected";if(null!=e.member&&e.hasOwnProperty("member")&&!p.isString(e.member))return"member: string expected";if(null!=e.condition&&e.hasOwnProperty("condition")){e=l.google.type.Expr.verify(e.condition);if(e)return"condition."+e}return null},f.fromObject=function(e){if(e instanceof l.google.iam.v1.BindingDelta)return e;var t=new l.google.iam.v1.BindingDelta;switch(e.action){case"ACTION_UNSPECIFIED":case 0:t.action=0;break;case"ADD":case 1:t.action=1;break;case"REMOVE":case 2:t.action=2}if(null!=e.role&&(t.role=String(e.role)),null!=e.member&&(t.member=String(e.member)),null!=e.condition){if("object"!=typeof e.condition)throw TypeError(".google.iam.v1.BindingDelta.condition: object expected");t.condition=l.google.type.Expr.fromObject(e.condition)}return t},f.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.action=t.enums===String?"ACTION_UNSPECIFIED":0,n.role="",n.member="",n.condition=null),null!=e.action&&e.hasOwnProperty("action")&&(n.action=t.enums===String?l.google.iam.v1.BindingDelta.Action[e.action]:e.action),null!=e.role&&e.hasOwnProperty("role")&&(n.role=e.role),null!=e.member&&e.hasOwnProperty("member")&&(n.member=e.member),null!=e.condition&&e.hasOwnProperty("condition")&&(n.condition=l.google.type.Expr.toObject(e.condition,t)),n},f.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},f.Action=(e={},(r=Object.create(e))[e[0]="ACTION_UNSPECIFIED"]=0,r[e[1]="ADD"]=1,r[e[2]="REMOVE"]=2,r),f),t.AuditConfigDelta=(y.prototype.action=0,y.prototype.service="",y.prototype.exemptedMember="",y.prototype.logType="",y.create=function(e){return new y(e)},y.encode=function(e,t){return t=t||i.create(),null!=e.action&&Object.hasOwnProperty.call(e,"action")&&t.uint32(8).int32(e.action),null!=e.service&&Object.hasOwnProperty.call(e,"service")&&t.uint32(18).string(e.service),null!=e.exemptedMember&&Object.hasOwnProperty.call(e,"exemptedMember")&&t.uint32(26).string(e.exemptedMember),null!=e.logType&&Object.hasOwnProperty.call(e,"logType")&&t.uint32(34).string(e.logType),t},y.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},y.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.iam.v1.AuditConfigDelta;e.pos>>3){case 1:o.action=e.int32();break;case 2:o.service=e.string();break;case 3:o.exemptedMember=e.string();break;case 4:o.logType=e.string();break;default:e.skipType(7&r)}}return o},y.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},y.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.action&&e.hasOwnProperty("action"))switch(e.action){default:return"action: enum value expected";case 0:case 1:case 2:}return null!=e.service&&e.hasOwnProperty("service")&&!p.isString(e.service)?"service: string expected":null!=e.exemptedMember&&e.hasOwnProperty("exemptedMember")&&!p.isString(e.exemptedMember)?"exemptedMember: string expected":null!=e.logType&&e.hasOwnProperty("logType")&&!p.isString(e.logType)?"logType: string expected":null},y.fromObject=function(e){if(e instanceof l.google.iam.v1.AuditConfigDelta)return e;var t=new l.google.iam.v1.AuditConfigDelta;switch(e.action){case"ACTION_UNSPECIFIED":case 0:t.action=0;break;case"ADD":case 1:t.action=1;break;case"REMOVE":case 2:t.action=2}return null!=e.service&&(t.service=String(e.service)),null!=e.exemptedMember&&(t.exemptedMember=String(e.exemptedMember)),null!=e.logType&&(t.logType=String(e.logType)),t},y.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.action=t.enums===String?"ACTION_UNSPECIFIED":0,n.service="",n.exemptedMember="",n.logType=""),null!=e.action&&e.hasOwnProperty("action")&&(n.action=t.enums===String?l.google.iam.v1.AuditConfigDelta.Action[e.action]:e.action),null!=e.service&&e.hasOwnProperty("service")&&(n.service=e.service),null!=e.exemptedMember&&e.hasOwnProperty("exemptedMember")&&(n.exemptedMember=e.exemptedMember),null!=e.logType&&e.hasOwnProperty("logType")&&(n.logType=e.logType),n},y.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},y.Action=(e={},(r=Object.create(e))[e[0]="ACTION_UNSPECIFIED"]=0,r[e[1]="ADD"]=1,r[e[2]="REMOVE"]=2,r),y),t.logging=((e={}).AuditData=(L.prototype.policyDelta=null,L.create=function(e){return new L(e)},L.encode=function(e,t){return t=t||i.create(),null!=e.policyDelta&&Object.hasOwnProperty.call(e,"policyDelta")&&l.google.iam.v1.PolicyDelta.encode(e.policyDelta,t.uint32(18).fork()).ldelim(),t},L.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},L.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.iam.v1.logging.AuditData;e.pos>>3==2?o.policyDelta=l.google.iam.v1.PolicyDelta.decode(e,e.uint32()):e.skipType(7&r)}return o},L.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},L.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.policyDelta&&e.hasOwnProperty("policyDelta")){e=l.google.iam.v1.PolicyDelta.verify(e.policyDelta);if(e)return"policyDelta."+e}return null},L.fromObject=function(e){if(e instanceof l.google.iam.v1.logging.AuditData)return e;var t=new l.google.iam.v1.logging.AuditData;if(null!=e.policyDelta){if("object"!=typeof e.policyDelta)throw TypeError(".google.iam.v1.logging.AuditData.policyDelta: object expected");t.policyDelta=l.google.iam.v1.PolicyDelta.fromObject(e.policyDelta)}return t},L.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.policyDelta=null),null!=e.policyDelta&&e.hasOwnProperty("policyDelta")&&(n.policyDelta=l.google.iam.v1.PolicyDelta.toObject(e.policyDelta,t)),n},L.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},L),e),t),n),F.api=((r={}).Http=(J.prototype.rules=p.emptyArray,J.prototype.fullyDecodeReservedExpansion=!1,J.create=function(e){return new J(e)},J.encode=function(e,t){if(t=t||i.create(),null!=e.rules&&e.rules.length)for(var n=0;n>>3){case 1:o.rules&&o.rules.length||(o.rules=[]),o.rules.push(l.google.api.HttpRule.decode(e,e.uint32()));break;case 2:o.fullyDecodeReservedExpansion=e.bool();break;default:e.skipType(7&r)}}return o},J.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},J.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.rules&&e.hasOwnProperty("rules")){if(!Array.isArray(e.rules))return"rules: array expected";for(var t=0;t>>3){case 1:o.selector=e.string();break;case 2:o.get=e.string();break;case 3:o.put=e.string();break;case 4:o.post=e.string();break;case 5:o.delete=e.string();break;case 6:o.patch=e.string();break;case 8:o.custom=l.google.api.CustomHttpPattern.decode(e,e.uint32());break;case 7:o.body=e.string();break;case 12:o.responseBody=e.string();break;case 11:o.additionalBindings&&o.additionalBindings.length||(o.additionalBindings=[]),o.additionalBindings.push(l.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},h.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},h.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t={};if(null!=e.selector&&e.hasOwnProperty("selector")&&!p.isString(e.selector))return"selector: string expected";if(null!=e.get&&e.hasOwnProperty("get")&&(t.pattern=1,!p.isString(e.get)))return"get: string expected";if(null!=e.put&&e.hasOwnProperty("put")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!p.isString(e.put))return"put: string expected"}if(null!=e.post&&e.hasOwnProperty("post")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!p.isString(e.post))return"post: string expected"}if(null!=e.delete&&e.hasOwnProperty("delete")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!p.isString(e.delete))return"delete: string expected"}if(null!=e.patch&&e.hasOwnProperty("patch")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!p.isString(e.patch))return"patch: string expected"}if(null!=e.custom&&e.hasOwnProperty("custom")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,n=l.google.api.CustomHttpPattern.verify(e.custom))return"custom."+n}if(null!=e.body&&e.hasOwnProperty("body")&&!p.isString(e.body))return"body: string expected";if(null!=e.responseBody&&e.hasOwnProperty("responseBody")&&!p.isString(e.responseBody))return"responseBody: string expected";if(null!=e.additionalBindings&&e.hasOwnProperty("additionalBindings")){if(!Array.isArray(e.additionalBindings))return"additionalBindings: array expected";for(var n,o=0;o>>3){case 1:o.kind=e.string();break;case 2:o.path=e.string();break;default:e.skipType(7&r)}}return o},_.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},_.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.kind&&e.hasOwnProperty("kind")&&!p.isString(e.kind)?"kind: string expected":null!=e.path&&e.hasOwnProperty("path")&&!p.isString(e.path)?"path: string expected":null},_.fromObject=function(e){var t;return e instanceof l.google.api.CustomHttpPattern?e:(t=new l.google.api.CustomHttpPattern,null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t)},_.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.kind="",n.path=""),null!=e.kind&&e.hasOwnProperty("kind")&&(n.kind=e.kind),null!=e.path&&e.hasOwnProperty("path")&&(n.path=e.path),n},_.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},_),r.FieldBehavior=(e={},(t=Object.create(e))[e[0]="FIELD_BEHAVIOR_UNSPECIFIED"]=0,t[e[1]="OPTIONAL"]=1,t[e[2]="REQUIRED"]=2,t[e[3]="OUTPUT_ONLY"]=3,t[e[4]="INPUT_ONLY"]=4,t[e[5]="IMMUTABLE"]=5,t),r.ResourceDescriptor=(b.prototype.type="",b.prototype.pattern=p.emptyArray,b.prototype.nameField="",b.prototype.history=0,b.prototype.plural="",b.prototype.singular="",b.create=function(e){return new b(e)},b.encode=function(e,t){if(t=t||i.create(),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),null!=e.pattern&&e.pattern.length)for(var n=0;n>>3){case 1:o.type=e.string();break;case 2:o.pattern&&o.pattern.length||(o.pattern=[]),o.pattern.push(e.string());break;case 3:o.nameField=e.string();break;case 4:o.history=e.int32();break;case 5:o.plural=e.string();break;case 6:o.singular=e.string();break;default:e.skipType(7&r)}}return o},b.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},b.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type")&&!p.isString(e.type))return"type: string expected";if(null!=e.pattern&&e.hasOwnProperty("pattern")){if(!Array.isArray(e.pattern))return"pattern: array expected";for(var t=0;t>>3){case 1:o.type=e.string();break;case 2:o.childType=e.string();break;default:e.skipType(7&r)}}return o},H.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},H.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.type&&e.hasOwnProperty("type")&&!p.isString(e.type)?"type: string expected":null!=e.childType&&e.hasOwnProperty("childType")&&!p.isString(e.childType)?"childType: string expected":null},H.fromObject=function(e){var t;return e instanceof l.google.api.ResourceReference?e:(t=new l.google.api.ResourceReference,null!=e.type&&(t.type=String(e.type)),null!=e.childType&&(t.childType=String(e.childType)),t)},H.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.type="",n.childType=""),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.childType&&e.hasOwnProperty("childType")&&(n.childType=e.childType),n},H.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},H),r),F.protobuf=((n={}).FileDescriptorSet=(q.prototype.file=p.emptyArray,q.create=function(e){return new q(e)},q.encode=function(e,t){if(t=t||i.create(),null!=e.file&&e.file.length)for(var n=0;n>>3==1?(o.file&&o.file.length||(o.file=[]),o.file.push(l.google.protobuf.FileDescriptorProto.decode(e,e.uint32()))):e.skipType(7&r)}return o},q.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},q.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.file&&e.hasOwnProperty("file")){if(!Array.isArray(e.file))return"file: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.package=e.string();break;case 3:o.dependency&&o.dependency.length||(o.dependency=[]),o.dependency.push(e.string());break;case 10:if(o.publicDependency&&o.publicDependency.length||(o.publicDependency=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.name=e.string();break;case 2:o.field&&o.field.length||(o.field=[]),o.field.push(l.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 6:o.extension&&o.extension.length||(o.extension=[]),o.extension.push(l.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 3:o.nestedType&&o.nestedType.length||(o.nestedType=[]),o.nestedType.push(l.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 4:o.enumType&&o.enumType.length||(o.enumType=[]),o.enumType.push(l.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 5:o.extensionRange&&o.extensionRange.length||(o.extensionRange=[]),o.extensionRange.push(l.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32()));break;case 8:o.oneofDecl&&o.oneofDecl.length||(o.oneofDecl=[]),o.oneofDecl.push(l.google.protobuf.OneofDescriptorProto.decode(e,e.uint32()));break;case 7:o.options=l.google.protobuf.MessageOptions.decode(e,e.uint32());break;case 9:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(l.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32()));break;case 10:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},O.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},O.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.field&&e.hasOwnProperty("field")){if(!Array.isArray(e.field))return"field: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;case 3:o.options=l.google.protobuf.ExtensionRangeOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},v.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},v.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.start&&e.hasOwnProperty("start")&&!p.isInteger(e.start))return"start: integer expected";if(null!=e.end&&e.hasOwnProperty("end")&&!p.isInteger(e.end))return"end: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=l.google.protobuf.ExtensionRangeOptions.verify(e.options);if(e)return"options."+e}return null},v.fromObject=function(e){if(e instanceof l.google.protobuf.DescriptorProto.ExtensionRange)return e;var t=new l.google.protobuf.DescriptorProto.ExtensionRange;if(null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");t.options=l.google.protobuf.ExtensionRangeOptions.fromObject(e.options)}return t},v.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0,n.options=null),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.protobuf.ExtensionRangeOptions.toObject(e.options,t)),n},v.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},v),O.ReservedRange=(Y.prototype.start=0,Y.prototype.end=0,Y.create=function(e){return new Y(e)},Y.encode=function(e,t){return t=t||i.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},Y.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},Y.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.protobuf.DescriptorProto.ReservedRange;e.pos>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},Y.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},Y.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!p.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!p.isInteger(e.end)?"end: integer expected":null},Y.fromObject=function(e){var t;return e instanceof l.google.protobuf.DescriptorProto.ReservedRange?e:(t=new l.google.protobuf.DescriptorProto.ReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},Y.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},Y.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},Y),O),n.ExtensionRangeOptions=(z.prototype.uninterpretedOption=p.emptyArray,z.create=function(e){return new z(e)},z.encode=function(e,t){if(t=t||i.create(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},z.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},z.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 3:o.number=e.int32();break;case 4:o.label=e.int32();break;case 5:o.type=e.int32();break;case 6:o.typeName=e.string();break;case 2:o.extendee=e.string();break;case 7:o.defaultValue=e.string();break;case 9:o.oneofIndex=e.int32();break;case 10:o.jsonName=e.string();break;case 8:o.options=l.google.protobuf.FieldOptions.decode(e,e.uint32());break;case 17:o.proto3Optional=e.bool();break;default:e.skipType(7&r)}}return o},P.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},P.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!p.isInteger(e.number))return"number: integer expected";if(null!=e.label&&e.hasOwnProperty("label"))switch(e.label){default:return"label: enum value expected";case 1:case 2:case 3:}if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:}if(null!=e.typeName&&e.hasOwnProperty("typeName")&&!p.isString(e.typeName))return"typeName: string expected";if(null!=e.extendee&&e.hasOwnProperty("extendee")&&!p.isString(e.extendee))return"extendee: string expected";if(null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&!p.isString(e.defaultValue))return"defaultValue: string expected";if(null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&!p.isInteger(e.oneofIndex))return"oneofIndex: integer expected";if(null!=e.jsonName&&e.hasOwnProperty("jsonName")&&!p.isString(e.jsonName))return"jsonName: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=l.google.protobuf.FieldOptions.verify(e.options);if(t)return"options."+t}return null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&"boolean"!=typeof e.proto3Optional?"proto3Optional: boolean expected":null},P.fromObject=function(e){if(e instanceof l.google.protobuf.FieldDescriptorProto)return e;var t=new l.google.protobuf.FieldDescriptorProto;switch(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),e.label){case"LABEL_OPTIONAL":case 1:t.label=1;break;case"LABEL_REQUIRED":case 2:t.label=2;break;case"LABEL_REPEATED":case 3:t.label=3}switch(e.type){case"TYPE_DOUBLE":case 1:t.type=1;break;case"TYPE_FLOAT":case 2:t.type=2;break;case"TYPE_INT64":case 3:t.type=3;break;case"TYPE_UINT64":case 4:t.type=4;break;case"TYPE_INT32":case 5:t.type=5;break;case"TYPE_FIXED64":case 6:t.type=6;break;case"TYPE_FIXED32":case 7:t.type=7;break;case"TYPE_BOOL":case 8:t.type=8;break;case"TYPE_STRING":case 9:t.type=9;break;case"TYPE_GROUP":case 10:t.type=10;break;case"TYPE_MESSAGE":case 11:t.type=11;break;case"TYPE_BYTES":case 12:t.type=12;break;case"TYPE_UINT32":case 13:t.type=13;break;case"TYPE_ENUM":case 14:t.type=14;break;case"TYPE_SFIXED32":case 15:t.type=15;break;case"TYPE_SFIXED64":case 16:t.type=16;break;case"TYPE_SINT32":case 17:t.type=17;break;case"TYPE_SINT64":case 18:t.type=18}if(null!=e.typeName&&(t.typeName=String(e.typeName)),null!=e.extendee&&(t.extendee=String(e.extendee)),null!=e.defaultValue&&(t.defaultValue=String(e.defaultValue)),null!=e.oneofIndex&&(t.oneofIndex=0|e.oneofIndex),null!=e.jsonName&&(t.jsonName=String(e.jsonName)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");t.options=l.google.protobuf.FieldOptions.fromObject(e.options)}return null!=e.proto3Optional&&(t.proto3Optional=Boolean(e.proto3Optional)),t},P.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.extendee="",n.number=0,n.label=t.enums===String?"LABEL_OPTIONAL":1,n.type=t.enums===String?"TYPE_DOUBLE":1,n.typeName="",n.defaultValue="",n.options=null,n.oneofIndex=0,n.jsonName="",n.proto3Optional=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.extendee&&e.hasOwnProperty("extendee")&&(n.extendee=e.extendee),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.label&&e.hasOwnProperty("label")&&(n.label=t.enums===String?l.google.protobuf.FieldDescriptorProto.Label[e.label]:e.label),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?l.google.protobuf.FieldDescriptorProto.Type[e.type]:e.type),null!=e.typeName&&e.hasOwnProperty("typeName")&&(n.typeName=e.typeName),null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&(n.defaultValue=e.defaultValue),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.protobuf.FieldOptions.toObject(e.options,t)),null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&(n.oneofIndex=e.oneofIndex),null!=e.jsonName&&e.hasOwnProperty("jsonName")&&(n.jsonName=e.jsonName),null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&(n.proto3Optional=e.proto3Optional),n},P.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},P.Type=(e={},(t=Object.create(e))[e[1]="TYPE_DOUBLE"]=1,t[e[2]="TYPE_FLOAT"]=2,t[e[3]="TYPE_INT64"]=3,t[e[4]="TYPE_UINT64"]=4,t[e[5]="TYPE_INT32"]=5,t[e[6]="TYPE_FIXED64"]=6,t[e[7]="TYPE_FIXED32"]=7,t[e[8]="TYPE_BOOL"]=8,t[e[9]="TYPE_STRING"]=9,t[e[10]="TYPE_GROUP"]=10,t[e[11]="TYPE_MESSAGE"]=11,t[e[12]="TYPE_BYTES"]=12,t[e[13]="TYPE_UINT32"]=13,t[e[14]="TYPE_ENUM"]=14,t[e[15]="TYPE_SFIXED32"]=15,t[e[16]="TYPE_SFIXED64"]=16,t[e[17]="TYPE_SINT32"]=17,t[e[18]="TYPE_SINT64"]=18,t),P.Label=(e={},(t=Object.create(e))[e[1]="LABEL_OPTIONAL"]=1,t[e[2]="LABEL_REQUIRED"]=2,t[e[3]="LABEL_REPEATED"]=3,t),P),n.OneofDescriptorProto=(W.prototype.name="",W.prototype.options=null,W.create=function(e){return new W(e)},W.encode=function(e,t){return t=t||i.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.OneofOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},W.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},W.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.protobuf.OneofDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.options=l.google.protobuf.OneofOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},W.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},W.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.options&&e.hasOwnProperty("options")){e=l.google.protobuf.OneofOptions.verify(e.options);if(e)return"options."+e}return null},W.fromObject=function(e){if(e instanceof l.google.protobuf.OneofDescriptorProto)return e;var t=new l.google.protobuf.OneofDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");t.options=l.google.protobuf.OneofOptions.fromObject(e.options)}return t},W.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.protobuf.OneofOptions.toObject(e.options,t)),n},W.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},W),n.EnumDescriptorProto=(w.prototype.name="",w.prototype.value=p.emptyArray,w.prototype.options=null,w.prototype.reservedRange=p.emptyArray,w.prototype.reservedName=p.emptyArray,w.create=function(e){return new w(e)},w.encode=function(e,t){if(t=t||i.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&e.value.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.value&&o.value.length||(o.value=[]),o.value.push(l.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=l.google.protobuf.EnumOptions.decode(e,e.uint32());break;case 4:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(l.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(e,e.uint32()));break;case 5:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},w.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},w.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},X.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},X.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!p.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!p.isInteger(e.end)?"end: integer expected":null},X.fromObject=function(e){var t;return e instanceof l.google.protobuf.EnumDescriptorProto.EnumReservedRange?e:(t=new l.google.protobuf.EnumDescriptorProto.EnumReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},X.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},X.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},X),w),n.EnumValueDescriptorProto=(j.prototype.name="",j.prototype.number=0,j.prototype.options=null,j.create=function(e){return new j(e)},j.encode=function(e,t){return t=t||i.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(16).int32(e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.EnumValueOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},j.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},j.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.protobuf.EnumValueDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.number=e.int32();break;case 3:o.options=l.google.protobuf.EnumValueOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},j.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},j.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!p.isInteger(e.number))return"number: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=l.google.protobuf.EnumValueOptions.verify(e.options);if(e)return"options."+e}return null},j.fromObject=function(e){if(e instanceof l.google.protobuf.EnumValueDescriptorProto)return e;var t=new l.google.protobuf.EnumValueDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");t.options=l.google.protobuf.EnumValueOptions.fromObject(e.options)}return t},j.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.number=0,n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.protobuf.EnumValueOptions.toObject(e.options,t)),n},j.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},j),n.ServiceDescriptorProto=(D.prototype.name="",D.prototype.method=p.emptyArray,D.prototype.options=null,D.create=function(e){return new D(e)},D.encode=function(e,t){if(t=t||i.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.method&&e.method.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.method&&o.method.length||(o.method=[]),o.method.push(l.google.protobuf.MethodDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=l.google.protobuf.ServiceOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},D.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},D.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.method&&e.hasOwnProperty("method")){if(!Array.isArray(e.method))return"method: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.inputType=e.string();break;case 3:o.outputType=e.string();break;case 4:o.options=l.google.protobuf.MethodOptions.decode(e,e.uint32());break;case 5:o.clientStreaming=e.bool();break;case 6:o.serverStreaming=e.bool();break;default:e.skipType(7&r)}}return o},x.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},x.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!p.isString(e.name))return"name: string expected";if(null!=e.inputType&&e.hasOwnProperty("inputType")&&!p.isString(e.inputType))return"inputType: string expected";if(null!=e.outputType&&e.hasOwnProperty("outputType")&&!p.isString(e.outputType))return"outputType: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=l.google.protobuf.MethodOptions.verify(e.options);if(t)return"options."+t}return null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&"boolean"!=typeof e.clientStreaming?"clientStreaming: boolean expected":null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&"boolean"!=typeof e.serverStreaming?"serverStreaming: boolean expected":null},x.fromObject=function(e){if(e instanceof l.google.protobuf.MethodDescriptorProto)return e;var t=new l.google.protobuf.MethodDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.inputType&&(t.inputType=String(e.inputType)),null!=e.outputType&&(t.outputType=String(e.outputType)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");t.options=l.google.protobuf.MethodOptions.fromObject(e.options)}return null!=e.clientStreaming&&(t.clientStreaming=Boolean(e.clientStreaming)),null!=e.serverStreaming&&(t.serverStreaming=Boolean(e.serverStreaming)),t},x.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.inputType="",n.outputType="",n.options=null,n.clientStreaming=!1,n.serverStreaming=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.inputType&&e.hasOwnProperty("inputType")&&(n.inputType=e.inputType),null!=e.outputType&&e.hasOwnProperty("outputType")&&(n.outputType=e.outputType),null!=e.options&&e.hasOwnProperty("options")&&(n.options=l.google.protobuf.MethodOptions.toObject(e.options,t)),null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&(n.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&(n.serverStreaming=e.serverStreaming),n},x.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},x),n.FileOptions=(S.prototype.javaPackage="",S.prototype.javaOuterClassname="",S.prototype.javaMultipleFiles=!1,S.prototype.javaGenerateEqualsAndHash=!1,S.prototype.javaStringCheckUtf8=!1,S.prototype.optimizeFor=1,S.prototype.goPackage="",S.prototype.ccGenericServices=!1,S.prototype.javaGenericServices=!1,S.prototype.pyGenericServices=!1,S.prototype.phpGenericServices=!1,S.prototype.deprecated=!1,S.prototype.ccEnableArenas=!0,S.prototype.objcClassPrefix="",S.prototype.csharpNamespace="",S.prototype.swiftPrefix="",S.prototype.phpClassPrefix="",S.prototype.phpNamespace="",S.prototype.phpMetadataNamespace="",S.prototype.rubyPackage="",S.prototype.uninterpretedOption=p.emptyArray,S.prototype[".google.api.resourceDefinition"]=p.emptyArray,S.create=function(e){return new S(e)},S.encode=function(e,t){if(t=t||i.create(),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&t.uint32(10).string(e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&t.uint32(66).string(e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&t.uint32(72).int32(e.optimizeFor),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&t.uint32(80).bool(e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&t.uint32(90).string(e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&t.uint32(128).bool(e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&t.uint32(136).bool(e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&t.uint32(144).bool(e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(184).bool(e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&t.uint32(216).bool(e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&t.uint32(248).bool(e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&t.uint32(290).string(e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&t.uint32(298).string(e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&t.uint32(314).string(e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&t.uint32(322).string(e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&t.uint32(330).string(e.phpNamespace),null!=e.phpGenericServices&&Object.hasOwnProperty.call(e,"phpGenericServices")&&t.uint32(336).bool(e.phpGenericServices),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&t.uint32(354).string(e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&t.uint32(362).string(e.rubyPackage),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3){case 1:o.javaPackage=e.string();break;case 8:o.javaOuterClassname=e.string();break;case 10:o.javaMultipleFiles=e.bool();break;case 20:o.javaGenerateEqualsAndHash=e.bool();break;case 27:o.javaStringCheckUtf8=e.bool();break;case 9:o.optimizeFor=e.int32();break;case 11:o.goPackage=e.string();break;case 16:o.ccGenericServices=e.bool();break;case 17:o.javaGenericServices=e.bool();break;case 18:o.pyGenericServices=e.bool();break;case 42:o.phpGenericServices=e.bool();break;case 23:o.deprecated=e.bool();break;case 31:o.ccEnableArenas=e.bool();break;case 36:o.objcClassPrefix=e.string();break;case 37:o.csharpNamespace=e.string();break;case 39:o.swiftPrefix=e.string();break;case 40:o.phpClassPrefix=e.string();break;case 41:o.phpNamespace=e.string();break;case 44:o.phpMetadataNamespace=e.string();break;case 45:o.rubyPackage=e.string();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1053:o[".google.api.resourceDefinition"]&&o[".google.api.resourceDefinition"].length||(o[".google.api.resourceDefinition"]=[]),o[".google.api.resourceDefinition"].push(l.google.api.ResourceDescriptor.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},S.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},S.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&!p.isString(e.javaPackage))return"javaPackage: string expected";if(null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&!p.isString(e.javaOuterClassname))return"javaOuterClassname: string expected";if(null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&"boolean"!=typeof e.javaMultipleFiles)return"javaMultipleFiles: boolean expected";if(null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&"boolean"!=typeof e.javaGenerateEqualsAndHash)return"javaGenerateEqualsAndHash: boolean expected";if(null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&"boolean"!=typeof e.javaStringCheckUtf8)return"javaStringCheckUtf8: boolean expected";if(null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor"))switch(e.optimizeFor){default:return"optimizeFor: enum value expected";case 1:case 2:case 3:}if(null!=e.goPackage&&e.hasOwnProperty("goPackage")&&!p.isString(e.goPackage))return"goPackage: string expected";if(null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&"boolean"!=typeof e.ccGenericServices)return"ccGenericServices: boolean expected";if(null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&"boolean"!=typeof e.javaGenericServices)return"javaGenericServices: boolean expected";if(null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&"boolean"!=typeof e.pyGenericServices)return"pyGenericServices: boolean expected";if(null!=e.phpGenericServices&&e.hasOwnProperty("phpGenericServices")&&"boolean"!=typeof e.phpGenericServices)return"phpGenericServices: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&"boolean"!=typeof e.ccEnableArenas)return"ccEnableArenas: boolean expected";if(null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&!p.isString(e.objcClassPrefix))return"objcClassPrefix: string expected";if(null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&!p.isString(e.csharpNamespace))return"csharpNamespace: string expected";if(null!=e.swiftPrefix&&e.hasOwnProperty("swiftPrefix")&&!p.isString(e.swiftPrefix))return"swiftPrefix: string expected";if(null!=e.phpClassPrefix&&e.hasOwnProperty("phpClassPrefix")&&!p.isString(e.phpClassPrefix))return"phpClassPrefix: string expected";if(null!=e.phpNamespace&&e.hasOwnProperty("phpNamespace")&&!p.isString(e.phpNamespace))return"phpNamespace: string expected";if(null!=e.phpMetadataNamespace&&e.hasOwnProperty("phpMetadataNamespace")&&!p.isString(e.phpMetadataNamespace))return"phpMetadataNamespace: string expected";if(null!=e.rubyPackage&&e.hasOwnProperty("rubyPackage")&&!p.isString(e.rubyPackage))return"rubyPackage: string expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.messageSetWireFormat=e.bool();break;case 2:o.noStandardDescriptorAccessor=e.bool();break;case 3:o.deprecated=e.bool();break;case 7:o.mapEntry=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1053:o[".google.api.resource"]=l.google.api.ResourceDescriptor.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},k.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},k.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&"boolean"!=typeof e.messageSetWireFormat)return"messageSetWireFormat: boolean expected";if(null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&"boolean"!=typeof e.noStandardDescriptorAccessor)return"noStandardDescriptorAccessor: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&"boolean"!=typeof e.mapEntry)return"mapEntry: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.ctype=e.int32();break;case 2:o.packed=e.bool();break;case 6:o.jstype=e.int32();break;case 5:o.lazy=e.bool();break;case 3:o.deprecated=e.bool();break;case 10:o.weak=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1052:if(o[".google.api.fieldBehavior"]&&o[".google.api.fieldBehavior"].length||(o[".google.api.fieldBehavior"]=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},Q.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},Q.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.allowAlias=e.bool();break;case 3:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},E.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},E.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&"boolean"!=typeof e.allowAlias)return"allowAlias: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},K.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},K.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1049:o[".google.api.defaultHost"]=e.string();break;case 1050:o[".google.api.oauthScopes"]=e.string();break;default:e.skipType(7&r)}}return o},A.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},A.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 34:o.idempotencyLevel=e.int32();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 72295728:o[".google.api.http"]=l.google.api.HttpRule.decode(e,e.uint32());break;case 1051:o[".google.api.methodSignature"]&&o[".google.api.methodSignature"].length||(o[".google.api.methodSignature"]=[]),o[".google.api.methodSignature"].push(e.string());break;default:e.skipType(7&r)}}return o},N.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},N.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.idempotencyLevel&&e.hasOwnProperty("idempotencyLevel"))switch(e.idempotencyLevel){default:return"idempotencyLevel: enum value expected";case 0:case 1:case 2:}if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.name&&o.name.length||(o.name=[]),o.name.push(l.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32()));break;case 3:o.identifierValue=e.string();break;case 4:o.positiveIntValue=e.uint64();break;case 5:o.negativeIntValue=e.int64();break;case 6:o.doubleValue=e.double();break;case 7:o.stringValue=e.bytes();break;case 8:o.aggregateValue=e.string();break;default:e.skipType(7&r)}}return o},R.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},R.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")){if(!Array.isArray(e.name))return"name: array expected";for(var t=0;t>>0,e.positiveIntValue.high>>>0).toNumber(!0))),null!=e.negativeIntValue&&(p.Long?(t.negativeIntValue=p.Long.fromValue(e.negativeIntValue)).unsigned=!1:"string"==typeof e.negativeIntValue?t.negativeIntValue=parseInt(e.negativeIntValue,10):"number"==typeof e.negativeIntValue?t.negativeIntValue=e.negativeIntValue:"object"==typeof e.negativeIntValue&&(t.negativeIntValue=new p.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.stringValue&&("string"==typeof e.stringValue?p.base64.decode(e.stringValue,t.stringValue=p.newBuffer(p.base64.length(e.stringValue)),0):e.stringValue.length&&(t.stringValue=e.stringValue)),null!=e.aggregateValue&&(t.aggregateValue=String(e.aggregateValue)),t},R.toObject=function(e,t){var n,o={};if(((t=t||{}).arrays||t.defaults)&&(o.name=[]),t.defaults&&(o.identifierValue="",p.Long?(n=new p.Long(0,0,!0),o.positiveIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.positiveIntValue=t.longs===String?"0":0,p.Long?(n=new p.Long(0,0,!1),o.negativeIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.negativeIntValue=t.longs===String?"0":0,o.doubleValue=0,t.bytes===String?o.stringValue="":(o.stringValue=[],t.bytes!==Array&&(o.stringValue=p.newBuffer(o.stringValue))),o.aggregateValue=""),e.name&&e.name.length){o.name=[];for(var r=0;r>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&("number"==typeof e.negativeIntValue?o.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:o.negativeIntValue=t.longs===String?p.Long.prototype.toString.call(e.negativeIntValue):t.longs===Number?new p.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(o.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(o.stringValue=t.bytes===String?p.base64.encode(e.stringValue,0,e.stringValue.length):t.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&(o.aggregateValue=e.aggregateValue),o},R.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},R.NamePart=(Z.prototype.namePart="",Z.prototype.isExtension=!1,Z.create=function(e){return new Z(e)},Z.encode=function(e,t){return(t=t||i.create()).uint32(10).string(e.namePart),t.uint32(16).bool(e.isExtension),t},Z.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},Z.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new l.google.protobuf.UninterpretedOption.NamePart;e.pos>>3){case 1:o.namePart=e.string();break;case 2:o.isExtension=e.bool();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("namePart"))throw p.ProtocolError("missing required 'namePart'",{instance:o});if(o.hasOwnProperty("isExtension"))return o;throw p.ProtocolError("missing required 'isExtension'",{instance:o})},Z.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},Z.verify=function(e){return"object"!=typeof e||null===e?"object expected":p.isString(e.namePart)?"boolean"!=typeof e.isExtension?"isExtension: boolean expected":null:"namePart: string expected"},Z.fromObject=function(e){var t;return e instanceof l.google.protobuf.UninterpretedOption.NamePart?e:(t=new l.google.protobuf.UninterpretedOption.NamePart,null!=e.namePart&&(t.namePart=String(e.namePart)),null!=e.isExtension&&(t.isExtension=Boolean(e.isExtension)),t)},Z.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.namePart="",n.isExtension=!1),null!=e.namePart&&e.hasOwnProperty("namePart")&&(n.namePart=e.namePart),null!=e.isExtension&&e.hasOwnProperty("isExtension")&&(n.isExtension=e.isExtension),n},Z.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},Z),R),n.SourceCodeInfo=($.prototype.location=p.emptyArray,$.create=function(e){return new $(e)},$.encode=function(e,t){if(t=t||i.create(),null!=e.location&&e.location.length)for(var n=0;n>>3==1?(o.location&&o.location.length||(o.location=[]),o.location.push(l.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32()))):e.skipType(7&r)}return o},$.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},$.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.location&&e.hasOwnProperty("location")){if(!Array.isArray(e.location))return"location: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3==1?(o.annotation&&o.annotation.length||(o.annotation=[]),o.annotation.push(l.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32()))):e.skipType(7&r)}return o},ee.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},ee.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.annotation&&e.hasOwnProperty("annotation")){if(!Array.isArray(e.annotation))return"annotation: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.expression=e.string();break;case 2:o.title=e.string();break;case 3:o.description=e.string();break;case 4:o.location=e.string();break;default:e.skipType(7&r)}}return o},V.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},V.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.expression&&e.hasOwnProperty("expression")&&!p.isString(e.expression)?"expression: string expected":null!=e.title&&e.hasOwnProperty("title")&&!p.isString(e.title)?"title: string expected":null!=e.description&&e.hasOwnProperty("description")&&!p.isString(e.description)?"description: string expected":null!=e.location&&e.hasOwnProperty("location")&&!p.isString(e.location)?"location: string expected":null},V.fromObject=function(e){var t;return e instanceof l.google.type.Expr?e:(t=new l.google.type.Expr,null!=e.expression&&(t.expression=String(e.expression)),null!=e.title&&(t.title=String(e.title)),null!=e.description&&(t.description=String(e.description)),null!=e.location&&(t.location=String(e.location)),t)},V.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.expression="",n.title="",n.description="",n.location=""),null!=e.expression&&e.hasOwnProperty("expression")&&(n.expression=e.expression),null!=e.title&&e.hasOwnProperty("title")&&(n.title=e.title),null!=e.description&&e.hasOwnProperty("description")&&(n.description=e.description),null!=e.location&&e.hasOwnProperty("location")&&(n.location=e.location),n},V.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},V),r),F),l}); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListTargets(); -/***/ }), + if (data.hasOwnProperty('filter')) { + obj['filter'] = _ApiClient["default"].convertToType(data['filter'], 'String'); + } -/***/ 81937: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/* module decorator */ module = __nccwpck_require__.nmd(module); -(e=>{"function"==typeof define&&define.amd?define(["protobufjs/minimal"],e): true&&module&&module.exports&&(module.exports=e(__nccwpck_require__(37823)))})(function(o){var e,t,n,F,s=o.Reader,r=o.Writer,u=o.util,c=o.roots.locations_protos||(o.roots.locations_protos={});function L(e,t,n){o.rpc.Service.call(this,e,t,n)}function i(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.name=e.string();break;case 2:o.filter=e.string();break;case 3:o.pageSize=e.int32();break;case 4:o.pageToken=e.string();break;default:e.skipType(7&r)}}return o},i.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},i.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name)?"name: string expected":null!=e.filter&&e.hasOwnProperty("filter")&&!u.isString(e.filter)?"filter: string expected":null!=e.pageSize&&e.hasOwnProperty("pageSize")&&!u.isInteger(e.pageSize)?"pageSize: integer expected":null!=e.pageToken&&e.hasOwnProperty("pageToken")&&!u.isString(e.pageToken)?"pageToken: string expected":null},i.fromObject=function(e){var t;return e instanceof c.google.cloud.location.ListLocationsRequest?e:(t=new c.google.cloud.location.ListLocationsRequest,null!=e.name&&(t.name=String(e.name)),null!=e.filter&&(t.filter=String(e.filter)),null!=e.pageSize&&(t.pageSize=0|e.pageSize),null!=e.pageToken&&(t.pageToken=String(e.pageToken)),t)},i.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.filter="",n.pageSize=0,n.pageToken=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.filter&&e.hasOwnProperty("filter")&&(n.filter=e.filter),null!=e.pageSize&&e.hasOwnProperty("pageSize")&&(n.pageSize=e.pageSize),null!=e.pageToken&&e.hasOwnProperty("pageToken")&&(n.pageToken=e.pageToken),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},i),e.ListLocationsResponse=(a.prototype.locations=u.emptyArray,a.prototype.nextPageToken="",a.create=function(e){return new a(e)},a.encode=function(e,t){if(t=t||r.create(),null!=e.locations&&e.locations.length)for(var n=0;n>>3){case 1:o.locations&&o.locations.length||(o.locations=[]),o.locations.push(c.google.cloud.location.Location.decode(e,e.uint32()));break;case 2:o.nextPageToken=e.string();break;default:e.skipType(7&r)}}return o},a.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},a.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.locations&&e.hasOwnProperty("locations")){if(!Array.isArray(e.locations))return"locations: array expected";for(var t=0;t>>3==1?o.name=e.string():e.skipType(7&r)}return o},G.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},G.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name)?"name: string expected":null},G.fromObject=function(e){var t;return e instanceof c.google.cloud.location.GetLocationRequest?e:(t=new c.google.cloud.location.GetLocationRequest,null!=e.name&&(t.name=String(e.name)),t)},G.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},G.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},G),e.Location=(p.prototype.name="",p.prototype.locationId="",p.prototype.displayName="",p.prototype.labels=u.emptyObject,p.prototype.metadata=null,p.create=function(e){return new p(e)},p.encode=function(e,t){if(t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.labels&&Object.hasOwnProperty.call(e,"labels"))for(var n=Object.keys(e.labels),o=0;o>>3){case 1:o.name=e.string();break;case 4:o.locationId=e.string();break;case 5:o.displayName=e.string();break;case 2:o.labels===u.emptyObject&&(o.labels={});for(var i=e.uint32()+e.pos,a="",p="";e.pos>>3){case 1:a=e.string();break;case 2:p=e.string();break;default:e.skipType(7&l)}}o.labels[a]=p;break;case 3:o.metadata=c.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},p.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},p.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.locationId&&e.hasOwnProperty("locationId")&&!u.isString(e.locationId))return"locationId: string expected";if(null!=e.displayName&&e.hasOwnProperty("displayName")&&!u.isString(e.displayName))return"displayName: string expected";if(null!=e.labels&&e.hasOwnProperty("labels")){if(!u.isObject(e.labels))return"labels: object expected";for(var t=Object.keys(e.labels),n=0;n>>3){case 1:o.rules&&o.rules.length||(o.rules=[]),o.rules.push(c.google.api.HttpRule.decode(e,e.uint32()));break;case 2:o.fullyDecodeReservedExpansion=e.bool();break;default:e.skipType(7&r)}}return o},l.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},l.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.rules&&e.hasOwnProperty("rules")){if(!Array.isArray(e.rules))return"rules: array expected";for(var t=0;t>>3){case 1:o.selector=e.string();break;case 2:o.get=e.string();break;case 3:o.put=e.string();break;case 4:o.post=e.string();break;case 5:o.delete=e.string();break;case 6:o.patch=e.string();break;case 8:o.custom=c.google.api.CustomHttpPattern.decode(e,e.uint32());break;case 7:o.body=e.string();break;case 12:o.responseBody=e.string();break;case 11:o.additionalBindings&&o.additionalBindings.length||(o.additionalBindings=[]),o.additionalBindings.push(c.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},d.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},d.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t={};if(null!=e.selector&&e.hasOwnProperty("selector")&&!u.isString(e.selector))return"selector: string expected";if(null!=e.get&&e.hasOwnProperty("get")&&(t.pattern=1,!u.isString(e.get)))return"get: string expected";if(null!=e.put&&e.hasOwnProperty("put")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!u.isString(e.put))return"put: string expected"}if(null!=e.post&&e.hasOwnProperty("post")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!u.isString(e.post))return"post: string expected"}if(null!=e.delete&&e.hasOwnProperty("delete")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!u.isString(e.delete))return"delete: string expected"}if(null!=e.patch&&e.hasOwnProperty("patch")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!u.isString(e.patch))return"patch: string expected"}if(null!=e.custom&&e.hasOwnProperty("custom")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,n=c.google.api.CustomHttpPattern.verify(e.custom))return"custom."+n}if(null!=e.body&&e.hasOwnProperty("body")&&!u.isString(e.body))return"body: string expected";if(null!=e.responseBody&&e.hasOwnProperty("responseBody")&&!u.isString(e.responseBody))return"responseBody: string expected";if(null!=e.additionalBindings&&e.hasOwnProperty("additionalBindings")){if(!Array.isArray(e.additionalBindings))return"additionalBindings: array expected";for(var n,o=0;o>>3){case 1:o.kind=e.string();break;case 2:o.path=e.string();break;default:e.skipType(7&r)}}return o},g.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},g.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.kind&&e.hasOwnProperty("kind")&&!u.isString(e.kind)?"kind: string expected":null!=e.path&&e.hasOwnProperty("path")&&!u.isString(e.path)?"path: string expected":null},g.fromObject=function(e){var t;return e instanceof c.google.api.CustomHttpPattern?e:(t=new c.google.api.CustomHttpPattern,null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t)},g.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.kind="",n.path=""),null!=e.kind&&e.hasOwnProperty("kind")&&(n.kind=e.kind),null!=e.path&&e.hasOwnProperty("path")&&(n.path=e.path),n},g.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},g),e),F.protobuf=((n={}).FileDescriptorSet=(B.prototype.file=u.emptyArray,B.create=function(e){return new B(e)},B.encode=function(e,t){if(t=t||r.create(),null!=e.file&&e.file.length)for(var n=0;n>>3==1?(o.file&&o.file.length||(o.file=[]),o.file.push(c.google.protobuf.FileDescriptorProto.decode(e,e.uint32()))):e.skipType(7&r)}return o},B.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},B.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.file&&e.hasOwnProperty("file")){if(!Array.isArray(e.file))return"file: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.package=e.string();break;case 3:o.dependency&&o.dependency.length||(o.dependency=[]),o.dependency.push(e.string());break;case 10:if(o.publicDependency&&o.publicDependency.length||(o.publicDependency=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.name=e.string();break;case 2:o.field&&o.field.length||(o.field=[]),o.field.push(c.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 6:o.extension&&o.extension.length||(o.extension=[]),o.extension.push(c.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 3:o.nestedType&&o.nestedType.length||(o.nestedType=[]),o.nestedType.push(c.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 4:o.enumType&&o.enumType.length||(o.enumType=[]),o.enumType.push(c.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 5:o.extensionRange&&o.extensionRange.length||(o.extensionRange=[]),o.extensionRange.push(c.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32()));break;case 8:o.oneofDecl&&o.oneofDecl.length||(o.oneofDecl=[]),o.oneofDecl.push(c.google.protobuf.OneofDescriptorProto.decode(e,e.uint32()));break;case 7:o.options=c.google.protobuf.MessageOptions.decode(e,e.uint32());break;case 9:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(c.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32()));break;case 10:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},y.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},y.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.field&&e.hasOwnProperty("field")){if(!Array.isArray(e.field))return"field: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;case 3:o.options=c.google.protobuf.ExtensionRangeOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},h.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},h.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.start&&e.hasOwnProperty("start")&&!u.isInteger(e.start))return"start: integer expected";if(null!=e.end&&e.hasOwnProperty("end")&&!u.isInteger(e.end))return"end: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=c.google.protobuf.ExtensionRangeOptions.verify(e.options);if(e)return"options."+e}return null},h.fromObject=function(e){if(e instanceof c.google.protobuf.DescriptorProto.ExtensionRange)return e;var t=new c.google.protobuf.DescriptorProto.ExtensionRange;if(null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");t.options=c.google.protobuf.ExtensionRangeOptions.fromObject(e.options)}return t},h.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0,n.options=null),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),null!=e.options&&e.hasOwnProperty("options")&&(n.options=c.google.protobuf.ExtensionRangeOptions.toObject(e.options,t)),n},h.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},h),y.ReservedRange=(b.prototype.start=0,b.prototype.end=0,b.create=function(e){return new b(e)},b.encode=function(e,t){return t=t||r.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},b.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},b.decode=function(e,t){e instanceof s||(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new c.google.protobuf.DescriptorProto.ReservedRange;e.pos>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},b.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},b.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!u.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!u.isInteger(e.end)?"end: integer expected":null},b.fromObject=function(e){var t;return e instanceof c.google.protobuf.DescriptorProto.ReservedRange?e:(t=new c.google.protobuf.DescriptorProto.ReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},b.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},b.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},b),y),n.ExtensionRangeOptions=(U.prototype.uninterpretedOption=u.emptyArray,U.create=function(e){return new U(e)},U.encode=function(e,t){if(t=t||r.create(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},U.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},U.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 3:o.number=e.int32();break;case 4:o.label=e.int32();break;case 5:o.type=e.int32();break;case 6:o.typeName=e.string();break;case 2:o.extendee=e.string();break;case 7:o.defaultValue=e.string();break;case 9:o.oneofIndex=e.int32();break;case 10:o.jsonName=e.string();break;case 8:o.options=c.google.protobuf.FieldOptions.decode(e,e.uint32());break;case 17:o.proto3Optional=e.bool();break;default:e.skipType(7&r)}}return o},O.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},O.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!u.isInteger(e.number))return"number: integer expected";if(null!=e.label&&e.hasOwnProperty("label"))switch(e.label){default:return"label: enum value expected";case 1:case 2:case 3:}if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:}if(null!=e.typeName&&e.hasOwnProperty("typeName")&&!u.isString(e.typeName))return"typeName: string expected";if(null!=e.extendee&&e.hasOwnProperty("extendee")&&!u.isString(e.extendee))return"extendee: string expected";if(null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&!u.isString(e.defaultValue))return"defaultValue: string expected";if(null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&!u.isInteger(e.oneofIndex))return"oneofIndex: integer expected";if(null!=e.jsonName&&e.hasOwnProperty("jsonName")&&!u.isString(e.jsonName))return"jsonName: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=c.google.protobuf.FieldOptions.verify(e.options);if(t)return"options."+t}return null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&"boolean"!=typeof e.proto3Optional?"proto3Optional: boolean expected":null},O.fromObject=function(e){if(e instanceof c.google.protobuf.FieldDescriptorProto)return e;var t=new c.google.protobuf.FieldDescriptorProto;switch(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),e.label){case"LABEL_OPTIONAL":case 1:t.label=1;break;case"LABEL_REQUIRED":case 2:t.label=2;break;case"LABEL_REPEATED":case 3:t.label=3}switch(e.type){case"TYPE_DOUBLE":case 1:t.type=1;break;case"TYPE_FLOAT":case 2:t.type=2;break;case"TYPE_INT64":case 3:t.type=3;break;case"TYPE_UINT64":case 4:t.type=4;break;case"TYPE_INT32":case 5:t.type=5;break;case"TYPE_FIXED64":case 6:t.type=6;break;case"TYPE_FIXED32":case 7:t.type=7;break;case"TYPE_BOOL":case 8:t.type=8;break;case"TYPE_STRING":case 9:t.type=9;break;case"TYPE_GROUP":case 10:t.type=10;break;case"TYPE_MESSAGE":case 11:t.type=11;break;case"TYPE_BYTES":case 12:t.type=12;break;case"TYPE_UINT32":case 13:t.type=13;break;case"TYPE_ENUM":case 14:t.type=14;break;case"TYPE_SFIXED32":case 15:t.type=15;break;case"TYPE_SFIXED64":case 16:t.type=16;break;case"TYPE_SINT32":case 17:t.type=17;break;case"TYPE_SINT64":case 18:t.type=18}if(null!=e.typeName&&(t.typeName=String(e.typeName)),null!=e.extendee&&(t.extendee=String(e.extendee)),null!=e.defaultValue&&(t.defaultValue=String(e.defaultValue)),null!=e.oneofIndex&&(t.oneofIndex=0|e.oneofIndex),null!=e.jsonName&&(t.jsonName=String(e.jsonName)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");t.options=c.google.protobuf.FieldOptions.fromObject(e.options)}return null!=e.proto3Optional&&(t.proto3Optional=Boolean(e.proto3Optional)),t},O.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.extendee="",n.number=0,n.label=t.enums===String?"LABEL_OPTIONAL":1,n.type=t.enums===String?"TYPE_DOUBLE":1,n.typeName="",n.defaultValue="",n.options=null,n.oneofIndex=0,n.jsonName="",n.proto3Optional=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.extendee&&e.hasOwnProperty("extendee")&&(n.extendee=e.extendee),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.label&&e.hasOwnProperty("label")&&(n.label=t.enums===String?c.google.protobuf.FieldDescriptorProto.Label[e.label]:e.label),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?c.google.protobuf.FieldDescriptorProto.Type[e.type]:e.type),null!=e.typeName&&e.hasOwnProperty("typeName")&&(n.typeName=e.typeName),null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&(n.defaultValue=e.defaultValue),null!=e.options&&e.hasOwnProperty("options")&&(n.options=c.google.protobuf.FieldOptions.toObject(e.options,t)),null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&(n.oneofIndex=e.oneofIndex),null!=e.jsonName&&e.hasOwnProperty("jsonName")&&(n.jsonName=e.jsonName),null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&(n.proto3Optional=e.proto3Optional),n},O.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},O.Type=(e={},(t=Object.create(e))[e[1]="TYPE_DOUBLE"]=1,t[e[2]="TYPE_FLOAT"]=2,t[e[3]="TYPE_INT64"]=3,t[e[4]="TYPE_UINT64"]=4,t[e[5]="TYPE_INT32"]=5,t[e[6]="TYPE_FIXED64"]=6,t[e[7]="TYPE_FIXED32"]=7,t[e[8]="TYPE_BOOL"]=8,t[e[9]="TYPE_STRING"]=9,t[e[10]="TYPE_GROUP"]=10,t[e[11]="TYPE_MESSAGE"]=11,t[e[12]="TYPE_BYTES"]=12,t[e[13]="TYPE_UINT32"]=13,t[e[14]="TYPE_ENUM"]=14,t[e[15]="TYPE_SFIXED32"]=15,t[e[16]="TYPE_SFIXED64"]=16,t[e[17]="TYPE_SINT32"]=17,t[e[18]="TYPE_SINT64"]=18,t),O.Label=(e={},(t=Object.create(e))[e[1]="LABEL_OPTIONAL"]=1,t[e[2]="LABEL_REQUIRED"]=2,t[e[3]="LABEL_REPEATED"]=3,t),O),n.OneofDescriptorProto=(m.prototype.name="",m.prototype.options=null,m.create=function(e){return new m(e)},m.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&c.google.protobuf.OneofOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},m.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},m.decode=function(e,t){e instanceof s||(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new c.google.protobuf.OneofDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.options=c.google.protobuf.OneofOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},m.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},m.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.options&&e.hasOwnProperty("options")){e=c.google.protobuf.OneofOptions.verify(e.options);if(e)return"options."+e}return null},m.fromObject=function(e){if(e instanceof c.google.protobuf.OneofDescriptorProto)return e;var t=new c.google.protobuf.OneofDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");t.options=c.google.protobuf.OneofOptions.fromObject(e.options)}return t},m.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.options&&e.hasOwnProperty("options")&&(n.options=c.google.protobuf.OneofOptions.toObject(e.options,t)),n},m.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},m),n.EnumDescriptorProto=(v.prototype.name="",v.prototype.value=u.emptyArray,v.prototype.options=null,v.prototype.reservedRange=u.emptyArray,v.prototype.reservedName=u.emptyArray,v.create=function(e){return new v(e)},v.encode=function(e,t){if(t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&e.value.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.value&&o.value.length||(o.value=[]),o.value.push(c.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=c.google.protobuf.EnumOptions.decode(e,e.uint32());break;case 4:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(c.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(e,e.uint32()));break;case 5:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},v.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},v.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},P.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},P.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!u.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!u.isInteger(e.end)?"end: integer expected":null},P.fromObject=function(e){var t;return e instanceof c.google.protobuf.EnumDescriptorProto.EnumReservedRange?e:(t=new c.google.protobuf.EnumDescriptorProto.EnumReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},P.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},P.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},P),v),n.EnumValueDescriptorProto=(w.prototype.name="",w.prototype.number=0,w.prototype.options=null,w.create=function(e){return new w(e)},w.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(16).int32(e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&c.google.protobuf.EnumValueOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},w.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},w.decode=function(e,t){e instanceof s||(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new c.google.protobuf.EnumValueDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.number=e.int32();break;case 3:o.options=c.google.protobuf.EnumValueOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},w.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},w.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!u.isInteger(e.number))return"number: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=c.google.protobuf.EnumValueOptions.verify(e.options);if(e)return"options."+e}return null},w.fromObject=function(e){if(e instanceof c.google.protobuf.EnumValueDescriptorProto)return e;var t=new c.google.protobuf.EnumValueDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");t.options=c.google.protobuf.EnumValueOptions.fromObject(e.options)}return t},w.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.number=0,n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.options&&e.hasOwnProperty("options")&&(n.options=c.google.protobuf.EnumValueOptions.toObject(e.options,t)),n},w.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},w),n.ServiceDescriptorProto=(j.prototype.name="",j.prototype.method=u.emptyArray,j.prototype.options=null,j.create=function(e){return new j(e)},j.encode=function(e,t){if(t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.method&&e.method.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.method&&o.method.length||(o.method=[]),o.method.push(c.google.protobuf.MethodDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=c.google.protobuf.ServiceOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},j.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},j.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.method&&e.hasOwnProperty("method")){if(!Array.isArray(e.method))return"method: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.inputType=e.string();break;case 3:o.outputType=e.string();break;case 4:o.options=c.google.protobuf.MethodOptions.decode(e,e.uint32());break;case 5:o.clientStreaming=e.bool();break;case 6:o.serverStreaming=e.bool();break;default:e.skipType(7&r)}}return o},x.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},x.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!u.isString(e.name))return"name: string expected";if(null!=e.inputType&&e.hasOwnProperty("inputType")&&!u.isString(e.inputType))return"inputType: string expected";if(null!=e.outputType&&e.hasOwnProperty("outputType")&&!u.isString(e.outputType))return"outputType: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=c.google.protobuf.MethodOptions.verify(e.options);if(t)return"options."+t}return null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&"boolean"!=typeof e.clientStreaming?"clientStreaming: boolean expected":null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&"boolean"!=typeof e.serverStreaming?"serverStreaming: boolean expected":null},x.fromObject=function(e){if(e instanceof c.google.protobuf.MethodDescriptorProto)return e;var t=new c.google.protobuf.MethodDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.inputType&&(t.inputType=String(e.inputType)),null!=e.outputType&&(t.outputType=String(e.outputType)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");t.options=c.google.protobuf.MethodOptions.fromObject(e.options)}return null!=e.clientStreaming&&(t.clientStreaming=Boolean(e.clientStreaming)),null!=e.serverStreaming&&(t.serverStreaming=Boolean(e.serverStreaming)),t},x.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.inputType="",n.outputType="",n.options=null,n.clientStreaming=!1,n.serverStreaming=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.inputType&&e.hasOwnProperty("inputType")&&(n.inputType=e.inputType),null!=e.outputType&&e.hasOwnProperty("outputType")&&(n.outputType=e.outputType),null!=e.options&&e.hasOwnProperty("options")&&(n.options=c.google.protobuf.MethodOptions.toObject(e.options,t)),null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&(n.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&(n.serverStreaming=e.serverStreaming),n},x.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},x),n.FileOptions=(S.prototype.javaPackage="",S.prototype.javaOuterClassname="",S.prototype.javaMultipleFiles=!1,S.prototype.javaGenerateEqualsAndHash=!1,S.prototype.javaStringCheckUtf8=!1,S.prototype.optimizeFor=1,S.prototype.goPackage="",S.prototype.ccGenericServices=!1,S.prototype.javaGenericServices=!1,S.prototype.pyGenericServices=!1,S.prototype.phpGenericServices=!1,S.prototype.deprecated=!1,S.prototype.ccEnableArenas=!0,S.prototype.objcClassPrefix="",S.prototype.csharpNamespace="",S.prototype.swiftPrefix="",S.prototype.phpClassPrefix="",S.prototype.phpNamespace="",S.prototype.phpMetadataNamespace="",S.prototype.rubyPackage="",S.prototype.uninterpretedOption=u.emptyArray,S.create=function(e){return new S(e)},S.encode=function(e,t){if(t=t||r.create(),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&t.uint32(10).string(e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&t.uint32(66).string(e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&t.uint32(72).int32(e.optimizeFor),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&t.uint32(80).bool(e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&t.uint32(90).string(e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&t.uint32(128).bool(e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&t.uint32(136).bool(e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&t.uint32(144).bool(e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(184).bool(e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&t.uint32(216).bool(e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&t.uint32(248).bool(e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&t.uint32(290).string(e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&t.uint32(298).string(e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&t.uint32(314).string(e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&t.uint32(322).string(e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&t.uint32(330).string(e.phpNamespace),null!=e.phpGenericServices&&Object.hasOwnProperty.call(e,"phpGenericServices")&&t.uint32(336).bool(e.phpGenericServices),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&t.uint32(354).string(e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&t.uint32(362).string(e.rubyPackage),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3){case 1:o.javaPackage=e.string();break;case 8:o.javaOuterClassname=e.string();break;case 10:o.javaMultipleFiles=e.bool();break;case 20:o.javaGenerateEqualsAndHash=e.bool();break;case 27:o.javaStringCheckUtf8=e.bool();break;case 9:o.optimizeFor=e.int32();break;case 11:o.goPackage=e.string();break;case 16:o.ccGenericServices=e.bool();break;case 17:o.javaGenericServices=e.bool();break;case 18:o.pyGenericServices=e.bool();break;case 42:o.phpGenericServices=e.bool();break;case 23:o.deprecated=e.bool();break;case 31:o.ccEnableArenas=e.bool();break;case 36:o.objcClassPrefix=e.string();break;case 37:o.csharpNamespace=e.string();break;case 39:o.swiftPrefix=e.string();break;case 40:o.phpClassPrefix=e.string();break;case 41:o.phpNamespace=e.string();break;case 44:o.phpMetadataNamespace=e.string();break;case 45:o.rubyPackage=e.string();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},S.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},S.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&!u.isString(e.javaPackage))return"javaPackage: string expected";if(null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&!u.isString(e.javaOuterClassname))return"javaOuterClassname: string expected";if(null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&"boolean"!=typeof e.javaMultipleFiles)return"javaMultipleFiles: boolean expected";if(null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&"boolean"!=typeof e.javaGenerateEqualsAndHash)return"javaGenerateEqualsAndHash: boolean expected";if(null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&"boolean"!=typeof e.javaStringCheckUtf8)return"javaStringCheckUtf8: boolean expected";if(null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor"))switch(e.optimizeFor){default:return"optimizeFor: enum value expected";case 1:case 2:case 3:}if(null!=e.goPackage&&e.hasOwnProperty("goPackage")&&!u.isString(e.goPackage))return"goPackage: string expected";if(null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&"boolean"!=typeof e.ccGenericServices)return"ccGenericServices: boolean expected";if(null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&"boolean"!=typeof e.javaGenericServices)return"javaGenericServices: boolean expected";if(null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&"boolean"!=typeof e.pyGenericServices)return"pyGenericServices: boolean expected";if(null!=e.phpGenericServices&&e.hasOwnProperty("phpGenericServices")&&"boolean"!=typeof e.phpGenericServices)return"phpGenericServices: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&"boolean"!=typeof e.ccEnableArenas)return"ccEnableArenas: boolean expected";if(null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&!u.isString(e.objcClassPrefix))return"objcClassPrefix: string expected";if(null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&!u.isString(e.csharpNamespace))return"csharpNamespace: string expected";if(null!=e.swiftPrefix&&e.hasOwnProperty("swiftPrefix")&&!u.isString(e.swiftPrefix))return"swiftPrefix: string expected";if(null!=e.phpClassPrefix&&e.hasOwnProperty("phpClassPrefix")&&!u.isString(e.phpClassPrefix))return"phpClassPrefix: string expected";if(null!=e.phpNamespace&&e.hasOwnProperty("phpNamespace")&&!u.isString(e.phpNamespace))return"phpNamespace: string expected";if(null!=e.phpMetadataNamespace&&e.hasOwnProperty("phpMetadataNamespace")&&!u.isString(e.phpMetadataNamespace))return"phpMetadataNamespace: string expected";if(null!=e.rubyPackage&&e.hasOwnProperty("rubyPackage")&&!u.isString(e.rubyPackage))return"rubyPackage: string expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.messageSetWireFormat=e.bool();break;case 2:o.noStandardDescriptorAccessor=e.bool();break;case 3:o.deprecated=e.bool();break;case 7:o.mapEntry=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},k.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},k.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&"boolean"!=typeof e.messageSetWireFormat)return"messageSetWireFormat: boolean expected";if(null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&"boolean"!=typeof e.noStandardDescriptorAccessor)return"noStandardDescriptorAccessor: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&"boolean"!=typeof e.mapEntry)return"mapEntry: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.ctype=e.int32();break;case 2:o.packed=e.bool();break;case 6:o.jstype=e.int32();break;case 5:o.lazy=e.bool();break;case 3:o.deprecated=e.bool();break;case 10:o.weak=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},D.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},D.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.ctype&&e.hasOwnProperty("ctype"))switch(e.ctype){default:return"ctype: enum value expected";case 0:case 1:case 2:}if(null!=e.packed&&e.hasOwnProperty("packed")&&"boolean"!=typeof e.packed)return"packed: boolean expected";if(null!=e.jstype&&e.hasOwnProperty("jstype"))switch(e.jstype){default:return"jstype: enum value expected";case 0:case 1:case 2:}if(null!=e.lazy&&e.hasOwnProperty("lazy")&&"boolean"!=typeof e.lazy)return"lazy: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.weak&&e.hasOwnProperty("weak")&&"boolean"!=typeof e.weak)return"weak: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},M.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},M.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.allowAlias=e.bool();break;case 3:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},T.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},T.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&"boolean"!=typeof e.allowAlias)return"allowAlias: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},E.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},E.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1049:o[".google.api.defaultHost"]=e.string();break;case 1050:o[".google.api.oauthScopes"]=e.string();break;default:e.skipType(7&r)}}return o},A.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},A.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 34:o.idempotencyLevel=e.int32();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(c.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 72295728:o[".google.api.http"]=c.google.api.HttpRule.decode(e,e.uint32());break;case 1051:o[".google.api.methodSignature"]&&o[".google.api.methodSignature"].length||(o[".google.api.methodSignature"]=[]),o[".google.api.methodSignature"].push(e.string());break;default:e.skipType(7&r)}}return o},N.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},N.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.idempotencyLevel&&e.hasOwnProperty("idempotencyLevel"))switch(e.idempotencyLevel){default:return"idempotencyLevel: enum value expected";case 0:case 1:case 2:}if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.name&&o.name.length||(o.name=[]),o.name.push(c.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32()));break;case 3:o.identifierValue=e.string();break;case 4:o.positiveIntValue=e.uint64();break;case 5:o.negativeIntValue=e.int64();break;case 6:o.doubleValue=e.double();break;case 7:o.stringValue=e.bytes();break;case 8:o.aggregateValue=e.string();break;default:e.skipType(7&r)}}return o},I.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},I.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")){if(!Array.isArray(e.name))return"name: array expected";for(var t=0;t>>0,e.positiveIntValue.high>>>0).toNumber(!0))),null!=e.negativeIntValue&&(u.Long?(t.negativeIntValue=u.Long.fromValue(e.negativeIntValue)).unsigned=!1:"string"==typeof e.negativeIntValue?t.negativeIntValue=parseInt(e.negativeIntValue,10):"number"==typeof e.negativeIntValue?t.negativeIntValue=e.negativeIntValue:"object"==typeof e.negativeIntValue&&(t.negativeIntValue=new u.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.stringValue&&("string"==typeof e.stringValue?u.base64.decode(e.stringValue,t.stringValue=u.newBuffer(u.base64.length(e.stringValue)),0):e.stringValue.length&&(t.stringValue=e.stringValue)),null!=e.aggregateValue&&(t.aggregateValue=String(e.aggregateValue)),t},I.toObject=function(e,t){var n,o={};if(((t=t||{}).arrays||t.defaults)&&(o.name=[]),t.defaults&&(o.identifierValue="",u.Long?(n=new u.Long(0,0,!0),o.positiveIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.positiveIntValue=t.longs===String?"0":0,u.Long?(n=new u.Long(0,0,!1),o.negativeIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.negativeIntValue=t.longs===String?"0":0,o.doubleValue=0,t.bytes===String?o.stringValue="":(o.stringValue=[],t.bytes!==Array&&(o.stringValue=u.newBuffer(o.stringValue))),o.aggregateValue=""),e.name&&e.name.length){o.name=[];for(var r=0;r>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&("number"==typeof e.negativeIntValue?o.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:o.negativeIntValue=t.longs===String?u.Long.prototype.toString.call(e.negativeIntValue):t.longs===Number?new u.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(o.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(o.stringValue=t.bytes===String?u.base64.encode(e.stringValue,0,e.stringValue.length):t.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&(o.aggregateValue=e.aggregateValue),o},I.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},I.NamePart=(R.prototype.namePart="",R.prototype.isExtension=!1,R.create=function(e){return new R(e)},R.encode=function(e,t){return(t=t||r.create()).uint32(10).string(e.namePart),t.uint32(16).bool(e.isExtension),t},R.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},R.decode=function(e,t){e instanceof s||(e=s.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new c.google.protobuf.UninterpretedOption.NamePart;e.pos>>3){case 1:o.namePart=e.string();break;case 2:o.isExtension=e.bool();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("namePart"))throw u.ProtocolError("missing required 'namePart'",{instance:o});if(o.hasOwnProperty("isExtension"))return o;throw u.ProtocolError("missing required 'isExtension'",{instance:o})},R.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},R.verify=function(e){return"object"!=typeof e||null===e?"object expected":u.isString(e.namePart)?"boolean"!=typeof e.isExtension?"isExtension: boolean expected":null:"namePart: string expected"},R.fromObject=function(e){var t;return e instanceof c.google.protobuf.UninterpretedOption.NamePart?e:(t=new c.google.protobuf.UninterpretedOption.NamePart,null!=e.namePart&&(t.namePart=String(e.namePart)),null!=e.isExtension&&(t.isExtension=Boolean(e.isExtension)),t)},R.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.namePart="",n.isExtension=!1),null!=e.namePart&&e.hasOwnProperty("namePart")&&(n.namePart=e.namePart),null!=e.isExtension&&e.hasOwnProperty("isExtension")&&(n.isExtension=e.isExtension),n},R.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},R),I),n.SourceCodeInfo=(_.prototype.location=u.emptyArray,_.create=function(e){return new _(e)},_.encode=function(e,t){if(t=t||r.create(),null!=e.location&&e.location.length)for(var n=0;n>>3==1?(o.location&&o.location.length||(o.location=[]),o.location.push(c.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32()))):e.skipType(7&r)}return o},_.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},_.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.location&&e.hasOwnProperty("location")){if(!Array.isArray(e.location))return"location: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3==1?(o.annotation&&o.annotation.length||(o.annotation=[]),o.annotation.push(c.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32()))):e.skipType(7&r)}return o},J.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},J.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.annotation&&e.hasOwnProperty("annotation")){if(!Array.isArray(e.annotation))return"annotation: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.type_url=e.string();break;case 2:o.value=e.bytes();break;default:e.skipType(7&r)}}return o},H.decodeDelimited=function(e){return e instanceof s||(e=new s(e)),this.decode(e,e.uint32())},H.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.type_url&&e.hasOwnProperty("type_url")&&!u.isString(e.type_url)?"type_url: string expected":null!=e.value&&e.hasOwnProperty("value")&&!(e.value&&"number"==typeof e.value.length||u.isString(e.value))?"value: buffer expected":null},H.fromObject=function(e){var t;return e instanceof c.google.protobuf.Any?e:(t=new c.google.protobuf.Any,null!=e.type_url&&(t.type_url=String(e.type_url)),null!=e.value&&("string"==typeof e.value?u.base64.decode(e.value,t.value=u.newBuffer(u.base64.length(e.value)),0):e.value.length&&(t.value=e.value)),t)},H.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.type_url="",t.bytes===String?n.value="":(n.value=[],t.bytes!==Array&&(n.value=u.newBuffer(n.value)))),null!=e.type_url&&e.hasOwnProperty("type_url")&&(n.type_url=e.type_url),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.bytes===String?u.base64.encode(e.value,0,e.value.length):t.bytes===Array?Array.prototype.slice.call(e.value):e.value),n},H.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},H),n),F),c}); + if (data.hasOwnProperty('pagination-token')) { + obj['pagination-token'] = _ApiClient["default"].convertToType(data['pagination-token'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -/***/ 99467: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], ['String']); + } -/* module decorator */ module = __nccwpck_require__.nmd(module); -(e=>{"function"==typeof define&&define.amd?define(["protobufjs/minimal"],e): true&&module&&module.exports&&(module.exports=e(__nccwpck_require__(37823)))})(function(o){var e,t,n,F,a=o.Reader,r=o.Writer,i=o.util,p=o.roots.operations_protos||(o.roots.operations_protos={});function G(e,t,n){o.rpc.Service.call(this,e,t,n)}function l(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.name=e.string();break;case 2:o.metadata=p.google.protobuf.Any.decode(e,e.uint32());break;case 3:o.done=e.bool();break;case 4:o.error=p.google.rpc.Status.decode(e,e.uint32());break;case 5:o.response=p.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},l.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},l.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t,n={};if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.metadata&&e.hasOwnProperty("metadata")&&(t=p.google.protobuf.Any.verify(e.metadata)))return"metadata."+t;if(null!=e.done&&e.hasOwnProperty("done")&&"boolean"!=typeof e.done)return"done: boolean expected";if(null!=e.error&&e.hasOwnProperty("error")&&(n.result=1,t=p.google.rpc.Status.verify(e.error)))return"error."+t;if(null!=e.response&&e.hasOwnProperty("response")){if(1===n.result)return"result: multiple values";if(n.result=1,t=p.google.protobuf.Any.verify(e.response))return"response."+t}return null},l.fromObject=function(e){if(e instanceof p.google.longrunning.Operation)return e;var t=new p.google.longrunning.Operation;if(null!=e.name&&(t.name=String(e.name)),null!=e.metadata){if("object"!=typeof e.metadata)throw TypeError(".google.longrunning.Operation.metadata: object expected");t.metadata=p.google.protobuf.Any.fromObject(e.metadata)}if(null!=e.done&&(t.done=Boolean(e.done)),null!=e.error){if("object"!=typeof e.error)throw TypeError(".google.longrunning.Operation.error: object expected");t.error=p.google.rpc.Status.fromObject(e.error)}if(null!=e.response){if("object"!=typeof e.response)throw TypeError(".google.longrunning.Operation.response: object expected");t.response=p.google.protobuf.Any.fromObject(e.response)}return t},l.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.metadata=null,n.done=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.metadata&&e.hasOwnProperty("metadata")&&(n.metadata=p.google.protobuf.Any.toObject(e.metadata,t)),null!=e.done&&e.hasOwnProperty("done")&&(n.done=e.done),null!=e.error&&e.hasOwnProperty("error")&&(n.error=p.google.rpc.Status.toObject(e.error,t),t.oneofs)&&(n.result="error"),null!=e.response&&e.hasOwnProperty("response")&&(n.response=p.google.protobuf.Any.toObject(e.response,t),t.oneofs)&&(n.result="response"),n},l.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},l),t.GetOperationRequest=(B.prototype.name="",B.create=function(e){return new B(e)},B.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),t},B.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},B.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.longrunning.GetOperationRequest;e.pos>>3==1?o.name=e.string():e.skipType(7&r)}return o},B.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},B.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null},B.fromObject=function(e){var t;return e instanceof p.google.longrunning.GetOperationRequest?e:(t=new p.google.longrunning.GetOperationRequest,null!=e.name&&(t.name=String(e.name)),t)},B.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},B.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},B),t.ListOperationsRequest=(s.prototype.name="",s.prototype.filter="",s.prototype.pageSize=0,s.prototype.pageToken="",s.create=function(e){return new s(e)},s.encode=function(e,t){return t=t||r.create(),null!=e.filter&&Object.hasOwnProperty.call(e,"filter")&&t.uint32(10).string(e.filter),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&t.uint32(16).int32(e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&t.uint32(26).string(e.pageToken),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(34).string(e.name),t},s.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},s.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.longrunning.ListOperationsRequest;e.pos>>3){case 4:o.name=e.string();break;case 1:o.filter=e.string();break;case 2:o.pageSize=e.int32();break;case 3:o.pageToken=e.string();break;default:e.skipType(7&r)}}return o},s.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},s.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null!=e.filter&&e.hasOwnProperty("filter")&&!i.isString(e.filter)?"filter: string expected":null!=e.pageSize&&e.hasOwnProperty("pageSize")&&!i.isInteger(e.pageSize)?"pageSize: integer expected":null!=e.pageToken&&e.hasOwnProperty("pageToken")&&!i.isString(e.pageToken)?"pageToken: string expected":null},s.fromObject=function(e){var t;return e instanceof p.google.longrunning.ListOperationsRequest?e:(t=new p.google.longrunning.ListOperationsRequest,null!=e.name&&(t.name=String(e.name)),null!=e.filter&&(t.filter=String(e.filter)),null!=e.pageSize&&(t.pageSize=0|e.pageSize),null!=e.pageToken&&(t.pageToken=String(e.pageToken)),t)},s.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.filter="",n.pageSize=0,n.pageToken="",n.name=""),null!=e.filter&&e.hasOwnProperty("filter")&&(n.filter=e.filter),null!=e.pageSize&&e.hasOwnProperty("pageSize")&&(n.pageSize=e.pageSize),null!=e.pageToken&&e.hasOwnProperty("pageToken")&&(n.pageToken=e.pageToken),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},s.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},s),t.ListOperationsResponse=(u.prototype.operations=i.emptyArray,u.prototype.nextPageToken="",u.create=function(e){return new u(e)},u.encode=function(e,t){if(t=t||r.create(),null!=e.operations&&e.operations.length)for(var n=0;n>>3){case 1:o.operations&&o.operations.length||(o.operations=[]),o.operations.push(p.google.longrunning.Operation.decode(e,e.uint32()));break;case 2:o.nextPageToken=e.string();break;default:e.skipType(7&r)}}return o},u.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},u.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.operations&&e.hasOwnProperty("operations")){if(!Array.isArray(e.operations))return"operations: array expected";for(var t=0;t>>3==1?o.name=e.string():e.skipType(7&r)}return o},L.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},L.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null},L.fromObject=function(e){var t;return e instanceof p.google.longrunning.CancelOperationRequest?e:(t=new p.google.longrunning.CancelOperationRequest,null!=e.name&&(t.name=String(e.name)),t)},L.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},L.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},L),t.DeleteOperationRequest=(U.prototype.name="",U.create=function(e){return new U(e)},U.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),t},U.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},U.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.longrunning.DeleteOperationRequest;e.pos>>3==1?o.name=e.string():e.skipType(7&r)}return o},U.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},U.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null},U.fromObject=function(e){var t;return e instanceof p.google.longrunning.DeleteOperationRequest?e:(t=new p.google.longrunning.DeleteOperationRequest,null!=e.name&&(t.name=String(e.name)),t)},U.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},U.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},U),t.WaitOperationRequest=(c.prototype.name="",c.prototype.timeout=null,c.create=function(e){return new c(e)},c.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.timeout&&Object.hasOwnProperty.call(e,"timeout")&&p.google.protobuf.Duration.encode(e.timeout,t.uint32(18).fork()).ldelim(),t},c.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},c.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.longrunning.WaitOperationRequest;e.pos>>3){case 1:o.name=e.string();break;case 2:o.timeout=p.google.protobuf.Duration.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},c.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},c.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.timeout&&e.hasOwnProperty("timeout")){e=p.google.protobuf.Duration.verify(e.timeout);if(e)return"timeout."+e}return null},c.fromObject=function(e){if(e instanceof p.google.longrunning.WaitOperationRequest)return e;var t=new p.google.longrunning.WaitOperationRequest;if(null!=e.name&&(t.name=String(e.name)),null!=e.timeout){if("object"!=typeof e.timeout)throw TypeError(".google.longrunning.WaitOperationRequest.timeout: object expected");t.timeout=p.google.protobuf.Duration.fromObject(e.timeout)}return t},c.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.timeout=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.timeout&&e.hasOwnProperty("timeout")&&(n.timeout=p.google.protobuf.Duration.toObject(e.timeout,t)),n},c.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},c),t.OperationInfo=(d.prototype.responseType="",d.prototype.metadataType="",d.create=function(e){return new d(e)},d.encode=function(e,t){return t=t||r.create(),null!=e.responseType&&Object.hasOwnProperty.call(e,"responseType")&&t.uint32(10).string(e.responseType),null!=e.metadataType&&Object.hasOwnProperty.call(e,"metadataType")&&t.uint32(18).string(e.metadataType),t},d.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},d.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.longrunning.OperationInfo;e.pos>>3){case 1:o.responseType=e.string();break;case 2:o.metadataType=e.string();break;default:e.skipType(7&r)}}return o},d.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},d.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.responseType&&e.hasOwnProperty("responseType")&&!i.isString(e.responseType)?"responseType: string expected":null!=e.metadataType&&e.hasOwnProperty("metadataType")&&!i.isString(e.metadataType)?"metadataType: string expected":null},d.fromObject=function(e){var t;return e instanceof p.google.longrunning.OperationInfo?e:(t=new p.google.longrunning.OperationInfo,null!=e.responseType&&(t.responseType=String(e.responseType)),null!=e.metadataType&&(t.metadataType=String(e.metadataType)),t)},d.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.responseType="",n.metadataType=""),null!=e.responseType&&e.hasOwnProperty("responseType")&&(n.responseType=e.responseType),null!=e.metadataType&&e.hasOwnProperty("metadataType")&&(n.metadataType=e.metadataType),n},d.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},d),t),F.api=((n={}).Http=(g.prototype.rules=i.emptyArray,g.prototype.fullyDecodeReservedExpansion=!1,g.create=function(e){return new g(e)},g.encode=function(e,t){if(t=t||r.create(),null!=e.rules&&e.rules.length)for(var n=0;n>>3){case 1:o.rules&&o.rules.length||(o.rules=[]),o.rules.push(p.google.api.HttpRule.decode(e,e.uint32()));break;case 2:o.fullyDecodeReservedExpansion=e.bool();break;default:e.skipType(7&r)}}return o},g.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},g.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.rules&&e.hasOwnProperty("rules")){if(!Array.isArray(e.rules))return"rules: array expected";for(var t=0;t>>3){case 1:o.selector=e.string();break;case 2:o.get=e.string();break;case 3:o.put=e.string();break;case 4:o.post=e.string();break;case 5:o.delete=e.string();break;case 6:o.patch=e.string();break;case 8:o.custom=p.google.api.CustomHttpPattern.decode(e,e.uint32());break;case 7:o.body=e.string();break;case 12:o.responseBody=e.string();break;case 11:o.additionalBindings&&o.additionalBindings.length||(o.additionalBindings=[]),o.additionalBindings.push(p.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},f.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},f.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t={};if(null!=e.selector&&e.hasOwnProperty("selector")&&!i.isString(e.selector))return"selector: string expected";if(null!=e.get&&e.hasOwnProperty("get")&&(t.pattern=1,!i.isString(e.get)))return"get: string expected";if(null!=e.put&&e.hasOwnProperty("put")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!i.isString(e.put))return"put: string expected"}if(null!=e.post&&e.hasOwnProperty("post")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!i.isString(e.post))return"post: string expected"}if(null!=e.delete&&e.hasOwnProperty("delete")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!i.isString(e.delete))return"delete: string expected"}if(null!=e.patch&&e.hasOwnProperty("patch")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!i.isString(e.patch))return"patch: string expected"}if(null!=e.custom&&e.hasOwnProperty("custom")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,n=p.google.api.CustomHttpPattern.verify(e.custom))return"custom."+n}if(null!=e.body&&e.hasOwnProperty("body")&&!i.isString(e.body))return"body: string expected";if(null!=e.responseBody&&e.hasOwnProperty("responseBody")&&!i.isString(e.responseBody))return"responseBody: string expected";if(null!=e.additionalBindings&&e.hasOwnProperty("additionalBindings")){if(!Array.isArray(e.additionalBindings))return"additionalBindings: array expected";for(var n,o=0;o>>3){case 1:o.kind=e.string();break;case 2:o.path=e.string();break;default:e.skipType(7&r)}}return o},y.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},y.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.kind&&e.hasOwnProperty("kind")&&!i.isString(e.kind)?"kind: string expected":null!=e.path&&e.hasOwnProperty("path")&&!i.isString(e.path)?"path: string expected":null},y.fromObject=function(e){var t;return e instanceof p.google.api.CustomHttpPattern?e:(t=new p.google.api.CustomHttpPattern,null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t)},y.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.kind="",n.path=""),null!=e.kind&&e.hasOwnProperty("kind")&&(n.kind=e.kind),null!=e.path&&e.hasOwnProperty("path")&&(n.path=e.path),n},y.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},y),n),F.protobuf=((t={}).FileDescriptorSet=(J.prototype.file=i.emptyArray,J.create=function(e){return new J(e)},J.encode=function(e,t){if(t=t||r.create(),null!=e.file&&e.file.length)for(var n=0;n>>3==1?(o.file&&o.file.length||(o.file=[]),o.file.push(p.google.protobuf.FileDescriptorProto.decode(e,e.uint32()))):e.skipType(7&r)}return o},J.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},J.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.file&&e.hasOwnProperty("file")){if(!Array.isArray(e.file))return"file: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.package=e.string();break;case 3:o.dependency&&o.dependency.length||(o.dependency=[]),o.dependency.push(e.string());break;case 10:if(o.publicDependency&&o.publicDependency.length||(o.publicDependency=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.name=e.string();break;case 2:o.field&&o.field.length||(o.field=[]),o.field.push(p.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 6:o.extension&&o.extension.length||(o.extension=[]),o.extension.push(p.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 3:o.nestedType&&o.nestedType.length||(o.nestedType=[]),o.nestedType.push(p.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 4:o.enumType&&o.enumType.length||(o.enumType=[]),o.enumType.push(p.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 5:o.extensionRange&&o.extensionRange.length||(o.extensionRange=[]),o.extensionRange.push(p.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32()));break;case 8:o.oneofDecl&&o.oneofDecl.length||(o.oneofDecl=[]),o.oneofDecl.push(p.google.protobuf.OneofDescriptorProto.decode(e,e.uint32()));break;case 7:o.options=p.google.protobuf.MessageOptions.decode(e,e.uint32());break;case 9:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(p.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32()));break;case 10:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},O.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},O.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.field&&e.hasOwnProperty("field")){if(!Array.isArray(e.field))return"field: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;case 3:o.options=p.google.protobuf.ExtensionRangeOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},b.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},b.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.start&&e.hasOwnProperty("start")&&!i.isInteger(e.start))return"start: integer expected";if(null!=e.end&&e.hasOwnProperty("end")&&!i.isInteger(e.end))return"end: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=p.google.protobuf.ExtensionRangeOptions.verify(e.options);if(e)return"options."+e}return null},b.fromObject=function(e){if(e instanceof p.google.protobuf.DescriptorProto.ExtensionRange)return e;var t=new p.google.protobuf.DescriptorProto.ExtensionRange;if(null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");t.options=p.google.protobuf.ExtensionRangeOptions.fromObject(e.options)}return t},b.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0,n.options=null),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),null!=e.options&&e.hasOwnProperty("options")&&(n.options=p.google.protobuf.ExtensionRangeOptions.toObject(e.options,t)),n},b.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},b),O.ReservedRange=(m.prototype.start=0,m.prototype.end=0,m.create=function(e){return new m(e)},m.encode=function(e,t){return t=t||r.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},m.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},m.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.protobuf.DescriptorProto.ReservedRange;e.pos>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},m.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},m.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!i.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!i.isInteger(e.end)?"end: integer expected":null},m.fromObject=function(e){var t;return e instanceof p.google.protobuf.DescriptorProto.ReservedRange?e:(t=new p.google.protobuf.DescriptorProto.ReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},m.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},m.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},m),O),t.ExtensionRangeOptions=(M.prototype.uninterpretedOption=i.emptyArray,M.create=function(e){return new M(e)},M.encode=function(e,t){if(t=t||r.create(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},M.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},M.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 3:o.number=e.int32();break;case 4:o.label=e.int32();break;case 5:o.type=e.int32();break;case 6:o.typeName=e.string();break;case 2:o.extendee=e.string();break;case 7:o.defaultValue=e.string();break;case 9:o.oneofIndex=e.int32();break;case 10:o.jsonName=e.string();break;case 8:o.options=p.google.protobuf.FieldOptions.decode(e,e.uint32());break;case 17:o.proto3Optional=e.bool();break;default:e.skipType(7&r)}}return o},v.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},v.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!i.isInteger(e.number))return"number: integer expected";if(null!=e.label&&e.hasOwnProperty("label"))switch(e.label){default:return"label: enum value expected";case 1:case 2:case 3:}if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:}if(null!=e.typeName&&e.hasOwnProperty("typeName")&&!i.isString(e.typeName))return"typeName: string expected";if(null!=e.extendee&&e.hasOwnProperty("extendee")&&!i.isString(e.extendee))return"extendee: string expected";if(null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&!i.isString(e.defaultValue))return"defaultValue: string expected";if(null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&!i.isInteger(e.oneofIndex))return"oneofIndex: integer expected";if(null!=e.jsonName&&e.hasOwnProperty("jsonName")&&!i.isString(e.jsonName))return"jsonName: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=p.google.protobuf.FieldOptions.verify(e.options);if(t)return"options."+t}return null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&"boolean"!=typeof e.proto3Optional?"proto3Optional: boolean expected":null},v.fromObject=function(e){if(e instanceof p.google.protobuf.FieldDescriptorProto)return e;var t=new p.google.protobuf.FieldDescriptorProto;switch(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),e.label){case"LABEL_OPTIONAL":case 1:t.label=1;break;case"LABEL_REQUIRED":case 2:t.label=2;break;case"LABEL_REPEATED":case 3:t.label=3}switch(e.type){case"TYPE_DOUBLE":case 1:t.type=1;break;case"TYPE_FLOAT":case 2:t.type=2;break;case"TYPE_INT64":case 3:t.type=3;break;case"TYPE_UINT64":case 4:t.type=4;break;case"TYPE_INT32":case 5:t.type=5;break;case"TYPE_FIXED64":case 6:t.type=6;break;case"TYPE_FIXED32":case 7:t.type=7;break;case"TYPE_BOOL":case 8:t.type=8;break;case"TYPE_STRING":case 9:t.type=9;break;case"TYPE_GROUP":case 10:t.type=10;break;case"TYPE_MESSAGE":case 11:t.type=11;break;case"TYPE_BYTES":case 12:t.type=12;break;case"TYPE_UINT32":case 13:t.type=13;break;case"TYPE_ENUM":case 14:t.type=14;break;case"TYPE_SFIXED32":case 15:t.type=15;break;case"TYPE_SFIXED64":case 16:t.type=16;break;case"TYPE_SINT32":case 17:t.type=17;break;case"TYPE_SINT64":case 18:t.type=18}if(null!=e.typeName&&(t.typeName=String(e.typeName)),null!=e.extendee&&(t.extendee=String(e.extendee)),null!=e.defaultValue&&(t.defaultValue=String(e.defaultValue)),null!=e.oneofIndex&&(t.oneofIndex=0|e.oneofIndex),null!=e.jsonName&&(t.jsonName=String(e.jsonName)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");t.options=p.google.protobuf.FieldOptions.fromObject(e.options)}return null!=e.proto3Optional&&(t.proto3Optional=Boolean(e.proto3Optional)),t},v.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.extendee="",n.number=0,n.label=t.enums===String?"LABEL_OPTIONAL":1,n.type=t.enums===String?"TYPE_DOUBLE":1,n.typeName="",n.defaultValue="",n.options=null,n.oneofIndex=0,n.jsonName="",n.proto3Optional=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.extendee&&e.hasOwnProperty("extendee")&&(n.extendee=e.extendee),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.label&&e.hasOwnProperty("label")&&(n.label=t.enums===String?p.google.protobuf.FieldDescriptorProto.Label[e.label]:e.label),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?p.google.protobuf.FieldDescriptorProto.Type[e.type]:e.type),null!=e.typeName&&e.hasOwnProperty("typeName")&&(n.typeName=e.typeName),null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&(n.defaultValue=e.defaultValue),null!=e.options&&e.hasOwnProperty("options")&&(n.options=p.google.protobuf.FieldOptions.toObject(e.options,t)),null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&(n.oneofIndex=e.oneofIndex),null!=e.jsonName&&e.hasOwnProperty("jsonName")&&(n.jsonName=e.jsonName),null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&(n.proto3Optional=e.proto3Optional),n},v.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},v.Type=(n={},(e=Object.create(n))[n[1]="TYPE_DOUBLE"]=1,e[n[2]="TYPE_FLOAT"]=2,e[n[3]="TYPE_INT64"]=3,e[n[4]="TYPE_UINT64"]=4,e[n[5]="TYPE_INT32"]=5,e[n[6]="TYPE_FIXED64"]=6,e[n[7]="TYPE_FIXED32"]=7,e[n[8]="TYPE_BOOL"]=8,e[n[9]="TYPE_STRING"]=9,e[n[10]="TYPE_GROUP"]=10,e[n[11]="TYPE_MESSAGE"]=11,e[n[12]="TYPE_BYTES"]=12,e[n[13]="TYPE_UINT32"]=13,e[n[14]="TYPE_ENUM"]=14,e[n[15]="TYPE_SFIXED32"]=15,e[n[16]="TYPE_SFIXED64"]=16,e[n[17]="TYPE_SINT32"]=17,e[n[18]="TYPE_SINT64"]=18,e),v.Label=(n={},(e=Object.create(n))[n[1]="LABEL_OPTIONAL"]=1,e[n[2]="LABEL_REQUIRED"]=2,e[n[3]="LABEL_REPEATED"]=3,e),v),t.OneofDescriptorProto=(w.prototype.name="",w.prototype.options=null,w.create=function(e){return new w(e)},w.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&p.google.protobuf.OneofOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},w.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},w.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.protobuf.OneofDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.options=p.google.protobuf.OneofOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},w.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},w.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.options&&e.hasOwnProperty("options")){e=p.google.protobuf.OneofOptions.verify(e.options);if(e)return"options."+e}return null},w.fromObject=function(e){if(e instanceof p.google.protobuf.OneofDescriptorProto)return e;var t=new p.google.protobuf.OneofDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");t.options=p.google.protobuf.OneofOptions.fromObject(e.options)}return t},w.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.options&&e.hasOwnProperty("options")&&(n.options=p.google.protobuf.OneofOptions.toObject(e.options,t)),n},w.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},w),t.EnumDescriptorProto=(P.prototype.name="",P.prototype.value=i.emptyArray,P.prototype.options=null,P.prototype.reservedRange=i.emptyArray,P.prototype.reservedName=i.emptyArray,P.create=function(e){return new P(e)},P.encode=function(e,t){if(t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&e.value.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.value&&o.value.length||(o.value=[]),o.value.push(p.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=p.google.protobuf.EnumOptions.decode(e,e.uint32());break;case 4:o.reservedRange&&o.reservedRange.length||(o.reservedRange=[]),o.reservedRange.push(p.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(e,e.uint32()));break;case 5:o.reservedName&&o.reservedName.length||(o.reservedName=[]),o.reservedName.push(e.string());break;default:e.skipType(7&r)}}return o},P.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},P.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(var t=0;t>>3){case 1:o.start=e.int32();break;case 2:o.end=e.int32();break;default:e.skipType(7&r)}}return o},_.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},_.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!i.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!i.isInteger(e.end)?"end: integer expected":null},_.fromObject=function(e){var t;return e instanceof p.google.protobuf.EnumDescriptorProto.EnumReservedRange?e:(t=new p.google.protobuf.EnumDescriptorProto.EnumReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},_.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},_.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},_),P),t.EnumValueDescriptorProto=(j.prototype.name="",j.prototype.number=0,j.prototype.options=null,j.create=function(e){return new j(e)},j.encode=function(e,t){return t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(16).int32(e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&p.google.protobuf.EnumValueOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},j.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},j.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.protobuf.EnumValueDescriptorProto;e.pos>>3){case 1:o.name=e.string();break;case 2:o.number=e.int32();break;case 3:o.options=p.google.protobuf.EnumValueOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},j.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},j.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!i.isInteger(e.number))return"number: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){e=p.google.protobuf.EnumValueOptions.verify(e.options);if(e)return"options."+e}return null},j.fromObject=function(e){if(e instanceof p.google.protobuf.EnumValueDescriptorProto)return e;var t=new p.google.protobuf.EnumValueDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");t.options=p.google.protobuf.EnumValueOptions.fromObject(e.options)}return t},j.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.number=0,n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.options&&e.hasOwnProperty("options")&&(n.options=p.google.protobuf.EnumValueOptions.toObject(e.options,t)),n},j.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},j),t.ServiceDescriptorProto=(S.prototype.name="",S.prototype.method=i.emptyArray,S.prototype.options=null,S.create=function(e){return new S(e)},S.encode=function(e,t){if(t=t||r.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.method&&e.method.length)for(var n=0;n>>3){case 1:o.name=e.string();break;case 2:o.method&&o.method.length||(o.method=[]),o.method.push(p.google.protobuf.MethodDescriptorProto.decode(e,e.uint32()));break;case 3:o.options=p.google.protobuf.ServiceOptions.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},S.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},S.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.method&&e.hasOwnProperty("method")){if(!Array.isArray(e.method))return"method: array expected";for(var t=0;t>>3){case 1:o.name=e.string();break;case 2:o.inputType=e.string();break;case 3:o.outputType=e.string();break;case 4:o.options=p.google.protobuf.MethodOptions.decode(e,e.uint32());break;case 5:o.clientStreaming=e.bool();break;case 6:o.serverStreaming=e.bool();break;default:e.skipType(7&r)}}return o},x.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},x.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.inputType&&e.hasOwnProperty("inputType")&&!i.isString(e.inputType))return"inputType: string expected";if(null!=e.outputType&&e.hasOwnProperty("outputType")&&!i.isString(e.outputType))return"outputType: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=p.google.protobuf.MethodOptions.verify(e.options);if(t)return"options."+t}return null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&"boolean"!=typeof e.clientStreaming?"clientStreaming: boolean expected":null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&"boolean"!=typeof e.serverStreaming?"serverStreaming: boolean expected":null},x.fromObject=function(e){if(e instanceof p.google.protobuf.MethodDescriptorProto)return e;var t=new p.google.protobuf.MethodDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.inputType&&(t.inputType=String(e.inputType)),null!=e.outputType&&(t.outputType=String(e.outputType)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");t.options=p.google.protobuf.MethodOptions.fromObject(e.options)}return null!=e.clientStreaming&&(t.clientStreaming=Boolean(e.clientStreaming)),null!=e.serverStreaming&&(t.serverStreaming=Boolean(e.serverStreaming)),t},x.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.name="",n.inputType="",n.outputType="",n.options=null,n.clientStreaming=!1,n.serverStreaming=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.inputType&&e.hasOwnProperty("inputType")&&(n.inputType=e.inputType),null!=e.outputType&&e.hasOwnProperty("outputType")&&(n.outputType=e.outputType),null!=e.options&&e.hasOwnProperty("options")&&(n.options=p.google.protobuf.MethodOptions.toObject(e.options,t)),null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&(n.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&(n.serverStreaming=e.serverStreaming),n},x.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},x),t.FileOptions=(k.prototype.javaPackage="",k.prototype.javaOuterClassname="",k.prototype.javaMultipleFiles=!1,k.prototype.javaGenerateEqualsAndHash=!1,k.prototype.javaStringCheckUtf8=!1,k.prototype.optimizeFor=1,k.prototype.goPackage="",k.prototype.ccGenericServices=!1,k.prototype.javaGenericServices=!1,k.prototype.pyGenericServices=!1,k.prototype.phpGenericServices=!1,k.prototype.deprecated=!1,k.prototype.ccEnableArenas=!0,k.prototype.objcClassPrefix="",k.prototype.csharpNamespace="",k.prototype.swiftPrefix="",k.prototype.phpClassPrefix="",k.prototype.phpNamespace="",k.prototype.phpMetadataNamespace="",k.prototype.rubyPackage="",k.prototype.uninterpretedOption=i.emptyArray,k.create=function(e){return new k(e)},k.encode=function(e,t){if(t=t||r.create(),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&t.uint32(10).string(e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&t.uint32(66).string(e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&t.uint32(72).int32(e.optimizeFor),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&t.uint32(80).bool(e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&t.uint32(90).string(e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&t.uint32(128).bool(e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&t.uint32(136).bool(e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&t.uint32(144).bool(e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(184).bool(e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&t.uint32(216).bool(e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&t.uint32(248).bool(e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&t.uint32(290).string(e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&t.uint32(298).string(e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&t.uint32(314).string(e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&t.uint32(322).string(e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&t.uint32(330).string(e.phpNamespace),null!=e.phpGenericServices&&Object.hasOwnProperty.call(e,"phpGenericServices")&&t.uint32(336).bool(e.phpGenericServices),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&t.uint32(354).string(e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&t.uint32(362).string(e.rubyPackage),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n>>3){case 1:o.javaPackage=e.string();break;case 8:o.javaOuterClassname=e.string();break;case 10:o.javaMultipleFiles=e.bool();break;case 20:o.javaGenerateEqualsAndHash=e.bool();break;case 27:o.javaStringCheckUtf8=e.bool();break;case 9:o.optimizeFor=e.int32();break;case 11:o.goPackage=e.string();break;case 16:o.ccGenericServices=e.bool();break;case 17:o.javaGenericServices=e.bool();break;case 18:o.pyGenericServices=e.bool();break;case 42:o.phpGenericServices=e.bool();break;case 23:o.deprecated=e.bool();break;case 31:o.ccEnableArenas=e.bool();break;case 36:o.objcClassPrefix=e.string();break;case 37:o.csharpNamespace=e.string();break;case 39:o.swiftPrefix=e.string();break;case 40:o.phpClassPrefix=e.string();break;case 41:o.phpNamespace=e.string();break;case 44:o.phpMetadataNamespace=e.string();break;case 45:o.rubyPackage=e.string();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},k.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},k.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&!i.isString(e.javaPackage))return"javaPackage: string expected";if(null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&!i.isString(e.javaOuterClassname))return"javaOuterClassname: string expected";if(null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&"boolean"!=typeof e.javaMultipleFiles)return"javaMultipleFiles: boolean expected";if(null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&"boolean"!=typeof e.javaGenerateEqualsAndHash)return"javaGenerateEqualsAndHash: boolean expected";if(null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&"boolean"!=typeof e.javaStringCheckUtf8)return"javaStringCheckUtf8: boolean expected";if(null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor"))switch(e.optimizeFor){default:return"optimizeFor: enum value expected";case 1:case 2:case 3:}if(null!=e.goPackage&&e.hasOwnProperty("goPackage")&&!i.isString(e.goPackage))return"goPackage: string expected";if(null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&"boolean"!=typeof e.ccGenericServices)return"ccGenericServices: boolean expected";if(null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&"boolean"!=typeof e.javaGenericServices)return"javaGenericServices: boolean expected";if(null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&"boolean"!=typeof e.pyGenericServices)return"pyGenericServices: boolean expected";if(null!=e.phpGenericServices&&e.hasOwnProperty("phpGenericServices")&&"boolean"!=typeof e.phpGenericServices)return"phpGenericServices: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&"boolean"!=typeof e.ccEnableArenas)return"ccEnableArenas: boolean expected";if(null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&!i.isString(e.objcClassPrefix))return"objcClassPrefix: string expected";if(null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&!i.isString(e.csharpNamespace))return"csharpNamespace: string expected";if(null!=e.swiftPrefix&&e.hasOwnProperty("swiftPrefix")&&!i.isString(e.swiftPrefix))return"swiftPrefix: string expected";if(null!=e.phpClassPrefix&&e.hasOwnProperty("phpClassPrefix")&&!i.isString(e.phpClassPrefix))return"phpClassPrefix: string expected";if(null!=e.phpNamespace&&e.hasOwnProperty("phpNamespace")&&!i.isString(e.phpNamespace))return"phpNamespace: string expected";if(null!=e.phpMetadataNamespace&&e.hasOwnProperty("phpMetadataNamespace")&&!i.isString(e.phpMetadataNamespace))return"phpMetadataNamespace: string expected";if(null!=e.rubyPackage&&e.hasOwnProperty("rubyPackage")&&!i.isString(e.rubyPackage))return"rubyPackage: string expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.messageSetWireFormat=e.bool();break;case 2:o.noStandardDescriptorAccessor=e.bool();break;case 3:o.deprecated=e.bool();break;case 7:o.mapEntry=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},D.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},D.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&"boolean"!=typeof e.messageSetWireFormat)return"messageSetWireFormat: boolean expected";if(null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&"boolean"!=typeof e.noStandardDescriptorAccessor)return"noStandardDescriptorAccessor: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&"boolean"!=typeof e.mapEntry)return"mapEntry: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.ctype=e.int32();break;case 2:o.packed=e.bool();break;case 6:o.jstype=e.int32();break;case 5:o.lazy=e.bool();break;case 3:o.deprecated=e.bool();break;case 10:o.weak=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},T.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},T.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.ctype&&e.hasOwnProperty("ctype"))switch(e.ctype){default:return"ctype: enum value expected";case 0:case 1:case 2:}if(null!=e.packed&&e.hasOwnProperty("packed")&&"boolean"!=typeof e.packed)return"packed: boolean expected";if(null!=e.jstype&&e.hasOwnProperty("jstype"))switch(e.jstype){default:return"jstype: enum value expected";case 0:case 1:case 2:}if(null!=e.lazy&&e.hasOwnProperty("lazy")&&"boolean"!=typeof e.lazy)return"lazy: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.weak&&e.hasOwnProperty("weak")&&"boolean"!=typeof e.weak)return"weak: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3==999?(o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&r)}return o},H.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},H.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.allowAlias=e.bool();break;case 3:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},E.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},E.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&"boolean"!=typeof e.allowAlias)return"allowAlias: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 1:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},z.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},z.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1049:o[".google.api.defaultHost"]=e.string();break;case 1050:o[".google.api.oauthScopes"]=e.string();break;default:e.skipType(7&r)}}return o},A.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},A.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 33:o.deprecated=e.bool();break;case 34:o.idempotencyLevel=e.int32();break;case 999:o.uninterpretedOption&&o.uninterpretedOption.length||(o.uninterpretedOption=[]),o.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1049:o[".google.longrunning.operationInfo"]=p.google.longrunning.OperationInfo.decode(e,e.uint32());break;case 72295728:o[".google.api.http"]=p.google.api.HttpRule.decode(e,e.uint32());break;case 1051:o[".google.api.methodSignature"]&&o[".google.api.methodSignature"].length||(o[".google.api.methodSignature"]=[]),o[".google.api.methodSignature"].push(e.string());break;default:e.skipType(7&r)}}return o},N.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},N.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.idempotencyLevel&&e.hasOwnProperty("idempotencyLevel"))switch(e.idempotencyLevel){default:return"idempotencyLevel: enum value expected";case 0:case 1:case 2:}if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t>>3){case 2:o.name&&o.name.length||(o.name=[]),o.name.push(p.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32()));break;case 3:o.identifierValue=e.string();break;case 4:o.positiveIntValue=e.uint64();break;case 5:o.negativeIntValue=e.int64();break;case 6:o.doubleValue=e.double();break;case 7:o.stringValue=e.bytes();break;case 8:o.aggregateValue=e.string();break;default:e.skipType(7&r)}}return o},I.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},I.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")){if(!Array.isArray(e.name))return"name: array expected";for(var t=0;t>>0,e.positiveIntValue.high>>>0).toNumber(!0))),null!=e.negativeIntValue&&(i.Long?(t.negativeIntValue=i.Long.fromValue(e.negativeIntValue)).unsigned=!1:"string"==typeof e.negativeIntValue?t.negativeIntValue=parseInt(e.negativeIntValue,10):"number"==typeof e.negativeIntValue?t.negativeIntValue=e.negativeIntValue:"object"==typeof e.negativeIntValue&&(t.negativeIntValue=new i.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.stringValue&&("string"==typeof e.stringValue?i.base64.decode(e.stringValue,t.stringValue=i.newBuffer(i.base64.length(e.stringValue)),0):e.stringValue.length&&(t.stringValue=e.stringValue)),null!=e.aggregateValue&&(t.aggregateValue=String(e.aggregateValue)),t},I.toObject=function(e,t){var n,o={};if(((t=t||{}).arrays||t.defaults)&&(o.name=[]),t.defaults&&(o.identifierValue="",i.Long?(n=new i.Long(0,0,!0),o.positiveIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.positiveIntValue=t.longs===String?"0":0,i.Long?(n=new i.Long(0,0,!1),o.negativeIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.negativeIntValue=t.longs===String?"0":0,o.doubleValue=0,t.bytes===String?o.stringValue="":(o.stringValue=[],t.bytes!==Array&&(o.stringValue=i.newBuffer(o.stringValue))),o.aggregateValue=""),e.name&&e.name.length){o.name=[];for(var r=0;r>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&("number"==typeof e.negativeIntValue?o.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:o.negativeIntValue=t.longs===String?i.Long.prototype.toString.call(e.negativeIntValue):t.longs===Number?new i.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(o.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(o.stringValue=t.bytes===String?i.base64.encode(e.stringValue,0,e.stringValue.length):t.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&(o.aggregateValue=e.aggregateValue),o},I.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},I.NamePart=(q.prototype.namePart="",q.prototype.isExtension=!1,q.create=function(e){return new q(e)},q.encode=function(e,t){return(t=t||r.create()).uint32(10).string(e.namePart),t.uint32(16).bool(e.isExtension),t},q.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},q.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.protobuf.UninterpretedOption.NamePart;e.pos>>3){case 1:o.namePart=e.string();break;case 2:o.isExtension=e.bool();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("namePart"))throw i.ProtocolError("missing required 'namePart'",{instance:o});if(o.hasOwnProperty("isExtension"))return o;throw i.ProtocolError("missing required 'isExtension'",{instance:o})},q.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},q.verify=function(e){return"object"!=typeof e||null===e?"object expected":i.isString(e.namePart)?"boolean"!=typeof e.isExtension?"isExtension: boolean expected":null:"namePart: string expected"},q.fromObject=function(e){var t;return e instanceof p.google.protobuf.UninterpretedOption.NamePart?e:(t=new p.google.protobuf.UninterpretedOption.NamePart,null!=e.namePart&&(t.namePart=String(e.namePart)),null!=e.isExtension&&(t.isExtension=Boolean(e.isExtension)),t)},q.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.namePart="",n.isExtension=!1),null!=e.namePart&&e.hasOwnProperty("namePart")&&(n.namePart=e.namePart),null!=e.isExtension&&e.hasOwnProperty("isExtension")&&(n.isExtension=e.isExtension),n},q.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},q),I),t.SourceCodeInfo=(Y.prototype.location=i.emptyArray,Y.create=function(e){return new Y(e)},Y.encode=function(e,t){if(t=t||r.create(),null!=e.location&&e.location.length)for(var n=0;n>>3==1?(o.location&&o.location.length||(o.location=[]),o.location.push(p.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32()))):e.skipType(7&r)}return o},Y.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},Y.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.location&&e.hasOwnProperty("location")){if(!Array.isArray(e.location))return"location: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3==1?(o.annotation&&o.annotation.length||(o.annotation=[]),o.annotation.push(p.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32()))):e.skipType(7&r)}return o},W.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},W.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.annotation&&e.hasOwnProperty("annotation")){if(!Array.isArray(e.annotation))return"annotation: array expected";for(var t=0;t>>3){case 1:if(o.path&&o.path.length||(o.path=[]),2==(7&r))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.type_url=e.string();break;case 2:o.value=e.bytes();break;default:e.skipType(7&r)}}return o},X.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},X.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.type_url&&e.hasOwnProperty("type_url")&&!i.isString(e.type_url)?"type_url: string expected":null!=e.value&&e.hasOwnProperty("value")&&!(e.value&&"number"==typeof e.value.length||i.isString(e.value))?"value: buffer expected":null},X.fromObject=function(e){var t;return e instanceof p.google.protobuf.Any?e:(t=new p.google.protobuf.Any,null!=e.type_url&&(t.type_url=String(e.type_url)),null!=e.value&&("string"==typeof e.value?i.base64.decode(e.value,t.value=i.newBuffer(i.base64.length(e.value)),0):e.value.length&&(t.value=e.value)),t)},X.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.type_url="",t.bytes===String?n.value="":(n.value=[],t.bytes!==Array&&(n.value=i.newBuffer(n.value)))),null!=e.type_url&&e.hasOwnProperty("type_url")&&(n.type_url=e.type_url),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.bytes===String?i.base64.encode(e.value,0,e.value.length):t.bytes===Array?Array.prototype.slice.call(e.value):e.value),n},X.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},X),t.Duration=(K.prototype.seconds=i.Long?i.Long.fromBits(0,0,!1):0,K.prototype.nanos=0,K.create=function(e){return new K(e)},K.encode=function(e,t){return t=t||r.create(),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},K.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},K.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,o=new p.google.protobuf.Duration;e.pos>>3){case 1:o.seconds=e.int64();break;case 2:o.nanos=e.int32();break;default:e.skipType(7&r)}}return o},K.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},K.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.seconds&&e.hasOwnProperty("seconds")&&!(i.isInteger(e.seconds)||e.seconds&&i.isInteger(e.seconds.low)&&i.isInteger(e.seconds.high))?"seconds: integer|Long expected":null!=e.nanos&&e.hasOwnProperty("nanos")&&!i.isInteger(e.nanos)?"nanos: integer expected":null},K.fromObject=function(e){var t;return e instanceof p.google.protobuf.Duration?e:(t=new p.google.protobuf.Duration,null!=e.seconds&&(i.Long?(t.seconds=i.Long.fromValue(e.seconds)).unsigned=!1:"string"==typeof e.seconds?t.seconds=parseInt(e.seconds,10):"number"==typeof e.seconds?t.seconds=e.seconds:"object"==typeof e.seconds&&(t.seconds=new i.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),null!=e.nanos&&(t.nanos=0|e.nanos),t)},K.toObject=function(e,t){var n,o={};return(t=t||{}).defaults&&(i.Long?(n=new i.Long(0,0,!1),o.seconds=t.longs===String?n.toString():t.longs===Number?n.toNumber():n):o.seconds=t.longs===String?"0":0,o.nanos=0),null!=e.seconds&&e.hasOwnProperty("seconds")&&("number"==typeof e.seconds?o.seconds=t.longs===String?String(e.seconds):e.seconds:o.seconds=t.longs===String?i.Long.prototype.toString.call(e.seconds):t.longs===Number?new i.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),null!=e.nanos&&e.hasOwnProperty("nanos")&&(o.nanos=e.nanos),o},K.prototype.toJSON=function(){return this.constructor.toObject(this,o.util.toJSONOptions)},K),t.Empty=(Q.create=function(e){return new Q(e)},Q.encode=function(e,t){return t=t||r.create()},Q.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},Q.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,t=new p.google.protobuf.Empty;e.pos>>3){case 1:o.code=e.int32();break;case 2:o.message=e.string();break;case 3:o.details&&o.details.length||(o.details=[]),o.details.push(p.google.protobuf.Any.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},V.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},V.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.code&&e.hasOwnProperty("code")&&!i.isInteger(e.code))return"code: integer expected";if(null!=e.message&&e.hasOwnProperty("message")&&!i.isString(e.message))return"message: string expected";if(null!=e.details&&e.hasOwnProperty("details")){if(!Array.isArray(e.details))return"details: array expected";for(var t=0;t { + return ListTargets; +}(); +/** + * Filter by auth method name or part of it + * @member {String} filter + */ -"use strict"; +ListTargets.prototype['filter'] = undefined; /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.createAPICaller = createAPICaller; -const normalApiCaller_1 = __nccwpck_require__(51161); -function createAPICaller(settings, descriptor) { - if (!descriptor) { - return new normalApiCaller_1.NormalApiCaller(); - } - return descriptor.getApiCaller(settings); -} -//# sourceMappingURL=apiCaller.js.map - -/***/ }), -/***/ 41984: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +ListTargets.prototype['json'] = false; +/** + * Next page reference + * @member {String} pagination-token + */ -"use strict"; +ListTargets.prototype['pagination-token'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ +ListTargets.prototype['token'] = undefined; /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * The target types list . In case it is empty, all types of targets will be returned. options: [hanadb cassandra aws ssh gke eks mysql mongodb snowflake mssql redshift artifactory azure rabbitmq k8s venafi gcp oracle dockerhub ldap github chef web salesforce postgres] + * @member {Array.} type */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BundleApiCaller = void 0; -const call_1 = __nccwpck_require__(49746); -const googleError_1 = __nccwpck_require__(34775); + +ListTargets.prototype['type'] = undefined; /** - * An implementation of APICaller for bundled calls. - * Uses BundleExecutor to do bundling. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -class BundleApiCaller { - constructor(bundler) { - this.bundler = bundler; - } - init(callback) { - if (callback) { - return new call_1.OngoingCall(callback); - } - return new call_1.OngoingCallPromise(); - } - wrap(func) { - return func; - } - call(apiCall, argument, settings, status) { - if (!settings.isBundling) { - throw new googleError_1.GoogleError('Bundling enabled with no isBundling!'); - } - status.call((argument, callback) => { - this.bundler.schedule(apiCall, argument, callback); - return status; - }, argument); - } - fail(canceller, err) { - canceller.callback(err); - } - result(canceller) { - return canceller.promise; - } -} -exports.BundleApiCaller = BundleApiCaller; -//# sourceMappingURL=bundleApiCaller.js.map + +ListTargets.prototype['uid-token'] = undefined; +var _default = ListTargets; +exports["default"] = _default; /***/ }), -/***/ 57910: +/***/ 52161: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _Target = _interopRequireDefault(__nccwpck_require__(50373)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BundleDescriptor = void 0; -const normalApiCaller_1 = __nccwpck_require__(51161); -const bundleApiCaller_1 = __nccwpck_require__(41984); -const bundleExecutor_1 = __nccwpck_require__(44682); -const util_1 = __nccwpck_require__(24938); -/** - * A descriptor for calls that can be bundled into one call. + * The ListTargetsOutput model module. + * @module model/ListTargetsOutput + * @version 3.6.3 */ -class BundleDescriptor { +var ListTargetsOutput = /*#__PURE__*/function () { + /** + * Constructs a new ListTargetsOutput. + * @alias module:model/ListTargetsOutput + */ + function ListTargetsOutput() { + _classCallCheck(this, ListTargetsOutput); + + ListTargetsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ListTargetsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Describes the structure of bundled call. - * - * requestDiscriminatorFields may include '.' as a separator, which is used to - * indicate object traversal. This allows fields in nested objects to be used - * to determine what request to bundle. - * - * @property {String} bundledField - * @property {String} requestDiscriminatorFields - * @property {String} subresponseField - * @property {Function} byteLengthFunction - * - * @param {String} bundledField - the repeated field in the request message - * that will have its elements aggregated by bundling. - * @param {String} requestDiscriminatorFields - a list of fields in the - * target request message class that are used to detemrine which request - * messages should be bundled together. - * @param {String} subresponseField - an optional field, when present it - * indicates the field in the response message that should be used to - * demultiplex the response into multiple response messages. - * @param {Function} byteLengthFunction - a function to obtain the byte - * length to be consumed for the bundled field messages. Because Node.JS - * protobuf.js/gRPC uses builtin Objects for the user-visible data and - * internally they are encoded/decoded in protobuf manner, this function - * is actually necessary to calculate the byte length. - * @constructor + * Constructs a ListTargetsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListTargetsOutput} obj Optional instance to populate. + * @return {module:model/ListTargetsOutput} The populated ListTargetsOutput instance. */ - constructor(bundledField, requestDiscriminatorFields, subresponseField, byteLengthFunction) { - if (!byteLengthFunction && typeof subresponseField === 'function') { - byteLengthFunction = subresponseField; - subresponseField = null; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListTargetsOutput(); + + if (data.hasOwnProperty('next_page')) { + obj['next_page'] = _ApiClient["default"].convertToType(data['next_page'], 'String'); } - this.bundledField = bundledField; - this.requestDiscriminatorFields = - requestDiscriminatorFields.map(util_1.toCamelCase); - this.subresponseField = subresponseField; - this.byteLengthFunction = byteLengthFunction; - } - getApiCaller(settings) { - if (settings.isBundling === false) { - return new normalApiCaller_1.NormalApiCaller(); + + if (data.hasOwnProperty('targets')) { + obj['targets'] = _ApiClient["default"].convertToType(data['targets'], [_Target["default"]]); } - return new bundleApiCaller_1.BundleApiCaller(new bundleExecutor_1.BundleExecutor(settings.bundleOptions, this)); + } + + return obj; } -} -exports.BundleDescriptor = BundleDescriptor; -//# sourceMappingURL=bundleDescriptor.js.map + }]); + + return ListTargetsOutput; +}(); +/** + * @member {String} next_page + */ + + +ListTargetsOutput.prototype['next_page'] = undefined; +/** + * @member {Array.} targets + */ + +ListTargetsOutput.prototype['targets'] = undefined; +var _default = ListTargetsOutput; +exports["default"] = _default; /***/ }), -/***/ 44682: +/***/ 65736: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _AwsS3LogForwardingConfig = _interopRequireDefault(__nccwpck_require__(20090)); + +var _AzureLogAnalyticsForwardingConfig = _interopRequireDefault(__nccwpck_require__(20430)); + +var _DatadogForwardingConfig = _interopRequireDefault(__nccwpck_require__(26413)); + +var _ElasticsearchLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(15078)); + +var _GoogleChronicleForwardingConfig = _interopRequireDefault(__nccwpck_require__(36479)); + +var _LogstashLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(35480)); + +var _LogzIoLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(8725)); + +var _SplunkLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(39760)); + +var _SumologicLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(58097)); + +var _SyslogLogForwardingConfig = _interopRequireDefault(__nccwpck_require__(68494)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BundleExecutor = void 0; -const status_1 = __nccwpck_require__(69124); -const googleError_1 = __nccwpck_require__(34775); -const warnings_1 = __nccwpck_require__(25531); -const bundlingUtils_1 = __nccwpck_require__(90855); -const task_1 = __nccwpck_require__(86922); -function noop() { } -/** - * BundleExecutor stores several timers for each bundle (calls are bundled based - * on the options passed, each bundle has unique ID that is calculated based on - * field values). Each timer fires and sends a call after certain amount of - * time, and if a new request comes to the same bundle, the timer can be - * restarted. + * The LogForwardingConfigPart model module. + * @module model/LogForwardingConfigPart + * @version 3.6.3 */ -class BundleExecutor { - /** - * Organizes requests for an api service that requires to bundle them. - * - * @param {BundleOptions} bundleOptions - configures strategy this instance - * uses when executing bundled functions. - * @param {BundleDescriptor} bundleDescriptor - the description of the bundling. - * @constructor - */ - constructor(bundleOptions, bundleDescriptor) { - this._options = bundleOptions; - this._descriptor = bundleDescriptor; - this._tasks = {}; - this._timers = {}; - this._invocations = {}; - this._invocationId = 0; - } +var LogForwardingConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new LogForwardingConfigPart. + * @alias module:model/LogForwardingConfigPart + */ + function LogForwardingConfigPart() { + _classCallCheck(this, LogForwardingConfigPart); + + LogForwardingConfigPart.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LogForwardingConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Schedule a method call. - * - * @param {function} apiCall - the function for an API call. - * @param {Object} request - the request object to be bundled with others. - * @param {APICallback} callback - the callback to be called when the method finished. - * @return {function()} - the function to cancel the scheduled invocation. + * Constructs a LogForwardingConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LogForwardingConfigPart} obj Optional instance to populate. + * @return {module:model/LogForwardingConfigPart} The populated LogForwardingConfigPart instance. */ - schedule(apiCall, request, callback) { - const bundleId = (0, bundlingUtils_1.computeBundleId)(request, this._descriptor.requestDiscriminatorFields); - callback = (callback || noop); - if (bundleId === undefined) { - (0, warnings_1.warn)('bundling_schedule_bundleid_undefined', 'The request does not have enough information for request bundling. ' + - `Invoking immediately. Request: ${JSON.stringify(request)} ` + - `discriminator fields: ${this._descriptor.requestDiscriminatorFields}`); - return apiCall(request, callback); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LogForwardingConfigPart(); + + if (data.hasOwnProperty('aws_s3_config')) { + obj['aws_s3_config'] = _AwsS3LogForwardingConfig["default"].constructFromObject(data['aws_s3_config']); } - if (request[this._descriptor.bundledField] === undefined) { - (0, warnings_1.warn)('bundling_no_bundled_field', `Request does not contain field ${this._descriptor.bundledField} that must present for bundling. ` + - `Invoking immediately. Request: ${JSON.stringify(request)}`); - return apiCall(request, callback); + + if (data.hasOwnProperty('azure_analytics_config')) { + obj['azure_analytics_config'] = _AzureLogAnalyticsForwardingConfig["default"].constructFromObject(data['azure_analytics_config']); } - if (!(bundleId in this._tasks)) { - this._tasks[bundleId] = new task_1.Task(apiCall, request, this._descriptor.bundledField, this._descriptor.subresponseField); + + if (data.hasOwnProperty('datadog_config')) { + obj['datadog_config'] = _DatadogForwardingConfig["default"].constructFromObject(data['datadog_config']); } - let task = this._tasks[bundleId]; - callback.id = String(this._invocationId++); - this._invocations[callback.id] = bundleId; - const bundledField = request[this._descriptor.bundledField]; - const elementCount = bundledField.length; - let requestBytes = 0; - // eslint-disable-next-line @typescript-eslint/no-this-alias - const self = this; - bundledField.forEach(obj => { - requestBytes += this._descriptor.byteLengthFunction(obj); - }); - const countLimit = this._options.elementCountLimit || 0; - const byteLimit = this._options.requestByteLimit || 0; - if ((countLimit > 0 && elementCount > countLimit) || - (byteLimit > 0 && requestBytes >= byteLimit)) { - let message; - if (countLimit > 0 && elementCount > countLimit) { - message = - 'The number of elements ' + - elementCount + - ' exceeds the limit ' + - this._options.elementCountLimit; - } - else { - message = - 'The required bytes ' + - requestBytes + - ' exceeds the limit ' + - this._options.requestByteLimit; - } - const error = new googleError_1.GoogleError(message); - error.code = status_1.Status.INVALID_ARGUMENT; - callback(error); - return { - cancel: noop, - }; + + if (data.hasOwnProperty('elasticsearch_config')) { + obj['elasticsearch_config'] = _ElasticsearchLogForwardingConfig["default"].constructFromObject(data['elasticsearch_config']); } - const existingCount = task.getElementCount(); - const existingBytes = task.getRequestByteSize(); - if ((countLimit > 0 && elementCount + existingCount >= countLimit) || - (byteLimit > 0 && requestBytes + existingBytes >= byteLimit)) { - this._runNow(bundleId); - this._tasks[bundleId] = new task_1.Task(apiCall, request, this._descriptor.bundledField, this._descriptor.subresponseField); - task = this._tasks[bundleId]; + + if (data.hasOwnProperty('google_chronicle_config')) { + obj['google_chronicle_config'] = _GoogleChronicleForwardingConfig["default"].constructFromObject(data['google_chronicle_config']); } - task.extend(bundledField, requestBytes, callback); - const ret = { - cancel() { - self._cancel(callback.id); - }, - }; - const countThreshold = this._options.elementCountThreshold || 0; - const sizeThreshold = this._options.requestByteThreshold || 0; - if ((countThreshold > 0 && task.getElementCount() >= countThreshold) || - (sizeThreshold > 0 && task.getRequestByteSize() >= sizeThreshold)) { - this._runNow(bundleId); - return ret; + + if (data.hasOwnProperty('json_output')) { + obj['json_output'] = _ApiClient["default"].convertToType(data['json_output'], 'Boolean'); } - if (!(bundleId in this._timers) && this._options.delayThreshold > 0) { - this._timers[bundleId] = setTimeout(() => { - delete this._timers[bundleId]; - this._runNow(bundleId); - }, this._options.delayThreshold); + + if (data.hasOwnProperty('logan_enable')) { + obj['logan_enable'] = _ApiClient["default"].convertToType(data['logan_enable'], 'Boolean'); } - return ret; - } - /** - * Clears scheduled timeout if it exists. - * - * @param {String} bundleId - the id for the task whose timeout needs to be - * cleared. - * @private - */ - _maybeClearTimeout(bundleId) { - if (bundleId in this._timers) { - const timerId = this._timers[bundleId]; - delete this._timers[bundleId]; - clearTimeout(timerId); + + if (data.hasOwnProperty('logan_url')) { + obj['logan_url'] = _ApiClient["default"].convertToType(data['logan_url'], 'String'); } - } - /** - * Cancels an event. - * - * @param {String} id - The id for the event in the task. - * @private - */ - _cancel(id) { - if (!(id in this._invocations)) { - return; + + if (data.hasOwnProperty('logstash_config')) { + obj['logstash_config'] = _LogstashLogForwardingConfig["default"].constructFromObject(data['logstash_config']); } - const bundleId = this._invocations[id]; - if (!(bundleId in this._tasks)) { - return; + + if (data.hasOwnProperty('logz_io_config')) { + obj['logz_io_config'] = _LogzIoLogForwardingConfig["default"].constructFromObject(data['logz_io_config']); } - const task = this._tasks[bundleId]; - delete this._invocations[id]; - if (task.cancel(id)) { - this._maybeClearTimeout(bundleId); - delete this._tasks[bundleId]; + + if (data.hasOwnProperty('pull_interval_sec')) { + obj['pull_interval_sec'] = _ApiClient["default"].convertToType(data['pull_interval_sec'], 'String'); } - } - /** - * Invokes a task. - * - * @param {String} bundleId - The id for the task. - * @private - */ - _runNow(bundleId) { - if (!(bundleId in this._tasks)) { - (0, warnings_1.warn)('bundle_runnow_bundleid_unknown', `No such bundleid: ${bundleId}`); - return; + + if (data.hasOwnProperty('splunk_config')) { + obj['splunk_config'] = _SplunkLogForwardingConfig["default"].constructFromObject(data['splunk_config']); } - this._maybeClearTimeout(bundleId); - const task = this._tasks[bundleId]; - delete this._tasks[bundleId]; - task.run().forEach(id => { - delete this._invocations[id]; - }); + + if (data.hasOwnProperty('sumo_logic_config')) { + obj['sumo_logic_config'] = _SumologicLogForwardingConfig["default"].constructFromObject(data['sumo_logic_config']); + } + + if (data.hasOwnProperty('syslog_config')) { + obj['syslog_config'] = _SyslogLogForwardingConfig["default"].constructFromObject(data['syslog_config']); + } + + if (data.hasOwnProperty('target_log_type')) { + obj['target_log_type'] = _ApiClient["default"].convertToType(data['target_log_type'], 'String'); + } + } + + return obj; } -} -exports.BundleExecutor = BundleExecutor; -//# sourceMappingURL=bundleExecutor.js.map + }]); -/***/ }), + return LogForwardingConfigPart; +}(); +/** + * @member {module:model/AwsS3LogForwardingConfig} aws_s3_config + */ -/***/ 90855: -/***/ ((__unused_webpack_module, exports) => { -"use strict"; +LogForwardingConfigPart.prototype['aws_s3_config'] = undefined; +/** + * @member {module:model/AzureLogAnalyticsForwardingConfig} azure_analytics_config + */ +LogForwardingConfigPart.prototype['azure_analytics_config'] = undefined; /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @member {module:model/DatadogForwardingConfig} datadog_config */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.computeBundleId = computeBundleId; + +LogForwardingConfigPart.prototype['datadog_config'] = undefined; /** - * Compute the identifier of the `obj`. The objects of the same ID - * will be bundled together. - * - * @param {RequestType} obj - The request object. - * @param {String[]} discriminatorFields - The array of field names. - * A field name may include '.' as a separator, which is used to - * indicate object traversal. - * @return {String|undefined} - the identifier string, or undefined if any - * discriminator fields do not exist. + * @member {module:model/ElasticsearchLogForwardingConfig} elasticsearch_config */ -function computeBundleId(obj, discriminatorFields) { - const ids = []; - let hasIds = false; - for (const field of discriminatorFields) { - const id = at(obj, field); - if (id === undefined) { - ids.push(null); - } - else { - hasIds = true; - ids.push(id); - } - } - if (!hasIds) { - return undefined; - } - return JSON.stringify(ids); -} + +LogForwardingConfigPart.prototype['elasticsearch_config'] = undefined; /** - * Given an object field path that may contain dots, dig into the obj and find - * the value at the given path. - * @example - * const obj = { - * a: { - * b: 5 - * } - * } - * const id = at(obj, 'a.b'); - * // id = 5 - * @param field Path to the property with `.` notation - * @param obj The object to traverse - * @returns the value at the given path + * @member {module:model/GoogleChronicleForwardingConfig} google_chronicle_config */ -function at(obj, field) { - const pathParts = field.split('.'); - // eslint-disable-next-line @typescript-eslint/no-explicit-any - let currentObj = obj; - for (const pathPart of pathParts) { - currentObj = currentObj === null || currentObj === void 0 ? void 0 : currentObj[pathPart]; - } - return currentObj; -} -//# sourceMappingURL=bundlingUtils.js.map -/***/ }), +LogForwardingConfigPart.prototype['google_chronicle_config'] = undefined; +/** + * @member {Boolean} json_output + */ -/***/ 86922: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +LogForwardingConfigPart.prototype['json_output'] = undefined; +/** + * @member {Boolean} logan_enable + */ -"use strict"; +LogForwardingConfigPart.prototype['logan_enable'] = undefined; +/** + * @member {String} logan_url + */ +LogForwardingConfigPart.prototype['logan_url'] = undefined; /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @member {module:model/LogstashLogForwardingConfig} logstash_config */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Task = void 0; -exports.deepCopyForResponse = deepCopyForResponse; -const status_1 = __nccwpck_require__(69124); -const googleError_1 = __nccwpck_require__(34775); + +LogForwardingConfigPart.prototype['logstash_config'] = undefined; /** - * Creates a deep copy of the object with the consideration of subresponse - * fields for bundling. - * - * @param {Object} obj - The source object. - * @param {Object?} subresponseInfo - The information to copy the subset of - * the field for the response. Do nothing if it's null. - * @param {String} subresponseInfo.field - The field name. - * @param {number} subresponseInfo.start - The offset where the copying - * element should starts with. - * @param {number} subresponseInfo.end - The ending index where the copying - * region of the elements ends. - * @return {Object} The copied object. - * @private + * @member {module:model/LogzIoLogForwardingConfig} logz_io_config + */ + +LogForwardingConfigPart.prototype['logz_io_config'] = undefined; +/** + * @member {String} pull_interval_sec + */ + +LogForwardingConfigPart.prototype['pull_interval_sec'] = undefined; +/** + * @member {module:model/SplunkLogForwardingConfig} splunk_config + */ + +LogForwardingConfigPart.prototype['splunk_config'] = undefined; +/** + * @member {module:model/SumologicLogForwardingConfig} sumo_logic_config + */ + +LogForwardingConfigPart.prototype['sumo_logic_config'] = undefined; +/** + * @member {module:model/SyslogLogForwardingConfig} syslog_config + */ + +LogForwardingConfigPart.prototype['syslog_config'] = undefined; +/** + * @member {String} target_log_type */ -function deepCopyForResponse( -// eslint-disable-next-line @typescript-eslint/no-explicit-any -obj, subresponseInfo) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - let result; - if (obj === null) { - return null; - } - if (obj === undefined) { - return undefined; - } - if (Array.isArray(obj)) { - result = []; - obj.forEach(element => { - result.push(deepCopyForResponse(element, null)); - }); - return result; - } - // Some objects (such as ByteBuffer) have copy method. - if (obj.copy !== undefined) { - return obj.copy(); - } - // ArrayBuffer should be copied through slice(). - if (obj instanceof ArrayBuffer) { - return obj.slice(0); - } - if (typeof obj === 'object') { - result = {}; - Object.keys(obj).forEach(key => { - if (subresponseInfo && - key === subresponseInfo.field && - Array.isArray(obj[key])) { - // Note that subresponses are not deep-copied. This is safe because - // those subresponses are not shared among callbacks. - result[key] = obj[key].slice(subresponseInfo.start, subresponseInfo.end); - } - else { - result[key] = deepCopyForResponse(obj[key], null); - } - }); - return result; - } - return obj; -} -class Task { - /** - * A task coordinates the execution of a single bundle. - * - * @param {function} apiCall - The function to conduct calling API. - * @param {Object} bundlingRequest - The base request object to be used - * for the actual API call. - * @param {string} bundledField - The name of the field in bundlingRequest - * to be bundled. - * @param {string=} subresponseField - The name of the field in the response - * to be passed to the callback. - * @constructor - * @private - */ - constructor(apiCall, bundlingRequest, bundledField, subresponseField) { - this._apiCall = apiCall; - this._request = bundlingRequest; - this._bundledField = bundledField; - this._subresponseField = subresponseField; - this._data = []; - } - /** - * Returns the number of elements in a task. - * @return {number} The number of elements. - */ - getElementCount() { - let count = 0; - for (let i = 0; i < this._data.length; ++i) { - count += this._data[i].elements.length; - } - return count; - } - /** - * Returns the total byte size of the elements in a task. - * @return {number} The byte size. - */ - getRequestByteSize() { - let size = 0; - for (let i = 0; i < this._data.length; ++i) { - size += this._data[i].bytes; - } - return size; - } - /** - * Invokes the actual API call with current elements. - * @return {string[]} - the list of ids for invocations to be run. - */ - run() { - if (this._data.length === 0) { - return []; - } - const request = this._request; - const elements = []; - const ids = []; - for (let i = 0; i < this._data.length; ++i) { - elements.push(...this._data[i].elements); - ids.push(this._data[i].callback.id); - } - request[this._bundledField] = elements; - // eslint-disable-next-line @typescript-eslint/no-this-alias - const self = this; - this.callCanceller = this._apiCall(request, (err, response) => { - const responses = []; - if (err) { - self._data.forEach(() => { - responses.push(undefined); - }); - } - else { - let subresponseInfo = null; - if (self._subresponseField) { - subresponseInfo = { - field: self._subresponseField, - start: 0, - }; - } - self._data.forEach(data => { - if (subresponseInfo) { - subresponseInfo.end = - subresponseInfo.start + data.elements.length; - } - responses.push(deepCopyForResponse(response, subresponseInfo)); - if (subresponseInfo) { - subresponseInfo.start = subresponseInfo.end; - } - }); - } - for (let i = 0; i < self._data.length; ++i) { - if (self._data[i].cancelled) { - const error = new googleError_1.GoogleError('cancelled'); - error.code = status_1.Status.CANCELLED; - self._data[i].callback(error); - } - else { - self._data[i].callback(err, responses[i]); - } - } - }); - return ids; - } - /** - * Appends the list of elements into the task. - * @param {Object[]} elements - the new list of elements. - * @param {number} bytes - the byte size required to encode elements in the API. - * @param {APICallback} callback - the callback of the method call. - */ - extend(elements, bytes, callback) { - this._data.push({ - elements, - bytes, - callback, - }); - } - /** - * Cancels a part of elements. - * @param {string} id - The identifier of the part of elements. - * @return {boolean} Whether the entire task will be canceled or not. - */ - cancel(id) { - if (this.callCanceller) { - let allCancelled = true; - this._data.forEach(d => { - if (d.callback.id === id) { - d.cancelled = true; - } - if (!d.cancelled) { - allCancelled = false; - } - }); - if (allCancelled) { - this.callCanceller.cancel(); - } - return allCancelled; - } - for (let i = 0; i < this._data.length; ++i) { - if (this._data[i].callback.id === id) { - const error = new googleError_1.GoogleError('cancelled'); - error.code = status_1.Status.CANCELLED; - this._data[i].callback(error); - this._data.splice(i, 1); - break; - } - } - return this._data.length === 0; - } -} -exports.Task = Task; -//# sourceMappingURL=task.js.map + +LogForwardingConfigPart.prototype['target_log_type'] = undefined; +var _default = LogForwardingConfigPart; +exports["default"] = _default; /***/ }), -/***/ 49746: +/***/ 35480: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * The LogstashLogForwardingConfig model module. + * @module model/LogstashLogForwardingConfig + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.OngoingCallPromise = exports.OngoingCall = void 0; -const status_1 = __nccwpck_require__(69124); -const googleError_1 = __nccwpck_require__(34775); -class OngoingCall { - /** - * OngoingCall manages callback, API calls, and cancellation - * of the API calls. - * @param {APICallback=} callback - * The callback to be called asynchronously when the API call - * finishes. - * @constructor - * @property {APICallback} callback - * The callback function to be called. - * @private - */ - constructor(callback) { - this.callback = callback; - this.completed = false; - } +var LogstashLogForwardingConfig = /*#__PURE__*/function () { + /** + * Constructs a new LogstashLogForwardingConfig. + * @alias module:model/LogstashLogForwardingConfig + */ + function LogstashLogForwardingConfig() { + _classCallCheck(this, LogstashLogForwardingConfig); + + LogstashLogForwardingConfig.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LogstashLogForwardingConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Cancels the ongoing promise. + * Constructs a LogstashLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LogstashLogForwardingConfig} obj Optional instance to populate. + * @return {module:model/LogstashLogForwardingConfig} The populated LogstashLogForwardingConfig instance. */ - cancel() { - if (this.completed) { - return; - } - this.completed = true; - if (this.cancelFunc) { - this.cancelFunc(); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LogstashLogForwardingConfig(); + + if (data.hasOwnProperty('logstash_dns')) { + obj['logstash_dns'] = _ApiClient["default"].convertToType(data['logstash_dns'], 'String'); } - else { - const error = new googleError_1.GoogleError('cancelled'); - error.code = status_1.Status.CANCELLED; - this.callback(error); + + if (data.hasOwnProperty('logstash_enable_tls')) { + obj['logstash_enable_tls'] = _ApiClient["default"].convertToType(data['logstash_enable_tls'], 'Boolean'); } - } - /** - * Call calls the specified function. Result will be used to fulfill - * the promise. - * - * @param {SimpleCallbackFunction} func - * A function for an API call. - * @param {Object} argument - * A request object. - */ - call(func, argument) { - if (this.completed) { - return; + + if (data.hasOwnProperty('logstash_protocol')) { + obj['logstash_protocol'] = _ApiClient["default"].convertToType(data['logstash_protocol'], 'String'); } - const canceller = func(argument, (err, response, next, rawResponse) => { - this.completed = true; - setImmediate(this.callback, err, response, next, rawResponse); - }); - if (canceller instanceof Promise) { - canceller.catch(err => { - setImmediate(this.callback, new googleError_1.GoogleError(err), null, null, null); - }); + + if (data.hasOwnProperty('logstash_tls_certificate')) { + obj['logstash_tls_certificate'] = _ApiClient["default"].convertToType(data['logstash_tls_certificate'], 'String'); } - this.cancelFunc = () => canceller.cancel(); - } -} -exports.OngoingCall = OngoingCall; -class OngoingCallPromise extends OngoingCall { - /** - * GaxPromise is GRPCCallbackWrapper, but it holds a promise when - * the API call finishes. - * @constructor - * @private - */ - constructor() { - let resolveCallback; - let rejectCallback; - const callback = (err, response, next, rawResponse) => { - if (err) { - // If gRPC metadata exist, parsed google.rpc.status details. - if (err.metadata) { - rejectCallback(googleError_1.GoogleError.parseGRPCStatusDetails(err)); - } - else { - rejectCallback(err); - } - } - else if (response !== undefined) { - resolveCallback([response, next || null, rawResponse || null]); - } - else { - throw new googleError_1.GoogleError('Neither error nor response are defined'); - } - }; - const promise = new Promise((resolve, reject) => { - resolveCallback = resolve; - rejectCallback = reject; - }); - super(callback); - this.promise = promise; - this.promise.cancel = () => { - this.cancel(); - }; + } + + return obj; } -} -exports.OngoingCallPromise = OngoingCallPromise; -//# sourceMappingURL=call.js.map + }]); -/***/ }), + return LogstashLogForwardingConfig; +}(); +/** + * @member {String} logstash_dns + */ -/***/ 42236: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; +LogstashLogForwardingConfig.prototype['logstash_dns'] = undefined; +/** + * @member {Boolean} logstash_enable_tls + */ +LogstashLogForwardingConfig.prototype['logstash_enable_tls'] = undefined; /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @member {String} logstash_protocol */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.createApiCall = createApiCall; + +LogstashLogForwardingConfig.prototype['logstash_protocol'] = undefined; /** - * Provides function wrappers that implement page streaming and retrying. + * @member {String} logstash_tls_certificate */ -const apiCaller_1 = __nccwpck_require__(75203); -const gax_1 = __nccwpck_require__(4996); -const retries_1 = __nccwpck_require__(61789); -const timeout_1 = __nccwpck_require__(86328); -const streamingApiCaller_1 = __nccwpck_require__(98177); -const warnings_1 = __nccwpck_require__(25531); + +LogstashLogForwardingConfig.prototype['logstash_tls_certificate'] = undefined; +var _default = LogstashLogForwardingConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 8725: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Converts an rpc call into an API call governed by the settings. - * - * In typical usage, `func` will be a promise to a callable used to make an rpc - * request. This will mostly likely be a bound method from a request stub used - * to make an rpc call. It is not a direct function but a Promise instance, - * because of its asynchronism (typically, obtaining the auth information). - * - * The result is a function which manages the API call with the given settings - * and the options on the invocation. - * - * @param {Promise|GRPCCall} func - is either a promise to be used to make - * a bare RPC call, or just a bare RPC call. - * @param {CallSettings} settings - provides the settings for this call - * @param {Descriptor} descriptor - optionally specify the descriptor for - * the method call. - * @return {GaxCall} func - a bound method on a request stub used - * to make an rpc call. + * The LogzIoLogForwardingConfig model module. + * @module model/LogzIoLogForwardingConfig + * @version 3.6.3 */ -function createApiCall(func, settings, descriptor, -// eslint-disable-next-line @typescript-eslint/no-unused-vars -_fallback // unused here, used in fallback.ts implementation -) { - // we want to be able to accept both promise resolving to a function and a - // function. Currently client librares are only calling this method with a - // promise, but it will change. - const funcPromise = typeof func === 'function' ? Promise.resolve(func) : func; - // the following apiCaller will be used for all calls of this function... - const apiCaller = (0, apiCaller_1.createAPICaller)(settings, descriptor); - return (request, callOptions, callback) => { - var _a, _b; - let currentApiCaller = apiCaller; - let thisSettings; - if (currentApiCaller instanceof streamingApiCaller_1.StreamingApiCaller) { - const gaxStreamingRetries = (_b = (_a = currentApiCaller.descriptor) === null || _a === void 0 ? void 0 : _a.gaxStreamingRetries) !== null && _b !== void 0 ? _b : false; - // If Gax streaming retries are enabled, check settings passed at call time and convert parameters if needed - const convertedRetryOptions = (0, gax_1.convertRetryOptions)(callOptions, gaxStreamingRetries); - thisSettings = settings.merge(convertedRetryOptions); - } - else { - thisSettings = settings.merge(callOptions); - } - // special case: if bundling is disabled for this one call, - // use default API caller instead - if (settings.isBundling && !thisSettings.isBundling) { - currentApiCaller = (0, apiCaller_1.createAPICaller)(settings, undefined); +var LogzIoLogForwardingConfig = /*#__PURE__*/function () { + /** + * Constructs a new LogzIoLogForwardingConfig. + * @alias module:model/LogzIoLogForwardingConfig + */ + function LogzIoLogForwardingConfig() { + _classCallCheck(this, LogzIoLogForwardingConfig); + + LogzIoLogForwardingConfig.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(LogzIoLogForwardingConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a LogzIoLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LogzIoLogForwardingConfig} obj Optional instance to populate. + * @return {module:model/LogzIoLogForwardingConfig} The populated LogzIoLogForwardingConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LogzIoLogForwardingConfig(); + + if (data.hasOwnProperty('target_logz_io_protocol')) { + obj['target_logz_io_protocol'] = _ApiClient["default"].convertToType(data['target_logz_io_protocol'], 'String'); } - const ongoingCall = currentApiCaller.init(callback); - funcPromise - .then((func) => { - var _a, _b; - var _c; - // Initially, the function is just what gRPC server stub contains. - func = currentApiCaller.wrap(func); - const streaming = (_a = currentApiCaller.descriptor) === null || _a === void 0 ? void 0 : _a.streaming; - const retry = thisSettings.retry; - if (streaming && retry) { - if (retry.retryCodes.length > 0 && retry.shouldRetryFn) { - (0, warnings_1.warn)('either_retrycodes_or_shouldretryfn', 'Only one of retryCodes or shouldRetryFn may be defined. Ignoring retryCodes.'); - retry.retryCodes = []; - } - if (!currentApiCaller.descriptor - .gaxStreamingRetries && - retry.getResumptionRequestFn) { - throw new Error('getResumptionRequestFn can only be used when gaxStreamingRetries is set to true.'); - } - } - if (!streaming && retry) { - if (retry.shouldRetryFn) { - throw new Error('Using a function to determine retry eligibility is only supported with server streaming calls'); - } - if (retry.getResumptionRequestFn) { - throw new Error('Resumption strategy can only be used with server streaming retries'); - } - if (retry.retryCodes && retry.retryCodes.length > 0) { - (_b = (_c = retry.backoffSettings).initialRpcTimeoutMillis) !== null && _b !== void 0 ? _b : (_c.initialRpcTimeoutMillis = thisSettings.timeout); - return (0, retries_1.retryable)(func, thisSettings.retry, thisSettings.otherArgs, thisSettings.apiName); - } - } - return (0, timeout_1.addTimeoutArg)(func, thisSettings.timeout, thisSettings.otherArgs); - }) - .then((apiCall) => { - // After adding retries / timeouts, the call function becomes simpler: - // it only accepts request and callback. - currentApiCaller.call(apiCall, request, thisSettings, ongoingCall); - }) - .catch(err => { - currentApiCaller.fail(ongoingCall, err); - }); - // Calls normally return a "cancellable promise" that can be used to `await` for the actual result, - // or to cancel the ongoing call. - return currentApiCaller.result(ongoingCall); - }; -} -//# sourceMappingURL=createApiCall.js.map -/***/ }), + if (data.hasOwnProperty('target_logz_io_token')) { + obj['target_logz_io_token'] = _ApiClient["default"].convertToType(data['target_logz_io_token'], 'String'); + } + } -/***/ 65151: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + return obj; + } + }]); -"use strict"; + return LogzIoLogForwardingConfig; +}(); +/** + * @member {String} target_logz_io_protocol + */ + +LogzIoLogForwardingConfig.prototype['target_logz_io_protocol'] = undefined; /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @member {String} target_logz_io_token */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BundleDescriptor = exports.StreamDescriptor = exports.PageDescriptor = exports.LongrunningDescriptor = void 0; -var longRunningDescriptor_1 = __nccwpck_require__(99199); -Object.defineProperty(exports, "LongrunningDescriptor", ({ enumerable: true, get: function () { return longRunningDescriptor_1.LongRunningDescriptor; } })); -var pageDescriptor_1 = __nccwpck_require__(53798); -Object.defineProperty(exports, "PageDescriptor", ({ enumerable: true, get: function () { return pageDescriptor_1.PageDescriptor; } })); -var streamDescriptor_1 = __nccwpck_require__(67839); -Object.defineProperty(exports, "StreamDescriptor", ({ enumerable: true, get: function () { return streamDescriptor_1.StreamDescriptor; } })); -var bundleDescriptor_1 = __nccwpck_require__(57910); -Object.defineProperty(exports, "BundleDescriptor", ({ enumerable: true, get: function () { return bundleDescriptor_1.BundleDescriptor; } })); -//# sourceMappingURL=descriptor.js.map + +LogzIoLogForwardingConfig.prototype['target_logz_io_token'] = undefined; +var _default = LogzIoLogForwardingConfig; +exports["default"] = _default; /***/ }), -/***/ 9592: -/***/ ((module, exports, __nccwpck_require__) => { +/***/ 89124: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * The MigrationGeneral model module. + * @module model/MigrationGeneral + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fallback = exports.GoogleError = exports.operation = exports.Operation = exports.warn = exports.protobufMinimal = exports.protobuf = exports.LocationProtos = exports.IamProtos = exports.operationsProtos = exports.GrpcClient = exports.defaultToObjectOptions = exports.makeUUID = exports.LocationsClient = exports.IamClient = exports.OperationsClient = exports.StreamType = exports.StreamDescriptor = exports.PageDescriptor = exports.LongrunningDescriptor = exports.BundleDescriptor = exports.version = exports.createDefaultBackoffSettings = exports.RetryOptions = exports.constructSettings = exports.CallSettings = exports.routingHeader = exports.PathTemplate = void 0; -exports.lro = lro; -exports.createApiCall = createApiCall; -const objectHash = __nccwpck_require__(77690); -const protobuf = __nccwpck_require__(23928); -exports.protobuf = protobuf; -const gax = __nccwpck_require__(4996); -const routingHeader = __nccwpck_require__(37515); -exports.routingHeader = routingHeader; -const status_1 = __nccwpck_require__(69124); -const google_auth_library_1 = __nccwpck_require__(31882); -const operationsClient_1 = __nccwpck_require__(99463); -const createApiCall_1 = __nccwpck_require__(42236); -const fallbackRest = __nccwpck_require__(32230); -const featureDetection_1 = __nccwpck_require__(83515); -const fallbackServiceStub_1 = __nccwpck_require__(86477); -const streaming_1 = __nccwpck_require__(21224); -const util_1 = __nccwpck_require__(24938); -const IamProtos = __nccwpck_require__(37312); -exports.IamProtos = IamProtos; -const LocationProtos = __nccwpck_require__(81937); -exports.LocationProtos = LocationProtos; -const operationsProtos = __nccwpck_require__(99467); -exports.operationsProtos = operationsProtos; -var pathTemplate_1 = __nccwpck_require__(66575); -Object.defineProperty(exports, "PathTemplate", ({ enumerable: true, get: function () { return pathTemplate_1.PathTemplate; } })); -var gax_1 = __nccwpck_require__(4996); -Object.defineProperty(exports, "CallSettings", ({ enumerable: true, get: function () { return gax_1.CallSettings; } })); -Object.defineProperty(exports, "constructSettings", ({ enumerable: true, get: function () { return gax_1.constructSettings; } })); -Object.defineProperty(exports, "RetryOptions", ({ enumerable: true, get: function () { return gax_1.RetryOptions; } })); -Object.defineProperty(exports, "createDefaultBackoffSettings", ({ enumerable: true, get: function () { return gax_1.createDefaultBackoffSettings; } })); -exports.version = (__nccwpck_require__(57564).version) + '-fallback'; -var descriptor_1 = __nccwpck_require__(65151); -Object.defineProperty(exports, "BundleDescriptor", ({ enumerable: true, get: function () { return descriptor_1.BundleDescriptor; } })); -Object.defineProperty(exports, "LongrunningDescriptor", ({ enumerable: true, get: function () { return descriptor_1.LongrunningDescriptor; } })); -Object.defineProperty(exports, "PageDescriptor", ({ enumerable: true, get: function () { return descriptor_1.PageDescriptor; } })); -Object.defineProperty(exports, "StreamDescriptor", ({ enumerable: true, get: function () { return descriptor_1.StreamDescriptor; } })); -var streaming_2 = __nccwpck_require__(21224); -Object.defineProperty(exports, "StreamType", ({ enumerable: true, get: function () { return streaming_2.StreamType; } })); -var operationsClient_2 = __nccwpck_require__(99463); -Object.defineProperty(exports, "OperationsClient", ({ enumerable: true, get: function () { return operationsClient_2.OperationsClient; } })); -var iamService_1 = __nccwpck_require__(34126); -Object.defineProperty(exports, "IamClient", ({ enumerable: true, get: function () { return iamService_1.IamClient; } })); -var locationService_1 = __nccwpck_require__(47302); -Object.defineProperty(exports, "LocationsClient", ({ enumerable: true, get: function () { return locationService_1.LocationsClient; } })); -var util_2 = __nccwpck_require__(24938); -Object.defineProperty(exports, "makeUUID", ({ enumerable: true, get: function () { return util_2.makeUUID; } })); -exports.defaultToObjectOptions = { - keepCase: false, - longs: String, - enums: String, - defaults: true, - oneofs: true, -}; -const CLIENT_VERSION_HEADER = 'x-goog-api-client'; -class GrpcClient { - /** - * In rare cases users might need to deallocate all memory consumed by loaded protos. - * This method will delete the proto cache content. - */ - static clearProtoCache() { - GrpcClient.protoCache.clear(); - } - /** - * gRPC-fallback version of GrpcClient - * Implements GrpcClient API for a browser using grpc-fallback protocol (sends serialized protobuf to HTTP/1 $rpc endpoint). - * - * @param {Object=} options.auth - An instance of OAuth2Client to use in browser, or an instance of GoogleAuth from google-auth-library - * to use in Node.js. Required for browser, optional for Node.js. - * @constructor - */ - constructor(options = {}) { - var _a; - if (!(0, featureDetection_1.isNodeJS)()) { - if (!options.auth) { - throw new Error(JSON.stringify(options) + - 'You need to pass auth instance to use gRPC-fallback client in browser or other non-Node.js environments. Use OAuth2Client from google-auth-library.'); - } - this.auth = options.auth; - } - else { - this.auth = - options.auth || - new google_auth_library_1.GoogleAuth(options); - } - this.fallback = options.fallback ? true : false; - this.grpcVersion = (__nccwpck_require__(57564).version); - this.httpRules = options.httpRules; - this.numericEnums = (_a = options.numericEnums) !== null && _a !== void 0 ? _a : false; - } - /** - * gRPC-fallback version of loadProto - * Loads the protobuf root object from a JSON object created from a proto file - * @param {Object} jsonObject - A JSON version of a protofile created usin protobuf.js - * @returns {Object} Root namespace of proto JSON - */ - loadProto(jsonObject) { - const rootObject = protobuf.Root.fromJSON(jsonObject); - return rootObject; - } - loadProtoJSON(json, ignoreCache = false) { - const hash = objectHash(JSON.stringify(json)).toString(); - const cached = GrpcClient.protoCache.get(hash); - if (cached && !ignoreCache) { - return cached; - } - const root = protobuf.Root.fromJSON(json); - GrpcClient.protoCache.set(hash, root); - return root; - } - static getServiceMethods(service) { - const methods = {}; - for (const [methodName, methodObject] of Object.entries(service.methods)) { - const methodNameLowerCamelCase = (0, util_1.toLowerCamelCase)(methodName); - methods[methodNameLowerCamelCase] = methodObject; - } - return methods; - } - /** - * gRPC-fallback version of constructSettings - * A wrapper of {@link constructSettings} function under the gRPC context. - * - * Most of parameters are common among constructSettings, please take a look. - * @param {string} serviceName - The fullly-qualified name of the service. - * @param {Object} clientConfig - A dictionary of the client config. - * @param {Object} configOverrides - A dictionary of overriding configs. - * @param {Object} headers - A dictionary of additional HTTP header name to - * its value. - * @return {Object} A mapping of method names to CallSettings. - */ - constructSettings(serviceName, clientConfig, configOverrides, headers) { - function buildMetadata(abTests, moreHeaders) { - const metadata = {}; - if (!headers) { - headers = {}; - } - // Since gRPC expects each header to be an array, - // we are doing the same for fallback here. - for (const key in headers) { - metadata[key] = Array.isArray(headers[key]) - ? headers[key] - : [headers[key]]; - } - // gRPC-fallback request must have 'grpc-web/' in 'x-goog-api-client' - const clientVersions = []; - if (metadata[CLIENT_VERSION_HEADER] && - metadata[CLIENT_VERSION_HEADER][0]) { - clientVersions.push(...metadata[CLIENT_VERSION_HEADER][0].split(' ')); - } - clientVersions.push(`grpc-web/${exports.version}`); - metadata[CLIENT_VERSION_HEADER] = [clientVersions.join(' ')]; - if (!moreHeaders) { - return metadata; - } - for (const key in moreHeaders) { - if (key.toLowerCase() !== CLIENT_VERSION_HEADER) { - const value = moreHeaders[key]; - if (Array.isArray(value)) { - if (metadata[key] === undefined) { - metadata[key] = value; - } - else { - if (Array.isArray(metadata[key])) { - metadata[key].push(...value); - } - else { - throw new Error(`Can not add value ${value} to the call metadata.`); - } - } - } - else { - metadata[key] = [value]; - } - } - } - return metadata; - } - return gax.constructSettings(serviceName, clientConfig, configOverrides, status_1.Status, { metadataBuilder: buildMetadata }); - } +var MigrationGeneral = /*#__PURE__*/function () { + /** + * Constructs a new MigrationGeneral. + * @alias module:model/MigrationGeneral + */ + function MigrationGeneral() { + _classCallCheck(this, MigrationGeneral); + + MigrationGeneral.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(MigrationGeneral, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * gRPC-fallback version of createStub - * Creates a gRPC-fallback stub with authentication headers built from supplied OAuth2Client instance - * - * @param {function} CreateStub - The constructor function of the stub. - * @param {Object} service - A protobufjs Service object (as returned by lookupService) - * @param {Object} opts - Connection options, as described below. - * @param {string} opts.servicePath - The hostname of the API endpoint service. - * @param {number} opts.port - The port of the service. - * @return {Promise} A promise which resolves to a gRPC-fallback service stub, which is a protobuf.js service stub instance modified to match the gRPC stub API + * Constructs a MigrationGeneral from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MigrationGeneral} obj Optional instance to populate. + * @return {module:model/MigrationGeneral} The populated MigrationGeneral instance. */ - async createStub(service, opts, - // For consistency with createStub in grpc.ts, customServicePath is defined: - // eslint-disable-next-line @typescript-eslint/no-unused-vars - customServicePath) { - if (!this.authClient) { - if (this.auth && 'getClient' in this.auth) { - this.authClient = (await this.auth.getClient()); - } - else if (this.auth && 'getRequestHeaders' in this.auth) { - this.authClient = this.auth; - } - } - if (!this.authClient) { - throw new Error('No authentication was provided'); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MigrationGeneral(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); } - if (!opts.universeDomain) { - opts.universeDomain = 'googleapis.com'; + + if (data.hasOwnProperty('last_migration')) { + obj['last_migration'] = _ApiClient["default"].convertToType(data['last_migration'], 'String'); } - if (opts.universeDomain) { - const universeFromAuth = this.authClient.universeDomain; - if (universeFromAuth && opts.universeDomain !== universeFromAuth) { - throw new Error(`The configured universe domain (${opts.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 (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - service.resolveAll(); - const methods = GrpcClient.getServiceMethods(service); - const protocol = opts.protocol || 'https'; - let servicePath = opts.servicePath; - if (!servicePath && - service.options && - service.options['(google.api.default_host)']) { - servicePath = service.options['(google.api.default_host)']; + + if (data.hasOwnProperty('new_name')) { + obj['new_name'] = _ApiClient["default"].convertToType(data['new_name'], 'String'); } - if (!servicePath) { - throw new Error(`Cannot determine service API path for service ${service.name}.`); + + if (data.hasOwnProperty('prefix')) { + obj['prefix'] = _ApiClient["default"].convertToType(data['prefix'], 'String'); } - let servicePort; - const match = servicePath.match(/^(.*):(\d+)$/); - if (match) { - servicePath = match[1]; - servicePort = parseInt(match[2]); + + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); } - if (opts.port) { - servicePort = opts.port; + + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); } - else if (!servicePort) { - servicePort = 443; + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); } - const encoder = fallbackRest.encodeRequest; - const decoder = fallbackRest.decodeResponse; - const serviceStub = (0, fallbackServiceStub_1.generateServiceStub)(methods, protocol, servicePath, servicePort, this.authClient, encoder, decoder, this.numericEnums); - return serviceStub; - } - /** - * Creates a 'bytelength' function for a given proto message class. - * - * See {@link BundleDescriptor} about the meaning of the return value. - * - * @param {function} message - a constructor function that is generated by - * protobuf.js. Assumes 'encoder' field in the message. - * @return {function(Object):number} - a function to compute the byte length - * for an object. - */ - static createByteLengthFunction(message) { - return gax.createByteLengthFunction(message); + } + + return obj; } -} -exports.GrpcClient = GrpcClient; -GrpcClient.protoCache = new Map(); + }]); + + return MigrationGeneral; +}(); /** - * gRPC-fallback version of lro - * - * @param {Object=} options.auth - An instance of google-auth-library. - * @return {Object} A OperationsClientBuilder that will return a OperationsClient + * @member {String} id */ -function lro(options) { - options = Object.assign({ scopes: [] }, options); - if (options.protoJson) { - options = Object.assign(options, { fallback: true }); - } - const gaxGrpc = new GrpcClient(options); - return new operationsClient_1.OperationsClientBuilder(gaxGrpc, options.protoJson); -} + + +MigrationGeneral.prototype['id'] = undefined; /** - * gRPC-fallback version of createApiCall - * - * Converts an rpc call into an API call governed by the settings. - * - * In typical usage, `func` will be a promise to a callable used to make an rpc - * request. This will mostly likely be a bound method from a request stub used - * to make an rpc call. It is not a direct function but a Promise instance, - * because of its asynchronism (typically, obtaining the auth information). - * - * The result is a function which manages the API call with the given settings - * and the options on the invocation. - * - * Throws exception on unsupported streaming calls - * - * @param {Promise|GRPCCall} func - is either a promise to be used to make - * a bare RPC call, or just a bare RPC call. - * @param {CallSettings} settings - provides the settings for this call - * @param {Descriptor} descriptor - optionally specify the descriptor for - * the method call. - * @return {GaxCall} func - a bound method on a request stub used - * to make an rpc call. + * @member {String} last_migration */ -function createApiCall(func, settings, descriptor, -// eslint-disable-next-line @typescript-eslint/no-unused-vars -_fallback // unused; for compatibility only -) { - if (descriptor && - 'streaming' in descriptor && - descriptor.type !== streaming_1.StreamType.SERVER_STREAMING) { - return () => { - throw new Error('The REST transport currently does not support client-streaming or bidi-stream calls.'); - }; - } - if (descriptor && 'streaming' in descriptor && !(0, featureDetection_1.isNodeJS)()) { - return () => { - throw new Error('Server streaming over the REST transport is only supported in Node.js.'); - }; - } - return (0, createApiCall_1.createApiCall)(func, settings, descriptor); -} -exports.protobufMinimal = __nccwpck_require__(37823); -var warnings_1 = __nccwpck_require__(25531); -Object.defineProperty(exports, "warn", ({ enumerable: true, get: function () { return warnings_1.warn; } })); -var longrunning_1 = __nccwpck_require__(76902); -Object.defineProperty(exports, "Operation", ({ enumerable: true, get: function () { return longrunning_1.Operation; } })); -Object.defineProperty(exports, "operation", ({ enumerable: true, get: function () { return longrunning_1.operation; } })); -var googleError_1 = __nccwpck_require__(34775); -Object.defineProperty(exports, "GoogleError", ({ enumerable: true, get: function () { return googleError_1.GoogleError; } })); -// Different environments or bundlers may or may not respect "browser" field -// in package.json (e.g. Electron does not respect it, but if you run the code -// through webpack first, it will follow the "browser" field). -// To make it safer and more compatible, let's make sure that if you do -// const gax = require("google-gax"); -// you can always ask for gax.fallback, regardless of "browser" field being -// understood or not. -const fallback = module.exports; -exports.fallback = fallback; -//# sourceMappingURL=fallback.js.map -/***/ }), +MigrationGeneral.prototype['last_migration'] = undefined; +/** + * @member {String} name + */ -/***/ 32230: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +MigrationGeneral.prototype['name'] = undefined; +/** + * @member {String} new_name + */ -"use strict"; +MigrationGeneral.prototype['new_name'] = undefined; +/** + * @member {String} prefix + */ +MigrationGeneral.prototype['prefix'] = undefined; /** - * 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. + * @member {String} protection_key + */ + +MigrationGeneral.prototype['protection_key'] = undefined; +/** + * @member {String} status + */ + +MigrationGeneral.prototype['status'] = undefined; +/** + * @member {String} type */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.encodeRequest = encodeRequest; -exports.decodeResponse = decodeResponse; -// proto-over-HTTP request encoding and decoding -const serializer = __nccwpck_require__(65913); -const fallback_1 = __nccwpck_require__(9592); -const googleError_1 = __nccwpck_require__(34775); -const transcoding_1 = __nccwpck_require__(976); -function encodeRequest(rpc, protocol, servicePath, servicePort, request, numericEnums) { - const headers = { - 'Content-Type': 'application/json', - }; - const message = rpc.resolvedRequestType.fromObject(request); - const json = serializer.toProto3JSON(message, { - numericEnums, - }); - if (!json) { - throw new Error(`Cannot send null request to RPC ${rpc.name}.`); - } - if (typeof json !== 'object' || Array.isArray(json)) { - throw new Error(`Request to RPC ${rpc.name} must be an object.`); - } - const transcoded = (0, transcoding_1.transcode)(json, rpc.parsedOptions); - if (!transcoded) { - throw new Error(`Cannot build HTTP request for ${JSON.stringify(json)}, method: ${rpc.name}`); - } - // If numeric enums feature is requested, add extra parameter to the query string - if (numericEnums) { - transcoded.queryString = - (transcoded.queryString ? `${transcoded.queryString}&` : '') + - '$alt=json%3Benum-encoding=int'; - } - // Converts httpMethod to method that permitted in standard Fetch API spec - // https://fetch.spec.whatwg.org/#methods - const method = transcoded.httpMethod.toUpperCase(); - const body = JSON.stringify(transcoded.data); - const url = `${protocol}://${servicePath}:${servicePort}/${transcoded.url.replace(/^\//, '')}?${transcoded.queryString}`; - return { - method, - url, - headers, - body, - }; -} -function decodeResponse(rpc, ok, response) { - // eslint-disable-next-line n/no-unsupported-features/node-builtins - const decodedString = new TextDecoder().decode(response); - if (!decodedString) { - throw new Error(`Received null response from RPC ${rpc.name}`); - } - const json = JSON.parse(decodedString); - if (!ok) { - const error = googleError_1.GoogleError.parseHttpError(json); - throw error; - } - const message = serializer.fromProto3JSON(rpc.resolvedResponseType, json); - if (!message) { - throw new Error(`Received null or malformed response from JSON serializer from RPC ${rpc.name}`); - } - return rpc.resolvedResponseType.toObject(message, fallback_1.defaultToObjectOptions); -} -//# sourceMappingURL=fallbackRest.js.map + +MigrationGeneral.prototype['type'] = undefined; +var _default = MigrationGeneral; +exports["default"] = _default; /***/ }), -/***/ 86477: +/***/ 84208: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * 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. + * The MigrationItems model module. + * @module model/MigrationItems + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.generateServiceStub = generateServiceStub; -/* global window */ -/* global AbortController */ -const node_fetch_1 = __nccwpck_require__(26705); -const abort_controller_1 = __nccwpck_require__(17413); -const featureDetection_1 = __nccwpck_require__(83515); -const streamArrayParser_1 = __nccwpck_require__(46690); -const stream_1 = __nccwpck_require__(2203); -function generateServiceStub(rpcs, protocol, servicePath, servicePort, authClient, requestEncoder, responseDecoder, numericEnums) { - const fetch = (0, featureDetection_1.hasWindowFetch)() - ? window.fetch - : node_fetch_1.default; - const serviceStub = { - // close method should close all cancel controllers. If this feature request in the future, we can have a cancelControllerFactory that tracks created cancel controllers, and abort them all in close method. - close: () => { - return { cancel: () => { } }; - }, - }; - for (const [rpcName, rpc] of Object.entries(rpcs)) { - serviceStub[rpcName] = (request, options, _metadata, callback) => { - options !== null && options !== void 0 ? options : (options = {}); - // We cannot use async-await in this function because we need to return the canceller object as soon as possible. - // Using plain old promises instead. - let fetchParameters; - try { - fetchParameters = requestEncoder(rpc, protocol, servicePath, servicePort, request, numericEnums); - } - catch (err) { - // we could not encode parameters; pass error to the callback - // and return a no-op canceler object. - if (callback) { - callback(err); - } - return { - cancel() { }, - }; - } - const cancelController = (0, featureDetection_1.hasAbortController)() - ? new AbortController() - : new abort_controller_1.AbortController(); - const cancelSignal = cancelController.signal; - let cancelRequested = false; - const url = fetchParameters.url; - const headers = fetchParameters.headers; - for (const key of Object.keys(options)) { - headers[key] = options[key][0]; - } - const streamArrayParser = new streamArrayParser_1.StreamArrayParser(rpc); - authClient - .getRequestHeaders() - .then(authHeader => { - const fetchRequest = { - headers: { - ...authHeader, - ...headers, - }, - body: fetchParameters.body, - method: fetchParameters.method, - signal: cancelSignal, - }; - if (fetchParameters.method === 'GET' || - fetchParameters.method === 'DELETE') { - delete fetchRequest['body']; - } - return fetch(url, fetchRequest); - }) - .then((response) => { - if (response.ok && rpc.responseStream) { - (0, stream_1.pipeline)(response.body, streamArrayParser, (err) => { - if (err && - (!cancelRequested || - (err instanceof Error && err.name !== 'AbortError'))) { - if (callback) { - callback(err); - } - streamArrayParser.emit('error', err); - } - }); - return; - } - else { - return Promise.all([ - Promise.resolve(response.ok), - response.arrayBuffer(), - ]) - .then(([ok, buffer]) => { - const response = responseDecoder(rpc, ok, buffer); - callback(null, response); - }) - .catch((err) => { - if (!cancelRequested || err.name !== 'AbortError') { - if (rpc.responseStream) { - if (callback) { - callback(err); - } - streamArrayParser.emit('error', err); - } - else if (callback) { - callback(err); - } - else { - throw err; - } - } - }); - } - }) - .catch((err) => { - if (rpc.responseStream) { - if (callback) { - callback(err); - } - streamArrayParser.emit('error', err); - } - else if (callback) { - callback(err); - } - else { - throw err; - } - }); - if (rpc.responseStream) { - return streamArrayParser; - } - return { - cancel: () => { - cancelRequested = true; - cancelController.abort(); - }, - }; - }; +var MigrationItems = /*#__PURE__*/function () { + /** + * Constructs a new MigrationItems. + * @alias module:model/MigrationItems + */ + function MigrationItems() { + _classCallCheck(this, MigrationItems); + + MigrationItems.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(MigrationItems, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a MigrationItems from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MigrationItems} obj Optional instance to populate. + * @return {module:model/MigrationItems} The populated MigrationItems instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MigrationItems(); + + if (data.hasOwnProperty('failed')) { + obj['failed'] = _ApiClient["default"].convertToType(data['failed'], 'Number'); + } + + if (data.hasOwnProperty('migrated')) { + obj['migrated'] = _ApiClient["default"].convertToType(data['migrated'], 'Number'); + } + + if (data.hasOwnProperty('skipped')) { + obj['skipped'] = _ApiClient["default"].convertToType(data['skipped'], 'Number'); + } + + if (data.hasOwnProperty('total')) { + obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number'); + } + + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Number'); + } + } + + return obj; } - return serviceStub; -} -//# sourceMappingURL=fallbackServiceStub.js.map + }]); -/***/ }), + return MigrationItems; +}(); +/** + * @member {Number} failed + */ -/***/ 83515: -/***/ ((__unused_webpack_module, exports) => { -"use strict"; +MigrationItems.prototype['failed'] = undefined; +/** + * @member {Number} migrated + */ +MigrationItems.prototype['migrated'] = undefined; /** - * 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. + * @member {Number} skipped + */ + +MigrationItems.prototype['skipped'] = undefined; +/** + * @member {Number} total */ -var _a; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.hasWindowFetch = hasWindowFetch; -exports.isNodeJS = isNodeJS; -exports.hasAbortController = hasAbortController; -/* global window */ -const features = { - windowFetch: typeof window !== 'undefined' && - (window === null || window === void 0 ? void 0 : window.fetch) && - typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function', - // eslint-disable-next-line n/no-unsupported-features/node-builtins - textEncoder: typeof TextEncoder !== 'undefined', - // eslint-disable-next-line n/no-unsupported-features/node-builtins - textDecoder: typeof TextDecoder !== 'undefined', - nodeJS: typeof process !== 'undefined' && ((_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node), - abortController: typeof AbortController !== 'undefined', -}; -function hasWindowFetch() { - return features.windowFetch; -} -function isNodeJS() { - return features.nodeJS; -} -function hasAbortController() { - return features.abortController; -} -//# sourceMappingURL=featureDetection.js.map + +MigrationItems.prototype['total'] = undefined; +/** + * @member {Number} updated + */ + +MigrationItems.prototype['updated'] = undefined; +var _default = MigrationItems; +exports["default"] = _default; /***/ }), -/***/ 4996: +/***/ 97664: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * The MigrationStatus model module. + * @module model/MigrationStatus + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CallSettings = exports.RetryOptions = void 0; -exports.convertRetryOptions = convertRetryOptions; -exports.createRetryOptions = createRetryOptions; -exports.createBackoffSettings = createBackoffSettings; -exports.createDefaultBackoffSettings = createDefaultBackoffSettings; -exports.createMaxRetriesBackoffSettings = createMaxRetriesBackoffSettings; -exports.createBundleOptions = createBundleOptions; -exports.constructSettings = constructSettings; -exports.createByteLengthFunction = createByteLengthFunction; -const warnings_1 = __nccwpck_require__(25531); -const util_1 = __nccwpck_require__(24938); -const status_1 = __nccwpck_require__(69124); +var MigrationStatus = /*#__PURE__*/function () { + /** + * Constructs a new MigrationStatus. + * @alias module:model/MigrationStatus + */ + function MigrationStatus() { + _classCallCheck(this, MigrationStatus); + + MigrationStatus.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(MigrationStatus, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a MigrationStatus from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MigrationStatus} obj Optional instance to populate. + * @return {module:model/MigrationStatus} The populated MigrationStatus instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MigrationStatus(); + + if (data.hasOwnProperty('last_messages')) { + obj['last_messages'] = _ApiClient["default"].convertToType(data['last_messages'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('last_reports')) { + obj['last_reports'] = _ApiClient["default"].convertToType(data['last_reports'], { + 'String': 'String' + }); + } + + if (data.hasOwnProperty('last_statuses')) { + obj['last_statuses'] = _ApiClient["default"].convertToType(data['last_statuses'], { + 'String': 'String' + }); + } + } + + return obj; + } + }]); + + return MigrationStatus; +}(); +/** + * @member {Object.} last_messages + */ + + +MigrationStatus.prototype['last_messages'] = undefined; +/** + * @member {Object.} last_reports + */ + +MigrationStatus.prototype['last_reports'] = undefined; /** - * Encapsulates the overridable settings for a particular API call. - * - * ``CallOptions`` is an optional arg for all GAX API calls. It is used to - * configure the settings of a specific API call. - * - * When provided, its values override the GAX service defaults for that - * particular call. - * - * Typically the API clients will accept this as the second to the last - * argument. See the examples below. - * @typedef {Object} CallOptions - * @property {number=} timeout - The client-side timeout for API calls. - * @property {RetryOptions=} retry - determines whether and how to retry - * on transient errors. When set to null, the call will not retry. - * @property {boolean=} autoPaginate - If set to false and the call is - * configured for paged iteration, page unrolling is not performed, instead - * the callback will be called with the response object. - * @property {Object=} pageToken - If set and the call is configured for - * paged iteration, paged iteration is not performed and requested with this - * pageToken. - * @property {number} maxResults - If set and the call is configured for - * paged iteration, the call will stop when the number of response elements - * reaches to the specified size. By default, it will unroll the page to - * the end of the list. - * @property {boolean=} isBundling - If set to false and the call is configured - * for bundling, bundling is not performed. - * @property {BackoffSettings=} longrunning - BackoffSettings used for polling. - * @example - * // suppress bundling for bundled method. - * api.bundlingMethod( - * param, {optParam: aValue, isBundling: false}, function(err, response) { - * // handle response. - * }); - * @example - * // suppress streaming for page-streaming method. - * api.pageStreamingMethod( - * param, {optParam: aValue, autoPaginate: false}, function(err, page) { - * // not returning a stream, but callback is called with the paged response. - * }); + * @member {Object.} last_statuses */ + +MigrationStatus.prototype['last_statuses'] = undefined; +var _default = MigrationStatus; +exports["default"] = _default; + +/***/ }), + +/***/ 95821: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _MigrationItems = _interopRequireDefault(__nccwpck_require__(84208)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Per-call configurable settings for retrying upon transient failure. - * @implements {RetryOptionsType} - * @typedef {Object} RetryOptions - * @property {number[]} retryCodes - * @property {BackoffSettings} backoffSettings - * @property {(function)} shouldRetryFn - * @property {(function)} getResumptionRequestFn + * The MigrationStatusReplyObj model module. + * @module model/MigrationStatusReplyObj + * @version 3.6.3 */ -class RetryOptions { - constructor(retryCodes, backoffSettings, shouldRetryFn, getResumptionRequestFn) { - this.retryCodes = retryCodes; - this.backoffSettings = backoffSettings; - this.shouldRetryFn = shouldRetryFn; - this.getResumptionRequestFn = getResumptionRequestFn; - } -} -exports.RetryOptions = RetryOptions; -class CallSettings { - /** - * @param {Object} settings - An object containing parameters of this settings. - * @param {number} settings.timeout - The client-side timeout for API calls. - * This parameter is ignored for retrying calls. - * @param {RetryOptions} settings.retry - The configuration for retrying upon - * transient error. If set to null, this call will not retry. - * @param {boolean} settings.autoPaginate - If there is no `pageDescriptor`, - * this attrbute has no meaning. Otherwise, determines whether a page - * streamed response should make the page structure transparent to the user by - * flattening the repeated field in the returned generator. - * @param {number} settings.pageToken - If there is no `pageDescriptor`, - * this attribute has no meaning. Otherwise, determines the page token used - * in the page streaming request. - * @param {Object} settings.otherArgs - Additional arguments to be passed to - * the API calls. - * - * @constructor - */ - constructor(settings) { - var _a; - settings = settings || {}; - this.timeout = settings.timeout || 30 * 1000; - this.retry = settings.retry; - this.autoPaginate = - 'autoPaginate' in settings ? settings.autoPaginate : true; - this.maxResults = settings.maxResults; - this.otherArgs = settings.otherArgs || {}; - this.bundleOptions = settings.bundleOptions; - this.isBundling = 'isBundling' in settings ? settings.isBundling : true; - this.longrunning = - 'longrunning' in settings ? settings.longrunning : undefined; - this.apiName = (_a = settings.apiName) !== null && _a !== void 0 ? _a : undefined; - this.retryRequestOptions = settings.retryRequestOptions; - } +var MigrationStatusReplyObj = /*#__PURE__*/function () { + /** + * Constructs a new MigrationStatusReplyObj. + * @alias module:model/MigrationStatusReplyObj + */ + function MigrationStatusReplyObj() { + _classCallCheck(this, MigrationStatusReplyObj); + + MigrationStatusReplyObj.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(MigrationStatusReplyObj, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Returns a new CallSettings merged from this and a CallOptions object. - * - * @param {CallOptions} options - an instance whose values override - * those in this object. If null, ``merge`` returns a copy of this - * object - * @return {CallSettings} The merged CallSettings instance. + * Constructs a MigrationStatusReplyObj from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MigrationStatusReplyObj} obj Optional instance to populate. + * @return {module:model/MigrationStatusReplyObj} The populated MigrationStatusReplyObj instance. */ - merge(options) { - if (!options) { - return new CallSettings(this); - } - let timeout = this.timeout; - let retry = this.retry; - let autoPaginate = this.autoPaginate; - let maxResults = this.maxResults; - let otherArgs = this.otherArgs; - let isBundling = this.isBundling; - let longrunning = this.longrunning; - let apiName = this.apiName; - let retryRequestOptions = this.retryRequestOptions; - // If the user provides a timeout to the method, that timeout value will be used - // to override the backoff settings. - if ('timeout' in options) { - timeout = options.timeout; - } - // If a method-specific timeout is set in the service config, and the retry codes for that - // method are non-null, then that timeout value will be used to - // override backoff settings. - if (retry === null || retry === void 0 ? void 0 : retry.retryCodes) { - retry.backoffSettings.initialRpcTimeoutMillis = timeout; - retry.backoffSettings.maxRpcTimeoutMillis = timeout; - retry.backoffSettings.totalTimeoutMillis = timeout; - } - if ('retry' in options) { - retry = mergeRetryOptions(retry || {}, options.retry); - } - if ('autoPaginate' in options && !options.autoPaginate) { - autoPaginate = false; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MigrationStatusReplyObj(); + + if (data.hasOwnProperty('computers')) { + obj['computers'] = _ApiClient["default"].convertToType(data['computers'], 'Number'); } - if ('maxResults' in options) { - maxResults = options.maxResults; + + if (data.hasOwnProperty('duration_time')) { + obj['duration_time'] = _ApiClient["default"].convertToType(data['duration_time'], 'String'); } - if ('otherArgs' in options) { - otherArgs = {}; - for (const key in this.otherArgs) { - otherArgs[key] = this.otherArgs[key]; - } - for (const optionsKey in options.otherArgs) { - otherArgs[optionsKey] = options.otherArgs[optionsKey]; - } + + if (data.hasOwnProperty('error')) { + obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String'); } - if ('isBundling' in options) { - isBundling = options.isBundling; + + if (data.hasOwnProperty('last_status_message')) { + obj['last_status_message'] = _ApiClient["default"].convertToType(data['last_status_message'], 'String'); } - if ('maxRetries' in options && options.maxRetries !== undefined) { - retry.backoffSettings.maxRetries = options.maxRetries; - delete retry.backoffSettings.totalTimeoutMillis; + + if (data.hasOwnProperty('max_name_length')) { + obj['max_name_length'] = _ApiClient["default"].convertToType(data['max_name_length'], 'Number'); } - if ('longrunning' in options) { - longrunning = options.longrunning; + + if (data.hasOwnProperty('max_value_length')) { + obj['max_value_length'] = _ApiClient["default"].convertToType(data['max_value_length'], 'Number'); } - if ('apiName' in options) { - apiName = options.apiName; + + if (data.hasOwnProperty('migration_id')) { + obj['migration_id'] = _ApiClient["default"].convertToType(data['migration_id'], 'String'); } - if ('retryRequestOptions' in options) { - retryRequestOptions = options.retryRequestOptions; + + if (data.hasOwnProperty('migration_items')) { + obj['migration_items'] = _MigrationItems["default"].constructFromObject(data['migration_items']); } - return new CallSettings({ - timeout, - retry, - bundleOptions: this.bundleOptions, - longrunning, - autoPaginate, - maxResults, - otherArgs, - isBundling, - apiName, - retryRequestOptions, - }); - } -} -exports.CallSettings = CallSettings; -/** - * Validates passed retry options in preparation for eventual parameter deprecation - * converts retryRequestOptions to retryOptions - * then sets retryRequestOptions to null - * - * @param {CallOptions} options - a list of passed retry option - * @return {CallOptions} A new CallOptions object. - * - */ -function convertRetryOptions(options, gaxStreamingRetries) { - var _a, _b, _c, _d; - // options will be undefined if no CallOptions object is passed at call time - if (!options) { - return options; - } - // if a user provided retry AND retryRequestOptions at call time, throw an error - // otherwise, convert supported parameters - if (!gaxStreamingRetries) { - return options; - } - if (options.retry && options.retryRequestOptions) { - throw new Error('Only one of retry or retryRequestOptions may be set'); - } // handles parameter conversion from retryRequestOptions to retryOptions - if (options.retryRequestOptions) { - if (options.retryRequestOptions.objectMode !== undefined) { - (0, warnings_1.warn)('retry_request_options', 'objectMode override is not supported. It is set to true internally by default in gax.', 'UnsupportedParameterWarning'); + + if (data.hasOwnProperty('migration_name')) { + obj['migration_name'] = _ApiClient["default"].convertToType(data['migration_name'], 'String'); } - if (options.retryRequestOptions.noResponseRetries !== undefined) { - (0, warnings_1.warn)('retry_request_options', 'noResponseRetries override is not supported. Please specify retry codes or a function to determine retry eligibility.', 'UnsupportedParameterWarning'); + + if (data.hasOwnProperty('migration_state')) { + obj['migration_state'] = _ApiClient["default"].convertToType(data['migration_state'], 'String'); } - if (options.retryRequestOptions.currentRetryAttempt !== undefined) { - (0, warnings_1.warn)('retry_request_options', 'currentRetryAttempt override is not supported. Retry attempts are tracked internally.', 'UnsupportedParameterWarning'); + + if (data.hasOwnProperty('migration_type')) { + obj['migration_type'] = _ApiClient["default"].convertToType(data['migration_type'], 'String'); } - let retryCodes = [status_1.Status.UNAVAILABLE]; - let shouldRetryFn; - if (options.retryRequestOptions.shouldRetryFn) { - retryCodes = []; - shouldRetryFn = options.retryRequestOptions.shouldRetryFn; + + if (data.hasOwnProperty('migration_type_name')) { + obj['migration_type_name'] = _ApiClient["default"].convertToType(data['migration_type_name'], 'String'); } - //Backoff settings - options.maxRetries = - (_b = (_a = options === null || options === void 0 ? void 0 : options.retryRequestOptions) === null || _a === void 0 ? void 0 : _a.retries) !== null && _b !== void 0 ? _b : options.maxRetries; - // create a default backoff settings object in case the user didn't provide overrides for everything - const backoffSettings = createDefaultBackoffSettings(); - let maxRetryDelayMillis; - let totalTimeoutMillis; - // maxRetryDelay - this is in seconds, need to convert to milliseconds - if (options.retryRequestOptions.maxRetryDelay !== undefined) { - maxRetryDelayMillis = options.retryRequestOptions.maxRetryDelay * 1000; + + if (data.hasOwnProperty('rotated_secrets')) { + obj['rotated_secrets'] = _MigrationItems["default"].constructFromObject(data['rotated_secrets']); } - // retryDelayMultiplier - should be a one to one mapping to retryDelayMultiplier - const retryDelayMultiplier = (_d = (_c = options === null || options === void 0 ? void 0 : options.retryRequestOptions) === null || _c === void 0 ? void 0 : _c.retryDelayMultiplier) !== null && _d !== void 0 ? _d : backoffSettings.retryDelayMultiplier; - // this is in seconds and needs to be converted to milliseconds and the totalTimeoutMillis parameter - if (options.retryRequestOptions.totalTimeout !== undefined) { - totalTimeoutMillis = options.retryRequestOptions.totalTimeout * 1000; + + if (data.hasOwnProperty('start_time')) { + obj['start_time'] = _ApiClient["default"].convertToType(data['start_time'], 'String'); } - else { - if (options.maxRetries === undefined) { - totalTimeoutMillis = 30000; - (0, warnings_1.warn)('retry_request_options_no_max_retries_timeout', 'Neither maxRetries nor totalTimeout were passed. Defaulting to totalTimeout of 30000ms.', 'MissingParameterWarning'); - } + + if (data.hasOwnProperty('targets')) { + obj['targets'] = _MigrationItems["default"].constructFromObject(data['targets']); } - // for the variables the user wants to override, override in the backoff settings object we made - backoffSettings.maxRetryDelayMillis = - maxRetryDelayMillis !== null && maxRetryDelayMillis !== void 0 ? maxRetryDelayMillis : backoffSettings.maxRetryDelayMillis; - backoffSettings.retryDelayMultiplier = - retryDelayMultiplier !== null && retryDelayMultiplier !== void 0 ? retryDelayMultiplier : backoffSettings.retryDelayMultiplier; - backoffSettings.totalTimeoutMillis = - totalTimeoutMillis !== null && totalTimeoutMillis !== void 0 ? totalTimeoutMillis : backoffSettings.totalTimeoutMillis; - const convertedRetryOptions = createRetryOptions(retryCodes, backoffSettings, shouldRetryFn); - options.retry = convertedRetryOptions; - delete options.retryRequestOptions; // completely remove them to avoid any further confusion - (0, warnings_1.warn)('retry_request_options', 'retryRequestOptions will be deprecated in a future release. Please use retryOptions to pass retry options at call time', 'DeprecationWarning'); + } + + return obj; } - return options; -} + }]); + + return MigrationStatusReplyObj; +}(); /** - * Per-call configurable settings for retrying upon transient failure. - * @param {number[]} retryCodes - a list of Google API canonical error codes OR a function that returns a boolean to determine retry behavior - * upon which a retry should be attempted. - * @param {BackoffSettings} backoffSettings - configures the retry - * exponential backoff algorithm. - * @param {function} shouldRetryFn - a function that determines whether a call should retry. If this is defined retryCodes must be empty - * @param {function} getResumptionRequestFn - a function with a resumption strategy - only used with server streaming retries - * @return {RetryOptions} A new RetryOptions object. - * + * @member {Number} computers */ -function createRetryOptions(retryCodes, backoffSettings, shouldRetryFn, getResumptionRequestFn) { - return { - retryCodes, - backoffSettings, - shouldRetryFn, - getResumptionRequestFn, - }; -} + + +MigrationStatusReplyObj.prototype['computers'] = undefined; /** - * Parameters to the exponential backoff algorithm for retrying. - * - * @param {number} initialRetryDelayMillis - the initial delay time, - * in milliseconds, between the completion of the first failed request and the - * initiation of the first retrying request. - * @param {number} retryDelayMultiplier - the multiplier by which to - * increase the delay time between the completion of failed requests, and the - * initiation of the subsequent retrying request. - * @param {number} maxRetryDelayMillis - the maximum delay time, in - * milliseconds, between requests. When this value is reached, - * ``retryDelayMultiplier`` will no longer be used to increase delay time. - * @param {number} initialRpcTimeoutMillis - the initial timeout parameter - * to the request. - * @param {number} rpcTimeoutMultiplier - the multiplier by which to - * increase the timeout parameter between failed requests. - * @param {number} maxRpcTimeoutMillis - the maximum timeout parameter, in - * milliseconds, for a request. When this value is reached, - * ``rpcTimeoutMultiplier`` will no longer be used to increase the timeout. - * @param {number} totalTimeoutMillis - the total time, in milliseconds, - * starting from when the initial request is sent, after which an error will - * be returned, regardless of the retrying attempts made meanwhile. - * @return {BackoffSettings} a new settings. - * + * @member {String} duration_time */ -function createBackoffSettings(initialRetryDelayMillis, retryDelayMultiplier, maxRetryDelayMillis, initialRpcTimeoutMillis, rpcTimeoutMultiplier, maxRpcTimeoutMillis, totalTimeoutMillis) { - return { - initialRetryDelayMillis, - retryDelayMultiplier, - maxRetryDelayMillis, - initialRpcTimeoutMillis, - rpcTimeoutMultiplier, - maxRpcTimeoutMillis, - totalTimeoutMillis, - }; -} -function createDefaultBackoffSettings() { - return createBackoffSettings(100, 1.3, 60000, null, null, null, null); -} + +MigrationStatusReplyObj.prototype['duration_time'] = undefined; /** - * Parameters to the exponential backoff algorithm for retrying. - * This function is unsupported, and intended for internal use only. - * - * @param {number} initialRetryDelayMillis - the initial delay time, - * in milliseconds, between the completion of the first failed request and the - * initiation of the first retrying request. - * @param {number} retryDelayMultiplier - the multiplier by which to - * increase the delay time between the completion of failed requests, and the - * initiation of the subsequent retrying request. - * @param {number} maxRetryDelayMillis - the maximum delay time, in - * milliseconds, between requests. When this value is reached, - * ``retryDelayMultiplier`` will no longer be used to increase delay time. - * @param {number} initialRpcTimeoutMillis - the initial timeout parameter - * to the request. - * @param {number} rpcTimeoutMultiplier - the multiplier by which to - * increase the timeout parameter between failed requests. - * @param {number} maxRpcTimeoutMillis - the maximum timeout parameter, in - * milliseconds, for a request. When this value is reached, - * ``rpcTimeoutMultiplier`` will no longer be used to increase the timeout. - * @param {number} maxRetries - the maximum number of retrying attempts that - * will be made. If reached, an error will be returned. - * @return {BackoffSettings} a new settings. - * + * @member {String} error */ -function createMaxRetriesBackoffSettings(initialRetryDelayMillis, retryDelayMultiplier, maxRetryDelayMillis, initialRpcTimeoutMillis, rpcTimeoutMultiplier, maxRpcTimeoutMillis, maxRetries) { - return { - initialRetryDelayMillis, - retryDelayMultiplier, - maxRetryDelayMillis, - initialRpcTimeoutMillis, - rpcTimeoutMultiplier, - maxRpcTimeoutMillis, - maxRetries, - }; -} + +MigrationStatusReplyObj.prototype['error'] = undefined; /** - * Creates a new {@link BundleOptions}. - * - * @private - * @param {Object} options - An object to hold optional parameters. See - * properties for the content of options. - * @return {BundleOptions} - A new options. + * @member {String} last_status_message */ -function createBundleOptions(options) { - const params = [ - 'element_count_threshold', - 'element_count_limit', - 'request_byte_threshold', - 'request_byte_limit', - 'delay_threshold_millis', - ]; - params.forEach(param => { - if (param in options && typeof options[param] !== 'number') { - throw new Error(`${param} should be a number`); - } - }); - const elementCountThreshold = options.element_count_threshold || 0; - const elementCountLimit = options.element_count_limit || 0; - const requestByteThreshold = options.request_byte_threshold || 0; - const requestByteLimit = options.request_byte_limit || 0; - const delayThreshold = options.delay_threshold_millis || 0; - if (elementCountThreshold === 0 && - requestByteThreshold === 0 && - delayThreshold === 0) { - throw new Error('one threshold should be > 0'); - } - return { - elementCountThreshold, - elementCountLimit, - requestByteThreshold, - requestByteLimit, - delayThreshold, - }; -} + +MigrationStatusReplyObj.prototype['last_status_message'] = undefined; /** - * Helper for {@link constructSettings} - * - * @private - * - * @param {Object} methodConfig - A dictionary representing a single - * `methods` entry of the standard API client config file. (See - * {@link constructSettings} for information on this yaml.) - * @param {?Object} retryCodes - A dictionary parsed from the - * `retry_codes_def` entry of the standard API client config - * file. (See {@link constructSettings} for information on this yaml.) - * @param {Object} retryParams - A dictionary parsed from the - * `retry_params` entry of the standard API client config - * file. (See {@link constructSettings} for information on this yaml.) - * @param {Object} retryNames - A dictionary mapping the string names - * used in the standard API client config file to API response - * status codes. - * @return {?RetryOptions} The new retry options. + * @member {Number} max_name_length */ -function constructRetry(methodConfig, retryCodes, retryParams, retryNames) { - if (!methodConfig) { - return null; - } - let codes = null; // this is one instance where it will NOT be an array OR a function because we do not allow shouldRetryFn in the client - if (retryCodes && 'retry_codes_name' in methodConfig) { - const retryCodesName = methodConfig['retry_codes_name']; - codes = (retryCodes[retryCodesName] || []).map(name => { - return Number(retryNames[name]); - }); - } - let backoffSettings = null; - if (retryParams && 'retry_params_name' in methodConfig) { - const params = retryParams[methodConfig.retry_params_name]; - backoffSettings = createBackoffSettings(params.initial_retry_delay_millis, params.retry_delay_multiplier, params.max_retry_delay_millis, params.initial_rpc_timeout_millis, params.rpc_timeout_multiplier, params.max_rpc_timeout_millis, params.total_timeout_millis); - } - return createRetryOptions(codes, backoffSettings); -} + +MigrationStatusReplyObj.prototype['max_name_length'] = undefined; /** - * Helper for {@link constructSettings} - * - * Takes two retry options, and merges them into a single RetryOption instance. - * - * @private - * - * @param {RetryOptions} retry - The base RetryOptions. - * @param {RetryOptions} overrides - The RetryOptions used for overriding - * `retry`. Use the values if it is not null. If entire `overrides` is null, - * ignore the base retry and return null. - * @return {?RetryOptions} The merged RetryOptions. + * @member {Number} max_value_length */ -function mergeRetryOptions(retry, overrides) { - if (!overrides) { - return null; - } - if (!overrides.retryCodes && - !overrides.backoffSettings && - !overrides.shouldRetryFn && - !overrides.getResumptionRequestFn) { - return retry; - } - const retryCodes = overrides.retryCodes - ? overrides.retryCodes - : retry.retryCodes; - const backoffSettings = overrides.backoffSettings - ? overrides.backoffSettings - : retry.backoffSettings; - const shouldRetryFn = overrides.shouldRetryFn - ? overrides.shouldRetryFn - : retry.shouldRetryFn; - const getResumptionRequestFn = overrides.getResumptionRequestFn - ? overrides.getResumptionRequestFn - : retry.getResumptionRequestFn; - return createRetryOptions(retryCodes, backoffSettings, shouldRetryFn, getResumptionRequestFn); -} + +MigrationStatusReplyObj.prototype['max_value_length'] = undefined; /** - * Constructs a dictionary mapping method names to {@link CallSettings}. - * - * The `clientConfig` parameter is parsed from a client configuration JSON - * file of the form: - * - * { - * "interfaces": { - * "google.fake.v1.ServiceName": { - * "retry_codes": { - * "idempotent": ["UNAVAILABLE", "DEADLINE_EXCEEDED"], - * "non_idempotent": [] - * }, - * "retry_params": { - * "default": { - * "initial_retry_delay_millis": 100, - * "retry_delay_multiplier": 1.2, - * "max_retry_delay_millis": 1000, - * "initial_rpc_timeout_millis": 2000, - * "rpc_timeout_multiplier": 1.5, - * "max_rpc_timeout_millis": 30000, - * "total_timeout_millis": 45000 - * } - * }, - * "methods": { - * "CreateFoo": { - * "retry_codes_name": "idempotent", - * "retry_params_name": "default" - * }, - * "Publish": { - * "retry_codes_name": "non_idempotent", - * "retry_params_name": "default", - * "bundling": { - * "element_count_threshold": 40, - * "element_count_limit": 200, - * "request_byte_threshold": 90000, - * "request_byte_limit": 100000, - * "delay_threshold_millis": 100 - * } - * } - * } - * } - * } - * } - * - * @param {String} serviceName - The fully-qualified name of this - * service, used as a key into the client config file (in the - * example above, this value should be 'google.fake.v1.ServiceName'). - * @param {Object} clientConfig - A dictionary parsed from the - * standard API client config file. - * @param {Object} configOverrides - A dictionary in the same structure of - * client_config to override the settings. - * @param {Object.} retryNames - A dictionary mapping the strings - * referring to response status codes to objects representing - * those codes. - * @param {Object} otherArgs - the non-request arguments to be passed to the API - * calls. - * @return {Object} A mapping from method name to CallSettings, or null if the - * service is not found in the config. + * @member {String} migration_id */ -function constructSettings(serviceName, clientConfig, configOverrides, retryNames, otherArgs) { - otherArgs = otherArgs || {}; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const defaults = {}; - const serviceConfig = (clientConfig.interfaces || {})[serviceName]; - if (!serviceConfig) { - return null; - } - // users can override the config from client side, like bundling options. - // The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/main/src/gax.ts#L546 - // The way to override bundling options: - // - // const customConfig = {"interfaces": {"service": {"methods": {"methodName": {"bundling": {..}}}}}} - // const client = new Client({ projectId, customConfig }); - const overrides = (configOverrides.interfaces || {})[serviceName] || {}; - const methods = serviceConfig.methods; - const overridingMethods = overrides.methods || {}; - for (const methodName in methods) { - const methodConfig = methods[methodName]; - const jsName = (0, util_1.toLowerCamelCase)(methodName); - let retry = constructRetry(methodConfig, serviceConfig.retry_codes, serviceConfig.retry_params, retryNames); - let bundlingConfig = methodConfig.bundling; - let timeout = methodConfig.timeout_millis; - if (methodName in overridingMethods) { - const overridingMethod = overridingMethods[methodName]; - if (overridingMethod) { - if ('bundling' in overridingMethod) { - bundlingConfig = overridingMethod.bundling; - } - if ('timeout_millis' in overridingMethod) { - timeout = overridingMethod.timeout_millis; - } - } - retry = mergeRetryOptions(retry, constructRetry(overridingMethod, overrides.retry_codes, overrides.retry_params, retryNames)); - } - const apiName = serviceName; - defaults[jsName] = new CallSettings({ - timeout, - retry, - bundleOptions: bundlingConfig - ? createBundleOptions(bundlingConfig) - : null, - otherArgs, - apiName, - }); - } - return defaults; -} -function createByteLengthFunction(message) { - return function getByteLength(obj) { - try { - return message.encode(obj).finish().length; - } - catch (err) { - const stringified = JSON.stringify(obj); - (0, warnings_1.warn)('error_encoding_protobufjs_object', `Cannot encode protobuf.js object: ${stringified}: ${err}`); - // We failed to encode the object properly, let's just return an upper boundary of its length. - // It's only needed for calculating the size of the batch, so it's safe if it's bigger than needed. - return stringified.length; - } - }; -} -//# sourceMappingURL=gax.js.map + +MigrationStatusReplyObj.prototype['migration_id'] = undefined; +/** + * @member {module:model/MigrationItems} migration_items + */ + +MigrationStatusReplyObj.prototype['migration_items'] = undefined; +/** + * @member {String} migration_name + */ + +MigrationStatusReplyObj.prototype['migration_name'] = undefined; +/** + * @member {String} migration_state + */ + +MigrationStatusReplyObj.prototype['migration_state'] = undefined; +/** + * @member {String} migration_type + */ + +MigrationStatusReplyObj.prototype['migration_type'] = undefined; +/** + * @member {String} migration_type_name + */ + +MigrationStatusReplyObj.prototype['migration_type_name'] = undefined; +/** + * @member {module:model/MigrationItems} rotated_secrets + */ + +MigrationStatusReplyObj.prototype['rotated_secrets'] = undefined; +/** + * @member {String} start_time + */ + +MigrationStatusReplyObj.prototype['start_time'] = undefined; +/** + * @member {module:model/MigrationItems} targets + */ + +MigrationStatusReplyObj.prototype['targets'] = undefined; +var _default = MigrationStatusReplyObj; +exports["default"] = _default; /***/ }), -/***/ 34775: +/***/ 66135: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * The MigrationsConfigLastChange model module. + * @module model/MigrationsConfigLastChange + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GoogleErrorDecoder = exports.GoogleError = void 0; -const status_1 = __nccwpck_require__(69124); -const protobuf = __nccwpck_require__(23928); -const serializer = __nccwpck_require__(65913); -const fallback_1 = __nccwpck_require__(9592); -class GoogleError extends Error { - // Parse details field in google.rpc.status wire over gRPC medatadata. - // Promote google.rpc.ErrorInfo if exist. - static parseGRPCStatusDetails(err) { - const decoder = new GoogleErrorDecoder(); - try { - if (err.metadata && err.metadata.get('grpc-status-details-bin')) { - const statusDetailsObj = decoder.decodeGRPCStatusDetails(err.metadata.get('grpc-status-details-bin')); - if (statusDetailsObj && - statusDetailsObj.details && - statusDetailsObj.details.length > 0) { - err.statusDetails = statusDetailsObj.details; - } - if (statusDetailsObj && statusDetailsObj.errorInfo) { - err.reason = statusDetailsObj.errorInfo.reason; - err.domain = statusDetailsObj.errorInfo.domain; - err.errorInfoMetadata = statusDetailsObj.errorInfo.metadata; - } - } +var MigrationsConfigLastChange = /*#__PURE__*/function () { + /** + * Constructs a new MigrationsConfigLastChange. + * @alias module:model/MigrationsConfigLastChange + */ + function MigrationsConfigLastChange() { + _classCallCheck(this, MigrationsConfigLastChange); + + MigrationsConfigLastChange.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(MigrationsConfigLastChange, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a MigrationsConfigLastChange from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MigrationsConfigLastChange} obj Optional instance to populate. + * @return {module:model/MigrationsConfigLastChange} The populated MigrationsConfigLastChange instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MigrationsConfigLastChange(); + + if (data.hasOwnProperty('changed_migrations')) { + obj['changed_migrations'] = _ApiClient["default"].convertToType(data['changed_migrations'], ['String']); } - catch (decodeErr) { - // ignoring the error + + if (data.hasOwnProperty('created_migrations')) { + obj['created_migrations'] = _ApiClient["default"].convertToType(data['created_migrations'], ['String']); } - return err; - } - // Parse http JSON error and promote google.rpc.ErrorInfo if exist. - // eslint-disable-next-line @typescript-eslint/no-explicit-any - static parseHttpError(json) { - if (Array.isArray(json)) { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - json = json.find((obj) => { - return 'error' in obj; - }); + + if (data.hasOwnProperty('deleted_migrations')) { + obj['deleted_migrations'] = _ApiClient["default"].convertToType(data['deleted_migrations'], ['String']); } - // fallback logic. - // related issue: https://github.com/googleapis/gax-nodejs/issues/1303 - // google error mapping: https://cloud.google.com/apis/design/errors - // if input json doesn't have 'error' fields, wrap the whole object with 'error' field - if (!json['error']) { - json['error'] = {}; - Object.keys(json) - .filter(key => key !== 'error') - .forEach(key => { - json['error'][key] = json[key]; - delete json[key]; - }); + } + + return obj; + } + }]); + + return MigrationsConfigLastChange; +}(); +/** + * @member {Array.} changed_migrations + */ + + +MigrationsConfigLastChange.prototype['changed_migrations'] = undefined; +/** + * @member {Array.} created_migrations + */ + +MigrationsConfigLastChange.prototype['created_migrations'] = undefined; +/** + * @member {Array.} deleted_migrations + */ + +MigrationsConfigLastChange.prototype['deleted_migrations'] = undefined; +var _default = MigrationsConfigLastChange; +exports["default"] = _default; + +/***/ }), + +/***/ 27734: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _AWSSecretsMigration = _interopRequireDefault(__nccwpck_require__(10380)); + +var _ActiveDirectoryMigration = _interopRequireDefault(__nccwpck_require__(46703)); + +var _AzureKeyVaultMigration = _interopRequireDefault(__nccwpck_require__(15410)); + +var _GCPSecretsMigration = _interopRequireDefault(__nccwpck_require__(40859)); + +var _HashiMigration = _interopRequireDefault(__nccwpck_require__(16157)); + +var _K8SMigration = _interopRequireDefault(__nccwpck_require__(79488)); + +var _MockMigration = _interopRequireDefault(__nccwpck_require__(33516)); + +var _OnePasswordMigration = _interopRequireDefault(__nccwpck_require__(99171)); + +var _ServerInventoryMigration = _interopRequireDefault(__nccwpck_require__(75499)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The MigrationsConfigPart model module. + * @module model/MigrationsConfigPart + * @version 3.6.3 + */ +var MigrationsConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new MigrationsConfigPart. + * @alias module:model/MigrationsConfigPart + */ + function MigrationsConfigPart() { + _classCallCheck(this, MigrationsConfigPart); + + MigrationsConfigPart.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(MigrationsConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a MigrationsConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MigrationsConfigPart} obj Optional instance to populate. + * @return {module:model/MigrationsConfigPart} The populated MigrationsConfigPart instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MigrationsConfigPart(); + + if (data.hasOwnProperty('active_directory_migrations')) { + obj['active_directory_migrations'] = _ApiClient["default"].convertToType(data['active_directory_migrations'], [_ActiveDirectoryMigration["default"]]); } - const decoder = new GoogleErrorDecoder(); - const proto3Error = decoder.decodeHTTPError(json['error']); - const error = Object.assign(new GoogleError(json['error']['message']), proto3Error); - // Map Http Status Code to gRPC Status Code - if (json['error']['code']) { - error.code = (0, status_1.rpcCodeFromHttpStatusCode)(json['error']['code']); + + if (data.hasOwnProperty('aws_secrets_migrations')) { + obj['aws_secrets_migrations'] = _ApiClient["default"].convertToType(data['aws_secrets_migrations'], [_AWSSecretsMigration["default"]]); } - else { - // If error code is absent, proto3 message default value is 0. We should - // keep error code as undefined. - delete error.code; + + if (data.hasOwnProperty('azure_kv_migrations')) { + obj['azure_kv_migrations'] = _ApiClient["default"].convertToType(data['azure_kv_migrations'], [_AzureKeyVaultMigration["default"]]); } - // Keep consistency with gRPC statusDetails fields. gRPC details has been occupied before. - // Rename "details" to "statusDetails". - if (error.details) { - try { - const statusDetailsObj = decoder.decodeHttpStatusDetails(error.details); - if (statusDetailsObj && - statusDetailsObj.details && - statusDetailsObj.details.length > 0) { - error.statusDetails = statusDetailsObj.details; - } - if (statusDetailsObj && statusDetailsObj.errorInfo) { - error.reason = statusDetailsObj.errorInfo.reason; - error.domain = statusDetailsObj.errorInfo.domain; - // error.metadata has been occupied for gRPC metadata, so we use - // errorInfoMetadata to represent ErrorInfo' metadata field. Keep - // consistency with gRPC ErrorInfo metadata field name. - error.errorInfoMetadata = statusDetailsObj.errorInfo.metadata; - } - } - catch (decodeErr) { - // ignoring the error - } + + if (data.hasOwnProperty('gcp_secrets_migrations')) { + obj['gcp_secrets_migrations'] = _ApiClient["default"].convertToType(data['gcp_secrets_migrations'], [_GCPSecretsMigration["default"]]); } - return error; - } -} -exports.GoogleError = GoogleError; -class GoogleErrorDecoder { - constructor() { - // eslint-disable-next-line @typescript-eslint/no-var-requires - const errorProtoJson = __nccwpck_require__(64765); - this.root = protobuf.Root.fromJSON(errorProtoJson); - this.anyType = this.root.lookupType('google.protobuf.Any'); - this.statusType = this.root.lookupType('google.rpc.Status'); - } - decodeProtobufAny(anyValue) { - const match = anyValue.type_url.match(/^type.googleapis.com\/(.*)/); - if (!match) { - throw new Error(`Unknown type encoded in google.protobuf.any: ${anyValue.type_url}`); + + if (data.hasOwnProperty('hashi_migrations')) { + obj['hashi_migrations'] = _ApiClient["default"].convertToType(data['hashi_migrations'], [_HashiMigration["default"]]); } - const typeName = match[1]; - const type = this.root.lookupType(typeName); - if (!type) { - throw new Error(`Cannot lookup type ${typeName}`); + + if (data.hasOwnProperty('k8s_migrations')) { + obj['k8s_migrations'] = _ApiClient["default"].convertToType(data['k8s_migrations'], [_K8SMigration["default"]]); } - return type.decode(anyValue.value); - } - // Decodes gRPC-fallback error which is an instance of google.rpc.Status. - decodeRpcStatus(buffer) { - const uint8array = new Uint8Array(buffer); - const status = this.statusType.decode(uint8array); - // google.rpc.Status contains an array of google.protobuf.Any - // which need a special treatment - const details = []; - let errorInfo; - for (const detail of status.details) { - try { - const decodedDetail = this.decodeProtobufAny(detail); - details.push(decodedDetail); - if (detail.type_url === 'type.googleapis.com/google.rpc.ErrorInfo') { - errorInfo = decodedDetail; - } - } - catch (err) { - // cannot decode detail, likely because of the unknown type - just skip it - } + + if (data.hasOwnProperty('mock_migrations')) { + obj['mock_migrations'] = _ApiClient["default"].convertToType(data['mock_migrations'], [_MockMigration["default"]]); } - const result = { - code: status.code, - message: status.message, - statusDetails: details, - reason: errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.reason, - domain: errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.domain, - errorInfoMetadata: errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.metadata, - }; - return result; - } - // Construct an Error from a StatusObject. - // Adapted from https://github.com/grpc/grpc-node/blob/main/packages/grpc-js/src/call.ts#L79 - callErrorFromStatus(status) { - status.message = `${status.code} ${status_1.Status[status.code]}: ${status.message}`; - return Object.assign(new GoogleError(status.message), status); - } - // Decodes gRPC-fallback error which is an instance of google.rpc.Status, - // and puts it into the object similar to gRPC ServiceError object. - decodeErrorFromBuffer(buffer) { - return this.callErrorFromStatus(this.decodeRpcStatus(buffer)); - } - // Decodes gRPC metadata error details which is an instance of google.rpc.Status. - decodeGRPCStatusDetails(bufferArr) { - const details = []; - let errorInfo; - bufferArr.forEach(buffer => { - const uint8array = new Uint8Array(buffer); - const rpcStatus = this.statusType.decode(uint8array); - for (const detail of rpcStatus.details) { - try { - const decodedDetail = this.decodeProtobufAny(detail); - details.push(decodedDetail); - if (detail.type_url === 'type.googleapis.com/google.rpc.ErrorInfo') { - errorInfo = decodedDetail; - } - } - catch (err) { - // cannot decode detail, likely because of the unknown type - just skip it - } - } - }); - const result = { - details, - errorInfo, - }; - return result; - } - // Decodes http error which is an instance of google.rpc.Status. - decodeHTTPError(json) { - const errorMessage = serializer.fromProto3JSON(this.statusType, json); - if (!errorMessage) { - throw new Error(`Received error message ${json}, but failed to serialize as proto3 message`); + + if (data.hasOwnProperty('one_password_migrations')) { + obj['one_password_migrations'] = _ApiClient["default"].convertToType(data['one_password_migrations'], [_OnePasswordMigration["default"]]); } - return this.statusType.toObject(errorMessage, fallback_1.defaultToObjectOptions); - } - // Decodes http error details which is an instance of Array. - decodeHttpStatusDetails(rawDetails) { - // eslint-disable-next-line @typescript-eslint/no-unused-vars - const details = []; - let errorInfo; - for (const detail of rawDetails) { - try { - const decodedDetail = this.decodeProtobufAny(detail); - details.push(decodedDetail); - if (detail.type_url === 'type.googleapis.com/google.rpc.ErrorInfo') { - errorInfo = decodedDetail; - } - } - catch (err) { - // cannot decode detail, likely because of the unknown type - just skip it - } + + if (data.hasOwnProperty('server_inventory_migrations')) { + obj['server_inventory_migrations'] = _ApiClient["default"].convertToType(data['server_inventory_migrations'], [_ServerInventoryMigration["default"]]); } - return { details, errorInfo }; + } + + return obj; } -} -exports.GoogleErrorDecoder = GoogleErrorDecoder; -//# sourceMappingURL=googleError.js.map + }]); + + return MigrationsConfigPart; +}(); +/** + * @member {Array.} active_directory_migrations + */ + + +MigrationsConfigPart.prototype['active_directory_migrations'] = undefined; +/** + * @member {Array.} aws_secrets_migrations + */ + +MigrationsConfigPart.prototype['aws_secrets_migrations'] = undefined; +/** + * @member {Array.} azure_kv_migrations + */ + +MigrationsConfigPart.prototype['azure_kv_migrations'] = undefined; +/** + * @member {Array.} gcp_secrets_migrations + */ + +MigrationsConfigPart.prototype['gcp_secrets_migrations'] = undefined; +/** + * @member {Array.} hashi_migrations + */ + +MigrationsConfigPart.prototype['hashi_migrations'] = undefined; +/** + * @member {Array.} k8s_migrations + */ + +MigrationsConfigPart.prototype['k8s_migrations'] = undefined; +/** + * @member {Array.} mock_migrations + */ + +MigrationsConfigPart.prototype['mock_migrations'] = undefined; +/** + * @member {Array.} one_password_migrations + */ + +MigrationsConfigPart.prototype['one_password_migrations'] = undefined; +/** + * @member {Array.} server_inventory_migrations + */ + +MigrationsConfigPart.prototype['server_inventory_migrations'] = undefined; +var _default = MigrationsConfigPart; +exports["default"] = _default; /***/ }), -/***/ 42606: +/***/ 33516: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); + +var _MockPayload = _interopRequireDefault(__nccwpck_require__(47698)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GoogleProtoFilesRoot = exports.GrpcClient = exports.ClientStub = void 0; -const grpcProtoLoader = __nccwpck_require__(76081); -const child_process_1 = __nccwpck_require__(35317); -const fs = __nccwpck_require__(79896); -const google_auth_library_1 = __nccwpck_require__(31882); -const grpc = __nccwpck_require__(5414); -const os = __nccwpck_require__(70857); -const path_1 = __nccwpck_require__(16928); -const path = __nccwpck_require__(16928); -const protobuf = __nccwpck_require__(23928); -const objectHash = __nccwpck_require__(77690); -const gax = __nccwpck_require__(4996); -const googleProtoFilesDir = __nccwpck_require__.ab + "protos"; -// INCLUDE_DIRS is passed to @grpc/proto-loader -const INCLUDE_DIRS = []; -INCLUDE_DIRS.push(googleProtoFilesDir); -// COMMON_PROTO_FILES logic is here for protobufjs loads (see -// GoogleProtoFilesRoot below) -const commonProtoFiles = __nccwpck_require__(7085); -// use the correct path separator for the OS we are running on -const COMMON_PROTO_FILES = commonProtoFiles.map(file => file.replace(/[/\\]/g, path.sep)); -/* - * Async version of readFile. - * - * @returns {Promise} Contents of file at path. - */ -async function readFileAsync(path) { - return new Promise((resolve, reject) => { - fs.readFile(path, 'utf8', (err, content) => { - if (err) - return reject(err); - else - resolve(content); - }); - }); -} -/* - * Async version of execFile. - * - * @returns {Promise} stdout from command execution. + * The MockMigration model module. + * @module model/MockMigration + * @version 3.6.3 */ -async function execFileAsync(command, args) { - return new Promise((resolve, reject) => { - (0, child_process_1.execFile)(command, args, (err, stdout) => { - if (err) - return reject(err); - else - resolve(stdout); - }); - }); -} -class ClientStub extends grpc.Client { -} -exports.ClientStub = ClientStub; -class GrpcClient { +var MockMigration = /*#__PURE__*/function () { + /** + * Constructs a new MockMigration. + * @alias module:model/MockMigration + */ + function MockMigration() { + _classCallCheck(this, MockMigration); + + MockMigration.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(MockMigration, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Key for proto cache map. We are doing our best to make sure we respect - * the options, so if the same proto file is loaded with different set of - * options, the cache won't be used. Since some of the options are - * Functions (e.g. `enums: String` - see below in `loadProto()`), - * they will be omitted from the cache key. If the cache breaks anything - * for you, use the `ignoreCache` parameter of `loadProto()` to disable it. + * Constructs a MockMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MockMigration} obj Optional instance to populate. + * @return {module:model/MockMigration} The populated MockMigration instance. */ - static protoCacheKey(filename, options) { - if (!filename || - (Array.isArray(filename) && (filename.length === 0 || !filename[0]))) { - return undefined; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MockMigration(); + + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); } - return JSON.stringify(filename) + ' ' + JSON.stringify(options); + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _MockPayload["default"].constructFromObject(data['payload']); + } + } + + return obj; } + }]); + + return MockMigration; +}(); +/** + * @member {module:model/MigrationGeneral} general + */ + + +MockMigration.prototype['general'] = undefined; +/** + * @member {module:model/MockPayload} payload + */ + +MockMigration.prototype['payload'] = undefined; +var _default = MockMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 47698: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The MockPayload model module. + * @module model/MockPayload + * @version 3.6.3 + */ +var MockPayload = /*#__PURE__*/function () { + /** + * Constructs a new MockPayload. + * @alias module:model/MockPayload + */ + function MockPayload() { + _classCallCheck(this, MockPayload); + + MockPayload.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(MockPayload, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * In rare cases users might need to deallocate all memory consumed by loaded protos. - * This method will delete the proto cache content. + * Constructs a MockPayload from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MockPayload} obj Optional instance to populate. + * @return {module:model/MockPayload} The populated MockPayload instance. */ - static clearProtoCache() { - GrpcClient.protoCache.clear(); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MockPayload(); + + if (data.hasOwnProperty('vaults')) { + obj['vaults'] = _ApiClient["default"].convertToType(data['vaults'], ['String']); + } + } + + return obj; } + }]); + + return MockPayload; +}(); +/** + * @member {Array.} vaults + */ + + +MockPayload.prototype['vaults'] = undefined; +var _default = MockPayload; +exports["default"] = _default; + +/***/ }), + +/***/ 57731: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The MongoDBTargetDetails model module. + * @module model/MongoDBTargetDetails + * @version 3.6.3 + */ +var MongoDBTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new MongoDBTargetDetails. + * @alias module:model/MongoDBTargetDetails + */ + function MongoDBTargetDetails() { + _classCallCheck(this, MongoDBTargetDetails); + + MongoDBTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(MongoDBTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * A class which keeps the context of gRPC and auth for the gRPC. - * - * @param {Object=} options - The optional parameters. It will be directly - * passed to google-auth-library library, so parameters like keyFile or - * credentials will be valid. - * @param {Object=} options.auth - An instance of google-auth-library. - * When specified, this auth instance will be used instead of creating - * a new one. - * @param {Object=} options.grpc - When specified, this will be used - * for the 'grpc' module in this context. By default, it will load the grpc - * module in the standard way. - * @constructor + * Constructs a MongoDBTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MongoDBTargetDetails} obj Optional instance to populate. + * @return {module:model/MongoDBTargetDetails} The populated MongoDBTargetDetails instance. */ - constructor(options = {}) { - var _a; - this.auth = options.auth || new google_auth_library_1.GoogleAuth(options); - this.fallback = false; - const minimumVersion = 10; - const major = Number((_a = process.version.match(/^v(\d+)/)) === null || _a === void 0 ? void 0 : _a[1]); - if (Number.isNaN(major) || major < minimumVersion) { - const errorMessage = `Node.js v${minimumVersion}.0.0 is a minimum requirement. To learn about legacy version support visit: ` + - 'https://github.com/googleapis/google-cloud-node#supported-nodejs-versions'; - throw new Error(errorMessage); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MongoDBTargetDetails(); + + if (data.hasOwnProperty('mongodb_atlas_api_private_key')) { + obj['mongodb_atlas_api_private_key'] = _ApiClient["default"].convertToType(data['mongodb_atlas_api_private_key'], 'String'); } - if ('grpc' in options) { - this.grpc = options.grpc; - this.grpcVersion = ''; + + if (data.hasOwnProperty('mongodb_atlas_api_public_key')) { + obj['mongodb_atlas_api_public_key'] = _ApiClient["default"].convertToType(data['mongodb_atlas_api_public_key'], 'String'); } - else { - this.grpc = grpc; - this.grpcVersion = (__nccwpck_require__(9943)/* .version */ .rE); + + if (data.hasOwnProperty('mongodb_atlas_project_id')) { + obj['mongodb_atlas_project_id'] = _ApiClient["default"].convertToType(data['mongodb_atlas_project_id'], 'String'); } - } - /** - * Creates a gRPC credentials. It asks the auth data if necessary. - * @private - * @param {Object} opts - options values for configuring credentials. - * @param {Object=} opts.sslCreds - when specified, this is used instead - * of default channel credentials. - * @return {Promise} The promise which will be resolved to the gRPC credential. - */ - async _getCredentials(opts) { - if (opts.sslCreds) { - return opts.sslCreds; + + if (data.hasOwnProperty('mongodb_db_name')) { + obj['mongodb_db_name'] = _ApiClient["default"].convertToType(data['mongodb_db_name'], 'String'); } - const grpc = this.grpc; - const sslCreds = opts.cert && opts.key - ? grpc.credentials.createSsl(null, Buffer.from(opts.key), Buffer.from(opts.cert)) - : grpc.credentials.createSsl(); - const client = await this.auth.getClient(); - const credentials = grpc.credentials.combineChannelCredentials(sslCreds, grpc.credentials.createFromGoogleCredential(client)); - return credentials; - } - static defaultOptions() { - // This set of @grpc/proto-loader options - // 'closely approximates the existing behavior of grpc.load' - const includeDirs = INCLUDE_DIRS.slice(); - const options = { - keepCase: false, - longs: String, - enums: String, - defaults: true, - oneofs: true, - includeDirs, - }; - return options; - } - /** - * Loads the gRPC service from the proto file(s) at the given path and with the - * given options. Caches the loaded protos so the subsequent loads don't do - * any disk reads. - * @param filename The path to the proto file(s). - * @param options Options for loading the proto file. - * @param ignoreCache Defaults to `false`. Set it to `true` if the caching logic - * incorrectly decides that the options object is the same, or if you want to - * re-read the protos from disk for any other reason. - */ - loadFromProto(filename, options, ignoreCache = false) { - const cacheKey = GrpcClient.protoCacheKey(filename, options); - let grpcPackage = cacheKey - ? GrpcClient.protoCache.get(cacheKey) - : undefined; - if (ignoreCache || !grpcPackage) { - const packageDef = grpcProtoLoader.loadSync(filename, options); - grpcPackage = this.grpc.loadPackageDefinition(packageDef); - if (cacheKey) { - GrpcClient.protoCache.set(cacheKey, grpcPackage); - } + + if (data.hasOwnProperty('mongodb_default_auth_db')) { + obj['mongodb_default_auth_db'] = _ApiClient["default"].convertToType(data['mongodb_default_auth_db'], 'String'); } - return grpcPackage; - } - /** - * Load gRPC proto service from a filename looking in googleapis common protos - * when necessary. Caches the loaded protos so the subsequent loads don't do - * any disk reads. - * @param {String} protoPath - The directory to search for the protofile. - * @param {String|String[]} filename - The filename(s) of the proto(s) to be loaded. - * If omitted, protoPath will be treated as a file path to load. - * @param ignoreCache Defaults to `false`. Set it to `true` if the caching logic - * incorrectly decides that the options object is the same, or if you want to - * re-read the protos from disk for any other reason. - * @return {Object} The gRPC loaded result (the toplevel namespace - * object). - */ - loadProto(protoPath, filename, ignoreCache = false) { - if (!filename) { - filename = path.basename(protoPath); - protoPath = path.dirname(protoPath); + + if (data.hasOwnProperty('mongodb_host_port')) { + obj['mongodb_host_port'] = _ApiClient["default"].convertToType(data['mongodb_host_port'], 'String'); } - if (Array.isArray(filename) && filename.length === 0) { - return {}; + + if (data.hasOwnProperty('mongodb_is_atlas')) { + obj['mongodb_is_atlas'] = _ApiClient["default"].convertToType(data['mongodb_is_atlas'], 'Boolean'); } - const options = GrpcClient.defaultOptions(); - options.includeDirs.unshift(protoPath); - return this.loadFromProto(filename, options, ignoreCache); - } - static _resolveFile(protoPath, filename) { - if (fs.existsSync(path.join(protoPath, filename))) { - return path.join(protoPath, filename); + + if (data.hasOwnProperty('mongodb_password')) { + obj['mongodb_password'] = _ApiClient["default"].convertToType(data['mongodb_password'], 'String'); } - else if (COMMON_PROTO_FILES.indexOf(filename) > -1) { - return path.join(googleProtoFilesDir, filename); + + if (data.hasOwnProperty('mongodb_uri_connection')) { + obj['mongodb_uri_connection'] = _ApiClient["default"].convertToType(data['mongodb_uri_connection'], 'String'); } - throw new Error(filename + ' could not be found in ' + protoPath); - } - loadProtoJSON(json, ignoreCache = false) { - const hash = objectHash(JSON.stringify(json)).toString(); - const cached = GrpcClient.protoCache.get(hash); - if (cached && !ignoreCache) { - return cached; + + if (data.hasOwnProperty('mongodb_uri_options')) { + obj['mongodb_uri_options'] = _ApiClient["default"].convertToType(data['mongodb_uri_options'], 'String'); } - const options = GrpcClient.defaultOptions(); - const packageDefinition = grpcProtoLoader.fromJSON(json, options); - const grpcPackage = this.grpc.loadPackageDefinition(packageDefinition); - GrpcClient.protoCache.set(hash, grpcPackage); - return grpcPackage; - } - metadataBuilder(headers) { - const Metadata = this.grpc.Metadata; - const baseMetadata = new Metadata(); - for (const key in headers) { - const value = headers[key]; - if (Array.isArray(value)) { - value.forEach(v => baseMetadata.add(key, v)); - } - else { - baseMetadata.set(key, `${value}`); - } + + if (data.hasOwnProperty('mongodb_username')) { + obj['mongodb_username'] = _ApiClient["default"].convertToType(data['mongodb_username'], 'String'); } - return function buildMetadata(abTests, moreHeaders) { - // TODO: bring the A/B testing info into the metadata. - let copied = false; - let metadata = baseMetadata; - if (moreHeaders) { - for (const key in moreHeaders) { - if (key.toLowerCase() !== 'x-goog-api-client') { - if (!copied) { - copied = true; - metadata = metadata.clone(); - } - const value = moreHeaders[key]; - if (Array.isArray(value)) { - value.forEach(v => metadata.add(key, v)); - } - else { - metadata.set(key, `${value}`); - } - } - } - } - return metadata; - }; + } + + return obj; } - /** - * A wrapper of {@link constructSettings} function under the gRPC context. - * - * Most of parameters are common among constructSettings, please take a look. - * @param {string} serviceName - The fullly-qualified name of the service. - * @param {Object} clientConfig - A dictionary of the client config. - * @param {Object} configOverrides - A dictionary of overriding configs. - * @param {Object} headers - A dictionary of additional HTTP header name to - * its value. - * @return {Object} A mapping of method names to CallSettings. - */ - constructSettings(serviceName, clientConfig, configOverrides, headers) { - return gax.constructSettings(serviceName, clientConfig, configOverrides, this.grpc.status, { metadataBuilder: this.metadataBuilder(headers) }); + }]); + + return MongoDBTargetDetails; +}(); +/** + * @member {String} mongodb_atlas_api_private_key + */ + + +MongoDBTargetDetails.prototype['mongodb_atlas_api_private_key'] = undefined; +/** + * @member {String} mongodb_atlas_api_public_key + */ + +MongoDBTargetDetails.prototype['mongodb_atlas_api_public_key'] = undefined; +/** + * mongodb atlas fields + * @member {String} mongodb_atlas_project_id + */ + +MongoDBTargetDetails.prototype['mongodb_atlas_project_id'] = undefined; +/** + * common fields + * @member {String} mongodb_db_name + */ + +MongoDBTargetDetails.prototype['mongodb_db_name'] = undefined; +/** + * @member {String} mongodb_default_auth_db + */ + +MongoDBTargetDetails.prototype['mongodb_default_auth_db'] = undefined; +/** + * @member {String} mongodb_host_port + */ + +MongoDBTargetDetails.prototype['mongodb_host_port'] = undefined; +/** + * @member {Boolean} mongodb_is_atlas + */ + +MongoDBTargetDetails.prototype['mongodb_is_atlas'] = undefined; +/** + * @member {String} mongodb_password + */ + +MongoDBTargetDetails.prototype['mongodb_password'] = undefined; +/** + * mongodb fields + * @member {String} mongodb_uri_connection + */ + +MongoDBTargetDetails.prototype['mongodb_uri_connection'] = undefined; +/** + * @member {String} mongodb_uri_options + */ + +MongoDBTargetDetails.prototype['mongodb_uri_options'] = undefined; +/** + * @member {String} mongodb_username + */ + +MongoDBTargetDetails.prototype['mongodb_username'] = undefined; +var _default = MongoDBTargetDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 3781: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The MoveObjects model module. + * @module model/MoveObjects + * @version 3.6.3 + */ +var MoveObjects = /*#__PURE__*/function () { + /** + * Constructs a new MoveObjects. + * @alias module:model/MoveObjects + * @param source {String} Source path to move the objects from + * @param target {String} Target path to move the objects to + */ + function MoveObjects(source, target) { + _classCallCheck(this, MoveObjects); + + MoveObjects.initialize(this, source, target); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(MoveObjects, null, [{ + key: "initialize", + value: function initialize(obj, source, target) { + obj['source'] = source; + obj['target'] = target; } /** - * Creates a gRPC stub with current gRPC and auth. - * @param {function} CreateStub - The constructor function of the stub. - * @param {Object} options - The optional arguments to customize - * gRPC connection. This options will be passed to the constructor of - * gRPC client too. - * @param {string} options.servicePath - The name of the server of the service. - * @param {number} options.port - The port of the service. - * @param {grpcTypes.ClientCredentials=} options.sslCreds - The credentials to be used - * to set up gRPC connection. - * @param {string} defaultServicePath - The default service path. - * @return {Promise} A promise which resolves to a gRPC stub instance. + * Constructs a MoveObjects from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MoveObjects} obj Optional instance to populate. + * @return {module:model/MoveObjects} The populated MoveObjects instance. */ - async createStub(CreateStub, options, customServicePath) { - // The following options are understood by grpc-gcp and need a special treatment - // (should be passed without a `grpc.` prefix) - const grpcGcpOptions = [ - 'grpc.callInvocationTransformer', - 'grpc.channelFactoryOverride', - 'grpc.gcpApiConfig', - ]; - const [cert, key] = await this._detectClientCertificate(options, options.universeDomain); - const servicePath = this._mtlsServicePath(options.servicePath, customServicePath, cert && key); - const opts = Object.assign({}, options, { cert, key, servicePath }); - const serviceAddress = servicePath + ':' + opts.port; - if (!options.universeDomain) { - options.universeDomain = 'googleapis.com'; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MoveObjects(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (options.universeDomain) { - const universeFromAuth = await this.auth.getUniverseDomain(); - if (universeFromAuth && options.universeDomain !== universeFromAuth) { - throw new Error(`The configured universe domain (${options.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 (data.hasOwnProperty('objects-type')) { + obj['objects-type'] = _ApiClient["default"].convertToType(data['objects-type'], 'String'); } - const creds = await this._getCredentials(opts); - const grpcOptions = {}; - // @grpc/grpc-js limits max receive/send message length starting from v0.8.0 - // https://github.com/grpc/grpc-node/releases/tag/%40grpc%2Fgrpc-js%400.8.0 - // To keep the existing behavior and avoid libraries breakage, we pass -1 there as suggested. - grpcOptions['grpc.max_receive_message_length'] = -1; - grpcOptions['grpc.max_send_message_length'] = -1; - grpcOptions['grpc.initial_reconnect_backoff_ms'] = 1000; - Object.keys(opts).forEach(key => { - const value = options[key]; - // the older versions had a bug which required users to call an option - // grpc.grpc.* to make it actually pass to gRPC as grpc.*, let's handle - // this here until the next major release - if (key.startsWith('grpc.grpc.')) { - key = key.replace(/^grpc\./, ''); - } - if (key.startsWith('grpc.')) { - if (grpcGcpOptions.includes(key)) { - key = key.replace(/^grpc\./, ''); - } - grpcOptions[key] = value; - } - if (key.startsWith('grpc-node.')) { - grpcOptions[key] = value; - } - }); - const stub = new CreateStub(serviceAddress, creds, grpcOptions); - return stub; - } - /** - * Detect mTLS client certificate based on logic described in - * https://google.aip.dev/auth/4114. - * - * @param {object} [options] - The configuration object. - * @returns {Promise} Resolves array of strings representing cert and key. - */ - async _detectClientCertificate(opts, universeDomain) { - var _a; - const certRegex = /(?-----BEGIN CERTIFICATE-----.*?-----END CERTIFICATE-----)/s; - const keyRegex = /(?-----BEGIN PRIVATE KEY-----.*?-----END PRIVATE KEY-----)/s; - // If GOOGLE_API_USE_CLIENT_CERTIFICATE is true...: - if (typeof process !== 'undefined' && - ((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.GOOGLE_API_USE_CLIENT_CERTIFICATE) === 'true') { - if (universeDomain && universeDomain !== 'googleapis.com') { - throw new Error('mTLS is not supported outside of googleapis.com universe domain.'); - } - if ((opts === null || opts === void 0 ? void 0 : opts.cert) && (opts === null || opts === void 0 ? void 0 : opts.key)) { - return [opts.cert, opts.key]; - } - // If context aware metadata exists, run the cert provider command, - // parse the output to extract cert and key, and use this cert/key. - const metadataPath = (0, path_1.join)(os.homedir(), '.secureConnect', 'context_aware_metadata.json'); - const metadata = JSON.parse(await readFileAsync(metadataPath)); - if (!metadata.cert_provider_command) { - throw Error('no cert_provider_command found'); - } - const stdout = await execFileAsync(metadata.cert_provider_command[0], metadata.cert_provider_command.slice(1)); - const matchCert = stdout.toString().match(certRegex); - const matchKey = stdout.toString().match(keyRegex); - if (!((matchCert === null || matchCert === void 0 ? void 0 : matchCert.groups) && (matchKey === null || matchKey === void 0 ? void 0 : matchKey.groups))) { - throw Error('unable to parse certificate and key'); - } - else { - return [matchCert.groups.cert, matchKey.groups.key]; - } + + if (data.hasOwnProperty('source')) { + obj['source'] = _ApiClient["default"].convertToType(data['source'], 'String'); } - // If GOOGLE_API_USE_CLIENT_CERTIFICATE is not set or false, - // use no cert or key: - return [undefined, undefined]; + + if (data.hasOwnProperty('target')) { + obj['target'] = _ApiClient["default"].convertToType(data['target'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } + }]); + + return MoveObjects; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +MoveObjects.prototype['json'] = false; +/** + * The objects type to move (item/auth_method/role) + * @member {String} objects-type + * @default 'item' + */ + +MoveObjects.prototype['objects-type'] = 'item'; +/** + * Source path to move the objects from + * @member {String} source + */ + +MoveObjects.prototype['source'] = undefined; +/** + * Target path to move the objects to + * @member {String} target + */ + +MoveObjects.prototype['target'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +MoveObjects.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +MoveObjects.prototype['uid-token'] = undefined; +var _default = MoveObjects; +exports["default"] = _default; + +/***/ }), + +/***/ 65739: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _AttributeTypeAndValue = _interopRequireDefault(__nccwpck_require__(90188)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Name model module. + * @module model/Name + * @version 3.6.3 + */ +var Name = /*#__PURE__*/function () { + /** + * Constructs a new Name. + * Name represents an X.509 distinguished name. This only includes the common elements of a DN. Note that Name is only an approximation of the X.509 structure. If an accurate representation is needed, asn1.Unmarshal the raw subject or issuer as an RDNSequence. + * @alias module:model/Name + */ + function Name() { + _classCallCheck(this, Name); + + Name.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Name, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Return service path, taking into account mTLS logic. - * See: https://google.aip.dev/auth/4114 - * - * @param {string|undefined} servicePath - The path of the service. - * @param {string|undefined} customServicePath - Did the user provide a custom service URL. - * @param {boolean} hasCertificate - Was a certificate found. - * @returns {string} The DNS address for this service. + * Constructs a Name from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Name} obj Optional instance to populate. + * @return {module:model/Name} The populated Name instance. */ - _mtlsServicePath(servicePath, customServicePath, hasCertificate) { - var _a, _b; - // If user provides a custom service path, return the current service - // path and do not attempt to add mtls subdomain: - if (customServicePath || !servicePath) - return servicePath; - if (typeof process !== 'undefined' && - ((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.GOOGLE_API_USE_MTLS_ENDPOINT) === 'never') { - // It was explicitly asked that mtls endpoint not be used: - return servicePath; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Name(); + + if (data.hasOwnProperty('Country')) { + obj['Country'] = _ApiClient["default"].convertToType(data['Country'], ['String']); } - else if ((typeof process !== 'undefined' && - ((_b = process === null || process === void 0 ? void 0 : process.env) === null || _b === void 0 ? void 0 : _b.GOOGLE_API_USE_MTLS_ENDPOINT) === 'always') || - hasCertificate) { - // Either auto-detect or explicit setting of endpoint: - return servicePath.replace('googleapis.com', 'mtls.googleapis.com'); + + if (data.hasOwnProperty('ExtraNames')) { + obj['ExtraNames'] = _ApiClient["default"].convertToType(data['ExtraNames'], [_AttributeTypeAndValue["default"]]); } - return servicePath; - } - /** - * Creates a 'bytelength' function for a given proto message class. - * - * See {@link BundleDescriptor} about the meaning of the return value. - * - * @param {function} message - a constructor function that is generated by - * protobuf.js. Assumes 'encoder' field in the message. - * @return {function(Object):number} - a function to compute the byte length - * for an object. - */ - static createByteLengthFunction(message) { - return gax.createByteLengthFunction(message); - } -} -exports.GrpcClient = GrpcClient; -GrpcClient.protoCache = new Map(); -class GoogleProtoFilesRoot extends protobuf.Root { - constructor(...args) { - super(...args); - } - // Causes the loading of an included proto to check if it is a common - // proto. If it is a common proto, use the bundled proto. - resolvePath(originPath, includePath) { - originPath = path.normalize(originPath); - includePath = path.normalize(includePath); - // Fully qualified paths don't need to be resolved. - if (path.isAbsolute(includePath)) { - if (!fs.existsSync(includePath)) { - throw new Error('The include `' + includePath + '` was not found.'); - } - return includePath; + + if (data.hasOwnProperty('Locality')) { + obj['Locality'] = _ApiClient["default"].convertToType(data['Locality'], ['String']); } - if (COMMON_PROTO_FILES.indexOf(includePath) > -1) { - return path.join(googleProtoFilesDir, includePath); + + if (data.hasOwnProperty('Names')) { + obj['Names'] = _ApiClient["default"].convertToType(data['Names'], [_AttributeTypeAndValue["default"]]); } - return GoogleProtoFilesRoot._findIncludePath(originPath, includePath); - } - static _findIncludePath(originPath, includePath) { - originPath = path.normalize(originPath); - includePath = path.normalize(includePath); - let current = originPath; - let found = fs.existsSync(path.join(current, includePath)); - while (!found && current.length > 0) { - current = current.substring(0, current.lastIndexOf(path.sep)); - found = fs.existsSync(path.join(current, includePath)); + + if (data.hasOwnProperty('SerialNumber')) { + obj['SerialNumber'] = _ApiClient["default"].convertToType(data['SerialNumber'], 'String'); } - if (!found) { - throw new Error('The include `' + includePath + '` was not found.'); + + if (data.hasOwnProperty('StreetAddress')) { + obj['StreetAddress'] = _ApiClient["default"].convertToType(data['StreetAddress'], ['String']); } - return path.join(current, includePath); + } + + return obj; } -} -exports.GoogleProtoFilesRoot = GoogleProtoFilesRoot; -//# sourceMappingURL=grpc.js.map + }]); + + return Name; +}(); +/** + * @member {Array.} Country + */ + + +Name.prototype['Country'] = undefined; +/** + * ExtraNames contains attributes to be copied, raw, into any marshaled distinguished names. Values override any attributes with the same OID. The ExtraNames field is not populated when parsing, see Names. + * @member {Array.} ExtraNames + */ + +Name.prototype['ExtraNames'] = undefined; +/** + * @member {Array.} Locality + */ + +Name.prototype['Locality'] = undefined; +/** + * Names contains all parsed attributes. When parsing distinguished names, this can be used to extract non-standard attributes that are not parsed by this package. When marshaling to RDNSequences, the Names field is ignored, see ExtraNames. + * @member {Array.} Names + */ + +Name.prototype['Names'] = undefined; +/** + * @member {String} SerialNumber + */ + +Name.prototype['SerialNumber'] = undefined; +/** + * @member {Array.} StreetAddress + */ + +Name.prototype['StreetAddress'] = undefined; +var _default = Name; +exports["default"] = _default; /***/ }), -/***/ 34126: +/***/ 80406: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// ** This file is automatically generated by gapic-generator-typescript. ** -// ** https://github.com/googleapis/gapic-generator-typescript ** -// ** All changes to this file may be overwritten. ** -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.IamClient = void 0; -const createApiCall_1 = __nccwpck_require__(42236); -const routingHeader = __nccwpck_require__(37515); -const gapicConfig = __nccwpck_require__(55083); -const fallback = __nccwpck_require__(9592); -let version = (__nccwpck_require__(57564).version); -const jsonProtos = __nccwpck_require__(70192); + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Google Cloud IAM Client. - * This is manually written for providing methods [setIamPolicy, getIamPolicy, testIamPerssion] to the generated client. + * The NativeK8sTargetDetails model module. + * @module model/NativeK8sTargetDetails + * @version 3.6.3 */ -class IamClient { - constructor(gaxGrpc, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - options) { - this._terminated = false; - this.descriptors = { page: {}, stream: {}, longrunning: {} }; - this.innerApiCalls = {}; - this.gaxGrpc = gaxGrpc; - // Ensure that options include the service address and port. - const opts = Object.assign({ - servicePath: options.servicePath, - port: options.port, - clientConfig: options.clientConfig, - apiEndpoint: options.apiEndpoint, - fallback: options.fallback, - }, options); - version = opts.fallback ? fallback.version : version; - opts.scopes = this.constructor.scopes; - // Save options to use in initialize() method. - this._opts = opts; - // Save the auth object to the client, for use by other methods. - this.auth = gaxGrpc.auth; - // Determine the client header string. - const clientHeader = [`gax/${version}`, `gapic/${version}`]; - if (typeof process !== 'undefined' && 'versions' in process) { - clientHeader.push(`gl-node/${process.versions.node}`); - } - else { - clientHeader.push(`gl-web/${version}`); - } - if (!opts.fallback) { - clientHeader.push(`grpc/${gaxGrpc.grpcVersion}`); - } - if (opts.libName && opts.libVersion) { - clientHeader.push(`${opts.libName}/${opts.libVersion}`); - } - // Load the applicable protos. - this._protos = this.gaxGrpc.loadProtoJSON(jsonProtos); - // Put together the default options sent with requests. - this._defaults = gaxGrpc.constructSettings('google.iam.v1.IAMPolicy', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') }); - this.innerApiCalls = {}; - } - /** - * Initialize the client. - * Performs asynchronous operations (such as authentication) and prepares the client. - * This function will be called automatically when any class method is called for the - * first time, but if you need to initialize it before calling an actual method, - * feel free to call initialize() directly. - * - * You can await on this method if you want to make sure the client is initialized. - * - * @returns {Promise} A promise that resolves to an authenticated service stub. - */ - initialize() { - // If the client stub promise is already initialized, return immediately. - if (this.iamPolicyStub) { - return this.iamPolicyStub; - } - // Put together the "service stub" for - // google.iam.v1.IAMPolicy. - this.iamPolicyStub = this.gaxGrpc.createStub(this._opts.fallback - ? this._protos.lookupService('google.iam.v1.IAMPolicy') - : this._protos.google.iam.v1.IAMPolicy, this._opts); - // Iterate over each of the methods that the service provides - // and create an API call method for each. - const iamPolicyStubMethods = [ - 'getIamPolicy', - 'setIamPolicy', - 'testIamPermissions', - ]; - for (const methodName of iamPolicyStubMethods) { - const innerCallPromise = this.iamPolicyStub.then(stub => (...args) => { - if (this._terminated) { - return Promise.reject('The client has already been closed.'); - } - const func = stub[methodName]; - return func.apply(stub, args); - }, (err) => () => { - throw err; - }); - this.innerApiCalls[methodName] = (0, createApiCall_1.createApiCall)(innerCallPromise, this._defaults[methodName], this.descriptors.page[methodName]); - } - return this.iamPolicyStub; - } - /** - * The DNS address for this API service. - */ - static get servicePath() { - return 'cloudkms.googleapis.com'; - } - /** - * The DNS address for this API service - same as servicePath(), - * exists for compatibility reasons. - */ - static get apiEndpoint() { - return 'cloudkms.googleapis.com'; - } - /** - * The port for this API service. - */ - static get port() { - return 443; - } +var NativeK8sTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new NativeK8sTargetDetails. + * @alias module:model/NativeK8sTargetDetails + */ + function NativeK8sTargetDetails() { + _classCallCheck(this, NativeK8sTargetDetails); + + NativeK8sTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(NativeK8sTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * The scopes needed to make gRPC calls for every method defined - * in this service. + * Constructs a NativeK8sTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/NativeK8sTargetDetails} obj Optional instance to populate. + * @return {module:model/NativeK8sTargetDetails} The populated NativeK8sTargetDetails instance. */ - static get scopes() { - return [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloudkms', - ]; - } - getProjectId(callback) { - if (this.auth && 'getProjectId' in this.auth) { - return this.auth.getProjectId(callback); - } - if (callback) { - callback(new Error('Cannot determine project ID.')); - } - else { - return Promise.reject('Cannot determine project ID.'); - } - } - getIamPolicy(request, optionsOrCallback, callback) { - let options; - if (optionsOrCallback instanceof Function && callback === undefined) { - callback = optionsOrCallback; - options = {}; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new NativeK8sTargetDetails(); + + if (data.hasOwnProperty('k8s_auth_type')) { + obj['k8s_auth_type'] = _ApiClient["default"].convertToType(data['k8s_auth_type'], 'String'); } - else { - options = optionsOrCallback; + + if (data.hasOwnProperty('k8s_bearer_token')) { + obj['k8s_bearer_token'] = _ApiClient["default"].convertToType(data['k8s_bearer_token'], 'String'); } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - routingHeader.fromParams({ - resource: request.resource, - }); - this.initialize(); - return this.innerApiCalls.getIamPolicy(request, options, callback); - } - setIamPolicy(request, optionsOrCallback, callback) { - let options; - if (optionsOrCallback instanceof Function && callback === undefined) { - callback = optionsOrCallback; - options = {}; + + if (data.hasOwnProperty('k8s_client_cert_data')) { + obj['k8s_client_cert_data'] = _ApiClient["default"].convertToType(data['k8s_client_cert_data'], 'String'); } - else { - options = optionsOrCallback; + + if (data.hasOwnProperty('k8s_client_key_data')) { + obj['k8s_client_key_data'] = _ApiClient["default"].convertToType(data['k8s_client_key_data'], 'String'); } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - routingHeader.fromParams({ - resource: request.resource, - }); - this.initialize(); - return this.innerApiCalls.setIamPolicy(request, options, callback); - } - testIamPermissions(request, optionsOrCallback, callback) { - let options; - if (optionsOrCallback instanceof Function && callback === undefined) { - callback = optionsOrCallback; - options = {}; + + if (data.hasOwnProperty('k8s_cluster_ca_certificate')) { + obj['k8s_cluster_ca_certificate'] = _ApiClient["default"].convertToType(data['k8s_cluster_ca_certificate'], 'String'); } - else { - options = optionsOrCallback; + + if (data.hasOwnProperty('k8s_cluster_endpoint')) { + obj['k8s_cluster_endpoint'] = _ApiClient["default"].convertToType(data['k8s_cluster_endpoint'], 'String'); } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - routingHeader.fromParams({ - resource: request.resource, - }); - this.initialize(); - return this.innerApiCalls.testIamPermissions(request, options, callback); - } - /** - * Terminate the GRPC channel and close the client. - * - * The client will no longer be usable and all future behavior is undefined. - */ - close() { - this.initialize(); - if (!this._terminated) { - return this.iamPolicyStub.then(stub => { - this._terminated = true; - stub.close(); - }); + + if (data.hasOwnProperty('use_gw_service_account')) { + obj['use_gw_service_account'] = _ApiClient["default"].convertToType(data['use_gw_service_account'], 'Boolean'); } - return Promise.resolve(); + } + + return obj; } -} -exports.IamClient = IamClient; -//# sourceMappingURL=iamService.js.map + }]); -/***/ }), + return NativeK8sTargetDetails; +}(); +/** + * @member {String} k8s_auth_type + */ -/***/ 83232: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; +NativeK8sTargetDetails.prototype['k8s_auth_type'] = undefined; +/** + * @member {String} k8s_bearer_token + */ +NativeK8sTargetDetails.prototype['k8s_bearer_token'] = undefined; /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * For K8s Client certificates authentication + * @member {String} k8s_client_cert_data + */ + +NativeK8sTargetDetails.prototype['k8s_client_cert_data'] = undefined; +/** + * @member {String} k8s_client_key_data + */ + +NativeK8sTargetDetails.prototype['k8s_client_key_data'] = undefined; +/** + * @member {String} k8s_cluster_ca_certificate + */ + +NativeK8sTargetDetails.prototype['k8s_cluster_ca_certificate'] = undefined; +/** + * @member {String} k8s_cluster_endpoint + */ + +NativeK8sTargetDetails.prototype['k8s_cluster_endpoint'] = undefined; +/** + * @member {Boolean} use_gw_service_account */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.serializer = exports.warn = exports.ChannelCredentials = exports.makeUUID = exports.fallback = exports.protobufMinimal = exports.protobuf = exports.version = exports.createByteLengthFunction = exports.LocationsClient = exports.IamClient = exports.OperationsClient = exports.LocationProtos = exports.IamProtos = exports.operationsProtos = exports.routingHeader = exports.StreamType = exports.Status = exports.PathTemplate = exports.operation = exports.Operation = exports.GrpcClient = exports.GoogleProtoFilesRoot = exports.ClientStub = exports.GoogleError = exports.createMaxRetriesBackoffSettings = exports.createDefaultBackoffSettings = exports.createBackoffSettings = exports.createBundleOptions = exports.createRetryOptions = exports.RetryOptions = exports.constructSettings = exports.CallSettings = exports.StreamDescriptor = exports.PageDescriptor = exports.LongrunningDescriptor = exports.BundleDescriptor = exports.createApiCall = exports.OngoingCall = exports.grpc = exports.GoogleAuth = void 0; -exports.lro = lro; -const grpc = __nccwpck_require__(5414); -exports.grpc = grpc; -const grpc_1 = __nccwpck_require__(42606); -const IamProtos = __nccwpck_require__(37312); -exports.IamProtos = IamProtos; -const LocationProtos = __nccwpck_require__(81937); -exports.LocationProtos = LocationProtos; -const operationsProtos = __nccwpck_require__(99467); -exports.operationsProtos = operationsProtos; -const operationsClient = __nccwpck_require__(99463); -const routingHeader = __nccwpck_require__(37515); -exports.routingHeader = routingHeader; -var google_auth_library_1 = __nccwpck_require__(31882); -Object.defineProperty(exports, "GoogleAuth", ({ enumerable: true, get: function () { return google_auth_library_1.GoogleAuth; } })); -var call_1 = __nccwpck_require__(49746); -Object.defineProperty(exports, "OngoingCall", ({ enumerable: true, get: function () { return call_1.OngoingCall; } })); -var createApiCall_1 = __nccwpck_require__(42236); -Object.defineProperty(exports, "createApiCall", ({ enumerable: true, get: function () { return createApiCall_1.createApiCall; } })); -var descriptor_1 = __nccwpck_require__(65151); -Object.defineProperty(exports, "BundleDescriptor", ({ enumerable: true, get: function () { return descriptor_1.BundleDescriptor; } })); -Object.defineProperty(exports, "LongrunningDescriptor", ({ enumerable: true, get: function () { return descriptor_1.LongrunningDescriptor; } })); -Object.defineProperty(exports, "PageDescriptor", ({ enumerable: true, get: function () { return descriptor_1.PageDescriptor; } })); -Object.defineProperty(exports, "StreamDescriptor", ({ enumerable: true, get: function () { return descriptor_1.StreamDescriptor; } })); -var gax_1 = __nccwpck_require__(4996); -Object.defineProperty(exports, "CallSettings", ({ enumerable: true, get: function () { return gax_1.CallSettings; } })); -Object.defineProperty(exports, "constructSettings", ({ enumerable: true, get: function () { return gax_1.constructSettings; } })); -Object.defineProperty(exports, "RetryOptions", ({ enumerable: true, get: function () { return gax_1.RetryOptions; } })); -Object.defineProperty(exports, "createRetryOptions", ({ enumerable: true, get: function () { return gax_1.createRetryOptions; } })); -Object.defineProperty(exports, "createBundleOptions", ({ enumerable: true, get: function () { return gax_1.createBundleOptions; } })); -Object.defineProperty(exports, "createBackoffSettings", ({ enumerable: true, get: function () { return gax_1.createBackoffSettings; } })); -Object.defineProperty(exports, "createDefaultBackoffSettings", ({ enumerable: true, get: function () { return gax_1.createDefaultBackoffSettings; } })); -Object.defineProperty(exports, "createMaxRetriesBackoffSettings", ({ enumerable: true, get: function () { return gax_1.createMaxRetriesBackoffSettings; } })); -var googleError_1 = __nccwpck_require__(34775); -Object.defineProperty(exports, "GoogleError", ({ enumerable: true, get: function () { return googleError_1.GoogleError; } })); -var grpc_2 = __nccwpck_require__(42606); -Object.defineProperty(exports, "ClientStub", ({ enumerable: true, get: function () { return grpc_2.ClientStub; } })); -Object.defineProperty(exports, "GoogleProtoFilesRoot", ({ enumerable: true, get: function () { return grpc_2.GoogleProtoFilesRoot; } })); -Object.defineProperty(exports, "GrpcClient", ({ enumerable: true, get: function () { return grpc_2.GrpcClient; } })); -var longrunning_1 = __nccwpck_require__(76902); -Object.defineProperty(exports, "Operation", ({ enumerable: true, get: function () { return longrunning_1.Operation; } })); -Object.defineProperty(exports, "operation", ({ enumerable: true, get: function () { return longrunning_1.operation; } })); -var pathTemplate_1 = __nccwpck_require__(66575); -Object.defineProperty(exports, "PathTemplate", ({ enumerable: true, get: function () { return pathTemplate_1.PathTemplate; } })); -var status_1 = __nccwpck_require__(69124); -Object.defineProperty(exports, "Status", ({ enumerable: true, get: function () { return status_1.Status; } })); -var streaming_1 = __nccwpck_require__(21224); -Object.defineProperty(exports, "StreamType", ({ enumerable: true, get: function () { return streaming_1.StreamType; } })); -function lro(options) { - options = Object.assign({ scopes: lro.ALL_SCOPES }, options); - const gaxGrpc = new grpc_1.GrpcClient(options); - return new operationsClient.OperationsClientBuilder(gaxGrpc); -} -lro.SERVICE_ADDRESS = operationsClient.SERVICE_ADDRESS; -lro.ALL_SCOPES = operationsClient.ALL_SCOPES; -var operationsClient_1 = __nccwpck_require__(99463); -Object.defineProperty(exports, "OperationsClient", ({ enumerable: true, get: function () { return operationsClient_1.OperationsClient; } })); -var iamService_1 = __nccwpck_require__(34126); -Object.defineProperty(exports, "IamClient", ({ enumerable: true, get: function () { return iamService_1.IamClient; } })); -var locationService_1 = __nccwpck_require__(47302); -Object.defineProperty(exports, "LocationsClient", ({ enumerable: true, get: function () { return locationService_1.LocationsClient; } })); -exports.createByteLengthFunction = grpc_1.GrpcClient.createByteLengthFunction; -exports.version = __nccwpck_require__(57564).version; -const protobuf = __nccwpck_require__(23928); -exports.protobuf = protobuf; -exports.protobufMinimal = __nccwpck_require__(37823); -const fallback = __nccwpck_require__(9592); -exports.fallback = fallback; -var util_1 = __nccwpck_require__(24938); -Object.defineProperty(exports, "makeUUID", ({ enumerable: true, get: function () { return util_1.makeUUID; } })); -var grpc_js_1 = __nccwpck_require__(5414); -Object.defineProperty(exports, "ChannelCredentials", ({ enumerable: true, get: function () { return grpc_js_1.ChannelCredentials; } })); -var warnings_1 = __nccwpck_require__(25531); -Object.defineProperty(exports, "warn", ({ enumerable: true, get: function () { return warnings_1.warn; } })); -const serializer = __nccwpck_require__(65913); -exports.serializer = serializer; -//# sourceMappingURL=index.js.map + +NativeK8sTargetDetails.prototype['use_gw_service_account'] = undefined; +var _default = NativeK8sTargetDetails; +exports["default"] = _default; /***/ }), -/***/ 47302: +/***/ 21724: /***/ ((__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 -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LocationsClient = void 0; -/* global window */ -const gax = __nccwpck_require__(4996); -const warnings_1 = __nccwpck_require__(25531); -const createApiCall_1 = __nccwpck_require__(42236); -const routingHeader = __nccwpck_require__(37515); -const pageDescriptor_1 = __nccwpck_require__(53798); -const jsonProtos = __nccwpck_require__(44909); -/** - * This file defines retry strategy and timeouts for all API methods in this library. - */ -const gapicConfig = __nccwpck_require__(29343); -const version = (__nccwpck_require__(57564).version); + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _EmailEntry = _interopRequireDefault(__nccwpck_require__(30864)); + +var _ItemVersion = _interopRequireDefault(__nccwpck_require__(71931)); + +var _WebHookNotiForwarderPublicDetails = _interopRequireDefault(__nccwpck_require__(50660)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Google Cloud Locations Client. - * This is manually written for providing methods [listLocations, getLocations] to the generated client. + * The NotiForwarder model module. + * @module model/NotiForwarder + * @version 3.6.3 */ -class LocationsClient { +var NotiForwarder = /*#__PURE__*/function () { + /** + * Constructs a new NotiForwarder. + * @alias module:model/NotiForwarder + */ + function NotiForwarder() { + _classCallCheck(this, NotiForwarder); + + NotiForwarder.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(NotiForwarder, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Construct an instance of LocationsClient. - * - * @param {object} [options] - The configuration object. - * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). - * The common options are: - * @param {object} [options.credentials] - Credentials object. - * @param {string} [options.credentials.client_email] - * @param {string} [options.credentials.private_key] - * @param {string} [options.email] - Account email address. Required when - * using a .pem or .p12 keyFilename. - * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or - * .p12 key downloaded from the Google Developers Console. If you provide - * a path to a JSON file, the projectId option below is not necessary. - * NOTE: .pem and .p12 require you to specify options.email as well. - * @param {number} [options.port] - The port on which to connect to - * the remote host. - * @param {string} [options.projectId] - The project ID from the Google - * Developer's Console, e.g. 'grape-spaceship-123'. We will also check - * the environment variable GCLOUD_PROJECT for your project ID. If your - * app is running in an environment which supports - * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, - * your project ID will be detected automatically. - * @param {string} [options.apiEndpoint] - The domain name of the - * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. - * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * Constructs a NotiForwarder from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/NotiForwarder} obj Optional instance to populate. + * @return {module:model/NotiForwarder} The populated NotiForwarder instance. */ - constructor(gaxGrpc, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - opts) { - var _a, _b; - this._terminated = false; - this.descriptors = { - page: {}, - stream: {}, - longrunning: {}, - batching: {}, - }; - // Ensure that options include all the required fields. - this.gaxGrpc = gaxGrpc; - const staticMembers = this.constructor; - const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || staticMembers.servicePath; - this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint)); - const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port; - const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {}; - const fallback = (_b = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _b !== void 0 ? _b : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function'); - opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts); - // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. - if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { - opts['scopes'] = staticMembers.scopes; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new NotiForwarder(); + + if (data.hasOwnProperty('auth_type')) { + obj['auth_type'] = _ApiClient["default"].convertToType(data['auth_type'], 'String'); } - // Save options to use in initialize() method. - this._opts = opts; - // Save the auth object to the client, for use by other methods. - this.auth = gaxGrpc.auth; - // Set the default scopes in auth client if needed. - if (servicePath === staticMembers.servicePath) { - this.auth.defaultScopes = staticMembers.scopes; + + if (data.hasOwnProperty('client_id')) { + obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String'); } - // Determine the client header string. - const clientHeader = [`gax/${version}`, `gapic/${version}`]; - if (typeof process !== 'undefined' && 'versions' in process) { - clientHeader.push(`gl-node/${process.versions.node}`); + + if (data.hasOwnProperty('client_permissions')) { + obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); } - else { - clientHeader.push(`gl-web/${version}`); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - if (!opts.fallback) { - clientHeader.push(`grpc/${gaxGrpc.grpcVersion}`); + + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); } - else if (opts.fallback === 'rest') { - clientHeader.push(`rest/${gaxGrpc.grpcVersion}`); + + if (data.hasOwnProperty('endpoint')) { + obj['endpoint'] = _ApiClient["default"].convertToType(data['endpoint'], 'String'); } - if (opts.libName && opts.libVersion) { - clientHeader.push(`${opts.libName}/${opts.libVersion}`); + + if (data.hasOwnProperty('event_types')) { + obj['event_types'] = _ApiClient["default"].convertToType(data['event_types'], ['String']); } - // Load the applicable protos. - this._protos = gaxGrpc.loadProtoJSON(jsonProtos); - // Some of the methods on this service return "paged" results, - // (e.g. 50 results at a time, with tokens to get subsequent - // pages). Denote the keys used for pagination and results. - this.descriptors.page = { - listLocations: new pageDescriptor_1.PageDescriptor('pageToken', 'nextPageToken', 'locations'), - }; - // Put together the default options sent with requests. - this._defaults = gaxGrpc.constructSettings('google.cloud.location.Locations', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') }); - // Set up a dictionary of "inner API calls"; the core implementation - // of calling the API is handled in `google-gax`, with this code - // merely providing the destination and request information. - this.innerApiCalls = {}; - // Add a warn function to the client constructor so it can be easily tested. - this.warn = warnings_1.warn; - } - /** - * Initialize the client. - * Performs asynchronous operations (such as authentication) and prepares the client. - * This function will be called automatically when any class method is called for the - * first time, but if you need to initialize it before calling an actual method, - * feel free to call initialize() directly. - * - * You can await on this method if you want to make sure the client is initialized. - * - * @returns {Promise} A promise that resolves to an authenticated service stub. - */ - initialize() { - // If the client stub promise is already initialized, return immediately. - if (this.locationsStub) { - return this.locationsStub; + + if (data.hasOwnProperty('gateway_cluster_id')) { + obj['gateway_cluster_id'] = _ApiClient["default"].convertToType(data['gateway_cluster_id'], 'Number'); } - // Put together the "service stub" for - // google.cloud.location.Locations. - this.locationsStub = this.gaxGrpc.createStub(this._opts.fallback - ? this._protos.lookupService('google.cloud.location.Locations') - : // eslint-disable-next-line @typescript-eslint/no-explicit-any - this._protos.google.cloud.location.Locations, this._opts, this._providedCustomServicePath); - // Iterate over each of the methods that the service provides - // and create an API call method for each. - const locationsStubMethods = ['listLocations', 'getLocation']; - for (const methodName of locationsStubMethods) { - const callPromise = this.locationsStub.then(stub => (...args) => { - if (this._terminated) { - return Promise.reject('The client has already been closed.'); - } - const func = stub[methodName]; - return func.apply(stub, args); - }, (err) => () => { - throw err; - }); - const descriptor = this.descriptors.page[methodName] || undefined; - const apiCall = (0, createApiCall_1.createApiCall)(callPromise, this._defaults[methodName], descriptor); - this.innerApiCalls[methodName] = apiCall; + + if (data.hasOwnProperty('is_enabled')) { + obj['is_enabled'] = _ApiClient["default"].convertToType(data['is_enabled'], 'Boolean'); } - return this.locationsStub; - } - /** - * The DNS address for this API service. - * @returns {string} The DNS address for this service. - */ - static get servicePath() { - return 'cloud.googleapis.com'; - } - /** - * The DNS address for this API service - same as servicePath(), - * exists for compatibility reasons. - * @returns {string} The DNS address for this service. - */ - static get apiEndpoint() { - return 'cloud.googleapis.com'; - } - /** - * The port for this API service. - * @returns {number} The default port for this service. - */ - static get port() { - return 443; + + if (data.hasOwnProperty('last_version')) { + obj['last_version'] = _ApiClient["default"].convertToType(data['last_version'], 'Number'); + } + + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } + + if (data.hasOwnProperty('noti_forwarder_id')) { + obj['noti_forwarder_id'] = _ApiClient["default"].convertToType(data['noti_forwarder_id'], 'Number'); + } + + if (data.hasOwnProperty('noti_forwarder_name')) { + obj['noti_forwarder_name'] = _ApiClient["default"].convertToType(data['noti_forwarder_name'], 'String'); + } + + if (data.hasOwnProperty('noti_forwarder_type')) { + obj['noti_forwarder_type'] = _ApiClient["default"].convertToType(data['noti_forwarder_type'], 'String'); + } + + if (data.hasOwnProperty('noti_forwarder_versions')) { + obj['noti_forwarder_versions'] = _ApiClient["default"].convertToType(data['noti_forwarder_versions'], [_ItemVersion["default"]]); + } + + if (data.hasOwnProperty('override_url')) { + obj['override_url'] = _ApiClient["default"].convertToType(data['override_url'], 'String'); + } + + if (data.hasOwnProperty('paths')) { + obj['paths'] = _ApiClient["default"].convertToType(data['paths'], ['String']); + } + + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } + + if (data.hasOwnProperty('runner_type')) { + obj['runner_type'] = _ApiClient["default"].convertToType(data['runner_type'], 'String'); + } + + if (data.hasOwnProperty('slack_noti_forwarder_public_details')) { + obj['slack_noti_forwarder_public_details'] = _ApiClient["default"].convertToType(data['slack_noti_forwarder_public_details'], Object); + } + + if (data.hasOwnProperty('timespan_in_seconds')) { + obj['timespan_in_seconds'] = _ApiClient["default"].convertToType(data['timespan_in_seconds'], 'Number'); + } + + if (data.hasOwnProperty('to_emails')) { + obj['to_emails'] = _ApiClient["default"].convertToType(data['to_emails'], [_EmailEntry["default"]]); + } + + if (data.hasOwnProperty('user_email')) { + obj['user_email'] = _ApiClient["default"].convertToType(data['user_email'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + + if (data.hasOwnProperty('webhook_noti_forwarder_public_details')) { + obj['webhook_noti_forwarder_public_details'] = _WebHookNotiForwarderPublicDetails["default"].constructFromObject(data['webhook_noti_forwarder_public_details']); + } + + if (data.hasOwnProperty('with_customer_fragment')) { + obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); + } + } + + return obj; } + }]); + + return NotiForwarder; +}(); +/** + * @member {String} auth_type + */ + + +NotiForwarder.prototype['auth_type'] = undefined; +/** + * Auth - JWT + * @member {String} client_id + */ + +NotiForwarder.prototype['client_id'] = undefined; +/** + * @member {Array.} client_permissions + */ + +NotiForwarder.prototype['client_permissions'] = undefined; +/** + * @member {String} comment + */ + +NotiForwarder.prototype['comment'] = undefined; +/** + * @member {Date} creation_date + */ + +NotiForwarder.prototype['creation_date'] = undefined; +/** + * @member {String} endpoint + */ + +NotiForwarder.prototype['endpoint'] = undefined; +/** + * @member {Array.} event_types + */ + +NotiForwarder.prototype['event_types'] = undefined; +/** + * @member {Number} gateway_cluster_id + */ + +NotiForwarder.prototype['gateway_cluster_id'] = undefined; +/** + * @member {Boolean} is_enabled + */ + +NotiForwarder.prototype['is_enabled'] = undefined; +/** + * @member {Number} last_version + */ + +NotiForwarder.prototype['last_version'] = undefined; +/** + * @member {Date} modification_date + */ + +NotiForwarder.prototype['modification_date'] = undefined; +/** + * @member {Number} noti_forwarder_id + */ + +NotiForwarder.prototype['noti_forwarder_id'] = undefined; +/** + * @member {String} noti_forwarder_name + */ + +NotiForwarder.prototype['noti_forwarder_name'] = undefined; +/** + * @member {String} noti_forwarder_type + */ + +NotiForwarder.prototype['noti_forwarder_type'] = undefined; +/** + * @member {Array.} noti_forwarder_versions + */ + +NotiForwarder.prototype['noti_forwarder_versions'] = undefined; +/** + * @member {String} override_url + */ + +NotiForwarder.prototype['override_url'] = undefined; +/** + * @member {Array.} paths + */ + +NotiForwarder.prototype['paths'] = undefined; +/** + * @member {String} protection_key + */ + +NotiForwarder.prototype['protection_key'] = undefined; +/** + * @member {String} runner_type + */ + +NotiForwarder.prototype['runner_type'] = undefined; +/** + * @member {Object} slack_noti_forwarder_public_details + */ + +NotiForwarder.prototype['slack_noti_forwarder_public_details'] = undefined; +/** + * @member {Number} timespan_in_seconds + */ + +NotiForwarder.prototype['timespan_in_seconds'] = undefined; +/** + * @member {Array.} to_emails + */ + +NotiForwarder.prototype['to_emails'] = undefined; +/** + * @member {String} user_email + */ + +NotiForwarder.prototype['user_email'] = undefined; +/** + * Auth - User Password + * @member {String} username + */ + +NotiForwarder.prototype['username'] = undefined; +/** + * @member {module:model/WebHookNotiForwarderPublicDetails} webhook_noti_forwarder_public_details + */ + +NotiForwarder.prototype['webhook_noti_forwarder_public_details'] = undefined; +/** + * @member {Boolean} with_customer_fragment + */ + +NotiForwarder.prototype['with_customer_fragment'] = undefined; +var _default = NotiForwarder; +exports["default"] = _default; + +/***/ }), + +/***/ 63338: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _OAuth2CustomClaim = _interopRequireDefault(__nccwpck_require__(41338)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The OAuth2AccessRules model module. + * @module model/OAuth2AccessRules + * @version 3.6.3 + */ +var OAuth2AccessRules = /*#__PURE__*/function () { + /** + * Constructs a new OAuth2AccessRules. + * OAuth2AccessRules contains access rules specific to OAuth2 authentication method. + * @alias module:model/OAuth2AccessRules + */ + function OAuth2AccessRules() { + _classCallCheck(this, OAuth2AccessRules); + + OAuth2AccessRules.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(OAuth2AccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * The scopes needed to make gRPC calls for every method defined - * in this service. - * @returns {string[]} List of default scopes. + * Constructs a OAuth2AccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OAuth2AccessRules} obj Optional instance to populate. + * @return {module:model/OAuth2AccessRules} The populated OAuth2AccessRules instance. */ - static get scopes() { - return ['https://www.googleapis.com/auth/cloud-platform']; - } - getProjectId(callback) { - if (callback) { - this.auth.getProjectId(callback); - return; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new OAuth2AccessRules(); + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); } - return this.auth.getProjectId(); - } - /** - * Gets information about a location. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Resource name for the location. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getLocation(request); - */ - getLocation(request, optionsOrCallback, callback) { - request = request || {}; - let options; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; + + if (data.hasOwnProperty('authorized_gw_cluster_name')) { + obj['authorized_gw_cluster_name'] = _ApiClient["default"].convertToType(data['authorized_gw_cluster_name'], 'String'); } - else { - options = optionsOrCallback; + + if (data.hasOwnProperty('bound_claims')) { + obj['bound_claims'] = _ApiClient["default"].convertToType(data['bound_claims'], [_OAuth2CustomClaim["default"]]); } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - routingHeader.fromParams({ - name: request.name || '', - }); - this.initialize(); - return this.innerApiCalls.getLocation(request, options, callback); - } - /** - * Lists information about the supported locations for this service. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * The resource that owns the locations collection, if applicable. - * @param {string} request.filter - * The standard list filter. - * @param {number} request.pageSize - * The standard list page size. - * @param {string} request.pageToken - * The standard list page token. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Location]{@link google.cloud.location.Location}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listLocationsAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination) - * for more details and examples. - */ - listLocations(request, optionsOrCallback, callback) { - request = request || {}; - let options; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; + + if (data.hasOwnProperty('bound_clients_id')) { + obj['bound_clients_id'] = _ApiClient["default"].convertToType(data['bound_clients_id'], ['String']); } - else { - options = optionsOrCallback; + + if (data.hasOwnProperty('certificate')) { + obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - routingHeader.fromParams({ - name: request.name || '', - }); - this.initialize(); - return this.innerApiCalls.listLocations(request, options, callback); - } - /** - * Equivalent to `listLocations`, but returns an iterable object. - * - * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * The resource that owns the locations collection, if applicable. - * @param {string} request.filter - * The standard list filter. - * @param {number} request.pageSize - * The standard list page size. - * @param {string} request.pageToken - * The standard list page token. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Object} - * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). - * When you iterate the returned iterable, each element will be an object representing - * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, - * so you can stop the iteration when you don't need more results. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination) - * for more details and examples. - * @example - * const iterable = client.listLocationsAsync(request); - * for await (const response of iterable) { - * // process response - * } - */ - listLocationsAsync(request, options) { - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - routingHeader.fromParams({ - name: request.name || '', - }); - options = options || {}; - const callSettings = new gax.CallSettings(options); - this.initialize(); - return this.descriptors.page.listLocations.asyncIterate(this.innerApiCalls['listLocations'], request, callSettings); - } - /** - * Terminate the gRPC channel and close the client. - * - * The client will no longer be usable and all future behavior is undefined. - * @returns {Promise} A promise that resolves when the client is closed. - */ - close() { - this.initialize(); - if (!this._terminated) { - return this.locationsStub.then(stub => { - this._terminated = true; - stub.close(); - }); + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); } - return Promise.resolve(); + + if (data.hasOwnProperty('jwks_json_data')) { + obj['jwks_json_data'] = _ApiClient["default"].convertToType(data['jwks_json_data'], 'String'); + } + + if (data.hasOwnProperty('jwks_uri')) { + obj['jwks_uri'] = _ApiClient["default"].convertToType(data['jwks_uri'], 'String'); + } + + if (data.hasOwnProperty('unique_identifier')) { + obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); + } + } + + return obj; } -} -exports.LocationsClient = LocationsClient; -//# sourceMappingURL=locationService.js.map + }]); + + return OAuth2AccessRules; +}(); +/** + * The audience in the JWT. + * @member {String} audience + */ + + +OAuth2AccessRules.prototype['audience'] = undefined; +/** + * The gateway cluster name that is authorized to access JWKeySetURL + * @member {String} authorized_gw_cluster_name + */ + +OAuth2AccessRules.prototype['authorized_gw_cluster_name'] = undefined; +/** + * The claims that login is restricted to. + * @member {Array.} bound_claims + */ + +OAuth2AccessRules.prototype['bound_claims'] = undefined; +/** + * The clients ids that login is restricted to. + * @member {Array.} bound_clients_id + */ + +OAuth2AccessRules.prototype['bound_clients_id'] = undefined; +/** + * Certificate to use when calling jwks_uri from the gateway. in PEM format + * @member {String} certificate + */ + +OAuth2AccessRules.prototype['certificate'] = undefined; +/** + * Issuer URL + * @member {String} issuer + */ + +OAuth2AccessRules.prototype['issuer'] = undefined; +/** + * The JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. base64 encoded string + * @member {String} jwks_json_data + */ + +OAuth2AccessRules.prototype['jwks_json_data'] = undefined; +/** + * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. + * @member {String} jwks_uri + */ + +OAuth2AccessRules.prototype['jwks_uri'] = undefined; +/** + * A unique identifier to distinguish different users + * @member {String} unique_identifier + */ + +OAuth2AccessRules.prototype['unique_identifier'] = undefined; +var _default = OAuth2AccessRules; +exports["default"] = _default; /***/ }), -/***/ 73571: +/***/ 41338: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * The OAuth2CustomClaim model module. + * @module model/OAuth2CustomClaim + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LongrunningApiCaller = void 0; -const call_1 = __nccwpck_require__(49746); -const gax_1 = __nccwpck_require__(4996); -const longrunning_1 = __nccwpck_require__(76902); -class LongrunningApiCaller { +var OAuth2CustomClaim = /*#__PURE__*/function () { + /** + * Constructs a new OAuth2CustomClaim. + * OAuth2CustomClaim is a custom claim specific to OAuth2 authentication method. + * @alias module:model/OAuth2CustomClaim + */ + function OAuth2CustomClaim() { + _classCallCheck(this, OAuth2CustomClaim); + + OAuth2CustomClaim.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(OAuth2CustomClaim, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Creates an API caller that performs polling on a long running operation. - * - * @private - * @constructor - * @param {LongRunningDescriptor} longrunningDescriptor - Holds the - * decoders used for unpacking responses and the operationsClient - * used for polling the operation. + * Constructs a OAuth2CustomClaim from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OAuth2CustomClaim} obj Optional instance to populate. + * @return {module:model/OAuth2CustomClaim} The populated OAuth2CustomClaim instance. */ - constructor(longrunningDescriptor) { - this.longrunningDescriptor = longrunningDescriptor; - } - init(callback) { - if (callback) { - return new call_1.OngoingCall(callback); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new OAuth2CustomClaim(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - return new call_1.OngoingCallPromise(); - } - wrap(func) { - return func; - } - call(apiCall, argument, settings, canceller) { - canceller.call((argument, callback) => { - return this._wrapOperation(apiCall, settings, argument, callback); - }, argument); - } - _wrapOperation(apiCall, settings, argument, callback) { - let backoffSettings = settings.longrunning; - if (!backoffSettings) { - backoffSettings = (0, gax_1.createDefaultBackoffSettings)(); + + if (data.hasOwnProperty('values')) { + obj['values'] = _ApiClient["default"].convertToType(data['values'], ['String']); } - const longrunningDescriptor = this.longrunningDescriptor; - return apiCall(argument, (err, rawResponse) => { - if (err) { - callback(err, null, null, rawResponse); - return; - } - const operation = new longrunning_1.Operation(rawResponse, longrunningDescriptor, backoffSettings, settings); - callback(null, operation, rawResponse); - }); - } - fail(canceller, err) { - canceller.callback(err); - } - result(canceller) { - return canceller.promise; + } + + return obj; } -} -exports.LongrunningApiCaller = LongrunningApiCaller; -//# sourceMappingURL=longRunningApiCaller.js.map + }]); + + return OAuth2CustomClaim; +}(); +/** + * @member {String} name + */ + + +OAuth2CustomClaim.prototype['name'] = undefined; +/** + * @member {Array.} values + */ + +OAuth2CustomClaim.prototype['values'] = undefined; +var _default = OAuth2CustomClaim; +exports["default"] = _default; /***/ }), -/***/ 99199: +/***/ 18334: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * The OCIAccessRules model module. + * @module model/OCIAccessRules + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LongRunningDescriptor = void 0; -const longRunningApiCaller_1 = __nccwpck_require__(73571); +var OCIAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new OCIAccessRules. + * OCIAccessRules contains access rules specific to Oracle cloud instance / user authentication + * @alias module:model/OCIAccessRules + */ + function OCIAccessRules() { + _classCallCheck(this, OCIAccessRules); + + OCIAccessRules.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(OCIAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a OCIAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OCIAccessRules} obj Optional instance to populate. + * @return {module:model/OCIAccessRules} The populated OCIAccessRules instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new OCIAccessRules(); + + if (data.hasOwnProperty('group_ocids')) { + obj['group_ocids'] = _ApiClient["default"].convertToType(data['group_ocids'], ['String']); + } + + if (data.hasOwnProperty('tenant_ocid')) { + obj['tenant_ocid'] = _ApiClient["default"].convertToType(data['tenant_ocid'], 'String'); + } + } + + return obj; + } + }]); + + return OCIAccessRules; +}(); /** - * A descriptor for long-running operations. + * @member {Array.} group_ocids */ -class LongRunningDescriptor { - constructor(operationsClient, responseDecoder, metadataDecoder) { - this.operationsClient = operationsClient; - this.responseDecoder = responseDecoder; - this.metadataDecoder = metadataDecoder; - } - getApiCaller() { - return new longRunningApiCaller_1.LongrunningApiCaller(this); - } -} -exports.LongRunningDescriptor = LongRunningDescriptor; -//# sourceMappingURL=longRunningDescriptor.js.map + + +OCIAccessRules.prototype['group_ocids'] = undefined; +/** + * @member {String} tenant_ocid + */ + +OCIAccessRules.prototype['tenant_ocid'] = undefined; +var _default = OCIAccessRules; +exports["default"] = _default; /***/ }), -/***/ 76902: +/***/ 53344: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _OIDCCustomClaim = _interopRequireDefault(__nccwpck_require__(87440)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * The OIDCAccessRules model module. + * @module model/OIDCAccessRules + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Operation = void 0; -exports.operation = operation; -const events_1 = __nccwpck_require__(24434); -const status_1 = __nccwpck_require__(69124); -const googleError_1 = __nccwpck_require__(34775); -const operationProtos = __nccwpck_require__(99467); -class Operation extends events_1.EventEmitter { - /** - * Wrapper for a google.longrunnung.Operation. - * - * @constructor - * - * @param {google.longrunning.Operation} grpcOp - The operation to be wrapped. - * @param {LongRunningDescriptor} longrunningDescriptor - This defines the - * operations service client and unpacking mechanisms for the operation. - * @param {BackoffSettings} backoffSettings - The backoff settings used in - * in polling the operation. - * @param {CallOptions} callOptions - CallOptions used in making get operation - * requests. - */ - constructor(grpcOp, longrunningDescriptor, backoffSettings, callOptions) { - super(); - this.completeListeners = 0; - this.hasActiveListeners = false; - this.latestResponse = grpcOp; - this.name = this.latestResponse.name; - this.done = this.latestResponse.done; - this.error = this.latestResponse.error; - this.longrunningDescriptor = longrunningDescriptor; - this.result = null; - this.metadata = null; - this.backoffSettings = backoffSettings; - this._unpackResponse(grpcOp); - this._listenForEvents(); - this._callOptions = callOptions; - } - /** - * Begin listening for events on the operation. This method keeps track of how - * many "complete" listeners are registered and removed, making sure polling - * is handled automatically. - * - * As long as there is one active "complete" listener, the connection is open. - * When there are no more listeners, the polling stops. - * - * @private - */ - _listenForEvents() { - this.on('newListener', event => { - if (event === 'complete') { - this.completeListeners++; - if (!this.hasActiveListeners) { - this.hasActiveListeners = true; - this.startPolling_(); - } - } - }); - this.on('removeListener', event => { - if (event === 'complete' && --this.completeListeners === 0) { - this.hasActiveListeners = false; - } - }); - } +var OIDCAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new OIDCAccessRules. + * OIDCAccessRules contains access rules specific to Open Id Connect authentication method. + * @alias module:model/OIDCAccessRules + */ + function OIDCAccessRules() { + _classCallCheck(this, OIDCAccessRules); + + OIDCAccessRules.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(OIDCAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Cancels current polling api call and cancels the operation. - * - * @return {Promise} the promise of the OperationsClient#cancelOperation api - * request. + * Constructs a OIDCAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OIDCAccessRules} obj Optional instance to populate. + * @return {module:model/OIDCAccessRules} The populated OIDCAccessRules instance. */ - cancel() { - if (this.currentCallPromise_) { - this.currentCallPromise_.cancel(); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new OIDCAccessRules(); + + if (data.hasOwnProperty('allowed_redirect_URIs')) { + obj['allowed_redirect_URIs'] = _ApiClient["default"].convertToType(data['allowed_redirect_URIs'], ['String']); } - const operationsClient = this.longrunningDescriptor.operationsClient; - const cancelRequest = new operationProtos.google.longrunning.CancelOperationRequest(); - cancelRequest.name = this.latestResponse.name; - return operationsClient.cancelOperation(cancelRequest); - } - getOperation(callback) { - // eslint-disable-next-line @typescript-eslint/no-this-alias - const self = this; - const operationsClient = this.longrunningDescriptor.operationsClient; - function promisifyResponse() { - if (!callback) { - return new Promise((resolve, reject) => { - if (self.latestResponse.error) { - const error = new googleError_1.GoogleError(self.latestResponse.error.message); - error.code = self.latestResponse.error.code; - reject(error); - } - else { - resolve([self.result, self.metadata, self.latestResponse]); - } - }); - } - return; + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); } - if (this.latestResponse.done) { - this._unpackResponse(this.latestResponse, callback); - return promisifyResponse(); + + if (data.hasOwnProperty('bound_claims')) { + obj['bound_claims'] = _ApiClient["default"].convertToType(data['bound_claims'], [_OIDCCustomClaim["default"]]); } - const request = new operationProtos.google.longrunning.GetOperationRequest(); - request.name = this.latestResponse.name; - this.currentCallPromise_ = operationsClient.getOperationInternal(request, this._callOptions); - const noCallbackPromise = this.currentCallPromise_.then(responses => { - self.latestResponse = responses[0]; - self._unpackResponse(responses[0], callback); - return promisifyResponse(); - }, (err) => { - if (callback) { - callback(err); - return; - } - return Promise.reject(err); - }); - if (!callback) { - return noCallbackPromise; + + if (data.hasOwnProperty('client_id')) { + obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String'); } - } - _unpackResponse(op, callback) { - const responseDecoder = this.longrunningDescriptor.responseDecoder; - const metadataDecoder = this.longrunningDescriptor.metadataDecoder; - let response; - let metadata; - if (op.done) { - if (op.result === 'error') { - const error = new googleError_1.GoogleError(op.error.message); - error.code = op.error.code; - this.error = error; - if (callback) { - callback(error); - } - return; - } - if (responseDecoder && op.response) { - this.response = op.response; - response = responseDecoder(op.response.value); - this.result = response; - this.done = true; - } + + if (data.hasOwnProperty('client_secret')) { + obj['client_secret'] = _ApiClient["default"].convertToType(data['client_secret'], 'String'); } - if (metadataDecoder && op.metadata) { - metadata = metadataDecoder(op.metadata.value); - this.metadata = metadata; + + if (data.hasOwnProperty('is_internal')) { + obj['is_internal'] = _ApiClient["default"].convertToType(data['is_internal'], 'Boolean'); } - if (callback) { - callback(null, response, metadata, op); + + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); } - } - /** - * Poll `getOperation` to check the operation's status. This runs a loop to - * ping using the backoff strategy specified at initialization. - * - * Note: This method is automatically called once a "complete" event handler - * is registered on the operation. - * - * @private - */ - startPolling_() { - // eslint-disable-next-line @typescript-eslint/no-this-alias - const self = this; - let now = new Date(); - const delayMult = this.backoffSettings.retryDelayMultiplier; - const maxDelay = this.backoffSettings.maxRetryDelayMillis; - let delay = this.backoffSettings.initialRetryDelayMillis; - let deadline = Infinity; - if (this.backoffSettings.totalTimeoutMillis) { - deadline = now.getTime() + this.backoffSettings.totalTimeoutMillis; + + if (data.hasOwnProperty('required_scopes')) { + obj['required_scopes'] = _ApiClient["default"].convertToType(data['required_scopes'], ['String']); } - let previousMetadataBytes; - if (this.latestResponse.metadata) { - previousMetadataBytes = this.latestResponse.metadata.value; + + if (data.hasOwnProperty('required_scopes_prefix')) { + obj['required_scopes_prefix'] = _ApiClient["default"].convertToType(data['required_scopes_prefix'], 'String'); } - // eslint-disable-next-line @typescript-eslint/no-explicit-any - function emit(event, ...args) { - self.emit(event, ...args); + + if (data.hasOwnProperty('unique_identifier')) { + obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); } - // Helper function to replace nodejs buffer's equals() - function arrayEquals(a, b) { - if (a.byteLength !== b.byteLength) { - return false; - } - for (let i = 0; i < a.byteLength; ++i) { - if (a[i] !== b[i]) - return false; - } - return true; + } + + return obj; + } + }]); + + return OIDCAccessRules; +}(); +/** + * Allowed redirect URIs after the authentication + * @member {Array.} allowed_redirect_URIs + */ + + +OIDCAccessRules.prototype['allowed_redirect_URIs'] = undefined; +/** + * Audience claim to be used as part of the authentication flow. In case set, it must match the one configured on the Identity Provider's Application + * @member {String} audience + */ + +OIDCAccessRules.prototype['audience'] = undefined; +/** + * The claims that login is restricted to. + * @member {Array.} bound_claims + */ + +OIDCAccessRules.prototype['bound_claims'] = undefined; +/** + * Client ID + * @member {String} client_id + */ + +OIDCAccessRules.prototype['client_id'] = undefined; +/** + * Client Secret + * @member {String} client_secret + */ + +OIDCAccessRules.prototype['client_secret'] = undefined; +/** + * IsInternal indicates whether this is an internal Auth Method where the client has no control over it, or it was created by the client e.g - Sign In with Google will create an OIDC Auth Method with IsInternal=true + * @member {Boolean} is_internal + */ + +OIDCAccessRules.prototype['is_internal'] = undefined; +/** + * Issuer URL + * @member {String} issuer + */ + +OIDCAccessRules.prototype['issuer'] = undefined; +/** + * A list of required scopes to request from the oidc provider, and to check on the token + * @member {Array.} required_scopes + */ + +OIDCAccessRules.prototype['required_scopes'] = undefined; +/** + * A prefix to add to the required scopes (for example, azures' Application ID URI) + * @member {String} required_scopes_prefix + */ + +OIDCAccessRules.prototype['required_scopes_prefix'] = undefined; +/** + * A unique identifier to distinguish different users + * @member {String} unique_identifier + */ + +OIDCAccessRules.prototype['unique_identifier'] = undefined; +var _default = OIDCAccessRules; +exports["default"] = _default; + +/***/ }), + +/***/ 87440: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The OIDCCustomClaim model module. + * @module model/OIDCCustomClaim + * @version 3.6.3 + */ +var OIDCCustomClaim = /*#__PURE__*/function () { + /** + * Constructs a new OIDCCustomClaim. + * OIDCCustomClaim is a custom claim specific to OIDC authentication method. + * @alias module:model/OIDCCustomClaim + */ + function OIDCCustomClaim() { + _classCallCheck(this, OIDCCustomClaim); + + OIDCCustomClaim.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(OIDCCustomClaim, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a OIDCCustomClaim from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OIDCCustomClaim} obj Optional instance to populate. + * @return {module:model/OIDCCustomClaim} The populated OIDCCustomClaim instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new OIDCCustomClaim(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - function retry() { - if (!self.hasActiveListeners) { - return; - } - if (now.getTime() >= deadline) { - const error = new googleError_1.GoogleError('Total timeout exceeded before any response was received'); - error.code = status_1.Status.DEADLINE_EXCEEDED; - setImmediate(emit, 'error', error); - return; - } - self.getOperation((err, result, metadata, rawResponse) => { - if (err) { - setImmediate(emit, 'error', err); - return; - } - if (!result) { - if (rawResponse.metadata && - (!previousMetadataBytes || - (rawResponse && - !arrayEquals(rawResponse.metadata.value, previousMetadataBytes)))) { - setImmediate(emit, 'progress', metadata, rawResponse); - previousMetadataBytes = rawResponse.metadata.value; - } - // special case: some APIs fail to set either result or error - // but set done = true (e.g. speech with silent file). - // Some APIs just use this for the normal completion - // (e.g. nodejs-contact-center-insights), so let's just return - // an empty response in this case. - if (rawResponse.done) { - setImmediate(emit, 'complete', {}, metadata, rawResponse); - return; - } - setTimeout(() => { - now = new Date(); - delay = Math.min(delay * delayMult, maxDelay); - retry(); - }, delay); - return; - } - setImmediate(emit, 'complete', result, metadata, rawResponse); - }); + + if (data.hasOwnProperty('values')) { + obj['values'] = _ApiClient["default"].convertToType(data['values'], ['String']); } - retry(); + } + + return obj; } + }]); + + return OIDCCustomClaim; +}(); +/** + * @member {String} name + */ + + +OIDCCustomClaim.prototype['name'] = undefined; +/** + * @member {Array.} values + */ + +OIDCCustomClaim.prototype['values'] = undefined; +var _default = OIDCCustomClaim; +exports["default"] = _default; + +/***/ }), + +/***/ 82163: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The ObjectVersionSettingsOutput model module. + * @module model/ObjectVersionSettingsOutput + * @version 3.6.3 + */ +var ObjectVersionSettingsOutput = /*#__PURE__*/function () { + /** + * Constructs a new ObjectVersionSettingsOutput. + * @alias module:model/ObjectVersionSettingsOutput + */ + function ObjectVersionSettingsOutput() { + _classCallCheck(this, ObjectVersionSettingsOutput); + + ObjectVersionSettingsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ObjectVersionSettingsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Wraps the `complete` and `error` events in a Promise. - * - * @return {promise} - Promise that resolves on operation completion and rejects - * on operation error. + * Constructs a ObjectVersionSettingsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ObjectVersionSettingsOutput} obj Optional instance to populate. + * @return {module:model/ObjectVersionSettingsOutput} The populated ObjectVersionSettingsOutput instance. */ - promise() { - return new Promise((resolve, reject) => { - this.on('error', reject).on('complete', (result, metadata, rawResponse) => { - resolve([result, metadata, rawResponse]); - }); - }); - } -} -exports.Operation = Operation; -/** - * Method used to create Operation objects. - * - * @constructor - * - * @param {google.longrunning.Operation} op - The operation to be wrapped. - * @param {LongRunningDescriptor} longrunningDescriptor - This defines the - * operations service client and unpacking mechanisms for the operation. - * @param {BackoffSettings} backoffSettings - The backoff settings used in - * in polling the operation. - * @param {CallOptions=} callOptions - CallOptions used in making get operation - * requests. - */ -function operation(op, longrunningDescriptor, backoffSettings, callOptions) { - return new Operation(op, longrunningDescriptor, backoffSettings, callOptions); -} -//# sourceMappingURL=longrunning.js.map -/***/ }), + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectVersionSettingsOutput(); -/***/ 51161: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('item-type')) { + obj['item-type'] = _ApiClient["default"].convertToType(data['item-type'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + } + + return obj; + } + }]); + return ObjectVersionSettingsOutput; +}(); /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * VersionSettingsObjectType defines object types for account version settings + * @member {String} item-type */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NormalApiCaller = void 0; -const call_1 = __nccwpck_require__(49746); + + +ObjectVersionSettingsOutput.prototype['item-type'] = undefined; /** - * Creates an API caller for regular unary methods. + * @member {String} max-versions */ -class NormalApiCaller { - init(callback) { - if (callback) { - return new call_1.OngoingCall(callback); - } - return new call_1.OngoingCallPromise(); - } - wrap(func) { - return func; - } - call(apiCall, argument, settings, canceller) { - canceller.call(apiCall, argument); - } - fail(canceller, err) { - canceller.callback(err); - } - result(canceller) { - return canceller.promise; - } -} -exports.NormalApiCaller = NormalApiCaller; -//# sourceMappingURL=normalApiCaller.js.map + +ObjectVersionSettingsOutput.prototype['max-versions'] = undefined; +var _default = ObjectVersionSettingsOutput; +exports["default"] = _default; /***/ }), -/***/ 61789: +/***/ 2338: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _AccessOrGroupPermissionAssignment = _interopRequireDefault(__nccwpck_require__(44466)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.retryable = retryable; -const status_1 = __nccwpck_require__(69124); -const googleError_1 = __nccwpck_require__(34775); -const timeout_1 = __nccwpck_require__(86328); -/** - * Creates a function equivalent to func, but that retries on certain - * exceptions. - * - * @private - * - * @param {GRPCCall} func - A function. - * @param {RetryOptions} retry - Configures the exceptions upon which the - * function eshould retry, and the parameters to the exponential backoff retry - * algorithm. - * @param {GRPCCallOtherArgs} otherArgs - the additional arguments to be passed to func. - * @return {SimpleCallbackFunction} A function that will retry. + * The OidcClientInfo model module. + * @module model/OidcClientInfo + * @version 3.6.3 */ -function retryable(func, retry, otherArgs, apiName) { - const delayMult = retry.backoffSettings.retryDelayMultiplier; - const maxDelay = retry.backoffSettings.maxRetryDelayMillis; - const timeoutMult = retry.backoffSettings.rpcTimeoutMultiplier; - const maxTimeout = retry.backoffSettings.maxRpcTimeoutMillis; - let delay = retry.backoffSettings.initialRetryDelayMillis; - let timeout = retry.backoffSettings.initialRpcTimeoutMillis; +var OidcClientInfo = /*#__PURE__*/function () { + /** + * Constructs a new OidcClientInfo. + * @alias module:model/OidcClientInfo + */ + function OidcClientInfo() { + _classCallCheck(this, OidcClientInfo); + + OidcClientInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(OidcClientInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Equivalent to ``func``, but retries upon transient failure. - * - * Retrying is done through an exponential backoff algorithm configured - * by the options in ``retry``. - * @param {RequestType} argument The request object. - * @param {APICallback} callback The callback. - * @return {GRPCCall} + * Constructs a OidcClientInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OidcClientInfo} obj Optional instance to populate. + * @return {module:model/OidcClientInfo} The populated OidcClientInfo instance. */ - return (argument, callback) => { - let canceller; - let timeoutId; - let now = new Date(); - let deadline; - if (retry.backoffSettings.totalTimeoutMillis) { - deadline = now.getTime() + retry.backoffSettings.totalTimeoutMillis; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new OidcClientInfo(); + + if (data.hasOwnProperty('access_permission_assignment')) { + obj['access_permission_assignment'] = _ApiClient["default"].convertToType(data['access_permission_assignment'], [_AccessOrGroupPermissionAssignment["default"]]); } - let retries = 0; - const maxRetries = retry.backoffSettings.maxRetries; - // TODO: define A/B testing values for retry behaviors. - /** Repeat the API call as long as necessary. */ - function repeat(err) { - timeoutId = null; - if (deadline && now.getTime() >= deadline) { - const error = new googleError_1.GoogleError(`Total timeout of API ${apiName} exceeded ${retry.backoffSettings.totalTimeoutMillis} milliseconds ${err ? `retrying error ${err} ` : ''} before any response was received.`); - error.code = status_1.Status.DEADLINE_EXCEEDED; - callback(error); - return; - } - if (retries && retries >= maxRetries) { - const error = new googleError_1.GoogleError('Exceeded maximum number of retries ' + - (err ? `retrying error ${err} ` : '') + - 'before any response was received'); - error.code = status_1.Status.DEADLINE_EXCEEDED; - callback(error); - return; - } - retries++; - let lastError = err; - const toCall = (0, timeout_1.addTimeoutArg)(func, timeout, otherArgs); - canceller = toCall(argument, (err, response, next, rawResponse) => { - // Save only the error before deadline exceeded - if (err && err.code !== 4) { - lastError = err; - } - if (!err) { - callback(null, response, next, rawResponse); - return; - } - canceller = null; - if (retry.retryCodes.length > 0 && - retry.retryCodes.indexOf(err.code) < 0) { - err.note = - 'Exception occurred in retry method that was ' + - 'not classified as transient'; - callback(err); - } - else { - const toSleep = Math.random() * delay; - timeoutId = setTimeout(() => { - now = new Date(); - delay = Math.min(delay * delayMult, maxDelay); - const timeoutCal = timeout && timeoutMult ? timeout * timeoutMult : 0; - const rpcTimeout = maxTimeout ? maxTimeout : 0; - const newDeadline = deadline ? deadline - now.getTime() : 0; - timeout = Math.min(timeoutCal, rpcTimeout, newDeadline); - repeat(lastError); - }, toSleep); - } - }); - if (canceller instanceof Promise) { - canceller.catch(err => { - callback(new googleError_1.GoogleError(err)); - }); - } + + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], ['String']); } - if (maxRetries && deadline) { - const error = new googleError_1.GoogleError('Cannot set both totalTimeoutMillis and maxRetries ' + - 'in backoffSettings.'); - error.code = status_1.Status.INVALID_ARGUMENT; - callback(error); + + if (data.hasOwnProperty('client_id')) { + obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String'); } - else { - repeat(); + + if (data.hasOwnProperty('grant_types')) { + obj['grant_types'] = _ApiClient["default"].convertToType(data['grant_types'], ['String']); } - return { - cancel() { - if (timeoutId) { - clearTimeout(timeoutId); - } - if (canceller) { - canceller.cancel(); - } - else { - const error = new googleError_1.GoogleError('cancelled'); - error.code = status_1.Status.CANCELLED; - callback(error); - } - }, - }; - }; -} -//# sourceMappingURL=retries.js.map -/***/ }), + if (data.hasOwnProperty('issuer_url')) { + obj['issuer_url'] = _ApiClient["default"].convertToType(data['issuer_url'], 'String'); + } -/***/ 86328: -/***/ ((__unused_webpack_module, exports) => { + if (data.hasOwnProperty('logout_uris')) { + obj['logout_uris'] = _ApiClient["default"].convertToType(data['logout_uris'], ['String']); + } -"use strict"; + if (data.hasOwnProperty('public')) { + obj['public'] = _ApiClient["default"].convertToType(data['public'], 'Boolean'); + } + + if (data.hasOwnProperty('redirect_uris')) { + obj['redirect_uris'] = _ApiClient["default"].convertToType(data['redirect_uris'], ['String']); + } + + if (data.hasOwnProperty('response_types')) { + obj['response_types'] = _ApiClient["default"].convertToType(data['response_types'], ['String']); + } + + if (data.hasOwnProperty('scopes')) { + obj['scopes'] = _ApiClient["default"].convertToType(data['scopes'], ['String']); + } + } + return obj; + } + }]); + + return OidcClientInfo; +}(); /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @member {Array.} access_permission_assignment */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.addTimeoutArg = addTimeoutArg; + + +OidcClientInfo.prototype['access_permission_assignment'] = undefined; /** - * Updates func so that it gets called with the timeout as its final arg. - * - * This converts a function, func, into another function with updated deadline. - * - * @private - * - * @param {GRPCCall} func - a function to be updated. - * @param {number} timeout - to be added to the original function as it final - * positional arg. - * @param {Object} otherArgs - the additional arguments to be passed to func. - * @param {Object=} abTests - the A/B testing key/value pairs. - * @return {function(Object, APICallback)} - * the function with other arguments and the timeout. + * @member {Array.} audience */ -function addTimeoutArg(func, timeout, otherArgs, abTests) { - // TODO: this assumes the other arguments consist of metadata and options, - // which is specific to gRPC calls. Remove the hidden dependency on gRPC. - return (argument, callback) => { - const now = new Date(); - const options = otherArgs.options || {}; - options.deadline = new Date(now.getTime() + timeout); - const metadata = otherArgs.metadataBuilder - ? otherArgs.metadataBuilder(abTests, otherArgs.headers || {}) - : null; - return func(argument, metadata, options, callback); - }; -} -//# sourceMappingURL=timeout.js.map -/***/ }), +OidcClientInfo.prototype['audience'] = undefined; +/** + * @member {String} client_id + */ -/***/ 99463: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +OidcClientInfo.prototype['client_id'] = undefined; +/** + * @member {Array.} grant_types + */ -"use strict"; +OidcClientInfo.prototype['grant_types'] = undefined; +/** + * @member {String} issuer_url + */ +OidcClientInfo.prototype['issuer_url'] = undefined; /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @member {Array.} logout_uris */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.OperationsClientBuilder = exports.OperationsClient = exports.ALL_SCOPES = exports.SERVICE_ADDRESS = void 0; -const createApiCall_1 = __nccwpck_require__(42236); -const descriptor_1 = __nccwpck_require__(65151); -const gax = __nccwpck_require__(4996); -const configData = __nccwpck_require__(25365); -const operationProtoJson = __nccwpck_require__(9961); -const transcoding_1 = __nccwpck_require__(976); -exports.SERVICE_ADDRESS = 'longrunning.googleapis.com'; -const version = (__nccwpck_require__(57564).version); -const DEFAULT_SERVICE_PORT = 443; -const CODE_GEN_NAME_VERSION = 'gapic/0.7.1'; + +OidcClientInfo.prototype['logout_uris'] = undefined; /** - * The scopes needed to make gRPC calls to all of the methods defined in - * this service. + * @member {Boolean} public */ -exports.ALL_SCOPES = []; + +OidcClientInfo.prototype['public'] = undefined; /** - * Manages long-running operations with an API service. - * - * When an API method normally takes long time to complete, it can be designed - * to return {@link Operation} to the client, and the client can use this - * interface to receive the real response asynchronously by polling the - * operation resource, or pass the operation resource to another API (such as - * Google Cloud Pub/Sub API) to receive the response. Any API service that - * returns long-running operations should implement the `Operations` interface - * so developers can have a consistent client experience. - * - * This will be created through a builder function which can be obtained by the - * module. See the following example of how to initialize the module and how to - * access to the builder. - * @see {@link operationsClient} - * - * @class + * @member {Array.} redirect_uris */ -class OperationsClient { - constructor(gaxGrpc, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - operationsProtos, options) { - const opts = Object.assign({ - servicePath: exports.SERVICE_ADDRESS, - port: DEFAULT_SERVICE_PORT, - clientConfig: {}, - }, options); - const googleApiClient = ['gl-node/' + process.versions.node]; - if (opts.libName && opts.libVersion) { - googleApiClient.push(opts.libName + '/' + opts.libVersion); - } - googleApiClient.push(CODE_GEN_NAME_VERSION, 'gax/' + version); - if (opts.fallback) { - googleApiClient.push('gl-web/' + version); - } - else { - googleApiClient.push('grpc/' + gaxGrpc.grpcVersion); - } - const defaults = gaxGrpc.constructSettings('google.longrunning.Operations', configData, opts.clientConfig || {}, { 'x-goog-api-client': googleApiClient.join(' ') }); - this.auth = gaxGrpc.auth; - // Set up a dictionary of "inner API calls"; the core implementation - // of calling the API is handled in `google-gax`, with this code - // merely providing the destination and request information. - this.innerApiCalls = {}; - this.descriptor = { - listOperations: new descriptor_1.PageDescriptor('pageToken', 'nextPageToken', 'operations'), - }; - // Put together the "service stub" for - // google.longrunning.Operations. - this.operationsStub = gaxGrpc.createStub(opts.fallback - ? operationsProtos.lookupService('google.longrunning.Operations') - : operationsProtos.google.longrunning.Operations, opts); - const operationsStubMethods = [ - 'getOperation', - 'listOperations', - 'cancelOperation', - 'deleteOperation', - ]; - for (const methodName of operationsStubMethods) { - const innerCallPromise = this.operationsStub.then(stub => (...args) => { - const func = stub[methodName]; - return func.apply(stub, args); - }, err => () => { - throw err; - }); - this.innerApiCalls[methodName] = (0, createApiCall_1.createApiCall)(innerCallPromise, defaults[methodName], this.descriptor[methodName]); - } - } - /** Closes this operations client. */ - close() { - this.operationsStub.then(stub => stub.close()); - } - getProjectId(callback) { - if (this.auth && 'getProjectId' in this.auth) { - return this.auth.getProjectId(callback); - } - if (callback) { - callback(new Error('Cannot determine project ID.')); - } - else { - return Promise.reject('Cannot determine project ID.'); - } - } - // Service calls - getOperationInternal(request, options, callback) { - request = request || {}; - options = options || {}; - return this.innerApiCalls.getOperation(request, options, callback); - } - /** - * Gets the latest state of a long-running operation. Clients can use this - * method to poll the operation result at intervals as recommended by the API - * service. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation resource. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @param {function(?Error, ?Object)=} callback - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing - * [google.longrunning.Operation]{@link - * external:"google.longrunning.Operation"}. - * @return {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * [google.longrunning.Operation]{@link - * external:"google.longrunning.Operation"}. The promise has a method named - * "cancel" which cancels the ongoing API call. - * - * @example - * - * const client = longrunning.operationsClient(); - * const name = ''; - * const [response] = await client.getOperation({name}); - * // doThingsWith(response) - */ - getOperation(request, optionsOrCallback, callback) { - let options; - if (optionsOrCallback instanceof Function && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } - else { - options = optionsOrCallback; - } - request = request || {}; - options = options || {}; - return this.innerApiCalls.getOperation(request, options, callback); - } + +OidcClientInfo.prototype['redirect_uris'] = undefined; +/** + * @member {Array.} response_types + */ + +OidcClientInfo.prototype['response_types'] = undefined; +/** + * @member {Array.} scopes + */ + +OidcClientInfo.prototype['scopes'] = undefined; +var _default = OidcClientInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 99171: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); + +var _OnePasswordPayload = _interopRequireDefault(__nccwpck_require__(75617)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The OnePasswordMigration model module. + * @module model/OnePasswordMigration + * @version 3.6.3 + */ +var OnePasswordMigration = /*#__PURE__*/function () { + /** + * Constructs a new OnePasswordMigration. + * @alias module:model/OnePasswordMigration + */ + function OnePasswordMigration() { + _classCallCheck(this, OnePasswordMigration); + + OnePasswordMigration.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(OnePasswordMigration, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Lists operations that match the specified filter in the request. If the - * server doesn't support this method, it returns `UNIMPLEMENTED`. - * - * NOTE: the `name` binding below allows API services to override the binding - * to use different resource name schemes. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation collection. - * @param {string} request.filter - The standard list filter. - * @param {number=} request.pageSize - * The maximum number of resources contained in the underlying API - * response. If page streaming is performed per-resource, this - * parameter does not affect the return value. If page streaming is - * performed per-page, this determines the maximum number of - * resources in a page. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @param {function(?Error, ?Array, ?Object, ?Object)=} callback - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is Array of - * [google.longrunning.Operation]{@link - * external:"google.longrunning.Operation"}. - * - * When autoPaginate: false is specified through options, it contains the - * result in a single response. If the response indicates the next page - * exists, the third parameter is set to be used for the next request object. - * The fourth parameter keeps the raw response object of an object - * representing [google.longrunning.ListOperationsResponse]{@link - * external:"google.longrunning.ListOperationsResponse"}. - * @return {Promise} - The promise which resolves to an array. - * The first element of the array is Array of - * [google.longrunning.Operation]{@link - * external:"google.longrunning.Operation"}. - * - * When autoPaginate: false is specified through options, the array has - * three elements. The first element is Array of - * [google.longrunning.Operation]{@link - * external:"google.longrunning.Operation"} in a single response. The second - * element is the next request object if the response indicates the next page - * exists, or null. The third element is an object representing - * [google.longrunning.ListOperationsResponse]{@link - * external:"google.longrunning.ListOperationsResponse"}. - * - * The promise has a method named "cancel" which cancels the ongoing API - * call. - * - * @example - * - * const client = longrunning.operationsClient(); - * const request = { - * name: '', - * filter: '' - * }; - * // Iterate over all elements. - * const [resources] = await client.listOperations(request); - * for (const resource of resources) { - * console.log(resources); - * } - * - * // Or obtain the paged response. - * const options = {autoPaginate: false}; - * let nextRequest = request; - * while(nextRequest) { - * const response = await client.listOperations(nextRequest, options); - * const resources = response[0]; - * nextRequest = response[1]; - * const rawResponse = response[2]; - * for (const resource of resources) { - * // doThingsWith(resource); - * } - * }; + * Constructs a OnePasswordMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OnePasswordMigration} obj Optional instance to populate. + * @return {module:model/OnePasswordMigration} The populated OnePasswordMigration instance. */ - listOperations(request, optionsOrCallback, callback) { - let options; - if (optionsOrCallback instanceof Function && callback === undefined) { - callback = optionsOrCallback; - options = {}; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new OnePasswordMigration(); + + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); } - else { - options = optionsOrCallback; + + if (data.hasOwnProperty('payload')) { + obj['payload'] = _OnePasswordPayload["default"].constructFromObject(data['payload']); } - request = request || {}; - options = options || {}; - return this.innerApiCalls.listOperations(request, options, callback); - } - /** - * Equivalent to {@link listOperations}, but returns a NodeJS Stream object. - * - * This fetches the paged responses for {@link listOperations} continuously - * and invokes the callback registered for 'data' event for each element in - * the responses. - * - * The returned object has 'end' method when no more elements are required. - * - * autoPaginate option will be ignored. - * - * @see {@link https://nodejs.org/api/stream.html} - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation collection. - * @param {string} request.filter - The standard list filter. - * @param {number=} request.pageSize - - * The maximum number of resources contained in the underlying API - * response. If page streaming is performed per-resource, this - * parameter does not affect the return value. If page streaming is - * performed per-page, this determines the maximum number of - * resources in a page. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @return {Stream} - An object stream which emits an object representing [google.longrunning.Operation]{@link external:"google.longrunning.Operation"} on 'data' event. - * - * @example - * - * const client = longrunning.operationsClient(); - * const request = { - * name: '', - * filter: '' - * }; - * client.listOperationsStream(request) - * .on('data', element => { - * // doThingsWith(element) - * }) - * .on('error', err => { - * console.error(err); - * }); - */ - listOperationsStream(request, options) { - const callSettings = new gax.CallSettings(options); - return this.descriptor.listOperations.createStream(this.innerApiCalls.listOperations, request, callSettings); - } - /** - * Equivalent to {@link listOperations}, but returns an iterable object. - * - * for-await-of syntax is used with the iterable to recursively get response element on-demand. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation collection. - * @param {string} request.filter - The standard list filter. - * @param {number=} request.pageSize - - * The maximum number of resources contained in the underlying API - * response. If page streaming is performed per-resource, this - * parameter does not affect the return value. If page streaming is - * performed per-page, this determines the maximum number of - * resources in a page. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @returns {Object} - * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. - */ - listOperationsAsync(request, options) { - request = request || {}; - options = options || {}; - const callSettings = new gax.CallSettings(options); - return this.descriptor.listOperations.asyncIterate(this.innerApiCalls.listOperations, request, callSettings); + } + + return obj; } + }]); + + return OnePasswordMigration; +}(); +/** + * @member {module:model/MigrationGeneral} general + */ + + +OnePasswordMigration.prototype['general'] = undefined; +/** + * @member {module:model/OnePasswordPayload} payload + */ + +OnePasswordMigration.prototype['payload'] = undefined; +var _default = OnePasswordMigration; +exports["default"] = _default; + +/***/ }), + +/***/ 75617: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The OnePasswordPayload model module. + * @module model/OnePasswordPayload + * @version 3.6.3 + */ +var OnePasswordPayload = /*#__PURE__*/function () { + /** + * Constructs a new OnePasswordPayload. + * @alias module:model/OnePasswordPayload + */ + function OnePasswordPayload() { + _classCallCheck(this, OnePasswordPayload); + + OnePasswordPayload.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(OnePasswordPayload, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Starts asynchronous cancellation on a long-running operation. The server - * makes a best effort to cancel the operation, but success is not - * guaranteed. If the server doesn't support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Clients can use - * {@link Operations.GetOperation} or - * other methods to check whether the cancellation succeeded or whether the - * operation completed despite cancellation. On successful cancellation, - * the operation is not deleted; instead, it becomes an operation with - * an {@link Operation.error} value with a {@link google.rpc.Status.code} of - * 1, corresponding to `Code.CANCELLED`. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation resource to be cancelled. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @param {function(?Error)=} callback - * The function which will be called with the result of the API call. - * @return {Promise} - The promise which resolves when API call finishes. - * The promise has a method named "cancel" which cancels the ongoing API - * call. - * - * @example - * - * const client = longrunning.operationsClient(); - * await client.cancelOperation({name: ''}); + * Constructs a OnePasswordPayload from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/OnePasswordPayload} obj Optional instance to populate. + * @return {module:model/OnePasswordPayload} The populated OnePasswordPayload instance. */ - cancelOperation(request, optionsOrCallback, callback) { - let options; - if (optionsOrCallback instanceof Function && callback === undefined) { - callback = optionsOrCallback; - options = {}; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new OnePasswordPayload(); + + if (data.hasOwnProperty('email')) { + obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); } - else { - options = optionsOrCallback; + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); } - request = request || {}; - options = options || {}; - return this.innerApiCalls.cancelOperation(request, options, callback); - } - /** - * Deletes a long-running operation. This method indicates that the client is - * no longer interested in the operation result. It does not cancel the - * operation. If the server doesn't support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. - * - * @param {Object} request - The request object that will be sent. - * @param {string} request.name - The name of the operation resource to be deleted. - * @param {Object=} options - * Optional parameters. You can override the default settings for this call, - * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link - * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the - * details. - * @param {function(?Error)=} callback - * The function which will be called with the result of the API call. - * @return {Promise} - The promise which resolves when API call finishes. - * The promise has a method named "cancel" which cancels the ongoing API - * call. - * - * @example - * - * const client = longrunning.operationsClient(); - * await client.deleteOperation({name: ''}); - */ - deleteOperation(request, optionsOrCallback, callback) { - let options; - if (optionsOrCallback instanceof Function && callback === undefined) { - callback = optionsOrCallback; - options = {}; + + if (data.hasOwnProperty('secret_key')) { + obj['secret_key'] = _ApiClient["default"].convertToType(data['secret_key'], 'String'); } - else { - options = optionsOrCallback; + + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); } - request = request || {}; - options = options || {}; - return this.innerApiCalls.deleteOperation(request, options, callback); - } -} -exports.OperationsClient = OperationsClient; -class OperationsClientBuilder { - /** - * Builds a new Operations Client - * @param gaxGrpc {GrpcClient} - */ - constructor(gaxGrpc, protoJson) { - if (protoJson && gaxGrpc.httpRules) { - // overwrite the http rules if provide in service yaml. - (0, transcoding_1.overrideHttpRules)(gaxGrpc.httpRules, protoJson); + + if (data.hasOwnProperty('vaults')) { + obj['vaults'] = _ApiClient["default"].convertToType(data['vaults'], ['String']); } - const operationsProtos = protoJson !== null && protoJson !== void 0 ? protoJson : gaxGrpc.loadProtoJSON(operationProtoJson); - /** - * Build a new instance of {@link OperationsClient}. - * - * @param {Object=} opts - The optional parameters. - * @param {String=} opts.servicePath - Domain name of the API remote host. - * @param {number=} opts.port - The port on which to connect to the remote host. - * @param {grpc.ClientCredentials=} opts.sslCreds - A ClientCredentials for use with an SSL-enabled channel. - * @param {Object=} opts.clientConfig - The customized config to build the call settings. See {@link gax.constructSettings} for the format. - */ - this.operationsClient = opts => { - if (gaxGrpc.fallback) { - opts.fallback = gaxGrpc.fallback; - } - return new OperationsClient(gaxGrpc, operationsProtos, opts); - }; - Object.assign(this.operationsClient, OperationsClient); + } + + return obj; } -} -exports.OperationsClientBuilder = OperationsClientBuilder; -//# sourceMappingURL=operationsClient.js.map + }]); + + return OnePasswordPayload; +}(); +/** + * @member {String} email + */ + + +OnePasswordPayload.prototype['email'] = undefined; +/** + * @member {String} password + */ + +OnePasswordPayload.prototype['password'] = undefined; +/** + * @member {String} secret_key + */ + +OnePasswordPayload.prototype['secret_key'] = undefined; +/** + * @member {String} url + */ + +OnePasswordPayload.prototype['url'] = undefined; +/** + * @member {Array.} vaults + */ + +OnePasswordPayload.prototype['vaults'] = undefined; +var _default = OnePasswordPayload; +exports["default"] = _default; /***/ }), -/***/ 53798: +/***/ 16540: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _CertificateExpirationEvent = _interopRequireDefault(__nccwpck_require__(61726)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PageDescriptor = void 0; -const stream_1 = __nccwpck_require__(2203); -const normalApiCaller_1 = __nccwpck_require__(51161); -const warnings_1 = __nccwpck_require__(25531); -const pagedApiCaller_1 = __nccwpck_require__(89780); -const maxAttemptsEmptyResponse = 10; -/** - * A descriptor for methods that support pagination. + * The PKICertificateIssueDetails model module. + * @module model/PKICertificateIssueDetails + * @version 3.6.3 */ -class PageDescriptor { - constructor(requestPageTokenField, responsePageTokenField, resourceField) { - this.requestPageTokenField = requestPageTokenField; - this.responsePageTokenField = responsePageTokenField; - this.resourceField = resourceField; - } +var PKICertificateIssueDetails = /*#__PURE__*/function () { + /** + * Constructs a new PKICertificateIssueDetails. + * @alias module:model/PKICertificateIssueDetails + */ + function PKICertificateIssueDetails() { + _classCallCheck(this, PKICertificateIssueDetails); + + PKICertificateIssueDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PKICertificateIssueDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Creates a new object Stream which emits the resource on 'data' event. + * Constructs a PKICertificateIssueDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PKICertificateIssueDetails} obj Optional instance to populate. + * @return {module:model/PKICertificateIssueDetails} The populated PKICertificateIssueDetails instance. */ - createStream(apiCall, request, options) { - if (options === null || options === void 0 ? void 0 : options.autoPaginate) { - (0, warnings_1.warn)('autoPaginate true', 'Autopaginate will always be set to false in stream paging methods. See more info at https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination for more information on how to configure paging calls', 'AutopaginateTrueWarning'); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PKICertificateIssueDetails(); + + if (data.hasOwnProperty('allow_any_name')) { + obj['allow_any_name'] = _ApiClient["default"].convertToType(data['allow_any_name'], 'Boolean'); } - const stream = new stream_1.PassThrough({ objectMode: true }); - options = Object.assign({}, options, { autoPaginate: false }); - const maxResults = 'maxResults' in options ? options.maxResults : -1; - let pushCount = 0; - let started = false; - function callback(err, resources, next, apiResp) { - if (err) { - stream.emit('error', err); - return; - } - // emit full api response with every page. - stream.emit('response', apiResp); - for (let i = 0; i < resources.length; ++i) { - // TODO: rewrite without accessing stream internals - if (stream - ._readableState.ended) { - return; - } - if (resources[i] === null) { - continue; - } - stream.push(resources[i]); - pushCount++; - if (pushCount === maxResults) { - stream.end(); - } - } - // TODO: rewrite without accessing stream internals - if (stream._readableState - .ended) { - return; - } - if (!next) { - stream.end(); - return; - } - // When pageToken is specified in the original options, it will overwrite - // the page token field in the next request. Therefore it must be cleared. - if ('pageToken' in options) { - delete options.pageToken; - } - if (stream.isPaused()) { - request = next; - started = false; - } - else { - setImmediate(apiCall, next, options, callback); - } + + if (data.hasOwnProperty('allow_copy_ext_from_csr')) { + obj['allow_copy_ext_from_csr'] = _ApiClient["default"].convertToType(data['allow_copy_ext_from_csr'], 'Boolean'); } - stream.on('resume', () => { - if (!started) { - started = true; - apiCall(request, options, callback); - } - }); - return stream; - } - /** - * Create an async iterable which can be recursively called for data on-demand. - */ - asyncIterate(apiCall, request, options) { - if (options === null || options === void 0 ? void 0 : options.autoPaginate) { - (0, warnings_1.warn)('autoPaginate true', 'Autopaginate will always be set to false in Async paging methods. See more info at https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination for more information on how to configure paging calls', 'AutopaginateTrueWarning'); + + if (data.hasOwnProperty('allow_subdomains')) { + obj['allow_subdomains'] = _ApiClient["default"].convertToType(data['allow_subdomains'], 'Boolean'); } - options = Object.assign({}, options, { autoPaginate: false }); - const iterable = this.createIterator(apiCall, request, options); - return iterable; - } - createIterator(apiCall, request, options) { - const asyncIterable = { - [Symbol.asyncIterator]() { - let nextPageRequest = request; - const cache = []; - return { - async next() { - if (cache.length > 0) { - return Promise.resolve({ - done: false, - value: cache.shift(), - }); - } - let attempts = 0; - while (cache.length === 0 && nextPageRequest) { - let result; - [result, nextPageRequest] = (await apiCall(nextPageRequest, options)); - // For pagination response with protobuf map type, use tuple as representation. - if (result && !Array.isArray(result)) { - for (const [key, value] of Object.entries(result)) { - cache.push([key, value]); - } - } - else { - cache.push(...result); - } - if (cache.length === 0) { - ++attempts; - if (attempts > maxAttemptsEmptyResponse) { - break; - } - } - } - if (cache.length === 0) { - return Promise.resolve({ done: true, value: undefined }); - } - return Promise.resolve({ done: false, value: cache.shift() }); - }, - }; - }, - }; - return asyncIterable; - } - getApiCaller(settings) { - if (!settings.autoPaginate) { - return new normalApiCaller_1.NormalApiCaller(); + + if (data.hasOwnProperty('allowed_domains_list')) { + obj['allowed_domains_list'] = _ApiClient["default"].convertToType(data['allowed_domains_list'], ['String']); } - return new pagedApiCaller_1.PagedApiCaller(this); + + if (data.hasOwnProperty('allowed_extra_extensions')) { + obj['allowed_extra_extensions'] = _ApiClient["default"].convertToType(data['allowed_extra_extensions'], { + 'String': ['String'] + }); + } + + if (data.hasOwnProperty('allowed_uri_sans')) { + obj['allowed_uri_sans'] = _ApiClient["default"].convertToType(data['allowed_uri_sans'], ['String']); + } + + if (data.hasOwnProperty('basic_constraints_valid_for_non_ca')) { + obj['basic_constraints_valid_for_non_ca'] = _ApiClient["default"].convertToType(data['basic_constraints_valid_for_non_ca'], 'Boolean'); + } + + if (data.hasOwnProperty('certificate_authority_mode')) { + obj['certificate_authority_mode'] = _ApiClient["default"].convertToType(data['certificate_authority_mode'], 'String'); + } + + if (data.hasOwnProperty('client_flag')) { + obj['client_flag'] = _ApiClient["default"].convertToType(data['client_flag'], 'Boolean'); + } + + if (data.hasOwnProperty('code_signing_flag')) { + obj['code_signing_flag'] = _ApiClient["default"].convertToType(data['code_signing_flag'], 'Boolean'); + } + + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], ['String']); + } + + if (data.hasOwnProperty('create_private_crl')) { + obj['create_private_crl'] = _ApiClient["default"].convertToType(data['create_private_crl'], 'Boolean'); + } + + if (data.hasOwnProperty('create_public_crl')) { + obj['create_public_crl'] = _ApiClient["default"].convertToType(data['create_public_crl'], 'Boolean'); + } + + if (data.hasOwnProperty('destination_path')) { + obj['destination_path'] = _ApiClient["default"].convertToType(data['destination_path'], 'String'); + } + + if (data.hasOwnProperty('enforce_hostnames')) { + obj['enforce_hostnames'] = _ApiClient["default"].convertToType(data['enforce_hostnames'], 'Boolean'); + } + + if (data.hasOwnProperty('expiration_events')) { + obj['expiration_events'] = _ApiClient["default"].convertToType(data['expiration_events'], [_CertificateExpirationEvent["default"]]); + } + + if (data.hasOwnProperty('gw_cluster_id')) { + obj['gw_cluster_id'] = _ApiClient["default"].convertToType(data['gw_cluster_id'], 'Number'); + } + + if (data.hasOwnProperty('gw_cluster_url')) { + obj['gw_cluster_url'] = _ApiClient["default"].convertToType(data['gw_cluster_url'], 'String'); + } + + if (data.hasOwnProperty('is_ca')) { + obj['is_ca'] = _ApiClient["default"].convertToType(data['is_ca'], 'Boolean'); + } + + if (data.hasOwnProperty('key_bits')) { + obj['key_bits'] = _ApiClient["default"].convertToType(data['key_bits'], 'Number'); + } + + if (data.hasOwnProperty('key_type')) { + obj['key_type'] = _ApiClient["default"].convertToType(data['key_type'], 'String'); + } + + if (data.hasOwnProperty('key_usage_list')) { + obj['key_usage_list'] = _ApiClient["default"].convertToType(data['key_usage_list'], ['String']); + } + + if (data.hasOwnProperty('locality')) { + obj['locality'] = _ApiClient["default"].convertToType(data['locality'], ['String']); + } + + if (data.hasOwnProperty('not_before_duration')) { + obj['not_before_duration'] = _ApiClient["default"].convertToType(data['not_before_duration'], 'Number'); + } + + if (data.hasOwnProperty('organization_list')) { + obj['organization_list'] = _ApiClient["default"].convertToType(data['organization_list'], ['String']); + } + + if (data.hasOwnProperty('organization_unit_list')) { + obj['organization_unit_list'] = _ApiClient["default"].convertToType(data['organization_unit_list'], ['String']); + } + + if (data.hasOwnProperty('postal_code')) { + obj['postal_code'] = _ApiClient["default"].convertToType(data['postal_code'], ['String']); + } + + if (data.hasOwnProperty('protect_generated_certificates')) { + obj['protect_generated_certificates'] = _ApiClient["default"].convertToType(data['protect_generated_certificates'], 'Boolean'); + } + + if (data.hasOwnProperty('province')) { + obj['province'] = _ApiClient["default"].convertToType(data['province'], ['String']); + } + + if (data.hasOwnProperty('require_cn')) { + obj['require_cn'] = _ApiClient["default"].convertToType(data['require_cn'], 'Boolean'); + } + + if (data.hasOwnProperty('server_flag')) { + obj['server_flag'] = _ApiClient["default"].convertToType(data['server_flag'], 'Boolean'); + } + + if (data.hasOwnProperty('street_address')) { + obj['street_address'] = _ApiClient["default"].convertToType(data['street_address'], ['String']); + } + } + + return obj; } -} -exports.PageDescriptor = PageDescriptor; -//# sourceMappingURL=pageDescriptor.js.map + }]); + + return PKICertificateIssueDetails; +}(); +/** + * @member {Boolean} allow_any_name + */ + + +PKICertificateIssueDetails.prototype['allow_any_name'] = undefined; +/** + * @member {Boolean} allow_copy_ext_from_csr + */ + +PKICertificateIssueDetails.prototype['allow_copy_ext_from_csr'] = undefined; +/** + * @member {Boolean} allow_subdomains + */ + +PKICertificateIssueDetails.prototype['allow_subdomains'] = undefined; +/** + * @member {Array.} allowed_domains_list + */ + +PKICertificateIssueDetails.prototype['allowed_domains_list'] = undefined; +/** + * @member {Object.>} allowed_extra_extensions + */ + +PKICertificateIssueDetails.prototype['allowed_extra_extensions'] = undefined; +/** + * @member {Array.} allowed_uri_sans + */ + +PKICertificateIssueDetails.prototype['allowed_uri_sans'] = undefined; +/** + * @member {Boolean} basic_constraints_valid_for_non_ca + */ + +PKICertificateIssueDetails.prototype['basic_constraints_valid_for_non_ca'] = undefined; +/** + * @member {String} certificate_authority_mode + */ + +PKICertificateIssueDetails.prototype['certificate_authority_mode'] = undefined; +/** + * @member {Boolean} client_flag + */ + +PKICertificateIssueDetails.prototype['client_flag'] = undefined; +/** + * @member {Boolean} code_signing_flag + */ + +PKICertificateIssueDetails.prototype['code_signing_flag'] = undefined; +/** + * @member {Array.} country + */ + +PKICertificateIssueDetails.prototype['country'] = undefined; +/** + * @member {Boolean} create_private_crl + */ + +PKICertificateIssueDetails.prototype['create_private_crl'] = undefined; +/** + * @member {Boolean} create_public_crl + */ + +PKICertificateIssueDetails.prototype['create_public_crl'] = undefined; +/** + * DestinationPath is the destination to save generated certificates + * @member {String} destination_path + */ + +PKICertificateIssueDetails.prototype['destination_path'] = undefined; +/** + * @member {Boolean} enforce_hostnames + */ + +PKICertificateIssueDetails.prototype['enforce_hostnames'] = undefined; +/** + * ExpirationNotification holds a list of expiration notices that should be sent in case a certificate is about to expire, this value is being propagated to the Certificate resources that are created + * @member {Array.} expiration_events + */ + +PKICertificateIssueDetails.prototype['expiration_events'] = undefined; +/** + * @member {Number} gw_cluster_id + */ + +PKICertificateIssueDetails.prototype['gw_cluster_id'] = undefined; +/** + * GWClusterURL is required when CAMode is \"public\" and it defines the cluster URL the PKI should be issued from. The GW cluster must have permissions to read associated target's details + * @member {String} gw_cluster_url + */ + +PKICertificateIssueDetails.prototype['gw_cluster_url'] = undefined; +/** + * @member {Boolean} is_ca + */ + +PKICertificateIssueDetails.prototype['is_ca'] = undefined; +/** + * @member {Number} key_bits + */ + +PKICertificateIssueDetails.prototype['key_bits'] = undefined; +/** + * @member {String} key_type + */ + +PKICertificateIssueDetails.prototype['key_type'] = undefined; +/** + * @member {Array.} key_usage_list + */ + +PKICertificateIssueDetails.prototype['key_usage_list'] = undefined; +/** + * @member {Array.} locality + */ + +PKICertificateIssueDetails.prototype['locality'] = undefined; +/** + * A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. + * @member {Number} not_before_duration + */ + +PKICertificateIssueDetails.prototype['not_before_duration'] = undefined; +/** + * @member {Array.} organization_list + */ + +PKICertificateIssueDetails.prototype['organization_list'] = undefined; +/** + * @member {Array.} organization_unit_list + */ + +PKICertificateIssueDetails.prototype['organization_unit_list'] = undefined; +/** + * @member {Array.} postal_code + */ + +PKICertificateIssueDetails.prototype['postal_code'] = undefined; +/** + * ProtectGeneratedCertificates dictates whether the created certificates should be protected from deletion + * @member {Boolean} protect_generated_certificates + */ + +PKICertificateIssueDetails.prototype['protect_generated_certificates'] = undefined; +/** + * @member {Array.} province + */ + +PKICertificateIssueDetails.prototype['province'] = undefined; +/** + * @member {Boolean} require_cn + */ + +PKICertificateIssueDetails.prototype['require_cn'] = undefined; +/** + * @member {Boolean} server_flag + */ + +PKICertificateIssueDetails.prototype['server_flag'] = undefined; +/** + * @member {Array.} street_address + */ + +PKICertificateIssueDetails.prototype['street_address'] = undefined; +var _default = PKICertificateIssueDetails; +exports["default"] = _default; /***/ }), -/***/ 89780: +/***/ 34827: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * The PasswordPolicyInfo model module. + * @module model/PasswordPolicyInfo + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PagedApiCaller = void 0; -const call_1 = __nccwpck_require__(49746); -const googleError_1 = __nccwpck_require__(34775); -const resourceCollector_1 = __nccwpck_require__(73281); -const warnings_1 = __nccwpck_require__(25531); -class PagedApiCaller { - /** - * Creates an API caller that returns a stream to performs page-streaming. - * - * @private - * @constructor - * @param {PageDescriptor} pageDescriptor - indicates the structure - * of page streaming to be performed. - */ - constructor(pageDescriptor) { - this.pageDescriptor = pageDescriptor; - } - /** - * This function translates between regular gRPC calls (that accepts a request and returns a response, - * and does not know anything about pages and page tokens) and the users' callback (that expects - * to see resources from one page, a request to get the next page, and the raw response from the server). - * - * It generates a function that can be passed as a callback function to a gRPC call, will understand - * pagination-specific fields in the response, and call the users' callback after having those fields - * parsed. - * - * @param request Request object. It needs to be passed to all subsequent next page requests - * (the main content of the request object stays unchanged, only the next page token changes) - * @param callback The user's callback that expects the page content, next page request, and raw response. - */ - generateParseResponseCallback(request, callback) { - const resourceFieldName = this.pageDescriptor.resourceField; - const responsePageTokenFieldName = this.pageDescriptor.responsePageTokenField; - const requestPageTokenFieldName = this.pageDescriptor.requestPageTokenField; - return (err, response) => { - if (err) { - callback(err); - return; - } - if (!request) { - callback(new googleError_1.GoogleError('Undefined request in pagination method callback.')); - return; - } - if (!response) { - callback(new googleError_1.GoogleError('Undefined response in pagination method callback.')); - return; - } - const resources = response[resourceFieldName] || []; - const pageToken = response[responsePageTokenFieldName]; - let nextPageRequest = null; - if (pageToken) { - nextPageRequest = Object.assign({}, request); - nextPageRequest[requestPageTokenFieldName] = pageToken; - } - callback(err, resources, nextPageRequest, response); - }; - } - /** - * Adds a special ability to understand pagination-specific fields to the existing gRPC call. - * The original gRPC call just calls callback(err, result). - * The wrapped one will call callback(err, resources, nextPageRequest, rawResponse) instead. - * - * @param func gRPC call (normally, a service stub call). The gRPC call is expected to accept four parameters: - * request, metadata, call options, and callback. - */ - wrap(func) { - // eslint-disable-next-line @typescript-eslint/no-this-alias - const self = this; - return function wrappedCall(argument, metadata, options, callback) { - return func(argument, metadata, options, self.generateParseResponseCallback(argument, callback)); - }; - } +var PasswordPolicyInfo = /*#__PURE__*/function () { + /** + * Constructs a new PasswordPolicyInfo. + * @alias module:model/PasswordPolicyInfo + */ + function PasswordPolicyInfo() { + _classCallCheck(this, PasswordPolicyInfo); + + PasswordPolicyInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PasswordPolicyInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Makes it possible to use both callback-based and promise-based calls. - * Returns an OngoingCall or OngoingCallPromise object. - * Regardless of which one is returned, it always has a `.callback` to call. - * - * @param settings Call settings. Can only be used to replace Promise with another promise implementation. - * @param [callback] Callback to be called, if any. + * Constructs a PasswordPolicyInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PasswordPolicyInfo} obj Optional instance to populate. + * @return {module:model/PasswordPolicyInfo} The populated PasswordPolicyInfo instance. */ - init(callback) { - if (callback) { - return new call_1.OngoingCall(callback); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PasswordPolicyInfo(); + + if (data.hasOwnProperty('password_length')) { + obj['password_length'] = _ApiClient["default"].convertToType(data['password_length'], 'Number'); } - return new call_1.OngoingCallPromise(); - } - /** - * Implements auto-pagination logic. - * - * @param apiCall A function that performs gRPC request and calls its callback with a response or an error. - * It's supposed to be a gRPC service stub function wrapped into several layers of wrappers that make it - * accept just two parameters: (request, callback). - * @param request A request object that came from the user. - * @param settings Call settings. We are interested in `maxResults` and `autoPaginate` (they are optional). - * @param ongoingCall An instance of OngoingCall or OngoingCallPromise that can be used for call cancellation, - * and is used to return results to the user. - */ - call(apiCall, request, settings, ongoingCall) { - request = Object.assign({}, request); - if (!settings.autoPaginate) { - // they don't want auto-pagination this time - okay, just call once - ongoingCall.call(apiCall, request); - return; + + if (data.hasOwnProperty('use_capital_letters')) { + obj['use_capital_letters'] = _ApiClient["default"].convertToType(data['use_capital_letters'], 'Boolean'); } - if (request.pageSize && settings.autoPaginate) { - (0, warnings_1.warn)('autoPaginate true', 'Providing a pageSize without setting autoPaginate to false will still return all results. See https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination for more information on how to configure manual paging', 'AutopaginateTrueWarning'); + + if (data.hasOwnProperty('use_lower_letters')) { + obj['use_lower_letters'] = _ApiClient["default"].convertToType(data['use_lower_letters'], 'Boolean'); } - const maxResults = settings.maxResults || -1; - const resourceCollector = new resourceCollector_1.ResourceCollector(apiCall, maxResults); - resourceCollector.processAllPages(request).then(resources => ongoingCall.callback(null, resources), err => ongoingCall.callback(err)); - } - fail(ongoingCall, err) { - ongoingCall.callback(err); - } - result(ongoingCall) { - return ongoingCall.promise; + + if (data.hasOwnProperty('use_numbers')) { + obj['use_numbers'] = _ApiClient["default"].convertToType(data['use_numbers'], 'Boolean'); + } + + if (data.hasOwnProperty('use_special_characters')) { + obj['use_special_characters'] = _ApiClient["default"].convertToType(data['use_special_characters'], 'Boolean'); + } + } + + return obj; } -} -exports.PagedApiCaller = PagedApiCaller; -//# sourceMappingURL=pagedApiCaller.js.map + }]); -/***/ }), + return PasswordPolicyInfo; +}(); +/** + * @member {Number} password_length + */ -/***/ 73281: -/***/ ((__unused_webpack_module, exports) => { -"use strict"; +PasswordPolicyInfo.prototype['password_length'] = undefined; +/** + * @member {Boolean} use_capital_letters + */ +PasswordPolicyInfo.prototype['use_capital_letters'] = undefined; /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @member {Boolean} use_lower_letters */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ResourceCollector = void 0; + +PasswordPolicyInfo.prototype['use_lower_letters'] = undefined; /** - * ResourceCollector class implements asynchronous logic of calling the API call that supports pagination, - * page by page, collecting all resources (up to `maxResults`) in the array. - * - * Usage: - * const resourceCollector = new ResourceCollector(apiCall, maxResults); // -1 for unlimited - * resourceCollector.processAllPages(request).then(resources => ...); + * @member {Boolean} use_numbers */ -class ResourceCollector { - constructor(apiCall, maxResults = -1) { - this.apiCall = apiCall; - this.resources = []; - this.maxResults = maxResults; - } - callback(err, resources, nextPageRequest) { - if (err) { - // Something went wrong with this request - failing everything - this.rejectCallback(err); - return; - } - // Process one page - for (const resource of resources) { - this.resources.push(resource); - if (this.resources.length === this.maxResults) { - nextPageRequest = null; - break; - } - } - // All done? - if (!nextPageRequest) { - this.resolveCallback(this.resources); - return; - } - // Schedule the next call - const callback = (...args) => this.callback(...args); - setImmediate(this.apiCall, nextPageRequest, callback); - } - processAllPages(firstRequest) { - return new Promise((resolve, reject) => { - this.resolveCallback = resolve; - this.rejectCallback = reject; - // Schedule the first call - const callback = (...args) => this.callback(...args); - setImmediate(this.apiCall, firstRequest, callback); - }); - } -} -exports.ResourceCollector = ResourceCollector; -//# sourceMappingURL=resourceCollector.js.map + +PasswordPolicyInfo.prototype['use_numbers'] = undefined; +/** + * @member {Boolean} use_special_characters + */ + +PasswordPolicyInfo.prototype['use_special_characters'] = undefined; +var _default = PasswordPolicyInfo; +exports["default"] = _default; /***/ }), -/***/ 66575: -/***/ ((__unused_webpack_module, exports) => { +/***/ 10929: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _RuleAssigner = _interopRequireDefault(__nccwpck_require__(48396)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * The PathRule model module. + * @module model/PathRule + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PathTemplate = void 0; -class PathTemplate { - /** - * @param {String} data the of the template - * - * @constructor - */ - constructor(data) { - this.bindings = {}; - this.data = data; - this.segments = this.parsePathTemplate(data); - this.size = this.segments.length; - } - /** - * Matches a fully-qualified path template string. - * - * @param {String} path a fully-qualified path template string - * @return {Object} contains const names matched to binding values - * @throws {TypeError} if path can't be matched to this template - */ - match(path) { - let pathSegments = path.split('/'); - const bindings = {}; - if (pathSegments.length !== this.segments.length) { - // if the path contains a wildcard, then the length may differ by 1. - if (!this.data.includes('**')) { - throw new TypeError(`This path ${path} does not match path template ${this.data}, the number of parameters is not same.`); - } - else if (pathSegments.length !== this.segments.length + 1) { - throw new TypeError(`This path ${path} does not match path template ${this.data}, the number of parameters is not same with one wildcard.`); - } - } - for (let index = 0; index < this.segments.length && pathSegments.length > 0; index++) { - if (this.segments[index] !== pathSegments[0]) { - if (!this.segments[index].includes('*')) { - throw new TypeError(`segment does not match, ${this.segments[index]} and ${pathSegments[index]}.`); - } - else { - let segment = this.segments[index]; - const matches = segment.match(/\{[$0-9a-zA-Z_]+=.*?\}/g); - if (!matches) { - throw new Error(`Error processing path template segment ${segment}`); - } - const variables = matches.map(str => str.replace(/^\{/, '').replace(/=.*/, '')); - if (segment.includes('**')) { - bindings[variables[0]] = pathSegments[0] + '/' + pathSegments[1]; - pathSegments = pathSegments.slice(2); - } - else { - // atomic resource - if (variables.length === 1) { - bindings[variables[0]] = pathSegments[0]; - } - else { - // non-slash resource - // segment: {blurb_id=*}.{legacy_user=*} to match pathSegments: ['bar.user2'] - // split the match pathSegments[0] -> value: ['bar', 'user2'] - // compare the length of two arrays, and compare array items - const value = pathSegments[0].split(/[-_.~]/); - if (value.length !== variables.length) { - throw new Error(`segment ${segment} does not match ${pathSegments[0]}`); - } - for (const v of variables) { - bindings[v] = value[0]; - segment = segment.replace(`{${v}=*}`, `${value[0]}`); - value.shift(); - } - // segment: {blurb_id=*}.{legacy_user=*} matching pathSegments: ['bar~user2'] should fail - if (segment !== pathSegments[0]) { - throw new TypeError(`non slash resource pattern ${this.segments[index]} and ${pathSegments[0]} should have same separator`); - } - } - pathSegments.shift(); - } - } - } - else { - pathSegments.shift(); - } - } - return bindings; - } - /** - * Renders a path template using the provided bindings. - * - * @param {Object} bindings a mapping of const names to binding strings - * @return {String} a rendered representation of the path template - * @throws {TypeError} if a key is missing, or if a sub-template cannot be - * parsed - */ - render(bindings) { - if (Object.keys(bindings).length !== Object.keys(this.bindings).length) { - throw new TypeError(`The number of variables ${Object.keys(bindings).length} does not match the number of needed variables ${Object.keys(this.bindings).length}`); - } - let path = this.inspect(); - for (const key of Object.keys(bindings)) { - const b = bindings[key].toString(); - if (!this.bindings[key]) { - throw new TypeError(`render fails for not matching ${bindings[key]}`); - } - const variable = this.bindings[key]; - if (variable === '*') { - if (!b.match(/[^/{}]+/)) { - throw new TypeError(`render fails for not matching ${b}`); - } - path = path.replace(`{${key}=*}`, `${b}`); - } - else if (variable === '**') { - if (!b.match(/[^{}]+/)) { - throw new TypeError(`render fails for not matching ${b}`); - } - path = path.replace(`{${key}=**}`, `${b}`); - } - } - return path; - } - /** - * Renders the path template. - * - * @return {string} contains const names matched to binding values - */ - inspect() { - return this.segments.join('/'); - } +var PathRule = /*#__PURE__*/function () { + /** + * Constructs a new PathRule. + * @alias module:model/PathRule + */ + function PathRule() { + _classCallCheck(this, PathRule); + + PathRule.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PathRule, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Parse the path template. - * - * @return {string[]} return segments of the input path. - * For example: 'buckets/{hello}'' will give back ['buckets', {hello=*}] - */ - parsePathTemplate(data) { - const pathSegments = splitPathTemplate(data); - let index = 0; - let wildCardCount = 0; - const segments = []; - let matches; - pathSegments.forEach(segment => { - // * or ** -> segments.push('{$0=*}'); - // -> bindings['$0'] = '*' - if (segment === '*' || segment === '**') { - this.bindings[`$${index}`] = segment; - segments.push(`{$${index}=${segment}}`); - index = index + 1; - if (segment === '**') { - ++wildCardCount; - } - } - else if ((matches = segment.match(/\{[0-9a-zA-Z-.~_]+(?:=.*?)?\}/g))) { - for (const subsegment of matches) { - const pairMatch = subsegment.match(/^\{([0-9a-zA-Z-.~_]+)(?:=(.*?))?\}$/); - if (!pairMatch) { - throw new Error(`Cannot process path template segment ${subsegment}`); - } - const key = pairMatch[1]; - let value = pairMatch[2]; - if (!value) { - value = '*'; - segment = segment.replace(key, key + '=*'); - this.bindings[key] = value; - } - else if (value === '*') { - this.bindings[key] = value; - } - else if (value === '**') { - ++wildCardCount; - this.bindings[key] = value; - } - } - segments.push(segment); - } - else if (segment.match(/[0-9a-zA-Z-.~_]+/)) { - segments.push(segment); - } - }); - if (wildCardCount > 1) { - throw new TypeError('Can not have more than one wildcard.'); + * Constructs a PathRule from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PathRule} obj Optional instance to populate. + * @return {module:model/PathRule} The populated PathRule instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PathRule(); + + if (data.hasOwnProperty('assigners')) { + obj['assigners'] = _ApiClient["default"].convertToType(data['assigners'], [_RuleAssigner["default"]]); } - return segments; - } -} -exports.PathTemplate = PathTemplate; -/** - * Split the path template by `/`. - * It can not be simply splitted by `/` because there might be `/` in the segments. - * For example: 'a/b/{a=hello/world}' we do not want to break the brackets pair - * so above path will be splitted as ['a', 'b', '{a=hello/world}'] - */ -function splitPathTemplate(data) { - let left = 0; - let right = 0; - let bracketCount = 0; - const segments = []; - while (right >= left && right < data.length) { - if (data.charAt(right) === '{') { - bracketCount = bracketCount + 1; + + if (data.hasOwnProperty('capabilities')) { + obj['capabilities'] = _ApiClient["default"].convertToType(data['capabilities'], ['String']); } - else if (data.charAt(right) === '}') { - bracketCount = bracketCount - 1; + + if (data.hasOwnProperty('is_limit_access')) { + obj['is_limit_access'] = _ApiClient["default"].convertToType(data['is_limit_access'], 'Boolean'); } - else if (data.charAt(right) === '/') { - if (right === data.length - 1) { - throw new TypeError('Invalid path, it can not be ended by /'); - } - if (bracketCount === 0) { - // complete bracket, to avoid the case a/b/**/*/{a=hello/world} - segments.push(data.substring(left, right)); - left = right + 1; - } + + if (data.hasOwnProperty('number_of_access_used')) { + obj['number_of_access_used'] = _ApiClient["default"].convertToType(data['number_of_access_used'], 'Number'); } - if (right === data.length - 1) { - if (bracketCount !== 0) { - throw new TypeError('Brackets are invalid.'); - } - segments.push(data.substring(left)); + + if (data.hasOwnProperty('number_of_allowed_access')) { + obj['number_of_allowed_access'] = _ApiClient["default"].convertToType(data['number_of_allowed_access'], 'Number'); } - right = right + 1; - } - return segments; -} -//# sourceMappingURL=pathTemplate.js.map -/***/ }), + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } -/***/ 71529: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('start_time')) { + obj['start_time'] = _ApiClient["default"].convertToType(data['start_time'], 'Number'); + } -"use strict"; -var __webpack_unused_export__; + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + } + + return obj; + } + }]); + return PathRule; +}(); /** - * 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. + * @member {Array.} assigners */ -__webpack_unused_export__ = ({ value: true }); -exports.protobufMinimal = void 0; -// This file is here to re-export protobuf.js so that the proto.js files -// produced by tools/compileProtos.ts did not depend on protobuf.js -// directly. -// Usage: -// const {protobufMinimal} = require('google-gax/build/src/protobuf'); -exports.protobufMinimal = __nccwpck_require__(37823); -//# sourceMappingURL=protobuf.js.map - -/***/ }), -/***/ 37515: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; +PathRule.prototype['assigners'] = undefined; +/** + * The approved/denied capabilities in the path + * @member {Array.} capabilities + */ +PathRule.prototype['capabilities'] = undefined; /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * flag that indicate that this rule is allowed to be access RemainingAccess of times. + * @member {Boolean} is_limit_access */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromParams = fromParams; -const querystring = __nccwpck_require__(83480); + +PathRule.prototype['is_limit_access'] = undefined; /** - * Helpers for constructing routing headers. - * - * These headers are used by Google infrastructure to determine how to route - * requests, especially for services that are regional. - * - * Generally, these headers are specified as gRPC metadata. + * @member {Number} number_of_access_used */ + +PathRule.prototype['number_of_access_used'] = undefined; /** - * Constructs the routing header from the given params - * - * @param {Object} params - the request header parameters. - * @return {string} the routing header value. + * @member {Number} number_of_allowed_access */ -function fromParams(params) { - return querystring.stringify(params); -} -//# sourceMappingURL=routingHeader.js.map -/***/ }), +PathRule.prototype['number_of_allowed_access'] = undefined; +/** + * The path the rule refers to + * @member {String} path + */ -/***/ 69124: -/***/ ((__unused_webpack_module, exports) => { +PathRule.prototype['path'] = undefined; +/** + * @member {Number} start_time + */ -"use strict"; +PathRule.prototype['start_time'] = undefined; +/** + * @member {Number} ttl + */ +PathRule.prototype['ttl'] = undefined; /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @member {String} type */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.HttpCodeToRpcCodeMap = exports.Status = void 0; -exports.rpcCodeFromHttpStatusCode = rpcCodeFromHttpStatusCode; -// The following is a copy of the Status enum defined in @grpc/grpc-js, -// src/constants.ts. We need to use some of these statuses here and there, -// but we don't want to include the whole @grpc/grpc-js into the browser -// bundle just to have this small enum. -var Status; -(function (Status) { - Status[Status["OK"] = 0] = "OK"; - Status[Status["CANCELLED"] = 1] = "CANCELLED"; - Status[Status["UNKNOWN"] = 2] = "UNKNOWN"; - Status[Status["INVALID_ARGUMENT"] = 3] = "INVALID_ARGUMENT"; - Status[Status["DEADLINE_EXCEEDED"] = 4] = "DEADLINE_EXCEEDED"; - Status[Status["NOT_FOUND"] = 5] = "NOT_FOUND"; - Status[Status["ALREADY_EXISTS"] = 6] = "ALREADY_EXISTS"; - Status[Status["PERMISSION_DENIED"] = 7] = "PERMISSION_DENIED"; - Status[Status["RESOURCE_EXHAUSTED"] = 8] = "RESOURCE_EXHAUSTED"; - Status[Status["FAILED_PRECONDITION"] = 9] = "FAILED_PRECONDITION"; - Status[Status["ABORTED"] = 10] = "ABORTED"; - Status[Status["OUT_OF_RANGE"] = 11] = "OUT_OF_RANGE"; - Status[Status["UNIMPLEMENTED"] = 12] = "UNIMPLEMENTED"; - Status[Status["INTERNAL"] = 13] = "INTERNAL"; - Status[Status["UNAVAILABLE"] = 14] = "UNAVAILABLE"; - Status[Status["DATA_LOSS"] = 15] = "DATA_LOSS"; - Status[Status["UNAUTHENTICATED"] = 16] = "UNAUTHENTICATED"; -})(Status || (exports.Status = Status = {})); -exports.HttpCodeToRpcCodeMap = new Map([ - [400, Status.INVALID_ARGUMENT], - [401, Status.UNAUTHENTICATED], - [403, Status.PERMISSION_DENIED], - [404, Status.NOT_FOUND], - [409, Status.ABORTED], - [416, Status.OUT_OF_RANGE], - [429, Status.RESOURCE_EXHAUSTED], - [499, Status.CANCELLED], - [501, Status.UNIMPLEMENTED], - [503, Status.UNAVAILABLE], - [504, Status.DEADLINE_EXCEEDED], -]); -// Maps HTTP status codes to gRPC status codes above. -function rpcCodeFromHttpStatusCode(httpStatusCode) { - if (exports.HttpCodeToRpcCodeMap.has(httpStatusCode)) { - return exports.HttpCodeToRpcCodeMap.get(httpStatusCode); - } - // All 2xx - if (httpStatusCode >= 200 && httpStatusCode < 300) { - return Status.OK; - } - // All other 4xx - if (httpStatusCode >= 400 && httpStatusCode < 500) { - return Status.FAILED_PRECONDITION; - } - // All other 5xx - if (httpStatusCode >= 500 && httpStatusCode < 600) { - return Status.INTERNAL; - } - // Everything else - return Status.UNKNOWN; -} -//# sourceMappingURL=status.js.map + +PathRule.prototype['type'] = undefined; +var _default = PathRule; +exports["default"] = _default; /***/ }), -/***/ 46690: +/***/ 18619: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * 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. + * The PingTargetDetails model module. + * @module model/PingTargetDetails + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StreamArrayParser = void 0; -const abort_controller_1 = __nccwpck_require__(17413); -const stream_1 = __nccwpck_require__(2203); -const fallbackRest_1 = __nccwpck_require__(32230); -const featureDetection_1 = __nccwpck_require__(83515); -class StreamArrayParser extends stream_1.Transform { +var PingTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new PingTargetDetails. + * PingTargetDetails + * @alias module:model/PingTargetDetails + */ + function PingTargetDetails() { + _classCallCheck(this, PingTargetDetails); + + PingTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(PingTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * StreamArrayParser processes array of valid JSON objects in random chunks - * through readable stream, and produces a stream of plain Javascript objects - * where it converted from the corresponding protobuf message instance. - * - * The default JSON parser decodes the input stream under the - * following rules: - * 1. The stream represents a valid JSON array (must start with a "[" and - * close with the corresponding "]"). Each element of this array is assumed to - * be either an array or an object, and will be decoded as a JS object and - * delivered. - * 2. All JSON elements in the buffer will be decoded and delivered in a - * stream. - * - * @private - * @constructor - * @param {protobuf.Method} rpc - the protobuf method produce array of JSON. - * @param {Object} options - the options pass to Transform Stream. See more - * details - * https://nodejs.org/api/stream.html#stream_new_stream_transform_options. + * Constructs a PingTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PingTargetDetails} obj Optional instance to populate. + * @return {module:model/PingTargetDetails} The populated PingTargetDetails instance. */ - constructor(rpc, options) { - super(Object.assign({}, options, { readableObjectMode: true })); - this._done = false; - this._prevBlock = Buffer.from(''); - this._isInString = false; - this._isSkipped = false; - this._level = 0; - this.rpc = rpc; - this.cancelController = (0, featureDetection_1.hasAbortController)() - ? new AbortController() - : new abort_controller_1.AbortController(); - this.cancelSignal = this.cancelController.signal; - this.cancelRequested = false; - } - _transform(chunk, _, callback) { - let objectStart = 0; - let curIndex = 0; - if (this._level === 0 && curIndex === 0) { - if (String.fromCharCode(chunk[0]) !== '[') { - this.emit('error', new Error(`Internal Error: API service stream data must start with a '[' and close with the corresponding ']', but it start with ${String.fromCharCode(chunk[0])}`)); - } - curIndex++; - this._level++; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PingTargetDetails(); + + if (data.hasOwnProperty('administrative_port')) { + obj['administrative_port'] = _ApiClient["default"].convertToType(data['administrative_port'], 'String'); } - while (curIndex < chunk.length) { - const curValue = String.fromCharCode(chunk[curIndex]); - if (!this._isSkipped) { - switch (curValue) { - case '{': - // Check if it's in string, we ignore the curly brace in string. - // Otherwise the object level++. - if (!this._isInString) { - this._level++; - } - if (!this._isInString && this._level === 2) { - objectStart = curIndex; - } - break; - case '"': - // Flip the string status - this._isInString = !this._isInString; - break; - case '}': - // check if it's in string - // if true, do nothing - // if false and level = 0, push data - if (!this._isInString) { - this._level--; - } - if (!this._isInString && this._level === 1) { - // find a object - const objBuff = Buffer.concat([ - this._prevBlock, - chunk.slice(objectStart, curIndex + 1), - ]); - try { - // HTTP response.ok is true. - const msgObj = (0, fallbackRest_1.decodeResponse)(this.rpc, true, objBuff); - this.push(msgObj); - } - catch (err) { - this.emit('error', err); - } - objectStart = curIndex + 1; - this._prevBlock = Buffer.from(''); - } - break; - case ']': - if (!this._isInString && this._level === 1) { - this._done = true; - this.push(null); - } - break; - case '\\': - // Escaping escape character. - this._isSkipped = true; - break; - default: - break; - } - } - else { - this._isSkipped = false; - } - curIndex++; + + if (data.hasOwnProperty('authorization_port')) { + obj['authorization_port'] = _ApiClient["default"].convertToType(data['authorization_port'], 'String'); } - if (this._level > 1) { - this._prevBlock = Buffer.concat([ - this._prevBlock, - chunk.slice(objectStart, curIndex), - ]); + + if (data.hasOwnProperty('ping_url')) { + obj['ping_url'] = _ApiClient["default"].convertToType(data['ping_url'], 'String'); } - callback(); - } - _flush(callback) { - callback(); - } - cancel() { - this._done = true; - this.cancelRequested = true; - this.cancelController.abort(); - this.end(); + + if (data.hasOwnProperty('privileged_user')) { + obj['privileged_user'] = _ApiClient["default"].convertToType(data['privileged_user'], 'String'); + } + + if (data.hasOwnProperty('user_password')) { + obj['user_password'] = _ApiClient["default"].convertToType(data['user_password'], 'String'); + } + } + + return obj; } -} -exports.StreamArrayParser = StreamArrayParser; -//# sourceMappingURL=streamArrayParser.js.map + }]); -/***/ }), + return PingTargetDetails; +}(); +/** + * @member {String} administrative_port + */ -/***/ 67839: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; +PingTargetDetails.prototype['administrative_port'] = undefined; +/** + * @member {String} authorization_port + */ +PingTargetDetails.prototype['authorization_port'] = undefined; /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @member {String} ping_url */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StreamDescriptor = void 0; -const streamingApiCaller_1 = __nccwpck_require__(98177); + +PingTargetDetails.prototype['ping_url'] = undefined; /** - * A descriptor for streaming calls. + * @member {String} privileged_user */ -class StreamDescriptor { - constructor(streamType, rest, gaxStreamingRetries) { - this.type = streamType; - this.streaming = true; - this.rest = rest; - this.gaxStreamingRetries = gaxStreamingRetries; - } - getApiCaller() { - // Right now retrying does not work with gRPC-streaming, because retryable - // assumes an API call returns an event emitter while gRPC-streaming methods - // return Stream. - return new streamingApiCaller_1.StreamingApiCaller(this); - } -} -exports.StreamDescriptor = StreamDescriptor; -//# sourceMappingURL=streamDescriptor.js.map + +PingTargetDetails.prototype['privileged_user'] = undefined; +/** + * @member {String} user_password + */ + +PingTargetDetails.prototype['user_password'] = undefined; +var _default = PingTargetDetails; +exports["default"] = _default; /***/ }), -/***/ 21224: +/***/ 11490: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StreamProxy = exports.StreamType = void 0; -const gax_1 = __nccwpck_require__(4996); -const googleError_1 = __nccwpck_require__(34775); -const status_1 = __nccwpck_require__(69124); -const stream_1 = __nccwpck_require__(2203); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const duplexify = __nccwpck_require__(29112); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const retryRequest = __nccwpck_require__(67842); -/** - * The type of gRPC streaming. - * @enum {number} + * The Producer model module. + * @module model/Producer + * @version 3.6.3 */ -var StreamType; -(function (StreamType) { - /** Client sends a single request, server streams responses. */ - StreamType[StreamType["SERVER_STREAMING"] = 1] = "SERVER_STREAMING"; - /** Client streams requests, server returns a single response. */ - StreamType[StreamType["CLIENT_STREAMING"] = 2] = "CLIENT_STREAMING"; - /** Both client and server stream objects. */ - StreamType[StreamType["BIDI_STREAMING"] = 3] = "BIDI_STREAMING"; -})(StreamType || (exports.StreamType = StreamType = {})); -// In retry-request, you could pass parameters to request using the requestOpts parameter -// when we called retry-request from gax, we always passed null -// passing null here removes an unnecessary parameter from this implementation -const requestOps = null; -class StreamProxy extends duplexify { - /** - * StreamProxy is a proxy to gRPC-streaming method. - * - * @private - * @constructor - * @param {StreamType} type - the type of gRPC stream. - * @param {ApiCallback} callback - the callback for further API call. - */ - constructor(type, callback, rest, gaxServerStreamingRetries) { - super(undefined, undefined, { - objectMode: true, - readable: type !== StreamType.CLIENT_STREAMING, - writable: type !== StreamType.SERVER_STREAMING, - }); - this.type = type; - this._callback = callback; - this._isCancelCalled = false; - this._responseHasSent = false; - this.rest = rest; - this.gaxServerStreamingRetries = gaxServerStreamingRetries; - } - shouldRetryRequest(error, retry) { - const e = googleError_1.GoogleError.parseGRPCStatusDetails(error); - let shouldRetry = this.defaultShouldRetry(e, retry); - if (retry.shouldRetryFn) { - shouldRetry = retry.shouldRetryFn(e); - } - return shouldRetry; - } - cancel() { - if (this.stream) { - this.stream.cancel(); - } - else { - this._isCancelCalled = true; - } - } - /** - * Helper function to handle total timeout + max retry check for server streaming retries - * @param {number} deadline - the current retry deadline - * @param {number} maxRetries - maximum total number of retries - * @param {number} totalTimeoutMillis - total timeout in milliseconds used in timeout calculation - * @param {GoogleError} originalError - underlying error received by the stream - * @param {originalTimeout} originalTimeout - the original Timeout set in backoff settings - * @param {retries} retries - the number of retries the call has made so far - */ - throwIfMaxRetriesOrTotalTimeoutExceeded(deadline, maxRetries, totalTimeoutMillis, originalError, originalTimeout, retries) { - const now = new Date(); - const nowTime = now.getTime(); - if (originalTimeout && - (totalTimeoutMillis === 0 || - totalTimeoutMillis < 0 || - (deadline && nowTime >= deadline))) { - const error = new googleError_1.GoogleError(`Total timeout of API exceeded ${originalTimeout} milliseconds ${originalError ? `retrying error ${originalError} ` : ''} before any response was received.`); - error.code = status_1.Status.DEADLINE_EXCEEDED; - throw error; - } - if (maxRetries === 0) { - const error = originalError; - error.note = 'Max retries is set to zero.'; - throw error; - } - if (retries && retries >= maxRetries) { - const error = new googleError_1.GoogleError('Exceeded maximum number of retries ' + - (originalError ? `retrying error ${originalError} ` : '') + - 'before any response was received'); - error.code = status_1.Status.DEADLINE_EXCEEDED; - throw error; - } - } - /** - * Forwards events from an API request stream to the user's stream. - * @param {Stream} stream - The API request stream. - */ - eventForwardHelper(stream) { - const eventsToForward = ['metadata', 'response', 'status']; - eventsToForward.forEach(event => { - stream.on(event, this.emit.bind(this, event)); - }); - } - /** - * Helper function that emits a response on the stream after either a 'metadata' - * or a 'status' event - this helps streams to behave more like http consumers expect - * @param {Stream} stream - The API request stream. - */ - statusMetadataHelper(stream) { - // gRPC is guaranteed emit the 'status' event but not 'metadata', and 'status' is the last event to emit. - // Emit the 'response' event if stream has no 'metadata' event. - // This avoids the stream swallowing the other events, such as 'end'. - stream.on('status', () => { - if (!this._responseHasSent) { - stream.emit('response', { - code: 200, - details: '', - message: 'OK', - }); - } - }); - // We also want to supply the status data as 'response' event to support - // the behavior of google-cloud-node expects. - // see: - // https://github.com/GoogleCloudPlatform/google-cloud-node/pull/1775#issuecomment-259141029 - // https://github.com/GoogleCloudPlatform/google-cloud-node/blob/116436fa789d8b0f7fc5100b19b424e3ec63e6bf/packages/common/src/grpc-service.js#L355 - stream.on('metadata', metadata => { - // Create a response object with succeeds. - // TODO: unify this logic with the decoration of gRPC response when it's - // added. see: https://github.com/googleapis/gax-nodejs/issues/65 - stream.emit('response', { - code: 200, - details: '', - message: 'OK', - metadata, - }); - this._responseHasSent = true; - }); - } - /** - * Forward events from an API request stream to the user's stream. - * @param {Stream} stream - The API request stream. - * @param {RetryOptions} retry - Configures the exceptions upon which the - * function should retry, and the parameters to the exponential backoff retry - * algorithm. - */ - forwardEvents(stream) { - this.eventForwardHelper(stream); - this.statusMetadataHelper(stream); - stream.on('error', error => { - googleError_1.GoogleError.parseGRPCStatusDetails(error); - }); - } - /** - * Default mechanism for determining whether a streaming call should retry - * If a user passes in a "shouldRetryFn", this will not be used - * @param {GoogleError} errpr - The error we need to determine is retryable or not - * @param {RetryOptions} retry - Configures the exceptions upon which the - * function should retry, and the parameters to the exponential backoff retry - * algorithm. - */ - defaultShouldRetry(error, retry) { - if ((retry.retryCodes.length > 0 && - retry.retryCodes.indexOf(error.code) < 0) || - retry.retryCodes.length === 0) { - return false; - } - return true; - } - /** - * Specifies the target stream. - * @param {ApiCall} apiCall - the API function to be called. - * @param {Object} argument - the argument to be passed to the apiCall. - * @param {RetryOptions} retry - Configures the exceptions upon which the - * function should retry, and the parameters to the exponential backoff retry - * algorithm. - */ - setStream(apiCall, argument, retryRequestOptions = {}, retry) { - this.apiCall = apiCall; - this.argument = argument; - if (this.type === StreamType.SERVER_STREAMING) { - if (this.rest) { - const stream = apiCall(argument, this._callback); - this.stream = stream; - this.setReadable(stream); - } - else if (this.gaxServerStreamingRetries) { - const request = () => { - if (this._isCancelCalled) { - if (this.stream) { - this.stream.cancel(); - } - return; - } - const stream = apiCall(argument, this._callback); - return stream; - }; - const retryStream = this.newStreamingRetryRequest({ request, retry }); - this.stream = retryStream; - this.eventForwardHelper(retryStream); - this.setReadable(retryStream); - } - else { - const retryStream = retryRequest(null, { - objectMode: true, - request: () => { - if (this._isCancelCalled) { - if (this.stream) { - this.stream.cancel(); - } - return; - } - const stream = apiCall(argument, this._callback); - this.stream = stream; - this.forwardEvents(stream); - return stream; - }, - retries: retryRequestOptions.retries, - currentRetryAttempt: retryRequestOptions.currentRetryAttempt, - noResponseRetries: retryRequestOptions.noResponseRetries, - shouldRetryFn: retryRequestOptions.shouldRetryFn, - }); - this.setReadable(retryStream); - } - return; - } - const stream = apiCall(argument, this._callback); - this.stream = stream; - this.forwardEvents(stream); - if (this.type === StreamType.CLIENT_STREAMING) { - this.setWritable(stream); - } - if (this.type === StreamType.BIDI_STREAMING) { - this.setReadable(stream); - this.setWritable(stream); - } - if (this._isCancelCalled && this.stream) { - this.stream.cancel(); - } - } +var Producer = /*#__PURE__*/function () { + /** + * Constructs a new Producer. + * @alias module:model/Producer + */ + function Producer() { + _classCallCheck(this, Producer); + + Producer.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Producer, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Creates a new retry request stream - - *inner arrow function "newMakeRequest" handles retrying and resumption - * @param {streamingRetryRequestOptions} opts - * {request} - the request to be made if the stream errors - * {retry} - the retry options associated with the call - * @returns {CancellableStream} - the stream that handles retry logic + * Constructs a Producer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Producer} obj Optional instance to populate. + * @return {module:model/Producer} The populated Producer instance. */ - newStreamingRetryRequest(opts) { - var _a, _b, _c, _d; - // at this point, it would be unexpected if retry were undefined - // but if it is, provide a logical default so we don't run into trouble - const retry = (_a = opts.retry) !== null && _a !== void 0 ? _a : { - retryCodes: [], - backoffSettings: (0, gax_1.createDefaultBackoffSettings)(), - }; - let retries = 0; - const retryStream = new stream_1.PassThrough({ - objectMode: true, - }); - const totalTimeout = (_b = retry.backoffSettings.totalTimeoutMillis) !== null && _b !== void 0 ? _b : undefined; - const maxRetries = (_c = retry.backoffSettings.maxRetries) !== null && _c !== void 0 ? _c : undefined; - let timeout = (_d = retry.backoffSettings.initialRpcTimeoutMillis) !== null && _d !== void 0 ? _d : undefined; - let now = new Date(); - let deadline = 0; - if (totalTimeout) { - deadline = now.getTime() + totalTimeout; - } - const transientErrorHelper = (error, requestStream) => { - const e = googleError_1.GoogleError.parseGRPCStatusDetails(error); - e.note = - 'Exception occurred in retry method that was ' + - 'not classified as transient'; - // clean up the request stream and retryStreams, silently destroy it on the request stream - // but do raise it on destructin of the retryStream so the consumer can see it - requestStream.destroy(); - retryStream.destroy(e); - return retryStream; - }; - const newMakeRequest = (newopts) => { - let dataEnd = false; - let statusReceived = false; - let enteredError = false; - // make the request - const requestStream = newopts.request(requestOps); - retryStream.cancel = requestStream.cancel; // make sure the retryStream is also cancellable by the user - const eventsToForward = ['metadata', 'response', 'status']; - eventsToForward.forEach(event => { - requestStream.on(event, retryStream.emit.bind(retryStream, event)); - }); - this.statusMetadataHelper(requestStream); - // TODO - b/353262542 address buffer stuff - requestStream.on('data', (data) => { - retries = 0; - this.emit.bind(this, 'data')(data); - }); - /* in retry-request, which previously handled retries, - * "end" could be emitted on a request stream before other gRPC events. - * To ensure it doesn't reach the consumer stream prematurely, retry-request piped - * two streams together (delayStream and retryStream) - * to ensure that "end" only emitted after a "response" event - * - * We are consciously NOT using pipeline or .pipe as part of similar logic here - * because we want more control over what happens during event handoff and we want to - * avoid the undesired behavior that can happen with error events - * if consumers in client libraries are also using pipes - * - * Since "status" is guaranteed to be the last event emitted by gRPC. - * If we have seen an "end" event, the dataEnd boolean will be true and we can safely - * end the stream. - * - * The "statusReceived" boolean covers the opposite case - that we receive the "status" event before - * a successful stream end event - this signals the .on('end') event handler that it's okay to end the stream - * - * - */ - requestStream.on('status', () => { - statusReceived = true; - if (dataEnd) { - retryStream.end(); - } - return retryStream; - }); - requestStream.on('end', () => { - if (!enteredError) { - dataEnd = true; - // in this case, we've already received "status" - // which is the last event from gRPC, so it's cool to end the stream - if (statusReceived) { - retryStream.end(); - } - } - return retryStream; - // there is no else case because if enteredError - // is true, we will handle stream destruction as part of - // either retrying (where we don't want to end the stream) - // or as part of error handling, which will take care of stream destruction - }); - requestStream.on('error', (error) => { - enteredError = true; - // type check for undefined instead of for truthiness in case maxRetries or timeout is equal to zero - if (typeof maxRetries !== undefined || - typeof totalTimeout !== undefined) { - if (this.shouldRetryRequest(error, retry)) { - if (maxRetries && totalTimeout) { - const newError = new googleError_1.GoogleError('Cannot set both totalTimeoutMillis and maxRetries ' + - 'in backoffSettings.'); - newError.code = status_1.Status.INVALID_ARGUMENT; - // clean up the request stream and retryStreams, silently destroy it on the request stream - // but do raise it on destructin of the retryStream so the consumer can see it - requestStream.destroy(); - retryStream.destroy(newError); - return retryStream; - } - else { - // check for exceeding timeout or max retries - try { - this.throwIfMaxRetriesOrTotalTimeoutExceeded(deadline, maxRetries, timeout, error, totalTimeout, retries); - } - catch (error) { - const e = googleError_1.GoogleError.parseGRPCStatusDetails(error); - // clean up the request stream and retryStreams, silently destroy it on the request stream - // but do raise it on destruction of the retryStream so the consumer can see it - requestStream.destroy(); - retryStream.destroy(e); - return retryStream; - } - const delayMult = retry.backoffSettings.retryDelayMultiplier; - const maxDelay = retry.backoffSettings.maxRetryDelayMillis; - const timeoutMult = retry.backoffSettings.rpcTimeoutMultiplier; - const maxTimeout = retry.backoffSettings.maxRpcTimeoutMillis; - let delay = retry.backoffSettings.initialRetryDelayMillis; - // calculate new deadlines - const toSleep = Math.random() * delay; - const calculateTimeoutAndResumptionFunction = () => { - setTimeout(() => { - // only do timeout calculations if not using maxRetries - if (timeout) { - now = new Date(); - delay = Math.min(delay * delayMult, maxDelay); - const timeoutCal = timeout && timeoutMult ? timeout * timeoutMult : 0; - const rpcTimeout = maxTimeout ? maxTimeout : 0; - const newDeadline = deadline ? deadline - now.getTime() : 0; - timeout = Math.min(timeoutCal, rpcTimeout, newDeadline); - } - retries++; - let retryArgument = this.argument; - // if resumption logic is passed, use it to determined the - // new argument for the new request made to the server - // otherwise, the original argument will be passed - if (retry.getResumptionRequestFn !== undefined) { - retryArgument = retry.getResumptionRequestFn(retryArgument); - } - const newRequest = () => { - if (this._isCancelCalled) { - if (this.stream) { - this.stream.cancel(); - } - return; - } - const newStream = this.apiCall(retryArgument, this._callback); - return newStream; - }; - opts.request = newRequest; - // make a request with the updated parameters - // based on the resumption strategy - return newMakeRequest(opts); - }, toSleep); - }; - return calculateTimeoutAndResumptionFunction(); - } - } - else { - // non retryable error - return transientErrorHelper(error, requestStream); - } - } - else { - // neither timeout nor maxRetries are defined, surface the error to the caller - return transientErrorHelper(error, requestStream); - } - }); - // return the stream if we didn't return it as - // part of an error state - return retryStream; - }; - // this is the first make request call with the options the user passed in - return newMakeRequest(opts); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Producer(); + + if (data.hasOwnProperty('active')) { + obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean'); + } + + if (data.hasOwnProperty('failure_message')) { + obj['failure_message'] = _ApiClient["default"].convertToType(data['failure_message'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); + } + + if (data.hasOwnProperty('init')) { + obj['init'] = _ApiClient["default"].convertToType(data['init'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + } + + return obj; } -} -exports.StreamProxy = StreamProxy; -//# sourceMappingURL=streaming.js.map + }]); + + return Producer; +}(); +/** + * @member {Boolean} active + */ + + +Producer.prototype['active'] = undefined; +/** + * @member {String} failure_message + */ + +Producer.prototype['failure_message'] = undefined; +/** + * @member {Number} id + */ + +Producer.prototype['id'] = undefined; +/** + * @member {Boolean} init + */ + +Producer.prototype['init'] = undefined; +/** + * @member {String} name + */ + +Producer.prototype['name'] = undefined; +/** + * @member {String} type + */ + +Producer.prototype['type'] = undefined; +var _default = Producer; +exports["default"] = _default; /***/ }), -/***/ 98177: +/***/ 24318: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _Producer = _interopRequireDefault(__nccwpck_require__(11490)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * The ProducersConfigPart model module. + * @module model/ProducersConfigPart + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StreamingApiCaller = void 0; -const warnings_1 = __nccwpck_require__(25531); -const streaming_1 = __nccwpck_require__(21224); -class StreamingApiCaller { +var ProducersConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new ProducersConfigPart. + * @alias module:model/ProducersConfigPart + */ + function ProducersConfigPart() { + _classCallCheck(this, ProducersConfigPart); + + ProducersConfigPart.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ProducersConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * An API caller for methods of gRPC streaming. - * @private - * @constructor - * @param {StreamDescriptor} descriptor - the descriptor of the method structure. + * Constructs a ProducersConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProducersConfigPart} obj Optional instance to populate. + * @return {module:model/ProducersConfigPart} The populated ProducersConfigPart instance. */ - constructor(descriptor) { - this.descriptor = descriptor; - } - init(callback) { - return new streaming_1.StreamProxy(this.descriptor.type, callback, this.descriptor.rest, this.descriptor.gaxStreamingRetries); - } - wrap(func) { - switch (this.descriptor.type) { - case streaming_1.StreamType.SERVER_STREAMING: - return (argument, metadata, options) => { - return func(argument, metadata, options); - }; - case streaming_1.StreamType.CLIENT_STREAMING: - return (argument, metadata, options, callback) => { - return func(metadata, options, callback); - }; - case streaming_1.StreamType.BIDI_STREAMING: - return (argument, metadata, options) => { - return func(metadata, options); - }; - default: - (0, warnings_1.warn)('streaming_wrap_unknown_stream_type', `Unknown stream type: ${this.descriptor.type}`); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ProducersConfigPart(); + + if (data.hasOwnProperty('producers')) { + obj['producers'] = _ApiClient["default"].convertToType(data['producers'], [_Producer["default"]]); } - return func; - } - call(apiCall, argument, settings, stream) { - stream.setStream(apiCall, argument, settings.retryRequestOptions, settings.retry); - } - fail(stream, err) { - stream.emit('error', err); - } - result(stream) { - return stream; + } + + return obj; } -} -exports.StreamingApiCaller = StreamingApiCaller; -//# sourceMappingURL=streamingApiCaller.js.map + }]); + + return ProducersConfigPart; +}(); +/** + * @member {Array.} producers + */ + + +ProducersConfigPart.prototype['producers'] = undefined; +var _default = ProducersConfigPart; +exports["default"] = _default; /***/ }), -/***/ 976: +/***/ 99210: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * The ProvisionCertificate model module. + * @module model/ProvisionCertificate + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getField = getField; -exports.deepCopyWithoutMatchedFields = deepCopyWithoutMatchedFields; -exports.deleteField = deleteField; -exports.buildQueryStringComponents = buildQueryStringComponents; -exports.encodeWithSlashes = encodeWithSlashes; -exports.encodeWithoutSlashes = encodeWithoutSlashes; -exports.applyPattern = applyPattern; -exports.match = match; -exports.flattenObject = flattenObject; -exports.isProto3OptionalField = isProto3OptionalField; -exports.transcode = transcode; -exports.overrideHttpRules = overrideHttpRules; -const util_1 = __nccwpck_require__(24938); -const httpOptionName = '(google.api.http)'; -const proto3OptionalName = 'proto3_optional'; -// List of methods as defined in google/api/http.proto (see HttpRule) -const supportedHttpMethods = ['get', 'post', 'put', 'patch', 'delete']; -function getField(request, field, allowObjects = false // in most cases, we need leaf fields -) { - const parts = field.split('.'); - let value = request; - for (const part of parts) { - if (typeof value !== 'object') { - return undefined; - } - value = value[part]; - } - if (!allowObjects && - typeof value === 'object' && - !Array.isArray(value) && - value !== null) { - return undefined; - } - return value; -} -function deepCopyWithoutMatchedFields(request, fieldsToSkip, fullNamePrefix = '') { - if (typeof request !== 'object' || request === null) { - return request; - } - const copy = Object.assign({}, request); - for (const key in copy) { - if (fieldsToSkip.has(`${fullNamePrefix}${key}`)) { - delete copy[key]; - continue; - } - const nextFullNamePrefix = `${fullNamePrefix}${key}.`; - if (Array.isArray(copy[key])) { - // a field of an array cannot be addressed as "request.field", so we omit the skipping logic for array descendants - copy[key] = copy[key].map(value => deepCopyWithoutMatchedFields(value, new Set())); - } - else if (typeof copy[key] === 'object' && copy[key] !== null) { - copy[key] = deepCopyWithoutMatchedFields(copy[key], fieldsToSkip, nextFullNamePrefix); - } - } - return copy; -} -function deleteField(request, field) { - const parts = field.split('.'); - while (parts.length > 1) { - if (typeof request !== 'object') { - return; - } - const part = parts.shift(); - request = request[part]; - } - const part = parts.shift(); - if (typeof request !== 'object') { - return; - } - delete request[part]; -} -function buildQueryStringComponents(request, prefix = '') { - const resultList = []; - for (const key in request) { - if (Array.isArray(request[key])) { - for (const value of request[key]) { - resultList.push(`${prefix}${encodeWithoutSlashes(key)}=${encodeWithoutSlashes(value.toString())}`); - } - } - else if (typeof request[key] === 'object' && request[key] !== null) { - resultList.push(...buildQueryStringComponents(request[key], `${key}.`)); - } - else { - resultList.push(`${prefix}${encodeWithoutSlashes(key)}=${encodeWithoutSlashes(request[key] === null ? 'null' : request[key].toString())}`); - } - } - return resultList; -} -function encodeWithSlashes(str) { - return str - .split('') - .map(c => (c.match(/[-_.~0-9a-zA-Z]/) ? c : encodeURIComponent(c))) - .join(''); -} -function encodeWithoutSlashes(str) { - return str - .split('') - .map(c => (c.match(/[-_.~0-9a-zA-Z/]/) ? c : encodeURIComponent(c))) - .join(''); -} -function escapeRegExp(str) { - return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); -} -function applyPattern(pattern, fieldValue) { - if (!pattern || pattern === '*') { - return encodeWithSlashes(fieldValue); - } - if (!pattern.includes('*') && pattern !== fieldValue) { - return undefined; - } - // since we're converting the pattern to a regex, make necessary precautions: - const regex = new RegExp('^' + - escapeRegExp(pattern) - .replace(/\\\*\\\*/g, '(.+)') - .replace(/\\\*/g, '([^/]+)') + - '$'); - if (!fieldValue.match(regex)) { - return undefined; - } - return encodeWithoutSlashes(fieldValue); -} -function fieldToCamelCase(field) { - const parts = field.split('.'); - return parts.map(part => (0, util_1.toCamelCase)(part)).join('.'); -} -function match(request, pattern) { - let url = pattern; - const matchedFields = []; - for (;;) { - const match = url.match(/^(.*)\{([^}=]+)(?:=([^}]*))?\}(.*)/); - if (!match) { - break; - } - const [, before, field, pattern, after] = match; - const camelCasedField = fieldToCamelCase(field); - matchedFields.push(fieldToCamelCase(camelCasedField)); - const fieldValue = getField(request, camelCasedField); - if (fieldValue === undefined) { - return undefined; - } - const appliedPattern = applyPattern(pattern, fieldValue === null ? 'null' : fieldValue.toString()); - if (appliedPattern === undefined) { - return undefined; - } - url = before + appliedPattern + after; - } - return { matchedFields, url }; -} -function flattenObject(request) { - const result = {}; - for (const key in request) { - if (request[key] === undefined) { - continue; - } - if (Array.isArray(request[key])) { - // According to the http.proto comments, a repeated field may only - // contain primitive types, so no extra recursion here. - result[key] = request[key]; - continue; - } - if (typeof request[key] === 'object' && request[key] !== null) { - const nested = flattenObject(request[key]); - for (const nestedKey in nested) { - result[`${key}.${nestedKey}`] = nested[nestedKey]; - } - continue; - } - result[key] = request[key]; +var ProvisionCertificate = /*#__PURE__*/function () { + /** + * Constructs a new ProvisionCertificate. + * provisionCertificate is a command that provisions a certificate content to a target + * @alias module:model/ProvisionCertificate + * @param name {String} Certificate name + */ + function ProvisionCertificate(name) { + _classCallCheck(this, ProvisionCertificate); + + ProvisionCertificate.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ProvisionCertificate, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } - return result; -} -function isProto3OptionalField(field) { - return field && field.options && field.options[proto3OptionalName]; -} -function transcode(request, parsedOptions) { - const httpRules = []; - for (const option of parsedOptions) { - if (!(httpOptionName in option)) { - continue; + /** + * Constructs a ProvisionCertificate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProvisionCertificate} obj Optional instance to populate. + * @return {module:model/ProvisionCertificate} The populated ProvisionCertificate instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ProvisionCertificate(); + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); } - const httpRule = option[httpOptionName]; - httpRules.push(httpRule); - if (httpRule === null || httpRule === void 0 ? void 0 : httpRule.additional_bindings) { - const additionalBindings = Array.isArray(httpRule.additional_bindings) - ? httpRule.additional_bindings - : [httpRule.additional_bindings]; - httpRules.push(...additionalBindings); + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); } - } - for (const httpRule of httpRules) { - for (const httpMethod of supportedHttpMethods) { - if (!(httpMethod in httpRule)) { - continue; - } - const pathTemplate = httpRule[httpMethod]; - const matchResult = match(request, pathTemplate); - if (matchResult === undefined) { - continue; - } - const { url, matchedFields } = matchResult; - let data = deepCopyWithoutMatchedFields(request, new Set(matchedFields)); - if (httpRule.body === '*') { - return { httpMethod, url, queryString: '', data }; - } - // one field possibly goes to request data, others go to query string - const queryStringObject = data; - if (httpRule.body) { - data = getField(queryStringObject, fieldToCamelCase(httpRule.body), - /*allowObjects:*/ true); - deleteField(queryStringObject, fieldToCamelCase(httpRule.body)); - } - else { - data = ''; - } - const queryStringComponents = buildQueryStringComponents(queryStringObject); - const queryString = queryStringComponents.join('&'); - if (!data || - (typeof data === 'object' && Object.keys(data).length === 0)) { - data = ''; - } - return { httpMethod, url, queryString, data }; + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - } - return undefined; -} -// Override the protobuf json's the http rules. -function overrideHttpRules(httpRules, protoJson) { - for (const rule of httpRules) { - if (!rule.selector) { - continue; + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - const rpc = protoJson.lookup(rule.selector); - // Not support override on non-exist RPC or a RPC without an annotation. - // We could reconsider if we have the use case later. - if (!rpc || !rpc.parsedOptions) { - continue; + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - for (const item of rpc.parsedOptions) { - if (!(httpOptionName in item)) { - continue; - } - const httpOptions = item[httpOptionName]; - for (const httpMethod in httpOptions) { - if (httpMethod in rule) { - if (httpMethod === 'additional_bindings') { - continue; - } - httpOptions[httpMethod] = - rule[httpMethod]; - } - if (rule.additional_bindings) { - httpOptions['additional_bindings'] = !httpOptions['additional_bindings'] - ? [] - : Array.isArray(httpOptions['additional_bindings']) - ? httpOptions['additional_bindings'] - : [httpOptions['additional_bindings']]; - // Make the additional_binding to be an array if it is not. - httpOptions['additional_bindings'].push(...rule.additional_bindings); - } - } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - } -} -//# sourceMappingURL=transcoding.js.map + } -/***/ }), + return obj; + } + }]); -/***/ 24938: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + return ProvisionCertificate; +}(); +/** + * Certificate display ID + * @member {String} display-id + */ -"use strict"; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.camelToSnakeCase = camelToSnakeCase; -exports.toCamelCase = toCamelCase; -exports.toLowerCamelCase = toLowerCamelCase; -exports.makeUUID = makeUUID; +ProvisionCertificate.prototype['display-id'] = undefined; /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Certificate item ID + * @member {Number} item-id */ -const uuid_1 = __nccwpck_require__(39274); -function words(str, normalize = false) { - if (normalize) { - // strings like somethingABCSomething are special case for protobuf.js, - // they should be split as "something", "abc", "something". - // Deal with sequences of capital letters first. - str = str.replace(/([A-Z])([A-Z]+)([A-Z])/g, (str) => { - return (str[0] + - str.slice(1, str.length - 1).toLowerCase() + - str[str.length - 1]); - }); - } - // split on spaces, non-alphanumeric, or capital letters - // note: we keep the capitalization of the first word (special case: IPProtocol) - return str - .split(/(?=[A-Z])|[^A-Za-z0-9.]+/) - .filter(w => w.length > 0) - .map((w, index) => (index === 0 ? w : w.toLowerCase())); -} + +ProvisionCertificate.prototype['item-id'] = undefined; /** - * Converts the first character of the given string to lower case. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -function lowercase(str) { - if (str.length === 0) { - return str; - } - return str[0].toLowerCase() + str.slice(1); -} + +ProvisionCertificate.prototype['json'] = false; /** - * Converts a given string from camelCase (used by protobuf.js and in JSON) - * to snake_case (normally used in proto definitions). + * Certificate name + * @member {String} name */ -function camelToSnakeCase(str) { - // Keep the first position capitalization, otherwise decapitalize with underscore. - const wordsList = words(str); - if (wordsList.length === 0) { - return str; - } - const result = [wordsList[0]]; - result.push(...wordsList.slice(1).map(lowercase)); - return result.join('_'); -} + +ProvisionCertificate.prototype['name'] = undefined; /** - * Capitalizes the first character of the given string. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -function capitalize(str) { - if (str.length === 0) { - return str; - } - return str[0].toUpperCase() + str.slice(1); -} + +ProvisionCertificate.prototype['token'] = undefined; /** - * Converts a given string from snake_case (normally used in proto definitions) or - * PascalCase (also used in proto definitions) to camelCase (used by protobuf.js). - * Preserves capitalization of the first character. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -function toCamelCase(str) { - const wordsList = words(str, /*normalize:*/ true); - if (wordsList.length === 0) { - return str; - } - const result = [wordsList[0]]; - result.push(...wordsList.slice(1).map(w => { - if (w.match(/^\d+$/)) { - return '_' + w; - } - return capitalize(w); - })); - return result.join(''); -} + +ProvisionCertificate.prototype['uid-token'] = undefined; +var _default = ProvisionCertificate; +exports["default"] = _default; + +/***/ }), + +/***/ 88255: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Converts a given string to lower camel case (forcing the first character to be - * in lower case). + * The ProvisionCertificateOutput model module. + * @module model/ProvisionCertificateOutput + * @version 3.6.3 */ -function toLowerCamelCase(str) { - const camelCase = toCamelCase(str); - if (camelCase.length === 0) { - return camelCase; +var ProvisionCertificateOutput = /*#__PURE__*/function () { + /** + * Constructs a new ProvisionCertificateOutput. + * @alias module:model/ProvisionCertificateOutput + */ + function ProvisionCertificateOutput() { + _classCallCheck(this, ProvisionCertificateOutput); + + ProvisionCertificateOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ProvisionCertificateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ProvisionCertificateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ProvisionCertificateOutput} obj Optional instance to populate. + * @return {module:model/ProvisionCertificateOutput} The populated ProvisionCertificateOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ProvisionCertificateOutput(); + + if (data.hasOwnProperty('FailMessage')) { + obj['FailMessage'] = _ApiClient["default"].convertToType(data['FailMessage'], 'String'); + } + + if (data.hasOwnProperty('SuccessMessage')) { + obj['SuccessMessage'] = _ApiClient["default"].convertToType(data['SuccessMessage'], 'String'); + } + + if (data.hasOwnProperty('host_names')) { + obj['host_names'] = _ApiClient["default"].convertToType(data['host_names'], ['String']); + } + + if (data.hasOwnProperty('provisioned_at')) { + obj['provisioned_at'] = _ApiClient["default"].convertToType(data['provisioned_at'], 'Date'); + } + } + + return obj; } - return camelCase[0].toLowerCase() + camelCase.slice(1); -} + }]); + + return ProvisionCertificateOutput; +}(); /** - * Converts a given string to lower camel case (forcing the first character to be - * in lower case). + * @member {String} FailMessage */ -function makeUUID() { - return (0, uuid_1.v4)(); -} -//# sourceMappingURL=util.js.map -/***/ }), -/***/ 25531: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +ProvisionCertificateOutput.prototype['FailMessage'] = undefined; +/** + * @member {String} SuccessMessage + */ -"use strict"; +ProvisionCertificateOutput.prototype['SuccessMessage'] = undefined; +/** + * @member {Array.} host_names + */ +ProvisionCertificateOutput.prototype['host_names'] = undefined; /** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @member {Date} provisioned_at */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.warn = warn; -const featureDetection_1 = __nccwpck_require__(83515); -const emittedWarnings = new Set(); -// warnType is the type of warning (e.g. 'DeprecationWarning', 'ExperimentalWarning', etc.) -function warn(code, message, warnType) { - // Only show a given warning once - if (emittedWarnings.has(code)) { - return; - } - emittedWarnings.add(code); - if (!(0, featureDetection_1.isNodeJS)()) { - console.warn(message); - } - else if (typeof warnType !== 'undefined') { - process.emitWarning(message, { - type: warnType, - }); - } - else { - process.emitWarning(message); - } -} -//# sourceMappingURL=warnings.js.map + +ProvisionCertificateOutput.prototype['provisioned_at'] = undefined; +var _default = ProvisionCertificateOutput; +exports["default"] = _default; /***/ }), -/***/ 58597: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 78325: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.req = exports.json = exports.toBuffer = void 0; -const http = __importStar(__nccwpck_require__(58611)); -const https = __importStar(__nccwpck_require__(65692)); -async function toBuffer(stream) { - let length = 0; - const chunks = []; - for await (const chunk of stream) { - length += chunk.length; - chunks.push(chunk); - } - return Buffer.concat(chunks, length); -} -exports.toBuffer = toBuffer; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -async function json(stream) { - const buf = await toBuffer(stream); - const str = buf.toString('utf8'); - try { - return JSON.parse(str); - } - catch (_err) { - const err = _err; - err.message += ` (input: ${str})`; - throw err; - } -} -exports.json = json; -function req(url, opts = {}) { - const href = typeof url === 'string' ? url : url.href; - const req = (href.startsWith('https:') ? https : http).request(url, opts); - const promise = new Promise((resolve, reject) => { - req - .once('response', resolve) - .once('error', reject) - .end(); - }); - req.then = promise.then.bind(promise); - return req; -} -exports.req = req; -//# sourceMappingURL=helpers.js.map +exports["default"] = void 0; -/***/ }), +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ 6744: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -"use strict"; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Agent = void 0; -const net = __importStar(__nccwpck_require__(69278)); -const http = __importStar(__nccwpck_require__(58611)); -const https_1 = __nccwpck_require__(65692); -__exportStar(__nccwpck_require__(58597), exports); -const INTERNAL = Symbol('AgentBaseInternalState'); -class Agent extends http.Agent { - constructor(opts) { - super(opts); - this[INTERNAL] = {}; - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RabbitMQTargetDetails model module. + * @module model/RabbitMQTargetDetails + * @version 3.6.3 + */ +var RabbitMQTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new RabbitMQTargetDetails. + * @alias module:model/RabbitMQTargetDetails + */ + function RabbitMQTargetDetails() { + _classCallCheck(this, RabbitMQTargetDetails); + + RabbitMQTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RabbitMQTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Determine whether this is an `http` or `https` request. + * Constructs a RabbitMQTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RabbitMQTargetDetails} obj Optional instance to populate. + * @return {module:model/RabbitMQTargetDetails} The populated RabbitMQTargetDetails instance. */ - isSecureEndpoint(options) { - if (options) { - // First check the `secureEndpoint` property explicitly, since this - // means that a parent `Agent` is "passing through" to this instance. - // eslint-disable-next-line @typescript-eslint/no-explicit-any - if (typeof options.secureEndpoint === 'boolean') { - return options.secureEndpoint; - } - // If no explicit `secure` endpoint, check if `protocol` property is - // set. This will usually be the case since using a full string URL - // or `URL` instance should be the most common usage. - if (typeof options.protocol === 'string') { - return options.protocol === 'https:'; - } - } - // Finally, if no `protocol` property was set, then fall back to - // checking the stack trace of the current call stack, and try to - // detect the "https" module. - const { stack } = new Error(); - if (typeof stack !== 'string') - return false; - return stack - .split('\n') - .some((l) => l.indexOf('(https.js:') !== -1 || - l.indexOf('node:https:') !== -1); - } - // In order to support async signatures in `connect()` and Node's native - // connection pooling in `http.Agent`, the array of sockets for each origin - // has to be updated synchronously. This is so the length of the array is - // accurate when `addRequest()` is next called. We achieve this by creating a - // fake socket and adding it to `sockets[origin]` and incrementing - // `totalSocketCount`. - incrementSockets(name) { - // If `maxSockets` and `maxTotalSockets` are both Infinity then there is no - // need to create a fake socket because Node.js native connection pooling - // will never be invoked. - if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) { - return null; - } - // All instances of `sockets` are expected TypeScript errors. The - // alternative is to add it as a private property of this class but that - // will break TypeScript subclassing. - if (!this.sockets[name]) { - // @ts-expect-error `sockets` is readonly in `@types/node` - this.sockets[name] = []; - } - const fakeSocket = new net.Socket({ writable: false }); - this.sockets[name].push(fakeSocket); - // @ts-expect-error `totalSocketCount` isn't defined in `@types/node` - this.totalSocketCount++; - return fakeSocket; - } - decrementSockets(name, socket) { - if (!this.sockets[name] || socket === null) { - return; - } - const sockets = this.sockets[name]; - const index = sockets.indexOf(socket); - if (index !== -1) { - sockets.splice(index, 1); - // @ts-expect-error `totalSocketCount` isn't defined in `@types/node` - this.totalSocketCount--; - if (sockets.length === 0) { - // @ts-expect-error `sockets` is readonly in `@types/node` - delete this.sockets[name]; - } - } - } - // In order to properly update the socket pool, we need to call `getName()` on - // the core `https.Agent` if it is a secureEndpoint. - getName(options) { - const secureEndpoint = this.isSecureEndpoint(options); - if (secureEndpoint) { - // @ts-expect-error `getName()` isn't defined in `@types/node` - return https_1.Agent.prototype.getName.call(this, options); - } - // @ts-expect-error `getName()` isn't defined in `@types/node` - return super.getName(options); - } - createSocket(req, options, cb) { - const connectOpts = { - ...options, - secureEndpoint: this.isSecureEndpoint(options), - }; - const name = this.getName(connectOpts); - const fakeSocket = this.incrementSockets(name); - Promise.resolve() - .then(() => this.connect(req, connectOpts)) - .then((socket) => { - this.decrementSockets(name, fakeSocket); - if (socket instanceof http.Agent) { - try { - // @ts-expect-error `addRequest()` isn't defined in `@types/node` - return socket.addRequest(req, connectOpts); - } - catch (err) { - return cb(err); - } - } - this[INTERNAL].currentSocket = socket; - // @ts-expect-error `createSocket()` isn't defined in `@types/node` - super.createSocket(req, options, cb); - }, (err) => { - this.decrementSockets(name, fakeSocket); - cb(err); - }); - } - createConnection() { - const socket = this[INTERNAL].currentSocket; - this[INTERNAL].currentSocket = undefined; - if (!socket) { - throw new Error('No socket was returned in the `connect()` function'); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RabbitMQTargetDetails(); + + if (data.hasOwnProperty('rabbitmq_server_password')) { + obj['rabbitmq_server_password'] = _ApiClient["default"].convertToType(data['rabbitmq_server_password'], 'String'); } - return socket; - } - get defaultPort() { - return (this[INTERNAL].defaultPort ?? - (this.protocol === 'https:' ? 443 : 80)); - } - set defaultPort(v) { - if (this[INTERNAL]) { - this[INTERNAL].defaultPort = v; + + if (data.hasOwnProperty('rabbitmq_server_uri')) { + obj['rabbitmq_server_uri'] = _ApiClient["default"].convertToType(data['rabbitmq_server_uri'], 'String'); } - } - get protocol() { - return (this[INTERNAL].protocol ?? - (this.isSecureEndpoint() ? 'https:' : 'http:')); - } - set protocol(v) { - if (this[INTERNAL]) { - this[INTERNAL].protocol = v; + + if (data.hasOwnProperty('rabbitmq_server_user')) { + obj['rabbitmq_server_user'] = _ApiClient["default"].convertToType(data['rabbitmq_server_user'], 'String'); } + } + + return obj; } -} -exports.Agent = Agent; -//# sourceMappingURL=index.js.map + }]); + + return RabbitMQTargetDetails; +}(); +/** + * @member {String} rabbitmq_server_password + */ + + +RabbitMQTargetDetails.prototype['rabbitmq_server_password'] = undefined; +/** + * @member {String} rabbitmq_server_uri + */ + +RabbitMQTargetDetails.prototype['rabbitmq_server_uri'] = undefined; +/** + * @member {String} rabbitmq_server_user + */ + +RabbitMQTargetDetails.prototype['rabbitmq_server_user'] = undefined; +var _default = RabbitMQTargetDetails; +exports["default"] = _default; /***/ }), -/***/ 63468: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 18791: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2018 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -var _a; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GaxiosError = exports.GAXIOS_ERROR_SYMBOL = void 0; -exports.defaultErrorRedactor = defaultErrorRedactor; -const url_1 = __nccwpck_require__(87016); -const util_1 = __nccwpck_require__(25645); -const extend_1 = __importDefault(__nccwpck_require__(23860)); + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Support `instanceof` operator for `GaxiosError`s in different versions of this library. - * - * @see {@link GaxiosError[Symbol.hasInstance]} + * The RawCreds model module. + * @module model/RawCreds + * @version 3.6.3 */ -exports.GAXIOS_ERROR_SYMBOL = Symbol.for(`${util_1.pkg.name}-gaxios-error`); -/* eslint-disable-next-line @typescript-eslint/no-explicit-any */ -class GaxiosError extends Error { +var RawCreds = /*#__PURE__*/function () { + /** + * Constructs a new RawCreds. + * @alias module:model/RawCreds + */ + function RawCreds() { + _classCallCheck(this, RawCreds); + + RawCreds.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RawCreds, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Support `instanceof` operator for `GaxiosError` across builds/duplicated files. - * - * @see {@link GAXIOS_ERROR_SYMBOL} - * @see {@link GaxiosError[GAXIOS_ERROR_SYMBOL]} + * Constructs a RawCreds from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RawCreds} obj Optional instance to populate. + * @return {module:model/RawCreds} The populated RawCreds instance. */ - static [(_a = exports.GAXIOS_ERROR_SYMBOL, Symbol.hasInstance)](instance) { - if (instance && - typeof instance === 'object' && - exports.GAXIOS_ERROR_SYMBOL in instance && - instance[exports.GAXIOS_ERROR_SYMBOL] === util_1.pkg.version) { - return true; - } - // fallback to native - return Function.prototype[Symbol.hasInstance].call(GaxiosError, instance); - } - constructor(message, config, response, error) { - var _b; - super(message); - this.config = config; - this.response = response; - this.error = error; - /** - * Support `instanceof` operator for `GaxiosError` across builds/duplicated files. - * - * @see {@link GAXIOS_ERROR_SYMBOL} - * @see {@link GaxiosError[Symbol.hasInstance]} - * @see {@link https://github.com/microsoft/TypeScript/issues/13965#issuecomment-278570200} - * @see {@link https://stackoverflow.com/questions/46618852/require-and-instanceof} - * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/@@hasInstance#reverting_to_default_instanceof_behavior} - */ - this[_a] = util_1.pkg.version; - // deep-copy config as we do not want to mutate - // the existing config for future retries/use - this.config = (0, extend_1.default)(true, {}, config); - if (this.response) { - this.response.config = (0, extend_1.default)(true, {}, this.response.config); - } - if (this.response) { - try { - this.response.data = translateData(this.config.responseType, (_b = this.response) === null || _b === void 0 ? void 0 : _b.data); - } - catch (_c) { - // best effort - don't throw an error within an error - // we could set `this.response.config.responseType = 'unknown'`, but - // that would mutate future calls with this config object. - } - this.status = this.response.status; - } - if (error && 'code' in error && error.code) { - this.code = error.code; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RawCreds(); + + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); } - if (config.errorRedactor) { - config.errorRedactor({ - config: this.config, - response: this.response, - }); + + if (data.hasOwnProperty('access-key')) { + obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); } + } + + return obj; } -} -exports.GaxiosError = GaxiosError; -function translateData(responseType, data) { - switch (responseType) { - case 'stream': - return data; - case 'json': - return JSON.parse(JSON.stringify(data)); - case 'arraybuffer': - return JSON.parse(Buffer.from(data).toString('utf8')); - case 'blob': - return JSON.parse(data.text()); - default: - return data; - } -} + }]); + + return RawCreds; +}(); /** - * An experimental error redactor. - * - * @param config Config to potentially redact properties of - * @param response Config to potentially redact properties of - * - * @experimental + * @member {String} access-id */ -function defaultErrorRedactor(data) { - const REDACT = '< - See `errorRedactor` option in `gaxios` for configuration>.'; - function redactHeaders(headers) { - if (!headers) - return; - for (const key of Object.keys(headers)) { - // any casing of `Authentication` - if (/^authentication$/i.test(key)) { - headers[key] = REDACT; - } - // any casing of `Authorization` - if (/^authorization$/i.test(key)) { - headers[key] = REDACT; - } - // anything containing secret, such as 'client secret' - if (/secret/i.test(key)) { - headers[key] = REDACT; - } - } - } - function redactString(obj, key) { - if (typeof obj === 'object' && - obj !== null && - typeof obj[key] === 'string') { - const text = obj[key]; - if (/grant_type=/i.test(text) || - /assertion=/i.test(text) || - /secret/i.test(text)) { - obj[key] = REDACT; - } - } - } - function redactObject(obj) { - if (typeof obj === 'object' && obj !== null) { - if ('grant_type' in obj) { - obj['grant_type'] = REDACT; - } - if ('assertion' in obj) { - obj['assertion'] = REDACT; - } - if ('client_secret' in obj) { - obj['client_secret'] = REDACT; - } - } - } - if (data.config) { - redactHeaders(data.config.headers); - redactString(data.config, 'data'); - redactObject(data.config.data); - redactString(data.config, 'body'); - redactObject(data.config.body); - try { - const url = new url_1.URL('', data.config.url); - if (url.searchParams.has('token')) { - url.searchParams.set('token', REDACT); - } - if (url.searchParams.has('client_secret')) { - url.searchParams.set('client_secret', REDACT); - } - data.config.url = url.toString(); - } - catch (_b) { - // ignore error - no need to parse an invalid URL - } - } - if (data.response) { - defaultErrorRedactor({ config: data.response.config }); - redactHeaders(data.response.headers); - redactString(data.response, 'data'); - redactObject(data.response.data); - } - return data; -} -//# sourceMappingURL=common.js.map + + +RawCreds.prototype['access-id'] = undefined; +/** + * @member {String} access-key + */ + +RawCreds.prototype['access-key'] = undefined; +var _default = RawCreds; +exports["default"] = _default; /***/ }), -/***/ 84792: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 94978: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2018 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __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 __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -var _Gaxios_instances, _a, _Gaxios_urlMayUseProxy, _Gaxios_applyRequestInterceptors, _Gaxios_applyResponseInterceptors, _Gaxios_prepareRequest, _Gaxios_proxyAgent, _Gaxios_getProxyAgent; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Gaxios = void 0; -const extend_1 = __importDefault(__nccwpck_require__(23860)); -const https_1 = __nccwpck_require__(65692); -const node_fetch_1 = __importDefault(__nccwpck_require__(26705)); -const querystring_1 = __importDefault(__nccwpck_require__(83480)); -const is_stream_1 = __importDefault(__nccwpck_require__(96543)); -const url_1 = __nccwpck_require__(87016); -const common_1 = __nccwpck_require__(63468); -const retry_1 = __nccwpck_require__(93371); -const stream_1 = __nccwpck_require__(2203); -const uuid_1 = __nccwpck_require__(39274); -const interceptor_1 = __nccwpck_require__(11514); -/* eslint-disable @typescript-eslint/no-explicit-any */ -const fetch = hasFetch() ? window.fetch : node_fetch_1.default; -function hasWindow() { - return typeof window !== 'undefined' && !!window; -} -function hasFetch() { - return hasWindow() && !!window.fetch; -} -function hasBuffer() { - return typeof Buffer !== 'undefined'; -} -function hasHeader(options, header) { - return !!getHeader(options, header); -} -function getHeader(options, header) { - header = header.toLowerCase(); - for (const key of Object.keys((options === null || options === void 0 ? void 0 : options.headers) || {})) { - if (header === key.toLowerCase()) { - return options.headers[key]; - } - } - return undefined; -} -class Gaxios { - /** - * The Gaxios class is responsible for making HTTP requests. - * @param defaults The default set of options to be used for this instance. - */ - constructor(defaults) { - _Gaxios_instances.add(this); - this.agentCache = new Map(); - this.defaults = defaults || {}; - this.interceptors = { - request: new interceptor_1.GaxiosInterceptorManager(), - response: new interceptor_1.GaxiosInterceptorManager(), - }; - } - /** - * Perform an HTTP request with the given options. - * @param opts Set of HTTP options that will be used for this HTTP request. - */ - async request(opts = {}) { - opts = await __classPrivateFieldGet(this, _Gaxios_instances, "m", _Gaxios_prepareRequest).call(this, opts); - opts = await __classPrivateFieldGet(this, _Gaxios_instances, "m", _Gaxios_applyRequestInterceptors).call(this, opts); - return __classPrivateFieldGet(this, _Gaxios_instances, "m", _Gaxios_applyResponseInterceptors).call(this, this._request(opts)); - } - async _defaultAdapter(opts) { - const fetchImpl = opts.fetchImplementation || fetch; - const res = (await fetchImpl(opts.url, opts)); - const data = await this.getResponseData(opts, res); - return this.translateResponse(opts, res, data); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RefreshKey model module. + * @module model/RefreshKey + * @version 3.6.3 + */ +var RefreshKey = /*#__PURE__*/function () { + /** + * Constructs a new RefreshKey. + * @alias module:model/RefreshKey + * @param name {String} Key name + */ + function RefreshKey(name) { + _classCallCheck(this, RefreshKey); + + RefreshKey.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RefreshKey, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Internal, retryable version of the `request` method. - * @param opts Set of HTTP options that will be used for this HTTP request. + * Constructs a RefreshKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RefreshKey} obj Optional instance to populate. + * @return {module:model/RefreshKey} The populated RefreshKey instance. */ - async _request(opts = {}) { - var _b; - try { - let translatedResponse; - if (opts.adapter) { - translatedResponse = await opts.adapter(opts, this._defaultAdapter.bind(this)); - } - else { - translatedResponse = await this._defaultAdapter(opts); - } - if (!opts.validateStatus(translatedResponse.status)) { - if (opts.responseType === 'stream') { - let response = ''; - await new Promise(resolve => { - (translatedResponse === null || translatedResponse === void 0 ? void 0 : translatedResponse.data).on('data', chunk => { - response += chunk; - }); - (translatedResponse === null || translatedResponse === void 0 ? void 0 : translatedResponse.data).on('end', resolve); - }); - translatedResponse.data = response; - } - throw new common_1.GaxiosError(`Request failed with status code ${translatedResponse.status}`, opts, translatedResponse); - } - return translatedResponse; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RefreshKey(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - catch (e) { - const err = e instanceof common_1.GaxiosError - ? e - : new common_1.GaxiosError(e.message, opts, undefined, e); - const { shouldRetry, config } = await (0, retry_1.getRetryConfig)(err); - if (shouldRetry && config) { - err.config.retryConfig.currentRetryAttempt = - config.retryConfig.currentRetryAttempt; - // The error's config could be redacted - therefore we only want to - // copy the retry state over to the existing config - opts.retryConfig = (_b = err.config) === null || _b === void 0 ? void 0 : _b.retryConfig; - return this._request(opts); - } - throw err; + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - } - async getResponseData(opts, res) { - switch (opts.responseType) { - case 'stream': - return res.body; - case 'json': { - let data = await res.text(); - try { - data = JSON.parse(data); - } - catch (_b) { - // continue - } - return data; - } - case 'arraybuffer': - return res.arrayBuffer(); - case 'blob': - return res.blob(); - case 'text': - return res.text(); - default: - return this.getResponseDataFromContentType(res); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } + }]); + + return RefreshKey; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +RefreshKey.prototype['json'] = false; +/** + * Key name + * @member {String} name + */ + +RefreshKey.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RefreshKey.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RefreshKey.prototype['uid-token'] = undefined; +var _default = RefreshKey; +exports["default"] = _default; + +/***/ }), + +/***/ 1383: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RefreshKeyOutput model module. + * @module model/RefreshKeyOutput + * @version 3.6.3 + */ +var RefreshKeyOutput = /*#__PURE__*/function () { + /** + * Constructs a new RefreshKeyOutput. + * @alias module:model/RefreshKeyOutput + */ + function RefreshKeyOutput() { + _classCallCheck(this, RefreshKeyOutput); + + RefreshKeyOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RefreshKeyOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * By default, throw for any non-2xx status code - * @param status status code from the HTTP response - */ - validateStatus(status) { - return status >= 200 && status < 300; - } - /** - * Encode a set of key/value pars into a querystring format (?foo=bar&baz=boo) - * @param params key value pars to encode - */ - paramsSerializer(params) { - return querystring_1.default.stringify(params); - } - translateResponse(opts, res, data) { - // headers need to be converted from a map to an obj - const headers = {}; - res.headers.forEach((value, key) => { - headers[key] = value; - }); - return { - config: opts, - data: data, - headers, - status: res.status, - statusText: res.statusText, - // XMLHttpRequestLike - request: { - responseURL: res.url, - }, - }; - } - /** - * Attempts to parse a response by looking at the Content-Type header. - * @param {FetchResponse} response the HTTP response. - * @returns {Promise} a promise that resolves to the response data. + * Constructs a RefreshKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RefreshKeyOutput} obj Optional instance to populate. + * @return {module:model/RefreshKeyOutput} The populated RefreshKeyOutput instance. */ - async getResponseDataFromContentType(response) { - let contentType = response.headers.get('Content-Type'); - if (contentType === null) { - // Maintain existing functionality by calling text() - return response.text(); - } - contentType = contentType.toLowerCase(); - if (contentType.includes('application/json')) { - let data = await response.text(); - try { - data = JSON.parse(data); - } - catch (_b) { - // continue - } - return data; - } - else if (contentType.match(/^text\//)) { - return response.text(); - } - else { - // If the content type is something not easily handled, just return the raw data (blob) - return response.blob(); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RefreshKeyOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); } + } + + return obj; } + }]); + + return RefreshKeyOutput; +}(); +/** + * @member {String} result + */ + + +RefreshKeyOutput.prototype['result'] = undefined; +var _default = RefreshKeyOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 38336: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RegexpTokenizerInfo model module. + * @module model/RegexpTokenizerInfo + * @version 3.6.3 + */ +var RegexpTokenizerInfo = /*#__PURE__*/function () { + /** + * Constructs a new RegexpTokenizerInfo. + * RegexpTokenizerInfo represents a general Regexp tokenization template + * @alias module:model/RegexpTokenizerInfo + */ + function RegexpTokenizerInfo() { + _classCallCheck(this, RegexpTokenizerInfo); + + RegexpTokenizerInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RegexpTokenizerInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Creates an async generator that yields the pieces of a multipart/related request body. - * This implementation follows the spec: https://www.ietf.org/rfc/rfc2387.txt. However, recursive - * multipart/related requests are not currently supported. - * - * @param {GaxioMultipartOptions[]} multipartOptions the pieces to turn into a multipart/related body. - * @param {string} boundary the boundary string to be placed between each part. + * Constructs a RegexpTokenizerInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RegexpTokenizerInfo} obj Optional instance to populate. + * @return {module:model/RegexpTokenizerInfo} The populated RegexpTokenizerInfo instance. */ - async *getMultipartRequest(multipartOptions, boundary) { - const finale = `--${boundary}--`; - for (const currentPart of multipartOptions) { - const partContentType = currentPart.headers['Content-Type'] || 'application/octet-stream'; - const preamble = `--${boundary}\r\nContent-Type: ${partContentType}\r\n\r\n`; - yield preamble; - if (typeof currentPart.content === 'string') { - yield currentPart.content; - } - else { - yield* currentPart.content; - } - yield '\r\n'; - } - yield finale; - } -} -exports.Gaxios = Gaxios; -_a = Gaxios, _Gaxios_instances = new WeakSet(), _Gaxios_urlMayUseProxy = function _Gaxios_urlMayUseProxy(url, noProxy = []) { - var _b, _c; - const candidate = new url_1.URL(url); - const noProxyList = [...noProxy]; - const noProxyEnvList = ((_c = ((_b = process.env.NO_PROXY) !== null && _b !== void 0 ? _b : process.env.no_proxy)) === null || _c === void 0 ? void 0 : _c.split(',')) || []; - for (const rule of noProxyEnvList) { - noProxyList.push(rule.trim()); - } - for (const rule of noProxyList) { - // Match regex - if (rule instanceof RegExp) { - if (rule.test(candidate.toString())) { - return false; - } + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RegexpTokenizerInfo(); + + if (data.hasOwnProperty('alphabet')) { + obj['alphabet'] = _ApiClient["default"].convertToType(data['alphabet'], 'String'); } - // Match URL - else if (rule instanceof url_1.URL) { - if (rule.origin === candidate.origin) { - return false; - } + + if (data.hasOwnProperty('decoding_template')) { + obj['decoding_template'] = _ApiClient["default"].convertToType(data['decoding_template'], 'String'); } - // Match string regex - else if (rule.startsWith('*.') || rule.startsWith('.')) { - const cleanedRule = rule.replace(/^\*\./, '.'); - if (candidate.hostname.endsWith(cleanedRule)) { - return false; - } + + if (data.hasOwnProperty('encoding_template')) { + obj['encoding_template'] = _ApiClient["default"].convertToType(data['encoding_template'], 'String'); } - // Basic string match - else if (rule === candidate.origin || - rule === candidate.hostname || - rule === candidate.href) { - return false; + + if (data.hasOwnProperty('pattern')) { + obj['pattern'] = _ApiClient["default"].convertToType(data['pattern'], 'String'); } + } + + return obj; } - return true; -}, _Gaxios_applyRequestInterceptors = + }]); + + return RegexpTokenizerInfo; +}(); /** - * Applies the request interceptors. The request interceptors are applied after the - * call to prepareRequest is completed. - * - * @param {GaxiosOptions} options The current set of options. - * - * @returns {Promise} Promise that resolves to the set of options or response after interceptors are applied. + * The Alphabet used for the tokenization + * @member {String} alphabet */ -async function _Gaxios_applyRequestInterceptors(options) { - let promiseChain = Promise.resolve(options); - for (const interceptor of this.interceptors.request.values()) { - if (interceptor) { - promiseChain = promiseChain.then(interceptor.resolved, interceptor.rejected); - } - } - return promiseChain; -}, _Gaxios_applyResponseInterceptors = + + +RegexpTokenizerInfo.prototype['alphabet'] = undefined; /** - * Applies the response interceptors. The response interceptors are applied after the - * call to request is made. - * - * @param {GaxiosOptions} options The current set of options. - * - * @returns {Promise} Promise that resolves to the set of options or response after interceptors are applied. + * Transformation to perform on the decrypted data + * @member {String} decoding_template */ -async function _Gaxios_applyResponseInterceptors(response) { - let promiseChain = Promise.resolve(response); - for (const interceptor of this.interceptors.response.values()) { - if (interceptor) { - promiseChain = promiseChain.then(interceptor.resolved, interceptor.rejected); - } - } - return promiseChain; -}, _Gaxios_prepareRequest = + +RegexpTokenizerInfo.prototype['decoding_template'] = undefined; /** - * Validates the options, merges them with defaults, and prepare request. - * - * @param options The original options passed from the client. - * @returns Prepared options, ready to make a request + * Transformation to perform on the encrypted data, if the required output template doesn't match the input string The output Should still be valid for the Pattern, otherwise the secret would be able to be decrypted. + * @member {String} encoding_template */ -async function _Gaxios_prepareRequest(options) { - var _b, _c, _d, _e; - const opts = (0, extend_1.default)(true, {}, this.defaults, options); - if (!opts.url) { - throw new Error('URL is required.'); - } - // baseUrl has been deprecated, remove in 2.0 - const baseUrl = opts.baseUrl || opts.baseURL; - if (baseUrl) { - opts.url = baseUrl.toString() + opts.url; - } - opts.paramsSerializer = opts.paramsSerializer || this.paramsSerializer; - if (opts.params && Object.keys(opts.params).length > 0) { - let additionalQueryParams = opts.paramsSerializer(opts.params); - if (additionalQueryParams.startsWith('?')) { - additionalQueryParams = additionalQueryParams.slice(1); - } - const prefix = opts.url.toString().includes('?') ? '&' : '?'; - opts.url = opts.url + prefix + additionalQueryParams; - } - if (typeof options.maxContentLength === 'number') { - opts.size = options.maxContentLength; - } - if (typeof options.maxRedirects === 'number') { - opts.follow = options.maxRedirects; - } - opts.headers = opts.headers || {}; - if (opts.multipart === undefined && opts.data) { - const isFormData = typeof FormData === 'undefined' - ? false - : (opts === null || opts === void 0 ? void 0 : opts.data) instanceof FormData; - if (is_stream_1.default.readable(opts.data)) { - opts.body = opts.data; - } - else if (hasBuffer() && Buffer.isBuffer(opts.data)) { - // Do not attempt to JSON.stringify() a Buffer: - opts.body = opts.data; - if (!hasHeader(opts, 'Content-Type')) { - opts.headers['Content-Type'] = 'application/json'; - } - } - else if (typeof opts.data === 'object') { - // If www-form-urlencoded content type has been set, but data is - // provided as an object, serialize the content using querystring: - if (!isFormData) { - if (getHeader(opts, 'content-type') === - 'application/x-www-form-urlencoded') { - opts.body = opts.paramsSerializer(opts.data); - } - else { - // } else if (!(opts.data instanceof FormData)) { - if (!hasHeader(opts, 'Content-Type')) { - opts.headers['Content-Type'] = 'application/json'; - } - opts.body = JSON.stringify(opts.data); - } - } - } - else { - opts.body = opts.data; - } - } - else if (opts.multipart && opts.multipart.length > 0) { - // note: once the minimum version reaches Node 16, - // this can be replaced with randomUUID() function from crypto - // and the dependency on UUID removed - const boundary = (0, uuid_1.v4)(); - opts.headers['Content-Type'] = `multipart/related; boundary=${boundary}`; - const bodyStream = new stream_1.PassThrough(); - opts.body = bodyStream; - (0, stream_1.pipeline)(this.getMultipartRequest(opts.multipart, boundary), bodyStream, () => { }); - } - opts.validateStatus = opts.validateStatus || this.validateStatus; - opts.responseType = opts.responseType || 'unknown'; - if (!opts.headers['Accept'] && opts.responseType === 'json') { - opts.headers['Accept'] = 'application/json'; - } - opts.method = opts.method || 'GET'; - const proxy = opts.proxy || - ((_b = process === null || process === void 0 ? void 0 : process.env) === null || _b === void 0 ? void 0 : _b.HTTPS_PROXY) || - ((_c = process === null || process === void 0 ? void 0 : process.env) === null || _c === void 0 ? void 0 : _c.https_proxy) || - ((_d = process === null || process === void 0 ? void 0 : process.env) === null || _d === void 0 ? void 0 : _d.HTTP_PROXY) || - ((_e = process === null || process === void 0 ? void 0 : process.env) === null || _e === void 0 ? void 0 : _e.http_proxy); - const urlMayUseProxy = __classPrivateFieldGet(this, _Gaxios_instances, "m", _Gaxios_urlMayUseProxy).call(this, opts.url, opts.noProxy); - if (opts.agent) { - // don't do any of the following options - use the user-provided agent. - } - else if (proxy && urlMayUseProxy) { - const HttpsProxyAgent = await __classPrivateFieldGet(_a, _a, "m", _Gaxios_getProxyAgent).call(_a); - if (this.agentCache.has(proxy)) { - opts.agent = this.agentCache.get(proxy); - } - else { - opts.agent = new HttpsProxyAgent(proxy, { - cert: opts.cert, - key: opts.key, - }); - this.agentCache.set(proxy, opts.agent); - } - } - else if (opts.cert && opts.key) { - // Configure client for mTLS - if (this.agentCache.has(opts.key)) { - opts.agent = this.agentCache.get(opts.key); - } - else { - opts.agent = new https_1.Agent({ - cert: opts.cert, - key: opts.key, - }); - this.agentCache.set(opts.key, opts.agent); - } - } - if (typeof opts.errorRedactor !== 'function' && - opts.errorRedactor !== false) { - opts.errorRedactor = common_1.defaultErrorRedactor; - } - return opts; -}, _Gaxios_getProxyAgent = async function _Gaxios_getProxyAgent() { - __classPrivateFieldSet(this, _a, __classPrivateFieldGet(this, _a, "f", _Gaxios_proxyAgent) || (await Promise.resolve().then(() => __importStar(__nccwpck_require__(65679)))).HttpsProxyAgent, "f", _Gaxios_proxyAgent); - return __classPrivateFieldGet(this, _a, "f", _Gaxios_proxyAgent); -}; + +RegexpTokenizerInfo.prototype['encoding_template'] = undefined; /** - * A cache for the lazily-loaded proxy agent. - * - * Should use {@link Gaxios[#getProxyAgent]} to retrieve. + * Regexp pattern to extract and deposit the text/encdata + * @member {String} pattern */ -// using `import` to dynamically import the types here -_Gaxios_proxyAgent = { value: void 0 }; -//# sourceMappingURL=gaxios.js.map + +RegexpTokenizerInfo.prototype['pattern'] = undefined; +var _default = RegexpTokenizerInfo; +exports["default"] = _default; /***/ }), -/***/ 67773: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 97884: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2018 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.instance = exports.Gaxios = exports.GaxiosError = void 0; -exports.request = request; -const gaxios_1 = __nccwpck_require__(84792); -Object.defineProperty(exports, "Gaxios", ({ enumerable: true, get: function () { return gaxios_1.Gaxios; } })); -var common_1 = __nccwpck_require__(63468); -Object.defineProperty(exports, "GaxiosError", ({ enumerable: true, get: function () { return common_1.GaxiosError; } })); -__exportStar(__nccwpck_require__(11514), exports); -/** - * The default instance used when the `request` method is directly - * invoked. - */ -exports.instance = new gaxios_1.Gaxios(); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Make an HTTP request using the given options. - * @param opts Options for the request + * The RenewCertificate model module. + * @module model/RenewCertificate + * @version 3.6.3 */ -async function request(opts) { - return exports.instance.request(opts); -} -//# sourceMappingURL=index.js.map +var RenewCertificate = /*#__PURE__*/function () { + /** + * Constructs a new RenewCertificate. + * @alias module:model/RenewCertificate + */ + function RenewCertificate() { + _classCallCheck(this, RenewCertificate); -/***/ }), + RenewCertificate.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ 11514: -/***/ ((__unused_webpack_module, exports) => { -"use strict"; + _createClass(RenewCertificate, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a RenewCertificate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RenewCertificate} obj Optional instance to populate. + * @return {module:model/RenewCertificate} The populated RenewCertificate instance. + */ -// 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.GaxiosInterceptorManager = void 0; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RenewCertificate(); + + if (data.hasOwnProperty('generate-key')) { + obj['generate-key'] = _ApiClient["default"].convertToType(data['generate-key'], 'Boolean'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return RenewCertificate; +}(); /** - * Class to manage collections of GaxiosInterceptors for both requests and responses. + * Generate a new key as part of the certificate renewal + * @member {Boolean} generate-key */ -class GaxiosInterceptorManager extends Set { -} -exports.GaxiosInterceptorManager = GaxiosInterceptorManager; -//# sourceMappingURL=interceptor.js.map -/***/ }), -/***/ 93371: -/***/ ((__unused_webpack_module, exports) => { +RenewCertificate.prototype['generate-key'] = undefined; +/** + * Certificate item id + * @member {Number} item-id + */ -"use strict"; +RenewCertificate.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -// Copyright 2018 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRetryConfig = getRetryConfig; -async function getRetryConfig(err) { - let config = getConfig(err); - if (!err || !err.config || (!config && !err.config.retry)) { - return { shouldRetry: false }; - } - config = config || {}; - config.currentRetryAttempt = config.currentRetryAttempt || 0; - config.retry = - config.retry === undefined || config.retry === null ? 3 : config.retry; - config.httpMethodsToRetry = config.httpMethodsToRetry || [ - 'GET', - 'HEAD', - 'PUT', - 'OPTIONS', - 'DELETE', - ]; - config.noResponseRetries = - config.noResponseRetries === undefined || config.noResponseRetries === null - ? 2 - : config.noResponseRetries; - config.retryDelayMultiplier = config.retryDelayMultiplier - ? config.retryDelayMultiplier - : 2; - config.timeOfFirstRequest = config.timeOfFirstRequest - ? config.timeOfFirstRequest - : Date.now(); - config.totalTimeout = config.totalTimeout - ? config.totalTimeout - : Number.MAX_SAFE_INTEGER; - config.maxRetryDelay = config.maxRetryDelay - ? config.maxRetryDelay - : Number.MAX_SAFE_INTEGER; - // If this wasn't in the list of status codes where we want - // to automatically retry, return. - const retryRanges = [ - // https://en.wikipedia.org/wiki/List_of_HTTP_status_codes - // 1xx - Retry (Informational, request still processing) - // 2xx - Do not retry (Success) - // 3xx - Do not retry (Redirect) - // 4xx - Do not retry (Client errors) - // 408 - Retry ("Request Timeout") - // 429 - Retry ("Too Many Requests") - // 5xx - Retry (Server errors) - [100, 199], - [408, 408], - [429, 429], - [500, 599], - ]; - config.statusCodesToRetry = config.statusCodesToRetry || retryRanges; - // Put the config back into the err - err.config.retryConfig = config; - // Determine if we should retry the request - const shouldRetryFn = config.shouldRetry || shouldRetryRequest; - if (!(await shouldRetryFn(err))) { - return { shouldRetry: false, config: err.config }; - } - const delay = getNextRetryDelay(config); - // We're going to retry! Incremenent the counter. - err.config.retryConfig.currentRetryAttempt += 1; - // Create a promise that invokes the retry after the backOffDelay - const backoff = config.retryBackoff - ? config.retryBackoff(err, delay) - : new Promise(resolve => { - setTimeout(resolve, delay); - }); - // Notify the user if they added an `onRetryAttempt` handler - if (config.onRetryAttempt) { - config.onRetryAttempt(err); - } - // Return the promise in which recalls Gaxios to retry the request - await backoff; - return { shouldRetry: true, config: err.config }; -} +RenewCertificate.prototype['json'] = false; /** - * Determine based on config if we should retry the request. - * @param err The GaxiosError passed to the interceptor. + * Certificate name + * @member {String} name */ -function shouldRetryRequest(err) { - var _a; - const config = getConfig(err); - // node-fetch raises an AbortError if signaled: - // https://github.com/bitinn/node-fetch#request-cancellation-with-abortsignal - if (err.name === 'AbortError' || ((_a = err.error) === null || _a === void 0 ? void 0 : _a.name) === 'AbortError') { - return false; - } - // If there's no config, or retries are disabled, return. - if (!config || config.retry === 0) { - return false; - } - // Check if this error has no response (ETIMEDOUT, ENOTFOUND, etc) - if (!err.response && - (config.currentRetryAttempt || 0) >= config.noResponseRetries) { - return false; - } - // Only retry with configured HttpMethods. - if (!err.config.method || - config.httpMethodsToRetry.indexOf(err.config.method.toUpperCase()) < 0) { - return false; - } - // If this wasn't in the list of status codes where we want - // to automatically retry, return. - if (err.response && err.response.status) { - let isInRange = false; - for (const [min, max] of config.statusCodesToRetry) { - const status = err.response.status; - if (status >= min && status <= max) { - isInRange = true; - break; - } - } - if (!isInRange) { - return false; - } - } - // If we are out of retry attempts, return - config.currentRetryAttempt = config.currentRetryAttempt || 0; - if (config.currentRetryAttempt >= config.retry) { - return false; - } - return true; -} + +RenewCertificate.prototype['name'] = undefined; /** - * Acquire the raxConfig object from an GaxiosError if available. - * @param err The Gaxios error with a config object. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -function getConfig(err) { - if (err && err.config && err.config.retryConfig) { - return err.config.retryConfig; - } - return; -} + +RenewCertificate.prototype['token'] = undefined; /** - * Gets the delay to wait before the next retry. - * - * @param {RetryConfig} config The current set of retry options - * @returns {number} the amount of ms to wait before the next retry attempt. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -function getNextRetryDelay(config) { - var _a; - // Calculate time to wait with exponential backoff. - // If this is the first retry, look for a configured retryDelay. - const retryDelay = config.currentRetryAttempt ? 0 : (_a = config.retryDelay) !== null && _a !== void 0 ? _a : 100; - // Formula: retryDelay + ((retryDelayMultiplier^currentRetryAttempt - 1 / 2) * 1000) - const calculatedDelay = retryDelay + - ((Math.pow(config.retryDelayMultiplier, config.currentRetryAttempt) - 1) / - 2) * - 1000; - const maxAllowableDelay = config.totalTimeout - (Date.now() - config.timeOfFirstRequest); - return Math.min(calculatedDelay, maxAllowableDelay, config.maxRetryDelay); -} -//# sourceMappingURL=retry.js.map + +RenewCertificate.prototype['uid-token'] = undefined; +var _default = RenewCertificate; +exports["default"] = _default; /***/ }), -/***/ 25645: +/***/ 38941: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2023 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.pkg = void 0; -exports.pkg = __nccwpck_require__(34761); -//# sourceMappingURL=util.js.map -/***/ }), +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/***/ 8423: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -"use strict"; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * 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. + * The RenewCertificateOutput model module. + * @module model/RenewCertificateOutput + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GCE_LINUX_BIOS_PATHS = void 0; -exports.isGoogleCloudServerless = isGoogleCloudServerless; -exports.isGoogleComputeEngineLinux = isGoogleComputeEngineLinux; -exports.isGoogleComputeEngineMACAddress = isGoogleComputeEngineMACAddress; -exports.isGoogleComputeEngine = isGoogleComputeEngine; -exports.detectGCPResidency = detectGCPResidency; -const fs_1 = __nccwpck_require__(79896); -const os_1 = __nccwpck_require__(70857); +var RenewCertificateOutput = /*#__PURE__*/function () { + /** + * Constructs a new RenewCertificateOutput. + * @alias module:model/RenewCertificateOutput + */ + function RenewCertificateOutput() { + _classCallCheck(this, RenewCertificateOutput); + + RenewCertificateOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RenewCertificateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a RenewCertificateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RenewCertificateOutput} obj Optional instance to populate. + * @return {module:model/RenewCertificateOutput} The populated RenewCertificateOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RenewCertificateOutput(); + + if (data.hasOwnProperty('cert')) { + obj['cert'] = _ApiClient["default"].convertToType(data['cert'], 'String'); + } + + if (data.hasOwnProperty('cert_display_id')) { + obj['cert_display_id'] = _ApiClient["default"].convertToType(data['cert_display_id'], 'String'); + } + + if (data.hasOwnProperty('item_id')) { + obj['item_id'] = _ApiClient["default"].convertToType(data['item_id'], 'String'); + } + + if (data.hasOwnProperty('parent_cert')) { + obj['parent_cert'] = _ApiClient["default"].convertToType(data['parent_cert'], 'String'); + } + + if (data.hasOwnProperty('private_key')) { + obj['private_key'] = _ApiClient["default"].convertToType(data['private_key'], 'String'); + } + + if (data.hasOwnProperty('reading_token')) { + obj['reading_token'] = _ApiClient["default"].convertToType(data['reading_token'], 'String'); + } + } + + return obj; + } + }]); + + return RenewCertificateOutput; +}(); /** - * Known paths unique to Google Compute Engine Linux instances + * @member {String} cert */ -exports.GCE_LINUX_BIOS_PATHS = { - BIOS_DATE: '/sys/class/dmi/id/bios_date', - BIOS_VENDOR: '/sys/class/dmi/id/bios_vendor', -}; -const GCE_MAC_ADDRESS_REGEX = /^42:01/; + + +RenewCertificateOutput.prototype['cert'] = undefined; /** - * Determines if the process is running on a Google Cloud Serverless environment (Cloud Run or Cloud Functions instance). - * - * Uses the: - * - {@link https://cloud.google.com/run/docs/container-contract#env-vars Cloud Run environment variables}. - * - {@link https://cloud.google.com/functions/docs/env-var Cloud Functions environment variables}. - * - * @returns {boolean} `true` if the process is running on GCP serverless, `false` otherwise. + * @member {String} cert_display_id */ -function isGoogleCloudServerless() { - /** - * `CLOUD_RUN_JOB` is used for Cloud Run Jobs - * - See {@link https://cloud.google.com/run/docs/container-contract#env-vars Cloud Run environment variables}. - * - * `FUNCTION_NAME` is used in older Cloud Functions environments: - * - See {@link https://cloud.google.com/functions/docs/env-var Python 3.7 and Go 1.11}. - * - * `K_SERVICE` is used in Cloud Run and newer Cloud Functions environments: - * - See {@link https://cloud.google.com/run/docs/container-contract#env-vars Cloud Run environment variables}. - * - See {@link https://cloud.google.com/functions/docs/env-var Cloud Functions newer runtimes}. - */ - const isGFEnvironment = process.env.CLOUD_RUN_JOB || - process.env.FUNCTION_NAME || - process.env.K_SERVICE; - return !!isGFEnvironment; -} + +RenewCertificateOutput.prototype['cert_display_id'] = undefined; /** - * Determines if the process is running on a Linux Google Compute Engine instance. - * - * @returns {boolean} `true` if the process is running on Linux GCE, `false` otherwise. + * @member {String} item_id */ -function isGoogleComputeEngineLinux() { - if ((0, os_1.platform)() !== 'linux') - return false; - try { - // ensure this file exist - (0, fs_1.statSync)(exports.GCE_LINUX_BIOS_PATHS.BIOS_DATE); - // ensure this file exist and matches - const biosVendor = (0, fs_1.readFileSync)(exports.GCE_LINUX_BIOS_PATHS.BIOS_VENDOR, 'utf8'); - return /Google/.test(biosVendor); - } - catch (_a) { - return false; - } -} + +RenewCertificateOutput.prototype['item_id'] = undefined; /** - * Determines if the process is running on a Google Compute Engine instance with a known - * MAC address. - * - * @returns {boolean} `true` if the process is running on GCE (as determined by MAC address), `false` otherwise. + * @member {String} parent_cert */ -function isGoogleComputeEngineMACAddress() { - const interfaces = (0, os_1.networkInterfaces)(); - for (const item of Object.values(interfaces)) { - if (!item) - continue; - for (const { mac } of item) { - if (GCE_MAC_ADDRESS_REGEX.test(mac)) { - return true; - } - } - } - return false; -} + +RenewCertificateOutput.prototype['parent_cert'] = undefined; /** - * Determines if the process is running on a Google Compute Engine instance. - * - * @returns {boolean} `true` if the process is running on GCE, `false` otherwise. + * @member {String} private_key */ -function isGoogleComputeEngine() { - return isGoogleComputeEngineLinux() || isGoogleComputeEngineMACAddress(); -} + +RenewCertificateOutput.prototype['private_key'] = undefined; /** - * Determines if the process is running on Google Cloud Platform. - * - * @returns {boolean} `true` if the process is running on GCP, `false` otherwise. + * @member {String} reading_token */ -function detectGCPResidency() { - return isGoogleCloudServerless() || isGoogleComputeEngine(); -} -//# sourceMappingURL=gcp-residency.js.map + +RenewCertificateOutput.prototype['reading_token'] = undefined; +var _default = RenewCertificateOutput; +exports["default"] = _default; /***/ }), -/***/ 81090: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 14565: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -/** - * Copyright 2018 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.gcpResidencyCache = exports.METADATA_SERVER_DETECTION = exports.HEADERS = exports.HEADER_VALUE = exports.HEADER_NAME = exports.SECONDARY_HOST_ADDRESS = exports.HOST_ADDRESS = exports.BASE_PATH = void 0; -exports.instance = instance; -exports.project = project; -exports.universe = universe; -exports.bulk = bulk; -exports.isAvailable = isAvailable; -exports.resetIsAvailableCache = resetIsAvailableCache; -exports.getGCPResidency = getGCPResidency; -exports.setGCPResidency = setGCPResidency; -exports.requestTimeout = requestTimeout; -const gaxios_1 = __nccwpck_require__(67773); -const jsonBigint = __nccwpck_require__(14826); -const gcp_residency_1 = __nccwpck_require__(8423); -const logger = __nccwpck_require__(81577); -exports.BASE_PATH = '/computeMetadata/v1'; -exports.HOST_ADDRESS = 'http://169.254.169.254'; -exports.SECONDARY_HOST_ADDRESS = 'http://metadata.google.internal.'; -exports.HEADER_NAME = 'Metadata-Flavor'; -exports.HEADER_VALUE = 'Google'; -exports.HEADERS = Object.freeze({ [exports.HEADER_NAME]: exports.HEADER_VALUE }); -const log = logger.log('gcp metadata'); -/** - * Metadata server detection override options. - * - * Available via `process.env.METADATA_SERVER_DETECTION`. - */ -exports.METADATA_SERVER_DETECTION = Object.freeze({ - 'assume-present': "don't try to ping the metadata server, but assume it's present", - none: "don't try to ping the metadata server, but don't try to use it either", - 'bios-only': "treat the result of a BIOS probe as canonical (don't fall back to pinging)", - 'ping-only': 'skip the BIOS probe, and go straight to pinging', -}); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Returns the base URL while taking into account the GCE_METADATA_HOST - * environment variable if it exists. - * - * @returns The base URL, e.g., http://169.254.169.254/computeMetadata/v1. + * The RequestAccess model module. + * @module model/RequestAccess + * @version 3.6.3 */ -function getBaseUrl(baseUrl) { - if (!baseUrl) { - baseUrl = - process.env.GCE_METADATA_IP || - process.env.GCE_METADATA_HOST || - exports.HOST_ADDRESS; - } - // If no scheme is provided default to HTTP: - if (!/^https?:\/\//.test(baseUrl)) { - baseUrl = `http://${baseUrl}`; +var RequestAccess = /*#__PURE__*/function () { + /** + * Constructs a new RequestAccess. + * @alias module:model/RequestAccess + * @param capability {Array.} List of the required capabilities options: [read, update, delete] + * @param name {String} Item name + * @param type {String} Item type + */ + function RequestAccess(capability, name, type) { + _classCallCheck(this, RequestAccess); + + RequestAccess.initialize(this, capability, name, type); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RequestAccess, null, [{ + key: "initialize", + value: function initialize(obj, capability, name, type) { + obj['capability'] = capability; + obj['name'] = name; + obj['type'] = type; } - return new URL(exports.BASE_PATH, baseUrl).href; -} -// Accepts an options object passed from the user to the API. In previous -// versions of the API, it referred to a `Request` or an `Axios` request -// options object. Now it refers to an object with very limited property -// names. This is here to help ensure users don't pass invalid options when -// they upgrade from 0.4 to 0.5 to 0.8. -function validate(options) { - Object.keys(options).forEach(key => { - switch (key) { - case 'params': - case 'property': - case 'headers': - break; - case 'qs': - throw new Error("'qs' is not a valid configuration option. Please use 'params' instead."); - default: - throw new Error(`'${key}' is not a valid configuration option.`); + /** + * Constructs a RequestAccess from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RequestAccess} obj Optional instance to populate. + * @return {module:model/RequestAccess} The populated RequestAccess instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RequestAccess(); + + if (data.hasOwnProperty('capability')) { + obj['capability'] = _ApiClient["default"].convertToType(data['capability'], ['String']); } - }); -} -async function metadataAccessor(type, options = {}, noResponseRetries = 3, fastFail = false) { - let metadataKey = ''; - let params = {}; - let headers = {}; - if (typeof type === 'object') { - const metadataAccessor = type; - metadataKey = metadataAccessor.metadataKey; - params = metadataAccessor.params || params; - headers = metadataAccessor.headers || headers; - noResponseRetries = metadataAccessor.noResponseRetries || noResponseRetries; - fastFail = metadataAccessor.fastFail || fastFail; - } - else { - metadataKey = type; - } - if (typeof options === 'string') { - metadataKey += `/${options}`; - } - else { - validate(options); - if (options.property) { - metadataKey += `/${options.property}`; + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - headers = options.headers || headers; - params = options.params || params; - } - const requestMethod = fastFail ? fastFailMetadataRequest : gaxios_1.request; - const req = { - url: `${getBaseUrl()}/${metadataKey}`, - headers: { ...exports.HEADERS, ...headers }, - retryConfig: { noResponseRetries }, - params, - responseType: 'text', - timeout: requestTimeout(), - }; - log.info('instance request %j', req); - const res = await requestMethod(req); - log.info('instance metadata is %s', res.data); - // NOTE: node.js converts all incoming headers to lower case. - if (res.headers[exports.HEADER_NAME.toLowerCase()] !== exports.HEADER_VALUE) { - throw new Error(`Invalid response from metadata service: incorrect ${exports.HEADER_NAME} header. Expected '${exports.HEADER_VALUE}', got ${res.headers[exports.HEADER_NAME.toLowerCase()] ? `'${res.headers[exports.HEADER_NAME.toLowerCase()]}'` : 'no header'}`); - } - if (typeof res.data === 'string') { - try { - return jsonBigint.parse(res.data); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - catch (_a) { - /* ignore */ + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - } - return res.data; -} -async function fastFailMetadataRequest(options) { - var _a; - const secondaryOptions = { - ...options, - url: (_a = options.url) === null || _a === void 0 ? void 0 : _a.toString().replace(getBaseUrl(), getBaseUrl(exports.SECONDARY_HOST_ADDRESS)), - }; - // We race a connection between DNS/IP to metadata server. There are a couple - // reasons for this: - // - // 1. the DNS is slow in some GCP environments; by checking both, we might - // detect the runtime environment signficantly faster. - // 2. we can't just check the IP, which is tarpitted and slow to respond - // on a user's local machine. - // - // Additional logic has been added to make sure that we don't create an - // unhandled rejection in scenarios where a failure happens sometime - // after a success. - // - // Note, however, if a failure happens prior to a success, a rejection should - // occur, this is for folks running locally. - // - let responded = false; - const r1 = (0, gaxios_1.request)(options) - .then(res => { - responded = true; - return res; - }) - .catch(err => { - if (responded) { - return r2; + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - else { - responded = true; - throw err; + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - }); - const r2 = (0, gaxios_1.request)(secondaryOptions) - .then(res => { - responded = true; - return res; - }) - .catch(err => { - if (responded) { - return r1; + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); } - else { - responded = true; - throw err; + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - }); - return Promise.race([r1, r2]); -} + } + + return obj; + } + }]); + + return RequestAccess; +}(); /** - * Obtain metadata for the current GCE instance. - * - * @see {@link https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys} - * - * @example - * ``` - * const serviceAccount: {} = await instance('service-accounts/'); - * const serviceAccountEmail: string = await instance('service-accounts/default/email'); - * ``` + * List of the required capabilities options: [read, update, delete] + * @member {Array.} capability */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function instance(options) { - return metadataAccessor('instance', options); -} + + +RequestAccess.prototype['capability'] = undefined; /** - * Obtain metadata for the current GCP project. - * - * @see {@link https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys} - * - * @example - * ``` - * const projectId: string = await project('project-id'); - * const numericProjectId: number = await project('numeric-project-id'); - * ``` + * Deprecated - use description + * @member {String} comment */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function project(options) { - return metadataAccessor('project', options); -} + +RequestAccess.prototype['comment'] = undefined; /** - * Obtain metadata for the current universe. - * - * @see {@link https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys} - * - * @example - * ``` - * const universeDomain: string = await universe('universe-domain'); - * ``` + * Description of the object + * @member {String} description */ -function universe(options) { - return metadataAccessor('universe', options); -} + +RequestAccess.prototype['description'] = undefined; /** - * Retrieve metadata items in parallel. - * - * @see {@link https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys} - * - * @example - * ``` - * const data = await bulk([ - * { - * metadataKey: 'instance', - * }, - * { - * metadataKey: 'project/project-id', - * }, - * ] as const); - * - * // data.instance; - * // data['project/project-id']; - * ``` - * - * @param properties The metadata properties to retrieve - * @returns The metadata in `metadatakey:value` format + * Set output format to JSON + * @member {Boolean} json + * @default false */ -async function bulk(properties) { - const r = {}; - await Promise.all(properties.map(item => { - return (async () => { - const res = await metadataAccessor(item); - const key = item.metadataKey; - r[key] = res; - })(); - })); - return r; -} -/* - * How many times should we retry detecting GCP environment. + +RequestAccess.prototype['json'] = false; +/** + * Item name + * @member {String} name */ -function detectGCPAvailableRetries() { - return process.env.DETECT_GCP_RETRIES - ? Number(process.env.DETECT_GCP_RETRIES) - : 0; -} -let cachedIsAvailableResponse; + +RequestAccess.prototype['name'] = undefined; /** - * Determine if the metadata server is currently available. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -async function isAvailable() { - if (process.env.METADATA_SERVER_DETECTION) { - const value = process.env.METADATA_SERVER_DETECTION.trim().toLocaleLowerCase(); - if (!(value in exports.METADATA_SERVER_DETECTION)) { - throw new RangeError(`Unknown \`METADATA_SERVER_DETECTION\` env variable. Got \`${value}\`, but it should be \`${Object.keys(exports.METADATA_SERVER_DETECTION).join('`, `')}\`, or unset`); - } - switch (value) { - case 'assume-present': - return true; - case 'none': - return false; - case 'bios-only': - return getGCPResidency(); - case 'ping-only': - // continue, we want to ping the server - } - } - try { - // If a user is instantiating several GCP libraries at the same time, - // this may result in multiple calls to isAvailable(), to detect the - // runtime environment. We use the same promise for each of these calls - // to reduce the network load. - if (cachedIsAvailableResponse === undefined) { - cachedIsAvailableResponse = metadataAccessor('instance', undefined, detectGCPAvailableRetries(), - // If the default HOST_ADDRESS has been overridden, we should not - // make an effort to try SECONDARY_HOST_ADDRESS (as we are likely in - // a non-GCP environment): - !(process.env.GCE_METADATA_IP || process.env.GCE_METADATA_HOST)); - } - await cachedIsAvailableResponse; - return true; - } - catch (e) { - const err = e; - if (process.env.DEBUG_AUTH) { - console.info(err); - } - if (err.type === 'request-timeout') { - // If running in a GCP environment, metadata endpoint should return - // within ms. - return false; - } - if (err.response && err.response.status === 404) { - return false; - } - else { - if (!(err.response && err.response.status === 404) && - // A warning is emitted if we see an unexpected err.code, or err.code - // is not populated: - (!err.code || - ![ - 'EHOSTDOWN', - 'EHOSTUNREACH', - 'ENETUNREACH', - 'ENOENT', - 'ENOTFOUND', - 'ECONNREFUSED', - ].includes(err.code))) { - let code = 'UNKNOWN'; - if (err.code) - code = err.code; - process.emitWarning(`received unexpected error = ${err.message} code = ${code}`, 'MetadataLookupWarning'); - } - // Failure to resolve the metadata service means that it is not available. - return false; - } - } -} + +RequestAccess.prototype['token'] = undefined; /** - * reset the memoized isAvailable() lookup. + * Item type + * @member {String} type */ -function resetIsAvailableCache() { - cachedIsAvailableResponse = undefined; -} + +RequestAccess.prototype['type'] = undefined; /** - * A cache for the detected GCP Residency. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -exports.gcpResidencyCache = null; + +RequestAccess.prototype['uid-token'] = undefined; +var _default = RequestAccess; +exports["default"] = _default; + +/***/ }), + +/***/ 86512: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Detects GCP Residency. - * Caches results to reduce costs for subsequent calls. - * - * @see setGCPResidency for setting + * The RequestAccessOutput model module. + * @module model/RequestAccessOutput + * @version 3.6.3 */ -function getGCPResidency() { - if (exports.gcpResidencyCache === null) { - setGCPResidency(); +var RequestAccessOutput = /*#__PURE__*/function () { + /** + * Constructs a new RequestAccessOutput. + * @alias module:model/RequestAccessOutput + */ + function RequestAccessOutput() { + _classCallCheck(this, RequestAccessOutput); + + RequestAccessOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RequestAccessOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a RequestAccessOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RequestAccessOutput} obj Optional instance to populate. + * @return {module:model/RequestAccessOutput} The populated RequestAccessOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RequestAccessOutput(); + + if (data.hasOwnProperty('response')) { + obj['response'] = _ApiClient["default"].convertToType(data['response'], 'String'); + } + } + + return obj; } - return exports.gcpResidencyCache; -} -/** - * Sets the detected GCP Residency. - * Useful for forcing metadata server detection behavior. - * - * Set `null` to autodetect the environment (default behavior). - * @see getGCPResidency for getting - */ -function setGCPResidency(value = null) { - exports.gcpResidencyCache = value !== null ? value : (0, gcp_residency_1.detectGCPResidency)(); -} + }]); + + return RequestAccessOutput; +}(); /** - * Obtain the timeout for requests to the metadata server. - * - * In certain environments and conditions requests can take longer than - * the default timeout to complete. This function will determine the - * appropriate timeout based on the environment. - * - * @returns {number} a request timeout duration in milliseconds. + * @member {String} response */ -function requestTimeout() { - return getGCPResidency() ? 0 : 3000; -} -__exportStar(__nccwpck_require__(8423), exports); -//# sourceMappingURL=index.js.map + + +RequestAccessOutput.prototype['response'] = undefined; +var _default = RequestAccessOutput; +exports["default"] = _default; /***/ }), -/***/ 58456: +/***/ 78028: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2012 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AuthClient = exports.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS = exports.DEFAULT_UNIVERSE = void 0; -const events_1 = __nccwpck_require__(24434); -const gaxios_1 = __nccwpck_require__(67773); -const transporters_1 = __nccwpck_require__(57195); -const util_1 = __nccwpck_require__(77300); -/** - * The default cloud universe - * - * @see {@link AuthJSONOptions.universe_domain} - */ -exports.DEFAULT_UNIVERSE = 'googleapis.com'; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * The default {@link AuthClientOptions.eagerRefreshThresholdMillis} + * The RequiredActivity model module. + * @module model/RequiredActivity + * @version 3.6.3 */ -exports.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS = 5 * 60 * 1000; -class AuthClient extends events_1.EventEmitter { - constructor(opts = {}) { - var _a, _b, _c, _d, _e; - super(); - this.credentials = {}; - this.eagerRefreshThresholdMillis = exports.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS; - this.forceRefreshOnFailure = false; - this.universeDomain = exports.DEFAULT_UNIVERSE; - const options = (0, util_1.originalOrCamelOptions)(opts); - // Shared auth options - this.apiKey = opts.apiKey; - this.projectId = (_a = options.get('project_id')) !== null && _a !== void 0 ? _a : null; - this.quotaProjectId = options.get('quota_project_id'); - this.credentials = (_b = options.get('credentials')) !== null && _b !== void 0 ? _b : {}; - this.universeDomain = (_c = options.get('universe_domain')) !== null && _c !== void 0 ? _c : exports.DEFAULT_UNIVERSE; - // Shared client options - this.transporter = (_d = opts.transporter) !== null && _d !== void 0 ? _d : new transporters_1.DefaultTransporter(); - if (opts.transporterOptions) { - this.transporter.defaults = opts.transporterOptions; - } - if (opts.eagerRefreshThresholdMillis) { - this.eagerRefreshThresholdMillis = opts.eagerRefreshThresholdMillis; - } - this.forceRefreshOnFailure = (_e = opts.forceRefreshOnFailure) !== null && _e !== void 0 ? _e : false; - } - /** - * Return the {@link Gaxios `Gaxios`} instance from the {@link AuthClient.transporter}. - * - * @expiremental - */ - get gaxios() { - if (this.transporter instanceof gaxios_1.Gaxios) { - return this.transporter; - } - else if (this.transporter instanceof transporters_1.DefaultTransporter) { - return this.transporter.instance; - } - else if ('instance' in this.transporter && - this.transporter.instance instanceof gaxios_1.Gaxios) { - return this.transporter.instance; - } - return null; - } - /** - * Sets the auth credentials. - */ - setCredentials(credentials) { - this.credentials = credentials; - } +var RequiredActivity = /*#__PURE__*/function () { + /** + * Constructs a new RequiredActivity. + * @alias module:model/RequiredActivity + */ + function RequiredActivity() { + _classCallCheck(this, RequiredActivity); + + RequiredActivity.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RequiredActivity, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Append additional headers, e.g., x-goog-user-project, shared across the - * classes inheriting AuthClient. This method should be used by any method - * that overrides getRequestMetadataAsync(), which is a shared helper for - * setting request information in both gRPC and HTTP API calls. - * - * @param headers object to append additional headers to. + * Constructs a RequiredActivity from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RequiredActivity} obj Optional instance to populate. + * @return {module:model/RequiredActivity} The populated RequiredActivity instance. */ - addSharedMetadataHeaders(headers) { - // quota_project_id, stored in application_default_credentials.json, is set in - // the x-goog-user-project header, to indicate an alternate account for - // billing and quota: - if (!headers['x-goog-user-project'] && // don't override a value the user sets. - this.quotaProjectId) { - headers['x-goog-user-project'] = this.quotaProjectId; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RequiredActivity(); + + if (data.hasOwnProperty('migrations_required_activity')) { + obj['migrations_required_activity'] = _ApiClient["default"].convertToType(data['migrations_required_activity'], { + 'String': 'Boolean' + }); } - return headers; - } - /** - * Retry config for Auth-related requests. - * - * @remarks - * - * This is not a part of the default {@link AuthClient.transporter transporter/gaxios} - * config as some downstream APIs would prefer if customers explicitly enable retries, - * such as GCS. - */ - static get RETRY_CONFIG() { - return { - retry: true, - retryConfig: { - httpMethodsToRetry: ['GET', 'PUT', 'POST', 'HEAD', 'OPTIONS', 'DELETE'], - }, - }; + } + + return obj; } -} -exports.AuthClient = AuthClient; + }]); + + return RequiredActivity; +}(); +/** + * @member {Object.} migrations_required_activity + */ + +RequiredActivity.prototype['migrations_required_activity'] = undefined; +var _default = RequiredActivity; +exports["default"] = _default; /***/ }), -/***/ 82615: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 7820: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var __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 _a, _AwsClient_DEFAULT_AWS_REGIONAL_CREDENTIAL_VERIFICATION_URL; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AwsClient = void 0; -const awsrequestsigner_1 = __nccwpck_require__(40341); -const baseexternalclient_1 = __nccwpck_require__(27036); -const defaultawssecuritycredentialssupplier_1 = __nccwpck_require__(46095); -const util_1 = __nccwpck_require__(77300); + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * AWS external account client. This is used for AWS workloads, where - * AWS STS GetCallerIdentity serialized signed requests are exchanged for - * GCP access token. + * The ReverseRBAC model module. + * @module model/ReverseRBAC + * @version 3.6.3 */ -class AwsClient extends baseexternalclient_1.BaseExternalAccountClient { +var ReverseRBAC = /*#__PURE__*/function () { + /** + * Constructs a new ReverseRBAC. + * reverseRBAC is a command that shows which auth methods have access to a particular object. + * @alias module:model/ReverseRBAC + * @param path {String} Path to an object + * @param type {String} Type of object (item, am, role) + */ + function ReverseRBAC(path, type) { + _classCallCheck(this, ReverseRBAC); + + ReverseRBAC.initialize(this, path, type); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ReverseRBAC, null, [{ + key: "initialize", + value: function initialize(obj, path, type) { + obj['path'] = path; + obj['type'] = type; + } /** - * Instantiates an AwsClient instance using the provided JSON - * object loaded from an external account credentials file. - * An error is thrown if the credential is not a valid AWS credential. - * @param options The external account options object typically loaded - * from the external account JSON credential file. - * @param additionalOptions **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. + * Constructs a ReverseRBAC from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ReverseRBAC} obj Optional instance to populate. + * @return {module:model/ReverseRBAC} The populated ReverseRBAC instance. */ - constructor(options, additionalOptions) { - super(options, additionalOptions); - const opts = (0, util_1.originalOrCamelOptions)(options); - const credentialSource = opts.get('credential_source'); - const awsSecurityCredentialsSupplier = opts.get('aws_security_credentials_supplier'); - // Validate credential sourcing configuration. - if (!credentialSource && !awsSecurityCredentialsSupplier) { - throw new Error('A credential source or AWS security credentials supplier must be specified.'); - } - if (credentialSource && awsSecurityCredentialsSupplier) { - throw new Error('Only one of credential source or AWS security credentials supplier can be specified.'); - } - if (awsSecurityCredentialsSupplier) { - this.awsSecurityCredentialsSupplier = awsSecurityCredentialsSupplier; - this.regionalCredVerificationUrl = - __classPrivateFieldGet(_a, _a, "f", _AwsClient_DEFAULT_AWS_REGIONAL_CREDENTIAL_VERIFICATION_URL); - this.credentialSourceType = 'programmatic'; - } - else { - const credentialSourceOpts = (0, util_1.originalOrCamelOptions)(credentialSource); - this.environmentId = credentialSourceOpts.get('environment_id'); - // This is only required if the AWS region is not available in the - // AWS_REGION or AWS_DEFAULT_REGION environment variables. - const regionUrl = credentialSourceOpts.get('region_url'); - // This is only required if AWS security credentials are not available in - // environment variables. - const securityCredentialsUrl = credentialSourceOpts.get('url'); - const imdsV2SessionTokenUrl = credentialSourceOpts.get('imdsv2_session_token_url'); - this.awsSecurityCredentialsSupplier = - new defaultawssecuritycredentialssupplier_1.DefaultAwsSecurityCredentialsSupplier({ - regionUrl: regionUrl, - securityCredentialsUrl: securityCredentialsUrl, - imdsV2SessionTokenUrl: imdsV2SessionTokenUrl, - }); - this.regionalCredVerificationUrl = credentialSourceOpts.get('regional_cred_verification_url'); - this.credentialSourceType = 'aws'; - // Data validators. - this.validateEnvironmentId(); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ReverseRBAC(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - this.awsRequestSigner = null; - this.region = ''; - } - validateEnvironmentId() { - var _b; - const match = (_b = this.environmentId) === null || _b === void 0 ? void 0 : _b.match(/^(aws)(\d+)$/); - if (!match || !this.regionalCredVerificationUrl) { - throw new Error('No valid AWS "credential_source" provided'); + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); } - else if (parseInt(match[2], 10) !== 1) { - throw new Error(`aws version "${match[2]}" is not supported in the current build.`); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - } - /** - * Triggered when an external subject token is needed to be exchanged for a - * GCP access token via GCP STS endpoint. This will call the - * {@link AwsSecurityCredentialsSupplier} to retrieve an AWS region and AWS - * Security Credentials, then use them to create a signed AWS STS request that - * can be exchanged for a GCP access token. - * @return A promise that resolves with the external subject token. - */ - async retrieveSubjectToken() { - // Initialize AWS request signer if not already initialized. - if (!this.awsRequestSigner) { - this.region = await this.awsSecurityCredentialsSupplier.getAwsRegion(this.supplierContext); - this.awsRequestSigner = new awsrequestsigner_1.AwsRequestSigner(async () => { - return this.awsSecurityCredentialsSupplier.getAwsSecurityCredentials(this.supplierContext); - }, this.region); + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); } - // Generate signed request to AWS STS GetCallerIdentity API. - // Use the required regional endpoint. Otherwise, the request will fail. - const options = await this.awsRequestSigner.getRequestOptions({ - ..._a.RETRY_CONFIG, - url: this.regionalCredVerificationUrl.replace('{region}', this.region), - method: 'POST', - }); - // The GCP STS endpoint expects the headers to be formatted as: - // [ - // {key: 'x-amz-date', value: '...'}, - // {key: 'Authorization', value: '...'}, - // ... - // ] - // And then serialized as: - // encodeURIComponent(JSON.stringify({ - // url: '...', - // method: 'POST', - // headers: [{key: 'x-amz-date', value: '...'}, ...] - // })) - const reformattedHeader = []; - const extendedHeaders = Object.assign({ - // The full, canonical resource name of the workload identity pool - // provider, with or without the HTTPS prefix. - // Including this header as part of the signature is recommended to - // ensure data integrity. - 'x-goog-cloud-target-resource': this.audience, - }, options.headers); - // Reformat header to GCP STS expected format. - for (const key in extendedHeaders) { - reformattedHeader.push({ - key, - value: extendedHeaders[key], - }); + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - // Serialize the reformatted signed request. - return encodeURIComponent(JSON.stringify({ - url: options.url, - method: options.method, - headers: reformattedHeader, - })); + } + + return obj; } -} -exports.AwsClient = AwsClient; -_a = AwsClient; -_AwsClient_DEFAULT_AWS_REGIONAL_CREDENTIAL_VERIFICATION_URL = { value: 'https://sts.{region}.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15' }; + }]); + + return ReverseRBAC; +}(); /** - * @deprecated AWS client no validates the EC2 metadata address. - **/ -AwsClient.AWS_EC2_METADATA_IPV4_ADDRESS = '169.254.169.254'; + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +ReverseRBAC.prototype['json'] = false; /** - * @deprecated AWS client no validates the EC2 metadata address. - **/ -AwsClient.AWS_EC2_METADATA_IPV6_ADDRESS = 'fd00:ec2::254'; + * Path to an object + * @member {String} path + */ + +ReverseRBAC.prototype['path'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +ReverseRBAC.prototype['token'] = undefined; +/** + * Type of object (item, am, role) + * @member {String} type + */ +ReverseRBAC.prototype['type'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +ReverseRBAC.prototype['uid-token'] = undefined; +var _default = ReverseRBAC; +exports["default"] = _default; /***/ }), -/***/ 40341: +/***/ 42271: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AwsRequestSigner = void 0; -const crypto_1 = __nccwpck_require__(85353); -/** AWS Signature Version 4 signing algorithm identifier. */ -const AWS_ALGORITHM = 'AWS4-HMAC-SHA256'; -/** - * The termination string for the AWS credential scope value as defined in - * https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html - */ -const AWS_REQUEST_TYPE = 'aws4_request'; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _AuthMethodRoleAssociation = _interopRequireDefault(__nccwpck_require__(39304)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Implements an AWS API request signer based on the AWS Signature Version 4 - * signing process. - * https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html + * The ReverseRBACClient model module. + * @module model/ReverseRBACClient + * @version 3.6.3 */ -class AwsRequestSigner { - /** - * Instantiates an AWS API request signer used to send authenticated signed - * requests to AWS APIs based on the AWS Signature Version 4 signing process. - * This also provides a mechanism to generate the signed request without - * sending it. - * @param getCredentials A mechanism to retrieve AWS security credentials - * when needed. - * @param region The AWS region to use. - */ - constructor(getCredentials, region) { - this.getCredentials = getCredentials; - this.region = region; - this.crypto = (0, crypto_1.createCrypto)(); - } +var ReverseRBACClient = /*#__PURE__*/function () { + /** + * Constructs a new ReverseRBACClient. + * @alias module:model/ReverseRBACClient + */ + function ReverseRBACClient() { + _classCallCheck(this, ReverseRBACClient); + + ReverseRBACClient.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ReverseRBACClient, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Generates the signed request for the provided HTTP request for calling - * an AWS API. This follows the steps described at: - * https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html - * @param amzOptions The AWS request options that need to be signed. - * @return A promise that resolves with the GaxiosOptions containing the - * signed HTTP request parameters. + * Constructs a ReverseRBACClient from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ReverseRBACClient} obj Optional instance to populate. + * @return {module:model/ReverseRBACClient} The populated ReverseRBACClient instance. */ - async getRequestOptions(amzOptions) { - if (!amzOptions.url) { - throw new Error('"url" is required in "amzOptions"'); - } - // Stringify JSON requests. This will be set in the request body of the - // generated signed request. - const requestPayloadData = typeof amzOptions.data === 'object' - ? JSON.stringify(amzOptions.data) - : amzOptions.data; - const url = amzOptions.url; - const method = amzOptions.method || 'GET'; - const requestPayload = amzOptions.body || requestPayloadData; - const additionalAmzHeaders = amzOptions.headers; - const awsSecurityCredentials = await this.getCredentials(); - const uri = new URL(url); - const headerMap = await generateAuthenticationHeaderMap({ - crypto: this.crypto, - host: uri.host, - canonicalUri: uri.pathname, - canonicalQuerystring: uri.search.substr(1), - method, - region: this.region, - securityCredentials: awsSecurityCredentials, - requestPayload, - additionalAmzHeaders, - }); - // Append additional optional headers, eg. X-Amz-Target, Content-Type, etc. - const headers = Object.assign( - // Add x-amz-date if available. - headerMap.amzDate ? { 'x-amz-date': headerMap.amzDate } : {}, { - Authorization: headerMap.authorizationHeader, - host: uri.host, - }, additionalAmzHeaders || {}); - if (awsSecurityCredentials.token) { - Object.assign(headers, { - 'x-amz-security-token': awsSecurityCredentials.token, - }); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ReverseRBACClient(); + + if (data.hasOwnProperty('assocs')) { + obj['assocs'] = _ApiClient["default"].convertToType(data['assocs'], [_AuthMethodRoleAssociation["default"]]); } - const awsSignedReq = { - url, - method: method, - headers, - }; - if (typeof requestPayload !== 'undefined') { - awsSignedReq.body = requestPayload; + + if (data.hasOwnProperty('auth_method_name')) { + obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); } - return awsSignedReq; + } + + return obj; } -} -exports.AwsRequestSigner = AwsRequestSigner; -/** - * Creates the HMAC-SHA256 hash of the provided message using the - * provided key. - * - * @param crypto The crypto instance used to facilitate cryptographic - * operations. - * @param key The HMAC-SHA256 key to use. - * @param msg The message to hash. - * @return The computed hash bytes. - */ -async function sign(crypto, key, msg) { - return await crypto.signWithHmacSha256(key, msg); -} + }]); + + return ReverseRBACClient; +}(); /** - * Calculates the signing key used to calculate the signature for - * AWS Signature Version 4 based on: - * https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html - * - * @param crypto The crypto instance used to facilitate cryptographic - * operations. - * @param key The AWS secret access key. - * @param dateStamp The '%Y%m%d' date format. - * @param region The AWS region. - * @param serviceName The AWS service name, eg. sts. - * @return The signing key bytes. + * @member {Array.} assocs */ -async function getSigningKey(crypto, key, dateStamp, region, serviceName) { - const kDate = await sign(crypto, `AWS4${key}`, dateStamp); - const kRegion = await sign(crypto, kDate, region); - const kService = await sign(crypto, kRegion, serviceName); - const kSigning = await sign(crypto, kService, 'aws4_request'); - return kSigning; -} + + +ReverseRBACClient.prototype['assocs'] = undefined; /** - * Generates the authentication header map needed for generating the AWS - * Signature Version 4 signed request. - * - * @param option The options needed to compute the authentication header map. - * @return The AWS authentication header map which constitutes of the following - * components: amz-date, authorization header and canonical query string. + * @member {String} auth_method_name */ -async function generateAuthenticationHeaderMap(options) { - const additionalAmzHeaders = options.additionalAmzHeaders || {}; - const requestPayload = options.requestPayload || ''; - // iam.amazonaws.com host => iam service. - // sts.us-east-2.amazonaws.com => sts service. - const serviceName = options.host.split('.')[0]; - const now = new Date(); - // Format: '%Y%m%dT%H%M%SZ'. - const amzDate = now - .toISOString() - .replace(/[-:]/g, '') - .replace(/\.[0-9]+/, ''); - // Format: '%Y%m%d'. - const dateStamp = now.toISOString().replace(/[-]/g, '').replace(/T.*/, ''); - // Change all additional headers to be lower case. - const reformattedAdditionalAmzHeaders = {}; - Object.keys(additionalAmzHeaders).forEach(key => { - reformattedAdditionalAmzHeaders[key.toLowerCase()] = - additionalAmzHeaders[key]; - }); - // Add AWS token if available. - if (options.securityCredentials.token) { - reformattedAdditionalAmzHeaders['x-amz-security-token'] = - options.securityCredentials.token; - } - // Header keys need to be sorted alphabetically. - const amzHeaders = Object.assign({ - host: options.host, - }, - // Previously the date was not fixed with x-amz- and could be provided manually. - // https://github.com/boto/botocore/blob/879f8440a4e9ace5d3cf145ce8b3d5e5ffb892ef/tests/unit/auth/aws4_testsuite/get-header-value-trim.req - reformattedAdditionalAmzHeaders.date ? {} : { 'x-amz-date': amzDate }, reformattedAdditionalAmzHeaders); - let canonicalHeaders = ''; - const signedHeadersList = Object.keys(amzHeaders).sort(); - signedHeadersList.forEach(key => { - canonicalHeaders += `${key}:${amzHeaders[key]}\n`; - }); - const signedHeaders = signedHeadersList.join(';'); - const payloadHash = await options.crypto.sha256DigestHex(requestPayload); - // https://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html - const canonicalRequest = `${options.method}\n` + - `${options.canonicalUri}\n` + - `${options.canonicalQuerystring}\n` + - `${canonicalHeaders}\n` + - `${signedHeaders}\n` + - `${payloadHash}`; - const credentialScope = `${dateStamp}/${options.region}/${serviceName}/${AWS_REQUEST_TYPE}`; - // https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html - const stringToSign = `${AWS_ALGORITHM}\n` + - `${amzDate}\n` + - `${credentialScope}\n` + - (await options.crypto.sha256DigestHex(canonicalRequest)); - // https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html - const signingKey = await getSigningKey(options.crypto, options.securityCredentials.secretAccessKey, dateStamp, options.region, serviceName); - const signature = await sign(options.crypto, signingKey, stringToSign); - // https://docs.aws.amazon.com/general/latest/gr/sigv4-add-signature-to-request.html - const authorizationHeader = `${AWS_ALGORITHM} Credential=${options.securityCredentials.accessKeyId}/` + - `${credentialScope}, SignedHeaders=${signedHeaders}, ` + - `Signature=${(0, crypto_1.fromArrayBufferToHex)(signature)}`; - return { - // Do not return x-amz-date if date is available. - amzDate: reformattedAdditionalAmzHeaders.date ? undefined : amzDate, - authorizationHeader, - canonicalQuerystring: options.canonicalQuerystring, - }; -} +ReverseRBACClient.prototype['auth_method_name'] = undefined; +var _default = ReverseRBACClient; +exports["default"] = _default; /***/ }), -/***/ 27036: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 46413: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -var __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 __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var _BaseExternalAccountClient_instances, _BaseExternalAccountClient_pendingAccessToken, _BaseExternalAccountClient_internalRefreshAccessTokenAsync; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BaseExternalAccountClient = exports.DEFAULT_UNIVERSE = exports.CLOUD_RESOURCE_MANAGER = exports.EXTERNAL_ACCOUNT_TYPE = exports.EXPIRATION_TIME_OFFSET = void 0; -const stream = __nccwpck_require__(2203); -const authclient_1 = __nccwpck_require__(58456); -const sts = __nccwpck_require__(959); -const util_1 = __nccwpck_require__(77300); -/** - * The required token exchange grant_type: rfc8693#section-2.1 - */ -const STS_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange'; -/** - * The requested token exchange requested_token_type: rfc8693#section-2.1 - */ -const STS_REQUEST_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; -/** The default OAuth scope to request when none is provided. */ -const DEFAULT_OAUTH_SCOPE = 'https://www.googleapis.com/auth/cloud-platform'; -/** Default impersonated token lifespan in seconds.*/ -const DEFAULT_TOKEN_LIFESPAN = 3600; -/** - * Offset to take into account network delays and server clock skews. - */ -exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000; -/** - * The credentials JSON file type for external account clients. - * There are 3 types of JSON configs: - * 1. authorized_user => Google end user credential - * 2. service_account => Google service account credential - * 3. external_Account => non-GCP service (eg. AWS, Azure, K8s) - */ -exports.EXTERNAL_ACCOUNT_TYPE = 'external_account'; -/** - * Cloud resource manager URL used to retrieve project information. - * - * @deprecated use {@link BaseExternalAccountClient.cloudResourceManagerURL} instead - **/ -exports.CLOUD_RESOURCE_MANAGER = 'https://cloudresourcemanager.googleapis.com/v1/projects/'; -/** The workforce audience pattern. */ -const WORKFORCE_AUDIENCE_PATTERN = '//iam\\.googleapis\\.com/locations/[^/]+/workforcePools/[^/]+/providers/.+'; -const DEFAULT_TOKEN_URL = 'https://sts.{universeDomain}/v1/token'; -// eslint-disable-next-line @typescript-eslint/no-var-requires -const pkg = __nccwpck_require__(86088); -/** - * For backwards compatibility. - */ -var authclient_2 = __nccwpck_require__(58456); -Object.defineProperty(exports, "DEFAULT_UNIVERSE", ({ enumerable: true, get: function () { return authclient_2.DEFAULT_UNIVERSE; } })); + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _ReverseRBACClient = _interopRequireDefault(__nccwpck_require__(42271)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Base external account client. This is used to instantiate AuthClients for - * exchanging external account credentials for GCP access token and authorizing - * requests to GCP APIs. - * The base class implements common logic for exchanging various type of - * external credentials for GCP access token. The logic of determining and - * retrieving the external credential based on the environment and - * credential_source will be left for the subclasses. + * The ReverseRBACOutput model module. + * @module model/ReverseRBACOutput + * @version 3.6.3 */ -class BaseExternalAccountClient extends authclient_1.AuthClient { +var ReverseRBACOutput = /*#__PURE__*/function () { + /** + * Constructs a new ReverseRBACOutput. + * @alias module:model/ReverseRBACOutput + */ + function ReverseRBACOutput() { + _classCallCheck(this, ReverseRBACOutput); + + ReverseRBACOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(ReverseRBACOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Instantiate a BaseExternalAccountClient instance using the provided JSON - * object loaded from an external account credentials file. - * @param options The external account options object typically loaded - * from the external account JSON credential file. The camelCased options - * are aliases for the snake_cased options. - * @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. + * Constructs a ReverseRBACOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ReverseRBACOutput} obj Optional instance to populate. + * @return {module:model/ReverseRBACOutput} The populated ReverseRBACOutput instance. */ - constructor(options, additionalOptions) { - var _a; - super({ ...options, ...additionalOptions }); - _BaseExternalAccountClient_instances.add(this); - /** - * A pending access token request. Used for concurrent calls. - */ - _BaseExternalAccountClient_pendingAccessToken.set(this, null); - const opts = (0, util_1.originalOrCamelOptions)(options); - const type = opts.get('type'); - if (type && type !== exports.EXTERNAL_ACCOUNT_TYPE) { - throw new Error(`Expected "${exports.EXTERNAL_ACCOUNT_TYPE}" type but ` + - `received "${options.type}"`); - } - const clientId = opts.get('client_id'); - const clientSecret = opts.get('client_secret'); - const tokenUrl = (_a = opts.get('token_url')) !== null && _a !== void 0 ? _a : DEFAULT_TOKEN_URL.replace('{universeDomain}', this.universeDomain); - const subjectTokenType = opts.get('subject_token_type'); - const workforcePoolUserProject = opts.get('workforce_pool_user_project'); - const serviceAccountImpersonationUrl = opts.get('service_account_impersonation_url'); - const serviceAccountImpersonation = opts.get('service_account_impersonation'); - const serviceAccountImpersonationLifetime = (0, util_1.originalOrCamelOptions)(serviceAccountImpersonation).get('token_lifetime_seconds'); - this.cloudResourceManagerURL = new URL(opts.get('cloud_resource_manager_url') || - `https://cloudresourcemanager.${this.universeDomain}/v1/projects/`); - if (clientId) { - this.clientAuth = { - confidentialClientType: 'basic', - clientId, - clientSecret, - }; - } - this.stsCredential = new sts.StsCredentials(tokenUrl, this.clientAuth); - this.scopes = opts.get('scopes') || [DEFAULT_OAUTH_SCOPE]; - this.cachedAccessToken = null; - this.audience = opts.get('audience'); - this.subjectTokenType = subjectTokenType; - this.workforcePoolUserProject = workforcePoolUserProject; - const workforceAudiencePattern = new RegExp(WORKFORCE_AUDIENCE_PATTERN); - if (this.workforcePoolUserProject && - !this.audience.match(workforceAudiencePattern)) { - throw new Error('workforcePoolUserProject should not be set for non-workforce pool ' + - 'credentials.'); - } - this.serviceAccountImpersonationUrl = serviceAccountImpersonationUrl; - this.serviceAccountImpersonationLifetime = - serviceAccountImpersonationLifetime; - if (this.serviceAccountImpersonationLifetime) { - this.configLifetimeRequested = true; - } - else { - this.configLifetimeRequested = false; - this.serviceAccountImpersonationLifetime = DEFAULT_TOKEN_LIFESPAN; - } - this.projectNumber = this.getProjectNumber(this.audience); - this.supplierContext = { - audience: this.audience, - subjectTokenType: this.subjectTokenType, - transporter: this.transporter, - }; - } - /** The service account email to be impersonated, if available. */ - getServiceAccountEmail() { - var _a; - if (this.serviceAccountImpersonationUrl) { - if (this.serviceAccountImpersonationUrl.length > 256) { - /** - * Prevents DOS attacks. - * @see {@link https://github.com/googleapis/google-auth-library-nodejs/security/code-scanning/84} - **/ - throw new RangeError(`URL is too long: ${this.serviceAccountImpersonationUrl}`); - } - // Parse email from URL. The formal looks as follows: - // https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/name@project-id.iam.gserviceaccount.com:generateAccessToken - const re = /serviceAccounts\/(?[^:]+):generateAccessToken$/; - const result = re.exec(this.serviceAccountImpersonationUrl); - return ((_a = result === null || result === void 0 ? void 0 : result.groups) === null || _a === void 0 ? void 0 : _a.email) || null; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ReverseRBACOutput(); + + if (data.hasOwnProperty('clients')) { + obj['clients'] = _ApiClient["default"].convertToType(data['clients'], { + 'String': _ReverseRBACClient["default"] + }); } - return null; - } - /** - * Provides a mechanism to inject GCP access tokens directly. - * When the provided credential expires, a new credential, using the - * external account options, is retrieved. - * @param credentials The Credentials object to set on the current client. - */ - setCredentials(credentials) { - super.setCredentials(credentials); - this.cachedAccessToken = credentials; + } + + return obj; } + }]); + + return ReverseRBACOutput; +}(); +/** + * @member {Object.} clients + */ + + +ReverseRBACOutput.prototype['clients'] = undefined; +var _default = ReverseRBACOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 89487: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RevokeCertificate model module. + * @module model/RevokeCertificate + * @version 3.6.3 + */ +var RevokeCertificate = /*#__PURE__*/function () { + /** + * Constructs a new RevokeCertificate. + * RevokeCertificate is a command that revokes a certificate and adds it to the crl + * @alias module:model/RevokeCertificate + */ + function RevokeCertificate() { + _classCallCheck(this, RevokeCertificate); + + RevokeCertificate.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RevokeCertificate, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * @return A promise that resolves with the current GCP access token - * response. If the current credential is expired, a new one is retrieved. + * Constructs a RevokeCertificate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RevokeCertificate} obj Optional instance to populate. + * @return {module:model/RevokeCertificate} The populated RevokeCertificate instance. */ - async getAccessToken() { - // If cached access token is unavailable or expired, force refresh. - if (!this.cachedAccessToken || this.isExpired(this.cachedAccessToken)) { - await this.refreshAccessTokenAsync(); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RevokeCertificate(); + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); } - // Return GCP access token in GetAccessTokenResponse format. - return { - token: this.cachedAccessToken.access_token, - res: this.cachedAccessToken.res, - }; - } - /** - * The main authentication interface. It takes an optional url which when - * present is the endpoint being accessed, and returns a Promise which - * resolves with authorization header fields. - * - * The result has the form: - * { Authorization: 'Bearer ' } - */ - async getRequestHeaders() { - const accessTokenResponse = await this.getAccessToken(); - const headers = { - Authorization: `Bearer ${accessTokenResponse.token}`, - }; - return this.addSharedMetadataHeaders(headers); - } - request(opts, callback) { - if (callback) { - this.requestAsync(opts).then(r => callback(null, r), e => { - return callback(e, e.response); - }); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - else { - return this.requestAsync(opts); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - } - /** - * @return A promise that resolves with the project ID corresponding to the - * current workload identity pool or current workforce pool if - * determinable. For workforce pool credential, it returns the project ID - * corresponding to the workforcePoolUserProject. - * This is introduced to match the current pattern of using the Auth - * library: - * const projectId = await auth.getProjectId(); - * const url = `https://dns.googleapis.com/dns/v1/projects/${projectId}`; - * const res = await client.request({ url }); - * The resource may not have permission - * (resourcemanager.projects.get) to call this API or the required - * scopes may not be selected: - * https://cloud.google.com/resource-manager/reference/rest/v1/projects/get#authorization-scopes - */ - async getProjectId() { - const projectNumber = this.projectNumber || this.workforcePoolUserProject; - if (this.projectId) { - // Return previously determined project ID. - return this.projectId; + + if (data.hasOwnProperty('serial-number')) { + obj['serial-number'] = _ApiClient["default"].convertToType(data['serial-number'], 'String'); } - else if (projectNumber) { - // Preferable not to use request() to avoid retrial policies. - const headers = await this.getRequestHeaders(); - const response = await this.transporter.request({ - ...BaseExternalAccountClient.RETRY_CONFIG, - headers, - url: `${this.cloudResourceManagerURL.toString()}${projectNumber}`, - responseType: 'json', - }); - this.projectId = response.data.projectId; - return this.projectId; + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - return null; - } - /** - * Authenticates the provided HTTP request, processes it and resolves with the - * returned response. - * @param opts The HTTP request options. - * @param reAuthRetried Whether the current attempt is a retry after a failed attempt due to an auth failure. - * @return A promise that resolves with the successful response. - */ - async requestAsync(opts, reAuthRetried = false) { - let response; - try { - const requestHeaders = await this.getRequestHeaders(); - opts.headers = opts.headers || {}; - if (requestHeaders && requestHeaders['x-goog-user-project']) { - opts.headers['x-goog-user-project'] = - requestHeaders['x-goog-user-project']; - } - if (requestHeaders && requestHeaders.Authorization) { - opts.headers.Authorization = requestHeaders.Authorization; - } - response = await this.transporter.request(opts); + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - catch (e) { - const res = e.response; - if (res) { - const statusCode = res.status; - // Retry the request for metadata if the following criteria are true: - // - We haven't already retried. It only makes sense to retry once. - // - The response was a 401 or a 403 - // - The request didn't send a readableStream - // - forceRefreshOnFailure is true - const isReadableStream = res.config.data instanceof stream.Readable; - const isAuthErr = statusCode === 401 || statusCode === 403; - if (!reAuthRetried && - isAuthErr && - !isReadableStream && - this.forceRefreshOnFailure) { - await this.refreshAccessTokenAsync(); - return await this.requestAsync(opts, true); - } - } - throw e; + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); } - return response; + } + + return obj; } + }]); + + return RevokeCertificate; +}(); +/** + * The item id of the certificate to revoke + * @member {Number} item-id + */ + + +RevokeCertificate.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +RevokeCertificate.prototype['json'] = false; +/** + * Certificate item name to revoke + * @member {String} name + */ + +RevokeCertificate.prototype['name'] = undefined; +/** + * The serial number of the certificate to revoke + * @member {String} serial-number + */ + +RevokeCertificate.prototype['serial-number'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RevokeCertificate.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RevokeCertificate.prototype['uid-token'] = undefined; +/** + * Certificate version to revoke. Required if item-id or name are used. + * @member {Number} version + */ + +RevokeCertificate.prototype['version'] = undefined; +var _default = RevokeCertificate; +exports["default"] = _default; + +/***/ }), + +/***/ 46521: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RevokeCreds model module. + * @module model/RevokeCreds + * @version 3.6.3 + */ +var RevokeCreds = /*#__PURE__*/function () { + /** + * Constructs a new RevokeCreds. + * revokeCreds will permanently revoke the credentials associated with the provided token or profile. + * @alias module:model/RevokeCreds + */ + function RevokeCreds() { + _classCallCheck(this, RevokeCreds); + + RevokeCreds.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RevokeCreds, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Forces token refresh, even if unexpired tokens are currently cached. - * External credentials are exchanged for GCP access tokens via the token - * exchange endpoint and other settings provided in the client options - * object. - * If the service_account_impersonation_url is provided, an additional - * step to exchange the external account GCP access token for a service - * account impersonated token is performed. - * @return A promise that resolves with the fresh GCP access tokens. + * Constructs a RevokeCreds from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RevokeCreds} obj Optional instance to populate. + * @return {module:model/RevokeCreds} The populated RevokeCreds instance. */ - async refreshAccessTokenAsync() { - // Use an existing access token request, or cache a new one - __classPrivateFieldSet(this, _BaseExternalAccountClient_pendingAccessToken, __classPrivateFieldGet(this, _BaseExternalAccountClient_pendingAccessToken, "f") || __classPrivateFieldGet(this, _BaseExternalAccountClient_instances, "m", _BaseExternalAccountClient_internalRefreshAccessTokenAsync).call(this), "f"); - try { - return await __classPrivateFieldGet(this, _BaseExternalAccountClient_pendingAccessToken, "f"); - } - finally { - // clear pending access token for future requests - __classPrivateFieldSet(this, _BaseExternalAccountClient_pendingAccessToken, null, "f"); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RevokeCreds(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - } - /** - * Returns the workload identity pool project number if it is determinable - * from the audience resource name. - * @param audience The STS audience used to determine the project number. - * @return The project number associated with the workload identity pool, if - * this can be determined from the STS audience field. Otherwise, null is - * returned. - */ - getProjectNumber(audience) { - // STS audience pattern: - // //iam.googleapis.com/projects/$PROJECT_NUMBER/locations/... - const match = audience.match(/\/projects\/([^/]+)/); - if (!match) { - return null; + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - return match[1]; - } - /** - * Exchanges an external account GCP access token for a service - * account impersonated access token using iamcredentials - * GenerateAccessToken API. - * @param token The access token to exchange for a service account access - * token. - * @return A promise that resolves with the service account impersonated - * credentials response. - */ - async getImpersonatedAccessToken(token) { - const opts = { - ...BaseExternalAccountClient.RETRY_CONFIG, - url: this.serviceAccountImpersonationUrl, - method: 'POST', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${token}`, - }, - data: { - scope: this.getScopesArray(), - lifetime: this.serviceAccountImpersonationLifetime + 's', - }, - responseType: 'json', - }; - const response = await this.transporter.request(opts); - const successResponse = response.data; - return { - access_token: successResponse.accessToken, - // Convert from ISO format to timestamp. - expiry_date: new Date(successResponse.expireTime).getTime(), - res: response, - }; - } - /** - * Returns whether the provided credentials are expired or not. - * If there is no expiry time, assumes the token is not expired or expiring. - * @param accessToken The credentials to check for expiration. - * @return Whether the credentials are expired or not. - */ - isExpired(accessToken) { - const now = new Date().getTime(); - return accessToken.expiry_date - ? now >= accessToken.expiry_date - this.eagerRefreshThresholdMillis - : false; - } - /** - * @return The list of scopes for the requested GCP access token. - */ - getScopesArray() { - // Since scopes can be provided as string or array, the type should - // be normalized. - if (typeof this.scopes === 'string') { - return [this.scopes]; + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - return this.scopes || [DEFAULT_OAUTH_SCOPE]; - } - getMetricsHeaderValue() { - const nodeVersion = process.version.replace(/^v/, ''); - const saImpersonation = this.serviceAccountImpersonationUrl !== undefined; - const credentialSourceType = this.credentialSourceType - ? this.credentialSourceType - : 'unknown'; - return `gl-node/${nodeVersion} auth/${pkg.version} google-byoid-sdk source/${credentialSourceType} sa-impersonation/${saImpersonation} config-lifetime/${this.configLifetimeRequested}`; - } -} -exports.BaseExternalAccountClient = BaseExternalAccountClient; -_BaseExternalAccountClient_pendingAccessToken = new WeakMap(), _BaseExternalAccountClient_instances = new WeakSet(), _BaseExternalAccountClient_internalRefreshAccessTokenAsync = async function _BaseExternalAccountClient_internalRefreshAccessTokenAsync() { - // Retrieve the external credential. - const subjectToken = await this.retrieveSubjectToken(); - // Construct the STS credentials options. - const stsCredentialsOptions = { - grantType: STS_GRANT_TYPE, - audience: this.audience, - requestedTokenType: STS_REQUEST_TOKEN_TYPE, - subjectToken, - subjectTokenType: this.subjectTokenType, - // generateAccessToken requires the provided access token to have - // scopes: - // https://www.googleapis.com/auth/iam or - // https://www.googleapis.com/auth/cloud-platform - // The new service account access token scopes will match the user - // provided ones. - scope: this.serviceAccountImpersonationUrl - ? [DEFAULT_OAUTH_SCOPE] - : this.getScopesArray(), - }; - // Exchange the external credentials for a GCP access token. - // Client auth is prioritized over passing the workforcePoolUserProject - // parameter for STS token exchange. - const additionalOptions = !this.clientAuth && this.workforcePoolUserProject - ? { userProject: this.workforcePoolUserProject } - : undefined; - const additionalHeaders = { - 'x-goog-api-client': this.getMetricsHeaderValue(), - }; - const stsResponse = await this.stsCredential.exchangeToken(stsCredentialsOptions, additionalHeaders, additionalOptions); - if (this.serviceAccountImpersonationUrl) { - this.cachedAccessToken = await this.getImpersonatedAccessToken(stsResponse.access_token); - } - else if (stsResponse.expires_in) { - // Save response in cached access token. - this.cachedAccessToken = { - access_token: stsResponse.access_token, - expiry_date: new Date().getTime() + stsResponse.expires_in * 1000, - res: stsResponse.res, - }; - } - else { - // Save response in cached access token. - this.cachedAccessToken = { - access_token: stsResponse.access_token, - res: stsResponse.res, - }; + } + + return obj; } - // Save credentials. - this.credentials = {}; - Object.assign(this.credentials, this.cachedAccessToken); - delete this.credentials.res; - // Trigger tokens event to notify external listeners. - this.emit('tokens', { - refresh_token: null, - expiry_date: this.cachedAccessToken.expiry_date, - access_token: this.cachedAccessToken.access_token, - token_type: 'Bearer', - id_token: null, - }); - // Return the cached access token. - return this.cachedAccessToken; -}; + }]); + + return RevokeCreds; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ +RevokeCreds.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RevokeCreds.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RevokeCreds.prototype['uid-token'] = undefined; +var _default = RevokeCreds; +exports["default"] = _default; + /***/ }), -/***/ 42555: +/***/ 74264: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2013 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Compute = void 0; -const gaxios_1 = __nccwpck_require__(67773); -const gcpMetadata = __nccwpck_require__(81090); -const oauth2client_1 = __nccwpck_require__(89577); -class Compute extends oauth2client_1.OAuth2Client { - /** - * Google Compute Engine service account credentials. - * - * Retrieve access token from the metadata server. - * See: https://cloud.google.com/compute/docs/access/authenticate-workloads#applications - */ - constructor(options = {}) { - super(options); - // Start with an expired refresh token, which will automatically be - // refreshed before the first API call is made. - this.credentials = { expiry_date: 1, refresh_token: 'compute-placeholder' }; - this.serviceAccountEmail = options.serviceAccountEmail || 'default'; - this.scopes = Array.isArray(options.scopes) - ? options.scopes - : options.scopes - ? [options.scopes] - : []; - } + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _RoleAuthMethodAssociation = _interopRequireDefault(__nccwpck_require__(2372)); + +var _Rules = _interopRequireDefault(__nccwpck_require__(74529)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Role model module. + * @module model/Role + * @version 3.6.3 + */ +var Role = /*#__PURE__*/function () { + /** + * Constructs a new Role. + * @alias module:model/Role + */ + function Role() { + _classCallCheck(this, Role); + + Role.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(Role, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Refreshes the access token. - * @param refreshToken Unused parameter + * Constructs a Role from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Role} obj Optional instance to populate. + * @return {module:model/Role} The populated Role instance. */ - async refreshTokenNoCache( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - refreshToken) { - const tokenPath = `service-accounts/${this.serviceAccountEmail}/token`; - let data; - try { - const instanceOptions = { - property: tokenPath, - }; - if (this.scopes.length > 0) { - instanceOptions.params = { - scopes: this.scopes.join(','), - }; - } - data = await gcpMetadata.instance(instanceOptions); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Role(); + + if (data.hasOwnProperty('access_date')) { + obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); } - catch (e) { - if (e instanceof gaxios_1.GaxiosError) { - e.message = `Could not refresh access token: ${e.message}`; - this.wrapError(e); - } - throw e; + + if (data.hasOwnProperty('access_date_display')) { + obj['access_date_display'] = _ApiClient["default"].convertToType(data['access_date_display'], 'String'); } - const tokens = data; - if (data && data.expires_in) { - tokens.expiry_date = new Date().getTime() + data.expires_in * 1000; - delete tokens.expires_in; + + if (data.hasOwnProperty('client_permissions')) { + obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); } - this.emit('tokens', tokens); - return { tokens, res: null }; - } - /** - * Fetches an ID token. - * @param targetAudience the audience for the fetched ID token. - */ - async fetchIdToken(targetAudience) { - const idTokenPath = `service-accounts/${this.serviceAccountEmail}/identity` + - `?format=full&audience=${targetAudience}`; - let idToken; - try { - const instanceOptions = { - property: idTokenPath, - }; - idToken = await gcpMetadata.instance(instanceOptions); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - catch (e) { - if (e instanceof Error) { - e.message = `Could not fetch ID token: ${e.message}`; - } - throw e; + + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); } - return idToken; - } - wrapError(e) { - const res = e.response; - if (res && res.status) { - e.status = res.status; - if (res.status === 403) { - e.message = - 'A Forbidden error was returned while attempting to retrieve an access ' + - 'token for the Compute Engine built-in service account. This may be because the Compute ' + - 'Engine instance does not have the correct permission scopes specified: ' + - e.message; - } - else if (res.status === 404) { - e.message = - 'A Not Found error was returned while attempting to retrieve an access' + - 'token for the Compute Engine built-in service account. This may be because the Compute ' + - 'Engine instance does not have any permission scopes specified: ' + - e.message; - } + + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } + + if (data.hasOwnProperty('role_auth_methods_assoc')) { + obj['role_auth_methods_assoc'] = _ApiClient["default"].convertToType(data['role_auth_methods_assoc'], [_RoleAuthMethodAssociation["default"]]); + } + + if (data.hasOwnProperty('role_name')) { + obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], 'String'); + } + + if (data.hasOwnProperty('rules')) { + obj['rules'] = _Rules["default"].constructFromObject(data['rules']); } + } + + return obj; } -} -exports.Compute = Compute; + }]); + return Role; +}(); +/** + * @member {Date} access_date + */ + + +Role.prototype['access_date'] = undefined; +/** + * @member {String} access_date_display + */ + +Role.prototype['access_date_display'] = undefined; +/** + * @member {Array.} client_permissions + */ + +Role.prototype['client_permissions'] = undefined; +/** + * @member {String} comment + */ + +Role.prototype['comment'] = undefined; +/** + * @member {Date} creation_date + */ + +Role.prototype['creation_date'] = undefined; +/** + * @member {Date} modification_date + */ + +Role.prototype['modification_date'] = undefined; +/** + * @member {Array.} role_auth_methods_assoc + */ + +Role.prototype['role_auth_methods_assoc'] = undefined; +/** + * @member {String} role_name + */ + +Role.prototype['role_name'] = undefined; +/** + * @member {module:model/Rules} rules + */ + +Role.prototype['rules'] = undefined; +var _default = Role; +exports["default"] = _default; /***/ }), -/***/ 46095: -/***/ (function(__unused_webpack_module, exports) { +/***/ 30915: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "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. -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 _DefaultAwsSecurityCredentialsSupplier_instances, _DefaultAwsSecurityCredentialsSupplier_getImdsV2SessionToken, _DefaultAwsSecurityCredentialsSupplier_getAwsRoleName, _DefaultAwsSecurityCredentialsSupplier_retrieveAwsSecurityCredentials, _DefaultAwsSecurityCredentialsSupplier_regionFromEnv_get, _DefaultAwsSecurityCredentialsSupplier_securityCredentialsFromEnv_get; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DefaultAwsSecurityCredentialsSupplier = void 0; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Internal AWS security credentials supplier implementation used by {@link AwsClient} - * when a credential source is provided instead of a user defined supplier. - * The logic is summarized as: - * 1. If imdsv2_session_token_url is provided in the credential source, then - * fetch the aws session token and include it in the headers of the - * metadata requests. This is a requirement for IDMSv2 but optional - * for IDMSv1. - * 2. Retrieve AWS region from availability-zone. - * 3a. Check AWS credentials in environment variables. If not found, get - * from security-credentials endpoint. - * 3b. Get AWS credentials from security-credentials endpoint. In order - * to retrieve this, the AWS role needs to be determined by calling - * security-credentials endpoint without any argument. Then the - * credentials can be retrieved via: security-credentials/role_name - * 4. Generate the signed request to AWS STS GetCallerIdentity action. - * 5. Inject x-goog-cloud-target-resource into header and serialize the - * signed request. This will be the subject-token to pass to GCP STS. + * The RoleAssociationDetails model module. + * @module model/RoleAssociationDetails + * @version 3.6.3 */ -class DefaultAwsSecurityCredentialsSupplier { - /** - * Instantiates a new DefaultAwsSecurityCredentialsSupplier using information - * from the credential_source stored in the ADC file. - * @param opts The default aws security credentials supplier options object to - * build the supplier with. - */ - constructor(opts) { - _DefaultAwsSecurityCredentialsSupplier_instances.add(this); - this.regionUrl = opts.regionUrl; - this.securityCredentialsUrl = opts.securityCredentialsUrl; - this.imdsV2SessionTokenUrl = opts.imdsV2SessionTokenUrl; - this.additionalGaxiosOptions = opts.additionalGaxiosOptions; - } +var RoleAssociationDetails = /*#__PURE__*/function () { + /** + * Constructs a new RoleAssociationDetails. + * RoleAssociationDetails includes details of an association between a role and an auth method. + * @alias module:model/RoleAssociationDetails + */ + function RoleAssociationDetails() { + _classCallCheck(this, RoleAssociationDetails); + + RoleAssociationDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RoleAssociationDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Returns the active AWS region. This first checks to see if the region - * is available as an environment variable. If it is not, then the supplier - * will call the region URL. - * @param context {@link ExternalAccountSupplierContext} from the calling - * {@link AwsClient}, contains the requested audience and subject token type - * for the external account identity. - * @return A promise that resolves with the AWS region string. + * Constructs a RoleAssociationDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RoleAssociationDetails} obj Optional instance to populate. + * @return {module:model/RoleAssociationDetails} The populated RoleAssociationDetails instance. */ - async getAwsRegion(context) { - // Priority order for region determination: - // AWS_REGION > AWS_DEFAULT_REGION > metadata server. - if (__classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "a", _DefaultAwsSecurityCredentialsSupplier_regionFromEnv_get)) { - return __classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "a", _DefaultAwsSecurityCredentialsSupplier_regionFromEnv_get); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RoleAssociationDetails(); + + if (data.hasOwnProperty('assoc_id')) { + obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); } - const metadataHeaders = {}; - if (!__classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "a", _DefaultAwsSecurityCredentialsSupplier_regionFromEnv_get) && this.imdsV2SessionTokenUrl) { - metadataHeaders['x-aws-ec2-metadata-token'] = - await __classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "m", _DefaultAwsSecurityCredentialsSupplier_getImdsV2SessionToken).call(this, context.transporter); + + if (data.hasOwnProperty('auth_method_name')) { + obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); } - if (!this.regionUrl) { - throw new Error('Unable to determine AWS region due to missing ' + - '"options.credential_source.region_url"'); + + if (data.hasOwnProperty('auth_method_sub_claims')) { + obj['auth_method_sub_claims'] = _ApiClient["default"].convertToType(data['auth_method_sub_claims'], { + 'String': ['String'] + }); } - const opts = { - ...this.additionalGaxiosOptions, - url: this.regionUrl, - method: 'GET', - responseType: 'text', - headers: metadataHeaders, - }; - const response = await context.transporter.request(opts); - // Remove last character. For example, if us-east-2b is returned, - // the region would be us-east-2. - return response.data.substr(0, response.data.length - 1); - } - /** - * Returns AWS security credentials. This first checks to see if the credentials - * is available as environment variables. If it is not, then the supplier - * will call the security credentials URL. - * @param context {@link ExternalAccountSupplierContext} from the calling - * {@link AwsClient}, contains the requested audience and subject token type - * for the external account identity. - * @return A promise that resolves with the AWS security credentials. - */ - async getAwsSecurityCredentials(context) { - // Check environment variables for permanent credentials first. - // https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html - if (__classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "a", _DefaultAwsSecurityCredentialsSupplier_securityCredentialsFromEnv_get)) { - return __classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "a", _DefaultAwsSecurityCredentialsSupplier_securityCredentialsFromEnv_get); + + if (data.hasOwnProperty('role_name')) { + obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], 'String'); } - const metadataHeaders = {}; - if (this.imdsV2SessionTokenUrl) { - metadataHeaders['x-aws-ec2-metadata-token'] = - await __classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "m", _DefaultAwsSecurityCredentialsSupplier_getImdsV2SessionToken).call(this, context.transporter); + + if (data.hasOwnProperty('sub_claims_case_sensitive')) { + obj['sub_claims_case_sensitive'] = _ApiClient["default"].convertToType(data['sub_claims_case_sensitive'], 'Boolean'); } - // Since the role on a VM can change, we don't need to cache it. - const roleName = await __classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "m", _DefaultAwsSecurityCredentialsSupplier_getAwsRoleName).call(this, metadataHeaders, context.transporter); - // Temporary credentials typically last for several hours. - // Expiration is returned in response. - // Consider future optimization of this logic to cache AWS tokens - // until their natural expiration. - const awsCreds = await __classPrivateFieldGet(this, _DefaultAwsSecurityCredentialsSupplier_instances, "m", _DefaultAwsSecurityCredentialsSupplier_retrieveAwsSecurityCredentials).call(this, roleName, metadataHeaders, context.transporter); - return { - accessKeyId: awsCreds.AccessKeyId, - secretAccessKey: awsCreds.SecretAccessKey, - token: awsCreds.Token, - }; + } + + return obj; } -} -exports.DefaultAwsSecurityCredentialsSupplier = DefaultAwsSecurityCredentialsSupplier; -_DefaultAwsSecurityCredentialsSupplier_instances = new WeakSet(), _DefaultAwsSecurityCredentialsSupplier_getImdsV2SessionToken = + }]); + + return RoleAssociationDetails; +}(); /** - * @param transporter The transporter to use for requests. - * @return A promise that resolves with the IMDSv2 Session Token. + * @member {String} assoc_id */ -async function _DefaultAwsSecurityCredentialsSupplier_getImdsV2SessionToken(transporter) { - const opts = { - ...this.additionalGaxiosOptions, - url: this.imdsV2SessionTokenUrl, - method: 'PUT', - responseType: 'text', - headers: { 'x-aws-ec2-metadata-token-ttl-seconds': '300' }, - }; - const response = await transporter.request(opts); - return response.data; -}, _DefaultAwsSecurityCredentialsSupplier_getAwsRoleName = + + +RoleAssociationDetails.prototype['assoc_id'] = undefined; /** - * @param headers The headers to be used in the metadata request. - * @param transporter The transporter to use for requests. - * @return A promise that resolves with the assigned role to the current - * AWS VM. This is needed for calling the security-credentials endpoint. + * @member {String} auth_method_name */ -async function _DefaultAwsSecurityCredentialsSupplier_getAwsRoleName(headers, transporter) { - if (!this.securityCredentialsUrl) { - throw new Error('Unable to determine AWS role name due to missing ' + - '"options.credential_source.url"'); - } - const opts = { - ...this.additionalGaxiosOptions, - url: this.securityCredentialsUrl, - method: 'GET', - responseType: 'text', - headers: headers, - }; - const response = await transporter.request(opts); - return response.data; -}, _DefaultAwsSecurityCredentialsSupplier_retrieveAwsSecurityCredentials = + +RoleAssociationDetails.prototype['auth_method_name'] = undefined; /** - * Retrieves the temporary AWS credentials by calling the security-credentials - * endpoint as specified in the `credential_source` object. - * @param roleName The role attached to the current VM. - * @param headers The headers to be used in the metadata request. - * @param transporter The transporter to use for requests. - * @return A promise that resolves with the temporary AWS credentials - * needed for creating the GetCallerIdentity signed request. + * @member {Object.>} auth_method_sub_claims */ -async function _DefaultAwsSecurityCredentialsSupplier_retrieveAwsSecurityCredentials(roleName, headers, transporter) { - const response = await transporter.request({ - ...this.additionalGaxiosOptions, - url: `${this.securityCredentialsUrl}/${roleName}`, - responseType: 'json', - headers: headers, - }); - return response.data; -}, _DefaultAwsSecurityCredentialsSupplier_regionFromEnv_get = function _DefaultAwsSecurityCredentialsSupplier_regionFromEnv_get() { - // The AWS region can be provided through AWS_REGION or AWS_DEFAULT_REGION. - // Only one is required. - return (process.env['AWS_REGION'] || process.env['AWS_DEFAULT_REGION'] || null); -}, _DefaultAwsSecurityCredentialsSupplier_securityCredentialsFromEnv_get = function _DefaultAwsSecurityCredentialsSupplier_securityCredentialsFromEnv_get() { - // Both AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are required. - if (process.env['AWS_ACCESS_KEY_ID'] && - process.env['AWS_SECRET_ACCESS_KEY']) { - return { - accessKeyId: process.env['AWS_ACCESS_KEY_ID'], - secretAccessKey: process.env['AWS_SECRET_ACCESS_KEY'], - token: process.env['AWS_SESSION_TOKEN'], - }; - } - return null; -}; +RoleAssociationDetails.prototype['auth_method_sub_claims'] = undefined; +/** + * @member {String} role_name + */ + +RoleAssociationDetails.prototype['role_name'] = undefined; +/** + * @member {Boolean} sub_claims_case_sensitive + */ + +RoleAssociationDetails.prototype['sub_claims_case_sensitive'] = undefined; +var _default = RoleAssociationDetails; +exports["default"] = _default; + +/***/ }), + +/***/ 2372: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RoleAuthMethodAssociation model module. + * @module model/RoleAuthMethodAssociation + * @version 3.6.3 + */ +var RoleAuthMethodAssociation = /*#__PURE__*/function () { + /** + * Constructs a new RoleAuthMethodAssociation. + * RoleAuthMethodAssociation includes details of an association between a role and an auth method. + * @alias module:model/RoleAuthMethodAssociation + */ + function RoleAuthMethodAssociation() { + _classCallCheck(this, RoleAuthMethodAssociation); + + RoleAuthMethodAssociation.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RoleAuthMethodAssociation, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a RoleAuthMethodAssociation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RoleAuthMethodAssociation} obj Optional instance to populate. + * @return {module:model/RoleAuthMethodAssociation} The populated RoleAuthMethodAssociation instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RoleAuthMethodAssociation(); + + if (data.hasOwnProperty('assoc_id')) { + obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('auth_method_access_id')) { + obj['auth_method_access_id'] = _ApiClient["default"].convertToType(data['auth_method_access_id'], 'String'); + } -/***/ 98418: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('auth_method_name')) { + obj['auth_method_name'] = _ApiClient["default"].convertToType(data['auth_method_name'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('auth_method_sub_claims')) { + obj['auth_method_sub_claims'] = _ApiClient["default"].convertToType(data['auth_method_sub_claims'], { + 'String': ['String'] + }); + } -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DownscopedClient = exports.EXPIRATION_TIME_OFFSET = exports.MAX_ACCESS_BOUNDARY_RULES_COUNT = void 0; -const stream = __nccwpck_require__(2203); -const authclient_1 = __nccwpck_require__(58456); -const sts = __nccwpck_require__(959); + if (data.hasOwnProperty('sub_claims_case_sensitive')) { + obj['sub_claims_case_sensitive'] = _ApiClient["default"].convertToType(data['sub_claims_case_sensitive'], 'Boolean'); + } + } + + return obj; + } + }]); + + return RoleAuthMethodAssociation; +}(); /** - * The required token exchange grant_type: rfc8693#section-2.1 + * @member {String} assoc_id */ -const STS_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:token-exchange'; + + +RoleAuthMethodAssociation.prototype['assoc_id'] = undefined; /** - * The requested token exchange requested_token_type: rfc8693#section-2.1 + * @member {String} auth_method_access_id */ -const STS_REQUEST_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; + +RoleAuthMethodAssociation.prototype['auth_method_access_id'] = undefined; /** - * The requested token exchange subject_token_type: rfc8693#section-2.1 + * @member {String} auth_method_name */ -const STS_SUBJECT_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:access_token'; + +RoleAuthMethodAssociation.prototype['auth_method_name'] = undefined; /** - * The maximum number of access boundary rules a Credential Access Boundary - * can contain. + * @member {Object.>} auth_method_sub_claims */ -exports.MAX_ACCESS_BOUNDARY_RULES_COUNT = 10; + +RoleAuthMethodAssociation.prototype['auth_method_sub_claims'] = undefined; /** - * Offset to take into account network delays and server clock skews. + * @member {Boolean} sub_claims_case_sensitive */ -exports.EXPIRATION_TIME_OFFSET = 5 * 60 * 1000; + +RoleAuthMethodAssociation.prototype['sub_claims_case_sensitive'] = undefined; +var _default = RoleAuthMethodAssociation; +exports["default"] = _default; + +/***/ }), + +/***/ 3200: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Defines a set of Google credentials that are downscoped from an existing set - * of Google OAuth2 credentials. This is useful to restrict the Identity and - * Access Management (IAM) permissions that a short-lived credential can use. - * The common pattern of usage is to have a token broker with elevated access - * generate these downscoped credentials from higher access source credentials - * and pass the downscoped short-lived access tokens to a token consumer via - * some secure authenticated channel for limited access to Google Cloud Storage - * resources. + * The RollbackSecret model module. + * @module model/RollbackSecret + * @version 3.6.3 */ -class DownscopedClient extends authclient_1.AuthClient { - /** - * Instantiates a downscoped client object using the provided source - * AuthClient and credential access boundary rules. - * To downscope permissions of a source AuthClient, a Credential Access - * Boundary that specifies which resources the new credential can access, as - * well as an upper bound on the permissions that are available on each - * resource, has to be defined. A downscoped client can then be instantiated - * using the source AuthClient and the Credential Access Boundary. - * @param authClient The source AuthClient to be downscoped based on the - * provided Credential Access Boundary rules. - * @param credentialAccessBoundary The Credential Access Boundary which - * contains a list of access boundary rules. Each rule contains information - * on the resource that the rule applies to, the upper bound of the - * permissions that are available on that resource and an optional - * condition to further restrict permissions. - * @param additionalOptions **DEPRECATED, set this in the provided `authClient`.** - * Optional additional behavior customization options. - * @param quotaProjectId **DEPRECATED, set this in the provided `authClient`.** - * Optional quota project id for setting up in the x-goog-user-project header. - */ - constructor(authClient, credentialAccessBoundary, additionalOptions, quotaProjectId) { - super({ ...additionalOptions, quotaProjectId }); - this.authClient = authClient; - this.credentialAccessBoundary = credentialAccessBoundary; - // Check 1-10 Access Boundary Rules are defined within Credential Access - // Boundary. - if (credentialAccessBoundary.accessBoundary.accessBoundaryRules.length === 0) { - throw new Error('At least one access boundary rule needs to be defined.'); - } - else if (credentialAccessBoundary.accessBoundary.accessBoundaryRules.length > - exports.MAX_ACCESS_BOUNDARY_RULES_COUNT) { - throw new Error('The provided access boundary has more than ' + - `${exports.MAX_ACCESS_BOUNDARY_RULES_COUNT} access boundary rules.`); - } - // Check at least one permission should be defined in each Access Boundary - // Rule. - for (const rule of credentialAccessBoundary.accessBoundary - .accessBoundaryRules) { - if (rule.availablePermissions.length === 0) { - throw new Error('At least one permission should be defined in access boundary rules.'); - } - } - this.stsCredential = new sts.StsCredentials(`https://sts.${this.universeDomain}/v1/token`); - this.cachedDownscopedAccessToken = null; +var RollbackSecret = /*#__PURE__*/function () { + /** + * Constructs a new RollbackSecret. + * @alias module:model/RollbackSecret + * @param name {String} Secret name + * @param oldVersion {Number} Old secret version to rollback to + */ + function RollbackSecret(name, oldVersion) { + _classCallCheck(this, RollbackSecret); + + RollbackSecret.initialize(this, name, oldVersion); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RollbackSecret, null, [{ + key: "initialize", + value: function initialize(obj, name, oldVersion) { + obj['name'] = name; + obj['old-version'] = oldVersion; } /** - * Provides a mechanism to inject Downscoped access tokens directly. - * The expiry_date field is required to facilitate determination of the token - * expiration which would make it easier for the token consumer to handle. - * @param credentials The Credentials object to set on the current client. + * Constructs a RollbackSecret from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RollbackSecret} obj Optional instance to populate. + * @return {module:model/RollbackSecret} The populated RollbackSecret instance. */ - setCredentials(credentials) { - if (!credentials.expiry_date) { - throw new Error('The access token expiry_date field is missing in the provided ' + - 'credentials.'); - } - super.setCredentials(credentials); - this.cachedDownscopedAccessToken = credentials; - } - async getAccessToken() { - // If the cached access token is unavailable or expired, force refresh. - // The Downscoped access token will be returned in - // DownscopedAccessTokenResponse format. - if (!this.cachedDownscopedAccessToken || - this.isExpired(this.cachedDownscopedAccessToken)) { - await this.refreshAccessTokenAsync(); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RollbackSecret(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - // Return Downscoped access token in DownscopedAccessTokenResponse format. - return { - token: this.cachedDownscopedAccessToken.access_token, - expirationTime: this.cachedDownscopedAccessToken.expiry_date, - res: this.cachedDownscopedAccessToken.res, - }; - } - /** - * The main authentication interface. It takes an optional url which when - * present is the endpoint being accessed, and returns a Promise which - * resolves with authorization header fields. - * - * The result has the form: - * { Authorization: 'Bearer ' } - */ - async getRequestHeaders() { - const accessTokenResponse = await this.getAccessToken(); - const headers = { - Authorization: `Bearer ${accessTokenResponse.token}`, - }; - return this.addSharedMetadataHeaders(headers); - } - request(opts, callback) { - if (callback) { - this.requestAsync(opts).then(r => callback(null, r), e => { - return callback(e, e.response); - }); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - else { - return this.requestAsync(opts); + + if (data.hasOwnProperty('old-version')) { + obj['old-version'] = _ApiClient["default"].convertToType(data['old-version'], 'Number'); } - } - /** - * Authenticates the provided HTTP request, processes it and resolves with the - * returned response. - * @param opts The HTTP request options. - * @param reAuthRetried Whether the current attempt is a retry after a failed attempt due to an auth failure - * @return A promise that resolves with the successful response. - */ - async requestAsync(opts, reAuthRetried = false) { - let response; - try { - const requestHeaders = await this.getRequestHeaders(); - opts.headers = opts.headers || {}; - if (requestHeaders && requestHeaders['x-goog-user-project']) { - opts.headers['x-goog-user-project'] = - requestHeaders['x-goog-user-project']; - } - if (requestHeaders && requestHeaders.Authorization) { - opts.headers.Authorization = requestHeaders.Authorization; - } - response = await this.transporter.request(opts); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - catch (e) { - const res = e.response; - if (res) { - const statusCode = res.status; - // Retry the request for metadata if the following criteria are true: - // - We haven't already retried. It only makes sense to retry once. - // - The response was a 401 or a 403 - // - The request didn't send a readableStream - // - forceRefreshOnFailure is true - const isReadableStream = res.config.data instanceof stream.Readable; - const isAuthErr = statusCode === 401 || statusCode === 403; - if (!reAuthRetried && - isAuthErr && - !isReadableStream && - this.forceRefreshOnFailure) { - await this.refreshAccessTokenAsync(); - return await this.requestAsync(opts, true); - } - } - throw e; + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - return response; - } - /** - * Forces token refresh, even if unexpired tokens are currently cached. - * GCP access tokens are retrieved from authclient object/source credential. - * Then GCP access tokens are exchanged for downscoped access tokens via the - * token exchange endpoint. - * @return A promise that resolves with the fresh downscoped access token. - */ - async refreshAccessTokenAsync() { - var _a; - // Retrieve GCP access token from source credential. - const subjectToken = (await this.authClient.getAccessToken()).token; - // Construct the STS credentials options. - const stsCredentialsOptions = { - grantType: STS_GRANT_TYPE, - requestedTokenType: STS_REQUEST_TOKEN_TYPE, - subjectToken: subjectToken, - subjectTokenType: STS_SUBJECT_TOKEN_TYPE, - }; - // Exchange the source AuthClient access token for a Downscoped access - // token. - const stsResponse = await this.stsCredential.exchangeToken(stsCredentialsOptions, undefined, this.credentialAccessBoundary); - /** - * The STS endpoint will only return the expiration time for the downscoped - * access token if the original access token represents a service account. - * The downscoped token's expiration time will always match the source - * credential expiration. When no expires_in is returned, we can copy the - * source credential's expiration time. - */ - const sourceCredExpireDate = ((_a = this.authClient.credentials) === null || _a === void 0 ? void 0 : _a.expiry_date) || null; - const expiryDate = stsResponse.expires_in - ? new Date().getTime() + stsResponse.expires_in * 1000 - : sourceCredExpireDate; - // Save response in cached access token. - this.cachedDownscopedAccessToken = { - access_token: stsResponse.access_token, - expiry_date: expiryDate, - res: stsResponse.res, - }; - // Save credentials. - this.credentials = {}; - Object.assign(this.credentials, this.cachedDownscopedAccessToken); - delete this.credentials.res; - // Trigger tokens event to notify external listeners. - this.emit('tokens', { - refresh_token: null, - expiry_date: this.cachedDownscopedAccessToken.expiry_date, - access_token: this.cachedDownscopedAccessToken.access_token, - token_type: 'Bearer', - id_token: null, - }); - // Return the cached access token. - return this.cachedDownscopedAccessToken; - } - /** - * Returns whether the provided credentials are expired or not. - * If there is no expiry time, assumes the token is not expired or expiring. - * @param downscopedAccessToken The credentials to check for expiration. - * @return Whether the credentials are expired or not. - */ - isExpired(downscopedAccessToken) { - const now = new Date().getTime(); - return downscopedAccessToken.expiry_date - ? now >= - downscopedAccessToken.expiry_date - this.eagerRefreshThresholdMillis - : false; + } + + return obj; } -} -exports.DownscopedClient = DownscopedClient; + }]); + + return RollbackSecret; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +RollbackSecret.prototype['json'] = false; +/** + * Secret name + * @member {String} name + */ + +RollbackSecret.prototype['name'] = undefined; +/** + * Old secret version to rollback to + * @member {Number} old-version + */ + +RollbackSecret.prototype['old-version'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RollbackSecret.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +RollbackSecret.prototype['uid-token'] = undefined; +var _default = RollbackSecret; +exports["default"] = _default; /***/ }), -/***/ 38697: +/***/ 76745: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2018 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GCPEnv = void 0; -exports.clear = clear; -exports.getEnv = getEnv; -const gcpMetadata = __nccwpck_require__(81090); -var GCPEnv; -(function (GCPEnv) { - GCPEnv["APP_ENGINE"] = "APP_ENGINE"; - GCPEnv["KUBERNETES_ENGINE"] = "KUBERNETES_ENGINE"; - GCPEnv["CLOUD_FUNCTIONS"] = "CLOUD_FUNCTIONS"; - GCPEnv["COMPUTE_ENGINE"] = "COMPUTE_ENGINE"; - GCPEnv["CLOUD_RUN"] = "CLOUD_RUN"; - GCPEnv["NONE"] = "NONE"; -})(GCPEnv || (exports.GCPEnv = GCPEnv = {})); -let envPromise; -function clear() { - envPromise = undefined; -} -async function getEnv() { - if (envPromise) { - return envPromise; - } - envPromise = getEnvMemoized(); - return envPromise; -} -async function getEnvMemoized() { - let env = GCPEnv.NONE; - if (isAppEngine()) { - env = GCPEnv.APP_ENGINE; - } - else if (isCloudFunction()) { - env = GCPEnv.CLOUD_FUNCTIONS; - } - else if (await isComputeEngine()) { - if (await isKubernetesEngine()) { - env = GCPEnv.KUBERNETES_ENGINE; - } - else if (isCloudRun()) { - env = GCPEnv.CLOUD_RUN; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RollbackSecretOutput model module. + * @module model/RollbackSecretOutput + * @version 3.6.3 + */ +var RollbackSecretOutput = /*#__PURE__*/function () { + /** + * Constructs a new RollbackSecretOutput. + * @alias module:model/RollbackSecretOutput + */ + function RollbackSecretOutput() { + _classCallCheck(this, RollbackSecretOutput); + + RollbackSecretOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RollbackSecretOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a RollbackSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RollbackSecretOutput} obj Optional instance to populate. + * @return {module:model/RollbackSecretOutput} The populated RollbackSecretOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RollbackSecretOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - else { - env = GCPEnv.COMPUTE_ENGINE; + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); } + } + + return obj; } - else { - env = GCPEnv.NONE; - } - return env; -} -function isAppEngine() { - return !!(process.env.GAE_SERVICE || process.env.GAE_MODULE_NAME); -} -function isCloudFunction() { - return !!(process.env.FUNCTION_NAME || process.env.FUNCTION_TARGET); -} + }]); + + return RollbackSecretOutput; +}(); /** - * This check only verifies that the environment is running knative. - * This must be run *after* checking for Kubernetes, otherwise it will - * return a false positive. + * @member {String} name + */ + + +RollbackSecretOutput.prototype['name'] = undefined; +/** + * @member {Number} version */ -function isCloudRun() { - return !!process.env.K_CONFIGURATION; -} -async function isKubernetesEngine() { - try { - await gcpMetadata.instance('attributes/cluster-name'); - return true; - } - catch (e) { - return false; - } -} -async function isComputeEngine() { - return gcpMetadata.isAvailable(); -} +RollbackSecretOutput.prototype['version'] = undefined; +var _default = RollbackSecretOutput; +exports["default"] = _default; /***/ }), -/***/ 3269: -/***/ ((__unused_webpack_module, exports) => { +/***/ 77056: +/***/ ((__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.InvalidSubjectTokenError = exports.InvalidMessageFieldError = exports.InvalidCodeFieldError = exports.InvalidTokenTypeFieldError = exports.InvalidExpirationTimeFieldError = exports.InvalidSuccessFieldError = exports.InvalidVersionFieldError = exports.ExecutableResponseError = exports.ExecutableResponse = void 0; -const SAML_SUBJECT_TOKEN_TYPE = 'urn:ietf:params:oauth:token-type:saml2'; -const OIDC_SUBJECT_TOKEN_TYPE1 = 'urn:ietf:params:oauth:token-type:id_token'; -const OIDC_SUBJECT_TOKEN_TYPE2 = 'urn:ietf:params:oauth:token-type:jwt'; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Defines the response of a 3rd party executable run by the pluggable auth client. + * The RotateKey model module. + * @module model/RotateKey + * @version 3.6.3 */ -class ExecutableResponse { +var RotateKey = /*#__PURE__*/function () { + /** + * Constructs a new RotateKey. + * of it. + * @alias module:model/RotateKey + * @param name {String} Key name + */ + function RotateKey(name) { + _classCallCheck(this, RotateKey); + + RotateKey.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotateKey, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Instantiates an ExecutableResponse instance using the provided JSON object - * from the output of the executable. - * @param responseJson Response from a 3rd party executable, loaded from a - * run of the executable or a cached output file. + * Constructs a RotateKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotateKey} obj Optional instance to populate. + * @return {module:model/RotateKey} The populated RotateKey instance. */ - constructor(responseJson) { - // Check that the required fields exist in the json response. - if (!responseJson.version) { - throw new InvalidVersionFieldError("Executable response must contain a 'version' field."); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotateKey(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (responseJson.success === undefined) { - throw new InvalidSuccessFieldError("Executable response must contain a 'success' field."); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - this.version = responseJson.version; - this.success = responseJson.success; - // Validate required fields for a successful response. - if (this.success) { - this.expirationTime = responseJson.expiration_time; - this.tokenType = responseJson.token_type; - // Validate token type field. - if (this.tokenType !== SAML_SUBJECT_TOKEN_TYPE && - this.tokenType !== OIDC_SUBJECT_TOKEN_TYPE1 && - this.tokenType !== OIDC_SUBJECT_TOKEN_TYPE2) { - throw new InvalidTokenTypeFieldError("Executable response must contain a 'token_type' field when successful " + - `and it must be one of ${OIDC_SUBJECT_TOKEN_TYPE1}, ${OIDC_SUBJECT_TOKEN_TYPE2}, or ${SAML_SUBJECT_TOKEN_TYPE}.`); - } - // Validate subject token. - if (this.tokenType === SAML_SUBJECT_TOKEN_TYPE) { - if (!responseJson.saml_response) { - throw new InvalidSubjectTokenError(`Executable response must contain a 'saml_response' field when token_type=${SAML_SUBJECT_TOKEN_TYPE}.`); - } - this.subjectToken = responseJson.saml_response; - } - else { - if (!responseJson.id_token) { - throw new InvalidSubjectTokenError("Executable response must contain a 'id_token' field when " + - `token_type=${OIDC_SUBJECT_TOKEN_TYPE1} or ${OIDC_SUBJECT_TOKEN_TYPE2}.`); - } - this.subjectToken = responseJson.id_token; - } + + if (data.hasOwnProperty('new-cert-pem-data')) { + obj['new-cert-pem-data'] = _ApiClient["default"].convertToType(data['new-cert-pem-data'], 'String'); } - else { - // Both code and message must be provided for unsuccessful responses. - if (!responseJson.code) { - throw new InvalidCodeFieldError("Executable response must contain a 'code' field when unsuccessful."); - } - if (!responseJson.message) { - throw new InvalidMessageFieldError("Executable response must contain a 'message' field when unsuccessful."); - } - this.errorCode = responseJson.code; - this.errorMessage = responseJson.message; + + if (data.hasOwnProperty('new-key-data')) { + obj['new-key-data'] = _ApiClient["default"].convertToType(data['new-key-data'], 'String'); } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } - /** - * @return A boolean representing if the response has a valid token. Returns - * true when the response was successful and the token is not expired. - */ - isValid() { - return !this.isExpired() && this.success; - } - /** - * @return A boolean representing if the response is expired. Returns true if the - * provided timeout has passed. - */ - isExpired() { - return (this.expirationTime !== undefined && - this.expirationTime < Math.round(Date.now() / 1000)); - } -} -exports.ExecutableResponse = ExecutableResponse; -/** - * An error thrown by the ExecutableResponse class. - */ -class ExecutableResponseError extends Error { - constructor(message) { - super(message); - Object.setPrototypeOf(this, new.target.prototype); - } -} -exports.ExecutableResponseError = ExecutableResponseError; -/** - * An error thrown when the 'version' field in an executable response is missing or invalid. - */ -class InvalidVersionFieldError extends ExecutableResponseError { -} -exports.InvalidVersionFieldError = InvalidVersionFieldError; + }]); + + return RotateKey; +}(); /** - * An error thrown when the 'success' field in an executable response is missing or invalid. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -class InvalidSuccessFieldError extends ExecutableResponseError { -} -exports.InvalidSuccessFieldError = InvalidSuccessFieldError; + + +RotateKey.prototype['json'] = false; /** - * An error thrown when the 'expiration_time' field in an executable response is missing or invalid. + * Key name + * @member {String} name */ -class InvalidExpirationTimeFieldError extends ExecutableResponseError { -} -exports.InvalidExpirationTimeFieldError = InvalidExpirationTimeFieldError; + +RotateKey.prototype['name'] = undefined; /** - * An error thrown when the 'token_type' field in an executable response is missing or invalid. + * The new pem encoded certificate for the classic key. relevant only for keys provided by user ('bring-your-own-key') + * @member {String} new-cert-pem-data */ -class InvalidTokenTypeFieldError extends ExecutableResponseError { -} -exports.InvalidTokenTypeFieldError = InvalidTokenTypeFieldError; + +RotateKey.prototype['new-cert-pem-data'] = undefined; /** - * An error thrown when the 'code' field in an executable response is missing or invalid. + * The new base64 encoded value for the classic key. relevant only for keys provided by user ('bring-your-own-key') + * @member {String} new-key-data */ -class InvalidCodeFieldError extends ExecutableResponseError { -} -exports.InvalidCodeFieldError = InvalidCodeFieldError; + +RotateKey.prototype['new-key-data'] = undefined; /** - * An error thrown when the 'message' field in an executable response is missing or invalid. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -class InvalidMessageFieldError extends ExecutableResponseError { -} -exports.InvalidMessageFieldError = InvalidMessageFieldError; + +RotateKey.prototype['token'] = undefined; /** - * An error thrown when the subject token in an executable response is missing or invalid. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -class InvalidSubjectTokenError extends ExecutableResponseError { -} -exports.InvalidSubjectTokenError = InvalidSubjectTokenError; +RotateKey.prototype['uid-token'] = undefined; +var _default = RotateKey; +exports["default"] = _default; /***/ }), -/***/ 57310: +/***/ 58153: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2023 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ExternalAccountAuthorizedUserClient = exports.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE = void 0; -const authclient_1 = __nccwpck_require__(58456); -const oauth2common_1 = __nccwpck_require__(39235); -const gaxios_1 = __nccwpck_require__(67773); -const stream = __nccwpck_require__(2203); -const baseexternalclient_1 = __nccwpck_require__(27036); -/** - * The credentials JSON file type for external account authorized user clients. - */ -exports.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE = 'external_account_authorized_user'; -const DEFAULT_TOKEN_URL = 'https://sts.{universeDomain}/v1/oauthtoken'; -/** - * Handler for token refresh requests sent to the token_url endpoint for external - * authorized user credentials. - */ -class ExternalAccountAuthorizedUserHandler extends oauth2common_1.OAuthClientAuthHandler { - /** - * Initializes an ExternalAccountAuthorizedUserHandler instance. - * @param url The URL of the token refresh endpoint. - * @param transporter The transporter to use for the refresh request. - * @param clientAuthentication The client authentication credentials to use - * for the refresh request. - */ - constructor(url, transporter, clientAuthentication) { - super(clientAuthentication); - this.url = url; - this.transporter = transporter; - } - /** - * Requests a new access token from the token_url endpoint using the provided - * refresh token. - * @param refreshToken The refresh token to use to generate a new access token. - * @param additionalHeaders Optional additional headers to pass along the - * request. - * @return A promise that resolves with the token refresh response containing - * the requested access token and its expiration time. - */ - async refreshToken(refreshToken, additionalHeaders) { - const values = new URLSearchParams({ - grant_type: 'refresh_token', - refresh_token: refreshToken, - }); - const headers = { - 'Content-Type': 'application/x-www-form-urlencoded', - ...additionalHeaders, - }; - const opts = { - ...ExternalAccountAuthorizedUserHandler.RETRY_CONFIG, - url: this.url, - method: 'POST', - headers, - data: values.toString(), - responseType: 'json', - }; - // Apply OAuth client authentication. - this.applyClientAuthenticationOptions(opts); - try { - const response = await this.transporter.request(opts); - // Successful response. - const tokenRefreshResponse = response.data; - tokenRefreshResponse.res = response; - return tokenRefreshResponse; - } - catch (error) { - // Translate error to OAuthError. - if (error instanceof gaxios_1.GaxiosError && error.response) { - throw (0, oauth2common_1.getErrorFromOAuthErrorResponse)(error.response.data, - // Preserve other fields from the original error. - error); - } - // Request could fail before the server responds. - throw error; - } - } -} + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * External Account Authorized User Client. This is used for OAuth2 credentials - * sourced using external identities through Workforce Identity Federation. - * Obtaining the initial access and refresh token can be done through the - * Google Cloud CLI. + * The RotateKeyOutput model module. + * @module model/RotateKeyOutput + * @version 3.6.3 */ -class ExternalAccountAuthorizedUserClient extends authclient_1.AuthClient { - /** - * Instantiates an ExternalAccountAuthorizedUserClient instances using the - * provided JSON object loaded from a credentials files. - * An error is throws if the credential is not valid. - * @param options The external account authorized user option object typically - * from the external accoutn authorized user JSON credential file. - * @param additionalOptions **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) { - var _a; - super({ ...options, ...additionalOptions }); - if (options.universe_domain) { - this.universeDomain = options.universe_domain; - } - this.refreshToken = options.refresh_token; - const clientAuth = { - confidentialClientType: 'basic', - clientId: options.client_id, - clientSecret: options.client_secret, - }; - this.externalAccountAuthorizedUserHandler = - new ExternalAccountAuthorizedUserHandler((_a = options.token_url) !== null && _a !== void 0 ? _a : DEFAULT_TOKEN_URL.replace('{universeDomain}', this.universeDomain), this.transporter, clientAuth); - this.cachedAccessToken = null; - this.quotaProjectId = options.quota_project_id; - // As threshold could be zero, - // eagerRefreshThresholdMillis || EXPIRATION_TIME_OFFSET will override the - // zero value. - if (typeof (additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.eagerRefreshThresholdMillis) !== 'number') { - this.eagerRefreshThresholdMillis = baseexternalclient_1.EXPIRATION_TIME_OFFSET; - } - else { - this.eagerRefreshThresholdMillis = additionalOptions - .eagerRefreshThresholdMillis; - } - this.forceRefreshOnFailure = !!(additionalOptions === null || additionalOptions === void 0 ? void 0 : additionalOptions.forceRefreshOnFailure); - } - async getAccessToken() { - // If cached access token is unavailable or expired, force refresh. - if (!this.cachedAccessToken || this.isExpired(this.cachedAccessToken)) { - await this.refreshAccessTokenAsync(); - } - // Return GCP access token in GetAccessTokenResponse format. - return { - token: this.cachedAccessToken.access_token, - res: this.cachedAccessToken.res, - }; - } - async getRequestHeaders() { - const accessTokenResponse = await this.getAccessToken(); - const headers = { - Authorization: `Bearer ${accessTokenResponse.token}`, - }; - return this.addSharedMetadataHeaders(headers); - } - request(opts, callback) { - if (callback) { - this.requestAsync(opts).then(r => callback(null, r), e => { - return callback(e, e.response); - }); - } - else { - return this.requestAsync(opts); - } - } - /** - * Authenticates the provided HTTP request, processes it and resolves with the - * returned response. - * @param opts The HTTP request options. - * @param reAuthRetried Whether the current attempt is a retry after a failed attempt due to an auth failure. - * @return A promise that resolves with the successful response. - */ - async requestAsync(opts, reAuthRetried = false) { - let response; - try { - const requestHeaders = await this.getRequestHeaders(); - opts.headers = opts.headers || {}; - if (requestHeaders && requestHeaders['x-goog-user-project']) { - opts.headers['x-goog-user-project'] = - requestHeaders['x-goog-user-project']; - } - if (requestHeaders && requestHeaders.Authorization) { - opts.headers.Authorization = requestHeaders.Authorization; - } - response = await this.transporter.request(opts); - } - catch (e) { - const res = e.response; - if (res) { - const statusCode = res.status; - // Retry the request for metadata if the following criteria are true: - // - We haven't already retried. It only makes sense to retry once. - // - The response was a 401 or a 403 - // - The request didn't send a readableStream - // - forceRefreshOnFailure is true - const isReadableStream = res.config.data instanceof stream.Readable; - const isAuthErr = statusCode === 401 || statusCode === 403; - if (!reAuthRetried && - isAuthErr && - !isReadableStream && - this.forceRefreshOnFailure) { - await this.refreshAccessTokenAsync(); - return await this.requestAsync(opts, true); - } - } - throw e; - } - return response; - } +var RotateKeyOutput = /*#__PURE__*/function () { + /** + * Constructs a new RotateKeyOutput. + * RotateKeyOutput defines output of RotateKey operation + * @alias module:model/RotateKeyOutput + */ + function RotateKeyOutput() { + _classCallCheck(this, RotateKeyOutput); + + RotateKeyOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotateKeyOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Forces token refresh, even if unexpired tokens are currently cached. - * @return A promise that resolves with the refreshed credential. + * Constructs a RotateKeyOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotateKeyOutput} obj Optional instance to populate. + * @return {module:model/RotateKeyOutput} The populated RotateKeyOutput instance. */ - async refreshAccessTokenAsync() { - // Refresh the access token using the refresh token. - const refreshResponse = await this.externalAccountAuthorizedUserHandler.refreshToken(this.refreshToken); - this.cachedAccessToken = { - access_token: refreshResponse.access_token, - expiry_date: new Date().getTime() + refreshResponse.expires_in * 1000, - res: refreshResponse.res, - }; - if (refreshResponse.refresh_token !== undefined) { - this.refreshToken = refreshResponse.refresh_token; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotateKeyOutput(); + + if (data.hasOwnProperty('classic_key_gw_url')) { + obj['classic_key_gw_url'] = _ApiClient["default"].convertToType(data['classic_key_gw_url'], 'String'); } - return this.cachedAccessToken; + + if (data.hasOwnProperty('item_type')) { + obj['item_type'] = _ApiClient["default"].convertToType(data['item_type'], 'String'); + } + + if (data.hasOwnProperty('new_item_version')) { + obj['new_item_version'] = _ApiClient["default"].convertToType(data['new_item_version'], 'Number'); + } + + if (data.hasOwnProperty('next_rotation_date')) { + obj['next_rotation_date'] = _ApiClient["default"].convertToType(data['next_rotation_date'], 'Date'); + } + } + + return obj; } + }]); + + return RotateKeyOutput; +}(); +/** + * @member {String} classic_key_gw_url + */ + + +RotateKeyOutput.prototype['classic_key_gw_url'] = undefined; +/** + * @member {String} item_type + */ + +RotateKeyOutput.prototype['item_type'] = undefined; +/** + * @member {Number} new_item_version + */ + +RotateKeyOutput.prototype['new_item_version'] = undefined; +/** + * @member {Date} next_rotation_date + */ + +RotateKeyOutput.prototype['next_rotation_date'] = undefined; +var _default = RotateKeyOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 38772: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RotateOidcClientOutput model module. + * @module model/RotateOidcClientOutput + * @version 3.6.3 + */ +var RotateOidcClientOutput = /*#__PURE__*/function () { + /** + * Constructs a new RotateOidcClientOutput. + * @alias module:model/RotateOidcClientOutput + */ + function RotateOidcClientOutput() { + _classCallCheck(this, RotateOidcClientOutput); + + RotateOidcClientOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotateOidcClientOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Returns whether the provided credentials are expired or not. - * If there is no expiry time, assumes the token is not expired or expiring. - * @param credentials The credentials to check for expiration. - * @return Whether the credentials are expired or not. + * Constructs a RotateOidcClientOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotateOidcClientOutput} obj Optional instance to populate. + * @return {module:model/RotateOidcClientOutput} The populated RotateOidcClientOutput instance. */ - isExpired(credentials) { - const now = new Date().getTime(); - return credentials.expiry_date - ? now >= credentials.expiry_date - this.eagerRefreshThresholdMillis - : false; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotateOidcClientOutput(); + + if (data.hasOwnProperty('new_secret')) { + obj['new_secret'] = _ApiClient["default"].convertToType(data['new_secret'], 'String'); + } + } + + return obj; } -} -exports.ExternalAccountAuthorizedUserClient = ExternalAccountAuthorizedUserClient; + }]); + + return RotateOidcClientOutput; +}(); +/** + * @member {String} new_secret + */ + +RotateOidcClientOutput.prototype['new_secret'] = undefined; +var _default = RotateOidcClientOutput; +exports["default"] = _default; /***/ }), -/***/ 84377: +/***/ 47153: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ExternalAccountClient = void 0; -const baseexternalclient_1 = __nccwpck_require__(27036); -const identitypoolclient_1 = __nccwpck_require__(14602); -const awsclient_1 = __nccwpck_require__(82615); -const pluggable_auth_client_1 = __nccwpck_require__(48771); + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Dummy class with no constructor. Developers are expected to use fromJSON. + * The RotateOidcClientSecret model module. + * @module model/RotateOidcClientSecret + * @version 3.6.3 */ -class ExternalAccountClient { - constructor() { - throw new Error('ExternalAccountClients should be initialized via: ' + - 'ExternalAccountClient.fromJSON(), ' + - 'directly via explicit constructors, eg. ' + - 'new AwsClient(options), new IdentityPoolClient(options), new' + - 'PluggableAuthClientOptions, or via ' + - 'new GoogleAuth(options).getClient()'); +var RotateOidcClientSecret = /*#__PURE__*/function () { + /** + * Constructs a new RotateOidcClientSecret. + * @alias module:model/RotateOidcClientSecret + * @param name {String} OIDC application name + */ + function RotateOidcClientSecret(name) { + _classCallCheck(this, RotateOidcClientSecret); + + RotateOidcClientSecret.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotateOidcClientSecret, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } /** - * This static method will instantiate the - * corresponding type of external account credential depending on the - * underlying credential source. - * @param options The external account options object typically loaded - * from the external account JSON credential file. - * @param additionalOptions **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. - * @return A BaseExternalAccountClient instance or null if the options - * provided do not correspond to an external account credential. + * Constructs a RotateOidcClientSecret from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotateOidcClientSecret} obj Optional instance to populate. + * @return {module:model/RotateOidcClientSecret} The populated RotateOidcClientSecret instance. */ - static fromJSON(options, additionalOptions) { - var _a, _b; - if (options && options.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { - if ((_a = options.credential_source) === null || _a === void 0 ? void 0 : _a.environment_id) { - return new awsclient_1.AwsClient(options, additionalOptions); - } - else if ((_b = options.credential_source) === null || _b === void 0 ? void 0 : _b.executable) { - return new pluggable_auth_client_1.PluggableAuthClient(options, additionalOptions); - } - else { - return new identitypoolclient_1.IdentityPoolClient(options, additionalOptions); - } + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotateOidcClientSecret(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - else { - return null; + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + } + + return obj; } -} -exports.ExternalAccountClient = ExternalAccountClient; + }]); + + return RotateOidcClientSecret; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + + +RotateOidcClientSecret.prototype['json'] = false; +/** + * OIDC application name + * @member {String} name + */ + +RotateOidcClientSecret.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotateOidcClientSecret.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +RotateOidcClientSecret.prototype['uid-token'] = undefined; +var _default = RotateOidcClientSecret; +exports["default"] = _default; /***/ }), -/***/ 68362: +/***/ 90983: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "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. -var _a, _b, _c; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.FileSubjectTokenSupplier = void 0; -const util_1 = __nccwpck_require__(39023); -const fs = __nccwpck_require__(79896); -// fs.readfile is undefined in browser karma tests causing -// `npm run browser-test` to fail as test.oauth2.ts imports this file via -// src/index.ts. -// Fallback to void function to avoid promisify throwing a TypeError. -const readFile = (0, util_1.promisify)((_a = fs.readFile) !== null && _a !== void 0 ? _a : (() => { })); -const realpath = (0, util_1.promisify)((_b = fs.realpath) !== null && _b !== void 0 ? _b : (() => { })); -const lstat = (0, util_1.promisify)((_c = fs.lstat) !== null && _c !== void 0 ? _c : (() => { })); + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Internal subject token supplier implementation used when a file location - * is configured in the credential configuration used to build an {@link IdentityPoolClient} + * The RotateSecret model module. + * @module model/RotateSecret + * @version 3.6.3 */ -class FileSubjectTokenSupplier { - /** - * Instantiates a new file based subject token supplier. - * @param opts The file subject token supplier options to build the supplier - * with. - */ - constructor(opts) { - this.filePath = opts.filePath; - this.formatType = opts.formatType; - this.subjectTokenFieldName = opts.subjectTokenFieldName; +var RotateSecret = /*#__PURE__*/function () { + /** + * Constructs a new RotateSecret. + * @alias module:model/RotateSecret + * @param name {String} Secret name (Rotated Secret or Custom Dynamic Secret) + */ + function RotateSecret(name) { + _classCallCheck(this, RotateSecret); + + RotateSecret.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotateSecret, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } /** - * Returns the subject token stored at the file specified in the constructor. - * @param context {@link ExternalAccountSupplierContext} from the calling - * {@link IdentityPoolClient}, contains the requested audience and subject - * token type for the external account identity. Not used. + * Constructs a RotateSecret from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotateSecret} obj Optional instance to populate. + * @return {module:model/RotateSecret} The populated RotateSecret instance. */ - async getSubjectToken(context) { - // Make sure there is a file at the path. lstatSync will throw if there is - // nothing there. - let parsedFilePath = this.filePath; - try { - // Resolve path to actual file in case of symlink. Expect a thrown error - // if not resolvable. - parsedFilePath = await realpath(parsedFilePath); - if (!(await lstat(parsedFilePath)).isFile()) { - throw new Error(); - } + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotateSecret(); + + if (data.hasOwnProperty('RotateAllServicesBoolean')) { + obj['RotateAllServicesBoolean'] = _ApiClient["default"].convertToType(data['RotateAllServicesBoolean'], 'Boolean'); } - catch (err) { - if (err instanceof Error) { - err.message = `The file at ${parsedFilePath} does not exist, or it is not a file. ${err.message}`; - } - throw err; + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - let subjectToken; - const rawText = await readFile(parsedFilePath, { encoding: 'utf8' }); - if (this.formatType === 'text') { - subjectToken = rawText; + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - else if (this.formatType === 'json' && this.subjectTokenFieldName) { - const json = JSON.parse(rawText); - subjectToken = json[this.subjectTokenFieldName]; + + if (data.hasOwnProperty('rotate-all-services')) { + obj['rotate-all-services'] = _ApiClient["default"].convertToType(data['rotate-all-services'], 'String'); } - if (!subjectToken) { - throw new Error('Unable to parse the subject_token from the credential_source file'); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - return subjectToken; + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } -} -exports.FileSubjectTokenSupplier = FileSubjectTokenSupplier; + }]); + + return RotateSecret; +}(); +/** + * @member {Boolean} RotateAllServicesBoolean + */ + + +RotateSecret.prototype['RotateAllServicesBoolean'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +RotateSecret.prototype['json'] = false; +/** + * Secret name (Rotated Secret or Custom Dynamic Secret) + * @member {String} name + */ + +RotateSecret.prototype['name'] = undefined; +/** + * Rotate all associated services + * @member {String} rotate-all-services + * @default 'false' + */ + +RotateSecret.prototype['rotate-all-services'] = 'false'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ +RotateSecret.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotateSecret.prototype['uid-token'] = undefined; +var _default = RotateSecret; +exports["default"] = _default; /***/ }), -/***/ 85676: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 6094: +/***/ ((__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. -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 __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var _GoogleAuth_instances, _GoogleAuth_pendingAuthClient, _GoogleAuth_prepareAndCacheClient, _GoogleAuth_determineClient; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GoogleAuth = exports.GoogleAuthExceptionMessages = exports.CLOUD_SDK_CLIENT_ID = void 0; -const child_process_1 = __nccwpck_require__(35317); -const fs = __nccwpck_require__(79896); -const gcpMetadata = __nccwpck_require__(81090); -const os = __nccwpck_require__(70857); -const path = __nccwpck_require__(16928); -const crypto_1 = __nccwpck_require__(85353); -const transporters_1 = __nccwpck_require__(57195); -const computeclient_1 = __nccwpck_require__(42555); -const idtokenclient_1 = __nccwpck_require__(94204); -const envDetect_1 = __nccwpck_require__(38697); -const jwtclient_1 = __nccwpck_require__(47927); -const refreshclient_1 = __nccwpck_require__(93849); -const impersonated_1 = __nccwpck_require__(23778); -const externalclient_1 = __nccwpck_require__(84377); -const baseexternalclient_1 = __nccwpck_require__(27036); -const authclient_1 = __nccwpck_require__(58456); -const externalAccountAuthorizedUserClient_1 = __nccwpck_require__(57310); -const util_1 = __nccwpck_require__(77300); -exports.CLOUD_SDK_CLIENT_ID = '764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com'; -exports.GoogleAuthExceptionMessages = { - API_KEY_WITH_CREDENTIALS: 'API Keys and Credentials are mutually exclusive authentication methods and cannot be used together.', - NO_PROJECT_ID_FOUND: 'Unable to detect a Project Id in the current environment. \n' + - 'To learn more about authentication and Google APIs, visit: \n' + - 'https://cloud.google.com/docs/authentication/getting-started', - NO_CREDENTIALS_FOUND: 'Unable to find credentials in current environment. \n' + - 'To learn more about authentication and Google APIs, visit: \n' + - 'https://cloud.google.com/docs/authentication/getting-started', - NO_ADC_FOUND: 'Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.', - NO_UNIVERSE_DOMAIN_FOUND: 'Unable to detect a Universe Domain in the current environment.\n' + - 'To learn more about Universe Domain retrieval, visit: \n' + - 'https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys', -}; -class GoogleAuth { - // Note: this properly is only public to satisfy unit tests. - // https://github.com/Microsoft/TypeScript/issues/5228 - get isGCE() { - return this.checkIsGCE; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RotatedSecretCreateAws model module. + * @module model/RotatedSecretCreateAws + * @version 3.6.3 + */ +var RotatedSecretCreateAws = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateAws. + * @alias module:model/RotatedSecretCreateAws + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/api-key] + * @param targetName {String} Target name + */ + function RotatedSecretCreateAws(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateAws); + + RotatedSecretCreateAws.initialize(this, name, rotatorType, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotatedSecretCreateAws, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; } /** - * Configuration is resolved in the following order of precedence: - * - {@link GoogleAuthOptions.credentials `credentials`} - * - {@link GoogleAuthOptions.keyFilename `keyFilename`} - * - {@link GoogleAuthOptions.keyFile `keyFile`} - * - * {@link GoogleAuthOptions.clientOptions `clientOptions`} are passed to the - * {@link AuthClient `AuthClient`s}. - * - * @param opts + * Constructs a RotatedSecretCreateAws from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateAws} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateAws} The populated RotatedSecretCreateAws instance. */ - constructor(opts = {}) { - _GoogleAuth_instances.add(this); - /** - * Caches a value indicating whether the auth layer is running on Google - * Compute Engine. - * @private - */ - this.checkIsGCE = undefined; - // To save the contents of the JSON credential file - this.jsonContent = null; - this.cachedCredential = null; - /** - * A pending {@link AuthClient}. Used for concurrent {@link GoogleAuth.getClient} calls. - */ - _GoogleAuth_pendingAuthClient.set(this, null); - this.clientOptions = {}; - this._cachedProjectId = opts.projectId || null; - this.cachedCredential = opts.authClient || null; - this.keyFilename = opts.keyFilename || opts.keyFile; - this.scopes = opts.scopes; - this.clientOptions = opts.clientOptions || {}; - this.jsonContent = opts.credentials || null; - this.apiKey = opts.apiKey || this.clientOptions.apiKey || null; - // Cannot use both API Key + Credentials - if (this.apiKey && (this.jsonContent || this.clientOptions.credentials)) { - throw new RangeError(exports.GoogleAuthExceptionMessages.API_KEY_WITH_CREDENTIALS); - } - if (opts.universeDomain) { - this.clientOptions.universeDomain = opts.universeDomain; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateAws(); + + if (data.hasOwnProperty('api-id')) { + obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); } - } - // GAPIC client libraries should always use self-signed JWTs. The following - // variables are set on the JWT client in order to indicate the type of library, - // and sign the JWT with the correct audience and scopes (if not supplied). - setGapicJWTValues(client) { - client.defaultServicePath = this.defaultServicePath; - client.useJWTAccessWithScope = this.useJWTAccessWithScope; - client.defaultScopes = this.defaultScopes; - } - getProjectId(callback) { - if (callback) { - this.getProjectIdAsync().then(r => callback(null, r), callback); + + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); } - else { - return this.getProjectIdAsync(); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - } - /** - * A temporary method for internal `getProjectId` usages where `null` is - * acceptable. In a future major release, `getProjectId` should return `null` - * (as the `Promise` base signature describes) and this private - * method should be removed. - * - * @returns Promise that resolves with project id (or `null`) - */ - async getProjectIdOptional() { - try { - return await this.getProjectId(); + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - catch (e) { - if (e instanceof Error && - e.message === exports.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND) { - return null; - } - else { - throw e; - } + + if (data.hasOwnProperty('aws-region')) { + obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); } - } - /** - * A private method for finding and caching a projectId. - * - * Supports environments in order of precedence: - * - GCLOUD_PROJECT or GOOGLE_CLOUD_PROJECT environment variable - * - GOOGLE_APPLICATION_CREDENTIALS JSON file - * - Cloud SDK: `gcloud config config-helper --format json` - * - GCE project ID from metadata server - * - * @returns projectId - */ - async findAndCacheProjectId() { - let projectId = null; - projectId || (projectId = await this.getProductionProjectId()); - projectId || (projectId = await this.getFileProjectId()); - projectId || (projectId = await this.getDefaultServiceProjectId()); - projectId || (projectId = await this.getGCEProjectId()); - projectId || (projectId = await this.getExternalAccountClientProjectId()); - if (projectId) { - this._cachedProjectId = projectId; - return projectId; + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - else { - throw new Error(exports.GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - } - async getProjectIdAsync() { - if (this._cachedProjectId) { - return this._cachedProjectId; + + if (data.hasOwnProperty('grace-rotation')) { + obj['grace-rotation'] = _ApiClient["default"].convertToType(data['grace-rotation'], 'String'); } - if (!this._findProjectIdPromise) { - this._findProjectIdPromise = this.findAndCacheProjectId(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - return this._findProjectIdPromise; - } - /** - * Retrieves a universe domain from the metadata server via - * {@link gcpMetadata.universe}. - * - * @returns a universe domain - */ - async getUniverseDomainFromMetadataServer() { - var _a; - let universeDomain; - try { - universeDomain = await gcpMetadata.universe('universe-domain'); - universeDomain || (universeDomain = authclient_1.DEFAULT_UNIVERSE); + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - catch (e) { - if (e && ((_a = e === null || e === void 0 ? void 0 : e.response) === null || _a === void 0 ? void 0 : _a.status) === 404) { - universeDomain = authclient_1.DEFAULT_UNIVERSE; - } - else { - throw e; - } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - return universeDomain; - } - /** - * Retrieves, caches, and returns the universe domain in the following order - * of precedence: - * - The universe domain in {@link GoogleAuth.clientOptions} - * - An existing or ADC {@link AuthClient}'s universe domain - * - {@link gcpMetadata.universe}, if {@link Compute} client - * - * @returns The universe domain - */ - async getUniverseDomain() { - let universeDomain = (0, util_1.originalOrCamelOptions)(this.clientOptions).get('universe_domain'); - try { - universeDomain !== null && universeDomain !== void 0 ? universeDomain : (universeDomain = (await this.getClient()).universeDomain); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - catch (_a) { - // client or ADC is not available - universeDomain !== null && universeDomain !== void 0 ? universeDomain : (universeDomain = authclient_1.DEFAULT_UNIVERSE); + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - return universeDomain; - } - /** - * @returns Any scopes (user-specified or default scopes specified by the - * client library) that need to be set on the current Auth client. - */ - getAnyScopes() { - return this.scopes || this.defaultScopes; - } - getApplicationDefault(optionsOrCallback = {}, callback) { - let options; - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); } - else { - options = optionsOrCallback; + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - if (callback) { - this.getApplicationDefaultAsync(options).then(r => callback(null, r.credential, r.projectId), callback); + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - else { - return this.getApplicationDefaultAsync(options); + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); } - } - async getApplicationDefaultAsync(options = {}) { - // If we've already got a cached credential, return it. - // This will also preserve one's configured quota project, in case they - // set one directly on the credential previously. - if (this.cachedCredential) { - // cache, while preserving existing quota project preferences - return await __classPrivateFieldGet(this, _GoogleAuth_instances, "m", _GoogleAuth_prepareAndCacheClient).call(this, this.cachedCredential, null); + + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); } - let credential; - // Check for the existence of a local environment variable pointing to the - // location of the credential file. This is typically used in local - // developer scenarios. - credential = - await this._tryGetApplicationCredentialsFromEnvironmentVariable(options); - if (credential) { - if (credential instanceof jwtclient_1.JWT) { - credential.scopes = this.scopes; - } - else if (credential instanceof baseexternalclient_1.BaseExternalAccountClient) { - credential.scopes = this.getAnyScopes(); - } - return await __classPrivateFieldGet(this, _GoogleAuth_instances, "m", _GoogleAuth_prepareAndCacheClient).call(this, credential); + + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); } - // Look in the well-known credential file location. - credential = - await this._tryGetApplicationCredentialsFromWellKnownFile(options); - if (credential) { - if (credential instanceof jwtclient_1.JWT) { - credential.scopes = this.scopes; - } - else if (credential instanceof baseexternalclient_1.BaseExternalAccountClient) { - credential.scopes = this.getAnyScopes(); - } - return await __classPrivateFieldGet(this, _GoogleAuth_instances, "m", _GoogleAuth_prepareAndCacheClient).call(this, credential); + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - // Determine if we're running on GCE. - if (await this._checkIsGCE()) { - options.scopes = this.getAnyScopes(); - return await __classPrivateFieldGet(this, _GoogleAuth_instances, "m", _GoogleAuth_prepareAndCacheClient).call(this, new computeclient_1.Compute(options)); + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - throw new Error(exports.GoogleAuthExceptionMessages.NO_ADC_FOUND); - } - /** - * Determines whether the auth layer is running on Google Compute Engine. - * Checks for GCP Residency, then fallback to checking if metadata server - * is available. - * - * @returns A promise that resolves with the boolean. - * @api private - */ - async _checkIsGCE() { - if (this.checkIsGCE === undefined) { - this.checkIsGCE = - gcpMetadata.getGCPResidency() || (await gcpMetadata.isAvailable()); + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - return this.checkIsGCE; - } - /** - * Attempts to load default credentials from the environment variable path.. - * @returns Promise that resolves with the OAuth2Client or null. - * @api private - */ - async _tryGetApplicationCredentialsFromEnvironmentVariable(options) { - const credentialsPath = process.env['GOOGLE_APPLICATION_CREDENTIALS'] || - process.env['google_application_credentials']; - if (!credentialsPath || credentialsPath.length === 0) { - return null; + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - try { - return this._getApplicationCredentialsFromFilePath(credentialsPath, options); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - catch (e) { - if (e instanceof Error) { - e.message = `Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${e.message}`; - } - throw e; + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + } + + return obj; + } + }]); + + return RotatedSecretCreateAws; +}(); +/** + * API ID to rotate (relevant only for rotator-type=api-key) + * @member {String} api-id + */ + + +RotatedSecretCreateAws.prototype['api-id'] = undefined; +/** + * API key to rotate (relevant only for rotator-type=api-key) + * @member {String} api-key + */ + +RotatedSecretCreateAws.prototype['api-key'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + +RotatedSecretCreateAws.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretCreateAws.prototype['auto-rotate'] = undefined; +/** + * Aws Region + * @member {String} aws-region + * @default 'us-east-2' + */ + +RotatedSecretCreateAws.prototype['aws-region'] = 'us-east-2'; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateAws.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateAws.prototype['description'] = undefined; +/** + * Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false] + * @member {String} grace-rotation + */ + +RotatedSecretCreateAws.prototype['grace-rotation'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +RotatedSecretCreateAws.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateAws.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateAws.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateAws.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateAws.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +RotatedSecretCreateAws.prototype['rotate-after-disconnect'] = 'false'; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateAws.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateAws.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/api-key] + * @member {String} rotator-type + */ + +RotatedSecretCreateAws.prototype['rotator-type'] = undefined; +/** + * The AWS account id + * @member {String} secure-access-aws-account-id + */ + +RotatedSecretCreateAws.prototype['secure-access-aws-account-id'] = undefined; +/** + * The AWS native cli + * @member {Boolean} secure-access-aws-native-cli + */ + +RotatedSecretCreateAws.prototype['secure-access-aws-native-cli'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +RotatedSecretCreateAws.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +RotatedSecretCreateAws.prototype['secure-access-enable'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateAws.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateAws.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretCreateAws.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotatedSecretCreateAws.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateAws; +exports["default"] = _default; + +/***/ }), + +/***/ 53980: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RotatedSecretCreateAzure model module. + * @module model/RotatedSecretCreateAzure + * @version 3.6.3 + */ +var RotatedSecretCreateAzure = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateAzure. + * @alias module:model/RotatedSecretCreateAzure + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password/api-key/azure-storage-account] + * @param targetName {String} Target name + */ + function RotatedSecretCreateAzure(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateAzure); + + RotatedSecretCreateAzure.initialize(this, name, rotatorType, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotatedSecretCreateAzure, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; } /** - * Attempts to load default credentials from a well-known file location - * @return Promise that resolves with the OAuth2Client or null. - * @api private + * Constructs a RotatedSecretCreateAzure from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateAzure} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateAzure} The populated RotatedSecretCreateAzure instance. */ - async _tryGetApplicationCredentialsFromWellKnownFile(options) { - // First, figure out the location of the file, depending upon the OS type. - let location = null; - if (this._isWindows()) { - // Windows - location = process.env['APPDATA']; - } - else { - // Linux or Mac - const home = process.env['HOME']; - if (home) { - location = path.join(home, '.config'); - } + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateAzure(); + + if (data.hasOwnProperty('api-id')) { + obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); } - // If we found the root path, expand it. - if (location) { - location = path.join(location, 'gcloud', 'application_default_credentials.json'); - if (!fs.existsSync(location)) { - location = null; - } + + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); } - // The file does not exist. - if (!location) { - return null; + + if (data.hasOwnProperty('application-id')) { + obj['application-id'] = _ApiClient["default"].convertToType(data['application-id'], 'String'); } - // The file seems to exist. Try to use it. - const client = await this._getApplicationCredentialsFromFilePath(location, options); - return client; - } - /** - * Attempts to load default credentials from a file at the given path.. - * @param filePath The path to the file to read. - * @returns Promise that resolves with the OAuth2Client - * @api private - */ - async _getApplicationCredentialsFromFilePath(filePath, options = {}) { - // Make sure the path looks like a string. - if (!filePath || filePath.length === 0) { - throw new Error('The file path is invalid.'); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - // Make sure there is a file at the path. lstatSync will throw if there is - // nothing there. - try { - // Resolve path to actual file in case of symlink. Expect a thrown error - // if not resolvable. - filePath = fs.realpathSync(filePath); - if (!fs.lstatSync(filePath).isFile()) { - throw new Error(); - } + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - catch (err) { - if (err instanceof Error) { - err.message = `The file at ${filePath} does not exist, or it is not a file. ${err.message}`; - } - throw err; + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - // Now open a read stream on the file, and parse it. - const readStream = fs.createReadStream(filePath); - return this.fromStream(readStream, options); - } - /** - * Create a credentials instance using a given impersonated input options. - * @param json The impersonated input object. - * @returns JWT or UserRefresh Client with data - */ - fromImpersonatedJSON(json) { - var _a, _b, _c, _d; - if (!json) { - throw new Error('Must pass in a JSON object containing an impersonated refresh token'); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (json.type !== impersonated_1.IMPERSONATED_ACCOUNT_TYPE) { - throw new Error(`The incoming JSON object does not have the "${impersonated_1.IMPERSONATED_ACCOUNT_TYPE}" type`); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (!json.source_credentials) { - throw new Error('The incoming JSON object does not contain a source_credentials field'); + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (!json.service_account_impersonation_url) { - throw new Error('The incoming JSON object does not contain a service_account_impersonation_url field'); + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - const sourceClient = this.fromJSON(json.source_credentials); - if (((_a = json.service_account_impersonation_url) === null || _a === void 0 ? void 0 : _a.length) > 256) { - /** - * Prevents DOS attacks. - * @see {@link https://github.com/googleapis/google-auth-library-nodejs/security/code-scanning/85} - **/ - throw new RangeError(`Target principal is too long: ${json.service_account_impersonation_url}`); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - // Extract service account from service_account_impersonation_url - const targetPrincipal = (_c = (_b = /(?[^/]+):(generateAccessToken|generateIdToken)$/.exec(json.service_account_impersonation_url)) === null || _b === void 0 ? void 0 : _b.groups) === null || _c === void 0 ? void 0 : _c.target; - if (!targetPrincipal) { - throw new RangeError(`Cannot extract target principal from ${json.service_account_impersonation_url}`); + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - const targetScopes = (_d = this.getAnyScopes()) !== null && _d !== void 0 ? _d : []; - return new impersonated_1.Impersonated({ - ...json, - sourceClient, - targetPrincipal, - targetScopes: Array.isArray(targetScopes) ? targetScopes : [targetScopes], - }); - } - /** - * Create a credentials instance using the given input options. - * This client is not cached. - * - * **Important**: If you accept a credential configuration (credential JSON/File/Stream) from an external source for authentication to Google Cloud, you must validate it before providing it to any Google API or library. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. For more information, refer to {@link https://cloud.google.com/docs/authentication/external/externally-sourced-credentials Validate credential configurations from external sources}. - * - * @param json The input object. - * @param options The JWT or UserRefresh options for the client - * @returns JWT or UserRefresh Client with data - */ - fromJSON(json, options = {}) { - let client; - // user's preferred universe domain - const preferredUniverseDomain = (0, util_1.originalOrCamelOptions)(options).get('universe_domain'); - if (json.type === refreshclient_1.USER_REFRESH_ACCOUNT_TYPE) { - client = new refreshclient_1.UserRefreshClient(options); - client.fromJSON(json); + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); } - else if (json.type === impersonated_1.IMPERSONATED_ACCOUNT_TYPE) { - client = this.fromImpersonatedJSON(json); + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - else if (json.type === baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { - client = externalclient_1.ExternalAccountClient.fromJSON(json, options); - client.scopes = this.getAnyScopes(); + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - else if (json.type === externalAccountAuthorizedUserClient_1.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE) { - client = new externalAccountAuthorizedUserClient_1.ExternalAccountAuthorizedUserClient(json, options); + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); } - else { - options.scopes = this.scopes; - client = new jwtclient_1.JWT(options); - this.setGapicJWTValues(client); - client.fromJSON(json); + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - if (preferredUniverseDomain) { - client.universeDomain = preferredUniverseDomain; + + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); } - return client; - } - /** - * Return a JWT or UserRefreshClient from JavaScript object, caching both the - * object used to instantiate and the client. - * @param json The input object. - * @param options The JWT or UserRefresh options for the client - * @returns JWT or UserRefresh Client with data - */ - _cacheClientFromJSON(json, options) { - const client = this.fromJSON(json, options); - // cache both raw data used to instantiate client and client itself. - this.jsonContent = json; - this.cachedCredential = client; - return client; - } - fromStream(inputStream, optionsOrCallback = {}, callback) { - let options = {}; - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - else { - options = optionsOrCallback; + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); } - if (callback) { - this.fromStreamAsync(inputStream, options).then(r => callback(null, r), callback); + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); } - else { - return this.fromStreamAsync(inputStream, options); + + if (data.hasOwnProperty('storage-account-key-name')) { + obj['storage-account-key-name'] = _ApiClient["default"].convertToType(data['storage-account-key-name'], 'String'); } - } - fromStreamAsync(inputStream, options) { - return new Promise((resolve, reject) => { - if (!inputStream) { - throw new Error('Must pass in a stream containing the Google auth settings.'); - } - const chunks = []; - inputStream - .setEncoding('utf8') - .on('error', reject) - .on('data', chunk => chunks.push(chunk)) - .on('end', () => { - try { - try { - const data = JSON.parse(chunks.join('')); - const r = this._cacheClientFromJSON(data, options); - return resolve(r); - } - catch (err) { - // If we failed parsing this.keyFileName, assume that it - // is a PEM or p12 certificate: - if (!this.keyFilename) - throw err; - const client = new jwtclient_1.JWT({ - ...this.clientOptions, - keyFile: this.keyFilename, - }); - this.cachedCredential = client; - this.setGapicJWTValues(client); - return resolve(client); - } - } - catch (err) { - return reject(err); - } - }); - }); - } - /** - * Create a credentials instance using the given API key string. - * The created client is not cached. In order to create and cache it use the {@link GoogleAuth.getClient `getClient`} method after first providing an {@link GoogleAuth.apiKey `apiKey`}. - * - * @param apiKey The API key string - * @param options An optional options object. - * @returns A JWT loaded from the key - */ - fromAPIKey(apiKey, options = {}) { - return new jwtclient_1.JWT({ ...options, apiKey }); - } - /** - * Determines whether the current operating system is Windows. - * @api private - */ - _isWindows() { - const sys = os.platform(); - if (sys && sys.length >= 3) { - if (sys.substring(0, 3).toLowerCase() === 'win') { - return true; - } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - return false; - } - /** - * Run the Google Cloud SDK command that prints the default project ID - */ - async getDefaultServiceProjectId() { - return new Promise(resolve => { - (0, child_process_1.exec)('gcloud config config-helper --format json', (err, stdout) => { - if (!err && stdout) { - try { - const projectId = JSON.parse(stdout).configuration.properties.core.project; - resolve(projectId); - return; - } - catch (e) { - // ignore errors - } - } - resolve(null); - }); - }); - } - /** - * Loads the project id from environment variables. - * @api private - */ - getProductionProjectId() { - return (process.env['GCLOUD_PROJECT'] || - process.env['GOOGLE_CLOUD_PROJECT'] || - process.env['gcloud_project'] || - process.env['google_cloud_project']); - } - /** - * Loads the project id from the GOOGLE_APPLICATION_CREDENTIALS json file. - * @api private - */ - async getFileProjectId() { - if (this.cachedCredential) { - // Try to read the project ID from the cached credentials file - return this.cachedCredential.projectId; + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - // Ensure the projectId is loaded from the keyFile if available. - if (this.keyFilename) { - const creds = await this.getClient(); - if (creds && creds.projectId) { - return creds.projectId; - } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - // Try to load a credentials file and read its project ID - const r = await this._tryGetApplicationCredentialsFromEnvironmentVariable(); - if (r) { - return r.projectId; + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - else { - return null; + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); } + } + + return obj; } - /** - * Gets the project ID from external account client if available. - */ - async getExternalAccountClientProjectId() { - if (!this.jsonContent || this.jsonContent.type !== baseexternalclient_1.EXTERNAL_ACCOUNT_TYPE) { - return null; - } - const creds = await this.getClient(); - // Do not suppress the underlying error, as the error could contain helpful - // information for debugging and fixing. This is especially true for - // external account creds as in order to get the project ID, the following - // operations have to succeed: - // 1. Valid credentials file should be supplied. - // 2. Ability to retrieve access tokens from STS token exchange API. - // 3. Ability to exchange for service account impersonated credentials (if - // enabled). - // 4. Ability to get project info using the access token from step 2 or 3. - // Without surfacing the error, it is harder for developers to determine - // which step went wrong. - return await creds.getProjectId(); + }]); + + return RotatedSecretCreateAzure; +}(); +/** + * API ID to rotate (relevant only for rotator-type=api-key) + * @member {String} api-id + */ + + +RotatedSecretCreateAzure.prototype['api-id'] = undefined; +/** + * API key to rotate (relevant only for rotator-type=api-key) + * @member {String} api-key + */ + +RotatedSecretCreateAzure.prototype['api-key'] = undefined; +/** + * Id of the azure app that hold the serect to be rotated (relevant only for rotator-type=api-key & authentication-credentials=use-target-creds) + * @member {String} application-id + */ + +RotatedSecretCreateAzure.prototype['application-id'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + +RotatedSecretCreateAzure.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretCreateAzure.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateAzure.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateAzure.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +RotatedSecretCreateAzure.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateAzure.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateAzure.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateAzure.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateAzure.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +RotatedSecretCreateAzure.prototype['rotate-after-disconnect'] = 'false'; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateAzure.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateAzure.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password/api-key/azure-storage-account] + * @member {String} rotator-type + */ + +RotatedSecretCreateAzure.prototype['rotator-type'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +RotatedSecretCreateAzure.prototype['secure-access-enable'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ + +RotatedSecretCreateAzure.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +RotatedSecretCreateAzure.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +RotatedSecretCreateAzure.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +RotatedSecretCreateAzure.prototype['secure-access-web-proxy'] = false; +/** + * The name of the storage account key to rotate [key1/key2/kerb1/kerb2] (relevat to azure-storage-account) + * @member {String} storage-account-key-name + */ + +RotatedSecretCreateAzure.prototype['storage-account-key-name'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateAzure.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateAzure.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretCreateAzure.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotatedSecretCreateAzure.prototype['uid-token'] = undefined; +/** + * The user principal name to rotate his password (relevant only for rotator-type=password) + * @member {String} username + */ + +RotatedSecretCreateAzure.prototype['username'] = undefined; +var _default = RotatedSecretCreateAzure; +exports["default"] = _default; + +/***/ }), + +/***/ 6301: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RotatedSecretCreateCassandra model module. + * @module model/RotatedSecretCreateCassandra + * @version 3.6.3 + */ +var RotatedSecretCreateCassandra = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateCassandra. + * @alias module:model/RotatedSecretCreateCassandra + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name + */ + function RotatedSecretCreateCassandra(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateCassandra); + + RotatedSecretCreateCassandra.initialize(this, name, rotatorType, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotatedSecretCreateCassandra, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; } /** - * Gets the Compute Engine project ID if it can be inferred. + * Constructs a RotatedSecretCreateCassandra from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateCassandra} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateCassandra} The populated RotatedSecretCreateCassandra instance. */ - async getGCEProjectId() { - try { - const r = await gcpMetadata.project('project-id'); - return r; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateCassandra(); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - catch (e) { - // Ignore any errors - return null; + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - } - getCredentials(callback) { - if (callback) { - this.getCredentialsAsync().then(r => callback(null, r), callback); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - else { - return this.getCredentialsAsync(); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - } - async getCredentialsAsync() { - const client = await this.getClient(); - if (client instanceof impersonated_1.Impersonated) { - return { client_email: client.getTargetPrincipal() }; + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (client instanceof baseexternalclient_1.BaseExternalAccountClient) { - const serviceAccountEmail = client.getServiceAccountEmail(); - if (serviceAccountEmail) { - return { - client_email: serviceAccountEmail, - universe_domain: client.universeDomain, - }; - } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (this.jsonContent) { - return { - client_email: this.jsonContent.client_email, - private_key: this.jsonContent.private_key, - universe_domain: this.jsonContent.universe_domain, - }; + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - if (await this._checkIsGCE()) { - const [client_email, universe_domain] = await Promise.all([ - gcpMetadata.instance('service-accounts/default/email'), - this.getUniverseDomain(), - ]); - return { client_email, universe_domain }; + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - throw new Error(exports.GoogleAuthExceptionMessages.NO_CREDENTIALS_FOUND); - } - /** - * Automatically obtain an {@link AuthClient `AuthClient`} based on the - * provided configuration. If no options were passed, use Application - * Default Credentials. - */ - async getClient() { - if (this.cachedCredential) { - return this.cachedCredential; + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - // Use an existing auth client request, or cache a new one - __classPrivateFieldSet(this, _GoogleAuth_pendingAuthClient, __classPrivateFieldGet(this, _GoogleAuth_pendingAuthClient, "f") || __classPrivateFieldGet(this, _GoogleAuth_instances, "m", _GoogleAuth_determineClient).call(this), "f"); - try { - return await __classPrivateFieldGet(this, _GoogleAuth_pendingAuthClient, "f"); + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); } - finally { - // reset the pending auth client in case it is changed later - __classPrivateFieldSet(this, _GoogleAuth_pendingAuthClient, null, "f"); + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); } - } - /** - * Creates a client which will fetch an ID token for authorization. - * @param targetAudience the audience for the fetched ID token. - * @returns IdTokenClient for making HTTP calls authenticated with ID tokens. - */ - async getIdTokenClient(targetAudience) { - const client = await this.getClient(); - if (!('fetchIdToken' in client)) { - throw new Error('Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.'); + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - return new idtokenclient_1.IdTokenClient({ targetAudience, idTokenProvider: client }); - } - /** - * Automatically obtain application default credentials, and return - * an access token for making requests. - */ - async getAccessToken() { - const client = await this.getClient(); - return (await client.getAccessToken()).token; - } - /** - * Obtain the HTTP headers that will provide authorization for a given - * request. - */ - async getRequestHeaders(url) { - const client = await this.getClient(); - return client.getRequestHeaders(url); - } - /** - * Obtain credentials for a request, then attach the appropriate headers to - * the request options. - * @param opts Axios or Request options on which to attach the headers - */ - async authorizeRequest(opts) { - opts = opts || {}; - const url = opts.url || opts.uri; - const client = await this.getClient(); - const headers = await client.getRequestHeaders(url); - opts.headers = Object.assign(opts.headers || {}, headers); - return opts; - } - /** - * Automatically obtain application default credentials, and make an - * HTTP request using the given options. - * @param opts Axios request options for the HTTP request. - */ - // eslint-disable-next-line @typescript-eslint/no-explicit-any - async request(opts) { - const client = await this.getClient(); - return client.request(opts); - } - /** - * Determine the compute environment in which the code is running. - */ - getEnv() { - return (0, envDetect_1.getEnv)(); - } - /** - * Sign the given data with the current private key, or go out - * to the IAM API to sign it. - * @param data The data to be signed. - * @param endpoint A custom endpoint to use. - * - * @example - * ``` - * sign('data', 'https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/'); - * ``` - */ - async sign(data, endpoint) { - const client = await this.getClient(); - const universe = await this.getUniverseDomain(); - endpoint = - endpoint || - `https://iamcredentials.${universe}/v1/projects/-/serviceAccounts/`; - if (client instanceof impersonated_1.Impersonated) { - const signed = await client.sign(data); - return signed.signedBlob; + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - const crypto = (0, crypto_1.createCrypto)(); - if (client instanceof jwtclient_1.JWT && client.key) { - const sign = await crypto.sign(client.key, data); - return sign; + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); } - const creds = await this.getCredentials(); - if (!creds.client_email) { - throw new Error('Cannot sign data without `client_email`.'); + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - return this.signBlob(crypto, creds.client_email, data, endpoint); - } - async signBlob(crypto, emailOrUniqueId, data, endpoint) { - const url = new URL(endpoint + `${emailOrUniqueId}:signBlob`); - const res = await this.request({ - method: 'POST', - url: url.href, - data: { - payload: crypto.encodeBase64StringUtf8(data), - }, - retry: true, - retryConfig: { - httpMethodsToRetry: ['POST'], - }, - }); - return res.data.signedBlob; - } -} -exports.GoogleAuth = GoogleAuth; -_GoogleAuth_pendingAuthClient = new WeakMap(), _GoogleAuth_instances = new WeakSet(), _GoogleAuth_prepareAndCacheClient = async function _GoogleAuth_prepareAndCacheClient(credential, quotaProjectIdOverride = process.env['GOOGLE_CLOUD_QUOTA_PROJECT'] || null) { - const projectId = await this.getProjectIdOptional(); - if (quotaProjectIdOverride) { - credential.quotaProjectId = quotaProjectIdOverride; - } - this.cachedCredential = credential; - return { credential, projectId }; -}, _GoogleAuth_determineClient = async function _GoogleAuth_determineClient() { - if (this.jsonContent) { - return this._cacheClientFromJSON(this.jsonContent, this.clientOptions); - } - else if (this.keyFilename) { - const filePath = path.resolve(this.keyFilename); - const stream = fs.createReadStream(filePath); - return await this.fromStreamAsync(stream, this.clientOptions); - } - else if (this.apiKey) { - const client = await this.fromAPIKey(this.apiKey, this.clientOptions); - client.scopes = this.scopes; - const { credential } = await __classPrivateFieldGet(this, _GoogleAuth_instances, "m", _GoogleAuth_prepareAndCacheClient).call(this, client); - return credential; - } - else { - const { credential } = await this.getApplicationDefaultAsync(this.clientOptions); - return credential; + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } -}; + }]); + + return RotatedSecretCreateCassandra; +}(); /** - * Export DefaultTransporter as a static property of the class. + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -GoogleAuth.DefaultTransporter = transporters_1.DefaultTransporter; -/***/ }), +RotatedSecretCreateCassandra.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ -/***/ 33480: -/***/ ((__unused_webpack_module, exports) => { +RotatedSecretCreateCassandra.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -"use strict"; +RotatedSecretCreateCassandra.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -// Copyright 2014 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.IAMAuth = void 0; -class IAMAuth { - /** - * IAM credentials. - * - * @param selector the iam authority selector - * @param token the token - * @constructor - */ - constructor(selector, token) { - this.selector = selector; - this.token = token; - this.selector = selector; - this.token = token; - } - /** - * Acquire the HTTP headers required to make an authenticated request. - */ - getRequestHeaders() { - return { - 'x-goog-iam-authority-selector': this.selector, - 'x-goog-iam-authorization-token': this.token, - }; - } -} -exports.IAMAuth = IAMAuth; +RotatedSecretCreateCassandra.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ +RotatedSecretCreateCassandra.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -/***/ }), +RotatedSecretCreateCassandra.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -/***/ 14602: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +RotatedSecretCreateCassandra.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -"use strict"; +RotatedSecretCreateCassandra.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -// 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.IdentityPoolClient = void 0; -const baseexternalclient_1 = __nccwpck_require__(27036); -const util_1 = __nccwpck_require__(77300); -const filesubjecttokensupplier_1 = __nccwpck_require__(68362); -const urlsubjecttokensupplier_1 = __nccwpck_require__(63957); +RotatedSecretCreateCassandra.prototype['password-length'] = undefined; /** - * Defines the Url-sourced and file-sourced external account clients mainly - * used for K8s and Azure workloads. + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +RotatedSecretCreateCassandra.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ + +RotatedSecretCreateCassandra.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateCassandra.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateCassandra.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ + +RotatedSecretCreateCassandra.prototype['rotator-type'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateCassandra.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateCassandra.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretCreateCassandra.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -class IdentityPoolClient extends baseexternalclient_1.BaseExternalAccountClient { - /** - * Instantiate an IdentityPoolClient instance using the provided JSON - * object loaded from an external account credentials file. - * An error is thrown if the credential is not a valid file-sourced or - * url-sourced credential or a workforce pool user project is provided - * with a non workforce audience. - * @param options The external account options object typically loaded - * from the external account JSON credential file. The camelCased options - * are aliases for the snake_cased options. - * @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); - const opts = (0, util_1.originalOrCamelOptions)(options); - const credentialSource = opts.get('credential_source'); - const subjectTokenSupplier = opts.get('subject_token_supplier'); - // Validate credential sourcing configuration. - if (!credentialSource && !subjectTokenSupplier) { - throw new Error('A credential source or subject token supplier must be specified.'); - } - if (credentialSource && subjectTokenSupplier) { - throw new Error('Only one of credential source or subject token supplier can be specified.'); - } - if (subjectTokenSupplier) { - this.subjectTokenSupplier = subjectTokenSupplier; - this.credentialSourceType = 'programmatic'; - } - else { - const credentialSourceOpts = (0, util_1.originalOrCamelOptions)(credentialSource); - const formatOpts = (0, util_1.originalOrCamelOptions)(credentialSourceOpts.get('format')); - // Text is the default format type. - const formatType = formatOpts.get('type') || 'text'; - const formatSubjectTokenFieldName = formatOpts.get('subject_token_field_name'); - if (formatType !== 'json' && formatType !== 'text') { - throw new Error(`Invalid credential_source format "${formatType}"`); - } - if (formatType === 'json' && !formatSubjectTokenFieldName) { - throw new Error('Missing subject_token_field_name for JSON credential_source format'); - } - const file = credentialSourceOpts.get('file'); - const url = credentialSourceOpts.get('url'); - const headers = credentialSourceOpts.get('headers'); - if (file && url) { - throw new Error('No valid Identity Pool "credential_source" provided, must be either file or url.'); - } - else if (file && !url) { - this.credentialSourceType = 'file'; - this.subjectTokenSupplier = new filesubjecttokensupplier_1.FileSubjectTokenSupplier({ - filePath: file, - formatType: formatType, - subjectTokenFieldName: formatSubjectTokenFieldName, - }); - } - else if (!file && url) { - this.credentialSourceType = 'url'; - this.subjectTokenSupplier = new urlsubjecttokensupplier_1.UrlSubjectTokenSupplier({ - url: url, - formatType: formatType, - subjectTokenFieldName: formatSubjectTokenFieldName, - headers: headers, - additionalGaxiosOptions: IdentityPoolClient.RETRY_CONFIG, - }); - } - else { - throw new Error('No valid Identity Pool "credential_source" provided, must be either file or url.'); - } - } - } - /** - * Triggered when a external subject token is needed to be exchanged for a GCP - * access token via GCP STS endpoint. Gets a subject token by calling - * the configured {@link SubjectTokenSupplier} - * @return A promise that resolves with the external subject token. - */ - async retrieveSubjectToken() { - return this.subjectTokenSupplier.getSubjectToken(this.supplierContext); - } -} -exports.IdentityPoolClient = IdentityPoolClient; +RotatedSecretCreateCassandra.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateCassandra; +exports["default"] = _default; /***/ }), -/***/ 94204: +/***/ 37488: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.IdTokenClient = void 0; -const oauth2client_1 = __nccwpck_require__(89577); -class IdTokenClient extends oauth2client_1.OAuth2Client { - /** - * Google ID Token client - * - * Retrieve ID token from the metadata server. - * See: https://cloud.google.com/docs/authentication/get-id-token#metadata-server - */ - constructor(options) { - super(options); - this.targetAudience = options.targetAudience; - this.idTokenProvider = options.idTokenProvider; - } - async getRequestMetadataAsync( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - url) { - if (!this.credentials.id_token || - !this.credentials.expiry_date || - this.isTokenExpiring()) { - const idToken = await this.idTokenProvider.fetchIdToken(this.targetAudience); - this.credentials = { - id_token: idToken, - expiry_date: this.getIdTokenExpiryDate(idToken), - }; - } - const headers = { - Authorization: 'Bearer ' + this.credentials.id_token, - }; - return { headers }; - } - getIdTokenExpiryDate(idToken) { - const payloadB64 = idToken.split('.')[1]; - if (payloadB64) { - const payload = JSON.parse(Buffer.from(payloadB64, 'base64').toString('ascii')); - return payload.exp * 1000; - } - } -} -exports.IdTokenClient = IdTokenClient; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/***/ }), +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ 23778: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -"use strict"; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * 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. + * The RotatedSecretCreateCustom model module. + * @module model/RotatedSecretCreateCustom + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Impersonated = exports.IMPERSONATED_ACCOUNT_TYPE = void 0; -const oauth2client_1 = __nccwpck_require__(89577); -const gaxios_1 = __nccwpck_require__(67773); -const util_1 = __nccwpck_require__(77300); -exports.IMPERSONATED_ACCOUNT_TYPE = 'impersonated_service_account'; -class Impersonated extends oauth2client_1.OAuth2Client { +var RotatedSecretCreateCustom = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateCustom. + * @alias module:model/RotatedSecretCreateCustom + * @param name {String} Rotated secret name + * @param targetName {String} Target name + */ + function RotatedSecretCreateCustom(name, targetName) { + _classCallCheck(this, RotatedSecretCreateCustom); + + RotatedSecretCreateCustom.initialize(this, name, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotatedSecretCreateCustom, null, [{ + key: "initialize", + value: function initialize(obj, name, targetName) { + obj['name'] = name; + obj['target-name'] = targetName; + } /** - * Impersonated service account credentials. - * - * Create a new access token by impersonating another service account. - * - * Impersonated Credentials allowing credentials issued to a user or - * service account to impersonate another. The source project using - * Impersonated Credentials must enable the "IAMCredentials" API. - * Also, the target service account must grant the orginating principal - * the "Service Account Token Creator" IAM role. - * - * @param {object} options - The configuration object. - * @param {object} [options.sourceClient] the source credential used as to - * acquire the impersonated credentials. - * @param {string} [options.targetPrincipal] the service account to - * impersonate. - * @param {string[]} [options.delegates] the chained list of delegates - * required to grant the final access_token. If set, the sequence of - * identities must have "Service Account Token Creator" capability granted to - * the preceding identity. For example, if set to [serviceAccountB, - * serviceAccountC], the sourceCredential must have the Token Creator role on - * serviceAccountB. serviceAccountB must have the Token Creator on - * serviceAccountC. Finally, C must have Token Creator on target_principal. - * If left unset, sourceCredential must have that role on targetPrincipal. - * @param {string[]} [options.targetScopes] scopes to request during the - * authorization grant. - * @param {number} [options.lifetime] number of seconds the delegated - * credential should be valid for up to 3600 seconds by default, or 43,200 - * seconds by extending the token's lifetime, see: - * https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials#sa-credentials-oauth - * @param {string} [options.endpoint] api endpoint override. + * Constructs a RotatedSecretCreateCustom from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateCustom} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateCustom} The populated RotatedSecretCreateCustom instance. */ - constructor(options = {}) { - var _a, _b, _c, _d, _e, _f; - super(options); - // Start with an expired refresh token, which will automatically be - // refreshed before the first API call is made. - this.credentials = { - expiry_date: 1, - refresh_token: 'impersonated-placeholder', - }; - this.sourceClient = (_a = options.sourceClient) !== null && _a !== void 0 ? _a : new oauth2client_1.OAuth2Client(); - this.targetPrincipal = (_b = options.targetPrincipal) !== null && _b !== void 0 ? _b : ''; - this.delegates = (_c = options.delegates) !== null && _c !== void 0 ? _c : []; - this.targetScopes = (_d = options.targetScopes) !== null && _d !== void 0 ? _d : []; - this.lifetime = (_e = options.lifetime) !== null && _e !== void 0 ? _e : 3600; - const usingExplicitUniverseDomain = !!(0, util_1.originalOrCamelOptions)(options).get('universe_domain'); - if (!usingExplicitUniverseDomain) { - // override the default universe with the source's universe - this.universeDomain = this.sourceClient.universeDomain; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateCustom(); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - else if (this.sourceClient.universeDomain !== this.universeDomain) { - // non-default universe and is not matching the source - this could be a credential leak - throw new RangeError(`Universe domain ${this.sourceClient.universeDomain} in source credentials does not match ${this.universeDomain} universe domain set for impersonated credentials.`); + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - this.endpoint = - (_f = options.endpoint) !== null && _f !== void 0 ? _f : `https://iamcredentials.${this.universeDomain}`; - } - /** - * Signs some bytes. - * - * {@link https://cloud.google.com/iam/docs/reference/credentials/rest/v1/projects.serviceAccounts/signBlob Reference Documentation} - * @param blobToSign String to sign. - * - * @returns A {@link SignBlobResponse} denoting the keyID and signedBlob in base64 string - */ - async sign(blobToSign) { - await this.sourceClient.getAccessToken(); - const name = `projects/-/serviceAccounts/${this.targetPrincipal}`; - const u = `${this.endpoint}/v1/${name}:signBlob`; - const body = { - delegates: this.delegates, - payload: Buffer.from(blobToSign).toString('base64'), - }; - const res = await this.sourceClient.request({ - ...Impersonated.RETRY_CONFIG, - url: u, - data: body, - method: 'POST', - }); - return res.data; - } - /** The service account email to be impersonated. */ - getTargetPrincipal() { - return this.targetPrincipal; - } - /** - * Refreshes the access token. - */ - async refreshToken() { - var _a, _b, _c, _d, _e, _f; - try { - await this.sourceClient.getAccessToken(); - const name = 'projects/-/serviceAccounts/' + this.targetPrincipal; - const u = `${this.endpoint}/v1/${name}:generateAccessToken`; - const body = { - delegates: this.delegates, - scope: this.targetScopes, - lifetime: this.lifetime + 's', - }; - const res = await this.sourceClient.request({ - ...Impersonated.RETRY_CONFIG, - url: u, - data: body, - method: 'POST', - }); - const tokenResponse = res.data; - this.credentials.access_token = tokenResponse.accessToken; - this.credentials.expiry_date = Date.parse(tokenResponse.expireTime); - return { - tokens: this.credentials, - res, - }; + + if (data.hasOwnProperty('custom-payload')) { + obj['custom-payload'] = _ApiClient["default"].convertToType(data['custom-payload'], 'String'); } - catch (error) { - if (!(error instanceof Error)) - throw error; - let status = 0; - let message = ''; - if (error instanceof gaxios_1.GaxiosError) { - status = (_c = (_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) === null || _c === void 0 ? void 0 : _c.status; - message = (_f = (_e = (_d = error === null || error === void 0 ? void 0 : error.response) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.error) === null || _f === void 0 ? void 0 : _f.message; - } - if (status && message) { - error.message = `${status}: unable to impersonate: ${message}`; - throw error; - } - else { - error.message = `unable to impersonate: ${error}`; - throw error; - } + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - } - /** - * Generates an OpenID Connect ID token for a service account. - * - * {@link https://cloud.google.com/iam/docs/reference/credentials/rest/v1/projects.serviceAccounts/generateIdToken Reference Documentation} - * - * @param targetAudience the audience for the fetched ID token. - * @param options the for the request - * @return an OpenID Connect ID token - */ - async fetchIdToken(targetAudience, options) { - var _a, _b; - await this.sourceClient.getAccessToken(); - const name = `projects/-/serviceAccounts/${this.targetPrincipal}`; - const u = `${this.endpoint}/v1/${name}:generateIdToken`; - const body = { - delegates: this.delegates, - audience: targetAudience, - includeEmail: (_a = options === null || options === void 0 ? void 0 : options.includeEmail) !== null && _a !== void 0 ? _a : true, - useEmailAzp: (_b = options === null || options === void 0 ? void 0 : options.includeEmail) !== null && _b !== void 0 ? _b : true, - }; - const res = await this.sourceClient.request({ - ...Impersonated.RETRY_CONFIG, - url: u, - data: body, - method: 'POST', - }); - return res.data.token; - } -} -exports.Impersonated = Impersonated; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/***/ 6990: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -// Copyright 2015 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.JWTAccess = void 0; -const jws = __nccwpck_require__(33324); -const util_1 = __nccwpck_require__(77300); -const DEFAULT_HEADER = { - alg: 'RS256', - typ: 'JWT', -}; -class JWTAccess { - /** - * JWTAccess service account credentials. - * - * Create a new access token by using the credential to create a new JWT token - * that's recognized as the access token. - * - * @param email the service account email address. - * @param key the private key that will be used to sign the token. - * @param keyId the ID of the private key used to sign the token. - */ - constructor(email, key, keyId, eagerRefreshThresholdMillis) { - this.cache = new util_1.LRUCache({ - capacity: 500, - maxAge: 60 * 60 * 1000, - }); - this.email = email; - this.key = key; - this.keyId = keyId; - this.eagerRefreshThresholdMillis = - eagerRefreshThresholdMillis !== null && eagerRefreshThresholdMillis !== void 0 ? eagerRefreshThresholdMillis : 5 * 60 * 1000; - } - /** - * Ensures that we're caching a key appropriately, giving precedence to scopes vs. url - * - * @param url The URI being authorized. - * @param scopes The scope or scopes being authorized - * @returns A string that returns the cached key. - */ - getCachedKey(url, scopes) { - let cacheKey = url; - if (scopes && Array.isArray(scopes) && scopes.length) { - cacheKey = url ? `${url}_${scopes.join('_')}` : `${scopes.join('_')}`; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - else if (typeof scopes === 'string') { - cacheKey = url ? `${url}_${scopes}` : scopes; + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (!cacheKey) { - throw Error('Scopes or url must be provided'); + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); } - return cacheKey; - } - /** - * Get a non-expired access token, after refreshing if necessary. - * - * @param url The URI being authorized. - * @param additionalClaims An object with a set of additional claims to - * include in the payload. - * @returns An object that includes the authorization header. - */ - getRequestHeaders(url, additionalClaims, scopes) { - // Return cached authorization headers, unless we are within - // eagerRefreshThresholdMillis ms of them expiring: - const key = this.getCachedKey(url, scopes); - const cachedToken = this.cache.get(key); - const now = Date.now(); - if (cachedToken && - cachedToken.expiration - now > this.eagerRefreshThresholdMillis) { - return cachedToken.headers; + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - const iat = Math.floor(Date.now() / 1000); - const exp = JWTAccess.getExpirationTime(iat); - let defaultClaims; - // Turn scopes into space-separated string - if (Array.isArray(scopes)) { - scopes = scopes.join(' '); + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - // If scopes are specified, sign with scopes - if (scopes) { - defaultClaims = { - iss: this.email, - sub: this.email, - scope: scopes, - exp, - iat, - }; + + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); } - else { - defaultClaims = { - iss: this.email, - sub: this.email, - aud: url, - exp, - iat, - }; + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - // if additionalClaims are provided, ensure they do not collide with - // other required claims. - if (additionalClaims) { - for (const claim in defaultClaims) { - if (additionalClaims[claim]) { - throw new Error(`The '${claim}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`); - } - } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - const header = this.keyId - ? { ...DEFAULT_HEADER, kid: this.keyId } - : DEFAULT_HEADER; - const payload = Object.assign(defaultClaims, additionalClaims); - // Sign the jwt and add it to the cache - const signedJWT = jws.sign({ header, payload, secret: this.key }); - const headers = { Authorization: `Bearer ${signedJWT}` }; - this.cache.set(key, { - expiration: exp * 1000, - headers, - }); - return headers; - } - /** - * Returns an expiration time for the JWT token. - * - * @param iat The issued at time for the JWT. - * @returns An expiration time for the JWT. - */ - static getExpirationTime(iat) { - const exp = iat + 3600; // 3600 seconds = 1 hour - return exp; - } - /** - * Create a JWTAccess credentials instance using the given input options. - * @param json The input object. - */ - fromJSON(json) { - if (!json) { - throw new Error('Must pass in a JSON object containing the service account auth settings.'); + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (!json.client_email) { - throw new Error('The incoming JSON object does not contain a client_email field'); + + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); } - if (!json.private_key) { - throw new Error('The incoming JSON object does not contain a private_key field'); + + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); } - // Extract the relevant information from the json key file. - this.email = json.client_email; - this.key = json.private_key; - this.keyId = json.private_key_id; - this.projectId = json.project_id; - } - fromStream(inputStream, callback) { - if (callback) { - this.fromStreamAsync(inputStream).then(() => callback(), callback); + + if (data.hasOwnProperty('secure-access-ssh-user')) { + obj['secure-access-ssh-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-user'], 'String'); } - else { - return this.fromStreamAsync(inputStream); + + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); } + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } - fromStreamAsync(inputStream) { - return new Promise((resolve, reject) => { - if (!inputStream) { - reject(new Error('Must pass in a stream containing the service account auth settings.')); - } - let s = ''; - inputStream - .setEncoding('utf8') - .on('data', chunk => (s += chunk)) - .on('error', reject) - .on('end', () => { - try { - const data = JSON.parse(s); - this.fromJSON(data); - resolve(); - } - catch (err) { - reject(err); - } - }); - }); - } -} -exports.JWTAccess = JWTAccess; + }]); + + return RotatedSecretCreateCustom; +}(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + + +RotatedSecretCreateCustom.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretCreateCustom.prototype['auto-rotate'] = undefined; +/** + * Secret payload to be sent with rotation request + * @member {String} custom-payload + */ + +RotatedSecretCreateCustom.prototype['custom-payload'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateCustom.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateCustom.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +RotatedSecretCreateCustom.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateCustom.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateCustom.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateCustom.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateCustom.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +RotatedSecretCreateCustom.prototype['rotate-after-disconnect'] = 'false'; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateCustom.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateCustom.prototype['rotation-interval'] = undefined; +/** + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false + */ + +RotatedSecretCreateCustom.prototype['secure-access-allow-external-user'] = false; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +RotatedSecretCreateCustom.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +RotatedSecretCreateCustom.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +RotatedSecretCreateCustom.prototype['secure-access-host'] = undefined; +/** + * Default domain name server. i.e. microsoft.com + * @member {String} secure-access-rdp-domain + */ + +RotatedSecretCreateCustom.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ + +RotatedSecretCreateCustom.prototype['secure-access-rdp-user'] = undefined; +/** + * Override the SSH username as indicated in SSH Certificate Issuer + * @member {String} secure-access-ssh-user + */ +RotatedSecretCreateCustom.prototype['secure-access-ssh-user'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ + +RotatedSecretCreateCustom.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +RotatedSecretCreateCustom.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ + +RotatedSecretCreateCustom.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ + +RotatedSecretCreateCustom.prototype['secure-access-web-proxy'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateCustom.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateCustom.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretCreateCustom.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotatedSecretCreateCustom.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateCustom; +exports["default"] = _default; /***/ }), -/***/ 47927: +/***/ 15232: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2013 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.JWT = void 0; -const gtoken_1 = __nccwpck_require__(37022); -const jwtaccess_1 = __nccwpck_require__(6990); -const oauth2client_1 = __nccwpck_require__(89577); -const authclient_1 = __nccwpck_require__(58456); -class JWT extends oauth2client_1.OAuth2Client { - constructor(optionsOrEmail, keyFile, key, scopes, subject, keyId) { - const opts = optionsOrEmail && typeof optionsOrEmail === 'object' - ? optionsOrEmail - : { email: optionsOrEmail, keyFile, key, keyId, scopes, subject }; - super(opts); - this.email = opts.email; - this.keyFile = opts.keyFile; - this.key = opts.key; - this.keyId = opts.keyId; - this.scopes = opts.scopes; - this.subject = opts.subject; - this.additionalClaims = opts.additionalClaims; - // Start with an expired refresh token, which will automatically be - // refreshed before the first API call is made. - this.credentials = { refresh_token: 'jwt-placeholder', expiry_date: 1 }; - } - /** - * Creates a copy of the credential with the specified scopes. - * @param scopes List of requested scopes or a single scope. - * @return The cloned instance. - */ - createScoped(scopes) { - const jwt = new JWT(this); - jwt.scopes = scopes; - return jwt; + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RotatedSecretCreateDockerhub model module. + * @module model/RotatedSecretCreateDockerhub + * @version 3.6.3 + */ +var RotatedSecretCreateDockerhub = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateDockerhub. + * @alias module:model/RotatedSecretCreateDockerhub + * @param name {String} Rotated secret name + * @param targetName {String} Target name + */ + function RotatedSecretCreateDockerhub(name, targetName) { + _classCallCheck(this, RotatedSecretCreateDockerhub); + + RotatedSecretCreateDockerhub.initialize(this, name, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotatedSecretCreateDockerhub, null, [{ + key: "initialize", + value: function initialize(obj, name, targetName) { + obj['name'] = name; + obj['target-name'] = targetName; } /** - * Obtains the metadata to be sent with the request. - * - * @param url the URI being authorized. + * Constructs a RotatedSecretCreateDockerhub from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateDockerhub} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateDockerhub} The populated RotatedSecretCreateDockerhub instance. */ - async getRequestMetadataAsync(url) { - url = this.defaultServicePath ? `https://${this.defaultServicePath}/` : url; - const useSelfSignedJWT = (!this.hasUserScopes() && url) || - (this.useJWTAccessWithScope && this.hasAnyScopes()) || - this.universeDomain !== authclient_1.DEFAULT_UNIVERSE; - if (this.subject && this.universeDomain !== authclient_1.DEFAULT_UNIVERSE) { - throw new RangeError(`Service Account user is configured for the credential. Domain-wide delegation is not supported in universes other than ${authclient_1.DEFAULT_UNIVERSE}`); - } - if (!this.apiKey && useSelfSignedJWT) { - if (this.additionalClaims && - this.additionalClaims.target_audience) { - const { tokens } = await this.refreshToken(); - return { - headers: this.addSharedMetadataHeaders({ - Authorization: `Bearer ${tokens.id_token}`, - }), - }; - } - else { - // no scopes have been set, but a uri has been provided. Use JWTAccess - // credentials. - if (!this.access) { - this.access = new jwtaccess_1.JWTAccess(this.email, this.key, this.keyId, this.eagerRefreshThresholdMillis); - } - let scopes; - if (this.hasUserScopes()) { - scopes = this.scopes; - } - else if (!url) { - scopes = this.defaultScopes; - } - const useScopes = this.useJWTAccessWithScope || - this.universeDomain !== authclient_1.DEFAULT_UNIVERSE; - const headers = await this.access.getRequestHeaders(url !== null && url !== void 0 ? url : undefined, this.additionalClaims, - // Scopes take precedent over audience for signing, - // so we only provide them if `useJWTAccessWithScope` is on or - // if we are in a non-default universe - useScopes ? scopes : undefined); - return { headers: this.addSharedMetadataHeaders(headers) }; - } - } - else if (this.hasAnyScopes() || this.apiKey) { - return super.getRequestMetadataAsync(url); - } - else { - // If no audience, apiKey, or scopes are provided, we should not attempt - // to populate any headers: - return { headers: {} }; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateDockerhub(); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - } - /** - * Fetches an ID token. - * @param targetAudience the audience for the fetched ID token. - */ - async fetchIdToken(targetAudience) { - // Create a new gToken for fetching an ID token - const gtoken = new gtoken_1.GoogleToken({ - iss: this.email, - sub: this.subject, - scope: this.scopes || this.defaultScopes, - keyFile: this.keyFile, - key: this.key, - additionalClaims: { target_audience: targetAudience }, - transporter: this.transporter, - }); - await gtoken.getToken({ - forceRefresh: true, - }); - if (!gtoken.idToken) { - throw new Error('Unknown error: Failed to fetch ID token'); + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - return gtoken.idToken; - } - /** - * Determine if there are currently scopes available. - */ - hasUserScopes() { - if (!this.scopes) { - return false; + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - return this.scopes.length > 0; - } - /** - * Are there any default or user scopes defined. - */ - hasAnyScopes() { - if (this.scopes && this.scopes.length > 0) - return true; - if (this.defaultScopes && this.defaultScopes.length > 0) - return true; - return false; - } - authorize(callback) { - if (callback) { - this.authorizeAsync().then(r => callback(null, r), callback); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - else { - return this.authorizeAsync(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - } - async authorizeAsync() { - const result = await this.refreshToken(); - if (!result) { - throw new Error('No result returned'); + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - this.credentials = result.tokens; - this.credentials.refresh_token = 'jwt-placeholder'; - this.key = this.gtoken.key; - this.email = this.gtoken.iss; - return result.tokens; - } - /** - * Refreshes the access token. - * @param refreshToken ignored - * @private - */ - async refreshTokenNoCache( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - refreshToken) { - const gtoken = this.createGToken(); - const token = await gtoken.getToken({ - forceRefresh: this.isTokenExpiring(), - }); - const tokens = { - access_token: token.access_token, - token_type: 'Bearer', - expiry_date: gtoken.expiresAt, - id_token: gtoken.idToken, - }; - this.emit('tokens', tokens); - return { res: null, tokens }; - } - /** - * Create a gToken if it doesn't already exist. - */ - createGToken() { - if (!this.gtoken) { - this.gtoken = new gtoken_1.GoogleToken({ - iss: this.email, - sub: this.subject, - scope: this.scopes || this.defaultScopes, - keyFile: this.keyFile, - key: this.key, - additionalClaims: this.additionalClaims, - transporter: this.transporter, - }); + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - return this.gtoken; - } - /** - * Create a JWT credentials instance using the given input options. - * @param json The input object. - * - * @remarks - * - * **Important**: If you accept a credential configuration (credential JSON/File/Stream) from an external source for authentication to Google Cloud, you must validate it before providing it to any Google API or library. Providing an unvalidated credential configuration to Google APIs can compromise the security of your systems and data. For more information, refer to {@link https://cloud.google.com/docs/authentication/external/externally-sourced-credentials Validate credential configurations from external sources}. - */ - fromJSON(json) { - if (!json) { - throw new Error('Must pass in a JSON object containing the service account auth settings.'); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (!json.client_email) { - throw new Error('The incoming JSON object does not contain a client_email field'); + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - if (!json.private_key) { - throw new Error('The incoming JSON object does not contain a private_key field'); + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - // Extract the relevant information from the json key file. - this.email = json.client_email; - this.key = json.private_key; - this.keyId = json.private_key_id; - this.projectId = json.project_id; - this.quotaProjectId = json.quota_project_id; - this.universeDomain = json.universe_domain || this.universeDomain; - } - fromStream(inputStream, callback) { - if (callback) { - this.fromStreamAsync(inputStream).then(() => callback(), callback); + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - else { - return this.fromStreamAsync(inputStream); + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - } - fromStreamAsync(inputStream) { - return new Promise((resolve, reject) => { - if (!inputStream) { - throw new Error('Must pass in a stream containing the service account auth settings.'); - } - let s = ''; - inputStream - .setEncoding('utf8') - .on('error', reject) - .on('data', chunk => (s += chunk)) - .on('end', () => { - try { - const data = JSON.parse(s); - this.fromJSON(data); - resolve(); - } - catch (e) { - reject(e); - } - }); - }); - } - /** - * Creates a JWT credentials instance using an API Key for authentication. - * @param apiKey The API Key in string form. - */ - fromAPIKey(apiKey) { - if (typeof apiKey !== 'string') { - throw new Error('Must provide an API Key string.'); + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - this.apiKey = apiKey; - } - /** - * Using the key or keyFile on the JWT client, obtain an object that contains - * the key and the client email. - */ - async getCredentials() { - if (this.key) { - return { private_key: this.key, client_email: this.email }; + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - else if (this.keyFile) { - const gtoken = this.createGToken(); - const creds = await gtoken.getCredentials(this.keyFile); - return { private_key: creds.privateKey, client_email: creds.clientEmail }; + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - throw new Error('A key or a keyFile must be provided to getCredentials.'); + } + + return obj; } -} -exports.JWT = JWT; + }]); + return RotatedSecretCreateDockerhub; +}(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ -/***/ }), -/***/ 13832: -/***/ ((__unused_webpack_module, exports) => { +RotatedSecretCreateDockerhub.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ -"use strict"; +RotatedSecretCreateDockerhub.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -// Copyright 2014 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LoginTicket = void 0; -class LoginTicket { - /** - * Create a simple class to extract user ID from an ID Token - * - * @param {string} env Envelope of the jwt - * @param {TokenPayload} pay Payload of the jwt - * @constructor - */ - constructor(env, pay) { - this.envelope = env; - this.payload = pay; - } - getEnvelope() { - return this.envelope; - } - getPayload() { - return this.payload; - } - /** - * Create a simple class to extract user ID from an ID Token - * - * @return The user ID - */ - getUserId() { - const payload = this.getPayload(); - if (payload && payload.sub) { - return payload.sub; - } - return null; - } - /** - * Returns attributes from the login ticket. This can contain - * various information about the user session. - * - * @return The envelope and payload - */ - getAttributes() { - return { envelope: this.getEnvelope(), payload: this.getPayload() }; - } -} -exports.LoginTicket = LoginTicket; +RotatedSecretCreateDockerhub.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateDockerhub.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +RotatedSecretCreateDockerhub.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateDockerhub.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateDockerhub.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateDockerhub.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateDockerhub.prototype['password-length'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateDockerhub.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateDockerhub.prototype['rotation-interval'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateDockerhub.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ +RotatedSecretCreateDockerhub.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretCreateDockerhub.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotatedSecretCreateDockerhub.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateDockerhub; +exports["default"] = _default; /***/ }), -/***/ 89577: +/***/ 19137: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.OAuth2Client = exports.ClientAuthentication = exports.CertificateFormat = exports.CodeChallengeMethod = void 0; -const gaxios_1 = __nccwpck_require__(67773); -const querystring = __nccwpck_require__(83480); -const stream = __nccwpck_require__(2203); -const formatEcdsa = __nccwpck_require__(325); -const crypto_1 = __nccwpck_require__(85353); -const authclient_1 = __nccwpck_require__(58456); -const loginticket_1 = __nccwpck_require__(13832); -var CodeChallengeMethod; -(function (CodeChallengeMethod) { - CodeChallengeMethod["Plain"] = "plain"; - CodeChallengeMethod["S256"] = "S256"; -})(CodeChallengeMethod || (exports.CodeChallengeMethod = CodeChallengeMethod = {})); -var CertificateFormat; -(function (CertificateFormat) { - CertificateFormat["PEM"] = "PEM"; - CertificateFormat["JWK"] = "JWK"; -})(CertificateFormat || (exports.CertificateFormat = CertificateFormat = {})); + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * The client authentication type. Supported values are basic, post, and none. - * https://datatracker.ietf.org/doc/html/rfc7591#section-2 + * The RotatedSecretCreateGcp model module. + * @module model/RotatedSecretCreateGcp + * @version 3.6.3 */ -var ClientAuthentication; -(function (ClientAuthentication) { - ClientAuthentication["ClientSecretPost"] = "ClientSecretPost"; - ClientAuthentication["ClientSecretBasic"] = "ClientSecretBasic"; - ClientAuthentication["None"] = "None"; -})(ClientAuthentication || (exports.ClientAuthentication = ClientAuthentication = {})); -class OAuth2Client extends authclient_1.AuthClient { - constructor(optionsOrClientId, clientSecret, redirectUri) { - const opts = optionsOrClientId && typeof optionsOrClientId === 'object' - ? optionsOrClientId - : { clientId: optionsOrClientId, clientSecret, redirectUri }; - super(opts); - this.certificateCache = {}; - this.certificateExpiry = null; - this.certificateCacheFormat = CertificateFormat.PEM; - this.refreshTokenPromises = new Map(); - this._clientId = opts.clientId; - this._clientSecret = opts.clientSecret; - this.redirectUri = opts.redirectUri; - this.endpoints = { - tokenInfoUrl: 'https://oauth2.googleapis.com/tokeninfo', - oauth2AuthBaseUrl: 'https://accounts.google.com/o/oauth2/v2/auth', - oauth2TokenUrl: 'https://oauth2.googleapis.com/token', - oauth2RevokeUrl: 'https://oauth2.googleapis.com/revoke', - oauth2FederatedSignonPemCertsUrl: 'https://www.googleapis.com/oauth2/v1/certs', - oauth2FederatedSignonJwkCertsUrl: 'https://www.googleapis.com/oauth2/v3/certs', - oauth2IapPublicKeyUrl: 'https://www.gstatic.com/iap/verify/public_key', - ...opts.endpoints, - }; - this.clientAuthentication = - opts.clientAuthentication || ClientAuthentication.ClientSecretPost; - this.issuers = opts.issuers || [ - 'accounts.google.com', - 'https://accounts.google.com', - this.universeDomain, - ]; +var RotatedSecretCreateGcp = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateGcp. + * @alias module:model/RotatedSecretCreateGcp + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/service-account-rotator] + * @param targetName {String} Target name + */ + function RotatedSecretCreateGcp(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateGcp); + + RotatedSecretCreateGcp.initialize(this, name, rotatorType, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotatedSecretCreateGcp, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; } /** - * Generates URL for consent page landing. - * @param opts Options. - * @return URL to consent page. + * Constructs a RotatedSecretCreateGcp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateGcp} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateGcp} The populated RotatedSecretCreateGcp instance. */ - generateAuthUrl(opts = {}) { - if (opts.code_challenge_method && !opts.code_challenge) { - throw new Error('If a code_challenge_method is provided, code_challenge must be included.'); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateGcp(); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - opts.response_type = opts.response_type || 'code'; - opts.client_id = opts.client_id || this._clientId; - opts.redirect_uri = opts.redirect_uri || this.redirectUri; - // Allow scopes to be passed either as array or a string - if (Array.isArray(opts.scope)) { - opts.scope = opts.scope.join(' '); + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - const rootUrl = this.endpoints.oauth2AuthBaseUrl.toString(); - return (rootUrl + - '?' + - querystring.stringify(opts)); - } - generateCodeVerifier() { - // To make the code compatible with browser SubtleCrypto we need to make - // this method async. - throw new Error('generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.'); - } - /** - * Convenience method to automatically generate a code_verifier, and its - * resulting SHA256. If used, this must be paired with a S256 - * code_challenge_method. - * - * For a full example see: - * https://github.com/googleapis/google-auth-library-nodejs/blob/main/samples/oauth2-codeVerifier.js - */ - async generateCodeVerifierAsync() { - // base64 encoding uses 6 bits per character, and we want to generate128 - // characters. 6*128/8 = 96. - const crypto = (0, crypto_1.createCrypto)(); - const randomString = crypto.randomBytesBase64(96); - // The valid characters in the code_verifier are [A-Z]/[a-z]/[0-9]/ - // "-"/"."/"_"/"~". Base64 encoded strings are pretty close, so we're just - // swapping out a few chars. - const codeVerifier = randomString - .replace(/\+/g, '~') - .replace(/=/g, '_') - .replace(/\//g, '-'); - // Generate the base64 encoded SHA256 - const unencodedCodeChallenge = await crypto.sha256DigestBase64(codeVerifier); - // We need to use base64UrlEncoding instead of standard base64 - const codeChallenge = unencodedCodeChallenge - .split('=')[0] - .replace(/\+/g, '-') - .replace(/\//g, '_'); - return { codeVerifier, codeChallenge }; - } - getToken(codeOrOptions, callback) { - const options = typeof codeOrOptions === 'string' ? { code: codeOrOptions } : codeOrOptions; - if (callback) { - this.getTokenAsync(options).then(r => callback(null, r.tokens, r.res), e => callback(e, null, e.response)); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - else { - return this.getTokenAsync(options); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - } - async getTokenAsync(options) { - const url = this.endpoints.oauth2TokenUrl.toString(); - const headers = { - 'Content-Type': 'application/x-www-form-urlencoded', - }; - const values = { - client_id: options.client_id || this._clientId, - code_verifier: options.codeVerifier, - code: options.code, - grant_type: 'authorization_code', - redirect_uri: options.redirect_uri || this.redirectUri, - }; - if (this.clientAuthentication === ClientAuthentication.ClientSecretBasic) { - const basic = Buffer.from(`${this._clientId}:${this._clientSecret}`); - headers['Authorization'] = `Basic ${basic.toString('base64')}`; + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); } - if (this.clientAuthentication === ClientAuthentication.ClientSecretPost) { - values.client_secret = this._clientSecret; + + if (data.hasOwnProperty('gcp-service-account-email')) { + obj['gcp-service-account-email'] = _ApiClient["default"].convertToType(data['gcp-service-account-email'], 'String'); } - const res = await this.transporter.request({ - ...OAuth2Client.RETRY_CONFIG, - method: 'POST', - url, - data: querystring.stringify(values), - headers, - }); - const tokens = res.data; - if (res.data && res.data.expires_in) { - tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000; - delete tokens.expires_in; + + if (data.hasOwnProperty('gcp-service-account-key-id')) { + obj['gcp-service-account-key-id'] = _ApiClient["default"].convertToType(data['gcp-service-account-key-id'], 'String'); } - this.emit('tokens', tokens); - return { tokens, res }; - } - /** - * Refreshes the access token. - * @param refresh_token Existing refresh token. - * @private - */ - async refreshToken(refreshToken) { - if (!refreshToken) { - return this.refreshTokenNoCache(refreshToken); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - // If a request to refresh using the same token has started, - // return the same promise. - if (this.refreshTokenPromises.has(refreshToken)) { - return this.refreshTokenPromises.get(refreshToken); + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - const p = this.refreshTokenNoCache(refreshToken).then(r => { - this.refreshTokenPromises.delete(refreshToken); - return r; - }, e => { - this.refreshTokenPromises.delete(refreshToken); - throw e; - }); - this.refreshTokenPromises.set(refreshToken, p); - return p; - } - async refreshTokenNoCache(refreshToken) { - var _a; - if (!refreshToken) { - throw new Error('No refresh token is set.'); + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - const url = this.endpoints.oauth2TokenUrl.toString(); - const data = { - refresh_token: refreshToken, - client_id: this._clientId, - client_secret: this._clientSecret, - grant_type: 'refresh_token', - }; - let res; - try { - // request for new token - res = await this.transporter.request({ - ...OAuth2Client.RETRY_CONFIG, - method: 'POST', - url, - data: querystring.stringify(data), - headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - }); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - catch (e) { - if (e instanceof gaxios_1.GaxiosError && - e.message === 'invalid_grant' && - ((_a = e.response) === null || _a === void 0 ? void 0 : _a.data) && - /ReAuth/i.test(e.response.data.error_description)) { - e.message = JSON.stringify(e.response.data); - } - throw e; + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - const tokens = res.data; - // TODO: de-duplicate this code from a few spots - if (res.data && res.data.expires_in) { - tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000; - delete tokens.expires_in; + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - this.emit('tokens', tokens); - return { tokens, res }; - } - refreshAccessToken(callback) { - if (callback) { - this.refreshAccessTokenAsync().then(r => callback(null, r.credentials, r.res), callback); + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - else { - return this.refreshAccessTokenAsync(); + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); } - } - async refreshAccessTokenAsync() { - const r = await this.refreshToken(this.credentials.refresh_token); - const tokens = r.tokens; - tokens.refresh_token = this.credentials.refresh_token; - this.credentials = tokens; - return { credentials: this.credentials, res: r.res }; - } - getAccessToken(callback) { - if (callback) { - this.getAccessTokenAsync().then(r => callback(null, r.token, r.res), callback); + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - else { - return this.getAccessTokenAsync(); + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - } - async getAccessTokenAsync() { - const shouldRefresh = !this.credentials.access_token || this.isTokenExpiring(); - if (shouldRefresh) { - if (!this.credentials.refresh_token) { - if (this.refreshHandler) { - const refreshedAccessToken = await this.processAndValidateRefreshHandler(); - if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { - this.setCredentials(refreshedAccessToken); - return { token: this.credentials.access_token }; - } - } - else { - throw new Error('No refresh token or refresh handler callback is set.'); - } - } - const r = await this.refreshAccessTokenAsync(); - if (!r.credentials || (r.credentials && !r.credentials.access_token)) { - throw new Error('Could not refresh access token.'); - } - return { token: r.credentials.access_token, res: r.res }; + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - else { - return { token: this.credentials.access_token }; + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + } + + return obj; + } + }]); + + return RotatedSecretCreateGcp; +}(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + + +RotatedSecretCreateGcp.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretCreateGcp.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateGcp.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateGcp.prototype['description'] = undefined; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ + +RotatedSecretCreateGcp.prototype['gcp-key'] = undefined; +/** + * The email of the gcp service account to rotate + * @member {String} gcp-service-account-email + */ + +RotatedSecretCreateGcp.prototype['gcp-service-account-email'] = undefined; +/** + * The key id of the gcp service account to rotate + * @member {String} gcp-service-account-key-id + */ + +RotatedSecretCreateGcp.prototype['gcp-service-account-key-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +RotatedSecretCreateGcp.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateGcp.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateGcp.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateGcp.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateGcp.prototype['password-length'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateGcp.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateGcp.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/service-account-rotator] + * @member {String} rotator-type + */ + +RotatedSecretCreateGcp.prototype['rotator-type'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateGcp.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateGcp.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretCreateGcp.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotatedSecretCreateGcp.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateGcp; +exports["default"] = _default; + +/***/ }), + +/***/ 4967: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RotatedSecretCreateHanadb model module. + * @module model/RotatedSecretCreateHanadb + * @version 3.6.3 + */ +var RotatedSecretCreateHanadb = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateHanadb. + * @alias module:model/RotatedSecretCreateHanadb + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name + */ + function RotatedSecretCreateHanadb(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateHanadb); + + RotatedSecretCreateHanadb.initialize(this, name, rotatorType, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotatedSecretCreateHanadb, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; } /** - * The main authentication interface. It takes an optional url which when - * present is the endpoint being accessed, and returns a Promise which - * resolves with authorization header fields. - * - * In OAuth2Client, the result has the form: - * { Authorization: 'Bearer ' } - * @param url The optional url being authorized + * Constructs a RotatedSecretCreateHanadb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateHanadb} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateHanadb} The populated RotatedSecretCreateHanadb instance. */ - async getRequestHeaders(url) { - const headers = (await this.getRequestMetadataAsync(url)).headers; - return headers; - } - async getRequestMetadataAsync( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - url) { - const thisCreds = this.credentials; - if (!thisCreds.access_token && - !thisCreds.refresh_token && - !this.apiKey && - !this.refreshHandler) { - throw new Error('No access, refresh token, API key or refresh handler callback is set.'); - } - if (thisCreds.access_token && !this.isTokenExpiring()) { - thisCreds.token_type = thisCreds.token_type || 'Bearer'; - const headers = { - Authorization: thisCreds.token_type + ' ' + thisCreds.access_token, - }; - return { headers: this.addSharedMetadataHeaders(headers) }; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateHanadb(); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - // If refreshHandler exists, call processAndValidateRefreshHandler(). - if (this.refreshHandler) { - const refreshedAccessToken = await this.processAndValidateRefreshHandler(); - if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { - this.setCredentials(refreshedAccessToken); - const headers = { - Authorization: 'Bearer ' + this.credentials.access_token, - }; - return { headers: this.addSharedMetadataHeaders(headers) }; - } + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - if (this.apiKey) { - return { headers: { 'X-Goog-Api-Key': this.apiKey } }; + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - let r = null; - let tokens = null; - try { - r = await this.refreshToken(thisCreds.refresh_token); - tokens = r.tokens; + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - catch (err) { - const e = err; - if (e.response && - (e.response.status === 403 || e.response.status === 404)) { - e.message = `Could not refresh access token: ${e.message}`; - } - throw e; + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - const credentials = this.credentials; - credentials.token_type = credentials.token_type || 'Bearer'; - tokens.refresh_token = credentials.refresh_token; - this.credentials = tokens; - const headers = { - Authorization: credentials.token_type + ' ' + tokens.access_token, - }; - return { headers: this.addSharedMetadataHeaders(headers), res: r.res }; - } - /** - * Generates an URL to revoke the given token. - * @param token The existing token to be revoked. - * - * @deprecated use instance method {@link OAuth2Client.getRevokeTokenURL} - */ - static getRevokeTokenUrl(token) { - return new OAuth2Client().getRevokeTokenURL(token).toString(); - } - /** - * Generates a URL to revoke the given token. - * - * @param token The existing token to be revoked. - */ - getRevokeTokenURL(token) { - const url = new URL(this.endpoints.oauth2RevokeUrl); - url.searchParams.append('token', token); - return url; - } - revokeToken(token, callback) { - const opts = { - ...OAuth2Client.RETRY_CONFIG, - url: this.getRevokeTokenURL(token).toString(), - method: 'POST', - }; - if (callback) { - this.transporter - .request(opts) - .then(r => callback(null, r), callback); + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - else { - return this.transporter.request(opts); + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - } - revokeCredentials(callback) { - if (callback) { - this.revokeCredentialsAsync().then(res => callback(null, res), callback); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - else { - return this.revokeCredentialsAsync(); + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - } - async revokeCredentialsAsync() { - const token = this.credentials.access_token; - this.credentials = {}; - if (token) { - return this.revokeToken(token); + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); } - else { - throw new Error('No access token to revoke.'); + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); } - } - request(opts, callback) { - if (callback) { - this.requestAsync(opts).then(r => callback(null, r), e => { - return callback(e, e.response); - }); + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - else { - return this.requestAsync(opts); + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - } - async requestAsync(opts, reAuthRetried = false) { - let r2; - try { - const r = await this.getRequestMetadataAsync(opts.url); - opts.headers = opts.headers || {}; - if (r.headers && r.headers['x-goog-user-project']) { - opts.headers['x-goog-user-project'] = r.headers['x-goog-user-project']; - } - if (r.headers && r.headers.Authorization) { - opts.headers.Authorization = r.headers.Authorization; - } - if (this.apiKey) { - opts.headers['X-Goog-Api-Key'] = this.apiKey; - } - r2 = await this.transporter.request(opts); + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); } - catch (e) { - const res = e.response; - if (res) { - const statusCode = res.status; - // Retry the request for metadata if the following criteria are true: - // - We haven't already retried. It only makes sense to retry once. - // - The response was a 401 or a 403 - // - The request didn't send a readableStream - // - An access_token and refresh_token were available, but either no - // expiry_date was available or the forceRefreshOnFailure flag is set. - // The absent expiry_date case can happen when developers stash the - // access_token and refresh_token for later use, but the access_token - // fails on the first try because it's expired. Some developers may - // choose to enable forceRefreshOnFailure to mitigate time-related - // errors. - // Or the following criteria are true: - // - We haven't already retried. It only makes sense to retry once. - // - The response was a 401 or a 403 - // - The request didn't send a readableStream - // - No refresh_token was available - // - An access_token and a refreshHandler callback were available, but - // either no expiry_date was available or the forceRefreshOnFailure - // flag is set. The access_token fails on the first try because it's - // expired. Some developers may choose to enable forceRefreshOnFailure - // to mitigate time-related errors. - const mayRequireRefresh = this.credentials && - this.credentials.access_token && - this.credentials.refresh_token && - (!this.credentials.expiry_date || this.forceRefreshOnFailure); - const mayRequireRefreshWithNoRefreshToken = this.credentials && - this.credentials.access_token && - !this.credentials.refresh_token && - (!this.credentials.expiry_date || this.forceRefreshOnFailure) && - this.refreshHandler; - const isReadableStream = res.config.data instanceof stream.Readable; - const isAuthErr = statusCode === 401 || statusCode === 403; - if (!reAuthRetried && - isAuthErr && - !isReadableStream && - mayRequireRefresh) { - await this.refreshAccessTokenAsync(); - return this.requestAsync(opts, true); - } - else if (!reAuthRetried && - isAuthErr && - !isReadableStream && - mayRequireRefreshWithNoRefreshToken) { - const refreshedAccessToken = await this.processAndValidateRefreshHandler(); - if (refreshedAccessToken === null || refreshedAccessToken === void 0 ? void 0 : refreshedAccessToken.access_token) { - this.setCredentials(refreshedAccessToken); - } - return this.requestAsync(opts, true); - } - } - throw e; + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - return r2; - } - verifyIdToken(options, callback) { - // This function used to accept two arguments instead of an options object. - // Check the types to help users upgrade with less pain. - // This check can be removed after a 2.0 release. - if (callback && typeof callback !== 'function') { - throw new Error('This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.'); + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - if (callback) { - this.verifyIdTokenAsync(options).then(r => callback(null, r), callback); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - else { - return this.verifyIdTokenAsync(options); + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + } + + return obj; } - async verifyIdTokenAsync(options) { - if (!options.idToken) { - throw new Error('The verifyIdToken method requires an ID Token'); - } - const response = await this.getFederatedSignonCertsAsync(); - const login = await this.verifySignedJwtWithCertsAsync(options.idToken, response.certs, options.audience, this.issuers, options.maxExpiry); - return login; + }]); + + return RotatedSecretCreateHanadb; +}(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + + +RotatedSecretCreateHanadb.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretCreateHanadb.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateHanadb.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateHanadb.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +RotatedSecretCreateHanadb.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateHanadb.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateHanadb.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateHanadb.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateHanadb.prototype['password-length'] = undefined; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +RotatedSecretCreateHanadb.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ + +RotatedSecretCreateHanadb.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateHanadb.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateHanadb.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ + +RotatedSecretCreateHanadb.prototype['rotator-type'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateHanadb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateHanadb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretCreateHanadb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotatedSecretCreateHanadb.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateHanadb; +exports["default"] = _default; + +/***/ }), + +/***/ 71730: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RotatedSecretCreateLdap model module. + * @module model/RotatedSecretCreateLdap + * @version 3.6.3 + */ +var RotatedSecretCreateLdap = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateLdap. + * @alias module:model/RotatedSecretCreateLdap + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/ldap] + * @param targetName {String} Target name + */ + function RotatedSecretCreateLdap(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateLdap); + + RotatedSecretCreateLdap.initialize(this, name, rotatorType, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotatedSecretCreateLdap, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; } /** - * Obtains information about the provisioned access token. Especially useful - * if you want to check the scopes that were provisioned to a given token. - * - * @param accessToken Required. The Access Token for which you want to get - * user info. + * Constructs a RotatedSecretCreateLdap from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateLdap} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateLdap} The populated RotatedSecretCreateLdap instance. */ - async getTokenInfo(accessToken) { - const { data } = await this.transporter.request({ - ...OAuth2Client.RETRY_CONFIG, - method: 'POST', - headers: { - 'Content-Type': 'application/x-www-form-urlencoded', - Authorization: `Bearer ${accessToken}`, - }, - url: this.endpoints.tokenInfoUrl.toString(), - }); - const info = Object.assign({ - expiry_date: new Date().getTime() + data.expires_in * 1000, - scopes: data.scope.split(' '), - }, data); - delete info.expires_in; - delete info.scope; - return info; - } - getFederatedSignonCerts(callback) { - if (callback) { - this.getFederatedSignonCertsAsync().then(r => callback(null, r.certs, r.res), callback); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateLdap(); + + if (data.hasOwnProperty('ProviderType')) { + obj['ProviderType'] = _ApiClient["default"].convertToType(data['ProviderType'], 'String'); } - else { - return this.getFederatedSignonCertsAsync(); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - } - async getFederatedSignonCertsAsync() { - const nowTime = new Date().getTime(); - const format = (0, crypto_1.hasBrowserCrypto)() - ? CertificateFormat.JWK - : CertificateFormat.PEM; - if (this.certificateExpiry && - nowTime < this.certificateExpiry.getTime() && - this.certificateCacheFormat === format) { - return { certs: this.certificateCache, format }; + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - let res; - let url; - switch (format) { - case CertificateFormat.PEM: - url = this.endpoints.oauth2FederatedSignonPemCertsUrl.toString(); - break; - case CertificateFormat.JWK: - url = this.endpoints.oauth2FederatedSignonJwkCertsUrl.toString(); - break; - default: - throw new Error(`Unsupported certificate format ${format}`); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - try { - res = await this.transporter.request({ - ...OAuth2Client.RETRY_CONFIG, - url, - }); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - catch (e) { - if (e instanceof Error) { - e.message = `Failed to retrieve verification certificates: ${e.message}`; - } - throw e; + + if (data.hasOwnProperty('host-provider')) { + obj['host-provider'] = _ApiClient["default"].convertToType(data['host-provider'], 'String'); } - const cacheControl = res ? res.headers['cache-control'] : undefined; - let cacheAge = -1; - if (cacheControl) { - const pattern = new RegExp('max-age=([0-9]*)'); - const regexResult = pattern.exec(cacheControl); - if (regexResult && regexResult.length === 2) { - // Cache results with max-age (in seconds) - cacheAge = Number(regexResult[1]) * 1000; // milliseconds - } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - let certificates = {}; - switch (format) { - case CertificateFormat.PEM: - certificates = res.data; - break; - case CertificateFormat.JWK: - for (const key of res.data.keys) { - certificates[key.kid] = key; - } - break; - default: - throw new Error(`Unsupported certificate format ${format}`); + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - const now = new Date(); - this.certificateExpiry = - cacheAge === -1 ? null : new Date(now.getTime() + cacheAge); - this.certificateCache = certificates; - this.certificateCacheFormat = format; - return { certs: certificates, format, res }; - } - getIapPublicKeys(callback) { - if (callback) { - this.getIapPublicKeysAsync().then(r => callback(null, r.pubkeys, r.res), callback); + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - else { - return this.getIapPublicKeysAsync(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - } - async getIapPublicKeysAsync() { - let res; - const url = this.endpoints.oauth2IapPublicKeyUrl.toString(); - try { - res = await this.transporter.request({ - ...OAuth2Client.RETRY_CONFIG, - url, - }); + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - catch (e) { - if (e instanceof Error) { - e.message = `Failed to retrieve verification certificates: ${e.message}`; - } - throw e; + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); } - return { pubkeys: res.data, res }; - } - verifySignedJwtWithCerts() { - // To make the code compatible with browser SubtleCrypto we need to make - // this method async. - throw new Error('verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.'); - } - /** - * Verify the id token is signed with the correct certificate - * and is from the correct audience. - * @param jwt The jwt to verify (The ID Token in this case). - * @param certs The array of certs to test the jwt against. - * @param requiredAudience The audience to test the jwt against. - * @param issuers The allowed issuers of the jwt (Optional). - * @param maxExpiry The max expiry the certificate can be (Optional). - * @return Returns a promise resolving to LoginTicket on verification. - */ - async verifySignedJwtWithCertsAsync(jwt, certs, requiredAudience, issuers, maxExpiry) { - const crypto = (0, crypto_1.createCrypto)(); - if (!maxExpiry) { - maxExpiry = OAuth2Client.DEFAULT_MAX_TOKEN_LIFETIME_SECS_; + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); } - const segments = jwt.split('.'); - if (segments.length !== 3) { - throw new Error('Wrong number of segments in token: ' + jwt); + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); } - const signed = segments[0] + '.' + segments[1]; - let signature = segments[2]; - let envelope; - let payload; - try { - envelope = JSON.parse(crypto.decodeBase64StringUtf8(segments[0])); + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - catch (err) { - if (err instanceof Error) { - err.message = `Can't parse token envelope: ${segments[0]}': ${err.message}`; - } - throw err; + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - if (!envelope) { - throw new Error("Can't parse token envelope: " + segments[0]); + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); } - try { - payload = JSON.parse(crypto.decodeBase64StringUtf8(segments[1])); + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - catch (err) { - if (err instanceof Error) { - err.message = `Can't parse token payload '${segments[0]}`; - } - throw err; + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - if (!payload) { - throw new Error("Can't parse token payload: " + segments[1]); + + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); } - if (!Object.prototype.hasOwnProperty.call(certs, envelope.kid)) { - // If this is not present, then there's no reason to attempt verification - throw new Error('No pem found for envelope: ' + JSON.stringify(envelope)); + + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); } - const cert = certs[envelope.kid]; - if (envelope.alg === 'ES256') { - signature = formatEcdsa.joseToDer(signature, 'ES256').toString('base64'); + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } - const verified = await crypto.verify(cert, signed, signature); - if (!verified) { - throw new Error('Invalid token signature: ' + jwt); + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); } - if (!payload.iat) { - throw new Error('No issue time in token: ' + JSON.stringify(payload)); + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); } - if (!payload.exp) { - throw new Error('No expiration time in token: ' + JSON.stringify(payload)); + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - const iat = Number(payload.iat); - if (isNaN(iat)) - throw new Error('iat field using invalid format'); - const exp = Number(payload.exp); - if (isNaN(exp)) - throw new Error('exp field using invalid format'); - const now = new Date().getTime() / 1000; - if (exp >= now + maxExpiry) { - throw new Error('Expiration time too far in future: ' + JSON.stringify(payload)); + + if (data.hasOwnProperty('target')) { + obj['target'] = _ApiClient["default"].convertToType(data['target'], ['String']); } - const earliest = iat - OAuth2Client.CLOCK_SKEW_SECS_; - const latest = exp + OAuth2Client.CLOCK_SKEW_SECS_; - if (now < earliest) { - throw new Error('Token used too early, ' + - now + - ' < ' + - earliest + - ': ' + - JSON.stringify(payload)); + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - if (now > latest) { - throw new Error('Token used too late, ' + - now + - ' > ' + - latest + - ': ' + - JSON.stringify(payload)); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (issuers && issuers.indexOf(payload.iss) < 0) { - throw new Error('Invalid issuer, expected one of [' + - issuers + - '], but got ' + - payload.iss); + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - // Check the audience matches if we have one - if (typeof requiredAudience !== 'undefined' && requiredAudience !== null) { - const aud = payload.aud; - let audVerified = false; - // If the requiredAudience is an array, check if it contains token - // audience - if (requiredAudience.constructor === Array) { - audVerified = requiredAudience.indexOf(aud) > -1; - } - else { - audVerified = aud === requiredAudience; - } - if (!audVerified) { - throw new Error('Wrong recipient, payload audience != requiredAudience'); - } + + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); } - return new loginticket_1.LoginTicket(envelope, payload); - } - /** - * Returns a promise that resolves with AccessTokenResponse type if - * refreshHandler is defined. - * If not, nothing is returned. - */ - async processAndValidateRefreshHandler() { - if (this.refreshHandler) { - const accessTokenResponse = await this.refreshHandler(); - if (!accessTokenResponse.access_token) { - throw new Error('No access token is returned by the refreshHandler callback.'); - } - return accessTokenResponse; + + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); } - return; - } - /** - * Returns true if a token is expired or will expire within - * eagerRefreshThresholdMillismilliseconds. - * If there is no expiry time, assumes the token is not expired or expiring. - */ - isTokenExpiring() { - const expiryDate = this.credentials.expiry_date; - return expiryDate - ? expiryDate <= new Date().getTime() + this.eagerRefreshThresholdMillis - : false; + } + + return obj; } -} -exports.OAuth2Client = OAuth2Client; + }]); + + return RotatedSecretCreateLdap; +}(); /** - * @deprecated use instance's {@link OAuth2Client.endpoints} + * @member {String} ProviderType */ -OAuth2Client.GOOGLE_TOKEN_INFO_URL = 'https://oauth2.googleapis.com/tokeninfo'; + + +RotatedSecretCreateLdap.prototype['ProviderType'] = undefined; /** - * Clock skew - five minutes in seconds + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -OAuth2Client.CLOCK_SKEW_SECS_ = 300; + +RotatedSecretCreateLdap.prototype['authentication-credentials'] = 'use-user-creds'; /** - * The default max Token Lifetime is one day in seconds + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -OAuth2Client.DEFAULT_MAX_TOKEN_LIFETIME_SECS_ = 86400; +RotatedSecretCreateLdap.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -/***/ }), +RotatedSecretCreateLdap.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -/***/ 39235: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +RotatedSecretCreateLdap.prototype['description'] = undefined; +/** + * Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret + * @member {String} host-provider + * @default 'explicit' + */ -"use strict"; +RotatedSecretCreateLdap.prototype['host-provider'] = 'explicit'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -// 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.OAuthClientAuthHandler = void 0; -exports.getErrorFromOAuthErrorResponse = getErrorFromOAuthErrorResponse; -const querystring = __nccwpck_require__(83480); -const crypto_1 = __nccwpck_require__(85353); -/** List of HTTP methods that accept request bodies. */ -const METHODS_SUPPORTING_REQUEST_BODY = ['PUT', 'POST', 'PATCH']; +RotatedSecretCreateLdap.prototype['json'] = false; /** - * Abstract class for handling client authentication in OAuth-based - * operations. - * When request-body client authentication is used, only application/json and - * application/x-www-form-urlencoded content types for HTTP methods that support - * request bodies are supported. + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -class OAuthClientAuthHandler { - /** - * Instantiates an OAuth client authentication handler. - * @param clientAuthentication The client auth credentials. - */ - constructor(clientAuthentication) { - this.clientAuthentication = clientAuthentication; - this.crypto = (0, crypto_1.createCrypto)(); - } - /** - * Applies client authentication on the OAuth request's headers or POST - * body but does not process the request. - * @param opts The GaxiosOptions whose headers or data are to be modified - * depending on the client authentication mechanism to be used. - * @param bearerToken The optional bearer token to use for authentication. - * When this is used, no client authentication credentials are needed. - */ - applyClientAuthenticationOptions(opts, bearerToken) { - // Inject authenticated header. - this.injectAuthenticatedHeaders(opts, bearerToken); - // Inject authenticated request body. - if (!bearerToken) { - this.injectAuthenticatedRequestBody(opts); - } - } - /** - * Applies client authentication on the request's header if either - * basic authentication or bearer token authentication is selected. - * - * @param opts The GaxiosOptions whose headers or data are to be modified - * depending on the client authentication mechanism to be used. - * @param bearerToken The optional bearer token to use for authentication. - * When this is used, no client authentication credentials are needed. - */ - injectAuthenticatedHeaders(opts, bearerToken) { - var _a; - // Bearer token prioritized higher than basic Auth. - if (bearerToken) { - opts.headers = opts.headers || {}; - Object.assign(opts.headers, { - Authorization: `Bearer ${bearerToken}}`, - }); - } - else if (((_a = this.clientAuthentication) === null || _a === void 0 ? void 0 : _a.confidentialClientType) === 'basic') { - opts.headers = opts.headers || {}; - const clientId = this.clientAuthentication.clientId; - const clientSecret = this.clientAuthentication.clientSecret || ''; - const base64EncodedCreds = this.crypto.encodeBase64StringUtf8(`${clientId}:${clientSecret}`); - Object.assign(opts.headers, { - Authorization: `Basic ${base64EncodedCreds}`, - }); - } - } - /** - * Applies client authentication on the request's body if request-body - * client authentication is selected. - * - * @param opts The GaxiosOptions whose headers or data are to be modified - * depending on the client authentication mechanism to be used. - */ - injectAuthenticatedRequestBody(opts) { - var _a; - if (((_a = this.clientAuthentication) === null || _a === void 0 ? void 0 : _a.confidentialClientType) === 'request-body') { - const method = (opts.method || 'GET').toUpperCase(); - // Inject authenticated request body. - if (METHODS_SUPPORTING_REQUEST_BODY.indexOf(method) !== -1) { - // Get content-type. - let contentType; - const headers = opts.headers || {}; - for (const key in headers) { - if (key.toLowerCase() === 'content-type' && headers[key]) { - contentType = headers[key].toLowerCase(); - break; - } - } - if (contentType === 'application/x-www-form-urlencoded') { - opts.data = opts.data || ''; - const data = querystring.parse(opts.data); - Object.assign(data, { - client_id: this.clientAuthentication.clientId, - client_secret: this.clientAuthentication.clientSecret || '', - }); - opts.data = querystring.stringify(data); - } - else if (contentType === 'application/json') { - opts.data = opts.data || {}; - Object.assign(opts.data, { - client_id: this.clientAuthentication.clientId, - client_secret: this.clientAuthentication.clientSecret || '', - }); - } - else { - throw new Error(`${contentType} content-types are not supported with ` + - `${this.clientAuthentication.confidentialClientType} ` + - 'client authentication'); - } - } - else { - throw new Error(`${method} HTTP method does not support ` + - `${this.clientAuthentication.confidentialClientType} ` + - 'client authentication'); - } - } - } - /** - * Retry config for Auth-related requests. - * - * @remarks - * - * This is not a part of the default {@link AuthClient.transporter transporter/gaxios} - * config as some downstream APIs would prefer if customers explicitly enable retries, - * such as GCS. - */ - static get RETRY_CONFIG() { - return { - retry: true, - retryConfig: { - httpMethodsToRetry: ['GET', 'PUT', 'POST', 'HEAD', 'OPTIONS', 'DELETE'], - }, - }; - } -} -exports.OAuthClientAuthHandler = OAuthClientAuthHandler; + +RotatedSecretCreateLdap.prototype['key'] = undefined; /** - * Converts an OAuth error response to a native JavaScript Error. - * @param resp The OAuth error response to convert to a native Error object. - * @param err The optional original error. If provided, the error properties - * will be copied to the new error. - * @return The converted native Error object. + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -function getErrorFromOAuthErrorResponse(resp, err) { - // Error response. - const errorCode = resp.error; - const errorDescription = resp.error_description; - const errorUri = resp.error_uri; - let message = `Error code ${errorCode}`; - if (typeof errorDescription !== 'undefined') { - message += `: ${errorDescription}`; - } - if (typeof errorUri !== 'undefined') { - message += ` - ${errorUri}`; - } - const newError = new Error(message); - // Copy properties from original error to newly generated error. - if (err) { - const keys = Object.keys(err); - if (err.stack) { - // Copy error.stack if available. - keys.push('stack'); - } - keys.forEach(key => { - // Do not overwrite the message field. - if (key !== 'message') { - Object.defineProperty(newError, key, { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - value: err[key], - writable: false, - enumerable: true, - }); - } - }); - } - return newError; -} +RotatedSecretCreateLdap.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -/***/ }), +RotatedSecretCreateLdap.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -/***/ 90915: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +RotatedSecretCreateLdap.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ -"use strict"; +RotatedSecretCreateLdap.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=ldap) + * @member {String} rotated-password + */ -// 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.PassThroughClient = void 0; -const authclient_1 = __nccwpck_require__(58456); +RotatedSecretCreateLdap.prototype['rotated-password'] = undefined; /** - * An AuthClient without any Authentication information. Useful for: - * - Anonymous access - * - Local Emulators - * - Testing Environments - * + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=ldap) + * @member {String} rotated-username */ -class PassThroughClient extends authclient_1.AuthClient { - /** - * Creates a request without any authentication headers or checks. - * - * @remarks - * - * In testing environments it may be useful to change the provided - * {@link AuthClient.transporter} for any desired request overrides/handling. - * - * @param opts - * @returns The response of the request. - */ - async request(opts) { - return this.transporter.request(opts); - } - /** - * A required method of the base class. - * Always will return an empty object. - * - * @returns {} - */ - async getAccessToken() { - return {}; - } - /** - * A required method of the base class. - * Always will return an empty object. - * - * @returns {} - */ - async getRequestHeaders() { - return {}; - } -} -exports.PassThroughClient = PassThroughClient; -const a = new PassThroughClient(); -a.getAccessToken(); +RotatedSecretCreateLdap.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ -/***/ }), +RotatedSecretCreateLdap.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ -/***/ 48771: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +RotatedSecretCreateLdap.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/ldap] + * @member {String} rotator-type + */ -"use strict"; +RotatedSecretCreateLdap.prototype['rotator-type'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PluggableAuthClient = exports.ExecutableError = void 0; -const baseexternalclient_1 = __nccwpck_require__(27036); -const executable_response_1 = __nccwpck_require__(3269); -const pluggable_auth_handler_1 = __nccwpck_require__(75046); +RotatedSecretCreateLdap.prototype['secure-access-enable'] = undefined; /** - * Error thrown from the executable run by PluggableAuthClient. + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host */ -class ExecutableError extends Error { - constructor(message, code) { - super(`The executable failed with exit code: ${code} and error message: ${message}.`); - this.code = code; - Object.setPrototypeOf(this, new.target.prototype); - } -} -exports.ExecutableError = ExecutableError; + +RotatedSecretCreateLdap.prototype['secure-access-host'] = undefined; /** - * The default executable timeout when none is provided, in milliseconds. + * Default domain name server. i.e. microsoft.com + * @member {String} secure-access-rdp-domain */ -const DEFAULT_EXECUTABLE_TIMEOUT_MILLIS = 30 * 1000; + +RotatedSecretCreateLdap.prototype['secure-access-rdp-domain'] = undefined; /** - * The minimum allowed executable timeout in milliseconds. + * Destination URL to inject secrets + * @member {String} secure-access-url */ -const MINIMUM_EXECUTABLE_TIMEOUT_MILLIS = 5 * 1000; + +RotatedSecretCreateLdap.prototype['secure-access-url'] = undefined; /** - * The maximum allowed executable timeout in milliseconds. + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false */ -const MAXIMUM_EXECUTABLE_TIMEOUT_MILLIS = 120 * 1000; + +RotatedSecretCreateLdap.prototype['secure-access-web'] = false; /** - * The environment variable to check to see if executable can be run. - * Value must be set to '1' for the executable to run. + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false */ -const GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES = 'GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES'; + +RotatedSecretCreateLdap.prototype['secure-access-web-browsing'] = false; /** - * The maximum currently supported executable version. + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false */ -const MAXIMUM_EXECUTABLE_VERSION = 1; + +RotatedSecretCreateLdap.prototype['secure-access-web-proxy'] = false; /** - * PluggableAuthClient enables the exchange of workload identity pool external credentials for - * Google access tokens by retrieving 3rd party tokens through a user supplied executable. These - * scripts/executables are completely independent of the Google Cloud Auth libraries. These - * credentials plug into ADC and will call the specified executable to retrieve the 3rd party token - * to be exchanged for a Google access token. - * - *

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

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

The executable must print out the 3rd party token to STDOUT in JSON format. When an - * output_file is specified in the credential configuration, the executable must also handle writing the - * JSON response to this file. - * - *

- * OIDC response sample:
- * {
- *   "version": 1,
- *   "success": true,
- *   "token_type": "urn:ietf:params:oauth:token-type:id_token",
- *   "id_token": "HEADER.PAYLOAD.SIGNATURE",
- *   "expiration_time": 1620433341
- * }
- *
- * SAML2 response sample:
- * {
- *   "version": 1,
- *   "success": true,
- *   "token_type": "urn:ietf:params:oauth:token-type:saml2",
- *   "saml_response": "...",
- *   "expiration_time": 1620433341
- * }
- *
- * Error response sample:
- * {
- *   "version": 1,
- *   "success": false,
- *   "code": "401",
- *   "message": "Error message."
- * }
- * 
- * - *

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

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

Please see this repositories README for a complete executable request/response specification. + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateLdap.prototype['tags'] = undefined; +/** + * A list of linked targets to be associated, Relevant only for Secure Remote Access for ssh cert issuer and ldap rotated secret, To specify multiple targets use argument multiple times + * @member {Array.} target + */ + +RotatedSecretCreateLdap.prototype['target'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateLdap.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretCreateLdap.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotatedSecretCreateLdap.prototype['uid-token'] = undefined; +/** + * LDAP User Attribute, Default value \"cn\" + * @member {String} user-attribute + * @default 'cn' + */ + +RotatedSecretCreateLdap.prototype['user-attribute'] = 'cn'; +/** + * Base DN to Perform User Search + * @member {String} user-dn */ -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; +RotatedSecretCreateLdap.prototype['user-dn'] = undefined; +var _default = RotatedSecretCreateLdap; +exports["default"] = _default; /***/ }), -/***/ 75046: +/***/ 90405: /***/ ((__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__(48771); -const executable_response_1 = __nccwpck_require__(3269); -const childProcess = __nccwpck_require__(35317); -const fs = __nccwpck_require__(79896); + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * A handler used to retrieve 3rd party token responses from user defined - * executables and cached file output for the PluggableAuthClient class. + * The RotatedSecretCreateMongodb model module. + * @module model/RotatedSecretCreateMongodb + * @version 3.6.3 */ -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())); - } - }); - }); +var RotatedSecretCreateMongodb = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateMongodb. + * @alias module:model/RotatedSecretCreateMongodb + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name + */ + function RotatedSecretCreateMongodb(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateMongodb); + + RotatedSecretCreateMongodb.initialize(this, name, rotatorType, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotatedSecretCreateMongodb, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; } /** - * 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. + * Constructs a RotatedSecretCreateMongodb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateMongodb} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateMongodb} The populated RotatedSecretCreateMongodb instance. */ - async retrieveCachedResponse() { - if (!this.outputFile || this.outputFile.length === 0) { - return undefined; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateMongodb(); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - let filePath; - try { - filePath = await fs.promises.realpath(this.outputFile); + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - catch (_a) { - // If file path cannot be resolved, return undefined. - return undefined; + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - if (!(await fs.promises.lstat(filePath)).isFile()) { - // If path does not lead to file, return undefined. - return undefined; + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - const responseString = await fs.promises.readFile(filePath, { - encoding: 'utf8', - }); - if (responseString === '') { - return undefined; + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - 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; + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - 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}`); + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - } - /** - * 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.`); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - // 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); - } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - return components; - } -} -exports.PluggableAuthHandler = PluggableAuthHandler; + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -/***/ 93849: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -// 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__(89577); -const querystring_1 = __nccwpck_require__(83480); -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 (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - if (json.type !== 'authorized_user') { - throw new Error('The incoming JSON object does not have the "authorized_user" type'); + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); } - if (!json.client_id) { - throw new Error('The incoming JSON object does not contain a client_id field'); + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - if (!json.client_secret) { - throw new Error('The incoming JSON object does not contain a client_secret field'); + + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); } - if (!json.refresh_token) { - throw new Error('The incoming JSON object does not contain a refresh_token field'); + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); } - 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); + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - else { - return this.fromStreamAsync(inputStream); + + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } - 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); - } - }); - }); - } - /** - * Create a UserRefreshClient credentials instance using the given input - * options. - * @param json The input object. - */ - static fromJSON(json) { - const client = new UserRefreshClient(); - client.fromJSON(json); - return client; - } -} -exports.UserRefreshClient = UserRefreshClient; + }]); + + return RotatedSecretCreateMongodb; +}(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + + +RotatedSecretCreateMongodb.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretCreateMongodb.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateMongodb.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateMongodb.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +RotatedSecretCreateMongodb.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateMongodb.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateMongodb.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateMongodb.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateMongodb.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ + +RotatedSecretCreateMongodb.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +RotatedSecretCreateMongodb.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ + +RotatedSecretCreateMongodb.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateMongodb.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateMongodb.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ + +RotatedSecretCreateMongodb.prototype['rotator-type'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ + +RotatedSecretCreateMongodb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ + +RotatedSecretCreateMongodb.prototype['secure-access-db-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +RotatedSecretCreateMongodb.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +RotatedSecretCreateMongodb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +RotatedSecretCreateMongodb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateMongodb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateMongodb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretCreateMongodb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +RotatedSecretCreateMongodb.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateMongodb; +exports["default"] = _default; /***/ }), -/***/ 959: +/***/ 15103: /***/ ((__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__(67773); -const querystring = __nccwpck_require__(83480); -const transporters_1 = __nccwpck_require__(57195); -const oauth2common_1 = __nccwpck_require__(39235); + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Implements the OAuth 2.0 token exchange based on - * https://tools.ietf.org/html/rfc8693 + * The RotatedSecretCreateMssql model module. + * @module model/RotatedSecretCreateMssql + * @version 3.6.3 */ -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(); +var RotatedSecretCreateMssql = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateMssql. + * @alias module:model/RotatedSecretCreateMssql + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name + */ + function RotatedSecretCreateMssql(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateMssql); + + RotatedSecretCreateMssql.initialize(this, name, rotatorType, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotatedSecretCreateMssql, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; } /** - * 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. + * Constructs a RotatedSecretCreateMssql from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateMssql} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateMssql} The populated RotatedSecretCreateMssql instance. */ - 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; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateMssql(); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - 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; + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - } -} -exports.StsCredentials = StsCredentials; + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -/***/ 63957: -/***/ ((__unused_webpack_module, exports) => { + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -"use strict"; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -// 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; + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - else if (this.formatType === 'json' && this.subjectTokenFieldName) { - const response = await context.transporter.request(opts); - subjectToken = response.data[this.subjectTokenFieldName]; + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - if (!subjectToken) { - throw new Error('Unable to parse the subject_token from the credential_source URL'); + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - return subjectToken; - } -} -exports.UrlSubjectTokenSupplier = UrlSubjectTokenSupplier; + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -/***/ 42816: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/* global window */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.BrowserCrypto = void 0; -// This file implements crypto functions we need using in-browser -// SubtleCrypto interface `window.crypto.subtle`. -const base64js = __nccwpck_require__(38793); -const crypto_1 = __nccwpck_require__(85353); -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."); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - } - 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 += '='; + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); } - 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; + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } -/***/ 85353: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -// 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__(42816); -const crypto_2 = __nccwpck_require__(66826); -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(''); -} + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } -/***/ }), + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -/***/ 66826: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NodeCrypto = void 0; -const crypto = __nccwpck_require__(76982); -class NodeCrypto { - async sha256DigestBase64(str) { - return crypto.createHash('sha256').update(str).digest('base64'); - } - randomBytesBase64(count) { - return crypto.randomBytes(count).toString('base64'); - } - async verify(pubkey, data, signature) { - const verifier = crypto.createVerify('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()); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } -} -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); -} + }]); + + return RotatedSecretCreateMssql; +}(); /** - * Converts an ArrayBuffer to a Node.js Buffer. - * @param arrayBuffer The ArrayBuffer input to covert. - * @return The Buffer representation of the input. + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ -function toBuffer(arrayBuffer) { - return Buffer.from(arrayBuffer); -} - - -/***/ }), - -/***/ 31882: -/***/ ((__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__(85676); -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__(81090); -exports.gaxios = __nccwpck_require__(67773); -var authclient_1 = __nccwpck_require__(58456); -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__(42555); -Object.defineProperty(exports, "Compute", ({ enumerable: true, get: function () { return computeclient_1.Compute; } })); -var envDetect_1 = __nccwpck_require__(38697); -Object.defineProperty(exports, "GCPEnv", ({ enumerable: true, get: function () { return envDetect_1.GCPEnv; } })); -var iam_1 = __nccwpck_require__(33480); -Object.defineProperty(exports, "IAMAuth", ({ enumerable: true, get: function () { return iam_1.IAMAuth; } })); -var idtokenclient_1 = __nccwpck_require__(94204); -Object.defineProperty(exports, "IdTokenClient", ({ enumerable: true, get: function () { return idtokenclient_1.IdTokenClient; } })); -var jwtaccess_1 = __nccwpck_require__(6990); -Object.defineProperty(exports, "JWTAccess", ({ enumerable: true, get: function () { return jwtaccess_1.JWTAccess; } })); -var jwtclient_1 = __nccwpck_require__(47927); -Object.defineProperty(exports, "JWT", ({ enumerable: true, get: function () { return jwtclient_1.JWT; } })); -var impersonated_1 = __nccwpck_require__(23778); -Object.defineProperty(exports, "Impersonated", ({ enumerable: true, get: function () { return impersonated_1.Impersonated; } })); -var oauth2client_1 = __nccwpck_require__(89577); -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__(13832); -Object.defineProperty(exports, "LoginTicket", ({ enumerable: true, get: function () { return loginticket_1.LoginTicket; } })); -var refreshclient_1 = __nccwpck_require__(93849); -Object.defineProperty(exports, "UserRefreshClient", ({ enumerable: true, get: function () { return refreshclient_1.UserRefreshClient; } })); -var awsclient_1 = __nccwpck_require__(82615); -Object.defineProperty(exports, "AwsClient", ({ enumerable: true, get: function () { return awsclient_1.AwsClient; } })); -var awsrequestsigner_1 = __nccwpck_require__(40341); -Object.defineProperty(exports, "AwsRequestSigner", ({ enumerable: true, get: function () { return awsrequestsigner_1.AwsRequestSigner; } })); -var identitypoolclient_1 = __nccwpck_require__(14602); -Object.defineProperty(exports, "IdentityPoolClient", ({ enumerable: true, get: function () { return identitypoolclient_1.IdentityPoolClient; } })); -var externalclient_1 = __nccwpck_require__(84377); -Object.defineProperty(exports, "ExternalAccountClient", ({ enumerable: true, get: function () { return externalclient_1.ExternalAccountClient; } })); -var baseexternalclient_1 = __nccwpck_require__(27036); -Object.defineProperty(exports, "BaseExternalAccountClient", ({ enumerable: true, get: function () { return baseexternalclient_1.BaseExternalAccountClient; } })); -var downscopedclient_1 = __nccwpck_require__(98418); -Object.defineProperty(exports, "DownscopedClient", ({ enumerable: true, get: function () { return downscopedclient_1.DownscopedClient; } })); -var pluggable_auth_client_1 = __nccwpck_require__(48771); -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__(90915); -Object.defineProperty(exports, "PassThroughClient", ({ enumerable: true, get: function () { return passthrough_1.PassThroughClient; } })); -var transporters_1 = __nccwpck_require__(57195); -Object.defineProperty(exports, "DefaultTransporter", ({ enumerable: true, get: function () { return transporters_1.DefaultTransporter; } })); -const auth = new googleauth_1.GoogleAuth(); -exports.auth = auth; +RotatedSecretCreateMssql.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ +RotatedSecretCreateMssql.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -/***/ }), +RotatedSecretCreateMssql.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -/***/ 64900: -/***/ ((__unused_webpack_module, exports) => { +RotatedSecretCreateMssql.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -"use strict"; +RotatedSecretCreateMssql.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -// 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); - } - } -} +RotatedSecretCreateMssql.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ +RotatedSecretCreateMssql.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -/***/ }), +RotatedSecretCreateMssql.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -/***/ 57195: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +RotatedSecretCreateMssql.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ -"use strict"; +RotatedSecretCreateMssql.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ -// 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__(67773); -const options_1 = __nccwpck_require__(64900); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const pkg = __nccwpck_require__(86088); -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; +RotatedSecretCreateMssql.prototype['rotated-password'] = undefined; /** - * Default user agent. + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username */ -DefaultTransporter.USER_AGENT = `${PRODUCT_NAME}/${pkg.version}`; +RotatedSecretCreateMssql.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ -/***/ }), +RotatedSecretCreateMssql.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ -/***/ 77300: -/***/ (function(__unused_webpack_module, exports) { +RotatedSecretCreateMssql.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ -"use strict"; +RotatedSecretCreateMssql.prototype['rotator-type'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ -// 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; +RotatedSecretCreateMssql.prototype['secure-access-bastion-issuer'] = undefined; /** - * 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 + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name */ -function snakeToCamel(str) { - return str.replace(/([_][^_])/g, match => match.slice(1).toUpperCase()); -} + +RotatedSecretCreateMssql.prototype['secure-access-db-name'] = undefined; /** - * 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 + * The DB schema + * @member {String} secure-access-db-schema */ -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 }; -} + +RotatedSecretCreateMssql.prototype['secure-access-db-schema'] = undefined; /** - * A simple LRU cache utility. - * Not meant for external usage. - * - * @experimental - * @internal + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -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(); - } -}; +RotatedSecretCreateMssql.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ -/***/ }), +RotatedSecretCreateMssql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ -/***/ 37022: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +RotatedSecretCreateMssql.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -"use strict"; +RotatedSecretCreateMssql.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ +RotatedSecretCreateMssql.prototype['target-name'] = undefined; /** - * Copyright 2018 Google LLC - * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -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 __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var _GoogleToken_instances, _GoogleToken_inFlightRequest, _GoogleToken_getTokenAsync, _GoogleToken_getTokenAsyncInner, _GoogleToken_ensureEmail, _GoogleToken_revokeTokenAsync, _GoogleToken_configure, _GoogleToken_requestToken; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GoogleToken = void 0; -const fs = __nccwpck_require__(79896); -const gaxios_1 = __nccwpck_require__(67773); -const jws = __nccwpck_require__(33324); -const path = __nccwpck_require__(16928); -const util_1 = __nccwpck_require__(39023); -const readFile = fs.readFile - ? (0, util_1.promisify)(fs.readFile) - : async () => { - // if running in the web-browser, fs.readFile may not have been shimmed. - throw new ErrorWithCode('use key rather than keyFile.', 'MISSING_CREDENTIALS'); - }; -const GOOGLE_TOKEN_URL = 'https://www.googleapis.com/oauth2/v4/token'; -const GOOGLE_REVOKE_TOKEN_URL = 'https://accounts.google.com/o/oauth2/revoke?token='; -class ErrorWithCode extends Error { - constructor(message, code) { - super(message); - this.code = code; - } -} -class GoogleToken { - get accessToken() { - return this.rawToken ? this.rawToken.access_token : undefined; - } - get idToken() { - return this.rawToken ? this.rawToken.id_token : undefined; - } - get tokenType() { - return this.rawToken ? this.rawToken.token_type : undefined; - } - get refreshToken() { - return this.rawToken ? this.rawToken.refresh_token : undefined; - } - /** - * Create a GoogleToken. - * - * @param options Configuration object. - */ - constructor(options) { - _GoogleToken_instances.add(this); - this.transporter = { - request: opts => (0, gaxios_1.request)(opts), - }; - _GoogleToken_inFlightRequest.set(this, void 0); - __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_configure).call(this, options); - } - /** - * Returns whether the token has expired. - * - * @return true if the token has expired, false otherwise. - */ - hasExpired() { - const now = new Date().getTime(); - if (this.rawToken && this.expiresAt) { - return now >= this.expiresAt; - } - else { - return true; - } - } - /** - * Returns whether the token will expire within eagerRefreshThresholdMillis - * - * @return true if the token will be expired within eagerRefreshThresholdMillis, false otherwise. - */ - isTokenExpiring() { - var _a; - const now = new Date().getTime(); - const eagerRefreshThresholdMillis = (_a = this.eagerRefreshThresholdMillis) !== null && _a !== void 0 ? _a : 0; - if (this.rawToken && this.expiresAt) { - return this.expiresAt <= now + eagerRefreshThresholdMillis; - } - else { - return true; - } - } - getToken(callback, opts = {}) { - if (typeof callback === 'object') { - opts = callback; - callback = undefined; - } - opts = Object.assign({ - forceRefresh: false, - }, opts); - if (callback) { - const cb = callback; - __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_getTokenAsync).call(this, opts).then(t => cb(null, t), callback); - return; - } - return __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_getTokenAsync).call(this, opts); - } - /** - * Given a keyFile, extract the key and client email if available - * @param keyFile Path to a json, pem, or p12 file that contains the key. - * @returns an object with privateKey and clientEmail properties - */ - async getCredentials(keyFile) { - const ext = path.extname(keyFile); - switch (ext) { - case '.json': { - const key = await readFile(keyFile, 'utf8'); - const body = JSON.parse(key); - const privateKey = body.private_key; - const clientEmail = body.client_email; - if (!privateKey || !clientEmail) { - throw new ErrorWithCode('private_key and client_email are required.', 'MISSING_CREDENTIALS'); - } - return { privateKey, clientEmail }; - } - case '.der': - case '.crt': - case '.pem': { - const privateKey = await readFile(keyFile, 'utf8'); - return { privateKey }; - } - case '.p12': - case '.pfx': { - throw new ErrorWithCode('*.p12 certificates are not supported after v6.1.2. ' + - 'Consider utilizing *.json format or converting *.p12 to *.pem using the OpenSSL CLI.', 'UNKNOWN_CERTIFICATE_TYPE'); - } - default: - throw new ErrorWithCode('Unknown certificate type. Type is determined based on file extension. ' + - 'Current supported extensions are *.json, and *.pem.', 'UNKNOWN_CERTIFICATE_TYPE'); - } - } - revokeToken(callback) { - if (callback) { - __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_revokeTokenAsync).call(this).then(() => callback(), callback); - return; - } - return __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_revokeTokenAsync).call(this); - } -} -exports.GoogleToken = GoogleToken; -_GoogleToken_inFlightRequest = new WeakMap(), _GoogleToken_instances = new WeakSet(), _GoogleToken_getTokenAsync = async function _GoogleToken_getTokenAsync(opts) { - if (__classPrivateFieldGet(this, _GoogleToken_inFlightRequest, "f") && !opts.forceRefresh) { - return __classPrivateFieldGet(this, _GoogleToken_inFlightRequest, "f"); - } - try { - return await (__classPrivateFieldSet(this, _GoogleToken_inFlightRequest, __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_getTokenAsyncInner).call(this, opts), "f")); - } - finally { - __classPrivateFieldSet(this, _GoogleToken_inFlightRequest, undefined, "f"); - } -}, _GoogleToken_getTokenAsyncInner = async function _GoogleToken_getTokenAsyncInner(opts) { - if (this.isTokenExpiring() === false && opts.forceRefresh === false) { - return Promise.resolve(this.rawToken); - } - if (!this.key && !this.keyFile) { - throw new Error('No key or keyFile set.'); - } - if (!this.key && this.keyFile) { - const creds = await this.getCredentials(this.keyFile); - this.key = creds.privateKey; - this.iss = creds.clientEmail || this.iss; - if (!creds.clientEmail) { - __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_ensureEmail).call(this); - } - } - return __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_requestToken).call(this); -}, _GoogleToken_ensureEmail = function _GoogleToken_ensureEmail() { - if (!this.iss) { - throw new ErrorWithCode('email is required.', 'MISSING_CREDENTIALS'); - } -}, _GoogleToken_revokeTokenAsync = async function _GoogleToken_revokeTokenAsync() { - if (!this.accessToken) { - throw new Error('No token to revoke.'); - } - const url = GOOGLE_REVOKE_TOKEN_URL + this.accessToken; - await this.transporter.request({ - url, - retry: true, - }); - __classPrivateFieldGet(this, _GoogleToken_instances, "m", _GoogleToken_configure).call(this, { - email: this.iss, - sub: this.sub, - key: this.key, - keyFile: this.keyFile, - scope: this.scope, - additionalClaims: this.additionalClaims, - }); -}, _GoogleToken_configure = function _GoogleToken_configure(options = {}) { - this.keyFile = options.keyFile; - this.key = options.key; - this.rawToken = undefined; - this.iss = options.email || options.iss; - this.sub = options.sub; - this.additionalClaims = options.additionalClaims; - if (typeof options.scope === 'object') { - this.scope = options.scope.join(' '); - } - else { - this.scope = options.scope; - } - this.eagerRefreshThresholdMillis = options.eagerRefreshThresholdMillis; - if (options.transporter) { - this.transporter = options.transporter; - } -}, _GoogleToken_requestToken = + +RotatedSecretCreateMssql.prototype['token'] = undefined; /** - * Request the token from Google. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -async function _GoogleToken_requestToken() { - var _a, _b; - const iat = Math.floor(new Date().getTime() / 1000); - const additionalClaims = this.additionalClaims || {}; - const payload = Object.assign({ - iss: this.iss, - scope: this.scope, - aud: GOOGLE_TOKEN_URL, - exp: iat + 3600, - iat, - sub: this.sub, - }, additionalClaims); - const signedJWT = jws.sign({ - header: { alg: 'RS256' }, - payload, - secret: this.key, - }); - try { - const r = await this.transporter.request({ - method: 'POST', - url: GOOGLE_TOKEN_URL, - data: { - grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer', - assertion: signedJWT, - }, - headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - responseType: 'json', - retryConfig: { - httpMethodsToRetry: ['POST'], - }, - }); - this.rawToken = r.data; - this.expiresAt = - r.data.expires_in === null || r.data.expires_in === undefined - ? undefined - : (iat + r.data.expires_in) * 1000; - return this.rawToken; - } - catch (e) { - this.rawToken = undefined; - this.tokenExpires = undefined; - const body = e.response && ((_a = e.response) === null || _a === void 0 ? void 0 : _a.data) - ? (_b = e.response) === null || _b === void 0 ? void 0 : _b.data - : {}; - if (body.error) { - const desc = body.error_description - ? `: ${body.error_description}` - : ''; - e.message = `${body.error}${desc}`; - } - throw e; - } -}; -//# sourceMappingURL=index.js.map + +RotatedSecretCreateMssql.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateMssql; +exports["default"] = _default; /***/ }), -/***/ 65679: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 11433: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; + +Object.defineProperty(exports, "__esModule", ({ + value: true })); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.HttpsProxyAgent = void 0; -const net = __importStar(__nccwpck_require__(69278)); -const tls = __importStar(__nccwpck_require__(64756)); -const assert_1 = __importDefault(__nccwpck_require__(42613)); -const debug_1 = __importDefault(__nccwpck_require__(2830)); -const agent_base_1 = __nccwpck_require__(6744); -const url_1 = __nccwpck_require__(87016); -const parse_proxy_response_1 = __nccwpck_require__(68493); -const debug = (0, debug_1.default)('https-proxy-agent'); -const setServernameFromNonIpHost = (options) => { - if (options.servername === undefined && - options.host && - !net.isIP(options.host)) { - return { - ...options, - servername: options.host, - }; - } - return options; -}; +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to - * the specified "HTTP(s) proxy server" in order to proxy HTTPS requests. - * - * Outgoing HTTP requests are first tunneled through the proxy server using the - * `CONNECT` HTTP request method to establish a connection to the proxy server, - * and then the proxy server connects to the destination target and issues the - * HTTP request from the proxy server. - * - * `https:` requests have their socket connection upgraded to TLS once - * the connection to the proxy server has been established. + * The RotatedSecretCreateMysql model module. + * @module model/RotatedSecretCreateMysql + * @version 3.6.3 */ -class HttpsProxyAgent extends agent_base_1.Agent { - constructor(proxy, opts) { - super(opts); - this.options = { path: undefined }; - this.proxy = typeof proxy === 'string' ? new url_1.URL(proxy) : proxy; - this.proxyHeaders = opts?.headers ?? {}; - debug('Creating new HttpsProxyAgent instance: %o', this.proxy.href); - // Trim off the brackets from IPv6 addresses - const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, ''); - const port = this.proxy.port - ? parseInt(this.proxy.port, 10) - : this.proxy.protocol === 'https:' - ? 443 - : 80; - this.connectOpts = { - // Attempt to negotiate http/1.1 for proxy servers that support http/2 - ALPNProtocols: ['http/1.1'], - ...(opts ? omit(opts, 'headers') : null), - host, - port, - }; +var RotatedSecretCreateMysql = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateMysql. + * @alias module:model/RotatedSecretCreateMysql + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name + */ + function RotatedSecretCreateMysql(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateMysql); + + RotatedSecretCreateMysql.initialize(this, name, rotatorType, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotatedSecretCreateMysql, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; } /** - * Called when the node-core HTTP client library is creating a - * new HTTP request. + * Constructs a RotatedSecretCreateMysql from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateMysql} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateMysql} The populated RotatedSecretCreateMysql instance. */ - async connect(req, opts) { - const { proxy } = this; - if (!opts.host) { - throw new TypeError('No "host" provided'); + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateMysql(); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - // Create a socket connection to the proxy server. - let socket; - if (proxy.protocol === 'https:') { - debug('Creating `tls.Socket`: %o', this.connectOpts); - socket = tls.connect(setServernameFromNonIpHost(this.connectOpts)); + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - else { - debug('Creating `net.Socket`: %o', this.connectOpts); - socket = net.connect(this.connectOpts); + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - const headers = typeof this.proxyHeaders === 'function' - ? this.proxyHeaders() - : { ...this.proxyHeaders }; - const host = net.isIPv6(opts.host) ? `[${opts.host}]` : opts.host; - let payload = `CONNECT ${host}:${opts.port} HTTP/1.1\r\n`; - // Inject the `Proxy-Authorization` header if necessary. - if (proxy.username || proxy.password) { - const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`; - headers['Proxy-Authorization'] = `Basic ${Buffer.from(auth).toString('base64')}`; + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - headers.Host = `${host}:${opts.port}`; - if (!headers['Proxy-Connection']) { - headers['Proxy-Connection'] = this.keepAlive - ? 'Keep-Alive' - : 'close'; + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - for (const name of Object.keys(headers)) { - payload += `${name}: ${headers[name]}\r\n`; + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - const proxyResponsePromise = (0, parse_proxy_response_1.parseProxyResponse)(socket); - socket.write(`${payload}\r\n`); - const { connect, buffered } = await proxyResponsePromise; - req.emit('proxyConnect', connect); - this.emit('proxyConnect', connect, req); - if (connect.statusCode === 200) { - req.once('socket', resume); - if (opts.secureEndpoint) { - // The proxy is connecting to a TLS server, so upgrade - // this socket connection to a TLS connection. - debug('Upgrading socket connection to TLS'); - return tls.connect({ - ...omit(setServernameFromNonIpHost(opts), 'host', 'path', 'port'), - socket, - }); - } - return socket; + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - // Some other status code that's not 200... need to re-play the HTTP - // header "data" events onto the socket once the HTTP machinery is - // attached so that the node core `http` can parse and handle the - // error status code. - // Close the original socket, and a new "fake" socket is returned - // instead, so that the proxy doesn't get the HTTP request - // written to it (which may contain `Authorization` headers or other - // sensitive data). - // - // See: https://hackerone.com/reports/541502 - socket.destroy(); - const fakeSocket = new net.Socket({ writable: false }); - fakeSocket.readable = true; - // Need to wait for the "socket" event to re-play the "data" events. - req.once('socket', (s) => { - debug('Replaying proxy buffer for failed request'); - (0, assert_1.default)(s.listenerCount('data') > 0); - // Replay the "buffered" Buffer onto the fake `socket`, since at - // this point the HTTP module machinery has been hooked up for - // the user. - s.push(buffered); - s.push(null); - }); - return fakeSocket; - } -} -HttpsProxyAgent.protocols = ['http', 'https']; -exports.HttpsProxyAgent = HttpsProxyAgent; -function resume(socket) { - socket.resume(); -} -function omit(obj, ...keys) { - const ret = {}; - let key; - for (key in obj) { - if (!keys.includes(key)) { - ret[key] = obj[key]; + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - } - return ret; -} -//# sourceMappingURL=index.js.map -/***/ }), + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -/***/ 68493: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.parseProxyResponse = void 0; -const debug_1 = __importDefault(__nccwpck_require__(2830)); -const debug = (0, debug_1.default)('https-proxy-agent:parse-proxy-response'); -function parseProxyResponse(socket) { - return new Promise((resolve, reject) => { - // we need to buffer any HTTP traffic that happens with the proxy before we get - // the CONNECT response, so that if the response is anything other than an "200" - // response code, then we can re-play the "data" events on the socket once the - // HTTP parser is hooked up... - let buffersLength = 0; - const buffers = []; - function read() { - const b = socket.read(); - if (b) - ondata(b); - else - socket.once('readable', read); + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); } - function cleanup() { - socket.removeListener('end', onend); - socket.removeListener('error', onerror); - socket.removeListener('readable', read); + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - function onend() { - cleanup(); - debug('onend'); - reject(new Error('Proxy connection ended before receiving CONNECT response')); + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - function onerror(err) { - cleanup(); - debug('onerror %o', err); - reject(err); + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); } - function ondata(b) { - buffers.push(b); - buffersLength += b.length; - const buffered = Buffer.concat(buffers, buffersLength); - const endOfHeaders = buffered.indexOf('\r\n\r\n'); - if (endOfHeaders === -1) { - // keep buffering - debug('have not received end of HTTP headers yet...'); - read(); - return; - } - const headerParts = buffered - .slice(0, endOfHeaders) - .toString('ascii') - .split('\r\n'); - const firstLine = headerParts.shift(); - if (!firstLine) { - socket.destroy(); - return reject(new Error('No header received from proxy CONNECT response')); - } - const firstLineParts = firstLine.split(' '); - const statusCode = +firstLineParts[1]; - const statusText = firstLineParts.slice(2).join(' '); - const headers = {}; - for (const header of headerParts) { - if (!header) - continue; - const firstColon = header.indexOf(':'); - if (firstColon === -1) { - socket.destroy(); - return reject(new Error(`Invalid header from proxy CONNECT response: "${header}"`)); - } - const key = header.slice(0, firstColon).toLowerCase(); - const value = header.slice(firstColon + 1).trimStart(); - const current = headers[key]; - if (typeof current === 'string') { - headers[key] = [current, value]; - } - else if (Array.isArray(current)) { - current.push(value); - } - else { - headers[key] = value; - } - } - debug('got proxy server response: %o %o', firstLine, headers); - cleanup(); - resolve({ - connect: { - statusCode, - statusText, - headers, - }, - buffered, - }); + + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - socket.on('error', onerror); - socket.on('end', onend); - read(); - }); -} -exports.parseProxyResponse = parseProxyResponse; -//# sourceMappingURL=parse-proxy-response.js.map -/***/ }), + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } -/***/ 39274: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } -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; - } -})); + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return RotatedSecretCreateMysql; +}(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + + +RotatedSecretCreateMysql.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretCreateMysql.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateMysql.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -var _v = _interopRequireDefault(__nccwpck_require__(4349)); +RotatedSecretCreateMysql.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var _v2 = _interopRequireDefault(__nccwpck_require__(40443)); +RotatedSecretCreateMysql.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -var _v3 = _interopRequireDefault(__nccwpck_require__(93586)); +RotatedSecretCreateMysql.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -var _v4 = _interopRequireDefault(__nccwpck_require__(77569)); +RotatedSecretCreateMysql.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -var _nil = _interopRequireDefault(__nccwpck_require__(5381)); +RotatedSecretCreateMysql.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -var _version = _interopRequireDefault(__nccwpck_require__(6270)); +RotatedSecretCreateMysql.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ -var _validate = _interopRequireDefault(__nccwpck_require__(91710)); +RotatedSecretCreateMysql.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ -var _stringify = _interopRequireDefault(__nccwpck_require__(30999)); +RotatedSecretCreateMysql.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ -var _parse = _interopRequireDefault(__nccwpck_require__(46425)); +RotatedSecretCreateMysql.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +RotatedSecretCreateMysql.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ -/***/ }), +RotatedSecretCreateMysql.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ -/***/ 11510: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +RotatedSecretCreateMysql.prototype['rotator-type'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ -"use strict"; +RotatedSecretCreateMysql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ +RotatedSecretCreateMysql.prototype['secure-access-db-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +RotatedSecretCreateMysql.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ -var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); +RotatedSecretCreateMysql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +RotatedSecretCreateMysql.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } +RotatedSecretCreateMysql.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - return _crypto.default.createHash('md5').update(bytes).digest(); -} +RotatedSecretCreateMysql.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -var _default = md5; +RotatedSecretCreateMysql.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotatedSecretCreateMysql.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateMysql; exports["default"] = _default; /***/ }), -/***/ 89783: +/***/ 14823: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -231094,161 +187573,310 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var _default = { - randomUUID: _crypto.default.randomUUID -}; -exports["default"] = _default; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/***/ }), +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/***/ 5381: -/***/ ((__unused_webpack_module, exports) => { +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -"use strict"; +/** + * The RotatedSecretCreateOracledb model module. + * @module model/RotatedSecretCreateOracledb + * @version 3.6.3 + */ +var RotatedSecretCreateOracledb = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateOracledb. + * @alias module:model/RotatedSecretCreateOracledb + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name + */ + function RotatedSecretCreateOracledb(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateOracledb); + RotatedSecretCreateOracledb.initialize(this, name, rotatorType, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _default = '00000000-0000-0000-0000-000000000000'; -exports["default"] = _default; -/***/ }), + _createClass(RotatedSecretCreateOracledb, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } + /** + * Constructs a RotatedSecretCreateOracledb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateOracledb} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateOracledb} The populated RotatedSecretCreateOracledb instance. + */ -/***/ 46425: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateOracledb(); -"use strict"; + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -var _validate = _interopRequireDefault(__nccwpck_require__(91710)); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -function parse(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError('Invalid UUID'); - } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - let v; - const arr = new Uint8Array(16); // Parse ########-....-....-....-............ + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - 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 ........-####-....-....-............ + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v & 0xff; // Parse ........-....-####-....-............ + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 0xff; // Parse ........-....-....-####-............ + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } - 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) + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } - 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; -} + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -var _default = parse; -exports["default"] = _default; + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -/***/ }), + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } -/***/ 13709: -/***/ ((__unused_webpack_module, exports) => { + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -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; + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } -/***/ }), + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } -/***/ 70559: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -"use strict"; + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = rng; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } -var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); + return obj; + } + }]); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + return RotatedSecretCreateOracledb; +}(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ -const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate -let poolPtr = rnds8Pool.length; +RotatedSecretCreateOracledb.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ -function rng() { - if (poolPtr > rnds8Pool.length - 16) { - _crypto.default.randomFillSync(rnds8Pool); +RotatedSecretCreateOracledb.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ - poolPtr = 0; - } +RotatedSecretCreateOracledb.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ - return rnds8Pool.slice(poolPtr, poolPtr += 16); -} +RotatedSecretCreateOracledb.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ }), +RotatedSecretCreateOracledb.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -/***/ 8641: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +RotatedSecretCreateOracledb.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -"use strict"; +RotatedSecretCreateOracledb.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ +RotatedSecretCreateOracledb.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; +RotatedSecretCreateOracledb.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ -var _crypto = _interopRequireDefault(__nccwpck_require__(76982)); +RotatedSecretCreateOracledb.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +RotatedSecretCreateOracledb.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ -function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } +RotatedSecretCreateOracledb.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - return _crypto.default.createHash('sha1').update(bytes).digest(); -} +RotatedSecretCreateOracledb.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ -var _default = sha1; +RotatedSecretCreateOracledb.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ + +RotatedSecretCreateOracledb.prototype['rotator-type'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ + +RotatedSecretCreateOracledb.prototype['secure-access-db-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +RotatedSecretCreateOracledb.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +RotatedSecretCreateOracledb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ + +RotatedSecretCreateOracledb.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateOracledb.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateOracledb.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretCreateOracledb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotatedSecretCreateOracledb.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateOracledb; exports["default"] = _default; /***/ }), -/***/ 30999: +/***/ 5094: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -231258,48 +187886,79 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; -exports.unsafeStringify = unsafeStringify; -var _validate = _interopRequireDefault(__nccwpck_require__(91710)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + * The RotatedSecretCreateOutput model module. + * @module model/RotatedSecretCreateOutput + * @version 3.6.3 */ -const byteToHex = []; +var RotatedSecretCreateOutput = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateOutput. + * @alias module:model/RotatedSecretCreateOutput + */ + function RotatedSecretCreateOutput() { + _classCallCheck(this, RotatedSecretCreateOutput); -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).slice(1)); -} + RotatedSecretCreateOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -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 + _createClass(RotatedSecretCreateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a RotatedSecretCreateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateOutput} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateOutput} The populated RotatedSecretCreateOutput instance. + */ - if (!(0, _validate.default)(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateOutput(); - return uuid; -} + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } -var _default = stringify; + return obj; + } + }]); + + return RotatedSecretCreateOutput; +}(); +/** + * @member {String} name + */ + + +RotatedSecretCreateOutput.prototype['name'] = undefined; +var _default = RotatedSecretCreateOutput; exports["default"] = _default; /***/ }), -/***/ 4349: +/***/ 93061: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -231310,220 +187969,330 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _rng = _interopRequireDefault(__nccwpck_require__(70559)); - -var _stringify = __nccwpck_require__(30999); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -// **`v1()` - Generate time-based UUID** -// -// Inspired by https://github.com/LiosK/UUID.js -// and http://docs.python.org/library/uuid.html -let _nodeId; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -let _clockseq; // Previous uuid creation time +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -let _lastMSecs = 0; -let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -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 +/** + * The RotatedSecretCreatePostgresql model module. + * @module model/RotatedSecretCreatePostgresql + * @version 3.6.3 + */ +var RotatedSecretCreatePostgresql = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreatePostgresql. + * @alias module:model/RotatedSecretCreatePostgresql + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name + */ + function RotatedSecretCreatePostgresql(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreatePostgresql); - if (node == null || clockseq == null) { - const seedBytes = options.random || (options.rng || _rng.default)(); + RotatedSecretCreatePostgresql.initialize(this, name, rotatorType, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - 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; + _createClass(RotatedSecretCreatePostgresql, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; } - } // 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 + /** + * Constructs a RotatedSecretCreatePostgresql from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreatePostgresql} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreatePostgresql} The populated RotatedSecretCreatePostgresql instance. + */ - let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreatePostgresql(); - const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } - 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 (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { - nsecs = 0; - } // Per 4.2.1.2 Throw error if too many uuids are requested + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - if (nsecs >= 10000) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - msecs += 12219292800000; // `time_low` + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - 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` + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; - b[i++] = tmh >>> 8 & 0xff; - b[i++] = tmh & 0xff; // `time_high_and_version` + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } - b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } - b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } - b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } - b[i++] = clockseq & 0xff; // `node` + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - for (let n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } - return buf || (0, _stringify.unsafeStringify)(b); -} + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } -var _default = v1; -exports["default"] = _default; + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } -/***/ 40443: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -var _v = _interopRequireDefault(__nccwpck_require__(55928)); + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -var _md = _interopRequireDefault(__nccwpck_require__(11510)); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } -const v3 = (0, _v.default)('v3', 0x30, _md.default); -var _default = v3; -exports["default"] = _default; + return obj; + } + }]); -/***/ }), + return RotatedSecretCreatePostgresql; +}(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ -/***/ 55928: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; +RotatedSecretCreatePostgresql.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ +RotatedSecretCreatePostgresql.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.URL = exports.DNS = void 0; -exports["default"] = v35; +RotatedSecretCreatePostgresql.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -var _stringify = __nccwpck_require__(30999); +RotatedSecretCreatePostgresql.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var _parse = _interopRequireDefault(__nccwpck_require__(46425)); +RotatedSecretCreatePostgresql.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +RotatedSecretCreatePostgresql.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); // UTF8 escape +RotatedSecretCreatePostgresql.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ - const bytes = []; +RotatedSecretCreatePostgresql.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - for (let i = 0; i < str.length; ++i) { - bytes.push(str.charCodeAt(i)); - } +RotatedSecretCreatePostgresql.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ - return bytes; -} +RotatedSecretCreatePostgresql.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ -const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -exports.DNS = DNS; -const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -exports.URL = URL; +RotatedSecretCreatePostgresql.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ -function v35(name, version, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - var _namespace; +RotatedSecretCreatePostgresql.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - if (typeof value === 'string') { - value = stringToBytes(value); - } +RotatedSecretCreatePostgresql.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - if (typeof namespace === 'string') { - namespace = (0, _parse.default)(namespace); - } +RotatedSecretCreatePostgresql.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ - 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])` +RotatedSecretCreatePostgresql.prototype['rotator-type'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ +RotatedSecretCreatePostgresql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ - 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; +RotatedSecretCreatePostgresql.prototype['secure-access-db-name'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ - if (buf) { - offset = offset || 0; +RotatedSecretCreatePostgresql.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } +RotatedSecretCreatePostgresql.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ - return buf; - } +RotatedSecretCreatePostgresql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ - return (0, _stringify.unsafeStringify)(bytes); - } // Function#name is not settable on some platforms (#270) +RotatedSecretCreatePostgresql.prototype['secure-access-web'] = false; +/** + * Add tags attached to this object + * @member {Array.} tags + */ +RotatedSecretCreatePostgresql.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - try { - generateUUID.name = name; // eslint-disable-next-line no-empty - } catch (err) {} // For CommonJS default export support +RotatedSecretCreatePostgresql.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ +RotatedSecretCreatePostgresql.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - generateUUID.DNS = DNS; - generateUUID.URL = URL; - return generateUUID; -} +RotatedSecretCreatePostgresql.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreatePostgresql; +exports["default"] = _default; /***/ }), -/***/ 93586: +/***/ 82328: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -231534,93 +188303,258 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _native = _interopRequireDefault(__nccwpck_require__(89783)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -var _rng = _interopRequireDefault(__nccwpck_require__(70559)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var _stringify = __nccwpck_require__(30999); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function v4(options, buf, offset) { - if (_native.default.randomUUID && !buf && !options) { - return _native.default.randomUUID(); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RotatedSecretCreateRedis model module. + * @module model/RotatedSecretCreateRedis + * @version 3.6.3 + */ +var RotatedSecretCreateRedis = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateRedis. + * @alias module:model/RotatedSecretCreateRedis + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name + */ + function RotatedSecretCreateRedis(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateRedis); + + RotatedSecretCreateRedis.initialize(this, name, rotatorType, targetName); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - options = options || {}; - const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + _createClass(RotatedSecretCreateRedis, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } + /** + * Constructs a RotatedSecretCreateRedis from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateRedis} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateRedis} The populated RotatedSecretCreateRedis instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateRedis(); - rnds[6] = rnds[6] & 0x0f | 0x40; - rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } - if (buf) { - offset = offset || 0; + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } - return buf; - } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - return (0, _stringify.unsafeStringify)(rnds); -} + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var _default = v4; -exports["default"] = _default; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -/***/ 77569: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -var _v = _interopRequireDefault(__nccwpck_require__(55928)); + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -var _sha = _interopRequireDefault(__nccwpck_require__(8641)); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } -const v5 = (0, _v.default)('v5', 0x50, _sha.default); -var _default = v5; -exports["default"] = _default; + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -/***/ }), + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -/***/ 91710: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + return obj; + } + }]); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + return RotatedSecretCreateRedis; +}(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ -var _regex = _interopRequireDefault(__nccwpck_require__(13709)); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +RotatedSecretCreateRedis.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ -function validate(uuid) { - return typeof uuid === 'string' && _regex.default.test(uuid); -} +RotatedSecretCreateRedis.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateRedis.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateRedis.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +RotatedSecretCreateRedis.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateRedis.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateRedis.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateRedis.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateRedis.prototype['password-length'] = undefined; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +RotatedSecretCreateRedis.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ + +RotatedSecretCreateRedis.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ + +RotatedSecretCreateRedis.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ + +RotatedSecretCreateRedis.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ + +RotatedSecretCreateRedis.prototype['rotator-type'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateRedis.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateRedis.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretCreateRedis.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -var _default = validate; +RotatedSecretCreateRedis.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateRedis; exports["default"] = _default; /***/ }), -/***/ 6270: +/***/ 4830: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -231631,65221 +188565,36563 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _validate = _interopRequireDefault(__nccwpck_require__(91710)); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function version(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError('Invalid UUID'); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - return parseInt(uuid.slice(14, 15), 16); -} +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var _default = version; -exports["default"] = _default; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -/***/ }), +/** + * The RotatedSecretCreateRedshift model module. + * @module model/RotatedSecretCreateRedshift + * @version 3.6.3 + */ +var RotatedSecretCreateRedshift = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateRedshift. + * @alias module:model/RotatedSecretCreateRedshift + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name + */ + function RotatedSecretCreateRedshift(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateRedshift); -/***/ 71628: -/***/ ((__unused_webpack_module, exports) => { + RotatedSecretCreateRedshift.initialize(this, name, rotatorType, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -"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 -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Colours = void 0; -/** - * Handles figuring out if we can use ANSI colours and handing out the escape codes. - * - * This is for package-internal use only, and may change at any time. - * - * @private - * @internal - */ -class Colours { + _createClass(RotatedSecretCreateRedshift, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } /** - * @param stream The stream (e.g. process.stderr) - * @returns true if the stream should have colourization enabled + * Constructs a RotatedSecretCreateRedshift from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateRedshift} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateRedshift} The populated RotatedSecretCreateRedshift instance. */ - static isEnabled(stream) { - return (stream.isTTY && - (typeof stream.getColorDepth === 'function' - ? stream.getColorDepth() > 2 - : true)); - } - static refresh() { - Colours.enabled = Colours.isEnabled(process.stderr); - if (!this.enabled) { - Colours.reset = ''; - Colours.bright = ''; - Colours.dim = ''; - Colours.red = ''; - Colours.green = ''; - Colours.yellow = ''; - Colours.blue = ''; - Colours.magenta = ''; - Colours.cyan = ''; - Colours.white = ''; - Colours.grey = ''; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateRedshift(); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - else { - Colours.reset = '\u001b[0m'; - Colours.bright = '\u001b[1m'; - Colours.dim = '\u001b[2m'; - Colours.red = '\u001b[31m'; - Colours.green = '\u001b[32m'; - Colours.yellow = '\u001b[33m'; - Colours.blue = '\u001b[34m'; - Colours.magenta = '\u001b[35m'; - Colours.cyan = '\u001b[36m'; - Colours.white = '\u001b[37m'; - Colours.grey = '\u001b[90m'; + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - } -} -exports.Colours = Colours; -Colours.enabled = false; -Colours.reset = ''; -Colours.bright = ''; -Colours.dim = ''; -Colours.red = ''; -Colours.green = ''; -Colours.yellow = ''; -Colours.blue = ''; -Colours.magenta = ''; -Colours.cyan = ''; -Colours.white = ''; -Colours.grey = ''; -Colours.refresh(); -//# sourceMappingURL=colours.js.map -/***/ }), + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -/***/ 81577: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -// 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 -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -__exportStar(__nccwpck_require__(74788), exports); -//# sourceMappingURL=index.js.map + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -/***/ 74788: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -// Copyright 2021-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 -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } + + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } + + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.env = exports.DebugLogBackendBase = exports.placeholder = exports.AdhocDebugLogger = exports.LogSeverity = void 0; -exports.getNodeBackend = getNodeBackend; -exports.getDebugBackend = getDebugBackend; -exports.getStructuredBackend = getStructuredBackend; -exports.setBackend = setBackend; -exports.log = log; -const node_events_1 = __nccwpck_require__(78474); -const process = __importStar(__nccwpck_require__(1708)); -const util = __importStar(__nccwpck_require__(57975)); -const colours_1 = __nccwpck_require__(71628); -// Some functions (as noted) are based on the Node standard library, from -// the following file: -// -// https://github.com/nodejs/node/blob/main/lib/internal/util/debuglog.js + }]); + + return RotatedSecretCreateRedshift; +}(); /** - * This module defines an ad-hoc debug logger for Google Cloud Platform - * client libraries in Node. An ad-hoc debug logger is a tool which lets - * users use an external, unified interface (in this case, environment - * variables) to determine what logging they want to see at runtime. This - * isn't necessarily fed into the console, but is meant to be under the - * control of the user. The kind of logging that will be produced by this - * is more like "call retry happened", not "event you'd want to record - * in Cloud Logger". - * - * More for Googlers implementing libraries with it: - * go/cloud-client-logging-design + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' */ + + +RotatedSecretCreateRedshift.prototype['authentication-credentials'] = 'use-user-creds'; /** - * Possible log levels. These are a subset of Cloud Observability levels. - * https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#LogSeverity + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ -var LogSeverity; -(function (LogSeverity) { - LogSeverity["DEFAULT"] = "DEFAULT"; - LogSeverity["DEBUG"] = "DEBUG"; - LogSeverity["INFO"] = "INFO"; - LogSeverity["WARNING"] = "WARNING"; - LogSeverity["ERROR"] = "ERROR"; -})(LogSeverity || (exports.LogSeverity = LogSeverity = {})); + +RotatedSecretCreateRedshift.prototype['auto-rotate'] = undefined; /** - * Our logger instance. This actually contains the meat of dealing - * with log lines, including EventEmitter. This contains the function - * that will be passed back to users of the package. + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -class AdhocDebugLogger extends node_events_1.EventEmitter { - /** - * @param upstream The backend will pass a function that will be - * called whenever our logger function is invoked. - */ - constructor(namespace, upstream) { - super(); - this.namespace = namespace; - this.upstream = upstream; - this.func = Object.assign(this.invoke.bind(this), { - // Also add an instance pointer back to us. - instance: this, - // And pull over the EventEmitter functionality. - on: (event, listener) => this.on(event, listener), - }); - // Convenience methods for log levels. - this.func.debug = (...args) => this.invokeSeverity(LogSeverity.DEBUG, ...args); - this.func.info = (...args) => this.invokeSeverity(LogSeverity.INFO, ...args); - this.func.warn = (...args) => this.invokeSeverity(LogSeverity.WARNING, ...args); - this.func.error = (...args) => this.invokeSeverity(LogSeverity.ERROR, ...args); - this.func.sublog = (namespace) => log(namespace, this.func); - } - invoke(fields, ...args) { - // Push out any upstream logger first. - if (this.upstream) { - this.upstream(fields, ...args); - } - // Emit sink events. - this.emit('log', fields, args); - } - invokeSeverity(severity, ...args) { - this.invoke({ severity }, ...args); - } -} -exports.AdhocDebugLogger = AdhocDebugLogger; + +RotatedSecretCreateRedshift.prototype['delete_protection'] = undefined; /** - * This can be used in place of a real logger while waiting for Promises or disabling logging. + * Description of the object + * @member {String} description */ -exports.placeholder = new AdhocDebugLogger('', () => { }).func; + +RotatedSecretCreateRedshift.prototype['description'] = undefined; /** - * The base class for debug logging backends. It's possible to use this, but the - * same non-guarantees above still apply (unstable interface, etc). - * - * @private - * @internal + * Set output format to JSON + * @member {Boolean} json + * @default false */ -class DebugLogBackendBase { - constructor() { - var _a; - this.cached = new Map(); - this.filters = []; - this.filtersSet = false; - // Look for the Node config variable for what systems to enable. We'll store - // these for the log method below, which will call setFilters() once. - let nodeFlag = (_a = process.env[exports.env.nodeEnables]) !== null && _a !== void 0 ? _a : '*'; - if (nodeFlag === 'all') { - nodeFlag = '*'; - } - this.filters = nodeFlag.split(','); - } - log(namespace, fields, ...args) { - try { - if (!this.filtersSet) { - this.setFilters(); - this.filtersSet = true; - } - let logger = this.cached.get(namespace); - if (!logger) { - logger = this.makeLogger(namespace); - this.cached.set(namespace, logger); - } - logger(fields, ...args); - } - catch (e) { - // Silently ignore all errors; we don't want them to interfere with - // the user's running app. - // e; - console.error(e); - } - } -} -exports.DebugLogBackendBase = DebugLogBackendBase; -// The basic backend. This one definitely works, but it's less feature-filled. -// -// Rather than using util.debuglog, this implements the same basic logic directly. -// The reason for this decision is that debuglog checks the value of the -// NODE_DEBUG environment variable before any user code runs; we therefore -// can't pipe our own enables into it (and util.debuglog will never print unless -// the user duplicates it into NODE_DEBUG, which isn't reasonable). -// -class NodeBackend extends DebugLogBackendBase { - constructor() { - super(...arguments); - // Default to allowing all systems, since we gate earlier based on whether the - // variable is empty. - this.enabledRegexp = /.*/g; - } - isEnabled(namespace) { - return this.enabledRegexp.test(namespace); - } - makeLogger(namespace) { - if (!this.enabledRegexp.test(namespace)) { - return () => { }; - } - return (fields, ...args) => { - var _a; - // TODO: `fields` needs to be turned into a string here, one way or another. - const nscolour = `${colours_1.Colours.green}${namespace}${colours_1.Colours.reset}`; - const pid = `${colours_1.Colours.yellow}${process.pid}${colours_1.Colours.reset}`; - let level; - switch (fields.severity) { - case LogSeverity.ERROR: - level = `${colours_1.Colours.red}${fields.severity}${colours_1.Colours.reset}`; - break; - case LogSeverity.INFO: - level = `${colours_1.Colours.magenta}${fields.severity}${colours_1.Colours.reset}`; - break; - case LogSeverity.WARNING: - level = `${colours_1.Colours.yellow}${fields.severity}${colours_1.Colours.reset}`; - break; - default: - level = (_a = fields.severity) !== null && _a !== void 0 ? _a : LogSeverity.DEFAULT; - break; - } - const msg = util.formatWithOptions({ colors: colours_1.Colours.enabled }, ...args); - const filteredFields = Object.assign({}, fields); - delete filteredFields.severity; - const fieldsJson = Object.getOwnPropertyNames(filteredFields).length - ? JSON.stringify(filteredFields) - : ''; - const fieldsColour = fieldsJson - ? `${colours_1.Colours.grey}${fieldsJson}${colours_1.Colours.reset}` - : ''; - console.error('%s [%s|%s] %s%s', pid, nscolour, level, msg, fieldsJson ? ` ${fieldsColour}` : ''); - }; - } - // Regexp patterns below are from here: - // https://github.com/nodejs/node/blob/c0aebed4b3395bd65d54b18d1fd00f071002ac20/lib/internal/util/debuglog.js#L36 - setFilters() { - const totalFilters = this.filters.join(','); - const regexp = totalFilters - .replace(/[|\\{}()[\]^$+?.]/g, '\\$&') - .replace(/\*/g, '.*') - .replace(/,/g, '$|^'); - this.enabledRegexp = new RegExp(`^${regexp}$`, 'i'); - } -} + +RotatedSecretCreateRedshift.prototype['json'] = false; /** - * @returns A backend based on Node util.debuglog; this is the default. + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -function getNodeBackend() { - return new NodeBackend(); -} -class DebugBackend extends DebugLogBackendBase { - constructor(pkg) { - super(); - this.debugPkg = pkg; - } - makeLogger(namespace) { - const debugLogger = this.debugPkg(namespace); - return (fields, ...args) => { - // TODO: `fields` needs to be turned into a string here. - debugLogger(args[0], ...args.slice(1)); - }; - } - setFilters() { - var _a; - const existingFilters = (_a = process.env['NODE_DEBUG']) !== null && _a !== void 0 ? _a : ''; - process.env['NODE_DEBUG'] = `${existingFilters}${existingFilters ? ',' : ''}${this.filters.join(',')}`; - } -} + +RotatedSecretCreateRedshift.prototype['key'] = undefined; /** - * Creates a "debug" package backend. The user must call require('debug') and pass - * the resulting object to this function. - * - * ``` - * setBackend(getDebugBackend(require('debug'))) - * ``` - * - * https://www.npmjs.com/package/debug - * - * Note: Google does not explicitly endorse or recommend this package; it's just - * being provided as an option. - * - * @returns A backend based on the npm "debug" package. + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -function getDebugBackend(debugPkg) { - return new DebugBackend(debugPkg); -} + +RotatedSecretCreateRedshift.prototype['max-versions'] = undefined; /** - * This pretty much works like the Node logger, but it outputs structured - * logging JSON matching Google Cloud's ingestion specs. Rather than handling - * its own output, it wraps another backend. The passed backend must be a subclass - * of `DebugLogBackendBase` (any of the backends exposed by this package will work). + * Rotated secret name + * @member {String} name */ -class StructuredBackend extends DebugLogBackendBase { - constructor(upstream) { - var _a; - super(); - this.upstream = (_a = upstream) !== null && _a !== void 0 ? _a : new NodeBackend(); - } - makeLogger(namespace) { - const debugLogger = this.upstream.makeLogger(namespace); - return (fields, ...args) => { - var _a; - const severity = (_a = fields.severity) !== null && _a !== void 0 ? _a : LogSeverity.INFO; - const json = Object.assign({ - severity, - message: util.format(...args), - }, fields); - const jsonString = JSON.stringify(json); - debugLogger(fields, jsonString); - }; - } - setFilters() { - this.upstream.setFilters(); - } -} + +RotatedSecretCreateRedshift.prototype['name'] = undefined; /** - * Creates a "structured logging" backend. This pretty much works like the - * Node logger, but it outputs structured logging JSON matching Google - * Cloud's ingestion specs instead of plain text. - * - * ``` - * setBackend(getStructuredBackend()) - * ``` - * - * @param upstream If you want to use something besides the Node backend to - * write the actual log lines into, pass that here. - * @returns A backend based on Google Cloud structured logging. + * The length of the password to be generated + * @member {String} password-length */ -function getStructuredBackend(upstream) { - return new StructuredBackend(upstream); -} + +RotatedSecretCreateRedshift.prototype['password-length'] = undefined; /** - * The environment variables that we standardized on, for all ad-hoc logging. + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' */ -exports.env = { - /** - * Filter wildcards specific to the Node syntax, and similar to the built-in - * utils.debuglog() environment variable. If missing, disables logging. - */ - nodeEnables: 'GOOGLE_SDK_NODE_LOGGING', -}; -// Keep a copy of all namespaced loggers so users can reliably .on() them. -// Note that these cached functions will need to deal with changes in the backend. -const loggerCache = new Map(); -// Our current global backend. This might be: -let cachedBackend = undefined; + +RotatedSecretCreateRedshift.prototype['rotate-after-disconnect'] = 'false'; /** - * Set the backend to use for our log output. - * - A backend object - * - null to disable logging - * - undefined for "nothing yet", defaults to the Node backend - * - * @param backend Results from one of the get*Backend() functions. + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password */ -function setBackend(backend) { - cachedBackend = backend; - loggerCache.clear(); -} + +RotatedSecretCreateRedshift.prototype['rotated-password'] = undefined; /** - * Creates a logging function. Multiple calls to this with the same namespace - * will produce the same logger, with the same event emitter hooks. - * - * Namespaces can be a simple string ("system" name), or a qualified string - * (system:subsystem), which can be used for filtering, or for "system:*". - * - * @param namespace The namespace, a descriptive text string. - * @returns A function you can call that works similar to console.log(). + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username */ -function log(namespace, parent) { - // If the enable flag isn't set, do nothing. - const enablesFlag = process.env[exports.env.nodeEnables]; - if (!enablesFlag) { - return exports.placeholder; - } - // This might happen mostly if the typings are dropped in a user's code, - // or if they're calling from JavaScript. - if (!namespace) { - return exports.placeholder; - } - // Handle sub-loggers. - if (parent) { - namespace = `${parent.instance.namespace}:${namespace}`; - } - // Reuse loggers so things like event sinks are persistent. - const existing = loggerCache.get(namespace); - if (existing) { - return existing.func; - } - // Do we have a backend yet? - if (cachedBackend === null) { - // Explicitly disabled. - return exports.placeholder; - } - else if (cachedBackend === undefined) { - // One hasn't been made yet, so default to Node. - cachedBackend = getNodeBackend(); - } - // The logger is further wrapped so we can handle the backend changing out. - const logger = (() => { - let previousBackend = undefined; - const newLogger = new AdhocDebugLogger(namespace, (fields, ...args) => { - if (previousBackend !== cachedBackend) { - // Did the user pass a custom backend? - if (cachedBackend === null) { - // Explicitly disabled. - return; - } - else if (cachedBackend === undefined) { - // One hasn't been made yet, so default to Node. - cachedBackend = getNodeBackend(); - } - previousBackend = cachedBackend; - } - cachedBackend === null || cachedBackend === void 0 ? void 0 : cachedBackend.log(namespace, fields, ...args); - }); - return newLogger; - })(); - loggerCache.set(namespace, logger); - return logger.func; -} -//# sourceMappingURL=logging-utils.js.map -/***/ }), +RotatedSecretCreateRedshift.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ -/***/ 3064: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +RotatedSecretCreateRedshift.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ -"use strict"; +RotatedSecretCreateRedshift.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ +RotatedSecretCreateRedshift.prototype['rotator-type'] = undefined; /** - * Copyright 2018 Google LLC - * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getPem = void 0; -const fs = __nccwpck_require__(79896); -const forge = __nccwpck_require__(8542); -const util_1 = __nccwpck_require__(39023); -const readFile = util_1.promisify(fs.readFile); -function getPem(filename, callback) { - if (callback) { - getPemAsync(filename) - .then(pem => callback(null, pem)) - .catch(err => callback(err, null)); - } - else { - return getPemAsync(filename); - } -} -exports.getPem = getPem; -function getPemAsync(filename) { - return readFile(filename, { encoding: 'base64' }).then(keyp12 => { - return convertToPem(keyp12); - }); -} + +RotatedSecretCreateRedshift.prototype['secure-access-db-name'] = undefined; /** - * Converts a P12 in base64 encoding to a pem. - * @param p12base64 String containing base64 encoded p12. - * @returns a string containing the pem. + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -function convertToPem(p12base64) { - const p12Der = forge.util.decode64(p12base64); - const p12Asn1 = forge.asn1.fromDer(p12Der); - const p12 = forge.pkcs12.pkcs12FromAsn1(p12Asn1, 'notasecret'); - const bags = p12.getBags({ friendlyName: 'privatekey' }); - if (bags.friendlyName) { - const privateKey = bags.friendlyName[0].key; - const pem = forge.pki.privateKeyToPem(privateKey); - return pem.replace(/\r\n/g, '\n'); - } - else { - throw new Error('Unable to get friendly name.'); - } -} -//# sourceMappingURL=index.js.map -/***/ }), +RotatedSecretCreateRedshift.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ -/***/ 1174: -/***/ ((module) => { +RotatedSecretCreateRedshift.prototype['secure-access-host'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ -"use strict"; +RotatedSecretCreateRedshift.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ +RotatedSecretCreateRedshift.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -/** @type {import('./gOPD')} */ -module.exports = Object.getOwnPropertyDescriptor; +RotatedSecretCreateRedshift.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +RotatedSecretCreateRedshift.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateRedshift; +exports["default"] = _default; /***/ }), -/***/ 33170: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 85883: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -/** @type {import('.')} */ -var $gOPD = __nccwpck_require__(1174); - -if ($gOPD) { - try { - $gOPD([], 'length'); - } catch (e) { - // IE 8 has a broken gOPD - $gOPD = null; - } -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -module.exports = $gOPD; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ }), +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/***/ 28568: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -"use strict"; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Copyright 2018 Google LLC - * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + * The RotatedSecretCreateSnowflake model module. + * @module model/RotatedSecretCreateSnowflake + * @version 3.6.3 */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GoogleToken = void 0; -const fs = __nccwpck_require__(79896); -const gaxios_1 = __nccwpck_require__(97003); -const jws = __nccwpck_require__(33324); -const path = __nccwpck_require__(16928); -const util_1 = __nccwpck_require__(39023); -const readFile = fs.readFile - ? util_1.promisify(fs.readFile) - : async () => { - // if running in the web-browser, fs.readFile may not have been shimmed. - throw new ErrorWithCode('use key rather than keyFile.', 'MISSING_CREDENTIALS'); - }; -const GOOGLE_TOKEN_URL = 'https://www.googleapis.com/oauth2/v4/token'; -const GOOGLE_REVOKE_TOKEN_URL = 'https://accounts.google.com/o/oauth2/revoke?token='; -class ErrorWithCode extends Error { - constructor(message, code) { - super(message); - this.code = code; - } -} -let getPem; -class GoogleToken { - /** - * Create a GoogleToken. - * - * @param options Configuration object. - */ - constructor(options) { - this.configure(options); - } - get accessToken() { - return this.rawToken ? this.rawToken.access_token : undefined; - } - get idToken() { - return this.rawToken ? this.rawToken.id_token : undefined; - } - get tokenType() { - return this.rawToken ? this.rawToken.token_type : undefined; - } - get refreshToken() { - return this.rawToken ? this.rawToken.refresh_token : undefined; +var RotatedSecretCreateSnowflake = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateSnowflake. + * @alias module:model/RotatedSecretCreateSnowflake + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name + */ + function RotatedSecretCreateSnowflake(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateSnowflake); + + RotatedSecretCreateSnowflake.initialize(this, name, rotatorType, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(RotatedSecretCreateSnowflake, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; } /** - * Returns whether the token has expired. - * - * @return true if the token has expired, false otherwise. + * Constructs a RotatedSecretCreateSnowflake from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateSnowflake} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateSnowflake} The populated RotatedSecretCreateSnowflake instance. */ - hasExpired() { - const now = new Date().getTime(); - if (this.rawToken && this.expiresAt) { - return now >= this.expiresAt; - } - else { - return true; + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateSnowflake(); + + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); } - } - /** - * Returns whether the token will expire within eagerRefreshThresholdMillis - * - * @return true if the token will be expired within eagerRefreshThresholdMillis, false otherwise. - */ - isTokenExpiring() { - var _a; - const now = new Date().getTime(); - const eagerRefreshThresholdMillis = (_a = this.eagerRefreshThresholdMillis) !== null && _a !== void 0 ? _a : 0; - if (this.rawToken && this.expiresAt) { - return this.expiresAt <= now + eagerRefreshThresholdMillis; + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - else { - return true; + + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - } - getToken(callback, opts = {}) { - if (typeof callback === 'object') { - opts = callback; - callback = undefined; + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - opts = Object.assign({ - forceRefresh: false, - }, opts); - if (callback) { - const cb = callback; - this.getTokenAsync(opts).then(t => cb(null, t), callback); - return; + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - return this.getTokenAsync(opts); - } - /** - * Given a keyFile, extract the key and client email if available - * @param keyFile Path to a json, pem, or p12 file that contains the key. - * @returns an object with privateKey and clientEmail properties - */ - async getCredentials(keyFile) { - const ext = path.extname(keyFile); - switch (ext) { - case '.json': { - const key = await readFile(keyFile, 'utf8'); - const body = JSON.parse(key); - const privateKey = body.private_key; - const clientEmail = body.client_email; - if (!privateKey || !clientEmail) { - throw new ErrorWithCode('private_key and client_email are required.', 'MISSING_CREDENTIALS'); - } - return { privateKey, clientEmail }; - } - case '.der': - case '.crt': - case '.pem': { - const privateKey = await readFile(keyFile, 'utf8'); - return { privateKey }; - } - case '.p12': - case '.pfx': { - // NOTE: The loading of `google-p12-pem` is deferred for performance - // reasons. The `node-forge` npm module in `google-p12-pem` adds a fair - // bit time to overall module loading, and is likely not frequently - // used. In a future release, p12 support will be entirely removed. - if (!getPem) { - getPem = (await Promise.resolve().then(() => __nccwpck_require__(3064))).getPem; - } - const privateKey = await getPem(keyFile); - return { privateKey }; - } - default: - throw new ErrorWithCode('Unknown certificate type. Type is determined based on file extension. ' + - 'Current supported extensions are *.json, *.pem, and *.p12.', 'UNKNOWN_CERTIFICATE_TYPE'); + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - } - async getTokenAsync(opts) { - if (this.inFlightRequest && !opts.forceRefresh) { - return this.inFlightRequest; + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - try { - return await (this.inFlightRequest = this.getTokenAsyncInner(opts)); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - finally { - this.inFlightRequest = undefined; + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - } - async getTokenAsyncInner(opts) { - if (this.isTokenExpiring() === false && opts.forceRefresh === false) { - return Promise.resolve(this.rawToken); + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); } - if (!this.key && !this.keyFile) { - throw new Error('No key or keyFile set.'); + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); } - if (!this.key && this.keyFile) { - const creds = await this.getCredentials(this.keyFile); - this.key = creds.privateKey; - this.iss = creds.clientEmail || this.iss; - if (!creds.clientEmail) { - this.ensureEmail(); - } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - return this.requestToken(); - } - ensureEmail() { - if (!this.iss) { - throw new ErrorWithCode('email is required.', 'MISSING_CREDENTIALS'); + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); } - } - revokeToken(callback) { - if (callback) { - this.revokeTokenAsync().then(() => callback(), callback); - return; + + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); } - return this.revokeTokenAsync(); - } - async revokeTokenAsync() { - if (!this.accessToken) { - throw new Error('No token to revoke.'); + + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - const url = GOOGLE_REVOKE_TOKEN_URL + this.accessToken; - await gaxios_1.request({ url }); - this.configure({ - email: this.iss, - sub: this.sub, - key: this.key, - keyFile: this.keyFile, - scope: this.scope, - additionalClaims: this.additionalClaims, - }); - } - /** - * Configure the GoogleToken for re-use. - * @param {object} options Configuration object. - */ - configure(options = {}) { - this.keyFile = options.keyFile; - this.key = options.key; - this.rawToken = undefined; - this.iss = options.email || options.iss; - this.sub = options.sub; - this.additionalClaims = options.additionalClaims; - if (typeof options.scope === 'object') { - this.scope = options.scope.join(' '); + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - else { - this.scope = options.scope; - } - this.eagerRefreshThresholdMillis = options.eagerRefreshThresholdMillis; - } - /** - * Request the token from Google. - */ - async requestToken() { - const iat = Math.floor(new Date().getTime() / 1000); - const additionalClaims = this.additionalClaims || {}; - const payload = Object.assign({ - iss: this.iss, - scope: this.scope, - aud: GOOGLE_TOKEN_URL, - exp: iat + 3600, - iat, - sub: this.sub, - }, additionalClaims); - const signedJWT = jws.sign({ - header: { alg: 'RS256' }, - payload, - secret: this.key, - }); - try { - const r = await gaxios_1.request({ - method: 'POST', - url: GOOGLE_TOKEN_URL, - data: { - grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer', - assertion: signedJWT, - }, - headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - responseType: 'json', - }); - this.rawToken = r.data; - this.expiresAt = - r.data.expires_in === null || r.data.expires_in === undefined - ? undefined - : (iat + r.data.expires_in) * 1000; - return this.rawToken; + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - catch (e) { - this.rawToken = undefined; - this.tokenExpires = undefined; - const body = e.response && e.response.data ? e.response.data : {}; - if (body.error) { - const desc = body.error_description - ? `: ${body.error_description}` - : ''; - e.message = `${body.error}${desc}`; - } - throw e; + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + } + + return obj; } -} -exports.GoogleToken = GoogleToken; -//# sourceMappingURL=index.js.map + }]); + + return RotatedSecretCreateSnowflake; +}(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ + + +RotatedSecretCreateSnowflake.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ + +RotatedSecretCreateSnowflake.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +RotatedSecretCreateSnowflake.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +RotatedSecretCreateSnowflake.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +RotatedSecretCreateSnowflake.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +RotatedSecretCreateSnowflake.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +RotatedSecretCreateSnowflake.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ + +RotatedSecretCreateSnowflake.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ + +RotatedSecretCreateSnowflake.prototype['password-length'] = undefined; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ + +RotatedSecretCreateSnowflake.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ -/***/ }), +RotatedSecretCreateSnowflake.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ -/***/ 83813: -/***/ ((module) => { +RotatedSecretCreateSnowflake.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ -"use strict"; +RotatedSecretCreateSnowflake.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ -module.exports = (flag, argv) => { - argv = argv || process.argv; - const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); - const pos = argv.indexOf(prefix + flag); - const terminatorPos = argv.indexOf('--'); - return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos); -}; +RotatedSecretCreateSnowflake.prototype['rotator-type'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateSnowflake.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateSnowflake.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretCreateSnowflake.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +RotatedSecretCreateSnowflake.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateSnowflake; +exports["default"] = _default; /***/ }), -/***/ 60497: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 84077: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var $defineProperty = __nccwpck_require__(79094); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var hasPropertyDescriptors = function hasPropertyDescriptors() { - return !!$defineProperty; -}; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() { - // node v0.6 has a bug where array lengths can be Set but not Defined - if (!$defineProperty) { - return null; - } - try { - return $defineProperty([], 'length', { value: 1 }).length !== 1; - } catch (e) { - // In Firefox 4-22, defining length on an array throws an exception. - return true; - } -}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -module.exports = hasPropertyDescriptors; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/***/ }), +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -/***/ 23336: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/** + * The RotatedSecretCreateSsh model module. + * @module model/RotatedSecretCreateSsh + * @version 3.6.3 + */ +var RotatedSecretCreateSsh = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateSsh. + * @alias module:model/RotatedSecretCreateSsh + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name + */ + function RotatedSecretCreateSsh(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateSsh); -"use strict"; + RotatedSecretCreateSsh.initialize(this, name, rotatorType, targetName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var origSymbol = typeof Symbol !== 'undefined' && Symbol; -var hasSymbolSham = __nccwpck_require__(61114); + _createClass(RotatedSecretCreateSsh, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } + /** + * Constructs a RotatedSecretCreateSsh from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateSsh} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateSsh} The populated RotatedSecretCreateSsh instance. + */ -/** @type {import('.')} */ -module.exports = function hasNativeSymbols() { - if (typeof origSymbol !== 'function') { return false; } - if (typeof Symbol !== 'function') { return false; } - if (typeof origSymbol('foo') !== 'symbol') { return false; } - if (typeof Symbol('bar') !== 'symbol') { return false; } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateSsh(); - return hasSymbolSham(); -}; + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -/***/ 61114: -/***/ ((module) => { + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -/** @type {import('./shams')} */ -/* eslint complexity: [2, 18], max-statements: [2, 33] */ -module.exports = function hasSymbols() { - if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; } - if (typeof Symbol.iterator === 'symbol') { return true; } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - /** @type {{ [k in symbol]?: unknown }} */ - var obj = {}; - var sym = Symbol('test'); - var symObj = Object(sym); - if (typeof sym === 'string') { return false; } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; } - if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - // temp disabled per https://github.com/ljharb/object.assign/issues/17 - // if (sym instanceof Symbol) { return false; } - // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 - // if (!(symObj instanceof Symbol)) { return false; } + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } - // if (typeof Symbol.prototype.toString !== 'function') { return false; } - // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } - var symVal = 42; - obj[sym] = symVal; - for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop - if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } - if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; } + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } - var syms = Object.getOwnPropertySymbols(obj); - if (syms.length !== 1 || syms[0] !== sym) { return false; } + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } + if (data.hasOwnProperty('rotator-custom-cmd')) { + obj['rotator-custom-cmd'] = _ApiClient["default"].convertToType(data['rotator-custom-cmd'], 'String'); + } - if (typeof Object.getOwnPropertyDescriptor === 'function') { - // eslint-disable-next-line no-extra-parens - var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym)); - if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } - } + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } - return true; -}; + if (data.hasOwnProperty('same-password')) { + obj['same-password'] = _ApiClient["default"].convertToType(data['same-password'], 'String'); + } + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } -/***/ }), + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } -/***/ 85479: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } -var hasSymbols = __nccwpck_require__(61114); + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } -/** @type {import('.')} */ -module.exports = function hasToStringTagShams() { - return hasSymbols() && !!Symbol.toStringTag; -}; + if (data.hasOwnProperty('secure-access-ssh-user')) { + obj['secure-access-ssh-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-user'], 'String'); + } + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); + } -/***/ }), + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); + } -/***/ 54076: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + return obj; + } + }]); -var call = Function.prototype.call; -var $hasOwn = Object.prototype.hasOwnProperty; -var bind = __nccwpck_require__(37564); + return RotatedSecretCreateSsh; +}(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ -/** @type {import('.')} */ -module.exports = bind.call(call, $hasOwn); +RotatedSecretCreateSsh.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ -/***/ }), +RotatedSecretCreateSsh.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -/***/ 81970: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +RotatedSecretCreateSsh.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ -"use strict"; +RotatedSecretCreateSsh.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.HttpProxyAgent = void 0; -const net = __importStar(__nccwpck_require__(69278)); -const tls = __importStar(__nccwpck_require__(64756)); -const debug_1 = __importDefault(__nccwpck_require__(2830)); -const events_1 = __nccwpck_require__(24434); -const agent_base_1 = __nccwpck_require__(70737); -const url_1 = __nccwpck_require__(87016); -const debug = (0, debug_1.default)('http-proxy-agent'); +RotatedSecretCreateSsh.prototype['json'] = false; /** - * The `HttpProxyAgent` implements an HTTP Agent subclass that connects - * to the specified "HTTP proxy server" in order to proxy HTTP requests. + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -class HttpProxyAgent extends agent_base_1.Agent { - constructor(proxy, opts) { - super(opts); - this.proxy = typeof proxy === 'string' ? new url_1.URL(proxy) : proxy; - this.proxyHeaders = opts?.headers ?? {}; - debug('Creating new HttpProxyAgent instance: %o', this.proxy.href); - // Trim off the brackets from IPv6 addresses - const host = (this.proxy.hostname || this.proxy.host).replace(/^\[|\]$/g, ''); - const port = this.proxy.port - ? parseInt(this.proxy.port, 10) - : this.proxy.protocol === 'https:' - ? 443 - : 80; - this.connectOpts = { - ...(opts ? omit(opts, 'headers') : null), - host, - port, - }; - } - addRequest(req, opts) { - req._header = null; - this.setRequestProps(req, opts); - // @ts-expect-error `addRequest()` isn't defined in `@types/node` - super.addRequest(req, opts); - } - setRequestProps(req, opts) { - const { proxy } = this; - const protocol = opts.secureEndpoint ? 'https:' : 'http:'; - const hostname = req.getHeader('host') || 'localhost'; - const base = `${protocol}//${hostname}`; - const url = new url_1.URL(req.path, base); - if (opts.port !== 80) { - url.port = String(opts.port); - } - // Change the `http.ClientRequest` instance's "path" field - // to the absolute path of the URL that will be requested. - req.path = String(url); - // Inject the `Proxy-Authorization` header if necessary. - const headers = typeof this.proxyHeaders === 'function' - ? this.proxyHeaders() - : { ...this.proxyHeaders }; - if (proxy.username || proxy.password) { - const auth = `${decodeURIComponent(proxy.username)}:${decodeURIComponent(proxy.password)}`; - headers['Proxy-Authorization'] = `Basic ${Buffer.from(auth).toString('base64')}`; - } - if (!headers['Proxy-Connection']) { - headers['Proxy-Connection'] = this.keepAlive - ? 'Keep-Alive' - : 'close'; - } - for (const name of Object.keys(headers)) { - const value = headers[name]; - if (value) { - req.setHeader(name, value); - } - } - } - async connect(req, opts) { - req._header = null; - if (!req.path.includes('://')) { - this.setRequestProps(req, opts); - } - // At this point, the http ClientRequest's internal `_header` field - // might have already been set. If this is the case then we'll need - // to re-generate the string since we just changed the `req.path`. - let first; - let endOfHeaders; - debug('Regenerating stored HTTP header string for request'); - req._implicitHeader(); - if (req.outputData && req.outputData.length > 0) { - debug('Patching connection write() output buffer with updated header'); - first = req.outputData[0].data; - endOfHeaders = first.indexOf('\r\n\r\n') + 4; - req.outputData[0].data = - req._header + first.substring(endOfHeaders); - debug('Output buffer: %o', req.outputData[0].data); - } - // Create a socket connection to the proxy server. - let socket; - if (this.proxy.protocol === 'https:') { - debug('Creating `tls.Socket`: %o', this.connectOpts); - socket = tls.connect(this.connectOpts); - } - else { - debug('Creating `net.Socket`: %o', this.connectOpts); - socket = net.connect(this.connectOpts); - } - // Wait for the socket's `connect` event, so that this `callback()` - // function throws instead of the `http` request machinery. This is - // important for i.e. `PacProxyAgent` which determines a failed proxy - // connection via the `callback()` function throwing. - await (0, events_1.once)(socket, 'connect'); - return socket; - } -} -HttpProxyAgent.protocols = ['http', 'https']; -exports.HttpProxyAgent = HttpProxyAgent; -function omit(obj, ...keys) { - const ret = {}; - let key; - for (key in obj) { - if (!keys.includes(key)) { - ret[key] = obj[key]; - } - } - return ret; -} -//# sourceMappingURL=index.js.map -/***/ }), +RotatedSecretCreateSsh.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -/***/ 64268: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +RotatedSecretCreateSsh.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -"use strict"; +RotatedSecretCreateSsh.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.req = exports.json = exports.toBuffer = void 0; -const http = __importStar(__nccwpck_require__(58611)); -const https = __importStar(__nccwpck_require__(65692)); -async function toBuffer(stream) { - let length = 0; - const chunks = []; - for await (const chunk of stream) { - length += chunk.length; - chunks.push(chunk); - } - return Buffer.concat(chunks, length); -} -exports.toBuffer = toBuffer; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -async function json(stream) { - const buf = await toBuffer(stream); - const str = buf.toString('utf8'); - try { - return JSON.parse(str); - } - catch (_err) { - const err = _err; - err.message += ` (input: ${str})`; - throw err; - } -} -exports.json = json; -function req(url, opts = {}) { - const href = typeof url === 'string' ? url : url.href; - const req = (href.startsWith('https:') ? https : http).request(url, opts); - const promise = new Promise((resolve, reject) => { - req - .once('response', resolve) - .once('error', reject) - .end(); - }); - req.then = promise.then.bind(promise); - return req; -} -exports.req = req; -//# sourceMappingURL=helpers.js.map +RotatedSecretCreateSsh.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ -/***/ }), +RotatedSecretCreateSsh.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ -/***/ 70737: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +RotatedSecretCreateSsh.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ -"use strict"; +RotatedSecretCreateSsh.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Agent = void 0; -const net = __importStar(__nccwpck_require__(69278)); -const http = __importStar(__nccwpck_require__(58611)); -const https_1 = __nccwpck_require__(65692); -__exportStar(__nccwpck_require__(64268), exports); -const INTERNAL = Symbol('AgentBaseInternalState'); -class Agent extends http.Agent { - constructor(opts) { - super(opts); - this[INTERNAL] = {}; - } - /** - * Determine whether this is an `http` or `https` request. - */ - isSecureEndpoint(options) { - if (options) { - // First check the `secureEndpoint` property explicitly, since this - // means that a parent `Agent` is "passing through" to this instance. - // eslint-disable-next-line @typescript-eslint/no-explicit-any - if (typeof options.secureEndpoint === 'boolean') { - return options.secureEndpoint; - } - // If no explicit `secure` endpoint, check if `protocol` property is - // set. This will usually be the case since using a full string URL - // or `URL` instance should be the most common usage. - if (typeof options.protocol === 'string') { - return options.protocol === 'https:'; - } - } - // Finally, if no `protocol` property was set, then fall back to - // checking the stack trace of the current call stack, and try to - // detect the "https" module. - const { stack } = new Error(); - if (typeof stack !== 'string') - return false; - return stack - .split('\n') - .some((l) => l.indexOf('(https.js:') !== -1 || - l.indexOf('node:https:') !== -1); - } - // In order to support async signatures in `connect()` and Node's native - // connection pooling in `http.Agent`, the array of sockets for each origin - // has to be updated synchronously. This is so the length of the array is - // accurate when `addRequest()` is next called. We achieve this by creating a - // fake socket and adding it to `sockets[origin]` and incrementing - // `totalSocketCount`. - incrementSockets(name) { - // If `maxSockets` and `maxTotalSockets` are both Infinity then there is no - // need to create a fake socket because Node.js native connection pooling - // will never be invoked. - if (this.maxSockets === Infinity && this.maxTotalSockets === Infinity) { - return null; - } - // All instances of `sockets` are expected TypeScript errors. The - // alternative is to add it as a private property of this class but that - // will break TypeScript subclassing. - if (!this.sockets[name]) { - // @ts-expect-error `sockets` is readonly in `@types/node` - this.sockets[name] = []; - } - const fakeSocket = new net.Socket({ writable: false }); - this.sockets[name].push(fakeSocket); - // @ts-expect-error `totalSocketCount` isn't defined in `@types/node` - this.totalSocketCount++; - return fakeSocket; - } - decrementSockets(name, socket) { - if (!this.sockets[name] || socket === null) { - return; - } - const sockets = this.sockets[name]; - const index = sockets.indexOf(socket); - if (index !== -1) { - sockets.splice(index, 1); - // @ts-expect-error `totalSocketCount` isn't defined in `@types/node` - this.totalSocketCount--; - if (sockets.length === 0) { - // @ts-expect-error `sockets` is readonly in `@types/node` - delete this.sockets[name]; - } - } - } - // In order to properly update the socket pool, we need to call `getName()` on - // the core `https.Agent` if it is a secureEndpoint. - getName(options) { - const secureEndpoint = this.isSecureEndpoint(options); - if (secureEndpoint) { - // @ts-expect-error `getName()` isn't defined in `@types/node` - return https_1.Agent.prototype.getName.call(this, options); - } - // @ts-expect-error `getName()` isn't defined in `@types/node` - return super.getName(options); - } - createSocket(req, options, cb) { - const connectOpts = { - ...options, - secureEndpoint: this.isSecureEndpoint(options), - }; - const name = this.getName(connectOpts); - const fakeSocket = this.incrementSockets(name); - Promise.resolve() - .then(() => this.connect(req, connectOpts)) - .then((socket) => { - this.decrementSockets(name, fakeSocket); - if (socket instanceof http.Agent) { - try { - // @ts-expect-error `addRequest()` isn't defined in `@types/node` - return socket.addRequest(req, connectOpts); - } - catch (err) { - return cb(err); - } - } - this[INTERNAL].currentSocket = socket; - // @ts-expect-error `createSocket()` isn't defined in `@types/node` - super.createSocket(req, options, cb); - }, (err) => { - this.decrementSockets(name, fakeSocket); - cb(err); - }); - } - createConnection() { - const socket = this[INTERNAL].currentSocket; - this[INTERNAL].currentSocket = undefined; - if (!socket) { - throw new Error('No socket was returned in the `connect()` function'); - } - return socket; - } - get defaultPort() { - return (this[INTERNAL].defaultPort ?? - (this.protocol === 'https:' ? 443 : 80)); - } - set defaultPort(v) { - if (this[INTERNAL]) { - this[INTERNAL].defaultPort = v; - } - } - get protocol() { - return (this[INTERNAL].protocol ?? - (this.isSecureEndpoint() ? 'https:' : 'http:')); - } - set protocol(v) { - if (this[INTERNAL]) { - this[INTERNAL].protocol = v; - } - } -} -exports.Agent = Agent; -//# sourceMappingURL=index.js.map +RotatedSecretCreateSsh.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ -/***/ }), +RotatedSecretCreateSsh.prototype['rotation-interval'] = undefined; +/** + * Custom rotation command + * @member {String} rotator-custom-cmd + */ -/***/ 96904: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +RotatedSecretCreateSsh.prototype['rotator-custom-cmd'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ -"use strict"; +RotatedSecretCreateSsh.prototype['rotator-type'] = undefined; +/** + * Rotate same password for each host from the Linked Target (relevant only for Linked Target) + * @member {String} same-password + */ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const net_1 = __importDefault(__nccwpck_require__(69278)); -const tls_1 = __importDefault(__nccwpck_require__(64756)); -const url_1 = __importDefault(__nccwpck_require__(87016)); -const assert_1 = __importDefault(__nccwpck_require__(42613)); -const debug_1 = __importDefault(__nccwpck_require__(2830)); -const agent_base_1 = __nccwpck_require__(8207); -const parse_proxy_response_1 = __importDefault(__nccwpck_require__(37943)); -const debug = debug_1.default('https-proxy-agent:agent'); +RotatedSecretCreateSsh.prototype['same-password'] = undefined; /** - * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to - * the specified "HTTP(s) proxy server" in order to proxy HTTPS requests. - * - * Outgoing HTTP requests are first tunneled through the proxy server using the - * `CONNECT` HTTP request method to establish a connection to the proxy server, - * and then the proxy server connects to the destination target and issues the - * HTTP request from the proxy server. - * - * `https:` requests have their socket connection upgraded to TLS once - * the connection to the proxy server has been established. - * - * @api public + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false */ -class HttpsProxyAgent extends agent_base_1.Agent { - constructor(_opts) { - let opts; - if (typeof _opts === 'string') { - opts = url_1.default.parse(_opts); - } - else { - opts = _opts; - } - if (!opts) { - throw new Error('an HTTP(S) proxy server `host` and `port` must be specified!'); - } - debug('creating new HttpsProxyAgent instance: %o', opts); - super(opts); - const proxy = Object.assign({}, opts); - // If `true`, then connect to the proxy server over TLS. - // Defaults to `false`. - this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol); - // Prefer `hostname` over `host`, and set the `port` if needed. - proxy.host = proxy.hostname || proxy.host; - if (typeof proxy.port === 'string') { - proxy.port = parseInt(proxy.port, 10); - } - if (!proxy.port && proxy.host) { - proxy.port = this.secureProxy ? 443 : 80; - } - // ALPN is supported by Node.js >= v5. - // attempt to negotiate http/1.1 for proxy servers that support http/2 - if (this.secureProxy && !('ALPNProtocols' in proxy)) { - proxy.ALPNProtocols = ['http 1.1']; - } - if (proxy.host && proxy.path) { - // If both a `host` and `path` are specified then it's most likely - // the result of a `url.parse()` call... we need to remove the - // `path` portion so that `net.connect()` doesn't attempt to open - // that as a Unix socket file. - delete proxy.path; - delete proxy.pathname; - } - this.proxy = proxy; - } - /** - * Called when the node-core HTTP client library is creating a - * new HTTP request. - * - * @api protected - */ - callback(req, opts) { - return __awaiter(this, void 0, void 0, function* () { - const { proxy, secureProxy } = this; - // Create a socket connection to the proxy server. - let socket; - if (secureProxy) { - debug('Creating `tls.Socket`: %o', proxy); - socket = tls_1.default.connect(proxy); - } - else { - debug('Creating `net.Socket`: %o', proxy); - socket = net_1.default.connect(proxy); - } - const headers = Object.assign({}, proxy.headers); - const hostname = `${opts.host}:${opts.port}`; - let payload = `CONNECT ${hostname} HTTP/1.1\r\n`; - // Inject the `Proxy-Authorization` header if necessary. - if (proxy.auth) { - headers['Proxy-Authorization'] = `Basic ${Buffer.from(proxy.auth).toString('base64')}`; - } - // The `Host` header should only include the port - // number when it is not the default port. - let { host, port, secureEndpoint } = opts; - if (!isDefaultPort(port, secureEndpoint)) { - host += `:${port}`; - } - headers.Host = host; - headers.Connection = 'close'; - for (const name of Object.keys(headers)) { - payload += `${name}: ${headers[name]}\r\n`; - } - const proxyResponsePromise = parse_proxy_response_1.default(socket); - socket.write(`${payload}\r\n`); - const { statusCode, buffered } = yield proxyResponsePromise; - if (statusCode === 200) { - req.once('socket', resume); - if (opts.secureEndpoint) { - // The proxy is connecting to a TLS server, so upgrade - // this socket connection to a TLS connection. - debug('Upgrading socket connection to TLS'); - const servername = opts.servername || opts.host; - return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, 'host', 'hostname', 'path', 'port')), { socket, - servername })); - } - return socket; - } - // Some other status code that's not 200... need to re-play the HTTP - // header "data" events onto the socket once the HTTP machinery is - // attached so that the node core `http` can parse and handle the - // error status code. - // Close the original socket, and a new "fake" socket is returned - // instead, so that the proxy doesn't get the HTTP request - // written to it (which may contain `Authorization` headers or other - // sensitive data). - // - // See: https://hackerone.com/reports/541502 - socket.destroy(); - const fakeSocket = new net_1.default.Socket({ writable: false }); - fakeSocket.readable = true; - // Need to wait for the "socket" event to re-play the "data" events. - req.once('socket', (s) => { - debug('replaying proxy buffer for failed request'); - assert_1.default(s.listenerCount('data') > 0); - // Replay the "buffered" Buffer onto the fake `socket`, since at - // this point the HTTP module machinery has been hooked up for - // the user. - s.push(buffered); - s.push(null); - }); - return fakeSocket; - }); - } -} -exports["default"] = HttpsProxyAgent; -function resume(socket) { - socket.resume(); -} -function isDefaultPort(port, secure) { - return Boolean((!secure && port === 80) || (secure && port === 443)); -} -function isHTTPS(protocol) { - return typeof protocol === 'string' ? /^https:?$/i.test(protocol) : false; -} -function omit(obj, ...keys) { - const ret = {}; - let key; - for (key in obj) { - if (!keys.includes(key)) { - ret[key] = obj[key]; - } - } - return ret; -} -//# sourceMappingURL=agent.js.map -/***/ }), +RotatedSecretCreateSsh.prototype['secure-access-allow-external-user'] = false; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ -/***/ 3669: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { +RotatedSecretCreateSsh.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ -"use strict"; +RotatedSecretCreateSsh.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -const agent_1 = __importDefault(__nccwpck_require__(96904)); -function createHttpsProxyAgent(opts) { - return new agent_1.default(opts); -} -(function (createHttpsProxyAgent) { - createHttpsProxyAgent.HttpsProxyAgent = agent_1.default; - createHttpsProxyAgent.prototype = agent_1.default.prototype; -})(createHttpsProxyAgent || (createHttpsProxyAgent = {})); -module.exports = createHttpsProxyAgent; -//# sourceMappingURL=index.js.map +RotatedSecretCreateSsh.prototype['secure-access-host'] = undefined; +/** + * Default domain name server. i.e. microsoft.com + * @member {String} secure-access-rdp-domain + */ + +RotatedSecretCreateSsh.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ + +RotatedSecretCreateSsh.prototype['secure-access-rdp-user'] = undefined; +/** + * Override the SSH username as indicated in SSH Certificate Issuer + * @member {String} secure-access-ssh-user + */ + +RotatedSecretCreateSsh.prototype['secure-access-ssh-user'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ + +RotatedSecretCreateSsh.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ + +RotatedSecretCreateSsh.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretCreateSsh.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotatedSecretCreateSsh.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateSsh; +exports["default"] = _default; /***/ }), -/***/ 37943: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 96926: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const debug_1 = __importDefault(__nccwpck_require__(2830)); -const debug = debug_1.default('https-proxy-agent:parse-proxy-response'); -function parseProxyResponse(socket) { - return new Promise((resolve, reject) => { - // we need to buffer any HTTP traffic that happens with the proxy before we get - // the CONNECT response, so that if the response is anything other than an "200" - // response code, then we can re-play the "data" events on the socket once the - // HTTP parser is hooked up... - let buffersLength = 0; - const buffers = []; - function read() { - const b = socket.read(); - if (b) - ondata(b); - else - socket.once('readable', read); - } - function cleanup() { - socket.removeListener('end', onend); - socket.removeListener('error', onerror); - socket.removeListener('close', onclose); - socket.removeListener('readable', read); - } - function onclose(err) { - debug('onclose had error %o', err); - } - function onend() { - debug('onend'); - } - function onerror(err) { - cleanup(); - debug('onerror %o', err); - reject(err); - } - function ondata(b) { - buffers.push(b); - buffersLength += b.length; - const buffered = Buffer.concat(buffers, buffersLength); - const endOfHeaders = buffered.indexOf('\r\n\r\n'); - if (endOfHeaders === -1) { - // keep buffering - debug('have not received end of HTTP headers yet...'); - read(); - return; - } - const firstLine = buffered.toString('ascii', 0, buffered.indexOf('\r\n')); - const statusCode = +firstLine.split(' ')[1]; - debug('got proxy server response: %o', firstLine); - resolve({ - statusCode, - buffered - }); - } - socket.on('error', onerror); - socket.on('close', onclose); - socket.on('end', onend); - read(); - }); -} -exports["default"] = parseProxyResponse; -//# sourceMappingURL=parse-proxy-response.js.map -/***/ }), +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/***/ 39598: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -try { - var util = __nccwpck_require__(39023); - /* istanbul ignore next */ - if (typeof util.inherits !== 'function') throw ''; - module.exports = util.inherits; -} catch (e) { - /* istanbul ignore next */ - module.exports = __nccwpck_require__(26589); -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/***/ }), +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/***/ 26589: -/***/ ((module) => { +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -if (typeof Object.create === 'function') { - // implementation from standard node.js 'util' module - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor - ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: false, - writable: true, - configurable: true - } - }) - } - }; -} else { - // old school shim for old browsers - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor - var TempCtor = function () {} - TempCtor.prototype = superCtor.prototype - ctor.prototype = new TempCtor() - ctor.prototype.constructor = ctor - } +/** + * The RotatedSecretCreateWindows model module. + * @module model/RotatedSecretCreateWindows + * @version 3.6.3 + */ +var RotatedSecretCreateWindows = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretCreateWindows. + * @alias module:model/RotatedSecretCreateWindows + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + * @param targetName {String} Target name + */ + function RotatedSecretCreateWindows(name, rotatorType, targetName) { + _classCallCheck(this, RotatedSecretCreateWindows); + + RotatedSecretCreateWindows.initialize(this, name, rotatorType, targetName); } -} + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), + _createClass(RotatedSecretCreateWindows, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType, targetName) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + obj['target-name'] = targetName; + } + /** + * Constructs a RotatedSecretCreateWindows from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretCreateWindows} obj Optional instance to populate. + * @return {module:model/RotatedSecretCreateWindows} The populated RotatedSecretCreateWindows instance. + */ -/***/ 96543: -/***/ ((module) => { + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretCreateWindows(); -"use strict"; + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -const isStream = stream => - stream !== null && - typeof stream === 'object' && - typeof stream.pipe === 'function'; + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -isStream.writable = stream => - isStream(stream) && - stream.writable !== false && - typeof stream._write === 'function' && - typeof stream._writableState === 'object'; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -isStream.readable = stream => - isStream(stream) && - stream.readable !== false && - typeof stream._read === 'function' && - typeof stream._readableState === 'object'; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -isStream.duplex = stream => - isStream.writable(stream) && - isStream.readable(stream); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -isStream.transform = stream => - isStream.duplex(stream) && - typeof stream._transform === 'function'; + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } + + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -module.exports = isStream; + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('same-password')) { + obj['same-password'] = _ApiClient["default"].convertToType(data['same-password'], 'String'); + } -/***/ 7598: -/***/ ((__unused_webpack_module, exports) => { + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } -(function(exports) { - "use strict"; + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } - function isArray(obj) { - if (obj !== null) { - return Object.prototype.toString.call(obj) === "[object Array]"; - } else { - return false; - } - } + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } - function isObject(obj) { - if (obj !== null) { - return Object.prototype.toString.call(obj) === "[object Object]"; - } else { - return false; - } - } + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } - function strictDeepEqual(first, second) { - // Check the scalar case first. - if (first === second) { - return true; - } + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } - // Check if they are the same type. - var firstType = Object.prototype.toString.call(first); - if (firstType !== Object.prototype.toString.call(second)) { - return false; - } - // We know that first and second have the same type so we can just check the - // first type from now on. - if (isArray(first) === true) { - // Short circuit if they're not the same length; - if (first.length !== second.length) { - return false; - } - for (var i = 0; i < first.length; i++) { - if (strictDeepEqual(first[i], second[i]) === false) { - return false; + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], ['String']); } - } - return true; - } - if (isObject(first) === true) { - // An object is equal if it has the same key/value pairs. - var keysSeen = {}; - for (var key in first) { - if (hasOwnProperty.call(first, key)) { - if (strictDeepEqual(first[key], second[key]) === false) { - return false; - } - keysSeen[key] = true; + + if (data.hasOwnProperty('target-name')) { + obj['target-name'] = _ApiClient["default"].convertToType(data['target-name'], 'String'); } - } - // Now check that there aren't any keys in second that weren't - // in first. - for (var key2 in second) { - if (hasOwnProperty.call(second, key2)) { - if (keysSeen[key2] !== true) { - return false; - } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } - return true; + + return obj; } - return false; - } + }]); - function isFalse(obj) { - // From the spec: - // A false value corresponds to the following values: - // Empty list - // Empty object - // Empty string - // False boolean - // null value + return RotatedSecretCreateWindows; +}(); +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ - // First check the scalar values. - if (obj === "" || obj === false || obj === null) { - return true; - } else if (isArray(obj) && obj.length === 0) { - // Check for an empty array. - return true; - } else if (isObject(obj)) { - // Check for an empty object. - for (var key in obj) { - // If there are any keys, then - // the object is not empty so the object - // is not false. - if (obj.hasOwnProperty(key)) { - return false; - } - } - return true; - } else { - return false; - } - } - function objValues(obj) { - var keys = Object.keys(obj); - var values = []; - for (var i = 0; i < keys.length; i++) { - values.push(obj[keys[i]]); - } - return values; - } +RotatedSecretCreateWindows.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ - function merge(a, b) { - var merged = {}; - for (var key in a) { - merged[key] = a[key]; - } - for (var key2 in b) { - merged[key2] = b[key2]; - } - return merged; - } +RotatedSecretCreateWindows.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ - var trimLeft; - if (typeof String.prototype.trimLeft === "function") { - trimLeft = function(str) { - return str.trimLeft(); - }; - } else { - trimLeft = function(str) { - return str.match(/^\s*(.*)/)[1]; - }; - } +RotatedSecretCreateWindows.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ - // Type constants used to define functions. - var TYPE_NUMBER = 0; - var TYPE_ANY = 1; - var TYPE_STRING = 2; - var TYPE_ARRAY = 3; - var TYPE_OBJECT = 4; - var TYPE_BOOLEAN = 5; - var TYPE_EXPREF = 6; - var TYPE_NULL = 7; - var TYPE_ARRAY_NUMBER = 8; - var TYPE_ARRAY_STRING = 9; - var TYPE_NAME_TABLE = { - 0: 'number', - 1: 'any', - 2: 'string', - 3: 'array', - 4: 'object', - 5: 'boolean', - 6: 'expression', - 7: 'null', - 8: 'Array', - 9: 'Array' - }; +RotatedSecretCreateWindows.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - var TOK_EOF = "EOF"; - var TOK_UNQUOTEDIDENTIFIER = "UnquotedIdentifier"; - var TOK_QUOTEDIDENTIFIER = "QuotedIdentifier"; - var TOK_RBRACKET = "Rbracket"; - var TOK_RPAREN = "Rparen"; - var TOK_COMMA = "Comma"; - var TOK_COLON = "Colon"; - var TOK_RBRACE = "Rbrace"; - var TOK_NUMBER = "Number"; - var TOK_CURRENT = "Current"; - var TOK_EXPREF = "Expref"; - var TOK_PIPE = "Pipe"; - var TOK_OR = "Or"; - var TOK_AND = "And"; - var TOK_EQ = "EQ"; - var TOK_GT = "GT"; - var TOK_LT = "LT"; - var TOK_GTE = "GTE"; - var TOK_LTE = "LTE"; - var TOK_NE = "NE"; - var TOK_FLATTEN = "Flatten"; - var TOK_STAR = "Star"; - var TOK_FILTER = "Filter"; - var TOK_DOT = "Dot"; - var TOK_NOT = "Not"; - var TOK_LBRACE = "Lbrace"; - var TOK_LBRACKET = "Lbracket"; - var TOK_LPAREN= "Lparen"; - var TOK_LITERAL= "Literal"; - - // The "&", "[", "<", ">" tokens - // are not in basicToken because - // there are two token variants - // ("&&", "[?", "<=", ">="). This is specially handled - // below. - - var basicTokens = { - ".": TOK_DOT, - "*": TOK_STAR, - ",": TOK_COMMA, - ":": TOK_COLON, - "{": TOK_LBRACE, - "}": TOK_RBRACE, - "]": TOK_RBRACKET, - "(": TOK_LPAREN, - ")": TOK_RPAREN, - "@": TOK_CURRENT - }; +RotatedSecretCreateWindows.prototype['json'] = false; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - var operatorStartToken = { - "<": true, - ">": true, - "=": true, - "!": true - }; +RotatedSecretCreateWindows.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ - var skipChars = { - " ": true, - "\t": true, - "\n": true - }; +RotatedSecretCreateWindows.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ +RotatedSecretCreateWindows.prototype['name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - function isAlpha(ch) { - return (ch >= "a" && ch <= "z") || - (ch >= "A" && ch <= "Z") || - ch === "_"; - } - - function isNum(ch) { - return (ch >= "0" && ch <= "9") || - ch === "-"; - } - function isAlphaNum(ch) { - return (ch >= "a" && ch <= "z") || - (ch >= "A" && ch <= "Z") || - (ch >= "0" && ch <= "9") || - ch === "_"; - } - - function Lexer() { - } - Lexer.prototype = { - tokenize: function(stream) { - var tokens = []; - this._current = 0; - var start; - var identifier; - var token; - while (this._current < stream.length) { - if (isAlpha(stream[this._current])) { - start = this._current; - identifier = this._consumeUnquotedIdentifier(stream); - tokens.push({type: TOK_UNQUOTEDIDENTIFIER, - value: identifier, - start: start}); - } else if (basicTokens[stream[this._current]] !== undefined) { - tokens.push({type: basicTokens[stream[this._current]], - value: stream[this._current], - start: this._current}); - this._current++; - } else if (isNum(stream[this._current])) { - token = this._consumeNumber(stream); - tokens.push(token); - } else if (stream[this._current] === "[") { - // No need to increment this._current. This happens - // in _consumeLBracket - token = this._consumeLBracket(stream); - tokens.push(token); - } else if (stream[this._current] === "\"") { - start = this._current; - identifier = this._consumeQuotedIdentifier(stream); - tokens.push({type: TOK_QUOTEDIDENTIFIER, - value: identifier, - start: start}); - } else if (stream[this._current] === "'") { - start = this._current; - identifier = this._consumeRawStringLiteral(stream); - tokens.push({type: TOK_LITERAL, - value: identifier, - start: start}); - } else if (stream[this._current] === "`") { - start = this._current; - var literal = this._consumeLiteral(stream); - tokens.push({type: TOK_LITERAL, - value: literal, - start: start}); - } else if (operatorStartToken[stream[this._current]] !== undefined) { - tokens.push(this._consumeOperator(stream)); - } else if (skipChars[stream[this._current]] !== undefined) { - // Ignore whitespace. - this._current++; - } else if (stream[this._current] === "&") { - start = this._current; - this._current++; - if (stream[this._current] === "&") { - this._current++; - tokens.push({type: TOK_AND, value: "&&", start: start}); - } else { - tokens.push({type: TOK_EXPREF, value: "&", start: start}); - } - } else if (stream[this._current] === "|") { - start = this._current; - this._current++; - if (stream[this._current] === "|") { - this._current++; - tokens.push({type: TOK_OR, value: "||", start: start}); - } else { - tokens.push({type: TOK_PIPE, value: "|", start: start}); - } - } else { - var error = new Error("Unknown character:" + stream[this._current]); - error.name = "LexerError"; - throw error; - } - } - return tokens; - }, +RotatedSecretCreateWindows.prototype['password-length'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ - _consumeUnquotedIdentifier: function(stream) { - var start = this._current; - this._current++; - while (this._current < stream.length && isAlphaNum(stream[this._current])) { - this._current++; - } - return stream.slice(start, this._current); - }, +RotatedSecretCreateWindows.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ - _consumeQuotedIdentifier: function(stream) { - var start = this._current; - this._current++; - var maxLength = stream.length; - while (stream[this._current] !== "\"" && this._current < maxLength) { - // You can escape a double quote and you can escape an escape. - var current = this._current; - if (stream[current] === "\\" && (stream[current + 1] === "\\" || - stream[current + 1] === "\"")) { - current += 2; - } else { - current++; - } - this._current = current; - } - this._current++; - return JSON.parse(stream.slice(start, this._current)); - }, +RotatedSecretCreateWindows.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ - _consumeRawStringLiteral: function(stream) { - var start = this._current; - this._current++; - var maxLength = stream.length; - while (stream[this._current] !== "'" && this._current < maxLength) { - // You can escape a single quote and you can escape an escape. - var current = this._current; - if (stream[current] === "\\" && (stream[current + 1] === "\\" || - stream[current + 1] === "'")) { - current += 2; - } else { - current++; - } - this._current = current; - } - this._current++; - var literal = stream.slice(start + 1, this._current - 1); - return literal.replace("\\'", "'"); - }, +RotatedSecretCreateWindows.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - _consumeNumber: function(stream) { - var start = this._current; - this._current++; - var maxLength = stream.length; - while (isNum(stream[this._current]) && this._current < maxLength) { - this._current++; - } - var value = parseInt(stream.slice(start, this._current)); - return {type: TOK_NUMBER, value: value, start: start}; - }, +RotatedSecretCreateWindows.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - _consumeLBracket: function(stream) { - var start = this._current; - this._current++; - if (stream[this._current] === "?") { - this._current++; - return {type: TOK_FILTER, value: "[?", start: start}; - } else if (stream[this._current] === "]") { - this._current++; - return {type: TOK_FLATTEN, value: "[]", start: start}; - } else { - return {type: TOK_LBRACKET, value: "[", start: start}; - } - }, +RotatedSecretCreateWindows.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ - _consumeOperator: function(stream) { - var start = this._current; - var startingChar = stream[start]; - this._current++; - if (startingChar === "!") { - if (stream[this._current] === "=") { - this._current++; - return {type: TOK_NE, value: "!=", start: start}; - } else { - return {type: TOK_NOT, value: "!", start: start}; - } - } else if (startingChar === "<") { - if (stream[this._current] === "=") { - this._current++; - return {type: TOK_LTE, value: "<=", start: start}; - } else { - return {type: TOK_LT, value: "<", start: start}; - } - } else if (startingChar === ">") { - if (stream[this._current] === "=") { - this._current++; - return {type: TOK_GTE, value: ">=", start: start}; - } else { - return {type: TOK_GT, value: ">", start: start}; - } - } else if (startingChar === "=") { - if (stream[this._current] === "=") { - this._current++; - return {type: TOK_EQ, value: "==", start: start}; - } - } - }, +RotatedSecretCreateWindows.prototype['rotator-type'] = undefined; +/** + * Rotate same password for each host from the Linked Target (relevant only for Linked Target) + * @member {String} same-password + */ - _consumeLiteral: function(stream) { - this._current++; - var start = this._current; - var maxLength = stream.length; - var literal; - while(stream[this._current] !== "`" && this._current < maxLength) { - // You can escape a literal char or you can escape the escape. - var current = this._current; - if (stream[current] === "\\" && (stream[current + 1] === "\\" || - stream[current + 1] === "`")) { - current += 2; - } else { - current++; - } - this._current = current; - } - var literalString = trimLeft(stream.slice(start, this._current)); - literalString = literalString.replace("\\`", "`"); - if (this._looksLikeJSON(literalString)) { - literal = JSON.parse(literalString); - } else { - // Try to JSON parse it as "" - literal = JSON.parse("\"" + literalString + "\""); - } - // +1 gets us to the ending "`", +1 to move on to the next char. - this._current++; - return literal; - }, +RotatedSecretCreateWindows.prototype['same-password'] = undefined; +/** + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false + */ - _looksLikeJSON: function(literalString) { - var startingChars = "[{\""; - var jsonLiterals = ["true", "false", "null"]; - var numberLooking = "-0123456789"; - - if (literalString === "") { - return false; - } else if (startingChars.indexOf(literalString[0]) >= 0) { - return true; - } else if (jsonLiterals.indexOf(literalString) >= 0) { - return true; - } else if (numberLooking.indexOf(literalString[0]) >= 0) { - try { - JSON.parse(literalString); - return true; - } catch (ex) { - return false; - } - } else { - return false; - } - } - }; +RotatedSecretCreateWindows.prototype['secure-access-allow-external-user'] = false; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - var bindingPower = {}; - bindingPower[TOK_EOF] = 0; - bindingPower[TOK_UNQUOTEDIDENTIFIER] = 0; - bindingPower[TOK_QUOTEDIDENTIFIER] = 0; - bindingPower[TOK_RBRACKET] = 0; - bindingPower[TOK_RPAREN] = 0; - bindingPower[TOK_COMMA] = 0; - bindingPower[TOK_RBRACE] = 0; - bindingPower[TOK_NUMBER] = 0; - bindingPower[TOK_CURRENT] = 0; - bindingPower[TOK_EXPREF] = 0; - bindingPower[TOK_PIPE] = 1; - bindingPower[TOK_OR] = 2; - bindingPower[TOK_AND] = 3; - bindingPower[TOK_EQ] = 5; - bindingPower[TOK_GT] = 5; - bindingPower[TOK_LT] = 5; - bindingPower[TOK_GTE] = 5; - bindingPower[TOK_LTE] = 5; - bindingPower[TOK_NE] = 5; - bindingPower[TOK_FLATTEN] = 9; - bindingPower[TOK_STAR] = 20; - bindingPower[TOK_FILTER] = 21; - bindingPower[TOK_DOT] = 40; - bindingPower[TOK_NOT] = 45; - bindingPower[TOK_LBRACE] = 50; - bindingPower[TOK_LBRACKET] = 55; - bindingPower[TOK_LPAREN] = 60; - - function Parser() { - } - - Parser.prototype = { - parse: function(expression) { - this._loadTokens(expression); - this.index = 0; - var ast = this.expression(0); - if (this._lookahead(0) !== TOK_EOF) { - var t = this._lookaheadToken(0); - var error = new Error( - "Unexpected token type: " + t.type + ", value: " + t.value); - error.name = "ParserError"; - throw error; - } - return ast; - }, +RotatedSecretCreateWindows.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ - _loadTokens: function(expression) { - var lexer = new Lexer(); - var tokens = lexer.tokenize(expression); - tokens.push({type: TOK_EOF, value: "", start: expression.length}); - this.tokens = tokens; - }, +RotatedSecretCreateWindows.prototype['secure-access-host'] = undefined; +/** + * Default domain name server. i.e. microsoft.com + * @member {String} secure-access-rdp-domain + */ - expression: function(rbp) { - var leftToken = this._lookaheadToken(0); - this._advance(); - var left = this.nud(leftToken); - var currentToken = this._lookahead(0); - while (rbp < bindingPower[currentToken]) { - this._advance(); - left = this.led(currentToken, left); - currentToken = this._lookahead(0); - } - return left; - }, +RotatedSecretCreateWindows.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ - _lookahead: function(number) { - return this.tokens[this.index + number].type; - }, +RotatedSecretCreateWindows.prototype['secure-access-rdp-user'] = undefined; +/** + * Add tags attached to this object + * @member {Array.} tags + */ - _lookaheadToken: function(number) { - return this.tokens[this.index + number]; - }, +RotatedSecretCreateWindows.prototype['tags'] = undefined; +/** + * Target name + * @member {String} target-name + */ - _advance: function() { - this.index++; - }, +RotatedSecretCreateWindows.prototype['target-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - nud: function(token) { - var left; - var right; - var expression; - switch (token.type) { - case TOK_LITERAL: - return {type: "Literal", value: token.value}; - case TOK_UNQUOTEDIDENTIFIER: - return {type: "Field", name: token.value}; - case TOK_QUOTEDIDENTIFIER: - var node = {type: "Field", name: token.value}; - if (this._lookahead(0) === TOK_LPAREN) { - throw new Error("Quoted identifier not allowed for function names."); - } - return node; - case TOK_NOT: - right = this.expression(bindingPower.Not); - return {type: "NotExpression", children: [right]}; - case TOK_STAR: - left = {type: "Identity"}; - right = null; - if (this._lookahead(0) === TOK_RBRACKET) { - // This can happen in a multiselect, - // [a, b, *] - right = {type: "Identity"}; - } else { - right = this._parseProjectionRHS(bindingPower.Star); - } - return {type: "ValueProjection", children: [left, right]}; - case TOK_FILTER: - return this.led(token.type, {type: "Identity"}); - case TOK_LBRACE: - return this._parseMultiselectHash(); - case TOK_FLATTEN: - left = {type: TOK_FLATTEN, children: [{type: "Identity"}]}; - right = this._parseProjectionRHS(bindingPower.Flatten); - return {type: "Projection", children: [left, right]}; - case TOK_LBRACKET: - if (this._lookahead(0) === TOK_NUMBER || this._lookahead(0) === TOK_COLON) { - right = this._parseIndexExpression(); - return this._projectIfSlice({type: "Identity"}, right); - } else if (this._lookahead(0) === TOK_STAR && - this._lookahead(1) === TOK_RBRACKET) { - this._advance(); - this._advance(); - right = this._parseProjectionRHS(bindingPower.Star); - return {type: "Projection", - children: [{type: "Identity"}, right]}; - } - return this._parseMultiselectList(); - case TOK_CURRENT: - return {type: TOK_CURRENT}; - case TOK_EXPREF: - expression = this.expression(bindingPower.Expref); - return {type: "ExpressionReference", children: [expression]}; - case TOK_LPAREN: - var args = []; - while (this._lookahead(0) !== TOK_RPAREN) { - if (this._lookahead(0) === TOK_CURRENT) { - expression = {type: TOK_CURRENT}; - this._advance(); - } else { - expression = this.expression(0); - } - args.push(expression); - } - this._match(TOK_RPAREN); - return args[0]; - default: - this._errorToken(token); - } - }, +RotatedSecretCreateWindows.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - led: function(tokenName, left) { - var right; - switch(tokenName) { - case TOK_DOT: - var rbp = bindingPower.Dot; - if (this._lookahead(0) !== TOK_STAR) { - right = this._parseDotRHS(rbp); - return {type: "Subexpression", children: [left, right]}; - } - // Creating a projection. - this._advance(); - right = this._parseProjectionRHS(rbp); - return {type: "ValueProjection", children: [left, right]}; - case TOK_PIPE: - right = this.expression(bindingPower.Pipe); - return {type: TOK_PIPE, children: [left, right]}; - case TOK_OR: - right = this.expression(bindingPower.Or); - return {type: "OrExpression", children: [left, right]}; - case TOK_AND: - right = this.expression(bindingPower.And); - return {type: "AndExpression", children: [left, right]}; - case TOK_LPAREN: - var name = left.name; - var args = []; - var expression, node; - while (this._lookahead(0) !== TOK_RPAREN) { - if (this._lookahead(0) === TOK_CURRENT) { - expression = {type: TOK_CURRENT}; - this._advance(); - } else { - expression = this.expression(0); - } - if (this._lookahead(0) === TOK_COMMA) { - this._match(TOK_COMMA); - } - args.push(expression); - } - this._match(TOK_RPAREN); - node = {type: "Function", name: name, children: args}; - return node; - case TOK_FILTER: - var condition = this.expression(0); - this._match(TOK_RBRACKET); - if (this._lookahead(0) === TOK_FLATTEN) { - right = {type: "Identity"}; - } else { - right = this._parseProjectionRHS(bindingPower.Filter); - } - return {type: "FilterProjection", children: [left, right, condition]}; - case TOK_FLATTEN: - var leftNode = {type: TOK_FLATTEN, children: [left]}; - var rightNode = this._parseProjectionRHS(bindingPower.Flatten); - return {type: "Projection", children: [leftNode, rightNode]}; - case TOK_EQ: - case TOK_NE: - case TOK_GT: - case TOK_GTE: - case TOK_LT: - case TOK_LTE: - return this._parseComparator(left, tokenName); - case TOK_LBRACKET: - var token = this._lookaheadToken(0); - if (token.type === TOK_NUMBER || token.type === TOK_COLON) { - right = this._parseIndexExpression(); - return this._projectIfSlice(left, right); - } - this._match(TOK_STAR); - this._match(TOK_RBRACKET); - right = this._parseProjectionRHS(bindingPower.Star); - return {type: "Projection", children: [left, right]}; - default: - this._errorToken(this._lookaheadToken(0)); - } - }, +RotatedSecretCreateWindows.prototype['uid-token'] = undefined; +var _default = RotatedSecretCreateWindows; +exports["default"] = _default; - _match: function(tokenType) { - if (this._lookahead(0) === tokenType) { - this._advance(); - } else { - var t = this._lookaheadToken(0); - var error = new Error("Expected " + tokenType + ", got: " + t.type); - error.name = "ParserError"; - throw error; - } - }, +/***/ }), - _errorToken: function(token) { - var error = new Error("Invalid token (" + - token.type + "): \"" + - token.value + "\""); - error.name = "ParserError"; - throw error; - }, +/***/ 25957: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +"use strict"; - _parseIndexExpression: function() { - if (this._lookahead(0) === TOK_COLON || this._lookahead(1) === TOK_COLON) { - return this._parseSliceExpression(); - } else { - var node = { - type: "Index", - value: this._lookaheadToken(0).value}; - this._advance(); - this._match(TOK_RBRACKET); - return node; - } - }, - _projectIfSlice: function(left, right) { - var indexExpr = {type: "IndexExpression", children: [left, right]}; - if (right.type === "Slice") { - return { - type: "Projection", - children: [indexExpr, this._parseProjectionRHS(bindingPower.Star)] - }; - } else { - return indexExpr; - } - }, +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - _parseSliceExpression: function() { - // [start:end:step] where each part is optional, as well as the last - // colon. - var parts = [null, null, null]; - var index = 0; - var currentToken = this._lookahead(0); - while (currentToken !== TOK_RBRACKET && index < 3) { - if (currentToken === TOK_COLON) { - index++; - this._advance(); - } else if (currentToken === TOK_NUMBER) { - parts[index] = this._lookaheadToken(0).value; - this._advance(); - } else { - var t = this._lookahead(0); - var error = new Error("Syntax error, unexpected token: " + - t.value + "(" + t.type + ")"); - error.name = "Parsererror"; - throw error; - } - currentToken = this._lookahead(0); - } - this._match(TOK_RBRACKET); - return { - type: "Slice", - children: parts - }; - }, +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - _parseComparator: function(left, comparator) { - var right = this.expression(bindingPower[comparator]); - return {type: "Comparator", name: comparator, children: [left, right]}; - }, +var _WindowsService = _interopRequireDefault(__nccwpck_require__(1940)); - _parseDotRHS: function(rbp) { - var lookahead = this._lookahead(0); - var exprTokens = [TOK_UNQUOTEDIDENTIFIER, TOK_QUOTEDIDENTIFIER, TOK_STAR]; - if (exprTokens.indexOf(lookahead) >= 0) { - return this.expression(rbp); - } else if (lookahead === TOK_LBRACKET) { - this._match(TOK_LBRACKET); - return this._parseMultiselectList(); - } else if (lookahead === TOK_LBRACE) { - this._match(TOK_LBRACE); - return this._parseMultiselectHash(); - } - }, +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - _parseProjectionRHS: function(rbp) { - var right; - if (bindingPower[this._lookahead(0)] < 10) { - right = {type: "Identity"}; - } else if (this._lookahead(0) === TOK_LBRACKET) { - right = this.expression(rbp); - } else if (this._lookahead(0) === TOK_FILTER) { - right = this.expression(rbp); - } else if (this._lookahead(0) === TOK_DOT) { - this._match(TOK_DOT); - right = this._parseDotRHS(rbp); - } else { - var t = this._lookaheadToken(0); - var error = new Error("Sytanx error, unexpected token: " + - t.value + "(" + t.type + ")"); - error.name = "ParserError"; - throw error; - } - return right; - }, +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - _parseMultiselectList: function() { - var expressions = []; - while (this._lookahead(0) !== TOK_RBRACKET) { - var expression = this.expression(0); - expressions.push(expression); - if (this._lookahead(0) === TOK_COMMA) { - this._match(TOK_COMMA); - if (this._lookahead(0) === TOK_RBRACKET) { - throw new Error("Unexpected token Rbracket"); - } - } - } - this._match(TOK_RBRACKET); - return {type: "MultiSelectList", children: expressions}; - }, +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - _parseMultiselectHash: function() { - var pairs = []; - var identifierTypes = [TOK_UNQUOTEDIDENTIFIER, TOK_QUOTEDIDENTIFIER]; - var keyToken, keyName, value, node; - for (;;) { - keyToken = this._lookaheadToken(0); - if (identifierTypes.indexOf(keyToken.type) < 0) { - throw new Error("Expecting an identifier token, got: " + - keyToken.type); - } - keyName = keyToken.value; - this._advance(); - this._match(TOK_COLON); - value = this.expression(0); - node = {type: "KeyValuePair", name: keyName, value: value}; - pairs.push(node); - if (this._lookahead(0) === TOK_COMMA) { - this._match(TOK_COMMA); - } else if (this._lookahead(0) === TOK_RBRACE) { - this._match(TOK_RBRACE); - break; - } - } - return {type: "MultiSelectHash", children: pairs}; - } - }; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +/** + * The RotatedSecretDetailsInfo model module. + * @module model/RotatedSecretDetailsInfo + * @version 3.6.3 + */ +var RotatedSecretDetailsInfo = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretDetailsInfo. + * RotatedSecretDetailsInfo The rotated secret rotator info + * @alias module:model/RotatedSecretDetailsInfo + */ + function RotatedSecretDetailsInfo() { + _classCallCheck(this, RotatedSecretDetailsInfo); - function TreeInterpreter(runtime) { - this.runtime = runtime; + RotatedSecretDetailsInfo.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - TreeInterpreter.prototype = { - search: function(node, value) { - return this.visit(node, value); - }, - visit: function(node, value) { - var matched, current, result, first, second, field, left, right, collected, i; - switch (node.type) { - case "Field": - if (value !== null && isObject(value)) { - field = value[node.name]; - if (field === undefined) { - return null; - } else { - return field; - } - } - return null; - case "Subexpression": - result = this.visit(node.children[0], value); - for (i = 1; i < node.children.length; i++) { - result = this.visit(node.children[1], result); - if (result === null) { - return null; - } - } - return result; - case "IndexExpression": - left = this.visit(node.children[0], value); - right = this.visit(node.children[1], left); - return right; - case "Index": - if (!isArray(value)) { - return null; - } - var index = node.value; - if (index < 0) { - index = value.length + index; - } - result = value[index]; - if (result === undefined) { - result = null; - } - return result; - case "Slice": - if (!isArray(value)) { - return null; - } - var sliceParams = node.children.slice(0); - var computed = this.computeSliceParams(value.length, sliceParams); - var start = computed[0]; - var stop = computed[1]; - var step = computed[2]; - result = []; - if (step > 0) { - for (i = start; i < stop; i += step) { - result.push(value[i]); - } - } else { - for (i = start; i > stop; i += step) { - result.push(value[i]); - } - } - return result; - case "Projection": - // Evaluate left child. - var base = this.visit(node.children[0], value); - if (!isArray(base)) { - return null; - } - collected = []; - for (i = 0; i < base.length; i++) { - current = this.visit(node.children[1], base[i]); - if (current !== null) { - collected.push(current); - } - } - return collected; - case "ValueProjection": - // Evaluate left child. - base = this.visit(node.children[0], value); - if (!isObject(base)) { - return null; - } - collected = []; - var values = objValues(base); - for (i = 0; i < values.length; i++) { - current = this.visit(node.children[1], values[i]); - if (current !== null) { - collected.push(current); - } - } - return collected; - case "FilterProjection": - base = this.visit(node.children[0], value); - if (!isArray(base)) { - return null; - } - var filtered = []; - var finalResults = []; - for (i = 0; i < base.length; i++) { - matched = this.visit(node.children[2], base[i]); - if (!isFalse(matched)) { - filtered.push(base[i]); - } - } - for (var j = 0; j < filtered.length; j++) { - current = this.visit(node.children[1], filtered[j]); - if (current !== null) { - finalResults.push(current); - } - } - return finalResults; - case "Comparator": - first = this.visit(node.children[0], value); - second = this.visit(node.children[1], value); - switch(node.name) { - case TOK_EQ: - result = strictDeepEqual(first, second); - break; - case TOK_NE: - result = !strictDeepEqual(first, second); - break; - case TOK_GT: - result = first > second; - break; - case TOK_GTE: - result = first >= second; - break; - case TOK_LT: - result = first < second; - break; - case TOK_LTE: - result = first <= second; - break; - default: - throw new Error("Unknown comparator: " + node.name); - } - return result; - case TOK_FLATTEN: - var original = this.visit(node.children[0], value); - if (!isArray(original)) { - return null; - } - var merged = []; - for (i = 0; i < original.length; i++) { - current = original[i]; - if (isArray(current)) { - merged.push.apply(merged, current); - } else { - merged.push(current); - } - } - return merged; - case "Identity": - return value; - case "MultiSelectList": - if (value === null) { - return null; - } - collected = []; - for (i = 0; i < node.children.length; i++) { - collected.push(this.visit(node.children[i], value)); - } - return collected; - case "MultiSelectHash": - if (value === null) { - return null; - } - collected = {}; - var child; - for (i = 0; i < node.children.length; i++) { - child = node.children[i]; - collected[child.name] = this.visit(child.value, value); - } - return collected; - case "OrExpression": - matched = this.visit(node.children[0], value); - if (isFalse(matched)) { - matched = this.visit(node.children[1], value); - } - return matched; - case "AndExpression": - first = this.visit(node.children[0], value); + _createClass(RotatedSecretDetailsInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a RotatedSecretDetailsInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretDetailsInfo} obj Optional instance to populate. + * @return {module:model/RotatedSecretDetailsInfo} The populated RotatedSecretDetailsInfo instance. + */ - if (isFalse(first) === true) { - return first; - } - return this.visit(node.children[1], value); - case "NotExpression": - first = this.visit(node.children[0], value); - return isFalse(first); - case "Literal": - return node.value; - case TOK_PIPE: - left = this.visit(node.children[0], value); - return this.visit(node.children[1], left); - case TOK_CURRENT: - return value; - case "Function": - var resolvedArgs = []; - for (i = 0; i < node.children.length; i++) { - resolvedArgs.push(this.visit(node.children[i], value)); - } - return this.runtime.callFunction(node.name, resolvedArgs); - case "ExpressionReference": - var refNode = node.children[0]; - // Tag the node with a specific attribute so the type - // checker verify the type. - refNode.jmespathType = TOK_EXPREF; - return refNode; - default: - throw new Error("Unknown node type: " + node.type); - } - }, + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretDetailsInfo(); - computeSliceParams: function(arrayLength, sliceParams) { - var start = sliceParams[0]; - var stop = sliceParams[1]; - var step = sliceParams[2]; - var computed = [null, null, null]; - if (step === null) { - step = 1; - } else if (step === 0) { - var error = new Error("Invalid slice, step cannot be 0"); - error.name = "RuntimeError"; - throw error; - } - var stepValueNegative = step < 0 ? true : false; - - if (start === null) { - start = stepValueNegative ? arrayLength - 1 : 0; - } else { - start = this.capSliceRange(arrayLength, start, step); + if (data.hasOwnProperty('delete_previous_version_in_days')) { + obj['delete_previous_version_in_days'] = _ApiClient["default"].convertToType(data['delete_previous_version_in_days'], 'Number'); } - if (stop === null) { - stop = stepValueNegative ? -1 : arrayLength; - } else { - stop = this.capSliceRange(arrayLength, stop, step); + if (data.hasOwnProperty('grace_rotation')) { + obj['grace_rotation'] = _ApiClient["default"].convertToType(data['grace_rotation'], 'Boolean'); } - computed[0] = start; - computed[1] = stop; - computed[2] = step; - return computed; - }, - capSliceRange: function(arrayLength, actualValue, step) { - if (actualValue < 0) { - actualValue += arrayLength; - if (actualValue < 0) { - actualValue = step < 0 ? -1 : 0; - } - } else if (actualValue >= arrayLength) { - actualValue = step < 0 ? arrayLength - 1 : arrayLength; - } - return actualValue; - } + if (data.hasOwnProperty('gw_cluster_id')) { + obj['gw_cluster_id'] = _ApiClient["default"].convertToType(data['gw_cluster_id'], 'Number'); + } - }; + if (data.hasOwnProperty('last_rotation_error')) { + obj['last_rotation_error'] = _ApiClient["default"].convertToType(data['last_rotation_error'], 'String'); + } - function Runtime(interpreter) { - this._interpreter = interpreter; - this.functionTable = { - // name: [function, ] - // The can be: - // - // { - // args: [[type1, type2], [type1, type2]], - // variadic: true|false - // } - // - // Each arg in the arg list is a list of valid types - // (if the function is overloaded and supports multiple - // types. If the type is "any" then no type checking - // occurs on the argument. Variadic is optional - // and if not provided is assumed to be false. - abs: {_func: this._functionAbs, _signature: [{types: [TYPE_NUMBER]}]}, - avg: {_func: this._functionAvg, _signature: [{types: [TYPE_ARRAY_NUMBER]}]}, - ceil: {_func: this._functionCeil, _signature: [{types: [TYPE_NUMBER]}]}, - contains: { - _func: this._functionContains, - _signature: [{types: [TYPE_STRING, TYPE_ARRAY]}, - {types: [TYPE_ANY]}]}, - "ends_with": { - _func: this._functionEndsWith, - _signature: [{types: [TYPE_STRING]}, {types: [TYPE_STRING]}]}, - floor: {_func: this._functionFloor, _signature: [{types: [TYPE_NUMBER]}]}, - length: { - _func: this._functionLength, - _signature: [{types: [TYPE_STRING, TYPE_ARRAY, TYPE_OBJECT]}]}, - map: { - _func: this._functionMap, - _signature: [{types: [TYPE_EXPREF]}, {types: [TYPE_ARRAY]}]}, - max: { - _func: this._functionMax, - _signature: [{types: [TYPE_ARRAY_NUMBER, TYPE_ARRAY_STRING]}]}, - "merge": { - _func: this._functionMerge, - _signature: [{types: [TYPE_OBJECT], variadic: true}] - }, - "max_by": { - _func: this._functionMaxBy, - _signature: [{types: [TYPE_ARRAY]}, {types: [TYPE_EXPREF]}] - }, - sum: {_func: this._functionSum, _signature: [{types: [TYPE_ARRAY_NUMBER]}]}, - "starts_with": { - _func: this._functionStartsWith, - _signature: [{types: [TYPE_STRING]}, {types: [TYPE_STRING]}]}, - min: { - _func: this._functionMin, - _signature: [{types: [TYPE_ARRAY_NUMBER, TYPE_ARRAY_STRING]}]}, - "min_by": { - _func: this._functionMinBy, - _signature: [{types: [TYPE_ARRAY]}, {types: [TYPE_EXPREF]}] - }, - type: {_func: this._functionType, _signature: [{types: [TYPE_ANY]}]}, - keys: {_func: this._functionKeys, _signature: [{types: [TYPE_OBJECT]}]}, - values: {_func: this._functionValues, _signature: [{types: [TYPE_OBJECT]}]}, - sort: {_func: this._functionSort, _signature: [{types: [TYPE_ARRAY_STRING, TYPE_ARRAY_NUMBER]}]}, - "sort_by": { - _func: this._functionSortBy, - _signature: [{types: [TYPE_ARRAY]}, {types: [TYPE_EXPREF]}] - }, - join: { - _func: this._functionJoin, - _signature: [ - {types: [TYPE_STRING]}, - {types: [TYPE_ARRAY_STRING]} - ] - }, - reverse: { - _func: this._functionReverse, - _signature: [{types: [TYPE_STRING, TYPE_ARRAY]}]}, - "to_array": {_func: this._functionToArray, _signature: [{types: [TYPE_ANY]}]}, - "to_string": {_func: this._functionToString, _signature: [{types: [TYPE_ANY]}]}, - "to_number": {_func: this._functionToNumber, _signature: [{types: [TYPE_ANY]}]}, - "not_null": { - _func: this._functionNotNull, - _signature: [{types: [TYPE_ANY], variadic: true}] + if (data.hasOwnProperty('max_versions')) { + obj['max_versions'] = _ApiClient["default"].convertToType(data['max_versions'], 'Number'); } - }; - } - Runtime.prototype = { - callFunction: function(name, resolvedArgs) { - var functionEntry = this.functionTable[name]; - if (functionEntry === undefined) { - throw new Error("Unknown function: " + name + "()"); - } - this._validateArgs(name, resolvedArgs, functionEntry._signature); - return functionEntry._func.call(this, resolvedArgs); - }, + if (data.hasOwnProperty('number_of_versions_to_save')) { + obj['number_of_versions_to_save'] = _ApiClient["default"].convertToType(data['number_of_versions_to_save'], 'Number'); + } - _validateArgs: function(name, args, signature) { - // Validating the args requires validating - // the correct arity and the correct type of each arg. - // If the last argument is declared as variadic, then we need - // a minimum number of args to be required. Otherwise it has to - // be an exact amount. - var pluralized; - if (signature[signature.length - 1].variadic) { - if (args.length < signature.length) { - pluralized = signature.length === 1 ? " argument" : " arguments"; - throw new Error("ArgumentError: " + name + "() " + - "takes at least" + signature.length + pluralized + - " but received " + args.length); - } - } else if (args.length !== signature.length) { - pluralized = signature.length === 1 ? " argument" : " arguments"; - throw new Error("ArgumentError: " + name + "() " + - "takes " + signature.length + pluralized + - " but received " + args.length); - } - var currentSpec; - var actualType; - var typeMatched; - for (var i = 0; i < signature.length; i++) { - typeMatched = false; - currentSpec = signature[i].types; - actualType = this._getTypeName(args[i]); - for (var j = 0; j < currentSpec.length; j++) { - if (this._typeMatches(actualType, currentSpec[j], args[i])) { - typeMatched = true; - break; - } - } - if (!typeMatched) { - var expected = currentSpec - .map(function(typeIdentifier) { - return TYPE_NAME_TABLE[typeIdentifier]; - }) - .join(','); - throw new Error("TypeError: " + name + "() " + - "expected argument " + (i + 1) + - " to be type " + expected + - " but received type " + - TYPE_NAME_TABLE[actualType] + " instead."); - } + if (data.hasOwnProperty('rotation_hour')) { + obj['rotation_hour'] = _ApiClient["default"].convertToType(data['rotation_hour'], 'Number'); } - }, - _typeMatches: function(actual, expected, argValue) { - if (expected === TYPE_ANY) { - return true; + if (data.hasOwnProperty('rotation_interval_min')) { + obj['rotation_interval_min'] = _ApiClient["default"].convertToType(data['rotation_interval_min'], 'Boolean'); } - if (expected === TYPE_ARRAY_STRING || - expected === TYPE_ARRAY_NUMBER || - expected === TYPE_ARRAY) { - // The expected type can either just be array, - // or it can require a specific subtype (array of numbers). - // - // The simplest case is if "array" with no subtype is specified. - if (expected === TYPE_ARRAY) { - return actual === TYPE_ARRAY; - } else if (actual === TYPE_ARRAY) { - // Otherwise we need to check subtypes. - // I think this has potential to be improved. - var subtype; - if (expected === TYPE_ARRAY_NUMBER) { - subtype = TYPE_NUMBER; - } else if (expected === TYPE_ARRAY_STRING) { - subtype = TYPE_STRING; - } - for (var i = 0; i < argValue.length; i++) { - if (!this._typeMatches( - this._getTypeName(argValue[i]), subtype, - argValue[i])) { - return false; - } - } - return true; - } - } else { - return actual === expected; + + if (data.hasOwnProperty('rotation_statement')) { + obj['rotation_statement'] = _ApiClient["default"].convertToType(data['rotation_statement'], 'String'); } - }, - _getTypeName: function(obj) { - switch (Object.prototype.toString.call(obj)) { - case "[object String]": - return TYPE_STRING; - case "[object Number]": - return TYPE_NUMBER; - case "[object Array]": - return TYPE_ARRAY; - case "[object Boolean]": - return TYPE_BOOLEAN; - case "[object Null]": - return TYPE_NULL; - case "[object Object]": - // Check if it's an expref. If it has, it's been - // tagged with a jmespathType attr of 'Expref'; - if (obj.jmespathType === TOK_EXPREF) { - return TYPE_EXPREF; - } else { - return TYPE_OBJECT; - } + + if (data.hasOwnProperty('rotator_creds_type')) { + obj['rotator_creds_type'] = _ApiClient["default"].convertToType(data['rotator_creds_type'], 'String'); } - }, - _functionStartsWith: function(resolvedArgs) { - return resolvedArgs[0].lastIndexOf(resolvedArgs[1]) === 0; - }, + if (data.hasOwnProperty('rotator_status')) { + obj['rotator_status'] = _ApiClient["default"].convertToType(data['rotator_status'], 'String'); + } - _functionEndsWith: function(resolvedArgs) { - var searchStr = resolvedArgs[0]; - var suffix = resolvedArgs[1]; - return searchStr.indexOf(suffix, searchStr.length - suffix.length) !== -1; - }, + if (data.hasOwnProperty('rotator_type')) { + obj['rotator_type'] = _ApiClient["default"].convertToType(data['rotator_type'], 'String'); + } - _functionReverse: function(resolvedArgs) { - var typeName = this._getTypeName(resolvedArgs[0]); - if (typeName === TYPE_STRING) { - var originalStr = resolvedArgs[0]; - var reversedStr = ""; - for (var i = originalStr.length - 1; i >= 0; i--) { - reversedStr += originalStr[i]; - } - return reversedStr; - } else { - var reversedArray = resolvedArgs[0].slice(0); - reversedArray.reverse(); - return reversedArray; + if (data.hasOwnProperty('same_password')) { + obj['same_password'] = _ApiClient["default"].convertToType(data['same_password'], 'Boolean'); } - }, - _functionAbs: function(resolvedArgs) { - return Math.abs(resolvedArgs[0]); - }, + if (data.hasOwnProperty('services_details')) { + obj['services_details'] = _ApiClient["default"].convertToType(data['services_details'], [_WindowsService["default"]]); + } + } - _functionCeil: function(resolvedArgs) { - return Math.ceil(resolvedArgs[0]); - }, + return obj; + } + }]); - _functionAvg: function(resolvedArgs) { - var sum = 0; - var inputArray = resolvedArgs[0]; - for (var i = 0; i < inputArray.length; i++) { - sum += inputArray[i]; - } - return sum / inputArray.length; - }, + return RotatedSecretDetailsInfo; +}(); +/** + * @member {Number} delete_previous_version_in_days + */ - _functionContains: function(resolvedArgs) { - return resolvedArgs[0].indexOf(resolvedArgs[1]) >= 0; - }, - _functionFloor: function(resolvedArgs) { - return Math.floor(resolvedArgs[0]); - }, +RotatedSecretDetailsInfo.prototype['delete_previous_version_in_days'] = undefined; +/** + * @member {Boolean} grace_rotation + */ - _functionLength: function(resolvedArgs) { - if (!isObject(resolvedArgs[0])) { - return resolvedArgs[0].length; - } else { - // As far as I can tell, there's no way to get the length - // of an object without O(n) iteration through the object. - return Object.keys(resolvedArgs[0]).length; - } - }, +RotatedSecretDetailsInfo.prototype['grace_rotation'] = undefined; +/** + * @member {Number} gw_cluster_id + */ - _functionMap: function(resolvedArgs) { - var mapped = []; - var interpreter = this._interpreter; - var exprefNode = resolvedArgs[0]; - var elements = resolvedArgs[1]; - for (var i = 0; i < elements.length; i++) { - mapped.push(interpreter.visit(exprefNode, elements[i])); - } - return mapped; - }, +RotatedSecretDetailsInfo.prototype['gw_cluster_id'] = undefined; +/** + * @member {String} last_rotation_error + */ - _functionMerge: function(resolvedArgs) { - var merged = {}; - for (var i = 0; i < resolvedArgs.length; i++) { - var current = resolvedArgs[i]; - for (var key in current) { - merged[key] = current[key]; - } - } - return merged; - }, +RotatedSecretDetailsInfo.prototype['last_rotation_error'] = undefined; +/** + * @member {Number} max_versions + */ - _functionMax: function(resolvedArgs) { - if (resolvedArgs[0].length > 0) { - var typeName = this._getTypeName(resolvedArgs[0][0]); - if (typeName === TYPE_NUMBER) { - return Math.max.apply(Math, resolvedArgs[0]); - } else { - var elements = resolvedArgs[0]; - var maxElement = elements[0]; - for (var i = 1; i < elements.length; i++) { - if (maxElement.localeCompare(elements[i]) < 0) { - maxElement = elements[i]; - } - } - return maxElement; - } - } else { - return null; - } - }, +RotatedSecretDetailsInfo.prototype['max_versions'] = undefined; +/** + * @member {Number} number_of_versions_to_save + */ - _functionMin: function(resolvedArgs) { - if (resolvedArgs[0].length > 0) { - var typeName = this._getTypeName(resolvedArgs[0][0]); - if (typeName === TYPE_NUMBER) { - return Math.min.apply(Math, resolvedArgs[0]); - } else { - var elements = resolvedArgs[0]; - var minElement = elements[0]; - for (var i = 1; i < elements.length; i++) { - if (elements[i].localeCompare(minElement) < 0) { - minElement = elements[i]; - } - } - return minElement; - } - } else { - return null; - } - }, +RotatedSecretDetailsInfo.prototype['number_of_versions_to_save'] = undefined; +/** + * @member {Number} rotation_hour + */ - _functionSum: function(resolvedArgs) { - var sum = 0; - var listToSum = resolvedArgs[0]; - for (var i = 0; i < listToSum.length; i++) { - sum += listToSum[i]; - } - return sum; - }, +RotatedSecretDetailsInfo.prototype['rotation_hour'] = undefined; +/** + * @member {Boolean} rotation_interval_min + */ - _functionType: function(resolvedArgs) { - switch (this._getTypeName(resolvedArgs[0])) { - case TYPE_NUMBER: - return "number"; - case TYPE_STRING: - return "string"; - case TYPE_ARRAY: - return "array"; - case TYPE_OBJECT: - return "object"; - case TYPE_BOOLEAN: - return "boolean"; - case TYPE_EXPREF: - return "expref"; - case TYPE_NULL: - return "null"; - } - }, +RotatedSecretDetailsInfo.prototype['rotation_interval_min'] = undefined; +/** + * @member {String} rotation_statement + */ - _functionKeys: function(resolvedArgs) { - return Object.keys(resolvedArgs[0]); - }, +RotatedSecretDetailsInfo.prototype['rotation_statement'] = undefined; +/** + * @member {String} rotator_creds_type + */ - _functionValues: function(resolvedArgs) { - var obj = resolvedArgs[0]; - var keys = Object.keys(obj); - var values = []; - for (var i = 0; i < keys.length; i++) { - values.push(obj[keys[i]]); - } - return values; - }, +RotatedSecretDetailsInfo.prototype['rotator_creds_type'] = undefined; +/** + * RotationStatus defines types of rotation Status + * @member {String} rotator_status + */ - _functionJoin: function(resolvedArgs) { - var joinChar = resolvedArgs[0]; - var listJoin = resolvedArgs[1]; - return listJoin.join(joinChar); - }, +RotatedSecretDetailsInfo.prototype['rotator_status'] = undefined; +/** + * @member {String} rotator_type + */ - _functionToArray: function(resolvedArgs) { - if (this._getTypeName(resolvedArgs[0]) === TYPE_ARRAY) { - return resolvedArgs[0]; - } else { - return [resolvedArgs[0]]; - } - }, +RotatedSecretDetailsInfo.prototype['rotator_type'] = undefined; +/** + * @member {Boolean} same_password + */ - _functionToString: function(resolvedArgs) { - if (this._getTypeName(resolvedArgs[0]) === TYPE_STRING) { - return resolvedArgs[0]; - } else { - return JSON.stringify(resolvedArgs[0]); - } - }, +RotatedSecretDetailsInfo.prototype['same_password'] = undefined; +/** + * @member {Array.} services_details + */ - _functionToNumber: function(resolvedArgs) { - var typeName = this._getTypeName(resolvedArgs[0]); - var convertedValue; - if (typeName === TYPE_NUMBER) { - return resolvedArgs[0]; - } else if (typeName === TYPE_STRING) { - convertedValue = +resolvedArgs[0]; - if (!isNaN(convertedValue)) { - return convertedValue; - } - } - return null; - }, +RotatedSecretDetailsInfo.prototype['services_details'] = undefined; +var _default = RotatedSecretDetailsInfo; +exports["default"] = _default; - _functionNotNull: function(resolvedArgs) { - for (var i = 0; i < resolvedArgs.length; i++) { - if (this._getTypeName(resolvedArgs[i]) !== TYPE_NULL) { - return resolvedArgs[i]; - } - } - return null; - }, +/***/ }), - _functionSort: function(resolvedArgs) { - var sortedArray = resolvedArgs[0].slice(0); - sortedArray.sort(); - return sortedArray; - }, +/***/ 634: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - _functionSortBy: function(resolvedArgs) { - var sortedArray = resolvedArgs[0].slice(0); - if (sortedArray.length === 0) { - return sortedArray; - } - var interpreter = this._interpreter; - var exprefNode = resolvedArgs[1]; - var requiredType = this._getTypeName( - interpreter.visit(exprefNode, sortedArray[0])); - if ([TYPE_NUMBER, TYPE_STRING].indexOf(requiredType) < 0) { - throw new Error("TypeError"); - } - var that = this; - // In order to get a stable sort out of an unstable - // sort algorithm, we decorate/sort/undecorate (DSU) - // by creating a new list of [index, element] pairs. - // In the cmp function, if the evaluated elements are - // equal, then the index will be used as the tiebreaker. - // After the decorated list has been sorted, it will be - // undecorated to extract the original elements. - var decorated = []; - for (var i = 0; i < sortedArray.length; i++) { - decorated.push([i, sortedArray[i]]); - } - decorated.sort(function(a, b) { - var exprA = interpreter.visit(exprefNode, a[1]); - var exprB = interpreter.visit(exprefNode, b[1]); - if (that._getTypeName(exprA) !== requiredType) { - throw new Error( - "TypeError: expected " + requiredType + ", received " + - that._getTypeName(exprA)); - } else if (that._getTypeName(exprB) !== requiredType) { - throw new Error( - "TypeError: expected " + requiredType + ", received " + - that._getTypeName(exprB)); - } - if (exprA > exprB) { - return 1; - } else if (exprA < exprB) { - return -1; - } else { - // If they're equal compare the items by their - // order to maintain relative order of equal keys - // (i.e. to get a stable sort). - return a[0] - b[0]; - } - }); - // Undecorate: extract out the original list elements. - for (var j = 0; j < decorated.length; j++) { - sortedArray[j] = decorated[j][1]; - } - return sortedArray; - }, +"use strict"; - _functionMaxBy: function(resolvedArgs) { - var exprefNode = resolvedArgs[1]; - var resolvedArray = resolvedArgs[0]; - var keyFunction = this.createKeyFunction(exprefNode, [TYPE_NUMBER, TYPE_STRING]); - var maxNumber = -Infinity; - var maxRecord; - var current; - for (var i = 0; i < resolvedArray.length; i++) { - current = keyFunction(resolvedArray[i]); - if (current > maxNumber) { - maxNumber = current; - maxRecord = resolvedArray[i]; - } - } - return maxRecord; - }, - _functionMinBy: function(resolvedArgs) { - var exprefNode = resolvedArgs[1]; - var resolvedArray = resolvedArgs[0]; - var keyFunction = this.createKeyFunction(exprefNode, [TYPE_NUMBER, TYPE_STRING]); - var minNumber = Infinity; - var minRecord; - var current; - for (var i = 0; i < resolvedArray.length; i++) { - current = keyFunction(resolvedArray[i]); - if (current < minNumber) { - minNumber = current; - minRecord = resolvedArray[i]; - } - } - return minRecord; - }, +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - createKeyFunction: function(exprefNode, allowedTypes) { - var that = this; - var interpreter = this._interpreter; - var keyFunc = function(x) { - var current = interpreter.visit(exprefNode, x); - if (allowedTypes.indexOf(that._getTypeName(current)) < 0) { - var msg = "TypeError: expected one of " + allowedTypes + - ", received " + that._getTypeName(current); - throw new Error(msg); - } - return current; - }; - return keyFunc; - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - }; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function compile(stream) { - var parser = new Parser(); - var ast = parser.parse(stream); - return ast; - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function tokenize(stream) { - var lexer = new Lexer(); - return lexer.tokenize(stream); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RotatedSecretGetValue model module. + * @module model/RotatedSecretGetValue + * @version 3.6.3 + */ +var RotatedSecretGetValue = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretGetValue. + * @alias module:model/RotatedSecretGetValue + * @param name {String} Secret name + */ + function RotatedSecretGetValue(name) { + _classCallCheck(this, RotatedSecretGetValue); - function search(data, expression) { - var parser = new Parser(); - // This needs to be improved. Both the interpreter and runtime depend on - // each other. The runtime needs the interpreter to support exprefs. - // There's likely a clean way to avoid the cyclic dependency. - var runtime = new Runtime(); - var interpreter = new TreeInterpreter(runtime); - runtime._interpreter = interpreter; - var node = parser.parse(expression); - return interpreter.search(node, data); + RotatedSecretGetValue.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - exports.tokenize = tokenize; - exports.compile = compile; - exports.search = search; - exports.strictDeepEqual = strictDeepEqual; -})( false ? 0 : exports); + _createClass(RotatedSecretGetValue, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a RotatedSecretGetValue from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretGetValue} obj Optional instance to populate. + * @return {module:model/RotatedSecretGetValue} The populated RotatedSecretGetValue instance. + */ -/***/ }), + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretGetValue(); -/***/ 74281: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('ignore-cache')) { + obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); + } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var loader = __nccwpck_require__(91950); -var dumper = __nccwpck_require__(59980); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -function renamed(from, to) { - return function () { - throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' + - 'Use yaml.' + to + ' instead, which is now safe by default.'); - }; -} + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + return obj; + } + }]); -module.exports.Type = __nccwpck_require__(9557); -module.exports.Schema = __nccwpck_require__(62046); -module.exports.FAILSAFE_SCHEMA = __nccwpck_require__(69832); -module.exports.JSON_SCHEMA = __nccwpck_require__(58927); -module.exports.CORE_SCHEMA = __nccwpck_require__(55746); -module.exports.DEFAULT_SCHEMA = __nccwpck_require__(97336); -module.exports.load = loader.load; -module.exports.loadAll = loader.loadAll; -module.exports.dump = dumper.dump; -module.exports.YAMLException = __nccwpck_require__(41248); + return RotatedSecretGetValue; +}(); +/** + * Get rotated secret value of specific Host (relevant only for Linked Target) + * @member {String} host + */ -// Re-export all types in case user wants to create custom schema -module.exports.types = { - binary: __nccwpck_require__(8149), - float: __nccwpck_require__(57584), - map: __nccwpck_require__(47316), - null: __nccwpck_require__(4333), - pairs: __nccwpck_require__(16267), - set: __nccwpck_require__(78758), - timestamp: __nccwpck_require__(28966), - bool: __nccwpck_require__(44915), - int: __nccwpck_require__(62271), - merge: __nccwpck_require__(76854), - omap: __nccwpck_require__(58649), - seq: __nccwpck_require__(77161), - str: __nccwpck_require__(53929) -}; -// Removed functions from JS-YAML 3.0.x -module.exports.safeLoad = renamed('safeLoad', 'load'); -module.exports.safeLoadAll = renamed('safeLoadAll', 'loadAll'); -module.exports.safeDump = renamed('safeDump', 'dump'); +RotatedSecretGetValue.prototype['host'] = undefined; +/** + * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI + * @member {String} ignore-cache + * @default 'false' + */ +RotatedSecretGetValue.prototype['ignore-cache'] = 'false'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ }), +RotatedSecretGetValue.prototype['json'] = false; +/** + * Secret name + * @member {String} name + */ -/***/ 19816: -/***/ ((module) => { +RotatedSecretGetValue.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -"use strict"; +RotatedSecretGetValue.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +RotatedSecretGetValue.prototype['uid-token'] = undefined; +/** + * Secret version + * @member {Number} version + */ +RotatedSecretGetValue.prototype['version'] = undefined; +var _default = RotatedSecretGetValue; +exports["default"] = _default; -function isNothing(subject) { - return (typeof subject === 'undefined') || (subject === null); -} +/***/ }), +/***/ 54507: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -function isObject(subject) { - return (typeof subject === 'object') && (subject !== null); -} +"use strict"; -function toArray(sequence) { - if (Array.isArray(sequence)) return sequence; - else if (isNothing(sequence)) return []; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - return [ sequence ]; -} +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function extend(target, source) { - var index, length, key, sourceKeys; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (source) { - sourceKeys = Object.keys(source); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - for (index = 0, length = sourceKeys.length; index < length; index += 1) { - key = sourceKeys[index]; - target[key] = source[key]; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RotatedSecretList model module. + * @module model/RotatedSecretList + * @version 3.6.3 + */ +var RotatedSecretList = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretList. + * rotatedSecretList is a command that returns a list of rotated secrets + * @alias module:model/RotatedSecretList + */ + function RotatedSecretList() { + _classCallCheck(this, RotatedSecretList); + + RotatedSecretList.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - return target; -} + _createClass(RotatedSecretList, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a RotatedSecretList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretList} obj Optional instance to populate. + * @return {module:model/RotatedSecretList} The populated RotatedSecretList instance. + */ -function repeat(string, count) { - var result = '', cycle; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretList(); - for (cycle = 0; cycle < count; cycle += 1) { - result += string; - } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - return result; -} + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + return obj; + } + }]); + + return RotatedSecretList; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -function isNegativeZero(number) { - return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number); -} +RotatedSecretList.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -module.exports.isNothing = isNothing; -module.exports.isObject = isObject; -module.exports.toArray = toArray; -module.exports.repeat = repeat; -module.exports.isNegativeZero = isNegativeZero; -module.exports.extend = extend; +RotatedSecretList.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +RotatedSecretList.prototype['uid-token'] = undefined; +var _default = RotatedSecretList; +exports["default"] = _default; /***/ }), -/***/ 59980: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 74226: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -/*eslint-disable no-use-before-define*/ - -var common = __nccwpck_require__(19816); -var YAMLException = __nccwpck_require__(41248); -var DEFAULT_SCHEMA = __nccwpck_require__(97336); - -var _toString = Object.prototype.toString; -var _hasOwnProperty = Object.prototype.hasOwnProperty; - -var CHAR_BOM = 0xFEFF; -var CHAR_TAB = 0x09; /* Tab */ -var CHAR_LINE_FEED = 0x0A; /* LF */ -var CHAR_CARRIAGE_RETURN = 0x0D; /* CR */ -var CHAR_SPACE = 0x20; /* Space */ -var CHAR_EXCLAMATION = 0x21; /* ! */ -var CHAR_DOUBLE_QUOTE = 0x22; /* " */ -var CHAR_SHARP = 0x23; /* # */ -var CHAR_PERCENT = 0x25; /* % */ -var CHAR_AMPERSAND = 0x26; /* & */ -var CHAR_SINGLE_QUOTE = 0x27; /* ' */ -var CHAR_ASTERISK = 0x2A; /* * */ -var CHAR_COMMA = 0x2C; /* , */ -var CHAR_MINUS = 0x2D; /* - */ -var CHAR_COLON = 0x3A; /* : */ -var CHAR_EQUALS = 0x3D; /* = */ -var CHAR_GREATER_THAN = 0x3E; /* > */ -var CHAR_QUESTION = 0x3F; /* ? */ -var CHAR_COMMERCIAL_AT = 0x40; /* @ */ -var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */ -var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */ -var CHAR_GRAVE_ACCENT = 0x60; /* ` */ -var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */ -var CHAR_VERTICAL_LINE = 0x7C; /* | */ -var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */ - -var ESCAPE_SEQUENCES = {}; - -ESCAPE_SEQUENCES[0x00] = '\\0'; -ESCAPE_SEQUENCES[0x07] = '\\a'; -ESCAPE_SEQUENCES[0x08] = '\\b'; -ESCAPE_SEQUENCES[0x09] = '\\t'; -ESCAPE_SEQUENCES[0x0A] = '\\n'; -ESCAPE_SEQUENCES[0x0B] = '\\v'; -ESCAPE_SEQUENCES[0x0C] = '\\f'; -ESCAPE_SEQUENCES[0x0D] = '\\r'; -ESCAPE_SEQUENCES[0x1B] = '\\e'; -ESCAPE_SEQUENCES[0x22] = '\\"'; -ESCAPE_SEQUENCES[0x5C] = '\\\\'; -ESCAPE_SEQUENCES[0x85] = '\\N'; -ESCAPE_SEQUENCES[0xA0] = '\\_'; -ESCAPE_SEQUENCES[0x2028] = '\\L'; -ESCAPE_SEQUENCES[0x2029] = '\\P'; - -var DEPRECATED_BOOLEANS_SYNTAX = [ - 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON', - 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF' -]; - -var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -function compileStyleMap(schema, map) { - var result, keys, index, length, tag, style, type; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (map === null) return {}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - result = {}; - keys = Object.keys(map); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - for (index = 0, length = keys.length; index < length; index += 1) { - tag = keys[index]; - style = String(map[tag]); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (tag.slice(0, 2) === '!!') { - tag = 'tag:yaml.org,2002:' + tag.slice(2); - } - type = schema.compiledTypeMap['fallback'][tag]; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (type && _hasOwnProperty.call(type.styleAliases, style)) { - style = type.styleAliases[style]; - } +/** + * The RotatedSecretOutput model module. + * @module model/RotatedSecretOutput + * @version 3.6.3 + */ +var RotatedSecretOutput = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretOutput. + * @alias module:model/RotatedSecretOutput + */ + function RotatedSecretOutput() { + _classCallCheck(this, RotatedSecretOutput); - result[tag] = style; + RotatedSecretOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - return result; -} -function encodeHex(character) { - var string, handle, length; + _createClass(RotatedSecretOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a RotatedSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretOutput} obj Optional instance to populate. + * @return {module:model/RotatedSecretOutput} The populated RotatedSecretOutput instance. + */ - string = character.toString(16).toUpperCase(); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretOutput(); - if (character <= 0xFF) { - handle = 'x'; - length = 2; - } else if (character <= 0xFFFF) { - handle = 'u'; - length = 4; - } else if (character <= 0xFFFFFFFF) { - handle = 'U'; - length = 8; - } else { - throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF'); - } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } - return '\\' + handle + common.repeat('0', length - string.length) + string; -} + return obj; + } + }]); + return RotatedSecretOutput; +}(); +/** + * @member {String} name + */ -var QUOTING_TYPE_SINGLE = 1, - QUOTING_TYPE_DOUBLE = 2; -function State(options) { - this.schema = options['schema'] || DEFAULT_SCHEMA; - this.indent = Math.max(1, (options['indent'] || 2)); - this.noArrayIndent = options['noArrayIndent'] || false; - this.skipInvalid = options['skipInvalid'] || false; - this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']); - this.styleMap = compileStyleMap(this.schema, options['styles'] || null); - this.sortKeys = options['sortKeys'] || false; - this.lineWidth = options['lineWidth'] || 80; - this.noRefs = options['noRefs'] || false; - this.noCompatMode = options['noCompatMode'] || false; - this.condenseFlow = options['condenseFlow'] || false; - this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE; - this.forceQuotes = options['forceQuotes'] || false; - this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null; +RotatedSecretOutput.prototype['name'] = undefined; +var _default = RotatedSecretOutput; +exports["default"] = _default; - this.implicitTypes = this.schema.compiledImplicit; - this.explicitTypes = this.schema.compiledExplicit; +/***/ }), - this.tag = null; - this.result = ''; +/***/ 55993: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - this.duplicates = []; - this.usedDuplicates = null; -} +"use strict"; -// Indents every line in a string. Empty lines (\n only) are not indented. -function indentString(string, spaces) { - var ind = common.repeat(' ', spaces), - position = 0, - next = -1, - result = '', - line, - length = string.length; - while (position < length) { - next = string.indexOf('\n', position); - if (next === -1) { - line = string.slice(position); - position = length; - } else { - line = string.slice(position, next + 1); - position = next + 1; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (line.length && line !== '\n') result += ind; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - result += line; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - return result; -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function generateNextLine(state, level) { - return '\n' + common.repeat(' ', state.indent * level); -} +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function testImplicitResolving(state, str) { - var index, length, type; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - for (index = 0, length = state.implicitTypes.length; index < length; index += 1) { - type = state.implicitTypes[index]; +/** + * The RotatedSecretUpdateAws model module. + * @module model/RotatedSecretUpdateAws + * @version 3.6.3 + */ +var RotatedSecretUpdateAws = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateAws. + * @alias module:model/RotatedSecretUpdateAws + * @param name {String} Rotated secret name + */ + function RotatedSecretUpdateAws(name) { + _classCallCheck(this, RotatedSecretUpdateAws); - if (type.resolve(str)) { - return true; - } + RotatedSecretUpdateAws.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - return false; -} - -// [33] s-white ::= s-space | s-tab -function isWhitespace(c) { - return c === CHAR_SPACE || c === CHAR_TAB; -} -// Returns true if the character can be printed without escaping. -// From YAML 1.2: "any allowed characters known to be non-printable -// should also be escaped. [However,] This isn’t mandatory" -// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029. -function isPrintable(c) { - return (0x00020 <= c && c <= 0x00007E) - || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029) - || ((0x0E000 <= c && c <= 0x00FFFD) && c !== CHAR_BOM) - || (0x10000 <= c && c <= 0x10FFFF); -} + _createClass(RotatedSecretUpdateAws, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a RotatedSecretUpdateAws from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateAws} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateAws} The populated RotatedSecretUpdateAws instance. + */ -// [34] ns-char ::= nb-char - s-white -// [27] nb-char ::= c-printable - b-char - c-byte-order-mark -// [26] b-char ::= b-line-feed | b-carriage-return -// Including s-white (for some reason, examples doesn't match specs in this aspect) -// ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark -function isNsCharOrWhitespace(c) { - return isPrintable(c) - && c !== CHAR_BOM - // - b-char - && c !== CHAR_CARRIAGE_RETURN - && c !== CHAR_LINE_FEED; -} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateAws(); -// [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out -// c = flow-in ⇒ ns-plain-safe-in -// c = block-key ⇒ ns-plain-safe-out -// c = flow-key ⇒ ns-plain-safe-in -// [128] ns-plain-safe-out ::= ns-char -// [129] ns-plain-safe-in ::= ns-char - c-flow-indicator -// [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” ) -// | ( /* An ns-char preceding */ “#” ) -// | ( “:” /* Followed by an ns-plain-safe(c) */ ) -function isPlainSafe(c, prev, inblock) { - var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c); - var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c); - return ( - // ns-plain-safe - inblock ? // c = flow-in - cIsNsCharOrWhitespace - : cIsNsCharOrWhitespace - // - c-flow-indicator - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - ) - // ns-plain-char - && c !== CHAR_SHARP // false on '#' - && !(prev === CHAR_COLON && !cIsNsChar) // false on ': ' - || (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) // change to true on '[^ ]#' - || (prev === CHAR_COLON && cIsNsChar); // change to true on ':[^ ]' -} + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } -// Simplified test for values allowed as the first character in plain style. -function isPlainSafeFirst(c) { - // Uses a subset of ns-char - c-indicator - // where ns-char = nb-char - s-white. - // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part - return isPrintable(c) && c !== CHAR_BOM - && !isWhitespace(c) // - s-white - // - (c-indicator ::= - // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}” - && c !== CHAR_MINUS - && c !== CHAR_QUESTION - && c !== CHAR_COLON - && c !== CHAR_COMMA - && c !== CHAR_LEFT_SQUARE_BRACKET - && c !== CHAR_RIGHT_SQUARE_BRACKET - && c !== CHAR_LEFT_CURLY_BRACKET - && c !== CHAR_RIGHT_CURLY_BRACKET - // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"” - && c !== CHAR_SHARP - && c !== CHAR_AMPERSAND - && c !== CHAR_ASTERISK - && c !== CHAR_EXCLAMATION - && c !== CHAR_VERTICAL_LINE - && c !== CHAR_EQUALS - && c !== CHAR_GREATER_THAN - && c !== CHAR_SINGLE_QUOTE - && c !== CHAR_DOUBLE_QUOTE - // | “%” | “@” | “`”) - && c !== CHAR_PERCENT - && c !== CHAR_COMMERCIAL_AT - && c !== CHAR_GRAVE_ACCENT; -} + if (data.hasOwnProperty('api-id')) { + obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); + } -// Simplified test for values allowed as the last character in plain style. -function isPlainSafeLast(c) { - // just not whitespace or colon, it will be checked to be plain character later - return !isWhitespace(c) && c !== CHAR_COLON; -} + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + } -// Same as 'string'.codePointAt(pos), but works in older browsers. -function codePointAt(string, pos) { - var first = string.charCodeAt(pos), second; - if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) { - second = string.charCodeAt(pos + 1); - if (second >= 0xDC00 && second <= 0xDFFF) { - // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000; - } - } - return first; -} + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } -// Determines whether block indentation indicator is required. -function needIndentIndicator(string) { - var leadingSpaceRe = /^\n* /; - return leadingSpaceRe.test(string); -} + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -var STYLE_PLAIN = 1, - STYLE_SINGLE = 2, - STYLE_LITERAL = 3, - STYLE_FOLDED = 4, - STYLE_DOUBLE = 5; + if (data.hasOwnProperty('aws-region')) { + obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); + } -// Determines which scalar styles are possible and returns the preferred style. -// lineWidth = -1 => no limit. -// Pre-conditions: str.length > 0. -// Post-conditions: -// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string. -// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1). -// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1). -function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, - testAmbiguousType, quotingType, forceQuotes, inblock) { + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } - var i; - var char = 0; - var prevChar = null; - var hasLineBreak = false; - var hasFoldableLine = false; // only checked if shouldTrackWidth - var shouldTrackWidth = lineWidth !== -1; - var previousLineBreak = -1; // count the first line correctly - var plain = isPlainSafeFirst(codePointAt(string, 0)) - && isPlainSafeLast(codePointAt(string, string.length - 1)); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - if (singleLineOnly || forceQuotes) { - // Case: no block styles. - // Check for disallowed characters to rule out plain and single. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - } else { - // Case: block styles permitted. - for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - if (char === CHAR_LINE_FEED) { - hasLineBreak = true; - // Check if any line can be folded. - if (shouldTrackWidth) { - hasFoldableLine = hasFoldableLine || - // Foldable line = too long, and not more-indented. - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' '); - previousLineBreak = i; + if (data.hasOwnProperty('grace-rotation')) { + obj['grace-rotation'] = _ApiClient["default"].convertToType(data['grace-rotation'], 'String'); } - } else if (!isPrintable(char)) { - return STYLE_DOUBLE; - } - plain = plain && isPlainSafe(char, prevChar, inblock); - prevChar = char; - } - // in case the end is missing a \n - hasFoldableLine = hasFoldableLine || (shouldTrackWidth && - (i - previousLineBreak - 1 > lineWidth && - string[previousLineBreak + 1] !== ' ')); - } - // Although every style can represent \n without escaping, prefer block styles - // for multiline, since they're more readable and they don't add empty lines. - // Also prefer folding a super-long line. - if (!hasLineBreak && !hasFoldableLine) { - // Strings interpretable as another type have to be quoted; - // e.g. the string 'true' vs. the boolean true. - if (plain && !forceQuotes && !testAmbiguousType(string)) { - return STYLE_PLAIN; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; - } - // Edge case: block indentation indicator can only have one digit. - if (indentPerLevel > 9 && needIndentIndicator(string)) { - return STYLE_DOUBLE; - } - // At this point we know block styles are valid. - // Prefer literal style unless we want to fold. - if (!forceQuotes) { - return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL; - } - return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE; -} -// Note: line breaking/folding is implemented for only the folded style. -// NB. We drop the last trailing newline (if any) of a returned block scalar -// since the dumper adds its own newline. This always works: -// • No ending newline => unaffected; already using strip "-" chomping. -// • Ending newline => removed then restored. -// Importantly, this keeps the "+" chomp indicator from gaining an extra line. -function writeScalar(state, string, level, iskey, inblock) { - state.dump = (function () { - if (string.length === 0) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''"; - } - if (!state.noCompatMode) { - if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) { - return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'"); - } - } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - var indent = state.indent * Math.max(1, level); // no 0-indent scalars - // As indentation gets deeper, let the width decrease monotonically - // to the lower bound min(state.lineWidth, 40). - // Note that this implies - // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound. - // state.lineWidth > 40 + state.indent: width decreases until the lower bound. - // This behaves better than a constant minimum width which disallows narrower options, - // or an indent threshold which causes the width to suddenly increase. - var lineWidth = state.lineWidth === -1 - ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - // Without knowing if keys are implicit/explicit, assume implicit for safety. - var singleLineOnly = iskey - // No block styles in flow mode. - || (state.flowLevel > -1 && level >= state.flowLevel); - function testAmbiguity(string) { - return testImplicitResolving(state, string); - } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, - testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) { + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - case STYLE_PLAIN: - return string; - case STYLE_SINGLE: - return "'" + string.replace(/'/g, "''") + "'"; - case STYLE_LITERAL: - return '|' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(string, indent)); - case STYLE_FOLDED: - return '>' + blockHeader(string, state.indent) - + dropEndingNewline(indentString(foldString(string, lineWidth), indent)); - case STYLE_DOUBLE: - return '"' + escapeString(string, lineWidth) + '"'; - default: - throw new YAMLException('impossible error: invalid scalar style'); - } - }()); -} + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9. -function blockHeader(string, indentPerLevel) { - var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : ''; + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - // note the special case: the string '\n' counts as a "trailing" empty line. - var clip = string[string.length - 1] === '\n'; - var keep = clip && (string[string.length - 2] === '\n' || string === '\n'); - var chomp = keep ? '+' : (clip ? '' : '-'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - return indentIndicator + chomp + '\n'; -} + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } -// (See the note for writeScalar.) -function dropEndingNewline(string) { - return string[string.length - 1] === '\n' ? string.slice(0, -1) : string; -} + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -// Note: a long line without a suitable break point will exceed the width limit. -// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0. -function foldString(string, width) { - // In folded style, $k$ consecutive newlines output as $k+1$ newlines— - // unless they're before or after a more-indented line, or at the very - // beginning or end, in which case $k$ maps to $k$. - // Therefore, parse each chunk as newline(s) followed by a content line. - var lineRe = /(\n+)([^\n]*)/g; + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } - // first line (possibly an empty line) - var result = (function () { - var nextLF = string.indexOf('\n'); - nextLF = nextLF !== -1 ? nextLF : string.length; - lineRe.lastIndex = nextLF; - return foldLine(string.slice(0, nextLF), width); - }()); - // If we haven't reached the first content line yet, don't add an extra \n. - var prevMoreIndented = string[0] === '\n' || string[0] === ' '; - var moreIndented; + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - // rest of the lines - var match; - while ((match = lineRe.exec(string))) { - var prefix = match[1], line = match[2]; - moreIndented = (line[0] === ' '); - result += prefix - + (!prevMoreIndented && !moreIndented && line !== '' - ? '\n' : '') - + foldLine(line, width); - prevMoreIndented = moreIndented; - } + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); + } - return result; -} + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); + } -// Greedy line breaking. -// Picks the longest line under the limit each time, -// otherwise settles for the shortest line over the limit. -// NB. More-indented lines *cannot* be folded, as that would add an extra \n. -function foldLine(line, width) { - if (line === '' || line[0] === ' ') return line; + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } - // Since a more-indented line adds a \n, breaks can't be followed by a space. - var breakRe = / [^ ]/g; // note: the match index will always be <= length-2. - var match; - // start is an inclusive index. end, curr, and next are exclusive. - var start = 0, end, curr = 0, next = 0; - var result = ''; + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } - // Invariants: 0 <= start <= length-1. - // 0 <= curr <= next <= max(0, length-2). curr - start <= width. - // Inside the loop: - // A match implies length >= 2, so curr and next are <= length-2. - while ((match = breakRe.exec(line))) { - next = match.index; - // maintain invariant: curr - start <= width - if (next - start > width) { - end = (curr > start) ? curr : next; // derive end <= length-2 - result += '\n' + line.slice(start, end); - // skip the space that was output as \n - start = end + 1; // derive start <= length-1 + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } - curr = next; - } + }]); - // By the invariants, start <= length-1, so there is something left over. - // It is either the whole string or a part starting from non-whitespace. - result += '\n'; - // Insert a break if the remainder is too long and there is a break available. - if (line.length - start > width && curr > start) { - result += line.slice(start, curr) + '\n' + line.slice(curr + 1); - } else { - result += line.slice(start); - } + return RotatedSecretUpdateAws; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ - return result.slice(1); // drop extra \n joiner -} -// Escapes a double-quoted string. -function escapeString(string) { - var result = ''; - var char = 0; - var escapeSeq; +RotatedSecretUpdateAws.prototype['add-tag'] = undefined; +/** + * API ID to rotate (relevant only for rotator-type=api-key) + * @member {String} api-id + */ - for (var i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) { - char = codePointAt(string, i); - escapeSeq = ESCAPE_SEQUENCES[char]; +RotatedSecretUpdateAws.prototype['api-id'] = undefined; +/** + * API key to rotate (relevant only for rotator-type=api-key) + * @member {String} api-key + */ - if (!escapeSeq && isPrintable(char)) { - result += string[i]; - if (char >= 0x10000) result += string[i + 1]; - } else { - result += escapeSeq || encodeHex(char); - } - } +RotatedSecretUpdateAws.prototype['api-key'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ - return result; -} +RotatedSecretUpdateAws.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ -function writeFlowSequence(state, level, object) { - var _result = '', - _tag = state.tag, - index, - length, - value; +RotatedSecretUpdateAws.prototype['auto-rotate'] = undefined; +/** + * Aws Region + * @member {String} aws-region + * @default 'us-east-2' + */ - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; +RotatedSecretUpdateAws.prototype['aws-region'] = 'us-east-2'; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } +RotatedSecretUpdateAws.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level, value, false, false) || - (typeof value === 'undefined' && - writeNode(state, level, null, false, false))) { +RotatedSecretUpdateAws.prototype['description'] = 'default_metadata'; +/** + * Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false] + * @member {String} grace-rotation + */ - if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : ''); - _result += state.dump; - } - } +RotatedSecretUpdateAws.prototype['grace-rotation'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - state.tag = _tag; - state.dump = '[' + _result + ']'; -} +RotatedSecretUpdateAws.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -function writeBlockSequence(state, level, object, compact) { - var _result = '', - _tag = state.tag, - index, - length, - value; +RotatedSecretUpdateAws.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - for (index = 0, length = object.length; index < length; index += 1) { - value = object[index]; +RotatedSecretUpdateAws.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ - if (state.replacer) { - value = state.replacer.call(object, String(index), value); - } +RotatedSecretUpdateAws.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ - // Write only valid elements, put null instead of invalid elements. - if (writeNode(state, level + 1, value, true, true, false, true) || - (typeof value === 'undefined' && - writeNode(state, level + 1, null, true, true, false, true))) { +RotatedSecretUpdateAws.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ - if (!compact || _result !== '') { - _result += generateNextLine(state, level); - } +RotatedSecretUpdateAws.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - _result += '-'; - } else { - _result += '- '; - } +RotatedSecretUpdateAws.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ - _result += state.dump; - } - } +RotatedSecretUpdateAws.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ - state.tag = _tag; - state.dump = _result || '[]'; // Empty sequence if no valid values. -} +RotatedSecretUpdateAws.prototype['rotate-after-disconnect'] = 'false'; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ -function writeFlowMapping(state, level, object) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - pairBuffer; +RotatedSecretUpdateAws.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - for (index = 0, length = objectKeyList.length; index < length; index += 1) { +RotatedSecretUpdateAws.prototype['rotation-interval'] = undefined; +/** + * The AWS account id + * @member {String} secure-access-aws-account-id + */ - pairBuffer = ''; - if (_result !== '') pairBuffer += ', '; +RotatedSecretUpdateAws.prototype['secure-access-aws-account-id'] = undefined; +/** + * The AWS native cli + * @member {Boolean} secure-access-aws-native-cli + */ - if (state.condenseFlow) pairBuffer += '"'; +RotatedSecretUpdateAws.prototype['secure-access-aws-native-cli'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; +RotatedSecretUpdateAws.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } +RotatedSecretUpdateAws.prototype['secure-access-enable'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - if (!writeNode(state, level, objectKey, false, false)) { - continue; // Skip this pair because of invalid key; - } +RotatedSecretUpdateAws.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - if (state.dump.length > 1024) pairBuffer += '? '; +RotatedSecretUpdateAws.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateAws; +exports["default"] = _default; - pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' '); +/***/ }), - if (!writeNode(state, level, objectValue, false, false)) { - continue; // Skip this pair because of invalid value. - } +/***/ 41471: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - pairBuffer += state.dump; +"use strict"; - // Both key and value are valid. - _result += pairBuffer; - } - state.tag = _tag; - state.dump = '{' + _result + '}'; -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -function writeBlockMapping(state, level, object, compact) { - var _result = '', - _tag = state.tag, - objectKeyList = Object.keys(object), - index, - length, - objectKey, - objectValue, - explicitPair, - pairBuffer; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // Allow sorting keys so that the output file is deterministic - if (state.sortKeys === true) { - // Default sorting - objectKeyList.sort(); - } else if (typeof state.sortKeys === 'function') { - // Custom sort function - objectKeyList.sort(state.sortKeys); - } else if (state.sortKeys) { - // Something is wrong - throw new YAMLException('sortKeys must be a boolean or a function'); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - pairBuffer = ''; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (!compact || _result !== '') { - pairBuffer += generateNextLine(state, level); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - objectKey = objectKeyList[index]; - objectValue = object[objectKey]; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (state.replacer) { - objectValue = state.replacer.call(object, objectKey, objectValue); - } +/** + * The RotatedSecretUpdateAzure model module. + * @module model/RotatedSecretUpdateAzure + * @version 3.6.3 + */ +var RotatedSecretUpdateAzure = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateAzure. + * @alias module:model/RotatedSecretUpdateAzure + * @param name {String} Rotated secret name + */ + function RotatedSecretUpdateAzure(name) { + _classCallCheck(this, RotatedSecretUpdateAzure); - if (!writeNode(state, level + 1, objectKey, true, true, true)) { - continue; // Skip this pair because of invalid key. - } + RotatedSecretUpdateAzure.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - explicitPair = (state.tag !== null && state.tag !== '?') || - (state.dump && state.dump.length > 1024); - if (explicitPair) { - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += '?'; - } else { - pairBuffer += '? '; - } + _createClass(RotatedSecretUpdateAzure, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } + /** + * Constructs a RotatedSecretUpdateAzure from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateAzure} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateAzure} The populated RotatedSecretUpdateAzure instance. + */ - pairBuffer += state.dump; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateAzure(); - if (explicitPair) { - pairBuffer += generateNextLine(state, level); - } + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } - if (!writeNode(state, level + 1, objectValue, true, explicitPair)) { - continue; // Skip this pair because of invalid value. - } + if (data.hasOwnProperty('api-id')) { + obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); + } - if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) { - pairBuffer += ':'; - } else { - pairBuffer += ': '; - } + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + } - pairBuffer += state.dump; + if (data.hasOwnProperty('application-id')) { + obj['application-id'] = _ApiClient["default"].convertToType(data['application-id'], 'String'); + } - // Both key and value are valid. - _result += pairBuffer; - } + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } - state.tag = _tag; - state.dump = _result || '{}'; // Empty mapping if no valid pairs. -} + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -function detectType(state, object, explicit) { - var _result, typeList, index, length, type, style; + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } - typeList = explicit ? state.explicitTypes : state.implicitTypes; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - for (index = 0, length = typeList.length; index < length; index += 1) { - type = typeList[index]; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - if ((type.instanceOf || type.predicate) && - (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) && - (!type.predicate || type.predicate(object))) { + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - if (explicit) { - if (type.multi && type.representName) { - state.tag = type.representName(object); - } else { - state.tag = type.tag; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - } else { - state.tag = '?'; - } - if (type.represent) { - style = state.styleMap[type.tag] || type.defaultStyle; + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - if (_toString.call(type.represent) === '[object Function]') { - _result = type.represent(object, style); - } else if (_hasOwnProperty.call(type.represent, style)) { - _result = type.represent[style](object, style); - } else { - throw new YAMLException('!<' + type.tag + '> tag resolver accepts not "' + style + '" style'); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - state.dump = _result; - } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - return true; - } - } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - return false; -} + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } -// Serializes `object` and writes it to global `result`. -// Returns true on success, or false on invalid object. -// -function writeNode(state, level, object, block, compact, iskey, isblockseq) { - state.tag = null; - state.dump = object; + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } - if (!detectType(state, object, false)) { - detectType(state, object, true); - } + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } - var type = _toString.call(state.dump); - var inblock = block; - var tagStr; + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - if (block) { - block = (state.flowLevel < 0 || state.flowLevel > level); - } + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } - var objectOrArray = type === '[object Object]' || type === '[object Array]', - duplicateIndex, - duplicate; + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } - if (objectOrArray) { - duplicateIndex = state.duplicates.indexOf(object); - duplicate = duplicateIndex !== -1; - } + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } - if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) { - compact = false; - } + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } - if (duplicate && state.usedDuplicates[duplicateIndex]) { - state.dump = '*ref_' + duplicateIndex; - } else { - if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) { - state.usedDuplicates[duplicateIndex] = true; - } - if (type === '[object Object]') { - if (block && (Object.keys(state.dump).length !== 0)) { - writeBlockMapping(state, level, state.dump, compact); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); } - } else { - writeFlowMapping(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; + + if (data.hasOwnProperty('storage-account-key-name')) { + obj['storage-account-key-name'] = _ApiClient["default"].convertToType(data['storage-account-key-name'], 'String'); } - } - } else if (type === '[object Array]') { - if (block && (state.dump.length !== 0)) { - if (state.noArrayIndent && !isblockseq && level > 0) { - writeBlockSequence(state, level - 1, state.dump, compact); - } else { - writeBlockSequence(state, level, state.dump, compact); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + state.dump; + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - } else { - writeFlowSequence(state, level, state.dump); - if (duplicate) { - state.dump = '&ref_' + duplicateIndex + ' ' + state.dump; + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); } } - } else if (type === '[object String]') { - if (state.tag !== '?') { - writeScalar(state, state.dump, level, iskey, inblock); - } - } else if (type === '[object Undefined]') { - return false; - } else { - if (state.skipInvalid) return false; - throw new YAMLException('unacceptable kind of an object to dump ' + type); + + return obj; } + }]); - if (state.tag !== null && state.tag !== '?') { - // Need to encode all characters except those allowed by the spec: - // - // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */ - // [36] ns-hex-digit ::= ns-dec-digit - // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */ - // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */ - // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-” - // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#” - // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,” - // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]” - // - // Also need to encode '!' because it has special meaning (end of tag prefix). - // - tagStr = encodeURI( - state.tag[0] === '!' ? state.tag.slice(1) : state.tag - ).replace(/!/g, '%21'); + return RotatedSecretUpdateAzure; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ - if (state.tag[0] === '!') { - tagStr = '!' + tagStr; - } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') { - tagStr = '!!' + tagStr.slice(18); - } else { - tagStr = '!<' + tagStr + '>'; - } - state.dump = tagStr + ' ' + state.dump; - } - } +RotatedSecretUpdateAzure.prototype['add-tag'] = undefined; +/** + * API ID to rotate (relevant only for rotator-type=api-key) + * @member {String} api-id + */ - return true; -} +RotatedSecretUpdateAzure.prototype['api-id'] = undefined; +/** + * API key to rotate (relevant only for rotator-type=api-key) + * @member {String} api-key + */ -function getDuplicateReferences(object, state) { - var objects = [], - duplicatesIndexes = [], - index, - length; +RotatedSecretUpdateAzure.prototype['api-key'] = undefined; +/** + * Id of the azure app that hold the serect to be rotated (relevant only for rotator-type=api-key & authentication-credentials=use-target-creds) + * @member {String} application-id + */ - inspectNode(object, objects, duplicatesIndexes); +RotatedSecretUpdateAzure.prototype['application-id'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ - for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) { - state.duplicates.push(objects[duplicatesIndexes[index]]); - } - state.usedDuplicates = new Array(length); -} +RotatedSecretUpdateAzure.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ -function inspectNode(object, objects, duplicatesIndexes) { - var objectKeyList, - index, - length; +RotatedSecretUpdateAzure.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ - if (object !== null && typeof object === 'object') { - index = objects.indexOf(object); - if (index !== -1) { - if (duplicatesIndexes.indexOf(index) === -1) { - duplicatesIndexes.push(index); - } - } else { - objects.push(object); +RotatedSecretUpdateAzure.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ - if (Array.isArray(object)) { - for (index = 0, length = object.length; index < length; index += 1) { - inspectNode(object[index], objects, duplicatesIndexes); - } - } else { - objectKeyList = Object.keys(object); +RotatedSecretUpdateAzure.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - for (index = 0, length = objectKeyList.length; index < length; index += 1) { - inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes); - } - } - } - } -} +RotatedSecretUpdateAzure.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -function dump(input, options) { - options = options || {}; +RotatedSecretUpdateAzure.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - var state = new State(options); +RotatedSecretUpdateAzure.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ - if (!state.noRefs) getDuplicateReferences(input, state); +RotatedSecretUpdateAzure.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ - var value = input; +RotatedSecretUpdateAzure.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ - if (state.replacer) { - value = state.replacer.call({ '': value }, '', value); - } +RotatedSecretUpdateAzure.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - if (writeNode(state, 0, value, true, true)) return state.dump + '\n'; +RotatedSecretUpdateAzure.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ - return ''; -} +RotatedSecretUpdateAzure.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ -module.exports.dump = dump; +RotatedSecretUpdateAzure.prototype['rotate-after-disconnect'] = 'false'; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ +RotatedSecretUpdateAzure.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ -/***/ }), +RotatedSecretUpdateAzure.prototype['rotation-interval'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ -/***/ 41248: -/***/ ((module) => { +RotatedSecretUpdateAzure.prototype['secure-access-enable'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ -"use strict"; -// YAML error class. http://stackoverflow.com/questions/8458984 -// +RotatedSecretUpdateAzure.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ +RotatedSecretUpdateAzure.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ +RotatedSecretUpdateAzure.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ -function formatError(exception, compact) { - var where = '', message = exception.reason || '(unknown reason)'; +RotatedSecretUpdateAzure.prototype['secure-access-web-proxy'] = false; +/** + * The name of the storage account key to rotate [key1/key2/kerb1/kerb2] (relevat to azure-storage-account) + * @member {String} storage-account-key-name + */ - if (!exception.mark) return message; +RotatedSecretUpdateAzure.prototype['storage-account-key-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - if (exception.mark.name) { - where += 'in "' + exception.mark.name + '" '; - } +RotatedSecretUpdateAzure.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')'; +RotatedSecretUpdateAzure.prototype['uid-token'] = undefined; +/** + * The user principal name to rotate his password (relevant only for rotator-type=password) + * @member {String} username + */ - if (!compact && exception.mark.snippet) { - where += '\n\n' + exception.mark.snippet; - } +RotatedSecretUpdateAzure.prototype['username'] = undefined; +var _default = RotatedSecretUpdateAzure; +exports["default"] = _default; - return message + ' ' + where; -} +/***/ }), +/***/ 19766: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -function YAMLException(reason, mark) { - // Super constructor - Error.call(this); +"use strict"; - this.name = 'YAMLException'; - this.reason = reason; - this.mark = mark; - this.message = formatError(this, false); - // Include stack trace in error object - if (Error.captureStackTrace) { - // Chrome and NodeJS - Error.captureStackTrace(this, this.constructor); - } else { - // FF, IE 10+ and Safari 6+. Fallback for others - this.stack = (new Error()).stack || ''; - } -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -// Inherit from Error -YAMLException.prototype = Object.create(Error.prototype); -YAMLException.prototype.constructor = YAMLException; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -YAMLException.prototype.toString = function toString(compact) { - return this.name + ': ' + formatError(this, compact); -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -module.exports = YAMLException; +/** + * The RotatedSecretUpdateCassandra model module. + * @module model/RotatedSecretUpdateCassandra + * @version 3.6.3 + */ +var RotatedSecretUpdateCassandra = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateCassandra. + * @alias module:model/RotatedSecretUpdateCassandra + * @param name {String} Rotated secret name + */ + function RotatedSecretUpdateCassandra(name) { + _classCallCheck(this, RotatedSecretUpdateCassandra); + RotatedSecretUpdateCassandra.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), -/***/ 91950: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + _createClass(RotatedSecretUpdateCassandra, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a RotatedSecretUpdateCassandra from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateCassandra} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateCassandra} The populated RotatedSecretUpdateCassandra instance. + */ -"use strict"; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateCassandra(); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } -/*eslint-disable max-len,no-use-before-define*/ + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } -var common = __nccwpck_require__(19816); -var YAMLException = __nccwpck_require__(41248); -var makeSnippet = __nccwpck_require__(9440); -var DEFAULT_SCHEMA = __nccwpck_require__(97336); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -var _hasOwnProperty = Object.prototype.hasOwnProperty; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -var CONTEXT_FLOW_IN = 1; -var CONTEXT_FLOW_OUT = 2; -var CONTEXT_BLOCK_IN = 3; -var CONTEXT_BLOCK_OUT = 4; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -var CHOMPING_CLIP = 1; -var CHOMPING_STRIP = 2; -var CHOMPING_KEEP = 3; + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/; -var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/; -var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/; -var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i; -var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i; + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -function _class(obj) { return Object.prototype.toString.call(obj); } + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } -function is_EOL(c) { - return (c === 0x0A/* LF */) || (c === 0x0D/* CR */); -} + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -function is_WHITE_SPACE(c) { - return (c === 0x09/* Tab */) || (c === 0x20/* Space */); -} + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -function is_WS_OR_EOL(c) { - return (c === 0x09/* Tab */) || - (c === 0x20/* Space */) || - (c === 0x0A/* LF */) || - (c === 0x0D/* CR */); -} + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -function is_FLOW_INDICATOR(c) { - return c === 0x2C/* , */ || - c === 0x5B/* [ */ || - c === 0x5D/* ] */ || - c === 0x7B/* { */ || - c === 0x7D/* } */; -} + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } -function fromHexCode(c) { - var lc; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - /*eslint-disable no-bitwise*/ - lc = c | 0x20; + return obj; + } + }]); - if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) { - return lc - 0x61 + 10; - } + return RotatedSecretUpdateCassandra; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ - return -1; -} -function escapedHexLen(c) { - if (c === 0x78/* x */) { return 2; } - if (c === 0x75/* u */) { return 4; } - if (c === 0x55/* U */) { return 8; } - return 0; -} +RotatedSecretUpdateCassandra.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ -function fromDecimalCode(c) { - if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) { - return c - 0x30; - } +RotatedSecretUpdateCassandra.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ - return -1; -} +RotatedSecretUpdateCassandra.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -function simpleEscapeSequence(c) { - /* eslint-disable indent */ - return (c === 0x30/* 0 */) ? '\x00' : - (c === 0x61/* a */) ? '\x07' : - (c === 0x62/* b */) ? '\x08' : - (c === 0x74/* t */) ? '\x09' : - (c === 0x09/* Tab */) ? '\x09' : - (c === 0x6E/* n */) ? '\x0A' : - (c === 0x76/* v */) ? '\x0B' : - (c === 0x66/* f */) ? '\x0C' : - (c === 0x72/* r */) ? '\x0D' : - (c === 0x65/* e */) ? '\x1B' : - (c === 0x20/* Space */) ? ' ' : - (c === 0x22/* " */) ? '\x22' : - (c === 0x2F/* / */) ? '/' : - (c === 0x5C/* \ */) ? '\x5C' : - (c === 0x4E/* N */) ? '\x85' : - (c === 0x5F/* _ */) ? '\xA0' : - (c === 0x4C/* L */) ? '\u2028' : - (c === 0x50/* P */) ? '\u2029' : ''; -} - -function charFromCodepoint(c) { - if (c <= 0xFFFF) { - return String.fromCharCode(c); - } - // Encode UTF-16 surrogate pair - // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF - return String.fromCharCode( - ((c - 0x010000) >> 10) + 0xD800, - ((c - 0x010000) & 0x03FF) + 0xDC00 - ); -} +RotatedSecretUpdateCassandra.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ -var simpleEscapeCheck = new Array(256); // integer, for fast access -var simpleEscapeMap = new Array(256); -for (var i = 0; i < 256; i++) { - simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0; - simpleEscapeMap[i] = simpleEscapeSequence(i); -} +RotatedSecretUpdateCassandra.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ +RotatedSecretUpdateCassandra.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -function State(input, options) { - this.input = input; +RotatedSecretUpdateCassandra.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - this.filename = options['filename'] || null; - this.schema = options['schema'] || DEFAULT_SCHEMA; - this.onWarning = options['onWarning'] || null; - // (Hidden) Remove? makes the loader to expect YAML 1.1 documents - // if such documents have no explicit %YAML directive - this.legacy = options['legacy'] || false; +RotatedSecretUpdateCassandra.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ - this.json = options['json'] || false; - this.listener = options['listener'] || null; +RotatedSecretUpdateCassandra.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ - this.implicitTypes = this.schema.compiledImplicit; - this.typeMap = this.schema.compiledTypeMap; +RotatedSecretUpdateCassandra.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ - this.length = input.length; - this.position = 0; - this.line = 0; - this.lineStart = 0; - this.lineIndent = 0; +RotatedSecretUpdateCassandra.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - // position of first leading tab in the current line, - // used to make sure there are no tabs in the indentation - this.firstTabInLine = -1; +RotatedSecretUpdateCassandra.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ - this.documents = []; +RotatedSecretUpdateCassandra.prototype['rm-tag'] = undefined; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ - /* - this.version; - this.checkLineBreaks; - this.tagMap; - this.anchorMap; - this.tag; - this.anchor; - this.kind; - this.result;*/ +RotatedSecretUpdateCassandra.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ -} +RotatedSecretUpdateCassandra.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ +RotatedSecretUpdateCassandra.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ -function generateError(state, message) { - var mark = { - name: state.filename, - buffer: state.input.slice(0, -1), // omit trailing \0 - position: state.position, - line: state.line, - column: state.position - state.lineStart - }; +RotatedSecretUpdateCassandra.prototype['rotation-interval'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - mark.snippet = makeSnippet(mark); +RotatedSecretUpdateCassandra.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - return new YAMLException(message, mark); -} +RotatedSecretUpdateCassandra.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateCassandra; +exports["default"] = _default; -function throwError(state, message) { - throw generateError(state, message); -} +/***/ }), -function throwWarning(state, message) { - if (state.onWarning) { - state.onWarning.call(null, generateError(state, message)); - } -} +/***/ 52337: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +"use strict"; -var directiveHandlers = { - YAML: function handleYamlDirective(state, name, args) { +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - var match, major, minor; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (state.version !== null) { - throwError(state, 'duplication of %YAML directive'); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (args.length !== 1) { - throwError(state, 'YAML directive accepts exactly one argument'); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (match === null) { - throwError(state, 'ill-formed argument of the YAML directive'); - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - major = parseInt(match[1], 10); - minor = parseInt(match[2], 10); +/** + * The RotatedSecretUpdateCustom model module. + * @module model/RotatedSecretUpdateCustom + * @version 3.6.3 + */ +var RotatedSecretUpdateCustom = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateCustom. + * @alias module:model/RotatedSecretUpdateCustom + * @param name {String} Rotated secret name + */ + function RotatedSecretUpdateCustom(name) { + _classCallCheck(this, RotatedSecretUpdateCustom); - if (major !== 1) { - throwError(state, 'unacceptable YAML version of the document'); - } + RotatedSecretUpdateCustom.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - state.version = args[0]; - state.checkLineBreaks = (minor < 2); - if (minor !== 1 && minor !== 2) { - throwWarning(state, 'unsupported YAML version of the document'); + _createClass(RotatedSecretUpdateCustom, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } - }, + /** + * Constructs a RotatedSecretUpdateCustom from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateCustom} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateCustom} The populated RotatedSecretUpdateCustom instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateCustom(); - TAG: function handleTagDirective(state, name, args) { + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } - var handle, prefix; + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } - if (args.length !== 2) { - throwError(state, 'TAG directive accepts exactly two arguments'); - } + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } - handle = args[0]; - prefix = args[1]; + if (data.hasOwnProperty('custom-payload')) { + obj['custom-payload'] = _ApiClient["default"].convertToType(data['custom-payload'], 'String'); + } - if (!PATTERN_TAG_HANDLE.test(handle)) { - throwError(state, 'ill-formed tag handle (first argument) of the TAG directive'); - } + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } - if (_hasOwnProperty.call(state.tagMap, handle)) { - throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle'); - } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - if (!PATTERN_TAG_URI.test(prefix)) { - throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive'); - } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - try { - prefix = decodeURIComponent(prefix); - } catch (err) { - throwError(state, 'tag prefix is malformed: ' + prefix); - } + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - state.tagMap[handle] = prefix; - } -}; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -function captureSegment(state, start, end, checkJson) { - var _position, _length, _character, _result; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - if (start < end) { - _result = state.input.slice(start, end); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - if (checkJson) { - for (_position = 0, _length = _result.length; _position < _length; _position += 1) { - _character = _result.charCodeAt(_position); - if (!(_character === 0x09 || - (0x20 <= _character && _character <= 0x10FFFF))) { - throwError(state, 'expected valid JSON character'); + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - } - } else if (PATTERN_NON_PRINTABLE.test(_result)) { - throwError(state, 'the stream contains non-printable characters'); - } - state.result += _result; - } -} + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } -function mergeMappings(state, destination, source, overridableKeys) { - var sourceKeys, key, index, quantity; + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } - if (!common.isObject(source)) { - throwError(state, 'cannot merge mappings; the provided source object is unacceptable'); - } + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } - sourceKeys = Object.keys(source); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) { - key = sourceKeys[index]; + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } - if (!_hasOwnProperty.call(destination, key)) { - destination[key] = source[key]; - overridableKeys[key] = true; - } - } -} + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } -function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, - startLine, startLineStart, startPos) { + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } - var index, quantity; + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } - // The output is a plain object here, so keys can only be strings. - // We need to convert keyNode to a string, but doing so can hang the process - // (deeply nested arrays that explode exponentially using aliases). - if (Array.isArray(keyNode)) { - keyNode = Array.prototype.slice.call(keyNode); + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } - for (index = 0, quantity = keyNode.length; index < quantity; index += 1) { - if (Array.isArray(keyNode[index])) { - throwError(state, 'nested arrays are not supported inside keys'); - } + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } - if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') { - keyNode[index] = '[object Object]'; - } - } - } + if (data.hasOwnProperty('secure-access-ssh-user')) { + obj['secure-access-ssh-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-user'], 'String'); + } - // Avoid code execution in load() via toString property - // (still use its own toString for arrays, timestamps, - // and whatever user schema extensions happen to have @@toStringTag) - if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') { - keyNode = '[object Object]'; - } + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } - keyNode = String(keyNode); + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } - if (_result === null) { - _result = {}; - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - if (keyTag === 'tag:yaml.org,2002:merge') { - if (Array.isArray(valueNode)) { - for (index = 0, quantity = valueNode.length; index < quantity; index += 1) { - mergeMappings(state, _result, valueNode[index], overridableKeys); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } } - } else { - mergeMappings(state, _result, valueNode, overridableKeys); - } - } else { - if (!state.json && - !_hasOwnProperty.call(overridableKeys, keyNode) && - _hasOwnProperty.call(_result, keyNode)) { - state.line = startLine || state.line; - state.lineStart = startLineStart || state.lineStart; - state.position = startPos || state.position; - throwError(state, 'duplicated mapping key'); - } - // used for this specific key only because Object.defineProperty is slow - if (keyNode === '__proto__') { - Object.defineProperty(_result, keyNode, { - configurable: true, - enumerable: true, - writable: true, - value: valueNode - }); - } else { - _result[keyNode] = valueNode; + return obj; } - delete overridableKeys[keyNode]; - } + }]); - return _result; -} + return RotatedSecretUpdateCustom; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ -function readLineBreak(state) { - var ch; - ch = state.input.charCodeAt(state.position); +RotatedSecretUpdateCustom.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ - if (ch === 0x0A/* LF */) { - state.position++; - } else if (ch === 0x0D/* CR */) { - state.position++; - if (state.input.charCodeAt(state.position) === 0x0A/* LF */) { - state.position++; - } - } else { - throwError(state, 'a line break is expected'); - } +RotatedSecretUpdateCustom.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ - state.line += 1; - state.lineStart = state.position; - state.firstTabInLine = -1; -} +RotatedSecretUpdateCustom.prototype['auto-rotate'] = undefined; +/** + * Secret payload to be sent with rotation request + * @member {String} custom-payload + */ -function skipSeparationSpace(state, allowComments, checkIndent) { - var lineBreaks = 0, - ch = state.input.charCodeAt(state.position); +RotatedSecretUpdateCustom.prototype['custom-payload'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) { - state.firstTabInLine = state.position; - } - ch = state.input.charCodeAt(++state.position); - } +RotatedSecretUpdateCustom.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ - if (allowComments && ch === 0x23/* # */) { - do { - ch = state.input.charCodeAt(++state.position); - } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0); - } +RotatedSecretUpdateCustom.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - if (is_EOL(ch)) { - readLineBreak(state); +RotatedSecretUpdateCustom.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ - ch = state.input.charCodeAt(state.position); - lineBreaks++; - state.lineIndent = 0; +RotatedSecretUpdateCustom.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - while (ch === 0x20/* Space */) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } - } else { - break; - } - } +RotatedSecretUpdateCustom.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ - if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) { - throwWarning(state, 'deficient indentation'); - } +RotatedSecretUpdateCustom.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ - return lineBreaks; -} +RotatedSecretUpdateCustom.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ -function testDocumentSeparator(state) { - var _position = state.position, - ch; +RotatedSecretUpdateCustom.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - ch = state.input.charCodeAt(_position); +RotatedSecretUpdateCustom.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ - // Condition state.position === state.lineStart is tested - // in parent on each call, for efficiency. No needs to test here again. - if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) && - ch === state.input.charCodeAt(_position + 1) && - ch === state.input.charCodeAt(_position + 2)) { +RotatedSecretUpdateCustom.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ - _position += 3; +RotatedSecretUpdateCustom.prototype['rotate-after-disconnect'] = 'false'; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - ch = state.input.charCodeAt(_position); +RotatedSecretUpdateCustom.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - if (ch === 0 || is_WS_OR_EOL(ch)) { - return true; - } - } +RotatedSecretUpdateCustom.prototype['rotation-interval'] = undefined; +/** + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false + */ - return false; -} +RotatedSecretUpdateCustom.prototype['secure-access-allow-external-user'] = false; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ -function writeFoldedLines(state, count) { - if (count === 1) { - state.result += ' '; - } else if (count > 1) { - state.result += common.repeat('\n', count - 1); - } -} - - -function readPlainScalar(state, nodeIndent, withinFlowCollection) { - var preceding, - following, - captureStart, - captureEnd, - hasPendingContent, - _line, - _lineStart, - _lineIndent, - _kind = state.kind, - _result = state.result, - ch; - - ch = state.input.charCodeAt(state.position); - - if (is_WS_OR_EOL(ch) || - is_FLOW_INDICATOR(ch) || - ch === 0x23/* # */ || - ch === 0x26/* & */ || - ch === 0x2A/* * */ || - ch === 0x21/* ! */ || - ch === 0x7C/* | */ || - ch === 0x3E/* > */ || - ch === 0x27/* ' */ || - ch === 0x22/* " */ || - ch === 0x25/* % */ || - ch === 0x40/* @ */ || - ch === 0x60/* ` */) { - return false; - } +RotatedSecretUpdateCustom.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) { - following = state.input.charCodeAt(state.position + 1); +RotatedSecretUpdateCustom.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - return false; - } - } +RotatedSecretUpdateCustom.prototype['secure-access-host'] = undefined; +/** + * Default domain name server. i.e. microsoft.com + * @member {String} secure-access-rdp-domain + */ - state.kind = 'scalar'; - state.result = ''; - captureStart = captureEnd = state.position; - hasPendingContent = false; +RotatedSecretUpdateCustom.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ - while (ch !== 0) { - if (ch === 0x3A/* : */) { - following = state.input.charCodeAt(state.position + 1); +RotatedSecretUpdateCustom.prototype['secure-access-rdp-user'] = undefined; +/** + * Override the SSH username as indicated in SSH Certificate Issuer + * @member {String} secure-access-ssh-user + */ - if (is_WS_OR_EOL(following) || - withinFlowCollection && is_FLOW_INDICATOR(following)) { - break; - } +RotatedSecretUpdateCustom.prototype['secure-access-ssh-user'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ - } else if (ch === 0x23/* # */) { - preceding = state.input.charCodeAt(state.position - 1); +RotatedSecretUpdateCustom.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ - if (is_WS_OR_EOL(preceding)) { - break; - } +RotatedSecretUpdateCustom.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ - } else if ((state.position === state.lineStart && testDocumentSeparator(state)) || - withinFlowCollection && is_FLOW_INDICATOR(ch)) { - break; +RotatedSecretUpdateCustom.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ - } else if (is_EOL(ch)) { - _line = state.line; - _lineStart = state.lineStart; - _lineIndent = state.lineIndent; - skipSeparationSpace(state, false, -1); +RotatedSecretUpdateCustom.prototype['secure-access-web-proxy'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - if (state.lineIndent >= nodeIndent) { - hasPendingContent = true; - ch = state.input.charCodeAt(state.position); - continue; - } else { - state.position = captureEnd; - state.line = _line; - state.lineStart = _lineStart; - state.lineIndent = _lineIndent; - break; - } - } +RotatedSecretUpdateCustom.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - if (hasPendingContent) { - captureSegment(state, captureStart, captureEnd, false); - writeFoldedLines(state, state.line - _line); - captureStart = captureEnd = state.position; - hasPendingContent = false; - } +RotatedSecretUpdateCustom.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateCustom; +exports["default"] = _default; - if (!is_WHITE_SPACE(ch)) { - captureEnd = state.position + 1; - } +/***/ }), - ch = state.input.charCodeAt(++state.position); - } +/***/ 40251: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - captureSegment(state, captureStart, captureEnd, false); +"use strict"; - if (state.result) { - return true; - } - state.kind = _kind; - state.result = _result; - return false; -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -function readSingleQuotedScalar(state, nodeIndent) { - var ch, - captureStart, captureEnd; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - ch = state.input.charCodeAt(state.position); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (ch !== 0x27/* ' */) { - return false; - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x27/* ' */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (ch === 0x27/* ' */) { - captureStart = state.position; - state.position++; - captureEnd = state.position; - } else { - return true; - } +/** + * The RotatedSecretUpdateDockerhub model module. + * @module model/RotatedSecretUpdateDockerhub + * @version 3.6.3 + */ +var RotatedSecretUpdateDockerhub = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateDockerhub. + * @alias module:model/RotatedSecretUpdateDockerhub + * @param name {String} Rotated secret name + */ + function RotatedSecretUpdateDockerhub(name) { + _classCallCheck(this, RotatedSecretUpdateDockerhub); - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; + RotatedSecretUpdateDockerhub.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a single quoted scalar'); - } else { - state.position++; - captureEnd = state.position; + _createClass(RotatedSecretUpdateDockerhub, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } - } + /** + * Constructs a RotatedSecretUpdateDockerhub from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateDockerhub} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateDockerhub} The populated RotatedSecretUpdateDockerhub instance. + */ - throwError(state, 'unexpected end of the stream within a single quoted scalar'); -} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateDockerhub(); -function readDoubleQuotedScalar(state, nodeIndent) { - var captureStart, - captureEnd, - hexLength, - hexResult, - tmp, - ch; + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } - ch = state.input.charCodeAt(state.position); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } - if (ch !== 0x22/* " */) { - return false; - } + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } - state.kind = 'scalar'; - state.result = ''; - state.position++; - captureStart = captureEnd = state.position; + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - if (ch === 0x22/* " */) { - captureSegment(state, captureStart, state.position, true); - state.position++; - return true; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - } else if (ch === 0x5C/* \ */) { - captureSegment(state, captureStart, state.position, true); - ch = state.input.charCodeAt(++state.position); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - if (is_EOL(ch)) { - skipSeparationSpace(state, false, nodeIndent); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - // TODO: rework to inline fn with no type cast? - } else if (ch < 256 && simpleEscapeCheck[ch]) { - state.result += simpleEscapeMap[ch]; - state.position++; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - } else if ((tmp = escapedHexLen(ch)) > 0) { - hexLength = tmp; - hexResult = 0; + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - for (; hexLength > 0; hexLength--) { - ch = state.input.charCodeAt(++state.position); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - if ((tmp = fromHexCode(ch)) >= 0) { - hexResult = (hexResult << 4) + tmp; + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - } else { - throwError(state, 'expected hexadecimal character'); - } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - state.result += charFromCodepoint(hexResult); + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } - state.position++; + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } - } else { - throwError(state, 'unknown escape sequence'); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } } - captureStart = captureEnd = state.position; + return obj; + } + }]); - } else if (is_EOL(ch)) { - captureSegment(state, captureStart, captureEnd, true); - writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent)); - captureStart = captureEnd = state.position; + return RotatedSecretUpdateDockerhub; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ - } else if (state.position === state.lineStart && testDocumentSeparator(state)) { - throwError(state, 'unexpected end of the document within a double quoted scalar'); - } else { - state.position++; - captureEnd = state.position; - } - } +RotatedSecretUpdateDockerhub.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ - throwError(state, 'unexpected end of the stream within a double quoted scalar'); -} +RotatedSecretUpdateDockerhub.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ -function readFlowCollection(state, nodeIndent) { - var readNext = true, - _line, - _lineStart, - _pos, - _tag = state.tag, - _result, - _anchor = state.anchor, - following, - terminator, - isPair, - isExplicitPair, - isMapping, - overridableKeys = Object.create(null), - keyNode, - keyTag, - valueNode, - ch; +RotatedSecretUpdateDockerhub.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ - ch = state.input.charCodeAt(state.position); +RotatedSecretUpdateDockerhub.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ - if (ch === 0x5B/* [ */) { - terminator = 0x5D;/* ] */ - isMapping = false; - _result = []; - } else if (ch === 0x7B/* { */) { - terminator = 0x7D;/* } */ - isMapping = true; - _result = {}; - } else { - return false; - } +RotatedSecretUpdateDockerhub.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } +RotatedSecretUpdateDockerhub.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ - ch = state.input.charCodeAt(++state.position); +RotatedSecretUpdateDockerhub.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - while (ch !== 0) { - skipSeparationSpace(state, true, nodeIndent); +RotatedSecretUpdateDockerhub.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ - ch = state.input.charCodeAt(state.position); +RotatedSecretUpdateDockerhub.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ - if (ch === terminator) { - state.position++; - state.tag = _tag; - state.anchor = _anchor; - state.kind = isMapping ? 'mapping' : 'sequence'; - state.result = _result; - return true; - } else if (!readNext) { - throwError(state, 'missed comma between flow collection entries'); - } else if (ch === 0x2C/* , */) { - // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4 - throwError(state, "expected the node content, but found ','"); - } +RotatedSecretUpdateDockerhub.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ - keyTag = keyNode = valueNode = null; - isPair = isExplicitPair = false; +RotatedSecretUpdateDockerhub.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - if (ch === 0x3F/* ? */) { - following = state.input.charCodeAt(state.position + 1); +RotatedSecretUpdateDockerhub.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ - if (is_WS_OR_EOL(following)) { - isPair = isExplicitPair = true; - state.position++; - skipSeparationSpace(state, true, nodeIndent); - } - } +RotatedSecretUpdateDockerhub.prototype['rm-tag'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - _line = state.line; // Save the current line. - _lineStart = state.lineStart; - _pos = state.position; - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - keyTag = state.tag; - keyNode = state.result; - skipSeparationSpace(state, true, nodeIndent); +RotatedSecretUpdateDockerhub.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - ch = state.input.charCodeAt(state.position); +RotatedSecretUpdateDockerhub.prototype['rotation-interval'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) { - isPair = true; - ch = state.input.charCodeAt(++state.position); - skipSeparationSpace(state, true, nodeIndent); - composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true); - valueNode = state.result; - } +RotatedSecretUpdateDockerhub.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - if (isMapping) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos); - } else if (isPair) { - _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos)); - } else { - _result.push(keyNode); - } +RotatedSecretUpdateDockerhub.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateDockerhub; +exports["default"] = _default; - skipSeparationSpace(state, true, nodeIndent); +/***/ }), - ch = state.input.charCodeAt(state.position); +/***/ 98918: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (ch === 0x2C/* , */) { - readNext = true; - ch = state.input.charCodeAt(++state.position); - } else { - readNext = false; - } - } +"use strict"; - throwError(state, 'unexpected end of the stream within a flow collection'); -} -function readBlockScalar(state, nodeIndent) { - var captureStart, - folding, - chomping = CHOMPING_CLIP, - didReadContent = false, - detectedIndent = false, - textIndent = nodeIndent, - emptyLines = 0, - atMoreIndented = false, - tmp, - ch; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - ch = state.input.charCodeAt(state.position); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (ch === 0x7C/* | */) { - folding = false; - } else if (ch === 0x3E/* > */) { - folding = true; - } else { - return false; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - state.kind = 'scalar'; - state.result = ''; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - while (ch !== 0) { - ch = state.input.charCodeAt(++state.position); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (ch === 0x2B/* + */ || ch === 0x2D/* - */) { - if (CHOMPING_CLIP === chomping) { - chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP; - } else { - throwError(state, 'repeat of a chomping mode identifier'); - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - } else if ((tmp = fromDecimalCode(ch)) >= 0) { - if (tmp === 0) { - throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one'); - } else if (!detectedIndent) { - textIndent = nodeIndent + tmp - 1; - detectedIndent = true; - } else { - throwError(state, 'repeat of an indentation width identifier'); - } +/** + * The RotatedSecretUpdateGcp model module. + * @module model/RotatedSecretUpdateGcp + * @version 3.6.3 + */ +var RotatedSecretUpdateGcp = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateGcp. + * @alias module:model/RotatedSecretUpdateGcp + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/service-account-rotator] + */ + function RotatedSecretUpdateGcp(name, rotatorType) { + _classCallCheck(this, RotatedSecretUpdateGcp); - } else { - break; - } + RotatedSecretUpdateGcp.initialize(this, name, rotatorType); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (is_WHITE_SPACE(ch)) { - do { ch = state.input.charCodeAt(++state.position); } - while (is_WHITE_SPACE(ch)); - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (!is_EOL(ch) && (ch !== 0)); + _createClass(RotatedSecretUpdateGcp, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; } - } + /** + * Constructs a RotatedSecretUpdateGcp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateGcp} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateGcp} The populated RotatedSecretUpdateGcp instance. + */ - while (ch !== 0) { - readLineBreak(state); - state.lineIndent = 0; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateGcp(); - ch = state.input.charCodeAt(state.position); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } - while ((!detectedIndent || state.lineIndent < textIndent) && - (ch === 0x20/* Space */)) { - state.lineIndent++; - ch = state.input.charCodeAt(++state.position); - } + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } - if (!detectedIndent && state.lineIndent > textIndent) { - textIndent = state.lineIndent; - } + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } - if (is_EOL(ch)) { - emptyLines++; - continue; - } + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } - // End of the scalar. - if (state.lineIndent < textIndent) { + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - // Perform the chomping. - if (chomping === CHOMPING_KEEP) { - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } else if (chomping === CHOMPING_CLIP) { - if (didReadContent) { // i.e. only if the scalar is not empty. - state.result += '\n'; + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); } - } - // Break this `while` cycle and go to the funciton's epilogue. - break; - } + if (data.hasOwnProperty('gcp-service-account-email')) { + obj['gcp-service-account-email'] = _ApiClient["default"].convertToType(data['gcp-service-account-email'], 'String'); + } - // Folded style: use fancy rules to handle line breaks. - if (folding) { + if (data.hasOwnProperty('gcp-service-account-key-id')) { + obj['gcp-service-account-key-id'] = _ApiClient["default"].convertToType(data['gcp-service-account-key-id'], 'String'); + } - // Lines starting with white space characters (more-indented lines) are not folded. - if (is_WHITE_SPACE(ch)) { - atMoreIndented = true; - // except for the first content line (cf. Example 8.1) - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - // End of more-indented block. - } else if (atMoreIndented) { - atMoreIndented = false; - state.result += common.repeat('\n', emptyLines + 1); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - // Just one line break - perceive as the same line. - } else if (emptyLines === 0) { - if (didReadContent) { // i.e. only if we have already read some scalar content. - state.result += ' '; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - // Several line breaks - perceive as different lines. - } else { - state.result += common.repeat('\n', emptyLines); - } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - // Literal style: just add exact number of line breaks between content lines. - } else { - // Keep all line breaks except the header line break. - state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines); - } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - didReadContent = true; - detectedIndent = true; - emptyLines = 0; - captureStart = state.position; + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - while (!is_EOL(ch) && (ch !== 0)) { - ch = state.input.charCodeAt(++state.position); - } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - captureSegment(state, captureStart, state.position, false); - } + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } - return true; -} + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -function readBlockSequence(state, nodeIndent) { - var _line, - _tag = state.tag, - _anchor = state.anchor, - _result = [], - following, - detected = false, - ch; + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - ch = state.input.charCodeAt(state.position); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - while (ch !== 0) { - if (state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); + return obj; } + }]); - if (ch !== 0x2D/* - */) { - break; - } + return RotatedSecretUpdateGcp; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ - following = state.input.charCodeAt(state.position + 1); - if (!is_WS_OR_EOL(following)) { - break; - } +RotatedSecretUpdateGcp.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ - detected = true; - state.position++; +RotatedSecretUpdateGcp.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ - if (skipSeparationSpace(state, true, -1)) { - if (state.lineIndent <= nodeIndent) { - _result.push(null); - ch = state.input.charCodeAt(state.position); - continue; - } - } +RotatedSecretUpdateGcp.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ - _line = state.line; - composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true); - _result.push(state.result); - skipSeparationSpace(state, true, -1); +RotatedSecretUpdateGcp.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ - ch = state.input.charCodeAt(state.position); +RotatedSecretUpdateGcp.prototype['description'] = 'default_metadata'; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a sequence entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } +RotatedSecretUpdateGcp.prototype['gcp-key'] = undefined; +/** + * The email of the gcp service account to rotate + * @member {String} gcp-service-account-email + */ - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'sequence'; - state.result = _result; - return true; - } - return false; -} +RotatedSecretUpdateGcp.prototype['gcp-service-account-email'] = undefined; +/** + * The key id of the gcp service account to rotate + * @member {String} gcp-service-account-key-id + */ -function readBlockMapping(state, nodeIndent, flowIndent) { - var following, - allowCompact, - _line, - _keyLine, - _keyLineStart, - _keyPos, - _tag = state.tag, - _anchor = state.anchor, - _result = {}, - overridableKeys = Object.create(null), - keyTag = null, - keyNode = null, - valueNode = null, - atExplicitKey = false, - detected = false, - ch; +RotatedSecretUpdateGcp.prototype['gcp-service-account-key-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - // there is a leading tab before this token, so it can't be a block sequence/mapping; - // it can still be flow sequence/mapping or a scalar - if (state.firstTabInLine !== -1) return false; +RotatedSecretUpdateGcp.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ - if (state.anchor !== null) { - state.anchorMap[state.anchor] = _result; - } +RotatedSecretUpdateGcp.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - ch = state.input.charCodeAt(state.position); +RotatedSecretUpdateGcp.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ - while (ch !== 0) { - if (!atExplicitKey && state.firstTabInLine !== -1) { - state.position = state.firstTabInLine; - throwError(state, 'tab characters must not be used in indentation'); - } +RotatedSecretUpdateGcp.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ - following = state.input.charCodeAt(state.position + 1); - _line = state.line; // Save the current line. +RotatedSecretUpdateGcp.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ - // - // Explicit notation case. There are two separate blocks: - // first for the key (denoted by "?") and second for the value (denoted by ":") - // - if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) { +RotatedSecretUpdateGcp.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - if (ch === 0x3F/* ? */) { - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } +RotatedSecretUpdateGcp.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ - detected = true; - atExplicitKey = true; - allowCompact = true; +RotatedSecretUpdateGcp.prototype['rm-tag'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - } else if (atExplicitKey) { - // i.e. 0x3A/* : */ === character after the explicit key. - atExplicitKey = false; - allowCompact = true; +RotatedSecretUpdateGcp.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - } else { - throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line'); - } +RotatedSecretUpdateGcp.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/service-account-rotator] + * @member {String} rotator-type + */ - state.position += 1; - ch = following; +RotatedSecretUpdateGcp.prototype['rotator-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - // - // Implicit notation case. Flow-style node as the key first, then ":", and the value. - // - } else { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; +RotatedSecretUpdateGcp.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) { - // Neither implicit nor explicit notation. - // Reading is done. Go to the epilogue. - break; - } +RotatedSecretUpdateGcp.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateGcp; +exports["default"] = _default; - if (state.line === _line) { - ch = state.input.charCodeAt(state.position); +/***/ }), - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } +/***/ 28538: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (ch === 0x3A/* : */) { - ch = state.input.charCodeAt(++state.position); +"use strict"; - if (!is_WS_OR_EOL(ch)) { - throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping'); - } - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - detected = true; - atExplicitKey = false; - allowCompact = false; - keyTag = state.tag; - keyNode = state.result; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - } else if (detected) { - throwError(state, 'can not read an implicit mapping pair; a colon is missed'); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - } else if (detected) { - throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key'); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - } else { - state.tag = _tag; - state.anchor = _anchor; - return true; // Keep the result of `composeNode`. - } - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // - // Common reading code for both explicit and implicit notations. - // - if (state.line === _line || state.lineIndent > nodeIndent) { - if (atExplicitKey) { - _keyLine = state.line; - _keyLineStart = state.lineStart; - _keyPos = state.position; - } +/** + * The RotatedSecretUpdateHanadb model module. + * @module model/RotatedSecretUpdateHanadb + * @version 3.6.3 + */ +var RotatedSecretUpdateHanadb = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateHanadb. + * @alias module:model/RotatedSecretUpdateHanadb + * @param name {String} Rotated secret name + */ + function RotatedSecretUpdateHanadb(name) { + _classCallCheck(this, RotatedSecretUpdateHanadb); - if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) { - if (atExplicitKey) { - keyNode = state.result; - } else { - valueNode = state.result; - } - } + RotatedSecretUpdateHanadb.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (!atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos); - keyTag = keyNode = valueNode = null; - } - skipSeparationSpace(state, true, -1); - ch = state.input.charCodeAt(state.position); + _createClass(RotatedSecretUpdateHanadb, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } + /** + * Constructs a RotatedSecretUpdateHanadb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateHanadb} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateHanadb} The populated RotatedSecretUpdateHanadb instance. + */ - if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) { - throwError(state, 'bad indentation of a mapping entry'); - } else if (state.lineIndent < nodeIndent) { - break; - } - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateHanadb(); - // - // Epilogue. - // + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } - // Special case: last mapping's node contains only the key in explicit notation. - if (atExplicitKey) { - storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos); - } + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } - // Expose the resulting mapping. - if (detected) { - state.tag = _tag; - state.anchor = _anchor; - state.kind = 'mapping'; - state.result = _result; - } + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } - return detected; -} + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -function readTagProperty(state) { - var _position, - isVerbatim = false, - isNamed = false, - tagHandle, - tagName, - ch; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - ch = state.input.charCodeAt(state.position); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - if (ch !== 0x21/* ! */) return false; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - if (state.tag !== null) { - throwError(state, 'duplication of a tag property'); - } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - ch = state.input.charCodeAt(++state.position); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - if (ch === 0x3C/* < */) { - isVerbatim = true; - ch = state.input.charCodeAt(++state.position); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - } else if (ch === 0x21/* ! */) { - isNamed = true; - tagHandle = '!!'; - ch = state.input.charCodeAt(++state.position); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - } else { - tagHandle = '!'; - } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } - _position = state.position; + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } - if (isVerbatim) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && ch !== 0x3E/* > */); + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } - if (state.position < state.length) { - tagName = state.input.slice(_position, state.position); - ch = state.input.charCodeAt(++state.position); - } else { - throwError(state, 'unexpected end of the stream within a verbatim tag'); - } - } else { - while (ch !== 0 && !is_WS_OR_EOL(ch)) { + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } - if (ch === 0x21/* ! */) { - if (!isNamed) { - tagHandle = state.input.slice(_position - 1, state.position + 1); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - if (!PATTERN_TAG_HANDLE.test(tagHandle)) { - throwError(state, 'named tag handle cannot contain such characters'); - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - isNamed = true; - _position = state.position + 1; - } else { - throwError(state, 'tag suffix cannot contain exclamation marks'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } - ch = state.input.charCodeAt(++state.position); + return obj; } + }]); - tagName = state.input.slice(_position, state.position); + return RotatedSecretUpdateHanadb; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ - if (PATTERN_FLOW_INDICATORS.test(tagName)) { - throwError(state, 'tag suffix cannot contain flow indicator characters'); - } - } - if (tagName && !PATTERN_TAG_URI.test(tagName)) { - throwError(state, 'tag name cannot contain such characters: ' + tagName); - } +RotatedSecretUpdateHanadb.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ - try { - tagName = decodeURIComponent(tagName); - } catch (err) { - throwError(state, 'tag name is malformed: ' + tagName); - } +RotatedSecretUpdateHanadb.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ - if (isVerbatim) { - state.tag = tagName; +RotatedSecretUpdateHanadb.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ - } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) { - state.tag = state.tagMap[tagHandle] + tagName; +RotatedSecretUpdateHanadb.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ - } else if (tagHandle === '!') { - state.tag = '!' + tagName; +RotatedSecretUpdateHanadb.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - } else if (tagHandle === '!!') { - state.tag = 'tag:yaml.org,2002:' + tagName; +RotatedSecretUpdateHanadb.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ - } else { - throwError(state, 'undeclared tag handle "' + tagHandle + '"'); - } +RotatedSecretUpdateHanadb.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - return true; -} +RotatedSecretUpdateHanadb.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -function readAnchorProperty(state) { - var _position, - ch; +RotatedSecretUpdateHanadb.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ - ch = state.input.charCodeAt(state.position); +RotatedSecretUpdateHanadb.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ - if (ch !== 0x26/* & */) return false; +RotatedSecretUpdateHanadb.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - if (state.anchor !== null) { - throwError(state, 'duplication of an anchor property'); - } +RotatedSecretUpdateHanadb.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ - ch = state.input.charCodeAt(++state.position); - _position = state.position; +RotatedSecretUpdateHanadb.prototype['rm-tag'] = undefined; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } +RotatedSecretUpdateHanadb.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ - if (state.position === _position) { - throwError(state, 'name of an anchor node must contain at least one character'); - } +RotatedSecretUpdateHanadb.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - state.anchor = state.input.slice(_position, state.position); - return true; -} +RotatedSecretUpdateHanadb.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ -function readAlias(state) { - var _position, alias, - ch; +RotatedSecretUpdateHanadb.prototype['rotation-interval'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - ch = state.input.charCodeAt(state.position); +RotatedSecretUpdateHanadb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - if (ch !== 0x2A/* * */) return false; +RotatedSecretUpdateHanadb.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateHanadb; +exports["default"] = _default; - ch = state.input.charCodeAt(++state.position); - _position = state.position; +/***/ }), - while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) { - ch = state.input.charCodeAt(++state.position); - } +/***/ 90859: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (state.position === _position) { - throwError(state, 'name of an alias node must contain at least one character'); - } +"use strict"; - alias = state.input.slice(_position, state.position); - if (!_hasOwnProperty.call(state.anchorMap, alias)) { - throwError(state, 'unidentified alias "' + alias + '"'); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - state.result = state.anchorMap[alias]; - skipSeparationSpace(state, true, -1); - return true; -} +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) { - var allowBlockStyles, - allowBlockScalars, - allowBlockCollections, - indentStatus = 1, // 1: this>parent, 0: this=parent, -1: thisRotatedSecretUpdateLdap. + * @alias module:model/RotatedSecretUpdateLdap + * @param name {String} Rotated secret name + */ + function RotatedSecretUpdateLdap(name) { + _classCallCheck(this, RotatedSecretUpdateLdap); - if (state.lineIndent > parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } + RotatedSecretUpdateLdap.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (indentStatus === 1) { - while (readTagProperty(state) || readAnchorProperty(state)) { - if (skipSeparationSpace(state, true, -1)) { - atNewLine = true; - allowBlockCollections = allowBlockStyles; - if (state.lineIndent > parentIndent) { - indentStatus = 1; - } else if (state.lineIndent === parentIndent) { - indentStatus = 0; - } else if (state.lineIndent < parentIndent) { - indentStatus = -1; - } - } else { - allowBlockCollections = false; - } + _createClass(RotatedSecretUpdateLdap, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } - } + /** + * Constructs a RotatedSecretUpdateLdap from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateLdap} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateLdap} The populated RotatedSecretUpdateLdap instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateLdap(); - if (allowBlockCollections) { - allowBlockCollections = atNewLine || allowCompact; - } + if (data.hasOwnProperty('ProviderType')) { + obj['ProviderType'] = _ApiClient["default"].convertToType(data['ProviderType'], 'String'); + } - if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) { - if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) { - flowIndent = parentIndent; - } else { - flowIndent = parentIndent + 1; - } + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } - blockIndent = state.position - state.lineStart; + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } - if (indentStatus === 1) { - if (allowBlockCollections && - (readBlockSequence(state, blockIndent) || - readBlockMapping(state, blockIndent, flowIndent)) || - readFlowCollection(state, flowIndent)) { - hasContent = true; - } else { - if ((allowBlockScalars && readBlockScalar(state, flowIndent)) || - readSingleQuotedScalar(state, flowIndent) || - readDoubleQuotedScalar(state, flowIndent)) { - hasContent = true; + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } - } else if (readAlias(state)) { - hasContent = true; + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } - if (state.tag !== null || state.anchor !== null) { - throwError(state, 'alias node should not have any properties'); - } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) { - hasContent = true; + if (data.hasOwnProperty('host-provider')) { + obj['host-provider'] = _ApiClient["default"].convertToType(data['host-provider'], 'String'); + } - if (state.tag === null) { - state.tag = '?'; - } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - } - } else if (indentStatus === 0) { - // Special case: block sequences are allowed to have same indentation level as the parent. - // http://www.yaml.org/spec/1.2/spec.html#id2799784 - hasContent = allowBlockCollections && readBlockSequence(state, blockIndent); - } - } - if (state.tag === null) { - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - } else if (state.tag === '?') { - // Implicit resolving is not allowed for non-scalar types, and '?' - // non-specific tag is only automatically assigned to plain scalars. - // - // We only need to check kind conformity in case user explicitly assigns '?' - // tag, for example like this: "! [0]" - // - if (state.result !== null && state.kind !== 'scalar') { - throwError(state, 'unacceptable node kind for ! tag; it should be "scalar", not "' + state.kind + '"'); - } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) { - type = state.implicitTypes[typeIndex]; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - if (type.resolve(state.result)) { // `state.result` updated in resolver if matched - state.result = type.construct(state.result); - state.tag = type.tag; - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - break; - } - } - } else if (state.tag !== '!') { - if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) { - type = state.typeMap[state.kind || 'fallback'][state.tag]; - } else { - // looking for multi type - type = null; - typeList = state.typeMap.multi[state.kind || 'fallback']; - for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) { - if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) { - type = typeList[typeIndex]; - break; + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); } - } - } - if (!type) { - throwError(state, 'unknown tag !<' + state.tag + '>'); - } + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } - if (state.result !== null && type.kind !== state.kind) { - throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"'); - } + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } - if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched - throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag'); - } else { - state.result = type.construct(state.result, state.tag); - if (state.anchor !== null) { - state.anchorMap[state.anchor] = state.result; - } - } - } + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } - if (state.listener !== null) { - state.listener('close', state); - } - return state.tag !== null || state.anchor !== null || hasContent; -} + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -function readDocument(state) { - var documentStart = state.position, - _position, - directiveName, - directiveArgs, - hasDirectives = false, - ch; + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } - state.version = null; - state.checkLineBreaks = state.legacy; - state.tagMap = Object.create(null); - state.anchorMap = Object.create(null); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - while ((ch = state.input.charCodeAt(state.position)) !== 0) { - skipSeparationSpace(state, true, -1); + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } - ch = state.input.charCodeAt(state.position); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } - if (state.lineIndent > 0 || ch !== 0x25/* % */) { - break; - } + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } - hasDirectives = true; - ch = state.input.charCodeAt(++state.position); - _position = state.position; + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); - } + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } - directiveName = state.input.slice(_position, state.position); - directiveArgs = []; + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } - if (directiveName.length < 1) { - throwError(state, 'directive name must not be less than one character in length'); - } + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } - while (ch !== 0) { - while (is_WHITE_SPACE(ch)) { - ch = state.input.charCodeAt(++state.position); - } + if (data.hasOwnProperty('target')) { + obj['target'] = _ApiClient["default"].convertToType(data['target'], ['String']); + } - if (ch === 0x23/* # */) { - do { ch = state.input.charCodeAt(++state.position); } - while (ch !== 0 && !is_EOL(ch)); - break; - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - if (is_EOL(ch)) break; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } - _position = state.position; + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); + } - while (ch !== 0 && !is_WS_OR_EOL(ch)) { - ch = state.input.charCodeAt(++state.position); + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); + } } - directiveArgs.push(state.input.slice(_position, state.position)); + return obj; } + }]); - if (ch !== 0) readLineBreak(state); + return RotatedSecretUpdateLdap; +}(); +/** + * @member {String} ProviderType + */ - if (_hasOwnProperty.call(directiveHandlers, directiveName)) { - directiveHandlers[directiveName](state, directiveName, directiveArgs); - } else { - throwWarning(state, 'unknown document directive "' + directiveName + '"'); - } - } - skipSeparationSpace(state, true, -1); +RotatedSecretUpdateLdap.prototype['ProviderType'] = undefined; +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ - if (state.lineIndent === 0 && - state.input.charCodeAt(state.position) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 1) === 0x2D/* - */ && - state.input.charCodeAt(state.position + 2) === 0x2D/* - */) { - state.position += 3; - skipSeparationSpace(state, true, -1); +RotatedSecretUpdateLdap.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ - } else if (hasDirectives) { - throwError(state, 'directives end mark is expected'); - } +RotatedSecretUpdateLdap.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ - composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true); - skipSeparationSpace(state, true, -1); +RotatedSecretUpdateLdap.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ - if (state.checkLineBreaks && - PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) { - throwWarning(state, 'non-ASCII line breaks are interpreted as content'); - } +RotatedSecretUpdateLdap.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ - state.documents.push(state.result); +RotatedSecretUpdateLdap.prototype['description'] = 'default_metadata'; +/** + * Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret + * @member {String} host-provider + * @default 'explicit' + */ - if (state.position === state.lineStart && testDocumentSeparator(state)) { +RotatedSecretUpdateLdap.prototype['host-provider'] = 'explicit'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - if (state.input.charCodeAt(state.position) === 0x2E/* . */) { - state.position += 3; - skipSeparationSpace(state, true, -1); - } - return; - } +RotatedSecretUpdateLdap.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ - if (state.position < (state.length - 1)) { - throwError(state, 'end of the stream or a document separator is expected'); - } else { - return; - } -} +RotatedSecretUpdateLdap.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ +RotatedSecretUpdateLdap.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -function loadDocuments(input, options) { - input = String(input); - options = options || {}; +RotatedSecretUpdateLdap.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ - if (input.length !== 0) { +RotatedSecretUpdateLdap.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ - // Add tailing `\n` if not exists - if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ && - input.charCodeAt(input.length - 1) !== 0x0D/* CR */) { - input += '\n'; - } +RotatedSecretUpdateLdap.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - // Strip BOM - if (input.charCodeAt(0) === 0xFEFF) { - input = input.slice(1); - } - } +RotatedSecretUpdateLdap.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ - var state = new State(input, options); +RotatedSecretUpdateLdap.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ - var nullpos = input.indexOf('\0'); +RotatedSecretUpdateLdap.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=ldap) + * @member {String} rotated-password + */ - if (nullpos !== -1) { - state.position = nullpos; - throwError(state, 'null byte is not allowed in input'); - } +RotatedSecretUpdateLdap.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=ldap) + * @member {String} rotated-username + */ - // Use 0 as string terminator. That significantly simplifies bounds check. - state.input += '\0'; +RotatedSecretUpdateLdap.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - while (state.input.charCodeAt(state.position) === 0x20/* Space */) { - state.lineIndent += 1; - state.position += 1; - } +RotatedSecretUpdateLdap.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - while (state.position < (state.length - 1)) { - readDocument(state); - } +RotatedSecretUpdateLdap.prototype['rotation-interval'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - return state.documents; -} +RotatedSecretUpdateLdap.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ +RotatedSecretUpdateLdap.prototype['secure-access-host'] = undefined; +/** + * Default domain name server. i.e. microsoft.com + * @member {String} secure-access-rdp-domain + */ -function loadAll(input, iterator, options) { - if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') { - options = iterator; - iterator = null; - } +RotatedSecretUpdateLdap.prototype['secure-access-rdp-domain'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ - var documents = loadDocuments(input, options); +RotatedSecretUpdateLdap.prototype['secure-access-url'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ - if (typeof iterator !== 'function') { - return documents; - } +RotatedSecretUpdateLdap.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ - for (var index = 0, length = documents.length; index < length; index += 1) { - iterator(documents[index]); - } -} +RotatedSecretUpdateLdap.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ +RotatedSecretUpdateLdap.prototype['secure-access-web-proxy'] = false; +/** + * A list of linked targets to be associated, Relevant only for Secure Remote Access for ssh cert issuer and ldap rotated secret, To specify multiple targets use argument multiple times + * @member {Array.} target + */ -function load(input, options) { - var documents = loadDocuments(input, options); +RotatedSecretUpdateLdap.prototype['target'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - if (documents.length === 0) { - /*eslint-disable no-undefined*/ - return undefined; - } else if (documents.length === 1) { - return documents[0]; - } - throw new YAMLException('expected a single document in the stream, but found more'); -} +RotatedSecretUpdateLdap.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +RotatedSecretUpdateLdap.prototype['uid-token'] = undefined; +/** + * LDAP User Attribute, Default value \"cn\" + * @member {String} user-attribute + * @default 'cn' + */ -module.exports.loadAll = loadAll; -module.exports.load = load; +RotatedSecretUpdateLdap.prototype['user-attribute'] = 'cn'; +/** + * Base DN to Perform User Search + * @member {String} user-dn + */ +RotatedSecretUpdateLdap.prototype['user-dn'] = undefined; +var _default = RotatedSecretUpdateLdap; +exports["default"] = _default; /***/ }), -/***/ 62046: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 73885: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -/*eslint-disable max-len*/ - -var YAMLException = __nccwpck_require__(41248); -var Type = __nccwpck_require__(9557); - - -function compileList(schema, name) { - var result = []; - - schema[name].forEach(function (currentType) { - var newIndex = result.length; - - result.forEach(function (previousType, previousIndex) { - if (previousType.tag === currentType.tag && - previousType.kind === currentType.kind && - previousType.multi === currentType.multi) { +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - newIndex = previousIndex; - } - }); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - result[newIndex] = currentType; - }); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - return result; -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function compileMap(/* lists... */) { - var result = { - scalar: {}, - sequence: {}, - mapping: {}, - fallback: {}, - multi: { - scalar: [], - sequence: [], - mapping: [], - fallback: [] - } - }, index, length; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - function collectType(type) { - if (type.multi) { - result.multi[type.kind].push(type); - result.multi['fallback'].push(type); - } else { - result[type.kind][type.tag] = result['fallback'][type.tag] = type; - } - } +/** + * The RotatedSecretUpdateMongodb model module. + * @module model/RotatedSecretUpdateMongodb + * @version 3.6.3 + */ +var RotatedSecretUpdateMongodb = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateMongodb. + * @alias module:model/RotatedSecretUpdateMongodb + * @param name {String} Rotated secret name + */ + function RotatedSecretUpdateMongodb(name) { + _classCallCheck(this, RotatedSecretUpdateMongodb); - for (index = 0, length = arguments.length; index < length; index += 1) { - arguments[index].forEach(collectType); + RotatedSecretUpdateMongodb.initialize(this, name); } - return result; -} - + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -function Schema(definition) { - return this.extend(definition); -} + _createClass(RotatedSecretUpdateMongodb, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a RotatedSecretUpdateMongodb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateMongodb} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateMongodb} The populated RotatedSecretUpdateMongodb instance. + */ -Schema.prototype.extend = function extend(definition) { - var implicit = []; - var explicit = []; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateMongodb(); - if (definition instanceof Type) { - // Schema.extend(type) - explicit.push(definition); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } - } else if (Array.isArray(definition)) { - // Schema.extend([ type1, type2, ... ]) - explicit = explicit.concat(definition); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } - } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) { - // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] }) - if (definition.implicit) implicit = implicit.concat(definition.implicit); - if (definition.explicit) explicit = explicit.concat(definition.explicit); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } - } else { - throw new YAMLException('Schema.extend argument should be a Type, [ Type ], ' + - 'or a schema definition ({ implicit: [...], explicit: [...] })'); - } + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } - implicit.forEach(function (type) { - if (!(type instanceof Type)) { - throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - if (type.loadKind && type.loadKind !== 'scalar') { - throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.'); - } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - if (type.multi) { - throw new YAMLException('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.'); - } - }); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - explicit.forEach(function (type) { - if (!(type instanceof Type)) { - throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.'); - } - }); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - var result = Object.create(Schema.prototype); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - result.implicit = (this.implicit || []).concat(implicit); - result.explicit = (this.explicit || []).concat(explicit); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - result.compiledImplicit = compileList(result, 'implicit'); - result.compiledExplicit = compileList(result, 'explicit'); - result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - return result; -}; + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } -module.exports = Schema; + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -/***/ 55746: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -"use strict"; -// Standard YAML's Core schema. -// http://www.yaml.org/spec/1.2/spec.html#id2804923 -// -// NOTE: JS-YAML does not support schema-specific tag resolution restrictions. -// So, Core schema has no distinctions from JSON schema is JS-YAML. + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } -module.exports = __nccwpck_require__(58927); + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } -/***/ 97336: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + return obj; + } + }]); -"use strict"; -// JS-YAML's default schema for `safeLoad` function. -// It is not described in the YAML specification. -// -// This schema is based on standard YAML's Core schema and includes most of -// extra types described at YAML tag repository. (http://yaml.org/type/) + return RotatedSecretUpdateMongodb; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ +RotatedSecretUpdateMongodb.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ +RotatedSecretUpdateMongodb.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ +RotatedSecretUpdateMongodb.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -module.exports = (__nccwpck_require__(55746).extend)({ - implicit: [ - __nccwpck_require__(28966), - __nccwpck_require__(76854) - ], - explicit: [ - __nccwpck_require__(8149), - __nccwpck_require__(58649), - __nccwpck_require__(16267), - __nccwpck_require__(78758) - ] -}); +RotatedSecretUpdateMongodb.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ +RotatedSecretUpdateMongodb.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ }), +RotatedSecretUpdateMongodb.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -/***/ 69832: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +RotatedSecretUpdateMongodb.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -"use strict"; -// Standard YAML's Failsafe schema. -// http://www.yaml.org/spec/1.2/spec.html#id2802346 +RotatedSecretUpdateMongodb.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ +RotatedSecretUpdateMongodb.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ +RotatedSecretUpdateMongodb.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ +RotatedSecretUpdateMongodb.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ +RotatedSecretUpdateMongodb.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ -var Schema = __nccwpck_require__(62046); +RotatedSecretUpdateMongodb.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ +RotatedSecretUpdateMongodb.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ -module.exports = new Schema({ - explicit: [ - __nccwpck_require__(53929), - __nccwpck_require__(77161), - __nccwpck_require__(47316) - ] -}); +RotatedSecretUpdateMongodb.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ +RotatedSecretUpdateMongodb.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ -/***/ }), +RotatedSecretUpdateMongodb.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ -/***/ 58927: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +RotatedSecretUpdateMongodb.prototype['rotation-interval'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ -"use strict"; -// Standard YAML's JSON schema. -// http://www.yaml.org/spec/1.2/spec.html#id2803231 -// -// NOTE: JS-YAML does not support schema-specific tag resolution restrictions. -// So, this schema is not such strict as defined in the YAML specification. -// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc. +RotatedSecretUpdateMongodb.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ +RotatedSecretUpdateMongodb.prototype['secure-access-db-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ +RotatedSecretUpdateMongodb.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ +RotatedSecretUpdateMongodb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ +RotatedSecretUpdateMongodb.prototype['secure-access-web'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -module.exports = (__nccwpck_require__(69832).extend)({ - implicit: [ - __nccwpck_require__(4333), - __nccwpck_require__(44915), - __nccwpck_require__(62271), - __nccwpck_require__(57584) - ] -}); +RotatedSecretUpdateMongodb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +RotatedSecretUpdateMongodb.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateMongodb; +exports["default"] = _default; /***/ }), -/***/ 9440: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 18512: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var common = __nccwpck_require__(19816); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -// get snippet for a single line, respecting maxLength -function getLine(buffer, lineStart, lineEnd, position, maxLineLength) { - var head = ''; - var tail = ''; - var maxHalfLength = Math.floor(maxLineLength / 2) - 1; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (position - lineStart > maxHalfLength) { - head = ' ... '; - lineStart = position - maxHalfLength + head.length; - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (lineEnd - position > maxHalfLength) { - tail = ' ...'; - lineEnd = position + maxHalfLength - tail.length; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - return { - str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail, - pos: position - lineStart + head.length // relative position - }; -} +/** + * The RotatedSecretUpdateMssql model module. + * @module model/RotatedSecretUpdateMssql + * @version 3.6.3 + */ +var RotatedSecretUpdateMssql = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateMssql. + * @alias module:model/RotatedSecretUpdateMssql + * @param name {String} Rotated secret name + */ + function RotatedSecretUpdateMssql(name) { + _classCallCheck(this, RotatedSecretUpdateMssql); + RotatedSecretUpdateMssql.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -function padStart(string, max) { - return common.repeat(' ', max - string.length) + string; -} + _createClass(RotatedSecretUpdateMssql, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a RotatedSecretUpdateMssql from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateMssql} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateMssql} The populated RotatedSecretUpdateMssql instance. + */ -function makeSnippet(mark, options) { - options = Object.create(options || null); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateMssql(); - if (!mark.buffer) return null; + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } - if (!options.maxLength) options.maxLength = 79; - if (typeof options.indent !== 'number') options.indent = 1; - if (typeof options.linesBefore !== 'number') options.linesBefore = 3; - if (typeof options.linesAfter !== 'number') options.linesAfter = 2; + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } - var re = /\r?\n|\r|\0/g; - var lineStarts = [ 0 ]; - var lineEnds = []; - var match; - var foundLineNo = -1; + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } - while ((match = re.exec(mark.buffer))) { - lineEnds.push(match.index); - lineStarts.push(match.index + match[0].length); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } - if (mark.position <= match.index && foundLineNo < 0) { - foundLineNo = lineStarts.length - 2; - } - } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - if (foundLineNo < 0) foundLineNo = lineStarts.length - 1; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - var result = '', i, line; - var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length; - var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - for (i = 1; i <= options.linesBefore; i++) { - if (foundLineNo - i < 0) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo - i], - lineEnds[foundLineNo - i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), - maxLineLength - ); - result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n' + result; - } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength); - result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n'; + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - for (i = 1; i <= options.linesAfter; i++) { - if (foundLineNo + i >= lineEnds.length) break; - line = getLine( - mark.buffer, - lineStarts[foundLineNo + i], - lineEnds[foundLineNo + i], - mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), - maxLineLength - ); - result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + - ' | ' + line.str + '\n'; - } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - return result.replace(/\n$/, ''); -} + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -module.exports = makeSnippet; + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -/***/ 9557: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } -var YAMLException = __nccwpck_require__(41248); + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } -var TYPE_CONSTRUCTOR_OPTIONS = [ - 'kind', - 'multi', - 'resolve', - 'construct', - 'instanceOf', - 'predicate', - 'represent', - 'representName', - 'defaultStyle', - 'styleAliases' -]; + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } -var YAML_NODE_KINDS = [ - 'scalar', - 'sequence', - 'mapping' -]; + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } -function compileStyleAliases(map) { - var result = {}; + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } - if (map !== null) { - Object.keys(map).forEach(function (style) { - map[style].forEach(function (alias) { - result[String(alias)] = style; - }); - }); - } + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } - return result; -} + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } -function Type(tag, options) { - options = options || {}; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - Object.keys(options).forEach(function (name) { - if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) { - throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.'); - } - }); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - // TODO: Add tag format check. - this.options = options; // keep original options in case user wants to extend this type later - this.tag = tag; - this.kind = options['kind'] || null; - this.resolve = options['resolve'] || function () { return true; }; - this.construct = options['construct'] || function (data) { return data; }; - this.instanceOf = options['instanceOf'] || null; - this.predicate = options['predicate'] || null; - this.represent = options['represent'] || null; - this.representName = options['representName'] || null; - this.defaultStyle = options['defaultStyle'] || null; - this.multi = options['multi'] || false; - this.styleAliases = compileStyleAliases(options['styleAliases'] || null); + return obj; + } + }]); - if (YAML_NODE_KINDS.indexOf(this.kind) === -1) { - throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.'); - } -} + return RotatedSecretUpdateMssql; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ -module.exports = Type; +RotatedSecretUpdateMssql.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ -/***/ }), +RotatedSecretUpdateMssql.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ -/***/ 8149: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +RotatedSecretUpdateMssql.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -"use strict"; +RotatedSecretUpdateMssql.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ +RotatedSecretUpdateMssql.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/*eslint-disable no-bitwise*/ +RotatedSecretUpdateMssql.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ +RotatedSecretUpdateMssql.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -var Type = __nccwpck_require__(9557); +RotatedSecretUpdateMssql.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ +RotatedSecretUpdateMssql.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -// [ 64, 65, 66 ] -> [ padding, CR, LF ] -var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r'; +RotatedSecretUpdateMssql.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ +RotatedSecretUpdateMssql.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -function resolveYamlBinary(data) { - if (data === null) return false; +RotatedSecretUpdateMssql.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ - var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP; +RotatedSecretUpdateMssql.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ - // Convert one by one. - for (idx = 0; idx < max; idx++) { - code = map.indexOf(data.charAt(idx)); +RotatedSecretUpdateMssql.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ - // Skip CR/LF - if (code > 64) continue; +RotatedSecretUpdateMssql.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ - // Fail on illegal characters - if (code < 0) return false; +RotatedSecretUpdateMssql.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - bitlen += 6; - } +RotatedSecretUpdateMssql.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - // If there are any bits left, source was corrupted - return (bitlen % 8) === 0; -} +RotatedSecretUpdateMssql.prototype['rotation-interval'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ -function constructYamlBinary(data) { - var idx, tailbits, - input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan - max = input.length, - map = BASE64_MAP, - bits = 0, - result = []; +RotatedSecretUpdateMssql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ - // Collect by 6*4 bits (3 bytes) +RotatedSecretUpdateMssql.prototype['secure-access-db-name'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ - for (idx = 0; idx < max; idx++) { - if ((idx % 4 === 0) && idx) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } +RotatedSecretUpdateMssql.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - bits = (bits << 6) | map.indexOf(input.charAt(idx)); - } +RotatedSecretUpdateMssql.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ - // Dump tail +RotatedSecretUpdateMssql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ - tailbits = (max % 4) * 6; +RotatedSecretUpdateMssql.prototype['secure-access-web'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - if (tailbits === 0) { - result.push((bits >> 16) & 0xFF); - result.push((bits >> 8) & 0xFF); - result.push(bits & 0xFF); - } else if (tailbits === 18) { - result.push((bits >> 10) & 0xFF); - result.push((bits >> 2) & 0xFF); - } else if (tailbits === 12) { - result.push((bits >> 4) & 0xFF); - } +RotatedSecretUpdateMssql.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - return new Uint8Array(result); -} +RotatedSecretUpdateMssql.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateMssql; +exports["default"] = _default; -function representYamlBinary(object /*, style*/) { - var result = '', bits = 0, idx, tail, - max = object.length, - map = BASE64_MAP; +/***/ }), - // Convert every three bytes to 4 ASCII characters. +/***/ 11630: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - for (idx = 0; idx < max; idx++) { - if ((idx % 3 === 0) && idx) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } +"use strict"; - bits = (bits << 8) + object[idx]; - } - // Dump tail +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - tail = max % 3; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (tail === 0) { - result += map[(bits >> 18) & 0x3F]; - result += map[(bits >> 12) & 0x3F]; - result += map[(bits >> 6) & 0x3F]; - result += map[bits & 0x3F]; - } else if (tail === 2) { - result += map[(bits >> 10) & 0x3F]; - result += map[(bits >> 4) & 0x3F]; - result += map[(bits << 2) & 0x3F]; - result += map[64]; - } else if (tail === 1) { - result += map[(bits >> 2) & 0x3F]; - result += map[(bits << 4) & 0x3F]; - result += map[64]; - result += map[64]; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - return result; -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function isBinary(obj) { - return Object.prototype.toString.call(obj) === '[object Uint8Array]'; -} +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -module.exports = new Type('tag:yaml.org,2002:binary', { - kind: 'scalar', - resolve: resolveYamlBinary, - construct: constructYamlBinary, - predicate: isBinary, - represent: representYamlBinary -}); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +/** + * The RotatedSecretUpdateMysql model module. + * @module model/RotatedSecretUpdateMysql + * @version 3.6.3 + */ +var RotatedSecretUpdateMysql = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateMysql. + * @alias module:model/RotatedSecretUpdateMysql + * @param name {String} Rotated secret name + */ + function RotatedSecretUpdateMysql(name) { + _classCallCheck(this, RotatedSecretUpdateMysql); -/***/ }), + RotatedSecretUpdateMysql.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ 44915: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; + _createClass(RotatedSecretUpdateMysql, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a RotatedSecretUpdateMysql from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateMysql} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateMysql} The populated RotatedSecretUpdateMysql instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateMysql(); -var Type = __nccwpck_require__(9557); + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } -function resolveYamlBoolean(data) { - if (data === null) return false; + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } - var max = data.length; + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } - return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) || - (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE')); -} + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -function constructYamlBoolean(data) { - return data === 'true' || - data === 'True' || - data === 'TRUE'; -} + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -function isBoolean(object) { - return Object.prototype.toString.call(object) === '[object Boolean]'; -} + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -module.exports = new Type('tag:yaml.org,2002:bool', { - kind: 'scalar', - resolve: resolveYamlBoolean, - construct: constructYamlBoolean, - predicate: isBoolean, - represent: { - lowercase: function (object) { return object ? 'true' : 'false'; }, - uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; }, - camelcase: function (object) { return object ? 'True' : 'False'; } - }, - defaultStyle: 'lowercase' -}); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -/***/ 57584: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -var common = __nccwpck_require__(19816); -var Type = __nccwpck_require__(9557); + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } -var YAML_FLOAT_PATTERN = new RegExp( - // 2.5e4, 2.5 and integers - '^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' + - // .2e4, .2 - // special case, seems not from spec - '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' + - // .inf - '|[-+]?\\.(?:inf|Inf|INF)' + - // .nan - '|\\.(?:nan|NaN|NAN))$'); + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -function resolveYamlFloat(data) { - if (data === null) return false; + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } - if (!YAML_FLOAT_PATTERN.test(data) || - // Quick hack to not allow integers end with `_` - // Probably should update regexp & check speed - data[data.length - 1] === '_') { - return false; - } + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } - return true; -} + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -function constructYamlFloat(data) { - var value, sign; + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - value = data.replace(/_/g, '').toLowerCase(); - sign = value[0] === '-' ? -1 : 1; + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } - if ('+-'.indexOf(value[0]) >= 0) { - value = value.slice(1); - } + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } - if (value === '.inf') { - return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY; + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } - } else if (value === '.nan') { - return NaN; - } - return sign * parseFloat(value, 10); -} + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } -var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -function representYamlFloat(object, style) { - var res; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - if (isNaN(object)) { - switch (style) { - case 'lowercase': return '.nan'; - case 'uppercase': return '.NAN'; - case 'camelcase': return '.NaN'; - } - } else if (Number.POSITIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '.inf'; - case 'uppercase': return '.INF'; - case 'camelcase': return '.Inf'; - } - } else if (Number.NEGATIVE_INFINITY === object) { - switch (style) { - case 'lowercase': return '-.inf'; - case 'uppercase': return '-.INF'; - case 'camelcase': return '-.Inf'; + return obj; } - } else if (common.isNegativeZero(object)) { - return '-0.0'; - } + }]); - res = object.toString(10); + return RotatedSecretUpdateMysql; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ - // JS stringifier can build scientific format without dots: 5e-100, - // while YAML requres dot: 5.e-100. Fix it with simple hack - return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res; -} +RotatedSecretUpdateMysql.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ -function isFloat(object) { - return (Object.prototype.toString.call(object) === '[object Number]') && - (object % 1 !== 0 || common.isNegativeZero(object)); -} +RotatedSecretUpdateMysql.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ -module.exports = new Type('tag:yaml.org,2002:float', { - kind: 'scalar', - resolve: resolveYamlFloat, - construct: constructYamlFloat, - predicate: isFloat, - represent: representYamlFloat, - defaultStyle: 'lowercase' -}); +RotatedSecretUpdateMysql.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ +RotatedSecretUpdateMysql.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ -/***/ }), +RotatedSecretUpdateMysql.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ 62271: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +RotatedSecretUpdateMysql.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -"use strict"; +RotatedSecretUpdateMysql.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ +RotatedSecretUpdateMysql.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -var common = __nccwpck_require__(19816); -var Type = __nccwpck_require__(9557); +RotatedSecretUpdateMysql.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -function isHexCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) || - ((0x41/* A */ <= c) && (c <= 0x46/* F */)) || - ((0x61/* a */ <= c) && (c <= 0x66/* f */)); -} +RotatedSecretUpdateMysql.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ -function isOctCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */)); -} +RotatedSecretUpdateMysql.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -function isDecCode(c) { - return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)); -} +RotatedSecretUpdateMysql.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ -function resolveYamlInteger(data) { - if (data === null) return false; +RotatedSecretUpdateMysql.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ - var max = data.length, - index = 0, - hasDigits = false, - ch; +RotatedSecretUpdateMysql.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ - if (!max) return false; +RotatedSecretUpdateMysql.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ - ch = data[index]; +RotatedSecretUpdateMysql.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - // sign - if (ch === '-' || ch === '+') { - ch = data[++index]; - } +RotatedSecretUpdateMysql.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - if (ch === '0') { - // 0 - if (index + 1 === max) return true; - ch = data[++index]; +RotatedSecretUpdateMysql.prototype['rotation-interval'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ - // base 2, base 8, base 16 +RotatedSecretUpdateMysql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ - if (ch === 'b') { - // base 2 - index++; +RotatedSecretUpdateMysql.prototype['secure-access-db-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (ch !== '0' && ch !== '1') return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } +RotatedSecretUpdateMysql.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ +RotatedSecretUpdateMysql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ - if (ch === 'x') { - // base 16 - index++; +RotatedSecretUpdateMysql.prototype['secure-access-web'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isHexCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } +RotatedSecretUpdateMysql.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +RotatedSecretUpdateMysql.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateMysql; +exports["default"] = _default; - if (ch === 'o') { - // base 8 - index++; +/***/ }), - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isOctCode(data.charCodeAt(index))) return false; - hasDigits = true; - } - return hasDigits && ch !== '_'; - } - } +/***/ 73650: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // base 10 (except 0) +"use strict"; - // value should not start with `_`; - if (ch === '_') return false; - for (; index < max; index++) { - ch = data[index]; - if (ch === '_') continue; - if (!isDecCode(data.charCodeAt(index))) { - return false; - } - hasDigits = true; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // Should have digits and should not end with `_` - if (!hasDigits || ch === '_') return false; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - return true; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function constructYamlInteger(data) { - var value = data, sign = 1, ch; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (value.indexOf('_') !== -1) { - value = value.replace(/_/g, ''); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - ch = value[0]; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (ch === '-' || ch === '+') { - if (ch === '-') sign = -1; - value = value.slice(1); - ch = value[0]; +/** + * The RotatedSecretUpdateOracledb model module. + * @module model/RotatedSecretUpdateOracledb + * @version 3.6.3 + */ +var RotatedSecretUpdateOracledb = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateOracledb. + * @alias module:model/RotatedSecretUpdateOracledb + * @param name {String} Rotated secret name + */ + function RotatedSecretUpdateOracledb(name) { + _classCallCheck(this, RotatedSecretUpdateOracledb); + + RotatedSecretUpdateOracledb.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (value === '0') return 0; - if (ch === '0') { - if (value[1] === 'b') return sign * parseInt(value.slice(2), 2); - if (value[1] === 'x') return sign * parseInt(value.slice(2), 16); - if (value[1] === 'o') return sign * parseInt(value.slice(2), 8); - } + _createClass(RotatedSecretUpdateOracledb, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a RotatedSecretUpdateOracledb from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateOracledb} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateOracledb} The populated RotatedSecretUpdateOracledb instance. + */ - return sign * parseInt(value, 10); -} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateOracledb(); -function isInteger(object) { - return (Object.prototype.toString.call(object)) === '[object Number]' && - (object % 1 === 0 && !common.isNegativeZero(object)); -} + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } -module.exports = new Type('tag:yaml.org,2002:int', { - kind: 'scalar', - resolve: resolveYamlInteger, - construct: constructYamlInteger, - predicate: isInteger, - represent: { - binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); }, - octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1); }, - decimal: function (obj) { return obj.toString(10); }, - /* eslint-disable max-len */ - hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); } - }, - defaultStyle: 'decimal', - styleAliases: { - binary: [ 2, 'bin' ], - octal: [ 8, 'oct' ], - decimal: [ 10, 'dec' ], - hexadecimal: [ 16, 'hex' ] - } -}); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -/***/ 47316: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -var Type = __nccwpck_require__(9557); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -module.exports = new Type('tag:yaml.org,2002:map', { - kind: 'mapping', - construct: function (data) { return data !== null ? data : {}; } -}); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -/***/ 76854: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -var Type = __nccwpck_require__(9557); + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -function resolveYamlMerge(data) { - return data === '<<' || data === null; -} + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -module.exports = new Type('tag:yaml.org,2002:merge', { - kind: 'scalar', - resolve: resolveYamlMerge -}); + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } -/***/ 4333: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } -var Type = __nccwpck_require__(9557); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -function resolveYamlNull(data) { - if (data === null) return true; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - var max = data.length; + return obj; + } + }]); - return (max === 1 && data === '~') || - (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL')); -} + return RotatedSecretUpdateOracledb; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ -function constructYamlNull() { - return null; -} -function isNull(object) { - return object === null; -} +RotatedSecretUpdateOracledb.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ -module.exports = new Type('tag:yaml.org,2002:null', { - kind: 'scalar', - resolve: resolveYamlNull, - construct: constructYamlNull, - predicate: isNull, - represent: { - canonical: function () { return '~'; }, - lowercase: function () { return 'null'; }, - uppercase: function () { return 'NULL'; }, - camelcase: function () { return 'Null'; }, - empty: function () { return ''; } - }, - defaultStyle: 'lowercase' -}); +RotatedSecretUpdateOracledb.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ +RotatedSecretUpdateOracledb.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -/***/ }), +RotatedSecretUpdateOracledb.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ -/***/ 58649: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +RotatedSecretUpdateOracledb.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -"use strict"; +RotatedSecretUpdateOracledb.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ +RotatedSecretUpdateOracledb.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -var Type = __nccwpck_require__(9557); +RotatedSecretUpdateOracledb.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -var _hasOwnProperty = Object.prototype.hasOwnProperty; -var _toString = Object.prototype.toString; +RotatedSecretUpdateOracledb.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -function resolveYamlOmap(data) { - if (data === null) return true; +RotatedSecretUpdateOracledb.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ - var objectKeys = [], index, length, pair, pairKey, pairHasKey, - object = data; +RotatedSecretUpdateOracledb.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; - pairHasKey = false; +RotatedSecretUpdateOracledb.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ - if (_toString.call(pair) !== '[object Object]') return false; +RotatedSecretUpdateOracledb.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ - for (pairKey in pair) { - if (_hasOwnProperty.call(pair, pairKey)) { - if (!pairHasKey) pairHasKey = true; - else return false; - } - } +RotatedSecretUpdateOracledb.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ - if (!pairHasKey) return false; +RotatedSecretUpdateOracledb.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ - if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey); - else return false; - } +RotatedSecretUpdateOracledb.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - return true; -} +RotatedSecretUpdateOracledb.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ -function constructYamlOmap(data) { - return data !== null ? data : []; -} +RotatedSecretUpdateOracledb.prototype['rotation-interval'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ -module.exports = new Type('tag:yaml.org,2002:omap', { - kind: 'sequence', - resolve: resolveYamlOmap, - construct: constructYamlOmap -}); +RotatedSecretUpdateOracledb.prototype['secure-access-db-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ +RotatedSecretUpdateOracledb.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ -/***/ }), +RotatedSecretUpdateOracledb.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ -/***/ 16267: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +RotatedSecretUpdateOracledb.prototype['secure-access-web'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -"use strict"; +RotatedSecretUpdateOracledb.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +RotatedSecretUpdateOracledb.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateOracledb; +exports["default"] = _default; -var Type = __nccwpck_require__(9557); +/***/ }), -var _toString = Object.prototype.toString; +/***/ 86747: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -function resolveYamlPairs(data) { - if (data === null) return true; +"use strict"; - var index, length, pair, keys, result, - object = data; - result = new Array(object.length); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (_toString.call(pair) !== '[object Object]') return false; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - keys = Object.keys(pair); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (keys.length !== 1) return false; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - result[index] = [ keys[0], pair[keys[0]] ]; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - return true; -} +/** + * The RotatedSecretUpdateOutput model module. + * @module model/RotatedSecretUpdateOutput + * @version 3.6.3 + */ +var RotatedSecretUpdateOutput = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateOutput. + * @alias module:model/RotatedSecretUpdateOutput + */ + function RotatedSecretUpdateOutput() { + _classCallCheck(this, RotatedSecretUpdateOutput); -function constructYamlPairs(data) { - if (data === null) return []; + RotatedSecretUpdateOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - var index, length, pair, keys, result, - object = data; - result = new Array(object.length); + _createClass(RotatedSecretUpdateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a RotatedSecretUpdateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateOutput} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateOutput} The populated RotatedSecretUpdateOutput instance. + */ - for (index = 0, length = object.length; index < length; index += 1) { - pair = object[index]; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateOutput(); - keys = Object.keys(pair); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } - result[index] = [ keys[0], pair[keys[0]] ]; - } + return obj; + } + }]); - return result; -} + return RotatedSecretUpdateOutput; +}(); +/** + * @member {String} name + */ -module.exports = new Type('tag:yaml.org,2002:pairs', { - kind: 'sequence', - resolve: resolveYamlPairs, - construct: constructYamlPairs -}); +RotatedSecretUpdateOutput.prototype['name'] = undefined; +var _default = RotatedSecretUpdateOutput; +exports["default"] = _default; /***/ }), -/***/ 77161: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 80808: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var Type = __nccwpck_require__(9557); - -module.exports = new Type('tag:yaml.org,2002:seq', { - kind: 'sequence', - construct: function (data) { return data !== null ? data : []; } -}); - +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/***/ }), +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ 78758: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -"use strict"; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var Type = __nccwpck_require__(9557); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var _hasOwnProperty = Object.prototype.hasOwnProperty; +/** + * The RotatedSecretUpdatePostgresql model module. + * @module model/RotatedSecretUpdatePostgresql + * @version 3.6.3 + */ +var RotatedSecretUpdatePostgresql = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdatePostgresql. + * @alias module:model/RotatedSecretUpdatePostgresql + * @param name {String} Rotated secret name + */ + function RotatedSecretUpdatePostgresql(name) { + _classCallCheck(this, RotatedSecretUpdatePostgresql); -function resolveYamlSet(data) { - if (data === null) return true; + RotatedSecretUpdatePostgresql.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - var key, object = data; - for (key in object) { - if (_hasOwnProperty.call(object, key)) { - if (object[key] !== null) return false; + _createClass(RotatedSecretUpdatePostgresql, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } - } + /** + * Constructs a RotatedSecretUpdatePostgresql from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdatePostgresql} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdatePostgresql} The populated RotatedSecretUpdatePostgresql instance. + */ - return true; -} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdatePostgresql(); -function constructYamlSet(data) { - return data !== null ? data : {}; -} + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } -module.exports = new Type('tag:yaml.org,2002:set', { - kind: 'mapping', - resolve: resolveYamlSet, - construct: constructYamlSet -}); + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -/***/ 53929: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -var Type = __nccwpck_require__(9557); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -module.exports = new Type('tag:yaml.org,2002:str', { - kind: 'scalar', - construct: function (data) { return data !== null ? data : ''; } -}); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -/***/ 28966: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -var Type = __nccwpck_require__(9557); + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -var YAML_DATE_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9])' + // [2] month - '-([0-9][0-9])$'); // [3] day + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -var YAML_TIMESTAMP_REGEXP = new RegExp( - '^([0-9][0-9][0-9][0-9])' + // [1] year - '-([0-9][0-9]?)' + // [2] month - '-([0-9][0-9]?)' + // [3] day - '(?:[Tt]|[ \\t]+)' + // ... - '([0-9][0-9]?)' + // [4] hour - ':([0-9][0-9])' + // [5] minute - ':([0-9][0-9])' + // [6] second - '(?:\\.([0-9]*))?' + // [7] fraction - '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour - '(?::([0-9][0-9]))?))?$'); // [11] tz_minute + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -function resolveYamlTimestamp(data) { - if (data === null) return false; - if (YAML_DATE_REGEXP.exec(data) !== null) return true; - if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true; - return false; -} + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } -function constructYamlTimestamp(data) { - var match, year, month, day, hour, minute, second, fraction = 0, - delta = null, tz_hour, tz_minute, date; + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } - match = YAML_DATE_REGEXP.exec(data); - if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data); + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } - if (match === null) throw new Error('Date resolve error'); + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } - // match: [1] year [2] month [3] day + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } - year = +(match[1]); - month = +(match[2]) - 1; // JS month starts with 0 - day = +(match[3]); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } - if (!match[4]) { // no hour - return new Date(Date.UTC(year, month, day)); - } + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } - // match: [4] hour [5] minute [6] second [7] fraction + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - hour = +(match[4]); - minute = +(match[5]); - second = +(match[6]); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - if (match[7]) { - fraction = match[7].slice(0, 3); - while (fraction.length < 3) { // milli-seconds - fraction += '0'; + return obj; } - fraction = +fraction; - } - - // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute + }]); - if (match[9]) { - tz_hour = +(match[10]); - tz_minute = +(match[11] || 0); - delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds - if (match[9] === '-') delta = -delta; - } + return RotatedSecretUpdatePostgresql; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ - date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction)); - if (delta) date.setTime(date.getTime() - delta); +RotatedSecretUpdatePostgresql.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ - return date; -} +RotatedSecretUpdatePostgresql.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ -function representYamlTimestamp(object /*, style*/) { - return object.toISOString(); -} +RotatedSecretUpdatePostgresql.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -module.exports = new Type('tag:yaml.org,2002:timestamp', { - kind: 'scalar', - resolve: resolveYamlTimestamp, - construct: constructYamlTimestamp, - instanceOf: Date, - represent: representYamlTimestamp -}); +RotatedSecretUpdatePostgresql.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ +RotatedSecretUpdatePostgresql.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ }), +RotatedSecretUpdatePostgresql.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -/***/ 14826: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +RotatedSecretUpdatePostgresql.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -var json_stringify = (__nccwpck_require__(93651).stringify); -var json_parse = __nccwpck_require__(3197); +RotatedSecretUpdatePostgresql.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -module.exports = function(options) { - return { - parse: json_parse(options), - stringify: json_stringify - } -}; -//create the default method members with no options applied for backwards compatibility -module.exports.parse = json_parse(); -module.exports.stringify = json_stringify; +RotatedSecretUpdatePostgresql.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ +RotatedSecretUpdatePostgresql.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ -/***/ }), +RotatedSecretUpdatePostgresql.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -/***/ 3197: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +RotatedSecretUpdatePostgresql.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ -var BigNumber = null; +RotatedSecretUpdatePostgresql.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ -// regexpxs extracted from -// (c) BSD-3-Clause -// https://github.com/fastify/secure-json-parse/graphs/contributors and https://github.com/hapijs/bourne/graphs/contributors +RotatedSecretUpdatePostgresql.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ -const suspectProtoRx = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/; -const suspectConstructorRx = /(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/; +RotatedSecretUpdatePostgresql.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ -/* - json_parse.js - 2012-06-20 +RotatedSecretUpdatePostgresql.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - Public Domain. +RotatedSecretUpdatePostgresql.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. +RotatedSecretUpdatePostgresql.prototype['rotation-interval'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ - This file creates a json_parse function. - During create you can (optionally) specify some behavioural switches +RotatedSecretUpdatePostgresql.prototype['secure-access-bastion-issuer'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ - require('json-bigint')(options) +RotatedSecretUpdatePostgresql.prototype['secure-access-db-name'] = undefined; +/** + * The DB schema + * @member {String} secure-access-db-schema + */ - The optional options parameter holds switches that drive certain - aspects of the parsing process: - * options.strict = true will warn about duplicate-key usage in the json. - The default (strict = false) will silently ignore those and overwrite - values for keys that are in duplicate use. +RotatedSecretUpdatePostgresql.prototype['secure-access-db-schema'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - The resulting function follows this signature: - json_parse(text, reviver) - This method parses a JSON text to produce an object or array. - It can throw a SyntaxError exception. +RotatedSecretUpdatePostgresql.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ - The optional reviver parameter is a function that can filter and - transform the results. It receives each of the keys and values, - and its return value is used instead of the original value. - If it returns what it received, then the structure is not modified. - If it returns undefined then the member is deleted. +RotatedSecretUpdatePostgresql.prototype['secure-access-host'] = undefined; +/** + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false + */ - Example: +RotatedSecretUpdatePostgresql.prototype['secure-access-web'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - // Parse the text. Values that look like ISO date strings will - // be converted to Date objects. +RotatedSecretUpdatePostgresql.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - myData = json_parse(text, function (key, value) { - var a; - if (typeof value === 'string') { - a = -/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); - if (a) { - return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], - +a[5], +a[6])); - } - } - return value; - }); +RotatedSecretUpdatePostgresql.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdatePostgresql; +exports["default"] = _default; - This is a reference implementation. You are free to copy, modify, or - redistribute. +/***/ }), - This code should be minified before deployment. - See http://javascript.crockford.com/jsmin.html +/***/ 75371: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO - NOT CONTROL. -*/ +"use strict"; -/*members "", "\"", "\/", "\\", at, b, call, charAt, f, fromCharCode, - hasOwnProperty, message, n, name, prototype, push, r, t, text -*/ -var json_parse = function (options) { - 'use strict'; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // This is a function that can parse a JSON text, producing a JavaScript - // data structure. It is a simple, recursive descent parser. It does not use - // eval or regular expressions, so it can be used as a model for implementing - // a JSON parser in other languages. +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // We are defining the function inside of another function to avoid creating - // global variables. +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // Default options one can override by passing options to the parse() - var _options = { - strict: false, // not being strict means do not generate syntax errors for "duplicate key" - storeAsString: false, // toggles whether the values should be stored as BigNumber (default) or a string - alwaysParseAsBig: false, // toggles whether all numbers should be Big - useNativeBigInt: false, // toggles whether to use native BigInt instead of bignumber.js - protoAction: 'error', - constructorAction: 'error', - }; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // If there are options, then use them to override the default _options - if (options !== undefined && options !== null) { - if (options.strict === true) { - _options.strict = true; - } - if (options.storeAsString === true) { - _options.storeAsString = true; - } - _options.alwaysParseAsBig = - options.alwaysParseAsBig === true ? options.alwaysParseAsBig : false; - _options.useNativeBigInt = - options.useNativeBigInt === true ? options.useNativeBigInt : false; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (typeof options.constructorAction !== 'undefined') { - if ( - options.constructorAction === 'error' || - options.constructorAction === 'ignore' || - options.constructorAction === 'preserve' - ) { - _options.constructorAction = options.constructorAction; - } else { - throw new Error( - `Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${options.constructorAction}` - ); - } - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (typeof options.protoAction !== 'undefined') { - if ( - options.protoAction === 'error' || - options.protoAction === 'ignore' || - options.protoAction === 'preserve' - ) { - _options.protoAction = options.protoAction; - } else { - throw new Error( - `Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${options.protoAction}` - ); - } - } +/** + * The RotatedSecretUpdateRedis model module. + * @module model/RotatedSecretUpdateRedis + * @version 3.6.3 + */ +var RotatedSecretUpdateRedis = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateRedis. + * @alias module:model/RotatedSecretUpdateRedis + * @param name {String} Rotated secret name + */ + function RotatedSecretUpdateRedis(name) { + _classCallCheck(this, RotatedSecretUpdateRedis); + + RotatedSecretUpdateRedis.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - var at, // The index of the current character - ch, // The current character - escapee = { - '"': '"', - '\\': '\\', - '/': '/', - b: '\b', - f: '\f', - n: '\n', - r: '\r', - t: '\t', - }, - text, - error = function (m) { - // Call error when something is wrong. - throw { - name: 'SyntaxError', - message: m, - at: at, - text: text, - }; - }, - next = function (c) { - // If a c parameter is provided, verify that it matches the current character. + _createClass(RotatedSecretUpdateRedis, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a RotatedSecretUpdateRedis from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateRedis} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateRedis} The populated RotatedSecretUpdateRedis instance. + */ - if (c && c !== ch) { - error("Expected '" + c + "' instead of '" + ch + "'"); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateRedis(); - // Get the next character. When there are no more characters, - // return the empty string. + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } - ch = text.charAt(at); - at += 1; - return ch; - }, - number = function () { - // Parse a number value. + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } - var number, - string = ''; + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } - if (ch === '-') { - string = '-'; - next('-'); - } - while (ch >= '0' && ch <= '9') { - string += ch; - next(); - } - if (ch === '.') { - string += '.'; - while (next() && ch >= '0' && ch <= '9') { - string += ch; + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - } - if (ch === 'e' || ch === 'E') { - string += ch; - next(); - if (ch === '-' || ch === '+') { - string += ch; - next(); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - while (ch >= '0' && ch <= '9') { - string += ch; - next(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - } - number = +string; - if (!isFinite(number)) { - error('Bad number'); - } else { - if (BigNumber == null) BigNumber = __nccwpck_require__(51259); - //if (number > 9007199254740992 || number < -9007199254740992) - // Bignumber has stricter check: everything with length > 15 digits disallowed - if (string.length > 15) - return _options.storeAsString - ? string - : _options.useNativeBigInt - ? BigInt(string) - : new BigNumber(string); - else - return !_options.alwaysParseAsBig - ? number - : _options.useNativeBigInt - ? BigInt(number) - : new BigNumber(number); - } - }, - string = function () { - // Parse a string value. - var hex, - i, - string = '', - uffff; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - // When parsing for string values, we must look for " and \ characters. + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - if (ch === '"') { - var startAt = at; - while (next()) { - if (ch === '"') { - if (at - 1 > startAt) string += text.substring(startAt, at - 1); - next(); - return string; - } - if (ch === '\\') { - if (at - 1 > startAt) string += text.substring(startAt, at - 1); - next(); - if (ch === 'u') { - uffff = 0; - for (i = 0; i < 4; i += 1) { - hex = parseInt(next(), 16); - if (!isFinite(hex)) { - break; - } - uffff = uffff * 16 + hex; - } - string += String.fromCharCode(uffff); - } else if (typeof escapee[ch] === 'string') { - string += escapee[ch]; - } else { - break; - } - startAt = at; - } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - } - error('Bad string'); - }, - white = function () { - // Skip whitespace. - while (ch && ch <= ' ') { - next(); - } - }, - word = function () { - // true, false, or null. + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - switch (ch) { - case 't': - next('t'); - next('r'); - next('u'); - next('e'); - return true; - case 'f': - next('f'); - next('a'); - next('l'); - next('s'); - next('e'); - return false; - case 'n': - next('n'); - next('u'); - next('l'); - next('l'); - return null; - } - error("Unexpected '" + ch + "'"); - }, - value, // Place holder for the value function. - array = function () { - // Parse an array value. + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - var array = []; + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - if (ch === '[') { - next('['); - white(); - if (ch === ']') { - next(']'); - return array; // empty array + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); } - while (ch) { - array.push(value()); - white(); - if (ch === ']') { - next(']'); - return array; - } - next(','); - white(); + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); } - } - error('Bad array'); - }, - object = function () { - // Parse an object value. - var key, - object = Object.create(null); + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } - if (ch === '{') { - next('{'); - white(); - if (ch === '}') { - next('}'); - return object; // empty object + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); } - while (ch) { - key = string(); - white(); - next(':'); - if ( - _options.strict === true && - Object.hasOwnProperty.call(object, key) - ) { - error('Duplicate key "' + key + '"'); - } - if (suspectProtoRx.test(key) === true) { - if (_options.protoAction === 'error') { - error('Object contains forbidden prototype property'); - } else if (_options.protoAction === 'ignore') { - value(); - } else { - object[key] = value(); - } - } else if (suspectConstructorRx.test(key) === true) { - if (_options.constructorAction === 'error') { - error('Object contains forbidden constructor property'); - } else if (_options.constructorAction === 'ignore') { - value(); - } else { - object[key] = value(); - } - } else { - object[key] = value(); - } + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - white(); - if (ch === '}') { - next('}'); - return object; - } - next(','); - white(); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - } - error('Bad object'); - }; - value = function () { - // Parse a JSON value. It could be an object, an array, a string, a number, - // or a word. + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - white(); - switch (ch) { - case '{': - return object(); - case '[': - return array(); - case '"': - return string(); - case '-': - return number(); - default: - return ch >= '0' && ch <= '9' ? number() : word(); + return obj; } - }; + }]); - // Return the json_parse function. It will have access to all of the above - // functions and variables. + return RotatedSecretUpdateRedis; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ - return function (source, reviver) { - var result; - text = source + ''; - at = 0; - ch = ' '; - result = value(); - white(); - if (ch) { - error('Syntax error'); - } +RotatedSecretUpdateRedis.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ - // If there is a reviver function, we recursively walk the new structure, - // passing each name/value pair to the reviver function for possible - // transformation, starting with a temporary root object that holds the result - // in an empty key. If there is not a reviver function, we simply return the - // result. +RotatedSecretUpdateRedis.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ - return typeof reviver === 'function' - ? (function walk(holder, key) { - var k, - v, - value = holder[key]; - if (value && typeof value === 'object') { - Object.keys(value).forEach(function (k) { - v = walk(value, k); - if (v !== undefined) { - value[k] = v; - } else { - delete value[k]; - } - }); - } - return reviver.call(holder, key, value); - })({ '': result }, '') - : result; - }; -}; +RotatedSecretUpdateRedis.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -module.exports = json_parse; +RotatedSecretUpdateRedis.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ +RotatedSecretUpdateRedis.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ }), +RotatedSecretUpdateRedis.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -/***/ 93651: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +RotatedSecretUpdateRedis.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -var BigNumber = __nccwpck_require__(51259); +RotatedSecretUpdateRedis.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -/* - json2.js - 2013-05-26 +RotatedSecretUpdateRedis.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ - Public Domain. +RotatedSecretUpdateRedis.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ - NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. +RotatedSecretUpdateRedis.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - See http://www.JSON.org/js.html +RotatedSecretUpdateRedis.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ +RotatedSecretUpdateRedis.prototype['rm-tag'] = undefined; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ - This code should be minified before deployment. - See http://javascript.crockford.com/jsmin.html +RotatedSecretUpdateRedis.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ - USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO - NOT CONTROL. +RotatedSecretUpdateRedis.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ +RotatedSecretUpdateRedis.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - This file creates a global JSON object containing two methods: stringify - and parse. +RotatedSecretUpdateRedis.prototype['rotation-interval'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - JSON.stringify(value, replacer, space) - value any JavaScript value, usually an object or array. +RotatedSecretUpdateRedis.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - replacer an optional parameter that determines how object - values are stringified for objects. It can be a - function or an array of strings. +RotatedSecretUpdateRedis.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateRedis; +exports["default"] = _default; - space an optional parameter that specifies the indentation - of nested structures. If it is omitted, the text will - be packed without extra whitespace. If it is a number, - it will specify the number of spaces to indent at each - level. If it is a string (such as '\t' or ' '), - it contains the characters used to indent at each level. +/***/ }), - This method produces a JSON text from a JavaScript value. +/***/ 51615: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - When an object value is found, if the object contains a toJSON - method, its toJSON method will be called and the result will be - stringified. A toJSON method does not serialize: it returns the - value represented by the name/value pair that should be serialized, - or undefined if nothing should be serialized. The toJSON method - will be passed the key associated with the value, and this will be - bound to the value +"use strict"; - For example, this would serialize Dates as ISO strings. - Date.prototype.toJSON = function (key) { - function f(n) { - // Format integers to have at least two digits. - return n < 10 ? '0' + n : n; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - return this.getUTCFullYear() + '-' + - f(this.getUTCMonth() + 1) + '-' + - f(this.getUTCDate()) + 'T' + - f(this.getUTCHours()) + ':' + - f(this.getUTCMinutes()) + ':' + - f(this.getUTCSeconds()) + 'Z'; - }; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - You can provide an optional replacer method. It will be passed the - key and value of each member, with this bound to the containing - object. The value that is returned from your method will be - serialized. If your method returns undefined, then the member will - be excluded from the serialization. +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - If the replacer parameter is an array of strings, then it will be - used to select the members to be serialized. It filters the results - such that only members with keys listed in the replacer array are - stringified. +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - Values that do not have JSON representations, such as undefined or - functions, will not be serialized. Such values in objects will be - dropped; in arrays they will be replaced with null. You can use - a replacer function to replace those with JSON values. - JSON.stringify(undefined) returns undefined. +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - The optional space parameter produces a stringification of the - value that is filled with line breaks and indentation to make it - easier to read. +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - If the space parameter is a non-empty string, then that string will - be used for indentation. If the space parameter is a number, then - the indentation will be that many spaces. +/** + * The RotatedSecretUpdateRedshift model module. + * @module model/RotatedSecretUpdateRedshift + * @version 3.6.3 + */ +var RotatedSecretUpdateRedshift = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateRedshift. + * @alias module:model/RotatedSecretUpdateRedshift + * @param name {String} Rotated secret name + */ + function RotatedSecretUpdateRedshift(name) { + _classCallCheck(this, RotatedSecretUpdateRedshift); - Example: + RotatedSecretUpdateRedshift.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - text = JSON.stringify(['e', {pluribus: 'unum'}]); - // text is '["e",{"pluribus":"unum"}]' + _createClass(RotatedSecretUpdateRedshift, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a RotatedSecretUpdateRedshift from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateRedshift} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateRedshift} The populated RotatedSecretUpdateRedshift instance. + */ - text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); - // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateRedshift(); - text = JSON.stringify([new Date()], function (key, value) { - return this[key] instanceof Date ? - 'Date(' + this[key] + ')' : value; - }); - // text is '["Date(---current time---)"]' + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } - JSON.parse(text, reviver) - This method parses a JSON text to produce an object or array. - It can throw a SyntaxError exception. + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } - The optional reviver parameter is a function that can filter and - transform the results. It receives each of the keys and values, - and its return value is used instead of the original value. - If it returns what it received, then the structure is not modified. - If it returns undefined then the member is deleted. + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } - Example: + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - // Parse the text. Values that look like ISO date strings will - // be converted to Date objects. + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - myData = JSON.parse(text, function (key, value) { - var a; - if (typeof value === 'string') { - a = -/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); - if (a) { - return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], - +a[5], +a[6])); - } - } - return value; - }); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) { - var d; - if (typeof value === 'string' && - value.slice(0, 5) === 'Date(' && - value.slice(-1) === ')') { - d = new Date(value.slice(5, -1)); - if (d) { - return d; - } - } - return value; - }); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - This is a reference implementation. You are free to copy, modify, or - redistribute. -*/ + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -/*jslint evil: true, regexp: true */ + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply, - call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours, - getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join, - lastIndex, length, parse, prototype, push, replace, slice, stringify, - test, toJSON, toString, valueOf -*/ + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } -// Create a JSON object only if one does not already exist. We create the -// methods in a closure to avoid creating global variables. + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -var JSON = module.exports; + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -(function () { - 'use strict'; + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } - function f(n) { - // Format integers to have at least two digits. - return n < 10 ? '0' + n : n; - } + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } - var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, - escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, - gap, - indent, - meta = { // table of character substitutions - '\b': '\\b', - '\t': '\\t', - '\n': '\\n', - '\f': '\\f', - '\r': '\\r', - '"' : '\\"', - '\\': '\\\\' - }, - rep; + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); + } - function quote(string) { + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -// If the string contains no control characters, no quote characters, and no -// backslash characters, then we can safely slap some quotes around it. -// Otherwise we must also replace the offending characters with safe escape -// sequences. + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } - escapable.lastIndex = 0; - return escapable.test(string) ? '"' + string.replace(escapable, function (a) { - var c = meta[a]; - return typeof c === 'string' - ? c - : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); - }) + '"' : '"' + string + '"'; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } + }]); + return RotatedSecretUpdateRedshift; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ - function str(key, holder) { -// Produce a string from holder[key]. +RotatedSecretUpdateRedshift.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ - var i, // The loop counter. - k, // The member key. - v, // The member value. - length, - mind = gap, - partial, - value = holder[key], - isBigNumber = value != null && (value instanceof BigNumber || BigNumber.isBigNumber(value)); +RotatedSecretUpdateRedshift.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ -// If the value has a toJSON method, call it to obtain a replacement value. +RotatedSecretUpdateRedshift.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ - if (value && typeof value === 'object' && - typeof value.toJSON === 'function') { - value = value.toJSON(key); - } +RotatedSecretUpdateRedshift.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ -// If we were called with a replacer function, then call the replacer to -// obtain a replacement value. +RotatedSecretUpdateRedshift.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - if (typeof rep === 'function') { - value = rep.call(holder, key, value); - } +RotatedSecretUpdateRedshift.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -// What happens next depends on the value's type. +RotatedSecretUpdateRedshift.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - switch (typeof value) { - case 'string': - if (isBigNumber) { - return value; - } else { - return quote(value); - } +RotatedSecretUpdateRedshift.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ - case 'number': +RotatedSecretUpdateRedshift.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -// JSON numbers must be finite. Encode non-finite numbers as null. +RotatedSecretUpdateRedshift.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ - return isFinite(value) ? String(value) : 'null'; +RotatedSecretUpdateRedshift.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - case 'boolean': - case 'null': - case 'bigint': +RotatedSecretUpdateRedshift.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ -// If the value is a boolean or null, convert it to a string. Note: -// typeof null does not produce 'null'. The case is included here in -// the remote chance that this gets fixed someday. +RotatedSecretUpdateRedshift.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ - return String(value); +RotatedSecretUpdateRedshift.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ -// If the type is 'object', we might be dealing with an object or an array or -// null. +RotatedSecretUpdateRedshift.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ - case 'object': +RotatedSecretUpdateRedshift.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ -// Due to a specification blunder in ECMAScript, typeof null is 'object', -// so watch out for that case. +RotatedSecretUpdateRedshift.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - if (!value) { - return 'null'; - } +RotatedSecretUpdateRedshift.prototype['rotation-interval'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ -// Make an array to hold the partial results of stringifying this object value. +RotatedSecretUpdateRedshift.prototype['secure-access-db-name'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ - gap += indent; - partial = []; +RotatedSecretUpdateRedshift.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ -// Is the value an array? +RotatedSecretUpdateRedshift.prototype['secure-access-host'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - if (Object.prototype.toString.apply(value) === '[object Array]') { +RotatedSecretUpdateRedshift.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -// The value is an array. Stringify every element. Use null as a placeholder -// for non-JSON values. +RotatedSecretUpdateRedshift.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateRedshift; +exports["default"] = _default; - length = value.length; - for (i = 0; i < length; i += 1) { - partial[i] = str(i, value) || 'null'; - } +/***/ }), -// Join all of the elements together, separated with commas, and wrap them in -// brackets. +/***/ 14308: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - v = partial.length === 0 - ? '[]' - : gap - ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' - : '[' + partial.join(',') + ']'; - gap = mind; - return v; - } +"use strict"; -// If the replacer is an array, use it to select the members to be stringified. - if (rep && typeof rep === 'object') { - length = rep.length; - for (i = 0; i < length; i += 1) { - if (typeof rep[i] === 'string') { - k = rep[i]; - v = str(k, value); - if (v) { - partial.push(quote(k) + (gap ? ': ' : ':') + v); - } - } - } - } else { +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -// Otherwise, iterate through all of the keys in the object. +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - Object.keys(value).forEach(function(k) { - var v = str(k, value); - if (v) { - partial.push(quote(k) + (gap ? ': ' : ':') + v); - } - }); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -// Join all of the member texts together, separated with commas, -// and wrap them in braces. +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - v = partial.length === 0 - ? '{}' - : gap - ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' - : '{' + partial.join(',') + '}'; - gap = mind; - return v; - } - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -// If the JSON object does not yet have a stringify method, give it one. +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (typeof JSON.stringify !== 'function') { - JSON.stringify = function (value, replacer, space) { +/** + * The RotatedSecretUpdateSnowflake model module. + * @module model/RotatedSecretUpdateSnowflake + * @version 3.6.3 + */ +var RotatedSecretUpdateSnowflake = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateSnowflake. + * @alias module:model/RotatedSecretUpdateSnowflake + * @param name {String} Rotated secret name + */ + function RotatedSecretUpdateSnowflake(name) { + _classCallCheck(this, RotatedSecretUpdateSnowflake); -// The stringify method takes a value and an optional replacer, and an optional -// space parameter, and returns a JSON text. The replacer can be a function -// that can replace values, or an array of strings that will select the keys. -// A default replacer method can be provided. Use of the space parameter can -// produce text that is more easily readable. + RotatedSecretUpdateSnowflake.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - var i; - gap = ''; - indent = ''; -// If the space parameter is a number, make an indent string containing that -// many spaces. + _createClass(RotatedSecretUpdateSnowflake, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a RotatedSecretUpdateSnowflake from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateSnowflake} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateSnowflake} The populated RotatedSecretUpdateSnowflake instance. + */ - if (typeof space === 'number') { - for (i = 0; i < space; i += 1) { - indent += ' '; - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateSnowflake(); -// If the space parameter is a string, it will be used as the indent string. + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } - } else if (typeof space === 'string') { - indent = space; - } + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } -// If there is a replacer, it must be a function or an array. -// Otherwise, throw an error. + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } - rep = replacer; - if (replacer && typeof replacer !== 'function' && - (typeof replacer !== 'object' || - typeof replacer.length !== 'number')) { - throw new Error('JSON.stringify'); - } + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -// Make a fake root object containing our value under the key of ''. -// Return the result of stringifying the value. + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - return str('', {'': value}); - }; - } -}()); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -/***/ 92047: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -var jws = __nccwpck_require__(33324); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -module.exports = function (jwt, options) { - options = options || {}; - var decoded = jws.decode(jwt, options); - if (!decoded) { return null; } - var payload = decoded.payload; + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - //try parse the payload - if(typeof payload === 'string') { - try { - var obj = JSON.parse(payload); - if(obj !== null && typeof obj === 'object') { - payload = obj; - } - } catch (e) { } - } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - //return header if `complete` option is enabled. header includes claims - //such as `kid` and `alg` used to select the key within a JWKS needed to - //verify the signature - if (options.complete === true) { - return { - header: decoded.header, - payload: payload, - signature: decoded.signature - }; - } - return payload; -}; + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } + + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } -/***/ 69653: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } -module.exports = { - decode: __nccwpck_require__(92047), - verify: __nccwpck_require__(60772), - sign: __nccwpck_require__(14912), - JsonWebTokenError: __nccwpck_require__(26248), - NotBeforeError: __nccwpck_require__(13650), - TokenExpiredError: __nccwpck_require__(41241), -}; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } -/***/ }), + return obj; + } + }]); -/***/ 26248: -/***/ ((module) => { + return RotatedSecretUpdateSnowflake; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ -var JsonWebTokenError = function (message, error) { - Error.call(this, message); - if(Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor); - } - this.name = 'JsonWebTokenError'; - this.message = message; - if (error) this.inner = error; -}; -JsonWebTokenError.prototype = Object.create(Error.prototype); -JsonWebTokenError.prototype.constructor = JsonWebTokenError; +RotatedSecretUpdateSnowflake.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ -module.exports = JsonWebTokenError; +RotatedSecretUpdateSnowflake.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ +RotatedSecretUpdateSnowflake.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ -/***/ }), +RotatedSecretUpdateSnowflake.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ -/***/ 13650: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +RotatedSecretUpdateSnowflake.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var JsonWebTokenError = __nccwpck_require__(26248); +RotatedSecretUpdateSnowflake.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -var NotBeforeError = function (message, date) { - JsonWebTokenError.call(this, message); - this.name = 'NotBeforeError'; - this.date = date; -}; +RotatedSecretUpdateSnowflake.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -NotBeforeError.prototype = Object.create(JsonWebTokenError.prototype); +RotatedSecretUpdateSnowflake.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -NotBeforeError.prototype.constructor = NotBeforeError; +RotatedSecretUpdateSnowflake.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -module.exports = NotBeforeError; +RotatedSecretUpdateSnowflake.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ -/***/ }), +RotatedSecretUpdateSnowflake.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -/***/ 41241: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +RotatedSecretUpdateSnowflake.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ -var JsonWebTokenError = __nccwpck_require__(26248); +RotatedSecretUpdateSnowflake.prototype['rm-tag'] = undefined; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ -var TokenExpiredError = function (message, expiredAt) { - JsonWebTokenError.call(this, message); - this.name = 'TokenExpiredError'; - this.expiredAt = expiredAt; -}; +RotatedSecretUpdateSnowflake.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ -TokenExpiredError.prototype = Object.create(JsonWebTokenError.prototype); +RotatedSecretUpdateSnowflake.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ -TokenExpiredError.prototype.constructor = TokenExpiredError; +RotatedSecretUpdateSnowflake.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ -module.exports = TokenExpiredError; +RotatedSecretUpdateSnowflake.prototype['rotation-interval'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretUpdateSnowflake.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +RotatedSecretUpdateSnowflake.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateSnowflake; +exports["default"] = _default; /***/ }), -/***/ 51136: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 33578: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const semver = __nccwpck_require__(49749); +"use strict"; -module.exports = semver.satisfies(process.version, '>=15.7.0'); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/***/ }), +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ 3948: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var semver = __nccwpck_require__(49749); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -module.exports = semver.satisfies(process.version, '^6.12.0 || >=8.0.0'); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -/***/ }), +/** + * The RotatedSecretUpdateSsh model module. + * @module model/RotatedSecretUpdateSsh + * @version 3.6.3 + */ +var RotatedSecretUpdateSsh = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateSsh. + * @alias module:model/RotatedSecretUpdateSsh + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + */ + function RotatedSecretUpdateSsh(name, rotatorType) { + _classCallCheck(this, RotatedSecretUpdateSsh); -/***/ 45318: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + RotatedSecretUpdateSsh.initialize(this, name, rotatorType); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -const semver = __nccwpck_require__(49749); -module.exports = semver.satisfies(process.version, '>=16.9.0'); + _createClass(RotatedSecretUpdateSsh, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; + } + /** + * Constructs a RotatedSecretUpdateSsh from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateSsh} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateSsh} The populated RotatedSecretUpdateSsh instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateSsh(); -/***/ }), + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } -/***/ 96688: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } -var ms = __nccwpck_require__(70744); + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } -module.exports = function (time, iat) { - var timestamp = iat || Math.floor(Date.now() / 1000); + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } - if (typeof time === 'string') { - var milliseconds = ms(time); - if (typeof milliseconds === 'undefined') { - return; - } - return Math.floor(timestamp + milliseconds / 1000); - } else if (typeof time === 'number') { - return timestamp + time; - } else { - return; - } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -}; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/***/ }), + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -/***/ 91006: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -const ASYMMETRIC_KEY_DETAILS_SUPPORTED = __nccwpck_require__(51136); -const RSA_PSS_KEY_DETAILS_SUPPORTED = __nccwpck_require__(45318); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -const allowedAlgorithmsForKeys = { - 'ec': ['ES256', 'ES384', 'ES512'], - 'rsa': ['RS256', 'PS256', 'RS384', 'PS384', 'RS512', 'PS512'], - 'rsa-pss': ['PS256', 'PS384', 'PS512'] -}; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -const allowedCurves = { - ES256: 'prime256v1', - ES384: 'secp384r1', - ES512: 'secp521r1', -}; + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -module.exports = function(algorithm, key) { - if (!algorithm || !key) return; + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - const keyType = key.asymmetricKeyType; - if (!keyType) return; + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } - const allowedAlgorithms = allowedAlgorithmsForKeys[keyType]; + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } - if (!allowedAlgorithms) { - throw new Error(`Unknown key type "${keyType}".`); - } + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } - if (!allowedAlgorithms.includes(algorithm)) { - throw new Error(`"alg" parameter for "${keyType}" key type must be one of: ${allowedAlgorithms.join(', ')}.`) - } + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } - /* - * Ignore the next block from test coverage because it gets executed - * conditionally depending on the Node version. Not ignoring it would - * prevent us from reaching the target % of coverage for versions of - * Node under 15.7.0. - */ - /* istanbul ignore next */ - if (ASYMMETRIC_KEY_DETAILS_SUPPORTED) { - switch (keyType) { - case 'ec': - const keyCurve = key.asymmetricKeyDetails.namedCurve; - const allowedCurve = allowedCurves[algorithm]; + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } - if (keyCurve !== allowedCurve) { - throw new Error(`"alg" parameter "${algorithm}" requires curve "${allowedCurve}".`); - } - break; + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - case 'rsa-pss': - if (RSA_PSS_KEY_DETAILS_SUPPORTED) { - const length = parseInt(algorithm.slice(-3), 10); - const { hashAlgorithm, mgf1HashAlgorithm, saltLength } = key.asymmetricKeyDetails; + if (data.hasOwnProperty('rotator-custom-cmd')) { + obj['rotator-custom-cmd'] = _ApiClient["default"].convertToType(data['rotator-custom-cmd'], 'String'); + } - if (hashAlgorithm !== `sha${length}` || mgf1HashAlgorithm !== hashAlgorithm) { - throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${algorithm}.`); + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); } - if (saltLength !== undefined && saltLength > length >> 3) { - throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${algorithm}.`) + if (data.hasOwnProperty('same-password')) { + obj['same-password'] = _ApiClient["default"].convertToType(data['same-password'], 'String'); } - } - break; - } - } -} + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } -/***/ }), + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } -/***/ 8448: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } -const ANY = Symbol('SemVer ANY') -// hoisted class for cyclic dependency -class Comparator { - static get ANY () { - return ANY - } + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } - constructor (comp, options) { - options = parseOptions(options) + if (data.hasOwnProperty('secure-access-ssh-user')) { + obj['secure-access-ssh-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-user'], 'String'); + } - if (comp instanceof Comparator) { - if (comp.loose === !!options.loose) { - return comp - } else { - comp = comp.value + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } } + + return obj; } + }]); - comp = comp.trim().split(/\s+/).join(' ') - debug('comparator', comp, options) - this.options = options - this.loose = !!options.loose - this.parse(comp) + return RotatedSecretUpdateSsh; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ - if (this.semver === ANY) { - this.value = '' - } else { - this.value = this.operator + this.semver.version - } - debug('comp', this) - } +RotatedSecretUpdateSsh.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ - parse (comp) { - const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR] - const m = comp.match(r) +RotatedSecretUpdateSsh.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ - if (!m) { - throw new TypeError(`Invalid comparator: ${comp}`) - } +RotatedSecretUpdateSsh.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ - this.operator = m[1] !== undefined ? m[1] : '' - if (this.operator === '=') { - this.operator = '' - } +RotatedSecretUpdateSsh.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ - // if it literally is just '>' or '' then allow anything. - if (!m[2]) { - this.semver = ANY - } else { - this.semver = new SemVer(m[2], this.options.loose) - } - } +RotatedSecretUpdateSsh.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - toString () { - return this.value - } +RotatedSecretUpdateSsh.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ - test (version) { - debug('Comparator.test', version, this.options.loose) +RotatedSecretUpdateSsh.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - if (this.semver === ANY || version === ANY) { - return true - } +RotatedSecretUpdateSsh.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ - if (typeof version === 'string') { - try { - version = new SemVer(version, this.options) - } catch (er) { - return false - } - } +RotatedSecretUpdateSsh.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ - return cmp(version, this.operator, this.semver, this.options) - } +RotatedSecretUpdateSsh.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ - intersects (comp, options) { - if (!(comp instanceof Comparator)) { - throw new TypeError('a Comparator is required') - } +RotatedSecretUpdateSsh.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ - if (this.operator === '') { - if (this.value === '') { - return true - } - return new Range(comp.value, options).test(this.value) - } else if (comp.operator === '') { - if (comp.value === '') { - return true - } - return new Range(this.value, options).test(comp.semver) - } +RotatedSecretUpdateSsh.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ - options = parseOptions(options) +RotatedSecretUpdateSsh.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ - // Special cases where nothing can possibly be lower - if (options.includePrerelease && - (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) { - return false - } - if (!options.includePrerelease && - (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) { - return false - } +RotatedSecretUpdateSsh.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ - // Same direction increasing (> or >=) - if (this.operator.startsWith('>') && comp.operator.startsWith('>')) { - return true - } - // Same direction decreasing (< or <=) - if (this.operator.startsWith('<') && comp.operator.startsWith('<')) { - return true - } - // same SemVer and both sides are inclusive (<= or >=) - if ( - (this.semver.version === comp.semver.version) && - this.operator.includes('=') && comp.operator.includes('=')) { - return true - } - // opposite directions less than - if (cmp(this.semver, '<', comp.semver, options) && - this.operator.startsWith('>') && comp.operator.startsWith('<')) { - return true - } - // opposite directions greater than - if (cmp(this.semver, '>', comp.semver, options) && - this.operator.startsWith('<') && comp.operator.startsWith('>')) { - return true - } - return false - } -} +RotatedSecretUpdateSsh.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ -module.exports = Comparator +RotatedSecretUpdateSsh.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ -const parseOptions = __nccwpck_require__(16555) -const { safeRe: re, t } = __nccwpck_require__(55862) -const cmp = __nccwpck_require__(84255) -const debug = __nccwpck_require__(55003) -const SemVer = __nccwpck_require__(65412) -const Range = __nccwpck_require__(34967) +RotatedSecretUpdateSsh.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ +RotatedSecretUpdateSsh.prototype['rotation-interval'] = undefined; +/** + * Custom rotation command + * @member {String} rotator-custom-cmd + */ -/***/ }), +RotatedSecretUpdateSsh.prototype['rotator-custom-cmd'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ -/***/ 34967: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +RotatedSecretUpdateSsh.prototype['rotator-type'] = undefined; +/** + * Rotate same password for each host from the Linked Target (relevant only for Linked Target) + * @member {String} same-password + */ -"use strict"; +RotatedSecretUpdateSsh.prototype['same-password'] = undefined; +/** + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false + */ +RotatedSecretUpdateSsh.prototype['secure-access-allow-external-user'] = false; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ -const SPACE_CHARACTERS = /\s+/g +RotatedSecretUpdateSsh.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ -// hoisted class for cyclic dependency -class Range { - constructor (range, options) { - options = parseOptions(options) +RotatedSecretUpdateSsh.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ - if (range instanceof Range) { - if ( - range.loose === !!options.loose && - range.includePrerelease === !!options.includePrerelease - ) { - return range - } else { - return new Range(range.raw, options) - } - } +RotatedSecretUpdateSsh.prototype['secure-access-host'] = undefined; +/** + * Default domain name server. i.e. microsoft.com + * @member {String} secure-access-rdp-domain + */ - if (range instanceof Comparator) { - // just put it in the set and return - this.raw = range.value - this.set = [[range]] - this.formatted = undefined - return this - } +RotatedSecretUpdateSsh.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ - this.options = options - this.loose = !!options.loose - this.includePrerelease = !!options.includePrerelease +RotatedSecretUpdateSsh.prototype['secure-access-rdp-user'] = undefined; +/** + * Override the SSH username as indicated in SSH Certificate Issuer + * @member {String} secure-access-ssh-user + */ - // First reduce all whitespace as much as possible so we do not have to rely - // on potentially slow regexes like \s*. This is then stored and used for - // future error messages as well. - this.raw = range.trim().replace(SPACE_CHARACTERS, ' ') +RotatedSecretUpdateSsh.prototype['secure-access-ssh-user'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - // First, split on || - this.set = this.raw - .split('||') - // map the range to a 2d array of comparators - .map(r => this.parseRange(r.trim())) - // throw out any comparator lists that are empty - // this generally means that it was not a valid range, which is allowed - // in loose mode, but will still throw if the WHOLE range is invalid. - .filter(c => c.length) +RotatedSecretUpdateSsh.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - if (!this.set.length) { - throw new TypeError(`Invalid SemVer Range: ${this.raw}`) - } +RotatedSecretUpdateSsh.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateSsh; +exports["default"] = _default; - // if we have any that are not the null set, throw out null sets. - if (this.set.length > 1) { - // keep the first one, in case they're all null sets - const first = this.set[0] - this.set = this.set.filter(c => !isNullSet(c[0])) - if (this.set.length === 0) { - this.set = [first] - } else if (this.set.length > 1) { - // if we have any that are *, then the range is just * - for (const c of this.set) { - if (c.length === 1 && isAny(c[0])) { - this.set = [c] - break - } - } - } - } +/***/ }), - this.formatted = undefined - } +/***/ 97749: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - get range () { - if (this.formatted === undefined) { - this.formatted = '' - for (let i = 0; i < this.set.length; i++) { - if (i > 0) { - this.formatted += '||' - } - const comps = this.set[i] - for (let k = 0; k < comps.length; k++) { - if (k > 0) { - this.formatted += ' ' - } - this.formatted += comps[k].toString().trim() - } - } - } - return this.formatted - } +"use strict"; - format () { - return this.range - } - toString () { - return this.range - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - parseRange (range) { - // memoize range parsing for performance. - // this is a very hot path, and fully deterministic. - const memoOpts = - (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | - (this.options.loose && FLAG_LOOSE) - const memoKey = memoOpts + ':' + range - const cached = cache.get(memoKey) - if (cached) { - return cached - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - const loose = this.options.loose - // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` - const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE] - range = range.replace(hr, hyphenReplace(this.options.includePrerelease)) - debug('hyphen replace', range) +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` - range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace) - debug('comparator trim', range) +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // `~ 1.2.3` => `~1.2.3` - range = range.replace(re[t.TILDETRIM], tildeTrimReplace) - debug('tilde trim', range) +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // `^ 1.2.3` => `^1.2.3` - range = range.replace(re[t.CARETTRIM], caretTrimReplace) - debug('caret trim', range) +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // At this point, the range is completely trimmed and - // ready to be split into comparators. +/** + * The RotatedSecretUpdateWindows model module. + * @module model/RotatedSecretUpdateWindows + * @version 3.6.3 + */ +var RotatedSecretUpdateWindows = /*#__PURE__*/function () { + /** + * Constructs a new RotatedSecretUpdateWindows. + * @alias module:model/RotatedSecretUpdateWindows + * @param name {String} Rotated secret name + * @param rotatorType {String} The rotator type. options: [target/password] + */ + function RotatedSecretUpdateWindows(name, rotatorType) { + _classCallCheck(this, RotatedSecretUpdateWindows); - let rangeList = range - .split(' ') - .map(comp => parseComparator(comp, this.options)) - .join(' ') - .split(/\s+/) - // >=0.0.0 is equivalent to * - .map(comp => replaceGTE0(comp, this.options)) + RotatedSecretUpdateWindows.initialize(this, name, rotatorType); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (loose) { - // in loose mode, throw out any that are not valid comparators - rangeList = rangeList.filter(comp => { - debug('loose invalid filter', comp, this.options) - return !!comp.match(re[t.COMPARATORLOOSE]) - }) - } - debug('range list', rangeList) - // if any comparators are the null set, then replace with JUST null set - // if more than one comparator, remove any * comparators - // also, don't include the same comparator more than once - const rangeMap = new Map() - const comparators = rangeList.map(comp => new Comparator(comp, this.options)) - for (const comp of comparators) { - if (isNullSet(comp)) { - return [comp] - } - rangeMap.set(comp.value, comp) - } - if (rangeMap.size > 1 && rangeMap.has('')) { - rangeMap.delete('') + _createClass(RotatedSecretUpdateWindows, null, [{ + key: "initialize", + value: function initialize(obj, name, rotatorType) { + obj['name'] = name; + obj['rotator-type'] = rotatorType; } + /** + * Constructs a RotatedSecretUpdateWindows from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatedSecretUpdateWindows} obj Optional instance to populate. + * @return {module:model/RotatedSecretUpdateWindows} The populated RotatedSecretUpdateWindows instance. + */ - const result = [...rangeMap.values()] - cache.set(memoKey, result) - return result - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatedSecretUpdateWindows(); - intersects (range, options) { - if (!(range instanceof Range)) { - throw new TypeError('a Range is required') - } + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } - return this.set.some((thisComparators) => { - return ( - isSatisfiable(thisComparators, options) && - range.set.some((rangeComparators) => { - return ( - isSatisfiable(rangeComparators, options) && - thisComparators.every((thisComparator) => { - return rangeComparators.every((rangeComparator) => { - return thisComparator.intersects(rangeComparator, options) - }) - }) - ) - }) - ) - }) - } + if (data.hasOwnProperty('authentication-credentials')) { + obj['authentication-credentials'] = _ApiClient["default"].convertToType(data['authentication-credentials'], 'String'); + } - // if ANY of the sets match ALL of its comparators, then pass - test (version) { - if (!version) { - return false - } + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); + } - if (typeof version === 'string') { - try { - version = new SemVer(version, this.options) - } catch (er) { - return false - } - } + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } - for (let i = 0; i < this.set.length; i++) { - if (testSet(this.set[i], version, this.options)) { - return true - } - } - return false - } -} + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -module.exports = Range + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -const LRU = __nccwpck_require__(81290) -const cache = new LRU() + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -const parseOptions = __nccwpck_require__(16555) -const Comparator = __nccwpck_require__(8448) -const debug = __nccwpck_require__(55003) -const SemVer = __nccwpck_require__(65412) -const { - safeRe: re, - t, - comparatorTrimReplace, - tildeTrimReplace, - caretTrimReplace, -} = __nccwpck_require__(55862) -const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = __nccwpck_require__(95994) + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -const isNullSet = c => c.value === '<0.0.0-0' -const isAny = c => c.value === '' + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -// take a set of comparators and determine whether there -// exists a version which can satisfy it -const isSatisfiable = (comparators, options) => { - let result = true - const remainingComparators = comparators.slice() - let testComparator = remainingComparators.pop() + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - while (result && remainingComparators.length) { - result = remainingComparators.every((otherComparator) => { - return testComparator.intersects(otherComparator, options) - }) + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - testComparator = remainingComparators.pop() - } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'String'); + } - return result -} + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } -// comprised of xranges, tildes, stars, and gtlt's at this point. -// already replaced the hyphen ranges -// turn into a set of JUST comparators. -const parseComparator = (comp, options) => { - comp = comp.replace(re[t.BUILD], '') - debug('comp', comp, options) - comp = replaceCarets(comp, options) - debug('caret', comp) - comp = replaceTildes(comp, options) - debug('tildes', comp) - comp = replaceXRanges(comp, options) - debug('xrange', comp) - comp = replaceStars(comp, options) - debug('stars', comp) - return comp -} + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -const isX = id => !id || id.toLowerCase() === 'x' || id === '*' + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -// ~, ~> --> * (any, kinda silly) -// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0 -// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0 -// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0 -// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0 -// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0 -// ~0.0.1 --> >=0.0.1 <0.1.0-0 -const replaceTildes = (comp, options) => { - return comp - .trim() - .split(/\s+/) - .map((c) => replaceTilde(c, options)) - .join(' ') -} + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); + } -const replaceTilde = (comp, options) => { - const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE] - return comp.replace(r, (_, M, m, p, pr) => { - debug('tilde', comp, _, M, m, p, pr) - let ret + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } - if (isX(M)) { - ret = '' - } else if (isX(m)) { - ret = `>=${M}.0.0 <${+M + 1}.0.0-0` - } else if (isX(p)) { - // ~1.2 == >=1.2.0 <1.3.0-0 - ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0` - } else if (pr) { - debug('replaceTilde pr', pr) - ret = `>=${M}.${m}.${p}-${pr - } <${M}.${+m + 1}.0-0` - } else { - // ~1.2.3 == >=1.2.3 <1.3.0-0 - ret = `>=${M}.${m}.${p - } <${M}.${+m + 1}.0-0` - } + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - debug('tilde return', ret) - return ret - }) -} + if (data.hasOwnProperty('rotator-type')) { + obj['rotator-type'] = _ApiClient["default"].convertToType(data['rotator-type'], 'String'); + } -// ^ --> * (any, kinda silly) -// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0 -// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0 -// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0 -// ^1.2.3 --> >=1.2.3 <2.0.0-0 -// ^1.2.0 --> >=1.2.0 <2.0.0-0 -// ^0.0.1 --> >=0.0.1 <0.0.2-0 -// ^0.1.0 --> >=0.1.0 <0.2.0-0 -const replaceCarets = (comp, options) => { - return comp - .trim() - .split(/\s+/) - .map((c) => replaceCaret(c, options)) - .join(' ') -} + if (data.hasOwnProperty('same-password')) { + obj['same-password'] = _ApiClient["default"].convertToType(data['same-password'], 'String'); + } -const replaceCaret = (comp, options) => { - debug('caret', comp, options) - const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET] - const z = options.includePrerelease ? '-0' : '' - return comp.replace(r, (_, M, m, p, pr) => { - debug('caret', comp, _, M, m, p, pr) - let ret + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } - if (isX(M)) { - ret = '' - } else if (isX(m)) { - ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0` - } else if (isX(p)) { - if (M === '0') { - ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0` - } else { - ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0` - } - } else if (pr) { - debug('replaceCaret pr', pr) - if (M === '0') { - if (m === '0') { - ret = `>=${M}.${m}.${p}-${pr - } <${M}.${m}.${+p + 1}-0` - } else { - ret = `>=${M}.${m}.${p}-${pr - } <${M}.${+m + 1}.0-0` + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } + + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } + + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } + + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - } else { - ret = `>=${M}.${m}.${p}-${pr - } <${+M + 1}.0.0-0` - } - } else { - debug('no pr') - if (M === '0') { - if (m === '0') { - ret = `>=${M}.${m}.${p - }${z} <${M}.${m}.${+p + 1}-0` - } else { - ret = `>=${M}.${m}.${p - }${z} <${M}.${+m + 1}.0-0` + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - } else { - ret = `>=${M}.${m}.${p - } <${+M + 1}.0.0-0` } + + return obj; } + }]); - debug('caret return', ret) - return ret - }) -} + return RotatedSecretUpdateWindows; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ -const replaceXRanges = (comp, options) => { - debug('replaceXRanges', comp, options) - return comp - .split(/\s+/) - .map((c) => replaceXRange(c, options)) - .join(' ') -} -const replaceXRange = (comp, options) => { - comp = comp.trim() - const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE] - return comp.replace(r, (ret, gtlt, M, m, p, pr) => { - debug('xRange', comp, ret, gtlt, M, m, p, pr) - const xM = isX(M) - const xm = xM || isX(m) - const xp = xm || isX(p) - const anyX = xp +RotatedSecretUpdateWindows.prototype['add-tag'] = undefined; +/** + * The credentials to connect with use-user-creds/use-target-creds + * @member {String} authentication-credentials + * @default 'use-user-creds' + */ - if (gtlt === '=' && anyX) { - gtlt = '' - } +RotatedSecretUpdateWindows.prototype['authentication-credentials'] = 'use-user-creds'; +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate + */ - // if we're including prereleases in the match, then we need - // to fix this to -0, the lowest possible prerelease value - pr = options.includePrerelease ? '-0' : '' +RotatedSecretUpdateWindows.prototype['auto-rotate'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ - if (xM) { - if (gtlt === '>' || gtlt === '<') { - // nothing is allowed - ret = '<0.0.0-0' - } else { - // nothing is forbidden - ret = '*' - } - } else if (gtlt && anyX) { - // we know patch is an x, because we have any x at all. - // replace X with 0 - if (xm) { - m = 0 - } - p = 0 +RotatedSecretUpdateWindows.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ - if (gtlt === '>') { - // >1 => >=2.0.0 - // >1.2 => >=1.3.0 - gtlt = '>=' - if (xm) { - M = +M + 1 - m = 0 - p = 0 - } else { - m = +m + 1 - p = 0 - } - } else if (gtlt === '<=') { - // <=0.7.x is actually <0.8.0, since any 0.7.x should - // pass. Similarly, <=7.x is actually <8.0.0, etc. - gtlt = '<' - if (xm) { - M = +M + 1 - } else { - m = +m + 1 - } - } +RotatedSecretUpdateWindows.prototype['description'] = 'default_metadata'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - if (gtlt === '<') { - pr = '-0' - } +RotatedSecretUpdateWindows.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ - ret = `${gtlt + M}.${m}.${p}${pr}` - } else if (xm) { - ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0` - } else if (xp) { - ret = `>=${M}.${m}.0${pr - } <${M}.${+m + 1}.0-0` - } +RotatedSecretUpdateWindows.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - debug('xRange return', ret) +RotatedSecretUpdateWindows.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ - return ret - }) -} +RotatedSecretUpdateWindows.prototype['max-versions'] = undefined; +/** + * Rotated secret name + * @member {String} name + */ -// Because * is AND-ed with everything else in the comparator, -// and '' means "any version", just remove the *s entirely. -const replaceStars = (comp, options) => { - debug('replaceStars', comp, options) - // Looseness is ignored here. star is always as loose as it gets! - return comp - .trim() - .replace(re[t.STAR], '') -} +RotatedSecretUpdateWindows.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ -const replaceGTE0 = (comp, options) => { - debug('replaceGTE0', comp, options) - return comp - .trim() - .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '') -} +RotatedSecretUpdateWindows.prototype['new-name'] = undefined; +/** + * The length of the password to be generated + * @member {String} password-length + */ -// This function is passed to string.replace(re[t.HYPHENRANGE]) -// M, m, patch, prerelease, build -// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 -// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do -// 1.2 - 3.4 => >=1.2.0 <3.5.0-0 -// TODO build? -const hyphenReplace = incPr => ($0, - from, fM, fm, fp, fpr, fb, - to, tM, tm, tp, tpr) => { - if (isX(fM)) { - from = '' - } else if (isX(fm)) { - from = `>=${fM}.0.0${incPr ? '-0' : ''}` - } else if (isX(fp)) { - from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}` - } else if (fpr) { - from = `>=${from}` - } else { - from = `>=${from}${incPr ? '-0' : ''}` - } +RotatedSecretUpdateWindows.prototype['password-length'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ - if (isX(tM)) { - to = '' - } else if (isX(tm)) { - to = `<${+tM + 1}.0.0-0` - } else if (isX(tp)) { - to = `<${tM}.${+tm + 1}.0-0` - } else if (tpr) { - to = `<=${tM}.${tm}.${tp}-${tpr}` - } else if (incPr) { - to = `<${tM}.${tm}.${+tp + 1}-0` - } else { - to = `<=${to}` - } +RotatedSecretUpdateWindows.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ - return `${from} ${to}`.trim() -} +RotatedSecretUpdateWindows.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password (relevant only for rotator-type=password) + * @member {String} rotated-password + */ -const testSet = (set, version, options) => { - for (let i = 0; i < set.length; i++) { - if (!set[i].test(version)) { - return false - } - } +RotatedSecretUpdateWindows.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password) + * @member {String} rotated-username + */ - if (version.prerelease.length && !options.includePrerelease) { - // Find the set of versions that are allowed to have prereleases - // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0 - // That should allow `1.2.3-pr.2` to pass. - // However, `1.2.4-alpha.notready` should NOT be allowed, - // even though it's within the range set by the comparators. - for (let i = 0; i < set.length; i++) { - debug(set[i].semver) - if (set[i].semver === Comparator.ANY) { - continue - } +RotatedSecretUpdateWindows.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ - if (set[i].semver.prerelease.length > 0) { - const allowed = set[i].semver - if (allowed.major === version.major && - allowed.minor === version.minor && - allowed.patch === version.patch) { - return true - } - } - } +RotatedSecretUpdateWindows.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (1-365) + * @member {String} rotation-interval + */ - // Version has a -pre, but it's not one of the ones we like. - return false - } +RotatedSecretUpdateWindows.prototype['rotation-interval'] = undefined; +/** + * The rotator type. options: [target/password] + * @member {String} rotator-type + */ - return true -} +RotatedSecretUpdateWindows.prototype['rotator-type'] = undefined; +/** + * Rotate same password for each host from the Linked Target (relevant only for Linked Target) + * @member {String} same-password + */ + +RotatedSecretUpdateWindows.prototype['same-password'] = undefined; +/** + * Allow providing external user for a domain users + * @member {Boolean} secure-access-allow-external-user + * @default false + */ + +RotatedSecretUpdateWindows.prototype['secure-access-allow-external-user'] = false; +/** + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable + */ + +RotatedSecretUpdateWindows.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ + +RotatedSecretUpdateWindows.prototype['secure-access-host'] = undefined; +/** + * Default domain name server. i.e. microsoft.com + * @member {String} secure-access-rdp-domain + */ + +RotatedSecretUpdateWindows.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ + +RotatedSecretUpdateWindows.prototype['secure-access-rdp-user'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +RotatedSecretUpdateWindows.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +RotatedSecretUpdateWindows.prototype['uid-token'] = undefined; +var _default = RotatedSecretUpdateWindows; +exports["default"] = _default; /***/ }), -/***/ 65412: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 41987: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -const debug = __nccwpck_require__(55003) -const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nccwpck_require__(95994) -const { safeRe: re, t } = __nccwpck_require__(55862) +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -const parseOptions = __nccwpck_require__(16555) -const { compareIdentifiers } = __nccwpck_require__(73523) -class SemVer { - constructor (version, options) { - options = parseOptions(options) +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (version instanceof SemVer) { - if (version.loose === !!options.loose && - version.includePrerelease === !!options.includePrerelease) { - return version - } else { - version = version.version - } - } else if (typeof version !== 'string') { - throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`) - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (version.length > MAX_LENGTH) { - throw new TypeError( - `version is longer than ${MAX_LENGTH} characters` - ) - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - debug('SemVer', version, options) - this.options = options - this.loose = !!options.loose - // this isn't actually relevant for versions, but keep it so that we - // don't run into trouble passing this.options around. - this.includePrerelease = !!options.includePrerelease +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]) +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (!m) { - throw new TypeError(`Invalid Version: ${version}`) - } +/** + * The RotationSecretMaxInterval model module. + * @module model/RotationSecretMaxInterval + * @version 3.6.3 + */ +var RotationSecretMaxInterval = /*#__PURE__*/function () { + /** + * Constructs a new RotationSecretMaxInterval. + * @alias module:model/RotationSecretMaxInterval + */ + function RotationSecretMaxInterval() { + _classCallCheck(this, RotationSecretMaxInterval); - this.raw = version + RotationSecretMaxInterval.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // these are actually numbers - this.major = +m[1] - this.minor = +m[2] - this.patch = +m[3] - if (this.major > MAX_SAFE_INTEGER || this.major < 0) { - throw new TypeError('Invalid major version') - } + _createClass(RotationSecretMaxInterval, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a RotationSecretMaxInterval from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotationSecretMaxInterval} obj Optional instance to populate. + * @return {module:model/RotationSecretMaxInterval} The populated RotationSecretMaxInterval instance. + */ - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { - throw new TypeError('Invalid minor version') - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotationSecretMaxInterval(); - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { - throw new TypeError('Invalid patch version') - } + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'Boolean'); + } - // numberify any prerelease numeric ids - if (!m[4]) { - this.prerelease = [] - } else { - this.prerelease = m[4].split('.').map((id) => { - if (/^[0-9]+$/.test(id)) { - const num = +id - if (num >= 0 && num < MAX_SAFE_INTEGER) { - return num - } + if (data.hasOwnProperty('max_interval_by_days')) { + obj['max_interval_by_days'] = _ApiClient["default"].convertToType(data['max_interval_by_days'], 'Number'); } - return id - }) + } + + return obj; } + }]); - this.build = m[5] ? m[5].split('.') : [] - this.format() - } + return RotationSecretMaxInterval; +}(); +/** + * @member {Boolean} enable + */ - format () { - this.version = `${this.major}.${this.minor}.${this.patch}` - if (this.prerelease.length) { - this.version += `-${this.prerelease.join('.')}` - } - return this.version - } - toString () { - return this.version - } +RotationSecretMaxInterval.prototype['enable'] = undefined; +/** + * @member {Number} max_interval_by_days + */ - compare (other) { - debug('SemVer.compare', this.version, this.options, other) - if (!(other instanceof SemVer)) { - if (typeof other === 'string' && other === this.version) { - return 0 - } - other = new SemVer(other, this.options) - } +RotationSecretMaxInterval.prototype['max_interval_by_days'] = undefined; +var _default = RotationSecretMaxInterval; +exports["default"] = _default; - if (other.version === this.version) { - return 0 - } +/***/ }), - return this.compareMain(other) || this.comparePre(other) - } +/***/ 98559: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - compareMain (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } +"use strict"; - if (this.major < other.major) { - return -1 - } - if (this.major > other.major) { - return 1 - } - if (this.minor < other.minor) { - return -1 - } - if (this.minor > other.minor) { - return 1 - } - if (this.patch < other.patch) { - return -1 - } - if (this.patch > other.patch) { - return 1 - } - return 0 - } - comparePre (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // NOT having a prerelease is > having one - if (this.prerelease.length && !other.prerelease.length) { - return -1 - } else if (!this.prerelease.length && other.prerelease.length) { - return 1 - } else if (!this.prerelease.length && !other.prerelease.length) { - return 0 - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - let i = 0 - do { - const a = this.prerelease[i] - const b = other.prerelease[i] - debug('prerelease compare', i, a, b) - if (a === undefined && b === undefined) { - return 0 - } else if (b === undefined) { - return 1 - } else if (a === undefined) { - return -1 - } else if (a === b) { - continue - } else { - return compareIdentifiers(a, b) - } - } while (++i) - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - compareBuild (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - let i = 0 - do { - const a = this.build[i] - const b = other.build[i] - debug('build compare', i, a, b) - if (a === undefined && b === undefined) { - return 0 - } else if (b === undefined) { - return 1 - } else if (a === undefined) { - return -1 - } else if (a === b) { - continue - } else { - return compareIdentifiers(a, b) - } - } while (++i) +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Rotator model module. + * @module model/Rotator + * @version 3.6.3 + */ +var Rotator = /*#__PURE__*/function () { + /** + * Constructs a new Rotator. + * @alias module:model/Rotator + */ + function Rotator() { + _classCallCheck(this, Rotator); + + Rotator.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // preminor will bump the version up to the next minor release, and immediately - // down to pre-release. premajor and prepatch work the same way. - inc (release, identifier, identifierBase) { - if (release.startsWith('pre')) { - if (!identifier && identifierBase === false) { - throw new Error('invalid increment argument: identifier is empty') - } - // Avoid an invalid semver results - if (identifier) { - const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]) - if (!match || match[1] !== identifier) { - throw new Error(`invalid identifier: ${identifier}`) - } - } - } - switch (release) { - case 'premajor': - this.prerelease.length = 0 - this.patch = 0 - this.minor = 0 - this.major++ - this.inc('pre', identifier, identifierBase) - break - case 'preminor': - this.prerelease.length = 0 - this.patch = 0 - this.minor++ - this.inc('pre', identifier, identifierBase) - break - case 'prepatch': - // If this is already a prerelease, it will bump to the next version - // drop any prereleases that might already exist, since they are not - // relevant at this point. - this.prerelease.length = 0 - this.inc('patch', identifier, identifierBase) - this.inc('pre', identifier, identifierBase) - break - // If the input is a non-prerelease version, this acts the same as - // prepatch. - case 'prerelease': - if (this.prerelease.length === 0) { - this.inc('patch', identifier, identifierBase) - } - this.inc('pre', identifier, identifierBase) - break - case 'release': - if (this.prerelease.length === 0) { - throw new Error(`version ${this.raw} is not a prerelease`) - } - this.prerelease.length = 0 - break + _createClass(Rotator, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Rotator from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Rotator} obj Optional instance to populate. + * @return {module:model/Rotator} The populated Rotator instance. + */ - case 'major': - // If this is a pre-major version, bump up to the same major version. - // Otherwise increment major. - // 1.0.0-5 bumps to 1.0.0 - // 1.1.0 bumps to 2.0.0 - if ( - this.minor !== 0 || - this.patch !== 0 || - this.prerelease.length === 0 - ) { - this.major++ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Rotator(); + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); } - this.minor = 0 - this.patch = 0 - this.prerelease = [] - break - case 'minor': - // If this is a pre-minor version, bump up to the same minor version. - // Otherwise increment minor. - // 1.2.0-5 bumps to 1.2.0 - // 1.2.1 bumps to 1.3.0 - if (this.patch !== 0 || this.prerelease.length === 0) { - this.minor++ + + if (data.hasOwnProperty('last_error')) { + obj['last_error'] = _ApiClient["default"].convertToType(data['last_error'], 'String'); } - this.patch = 0 - this.prerelease = [] - break - case 'patch': - // If this is not a pre-release version, it will increment the patch. - // If it is a pre-release it will bump up to the same patch version. - // 1.2.0-5 patches to 1.2.0 - // 1.2.0 patches to 1.2.1 - if (this.prerelease.length === 0) { - this.patch++ + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - this.prerelease = [] - break - // This probably shouldn't be used publicly. - // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction. - case 'pre': { - const base = Number(identifierBase) ? 1 : 0 - if (this.prerelease.length === 0) { - this.prerelease = [base] - } else { - let i = this.prerelease.length - while (--i >= 0) { - if (typeof this.prerelease[i] === 'number') { - this.prerelease[i]++ - i = -2 - } - } - if (i === -1) { - // didn't increment anything - if (identifier === this.prerelease.join('.') && identifierBase === false) { - throw new Error('invalid increment argument: identifier already exists') - } - this.prerelease.push(base) - } + if (data.hasOwnProperty('rotation_interval')) { + obj['rotation_interval'] = _ApiClient["default"].convertToType(data['rotation_interval'], 'Number'); } - if (identifier) { - // 1.2.0-beta.1 bumps to 1.2.0-beta.2, - // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 - let prerelease = [identifier, base] - if (identifierBase === false) { - prerelease = [identifier] - } - if (compareIdentifiers(this.prerelease[0], identifier) === 0) { - if (isNaN(this.prerelease[1])) { - this.prerelease = prerelease - } - } else { - this.prerelease = prerelease - } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); } - break } - default: - throw new Error(`invalid increment argument: ${release}`) - } - this.raw = this.format() - if (this.build.length) { - this.raw += `+${this.build.join('.')}` + + return obj; } - return this - } -} + }]); -module.exports = SemVer + return Rotator; +}(); +/** + * @member {Number} id + */ + + +Rotator.prototype['id'] = undefined; +/** + * @member {String} last_error + */ + +Rotator.prototype['last_error'] = undefined; +/** + * @member {String} name + */ + +Rotator.prototype['name'] = undefined; +/** + * @member {Number} rotation_interval + */ + +Rotator.prototype['rotation_interval'] = undefined; +/** + * @member {String} type + */ +Rotator.prototype['type'] = undefined; +var _default = Rotator; +exports["default"] = _default; /***/ }), -/***/ 3830: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 37665: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -const parse = __nccwpck_require__(86928) -const clean = (version, options) => { - const s = parse(version.trim().replace(/^[=v]+/, ''), options) - return s ? s.version : null -} -module.exports = clean +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ }), +var _Rotator = _interopRequireDefault(__nccwpck_require__(98559)); -/***/ 84255: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -"use strict"; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -const eq = __nccwpck_require__(86081) -const neq = __nccwpck_require__(14527) -const gt = __nccwpck_require__(48460) -const gte = __nccwpck_require__(43577) -const lt = __nccwpck_require__(78467) -const lte = __nccwpck_require__(640) +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -const cmp = (a, op, b, loose) => { - switch (op) { - case '===': - if (typeof a === 'object') { - a = a.version - } - if (typeof b === 'object') { - b = b.version - } - return a === b +/** + * The RotatorsConfigPart model module. + * @module model/RotatorsConfigPart + * @version 3.6.3 + */ +var RotatorsConfigPart = /*#__PURE__*/function () { + /** + * Constructs a new RotatorsConfigPart. + * @alias module:model/RotatorsConfigPart + */ + function RotatorsConfigPart() { + _classCallCheck(this, RotatorsConfigPart); - case '!==': - if (typeof a === 'object') { - a = a.version - } - if (typeof b === 'object') { - b = b.version - } - return a !== b + RotatorsConfigPart.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - case '': - case '=': - case '==': - return eq(a, b, loose) - case '!=': - return neq(a, b, loose) + _createClass(RotatorsConfigPart, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a RotatorsConfigPart from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RotatorsConfigPart} obj Optional instance to populate. + * @return {module:model/RotatorsConfigPart} The populated RotatorsConfigPart instance. + */ - case '>': - return gt(a, b, loose) + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RotatorsConfigPart(); - case '>=': - return gte(a, b, loose) + if (data.hasOwnProperty('rotators')) { + obj['rotators'] = _ApiClient["default"].convertToType(data['rotators'], [_Rotator["default"]]); + } + } - case '<': - return lt(a, b, loose) + return obj; + } + }]); - case '<=': - return lte(a, b, loose) + return RotatorsConfigPart; +}(); +/** + * @member {Array.} rotators + */ - default: - throw new TypeError(`Invalid operator: ${op}`) - } -} -module.exports = cmp +RotatorsConfigPart.prototype['rotators'] = undefined; +var _default = RotatorsConfigPart; +exports["default"] = _default; /***/ }), -/***/ 20746: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 48396: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -const SemVer = __nccwpck_require__(65412) -const parse = __nccwpck_require__(86928) -const { safeRe: re, t } = __nccwpck_require__(55862) +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -const coerce = (version, options) => { - if (version instanceof SemVer) { - return version - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (typeof version === 'number') { - version = String(version) - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (typeof version !== 'string') { - return null +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The RuleAssigner model module. + * @module model/RuleAssigner + * @version 3.6.3 + */ +var RuleAssigner = /*#__PURE__*/function () { + /** + * Constructs a new RuleAssigner. + * @alias module:model/RuleAssigner + */ + function RuleAssigner() { + _classCallCheck(this, RuleAssigner); + + RuleAssigner.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - options = options || {} - let match = null - if (!options.rtl) { - match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]) - } else { - // Find the right-most coercible string that does not share - // a terminus with a more left-ward coercible string. - // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4' - // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4' - // - // Walk through the string checking with a /g regexp - // Manually set the index so as to pick up overlapping matches. - // Stop when we get a match that ends at the string end, since no - // coercible string can be more right-ward without the same terminus. - const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL] - let next - while ((next = coerceRtlRegex.exec(version)) && - (!match || match.index + match[0].length !== version.length) - ) { - if (!match || - next.index + next[0].length !== match.index + match[0].length) { - match = next + _createClass(RuleAssigner, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a RuleAssigner from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RuleAssigner} obj Optional instance to populate. + * @return {module:model/RuleAssigner} The populated RuleAssigner instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RuleAssigner(); + + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + + if (data.hasOwnProperty('unique_id')) { + obj['unique_id'] = _ApiClient["default"].convertToType(data['unique_id'], 'String'); + } } - coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length + + return obj; } - // leave it in a clean state - coerceRtlRegex.lastIndex = -1 - } + }]); - if (match === null) { - return null - } + return RuleAssigner; +}(); +/** + * @member {String} access_id + */ - const major = match[2] - const minor = match[3] || '0' - const patch = match[4] || '0' - const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : '' - const build = options.includePrerelease && match[6] ? `+${match[6]}` : '' - return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options) -} -module.exports = coerce +RuleAssigner.prototype['access_id'] = undefined; +/** + * @member {String} unique_id + */ +RuleAssigner.prototype['unique_id'] = undefined; +var _default = RuleAssigner; +exports["default"] = _default; /***/ }), -/***/ 95581: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 74529: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -const SemVer = __nccwpck_require__(65412) -const compareBuild = (a, b, loose) => { - const versionA = new SemVer(a, loose) - const versionB = new SemVer(b, loose) - return versionA.compare(versionB) || versionA.compareBuild(versionB) -} -module.exports = compareBuild +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); +var _PathRule = _interopRequireDefault(__nccwpck_require__(10929)); -/***/ }), +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ 31651: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -"use strict"; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -const compare = __nccwpck_require__(56176) -const compareLoose = (a, b) => compare(a, b, true) -module.exports = compareLoose +/** + * The Rules model module. + * @module model/Rules + * @version 3.6.3 + */ +var Rules = /*#__PURE__*/function () { + /** + * Constructs a new Rules. + * @alias module:model/Rules + */ + function Rules() { + _classCallCheck(this, Rules); + + Rules.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), + _createClass(Rules, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Rules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Rules} obj Optional instance to populate. + * @return {module:model/Rules} The populated Rules instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Rules(); + + if (data.hasOwnProperty('admin')) { + obj['admin'] = _ApiClient["default"].convertToType(data['admin'], 'Boolean'); + } -/***/ 56176: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('path_rules')) { + obj['path_rules'] = _ApiClient["default"].convertToType(data['path_rules'], [_PathRule["default"]]); + } + } -"use strict"; + return obj; + } + }]); + return Rules; +}(); +/** + * Is admin + * @member {Boolean} admin + */ -const SemVer = __nccwpck_require__(65412) -const compare = (a, b, loose) => - new SemVer(a, loose).compare(new SemVer(b, loose)) -module.exports = compare +Rules.prototype['admin'] = undefined; +/** + * The path the rules refers to + * @member {Array.} path_rules + */ +Rules.prototype['path_rules'] = undefined; +var _default = Rules; +exports["default"] = _default; /***/ }), -/***/ 38632: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 25540: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -const parse = __nccwpck_require__(86928) - -const diff = (version1, version2) => { - const v1 = parse(version1, null, true) - const v2 = parse(version2, null, true) - const comparison = v1.compare(v2) +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (comparison === 0) { - return null - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - const v1Higher = comparison > 0 - const highVersion = v1Higher ? v1 : v2 - const lowVersion = v1Higher ? v2 : v1 - const highHasPre = !!highVersion.prerelease.length - const lowHasPre = !!lowVersion.prerelease.length +var _SAMLAttribute = _interopRequireDefault(__nccwpck_require__(70045)); - if (lowHasPre && !highHasPre) { - // Going from prerelease -> no prerelease requires some special casing +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // If the low version has only a major, then it will always be a major - // Some examples: - // 1.0.0-1 -> 1.0.0 - // 1.0.0-1 -> 1.1.1 - // 1.0.0-1 -> 2.0.0 - if (!lowVersion.patch && !lowVersion.minor) { - return 'major' - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // If the main part has no difference - if (lowVersion.compareMain(highVersion) === 0) { - if (lowVersion.minor && !lowVersion.patch) { - return 'minor' - } - return 'patch' - } - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // add the `pre` prefix if we are going to a prerelease version - const prefix = highHasPre ? 'pre' : '' +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (v1.major !== v2.major) { - return prefix + 'major' - } +/** + * The SAMLAccessRules model module. + * @module model/SAMLAccessRules + * @version 3.6.3 + */ +var SAMLAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new SAMLAccessRules. + * @alias module:model/SAMLAccessRules + */ + function SAMLAccessRules() { + _classCallCheck(this, SAMLAccessRules); - if (v1.minor !== v2.minor) { - return prefix + 'minor' + SAMLAccessRules.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (v1.patch !== v2.patch) { - return prefix + 'patch' - } - // high and low are prereleases - return 'prerelease' -} + _createClass(SAMLAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SAMLAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SAMLAccessRules} obj Optional instance to populate. + * @return {module:model/SAMLAccessRules} The populated SAMLAccessRules instance. + */ -module.exports = diff + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SAMLAccessRules(); + if (data.hasOwnProperty('allowed_redirect_URIs')) { + obj['allowed_redirect_URIs'] = _ApiClient["default"].convertToType(data['allowed_redirect_URIs'], ['String']); + } -/***/ }), + if (data.hasOwnProperty('bound_attributes')) { + obj['bound_attributes'] = _ApiClient["default"].convertToType(data['bound_attributes'], [_SAMLAttribute["default"]]); + } -/***/ 86081: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('idp_metadata_url')) { + obj['idp_metadata_url'] = _ApiClient["default"].convertToType(data['idp_metadata_url'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('idp_metadata_xml')) { + obj['idp_metadata_xml'] = _ApiClient["default"].convertToType(data['idp_metadata_xml'], 'String'); + } + if (data.hasOwnProperty('unique_identifier')) { + obj['unique_identifier'] = _ApiClient["default"].convertToType(data['unique_identifier'], 'String'); + } + } -const compare = __nccwpck_require__(56176) -const eq = (a, b, loose) => compare(a, b, loose) === 0 -module.exports = eq + return obj; + } + }]); + return SAMLAccessRules; +}(); +/** + * Allowed redirect URIs after the authentication + * @member {Array.} allowed_redirect_URIs + */ -/***/ }), -/***/ 48460: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +SAMLAccessRules.prototype['allowed_redirect_URIs'] = undefined; +/** + * The attributes that login is restricted to. + * @member {Array.} bound_attributes + */ -"use strict"; +SAMLAccessRules.prototype['bound_attributes'] = undefined; +/** + * IDP metadata url + * @member {String} idp_metadata_url + */ +SAMLAccessRules.prototype['idp_metadata_url'] = undefined; +/** + * IDP metadata XML + * @member {String} idp_metadata_xml + */ -const compare = __nccwpck_require__(56176) -const gt = (a, b, loose) => compare(a, b, loose) > 0 -module.exports = gt +SAMLAccessRules.prototype['idp_metadata_xml'] = undefined; +/** + * A unique identifier to distinguish different users + * @member {String} unique_identifier + */ +SAMLAccessRules.prototype['unique_identifier'] = undefined; +var _default = SAMLAccessRules; +exports["default"] = _default; /***/ }), -/***/ 43577: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 70045: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -const compare = __nccwpck_require__(56176) -const gte = (a, b, loose) => compare(a, b, loose) >= 0 -module.exports = gte +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ }), +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ 49343: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -"use strict"; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -const SemVer = __nccwpck_require__(65412) +/** + * The SAMLAttribute model module. + * @module model/SAMLAttribute + * @version 3.6.3 + */ +var SAMLAttribute = /*#__PURE__*/function () { + /** + * Constructs a new SAMLAttribute. + * @alias module:model/SAMLAttribute + */ + function SAMLAttribute() { + _classCallCheck(this, SAMLAttribute); -const inc = (version, release, options, identifier, identifierBase) => { - if (typeof (options) === 'string') { - identifierBase = identifier - identifier = options - options = undefined + SAMLAttribute.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - try { - return new SemVer( - version instanceof SemVer ? version.version : version, - options - ).inc(release, identifier, identifierBase).version - } catch (er) { - return null - } -} -module.exports = inc + _createClass(SAMLAttribute, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SAMLAttribute from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SAMLAttribute} obj Optional instance to populate. + * @return {module:model/SAMLAttribute} The populated SAMLAttribute instance. + */ -/***/ }), + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SAMLAttribute(); -/***/ 78467: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('values')) { + obj['values'] = _ApiClient["default"].convertToType(data['values'], ['String']); + } + } + return obj; + } + }]); -const compare = __nccwpck_require__(56176) -const lt = (a, b, loose) => compare(a, b, loose) < 0 -module.exports = lt + return SAMLAttribute; +}(); +/** + * @member {String} name + */ + + +SAMLAttribute.prototype['name'] = undefined; +/** + * @member {Array.} values + */ +SAMLAttribute.prototype['values'] = undefined; +var _default = SAMLAttribute; +exports["default"] = _default; /***/ }), -/***/ 640: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 29238: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -const compare = __nccwpck_require__(56176) -const lte = (a, b, loose) => compare(a, b, loose) <= 0 -module.exports = lte +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ }), +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ 72186: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -"use strict"; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -const SemVer = __nccwpck_require__(65412) -const major = (a, loose) => new SemVer(a, loose).major -module.exports = major +/** + * The SSHCertificateIssueDetails model module. + * @module model/SSHCertificateIssueDetails + * @version 3.6.3 + */ +var SSHCertificateIssueDetails = /*#__PURE__*/function () { + /** + * Constructs a new SSHCertificateIssueDetails. + * @alias module:model/SSHCertificateIssueDetails + */ + function SSHCertificateIssueDetails() { + _classCallCheck(this, SSHCertificateIssueDetails); + SSHCertificateIssueDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), -/***/ 73566: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + _createClass(SSHCertificateIssueDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SSHCertificateIssueDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SSHCertificateIssueDetails} obj Optional instance to populate. + * @return {module:model/SSHCertificateIssueDetails} The populated SSHCertificateIssueDetails instance. + */ -"use strict"; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SSHCertificateIssueDetails(); + if (data.hasOwnProperty('allowed_domains')) { + obj['allowed_domains'] = _ApiClient["default"].convertToType(data['allowed_domains'], ['String']); + } -const SemVer = __nccwpck_require__(65412) -const minor = (a, loose) => new SemVer(a, loose).minor -module.exports = minor + if (data.hasOwnProperty('allowed_user_key_lengths')) { + obj['allowed_user_key_lengths'] = _ApiClient["default"].convertToType(data['allowed_user_key_lengths'], { + 'String': 'Number' + }); + } + if (data.hasOwnProperty('allowed_users')) { + obj['allowed_users'] = _ApiClient["default"].convertToType(data['allowed_users'], ['String']); + } -/***/ }), + if (data.hasOwnProperty('cert_type')) { + obj['cert_type'] = _ApiClient["default"].convertToType(data['cert_type'], 'Number'); + } -/***/ 14527: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('critical_options')) { + obj['critical_options'] = _ApiClient["default"].convertToType(data['critical_options'], { + 'String': 'String' + }); + } -"use strict"; + if (data.hasOwnProperty('extensions')) { + obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], { + 'String': 'String' + }); + } + if (data.hasOwnProperty('principals')) { + obj['principals'] = _ApiClient["default"].convertToType(data['principals'], ['String']); + } -const compare = __nccwpck_require__(56176) -const neq = (a, b, loose) => compare(a, b, loose) !== 0 -module.exports = neq + if (data.hasOwnProperty('static_key_id')) { + obj['static_key_id'] = _ApiClient["default"].convertToType(data['static_key_id'], 'String'); + } + } + return obj; + } + }]); -/***/ }), + return SSHCertificateIssueDetails; +}(); +/** + * Relevant for host certificate + * @member {Array.} allowed_domains + */ -/***/ 86928: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; +SSHCertificateIssueDetails.prototype['allowed_domains'] = undefined; +/** + * @member {Object.} allowed_user_key_lengths + */ +SSHCertificateIssueDetails.prototype['allowed_user_key_lengths'] = undefined; +/** + * Relevant for user certificate + * @member {Array.} allowed_users + */ -const SemVer = __nccwpck_require__(65412) -const parse = (version, options, throwErrors = false) => { - if (version instanceof SemVer) { - return version - } - try { - return new SemVer(version, options) - } catch (er) { - if (!throwErrors) { - return null - } - throw er - } -} +SSHCertificateIssueDetails.prototype['allowed_users'] = undefined; +/** + * @member {Number} cert_type + */ -module.exports = parse +SSHCertificateIssueDetails.prototype['cert_type'] = undefined; +/** + * @member {Object.} critical_options + */ + +SSHCertificateIssueDetails.prototype['critical_options'] = undefined; +/** + * @member {Object.} extensions + */ + +SSHCertificateIssueDetails.prototype['extensions'] = undefined; +/** + * @member {Array.} principals + */ + +SSHCertificateIssueDetails.prototype['principals'] = undefined; +/** + * In case it is empty, the key ID will be combination of user identifiers and a random string + * @member {String} static_key_id + */ +SSHCertificateIssueDetails.prototype['static_key_id'] = undefined; +var _default = SSHCertificateIssueDetails; +exports["default"] = _default; /***/ }), -/***/ 93021: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 615: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -const SemVer = __nccwpck_require__(65412) -const patch = (a, loose) => new SemVer(a, loose).patch -module.exports = patch +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ }), +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ 36577: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -"use strict"; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -const parse = __nccwpck_require__(86928) -const prerelease = (version, options) => { - const parsed = parse(version, options) - return (parsed && parsed.prerelease.length) ? parsed.prerelease : null -} -module.exports = prerelease +/** + * The SSHTargetDetails model module. + * @module model/SSHTargetDetails + * @version 3.6.3 + */ +var SSHTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new SSHTargetDetails. + * @alias module:model/SSHTargetDetails + */ + function SSHTargetDetails() { + _classCallCheck(this, SSHTargetDetails); + SSHTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), -/***/ 18594: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + _createClass(SSHTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SSHTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SSHTargetDetails} obj Optional instance to populate. + * @return {module:model/SSHTargetDetails} The populated SSHTargetDetails instance. + */ -"use strict"; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SSHTargetDetails(); + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } -const compare = __nccwpck_require__(56176) -const rcompare = (a, b, loose) => compare(b, a, loose) -module.exports = rcompare + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('private_key')) { + obj['private_key'] = _ApiClient["default"].convertToType(data['private_key'], 'String'); + } -/***/ 80565: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('private_key_password')) { + obj['private_key_password'] = _ApiClient["default"].convertToType(data['private_key_password'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + } + return obj; + } + }]); -const compareBuild = __nccwpck_require__(95581) -const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose)) -module.exports = rsort + return SSHTargetDetails; +}(); +/** + * @member {String} host + */ -/***/ }), +SSHTargetDetails.prototype['host'] = undefined; +/** + * @member {String} password + */ -/***/ 16278: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +SSHTargetDetails.prototype['password'] = undefined; +/** + * @member {String} port + */ -"use strict"; +SSHTargetDetails.prototype['port'] = undefined; +/** + * @member {String} private_key + */ +SSHTargetDetails.prototype['private_key'] = undefined; +/** + * @member {String} private_key_password + */ -const Range = __nccwpck_require__(34967) -const satisfies = (version, range, options) => { - try { - range = new Range(range, options) - } catch (er) { - return false - } - return range.test(version) -} -module.exports = satisfies +SSHTargetDetails.prototype['private_key_password'] = undefined; +/** + * @member {String} username + */ +SSHTargetDetails.prototype['username'] = undefined; +var _default = SSHTargetDetails; +exports["default"] = _default; /***/ }), -/***/ 38215: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 48590: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -const compareBuild = __nccwpck_require__(95581) -const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose)) -module.exports = sort - - -/***/ }), +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/***/ 6569: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -"use strict"; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -const parse = __nccwpck_require__(86928) -const valid = (version, options) => { - const v = parse(version, options) - return v ? v.version : null -} -module.exports = valid +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -/***/ }), +/** + * The SalesforceTargetDetails model module. + * @module model/SalesforceTargetDetails + * @version 3.6.3 + */ +var SalesforceTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new SalesforceTargetDetails. + * SalesforceTargetDetails + * @alias module:model/SalesforceTargetDetails + */ + function SalesforceTargetDetails() { + _classCallCheck(this, SalesforceTargetDetails); -/***/ 49749: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + SalesforceTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -"use strict"; + _createClass(SalesforceTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SalesforceTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SalesforceTargetDetails} obj Optional instance to populate. + * @return {module:model/SalesforceTargetDetails} The populated SalesforceTargetDetails instance. + */ -// just pre-load all the stuff that index.js lazily exports -const internalRe = __nccwpck_require__(55862) -const constants = __nccwpck_require__(95994) -const SemVer = __nccwpck_require__(65412) -const identifiers = __nccwpck_require__(73523) -const parse = __nccwpck_require__(86928) -const valid = __nccwpck_require__(6569) -const clean = __nccwpck_require__(3830) -const inc = __nccwpck_require__(49343) -const diff = __nccwpck_require__(38632) -const major = __nccwpck_require__(72186) -const minor = __nccwpck_require__(73566) -const patch = __nccwpck_require__(93021) -const prerelease = __nccwpck_require__(36577) -const compare = __nccwpck_require__(56176) -const rcompare = __nccwpck_require__(18594) -const compareLoose = __nccwpck_require__(31651) -const compareBuild = __nccwpck_require__(95581) -const sort = __nccwpck_require__(38215) -const rsort = __nccwpck_require__(80565) -const gt = __nccwpck_require__(48460) -const lt = __nccwpck_require__(78467) -const eq = __nccwpck_require__(86081) -const neq = __nccwpck_require__(14527) -const gte = __nccwpck_require__(43577) -const lte = __nccwpck_require__(640) -const cmp = __nccwpck_require__(84255) -const coerce = __nccwpck_require__(20746) -const Comparator = __nccwpck_require__(8448) -const Range = __nccwpck_require__(34967) -const satisfies = __nccwpck_require__(16278) -const toComparators = __nccwpck_require__(66959) -const maxSatisfying = __nccwpck_require__(48380) -const minSatisfying = __nccwpck_require__(71742) -const minVersion = __nccwpck_require__(20125) -const validRange = __nccwpck_require__(1634) -const outside = __nccwpck_require__(7203) -const gtr = __nccwpck_require__(99331) -const ltr = __nccwpck_require__(47022) -const intersects = __nccwpck_require__(71868) -const simplifyRange = __nccwpck_require__(73629) -const subset = __nccwpck_require__(33384) -module.exports = { - parse, - valid, - clean, - inc, - diff, - major, - minor, - patch, - prerelease, - compare, - rcompare, - compareLoose, - compareBuild, - sort, - rsort, - gt, - lt, - eq, - neq, - gte, - lte, - cmp, - coerce, - Comparator, - Range, - satisfies, - toComparators, - maxSatisfying, - minSatisfying, - minVersion, - validRange, - outside, - gtr, - ltr, - intersects, - simplifyRange, - subset, - SemVer, - re: internalRe.re, - src: internalRe.src, - tokens: internalRe.t, - SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION, - RELEASE_TYPES: constants.RELEASE_TYPES, - compareIdentifiers: identifiers.compareIdentifiers, - rcompareIdentifiers: identifiers.rcompareIdentifiers, -} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SalesforceTargetDetails(); + if (data.hasOwnProperty('app_private_key')) { + obj['app_private_key'] = _ApiClient["default"].convertToType(data['app_private_key'], ['Number']); + } -/***/ }), + if (data.hasOwnProperty('auth_flow')) { + obj['auth_flow'] = _ApiClient["default"].convertToType(data['auth_flow'], 'String'); + } -/***/ 95994: -/***/ ((module) => { + if (data.hasOwnProperty('ca_cert_data')) { + obj['ca_cert_data'] = _ApiClient["default"].convertToType(data['ca_cert_data'], ['Number']); + } -"use strict"; + if (data.hasOwnProperty('ca_cert_name')) { + obj['ca_cert_name'] = _ApiClient["default"].convertToType(data['ca_cert_name'], 'String'); + } + if (data.hasOwnProperty('client_id')) { + obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String'); + } -// Note: this is the semver.org version of the spec that it implements -// Not necessarily the package version of this code. -const SEMVER_SPEC_VERSION = '2.0.0' + if (data.hasOwnProperty('client_secret')) { + obj['client_secret'] = _ApiClient["default"].convertToType(data['client_secret'], 'String'); + } -const MAX_LENGTH = 256 -const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || -/* istanbul ignore next */ 9007199254740991 + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } -// Max safe segment length for coercion. -const MAX_SAFE_COMPONENT_LENGTH = 16 + if (data.hasOwnProperty('security_token')) { + obj['security_token'] = _ApiClient["default"].convertToType(data['security_token'], 'String'); + } -// Max safe length for a build identifier. The max length minus 6 characters for -// the shortest version with a build 0.0.0+BUILD. -const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6 + if (data.hasOwnProperty('tenant_url')) { + obj['tenant_url'] = _ApiClient["default"].convertToType(data['tenant_url'], 'String'); + } -const RELEASE_TYPES = [ - 'major', - 'premajor', - 'minor', - 'preminor', - 'patch', - 'prepatch', - 'prerelease', -] + if (data.hasOwnProperty('user_name')) { + obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], 'String'); + } + } -module.exports = { - MAX_LENGTH, - MAX_SAFE_COMPONENT_LENGTH, - MAX_SAFE_BUILD_LENGTH, - MAX_SAFE_INTEGER, - RELEASE_TYPES, - SEMVER_SPEC_VERSION, - FLAG_INCLUDE_PRERELEASE: 0b001, - FLAG_LOOSE: 0b010, -} + return obj; + } + }]); + return SalesforceTargetDetails; +}(); +/** + * params needed for jwt auth AppPrivateKey is the rsa private key in PEM format + * @member {Array.} app_private_key + */ -/***/ }), -/***/ 55003: -/***/ ((module) => { +SalesforceTargetDetails.prototype['app_private_key'] = undefined; +/** + * @member {String} auth_flow + */ -"use strict"; +SalesforceTargetDetails.prototype['auth_flow'] = undefined; +/** + * CACertData is the rsa 4096 certificate data in PEM format + * @member {Array.} ca_cert_data + */ +SalesforceTargetDetails.prototype['ca_cert_data'] = undefined; +/** + * CACertName is the name of the certificate in SalesForce tenant + * @member {String} ca_cert_name + */ -const debug = ( - typeof process === 'object' && - process.env && - process.env.NODE_DEBUG && - /\bsemver\b/i.test(process.env.NODE_DEBUG) -) ? (...args) => console.error('SEMVER', ...args) - : () => {} +SalesforceTargetDetails.prototype['ca_cert_name'] = undefined; +/** + * @member {String} client_id + */ -module.exports = debug +SalesforceTargetDetails.prototype['client_id'] = undefined; +/** + * params needed for password auth + * @member {String} client_secret + */ +SalesforceTargetDetails.prototype['client_secret'] = undefined; +/** + * @member {String} password + */ -/***/ }), +SalesforceTargetDetails.prototype['password'] = undefined; +/** + * @member {String} security_token + */ -/***/ 73523: -/***/ ((module) => { +SalesforceTargetDetails.prototype['security_token'] = undefined; +/** + * @member {String} tenant_url + */ -"use strict"; +SalesforceTargetDetails.prototype['tenant_url'] = undefined; +/** + * @member {String} user_name + */ +SalesforceTargetDetails.prototype['user_name'] = undefined; +var _default = SalesforceTargetDetails; +exports["default"] = _default; -const numeric = /^[0-9]+$/ -const compareIdentifiers = (a, b) => { - if (typeof a === 'number' && typeof b === 'number') { - return a === b ? 0 : a < b ? -1 : 1 - } +/***/ }), - const anum = numeric.test(a) - const bnum = numeric.test(b) +/***/ 39800: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (anum && bnum) { - a = +a - b = +b - } +"use strict"; - return a === b ? 0 - : (anum && !bnum) ? -1 - : (bnum && !anum) ? 1 - : a < b ? -1 - : 1 -} -const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a) +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -module.exports = { - compareIdentifiers, - rcompareIdentifiers, -} +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ }), +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/***/ 81290: -/***/ ((module) => { +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -"use strict"; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +/** + * The SecretInfo model module. + * @module model/SecretInfo + * @version 3.6.3 + */ +var SecretInfo = /*#__PURE__*/function () { + /** + * Constructs a new SecretInfo. + * @alias module:model/SecretInfo + */ + function SecretInfo() { + _classCallCheck(this, SecretInfo); -class LRUCache { - constructor () { - this.max = 1000 - this.map = new Map() + SecretInfo.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - get (key) { - const value = this.map.get(key) - if (value === undefined) { - return undefined - } else { - // Remove the key from the map and add it to the end - this.map.delete(key) - this.map.set(key, value) - return value - } - } - delete (key) { - return this.map.delete(key) - } + _createClass(SecretInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SecretInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SecretInfo} obj Optional instance to populate. + * @return {module:model/SecretInfo} The populated SecretInfo instance. + */ - set (key, value) { - const deleted = this.delete(key) + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SecretInfo(); - if (!deleted && value !== undefined) { - // If cache is full, delete the least recently used item - if (this.map.size >= this.max) { - const firstKey = this.map.keys().next().value - this.delete(firstKey) - } + if (data.hasOwnProperty('created')) { + obj['created'] = _ApiClient["default"].convertToType(data['created'], 'Date'); + } - this.map.set(key, value) - } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - return this - } -} + if (data.hasOwnProperty('expiration')) { + obj['expiration'] = _ApiClient["default"].convertToType(data['expiration'], 'Date'); + } -module.exports = LRUCache + if (data.hasOwnProperty('last_retrieved')) { + obj['last_retrieved'] = _ApiClient["default"].convertToType(data['last_retrieved'], 'Date'); + } + if (data.hasOwnProperty('location')) { + obj['location'] = _ApiClient["default"].convertToType(data['location'], Object); + } -/***/ }), + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -/***/ 16555: -/***/ ((module) => { + if (data.hasOwnProperty('secret_id')) { + obj['secret_id'] = _ApiClient["default"].convertToType(data['secret_id'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); + } + if (data.hasOwnProperty('tags')) { + obj['tags'] = _ApiClient["default"].convertToType(data['tags'], { + 'String': 'String' + }); + } -// parse out just the options we care about -const looseOption = Object.freeze({ loose: true }) -const emptyOpts = Object.freeze({ }) -const parseOptions = options => { - if (!options) { - return emptyOpts - } + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + } - if (typeof options !== 'object') { - return looseOption - } + return obj; + } + }]); - return options -} -module.exports = parseOptions + return SecretInfo; +}(); +/** + * @member {Date} created + */ -/***/ }), +SecretInfo.prototype['created'] = undefined; +/** + * @member {String} description + */ -/***/ 55862: -/***/ ((module, exports, __nccwpck_require__) => { +SecretInfo.prototype['description'] = undefined; +/** + * @member {Date} expiration + */ -"use strict"; +SecretInfo.prototype['expiration'] = undefined; +/** + * @member {Date} last_retrieved + */ +SecretInfo.prototype['last_retrieved'] = undefined; +/** + * @member {Object} location + */ -const { - MAX_SAFE_COMPONENT_LENGTH, - MAX_SAFE_BUILD_LENGTH, - MAX_LENGTH, -} = __nccwpck_require__(95994) -const debug = __nccwpck_require__(55003) -exports = module.exports = {} +SecretInfo.prototype['location'] = undefined; +/** + * @member {String} name + */ -// The actual regexps go on exports.re -const re = exports.re = [] -const safeRe = exports.safeRe = [] -const src = exports.src = [] -const safeSrc = exports.safeSrc = [] -const t = exports.t = {} -let R = 0 +SecretInfo.prototype['name'] = undefined; +/** + * @member {String} secret_id + */ -const LETTERDASHNUMBER = '[a-zA-Z0-9-]' +SecretInfo.prototype['secret_id'] = undefined; +/** + * @member {Boolean} status + */ -// Replace some greedy regex tokens to prevent regex dos issues. These regex are -// used internally via the safeRe object since all inputs in this library get -// normalized first to trim and collapse all extra whitespace. The original -// regexes are exported for userland consumption and lower level usage. A -// future breaking change could export the safer regex only with a note that -// all input should have extra whitespace removed. -const safeRegexReplacements = [ - ['\\s', 1], - ['\\d', MAX_LENGTH], - [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH], -] +SecretInfo.prototype['status'] = undefined; +/** + * @member {Object.} tags + */ -const makeSafeRegex = (value) => { - for (const [token, max] of safeRegexReplacements) { - value = value - .split(`${token}*`).join(`${token}{0,${max}}`) - .split(`${token}+`).join(`${token}{1,${max}}`) - } - return value -} +SecretInfo.prototype['tags'] = undefined; +/** + * @member {String} type + */ -const createToken = (name, value, isGlobal) => { - const safe = makeSafeRegex(value) - const index = R++ - debug(name, index, value) - t[name] = index - src[index] = value - safeSrc[index] = safe - re[index] = new RegExp(value, isGlobal ? 'g' : undefined) - safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined) -} +SecretInfo.prototype['type'] = undefined; +var _default = SecretInfo; +exports["default"] = _default; -// The following Regular Expressions can be used for tokenizing, -// validating, and parsing SemVer version strings. +/***/ }), -// ## Numeric Identifier -// A single `0`, or a non-zero digit followed by zero or more digits. +/***/ 66513: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*') -createToken('NUMERICIDENTIFIERLOOSE', '\\d+') +"use strict"; -// ## Non-numeric Identifier -// Zero or more digits, followed by a letter or hyphen, and then zero or -// more letters, digits, or hyphens. -createToken('NONNUMERICIDENTIFIER', `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`) +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -// ## Main Version -// Three dot-separated numeric identifiers. +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.` + - `(${src[t.NUMERICIDENTIFIER]})\\.` + - `(${src[t.NUMERICIDENTIFIER]})`) +var _ItemSraStatus = _interopRequireDefault(__nccwpck_require__(96357)); -createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + - `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` + - `(${src[t.NUMERICIDENTIFIERLOOSE]})`) +var _TargetNameWithHosts = _interopRequireDefault(__nccwpck_require__(9507)); -// ## Pre-release Version Identifier -// A numeric identifier, or a non-numeric identifier. -// Non-numeric identifiers include numeric identifiers but can be longer. -// Therefore non-numeric identifiers must go first. +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER] -}|${src[t.NUMERICIDENTIFIER]})`) +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER] -}|${src[t.NUMERICIDENTIFIERLOOSE]})`) +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -// ## Pre-release Version -// Hyphen, followed by one or more dot-separated pre-release version -// identifiers. +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER] -}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`) +/** + * The SecureRemoteAccess model module. + * @module model/SecureRemoteAccess + * @version 3.6.3 + */ +var SecureRemoteAccess = /*#__PURE__*/function () { + /** + * Constructs a new SecureRemoteAccess. + * @alias module:model/SecureRemoteAccess + */ + function SecureRemoteAccess() { + _classCallCheck(this, SecureRemoteAccess); -createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE] -}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`) + SecureRemoteAccess.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -// ## Build Metadata Identifier -// Any combination of digits, letters, or hyphens. -createToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`) + _createClass(SecureRemoteAccess, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SecureRemoteAccess from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SecureRemoteAccess} obj Optional instance to populate. + * @return {module:model/SecureRemoteAccess} The populated SecureRemoteAccess instance. + */ -// ## Build Metadata -// Plus sign, followed by one or more period-separated build metadata -// identifiers. + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SecureRemoteAccess(); -createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER] -}(?:\\.${src[t.BUILDIDENTIFIER]})*))`) + if (data.hasOwnProperty('account_id')) { + obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String'); + } -// ## Full Version String -// A main version, followed optionally by a pre-release version and -// build metadata. + if (data.hasOwnProperty('allow_port_forwarding')) { + obj['allow_port_forwarding'] = _ApiClient["default"].convertToType(data['allow_port_forwarding'], 'Boolean'); + } -// Note that the only major, minor, patch, and pre-release sections of -// the version string are capturing groups. The build metadata is not a -// capturing group, because it should not ever be used in version -// comparison. + if (data.hasOwnProperty('allow_providing_external_username')) { + obj['allow_providing_external_username'] = _ApiClient["default"].convertToType(data['allow_providing_external_username'], 'Boolean'); + } -createToken('FULLPLAIN', `v?${src[t.MAINVERSION] -}${src[t.PRERELEASE]}?${ - src[t.BUILD]}?`) + if (data.hasOwnProperty('bastion_api')) { + obj['bastion_api'] = _ApiClient["default"].convertToType(data['bastion_api'], 'String'); + } -createToken('FULL', `^${src[t.FULLPLAIN]}$`) + if (data.hasOwnProperty('bastion_issuer')) { + obj['bastion_issuer'] = _ApiClient["default"].convertToType(data['bastion_issuer'], 'String'); + } -// like full, but allows v1.2.3 and =1.2.3, which people do sometimes. -// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty -// common in the npm registry. -createToken('LOOSEPLAIN', `[v=\\s]*${src[t.MAINVERSIONLOOSE] -}${src[t.PRERELEASELOOSE]}?${ - src[t.BUILD]}?`) + if (data.hasOwnProperty('bastion_issuer_id')) { + obj['bastion_issuer_id'] = _ApiClient["default"].convertToType(data['bastion_issuer_id'], 'Number'); + } -createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`) + if (data.hasOwnProperty('bastion_ssh')) { + obj['bastion_ssh'] = _ApiClient["default"].convertToType(data['bastion_ssh'], 'String'); + } -createToken('GTLT', '((?:<|>)?=?)') + if (data.hasOwnProperty('category')) { + obj['category'] = _ApiClient["default"].convertToType(data['category'], 'String'); + } -// Something like "2.*" or "1.2.x". -// Note that "x.x" is a valid xRange identifer, meaning "any version" -// Only the first item is strictly required. -createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`) -createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`) + if (data.hasOwnProperty('dashboard_url')) { + obj['dashboard_url'] = _ApiClient["default"].convertToType(data['dashboard_url'], 'String'); + } -createToken('XRANGEPLAIN', `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` + - `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + - `(?:\\.(${src[t.XRANGEIDENTIFIER]})` + - `(?:${src[t.PRERELEASE]})?${ - src[t.BUILD]}?` + - `)?)?`) + if (data.hasOwnProperty('db_name')) { + obj['db_name'] = _ApiClient["default"].convertToType(data['db_name'], 'String'); + } -createToken('XRANGEPLAINLOOSE', `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` + - `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + - `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` + - `(?:${src[t.PRERELEASELOOSE]})?${ - src[t.BUILD]}?` + - `)?)?`) + if (data.hasOwnProperty('domain')) { + obj['domain'] = _ApiClient["default"].convertToType(data['domain'], 'String'); + } -createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`) -createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`) + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'Boolean'); + } -// Coercion. -// Extract anything that could conceivably be a part of a valid semver -createToken('COERCEPLAIN', `${'(^|[^\\d])' + - '(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` + - `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + - `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`) -createToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\d])`) -createToken('COERCEFULL', src[t.COERCEPLAIN] + - `(?:${src[t.PRERELEASE]})?` + - `(?:${src[t.BUILD]})?` + - `(?:$|[^\\d])`) -createToken('COERCERTL', src[t.COERCE], true) -createToken('COERCERTLFULL', src[t.COERCEFULL], true) + if (data.hasOwnProperty('endpoint')) { + obj['endpoint'] = _ApiClient["default"].convertToType(data['endpoint'], 'String'); + } -// Tilde ranges. -// Meaning is "reasonably at or greater than" -createToken('LONETILDE', '(?:~>?)') + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], ['String']); + } -createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true) -exports.tildeTrimReplace = '$1~' + if (data.hasOwnProperty('host_provider_type')) { + obj['host_provider_type'] = _ApiClient["default"].convertToType(data['host_provider_type'], 'String'); + } -createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`) -createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`) + if (data.hasOwnProperty('is_cli')) { + obj['is_cli'] = _ApiClient["default"].convertToType(data['is_cli'], 'Boolean'); + } -// Caret ranges. -// Meaning is "at least and backwards compatible with" -createToken('LONECARET', '(?:\\^)') + if (data.hasOwnProperty('is_web')) { + obj['is_web'] = _ApiClient["default"].convertToType(data['is_web'], 'Boolean'); + } -createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true) -exports.caretTrimReplace = '$1^' + if (data.hasOwnProperty('isolated')) { + obj['isolated'] = _ApiClient["default"].convertToType(data['isolated'], 'Boolean'); + } -createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`) -createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`) + if (data.hasOwnProperty('native')) { + obj['native'] = _ApiClient["default"].convertToType(data['native'], 'Boolean'); + } -// A simple gt/lt/eq thing, or just "" to indicate "any version" -createToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`) -createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`) + if (data.hasOwnProperty('rd_gateway_server')) { + obj['rd_gateway_server'] = _ApiClient["default"].convertToType(data['rd_gateway_server'], 'String'); + } -// An expression to strip any whitespace between the gtlt and the thing -// it modifies, so that `> 1.2.3` ==> `>1.2.3` -createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT] -}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true) -exports.comparatorTrimReplace = '$1$2$3' + if (data.hasOwnProperty('rdp_user')) { + obj['rdp_user'] = _ApiClient["default"].convertToType(data['rdp_user'], 'String'); + } -// Something like `1.2.3 - 1.2.4` -// Note that these all use the loose form, because they'll be -// checked against either the strict or loose comparator form -// later. -createToken('HYPHENRANGE', `^\\s*(${src[t.XRANGEPLAIN]})` + - `\\s+-\\s+` + - `(${src[t.XRANGEPLAIN]})` + - `\\s*$`) + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } -createToken('HYPHENRANGELOOSE', `^\\s*(${src[t.XRANGEPLAINLOOSE]})` + - `\\s+-\\s+` + - `(${src[t.XRANGEPLAINLOOSE]})` + - `\\s*$`) + if (data.hasOwnProperty('rotate_after_disconnect')) { + obj['rotate_after_disconnect'] = _ApiClient["default"].convertToType(data['rotate_after_disconnect'], 'Boolean'); + } -// Star ranges basically just allow anything at all. -createToken('STAR', '(<|>)?=?\\s*\\*') -// >=0.0.0 is like a star -createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$') -createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$') + if (data.hasOwnProperty('schema')) { + obj['schema'] = _ApiClient["default"].convertToType(data['schema'], 'String'); + } + if (data.hasOwnProperty('ssh_password')) { + obj['ssh_password'] = _ApiClient["default"].convertToType(data['ssh_password'], 'Boolean'); + } -/***/ }), + if (data.hasOwnProperty('ssh_private_key')) { + obj['ssh_private_key'] = _ApiClient["default"].convertToType(data['ssh_private_key'], 'Boolean'); + } -/***/ 99331: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('ssh_user')) { + obj['ssh_user'] = _ApiClient["default"].convertToType(data['ssh_user'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('status')) { + obj['status'] = _ItemSraStatus["default"].constructFromObject(data['status']); + } + if (data.hasOwnProperty('target_hosts')) { + obj['target_hosts'] = _ApiClient["default"].convertToType(data['target_hosts'], [_TargetNameWithHosts["default"]]); + } -// Determine if version is greater than all the versions possible in the range. -const outside = __nccwpck_require__(7203) -const gtr = (version, range, options) => outside(version, range, '>', options) -module.exports = gtr + if (data.hasOwnProperty('targets')) { + obj['targets'] = _ApiClient["default"].convertToType(data['targets'], ['String']); + } + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('use_internal_bastion')) { + obj['use_internal_bastion'] = _ApiClient["default"].convertToType(data['use_internal_bastion'], 'Boolean'); + } -/***/ 71868: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('web_proxy')) { + obj['web_proxy'] = _ApiClient["default"].convertToType(data['web_proxy'], 'Boolean'); + } + } -"use strict"; + return obj; + } + }]); + return SecureRemoteAccess; +}(); +/** + * @member {String} account_id + */ -const Range = __nccwpck_require__(34967) -const intersects = (r1, r2, options) => { - r1 = new Range(r1, options) - r2 = new Range(r2, options) - return r1.intersects(r2, options) -} -module.exports = intersects +SecureRemoteAccess.prototype['account_id'] = undefined; +/** + * @member {Boolean} allow_port_forwarding + */ -/***/ }), +SecureRemoteAccess.prototype['allow_port_forwarding'] = undefined; +/** + * @member {Boolean} allow_providing_external_username + */ -/***/ 47022: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +SecureRemoteAccess.prototype['allow_providing_external_username'] = undefined; +/** + * @member {String} bastion_api + */ -"use strict"; +SecureRemoteAccess.prototype['bastion_api'] = undefined; +/** + * @member {String} bastion_issuer + */ +SecureRemoteAccess.prototype['bastion_issuer'] = undefined; +/** + * @member {Number} bastion_issuer_id + */ -const outside = __nccwpck_require__(7203) -// Determine if version is less than all the versions possible in the range -const ltr = (version, range, options) => outside(version, range, '<', options) -module.exports = ltr +SecureRemoteAccess.prototype['bastion_issuer_id'] = undefined; +/** + * @member {String} bastion_ssh + */ +SecureRemoteAccess.prototype['bastion_ssh'] = undefined; +/** + * @member {String} category + */ -/***/ }), +SecureRemoteAccess.prototype['category'] = undefined; +/** + * @member {String} dashboard_url + */ -/***/ 48380: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +SecureRemoteAccess.prototype['dashboard_url'] = undefined; +/** + * @member {String} db_name + */ -"use strict"; +SecureRemoteAccess.prototype['db_name'] = undefined; +/** + * @member {String} domain + */ +SecureRemoteAccess.prototype['domain'] = undefined; +/** + * @member {Boolean} enable + */ -const SemVer = __nccwpck_require__(65412) -const Range = __nccwpck_require__(34967) +SecureRemoteAccess.prototype['enable'] = undefined; +/** + * @member {String} endpoint + */ -const maxSatisfying = (versions, range, options) => { - let max = null - let maxSV = null - let rangeObj = null - try { - rangeObj = new Range(range, options) - } catch (er) { - return null - } - versions.forEach((v) => { - if (rangeObj.test(v)) { - // satisfies(v, range, options) - if (!max || maxSV.compare(v) === -1) { - // compare(max, v, true) - max = v - maxSV = new SemVer(max, options) - } - } - }) - return max -} -module.exports = maxSatisfying +SecureRemoteAccess.prototype['endpoint'] = undefined; +/** + * @member {Array.} host + */ +SecureRemoteAccess.prototype['host'] = undefined; +/** + * @member {String} host_provider_type + */ -/***/ }), +SecureRemoteAccess.prototype['host_provider_type'] = undefined; +/** + * @member {Boolean} is_cli + */ -/***/ 71742: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +SecureRemoteAccess.prototype['is_cli'] = undefined; +/** + * @member {Boolean} is_web + */ -"use strict"; +SecureRemoteAccess.prototype['is_web'] = undefined; +/** + * @member {Boolean} isolated + */ +SecureRemoteAccess.prototype['isolated'] = undefined; +/** + * @member {Boolean} native + */ -const SemVer = __nccwpck_require__(65412) -const Range = __nccwpck_require__(34967) -const minSatisfying = (versions, range, options) => { - let min = null - let minSV = null - let rangeObj = null - try { - rangeObj = new Range(range, options) - } catch (er) { - return null - } - versions.forEach((v) => { - if (rangeObj.test(v)) { - // satisfies(v, range, options) - if (!min || minSV.compare(v) === 1) { - // compare(min, v, true) - min = v - minSV = new SemVer(min, options) - } - } - }) - return min -} -module.exports = minSatisfying +SecureRemoteAccess.prototype['native'] = undefined; +/** + * @member {String} rd_gateway_server + */ +SecureRemoteAccess.prototype['rd_gateway_server'] = undefined; +/** + * @member {String} rdp_user + */ -/***/ }), +SecureRemoteAccess.prototype['rdp_user'] = undefined; +/** + * @member {String} region + */ -/***/ 20125: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +SecureRemoteAccess.prototype['region'] = undefined; +/** + * @member {Boolean} rotate_after_disconnect + */ -"use strict"; +SecureRemoteAccess.prototype['rotate_after_disconnect'] = undefined; +/** + * @member {String} schema + */ +SecureRemoteAccess.prototype['schema'] = undefined; +/** + * @member {Boolean} ssh_password + */ -const SemVer = __nccwpck_require__(65412) -const Range = __nccwpck_require__(34967) -const gt = __nccwpck_require__(48460) +SecureRemoteAccess.prototype['ssh_password'] = undefined; +/** + * @member {Boolean} ssh_private_key + */ -const minVersion = (range, loose) => { - range = new Range(range, loose) +SecureRemoteAccess.prototype['ssh_private_key'] = undefined; +/** + * @member {String} ssh_user + */ - let minver = new SemVer('0.0.0') - if (range.test(minver)) { - return minver - } +SecureRemoteAccess.prototype['ssh_user'] = undefined; +/** + * @member {module:model/ItemSraStatus} status + */ - minver = new SemVer('0.0.0-0') - if (range.test(minver)) { - return minver - } +SecureRemoteAccess.prototype['status'] = undefined; +/** + * @member {Array.} target_hosts + */ - minver = null - for (let i = 0; i < range.set.length; ++i) { - const comparators = range.set[i] +SecureRemoteAccess.prototype['target_hosts'] = undefined; +/** + * @member {Array.} targets + */ - let setMin = null - comparators.forEach((comparator) => { - // Clone to avoid manipulating the comparator's semver object. - const compver = new SemVer(comparator.semver.version) - switch (comparator.operator) { - case '>': - if (compver.prerelease.length === 0) { - compver.patch++ - } else { - compver.prerelease.push(0) - } - compver.raw = compver.format() - /* fallthrough */ - case '': - case '>=': - if (!setMin || gt(compver, setMin)) { - setMin = compver - } - break - case '<': - case '<=': - /* Ignore maximum versions */ - break - /* istanbul ignore next */ - default: - throw new Error(`Unexpected operation: ${comparator.operator}`) - } - }) - if (setMin && (!minver || gt(minver, setMin))) { - minver = setMin - } - } +SecureRemoteAccess.prototype['targets'] = undefined; +/** + * @member {String} url + */ - if (minver && range.test(minver)) { - return minver - } +SecureRemoteAccess.prototype['url'] = undefined; +/** + * @member {Boolean} use_internal_bastion + */ - return null -} -module.exports = minVersion +SecureRemoteAccess.prototype['use_internal_bastion'] = undefined; +/** + * @member {Boolean} web_proxy + */ +SecureRemoteAccess.prototype['web_proxy'] = undefined; +var _default = SecureRemoteAccess; +exports["default"] = _default; /***/ }), -/***/ 7203: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 75499: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -const SemVer = __nccwpck_require__(65412) -const Comparator = __nccwpck_require__(8448) -const { ANY } = Comparator -const Range = __nccwpck_require__(34967) -const satisfies = __nccwpck_require__(16278) -const gt = __nccwpck_require__(48460) -const lt = __nccwpck_require__(78467) -const lte = __nccwpck_require__(640) -const gte = __nccwpck_require__(43577) +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -const outside = (version, range, hilo, options) => { - version = new SemVer(version, options) - range = new Range(range, options) +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - let gtfn, ltefn, ltfn, comp, ecomp - switch (hilo) { - case '>': - gtfn = gt - ltefn = lte - ltfn = lt - comp = '>' - ecomp = '>=' - break - case '<': - gtfn = lt - ltefn = gte - ltfn = gt - comp = '<' - ecomp = '<=' - break - default: - throw new TypeError('Must provide a hilo val of "<" or ">"') - } +var _MigrationGeneral = _interopRequireDefault(__nccwpck_require__(89124)); - // If it satisfies the range it is not outside - if (satisfies(version, range, options)) { - return false - } +var _ServerInventoryPayload = _interopRequireDefault(__nccwpck_require__(937)); - // From now on, variable terms are as if we're in "gtr" mode. - // but note that everything is flipped for the "ltr" function. +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - for (let i = 0; i < range.set.length; ++i) { - const comparators = range.set[i] +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - let high = null - let low = null +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - comparators.forEach((comparator) => { - if (comparator.semver === ANY) { - comparator = new Comparator('>=0.0.0') - } - high = high || comparator - low = low || comparator - if (gtfn(comparator.semver, high.semver, options)) { - high = comparator - } else if (ltfn(comparator.semver, low.semver, options)) { - low = comparator - } - }) +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // If the edge version comparator has a operator then our version - // isn't outside it - if (high.operator === comp || high.operator === ecomp) { - return false - } +/** + * The ServerInventoryMigration model module. + * @module model/ServerInventoryMigration + * @version 3.6.3 + */ +var ServerInventoryMigration = /*#__PURE__*/function () { + /** + * Constructs a new ServerInventoryMigration. + * @alias module:model/ServerInventoryMigration + */ + function ServerInventoryMigration() { + _classCallCheck(this, ServerInventoryMigration); - // If the lowest version comparator has an operator and our version - // is less than it then it isn't higher than the range - if ((!low.operator || low.operator === comp) && - ltefn(version, low.semver)) { - return false - } else if (low.operator === ecomp && ltfn(version, low.semver)) { - return false - } + ServerInventoryMigration.initialize(this); } - return true -} - -module.exports = outside - + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), -/***/ 73629: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + _createClass(ServerInventoryMigration, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ServerInventoryMigration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ServerInventoryMigration} obj Optional instance to populate. + * @return {module:model/ServerInventoryMigration} The populated ServerInventoryMigration instance. + */ -"use strict"; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ServerInventoryMigration(); + if (data.hasOwnProperty('general')) { + obj['general'] = _MigrationGeneral["default"].constructFromObject(data['general']); + } -// given a set of versions and a range, create a "simplified" range -// that includes the same versions that the original range does -// If the original range is shorter than the simplified one, return that. -const satisfies = __nccwpck_require__(16278) -const compare = __nccwpck_require__(56176) -module.exports = (versions, range, options) => { - const set = [] - let first = null - let prev = null - const v = versions.sort((a, b) => compare(a, b, options)) - for (const version of v) { - const included = satisfies(version, range, options) - if (included) { - prev = version - if (!first) { - first = version - } - } else { - if (prev) { - set.push([first, prev]) + if (data.hasOwnProperty('payload')) { + obj['payload'] = _ServerInventoryPayload["default"].constructFromObject(data['payload']); + } } - prev = null - first = null - } - } - if (first) { - set.push([first, null]) - } - const ranges = [] - for (const [min, max] of set) { - if (min === max) { - ranges.push(min) - } else if (!max && min === v[0]) { - ranges.push('*') - } else if (!max) { - ranges.push(`>=${min}`) - } else if (min === v[0]) { - ranges.push(`<=${max}`) - } else { - ranges.push(`${min} - ${max}`) + return obj; } - } - const simplified = ranges.join(' || ') - const original = typeof range.raw === 'string' ? range.raw : String(range) - return simplified.length < original.length ? simplified : range -} + }]); + + return ServerInventoryMigration; +}(); +/** + * @member {module:model/MigrationGeneral} general + */ + +ServerInventoryMigration.prototype['general'] = undefined; +/** + * @member {module:model/ServerInventoryPayload} payload + */ + +ServerInventoryMigration.prototype['payload'] = undefined; +var _default = ServerInventoryMigration; +exports["default"] = _default; /***/ }), -/***/ 33384: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 937: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -const Range = __nccwpck_require__(34967) -const Comparator = __nccwpck_require__(8448) -const { ANY } = Comparator -const satisfies = __nccwpck_require__(16278) -const compare = __nccwpck_require__(56176) - -// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff: -// - Every simple range `r1, r2, ...` is a null set, OR -// - Every simple range `r1, r2, ...` which is not a null set is a subset of -// some `R1, R2, ...` -// -// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff: -// - If c is only the ANY comparator -// - If C is only the ANY comparator, return true -// - Else if in prerelease mode, return false -// - else replace c with `[>=0.0.0]` -// - If C is only the ANY comparator -// - if in prerelease mode, return true -// - else replace C with `[>=0.0.0]` -// - Let EQ be the set of = comparators in c -// - If EQ is more than one, return true (null set) -// - Let GT be the highest > or >= comparator in c -// - Let LT be the lowest < or <= comparator in c -// - If GT and LT, and GT.semver > LT.semver, return true (null set) -// - If any C is a = range, and GT or LT are set, return false -// - If EQ -// - If GT, and EQ does not satisfy GT, return true (null set) -// - If LT, and EQ does not satisfy LT, return true (null set) -// - If EQ satisfies every C, return true -// - Else return false -// - If GT -// - If GT.semver is lower than any > or >= comp in C, return false -// - If GT is >=, and GT.semver does not satisfy every C, return false -// - If GT.semver has a prerelease, and not in prerelease mode -// - If no C has a prerelease and the GT.semver tuple, return false -// - If LT -// - If LT.semver is greater than any < or <= comp in C, return false -// - If LT is <=, and LT.semver does not satisfy every C, return false -// - If LT.semver has a prerelease, and not in prerelease mode -// - If no C has a prerelease and the LT.semver tuple, return false -// - Else return true +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -const subset = (sub, dom, options = {}) => { - if (sub === dom) { - return true - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - sub = new Range(sub, options) - dom = new Range(dom, options) - let sawNonNull = false +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - OUTER: for (const simpleSub of sub.set) { - for (const simpleDom of dom.set) { - const isSub = simpleSubset(simpleSub, simpleDom, options) - sawNonNull = sawNonNull || isSub !== null - if (isSub) { - continue OUTER - } - } - // the null set is a subset of everything, but null simple ranges in - // a complex range should be ignored. so if we saw a non-null range, - // then we know this isn't a subset, but if EVERY simple range was null, - // then it is a subset. - if (sawNonNull) { - return false - } - } - return true -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -const minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')] -const minimumVersion = [new Comparator('>=0.0.0')] +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -const simpleSubset = (sub, dom, options) => { - if (sub === dom) { - return true - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (sub.length === 1 && sub[0].semver === ANY) { - if (dom.length === 1 && dom[0].semver === ANY) { - return true - } else if (options.includePrerelease) { - sub = minimumVersionWithPreRelease - } else { - sub = minimumVersion - } - } +/** + * The ServerInventoryPayload model module. + * @module model/ServerInventoryPayload + * @version 3.6.3 + */ +var ServerInventoryPayload = /*#__PURE__*/function () { + /** + * Constructs a new ServerInventoryPayload. + * @alias module:model/ServerInventoryPayload + */ + function ServerInventoryPayload() { + _classCallCheck(this, ServerInventoryPayload); - if (dom.length === 1 && dom[0].semver === ANY) { - if (options.includePrerelease) { - return true - } else { - dom = minimumVersion - } + ServerInventoryPayload.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - const eqSet = new Set() - let gt, lt - for (const c of sub) { - if (c.operator === '>' || c.operator === '>=') { - gt = higherGT(gt, c, options) - } else if (c.operator === '<' || c.operator === '<=') { - lt = lowerLT(lt, c, options) - } else { - eqSet.add(c.semver) - } - } - if (eqSet.size > 1) { - return null - } + _createClass(ServerInventoryPayload, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a ServerInventoryPayload from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ServerInventoryPayload} obj Optional instance to populate. + * @return {module:model/ServerInventoryPayload} The populated ServerInventoryPayload instance. + */ - let gtltComp - if (gt && lt) { - gtltComp = compare(gt.semver, lt.semver, options) - if (gtltComp > 0) { - return null - } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) { - return null - } - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ServerInventoryPayload(); - // will iterate one or zero times - for (const eq of eqSet) { - if (gt && !satisfies(eq, String(gt), options)) { - return null - } + if (data.hasOwnProperty('auto_rotate')) { + obj['auto_rotate'] = _ApiClient["default"].convertToType(data['auto_rotate'], 'Boolean'); + } - if (lt && !satisfies(eq, String(lt), options)) { - return null - } + if (data.hasOwnProperty('auto_rotate_interval_in_days')) { + obj['auto_rotate_interval_in_days'] = _ApiClient["default"].convertToType(data['auto_rotate_interval_in_days'], 'Number'); + } - for (const c of dom) { - if (!satisfies(eq, String(c), options)) { - return false - } - } + if (data.hasOwnProperty('auto_rotate_rotation_hour')) { + obj['auto_rotate_rotation_hour'] = _ApiClient["default"].convertToType(data['auto_rotate_rotation_hour'], 'Number'); + } - return true - } + if (data.hasOwnProperty('enable_rdp_sra')) { + obj['enable_rdp_sra'] = _ApiClient["default"].convertToType(data['enable_rdp_sra'], 'Boolean'); + } - let higher, lower - let hasDomLT, hasDomGT - // if the subset has a prerelease, we need a comparator in the superset - // with the same tuple and a prerelease, or it's not a subset - let needDomLTPre = lt && - !options.includePrerelease && - lt.semver.prerelease.length ? lt.semver : false - let needDomGTPre = gt && - !options.includePrerelease && - gt.semver.prerelease.length ? gt.semver : false - // exception: <1.2.3-0 is the same as <1.2.3 - if (needDomLTPre && needDomLTPre.prerelease.length === 1 && - lt.operator === '<' && needDomLTPre.prerelease[0] === 0) { - needDomLTPre = false - } + if (data.hasOwnProperty('migration_target_id')) { + obj['migration_target_id'] = _ApiClient["default"].convertToType(data['migration_target_id'], 'Number'); + } - for (const c of dom) { - hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>=' - hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<=' - if (gt) { - if (needDomGTPre) { - if (c.semver.prerelease && c.semver.prerelease.length && - c.semver.major === needDomGTPre.major && - c.semver.minor === needDomGTPre.minor && - c.semver.patch === needDomGTPre.patch) { - needDomGTPre = false + if (data.hasOwnProperty('server_targets_path_template')) { + obj['server_targets_path_template'] = _ApiClient["default"].convertToType(data['server_targets_path_template'], 'String'); } - } - if (c.operator === '>' || c.operator === '>=') { - higher = higherGT(gt, c, options) - if (higher === c && higher !== gt) { - return false + + if (data.hasOwnProperty('user_groups')) { + obj['user_groups'] = _ApiClient["default"].convertToType(data['user_groups'], ['String']); } - } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) { - return false - } - } - if (lt) { - if (needDomLTPre) { - if (c.semver.prerelease && c.semver.prerelease.length && - c.semver.major === needDomLTPre.major && - c.semver.minor === needDomLTPre.minor && - c.semver.patch === needDomLTPre.patch) { - needDomLTPre = false + + if (data.hasOwnProperty('users_ignore_list')) { + obj['users_ignore_list'] = _ApiClient["default"].convertToType(data['users_ignore_list'], { + 'String': 'Boolean' + }); } - } - if (c.operator === '<' || c.operator === '<=') { - lower = lowerLT(lt, c, options) - if (lower === c && lower !== lt) { - return false + + if (data.hasOwnProperty('users_rotated_secrets_path_template')) { + obj['users_rotated_secrets_path_template'] = _ApiClient["default"].convertToType(data['users_rotated_secrets_path_template'], 'String'); } - } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) { - return false } + + return obj; } - if (!c.operator && (lt || gt) && gtltComp !== 0) { - return false - } - } + }]); - // if there was a < or >, and nothing in the dom, then must be false - // UNLESS it was limited by another range in the other direction. - // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0 - if (gt && hasDomLT && !lt && gtltComp !== 0) { - return false - } + return ServerInventoryPayload; +}(); +/** + * @member {Boolean} auto_rotate + */ - if (lt && hasDomGT && !gt && gtltComp !== 0) { - return false - } - // we needed a prerelease range in a specific tuple, but didn't get one - // then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0, - // because it includes prereleases in the 1.2.3 tuple - if (needDomGTPre || needDomLTPre) { - return false - } +ServerInventoryPayload.prototype['auto_rotate'] = undefined; +/** + * @member {Number} auto_rotate_interval_in_days + */ - return true -} +ServerInventoryPayload.prototype['auto_rotate_interval_in_days'] = undefined; +/** + * @member {Number} auto_rotate_rotation_hour + */ -// >=1.2.3 is lower than >1.2.3 -const higherGT = (a, b, options) => { - if (!a) { - return b - } - const comp = compare(a.semver, b.semver, options) - return comp > 0 ? a - : comp < 0 ? b - : b.operator === '>' && a.operator === '>=' ? b - : a -} +ServerInventoryPayload.prototype['auto_rotate_rotation_hour'] = undefined; +/** + * @member {Boolean} enable_rdp_sra + */ -// <=1.2.3 is higher than <1.2.3 -const lowerLT = (a, b, options) => { - if (!a) { - return b - } - const comp = compare(a.semver, b.semver, options) - return comp < 0 ? a - : comp > 0 ? b - : b.operator === '<' && a.operator === '<=' ? b - : a -} +ServerInventoryPayload.prototype['enable_rdp_sra'] = undefined; +/** + * @member {Number} migration_target_id + */ -module.exports = subset +ServerInventoryPayload.prototype['migration_target_id'] = undefined; +/** + * @member {String} server_targets_path_template + */ + +ServerInventoryPayload.prototype['server_targets_path_template'] = undefined; +/** + * @member {Array.} user_groups + */ + +ServerInventoryPayload.prototype['user_groups'] = undefined; +/** + * @member {Object.} users_ignore_list + */ + +ServerInventoryPayload.prototype['users_ignore_list'] = undefined; +/** + * @member {String} users_rotated_secrets_path_template + */ +ServerInventoryPayload.prototype['users_rotated_secrets_path_template'] = undefined; +var _default = ServerInventoryPayload; +exports["default"] = _default; /***/ }), -/***/ 66959: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 53920: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -const Range = __nccwpck_require__(34967) - -// Mostly just for testing and legacy API reasons -const toComparators = (range, options) => - new Range(range, options).set - .map(comp => comp.map(c => c.value).join(' ').trim().split(' ')) +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -module.exports = toComparators +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ }), +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/***/ 1634: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -"use strict"; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +/** + * The SetItemState model module. + * @module model/SetItemState + * @version 3.6.3 + */ +var SetItemState = /*#__PURE__*/function () { + /** + * Constructs a new SetItemState. + * @alias module:model/SetItemState + * @param desiredState {String} Desired item state (Enabled, Disabled) + * @param name {String} Current item name + */ + function SetItemState(desiredState, name) { + _classCallCheck(this, SetItemState); -const Range = __nccwpck_require__(34967) -const validRange = (range, options) => { - try { - // Return '*' instead of '' so that truthiness works. - // This will throw if it's invalid anyway - return new Range(range, options).range || '*' - } catch (er) { - return null + SetItemState.initialize(this, desiredState, name); } -} -module.exports = validRange + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), + _createClass(SetItemState, null, [{ + key: "initialize", + value: function initialize(obj, desiredState, name) { + obj['desired-state'] = desiredState; + obj['name'] = name; + } + /** + * Constructs a SetItemState from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SetItemState} obj Optional instance to populate. + * @return {module:model/SetItemState} The populated SetItemState instance. + */ -/***/ 14912: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SetItemState(); -const timespan = __nccwpck_require__(96688); -const PS_SUPPORTED = __nccwpck_require__(3948); -const validateAsymmetricKey = __nccwpck_require__(91006); -const jws = __nccwpck_require__(33324); -const includes = __nccwpck_require__(46248); -const isBoolean = __nccwpck_require__(1999); -const isInteger = __nccwpck_require__(39841); -const isNumber = __nccwpck_require__(80116); -const isPlainObject = __nccwpck_require__(29888); -const isString = __nccwpck_require__(56172); -const once = __nccwpck_require__(82192); -const { KeyObject, createSecretKey, createPrivateKey } = __nccwpck_require__(76982) + if (data.hasOwnProperty('desired-state')) { + obj['desired-state'] = _ApiClient["default"].convertToType(data['desired-state'], 'String'); + } -const SUPPORTED_ALGS = ['RS256', 'RS384', 'RS512', 'ES256', 'ES384', 'ES512', 'HS256', 'HS384', 'HS512', 'none']; -if (PS_SUPPORTED) { - SUPPORTED_ALGS.splice(3, 0, 'PS256', 'PS384', 'PS512'); -} + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -const sign_options_schema = { - expiresIn: { isValid: function(value) { return isInteger(value) || (isString(value) && value); }, message: '"expiresIn" should be a number of seconds or string representing a timespan' }, - notBefore: { isValid: function(value) { return isInteger(value) || (isString(value) && value); }, message: '"notBefore" should be a number of seconds or string representing a timespan' }, - audience: { isValid: function(value) { return isString(value) || Array.isArray(value); }, message: '"audience" must be a string or array' }, - algorithm: { isValid: includes.bind(null, SUPPORTED_ALGS), message: '"algorithm" must be a valid string enum value' }, - header: { isValid: isPlainObject, message: '"header" must be an object' }, - encoding: { isValid: isString, message: '"encoding" must be a string' }, - issuer: { isValid: isString, message: '"issuer" must be a string' }, - subject: { isValid: isString, message: '"subject" must be a string' }, - jwtid: { isValid: isString, message: '"jwtid" must be a string' }, - noTimestamp: { isValid: isBoolean, message: '"noTimestamp" must be a boolean' }, - keyid: { isValid: isString, message: '"keyid" must be a string' }, - mutatePayload: { isValid: isBoolean, message: '"mutatePayload" must be a boolean' }, - allowInsecureKeySizes: { isValid: isBoolean, message: '"allowInsecureKeySizes" must be a boolean'}, - allowInvalidAsymmetricKeyTypes: { isValid: isBoolean, message: '"allowInvalidAsymmetricKeyTypes" must be a boolean'} -}; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -const registered_claims_schema = { - iat: { isValid: isNumber, message: '"iat" should be a number of seconds' }, - exp: { isValid: isNumber, message: '"exp" should be a number of seconds' }, - nbf: { isValid: isNumber, message: '"nbf" should be a number of seconds' } -}; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -function validate(schema, allowUnknown, object, parameterName) { - if (!isPlainObject(object)) { - throw new Error('Expected "' + parameterName + '" to be a plain object.'); - } - Object.keys(object) - .forEach(function(key) { - const validator = schema[key]; - if (!validator) { - if (!allowUnknown) { - throw new Error('"' + key + '" is not allowed in "' + parameterName + '"'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); } - return; - } - if (!validator.isValid(object[key])) { - throw new Error(validator.message); } - }); -} -function validateOptions(options) { - return validate(sign_options_schema, false, options, 'options'); -} + return obj; + } + }]); -function validatePayload(payload) { - return validate(registered_claims_schema, true, payload, 'payload'); -} + return SetItemState; +}(); +/** + * Desired item state (Enabled, Disabled) + * @member {String} desired-state + */ -const options_to_payload = { - 'audience': 'aud', - 'issuer': 'iss', - 'subject': 'sub', - 'jwtid': 'jti' -}; -const options_for_objects = [ - 'expiresIn', - 'notBefore', - 'noTimestamp', - 'audience', - 'issuer', - 'subject', - 'jwtid', -]; +SetItemState.prototype['desired-state'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -module.exports = function (payload, secretOrPrivateKey, options, callback) { - if (typeof options === 'function') { - callback = options; - options = {}; - } else { - options = options || {}; - } +SetItemState.prototype['json'] = false; +/** + * Current item name + * @member {String} name + */ - const isObjectPayload = typeof payload === 'object' && - !Buffer.isBuffer(payload); +SetItemState.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - const header = Object.assign({ - alg: options.algorithm || 'HS256', - typ: isObjectPayload ? 'JWT' : undefined, - kid: options.keyid - }, options.header); +SetItemState.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - function failure(err) { - if (callback) { - return callback(err); - } - throw err; - } +SetItemState.prototype['uid-token'] = undefined; +/** + * The specific version you want to update: 0=item level state (default) (relevant only for keys) + * @member {Number} version + * @default 0 + */ - if (!secretOrPrivateKey && options.algorithm !== 'none') { - return failure(new Error('secretOrPrivateKey must have a value')); - } +SetItemState.prototype['version'] = 0; +var _default = SetItemState; +exports["default"] = _default; - if (secretOrPrivateKey != null && !(secretOrPrivateKey instanceof KeyObject)) { - try { - secretOrPrivateKey = createPrivateKey(secretOrPrivateKey) - } catch (_) { - try { - secretOrPrivateKey = createSecretKey(typeof secretOrPrivateKey === 'string' ? Buffer.from(secretOrPrivateKey) : secretOrPrivateKey) - } catch (_) { - return failure(new Error('secretOrPrivateKey is not valid key material')); - } - } - } +/***/ }), - if (header.alg.startsWith('HS') && secretOrPrivateKey.type !== 'secret') { - return failure(new Error((`secretOrPrivateKey must be a symmetric key when using ${header.alg}`))) - } else if (/^(?:RS|PS|ES)/.test(header.alg)) { - if (secretOrPrivateKey.type !== 'private') { - return failure(new Error((`secretOrPrivateKey must be an asymmetric key when using ${header.alg}`))) - } - if (!options.allowInsecureKeySizes && - !header.alg.startsWith('ES') && - secretOrPrivateKey.asymmetricKeyDetails !== undefined && //KeyObject.asymmetricKeyDetails is supported in Node 15+ - secretOrPrivateKey.asymmetricKeyDetails.modulusLength < 2048) { - return failure(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${header.alg}`)); - } - } +/***/ 57460: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (typeof payload === 'undefined') { - return failure(new Error('payload is required')); - } else if (isObjectPayload) { - try { - validatePayload(payload); - } - catch (error) { - return failure(error); - } - if (!options.mutatePayload) { - payload = Object.assign({},payload); - } - } else { - const invalid_options = options_for_objects.filter(function (opt) { - return typeof options[opt] !== 'undefined'; - }); +"use strict"; - if (invalid_options.length > 0) { - return failure(new Error('invalid ' + invalid_options.join(',') + ' option for ' + (typeof payload ) + ' payload')); - } - } - if (typeof payload.exp !== 'undefined' && typeof options.expiresIn !== 'undefined') { - return failure(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.')); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (typeof payload.nbf !== 'undefined' && typeof options.notBefore !== 'undefined') { - return failure(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.')); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - try { - validateOptions(options); - } - catch (error) { - return failure(error); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (!options.allowInvalidAsymmetricKeyTypes) { - try { - validateAsymmetricKey(header.alg, secretOrPrivateKey); - } catch (error) { - return failure(error); - } - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - const timestamp = payload.iat || Math.floor(Date.now() / 1000); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (options.noTimestamp) { - delete payload.iat; - } else if (isObjectPayload) { - payload.iat = timestamp; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (typeof options.notBefore !== 'undefined') { - try { - payload.nbf = timespan(options.notBefore, timestamp); - } - catch (err) { - return failure(err); - } - if (typeof payload.nbf === 'undefined') { - return failure(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60')); - } - } +/** + * The SetRoleRule model module. + * @module model/SetRoleRule + * @version 3.6.3 + */ +var SetRoleRule = /*#__PURE__*/function () { + /** + * Constructs a new SetRoleRule. + * @alias module:model/SetRoleRule + * @param capability {Array.} List of the approved/denied capabilities in the path options: [read, create, update, delete, list, deny] + * @param path {String} The path the rule refers to + * @param roleName {String} The role name to be updated + */ + function SetRoleRule(capability, path, roleName) { + _classCallCheck(this, SetRoleRule); - if (typeof options.expiresIn !== 'undefined' && typeof payload === 'object') { - try { - payload.exp = timespan(options.expiresIn, timestamp); - } - catch (err) { - return failure(err); - } - if (typeof payload.exp === 'undefined') { - return failure(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60')); - } + SetRoleRule.initialize(this, capability, path, roleName); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - Object.keys(options_to_payload).forEach(function (key) { - const claim = options_to_payload[key]; - if (typeof options[key] !== 'undefined') { - if (typeof payload[claim] !== 'undefined') { - return failure(new Error('Bad "options.' + key + '" option. The payload already has an "' + claim + '" property.')); - } - payload[claim] = options[key]; + + _createClass(SetRoleRule, null, [{ + key: "initialize", + value: function initialize(obj, capability, path, roleName) { + obj['capability'] = capability; + obj['path'] = path; + obj['role-name'] = roleName; } - }); + /** + * Constructs a SetRoleRule from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SetRoleRule} obj Optional instance to populate. + * @return {module:model/SetRoleRule} The populated SetRoleRule instance. + */ - const encoding = options.encoding || 'utf8'; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SetRoleRule(); - if (typeof callback === 'function') { - callback = callback && once(callback); + if (data.hasOwnProperty('capability')) { + obj['capability'] = _ApiClient["default"].convertToType(data['capability'], ['String']); + } - jws.createSign({ - header: header, - privateKey: secretOrPrivateKey, - payload: payload, - encoding: encoding - }).once('error', callback) - .once('done', function (signature) { - // TODO: Remove in favor of the modulus length check before signing once node 15+ is the minimum supported version - if(!options.allowInsecureKeySizes && /^(?:RS|PS)/.test(header.alg) && signature.length < 256) { - return callback(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${header.alg}`)) + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - callback(null, signature); - }); - } else { - let signature = jws.sign({header: header, payload: payload, secret: secretOrPrivateKey, encoding: encoding}); - // TODO: Remove in favor of the modulus length check before signing once node 15+ is the minimum supported version - if(!options.allowInsecureKeySizes && /^(?:RS|PS)/.test(header.alg) && signature.length < 256) { - throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${header.alg}`) + + if (data.hasOwnProperty('path')) { + obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String'); + } + + if (data.hasOwnProperty('role-name')) { + obj['role-name'] = _ApiClient["default"].convertToType(data['role-name'], 'String'); + } + + if (data.hasOwnProperty('rule-type')) { + obj['rule-type'] = _ApiClient["default"].convertToType(data['rule-type'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } - return signature - } -}; + }]); + return SetRoleRule; +}(); +/** + * List of the approved/denied capabilities in the path options: [read, create, update, delete, list, deny] + * @member {Array.} capability + */ -/***/ }), -/***/ 60772: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +SetRoleRule.prototype['capability'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -const JsonWebTokenError = __nccwpck_require__(26248); -const NotBeforeError = __nccwpck_require__(13650); -const TokenExpiredError = __nccwpck_require__(41241); -const decode = __nccwpck_require__(92047); -const timespan = __nccwpck_require__(96688); -const validateAsymmetricKey = __nccwpck_require__(91006); -const PS_SUPPORTED = __nccwpck_require__(3948); -const jws = __nccwpck_require__(33324); -const {KeyObject, createSecretKey, createPublicKey} = __nccwpck_require__(76982); +SetRoleRule.prototype['json'] = false; +/** + * The path the rule refers to + * @member {String} path + */ -const PUB_KEY_ALGS = ['RS256', 'RS384', 'RS512']; -const EC_KEY_ALGS = ['ES256', 'ES384', 'ES512']; -const RSA_KEY_ALGS = ['RS256', 'RS384', 'RS512']; -const HS_ALGS = ['HS256', 'HS384', 'HS512']; +SetRoleRule.prototype['path'] = undefined; +/** + * The role name to be updated + * @member {String} role-name + */ -if (PS_SUPPORTED) { - PUB_KEY_ALGS.splice(PUB_KEY_ALGS.length, 0, 'PS256', 'PS384', 'PS512'); - RSA_KEY_ALGS.splice(RSA_KEY_ALGS.length, 0, 'PS256', 'PS384', 'PS512'); -} +SetRoleRule.prototype['role-name'] = undefined; +/** + * item-rule, target-rule, role-rule, auth-method-rule, search-rule, reports-rule, gw-reports-rule or sra-reports-rule, sra-rule + * @member {String} rule-type + * @default 'item-rule' + */ -module.exports = function (jwtString, secretOrPublicKey, options, callback) { - if ((typeof options === 'function') && !callback) { - callback = options; - options = {}; - } +SetRoleRule.prototype['rule-type'] = 'item-rule'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - if (!options) { - options = {}; - } +SetRoleRule.prototype['token'] = undefined; +/** + * RoleRule ttl + * @member {Number} ttl + */ - //clone this object since we are going to mutate it. - options = Object.assign({}, options); +SetRoleRule.prototype['ttl'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - let done; +SetRoleRule.prototype['uid-token'] = undefined; +var _default = SetRoleRule; +exports["default"] = _default; - if (callback) { - done = callback; - } else { - done = function(err, data) { - if (err) throw err; - return data; - }; - } +/***/ }), - if (options.clockTimestamp && typeof options.clockTimestamp !== 'number') { - return done(new JsonWebTokenError('clockTimestamp must be a number')); - } +/***/ 21310: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (options.nonce !== undefined && (typeof options.nonce !== 'string' || options.nonce.trim() === '')) { - return done(new JsonWebTokenError('nonce must be a non-empty string')); - } +"use strict"; - if (options.allowInvalidAsymmetricKeyTypes !== undefined && typeof options.allowInvalidAsymmetricKeyTypes !== 'boolean') { - return done(new JsonWebTokenError('allowInvalidAsymmetricKeyTypes must be a boolean')); - } - const clockTimestamp = options.clockTimestamp || Math.floor(Date.now() / 1000); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (!jwtString){ - return done(new JsonWebTokenError('jwt must be provided')); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (typeof jwtString !== 'string') { - return done(new JsonWebTokenError('jwt must be a string')); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - const parts = jwtString.split('.'); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (parts.length !== 3){ - return done(new JsonWebTokenError('jwt malformed')); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - let decodedToken; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - try { - decodedToken = decode(jwtString, { complete: true }); - } catch(err) { - return done(err); - } +/** + * The ShareItem model module. + * @module model/ShareItem + * @version 3.6.3 + */ +var ShareItem = /*#__PURE__*/function () { + /** + * Constructs a new ShareItem. + * @alias module:model/ShareItem + * @param action {String} Action to be performed on the item [start/stop/describe] + * @param itemName {String} Item name + */ + function ShareItem(action, itemName) { + _classCallCheck(this, ShareItem); - if (!decodedToken) { - return done(new JsonWebTokenError('invalid token')); + ShareItem.initialize(this, action, itemName); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - const header = decodedToken.header; - let getSecret; - if(typeof secretOrPublicKey === 'function') { - if(!callback) { - return done(new JsonWebTokenError('verify must be called asynchronous if secret or public key is provided as a callback')); + _createClass(ShareItem, null, [{ + key: "initialize", + value: function initialize(obj, action, itemName) { + obj['action'] = action; + obj['item-name'] = itemName; } + /** + * Constructs a ShareItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ShareItem} obj Optional instance to populate. + * @return {module:model/ShareItem} The populated ShareItem instance. + */ - getSecret = secretOrPublicKey; - } - else { - getSecret = function(header, secretCallback) { - return secretCallback(null, secretOrPublicKey); - }; - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ShareItem(); - return getSecret(header, function(err, secretOrPublicKey) { - if(err) { - return done(new JsonWebTokenError('error in secret or public key callback: ' + err.message)); - } + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + } - const hasSignature = parts[2].trim() !== ''; + if (data.hasOwnProperty('action')) { + obj['action'] = _ApiClient["default"].convertToType(data['action'], 'String'); + } - if (!hasSignature && secretOrPublicKey){ - return done(new JsonWebTokenError('jwt signature is required')); - } + if (data.hasOwnProperty('emails')) { + obj['emails'] = _ApiClient["default"].convertToType(data['emails'], ['String']); + } - if (hasSignature && !secretOrPublicKey) { - return done(new JsonWebTokenError('secret or public key must be provided')); - } + if (data.hasOwnProperty('item-name')) { + obj['item-name'] = _ApiClient["default"].convertToType(data['item-name'], 'String'); + } - if (!hasSignature && !options.algorithms) { - return done(new JsonWebTokenError('please specify "none" in "algorithms" to verify unsigned tokens')); - } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - if (secretOrPublicKey != null && !(secretOrPublicKey instanceof KeyObject)) { - try { - secretOrPublicKey = createPublicKey(secretOrPublicKey); - } catch (_) { - try { - secretOrPublicKey = createSecretKey(typeof secretOrPublicKey === 'string' ? Buffer.from(secretOrPublicKey) : secretOrPublicKey); - } catch (_) { - return done(new JsonWebTokenError('secretOrPublicKey is not valid key material')) + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - } - } - if (!options.algorithms) { - if (secretOrPublicKey.type === 'secret') { - options.algorithms = HS_ALGS; - } else if (['rsa', 'rsa-pss'].includes(secretOrPublicKey.asymmetricKeyType)) { - options.algorithms = RSA_KEY_ALGS - } else if (secretOrPublicKey.asymmetricKeyType === 'ec') { - options.algorithms = EC_KEY_ALGS - } else { - options.algorithms = PUB_KEY_ALGS + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('view-once')) { + obj['view-once'] = _ApiClient["default"].convertToType(data['view-once'], 'Boolean'); + } } - } - if (options.algorithms.indexOf(decodedToken.header.alg) === -1) { - return done(new JsonWebTokenError('invalid algorithm')); + return obj; } + }]); - if (header.alg.startsWith('HS') && secretOrPublicKey.type !== 'secret') { - return done(new JsonWebTokenError((`secretOrPublicKey must be a symmetric key when using ${header.alg}`))) - } else if (/^(?:RS|PS|ES)/.test(header.alg) && secretOrPublicKey.type !== 'public') { - return done(new JsonWebTokenError((`secretOrPublicKey must be an asymmetric key when using ${header.alg}`))) - } + return ShareItem; +}(); +/** + * for personal password manager + * @member {String} accessibility + * @default 'regular' + */ - if (!options.allowInvalidAsymmetricKeyTypes) { - try { - validateAsymmetricKey(header.alg, secretOrPublicKey); - } catch (e) { - return done(e); - } - } - let valid; +ShareItem.prototype['accessibility'] = 'regular'; +/** + * Action to be performed on the item [start/stop/describe] + * @member {String} action + */ - try { - valid = jws.verify(jwtString, decodedToken.header.alg, secretOrPublicKey); - } catch (e) { - return done(e); - } +ShareItem.prototype['action'] = undefined; +/** + * For Password Management use, reflect the website context + * @member {Array.} emails + */ - if (!valid) { - return done(new JsonWebTokenError('invalid signature')); - } +ShareItem.prototype['emails'] = undefined; +/** + * Item name + * @member {String} item-name + */ - const payload = decodedToken.payload; +ShareItem.prototype['item-name'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - if (typeof payload.nbf !== 'undefined' && !options.ignoreNotBefore) { - if (typeof payload.nbf !== 'number') { - return done(new JsonWebTokenError('invalid nbf value')); - } - if (payload.nbf > clockTimestamp + (options.clockTolerance || 0)) { - return done(new NotBeforeError('jwt not active', new Date(payload.nbf * 1000))); - } - } +ShareItem.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - if (typeof payload.exp !== 'undefined' && !options.ignoreExpiration) { - if (typeof payload.exp !== 'number') { - return done(new JsonWebTokenError('invalid exp value')); - } - if (clockTimestamp >= payload.exp + (options.clockTolerance || 0)) { - return done(new TokenExpiredError('jwt expired', new Date(payload.exp * 1000))); - } - } +ShareItem.prototype['token'] = undefined; +/** + * TTL of the Availability of the shared secret in seconds + * @member {Number} ttl + */ - if (options.audience) { - const audiences = Array.isArray(options.audience) ? options.audience : [options.audience]; - const target = Array.isArray(payload.aud) ? payload.aud : [payload.aud]; +ShareItem.prototype['ttl'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - const match = target.some(function (targetAudience) { - return audiences.some(function (audience) { - return audience instanceof RegExp ? audience.test(targetAudience) : audience === targetAudience; - }); - }); +ShareItem.prototype['uid-token'] = undefined; +/** + * ViewOnlyOnce Shared secrets can only be viewed once [true/false] + * @member {Boolean} view-once + * @default false + */ - if (!match) { - return done(new JsonWebTokenError('jwt audience invalid. expected: ' + audiences.join(' or '))); - } - } +ShareItem.prototype['view-once'] = false; +var _default = ShareItem; +exports["default"] = _default; - if (options.issuer) { - const invalid_issuer = - (typeof options.issuer === 'string' && payload.iss !== options.issuer) || - (Array.isArray(options.issuer) && options.issuer.indexOf(payload.iss) === -1); +/***/ }), - if (invalid_issuer) { - return done(new JsonWebTokenError('jwt issuer invalid. expected: ' + options.issuer)); - } - } +/***/ 78156: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (options.subject) { - if (payload.sub !== options.subject) { - return done(new JsonWebTokenError('jwt subject invalid. expected: ' + options.subject)); - } - } +"use strict"; - if (options.jwtid) { - if (payload.jti !== options.jwtid) { - return done(new JsonWebTokenError('jwt jwtid invalid. expected: ' + options.jwtid)); - } - } - if (options.nonce) { - if (payload.nonce !== options.nonce) { - return done(new JsonWebTokenError('jwt nonce invalid. expected: ' + options.nonce)); - } - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (options.maxAge) { - if (typeof payload.iat !== 'number') { - return done(new JsonWebTokenError('iat required when maxAge is specified')); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - const maxAgeTimestamp = timespan(options.maxAge, payload.iat); - if (typeof maxAgeTimestamp === 'undefined') { - return done(new JsonWebTokenError('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60')); - } - if (clockTimestamp >= maxAgeTimestamp + (options.clockTolerance || 0)) { - return done(new TokenExpiredError('maxAge exceeded', new Date(maxAgeTimestamp * 1000))); - } - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (options.complete === true) { - const signature = decodedToken.signature; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - return done(null, { - header: header, - payload: payload, - signature: signature - }); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - return done(null, payload); - }); -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +/** + * The SharingPolicyInfo model module. + * @module model/SharingPolicyInfo + * @version 3.6.3 + */ +var SharingPolicyInfo = /*#__PURE__*/function () { + /** + * Constructs a new SharingPolicyInfo. + * @alias module:model/SharingPolicyInfo + */ + function SharingPolicyInfo() { + _classCallCheck(this, SharingPolicyInfo); -/***/ }), + SharingPolicyInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ 38622: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var Buffer = (__nccwpck_require__(93058).Buffer); -var crypto = __nccwpck_require__(76982); -var formatEcdsa = __nccwpck_require__(325); -var util = __nccwpck_require__(39023); + _createClass(SharingPolicyInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SharingPolicyInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SharingPolicyInfo} obj Optional instance to populate. + * @return {module:model/SharingPolicyInfo} The populated SharingPolicyInfo instance. + */ -var MSG_INVALID_ALGORITHM = '"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".' -var MSG_INVALID_SECRET = 'secret must be a string or buffer'; -var MSG_INVALID_VERIFIER_KEY = 'key must be a string or a buffer'; -var MSG_INVALID_SIGNER_KEY = 'key must be a string, a buffer or an object'; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SharingPolicyInfo(); -var supportsKeyObjects = typeof crypto.createPublicKey === 'function'; -if (supportsKeyObjects) { - MSG_INVALID_VERIFIER_KEY += ' or a KeyObject'; - MSG_INVALID_SECRET += 'or a KeyObject'; -} + if (data.hasOwnProperty('default_share_link_ttl')) { + obj['default_share_link_ttl'] = _ApiClient["default"].convertToType(data['default_share_link_ttl'], 'Number'); + } + } + + return obj; + } + }]); + + return SharingPolicyInfo; +}(); +/** + * @member {Number} default_share_link_ttl + */ -function checkIsPublicKey(key) { - if (Buffer.isBuffer(key)) { - return; - } - if (typeof key === 'string') { - return; - } +SharingPolicyInfo.prototype['default_share_link_ttl'] = undefined; +var _default = SharingPolicyInfo; +exports["default"] = _default; - if (!supportsKeyObjects) { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } +/***/ }), - if (typeof key !== 'object') { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } +/***/ 61530: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (typeof key.type !== 'string') { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } +"use strict"; - if (typeof key.asymmetricKeyType !== 'string') { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } - if (typeof key.export !== 'function') { - throw typeError(MSG_INVALID_VERIFIER_KEY); - } -}; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -function checkIsPrivateKey(key) { - if (Buffer.isBuffer(key)) { - return; - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (typeof key === 'string') { - return; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (typeof key === 'object') { - return; - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - throw typeError(MSG_INVALID_SIGNER_KEY); -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function checkIsSecretKey(key) { - if (Buffer.isBuffer(key)) { - return; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (typeof key === 'string') { - return key; - } +/** + * The SignDataWithClassicKey model module. + * @module model/SignDataWithClassicKey + * @version 3.6.3 + */ +var SignDataWithClassicKey = /*#__PURE__*/function () { + /** + * Constructs a new SignDataWithClassicKey. + * @alias module:model/SignDataWithClassicKey + * @param data {String} Data + * @param displayId {String} The name of the key to use in the sign data process + * @param name {String} ClassicKey name + * @param version {Number} classic key version + */ + function SignDataWithClassicKey(data, displayId, name, version) { + _classCallCheck(this, SignDataWithClassicKey); - if (!supportsKeyObjects) { - throw typeError(MSG_INVALID_SECRET); + SignDataWithClassicKey.initialize(this, data, displayId, name, version); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (typeof key !== 'object') { - throw typeError(MSG_INVALID_SECRET); - } - if (key.type !== 'secret') { - throw typeError(MSG_INVALID_SECRET); - } + _createClass(SignDataWithClassicKey, null, [{ + key: "initialize", + value: function initialize(obj, data, displayId, name, version) { + obj['data'] = data; + obj['display-id'] = displayId; + obj['name'] = name; + obj['version'] = version; + } + /** + * Constructs a SignDataWithClassicKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SignDataWithClassicKey} obj Optional instance to populate. + * @return {module:model/SignDataWithClassicKey} The populated SignDataWithClassicKey instance. + */ - if (typeof key.export !== 'function') { - throw typeError(MSG_INVALID_SECRET); - } -} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SignDataWithClassicKey(); -function fromBase64(base64) { - return base64 - .replace(/=/g, '') - .replace(/\+/g, '-') - .replace(/\//g, '_'); -} + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } -function toBase64(base64url) { - base64url = base64url.toString(); + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } - var padding = 4 - base64url.length % 4; - if (padding !== 4) { - for (var i = 0; i < padding; ++i) { - base64url += '='; - } - } + if (data.hasOwnProperty('hashed')) { + obj['hashed'] = _ApiClient["default"].convertToType(data['hashed'], 'Boolean'); + } - return base64url - .replace(/\-/g, '+') - .replace(/_/g, '/'); -} + if (data.hasOwnProperty('hashing-method')) { + obj['hashing-method'] = _ApiClient["default"].convertToType(data['hashing-method'], 'String'); + } -function typeError(template) { - var args = [].slice.call(arguments, 1); - var errMsg = util.format.bind(util, template).apply(null, args); - return new TypeError(errMsg); -} + if (data.hasOwnProperty('ignore-cache')) { + obj['ignore-cache'] = _ApiClient["default"].convertToType(data['ignore-cache'], 'String'); + } -function bufferOrString(obj) { - return Buffer.isBuffer(obj) || typeof obj === 'string'; -} + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -function normalizeInput(thing) { - if (!bufferOrString(thing)) - thing = JSON.stringify(thing); - return thing; -} + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -function createHmacSigner(bits) { - return function sign(thing, secret) { - checkIsSecretKey(secret); - thing = normalizeInput(thing); - var hmac = crypto.createHmac('sha' + bits, secret); - var sig = (hmac.update(thing), hmac.digest('base64')) - return fromBase64(sig); - } -} + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -var bufferEqual; -var timingSafeEqual = 'timingSafeEqual' in crypto ? function timingSafeEqual(a, b) { - if (a.byteLength !== b.byteLength) { - return false; - } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } - return crypto.timingSafeEqual(a, b) -} : function timingSafeEqual(a, b) { - if (!bufferEqual) { - bufferEqual = __nccwpck_require__(39732); - } + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } - return bufferEqual(a, b) -} + return obj; + } + }]); -function createHmacVerifier(bits) { - return function verify(thing, signature, secret) { - var computedSig = createHmacSigner(bits)(thing, secret); - return timingSafeEqual(Buffer.from(signature), Buffer.from(computedSig)); - } -} + return SignDataWithClassicKey; +}(); +/** + * Data + * @member {String} data + */ -function createKeySigner(bits) { - return function sign(thing, privateKey) { - checkIsPrivateKey(privateKey); - thing = normalizeInput(thing); - // Even though we are specifying "RSA" here, this works with ECDSA - // keys as well. - var signer = crypto.createSign('RSA-SHA' + bits); - var sig = (signer.update(thing), signer.sign(privateKey, 'base64')); - return fromBase64(sig); - } -} -function createKeyVerifier(bits) { - return function verify(thing, signature, publicKey) { - checkIsPublicKey(publicKey); - thing = normalizeInput(thing); - signature = toBase64(signature); - var verifier = crypto.createVerify('RSA-SHA' + bits); - verifier.update(thing); - return verifier.verify(publicKey, signature, 'base64'); - } -} +SignDataWithClassicKey.prototype['data'] = undefined; +/** + * The name of the key to use in the sign data process + * @member {String} display-id + */ -function createPSSKeySigner(bits) { - return function sign(thing, privateKey) { - checkIsPrivateKey(privateKey); - thing = normalizeInput(thing); - var signer = crypto.createSign('RSA-SHA' + bits); - var sig = (signer.update(thing), signer.sign({ - key: privateKey, - padding: crypto.constants.RSA_PKCS1_PSS_PADDING, - saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST - }, 'base64')); - return fromBase64(sig); - } -} +SignDataWithClassicKey.prototype['display-id'] = undefined; +/** + * Defines whether the data should be hashed as part of the signing. If true, the data will not be hashed + * @member {Boolean} hashed + * @default false + */ -function createPSSKeyVerifier(bits) { - return function verify(thing, signature, publicKey) { - checkIsPublicKey(publicKey); - thing = normalizeInput(thing); - signature = toBase64(signature); - var verifier = crypto.createVerify('RSA-SHA' + bits); - verifier.update(thing); - return verifier.verify({ - key: publicKey, - padding: crypto.constants.RSA_PKCS1_PSS_PADDING, - saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST - }, signature, 'base64'); - } -} +SignDataWithClassicKey.prototype['hashed'] = false; +/** + * HashingMethod + * @member {String} hashing-method + * @default 'SHA256' + */ -function createECDSASigner(bits) { - var inner = createKeySigner(bits); - return function sign() { - var signature = inner.apply(null, arguments); - signature = formatEcdsa.derToJose(signature, 'ES' + bits); - return signature; - }; -} +SignDataWithClassicKey.prototype['hashing-method'] = 'SHA256'; +/** + * Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI + * @member {String} ignore-cache + * @default 'false' + */ -function createECDSAVerifer(bits) { - var inner = createKeyVerifier(bits); - return function verify(thing, signature, publicKey) { - signature = formatEcdsa.joseToDer(signature, 'ES' + bits).toString('base64'); - var result = inner(thing, signature, publicKey); - return result; - }; -} +SignDataWithClassicKey.prototype['ignore-cache'] = 'false'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -function createNoneSigner() { - return function sign() { - return ''; - } -} +SignDataWithClassicKey.prototype['json'] = false; +/** + * ClassicKey name + * @member {String} name + */ -function createNoneVerifier() { - return function verify(thing, signature) { - return signature === ''; - } -} +SignDataWithClassicKey.prototype['name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -module.exports = function jwa(algorithm) { - var signerFactories = { - hs: createHmacSigner, - rs: createKeySigner, - ps: createPSSKeySigner, - es: createECDSASigner, - none: createNoneSigner, - } - var verifierFactories = { - hs: createHmacVerifier, - rs: createKeyVerifier, - ps: createPSSKeyVerifier, - es: createECDSAVerifer, - none: createNoneVerifier, - } - var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/); - if (!match) - throw typeError(MSG_INVALID_ALGORITHM, algorithm); - var algo = (match[1] || match[3]).toLowerCase(); - var bits = match[2]; +SignDataWithClassicKey.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - return { - sign: signerFactories[algo](bits), - verify: verifierFactories[algo](bits), - } -}; +SignDataWithClassicKey.prototype['uid-token'] = undefined; +/** + * classic key version + * @member {Number} version + */ +SignDataWithClassicKey.prototype['version'] = undefined; +var _default = SignDataWithClassicKey; +exports["default"] = _default; /***/ }), -/***/ 33324: +/***/ 46273: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/*global exports*/ -var SignStream = __nccwpck_require__(78600); -var VerifyStream = __nccwpck_require__(4368); - -var ALGORITHMS = [ - 'HS256', 'HS384', 'HS512', - 'RS256', 'RS384', 'RS512', - 'PS256', 'PS384', 'PS512', - 'ES256', 'ES384', 'ES512' -]; +"use strict"; -exports.ALGORITHMS = ALGORITHMS; -exports.sign = SignStream.sign; -exports.verify = VerifyStream.verify; -exports.decode = VerifyStream.decode; -exports.isValid = VerifyStream.isValid; -exports.createSign = function createSign(opts) { - return new SignStream(opts); -}; -exports.createVerify = function createVerify(opts) { - return new VerifyStream(opts); -}; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/***/ }), +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ 41831: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/*global module, process*/ -var Buffer = (__nccwpck_require__(93058).Buffer); -var Stream = __nccwpck_require__(2203); -var util = __nccwpck_require__(39023); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function DataStream(data) { - this.buffer = null; - this.writable = true; - this.readable = true; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // No input - if (!data) { - this.buffer = Buffer.alloc(0); - return this; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // Stream - if (typeof data.pipe === 'function') { - this.buffer = Buffer.alloc(0); - data.pipe(this); - return this; - } +/** + * The SignEcDsa model module. + * @module model/SignEcDsa + * @version 3.6.3 + */ +var SignEcDsa = /*#__PURE__*/function () { + /** + * Constructs a new SignEcDsa. + * signEcDsa Calculates the signature of a given message using ECDSA and a sha hash algorithm matching the key size + * @alias module:model/SignEcDsa + * @param message {String} The input message to sign in a base64 format + */ + function SignEcDsa(message) { + _classCallCheck(this, SignEcDsa); - // Buffer or String - // or Object (assumedly a passworded key) - if (data.length || typeof data === 'object') { - this.buffer = data; - this.writable = false; - process.nextTick(function () { - this.emit('end', data); - this.readable = false; - this.emit('close'); - }.bind(this)); - return this; + SignEcDsa.initialize(this, message); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - throw new TypeError('Unexpected data type ('+ typeof data + ')'); -} -util.inherits(DataStream, Stream); -DataStream.prototype.write = function write(data) { - this.buffer = Buffer.concat([this.buffer, Buffer.from(data)]); - this.emit('data', data); -}; + _createClass(SignEcDsa, null, [{ + key: "initialize", + value: function initialize(obj, message) { + obj['message'] = message; + } + /** + * Constructs a SignEcDsa from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SignEcDsa} obj Optional instance to populate. + * @return {module:model/SignEcDsa} The populated SignEcDsa instance. + */ -DataStream.prototype.end = function end(data) { - if (data) - this.write(data); - this.emit('end', data); - this.emit('close'); - this.writable = false; - this.readable = false; -}; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SignEcDsa(); -module.exports = DataStream; + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } -/***/ }), + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/***/ 78600: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } -/*global module*/ -var Buffer = (__nccwpck_require__(93058).Buffer); -var DataStream = __nccwpck_require__(41831); -var jwa = __nccwpck_require__(38622); -var Stream = __nccwpck_require__(2203); -var toString = __nccwpck_require__(95126); -var util = __nccwpck_require__(39023); + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } -function base64url(string, encoding) { - return Buffer - .from(string, encoding) - .toString('base64') - .replace(/=/g, '') - .replace(/\+/g, '-') - .replace(/\//g, '_'); -} + if (data.hasOwnProperty('prehashed')) { + obj['prehashed'] = _ApiClient["default"].convertToType(data['prehashed'], 'Boolean'); + } -function jwsSecuredInput(header, payload, encoding) { - encoding = encoding || 'utf8'; - var encodedHeader = base64url(toString(header), 'binary'); - var encodedPayload = base64url(toString(payload), encoding); - return util.format('%s.%s', encodedHeader, encodedPayload); -} + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -function jwsSign(opts) { - var header = opts.header; - var payload = opts.payload; - var secretOrKey = opts.secret || opts.privateKey; - var encoding = opts.encoding; - var algo = jwa(header.alg); - var securedInput = jwsSecuredInput(header, payload, encoding); - var signature = algo.sign(securedInput, secretOrKey); - return util.format('%s.%s', securedInput, signature); -} + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -function SignStream(opts) { - var secret = opts.secret; - secret = secret == null ? opts.privateKey : secret; - secret = secret == null ? opts.key : secret; - if (/^hs/i.test(opts.header.alg) === true && secret == null) { - throw new TypeError('secret must be a string or buffer or a KeyObject') - } - var secretStream = new DataStream(secret); - this.readable = true; - this.header = opts.header; - this.encoding = opts.encoding; - this.secret = this.privateKey = this.key = secretStream; - this.payload = new DataStream(opts.payload); - this.secret.once('close', function () { - if (!this.payload.writable && this.readable) - this.sign(); - }.bind(this)); + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } - this.payload.once('close', function () { - if (!this.secret.writable && this.readable) - this.sign(); - }.bind(this)); -} -util.inherits(SignStream, Stream); + return obj; + } + }]); -SignStream.prototype.sign = function sign() { - try { - var signature = jwsSign({ - header: this.header, - payload: this.payload.buffer, - secret: this.secret.buffer, - encoding: this.encoding - }); - this.emit('done', signature); - this.emit('data', signature); - this.emit('end'); - this.readable = false; - return signature; - } catch (e) { - this.readable = false; - this.emit('error', e); - this.emit('close'); - } -}; + return SignEcDsa; +}(); +/** + * The display id of the EC key to use for the signing process + * @member {String} display-id + */ -SignStream.sign = jwsSign; -module.exports = SignStream; +SignEcDsa.prototype['display-id'] = undefined; +/** + * The item id of the EC key to use for the signing process + * @member {Number} item-id + */ +SignEcDsa.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ }), +SignEcDsa.prototype['json'] = false; +/** + * The name of the EC key to use for the signing process + * @member {String} key-name + */ -/***/ 95126: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +SignEcDsa.prototype['key-name'] = undefined; +/** + * The input message to sign in a base64 format + * @member {String} message + */ -/*global module*/ -var Buffer = (__nccwpck_require__(20181).Buffer); +SignEcDsa.prototype['message'] = undefined; +/** + * Markes that the message is already hashed + * @member {Boolean} prehashed + */ -module.exports = function toString(obj) { - if (typeof obj === 'string') - return obj; - if (typeof obj === 'number' || Buffer.isBuffer(obj)) - return obj.toString(); - return JSON.stringify(obj); -}; +SignEcDsa.prototype['prehashed'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ +SignEcDsa.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -/***/ }), +SignEcDsa.prototype['uid-token'] = undefined; +/** + * The version of the key to use for signing + * @member {Number} version + */ -/***/ 4368: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +SignEcDsa.prototype['version'] = undefined; +var _default = SignEcDsa; +exports["default"] = _default; -/*global module*/ -var Buffer = (__nccwpck_require__(93058).Buffer); -var DataStream = __nccwpck_require__(41831); -var jwa = __nccwpck_require__(38622); -var Stream = __nccwpck_require__(2203); -var toString = __nccwpck_require__(95126); -var util = __nccwpck_require__(39023); -var JWS_REGEX = /^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/; +/***/ }), -function isObject(thing) { - return Object.prototype.toString.call(thing) === '[object Object]'; -} +/***/ 18996: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -function safeJsonParse(thing) { - if (isObject(thing)) - return thing; - try { return JSON.parse(thing); } - catch (e) { return undefined; } -} +"use strict"; -function headerFromJWS(jwsSig) { - var encodedHeader = jwsSig.split('.', 1)[0]; - return safeJsonParse(Buffer.from(encodedHeader, 'base64').toString('binary')); -} -function securedInputFromJWS(jwsSig) { - return jwsSig.split('.', 2).join('.'); -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -function signatureFromJWS(jwsSig) { - return jwsSig.split('.')[2]; -} +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -function payloadFromJWS(jwsSig, encoding) { - encoding = encoding || 'utf8'; - var payload = jwsSig.split('.')[1]; - return Buffer.from(payload, 'base64').toString(encoding); -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function isValidJws(string) { - return JWS_REGEX.test(string) && !!headerFromJWS(string); -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function jwsVerify(jwsSig, algorithm, secretOrKey) { - if (!algorithm) { - var err = new Error("Missing algorithm parameter for jws.verify"); - err.code = "MISSING_ALGORITHM"; - throw err; - } - jwsSig = toString(jwsSig); - var signature = signatureFromJWS(jwsSig); - var securedInput = securedInputFromJWS(jwsSig); - var algo = jwa(algorithm); - return algo.verify(securedInput, signature, secretOrKey); -} +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function jwsDecode(jwsSig, opts) { - opts = opts || {}; - jwsSig = toString(jwsSig); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (!isValidJws(jwsSig)) - return null; +/** + * The SignEcDsaOutput model module. + * @module model/SignEcDsaOutput + * @version 3.6.3 + */ +var SignEcDsaOutput = /*#__PURE__*/function () { + /** + * Constructs a new SignEcDsaOutput. + * @alias module:model/SignEcDsaOutput + */ + function SignEcDsaOutput() { + _classCallCheck(this, SignEcDsaOutput); - var header = headerFromJWS(jwsSig); + SignEcDsaOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (!header) - return null; - var payload = payloadFromJWS(jwsSig); - if (header.typ === 'JWT' || opts.json) - payload = JSON.parse(payload, opts.encoding); + _createClass(SignEcDsaOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SignEcDsaOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SignEcDsaOutput} obj Optional instance to populate. + * @return {module:model/SignEcDsaOutput} The populated SignEcDsaOutput instance. + */ - return { - header: header, - payload: payload, - signature: signatureFromJWS(jwsSig) - }; -} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SignEcDsaOutput(); -function VerifyStream(opts) { - opts = opts || {}; - var secretOrKey = opts.secret; - secretOrKey = secretOrKey == null ? opts.publicKey : secretOrKey; - secretOrKey = secretOrKey == null ? opts.key : secretOrKey; - if (/^hs/i.test(opts.algorithm) === true && secretOrKey == null) { - throw new TypeError('secret must be a string or buffer or a KeyObject') - } - var secretStream = new DataStream(secretOrKey); - this.readable = true; - this.algorithm = opts.algorithm; - this.encoding = opts.encoding; - this.secret = this.publicKey = this.key = secretStream; - this.signature = new DataStream(opts.signature); - this.secret.once('close', function () { - if (!this.signature.writable && this.readable) - this.verify(); - }.bind(this)); + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } - this.signature.once('close', function () { - if (!this.secret.writable && this.readable) - this.verify(); - }.bind(this)); -} -util.inherits(VerifyStream, Stream); -VerifyStream.prototype.verify = function verify() { - try { - var valid = jwsVerify(this.signature.buffer, this.algorithm, this.key.buffer); - var obj = jwsDecode(this.signature.buffer, this.encoding); - this.emit('done', valid, obj); - this.emit('data', valid); - this.emit('end'); - this.readable = false; - return valid; - } catch (e) { - this.readable = false; - this.emit('error', e); - this.emit('close'); - } -}; + return obj; + } + }]); -VerifyStream.decode = jwsDecode; -VerifyStream.isValid = isValidJws; -VerifyStream.verify = jwsVerify; + return SignEcDsaOutput; +}(); +/** + * @member {String} result + */ -module.exports = VerifyStream; +SignEcDsaOutput.prototype['result'] = undefined; +var _default = SignEcDsaOutput; +exports["default"] = _default; /***/ }), -/***/ 14277: -/***/ ((module) => { - -/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ +/***/ 95289: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; +"use strict"; -/** `Object#toString` result references. */ -var symbolTag = '[object Symbol]'; -/** Used to match words composed of alphanumeric characters. */ -var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/** Used to match Latin Unicode letters (excluding mathematical operators). */ -var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/** Used to compose unicode character classes. */ -var rsAstralRange = '\\ud800-\\udfff', - rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23', - rsComboSymbolsRange = '\\u20d0-\\u20f0', - rsDingbatRange = '\\u2700-\\u27bf', - rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff', - rsMathOpRange = '\\xac\\xb1\\xd7\\xf7', - rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf', - rsPunctuationRange = '\\u2000-\\u206f', - rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000', - rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde', - rsVarRange = '\\ufe0e\\ufe0f', - rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/** Used to compose unicode capture groups. */ -var rsApos = "['\u2019]", - rsAstral = '[' + rsAstralRange + ']', - rsBreak = '[' + rsBreakRange + ']', - rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']', - rsDigits = '\\d+', - rsDingbat = '[' + rsDingbatRange + ']', - rsLower = '[' + rsLowerRange + ']', - rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']', - rsFitz = '\\ud83c[\\udffb-\\udfff]', - rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')', - rsNonAstral = '[^' + rsAstralRange + ']', - rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}', - rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]', - rsUpper = '[' + rsUpperRange + ']', - rsZWJ = '\\u200d'; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/** Used to compose unicode regexes. */ -var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')', - rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')', - rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?', - rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?', - reOptMod = rsModifier + '?', - rsOptVar = '[' + rsVarRange + ']?', - rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*', - rsSeq = rsOptVar + reOptMod + rsOptJoin, - rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq, - rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')'; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/** Used to match apostrophes. */ -var reApos = RegExp(rsApos, 'g'); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and - * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols). + * The SignGPG model module. + * @module model/SignGPG + * @version 3.6.3 */ -var reComboMark = RegExp(rsCombo, 'g'); +var SignGPG = /*#__PURE__*/function () { + /** + * Constructs a new SignGPG. + * @alias module:model/SignGPG + * @param keyName {String} The name of the key to use in the encryption process + * @param message {String} The message to be signed in base64 format + */ + function SignGPG(keyName, message) { + _classCallCheck(this, SignGPG); -/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ -var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); + SignGPG.initialize(this, keyName, message); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/** Used to match complex or compound words. */ -var reUnicodeWord = RegExp([ - rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')', - rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')', - rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr, - rsUpper + '+' + rsOptUpperContr, - rsDigits, - rsEmoji -].join('|'), 'g'); -/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ -var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']'); + _createClass(SignGPG, null, [{ + key: "initialize", + value: function initialize(obj, keyName, message) { + obj['key-name'] = keyName; + obj['message'] = message; + } + /** + * Constructs a SignGPG from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SignGPG} obj Optional instance to populate. + * @return {module:model/SignGPG} The populated SignGPG instance. + */ -/** Used to detect strings that need a more robust regexp to match words. */ -var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SignGPG(); -/** Used to map Latin Unicode letters to basic Latin letters. */ -var deburredLetters = { - // Latin-1 Supplement block. - '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A', - '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a', - '\xc7': 'C', '\xe7': 'c', - '\xd0': 'D', '\xf0': 'd', - '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E', - '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e', - '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I', - '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i', - '\xd1': 'N', '\xf1': 'n', - '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O', - '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o', - '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U', - '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u', - '\xdd': 'Y', '\xfd': 'y', '\xff': 'y', - '\xc6': 'Ae', '\xe6': 'ae', - '\xde': 'Th', '\xfe': 'th', - '\xdf': 'ss', - // Latin Extended-A block. - '\u0100': 'A', '\u0102': 'A', '\u0104': 'A', - '\u0101': 'a', '\u0103': 'a', '\u0105': 'a', - '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C', - '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c', - '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd', - '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E', - '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e', - '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G', - '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g', - '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h', - '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I', - '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i', - '\u0134': 'J', '\u0135': 'j', - '\u0136': 'K', '\u0137': 'k', '\u0138': 'k', - '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L', - '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l', - '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N', - '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n', - '\u014c': 'O', '\u014e': 'O', '\u0150': 'O', - '\u014d': 'o', '\u014f': 'o', '\u0151': 'o', - '\u0154': 'R', '\u0156': 'R', '\u0158': 'R', - '\u0155': 'r', '\u0157': 'r', '\u0159': 'r', - '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S', - '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's', - '\u0162': 'T', '\u0164': 'T', '\u0166': 'T', - '\u0163': 't', '\u0165': 't', '\u0167': 't', - '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U', - '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u', - '\u0174': 'W', '\u0175': 'w', - '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y', - '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z', - '\u017a': 'z', '\u017c': 'z', '\u017e': 'z', - '\u0132': 'IJ', '\u0133': 'ij', - '\u0152': 'Oe', '\u0153': 'oe', - '\u0149': "'n", '\u017f': 'ss' -}; + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } -/** - * A specialized version of `_.reduce` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {*} [accumulator] The initial value. - * @param {boolean} [initAccum] Specify using the first element of `array` as - * the initial value. - * @returns {*} Returns the accumulated value. - */ -function arrayReduce(array, iteratee, accumulator, initAccum) { - var index = -1, - length = array ? array.length : 0; + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } - if (initAccum && length) { - accumulator = array[++index]; - } - while (++index < length) { - accumulator = iteratee(accumulator, array[index], index, array); - } - return accumulator; -} + if (data.hasOwnProperty('passphrase')) { + obj['passphrase'] = _ApiClient["default"].convertToType(data['passphrase'], 'String'); + } -/** - * Converts an ASCII `string` to an array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the converted array. - */ -function asciiToArray(string) { - return string.split(''); -} + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + return SignGPG; +}(); /** - * Splits an ASCII `string` into an array of its words. - * - * @private - * @param {string} The string to inspect. - * @returns {Array} Returns the words of `string`. + * The display id of the key to use in the encryption process + * @member {String} display-id */ -function asciiWords(string) { - return string.match(reAsciiWord) || []; -} + +SignGPG.prototype['display-id'] = undefined; /** - * The base implementation of `_.propertyOf` without support for deep paths. - * - * @private - * @param {Object} object The object to query. - * @returns {Function} Returns the new accessor function. + * The item id of the key to use in the encryption process + * @member {Number} item-id */ -function basePropertyOf(object) { - return function(key) { - return object == null ? undefined : object[key]; - }; -} +SignGPG.prototype['item-id'] = undefined; /** - * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A - * letters to basic Latin letters. - * - * @private - * @param {string} letter The matched letter to deburr. - * @returns {string} Returns the deburred letter. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -var deburrLetter = basePropertyOf(deburredLetters); +SignGPG.prototype['json'] = false; /** - * Checks if `string` contains Unicode symbols. - * - * @private - * @param {string} string The string to inspect. - * @returns {boolean} Returns `true` if a symbol is found, else `false`. + * The name of the key to use in the encryption process + * @member {String} key-name */ -function hasUnicode(string) { - return reHasUnicode.test(string); -} +SignGPG.prototype['key-name'] = undefined; /** - * Checks if `string` contains a word composed of Unicode symbols. - * - * @private - * @param {string} string The string to inspect. - * @returns {boolean} Returns `true` if a word is found, else `false`. + * The message to be signed in base64 format + * @member {String} message */ -function hasUnicodeWord(string) { - return reHasUnicodeWord.test(string); -} +SignGPG.prototype['message'] = undefined; /** - * Converts `string` to an array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the converted array. + * Passphrase that was used to generate the key + * @member {String} passphrase */ -function stringToArray(string) { - return hasUnicode(string) - ? unicodeToArray(string) - : asciiToArray(string); -} +SignGPG.prototype['passphrase'] = undefined; /** - * Converts a Unicode `string` to an array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the converted array. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -function unicodeToArray(string) { - return string.match(reUnicode) || []; -} +SignGPG.prototype['token'] = undefined; /** - * Splits a Unicode `string` into an array of its words. - * - * @private - * @param {string} The string to inspect. - * @returns {Array} Returns the words of `string`. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -function unicodeWords(string) { - return string.match(reUnicodeWord) || []; -} -/** Used for built-in method references. */ -var objectProto = Object.prototype; +SignGPG.prototype['uid-token'] = undefined; +var _default = SignGPG; +exports["default"] = _default; -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; +/***/ }), -/** Built-in value references. */ -var Symbol = root.Symbol; +/***/ 72732: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined; +"use strict"; -/** - * The base implementation of `_.slice` without an iteratee call guard. - * - * @private - * @param {Array} array The array to slice. - * @param {number} [start=0] The start position. - * @param {number} [end=array.length] The end position. - * @returns {Array} Returns the slice of `array`. - */ -function baseSlice(array, start, end) { - var index = -1, - length = array.length; - if (start < 0) { - start = -start > length ? 0 : (length + start); - } - end = end > length ? length : end; - if (end < 0) { - end += length; - } - length = start > end ? 0 : ((end - start) >>> 0); - start >>>= 0; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - var result = Array(length); - while (++index < length) { - result[index] = array[index + start]; - } - return result; -} +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The base implementation of `_.toString` which doesn't convert nullish - * values to empty strings. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. + * The SignGPGOutput model module. + * @module model/SignGPGOutput + * @version 3.6.3 */ -function baseToString(value) { - // Exit early for strings to avoid a performance hit in some environments. - if (typeof value == 'string') { - return value; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ''; +var SignGPGOutput = /*#__PURE__*/function () { + /** + * Constructs a new SignGPGOutput. + * @alias module:model/SignGPGOutput + */ + function SignGPGOutput() { + _classCallCheck(this, SignGPGOutput); + + SignGPGOutput.initialize(this); } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(SignGPGOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SignGPGOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SignGPGOutput} obj Optional instance to populate. + * @return {module:model/SignGPGOutput} The populated SignGPGOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SignGPGOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + return obj; + } + }]); + + return SignGPGOutput; +}(); /** - * Casts `array` to a slice if it's needed. - * - * @private - * @param {Array} array The array to inspect. - * @param {number} start The start position. - * @param {number} [end=array.length] The end position. - * @returns {Array} Returns the cast slice. + * @member {String} result */ -function castSlice(array, start, end) { - var length = array.length; - end = end === undefined ? length : end; - return (!start && end >= length) ? array : baseSlice(array, start, end); -} + + +SignGPGOutput.prototype['result'] = undefined; +var _default = SignGPGOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 23913: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Creates a function like `_.lowerFirst`. - * - * @private - * @param {string} methodName The name of the `String` case method to use. - * @returns {Function} Returns the new case function. + * The SignJWTOutput model module. + * @module model/SignJWTOutput + * @version 3.6.3 */ -function createCaseFirst(methodName) { - return function(string) { - string = toString(string); +var SignJWTOutput = /*#__PURE__*/function () { + /** + * Constructs a new SignJWTOutput. + * @alias module:model/SignJWTOutput + */ + function SignJWTOutput() { + _classCallCheck(this, SignJWTOutput); - var strSymbols = hasUnicode(string) - ? stringToArray(string) - : undefined; + SignJWTOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - var chr = strSymbols - ? strSymbols[0] - : string.charAt(0); - var trailing = strSymbols - ? castSlice(strSymbols, 1).join('') - : string.slice(1); + _createClass(SignJWTOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SignJWTOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SignJWTOutput} obj Optional instance to populate. + * @return {module:model/SignJWTOutput} The populated SignJWTOutput instance. + */ - return chr[methodName]() + trailing; - }; -} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SignJWTOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + return SignJWTOutput; +}(); /** - * Creates a function like `_.camelCase`. - * - * @private - * @param {Function} callback The function to combine each word. - * @returns {Function} Returns the new compounder function. + * @member {String} result */ -function createCompounder(callback) { - return function(string) { - return arrayReduce(words(deburr(string).replace(reApos, '')), callback, ''); - }; -} + + +SignJWTOutput.prototype['result'] = undefined; +var _default = SignJWTOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 32259: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false + * The SignJWTWithClassicKey model module. + * @module model/SignJWTWithClassicKey + * @version 3.6.3 */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} +var SignJWTWithClassicKey = /*#__PURE__*/function () { + /** + * Constructs a new SignJWTWithClassicKey. + * @alias module:model/SignJWTWithClassicKey + * @param displayId {String} The name of the key to use in the sign JWT process + * @param jwtClaims {String} JWTClaims + * @param signingMethod {String} SigningMethod + * @param version {Number} classic key version + */ + function SignJWTWithClassicKey(displayId, jwtClaims, signingMethod, version) { + _classCallCheck(this, SignJWTWithClassicKey); + + SignJWTWithClassicKey.initialize(this, displayId, jwtClaims, signingMethod, version); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(SignJWTWithClassicKey, null, [{ + key: "initialize", + value: function initialize(obj, displayId, jwtClaims, signingMethod, version) { + obj['display-id'] = displayId; + obj['jwt-claims'] = jwtClaims; + obj['signing-method'] = signingMethod; + obj['version'] = version; + } + /** + * Constructs a SignJWTWithClassicKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SignJWTWithClassicKey} obj Optional instance to populate. + * @return {module:model/SignJWTWithClassicKey} The populated SignJWTWithClassicKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SignJWTWithClassicKey(); + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('jwt-claims')) { + obj['jwt-claims'] = _ApiClient["default"].convertToType(data['jwt-claims'], 'String'); + } + + if (data.hasOwnProperty('signing-method')) { + obj['signing-method'] = _ApiClient["default"].convertToType(data['signing-method'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + return SignJWTWithClassicKey; +}(); /** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false + * The name of the key to use in the sign JWT process + * @member {String} display-id */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); -} + +SignJWTWithClassicKey.prototype['display-id'] = undefined; /** - * Converts `value` to a string. An empty string is returned for `null` - * and `undefined` values. The sign of `-0` is preserved. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {string} Returns the string. - * @example - * - * _.toString(null); - * // => '' - * - * _.toString(-0); - * // => '-0' - * - * _.toString([1, 2, 3]); - * // => '1,2,3' + * Set output format to JSON + * @member {Boolean} json + * @default false */ -function toString(value) { - return value == null ? '' : baseToString(value); -} +SignJWTWithClassicKey.prototype['json'] = false; /** - * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the camel cased string. - * @example - * - * _.camelCase('Foo Bar'); - * // => 'fooBar' - * - * _.camelCase('--foo-bar--'); - * // => 'fooBar' - * - * _.camelCase('__FOO_BAR__'); - * // => 'fooBar' + * JWTClaims + * @member {String} jwt-claims */ -var camelCase = createCompounder(function(result, word, index) { - word = word.toLowerCase(); - return result + (index ? capitalize(word) : word); -}); +SignJWTWithClassicKey.prototype['jwt-claims'] = undefined; /** - * Converts the first character of `string` to upper case and the remaining - * to lower case. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to capitalize. - * @returns {string} Returns the capitalized string. - * @example - * - * _.capitalize('FRED'); - * // => 'Fred' + * SigningMethod + * @member {String} signing-method */ -function capitalize(string) { - return upperFirst(toString(string).toLowerCase()); -} +SignJWTWithClassicKey.prototype['signing-method'] = undefined; /** - * Deburrs `string` by converting - * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) - * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A) - * letters to basic Latin letters and removing - * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to deburr. - * @returns {string} Returns the deburred string. - * @example - * - * _.deburr('déjà vu'); - * // => 'deja vu' + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -function deburr(string) { - string = toString(string); - return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ''); -} +SignJWTWithClassicKey.prototype['token'] = undefined; /** - * Converts the first character of `string` to upper case. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category String - * @param {string} [string=''] The string to convert. - * @returns {string} Returns the converted string. - * @example - * - * _.upperFirst('fred'); - * // => 'Fred' - * - * _.upperFirst('FRED'); - * // => 'FRED' + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -var upperFirst = createCaseFirst('toUpperCase'); +SignJWTWithClassicKey.prototype['uid-token'] = undefined; /** - * Splits `string` into an array of its words. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category String - * @param {string} [string=''] The string to inspect. - * @param {RegExp|string} [pattern] The pattern to match words. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {Array} Returns the words of `string`. - * @example - * - * _.words('fred, barney, & pebbles'); - * // => ['fred', 'barney', 'pebbles'] - * - * _.words('fred, barney, & pebbles', /[^, ]+/g); - * // => ['fred', 'barney', '&', 'pebbles'] + * classic key version + * @member {Number} version */ -function words(string, pattern, guard) { - string = toString(string); - pattern = guard ? undefined : pattern; - - if (pattern === undefined) { - return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string); - } - return string.match(pattern) || []; -} - -module.exports = camelCase; +SignJWTWithClassicKey.prototype['version'] = undefined; +var _default = SignJWTWithClassicKey; +exports["default"] = _default; /***/ }), -/***/ 46248: -/***/ ((module) => { - -/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ +/***/ 40040: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0, - MAX_SAFE_INTEGER = 9007199254740991, - MAX_INTEGER = 1.7976931348623157e+308, - NAN = 0 / 0; +"use strict"; -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - stringTag = '[object String]', - symbolTag = '[object Symbol]'; -/** Used to match leading and trailing whitespace. */ -var reTrim = /^\s+|\s+$/g; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/** Used to detect bad signed hexadecimal string values. */ -var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/** Used to detect binary string values. */ -var reIsBinary = /^0b[01]+$/i; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/** Used to detect octal string values. */ -var reIsOctal = /^0o[0-7]+$/i; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/** Used to detect unsigned integer values. */ -var reIsUint = /^(?:0|[1-9]\d*)$/; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/** Built-in method references without a dependency on `root`. */ -var freeParseInt = parseInt; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * A specialized version of `_.map` for arrays without support for iteratee - * shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the new mapped array. + * The SignOutput model module. + * @module model/SignOutput + * @version 3.6.3 */ -function arrayMap(array, iteratee) { - var index = -1, - length = array ? array.length : 0, - result = Array(length); +var SignOutput = /*#__PURE__*/function () { + /** + * Constructs a new SignOutput. + * @alias module:model/SignOutput + */ + function SignOutput() { + _classCallCheck(this, SignOutput); - while (++index < length) { - result[index] = iteratee(array[index], index, array); + SignOutput.initialize(this); } - return result; -} + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/** - * The base implementation of `_.findIndex` and `_.findLastIndex` without - * support for iteratee shorthands. - * - * @private - * @param {Array} array The array to inspect. - * @param {Function} predicate The function invoked per iteration. - * @param {number} fromIndex The index to search from. - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function baseFindIndex(array, predicate, fromIndex, fromRight) { - var length = array.length, - index = fromIndex + (fromRight ? 1 : -1); - while ((fromRight ? index-- : ++index < length)) { - if (predicate(array[index], index, array)) { - return index; - } - } - return -1; -} + _createClass(SignOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SignOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SignOutput} obj Optional instance to populate. + * @return {module:model/SignOutput} The populated SignOutput instance. + */ -/** - * The base implementation of `_.indexOf` without `fromIndex` bounds checks. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @param {number} fromIndex The index to search from. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function baseIndexOf(array, value, fromIndex) { - if (value !== value) { - return baseFindIndex(array, baseIsNaN, fromIndex); - } - var index = fromIndex - 1, - length = array.length; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SignOutput(); - while (++index < length) { - if (array[index] === value) { - return index; + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; } - } - return -1; -} + }]); + return SignOutput; +}(); /** - * The base implementation of `_.isNaN` without support for number objects. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + * @member {String} result */ -function baseIsNaN(value) { - return value !== value; -} -/** - * The base implementation of `_.times` without support for iteratee shorthands - * or max array length checks. - * - * @private - * @param {number} n The number of times to invoke `iteratee`. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the array of results. - */ -function baseTimes(n, iteratee) { - var index = -1, - result = Array(n); - while (++index < n) { - result[index] = iteratee(index); - } - return result; -} +SignOutput.prototype['result'] = undefined; +var _default = SignOutput; +exports["default"] = _default; -/** - * The base implementation of `_.values` and `_.valuesIn` which creates an - * array of `object` property values corresponding to the property names - * of `props`. - * - * @private - * @param {Object} object The object to query. - * @param {Array} props The property names to get values for. - * @returns {Object} Returns the array of property values. - */ -function baseValues(object, props) { - return arrayMap(props, function(key) { - return object[key]; - }); -} +/***/ }), -/** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ -function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; -} +/***/ 5227: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** Used for built-in method references. */ -var objectProto = Object.prototype; +"use strict"; -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/** Built-in value references. */ -var propertyIsEnumerable = objectProto.propertyIsEnumerable; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeKeys = overArg(Object.keys, Object), - nativeMax = Math.max; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/** - * Creates an array of the enumerable property names of the array-like `value`. - * - * @private - * @param {*} value The value to query. - * @param {boolean} inherited Specify returning inherited property names. - * @returns {Array} Returns the array of property names. - */ -function arrayLikeKeys(value, inherited) { - // Safari 8.1 makes `arguments.callee` enumerable in strict mode. - // Safari 9 makes `arguments.length` enumerable in strict mode. - var result = (isArray(value) || isArguments(value)) - ? baseTimes(value.length, String) - : []; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var length = result.length, - skipIndexes = !!length; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - for (var key in value) { - if ((inherited || hasOwnProperty.call(value, key)) && - !(skipIndexes && (key == 'length' || isIndex(key, length)))) { - result.push(key); - } - } - return result; -} +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. + * The SignPKCS1 model module. + * @module model/SignPKCS1 + * @version 3.6.3 */ -function baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); +var SignPKCS1 = /*#__PURE__*/function () { + /** + * Constructs a new SignPKCS1. + * signPKCS1 is a command that calculates the signature of hashed data using RSASSA-PKCS1-V1_5-SIGN from RSA PKCS#1 v1.5. + * @alias module:model/SignPKCS1 + * @param message {String} The message to be signed + */ + function SignPKCS1(message) { + _classCallCheck(this, SignPKCS1); + + SignPKCS1.initialize(this, message); } - var result = []; - for (var key in Object(object)) { - if (hasOwnProperty.call(object, key) && key != 'constructor') { - result.push(key); + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(SignPKCS1, null, [{ + key: "initialize", + value: function initialize(obj, message) { + obj['message'] = message; } - } - return result; -} + /** + * Constructs a SignPKCS1 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SignPKCS1} obj Optional instance to populate. + * @return {module:model/SignPKCS1} The populated SignPKCS1 instance. + */ -/** - * Checks if `value` is a valid array-like index. - * - * @private - * @param {*} value The value to check. - * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. - * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. - */ -function isIndex(value, length) { - length = length == null ? MAX_SAFE_INTEGER : length; - return !!length && - (typeof value == 'number' || reIsUint.test(value)) && - (value > -1 && value % 1 == 0 && value < length); -} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SignPKCS1(); -/** - * Checks if `value` is likely a prototype object. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. - */ -function isPrototype(value) { - var Ctor = value && value.constructor, - proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } - return value === proto; -} + if (data.hasOwnProperty('hash-function')) { + obj['hash-function'] = _ApiClient["default"].convertToType(data['hash-function'], 'String'); + } -/** - * Checks if `value` is in `collection`. If `collection` is a string, it's - * checked for a substring of `value`, otherwise - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * is used for equality comparisons. If `fromIndex` is negative, it's used as - * the offset from the end of `collection`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Collection - * @param {Array|Object|string} collection The collection to inspect. - * @param {*} value The value to search for. - * @param {number} [fromIndex=0] The index to search from. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. - * @returns {boolean} Returns `true` if `value` is found, else `false`. - * @example - * - * _.includes([1, 2, 3], 1); - * // => true - * - * _.includes([1, 2, 3], 1, 2); - * // => false - * - * _.includes({ 'a': 1, 'b': 2 }, 1); - * // => true - * - * _.includes('abcd', 'bc'); - * // => true - */ -function includes(collection, value, fromIndex, guard) { - collection = isArrayLike(collection) ? collection : values(collection); - fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0; + if (data.hasOwnProperty('input-format')) { + obj['input-format'] = _ApiClient["default"].convertToType(data['input-format'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + + if (data.hasOwnProperty('prehashed')) { + obj['prehashed'] = _ApiClient["default"].convertToType(data['prehashed'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } - var length = collection.length; - if (fromIndex < 0) { - fromIndex = nativeMax(length + fromIndex, 0); - } - return isString(collection) - ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1) - : (!!length && baseIndexOf(collection, value, fromIndex) > -1); -} + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } -/** - * Checks if `value` is likely an `arguments` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an `arguments` object, - * else `false`. - * @example - * - * _.isArguments(function() { return arguments; }()); - * // => true - * - * _.isArguments([1, 2, 3]); - * // => false - */ -function isArguments(value) { - // Safari 8.1 makes `arguments.callee` enumerable in strict mode. - return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && - (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag); -} + return obj; + } + }]); + return SignPKCS1; +}(); /** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false + * The display id of the key to use in the signing process + * @member {String} display-id */ -var isArray = Array.isArray; + +SignPKCS1.prototype['display-id'] = undefined; /** - * Checks if `value` is array-like. A value is considered array-like if it's - * not a function and has a `value.length` that's an integer greater than or - * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is array-like, else `false`. - * @example - * - * _.isArrayLike([1, 2, 3]); - * // => true - * - * _.isArrayLike(document.body.children); - * // => true - * - * _.isArrayLike('abc'); - * // => true - * - * _.isArrayLike(_.noop); - * // => false + * HashFunction defines the hash function (e.g. sha-256) + * @member {String} hash-function */ -function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction(value); -} +SignPKCS1.prototype['hash-function'] = undefined; /** - * This method is like `_.isArrayLike` except that it also checks if `value` - * is an object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array-like object, - * else `false`. - * @example - * - * _.isArrayLikeObject([1, 2, 3]); - * // => true - * - * _.isArrayLikeObject(document.body.children); - * // => true - * - * _.isArrayLikeObject('abc'); - * // => false - * - * _.isArrayLikeObject(_.noop); - * // => false + * Select default assumed format for the plaintext message. Currently supported options: [base64] + * @member {String} input-format */ -function isArrayLikeObject(value) { - return isObjectLike(value) && isArrayLike(value); -} +SignPKCS1.prototype['input-format'] = undefined; /** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false + * The item id of the key to use in the signing process + * @member {Number} item-id */ -function isFunction(value) { - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 8-9 which returns 'object' for typed array and other constructors. - var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag; -} +SignPKCS1.prototype['item-id'] = undefined; /** - * Checks if `value` is a valid array-like length. - * - * **Note:** This method is loosely based on - * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. - * @example - * - * _.isLength(3); - * // => true - * - * _.isLength(Number.MIN_VALUE); - * // => false - * - * _.isLength(Infinity); - * // => false - * - * _.isLength('3'); - * // => false + * Set output format to JSON + * @member {Boolean} json + * @default false */ -function isLength(value) { - return typeof value == 'number' && - value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; -} +SignPKCS1.prototype['json'] = false; /** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false + * The name of the RSA key to use in the signing process + * @member {String} key-name */ -function isObject(value) { - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); -} +SignPKCS1.prototype['key-name'] = undefined; /** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false + * The message to be signed + * @member {String} message */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} +SignPKCS1.prototype['message'] = undefined; /** - * Checks if `value` is classified as a `String` primitive or object. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a string, else `false`. - * @example - * - * _.isString('abc'); - * // => true - * - * _.isString(1); - * // => false + * Markes that the message is already hashed + * @member {Boolean} prehashed */ -function isString(value) { - return typeof value == 'string' || - (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag); -} +SignPKCS1.prototype['prehashed'] = undefined; /** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); -} +SignPKCS1.prototype['token'] = undefined; /** - * Converts `value` to a finite number. - * - * @static - * @memberOf _ - * @since 4.12.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {number} Returns the converted number. - * @example - * - * _.toFinite(3.2); - * // => 3.2 - * - * _.toFinite(Number.MIN_VALUE); - * // => 5e-324 - * - * _.toFinite(Infinity); - * // => 1.7976931348623157e+308 - * - * _.toFinite('3.2'); - * // => 3.2 + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -function toFinite(value) { - if (!value) { - return value === 0 ? value : 0; - } - value = toNumber(value); - if (value === INFINITY || value === -INFINITY) { - var sign = (value < 0 ? -1 : 1); - return sign * MAX_INTEGER; - } - return value === value ? value : 0; -} +SignPKCS1.prototype['uid-token'] = undefined; /** - * Converts `value` to an integer. - * - * **Note:** This method is loosely based on - * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {number} Returns the converted integer. - * @example - * - * _.toInteger(3.2); - * // => 3 - * - * _.toInteger(Number.MIN_VALUE); - * // => 0 - * - * _.toInteger(Infinity); - * // => 1.7976931348623157e+308 - * - * _.toInteger('3.2'); - * // => 3 + * The version of the key to use for signing + * @member {Number} version */ -function toInteger(value) { - var result = toFinite(value), - remainder = result % 1; - return result === result ? (remainder ? result - remainder : result) : 0; -} +SignPKCS1.prototype['version'] = undefined; +var _default = SignPKCS1; +exports["default"] = _default; + +/***/ }), + +/***/ 76138: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Converts `value` to a number. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {number} Returns the number. - * @example - * - * _.toNumber(3.2); - * // => 3.2 - * - * _.toNumber(Number.MIN_VALUE); - * // => 5e-324 - * - * _.toNumber(Infinity); - * // => Infinity - * - * _.toNumber('3.2'); - * // => 3.2 + * The SignPKCS1Output model module. + * @module model/SignPKCS1Output + * @version 3.6.3 */ -function toNumber(value) { - if (typeof value == 'number') { - return value; - } - if (isSymbol(value)) { - return NAN; - } - if (isObject(value)) { - var other = typeof value.valueOf == 'function' ? value.valueOf() : value; - value = isObject(other) ? (other + '') : other; - } - if (typeof value != 'string') { - return value === 0 ? value : +value; +var SignPKCS1Output = /*#__PURE__*/function () { + /** + * Constructs a new SignPKCS1Output. + * @alias module:model/SignPKCS1Output + */ + function SignPKCS1Output() { + _classCallCheck(this, SignPKCS1Output); + + SignPKCS1Output.initialize(this); } - value = value.replace(reTrim, ''); - var isBinary = reIsBinary.test(value); - return (isBinary || reIsOctal.test(value)) - ? freeParseInt(value.slice(2), isBinary ? 2 : 8) - : (reIsBadHex.test(value) ? NAN : +value); -} + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/** - * Creates an array of the own enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. See the - * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * for more details. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.keys(new Foo); - * // => ['a', 'b'] (iteration order is not guaranteed) - * - * _.keys('hi'); - * // => ['0', '1'] - */ -function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); -} + _createClass(SignPKCS1Output, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SignPKCS1Output from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SignPKCS1Output} obj Optional instance to populate. + * @return {module:model/SignPKCS1Output} The populated SignPKCS1Output instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SignPKCS1Output(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return SignPKCS1Output; +}(); /** - * Creates an array of the own enumerable string keyed property values of `object`. - * - * **Note:** Non-object values are coerced to objects. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property values. - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.values(new Foo); - * // => [1, 2] (iteration order is not guaranteed) - * - * _.values('hi'); - * // => ['h', 'i'] + * @member {String} result */ -function values(object) { - return object ? baseValues(object, keys(object)) : []; -} -module.exports = includes; +SignPKCS1Output.prototype['result'] = undefined; +var _default = SignPKCS1Output; +exports["default"] = _default; /***/ }), -/***/ 1999: -/***/ ((module) => { +/***/ 50538: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** - * lodash 3.0.3 (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright 2012-2016 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ +"use strict"; -/** `Object#toString` result references. */ -var boolTag = '[object Boolean]'; -/** Used for built-in method references. */ -var objectProto = Object.prototype; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/** - * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/** - * Checks if `value` is classified as a boolean primitive or object. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isBoolean(false); - * // => true - * - * _.isBoolean(null); - * // => false - */ -function isBoolean(value) { - return value === true || value === false || - (isObjectLike(value) && objectToString.call(value) == boolTag); -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false + * The SignPKICertOutput model module. + * @module model/SignPKICertOutput + * @version 3.6.3 */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} +var SignPKICertOutput = /*#__PURE__*/function () { + /** + * Constructs a new SignPKICertOutput. + * @alias module:model/SignPKICertOutput + */ + function SignPKICertOutput() { + _classCallCheck(this, SignPKICertOutput); -module.exports = isBoolean; + SignPKICertOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), + _createClass(SignPKICertOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SignPKICertOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SignPKICertOutput} obj Optional instance to populate. + * @return {module:model/SignPKICertOutput} The populated SignPKICertOutput instance. + */ -/***/ 39841: -/***/ ((module) => { + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SignPKICertOutput(); + + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + return SignPKICertOutput; +}(); /** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * @member {String} result */ -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0, - MAX_INTEGER = 1.7976931348623157e+308, - NAN = 0 / 0; -/** `Object#toString` result references. */ -var symbolTag = '[object Symbol]'; +SignPKICertOutput.prototype['result'] = undefined; +var _default = SignPKICertOutput; +exports["default"] = _default; -/** Used to match leading and trailing whitespace. */ -var reTrim = /^\s+|\s+$/g; +/***/ }), -/** Used to detect bad signed hexadecimal string values. */ -var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; +/***/ 52048: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** Used to detect binary string values. */ -var reIsBinary = /^0b[01]+$/i; +"use strict"; -/** Used to detect octal string values. */ -var reIsOctal = /^0o[0-7]+$/i; -/** Built-in method references without a dependency on `root`. */ -var freeParseInt = parseInt; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/** Used for built-in method references. */ -var objectProto = Object.prototype; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/** - * Checks if `value` is an integer. - * - * **Note:** This method is based on - * [`Number.isInteger`](https://mdn.io/Number/isInteger). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an integer, else `false`. - * @example - * - * _.isInteger(3); - * // => true - * - * _.isInteger(Number.MIN_VALUE); - * // => false - * - * _.isInteger(Infinity); - * // => false - * - * _.isInteger('3'); - * // => false - */ -function isInteger(value) { - return typeof value == 'number' && value == toInteger(value); -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ -function isObject(value) { - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); -} +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false + * The SignPKICertWithClassicKey model module. + * @module model/SignPKICertWithClassicKey + * @version 3.6.3 */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); -} +var SignPKICertWithClassicKey = /*#__PURE__*/function () { + /** + * Constructs a new SignPKICertWithClassicKey. + * @alias module:model/SignPKICertWithClassicKey + * @param displayId {String} The name of the key to use in the sign PKI Cert process + * @param signingMethod {String} SigningMethod + * @param ttl {Number} he requested Time To Live for the certificate, in seconds + * @param version {Number} classic key version + */ + function SignPKICertWithClassicKey(displayId, signingMethod, ttl, version) { + _classCallCheck(this, SignPKICertWithClassicKey); -/** - * Converts `value` to a finite number. - * - * @static - * @memberOf _ - * @since 4.12.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {number} Returns the converted number. - * @example - * - * _.toFinite(3.2); - * // => 3.2 - * - * _.toFinite(Number.MIN_VALUE); - * // => 5e-324 - * - * _.toFinite(Infinity); - * // => 1.7976931348623157e+308 - * - * _.toFinite('3.2'); - * // => 3.2 - */ -function toFinite(value) { - if (!value) { - return value === 0 ? value : 0; - } - value = toNumber(value); - if (value === INFINITY || value === -INFINITY) { - var sign = (value < 0 ? -1 : 1); - return sign * MAX_INTEGER; + SignPKICertWithClassicKey.initialize(this, displayId, signingMethod, ttl, version); } - return value === value ? value : 0; -} + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(SignPKICertWithClassicKey, null, [{ + key: "initialize", + value: function initialize(obj, displayId, signingMethod, ttl, version) { + obj['display-id'] = displayId; + obj['signing-method'] = signingMethod; + obj['ttl'] = ttl; + obj['version'] = version; + } + /** + * Constructs a SignPKICertWithClassicKey from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SignPKICertWithClassicKey} obj Optional instance to populate. + * @return {module:model/SignPKICertWithClassicKey} The populated SignPKICertWithClassicKey instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SignPKICertWithClassicKey(); + + if (data.hasOwnProperty('common-name')) { + obj['common-name'] = _ApiClient["default"].convertToType(data['common-name'], 'String'); + } + + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); + } + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('dns-names')) { + obj['dns-names'] = _ApiClient["default"].convertToType(data['dns-names'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-usage')) { + obj['key-usage'] = _ApiClient["default"].convertToType(data['key-usage'], 'String'); + } + + if (data.hasOwnProperty('locality')) { + obj['locality'] = _ApiClient["default"].convertToType(data['locality'], 'String'); + } + + if (data.hasOwnProperty('organizational-units')) { + obj['organizational-units'] = _ApiClient["default"].convertToType(data['organizational-units'], 'String'); + } + + if (data.hasOwnProperty('organizations')) { + obj['organizations'] = _ApiClient["default"].convertToType(data['organizations'], 'String'); + } + + if (data.hasOwnProperty('postal-code')) { + obj['postal-code'] = _ApiClient["default"].convertToType(data['postal-code'], 'String'); + } + + if (data.hasOwnProperty('province')) { + obj['province'] = _ApiClient["default"].convertToType(data['province'], 'String'); + } + + if (data.hasOwnProperty('public-key-pem-data')) { + obj['public-key-pem-data'] = _ApiClient["default"].convertToType(data['public-key-pem-data'], 'String'); + } + + if (data.hasOwnProperty('signing-method')) { + obj['signing-method'] = _ApiClient["default"].convertToType(data['signing-method'], 'String'); + } + + if (data.hasOwnProperty('street-address')) { + obj['street-address'] = _ApiClient["default"].convertToType(data['street-address'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('uri-sans')) { + obj['uri-sans'] = _ApiClient["default"].convertToType(data['uri-sans'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + return SignPKICertWithClassicKey; +}(); /** - * Converts `value` to an integer. - * - * **Note:** This method is loosely based on - * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {number} Returns the converted integer. - * @example - * - * _.toInteger(3.2); - * // => 3 - * - * _.toInteger(Number.MIN_VALUE); - * // => 0 - * - * _.toInteger(Infinity); - * // => 1.7976931348623157e+308 - * - * _.toInteger('3.2'); - * // => 3 + * The common name to be included in the PKI certificate + * @member {String} common-name */ -function toInteger(value) { - var result = toFinite(value), - remainder = result % 1; - return result === result ? (remainder ? result - remainder : result) : 0; -} +SignPKICertWithClassicKey.prototype['common-name'] = undefined; /** - * Converts `value` to a number. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {number} Returns the number. - * @example - * - * _.toNumber(3.2); - * // => 3.2 - * - * _.toNumber(Number.MIN_VALUE); - * // => 5e-324 - * - * _.toNumber(Infinity); - * // => Infinity - * - * _.toNumber('3.2'); - * // => 3.2 + * A comma-separated list of the country that will be set in the issued certificate + * @member {String} country */ -function toNumber(value) { - if (typeof value == 'number') { - return value; - } - if (isSymbol(value)) { - return NAN; - } - if (isObject(value)) { - var other = typeof value.valueOf == 'function' ? value.valueOf() : value; - value = isObject(other) ? (other + '') : other; - } - if (typeof value != 'string') { - return value === 0 ? value : +value; - } - value = value.replace(reTrim, ''); - var isBinary = reIsBinary.test(value); - return (isBinary || reIsOctal.test(value)) - ? freeParseInt(value.slice(2), isBinary ? 2 : 8) - : (reIsBadHex.test(value) ? NAN : +value); -} - -module.exports = isInteger; +SignPKICertWithClassicKey.prototype['country'] = undefined; +/** + * The name of the key to use in the sign PKI Cert process + * @member {String} display-id + */ -/***/ }), +SignPKICertWithClassicKey.prototype['display-id'] = undefined; +/** + * DNS Names to be included in the PKI certificate (in a comma-delimited list) + * @member {String} dns-names + */ -/***/ 80116: -/***/ ((module) => { +SignPKICertWithClassicKey.prototype['dns-names'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ +SignPKICertWithClassicKey.prototype['json'] = false; /** - * lodash 3.0.3 (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright 2012-2016 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license + * key-usage + * @member {String} key-usage + * @default 'DigitalSignature,KeyAgreement,KeyEncipherment' */ -/** `Object#toString` result references. */ -var numberTag = '[object Number]'; +SignPKICertWithClassicKey.prototype['key-usage'] = 'DigitalSignature,KeyAgreement,KeyEncipherment'; +/** + * A comma-separated list of the locality that will be set in the issued certificate + * @member {String} locality + */ -/** Used for built-in method references. */ -var objectProto = Object.prototype; +SignPKICertWithClassicKey.prototype['locality'] = undefined; +/** + * A comma-separated list of organizational units (OU) that will be set in the issued certificate + * @member {String} organizational-units + */ +SignPKICertWithClassicKey.prototype['organizational-units'] = undefined; /** - * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) - * of values. + * A comma-separated list of organizations (O) that will be set in the issued certificate + * @member {String} organizations */ -var objectToString = objectProto.toString; +SignPKICertWithClassicKey.prototype['organizations'] = undefined; /** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false + * A comma-separated list of the postal code that will be set in the issued certificate + * @member {String} postal-code */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} +SignPKICertWithClassicKey.prototype['postal-code'] = undefined; /** - * Checks if `value` is classified as a `Number` primitive or object. - * - * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are classified - * as numbers, use the `_.isFinite` method. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isNumber(3); - * // => true - * - * _.isNumber(Number.MIN_VALUE); - * // => true - * - * _.isNumber(Infinity); - * // => true - * - * _.isNumber('3'); - * // => false + * A comma-separated list of the province that will be set in the issued certificate + * @member {String} province */ -function isNumber(value) { - return typeof value == 'number' || - (isObjectLike(value) && objectToString.call(value) == numberTag); -} -module.exports = isNumber; +SignPKICertWithClassicKey.prototype['province'] = undefined; +/** + * PublicKey using for signing in a PEM format. + * @member {String} public-key-pem-data + */ +SignPKICertWithClassicKey.prototype['public-key-pem-data'] = undefined; +/** + * SigningMethod + * @member {String} signing-method + */ -/***/ }), +SignPKICertWithClassicKey.prototype['signing-method'] = undefined; +/** + * A comma-separated list of the street address that will be set in the issued certificate + * @member {String} street-address + */ -/***/ 29888: -/***/ ((module) => { +SignPKICertWithClassicKey.prototype['street-address'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ +SignPKICertWithClassicKey.prototype['token'] = undefined; /** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * he requested Time To Live for the certificate, in seconds + * @member {Number} ttl */ -/** `Object#toString` result references. */ -var objectTag = '[object Object]'; +SignPKICertWithClassicKey.prototype['ttl'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +SignPKICertWithClassicKey.prototype['uid-token'] = undefined; /** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. + * The URI Subject Alternative Names to be included in the PKI certificate (in a comma-delimited list) + * @member {String} uri-sans */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; -} +SignPKICertWithClassicKey.prototype['uri-sans'] = undefined; /** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. + * classic key version + * @member {Number} version */ -function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; -} -/** Used for built-in method references. */ -var funcProto = Function.prototype, - objectProto = Object.prototype; +SignPKICertWithClassicKey.prototype['version'] = undefined; +var _default = SignPKICertWithClassicKey; +exports["default"] = _default; -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; +/***/ }), -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; +/***/ 77718: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** Used to infer the `Object` constructor. */ -var objectCtorString = funcToString.call(Object); +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. + * The SignRsaSsaPss model module. + * @module model/SignRsaSsaPss + * @version 3.6.3 */ -var objectToString = objectProto.toString; +var SignRsaSsaPss = /*#__PURE__*/function () { + /** + * Constructs a new SignRsaSsaPss. + * signRsaSsaPss is a command that calculates the signature of a given message using rsassa-pss + * @alias module:model/SignRsaSsaPss + * @param message {String} The input message to sign in a base64 format + */ + function SignRsaSsaPss(message) { + _classCallCheck(this, SignRsaSsaPss); -/** Built-in value references. */ -var getPrototype = overArg(Object.getPrototypeOf, Object); + SignRsaSsaPss.initialize(this, message); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(SignRsaSsaPss, null, [{ + key: "initialize", + value: function initialize(obj, message) { + obj['message'] = message; + } + /** + * Constructs a SignRsaSsaPss from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SignRsaSsaPss} obj Optional instance to populate. + * @return {module:model/SignRsaSsaPss} The populated SignRsaSsaPss instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SignRsaSsaPss(); + + if (data.hasOwnProperty('display-id')) { + obj['display-id'] = _ApiClient["default"].convertToType(data['display-id'], 'String'); + } + + if (data.hasOwnProperty('hash-function')) { + obj['hash-function'] = _ApiClient["default"].convertToType(data['hash-function'], 'String'); + } + + if (data.hasOwnProperty('item-id')) { + obj['item-id'] = _ApiClient["default"].convertToType(data['item-id'], 'Number'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('key-name')) { + obj['key-name'] = _ApiClient["default"].convertToType(data['key-name'], 'String'); + } + + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + + if (data.hasOwnProperty('prehashed')) { + obj['prehashed'] = _ApiClient["default"].convertToType(data['prehashed'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } + } + + return obj; + } + }]); + return SignRsaSsaPss; +}(); /** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false + * The display id of the RSA key to use in the signing process + * @member {String} display-id */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} + +SignRsaSsaPss.prototype['display-id'] = undefined; /** - * Checks if `value` is a plain object, that is, an object created by the - * `Object` constructor or one with a `[[Prototype]]` of `null`. - * - * @static - * @memberOf _ - * @since 0.8.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. - * @example - * - * function Foo() { - * this.a = 1; - * } - * - * _.isPlainObject(new Foo); - * // => false - * - * _.isPlainObject([1, 2, 3]); - * // => false - * - * _.isPlainObject({ 'x': 0, 'y': 0 }); - * // => true - * - * _.isPlainObject(Object.create(null)); - * // => true + * HashFunction defines the hash function (e.g. sha-256) + * @member {String} hash-function */ -function isPlainObject(value) { - if (!isObjectLike(value) || - objectToString.call(value) != objectTag || isHostObject(value)) { - return false; - } - var proto = getPrototype(value); - if (proto === null) { - return true; - } - var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; - return (typeof Ctor == 'function' && - Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString); -} - -module.exports = isPlainObject; +SignRsaSsaPss.prototype['hash-function'] = undefined; +/** + * The item id of the RSA key to use in the signing process + * @member {Number} item-id + */ -/***/ }), +SignRsaSsaPss.prototype['item-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ 56172: -/***/ ((module) => { +SignRsaSsaPss.prototype['json'] = false; +/** + * The name of the RSA key to use in the signing process + * @member {String} key-name + */ +SignRsaSsaPss.prototype['key-name'] = undefined; /** - * lodash 4.0.1 (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright 2012-2016 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license + * The input message to sign in a base64 format + * @member {String} message */ -/** `Object#toString` result references. */ -var stringTag = '[object String]'; +SignRsaSsaPss.prototype['message'] = undefined; +/** + * Markes that the message is already hashed + * @member {Boolean} prehashed + */ -/** Used for built-in method references. */ -var objectProto = Object.prototype; +SignRsaSsaPss.prototype['prehashed'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ +SignRsaSsaPss.prototype['token'] = undefined; /** - * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) - * of values. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -var objectToString = objectProto.toString; +SignRsaSsaPss.prototype['uid-token'] = undefined; /** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @type Function - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false + * The version of the key to use for signing + * @member {Number} version */ -var isArray = Array.isArray; + +SignRsaSsaPss.prototype['version'] = undefined; +var _default = SignRsaSsaPss; +exports["default"] = _default; + +/***/ }), + +/***/ 22067: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false + * The SignRsaSsaPssOutput model module. + * @module model/SignRsaSsaPssOutput + * @version 3.6.3 */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} +var SignRsaSsaPssOutput = /*#__PURE__*/function () { + /** + * Constructs a new SignRsaSsaPssOutput. + * @alias module:model/SignRsaSsaPssOutput + */ + function SignRsaSsaPssOutput() { + _classCallCheck(this, SignRsaSsaPssOutput); + + SignRsaSsaPssOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(SignRsaSsaPssOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SignRsaSsaPssOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SignRsaSsaPssOutput} obj Optional instance to populate. + * @return {module:model/SignRsaSsaPssOutput} The populated SignRsaSsaPssOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SignRsaSsaPssOutput(); + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } + } + + return obj; + } + }]); + + return SignRsaSsaPssOutput; +}(); /** - * Checks if `value` is classified as a `String` primitive or object. - * - * @static - * @memberOf _ - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. - * @example - * - * _.isString('abc'); - * // => true - * - * _.isString(1); - * // => false + * @member {String} result */ -function isString(value) { - return typeof value == 'string' || - (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag); -} -module.exports = isString; +SignRsaSsaPssOutput.prototype['result'] = undefined; +var _default = SignRsaSsaPssOutput; +exports["default"] = _default; /***/ }), -/***/ 82192: -/***/ ((module) => { +/***/ 69132: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * The SmInfo model module. + * @module model/SmInfo + * @version 3.6.3 */ +var SmInfo = /*#__PURE__*/function () { + /** + * Constructs a new SmInfo. + * @alias module:model/SmInfo + */ + function SmInfo() { + _classCallCheck(this, SmInfo); -/** Used as the `TypeError` message for "Functions" methods. */ -var FUNC_ERROR_TEXT = 'Expected a function'; + SmInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0, - MAX_INTEGER = 1.7976931348623157e+308, - NAN = 0 / 0; -/** `Object#toString` result references. */ -var symbolTag = '[object Symbol]'; + _createClass(SmInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SmInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SmInfo} obj Optional instance to populate. + * @return {module:model/SmInfo} The populated SmInfo instance. + */ -/** Used to match leading and trailing whitespace. */ -var reTrim = /^\s+|\s+$/g; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SmInfo(); -/** Used to detect bad signed hexadecimal string values. */ -var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; + if (data.hasOwnProperty('sla')) { + obj['sla'] = _ApiClient["default"].convertToType(data['sla'], 'String'); + } -/** Used to detect binary string values. */ -var reIsBinary = /^0b[01]+$/i; + if (data.hasOwnProperty('tier')) { + obj['tier'] = _ApiClient["default"].convertToType(data['tier'], 'String'); + } + } -/** Used to detect octal string values. */ -var reIsOctal = /^0o[0-7]+$/i; + return obj; + } + }]); -/** Built-in method references without a dependency on `root`. */ -var freeParseInt = parseInt; + return SmInfo; +}(); +/** + * @member {String} sla + */ -/** Used for built-in method references. */ -var objectProto = Object.prototype; +SmInfo.prototype['sla'] = undefined; /** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. + * Tier represents a level of extensibility the account will have, defined by various limits for different resources of Akeyless e.g - A StarterTier may have a limit of 3 Client resources and 50 Secret resources + * @member {String} tier */ -var objectToString = objectProto.toString; + +SmInfo.prototype['tier'] = undefined; +var _default = SmInfo; +exports["default"] = _default; + +/***/ }), + +/***/ 39760: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Creates a function that invokes `func`, with the `this` binding and arguments - * of the created function, while it's called less than `n` times. Subsequent - * calls to the created function return the result of the last `func` invocation. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Function - * @param {number} n The number of calls at which `func` is no longer invoked. - * @param {Function} func The function to restrict. - * @returns {Function} Returns the new restricted function. - * @example - * - * jQuery(element).on('click', _.before(5, addContactToList)); - * // => Allows adding up to 4 contacts to the list. + * The SplunkLogForwardingConfig model module. + * @module model/SplunkLogForwardingConfig + * @version 3.6.3 */ -function before(n, func) { - var result; - if (typeof func != 'function') { - throw new TypeError(FUNC_ERROR_TEXT); +var SplunkLogForwardingConfig = /*#__PURE__*/function () { + /** + * Constructs a new SplunkLogForwardingConfig. + * @alias module:model/SplunkLogForwardingConfig + */ + function SplunkLogForwardingConfig() { + _classCallCheck(this, SplunkLogForwardingConfig); + + SplunkLogForwardingConfig.initialize(this); } - n = toInteger(n); - return function() { - if (--n > 0) { - result = func.apply(this, arguments); - } - if (n <= 1) { - func = undefined; + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(SplunkLogForwardingConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SplunkLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SplunkLogForwardingConfig} obj Optional instance to populate. + * @return {module:model/SplunkLogForwardingConfig} The populated SplunkLogForwardingConfig instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SplunkLogForwardingConfig(); + + if (data.hasOwnProperty('splunk_enable_tls')) { + obj['splunk_enable_tls'] = _ApiClient["default"].convertToType(data['splunk_enable_tls'], 'Boolean'); + } + + if (data.hasOwnProperty('splunk_index')) { + obj['splunk_index'] = _ApiClient["default"].convertToType(data['splunk_index'], 'String'); + } + + if (data.hasOwnProperty('splunk_source')) { + obj['splunk_source'] = _ApiClient["default"].convertToType(data['splunk_source'], 'String'); + } + + if (data.hasOwnProperty('splunk_sourcetype')) { + obj['splunk_sourcetype'] = _ApiClient["default"].convertToType(data['splunk_sourcetype'], 'String'); + } + + if (data.hasOwnProperty('splunk_tls_certificate')) { + obj['splunk_tls_certificate'] = _ApiClient["default"].convertToType(data['splunk_tls_certificate'], 'String'); + } + + if (data.hasOwnProperty('splunk_token')) { + obj['splunk_token'] = _ApiClient["default"].convertToType(data['splunk_token'], 'String'); + } + + if (data.hasOwnProperty('splunk_url')) { + obj['splunk_url'] = _ApiClient["default"].convertToType(data['splunk_url'], 'String'); + } + } + + return obj; } - return result; - }; -} + }]); + return SplunkLogForwardingConfig; +}(); /** - * Creates a function that is restricted to invoking `func` once. Repeat calls - * to the function return the value of the first invocation. The `func` is - * invoked with the `this` binding and arguments of the created function. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to restrict. - * @returns {Function} Returns the new restricted function. - * @example - * - * var initialize = _.once(createApplication); - * initialize(); - * initialize(); - * // => `createApplication` is invoked once + * @member {Boolean} splunk_enable_tls */ -function once(func) { - return before(2, func); -} + +SplunkLogForwardingConfig.prototype['splunk_enable_tls'] = undefined; /** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false + * @member {String} splunk_index */ -function isObject(value) { - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); -} +SplunkLogForwardingConfig.prototype['splunk_index'] = undefined; /** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false + * @member {String} splunk_source */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} +SplunkLogForwardingConfig.prototype['splunk_source'] = undefined; /** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false + * @member {String} splunk_sourcetype */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); -} +SplunkLogForwardingConfig.prototype['splunk_sourcetype'] = undefined; /** - * Converts `value` to a finite number. - * - * @static - * @memberOf _ - * @since 4.12.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {number} Returns the converted number. - * @example - * - * _.toFinite(3.2); - * // => 3.2 - * - * _.toFinite(Number.MIN_VALUE); - * // => 5e-324 - * - * _.toFinite(Infinity); - * // => 1.7976931348623157e+308 - * - * _.toFinite('3.2'); - * // => 3.2 + * @member {String} splunk_tls_certificate */ -function toFinite(value) { - if (!value) { - return value === 0 ? value : 0; - } - value = toNumber(value); - if (value === INFINITY || value === -INFINITY) { - var sign = (value < 0 ? -1 : 1); - return sign * MAX_INTEGER; - } - return value === value ? value : 0; -} +SplunkLogForwardingConfig.prototype['splunk_tls_certificate'] = undefined; /** - * Converts `value` to an integer. - * - * **Note:** This method is loosely based on - * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {number} Returns the converted integer. - * @example - * - * _.toInteger(3.2); - * // => 3 - * - * _.toInteger(Number.MIN_VALUE); - * // => 0 - * - * _.toInteger(Infinity); - * // => 1.7976931348623157e+308 - * - * _.toInteger('3.2'); - * // => 3 + * @member {String} splunk_token */ -function toInteger(value) { - var result = toFinite(value), - remainder = result % 1; - return result === result ? (remainder ? result - remainder : result) : 0; -} +SplunkLogForwardingConfig.prototype['splunk_token'] = undefined; +/** + * @member {String} splunk_url + */ + +SplunkLogForwardingConfig.prototype['splunk_url'] = undefined; +var _default = SplunkLogForwardingConfig; +exports["default"] = _default; + +/***/ }), + +/***/ 85658: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Converts `value` to a number. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {number} Returns the number. - * @example - * - * _.toNumber(3.2); - * // => 3.2 - * - * _.toNumber(Number.MIN_VALUE); - * // => 5e-324 - * - * _.toNumber(Infinity); - * // => Infinity - * - * _.toNumber('3.2'); - * // => 3.2 + * The SraInfo model module. + * @module model/SraInfo + * @version 3.6.3 */ -function toNumber(value) { - if (typeof value == 'number') { - return value; - } - if (isSymbol(value)) { - return NAN; - } - if (isObject(value)) { - var other = typeof value.valueOf == 'function' ? value.valueOf() : value; - value = isObject(other) ? (other + '') : other; - } - if (typeof value != 'string') { - return value === 0 ? value : +value; +var SraInfo = /*#__PURE__*/function () { + /** + * Constructs a new SraInfo. + * @alias module:model/SraInfo + */ + function SraInfo() { + _classCallCheck(this, SraInfo); + + SraInfo.initialize(this); } - value = value.replace(reTrim, ''); - var isBinary = reIsBinary.test(value); - return (isBinary || reIsOctal.test(value)) - ? freeParseInt(value.slice(2), isBinary ? 2 : 8) - : (reIsBadHex.test(value) ? NAN : +value); -} + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -module.exports = once; + _createClass(SraInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SraInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SraInfo} obj Optional instance to populate. + * @return {module:model/SraInfo} The populated SraInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SraInfo(); -/***/ }), + if (data.hasOwnProperty('sla')) { + obj['sla'] = _ApiClient["default"].convertToType(data['sla'], 'String'); + } -/***/ 55641: -/***/ ((module) => { + if (data.hasOwnProperty('tier')) { + obj['tier'] = _ApiClient["default"].convertToType(data['tier'], 'String'); + } + + if (data.hasOwnProperty('user_type')) { + obj['user_type'] = _ApiClient["default"].convertToType(data['user_type'], 'String'); + } + } + + return obj; + } + }]); + + return SraInfo; +}(); +/** + * @member {String} sla + */ -"use strict"; +SraInfo.prototype['sla'] = undefined; +/** + * Tier represents a level of extensibility the account will have, defined by various limits for different resources of Akeyless e.g - A StarterTier may have a limit of 3 Client resources and 50 Secret resources + * @member {String} tier + */ -/** @type {import('./abs')} */ -module.exports = Math.abs; +SraInfo.prototype['tier'] = undefined; +/** + * @member {String} user_type + */ +SraInfo.prototype['user_type'] = undefined; +var _default = SraInfo; +exports["default"] = _default; /***/ }), -/***/ 96171: -/***/ ((module) => { +/***/ 39307: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -/** @type {import('./floor')} */ -module.exports = Math.floor; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ }), +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ 77044: -/***/ ((module) => { +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -"use strict"; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -/** @type {import('./isNaN')} */ -module.exports = Number.isNaN || function isNaN(a) { - return a !== a; -}; +/** + * The StaticCredsAuth model module. + * @module model/StaticCredsAuth + * @version 3.6.3 + */ +var StaticCredsAuth = /*#__PURE__*/function () { + /** + * Constructs a new StaticCredsAuth. + * staticCredsAuth is a command that creates a temporary access profile using the provided static credentials. + * @alias module:model/StaticCredsAuth + */ + function StaticCredsAuth() { + _classCallCheck(this, StaticCredsAuth); + StaticCredsAuth.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), -/***/ 57147: -/***/ ((module) => { + _createClass(StaticCredsAuth, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a StaticCredsAuth from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StaticCredsAuth} obj Optional instance to populate. + * @return {module:model/StaticCredsAuth} The populated StaticCredsAuth instance. + */ -"use strict"; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new StaticCredsAuth(); + if (data.hasOwnProperty('access-id')) { + obj['access-id'] = _ApiClient["default"].convertToType(data['access-id'], 'String'); + } -/** @type {import('./max')} */ -module.exports = Math.max; + if (data.hasOwnProperty('admin-email')) { + obj['admin-email'] = _ApiClient["default"].convertToType(data['admin-email'], 'String'); + } + if (data.hasOwnProperty('creds')) { + obj['creds'] = _ApiClient["default"].convertToType(data['creds'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + } -/***/ 41017: -/***/ ((module) => { + return obj; + } + }]); -"use strict"; + return StaticCredsAuth; +}(); +/** + * Akeyless JWT token + * @member {String} access-id + */ -/** @type {import('./min')} */ -module.exports = Math.min; +StaticCredsAuth.prototype['access-id'] = undefined; +/** + * Akeyless JWT token + * @member {String} admin-email + */ + +StaticCredsAuth.prototype['admin-email'] = undefined; +/** + * Akeyless JWT token + * @member {String} creds + */ +StaticCredsAuth.prototype['creds'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +StaticCredsAuth.prototype['json'] = false; +var _default = StaticCredsAuth; +exports["default"] = _default; /***/ }), -/***/ 56947: -/***/ ((module) => { +/***/ 53322: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -/** @type {import('./pow')} */ -module.exports = Math.pow; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ }), +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ 42621: -/***/ ((module) => { +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -"use strict"; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -/** @type {import('./round')} */ -module.exports = Math.round; +/** + * The StaticCredsAuthOutput model module. + * @module model/StaticCredsAuthOutput + * @version 3.6.3 + */ +var StaticCredsAuthOutput = /*#__PURE__*/function () { + /** + * Constructs a new StaticCredsAuthOutput. + * @alias module:model/StaticCredsAuthOutput + */ + function StaticCredsAuthOutput() { + _classCallCheck(this, StaticCredsAuthOutput); + StaticCredsAuthOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), -/***/ 30156: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + _createClass(StaticCredsAuthOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a StaticCredsAuthOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StaticCredsAuthOutput} obj Optional instance to populate. + * @return {module:model/StaticCredsAuthOutput} The populated StaticCredsAuthOutput instance. + */ -"use strict"; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new StaticCredsAuthOutput(); + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + } + return obj; + } + }]); -var $isNaN = __nccwpck_require__(77044); + return StaticCredsAuthOutput; +}(); +/** + * @member {String} token + */ -/** @type {import('./sign')} */ -module.exports = function sign(number) { - if ($isNaN(number) || number === 0) { - return number; - } - return number < 0 ? -1 : +1; -}; +StaticCredsAuthOutput.prototype['token'] = undefined; +var _default = StaticCredsAuthOutput; +exports["default"] = _default; /***/ }), -/***/ 50806: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 38674: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -/*! - * methods - * Copyright(c) 2013-2014 TJ Holowaychuk - * Copyright(c) 2015-2016 Douglas Christopher Wilson - * MIT Licensed - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/** - * Module dependencies. - * @private - */ - -var http = __nccwpck_require__(58611); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/** - * Module exports. - * @public - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -module.exports = getCurrentNodeMethods() || getBasicNodeMethods(); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/** - * Get the current Node.js methods. - * @private - */ +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function getCurrentNodeMethods() { - return http.METHODS && http.METHODS.map(function lowerCaseMethod(method) { - return method.toLowerCase(); - }); -} +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Get the "basic" Node.js methods, a snapshot from Node.js 0.10. - * @private + * The StaticSecretDetailsInfo model module. + * @module model/StaticSecretDetailsInfo + * @version 3.6.3 */ +var StaticSecretDetailsInfo = /*#__PURE__*/function () { + /** + * Constructs a new StaticSecretDetailsInfo. + * @alias module:model/StaticSecretDetailsInfo + */ + function StaticSecretDetailsInfo() { + _classCallCheck(this, StaticSecretDetailsInfo); -function getBasicNodeMethods() { - return [ - 'get', - 'post', - 'put', - 'head', - 'delete', - 'options', - 'trace', - 'copy', - 'lock', - 'mkcol', - 'move', - 'purge', - 'propfind', - 'proppatch', - 'unlock', - 'report', - 'mkactivity', - 'checkout', - 'merge', - 'm-search', - 'notify', - 'subscribe', - 'unsubscribe', - 'patch', - 'search', - 'connect' - ]; -} - - -/***/ }), + StaticSecretDetailsInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ 99829: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/*! - * mime-db - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015-2022 Douglas Christopher Wilson - * MIT Licensed - */ + _createClass(StaticSecretDetailsInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a StaticSecretDetailsInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StaticSecretDetailsInfo} obj Optional instance to populate. + * @return {module:model/StaticSecretDetailsInfo} The populated StaticSecretDetailsInfo instance. + */ -/** - * Module exports. - */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new StaticSecretDetailsInfo(); -module.exports = __nccwpck_require__(81813) + if (data.hasOwnProperty('format')) { + obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); + } + if (data.hasOwnProperty('max_versions')) { + obj['max_versions'] = _ApiClient["default"].convertToType(data['max_versions'], 'Number'); + } -/***/ }), + if (data.hasOwnProperty('notify_on_change_event')) { + obj['notify_on_change_event'] = _ApiClient["default"].convertToType(data['notify_on_change_event'], 'Boolean'); + } -/***/ 14096: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } -"use strict"; -/*! - * mime-types - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ + if (data.hasOwnProperty('website')) { + obj['website'] = _ApiClient["default"].convertToType(data['website'], 'String'); + } + if (data.hasOwnProperty('websites')) { + obj['websites'] = _ApiClient["default"].convertToType(data['websites'], ['String']); + } + } + return obj; + } + }]); + return StaticSecretDetailsInfo; +}(); /** - * Module dependencies. - * @private + * StaticSecretFormat defines the format of static secret (e.g. Text) + * @member {String} format */ -var db = __nccwpck_require__(99829) -var extname = (__nccwpck_require__(16928).extname) +StaticSecretDetailsInfo.prototype['format'] = undefined; /** - * Module variables. - * @private + * @member {Number} max_versions */ -var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/ -var TEXT_TYPE_REGEXP = /^text\//i - +StaticSecretDetailsInfo.prototype['max_versions'] = undefined; /** - * Module exports. - * @public + * @member {Boolean} notify_on_change_event */ -exports.charset = charset -exports.charsets = { lookup: charset } -exports.contentType = contentType -exports.extension = extension -exports.extensions = Object.create(null) -exports.lookup = lookup -exports.types = Object.create(null) - -// Populate the extensions/types maps -populateMaps(exports.extensions, exports.types) - +StaticSecretDetailsInfo.prototype['notify_on_change_event'] = undefined; /** - * Get the default charset for a MIME type. - * - * @param {string} type - * @return {boolean|string} + * @member {String} username */ -function charset (type) { - if (!type || typeof type !== 'string') { - return false - } - - // TODO: use media-typer - var match = EXTRACT_TYPE_REGEXP.exec(type) - var mime = match && db[match[1].toLowerCase()] - - if (mime && mime.charset) { - return mime.charset - } - - // default text/* to utf-8 - if (match && TEXT_TYPE_REGEXP.test(match[1])) { - return 'UTF-8' - } - - return false -} - +StaticSecretDetailsInfo.prototype['username'] = undefined; /** - * Create a full Content-Type header given a MIME type or extension. - * - * @param {string} str - * @return {boolean|string} + * deprecated + * @member {String} website */ -function contentType (str) { - // TODO: should this even be in this module? - if (!str || typeof str !== 'string') { - return false - } - - var mime = str.indexOf('/') === -1 - ? exports.lookup(str) - : str - - if (!mime) { - return false - } - - // TODO: use content-type or other module - if (mime.indexOf('charset') === -1) { - var charset = exports.charset(mime) - if (charset) mime += '; charset=' + charset.toLowerCase() - } - - return mime -} - +StaticSecretDetailsInfo.prototype['website'] = undefined; /** - * Get the default extension for a MIME type. - * - * @param {string} type - * @return {boolean|string} + * @member {Array.} websites */ -function extension (type) { - if (!type || typeof type !== 'string') { - return false - } +StaticSecretDetailsInfo.prototype['websites'] = undefined; +var _default = StaticSecretDetailsInfo; +exports["default"] = _default; - // TODO: use media-typer - var match = EXTRACT_TYPE_REGEXP.exec(type) +/***/ }), - // get extensions - var exts = match && exports.extensions[match[1].toLowerCase()] +/***/ 58097: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (!exts || !exts.length) { - return false - } +"use strict"; - return exts[0] -} -/** - * Lookup the MIME type for a file path/extension. - * - * @param {string} path - * @return {boolean|string} - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -function lookup (path) { - if (!path || typeof path !== 'string') { - return false - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // get the extension ("ext" or ".ext" or full path) - var extension = extname('x.' + path) - .toLowerCase() - .substr(1) +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (!extension) { - return false - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - return exports.types[extension] || false -} +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Populate the extensions and types maps. - * @private + * The SumologicLogForwardingConfig model module. + * @module model/SumologicLogForwardingConfig + * @version 3.6.3 */ +var SumologicLogForwardingConfig = /*#__PURE__*/function () { + /** + * Constructs a new SumologicLogForwardingConfig. + * @alias module:model/SumologicLogForwardingConfig + */ + function SumologicLogForwardingConfig() { + _classCallCheck(this, SumologicLogForwardingConfig); -function populateMaps (extensions, types) { - // source preference (least -> most) - var preference = ['nginx', 'apache', undefined, 'iana'] + SumologicLogForwardingConfig.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - Object.keys(db).forEach(function forEachMimeType (type) { - var mime = db[type] - var exts = mime.extensions - if (!exts || !exts.length) { - return - } + _createClass(SumologicLogForwardingConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SumologicLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SumologicLogForwardingConfig} obj Optional instance to populate. + * @return {module:model/SumologicLogForwardingConfig} The populated SumologicLogForwardingConfig instance. + */ - // mime -> extensions - extensions[type] = exts + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SumologicLogForwardingConfig(); - // extension -> mime - for (var i = 0; i < exts.length; i++) { - var extension = exts[i] + if (data.hasOwnProperty('sumo_logic_endpoint')) { + obj['sumo_logic_endpoint'] = _ApiClient["default"].convertToType(data['sumo_logic_endpoint'], 'String'); + } - if (types[extension]) { - var from = preference.indexOf(db[types[extension]].source) - var to = preference.indexOf(mime.source) + if (data.hasOwnProperty('sumo_logic_host')) { + obj['sumo_logic_host'] = _ApiClient["default"].convertToType(data['sumo_logic_host'], 'String'); + } - if (types[extension] !== 'application/octet-stream' && - (from > to || (from === to && types[extension].substr(0, 12) === 'application/'))) { - // skip the remapping - continue + if (data.hasOwnProperty('sumo_logic_tags')) { + obj['sumo_logic_tags'] = _ApiClient["default"].convertToType(data['sumo_logic_tags'], 'String'); } } - // set the extension -> mime - types[extension] = type + return obj; } - }) -} + }]); + return SumologicLogForwardingConfig; +}(); +/** + * @member {String} sumo_logic_endpoint + */ -/***/ }), -/***/ 32322: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +SumologicLogForwardingConfig.prototype['sumo_logic_endpoint'] = undefined; +/** + * @member {String} sumo_logic_host + */ -var path = __nccwpck_require__(16928); -var fs = __nccwpck_require__(79896); +SumologicLogForwardingConfig.prototype['sumo_logic_host'] = undefined; +/** + * @member {String} sumo_logic_tags + */ -function Mime() { - // Map of extension -> mime type - this.types = Object.create(null); +SumologicLogForwardingConfig.prototype['sumo_logic_tags'] = undefined; +var _default = SumologicLogForwardingConfig; +exports["default"] = _default; - // Map of mime type -> extension - this.extensions = Object.create(null); -} +/***/ }), -/** - * Define mimetype -> extension mappings. Each key is a mime-type that maps - * to an array of extensions associated with the type. The first extension is - * used as the default extension for the type. - * - * e.g. mime.define({'audio/ogg', ['oga', 'ogg', 'spx']}); - * - * @param map (Object) type definitions - */ -Mime.prototype.define = function (map) { - for (var type in map) { - var exts = map[type]; - for (var i = 0; i < exts.length; i++) { - if (process.env.DEBUG_MIME && this.types[exts[i]]) { - console.warn((this._loading || "define()").replace(/.*\//, ''), 'changes "' + exts[i] + '" extension type from ' + - this.types[exts[i]] + ' to ' + type); - } +/***/ 68494: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - this.types[exts[i]] = type; - } +"use strict"; - // Default extension is the first one we encounter - if (!this.extensions[type]) { - this.extensions[type] = exts[0]; - } - } -}; -/** - * Load an Apache2-style ".types" file - * - * This may be called multiple times (it's expected). Where files declare - * overlapping types/extensions, the last file wins. - * - * @param file (String) path of file to load. - */ -Mime.prototype.load = function(file) { - this._loading = file; - // Read file and split into lines - var map = {}, - content = fs.readFileSync(file, 'ascii'), - lines = content.split(/[\r\n]+/); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - lines.forEach(function(line) { - // Clean up whitespace/comments, and split into fields - var fields = line.replace(/\s*#.*|^\s*|\s*$/g, '').split(/\s+/); - map[fields.shift()] = fields; - }); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - this.define(map); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - this._loading = null; -}; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/** - * Lookup a mime type based on extension - */ -Mime.prototype.lookup = function(path, fallback) { - var ext = path.replace(/^.*[\.\/\\]/, '').toLowerCase(); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - return this.types[ext] || fallback || this.default_type; -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Return file extension associated with a mime type + * The SyslogLogForwardingConfig model module. + * @module model/SyslogLogForwardingConfig + * @version 3.6.3 */ -Mime.prototype.extension = function(mimeType) { - var type = mimeType.match(/^\s*([^;\s]*)(?:;|\s|$)/)[1].toLowerCase(); - return this.extensions[type]; -}; +var SyslogLogForwardingConfig = /*#__PURE__*/function () { + /** + * Constructs a new SyslogLogForwardingConfig. + * @alias module:model/SyslogLogForwardingConfig + */ + function SyslogLogForwardingConfig() { + _classCallCheck(this, SyslogLogForwardingConfig); + + SyslogLogForwardingConfig.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -// Default instance -var mime = new Mime(); -// Define built-in types -mime.define(__nccwpck_require__(9415)); + _createClass(SyslogLogForwardingConfig, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SyslogLogForwardingConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SyslogLogForwardingConfig} obj Optional instance to populate. + * @return {module:model/SyslogLogForwardingConfig} The populated SyslogLogForwardingConfig instance. + */ -// Default type -mime.default_type = mime.lookup('bin'); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SyslogLogForwardingConfig(); -// -// Additional API specific to the default instance -// + if (data.hasOwnProperty('syslog_enable_tls')) { + obj['syslog_enable_tls'] = _ApiClient["default"].convertToType(data['syslog_enable_tls'], 'Boolean'); + } -mime.Mime = Mime; + if (data.hasOwnProperty('syslog_formatter')) { + obj['syslog_formatter'] = _ApiClient["default"].convertToType(data['syslog_formatter'], 'String'); + } -/** - * Lookup a charset based on mime type. - */ -mime.charsets = { - lookup: function(mimeType, fallback) { - // Assume text types are utf8 - return (/^text\/|^application\/(javascript|json)/).test(mimeType) ? 'UTF-8' : fallback; - } -}; + if (data.hasOwnProperty('syslog_host')) { + obj['syslog_host'] = _ApiClient["default"].convertToType(data['syslog_host'], 'String'); + } -module.exports = mime; + if (data.hasOwnProperty('syslog_network')) { + obj['syslog_network'] = _ApiClient["default"].convertToType(data['syslog_network'], 'String'); + } + if (data.hasOwnProperty('syslog_target_tag')) { + obj['syslog_target_tag'] = _ApiClient["default"].convertToType(data['syslog_target_tag'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('syslog_tls_certificate')) { + obj['syslog_tls_certificate'] = _ApiClient["default"].convertToType(data['syslog_tls_certificate'], 'String'); + } + } -/***/ 70744: -/***/ ((module) => { + return obj; + } + }]); + return SyslogLogForwardingConfig; +}(); /** - * Helpers. + * @member {Boolean} syslog_enable_tls */ -var s = 1000; -var m = s * 60; -var h = m * 60; -var d = h * 24; -var w = d * 7; -var y = d * 365.25; +SyslogLogForwardingConfig.prototype['syslog_enable_tls'] = undefined; /** - * Parse or format the given `val`. - * - * Options: - * - * - `long` verbose formatting [false] - * - * @param {String|Number} val - * @param {Object} [options] - * @throws {Error} throw an error if val is not a non-empty string or a number - * @return {String|Number} - * @api public + * @member {String} syslog_formatter */ -module.exports = function(val, options) { - options = options || {}; - var type = typeof val; - if (type === 'string' && val.length > 0) { - return parse(val); - } else if (type === 'number' && isFinite(val)) { - return options.long ? fmtLong(val) : fmtShort(val); - } - throw new Error( - 'val is not a non-empty string or a valid number. val=' + - JSON.stringify(val) - ); -}; - +SyslogLogForwardingConfig.prototype['syslog_formatter'] = undefined; /** - * Parse the given `str` and return milliseconds. - * - * @param {String} str - * @return {Number} - * @api private + * @member {String} syslog_host */ -function parse(str) { - str = String(str); - if (str.length > 100) { - return; - } - var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( - str - ); - if (!match) { - return; - } - var n = parseFloat(match[1]); - var type = (match[2] || 'ms').toLowerCase(); - switch (type) { - case 'years': - case 'year': - case 'yrs': - case 'yr': - case 'y': - return n * y; - case 'weeks': - case 'week': - case 'w': - return n * w; - case 'days': - case 'day': - case 'd': - return n * d; - case 'hours': - case 'hour': - case 'hrs': - case 'hr': - case 'h': - return n * h; - case 'minutes': - case 'minute': - case 'mins': - case 'min': - case 'm': - return n * m; - case 'seconds': - case 'second': - case 'secs': - case 'sec': - case 's': - return n * s; - case 'milliseconds': - case 'millisecond': - case 'msecs': - case 'msec': - case 'ms': - return n; - default: - return undefined; - } -} - +SyslogLogForwardingConfig.prototype['syslog_host'] = undefined; /** - * Short format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private + * @member {String} syslog_network */ -function fmtShort(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return Math.round(ms / d) + 'd'; - } - if (msAbs >= h) { - return Math.round(ms / h) + 'h'; - } - if (msAbs >= m) { - return Math.round(ms / m) + 'm'; - } - if (msAbs >= s) { - return Math.round(ms / s) + 's'; - } - return ms + 'ms'; -} - +SyslogLogForwardingConfig.prototype['syslog_network'] = undefined; /** - * Long format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private + * @member {String} syslog_target_tag */ -function fmtLong(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return plural(ms, msAbs, d, 'day'); - } - if (msAbs >= h) { - return plural(ms, msAbs, h, 'hour'); - } - if (msAbs >= m) { - return plural(ms, msAbs, m, 'minute'); - } - if (msAbs >= s) { - return plural(ms, msAbs, s, 'second'); - } - return ms + ' ms'; -} - +SyslogLogForwardingConfig.prototype['syslog_target_tag'] = undefined; /** - * Pluralization helper. + * @member {String} syslog_tls_certificate */ -function plural(ms, msAbs, n, name) { - var isPlural = msAbs >= n * 1.5; - return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : ''); -} - +SyslogLogForwardingConfig.prototype['syslog_tls_certificate'] = undefined; +var _default = SyslogLogForwardingConfig; +exports["default"] = _default; /***/ }), -/***/ 26705: -/***/ ((module, exports, __nccwpck_require__) => { +/***/ 58908: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -Object.defineProperty(exports, "__esModule", ({ value: true })); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -var Stream = _interopDefault(__nccwpck_require__(2203)); -var http = _interopDefault(__nccwpck_require__(58611)); -var Url = _interopDefault(__nccwpck_require__(87016)); -var whatwgUrl = _interopDefault(__nccwpck_require__(62686)); -var https = _interopDefault(__nccwpck_require__(65692)); -var zlib = _interopDefault(__nccwpck_require__(43106)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -// fix for "Readable" isn't a named export issue -const Readable = Stream.Readable; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -const BUFFER = Symbol('buffer'); -const TYPE = Symbol('type'); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -class Blob { - constructor() { - this[TYPE] = ''; +/** + * The SystemAccessCredentialsReplyObj model module. + * @module model/SystemAccessCredentialsReplyObj + * @version 3.6.3 + */ +var SystemAccessCredentialsReplyObj = /*#__PURE__*/function () { + /** + * Constructs a new SystemAccessCredentialsReplyObj. + * @alias module:model/SystemAccessCredentialsReplyObj + */ + function SystemAccessCredentialsReplyObj() { + _classCallCheck(this, SystemAccessCredentialsReplyObj); - const blobParts = arguments[0]; - const options = arguments[1]; + SystemAccessCredentialsReplyObj.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - const buffers = []; - let size = 0; - if (blobParts) { - const a = blobParts; - const length = Number(a.length); - for (let i = 0; i < length; i++) { - const element = a[i]; - let buffer; - if (element instanceof Buffer) { - buffer = element; - } else if (ArrayBuffer.isView(element)) { - buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); - } else if (element instanceof ArrayBuffer) { - buffer = Buffer.from(element); - } else if (element instanceof Blob) { - buffer = element[BUFFER]; - } else { - buffer = Buffer.from(typeof element === 'string' ? element : String(element)); - } - size += buffer.length; - buffers.push(buffer); - } - } + _createClass(SystemAccessCredentialsReplyObj, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SystemAccessCredentialsReplyObj from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SystemAccessCredentialsReplyObj} obj Optional instance to populate. + * @return {module:model/SystemAccessCredentialsReplyObj} The populated SystemAccessCredentialsReplyObj instance. + */ - this[BUFFER] = Buffer.concat(buffers); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SystemAccessCredentialsReplyObj(); - let type = options && options.type !== undefined && String(options.type).toLowerCase(); - if (type && !/[^\u0020-\u007E]/.test(type)) { - this[TYPE] = type; - } - } - get size() { - return this[BUFFER].length; - } - get type() { - return this[TYPE]; - } - text() { - return Promise.resolve(this[BUFFER].toString()); - } - arrayBuffer() { - const buf = this[BUFFER]; - const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - return Promise.resolve(ab); - } - stream() { - const readable = new Readable(); - readable._read = function () {}; - readable.push(this[BUFFER]); - readable.push(null); - return readable; - } - toString() { - return '[object Blob]'; - } - slice() { - const size = this.size; + if (data.hasOwnProperty('auth_creds')) { + obj['auth_creds'] = _ApiClient["default"].convertToType(data['auth_creds'], 'String'); + } - const start = arguments[0]; - const end = arguments[1]; - let relativeStart, relativeEnd; - if (start === undefined) { - relativeStart = 0; - } else if (start < 0) { - relativeStart = Math.max(size + start, 0); - } else { - relativeStart = Math.min(start, size); - } - if (end === undefined) { - relativeEnd = size; - } else if (end < 0) { - relativeEnd = Math.max(size + end, 0); - } else { - relativeEnd = Math.min(end, size); - } - const span = Math.max(relativeEnd - relativeStart, 0); + if (data.hasOwnProperty('expiry')) { + obj['expiry'] = _ApiClient["default"].convertToType(data['expiry'], 'Number'); + } - const buffer = this[BUFFER]; - const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); - const blob = new Blob([], { type: arguments[2] }); - blob[BUFFER] = slicedBuffer; - return blob; - } -} + if (data.hasOwnProperty('kfm_creds')) { + obj['kfm_creds'] = _ApiClient["default"].convertToType(data['kfm_creds'], 'String'); + } + + if (data.hasOwnProperty('required_mfa')) { + obj['required_mfa'] = _ApiClient["default"].convertToType(data['required_mfa'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uam_creds')) { + obj['uam_creds'] = _ApiClient["default"].convertToType(data['uam_creds'], 'String'); + } + } + + return obj; + } + }]); + + return SystemAccessCredentialsReplyObj; +}(); +/** + * Temporary credentials for accessing Auth + * @member {String} auth_creds + */ + + +SystemAccessCredentialsReplyObj.prototype['auth_creds'] = undefined; +/** + * Credentials expiration date + * @member {Number} expiry + */ -Object.defineProperties(Blob.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } -}); +SystemAccessCredentialsReplyObj.prototype['expiry'] = undefined; +/** + * Temporary credentials for accessing the KFMs instances + * @member {String} kfm_creds + */ -Object.defineProperty(Blob.prototype, Symbol.toStringTag, { - value: 'Blob', - writable: false, - enumerable: false, - configurable: true -}); +SystemAccessCredentialsReplyObj.prototype['kfm_creds'] = undefined; +/** + * @member {String} required_mfa + */ +SystemAccessCredentialsReplyObj.prototype['required_mfa'] = undefined; /** - * fetch-error.js - * - * FetchError interface for operational errors + * Credentials tmp token + * @member {String} token */ +SystemAccessCredentialsReplyObj.prototype['token'] = undefined; /** - * Create FetchError instance - * - * @param String message Error message for human - * @param String type Error type for machine - * @param String systemError For Node.js system error - * @return FetchError + * Temporary credentials for accessing the UAM service + * @member {String} uam_creds */ -function FetchError(message, type, systemError) { - Error.call(this, message); - this.message = message; - this.type = type; +SystemAccessCredentialsReplyObj.prototype['uam_creds'] = undefined; +var _default = SystemAccessCredentialsReplyObj; +exports["default"] = _default; - // when err.type is `system`, err.code contains system error code - if (systemError) { - this.code = this.errno = systemError.code; +/***/ }), + +/***/ 36395: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The SystemAccessCredsSettings model module. + * @module model/SystemAccessCredsSettings + * @version 3.6.3 + */ +var SystemAccessCredsSettings = /*#__PURE__*/function () { + /** + * Constructs a new SystemAccessCredsSettings. + * SystemAccessCredsSettings describes system access credential settings for account by minutes + * @alias module:model/SystemAccessCredsSettings + */ + function SystemAccessCredsSettings() { + _classCallCheck(this, SystemAccessCredsSettings); + + SystemAccessCredsSettings.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} -FetchError.prototype = Object.create(Error.prototype); -FetchError.prototype.constructor = FetchError; -FetchError.prototype.name = 'FetchError'; + _createClass(SystemAccessCredsSettings, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a SystemAccessCredsSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SystemAccessCredsSettings} obj Optional instance to populate. + * @return {module:model/SystemAccessCredsSettings} The populated SystemAccessCredsSettings instance. + */ -let convert; -try { - convert = (__nccwpck_require__(42078).convert); -} catch (e) {} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SystemAccessCredsSettings(); -const INTERNALS = Symbol('Body internals'); + if (data.hasOwnProperty('jwt_ttl_default')) { + obj['jwt_ttl_default'] = _ApiClient["default"].convertToType(data['jwt_ttl_default'], 'Number'); + } -// fix an issue where "PassThrough" isn't a named export for node <10 -const PassThrough = Stream.PassThrough; + if (data.hasOwnProperty('jwt_ttl_maximum')) { + obj['jwt_ttl_maximum'] = _ApiClient["default"].convertToType(data['jwt_ttl_maximum'], 'Number'); + } + + if (data.hasOwnProperty('jwt_ttl_minimum')) { + obj['jwt_ttl_minimum'] = _ApiClient["default"].convertToType(data['jwt_ttl_minimum'], 'Number'); + } + } + + return obj; + } + }]); + return SystemAccessCredsSettings; +}(); /** - * Body mixin - * - * Ref: https://fetch.spec.whatwg.org/#body - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void + * @member {Number} jwt_ttl_default */ -function Body(body) { - var _this = this; - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$size = _ref.size; - let size = _ref$size === undefined ? 0 : _ref$size; - var _ref$timeout = _ref.timeout; - let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; +SystemAccessCredsSettings.prototype['jwt_ttl_default'] = undefined; +/** + * @member {Number} jwt_ttl_maximum + */ - if (body == null) { - // body is undefined or null - body = null; - } else if (isURLSearchParams(body)) { - // body is a URLSearchParams - body = Buffer.from(body.toString()); - } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { - // body is ArrayBuffer - body = Buffer.from(body); - } else if (ArrayBuffer.isView(body)) { - // body is ArrayBufferView - body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); - } else if (body instanceof Stream) ; else { - // none of the above - // coerce to string then buffer - body = Buffer.from(String(body)); - } - this[INTERNALS] = { - body, - disturbed: false, - error: null - }; - this.size = size; - this.timeout = timeout; +SystemAccessCredsSettings.prototype['jwt_ttl_maximum'] = undefined; +/** + * @member {Number} jwt_ttl_minimum + */ - if (body instanceof Stream) { - body.on('error', function (err) { - const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); - _this[INTERNALS].error = error; - }); - } -} +SystemAccessCredsSettings.prototype['jwt_ttl_minimum'] = undefined; +var _default = SystemAccessCredsSettings; +exports["default"] = _default; -Body.prototype = { - get body() { - return this[INTERNALS].body; - }, +/***/ }), - get bodyUsed() { - return this[INTERNALS].disturbed; - }, +/***/ 50373: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - /** - * Decode response as ArrayBuffer - * - * @return Promise - */ - arrayBuffer() { - return consumeBody.call(this).then(function (buf) { - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - }); - }, +"use strict"; - /** - * Return raw response as Blob - * - * @return Promise - */ - blob() { - let ct = this.headers && this.headers.get('content-type') || ''; - return consumeBody.call(this).then(function (buf) { - return Object.assign( - // Prevent copying - new Blob([], { - type: ct.toLowerCase() - }), { - [BUFFER]: buf - }); - }); - }, - /** - * Decode response as json - * - * @return Promise - */ - json() { - var _this2 = this; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - return consumeBody.call(this).then(function (buffer) { - try { - return JSON.parse(buffer.toString()); - } catch (err) { - return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); - } - }); - }, +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - /** - * Decode response as text - * - * @return Promise - */ - text() { - return consumeBody.call(this).then(function (buffer) { - return buffer.toString(); - }); - }, +var _ItemVersion = _interopRequireDefault(__nccwpck_require__(71931)); - /** - * Decode response as buffer (non-spec api) - * - * @return Promise - */ - buffer() { - return consumeBody.call(this); - }, +var _TargetItemAssociation = _interopRequireDefault(__nccwpck_require__(78551)); - /** - * Decode response as text, while automatically detecting the encoding and - * trying to decode to UTF-8 (non-spec api) - * - * @return Promise - */ - textConverted() { - var _this3 = this; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - return consumeBody.call(this).then(function (buffer) { - return convertBody(buffer, _this3.headers); - }); - } -}; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -// In browsers, all properties are enumerable. -Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true } -}); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -Body.mixIn = function (proto) { - for (const name of Object.getOwnPropertyNames(Body.prototype)) { - // istanbul ignore else: future proof - if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); - Object.defineProperty(proto, name, desc); - } - } -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Consume and convert an entire Body to a Buffer. - * - * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body - * - * @return Promise + * The Target model module. + * @module model/Target + * @version 3.6.3 */ -function consumeBody() { - var _this4 = this; +var Target = /*#__PURE__*/function () { + /** + * Constructs a new Target. + * @alias module:model/Target + */ + function Target() { + _classCallCheck(this, Target); - if (this[INTERNALS].disturbed) { - return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); - } + Target.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - this[INTERNALS].disturbed = true; - if (this[INTERNALS].error) { - return Body.Promise.reject(this[INTERNALS].error); - } + _createClass(Target, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Target from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Target} obj Optional instance to populate. + * @return {module:model/Target} The populated Target instance. + */ - let body = this.body; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Target(); - // body is null - if (body === null) { - return Body.Promise.resolve(Buffer.alloc(0)); - } + if (data.hasOwnProperty('access_date')) { + obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); + } - // body is blob - if (isBlob(body)) { - body = body.stream(); - } + if (data.hasOwnProperty('access_date_display')) { + obj['access_date_display'] = _ApiClient["default"].convertToType(data['access_date_display'], 'String'); + } - // body is buffer - if (Buffer.isBuffer(body)) { - return Body.Promise.resolve(body); - } + if (data.hasOwnProperty('access_request_status')) { + obj['access_request_status'] = _ApiClient["default"].convertToType(data['access_request_status'], 'String'); + } - // istanbul ignore if: should never happen - if (!(body instanceof Stream)) { - return Body.Promise.resolve(Buffer.alloc(0)); - } + if (data.hasOwnProperty('attributes')) { + obj['attributes'] = _ApiClient["default"].convertToType(data['attributes'], { + 'String': Object + }); + } - // body is stream - // get ready to actually consume the body - let accum = []; - let accumBytes = 0; - let abort = false; + if (data.hasOwnProperty('client_permissions')) { + obj['client_permissions'] = _ApiClient["default"].convertToType(data['client_permissions'], ['String']); + } - return new Body.Promise(function (resolve, reject) { - let resTimeout; + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } - // allow timeout on slow response body - if (_this4.timeout) { - resTimeout = setTimeout(function () { - abort = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); - }, _this4.timeout); - } + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); + } - // handle stream errors - body.on('error', function (err) { - if (err.name === 'AbortError') { - // if the request was aborted, reject with this Error - abort = true; - reject(err); - } else { - // other errors, such as incorrect content-encoding - reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); - } - }); + if (data.hasOwnProperty('credentials_less')) { + obj['credentials_less'] = _ApiClient["default"].convertToType(data['credentials_less'], 'Boolean'); + } - body.on('data', function (chunk) { - if (abort || chunk === null) { - return; - } + if (data.hasOwnProperty('is_access_request_enabled')) { + obj['is_access_request_enabled'] = _ApiClient["default"].convertToType(data['is_access_request_enabled'], 'Boolean'); + } - if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort = true; - reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); - return; - } + if (data.hasOwnProperty('last_version')) { + obj['last_version'] = _ApiClient["default"].convertToType(data['last_version'], 'Number'); + } - accumBytes += chunk.length; - accum.push(chunk); - }); + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } - body.on('end', function () { - if (abort) { - return; - } + if (data.hasOwnProperty('protection_key_name')) { + obj['protection_key_name'] = _ApiClient["default"].convertToType(data['protection_key_name'], 'String'); + } - clearTimeout(resTimeout); + if (data.hasOwnProperty('target_details')) { + obj['target_details'] = _ApiClient["default"].convertToType(data['target_details'], 'String'); + } - try { - resolve(Buffer.concat(accum, accumBytes)); - } catch (err) { - // handle streams that have accumulated too much data (issue #414) - reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - }); -} + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } -/** - * Detect buffer encoding and convert to target encoding - * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding - * - * @param Buffer buffer Incoming buffer - * @param String encoding Target encoding - * @return String - */ -function convertBody(buffer, headers) { - if (typeof convert !== 'function') { - throw new Error('The package `encoding` must be installed to use the textConverted() function'); - } + if (data.hasOwnProperty('target_items_assoc')) { + obj['target_items_assoc'] = _ApiClient["default"].convertToType(data['target_items_assoc'], [_TargetItemAssociation["default"]]); + } - const ct = headers.get('content-type'); - let charset = 'utf-8'; - let res, str; + if (data.hasOwnProperty('target_name')) { + obj['target_name'] = _ApiClient["default"].convertToType(data['target_name'], 'String'); + } - // header - if (ct) { - res = /charset=([^;]*)/i.exec(ct); - } + if (data.hasOwnProperty('target_sub_type')) { + obj['target_sub_type'] = _ApiClient["default"].convertToType(data['target_sub_type'], 'String'); + } - // no charset in content type, peek at response body for at most 1024 bytes - str = buffer.slice(0, 1024).toString(); + if (data.hasOwnProperty('target_type')) { + obj['target_type'] = _ApiClient["default"].convertToType(data['target_type'], 'String'); + } - // html5 - if (!res && str) { - res = /} attributes */ -function isURLSearchParams(obj) { - // Duck-typing as a necessary condition. - if (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') { - return false; - } - // Brand-checking and more duck-typing as optional condition. - return obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function'; -} +Target.prototype['attributes'] = undefined; +/** + * @member {Array.} client_permissions + */ +Target.prototype['client_permissions'] = undefined; /** - * Check if `obj` is a W3C `Blob` object (which `File` inherits from) - * @param {*} obj - * @return {boolean} + * @member {String} comment */ -function isBlob(obj) { - return typeof obj === 'object' && typeof obj.arrayBuffer === 'function' && typeof obj.type === 'string' && typeof obj.stream === 'function' && typeof obj.constructor === 'function' && typeof obj.constructor.name === 'string' && /^(Blob|File)$/.test(obj.constructor.name) && /^(Blob|File)$/.test(obj[Symbol.toStringTag]); -} +Target.prototype['comment'] = undefined; /** - * Clone body given Res/Req instance - * - * @param Mixed instance Response or Request instance - * @return Mixed + * @member {Date} creation_date */ -function clone(instance) { - let p1, p2; - let body = instance.body; - // don't allow cloning a used body - if (instance.bodyUsed) { - throw new Error('cannot clone body after it is used'); - } +Target.prototype['creation_date'] = undefined; +/** + * @member {Boolean} credentials_less + */ - // check that body is a stream and not form-data object - // note: we can't clone the form-data object without having it as a dependency - if (body instanceof Stream && typeof body.getBoundary !== 'function') { - // tee instance body - p1 = new PassThrough(); - p2 = new PassThrough(); - body.pipe(p1); - body.pipe(p2); - // set instance body to teed body and return the other teed body - instance[INTERNALS].body = p1; - body = p2; - } +Target.prototype['credentials_less'] = undefined; +/** + * @member {Boolean} is_access_request_enabled + */ - return body; -} +Target.prototype['is_access_request_enabled'] = undefined; +/** + * @member {Number} last_version + */ +Target.prototype['last_version'] = undefined; /** - * Performs the operation "extract a `Content-Type` value from |object|" as - * specified in the specification: - * https://fetch.spec.whatwg.org/#concept-bodyinit-extract - * - * This function assumes that instance.body is present. - * - * @param Mixed instance Any options.body input + * @member {Date} modification_date */ -function extractContentType(body) { - if (body === null) { - // body is null - return null; - } else if (typeof body === 'string') { - // body is string - return 'text/plain;charset=UTF-8'; - } else if (isURLSearchParams(body)) { - // body is a URLSearchParams - return 'application/x-www-form-urlencoded;charset=UTF-8'; - } else if (isBlob(body)) { - // body is blob - return body.type || null; - } else if (Buffer.isBuffer(body)) { - // body is buffer - return null; - } else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { - // body is ArrayBuffer - return null; - } else if (ArrayBuffer.isView(body)) { - // body is ArrayBufferView - return null; - } else if (typeof body.getBoundary === 'function') { - // detect form data input from form-data module - return `multipart/form-data;boundary=${body.getBoundary()}`; - } else if (body instanceof Stream) { - // body is stream - // can't really do much about this - return null; - } else { - // Body constructor defaults other things to string - return 'text/plain;charset=UTF-8'; - } -} +Target.prototype['modification_date'] = undefined; /** - * The Fetch Standard treats this as if "total bytes" is a property on the body. - * For us, we have to explicitly get it with a function. - * - * ref: https://fetch.spec.whatwg.org/#concept-body-total-bytes - * - * @param Body instance Instance of Body - * @return Number? Number of bytes, or null if not possible + * @member {String} protection_key_name */ -function getTotalBytes(instance) { - const body = instance.body; +Target.prototype['protection_key_name'] = undefined; +/** + * @member {String} target_details + */ - if (body === null) { - // body is null - return 0; - } else if (isBlob(body)) { - return body.size; - } else if (Buffer.isBuffer(body)) { - // body is buffer - return body.length; - } else if (body && typeof body.getLengthSync === 'function') { - // detect form data input from form-data module - if (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x - body.hasKnownLength && body.hasKnownLength()) { - // 2.x - return body.getLengthSync(); - } - return null; - } else { - // body is stream - return null; - } -} +Target.prototype['target_details'] = undefined; +/** + * @member {Number} target_id + */ +Target.prototype['target_id'] = undefined; /** - * Write a Body to a Node.js WritableStream (e.g. http.Request) object. - * - * @param Body instance Instance of Body - * @return Void + * @member {Array.} target_items_assoc */ -function writeToStream(dest, instance) { - const body = instance.body; +Target.prototype['target_items_assoc'] = undefined; +/** + * @member {String} target_name + */ - if (body === null) { - // body is null - dest.end(); - } else if (isBlob(body)) { - body.stream().pipe(dest); - } else if (Buffer.isBuffer(body)) { - // body is buffer - dest.write(body); - dest.end(); - } else { - // body is stream - body.pipe(dest); - } -} +Target.prototype['target_name'] = undefined; +/** + * @member {String} target_sub_type + */ -// expose Promise -Body.Promise = global.Promise; +Target.prototype['target_sub_type'] = undefined; +/** + * @member {String} target_type + */ +Target.prototype['target_type'] = undefined; /** - * headers.js - * - * Headers class offers convenient helpers + * @member {Array.} target_versions */ -const invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/; -const invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/; +Target.prototype['target_versions'] = undefined; +/** + * @member {Boolean} with_customer_fragment + */ -function validateName(name) { - name = `${name}`; - if (invalidTokenRegex.test(name) || name === '') { - throw new TypeError(`${name} is not a legal HTTP header name`); - } -} +Target.prototype['with_customer_fragment'] = undefined; +var _default = Target; +exports["default"] = _default; -function validateValue(value) { - value = `${value}`; - if (invalidHeaderCharRegex.test(value)) { - throw new TypeError(`${value} is not a legal HTTP header value`); - } -} +/***/ }), -/** - * Find the key in the map object given a header name. - * - * Returns undefined if not found. - * - * @param String name Header name - * @return String|Undefined - */ -function find(map, name) { - name = name.toLowerCase(); - for (const key in map) { - if (key.toLowerCase() === name) { - return key; - } - } - return undefined; -} +/***/ 78551: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -const MAP = Symbol('map'); -class Headers { - /** - * Headers class - * - * @param Object headers Response headers - * @return Void - */ - constructor() { - let init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined; +"use strict"; - this[MAP] = Object.create(null); - if (init instanceof Headers) { - const rawHeaders = init.raw(); - const headerNames = Object.keys(rawHeaders); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - for (const headerName of headerNames) { - for (const value of rawHeaders[headerName]) { - this.append(headerName, value); - } - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - return; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // We don't worry about converting prop to ByteString here as append() - // will handle it. - if (init == null) ; else if (typeof init === 'object') { - const method = init[Symbol.iterator]; - if (method != null) { - if (typeof method !== 'function') { - throw new TypeError('Header pairs must be iterable'); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // sequence> - // Note: per spec we have to first exhaust the lists then process them - const pairs = []; - for (const pair of init) { - if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { - throw new TypeError('Each header pair must be iterable'); - } - pairs.push(Array.from(pair)); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - for (const pair of pairs) { - if (pair.length !== 2) { - throw new TypeError('Each header pair must be a name/value tuple'); - } - this.append(pair[0], pair[1]); - } - } else { - // record - for (const key of Object.keys(init)) { - const value = init[key]; - this.append(key, value); - } - } - } else { - throw new TypeError('Provided initializer must be an object'); - } - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - /** - * Return combined header value given name - * - * @param String name Header name - * @return Mixed - */ - get(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key === undefined) { - return null; - } +/** + * The TargetItemAssociation model module. + * @module model/TargetItemAssociation + * @version 3.6.3 + */ +var TargetItemAssociation = /*#__PURE__*/function () { + /** + * Constructs a new TargetItemAssociation. + * TargetItemAssociation includes details of an association between a target and an item. Also, between targets in case of CredentialsLess target or Linked target. + * @alias module:model/TargetItemAssociation + */ + function TargetItemAssociation() { + _classCallCheck(this, TargetItemAssociation); - return this[MAP][key].join(', '); - } + TargetItemAssociation.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - /** - * Iterate over all headers - * - * @param Function callback Executed for each item with parameters (value, name, thisArg) - * @param Boolean thisArg `this` context for callback function - * @return Void - */ - forEach(callback) { - let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - let pairs = getHeaders(this); - let i = 0; - while (i < pairs.length) { - var _pairs$i = pairs[i]; - const name = _pairs$i[0], - value = _pairs$i[1]; + _createClass(TargetItemAssociation, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a TargetItemAssociation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TargetItemAssociation} obj Optional instance to populate. + * @return {module:model/TargetItemAssociation} The populated TargetItemAssociation instance. + */ - callback.call(thisArg, value, name, this); - pairs = getHeaders(this); - i++; - } - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TargetItemAssociation(); - /** - * Overwrite header values given name - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - set(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - this[MAP][key !== undefined ? key : name] = [value]; - } + if (data.hasOwnProperty('assoc_id')) { + obj['assoc_id'] = _ApiClient["default"].convertToType(data['assoc_id'], 'String'); + } - /** - * Append a value onto existing header - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - append(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - if (key !== undefined) { - this[MAP][key].push(value); - } else { - this[MAP][name] = [value]; - } - } + if (data.hasOwnProperty('attributes')) { + obj['attributes'] = _ApiClient["default"].convertToType(data['attributes'], { + 'String': 'String' + }); + } - /** - * Check for header name existence - * - * @param String name Header name - * @return Boolean - */ - has(name) { - name = `${name}`; - validateName(name); - return find(this[MAP], name) !== undefined; - } + if (data.hasOwnProperty('cluster_id')) { + obj['cluster_id'] = _ApiClient["default"].convertToType(data['cluster_id'], 'Number'); + } - /** - * Delete all header values given name - * - * @param String name Header name - * @return Void - */ - delete(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key !== undefined) { - delete this[MAP][key]; - } - } + if (data.hasOwnProperty('item_name')) { + obj['item_name'] = _ApiClient["default"].convertToType(data['item_name'], 'String'); + } - /** - * Return raw headers (non-spec api) - * - * @return Object - */ - raw() { - return this[MAP]; - } + if (data.hasOwnProperty('item_type')) { + obj['item_type'] = _ApiClient["default"].convertToType(data['item_type'], 'String'); + } + + if (data.hasOwnProperty('relationship')) { + obj['relationship'] = _ApiClient["default"].convertToType(data['relationship'], 'String'); + } + } + + return obj; + } + }]); + + return TargetItemAssociation; +}(); +/** + * @member {String} assoc_id + */ + + +TargetItemAssociation.prototype['assoc_id'] = undefined; +/** + * @member {Object.} attributes + */ + +TargetItemAssociation.prototype['attributes'] = undefined; +/** + * @member {Number} cluster_id + */ - /** - * Get an iterator on keys. - * - * @return Iterator - */ - keys() { - return createHeadersIterator(this, 'key'); - } +TargetItemAssociation.prototype['cluster_id'] = undefined; +/** + * @member {String} item_name + */ - /** - * Get an iterator on values. - * - * @return Iterator - */ - values() { - return createHeadersIterator(this, 'value'); - } +TargetItemAssociation.prototype['item_name'] = undefined; +/** + * @member {String} item_type + */ - /** - * Get an iterator on entries. - * - * This is the default iterator of the Headers object. - * - * @return Iterator - */ - [Symbol.iterator]() { - return createHeadersIterator(this, 'key+value'); - } -} -Headers.prototype.entries = Headers.prototype[Symbol.iterator]; +TargetItemAssociation.prototype['item_type'] = undefined; +/** + * @member {String} relationship + */ -Object.defineProperty(Headers.prototype, Symbol.toStringTag, { - value: 'Headers', - writable: false, - enumerable: false, - configurable: true -}); +TargetItemAssociation.prototype['relationship'] = undefined; +var _default = TargetItemAssociation; +exports["default"] = _default; -Object.defineProperties(Headers.prototype, { - get: { enumerable: true }, - forEach: { enumerable: true }, - set: { enumerable: true }, - append: { enumerable: true }, - has: { enumerable: true }, - delete: { enumerable: true }, - keys: { enumerable: true }, - values: { enumerable: true }, - entries: { enumerable: true } -}); +/***/ }), -function getHeaders(headers) { - let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; +/***/ 42216: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - const keys = Object.keys(headers[MAP]).sort(); - return keys.map(kind === 'key' ? function (k) { - return k.toLowerCase(); - } : kind === 'value' ? function (k) { - return headers[MAP][k].join(', '); - } : function (k) { - return [k.toLowerCase(), headers[MAP][k].join(', ')]; - }); -} +"use strict"; -const INTERNAL = Symbol('internal'); -function createHeadersIterator(target, kind) { - const iterator = Object.create(HeadersIteratorPrototype); - iterator[INTERNAL] = { - target, - kind, - index: 0 - }; - return iterator; -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -const HeadersIteratorPrototype = Object.setPrototypeOf({ - next() { - // istanbul ignore if - if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { - throw new TypeError('Value of `this` is not a HeadersIterator'); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - var _INTERNAL = this[INTERNAL]; - const target = _INTERNAL.target, - kind = _INTERNAL.kind, - index = _INTERNAL.index; +var _CertificateVersionInfo = _interopRequireDefault(__nccwpck_require__(67405)); - const values = getHeaders(target, kind); - const len = values.length; - if (index >= len) { - return { - value: undefined, - done: true - }; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - this[INTERNAL].index = index + 1; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - return { - value: values[index], - done: false - }; - } -}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { - value: 'HeadersIterator', - writable: false, - enumerable: false, - configurable: true -}); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Export the Headers object in a form that Node.js can consume. - * - * @param Headers headers - * @return Object + * The TargetItemVersion model module. + * @module model/TargetItemVersion + * @version 3.6.3 */ -function exportNodeCompatibleHeaders(headers) { - const obj = Object.assign({ __proto__: null }, headers[MAP]); +var TargetItemVersion = /*#__PURE__*/function () { + /** + * Constructs a new TargetItemVersion. + * @alias module:model/TargetItemVersion + */ + function TargetItemVersion() { + _classCallCheck(this, TargetItemVersion); - // http.request() only supports string as Host header. This hack makes - // specifying custom Host header possible. - const hostHeaderKey = find(headers[MAP], 'Host'); - if (hostHeaderKey !== undefined) { - obj[hostHeaderKey] = obj[hostHeaderKey][0]; - } + TargetItemVersion.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - return obj; -} -/** - * Create a Headers object from an object of headers, ignoring those that do - * not conform to HTTP grammar productions. - * - * @param Object obj Object of headers - * @return Headers - */ -function createHeadersLenient(obj) { - const headers = new Headers(); - for (const name of Object.keys(obj)) { - if (invalidTokenRegex.test(name)) { - continue; - } - if (Array.isArray(obj[name])) { - for (const val of obj[name]) { - if (invalidHeaderCharRegex.test(val)) { - continue; - } - if (headers[MAP][name] === undefined) { - headers[MAP][name] = [val]; - } else { - headers[MAP][name].push(val); - } - } - } else if (!invalidHeaderCharRegex.test(obj[name])) { - headers[MAP][name] = [obj[name]]; - } - } - return headers; -} + _createClass(TargetItemVersion, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a TargetItemVersion from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TargetItemVersion} obj Optional instance to populate. + * @return {module:model/TargetItemVersion} The populated TargetItemVersion instance. + */ -const INTERNALS$1 = Symbol('Response internals'); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TargetItemVersion(); -// fix an issue where "STATUS_CODES" aren't a named export for node <10 -const STATUS_CODES = http.STATUS_CODES; + if (data.hasOwnProperty('access_date')) { + obj['access_date'] = _ApiClient["default"].convertToType(data['access_date'], 'Date'); + } -/** - * Response class - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -class Response { - constructor() { - let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + if (data.hasOwnProperty('access_date_display')) { + obj['access_date_display'] = _ApiClient["default"].convertToType(data['access_date_display'], 'String'); + } - Body.call(this, body, opts); + if (data.hasOwnProperty('certificate_version_info')) { + obj['certificate_version_info'] = _CertificateVersionInfo["default"].constructFromObject(data['certificate_version_info']); + } - const status = opts.status || 200; - const headers = new Headers(opts.headers); + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); + } - if (body != null && !headers.has('Content-Type')) { - const contentType = extractContentType(body); - if (contentType) { - headers.append('Content-Type', contentType); - } - } + if (data.hasOwnProperty('customer_fragment_id')) { + obj['customer_fragment_id'] = _ApiClient["default"].convertToType(data['customer_fragment_id'], 'String'); + } - this[INTERNALS$1] = { - url: opts.url, - status, - statusText: opts.statusText || STATUS_CODES[status], - headers, - counter: opts.counter - }; - } + if (data.hasOwnProperty('deletion_date')) { + obj['deletion_date'] = _ApiClient["default"].convertToType(data['deletion_date'], 'Date'); + } - get url() { - return this[INTERNALS$1].url || ''; - } + if (data.hasOwnProperty('item_version_state')) { + obj['item_version_state'] = _ApiClient["default"].convertToType(data['item_version_state'], 'String'); + } - get status() { - return this[INTERNALS$1].status; - } + if (data.hasOwnProperty('latest_version')) { + obj['latest_version'] = _ApiClient["default"].convertToType(data['latest_version'], 'Boolean'); + } - /** - * Convenience property representing if the request ended normally - */ - get ok() { - return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; - } + if (data.hasOwnProperty('modification_date')) { + obj['modification_date'] = _ApiClient["default"].convertToType(data['modification_date'], 'Date'); + } - get redirected() { - return this[INTERNALS$1].counter > 0; - } + if (data.hasOwnProperty('protection_key_name')) { + obj['protection_key_name'] = _ApiClient["default"].convertToType(data['protection_key_name'], 'String'); + } - get statusText() { - return this[INTERNALS$1].statusText; - } + if (data.hasOwnProperty('target_name')) { + obj['target_name'] = _ApiClient["default"].convertToType(data['target_name'], 'String'); + } - get headers() { - return this[INTERNALS$1].headers; - } + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number'); + } - /** - * Clone this response - * - * @return Response - */ - clone() { - return new Response(clone(this), { - url: this.url, - status: this.status, - statusText: this.statusText, - headers: this.headers, - ok: this.ok, - redirected: this.redirected - }); - } -} + if (data.hasOwnProperty('with_customer_fragment')) { + obj['with_customer_fragment'] = _ApiClient["default"].convertToType(data['with_customer_fragment'], 'Boolean'); + } + } -Body.mixIn(Response.prototype); + return obj; + } + }]); -Object.defineProperties(Response.prototype, { - url: { enumerable: true }, - status: { enumerable: true }, - ok: { enumerable: true }, - redirected: { enumerable: true }, - statusText: { enumerable: true }, - headers: { enumerable: true }, - clone: { enumerable: true } -}); + return TargetItemVersion; +}(); +/** + * @member {Date} access_date + */ -Object.defineProperty(Response.prototype, Symbol.toStringTag, { - value: 'Response', - writable: false, - enumerable: false, - configurable: true -}); -const INTERNALS$2 = Symbol('Request internals'); -const URL = Url.URL || whatwgUrl.URL; +TargetItemVersion.prototype['access_date'] = undefined; +/** + * @member {String} access_date_display + */ -// fix an issue where "format", "parse" aren't a named export for node <10 -const parse_url = Url.parse; -const format_url = Url.format; +TargetItemVersion.prototype['access_date_display'] = undefined; +/** + * @member {module:model/CertificateVersionInfo} certificate_version_info + */ +TargetItemVersion.prototype['certificate_version_info'] = undefined; /** - * Wrapper around `new URL` to handle arbitrary URLs - * - * @param {string} urlStr - * @return {void} + * @member {Date} creation_date */ -function parseURL(urlStr) { - /* - Check whether the URL is absolute or not - Scheme: https://tools.ietf.org/html/rfc3986#section-3.1 - Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3 + +TargetItemVersion.prototype['creation_date'] = undefined; +/** + * @member {String} customer_fragment_id */ - if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) { - urlStr = new URL(urlStr).toString(); - } - // Fallback to old implementation for arbitrary URLs - return parse_url(urlStr); -} +TargetItemVersion.prototype['customer_fragment_id'] = undefined; +/** + * @member {Date} deletion_date + */ -const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; +TargetItemVersion.prototype['deletion_date'] = undefined; +/** + * ItemState defines the different states an Item can be in + * @member {String} item_version_state + */ +TargetItemVersion.prototype['item_version_state'] = undefined; /** - * Check if a value is an instance of Request. - * - * @param Mixed input - * @return Boolean + * @member {Boolean} latest_version */ -function isRequest(input) { - return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; -} -function isAbortSignal(signal) { - const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); - return !!(proto && proto.constructor.name === 'AbortSignal'); -} +TargetItemVersion.prototype['latest_version'] = undefined; +/** + * @member {Date} modification_date + */ +TargetItemVersion.prototype['modification_date'] = undefined; /** - * Request class - * - * @param Mixed input Url or Request instance - * @param Object init Custom options - * @return Void + * @member {String} protection_key_name */ -class Request { - constructor(input) { - let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - let parsedURL; +TargetItemVersion.prototype['protection_key_name'] = undefined; +/** + * @member {String} target_name + */ - // normalize input - if (!isRequest(input)) { - if (input && input.href) { - // in order to support Node.js' Url objects; though WHATWG's URL objects - // will fall into this branch also (since their `toString()` will return - // `href` property anyway) - parsedURL = parseURL(input.href); - } else { - // coerce input to a string before attempting to parse - parsedURL = parseURL(`${input}`); - } - input = {}; - } else { - parsedURL = parseURL(input.url); - } +TargetItemVersion.prototype['target_name'] = undefined; +/** + * @member {Number} version + */ - let method = init.method || input.method || 'GET'; - method = method.toUpperCase(); +TargetItemVersion.prototype['version'] = undefined; +/** + * @member {Boolean} with_customer_fragment + */ - if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { - throw new TypeError('Request with GET/HEAD method cannot have body'); - } +TargetItemVersion.prototype['with_customer_fragment'] = undefined; +var _default = TargetItemVersion; +exports["default"] = _default; - let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; +/***/ }), - Body.call(this, inputBody, { - timeout: init.timeout || input.timeout || 0, - size: init.size || input.size || 0 - }); +/***/ 9507: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - const headers = new Headers(init.headers || input.headers || {}); +"use strict"; - if (inputBody != null && !headers.has('Content-Type')) { - const contentType = extractContentType(inputBody); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - let signal = isRequest(input) ? input.signal : null; - if ('signal' in init) signal = init.signal; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (signal != null && !isAbortSignal(signal)) { - throw new TypeError('Expected signal to be an instanceof AbortSignal'); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - this[INTERNALS$2] = { - method, - redirect: init.redirect || input.redirect || 'follow', - headers, - parsedURL, - signal - }; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // node-fetch-only options - this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; - this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; - this.counter = init.counter || input.counter || 0; - this.agent = init.agent || input.agent; - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - get method() { - return this[INTERNALS$2].method; - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - get url() { - return format_url(this[INTERNALS$2].parsedURL); - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - get headers() { - return this[INTERNALS$2].headers; - } +/** + * The TargetNameWithHosts model module. + * @module model/TargetNameWithHosts + * @version 3.6.3 + */ +var TargetNameWithHosts = /*#__PURE__*/function () { + /** + * Constructs a new TargetNameWithHosts. + * @alias module:model/TargetNameWithHosts + */ + function TargetNameWithHosts() { + _classCallCheck(this, TargetNameWithHosts); - get redirect() { - return this[INTERNALS$2].redirect; - } + TargetNameWithHosts.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - get signal() { - return this[INTERNALS$2].signal; - } - /** - * Clone this request - * - * @return Request - */ - clone() { - return new Request(this); - } -} + _createClass(TargetNameWithHosts, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a TargetNameWithHosts from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TargetNameWithHosts} obj Optional instance to populate. + * @return {module:model/TargetNameWithHosts} The populated TargetNameWithHosts instance. + */ -Body.mixIn(Request.prototype); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TargetNameWithHosts(); -Object.defineProperty(Request.prototype, Symbol.toStringTag, { - value: 'Request', - writable: false, - enumerable: false, - configurable: true -}); + if (data.hasOwnProperty('hosts')) { + obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], ['String']); + } -Object.defineProperties(Request.prototype, { - method: { enumerable: true }, - url: { enumerable: true }, - headers: { enumerable: true }, - redirect: { enumerable: true }, - clone: { enumerable: true }, - signal: { enumerable: true } -}); + if (data.hasOwnProperty('target_name')) { + obj['target_name'] = _ApiClient["default"].convertToType(data['target_name'], 'String'); + } + } + + return obj; + } + }]); + return TargetNameWithHosts; +}(); /** - * Convert a Request to Node.js http request options. - * - * @param Request A Request instance - * @return Object The options object to be passed to http.request + * @member {Array.} hosts */ -function getNodeRequestOptions(request) { - const parsedURL = request[INTERNALS$2].parsedURL; - const headers = new Headers(request[INTERNALS$2].headers); - // fetch step 1.3 - if (!headers.has('Accept')) { - headers.set('Accept', '*/*'); - } - // Basic fetch - if (!parsedURL.protocol || !parsedURL.hostname) { - throw new TypeError('Only absolute URLs are supported'); - } +TargetNameWithHosts.prototype['hosts'] = undefined; +/** + * @member {String} target_name + */ - if (!/^https?:$/.test(parsedURL.protocol)) { - throw new TypeError('Only HTTP(S) protocols are supported'); - } +TargetNameWithHosts.prototype['target_name'] = undefined; +var _default = TargetNameWithHosts; +exports["default"] = _default; - if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { - throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); - } +/***/ }), - // HTTP-network-or-cache fetch steps 2.4-2.7 - let contentLengthValue = null; - if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { - contentLengthValue = '0'; - } - if (request.body != null) { - const totalBytes = getTotalBytes(request); - if (typeof totalBytes === 'number') { - contentLengthValue = String(totalBytes); - } - } - if (contentLengthValue) { - headers.set('Content-Length', contentLengthValue); - } +/***/ 6643: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // HTTP-network-or-cache fetch step 2.11 - if (!headers.has('User-Agent')) { - headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); - } +"use strict"; - // HTTP-network-or-cache fetch step 2.15 - if (request.compress && !headers.has('Accept-Encoding')) { - headers.set('Accept-Encoding', 'gzip,deflate'); - } - let agent = request.agent; - if (typeof agent === 'function') { - agent = agent(parsedURL); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // HTTP-network fetch step 4.2 - // chunked encoding is handled by Node.js +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - return Object.assign({}, parsedURL, { - method: request.method, - headers: exportNodeCompatibleHeaders(headers), - agent - }); -} +var _AWSTargetDetails = _interopRequireDefault(__nccwpck_require__(4398)); -/** - * abort-error.js - * - * AbortError interface for cancelled requests - */ +var _ArtifactoryTargetDetails = _interopRequireDefault(__nccwpck_require__(99747)); -/** - * Create AbortError instance - * - * @param String message Error message for human - * @return AbortError - */ -function AbortError(message) { - Error.call(this, message); +var _AzureTargetDetails = _interopRequireDefault(__nccwpck_require__(58540)); - this.type = 'aborted'; - this.message = message; +var _ChefTargetDetails = _interopRequireDefault(__nccwpck_require__(29095)); - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} +var _CustomTargetDetails = _interopRequireDefault(__nccwpck_require__(70142)); -AbortError.prototype = Object.create(Error.prototype); -AbortError.prototype.constructor = AbortError; -AbortError.prototype.name = 'AbortError'; +var _DbTargetDetails = _interopRequireDefault(__nccwpck_require__(33853)); -const URL$1 = Url.URL || whatwgUrl.URL; +var _DockerhubTargetDetails = _interopRequireDefault(__nccwpck_require__(57844)); -// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 -const PassThrough$1 = Stream.PassThrough; +var _EKSTargetDetails = _interopRequireDefault(__nccwpck_require__(18422)); -const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) { - const orig = new URL$1(original).hostname; - const dest = new URL$1(destination).hostname; +var _GKETargetDetails = _interopRequireDefault(__nccwpck_require__(13006)); - return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest); -}; +var _GcpTargetDetails = _interopRequireDefault(__nccwpck_require__(83083)); -/** - * isSameProtocol reports whether the two provided URLs use the same protocol. - * - * Both domains must already be in canonical form. - * @param {string|URL} original - * @param {string|URL} destination - */ -const isSameProtocol = function isSameProtocol(destination, original) { - const orig = new URL$1(original).protocol; - const dest = new URL$1(destination).protocol; +var _GithubTargetDetails = _interopRequireDefault(__nccwpck_require__(46870)); - return orig === dest; -}; +var _GlobalSignAtlasTargetDetails = _interopRequireDefault(__nccwpck_require__(77606)); -/** - * Fetch function - * - * @param Mixed url Absolute url or Request instance - * @param Object opts Fetch options - * @return Promise - */ -function fetch(url, opts) { +var _GlobalSignGCCTargetDetails = _interopRequireDefault(__nccwpck_require__(4150)); - // allow custom promise - if (!fetch.Promise) { - throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); - } +var _GodaddyTargetDetails = _interopRequireDefault(__nccwpck_require__(52393)); - Body.Promise = fetch.Promise; +var _LdapTargetDetails = _interopRequireDefault(__nccwpck_require__(11780)); - // wrap http.request into fetch - return new fetch.Promise(function (resolve, reject) { - // build request object - const request = new Request(url, opts); - const options = getNodeRequestOptions(request); +var _LinkedTargetDetails = _interopRequireDefault(__nccwpck_require__(35968)); - const send = (options.protocol === 'https:' ? https : http).request; - const signal = request.signal; +var _MongoDBTargetDetails = _interopRequireDefault(__nccwpck_require__(57731)); - let response = null; +var _NativeK8sTargetDetails = _interopRequireDefault(__nccwpck_require__(80406)); - const abort = function abort() { - let error = new AbortError('The user aborted a request.'); - reject(error); - if (request.body && request.body instanceof Stream.Readable) { - destroyStream(request.body, error); - } - if (!response || !response.body) return; - response.body.emit('error', error); - }; +var _PingTargetDetails = _interopRequireDefault(__nccwpck_require__(18619)); - if (signal && signal.aborted) { - abort(); - return; - } +var _RabbitMQTargetDetails = _interopRequireDefault(__nccwpck_require__(78325)); - const abortAndFinalize = function abortAndFinalize() { - abort(); - finalize(); - }; +var _SSHTargetDetails = _interopRequireDefault(__nccwpck_require__(615)); - // send request - const req = send(options); - let reqTimeout; +var _SalesforceTargetDetails = _interopRequireDefault(__nccwpck_require__(48590)); - if (signal) { - signal.addEventListener('abort', abortAndFinalize); - } +var _VenafiTargetDetails = _interopRequireDefault(__nccwpck_require__(17420)); - function finalize() { - req.abort(); - if (signal) signal.removeEventListener('abort', abortAndFinalize); - clearTimeout(reqTimeout); - } +var _WebTargetDetails = _interopRequireDefault(__nccwpck_require__(99871)); - if (request.timeout) { - req.once('socket', function (socket) { - reqTimeout = setTimeout(function () { - reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); - finalize(); - }, request.timeout); - }); - } +var _WindowsTargetDetails = _interopRequireDefault(__nccwpck_require__(70614)); - req.on('error', function (err) { - reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); +var _ZeroSSLTargetDetails = _interopRequireDefault(__nccwpck_require__(57621)); - if (response && response.body) { - destroyStream(response.body, err); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - finalize(); - }); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - fixResponseChunkedTransferBadEnding(req, function (err) { - if (signal && signal.aborted) { - return; - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (response && response.body) { - destroyStream(response.body, err); - } - }); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - /* c8 ignore next 18 */ - if (parseInt(process.version.substring(1)) < 14) { - // Before Node.js 14, pipeline() does not fully support async iterators and does not always - // properly handle when the socket close/end events are out of order. - req.on('socket', function (s) { - s.addListener('close', function (hadError) { - // if a data listener is still present we didn't end cleanly - const hasDataListener = s.listenerCount('data') > 0; +/** + * The TargetTypeDetailsInput model module. + * @module model/TargetTypeDetailsInput + * @version 3.6.3 + */ +var TargetTypeDetailsInput = /*#__PURE__*/function () { + /** + * Constructs a new TargetTypeDetailsInput. + * @alias module:model/TargetTypeDetailsInput + */ + function TargetTypeDetailsInput() { + _classCallCheck(this, TargetTypeDetailsInput); - // if end happened before close but the socket didn't emit an error, do it now - if (response && hasDataListener && !hadError && !(signal && signal.aborted)) { - const err = new Error('Premature close'); - err.code = 'ERR_STREAM_PREMATURE_CLOSE'; - response.body.emit('error', err); - } - }); - }); - } + TargetTypeDetailsInput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - req.on('response', function (res) { - clearTimeout(reqTimeout); - const headers = createHeadersLenient(res.headers); + _createClass(TargetTypeDetailsInput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a TargetTypeDetailsInput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TargetTypeDetailsInput} obj Optional instance to populate. + * @return {module:model/TargetTypeDetailsInput} The populated TargetTypeDetailsInput instance. + */ - // HTTP fetch step 5 - if (fetch.isRedirect(res.statusCode)) { - // HTTP fetch step 5.2 - const location = headers.get('Location'); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TargetTypeDetailsInput(); - // HTTP fetch step 5.3 - let locationURL = null; - try { - locationURL = location === null ? null : new URL$1(location, request.url).toString(); - } catch (err) { - // error here can only be invalid URL in Location: header - // do not throw when options.redirect == manual - // let the user extract the errorneous redirect URL - if (request.redirect !== 'manual') { - reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect')); - finalize(); - return; - } - } + if (data.hasOwnProperty('artifactory_target_details')) { + obj['artifactory_target_details'] = _ArtifactoryTargetDetails["default"].constructFromObject(data['artifactory_target_details']); + } - // HTTP fetch step 5.5 - switch (request.redirect) { - case 'error': - reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect')); - finalize(); - return; - case 'manual': - // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. - if (locationURL !== null) { - // handle corrupted header - try { - headers.set('Location', locationURL); - } catch (err) { - // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request - reject(err); - } - } - break; - case 'follow': - // HTTP-redirect fetch step 2 - if (locationURL === null) { - break; - } + if (data.hasOwnProperty('aws_target_details')) { + obj['aws_target_details'] = _AWSTargetDetails["default"].constructFromObject(data['aws_target_details']); + } - // HTTP-redirect fetch step 5 - if (request.counter >= request.follow) { - reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); - finalize(); - return; - } + if (data.hasOwnProperty('azure_target_details')) { + obj['azure_target_details'] = _AzureTargetDetails["default"].constructFromObject(data['azure_target_details']); + } - // HTTP-redirect fetch step 6 (counter increment) - // Create a new Request object. - const requestOpts = { - headers: new Headers(request.headers), - follow: request.follow, - counter: request.counter + 1, - agent: request.agent, - compress: request.compress, - method: request.method, - body: request.body, - signal: request.signal, - timeout: request.timeout, - size: request.size - }; + if (data.hasOwnProperty('chef_target_details')) { + obj['chef_target_details'] = _ChefTargetDetails["default"].constructFromObject(data['chef_target_details']); + } - if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) { - for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) { - requestOpts.headers.delete(name); - } - } + if (data.hasOwnProperty('custom_target_details')) { + obj['custom_target_details'] = _CustomTargetDetails["default"].constructFromObject(data['custom_target_details']); + } - // HTTP-redirect fetch step 9 - if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { - reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); - finalize(); - return; - } + if (data.hasOwnProperty('db_target_details')) { + obj['db_target_details'] = _DbTargetDetails["default"].constructFromObject(data['db_target_details']); + } - // HTTP-redirect fetch step 11 - if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { - requestOpts.method = 'GET'; - requestOpts.body = undefined; - requestOpts.headers.delete('content-length'); - } + if (data.hasOwnProperty('dockerhub_target_details')) { + obj['dockerhub_target_details'] = _DockerhubTargetDetails["default"].constructFromObject(data['dockerhub_target_details']); + } - // HTTP-redirect fetch step 15 - resolve(fetch(new Request(locationURL, requestOpts))); - finalize(); - return; - } - } + if (data.hasOwnProperty('eks_target_details')) { + obj['eks_target_details'] = _EKSTargetDetails["default"].constructFromObject(data['eks_target_details']); + } - // prepare response - res.once('end', function () { - if (signal) signal.removeEventListener('abort', abortAndFinalize); - }); - let body = res.pipe(new PassThrough$1()); + if (data.hasOwnProperty('gcp_target_details')) { + obj['gcp_target_details'] = _GcpTargetDetails["default"].constructFromObject(data['gcp_target_details']); + } - const response_options = { - url: request.url, - status: res.statusCode, - statusText: res.statusMessage, - headers: headers, - size: request.size, - timeout: request.timeout, - counter: request.counter - }; + if (data.hasOwnProperty('github_target_details')) { + obj['github_target_details'] = _GithubTargetDetails["default"].constructFromObject(data['github_target_details']); + } - // HTTP-network fetch step 12.1.1.3 - const codings = headers.get('Content-Encoding'); + if (data.hasOwnProperty('gke_target_details')) { + obj['gke_target_details'] = _GKETargetDetails["default"].constructFromObject(data['gke_target_details']); + } - // HTTP-network fetch step 12.1.1.4: handle content codings + if (data.hasOwnProperty('globalsign_atlas_target_details')) { + obj['globalsign_atlas_target_details'] = _GlobalSignAtlasTargetDetails["default"].constructFromObject(data['globalsign_atlas_target_details']); + } - // in following scenarios we ignore compression support - // 1. compression support is disabled - // 2. HEAD request - // 3. no Content-Encoding header - // 4. no content response (204) - // 5. content not modified response (304) - if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { - response = new Response(body, response_options); - resolve(response); - return; - } + if (data.hasOwnProperty('globalsign_target_details')) { + obj['globalsign_target_details'] = _GlobalSignGCCTargetDetails["default"].constructFromObject(data['globalsign_target_details']); + } - // For Node v6+ - // Be less strict when decoding compressed responses, since sometimes - // servers send slightly invalid responses that are still accepted - // by common browsers. - // Always using Z_SYNC_FLUSH is what cURL does. - const zlibOptions = { - flush: zlib.Z_SYNC_FLUSH, - finishFlush: zlib.Z_SYNC_FLUSH - }; + if (data.hasOwnProperty('godaddy_target_details')) { + obj['godaddy_target_details'] = _GodaddyTargetDetails["default"].constructFromObject(data['godaddy_target_details']); + } - // for gzip - if (codings == 'gzip' || codings == 'x-gzip') { - body = body.pipe(zlib.createGunzip(zlibOptions)); - response = new Response(body, response_options); - resolve(response); - return; - } + if (data.hasOwnProperty('ldap_target_details')) { + obj['ldap_target_details'] = _LdapTargetDetails["default"].constructFromObject(data['ldap_target_details']); + } - // for deflate - if (codings == 'deflate' || codings == 'x-deflate') { - // handle the infamous raw deflate response from old servers - // a hack for old IIS and Apache servers - const raw = res.pipe(new PassThrough$1()); - raw.once('data', function (chunk) { - // see http://stackoverflow.com/questions/37519828 - if ((chunk[0] & 0x0F) === 0x08) { - body = body.pipe(zlib.createInflate()); - } else { - body = body.pipe(zlib.createInflateRaw()); - } - response = new Response(body, response_options); - resolve(response); - }); - raw.on('end', function () { - // some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted. - if (!response) { - response = new Response(body, response_options); - resolve(response); - } - }); - return; - } + if (data.hasOwnProperty('linked_target_details')) { + obj['linked_target_details'] = _LinkedTargetDetails["default"].constructFromObject(data['linked_target_details']); + } - // for br - if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') { - body = body.pipe(zlib.createBrotliDecompress()); - response = new Response(body, response_options); - resolve(response); - return; - } + if (data.hasOwnProperty('mongo_db_target_details')) { + obj['mongo_db_target_details'] = _MongoDBTargetDetails["default"].constructFromObject(data['mongo_db_target_details']); + } + + if (data.hasOwnProperty('native_k8s_target_details')) { + obj['native_k8s_target_details'] = _NativeK8sTargetDetails["default"].constructFromObject(data['native_k8s_target_details']); + } + + if (data.hasOwnProperty('ping_target_details')) { + obj['ping_target_details'] = _PingTargetDetails["default"].constructFromObject(data['ping_target_details']); + } + + if (data.hasOwnProperty('rabbit_mq_target_details')) { + obj['rabbit_mq_target_details'] = _RabbitMQTargetDetails["default"].constructFromObject(data['rabbit_mq_target_details']); + } - // otherwise, use response as-is - response = new Response(body, response_options); - resolve(response); - }); + if (data.hasOwnProperty('salesforce_target_details')) { + obj['salesforce_target_details'] = _SalesforceTargetDetails["default"].constructFromObject(data['salesforce_target_details']); + } - writeToStream(req, request); - }); -} -function fixResponseChunkedTransferBadEnding(request, errorCallback) { - let socket; + if (data.hasOwnProperty('ssh_target_details')) { + obj['ssh_target_details'] = _SSHTargetDetails["default"].constructFromObject(data['ssh_target_details']); + } - request.on('socket', function (s) { - socket = s; - }); + if (data.hasOwnProperty('venafi_target_details')) { + obj['venafi_target_details'] = _VenafiTargetDetails["default"].constructFromObject(data['venafi_target_details']); + } - request.on('response', function (response) { - const headers = response.headers; + if (data.hasOwnProperty('web_target_details')) { + obj['web_target_details'] = _WebTargetDetails["default"].constructFromObject(data['web_target_details']); + } - if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) { - response.once('close', function (hadError) { - // tests for socket presence, as in some situations the - // the 'socket' event is not triggered for the request - // (happens in deno), avoids `TypeError` - // if a data listener is still present we didn't end cleanly - const hasDataListener = socket && socket.listenerCount('data') > 0; + if (data.hasOwnProperty('windows_target_details')) { + obj['windows_target_details'] = _WindowsTargetDetails["default"].constructFromObject(data['windows_target_details']); + } - if (hasDataListener && !hadError) { - const err = new Error('Premature close'); - err.code = 'ERR_STREAM_PREMATURE_CLOSE'; - errorCallback(err); - } - }); - } - }); -} + if (data.hasOwnProperty('zerossl_target_details')) { + obj['zerossl_target_details'] = _ZeroSSLTargetDetails["default"].constructFromObject(data['zerossl_target_details']); + } + } -function destroyStream(stream, err) { - if (stream.destroy) { - stream.destroy(err); - } else { - // node < 8 - stream.emit('error', err); - stream.end(); - } -} + return obj; + } + }]); + return TargetTypeDetailsInput; +}(); /** - * Redirect code matching - * - * @param Number code Status code - * @return Boolean + * @member {module:model/ArtifactoryTargetDetails} artifactory_target_details */ -fetch.isRedirect = function (code) { - return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; -}; -// expose Promise -fetch.Promise = global.Promise; -module.exports = exports = fetch; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports["default"] = exports; -exports.Headers = Headers; -exports.Request = Request; -exports.Response = Response; -exports.FetchError = FetchError; -exports.AbortError = AbortError; +TargetTypeDetailsInput.prototype['artifactory_target_details'] = undefined; +/** + * @member {module:model/AWSTargetDetails} aws_target_details + */ +TargetTypeDetailsInput.prototype['aws_target_details'] = undefined; +/** + * @member {module:model/AzureTargetDetails} azure_target_details + */ -/***/ }), +TargetTypeDetailsInput.prototype['azure_target_details'] = undefined; +/** + * @member {module:model/ChefTargetDetails} chef_target_details + */ -/***/ 39445: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +TargetTypeDetailsInput.prototype['chef_target_details'] = undefined; +/** + * @member {module:model/CustomTargetDetails} custom_target_details + */ +TargetTypeDetailsInput.prototype['custom_target_details'] = undefined; /** - * Advanced Encryption Standard (AES) implementation. - * - * This implementation is based on the public domain library 'jscrypto' which - * was written by: - * - * Emily Stark (estark@stanford.edu) - * Mike Hamburg (mhamburg@stanford.edu) - * Dan Boneh (dabo@cs.stanford.edu) - * - * Parts of this code are based on the OpenSSL implementation of AES: - * http://www.openssl.org - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. + * @member {module:model/DbTargetDetails} db_target_details */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(14723); -__nccwpck_require__(61203); -__nccwpck_require__(97456); -/* AES API */ -module.exports = forge.aes = forge.aes || {}; +TargetTypeDetailsInput.prototype['db_target_details'] = undefined; +/** + * @member {module:model/DockerhubTargetDetails} dockerhub_target_details + */ +TargetTypeDetailsInput.prototype['dockerhub_target_details'] = undefined; /** - * Deprecated. Instead, use: - * - * var cipher = forge.cipher.createCipher('AES-', key); - * cipher.start({iv: iv}); - * - * Creates an AES cipher object to encrypt data using the given symmetric key. - * The output will be stored in the 'output' member of the returned cipher. - * - * The key and iv may be given as a string of bytes, an array of bytes, - * a byte buffer, or an array of 32-bit words. - * - * @param key the symmetric key to use. - * @param iv the initialization vector to use. - * @param output the buffer to write to, null to create one. - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. + * @member {module:model/EKSTargetDetails} eks_target_details */ -forge.aes.startEncrypting = function(key, iv, output, mode) { - var cipher = _createCipher({ - key: key, - output: output, - decrypt: false, - mode: mode - }); - cipher.start(iv); - return cipher; -}; +TargetTypeDetailsInput.prototype['eks_target_details'] = undefined; /** - * Deprecated. Instead, use: - * - * var cipher = forge.cipher.createCipher('AES-', key); - * - * Creates an AES cipher object to encrypt data using the given symmetric key. - * - * The key may be given as a string of bytes, an array of bytes, a - * byte buffer, or an array of 32-bit words. - * - * @param key the symmetric key to use. - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. + * @member {module:model/GcpTargetDetails} gcp_target_details */ -forge.aes.createEncryptionCipher = function(key, mode) { - return _createCipher({ - key: key, - output: null, - decrypt: false, - mode: mode - }); -}; +TargetTypeDetailsInput.prototype['gcp_target_details'] = undefined; /** - * Deprecated. Instead, use: - * - * var decipher = forge.cipher.createDecipher('AES-', key); - * decipher.start({iv: iv}); - * - * Creates an AES cipher object to decrypt data using the given symmetric key. - * The output will be stored in the 'output' member of the returned cipher. - * - * The key and iv may be given as a string of bytes, an array of bytes, - * a byte buffer, or an array of 32-bit words. - * - * @param key the symmetric key to use. - * @param iv the initialization vector to use. - * @param output the buffer to write to, null to create one. - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. + * @member {module:model/GithubTargetDetails} github_target_details */ -forge.aes.startDecrypting = function(key, iv, output, mode) { - var cipher = _createCipher({ - key: key, - output: output, - decrypt: true, - mode: mode - }); - cipher.start(iv); - return cipher; -}; +TargetTypeDetailsInput.prototype['github_target_details'] = undefined; /** - * Deprecated. Instead, use: - * - * var decipher = forge.cipher.createDecipher('AES-', key); - * - * Creates an AES cipher object to decrypt data using the given symmetric key. - * - * The key may be given as a string of bytes, an array of bytes, a - * byte buffer, or an array of 32-bit words. - * - * @param key the symmetric key to use. - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. + * @member {module:model/GKETargetDetails} gke_target_details */ -forge.aes.createDecryptionCipher = function(key, mode) { - return _createCipher({ - key: key, - output: null, - decrypt: true, - mode: mode - }); -}; +TargetTypeDetailsInput.prototype['gke_target_details'] = undefined; /** - * Creates a new AES cipher algorithm object. - * - * @param name the name of the algorithm. - * @param mode the mode factory function. - * - * @return the AES algorithm object. + * @member {module:model/GlobalSignAtlasTargetDetails} globalsign_atlas_target_details */ -forge.aes.Algorithm = function(name, mode) { - if(!init) { - initialize(); - } - var self = this; - self.name = name; - self.mode = new mode({ - blockSize: 16, - cipher: { - encrypt: function(inBlock, outBlock) { - return _updateBlock(self._w, inBlock, outBlock, false); - }, - decrypt: function(inBlock, outBlock) { - return _updateBlock(self._w, inBlock, outBlock, true); - } - } - }); - self._init = false; -}; +TargetTypeDetailsInput.prototype['globalsign_atlas_target_details'] = undefined; /** - * Initializes this AES algorithm by expanding its key. - * - * @param options the options to use. - * key the key to use with this algorithm. - * decrypt true if the algorithm should be initialized for decryption, - * false for encryption. + * @member {module:model/GlobalSignGCCTargetDetails} globalsign_target_details */ -forge.aes.Algorithm.prototype.initialize = function(options) { - if(this._init) { - return; - } - var key = options.key; - var tmp; +TargetTypeDetailsInput.prototype['globalsign_target_details'] = undefined; +/** + * @member {module:model/GodaddyTargetDetails} godaddy_target_details + */ - /* Note: The key may be a string of bytes, an array of bytes, a byte - buffer, or an array of 32-bit integers. If the key is in bytes, then - it must be 16, 24, or 32 bytes in length. If it is in 32-bit - integers, it must be 4, 6, or 8 integers long. */ +TargetTypeDetailsInput.prototype['godaddy_target_details'] = undefined; +/** + * @member {module:model/LdapTargetDetails} ldap_target_details + */ - if(typeof key === 'string' && - (key.length === 16 || key.length === 24 || key.length === 32)) { - // convert key string into byte buffer - key = forge.util.createBuffer(key); - } else if(forge.util.isArray(key) && - (key.length === 16 || key.length === 24 || key.length === 32)) { - // convert key integer array into byte buffer - tmp = key; - key = forge.util.createBuffer(); - for(var i = 0; i < tmp.length; ++i) { - key.putByte(tmp[i]); - } - } +TargetTypeDetailsInput.prototype['ldap_target_details'] = undefined; +/** + * @member {module:model/LinkedTargetDetails} linked_target_details + */ - // convert key byte buffer into 32-bit integer array - if(!forge.util.isArray(key)) { - tmp = key; - key = []; +TargetTypeDetailsInput.prototype['linked_target_details'] = undefined; +/** + * @member {module:model/MongoDBTargetDetails} mongo_db_target_details + */ - // key lengths of 16, 24, 32 bytes allowed - var len = tmp.length(); - if(len === 16 || len === 24 || len === 32) { - len = len >>> 2; - for(var i = 0; i < len; ++i) { - key.push(tmp.getInt32()); - } - } - } +TargetTypeDetailsInput.prototype['mongo_db_target_details'] = undefined; +/** + * @member {module:model/NativeK8sTargetDetails} native_k8s_target_details + */ - // key must be an array of 32-bit integers by now - if(!forge.util.isArray(key) || - !(key.length === 4 || key.length === 6 || key.length === 8)) { - throw new Error('Invalid key parameter.'); - } +TargetTypeDetailsInput.prototype['native_k8s_target_details'] = undefined; +/** + * @member {module:model/PingTargetDetails} ping_target_details + */ - // encryption operation is always used for these modes - var mode = this.mode.name; - var encryptOp = (['CFB', 'OFB', 'CTR', 'GCM'].indexOf(mode) !== -1); +TargetTypeDetailsInput.prototype['ping_target_details'] = undefined; +/** + * @member {module:model/RabbitMQTargetDetails} rabbit_mq_target_details + */ - // do key expansion - this._w = _expandKey(key, options.decrypt && !encryptOp); - this._init = true; -}; +TargetTypeDetailsInput.prototype['rabbit_mq_target_details'] = undefined; +/** + * @member {module:model/SalesforceTargetDetails} salesforce_target_details + */ +TargetTypeDetailsInput.prototype['salesforce_target_details'] = undefined; /** - * Expands a key. Typically only used for testing. - * - * @param key the symmetric key to expand, as an array of 32-bit words. - * @param decrypt true to expand for decryption, false for encryption. - * - * @return the expanded key. + * @member {module:model/SSHTargetDetails} ssh_target_details */ -forge.aes._expandKey = function(key, decrypt) { - if(!init) { - initialize(); - } - return _expandKey(key, decrypt); -}; +TargetTypeDetailsInput.prototype['ssh_target_details'] = undefined; /** - * Updates a single block. Typically only used for testing. - * - * @param w the expanded key to use. - * @param input an array of block-size 32-bit words. - * @param output an array of block-size 32-bit words. - * @param decrypt true to decrypt, false to encrypt. + * @member {module:model/VenafiTargetDetails} venafi_target_details */ -forge.aes._updateBlock = _updateBlock; -/** Register AES algorithms **/ +TargetTypeDetailsInput.prototype['venafi_target_details'] = undefined; +/** + * @member {module:model/WebTargetDetails} web_target_details + */ -registerAlgorithm('AES-ECB', forge.cipher.modes.ecb); -registerAlgorithm('AES-CBC', forge.cipher.modes.cbc); -registerAlgorithm('AES-CFB', forge.cipher.modes.cfb); -registerAlgorithm('AES-OFB', forge.cipher.modes.ofb); -registerAlgorithm('AES-CTR', forge.cipher.modes.ctr); -registerAlgorithm('AES-GCM', forge.cipher.modes.gcm); +TargetTypeDetailsInput.prototype['web_target_details'] = undefined; +/** + * @member {module:model/WindowsTargetDetails} windows_target_details + */ -function registerAlgorithm(name, mode) { - var factory = function() { - return new forge.aes.Algorithm(name, mode); - }; - forge.cipher.registerAlgorithm(name, factory); -} - -/** AES implementation **/ - -var init = false; // not yet initialized -var Nb = 4; // number of words comprising the state (AES = 4) -var sbox; // non-linear substitution table used in key expansion -var isbox; // inversion of sbox -var rcon; // round constant word array -var mix; // mix-columns table -var imix; // inverse mix-columns table - -/** - * Performs initialization, ie: precomputes tables to optimize for speed. - * - * One way to understand how AES works is to imagine that 'addition' and - * 'multiplication' are interfaces that require certain mathematical - * properties to hold true (ie: they are associative) but they might have - * different implementations and produce different kinds of results ... - * provided that their mathematical properties remain true. AES defines - * its own methods of addition and multiplication but keeps some important - * properties the same, ie: associativity and distributivity. The - * explanation below tries to shed some light on how AES defines addition - * and multiplication of bytes and 32-bit words in order to perform its - * encryption and decryption algorithms. - * - * The basics: - * - * The AES algorithm views bytes as binary representations of polynomials - * that have either 1 or 0 as the coefficients. It defines the addition - * or subtraction of two bytes as the XOR operation. It also defines the - * multiplication of two bytes as a finite field referred to as GF(2^8) - * (Note: 'GF' means "Galois Field" which is a field that contains a finite - * number of elements so GF(2^8) has 256 elements). - * - * This means that any two bytes can be represented as binary polynomials; - * when they multiplied together and modularly reduced by an irreducible - * polynomial of the 8th degree, the results are the field GF(2^8). The - * specific irreducible polynomial that AES uses in hexadecimal is 0x11b. - * This multiplication is associative with 0x01 as the identity: - * - * (b * 0x01 = GF(b, 0x01) = b). - * - * The operation GF(b, 0x02) can be performed at the byte level by left - * shifting b once and then XOR'ing it (to perform the modular reduction) - * with 0x11b if b is >= 128. Repeated application of the multiplication - * of 0x02 can be used to implement the multiplication of any two bytes. - * - * For instance, multiplying 0x57 and 0x13, denoted as GF(0x57, 0x13), can - * be performed by factoring 0x13 into 0x01, 0x02, and 0x10. Then these - * factors can each be multiplied by 0x57 and then added together. To do - * the multiplication, values for 0x57 multiplied by each of these 3 factors - * can be precomputed and stored in a table. To add them, the values from - * the table are XOR'd together. - * - * AES also defines addition and multiplication of words, that is 4-byte - * numbers represented as polynomials of 3 degrees where the coefficients - * are the values of the bytes. - * - * The word [a0, a1, a2, a3] is a polynomial a3x^3 + a2x^2 + a1x + a0. - * - * Addition is performed by XOR'ing like powers of x. Multiplication - * is performed in two steps, the first is an algebriac expansion as - * you would do normally (where addition is XOR). But the result is - * a polynomial larger than 3 degrees and thus it cannot fit in a word. So - * next the result is modularly reduced by an AES-specific polynomial of - * degree 4 which will always produce a polynomial of less than 4 degrees - * such that it will fit in a word. In AES, this polynomial is x^4 + 1. - * - * The modular product of two polynomials 'a' and 'b' is thus: - * - * d(x) = d3x^3 + d2x^2 + d1x + d0 - * with - * d0 = GF(a0, b0) ^ GF(a3, b1) ^ GF(a2, b2) ^ GF(a1, b3) - * d1 = GF(a1, b0) ^ GF(a0, b1) ^ GF(a3, b2) ^ GF(a2, b3) - * d2 = GF(a2, b0) ^ GF(a1, b1) ^ GF(a0, b2) ^ GF(a3, b3) - * d3 = GF(a3, b0) ^ GF(a2, b1) ^ GF(a1, b2) ^ GF(a0, b3) - * - * As a matrix: - * - * [d0] = [a0 a3 a2 a1][b0] - * [d1] [a1 a0 a3 a2][b1] - * [d2] [a2 a1 a0 a3][b2] - * [d3] [a3 a2 a1 a0][b3] - * - * Special polynomials defined by AES (0x02 == {02}): - * a(x) = {03}x^3 + {01}x^2 + {01}x + {02} - * a^-1(x) = {0b}x^3 + {0d}x^2 + {09}x + {0e}. - * - * These polynomials are used in the MixColumns() and InverseMixColumns() - * operations, respectively, to cause each element in the state to affect - * the output (referred to as diffusing). - * - * RotWord() uses: a0 = a1 = a2 = {00} and a3 = {01}, which is the - * polynomial x3. - * - * The ShiftRows() method modifies the last 3 rows in the state (where - * the state is 4 words with 4 bytes per word) by shifting bytes cyclically. - * The 1st byte in the second row is moved to the end of the row. The 1st - * and 2nd bytes in the third row are moved to the end of the row. The 1st, - * 2nd, and 3rd bytes are moved in the fourth row. - * - * More details on how AES arithmetic works: - * - * In the polynomial representation of binary numbers, XOR performs addition - * and subtraction and multiplication in GF(2^8) denoted as GF(a, b) - * corresponds with the multiplication of polynomials modulo an irreducible - * polynomial of degree 8. In other words, for AES, GF(a, b) will multiply - * polynomial 'a' with polynomial 'b' and then do a modular reduction by - * an AES-specific irreducible polynomial of degree 8. - * - * A polynomial is irreducible if its only divisors are one and itself. For - * the AES algorithm, this irreducible polynomial is: - * - * m(x) = x^8 + x^4 + x^3 + x + 1, - * - * or {01}{1b} in hexadecimal notation, where each coefficient is a bit: - * 100011011 = 283 = 0x11b. - * - * For example, GF(0x57, 0x83) = 0xc1 because - * - * 0x57 = 87 = 01010111 = x^6 + x^4 + x^2 + x + 1 - * 0x85 = 131 = 10000101 = x^7 + x + 1 - * - * (x^6 + x^4 + x^2 + x + 1) * (x^7 + x + 1) - * = x^13 + x^11 + x^9 + x^8 + x^7 + - * x^7 + x^5 + x^3 + x^2 + x + - * x^6 + x^4 + x^2 + x + 1 - * = x^13 + x^11 + x^9 + x^8 + x^6 + x^5 + x^4 + x^3 + 1 = y - * y modulo (x^8 + x^4 + x^3 + x + 1) - * = x^7 + x^6 + 1. - * - * The modular reduction by m(x) guarantees the result will be a binary - * polynomial of less than degree 8, so that it can fit in a byte. - * - * The operation to multiply a binary polynomial b with x (the polynomial - * x in binary representation is 00000010) is: - * - * b_7x^8 + b_6x^7 + b_5x^6 + b_4x^5 + b_3x^4 + b_2x^3 + b_1x^2 + b_0x^1 - * - * To get GF(b, x) we must reduce that by m(x). If b_7 is 0 (that is the - * most significant bit is 0 in b) then the result is already reduced. If - * it is 1, then we can reduce it by subtracting m(x) via an XOR. - * - * It follows that multiplication by x (00000010 or 0x02) can be implemented - * by performing a left shift followed by a conditional bitwise XOR with - * 0x1b. This operation on bytes is denoted by xtime(). Multiplication by - * higher powers of x can be implemented by repeated application of xtime(). - * - * By adding intermediate results, multiplication by any constant can be - * implemented. For instance: - * - * GF(0x57, 0x13) = 0xfe because: - * - * xtime(b) = (b & 128) ? (b << 1 ^ 0x11b) : (b << 1) - * - * Note: We XOR with 0x11b instead of 0x1b because in javascript our - * datatype for b can be larger than 1 byte, so a left shift will not - * automatically eliminate bits that overflow a byte ... by XOR'ing the - * overflow bit with 1 (the extra one from 0x11b) we zero it out. - * - * GF(0x57, 0x02) = xtime(0x57) = 0xae - * GF(0x57, 0x04) = xtime(0xae) = 0x47 - * GF(0x57, 0x08) = xtime(0x47) = 0x8e - * GF(0x57, 0x10) = xtime(0x8e) = 0x07 - * - * GF(0x57, 0x13) = GF(0x57, (0x01 ^ 0x02 ^ 0x10)) - * - * And by the distributive property (since XOR is addition and GF() is - * multiplication): - * - * = GF(0x57, 0x01) ^ GF(0x57, 0x02) ^ GF(0x57, 0x10) - * = 0x57 ^ 0xae ^ 0x07 - * = 0xfe. +TargetTypeDetailsInput.prototype['windows_target_details'] = undefined; +/** + * @member {module:model/ZeroSSLTargetDetails} zerossl_target_details */ -function initialize() { - init = true; - /* Populate the Rcon table. These are the values given by - [x^(i-1),{00},{00},{00}] where x^(i-1) are powers of x (and x = 0x02) - in the field of GF(2^8), where i starts at 1. +TargetTypeDetailsInput.prototype['zerossl_target_details'] = undefined; +var _default = TargetTypeDetailsInput; +exports["default"] = _default; + +/***/ }), - rcon[0] = [0x00, 0x00, 0x00, 0x00] - rcon[1] = [0x01, 0x00, 0x00, 0x00] 2^(1-1) = 2^0 = 1 - rcon[2] = [0x02, 0x00, 0x00, 0x00] 2^(2-1) = 2^1 = 2 - ... - rcon[9] = [0x1B, 0x00, 0x00, 0x00] 2^(9-1) = 2^8 = 0x1B - rcon[10] = [0x36, 0x00, 0x00, 0x00] 2^(10-1) = 2^9 = 0x36 +/***/ 36764: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - We only store the first byte because it is the only one used. - */ - rcon = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1B, 0x36]; - - // compute xtime table which maps i onto GF(i, 0x02) - var xtime = new Array(256); - for(var i = 0; i < 128; ++i) { - xtime[i] = i << 1; - xtime[i + 128] = (i + 128) << 1 ^ 0x11B; - } - - // compute all other tables - sbox = new Array(256); - isbox = new Array(256); - mix = new Array(4); - imix = new Array(4); - for(var i = 0; i < 4; ++i) { - mix[i] = new Array(256); - imix[i] = new Array(256); - } - var e = 0, ei = 0, e2, e4, e8, sx, sx2, me, ime; - for(var i = 0; i < 256; ++i) { - /* We need to generate the SubBytes() sbox and isbox tables so that - we can perform byte substitutions. This requires us to traverse - all of the elements in GF, find their multiplicative inverses, - and apply to each the following affine transformation: - - bi' = bi ^ b(i + 4) mod 8 ^ b(i + 5) mod 8 ^ b(i + 6) mod 8 ^ - b(i + 7) mod 8 ^ ci - for 0 <= i < 8, where bi is the ith bit of the byte, and ci is the - ith bit of a byte c with the value {63} or {01100011}. - - It is possible to traverse every possible value in a Galois field - using what is referred to as a 'generator'. There are many - generators (128 out of 256): 3,5,6,9,11,82 to name a few. To fully - traverse GF we iterate 255 times, multiplying by our generator - each time. - - On each iteration we can determine the multiplicative inverse for - the current element. - - Suppose there is an element in GF 'e'. For a given generator 'g', - e = g^x. The multiplicative inverse of e is g^(255 - x). It turns - out that if use the inverse of a generator as another generator - it will produce all of the corresponding multiplicative inverses - at the same time. For this reason, we choose 5 as our inverse - generator because it only requires 2 multiplies and 1 add and its - inverse, 82, requires relatively few operations as well. - - In order to apply the affine transformation, the multiplicative - inverse 'ei' of 'e' can be repeatedly XOR'd (4 times) with a - bit-cycling of 'ei'. To do this 'ei' is first stored in 's' and - 'x'. Then 's' is left shifted and the high bit of 's' is made the - low bit. The resulting value is stored in 's'. Then 'x' is XOR'd - with 's' and stored in 'x'. On each subsequent iteration the same - operation is performed. When 4 iterations are complete, 'x' is - XOR'd with 'c' (0x63) and the transformed value is stored in 'x'. - For example: - - s = 01000001 - x = 01000001 - - iteration 1: s = 10000010, x ^= s - iteration 2: s = 00000101, x ^= s - iteration 3: s = 00001010, x ^= s - iteration 4: s = 00010100, x ^= s - x ^= 0x63 - - This can be done with a loop where s = (s << 1) | (s >> 7). However, - it can also be done by using a single 16-bit (in this case 32-bit) - number 'sx'. Since XOR is an associative operation, we can set 'sx' - to 'ei' and then XOR it with 'sx' left-shifted 1,2,3, and 4 times. - The most significant bits will flow into the high 8 bit positions - and be correctly XOR'd with one another. All that remains will be - to cycle the high 8 bits by XOR'ing them all with the lower 8 bits - afterwards. - - At the same time we're populating sbox and isbox we can precompute - the multiplication we'll need to do to do MixColumns() later. - */ +"use strict"; - // apply affine transformation - sx = ei ^ (ei << 1) ^ (ei << 2) ^ (ei << 3) ^ (ei << 4); - sx = (sx >> 8) ^ (sx & 255) ^ 0x63; - - // update tables - sbox[e] = sx; - isbox[sx] = e; - - /* Mixing columns is done using matrix multiplication. The columns - that are to be mixed are each a single word in the current state. - The state has Nb columns (4 columns). Therefore each column is a - 4 byte word. So to mix the columns in a single column 'c' where - its rows are r0, r1, r2, and r3, we use the following matrix - multiplication: - - [2 3 1 1]*[r0,c]=[r'0,c] - [1 2 3 1] [r1,c] [r'1,c] - [1 1 2 3] [r2,c] [r'2,c] - [3 1 1 2] [r3,c] [r'3,c] - - r0, r1, r2, and r3 are each 1 byte of one of the words in the - state (a column). To do matrix multiplication for each mixed - column c' we multiply the corresponding row from the left matrix - with the corresponding column from the right matrix. In total, we - get 4 equations: - - r0,c' = 2*r0,c + 3*r1,c + 1*r2,c + 1*r3,c - r1,c' = 1*r0,c + 2*r1,c + 3*r2,c + 1*r3,c - r2,c' = 1*r0,c + 1*r1,c + 2*r2,c + 3*r3,c - r3,c' = 3*r0,c + 1*r1,c + 1*r2,c + 2*r3,c - - As usual, the multiplication is as previously defined and the - addition is XOR. In order to optimize mixing columns we can store - the multiplication results in tables. If you think of the whole - column as a word (it might help to visualize by mentally rotating - the equations above by counterclockwise 90 degrees) then you can - see that it would be useful to map the multiplications performed on - each byte (r0, r1, r2, r3) onto a word as well. For instance, we - could map 2*r0,1*r0,1*r0,3*r0 onto a word by storing 2*r0 in the - highest 8 bits and 3*r0 in the lowest 8 bits (with the other two - respectively in the middle). This means that a table can be - constructed that uses r0 as an index to the word. We can do the - same with r1, r2, and r3, creating a total of 4 tables. - - To construct a full c', we can just look up each byte of c in - their respective tables and XOR the results together. - - Also, to build each table we only have to calculate the word - for 2,1,1,3 for every byte ... which we can do on each iteration - of this loop since we will iterate over every byte. After we have - calculated 2,1,1,3 we can get the results for the other tables - by cycling the byte at the end to the beginning. For instance - we can take the result of table 2,1,1,3 and produce table 3,2,1,1 - by moving the right most byte to the left most position just like - how you can imagine the 3 moved out of 2,1,1,3 and to the front - to produce 3,2,1,1. - - There is another optimization in that the same multiples of - the current element we need in order to advance our generator - to the next iteration can be reused in performing the 2,1,1,3 - calculation. We also calculate the inverse mix column tables, - with e,9,d,b being the inverse of 2,1,1,3. - - When we're done, and we need to actually mix columns, the first - byte of each state word should be put through mix[0] (2,1,1,3), - the second through mix[1] (3,2,1,1) and so forth. Then they should - be XOR'd together to produce the fully mixed column. - */ - // calculate mix and imix table values - sx2 = xtime[sx]; - e2 = xtime[e]; - e4 = xtime[e2]; - e8 = xtime[e4]; - me = - (sx2 << 24) ^ // 2 - (sx << 16) ^ // 1 - (sx << 8) ^ // 1 - (sx ^ sx2); // 3 - ime = - (e2 ^ e4 ^ e8) << 24 ^ // E (14) - (e ^ e8) << 16 ^ // 9 - (e ^ e4 ^ e8) << 8 ^ // D (13) - (e ^ e2 ^ e8); // B (11) - // produce each of the mix tables by rotating the 2,1,1,3 value - for(var n = 0; n < 4; ++n) { - mix[n][e] = me; - imix[n][sx] = ime; - // cycle the right most byte to the left most position - // ie: 2,1,1,3 becomes 3,2,1,1 - me = me << 24 | me >>> 8; - ime = ime << 24 | ime >>> 8; - } - - // get next element and inverse - if(e === 0) { - // 1 is the inverse of 1 - e = ei = 1; - } else { - // e = 2e + 2*2*2*(10e)) = multiply e by 82 (chosen generator) - // ei = ei + 2*2*ei = multiply ei by 5 (inverse generator) - e = e2 ^ xtime[xtime[xtime[e2 ^ e8]]]; - ei ^= xtime[xtime[ei]]; - } - } -} - -/** - * Generates a key schedule using the AES key expansion algorithm. - * - * The AES algorithm takes the Cipher Key, K, and performs a Key Expansion - * routine to generate a key schedule. The Key Expansion generates a total - * of Nb*(Nr + 1) words: the algorithm requires an initial set of Nb words, - * and each of the Nr rounds requires Nb words of key data. The resulting - * key schedule consists of a linear array of 4-byte words, denoted [wi ], - * with i in the range 0 <= i < Nb(Nr + 1). - * - * KeyExpansion(byte key[4*Nk], word w[Nb*(Nr+1)], Nk) - * AES-128 (Nb=4, Nk=4, Nr=10) - * AES-192 (Nb=4, Nk=6, Nr=12) - * AES-256 (Nb=4, Nk=8, Nr=14) - * Note: Nr=Nk+6. - * - * Nb is the number of columns (32-bit words) comprising the State (or - * number of bytes in a block). For AES, Nb=4. - * - * @param key the key to schedule (as an array of 32-bit words). - * @param decrypt true to modify the key schedule to decrypt, false not to. - * - * @return the generated key schedule. - */ -function _expandKey(key, decrypt) { - // copy the key's words to initialize the key schedule - var w = key.slice(0); - - /* RotWord() will rotate a word, moving the first byte to the last - byte's position (shifting the other bytes left). - - We will be getting the value of Rcon at i / Nk. 'i' will iterate - from Nk to (Nb * Nr+1). Nk = 4 (4 byte key), Nb = 4 (4 words in - a block), Nr = Nk + 6 (10). Therefore 'i' will iterate from - 4 to 44 (exclusive). Each time we iterate 4 times, i / Nk will - increase by 1. We use a counter iNk to keep track of this. - */ - - // go through the rounds expanding the key - var temp, iNk = 1; - var Nk = w.length; - var Nr1 = Nk + 6 + 1; - var end = Nb * Nr1; - for(var i = Nk; i < end; ++i) { - temp = w[i - 1]; - if(i % Nk === 0) { - // temp = SubWord(RotWord(temp)) ^ Rcon[i / Nk] - temp = - sbox[temp >>> 16 & 255] << 24 ^ - sbox[temp >>> 8 & 255] << 16 ^ - sbox[temp & 255] << 8 ^ - sbox[temp >>> 24] ^ (rcon[iNk] << 24); - iNk++; - } else if(Nk > 6 && (i % Nk === 4)) { - // temp = SubWord(temp) - temp = - sbox[temp >>> 24] << 24 ^ - sbox[temp >>> 16 & 255] << 16 ^ - sbox[temp >>> 8 & 255] << 8 ^ - sbox[temp & 255]; - } - w[i] = w[i - Nk] ^ temp; - } - - /* When we are updating a cipher block we always use the code path for - encryption whether we are decrypting or not (to shorten code and - simplify the generation of look up tables). However, because there - are differences in the decryption algorithm, other than just swapping - in different look up tables, we must transform our key schedule to - account for these changes: - - 1. The decryption algorithm gets its key rounds in reverse order. - 2. The decryption algorithm adds the round key before mixing columns - instead of afterwards. - - We don't need to modify our key schedule to handle the first case, - we can just traverse the key schedule in reverse order when decrypting. - - The second case requires a little work. - - The tables we built for performing rounds will take an input and then - perform SubBytes() and MixColumns() or, for the decrypt version, - InvSubBytes() and InvMixColumns(). But the decrypt algorithm requires - us to AddRoundKey() before InvMixColumns(). This means we'll need to - apply some transformations to the round key to inverse-mix its columns - so they'll be correct for moving AddRoundKey() to after the state has - had its columns inverse-mixed. - - To inverse-mix the columns of the state when we're decrypting we use a - lookup table that will apply InvSubBytes() and InvMixColumns() at the - same time. However, the round key's bytes are not inverse-substituted - in the decryption algorithm. To get around this problem, we can first - substitute the bytes in the round key so that when we apply the - transformation via the InvSubBytes()+InvMixColumns() table, it will - undo our substitution leaving us with the original value that we - want -- and then inverse-mix that value. - - This change will correctly alter our key schedule so that we can XOR - each round key with our already transformed decryption state. This - allows us to use the same code path as the encryption algorithm. - - We make one more change to the decryption key. Since the decryption - algorithm runs in reverse from the encryption algorithm, we reverse - the order of the round keys to avoid having to iterate over the key - schedule backwards when running the encryption algorithm later in - decryption mode. In addition to reversing the order of the round keys, - we also swap each round key's 2nd and 4th rows. See the comments - section where rounds are performed for more details about why this is - done. These changes are done inline with the other substitution - described above. - */ - if(decrypt) { - var tmp; - var m0 = imix[0]; - var m1 = imix[1]; - var m2 = imix[2]; - var m3 = imix[3]; - var wnew = w.slice(0); - end = w.length; - for(var i = 0, wi = end - Nb; i < end; i += Nb, wi -= Nb) { - // do not sub the first or last round key (round keys are Nb - // words) as no column mixing is performed before they are added, - // but do change the key order - if(i === 0 || i === (end - Nb)) { - wnew[i] = w[wi]; - wnew[i + 1] = w[wi + 3]; - wnew[i + 2] = w[wi + 2]; - wnew[i + 3] = w[wi + 1]; - } else { - // substitute each round key byte because the inverse-mix - // table will inverse-substitute it (effectively cancel the - // substitution because round key bytes aren't sub'd in - // decryption mode) and swap indexes 3 and 1 - for(var n = 0; n < Nb; ++n) { - tmp = w[wi + n]; - wnew[i + (3&-n)] = - m0[sbox[tmp >>> 24]] ^ - m1[sbox[tmp >>> 16 & 255]] ^ - m2[sbox[tmp >>> 8 & 255]] ^ - m3[sbox[tmp & 255]]; - } - } - } - w = wnew; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - return w; -} +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Updates a single block (16 bytes) using AES. The update will either - * encrypt or decrypt the block. - * - * @param w the key schedule. - * @param input the input block (an array of 32-bit words). - * @param output the updated output block. - * @param decrypt true to decrypt the block, false to encrypt it. + * The TmpUserData model module. + * @module model/TmpUserData + * @version 3.6.3 */ -function _updateBlock(w, input, output, decrypt) { - /* - Cipher(byte in[4*Nb], byte out[4*Nb], word w[Nb*(Nr+1)]) - begin - byte state[4,Nb] - state = in - AddRoundKey(state, w[0, Nb-1]) - for round = 1 step 1 to Nr-1 - SubBytes(state) - ShiftRows(state) - MixColumns(state) - AddRoundKey(state, w[round*Nb, (round+1)*Nb-1]) - end for - SubBytes(state) - ShiftRows(state) - AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) - out = state - end - - InvCipher(byte in[4*Nb], byte out[4*Nb], word w[Nb*(Nr+1)]) - begin - byte state[4,Nb] - state = in - AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) - for round = Nr-1 step -1 downto 1 - InvShiftRows(state) - InvSubBytes(state) - AddRoundKey(state, w[round*Nb, (round+1)*Nb-1]) - InvMixColumns(state) - end for - InvShiftRows(state) - InvSubBytes(state) - AddRoundKey(state, w[0, Nb-1]) - out = state - end - */ +var TmpUserData = /*#__PURE__*/function () { + /** + * Constructs a new TmpUserData. + * @alias module:model/TmpUserData + */ + function TmpUserData() { + _classCallCheck(this, TmpUserData); - // Encrypt: AddRoundKey(state, w[0, Nb-1]) - // Decrypt: AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) - var Nr = w.length / 4 - 1; - var m0, m1, m2, m3, sub; - if(decrypt) { - m0 = imix[0]; - m1 = imix[1]; - m2 = imix[2]; - m3 = imix[3]; - sub = isbox; - } else { - m0 = mix[0]; - m1 = mix[1]; - m2 = mix[2]; - m3 = mix[3]; - sub = sbox; - } - var a, b, c, d, a2, b2, c2; - a = input[0] ^ w[0]; - b = input[decrypt ? 3 : 1] ^ w[1]; - c = input[2] ^ w[2]; - d = input[decrypt ? 1 : 3] ^ w[3]; - var i = 3; - - /* In order to share code we follow the encryption algorithm when both - encrypting and decrypting. To account for the changes required in the - decryption algorithm, we use different lookup tables when decrypting - and use a modified key schedule to account for the difference in the - order of transformations applied when performing rounds. We also get - key rounds in reverse order (relative to encryption). */ - for(var round = 1; round < Nr; ++round) { - /* As described above, we'll be using table lookups to perform the - column mixing. Each column is stored as a word in the state (the - array 'input' has one column as a word at each index). In order to - mix a column, we perform these transformations on each row in c, - which is 1 byte in each word. The new column for c0 is c'0: - - m0 m1 m2 m3 - r0,c'0 = 2*r0,c0 + 3*r1,c0 + 1*r2,c0 + 1*r3,c0 - r1,c'0 = 1*r0,c0 + 2*r1,c0 + 3*r2,c0 + 1*r3,c0 - r2,c'0 = 1*r0,c0 + 1*r1,c0 + 2*r2,c0 + 3*r3,c0 - r3,c'0 = 3*r0,c0 + 1*r1,c0 + 1*r2,c0 + 2*r3,c0 - - So using mix tables where c0 is a word with r0 being its upper - 8 bits and r3 being its lower 8 bits: - - m0[c0 >> 24] will yield this word: [2*r0,1*r0,1*r0,3*r0] - ... - m3[c0 & 255] will yield this word: [1*r3,1*r3,3*r3,2*r3] - - Therefore to mix the columns in each word in the state we - do the following (& 255 omitted for brevity): - c'0,r0 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] - c'0,r1 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] - c'0,r2 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] - c'0,r3 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] - - However, before mixing, the algorithm requires us to perform - ShiftRows(). The ShiftRows() transformation cyclically shifts the - last 3 rows of the state over different offsets. The first row - (r = 0) is not shifted. - - s'_r,c = s_r,(c + shift(r, Nb) mod Nb - for 0 < r < 4 and 0 <= c < Nb and - shift(1, 4) = 1 - shift(2, 4) = 2 - shift(3, 4) = 3. - - This causes the first byte in r = 1 to be moved to the end of - the row, the first 2 bytes in r = 2 to be moved to the end of - the row, the first 3 bytes in r = 3 to be moved to the end of - the row: - - r1: [c0 c1 c2 c3] => [c1 c2 c3 c0] - r2: [c0 c1 c2 c3] [c2 c3 c0 c1] - r3: [c0 c1 c2 c3] [c3 c0 c1 c2] - - We can make these substitutions inline with our column mixing to - generate an updated set of equations to produce each word in the - state (note the columns have changed positions): - - c0 c1 c2 c3 => c0 c1 c2 c3 - c0 c1 c2 c3 c1 c2 c3 c0 (cycled 1 byte) - c0 c1 c2 c3 c2 c3 c0 c1 (cycled 2 bytes) - c0 c1 c2 c3 c3 c0 c1 c2 (cycled 3 bytes) - - Therefore: - - c'0 = 2*r0,c0 + 3*r1,c1 + 1*r2,c2 + 1*r3,c3 - c'0 = 1*r0,c0 + 2*r1,c1 + 3*r2,c2 + 1*r3,c3 - c'0 = 1*r0,c0 + 1*r1,c1 + 2*r2,c2 + 3*r3,c3 - c'0 = 3*r0,c0 + 1*r1,c1 + 1*r2,c2 + 2*r3,c3 - - c'1 = 2*r0,c1 + 3*r1,c2 + 1*r2,c3 + 1*r3,c0 - c'1 = 1*r0,c1 + 2*r1,c2 + 3*r2,c3 + 1*r3,c0 - c'1 = 1*r0,c1 + 1*r1,c2 + 2*r2,c3 + 3*r3,c0 - c'1 = 3*r0,c1 + 1*r1,c2 + 1*r2,c3 + 2*r3,c0 - - ... and so forth for c'2 and c'3. The important distinction is - that the columns are cycling, with c0 being used with the m0 - map when calculating c0, but c1 being used with the m0 map when - calculating c1 ... and so forth. - - When performing the inverse we transform the mirror image and - skip the bottom row, instead of the top one, and move upwards: - - c3 c2 c1 c0 => c0 c3 c2 c1 (cycled 3 bytes) *same as encryption - c3 c2 c1 c0 c1 c0 c3 c2 (cycled 2 bytes) - c3 c2 c1 c0 c2 c1 c0 c3 (cycled 1 byte) *same as encryption - c3 c2 c1 c0 c3 c2 c1 c0 - - If you compare the resulting matrices for ShiftRows()+MixColumns() - and for InvShiftRows()+InvMixColumns() the 2nd and 4th columns are - different (in encrypt mode vs. decrypt mode). So in order to use - the same code to handle both encryption and decryption, we will - need to do some mapping. - - If in encryption mode we let a=c0, b=c1, c=c2, d=c3, and r be - a row number in the state, then the resulting matrix in encryption - mode for applying the above transformations would be: - - r1: a b c d - r2: b c d a - r3: c d a b - r4: d a b c - - If we did the same in decryption mode we would get: - - r1: a d c b - r2: b a d c - r3: c b a d - r4: d c b a - - If instead we swap d and b (set b=c3 and d=c1), then we get: - - r1: a b c d - r2: d a b c - r3: c d a b - r4: b c d a - - Now the 1st and 3rd rows are the same as the encryption matrix. All - we need to do then to make the mapping exactly the same is to swap - the 2nd and 4th rows when in decryption mode. To do this without - having to do it on each iteration, we swapped the 2nd and 4th rows - in the decryption key schedule. We also have to do the swap above - when we first pull in the input and when we set the final output. */ - a2 = - m0[a >>> 24] ^ - m1[b >>> 16 & 255] ^ - m2[c >>> 8 & 255] ^ - m3[d & 255] ^ w[++i]; - b2 = - m0[b >>> 24] ^ - m1[c >>> 16 & 255] ^ - m2[d >>> 8 & 255] ^ - m3[a & 255] ^ w[++i]; - c2 = - m0[c >>> 24] ^ - m1[d >>> 16 & 255] ^ - m2[a >>> 8 & 255] ^ - m3[b & 255] ^ w[++i]; - d = - m0[d >>> 24] ^ - m1[a >>> 16 & 255] ^ - m2[b >>> 8 & 255] ^ - m3[c & 255] ^ w[++i]; - a = a2; - b = b2; - c = c2; + TmpUserData.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - /* - Encrypt: - SubBytes(state) - ShiftRows(state) - AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) - - Decrypt: - InvShiftRows(state) - InvSubBytes(state) - AddRoundKey(state, w[0, Nb-1]) - */ - // Note: rows are shifted inline - output[0] = - (sub[a >>> 24] << 24) ^ - (sub[b >>> 16 & 255] << 16) ^ - (sub[c >>> 8 & 255] << 8) ^ - (sub[d & 255]) ^ w[++i]; - output[decrypt ? 3 : 1] = - (sub[b >>> 24] << 24) ^ - (sub[c >>> 16 & 255] << 16) ^ - (sub[d >>> 8 & 255] << 8) ^ - (sub[a & 255]) ^ w[++i]; - output[2] = - (sub[c >>> 24] << 24) ^ - (sub[d >>> 16 & 255] << 16) ^ - (sub[a >>> 8 & 255] << 8) ^ - (sub[b & 255]) ^ w[++i]; - output[decrypt ? 1 : 3] = - (sub[d >>> 24] << 24) ^ - (sub[a >>> 16 & 255] << 16) ^ - (sub[b >>> 8 & 255] << 8) ^ - (sub[c & 255]) ^ w[++i]; -} - -/** - * Deprecated. Instead, use: - * - * forge.cipher.createCipher('AES-', key); - * forge.cipher.createDecipher('AES-', key); - * - * Creates a deprecated AES cipher object. This object's mode will default to - * CBC (cipher-block-chaining). - * - * The key and iv may be given as a string of bytes, an array of bytes, a - * byte buffer, or an array of 32-bit words. - * - * @param options the options to use. - * key the symmetric key to use. - * output the buffer to write to. - * decrypt true for decryption, false for encryption. - * mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. - */ -function _createCipher(options) { - options = options || {}; - var mode = (options.mode || 'CBC').toUpperCase(); - var algorithm = 'AES-' + mode; - var cipher; - if(options.decrypt) { - cipher = forge.cipher.createDecipher(algorithm, options.key); - } else { - cipher = forge.cipher.createCipher(algorithm, options.key); - } + _createClass(TmpUserData, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a TmpUserData from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TmpUserData} obj Optional instance to populate. + * @return {module:model/TmpUserData} The populated TmpUserData instance. + */ - // backwards compatible start API - var start = cipher.start; - cipher.start = function(iv, options) { - // backwards compatibility: support second arg as output buffer - var output = null; - if(options instanceof forge.util.ByteBuffer) { - output = options; - options = {}; - } - options = options || {}; - options.output = output; - options.iv = iv; - start.call(cipher, options); - }; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TmpUserData(); - return cipher; -} + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + if (data.hasOwnProperty('creation_date')) { + obj['creation_date'] = _ApiClient["default"].convertToType(data['creation_date'], 'Date'); + } -/***/ }), + if (data.hasOwnProperty('custom_ttl')) { + obj['custom_ttl'] = _ApiClient["default"].convertToType(data['custom_ttl'], 'Number'); + } -/***/ 56087: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('dynamic_secret_type')) { + obj['dynamic_secret_type'] = _ApiClient["default"].convertToType(data['dynamic_secret_type'], 'String'); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('sub_claims')) { + obj['sub_claims'] = _ApiClient["default"].convertToType(data['sub_claims'], { + 'String': ['String'] + }); + } + } + + return obj; + } + }]); + return TmpUserData; +}(); /** - * A Javascript implementation of AES Cipher Suites for TLS. - * - * @author Dave Longley - * - * Copyright (c) 2009-2015 Digital Bazaar, Inc. - * + * @member {String} access_id */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(39445); -__nccwpck_require__(84275); -var tls = module.exports = forge.tls; +TmpUserData.prototype['access_id'] = undefined; /** - * Supported cipher suites. + * @member {Date} creation_date */ -tls.CipherSuites['TLS_RSA_WITH_AES_128_CBC_SHA'] = { - id: [0x00, 0x2f], - name: 'TLS_RSA_WITH_AES_128_CBC_SHA', - initSecurityParameters: function(sp) { - sp.bulk_cipher_algorithm = tls.BulkCipherAlgorithm.aes; - sp.cipher_type = tls.CipherType.block; - sp.enc_key_length = 16; - sp.block_length = 16; - sp.fixed_iv_length = 16; - sp.record_iv_length = 16; - sp.mac_algorithm = tls.MACAlgorithm.hmac_sha1; - sp.mac_length = 20; - sp.mac_key_length = 20; - }, - initConnectionState: initConnectionState -}; -tls.CipherSuites['TLS_RSA_WITH_AES_256_CBC_SHA'] = { - id: [0x00, 0x35], - name: 'TLS_RSA_WITH_AES_256_CBC_SHA', - initSecurityParameters: function(sp) { - sp.bulk_cipher_algorithm = tls.BulkCipherAlgorithm.aes; - sp.cipher_type = tls.CipherType.block; - sp.enc_key_length = 32; - sp.block_length = 16; - sp.fixed_iv_length = 16; - sp.record_iv_length = 16; - sp.mac_algorithm = tls.MACAlgorithm.hmac_sha1; - sp.mac_length = 20; - sp.mac_key_length = 20; - }, - initConnectionState: initConnectionState -}; -function initConnectionState(state, c, sp) { - var client = (c.entity === forge.tls.ConnectionEnd.client); +TmpUserData.prototype['creation_date'] = undefined; +/** + * @member {Number} custom_ttl + */ - // cipher setup - state.read.cipherState = { - init: false, - cipher: forge.cipher.createDecipher('AES-CBC', client ? - sp.keys.server_write_key : sp.keys.client_write_key), - iv: client ? sp.keys.server_write_IV : sp.keys.client_write_IV - }; - state.write.cipherState = { - init: false, - cipher: forge.cipher.createCipher('AES-CBC', client ? - sp.keys.client_write_key : sp.keys.server_write_key), - iv: client ? sp.keys.client_write_IV : sp.keys.server_write_IV - }; - state.read.cipherFunction = decrypt_aes_cbc_sha1; - state.write.cipherFunction = encrypt_aes_cbc_sha1; +TmpUserData.prototype['custom_ttl'] = undefined; +/** + * @member {String} dynamic_secret_type + */ - // MAC setup - state.read.macLength = state.write.macLength = sp.mac_length; - state.read.macFunction = state.write.macFunction = tls.hmac_sha1; -} +TmpUserData.prototype['dynamic_secret_type'] = undefined; +/** + * @member {String} host + */ +TmpUserData.prototype['host'] = undefined; /** - * Encrypts the TLSCompressed record into a TLSCipherText record using AES - * in CBC mode. - * - * @param record the TLSCompressed record to encrypt. - * @param s the ConnectionState to use. - * - * @return true on success, false on failure. + * @member {String} id + */ + +TmpUserData.prototype['id'] = undefined; +/** + * @member {Object.>} sub_claims */ -function encrypt_aes_cbc_sha1(record, s) { - var rval = false; - // append MAC to fragment, update sequence number - var mac = s.macFunction(s.macKey, s.sequenceNumber, record); - record.fragment.putBytes(mac); - s.updateSequenceNumber(); +TmpUserData.prototype['sub_claims'] = undefined; +var _default = TmpUserData; +exports["default"] = _default; - // TLS 1.1+ use an explicit IV every time to protect against CBC attacks - var iv; - if(record.version.minor === tls.Versions.TLS_1_0.minor) { - // use the pre-generated IV when initializing for TLS 1.0, otherwise use - // the residue from the previous encryption - iv = s.cipherState.init ? null : s.cipherState.iv; - } else { - iv = forge.random.getBytesSync(16); - } +/***/ }), + +/***/ 43289: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - s.cipherState.init = true; +"use strict"; - // start cipher - var cipher = s.cipherState.cipher; - cipher.start({iv: iv}); - // TLS 1.1+ write IV into output - if(record.version.minor >= tls.Versions.TLS_1_1.minor) { - cipher.output.putBytes(iv); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // do encryption (default padding is appropriate) - cipher.update(record.fragment); - if(cipher.finish(encrypt_aes_cbc_sha1_padding)) { - // set record fragment to encrypted output - record.fragment = cipher.output; - record.length = record.fragment.length(); - rval = true; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The Tokenize model module. + * @module model/Tokenize + * @version 3.6.3 + */ +var Tokenize = /*#__PURE__*/function () { + /** + * Constructs a new Tokenize. + * tokenize is a command that encrypts text with a tokenizer + * @alias module:model/Tokenize + * @param plaintext {String} Data to be encrypted + * @param tokenizerName {String} The name of the tokenizer to use in the encryption process + */ + function Tokenize(plaintext, tokenizerName) { + _classCallCheck(this, Tokenize); + + Tokenize.initialize(this, plaintext, tokenizerName); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - return rval; -} + _createClass(Tokenize, null, [{ + key: "initialize", + value: function initialize(obj, plaintext, tokenizerName) { + obj['plaintext'] = plaintext; + obj['tokenizer-name'] = tokenizerName; + } + /** + * Constructs a Tokenize from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Tokenize} obj Optional instance to populate. + * @return {module:model/Tokenize} The populated Tokenize instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Tokenize(); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('plaintext')) { + obj['plaintext'] = _ApiClient["default"].convertToType(data['plaintext'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('tokenizer-name')) { + obj['tokenizer-name'] = _ApiClient["default"].convertToType(data['tokenizer-name'], 'String'); + } + + if (data.hasOwnProperty('tweak')) { + obj['tweak'] = _ApiClient["default"].convertToType(data['tweak'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + + return Tokenize; +}(); /** - * Handles padding for aes_cbc_sha1 in encrypt mode. - * - * @param blockSize the block size. - * @param input the input buffer. - * @param decrypt true in decrypt mode, false in encrypt mode. - * - * @return true on success, false on failure. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -function encrypt_aes_cbc_sha1_padding(blockSize, input, decrypt) { - /* The encrypted data length (TLSCiphertext.length) is one more than the sum - of SecurityParameters.block_length, TLSCompressed.length, - SecurityParameters.mac_length, and padding_length. - The padding may be any length up to 255 bytes long, as long as it results in - the TLSCiphertext.length being an integral multiple of the block length. - Lengths longer than necessary might be desirable to frustrate attacks on a - protocol based on analysis of the lengths of exchanged messages. Each uint8 - in the padding data vector must be filled with the padding length value. - The padding length should be such that the total size of the - GenericBlockCipher structure is a multiple of the cipher's block length. - Legal values range from zero to 255, inclusive. This length specifies the - length of the padding field exclusive of the padding_length field itself. +Tokenize.prototype['json'] = false; +/** + * Data to be encrypted + * @member {String} plaintext + */ - This is slightly different from PKCS#7 because the padding value is 1 - less than the actual number of padding bytes if you include the - padding_length uint8 itself as a padding byte. */ - if(!decrypt) { - // get the number of padding bytes required to reach the blockSize and - // subtract 1 for the padding value (to make room for the padding_length - // uint8) - var padding = blockSize - (input.length() % blockSize); - input.fillWithByte(padding - 1, padding); - } - return true; -} +Tokenize.prototype['plaintext'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +Tokenize.prototype['token'] = undefined; +/** + * The name of the tokenizer to use in the encryption process + * @member {String} tokenizer-name + */ +Tokenize.prototype['tokenizer-name'] = undefined; /** - * Handles padding for aes_cbc_sha1 in decrypt mode. - * - * @param blockSize the block size. - * @param output the output buffer. - * @param decrypt true in decrypt mode, false in encrypt mode. - * - * @return true on success, false on failure. + * Base64 encoded tweak for vaultless encryption + * @member {String} tweak */ -function decrypt_aes_cbc_sha1_padding(blockSize, output, decrypt) { - var rval = true; - if(decrypt) { - /* The last byte in the output specifies the number of padding bytes not - including itself. Each of the padding bytes has the same value as that - last byte (known as the padding_length). Here we check all padding - bytes to ensure they have the value of padding_length even if one of - them is bad in order to ward-off timing attacks. */ - var len = output.length(); - var paddingLength = output.last(); - for(var i = len - 1 - paddingLength; i < len - 1; ++i) { - rval = rval && (output.at(i) == paddingLength); - } - if(rval) { - // trim off padding bytes and last padding length byte - output.truncate(paddingLength + 1); - } - } - return rval; -} +Tokenize.prototype['tweak'] = undefined; /** - * Decrypts a TLSCipherText record into a TLSCompressed record using - * AES in CBC mode. - * - * @param record the TLSCipherText record to decrypt. - * @param s the ConnectionState to use. - * - * @return true on success, false on failure. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -function decrypt_aes_cbc_sha1(record, s) { - var rval = false; - var iv; - if(record.version.minor === tls.Versions.TLS_1_0.minor) { - // use pre-generated IV when initializing for TLS 1.0, otherwise use the - // residue from the previous decryption - iv = s.cipherState.init ? null : s.cipherState.iv; - } else { - // TLS 1.1+ use an explicit IV every time to protect against CBC attacks - // that is appended to the record fragment - iv = record.fragment.getBytes(16); - } +Tokenize.prototype['uid-token'] = undefined; +var _default = Tokenize; +exports["default"] = _default; - s.cipherState.init = true; +/***/ }), + +/***/ 88732: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; - // start cipher - var cipher = s.cipherState.cipher; - cipher.start({iv: iv}); - // do decryption - cipher.update(record.fragment); - rval = cipher.finish(decrypt_aes_cbc_sha1_padding); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // even if decryption fails, keep going to minimize timing attacks +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // decrypted data: - // first (len - 20) bytes = application data - // last 20 bytes = MAC - var macLen = s.macLength; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // create a random MAC to check against should the mac length check fail - // Note: do this regardless of the failure to keep timing consistent - var mac = forge.random.getBytesSync(macLen); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // get fragment and mac - var len = cipher.output.length(); - if(len >= macLen) { - record.fragment = cipher.output.getBytes(len - macLen); - mac = cipher.output.getBytes(macLen); - } else { - // bad data, but get bytes anyway to try to keep timing consistent - record.fragment = cipher.output.getBytes(); - } - record.fragment = forge.util.createBuffer(record.fragment); - record.length = record.fragment.length(); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // see if data integrity checks out, update sequence number - var mac2 = s.macFunction(s.macKey, s.sequenceNumber, record); - s.updateSequenceNumber(); - rval = compareMacs(s.macKey, mac, mac2) && rval; - return rval; -} +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Safely compare two MACs. This function will compare two MACs in a way - * that protects against timing attacks. - * - * TODO: Expose elsewhere as a utility API. - * - * See: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2011/february/double-hmac-verification/ - * - * @param key the MAC key to use. - * @param mac1 as a binary-encoded string of bytes. - * @param mac2 as a binary-encoded string of bytes. - * - * @return true if the MACs are the same, false if not. + * The TokenizeOutput model module. + * @module model/TokenizeOutput + * @version 3.6.3 */ -function compareMacs(key, mac1, mac2) { - var hmac = forge.hmac.create(); +var TokenizeOutput = /*#__PURE__*/function () { + /** + * Constructs a new TokenizeOutput. + * @alias module:model/TokenizeOutput + */ + function TokenizeOutput() { + _classCallCheck(this, TokenizeOutput); - hmac.start('SHA1', key); - hmac.update(mac1); - mac1 = hmac.digest().getBytes(); + TokenizeOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - hmac.start(null, null); - hmac.update(mac2); - mac2 = hmac.digest().getBytes(); - return mac1 === mac2; -} + _createClass(TokenizeOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a TokenizeOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TokenizeOutput} obj Optional instance to populate. + * @return {module:model/TokenizeOutput} The populated TokenizeOutput instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TokenizeOutput(); -/***/ }), + if (data.hasOwnProperty('result')) { + obj['result'] = _ApiClient["default"].convertToType(data['result'], 'String'); + } -/***/ 20938: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('tweak')) { + obj['tweak'] = _ApiClient["default"].convertToType(data['tweak'], 'String'); + } + } + + return obj; + } + }]); + return TokenizeOutput; +}(); /** - * Copyright (c) 2019 Digital Bazaar, Inc. + * @member {String} result */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(27357); -var asn1 = forge.asn1; -exports.privateKeyValidator = { - // PrivateKeyInfo - name: 'PrivateKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - // Version (INTEGER) - name: 'PrivateKeyInfo.version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyVersion' - }, { - // privateKeyAlgorithm - name: 'PrivateKeyInfo.privateKeyAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'privateKeyOid' - }] - }, { - // PrivateKey - name: 'PrivateKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'privateKey' - }] -}; - -exports.publicKeyValidator = { - name: 'SubjectPublicKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'subjectPublicKeyInfo', - value: [{ - name: 'SubjectPublicKeyInfo.AlgorithmIdentifier', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'publicKeyOid' - }] - }, - // capture group for ed25519PublicKey - { - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.BITSTRING, - constructed: false, - composed: true, - captureBitStringValue: 'ed25519PublicKey' - } - // FIXME: this is capture group for rsaPublicKey, use it in this API or - // discard? - /* { - // subjectPublicKey - name: 'SubjectPublicKeyInfo.subjectPublicKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.BITSTRING, - constructed: false, - value: [{ - // RSAPublicKey - name: 'SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - optional: true, - captureAsn1: 'rsaPublicKey' - }] - } */ - ] -}; +TokenizeOutput.prototype['result'] = undefined; +/** + * @member {String} tweak + */ +TokenizeOutput.prototype['tweak'] = undefined; +var _default = TokenizeOutput; +exports["default"] = _default; /***/ }), -/***/ 27357: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 61767: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +var _VaultlessTokenizerInfo = _interopRequireDefault(__nccwpck_require__(56618)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Javascript implementation of Abstract Syntax Notation Number One. - * - * @author Dave Longley - * - * Copyright (c) 2010-2015 Digital Bazaar, Inc. - * - * An API for storing data using the Abstract Syntax Notation Number One - * format using DER (Distinguished Encoding Rules) encoding. This encoding is - * commonly used to store data for PKI, i.e. X.509 Certificates, and this - * implementation exists for that purpose. - * - * Abstract Syntax Notation Number One (ASN.1) is used to define the abstract - * syntax of information without restricting the way the information is encoded - * for transmission. It provides a standard that allows for open systems - * communication. ASN.1 defines the syntax of information data and a number of - * simple data types as well as a notation for describing them and specifying - * values for them. - * - * The RSA algorithm creates public and private keys that are often stored in - * X.509 or PKCS#X formats -- which use ASN.1 (encoded in DER format). This - * class provides the most basic functionality required to store and load DSA - * keys that are encoded according to ASN.1. - * - * The most common binary encodings for ASN.1 are BER (Basic Encoding Rules) - * and DER (Distinguished Encoding Rules). DER is just a subset of BER that - * has stricter requirements for how data must be encoded. - * - * Each ASN.1 structure has a tag (a byte identifying the ASN.1 structure type) - * and a byte array for the value of this ASN1 structure which may be data or a - * list of ASN.1 structures. - * - * Each ASN.1 structure using BER is (Tag-Length-Value): - * - * | byte 0 | bytes X | bytes Y | - * |--------|---------|---------- - * | tag | length | value | - * - * ASN.1 allows for tags to be of "High-tag-number form" which allows a tag to - * be two or more octets, but that is not supported by this class. A tag is - * only 1 byte. Bits 1-5 give the tag number (ie the data type within a - * particular 'class'), 6 indicates whether or not the ASN.1 value is - * constructed from other ASN.1 values, and bits 7 and 8 give the 'class'. If - * bits 7 and 8 are both zero, the class is UNIVERSAL. If only bit 7 is set, - * then the class is APPLICATION. If only bit 8 is set, then the class is - * CONTEXT_SPECIFIC. If both bits 7 and 8 are set, then the class is PRIVATE. - * The tag numbers for the data types for the class UNIVERSAL are listed below: - * - * UNIVERSAL 0 Reserved for use by the encoding rules - * UNIVERSAL 1 Boolean type - * UNIVERSAL 2 Integer type - * UNIVERSAL 3 Bitstring type - * UNIVERSAL 4 Octetstring type - * UNIVERSAL 5 Null type - * UNIVERSAL 6 Object identifier type - * UNIVERSAL 7 Object descriptor type - * UNIVERSAL 8 External type and Instance-of type - * UNIVERSAL 9 Real type - * UNIVERSAL 10 Enumerated type - * UNIVERSAL 11 Embedded-pdv type - * UNIVERSAL 12 UTF8String type - * UNIVERSAL 13 Relative object identifier type - * UNIVERSAL 14-15 Reserved for future editions - * UNIVERSAL 16 Sequence and Sequence-of types - * UNIVERSAL 17 Set and Set-of types - * UNIVERSAL 18-22, 25-30 Character string types - * UNIVERSAL 23-24 Time types - * - * The length of an ASN.1 structure is specified after the tag identifier. - * There is a definite form and an indefinite form. The indefinite form may - * be used if the encoding is constructed and not all immediately available. - * The indefinite form is encoded using a length byte with only the 8th bit - * set. The end of the constructed object is marked using end-of-contents - * octets (two zero bytes). - * - * The definite form looks like this: - * - * The length may take up 1 or more bytes, it depends on the length of the - * value of the ASN.1 structure. DER encoding requires that if the ASN.1 - * structure has a value that has a length greater than 127, more than 1 byte - * will be used to store its length, otherwise just one byte will be used. - * This is strict. - * - * In the case that the length of the ASN.1 value is less than 127, 1 octet - * (byte) is used to store the "short form" length. The 8th bit has a value of - * 0 indicating the length is "short form" and not "long form" and bits 7-1 - * give the length of the data. (The 8th bit is the left-most, most significant - * bit: also known as big endian or network format). - * - * In the case that the length of the ASN.1 value is greater than 127, 2 to - * 127 octets (bytes) are used to store the "long form" length. The first - * byte's 8th bit is set to 1 to indicate the length is "long form." Bits 7-1 - * give the number of additional octets. All following octets are in base 256 - * with the most significant digit first (typical big-endian binary unsigned - * integer storage). So, for instance, if the length of a value was 257, the - * first byte would be set to: - * - * 10000010 = 130 = 0x82. - * - * This indicates there are 2 octets (base 256) for the length. The second and - * third bytes (the octets just mentioned) would store the length in base 256: - * - * octet 2: 00000001 = 1 * 256^1 = 256 - * octet 3: 00000001 = 1 * 256^0 = 1 - * total = 257 - * - * The algorithm for converting a js integer value of 257 to base-256 is: - * - * var value = 257; - * var bytes = []; - * bytes[0] = (value >>> 8) & 0xFF; // most significant byte first - * bytes[1] = value & 0xFF; // least significant byte last - * - * On the ASN.1 UNIVERSAL Object Identifier (OID) type: - * - * An OID can be written like: "value1.value2.value3...valueN" - * - * The DER encoding rules: - * - * The first byte has the value 40 * value1 + value2. - * The following bytes, if any, encode the remaining values. Each value is - * encoded in base 128, most significant digit first (big endian), with as - * few digits as possible, and the most significant bit of each byte set - * to 1 except the last in each value's encoding. For example: Given the - * OID "1.2.840.113549", its DER encoding is (remember each byte except the - * last one in each encoding is OR'd with 0x80): - * - * byte 1: 40 * 1 + 2 = 42 = 0x2A. - * bytes 2-3: 128 * 6 + 72 = 840 = 6 72 = 6 72 = 0x0648 = 0x8648 - * bytes 4-6: 16384 * 6 + 128 * 119 + 13 = 6 119 13 = 0x06770D = 0x86F70D - * - * The final value is: 0x2A864886F70D. - * The full OID (including ASN.1 tag and length of 6 bytes) is: - * 0x06062A864886F70D - */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(97456); -__nccwpck_require__(10245); - -/* ASN.1 API */ -var asn1 = module.exports = forge.asn1 = forge.asn1 || {}; - -/** - * ASN.1 classes. - */ -asn1.Class = { - UNIVERSAL: 0x00, - APPLICATION: 0x40, - CONTEXT_SPECIFIC: 0x80, - PRIVATE: 0xC0 -}; - -/** - * ASN.1 types. Not all types are supported by this implementation, only - * those necessary to implement a simple PKI are implemented. - */ -asn1.Type = { - NONE: 0, - BOOLEAN: 1, - INTEGER: 2, - BITSTRING: 3, - OCTETSTRING: 4, - NULL: 5, - OID: 6, - ODESC: 7, - EXTERNAL: 8, - REAL: 9, - ENUMERATED: 10, - EMBEDDED: 11, - UTF8: 12, - ROID: 13, - SEQUENCE: 16, - SET: 17, - PRINTABLESTRING: 19, - IA5STRING: 22, - UTCTIME: 23, - GENERALIZEDTIME: 24, - BMPSTRING: 30 -}; - -/** - * Creates a new asn1 object. - * - * @param tagClass the tag class for the object. - * @param type the data type (tag number) for the object. - * @param constructed true if the asn1 object is in constructed form. - * @param value the value for the object, if it is not constructed. - * @param [options] the options to use: - * [bitStringContents] the plain BIT STRING content including padding - * byte. - * - * @return the asn1 object. + * The TokenizerInfo model module. + * @module model/TokenizerInfo + * @version 3.6.3 */ -asn1.create = function(tagClass, type, constructed, value, options) { - /* An asn1 object has a tagClass, a type, a constructed flag, and a - value. The value's type depends on the constructed flag. If - constructed, it will contain a list of other asn1 objects. If not, - it will contain the ASN.1 value as an array of bytes formatted - according to the ASN.1 data type. */ +var TokenizerInfo = /*#__PURE__*/function () { + /** + * Constructs a new TokenizerInfo. + * @alias module:model/TokenizerInfo + */ + function TokenizerInfo() { + _classCallCheck(this, TokenizerInfo); + + TokenizerInfo.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(TokenizerInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a TokenizerInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/TokenizerInfo} obj Optional instance to populate. + * @return {module:model/TokenizerInfo} The populated TokenizerInfo instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TokenizerInfo(); - // remove undefined values - if(forge.util.isArray(value)) { - var tmp = []; - for(var i = 0; i < value.length; ++i) { - if(value[i] !== undefined) { - tmp.push(value[i]); + if (data.hasOwnProperty('vaultless_tokenizer_info')) { + obj['vaultless_tokenizer_info'] = _VaultlessTokenizerInfo["default"].constructFromObject(data['vaultless_tokenizer_info']); + } } - } - value = tmp; - } - var obj = { - tagClass: tagClass, - type: type, - constructed: constructed, - composed: constructed || forge.util.isArray(value), - value: value - }; - if(options && 'bitStringContents' in options) { - // TODO: copy byte buffer if it's a buffer not a string - obj.bitStringContents = options.bitStringContents; - // TODO: add readonly flag to avoid this overhead - // save copy to detect changes - obj.original = asn1.copy(obj); - } - return obj; -}; + return obj; + } + }]); + return TokenizerInfo; +}(); /** - * Copies an asn1 object. - * - * @param obj the asn1 object. - * @param [options] copy options: - * [excludeBitStringContents] true to not copy bitStringContents - * - * @return the a copy of the asn1 object. + * @member {module:model/VaultlessTokenizerInfo} vaultless_tokenizer_info */ -asn1.copy = function(obj, options) { - var copy; - if(forge.util.isArray(obj)) { - copy = []; - for(var i = 0; i < obj.length; ++i) { - copy.push(asn1.copy(obj[i], options)); - } - return copy; - } - if(typeof obj === 'string') { - // TODO: copy byte buffer if it's a buffer not a string - return obj; - } +TokenizerInfo.prototype['vaultless_tokenizer_info'] = undefined; +var _default = TokenizerInfo; +exports["default"] = _default; - copy = { - tagClass: obj.tagClass, - type: obj.type, - constructed: obj.constructed, - composed: obj.composed, - value: asn1.copy(obj.value, options) - }; - if(options && !options.excludeBitStringContents) { - // TODO: copy byte buffer if it's a buffer not a string - copy.bitStringContents = obj.bitStringContents; - } - return copy; -}; +/***/ }), + +/***/ 33593: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Compares asn1 objects for equality. - * - * Note this function does not run in constant time. - * - * @param obj1 the first asn1 object. - * @param obj2 the second asn1 object. - * @param [options] compare options: - * [includeBitStringContents] true to compare bitStringContents - * - * @return true if the asn1 objects are equal. + * The UIDTokenDetails model module. + * @module model/UIDTokenDetails + * @version 3.6.3 */ -asn1.equals = function(obj1, obj2, options) { - if(forge.util.isArray(obj1)) { - if(!forge.util.isArray(obj2)) { - return false; - } - if(obj1.length !== obj2.length) { - return false; - } - for(var i = 0; i < obj1.length; ++i) { - if(!asn1.equals(obj1[i], obj2[i])) { - return false; - } - } - return true; - } +var UIDTokenDetails = /*#__PURE__*/function () { + /** + * Constructs a new UIDTokenDetails. + * @alias module:model/UIDTokenDetails + */ + function UIDTokenDetails() { + _classCallCheck(this, UIDTokenDetails); - if(typeof obj1 !== typeof obj2) { - return false; + UIDTokenDetails.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if(typeof obj1 === 'string') { - return obj1 === obj2; - } - var equal = obj1.tagClass === obj2.tagClass && - obj1.type === obj2.type && - obj1.constructed === obj2.constructed && - obj1.composed === obj2.composed && - asn1.equals(obj1.value, obj2.value); - if(options && options.includeBitStringContents) { - equal = equal && (obj1.bitStringContents === obj2.bitStringContents); - } + _createClass(UIDTokenDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UIDTokenDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UIDTokenDetails} obj Optional instance to populate. + * @return {module:model/UIDTokenDetails} The populated UIDTokenDetails instance. + */ - return equal; -}; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UIDTokenDetails(); + + if (data.hasOwnProperty('children')) { + obj['children'] = _ApiClient["default"].convertToType(data['children'], { + 'String': UIDTokenDetails + }); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('deny_inheritance')) { + obj['deny_inheritance'] = _ApiClient["default"].convertToType(data['deny_inheritance'], 'Boolean'); + } + + if (data.hasOwnProperty('deny_rotate')) { + obj['deny_rotate'] = _ApiClient["default"].convertToType(data['deny_rotate'], 'Boolean'); + } + + if (data.hasOwnProperty('depth')) { + obj['depth'] = _ApiClient["default"].convertToType(data['depth'], 'Number'); + } + + if (data.hasOwnProperty('expired_date')) { + obj['expired_date'] = _ApiClient["default"].convertToType(data['expired_date'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('last_rotate')) { + obj['last_rotate'] = _ApiClient["default"].convertToType(data['last_rotate'], 'String'); + } + + if (data.hasOwnProperty('revoked')) { + obj['revoked'] = _ApiClient["default"].convertToType(data['revoked'], 'Boolean'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + } + return obj; + } + }]); + + return UIDTokenDetails; +}(); /** - * Gets the length of a BER-encoded ASN.1 value. - * - * In case the length is not specified, undefined is returned. - * - * @param b the BER-encoded ASN.1 byte buffer, starting with the first - * length byte. - * - * @return the length of the BER-encoded ASN.1 value or undefined. + * @member {Object.} children */ -asn1.getBerValueLength = function(b) { - // TODO: move this function and related DER/BER functions to a der.js - // file; better abstract ASN.1 away from der/ber. - var b2 = b.getByte(); - if(b2 === 0x80) { - return undefined; - } - // see if the length is "short form" or "long form" (bit 8 set) - var length; - var longForm = b2 & 0x80; - if(!longForm) { - // length is just the first byte - length = b2; - } else { - // the number of bytes the length is specified in bits 7 through 1 - // and each length byte is in big-endian base-256 - length = b.getInt((b2 & 0x7F) << 3); - } - return length; -}; +UIDTokenDetails.prototype['children'] = undefined; /** - * Check if the byte buffer has enough bytes. Throws an Error if not. - * - * @param bytes the byte buffer to parse from. - * @param remaining the bytes remaining in the current parsing state. - * @param n the number of bytes the buffer must have. + * @member {String} comment */ -function _checkBufferLength(bytes, remaining, n) { - if(n > remaining) { - var error = new Error('Too few bytes to parse DER.'); - error.available = bytes.length(); - error.remaining = remaining; - error.requested = n; - throw error; - } -} +UIDTokenDetails.prototype['comment'] = undefined; /** - * Gets the length of a BER-encoded ASN.1 value. - * - * In case the length is not specified, undefined is returned. - * - * @param bytes the byte buffer to parse from. - * @param remaining the bytes remaining in the current parsing state. - * - * @return the length of the BER-encoded ASN.1 value or undefined. + * @member {Boolean} deny_inheritance */ -var _getValueLength = function(bytes, remaining) { - // TODO: move this function and related DER/BER functions to a der.js - // file; better abstract ASN.1 away from der/ber. - // fromDer already checked that this byte exists - var b2 = bytes.getByte(); - remaining--; - if(b2 === 0x80) { - return undefined; - } - - // see if the length is "short form" or "long form" (bit 8 set) - var length; - var longForm = b2 & 0x80; - if(!longForm) { - // length is just the first byte - length = b2; - } else { - // the number of bytes the length is specified in bits 7 through 1 - // and each length byte is in big-endian base-256 - var longFormBytes = b2 & 0x7F; - _checkBufferLength(bytes, remaining, longFormBytes); - length = bytes.getInt(longFormBytes << 3); - } - // FIXME: this will only happen for 32 bit getInt with high bit set - if(length < 0) { - throw new Error('Negative length: ' + length); - } - return length; -}; +UIDTokenDetails.prototype['deny_inheritance'] = undefined; /** - * Parses an asn1 object from a byte buffer in DER format. - * - * @param bytes the byte buffer to parse from. - * @param [strict] true to be strict when checking value lengths, false to - * allow truncated values (default: true). - * @param [options] object with options or boolean strict flag - * [strict] true to be strict when checking value lengths, false to - * allow truncated values (default: true). - * [parseAllBytes] true to ensure all bytes are parsed - * (default: true) - * [decodeBitStrings] true to attempt to decode the content of - * BIT STRINGs (not OCTET STRINGs) using strict mode. Note that - * without schema support to understand the data context this can - * erroneously decode values that happen to be valid ASN.1. This - * flag will be deprecated or removed as soon as schema support is - * available. (default: true) - * - * @throws Will throw an error for various malformed input conditions. - * - * @return the parsed asn1 object. + * @member {Boolean} deny_rotate */ -asn1.fromDer = function(bytes, options) { - if(options === undefined) { - options = { - strict: true, - parseAllBytes: true, - decodeBitStrings: true - }; - } - if(typeof options === 'boolean') { - options = { - strict: options, - parseAllBytes: true, - decodeBitStrings: true - }; - } - if(!('strict' in options)) { - options.strict = true; - } - if(!('parseAllBytes' in options)) { - options.parseAllBytes = true; - } - if(!('decodeBitStrings' in options)) { - options.decodeBitStrings = true; - } - // wrap in buffer if needed - if(typeof bytes === 'string') { - bytes = forge.util.createBuffer(bytes); - } +UIDTokenDetails.prototype['deny_rotate'] = undefined; +/** + * @member {Number} depth + */ - var byteCount = bytes.length(); - var value = _fromDer(bytes, bytes.length(), 0, options); - if(options.parseAllBytes && bytes.length() !== 0) { - var error = new Error('Unparsed DER bytes remain after ASN.1 parsing.'); - error.byteCount = byteCount; - error.remaining = bytes.length(); - throw error; - } - return value; -}; +UIDTokenDetails.prototype['depth'] = undefined; +/** + * @member {String} expired_date + */ +UIDTokenDetails.prototype['expired_date'] = undefined; /** - * Internal function to parse an asn1 object from a byte buffer in DER format. - * - * @param bytes the byte buffer to parse from. - * @param remaining the number of bytes remaining for this chunk. - * @param depth the current parsing depth. - * @param options object with same options as fromDer(). - * - * @return the parsed asn1 object. + * @member {String} id */ -function _fromDer(bytes, remaining, depth, options) { - // temporary storage for consumption calculations - var start; - // minimum length for ASN.1 DER structure is 2 - _checkBufferLength(bytes, remaining, 2); +UIDTokenDetails.prototype['id'] = undefined; +/** + * @member {String} last_rotate + */ - // get the first byte - var b1 = bytes.getByte(); - // consumed one byte - remaining--; +UIDTokenDetails.prototype['last_rotate'] = undefined; +/** + * @member {Boolean} revoked + */ - // get the tag class - var tagClass = (b1 & 0xC0); +UIDTokenDetails.prototype['revoked'] = undefined; +/** + * @member {Number} ttl + */ - // get the type (bits 1-5) - var type = b1 & 0x1F; +UIDTokenDetails.prototype['ttl'] = undefined; +var _default = UIDTokenDetails; +exports["default"] = _default; - // get the variable value length and adjust remaining bytes - start = bytes.length(); - var length = _getValueLength(bytes, remaining); - remaining -= start - bytes.length(); +/***/ }), - // ensure there are enough bytes to get the value - if(length !== undefined && length > remaining) { - if(options.strict) { - var error = new Error('Too few bytes to read ASN.1 value.'); - error.available = bytes.length(); - error.remaining = remaining; - error.requested = length; - throw error; - } - // Note: be lenient with truncated values and use remaining state bytes - length = remaining; - } +/***/ 35191: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // value storage - var value; - // possible BIT STRING contents storage - var bitStringContents; +"use strict"; - // constructed flag is bit 6 (32 = 0x20) of the first byte - var constructed = ((b1 & 0x20) === 0x20); - if(constructed) { - // parse child asn1 objects from the value - value = []; - if(length === undefined) { - // asn1 object of indefinite length, read until end tag - for(;;) { - _checkBufferLength(bytes, remaining, 2); - if(bytes.bytes(2) === String.fromCharCode(0, 0)) { - bytes.getBytes(2); - remaining -= 2; - break; - } - start = bytes.length(); - value.push(_fromDer(bytes, remaining, depth + 1, options)); - remaining -= start - bytes.length(); - } - } else { - // parsing asn1 object of definite length - while(length > 0) { - start = bytes.length(); - value.push(_fromDer(bytes, length, depth + 1, options)); - remaining -= start - bytes.length(); - length -= start - bytes.length(); - } - } - } - - // if a BIT STRING, save the contents including padding - if(value === undefined && tagClass === asn1.Class.UNIVERSAL && - type === asn1.Type.BITSTRING) { - bitStringContents = bytes.bytes(length); - } - - // determine if a non-constructed value should be decoded as a composed - // value that contains other ASN.1 objects. BIT STRINGs (and OCTET STRINGs) - // can be used this way. - if(value === undefined && options.decodeBitStrings && - tagClass === asn1.Class.UNIVERSAL && - // FIXME: OCTET STRINGs not yet supported here - // .. other parts of forge expect to decode OCTET STRINGs manually - (type === asn1.Type.BITSTRING /*|| type === asn1.Type.OCTETSTRING*/) && - length > 1) { - // save read position - var savedRead = bytes.read; - var savedRemaining = remaining; - var unused = 0; - if(type === asn1.Type.BITSTRING) { - /* The first octet gives the number of bits by which the length of the - bit string is less than the next multiple of eight (this is called - the "number of unused bits"). - - The second and following octets give the value of the bit string - converted to an octet string. */ - _checkBufferLength(bytes, remaining, 1); - unused = bytes.getByte(); - remaining--; - } - // if all bits are used, maybe the BIT/OCTET STRING holds ASN.1 objs - if(unused === 0) { - try { - // attempt to parse child asn1 object from the value - // (stored in array to signal composed value) - start = bytes.length(); - var subOptions = { - // enforce strict mode to avoid parsing ASN.1 from plain data - strict: true, - decodeBitStrings: true - }; - var composed = _fromDer(bytes, remaining, depth + 1, subOptions); - var used = start - bytes.length(); - remaining -= used; - if(type == asn1.Type.BITSTRING) { - used++; - } - // if the data all decoded and the class indicates UNIVERSAL or - // CONTEXT_SPECIFIC then assume we've got an encapsulated ASN.1 object - var tc = composed.tagClass; - if(used === length && - (tc === asn1.Class.UNIVERSAL || tc === asn1.Class.CONTEXT_SPECIFIC)) { - value = [composed]; - } - } catch(ex) { - } - } - if(value === undefined) { - // restore read position - bytes.read = savedRead; - remaining = savedRemaining; - } - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if(value === undefined) { - // asn1 not constructed or composed, get raw value - // TODO: do DER to OID conversion and vice-versa in .toDer? +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if(length === undefined) { - if(options.strict) { - throw new Error('Non-constructed ASN.1 object of indefinite length.'); - } - // be lenient and use remaining state bytes - length = remaining; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if(type === asn1.Type.BMPSTRING) { - value = ''; - for(; length > 0; length -= 2) { - _checkBufferLength(bytes, remaining, 2); - value += String.fromCharCode(bytes.getInt16()); - remaining -= 2; - } - } else { - value = bytes.getBytes(length); - remaining -= length; - } - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // add BIT STRING contents if available - var asn1Options = bitStringContents === undefined ? null : { - bitStringContents: bitStringContents - }; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // create and return asn1 object - return asn1.create(tagClass, type, constructed, value, asn1Options); -} +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Converts the given asn1 object to a buffer of bytes in DER format. - * - * @param asn1 the asn1 object to convert to bytes. - * - * @return the buffer of bytes. + * The UidCreateChildToken model module. + * @module model/UidCreateChildToken + * @version 3.6.3 */ -asn1.toDer = function(obj) { - var bytes = forge.util.createBuffer(); +var UidCreateChildToken = /*#__PURE__*/function () { + /** + * Constructs a new UidCreateChildToken. + * uidCreateChildToken is a command that creates a new child token using Akeyless Universal Identity. + * @alias module:model/UidCreateChildToken + */ + function UidCreateChildToken() { + _classCallCheck(this, UidCreateChildToken); - // build the first byte - var b1 = obj.tagClass | obj.type; + UidCreateChildToken.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // for storing the ASN.1 value - var value = forge.util.createBuffer(); - // use BIT STRING contents if available and data not changed - var useBitStringContents = false; - if('bitStringContents' in obj) { - useBitStringContents = true; - if(obj.original) { - useBitStringContents = asn1.equals(obj, obj.original); - } - } + _createClass(UidCreateChildToken, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UidCreateChildToken from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UidCreateChildToken} obj Optional instance to populate. + * @return {module:model/UidCreateChildToken} The populated UidCreateChildToken instance. + */ - if(useBitStringContents) { - value.putBytes(obj.bitStringContents); - } else if(obj.composed) { - // if composed, use each child asn1 object's DER bytes as value - // turn on 6th bit (0x20 = 32) to indicate asn1 is constructed - // from other asn1 objects - if(obj.constructed) { - b1 |= 0x20; - } else { - // type is a bit string, add unused bits of 0x00 - value.putByte(0x00); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UidCreateChildToken(); - // add all of the child DER bytes together - for(var i = 0; i < obj.value.length; ++i) { - if(obj.value[i] !== undefined) { - value.putBuffer(asn1.toDer(obj.value[i])); - } - } - } else { - // use asn1.value directly - if(obj.type === asn1.Type.BMPSTRING) { - for(var i = 0; i < obj.value.length; ++i) { - value.putInt16(obj.value.charCodeAt(i)); - } - } else { - // ensure integer is minimally-encoded - // TODO: should all leading bytes be stripped vs just one? - // .. ex '00 00 01' => '01'? - if(obj.type === asn1.Type.INTEGER && - obj.value.length > 1 && - // leading 0x00 for positive integer - ((obj.value.charCodeAt(0) === 0 && - (obj.value.charCodeAt(1) & 0x80) === 0) || - // leading 0xFF for negative integer - (obj.value.charCodeAt(0) === 0xFF && - (obj.value.charCodeAt(1) & 0x80) === 0x80))) { - value.putBytes(obj.value.substr(1)); - } else { - value.putBytes(obj.value); + if (data.hasOwnProperty('auth-method-name')) { + obj['auth-method-name'] = _ApiClient["default"].convertToType(data['auth-method-name'], 'String'); + } + + if (data.hasOwnProperty('child-deny-inheritance')) { + obj['child-deny-inheritance'] = _ApiClient["default"].convertToType(data['child-deny-inheritance'], 'Boolean'); + } + + if (data.hasOwnProperty('child-deny-rotate')) { + obj['child-deny-rotate'] = _ApiClient["default"].convertToType(data['child-deny-rotate'], 'Boolean'); + } + + if (data.hasOwnProperty('child-ttl')) { + obj['child-ttl'] = _ApiClient["default"].convertToType(data['child-ttl'], 'Number'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('uid-token-id')) { + obj['uid-token-id'] = _ApiClient["default"].convertToType(data['uid-token-id'], 'String'); + } } + + return obj; } - } + }]); + + return UidCreateChildToken; +}(); +/** + * The universal identity auth method name, required only when uid-token is not provided + * @member {String} auth-method-name + */ - // add tag byte - bytes.putByte(b1); - // use "short form" encoding - if(value.length() <= 127) { - // one byte describes the length - // bit 8 = 0 and bits 7-1 = length - bytes.putByte(value.length() & 0x7F); - } else { - // use "long form" encoding - // 2 to 127 bytes describe the length - // first byte: bit 8 = 1 and bits 7-1 = # of additional bytes - // other bytes: length in base 256, big-endian - var len = value.length(); - var lenBytes = ''; - do { - lenBytes += String.fromCharCode(len & 0xFF); - len = len >>> 8; - } while(len > 0); +UidCreateChildToken.prototype['auth-method-name'] = undefined; +/** + * Deny from new child to create their own children + * @member {Boolean} child-deny-inheritance + */ - // set first byte to # bytes used to store the length and turn on - // bit 8 to indicate long-form length is used - bytes.putByte(lenBytes.length | 0x80); +UidCreateChildToken.prototype['child-deny-inheritance'] = undefined; +/** + * Deny from new child to rotate + * @member {Boolean} child-deny-rotate + */ - // concatenate length bytes in reverse since they were generated - // little endian and we need big endian - for(var i = lenBytes.length - 1; i >= 0; --i) { - bytes.putByte(lenBytes.charCodeAt(i)); - } - } +UidCreateChildToken.prototype['child-deny-rotate'] = undefined; +/** + * New child token ttl + * @member {Number} child-ttl + */ - // concatenate value bytes - bytes.putBuffer(value); - return bytes; -}; +UidCreateChildToken.prototype['child-ttl'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ +UidCreateChildToken.prototype['comment'] = undefined; /** - * Converts an OID dot-separated string to a byte buffer. The byte buffer - * contains only the DER-encoded value, not any tag or length bytes. - * - * @param oid the OID dot-separated string. - * - * @return the byte buffer. + * Description of the object + * @member {String} description */ -asn1.oidToDer = function(oid) { - // split OID into individual values - var values = oid.split('.'); - var bytes = forge.util.createBuffer(); - // first byte is 40 * value1 + value2 - bytes.putByte(40 * parseInt(values[0], 10) + parseInt(values[1], 10)); - // other bytes are each value in base 128 with 8th bit set except for - // the last byte for each value - var last, valueBytes, value, b; - for(var i = 2; i < values.length; ++i) { - // produce value bytes in reverse because we don't know how many - // bytes it will take to store the value - last = true; - valueBytes = []; - value = parseInt(values[i], 10); - do { - b = value & 0x7F; - value = value >>> 7; - // if value is not last, then turn on 8th bit - if(!last) { - b |= 0x80; - } - valueBytes.push(b); - last = false; - } while(value > 0); +UidCreateChildToken.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - // add value bytes in reverse (needs to be in big endian) - for(var n = valueBytes.length - 1; n >= 0; --n) { - bytes.putByte(valueBytes[n]); - } - } +UidCreateChildToken.prototype['json'] = false; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return bytes; -}; +UidCreateChildToken.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +UidCreateChildToken.prototype['uid-token'] = undefined; /** - * Converts a DER-encoded byte buffer to an OID dot-separated string. The - * byte buffer should contain only the DER-encoded value, not any tag or - * length bytes. - * - * @param bytes the byte buffer. - * - * @return the OID dot-separated string. + * The ID of the uid-token, required only when uid-token is not provided + * @member {String} uid-token-id */ -asn1.derToOid = function(bytes) { - var oid; - // wrap in buffer if needed - if(typeof bytes === 'string') { - bytes = forge.util.createBuffer(bytes); - } +UidCreateChildToken.prototype['uid-token-id'] = undefined; +var _default = UidCreateChildToken; +exports["default"] = _default; - // first byte is 40 * value1 + value2 - var b = bytes.getByte(); - oid = Math.floor(b / 40) + '.' + (b % 40); +/***/ }), - // other bytes are each value in base 128 with 8th bit set except for - // the last byte for each value - var value = 0; - while(bytes.length() > 0) { - b = bytes.getByte(); - value = value << 7; - // not the last byte for the value - if(b & 0x80) { - value += b & 0x7F; - } else { - // last byte - oid += '.' + (value + b); - value = 0; - } - } +/***/ 25070: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - return oid; -}; +"use strict"; -/** - * Converts a UTCTime value to a date. - * - * Note: GeneralizedTime has 4 digits for the year and is used for X.509 - * dates past 2049. Parsing that structure hasn't been implemented yet. - * - * @param utc the UTCTime value to convert. - * - * @return the date. - */ -asn1.utcTimeToDate = function(utc) { - /* The following formats can be used: - YYMMDDhhmmZ - YYMMDDhhmm+hh'mm' - YYMMDDhhmm-hh'mm' - YYMMDDhhmmssZ - YYMMDDhhmmss+hh'mm' - YYMMDDhhmmss-hh'mm' +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - Where: +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - YY is the least significant two digits of the year - MM is the month (01 to 12) - DD is the day (01 to 31) - hh is the hour (00 to 23) - mm are the minutes (00 to 59) - ss are the seconds (00 to 59) - Z indicates that local time is GMT, + indicates that local time is - later than GMT, and - indicates that local time is earlier than GMT - hh' is the absolute value of the offset from GMT in hours - mm' is the absolute value of the offset from GMT in minutes */ - var date = new Date(); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // if YY >= 50 use 19xx, if YY < 50 use 20xx - var year = parseInt(utc.substr(0, 2), 10); - year = (year >= 50) ? 1900 + year : 2000 + year; - var MM = parseInt(utc.substr(2, 2), 10) - 1; // use 0-11 for month - var DD = parseInt(utc.substr(4, 2), 10); - var hh = parseInt(utc.substr(6, 2), 10); - var mm = parseInt(utc.substr(8, 2), 10); - var ss = 0; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // not just YYMMDDhhmmZ - if(utc.length > 11) { - // get character after minutes - var c = utc.charAt(10); - var end = 10; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // see if seconds are present - if(c !== '+' && c !== '-') { - // get seconds - ss = parseInt(utc.substr(10, 2), 10); - end += 2; - } +/** + * The UidCreateChildTokenOutput model module. + * @module model/UidCreateChildTokenOutput + * @version 3.6.3 + */ +var UidCreateChildTokenOutput = /*#__PURE__*/function () { + /** + * Constructs a new UidCreateChildTokenOutput. + * @alias module:model/UidCreateChildTokenOutput + */ + function UidCreateChildTokenOutput() { + _classCallCheck(this, UidCreateChildTokenOutput); + + UidCreateChildTokenOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // update date - date.setUTCFullYear(year, MM, DD); - date.setUTCHours(hh, mm, ss, 0); - if(end) { - // get +/- after end of time - c = utc.charAt(end); - if(c === '+' || c === '-') { - // get hours+minutes offset - var hhoffset = parseInt(utc.substr(end + 1, 2), 10); - var mmoffset = parseInt(utc.substr(end + 4, 2), 10); + _createClass(UidCreateChildTokenOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UidCreateChildTokenOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UidCreateChildTokenOutput} obj Optional instance to populate. + * @return {module:model/UidCreateChildTokenOutput} The populated UidCreateChildTokenOutput instance. + */ - // calculate offset in milliseconds - var offset = hhoffset * 60 + mmoffset; - offset *= 60000; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UidCreateChildTokenOutput(); - // apply offset - if(c === '+') { - date.setTime(+date - offset); - } else { - date.setTime(+date + offset); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } } - } - } - return date; -}; + return obj; + } + }]); + return UidCreateChildTokenOutput; +}(); /** - * Converts a GeneralizedTime value to a date. - * - * @param gentime the GeneralizedTime value to convert. - * - * @return the date. + * @member {String} token */ -asn1.generalizedTimeToDate = function(gentime) { - /* The following formats can be used: - YYYYMMDDHHMMSS - YYYYMMDDHHMMSS.fff - YYYYMMDDHHMMSSZ - YYYYMMDDHHMMSS.fffZ - YYYYMMDDHHMMSS+hh'mm' - YYYYMMDDHHMMSS.fff+hh'mm' - YYYYMMDDHHMMSS-hh'mm' - YYYYMMDDHHMMSS.fff-hh'mm' - Where: - - YYYY is the year - MM is the month (01 to 12) - DD is the day (01 to 31) - hh is the hour (00 to 23) - mm are the minutes (00 to 59) - ss are the seconds (00 to 59) - .fff is the second fraction, accurate to three decimal places - Z indicates that local time is GMT, + indicates that local time is - later than GMT, and - indicates that local time is earlier than GMT - hh' is the absolute value of the offset from GMT in hours - mm' is the absolute value of the offset from GMT in minutes */ - var date = new Date(); +UidCreateChildTokenOutput.prototype['token'] = undefined; +var _default = UidCreateChildTokenOutput; +exports["default"] = _default; - var YYYY = parseInt(gentime.substr(0, 4), 10); - var MM = parseInt(gentime.substr(4, 2), 10) - 1; // use 0-11 for month - var DD = parseInt(gentime.substr(6, 2), 10); - var hh = parseInt(gentime.substr(8, 2), 10); - var mm = parseInt(gentime.substr(10, 2), 10); - var ss = parseInt(gentime.substr(12, 2), 10); - var fff = 0; - var offset = 0; - var isUTC = false; +/***/ }), - if(gentime.charAt(gentime.length - 1) === 'Z') { - isUTC = true; - } +/***/ 56690: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - var end = gentime.length - 5, c = gentime.charAt(end); - if(c === '+' || c === '-') { - // get hours+minutes offset - var hhoffset = parseInt(gentime.substr(end + 1, 2), 10); - var mmoffset = parseInt(gentime.substr(end + 4, 2), 10); +"use strict"; - // calculate offset in milliseconds - offset = hhoffset * 60 + mmoffset; - offset *= 60000; - // apply offset - if(c === '+') { - offset *= -1; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - isUTC = true; - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // check for second fraction - if(gentime.charAt(14) === '.') { - fff = parseFloat(gentime.substr(14), 10) * 1000; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if(isUTC) { - date.setUTCFullYear(YYYY, MM, DD); - date.setUTCHours(hh, mm, ss, fff); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // apply offset - date.setTime(+date + offset); - } else { - date.setFullYear(YYYY, MM, DD); - date.setHours(hh, mm, ss, fff); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - return date; -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Converts a date to a UTCTime value. - * - * Note: GeneralizedTime has 4 digits for the year and is used for X.509 - * dates past 2049. Converting to a GeneralizedTime hasn't been - * implemented yet. - * - * @param date the date to convert. - * - * @return the UTCTime value. + * The UidGenerateToken model module. + * @module model/UidGenerateToken + * @version 3.6.3 */ -asn1.dateToUtcTime = function(date) { - // TODO: validate; currently assumes proper format - if(typeof date === 'string') { - return date; - } +var UidGenerateToken = /*#__PURE__*/function () { + /** + * Constructs a new UidGenerateToken. + * uidGenerateToken is a command that generates a new token using Akeyless Universal Identity. + * @alias module:model/UidGenerateToken + * @param authMethodName {String} The universal identity auth method name + */ + function UidGenerateToken(authMethodName) { + _classCallCheck(this, UidGenerateToken); - var rval = ''; + UidGenerateToken.initialize(this, authMethodName); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // create format YYMMDDhhmmssZ - var format = []; - format.push(('' + date.getUTCFullYear()).substr(2)); - format.push('' + (date.getUTCMonth() + 1)); - format.push('' + date.getUTCDate()); - format.push('' + date.getUTCHours()); - format.push('' + date.getUTCMinutes()); - format.push('' + date.getUTCSeconds()); - // ensure 2 digits are used for each format entry - for(var i = 0; i < format.length; ++i) { - if(format[i].length < 2) { - rval += '0'; + _createClass(UidGenerateToken, null, [{ + key: "initialize", + value: function initialize(obj, authMethodName) { + obj['auth-method-name'] = authMethodName; } - rval += format[i]; - } - rval += 'Z'; + /** + * Constructs a UidGenerateToken from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UidGenerateToken} obj Optional instance to populate. + * @return {module:model/UidGenerateToken} The populated UidGenerateToken instance. + */ - return rval; -}; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UidGenerateToken(); -/** - * Converts a date to a GeneralizedTime value. - * - * @param date the date to convert. - * - * @return the GeneralizedTime value as a string. - */ -asn1.dateToGeneralizedTime = function(date) { - // TODO: validate; currently assumes proper format - if(typeof date === 'string') { - return date; - } + if (data.hasOwnProperty('auth-method-name')) { + obj['auth-method-name'] = _ApiClient["default"].convertToType(data['auth-method-name'], 'String'); + } - var rval = ''; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - // create format YYYYMMDDHHMMSSZ - var format = []; - format.push('' + date.getUTCFullYear()); - format.push('' + (date.getUTCMonth() + 1)); - format.push('' + date.getUTCDate()); - format.push('' + date.getUTCHours()); - format.push('' + date.getUTCMinutes()); - format.push('' + date.getUTCSeconds()); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - // ensure 2 digits are used for each format entry - for(var i = 0; i < format.length; ++i) { - if(format[i].length < 2) { - rval += '0'; - } - rval += format[i]; - } - rval += 'Z'; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - return rval; -}; + return obj; + } + }]); + return UidGenerateToken; +}(); /** - * Converts a javascript integer to a DER-encoded byte buffer to be used - * as the value for an INTEGER type. - * - * @param x the integer. - * - * @return the byte buffer. + * The universal identity auth method name + * @member {String} auth-method-name */ -asn1.integerToDer = function(x) { - var rval = forge.util.createBuffer(); - if(x >= -0x80 && x < 0x80) { - return rval.putSignedInt(x, 8); - } - if(x >= -0x8000 && x < 0x8000) { - return rval.putSignedInt(x, 16); - } - if(x >= -0x800000 && x < 0x800000) { - return rval.putSignedInt(x, 24); - } - if(x >= -0x80000000 && x < 0x80000000) { - return rval.putSignedInt(x, 32); - } - var error = new Error('Integer too large; max is 32-bits.'); - error.integer = x; - throw error; -}; + +UidGenerateToken.prototype['auth-method-name'] = undefined; /** - * Converts a DER-encoded byte buffer to a javascript integer. This is - * typically used to decode the value of an INTEGER type. - * - * @param bytes the byte buffer. - * - * @return the integer. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -asn1.derToInteger = function(bytes) { - // wrap in buffer if needed - if(typeof bytes === 'string') { - bytes = forge.util.createBuffer(bytes); - } - - var n = bytes.length() * 8; - if(n > 32) { - throw new Error('Integer too large; max is 32-bits.'); - } - return bytes.getSignedInt(n); -}; +UidGenerateToken.prototype['json'] = false; /** - * Validates that the given ASN.1 object is at least a super set of the - * given ASN.1 structure. Only tag classes and types are checked. An - * optional map may also be provided to capture ASN.1 values while the - * structure is checked. - * - * To capture an ASN.1 value, set an object in the validator's 'capture' - * parameter to the key to use in the capture map. To capture the full - * ASN.1 object, specify 'captureAsn1'. To capture BIT STRING bytes, including - * the leading unused bits counter byte, specify 'captureBitStringContents'. - * To capture BIT STRING bytes, without the leading unused bits counter byte, - * specify 'captureBitStringValue'. - * - * Objects in the validator may set a field 'optional' to true to indicate - * that it isn't necessary to pass validation. - * - * @param obj the ASN.1 object to validate. - * @param v the ASN.1 structure validator. - * @param capture an optional map to capture values in. - * @param errors an optional array for storing validation errors. - * - * @return true on success, false on failure. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -asn1.validate = function(obj, v, capture, errors) { - var rval = false; - - // ensure tag class and type are the same if specified - if((obj.tagClass === v.tagClass || typeof(v.tagClass) === 'undefined') && - (obj.type === v.type || typeof(v.type) === 'undefined')) { - // ensure constructed flag is the same if specified - if(obj.constructed === v.constructed || - typeof(v.constructed) === 'undefined') { - rval = true; - - // handle sub values - if(v.value && forge.util.isArray(v.value)) { - var j = 0; - for(var i = 0; rval && i < v.value.length; ++i) { - rval = v.value[i].optional || false; - if(obj.value[j]) { - rval = asn1.validate(obj.value[j], v.value[i], capture, errors); - if(rval) { - ++j; - } else if(v.value[i].optional) { - rval = true; - } - } - if(!rval && errors) { - errors.push( - '[' + v.name + '] ' + - 'Tag class "' + v.tagClass + '", type "' + - v.type + '" expected value length "' + - v.value.length + '", got "' + - obj.value.length + '"'); - } - } - } - - if(rval && capture) { - if(v.capture) { - capture[v.capture] = obj.value; - } - if(v.captureAsn1) { - capture[v.captureAsn1] = obj; - } - if(v.captureBitStringContents && 'bitStringContents' in obj) { - capture[v.captureBitStringContents] = obj.bitStringContents; - } - if(v.captureBitStringValue && 'bitStringContents' in obj) { - var value; - if(obj.bitStringContents.length < 2) { - capture[v.captureBitStringValue] = ''; - } else { - // FIXME: support unused bits with data shifting - var unused = obj.bitStringContents.charCodeAt(0); - if(unused !== 0) { - throw new Error( - 'captureBitStringValue only supported for zero unused bits'); - } - capture[v.captureBitStringValue] = obj.bitStringContents.slice(1); - } - } - } - } else if(errors) { - errors.push( - '[' + v.name + '] ' + - 'Expected constructed "' + v.constructed + '", got "' + - obj.constructed + '"'); - } - } else if(errors) { - if(obj.tagClass !== v.tagClass) { - errors.push( - '[' + v.name + '] ' + - 'Expected tag class "' + v.tagClass + '", got "' + - obj.tagClass + '"'); - } - if(obj.type !== v.type) { - errors.push( - '[' + v.name + '] ' + - 'Expected type "' + v.type + '", got "' + obj.type + '"'); - } - } - return rval; -}; - -// regex for testing for non-latin characters -var _nonLatinRegex = /[^\\u0000-\\u00ff]/; +UidGenerateToken.prototype['token'] = undefined; /** - * Pretty prints an ASN.1 object to a string. - * - * @param obj the object to write out. - * @param level the level in the tree. - * @param indentation the indentation to use. - * - * @return the string. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -asn1.prettyPrint = function(obj, level, indentation) { - var rval = ''; - // set default level and indentation - level = level || 0; - indentation = indentation || 2; - - // start new line for deep levels - if(level > 0) { - rval += '\n'; - } +UidGenerateToken.prototype['uid-token'] = undefined; +var _default = UidGenerateToken; +exports["default"] = _default; - // create indent - var indent = ''; - for(var i = 0; i < level * indentation; ++i) { - indent += ' '; - } +/***/ }), - // print class:type - rval += indent + 'Tag: '; - switch(obj.tagClass) { - case asn1.Class.UNIVERSAL: - rval += 'Universal:'; - break; - case asn1.Class.APPLICATION: - rval += 'Application:'; - break; - case asn1.Class.CONTEXT_SPECIFIC: - rval += 'Context-Specific:'; - break; - case asn1.Class.PRIVATE: - rval += 'Private:'; - break; - } +/***/ 33367: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if(obj.tagClass === asn1.Class.UNIVERSAL) { - rval += obj.type; +"use strict"; - // known types - switch(obj.type) { - case asn1.Type.NONE: - rval += ' (None)'; - break; - case asn1.Type.BOOLEAN: - rval += ' (Boolean)'; - break; - case asn1.Type.INTEGER: - rval += ' (Integer)'; - break; - case asn1.Type.BITSTRING: - rval += ' (Bit string)'; - break; - case asn1.Type.OCTETSTRING: - rval += ' (Octet string)'; - break; - case asn1.Type.NULL: - rval += ' (Null)'; - break; - case asn1.Type.OID: - rval += ' (Object Identifier)'; - break; - case asn1.Type.ODESC: - rval += ' (Object Descriptor)'; - break; - case asn1.Type.EXTERNAL: - rval += ' (External or Instance of)'; - break; - case asn1.Type.REAL: - rval += ' (Real)'; - break; - case asn1.Type.ENUMERATED: - rval += ' (Enumerated)'; - break; - case asn1.Type.EMBEDDED: - rval += ' (Embedded PDV)'; - break; - case asn1.Type.UTF8: - rval += ' (UTF8)'; - break; - case asn1.Type.ROID: - rval += ' (Relative Object Identifier)'; - break; - case asn1.Type.SEQUENCE: - rval += ' (Sequence)'; - break; - case asn1.Type.SET: - rval += ' (Set)'; - break; - case asn1.Type.PRINTABLESTRING: - rval += ' (Printable String)'; - break; - case asn1.Type.IA5String: - rval += ' (IA5String (ASCII))'; - break; - case asn1.Type.UTCTIME: - rval += ' (UTC time)'; - break; - case asn1.Type.GENERALIZEDTIME: - rval += ' (Generalized time)'; - break; - case asn1.Type.BMPSTRING: - rval += ' (BMP String)'; - break; - } - } else { - rval += obj.type; - } - rval += '\n'; - rval += indent + 'Constructed: ' + obj.constructed + '\n'; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if(obj.composed) { - var subvalues = 0; - var sub = ''; - for(var i = 0; i < obj.value.length; ++i) { - if(obj.value[i] !== undefined) { - subvalues += 1; - sub += asn1.prettyPrint(obj.value[i], level + 1, indentation); - if((i + 1) < obj.value.length) { - sub += ','; - } - } - } - rval += indent + 'Sub values: ' + subvalues + sub; - } else { - rval += indent + 'Value: '; - if(obj.type === asn1.Type.OID) { - var oid = asn1.derToOid(obj.value); - rval += oid; - if(forge.pki && forge.pki.oids) { - if(oid in forge.pki.oids) { - rval += ' (' + forge.pki.oids[oid] + ') '; - } - } - } - if(obj.type === asn1.Type.INTEGER) { - try { - rval += asn1.derToInteger(obj.value); - } catch(ex) { - rval += '0x' + forge.util.bytesToHex(obj.value); - } - } else if(obj.type === asn1.Type.BITSTRING) { - // TODO: shift bits as needed to display without padding - if(obj.value.length > 1) { - // remove unused bits field - rval += '0x' + forge.util.bytesToHex(obj.value.slice(1)); - } else { - rval += '(none)'; - } - // show unused bit count - if(obj.value.length > 0) { - var unused = obj.value.charCodeAt(0); - if(unused == 1) { - rval += ' (1 unused bit shown)'; - } else if(unused > 1) { - rval += ' (' + unused + ' unused bits shown)'; - } - } - } else if(obj.type === asn1.Type.OCTETSTRING) { - if(!_nonLatinRegex.test(obj.value)) { - rval += '(' + obj.value + ') '; - } - rval += '0x' + forge.util.bytesToHex(obj.value); - } else if(obj.type === asn1.Type.UTF8) { - try { - rval += forge.util.decodeUtf8(obj.value); - } catch(e) { - if(e.message === 'URI malformed') { - rval += - '0x' + forge.util.bytesToHex(obj.value) + ' (malformed UTF8)'; - } else { - throw e; - } - } - } else if(obj.type === asn1.Type.PRINTABLESTRING || - obj.type === asn1.Type.IA5String) { - rval += obj.value; - } else if(_nonLatinRegex.test(obj.value)) { - rval += '0x' + forge.util.bytesToHex(obj.value); - } else if(obj.value.length === 0) { - rval += '[null]'; - } else { - rval += obj.value; - } - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - return rval; -}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/***/ }), +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/***/ 60763: -/***/ ((module) => { +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Base-N/Base-X encoding/decoding functions. - * - * Original implementation from base-x: - * https://github.com/cryptocoinjs/base-x - * - * Which is MIT licensed: - * - * The MIT License (MIT) - * - * Copyright base-x contributors (c) 2016 - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. + * The UidGenerateTokenOutput model module. + * @module model/UidGenerateTokenOutput + * @version 3.6.3 */ -var api = {}; -module.exports = api; - -// baseN alphabet indexes -var _reverseAlphabets = {}; +var UidGenerateTokenOutput = /*#__PURE__*/function () { + /** + * Constructs a new UidGenerateTokenOutput. + * @alias module:model/UidGenerateTokenOutput + */ + function UidGenerateTokenOutput() { + _classCallCheck(this, UidGenerateTokenOutput); -/** - * BaseN-encodes a Uint8Array using the given alphabet. - * - * @param input the Uint8Array to encode. - * @param maxline the maximum number of encoded characters per line to use, - * defaults to none. - * - * @return the baseN-encoded output string. - */ -api.encode = function(input, alphabet, maxline) { - if(typeof alphabet !== 'string') { - throw new TypeError('"alphabet" must be a string.'); - } - if(maxline !== undefined && typeof maxline !== 'number') { - throw new TypeError('"maxline" must be a number.'); + UidGenerateTokenOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - var output = ''; - if(!(input instanceof Uint8Array)) { - // assume forge byte buffer - output = _encodeWithByteBuffer(input, alphabet); - } else { - var i = 0; - var base = alphabet.length; - var first = alphabet.charAt(0); - var digits = [0]; - for(i = 0; i < input.length; ++i) { - for(var j = 0, carry = input[i]; j < digits.length; ++j) { - carry += digits[j] << 8; - digits[j] = carry % base; - carry = (carry / base) | 0; - } + _createClass(UidGenerateTokenOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UidGenerateTokenOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UidGenerateTokenOutput} obj Optional instance to populate. + * @return {module:model/UidGenerateTokenOutput} The populated UidGenerateTokenOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UidGenerateTokenOutput(); - while(carry > 0) { - digits.push(carry % base); - carry = (carry / base) | 0; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } } - } - // deal with leading zeros - for(i = 0; input[i] === 0 && i < input.length - 1; ++i) { - output += first; - } - // convert digits to a string - for(i = digits.length - 1; i >= 0; --i) { - output += alphabet[digits[i]]; + return obj; } - } - - if(maxline) { - var regex = new RegExp('.{1,' + maxline + '}', 'g'); - output = output.match(regex).join('\r\n'); - } - - return output; -}; + }]); + return UidGenerateTokenOutput; +}(); /** - * Decodes a baseN-encoded (using the given alphabet) string to a - * Uint8Array. - * - * @param input the baseN-encoded input string. - * - * @return the Uint8Array. + * @member {String} token */ -api.decode = function(input, alphabet) { - if(typeof input !== 'string') { - throw new TypeError('"input" must be a string.'); - } - if(typeof alphabet !== 'string') { - throw new TypeError('"alphabet" must be a string.'); - } - var table = _reverseAlphabets[alphabet]; - if(!table) { - // compute reverse alphabet - table = _reverseAlphabets[alphabet] = []; - for(var i = 0; i < alphabet.length; ++i) { - table[alphabet.charCodeAt(i)] = i; - } - } - // remove whitespace characters - input = input.replace(/\s/g, ''); +UidGenerateTokenOutput.prototype['token'] = undefined; +var _default = UidGenerateTokenOutput; +exports["default"] = _default; - var base = alphabet.length; - var first = alphabet.charAt(0); - var bytes = [0]; - for(var i = 0; i < input.length; i++) { - var value = table[input.charCodeAt(i)]; - if(value === undefined) { - return; - } +/***/ }), - for(var j = 0, carry = value; j < bytes.length; ++j) { - carry += bytes[j] * base; - bytes[j] = carry & 0xff; - carry >>= 8; - } +/***/ 55603: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - while(carry > 0) { - bytes.push(carry & 0xff); - carry >>= 8; - } - } +"use strict"; - // deal with leading zeros - for(var k = 0; input[k] === first && k < input.length - 1; ++k) { - bytes.push(0); - } - if(typeof Buffer !== 'undefined') { - return Buffer.from(bytes.reverse()); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - return new Uint8Array(bytes.reverse()); -}; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -function _encodeWithByteBuffer(input, alphabet) { - var i = 0; - var base = alphabet.length; - var first = alphabet.charAt(0); - var digits = [0]; - for(i = 0; i < input.length(); ++i) { - for(var j = 0, carry = input.at(i); j < digits.length; ++j) { - carry += digits[j] << 8; - digits[j] = carry % base; - carry = (carry / base) | 0; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - while(carry > 0) { - digits.push(carry % base); - carry = (carry / base) | 0; - } - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var output = ''; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // deal with leading zeros - for(i = 0; input.at(i) === 0 && i < input.length() - 1; ++i) { - output += first; - } - // convert digits to a string - for(i = digits.length - 1; i >= 0; --i) { - output += alphabet[digits[i]]; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The UidListChildren model module. + * @module model/UidListChildren + * @version 3.6.3 + */ +var UidListChildren = /*#__PURE__*/function () { + /** + * Constructs a new UidListChildren. + * uidListChildren is a command that lists child token ids of Akeyless Universal Identity. + * @alias module:model/UidListChildren + */ + function UidListChildren() { + _classCallCheck(this, UidListChildren); + + UidListChildren.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - return output; -} + _createClass(UidListChildren, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UidListChildren from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UidListChildren} obj Optional instance to populate. + * @return {module:model/UidListChildren} The populated UidListChildren instance. + */ -/***/ }), + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UidListChildren(); -/***/ 14723: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('auth-method-name')) { + obj['auth-method-name'] = _ApiClient["default"].convertToType(data['auth-method-name'], 'String'); + } -/** - * Cipher base API. - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. - */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(97456); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -module.exports = forge.cipher = forge.cipher || {}; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -// registered algorithms -forge.cipher.algorithms = forge.cipher.algorithms || {}; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } -/** - * Creates a cipher object that can be used to encrypt data using the given - * algorithm and key. The algorithm may be provided as a string value for a - * previously registered algorithm or it may be given as a cipher algorithm - * API object. - * - * @param algorithm the algorithm to use, either a string or an algorithm API - * object. - * @param key the key to use, as a binary-encoded string of bytes or a - * byte buffer. - * - * @return the cipher. - */ -forge.cipher.createCipher = function(algorithm, key) { - var api = algorithm; - if(typeof api === 'string') { - api = forge.cipher.getAlgorithm(api); - if(api) { - api = api(); + return obj; } - } - if(!api) { - throw new Error('Unsupported algorithm: ' + algorithm); - } - - // assume block cipher - return new forge.cipher.BlockCipher({ - algorithm: api, - key: key, - decrypt: false - }); -}; + }]); + return UidListChildren; +}(); /** - * Creates a decipher object that can be used to decrypt data using the given - * algorithm and key. The algorithm may be provided as a string value for a - * previously registered algorithm or it may be given as a cipher algorithm - * API object. - * - * @param algorithm the algorithm to use, either a string or an algorithm API - * object. - * @param key the key to use, as a binary-encoded string of bytes or a - * byte buffer. - * - * @return the cipher. + * The universal identity auth method name, required only when uid-token is not provided + * @member {String} auth-method-name */ -forge.cipher.createDecipher = function(algorithm, key) { - var api = algorithm; - if(typeof api === 'string') { - api = forge.cipher.getAlgorithm(api); - if(api) { - api = api(); - } - } - if(!api) { - throw new Error('Unsupported algorithm: ' + algorithm); - } - // assume block cipher - return new forge.cipher.BlockCipher({ - algorithm: api, - key: key, - decrypt: true - }); -}; +UidListChildren.prototype['auth-method-name'] = undefined; /** - * Registers an algorithm by name. If the name was already registered, the - * algorithm API object will be overwritten. - * - * @param name the name of the algorithm. - * @param algorithm the algorithm API object. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -forge.cipher.registerAlgorithm = function(name, algorithm) { - name = name.toUpperCase(); - forge.cipher.algorithms[name] = algorithm; -}; +UidListChildren.prototype['json'] = false; /** - * Gets a registered algorithm by name. - * - * @param name the name of the algorithm. - * - * @return the algorithm, if found, null if not. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -forge.cipher.getAlgorithm = function(name) { - name = name.toUpperCase(); - if(name in forge.cipher.algorithms) { - return forge.cipher.algorithms[name]; - } - return null; -}; - -var BlockCipher = forge.cipher.BlockCipher = function(options) { - this.algorithm = options.algorithm; - this.mode = this.algorithm.mode; - this.blockSize = this.mode.blockSize; - this._finish = false; - this._input = null; - this.output = null; - this._op = options.decrypt ? this.mode.decrypt : this.mode.encrypt; - this._decrypt = options.decrypt; - this.algorithm.initialize(options); -}; +UidListChildren.prototype['token'] = undefined; /** - * Starts or restarts the encryption or decryption process, whichever - * was previously configured. - * - * For non-GCM mode, the IV may be a binary-encoded string of bytes, an array - * of bytes, a byte buffer, or an array of 32-bit integers. If the IV is in - * bytes, then it must be Nb (16) bytes in length. If the IV is given in as - * 32-bit integers, then it must be 4 integers long. - * - * Note: an IV is not required or used in ECB mode. - * - * For GCM-mode, the IV must be given as a binary-encoded string of bytes or - * a byte buffer. The number of bytes should be 12 (96 bits) as recommended - * by NIST SP-800-38D but another length may be given. - * - * @param options the options to use: - * iv the initialization vector to use as a binary-encoded string of - * bytes, null to reuse the last ciphered block from a previous - * update() (this "residue" method is for legacy support only). - * additionalData additional authentication data as a binary-encoded - * string of bytes, for 'GCM' mode, (default: none). - * tagLength desired length of authentication tag, in bits, for - * 'GCM' mode (0-128, default: 128). - * tag the authentication tag to check if decrypting, as a - * binary-encoded string of bytes. - * output the output the buffer to write to, null to create one. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -BlockCipher.prototype.start = function(options) { - options = options || {}; - var opts = {}; - for(var key in options) { - opts[key] = options[key]; - } - opts.decrypt = this._decrypt; - this._finish = false; - this._input = forge.util.createBuffer(); - this.output = options.output || forge.util.createBuffer(); - this.mode.start(opts); -}; -/** - * Updates the next block according to the cipher mode. - * - * @param input the buffer to read from. - */ -BlockCipher.prototype.update = function(input) { - if(input) { - // input given, so empty it into the input buffer - this._input.putBuffer(input); - } +UidListChildren.prototype['uid-token'] = undefined; +var _default = UidListChildren; +exports["default"] = _default; - // do cipher operation until it needs more input and not finished - while(!this._op.call(this.mode, this._input, this.output, this._finish) && - !this._finish) {} +/***/ }), - // free consumed memory from input buffer - this._input.compact(); -}; +/***/ 60409: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** - * Finishes encrypting or decrypting. - * - * @param pad a padding function to use in CBC mode, null for default, - * signature(blockSize, buffer, decrypt). - * - * @return true if successful, false on error. - */ -BlockCipher.prototype.finish = function(pad) { - // backwards-compatibility w/deprecated padding API - // Note: will overwrite padding functions even after another start() call - if(pad && (this.mode.name === 'ECB' || this.mode.name === 'CBC')) { - this.mode.pad = function(input) { - return pad(this.blockSize, input, false); - }; - this.mode.unpad = function(output) { - return pad(this.blockSize, output, true); - }; - } +"use strict"; - // build options for padding and afterFinish functions - var options = {}; - options.decrypt = this._decrypt; - // get # of bytes that won't fill a block - options.overflow = this._input.length() % this.blockSize; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if(!this._decrypt && this.mode.pad) { - if(!this.mode.pad(this._input, options)) { - return false; - } - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // do final update - this._finish = true; - this.update(); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if(this._decrypt && this.mode.unpad) { - if(!this.mode.unpad(this.output, options)) { - return false; - } - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if(this.mode.afterFinish) { - if(!this.mode.afterFinish(this.output, options)) { - return false; - } - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - return true; -}; +/** + * The UidRevokeToken model module. + * @module model/UidRevokeToken + * @version 3.6.3 + */ +var UidRevokeToken = /*#__PURE__*/function () { + /** + * Constructs a new UidRevokeToken. + * @alias module:model/UidRevokeToken + * @param revokeToken {String} the universal identity token/token-id to revoke + * @param revokeType {String} revokeSelf/revokeAll (delete only this token/this token and his children) + */ + function UidRevokeToken(revokeToken, revokeType) { + _classCallCheck(this, UidRevokeToken); + UidRevokeToken.initialize(this, revokeToken, revokeType); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), -/***/ 61203: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + _createClass(UidRevokeToken, null, [{ + key: "initialize", + value: function initialize(obj, revokeToken, revokeType) { + obj['revoke-token'] = revokeToken; + obj['revoke-type'] = revokeType; + } + /** + * Constructs a UidRevokeToken from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UidRevokeToken} obj Optional instance to populate. + * @return {module:model/UidRevokeToken} The populated UidRevokeToken instance. + */ -/** - * Supported cipher modes. - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. - */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(97456); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UidRevokeToken(); -forge.cipher = forge.cipher || {}; + if (data.hasOwnProperty('auth-method-name')) { + obj['auth-method-name'] = _ApiClient["default"].convertToType(data['auth-method-name'], 'String'); + } -// supported cipher modes -var modes = module.exports = forge.cipher.modes = forge.cipher.modes || {}; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/** Electronic codebook (ECB) (Don't use this; it's not secure) **/ + if (data.hasOwnProperty('revoke-token')) { + obj['revoke-token'] = _ApiClient["default"].convertToType(data['revoke-token'], 'String'); + } -modes.ecb = function(options) { - options = options || {}; - this.name = 'ECB'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = new Array(this._ints); - this._outBlock = new Array(this._ints); -}; + if (data.hasOwnProperty('revoke-type')) { + obj['revoke-type'] = _ApiClient["default"].convertToType(data['revoke-type'], 'String'); + } -modes.ecb.prototype.start = function(options) {}; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -modes.ecb.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - if(input.length() < this.blockSize && !(finish && input.length() > 0)) { - return true; - } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - // get next block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = input.getInt32(); - } + return obj; + } + }]); - // encrypt block - this.cipher.encrypt(this._inBlock, this._outBlock); + return UidRevokeToken; +}(); +/** + * The universal identity auth method name + * @member {String} auth-method-name + */ - // write output - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._outBlock[i]); - } -}; -modes.ecb.prototype.decrypt = function(input, output, finish) { - // not enough input to decrypt - if(input.length() < this.blockSize && !(finish && input.length() > 0)) { - return true; - } +UidRevokeToken.prototype['auth-method-name'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - // get next block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = input.getInt32(); - } +UidRevokeToken.prototype['json'] = false; +/** + * the universal identity token/token-id to revoke + * @member {String} revoke-token + */ - // decrypt block - this.cipher.decrypt(this._inBlock, this._outBlock); +UidRevokeToken.prototype['revoke-token'] = undefined; +/** + * revokeSelf/revokeAll (delete only this token/this token and his children) + * @member {String} revoke-type + */ - // write output - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._outBlock[i]); - } -}; +UidRevokeToken.prototype['revoke-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -modes.ecb.prototype.pad = function(input, options) { - // add PKCS#7 padding to block (each pad byte is the - // value of the number of pad bytes) - var padding = (input.length() === this.blockSize ? - this.blockSize : (this.blockSize - input.length())); - input.fillWithByte(padding, padding); - return true; -}; +UidRevokeToken.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -modes.ecb.prototype.unpad = function(output, options) { - // check for error: input data not a multiple of blockSize - if(options.overflow > 0) { - return false; - } +UidRevokeToken.prototype['uid-token'] = undefined; +var _default = UidRevokeToken; +exports["default"] = _default; - // ensure padding byte count is valid - var len = output.length(); - var count = output.at(len - 1); - if(count > (this.blockSize << 2)) { - return false; - } +/***/ }), - // trim off padding bytes - output.truncate(count); - return true; -}; +/***/ 36310: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** Cipher-block Chaining (CBC) **/ +"use strict"; -modes.cbc = function(options) { - options = options || {}; - this.name = 'CBC'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = new Array(this._ints); - this._outBlock = new Array(this._ints); -}; - -modes.cbc.prototype.start = function(options) { - // Note: legacy support for using IV residue (has security flaws) - // if IV is null, reuse block from previous processing - if(options.iv === null) { - // must have a previous block - if(!this._prev) { - throw new Error('Invalid IV parameter.'); - } - this._iv = this._prev.slice(0); - } else if(!('iv' in options)) { - throw new Error('Invalid IV parameter.'); - } else { - // save IV as "previous" block - this._iv = transformIV(options.iv, this.blockSize); - this._prev = this._iv.slice(0); - } -}; -modes.cbc.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - if(input.length() < this.blockSize && !(finish && input.length() > 0)) { - return true; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // get next block - // CBC XOR's IV (or previous block) with plaintext - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = this._prev[i] ^ input.getInt32(); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // encrypt block - this.cipher.encrypt(this._inBlock, this._outBlock); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // write output, save previous block - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._outBlock[i]); - } - this._prev = this._outBlock; -}; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -modes.cbc.prototype.decrypt = function(input, output, finish) { - // not enough input to decrypt - if(input.length() < this.blockSize && !(finish && input.length() > 0)) { - return true; - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // get next block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = input.getInt32(); - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // decrypt block - this.cipher.decrypt(this._inBlock, this._outBlock); +/** + * The UidRotateToken model module. + * @module model/UidRotateToken + * @version 3.6.3 + */ +var UidRotateToken = /*#__PURE__*/function () { + /** + * Constructs a new UidRotateToken. + * uidRotateToken is a command that rotates an Akeyless Universal Identity token. + * @alias module:model/UidRotateToken + */ + function UidRotateToken() { + _classCallCheck(this, UidRotateToken); - // write output, save previous ciphered block - // CBC XOR's IV (or previous block) with ciphertext - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._prev[i] ^ this._outBlock[i]); + UidRotateToken.initialize(this); } - this._prev = this._inBlock.slice(0); -}; + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -modes.cbc.prototype.pad = function(input, options) { - // add PKCS#7 padding to block (each pad byte is the - // value of the number of pad bytes) - var padding = (input.length() === this.blockSize ? - this.blockSize : (this.blockSize - input.length())); - input.fillWithByte(padding, padding); - return true; -}; -modes.cbc.prototype.unpad = function(output, options) { - // check for error: input data not a multiple of blockSize - if(options.overflow > 0) { - return false; - } + _createClass(UidRotateToken, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UidRotateToken from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UidRotateToken} obj Optional instance to populate. + * @return {module:model/UidRotateToken} The populated UidRotateToken instance. + */ - // ensure padding byte count is valid - var len = output.length(); - var count = output.at(len - 1); - if(count > (this.blockSize << 2)) { - return false; - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UidRotateToken(); - // trim off padding bytes - output.truncate(count); - return true; -}; + if (data.hasOwnProperty('fork')) { + obj['fork'] = _ApiClient["default"].convertToType(data['fork'], 'Boolean'); + } -/** Cipher feedback (CFB) **/ + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -modes.cfb = function(options) { - options = options || {}; - this.name = 'CFB'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = null; - this._outBlock = new Array(this._ints); - this._partialBlock = new Array(this._ints); - this._partialOutput = forge.util.createBuffer(); - this._partialBytes = 0; -}; - -modes.cfb.prototype.start = function(options) { - if(!('iv' in options)) { - throw new Error('Invalid IV parameter.'); - } - // use IV as first input - this._iv = transformIV(options.iv, this.blockSize); - this._inBlock = this._iv.slice(0); - this._partialBytes = 0; -}; - -modes.cfb.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - var inputLength = input.length(); - if(inputLength === 0) { - return true; - } + if (data.hasOwnProperty('send-manual-ack-token')) { + obj['send-manual-ack-token'] = _ApiClient["default"].convertToType(data['send-manual-ack-token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } - // encrypt block - this.cipher.encrypt(this._inBlock, this._outBlock); + if (data.hasOwnProperty('with-manual-ack')) { + obj['with-manual-ack'] = _ApiClient["default"].convertToType(data['with-manual-ack'], 'Boolean'); + } + } - // handle full block - if(this._partialBytes === 0 && inputLength >= this.blockSize) { - // XOR input with output, write input as output - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = input.getInt32() ^ this._outBlock[i]; - output.putInt32(this._inBlock[i]); + return obj; } - return; - } + }]); - // handle partial block - var partialBytes = (this.blockSize - inputLength) % this.blockSize; - if(partialBytes > 0) { - partialBytes = this.blockSize - partialBytes; - } + return UidRotateToken; +}(); +/** + * Create a new child token with default parameters + * @member {Boolean} fork + */ - // XOR input with output, write input as partial output - this._partialOutput.clear(); - for(var i = 0; i < this._ints; ++i) { - this._partialBlock[i] = input.getInt32() ^ this._outBlock[i]; - this._partialOutput.putInt32(this._partialBlock[i]); - } - if(partialBytes > 0) { - // block still incomplete, restore input buffer - input.read -= this.blockSize; - } else { - // block complete, update input block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = this._partialBlock[i]; - } - } +UidRotateToken.prototype['fork'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); - } +UidRotateToken.prototype['json'] = false; +/** + * The new rotated token to send manual ack for (with uid-token=the-orig-token) + * @member {String} send-manual-ack-token + */ - if(partialBytes > 0 && !finish) { - output.putBytes(this._partialOutput.getBytes( - partialBytes - this._partialBytes)); - this._partialBytes = partialBytes; - return true; - } +UidRotateToken.prototype['send-manual-ack-token'] = undefined; +/** + * The Universal identity token + * @member {String} uid-token + */ - output.putBytes(this._partialOutput.getBytes( - inputLength - this._partialBytes)); - this._partialBytes = 0; -}; +UidRotateToken.prototype['uid-token'] = undefined; +/** + * Disable automatic ack + * @member {Boolean} with-manual-ack + */ -modes.cfb.prototype.decrypt = function(input, output, finish) { - // not enough input to decrypt - var inputLength = input.length(); - if(inputLength === 0) { - return true; - } +UidRotateToken.prototype['with-manual-ack'] = undefined; +var _default = UidRotateToken; +exports["default"] = _default; - // encrypt block (CFB always uses encryption mode) - this.cipher.encrypt(this._inBlock, this._outBlock); +/***/ }), - // handle full block - if(this._partialBytes === 0 && inputLength >= this.blockSize) { - // XOR input with output, write input as output - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = input.getInt32(); - output.putInt32(this._inBlock[i] ^ this._outBlock[i]); - } - return; - } +/***/ 34899: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // handle partial block - var partialBytes = (this.blockSize - inputLength) % this.blockSize; - if(partialBytes > 0) { - partialBytes = this.blockSize - partialBytes; - } +"use strict"; - // XOR input with output, write input as partial output - this._partialOutput.clear(); - for(var i = 0; i < this._ints; ++i) { - this._partialBlock[i] = input.getInt32(); - this._partialOutput.putInt32(this._partialBlock[i] ^ this._outBlock[i]); - } - if(partialBytes > 0) { - // block still incomplete, restore input buffer - input.read -= this.blockSize; - } else { - // block complete, update input block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = this._partialBlock[i]; - } - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if(partialBytes > 0 && !finish) { - output.putBytes(this._partialOutput.getBytes( - partialBytes - this._partialBytes)); - this._partialBytes = partialBytes; - return true; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - output.putBytes(this._partialOutput.getBytes( - inputLength - this._partialBytes)); - this._partialBytes = 0; -}; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/** Output feedback (OFB) **/ +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -modes.ofb = function(options) { - options = options || {}; - this.name = 'OFB'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = null; - this._outBlock = new Array(this._ints); - this._partialOutput = forge.util.createBuffer(); - this._partialBytes = 0; -}; - -modes.ofb.prototype.start = function(options) { - if(!('iv' in options)) { - throw new Error('Invalid IV parameter.'); - } - // use IV as first input - this._iv = transformIV(options.iv, this.blockSize); - this._inBlock = this._iv.slice(0); - this._partialBytes = 0; -}; - -modes.ofb.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - var inputLength = input.length(); - if(input.length() === 0) { - return true; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // encrypt block (OFB always uses encryption mode) - this.cipher.encrypt(this._inBlock, this._outBlock); +/** + * The UidRotateTokenOutput model module. + * @module model/UidRotateTokenOutput + * @version 3.6.3 + */ +var UidRotateTokenOutput = /*#__PURE__*/function () { + /** + * Constructs a new UidRotateTokenOutput. + * @alias module:model/UidRotateTokenOutput + */ + function UidRotateTokenOutput() { + _classCallCheck(this, UidRotateTokenOutput); - // handle full block - if(this._partialBytes === 0 && inputLength >= this.blockSize) { - // XOR input with output and update next input - for(var i = 0; i < this._ints; ++i) { - output.putInt32(input.getInt32() ^ this._outBlock[i]); - this._inBlock[i] = this._outBlock[i]; - } - return; + UidRotateTokenOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // handle partial block - var partialBytes = (this.blockSize - inputLength) % this.blockSize; - if(partialBytes > 0) { - partialBytes = this.blockSize - partialBytes; - } - // XOR input with output - this._partialOutput.clear(); - for(var i = 0; i < this._ints; ++i) { - this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); - } + _createClass(UidRotateTokenOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UidRotateTokenOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UidRotateTokenOutput} obj Optional instance to populate. + * @return {module:model/UidRotateTokenOutput} The populated UidRotateTokenOutput instance. + */ - if(partialBytes > 0) { - // block still incomplete, restore input buffer - input.read -= this.blockSize; - } else { - // block complete, update input block - for(var i = 0; i < this._ints; ++i) { - this._inBlock[i] = this._outBlock[i]; - } - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UidRotateTokenOutput(); - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + } - if(partialBytes > 0 && !finish) { - output.putBytes(this._partialOutput.getBytes( - partialBytes - this._partialBytes)); - this._partialBytes = partialBytes; - return true; - } + return obj; + } + }]); - output.putBytes(this._partialOutput.getBytes( - inputLength - this._partialBytes)); - this._partialBytes = 0; -}; + return UidRotateTokenOutput; +}(); +/** + * @member {String} token + */ -modes.ofb.prototype.decrypt = modes.ofb.prototype.encrypt; -/** Counter (CTR) **/ +UidRotateTokenOutput.prototype['token'] = undefined; +var _default = UidRotateTokenOutput; +exports["default"] = _default; -modes.ctr = function(options) { - options = options || {}; - this.name = 'CTR'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = null; - this._outBlock = new Array(this._ints); - this._partialOutput = forge.util.createBuffer(); - this._partialBytes = 0; -}; - -modes.ctr.prototype.start = function(options) { - if(!('iv' in options)) { - throw new Error('Invalid IV parameter.'); - } - // use IV as first input - this._iv = transformIV(options.iv, this.blockSize); - this._inBlock = this._iv.slice(0); - this._partialBytes = 0; -}; - -modes.ctr.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - var inputLength = input.length(); - if(inputLength === 0) { - return true; - } +/***/ }), - // encrypt block (CTR always uses encryption mode) - this.cipher.encrypt(this._inBlock, this._outBlock); +/***/ 52179: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // handle full block - if(this._partialBytes === 0 && inputLength >= this.blockSize) { - // XOR input with output - for(var i = 0; i < this._ints; ++i) { - output.putInt32(input.getInt32() ^ this._outBlock[i]); - } - } else { - // handle partial block - var partialBytes = (this.blockSize - inputLength) % this.blockSize; - if(partialBytes > 0) { - partialBytes = this.blockSize - partialBytes; - } +"use strict"; - // XOR input with output - this._partialOutput.clear(); - for(var i = 0; i < this._ints; ++i) { - this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); - } - if(partialBytes > 0) { - // block still incomplete, restore input buffer - input.read -= this.blockSize; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if(partialBytes > 0 && !finish) { - output.putBytes(this._partialOutput.getBytes( - partialBytes - this._partialBytes)); - this._partialBytes = partialBytes; - return true; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - output.putBytes(this._partialOutput.getBytes( - inputLength - this._partialBytes)); - this._partialBytes = 0; - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // block complete, increment counter (input block) - inc32(this._inBlock); -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -modes.ctr.prototype.decrypt = modes.ctr.prototype.encrypt; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -/** Galois/Counter Mode (GCM) **/ +/** + * The Unconfigure model module. + * @module model/Unconfigure + * @version 3.6.3 + */ +var Unconfigure = /*#__PURE__*/function () { + /** + * Constructs a new Unconfigure. + * @alias module:model/Unconfigure + */ + function Unconfigure() { + _classCallCheck(this, Unconfigure); -modes.gcm = function(options) { - options = options || {}; - this.name = 'GCM'; - this.cipher = options.cipher; - this.blockSize = options.blockSize || 16; - this._ints = this.blockSize / 4; - this._inBlock = new Array(this._ints); - this._outBlock = new Array(this._ints); - this._partialOutput = forge.util.createBuffer(); - this._partialBytes = 0; - - // R is actually this value concatenated with 120 more zero bits, but - // we only XOR against R so the other zeros have no effect -- we just - // apply this value to the first integer in a block - this._R = 0xE1000000; -}; - -modes.gcm.prototype.start = function(options) { - if(!('iv' in options)) { - throw new Error('Invalid IV parameter.'); - } - // ensure IV is a byte buffer - var iv = forge.util.createBuffer(options.iv); - - // no ciphered data processed yet - this._cipherLength = 0; - - // default additional data is none - var additionalData; - if('additionalData' in options) { - additionalData = forge.util.createBuffer(options.additionalData); - } else { - additionalData = forge.util.createBuffer(); + Unconfigure.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // default tag length is 128 bits - if('tagLength' in options) { - this._tagLength = options.tagLength; - } else { - this._tagLength = 128; - } - // if tag is given, ensure tag matches tag length - this._tag = null; - if(options.decrypt) { - // save tag to check later - this._tag = forge.util.createBuffer(options.tag).getBytes(); - if(this._tag.length !== (this._tagLength / 8)) { - throw new Error('Authentication tag does not match tag length.'); - } - } + _createClass(Unconfigure, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Unconfigure from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Unconfigure} obj Optional instance to populate. + * @return {module:model/Unconfigure} The populated Unconfigure instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Unconfigure(); - // create tmp storage for hash calculation - this._hashBlock = new Array(this._ints); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - // no tag generated yet - this.tag = null; + if (data.hasOwnProperty('profile')) { + obj['profile'] = _ApiClient["default"].convertToType(data['profile'], 'String'); + } + } - // generate hash subkey - // (apply block cipher to "zero" block) - this._hashSubkey = new Array(this._ints); - this.cipher.encrypt([0, 0, 0, 0], this._hashSubkey); + return obj; + } + }]); - // generate table M - // use 4-bit tables (32 component decomposition of a 16 byte value) - // 8-bit tables take more space and are known to have security - // vulnerabilities (in native implementations) - this.componentBits = 4; - this._m = this.generateHashTable(this._hashSubkey, this.componentBits); + return Unconfigure; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - // Note: support IV length different from 96 bits? (only supporting - // 96 bits is recommended by NIST SP-800-38D) - // generate J_0 - var ivLength = iv.length(); - if(ivLength === 12) { - // 96-bit IV - this._j0 = [iv.getInt32(), iv.getInt32(), iv.getInt32(), 1]; - } else { - // IV is NOT 96-bits - this._j0 = [0, 0, 0, 0]; - while(iv.length() > 0) { - this._j0 = this.ghash( - this._hashSubkey, this._j0, - [iv.getInt32(), iv.getInt32(), iv.getInt32(), iv.getInt32()]); - } - this._j0 = this.ghash( - this._hashSubkey, this._j0, [0, 0].concat(from64To32(ivLength * 8))); - } - - // generate ICB (initial counter block) - this._inBlock = this._j0.slice(0); - inc32(this._inBlock); - this._partialBytes = 0; - - // consume authentication data - additionalData = forge.util.createBuffer(additionalData); - // save additional data length as a BE 64-bit number - this._aDataLength = from64To32(additionalData.length() * 8); - // pad additional data to 128 bit (16 byte) block size - var overflow = additionalData.length() % this.blockSize; - if(overflow) { - additionalData.fillWithByte(0, this.blockSize - overflow); - } - this._s = [0, 0, 0, 0]; - while(additionalData.length() > 0) { - this._s = this.ghash(this._hashSubkey, this._s, [ - additionalData.getInt32(), - additionalData.getInt32(), - additionalData.getInt32(), - additionalData.getInt32() - ]); - } -}; -modes.gcm.prototype.encrypt = function(input, output, finish) { - // not enough input to encrypt - var inputLength = input.length(); - if(inputLength === 0) { - return true; - } +Unconfigure.prototype['json'] = false; +/** + * The profile name to be removed + * @member {String} profile + * @default 'default' + */ - // encrypt block - this.cipher.encrypt(this._inBlock, this._outBlock); +Unconfigure.prototype['profile'] = 'default'; +var _default = Unconfigure; +exports["default"] = _default; - // handle full block - if(this._partialBytes === 0 && inputLength >= this.blockSize) { - // XOR input with output - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._outBlock[i] ^= input.getInt32()); - } - this._cipherLength += this.blockSize; - } else { - // handle partial block - var partialBytes = (this.blockSize - inputLength) % this.blockSize; - if(partialBytes > 0) { - partialBytes = this.blockSize - partialBytes; - } - - // XOR input with output - this._partialOutput.clear(); - for(var i = 0; i < this._ints; ++i) { - this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); - } - - if(partialBytes <= 0 || finish) { - // handle overflow prior to hashing - if(finish) { - // get block overflow - var overflow = inputLength % this.blockSize; - this._cipherLength += overflow; - // truncate for hash function - this._partialOutput.truncate(this.blockSize - overflow); - } else { - this._cipherLength += this.blockSize; - } +/***/ }), - // get output block for hashing - for(var i = 0; i < this._ints; ++i) { - this._outBlock[i] = this._partialOutput.getInt32(); - } - this._partialOutput.read -= this.blockSize; - } +/***/ 66824: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // skip any previous partial bytes - if(this._partialBytes > 0) { - this._partialOutput.getBytes(this._partialBytes); - } +"use strict"; - if(partialBytes > 0 && !finish) { - // block still incomplete, restore input buffer, get partial output, - // and return early - input.read -= this.blockSize; - output.putBytes(this._partialOutput.getBytes( - partialBytes - this._partialBytes)); - this._partialBytes = partialBytes; - return true; - } - output.putBytes(this._partialOutput.getBytes( - inputLength - this._partialBytes)); - this._partialBytes = 0; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // update hash block S - this._s = this.ghash(this._hashSubkey, this._s, this._outBlock); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // increment counter (input block) - inc32(this._inBlock); -}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -modes.gcm.prototype.decrypt = function(input, output, finish) { - // not enough input to decrypt - var inputLength = input.length(); - if(inputLength < this.blockSize && !(finish && inputLength > 0)) { - return true; - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // encrypt block (GCM always uses encryption mode) - this.cipher.encrypt(this._inBlock, this._outBlock); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // increment counter (input block) - inc32(this._inBlock); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // update hash block S - this._hashBlock[0] = input.getInt32(); - this._hashBlock[1] = input.getInt32(); - this._hashBlock[2] = input.getInt32(); - this._hashBlock[3] = input.getInt32(); - this._s = this.ghash(this._hashSubkey, this._s, this._hashBlock); +/** + * The UniversalIdentityAccessRules model module. + * @module model/UniversalIdentityAccessRules + * @version 3.6.3 + */ +var UniversalIdentityAccessRules = /*#__PURE__*/function () { + /** + * Constructs a new UniversalIdentityAccessRules. + * @alias module:model/UniversalIdentityAccessRules + */ + function UniversalIdentityAccessRules() { + _classCallCheck(this, UniversalIdentityAccessRules); - // XOR hash input with output - for(var i = 0; i < this._ints; ++i) { - output.putInt32(this._outBlock[i] ^ this._hashBlock[i]); + UniversalIdentityAccessRules.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // increment cipher data length - if(inputLength < this.blockSize) { - this._cipherLength += inputLength % this.blockSize; - } else { - this._cipherLength += this.blockSize; - } -}; -modes.gcm.prototype.afterFinish = function(output, options) { - var rval = true; + _createClass(UniversalIdentityAccessRules, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UniversalIdentityAccessRules from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UniversalIdentityAccessRules} obj Optional instance to populate. + * @return {module:model/UniversalIdentityAccessRules} The populated UniversalIdentityAccessRules instance. + */ - // handle overflow - if(options.decrypt && options.overflow) { - output.truncate(this.blockSize - options.overflow); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UniversalIdentityAccessRules(); - // handle authentication tag - this.tag = forge.util.createBuffer(); + if (data.hasOwnProperty('deny_inheritance')) { + obj['deny_inheritance'] = _ApiClient["default"].convertToType(data['deny_inheritance'], 'Boolean'); + } - // concatenate additional data length with cipher length - var lengths = this._aDataLength.concat(from64To32(this._cipherLength * 8)); + if (data.hasOwnProperty('deny_rotate')) { + obj['deny_rotate'] = _ApiClient["default"].convertToType(data['deny_rotate'], 'Boolean'); + } - // include lengths in hash - this._s = this.ghash(this._hashSubkey, this._s, lengths); + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + } - // do GCTR(J_0, S) - var tag = []; - this.cipher.encrypt(this._j0, tag); - for(var i = 0; i < this._ints; ++i) { - this.tag.putInt32(this._s[i] ^ tag[i]); - } + return obj; + } + }]); - // trim tag to length - this.tag.truncate(this.tag.length() % (this._tagLength / 8)); + return UniversalIdentityAccessRules; +}(); +/** + * @member {Boolean} deny_inheritance + */ - // check authentication tag - if(options.decrypt && this.tag.bytes() !== this._tag) { - rval = false; - } - return rval; -}; +UniversalIdentityAccessRules.prototype['deny_inheritance'] = undefined; +/** + * @member {Boolean} deny_rotate + */ +UniversalIdentityAccessRules.prototype['deny_rotate'] = undefined; /** - * See NIST SP-800-38D 6.3 (Algorithm 1). This function performs Galois - * field multiplication. The field, GF(2^128), is defined by the polynomial: - * - * x^128 + x^7 + x^2 + x + 1 - * - * Which is represented in little-endian binary form as: 11100001 (0xe1). When - * the value of a coefficient is 1, a bit is set. The value R, is the - * concatenation of this value and 120 zero bits, yielding a 128-bit value - * which matches the block size. - * - * This function will multiply two elements (vectors of bytes), X and Y, in - * the field GF(2^128). The result is initialized to zero. For each bit of - * X (out of 128), x_i, if x_i is set, then the result is multiplied (XOR'd) - * by the current value of Y. For each bit, the value of Y will be raised by - * a power of x (multiplied by the polynomial x). This can be achieved by - * shifting Y once to the right. If the current value of Y, prior to being - * multiplied by x, has 0 as its LSB, then it is a 127th degree polynomial. - * Otherwise, we must divide by R after shifting to find the remainder. - * - * @param x the first block to multiply by the second. - * @param y the second block to multiply by the first. - * - * @return the block result of the multiplication. + * @member {Number} ttl */ -modes.gcm.prototype.multiply = function(x, y) { - var z_i = [0, 0, 0, 0]; - var v_i = y.slice(0); - // calculate Z_128 (block has 128 bits) - for(var i = 0; i < 128; ++i) { - // if x_i is 0, Z_{i+1} = Z_i (unchanged) - // else Z_{i+1} = Z_i ^ V_i - // get x_i by finding 32-bit int position, then left shift 1 by remainder - var x_i = x[(i / 32) | 0] & (1 << (31 - i % 32)); - if(x_i) { - z_i[0] ^= v_i[0]; - z_i[1] ^= v_i[1]; - z_i[2] ^= v_i[2]; - z_i[3] ^= v_i[3]; - } +UniversalIdentityAccessRules.prototype['ttl'] = undefined; +var _default = UniversalIdentityAccessRules; +exports["default"] = _default; - // if LSB(V_i) is 1, V_i = V_i >> 1 - // else V_i = (V_i >> 1) ^ R - this.pow(v_i, v_i); - } +/***/ }), - return z_i; -}; +/***/ 81607: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -modes.gcm.prototype.pow = function(x, out) { - // if LSB(x) is 1, x = x >>> 1 - // else x = (x >>> 1) ^ R - var lsb = x[3] & 1; +"use strict"; - // always do x >>> 1: - // starting with the rightmost integer, shift each integer to the right - // one bit, pulling in the bit from the integer to the left as its top - // most bit (do this for the last 3 integers) - for(var i = 3; i > 0; --i) { - out[i] = (x[i] >>> 1) | ((x[i - 1] & 1) << 31); - } - // shift the first integer normally - out[0] = x[0] >>> 1; - // if lsb was not set, then polynomial had a degree of 127 and doesn't - // need to divided; otherwise, XOR with R to find the remainder; we only - // need to XOR the first integer since R technically ends w/120 zero bits - if(lsb) { - out[0] ^= this._R; - } -}; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -modes.gcm.prototype.tableMultiply = function(x) { - // assumes 4-bit tables are used - var z = [0, 0, 0, 0]; - for(var i = 0; i < 32; ++i) { - var idx = (i / 8) | 0; - var x_i = (x[idx] >>> ((7 - (i % 8)) * 4)) & 0xF; - var ah = this._m[i][x_i]; - z[0] ^= ah[0]; - z[1] ^= ah[1]; - z[2] ^= ah[2]; - z[3] ^= ah[3]; - } - return z; -}; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/** - * A continuing version of the GHASH algorithm that operates on a single - * block. The hash block, last hash value (Ym) and the new block to hash - * are given. - * - * @param h the hash block. - * @param y the previous value for Ym, use [0, 0, 0, 0] for a new hash. - * @param x the block to hash. - * - * @return the hashed value (Ym). - */ -modes.gcm.prototype.ghash = function(h, y, x) { - y[0] ^= x[0]; - y[1] ^= x[1]; - y[2] ^= x[2]; - y[3] ^= x[3]; - return this.tableMultiply(y); - //return this.multiply(y, h); -}; - -/** - * Precomputes a table for multiplying against the hash subkey. This - * mechanism provides a substantial speed increase over multiplication - * performed without a table. The table-based multiplication this table is - * for solves X * H by multiplying each component of X by H and then - * composing the results together using XOR. - * - * This function can be used to generate tables with different bit sizes - * for the components, however, this implementation assumes there are - * 32 components of X (which is a 16 byte vector), therefore each component - * takes 4-bits (so the table is constructed with bits=4). - * - * @param h the hash subkey. - * @param bits the bit size for a component. - */ -modes.gcm.prototype.generateHashTable = function(h, bits) { - // TODO: There are further optimizations that would use only the - // first table M_0 (or some variant) along with a remainder table; - // this can be explored in the future - var multiplier = 8 / bits; - var perInt = 4 * multiplier; - var size = 16 * multiplier; - var m = new Array(size); - for(var i = 0; i < size; ++i) { - var tmp = [0, 0, 0, 0]; - var idx = (i / perInt) | 0; - var shft = ((perInt - 1 - (i % perInt)) * bits); - tmp[idx] = (1 << (bits - 1)) << shft; - m[i] = this.generateSubHashTable(this.multiply(tmp, h), bits); - } - return m; -}; - -/** - * Generates a table for multiplying against the hash subkey for one - * particular component (out of all possible component values). - * - * @param mid the pre-multiplied value for the middle key of the table. - * @param bits the bit size for a component. - */ -modes.gcm.prototype.generateSubHashTable = function(mid, bits) { - // compute the table quickly by minimizing the number of - // POW operations -- they only need to be performed for powers of 2, - // all other entries can be composed from those powers using XOR - var size = 1 << bits; - var half = size >>> 1; - var m = new Array(size); - m[half] = mid.slice(0); - var i = half >>> 1; - while(i > 0) { - // raise m0[2 * i] and store in m0[i] - this.pow(m[2 * i], m[i] = []); - i >>= 1; - } - i = 2; - while(i < half) { - for(var j = 1; j < i; ++j) { - var m_i = m[i]; - var m_j = m[j]; - m[i + j] = [ - m_i[0] ^ m_j[0], - m_i[1] ^ m_j[1], - m_i[2] ^ m_j[2], - m_i[3] ^ m_j[3] - ]; - } - i *= 2; - } - m[0] = [0, 0, 0, 0]; - /* Note: We could avoid storing these by doing composition during multiply - calculate top half using composition by speed is preferred. */ - for(i = half + 1; i < size; ++i) { - var c = m[i ^ half]; - m[i] = [mid[0] ^ c[0], mid[1] ^ c[1], mid[2] ^ c[2], mid[3] ^ c[3]]; - } - return m; -}; +var _UIDTokenDetails = _interopRequireDefault(__nccwpck_require__(33593)); -/** Utility functions */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function transformIV(iv, blockSize) { - if(typeof iv === 'string') { - // convert iv string into byte buffer - iv = forge.util.createBuffer(iv); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if(forge.util.isArray(iv) && iv.length > 4) { - // convert iv byte array into byte buffer - var tmp = iv; - iv = forge.util.createBuffer(); - for(var i = 0; i < tmp.length; ++i) { - iv.putByte(tmp[i]); - } - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if(iv.length() < blockSize) { - throw new Error( - 'Invalid IV length; got ' + iv.length() + - ' bytes and expected ' + blockSize + ' bytes.'); - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if(!forge.util.isArray(iv)) { - // convert iv byte buffer into 32-bit integer array - var ints = []; - var blocks = blockSize / 4; - for(var i = 0; i < blocks; ++i) { - ints.push(iv.getInt32()); - } - iv = ints; +/** + * The UniversalIdentityDetails model module. + * @module model/UniversalIdentityDetails + * @version 3.6.3 + */ +var UniversalIdentityDetails = /*#__PURE__*/function () { + /** + * Constructs a new UniversalIdentityDetails. + * @alias module:model/UniversalIdentityDetails + */ + function UniversalIdentityDetails() { + _classCallCheck(this, UniversalIdentityDetails); + + UniversalIdentityDetails.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - return iv; -} -function inc32(block) { - // increment last 32 bits of block only - block[block.length - 1] = (block[block.length - 1] + 1) & 0xFFFFFFFF; -} + _createClass(UniversalIdentityDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UniversalIdentityDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UniversalIdentityDetails} obj Optional instance to populate. + * @return {module:model/UniversalIdentityDetails} The populated UniversalIdentityDetails instance. + */ -function from64To32(num) { - // convert 64-bit number to two BE Int32s - return [(num / 0x100000000) | 0, num & 0xFFFFFFFF]; -} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UniversalIdentityDetails(); + + if (data.hasOwnProperty('max_depth')) { + obj['max_depth'] = _ApiClient["default"].convertToType(data['max_depth'], 'Number'); + } + if (data.hasOwnProperty('number_of_tokens')) { + obj['number_of_tokens'] = _ApiClient["default"].convertToType(data['number_of_tokens'], 'Number'); + } -/***/ }), + if (data.hasOwnProperty('root')) { + obj['root'] = _UIDTokenDetails["default"].constructFromObject(data['root']); + } + } -/***/ 93537: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + return obj; + } + }]); + return UniversalIdentityDetails; +}(); /** - * DES (Data Encryption Standard) implementation. - * - * This implementation supports DES as well as 3DES-EDE in ECB and CBC mode. - * It is based on the BSD-licensed implementation by Paul Tero: - * - * Paul Tero, July 2001 - * http://www.tero.co.uk/des/ - * - * Optimised for performance with large blocks by - * Michael Hayworth, November 2001 - * http://www.netdealing.com - * - * THIS SOFTWARE IS PROVIDED "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * @author Stefan Siegl - * @author Dave Longley - * - * Copyright (c) 2012 Stefan Siegl - * Copyright (c) 2012-2014 Digital Bazaar, Inc. + * @member {Number} max_depth */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(14723); -__nccwpck_require__(61203); -__nccwpck_require__(97456); -/* DES API */ -module.exports = forge.des = forge.des || {}; +UniversalIdentityDetails.prototype['max_depth'] = undefined; /** - * Deprecated. Instead, use: - * - * var cipher = forge.cipher.createCipher('DES-', key); - * cipher.start({iv: iv}); - * - * Creates an DES cipher object to encrypt data using the given symmetric key. - * The output will be stored in the 'output' member of the returned cipher. - * - * The key and iv may be given as binary-encoded strings of bytes or - * byte buffers. - * - * @param key the symmetric key to use (64 or 192 bits). - * @param iv the initialization vector to use. - * @param output the buffer to write to, null to create one. - * @param mode the cipher mode to use (default: 'CBC' if IV is - * given, 'ECB' if null). - * - * @return the cipher. + * @member {Number} number_of_tokens */ -forge.des.startEncrypting = function(key, iv, output, mode) { - var cipher = _createCipher({ - key: key, - output: output, - decrypt: false, - mode: mode || (iv === null ? 'ECB' : 'CBC') - }); - cipher.start(iv); - return cipher; -}; +UniversalIdentityDetails.prototype['number_of_tokens'] = undefined; /** - * Deprecated. Instead, use: - * - * var cipher = forge.cipher.createCipher('DES-', key); - * - * Creates an DES cipher object to encrypt data using the given symmetric key. - * - * The key may be given as a binary-encoded string of bytes or a byte buffer. - * - * @param key the symmetric key to use (64 or 192 bits). - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. + * @member {module:model/UIDTokenDetails} root */ -forge.des.createEncryptionCipher = function(key, mode) { - return _createCipher({ - key: key, - output: null, - decrypt: false, - mode: mode - }); -}; -/** - * Deprecated. Instead, use: - * - * var decipher = forge.cipher.createDecipher('DES-', key); - * decipher.start({iv: iv}); - * - * Creates an DES cipher object to decrypt data using the given symmetric key. - * The output will be stored in the 'output' member of the returned cipher. - * - * The key and iv may be given as binary-encoded strings of bytes or - * byte buffers. - * - * @param key the symmetric key to use (64 or 192 bits). - * @param iv the initialization vector to use. - * @param output the buffer to write to, null to create one. - * @param mode the cipher mode to use (default: 'CBC' if IV is - * given, 'ECB' if null). - * - * @return the cipher. - */ -forge.des.startDecrypting = function(key, iv, output, mode) { - var cipher = _createCipher({ - key: key, - output: output, - decrypt: true, - mode: mode || (iv === null ? 'ECB' : 'CBC') - }); - cipher.start(iv); - return cipher; -}; +UniversalIdentityDetails.prototype['root'] = undefined; +var _default = UniversalIdentityDetails; +exports["default"] = _default; -/** - * Deprecated. Instead, use: - * - * var decipher = forge.cipher.createDecipher('DES-', key); - * - * Creates an DES cipher object to decrypt data using the given symmetric key. - * - * The key may be given as a binary-encoded string of bytes or a byte buffer. - * - * @param key the symmetric key to use (64 or 192 bits). - * @param mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. - */ -forge.des.createDecryptionCipher = function(key, mode) { - return _createCipher({ - key: key, - output: null, - decrypt: true, - mode: mode - }); -}; +/***/ }), -/** - * Creates a new DES cipher algorithm object. - * - * @param name the name of the algorithm. - * @param mode the mode factory function. - * - * @return the DES algorithm object. - */ -forge.des.Algorithm = function(name, mode) { - var self = this; - self.name = name; - self.mode = new mode({ - blockSize: 8, - cipher: { - encrypt: function(inBlock, outBlock) { - return _updateBlock(self._keys, inBlock, outBlock, false); - }, - decrypt: function(inBlock, outBlock) { - return _updateBlock(self._keys, inBlock, outBlock, true); - } - } - }); - self._init = false; -}; +/***/ 14745: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Initializes this DES algorithm by expanding its key. - * - * @param options the options to use. - * key the key to use with this algorithm. - * decrypt true if the algorithm should be initialized for decryption, - * false for encryption. + * The Update model module. + * @module model/Update + * @version 3.6.3 */ -forge.des.Algorithm.prototype.initialize = function(options) { - if(this._init) { - return; - } +var Update = /*#__PURE__*/function () { + /** + * Constructs a new Update. + * @alias module:model/Update + */ + function Update() { + _classCallCheck(this, Update); - var key = forge.util.createBuffer(options.key); - if(this.name.indexOf('3DES') === 0) { - if(key.length() !== 24) { - throw new Error('Invalid Triple-DES key size: ' + key.length() * 8); - } + Update.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // do key expansion to 16 or 48 subkeys (single or triple DES) - this._keys = _createKeys(key); - this._init = true; -}; -/** Register DES algorithms **/ + _createClass(Update, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a Update from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Update} obj Optional instance to populate. + * @return {module:model/Update} The populated Update instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Update(); -registerAlgorithm('DES-ECB', forge.cipher.modes.ecb); -registerAlgorithm('DES-CBC', forge.cipher.modes.cbc); -registerAlgorithm('DES-CFB', forge.cipher.modes.cfb); -registerAlgorithm('DES-OFB', forge.cipher.modes.ofb); -registerAlgorithm('DES-CTR', forge.cipher.modes.ctr); + if (data.hasOwnProperty('artifact-repository')) { + obj['artifact-repository'] = _ApiClient["default"].convertToType(data['artifact-repository'], 'String'); + } -registerAlgorithm('3DES-ECB', forge.cipher.modes.ecb); -registerAlgorithm('3DES-CBC', forge.cipher.modes.cbc); -registerAlgorithm('3DES-CFB', forge.cipher.modes.cfb); -registerAlgorithm('3DES-OFB', forge.cipher.modes.ofb); -registerAlgorithm('3DES-CTR', forge.cipher.modes.ctr); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -function registerAlgorithm(name, mode) { - var factory = function() { - return new forge.des.Algorithm(name, mode); - }; - forge.cipher.registerAlgorithm(name, factory); -} + if (data.hasOwnProperty('show-changelog')) { + obj['show-changelog'] = _ApiClient["default"].convertToType(data['show-changelog'], 'Boolean'); + } -/** DES implementation **/ + if (data.hasOwnProperty('version')) { + obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String'); + } + } -var spfunction1 = [0x1010400,0,0x10000,0x1010404,0x1010004,0x10404,0x4,0x10000,0x400,0x1010400,0x1010404,0x400,0x1000404,0x1010004,0x1000000,0x4,0x404,0x1000400,0x1000400,0x10400,0x10400,0x1010000,0x1010000,0x1000404,0x10004,0x1000004,0x1000004,0x10004,0,0x404,0x10404,0x1000000,0x10000,0x1010404,0x4,0x1010000,0x1010400,0x1000000,0x1000000,0x400,0x1010004,0x10000,0x10400,0x1000004,0x400,0x4,0x1000404,0x10404,0x1010404,0x10004,0x1010000,0x1000404,0x1000004,0x404,0x10404,0x1010400,0x404,0x1000400,0x1000400,0,0x10004,0x10400,0,0x1010004]; -var spfunction2 = [-0x7fef7fe0,-0x7fff8000,0x8000,0x108020,0x100000,0x20,-0x7fefffe0,-0x7fff7fe0,-0x7fffffe0,-0x7fef7fe0,-0x7fef8000,-0x80000000,-0x7fff8000,0x100000,0x20,-0x7fefffe0,0x108000,0x100020,-0x7fff7fe0,0,-0x80000000,0x8000,0x108020,-0x7ff00000,0x100020,-0x7fffffe0,0,0x108000,0x8020,-0x7fef8000,-0x7ff00000,0x8020,0,0x108020,-0x7fefffe0,0x100000,-0x7fff7fe0,-0x7ff00000,-0x7fef8000,0x8000,-0x7ff00000,-0x7fff8000,0x20,-0x7fef7fe0,0x108020,0x20,0x8000,-0x80000000,0x8020,-0x7fef8000,0x100000,-0x7fffffe0,0x100020,-0x7fff7fe0,-0x7fffffe0,0x100020,0x108000,0,-0x7fff8000,0x8020,-0x80000000,-0x7fefffe0,-0x7fef7fe0,0x108000]; -var spfunction3 = [0x208,0x8020200,0,0x8020008,0x8000200,0,0x20208,0x8000200,0x20008,0x8000008,0x8000008,0x20000,0x8020208,0x20008,0x8020000,0x208,0x8000000,0x8,0x8020200,0x200,0x20200,0x8020000,0x8020008,0x20208,0x8000208,0x20200,0x20000,0x8000208,0x8,0x8020208,0x200,0x8000000,0x8020200,0x8000000,0x20008,0x208,0x20000,0x8020200,0x8000200,0,0x200,0x20008,0x8020208,0x8000200,0x8000008,0x200,0,0x8020008,0x8000208,0x20000,0x8000000,0x8020208,0x8,0x20208,0x20200,0x8000008,0x8020000,0x8000208,0x208,0x8020000,0x20208,0x8,0x8020008,0x20200]; -var spfunction4 = [0x802001,0x2081,0x2081,0x80,0x802080,0x800081,0x800001,0x2001,0,0x802000,0x802000,0x802081,0x81,0,0x800080,0x800001,0x1,0x2000,0x800000,0x802001,0x80,0x800000,0x2001,0x2080,0x800081,0x1,0x2080,0x800080,0x2000,0x802080,0x802081,0x81,0x800080,0x800001,0x802000,0x802081,0x81,0,0,0x802000,0x2080,0x800080,0x800081,0x1,0x802001,0x2081,0x2081,0x80,0x802081,0x81,0x1,0x2000,0x800001,0x2001,0x802080,0x800081,0x2001,0x2080,0x800000,0x802001,0x80,0x800000,0x2000,0x802080]; -var spfunction5 = [0x100,0x2080100,0x2080000,0x42000100,0x80000,0x100,0x40000000,0x2080000,0x40080100,0x80000,0x2000100,0x40080100,0x42000100,0x42080000,0x80100,0x40000000,0x2000000,0x40080000,0x40080000,0,0x40000100,0x42080100,0x42080100,0x2000100,0x42080000,0x40000100,0,0x42000000,0x2080100,0x2000000,0x42000000,0x80100,0x80000,0x42000100,0x100,0x2000000,0x40000000,0x2080000,0x42000100,0x40080100,0x2000100,0x40000000,0x42080000,0x2080100,0x40080100,0x100,0x2000000,0x42080000,0x42080100,0x80100,0x42000000,0x42080100,0x2080000,0,0x40080000,0x42000000,0x80100,0x2000100,0x40000100,0x80000,0,0x40080000,0x2080100,0x40000100]; -var spfunction6 = [0x20000010,0x20400000,0x4000,0x20404010,0x20400000,0x10,0x20404010,0x400000,0x20004000,0x404010,0x400000,0x20000010,0x400010,0x20004000,0x20000000,0x4010,0,0x400010,0x20004010,0x4000,0x404000,0x20004010,0x10,0x20400010,0x20400010,0,0x404010,0x20404000,0x4010,0x404000,0x20404000,0x20000000,0x20004000,0x10,0x20400010,0x404000,0x20404010,0x400000,0x4010,0x20000010,0x400000,0x20004000,0x20000000,0x4010,0x20000010,0x20404010,0x404000,0x20400000,0x404010,0x20404000,0,0x20400010,0x10,0x4000,0x20400000,0x404010,0x4000,0x400010,0x20004010,0,0x20404000,0x20000000,0x400010,0x20004010]; -var spfunction7 = [0x200000,0x4200002,0x4000802,0,0x800,0x4000802,0x200802,0x4200800,0x4200802,0x200000,0,0x4000002,0x2,0x4000000,0x4200002,0x802,0x4000800,0x200802,0x200002,0x4000800,0x4000002,0x4200000,0x4200800,0x200002,0x4200000,0x800,0x802,0x4200802,0x200800,0x2,0x4000000,0x200800,0x4000000,0x200800,0x200000,0x4000802,0x4000802,0x4200002,0x4200002,0x2,0x200002,0x4000000,0x4000800,0x200000,0x4200800,0x802,0x200802,0x4200800,0x802,0x4000002,0x4200802,0x4200000,0x200800,0,0x2,0x4200802,0,0x200802,0x4200000,0x800,0x4000002,0x4000800,0x800,0x200002]; -var spfunction8 = [0x10001040,0x1000,0x40000,0x10041040,0x10000000,0x10001040,0x40,0x10000000,0x40040,0x10040000,0x10041040,0x41000,0x10041000,0x41040,0x1000,0x40,0x10040000,0x10000040,0x10001000,0x1040,0x41000,0x40040,0x10040040,0x10041000,0x1040,0,0,0x10040040,0x10000040,0x10001000,0x41040,0x40000,0x41040,0x40000,0x10041000,0x1000,0x40,0x10040040,0x1000,0x41040,0x10001000,0x40,0x10000040,0x10040000,0x10040040,0x10000000,0x40000,0x10001040,0,0x10041040,0x40040,0x10000040,0x10040000,0x10001000,0x10001040,0,0x10041040,0x41000,0x41000,0x1040,0x1040,0x40040,0x10000000,0x10041000]; + return obj; + } + }]); + return Update; +}(); /** - * Create necessary sub keys. - * - * @param key the 64-bit or 192-bit key. - * - * @return the expanded keys. + * Alternative CLI repository url. e.g. https://artifacts.site2.akeyless.io + * @member {String} artifact-repository */ -function _createKeys(key) { - var pc2bytes0 = [0,0x4,0x20000000,0x20000004,0x10000,0x10004,0x20010000,0x20010004,0x200,0x204,0x20000200,0x20000204,0x10200,0x10204,0x20010200,0x20010204], - pc2bytes1 = [0,0x1,0x100000,0x100001,0x4000000,0x4000001,0x4100000,0x4100001,0x100,0x101,0x100100,0x100101,0x4000100,0x4000101,0x4100100,0x4100101], - pc2bytes2 = [0,0x8,0x800,0x808,0x1000000,0x1000008,0x1000800,0x1000808,0,0x8,0x800,0x808,0x1000000,0x1000008,0x1000800,0x1000808], - pc2bytes3 = [0,0x200000,0x8000000,0x8200000,0x2000,0x202000,0x8002000,0x8202000,0x20000,0x220000,0x8020000,0x8220000,0x22000,0x222000,0x8022000,0x8222000], - pc2bytes4 = [0,0x40000,0x10,0x40010,0,0x40000,0x10,0x40010,0x1000,0x41000,0x1010,0x41010,0x1000,0x41000,0x1010,0x41010], - pc2bytes5 = [0,0x400,0x20,0x420,0,0x400,0x20,0x420,0x2000000,0x2000400,0x2000020,0x2000420,0x2000000,0x2000400,0x2000020,0x2000420], - pc2bytes6 = [0,0x10000000,0x80000,0x10080000,0x2,0x10000002,0x80002,0x10080002,0,0x10000000,0x80000,0x10080000,0x2,0x10000002,0x80002,0x10080002], - pc2bytes7 = [0,0x10000,0x800,0x10800,0x20000000,0x20010000,0x20000800,0x20010800,0x20000,0x30000,0x20800,0x30800,0x20020000,0x20030000,0x20020800,0x20030800], - pc2bytes8 = [0,0x40000,0,0x40000,0x2,0x40002,0x2,0x40002,0x2000000,0x2040000,0x2000000,0x2040000,0x2000002,0x2040002,0x2000002,0x2040002], - pc2bytes9 = [0,0x10000000,0x8,0x10000008,0,0x10000000,0x8,0x10000008,0x400,0x10000400,0x408,0x10000408,0x400,0x10000400,0x408,0x10000408], - pc2bytes10 = [0,0x20,0,0x20,0x100000,0x100020,0x100000,0x100020,0x2000,0x2020,0x2000,0x2020,0x102000,0x102020,0x102000,0x102020], - pc2bytes11 = [0,0x1000000,0x200,0x1000200,0x200000,0x1200000,0x200200,0x1200200,0x4000000,0x5000000,0x4000200,0x5000200,0x4200000,0x5200000,0x4200200,0x5200200], - pc2bytes12 = [0,0x1000,0x8000000,0x8001000,0x80000,0x81000,0x8080000,0x8081000,0x10,0x1010,0x8000010,0x8001010,0x80010,0x81010,0x8080010,0x8081010], - pc2bytes13 = [0,0x4,0x100,0x104,0,0x4,0x100,0x104,0x1,0x5,0x101,0x105,0x1,0x5,0x101,0x105]; - // how many iterations (1 for des, 3 for triple des) - // changed by Paul 16/6/2007 to use Triple DES for 9+ byte keys - var iterations = key.length() > 8 ? 3 : 1; - // stores the return keys - var keys = []; +Update.prototype['artifact-repository'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - // now define the left shifts which need to be done - var shifts = [0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0]; +Update.prototype['json'] = false; +/** + * Show the changelog between the current version and the latest one and exit (update will not be performed) + * @member {Boolean} show-changelog + */ - var n = 0, tmp; - for(var j = 0; j < iterations; j++) { - var left = key.getInt32(); - var right = key.getInt32(); +Update.prototype['show-changelog'] = undefined; +/** + * The CLI version + * @member {String} version + * @default 'latest' + */ - tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; - right ^= tmp; - left ^= (tmp << 4); +Update.prototype['version'] = 'latest'; +var _default = Update; +exports["default"] = _default; - tmp = ((right >>> -16) ^ left) & 0x0000ffff; - left ^= tmp; - right ^= (tmp << -16); +/***/ }), - tmp = ((left >>> 2) ^ right) & 0x33333333; - right ^= tmp; - left ^= (tmp << 2); +/***/ 82797: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - tmp = ((right >>> -16) ^ left) & 0x0000ffff; - left ^= tmp; - right ^= (tmp << -16); +"use strict"; - tmp = ((left >>> 1) ^ right) & 0x55555555; - right ^= tmp; - left ^= (tmp << 1); - tmp = ((right >>> 8) ^ left) & 0x00ff00ff; - left ^= tmp; - right ^= (tmp << 8); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - tmp = ((left >>> 1) ^ right) & 0x55555555; - right ^= tmp; - left ^= (tmp << 1); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // right needs to be shifted and OR'd with last four bits of left - tmp = (left << 8) | ((right >>> 20) & 0x000000f0); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // left needs to be put upside down - left = ((right << 24) | ((right << 8) & 0xff0000) | - ((right >>> 8) & 0xff00) | ((right >>> 24) & 0xf0)); - right = tmp; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // now go through and perform these shifts on the left and right keys - for(var i = 0; i < shifts.length; ++i) { - //shift the keys either one or two bits to the left - if(shifts[i]) { - left = (left << 2) | (left >>> 26); - right = (right << 2) | (right >>> 26); - } else { - left = (left << 1) | (left >>> 27); - right = (right << 1) | (right >>> 27); - } - left &= -0xf; - right &= -0xf; - - // now apply PC-2, in such a way that E is easier when encrypting or - // decrypting this conversion will look like PC-2 except only the last 6 - // bits of each byte are used rather than 48 consecutive bits and the - // order of lines will be according to how the S selection functions will - // be applied: S2, S4, S6, S8, S1, S3, S5, S7 - var lefttmp = ( - pc2bytes0[left >>> 28] | pc2bytes1[(left >>> 24) & 0xf] | - pc2bytes2[(left >>> 20) & 0xf] | pc2bytes3[(left >>> 16) & 0xf] | - pc2bytes4[(left >>> 12) & 0xf] | pc2bytes5[(left >>> 8) & 0xf] | - pc2bytes6[(left >>> 4) & 0xf]); - var righttmp = ( - pc2bytes7[right >>> 28] | pc2bytes8[(right >>> 24) & 0xf] | - pc2bytes9[(right >>> 20) & 0xf] | pc2bytes10[(right >>> 16) & 0xf] | - pc2bytes11[(right >>> 12) & 0xf] | pc2bytes12[(right >>> 8) & 0xf] | - pc2bytes13[(right >>> 4) & 0xf]); - tmp = ((righttmp >>> 16) ^ lefttmp) & 0x0000ffff; - keys[n++] = lefttmp ^ tmp; - keys[n++] = righttmp ^ (tmp << 16); - } - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - return keys; -} +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Updates a single block (1 byte) using DES. The update will either - * encrypt or decrypt the block. - * - * @param keys the expanded keys. - * @param input the input block (an array of 32-bit words). - * @param output the updated output block. - * @param decrypt true to decrypt the block, false to encrypt it. + * The UpdateAWSTarget model module. + * @module model/UpdateAWSTarget + * @version 3.6.3 */ -function _updateBlock(keys, input, output, decrypt) { - // set up loops for single or triple DES - var iterations = keys.length === 32 ? 3 : 9; - var looping; - if(iterations === 3) { - looping = decrypt ? [30, -2, -2] : [0, 32, 2]; - } else { - looping = (decrypt ? - [94, 62, -2, 32, 64, 2, 30, -2, -2] : - [0, 32, 2, 62, 30, -2, 64, 96, 2]); - } +var UpdateAWSTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAWSTarget. + * @alias module:model/UpdateAWSTarget + * @param accessKey {String} AWS secret access key + * @param accessKeyId {String} AWS access key ID + * @param name {String} Target name + */ + function UpdateAWSTarget(accessKey, accessKeyId, name) { + _classCallCheck(this, UpdateAWSTarget); - var tmp; + UpdateAWSTarget.initialize(this, accessKey, accessKeyId, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - var left = input[0]; - var right = input[1]; - // first each 64 bit chunk of the message must be permuted according to IP - tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; - right ^= tmp; - left ^= (tmp << 4); + _createClass(UpdateAWSTarget, null, [{ + key: "initialize", + value: function initialize(obj, accessKey, accessKeyId, name) { + obj['access-key'] = accessKey; + obj['access-key-id'] = accessKeyId; + obj['name'] = name; + } + /** + * Constructs a UpdateAWSTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAWSTarget} obj Optional instance to populate. + * @return {module:model/UpdateAWSTarget} The populated UpdateAWSTarget instance. + */ - tmp = ((left >>> 16) ^ right) & 0x0000ffff; - right ^= tmp; - left ^= (tmp << 16); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAWSTarget(); - tmp = ((right >>> 2) ^ left) & 0x33333333; - left ^= tmp; - right ^= (tmp << 2); + if (data.hasOwnProperty('access-key')) { + obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); + } - tmp = ((right >>> 8) ^ left) & 0x00ff00ff; - left ^= tmp; - right ^= (tmp << 8); + if (data.hasOwnProperty('access-key-id')) { + obj['access-key-id'] = _ApiClient["default"].convertToType(data['access-key-id'], 'String'); + } - tmp = ((left >>> 1) ^ right) & 0x55555555; - right ^= tmp; - left ^= (tmp << 1); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } - // rotate left 1 bit - left = ((left << 1) | (left >>> 31)); - right = ((right << 1) | (right >>> 31)); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - for(var j = 0; j < iterations; j += 3) { - var endloop = looping[j + 1]; - var loopinc = looping[j + 2]; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - // now go through and perform the encryption or decryption - for(var i = looping[j]; i != endloop; i += loopinc) { - var right1 = right ^ keys[i]; - var right2 = ((right >>> 4) | (right << 28)) ^ keys[i + 1]; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - // passing these bytes through the S selection functions - tmp = left; - left = right; - right = tmp ^ ( - spfunction2[(right1 >>> 24) & 0x3f] | - spfunction4[(right1 >>> 16) & 0x3f] | - spfunction6[(right1 >>> 8) & 0x3f] | - spfunction8[right1 & 0x3f] | - spfunction1[(right2 >>> 24) & 0x3f] | - spfunction3[(right2 >>> 16) & 0x3f] | - spfunction5[(right2 >>> 8) & 0x3f] | - spfunction7[right2 & 0x3f]); - } - // unreverse left and right - tmp = left; - left = right; - right = tmp; - } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - // rotate right 1 bit - left = ((left >>> 1) | (left << 31)); - right = ((right >>> 1) | (right << 31)); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - // now perform IP-1, which is IP in the opposite direction - tmp = ((left >>> 1) ^ right) & 0x55555555; - right ^= tmp; - left ^= (tmp << 1); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - tmp = ((right >>> 8) ^ left) & 0x00ff00ff; - left ^= tmp; - right ^= (tmp << 8); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - tmp = ((right >>> 2) ^ left) & 0x33333333; - left ^= tmp; - right ^= (tmp << 2); + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } - tmp = ((left >>> 16) ^ right) & 0x0000ffff; - right ^= tmp; - left ^= (tmp << 16); + if (data.hasOwnProperty('session-token')) { + obj['session-token'] = _ApiClient["default"].convertToType(data['session-token'], 'String'); + } - tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; - right ^= tmp; - left ^= (tmp << 4); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - output[0] = left; - output[1] = right; -} + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -/** - * Deprecated. Instead, use: - * - * forge.cipher.createCipher('DES-', key); - * forge.cipher.createDecipher('DES-', key); - * - * Creates a deprecated DES cipher object. This object's mode will default to - * CBC (cipher-block-chaining). - * - * The key may be given as a binary-encoded string of bytes or a byte buffer. - * - * @param options the options to use. - * key the symmetric key to use (64 or 192 bits). - * output the buffer to write to. - * decrypt true for decryption, false for encryption. - * mode the cipher mode to use (default: 'CBC'). - * - * @return the cipher. - */ -function _createCipher(options) { - options = options || {}; - var mode = (options.mode || 'CBC').toUpperCase(); - var algorithm = 'DES-' + mode; + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } - var cipher; - if(options.decrypt) { - cipher = forge.cipher.createDecipher(algorithm, options.key); - } else { - cipher = forge.cipher.createCipher(algorithm, options.key); - } + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + } + } - // backwards compatible start API - var start = cipher.start; - cipher.start = function(iv, options) { - // backwards compatibility: support second arg as output buffer - var output = null; - if(options instanceof forge.util.ByteBuffer) { - output = options; - options = {}; + return obj; } - options = options || {}; - options.output = output; - options.iv = iv; - start.call(cipher, options); - }; + }]); - return cipher; -} + return UpdateAWSTarget; +}(); +/** + * AWS secret access key + * @member {String} access-key + */ -/***/ }), +UpdateAWSTarget.prototype['access-key'] = undefined; +/** + * AWS access key ID + * @member {String} access-key-id + */ -/***/ 56735: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateAWSTarget.prototype['access-key-id'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ +UpdateAWSTarget.prototype['comment'] = undefined; /** - * JavaScript implementation of Ed25519. - * - * Copyright (c) 2017-2019 Digital Bazaar, Inc. - * - * This implementation is based on the most excellent TweetNaCl which is - * in the public domain. Many thanks to its contributors: - * - * https://github.com/dchest/tweetnacl-js + * Description of the object + * @member {String} description */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(27211); -__nccwpck_require__(32055); -__nccwpck_require__(12734); -__nccwpck_require__(97456); -var asn1Validator = __nccwpck_require__(20938); -var publicKeyValidator = asn1Validator.publicKeyValidator; -var privateKeyValidator = asn1Validator.privateKeyValidator; -if(typeof BigInteger === 'undefined') { - var BigInteger = forge.jsbn.BigInteger; -} +UpdateAWSTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -var ByteBuffer = forge.util.ByteBuffer; -var NativeBuffer = typeof Buffer === 'undefined' ? Uint8Array : Buffer; +UpdateAWSTarget.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -/* - * Ed25519 algorithms, see RFC 8032: - * https://tools.ietf.org/html/rfc8032 +UpdateAWSTarget.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -forge.pki = forge.pki || {}; -module.exports = forge.pki.ed25519 = forge.ed25519 = forge.ed25519 || {}; -var ed25519 = forge.ed25519; -ed25519.constants = {}; -ed25519.constants.PUBLIC_KEY_BYTE_LENGTH = 32; -ed25519.constants.PRIVATE_KEY_BYTE_LENGTH = 64; -ed25519.constants.SEED_BYTE_LENGTH = 32; -ed25519.constants.SIGN_BYTE_LENGTH = 64; -ed25519.constants.HASH_BYTE_LENGTH = 64; +UpdateAWSTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -ed25519.generateKeyPair = function(options) { - options = options || {}; - var seed = options.seed; - if(seed === undefined) { - // generate seed - seed = forge.random.getBytesSync(ed25519.constants.SEED_BYTE_LENGTH); - } else if(typeof seed === 'string') { - if(seed.length !== ed25519.constants.SEED_BYTE_LENGTH) { - throw new TypeError( - '"seed" must be ' + ed25519.constants.SEED_BYTE_LENGTH + - ' bytes in length.'); - } - } else if(!(seed instanceof Uint8Array)) { - throw new TypeError( - '"seed" must be a node.js Buffer, Uint8Array, or a binary string.'); - } +UpdateAWSTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ - seed = messageToNativeBuffer({message: seed, encoding: 'binary'}); +UpdateAWSTarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ - var pk = new NativeBuffer(ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); - var sk = new NativeBuffer(ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); - for(var i = 0; i < 32; ++i) { - sk[i] = seed[i]; - } - crypto_sign_keypair(pk, sk); - return {publicKey: pk, privateKey: sk}; -}; +UpdateAWSTarget.prototype['new-name'] = undefined; +/** + * AWS region + * @member {String} region + * @default 'us-east-2' + */ +UpdateAWSTarget.prototype['region'] = 'us-east-2'; /** - * Converts a private key from a RFC8410 ASN.1 encoding. - * - * @param obj - The asn1 representation of a private key. - * - * @returns {Object} keyInfo - The key information. - * @returns {Buffer|Uint8Array} keyInfo.privateKeyBytes - 32 private key bytes. + * Required only for temporary security credentials retrieved using STS + * @member {String} session-token */ -ed25519.privateKeyFromAsn1 = function(obj) { - var capture = {}; - var errors = []; - var valid = forge.asn1.validate(obj, privateKeyValidator, capture, errors); - if(!valid) { - var error = new Error('Invalid Key.'); - error.errors = errors; - throw error; - } - var oid = forge.asn1.derToOid(capture.privateKeyOid); - var ed25519Oid = forge.oids.EdDSA25519; - if(oid !== ed25519Oid) { - throw new Error('Invalid OID "' + oid + '"; OID must be "' + - ed25519Oid + '".'); - } - var privateKey = capture.privateKey; - // manually extract the private key bytes from nested octet string, see FIXME: - // https://github.com/digitalbazaar/forge/blob/master/lib/asn1.js#L542 - var privateKeyBytes = messageToNativeBuffer({ - message: forge.asn1.fromDer(privateKey).value, - encoding: 'binary' - }); - // TODO: RFC8410 specifies a format for encoding the public key bytes along - // with the private key bytes. `publicKeyBytes` can be returned in the - // future. https://tools.ietf.org/html/rfc8410#section-10.3 - return {privateKeyBytes: privateKeyBytes}; -}; +UpdateAWSTarget.prototype['session-token'] = undefined; /** - * Converts a public key from a RFC8410 ASN.1 encoding. - * - * @param obj - The asn1 representation of a public key. - * - * @return {Buffer|Uint8Array} - 32 public key bytes. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -ed25519.publicKeyFromAsn1 = function(obj) { - // get SubjectPublicKeyInfo - var capture = {}; - var errors = []; - var valid = forge.asn1.validate(obj, publicKeyValidator, capture, errors); - if(!valid) { - var error = new Error('Invalid Key.'); - error.errors = errors; - throw error; - } - var oid = forge.asn1.derToOid(capture.publicKeyOid); - var ed25519Oid = forge.oids.EdDSA25519; - if(oid !== ed25519Oid) { - throw new Error('Invalid OID "' + oid + '"; OID must be "' + - ed25519Oid + '".'); - } - var publicKeyBytes = capture.ed25519PublicKey; - if(publicKeyBytes.length !== ed25519.constants.PUBLIC_KEY_BYTE_LENGTH) { - throw new Error('Key length is invalid.'); - } - return messageToNativeBuffer({ - message: publicKeyBytes, - encoding: 'binary' - }); -}; -ed25519.publicKeyFromPrivateKey = function(options) { - options = options || {}; - var privateKey = messageToNativeBuffer({ - message: options.privateKey, encoding: 'binary' - }); - if(privateKey.length !== ed25519.constants.PRIVATE_KEY_BYTE_LENGTH) { - throw new TypeError( - '"options.privateKey" must have a byte length of ' + - ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); - } +UpdateAWSTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - var pk = new NativeBuffer(ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); - for(var i = 0; i < pk.length; ++i) { - pk[i] = privateKey[32 + i]; - } - return pk; -}; +UpdateAWSTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ -ed25519.sign = function(options) { - options = options || {}; - var msg = messageToNativeBuffer(options); - var privateKey = messageToNativeBuffer({ - message: options.privateKey, - encoding: 'binary' - }); - if(privateKey.length === ed25519.constants.SEED_BYTE_LENGTH) { - var keyPair = ed25519.generateKeyPair({seed: privateKey}); - privateKey = keyPair.privateKey; - } else if(privateKey.length !== ed25519.constants.PRIVATE_KEY_BYTE_LENGTH) { - throw new TypeError( - '"options.privateKey" must have a byte length of ' + - ed25519.constants.SEED_BYTE_LENGTH + ' or ' + - ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); - } +UpdateAWSTarget.prototype['update-version'] = undefined; +/** + * Use the GW's Cloud IAM + * @member {Boolean} use-gw-cloud-identity + */ - var signedMsg = new NativeBuffer( - ed25519.constants.SIGN_BYTE_LENGTH + msg.length); - crypto_sign(signedMsg, msg, msg.length, privateKey); +UpdateAWSTarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = UpdateAWSTarget; +exports["default"] = _default; - var sig = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH); - for(var i = 0; i < sig.length; ++i) { - sig[i] = signedMsg[i]; - } - return sig; -}; +/***/ }), -ed25519.verify = function(options) { - options = options || {}; - var msg = messageToNativeBuffer(options); - if(options.signature === undefined) { - throw new TypeError( - '"options.signature" must be a node.js Buffer, a Uint8Array, a forge ' + - 'ByteBuffer, or a binary string.'); - } - var sig = messageToNativeBuffer({ - message: options.signature, - encoding: 'binary' - }); - if(sig.length !== ed25519.constants.SIGN_BYTE_LENGTH) { - throw new TypeError( - '"options.signature" must have a byte length of ' + - ed25519.constants.SIGN_BYTE_LENGTH); - } - var publicKey = messageToNativeBuffer({ - message: options.publicKey, - encoding: 'binary' - }); - if(publicKey.length !== ed25519.constants.PUBLIC_KEY_BYTE_LENGTH) { - throw new TypeError( - '"options.publicKey" must have a byte length of ' + - ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); - } +/***/ 13631: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - var sm = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH + msg.length); - var m = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH + msg.length); - var i; - for(i = 0; i < ed25519.constants.SIGN_BYTE_LENGTH; ++i) { - sm[i] = sig[i]; - } - for(i = 0; i < msg.length; ++i) { - sm[i + ed25519.constants.SIGN_BYTE_LENGTH] = msg[i]; - } - return (crypto_sign_open(m, sm, sm.length, publicKey) >= 0); -}; +"use strict"; -function messageToNativeBuffer(options) { - var message = options.message; - if(message instanceof Uint8Array || message instanceof NativeBuffer) { - return message; - } - var encoding = options.encoding; - if(message === undefined) { - if(options.md) { - // TODO: more rigorous validation that `md` is a MessageDigest - message = options.md.digest().getBytes(); - encoding = 'binary'; - } else { - throw new TypeError('"options.message" or "options.md" not specified.'); - } - } - - if(typeof message === 'string' && !encoding) { - throw new TypeError('"options.encoding" must be "binary" or "utf8".'); - } - - if(typeof message === 'string') { - if(typeof Buffer !== 'undefined') { - return Buffer.from(message, encoding); - } - message = new ByteBuffer(message, encoding); - } else if(!(message instanceof ByteBuffer)) { - throw new TypeError( - '"options.message" must be a node.js Buffer, a Uint8Array, a forge ' + - 'ByteBuffer, or a string with "options.encoding" specifying its ' + - 'encoding.'); - } - - // convert to native buffer - var buffer = new NativeBuffer(message.length()); - for(var i = 0; i < buffer.length; ++i) { - buffer[i] = message.at(i); - } - return buffer; -} - -var gf0 = gf(); -var gf1 = gf([1]); -var D = gf([ - 0x78a3, 0x1359, 0x4dca, 0x75eb, 0xd8ab, 0x4141, 0x0a4d, 0x0070, - 0xe898, 0x7779, 0x4079, 0x8cc7, 0xfe73, 0x2b6f, 0x6cee, 0x5203]); -var D2 = gf([ - 0xf159, 0x26b2, 0x9b94, 0xebd6, 0xb156, 0x8283, 0x149a, 0x00e0, - 0xd130, 0xeef3, 0x80f2, 0x198e, 0xfce7, 0x56df, 0xd9dc, 0x2406]); -var X = gf([ - 0xd51a, 0x8f25, 0x2d60, 0xc956, 0xa7b2, 0x9525, 0xc760, 0x692c, - 0xdc5c, 0xfdd6, 0xe231, 0xc0a4, 0x53fe, 0xcd6e, 0x36d3, 0x2169]); -var Y = gf([ - 0x6658, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, - 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666]); -var L = new Float64Array([ - 0xed, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58, - 0xd6, 0x9c, 0xf7, 0xa2, 0xde, 0xf9, 0xde, 0x14, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x10]); -var I = gf([ - 0xa0b0, 0x4a0e, 0x1b27, 0xc4ee, 0xe478, 0xad2f, 0x1806, 0x2f43, - 0xd7a7, 0x3dfb, 0x0099, 0x2b4d, 0xdf0b, 0x4fc1, 0x2480, 0x2b83]); - -// TODO: update forge buffer implementation to use `Buffer` or `Uint8Array`, -// whichever is available, to improve performance -function sha512(msg, msgLen) { - // Note: `out` and `msg` are NativeBuffer - var md = forge.md.sha512.create(); - var buffer = new ByteBuffer(msg); - md.update(buffer.getBytes(msgLen), 'binary'); - var hash = md.digest().getBytes(); - if(typeof Buffer !== 'undefined') { - return Buffer.from(hash, 'binary'); - } - var out = new NativeBuffer(ed25519.constants.HASH_BYTE_LENGTH); - for(var i = 0; i < 64; ++i) { - out[i] = hash.charCodeAt(i); - } - return out; -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -function crypto_sign_keypair(pk, sk) { - var p = [gf(), gf(), gf(), gf()]; - var i; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - var d = sha512(sk, 32); - d[0] &= 248; - d[31] &= 127; - d[31] |= 64; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - scalarbase(p, d); - pack(pk, p); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - for(i = 0; i < 32; ++i) { - sk[i + 32] = pk[i]; - } - return 0; -} +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -// Note: difference from C - smlen returned, not passed as argument. -function crypto_sign(sm, m, n, sk) { - var i, j, x = new Float64Array(64); - var p = [gf(), gf(), gf(), gf()]; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - var d = sha512(sk, 32); - d[0] &= 248; - d[31] &= 127; - d[31] |= 64; +/** + * The UpdateAWSTargetDetails model module. + * @module model/UpdateAWSTargetDetails + * @version 3.6.3 + */ +var UpdateAWSTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAWSTargetDetails. + * @alias module:model/UpdateAWSTargetDetails + * @param name {String} Target name + */ + function UpdateAWSTargetDetails(name) { + _classCallCheck(this, UpdateAWSTargetDetails); - var smlen = n + 64; - for(i = 0; i < n; ++i) { - sm[64 + i] = m[i]; - } - for(i = 0; i < 32; ++i) { - sm[32 + i] = d[32 + i]; + UpdateAWSTargetDetails.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - var r = sha512(sm.subarray(32), n + 32); - reduce(r); - scalarbase(p, r); - pack(sm, p); - - for(i = 32; i < 64; ++i) { - sm[i] = sk[i]; - } - var h = sha512(sm, n + 64); - reduce(h); - for(i = 32; i < 64; ++i) { - x[i] = 0; - } - for(i = 0; i < 32; ++i) { - x[i] = r[i]; - } - for(i = 0; i < 32; ++i) { - for(j = 0; j < 32; j++) { - x[i + j] += h[i] * d[j]; + _createClass(UpdateAWSTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } - } - - modL(sm.subarray(32), x); - return smlen; -} - -function crypto_sign_open(m, sm, n, pk) { - var i, mlen; - var t = new NativeBuffer(32); - var p = [gf(), gf(), gf(), gf()], - q = [gf(), gf(), gf(), gf()]; - - mlen = -1; - if(n < 64) { - return -1; - } + /** + * Constructs a UpdateAWSTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAWSTargetDetails} obj Optional instance to populate. + * @return {module:model/UpdateAWSTargetDetails} The populated UpdateAWSTargetDetails instance. + */ - if(unpackneg(q, pk)) { - return -1; - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAWSTargetDetails(); - for(i = 0; i < n; ++i) { - m[i] = sm[i]; - } - for(i = 0; i < 32; ++i) { - m[i + 32] = pk[i]; - } - var h = sha512(m, n); - reduce(h); - scalarmult(p, q, h); + if (data.hasOwnProperty('access-key')) { + obj['access-key'] = _ApiClient["default"].convertToType(data['access-key'], 'String'); + } - scalarbase(q, sm.subarray(32)); - add(p, q); - pack(t, p); + if (data.hasOwnProperty('access-key-id')) { + obj['access-key-id'] = _ApiClient["default"].convertToType(data['access-key-id'], 'String'); + } - n -= 64; - if(crypto_verify_32(sm, 0, t, 0)) { - for(i = 0; i < n; ++i) { - m[i] = 0; - } - return -1; - } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - for(i = 0; i < n; ++i) { - m[i] = sm[i + 64]; - } - mlen = n; - return mlen; -} + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -function modL(r, x) { - var carry, i, j, k; - for(i = 63; i >= 32; --i) { - carry = 0; - for(j = i - 32, k = i - 12; j < k; ++j) { - x[j] += carry - 16 * x[i] * L[j - (i - 32)]; - carry = (x[j] + 128) >> 8; - x[j] -= carry * 256; - } - x[j] += carry; - x[i] = 0; - } - carry = 0; - for(j = 0; j < 32; ++j) { - x[j] += carry - (x[31] >> 4) * L[j]; - carry = x[j] >> 8; - x[j] &= 255; - } - for(j = 0; j < 32; ++j) { - x[j] -= carry * L[j]; - } - for(i = 0; i < 32; ++i) { - x[i + 1] += x[i] >> 8; - r[i] = x[i] & 255; - } -} + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -function reduce(r) { - var x = new Float64Array(64); - for(var i = 0; i < 64; ++i) { - x[i] = r[i]; - r[i] = 0; - } - modL(r, x); -} + if (data.hasOwnProperty('new-version')) { + obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); + } -function add(p, q) { - var a = gf(), b = gf(), c = gf(), - d = gf(), e = gf(), f = gf(), - g = gf(), h = gf(), t = gf(); + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } - Z(a, p[1], p[0]); - Z(t, q[1], q[0]); - M(a, a, t); - A(b, p[0], p[1]); - A(t, q[0], q[1]); - M(b, b, t); - M(c, p[3], q[3]); - M(c, c, D2); - M(d, p[2], q[2]); - A(d, d, d); - Z(e, b, a); - Z(f, d, c); - A(g, d, c); - A(h, b, a); + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } - M(p[0], e, f); - M(p[1], h, g); - M(p[2], g, f); - M(p[3], e, h); -} + if (data.hasOwnProperty('session-token')) { + obj['session-token'] = _ApiClient["default"].convertToType(data['session-token'], 'String'); + } -function cswap(p, q, b) { - for(var i = 0; i < 4; ++i) { - sel25519(p[i], q[i], b); - } -} + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -function pack(r, p) { - var tx = gf(), ty = gf(), zi = gf(); - inv25519(zi, p[2]); - M(tx, p[0], zi); - M(ty, p[1], zi); - pack25519(r, ty); - r[31] ^= par25519(tx) << 7; -} + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } -function pack25519(o, n) { - var i, j, b; - var m = gf(), t = gf(); - for(i = 0; i < 16; ++i) { - t[i] = n[i]; - } - car25519(t); - car25519(t); - car25519(t); - for(j = 0; j < 2; ++j) { - m[0] = t[0] - 0xffed; - for(i = 1; i < 15; ++i) { - m[i] = t[i] - 0xffff - ((m[i - 1] >> 16) & 1); - m[i-1] &= 0xffff; + return obj; } - m[15] = t[15] - 0x7fff - ((m[14] >> 16) & 1); - b = (m[15] >> 16) & 1; - m[14] &= 0xffff; - sel25519(t, m, 1 - b); - } - for (i = 0; i < 16; i++) { - o[2 * i] = t[i] & 0xff; - o[2 * i + 1] = t[i] >> 8; - } -} - -function unpackneg(r, p) { - var t = gf(), chk = gf(), num = gf(), - den = gf(), den2 = gf(), den4 = gf(), - den6 = gf(); - - set25519(r[2], gf1); - unpack25519(r[1], p); - S(num, r[1]); - M(den, num, D); - Z(num, num, r[2]); - A(den, r[2], den); - - S(den2, den); - S(den4, den2); - M(den6, den4, den2); - M(t, den6, num); - M(t, t, den); - - pow2523(t, t); - M(t, t, num); - M(t, t, den); - M(t, t, den); - M(r[0], t, den); - - S(chk, r[0]); - M(chk, chk, den); - if(neq25519(chk, num)) { - M(r[0], r[0], I); - } - - S(chk, r[0]); - M(chk, chk, den); - if(neq25519(chk, num)) { - return -1; - } + }]); - if(par25519(r[0]) === (p[31] >> 7)) { - Z(r[0], gf0, r[0]); - } + return UpdateAWSTargetDetails; +}(); +/** + * The aws secret access key + * @member {String} access-key + */ - M(r[3], r[0], r[1]); - return 0; -} -function unpack25519(o, n) { - var i; - for(i = 0; i < 16; ++i) { - o[i] = n[2 * i] + (n[2 * i + 1] << 8); - } - o[15] &= 0x7fff; -} +UpdateAWSTargetDetails.prototype['access-key'] = undefined; +/** + * The aws access key id + * @member {String} access-key-id + */ -function pow2523(o, i) { - var c = gf(); - var a; - for(a = 0; a < 16; ++a) { - c[a] = i[a]; - } - for(a = 250; a >= 0; --a) { - S(c, c); - if(a !== 1) { - M(c, c, i); - } - } - for(a = 0; a < 16; ++a) { - o[a] = c[a]; - } -} +UpdateAWSTargetDetails.prototype['access-key-id'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -function neq25519(a, b) { - var c = new NativeBuffer(32); - var d = new NativeBuffer(32); - pack25519(c, a); - pack25519(d, b); - return crypto_verify_32(c, 0, d, 0); -} +UpdateAWSTargetDetails.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -function crypto_verify_32(x, xi, y, yi) { - return vn(x, xi, y, yi, 32); -} +UpdateAWSTargetDetails.prototype['keep-prev-version'] = undefined; +/** + * Target name + * @member {String} name + */ -function vn(x, xi, y, yi, n) { - var i, d = 0; - for(i = 0; i < n; ++i) { - d |= x[xi + i] ^ y[yi + i]; - } - return (1 & ((d - 1) >>> 8)) - 1; -} +UpdateAWSTargetDetails.prototype['name'] = undefined; +/** + * Deprecated + * @member {Boolean} new-version + */ -function par25519(a) { - var d = new NativeBuffer(32); - pack25519(d, a); - return d[0] & 1; -} +UpdateAWSTargetDetails.prototype['new-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection_key + */ -function scalarmult(p, q, s) { - var b, i; - set25519(p[0], gf0); - set25519(p[1], gf1); - set25519(p[2], gf1); - set25519(p[3], gf0); - for(i = 255; i >= 0; --i) { - b = (s[(i / 8)|0] >> (i & 7)) & 1; - cswap(p, q, b); - add(q, p); - add(p, p); - cswap(p, q, b); - } -} +UpdateAWSTargetDetails.prototype['protection_key'] = undefined; +/** + * The aws region + * @member {String} region + * @default 'us-east-2' + */ -function scalarbase(p, s) { - var q = [gf(), gf(), gf(), gf()]; - set25519(q[0], X); - set25519(q[1], Y); - set25519(q[2], gf1); - M(q[3], X, Y); - scalarmult(p, q, s); -} +UpdateAWSTargetDetails.prototype['region'] = 'us-east-2'; +/** + * Required only for temporary security credentials retrieved via STS, otherwise it can be an empty string + * @member {String} session-token + */ -function set25519(r, a) { - var i; - for(i = 0; i < 16; i++) { - r[i] = a[i] | 0; - } -} +UpdateAWSTargetDetails.prototype['session-token'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -function inv25519(o, i) { - var c = gf(); - var a; - for(a = 0; a < 16; ++a) { - c[a] = i[a]; - } - for(a = 253; a >= 0; --a) { - S(c, c); - if(a !== 2 && a !== 4) { - M(c, c, i); - } - } - for(a = 0; a < 16; ++a) { - o[a] = c[a]; - } -} +UpdateAWSTargetDetails.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -function car25519(o) { - var i, v, c = 1; - for(i = 0; i < 16; ++i) { - v = o[i] + c + 65535; - c = Math.floor(v / 65536); - o[i] = v - c * 65536; - } - o[0] += c - 1 + 37 * (c - 1); -} +UpdateAWSTargetDetails.prototype['uid-token'] = undefined; +var _default = UpdateAWSTargetDetails; +exports["default"] = _default; -function sel25519(p, q, b) { - var t, c = ~(b - 1); - for(var i = 0; i < 16; ++i) { - t = c & (p[i] ^ q[i]); - p[i] ^= t; - q[i] ^= t; - } -} +/***/ }), -function gf(init) { - var i, r = new Float64Array(16); - if(init) { - for(i = 0; i < init.length; ++i) { - r[i] = init[i]; - } - } - return r; -} +/***/ 7427: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -function A(o, a, b) { - for(var i = 0; i < 16; ++i) { - o[i] = a[i] + b[i]; - } -} - -function Z(o, a, b) { - for(var i = 0; i < 16; ++i) { - o[i] = a[i] - b[i]; - } -} - -function S(o, a) { - M(o, a, a); -} - -function M(o, a, b) { - var v, c, - t0 = 0, t1 = 0, t2 = 0, t3 = 0, t4 = 0, t5 = 0, t6 = 0, t7 = 0, - t8 = 0, t9 = 0, t10 = 0, t11 = 0, t12 = 0, t13 = 0, t14 = 0, t15 = 0, - t16 = 0, t17 = 0, t18 = 0, t19 = 0, t20 = 0, t21 = 0, t22 = 0, t23 = 0, - t24 = 0, t25 = 0, t26 = 0, t27 = 0, t28 = 0, t29 = 0, t30 = 0, - b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3], - b4 = b[4], - b5 = b[5], - b6 = b[6], - b7 = b[7], - b8 = b[8], - b9 = b[9], - b10 = b[10], - b11 = b[11], - b12 = b[12], - b13 = b[13], - b14 = b[14], - b15 = b[15]; - - v = a[0]; - t0 += v * b0; - t1 += v * b1; - t2 += v * b2; - t3 += v * b3; - t4 += v * b4; - t5 += v * b5; - t6 += v * b6; - t7 += v * b7; - t8 += v * b8; - t9 += v * b9; - t10 += v * b10; - t11 += v * b11; - t12 += v * b12; - t13 += v * b13; - t14 += v * b14; - t15 += v * b15; - v = a[1]; - t1 += v * b0; - t2 += v * b1; - t3 += v * b2; - t4 += v * b3; - t5 += v * b4; - t6 += v * b5; - t7 += v * b6; - t8 += v * b7; - t9 += v * b8; - t10 += v * b9; - t11 += v * b10; - t12 += v * b11; - t13 += v * b12; - t14 += v * b13; - t15 += v * b14; - t16 += v * b15; - v = a[2]; - t2 += v * b0; - t3 += v * b1; - t4 += v * b2; - t5 += v * b3; - t6 += v * b4; - t7 += v * b5; - t8 += v * b6; - t9 += v * b7; - t10 += v * b8; - t11 += v * b9; - t12 += v * b10; - t13 += v * b11; - t14 += v * b12; - t15 += v * b13; - t16 += v * b14; - t17 += v * b15; - v = a[3]; - t3 += v * b0; - t4 += v * b1; - t5 += v * b2; - t6 += v * b3; - t7 += v * b4; - t8 += v * b5; - t9 += v * b6; - t10 += v * b7; - t11 += v * b8; - t12 += v * b9; - t13 += v * b10; - t14 += v * b11; - t15 += v * b12; - t16 += v * b13; - t17 += v * b14; - t18 += v * b15; - v = a[4]; - t4 += v * b0; - t5 += v * b1; - t6 += v * b2; - t7 += v * b3; - t8 += v * b4; - t9 += v * b5; - t10 += v * b6; - t11 += v * b7; - t12 += v * b8; - t13 += v * b9; - t14 += v * b10; - t15 += v * b11; - t16 += v * b12; - t17 += v * b13; - t18 += v * b14; - t19 += v * b15; - v = a[5]; - t5 += v * b0; - t6 += v * b1; - t7 += v * b2; - t8 += v * b3; - t9 += v * b4; - t10 += v * b5; - t11 += v * b6; - t12 += v * b7; - t13 += v * b8; - t14 += v * b9; - t15 += v * b10; - t16 += v * b11; - t17 += v * b12; - t18 += v * b13; - t19 += v * b14; - t20 += v * b15; - v = a[6]; - t6 += v * b0; - t7 += v * b1; - t8 += v * b2; - t9 += v * b3; - t10 += v * b4; - t11 += v * b5; - t12 += v * b6; - t13 += v * b7; - t14 += v * b8; - t15 += v * b9; - t16 += v * b10; - t17 += v * b11; - t18 += v * b12; - t19 += v * b13; - t20 += v * b14; - t21 += v * b15; - v = a[7]; - t7 += v * b0; - t8 += v * b1; - t9 += v * b2; - t10 += v * b3; - t11 += v * b4; - t12 += v * b5; - t13 += v * b6; - t14 += v * b7; - t15 += v * b8; - t16 += v * b9; - t17 += v * b10; - t18 += v * b11; - t19 += v * b12; - t20 += v * b13; - t21 += v * b14; - t22 += v * b15; - v = a[8]; - t8 += v * b0; - t9 += v * b1; - t10 += v * b2; - t11 += v * b3; - t12 += v * b4; - t13 += v * b5; - t14 += v * b6; - t15 += v * b7; - t16 += v * b8; - t17 += v * b9; - t18 += v * b10; - t19 += v * b11; - t20 += v * b12; - t21 += v * b13; - t22 += v * b14; - t23 += v * b15; - v = a[9]; - t9 += v * b0; - t10 += v * b1; - t11 += v * b2; - t12 += v * b3; - t13 += v * b4; - t14 += v * b5; - t15 += v * b6; - t16 += v * b7; - t17 += v * b8; - t18 += v * b9; - t19 += v * b10; - t20 += v * b11; - t21 += v * b12; - t22 += v * b13; - t23 += v * b14; - t24 += v * b15; - v = a[10]; - t10 += v * b0; - t11 += v * b1; - t12 += v * b2; - t13 += v * b3; - t14 += v * b4; - t15 += v * b5; - t16 += v * b6; - t17 += v * b7; - t18 += v * b8; - t19 += v * b9; - t20 += v * b10; - t21 += v * b11; - t22 += v * b12; - t23 += v * b13; - t24 += v * b14; - t25 += v * b15; - v = a[11]; - t11 += v * b0; - t12 += v * b1; - t13 += v * b2; - t14 += v * b3; - t15 += v * b4; - t16 += v * b5; - t17 += v * b6; - t18 += v * b7; - t19 += v * b8; - t20 += v * b9; - t21 += v * b10; - t22 += v * b11; - t23 += v * b12; - t24 += v * b13; - t25 += v * b14; - t26 += v * b15; - v = a[12]; - t12 += v * b0; - t13 += v * b1; - t14 += v * b2; - t15 += v * b3; - t16 += v * b4; - t17 += v * b5; - t18 += v * b6; - t19 += v * b7; - t20 += v * b8; - t21 += v * b9; - t22 += v * b10; - t23 += v * b11; - t24 += v * b12; - t25 += v * b13; - t26 += v * b14; - t27 += v * b15; - v = a[13]; - t13 += v * b0; - t14 += v * b1; - t15 += v * b2; - t16 += v * b3; - t17 += v * b4; - t18 += v * b5; - t19 += v * b6; - t20 += v * b7; - t21 += v * b8; - t22 += v * b9; - t23 += v * b10; - t24 += v * b11; - t25 += v * b12; - t26 += v * b13; - t27 += v * b14; - t28 += v * b15; - v = a[14]; - t14 += v * b0; - t15 += v * b1; - t16 += v * b2; - t17 += v * b3; - t18 += v * b4; - t19 += v * b5; - t20 += v * b6; - t21 += v * b7; - t22 += v * b8; - t23 += v * b9; - t24 += v * b10; - t25 += v * b11; - t26 += v * b12; - t27 += v * b13; - t28 += v * b14; - t29 += v * b15; - v = a[15]; - t15 += v * b0; - t16 += v * b1; - t17 += v * b2; - t18 += v * b3; - t19 += v * b4; - t20 += v * b5; - t21 += v * b6; - t22 += v * b7; - t23 += v * b8; - t24 += v * b9; - t25 += v * b10; - t26 += v * b11; - t27 += v * b12; - t28 += v * b13; - t29 += v * b14; - t30 += v * b15; - - t0 += 38 * t16; - t1 += 38 * t17; - t2 += 38 * t18; - t3 += 38 * t19; - t4 += 38 * t20; - t5 += 38 * t21; - t6 += 38 * t22; - t7 += 38 * t23; - t8 += 38 * t24; - t9 += 38 * t25; - t10 += 38 * t26; - t11 += 38 * t27; - t12 += 38 * t28; - t13 += 38 * t29; - t14 += 38 * t30; - // t15 left as is - - // first car - c = 1; - v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536; - v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536; - v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536; - v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536; - v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536; - v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536; - v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536; - v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536; - v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536; - v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536; - v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536; - v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536; - v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536; - v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536; - v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536; - v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536; - t0 += c-1 + 37 * (c-1); - - // second car - c = 1; - v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536; - v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536; - v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536; - v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536; - v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536; - v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536; - v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536; - v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536; - v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536; - v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536; - v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536; - v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536; - v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536; - v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536; - v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536; - v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536; - t0 += c-1 + 37 * (c-1); - - o[ 0] = t0; - o[ 1] = t1; - o[ 2] = t2; - o[ 3] = t3; - o[ 4] = t4; - o[ 5] = t5; - o[ 6] = t6; - o[ 7] = t7; - o[ 8] = t8; - o[ 9] = t9; - o[10] = t10; - o[11] = t11; - o[12] = t12; - o[13] = t13; - o[14] = t14; - o[15] = t15; -} - - -/***/ }), - -/***/ 88561: -/***/ ((module) => { +"use strict"; -/** - * Node.js module for Forge. - * - * @author Dave Longley - * - * Copyright 2011-2016 Digital Bazaar, Inc. - */ -module.exports = { - // default options - options: { - usePureJavaScript: false - } -}; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/***/ }), +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ 42007: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/** - * Hash-based Message Authentication Code implementation. Requires a message - * digest object that can be obtained, for example, from forge.md.sha1 or - * forge.md.md5. - * - * @author Dave Longley - * - * Copyright (c) 2010-2012 Digital Bazaar, Inc. All rights reserved. - */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(46777); -__nccwpck_require__(97456); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/* HMAC API */ -var hmac = module.exports = forge.hmac = forge.hmac || {}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Creates an HMAC object that uses the given message digest object. - * - * @return an HMAC object. + * The UpdateAccountSettings model module. + * @module model/UpdateAccountSettings + * @version 3.6.3 */ -hmac.create = function() { - // the hmac key to use - var _key = null; +var UpdateAccountSettings = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAccountSettings. + * @alias module:model/UpdateAccountSettings + */ + function UpdateAccountSettings() { + _classCallCheck(this, UpdateAccountSettings); - // the message digest to use - var _md = null; + UpdateAccountSettings.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // the inner padding - var _ipadding = null; - // the outer padding - var _opadding = null; + _createClass(UpdateAccountSettings, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateAccountSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAccountSettings} obj Optional instance to populate. + * @return {module:model/UpdateAccountSettings} The populated UpdateAccountSettings instance. + */ - // hmac context - var ctx = {}; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAccountSettings(); - /** - * Starts or restarts the HMAC with the given key and message digest. - * - * @param md the message digest to use, null to reuse the previous one, - * a string to use builtin 'sha1', 'md5', 'sha256'. - * @param key the key to use as a string, array of bytes, byte buffer, - * or null to reuse the previous key. - */ - ctx.start = function(md, key) { - if(md !== null) { - if(typeof md === 'string') { - // create builtin message digest - md = md.toLowerCase(); - if(md in forge.md.algorithms) { - _md = forge.md.algorithms[md].create(); - } else { - throw new Error('Unknown hash algorithm "' + md + '"'); + if (data.hasOwnProperty('address')) { + obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String'); } - } else { - // store message digest - _md = md; - } - } - if(key === null) { - // reuse previous key - key = _key; - } else { - if(typeof key === 'string') { - // convert string into byte buffer - key = forge.util.createBuffer(key); - } else if(forge.util.isArray(key)) { - // convert byte array into byte buffer - var tmp = key; - key = forge.util.createBuffer(); - for(var i = 0; i < tmp.length; ++i) { - key.putByte(tmp[i]); + if (data.hasOwnProperty('city')) { + obj['city'] = _ApiClient["default"].convertToType(data['city'], 'String'); } - } - - // if key is longer than blocksize, hash it - var keylen = key.length(); - if(keylen > _md.blockLength) { - _md.start(); - _md.update(key.bytes()); - key = _md.digest(); - } - // mix key into inner and outer padding - // ipadding = [0x36 * blocksize] ^ key - // opadding = [0x5C * blocksize] ^ key - _ipadding = forge.util.createBuffer(); - _opadding = forge.util.createBuffer(); - keylen = key.length(); - for(var i = 0; i < keylen; ++i) { - var tmp = key.at(i); - _ipadding.putByte(0x36 ^ tmp); - _opadding.putByte(0x5C ^ tmp); - } + if (data.hasOwnProperty('company-name')) { + obj['company-name'] = _ApiClient["default"].convertToType(data['company-name'], 'String'); + } - // if key is shorter than blocksize, add additional padding - if(keylen < _md.blockLength) { - var tmp = _md.blockLength - keylen; - for(var i = 0; i < tmp; ++i) { - _ipadding.putByte(0x36); - _opadding.putByte(0x5C); + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); } - } - _key = key; - _ipadding = _ipadding.bytes(); - _opadding = _opadding.bytes(); - } - // digest is done like so: hash(opadding | hash(ipadding | message)) + if (data.hasOwnProperty('default-key-name')) { + obj['default-key-name'] = _ApiClient["default"].convertToType(data['default-key-name'], 'String'); + } - // prepare to do inner hash - // hash(ipadding | message) - _md.start(); - _md.update(_ipadding); - }; + if (data.hasOwnProperty('default-share-link-ttl-minutes')) { + obj['default-share-link-ttl-minutes'] = _ApiClient["default"].convertToType(data['default-share-link-ttl-minutes'], 'String'); + } - /** - * Updates the HMAC with the given message bytes. - * - * @param bytes the bytes to update with. - */ - ctx.update = function(bytes) { - _md.update(bytes); - }; + if (data.hasOwnProperty('default-versioning')) { + obj['default-versioning'] = _ApiClient["default"].convertToType(data['default-versioning'], 'String'); + } - /** - * Produces the Message Authentication Code (MAC). - * - * @return a byte buffer containing the digest value. - */ - ctx.getMac = function() { - // digest is done like so: hash(opadding | hash(ipadding | message)) - // here we do the outer hashing - var inner = _md.digest().bytes(); - _md.start(); - _md.update(_opadding); - _md.update(inner); - return _md.digest(); - }; - // alias for getMac - ctx.digest = ctx.getMac; + if (data.hasOwnProperty('dp-enable-classic-key-protection')) { + obj['dp-enable-classic-key-protection'] = _ApiClient["default"].convertToType(data['dp-enable-classic-key-protection'], 'String'); + } - return ctx; -}; + if (data.hasOwnProperty('dynamic-secret-max-ttl')) { + obj['dynamic-secret-max-ttl'] = _ApiClient["default"].convertToType(data['dynamic-secret-max-ttl'], 'Number'); + } + if (data.hasOwnProperty('dynamic-secret-max-ttl-enable')) { + obj['dynamic-secret-max-ttl-enable'] = _ApiClient["default"].convertToType(data['dynamic-secret-max-ttl-enable'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('force-new-versions')) { + obj['force-new-versions'] = _ApiClient["default"].convertToType(data['force-new-versions'], 'String'); + } -/***/ 8542: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('invalid-characters')) { + obj['invalid-characters'] = _ApiClient["default"].convertToType(data['invalid-characters'], 'String'); + } -/** - * Node.js module for Forge. - * - * @author Dave Longley - * - * Copyright 2011-2016 Digital Bazaar, Inc. - */ -module.exports = __nccwpck_require__(88561); -__nccwpck_require__(39445); -__nccwpck_require__(56087); -__nccwpck_require__(27357); -__nccwpck_require__(14723); -__nccwpck_require__(93537); -__nccwpck_require__(56735); -__nccwpck_require__(42007); -__nccwpck_require__(59477); -__nccwpck_require__(68388); -__nccwpck_require__(85472); -__nccwpck_require__(2893); -__nccwpck_require__(39429); -__nccwpck_require__(60492); -__nccwpck_require__(51608); -__nccwpck_require__(1296); -__nccwpck_require__(34382); -__nccwpck_require__(84874); -__nccwpck_require__(57013); -__nccwpck_require__(65189); -__nccwpck_require__(6736); -__nccwpck_require__(32055); -__nccwpck_require__(86893); -__nccwpck_require__(43140); -__nccwpck_require__(84275); -__nccwpck_require__(97456); + if (data.hasOwnProperty('item-type')) { + obj['item-type'] = _ApiClient["default"].convertToType(data['item-type'], 'String'); + } + if (data.hasOwnProperty('items-deletion-protection')) { + obj['items-deletion-protection'] = _ApiClient["default"].convertToType(data['items-deletion-protection'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/***/ 27211: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('jwt-ttl-default')) { + obj['jwt-ttl-default'] = _ApiClient["default"].convertToType(data['jwt-ttl-default'], 'Number'); + } -// Copyright (c) 2005 Tom Wu -// All Rights Reserved. -// See "LICENSE" for details. + if (data.hasOwnProperty('jwt-ttl-max')) { + obj['jwt-ttl-max'] = _ApiClient["default"].convertToType(data['jwt-ttl-max'], 'Number'); + } -// Basic JavaScript BN library - subset useful for RSA encryption. + if (data.hasOwnProperty('jwt-ttl-min')) { + obj['jwt-ttl-min'] = _ApiClient["default"].convertToType(data['jwt-ttl-min'], 'Number'); + } -/* -Licensing (LICENSE) -------------------- + if (data.hasOwnProperty('lock-default-key')) { + obj['lock-default-key'] = _ApiClient["default"].convertToType(data['lock-default-key'], 'String'); + } -This software is covered under the following copyright: -*/ -/* - * Copyright (c) 2003-2005 Tom Wu - * All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining - * a copy of this software and associated documentation files (the - * "Software"), to deal in the Software without restriction, including - * without limitation the rights to use, copy, modify, merge, publish, - * distribute, sublicense, and/or sell copies of the Software, and to - * permit persons to whom the Software is furnished to do so, subject to - * the following conditions: - * - * The above copyright notice and this permission notice shall be - * included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, - * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY - * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. - * - * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL, - * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER - * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF - * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT - * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * In addition, the following condition applies: - * - * All redistributions must retain an intact copy of this copyright notice - * and disclaimer. - */ -/* -Address all questions regarding this license to: + if (data.hasOwnProperty('max-rotation-interval')) { + obj['max-rotation-interval'] = _ApiClient["default"].convertToType(data['max-rotation-interval'], 'Number'); + } - Tom Wu - tjw@cs.Stanford.EDU -*/ -var forge = __nccwpck_require__(88561); - -module.exports = forge.jsbn = forge.jsbn || {}; - -// Bits per digit -var dbits; - -// JavaScript engine analysis -var canary = 0xdeadbeefcafe; -var j_lm = ((canary&0xffffff)==0xefcafe); - -// (public) Constructor -function BigInteger(a,b,c) { - this.data = []; - if(a != null) - if("number" == typeof a) this.fromNumber(a,b,c); - else if(b == null && "string" != typeof a) this.fromString(a,256); - else this.fromString(a,b); -} -forge.jsbn.BigInteger = BigInteger; - -// return new, unset BigInteger -function nbi() { return new BigInteger(null); } - -// am: Compute w_j += (x*this_i), propagate carries, -// c is initial carry, returns final carry. -// c < 3*dvalue, x < 2*dvalue, this_i < dvalue -// We need to select the fastest one that works in this environment. - -// am1: use a single mult and divide to get the high bits, -// max digit bits should be 26 because -// max internal value = 2*dvalue^2-2*dvalue (< 2^53) -function am1(i,x,w,j,c,n) { - while(--n >= 0) { - var v = x*this.data[i++]+w.data[j]+c; - c = Math.floor(v/0x4000000); - w.data[j++] = v&0x3ffffff; - } - return c; -} -// am2 avoids a big mult-and-extract completely. -// Max digit bits should be <= 30 because we do bitwise ops -// on values up to 2*hdvalue^2-hdvalue-1 (< 2^31) -function am2(i,x,w,j,c,n) { - var xl = x&0x7fff, xh = x>>15; - while(--n >= 0) { - var l = this.data[i]&0x7fff; - var h = this.data[i++]>>15; - var m = xh*l+h*xl; - l = xl*l+((m&0x7fff)<<15)+w.data[j]+(c&0x3fffffff); - c = (l>>>30)+(m>>>15)+xh*h+(c>>>30); - w.data[j++] = l&0x3fffffff; - } - return c; -} -// Alternately, set max digit bits to 28 since some -// browsers slow down when dealing with 32-bit numbers. -function am3(i,x,w,j,c,n) { - var xl = x&0x3fff, xh = x>>14; - while(--n >= 0) { - var l = this.data[i]&0x3fff; - var h = this.data[i++]>>14; - var m = xh*l+h*xl; - l = xl*l+((m&0x3fff)<<14)+w.data[j]+c; - c = (l>>28)+(m>>14)+xh*h; - w.data[j++] = l&0xfffffff; - } - return c; -} - -// node.js (no browser) -if(typeof(navigator) === 'undefined') -{ - BigInteger.prototype.am = am3; - dbits = 28; -} else if(j_lm && (navigator.appName == "Microsoft Internet Explorer")) { - BigInteger.prototype.am = am2; - dbits = 30; -} else if(j_lm && (navigator.appName != "Netscape")) { - BigInteger.prototype.am = am1; - dbits = 26; -} else { // Mozilla/Netscape seems to prefer am3 - BigInteger.prototype.am = am3; - dbits = 28; -} - -BigInteger.prototype.DB = dbits; -BigInteger.prototype.DM = ((1<= 0; --i) r.data[i] = this.data[i]; - r.t = this.t; - r.s = this.s; -} - -// (protected) set from integer value x, -DV <= x < DV -function bnpFromInt(x) { - this.t = 1; - this.s = (x<0)?-1:0; - if(x > 0) this.data[0] = x; - else if(x < -1) this.data[0] = x+this.DV; - else this.t = 0; -} - -// return bigint initialized to value -function nbv(i) { var r = nbi(); r.fromInt(i); return r; } - -// (protected) set from string and radix -function bnpFromString(s,b) { - var k; - if(b == 16) k = 4; - else if(b == 8) k = 3; - else if(b == 256) k = 8; // byte array - else if(b == 2) k = 1; - else if(b == 32) k = 5; - else if(b == 4) k = 2; - else { this.fromRadix(s,b); return; } - this.t = 0; - this.s = 0; - var i = s.length, mi = false, sh = 0; - while(--i >= 0) { - var x = (k==8)?s[i]&0xff:intAt(s,i); - if(x < 0) { - if(s.charAt(i) == "-") mi = true; - continue; - } - mi = false; - if(sh == 0) - this.data[this.t++] = x; - else if(sh+k > this.DB) { - this.data[this.t-1] |= (x&((1<<(this.DB-sh))-1))<>(this.DB-sh)); - } else - this.data[this.t-1] |= x<= this.DB) sh -= this.DB; - } - if(k == 8 && (s[0]&0x80) != 0) { - this.s = -1; - if(sh > 0) this.data[this.t-1] |= ((1<<(this.DB-sh))-1)< 0 && this.data[this.t-1] == c) --this.t; -} - -// (public) return string representation in given radix -function bnToString(b) { - if(this.s < 0) return "-"+this.negate().toString(b); - var k; - if(b == 16) k = 4; - else if(b == 8) k = 3; - else if(b == 2) k = 1; - else if(b == 32) k = 5; - else if(b == 4) k = 2; - else return this.toRadix(b); - var km = (1< 0) { - if(p < this.DB && (d = this.data[i]>>p) > 0) { m = true; r = int2char(d); } - while(i >= 0) { - if(p < k) { - d = (this.data[i]&((1<>(p+=this.DB-k); - } else { - d = (this.data[i]>>(p-=k))&km; - if(p <= 0) { p += this.DB; --i; } - } - if(d > 0) m = true; - if(m) r += int2char(d); - } - } - return m?r:"0"; -} + if (data.hasOwnProperty('max-rotation-interval-enable')) { + obj['max-rotation-interval-enable'] = _ApiClient["default"].convertToType(data['max-rotation-interval-enable'], 'String'); + } -// (public) -this -function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -// (public) |this| -function bnAbs() { return (this.s<0)?this.negate():this; } + if (data.hasOwnProperty('password-length')) { + obj['password-length'] = _ApiClient["default"].convertToType(data['password-length'], 'Number'); + } -// (public) return + if this > a, - if this < a, 0 if equal -function bnCompareTo(a) { - var r = this.s-a.s; - if(r != 0) return r; - var i = this.t; - r = i-a.t; - if(r != 0) return (this.s<0)?-r:r; - while(--i >= 0) if((r=this.data[i]-a.data[i]) != 0) return r; - return 0; -} + if (data.hasOwnProperty('phone')) { + obj['phone'] = _ApiClient["default"].convertToType(data['phone'], 'String'); + } -// returns bit length of the integer x -function nbits(x) { - var r = 1, t; - if((t=x>>>16) != 0) { x = t; r += 16; } - if((t=x>>8) != 0) { x = t; r += 8; } - if((t=x>>4) != 0) { x = t; r += 4; } - if((t=x>>2) != 0) { x = t; r += 2; } - if((t=x>>1) != 0) { x = t; r += 1; } - return r; -} + if (data.hasOwnProperty('postal-code')) { + obj['postal-code'] = _ApiClient["default"].convertToType(data['postal-code'], 'String'); + } -// (public) return the number of bits in "this" -function bnBitLength() { - if(this.t <= 0) return 0; - return this.DB*(this.t-1)+nbits(this.data[this.t-1]^(this.s&this.DM)); -} + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -// (protected) r = this << n*DB -function bnpDLShiftTo(n,r) { - var i; - for(i = this.t-1; i >= 0; --i) r.data[i+n] = this.data[i]; - for(i = n-1; i >= 0; --i) r.data[i] = 0; - r.t = this.t+n; - r.s = this.s; -} - -// (protected) r = this >> n*DB -function bnpDRShiftTo(n,r) { - for(var i = n; i < this.t; ++i) r.data[i-n] = this.data[i]; - r.t = Math.max(this.t-n,0); - r.s = this.s; -} - -// (protected) r = this << n -function bnpLShiftTo(n,r) { - var bs = n%this.DB; - var cbs = this.DB-bs; - var bm = (1<= 0; --i) { - r.data[i+ds+1] = (this.data[i]>>cbs)|c; - c = (this.data[i]&bm)<= 0; --i) r.data[i] = 0; - r.data[ds] = c; - r.t = this.t+ds+1; - r.s = this.s; - r.clamp(); -} - -// (protected) r = this >> n -function bnpRShiftTo(n,r) { - r.s = this.s; - var ds = Math.floor(n/this.DB); - if(ds >= this.t) { r.t = 0; return; } - var bs = n%this.DB; - var cbs = this.DB-bs; - var bm = (1<>bs; - for(var i = ds+1; i < this.t; ++i) { - r.data[i-ds-1] |= (this.data[i]&bm)<>bs; - } - if(bs > 0) r.data[this.t-ds-1] |= (this.s&bm)<>= this.DB; - } - if(a.t < this.t) { - c -= a.s; - while(i < this.t) { - c += this.data[i]; - r.data[i++] = c&this.DM; - c >>= this.DB; - } - c += this.s; - } else { - c += this.s; - while(i < a.t) { - c -= a.data[i]; - r.data[i++] = c&this.DM; - c >>= this.DB; - } - c -= a.s; - } - r.s = (c<0)?-1:0; - if(c < -1) r.data[i++] = this.DV+c; - else if(c > 0) r.data[i++] = c; - r.t = i; - r.clamp(); -} - -// (protected) r = this * a, r != this,a (HAC 14.12) -// "this" should be the larger one if appropriate. -function bnpMultiplyTo(a,r) { - var x = this.abs(), y = a.abs(); - var i = x.t; - r.t = i+y.t; - while(--i >= 0) r.data[i] = 0; - for(i = 0; i < y.t; ++i) r.data[i+x.t] = x.am(0,y.data[i],r,i,0,x.t); - r.s = 0; - r.clamp(); - if(this.s != a.s) BigInteger.ZERO.subTo(r,r); -} - -// (protected) r = this^2, r != this (HAC 14.16) -function bnpSquareTo(r) { - var x = this.abs(); - var i = r.t = 2*x.t; - while(--i >= 0) r.data[i] = 0; - for(i = 0; i < x.t-1; ++i) { - var c = x.am(i,x.data[i],r,2*i,0,1); - if((r.data[i+x.t]+=x.am(i+1,2*x.data[i],r,2*i+1,c,x.t-i-1)) >= x.DV) { - r.data[i+x.t] -= x.DV; - r.data[i+x.t+1] = 1; - } - } - if(r.t > 0) r.data[r.t-1] += x.am(i,x.data[i],r,2*i,0,1); - r.s = 0; - r.clamp(); -} - -// (protected) divide this by m, quotient and remainder to q, r (HAC 14.20) -// r != q, this != m. q or r may be null. -function bnpDivRemTo(m,q,r) { - var pm = m.abs(); - if(pm.t <= 0) return; - var pt = this.abs(); - if(pt.t < pm.t) { - if(q != null) q.fromInt(0); - if(r != null) this.copyTo(r); - return; - } - if(r == null) r = nbi(); - var y = nbi(), ts = this.s, ms = m.s; - var nsh = this.DB-nbits(pm.data[pm.t-1]); // normalize modulus - if(nsh > 0) { pm.lShiftTo(nsh,y); pt.lShiftTo(nsh,r); } else { pm.copyTo(y); pt.copyTo(r); } - var ys = y.t; - var y0 = y.data[ys-1]; - if(y0 == 0) return; - var yt = y0*(1<1)?y.data[ys-2]>>this.F2:0); - var d1 = this.FV/yt, d2 = (1<= 0) { - r.data[r.t++] = 1; - r.subTo(t,r); - } - BigInteger.ONE.dlShiftTo(ys,t); - t.subTo(y,y); // "negative" y so we can replace sub with am later - while(y.t < ys) y.data[y.t++] = 0; - while(--j >= 0) { - // Estimate quotient digit - var qd = (r.data[--i]==y0)?this.DM:Math.floor(r.data[i]*d1+(r.data[i-1]+e)*d2); - if((r.data[i]+=y.am(0,qd,r,j,0,ys)) < qd) { // Try it out - y.dlShiftTo(j,t); - r.subTo(t,r); - while(r.data[i] < --qd) r.subTo(t,r); - } - } - if(q != null) { - r.drShiftTo(ys,q); - if(ts != ms) BigInteger.ZERO.subTo(q,q); - } - r.t = ys; - r.clamp(); - if(nsh > 0) r.rShiftTo(nsh,r); // Denormalize remainder - if(ts < 0) BigInteger.ZERO.subTo(r,r); -} - -// (public) this mod a -function bnMod(a) { - var r = nbi(); - this.abs().divRemTo(a,null,r); - if(this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r,r); - return r; -} + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -// Modular reduction using "classic" algorithm -function Classic(m) { this.m = m; } -function cConvert(x) { - if(x.s < 0 || x.compareTo(this.m) >= 0) return x.mod(this.m); - else return x; -} -function cRevert(x) { return x; } -function cReduce(x) { x.divRemTo(this.m,null,x); } -function cMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } -function cSqrTo(x,r) { x.squareTo(r); this.reduce(r); } - -Classic.prototype.convert = cConvert; -Classic.prototype.revert = cRevert; -Classic.prototype.reduce = cReduce; -Classic.prototype.mulTo = cMulTo; -Classic.prototype.sqrTo = cSqrTo; - -// (protected) return "-1/this % 2^DB"; useful for Mont. reduction -// justification: -// xy == 1 (mod m) -// xy = 1+km -// xy(2-xy) = (1+km)(1-km) -// x[y(2-xy)] = 1-k^2m^2 -// x[y(2-xy)] == 1 (mod m^2) -// if y is 1/x mod m, then y(2-xy) is 1/x mod m^2 -// should reduce x and y(2-xy) by m^2 at each step to keep size bounded. -// JS multiply "overflows" differently from C/C++, so care is needed here. -function bnpInvDigit() { - if(this.t < 1) return 0; - var x = this.data[0]; - if((x&1) == 0) return 0; - var y = x&3; // y == 1/x mod 2^2 - y = (y*(2-(x&0xf)*y))&0xf; // y == 1/x mod 2^4 - y = (y*(2-(x&0xff)*y))&0xff; // y == 1/x mod 2^8 - y = (y*(2-(((x&0xffff)*y)&0xffff)))&0xffff; // y == 1/x mod 2^16 - // last step - calculate inverse mod DV directly; - // assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints - y = (y*(2-x*y%this.DV))%this.DV; // y == 1/x mod 2^dbits - // we really want the negative inverse, and -DV < y < DV - return (y>0)?this.DV-y:-y; -} - -// Montgomery reduction -function Montgomery(m) { - this.m = m; - this.mp = m.invDigit(); - this.mpl = this.mp&0x7fff; - this.mph = this.mp>>15; - this.um = (1<<(m.DB-15))-1; - this.mt2 = 2*m.t; -} - -// xR mod m -function montConvert(x) { - var r = nbi(); - x.abs().dlShiftTo(this.m.t,r); - r.divRemTo(this.m,null,r); - if(x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) this.m.subTo(r,r); - return r; -} + if (data.hasOwnProperty('usage-event-enable')) { + obj['usage-event-enable'] = _ApiClient["default"].convertToType(data['usage-event-enable'], 'String'); + } -// x/R mod m -function montRevert(x) { - var r = nbi(); - x.copyTo(r); - this.reduce(r); - return r; -} + if (data.hasOwnProperty('usage-event-interval')) { + obj['usage-event-interval'] = _ApiClient["default"].convertToType(data['usage-event-interval'], 'Number'); + } -// x = x/R mod m (HAC 14.32) -function montReduce(x) { - while(x.t <= this.mt2) // pad x so am has enough room later - x.data[x.t++] = 0; - for(var i = 0; i < this.m.t; ++i) { - // faster way of calculating u0 = x.data[i]*mp mod DV - var j = x.data[i]&0x7fff; - var u0 = (j*this.mpl+(((j*this.mph+(x.data[i]>>15)*this.mpl)&this.um)<<15))&x.DM; - // use am to combine the multiply-shift-add into one call - j = i+this.m.t; - x.data[j] += this.m.am(0,u0,x,i,0,this.m.t); - // propagate carry - while(x.data[j] >= x.DV) { x.data[j] -= x.DV; x.data[++j]++; } - } - x.clamp(); - x.drShiftTo(this.m.t,x); - if(x.compareTo(this.m) >= 0) x.subTo(this.m,x); -} - -// r = "x^2/R mod m"; x != r -function montSqrTo(x,r) { x.squareTo(r); this.reduce(r); } - -// r = "xy/R mod m"; x,y != r -function montMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } - -Montgomery.prototype.convert = montConvert; -Montgomery.prototype.revert = montRevert; -Montgomery.prototype.reduce = montReduce; -Montgomery.prototype.mulTo = montMulTo; -Montgomery.prototype.sqrTo = montSqrTo; - -// (protected) true iff this is even -function bnpIsEven() { return ((this.t>0)?(this.data[0]&1):this.s) == 0; } - -// (protected) this^e, e < 2^32, doing sqr and mul with "r" (HAC 14.79) -function bnpExp(e,z) { - if(e > 0xffffffff || e < 1) return BigInteger.ONE; - var r = nbi(), r2 = nbi(), g = z.convert(this), i = nbits(e)-1; - g.copyTo(r); - while(--i >= 0) { - z.sqrTo(r,r2); - if((e&(1< 0) z.mulTo(r2,g,r); - else { var t = r; r = r2; r2 = t; } - } - return z.revert(r); -} - -// (public) this^e % m, 0 <= e < 2^32 -function bnModPowInt(e,m) { - var z; - if(e < 256 || m.isEven()) z = new Classic(m); else z = new Montgomery(m); - return this.exp(e,z); -} - -// protected -BigInteger.prototype.copyTo = bnpCopyTo; -BigInteger.prototype.fromInt = bnpFromInt; -BigInteger.prototype.fromString = bnpFromString; -BigInteger.prototype.clamp = bnpClamp; -BigInteger.prototype.dlShiftTo = bnpDLShiftTo; -BigInteger.prototype.drShiftTo = bnpDRShiftTo; -BigInteger.prototype.lShiftTo = bnpLShiftTo; -BigInteger.prototype.rShiftTo = bnpRShiftTo; -BigInteger.prototype.subTo = bnpSubTo; -BigInteger.prototype.multiplyTo = bnpMultiplyTo; -BigInteger.prototype.squareTo = bnpSquareTo; -BigInteger.prototype.divRemTo = bnpDivRemTo; -BigInteger.prototype.invDigit = bnpInvDigit; -BigInteger.prototype.isEven = bnpIsEven; -BigInteger.prototype.exp = bnpExp; - -// public -BigInteger.prototype.toString = bnToString; -BigInteger.prototype.negate = bnNegate; -BigInteger.prototype.abs = bnAbs; -BigInteger.prototype.compareTo = bnCompareTo; -BigInteger.prototype.bitLength = bnBitLength; -BigInteger.prototype.mod = bnMod; -BigInteger.prototype.modPowInt = bnModPowInt; - -// "constants" -BigInteger.ZERO = nbv(0); -BigInteger.ONE = nbv(1); - -// jsbn2 lib - -//Copyright (c) 2005-2009 Tom Wu -//All Rights Reserved. -//See "LICENSE" for details (See jsbn.js for LICENSE). - -//Extended JavaScript BN functions, required for RSA private ops. - -//Version 1.1: new BigInteger("0", 10) returns "proper" zero - -//(public) -function bnClone() { var r = nbi(); this.copyTo(r); return r; } - -//(public) return value as integer -function bnIntValue() { -if(this.s < 0) { - if(this.t == 1) return this.data[0]-this.DV; - else if(this.t == 0) return -1; -} else if(this.t == 1) return this.data[0]; -else if(this.t == 0) return 0; -// assumes 16 < DB < 32 -return ((this.data[1]&((1<<(32-this.DB))-1))<>24; } - -//(public) return value as short (assumes DB>=16) -function bnShortValue() { return (this.t==0)?this.s:(this.data[0]<<16)>>16; } - -//(protected) return x s.t. r^x < DV -function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); } - -//(public) 0 if this == 0, 1 if this > 0 -function bnSigNum() { -if(this.s < 0) return -1; -else if(this.t <= 0 || (this.t == 1 && this.data[0] <= 0)) return 0; -else return 1; -} - -//(protected) convert to radix string -function bnpToRadix(b) { -if(b == null) b = 10; -if(this.signum() == 0 || b < 2 || b > 36) return "0"; -var cs = this.chunkSize(b); -var a = Math.pow(b,cs); -var d = nbv(a), y = nbi(), z = nbi(), r = ""; -this.divRemTo(d,y,z); -while(y.signum() > 0) { - r = (a+z.intValue()).toString(b).substr(1) + r; - y.divRemTo(d,y,z); -} -return z.intValue().toString(b) + r; -} - -//(protected) convert from radix string -function bnpFromRadix(s,b) { -this.fromInt(0); -if(b == null) b = 10; -var cs = this.chunkSize(b); -var d = Math.pow(b,cs), mi = false, j = 0, w = 0; -for(var i = 0; i < s.length; ++i) { - var x = intAt(s,i); - if(x < 0) { - if(s.charAt(i) == "-" && this.signum() == 0) mi = true; - continue; - } - w = b*w+x; - if(++j >= cs) { - this.dMultiply(d); - this.dAddOffset(w,0); - j = 0; - w = 0; - } -} -if(j > 0) { - this.dMultiply(Math.pow(b,j)); - this.dAddOffset(w,0); -} -if(mi) BigInteger.ZERO.subTo(this,this); -} - -//(protected) alternate constructor -function bnpFromNumber(a,b,c) { -if("number" == typeof b) { - // new BigInteger(int,int,RNG) - if(a < 2) this.fromInt(1); - else { - this.fromNumber(a,c); - if(!this.testBit(a-1)) // force MSB set - this.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),op_or,this); - if(this.isEven()) this.dAddOffset(1,0); // force odd - while(!this.isProbablePrime(b)) { - this.dAddOffset(2,0); - if(this.bitLength() > a) this.subTo(BigInteger.ONE.shiftLeft(a-1),this); - } - } -} else { - // new BigInteger(int,RNG) - var x = new Array(), t = a&7; - x.length = (a>>3)+1; - b.nextBytes(x); - if(t > 0) x[0] &= ((1< 0) { - if(p < this.DB && (d = this.data[i]>>p) != (this.s&this.DM)>>p) - r[k++] = d|(this.s<<(this.DB-p)); - while(i >= 0) { - if(p < 8) { - d = (this.data[i]&((1<>(p+=this.DB-8); - } else { - d = (this.data[i]>>(p-=8))&0xff; - if(p <= 0) { p += this.DB; --i; } - } - if((d&0x80) != 0) d |= -256; - if(k == 0 && (this.s&0x80) != (d&0x80)) ++k; - if(k > 0 || d != this.s) r[k++] = d; - } -} -return r; -} - -function bnEquals(a) { return(this.compareTo(a)==0); } -function bnMin(a) { return(this.compareTo(a)<0)?this:a; } -function bnMax(a) { return(this.compareTo(a)>0)?this:a; } - -//(protected) r = this op a (bitwise) -function bnpBitwiseTo(a,op,r) { -var i, f, m = Math.min(a.t,this.t); -for(i = 0; i < m; ++i) r.data[i] = op(this.data[i],a.data[i]); -if(a.t < this.t) { - f = a.s&this.DM; - for(i = m; i < this.t; ++i) r.data[i] = op(this.data[i],f); - r.t = this.t; -} else { - f = this.s&this.DM; - for(i = m; i < a.t; ++i) r.data[i] = op(f,a.data[i]); - r.t = a.t; -} -r.s = op(this.s,a.s); -r.clamp(); -} + if (data.hasOwnProperty('usage-event-object-type')) { + obj['usage-event-object-type'] = _ApiClient["default"].convertToType(data['usage-event-object-type'], 'String'); + } -//(public) this & a -function op_and(x,y) { return x&y; } -function bnAnd(a) { var r = nbi(); this.bitwiseTo(a,op_and,r); return r; } + if (data.hasOwnProperty('use-lower-letters')) { + obj['use-lower-letters'] = _ApiClient["default"].convertToType(data['use-lower-letters'], 'String'); + } -//(public) this | a -function op_or(x,y) { return x|y; } -function bnOr(a) { var r = nbi(); this.bitwiseTo(a,op_or,r); return r; } + if (data.hasOwnProperty('use-numbers')) { + obj['use-numbers'] = _ApiClient["default"].convertToType(data['use-numbers'], 'String'); + } -//(public) this ^ a -function op_xor(x,y) { return x^y; } -function bnXor(a) { var r = nbi(); this.bitwiseTo(a,op_xor,r); return r; } - -//(public) this & ~a -function op_andnot(x,y) { return x&~y; } -function bnAndNot(a) { var r = nbi(); this.bitwiseTo(a,op_andnot,r); return r; } - -//(public) ~this -function bnNot() { -var r = nbi(); -for(var i = 0; i < this.t; ++i) r.data[i] = this.DM&~this.data[i]; -r.t = this.t; -r.s = ~this.s; -return r; -} - -//(public) this << n -function bnShiftLeft(n) { -var r = nbi(); -if(n < 0) this.rShiftTo(-n,r); else this.lShiftTo(n,r); -return r; -} - -//(public) this >> n -function bnShiftRight(n) { -var r = nbi(); -if(n < 0) this.lShiftTo(-n,r); else this.rShiftTo(n,r); -return r; -} - -//return index of lowest 1-bit in x, x < 2^31 -function lbit(x) { -if(x == 0) return -1; -var r = 0; -if((x&0xffff) == 0) { x >>= 16; r += 16; } -if((x&0xff) == 0) { x >>= 8; r += 8; } -if((x&0xf) == 0) { x >>= 4; r += 4; } -if((x&3) == 0) { x >>= 2; r += 2; } -if((x&1) == 0) ++r; -return r; -} - -//(public) returns index of lowest 1-bit (or -1 if none) -function bnGetLowestSetBit() { -for(var i = 0; i < this.t; ++i) - if(this.data[i] != 0) return i*this.DB+lbit(this.data[i]); -if(this.s < 0) return this.t*this.DB; -return -1; -} - -//return number of 1 bits in x -function cbit(x) { -var r = 0; -while(x != 0) { x &= x-1; ++r; } -return r; -} - -//(public) return number of set bits -function bnBitCount() { -var r = 0, x = this.s&this.DM; -for(var i = 0; i < this.t; ++i) r += cbit(this.data[i]^x); -return r; -} - -//(public) true iff nth bit is set -function bnTestBit(n) { -var j = Math.floor(n/this.DB); -if(j >= this.t) return(this.s!=0); -return((this.data[j]&(1<<(n%this.DB)))!=0); -} - -//(protected) this op (1<>= this.DB; -} -if(a.t < this.t) { - c += a.s; - while(i < this.t) { - c += this.data[i]; - r.data[i++] = c&this.DM; - c >>= this.DB; - } - c += this.s; -} else { - c += this.s; - while(i < a.t) { - c += a.data[i]; - r.data[i++] = c&this.DM; - c >>= this.DB; - } - c += a.s; -} -r.s = (c<0)?-1:0; -if(c > 0) r.data[i++] = c; -else if(c < -1) r.data[i++] = this.DV+c; -r.t = i; -r.clamp(); -} - -//(public) this + a -function bnAdd(a) { var r = nbi(); this.addTo(a,r); return r; } - -//(public) this - a -function bnSubtract(a) { var r = nbi(); this.subTo(a,r); return r; } - -//(public) this * a -function bnMultiply(a) { var r = nbi(); this.multiplyTo(a,r); return r; } - -//(public) this / a -function bnDivide(a) { var r = nbi(); this.divRemTo(a,r,null); return r; } - -//(public) this % a -function bnRemainder(a) { var r = nbi(); this.divRemTo(a,null,r); return r; } - -//(public) [this/a,this%a] -function bnDivideAndRemainder(a) { -var q = nbi(), r = nbi(); -this.divRemTo(a,q,r); -return new Array(q,r); -} - -//(protected) this *= n, this >= 0, 1 < n < DV -function bnpDMultiply(n) { -this.data[this.t] = this.am(0,n-1,this,0,0,this.t); -++this.t; -this.clamp(); -} - -//(protected) this += n << w words, this >= 0 -function bnpDAddOffset(n,w) { -if(n == 0) return; -while(this.t <= w) this.data[this.t++] = 0; -this.data[w] += n; -while(this.data[w] >= this.DV) { - this.data[w] -= this.DV; - if(++w >= this.t) this.data[this.t++] = 0; - ++this.data[w]; -} -} - -//A "null" reducer -function NullExp() {} -function nNop(x) { return x; } -function nMulTo(x,y,r) { x.multiplyTo(y,r); } -function nSqrTo(x,r) { x.squareTo(r); } - -NullExp.prototype.convert = nNop; -NullExp.prototype.revert = nNop; -NullExp.prototype.mulTo = nMulTo; -NullExp.prototype.sqrTo = nSqrTo; - -//(public) this^e -function bnPow(e) { return this.exp(e,new NullExp()); } - -//(protected) r = lower n words of "this * a", a.t <= n -//"this" should be the larger one if appropriate. -function bnpMultiplyLowerTo(a,n,r) { -var i = Math.min(this.t+a.t,n); -r.s = 0; // assumes a,this >= 0 -r.t = i; -while(i > 0) r.data[--i] = 0; -var j; -for(j = r.t-this.t; i < j; ++i) r.data[i+this.t] = this.am(0,a.data[i],r,i,0,this.t); -for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a.data[i],r,i,0,n-i); -r.clamp(); -} - -//(protected) r = "this * a" without lower n words, n > 0 -//"this" should be the larger one if appropriate. -function bnpMultiplyUpperTo(a,n,r) { ---n; -var i = r.t = this.t+a.t-n; -r.s = 0; // assumes a,this >= 0 -while(--i >= 0) r.data[i] = 0; -for(i = Math.max(n-this.t,0); i < a.t; ++i) - r.data[this.t+i-n] = this.am(n-i,a.data[i],r,0,0,this.t+i-n); -r.clamp(); -r.drShiftTo(1,r); -} - -//Barrett modular reduction -function Barrett(m) { -// setup Barrett -this.r2 = nbi(); -this.q3 = nbi(); -BigInteger.ONE.dlShiftTo(2*m.t,this.r2); -this.mu = this.r2.divide(m); -this.m = m; -} - -function barrettConvert(x) { -if(x.s < 0 || x.t > 2*this.m.t) return x.mod(this.m); -else if(x.compareTo(this.m) < 0) return x; -else { var r = nbi(); x.copyTo(r); this.reduce(r); return r; } -} - -function barrettRevert(x) { return x; } - -//x = x mod m (HAC 14.42) -function barrettReduce(x) { -x.drShiftTo(this.m.t-1,this.r2); -if(x.t > this.m.t+1) { x.t = this.m.t+1; x.clamp(); } -this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3); -this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2); -while(x.compareTo(this.r2) < 0) x.dAddOffset(1,this.m.t+1); -x.subTo(this.r2,x); -while(x.compareTo(this.m) >= 0) x.subTo(this.m,x); -} - -//r = x^2 mod m; x != r -function barrettSqrTo(x,r) { x.squareTo(r); this.reduce(r); } - -//r = x*y mod m; x,y != r -function barrettMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } - -Barrett.prototype.convert = barrettConvert; -Barrett.prototype.revert = barrettRevert; -Barrett.prototype.reduce = barrettReduce; -Barrett.prototype.mulTo = barrettMulTo; -Barrett.prototype.sqrTo = barrettSqrTo; - -//(public) this^e % m (HAC 14.85) -function bnModPow(e,m) { -var i = e.bitLength(), k, r = nbv(1), z; -if(i <= 0) return r; -else if(i < 18) k = 1; -else if(i < 48) k = 3; -else if(i < 144) k = 4; -else if(i < 768) k = 5; -else k = 6; -if(i < 8) - z = new Classic(m); -else if(m.isEven()) - z = new Barrett(m); -else - z = new Montgomery(m); - -// precomputation -var g = new Array(), n = 3, k1 = k-1, km = (1< 1) { - var g2 = nbi(); - z.sqrTo(g[1],g2); - while(n <= km) { - g[n] = nbi(); - z.mulTo(g2,g[n-2],g[n]); - n += 2; - } -} - -var j = e.t-1, w, is1 = true, r2 = nbi(), t; -i = nbits(e.data[j])-1; -while(j >= 0) { - if(i >= k1) w = (e.data[j]>>(i-k1))&km; - else { - w = (e.data[j]&((1<<(i+1))-1))<<(k1-i); - if(j > 0) w |= e.data[j-1]>>(this.DB+i-k1); - } - - n = k; - while((w&1) == 0) { w >>= 1; --n; } - if((i -= n) < 0) { i += this.DB; --j; } - if(is1) { // ret == 1, don't bother squaring or multiplying it - g[w].copyTo(r); - is1 = false; - } else { - while(n > 1) { z.sqrTo(r,r2); z.sqrTo(r2,r); n -= 2; } - if(n > 0) z.sqrTo(r,r2); else { t = r; r = r2; r2 = t; } - z.mulTo(r2,g[w],r); - } - - while(j >= 0 && (e.data[j]&(1< 0) { - x.rShiftTo(g,x); - y.rShiftTo(g,y); -} -while(x.signum() > 0) { - if((i = x.getLowestSetBit()) > 0) x.rShiftTo(i,x); - if((i = y.getLowestSetBit()) > 0) y.rShiftTo(i,y); - if(x.compareTo(y) >= 0) { - x.subTo(y,x); - x.rShiftTo(1,x); - } else { - y.subTo(x,y); - y.rShiftTo(1,y); - } -} -if(g > 0) y.lShiftTo(g,y); -return y; -} - -//(protected) this % n, n < 2^26 -function bnpModInt(n) { -if(n <= 0) return 0; -var d = this.DV%n, r = (this.s<0)?n-1:0; -if(this.t > 0) - if(d == 0) r = this.data[0]%n; - else for(var i = this.t-1; i >= 0; --i) r = (d*r+this.data[i])%n; -return r; -} - -//(public) 1/this % m (HAC 14.61) -function bnModInverse(m) { -var ac = m.isEven(); -if((this.isEven() && ac) || m.signum() == 0) return BigInteger.ZERO; -var u = m.clone(), v = this.clone(); -var a = nbv(1), b = nbv(0), c = nbv(0), d = nbv(1); -while(u.signum() != 0) { - while(u.isEven()) { - u.rShiftTo(1,u); - if(ac) { - if(!a.isEven() || !b.isEven()) { a.addTo(this,a); b.subTo(m,b); } - a.rShiftTo(1,a); - } else if(!b.isEven()) b.subTo(m,b); - b.rShiftTo(1,b); - } - while(v.isEven()) { - v.rShiftTo(1,v); - if(ac) { - if(!c.isEven() || !d.isEven()) { c.addTo(this,c); d.subTo(m,d); } - c.rShiftTo(1,c); - } else if(!d.isEven()) d.subTo(m,d); - d.rShiftTo(1,d); - } - if(u.compareTo(v) >= 0) { - u.subTo(v,u); - if(ac) a.subTo(c,a); - b.subTo(d,b); - } else { - v.subTo(u,v); - if(ac) c.subTo(a,c); - d.subTo(b,d); - } -} -if(v.compareTo(BigInteger.ONE) != 0) return BigInteger.ZERO; -if(d.compareTo(m) >= 0) return d.subtract(m); -if(d.signum() < 0) d.addTo(m,d); else return d; -if(d.signum() < 0) return d.add(m); else return d; -} - -var lowprimes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509]; -var lplim = (1<<26)/lowprimes[lowprimes.length-1]; - -//(public) test primality with certainty >= 1-.5^t -function bnIsProbablePrime(t) { -var i, x = this.abs(); -if(x.t == 1 && x.data[0] <= lowprimes[lowprimes.length-1]) { - for(i = 0; i < lowprimes.length; ++i) - if(x.data[0] == lowprimes[i]) return true; - return false; -} -if(x.isEven()) return false; -i = 1; -while(i < lowprimes.length) { - var m = lowprimes[i], j = i+1; - while(j < lowprimes.length && m < lplim) m *= lowprimes[j++]; - m = x.modInt(m); - while(i < j) if(m%lowprimes[i++] == 0) return false; -} -return x.millerRabin(t); -} - -//(protected) true if probably prime (HAC 4.24, Miller-Rabin) -function bnpMillerRabin(t) { -var n1 = this.subtract(BigInteger.ONE); -var k = n1.getLowestSetBit(); -if(k <= 0) return false; -var r = n1.shiftRight(k); -var prng = bnGetPrng(); -var a; -for(var i = 0; i < t; ++i) { - // select witness 'a' at random from between 1 and n1 - do { - a = new BigInteger(this.bitLength(), prng); - } - while(a.compareTo(BigInteger.ONE) <= 0 || a.compareTo(n1) >= 0); - var y = a.modPow(r,this); - if(y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) { - var j = 1; - while(j++ < k && y.compareTo(n1) != 0) { - y = y.modPowInt(2,this); - if(y.compareTo(BigInteger.ONE) == 0) return false; - } - if(y.compareTo(n1) != 0) return false; - } -} -return true; -} - -// get pseudo random number generator -function bnGetPrng() { - // create prng with api that matches BigInteger secure random - return { - // x is an array to fill with bytes - nextBytes: function(x) { - for(var i = 0; i < x.length; ++i) { - x[i] = Math.floor(Math.random() * 0x0100); + if (data.hasOwnProperty('use_capital-letters')) { + obj['use_capital-letters'] = _ApiClient["default"].convertToType(data['use_capital-letters'], 'String'); + } } - } - }; -} -//protected -BigInteger.prototype.chunkSize = bnpChunkSize; -BigInteger.prototype.toRadix = bnpToRadix; -BigInteger.prototype.fromRadix = bnpFromRadix; -BigInteger.prototype.fromNumber = bnpFromNumber; -BigInteger.prototype.bitwiseTo = bnpBitwiseTo; -BigInteger.prototype.changeBit = bnpChangeBit; -BigInteger.prototype.addTo = bnpAddTo; -BigInteger.prototype.dMultiply = bnpDMultiply; -BigInteger.prototype.dAddOffset = bnpDAddOffset; -BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo; -BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo; -BigInteger.prototype.modInt = bnpModInt; -BigInteger.prototype.millerRabin = bnpMillerRabin; - -//public -BigInteger.prototype.clone = bnClone; -BigInteger.prototype.intValue = bnIntValue; -BigInteger.prototype.byteValue = bnByteValue; -BigInteger.prototype.shortValue = bnShortValue; -BigInteger.prototype.signum = bnSigNum; -BigInteger.prototype.toByteArray = bnToByteArray; -BigInteger.prototype.equals = bnEquals; -BigInteger.prototype.min = bnMin; -BigInteger.prototype.max = bnMax; -BigInteger.prototype.and = bnAnd; -BigInteger.prototype.or = bnOr; -BigInteger.prototype.xor = bnXor; -BigInteger.prototype.andNot = bnAndNot; -BigInteger.prototype.not = bnNot; -BigInteger.prototype.shiftLeft = bnShiftLeft; -BigInteger.prototype.shiftRight = bnShiftRight; -BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit; -BigInteger.prototype.bitCount = bnBitCount; -BigInteger.prototype.testBit = bnTestBit; -BigInteger.prototype.setBit = bnSetBit; -BigInteger.prototype.clearBit = bnClearBit; -BigInteger.prototype.flipBit = bnFlipBit; -BigInteger.prototype.add = bnAdd; -BigInteger.prototype.subtract = bnSubtract; -BigInteger.prototype.multiply = bnMultiply; -BigInteger.prototype.divide = bnDivide; -BigInteger.prototype.remainder = bnRemainder; -BigInteger.prototype.divideAndRemainder = bnDivideAndRemainder; -BigInteger.prototype.modPow = bnModPow; -BigInteger.prototype.modInverse = bnModInverse; -BigInteger.prototype.pow = bnPow; -BigInteger.prototype.gcd = bnGCD; -BigInteger.prototype.isProbablePrime = bnIsProbablePrime; - -//BigInteger interfaces not implemented in jsbn: - -//BigInteger(int signum, byte[] magnitude) -//double doubleValue() -//float floatValue() -//int hashCode() -//long longValue() -//static BigInteger valueOf(long val) - - -/***/ }), - -/***/ 59477: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + return obj; + } + }]); + return UpdateAccountSettings; +}(); /** - * Javascript implementation of RSA-KEM. - * - * @author Lautaro Cozzani Rodriguez - * @author Dave Longley - * - * Copyright (c) 2014 Lautaro Cozzani - * Copyright (c) 2014 Digital Bazaar, Inc. + * Address + * @member {String} address */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(97456); -__nccwpck_require__(32055); -__nccwpck_require__(27211); - -module.exports = forge.kem = forge.kem || {}; -var BigInteger = forge.jsbn.BigInteger; +UpdateAccountSettings.prototype['address'] = undefined; /** - * The API for the RSA Key Encapsulation Mechanism (RSA-KEM) from ISO 18033-2. + * City + * @member {String} city */ -forge.kem.rsa = {}; +UpdateAccountSettings.prototype['city'] = undefined; /** - * Creates an RSA KEM API object for generating a secret asymmetric key. - * - * The symmetric key may be generated via a call to 'encrypt', which will - * produce a ciphertext to be transmitted to the recipient and a key to be - * kept secret. The ciphertext is a parameter to be passed to 'decrypt' which - * will produce the same secret key for the recipient to use to decrypt a - * message that was encrypted with the secret key. - * - * @param kdf the KDF API to use (eg: new forge.kem.kdf1()). - * @param options the options to use. - * [prng] a custom crypto-secure pseudo-random number generator to use, - * that must define "getBytesSync". + * Company name + * @member {String} company-name */ -forge.kem.rsa.create = function(kdf, options) { - options = options || {}; - var prng = options.prng || forge.random; - - var kem = {}; - - /** - * Generates a secret key and its encapsulation. - * - * @param publicKey the RSA public key to encrypt with. - * @param keyLength the length, in bytes, of the secret key to generate. - * - * @return an object with: - * encapsulation: the ciphertext for generating the secret key, as a - * binary-encoded string of bytes. - * key: the secret key to use for encrypting a message. - */ - kem.encrypt = function(publicKey, keyLength) { - // generate a random r where 1 < r < n - var byteLength = Math.ceil(publicKey.n.bitLength() / 8); - var r; - do { - r = new BigInteger( - forge.util.bytesToHex(prng.getBytesSync(byteLength)), - 16).mod(publicKey.n); - } while(r.compareTo(BigInteger.ONE) <= 0); - - // prepend r with zeros - r = forge.util.hexToBytes(r.toString(16)); - var zeros = byteLength - r.length; - if(zeros > 0) { - r = forge.util.fillString(String.fromCharCode(0), zeros) + r; - } - - // encrypt the random - var encapsulation = publicKey.encrypt(r, 'NONE'); - - // generate the secret key - var key = kdf.generate(r, keyLength); - - return {encapsulation: encapsulation, key: key}; - }; - /** - * Decrypts an encapsulated secret key. - * - * @param privateKey the RSA private key to decrypt with. - * @param encapsulation the ciphertext for generating the secret key, as - * a binary-encoded string of bytes. - * @param keyLength the length, in bytes, of the secret key to generate. - * - * @return the secret key as a binary-encoded string of bytes. - */ - kem.decrypt = function(privateKey, encapsulation, keyLength) { - // decrypt the encapsulation and generate the secret key - var r = privateKey.decrypt(encapsulation, 'NONE'); - return kdf.generate(r, keyLength); - }; +UpdateAccountSettings.prototype['company-name'] = undefined; +/** + * Country + * @member {String} country + */ - return kem; -}; +UpdateAccountSettings.prototype['country'] = undefined; +/** + * Set the account default key based on the DFC key name. Use \"set-original-akeyless-default-key\" to revert to using the original default key of the account. + * @member {String} default-key-name + */ -// TODO: add forge.kem.kdf.create('KDF1', {md: ..., ...}) API? +UpdateAccountSettings.prototype['default-key-name'] = undefined; +/** + * Set the default ttl in minutes for sharing item number between 60 and 43200 + * @member {String} default-share-link-ttl-minutes + */ +UpdateAccountSettings.prototype['default-share-link-ttl-minutes'] = undefined; /** - * Creates a key derivation API object that implements KDF1 per ISO 18033-2. - * - * @param md the hash API to use. - * @param [digestLength] an optional digest length that must be positive and - * less than or equal to md.digestLength. - * - * @return a KDF1 API object. + * If set to true, new versions is enabled by default + * @member {String} default-versioning */ -forge.kem.kdf1 = function(md, digestLength) { - _createKDF(this, md, 0, digestLength || md.digestLength); -}; +UpdateAccountSettings.prototype['default-versioning'] = undefined; /** - * Creates a key derivation API object that implements KDF2 per ISO 18033-2. - * - * @param md the hash API to use. - * @param [digestLength] an optional digest length that must be positive and - * less than or equal to md.digestLength. - * - * @return a KDF2 API object. + * Set to update protection with classic keys state [true/false] + * @member {String} dp-enable-classic-key-protection */ -forge.kem.kdf2 = function(md, digestLength) { - _createKDF(this, md, 1, digestLength || md.digestLength); -}; +UpdateAccountSettings.prototype['dp-enable-classic-key-protection'] = undefined; /** - * Creates a KDF1 or KDF2 API object. - * - * @param md the hash API to use. - * @param counterStart the starting index for the counter. - * @param digestLength the digest length to use. - * - * @return the KDF API object. + * Set the maximum ttl for dynamic secrets + * @member {Number} dynamic-secret-max-ttl */ -function _createKDF(kdf, md, counterStart, digestLength) { - /** - * Generate a key of the specified length. - * - * @param x the binary-encoded byte string to generate a key from. - * @param length the number of bytes to generate (the size of the key). - * - * @return the key as a binary-encoded string. - */ - kdf.generate = function(x, length) { - var key = new forge.util.ByteBuffer(); - // run counter from counterStart to ceil(length / Hash.len) - var k = Math.ceil(length / digestLength) + counterStart; +UpdateAccountSettings.prototype['dynamic-secret-max-ttl'] = undefined; +/** + * Set a maximum ttl for dynamic secrets [true/false] + * @member {String} dynamic-secret-max-ttl-enable + */ - var c = new forge.util.ByteBuffer(); - for(var i = counterStart; i < k; ++i) { - // I2OSP(i, 4): convert counter to an octet string of 4 octets - c.putInt32(i); +UpdateAccountSettings.prototype['dynamic-secret-max-ttl-enable'] = undefined; +/** + * If set to true, new version will be created on update + * @member {String} force-new-versions + */ - // digest 'x' and the counter and add the result to the key - md.start(); - md.update(x + c.getBytes()); - var hash = md.digest(); - key.putBytes(hash.getBytes(digestLength)); - } +UpdateAccountSettings.prototype['force-new-versions'] = undefined; +/** + * Characters that cannot be used for items/targets/roles/auths/event_forwarder names. Empty string will enforce nothing. + * @member {String} invalid-characters + * @default 'notReceivedInvalidCharacter' + */ - // truncate to the correct key length - key.truncate(key.length() - length); - return key.getBytes(); - }; -} +UpdateAccountSettings.prototype['invalid-characters'] = 'notReceivedInvalidCharacter'; +/** + * VersionSettingsObjectType defines object types for account version settings + * @member {String} item-type + */ +UpdateAccountSettings.prototype['item-type'] = undefined; +/** + * Set or unset the default behaviour of items deletion protection [true/false] + * @member {String} items-deletion-protection + */ -/***/ }), +UpdateAccountSettings.prototype['items-deletion-protection'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ 68388: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateAccountSettings.prototype['json'] = false; +/** + * Default ttl + * @member {Number} jwt-ttl-default + */ +UpdateAccountSettings.prototype['jwt-ttl-default'] = undefined; /** - * Cross-browser support for logging in a web application. - * - * @author David I. Lehn - * - * Copyright (c) 2008-2013 Digital Bazaar, Inc. + * Maximum ttl + * @member {Number} jwt-ttl-max */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(97456); -/* LOG API */ -module.exports = forge.log = forge.log || {}; +UpdateAccountSettings.prototype['jwt-ttl-max'] = undefined; +/** + * Minimum ttl + * @member {Number} jwt-ttl-min + */ +UpdateAccountSettings.prototype['jwt-ttl-min'] = undefined; /** - * Application logging system. - * - * Each logger level available as it's own function of the form: - * forge.log.level(category, args...) - * The category is an arbitrary string, and the args are the same as - * Firebug's console.log API. By default the call will be output as: - * 'LEVEL [category] , args[1], ...' - * This enables proper % formatting via the first argument. - * Each category is enabled by default but can be enabled or disabled with - * the setCategoryEnabled() function. + * Lock the account's default protection key, if set - users will not be able to use a different protection key, relevant only if default-key-name is configured [true/false] + * @member {String} lock-default-key */ -// list of known levels -forge.log.levels = [ - 'none', 'error', 'warning', 'info', 'debug', 'verbose', 'max']; -// info on the levels indexed by name: -// index: level index -// name: uppercased display name -var sLevelInfo = {}; -// list of loggers -var sLoggers = []; + +UpdateAccountSettings.prototype['lock-default-key'] = undefined; /** - * Standard console logger. If no console support is enabled this will - * remain null. Check before using. + * Set the maximum rotation interval for rotated secrets auto rotation settings + * @member {Number} max-rotation-interval */ -var sConsoleLogger = null; -// logger flags +UpdateAccountSettings.prototype['max-rotation-interval'] = undefined; /** - * Lock the level at the current value. Used in cases where user config may - * set the level such that only critical messages are seen but more verbose - * messages are needed for debugging or other purposes. + * Set a maximum rotation interval for rotated secrets auto rotation settings [true/false] + * @member {String} max-rotation-interval-enable */ -forge.log.LEVEL_LOCKED = (1 << 1); + +UpdateAccountSettings.prototype['max-rotation-interval-enable'] = undefined; /** - * Always call log function. By default, the logging system will check the - * message level against logger.level before calling the log function. This - * flag allows the function to do its own check. + * Max versions + * @member {String} max-versions */ -forge.log.NO_LEVEL_CHECK = (1 << 2); + +UpdateAccountSettings.prototype['max-versions'] = undefined; /** - * Perform message interpolation with the passed arguments. "%" style - * fields in log messages will be replaced by arguments as needed. Some - * loggers, such as Firebug, may do this automatically. The original log - * message will be available as 'message' and the interpolated version will - * be available as 'fullMessage'. + * Password length between 5 - to 50 characters + * @member {Number} password-length */ -forge.log.INTERPOLATE = (1 << 3); -// setup each log level -for(var i = 0; i < forge.log.levels.length; ++i) { - var level = forge.log.levels[i]; - sLevelInfo[level] = { - index: i, - name: level.toUpperCase() - }; -} +UpdateAccountSettings.prototype['password-length'] = undefined; +/** + * Phone number + * @member {String} phone + */ +UpdateAccountSettings.prototype['phone'] = undefined; /** - * Message logger. Will dispatch a message to registered loggers as needed. - * - * @param message message object + * Postal code + * @member {String} postal-code */ -forge.log.logMessage = function(message) { - var messageLevelIndex = sLevelInfo[message.level].index; - for(var i = 0; i < sLoggers.length; ++i) { - var logger = sLoggers[i]; - if(logger.flags & forge.log.NO_LEVEL_CHECK) { - logger.f(message); - } else { - // get logger level - var loggerLevelIndex = sLevelInfo[logger.level].index; - // check level - if(messageLevelIndex <= loggerLevelIndex) { - // message critical enough, call logger - logger.f(logger, message); - } - } - } -}; +UpdateAccountSettings.prototype['postal-code'] = undefined; /** - * Sets the 'standard' key on a message object to: - * "LEVEL [category] " + message - * - * @param message a message log object + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -forge.log.prepareStandard = function(message) { - if(!('standard' in message)) { - message.standard = - sLevelInfo[message.level].name + - //' ' + +message.timestamp + - ' [' + message.category + '] ' + - message.message; - } -}; +UpdateAccountSettings.prototype['token'] = undefined; /** - * Sets the 'full' key on a message object to the original message - * interpolated via % formatting with the message arguments. - * - * @param message a message log object. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -forge.log.prepareFull = function(message) { - if(!('full' in message)) { - // copy args and insert message at the front - var args = [message.message]; - args = args.concat([] || 0); - // format the message - message.full = forge.util.format.apply(this, args); - } -}; +UpdateAccountSettings.prototype['uid-token'] = undefined; /** - * Applies both preparseStandard() and prepareFull() to a message object and - * store result in 'standardFull'. - * - * @param message a message log object. + * Enable event for objects that have not been used or changed [true/false] + * @member {String} usage-event-enable */ -forge.log.prepareStandardFull = function(message) { - if(!('standardFull' in message)) { - // FIXME implement 'standardFull' logging - forge.log.prepareStandard(message); - message.standardFull = message.standard; - } -}; -// create log level functions -if(true) { - // levels for which we want functions - var levels = ['error', 'warning', 'info', 'debug', 'verbose']; - for(var i = 0; i < levels.length; ++i) { - // wrap in a function to ensure proper level var is passed - (function(level) { - // create function for this level - forge.log[level] = function(category, message/*, args...*/) { - // convert arguments to real array, remove category and message - var args = Array.prototype.slice.call(arguments).slice(2); - // create message object - // Note: interpolation and standard formatting is done lazily - var msg = { - timestamp: new Date(), - level: level, - category: category, - message: message, - 'arguments': args - /*standard*/ - /*full*/ - /*fullMessage*/ - }; - // process this message - forge.log.logMessage(msg); - }; - })(levels[i]); - } -} +UpdateAccountSettings.prototype['usage-event-enable'] = undefined; +/** + * Interval by days for unused objects. Default and minimum interval is 90 days + * @member {Number} usage-event-interval + */ +UpdateAccountSettings.prototype['usage-event-interval'] = undefined; /** - * Creates a new logger with specified custom logging function. - * - * The logging function has a signature of: - * function(logger, message) - * logger: current logger - * message: object: - * level: level id - * category: category - * message: string message - * arguments: Array of extra arguments - * fullMessage: interpolated message and arguments if INTERPOLATE flag set - * - * @param logFunction a logging function which takes a log message object - * as a parameter. - * - * @return a logger object. + * Usage event is supported for auth method or secrets-and-keys [auth/item] + * @member {String} usage-event-object-type */ -forge.log.makeLogger = function(logFunction) { - var logger = { - flags: 0, - f: logFunction - }; - forge.log.setLevel(logger, 'none'); - return logger; -}; +UpdateAccountSettings.prototype['usage-event-object-type'] = undefined; /** - * Sets the current log level on a logger. - * - * @param logger the target logger. - * @param level the new maximum log level as a string. - * - * @return true if set, false if not. + * Password must contain lower case letters [true/false] + * @member {String} use-lower-letters */ -forge.log.setLevel = function(logger, level) { - var rval = false; - if(logger && !(logger.flags & forge.log.LEVEL_LOCKED)) { - for(var i = 0; i < forge.log.levels.length; ++i) { - var aValidLevel = forge.log.levels[i]; - if(level == aValidLevel) { - // set level - logger.level = level; - rval = true; - break; - } - } - } - return rval; -}; +UpdateAccountSettings.prototype['use-lower-letters'] = undefined; +/** + * Password must contain numbers [true/false] + * @member {String} use-numbers + */ +UpdateAccountSettings.prototype['use-numbers'] = undefined; /** - * Locks the log level at its current value. - * - * @param logger the target logger. - * @param lock boolean lock value, default to true. + * Password must contain special characters [true/false] + * @member {String} use-special-characters */ -forge.log.lock = function(logger, lock) { - if(typeof lock === 'undefined' || lock) { - logger.flags |= forge.log.LEVEL_LOCKED; - } else { - logger.flags &= ~forge.log.LEVEL_LOCKED; - } -}; +UpdateAccountSettings.prototype['use-special-characters'] = undefined; /** - * Adds a logger. - * - * @param logger the logger object. + * Password must contain capital letters [true/false] + * @member {String} use_capital-letters */ -forge.log.addLogger = function(logger) { - sLoggers.push(logger); -}; -// setup the console logger if possible, else create fake console.log -if(typeof(console) !== 'undefined' && 'log' in console) { - var logger; - if(console.error && console.warn && console.info && console.debug) { - // looks like Firebug-style logging is available - // level handlers map - var levelHandlers = { - error: console.error, - warning: console.warn, - info: console.info, - debug: console.debug, - verbose: console.debug - }; - var f = function(logger, message) { - forge.log.prepareStandard(message); - var handler = levelHandlers[message.level]; - // prepend standard message and concat args - var args = [message.standard]; - args = args.concat(message['arguments'].slice()); - // apply to low-level console function - handler.apply(console, args); - }; - logger = forge.log.makeLogger(f); - } else { - // only appear to have basic console.log - var f = function(logger, message) { - forge.log.prepareStandardFull(message); - console.log(message.standardFull); - }; - logger = forge.log.makeLogger(f); - } - forge.log.setLevel(logger, 'debug'); - forge.log.addLogger(logger); - sConsoleLogger = logger; -} else { - // define fake console.log to avoid potential script errors on - // browsers that do not have console logging - console = { - log: function() {} - }; -} +UpdateAccountSettings.prototype['use_capital-letters'] = undefined; +var _default = UpdateAccountSettings; +exports["default"] = _default; -/* - * Check for logging control query vars in current URL. - * - * console.level= - * Set's the console log level by name. Useful to override defaults and - * allow more verbose logging before a user config is loaded. - * - * console.lock= - * Lock the console log level at whatever level it is set at. This is run - * after console.level is processed. Useful to force a level of verbosity - * that could otherwise be limited by a user config. - */ -if(sConsoleLogger !== null && - typeof window !== 'undefined' && window.location -) { - var query = new URL(window.location.href).searchParams; - if(query.has('console.level')) { - // set with last value - forge.log.setLevel( - sConsoleLogger, query.get('console.level').slice(-1)[0]); - } - if(query.has('console.lock')) { - // set with last value - var lock = query.get('console.lock').slice(-1)[0]; - if(lock == 'true') { - forge.log.lock(sConsoleLogger); - } - } -} +/***/ }), -// provide public access to console logger -forge.log.consoleLogger = sConsoleLogger; +/***/ 73106: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +"use strict"; -/***/ }), -/***/ 85472: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Node.js module for all known Forge message digests. - * - * @author Dave Longley - * - * Copyright 2011-2017 Digital Bazaar, Inc. + * The UpdateAccountSettingsOutput model module. + * @module model/UpdateAccountSettingsOutput + * @version 3.6.3 */ -module.exports = __nccwpck_require__(46777); +var UpdateAccountSettingsOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAccountSettingsOutput. + * @alias module:model/UpdateAccountSettingsOutput + */ + function UpdateAccountSettingsOutput() { + _classCallCheck(this, UpdateAccountSettingsOutput); + + UpdateAccountSettingsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -__nccwpck_require__(86138); -__nccwpck_require__(96485); -__nccwpck_require__(70855); -__nccwpck_require__(12734); + _createClass(UpdateAccountSettingsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateAccountSettingsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAccountSettingsOutput} obj Optional instance to populate. + * @return {module:model/UpdateAccountSettingsOutput} The populated UpdateAccountSettingsOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAccountSettingsOutput(); -/***/ }), + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); + } + } -/***/ 46777: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + return obj; + } + }]); + return UpdateAccountSettingsOutput; +}(); /** - * Node.js module for Forge message digests. - * - * @author Dave Longley - * - * Copyright 2011-2017 Digital Bazaar, Inc. + * @member {Boolean} updated */ -var forge = __nccwpck_require__(88561); -module.exports = forge.md = forge.md || {}; -forge.md.algorithms = forge.md.algorithms || {}; +UpdateAccountSettingsOutput.prototype['updated'] = undefined; +var _default = UpdateAccountSettingsOutput; +exports["default"] = _default; /***/ }), -/***/ 86138: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 68146: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** - * Message Digest Algorithm 5 with 128-bit digest (MD5) implementation. - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. - */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(46777); -__nccwpck_require__(97456); +"use strict"; -var md5 = module.exports = forge.md5 = forge.md5 || {}; -forge.md.md5 = forge.md.algorithms.md5 = md5; -/** - * Creates an MD5 message digest object. - * - * @return a message digest object. - */ -md5.create = function() { - // do initialization as necessary - if(!_initialized) { - _init(); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // MD5 state contains four 32-bit integers - var _state = null; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // input buffer - var _input = forge.util.createBuffer(); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // used for word storage - var _w = new Array(16); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // message digest object - var md = { - algorithm: 'md5', - blockLength: 64, - digestLength: 16, - // 56-bit length of message so far (does not including padding) - messageLength: 0, - // true message length - fullMessageLength: null, - // size of message length in bytes - messageLengthSize: 8 - }; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +/** + * The UpdateArtifactoryTarget model module. + * @module model/UpdateArtifactoryTarget + * @version 3.6.3 + */ +var UpdateArtifactoryTarget = /*#__PURE__*/function () { /** - * Starts the digest. - * - * @return this digest object. - */ - md.start = function() { - // up to 56-bit message length for convenience - md.messageLength = 0; - - // full message length (set md.messageLength64 for backwards-compatibility) - md.fullMessageLength = md.messageLength64 = []; - var int32s = md.messageLengthSize / 4; - for(var i = 0; i < int32s; ++i) { - md.fullMessageLength.push(0); - } - _input = forge.util.createBuffer(); - _state = { - h0: 0x67452301, - h1: 0xEFCDAB89, - h2: 0x98BADCFE, - h3: 0x10325476 - }; - return md; - }; - // start digest automatically for first time - md.start(); + * Constructs a new UpdateArtifactoryTarget. + * @alias module:model/UpdateArtifactoryTarget + * @param artifactoryAdminName {String} Artifactory Admin Name + * @param artifactoryAdminPwd {String} Artifactory Admin password + * @param baseUrl {String} Base URL + * @param name {String} Target name + */ + function UpdateArtifactoryTarget(artifactoryAdminName, artifactoryAdminPwd, baseUrl, name) { + _classCallCheck(this, UpdateArtifactoryTarget); + UpdateArtifactoryTarget.initialize(this, artifactoryAdminName, artifactoryAdminPwd, baseUrl, name); + } /** - * Updates the digest with the given message input. The given input can - * treated as raw input (no encoding will be applied) or an encoding of - * 'utf8' maybe given to encode the input using UTF-8. - * - * @param msg the message input to update with. - * @param encoding the encoding to use (default: 'raw', other: 'utf8'). - * - * @return this digest object. + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. */ - md.update = function(msg, encoding) { - if(encoding === 'utf8') { - msg = forge.util.encodeUtf8(msg); - } - // update message length - var len = msg.length; - md.messageLength += len; - len = [(len / 0x100000000) >>> 0, len >>> 0]; - for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { - md.fullMessageLength[i] += len[1]; - len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); - md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; - len[0] = (len[1] / 0x100000000) >>> 0; + + _createClass(UpdateArtifactoryTarget, null, [{ + key: "initialize", + value: function initialize(obj, artifactoryAdminName, artifactoryAdminPwd, baseUrl, name) { + obj['artifactory-admin-name'] = artifactoryAdminName; + obj['artifactory-admin-pwd'] = artifactoryAdminPwd; + obj['base-url'] = baseUrl; + obj['name'] = name; } + /** + * Constructs a UpdateArtifactoryTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateArtifactoryTarget} obj Optional instance to populate. + * @return {module:model/UpdateArtifactoryTarget} The populated UpdateArtifactoryTarget instance. + */ - // add bytes to input buffer - _input.putBytes(msg); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateArtifactoryTarget(); - // process bytes - _update(_state, _w, _input); + if (data.hasOwnProperty('artifactory-admin-name')) { + obj['artifactory-admin-name'] = _ApiClient["default"].convertToType(data['artifactory-admin-name'], 'String'); + } - // compact input buffer every 2K or if empty - if(_input.read > 2048 || _input.length() === 0) { - _input.compact(); - } + if (data.hasOwnProperty('artifactory-admin-pwd')) { + obj['artifactory-admin-pwd'] = _ApiClient["default"].convertToType(data['artifactory-admin-pwd'], 'String'); + } - return md; - }; + if (data.hasOwnProperty('base-url')) { + obj['base-url'] = _ApiClient["default"].convertToType(data['base-url'], 'String'); + } - /** - * Produces the digest. - * - * @return a byte buffer containing the digest value. - */ - md.digest = function() { - /* Note: Here we copy the remaining bytes in the input buffer and - add the appropriate MD5 padding. Then we do the final update - on a copy of the state so that if the user wants to get - intermediate digests they can do so. */ - - /* Determine the number of bytes that must be added to the message - to ensure its length is congruent to 448 mod 512. In other words, - the data to be digested must be a multiple of 512 bits (or 128 bytes). - This data includes the message, some padding, and the length of the - message. Since the length of the message will be encoded as 8 bytes (64 - bits), that means that the last segment of the data must have 56 bytes - (448 bits) of message and padding. Therefore, the length of the message - plus the padding must be congruent to 448 mod 512 because - 512 - 128 = 448. - - In order to fill up the message length it must be filled with - padding that begins with 1 bit followed by all 0 bits. Padding - must *always* be present, so if the message length is already - congruent to 448 mod 512, then 512 padding bits must be added. */ - - var finalBlock = forge.util.createBuffer(); - finalBlock.putBytes(_input.bytes()); - - // compute remaining size to be digested (include message length size) - var remaining = ( - md.fullMessageLength[md.fullMessageLength.length - 1] + - md.messageLengthSize); - - // add padding for overflow blockSize - overflow - // _padding starts with 1 byte with first bit is set (byte value 128), then - // there may be up to (blockSize - 1) other pad bytes - var overflow = remaining & (md.blockLength - 1); - finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); - - // serialize message length in bits in little-endian order; since length - // is stored in bytes we multiply by 8 and add carry - var bits, carry = 0; - for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { - bits = md.fullMessageLength[i] * 8 + carry; - carry = (bits / 0x100000000) >>> 0; - finalBlock.putInt32Le(bits >>> 0); - } - - var s2 = { - h0: _state.h0, - h1: _state.h1, - h2: _state.h2, - h3: _state.h3 - }; - _update(s2, _w, finalBlock); - var rval = forge.util.createBuffer(); - rval.putInt32Le(s2.h0); - rval.putInt32Le(s2.h1); - rval.putInt32Le(s2.h2); - rval.putInt32Le(s2.h3); - return rval; - }; + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - return md; -}; - -// padding, constant tables for calculating md5 -var _padding = null; -var _g = null; -var _r = null; -var _k = null; -var _initialized = false; - -/** - * Initializes the constant tables. - */ -function _init() { - // create padding - _padding = String.fromCharCode(128); - _padding += forge.util.fillString(String.fromCharCode(0x00), 64); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - // g values - _g = [ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 1, 6, 11, 0, 5, 10, 15, 4, 9, 14, 3, 8, 13, 2, 7, 12, - 5, 8, 11, 14, 1, 4, 7, 10, 13, 0, 3, 6, 9, 12, 15, 2, - 0, 7, 14, 5, 12, 3, 10, 1, 8, 15, 6, 13, 4, 11, 2, 9]; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - // rounds table - _r = [ - 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, - 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, - 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, - 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - // get the result of abs(sin(i + 1)) as a 32-bit integer - _k = new Array(64); - for(var i = 0; i < 64; ++i) { - _k[i] = Math.floor(Math.abs(Math.sin(i + 1)) * 0x100000000); - } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - // now initialized - _initialized = true; -} + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + } + + return obj; + } + }]); + return UpdateArtifactoryTarget; +}(); /** - * Updates an MD5 state with the given byte buffer. - * - * @param s the MD5 state to update. - * @param w the array to use to store words. - * @param bytes the byte buffer to update with. + * Artifactory Admin Name + * @member {String} artifactory-admin-name */ -function _update(s, w, bytes) { - // consume 512 bit (64 byte) chunks - var t, a, b, c, d, f, r, i; - var len = bytes.length(); - while(len >= 64) { - // initialize hash value for this chunk - a = s.h0; - b = s.h1; - c = s.h2; - d = s.h3; - // round 1 - for(i = 0; i < 16; ++i) { - w[i] = bytes.getInt32Le(); - f = d ^ (b & (c ^ d)); - t = (a + f + _k[i] + w[i]); - r = _r[i]; - a = d; - d = c; - c = b; - b += (t << r) | (t >>> (32 - r)); - } - // round 2 - for(; i < 32; ++i) { - f = c ^ (d & (b ^ c)); - t = (a + f + _k[i] + w[_g[i]]); - r = _r[i]; - a = d; - d = c; - c = b; - b += (t << r) | (t >>> (32 - r)); - } - // round 3 - for(; i < 48; ++i) { - f = b ^ c ^ d; - t = (a + f + _k[i] + w[_g[i]]); - r = _r[i]; - a = d; - d = c; - c = b; - b += (t << r) | (t >>> (32 - r)); - } - // round 4 - for(; i < 64; ++i) { - f = c ^ (b | ~d); - t = (a + f + _k[i] + w[_g[i]]); - r = _r[i]; - a = d; - d = c; - c = b; - b += (t << r) | (t >>> (32 - r)); - } - // update hash state - s.h0 = (s.h0 + a) | 0; - s.h1 = (s.h1 + b) | 0; - s.h2 = (s.h2 + c) | 0; - s.h3 = (s.h3 + d) | 0; - - len -= 64; - } -} - - -/***/ }), - -/***/ 57220: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateArtifactoryTarget.prototype['artifactory-admin-name'] = undefined; +/** + * Artifactory Admin password + * @member {String} artifactory-admin-pwd + */ +UpdateArtifactoryTarget.prototype['artifactory-admin-pwd'] = undefined; /** - * Node.js module for Forge mask generation functions. - * - * @author Stefan Siegl - * - * Copyright 2012 Stefan Siegl + * Base URL + * @member {String} base-url */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(2893); -module.exports = forge.mgf = forge.mgf || {}; -forge.mgf.mgf1 = forge.mgf1; +UpdateArtifactoryTarget.prototype['base-url'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ +UpdateArtifactoryTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ -/***/ }), +UpdateArtifactoryTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ 2893: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateArtifactoryTarget.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ +UpdateArtifactoryTarget.prototype['keep-prev-version'] = undefined; /** - * Javascript implementation of mask generation function MGF1. - * - * @author Stefan Siegl - * @author Dave Longley - * - * Copyright (c) 2012 Stefan Siegl - * Copyright (c) 2014 Digital Bazaar, Inc. + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(97456); -forge.mgf = forge.mgf || {}; -var mgf1 = module.exports = forge.mgf.mgf1 = forge.mgf1 = forge.mgf1 || {}; +UpdateArtifactoryTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ +UpdateArtifactoryTarget.prototype['max-versions'] = undefined; /** - * Creates a MGF1 mask generation function object. - * - * @param md the message digest API to use (eg: forge.md.sha1.create()). - * - * @return a mask generation function object. + * Target name + * @member {String} name */ -mgf1.create = function(md) { - var mgf = { - /** - * Generate mask of specified length. - * - * @param {String} seed The seed for mask generation. - * @param maskLen Number of bytes to generate. - * @return {String} The generated mask. - */ - generate: function(seed, maskLen) { - /* 2. Let T be the empty octet string. */ - var t = new forge.util.ByteBuffer(); - /* 3. For counter from 0 to ceil(maskLen / hLen), do the following: */ - var len = Math.ceil(maskLen / md.digestLength); - for(var i = 0; i < len; i++) { - /* a. Convert counter to an octet string C of length 4 octets */ - var c = new forge.util.ByteBuffer(); - c.putInt32(i); +UpdateArtifactoryTarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ - /* b. Concatenate the hash of the seed mgfSeed and C to the octet - * string T: */ - md.start(); - md.update(seed + c.getBytes()); - t.putBuffer(md.digest()); - } +UpdateArtifactoryTarget.prototype['new-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - /* Output the leading maskLen octets of T as the octet string mask. */ - t.truncate(t.length() - maskLen); - return t.getBytes(); - } - }; +UpdateArtifactoryTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - return mgf; -}; +UpdateArtifactoryTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ +UpdateArtifactoryTarget.prototype['update-version'] = undefined; +var _default = UpdateArtifactoryTarget; +exports["default"] = _default; /***/ }), -/***/ 10245: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 95639: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** - * Object IDs for ASN.1. - * - * @author Dave Longley - * - * Copyright (c) 2010-2013 Digital Bazaar, Inc. - */ -var forge = __nccwpck_require__(88561); - -forge.pki = forge.pki || {}; -var oids = module.exports = forge.pki.oids = forge.oids = forge.oids || {}; - -// set id to name mapping and name to id mapping -function _IN(id, name) { - oids[id] = name; - oids[name] = id; -} -// set id to name mapping only -function _I_(id, name) { - oids[id] = name; -} - -// algorithm OIDs -_IN('1.2.840.113549.1.1.1', 'rsaEncryption'); -// Note: md2 & md4 not implemented -//_IN('1.2.840.113549.1.1.2', 'md2WithRSAEncryption'); -//_IN('1.2.840.113549.1.1.3', 'md4WithRSAEncryption'); -_IN('1.2.840.113549.1.1.4', 'md5WithRSAEncryption'); -_IN('1.2.840.113549.1.1.5', 'sha1WithRSAEncryption'); -_IN('1.2.840.113549.1.1.7', 'RSAES-OAEP'); -_IN('1.2.840.113549.1.1.8', 'mgf1'); -_IN('1.2.840.113549.1.1.9', 'pSpecified'); -_IN('1.2.840.113549.1.1.10', 'RSASSA-PSS'); -_IN('1.2.840.113549.1.1.11', 'sha256WithRSAEncryption'); -_IN('1.2.840.113549.1.1.12', 'sha384WithRSAEncryption'); -_IN('1.2.840.113549.1.1.13', 'sha512WithRSAEncryption'); -// Edwards-curve Digital Signature Algorithm (EdDSA) Ed25519 -_IN('1.3.101.112', 'EdDSA25519'); - -_IN('1.2.840.10040.4.3', 'dsa-with-sha1'); - -_IN('1.3.14.3.2.7', 'desCBC'); - -_IN('1.3.14.3.2.26', 'sha1'); -// Deprecated equivalent of sha1WithRSAEncryption -_IN('1.3.14.3.2.29', 'sha1WithRSASignature'); -_IN('2.16.840.1.101.3.4.2.1', 'sha256'); -_IN('2.16.840.1.101.3.4.2.2', 'sha384'); -_IN('2.16.840.1.101.3.4.2.3', 'sha512'); -_IN('2.16.840.1.101.3.4.2.4', 'sha224'); -_IN('2.16.840.1.101.3.4.2.5', 'sha512-224'); -_IN('2.16.840.1.101.3.4.2.6', 'sha512-256'); -_IN('1.2.840.113549.2.2', 'md2'); -_IN('1.2.840.113549.2.5', 'md5'); - -// pkcs#7 content types -_IN('1.2.840.113549.1.7.1', 'data'); -_IN('1.2.840.113549.1.7.2', 'signedData'); -_IN('1.2.840.113549.1.7.3', 'envelopedData'); -_IN('1.2.840.113549.1.7.4', 'signedAndEnvelopedData'); -_IN('1.2.840.113549.1.7.5', 'digestedData'); -_IN('1.2.840.113549.1.7.6', 'encryptedData'); - -// pkcs#9 oids -_IN('1.2.840.113549.1.9.1', 'emailAddress'); -_IN('1.2.840.113549.1.9.2', 'unstructuredName'); -_IN('1.2.840.113549.1.9.3', 'contentType'); -_IN('1.2.840.113549.1.9.4', 'messageDigest'); -_IN('1.2.840.113549.1.9.5', 'signingTime'); -_IN('1.2.840.113549.1.9.6', 'counterSignature'); -_IN('1.2.840.113549.1.9.7', 'challengePassword'); -_IN('1.2.840.113549.1.9.8', 'unstructuredAddress'); -_IN('1.2.840.113549.1.9.14', 'extensionRequest'); - -_IN('1.2.840.113549.1.9.20', 'friendlyName'); -_IN('1.2.840.113549.1.9.21', 'localKeyId'); -_IN('1.2.840.113549.1.9.22.1', 'x509Certificate'); - -// pkcs#12 safe bags -_IN('1.2.840.113549.1.12.10.1.1', 'keyBag'); -_IN('1.2.840.113549.1.12.10.1.2', 'pkcs8ShroudedKeyBag'); -_IN('1.2.840.113549.1.12.10.1.3', 'certBag'); -_IN('1.2.840.113549.1.12.10.1.4', 'crlBag'); -_IN('1.2.840.113549.1.12.10.1.5', 'secretBag'); -_IN('1.2.840.113549.1.12.10.1.6', 'safeContentsBag'); - -// password-based-encryption for pkcs#12 -_IN('1.2.840.113549.1.5.13', 'pkcs5PBES2'); -_IN('1.2.840.113549.1.5.12', 'pkcs5PBKDF2'); - -_IN('1.2.840.113549.1.12.1.1', 'pbeWithSHAAnd128BitRC4'); -_IN('1.2.840.113549.1.12.1.2', 'pbeWithSHAAnd40BitRC4'); -_IN('1.2.840.113549.1.12.1.3', 'pbeWithSHAAnd3-KeyTripleDES-CBC'); -_IN('1.2.840.113549.1.12.1.4', 'pbeWithSHAAnd2-KeyTripleDES-CBC'); -_IN('1.2.840.113549.1.12.1.5', 'pbeWithSHAAnd128BitRC2-CBC'); -_IN('1.2.840.113549.1.12.1.6', 'pbewithSHAAnd40BitRC2-CBC'); - -// hmac OIDs -_IN('1.2.840.113549.2.7', 'hmacWithSHA1'); -_IN('1.2.840.113549.2.8', 'hmacWithSHA224'); -_IN('1.2.840.113549.2.9', 'hmacWithSHA256'); -_IN('1.2.840.113549.2.10', 'hmacWithSHA384'); -_IN('1.2.840.113549.2.11', 'hmacWithSHA512'); - -// symmetric key algorithm oids -_IN('1.2.840.113549.3.7', 'des-EDE3-CBC'); -_IN('2.16.840.1.101.3.4.1.2', 'aes128-CBC'); -_IN('2.16.840.1.101.3.4.1.22', 'aes192-CBC'); -_IN('2.16.840.1.101.3.4.1.42', 'aes256-CBC'); - -// certificate issuer/subject OIDs -_IN('2.5.4.3', 'commonName'); -_IN('2.5.4.4', 'surname'); -_IN('2.5.4.5', 'serialNumber'); -_IN('2.5.4.6', 'countryName'); -_IN('2.5.4.7', 'localityName'); -_IN('2.5.4.8', 'stateOrProvinceName'); -_IN('2.5.4.9', 'streetAddress'); -_IN('2.5.4.10', 'organizationName'); -_IN('2.5.4.11', 'organizationalUnitName'); -_IN('2.5.4.12', 'title'); -_IN('2.5.4.13', 'description'); -_IN('2.5.4.15', 'businessCategory'); -_IN('2.5.4.17', 'postalCode'); -_IN('2.5.4.42', 'givenName'); -_IN('1.3.6.1.4.1.311.60.2.1.2', 'jurisdictionOfIncorporationStateOrProvinceName'); -_IN('1.3.6.1.4.1.311.60.2.1.3', 'jurisdictionOfIncorporationCountryName'); - -// X.509 extension OIDs -_IN('2.16.840.1.113730.1.1', 'nsCertType'); -_IN('2.16.840.1.113730.1.13', 'nsComment'); // deprecated in theory; still widely used -_I_('2.5.29.1', 'authorityKeyIdentifier'); // deprecated, use .35 -_I_('2.5.29.2', 'keyAttributes'); // obsolete use .37 or .15 -_I_('2.5.29.3', 'certificatePolicies'); // deprecated, use .32 -_I_('2.5.29.4', 'keyUsageRestriction'); // obsolete use .37 or .15 -_I_('2.5.29.5', 'policyMapping'); // deprecated use .33 -_I_('2.5.29.6', 'subtreesConstraint'); // obsolete use .30 -_I_('2.5.29.7', 'subjectAltName'); // deprecated use .17 -_I_('2.5.29.8', 'issuerAltName'); // deprecated use .18 -_I_('2.5.29.9', 'subjectDirectoryAttributes'); -_I_('2.5.29.10', 'basicConstraints'); // deprecated use .19 -_I_('2.5.29.11', 'nameConstraints'); // deprecated use .30 -_I_('2.5.29.12', 'policyConstraints'); // deprecated use .36 -_I_('2.5.29.13', 'basicConstraints'); // deprecated use .19 -_IN('2.5.29.14', 'subjectKeyIdentifier'); -_IN('2.5.29.15', 'keyUsage'); -_I_('2.5.29.16', 'privateKeyUsagePeriod'); -_IN('2.5.29.17', 'subjectAltName'); -_IN('2.5.29.18', 'issuerAltName'); -_IN('2.5.29.19', 'basicConstraints'); -_I_('2.5.29.20', 'cRLNumber'); -_I_('2.5.29.21', 'cRLReason'); -_I_('2.5.29.22', 'expirationDate'); -_I_('2.5.29.23', 'instructionCode'); -_I_('2.5.29.24', 'invalidityDate'); -_I_('2.5.29.25', 'cRLDistributionPoints'); // deprecated use .31 -_I_('2.5.29.26', 'issuingDistributionPoint'); // deprecated use .28 -_I_('2.5.29.27', 'deltaCRLIndicator'); -_I_('2.5.29.28', 'issuingDistributionPoint'); -_I_('2.5.29.29', 'certificateIssuer'); -_I_('2.5.29.30', 'nameConstraints'); -_IN('2.5.29.31', 'cRLDistributionPoints'); -_IN('2.5.29.32', 'certificatePolicies'); -_I_('2.5.29.33', 'policyMappings'); -_I_('2.5.29.34', 'policyConstraints'); // deprecated use .36 -_IN('2.5.29.35', 'authorityKeyIdentifier'); -_I_('2.5.29.36', 'policyConstraints'); -_IN('2.5.29.37', 'extKeyUsage'); -_I_('2.5.29.46', 'freshestCRL'); -_I_('2.5.29.54', 'inhibitAnyPolicy'); - -// extKeyUsage purposes -_IN('1.3.6.1.4.1.11129.2.4.2', 'timestampList'); -_IN('1.3.6.1.5.5.7.1.1', 'authorityInfoAccess'); -_IN('1.3.6.1.5.5.7.3.1', 'serverAuth'); -_IN('1.3.6.1.5.5.7.3.2', 'clientAuth'); -_IN('1.3.6.1.5.5.7.3.3', 'codeSigning'); -_IN('1.3.6.1.5.5.7.3.4', 'emailProtection'); -_IN('1.3.6.1.5.5.7.3.8', 'timeStamping'); - - -/***/ }), - -/***/ 6959: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +"use strict"; -/** - * Password-based encryption functions. - * - * @author Dave Longley - * @author Stefan Siegl - * - * Copyright (c) 2010-2013 Digital Bazaar, Inc. - * Copyright (c) 2012 Stefan Siegl - * - * An EncryptedPrivateKeyInfo: - * - * EncryptedPrivateKeyInfo ::= SEQUENCE { - * encryptionAlgorithm EncryptionAlgorithmIdentifier, - * encryptedData EncryptedData } - * - * EncryptionAlgorithmIdentifier ::= AlgorithmIdentifier - * - * EncryptedData ::= OCTET STRING - */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(39445); -__nccwpck_require__(27357); -__nccwpck_require__(93537); -__nccwpck_require__(46777); -__nccwpck_require__(10245); -__nccwpck_require__(39429); -__nccwpck_require__(60492); -__nccwpck_require__(32055); -__nccwpck_require__(86893); -__nccwpck_require__(52804); -__nccwpck_require__(97456); - -if(typeof BigInteger === 'undefined') { - var BigInteger = forge.jsbn.BigInteger; -} - -// shortcut for asn.1 API -var asn1 = forge.asn1; - -/* Password-based encryption implementation. */ -var pki = forge.pki = forge.pki || {}; -module.exports = pki.pbe = forge.pbe = forge.pbe || {}; -var oids = pki.oids; - -// validator for an EncryptedPrivateKeyInfo structure -// Note: Currently only works w/algorithm params -var encryptedPrivateKeyValidator = { - name: 'EncryptedPrivateKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'EncryptedPrivateKeyInfo.encryptionAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'encryptionOid' - }, { - name: 'AlgorithmIdentifier.parameters', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'encryptionParams' - }] - }, { - // encryptedData - name: 'EncryptedPrivateKeyInfo.encryptedData', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'encryptedData' - }] -}; - -// validator for a PBES2Algorithms structure -// Note: Currently only works w/PBKDF2 + AES encryption schemes -var PBES2AlgorithmsValidator = { - name: 'PBES2Algorithms', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'PBES2Algorithms.keyDerivationFunc', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'PBES2Algorithms.keyDerivationFunc.oid', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'kdfOid' - }, { - name: 'PBES2Algorithms.params', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'PBES2Algorithms.params.salt', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'kdfSalt' - }, { - name: 'PBES2Algorithms.params.iterationCount', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'kdfIterationCount' - }, { - name: 'PBES2Algorithms.params.keyLength', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - optional: true, - capture: 'keyLength' - }, { - // prf - name: 'PBES2Algorithms.params.prf', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - optional: true, - value: [{ - name: 'PBES2Algorithms.params.prf.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'prfOid' - }] - }] - }] - }, { - name: 'PBES2Algorithms.encryptionScheme', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'PBES2Algorithms.encryptionScheme.oid', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'encOid' - }, { - name: 'PBES2Algorithms.encryptionScheme.iv', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'encIv' - }] - }] -}; - -var pkcs12PbeParamsValidator = { - name: 'pkcs-12PbeParams', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'pkcs-12PbeParams.salt', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'salt' - }, { - name: 'pkcs-12PbeParams.iterations', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'iterations' - }] -}; -/** - * Encrypts a ASN.1 PrivateKeyInfo object, producing an EncryptedPrivateKeyInfo. - * - * PBES2Algorithms ALGORITHM-IDENTIFIER ::= - * { {PBES2-params IDENTIFIED BY id-PBES2}, ...} - * - * id-PBES2 OBJECT IDENTIFIER ::= {pkcs-5 13} - * - * PBES2-params ::= SEQUENCE { - * keyDerivationFunc AlgorithmIdentifier {{PBES2-KDFs}}, - * encryptionScheme AlgorithmIdentifier {{PBES2-Encs}} - * } - * - * PBES2-KDFs ALGORITHM-IDENTIFIER ::= - * { {PBKDF2-params IDENTIFIED BY id-PBKDF2}, ... } - * - * PBES2-Encs ALGORITHM-IDENTIFIER ::= { ... } - * - * PBKDF2-params ::= SEQUENCE { - * salt CHOICE { - * specified OCTET STRING, - * otherSource AlgorithmIdentifier {{PBKDF2-SaltSources}} - * }, - * iterationCount INTEGER (1..MAX), - * keyLength INTEGER (1..MAX) OPTIONAL, - * prf AlgorithmIdentifier {{PBKDF2-PRFs}} DEFAULT algid-hmacWithSHA1 - * } - * - * @param obj the ASN.1 PrivateKeyInfo object. - * @param password the password to encrypt with. - * @param options: - * algorithm the encryption algorithm to use - * ('aes128', 'aes192', 'aes256', '3des'), defaults to 'aes128'. - * count the iteration count to use. - * saltSize the salt size to use. - * prfAlgorithm the PRF message digest algorithm to use - * ('sha1', 'sha224', 'sha256', 'sha384', 'sha512') - * - * @return the ASN.1 EncryptedPrivateKeyInfo. - */ -pki.encryptPrivateKeyInfo = function(obj, password, options) { - // set default options - options = options || {}; - options.saltSize = options.saltSize || 8; - options.count = options.count || 2048; - options.algorithm = options.algorithm || 'aes128'; - options.prfAlgorithm = options.prfAlgorithm || 'sha1'; - - // generate PBE params - var salt = forge.random.getBytesSync(options.saltSize); - var count = options.count; - var countBytes = asn1.integerToDer(count); - var dkLen; - var encryptionAlgorithm; - var encryptedData; - if(options.algorithm.indexOf('aes') === 0 || options.algorithm === 'des') { - // do PBES2 - var ivLen, encOid, cipherFn; - switch(options.algorithm) { - case 'aes128': - dkLen = 16; - ivLen = 16; - encOid = oids['aes128-CBC']; - cipherFn = forge.aes.createEncryptionCipher; - break; - case 'aes192': - dkLen = 24; - ivLen = 16; - encOid = oids['aes192-CBC']; - cipherFn = forge.aes.createEncryptionCipher; - break; - case 'aes256': - dkLen = 32; - ivLen = 16; - encOid = oids['aes256-CBC']; - cipherFn = forge.aes.createEncryptionCipher; - break; - case 'des': - dkLen = 8; - ivLen = 8; - encOid = oids['desCBC']; - cipherFn = forge.des.createEncryptionCipher; - break; - default: - var error = new Error('Cannot encrypt private key. Unknown encryption algorithm.'); - error.algorithm = options.algorithm; - throw error; - } - - // get PRF message digest - var prfAlgorithm = 'hmacWith' + options.prfAlgorithm.toUpperCase(); - var md = prfAlgorithmToMessageDigest(prfAlgorithm); - - // encrypt private key using pbe SHA-1 and AES/DES - var dk = forge.pkcs5.pbkdf2(password, salt, count, dkLen, md); - var iv = forge.random.getBytesSync(ivLen); - var cipher = cipherFn(dk); - cipher.start(iv); - cipher.update(asn1.toDer(obj)); - cipher.finish(); - encryptedData = cipher.output.getBytes(); - - // get PBKDF2-params - var params = createPbkdf2Params(salt, countBytes, dkLen, prfAlgorithm); - - encryptionAlgorithm = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(oids['pkcs5PBES2']).getBytes()), - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // keyDerivationFunc - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(oids['pkcs5PBKDF2']).getBytes()), - // PBKDF2-params - params - ]), - // encryptionScheme - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(encOid).getBytes()), - // iv - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, iv) - ]) - ]) - ]); - } else if(options.algorithm === '3des') { - // Do PKCS12 PBE - dkLen = 24; - - var saltBytes = new forge.util.ByteBuffer(salt); - var dk = pki.pbe.generatePkcs12Key(password, saltBytes, 1, count, dkLen); - var iv = pki.pbe.generatePkcs12Key(password, saltBytes, 2, count, dkLen); - var cipher = forge.des.createEncryptionCipher(dk); - cipher.start(iv); - cipher.update(asn1.toDer(obj)); - cipher.finish(); - encryptedData = cipher.output.getBytes(); - - encryptionAlgorithm = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(oids['pbeWithSHAAnd3-KeyTripleDES-CBC']).getBytes()), - // pkcs-12PbeParams - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // salt - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, salt), - // iteration count - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - countBytes.getBytes()) - ]) - ]); - } else { - var error = new Error('Cannot encrypt private key. Unknown encryption algorithm.'); - error.algorithm = options.algorithm; - throw error; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // EncryptedPrivateKeyInfo - var rval = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // encryptionAlgorithm - encryptionAlgorithm, - // encryptedData - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, encryptedData) - ]); - return rval; -}; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Decrypts a ASN.1 PrivateKeyInfo object. - * - * @param obj the ASN.1 EncryptedPrivateKeyInfo object. - * @param password the password to decrypt with. - * - * @return the ASN.1 PrivateKeyInfo on success, null on failure. + * The UpdateArtifactoryTargetOutput model module. + * @module model/UpdateArtifactoryTargetOutput + * @version 3.6.3 */ -pki.decryptPrivateKeyInfo = function(obj, password) { - var rval = null; +var UpdateArtifactoryTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateArtifactoryTargetOutput. + * @alias module:model/UpdateArtifactoryTargetOutput + */ + function UpdateArtifactoryTargetOutput() { + _classCallCheck(this, UpdateArtifactoryTargetOutput); - // get PBE params - var capture = {}; - var errors = []; - if(!asn1.validate(obj, encryptedPrivateKeyValidator, capture, errors)) { - var error = new Error('Cannot read encrypted private key. ' + - 'ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); - error.errors = errors; - throw error; + UpdateArtifactoryTargetOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // get cipher - var oid = asn1.derToOid(capture.encryptionOid); - var cipher = pki.pbe.getCipher(oid, capture.encryptionParams, password); - // get encrypted data - var encrypted = forge.util.createBuffer(capture.encryptedData); + _createClass(UpdateArtifactoryTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateArtifactoryTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateArtifactoryTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateArtifactoryTargetOutput} The populated UpdateArtifactoryTargetOutput instance. + */ - cipher.update(encrypted); - if(cipher.finish()) { - rval = asn1.fromDer(cipher.output); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateArtifactoryTargetOutput(); - return rval; -}; + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } -/** - * Converts a EncryptedPrivateKeyInfo to PEM format. - * - * @param epki the EncryptedPrivateKeyInfo. - * @param maxline the maximum characters per line, defaults to 64. - * - * @return the PEM-formatted encrypted private key. - */ -pki.encryptedPrivateKeyToPem = function(epki, maxline) { - // convert to DER, then PEM-encode - var msg = { - type: 'ENCRYPTED PRIVATE KEY', - body: asn1.toDer(epki).getBytes() - }; - return forge.pem.encode(msg, {maxline: maxline}); -}; + return obj; + } + }]); + return UpdateArtifactoryTargetOutput; +}(); /** - * Converts a PEM-encoded EncryptedPrivateKeyInfo to ASN.1 format. Decryption - * is not performed. - * - * @param pem the EncryptedPrivateKeyInfo in PEM-format. - * - * @return the ASN.1 EncryptedPrivateKeyInfo. + * @member {Number} target_id */ -pki.encryptedPrivateKeyFromPem = function(pem) { - var msg = forge.pem.decode(pem)[0]; - if(msg.type !== 'ENCRYPTED PRIVATE KEY') { - var error = new Error('Could not convert encrypted private key from PEM; ' + - 'PEM header type is "ENCRYPTED PRIVATE KEY".'); - error.headerType = msg.type; - throw error; - } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error('Could not convert encrypted private key from PEM; ' + - 'PEM is encrypted.'); - } - // convert DER to ASN.1 object - return asn1.fromDer(msg.body); -}; +UpdateArtifactoryTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateArtifactoryTargetOutput; +exports["default"] = _default; -/** - * Encrypts an RSA private key. By default, the key will be wrapped in - * a PrivateKeyInfo and encrypted to produce a PKCS#8 EncryptedPrivateKeyInfo. - * This is the standard, preferred way to encrypt a private key. - * - * To produce a non-standard PEM-encrypted private key that uses encapsulated - * headers to indicate the encryption algorithm (old-style non-PKCS#8 OpenSSL - * private key encryption), set the 'legacy' option to true. Note: Using this - * option will cause the iteration count to be forced to 1. - * - * Note: The 'des' algorithm is supported, but it is not considered to be - * secure because it only uses a single 56-bit key. If possible, it is highly - * recommended that a different algorithm be used. - * - * @param rsaKey the RSA key to encrypt. - * @param password the password to use. - * @param options: - * algorithm: the encryption algorithm to use - * ('aes128', 'aes192', 'aes256', '3des', 'des'). - * count: the iteration count to use. - * saltSize: the salt size to use. - * legacy: output an old non-PKCS#8 PEM-encrypted+encapsulated - * headers (DEK-Info) private key. - * - * @return the PEM-encoded ASN.1 EncryptedPrivateKeyInfo. - */ -pki.encryptRsaPrivateKey = function(rsaKey, password, options) { - // standard PKCS#8 - options = options || {}; - if(!options.legacy) { - // encrypt PrivateKeyInfo - var rval = pki.wrapRsaPrivateKey(pki.privateKeyToAsn1(rsaKey)); - rval = pki.encryptPrivateKeyInfo(rval, password, options); - return pki.encryptedPrivateKeyToPem(rval); - } - - // legacy non-PKCS#8 - var algorithm; - var iv; - var dkLen; - var cipherFn; - switch(options.algorithm) { - case 'aes128': - algorithm = 'AES-128-CBC'; - dkLen = 16; - iv = forge.random.getBytesSync(16); - cipherFn = forge.aes.createEncryptionCipher; - break; - case 'aes192': - algorithm = 'AES-192-CBC'; - dkLen = 24; - iv = forge.random.getBytesSync(16); - cipherFn = forge.aes.createEncryptionCipher; - break; - case 'aes256': - algorithm = 'AES-256-CBC'; - dkLen = 32; - iv = forge.random.getBytesSync(16); - cipherFn = forge.aes.createEncryptionCipher; - break; - case '3des': - algorithm = 'DES-EDE3-CBC'; - dkLen = 24; - iv = forge.random.getBytesSync(8); - cipherFn = forge.des.createEncryptionCipher; - break; - case 'des': - algorithm = 'DES-CBC'; - dkLen = 8; - iv = forge.random.getBytesSync(8); - cipherFn = forge.des.createEncryptionCipher; - break; - default: - var error = new Error('Could not encrypt RSA private key; unsupported ' + - 'encryption algorithm "' + options.algorithm + '".'); - error.algorithm = options.algorithm; - throw error; - } +/***/ }), - // encrypt private key using OpenSSL legacy key derivation - var dk = forge.pbe.opensslDeriveBytes(password, iv.substr(0, 8), dkLen); - var cipher = cipherFn(dk); - cipher.start(iv); - cipher.update(asn1.toDer(pki.privateKeyToAsn1(rsaKey))); - cipher.finish(); +/***/ 68862: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - var msg = { - type: 'RSA PRIVATE KEY', - procType: { - version: '4', - type: 'ENCRYPTED' - }, - dekInfo: { - algorithm: algorithm, - parameters: forge.util.bytesToHex(iv).toUpperCase() - }, - body: cipher.output.getBytes() - }; - return forge.pem.encode(msg); -}; +"use strict"; -/** - * Decrypts an RSA private key. - * - * @param pem the PEM-formatted EncryptedPrivateKeyInfo to decrypt. - * @param password the password to use. - * - * @return the RSA key on success, null on failure. - */ -pki.decryptRsaPrivateKey = function(pem, password) { - var rval = null; - var msg = forge.pem.decode(pem)[0]; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if(msg.type !== 'ENCRYPTED PRIVATE KEY' && - msg.type !== 'PRIVATE KEY' && - msg.type !== 'RSA PRIVATE KEY') { - var error = new Error('Could not convert private key from PEM; PEM header type ' + - 'is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".'); - error.headerType = error; - throw error; - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - var dkLen; - var cipherFn; - switch(msg.dekInfo.algorithm) { - case 'DES-CBC': - dkLen = 8; - cipherFn = forge.des.createDecryptionCipher; - break; - case 'DES-EDE3-CBC': - dkLen = 24; - cipherFn = forge.des.createDecryptionCipher; - break; - case 'AES-128-CBC': - dkLen = 16; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'AES-192-CBC': - dkLen = 24; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'AES-256-CBC': - dkLen = 32; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'RC2-40-CBC': - dkLen = 5; - cipherFn = function(key) { - return forge.rc2.createDecryptionCipher(key, 40); - }; - break; - case 'RC2-64-CBC': - dkLen = 8; - cipherFn = function(key) { - return forge.rc2.createDecryptionCipher(key, 64); - }; - break; - case 'RC2-128-CBC': - dkLen = 16; - cipherFn = function(key) { - return forge.rc2.createDecryptionCipher(key, 128); - }; - break; - default: - var error = new Error('Could not decrypt private key; unsupported ' + - 'encryption algorithm "' + msg.dekInfo.algorithm + '".'); - error.algorithm = msg.dekInfo.algorithm; - throw error; - } - - // use OpenSSL legacy key derivation - var iv = forge.util.hexToBytes(msg.dekInfo.parameters); - var dk = forge.pbe.opensslDeriveBytes(password, iv.substr(0, 8), dkLen); - var cipher = cipherFn(dk); - cipher.start(iv); - cipher.update(forge.util.createBuffer(msg.body)); - if(cipher.finish()) { - rval = cipher.output.getBytes(); - } else { - return rval; - } - } else { - rval = msg.body; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if(msg.type === 'ENCRYPTED PRIVATE KEY') { - rval = pki.decryptPrivateKeyInfo(asn1.fromDer(rval), password); - } else { - // decryption already performed above - rval = asn1.fromDer(rval); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if(rval !== null) { - rval = pki.privateKeyFromAsn1(rval); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - return rval; -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Derives a PKCS#12 key. - * - * @param password the password to derive the key material from, null or - * undefined for none. - * @param salt the salt, as a ByteBuffer, to use. - * @param id the PKCS#12 ID byte (1 = key material, 2 = IV, 3 = MAC). - * @param iter the iteration count. - * @param n the number of bytes to derive from the password. - * @param md the message digest to use, defaults to SHA-1. - * - * @return a ByteBuffer with the bytes derived from the password. + * The UpdateAssoc model module. + * @module model/UpdateAssoc + * @version 3.6.3 */ -pki.pbe.generatePkcs12Key = function(password, salt, id, iter, n, md) { - var j, l; +var UpdateAssoc = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAssoc. + * updateAssoc is a command that updates the sub-claims of an association between role and auth method. + * @alias module:model/UpdateAssoc + * @param assocId {String} The association id to be updated + */ + function UpdateAssoc(assocId) { + _classCallCheck(this, UpdateAssoc); - if(typeof md === 'undefined' || md === null) { - if(!('sha1' in forge.md)) { - throw new Error('"sha1" hash algorithm unavailable.'); - } - md = forge.md.sha1.create(); + UpdateAssoc.initialize(this, assocId); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - var u = md.digestLength; - var v = md.blockLength; - var result = new forge.util.ByteBuffer(); - /* Convert password to Unicode byte buffer + trailing 0-byte. */ - var passBuf = new forge.util.ByteBuffer(); - if(password !== null && password !== undefined) { - for(l = 0; l < password.length; l++) { - passBuf.putInt16(password.charCodeAt(l)); + _createClass(UpdateAssoc, null, [{ + key: "initialize", + value: function initialize(obj, assocId) { + obj['assoc-id'] = assocId; } - passBuf.putInt16(0); - } - - /* Length of salt and password in BYTES. */ - var p = passBuf.length(); - var s = salt.length(); - - /* 1. Construct a string, D (the "diversifier"), by concatenating - v copies of ID. */ - var D = new forge.util.ByteBuffer(); - D.fillWithByte(id, v); + /** + * Constructs a UpdateAssoc from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAssoc} obj Optional instance to populate. + * @return {module:model/UpdateAssoc} The populated UpdateAssoc instance. + */ - /* 2. Concatenate copies of the salt together to create a string S of length - v * ceil(s / v) bytes (the final copy of the salt may be trunacted - to create S). - Note that if the salt is the empty string, then so is S. */ - var Slen = v * Math.ceil(s / v); - var S = new forge.util.ByteBuffer(); - for(l = 0; l < Slen; l++) { - S.putByte(salt.at(l % s)); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAssoc(); - /* 3. Concatenate copies of the password together to create a string P of - length v * ceil(p / v) bytes (the final copy of the password may be - truncated to create P). - Note that if the password is the empty string, then so is P. */ - var Plen = v * Math.ceil(p / v); - var P = new forge.util.ByteBuffer(); - for(l = 0; l < Plen; l++) { - P.putByte(passBuf.at(l % p)); - } + if (data.hasOwnProperty('assoc-id')) { + obj['assoc-id'] = _ApiClient["default"].convertToType(data['assoc-id'], 'String'); + } - /* 4. Set I=S||P to be the concatenation of S and P. */ - var I = S; - I.putBuffer(P); + if (data.hasOwnProperty('case-sensitive')) { + obj['case-sensitive'] = _ApiClient["default"].convertToType(data['case-sensitive'], 'String'); + } - /* 5. Set c=ceil(n / u). */ - var c = Math.ceil(n / u); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - /* 6. For i=1, 2, ..., c, do the following: */ - for(var i = 1; i <= c; i++) { - /* a) Set Ai=H^r(D||I). (l.e. the rth hash of D||I, H(H(H(...H(D||I)))) */ - var buf = new forge.util.ByteBuffer(); - buf.putBytes(D.bytes()); - buf.putBytes(I.bytes()); - for(var round = 0; round < iter; round++) { - md.start(); - md.update(buf.getBytes()); - buf = md.digest(); - } + if (data.hasOwnProperty('sub-claims')) { + obj['sub-claims'] = _ApiClient["default"].convertToType(data['sub-claims'], { + 'String': 'String' + }); + } - /* b) Concatenate copies of Ai to create a string B of length v bytes (the - final copy of Ai may be truncated to create B). */ - var B = new forge.util.ByteBuffer(); - for(l = 0; l < v; l++) { - B.putByte(buf.at(l % u)); - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - /* c) Treating I as a concatenation I0, I1, ..., Ik-1 of v-byte blocks, - where k=ceil(s / v) + ceil(p / v), modify I by setting - Ij=(Ij+B+1) mod 2v for each j. */ - var k = Math.ceil(s / v) + Math.ceil(p / v); - var Inew = new forge.util.ByteBuffer(); - for(j = 0; j < k; j++) { - var chunk = new forge.util.ByteBuffer(I.getBytes(v)); - var x = 0x1ff; - for(l = B.length() - 1; l >= 0; l--) { - x = x >> 8; - x += B.at(l) + chunk.at(l); - chunk.setAt(l, x & 0xff); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } } - Inew.putBuffer(chunk); - } - I = Inew; - - /* Add Ai to A. */ - result.putBuffer(buf); - } - result.truncate(result.length() - n); - return result; -}; + return obj; + } + }]); + return UpdateAssoc; +}(); /** - * Get new Forge cipher object instance. - * - * @param oid the OID (in string notation). - * @param params the ASN.1 params object. - * @param password the password to decrypt with. - * - * @return new cipher object instance. + * The association id to be updated + * @member {String} assoc-id */ -pki.pbe.getCipher = function(oid, params, password) { - switch(oid) { - case pki.oids['pkcs5PBES2']: - return pki.pbe.getCipherForPBES2(oid, params, password); - - case pki.oids['pbeWithSHAAnd3-KeyTripleDES-CBC']: - case pki.oids['pbewithSHAAnd40BitRC2-CBC']: - return pki.pbe.getCipherForPKCS12PBE(oid, params, password); - default: - var error = new Error('Cannot read encrypted PBE data block. Unsupported OID.'); - error.oid = oid; - error.supportedOids = [ - 'pkcs5PBES2', - 'pbeWithSHAAnd3-KeyTripleDES-CBC', - 'pbewithSHAAnd40BitRC2-CBC' - ]; - throw error; - } -}; +UpdateAssoc.prototype['assoc-id'] = undefined; /** - * Get new Forge cipher object instance according to PBES2 params block. - * - * The returned cipher instance is already started using the IV - * from PBES2 parameter block. - * - * @param oid the PKCS#5 PBKDF2 OID (in string notation). - * @param params the ASN.1 PBES2-params object. - * @param password the password to decrypt with. - * - * @return new cipher object instance. + * Treat sub claims as case-sensitive [true/false] + * @member {String} case-sensitive + * @default 'true' */ -pki.pbe.getCipherForPBES2 = function(oid, params, password) { - // get PBE params - var capture = {}; - var errors = []; - if(!asn1.validate(params, PBES2AlgorithmsValidator, capture, errors)) { - var error = new Error('Cannot read password-based-encryption algorithm ' + - 'parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); - error.errors = errors; - throw error; - } - // check oids - oid = asn1.derToOid(capture.kdfOid); - if(oid !== pki.oids['pkcs5PBKDF2']) { - var error = new Error('Cannot read encrypted private key. ' + - 'Unsupported key derivation function OID.'); - error.oid = oid; - error.supportedOids = ['pkcs5PBKDF2']; - throw error; - } - oid = asn1.derToOid(capture.encOid); - if(oid !== pki.oids['aes128-CBC'] && - oid !== pki.oids['aes192-CBC'] && - oid !== pki.oids['aes256-CBC'] && - oid !== pki.oids['des-EDE3-CBC'] && - oid !== pki.oids['desCBC']) { - var error = new Error('Cannot read encrypted private key. ' + - 'Unsupported encryption scheme OID.'); - error.oid = oid; - error.supportedOids = [ - 'aes128-CBC', 'aes192-CBC', 'aes256-CBC', 'des-EDE3-CBC', 'desCBC']; - throw error; - } +UpdateAssoc.prototype['case-sensitive'] = 'true'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - // set PBE params - var salt = capture.kdfSalt; - var count = forge.util.createBuffer(capture.kdfIterationCount); - count = count.getInt(count.length() << 3); - var dkLen; - var cipherFn; - switch(pki.oids[oid]) { - case 'aes128-CBC': - dkLen = 16; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'aes192-CBC': - dkLen = 24; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'aes256-CBC': - dkLen = 32; - cipherFn = forge.aes.createDecryptionCipher; - break; - case 'des-EDE3-CBC': - dkLen = 24; - cipherFn = forge.des.createDecryptionCipher; - break; - case 'desCBC': - dkLen = 8; - cipherFn = forge.des.createDecryptionCipher; - break; - } - - // get PRF message digest - var md = prfOidToMessageDigest(capture.prfOid); - - // decrypt private key using pbe with chosen PRF and AES/DES - var dk = forge.pkcs5.pbkdf2(password, salt, count, dkLen, md); - var iv = capture.encIv; - var cipher = cipherFn(dk); - cipher.start(iv); - - return cipher; -}; - -/** - * Get new Forge cipher object instance for PKCS#12 PBE. - * - * The returned cipher instance is already started using the key & IV - * derived from the provided password and PKCS#12 PBE salt. - * - * @param oid The PKCS#12 PBE OID (in string notation). - * @param params The ASN.1 PKCS#12 PBE-params object. - * @param password The password to decrypt with. - * - * @return the new cipher object instance. - */ -pki.pbe.getCipherForPKCS12PBE = function(oid, params, password) { - // get PBE params - var capture = {}; - var errors = []; - if(!asn1.validate(params, pkcs12PbeParamsValidator, capture, errors)) { - var error = new Error('Cannot read password-based-encryption algorithm ' + - 'parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); - error.errors = errors; - throw error; - } +UpdateAssoc.prototype['json'] = false; +/** + * key/val of sub claims, e.g group=admins,developers + * @member {Object.} sub-claims + */ - var salt = forge.util.createBuffer(capture.salt); - var count = forge.util.createBuffer(capture.iterations); - count = count.getInt(count.length() << 3); +UpdateAssoc.prototype['sub-claims'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - var dkLen, dIvLen, cipherFn; - switch(oid) { - case pki.oids['pbeWithSHAAnd3-KeyTripleDES-CBC']: - dkLen = 24; - dIvLen = 8; - cipherFn = forge.des.startDecrypting; - break; +UpdateAssoc.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - case pki.oids['pbewithSHAAnd40BitRC2-CBC']: - dkLen = 5; - dIvLen = 8; - cipherFn = function(key, iv) { - var cipher = forge.rc2.createDecryptionCipher(key, 40); - cipher.start(iv, null); - return cipher; - }; - break; +UpdateAssoc.prototype['uid-token'] = undefined; +var _default = UpdateAssoc; +exports["default"] = _default; - default: - var error = new Error('Cannot read PKCS #12 PBE data block. Unsupported OID.'); - error.oid = oid; - throw error; - } +/***/ }), - // get PRF message digest - var md = prfOidToMessageDigest(capture.prfOid); - var key = pki.pbe.generatePkcs12Key(password, salt, 1, count, dkLen, md); - md.start(); - var iv = pki.pbe.generatePkcs12Key(password, salt, 2, count, dIvLen, md); +/***/ 25222: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - return cipherFn(key, iv); -}; +"use strict"; -/** - * OpenSSL's legacy key derivation function. - * - * See: http://www.openssl.org/docs/crypto/EVP_BytesToKey.html - * - * @param password the password to derive the key from. - * @param salt the salt to use, null for none. - * @param dkLen the number of bytes needed for the derived key. - * @param [options] the options to use: - * [md] an optional message digest object to use. - */ -pki.pbe.opensslDeriveBytes = function(password, salt, dkLen, md) { - if(typeof md === 'undefined' || md === null) { - if(!('md5' in forge.md)) { - throw new Error('"md5" hash algorithm unavailable.'); - } - md = forge.md.md5.create(); - } - if(salt === null) { - salt = ''; - } - var digests = [hash(md, password + salt)]; - for(var length = 16, i = 1; length < dkLen; ++i, length += 16) { - digests.push(hash(md, digests[i - 1] + password + salt)); - } - return digests.join('').substr(0, dkLen); -}; -function hash(md, bytes) { - return md.start().update(bytes).digest().getBytes(); -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -function prfOidToMessageDigest(prfOid) { - // get PRF algorithm, default to SHA-1 - var prfAlgorithm; - if(!prfOid) { - prfAlgorithm = 'hmacWithSHA1'; - } else { - prfAlgorithm = pki.oids[asn1.derToOid(prfOid)]; - if(!prfAlgorithm) { - var error = new Error('Unsupported PRF OID.'); - error.oid = prfOid; - error.supported = [ - 'hmacWithSHA1', 'hmacWithSHA224', 'hmacWithSHA256', 'hmacWithSHA384', - 'hmacWithSHA512']; - throw error; - } - } - return prfAlgorithmToMessageDigest(prfAlgorithm); -} - -function prfAlgorithmToMessageDigest(prfAlgorithm) { - var factory = forge.md; - switch(prfAlgorithm) { - case 'hmacWithSHA224': - factory = forge.md.sha512; - case 'hmacWithSHA1': - case 'hmacWithSHA256': - case 'hmacWithSHA384': - case 'hmacWithSHA512': - prfAlgorithm = prfAlgorithm.substr(8).toLowerCase(); - break; - default: - var error = new Error('Unsupported PRF algorithm.'); - error.algorithm = prfAlgorithm; - error.supported = [ - 'hmacWithSHA1', 'hmacWithSHA224', 'hmacWithSHA256', 'hmacWithSHA384', - 'hmacWithSHA512']; - throw error; - } - if(!factory || !(prfAlgorithm in factory)) { - throw new Error('Unknown hash algorithm: ' + prfAlgorithm); - } - return factory[prfAlgorithm].create(); -} +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -function createPbkdf2Params(salt, countBytes, dkLen, prfAlgorithm) { - var params = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // salt - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, salt), - // iteration count - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - countBytes.getBytes()) - ]); - // when PRF algorithm is not SHA-1 default, add key length and PRF algorithm - if(prfAlgorithm !== 'hmacWithSHA1') { - params.value.push( - // key length - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - forge.util.hexToBytes(dkLen.toString(16))), - // AlgorithmIdentifier - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids[prfAlgorithm]).getBytes()), - // parameters (null) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ])); - } - return params; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/***/ }), +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/***/ 39429: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Password-Based Key-Derivation Function #2 implementation. - * - * See RFC 2898 for details. - * - * @author Dave Longley - * - * Copyright (c) 2010-2013 Digital Bazaar, Inc. + * The UpdateAuthMethod model module. + * @module model/UpdateAuthMethod + * @version 3.6.3 */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(42007); -__nccwpck_require__(46777); -__nccwpck_require__(97456); - -var pkcs5 = forge.pkcs5 = forge.pkcs5 || {}; - -var crypto; -if(forge.util.isNodejs && !forge.options.usePureJavaScript) { - crypto = __nccwpck_require__(76982); -} +var UpdateAuthMethod = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAuthMethod. + * @alias module:model/UpdateAuthMethod + * @param name {String} Auth Method name + */ + function UpdateAuthMethod(name) { + _classCallCheck(this, UpdateAuthMethod); -/** - * Derives a key from a password. - * - * @param p the password as a binary-encoded string of bytes. - * @param s the salt as a binary-encoded string of bytes. - * @param c the iteration count, a positive integer. - * @param dkLen the intended length, in bytes, of the derived key, - * (max: 2^32 - 1) * hash length of the PRF. - * @param [md] the message digest (or algorithm identifier as a string) to use - * in the PRF, defaults to SHA-1. - * @param [callback(err, key)] presence triggers asynchronous version, called - * once the operation completes. - * - * @return the derived key, as a binary-encoded string of bytes, for the - * synchronous version (if no callback is specified). - */ -module.exports = forge.pbkdf2 = pkcs5.pbkdf2 = function( - p, s, c, dkLen, md, callback) { - if(typeof md === 'function') { - callback = md; - md = null; + UpdateAuthMethod.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // use native implementation if possible and not disabled, note that - // some node versions only support SHA-1, others allow digest to be changed - if(forge.util.isNodejs && !forge.options.usePureJavaScript && - crypto.pbkdf2 && (md === null || typeof md !== 'object') && - (crypto.pbkdf2Sync.length > 4 || (!md || md === 'sha1'))) { - if(typeof md !== 'string') { - // default prf to SHA-1 - md = 'sha1'; - } - p = Buffer.from(p, 'binary'); - s = Buffer.from(s, 'binary'); - if(!callback) { - if(crypto.pbkdf2Sync.length === 4) { - return crypto.pbkdf2Sync(p, s, c, dkLen).toString('binary'); - } - return crypto.pbkdf2Sync(p, s, c, dkLen, md).toString('binary'); - } - if(crypto.pbkdf2Sync.length === 4) { - return crypto.pbkdf2(p, s, c, dkLen, function(err, key) { - if(err) { - return callback(err); - } - callback(null, key.toString('binary')); - }); - } - return crypto.pbkdf2(p, s, c, dkLen, md, function(err, key) { - if(err) { - return callback(err); - } - callback(null, key.toString('binary')); - }); - } - if(typeof md === 'undefined' || md === null) { - // default prf to SHA-1 - md = 'sha1'; - } - if(typeof md === 'string') { - if(!(md in forge.md.algorithms)) { - throw new Error('Unknown hash algorithm: ' + md); + _createClass(UpdateAuthMethod, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } - md = forge.md[md].create(); - } + /** + * Constructs a UpdateAuthMethod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethod} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethod} The populated UpdateAuthMethod instance. + */ - var hLen = md.digestLength; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethod(); - /* 1. If dkLen > (2^32 - 1) * hLen, output "derived key too long" and - stop. */ - if(dkLen > (0xFFFFFFFF * hLen)) { - var err = new Error('Derived key is too long.'); - if(callback) { - return callback(err); - } - throw err; - } + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } - /* 2. Let len be the number of hLen-octet blocks in the derived key, - rounding up, and let r be the number of octets in the last - block: + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } - len = CEIL(dkLen / hLen), - r = dkLen - (len - 1) * hLen. */ - var len = Math.ceil(dkLen / hLen); - var r = dkLen - (len - 1) * hLen; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - /* 3. For each block of the derived key apply the function F defined - below to the password P, the salt S, the iteration count c, and - the block index to compute the block: + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } - T_1 = F(P, S, c, 1), - T_2 = F(P, S, c, 2), - ... - T_len = F(P, S, c, len), + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } - where the function F is defined as the exclusive-or sum of the - first c iterates of the underlying pseudorandom function PRF - applied to the password P and the concatenation of the salt S - and the block index i: + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - F(P, S, c, i) = u_1 XOR u_2 XOR ... XOR u_c + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } - where + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - u_1 = PRF(P, S || INT(i)), - u_2 = PRF(P, u_1), - ... - u_c = PRF(P, u_{c-1}). + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - Here, INT(i) is a four-octet encoding of the integer i, most - significant octet first. */ - var prf = forge.hmac.create(); - prf.start(md, p); - var dk = ''; - var xor, u_c, u_c1; + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } - // sync version - if(!callback) { - for(var i = 1; i <= len; ++i) { - // PRF(P, S || INT(i)) (first iteration) - prf.start(null, null); - prf.update(s); - prf.update(forge.util.int32ToBytes(i)); - xor = u_c1 = prf.digest().getBytes(); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - // PRF(P, u_{c-1}) (other iterations) - for(var j = 2; j <= c; ++j) { - prf.start(null, null); - prf.update(u_c1); - u_c = prf.digest().getBytes(); - // F(p, s, c, i) - xor = forge.util.xorBytes(xor, u_c, hLen); - u_c1 = u_c; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } } - /* 4. Concatenate the blocks and extract the first dkLen octets to - produce a derived key DK: - - DK = T_1 || T_2 || ... || T_len<0..r-1> */ - dk += (i < len) ? xor : xor.substr(0, r); - } - /* 5. Output the derived key DK. */ - return dk; - } - - // async version - var i = 1, j; - function outer() { - if(i > len) { - // done - return callback(null, dk); + return obj; } + }]); - // PRF(P, S || INT(i)) (first iteration) - prf.start(null, null); - prf.update(s); - prf.update(forge.util.int32ToBytes(i)); - xor = u_c1 = prf.digest().getBytes(); + return UpdateAuthMethod; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ - // PRF(P, u_{c-1}) (other iterations) - j = 2; - inner(); - } - function inner() { - if(j <= c) { - prf.start(null, null); - prf.update(u_c1); - u_c = prf.digest().getBytes(); - // F(p, s, c, i) - xor = forge.util.xorBytes(xor, u_c, hLen); - u_c1 = u_c; - ++j; - return forge.util.setImmediate(inner); - } +UpdateAuthMethod.prototype['access-expires'] = 0; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ - /* 4. Concatenate the blocks and extract the first dkLen octets to - produce a derived key DK: +UpdateAuthMethod.prototype['bound-ips'] = undefined; +/** + * Auth Method description + * @member {String} description + */ - DK = T_1 || T_2 || ... || T_len<0..r-1> */ - dk += (i < len) ? xor : xor.substr(0, r); +UpdateAuthMethod.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ - ++i; - outer(); - } +UpdateAuthMethod.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ - outer(); -}; +UpdateAuthMethod.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ +UpdateAuthMethod.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ -/***/ }), +UpdateAuthMethod.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ -/***/ 60492: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateAuthMethod.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ +UpdateAuthMethod.prototype['new-name'] = undefined; /** - * Javascript implementation of basic PEM (Privacy Enhanced Mail) algorithms. - * - * See: RFC 1421. - * - * @author Dave Longley - * - * Copyright (c) 2013-2014 Digital Bazaar, Inc. - * - * A Forge PEM object has the following fields: - * - * type: identifies the type of message (eg: "RSA PRIVATE KEY"). - * - * procType: identifies the type of processing performed on the message, - * it has two subfields: version and type, eg: 4,ENCRYPTED. - * - * contentDomain: identifies the type of content in the message, typically - * only uses the value: "RFC822". - * - * dekInfo: identifies the message encryption algorithm and mode and includes - * any parameters for the algorithm, it has two subfields: algorithm and - * parameters, eg: DES-CBC,F8143EDE5960C597. - * - * headers: contains all other PEM encapsulated headers -- where order is - * significant (for pairing data like recipient ID + key info). - * - * body: the binary-encoded body. + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(97456); -// shortcut for pem API -var pem = module.exports = forge.pem = forge.pem || {}; +UpdateAuthMethod.prototype['product-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ +UpdateAuthMethod.prototype['token'] = undefined; /** - * Encodes (serializes) the given PEM object. - * - * @param msg the PEM message object to encode. - * @param options the options to use: - * maxline the maximum characters per line for the body, (default: 64). - * - * @return the PEM-formatted string. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -pem.encode = function(msg, options) { - options = options || {}; - var rval = '-----BEGIN ' + msg.type + '-----\r\n'; - // encode special headers - var header; - if(msg.procType) { - header = { - name: 'Proc-Type', - values: [String(msg.procType.version), msg.procType.type] - }; - rval += foldHeader(header); - } - if(msg.contentDomain) { - header = {name: 'Content-Domain', values: [msg.contentDomain]}; - rval += foldHeader(header); - } - if(msg.dekInfo) { - header = {name: 'DEK-Info', values: [msg.dekInfo.algorithm]}; - if(msg.dekInfo.parameters) { - header.values.push(msg.dekInfo.parameters); - } - rval += foldHeader(header); - } +UpdateAuthMethod.prototype['uid-token'] = undefined; +var _default = UpdateAuthMethod; +exports["default"] = _default; + +/***/ }), + +/***/ 67296: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if(msg.headers) { - // encode all other headers - for(var i = 0; i < msg.headers.length; ++i) { - rval += foldHeader(msg.headers[i]); - } - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // terminate header - if(msg.procType) { - rval += '\r\n'; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // add body - rval += forge.util.encode64(msg.body, options.maxline || 64) + '\r\n'; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - rval += '-----END ' + msg.type + '-----\r\n'; - return rval; -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Decodes (deserializes) all PEM messages found in the given string. - * - * @param str the PEM-formatted string to decode. - * - * @return the PEM message objects in an array. + * The UpdateAuthMethodAWSIAM model module. + * @module model/UpdateAuthMethodAWSIAM + * @version 3.6.3 */ -pem.decode = function(str) { - var rval = []; - - // split string into PEM messages (be lenient w/EOF on BEGIN line) - var rMessage = /\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g; - var rHeader = /([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/; - var rCRLF = /\r?\n/; - var match; - while(true) { - match = rMessage.exec(str); - if(!match) { - break; - } +var UpdateAuthMethodAWSIAM = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAuthMethodAWSIAM. + * updateAuthMethodAWSIAM is a command that updates a new Auth Method that will be able to authenticate using AWS IAM credentials. + * @alias module:model/UpdateAuthMethodAWSIAM + * @param boundAwsAccountId {Array.} A list of AWS account-IDs that the access is restricted to + * @param name {String} Auth Method name + */ + function UpdateAuthMethodAWSIAM(boundAwsAccountId, name) { + _classCallCheck(this, UpdateAuthMethodAWSIAM); - // accept "NEW CERTIFICATE REQUEST" as "CERTIFICATE REQUEST" - // https://datatracker.ietf.org/doc/html/rfc7468#section-7 - var type = match[1]; - if(type === 'NEW CERTIFICATE REQUEST') { - type = 'CERTIFICATE REQUEST'; - } + UpdateAuthMethodAWSIAM.initialize(this, boundAwsAccountId, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - var msg = { - type: type, - procType: null, - contentDomain: null, - dekInfo: null, - headers: [], - body: forge.util.decode64(match[3]) - }; - rval.push(msg); - // no headers - if(!match[2]) { - continue; + _createClass(UpdateAuthMethodAWSIAM, null, [{ + key: "initialize", + value: function initialize(obj, boundAwsAccountId, name) { + obj['bound-aws-account-id'] = boundAwsAccountId; + obj['name'] = name; } + /** + * Constructs a UpdateAuthMethodAWSIAM from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodAWSIAM} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodAWSIAM} The populated UpdateAuthMethodAWSIAM instance. + */ - // parse headers - var lines = match[2].split(rCRLF); - var li = 0; - while(match && li < lines.length) { - // get line, trim any rhs whitespace - var line = lines[li].replace(/\s+$/, ''); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodAWSIAM(); - // RFC2822 unfold any following folded lines - for(var nl = li + 1; nl < lines.length; ++nl) { - var next = lines[nl]; - if(!/\s/.test(next[0])) { - break; + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); } - line += next; - li = nl; - } - // parse header - match = line.match(rHeader); - if(match) { - var header = {name: match[1], values: []}; - var values = match[2].split(','); - for(var vi = 0; vi < values.length; ++vi) { - header.values.push(ltrim(values[vi])); + if (data.hasOwnProperty('bound-arn')) { + obj['bound-arn'] = _ApiClient["default"].convertToType(data['bound-arn'], ['String']); } - // Proc-Type must be the first header - if(!msg.procType) { - if(header.name !== 'Proc-Type') { - throw new Error('Invalid PEM formatted message. The first ' + - 'encapsulated header must be "Proc-Type".'); - } else if(header.values.length !== 2) { - throw new Error('Invalid PEM formatted message. The "Proc-Type" ' + - 'header must have two subfields.'); - } - msg.procType = {version: values[0], type: values[1]}; - } else if(!msg.contentDomain && header.name === 'Content-Domain') { - // special-case Content-Domain - msg.contentDomain = values[0] || ''; - } else if(!msg.dekInfo && header.name === 'DEK-Info') { - // special-case DEK-Info - if(header.values.length === 0) { - throw new Error('Invalid PEM formatted message. The "DEK-Info" ' + - 'header must have at least one subfield.'); - } - msg.dekInfo = {algorithm: values[0], parameters: values[1] || null}; - } else { - msg.headers.push(header); + if (data.hasOwnProperty('bound-aws-account-id')) { + obj['bound-aws-account-id'] = _ApiClient["default"].convertToType(data['bound-aws-account-id'], ['String']); } - } - - ++li; - } - - if(msg.procType === 'ENCRYPTED' && !msg.dekInfo) { - throw new Error('Invalid PEM formatted message. The "DEK-Info" ' + - 'header must be present if "Proc-Type" is "ENCRYPTED".'); - } - } - - if(rval.length === 0) { - throw new Error('Invalid PEM formatted message.'); - } - return rval; -}; + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } -function foldHeader(header) { - var rval = header.name + ': '; + if (data.hasOwnProperty('bound-resource-id')) { + obj['bound-resource-id'] = _ApiClient["default"].convertToType(data['bound-resource-id'], ['String']); + } - // ensure values with CRLF are folded - var values = []; - var insertSpace = function(match, $1) { - return ' ' + $1; - }; - for(var i = 0; i < header.values.length; ++i) { - values.push(header.values[i].replace(/^(\S+\r\n)/, insertSpace)); - } - rval += values.join(',') + '\r\n'; - - // do folding - var length = 0; - var candidate = -1; - for(var i = 0; i < rval.length; ++i, ++length) { - if(length > 65 && candidate !== -1) { - var insert = rval[candidate]; - if(insert === ',') { - ++candidate; - rval = rval.substr(0, candidate) + '\r\n ' + rval.substr(candidate); - } else { - rval = rval.substr(0, candidate) + - '\r\n' + insert + rval.substr(candidate + 1); - } - length = (i - candidate - 1); - candidate = -1; - ++i; - } else if(rval[i] === ' ' || rval[i] === '\t' || rval[i] === ',') { - candidate = i; - } - } + if (data.hasOwnProperty('bound-role-id')) { + obj['bound-role-id'] = _ApiClient["default"].convertToType(data['bound-role-id'], ['String']); + } - return rval; -} + if (data.hasOwnProperty('bound-role-name')) { + obj['bound-role-name'] = _ApiClient["default"].convertToType(data['bound-role-name'], ['String']); + } -function ltrim(str) { - return str.replace(/^\s+/, ''); -} + if (data.hasOwnProperty('bound-user-id')) { + obj['bound-user-id'] = _ApiClient["default"].convertToType(data['bound-user-id'], ['String']); + } + if (data.hasOwnProperty('bound-user-name')) { + obj['bound-user-name'] = _ApiClient["default"].convertToType(data['bound-user-name'], ['String']); + } -/***/ }), + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -/***/ 51608: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } -/** - * Partial implementation of PKCS#1 v2.2: RSA-OEAP - * - * Modified but based on the following MIT and BSD licensed code: - * - * https://github.com/kjur/jsjws/blob/master/rsa.js: - * - * The 'jsjws'(JSON Web Signature JavaScript Library) License - * - * Copyright (c) 2012 Kenji Urushima - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - * - * http://webrsa.cvs.sourceforge.net/viewvc/webrsa/Client/RSAES-OAEP.js?content-type=text%2Fplain: - * - * RSAES-OAEP.js - * $Id: RSAES-OAEP.js,v 1.1.1.1 2003/03/19 15:37:20 ellispritchard Exp $ - * JavaScript Implementation of PKCS #1 v2.1 RSA CRYPTOGRAPHY STANDARD (RSA Laboratories, June 14, 2002) - * Copyright (C) Ellis Pritchard, Guardian Unlimited 2003. - * Contact: ellis@nukinetics.com - * Distributed under the BSD License. - * - * Official documentation: http://www.rsa.com/rsalabs/node.asp?id=2125 - * - * @author Evan Jones (http://evanjones.ca/) - * @author Dave Longley - * - * Copyright (c) 2013-2014 Digital Bazaar, Inc. - */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(97456); -__nccwpck_require__(32055); -__nccwpck_require__(96485); - -// shortcut for PKCS#1 API -var pkcs1 = module.exports = forge.pkcs1 = forge.pkcs1 || {}; - -/** - * Encode the given RSAES-OAEP message (M) using key, with optional label (L) - * and seed. - * - * This method does not perform RSA encryption, it only encodes the message - * using RSAES-OAEP. - * - * @param key the RSA key to use. - * @param message the message to encode. - * @param options the options to use: - * label an optional label to use. - * seed the seed to use. - * md the message digest object to use, undefined for SHA-1. - * mgf1 optional mgf1 parameters: - * md the message digest object to use for MGF1. - * - * @return the encoded message bytes. - */ -pkcs1.encode_rsa_oaep = function(key, message, options) { - // parse arguments - var label; - var seed; - var md; - var mgf1Md; - // legacy args (label, seed, md) - if(typeof options === 'string') { - label = options; - seed = arguments[3] || undefined; - md = arguments[4] || undefined; - } else if(options) { - label = options.label || undefined; - seed = options.seed || undefined; - md = options.md || undefined; - if(options.mgf1 && options.mgf1.md) { - mgf1Md = options.mgf1.md; - } - } - - // default OAEP to SHA-1 message digest - if(!md) { - md = forge.md.sha1.create(); - } else { - md.start(); - } + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } - // default MGF-1 to same as OAEP - if(!mgf1Md) { - mgf1Md = md; - } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - // compute length in bytes and check output - var keyLength = Math.ceil(key.n.bitLength() / 8); - var maxLength = keyLength - 2 * md.digestLength - 2; - if(message.length > maxLength) { - var error = new Error('RSAES-OAEP input message length is too long.'); - error.length = message.length; - error.maxLength = maxLength; - throw error; - } + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } - if(!label) { - label = ''; - } - md.update(label, 'raw'); - var lHash = md.digest(); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - var PS = ''; - var PS_length = maxLength - message.length; - for(var i = 0; i < PS_length; i++) { - PS += '\x00'; - } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - var DB = lHash.getBytes() + PS + '\x01' + message; + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } - if(!seed) { - seed = forge.random.getBytes(md.digestLength); - } else if(seed.length !== md.digestLength) { - var error = new Error('Invalid RSAES-OAEP seed. The seed length must ' + - 'match the digest length.'); - error.seedLength = seed.length; - error.digestLength = md.digestLength; - throw error; - } + if (data.hasOwnProperty('sts-url')) { + obj['sts-url'] = _ApiClient["default"].convertToType(data['sts-url'], 'String'); + } - var dbMask = rsa_mgf1(seed, keyLength - md.digestLength - 1, mgf1Md); - var maskedDB = forge.util.xorBytes(DB, dbMask, DB.length); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - var seedMask = rsa_mgf1(maskedDB, md.digestLength, mgf1Md); - var maskedSeed = forge.util.xorBytes(seed, seedMask, seed.length); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - // return encoded message - return '\x00' + maskedSeed + maskedDB; -}; + return obj; + } + }]); + return UpdateAuthMethodAWSIAM; +}(); /** - * Decode the given RSAES-OAEP encoded message (EM) using key, with optional - * label (L). - * - * This method does not perform RSA decryption, it only decodes the message - * using RSAES-OAEP. - * - * @param key the RSA key to use. - * @param em the encoded message to decode. - * @param options the options to use: - * label an optional label to use. - * md the message digest object to use for OAEP, undefined for SHA-1. - * mgf1 optional mgf1 parameters: - * md the message digest object to use for MGF1. - * - * @return the decoded message bytes. + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -pkcs1.decode_rsa_oaep = function(key, em, options) { - // parse args - var label; - var md; - var mgf1Md; - // legacy args - if(typeof options === 'string') { - label = options; - md = arguments[3] || undefined; - } else if(options) { - label = options.label || undefined; - md = options.md || undefined; - if(options.mgf1 && options.mgf1.md) { - mgf1Md = options.mgf1.md; - } - } - - // compute length in bytes - var keyLength = Math.ceil(key.n.bitLength() / 8); - if(em.length !== keyLength) { - var error = new Error('RSAES-OAEP encoded message length is invalid.'); - error.length = em.length; - error.expectedLength = keyLength; - throw error; - } - - // default OAEP to SHA-1 message digest - if(md === undefined) { - md = forge.md.sha1.create(); - } else { - md.start(); - } - - // default MGF-1 to same as OAEP - if(!mgf1Md) { - mgf1Md = md; - } - - if(keyLength < 2 * md.digestLength + 2) { - throw new Error('RSAES-OAEP key is too short for the hash function.'); - } - - if(!label) { - label = ''; - } - md.update(label, 'raw'); - var lHash = md.digest().getBytes(); - - // split the message into its parts - var y = em.charAt(0); - var maskedSeed = em.substring(1, md.digestLength + 1); - var maskedDB = em.substring(1 + md.digestLength); - var seedMask = rsa_mgf1(maskedDB, md.digestLength, mgf1Md); - var seed = forge.util.xorBytes(maskedSeed, seedMask, maskedSeed.length); - - var dbMask = rsa_mgf1(seed, keyLength - md.digestLength - 1, mgf1Md); - var db = forge.util.xorBytes(maskedDB, dbMask, maskedDB.length); - - var lHashPrime = db.substring(0, md.digestLength); +UpdateAuthMethodAWSIAM.prototype['access-expires'] = 0; +/** + * A list of full arns that the access is restricted to + * @member {Array.} bound-arn + */ - // constant time check that all values match what is expected - var error = (y !== '\x00'); +UpdateAuthMethodAWSIAM.prototype['bound-arn'] = undefined; +/** + * A list of AWS account-IDs that the access is restricted to + * @member {Array.} bound-aws-account-id + */ - // constant time check lHash vs lHashPrime - for(var i = 0; i < md.digestLength; ++i) { - error |= (lHash.charAt(i) !== lHashPrime.charAt(i)); - } +UpdateAuthMethodAWSIAM.prototype['bound-aws-account-id'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ - // "constant time" find the 0x1 byte separating the padding (zeros) from the - // message - // TODO: It must be possible to do this in a better/smarter way? - var in_ps = 1; - var index = md.digestLength; - for(var j = md.digestLength; j < db.length; j++) { - var code = db.charCodeAt(j); +UpdateAuthMethodAWSIAM.prototype['bound-ips'] = undefined; +/** + * A list of full resource ids that the access is restricted to + * @member {Array.} bound-resource-id + */ - var is_0 = (code & 0x1) ^ 0x1; +UpdateAuthMethodAWSIAM.prototype['bound-resource-id'] = undefined; +/** + * A list of full role ids that the access is restricted to + * @member {Array.} bound-role-id + */ - // non-zero if not 0 or 1 in the ps section - var error_mask = in_ps ? 0xfffe : 0x0000; - error |= (code & error_mask); +UpdateAuthMethodAWSIAM.prototype['bound-role-id'] = undefined; +/** + * A list of full role-name that the access is restricted to + * @member {Array.} bound-role-name + */ - // latch in_ps to zero after we find 0x1 - in_ps = in_ps & is_0; - index += in_ps; - } +UpdateAuthMethodAWSIAM.prototype['bound-role-name'] = undefined; +/** + * A list of full user ids that the access is restricted to + * @member {Array.} bound-user-id + */ - if(error || db.charCodeAt(index) !== 0x1) { - throw new Error('Invalid RSAES-OAEP padding.'); - } +UpdateAuthMethodAWSIAM.prototype['bound-user-id'] = undefined; +/** + * A list of full user-name that the access is restricted to + * @member {Array.} bound-user-name + */ - return db.substring(index + 1); -}; +UpdateAuthMethodAWSIAM.prototype['bound-user-name'] = undefined; +/** + * Auth Method description + * @member {String} description + */ -function rsa_mgf1(seed, maskLength, hash) { - // default to SHA-1 message digest - if(!hash) { - hash = forge.md.sha1.create(); - } - var t = ''; - var count = Math.ceil(maskLength / hash.digestLength); - for(var i = 0; i < count; ++i) { - var c = String.fromCharCode( - (i >> 24) & 0xFF, (i >> 16) & 0xFF, (i >> 8) & 0xFF, i & 0xFF); - hash.start(); - hash.update(seed + c); - t += hash.digest().getBytes(); - } - return t.substring(0, maskLength); -} +UpdateAuthMethodAWSIAM.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ +UpdateAuthMethodAWSIAM.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ -/***/ }), +UpdateAuthMethodAWSIAM.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ 1296: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateAuthMethodAWSIAM.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ +UpdateAuthMethodAWSIAM.prototype['jwt-ttl'] = 0; /** - * Javascript implementation of PKCS#12. - * - * @author Dave Longley - * @author Stefan Siegl - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. - * Copyright (c) 2012 Stefan Siegl - * - * The ASN.1 representation of PKCS#12 is as follows - * (see ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-12/pkcs-12-tc1.pdf for details) - * - * PFX ::= SEQUENCE { - * version INTEGER {v3(3)}(v3,...), - * authSafe ContentInfo, - * macData MacData OPTIONAL - * } - * - * MacData ::= SEQUENCE { - * mac DigestInfo, - * macSalt OCTET STRING, - * iterations INTEGER DEFAULT 1 - * } - * Note: The iterations default is for historical reasons and its use is - * deprecated. A higher value, like 1024, is recommended. - * - * DigestInfo is defined in PKCS#7 as follows: - * - * DigestInfo ::= SEQUENCE { - * digestAlgorithm DigestAlgorithmIdentifier, - * digest Digest - * } - * - * DigestAlgorithmIdentifier ::= AlgorithmIdentifier - * - * The AlgorithmIdentifier contains an Object Identifier (OID) and parameters - * for the algorithm, if any. In the case of SHA1 there is none. - * - * AlgorithmIdentifer ::= SEQUENCE { - * algorithm OBJECT IDENTIFIER, - * parameters ANY DEFINED BY algorithm OPTIONAL - * } - * - * Digest ::= OCTET STRING - * - * - * ContentInfo ::= SEQUENCE { - * contentType ContentType, - * content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL - * } - * - * ContentType ::= OBJECT IDENTIFIER - * - * AuthenticatedSafe ::= SEQUENCE OF ContentInfo - * -- Data if unencrypted - * -- EncryptedData if password-encrypted - * -- EnvelopedData if public key-encrypted - * - * - * SafeContents ::= SEQUENCE OF SafeBag - * - * SafeBag ::= SEQUENCE { - * bagId BAG-TYPE.&id ({PKCS12BagSet}) - * bagValue [0] EXPLICIT BAG-TYPE.&Type({PKCS12BagSet}{@bagId}), - * bagAttributes SET OF PKCS12Attribute OPTIONAL - * } - * - * PKCS12Attribute ::= SEQUENCE { - * attrId ATTRIBUTE.&id ({PKCS12AttrSet}), - * attrValues SET OF ATTRIBUTE.&Type ({PKCS12AttrSet}{@attrId}) - * } -- This type is compatible with the X.500 type 'Attribute' - * - * PKCS12AttrSet ATTRIBUTE ::= { - * friendlyName | -- from PKCS #9 - * localKeyId, -- from PKCS #9 - * ... -- Other attributes are allowed - * } - * - * CertBag ::= SEQUENCE { - * certId BAG-TYPE.&id ({CertTypes}), - * certValue [0] EXPLICIT BAG-TYPE.&Type ({CertTypes}{@certId}) - * } - * - * x509Certificate BAG-TYPE ::= {OCTET STRING IDENTIFIED BY {certTypes 1}} - * -- DER-encoded X.509 certificate stored in OCTET STRING - * - * sdsiCertificate BAG-TYPE ::= {IA5String IDENTIFIED BY {certTypes 2}} - * -- Base64-encoded SDSI certificate stored in IA5String - * - * CertTypes BAG-TYPE ::= { - * x509Certificate | - * sdsiCertificate, - * ... -- For future extensions - * } + * Auth Method name + * @member {String} name */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(27357); -__nccwpck_require__(42007); -__nccwpck_require__(10245); -__nccwpck_require__(40999); -__nccwpck_require__(6959); -__nccwpck_require__(32055); -__nccwpck_require__(52804); -__nccwpck_require__(96485); -__nccwpck_require__(97456); -__nccwpck_require__(15184); - -// shortcut for asn.1 & PKI API -var asn1 = forge.asn1; -var pki = forge.pki; - -// shortcut for PKCS#12 API -var p12 = module.exports = forge.pkcs12 = forge.pkcs12 || {}; - -var contentInfoValidator = { - name: 'ContentInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, // a ContentInfo - constructed: true, - value: [{ - name: 'ContentInfo.contentType', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'contentType' - }, { - name: 'ContentInfo.content', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - constructed: true, - captureAsn1: 'content' - }] -}; - -var pfxValidator = { - name: 'PFX', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'PFX.version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'version' - }, - contentInfoValidator, { - name: 'PFX.macData', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - optional: true, - captureAsn1: 'mac', - value: [{ - name: 'PFX.macData.mac', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, // DigestInfo - constructed: true, - value: [{ - name: 'PFX.macData.mac.digestAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, // DigestAlgorithmIdentifier - constructed: true, - value: [{ - name: 'PFX.macData.mac.digestAlgorithm.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'macAlgorithm' - }, { - name: 'PFX.macData.mac.digestAlgorithm.parameters', - tagClass: asn1.Class.UNIVERSAL, - captureAsn1: 'macAlgorithmParameters' - }] - }, { - name: 'PFX.macData.mac.digest', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'macDigest' - }] - }, { - name: 'PFX.macData.macSalt', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'macSalt' - }, { - name: 'PFX.macData.iterations', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - optional: true, - capture: 'macIterations' - }] - }] -}; - -var safeBagValidator = { - name: 'SafeBag', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'SafeBag.bagId', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'bagId' - }, { - name: 'SafeBag.bagValue', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - constructed: true, - captureAsn1: 'bagValue' - }, { - name: 'SafeBag.bagAttributes', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SET, - constructed: true, - optional: true, - capture: 'bagAttributes' - }] -}; - -var attributeValidator = { - name: 'Attribute', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'Attribute.attrId', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'oid' - }, { - name: 'Attribute.attrValues', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SET, - constructed: true, - capture: 'values' - }] -}; - -var certBagValidator = { - name: 'CertBag', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'CertBag.certId', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'certId' - }, { - name: 'CertBag.certValue', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - constructed: true, - /* So far we only support X.509 certificates (which are wrapped in - an OCTET STRING, hence hard code that here). */ - value: [{ - name: 'CertBag.certValue[0]', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Class.OCTETSTRING, - constructed: false, - capture: 'cert' - }] - }] -}; +UpdateAuthMethodAWSIAM.prototype['name'] = undefined; /** - * Search SafeContents structure for bags with matching attributes. - * - * The search can optionally be narrowed by a certain bag type. - * - * @param safeContents the SafeContents structure to search in. - * @param attrName the name of the attribute to compare against. - * @param attrValue the attribute value to search for. - * @param [bagType] bag type to narrow search by. - * - * @return an array of matching bags. + * Auth Method new name + * @member {String} new-name */ -function _getBagsByAttribute(safeContents, attrName, attrValue, bagType) { - var result = []; - for(var i = 0; i < safeContents.length; i++) { - for(var j = 0; j < safeContents[i].safeBags.length; j++) { - var bag = safeContents[i].safeBags[j]; - if(bagType !== undefined && bag.type !== bagType) { - continue; - } - // only filter by bag type, no attribute specified - if(attrName === null) { - result.push(bag); - continue; - } - if(bag.attributes[attrName] !== undefined && - bag.attributes[attrName].indexOf(attrValue) >= 0) { - result.push(bag); - } - } - } +UpdateAuthMethodAWSIAM.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ - return result; -} +UpdateAuthMethodAWSIAM.prototype['product-type'] = undefined; +/** + * sts URL + * @member {String} sts-url + * @default 'https://sts.amazonaws.com' + */ +UpdateAuthMethodAWSIAM.prototype['sts-url'] = 'https://sts.amazonaws.com'; /** - * Converts a PKCS#12 PFX in ASN.1 notation into a PFX object. - * - * @param obj The PKCS#12 PFX in ASN.1 notation. - * @param strict true to use strict DER decoding, false not to (default: true). - * @param {String} password Password to decrypt with (optional). - * - * @return PKCS#12 PFX object. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -p12.pkcs12FromAsn1 = function(obj, strict, password) { - // handle args - if(typeof strict === 'string') { - password = strict; - strict = true; - } else if(strict === undefined) { - strict = true; - } - // validate PFX and capture data - var capture = {}; - var errors = []; - if(!asn1.validate(obj, pfxValidator, capture, errors)) { - var error = new Error('Cannot read PKCS#12 PFX. ' + - 'ASN.1 object is not an PKCS#12 PFX.'); - error.errors = error; - throw error; - } +UpdateAuthMethodAWSIAM.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - var pfx = { - version: capture.version.charCodeAt(0), - safeContents: [], +UpdateAuthMethodAWSIAM.prototype['uid-token'] = undefined; +var _default = UpdateAuthMethodAWSIAM; +exports["default"] = _default; - /** - * Gets bags with matching attributes. - * - * @param filter the attributes to filter by: - * [localKeyId] the localKeyId to search for. - * [localKeyIdHex] the localKeyId in hex to search for. - * [friendlyName] the friendly name to search for. - * [bagType] bag type to narrow each attribute search by. - * - * @return a map of attribute type to an array of matching bags or, if no - * attribute was given but a bag type, the map key will be the - * bag type. - */ - getBags: function(filter) { - var rval = {}; +/***/ }), - var localKeyId; - if('localKeyId' in filter) { - localKeyId = filter.localKeyId; - } else if('localKeyIdHex' in filter) { - localKeyId = forge.util.hexToBytes(filter.localKeyIdHex); - } +/***/ 95622: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // filter on bagType only - if(localKeyId === undefined && !('friendlyName' in filter) && - 'bagType' in filter) { - rval[filter.bagType] = _getBagsByAttribute( - pfx.safeContents, null, null, filter.bagType); - } +"use strict"; - if(localKeyId !== undefined) { - rval.localKeyId = _getBagsByAttribute( - pfx.safeContents, 'localKeyId', - localKeyId, filter.bagType); - } - if('friendlyName' in filter) { - rval.friendlyName = _getBagsByAttribute( - pfx.safeContents, 'friendlyName', - filter.friendlyName, filter.bagType); - } - return rval; - }, +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - /** - * DEPRECATED: use getBags() instead. - * - * Get bags with matching friendlyName attribute. - * - * @param friendlyName the friendly name to search for. - * @param [bagType] bag type to narrow search by. - * - * @return an array of bags with matching friendlyName attribute. - */ - getBagsByFriendlyName: function(friendlyName, bagType) { - return _getBagsByAttribute( - pfx.safeContents, 'friendlyName', friendlyName, bagType); - }, +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - /** - * DEPRECATED: use getBags() instead. - * - * Get bags with matching localKeyId attribute. - * - * @param localKeyId the localKeyId to search for. - * @param [bagType] bag type to narrow search by. - * - * @return an array of bags with matching localKeyId attribute. - */ - getBagsByLocalKeyId: function(localKeyId, bagType) { - return _getBagsByAttribute( - pfx.safeContents, 'localKeyId', localKeyId, bagType); - } - }; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if(capture.version.charCodeAt(0) !== 3) { - var error = new Error('PKCS#12 PFX of version other than 3 not supported.'); - error.version = capture.version.charCodeAt(0); - throw error; - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if(asn1.derToOid(capture.contentType) !== pki.oids.data) { - var error = new Error('Only PKCS#12 PFX in password integrity mode supported.'); - error.oid = asn1.derToOid(capture.contentType); - throw error; - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - var data = capture.content.value[0]; - if(data.tagClass !== asn1.Class.UNIVERSAL || - data.type !== asn1.Type.OCTETSTRING) { - throw new Error('PKCS#12 authSafe content data is not an OCTET STRING.'); - } - data = _decodePkcs7Data(data); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // check for MAC - if(capture.mac) { - var md = null; - var macKeyBytes = 0; - var macAlgorithm = asn1.derToOid(capture.macAlgorithm); - switch(macAlgorithm) { - case pki.oids.sha1: - md = forge.md.sha1.create(); - macKeyBytes = 20; - break; - case pki.oids.sha256: - md = forge.md.sha256.create(); - macKeyBytes = 32; - break; - case pki.oids.sha384: - md = forge.md.sha384.create(); - macKeyBytes = 48; - break; - case pki.oids.sha512: - md = forge.md.sha512.create(); - macKeyBytes = 64; - break; - case pki.oids.md5: - md = forge.md.md5.create(); - macKeyBytes = 16; - break; - } - if(md === null) { - throw new Error('PKCS#12 uses unsupported MAC algorithm: ' + macAlgorithm); - } +/** + * The UpdateAuthMethodAzureAD model module. + * @module model/UpdateAuthMethodAzureAD + * @version 3.6.3 + */ +var UpdateAuthMethodAzureAD = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAuthMethodAzureAD. + * updateAuthMethodAzureAD is a command that updates a new auth method that will be able to authenticate using Azure Active Directory credentials. + * @alias module:model/UpdateAuthMethodAzureAD + * @param boundTenantId {String} The Azure tenant id that the access is restricted to + * @param name {String} Auth Method name + */ + function UpdateAuthMethodAzureAD(boundTenantId, name) { + _classCallCheck(this, UpdateAuthMethodAzureAD); - // verify MAC (iterations default to 1) - var macSalt = new forge.util.ByteBuffer(capture.macSalt); - var macIterations = (('macIterations' in capture) ? - parseInt(forge.util.bytesToHex(capture.macIterations), 16) : 1); - var macKey = p12.generateKey( - password, macSalt, 3, macIterations, macKeyBytes, md); - var mac = forge.hmac.create(); - mac.start(md, macKey); - mac.update(data.value); - var macValue = mac.getMac(); - if(macValue.getBytes() !== capture.macDigest) { - throw new Error('PKCS#12 MAC could not be verified. Invalid password?'); - } + UpdateAuthMethodAzureAD.initialize(this, boundTenantId, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - _decodeAuthenticatedSafe(pfx, data.value, strict, password); - return pfx; -}; -/** - * Decodes PKCS#7 Data. PKCS#7 (RFC 2315) defines "Data" as an OCTET STRING, - * but it is sometimes an OCTET STRING that is composed/constructed of chunks, - * each its own OCTET STRING. This is BER-encoding vs. DER-encoding. This - * function transforms this corner-case into the usual simple, - * non-composed/constructed OCTET STRING. - * - * This function may be moved to ASN.1 at some point to better deal with - * more BER-encoding issues, should they arise. - * - * @param data the ASN.1 Data object to transform. - */ -function _decodePkcs7Data(data) { - // handle special case of "chunked" data content: an octet string composed - // of other octet strings - if(data.composed || data.constructed) { - var value = forge.util.createBuffer(); - for(var i = 0; i < data.value.length; ++i) { - value.putBytes(data.value[i].value); + _createClass(UpdateAuthMethodAzureAD, null, [{ + key: "initialize", + value: function initialize(obj, boundTenantId, name) { + obj['bound-tenant-id'] = boundTenantId; + obj['name'] = name; } - data.composed = data.constructed = false; - data.value = value.getBytes(); - } - return data; -} - -/** - * Decode PKCS#12 AuthenticatedSafe (BER encoded) into PFX object. - * - * The AuthenticatedSafe is a BER-encoded SEQUENCE OF ContentInfo. - * - * @param pfx The PKCS#12 PFX object to fill. - * @param {String} authSafe BER-encoded AuthenticatedSafe. - * @param strict true to use strict DER decoding, false not to. - * @param {String} password Password to decrypt with (optional). - */ -function _decodeAuthenticatedSafe(pfx, authSafe, strict, password) { - authSafe = asn1.fromDer(authSafe, strict); /* actually it's BER encoded */ + /** + * Constructs a UpdateAuthMethodAzureAD from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodAzureAD} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodAzureAD} The populated UpdateAuthMethodAzureAD instance. + */ - if(authSafe.tagClass !== asn1.Class.UNIVERSAL || - authSafe.type !== asn1.Type.SEQUENCE || - authSafe.constructed !== true) { - throw new Error('PKCS#12 AuthenticatedSafe expected to be a ' + - 'SEQUENCE OF ContentInfo'); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodAzureAD(); - for(var i = 0; i < authSafe.value.length; i++) { - var contentInfo = authSafe.value[i]; + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } - // validate contentInfo and capture data - var capture = {}; - var errors = []; - if(!asn1.validate(contentInfo, contentInfoValidator, capture, errors)) { - var error = new Error('Cannot read ContentInfo.'); - error.errors = errors; - throw error; - } + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } - var obj = { - encrypted: false - }; - var safeContents = null; - var data = capture.content.value[0]; - switch(asn1.derToOid(capture.contentType)) { - case pki.oids.data: - if(data.tagClass !== asn1.Class.UNIVERSAL || - data.type !== asn1.Type.OCTETSTRING) { - throw new Error('PKCS#12 SafeContents Data is not an OCTET STRING.'); - } - safeContents = _decodePkcs7Data(data).value; - break; - case pki.oids.encryptedData: - safeContents = _decryptSafeContents(data, password); - obj.encrypted = true; - break; - default: - var error = new Error('Unsupported PKCS#12 contentType.'); - error.contentType = asn1.derToOid(capture.contentType); - throw error; - } + if (data.hasOwnProperty('bound-group-id')) { + obj['bound-group-id'] = _ApiClient["default"].convertToType(data['bound-group-id'], ['String']); + } - obj.safeBags = _decodeSafeContents(safeContents, strict, password); - pfx.safeContents.push(obj); - } -} + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } -/** - * Decrypt PKCS#7 EncryptedData structure. - * - * @param data ASN.1 encoded EncryptedContentInfo object. - * @param password The user-provided password. - * - * @return The decrypted SafeContents (ASN.1 object). - */ -function _decryptSafeContents(data, password) { - var capture = {}; - var errors = []; - if(!asn1.validate( - data, forge.pkcs7.asn1.encryptedDataValidator, capture, errors)) { - var error = new Error('Cannot read EncryptedContentInfo.'); - error.errors = errors; - throw error; - } + if (data.hasOwnProperty('bound-providers')) { + obj['bound-providers'] = _ApiClient["default"].convertToType(data['bound-providers'], ['String']); + } - var oid = asn1.derToOid(capture.contentType); - if(oid !== pki.oids.data) { - var error = new Error( - 'PKCS#12 EncryptedContentInfo ContentType is not Data.'); - error.oid = oid; - throw error; - } + if (data.hasOwnProperty('bound-resource-id')) { + obj['bound-resource-id'] = _ApiClient["default"].convertToType(data['bound-resource-id'], ['String']); + } - // get cipher - oid = asn1.derToOid(capture.encAlgorithm); - var cipher = pki.pbe.getCipher(oid, capture.encParameter, password); + if (data.hasOwnProperty('bound-resource-names')) { + obj['bound-resource-names'] = _ApiClient["default"].convertToType(data['bound-resource-names'], ['String']); + } - // get encrypted data - var encryptedContentAsn1 = _decodePkcs7Data(capture.encryptedContentAsn1); - var encrypted = forge.util.createBuffer(encryptedContentAsn1.value); + if (data.hasOwnProperty('bound-resource-types')) { + obj['bound-resource-types'] = _ApiClient["default"].convertToType(data['bound-resource-types'], ['String']); + } - cipher.update(encrypted); - if(!cipher.finish()) { - throw new Error('Failed to decrypt PKCS#12 SafeContents.'); - } + if (data.hasOwnProperty('bound-rg-id')) { + obj['bound-rg-id'] = _ApiClient["default"].convertToType(data['bound-rg-id'], ['String']); + } - return cipher.output.getBytes(); -} + if (data.hasOwnProperty('bound-spid')) { + obj['bound-spid'] = _ApiClient["default"].convertToType(data['bound-spid'], ['String']); + } -/** - * Decode PKCS#12 SafeContents (BER-encoded) into array of Bag objects. - * - * The safeContents is a BER-encoded SEQUENCE OF SafeBag. - * - * @param {String} safeContents BER-encoded safeContents. - * @param strict true to use strict DER decoding, false not to. - * @param {String} password Password to decrypt with (optional). - * - * @return {Array} Array of Bag objects. - */ -function _decodeSafeContents(safeContents, strict, password) { - // if strict and no safe contents, return empty safes - if(!strict && safeContents.length === 0) { - return []; - } + if (data.hasOwnProperty('bound-sub-id')) { + obj['bound-sub-id'] = _ApiClient["default"].convertToType(data['bound-sub-id'], ['String']); + } - // actually it's BER-encoded - safeContents = asn1.fromDer(safeContents, strict); + if (data.hasOwnProperty('bound-tenant-id')) { + obj['bound-tenant-id'] = _ApiClient["default"].convertToType(data['bound-tenant-id'], 'String'); + } - if(safeContents.tagClass !== asn1.Class.UNIVERSAL || - safeContents.type !== asn1.Type.SEQUENCE || - safeContents.constructed !== true) { - throw new Error( - 'PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.'); - } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - var res = []; - for(var i = 0; i < safeContents.value.length; i++) { - var safeBag = safeContents.value[i]; + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } - // validate SafeBag and capture data - var capture = {}; - var errors = []; - if(!asn1.validate(safeBag, safeBagValidator, capture, errors)) { - var error = new Error('Cannot read SafeBag.'); - error.errors = errors; - throw error; - } + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } - /* Create bag object and push to result array. */ - var bag = { - type: asn1.derToOid(capture.bagId), - attributes: _decodeBagAttributes(capture.bagAttributes) - }; - res.push(bag); - - var validator, decoder; - var bagAsn1 = capture.bagValue.value[0]; - switch(bag.type) { - case pki.oids.pkcs8ShroudedKeyBag: - /* bagAsn1 has a EncryptedPrivateKeyInfo, which we need to decrypt. - Afterwards we can handle it like a keyBag, - which is a PrivateKeyInfo. */ - bagAsn1 = pki.decryptPrivateKeyInfo(bagAsn1, password); - if(bagAsn1 === null) { - throw new Error( - 'Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?'); - } - - /* fall through */ - case pki.oids.keyBag: - /* A PKCS#12 keyBag is a simple PrivateKeyInfo as understood by our - PKI module, hence we don't have to do validation/capturing here, - just pass what we already got. */ - try { - bag.key = pki.privateKeyFromAsn1(bagAsn1); - } catch(e) { - // ignore unknown key type, pass asn1 value - bag.key = null; - bag.asn1 = bagAsn1; - } - continue; /* Nothing more to do. */ - - case pki.oids.certBag: - /* A PKCS#12 certBag can wrap both X.509 and sdsi certificates. - Therefore put the SafeBag content through another validator to - capture the fields. Afterwards check & store the results. */ - validator = certBagValidator; - decoder = function() { - if(asn1.derToOid(capture.certId) !== pki.oids.x509Certificate) { - var error = new Error( - 'Unsupported certificate type, only X.509 supported.'); - error.oid = asn1.derToOid(capture.certId); - throw error; - } + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } - // true=produce cert hash - var certAsn1 = asn1.fromDer(capture.cert, strict); - try { - bag.cert = pki.certificateFromAsn1(certAsn1, true); - } catch(e) { - // ignore unknown cert type, pass asn1 value - bag.cert = null; - bag.asn1 = certAsn1; - } - }; - break; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - default: - var error = new Error('Unsupported PKCS#12 SafeBag type.'); - error.oid = bag.type; - throw error; - } + if (data.hasOwnProperty('jwks-uri')) { + obj['jwks-uri'] = _ApiClient["default"].convertToType(data['jwks-uri'], 'String'); + } - /* Validate SafeBag value (i.e. CertBag, etc.) and capture data if needed. */ - if(validator !== undefined && - !asn1.validate(bagAsn1, validator, capture, errors)) { - var error = new Error('Cannot read PKCS#12 ' + validator.name); - error.errors = errors; - throw error; - } + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } - /* Call decoder function from above to store the results. */ - decoder(); - } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - return res; -} + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -/** - * Decode PKCS#12 SET OF PKCS12Attribute into JavaScript object. - * - * @param attributes SET OF PKCS12Attribute (ASN.1 object). - * - * @return the decoded attributes. - */ -function _decodeBagAttributes(attributes) { - var decodedAttrs = {}; + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } - if(attributes !== undefined) { - for(var i = 0; i < attributes.length; ++i) { - var capture = {}; - var errors = []; - if(!asn1.validate(attributes[i], attributeValidator, capture, errors)) { - var error = new Error('Cannot read PKCS#12 BagAttribute.'); - error.errors = errors; - throw error; - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - var oid = asn1.derToOid(capture.oid); - if(pki.oids[oid] === undefined) { - // unsupported attribute type, ignore. - continue; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } } - decodedAttrs[pki.oids[oid]] = []; - for(var j = 0; j < capture.values.length; ++j) { - decodedAttrs[pki.oids[oid]].push(capture.values[j].value); - } + return obj; } - } - - return decodedAttrs; -} + }]); + return UpdateAuthMethodAzureAD; +}(); /** - * Wraps a private key and certificate in a PKCS#12 PFX wrapper. If a - * password is provided then the private key will be encrypted. - * - * An entire certificate chain may also be included. To do this, pass - * an array for the "cert" parameter where the first certificate is - * the one that is paired with the private key and each subsequent one - * verifies the previous one. The certificates may be in PEM format or - * have been already parsed by Forge. - * - * @todo implement password-based-encryption for the whole package - * - * @param key the private key. - * @param cert the certificate (may be an array of certificates in order - * to specify a certificate chain). - * @param password the password to use, null for none. - * @param options: - * algorithm the encryption algorithm to use - * ('aes128', 'aes192', 'aes256', '3des'), defaults to 'aes128'. - * count the iteration count to use. - * saltSize the salt size to use. - * useMac true to include a MAC, false not to, defaults to true. - * localKeyId the local key ID to use, in hex. - * friendlyName the friendly name to use. - * generateLocalKeyId true to generate a random local key ID, - * false not to, defaults to true. - * - * @return the PKCS#12 PFX ASN.1 object. + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -p12.toPkcs12Asn1 = function(key, cert, password, options) { - // set default options - options = options || {}; - options.saltSize = options.saltSize || 8; - options.count = options.count || 2048; - options.algorithm = options.algorithm || options.encAlgorithm || 'aes128'; - if(!('useMac' in options)) { - options.useMac = true; - } - if(!('localKeyId' in options)) { - options.localKeyId = null; - } - if(!('generateLocalKeyId' in options)) { - options.generateLocalKeyId = true; - } - - var localKeyId = options.localKeyId; - var bagAttrs; - if(localKeyId !== null) { - localKeyId = forge.util.hexToBytes(localKeyId); - } else if(options.generateLocalKeyId) { - // use SHA-1 of paired cert, if available - if(cert) { - var pairedCert = forge.util.isArray(cert) ? cert[0] : cert; - if(typeof pairedCert === 'string') { - pairedCert = pki.certificateFromPem(pairedCert); - } - var sha1 = forge.md.sha1.create(); - sha1.update(asn1.toDer(pki.certificateToAsn1(pairedCert)).getBytes()); - localKeyId = sha1.digest().getBytes(); - } else { - // FIXME: consider using SHA-1 of public key (which can be generated - // from private key components), see: cert.generateSubjectKeyIdentifier - // generate random bytes - localKeyId = forge.random.getBytes(20); - } - } - - var attrs = []; - if(localKeyId !== null) { - attrs.push( - // localKeyID - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // attrId - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.localKeyId).getBytes()), - // attrValues - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - localKeyId) - ]) - ])); - } - if('friendlyName' in options) { - attrs.push( - // friendlyName - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // attrId - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.friendlyName).getBytes()), - // attrValues - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BMPSTRING, false, - options.friendlyName) - ]) - ])); - } - - if(attrs.length > 0) { - bagAttrs = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, attrs); - } - - // collect contents for AuthenticatedSafe - var contents = []; - - // create safe bag(s) for certificate chain - var chain = []; - if(cert !== null) { - if(forge.util.isArray(cert)) { - chain = cert; - } else { - chain = [cert]; - } - } - - var certSafeBags = []; - for(var i = 0; i < chain.length; ++i) { - // convert cert from PEM as necessary - cert = chain[i]; - if(typeof cert === 'string') { - cert = pki.certificateFromPem(cert); - } - - // SafeBag - var certBagAttrs = (i === 0) ? bagAttrs : undefined; - var certAsn1 = pki.certificateToAsn1(cert); - var certSafeBag = - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // bagId - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.certBag).getBytes()), - // bagValue - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - // CertBag - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // certId - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.x509Certificate).getBytes()), - // certValue (x509Certificate) - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - asn1.toDer(certAsn1).getBytes()) - ])])]), - // bagAttributes (OPTIONAL) - certBagAttrs - ]); - certSafeBags.push(certSafeBag); - } - - if(certSafeBags.length > 0) { - // SafeContents - var certSafeContents = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, certSafeBags); - - // ContentInfo - var certCI = - // PKCS#7 ContentInfo - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // contentType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - // OID for the content type is 'data' - asn1.oidToDer(pki.oids.data).getBytes()), - // content - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - asn1.toDer(certSafeContents).getBytes()) - ]) - ]); - contents.push(certCI); - } - - // create safe contents for private key - var keyBag = null; - if(key !== null) { - // SafeBag - var pkAsn1 = pki.wrapRsaPrivateKey(pki.privateKeyToAsn1(key)); - if(password === null) { - // no encryption - keyBag = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // bagId - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.keyBag).getBytes()), - // bagValue - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - // PrivateKeyInfo - pkAsn1 - ]), - // bagAttributes (OPTIONAL) - bagAttrs - ]); - } else { - // encrypted PrivateKeyInfo - keyBag = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // bagId - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.pkcs8ShroudedKeyBag).getBytes()), - // bagValue - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - // EncryptedPrivateKeyInfo - pki.encryptPrivateKeyInfo(pkAsn1, password, options) - ]), - // bagAttributes (OPTIONAL) - bagAttrs - ]); - } - - // SafeContents - var keySafeContents = - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [keyBag]); - - // ContentInfo - var keyCI = - // PKCS#7 ContentInfo - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // contentType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - // OID for the content type is 'data' - asn1.oidToDer(pki.oids.data).getBytes()), - // content - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - asn1.toDer(keySafeContents).getBytes()) - ]) - ]); - contents.push(keyCI); - } - - // create AuthenticatedSafe by stringing together the contents - var safe = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, contents); - - var macData; - if(options.useMac) { - // MacData - var sha1 = forge.md.sha1.create(); - var macSalt = new forge.util.ByteBuffer( - forge.random.getBytes(options.saltSize)); - var count = options.count; - // 160-bit key - var key = p12.generateKey(password, macSalt, 3, count, 20); - var mac = forge.hmac.create(); - mac.start(sha1, key); - mac.update(asn1.toDer(safe).getBytes()); - var macValue = mac.getMac(); - macData = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // mac DigestInfo - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // digestAlgorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm = SHA-1 - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.sha1).getBytes()), - // parameters = Null - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ]), - // digest - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, - false, macValue.getBytes()) - ]), - // macSalt OCTET STRING - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, macSalt.getBytes()), - // iterations INTEGER (XXX: Only support count < 65536) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(count).getBytes() - ) - ]); - } - // PFX - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // version (3) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(3).getBytes()), - // PKCS#7 ContentInfo - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // contentType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - // OID for the content type is 'data' - asn1.oidToDer(pki.oids.data).getBytes()), - // content - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - asn1.toDer(safe).getBytes()) - ]) - ]), - macData - ]); -}; +UpdateAuthMethodAzureAD.prototype['access-expires'] = 0; /** - * Derives a PKCS#12 key. - * - * @param password the password to derive the key material from, null or - * undefined for none. - * @param salt the salt, as a ByteBuffer, to use. - * @param id the PKCS#12 ID byte (1 = key material, 2 = IV, 3 = MAC). - * @param iter the iteration count. - * @param n the number of bytes to derive from the password. - * @param md the message digest to use, defaults to SHA-1. - * - * @return a ByteBuffer with the bytes derived from the password. + * Deprecated (Deprecated) The audience in the JWT + * @member {String} audience + * @default 'https://management.azure.com/' */ -p12.generateKey = forge.pbe.generatePkcs12Key; - - -/***/ }), - -/***/ 34382: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateAuthMethodAzureAD.prototype['audience'] = 'https://management.azure.com/'; /** - * Javascript implementation of PKCS#7 v1.5. - * - * @author Stefan Siegl - * @author Dave Longley - * - * Copyright (c) 2012 Stefan Siegl - * Copyright (c) 2012-2015 Digital Bazaar, Inc. - * - * Currently this implementation only supports ContentType of EnvelopedData, - * EncryptedData, or SignedData at the root level. The top level elements may - * contain only a ContentInfo of ContentType Data, i.e. plain data. Further - * nesting is not (yet) supported. - * - * The Forge validators for PKCS #7's ASN.1 structures are available from - * a separate file pkcs7asn1.js, since those are referenced from other - * PKCS standards like PKCS #12. + * A list of group ids that the access is restricted to + * @member {Array.} bound-group-id */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(39445); -__nccwpck_require__(27357); -__nccwpck_require__(93537); -__nccwpck_require__(10245); -__nccwpck_require__(60492); -__nccwpck_require__(40999); -__nccwpck_require__(32055); -__nccwpck_require__(97456); -__nccwpck_require__(15184); -// shortcut for ASN.1 API -var asn1 = forge.asn1; - -// shortcut for PKCS#7 API -var p7 = module.exports = forge.pkcs7 = forge.pkcs7 || {}; +UpdateAuthMethodAzureAD.prototype['bound-group-id'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ +UpdateAuthMethodAzureAD.prototype['bound-ips'] = undefined; /** - * Converts a PKCS#7 message from PEM format. - * - * @param pem the PEM-formatted PKCS#7 message. - * - * @return the PKCS#7 message. + * A list of resource providers that the access is restricted to (e.g, Microsoft.Compute, Microsoft.ManagedIdentity, etc) + * @member {Array.} bound-providers */ -p7.messageFromPem = function(pem) { - var msg = forge.pem.decode(pem)[0]; - if(msg.type !== 'PKCS7') { - var error = new Error('Could not convert PKCS#7 message from PEM; PEM ' + - 'header type is not "PKCS#7".'); - error.headerType = msg.type; - throw error; - } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error('Could not convert PKCS#7 message from PEM; PEM is encrypted.'); - } +UpdateAuthMethodAzureAD.prototype['bound-providers'] = undefined; +/** + * A list of full resource ids that the access is restricted to + * @member {Array.} bound-resource-id + */ - // convert DER to ASN.1 object - var obj = asn1.fromDer(msg.body); +UpdateAuthMethodAzureAD.prototype['bound-resource-id'] = undefined; +/** + * A list of resource names that the access is restricted to (e.g, a virtual machine name, scale set name, etc). + * @member {Array.} bound-resource-names + */ - return p7.messageFromAsn1(obj); -}; +UpdateAuthMethodAzureAD.prototype['bound-resource-names'] = undefined; +/** + * A list of resource types that the access is restricted to (e.g, virtualMachines, userAssignedIdentities, etc) + * @member {Array.} bound-resource-types + */ +UpdateAuthMethodAzureAD.prototype['bound-resource-types'] = undefined; /** - * Converts a PKCS#7 message to PEM format. - * - * @param msg The PKCS#7 message object - * @param maxline The maximum characters per line, defaults to 64. - * - * @return The PEM-formatted PKCS#7 message. + * A list of resource groups that the access is restricted to + * @member {Array.} bound-rg-id */ -p7.messageToPem = function(msg, maxline) { - // convert to ASN.1, then DER, then PEM-encode - var pemObj = { - type: 'PKCS7', - body: asn1.toDer(msg.toAsn1()).getBytes() - }; - return forge.pem.encode(pemObj, {maxline: maxline}); -}; +UpdateAuthMethodAzureAD.prototype['bound-rg-id'] = undefined; /** - * Converts a PKCS#7 message from an ASN.1 object. - * - * @param obj the ASN.1 representation of a ContentInfo. - * - * @return the PKCS#7 message. + * A list of service principal IDs that the access is restricted to + * @member {Array.} bound-spid */ -p7.messageFromAsn1 = function(obj) { - // validate root level ContentInfo and capture data - var capture = {}; - var errors = []; - if(!asn1.validate(obj, p7.asn1.contentInfoValidator, capture, errors)) { - var error = new Error('Cannot read PKCS#7 message. ' + - 'ASN.1 object is not an PKCS#7 ContentInfo.'); - error.errors = errors; - throw error; - } - var contentType = asn1.derToOid(capture.contentType); - var msg; +UpdateAuthMethodAzureAD.prototype['bound-spid'] = undefined; +/** + * A list of subscription ids that the access is restricted to + * @member {Array.} bound-sub-id + */ - switch(contentType) { - case forge.pki.oids.envelopedData: - msg = p7.createEnvelopedData(); - break; +UpdateAuthMethodAzureAD.prototype['bound-sub-id'] = undefined; +/** + * The Azure tenant id that the access is restricted to + * @member {String} bound-tenant-id + */ - case forge.pki.oids.encryptedData: - msg = p7.createEncryptedData(); - break; +UpdateAuthMethodAzureAD.prototype['bound-tenant-id'] = undefined; +/** + * Auth Method description + * @member {String} description + */ - case forge.pki.oids.signedData: - msg = p7.createSignedData(); - break; +UpdateAuthMethodAzureAD.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ - default: - throw new Error('Cannot read PKCS#7 message. ContentType with OID ' + - contentType + ' is not (yet) supported.'); - } +UpdateAuthMethodAzureAD.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ - msg.fromAsn1(capture.content.value[0]); - return msg; -}; +UpdateAuthMethodAzureAD.prototype['gw-bound-ips'] = undefined; +/** + * Issuer URL + * @member {String} issuer + * @default 'https://sts.windows.net/---bound_tenant_id---' + */ -p7.createSignedData = function() { - var msg = null; - msg = { - type: forge.pki.oids.signedData, - version: 1, - certificates: [], - crls: [], - // TODO: add json-formatted signer stuff here? - signers: [], - // populated during sign() - digestAlgorithmIdentifiers: [], - contentInfo: null, - signerInfos: [], - - fromAsn1: function(obj) { - // validate SignedData content block and capture data. - _fromAsn1(msg, obj, p7.asn1.signedDataValidator); - msg.certificates = []; - msg.crls = []; - msg.digestAlgorithmIdentifiers = []; - msg.contentInfo = null; - msg.signerInfos = []; - - if(msg.rawCapture.certificates) { - var certs = msg.rawCapture.certificates.value; - for(var i = 0; i < certs.length; ++i) { - msg.certificates.push(forge.pki.certificateFromAsn1(certs[i])); - } - } - - // TODO: parse crls - }, +UpdateAuthMethodAzureAD.prototype['issuer'] = 'https://sts.windows.net/---bound_tenant_id---'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - toAsn1: function() { - // degenerate case with no content - if(!msg.contentInfo) { - msg.sign(); - } +UpdateAuthMethodAzureAD.prototype['json'] = false; +/** + * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. + * @member {String} jwks-uri + * @default 'https://login.microsoftonline.com/common/discovery/keys' + */ - var certs = []; - for(var i = 0; i < msg.certificates.length; ++i) { - certs.push(forge.pki.certificateToAsn1(msg.certificates[i])); - } +UpdateAuthMethodAzureAD.prototype['jwks-uri'] = 'https://login.microsoftonline.com/common/discovery/keys'; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ - var crls = []; - // TODO: implement CRLs +UpdateAuthMethodAzureAD.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ - // [0] SignedData - var signedData = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // Version - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(msg.version).getBytes()), - // DigestAlgorithmIdentifiers - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SET, true, - msg.digestAlgorithmIdentifiers), - // ContentInfo - msg.contentInfo - ]) - ]); - if(certs.length > 0) { - // [0] IMPLICIT ExtendedCertificatesAndCertificates OPTIONAL - signedData.value[0].value.push( - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, certs)); - } - if(crls.length > 0) { - // [1] IMPLICIT CertificateRevocationLists OPTIONAL - signedData.value[0].value.push( - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, crls)); - } - // SignerInfos - signedData.value[0].value.push( - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, - msg.signerInfos)); - - // ContentInfo - return asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // ContentType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(msg.type).getBytes()), - // [0] SignedData - signedData - ]); - }, +UpdateAuthMethodAzureAD.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ - /** - * Add (another) entity to list of signers. - * - * Note: If authenticatedAttributes are provided, then, per RFC 2315, - * they must include at least two attributes: content type and - * message digest. The message digest attribute value will be - * auto-calculated during signing and will be ignored if provided. - * - * Here's an example of providing these two attributes: - * - * forge.pkcs7.createSignedData(); - * p7.addSigner({ - * issuer: cert.issuer.attributes, - * serialNumber: cert.serialNumber, - * key: privateKey, - * digestAlgorithm: forge.pki.oids.sha1, - * authenticatedAttributes: [{ - * type: forge.pki.oids.contentType, - * value: forge.pki.oids.data - * }, { - * type: forge.pki.oids.messageDigest - * }] - * }); - * - * TODO: Support [subjectKeyIdentifier] as signer's ID. - * - * @param signer the signer information: - * key the signer's private key. - * [certificate] a certificate containing the public key - * associated with the signer's private key; use this option as - * an alternative to specifying signer.issuer and - * signer.serialNumber. - * [issuer] the issuer attributes (eg: cert.issuer.attributes). - * [serialNumber] the signer's certificate's serial number in - * hexadecimal (eg: cert.serialNumber). - * [digestAlgorithm] the message digest OID, as a string, to use - * (eg: forge.pki.oids.sha1). - * [authenticatedAttributes] an optional array of attributes - * to also sign along with the content. - */ - addSigner: function(signer) { - var issuer = signer.issuer; - var serialNumber = signer.serialNumber; - if(signer.certificate) { - var cert = signer.certificate; - if(typeof cert === 'string') { - cert = forge.pki.certificateFromPem(cert); - } - issuer = cert.issuer.attributes; - serialNumber = cert.serialNumber; - } - var key = signer.key; - if(!key) { - throw new Error( - 'Could not add PKCS#7 signer; no private key specified.'); - } - if(typeof key === 'string') { - key = forge.pki.privateKeyFromPem(key); - } +UpdateAuthMethodAzureAD.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ - // ensure OID known for digest algorithm - var digestAlgorithm = signer.digestAlgorithm || forge.pki.oids.sha1; - switch(digestAlgorithm) { - case forge.pki.oids.sha1: - case forge.pki.oids.sha256: - case forge.pki.oids.sha384: - case forge.pki.oids.sha512: - case forge.pki.oids.md5: - break; - default: - throw new Error( - 'Could not add PKCS#7 signer; unknown message digest algorithm: ' + - digestAlgorithm); - } - - // if authenticatedAttributes is present, then the attributes - // must contain at least PKCS #9 content-type and message-digest - var authenticatedAttributes = signer.authenticatedAttributes || []; - if(authenticatedAttributes.length > 0) { - var contentType = false; - var messageDigest = false; - for(var i = 0; i < authenticatedAttributes.length; ++i) { - var attr = authenticatedAttributes[i]; - if(!contentType && attr.type === forge.pki.oids.contentType) { - contentType = true; - if(messageDigest) { - break; - } - continue; - } - if(!messageDigest && attr.type === forge.pki.oids.messageDigest) { - messageDigest = true; - if(contentType) { - break; - } - continue; - } - } +UpdateAuthMethodAzureAD.prototype['product-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - if(!contentType || !messageDigest) { - throw new Error('Invalid signer.authenticatedAttributes. If ' + - 'signer.authenticatedAttributes is specified, then it must ' + - 'contain at least two attributes, PKCS #9 content-type and ' + - 'PKCS #9 message-digest.'); - } - } +UpdateAuthMethodAzureAD.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - msg.signers.push({ - key: key, - version: 1, - issuer: issuer, - serialNumber: serialNumber, - digestAlgorithm: digestAlgorithm, - signatureAlgorithm: forge.pki.oids.rsaEncryption, - signature: null, - authenticatedAttributes: authenticatedAttributes, - unauthenticatedAttributes: [] - }); - }, +UpdateAuthMethodAzureAD.prototype['uid-token'] = undefined; +var _default = UpdateAuthMethodAzureAD; +exports["default"] = _default; - /** - * Signs the content. - * @param options Options to apply when signing: - * [detached] boolean. If signing should be done in detached mode. Defaults to false. - */ - sign: function(options) { - options = options || {}; - // auto-generate content info - if(typeof msg.content !== 'object' || msg.contentInfo === null) { - // use Data ContentInfo - msg.contentInfo = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // ContentType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(forge.pki.oids.data).getBytes()) - ]); - - // add actual content, if present - if('content' in msg) { - var content; - if(msg.content instanceof forge.util.ByteBuffer) { - content = msg.content.bytes(); - } else if(typeof msg.content === 'string') { - content = forge.util.encodeUtf8(msg.content); - } +/***/ }), - if (options.detached) { - msg.detachedContent = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, content); - } else { - msg.contentInfo.value.push( - // [0] EXPLICIT content - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - content) - ])); - } - } - } +/***/ 18408: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // no signers, return early (degenerate case for certificate container) - if(msg.signers.length === 0) { - return; - } +"use strict"; - // generate digest algorithm identifiers - var mds = addDigestAlgorithmIds(); - // generate signerInfos - addSignerInfos(mds); - }, +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - verify: function() { - throw new Error('PKCS#7 signature verification not yet implemented.'); - }, +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - /** - * Add a certificate. - * - * @param cert the certificate to add. - */ - addCertificate: function(cert) { - // convert from PEM - if(typeof cert === 'string') { - cert = forge.pki.certificateFromPem(cert); - } - msg.certificates.push(cert); - }, +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - /** - * Add a certificate revokation list. - * - * @param crl the certificate revokation list to add. - */ - addCertificateRevokationList: function(crl) { - throw new Error('PKCS#7 CRL support not yet implemented.'); - } - }; - return msg; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function addDigestAlgorithmIds() { - var mds = {}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - for(var i = 0; i < msg.signers.length; ++i) { - var signer = msg.signers[i]; - var oid = signer.digestAlgorithm; - if(!(oid in mds)) { - // content digest - mds[oid] = forge.md[forge.pki.oids[oid]].create(); - } - if(signer.authenticatedAttributes.length === 0) { - // no custom attributes to digest; use content message digest - signer.md = mds[oid]; - } else { - // custom attributes to be digested; use own message digest - // TODO: optimize to just copy message digest state if that - // feature is ever supported with message digests - signer.md = forge.md[forge.pki.oids[oid]].create(); - } - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // add unique digest algorithm identifiers - msg.digestAlgorithmIdentifiers = []; - for(var oid in mds) { - msg.digestAlgorithmIdentifiers.push( - // AlgorithmIdentifier - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(oid).getBytes()), - // parameters (null) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ])); - } +/** + * The UpdateAuthMethodCert model module. + * @module model/UpdateAuthMethodCert + * @version 3.6.3 + */ +var UpdateAuthMethodCert = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAuthMethodCert. + * updateAuthMethodCert is a command that updates a new auth method that will be able to authenticate using a client certificae + * @alias module:model/UpdateAuthMethodCert + * @param name {String} Auth Method name + * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured, such as common_name or organizational_unit Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + */ + function UpdateAuthMethodCert(name, uniqueIdentifier) { + _classCallCheck(this, UpdateAuthMethodCert); - return mds; + UpdateAuthMethodCert.initialize(this, name, uniqueIdentifier); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - function addSignerInfos(mds) { - var content; - - if (msg.detachedContent) { - // Signature has been made in detached mode. - content = msg.detachedContent; - } else { - // Note: ContentInfo is a SEQUENCE with 2 values, second value is - // the content field and is optional for a ContentInfo but required here - // since signers are present - // get ContentInfo content - content = msg.contentInfo.value[1]; - // skip [0] EXPLICIT content wrapper - content = content.value[0]; - } - - if(!content) { - throw new Error( - 'Could not sign PKCS#7 message; there is no content to sign.'); - } - - // get ContentInfo content type - var contentType = asn1.derToOid(msg.contentInfo.value[0].value); - - // serialize content - var bytes = asn1.toDer(content); - - // skip identifier and length per RFC 2315 9.3 - // skip identifier (1 byte) - bytes.getByte(); - // read and discard length bytes - asn1.getBerValueLength(bytes); - bytes = bytes.getBytes(); - - // digest content DER value bytes - for(var oid in mds) { - mds[oid].start().update(bytes); - } - - // sign content - var signingTime = new Date(); - for(var i = 0; i < msg.signers.length; ++i) { - var signer = msg.signers[i]; - - if(signer.authenticatedAttributes.length === 0) { - // if ContentInfo content type is not "Data", then - // authenticatedAttributes must be present per RFC 2315 - if(contentType !== forge.pki.oids.data) { - throw new Error( - 'Invalid signer; authenticatedAttributes must be present ' + - 'when the ContentInfo content type is not PKCS#7 Data.'); - } - } else { - // process authenticated attributes - // [0] IMPLICIT - signer.authenticatedAttributesAsn1 = asn1.create( - asn1.Class.CONTEXT_SPECIFIC, 0, true, []); - - // per RFC 2315, attributes are to be digested using a SET container - // not the above [0] IMPLICIT container - var attrsAsn1 = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SET, true, []); - - for(var ai = 0; ai < signer.authenticatedAttributes.length; ++ai) { - var attr = signer.authenticatedAttributes[ai]; - if(attr.type === forge.pki.oids.messageDigest) { - // use content message digest as value - attr.value = mds[signer.digestAlgorithm].digest(); - } else if(attr.type === forge.pki.oids.signingTime) { - // auto-populate signing time if not already set - if(!attr.value) { - attr.value = signingTime; - } - } - - // convert to ASN.1 and push onto Attributes SET (for signing) and - // onto authenticatedAttributesAsn1 to complete SignedData ASN.1 - // TODO: optimize away duplication - attrsAsn1.value.push(_attributeToAsn1(attr)); - signer.authenticatedAttributesAsn1.value.push(_attributeToAsn1(attr)); - } - - // DER-serialize and digest SET OF attributes only - bytes = asn1.toDer(attrsAsn1).getBytes(); - signer.md.start().update(bytes); - } - // sign digest - signer.signature = signer.key.sign(signer.md, 'RSASSA-PKCS1-V1_5'); + _createClass(UpdateAuthMethodCert, null, [{ + key: "initialize", + value: function initialize(obj, name, uniqueIdentifier) { + obj['name'] = name; + obj['unique-identifier'] = uniqueIdentifier; } - - // add signer info - msg.signerInfos = _signersToAsn1(msg.signers); - } -}; - -/** - * Creates an empty PKCS#7 message of type EncryptedData. - * - * @return the message. - */ -p7.createEncryptedData = function() { - var msg = null; - msg = { - type: forge.pki.oids.encryptedData, - version: 0, - encryptedContent: { - algorithm: forge.pki.oids['aes256-CBC'] - }, - - /** - * Reads an EncryptedData content block (in ASN.1 format) - * - * @param obj The ASN.1 representation of the EncryptedData content block - */ - fromAsn1: function(obj) { - // Validate EncryptedData content block and capture data. - _fromAsn1(msg, obj, p7.asn1.encryptedDataValidator); - }, - /** - * Decrypt encrypted content - * - * @param key The (symmetric) key as a byte buffer + * Constructs a UpdateAuthMethodCert from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodCert} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodCert} The populated UpdateAuthMethodCert instance. */ - decrypt: function(key) { - if(key !== undefined) { - msg.encryptedContent.key = key; - } - _decryptContent(msg); - } - }; - return msg; -}; - -/** - * Creates an empty PKCS#7 message of type EnvelopedData. - * - * @return the message. - */ -p7.createEnvelopedData = function() { - var msg = null; - msg = { - type: forge.pki.oids.envelopedData, - version: 0, - recipients: [], - encryptedContent: { - algorithm: forge.pki.oids['aes256-CBC'] - }, - /** - * Reads an EnvelopedData content block (in ASN.1 format) - * - * @param obj the ASN.1 representation of the EnvelopedData content block. - */ - fromAsn1: function(obj) { - // validate EnvelopedData content block and capture data - var capture = _fromAsn1(msg, obj, p7.asn1.envelopedDataValidator); - msg.recipients = _recipientsFromAsn1(capture.recipientInfos.value); - }, + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodCert(); - toAsn1: function() { - // ContentInfo - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // ContentType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(msg.type).getBytes()), - // [0] EnvelopedData - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // Version - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(msg.version).getBytes()), - // RecipientInfos - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, - _recipientsToAsn1(msg.recipients)), - // EncryptedContentInfo - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, - _encryptedContentToAsn1(msg.encryptedContent)) - ]) - ]) - ]); - }, + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } - /** - * Find recipient by X.509 certificate's issuer. - * - * @param cert the certificate with the issuer to look for. - * - * @return the recipient object. - */ - findRecipient: function(cert) { - var sAttr = cert.issuer.attributes; + if (data.hasOwnProperty('allowed-cors')) { + obj['allowed-cors'] = _ApiClient["default"].convertToType(data['allowed-cors'], 'String'); + } - for(var i = 0; i < msg.recipients.length; ++i) { - var r = msg.recipients[i]; - var rAttr = r.issuer; + if (data.hasOwnProperty('bound-common-names')) { + obj['bound-common-names'] = _ApiClient["default"].convertToType(data['bound-common-names'], ['String']); + } - if(r.serialNumber !== cert.serialNumber) { - continue; + if (data.hasOwnProperty('bound-dns-sans')) { + obj['bound-dns-sans'] = _ApiClient["default"].convertToType(data['bound-dns-sans'], ['String']); } - if(rAttr.length !== sAttr.length) { - continue; + if (data.hasOwnProperty('bound-email-sans')) { + obj['bound-email-sans'] = _ApiClient["default"].convertToType(data['bound-email-sans'], ['String']); } - var match = true; - for(var j = 0; j < sAttr.length; ++j) { - if(rAttr[j].type !== sAttr[j].type || - rAttr[j].value !== sAttr[j].value) { - match = false; - break; - } + if (data.hasOwnProperty('bound-extensions')) { + obj['bound-extensions'] = _ApiClient["default"].convertToType(data['bound-extensions'], ['String']); } - if(match) { - return r; + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); } - } - return null; - }, + if (data.hasOwnProperty('bound-organizational-units')) { + obj['bound-organizational-units'] = _ApiClient["default"].convertToType(data['bound-organizational-units'], ['String']); + } - /** - * Decrypt enveloped content - * - * @param recipient The recipient object related to the private key - * @param privKey The (RSA) private key object - */ - decrypt: function(recipient, privKey) { - if(msg.encryptedContent.key === undefined && recipient !== undefined && - privKey !== undefined) { - switch(recipient.encryptedContent.algorithm) { - case forge.pki.oids.rsaEncryption: - case forge.pki.oids.desCBC: - var key = privKey.decrypt(recipient.encryptedContent.content); - msg.encryptedContent.key = forge.util.createBuffer(key); - break; + if (data.hasOwnProperty('bound-uri-sans')) { + obj['bound-uri-sans'] = _ApiClient["default"].convertToType(data['bound-uri-sans'], ['String']); + } - default: - throw new Error('Unsupported asymmetric cipher, ' + - 'OID ' + recipient.encryptedContent.algorithm); + if (data.hasOwnProperty('certificate-data')) { + obj['certificate-data'] = _ApiClient["default"].convertToType(data['certificate-data'], 'String'); } - } - _decryptContent(msg); - }, + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - /** - * Add (another) entity to list of recipients. - * - * @param cert The certificate of the entity to add. - */ - addRecipient: function(cert) { - msg.recipients.push({ - version: 0, - issuer: cert.issuer.attributes, - serialNumber: cert.serialNumber, - encryptedContent: { - // We simply assume rsaEncryption here, since forge.pki only - // supports RSA so far. If the PKI module supports other - // ciphers one day, we need to modify this one as well. - algorithm: forge.pki.oids.rsaEncryption, - key: cert.publicKey + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); } - }); - }, - /** - * Encrypt enveloped content. - * - * This function supports two optional arguments, cipher and key, which - * can be used to influence symmetric encryption. Unless cipher is - * provided, the cipher specified in encryptedContent.algorithm is used - * (defaults to AES-256-CBC). If no key is provided, encryptedContent.key - * is (re-)used. If that one's not set, a random key will be generated - * automatically. - * - * @param [key] The key to be used for symmetric encryption. - * @param [cipher] The OID of the symmetric cipher to use. - */ - encrypt: function(key, cipher) { - // Part 1: Symmetric encryption - if(msg.encryptedContent.content === undefined) { - cipher = cipher || msg.encryptedContent.algorithm; - key = key || msg.encryptedContent.key; - - var keyLen, ivLen, ciphFn; - switch(cipher) { - case forge.pki.oids['aes128-CBC']: - keyLen = 16; - ivLen = 16; - ciphFn = forge.aes.createEncryptionCipher; - break; + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } - case forge.pki.oids['aes192-CBC']: - keyLen = 24; - ivLen = 16; - ciphFn = forge.aes.createEncryptionCipher; - break; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - case forge.pki.oids['aes256-CBC']: - keyLen = 32; - ivLen = 16; - ciphFn = forge.aes.createEncryptionCipher; - break; + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } - case forge.pki.oids['des-EDE3-CBC']: - keyLen = 24; - ivLen = 8; - ciphFn = forge.des.createEncryptionCipher; - break; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - default: - throw new Error('Unsupported symmetric cipher, OID ' + cipher); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - if(key === undefined) { - key = forge.util.createBuffer(forge.random.getBytes(keyLen)); - } else if(key.length() != keyLen) { - throw new Error('Symmetric key has wrong length; ' + - 'got ' + key.length() + ' bytes, expected ' + keyLen + '.'); + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); } - // Keep a copy of the key & IV in the object, so the caller can - // use it for whatever reason. - msg.encryptedContent.algorithm = cipher; - msg.encryptedContent.key = key; - msg.encryptedContent.parameter = forge.util.createBuffer( - forge.random.getBytes(ivLen)); + if (data.hasOwnProperty('revoked-cert-ids')) { + obj['revoked-cert-ids'] = _ApiClient["default"].convertToType(data['revoked-cert-ids'], ['String']); + } - var ciph = ciphFn(key); - ciph.start(msg.encryptedContent.parameter.copy()); - ciph.update(msg.content); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - // The finish function does PKCS#7 padding by default, therefore - // no action required by us. - if(!ciph.finish()) { - throw new Error('Symmetric encryption failed.'); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - msg.encryptedContent.content = ciph.output; + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + } } - // Part 2: asymmetric encryption for each recipient - for(var i = 0; i < msg.recipients.length; ++i) { - var recipient = msg.recipients[i]; + return obj; + } + }]); - // Nothing to do, encryption already done. - if(recipient.encryptedContent.content !== undefined) { - continue; - } + return UpdateAuthMethodCert; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ - switch(recipient.encryptedContent.algorithm) { - case forge.pki.oids.rsaEncryption: - recipient.encryptedContent.content = - recipient.encryptedContent.key.encrypt( - msg.encryptedContent.key.data); - break; - default: - throw new Error('Unsupported asymmetric cipher, OID ' + - recipient.encryptedContent.algorithm); - } - } - } - }; - return msg; -}; +UpdateAuthMethodCert.prototype['access-expires'] = 0; +/** + * Comma separated list of allowed CORS domains to be validated as part of the authentication flow. + * @member {String} allowed-cors + */ +UpdateAuthMethodCert.prototype['allowed-cors'] = undefined; /** - * Converts a single recipient from an ASN.1 object. - * - * @param obj the ASN.1 RecipientInfo. - * - * @return the recipient object. + * A list of names. At least one must exist in the Common Name. Supports globbing. + * @member {Array.} bound-common-names */ -function _recipientFromAsn1(obj) { - // validate EnvelopedData content block and capture data - var capture = {}; - var errors = []; - if(!asn1.validate(obj, p7.asn1.recipientInfoValidator, capture, errors)) { - var error = new Error('Cannot read PKCS#7 RecipientInfo. ' + - 'ASN.1 object is not an PKCS#7 RecipientInfo.'); - error.errors = errors; - throw error; - } - return { - version: capture.version.charCodeAt(0), - issuer: forge.pki.RDNAttributesAsArray(capture.issuer), - serialNumber: forge.util.createBuffer(capture.serial).toHex(), - encryptedContent: { - algorithm: asn1.derToOid(capture.encAlgorithm), - parameter: capture.encParameter ? capture.encParameter.value : undefined, - content: capture.encKey - } - }; -} +UpdateAuthMethodCert.prototype['bound-common-names'] = undefined; +/** + * A list of DNS names. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound-dns-sans + */ +UpdateAuthMethodCert.prototype['bound-dns-sans'] = undefined; /** - * Converts a single recipient object to an ASN.1 object. - * - * @param obj the recipient object. - * - * @return the ASN.1 RecipientInfo. + * A list of Email Addresses. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound-email-sans */ -function _recipientToAsn1(obj) { - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // Version - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(obj.version).getBytes()), - // IssuerAndSerialNumber - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // Name - forge.pki.distinguishedNameToAsn1({attributes: obj.issuer}), - // Serial - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - forge.util.hexToBytes(obj.serialNumber)) - ]), - // KeyEncryptionAlgorithmIdentifier - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // Algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(obj.encryptedContent.algorithm).getBytes()), - // Parameter, force NULL, only RSA supported for now. - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ]), - // EncryptedKey - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - obj.encryptedContent.content) - ]); -} +UpdateAuthMethodCert.prototype['bound-email-sans'] = undefined; /** - * Map a set of RecipientInfo ASN.1 objects to recipient objects. - * - * @param infos an array of ASN.1 representations RecipientInfo (i.e. SET OF). - * - * @return an array of recipient objects. + * A list of extensions formatted as \"oid:value\". Expects the extension value to be some type of ASN1 encoded string. All values much match. Supports globbing on \"value\". + * @member {Array.} bound-extensions */ -function _recipientsFromAsn1(infos) { - var ret = []; - for(var i = 0; i < infos.length; ++i) { - ret.push(_recipientFromAsn1(infos[i])); - } - return ret; -} +UpdateAuthMethodCert.prototype['bound-extensions'] = undefined; /** - * Map an array of recipient objects to ASN.1 RecipientInfo objects. - * - * @param recipients an array of recipientInfo objects. - * - * @return an array of ASN.1 RecipientInfos. + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips */ -function _recipientsToAsn1(recipients) { - var ret = []; - for(var i = 0; i < recipients.length; ++i) { - ret.push(_recipientToAsn1(recipients[i])); - } - return ret; -} +UpdateAuthMethodCert.prototype['bound-ips'] = undefined; /** - * Converts a single signer from an ASN.1 object. - * - * @param obj the ASN.1 representation of a SignerInfo. - * - * @return the signer object. + * A list of Organizational Units names. At least one must exist in the OU field. + * @member {Array.} bound-organizational-units */ -function _signerFromAsn1(obj) { - // validate EnvelopedData content block and capture data - var capture = {}; - var errors = []; - if(!asn1.validate(obj, p7.asn1.signerInfoValidator, capture, errors)) { - var error = new Error('Cannot read PKCS#7 SignerInfo. ' + - 'ASN.1 object is not an PKCS#7 SignerInfo.'); - error.errors = errors; - throw error; - } - - var rval = { - version: capture.version.charCodeAt(0), - issuer: forge.pki.RDNAttributesAsArray(capture.issuer), - serialNumber: forge.util.createBuffer(capture.serial).toHex(), - digestAlgorithm: asn1.derToOid(capture.digestAlgorithm), - signatureAlgorithm: asn1.derToOid(capture.signatureAlgorithm), - signature: capture.signature, - authenticatedAttributes: [], - unauthenticatedAttributes: [] - }; - - // TODO: convert attributes - var authenticatedAttributes = capture.authenticatedAttributes || []; - var unauthenticatedAttributes = capture.unauthenticatedAttributes || []; - - return rval; -} +UpdateAuthMethodCert.prototype['bound-organizational-units'] = undefined; /** - * Converts a single signerInfo object to an ASN.1 object. - * - * @param obj the signerInfo object. - * - * @return the ASN.1 representation of a SignerInfo. + * A list of URIs. At least one must exist in the SANs. Supports globbing. + * @member {Array.} bound-uri-sans */ -function _signerToAsn1(obj) { - // SignerInfo - var rval = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // version - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(obj.version).getBytes()), - // issuerAndSerialNumber - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // name - forge.pki.distinguishedNameToAsn1({attributes: obj.issuer}), - // serial - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - forge.util.hexToBytes(obj.serialNumber)) - ]), - // digestAlgorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(obj.digestAlgorithm).getBytes()), - // parameters (null) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ]) - ]); - - // authenticatedAttributes (OPTIONAL) - if(obj.authenticatedAttributesAsn1) { - // add ASN.1 previously generated during signing - rval.value.push(obj.authenticatedAttributesAsn1); - } - - // digestEncryptionAlgorithm - rval.value.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(obj.signatureAlgorithm).getBytes()), - // parameters (null) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ])); - - // encryptedDigest - rval.value.push(asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, obj.signature)); - - // unauthenticatedAttributes (OPTIONAL) - if(obj.unauthenticatedAttributes.length > 0) { - // [1] IMPLICIT - var attrsAsn1 = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, []); - for(var i = 0; i < obj.unauthenticatedAttributes.length; ++i) { - var attr = obj.unauthenticatedAttributes[i]; - attrsAsn1.values.push(_attributeToAsn1(attr)); - } - rval.value.push(attrsAsn1); - } - - return rval; -} +UpdateAuthMethodCert.prototype['bound-uri-sans'] = undefined; /** - * Map a set of SignerInfo ASN.1 objects to an array of signer objects. - * - * @param signerInfoAsn1s an array of ASN.1 SignerInfos (i.e. SET OF). - * - * @return an array of signers objects. + * The certificate data in base64, if no file was provided + * @member {String} certificate-data */ -function _signersFromAsn1(signerInfoAsn1s) { - var ret = []; - for(var i = 0; i < signerInfoAsn1s.length; ++i) { - ret.push(_signerFromAsn1(signerInfoAsn1s[i])); - } - return ret; -} +UpdateAuthMethodCert.prototype['certificate-data'] = undefined; /** - * Map an array of signer objects to ASN.1 objects. - * - * @param signers an array of signer objects. - * - * @return an array of ASN.1 SignerInfos. + * Auth Method description + * @member {String} description */ -function _signersToAsn1(signers) { - var ret = []; - for(var i = 0; i < signers.length; ++i) { - ret.push(_signerToAsn1(signers[i])); - } - return ret; -} +UpdateAuthMethodCert.prototype['description'] = undefined; /** - * Convert an attribute object to an ASN.1 Attribute. - * - * @param attr the attribute object. - * - * @return the ASN.1 Attribute. - */ -function _attributeToAsn1(attr) { - var value; - - // TODO: generalize to support more attributes - if(attr.type === forge.pki.oids.contentType) { - value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(attr.value).getBytes()); - } else if(attr.type === forge.pki.oids.messageDigest) { - value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - attr.value.bytes()); - } else if(attr.type === forge.pki.oids.signingTime) { - /* Note per RFC 2985: Dates between 1 January 1950 and 31 December 2049 - (inclusive) MUST be encoded as UTCTime. Any dates with year values - before 1950 or after 2049 MUST be encoded as GeneralizedTime. [Further,] - UTCTime values MUST be expressed in Greenwich Mean Time (Zulu) and MUST - include seconds (i.e., times are YYMMDDHHMMSSZ), even where the - number of seconds is zero. Midnight (GMT) must be represented as - "YYMMDD000000Z". */ - // TODO: make these module-level constants - var jan_1_1950 = new Date('1950-01-01T00:00:00Z'); - var jan_1_2050 = new Date('2050-01-01T00:00:00Z'); - var date = attr.value; - if(typeof date === 'string') { - // try to parse date - var timestamp = Date.parse(date); - if(!isNaN(timestamp)) { - date = new Date(timestamp); - } else if(date.length === 13) { - // YYMMDDHHMMSSZ (13 chars for UTCTime) - date = asn1.utcTimeToDate(date); - } else { - // assume generalized time - date = asn1.generalizedTimeToDate(date); - } - } - - if(date >= jan_1_1950 && date < jan_1_2050) { - value = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.UTCTIME, false, - asn1.dateToUtcTime(date)); - } else { - value = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.GENERALIZEDTIME, false, - asn1.dateToGeneralizedTime(date)); - } - } - - // TODO: expose as common API call - // create a RelativeDistinguishedName set - // each value in the set is an AttributeTypeAndValue first - // containing the type (an OID) and second the value - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // AttributeType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(attr.type).getBytes()), - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ - // AttributeValue - value - ]) - ]); -} + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ +UpdateAuthMethodCert.prototype['force-sub-claims'] = undefined; /** - * Map messages encrypted content to ASN.1 objects. - * - * @param ec The encryptedContent object of the message. - * - * @return ASN.1 representation of the encryptedContent object (SEQUENCE). + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips */ -function _encryptedContentToAsn1(ec) { - return [ - // ContentType, always Data for the moment - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(forge.pki.oids.data).getBytes()), - // ContentEncryptionAlgorithmIdentifier - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // Algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(ec.algorithm).getBytes()), - // Parameters (IV) - !ec.parameter ? - undefined : - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - ec.parameter.getBytes()) - ]), - // [0] EncryptedContent - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - ec.content.getBytes()) - ]) - ]; -} +UpdateAuthMethodCert.prototype['gw-bound-ips'] = undefined; /** - * Reads the "common part" of an PKCS#7 content block (in ASN.1 format) - * - * This function reads the "common part" of the PKCS#7 content blocks - * EncryptedData and EnvelopedData, i.e. version number and symmetrically - * encrypted content block. - * - * The result of the ASN.1 validate and capture process is returned - * to allow the caller to extract further data, e.g. the list of recipients - * in case of a EnvelopedData object. - * - * @param msg the PKCS#7 object to read the data to. - * @param obj the ASN.1 representation of the content block. - * @param validator the ASN.1 structure validator object to use. - * - * @return the value map captured by validator object. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -function _fromAsn1(msg, obj, validator) { - var capture = {}; - var errors = []; - if(!asn1.validate(obj, validator, capture, errors)) { - var error = new Error('Cannot read PKCS#7 message. ' + - 'ASN.1 object is not a supported PKCS#7 message.'); - error.errors = error; - throw error; - } - - // Check contentType, so far we only support (raw) Data. - var contentType = asn1.derToOid(capture.contentType); - if(contentType !== forge.pki.oids.data) { - throw new Error('Unsupported PKCS#7 message. ' + - 'Only wrapped ContentType Data supported.'); - } - - if(capture.encryptedContent) { - var content = ''; - if(forge.util.isArray(capture.encryptedContent)) { - for(var i = 0; i < capture.encryptedContent.length; ++i) { - if(capture.encryptedContent[i].type !== asn1.Type.OCTETSTRING) { - throw new Error('Malformed PKCS#7 message, expecting encrypted ' + - 'content constructed of only OCTET STRING objects.'); - } - content += capture.encryptedContent[i].value; - } - } else { - content = capture.encryptedContent; - } - msg.encryptedContent = { - algorithm: asn1.derToOid(capture.encAlgorithm), - parameter: forge.util.createBuffer(capture.encParameter.value), - content: forge.util.createBuffer(content) - }; - } - - if(capture.content) { - var content = ''; - if(forge.util.isArray(capture.content)) { - for(var i = 0; i < capture.content.length; ++i) { - if(capture.content[i].type !== asn1.Type.OCTETSTRING) { - throw new Error('Malformed PKCS#7 message, expecting ' + - 'content constructed of only OCTET STRING objects.'); - } - content += capture.content[i].value; - } - } else { - content = capture.content; - } - msg.content = forge.util.createBuffer(content); - } - msg.version = capture.version.charCodeAt(0); - msg.rawCapture = capture; - - return capture; -} +UpdateAuthMethodCert.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ +UpdateAuthMethodCert.prototype['jwt-ttl'] = 0; /** - * Decrypt the symmetrically encrypted content block of the PKCS#7 message. - * - * Decryption is skipped in case the PKCS#7 message object already has a - * (decrypted) content attribute. The algorithm, key and cipher parameters - * (probably the iv) are taken from the encryptedContent attribute of the - * message object. - * - * @param The PKCS#7 message object. + * Auth Method name + * @member {String} name */ -function _decryptContent(msg) { - if(msg.encryptedContent.key === undefined) { - throw new Error('Symmetric key not available.'); - } - if(msg.content === undefined) { - var ciph; +UpdateAuthMethodCert.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ - switch(msg.encryptedContent.algorithm) { - case forge.pki.oids['aes128-CBC']: - case forge.pki.oids['aes192-CBC']: - case forge.pki.oids['aes256-CBC']: - ciph = forge.aes.createDecryptionCipher(msg.encryptedContent.key); - break; +UpdateAuthMethodCert.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ - case forge.pki.oids['desCBC']: - case forge.pki.oids['des-EDE3-CBC']: - ciph = forge.des.createDecryptionCipher(msg.encryptedContent.key); - break; +UpdateAuthMethodCert.prototype['product-type'] = undefined; +/** + * A list of revoked cert ids + * @member {Array.} revoked-cert-ids + */ - default: - throw new Error('Unsupported symmetric cipher, OID ' + - msg.encryptedContent.algorithm); - } - ciph.start(msg.encryptedContent.parameter); - ciph.update(msg.encryptedContent.content); +UpdateAuthMethodCert.prototype['revoked-cert-ids'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - if(!ciph.finish()) { - throw new Error('Symmetric decryption failed.'); - } +UpdateAuthMethodCert.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - msg.content = ciph.output; - } -} +UpdateAuthMethodCert.prototype['uid-token'] = undefined; +/** + * A unique identifier (ID) value should be configured, such as common_name or organizational_unit Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier + */ +UpdateAuthMethodCert.prototype['unique-identifier'] = undefined; +var _default = UpdateAuthMethodCert; +exports["default"] = _default; /***/ }), -/***/ 40999: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -/** - * Javascript implementation of ASN.1 validators for PKCS#7 v1.5. - * - * @author Dave Longley - * @author Stefan Siegl - * - * Copyright (c) 2012-2015 Digital Bazaar, Inc. - * Copyright (c) 2012 Stefan Siegl - * - * The ASN.1 representation of PKCS#7 is as follows - * (see RFC #2315 for details, http://www.ietf.org/rfc/rfc2315.txt): - * - * A PKCS#7 message consists of a ContentInfo on root level, which may - * contain any number of further ContentInfo nested into it. - * - * ContentInfo ::= SEQUENCE { - * contentType ContentType, - * content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL - * } - * - * ContentType ::= OBJECT IDENTIFIER - * - * EnvelopedData ::= SEQUENCE { - * version Version, - * recipientInfos RecipientInfos, - * encryptedContentInfo EncryptedContentInfo - * } - * - * EncryptedData ::= SEQUENCE { - * version Version, - * encryptedContentInfo EncryptedContentInfo - * } - * - * id-signedData OBJECT IDENTIFIER ::= { iso(1) member-body(2) - * us(840) rsadsi(113549) pkcs(1) pkcs7(7) 2 } - * - * SignedData ::= SEQUENCE { - * version INTEGER, - * digestAlgorithms DigestAlgorithmIdentifiers, - * contentInfo ContentInfo, - * certificates [0] IMPLICIT Certificates OPTIONAL, - * crls [1] IMPLICIT CertificateRevocationLists OPTIONAL, - * signerInfos SignerInfos - * } - * - * SignerInfos ::= SET OF SignerInfo - * - * SignerInfo ::= SEQUENCE { - * version Version, - * issuerAndSerialNumber IssuerAndSerialNumber, - * digestAlgorithm DigestAlgorithmIdentifier, - * authenticatedAttributes [0] IMPLICIT Attributes OPTIONAL, - * digestEncryptionAlgorithm DigestEncryptionAlgorithmIdentifier, - * encryptedDigest EncryptedDigest, - * unauthenticatedAttributes [1] IMPLICIT Attributes OPTIONAL - * } - * - * EncryptedDigest ::= OCTET STRING - * - * Attributes ::= SET OF Attribute - * - * Attribute ::= SEQUENCE { - * attrType OBJECT IDENTIFIER, - * attrValues SET OF AttributeValue - * } - * - * AttributeValue ::= ANY - * - * Version ::= INTEGER - * - * RecipientInfos ::= SET OF RecipientInfo - * - * EncryptedContentInfo ::= SEQUENCE { - * contentType ContentType, - * contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier, - * encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL - * } - * - * ContentEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier - * - * The AlgorithmIdentifier contains an Object Identifier (OID) and parameters - * for the algorithm, if any. In the case of AES and DES3, there is only one, - * the IV. - * - * AlgorithmIdentifer ::= SEQUENCE { - * algorithm OBJECT IDENTIFIER, - * parameters ANY DEFINED BY algorithm OPTIONAL - * } - * - * EncryptedContent ::= OCTET STRING - * - * RecipientInfo ::= SEQUENCE { - * version Version, - * issuerAndSerialNumber IssuerAndSerialNumber, - * keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier, - * encryptedKey EncryptedKey - * } - * - * IssuerAndSerialNumber ::= SEQUENCE { - * issuer Name, - * serialNumber CertificateSerialNumber - * } - * - * CertificateSerialNumber ::= INTEGER - * - * KeyEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier - * - * EncryptedKey ::= OCTET STRING - */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(27357); -__nccwpck_require__(97456); - -// shortcut for ASN.1 API -var asn1 = forge.asn1; +/***/ 33: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// shortcut for PKCS#7 API -var p7v = module.exports = forge.pkcs7asn1 = forge.pkcs7asn1 || {}; -forge.pkcs7 = forge.pkcs7 || {}; -forge.pkcs7.asn1 = p7v; +"use strict"; -var contentInfoValidator = { - name: 'ContentInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'ContentInfo.ContentType', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'contentType' - }, { - name: 'ContentInfo.content', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 0, - constructed: true, - optional: true, - captureAsn1: 'content' - }] -}; -p7v.contentInfoValidator = contentInfoValidator; - -var encryptedContentInfoValidator = { - name: 'EncryptedContentInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'EncryptedContentInfo.contentType', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'contentType' - }, { - name: 'EncryptedContentInfo.contentEncryptionAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'EncryptedContentInfo.contentEncryptionAlgorithm.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'encAlgorithm' - }, { - name: 'EncryptedContentInfo.contentEncryptionAlgorithm.parameter', - tagClass: asn1.Class.UNIVERSAL, - captureAsn1: 'encParameter' - }] - }, { - name: 'EncryptedContentInfo.encryptedContent', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 0, - /* The PKCS#7 structure output by OpenSSL somewhat differs from what - * other implementations do generate. - * - * OpenSSL generates a structure like this: - * SEQUENCE { - * ... - * [0] - * 26 DA 67 D2 17 9C 45 3C B1 2A A8 59 2F 29 33 38 - * C3 C3 DF 86 71 74 7A 19 9F 40 D0 29 BE 85 90 45 - * ... - * } - * - * Whereas other implementations (and this PKCS#7 module) generate: - * SEQUENCE { - * ... - * [0] { - * OCTET STRING - * 26 DA 67 D2 17 9C 45 3C B1 2A A8 59 2F 29 33 38 - * C3 C3 DF 86 71 74 7A 19 9F 40 D0 29 BE 85 90 45 - * ... - * } - * } - * - * In order to support both, we just capture the context specific - * field here. The OCTET STRING bit is removed below. - */ - capture: 'encryptedContent', - captureAsn1: 'encryptedContentAsn1' - }] -}; - -p7v.envelopedDataValidator = { - name: 'EnvelopedData', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'EnvelopedData.Version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'version' - }, { - name: 'EnvelopedData.RecipientInfos', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SET, - constructed: true, - captureAsn1: 'recipientInfos' - }].concat(encryptedContentInfoValidator) -}; - -p7v.encryptedDataValidator = { - name: 'EncryptedData', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'EncryptedData.Version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'version' - }].concat(encryptedContentInfoValidator) -}; - -var signerValidator = { - name: 'SignerInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'SignerInfo.version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false - }, { - name: 'SignerInfo.issuerAndSerialNumber', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'SignerInfo.issuerAndSerialNumber.issuer', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'issuer' - }, { - name: 'SignerInfo.issuerAndSerialNumber.serialNumber', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'serial' - }] - }, { - name: 'SignerInfo.digestAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'SignerInfo.digestAlgorithm.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'digestAlgorithm' - }, { - name: 'SignerInfo.digestAlgorithm.parameter', - tagClass: asn1.Class.UNIVERSAL, - constructed: false, - captureAsn1: 'digestParameter', - optional: true - }] - }, { - name: 'SignerInfo.authenticatedAttributes', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 0, - constructed: true, - optional: true, - capture: 'authenticatedAttributes' - }, { - name: 'SignerInfo.digestEncryptionAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - capture: 'signatureAlgorithm' - }, { - name: 'SignerInfo.encryptedDigest', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'signature' - }, { - name: 'SignerInfo.unauthenticatedAttributes', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 1, - constructed: true, - optional: true, - capture: 'unauthenticatedAttributes' - }] -}; - -p7v.signedDataValidator = { - name: 'SignedData', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'SignedData.Version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'version' - }, { - name: 'SignedData.DigestAlgorithms', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SET, - constructed: true, - captureAsn1: 'digestAlgorithms' - }, - contentInfoValidator, - { - name: 'SignedData.Certificates', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 0, - optional: true, - captureAsn1: 'certificates' - }, { - name: 'SignedData.CertificateRevocationLists', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 1, - optional: true, - captureAsn1: 'crls' - }, { - name: 'SignedData.SignerInfos', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SET, - capture: 'signerInfos', - optional: true, - value: [signerValidator] - }] -}; - -p7v.recipientInfoValidator = { - name: 'RecipientInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'RecipientInfo.version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'version' - }, { - name: 'RecipientInfo.issuerAndSerial', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'RecipientInfo.issuerAndSerial.issuer', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'issuer' - }, { - name: 'RecipientInfo.issuerAndSerial.serialNumber', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'serial' - }] - }, { - name: 'RecipientInfo.keyEncryptionAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'RecipientInfo.keyEncryptionAlgorithm.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'encAlgorithm' - }, { - name: 'RecipientInfo.keyEncryptionAlgorithm.parameter', - tagClass: asn1.Class.UNIVERSAL, - constructed: false, - captureAsn1: 'encParameter', - optional: true - }] - }, { - name: 'RecipientInfo.encryptedKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'encKey' - }] -}; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/***/ }), +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ 84874: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/** - * Javascript implementation of a basic Public Key Infrastructure, including - * support for RSA public and private keys. - * - * @author Dave Longley - * - * Copyright (c) 2010-2013 Digital Bazaar, Inc. - */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(27357); -__nccwpck_require__(10245); -__nccwpck_require__(6959); -__nccwpck_require__(60492); -__nccwpck_require__(39429); -__nccwpck_require__(1296); -__nccwpck_require__(6736); -__nccwpck_require__(52804); -__nccwpck_require__(97456); -__nccwpck_require__(15184); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -// shortcut for asn.1 API -var asn1 = forge.asn1; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/* Public Key Infrastructure (PKI) implementation. */ -var pki = module.exports = forge.pki = forge.pki || {}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * NOTE: THIS METHOD IS DEPRECATED. Use pem.decode() instead. - * - * Converts PEM-formatted data to DER. - * - * @param pem the PEM-formatted data. - * - * @return the DER-formatted data. + * The UpdateAuthMethodCertOutput model module. + * @module model/UpdateAuthMethodCertOutput + * @version 3.6.3 */ -pki.pemToDer = function(pem) { - var msg = forge.pem.decode(pem)[0]; - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error('Could not convert PEM to DER; PEM is encrypted.'); +var UpdateAuthMethodCertOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAuthMethodCertOutput. + * @alias module:model/UpdateAuthMethodCertOutput + */ + function UpdateAuthMethodCertOutput() { + _classCallCheck(this, UpdateAuthMethodCertOutput); + + UpdateAuthMethodCertOutput.initialize(this); } - return forge.util.createBuffer(msg.body); -}; + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/** - * Converts an RSA private key from PEM format. - * - * @param pem the PEM-formatted private key. - * - * @return the private key. - */ -pki.privateKeyFromPem = function(pem) { - var msg = forge.pem.decode(pem)[0]; - if(msg.type !== 'PRIVATE KEY' && msg.type !== 'RSA PRIVATE KEY') { - var error = new Error('Could not convert private key from PEM; PEM ' + - 'header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".'); - error.headerType = msg.type; - throw error; - } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error('Could not convert private key from PEM; PEM is encrypted.'); - } + _createClass(UpdateAuthMethodCertOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateAuthMethodCertOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodCertOutput} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodCertOutput} The populated UpdateAuthMethodCertOutput instance. + */ - // convert DER to ASN.1 object - var obj = asn1.fromDer(msg.body); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodCertOutput(); - return pki.privateKeyFromAsn1(obj); -}; + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } -/** - * Converts an RSA private key to PEM format. - * - * @param key the private key. - * @param maxline the maximum characters per line, defaults to 64. - * - * @return the PEM-formatted private key. - */ -pki.privateKeyToPem = function(key, maxline) { - // convert to ASN.1, then DER, then PEM-encode - var msg = { - type: 'RSA PRIVATE KEY', - body: asn1.toDer(pki.privateKeyToAsn1(key)).getBytes() - }; - return forge.pem.encode(msg, {maxline: maxline}); -}; + return obj; + } + }]); + return UpdateAuthMethodCertOutput; +}(); /** - * Converts a PrivateKeyInfo to PEM format. - * - * @param pki the PrivateKeyInfo. - * @param maxline the maximum characters per line, defaults to 64. - * - * @return the PEM-formatted private key. + * @member {String} access_id */ -pki.privateKeyInfoToPem = function(pki, maxline) { - // convert to DER, then PEM-encode - var msg = { - type: 'PRIVATE KEY', - body: asn1.toDer(pki).getBytes() - }; - return forge.pem.encode(msg, {maxline: maxline}); -}; +UpdateAuthMethodCertOutput.prototype['access_id'] = undefined; +var _default = UpdateAuthMethodCertOutput; +exports["default"] = _default; + /***/ }), -/***/ 57013: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 56494: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** - * Prime number generation API. - * - * @author Dave Longley - * - * Copyright (c) 2014 Digital Bazaar, Inc. - */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(97456); -__nccwpck_require__(27211); -__nccwpck_require__(32055); +"use strict"; -(function() { -// forge.prime already defined -if(forge.prime) { - module.exports = forge.prime; - return; -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/* PRIME API */ -var prime = module.exports = forge.prime = forge.prime || {}; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var BigInteger = forge.jsbn.BigInteger; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -// primes are 30k+i for i = 1, 7, 11, 13, 17, 19, 23, 29 -var GCD_30_DELTA = [6, 4, 2, 4, 2, 4, 6, 2]; -var THIRTY = new BigInteger(null); -THIRTY.fromInt(30); -var op_or = function(x, y) {return x|y;}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Generates a random probable prime with the given number of bits. - * - * Alternative algorithms can be specified by name as a string or as an - * object with custom options like so: - * - * { - * name: 'PRIMEINC', - * options: { - * maxBlockTime: , - * millerRabinTests: , - * workerScript: , - * workers: . - * workLoad: the size of the work load, ie: number of possible prime - * numbers for each web worker to check per work assignment, - * (default: 100). - * } - * } - * - * @param bits the number of bits for the prime number. - * @param options the options to use. - * [algorithm] the algorithm to use (default: 'PRIMEINC'). - * [prng] a custom crypto-secure pseudo-random number generator to use, - * that must define "getBytesSync". - * - * @return callback(err, num) called once the operation completes. + * The UpdateAuthMethodGCP model module. + * @module model/UpdateAuthMethodGCP + * @version 3.6.3 */ -prime.generateProbablePrime = function(bits, options, callback) { - if(typeof options === 'function') { - callback = options; - options = {}; - } - options = options || {}; +var UpdateAuthMethodGCP = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAuthMethodGCP. + * updateAuthMethodGCP is a command that updates a new auth method that will be able to authenticate using GCP IAM Service Account credentials or GCE instance credentials. + * @alias module:model/UpdateAuthMethodGCP + * @param audience {String} The audience to verify in the JWT received by the client + * @param name {String} Auth Method name + * @param type {String} Type of the GCP Access Rules + */ + function UpdateAuthMethodGCP(audience, name, type) { + _classCallCheck(this, UpdateAuthMethodGCP); - // default to PRIMEINC algorithm - var algorithm = options.algorithm || 'PRIMEINC'; - if(typeof algorithm === 'string') { - algorithm = {name: algorithm}; + UpdateAuthMethodGCP.initialize(this, audience, name, type); } - algorithm.options = algorithm.options || {}; - - // create prng with api that matches BigInteger secure random - var prng = options.prng || forge.random; - var rng = { - // x is an array to fill with bytes - nextBytes: function(x) { - var b = prng.getBytesSync(x.length); - for(var i = 0; i < x.length; ++i) { - x[i] = b.charCodeAt(i); - } - } - }; + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if(algorithm.name === 'PRIMEINC') { - return primeincFindPrime(bits, rng, algorithm.options, callback); - } - throw new Error('Invalid prime generation algorithm: ' + algorithm.name); -}; + _createClass(UpdateAuthMethodGCP, null, [{ + key: "initialize", + value: function initialize(obj, audience, name, type) { + obj['audience'] = audience; + obj['name'] = name; + obj['type'] = type; + } + /** + * Constructs a UpdateAuthMethodGCP from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodGCP} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodGCP} The populated UpdateAuthMethodGCP instance. + */ -function primeincFindPrime(bits, rng, options, callback) { - if('workers' in options) { - return primeincFindPrimeWithWorkers(bits, rng, options, callback); - } - return primeincFindPrimeWithoutWorkers(bits, rng, options, callback); -} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodGCP(); -function primeincFindPrimeWithoutWorkers(bits, rng, options, callback) { - // initialize random number - var num = generateRandom(bits, rng); + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } - /* Note: All primes are of the form 30k+i for i < 30 and gcd(30, i)=1. The - number we are given is always aligned at 30k + 1. Each time the number is - determined not to be prime we add to get to the next 'i', eg: if the number - was at 30k + 1 we add 6. */ - var deltaIdx = 0; + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } - // get required number of MR tests - var mrTests = getMillerRabinTests(num.bitLength()); - if('millerRabinTests' in options) { - mrTests = options.millerRabinTests; - } + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } - // find prime nearest to 'num' for maxBlockTime ms - // 10 ms gives 5ms of leeway for other calculations before dropping - // below 60fps (1000/60 == 16.67), but in reality, the number will - // likely be higher due to an 'atomic' big int modPow - var maxBlockTime = 10; - if('maxBlockTime' in options) { - maxBlockTime = options.maxBlockTime; - } + if (data.hasOwnProperty('bound-labels')) { + obj['bound-labels'] = _ApiClient["default"].convertToType(data['bound-labels'], ['String']); + } - _primeinc(num, bits, rng, deltaIdx, mrTests, maxBlockTime, callback); -} + if (data.hasOwnProperty('bound-projects')) { + obj['bound-projects'] = _ApiClient["default"].convertToType(data['bound-projects'], ['String']); + } -function _primeinc(num, bits, rng, deltaIdx, mrTests, maxBlockTime, callback) { - var start = +new Date(); - do { - // overflow, regenerate random number - if(num.bitLength() > bits) { - num = generateRandom(bits, rng); - } - // do primality test - if(num.isProbablePrime(mrTests)) { - return callback(null, num); - } - // get next potential prime - num.dAddOffset(GCD_30_DELTA[deltaIdx++ % 8], 0); - } while(maxBlockTime < 0 || (+new Date() - start < maxBlockTime)); + if (data.hasOwnProperty('bound-regions')) { + obj['bound-regions'] = _ApiClient["default"].convertToType(data['bound-regions'], ['String']); + } - // keep trying later - forge.util.setImmediate(function() { - _primeinc(num, bits, rng, deltaIdx, mrTests, maxBlockTime, callback); - }); -} + if (data.hasOwnProperty('bound-service-accounts')) { + obj['bound-service-accounts'] = _ApiClient["default"].convertToType(data['bound-service-accounts'], ['String']); + } -// NOTE: This algorithm is indeterminate in nature because workers -// run in parallel looking at different segments of numbers. Even if this -// algorithm is run twice with the same input from a predictable RNG, it -// may produce different outputs. -function primeincFindPrimeWithWorkers(bits, rng, options, callback) { - // web workers unavailable - if(typeof Worker === 'undefined') { - return primeincFindPrimeWithoutWorkers(bits, rng, options, callback); - } - - // initialize random number - var num = generateRandom(bits, rng); - - // use web workers to generate keys - var numWorkers = options.workers; - var workLoad = options.workLoad || 100; - var range = workLoad * 30 / 8; - var workerScript = options.workerScript || 'forge/prime.worker.js'; - if(numWorkers === -1) { - return forge.util.estimateCores(function(err, cores) { - if(err) { - // default to 2 - cores = 2; - } - numWorkers = cores - 1; - generate(); - }); - } - generate(); + if (data.hasOwnProperty('bound-zones')) { + obj['bound-zones'] = _ApiClient["default"].convertToType(data['bound-zones'], ['String']); + } - function generate() { - // require at least 1 worker - numWorkers = Math.max(1, numWorkers); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - // TODO: consider optimizing by starting workers outside getPrime() ... - // note that in order to clean up they will have to be made internally - // asynchronous which may actually be slower + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } - // start workers immediately - var workers = []; - for(var i = 0; i < numWorkers; ++i) { - // FIXME: fix path or use blob URLs - workers[i] = new Worker(workerScript); - } - var running = numWorkers; + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } - // listen for requests from workers and assign ranges to find prime - for(var i = 0; i < numWorkers; ++i) { - workers[i].addEventListener('message', workerMessage); - } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - /* Note: The distribution of random numbers is unknown. Therefore, each - web worker is continuously allocated a range of numbers to check for a - random number until one is found. + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } - Every 30 numbers will be checked just 8 times, because prime numbers - have the form: + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - 30k+i, for i < 30 and gcd(30, i)=1 (there are 8 values of i for this) + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - Therefore, if we want a web worker to run N checks before asking for - a new range of numbers, each range must contain N*30/8 numbers. + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } - For 100 checks (workLoad), this is a range of 375. */ + if (data.hasOwnProperty('service-account-creds-data')) { + obj['service-account-creds-data'] = _ApiClient["default"].convertToType(data['service-account-creds-data'], 'String'); + } - var found = false; - function workerMessage(e) { - // ignore message, prime already found - if(found) { - return; - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - --running; - var data = e.data; - if(data.found) { - // terminate all workers - for(var i = 0; i < workers.length; ++i) { - workers[i].terminate(); + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); } - found = true; - return callback(null, new BigInteger(data.prime, 16)); - } - // overflow, regenerate random number - if(num.bitLength() > bits) { - num = generateRandom(bits, rng); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } } - // assign new range to check - var hex = num.toString(16); + return obj; + } + }]); - // start prime search - e.target.postMessage({ - hex: hex, - workLoad: workLoad - }); + return UpdateAuthMethodGCP; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ - num.dAddOffset(range, 0); - } - } -} +UpdateAuthMethodGCP.prototype['access-expires'] = 0; /** - * Generates a random number using the given number of bits and RNG. - * - * @param bits the number of bits for the number. - * @param rng the random number generator to use. - * - * @return the random number. + * The audience to verify in the JWT received by the client + * @member {String} audience + * @default 'akeyless.io' */ -function generateRandom(bits, rng) { - var num = new BigInteger(bits, rng); - // force MSB set - var bits1 = bits - 1; - if(!num.testBit(bits1)) { - num.bitwiseTo(BigInteger.ONE.shiftLeft(bits1), op_or, num); - } - // align number on 30k+1 boundary - num.dAddOffset(31 - num.mod(THIRTY).byteValue(), 0); - return num; -} +UpdateAuthMethodGCP.prototype['audience'] = 'akeyless.io'; /** - * Returns the required number of Miller-Rabin tests to generate a - * prime with an error probability of (1/2)^80. - * - * See Handbook of Applied Cryptography Chapter 4, Table 4.4. - * - * @param bits the bit size. - * - * @return the required number of iterations. + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips */ -function getMillerRabinTests(bits) { - if(bits <= 100) return 27; - if(bits <= 150) return 18; - if(bits <= 200) return 15; - if(bits <= 250) return 12; - if(bits <= 300) return 9; - if(bits <= 350) return 8; - if(bits <= 400) return 7; - if(bits <= 500) return 6; - if(bits <= 600) return 5; - if(bits <= 800) return 4; - if(bits <= 1250) return 3; - return 2; -} -})(); +UpdateAuthMethodGCP.prototype['bound-ips'] = undefined; +/** + * A comma-separated list of GCP labels formatted as \"key:value\" strings that must be set on authorized GCE instances. TODO: Because GCP labels are not currently ACL'd .... + * @member {Array.} bound-labels + */ +UpdateAuthMethodGCP.prototype['bound-labels'] = undefined; +/** + * === Human and Machine authentication section === Array of GCP project IDs. Only entities belonging to any of the provided projects can authenticate. + * @member {Array.} bound-projects + */ -/***/ }), +UpdateAuthMethodGCP.prototype['bound-projects'] = undefined; +/** + * List of regions that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a regional group and the group must belong to this region. If bound_zones are provided, this attribute is ignored. + * @member {Array.} bound-regions + */ -/***/ 65189: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateAuthMethodGCP.prototype['bound-regions'] = undefined; +/** + * List of service accounts the service account must be part of in order to be authenticated. + * @member {Array.} bound-service-accounts + */ +UpdateAuthMethodGCP.prototype['bound-service-accounts'] = undefined; /** - * A javascript implementation of a cryptographically-secure - * Pseudo Random Number Generator (PRNG). The Fortuna algorithm is followed - * here though the use of SHA-256 is not enforced; when generating an - * a PRNG context, the hashing algorithm and block cipher used for - * the generator are specified via a plugin. - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. + * === Machine authentication section === List of zones that a GCE instance must belong to in order to be authenticated. TODO: If bound_instance_groups is provided, it is assumed to be a zonal group and the group must belong to this zone. + * @member {Array.} bound-zones */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(97456); -var _crypto = null; -if(forge.util.isNodejs && !forge.options.usePureJavaScript && - !process.versions['node-webkit']) { - _crypto = __nccwpck_require__(76982); -} +UpdateAuthMethodGCP.prototype['bound-zones'] = undefined; +/** + * Auth Method description + * @member {String} description + */ -/* PRNG API */ -var prng = module.exports = forge.prng = forge.prng || {}; +UpdateAuthMethodGCP.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ +UpdateAuthMethodGCP.prototype['force-sub-claims'] = undefined; /** - * Creates a new PRNG context. - * - * A PRNG plugin must be passed in that will provide: - * - * 1. A function that initializes the key and seed of a PRNG context. It - * will be given a 16 byte key and a 16 byte seed. Any key expansion - * or transformation of the seed from a byte string into an array of - * integers (or similar) should be performed. - * 2. The cryptographic function used by the generator. It takes a key and - * a seed. - * 3. A seed increment function. It takes the seed and returns seed + 1. - * 4. An api to create a message digest. - * - * For an example, see random.js. - * - * @param plugin the PRNG plugin to use. + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips */ -prng.create = function(plugin) { - var ctx = { - plugin: plugin, - key: null, - seed: null, - time: null, - // number of reseeds so far - reseeds: 0, - // amount of data generated so far - generated: 0, - // no initial key bytes - keyBytes: '' - }; - // create 32 entropy pools (each is a message digest) - var md = plugin.md; - var pools = new Array(32); - for(var i = 0; i < 32; ++i) { - pools[i] = md.create(); - } - ctx.pools = pools; +UpdateAuthMethodGCP.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - // entropy pools are written to cyclically, starting at index 0 - ctx.pool = 0; +UpdateAuthMethodGCP.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ - /** - * Generates random bytes. The bytes may be generated synchronously or - * asynchronously. Web workers must use the asynchronous interface or - * else the behavior is undefined. - * - * @param count the number of random bytes to generate. - * @param [callback(err, bytes)] called once the operation completes. - * - * @return count random bytes as a string. - */ - ctx.generate = function(count, callback) { - // do synchronously - if(!callback) { - return ctx.generateSync(count); - } +UpdateAuthMethodGCP.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ - // simple generator using counter-based CBC - var cipher = ctx.plugin.cipher; - var increment = ctx.plugin.increment; - var formatKey = ctx.plugin.formatKey; - var formatSeed = ctx.plugin.formatSeed; - var b = forge.util.createBuffer(); +UpdateAuthMethodGCP.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ - // paranoid deviation from Fortuna: - // reset key for every request to protect previously - // generated random bytes should the key be discovered; - // there is no 100ms based reseeding because of this - // forced reseed for every `generate` call - ctx.key = null; +UpdateAuthMethodGCP.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ - generate(); +UpdateAuthMethodGCP.prototype['product-type'] = undefined; +/** + * ServiceAccount credentials data instead of giving a file path, base64 encoded + * @member {String} service-account-creds-data + */ - function generate(err) { - if(err) { - return callback(err); - } +UpdateAuthMethodGCP.prototype['service-account-creds-data'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - // sufficient bytes generated - if(b.length() >= count) { - return callback(null, b.getBytes(count)); - } +UpdateAuthMethodGCP.prototype['token'] = undefined; +/** + * Type of the GCP Access Rules + * @member {String} type + */ - // if amount of data generated is greater than 1 MiB, trigger reseed - if(ctx.generated > 0xfffff) { - ctx.key = null; - } +UpdateAuthMethodGCP.prototype['type'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - if(ctx.key === null) { - // prevent stack overflow - return forge.util.nextTick(function() { - _reseed(generate); - }); - } +UpdateAuthMethodGCP.prototype['uid-token'] = undefined; +var _default = UpdateAuthMethodGCP; +exports["default"] = _default; - // generate the random bytes - var bytes = cipher(ctx.key, ctx.seed); - ctx.generated += bytes.length; - b.putBytes(bytes); +/***/ }), - // generate bytes for a new key and seed - ctx.key = formatKey(cipher(ctx.key, increment(ctx.seed))); - ctx.seed = formatSeed(cipher(ctx.key, ctx.seed)); +/***/ 45908: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - forge.util.setImmediate(generate); - } - }; +"use strict"; - /** - * Generates random bytes synchronously. - * - * @param count the number of random bytes to generate. - * - * @return count random bytes as a string. - */ - ctx.generateSync = function(count) { - // simple generator using counter-based CBC - var cipher = ctx.plugin.cipher; - var increment = ctx.plugin.increment; - var formatKey = ctx.plugin.formatKey; - var formatSeed = ctx.plugin.formatSeed; - // paranoid deviation from Fortuna: - // reset key for every request to protect previously - // generated random bytes should the key be discovered; - // there is no 100ms based reseeding because of this - // forced reseed for every `generateSync` call - ctx.key = null; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - var b = forge.util.createBuffer(); - while(b.length() < count) { - // if amount of data generated is greater than 1 MiB, trigger reseed - if(ctx.generated > 0xfffff) { - ctx.key = null; - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if(ctx.key === null) { - _reseedSync(); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // generate the random bytes - var bytes = cipher(ctx.key, ctx.seed); - ctx.generated += bytes.length; - b.putBytes(bytes); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // generate bytes for a new key and seed - ctx.key = formatKey(cipher(ctx.key, increment(ctx.seed))); - ctx.seed = formatSeed(cipher(ctx.key, ctx.seed)); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - return b.getBytes(count); - }; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +/** + * The UpdateAuthMethodK8S model module. + * @module model/UpdateAuthMethodK8S + * @version 3.6.3 + */ +var UpdateAuthMethodK8S = /*#__PURE__*/function () { /** - * Private function that asynchronously reseeds a generator. - * - * @param callback(err) called once the operation completes. + * Constructs a new UpdateAuthMethodK8S. + * updateAuthMethodK8S is a command that updates a new auth method that will be able to authenticate using K8S. + * @alias module:model/UpdateAuthMethodK8S + * @param name {String} Auth Method name */ - function _reseed(callback) { - if(ctx.pools[0].messageLength >= 32) { - _seed(); - return callback(); - } - // not enough seed data... - var needed = (32 - ctx.pools[0].messageLength) << 5; - ctx.seedFile(needed, function(err, bytes) { - if(err) { - return callback(err); - } - ctx.collect(bytes); - _seed(); - callback(); - }); - } + function UpdateAuthMethodK8S(name) { + _classCallCheck(this, UpdateAuthMethodK8S); - /** - * Private function that synchronously reseeds a generator. - */ - function _reseedSync() { - if(ctx.pools[0].messageLength >= 32) { - return _seed(); - } - // not enough seed data... - var needed = (32 - ctx.pools[0].messageLength) << 5; - ctx.collect(ctx.seedFileSync(needed)); - _seed(); + UpdateAuthMethodK8S.initialize(this, name); } - /** - * Private function that seeds a generator once enough bytes are available. + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. */ - function _seed() { - // update reseed count - ctx.reseeds = (ctx.reseeds === 0xffffffff) ? 0 : ctx.reseeds + 1; - // goal is to update `key` via: - // key = hash(key + s) - // where 's' is all collected entropy from selected pools, then... - // create a plugin-based message digest - var md = ctx.plugin.md.create(); + _createClass(UpdateAuthMethodK8S, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a UpdateAuthMethodK8S from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodK8S} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodK8S} The populated UpdateAuthMethodK8S instance. + */ - // consume current key bytes - md.update(ctx.keyBytes); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodK8S(); - // digest the entropy of pools whose index k meet the - // condition 'n mod 2^k == 0' where n is the number of reseeds - var _2powK = 1; - for(var k = 0; k < 32; ++k) { - if(ctx.reseeds % _2powK === 0) { - md.update(ctx.pools[k].digest().getBytes()); - ctx.pools[k].start(); - } - _2powK = _2powK << 1; - } + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } - // get digest for key bytes - ctx.keyBytes = md.digest().getBytes(); + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } - // paranoid deviation from Fortuna: - // update `seed` via `seed = hash(key)` - // instead of initializing to zero once and only - // ever incrementing it - md.start(); - md.update(ctx.keyBytes); - var seedBytes = md.digest().getBytes(); + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } - // update state - ctx.key = ctx.plugin.formatKey(ctx.keyBytes); - ctx.seed = ctx.plugin.formatSeed(seedBytes); - ctx.generated = 0; - } + if (data.hasOwnProperty('bound-namespaces')) { + obj['bound-namespaces'] = _ApiClient["default"].convertToType(data['bound-namespaces'], ['String']); + } - /** - * The built-in default seedFile. This seedFile is used when entropy - * is needed immediately. - * - * @param needed the number of bytes that are needed. - * - * @return the random bytes. - */ - function defaultSeedFile(needed) { - // use window.crypto.getRandomValues strong source of entropy if available - var getRandomValues = null; - var globalScope = forge.util.globalScope; - var _crypto = globalScope.crypto || globalScope.msCrypto; - if(_crypto && _crypto.getRandomValues) { - getRandomValues = function(arr) { - return _crypto.getRandomValues(arr); - }; - } + if (data.hasOwnProperty('bound-pod-names')) { + obj['bound-pod-names'] = _ApiClient["default"].convertToType(data['bound-pod-names'], ['String']); + } - var b = forge.util.createBuffer(); - if(getRandomValues) { - while(b.length() < needed) { - // max byte length is 65536 before QuotaExceededError is thrown - // http://www.w3.org/TR/WebCryptoAPI/#RandomSource-method-getRandomValues - var count = Math.max(1, Math.min(needed - b.length(), 65536) / 4); - var entropy = new Uint32Array(Math.floor(count)); - try { - getRandomValues(entropy); - for(var i = 0; i < entropy.length; ++i) { - b.putInt32(entropy[i]); - } - } catch(e) { - /* only ignore QuotaExceededError */ - if(!(typeof QuotaExceededError !== 'undefined' && - e instanceof QuotaExceededError)) { - throw e; - } + if (data.hasOwnProperty('bound-sa-names')) { + obj['bound-sa-names'] = _ApiClient["default"].convertToType(data['bound-sa-names'], ['String']); } - } - } - // be sad and add some weak random data - if(b.length() < needed) { - /* Draws from Park-Miller "minimal standard" 31 bit PRNG, - implemented with David G. Carta's optimization: with 32 bit math - and without division (Public Domain). */ - var hi, lo, next; - var seed = Math.floor(Math.random() * 0x010000); - while(b.length() < needed) { - lo = 16807 * (seed & 0xFFFF); - hi = 16807 * (seed >> 16); - lo += (hi & 0x7FFF) << 16; - lo += hi >> 15; - lo = (lo & 0x7FFFFFFF) + (lo >> 31); - seed = lo & 0xFFFFFFFF; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - // consume lower 3 bytes of seed - for(var i = 0; i < 3; ++i) { - // throw in more pseudo random - next = seed >>> (i << 3); - next ^= Math.floor(Math.random() * 0x0100); - b.putByte(next & 0xFF); + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); } - } - } - return b.getBytes(needed); - } - // initialize seed file APIs - if(_crypto) { - // use nodejs async API - ctx.seedFile = function(needed, callback) { - _crypto.randomBytes(needed, function(err, bytes) { - if(err) { - return callback(err); + if (data.hasOwnProperty('gen-key')) { + obj['gen-key'] = _ApiClient["default"].convertToType(data['gen-key'], 'String'); } - callback(null, bytes.toString()); - }); - }; - // use nodejs sync API - ctx.seedFileSync = function(needed) { - return _crypto.randomBytes(needed).toString(); - }; - } else { - ctx.seedFile = function(needed, callback) { - try { - callback(null, defaultSeedFile(needed)); - } catch(e) { - callback(e); - } - }; - ctx.seedFileSync = defaultSeedFile; - } - /** - * Adds entropy to a prng ctx's accumulator. - * - * @param bytes the bytes of entropy as a string. - */ - ctx.collect = function(bytes) { - // iterate over pools distributing entropy cyclically - var count = bytes.length; - for(var i = 0; i < count; ++i) { - ctx.pools[ctx.pool].update(bytes.substr(i, 1)); - ctx.pool = (ctx.pool === 31) ? 0 : ctx.pool + 1; - } - }; + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } - /** - * Collects an integer of n bits. - * - * @param i the integer entropy. - * @param n the number of bits in the integer. - */ - ctx.collectInt = function(i, n) { - var bytes = ''; - for(var x = 0; x < n; x += 8) { - bytes += String.fromCharCode((i >> x) & 0xFF); - } - ctx.collect(bytes); - }; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - /** - * Registers a Web Worker to receive immediate entropy from the main thread. - * This method is required until Web Workers can access the native crypto - * API. This method should be called twice for each created worker, once in - * the main thread, and once in the worker itself. - * - * @param worker the worker to register. - */ - ctx.registerWorker = function(worker) { - // worker receives random bytes - if(worker === self) { - ctx.seedFile = function(needed, callback) { - function listener(e) { - var data = e.data; - if(data.forge && data.forge.prng) { - self.removeEventListener('message', listener); - callback(data.forge.prng.err, data.forge.prng.bytes); - } + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); } - self.addEventListener('message', listener); - self.postMessage({forge: {prng: {needed: needed}}}); - }; - } else { - // main thread sends random bytes upon request - var listener = function(e) { - var data = e.data; - if(data.forge && data.forge.prng) { - ctx.seedFile(data.forge.prng.needed, function(err, bytes) { - worker.postMessage({forge: {prng: {err: err, bytes: bytes}}}); - }); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - }; - // TODO: do we need to remove the event listener when the worker dies? - worker.addEventListener('message', listener); - } - }; - return ctx; -}; + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } -/***/ }), + if (data.hasOwnProperty('public-key')) { + obj['public-key'] = _ApiClient["default"].convertToType(data['public-key'], 'String'); + } -/***/ 6736: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -/** - * Javascript implementation of PKCS#1 PSS signature padding. - * - * @author Stefan Siegl - * - * Copyright (c) 2012 Stefan Siegl - */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(32055); -__nccwpck_require__(97456); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } -// shortcut for PSS API -var pss = module.exports = forge.pss = forge.pss || {}; + return obj; + } + }]); + return UpdateAuthMethodK8S; +}(); /** - * Creates a PSS signature scheme object. - * - * There are several ways to provide a salt for encoding: - * - * 1. Specify the saltLength only and the built-in PRNG will generate it. - * 2. Specify the saltLength and a custom PRNG with 'getBytesSync' defined that - * will be used. - * 3. Specify the salt itself as a forge.util.ByteBuffer. - * - * @param options the options to use: - * md the message digest object to use, a forge md instance. - * mgf the mask generation function to use, a forge mgf instance. - * [saltLength] the length of the salt in octets. - * [prng] the pseudo-random number generator to use to produce a salt. - * [salt] the salt to use when encoding. - * - * @return a signature scheme object. + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -pss.create = function(options) { - // backwards compatibility w/legacy args: hash, mgf, sLen - if(arguments.length === 3) { - options = { - md: arguments[0], - mgf: arguments[1], - saltLength: arguments[2] - }; - } - - var hash = options.md; - var mgf = options.mgf; - var hLen = hash.digestLength; - - var salt_ = options.salt || null; - if(typeof salt_ === 'string') { - // assume binary-encoded string - salt_ = forge.util.createBuffer(salt_); - } - var sLen; - if('saltLength' in options) { - sLen = options.saltLength; - } else if(salt_ !== null) { - sLen = salt_.length(); - } else { - throw new Error('Salt length not specified or specific salt not given.'); - } - - if(salt_ !== null && salt_.length() !== sLen) { - throw new Error('Given salt length does not match length of given salt.'); - } - - var prng = options.prng || forge.random; - - var pssobj = {}; - - /** - * Encodes a PSS signature. - * - * This function implements EMSA-PSS-ENCODE as per RFC 3447, section 9.1.1. - * - * @param md the message digest object with the hash to sign. - * @param modsBits the length of the RSA modulus in bits. - * - * @return the encoded message as a binary-encoded string of length - * ceil((modBits - 1) / 8). - */ - pssobj.encode = function(md, modBits) { - var i; - var emBits = modBits - 1; - var emLen = Math.ceil(emBits / 8); - /* 2. Let mHash = Hash(M), an octet string of length hLen. */ - var mHash = md.digest().getBytes(); +UpdateAuthMethodK8S.prototype['access-expires'] = 0; +/** + * The audience in the Kubernetes JWT that the access is restricted to + * @member {String} audience + */ - /* 3. If emLen < hLen + sLen + 2, output "encoding error" and stop. */ - if(emLen < hLen + sLen + 2) { - throw new Error('Message is too long to encrypt.'); - } +UpdateAuthMethodK8S.prototype['audience'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ - /* 4. Generate a random octet string salt of length sLen; if sLen = 0, - * then salt is the empty string. */ - var salt; - if(salt_ === null) { - salt = prng.getBytesSync(sLen); - } else { - salt = salt_.bytes(); - } - - /* 5. Let M' = (0x)00 00 00 00 00 00 00 00 || mHash || salt; */ - var m_ = new forge.util.ByteBuffer(); - m_.fillWithByte(0, 8); - m_.putBytes(mHash); - m_.putBytes(salt); - - /* 6. Let H = Hash(M'), an octet string of length hLen. */ - hash.start(); - hash.update(m_.getBytes()); - var h = hash.digest().getBytes(); - - /* 7. Generate an octet string PS consisting of emLen - sLen - hLen - 2 - * zero octets. The length of PS may be 0. */ - var ps = new forge.util.ByteBuffer(); - ps.fillWithByte(0, emLen - sLen - hLen - 2); - - /* 8. Let DB = PS || 0x01 || salt; DB is an octet string of length - * emLen - hLen - 1. */ - ps.putByte(0x01); - ps.putBytes(salt); - var db = ps.getBytes(); - - /* 9. Let dbMask = MGF(H, emLen - hLen - 1). */ - var maskLen = emLen - hLen - 1; - var dbMask = mgf.generate(h, maskLen); - - /* 10. Let maskedDB = DB \xor dbMask. */ - var maskedDB = ''; - for(i = 0; i < maskLen; i++) { - maskedDB += String.fromCharCode(db.charCodeAt(i) ^ dbMask.charCodeAt(i)); - } - - /* 11. Set the leftmost 8emLen - emBits bits of the leftmost octet in - * maskedDB to zero. */ - var mask = (0xFF00 >> (8 * emLen - emBits)) & 0xFF; - maskedDB = String.fromCharCode(maskedDB.charCodeAt(0) & ~mask) + - maskedDB.substr(1); - - /* 12. Let EM = maskedDB || H || 0xbc. - * 13. Output EM. */ - return maskedDB + h + String.fromCharCode(0xbc); - }; +UpdateAuthMethodK8S.prototype['bound-ips'] = undefined; +/** + * A list of namespaces that the access is restricted to + * @member {Array.} bound-namespaces + */ - /** - * Verifies a PSS signature. - * - * This function implements EMSA-PSS-VERIFY as per RFC 3447, section 9.1.2. - * - * @param mHash the message digest hash, as a binary-encoded string, to - * compare against the signature. - * @param em the encoded message, as a binary-encoded string - * (RSA decryption result). - * @param modsBits the length of the RSA modulus in bits. - * - * @return true if the signature was verified, false if not. - */ - pssobj.verify = function(mHash, em, modBits) { - var i; - var emBits = modBits - 1; - var emLen = Math.ceil(emBits / 8); +UpdateAuthMethodK8S.prototype['bound-namespaces'] = undefined; +/** + * A list of pod names that the access is restricted to + * @member {Array.} bound-pod-names + */ - /* c. Convert the message representative m to an encoded message EM - * of length emLen = ceil((modBits - 1) / 8) octets, where modBits - * is the length in bits of the RSA modulus n */ - em = em.substr(-emLen); +UpdateAuthMethodK8S.prototype['bound-pod-names'] = undefined; +/** + * A list of service account names that the access is restricted to + * @member {Array.} bound-sa-names + */ - /* 3. If emLen < hLen + sLen + 2, output "inconsistent" and stop. */ - if(emLen < hLen + sLen + 2) { - throw new Error('Inconsistent parameters to PSS signature verification.'); - } +UpdateAuthMethodK8S.prototype['bound-sa-names'] = undefined; +/** + * Auth Method description + * @member {String} description + */ - /* 4. If the rightmost octet of EM does not have hexadecimal value - * 0xbc, output "inconsistent" and stop. */ - if(em.charCodeAt(emLen - 1) !== 0xbc) { - throw new Error('Encoded message does not end in 0xBC.'); - } +UpdateAuthMethodK8S.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ - /* 5. Let maskedDB be the leftmost emLen - hLen - 1 octets of EM, and - * let H be the next hLen octets. */ - var maskLen = emLen - hLen - 1; - var maskedDB = em.substr(0, maskLen); - var h = em.substr(maskLen, hLen); +UpdateAuthMethodK8S.prototype['force-sub-claims'] = undefined; +/** + * Automatically generate key-pair for K8S configuration. If set to false, a public key needs to be provided [true/false] + * @member {String} gen-key + */ - /* 6. If the leftmost 8emLen - emBits bits of the leftmost octet in - * maskedDB are not all equal to zero, output "inconsistent" and stop. */ - var mask = (0xFF00 >> (8 * emLen - emBits)) & 0xFF; - if((maskedDB.charCodeAt(0) & mask) !== 0) { - throw new Error('Bits beyond keysize not zero as expected.'); - } +UpdateAuthMethodK8S.prototype['gen-key'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ - /* 7. Let dbMask = MGF(H, emLen - hLen - 1). */ - var dbMask = mgf.generate(h, maskLen); +UpdateAuthMethodK8S.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - /* 8. Let DB = maskedDB \xor dbMask. */ - var db = ''; - for(i = 0; i < maskLen; i++) { - db += String.fromCharCode(maskedDB.charCodeAt(i) ^ dbMask.charCodeAt(i)); - } +UpdateAuthMethodK8S.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ - /* 9. Set the leftmost 8emLen - emBits bits of the leftmost octet - * in DB to zero. */ - db = String.fromCharCode(db.charCodeAt(0) & ~mask) + db.substr(1); +UpdateAuthMethodK8S.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ - /* 10. If the emLen - hLen - sLen - 2 leftmost octets of DB are not zero - * or if the octet at position emLen - hLen - sLen - 1 (the leftmost - * position is "position 1") does not have hexadecimal value 0x01, - * output "inconsistent" and stop. */ - var checkLen = emLen - hLen - sLen - 2; - for(i = 0; i < checkLen; i++) { - if(db.charCodeAt(i) !== 0x00) { - throw new Error('Leftmost octets not zero as expected'); - } - } +UpdateAuthMethodK8S.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ - if(db.charCodeAt(checkLen) !== 0x01) { - throw new Error('Inconsistent PSS signature, 0x01 marker not found'); - } +UpdateAuthMethodK8S.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ - /* 11. Let salt be the last sLen octets of DB. */ - var salt = db.substr(-sLen); +UpdateAuthMethodK8S.prototype['product-type'] = undefined; +/** + * Base64-encoded or PEM formatted public key data for K8S authentication method is required [RSA2048] + * @member {String} public-key + */ - /* 12. Let M' = (0x)00 00 00 00 00 00 00 00 || mHash || salt */ - var m_ = new forge.util.ByteBuffer(); - m_.fillWithByte(0, 8); - m_.putBytes(mHash); - m_.putBytes(salt); +UpdateAuthMethodK8S.prototype['public-key'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - /* 13. Let H' = Hash(M'), an octet string of length hLen. */ - hash.start(); - hash.update(m_.getBytes()); - var h_ = hash.digest().getBytes(); +UpdateAuthMethodK8S.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - /* 14. If H = H', output "consistent." Otherwise, output "inconsistent." */ - return h === h_; - }; +UpdateAuthMethodK8S.prototype['uid-token'] = undefined; +var _default = UpdateAuthMethodK8S; +exports["default"] = _default; - return pssobj; -}; +/***/ }), +/***/ 75557: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/***/ }), +"use strict"; -/***/ 32055: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -/** - * An API for getting cryptographically-secure random bytes. The bytes are - * generated using the Fortuna algorithm devised by Bruce Schneier and - * Niels Ferguson. - * - * Getting strong random bytes is not yet easy to do in javascript. The only - * truish random entropy that can be collected is from the mouse, keyboard, or - * from timing with respect to page loads, etc. This generator makes a poor - * attempt at providing random bytes when those sources haven't yet provided - * enough entropy to initially seed or to reseed the PRNG. - * - * @author Dave Longley - * - * Copyright (c) 2009-2014 Digital Bazaar, Inc. - */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(39445); -__nccwpck_require__(70855); -__nccwpck_require__(65189); -__nccwpck_require__(97456); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -(function() { +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -// forge.random already defined -if(forge.random && forge.random.getBytes) { - module.exports = forge.random; - return; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -(function(jQuery) { +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -// the default prng plugin, uses AES-128 -var prng_aes = {}; -var _prng_aes_output = new Array(4); -var _prng_aes_buffer = forge.util.createBuffer(); -prng_aes.formatKey = function(key) { - // convert the key into 32-bit integers - var tmp = forge.util.createBuffer(key); - key = new Array(4); - key[0] = tmp.getInt32(); - key[1] = tmp.getInt32(); - key[2] = tmp.getInt32(); - key[3] = tmp.getInt32(); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // return the expanded key - return forge.aes._expandKey(key, false); -}; -prng_aes.formatSeed = function(seed) { - // convert seed into 32-bit integers - var tmp = forge.util.createBuffer(seed); - seed = new Array(4); - seed[0] = tmp.getInt32(); - seed[1] = tmp.getInt32(); - seed[2] = tmp.getInt32(); - seed[3] = tmp.getInt32(); - return seed; -}; -prng_aes.cipher = function(key, seed) { - forge.aes._updateBlock(key, seed, _prng_aes_output, false); - _prng_aes_buffer.putInt32(_prng_aes_output[0]); - _prng_aes_buffer.putInt32(_prng_aes_output[1]); - _prng_aes_buffer.putInt32(_prng_aes_output[2]); - _prng_aes_buffer.putInt32(_prng_aes_output[3]); - return _prng_aes_buffer.getBytes(); -}; -prng_aes.increment = function(seed) { - // FIXME: do we care about carry or signed issues? - ++seed[3]; - return seed; -}; -prng_aes.md = forge.md.sha256; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Creates a new PRNG. + * The UpdateAuthMethodK8SOutput model module. + * @module model/UpdateAuthMethodK8SOutput + * @version 3.6.3 */ -function spawnPrng() { - var ctx = forge.prng.create(prng_aes); - +var UpdateAuthMethodK8SOutput = /*#__PURE__*/function () { /** - * Gets random bytes. If a native secure crypto API is unavailable, this - * method tries to make the bytes more unpredictable by drawing from data that - * can be collected from the user of the browser, eg: mouse movement. - * - * If a callback is given, this method will be called asynchronously. - * - * @param count the number of random bytes to get. - * @param [callback(err, bytes)] called once the operation completes. - * - * @return the random bytes in a string. + * Constructs a new UpdateAuthMethodK8SOutput. + * @alias module:model/UpdateAuthMethodK8SOutput */ - ctx.getBytes = function(count, callback) { - return ctx.generate(count, callback); - }; + function UpdateAuthMethodK8SOutput() { + _classCallCheck(this, UpdateAuthMethodK8SOutput); + UpdateAuthMethodK8SOutput.initialize(this); + } /** - * Gets random bytes asynchronously. If a native secure crypto API is - * unavailable, this method tries to make the bytes more unpredictable by - * drawing from data that can be collected from the user of the browser, - * eg: mouse movement. - * - * @param count the number of random bytes to get. - * - * @return the random bytes in a string. + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. */ - ctx.getBytesSync = function(count) { - return ctx.generate(count); - }; - - return ctx; -} - -// create default prng context -var _ctx = spawnPrng(); -// add other sources of entropy only if window.crypto.getRandomValues is not -// available -- otherwise this source will be automatically used by the prng -var getRandomValues = null; -var globalScope = forge.util.globalScope; -var _crypto = globalScope.crypto || globalScope.msCrypto; -if(_crypto && _crypto.getRandomValues) { - getRandomValues = function(arr) { - return _crypto.getRandomValues(arr); - }; -} -if(forge.options.usePureJavaScript || - (!forge.util.isNodejs && !getRandomValues)) { - // if this is a web worker, do not use weak entropy, instead register to - // receive strong entropy asynchronously from the main thread - if(typeof window === 'undefined' || window.document === undefined) { - // FIXME: - } + _createClass(UpdateAuthMethodK8SOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateAuthMethodK8SOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodK8SOutput} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodK8SOutput} The populated UpdateAuthMethodK8SOutput instance. + */ - // get load time entropy - _ctx.collectInt(+new Date(), 32); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodK8SOutput(); - // add some entropy from navigator object - if(typeof(navigator) !== 'undefined') { - var _navBytes = ''; - for(var key in navigator) { - try { - if(typeof(navigator[key]) == 'string') { - _navBytes += navigator[key]; + if (data.hasOwnProperty('prv_key')) { + obj['prv_key'] = _ApiClient["default"].convertToType(data['prv_key'], 'String'); } - } catch(e) { - /* Some navigator keys might not be accessible, e.g. the geolocation - attribute throws an exception if touched in Mozilla chrome:// - context. - - Silently ignore this and just don't use this as a source of - entropy. */ } - } - _ctx.collect(_navBytes); - _navBytes = null; - } - - // add mouse and keyboard collectors if jquery is available - if(jQuery) { - // set up mouse entropy capture - jQuery().mousemove(function(e) { - // add mouse coords - _ctx.collectInt(e.clientX, 16); - _ctx.collectInt(e.clientY, 16); - }); - - // set up keyboard entropy capture - jQuery().keypress(function(e) { - _ctx.collectInt(e.charCode, 8); - }); - } -} - -/* Random API */ -if(!forge.random) { - forge.random = _ctx; -} else { - // extend forge.random with _ctx - for(var key in _ctx) { - forge.random[key] = _ctx[key]; - } -} - -// expose spawn PRNG -forge.random.createInstance = spawnPrng; - -module.exports = forge.random; -})(typeof(jQuery) !== 'undefined' ? jQuery : null); - -})(); - - -/***/ }), - -/***/ 86893: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + return obj; + } + }]); + return UpdateAuthMethodK8SOutput; +}(); /** - * RC2 implementation. - * - * @author Stefan Siegl - * - * Copyright (c) 2012 Stefan Siegl - * - * Information on the RC2 cipher is available from RFC #2268, - * http://www.ietf.org/rfc/rfc2268.txt + * @member {String} prv_key */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(97456); -var piTable = [ - 0xd9, 0x78, 0xf9, 0xc4, 0x19, 0xdd, 0xb5, 0xed, 0x28, 0xe9, 0xfd, 0x79, 0x4a, 0xa0, 0xd8, 0x9d, - 0xc6, 0x7e, 0x37, 0x83, 0x2b, 0x76, 0x53, 0x8e, 0x62, 0x4c, 0x64, 0x88, 0x44, 0x8b, 0xfb, 0xa2, - 0x17, 0x9a, 0x59, 0xf5, 0x87, 0xb3, 0x4f, 0x13, 0x61, 0x45, 0x6d, 0x8d, 0x09, 0x81, 0x7d, 0x32, - 0xbd, 0x8f, 0x40, 0xeb, 0x86, 0xb7, 0x7b, 0x0b, 0xf0, 0x95, 0x21, 0x22, 0x5c, 0x6b, 0x4e, 0x82, - 0x54, 0xd6, 0x65, 0x93, 0xce, 0x60, 0xb2, 0x1c, 0x73, 0x56, 0xc0, 0x14, 0xa7, 0x8c, 0xf1, 0xdc, - 0x12, 0x75, 0xca, 0x1f, 0x3b, 0xbe, 0xe4, 0xd1, 0x42, 0x3d, 0xd4, 0x30, 0xa3, 0x3c, 0xb6, 0x26, - 0x6f, 0xbf, 0x0e, 0xda, 0x46, 0x69, 0x07, 0x57, 0x27, 0xf2, 0x1d, 0x9b, 0xbc, 0x94, 0x43, 0x03, - 0xf8, 0x11, 0xc7, 0xf6, 0x90, 0xef, 0x3e, 0xe7, 0x06, 0xc3, 0xd5, 0x2f, 0xc8, 0x66, 0x1e, 0xd7, - 0x08, 0xe8, 0xea, 0xde, 0x80, 0x52, 0xee, 0xf7, 0x84, 0xaa, 0x72, 0xac, 0x35, 0x4d, 0x6a, 0x2a, - 0x96, 0x1a, 0xd2, 0x71, 0x5a, 0x15, 0x49, 0x74, 0x4b, 0x9f, 0xd0, 0x5e, 0x04, 0x18, 0xa4, 0xec, - 0xc2, 0xe0, 0x41, 0x6e, 0x0f, 0x51, 0xcb, 0xcc, 0x24, 0x91, 0xaf, 0x50, 0xa1, 0xf4, 0x70, 0x39, - 0x99, 0x7c, 0x3a, 0x85, 0x23, 0xb8, 0xb4, 0x7a, 0xfc, 0x02, 0x36, 0x5b, 0x25, 0x55, 0x97, 0x31, - 0x2d, 0x5d, 0xfa, 0x98, 0xe3, 0x8a, 0x92, 0xae, 0x05, 0xdf, 0x29, 0x10, 0x67, 0x6c, 0xba, 0xc9, - 0xd3, 0x00, 0xe6, 0xcf, 0xe1, 0x9e, 0xa8, 0x2c, 0x63, 0x16, 0x01, 0x3f, 0x58, 0xe2, 0x89, 0xa9, - 0x0d, 0x38, 0x34, 0x1b, 0xab, 0x33, 0xff, 0xb0, 0xbb, 0x48, 0x0c, 0x5f, 0xb9, 0xb1, 0xcd, 0x2e, - 0xc5, 0xf3, 0xdb, 0x47, 0xe5, 0xa5, 0x9c, 0x77, 0x0a, 0xa6, 0x20, 0x68, 0xfe, 0x7f, 0xc1, 0xad -]; -var s = [1, 2, 3, 5]; +UpdateAuthMethodK8SOutput.prototype['prv_key'] = undefined; +var _default = UpdateAuthMethodK8SOutput; +exports["default"] = _default; -/** - * Rotate a word left by given number of bits. - * - * Bits that are shifted out on the left are put back in on the right - * hand side. - * - * @param word The word to shift left. - * @param bits The number of bits to shift by. - * @return The rotated word. - */ -var rol = function(word, bits) { - return ((word << bits) & 0xffff) | ((word & 0xffff) >> (16 - bits)); -}; +/***/ }), -/** - * Rotate a word right by given number of bits. - * - * Bits that are shifted out on the right are put back in on the left - * hand side. - * - * @param word The word to shift right. - * @param bits The number of bits to shift by. - * @return The rotated word. - */ -var ror = function(word, bits) { - return ((word & 0xffff) >> bits) | ((word << (16 - bits)) & 0xffff); -}; +/***/ 54035: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/* RC2 API */ -module.exports = forge.rc2 = forge.rc2 || {}; +"use strict"; -/** - * Perform RC2 key expansion as per RFC #2268, section 2. - * - * @param key variable-length user key (between 1 and 128 bytes) - * @param effKeyBits number of effective key bits (default: 128) - * @return the expanded RC2 key (ByteBuffer of 128 bytes) - */ -forge.rc2.expandKey = function(key, effKeyBits) { - if(typeof key === 'string') { - key = forge.util.createBuffer(key); - } - effKeyBits = effKeyBits || 128; - /* introduce variables that match the names used in RFC #2268 */ - var L = key; - var T = key.length(); - var T1 = effKeyBits; - var T8 = Math.ceil(T1 / 8); - var TM = 0xff >> (T1 & 0x07); - var i; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - for(i = T; i < 128; i++) { - L.putByte(piTable[(L.at(i - 1) + L.at(i - T)) & 0xff]); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - L.setAt(128 - T8, piTable[L.at(128 - T8) & TM]); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - for(i = 127 - T8; i >= 0; i--) { - L.setAt(i, piTable[L.at(i + 1) ^ L.at(i + T8)]); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - return L; -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Creates a RC2 cipher object. - * - * @param key the symmetric key to use (as base for key generation). - * @param bits the number of effective key bits. - * @param encrypt false for decryption, true for encryption. - * - * @return the cipher. + * The UpdateAuthMethodLDAP model module. + * @module model/UpdateAuthMethodLDAP + * @version 3.6.3 */ -var createCipher = function(key, bits, encrypt) { - var _finish = false, _input = null, _output = null, _iv = null; - var mixRound, mashRound; - var i, j, K = []; +var UpdateAuthMethodLDAP = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAuthMethodLDAP. + * updateAuthMethodLDAP is a command that updates a new auth method that will be able to authenticate using LDAP. + * @alias module:model/UpdateAuthMethodLDAP + * @param name {String} Auth Method name + */ + function UpdateAuthMethodLDAP(name) { + _classCallCheck(this, UpdateAuthMethodLDAP); - /* Expand key and fill into K[] Array */ - key = forge.rc2.expandKey(key, bits); - for(i = 0; i < 64; i++) { - K.push(key.getInt16Le()); + UpdateAuthMethodLDAP.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if(encrypt) { - /** - * Perform one mixing round "in place". - * - * @param R Array of four words to perform mixing on. - */ - mixRound = function(R) { - for(i = 0; i < 4; i++) { - R[i] += K[j] + (R[(i + 3) % 4] & R[(i + 2) % 4]) + - ((~R[(i + 3) % 4]) & R[(i + 1) % 4]); - R[i] = rol(R[i], s[i]); - j++; - } - }; - - /** - * Perform one mashing round "in place". - * - * @param R Array of four words to perform mashing on. - */ - mashRound = function(R) { - for(i = 0; i < 4; i++) { - R[i] += K[R[(i + 3) % 4] & 63]; - } - }; - } else { - /** - * Perform one r-mixing round "in place". - * - * @param R Array of four words to perform mixing on. - */ - mixRound = function(R) { - for(i = 3; i >= 0; i--) { - R[i] = ror(R[i], s[i]); - R[i] -= K[j] + (R[(i + 3) % 4] & R[(i + 2) % 4]) + - ((~R[(i + 3) % 4]) & R[(i + 1) % 4]); - j--; - } - }; + _createClass(UpdateAuthMethodLDAP, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Perform one r-mashing round "in place". - * - * @param R Array of four words to perform mashing on. + * Constructs a UpdateAuthMethodLDAP from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodLDAP} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodLDAP} The populated UpdateAuthMethodLDAP instance. */ - mashRound = function(R) { - for(i = 3; i >= 0; i--) { - R[i] -= K[R[(i + 3) % 4] & 63]; - } - }; - } - - /** - * Run the specified cipher execution plan. - * - * This function takes four words from the input buffer, applies the IV on - * it (if requested) and runs the provided execution plan. - * - * The plan must be put together in form of a array of arrays. Where the - * outer one is simply a list of steps to perform and the inner one needs - * to have two elements: the first one telling how many rounds to perform, - * the second one telling what to do (i.e. the function to call). - * - * @param {Array} plan The plan to execute. - */ - var runPlan = function(plan) { - var R = []; - /* Get data from input buffer and fill the four words into R */ - for(i = 0; i < 4; i++) { - var val = _input.getInt16Le(); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodLDAP(); - if(_iv !== null) { - if(encrypt) { - /* We're encrypting, apply the IV first. */ - val ^= _iv.getInt16Le(); - } else { - /* We're decryption, keep cipher text for next block. */ - _iv.putInt16Le(val); + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); } - } - - R.push(val & 0xffff); - } - /* Reset global "j" variable as per spec. */ - j = encrypt ? 0 : 63; + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } - /* Run execution plan. */ - for(var ptr = 0; ptr < plan.length; ptr++) { - for(var ctr = 0; ctr < plan[ptr][0]; ctr++) { - plan[ptr][1](R); - } - } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - /* Write back result to output buffer. */ - for(i = 0; i < 4; i++) { - if(_iv !== null) { - if(encrypt) { - /* We're encrypting in CBC-mode, feed back encrypted bytes into - IV buffer to carry it forward to next block. */ - _iv.putInt16Le(R[i]); - } else { - R[i] ^= _iv.getInt16Le(); + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); } - } - _output.putInt16Le(R[i]); - } - }; + if (data.hasOwnProperty('gen-key')) { + obj['gen-key'] = _ApiClient["default"].convertToType(data['gen-key'], 'String'); + } - /* Create cipher object */ - var cipher = null; - cipher = { - /** - * Starts or restarts the encryption or decryption process, whichever - * was previously configured. - * - * To use the cipher in CBC mode, iv may be given either as a string - * of bytes, or as a byte buffer. For ECB mode, give null as iv. - * - * @param iv the initialization vector to use, null for ECB mode. - * @param output the output the buffer to write to, null to create one. - */ - start: function(iv, output) { - if(iv) { - /* CBC mode */ - if(typeof iv === 'string') { - iv = forge.util.createBuffer(iv); + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); } - } - _finish = false; - _input = forge.util.createBuffer(); - _output = output || new forge.util.createBuffer(); - _iv = iv; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - cipher.output = _output; - }, + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } - /** - * Updates the next block. - * - * @param input the buffer to read from. - */ - update: function(input) { - if(!_finish) { - // not finishing, so fill the input buffer with more input - _input.putBuffer(input); - } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - while(_input.length() >= 8) { - runPlan([ - [ 5, mixRound ], - [ 1, mashRound ], - [ 6, mixRound ], - [ 1, mashRound ], - [ 5, mixRound ] - ]); - } - }, + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - /** - * Finishes encrypting or decrypting. - * - * @param pad a padding function to use, null for PKCS#7 padding, - * signature(blockSize, buffer, decrypt). - * - * @return true if successful, false on error. - */ - finish: function(pad) { - var rval = true; + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } - if(encrypt) { - if(pad) { - rval = pad(8, _input, !encrypt); - } else { - // add PKCS#7 padding to block (each pad byte is the - // value of the number of pad bytes) - var padding = (_input.length() === 8) ? 8 : (8 - _input.length()); - _input.fillWithByte(padding, padding); + if (data.hasOwnProperty('public-key-data')) { + obj['public-key-data'] = _ApiClient["default"].convertToType(data['public-key-data'], 'String'); } - } - if(rval) { - // do final update - _finish = true; - cipher.update(); - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - if(!encrypt) { - // check for error: input data not a multiple of block size - rval = (_input.length() === 0); - if(rval) { - if(pad) { - rval = pad(8, _output, !encrypt); - } else { - // ensure padding byte count is valid - var len = _output.length(); - var count = _output.at(len - 1); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } - if(count > len) { - rval = false; - } else { - // trim off padding bytes - _output.truncate(count); - } - } + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); } } - return rval; + return obj; } - }; - - return cipher; -}; + }]); + return UpdateAuthMethodLDAP; +}(); /** - * Creates an RC2 cipher object to encrypt data in ECB or CBC mode using the - * given symmetric key. The output will be stored in the 'output' member - * of the returned cipher. - * - * The key and iv may be given as a string of bytes or a byte buffer. - * The cipher is initialized to use 128 effective key bits. - * - * @param key the symmetric key to use. - * @param iv the initialization vector to use. - * @param output the buffer to write to, null to create one. - * - * @return the cipher. + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -forge.rc2.startEncrypting = function(key, iv, output) { - var cipher = forge.rc2.createEncryptionCipher(key, 128); - cipher.start(iv, output); - return cipher; -}; + +UpdateAuthMethodLDAP.prototype['access-expires'] = 0; /** - * Creates an RC2 cipher object to encrypt data in ECB or CBC mode using the - * given symmetric key. - * - * The key may be given as a string of bytes or a byte buffer. - * - * To start encrypting call start() on the cipher with an iv and optional - * output buffer. - * - * @param key the symmetric key to use. - * - * @return the cipher. + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips */ -forge.rc2.createEncryptionCipher = function(key, bits) { - return createCipher(key, bits, true); -}; +UpdateAuthMethodLDAP.prototype['bound-ips'] = undefined; /** - * Creates an RC2 cipher object to decrypt data in ECB or CBC mode using the - * given symmetric key. The output will be stored in the 'output' member - * of the returned cipher. - * - * The key and iv may be given as a string of bytes or a byte buffer. - * The cipher is initialized to use 128 effective key bits. - * - * @param key the symmetric key to use. - * @param iv the initialization vector to use. - * @param output the buffer to write to, null to create one. - * - * @return the cipher. + * Auth Method description + * @member {String} description */ -forge.rc2.startDecrypting = function(key, iv, output) { - var cipher = forge.rc2.createDecryptionCipher(key, 128); - cipher.start(iv, output); - return cipher; -}; +UpdateAuthMethodLDAP.prototype['description'] = undefined; /** - * Creates an RC2 cipher object to decrypt data in ECB or CBC mode using the - * given symmetric key. - * - * The key may be given as a string of bytes or a byte buffer. - * - * To start decrypting call start() on the cipher with an iv and optional - * output buffer. - * - * @param key the symmetric key to use. - * - * @return the cipher. + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims */ -forge.rc2.createDecryptionCipher = function(key, bits) { - return createCipher(key, bits, false); -}; - - -/***/ }), - -/***/ 52804: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateAuthMethodLDAP.prototype['force-sub-claims'] = undefined; /** - * Javascript implementation of basic RSA algorithms. - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. - * - * The only algorithm currently supported for PKI is RSA. - * - * An RSA key is often stored in ASN.1 DER format. The SubjectPublicKeyInfo - * ASN.1 structure is composed of an algorithm of type AlgorithmIdentifier - * and a subjectPublicKey of type bit string. - * - * The AlgorithmIdentifier contains an Object Identifier (OID) and parameters - * for the algorithm, if any. In the case of RSA, there aren't any. - * - * SubjectPublicKeyInfo ::= SEQUENCE { - * algorithm AlgorithmIdentifier, - * subjectPublicKey BIT STRING - * } - * - * AlgorithmIdentifer ::= SEQUENCE { - * algorithm OBJECT IDENTIFIER, - * parameters ANY DEFINED BY algorithm OPTIONAL - * } - * - * For an RSA public key, the subjectPublicKey is: - * - * RSAPublicKey ::= SEQUENCE { - * modulus INTEGER, -- n - * publicExponent INTEGER -- e - * } - * - * PrivateKeyInfo ::= SEQUENCE { - * version Version, - * privateKeyAlgorithm PrivateKeyAlgorithmIdentifier, - * privateKey PrivateKey, - * attributes [0] IMPLICIT Attributes OPTIONAL - * } - * - * Version ::= INTEGER - * PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier - * PrivateKey ::= OCTET STRING - * Attributes ::= SET OF Attribute - * - * An RSA private key as the following structure: - * - * RSAPrivateKey ::= SEQUENCE { - * version Version, - * modulus INTEGER, -- n - * publicExponent INTEGER, -- e - * privateExponent INTEGER, -- d - * prime1 INTEGER, -- p - * prime2 INTEGER, -- q - * exponent1 INTEGER, -- d mod (p-1) - * exponent2 INTEGER, -- d mod (q-1) - * coefficient INTEGER -- (inverse of q) mod p - * } - * - * Version ::= INTEGER - * - * The OID for the RSA key algorithm is: 1.2.840.113549.1.1.1 + * Automatically generate key-pair for LDAP configuration. If set to false, a public key needs to be provided [true/false] + * @member {String} gen-key */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(27357); -__nccwpck_require__(27211); -__nccwpck_require__(10245); -__nccwpck_require__(51608); -__nccwpck_require__(57013); -__nccwpck_require__(32055); -__nccwpck_require__(97456); - -if(typeof BigInteger === 'undefined') { - var BigInteger = forge.jsbn.BigInteger; -} - -var _crypto = forge.util.isNodejs ? __nccwpck_require__(76982) : null; -// shortcut for asn.1 API -var asn1 = forge.asn1; - -// shortcut for util API -var util = forge.util; +UpdateAuthMethodLDAP.prototype['gen-key'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ -/* - * RSA encryption and decryption, see RFC 2313. - */ -forge.pki = forge.pki || {}; -module.exports = forge.pki.rsa = forge.rsa = forge.rsa || {}; -var pki = forge.pki; - -// for finding primes, which are 30k+i for i = 1, 7, 11, 13, 17, 19, 23, 29 -var GCD_30_DELTA = [6, 4, 2, 4, 2, 4, 6, 2]; - -// validator for a PrivateKeyInfo structure -var privateKeyValidator = { - // PrivateKeyInfo - name: 'PrivateKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - // Version (INTEGER) - name: 'PrivateKeyInfo.version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyVersion' - }, { - // privateKeyAlgorithm - name: 'PrivateKeyInfo.privateKeyAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'privateKeyOid' - }] - }, { - // PrivateKey - name: 'PrivateKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'privateKey' - }] -}; - -// validator for an RSA private key -var rsaPrivateKeyValidator = { - // RSAPrivateKey - name: 'RSAPrivateKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - // Version (INTEGER) - name: 'RSAPrivateKey.version', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyVersion' - }, { - // modulus (n) - name: 'RSAPrivateKey.modulus', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyModulus' - }, { - // publicExponent (e) - name: 'RSAPrivateKey.publicExponent', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyPublicExponent' - }, { - // privateExponent (d) - name: 'RSAPrivateKey.privateExponent', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyPrivateExponent' - }, { - // prime1 (p) - name: 'RSAPrivateKey.prime1', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyPrime1' - }, { - // prime2 (q) - name: 'RSAPrivateKey.prime2', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyPrime2' - }, { - // exponent1 (d mod (p-1)) - name: 'RSAPrivateKey.exponent1', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyExponent1' - }, { - // exponent2 (d mod (q-1)) - name: 'RSAPrivateKey.exponent2', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyExponent2' - }, { - // coefficient ((inverse of q) mod p) - name: 'RSAPrivateKey.coefficient', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'privateKeyCoefficient' - }] -}; - -// validator for an RSA public key -var rsaPublicKeyValidator = { - // RSAPublicKey - name: 'RSAPublicKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - // modulus (n) - name: 'RSAPublicKey.modulus', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'publicKeyModulus' - }, { - // publicExponent (e) - name: 'RSAPublicKey.exponent', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'publicKeyExponent' - }] -}; - -// validator for an SubjectPublicKeyInfo structure -// Note: Currently only works with an RSA public key -var publicKeyValidator = forge.pki.rsa.publicKeyValidator = { - name: 'SubjectPublicKeyInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'subjectPublicKeyInfo', - value: [{ - name: 'SubjectPublicKeyInfo.AlgorithmIdentifier', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'publicKeyOid' - }] - }, { - // subjectPublicKey - name: 'SubjectPublicKeyInfo.subjectPublicKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.BITSTRING, - constructed: false, - value: [{ - // RSAPublicKey - name: 'SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - optional: true, - captureAsn1: 'rsaPublicKey' - }] - }] -}; - -// validator for a DigestInfo structure -var digestInfoValidator = { - name: 'DigestInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'DigestInfo.DigestAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'DigestInfo.DigestAlgorithm.algorithmIdentifier', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'algorithmIdentifier' - }, { - // NULL paramters - name: 'DigestInfo.DigestAlgorithm.parameters', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.NULL, - // captured only to check existence for md2 and md5 - capture: 'parameters', - optional: true, - constructed: false - }] - }, { - // digest - name: 'DigestInfo.digest', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OCTETSTRING, - constructed: false, - capture: 'digest' - }] -}; +UpdateAuthMethodLDAP.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ +UpdateAuthMethodLDAP.prototype['json'] = false; /** - * Wrap digest in DigestInfo object. - * - * This function implements EMSA-PKCS1-v1_5-ENCODE as per RFC 3447. - * - * DigestInfo ::= SEQUENCE { - * digestAlgorithm DigestAlgorithmIdentifier, - * digest Digest - * } - * - * DigestAlgorithmIdentifier ::= AlgorithmIdentifier - * Digest ::= OCTET STRING - * - * @param md the message digest object with the hash to sign. - * - * @return the encoded message (ready for RSA encrytion) + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 */ -var emsaPkcs1v15encode = function(md) { - // get the oid for the algorithm - var oid; - if(md.algorithm in pki.oids) { - oid = pki.oids[md.algorithm]; - } else { - var error = new Error('Unknown message digest algorithm.'); - error.algorithm = md.algorithm; - throw error; - } - var oidBytes = asn1.oidToDer(oid).getBytes(); - // create the digest info - var digestInfo = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - var digestAlgorithm = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - digestAlgorithm.value.push(asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OID, false, oidBytes)); - digestAlgorithm.value.push(asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '')); - var digest = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, - false, md.digest().getBytes()); - digestInfo.value.push(digestAlgorithm); - digestInfo.value.push(digest); +UpdateAuthMethodLDAP.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ - // encode digest info - return asn1.toDer(digestInfo).getBytes(); -}; +UpdateAuthMethodLDAP.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ +UpdateAuthMethodLDAP.prototype['new-name'] = undefined; /** - * Performs x^c mod n (RSA encryption or decryption operation). - * - * @param x the number to raise and mod. - * @param key the key to use. - * @param pub true if the key is public, false if private. - * - * @return the result of x^c mod n. + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type */ -var _modPow = function(x, key, pub) { - if(pub) { - return x.modPow(key.e, key.n); - } - if(!key.p || !key.q) { - // allow calculation without CRT params (slow) - return x.modPow(key.d, key.n); - } +UpdateAuthMethodLDAP.prototype['product-type'] = undefined; +/** + * A public key generated for LDAP authentication method on Akeyless in base64 or PEM format [RSA2048] + * @member {String} public-key-data + */ - // pre-compute dP, dQ, and qInv if necessary - if(!key.dP) { - key.dP = key.d.mod(key.p.subtract(BigInteger.ONE)); - } - if(!key.dQ) { - key.dQ = key.d.mod(key.q.subtract(BigInteger.ONE)); - } - if(!key.qInv) { - key.qInv = key.q.modInverse(key.p); - } +UpdateAuthMethodLDAP.prototype['public-key-data'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - /* Chinese remainder theorem (CRT) states: +UpdateAuthMethodLDAP.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - Suppose n1, n2, ..., nk are positive integers which are pairwise - coprime (n1 and n2 have no common factors other than 1). For any - integers x1, x2, ..., xk there exists an integer x solving the - system of simultaneous congruences (where ~= means modularly - congruent so a ~= b mod n means a mod n = b mod n): +UpdateAuthMethodLDAP.prototype['uid-token'] = undefined; +/** + * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier + * @default 'users' + */ - x ~= x1 mod n1 - x ~= x2 mod n2 - ... - x ~= xk mod nk +UpdateAuthMethodLDAP.prototype['unique-identifier'] = 'users'; +var _default = UpdateAuthMethodLDAP; +exports["default"] = _default; - This system of congruences has a single simultaneous solution x - between 0 and n - 1. Furthermore, each xk solution and x itself - is congruent modulo the product n = n1*n2*...*nk. - So x1 mod n = x2 mod n = xk mod n = x mod n. +/***/ }), - The single simultaneous solution x can be solved with the following - equation: +/***/ 52290: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - x = sum(xi*ri*si) mod n where ri = n/ni and si = ri^-1 mod ni. +"use strict"; - Where x is less than n, xi = x mod ni. - For RSA we are only concerned with k = 2. The modulus n = pq, where - p and q are coprime. The RSA decryption algorithm is: +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - y = x^d mod n +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - Given the above: +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - x1 = x^d mod p - r1 = n/p = q - s1 = q^-1 mod p - x2 = x^d mod q - r2 = n/q = p - s2 = p^-1 mod q +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - So y = (x1r1s1 + x2r2s2) mod n - = ((x^d mod p)q(q^-1 mod p) + (x^d mod q)p(p^-1 mod q)) mod n +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - According to Fermat's Little Theorem, if the modulus P is prime, - for any integer A not evenly divisible by P, A^(P-1) ~= 1 mod P. - Since A is not divisible by P it follows that if: - N ~= M mod (P - 1), then A^N mod P = A^M mod P. Therefore: +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - A^N mod P = A^(M mod (P - 1)) mod P. (The latter takes less effort - to calculate). In order to calculate x^d mod p more quickly the - exponent d mod (p - 1) is stored in the RSA private key (the same - is done for x^d mod q). These values are referred to as dP and dQ - respectively. Therefore we now have: +/** + * The UpdateAuthMethodLDAPOutput model module. + * @module model/UpdateAuthMethodLDAPOutput + * @version 3.6.3 + */ +var UpdateAuthMethodLDAPOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAuthMethodLDAPOutput. + * @alias module:model/UpdateAuthMethodLDAPOutput + */ + function UpdateAuthMethodLDAPOutput() { + _classCallCheck(this, UpdateAuthMethodLDAPOutput); - y = ((x^dP mod p)q(q^-1 mod p) + (x^dQ mod q)p(p^-1 mod q)) mod n + UpdateAuthMethodLDAPOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - Since we'll be reducing x^dP by modulo p (same for q) we can also - reduce x by p (and q respectively) before hand. Therefore, let - xp = ((x mod p)^dP mod p), and - xq = ((x mod q)^dQ mod q), yielding: + _createClass(UpdateAuthMethodLDAPOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateAuthMethodLDAPOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodLDAPOutput} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodLDAPOutput} The populated UpdateAuthMethodLDAPOutput instance. + */ - y = (xp*q*(q^-1 mod p) + xq*p*(p^-1 mod q)) mod n + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodLDAPOutput(); - This can be further reduced to a simple algorithm that only - requires 1 inverse (the q inverse is used) to be used and stored. - The algorithm is called Garner's algorithm. If qInv is the - inverse of q, we simply calculate: + if (data.hasOwnProperty('prv_key')) { + obj['prv_key'] = _ApiClient["default"].convertToType(data['prv_key'], 'String'); + } + } - y = (qInv*(xp - xq) mod p) * q + xq + return obj; + } + }]); - However, there are two further complications. First, we need to - ensure that xp > xq to prevent signed BigIntegers from being used - so we add p until this is true (since we will be mod'ing with - p anyway). Then, there is a known timing attack on algorithms - using the CRT. To mitigate this risk, "cryptographic blinding" - should be used. This requires simply generating a random number r - between 0 and n-1 and its inverse and multiplying x by r^e before - calculating y and then multiplying y by r^-1 afterwards. Note that - r must be coprime with n (gcd(r, n) === 1) in order to have an - inverse. - */ + return UpdateAuthMethodLDAPOutput; +}(); +/** + * @member {String} prv_key + */ - // cryptographic blinding - var r; - do { - r = new BigInteger( - forge.util.bytesToHex(forge.random.getBytes(key.n.bitLength() / 8)), - 16); - } while(r.compareTo(key.n) >= 0 || !r.gcd(key.n).equals(BigInteger.ONE)); - x = x.multiply(r.modPow(key.e, key.n)).mod(key.n); - // calculate xp and xq - var xp = x.mod(key.p).modPow(key.dP, key.p); - var xq = x.mod(key.q).modPow(key.dQ, key.q); +UpdateAuthMethodLDAPOutput.prototype['prv_key'] = undefined; +var _default = UpdateAuthMethodLDAPOutput; +exports["default"] = _default; - // xp must be larger than xq to avoid signed bit usage - while(xp.compareTo(xq) < 0) { - xp = xp.add(key.p); - } +/***/ }), - // do last step - var y = xp.subtract(xq) - .multiply(key.qInv).mod(key.p) - .multiply(key.q).add(xq); +/***/ 13933: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // remove effect of random for cryptographic blinding - y = y.multiply(r.modInverse(key.n)).mod(key.n); +"use strict"; - return y; -}; -/** - * NOTE: THIS METHOD IS DEPRECATED, use 'sign' on a private key object or - * 'encrypt' on a public key object instead. - * - * Performs RSA encryption. - * - * The parameter bt controls whether to put padding bytes before the - * message passed in. Set bt to either true or false to disable padding - * completely (in order to handle e.g. EMSA-PSS encoding seperately before), - * signaling whether the encryption operation is a public key operation - * (i.e. encrypting data) or not, i.e. private key operation (data signing). - * - * For PKCS#1 v1.5 padding pass in the block type to use, i.e. either 0x01 - * (for signing) or 0x02 (for encryption). The key operation mode (private - * or public) is derived from this flag in that case). - * - * @param m the message to encrypt as a byte string. - * @param key the RSA key to use. - * @param bt for PKCS#1 v1.5 padding, the block type to use - * (0x01 for private key, 0x02 for public), - * to disable padding: true = public key, false = private key. - * - * @return the encrypted bytes as a string. - */ -pki.rsa.encrypt = function(m, key, bt) { - var pub = bt; - var eb; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // get the length of the modulus in bytes - var k = Math.ceil(key.n.bitLength() / 8); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if(bt !== false && bt !== true) { - // legacy, default to PKCS#1 v1.5 padding - pub = (bt === 0x02); - eb = _encodePkcs1_v1_5(m, key, bt); - } else { - eb = forge.util.createBuffer(); - eb.putBytes(m); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // load encryption block as big integer 'x' - // FIXME: hex conversion inefficient, get BigInteger w/byte strings - var x = new BigInteger(eb.toHex(), 16); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // do RSA encryption - var y = _modPow(x, key, pub); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // convert y into the encrypted data byte string, if y is shorter in - // bytes than k, then prepend zero bytes to fill up ed - // FIXME: hex conversion inefficient, get BigInteger w/byte strings - var yhex = y.toString(16); - var ed = forge.util.createBuffer(); - var zeros = k - Math.ceil(yhex.length / 2); - while(zeros > 0) { - ed.putByte(0x00); - --zeros; - } - ed.putBytes(forge.util.hexToBytes(yhex)); - return ed.getBytes(); -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * NOTE: THIS METHOD IS DEPRECATED, use 'decrypt' on a private key object or - * 'verify' on a public key object instead. - * - * Performs RSA decryption. - * - * The parameter ml controls whether to apply PKCS#1 v1.5 padding - * or not. Set ml = false to disable padding removal completely - * (in order to handle e.g. EMSA-PSS later on) and simply pass back - * the RSA encryption block. - * - * @param ed the encrypted data to decrypt in as a byte string. - * @param key the RSA key to use. - * @param pub true for a public key operation, false for private. - * @param ml the message length, if known, false to disable padding. - * - * @return the decrypted message as a byte string. + * The UpdateAuthMethodOAuth2 model module. + * @module model/UpdateAuthMethodOAuth2 + * @version 3.6.3 */ -pki.rsa.decrypt = function(ed, key, pub, ml) { - // get the length of the modulus in bytes - var k = Math.ceil(key.n.bitLength() / 8); +var UpdateAuthMethodOAuth2 = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAuthMethodOAuth2. + * updateAuthMethodOAuth2 is a command that updates a new auth method that will be able to authenticate using Oauth2. + * @alias module:model/UpdateAuthMethodOAuth2 + * @param jwksUri {String} The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. + * @param name {String} Auth Method name + * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + */ + function UpdateAuthMethodOAuth2(jwksUri, name, uniqueIdentifier) { + _classCallCheck(this, UpdateAuthMethodOAuth2); - // error if the length of the encrypted data ED is not k - if(ed.length !== k) { - var error = new Error('Encrypted message length is invalid.'); - error.length = ed.length; - error.expected = k; - throw error; + UpdateAuthMethodOAuth2.initialize(this, jwksUri, name, uniqueIdentifier); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // convert encrypted data into a big integer - // FIXME: hex conversion inefficient, get BigInteger w/byte strings - var y = new BigInteger(forge.util.createBuffer(ed).toHex(), 16); - // y must be less than the modulus or it wasn't the result of - // a previous mod operation (encryption) using that modulus - if(y.compareTo(key.n) >= 0) { - throw new Error('Encrypted message is invalid.'); - } + _createClass(UpdateAuthMethodOAuth2, null, [{ + key: "initialize", + value: function initialize(obj, jwksUri, name, uniqueIdentifier) { + obj['jwks-uri'] = jwksUri; + obj['name'] = name; + obj['unique-identifier'] = uniqueIdentifier; + } + /** + * Constructs a UpdateAuthMethodOAuth2 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodOAuth2} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodOAuth2} The populated UpdateAuthMethodOAuth2 instance. + */ - // do RSA decryption - var x = _modPow(y, key, pub); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodOAuth2(); - // create the encryption block, if x is shorter in bytes than k, then - // prepend zero bytes to fill up eb - // FIXME: hex conversion inefficient, get BigInteger w/byte strings - var xhex = x.toString(16); - var eb = forge.util.createBuffer(); - var zeros = k - Math.ceil(xhex.length / 2); - while(zeros > 0) { - eb.putByte(0x00); - --zeros; - } - eb.putBytes(forge.util.hexToBytes(xhex)); + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } - if(ml !== false) { - // legacy, default to PKCS#1 v1.5 padding - return _decodePkcs1_v1_5(eb.getBytes(), key, pub); - } + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } - // return message - return eb.getBytes(); -}; + if (data.hasOwnProperty('bound-client-ids')) { + obj['bound-client-ids'] = _ApiClient["default"].convertToType(data['bound-client-ids'], ['String']); + } -/** - * Creates an RSA key-pair generation state object. It is used to allow - * key-generation to be performed in steps. It also allows for a UI to - * display progress updates. - * - * @param bits the size for the private key in bits, defaults to 2048. - * @param e the public exponent to use, defaults to 65537 (0x10001). - * @param [options] the options to use. - * prng a custom crypto-secure pseudo-random number generator to use, - * that must define "getBytesSync". - * algorithm the algorithm to use (default: 'PRIMEINC'). - * - * @return the state object to use to generate the key-pair. - */ -pki.rsa.createKeyPairGenerationState = function(bits, e, options) { - // TODO: migrate step-based prime generation code to forge.prime + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } - // set default bits - if(typeof(bits) === 'string') { - bits = parseInt(bits, 10); - } - bits = bits || 2048; + if (data.hasOwnProperty('cert')) { + obj['cert'] = _ApiClient["default"].convertToType(data['cert'], 'String'); + } - // create prng with api that matches BigInteger secure random - options = options || {}; - var prng = options.prng || forge.random; - var rng = { - // x is an array to fill with bytes - nextBytes: function(x) { - var b = prng.getBytesSync(x.length); - for(var i = 0; i < x.length; ++i) { - x[i] = b.charCodeAt(i); - } - } - }; + if (data.hasOwnProperty('cert-file-data')) { + obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); + } - var algorithm = options.algorithm || 'PRIMEINC'; - - // create PRIMEINC algorithm state - var rval; - if(algorithm === 'PRIMEINC') { - rval = { - algorithm: algorithm, - state: 0, - bits: bits, - rng: rng, - eInt: e || 65537, - e: new BigInteger(null), - p: null, - q: null, - qBits: bits >> 1, - pBits: bits - (bits >> 1), - pqState: 0, - num: null, - keys: null - }; - rval.e.fromInt(rval.eInt); - } else { - throw new Error('Invalid key generation algorithm: ' + algorithm); - } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - return rval; -}; + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } -/** - * Attempts to runs the key-generation algorithm for at most n seconds - * (approximately) using the given state. When key-generation has completed, - * the keys will be stored in state.keys. - * - * To use this function to update a UI while generating a key or to prevent - * causing browser lockups/warnings, set "n" to a value other than 0. A - * simple pattern for generating a key and showing a progress indicator is: - * - * var state = pki.rsa.createKeyPairGenerationState(2048); - * var step = function() { - * // step key-generation, run algorithm for 100 ms, repeat - * if(!forge.pki.rsa.stepKeyPairGenerationState(state, 100)) { - * setTimeout(step, 1); - * } else { - * // key-generation complete - * // TODO: turn off progress indicator here - * // TODO: use the generated key-pair in "state.keys" - * } - * }; - * // TODO: turn on progress indicator here - * setTimeout(step, 0); - * - * @param state the state to use. - * @param n the maximum number of milliseconds to run the algorithm for, 0 - * to run the algorithm to completion. - * - * @return true if the key-generation completed, false if not. - */ -pki.rsa.stepKeyPairGenerationState = function(state, n) { - // set default algorithm if not set - if(!('algorithm' in state)) { - state.algorithm = 'PRIMEINC'; - } - - // TODO: migrate step-based prime generation code to forge.prime - // TODO: abstract as PRIMEINC algorithm - - // do key generation (based on Tom Wu's rsa.js, see jsbn.js license) - // with some minor optimizations and designed to run in steps - - // local state vars - var THIRTY = new BigInteger(null); - THIRTY.fromInt(30); - var deltaIdx = 0; - var op_or = function(x, y) {return x | y;}; - - // keep stepping until time limit is reached or done - var t1 = +new Date(); - var t2; - var total = 0; - while(state.keys === null && (n <= 0 || total < n)) { - // generate p or q - if(state.state === 0) { - /* Note: All primes are of the form: - - 30k+i, for i < 30 and gcd(30, i)=1, where there are 8 values for i - - When we generate a random number, we always align it at 30k + 1. Each - time the number is determined not to be prime we add to get to the - next 'i', eg: if the number was at 30k + 1 we add 6. */ - var bits = (state.p === null) ? state.pBits : state.qBits; - var bits1 = bits - 1; - - // get a random number - if(state.pqState === 0) { - state.num = new BigInteger(bits, state.rng); - // force MSB set - if(!state.num.testBit(bits1)) { - state.num.bitwiseTo( - BigInteger.ONE.shiftLeft(bits1), op_or, state.num); - } - // align number on 30k+1 boundary - state.num.dAddOffset(31 - state.num.mod(THIRTY).byteValue(), 0); - deltaIdx = 0; - - ++state.pqState; - } else if(state.pqState === 1) { - // try to make the number a prime - if(state.num.bitLength() > bits) { - // overflow, try again - state.pqState = 0; - // do primality test - } else if(state.num.isProbablePrime( - _getMillerRabinTests(state.num.bitLength()))) { - ++state.pqState; - } else { - // get next potential prime - state.num.dAddOffset(GCD_30_DELTA[deltaIdx++ % 8], 0); - } - } else if(state.pqState === 2) { - // ensure number is coprime with e - state.pqState = - (state.num.subtract(BigInteger.ONE).gcd(state.e) - .compareTo(BigInteger.ONE) === 0) ? 3 : 0; - } else if(state.pqState === 3) { - // store p or q - state.pqState = 0; - if(state.p === null) { - state.p = state.num; - } else { - state.q = state.num; - } - - // advance state if both p and q are ready - if(state.p !== null && state.q !== null) { - ++state.state; - } - state.num = null; - } - } else if(state.state === 1) { - // ensure p is larger than q (swap them if not) - if(state.p.compareTo(state.q) < 0) { - state.num = state.p; - state.p = state.q; - state.q = state.num; - } - ++state.state; - } else if(state.state === 2) { - // compute phi: (p - 1)(q - 1) (Euler's totient function) - state.p1 = state.p.subtract(BigInteger.ONE); - state.q1 = state.q.subtract(BigInteger.ONE); - state.phi = state.p1.multiply(state.q1); - ++state.state; - } else if(state.state === 3) { - // ensure e and phi are coprime - if(state.phi.gcd(state.e).compareTo(BigInteger.ONE) === 0) { - // phi and e are coprime, advance - ++state.state; - } else { - // phi and e aren't coprime, so generate a new p and q - state.p = null; - state.q = null; - state.state = 0; - } - } else if(state.state === 4) { - // create n, ensure n is has the right number of bits - state.n = state.p.multiply(state.q); - - // ensure n is right number of bits - if(state.n.bitLength() === state.bits) { - // success, advance - ++state.state; - } else { - // failed, get new q - state.q = null; - state.state = 0; - } - } else if(state.state === 5) { - // set keys - var d = state.e.modInverse(state.phi); - state.keys = { - privateKey: pki.rsa.setPrivateKey( - state.n, state.e, d, state.p, state.q, - d.mod(state.p1), d.mod(state.q1), - state.q.modInverse(state.p)), - publicKey: pki.rsa.setPublicKey(state.n, state.e) - }; - } + if (data.hasOwnProperty('gateway-url')) { + obj['gateway-url'] = _ApiClient["default"].convertToType(data['gateway-url'], 'String'); + } - // update timing - t2 = +new Date(); - total += t2 - t1; - t1 = t2; - } - - return state.keys !== null; -}; - -/** - * Generates an RSA public-private key pair in a single call. - * - * To generate a key-pair in steps (to allow for progress updates and to - * prevent blocking or warnings in slow browsers) then use the key-pair - * generation state functions. - * - * To generate a key-pair asynchronously (either through web-workers, if - * available, or by breaking up the work on the main thread), pass a - * callback function. - * - * @param [bits] the size for the private key in bits, defaults to 2048. - * @param [e] the public exponent to use, defaults to 65537. - * @param [options] options for key-pair generation, if given then 'bits' - * and 'e' must *not* be given: - * bits the size for the private key in bits, (default: 2048). - * e the public exponent to use, (default: 65537 (0x10001)). - * workerScript the worker script URL. - * workers the number of web workers (if supported) to use, - * (default: 2). - * workLoad the size of the work load, ie: number of possible prime - * numbers for each web worker to check per work assignment, - * (default: 100). - * prng a custom crypto-secure pseudo-random number generator to use, - * that must define "getBytesSync". Disables use of native APIs. - * algorithm the algorithm to use (default: 'PRIMEINC'). - * @param [callback(err, keypair)] called once the operation completes. - * - * @return an object with privateKey and publicKey properties. - */ -pki.rsa.generateKeyPair = function(bits, e, options, callback) { - // (bits), (options), (callback) - if(arguments.length === 1) { - if(typeof bits === 'object') { - options = bits; - bits = undefined; - } else if(typeof bits === 'function') { - callback = bits; - bits = undefined; - } - } else if(arguments.length === 2) { - // (bits, e), (bits, options), (bits, callback), (options, callback) - if(typeof bits === 'number') { - if(typeof e === 'function') { - callback = e; - e = undefined; - } else if(typeof e !== 'number') { - options = e; - e = undefined; - } - } else { - options = bits; - callback = e; - bits = undefined; - e = undefined; - } - } else if(arguments.length === 3) { - // (bits, e, options), (bits, e, callback), (bits, options, callback) - if(typeof e === 'number') { - if(typeof options === 'function') { - callback = options; - options = undefined; - } - } else { - callback = options; - options = e; - e = undefined; - } - } - options = options || {}; - if(bits === undefined) { - bits = options.bits || 2048; - } - if(e === undefined) { - e = options.e || 0x10001; - } - - // use native code if permitted, available, and parameters are acceptable - if(!forge.options.usePureJavaScript && !options.prng && - bits >= 256 && bits <= 16384 && (e === 0x10001 || e === 3)) { - if(callback) { - // try native async - if(_detectNodeCrypto('generateKeyPair')) { - return _crypto.generateKeyPair('rsa', { - modulusLength: bits, - publicExponent: e, - publicKeyEncoding: { - type: 'spki', - format: 'pem' - }, - privateKeyEncoding: { - type: 'pkcs8', - format: 'pem' - } - }, function(err, pub, priv) { - if(err) { - return callback(err); - } - callback(null, { - privateKey: pki.privateKeyFromPem(priv), - publicKey: pki.publicKeyFromPem(pub) - }); - }); - } - if(_detectSubtleCrypto('generateKey') && - _detectSubtleCrypto('exportKey')) { - // use standard native generateKey - return util.globalScope.crypto.subtle.generateKey({ - name: 'RSASSA-PKCS1-v1_5', - modulusLength: bits, - publicExponent: _intToUint8Array(e), - hash: {name: 'SHA-256'} - }, true /* key can be exported*/, ['sign', 'verify']) - .then(function(pair) { - return util.globalScope.crypto.subtle.exportKey( - 'pkcs8', pair.privateKey); - // avoiding catch(function(err) {...}) to support IE <= 8 - }).then(undefined, function(err) { - callback(err); - }).then(function(pkcs8) { - if(pkcs8) { - var privateKey = pki.privateKeyFromAsn1( - asn1.fromDer(forge.util.createBuffer(pkcs8))); - callback(null, { - privateKey: privateKey, - publicKey: pki.setRsaPublicKey(privateKey.n, privateKey.e) - }); - } - }); - } - if(_detectSubtleMsCrypto('generateKey') && - _detectSubtleMsCrypto('exportKey')) { - var genOp = util.globalScope.msCrypto.subtle.generateKey({ - name: 'RSASSA-PKCS1-v1_5', - modulusLength: bits, - publicExponent: _intToUint8Array(e), - hash: {name: 'SHA-256'} - }, true /* key can be exported*/, ['sign', 'verify']); - genOp.oncomplete = function(e) { - var pair = e.target.result; - var exportOp = util.globalScope.msCrypto.subtle.exportKey( - 'pkcs8', pair.privateKey); - exportOp.oncomplete = function(e) { - var pkcs8 = e.target.result; - var privateKey = pki.privateKeyFromAsn1( - asn1.fromDer(forge.util.createBuffer(pkcs8))); - callback(null, { - privateKey: privateKey, - publicKey: pki.setRsaPublicKey(privateKey.n, privateKey.e) - }); - }; - exportOp.onerror = function(err) { - callback(err); - }; - }; - genOp.onerror = function(err) { - callback(err); - }; - return; - } - } else { - // try native sync - if(_detectNodeCrypto('generateKeyPairSync')) { - var keypair = _crypto.generateKeyPairSync('rsa', { - modulusLength: bits, - publicExponent: e, - publicKeyEncoding: { - type: 'spki', - format: 'pem' - }, - privateKeyEncoding: { - type: 'pkcs8', - format: 'pem' - } - }); - return { - privateKey: pki.privateKeyFromPem(keypair.privateKey), - publicKey: pki.publicKeyFromPem(keypair.publicKey) - }; - } - } - } + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } - // use JavaScript implementation - var state = pki.rsa.createKeyPairGenerationState(bits, e, options); - if(!callback) { - pki.rsa.stepKeyPairGenerationState(state, 0); - return state.keys; - } - _generateKeyPair(state, options, callback); -}; + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } -/** - * Sets an RSA public key from BigIntegers modulus and exponent. - * - * @param n the modulus. - * @param e the exponent. - * - * @return the public key. - */ -pki.setRsaPublicKey = pki.rsa.setPublicKey = function(n, e) { - var key = { - n: n, - e: e - }; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - /** - * Encrypts the given data with this public key. Newer applications - * should use the 'RSA-OAEP' decryption scheme, 'RSAES-PKCS1-V1_5' is for - * legacy applications. - * - * @param data the byte string to encrypt. - * @param scheme the encryption scheme to use: - * 'RSAES-PKCS1-V1_5' (default), - * 'RSA-OAEP', - * 'RAW', 'NONE', or null to perform raw RSA encryption, - * an object with an 'encode' property set to a function - * with the signature 'function(data, key)' that returns - * a binary-encoded string representing the encoded data. - * @param schemeOptions any scheme-specific options. - * - * @return the encrypted byte string. - */ - key.encrypt = function(data, scheme, schemeOptions) { - if(typeof scheme === 'string') { - scheme = scheme.toUpperCase(); - } else if(scheme === undefined) { - scheme = 'RSAES-PKCS1-V1_5'; - } + if (data.hasOwnProperty('jwks-json-data')) { + obj['jwks-json-data'] = _ApiClient["default"].convertToType(data['jwks-json-data'], 'String'); + } - if(scheme === 'RSAES-PKCS1-V1_5') { - scheme = { - encode: function(m, key, pub) { - return _encodePkcs1_v1_5(m, key, 0x02).getBytes(); + if (data.hasOwnProperty('jwks-uri')) { + obj['jwks-uri'] = _ApiClient["default"].convertToType(data['jwks-uri'], 'String'); } - }; - } else if(scheme === 'RSA-OAEP' || scheme === 'RSAES-OAEP') { - scheme = { - encode: function(m, key) { - return forge.pkcs1.encode_rsa_oaep(key, m, schemeOptions); + + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); } - }; - } else if(['RAW', 'NONE', 'NULL', null].indexOf(scheme) !== -1) { - scheme = {encode: function(e) {return e;}}; - } else if(typeof scheme === 'string') { - throw new Error('Unsupported encryption scheme: "' + scheme + '".'); - } - // do scheme-based encoding then rsa encryption - var e = scheme.encode(data, key, true); - return pki.rsa.encrypt(e, key, true); - }; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - /** - * Verifies the given signature against the given digest. - * - * PKCS#1 supports multiple (currently two) signature schemes: - * RSASSA-PKCS1-V1_5 and RSASSA-PSS. - * - * By default this implementation uses the "old scheme", i.e. - * RSASSA-PKCS1-V1_5, in which case once RSA-decrypted, the - * signature is an OCTET STRING that holds a DigestInfo. - * - * DigestInfo ::= SEQUENCE { - * digestAlgorithm DigestAlgorithmIdentifier, - * digest Digest - * } - * DigestAlgorithmIdentifier ::= AlgorithmIdentifier - * Digest ::= OCTET STRING - * - * To perform PSS signature verification, provide an instance - * of Forge PSS object as the scheme parameter. - * - * @param digest the message digest hash to compare against the signature, - * as a binary-encoded string. - * @param signature the signature to verify, as a binary-encoded string. - * @param scheme signature verification scheme to use: - * 'RSASSA-PKCS1-V1_5' or undefined for RSASSA PKCS#1 v1.5, - * a Forge PSS object for RSASSA-PSS, - * 'NONE' or null for none, DigestInfo will not be expected, but - * PKCS#1 v1.5 padding will still be used. - * @param options optional verify options - * _parseAllDigestBytes testing flag to control parsing of all - * digest bytes. Unsupported and not for general usage. - * (default: true) - * - * @return true if the signature was verified, false if not. - */ - key.verify = function(digest, signature, scheme, options) { - if(typeof scheme === 'string') { - scheme = scheme.toUpperCase(); - } else if(scheme === undefined) { - scheme = 'RSASSA-PKCS1-V1_5'; - } - if(options === undefined) { - options = { - _parseAllDigestBytes: true - }; - } - if(!('_parseAllDigestBytes' in options)) { - options._parseAllDigestBytes = true; - } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - if(scheme === 'RSASSA-PKCS1-V1_5') { - scheme = { - verify: function(digest, d) { - // remove padding - d = _decodePkcs1_v1_5(d, key, true); - // d is ASN.1 BER-encoded DigestInfo - var obj = asn1.fromDer(d, { - parseAllBytes: options._parseAllDigestBytes - }); + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } - // validate DigestInfo - var capture = {}; - var errors = []; - if(!asn1.validate(obj, digestInfoValidator, capture, errors)) { - var error = new Error( - 'ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 ' + - 'DigestInfo value.'); - error.errors = errors; - throw error; - } - // check hash algorithm identifier - // see PKCS1-v1-5DigestAlgorithms in RFC 8017 - // FIXME: add support to vaidator for strict value choices - var oid = asn1.derToOid(capture.algorithmIdentifier); - if(!(oid === forge.oids.md2 || - oid === forge.oids.md5 || - oid === forge.oids.sha1 || - oid === forge.oids.sha224 || - oid === forge.oids.sha256 || - oid === forge.oids.sha384 || - oid === forge.oids.sha512 || - oid === forge.oids['sha512-224'] || - oid === forge.oids['sha512-256'])) { - var error = new Error( - 'Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.'); - error.oid = oid; - throw error; - } + if (data.hasOwnProperty('subclaims-delimiters')) { + obj['subclaims-delimiters'] = _ApiClient["default"].convertToType(data['subclaims-delimiters'], ['String']); + } - // special check for md2 and md5 that NULL parameters exist - if(oid === forge.oids.md2 || oid === forge.oids.md5) { - if(!('parameters' in capture)) { - throw new Error( - 'ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 ' + - 'DigestInfo value. ' + - 'Missing algorithm identifer NULL parameters.'); - } - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - // compare the given digest to the decrypted one - return digest === capture.digest; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - }; - } else if(scheme === 'NONE' || scheme === 'NULL' || scheme === null) { - scheme = { - verify: function(digest, d) { - // remove padding - d = _decodePkcs1_v1_5(d, key, true); - return digest === d; + + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); } - }; + } + + return obj; } + }]); - // do rsa decryption w/o any decoding, then verify -- which does decoding - var d = pki.rsa.decrypt(signature, key, true, false); - return scheme.verify(digest, d, key.n.bitLength()); - }; + return UpdateAuthMethodOAuth2; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ - return key; -}; +UpdateAuthMethodOAuth2.prototype['access-expires'] = 0; /** - * Sets an RSA private key from BigIntegers modulus, exponent, primes, - * prime exponents, and modular multiplicative inverse. - * - * @param n the modulus. - * @param e the public exponent. - * @param d the private exponent ((inverse of e) mod n). - * @param p the first prime. - * @param q the second prime. - * @param dP exponent1 (d mod (p-1)). - * @param dQ exponent2 (d mod (q-1)). - * @param qInv ((inverse of q) mod p) - * - * @return the private key. + * The audience in the JWT + * @member {String} audience */ -pki.setRsaPrivateKey = pki.rsa.setPrivateKey = function( - n, e, d, p, q, dP, dQ, qInv) { - var key = { - n: n, - e: e, - d: d, - p: p, - q: q, - dP: dP, - dQ: dQ, - qInv: qInv - }; - /** - * Decrypts the given data with this private key. The decryption scheme - * must match the one used to encrypt the data. - * - * @param data the byte string to decrypt. - * @param scheme the decryption scheme to use: - * 'RSAES-PKCS1-V1_5' (default), - * 'RSA-OAEP', - * 'RAW', 'NONE', or null to perform raw RSA decryption. - * @param schemeOptions any scheme-specific options. - * - * @return the decrypted byte string. - */ - key.decrypt = function(data, scheme, schemeOptions) { - if(typeof scheme === 'string') { - scheme = scheme.toUpperCase(); - } else if(scheme === undefined) { - scheme = 'RSAES-PKCS1-V1_5'; - } +UpdateAuthMethodOAuth2.prototype['audience'] = undefined; +/** + * The clients ids that the access is restricted to + * @member {Array.} bound-client-ids + */ - // do rsa decryption w/o any decoding - var d = pki.rsa.decrypt(data, key, false, false); +UpdateAuthMethodOAuth2.prototype['bound-client-ids'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ - if(scheme === 'RSAES-PKCS1-V1_5') { - scheme = {decode: _decodePkcs1_v1_5}; - } else if(scheme === 'RSA-OAEP' || scheme === 'RSAES-OAEP') { - scheme = { - decode: function(d, key) { - return forge.pkcs1.decode_rsa_oaep(key, d, schemeOptions); - } - }; - } else if(['RAW', 'NONE', 'NULL', null].indexOf(scheme) !== -1) { - scheme = {decode: function(d) {return d;}}; - } else { - throw new Error('Unsupported encryption scheme: "' + scheme + '".'); - } +UpdateAuthMethodOAuth2.prototype['bound-ips'] = undefined; +/** + * CertificateFile Path to a file that contain the certificate in a PEM format. + * @member {String} cert + */ - // decode according to scheme - return scheme.decode(d, key, false); - }; +UpdateAuthMethodOAuth2.prototype['cert'] = undefined; +/** + * CertificateFileData PEM Certificate in a Base64 format. + * @member {String} cert-file-data + */ - /** - * Signs the given digest, producing a signature. - * - * PKCS#1 supports multiple (currently two) signature schemes: - * RSASSA-PKCS1-V1_5 and RSASSA-PSS. - * - * By default this implementation uses the "old scheme", i.e. - * RSASSA-PKCS1-V1_5. In order to generate a PSS signature, provide - * an instance of Forge PSS object as the scheme parameter. - * - * @param md the message digest object with the hash to sign. - * @param scheme the signature scheme to use: - * 'RSASSA-PKCS1-V1_5' or undefined for RSASSA PKCS#1 v1.5, - * a Forge PSS object for RSASSA-PSS, - * 'NONE' or null for none, DigestInfo will not be used but - * PKCS#1 v1.5 padding will still be used. - * - * @return the signature as a byte string. - */ - key.sign = function(md, scheme) { - /* Note: The internal implementation of RSA operations is being - transitioned away from a PKCS#1 v1.5 hard-coded scheme. Some legacy - code like the use of an encoding block identifier 'bt' will eventually - be removed. */ +UpdateAuthMethodOAuth2.prototype['cert-file-data'] = undefined; +/** + * Auth Method description + * @member {String} description + */ + +UpdateAuthMethodOAuth2.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ - // private key operation - var bt = false; +UpdateAuthMethodOAuth2.prototype['force-sub-claims'] = undefined; +/** + * Akeyless Gateway URL (Configuration Management port). Relevant only when the jwks-uri is accessible only from the gateway. + * @member {String} gateway-url + */ - if(typeof scheme === 'string') { - scheme = scheme.toUpperCase(); - } +UpdateAuthMethodOAuth2.prototype['gateway-url'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ - if(scheme === undefined || scheme === 'RSASSA-PKCS1-V1_5') { - scheme = {encode: emsaPkcs1v15encode}; - bt = 0x01; - } else if(scheme === 'NONE' || scheme === 'NULL' || scheme === null) { - scheme = {encode: function() {return md;}}; - bt = 0x01; - } +UpdateAuthMethodOAuth2.prototype['gw-bound-ips'] = undefined; +/** + * Issuer URL + * @member {String} issuer + */ - // encode and then encrypt - var d = scheme.encode(md, key.n.bitLength()); - return pki.rsa.encrypt(d, key, bt); - }; +UpdateAuthMethodOAuth2.prototype['issuer'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - return key; -}; +UpdateAuthMethodOAuth2.prototype['json'] = false; +/** + * The JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. base64 encoded string + * @member {String} jwks-json-data + */ +UpdateAuthMethodOAuth2.prototype['jwks-json-data'] = undefined; /** - * Wraps an RSAPrivateKey ASN.1 object in an ASN.1 PrivateKeyInfo object. - * - * @param rsaKey the ASN.1 RSAPrivateKey. - * - * @return the ASN.1 PrivateKeyInfo. + * The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. + * @member {String} jwks-uri + * @default 'default_jwks_url' */ -pki.wrapRsaPrivateKey = function(rsaKey) { - // PrivateKeyInfo - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // version (0) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(0).getBytes()), - // privateKeyAlgorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.rsaEncryption).getBytes()), - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ]), - // PrivateKey - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, - asn1.toDer(rsaKey).getBytes()) - ]); -}; +UpdateAuthMethodOAuth2.prototype['jwks-uri'] = 'default_jwks_url'; /** - * Converts a private key from an ASN.1 object. - * - * @param obj the ASN.1 representation of a PrivateKeyInfo containing an - * RSAPrivateKey or an RSAPrivateKey. - * - * @return the private key. + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 */ -pki.privateKeyFromAsn1 = function(obj) { - // get PrivateKeyInfo - var capture = {}; - var errors = []; - if(asn1.validate(obj, privateKeyValidator, capture, errors)) { - obj = asn1.fromDer(forge.util.createBuffer(capture.privateKey)); - } - // get RSAPrivateKey - capture = {}; - errors = []; - if(!asn1.validate(obj, rsaPrivateKeyValidator, capture, errors)) { - var error = new Error('Cannot read private key. ' + - 'ASN.1 object does not contain an RSAPrivateKey.'); - error.errors = errors; - throw error; - } +UpdateAuthMethodOAuth2.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ - // Note: Version is currently ignored. - // capture.privateKeyVersion - // FIXME: inefficient, get a BigInteger that uses byte strings - var n, e, d, p, q, dP, dQ, qInv; - n = forge.util.createBuffer(capture.privateKeyModulus).toHex(); - e = forge.util.createBuffer(capture.privateKeyPublicExponent).toHex(); - d = forge.util.createBuffer(capture.privateKeyPrivateExponent).toHex(); - p = forge.util.createBuffer(capture.privateKeyPrime1).toHex(); - q = forge.util.createBuffer(capture.privateKeyPrime2).toHex(); - dP = forge.util.createBuffer(capture.privateKeyExponent1).toHex(); - dQ = forge.util.createBuffer(capture.privateKeyExponent2).toHex(); - qInv = forge.util.createBuffer(capture.privateKeyCoefficient).toHex(); - - // set private key - return pki.setRsaPrivateKey( - new BigInteger(n, 16), - new BigInteger(e, 16), - new BigInteger(d, 16), - new BigInteger(p, 16), - new BigInteger(q, 16), - new BigInteger(dP, 16), - new BigInteger(dQ, 16), - new BigInteger(qInv, 16)); -}; - -/** - * Converts a private key to an ASN.1 RSAPrivateKey. - * - * @param key the private key. - * - * @return the ASN.1 representation of an RSAPrivateKey. - */ -pki.privateKeyToAsn1 = pki.privateKeyToRSAPrivateKey = function(key) { - // RSAPrivateKey - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // version (0 = only 2 primes, 1 multiple primes) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(0).getBytes()), - // modulus (n) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.n)), - // publicExponent (e) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.e)), - // privateExponent (d) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.d)), - // privateKeyPrime1 (p) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.p)), - // privateKeyPrime2 (q) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.q)), - // privateKeyExponent1 (dP) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.dP)), - // privateKeyExponent2 (dQ) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.dQ)), - // coefficient (qInv) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.qInv)) - ]); -}; - -/** - * Converts a public key from an ASN.1 SubjectPublicKeyInfo or RSAPublicKey. - * - * @param obj the asn1 representation of a SubjectPublicKeyInfo or RSAPublicKey. - * - * @return the public key. - */ -pki.publicKeyFromAsn1 = function(obj) { - // get SubjectPublicKeyInfo - var capture = {}; - var errors = []; - if(asn1.validate(obj, publicKeyValidator, capture, errors)) { - // get oid - var oid = asn1.derToOid(capture.publicKeyOid); - if(oid !== pki.oids.rsaEncryption) { - var error = new Error('Cannot read public key. Unknown OID.'); - error.oid = oid; - throw error; - } - obj = capture.rsaPublicKey; - } - - // get RSA params - errors = []; - if(!asn1.validate(obj, rsaPublicKeyValidator, capture, errors)) { - var error = new Error('Cannot read public key. ' + - 'ASN.1 object does not contain an RSAPublicKey.'); - error.errors = errors; - throw error; - } +UpdateAuthMethodOAuth2.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ - // FIXME: inefficient, get a BigInteger that uses byte strings - var n = forge.util.createBuffer(capture.publicKeyModulus).toHex(); - var e = forge.util.createBuffer(capture.publicKeyExponent).toHex(); +UpdateAuthMethodOAuth2.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ - // set public key - return pki.setRsaPublicKey( - new BigInteger(n, 16), - new BigInteger(e, 16)); -}; +UpdateAuthMethodOAuth2.prototype['product-type'] = undefined; +/** + * A list of additional sub claims delimiters (relevant only for SAML, OIDC, OAuth2/JWT) + * @member {Array.} subclaims-delimiters + */ +UpdateAuthMethodOAuth2.prototype['subclaims-delimiters'] = undefined; /** - * Converts a public key to an ASN.1 SubjectPublicKeyInfo. - * - * @param key the public key. - * - * @return the asn1 representation of a SubjectPublicKeyInfo. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -pki.publicKeyToAsn1 = pki.publicKeyToSubjectPublicKeyInfo = function(key) { - // SubjectPublicKeyInfo - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // AlgorithmIdentifier - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(pki.oids.rsaEncryption).getBytes()), - // parameters (null) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ]), - // subjectPublicKey - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, [ - pki.publicKeyToRSAPublicKey(key) - ]) - ]); -}; +UpdateAuthMethodOAuth2.prototype['token'] = undefined; /** - * Converts a public key to an ASN.1 RSAPublicKey. - * - * @param key the public key. - * - * @return the asn1 representation of a RSAPublicKey. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -pki.publicKeyToRSAPublicKey = function(key) { - // RSAPublicKey - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // modulus (n) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.n)), - // publicExponent (e) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - _bnToBytes(key.e)) - ]); -}; +UpdateAuthMethodOAuth2.prototype['uid-token'] = undefined; /** - * Encodes a message using PKCS#1 v1.5 padding. - * - * @param m the message to encode. - * @param key the RSA key to use. - * @param bt the block type to use, i.e. either 0x01 (for signing) or 0x02 - * (for encryption). - * - * @return the padded byte buffer. + * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier */ -function _encodePkcs1_v1_5(m, key, bt) { - var eb = forge.util.createBuffer(); - // get the length of the modulus in bytes - var k = Math.ceil(key.n.bitLength() / 8); +UpdateAuthMethodOAuth2.prototype['unique-identifier'] = undefined; +var _default = UpdateAuthMethodOAuth2; +exports["default"] = _default; - /* use PKCS#1 v1.5 padding */ - if(m.length > (k - 11)) { - var error = new Error('Message is too long for PKCS#1 v1.5 padding.'); - error.length = m.length; - error.max = k - 11; - throw error; - } +/***/ }), - /* A block type BT, a padding string PS, and the data D shall be - formatted into an octet string EB, the encryption block: +/***/ 925: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - EB = 00 || BT || PS || 00 || D +"use strict"; - The block type BT shall be a single octet indicating the structure of - the encryption block. For this version of the document it shall have - value 00, 01, or 02. For a private-key operation, the block type - shall be 00 or 01. For a public-key operation, it shall be 02. - The padding string PS shall consist of k-3-||D|| octets. For block - type 00, the octets shall have value 00; for block type 01, they - shall have value FF; and for block type 02, they shall be - pseudorandomly generated and nonzero. This makes the length of the - encryption block EB equal to k. */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // build the encryption block - eb.putByte(0x00); - eb.putByte(bt); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // create the padding - var padNum = k - 3 - m.length; - var padByte; - // private key op - if(bt === 0x00 || bt === 0x01) { - padByte = (bt === 0x00) ? 0x00 : 0xFF; - for(var i = 0; i < padNum; ++i) { - eb.putByte(padByte); - } - } else { - // public key op - // pad with random non-zero values - while(padNum > 0) { - var numZeros = 0; - var padBytes = forge.random.getBytes(padNum); - for(var i = 0; i < padNum; ++i) { - padByte = padBytes.charCodeAt(i); - if(padByte === 0) { - ++numZeros; - } else { - eb.putByte(padByte); - } - } - padNum = numZeros; - } - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // zero followed by message - eb.putByte(0x00); - eb.putBytes(m); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - return eb; -} +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Decodes a message using PKCS#1 v1.5 padding. - * - * @param em the message to decode. - * @param key the RSA key to use. - * @param pub true if the key is a public key, false if it is private. - * @param ml the message length, if specified. - * - * @return the decoded bytes. + * The UpdateAuthMethodOCI model module. + * @module model/UpdateAuthMethodOCI + * @version 3.6.3 */ -function _decodePkcs1_v1_5(em, key, pub, ml) { - // get the length of the modulus in bytes - var k = Math.ceil(key.n.bitLength() / 8); - - /* It is an error if any of the following conditions occurs: - - 1. The encryption block EB cannot be parsed unambiguously. - 2. The padding string PS consists of fewer than eight octets - or is inconsisent with the block type BT. - 3. The decryption process is a public-key operation and the block - type BT is not 00 or 01, or the decryption process is a - private-key operation and the block type is not 02. +var UpdateAuthMethodOCI = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAuthMethodOCI. + * updateAuthMethodOCI is a command that updates an auth method that will be used in the account using OCI principle and groups. + * @alias module:model/UpdateAuthMethodOCI + * @param groupOcid {Array.} A list of required groups ocids + * @param name {String} Auth Method name + * @param tenantOcid {String} The Oracle Cloud tenant ID */ + function UpdateAuthMethodOCI(groupOcid, name, tenantOcid) { + _classCallCheck(this, UpdateAuthMethodOCI); - // parse the encryption block - var eb = forge.util.createBuffer(em); - var first = eb.getByte(); - var bt = eb.getByte(); - if(first !== 0x00 || - (pub && bt !== 0x00 && bt !== 0x01) || - (!pub && bt != 0x02) || - (pub && bt === 0x00 && typeof(ml) === 'undefined')) { - throw new Error('Encryption block is invalid.'); + UpdateAuthMethodOCI.initialize(this, groupOcid, name, tenantOcid); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - var padNum = 0; - if(bt === 0x00) { - // check all padding bytes for 0x00 - padNum = k - 3 - ml; - for(var i = 0; i < padNum; ++i) { - if(eb.getByte() !== 0x00) { - throw new Error('Encryption block is invalid.'); - } - } - } else if(bt === 0x01) { - // find the first byte that isn't 0xFF, should be after all padding - padNum = 0; - while(eb.length() > 1) { - if(eb.getByte() !== 0xFF) { - --eb.read; - break; - } - ++padNum; - } - } else if(bt === 0x02) { - // look for 0x00 byte - padNum = 0; - while(eb.length() > 1) { - if(eb.getByte() === 0x00) { - --eb.read; - break; - } - ++padNum; - } - } - // zero must be 0x00 and padNum must be (k - 3 - message length) - var zero = eb.getByte(); - if(zero !== 0x00 || padNum !== (k - 3 - eb.length())) { - throw new Error('Encryption block is invalid.'); - } + _createClass(UpdateAuthMethodOCI, null, [{ + key: "initialize", + value: function initialize(obj, groupOcid, name, tenantOcid) { + obj['group-ocid'] = groupOcid; + obj['name'] = name; + obj['tenant-ocid'] = tenantOcid; + } + /** + * Constructs a UpdateAuthMethodOCI from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodOCI} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodOCI} The populated UpdateAuthMethodOCI instance. + */ - return eb.getBytes(); -} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodOCI(); -/** - * Runs the key-generation algorithm asynchronously, either in the background - * via Web Workers, or using the main thread and setImmediate. - * - * @param state the key-pair generation state. - * @param [options] options for key-pair generation: - * workerScript the worker script URL. - * workers the number of web workers (if supported) to use, - * (default: 2, -1 to use estimated cores minus one). - * workLoad the size of the work load, ie: number of possible prime - * numbers for each web worker to check per work assignment, - * (default: 100). - * @param callback(err, keypair) called once the operation completes. - */ -function _generateKeyPair(state, options, callback) { - if(typeof options === 'function') { - callback = options; - options = {}; - } - options = options || {}; + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } - var opts = { - algorithm: { - name: options.algorithm || 'PRIMEINC', - options: { - workers: options.workers || 2, - workLoad: options.workLoad || 100, - workerScript: options.workerScript - } - } - }; - if('prng' in options) { - opts.prng = options.prng; - } + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } - generate(); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - function generate() { - // find p and then q (done in series to simplify) - getPrime(state.pBits, function(err, num) { - if(err) { - return callback(err); - } - state.p = num; - if(state.q !== null) { - return finish(err, state.q); - } - getPrime(state.qBits, finish); - }); - } + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } - function getPrime(bits, callback) { - forge.prime.generateProbablePrime(bits, opts, callback); - } + if (data.hasOwnProperty('group-ocid')) { + obj['group-ocid'] = _ApiClient["default"].convertToType(data['group-ocid'], ['String']); + } - function finish(err, num) { - if(err) { - return callback(err); - } + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } - // set q - state.q = num; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - // ensure p is larger than q (swap them if not) - if(state.p.compareTo(state.q) < 0) { - var tmp = state.p; - state.p = state.q; - state.q = tmp; - } + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } - // ensure p is coprime with e - if(state.p.subtract(BigInteger.ONE).gcd(state.e) - .compareTo(BigInteger.ONE) !== 0) { - state.p = null; - generate(); - return; - } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - // ensure q is coprime with e - if(state.q.subtract(BigInteger.ONE).gcd(state.e) - .compareTo(BigInteger.ONE) !== 0) { - state.q = null; - getPrime(state.qBits, finish); - return; - } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - // compute phi: (p - 1)(q - 1) (Euler's totient function) - state.p1 = state.p.subtract(BigInteger.ONE); - state.q1 = state.q.subtract(BigInteger.ONE); - state.phi = state.p1.multiply(state.q1); + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } - // ensure e and phi are coprime - if(state.phi.gcd(state.e).compareTo(BigInteger.ONE) !== 0) { - // phi and e aren't coprime, so generate a new p and q - state.p = state.q = null; - generate(); - return; - } + if (data.hasOwnProperty('tenant-ocid')) { + obj['tenant-ocid'] = _ApiClient["default"].convertToType(data['tenant-ocid'], 'String'); + } - // create n, ensure n is has the right number of bits - state.n = state.p.multiply(state.q); - if(state.n.bitLength() !== state.bits) { - // failed, get new q - state.q = null; - getPrime(state.qBits, finish); - return; - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - // set keys - var d = state.e.modInverse(state.phi); - state.keys = { - privateKey: pki.rsa.setPrivateKey( - state.n, state.e, d, state.p, state.q, - d.mod(state.p1), d.mod(state.q1), - state.q.modInverse(state.p)), - publicKey: pki.rsa.setPublicKey(state.n, state.e) - }; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - callback(null, state.keys); - } -} + return obj; + } + }]); + return UpdateAuthMethodOCI; +}(); /** - * Converts a positive BigInteger into 2's-complement big-endian bytes. - * - * @param b the big integer to convert. - * - * @return the bytes. + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -function _bnToBytes(b) { - // prepend 0x00 if first byte >= 0x80 - var hex = b.toString(16); - if(hex[0] >= '8') { - hex = '00' + hex; - } - var bytes = forge.util.hexToBytes(hex); - // ensure integer is minimally-encoded - if(bytes.length > 1 && - // leading 0x00 for positive integer - ((bytes.charCodeAt(0) === 0 && - (bytes.charCodeAt(1) & 0x80) === 0) || - // leading 0xFF for negative integer - (bytes.charCodeAt(0) === 0xFF && - (bytes.charCodeAt(1) & 0x80) === 0x80))) { - return bytes.substr(1); - } - return bytes; -} +UpdateAuthMethodOCI.prototype['access-expires'] = 0; /** - * Returns the required number of Miller-Rabin tests to generate a - * prime with an error probability of (1/2)^80. - * - * See Handbook of Applied Cryptography Chapter 4, Table 4.4. - * - * @param bits the bit size. - * - * @return the required number of iterations. + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips */ -function _getMillerRabinTests(bits) { - if(bits <= 100) return 27; - if(bits <= 150) return 18; - if(bits <= 200) return 15; - if(bits <= 250) return 12; - if(bits <= 300) return 9; - if(bits <= 350) return 8; - if(bits <= 400) return 7; - if(bits <= 500) return 6; - if(bits <= 600) return 5; - if(bits <= 800) return 4; - if(bits <= 1250) return 3; - return 2; -} +UpdateAuthMethodOCI.prototype['bound-ips'] = undefined; /** - * Performs feature detection on the Node crypto interface. - * - * @param fn the feature (function) to detect. - * - * @return true if detected, false if not. + * Auth Method description + * @member {String} description */ -function _detectNodeCrypto(fn) { - return forge.util.isNodejs && typeof _crypto[fn] === 'function'; -} +UpdateAuthMethodOCI.prototype['description'] = undefined; /** - * Performs feature detection on the SubtleCrypto interface. - * - * @param fn the feature (function) to detect. - * - * @return true if detected, false if not. + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims */ -function _detectSubtleCrypto(fn) { - return (typeof util.globalScope !== 'undefined' && - typeof util.globalScope.crypto === 'object' && - typeof util.globalScope.crypto.subtle === 'object' && - typeof util.globalScope.crypto.subtle[fn] === 'function'); -} +UpdateAuthMethodOCI.prototype['force-sub-claims'] = undefined; /** - * Performs feature detection on the deprecated Microsoft Internet Explorer - * outdated SubtleCrypto interface. This function should only be used after - * checking for the modern, standard SubtleCrypto interface. - * - * @param fn the feature (function) to detect. - * - * @return true if detected, false if not. + * A list of required groups ocids + * @member {Array.} group-ocid */ -function _detectSubtleMsCrypto(fn) { - return (typeof util.globalScope !== 'undefined' && - typeof util.globalScope.msCrypto === 'object' && - typeof util.globalScope.msCrypto.subtle === 'object' && - typeof util.globalScope.msCrypto.subtle[fn] === 'function'); -} - -function _intToUint8Array(x) { - var bytes = forge.util.hexToBytes(x.toString(16)); - var buffer = new Uint8Array(bytes.length); - for(var i = 0; i < bytes.length; ++i) { - buffer[i] = bytes.charCodeAt(i); - } - return buffer; -} - -function _privateKeyFromJwk(jwk) { - if(jwk.kty !== 'RSA') { - throw new Error( - 'Unsupported key algorithm "' + jwk.kty + '"; algorithm must be "RSA".'); - } - return pki.setRsaPrivateKey( - _base64ToBigInt(jwk.n), - _base64ToBigInt(jwk.e), - _base64ToBigInt(jwk.d), - _base64ToBigInt(jwk.p), - _base64ToBigInt(jwk.q), - _base64ToBigInt(jwk.dp), - _base64ToBigInt(jwk.dq), - _base64ToBigInt(jwk.qi)); -} - -function _publicKeyFromJwk(jwk) { - if(jwk.kty !== 'RSA') { - throw new Error('Key algorithm must be "RSA".'); - } - return pki.setRsaPublicKey( - _base64ToBigInt(jwk.n), - _base64ToBigInt(jwk.e)); -} - -function _base64ToBigInt(b64) { - return new BigInteger(forge.util.bytesToHex(forge.util.decode64(b64)), 16); -} - - -/***/ }), - -/***/ 96485: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateAuthMethodOCI.prototype['group-ocid'] = undefined; /** - * Secure Hash Algorithm with 160-bit digest (SHA-1) implementation. - * - * @author Dave Longley - * - * Copyright (c) 2010-2015 Digital Bazaar, Inc. + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(46777); -__nccwpck_require__(97456); - -var sha1 = module.exports = forge.sha1 = forge.sha1 || {}; -forge.md.sha1 = forge.md.algorithms.sha1 = sha1; +UpdateAuthMethodOCI.prototype['gw-bound-ips'] = undefined; /** - * Creates a SHA-1 message digest object. - * - * @return a message digest object. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -sha1.create = function() { - // do initialization as necessary - if(!_initialized) { - _init(); - } - - // SHA-1 state contains five 32-bit integers - var _state = null; - - // input buffer - var _input = forge.util.createBuffer(); - - // used for word storage - var _w = new Array(80); - - // message digest object - var md = { - algorithm: 'sha1', - blockLength: 64, - digestLength: 20, - // 56-bit length of message so far (does not including padding) - messageLength: 0, - // true message length - fullMessageLength: null, - // size of message length in bytes - messageLengthSize: 8 - }; - - /** - * Starts the digest. - * - * @return this digest object. - */ - md.start = function() { - // up to 56-bit message length for convenience - md.messageLength = 0; - - // full message length (set md.messageLength64 for backwards-compatibility) - md.fullMessageLength = md.messageLength64 = []; - var int32s = md.messageLengthSize / 4; - for(var i = 0; i < int32s; ++i) { - md.fullMessageLength.push(0); - } - _input = forge.util.createBuffer(); - _state = { - h0: 0x67452301, - h1: 0xEFCDAB89, - h2: 0x98BADCFE, - h3: 0x10325476, - h4: 0xC3D2E1F0 - }; - return md; - }; - // start digest automatically for first time - md.start(); - - /** - * Updates the digest with the given message input. The given input can - * treated as raw input (no encoding will be applied) or an encoding of - * 'utf8' maybe given to encode the input using UTF-8. - * - * @param msg the message input to update with. - * @param encoding the encoding to use (default: 'raw', other: 'utf8'). - * - * @return this digest object. - */ - md.update = function(msg, encoding) { - if(encoding === 'utf8') { - msg = forge.util.encodeUtf8(msg); - } - - // update message length - var len = msg.length; - md.messageLength += len; - len = [(len / 0x100000000) >>> 0, len >>> 0]; - for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { - md.fullMessageLength[i] += len[1]; - len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); - md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; - len[0] = ((len[1] / 0x100000000) >>> 0); - } - - // add bytes to input buffer - _input.putBytes(msg); - - // process bytes - _update(_state, _w, _input); - - // compact input buffer every 2K or if empty - if(_input.read > 2048 || _input.length() === 0) { - _input.compact(); - } - - return md; - }; - - /** - * Produces the digest. - * - * @return a byte buffer containing the digest value. - */ - md.digest = function() { - /* Note: Here we copy the remaining bytes in the input buffer and - add the appropriate SHA-1 padding. Then we do the final update - on a copy of the state so that if the user wants to get - intermediate digests they can do so. */ - - /* Determine the number of bytes that must be added to the message - to ensure its length is congruent to 448 mod 512. In other words, - the data to be digested must be a multiple of 512 bits (or 128 bytes). - This data includes the message, some padding, and the length of the - message. Since the length of the message will be encoded as 8 bytes (64 - bits), that means that the last segment of the data must have 56 bytes - (448 bits) of message and padding. Therefore, the length of the message - plus the padding must be congruent to 448 mod 512 because - 512 - 128 = 448. - - In order to fill up the message length it must be filled with - padding that begins with 1 bit followed by all 0 bits. Padding - must *always* be present, so if the message length is already - congruent to 448 mod 512, then 512 padding bits must be added. */ - - var finalBlock = forge.util.createBuffer(); - finalBlock.putBytes(_input.bytes()); - - // compute remaining size to be digested (include message length size) - var remaining = ( - md.fullMessageLength[md.fullMessageLength.length - 1] + - md.messageLengthSize); - - // add padding for overflow blockSize - overflow - // _padding starts with 1 byte with first bit is set (byte value 128), then - // there may be up to (blockSize - 1) other pad bytes - var overflow = remaining & (md.blockLength - 1); - finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); - - // serialize message length in bits in big-endian order; since length - // is stored in bytes we multiply by 8 and add carry from next int - var next, carry; - var bits = md.fullMessageLength[0] * 8; - for(var i = 0; i < md.fullMessageLength.length - 1; ++i) { - next = md.fullMessageLength[i + 1] * 8; - carry = (next / 0x100000000) >>> 0; - bits += carry; - finalBlock.putInt32(bits >>> 0); - bits = next >>> 0; - } - finalBlock.putInt32(bits); - - var s2 = { - h0: _state.h0, - h1: _state.h1, - h2: _state.h2, - h3: _state.h3, - h4: _state.h4 - }; - _update(s2, _w, finalBlock); - var rval = forge.util.createBuffer(); - rval.putInt32(s2.h0); - rval.putInt32(s2.h1); - rval.putInt32(s2.h2); - rval.putInt32(s2.h3); - rval.putInt32(s2.h4); - return rval; - }; - - return md; -}; - -// sha-1 padding bytes not initialized yet -var _padding = null; -var _initialized = false; - -/** - * Initializes the constant tables. - */ -function _init() { - // create padding - _padding = String.fromCharCode(128); - _padding += forge.util.fillString(String.fromCharCode(0x00), 64); - - // now initialized - _initialized = true; -} - -/** - * Updates a SHA-1 state with the given byte buffer. - * - * @param s the SHA-1 state to update. - * @param w the array to use to store words. - * @param bytes the byte buffer to update with. - */ -function _update(s, w, bytes) { - // consume 512 bit (64 byte) chunks - var t, a, b, c, d, e, f, i; - var len = bytes.length(); - while(len >= 64) { - // the w array will be populated with sixteen 32-bit big-endian words - // and then extended into 80 32-bit words according to SHA-1 algorithm - // and for 32-79 using Max Locktyukhin's optimization - - // initialize hash value for this chunk - a = s.h0; - b = s.h1; - c = s.h2; - d = s.h3; - e = s.h4; - - // round 1 - for(i = 0; i < 16; ++i) { - t = bytes.getInt32(); - w[i] = t; - f = d ^ (b & (c ^ d)); - t = ((a << 5) | (a >>> 27)) + f + e + 0x5A827999 + t; - e = d; - d = c; - // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug - c = ((b << 30) | (b >>> 2)) >>> 0; - b = a; - a = t; - } - for(; i < 20; ++i) { - t = (w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16]); - t = (t << 1) | (t >>> 31); - w[i] = t; - f = d ^ (b & (c ^ d)); - t = ((a << 5) | (a >>> 27)) + f + e + 0x5A827999 + t; - e = d; - d = c; - // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug - c = ((b << 30) | (b >>> 2)) >>> 0; - b = a; - a = t; - } - // round 2 - for(; i < 32; ++i) { - t = (w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16]); - t = (t << 1) | (t >>> 31); - w[i] = t; - f = b ^ c ^ d; - t = ((a << 5) | (a >>> 27)) + f + e + 0x6ED9EBA1 + t; - e = d; - d = c; - // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug - c = ((b << 30) | (b >>> 2)) >>> 0; - b = a; - a = t; - } - for(; i < 40; ++i) { - t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]); - t = (t << 2) | (t >>> 30); - w[i] = t; - f = b ^ c ^ d; - t = ((a << 5) | (a >>> 27)) + f + e + 0x6ED9EBA1 + t; - e = d; - d = c; - // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug - c = ((b << 30) | (b >>> 2)) >>> 0; - b = a; - a = t; - } - // round 3 - for(; i < 60; ++i) { - t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]); - t = (t << 2) | (t >>> 30); - w[i] = t; - f = (b & c) | (d & (b ^ c)); - t = ((a << 5) | (a >>> 27)) + f + e + 0x8F1BBCDC + t; - e = d; - d = c; - // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug - c = ((b << 30) | (b >>> 2)) >>> 0; - b = a; - a = t; - } - // round 4 - for(; i < 80; ++i) { - t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]); - t = (t << 2) | (t >>> 30); - w[i] = t; - f = b ^ c ^ d; - t = ((a << 5) | (a >>> 27)) + f + e + 0xCA62C1D6 + t; - e = d; - d = c; - // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug - c = ((b << 30) | (b >>> 2)) >>> 0; - b = a; - a = t; - } - - // update hash state - s.h0 = (s.h0 + a) | 0; - s.h1 = (s.h1 + b) | 0; - s.h2 = (s.h2 + c) | 0; - s.h3 = (s.h3 + d) | 0; - s.h4 = (s.h4 + e) | 0; - - len -= 64; - } -} - - -/***/ }), - -/***/ 70855: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateAuthMethodOCI.prototype['json'] = false; /** - * Secure Hash Algorithm with 256-bit digest (SHA-256) implementation. - * - * See FIPS 180-2 for details. - * - * @author Dave Longley - * - * Copyright (c) 2010-2015 Digital Bazaar, Inc. + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(46777); -__nccwpck_require__(97456); - -var sha256 = module.exports = forge.sha256 = forge.sha256 || {}; -forge.md.sha256 = forge.md.algorithms.sha256 = sha256; +UpdateAuthMethodOCI.prototype['jwt-ttl'] = 0; /** - * Creates a SHA-256 message digest object. - * - * @return a message digest object. + * Auth Method name + * @member {String} name */ -sha256.create = function() { - // do initialization as necessary - if(!_initialized) { - _init(); - } - - // SHA-256 state contains eight 32-bit integers - var _state = null; - - // input buffer - var _input = forge.util.createBuffer(); - - // used for word storage - var _w = new Array(64); - - // message digest object - var md = { - algorithm: 'sha256', - blockLength: 64, - digestLength: 32, - // 56-bit length of message so far (does not including padding) - messageLength: 0, - // true message length - fullMessageLength: null, - // size of message length in bytes - messageLengthSize: 8 - }; - - /** - * Starts the digest. - * - * @return this digest object. - */ - md.start = function() { - // up to 56-bit message length for convenience - md.messageLength = 0; - - // full message length (set md.messageLength64 for backwards-compatibility) - md.fullMessageLength = md.messageLength64 = []; - var int32s = md.messageLengthSize / 4; - for(var i = 0; i < int32s; ++i) { - md.fullMessageLength.push(0); - } - _input = forge.util.createBuffer(); - _state = { - h0: 0x6A09E667, - h1: 0xBB67AE85, - h2: 0x3C6EF372, - h3: 0xA54FF53A, - h4: 0x510E527F, - h5: 0x9B05688C, - h6: 0x1F83D9AB, - h7: 0x5BE0CD19 - }; - return md; - }; - // start digest automatically for first time - md.start(); - - /** - * Updates the digest with the given message input. The given input can - * treated as raw input (no encoding will be applied) or an encoding of - * 'utf8' maybe given to encode the input using UTF-8. - * - * @param msg the message input to update with. - * @param encoding the encoding to use (default: 'raw', other: 'utf8'). - * - * @return this digest object. - */ - md.update = function(msg, encoding) { - if(encoding === 'utf8') { - msg = forge.util.encodeUtf8(msg); - } - - // update message length - var len = msg.length; - md.messageLength += len; - len = [(len / 0x100000000) >>> 0, len >>> 0]; - for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { - md.fullMessageLength[i] += len[1]; - len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); - md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; - len[0] = ((len[1] / 0x100000000) >>> 0); - } - - // add bytes to input buffer - _input.putBytes(msg); - - // process bytes - _update(_state, _w, _input); - - // compact input buffer every 2K or if empty - if(_input.read > 2048 || _input.length() === 0) { - _input.compact(); - } - - return md; - }; - - /** - * Produces the digest. - * - * @return a byte buffer containing the digest value. - */ - md.digest = function() { - /* Note: Here we copy the remaining bytes in the input buffer and - add the appropriate SHA-256 padding. Then we do the final update - on a copy of the state so that if the user wants to get - intermediate digests they can do so. */ - - /* Determine the number of bytes that must be added to the message - to ensure its length is congruent to 448 mod 512. In other words, - the data to be digested must be a multiple of 512 bits (or 128 bytes). - This data includes the message, some padding, and the length of the - message. Since the length of the message will be encoded as 8 bytes (64 - bits), that means that the last segment of the data must have 56 bytes - (448 bits) of message and padding. Therefore, the length of the message - plus the padding must be congruent to 448 mod 512 because - 512 - 128 = 448. - - In order to fill up the message length it must be filled with - padding that begins with 1 bit followed by all 0 bits. Padding - must *always* be present, so if the message length is already - congruent to 448 mod 512, then 512 padding bits must be added. */ - - var finalBlock = forge.util.createBuffer(); - finalBlock.putBytes(_input.bytes()); - - // compute remaining size to be digested (include message length size) - var remaining = ( - md.fullMessageLength[md.fullMessageLength.length - 1] + - md.messageLengthSize); - - // add padding for overflow blockSize - overflow - // _padding starts with 1 byte with first bit is set (byte value 128), then - // there may be up to (blockSize - 1) other pad bytes - var overflow = remaining & (md.blockLength - 1); - finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); - - // serialize message length in bits in big-endian order; since length - // is stored in bytes we multiply by 8 and add carry from next int - var next, carry; - var bits = md.fullMessageLength[0] * 8; - for(var i = 0; i < md.fullMessageLength.length - 1; ++i) { - next = md.fullMessageLength[i + 1] * 8; - carry = (next / 0x100000000) >>> 0; - bits += carry; - finalBlock.putInt32(bits >>> 0); - bits = next >>> 0; - } - finalBlock.putInt32(bits); - - var s2 = { - h0: _state.h0, - h1: _state.h1, - h2: _state.h2, - h3: _state.h3, - h4: _state.h4, - h5: _state.h5, - h6: _state.h6, - h7: _state.h7 - }; - _update(s2, _w, finalBlock); - var rval = forge.util.createBuffer(); - rval.putInt32(s2.h0); - rval.putInt32(s2.h1); - rval.putInt32(s2.h2); - rval.putInt32(s2.h3); - rval.putInt32(s2.h4); - rval.putInt32(s2.h5); - rval.putInt32(s2.h6); - rval.putInt32(s2.h7); - return rval; - }; - return md; -}; - -// sha-256 padding bytes not initialized yet -var _padding = null; -var _initialized = false; - -// table of constants -var _k = null; - -/** - * Initializes the constant tables. - */ -function _init() { - // create padding - _padding = String.fromCharCode(128); - _padding += forge.util.fillString(String.fromCharCode(0x00), 64); - - // create K table for SHA-256 - _k = [ - 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, - 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, - 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, - 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, - 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, - 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, - 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, - 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, - 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, - 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, - 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, - 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, - 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, - 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, - 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, - 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2]; - - // now initialized - _initialized = true; -} - -/** - * Updates a SHA-256 state with the given byte buffer. - * - * @param s the SHA-256 state to update. - * @param w the array to use to store words. - * @param bytes the byte buffer to update with. - */ -function _update(s, w, bytes) { - // consume 512 bit (64 byte) chunks - var t1, t2, s0, s1, ch, maj, i, a, b, c, d, e, f, g, h; - var len = bytes.length(); - while(len >= 64) { - // the w array will be populated with sixteen 32-bit big-endian words - // and then extended into 64 32-bit words according to SHA-256 - for(i = 0; i < 16; ++i) { - w[i] = bytes.getInt32(); - } - for(; i < 64; ++i) { - // XOR word 2 words ago rot right 17, rot right 19, shft right 10 - t1 = w[i - 2]; - t1 = - ((t1 >>> 17) | (t1 << 15)) ^ - ((t1 >>> 19) | (t1 << 13)) ^ - (t1 >>> 10); - // XOR word 15 words ago rot right 7, rot right 18, shft right 3 - t2 = w[i - 15]; - t2 = - ((t2 >>> 7) | (t2 << 25)) ^ - ((t2 >>> 18) | (t2 << 14)) ^ - (t2 >>> 3); - // sum(t1, word 7 ago, t2, word 16 ago) modulo 2^32 - w[i] = (t1 + w[i - 7] + t2 + w[i - 16]) | 0; - } - - // initialize hash value for this chunk - a = s.h0; - b = s.h1; - c = s.h2; - d = s.h3; - e = s.h4; - f = s.h5; - g = s.h6; - h = s.h7; - - // round function - for(i = 0; i < 64; ++i) { - // Sum1(e) - s1 = - ((e >>> 6) | (e << 26)) ^ - ((e >>> 11) | (e << 21)) ^ - ((e >>> 25) | (e << 7)); - // Ch(e, f, g) (optimized the same way as SHA-1) - ch = g ^ (e & (f ^ g)); - // Sum0(a) - s0 = - ((a >>> 2) | (a << 30)) ^ - ((a >>> 13) | (a << 19)) ^ - ((a >>> 22) | (a << 10)); - // Maj(a, b, c) (optimized the same way as SHA-1) - maj = (a & b) | (c & (a ^ b)); - - // main algorithm - t1 = h + s1 + ch + _k[i] + w[i]; - t2 = s0 + maj; - h = g; - g = f; - f = e; - // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug - // can't truncate with `| 0` - e = (d + t1) >>> 0; - d = c; - c = b; - b = a; - // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug - // can't truncate with `| 0` - a = (t1 + t2) >>> 0; - } - - // update hash state - s.h0 = (s.h0 + a) | 0; - s.h1 = (s.h1 + b) | 0; - s.h2 = (s.h2 + c) | 0; - s.h3 = (s.h3 + d) | 0; - s.h4 = (s.h4 + e) | 0; - s.h5 = (s.h5 + f) | 0; - s.h6 = (s.h6 + g) | 0; - s.h7 = (s.h7 + h) | 0; - len -= 64; - } -} - - -/***/ }), - -/***/ 12734: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateAuthMethodOCI.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ +UpdateAuthMethodOCI.prototype['new-name'] = undefined; /** - * Secure Hash Algorithm with a 1024-bit block size implementation. - * - * This includes: SHA-512, SHA-384, SHA-512/224, and SHA-512/256. For - * SHA-256 (block size 512 bits), see sha256.js. - * - * See FIPS 180-4 for details. - * - * @author Dave Longley - * - * Copyright (c) 2014-2015 Digital Bazaar, Inc. + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(46777); -__nccwpck_require__(97456); -var sha512 = module.exports = forge.sha512 = forge.sha512 || {}; +UpdateAuthMethodOCI.prototype['product-type'] = undefined; +/** + * The Oracle Cloud tenant ID + * @member {String} tenant-ocid + */ -// SHA-512 -forge.md.sha512 = forge.md.algorithms.sha512 = sha512; +UpdateAuthMethodOCI.prototype['tenant-ocid'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -// SHA-384 -var sha384 = forge.sha384 = forge.sha512.sha384 = forge.sha512.sha384 || {}; -sha384.create = function() { - return sha512.create('SHA-384'); -}; -forge.md.sha384 = forge.md.algorithms.sha384 = sha384; +UpdateAuthMethodOCI.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -// SHA-512/256 -forge.sha512.sha256 = forge.sha512.sha256 || { - create: function() { - return sha512.create('SHA-512/256'); - } -}; -forge.md['sha512/256'] = forge.md.algorithms['sha512/256'] = - forge.sha512.sha256; +UpdateAuthMethodOCI.prototype['uid-token'] = undefined; +var _default = UpdateAuthMethodOCI; +exports["default"] = _default; -// SHA-512/224 -forge.sha512.sha224 = forge.sha512.sha224 || { - create: function() { - return sha512.create('SHA-512/224'); - } -}; -forge.md['sha512/224'] = forge.md.algorithms['sha512/224'] = - forge.sha512.sha224; +/***/ }), -/** - * Creates a SHA-2 message digest object. - * - * @param algorithm the algorithm to use (SHA-512, SHA-384, SHA-512/224, - * SHA-512/256). - * - * @return a message digest object. - */ -sha512.create = function(algorithm) { - // do initialization as necessary - if(!_initialized) { - _init(); - } +/***/ 16280: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if(typeof algorithm === 'undefined') { - algorithm = 'SHA-512'; - } +"use strict"; - if(!(algorithm in _states)) { - throw new Error('Invalid SHA-512 algorithm: ' + algorithm); - } - // SHA-512 state contains eight 64-bit integers (each as two 32-bit ints) - var _state = _states[algorithm]; - var _h = null; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // input buffer - var _input = forge.util.createBuffer(); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // used for 64-bit word storage - var _w = new Array(80); - for(var wi = 0; wi < 80; ++wi) { - _w[wi] = new Array(2); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // determine digest length by algorithm name (default) - var digestLength = 64; - switch(algorithm) { - case 'SHA-384': - digestLength = 48; - break; - case 'SHA-512/256': - digestLength = 32; - break; - case 'SHA-512/224': - digestLength = 28; - break; - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // message digest object - var md = { - // SHA-512 => sha512 - algorithm: algorithm.replace('-', '').toLowerCase(), - blockLength: 128, - digestLength: digestLength, - // 56-bit length of message so far (does not including padding) - messageLength: 0, - // true message length - fullMessageLength: null, - // size of message length in bytes - messageLengthSize: 16 - }; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +/** + * The UpdateAuthMethodOCIOutput model module. + * @module model/UpdateAuthMethodOCIOutput + * @version 3.6.3 + */ +var UpdateAuthMethodOCIOutput = /*#__PURE__*/function () { /** - * Starts the digest. - * - * @return this digest object. + * Constructs a new UpdateAuthMethodOCIOutput. + * @alias module:model/UpdateAuthMethodOCIOutput */ - md.start = function() { - // up to 56-bit message length for convenience - md.messageLength = 0; - - // full message length (set md.messageLength128 for backwards-compatibility) - md.fullMessageLength = md.messageLength128 = []; - var int32s = md.messageLengthSize / 4; - for(var i = 0; i < int32s; ++i) { - md.fullMessageLength.push(0); - } - _input = forge.util.createBuffer(); - _h = new Array(_state.length); - for(var i = 0; i < _state.length; ++i) { - _h[i] = _state[i].slice(0); - } - return md; - }; - // start digest automatically for first time - md.start(); + function UpdateAuthMethodOCIOutput() { + _classCallCheck(this, UpdateAuthMethodOCIOutput); + UpdateAuthMethodOCIOutput.initialize(this); + } /** - * Updates the digest with the given message input. The given input can - * treated as raw input (no encoding will be applied) or an encoding of - * 'utf8' maybe given to encode the input using UTF-8. - * - * @param msg the message input to update with. - * @param encoding the encoding to use (default: 'raw', other: 'utf8'). - * - * @return this digest object. + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. */ - md.update = function(msg, encoding) { - if(encoding === 'utf8') { - msg = forge.util.encodeUtf8(msg); - } - // update message length - var len = msg.length; - md.messageLength += len; - len = [(len / 0x100000000) >>> 0, len >>> 0]; - for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { - md.fullMessageLength[i] += len[1]; - len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); - md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; - len[0] = ((len[1] / 0x100000000) >>> 0); - } - // add bytes to input buffer - _input.putBytes(msg); + _createClass(UpdateAuthMethodOCIOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateAuthMethodOCIOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodOCIOutput} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodOCIOutput} The populated UpdateAuthMethodOCIOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodOCIOutput(); - // process bytes - _update(_h, _w, _input); + if (data.hasOwnProperty('access_id')) { + obj['access_id'] = _ApiClient["default"].convertToType(data['access_id'], 'String'); + } + } - // compact input buffer every 2K or if empty - if(_input.read > 2048 || _input.length() === 0) { - _input.compact(); + return obj; } + }]); - return md; - }; + return UpdateAuthMethodOCIOutput; +}(); +/** + * @member {String} access_id + */ - /** - * Produces the digest. - * - * @return a byte buffer containing the digest value. - */ - md.digest = function() { - /* Note: Here we copy the remaining bytes in the input buffer and - add the appropriate SHA-512 padding. Then we do the final update - on a copy of the state so that if the user wants to get - intermediate digests they can do so. */ - - /* Determine the number of bytes that must be added to the message - to ensure its length is congruent to 896 mod 1024. In other words, - the data to be digested must be a multiple of 1024 bits (or 128 bytes). - This data includes the message, some padding, and the length of the - message. Since the length of the message will be encoded as 16 bytes (128 - bits), that means that the last segment of the data must have 112 bytes - (896 bits) of message and padding. Therefore, the length of the message - plus the padding must be congruent to 896 mod 1024 because - 1024 - 128 = 896. - - In order to fill up the message length it must be filled with - padding that begins with 1 bit followed by all 0 bits. Padding - must *always* be present, so if the message length is already - congruent to 896 mod 1024, then 1024 padding bits must be added. */ - - var finalBlock = forge.util.createBuffer(); - finalBlock.putBytes(_input.bytes()); - - // compute remaining size to be digested (include message length size) - var remaining = ( - md.fullMessageLength[md.fullMessageLength.length - 1] + - md.messageLengthSize); - - // add padding for overflow blockSize - overflow - // _padding starts with 1 byte with first bit is set (byte value 128), then - // there may be up to (blockSize - 1) other pad bytes - var overflow = remaining & (md.blockLength - 1); - finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); - - // serialize message length in bits in big-endian order; since length - // is stored in bytes we multiply by 8 and add carry from next int - var next, carry; - var bits = md.fullMessageLength[0] * 8; - for(var i = 0; i < md.fullMessageLength.length - 1; ++i) { - next = md.fullMessageLength[i + 1] * 8; - carry = (next / 0x100000000) >>> 0; - bits += carry; - finalBlock.putInt32(bits >>> 0); - bits = next >>> 0; - } - finalBlock.putInt32(bits); - - var h = new Array(_h.length); - for(var i = 0; i < _h.length; ++i) { - h[i] = _h[i].slice(0); - } - _update(h, _w, finalBlock); - var rval = forge.util.createBuffer(); - var hlen; - if(algorithm === 'SHA-512') { - hlen = h.length; - } else if(algorithm === 'SHA-384') { - hlen = h.length - 2; - } else { - hlen = h.length - 4; - } - for(var i = 0; i < hlen; ++i) { - rval.putInt32(h[i][0]); - if(i !== hlen - 1 || algorithm !== 'SHA-512/224') { - rval.putInt32(h[i][1]); - } - } - return rval; - }; - return md; -}; - -// sha-512 padding bytes not initialized yet -var _padding = null; -var _initialized = false; - -// table of constants -var _k = null; - -// initial hash states -var _states = null; - -/** - * Initializes the constant tables. - */ -function _init() { - // create padding - _padding = String.fromCharCode(128); - _padding += forge.util.fillString(String.fromCharCode(0x00), 128); - - // create K table for SHA-512 - _k = [ - [0x428a2f98, 0xd728ae22], [0x71374491, 0x23ef65cd], - [0xb5c0fbcf, 0xec4d3b2f], [0xe9b5dba5, 0x8189dbbc], - [0x3956c25b, 0xf348b538], [0x59f111f1, 0xb605d019], - [0x923f82a4, 0xaf194f9b], [0xab1c5ed5, 0xda6d8118], - [0xd807aa98, 0xa3030242], [0x12835b01, 0x45706fbe], - [0x243185be, 0x4ee4b28c], [0x550c7dc3, 0xd5ffb4e2], - [0x72be5d74, 0xf27b896f], [0x80deb1fe, 0x3b1696b1], - [0x9bdc06a7, 0x25c71235], [0xc19bf174, 0xcf692694], - [0xe49b69c1, 0x9ef14ad2], [0xefbe4786, 0x384f25e3], - [0x0fc19dc6, 0x8b8cd5b5], [0x240ca1cc, 0x77ac9c65], - [0x2de92c6f, 0x592b0275], [0x4a7484aa, 0x6ea6e483], - [0x5cb0a9dc, 0xbd41fbd4], [0x76f988da, 0x831153b5], - [0x983e5152, 0xee66dfab], [0xa831c66d, 0x2db43210], - [0xb00327c8, 0x98fb213f], [0xbf597fc7, 0xbeef0ee4], - [0xc6e00bf3, 0x3da88fc2], [0xd5a79147, 0x930aa725], - [0x06ca6351, 0xe003826f], [0x14292967, 0x0a0e6e70], - [0x27b70a85, 0x46d22ffc], [0x2e1b2138, 0x5c26c926], - [0x4d2c6dfc, 0x5ac42aed], [0x53380d13, 0x9d95b3df], - [0x650a7354, 0x8baf63de], [0x766a0abb, 0x3c77b2a8], - [0x81c2c92e, 0x47edaee6], [0x92722c85, 0x1482353b], - [0xa2bfe8a1, 0x4cf10364], [0xa81a664b, 0xbc423001], - [0xc24b8b70, 0xd0f89791], [0xc76c51a3, 0x0654be30], - [0xd192e819, 0xd6ef5218], [0xd6990624, 0x5565a910], - [0xf40e3585, 0x5771202a], [0x106aa070, 0x32bbd1b8], - [0x19a4c116, 0xb8d2d0c8], [0x1e376c08, 0x5141ab53], - [0x2748774c, 0xdf8eeb99], [0x34b0bcb5, 0xe19b48a8], - [0x391c0cb3, 0xc5c95a63], [0x4ed8aa4a, 0xe3418acb], - [0x5b9cca4f, 0x7763e373], [0x682e6ff3, 0xd6b2b8a3], - [0x748f82ee, 0x5defb2fc], [0x78a5636f, 0x43172f60], - [0x84c87814, 0xa1f0ab72], [0x8cc70208, 0x1a6439ec], - [0x90befffa, 0x23631e28], [0xa4506ceb, 0xde82bde9], - [0xbef9a3f7, 0xb2c67915], [0xc67178f2, 0xe372532b], - [0xca273ece, 0xea26619c], [0xd186b8c7, 0x21c0c207], - [0xeada7dd6, 0xcde0eb1e], [0xf57d4f7f, 0xee6ed178], - [0x06f067aa, 0x72176fba], [0x0a637dc5, 0xa2c898a6], - [0x113f9804, 0xbef90dae], [0x1b710b35, 0x131c471b], - [0x28db77f5, 0x23047d84], [0x32caab7b, 0x40c72493], - [0x3c9ebe0a, 0x15c9bebc], [0x431d67c4, 0x9c100d4c], - [0x4cc5d4be, 0xcb3e42b6], [0x597f299c, 0xfc657e2a], - [0x5fcb6fab, 0x3ad6faec], [0x6c44198c, 0x4a475817] - ]; +UpdateAuthMethodOCIOutput.prototype['access_id'] = undefined; +var _default = UpdateAuthMethodOCIOutput; +exports["default"] = _default; - // initial hash states - _states = {}; - _states['SHA-512'] = [ - [0x6a09e667, 0xf3bcc908], - [0xbb67ae85, 0x84caa73b], - [0x3c6ef372, 0xfe94f82b], - [0xa54ff53a, 0x5f1d36f1], - [0x510e527f, 0xade682d1], - [0x9b05688c, 0x2b3e6c1f], - [0x1f83d9ab, 0xfb41bd6b], - [0x5be0cd19, 0x137e2179] - ]; - _states['SHA-384'] = [ - [0xcbbb9d5d, 0xc1059ed8], - [0x629a292a, 0x367cd507], - [0x9159015a, 0x3070dd17], - [0x152fecd8, 0xf70e5939], - [0x67332667, 0xffc00b31], - [0x8eb44a87, 0x68581511], - [0xdb0c2e0d, 0x64f98fa7], - [0x47b5481d, 0xbefa4fa4] - ]; - _states['SHA-512/256'] = [ - [0x22312194, 0xFC2BF72C], - [0x9F555FA3, 0xC84C64C2], - [0x2393B86B, 0x6F53B151], - [0x96387719, 0x5940EABD], - [0x96283EE2, 0xA88EFFE3], - [0xBE5E1E25, 0x53863992], - [0x2B0199FC, 0x2C85B8AA], - [0x0EB72DDC, 0x81C52CA2] - ]; - _states['SHA-512/224'] = [ - [0x8C3D37C8, 0x19544DA2], - [0x73E19966, 0x89DCD4D6], - [0x1DFAB7AE, 0x32FF9C82], - [0x679DD514, 0x582F9FCF], - [0x0F6D2B69, 0x7BD44DA8], - [0x77E36F73, 0x04C48942], - [0x3F9D85A8, 0x6A1D36C8], - [0x1112E6AD, 0x91D692A1] - ]; +/***/ }), - // now initialized - _initialized = true; -} - -/** - * Updates a SHA-512 state with the given byte buffer. - * - * @param s the SHA-512 state to update. - * @param w the array to use to store words. - * @param bytes the byte buffer to update with. - */ -function _update(s, w, bytes) { - // consume 512 bit (128 byte) chunks - var t1_hi, t1_lo; - var t2_hi, t2_lo; - var s0_hi, s0_lo; - var s1_hi, s1_lo; - var ch_hi, ch_lo; - var maj_hi, maj_lo; - var a_hi, a_lo; - var b_hi, b_lo; - var c_hi, c_lo; - var d_hi, d_lo; - var e_hi, e_lo; - var f_hi, f_lo; - var g_hi, g_lo; - var h_hi, h_lo; - var i, hi, lo, w2, w7, w15, w16; - var len = bytes.length(); - while(len >= 128) { - // the w array will be populated with sixteen 64-bit big-endian words - // and then extended into 64 64-bit words according to SHA-512 - for(i = 0; i < 16; ++i) { - w[i][0] = bytes.getInt32() >>> 0; - w[i][1] = bytes.getInt32() >>> 0; - } - for(; i < 80; ++i) { - // for word 2 words ago: ROTR 19(x) ^ ROTR 61(x) ^ SHR 6(x) - w2 = w[i - 2]; - hi = w2[0]; - lo = w2[1]; - - // high bits - t1_hi = ( - ((hi >>> 19) | (lo << 13)) ^ // ROTR 19 - ((lo >>> 29) | (hi << 3)) ^ // ROTR 61/(swap + ROTR 29) - (hi >>> 6)) >>> 0; // SHR 6 - // low bits - t1_lo = ( - ((hi << 13) | (lo >>> 19)) ^ // ROTR 19 - ((lo << 3) | (hi >>> 29)) ^ // ROTR 61/(swap + ROTR 29) - ((hi << 26) | (lo >>> 6))) >>> 0; // SHR 6 - - // for word 15 words ago: ROTR 1(x) ^ ROTR 8(x) ^ SHR 7(x) - w15 = w[i - 15]; - hi = w15[0]; - lo = w15[1]; - - // high bits - t2_hi = ( - ((hi >>> 1) | (lo << 31)) ^ // ROTR 1 - ((hi >>> 8) | (lo << 24)) ^ // ROTR 8 - (hi >>> 7)) >>> 0; // SHR 7 - // low bits - t2_lo = ( - ((hi << 31) | (lo >>> 1)) ^ // ROTR 1 - ((hi << 24) | (lo >>> 8)) ^ // ROTR 8 - ((hi << 25) | (lo >>> 7))) >>> 0; // SHR 7 - - // sum(t1, word 7 ago, t2, word 16 ago) modulo 2^64 (carry lo overflow) - w7 = w[i - 7]; - w16 = w[i - 16]; - lo = (t1_lo + w7[1] + t2_lo + w16[1]); - w[i][0] = (t1_hi + w7[0] + t2_hi + w16[0] + - ((lo / 0x100000000) >>> 0)) >>> 0; - w[i][1] = lo >>> 0; - } - - // initialize hash value for this chunk - a_hi = s[0][0]; - a_lo = s[0][1]; - b_hi = s[1][0]; - b_lo = s[1][1]; - c_hi = s[2][0]; - c_lo = s[2][1]; - d_hi = s[3][0]; - d_lo = s[3][1]; - e_hi = s[4][0]; - e_lo = s[4][1]; - f_hi = s[5][0]; - f_lo = s[5][1]; - g_hi = s[6][0]; - g_lo = s[6][1]; - h_hi = s[7][0]; - h_lo = s[7][1]; - - // round function - for(i = 0; i < 80; ++i) { - // Sum1(e) = ROTR 14(e) ^ ROTR 18(e) ^ ROTR 41(e) - s1_hi = ( - ((e_hi >>> 14) | (e_lo << 18)) ^ // ROTR 14 - ((e_hi >>> 18) | (e_lo << 14)) ^ // ROTR 18 - ((e_lo >>> 9) | (e_hi << 23))) >>> 0; // ROTR 41/(swap + ROTR 9) - s1_lo = ( - ((e_hi << 18) | (e_lo >>> 14)) ^ // ROTR 14 - ((e_hi << 14) | (e_lo >>> 18)) ^ // ROTR 18 - ((e_lo << 23) | (e_hi >>> 9))) >>> 0; // ROTR 41/(swap + ROTR 9) - - // Ch(e, f, g) (optimized the same way as SHA-1) - ch_hi = (g_hi ^ (e_hi & (f_hi ^ g_hi))) >>> 0; - ch_lo = (g_lo ^ (e_lo & (f_lo ^ g_lo))) >>> 0; - - // Sum0(a) = ROTR 28(a) ^ ROTR 34(a) ^ ROTR 39(a) - s0_hi = ( - ((a_hi >>> 28) | (a_lo << 4)) ^ // ROTR 28 - ((a_lo >>> 2) | (a_hi << 30)) ^ // ROTR 34/(swap + ROTR 2) - ((a_lo >>> 7) | (a_hi << 25))) >>> 0; // ROTR 39/(swap + ROTR 7) - s0_lo = ( - ((a_hi << 4) | (a_lo >>> 28)) ^ // ROTR 28 - ((a_lo << 30) | (a_hi >>> 2)) ^ // ROTR 34/(swap + ROTR 2) - ((a_lo << 25) | (a_hi >>> 7))) >>> 0; // ROTR 39/(swap + ROTR 7) - - // Maj(a, b, c) (optimized the same way as SHA-1) - maj_hi = ((a_hi & b_hi) | (c_hi & (a_hi ^ b_hi))) >>> 0; - maj_lo = ((a_lo & b_lo) | (c_lo & (a_lo ^ b_lo))) >>> 0; - - // main algorithm - // t1 = (h + s1 + ch + _k[i] + _w[i]) modulo 2^64 (carry lo overflow) - lo = (h_lo + s1_lo + ch_lo + _k[i][1] + w[i][1]); - t1_hi = (h_hi + s1_hi + ch_hi + _k[i][0] + w[i][0] + - ((lo / 0x100000000) >>> 0)) >>> 0; - t1_lo = lo >>> 0; - - // t2 = s0 + maj modulo 2^64 (carry lo overflow) - lo = s0_lo + maj_lo; - t2_hi = (s0_hi + maj_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - t2_lo = lo >>> 0; - - h_hi = g_hi; - h_lo = g_lo; - - g_hi = f_hi; - g_lo = f_lo; - - f_hi = e_hi; - f_lo = e_lo; - - // e = (d + t1) modulo 2^64 (carry lo overflow) - lo = d_lo + t1_lo; - e_hi = (d_hi + t1_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - e_lo = lo >>> 0; - - d_hi = c_hi; - d_lo = c_lo; - - c_hi = b_hi; - c_lo = b_lo; - - b_hi = a_hi; - b_lo = a_lo; - - // a = (t1 + t2) modulo 2^64 (carry lo overflow) - lo = t1_lo + t2_lo; - a_hi = (t1_hi + t2_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - a_lo = lo >>> 0; - } - - // update hash state (additional modulo 2^64) - lo = s[0][1] + a_lo; - s[0][0] = (s[0][0] + a_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - s[0][1] = lo >>> 0; - - lo = s[1][1] + b_lo; - s[1][0] = (s[1][0] + b_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - s[1][1] = lo >>> 0; - - lo = s[2][1] + c_lo; - s[2][0] = (s[2][0] + c_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - s[2][1] = lo >>> 0; - - lo = s[3][1] + d_lo; - s[3][0] = (s[3][0] + d_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - s[3][1] = lo >>> 0; - - lo = s[4][1] + e_lo; - s[4][0] = (s[4][0] + e_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - s[4][1] = lo >>> 0; +/***/ 85407: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - lo = s[5][1] + f_lo; - s[5][0] = (s[5][0] + f_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - s[5][1] = lo >>> 0; +"use strict"; - lo = s[6][1] + g_lo; - s[6][0] = (s[6][0] + g_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - s[6][1] = lo >>> 0; - lo = s[7][1] + h_lo; - s[7][0] = (s[7][0] + h_hi + ((lo / 0x100000000) >>> 0)) >>> 0; - s[7][1] = lo >>> 0; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - len -= 128; - } -} +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ }), +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/***/ 43140: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Functions to output keys in SSH-friendly formats. - * - * This is part of the Forge project which may be used under the terms of - * either the BSD License or the GNU General Public License (GPL) Version 2. - * - * See: https://github.com/digitalbazaar/forge/blob/cbebca3780658703d925b61b2caffb1d263a6c1d/LICENSE - * - * @author https://github.com/shellac + * The UpdateAuthMethodOIDC model module. + * @module model/UpdateAuthMethodOIDC + * @version 3.6.3 */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(39445); -__nccwpck_require__(42007); -__nccwpck_require__(86138); -__nccwpck_require__(96485); -__nccwpck_require__(97456); +var UpdateAuthMethodOIDC = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAuthMethodOIDC. + * updateAuthMethodOIDC is a command that updates a new auth method that will be available to authenticate using OIDC. + * @alias module:model/UpdateAuthMethodOIDC + * @param name {String} Auth Method name + * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OIDC, OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + */ + function UpdateAuthMethodOIDC(name, uniqueIdentifier) { + _classCallCheck(this, UpdateAuthMethodOIDC); -var ssh = module.exports = forge.ssh = forge.ssh || {}; + UpdateAuthMethodOIDC.initialize(this, name, uniqueIdentifier); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/** - * Encodes (and optionally encrypts) a private RSA key as a Putty PPK file. - * - * @param privateKey the key. - * @param passphrase a passphrase to protect the key (falsy for no encryption). - * @param comment a comment to include in the key file. - * - * @return the PPK file as a string. - */ -ssh.privateKeyToPutty = function(privateKey, passphrase, comment) { - comment = comment || ''; - passphrase = passphrase || ''; - var algorithm = 'ssh-rsa'; - var encryptionAlgorithm = (passphrase === '') ? 'none' : 'aes256-cbc'; - var ppk = 'PuTTY-User-Key-File-2: ' + algorithm + '\r\n'; - ppk += 'Encryption: ' + encryptionAlgorithm + '\r\n'; - ppk += 'Comment: ' + comment + '\r\n'; + _createClass(UpdateAuthMethodOIDC, null, [{ + key: "initialize", + value: function initialize(obj, name, uniqueIdentifier) { + obj['name'] = name; + obj['unique-identifier'] = uniqueIdentifier; + } + /** + * Constructs a UpdateAuthMethodOIDC from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodOIDC} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodOIDC} The populated UpdateAuthMethodOIDC instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodOIDC(); - // public key into buffer for ppk - var pubbuffer = forge.util.createBuffer(); - _addStringToBuffer(pubbuffer, algorithm); - _addBigIntegerToBuffer(pubbuffer, privateKey.e); - _addBigIntegerToBuffer(pubbuffer, privateKey.n); + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } - // write public key - var pub = forge.util.encode64(pubbuffer.bytes(), 64); - var length = Math.floor(pub.length / 66) + 1; // 66 = 64 + \r\n - ppk += 'Public-Lines: ' + length + '\r\n'; - ppk += pub; + if (data.hasOwnProperty('allowed-redirect-uri')) { + obj['allowed-redirect-uri'] = _ApiClient["default"].convertToType(data['allowed-redirect-uri'], ['String']); + } - // private key into a buffer - var privbuffer = forge.util.createBuffer(); - _addBigIntegerToBuffer(privbuffer, privateKey.d); - _addBigIntegerToBuffer(privbuffer, privateKey.p); - _addBigIntegerToBuffer(privbuffer, privateKey.q); - _addBigIntegerToBuffer(privbuffer, privateKey.qInv); + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } - // optionally encrypt the private key - var priv; - if(!passphrase) { - // use the unencrypted buffer - priv = forge.util.encode64(privbuffer.bytes(), 64); - } else { - // encrypt RSA key using passphrase - var encLen = privbuffer.length() + 16 - 1; - encLen -= encLen % 16; + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } - // pad private key with sha1-d data -- needs to be a multiple of 16 - var padding = _sha1(privbuffer.bytes()); + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + } - padding.truncate(padding.length() - encLen + privbuffer.length()); - privbuffer.putBuffer(padding); + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + } - var aeskey = forge.util.createBuffer(); - aeskey.putBuffer(_sha1('\x00\x00\x00\x00', passphrase)); - aeskey.putBuffer(_sha1('\x00\x00\x00\x01', passphrase)); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - // encrypt some bytes using CBC mode - // key is 40 bytes, so truncate *by* 8 bytes - var cipher = forge.aes.createEncryptionCipher(aeskey.truncate(8), 'CBC'); - cipher.start(forge.util.createBuffer().fillWithByte(0, 16)); - cipher.update(privbuffer.copy()); - cipher.finish(); - var encrypted = cipher.output; + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } - // Note: this appears to differ from Putty -- is forge wrong, or putty? - // due to padding we finish as an exact multiple of 16 - encrypted.truncate(16); // all padding + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } - priv = forge.util.encode64(encrypted.bytes(), 64); - } + if (data.hasOwnProperty('issuer')) { + obj['issuer'] = _ApiClient["default"].convertToType(data['issuer'], 'String'); + } - // output private key - length = Math.floor(priv.length / 66) + 1; // 64 + \r\n - ppk += '\r\nPrivate-Lines: ' + length + '\r\n'; - ppk += priv; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - // MAC - var mackey = _sha1('putty-private-key-file-mac-key', passphrase); + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } - var macbuffer = forge.util.createBuffer(); - _addStringToBuffer(macbuffer, algorithm); - _addStringToBuffer(macbuffer, encryptionAlgorithm); - _addStringToBuffer(macbuffer, comment); - macbuffer.putInt32(pubbuffer.length()); - macbuffer.putBuffer(pubbuffer); - macbuffer.putInt32(privbuffer.length()); - macbuffer.putBuffer(privbuffer); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - var hmac = forge.hmac.create(); - hmac.start('sha1', mackey); - hmac.update(macbuffer.bytes()); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - ppk += '\r\nPrivate-MAC: ' + hmac.digest().toHex() + '\r\n'; + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } - return ppk; -}; + if (data.hasOwnProperty('required-scopes')) { + obj['required-scopes'] = _ApiClient["default"].convertToType(data['required-scopes'], ['String']); + } -/** - * Encodes a public RSA key as an OpenSSH file. - * - * @param key the key. - * @param comment a comment. - * - * @return the public key in OpenSSH format. - */ -ssh.publicKeyToOpenSSH = function(key, comment) { - var type = 'ssh-rsa'; - comment = comment || ''; + if (data.hasOwnProperty('required-scopes-prefix')) { + obj['required-scopes-prefix'] = _ApiClient["default"].convertToType(data['required-scopes-prefix'], 'String'); + } - var buffer = forge.util.createBuffer(); - _addStringToBuffer(buffer, type); - _addBigIntegerToBuffer(buffer, key.e); - _addBigIntegerToBuffer(buffer, key.n); + if (data.hasOwnProperty('subclaims-delimiters')) { + obj['subclaims-delimiters'] = _ApiClient["default"].convertToType(data['subclaims-delimiters'], ['String']); + } - return type + ' ' + forge.util.encode64(buffer.bytes()) + ' ' + comment; -}; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -/** - * Encodes a private RSA key as an OpenSSH file. - * - * @param key the key. - * @param passphrase a passphrase to protect the key (falsy for no encryption). - * - * @return the public key in OpenSSH format. - */ -ssh.privateKeyToOpenSSH = function(privateKey, passphrase) { - if(!passphrase) { - return forge.pki.privateKeyToPem(privateKey); - } - // OpenSSH private key is just a legacy format, it seems - return forge.pki.encryptRsaPrivateKey(privateKey, passphrase, - {legacy: true, algorithm: 'aes128'}); -}; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -/** - * Gets the SSH fingerprint for the given public key. - * - * @param options the options to use. - * [md] the message digest object to use (defaults to forge.md.md5). - * [encoding] an alternative output encoding, such as 'hex' - * (defaults to none, outputs a byte buffer). - * [delimiter] the delimiter to use between bytes for 'hex' encoded - * output, eg: ':' (defaults to none). - * - * @return the fingerprint as a byte buffer or other encoding based on options. - */ -ssh.getPublicKeyFingerprint = function(key, options) { - options = options || {}; - var md = options.md || forge.md.md5.create(); - - var type = 'ssh-rsa'; - var buffer = forge.util.createBuffer(); - _addStringToBuffer(buffer, type); - _addBigIntegerToBuffer(buffer, key.e); - _addBigIntegerToBuffer(buffer, key.n); - - // hash public key bytes - md.start(); - md.update(buffer.getBytes()); - var digest = md.digest(); - if(options.encoding === 'hex') { - var hex = digest.toHex(); - if(options.delimiter) { - return hex.match(/.{2}/g).join(options.delimiter); + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); + } + } + + return obj; } - return hex; - } else if(options.encoding === 'binary') { - return digest.getBytes(); - } else if(options.encoding) { - throw new Error('Unknown encoding "' + options.encoding + '".'); - } - return digest; -}; + }]); + return UpdateAuthMethodOIDC; +}(); /** - * Adds len(val) then val to a buffer. - * - * @param buffer the buffer to add to. - * @param val a big integer. + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -function _addBigIntegerToBuffer(buffer, val) { - var hexVal = val.toString(16); - // ensure 2s complement +ve - if(hexVal[0] >= '8') { - hexVal = '00' + hexVal; - } - var bytes = forge.util.hexToBytes(hexVal); - buffer.putInt32(bytes.length); - buffer.putBytes(bytes); -} -/** - * Adds len(val) then val to a buffer. - * - * @param buffer the buffer to add to. - * @param val a string. - */ -function _addStringToBuffer(buffer, val) { - buffer.putInt32(val.length); - buffer.putString(val); -} +UpdateAuthMethodOIDC.prototype['access-expires'] = 0; /** - * Hashes the arguments into one value using SHA-1. - * - * @return the sha1 hash of the provided arguments. + * Allowed redirect URIs after the authentication + * @member {Array.} allowed-redirect-uri */ -function _sha1() { - var sha = forge.md.sha1.create(); - var num = arguments.length; - for (var i = 0; i < num; ++i) { - sha.update(arguments[i]); - } - return sha.digest(); -} - - -/***/ }), - -/***/ 84275: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -/** - * A Javascript implementation of Transport Layer Security (TLS). - * - * @author Dave Longley - * - * Copyright (c) 2009-2014 Digital Bazaar, Inc. - * - * The TLS Handshake Protocol involves the following steps: - * - * - Exchange hello messages to agree on algorithms, exchange random values, - * and check for session resumption. - * - * - Exchange the necessary cryptographic parameters to allow the client and - * server to agree on a premaster secret. - * - * - Exchange certificates and cryptographic information to allow the client - * and server to authenticate themselves. - * - * - Generate a master secret from the premaster secret and exchanged random - * values. - * - * - Provide security parameters to the record layer. - * - * - Allow the client and server to verify that their peer has calculated the - * same security parameters and that the handshake occurred without tampering - * by an attacker. - * - * Up to 4 different messages may be sent during a key exchange. The server - * certificate, the server key exchange, the client certificate, and the - * client key exchange. - * - * A typical handshake (from the client's perspective). - * - * 1. Client sends ClientHello. - * 2. Client receives ServerHello. - * 3. Client receives optional Certificate. - * 4. Client receives optional ServerKeyExchange. - * 5. Client receives ServerHelloDone. - * 6. Client sends optional Certificate. - * 7. Client sends ClientKeyExchange. - * 8. Client sends optional CertificateVerify. - * 9. Client sends ChangeCipherSpec. - * 10. Client sends Finished. - * 11. Client receives ChangeCipherSpec. - * 12. Client receives Finished. - * 13. Client sends/receives application data. - * - * To reuse an existing session: - * - * 1. Client sends ClientHello with session ID for reuse. - * 2. Client receives ServerHello with same session ID if reusing. - * 3. Client receives ChangeCipherSpec message if reusing. - * 4. Client receives Finished. - * 5. Client sends ChangeCipherSpec. - * 6. Client sends Finished. - * - * Note: Client ignores HelloRequest if in the middle of a handshake. - * - * Record Layer: - * - * The record layer fragments information blocks into TLSPlaintext records - * carrying data in chunks of 2^14 bytes or less. Client message boundaries are - * not preserved in the record layer (i.e., multiple client messages of the - * same ContentType MAY be coalesced into a single TLSPlaintext record, or a - * single message MAY be fragmented across several records). - * - * struct { - * uint8 major; - * uint8 minor; - * } ProtocolVersion; - * - * struct { - * ContentType type; - * ProtocolVersion version; - * uint16 length; - * opaque fragment[TLSPlaintext.length]; - * } TLSPlaintext; - * - * type: - * The higher-level protocol used to process the enclosed fragment. - * - * version: - * The version of the protocol being employed. TLS Version 1.2 uses version - * {3, 3}. TLS Version 1.0 uses version {3, 1}. Note that a client that - * supports multiple versions of TLS may not know what version will be - * employed before it receives the ServerHello. - * - * length: - * The length (in bytes) of the following TLSPlaintext.fragment. The length - * MUST NOT exceed 2^14 = 16384 bytes. - * - * fragment: - * The application data. This data is transparent and treated as an - * independent block to be dealt with by the higher-level protocol specified - * by the type field. - * - * Implementations MUST NOT send zero-length fragments of Handshake, Alert, or - * ChangeCipherSpec content types. Zero-length fragments of Application data - * MAY be sent as they are potentially useful as a traffic analysis - * countermeasure. - * - * Note: Data of different TLS record layer content types MAY be interleaved. - * Application data is generally of lower precedence for transmission than - * other content types. However, records MUST be delivered to the network in - * the same order as they are protected by the record layer. Recipients MUST - * receive and process interleaved application layer traffic during handshakes - * subsequent to the first one on a connection. - * - * struct { - * ContentType type; // same as TLSPlaintext.type - * ProtocolVersion version;// same as TLSPlaintext.version - * uint16 length; - * opaque fragment[TLSCompressed.length]; - * } TLSCompressed; - * - * length: - * The length (in bytes) of the following TLSCompressed.fragment. - * The length MUST NOT exceed 2^14 + 1024. - * - * fragment: - * The compressed form of TLSPlaintext.fragment. - * - * Note: A CompressionMethod.null operation is an identity operation; no fields - * are altered. In this implementation, since no compression is supported, - * uncompressed records are always the same as compressed records. - * - * Encryption Information: - * - * The encryption and MAC functions translate a TLSCompressed structure into a - * TLSCiphertext. The decryption functions reverse the process. The MAC of the - * record also includes a sequence number so that missing, extra, or repeated - * messages are detectable. - * - * struct { - * ContentType type; - * ProtocolVersion version; - * uint16 length; - * select (SecurityParameters.cipher_type) { - * case stream: GenericStreamCipher; - * case block: GenericBlockCipher; - * case aead: GenericAEADCipher; - * } fragment; - * } TLSCiphertext; - * - * type: - * The type field is identical to TLSCompressed.type. - * - * version: - * The version field is identical to TLSCompressed.version. - * - * length: - * The length (in bytes) of the following TLSCiphertext.fragment. - * The length MUST NOT exceed 2^14 + 2048. - * - * fragment: - * The encrypted form of TLSCompressed.fragment, with the MAC. - * - * Note: Only CBC Block Ciphers are supported by this implementation. - * - * The TLSCompressed.fragment structures are converted to/from block - * TLSCiphertext.fragment structures. - * - * struct { - * opaque IV[SecurityParameters.record_iv_length]; - * block-ciphered struct { - * opaque content[TLSCompressed.length]; - * opaque MAC[SecurityParameters.mac_length]; - * uint8 padding[GenericBlockCipher.padding_length]; - * uint8 padding_length; - * }; - * } GenericBlockCipher; - * - * The MAC is generated as described in Section 6.2.3.1. - * - * IV: - * The Initialization Vector (IV) SHOULD be chosen at random, and MUST be - * unpredictable. Note that in versions of TLS prior to 1.1, there was no - * IV field, and the last ciphertext block of the previous record (the "CBC - * residue") was used as the IV. This was changed to prevent the attacks - * described in [CBCATT]. For block ciphers, the IV length is of length - * SecurityParameters.record_iv_length, which is equal to the - * SecurityParameters.block_size. - * - * padding: - * Padding that is added to force the length of the plaintext to be an - * integral multiple of the block cipher's block length. The padding MAY be - * any length up to 255 bytes, as long as it results in the - * TLSCiphertext.length being an integral multiple of the block length. - * Lengths longer than necessary might be desirable to frustrate attacks on - * a protocol that are based on analysis of the lengths of exchanged - * messages. Each uint8 in the padding data vector MUST be filled with the - * padding length value. The receiver MUST check this padding and MUST use - * the bad_record_mac alert to indicate padding errors. - * - * padding_length: - * The padding length MUST be such that the total size of the - * GenericBlockCipher structure is a multiple of the cipher's block length. - * Legal values range from zero to 255, inclusive. This length specifies the - * length of the padding field exclusive of the padding_length field itself. - * - * The encrypted data length (TLSCiphertext.length) is one more than the sum of - * SecurityParameters.block_length, TLSCompressed.length, - * SecurityParameters.mac_length, and padding_length. - * - * Example: If the block length is 8 bytes, the content length - * (TLSCompressed.length) is 61 bytes, and the MAC length is 20 bytes, then the - * length before padding is 82 bytes (this does not include the IV. Thus, the - * padding length modulo 8 must be equal to 6 in order to make the total length - * an even multiple of 8 bytes (the block length). The padding length can be - * 6, 14, 22, and so on, through 254. If the padding length were the minimum - * necessary, 6, the padding would be 6 bytes, each containing the value 6. - * Thus, the last 8 octets of the GenericBlockCipher before block encryption - * would be xx 06 06 06 06 06 06 06, where xx is the last octet of the MAC. - * - * Note: With block ciphers in CBC mode (Cipher Block Chaining), it is critical - * that the entire plaintext of the record be known before any ciphertext is - * transmitted. Otherwise, it is possible for the attacker to mount the attack - * described in [CBCATT]. - * - * Implementation note: Canvel et al. [CBCTIME] have demonstrated a timing - * attack on CBC padding based on the time required to compute the MAC. In - * order to defend against this attack, implementations MUST ensure that - * record processing time is essentially the same whether or not the padding - * is correct. In general, the best way to do this is to compute the MAC even - * if the padding is incorrect, and only then reject the packet. For instance, - * if the pad appears to be incorrect, the implementation might assume a - * zero-length pad and then compute the MAC. This leaves a small timing - * channel, since MAC performance depends, to some extent, on the size of the - * data fragment, but it is not believed to be large enough to be exploitable, - * due to the large block size of existing MACs and the small size of the - * timing signal. - */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(27357); -__nccwpck_require__(42007); -__nccwpck_require__(86138); -__nccwpck_require__(60492); -__nccwpck_require__(84874); -__nccwpck_require__(32055); -__nccwpck_require__(96485); -__nccwpck_require__(97456); - -/** - * Generates pseudo random bytes by mixing the result of two hash functions, - * MD5 and SHA-1. - * - * prf_TLS1(secret, label, seed) = - * P_MD5(S1, label + seed) XOR P_SHA-1(S2, label + seed); - * - * Each P_hash function functions as follows: - * - * P_hash(secret, seed) = HMAC_hash(secret, A(1) + seed) + - * HMAC_hash(secret, A(2) + seed) + - * HMAC_hash(secret, A(3) + seed) + ... - * A() is defined as: - * A(0) = seed - * A(i) = HMAC_hash(secret, A(i-1)) - * - * The '+' operator denotes concatenation. - * - * As many iterations A(N) as are needed are performed to generate enough - * pseudo random byte output. If an iteration creates more data than is - * necessary, then it is truncated. - * - * Therefore: - * A(1) = HMAC_hash(secret, A(0)) - * = HMAC_hash(secret, seed) - * A(2) = HMAC_hash(secret, A(1)) - * = HMAC_hash(secret, HMAC_hash(secret, seed)) - * - * Therefore: - * P_hash(secret, seed) = - * HMAC_hash(secret, HMAC_hash(secret, A(0)) + seed) + - * HMAC_hash(secret, HMAC_hash(secret, A(1)) + seed) + - * ... - * - * Therefore: - * P_hash(secret, seed) = - * HMAC_hash(secret, HMAC_hash(secret, seed) + seed) + - * HMAC_hash(secret, HMAC_hash(secret, HMAC_hash(secret, seed)) + seed) + - * ... - * - * @param secret the secret to use. - * @param label the label to use. - * @param seed the seed value to use. - * @param length the number of bytes to generate. - * - * @return the pseudo random bytes in a byte buffer. - */ -var prf_TLS1 = function(secret, label, seed, length) { - var rval = forge.util.createBuffer(); - - /* For TLS 1.0, the secret is split in half, into two secrets of equal - length. If the secret has an odd length then the last byte of the first - half will be the same as the first byte of the second. The length of the - two secrets is half of the secret rounded up. */ - var idx = (secret.length >> 1); - var slen = idx + (secret.length & 1); - var s1 = secret.substr(0, slen); - var s2 = secret.substr(idx, slen); - var ai = forge.util.createBuffer(); - var hmac = forge.hmac.create(); - seed = label + seed; - - // determine the number of iterations that must be performed to generate - // enough output bytes, md5 creates 16 byte hashes, sha1 creates 20 - var md5itr = Math.ceil(length / 16); - var sha1itr = Math.ceil(length / 20); - - // do md5 iterations - hmac.start('MD5', s1); - var md5bytes = forge.util.createBuffer(); - ai.putBytes(seed); - for(var i = 0; i < md5itr; ++i) { - // HMAC_hash(secret, A(i-1)) - hmac.start(null, null); - hmac.update(ai.getBytes()); - ai.putBuffer(hmac.digest()); - - // HMAC_hash(secret, A(i) + seed) - hmac.start(null, null); - hmac.update(ai.bytes() + seed); - md5bytes.putBuffer(hmac.digest()); - } - - // do sha1 iterations - hmac.start('SHA1', s2); - var sha1bytes = forge.util.createBuffer(); - ai.clear(); - ai.putBytes(seed); - for(var i = 0; i < sha1itr; ++i) { - // HMAC_hash(secret, A(i-1)) - hmac.start(null, null); - hmac.update(ai.getBytes()); - ai.putBuffer(hmac.digest()); - - // HMAC_hash(secret, A(i) + seed) - hmac.start(null, null); - hmac.update(ai.bytes() + seed); - sha1bytes.putBuffer(hmac.digest()); - } - - // XOR the md5 bytes with the sha1 bytes - rval.putBytes(forge.util.xorBytes( - md5bytes.getBytes(), sha1bytes.getBytes(), length)); - - return rval; -}; - -/** - * Generates pseudo random bytes using a SHA256 algorithm. For TLS 1.2. - * - * @param secret the secret to use. - * @param label the label to use. - * @param seed the seed value to use. - * @param length the number of bytes to generate. - * - * @return the pseudo random bytes in a byte buffer. - */ -var prf_sha256 = function(secret, label, seed, length) { - // FIXME: implement me for TLS 1.2 -}; - -/** - * Gets a MAC for a record using the SHA-1 hash algorithm. - * - * @param key the mac key. - * @param state the sequence number (array of two 32-bit integers). - * @param record the record. - * - * @return the sha-1 hash (20 bytes) for the given record. - */ -var hmac_sha1 = function(key, seqNum, record) { - /* MAC is computed like so: - HMAC_hash( - key, seqNum + - TLSCompressed.type + - TLSCompressed.version + - TLSCompressed.length + - TLSCompressed.fragment) - */ - var hmac = forge.hmac.create(); - hmac.start('SHA1', key); - var b = forge.util.createBuffer(); - b.putInt32(seqNum[0]); - b.putInt32(seqNum[1]); - b.putByte(record.type); - b.putByte(record.version.major); - b.putByte(record.version.minor); - b.putInt16(record.length); - b.putBytes(record.fragment.bytes()); - hmac.update(b.getBytes()); - return hmac.digest().getBytes(); -}; +UpdateAuthMethodOIDC.prototype['allowed-redirect-uri'] = undefined; /** - * Compresses the TLSPlaintext record into a TLSCompressed record using the - * deflate algorithm. - * - * @param c the TLS connection. - * @param record the TLSPlaintext record to compress. - * @param s the ConnectionState to use. - * - * @return true on success, false on failure. + * Audience claim to be used as part of the authentication flow. In case set, it must match the one configured on the Identity Provider's Application + * @member {String} audience */ -var deflate = function(c, record, s) { - var rval = false; - - try { - var bytes = c.deflate(record.fragment.getBytes()); - record.fragment = forge.util.createBuffer(bytes); - record.length = bytes.length; - rval = true; - } catch(ex) { - // deflate error, fail out - } - - return rval; -}; +UpdateAuthMethodOIDC.prototype['audience'] = undefined; /** - * Decompresses the TLSCompressed record into a TLSPlaintext record using the - * deflate algorithm. - * - * @param c the TLS connection. - * @param record the TLSCompressed record to decompress. - * @param s the ConnectionState to use. - * - * @return true on success, false on failure. + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips */ -var inflate = function(c, record, s) { - var rval = false; - - try { - var bytes = c.inflate(record.fragment.getBytes()); - record.fragment = forge.util.createBuffer(bytes); - record.length = bytes.length; - rval = true; - } catch(ex) { - // inflate error, fail out - } - - return rval; -}; +UpdateAuthMethodOIDC.prototype['bound-ips'] = undefined; /** - * Reads a TLS variable-length vector from a byte buffer. - * - * Variable-length vectors are defined by specifying a subrange of legal - * lengths, inclusively, using the notation . When these are - * encoded, the actual length precedes the vector's contents in the byte - * stream. The length will be in the form of a number consuming as many bytes - * as required to hold the vector's specified maximum (ceiling) length. A - * variable-length vector with an actual length field of zero is referred to - * as an empty vector. - * - * @param b the byte buffer. - * @param lenBytes the number of bytes required to store the length. - * - * @return the resulting byte buffer. + * Client ID + * @member {String} client-id */ -var readVector = function(b, lenBytes) { - var len = 0; - switch(lenBytes) { - case 1: - len = b.getByte(); - break; - case 2: - len = b.getInt16(); - break; - case 3: - len = b.getInt24(); - break; - case 4: - len = b.getInt32(); - break; - } - - // read vector bytes into a new buffer - return forge.util.createBuffer(b.getBytes(len)); -}; +UpdateAuthMethodOIDC.prototype['client-id'] = undefined; /** - * Writes a TLS variable-length vector to a byte buffer. - * - * @param b the byte buffer. - * @param lenBytes the number of bytes required to store the length. - * @param v the byte buffer vector. + * Client Secret + * @member {String} client-secret */ -var writeVector = function(b, lenBytes, v) { - // encode length at the start of the vector, where the number of bytes for - // the length is the maximum number of bytes it would take to encode the - // vector's ceiling - b.putInt(v.length(), lenBytes << 3); - b.putBuffer(v); -}; +UpdateAuthMethodOIDC.prototype['client-secret'] = undefined; /** - * The tls implementation. + * Auth Method description + * @member {String} description */ -var tls = {}; +UpdateAuthMethodOIDC.prototype['description'] = undefined; /** - * Version: TLS 1.2 = 3.3, TLS 1.1 = 3.2, TLS 1.0 = 3.1. Both TLS 1.1 and - * TLS 1.2 were still too new (ie: openSSL didn't implement them) at the time - * of this implementation so TLS 1.0 was implemented instead. + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims */ -tls.Versions = { - TLS_1_0: {major: 3, minor: 1}, - TLS_1_1: {major: 3, minor: 2}, - TLS_1_2: {major: 3, minor: 3} -}; -tls.SupportedVersions = [ - tls.Versions.TLS_1_1, - tls.Versions.TLS_1_0 -]; -tls.Version = tls.SupportedVersions[0]; +UpdateAuthMethodOIDC.prototype['force-sub-claims'] = undefined; /** - * Maximum fragment size. True maximum is 16384, but we fragment before that - * to allow for unusual small increases during compression. + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips */ -tls.MaxFragment = 16384 - 1024; +UpdateAuthMethodOIDC.prototype['gw-bound-ips'] = undefined; /** - * Whether this entity is considered the "client" or "server". - * enum { server, client } ConnectionEnd; + * Issuer URL + * @member {String} issuer */ -tls.ConnectionEnd = { - server: 0, - client: 1 -}; +UpdateAuthMethodOIDC.prototype['issuer'] = undefined; /** - * Pseudo-random function algorithm used to generate keys from the master - * secret. - * enum { tls_prf_sha256 } PRFAlgorithm; + * Set output format to JSON + * @member {Boolean} json + * @default false */ -tls.PRFAlgorithm = { - tls_prf_sha256: 0 -}; +UpdateAuthMethodOIDC.prototype['json'] = false; /** - * Bulk encryption algorithms. - * enum { null, rc4, des3, aes } BulkCipherAlgorithm; + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 */ -tls.BulkCipherAlgorithm = { - none: null, - rc4: 0, - des3: 1, - aes: 2 -}; +UpdateAuthMethodOIDC.prototype['jwt-ttl'] = 0; /** - * Cipher types. - * enum { stream, block, aead } CipherType; + * Auth Method name + * @member {String} name */ -tls.CipherType = { - stream: 0, - block: 1, - aead: 2 -}; +UpdateAuthMethodOIDC.prototype['name'] = undefined; /** - * MAC (Message Authentication Code) algorithms. - * enum { null, hmac_md5, hmac_sha1, hmac_sha256, - * hmac_sha384, hmac_sha512} MACAlgorithm; + * Auth Method new name + * @member {String} new-name */ -tls.MACAlgorithm = { - none: null, - hmac_md5: 0, - hmac_sha1: 1, - hmac_sha256: 2, - hmac_sha384: 3, - hmac_sha512: 4 -}; +UpdateAuthMethodOIDC.prototype['new-name'] = undefined; /** - * Compression algorithms. - * enum { null(0), deflate(1), (255) } CompressionMethod; + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type */ -tls.CompressionMethod = { - none: 0, - deflate: 1 -}; +UpdateAuthMethodOIDC.prototype['product-type'] = undefined; /** - * TLS record content types. - * enum { - * change_cipher_spec(20), alert(21), handshake(22), - * application_data(23), (255) - * } ContentType; + * RequiredScopes is a list of required scopes that the oidc method will request from the oidc provider and the user must approve + * @member {Array.} required-scopes */ -tls.ContentType = { - change_cipher_spec: 20, - alert: 21, - handshake: 22, - application_data: 23, - heartbeat: 24 -}; +UpdateAuthMethodOIDC.prototype['required-scopes'] = undefined; /** - * TLS handshake types. - * enum { - * hello_request(0), client_hello(1), server_hello(2), - * certificate(11), server_key_exchange (12), - * certificate_request(13), server_hello_done(14), - * certificate_verify(15), client_key_exchange(16), - * finished(20), (255) - * } HandshakeType; + * RequiredScopesPrefix is a a prefix to add to all required-scopes when requesting them from the oidc server (for example, azures' Application ID URI) + * @member {String} required-scopes-prefix */ -tls.HandshakeType = { - hello_request: 0, - client_hello: 1, - server_hello: 2, - certificate: 11, - server_key_exchange: 12, - certificate_request: 13, - server_hello_done: 14, - certificate_verify: 15, - client_key_exchange: 16, - finished: 20 -}; +UpdateAuthMethodOIDC.prototype['required-scopes-prefix'] = undefined; /** - * TLS Alert Protocol. - * - * enum { warning(1), fatal(2), (255) } AlertLevel; - * - * enum { - * close_notify(0), - * unexpected_message(10), - * bad_record_mac(20), - * decryption_failed(21), - * record_overflow(22), - * decompression_failure(30), - * handshake_failure(40), - * bad_certificate(42), - * unsupported_certificate(43), - * certificate_revoked(44), - * certificate_expired(45), - * certificate_unknown(46), - * illegal_parameter(47), - * unknown_ca(48), - * access_denied(49), - * decode_error(50), - * decrypt_error(51), - * export_restriction(60), - * protocol_version(70), - * insufficient_security(71), - * internal_error(80), - * user_canceled(90), - * no_renegotiation(100), - * (255) - * } AlertDescription; - * - * struct { - * AlertLevel level; - * AlertDescription description; - * } Alert; - */ -tls.Alert = {}; -tls.Alert.Level = { - warning: 1, - fatal: 2 -}; -tls.Alert.Description = { - close_notify: 0, - unexpected_message: 10, - bad_record_mac: 20, - decryption_failed: 21, - record_overflow: 22, - decompression_failure: 30, - handshake_failure: 40, - bad_certificate: 42, - unsupported_certificate: 43, - certificate_revoked: 44, - certificate_expired: 45, - certificate_unknown: 46, - illegal_parameter: 47, - unknown_ca: 48, - access_denied: 49, - decode_error: 50, - decrypt_error: 51, - export_restriction: 60, - protocol_version: 70, - insufficient_security: 71, - internal_error: 80, - user_canceled: 90, - no_renegotiation: 100 -}; - -/** - * TLS Heartbeat Message types. - * enum { - * heartbeat_request(1), - * heartbeat_response(2), - * (255) - * } HeartbeatMessageType; - */ -tls.HeartbeatMessageType = { - heartbeat_request: 1, - heartbeat_response: 2 -}; - -/** - * Supported cipher suites. - */ -tls.CipherSuites = {}; - -/** - * Gets a supported cipher suite from its 2 byte ID. - * - * @param twoBytes two bytes in a string. - * - * @return the matching supported cipher suite or null. - */ -tls.getCipherSuite = function(twoBytes) { - var rval = null; - for(var key in tls.CipherSuites) { - var cs = tls.CipherSuites[key]; - if(cs.id[0] === twoBytes.charCodeAt(0) && - cs.id[1] === twoBytes.charCodeAt(1)) { - rval = cs; - break; - } - } - return rval; -}; + * A list of additional sub claims delimiters (relevant only for SAML, OIDC, OAuth2/JWT) + * @member {Array.} subclaims-delimiters + */ +UpdateAuthMethodOIDC.prototype['subclaims-delimiters'] = undefined; /** - * Called when an unexpected record is encountered. - * - * @param c the connection. - * @param record the record. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -tls.handleUnexpected = function(c, record) { - // if connection is client and closed, ignore unexpected messages - var ignore = (!c.open && c.entity === tls.ConnectionEnd.client); - if(!ignore) { - c.error(c, { - message: 'Unexpected message. Received TLS record out of order.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.unexpected_message - } - }); - } -}; +UpdateAuthMethodOIDC.prototype['token'] = undefined; /** - * Called when a client receives a HelloRequest record. - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -tls.handleHelloRequest = function(c, record, length) { - // ignore renegotiation requests from the server during a handshake, but - // if handshaking, send a warning alert that renegotation is denied - if(!c.handshaking && c.handshakes > 0) { - // send alert warning - tls.queue(c, tls.createAlert(c, { - level: tls.Alert.Level.warning, - description: tls.Alert.Description.no_renegotiation - })); - tls.flush(c); - } - - // continue - c.process(); -}; +UpdateAuthMethodOIDC.prototype['uid-token'] = undefined; /** - * Parses a hello message from a ClientHello or ServerHello record. - * - * @param record the record to parse. - * - * @return the parsed message. + * A unique identifier (ID) value should be configured for OIDC, OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier */ -tls.parseHelloMessage = function(c, record, length) { - var msg = null; - var client = (c.entity === tls.ConnectionEnd.client); +UpdateAuthMethodOIDC.prototype['unique-identifier'] = undefined; +var _default = UpdateAuthMethodOIDC; +exports["default"] = _default; - // minimum of 38 bytes in message - if(length < 38) { - c.error(c, { - message: client ? - 'Invalid ServerHello message. Message too short.' : - 'Invalid ClientHello message. Message too short.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.illegal_parameter - } - }); - } else { - // use 'remaining' to calculate # of remaining bytes in the message - var b = record.fragment; - var remaining = b.length(); - msg = { - version: { - major: b.getByte(), - minor: b.getByte() - }, - random: forge.util.createBuffer(b.getBytes(32)), - session_id: readVector(b, 1), - extensions: [] - }; - if(client) { - msg.cipher_suite = b.getBytes(2); - msg.compression_method = b.getByte(); - } else { - msg.cipher_suites = readVector(b, 2); - msg.compression_methods = readVector(b, 1); - } - - // read extensions if there are any bytes left in the message - remaining = length - (remaining - b.length()); - if(remaining > 0) { - // parse extensions - var exts = readVector(b, 2); - while(exts.length() > 0) { - msg.extensions.push({ - type: [exts.getByte(), exts.getByte()], - data: readVector(exts, 2) - }); - } +/***/ }), - // TODO: make extension support modular - if(!client) { - for(var i = 0; i < msg.extensions.length; ++i) { - var ext = msg.extensions[i]; +/***/ 49923: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // support SNI extension - if(ext.type[0] === 0x00 && ext.type[1] === 0x00) { - // get server name list - var snl = readVector(ext.data, 2); - while(snl.length() > 0) { - // read server name type - var snType = snl.getByte(); +"use strict"; - // only HostName type (0x00) is known, break out if - // another type is detected - if(snType !== 0x00) { - break; - } - // add host name to server name list - c.session.extensions.server_name.serverNameList.push( - readVector(snl, 2).getBytes()); - } - } - } - } - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // version already set, do not allow version change - if(c.session.version) { - if(msg.version.major !== c.session.version.major || - msg.version.minor !== c.session.version.minor) { - return c.error(c, { - message: 'TLS version change is disallowed during renegotiation.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.protocol_version - } - }); - } - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // get the chosen (ServerHello) cipher suite - if(client) { - // FIXME: should be checking configured acceptable cipher suites - c.session.cipherSuite = tls.getCipherSuite(msg.cipher_suite); - } else { - // get a supported preferred (ClientHello) cipher suite - // choose the first supported cipher suite - var tmp = forge.util.createBuffer(msg.cipher_suites.bytes()); - while(tmp.length() > 0) { - // FIXME: should be checking configured acceptable suites - // cipher suites take up 2 bytes - c.session.cipherSuite = tls.getCipherSuite(tmp.getBytes(2)); - if(c.session.cipherSuite !== null) { - break; - } - } - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // cipher suite not supported - if(c.session.cipherSuite === null) { - return c.error(c, { - message: 'No cipher suites in common.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.handshake_failure - }, - cipherSuite: forge.util.bytesToHex(msg.cipher_suite) - }); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // TODO: handle compression methods - if(client) { - c.session.compressionMethod = msg.compression_method; - } else { - // no compression - c.session.compressionMethod = tls.CompressionMethod.none; - } - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - return msg; -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Creates security parameters for the given connection based on the given - * hello message. - * - * @param c the TLS connection. - * @param msg the hello message. - */ -tls.createSecurityParameters = function(c, msg) { - /* Note: security params are from TLS 1.2, some values like prf_algorithm - are ignored for TLS 1.0/1.1 and the builtin as specified in the spec is - used. */ - - // TODO: handle other options from server when more supported - - // get client and server randoms - var client = (c.entity === tls.ConnectionEnd.client); - var msgRandom = msg.random.bytes(); - var cRandom = client ? c.session.sp.client_random : msgRandom; - var sRandom = client ? msgRandom : tls.createRandom().getBytes(); - - // create new security parameters - c.session.sp = { - entity: c.entity, - prf_algorithm: tls.PRFAlgorithm.tls_prf_sha256, - bulk_cipher_algorithm: null, - cipher_type: null, - enc_key_length: null, - block_length: null, - fixed_iv_length: null, - record_iv_length: null, - mac_algorithm: null, - mac_length: null, - mac_key_length: null, - compression_algorithm: c.session.compressionMethod, - pre_master_secret: null, - master_secret: null, - client_random: cRandom, - server_random: sRandom - }; -}; + * The UpdateAuthMethodOutput model module. + * @module model/UpdateAuthMethodOutput + * @version 3.6.3 + */ +var UpdateAuthMethodOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAuthMethodOutput. + * @alias module:model/UpdateAuthMethodOutput + */ + function UpdateAuthMethodOutput() { + _classCallCheck(this, UpdateAuthMethodOutput); -/** - * Called when a client receives a ServerHello record. - * - * When a ServerHello message will be sent: - * The server will send this message in response to a client hello message - * when it was able to find an acceptable set of algorithms. If it cannot - * find such a match, it will respond with a handshake failure alert. - * - * uint24 length; - * struct { - * ProtocolVersion server_version; - * Random random; - * SessionID session_id; - * CipherSuite cipher_suite; - * CompressionMethod compression_method; - * select(extensions_present) { - * case false: - * struct {}; - * case true: - * Extension extensions<0..2^16-1>; - * }; - * } ServerHello; - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleServerHello = function(c, record, length) { - var msg = tls.parseHelloMessage(c, record, length); - if(c.fail) { - return; + UpdateAuthMethodOutput.initialize(this); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // ensure server version is compatible - if(msg.version.minor <= c.version.minor) { - c.version.minor = msg.version.minor; - } else { - return c.error(c, { - message: 'Incompatible TLS version.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.protocol_version + + _createClass(UpdateAuthMethodOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateAuthMethodOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodOutput} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodOutput} The populated UpdateAuthMethodOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } } - }); - } - // indicate session version has been set - c.session.version = c.version; + return obj; + } + }]); + + return UpdateAuthMethodOutput; +}(); +/** + * @member {String} name + */ - // get the session ID from the message - var sessionId = msg.session_id.bytes(); - // if the session ID is not blank and matches the cached one, resume - // the session - if(sessionId.length > 0 && sessionId === c.session.id) { - // resuming session, expect a ChangeCipherSpec next - c.expect = SCC; - c.session.resuming = true; +UpdateAuthMethodOutput.prototype['name'] = undefined; +var _default = UpdateAuthMethodOutput; +exports["default"] = _default; - // get new server random - c.session.sp.server_random = msg.random.bytes(); - } else { - // not resuming, expect a server Certificate message next - c.expect = SCE; - c.session.resuming = false; +/***/ }), - // create new security parameters - tls.createSecurityParameters(c, msg); - } +/***/ 41983: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // set new session ID - c.session.id = sessionId; +"use strict"; - // continue - c.process(); -}; -/** - * Called when a server receives a ClientHello record. - * - * When a ClientHello message will be sent: - * When a client first connects to a server it is required to send the - * client hello as its first message. The client can also send a client - * hello in response to a hello request or on its own initiative in order - * to renegotiate the security parameters in an existing connection. - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleClientHello = function(c, record, length) { - var msg = tls.parseHelloMessage(c, record, length); - if(c.fail) { - return; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // get the session ID from the message - var sessionId = msg.session_id.bytes(); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // see if the given session ID is in the cache - var session = null; - if(c.sessionCache) { - session = c.sessionCache.getSession(sessionId); - if(session === null) { - // session ID not found - sessionId = ''; - } else if(session.version.major !== msg.version.major || - session.version.minor > msg.version.minor) { - // if session version is incompatible with client version, do not resume - session = null; - sessionId = ''; - } - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // no session found to resume, generate a new session ID - if(sessionId.length === 0) { - sessionId = forge.random.getBytes(32); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // update session - c.session.id = sessionId; - c.session.clientHelloVersion = msg.version; - c.session.sp = {}; - if(session) { - // use version and security parameters from resumed session - c.version = c.session.version = session.version; - c.session.sp = session.sp; - } else { - // use highest compatible minor version - var version; - for(var i = 1; i < tls.SupportedVersions.length; ++i) { - version = tls.SupportedVersions[i]; - if(version.minor <= msg.version.minor) { - break; - } - } - c.version = {major: version.major, minor: version.minor}; - c.session.version = c.version; - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // if a session is set, resume it - if(session !== null) { - // resuming session, expect a ChangeCipherSpec next - c.expect = CCC; - c.session.resuming = true; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // get new client random - c.session.sp.client_random = msg.random.bytes(); - } else { - // not resuming, expect a Certificate or ClientKeyExchange - c.expect = (c.verifyClient !== false) ? CCE : CKE; - c.session.resuming = false; +/** + * The UpdateAuthMethodSAML model module. + * @module model/UpdateAuthMethodSAML + * @version 3.6.3 + */ +var UpdateAuthMethodSAML = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAuthMethodSAML. + * updateAuthMethodSAML is a command that updates a new auth method that will be available to authenticate using SAML. + * @alias module:model/UpdateAuthMethodSAML + * @param name {String} Auth Method name + * @param uniqueIdentifier {String} A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + */ + function UpdateAuthMethodSAML(name, uniqueIdentifier) { + _classCallCheck(this, UpdateAuthMethodSAML); - // create new security parameters - tls.createSecurityParameters(c, msg); + UpdateAuthMethodSAML.initialize(this, name, uniqueIdentifier); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // connection now open - c.open = true; - // queue server hello - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createServerHello(c) - })); + _createClass(UpdateAuthMethodSAML, null, [{ + key: "initialize", + value: function initialize(obj, name, uniqueIdentifier) { + obj['name'] = name; + obj['unique-identifier'] = uniqueIdentifier; + } + /** + * Constructs a UpdateAuthMethodSAML from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodSAML} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodSAML} The populated UpdateAuthMethodSAML instance. + */ - if(c.session.resuming) { - // queue change cipher spec message - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.change_cipher_spec, - data: tls.createChangeCipherSpec() - })); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodSAML(); - // create pending state - c.state.pending = tls.createConnectionState(c); + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } - // change current write state to pending write state - c.state.current.write = c.state.pending.write; + if (data.hasOwnProperty('allowed-redirect-uri')) { + obj['allowed-redirect-uri'] = _ApiClient["default"].convertToType(data['allowed-redirect-uri'], ['String']); + } - // queue finished - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createFinished(c) - })); - } else { - // queue server certificate - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createCertificate(c) - })); + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } - if(!c.fail) { - // queue server key exchange - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createServerKeyExchange(c) - })); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - // request client certificate if set - if(c.verifyClient !== false) { - // queue certificate request - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createCertificateRequest(c) - })); - } + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } - // queue server hello done - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createServerHelloDone(c) - })); - } - } + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } - // send records - tls.flush(c); + if (data.hasOwnProperty('idp-metadata-url')) { + obj['idp-metadata-url'] = _ApiClient["default"].convertToType(data['idp-metadata-url'], 'String'); + } - // continue - c.process(); -}; + if (data.hasOwnProperty('idp-metadata-xml-data')) { + obj['idp-metadata-xml-data'] = _ApiClient["default"].convertToType(data['idp-metadata-xml-data'], 'String'); + } -/** - * Called when a client receives a Certificate record. - * - * When this message will be sent: - * The server must send a certificate whenever the agreed-upon key exchange - * method is not an anonymous one. This message will always immediately - * follow the server hello message. - * - * Meaning of this message: - * The certificate type must be appropriate for the selected cipher suite's - * key exchange algorithm, and is generally an X.509v3 certificate. It must - * contain a key which matches the key exchange method, as follows. Unless - * otherwise specified, the signing algorithm for the certificate must be - * the same as the algorithm for the certificate key. Unless otherwise - * specified, the public key may be of any length. - * - * opaque ASN.1Cert<1..2^24-1>; - * struct { - * ASN.1Cert certificate_list<1..2^24-1>; - * } Certificate; - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleCertificate = function(c, record, length) { - // minimum of 3 bytes in message - if(length < 3) { - return c.error(c, { - message: 'Invalid Certificate message. Message too short.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.illegal_parameter - } - }); - } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - var b = record.fragment; - var msg = { - certificate_list: readVector(b, 3) - }; + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } - /* The sender's certificate will be first in the list (chain), each - subsequent one that follows will certify the previous one, but root - certificates (self-signed) that specify the certificate authority may - be omitted under the assumption that clients must already possess it. */ - var cert, asn1; - var certs = []; - try { - while(msg.certificate_list.length() > 0) { - // each entry in msg.certificate_list is a vector with 3 len bytes - cert = readVector(msg.certificate_list, 3); - asn1 = forge.asn1.fromDer(cert); - cert = forge.pki.certificateFromAsn1(asn1, true); - certs.push(cert); - } - } catch(ex) { - return c.error(c, { - message: 'Could not parse certificate list.', - cause: ex, - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.bad_certificate - } - }); - } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - // ensure at least 1 certificate was provided if in client-mode - // or if verifyClient was set to true to require a certificate - // (as opposed to 'optional') - var client = (c.entity === tls.ConnectionEnd.client); - if((client || c.verifyClient === true) && certs.length === 0) { - // error, no certificate - c.error(c, { - message: client ? - 'No server certificate provided.' : - 'No client certificate provided.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.illegal_parameter - } - }); - } else if(certs.length === 0) { - // no certs to verify - // expect a ServerKeyExchange or ClientKeyExchange message next - c.expect = client ? SKE : CKE; - } else { - // save certificate in session - if(client) { - c.session.serverCertificate = certs[0]; - } else { - c.session.clientCertificate = certs[0]; - } - - if(tls.verifyCertificateChain(c, certs)) { - // expect a ServerKeyExchange or ClientKeyExchange message next - c.expect = client ? SKE : CKE; - } - } - - // continue - c.process(); -}; - -/** - * Called when a client receives a ServerKeyExchange record. - * - * When this message will be sent: - * This message will be sent immediately after the server certificate - * message (or the server hello message, if this is an anonymous - * negotiation). - * - * The server key exchange message is sent by the server only when the - * server certificate message (if sent) does not contain enough data to - * allow the client to exchange a premaster secret. - * - * Meaning of this message: - * This message conveys cryptographic information to allow the client to - * communicate the premaster secret: either an RSA public key to encrypt - * the premaster secret with, or a Diffie-Hellman public key with which the - * client can complete a key exchange (with the result being the premaster - * secret.) - * - * enum { - * dhe_dss, dhe_rsa, dh_anon, rsa, dh_dss, dh_rsa - * } KeyExchangeAlgorithm; - * - * struct { - * opaque dh_p<1..2^16-1>; - * opaque dh_g<1..2^16-1>; - * opaque dh_Ys<1..2^16-1>; - * } ServerDHParams; - * - * struct { - * select(KeyExchangeAlgorithm) { - * case dh_anon: - * ServerDHParams params; - * case dhe_dss: - * case dhe_rsa: - * ServerDHParams params; - * digitally-signed struct { - * opaque client_random[32]; - * opaque server_random[32]; - * ServerDHParams params; - * } signed_params; - * case rsa: - * case dh_dss: - * case dh_rsa: - * struct {}; - * }; - * } ServerKeyExchange; - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleServerKeyExchange = function(c, record, length) { - // this implementation only supports RSA, no Diffie-Hellman support - // so any length > 0 is invalid - if(length > 0) { - return c.error(c, { - message: 'Invalid key parameters. Only RSA is supported.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.unsupported_certificate - } - }); - } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - // expect an optional CertificateRequest message next - c.expect = SCR; + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } - // continue - c.process(); -}; + if (data.hasOwnProperty('subclaims-delimiters')) { + obj['subclaims-delimiters'] = _ApiClient["default"].convertToType(data['subclaims-delimiters'], ['String']); + } -/** - * Called when a client receives a ClientKeyExchange record. - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleClientKeyExchange = function(c, record, length) { - // this implementation only supports RSA, no Diffie-Hellman support - // so any length < 48 is invalid - if(length < 48) { - return c.error(c, { - message: 'Invalid key parameters. Only RSA is supported.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.unsupported_certificate - } - }); - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - var b = record.fragment; - var msg = { - enc_pre_master_secret: readVector(b, 2).getBytes() - }; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } - // do rsa decryption - var privateKey = null; - if(c.getPrivateKey) { - try { - privateKey = c.getPrivateKey(c, c.session.serverCertificate); - privateKey = forge.pki.privateKeyFromPem(privateKey); - } catch(ex) { - c.error(c, { - message: 'Could not get private key.', - cause: ex, - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.internal_error + if (data.hasOwnProperty('unique-identifier')) { + obj['unique-identifier'] = _ApiClient["default"].convertToType(data['unique-identifier'], 'String'); } - }); + } + + return obj; } - } + }]); - if(privateKey === null) { - return c.error(c, { - message: 'No private key set.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.internal_error - } - }); - } + return UpdateAuthMethodSAML; +}(); +/** + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 + */ - try { - // decrypt 48-byte pre-master secret - var sp = c.session.sp; - sp.pre_master_secret = privateKey.decrypt(msg.enc_pre_master_secret); - - // ensure client hello version matches first 2 bytes - var version = c.session.clientHelloVersion; - if(version.major !== sp.pre_master_secret.charCodeAt(0) || - version.minor !== sp.pre_master_secret.charCodeAt(1)) { - // error, do not send alert (see BLEI attack below) - throw new Error('TLS version rollback attack detected.'); - } - } catch(ex) { - /* Note: Daniel Bleichenbacher [BLEI] can be used to attack a - TLS server which is using PKCS#1 encoded RSA, so instead of - failing here, we generate 48 random bytes and use that as - the pre-master secret. */ - sp.pre_master_secret = forge.random.getBytes(48); - } - - // expect a CertificateVerify message if a Certificate was received that - // does not have fixed Diffie-Hellman params, otherwise expect - // ChangeCipherSpec - c.expect = CCC; - if(c.session.clientCertificate !== null) { - // only RSA support, so expect CertificateVerify - // TODO: support Diffie-Hellman - c.expect = CCV; - } - - // continue - c.process(); -}; - -/** - * Called when a client receives a CertificateRequest record. - * - * When this message will be sent: - * A non-anonymous server can optionally request a certificate from the - * client, if appropriate for the selected cipher suite. This message, if - * sent, will immediately follow the Server Key Exchange message (if it is - * sent; otherwise, the Server Certificate message). - * - * enum { - * rsa_sign(1), dss_sign(2), rsa_fixed_dh(3), dss_fixed_dh(4), - * rsa_ephemeral_dh_RESERVED(5), dss_ephemeral_dh_RESERVED(6), - * fortezza_dms_RESERVED(20), (255) - * } ClientCertificateType; - * - * opaque DistinguishedName<1..2^16-1>; - * - * struct { - * ClientCertificateType certificate_types<1..2^8-1>; - * SignatureAndHashAlgorithm supported_signature_algorithms<2^16-1>; - * DistinguishedName certificate_authorities<0..2^16-1>; - * } CertificateRequest; - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleCertificateRequest = function(c, record, length) { - // minimum of 3 bytes in message - if(length < 3) { - return c.error(c, { - message: 'Invalid CertificateRequest. Message too short.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.illegal_parameter - } - }); - } - // TODO: TLS 1.2+ has different format including - // SignatureAndHashAlgorithm after cert types - var b = record.fragment; - var msg = { - certificate_types: readVector(b, 1), - certificate_authorities: readVector(b, 2) - }; +UpdateAuthMethodSAML.prototype['access-expires'] = 0; +/** + * Allowed redirect URIs after the authentication + * @member {Array.} allowed-redirect-uri + */ - // save certificate request in session - c.session.certificateRequest = msg; +UpdateAuthMethodSAML.prototype['allowed-redirect-uri'] = undefined; +/** + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips + */ - // expect a ServerHelloDone message next - c.expect = SHD; +UpdateAuthMethodSAML.prototype['bound-ips'] = undefined; +/** + * Auth Method description + * @member {String} description + */ - // continue - c.process(); -}; +UpdateAuthMethodSAML.prototype['description'] = undefined; +/** + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ +UpdateAuthMethodSAML.prototype['force-sub-claims'] = undefined; /** - * Called when a server receives a CertificateVerify record. - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips */ -tls.handleCertificateVerify = function(c, record, length) { - if(length < 2) { - return c.error(c, { - message: 'Invalid CertificateVerify. Message too short.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.illegal_parameter - } - }); - } - // rewind to get full bytes for message so it can be manually - // digested below (special case for CertificateVerify messages because - // they must be digested *after* handling as opposed to all others) - var b = record.fragment; - b.read -= 4; - var msgBytes = b.bytes(); - b.read += 4; +UpdateAuthMethodSAML.prototype['gw-bound-ips'] = undefined; +/** + * IDP metadata url + * @member {String} idp-metadata-url + */ - var msg = { - signature: readVector(b, 2).getBytes() - }; +UpdateAuthMethodSAML.prototype['idp-metadata-url'] = undefined; +/** + * IDP metadata xml data + * @member {String} idp-metadata-xml-data + */ - // TODO: add support for DSA +UpdateAuthMethodSAML.prototype['idp-metadata-xml-data'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - // generate data to verify - var verify = forge.util.createBuffer(); - verify.putBuffer(c.session.md5.digest()); - verify.putBuffer(c.session.sha1.digest()); - verify = verify.getBytes(); +UpdateAuthMethodSAML.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ - try { - var cert = c.session.clientCertificate; - /*b = forge.pki.rsa.decrypt( - msg.signature, cert.publicKey, true, verify.length); - if(b !== verify) {*/ - if(!cert.publicKey.verify(verify, msg.signature, 'NONE')) { - throw new Error('CertificateVerify signature does not match.'); - } - - // digest message now that it has been handled - c.session.md5.update(msgBytes); - c.session.sha1.update(msgBytes); - } catch(ex) { - return c.error(c, { - message: 'Bad signature in CertificateVerify.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.handshake_failure - } - }); - } +UpdateAuthMethodSAML.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ - // expect ChangeCipherSpec - c.expect = CCC; +UpdateAuthMethodSAML.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ - // continue - c.process(); -}; +UpdateAuthMethodSAML.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ +UpdateAuthMethodSAML.prototype['product-type'] = undefined; /** - * Called when a client receives a ServerHelloDone record. - * - * When this message will be sent: - * The server hello done message is sent by the server to indicate the end - * of the server hello and associated messages. After sending this message - * the server will wait for a client response. - * - * Meaning of this message: - * This message means that the server is done sending messages to support - * the key exchange, and the client can proceed with its phase of the key - * exchange. - * - * Upon receipt of the server hello done message the client should verify - * that the server provided a valid certificate if required and check that - * the server hello parameters are acceptable. - * - * struct {} ServerHelloDone; - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. + * A list of additional sub claims delimiters (relevant only for SAML, OIDC, OAuth2/JWT) + * @member {Array.} subclaims-delimiters */ -tls.handleServerHelloDone = function(c, record, length) { - // len must be 0 bytes - if(length > 0) { - return c.error(c, { - message: 'Invalid ServerHelloDone message. Invalid length.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.record_overflow - } - }); - } - if(c.serverCertificate === null) { - // no server certificate was provided - var error = { - message: 'No server certificate provided. Not enough security.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.insufficient_security - } - }; +UpdateAuthMethodSAML.prototype['subclaims-delimiters'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - // call application callback - var depth = 0; - var ret = c.verify(c, error.alert.description, depth, []); - if(ret !== true) { - // check for custom alert info - if(ret || ret === 0) { - // set custom message and alert description - if(typeof ret === 'object' && !forge.util.isArray(ret)) { - if(ret.message) { - error.message = ret.message; - } - if(ret.alert) { - error.alert.description = ret.alert; - } - } else if(typeof ret === 'number') { - // set custom alert description - error.alert.description = ret; - } - } +UpdateAuthMethodSAML.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - // send error - return c.error(c, error); - } - } +UpdateAuthMethodSAML.prototype['uid-token'] = undefined; +/** + * A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization. + * @member {String} unique-identifier + */ - // create client certificate message if requested - if(c.session.certificateRequest !== null) { - record = tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createCertificate(c) - }); - tls.queue(c, record); - } +UpdateAuthMethodSAML.prototype['unique-identifier'] = undefined; +var _default = UpdateAuthMethodSAML; +exports["default"] = _default; - // create client key exchange message - record = tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createClientKeyExchange(c) - }); - tls.queue(c, record); - - // expect no messages until the following callback has been called - c.expect = SER; - - // create callback to handle client signature (for client-certs) - var callback = function(c, signature) { - if(c.session.certificateRequest !== null && - c.session.clientCertificate !== null) { - // create certificate verify message - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createCertificateVerify(c, signature) - })); - } +/***/ }), - // create change cipher spec message - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.change_cipher_spec, - data: tls.createChangeCipherSpec() - })); +/***/ 4775: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // create pending state - c.state.pending = tls.createConnectionState(c); +"use strict"; - // change current write state to pending write state - c.state.current.write = c.state.pending.write; - // create finished message - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createFinished(c) - })); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // expect a server ChangeCipherSpec message next - c.expect = SCC; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // send records - tls.flush(c); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // continue - c.process(); - }; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // if there is no certificate request or no client certificate, do - // callback immediately - if(c.session.certificateRequest === null || - c.session.clientCertificate === null) { - return callback(c, null); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // otherwise get the client signature - tls.getClientSignature(c, callback); -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Called when a ChangeCipherSpec record is received. - * - * @param c the connection. - * @param record the record. + * The UpdateAuthMethodUniversalIdentity model module. + * @module model/UpdateAuthMethodUniversalIdentity + * @version 3.6.3 */ -tls.handleChangeCipherSpec = function(c, record) { - if(record.fragment.getByte() !== 0x01) { - return c.error(c, { - message: 'Invalid ChangeCipherSpec message received.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.illegal_parameter - } - }); - } +var UpdateAuthMethodUniversalIdentity = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAuthMethodUniversalIdentity. + * updateAuthMethodUniversalIdentity is a command that updates a new auth method that will be able to authenticate using Akeyless Universal Identity. + * @alias module:model/UpdateAuthMethodUniversalIdentity + * @param name {String} Auth Method name + */ + function UpdateAuthMethodUniversalIdentity(name) { + _classCallCheck(this, UpdateAuthMethodUniversalIdentity); - // create pending state if: - // 1. Resuming session in client mode OR - // 2. NOT resuming session in server mode - var client = (c.entity === tls.ConnectionEnd.client); - if((c.session.resuming && client) || (!c.session.resuming && !client)) { - c.state.pending = tls.createConnectionState(c); - } - - // change current read state to pending read state - c.state.current.read = c.state.pending.read; - - // clear pending state if: - // 1. NOT resuming session in client mode OR - // 2. resuming a session in server mode - if((!c.session.resuming && client) || (c.session.resuming && !client)) { - c.state.pending = null; - } - - // expect a Finished record next - c.expect = client ? SFI : CFI; - - // continue - c.process(); -}; - -/** - * Called when a Finished record is received. - * - * When this message will be sent: - * A finished message is always sent immediately after a change - * cipher spec message to verify that the key exchange and - * authentication processes were successful. It is essential that a - * change cipher spec message be received between the other - * handshake messages and the Finished message. - * - * Meaning of this message: - * The finished message is the first protected with the just- - * negotiated algorithms, keys, and secrets. Recipients of finished - * messages must verify that the contents are correct. Once a side - * has sent its Finished message and received and validated the - * Finished message from its peer, it may begin to send and receive - * application data over the connection. - * - * struct { - * opaque verify_data[verify_data_length]; - * } Finished; - * - * verify_data - * PRF(master_secret, finished_label, Hash(handshake_messages)) - * [0..verify_data_length-1]; - * - * finished_label - * For Finished messages sent by the client, the string - * "client finished". For Finished messages sent by the server, the - * string "server finished". - * - * verify_data_length depends on the cipher suite. If it is not specified - * by the cipher suite, then it is 12. Versions of TLS < 1.2 always used - * 12 bytes. - * - * @param c the connection. - * @param record the record. - * @param length the length of the handshake message. - */ -tls.handleFinished = function(c, record, length) { - // rewind to get full bytes for message so it can be manually - // digested below (special case for Finished messages because they - // must be digested *after* handling as opposed to all others) - var b = record.fragment; - b.read -= 4; - var msgBytes = b.bytes(); - b.read += 4; - - // message contains only verify_data - var vd = record.fragment.getBytes(); - - // ensure verify data is correct - b = forge.util.createBuffer(); - b.putBuffer(c.session.md5.digest()); - b.putBuffer(c.session.sha1.digest()); - - // set label based on entity type - var client = (c.entity === tls.ConnectionEnd.client); - var label = client ? 'server finished' : 'client finished'; - - // TODO: determine prf function and verify length for TLS 1.2 - var sp = c.session.sp; - var vdl = 12; - var prf = prf_TLS1; - b = prf(sp.master_secret, label, b.getBytes(), vdl); - if(b.getBytes() !== vd) { - return c.error(c, { - message: 'Invalid verify_data in Finished message.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.decrypt_error - } - }); + UpdateAuthMethodUniversalIdentity.initialize(this, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // digest finished message now that it has been handled - c.session.md5.update(msgBytes); - c.session.sha1.update(msgBytes); - - // resuming session as client or NOT resuming session as server - if((c.session.resuming && client) || (!c.session.resuming && !client)) { - // create change cipher spec message - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.change_cipher_spec, - data: tls.createChangeCipherSpec() - })); - - // change current write state to pending write state, clear pending - c.state.current.write = c.state.pending.write; - c.state.pending = null; - // create finished message - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createFinished(c) - })); - } + _createClass(UpdateAuthMethodUniversalIdentity, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a UpdateAuthMethodUniversalIdentity from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAuthMethodUniversalIdentity} obj Optional instance to populate. + * @return {module:model/UpdateAuthMethodUniversalIdentity} The populated UpdateAuthMethodUniversalIdentity instance. + */ - // expect application data next - c.expect = client ? SAD : CAD; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAuthMethodUniversalIdentity(); - // handshake complete - c.handshaking = false; - ++c.handshakes; + if (data.hasOwnProperty('access-expires')) { + obj['access-expires'] = _ApiClient["default"].convertToType(data['access-expires'], 'Number'); + } - // save access to peer certificate - c.peerCertificate = client ? - c.session.serverCertificate : c.session.clientCertificate; + if (data.hasOwnProperty('bound-ips')) { + obj['bound-ips'] = _ApiClient["default"].convertToType(data['bound-ips'], ['String']); + } - // send records - tls.flush(c); + if (data.hasOwnProperty('deny-inheritance')) { + obj['deny-inheritance'] = _ApiClient["default"].convertToType(data['deny-inheritance'], 'Boolean'); + } - // now connected - c.isConnected = true; - c.connected(c); + if (data.hasOwnProperty('deny-rotate')) { + obj['deny-rotate'] = _ApiClient["default"].convertToType(data['deny-rotate'], 'Boolean'); + } - // continue - c.process(); -}; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -/** - * Called when an Alert record is received. - * - * @param c the connection. - * @param record the record. - */ -tls.handleAlert = function(c, record) { - // read alert - var b = record.fragment; - var alert = { - level: b.getByte(), - description: b.getByte() - }; + if (data.hasOwnProperty('force-sub-claims')) { + obj['force-sub-claims'] = _ApiClient["default"].convertToType(data['force-sub-claims'], 'Boolean'); + } - // TODO: consider using a table? - // get appropriate message - var msg; - switch(alert.description) { - case tls.Alert.Description.close_notify: - msg = 'Connection closed.'; - break; - case tls.Alert.Description.unexpected_message: - msg = 'Unexpected message.'; - break; - case tls.Alert.Description.bad_record_mac: - msg = 'Bad record MAC.'; - break; - case tls.Alert.Description.decryption_failed: - msg = 'Decryption failed.'; - break; - case tls.Alert.Description.record_overflow: - msg = 'Record overflow.'; - break; - case tls.Alert.Description.decompression_failure: - msg = 'Decompression failed.'; - break; - case tls.Alert.Description.handshake_failure: - msg = 'Handshake failure.'; - break; - case tls.Alert.Description.bad_certificate: - msg = 'Bad certificate.'; - break; - case tls.Alert.Description.unsupported_certificate: - msg = 'Unsupported certificate.'; - break; - case tls.Alert.Description.certificate_revoked: - msg = 'Certificate revoked.'; - break; - case tls.Alert.Description.certificate_expired: - msg = 'Certificate expired.'; - break; - case tls.Alert.Description.certificate_unknown: - msg = 'Certificate unknown.'; - break; - case tls.Alert.Description.illegal_parameter: - msg = 'Illegal parameter.'; - break; - case tls.Alert.Description.unknown_ca: - msg = 'Unknown certificate authority.'; - break; - case tls.Alert.Description.access_denied: - msg = 'Access denied.'; - break; - case tls.Alert.Description.decode_error: - msg = 'Decode error.'; - break; - case tls.Alert.Description.decrypt_error: - msg = 'Decrypt error.'; - break; - case tls.Alert.Description.export_restriction: - msg = 'Export restriction.'; - break; - case tls.Alert.Description.protocol_version: - msg = 'Unsupported protocol version.'; - break; - case tls.Alert.Description.insufficient_security: - msg = 'Insufficient security.'; - break; - case tls.Alert.Description.internal_error: - msg = 'Internal error.'; - break; - case tls.Alert.Description.user_canceled: - msg = 'User canceled.'; - break; - case tls.Alert.Description.no_renegotiation: - msg = 'Renegotiation not supported.'; - break; - default: - msg = 'Unknown error.'; - break; - } - - // close connection on close_notify, not an error - if(alert.description === tls.Alert.Description.close_notify) { - return c.close(); - } - - // call error handler - c.error(c, { - message: msg, - send: false, - // origin is the opposite end - origin: (c.entity === tls.ConnectionEnd.client) ? 'server' : 'client', - alert: alert - }); + if (data.hasOwnProperty('gw-bound-ips')) { + obj['gw-bound-ips'] = _ApiClient["default"].convertToType(data['gw-bound-ips'], ['String']); + } - // continue - c.process(); -}; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/** - * Called when a Handshake record is received. - * - * @param c the connection. - * @param record the record. - */ -tls.handleHandshake = function(c, record) { - // get the handshake type and message length - var b = record.fragment; - var type = b.getByte(); - var length = b.getInt24(); + if (data.hasOwnProperty('jwt-ttl')) { + obj['jwt-ttl'] = _ApiClient["default"].convertToType(data['jwt-ttl'], 'Number'); + } - // see if the record fragment doesn't yet contain the full message - if(length > b.length()) { - // cache the record, clear its fragment, and reset the buffer read - // pointer before the type and length were read - c.fragmented = record; - record.fragment = forge.util.createBuffer(); - b.read -= 4; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - // continue - return c.process(); - } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - // full message now available, clear cache, reset read pointer to - // before type and length - c.fragmented = null; - b.read -= 4; + if (data.hasOwnProperty('product-type')) { + obj['product-type'] = _ApiClient["default"].convertToType(data['product-type'], ['String']); + } - // save the handshake bytes for digestion after handler is found - // (include type and length of handshake msg) - var bytes = b.bytes(length + 4); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - // restore read pointer - b.read += 4; + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } - // handle expected message - if(type in hsTable[c.entity][c.expect]) { - // initialize server session - if(c.entity === tls.ConnectionEnd.server && !c.open && !c.fail) { - c.handshaking = true; - c.session = { - version: null, - extensions: { - server_name: { - serverNameList: [] - } - }, - cipherSuite: null, - compressionMethod: null, - serverCertificate: null, - clientCertificate: null, - md5: forge.md.md5.create(), - sha1: forge.md.sha1.create() - }; - } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - /* Update handshake messages digest. Finished and CertificateVerify - messages are not digested here. They can't be digested as part of - the verify_data that they contain. These messages are manually - digested in their handlers. HelloRequest messages are simply never - included in the handshake message digest according to spec. */ - if(type !== tls.HandshakeType.hello_request && - type !== tls.HandshakeType.certificate_verify && - type !== tls.HandshakeType.finished) { - c.session.md5.update(bytes); - c.session.sha1.update(bytes); + return obj; } + }]); - // handle specific handshake type record - hsTable[c.entity][c.expect][type](c, record, length); - } else { - // unexpected record - tls.handleUnexpected(c, record); - } -}; - + return UpdateAuthMethodUniversalIdentity; +}(); /** - * Called when an ApplicationData record is received. - * - * @param c the connection. - * @param record the record. + * Access expiration date in Unix timestamp (select 0 for access without expiry date) + * @member {Number} access-expires + * @default 0 */ -tls.handleApplicationData = function(c, record) { - // buffer data, notify that its ready - c.data.putBuffer(record.fragment); - c.dataReady(c); - // continue - c.process(); -}; +UpdateAuthMethodUniversalIdentity.prototype['access-expires'] = 0; /** - * Called when a Heartbeat record is received. - * - * @param c the connection. - * @param record the record. + * A CIDR whitelist with the IPs that the access is restricted to + * @member {Array.} bound-ips */ -tls.handleHeartbeat = function(c, record) { - // get the heartbeat type and payload - var b = record.fragment; - var type = b.getByte(); - var length = b.getInt16(); - var payload = b.getBytes(length); - - if(type === tls.HeartbeatMessageType.heartbeat_request) { - // discard request during handshake or if length is too large - if(c.handshaking || length > payload.length) { - // continue - return c.process(); - } - // retransmit payload - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.heartbeat, - data: tls.createHeartbeat( - tls.HeartbeatMessageType.heartbeat_response, payload) - })); - tls.flush(c); - } else if(type === tls.HeartbeatMessageType.heartbeat_response) { - // check payload against expected payload, discard heartbeat if no match - if(payload !== c.expectedHeartbeatPayload) { - // continue - return c.process(); - } - - // notify that a valid heartbeat was received - if(c.heartbeatReceived) { - c.heartbeatReceived(c, forge.util.createBuffer(payload)); - } - } - - // continue - c.process(); -}; - -/** - * The transistional state tables for receiving TLS records. It maps the - * current TLS engine state and a received record to a function to handle the - * record and update the state. - * - * For instance, if the current state is SHE, then the TLS engine is expecting - * a ServerHello record. Once a record is received, the handler function is - * looked up using the state SHE and the record's content type. - * - * The resulting function will either be an error handler or a record handler. - * The function will take whatever action is appropriate and update the state - * for the next record. - * - * The states are all based on possible server record types. Note that the - * client will never specifically expect to receive a HelloRequest or an alert - * from the server so there is no state that reflects this. These messages may - * occur at any time. - * - * There are two tables for mapping states because there is a second tier of - * types for handshake messages. Once a record with a content type of handshake - * is received, the handshake record handler will look up the handshake type in - * the secondary map to get its appropriate handler. - * - * Valid message orders are as follows: - * - * =======================FULL HANDSHAKE====================== - * Client Server - * - * ClientHello --------> - * ServerHello - * Certificate* - * ServerKeyExchange* - * CertificateRequest* - * <-------- ServerHelloDone - * Certificate* - * ClientKeyExchange - * CertificateVerify* - * [ChangeCipherSpec] - * Finished --------> - * [ChangeCipherSpec] - * <-------- Finished - * Application Data <-------> Application Data - * - * =====================SESSION RESUMPTION===================== - * Client Server - * - * ClientHello --------> - * ServerHello - * [ChangeCipherSpec] - * <-------- Finished - * [ChangeCipherSpec] - * Finished --------> - * Application Data <-------> Application Data - */ -// client expect states (indicate which records are expected to be received) -var SHE = 0; // rcv server hello -var SCE = 1; // rcv server certificate -var SKE = 2; // rcv server key exchange -var SCR = 3; // rcv certificate request -var SHD = 4; // rcv server hello done -var SCC = 5; // rcv change cipher spec -var SFI = 6; // rcv finished -var SAD = 7; // rcv application data -var SER = 8; // not expecting any messages at this point - -// server expect states -var CHE = 0; // rcv client hello -var CCE = 1; // rcv client certificate -var CKE = 2; // rcv client key exchange -var CCV = 3; // rcv certificate verify -var CCC = 4; // rcv change cipher spec -var CFI = 5; // rcv finished -var CAD = 6; // rcv application data -var CER = 7; // not expecting any messages at this point - -// map client current expect state and content type to function -var __ = tls.handleUnexpected; -var R0 = tls.handleChangeCipherSpec; -var R1 = tls.handleAlert; -var R2 = tls.handleHandshake; -var R3 = tls.handleApplicationData; -var R4 = tls.handleHeartbeat; -var ctTable = []; -ctTable[tls.ConnectionEnd.client] = [ -// CC,AL,HS,AD,HB -/*SHE*/[__,R1,R2,__,R4], -/*SCE*/[__,R1,R2,__,R4], -/*SKE*/[__,R1,R2,__,R4], -/*SCR*/[__,R1,R2,__,R4], -/*SHD*/[__,R1,R2,__,R4], -/*SCC*/[R0,R1,__,__,R4], -/*SFI*/[__,R1,R2,__,R4], -/*SAD*/[__,R1,R2,R3,R4], -/*SER*/[__,R1,R2,__,R4] -]; -// map server current expect state and content type to function -ctTable[tls.ConnectionEnd.server] = [ -// CC,AL,HS,AD -/*CHE*/[__,R1,R2,__,R4], -/*CCE*/[__,R1,R2,__,R4], -/*CKE*/[__,R1,R2,__,R4], -/*CCV*/[__,R1,R2,__,R4], -/*CCC*/[R0,R1,__,__,R4], -/*CFI*/[__,R1,R2,__,R4], -/*CAD*/[__,R1,R2,R3,R4], -/*CER*/[__,R1,R2,__,R4] -]; +UpdateAuthMethodUniversalIdentity.prototype['bound-ips'] = undefined; +/** + * Deny from root to create children + * @member {Boolean} deny-inheritance + */ -// map client current expect state and handshake type to function -var H0 = tls.handleHelloRequest; -var H1 = tls.handleServerHello; -var H2 = tls.handleCertificate; -var H3 = tls.handleServerKeyExchange; -var H4 = tls.handleCertificateRequest; -var H5 = tls.handleServerHelloDone; -var H6 = tls.handleFinished; -var hsTable = []; -hsTable[tls.ConnectionEnd.client] = [ -// HR,01,SH,03,04,05,06,07,08,09,10,SC,SK,CR,HD,15,CK,17,18,19,FI -/*SHE*/[__,__,H1,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], -/*SCE*/[H0,__,__,__,__,__,__,__,__,__,__,H2,H3,H4,H5,__,__,__,__,__,__], -/*SKE*/[H0,__,__,__,__,__,__,__,__,__,__,__,H3,H4,H5,__,__,__,__,__,__], -/*SCR*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,H4,H5,__,__,__,__,__,__], -/*SHD*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,H5,__,__,__,__,__,__], -/*SCC*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], -/*SFI*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H6], -/*SAD*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], -/*SER*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__] -]; +UpdateAuthMethodUniversalIdentity.prototype['deny-inheritance'] = undefined; +/** + * Deny from the token to rotate + * @member {Boolean} deny-rotate + */ -// map server current expect state and handshake type to function -// Note: CAD[CH] does not map to FB because renegotation is prohibited -var H7 = tls.handleClientHello; -var H8 = tls.handleClientKeyExchange; -var H9 = tls.handleCertificateVerify; -hsTable[tls.ConnectionEnd.server] = [ -// 01,CH,02,03,04,05,06,07,08,09,10,CC,12,13,14,CV,CK,17,18,19,FI -/*CHE*/[__,H7,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], -/*CCE*/[__,__,__,__,__,__,__,__,__,__,__,H2,__,__,__,__,__,__,__,__,__], -/*CKE*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H8,__,__,__,__], -/*CCV*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H9,__,__,__,__,__], -/*CCC*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], -/*CFI*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H6], -/*CAD*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], -/*CER*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__] -]; +UpdateAuthMethodUniversalIdentity.prototype['deny-rotate'] = undefined; +/** + * Auth Method description + * @member {String} description + */ +UpdateAuthMethodUniversalIdentity.prototype['description'] = undefined; /** - * Generates the master_secret and keys using the given security parameters. - * - * The security parameters for a TLS connection state are defined as such: - * - * struct { - * ConnectionEnd entity; - * PRFAlgorithm prf_algorithm; - * BulkCipherAlgorithm bulk_cipher_algorithm; - * CipherType cipher_type; - * uint8 enc_key_length; - * uint8 block_length; - * uint8 fixed_iv_length; - * uint8 record_iv_length; - * MACAlgorithm mac_algorithm; - * uint8 mac_length; - * uint8 mac_key_length; - * CompressionMethod compression_algorithm; - * opaque master_secret[48]; - * opaque client_random[32]; - * opaque server_random[32]; - * } SecurityParameters; - * - * Note that this definition is from TLS 1.2. In TLS 1.0 some of these - * parameters are ignored because, for instance, the PRFAlgorithm is a - * builtin-fixed algorithm combining iterations of MD5 and SHA-1 in TLS 1.0. - * - * The Record Protocol requires an algorithm to generate keys required by the - * current connection state. - * - * The master secret is expanded into a sequence of secure bytes, which is then - * split to a client write MAC key, a server write MAC key, a client write - * encryption key, and a server write encryption key. In TLS 1.0 a client write - * IV and server write IV are also generated. Each of these is generated from - * the byte sequence in that order. Unused values are empty. In TLS 1.2, some - * AEAD ciphers may additionally require a client write IV and a server write - * IV (see Section 6.2.3.3). - * - * When keys, MAC keys, and IVs are generated, the master secret is used as an - * entropy source. - * - * To generate the key material, compute: - * - * master_secret = PRF(pre_master_secret, "master secret", - * ClientHello.random + ServerHello.random) - * - * key_block = PRF(SecurityParameters.master_secret, - * "key expansion", - * SecurityParameters.server_random + - * SecurityParameters.client_random); - * - * until enough output has been generated. Then, the key_block is - * partitioned as follows: - * - * client_write_MAC_key[SecurityParameters.mac_key_length] - * server_write_MAC_key[SecurityParameters.mac_key_length] - * client_write_key[SecurityParameters.enc_key_length] - * server_write_key[SecurityParameters.enc_key_length] - * client_write_IV[SecurityParameters.fixed_iv_length] - * server_write_IV[SecurityParameters.fixed_iv_length] - * - * In TLS 1.2, the client_write_IV and server_write_IV are only generated for - * implicit nonce techniques as described in Section 3.2.1 of [AEAD]. This - * implementation uses TLS 1.0 so IVs are generated. - * - * Implementation note: The currently defined cipher suite which requires the - * most material is AES_256_CBC_SHA256. It requires 2 x 32 byte keys and 2 x 32 - * byte MAC keys, for a total 128 bytes of key material. In TLS 1.0 it also - * requires 2 x 16 byte IVs, so it actually takes 160 bytes of key material. - * - * @param c the connection. - * @param sp the security parameters to use. - * - * @return the security keys. - */ -tls.generateKeys = function(c, sp) { - // TLS_RSA_WITH_AES_128_CBC_SHA (required to be compliant with TLS 1.2) & - // TLS_RSA_WITH_AES_256_CBC_SHA are the only cipher suites implemented - // at present - - // TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA is required to be compliant with - // TLS 1.0 but we don't care right now because AES is better and we have - // an implementation for it - - // TODO: TLS 1.2 implementation - /* - // determine the PRF - var prf; - switch(sp.prf_algorithm) { - case tls.PRFAlgorithm.tls_prf_sha256: - prf = prf_sha256; - break; - default: - // should never happen - throw new Error('Invalid PRF'); - } - */ + * if true: enforce role-association must include sub claims + * @member {Boolean} force-sub-claims + */ - // TLS 1.0/1.1 implementation - var prf = prf_TLS1; +UpdateAuthMethodUniversalIdentity.prototype['force-sub-claims'] = undefined; +/** + * A CIDR whitelist with the GW IPs that the access is restricted to + * @member {Array.} gw-bound-ips + */ - // concatenate server and client random - var random = sp.client_random + sp.server_random; +UpdateAuthMethodUniversalIdentity.prototype['gw-bound-ips'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - // only create master secret if session is new - if(!c.session.resuming) { - // create master secret, clean up pre-master secret - sp.master_secret = prf( - sp.pre_master_secret, 'master secret', random, 48).bytes(); - sp.pre_master_secret = null; - } +UpdateAuthMethodUniversalIdentity.prototype['json'] = false; +/** + * Jwt TTL + * @member {Number} jwt-ttl + * @default 0 + */ - // generate the amount of key material needed - random = sp.server_random + sp.client_random; - var length = 2 * sp.mac_key_length + 2 * sp.enc_key_length; +UpdateAuthMethodUniversalIdentity.prototype['jwt-ttl'] = 0; +/** + * Auth Method name + * @member {String} name + */ - // include IV for TLS/1.0 - var tls10 = (c.version.major === tls.Versions.TLS_1_0.major && - c.version.minor === tls.Versions.TLS_1_0.minor); - if(tls10) { - length += 2 * sp.fixed_iv_length; - } - var km = prf(sp.master_secret, 'key expansion', random, length); +UpdateAuthMethodUniversalIdentity.prototype['name'] = undefined; +/** + * Auth Method new name + * @member {String} new-name + */ - // split the key material into the MAC and encryption keys - var rval = { - client_write_MAC_key: km.getBytes(sp.mac_key_length), - server_write_MAC_key: km.getBytes(sp.mac_key_length), - client_write_key: km.getBytes(sp.enc_key_length), - server_write_key: km.getBytes(sp.enc_key_length) - }; +UpdateAuthMethodUniversalIdentity.prototype['new-name'] = undefined; +/** + * Choose the relevant product type for the auth method [sm, sra, pm, dp, ca] + * @member {Array.} product-type + */ - // include TLS 1.0 IVs - if(tls10) { - rval.client_write_IV = km.getBytes(sp.fixed_iv_length); - rval.server_write_IV = km.getBytes(sp.fixed_iv_length); - } +UpdateAuthMethodUniversalIdentity.prototype['product-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return rval; -}; +UpdateAuthMethodUniversalIdentity.prototype['token'] = undefined; +/** + * Token ttl + * @member {Number} ttl + * @default 60 + */ +UpdateAuthMethodUniversalIdentity.prototype['ttl'] = 60; /** - * Creates a new initialized TLS connection state. A connection state has - * a read mode and a write mode. - * - * compression state: - * The current state of the compression algorithm. - * - * cipher state: - * The current state of the encryption algorithm. This will consist of the - * scheduled key for that connection. For stream ciphers, this will also - * contain whatever state information is necessary to allow the stream to - * continue to encrypt or decrypt data. - * - * MAC key: - * The MAC key for the connection. - * - * sequence number: - * Each connection state contains a sequence number, which is maintained - * separately for read and write states. The sequence number MUST be set to - * zero whenever a connection state is made the active state. Sequence - * numbers are of type uint64 and may not exceed 2^64-1. Sequence numbers do - * not wrap. If a TLS implementation would need to wrap a sequence number, - * it must renegotiate instead. A sequence number is incremented after each - * record: specifically, the first record transmitted under a particular - * connection state MUST use sequence number 0. - * - * @param c the connection. - * - * @return the new initialized TLS connection state. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -tls.createConnectionState = function(c) { - var client = (c.entity === tls.ConnectionEnd.client); - var createMode = function() { - var mode = { - // two 32-bit numbers, first is most significant - sequenceNumber: [0, 0], - macKey: null, - macLength: 0, - macFunction: null, - cipherState: null, - cipherFunction: function(record) {return true;}, - compressionState: null, - compressFunction: function(record) {return true;}, - updateSequenceNumber: function() { - if(mode.sequenceNumber[1] === 0xFFFFFFFF) { - mode.sequenceNumber[1] = 0; - ++mode.sequenceNumber[0]; - } else { - ++mode.sequenceNumber[1]; - } - } - }; - return mode; - }; - var state = { - read: createMode(), - write: createMode() - }; +UpdateAuthMethodUniversalIdentity.prototype['uid-token'] = undefined; +var _default = UpdateAuthMethodUniversalIdentity; +exports["default"] = _default; - // update function in read mode will decrypt then decompress a record - state.read.update = function(c, record) { - if(!state.read.cipherFunction(record, state.read)) { - c.error(c, { - message: 'Could not decrypt record or bad MAC.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - // doesn't matter if decryption failed or MAC was - // invalid, return the same error so as not to reveal - // which one occurred - description: tls.Alert.Description.bad_record_mac - } - }); - } else if(!state.read.compressFunction(c, record, state.read)) { - c.error(c, { - message: 'Could not decompress record.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.decompression_failure - } - }); - } - return !c.fail; - }; +/***/ }), - // update function in write mode will compress then encrypt a record - state.write.update = function(c, record) { - if(!state.write.compressFunction(c, record, state.write)) { - // error, but do not send alert since it would require - // compression as well - c.error(c, { - message: 'Could not compress record.', - send: false, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.internal_error - } - }); - } else if(!state.write.cipherFunction(record, state.write)) { - // error, but do not send alert since it would require - // encryption as well - c.error(c, { - message: 'Could not encrypt record.', - send: false, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.internal_error - } - }); - } - return !c.fail; - }; +/***/ 10443: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // handle security parameters - if(c.session) { - var sp = c.session.sp; - c.session.cipherSuite.initSecurityParameters(sp); +"use strict"; - // generate keys - sp.keys = tls.generateKeys(c, sp); - state.read.macKey = client ? - sp.keys.server_write_MAC_key : sp.keys.client_write_MAC_key; - state.write.macKey = client ? - sp.keys.client_write_MAC_key : sp.keys.server_write_MAC_key; - // cipher suite setup - c.session.cipherSuite.initConnectionState(state, c, sp); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // compression setup - switch(sp.compression_algorithm) { - case tls.CompressionMethod.none: - break; - case tls.CompressionMethod.deflate: - state.read.compressFunction = inflate; - state.write.compressFunction = deflate; - break; - default: - throw new Error('Unsupported compression algorithm.'); - } - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - return state; -}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/** - * Creates a Random structure. - * - * struct { - * uint32 gmt_unix_time; - * opaque random_bytes[28]; - * } Random; - * - * gmt_unix_time: - * The current time and date in standard UNIX 32-bit format (seconds since - * the midnight starting Jan 1, 1970, UTC, ignoring leap seconds) according - * to the sender's internal clock. Clocks are not required to be set - * correctly by the basic TLS protocol; higher-level or application - * protocols may define additional requirements. Note that, for historical - * reasons, the data element is named using GMT, the predecessor of the - * current worldwide time base, UTC. - * random_bytes: - * 28 bytes generated by a secure random number generator. - * - * @return the Random structure as a byte array. - */ -tls.createRandom = function() { - // get UTC milliseconds - var d = new Date(); - var utc = +d + d.getTimezoneOffset() * 60000; - var rval = forge.util.createBuffer(); - rval.putInt32(utc); - rval.putBytes(forge.random.getBytes(28)); - return rval; -}; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/** - * Creates a TLS record with the given type and data. - * - * @param c the connection. - * @param options: - * type: the record type. - * data: the plain text data in a byte buffer. - * - * @return the created record. - */ -tls.createRecord = function(c, options) { - if(!options.data) { - return null; - } - var record = { - type: options.type, - version: { - major: c.version.major, - minor: c.version.minor - }, - length: options.data.length(), - fragment: options.data - }; - return record; -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Creates a TLS alert record. - * - * @param c the connection. - * @param alert: - * level: the TLS alert level. - * description: the TLS alert description. - * - * @return the created alert record. + * The UpdateAzureTarget model module. + * @module model/UpdateAzureTarget + * @version 3.6.3 */ -tls.createAlert = function(c, alert) { - var b = forge.util.createBuffer(); - b.putByte(alert.level); - b.putByte(alert.description); - return tls.createRecord(c, { - type: tls.ContentType.alert, - data: b - }); -}; - -/* The structure of a TLS handshake message. - * - * struct { - * HandshakeType msg_type; // handshake type - * uint24 length; // bytes in message - * select(HandshakeType) { - * case hello_request: HelloRequest; - * case client_hello: ClientHello; - * case server_hello: ServerHello; - * case certificate: Certificate; - * case server_key_exchange: ServerKeyExchange; - * case certificate_request: CertificateRequest; - * case server_hello_done: ServerHelloDone; - * case certificate_verify: CertificateVerify; - * case client_key_exchange: ClientKeyExchange; - * case finished: Finished; - * } body; - * } Handshake; - */ - -/** - * Creates a ClientHello message. - * - * opaque SessionID<0..32>; - * enum { null(0), deflate(1), (255) } CompressionMethod; - * uint8 CipherSuite[2]; - * - * struct { - * ProtocolVersion client_version; - * Random random; - * SessionID session_id; - * CipherSuite cipher_suites<2..2^16-2>; - * CompressionMethod compression_methods<1..2^8-1>; - * select(extensions_present) { - * case false: - * struct {}; - * case true: - * Extension extensions<0..2^16-1>; - * }; - * } ClientHello; - * - * The extension format for extended client hellos and server hellos is: - * - * struct { - * ExtensionType extension_type; - * opaque extension_data<0..2^16-1>; - * } Extension; - * - * Here: - * - * - "extension_type" identifies the particular extension type. - * - "extension_data" contains information specific to the particular - * extension type. - * - * The extension types defined in this document are: - * - * enum { - * server_name(0), max_fragment_length(1), - * client_certificate_url(2), trusted_ca_keys(3), - * truncated_hmac(4), status_request(5), (65535) - * } ExtensionType; - * - * @param c the connection. - * - * @return the ClientHello byte buffer. - */ -tls.createClientHello = function(c) { - // save hello version - c.session.clientHelloVersion = { - major: c.version.major, - minor: c.version.minor - }; +var UpdateAzureTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAzureTarget. + * @alias module:model/UpdateAzureTarget + * @param name {String} Target name + */ + function UpdateAzureTarget(name) { + _classCallCheck(this, UpdateAzureTarget); - // create supported cipher suites - var cipherSuites = forge.util.createBuffer(); - for(var i = 0; i < c.cipherSuites.length; ++i) { - var cs = c.cipherSuites[i]; - cipherSuites.putByte(cs.id[0]); - cipherSuites.putByte(cs.id[1]); - } - var cSuites = cipherSuites.length(); - - // create supported compression methods, null always supported, but - // also support deflate if connection has inflate and deflate methods - var compressionMethods = forge.util.createBuffer(); - compressionMethods.putByte(tls.CompressionMethod.none); - // FIXME: deflate support disabled until issues with raw deflate data - // without zlib headers are resolved - /* - if(c.inflate !== null && c.deflate !== null) { - compressionMethods.putByte(tls.CompressionMethod.deflate); + UpdateAzureTarget.initialize(this, name); } - */ - var cMethods = compressionMethods.length(); - - // create TLS SNI (server name indication) extension if virtual host - // has been specified, see RFC 3546 - var extensions = forge.util.createBuffer(); - if(c.virtualHost) { - // create extension struct - var ext = forge.util.createBuffer(); - ext.putByte(0x00); // type server_name (ExtensionType is 2 bytes) - ext.putByte(0x00); - - /* In order to provide the server name, clients MAY include an - * extension of type "server_name" in the (extended) client hello. - * The "extension_data" field of this extension SHALL contain - * "ServerNameList" where: - * - * struct { - * NameType name_type; - * select(name_type) { - * case host_name: HostName; - * } name; - * } ServerName; - * - * enum { - * host_name(0), (255) - * } NameType; - * - * opaque HostName<1..2^16-1>; - * - * struct { - * ServerName server_name_list<1..2^16-1> - * } ServerNameList; - */ - var serverName = forge.util.createBuffer(); - serverName.putByte(0x00); // type host_name - writeVector(serverName, 2, forge.util.createBuffer(c.virtualHost)); - - // ServerNameList is in extension_data - var snList = forge.util.createBuffer(); - writeVector(snList, 2, serverName); - writeVector(ext, 2, snList); - extensions.putBuffer(ext); - } - var extLength = extensions.length(); - if(extLength > 0) { - // add extension vector length - extLength += 2; - } - - // determine length of the handshake message - // cipher suites and compression methods size will need to be - // updated if more get added to the list - var sessionId = c.session.id; - var length = - sessionId.length + 1 + // session ID vector - 2 + // version (major + minor) - 4 + 28 + // random time and random bytes - 2 + cSuites + // cipher suites vector - 1 + cMethods + // compression methods vector - extLength; // extensions vector - - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(tls.HandshakeType.client_hello); - rval.putInt24(length); // handshake length - rval.putByte(c.version.major); // major version - rval.putByte(c.version.minor); // minor version - rval.putBytes(c.session.sp.client_random); // random time + bytes - writeVector(rval, 1, forge.util.createBuffer(sessionId)); - writeVector(rval, 2, cipherSuites); - writeVector(rval, 1, compressionMethods); - if(extLength > 0) { - writeVector(rval, 2, extensions); - } - return rval; -}; - -/** - * Creates a ServerHello message. - * - * @param c the connection. - * - * @return the ServerHello byte buffer. - */ -tls.createServerHello = function(c) { - // determine length of the handshake message - var sessionId = c.session.id; - var length = - sessionId.length + 1 + // session ID vector - 2 + // version (major + minor) - 4 + 28 + // random time and random bytes - 2 + // chosen cipher suite - 1; // chosen compression method - - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(tls.HandshakeType.server_hello); - rval.putInt24(length); // handshake length - rval.putByte(c.version.major); // major version - rval.putByte(c.version.minor); // minor version - rval.putBytes(c.session.sp.server_random); // random time + bytes - writeVector(rval, 1, forge.util.createBuffer(sessionId)); - rval.putByte(c.session.cipherSuite.id[0]); - rval.putByte(c.session.cipherSuite.id[1]); - rval.putByte(c.session.compressionMethod); - return rval; -}; - -/** - * Creates a Certificate message. - * - * When this message will be sent: - * This is the first message the client can send after receiving a server - * hello done message and the first message the server can send after - * sending a ServerHello. This client message is only sent if the server - * requests a certificate. If no suitable certificate is available, the - * client should send a certificate message containing no certificates. If - * client authentication is required by the server for the handshake to - * continue, it may respond with a fatal handshake failure alert. - * - * opaque ASN.1Cert<1..2^24-1>; - * - * struct { - * ASN.1Cert certificate_list<0..2^24-1>; - * } Certificate; - * - * @param c the connection. - * - * @return the Certificate byte buffer. - */ -tls.createCertificate = function(c) { - // TODO: check certificate request to ensure types are supported - - // get a certificate (a certificate as a PEM string) - var client = (c.entity === tls.ConnectionEnd.client); - var cert = null; - if(c.getCertificate) { - var hint; - if(client) { - hint = c.session.certificateRequest; - } else { - hint = c.session.extensions.server_name.serverNameList; + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateAzureTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } - cert = c.getCertificate(c, hint); - } + /** + * Constructs a UpdateAzureTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAzureTarget} obj Optional instance to populate. + * @return {module:model/UpdateAzureTarget} The populated UpdateAzureTarget instance. + */ - // buffer to hold certificate list - var certList = forge.util.createBuffer(); - if(cert !== null) { - try { - // normalize cert to a chain of certificates - if(!forge.util.isArray(cert)) { - cert = [cert]; - } - var asn1 = null; - for(var i = 0; i < cert.length; ++i) { - var msg = forge.pem.decode(cert[i])[0]; - if(msg.type !== 'CERTIFICATE' && - msg.type !== 'X509 CERTIFICATE' && - msg.type !== 'TRUSTED CERTIFICATE') { - var error = new Error('Could not convert certificate from PEM; PEM ' + - 'header type is not "CERTIFICATE", "X509 CERTIFICATE", or ' + - '"TRUSTED CERTIFICATE".'); - error.headerType = msg.type; - throw error; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAzureTarget(); + + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error('Could not convert certificate from PEM; PEM is encrypted.'); + + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); } - var der = forge.util.createBuffer(msg.body); - if(asn1 === null) { - asn1 = forge.asn1.fromDer(der.bytes(), false); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - // certificate entry is itself a vector with 3 length bytes - var certBuffer = forge.util.createBuffer(); - writeVector(certBuffer, 3, der); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - // add cert vector to cert list vector - certList.putBuffer(certBuffer); - } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - // save certificate - cert = forge.pki.certificateFromAsn1(asn1); - if(client) { - c.session.clientCertificate = cert; - } else { - c.session.serverCertificate = cert; - } - } catch(ex) { - return c.error(c, { - message: 'Could not send certificate list.', - cause: ex, - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.bad_certificate + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - }); - } - } - // determine length of the handshake message - var length = 3 + certList.length(); // cert list vector + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(tls.HandshakeType.certificate); - rval.putInt24(length); - writeVector(rval, 3, certList); - return rval; -}; + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -/** - * Creates a ClientKeyExchange message. - * - * When this message will be sent: - * This message is always sent by the client. It will immediately follow the - * client certificate message, if it is sent. Otherwise it will be the first - * message sent by the client after it receives the server hello done - * message. - * - * Meaning of this message: - * With this message, the premaster secret is set, either though direct - * transmission of the RSA-encrypted secret, or by the transmission of - * Diffie-Hellman parameters which will allow each side to agree upon the - * same premaster secret. When the key exchange method is DH_RSA or DH_DSS, - * client certification has been requested, and the client was able to - * respond with a certificate which contained a Diffie-Hellman public key - * whose parameters (group and generator) matched those specified by the - * server in its certificate, this message will not contain any data. - * - * Meaning of this message: - * If RSA is being used for key agreement and authentication, the client - * generates a 48-byte premaster secret, encrypts it using the public key - * from the server's certificate or the temporary RSA key provided in a - * server key exchange message, and sends the result in an encrypted - * premaster secret message. This structure is a variant of the client - * key exchange message, not a message in itself. - * - * struct { - * select(KeyExchangeAlgorithm) { - * case rsa: EncryptedPreMasterSecret; - * case diffie_hellman: ClientDiffieHellmanPublic; - * } exchange_keys; - * } ClientKeyExchange; - * - * struct { - * ProtocolVersion client_version; - * opaque random[46]; - * } PreMasterSecret; - * - * struct { - * public-key-encrypted PreMasterSecret pre_master_secret; - * } EncryptedPreMasterSecret; - * - * A public-key-encrypted element is encoded as a vector <0..2^16-1>. - * - * @param c the connection. - * - * @return the ClientKeyExchange byte buffer. - */ -tls.createClientKeyExchange = function(c) { - // create buffer to encrypt - var b = forge.util.createBuffer(); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - // add highest client-supported protocol to help server avoid version - // rollback attacks - b.putByte(c.session.clientHelloVersion.major); - b.putByte(c.session.clientHelloVersion.minor); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - // generate and add 46 random bytes - b.putBytes(forge.random.getBytes(46)); + if (data.hasOwnProperty('resource-group-name')) { + obj['resource-group-name'] = _ApiClient["default"].convertToType(data['resource-group-name'], 'String'); + } - // save pre-master secret - var sp = c.session.sp; - sp.pre_master_secret = b.getBytes(); + if (data.hasOwnProperty('resource-name')) { + obj['resource-name'] = _ApiClient["default"].convertToType(data['resource-name'], 'String'); + } - // RSA-encrypt the pre-master secret - var key = c.session.serverCertificate.publicKey; - b = key.encrypt(sp.pre_master_secret); + if (data.hasOwnProperty('subscription-id')) { + obj['subscription-id'] = _ApiClient["default"].convertToType(data['subscription-id'], 'String'); + } - /* Note: The encrypted pre-master secret will be stored in a - public-key-encrypted opaque vector that has the length prefixed using - 2 bytes, so include those 2 bytes in the handshake message length. This - is done as a minor optimization instead of calling writeVector(). */ + if (data.hasOwnProperty('tenant-id')) { + obj['tenant-id'] = _ApiClient["default"].convertToType(data['tenant-id'], 'String'); + } - // determine length of the handshake message - var length = b.length + 2; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(tls.HandshakeType.client_key_exchange); - rval.putInt24(length); - // add vector length bytes - rval.putInt16(b.length); - rval.putBytes(b); - return rval; -}; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -/** - * Creates a ServerKeyExchange message. - * - * @param c the connection. - * - * @return the ServerKeyExchange byte buffer. - */ -tls.createServerKeyExchange = function(c) { - // this implementation only supports RSA, no Diffie-Hellman support, - // so this record is empty + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } - // determine length of the handshake message - var length = 0; + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + } + } - // build record fragment - var rval = forge.util.createBuffer(); - if(length > 0) { - rval.putByte(tls.HandshakeType.server_key_exchange); - rval.putInt24(length); - } - return rval; -}; + return obj; + } + }]); + return UpdateAzureTarget; +}(); /** - * Gets the signed data used to verify a client-side certificate. See - * tls.createCertificateVerify() for details. - * - * @param c the connection. - * @param callback the callback to call once the signed data is ready. + * @member {String} client-id */ -tls.getClientSignature = function(c, callback) { - // generate data to RSA encrypt - var b = forge.util.createBuffer(); - b.putBuffer(c.session.md5.digest()); - b.putBuffer(c.session.sha1.digest()); - b = b.getBytes(); - - // create default signing function as necessary - c.getSignature = c.getSignature || function(c, b, callback) { - // do rsa encryption, call callback - var privateKey = null; - if(c.getPrivateKey) { - try { - privateKey = c.getPrivateKey(c, c.session.clientCertificate); - privateKey = forge.pki.privateKeyFromPem(privateKey); - } catch(ex) { - c.error(c, { - message: 'Could not get private key.', - cause: ex, - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.internal_error - } - }); - } - } - if(privateKey === null) { - c.error(c, { - message: 'No private key set.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.internal_error - } - }); - } else { - b = privateKey.sign(b, null); - } - callback(c, b); - }; - // get client signature - c.getSignature(c, b, callback); -}; +UpdateAzureTarget.prototype['client-id'] = undefined; /** - * Creates a CertificateVerify message. - * - * Meaning of this message: - * This structure conveys the client's Diffie-Hellman public value - * (Yc) if it was not already included in the client's certificate. - * The encoding used for Yc is determined by the enumerated - * PublicValueEncoding. This structure is a variant of the client - * key exchange message, not a message in itself. - * - * When this message will be sent: - * This message is used to provide explicit verification of a client - * certificate. This message is only sent following a client - * certificate that has signing capability (i.e. all certificates - * except those containing fixed Diffie-Hellman parameters). When - * sent, it will immediately follow the client key exchange message. - * - * struct { - * Signature signature; - * } CertificateVerify; - * - * CertificateVerify.signature.md5_hash - * MD5(handshake_messages); - * - * Certificate.signature.sha_hash - * SHA(handshake_messages); - * - * Here handshake_messages refers to all handshake messages sent or - * received starting at client hello up to but not including this - * message, including the type and length fields of the handshake - * messages. - * - * select(SignatureAlgorithm) { - * case anonymous: struct { }; - * case rsa: - * digitally-signed struct { - * opaque md5_hash[16]; - * opaque sha_hash[20]; - * }; - * case dsa: - * digitally-signed struct { - * opaque sha_hash[20]; - * }; - * } Signature; - * - * In digital signing, one-way hash functions are used as input for a - * signing algorithm. A digitally-signed element is encoded as an opaque - * vector <0..2^16-1>, where the length is specified by the signing - * algorithm and key. - * - * In RSA signing, a 36-byte structure of two hashes (one SHA and one - * MD5) is signed (encrypted with the private key). It is encoded with - * PKCS #1 block type 0 or type 1 as described in [PKCS1]. - * - * In DSS, the 20 bytes of the SHA hash are run directly through the - * Digital Signing Algorithm with no additional hashing. - * - * @param c the connection. - * @param signature the signature to include in the message. - * - * @return the CertificateVerify byte buffer. + * @member {String} client-secret */ -tls.createCertificateVerify = function(c, signature) { - /* Note: The signature will be stored in a "digitally-signed" opaque - vector that has the length prefixed using 2 bytes, so include those - 2 bytes in the handshake message length. This is done as a minor - optimization instead of calling writeVector(). */ - - // determine length of the handshake message - var length = signature.length + 2; - - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(tls.HandshakeType.certificate_verify); - rval.putInt24(length); - // add vector length bytes - rval.putInt16(signature.length); - rval.putBytes(signature); - return rval; -}; +UpdateAzureTarget.prototype['client-secret'] = undefined; /** - * Creates a CertificateRequest message. - * - * @param c the connection. - * - * @return the CertificateRequest byte buffer. + * Deprecated - use description + * @member {String} comment */ -tls.createCertificateRequest = function(c) { - // TODO: support other certificate types - var certTypes = forge.util.createBuffer(); - - // common RSA certificate type - certTypes.putByte(0x01); - - // add distinguished names from CA store - var cAs = forge.util.createBuffer(); - for(var key in c.caStore.certs) { - var cert = c.caStore.certs[key]; - var dn = forge.pki.distinguishedNameToAsn1(cert.subject); - var byteBuffer = forge.asn1.toDer(dn); - cAs.putInt16(byteBuffer.length()); - cAs.putBuffer(byteBuffer); - } - - // TODO: TLS 1.2+ has a different format - - // determine length of the handshake message - var length = - 1 + certTypes.length() + - 2 + cAs.length(); - - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(tls.HandshakeType.certificate_request); - rval.putInt24(length); - writeVector(rval, 1, certTypes); - writeVector(rval, 2, cAs); - return rval; -}; +UpdateAzureTarget.prototype['comment'] = undefined; /** - * Creates a ServerHelloDone message. - * - * @param c the connection. - * - * @return the ServerHelloDone byte buffer. + * Description of the object + * @member {String} description */ -tls.createServerHelloDone = function(c) { - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(tls.HandshakeType.server_hello_done); - rval.putInt24(0); - return rval; -}; +UpdateAzureTarget.prototype['description'] = undefined; /** - * Creates a ChangeCipherSpec message. - * - * The change cipher spec protocol exists to signal transitions in - * ciphering strategies. The protocol consists of a single message, - * which is encrypted and compressed under the current (not the pending) - * connection state. The message consists of a single byte of value 1. - * - * struct { - * enum { change_cipher_spec(1), (255) } type; - * } ChangeCipherSpec; - * - * @return the ChangeCipherSpec byte buffer. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -tls.createChangeCipherSpec = function() { - var rval = forge.util.createBuffer(); - rval.putByte(0x01); - return rval; -}; +UpdateAzureTarget.prototype['json'] = false; /** - * Creates a Finished message. - * - * struct { - * opaque verify_data[12]; - * } Finished; - * - * verify_data - * PRF(master_secret, finished_label, MD5(handshake_messages) + - * SHA-1(handshake_messages)) [0..11]; - * - * finished_label - * For Finished messages sent by the client, the string "client - * finished". For Finished messages sent by the server, the - * string "server finished". - * - * handshake_messages - * All of the data from all handshake messages up to but not - * including this message. This is only data visible at the - * handshake layer and does not include record layer headers. - * This is the concatenation of all the Handshake structures as - * defined in 7.4 exchanged thus far. - * - * @param c the connection. - * - * @return the Finished byte buffer. + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -tls.createFinished = function(c) { - // generate verify_data - var b = forge.util.createBuffer(); - b.putBuffer(c.session.md5.digest()); - b.putBuffer(c.session.sha1.digest()); - - // TODO: determine prf function and verify length for TLS 1.2 - var client = (c.entity === tls.ConnectionEnd.client); - var sp = c.session.sp; - var vdl = 12; - var prf = prf_TLS1; - var label = client ? 'client finished' : 'server finished'; - b = prf(sp.master_secret, label, b.getBytes(), vdl); - - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(tls.HandshakeType.finished); - rval.putInt24(b.length()); - rval.putBuffer(b); - return rval; -}; +UpdateAzureTarget.prototype['keep-prev-version'] = undefined; /** - * Creates a HeartbeatMessage (See RFC 6520). - * - * struct { - * HeartbeatMessageType type; - * uint16 payload_length; - * opaque payload[HeartbeatMessage.payload_length]; - * opaque padding[padding_length]; - * } HeartbeatMessage; - * - * The total length of a HeartbeatMessage MUST NOT exceed 2^14 or - * max_fragment_length when negotiated as defined in [RFC6066]. - * - * type: The message type, either heartbeat_request or heartbeat_response. - * - * payload_length: The length of the payload. - * - * payload: The payload consists of arbitrary content. - * - * padding: The padding is random content that MUST be ignored by the - * receiver. The length of a HeartbeatMessage is TLSPlaintext.length - * for TLS and DTLSPlaintext.length for DTLS. Furthermore, the - * length of the type field is 1 byte, and the length of the - * payload_length is 2. Therefore, the padding_length is - * TLSPlaintext.length - payload_length - 3 for TLS and - * DTLSPlaintext.length - payload_length - 3 for DTLS. The - * padding_length MUST be at least 16. - * - * The sender of a HeartbeatMessage MUST use a random padding of at - * least 16 bytes. The padding of a received HeartbeatMessage message - * MUST be ignored. - * - * If the payload_length of a received HeartbeatMessage is too large, - * the received HeartbeatMessage MUST be discarded silently. - * - * @param c the connection. - * @param type the tls.HeartbeatMessageType. - * @param payload the heartbeat data to send as the payload. - * @param [payloadLength] the payload length to use, defaults to the - * actual payload length. - * - * @return the HeartbeatRequest byte buffer. + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -tls.createHeartbeat = function(type, payload, payloadLength) { - if(typeof payloadLength === 'undefined') { - payloadLength = payload.length; - } - // build record fragment - var rval = forge.util.createBuffer(); - rval.putByte(type); // heartbeat message type - rval.putInt16(payloadLength); // payload length - rval.putBytes(payload); // payload - // padding - var plaintextLength = rval.length(); - var paddingLength = Math.max(16, plaintextLength - payloadLength - 3); - rval.putBytes(forge.random.getBytes(paddingLength)); - return rval; -}; +UpdateAzureTarget.prototype['key'] = undefined; /** - * Fragments, compresses, encrypts, and queues a record for delivery. - * - * @param c the connection. - * @param record the record to queue. + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -tls.queue = function(c, record) { - // error during record creation - if(!record) { - return; - } - - if(record.fragment.length() === 0) { - if(record.type === tls.ContentType.handshake || - record.type === tls.ContentType.alert || - record.type === tls.ContentType.change_cipher_spec) { - // Empty handshake, alert of change cipher spec messages are not allowed per the TLS specification and should not be sent. - return; - } - } - // if the record is a handshake record, update handshake hashes - if(record.type === tls.ContentType.handshake) { - var bytes = record.fragment.bytes(); - c.session.md5.update(bytes); - c.session.sha1.update(bytes); - bytes = null; - } +UpdateAzureTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ - // handle record fragmentation - var records; - if(record.fragment.length() <= tls.MaxFragment) { - records = [record]; - } else { - // fragment data as long as it is too long - records = []; - var data = record.fragment.bytes(); - while(data.length > tls.MaxFragment) { - records.push(tls.createRecord(c, { - type: record.type, - data: forge.util.createBuffer(data.slice(0, tls.MaxFragment)) - })); - data = data.slice(tls.MaxFragment); - } - // add last record - if(data.length > 0) { - records.push(tls.createRecord(c, { - type: record.type, - data: forge.util.createBuffer(data) - })); - } - } +UpdateAzureTarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ - // compress and encrypt all fragmented records - for(var i = 0; i < records.length && !c.fail; ++i) { - // update the record using current write state - var rec = records[i]; - var s = c.state.current.write; - if(s.update(c, rec)) { - // store record - c.records.push(rec); - } - } -}; +UpdateAzureTarget.prototype['new-name'] = undefined; +/** + * The Resource Group name in your Azure subscription + * @member {String} resource-group-name + */ +UpdateAzureTarget.prototype['resource-group-name'] = undefined; /** - * Flushes all queued records to the output buffer and calls the - * tlsDataReady() handler on the given connection. - * - * @param c the connection. - * - * @return true on success, false on failure. + * The name of the relevant Resource + * @member {String} resource-name */ -tls.flush = function(c) { - for(var i = 0; i < c.records.length; ++i) { - var record = c.records[i]; - // add record header and fragment - c.tlsData.putByte(record.type); - c.tlsData.putByte(record.version.major); - c.tlsData.putByte(record.version.minor); - c.tlsData.putInt16(record.fragment.length()); - c.tlsData.putBuffer(c.records[i].fragment); - } - c.records = []; - return c.tlsDataReady(c); -}; +UpdateAzureTarget.prototype['resource-name'] = undefined; +/** + * Azure Subscription Id + * @member {String} subscription-id + */ +UpdateAzureTarget.prototype['subscription-id'] = undefined; /** - * Maps a pki.certificateError to a tls.Alert.Description. - * - * @param error the error to map. - * - * @return the alert description. + * @member {String} tenant-id */ -var _certErrorToAlertDesc = function(error) { - switch(error) { - case true: - return true; - case forge.pki.certificateError.bad_certificate: - return tls.Alert.Description.bad_certificate; - case forge.pki.certificateError.unsupported_certificate: - return tls.Alert.Description.unsupported_certificate; - case forge.pki.certificateError.certificate_revoked: - return tls.Alert.Description.certificate_revoked; - case forge.pki.certificateError.certificate_expired: - return tls.Alert.Description.certificate_expired; - case forge.pki.certificateError.certificate_unknown: - return tls.Alert.Description.certificate_unknown; - case forge.pki.certificateError.unknown_ca: - return tls.Alert.Description.unknown_ca; - default: - return tls.Alert.Description.bad_certificate; - } -}; +UpdateAzureTarget.prototype['tenant-id'] = undefined; /** - * Maps a tls.Alert.Description to a pki.certificateError. - * - * @param desc the alert description. - * - * @return the certificate error. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -var _alertDescToCertError = function(desc) { - switch(desc) { - case true: - return true; - case tls.Alert.Description.bad_certificate: - return forge.pki.certificateError.bad_certificate; - case tls.Alert.Description.unsupported_certificate: - return forge.pki.certificateError.unsupported_certificate; - case tls.Alert.Description.certificate_revoked: - return forge.pki.certificateError.certificate_revoked; - case tls.Alert.Description.certificate_expired: - return forge.pki.certificateError.certificate_expired; - case tls.Alert.Description.certificate_unknown: - return forge.pki.certificateError.certificate_unknown; - case tls.Alert.Description.unknown_ca: - return forge.pki.certificateError.unknown_ca; - default: - return forge.pki.certificateError.bad_certificate; - } -}; +UpdateAzureTarget.prototype['token'] = undefined; /** - * Verifies a certificate chain against the given connection's - * Certificate Authority store. - * - * @param c the TLS connection. - * @param chain the certificate chain to verify, with the root or highest - * authority at the end. - * - * @return true if successful, false if not. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -tls.verifyCertificateChain = function(c, chain) { - try { - // Make a copy of c.verifyOptions so that we can modify options.verify - // without modifying c.verifyOptions. - var options = {}; - for (var key in c.verifyOptions) { - options[key] = c.verifyOptions[key]; - } - - options.verify = function(vfd, depth, chain) { - // convert pki.certificateError to tls alert description - var desc = _certErrorToAlertDesc(vfd); - - // call application callback - var ret = c.verify(c, vfd, depth, chain); - if(ret !== true) { - if(typeof ret === 'object' && !forge.util.isArray(ret)) { - // throw custom error - var error = new Error('The application rejected the certificate.'); - error.send = true; - error.alert = { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.bad_certificate - }; - if(ret.message) { - error.message = ret.message; - } - if(ret.alert) { - error.alert.description = ret.alert; - } - throw error; - } - // convert tls alert description to pki.certificateError - if(ret !== vfd) { - ret = _alertDescToCertError(ret); - } - } +UpdateAzureTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ - return ret; - }; +UpdateAzureTarget.prototype['update-version'] = undefined; +/** + * @member {Boolean} use-gw-cloud-identity + */ - // verify chain - forge.pki.verifyCertificateChain(c.caStore, chain, options); - } catch(ex) { - // build tls error if not already customized - var err = ex; - if(typeof err !== 'object' || forge.util.isArray(err)) { - err = { - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: _certErrorToAlertDesc(ex) - } - }; - } - if(!('send' in err)) { - err.send = true; - } - if(!('alert' in err)) { - err.alert = { - level: tls.Alert.Level.fatal, - description: _certErrorToAlertDesc(err.error) - }; - } +UpdateAzureTarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = UpdateAzureTarget; +exports["default"] = _default; - // send error - c.error(c, err); - } +/***/ }), - return !c.fail; -}; +/***/ 16042: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** - * Creates a new TLS session cache. - * - * @param cache optional map of session ID to cached session. - * @param capacity the maximum size for the cache (default: 100). - * - * @return the new TLS session cache. - */ -tls.createSessionCache = function(cache, capacity) { - var rval = null; +"use strict"; - // assume input is already a session cache object - if(cache && cache.getSession && cache.setSession && cache.order) { - rval = cache; - } else { - // create cache - rval = {}; - rval.cache = cache || {}; - rval.capacity = Math.max(capacity || 100, 1); - rval.order = []; - - // store order for sessions, delete session overflow - for(var key in cache) { - if(rval.order.length <= capacity) { - rval.order.push(key); - } else { - delete cache[key]; - } - } - // get a session from a session ID (or get any session) - rval.getSession = function(sessionId) { - var session = null; - var key = null; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // if session ID provided, use it - if(sessionId) { - key = forge.util.bytesToHex(sessionId); - } else if(rval.order.length > 0) { - // get first session from cache - key = rval.order[0]; - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if(key !== null && key in rval.cache) { - // get cached session and remove from cache - session = rval.cache[key]; - delete rval.cache[key]; - for(var i in rval.order) { - if(rval.order[i] === key) { - rval.order.splice(i, 1); - break; - } - } - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - return session; - }; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // set a session in the cache - rval.setSession = function(sessionId, session) { - // remove session from cache if at capacity - if(rval.order.length === rval.capacity) { - var key = rval.order.shift(); - delete rval.cache[key]; - } - // add session to cache - var key = forge.util.bytesToHex(sessionId); - rval.order.push(key); - rval.cache[key] = session; - }; - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - return rval; -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Creates a new TLS connection. - * - * See public createConnection() docs for more details. - * - * @param options the options for this connection. - * - * @return the new TLS connection. + * The UpdateAzureTargetOutput model module. + * @module model/UpdateAzureTargetOutput + * @version 3.6.3 */ -tls.createConnection = function(options) { - var caStore = null; - if(options.caStore) { - // if CA store is an array, convert it to a CA store object - if(forge.util.isArray(options.caStore)) { - caStore = forge.pki.createCaStore(options.caStore); - } else { - caStore = options.caStore; - } - } else { - // create empty CA store - caStore = forge.pki.createCaStore(); - } - - // setup default cipher suites - var cipherSuites = options.cipherSuites || null; - if(cipherSuites === null) { - cipherSuites = []; - for(var key in tls.CipherSuites) { - cipherSuites.push(tls.CipherSuites[key]); - } - } - - // set default entity - var entity = (options.server || false) ? - tls.ConnectionEnd.server : tls.ConnectionEnd.client; - - // create session cache if requested - var sessionCache = options.sessionCache ? - tls.createSessionCache(options.sessionCache) : null; - - // create TLS connection - var c = { - version: {major: tls.Version.major, minor: tls.Version.minor}, - entity: entity, - sessionId: options.sessionId, - caStore: caStore, - sessionCache: sessionCache, - cipherSuites: cipherSuites, - connected: options.connected, - virtualHost: options.virtualHost || null, - verifyClient: options.verifyClient || false, - verify: options.verify || function(cn, vfd, dpth, cts) {return vfd;}, - verifyOptions: options.verifyOptions || {}, - getCertificate: options.getCertificate || null, - getPrivateKey: options.getPrivateKey || null, - getSignature: options.getSignature || null, - input: forge.util.createBuffer(), - tlsData: forge.util.createBuffer(), - data: forge.util.createBuffer(), - tlsDataReady: options.tlsDataReady, - dataReady: options.dataReady, - heartbeatReceived: options.heartbeatReceived, - closed: options.closed, - error: function(c, ex) { - // set origin if not set - ex.origin = ex.origin || - ((c.entity === tls.ConnectionEnd.client) ? 'client' : 'server'); - - // send TLS alert - if(ex.send) { - tls.queue(c, tls.createAlert(c, ex.alert)); - tls.flush(c); - } - - // error is fatal by default - var fatal = (ex.fatal !== false); - if(fatal) { - // set fail flag - c.fail = true; - } - - // call error handler first - options.error(c, ex); - - if(fatal) { - // fatal error, close connection, do not clear fail - c.close(false); - } - }, - deflate: options.deflate || null, - inflate: options.inflate || null - }; - - /** - * Resets a closed TLS connection for reuse. Called in c.close(). - * - * @param clearFail true to clear the fail flag (default: true). - */ - c.reset = function(clearFail) { - c.version = {major: tls.Version.major, minor: tls.Version.minor}; - c.record = null; - c.session = null; - c.peerCertificate = null; - c.state = { - pending: null, - current: null - }; - c.expect = (c.entity === tls.ConnectionEnd.client) ? SHE : CHE; - c.fragmented = null; - c.records = []; - c.open = false; - c.handshakes = 0; - c.handshaking = false; - c.isConnected = false; - c.fail = !(clearFail || typeof(clearFail) === 'undefined'); - c.input.clear(); - c.tlsData.clear(); - c.data.clear(); - c.state.current = tls.createConnectionState(c); - }; - - // do initial reset of connection - c.reset(); - +var UpdateAzureTargetOutput = /*#__PURE__*/function () { /** - * Updates the current TLS engine state based on the given record. - * - * @param c the TLS connection. - * @param record the TLS record to act on. - */ - var _update = function(c, record) { - // get record handler (align type in table by subtracting lowest) - var aligned = record.type - tls.ContentType.change_cipher_spec; - var handlers = ctTable[c.entity][c.expect]; - if(aligned in handlers) { - handlers[aligned](c, record); - } else { - // unexpected record - tls.handleUnexpected(c, record); - } - }; + * Constructs a new UpdateAzureTargetOutput. + * @alias module:model/UpdateAzureTargetOutput + */ + function UpdateAzureTargetOutput() { + _classCallCheck(this, UpdateAzureTargetOutput); + UpdateAzureTargetOutput.initialize(this); + } /** - * Reads the record header and initializes the next record on the given - * connection. - * - * @param c the TLS connection with the next record. - * - * @return 0 if the input data could be processed, otherwise the - * number of bytes required for data to be processed. + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. */ - var _readRecordHeader = function(c) { - var rval = 0; - - // get input buffer and its length - var b = c.input; - var len = b.length(); - // need at least 5 bytes to initialize a record - if(len < 5) { - rval = 5 - len; - } else { - // enough bytes for header - // initialize record - c.record = { - type: b.getByte(), - version: { - major: b.getByte(), - minor: b.getByte() - }, - length: b.getInt16(), - fragment: forge.util.createBuffer(), - ready: false - }; - // check record version - var compatibleVersion = (c.record.version.major === c.version.major); - if(compatibleVersion && c.session && c.session.version) { - // session version already set, require same minor version - compatibleVersion = (c.record.version.minor === c.version.minor); - } - if(!compatibleVersion) { - c.error(c, { - message: 'Incompatible TLS version.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: tls.Alert.Description.protocol_version - } - }); - } - } + _createClass(UpdateAzureTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateAzureTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAzureTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateAzureTargetOutput} The populated UpdateAzureTargetOutput instance. + */ - return rval; - }; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAzureTargetOutput(); - /** - * Reads the next record's contents and appends its message to any - * previously fragmented message. - * - * @param c the TLS connection with the next record. - * - * @return 0 if the input data could be processed, otherwise the - * number of bytes required for data to be processed. - */ - var _readRecord = function(c) { - var rval = 0; - - // ensure there is enough input data to get the entire record - var b = c.input; - var len = b.length(); - if(len < c.record.length) { - // not enough data yet, return how much is required - rval = c.record.length - len; - } else { - // there is enough data to parse the pending record - // fill record fragment and compact input buffer - c.record.fragment.putBytes(b.getBytes(c.record.length)); - b.compact(); - - // update record using current read state - var s = c.state.current.read; - if(s.update(c, c.record)) { - // see if there is a previously fragmented message that the - // new record's message fragment should be appended to - if(c.fragmented !== null) { - // if the record type matches a previously fragmented - // record, append the record fragment to it - if(c.fragmented.type === c.record.type) { - // concatenate record fragments - c.fragmented.fragment.putBuffer(c.record.fragment); - c.record = c.fragmented; - } else { - // error, invalid fragmented record - c.error(c, { - message: 'Invalid fragmented record.', - send: true, - alert: { - level: tls.Alert.Level.fatal, - description: - tls.Alert.Description.unexpected_message - } - }); - } + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); } - - // record is now ready - c.record.ready = true; } + + return obj; } + }]); - return rval; - }; + return UpdateAzureTargetOutput; +}(); +/** + * @member {Number} target_id + */ - /** - * Performs a handshake using the TLS Handshake Protocol, as a client. - * - * This method should only be called if the connection is in client mode. - * - * @param sessionId the session ID to use, null to start a new one. - */ - c.handshake = function(sessionId) { - // error to call this in non-client mode - if(c.entity !== tls.ConnectionEnd.client) { - // not fatal error - c.error(c, { - message: 'Cannot initiate handshake as a server.', - fatal: false - }); - } else if(c.handshaking) { - // handshake is already in progress, fail but not fatal error - c.error(c, { - message: 'Handshake already in progress.', - fatal: false - }); - } else { - // clear fail flag on reuse - if(c.fail && !c.open && c.handshakes === 0) { - c.fail = false; - } - // now handshaking - c.handshaking = true; +UpdateAzureTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateAzureTargetOutput; +exports["default"] = _default; - // default to blank (new session) - sessionId = sessionId || ''; +/***/ }), - // if a session ID was specified, try to find it in the cache - var session = null; - if(sessionId.length > 0) { - if(c.sessionCache) { - session = c.sessionCache.getSession(sessionId); - } +/***/ 12471: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // matching session not found in cache, clear session ID - if(session === null) { - sessionId = ''; - } - } +"use strict"; - // no session given, grab a session from the cache, if available - if(sessionId.length === 0 && c.sessionCache) { - session = c.sessionCache.getSession(); - if(session !== null) { - sessionId = session.id; - } - } - // set up session - c.session = { - id: sessionId, - version: null, - cipherSuite: null, - compressionMethod: null, - serverCertificate: null, - certificateRequest: null, - clientCertificate: null, - sp: {}, - md5: forge.md.md5.create(), - sha1: forge.md.sha1.create() - }; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // use existing session information - if(session) { - // only update version on connection, session version not yet set - c.version = session.version; - c.session.sp = session.sp; - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // generate new client random - c.session.sp.client_random = tls.createRandom().getBytes(); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // connection now open - c.open = true; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // send hello - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.handshake, - data: tls.createClientHello(c) - })); - tls.flush(c); - } - }; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The UpdateCertificateOutput model module. + * @module model/UpdateCertificateOutput + * @version 3.6.3 + */ +var UpdateCertificateOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateCertificateOutput. + * @alias module:model/UpdateCertificateOutput + */ + function UpdateCertificateOutput() { + _classCallCheck(this, UpdateCertificateOutput); + UpdateCertificateOutput.initialize(this); + } /** - * Called when TLS protocol data has been received from somewhere and should - * be processed by the TLS engine. - * - * @param data the TLS protocol data, as a string, to process. - * - * @return 0 if the data could be processed, otherwise the number of bytes - * required for data to be processed. + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. */ - c.process = function(data) { - var rval = 0; - // buffer input data - if(data) { - c.input.putBytes(data); - } - // process next record if no failure, process will be called after - // each record is handled (since handling can be asynchronous) - if(!c.fail) { - // reset record if ready and now empty - if(c.record !== null && - c.record.ready && c.record.fragment.isEmpty()) { - c.record = null; - } + _createClass(UpdateCertificateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateCertificateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateCertificateOutput} obj Optional instance to populate. + * @return {module:model/UpdateCertificateOutput} The populated UpdateCertificateOutput instance. + */ - // if there is no pending record, try to read record header - if(c.record === null) { - rval = _readRecordHeader(c); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateCertificateOutput(); - // read the next record (if record not yet ready) - if(!c.fail && c.record !== null && !c.record.ready) { - rval = _readRecord(c); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } } - // record ready to be handled, update engine state - if(!c.fail && c.record !== null && c.record.ready) { - _update(c, c.record); - } + return obj; } + }]); - return rval; - }; + return UpdateCertificateOutput; +}(); +/** + * @member {String} name + */ - /** - * Requests that application data be packaged into a TLS record. The - * tlsDataReady handler will be called when the TLS record(s) have been - * prepared. - * - * @param data the application data, as a raw 'binary' encoded string, to - * be sent; to send utf-16/utf-8 string data, use the return value - * of util.encodeUtf8(str). - * - * @return true on success, false on failure. - */ - c.prepare = function(data) { - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.application_data, - data: forge.util.createBuffer(data) - })); - return tls.flush(c); - }; - /** - * Requests that a heartbeat request be packaged into a TLS record for - * transmission. The tlsDataReady handler will be called when TLS record(s) - * have been prepared. - * - * When a heartbeat response has been received, the heartbeatReceived - * handler will be called with the matching payload. This handler can - * be used to clear a retransmission timer, etc. - * - * @param payload the heartbeat data to send as the payload in the message. - * @param [payloadLength] the payload length to use, defaults to the - * actual payload length. - * - * @return true on success, false on failure. - */ - c.prepareHeartbeatRequest = function(payload, payloadLength) { - if(payload instanceof forge.util.ByteBuffer) { - payload = payload.bytes(); - } - if(typeof payloadLength === 'undefined') { - payloadLength = payload.length; - } - c.expectedHeartbeatPayload = payload; - tls.queue(c, tls.createRecord(c, { - type: tls.ContentType.heartbeat, - data: tls.createHeartbeat( - tls.HeartbeatMessageType.heartbeat_request, payload, payloadLength) - })); - return tls.flush(c); - }; +UpdateCertificateOutput.prototype['name'] = undefined; +var _default = UpdateCertificateOutput; +exports["default"] = _default; - /** - * Closes the connection (sends a close_notify alert). - * - * @param clearFail true to clear the fail flag (default: true). - */ - c.close = function(clearFail) { - // save session if connection didn't fail - if(!c.fail && c.sessionCache && c.session) { - // only need to preserve session ID, version, and security params - var session = { - id: c.session.id, - version: c.session.version, - sp: c.session.sp - }; - session.sp.keys = null; - c.sessionCache.setSession(session.id, session); - } +/***/ }), - if(c.open) { - // connection no longer open, clear input - c.open = false; - c.input.clear(); +/***/ 19705: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // if connected or handshaking, send an alert - if(c.isConnected || c.handshaking) { - c.isConnected = c.handshaking = false; +"use strict"; - // send close_notify alert - tls.queue(c, tls.createAlert(c, { - level: tls.Alert.Level.warning, - description: tls.Alert.Description.close_notify - })); - tls.flush(c); - } - // call handler - c.closed(c); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // reset TLS connection, do not clear fail flag - c.reset(clearFail); - }; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - return c; -}; - -/* TLS API */ -module.exports = forge.tls = forge.tls || {}; - -// expose non-functions -for(var key in tls) { - if(typeof tls[key] !== 'function') { - forge.tls[key] = tls[key]; - } -} - -// expose prf_tls1 for testing -forge.tls.prf_tls1 = prf_TLS1; - -// expose sha1 hmac method -forge.tls.hmac_sha1 = hmac_sha1; - -// expose session cache creation -forge.tls.createSessionCache = tls.createSessionCache; - -/** - * Creates a new TLS connection. This does not make any assumptions about the - * transport layer that TLS is working on top of, ie: it does not assume there - * is a TCP/IP connection or establish one. A TLS connection is totally - * abstracted away from the layer is runs on top of, it merely establishes a - * secure channel between a client" and a "server". - * - * A TLS connection contains 4 connection states: pending read and write, and - * current read and write. - * - * At initialization, the current read and write states will be null. Only once - * the security parameters have been set and the keys have been generated can - * the pending states be converted into current states. Current states will be - * updated for each record processed. - * - * A custom certificate verify callback may be provided to check information - * like the common name on the server's certificate. It will be called for - * every certificate in the chain. It has the following signature: - * - * variable func(c, certs, index, preVerify) - * Where: - * c The TLS connection - * verified Set to true if certificate was verified, otherwise the alert - * tls.Alert.Description for why the certificate failed. - * depth The current index in the chain, where 0 is the server's cert. - * certs The certificate chain, *NOTE* if the server was anonymous then - * the chain will be empty. - * - * The function returns true on success and on failure either the appropriate - * tls.Alert.Description or an object with 'alert' set to the appropriate - * tls.Alert.Description and 'message' set to a custom error message. If true - * is not returned then the connection will abort using, in order of - * availability, first the returned alert description, second the preVerify - * alert description, and lastly the default 'bad_certificate'. - * - * There are three callbacks that can be used to make use of client-side - * certificates where each takes the TLS connection as the first parameter: - * - * getCertificate(conn, hint) - * The second parameter is a hint as to which certificate should be - * returned. If the connection entity is a client, then the hint will be - * the CertificateRequest message from the server that is part of the - * TLS protocol. If the connection entity is a server, then it will be - * the servername list provided via an SNI extension the ClientHello, if - * one was provided (empty array if not). The hint can be examined to - * determine which certificate to use (advanced). Most implementations - * will just return a certificate. The return value must be a - * PEM-formatted certificate or an array of PEM-formatted certificates - * that constitute a certificate chain, with the first in the array/chain - * being the client's certificate. - * getPrivateKey(conn, certificate) - * The second parameter is an forge.pki X.509 certificate object that - * is associated with the requested private key. The return value must - * be a PEM-formatted private key. - * getSignature(conn, bytes, callback) - * This callback can be used instead of getPrivateKey if the private key - * is not directly accessible in javascript or should not be. For - * instance, a secure external web service could provide the signature - * in exchange for appropriate credentials. The second parameter is a - * string of bytes to be signed that are part of the TLS protocol. These - * bytes are used to verify that the private key for the previously - * provided client-side certificate is accessible to the client. The - * callback is a function that takes 2 parameters, the TLS connection - * and the RSA encrypted (signed) bytes as a string. This callback must - * be called once the signature is ready. - * - * @param options the options for this connection: - * server: true if the connection is server-side, false for client. - * sessionId: a session ID to reuse, null for a new connection. - * caStore: an array of certificates to trust. - * sessionCache: a session cache to use. - * cipherSuites: an optional array of cipher suites to use, - * see tls.CipherSuites. - * connected: function(conn) called when the first handshake completes. - * virtualHost: the virtual server name to use in a TLS SNI extension. - * verifyClient: true to require a client certificate in server mode, - * 'optional' to request one, false not to (default: false). - * verify: a handler used to custom verify certificates in the chain. - * verifyOptions: an object with options for the certificate chain validation. - * See documentation of pki.verifyCertificateChain for possible options. - * verifyOptions.verify is ignored. If you wish to specify a verify handler - * use the verify key. - * getCertificate: an optional callback used to get a certificate or - * a chain of certificates (as an array). - * getPrivateKey: an optional callback used to get a private key. - * getSignature: an optional callback used to get a signature. - * tlsDataReady: function(conn) called when TLS protocol data has been - * prepared and is ready to be used (typically sent over a socket - * connection to its destination), read from conn.tlsData buffer. - * dataReady: function(conn) called when application data has - * been parsed from a TLS record and should be consumed by the - * application, read from conn.data buffer. - * closed: function(conn) called when the connection has been closed. - * error: function(conn, error) called when there was an error. - * deflate: function(inBytes) if provided, will deflate TLS records using - * the deflate algorithm if the server supports it. - * inflate: function(inBytes) if provided, will inflate TLS records using - * the deflate algorithm if the server supports it. - * - * @return the new TLS connection. - */ -forge.tls.createConnection = tls.createConnection; - - -/***/ }), - -/***/ 97456: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/** - * Utility functions for web applications. - * - * @author Dave Longley - * - * Copyright (c) 2010-2018 Digital Bazaar, Inc. - */ -var forge = __nccwpck_require__(88561); -var baseN = __nccwpck_require__(60763); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/* Utilities API */ -var util = module.exports = forge.util = forge.util || {}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -// define setImmediate and nextTick -(function() { - // use native nextTick (unless we're in webpack) - // webpack (or better node-libs-browser polyfill) sets process.browser. - // this way we can detect webpack properly - if(typeof process !== 'undefined' && process.nextTick && !process.browser) { - util.nextTick = process.nextTick; - if(typeof setImmediate === 'function') { - util.setImmediate = setImmediate; - } else { - // polyfill setImmediate with nextTick, older versions of node - // (those w/o setImmediate) won't totally starve IO - util.setImmediate = util.nextTick; - } - return; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - // polyfill nextTick with native setImmediate - if(typeof setImmediate === 'function') { - util.setImmediate = function() { return setImmediate.apply(undefined, arguments); }; - util.nextTick = function(callback) { - return setImmediate(callback); - }; - return; - } +/** + * The UpdateCertificateValue model module. + * @module model/UpdateCertificateValue + * @version 3.6.3 + */ +var UpdateCertificateValue = /*#__PURE__*/function () { + /** + * Constructs a new UpdateCertificateValue. + * @alias module:model/UpdateCertificateValue + * @param name {String} Certificate name + */ + function UpdateCertificateValue(name) { + _classCallCheck(this, UpdateCertificateValue); - /* Note: A polyfill upgrade pattern is used here to allow combining - polyfills. For example, MutationObserver is fast, but blocks UI updates, - so it needs to allow UI updates periodically, so it falls back on - postMessage or setTimeout. */ + UpdateCertificateValue.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // polyfill with setTimeout - util.setImmediate = function(callback) { - setTimeout(callback, 0); - }; - // upgrade polyfill to use postMessage - if(typeof window !== 'undefined' && - typeof window.postMessage === 'function') { - var msg = 'forge.setImmediate'; - var callbacks = []; - util.setImmediate = function(callback) { - callbacks.push(callback); - // only send message when one hasn't been sent in - // the current turn of the event loop - if(callbacks.length === 1) { - window.postMessage(msg, '*'); - } - }; - function handler(event) { - if(event.source === window && event.data === msg) { - event.stopPropagation(); - var copy = callbacks.slice(); - callbacks.length = 0; - copy.forEach(function(callback) { - callback(); - }); - } + _createClass(UpdateCertificateValue, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } - window.addEventListener('message', handler, true); - } + /** + * Constructs a UpdateCertificateValue from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateCertificateValue} obj Optional instance to populate. + * @return {module:model/UpdateCertificateValue} The populated UpdateCertificateValue instance. + */ - // upgrade polyfill to use MutationObserver - if(typeof MutationObserver !== 'undefined') { - // polyfill with MutationObserver - var now = Date.now(); - var attr = true; - var div = document.createElement('div'); - var callbacks = []; - new MutationObserver(function() { - var copy = callbacks.slice(); - callbacks.length = 0; - copy.forEach(function(callback) { - callback(); - }); - }).observe(div, {attributes: true}); - var oldSetImmediate = util.setImmediate; - util.setImmediate = function(callback) { - if(Date.now() - now > 15) { - now = Date.now(); - oldSetImmediate(callback); - } else { - callbacks.push(callback); - // only trigger observer when it hasn't been triggered in - // the current turn of the event loop - if(callbacks.length === 1) { - div.setAttribute('a', attr = !attr); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateCertificateValue(); + + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - } - }; - } - util.nextTick = util.setImmediate; -})(); + if (data.hasOwnProperty('certificate-data')) { + obj['certificate-data'] = _ApiClient["default"].convertToType(data['certificate-data'], 'String'); + } -// check if running under Node.js -util.isNodejs = - typeof process !== 'undefined' && process.versions && process.versions.node; + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -// 'self' will also work in Web Workers (instance of WorkerGlobalScope) while -// it will point to `window` in the main thread. -// To remain compatible with older browsers, we fall back to 'window' if 'self' -// is not available. -util.globalScope = (function() { - if(util.isNodejs) { - return global; - } + if (data.hasOwnProperty('expiration-event-in')) { + obj['expiration-event-in'] = _ApiClient["default"].convertToType(data['expiration-event-in'], ['String']); + } - return typeof self === 'undefined' ? window : self; -})(); + if (data.hasOwnProperty('format')) { + obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); + } -// define isArray -util.isArray = Array.isArray || function(x) { - return Object.prototype.toString.call(x) === '[object Array]'; -}; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -// define isArrayBuffer -util.isArrayBuffer = function(x) { - return typeof ArrayBuffer !== 'undefined' && x instanceof ArrayBuffer; -}; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -// define isArrayBufferView -util.isArrayBufferView = function(x) { - return x && util.isArrayBuffer(x.buffer) && x.byteLength !== undefined; -}; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -/** - * Ensure a bits param is 8, 16, 24, or 32. Used to validate input for - * algorithms where bit manipulation, JavaScript limitations, and/or algorithm - * design only allow for byte operations of a limited size. - * - * @param n number of bits. - * - * Throw Error if n invalid. - */ -function _checkBitsParam(n) { - if(!(n === 8 || n === 16 || n === 24 || n === 32)) { - throw new Error('Only 8, 16, 24, or 32 bits supported: ' + n); - } -} + if (data.hasOwnProperty('key-data')) { + obj['key-data'] = _ApiClient["default"].convertToType(data['key-data'], 'String'); + } -// TODO: set ByteBuffer to best available backing -util.ByteBuffer = ByteStringBuffer; + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } -/** Buffer w/BinaryString backing */ + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -/** - * Constructor for a binary string backed byte buffer. - * - * @param [b] the bytes to wrap (either encoded as string, one byte per - * character, or as an ArrayBuffer or Typed Array). - */ -function ByteStringBuffer(b) { - // TODO: update to match DataBuffer API + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } - // the data in this buffer - this.data = ''; - // the pointer for reading from this buffer - this.read = 0; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - if(typeof b === 'string') { - this.data = b; - } else if(util.isArrayBuffer(b) || util.isArrayBufferView(b)) { - if(typeof Buffer !== 'undefined' && b instanceof Buffer) { - this.data = b.toString('binary'); - } else { - // convert native buffer to forge buffer - // FIXME: support native buffers internally instead - var arr = new Uint8Array(b); - try { - this.data = String.fromCharCode.apply(null, arr); - } catch(e) { - for(var i = 0; i < arr.length; ++i) { - this.putByte(arr[i]); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } } - } - } else if(b instanceof ByteStringBuffer || - (typeof b === 'object' && typeof b.data === 'string' && - typeof b.read === 'number')) { - // copy existing buffer - this.data = b.data; - this.read = b.read; - } - - // used for v8 optimization - this._constructedStringLength = 0; -} -util.ByteStringBuffer = ByteStringBuffer; -/* Note: This is an optimization for V8-based browsers. When V8 concatenates - a string, the strings are only joined logically using a "cons string" or - "constructed/concatenated string". These containers keep references to one - another and can result in very large memory usage. For example, if a 2MB - string is constructed by concatenating 4 bytes together at a time, the - memory usage will be ~44MB; so ~22x increase. The strings are only joined - together when an operation requiring their joining takes place, such as - substr(). This function is called when adding data to this buffer to ensure - these types of strings are periodically joined to reduce the memory - footprint. */ -var _MAX_CONSTRUCTED_STRING_LENGTH = 4096; -util.ByteStringBuffer.prototype._optimizeConstructedString = function(x) { - this._constructedStringLength += x; - if(this._constructedStringLength > _MAX_CONSTRUCTED_STRING_LENGTH) { - // this substr() should cause the constructed string to join - this.data.substr(0, 1); - this._constructedStringLength = 0; - } -}; + return obj; + } + }]); + return UpdateCertificateValue; +}(); /** - * Gets the number of bytes in this buffer. - * - * @return the number of bytes in this buffer. + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -util.ByteStringBuffer.prototype.length = function() { - return this.data.length - this.read; -}; -/** - * Gets whether or not this buffer is empty. - * - * @return true if this buffer is empty, false if not. - */ -util.ByteStringBuffer.prototype.isEmpty = function() { - return this.length() <= 0; -}; +UpdateCertificateValue.prototype['add-tag'] = undefined; /** - * Puts a byte in this buffer. - * - * @param b the byte to put. - * - * @return this buffer. + * Content of the certificate in a Base64 format. + * @member {String} certificate-data */ -util.ByteStringBuffer.prototype.putByte = function(b) { - return this.putBytes(String.fromCharCode(b)); -}; +UpdateCertificateValue.prototype['certificate-data'] = undefined; /** - * Puts a byte in this buffer N times. - * - * @param b the byte to put. - * @param n the number of bytes of value b to put. - * - * @return this buffer. + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -util.ByteStringBuffer.prototype.fillWithByte = function(b, n) { - b = String.fromCharCode(b); - var d = this.data; - while(n > 0) { - if(n & 1) { - d += b; - } - n >>>= 1; - if(n > 0) { - b += b; - } - } - this.data = d; - this._optimizeConstructedString(n); - return this; -}; +UpdateCertificateValue.prototype['delete_protection'] = undefined; /** - * Puts bytes in this buffer. - * - * @param bytes the bytes (as a binary encoded string) to put. - * - * @return this buffer. + * Description of the object + * @member {String} description */ -util.ByteStringBuffer.prototype.putBytes = function(bytes) { - this.data += bytes; - this._optimizeConstructedString(bytes.length); - return this; -}; +UpdateCertificateValue.prototype['description'] = undefined; /** - * Puts a UTF-16 encoded string into this buffer. - * - * @param str the string to put. - * - * @return this buffer. + * How many days before the expiration of the certificate would you like to be notified. + * @member {Array.} expiration-event-in */ -util.ByteStringBuffer.prototype.putString = function(str) { - return this.putBytes(util.encodeUtf8(str)); -}; +UpdateCertificateValue.prototype['expiration-event-in'] = undefined; /** - * Puts a 16-bit integer in this buffer in big-endian order. - * - * @param i the 16-bit integer. - * - * @return this buffer. + * CertificateFormat of the certificate and private key, possible values: cer,crt,pem,pfx,p12. Required when passing inline certificate content with --certificate-data or --key-data, otherwise format is derived from the file extension. + * @member {String} format */ -util.ByteStringBuffer.prototype.putInt16 = function(i) { - return this.putBytes( - String.fromCharCode(i >> 8 & 0xFF) + - String.fromCharCode(i & 0xFF)); -}; +UpdateCertificateValue.prototype['format'] = undefined; /** - * Puts a 24-bit integer in this buffer in big-endian order. - * - * @param i the 24-bit integer. - * - * @return this buffer. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -util.ByteStringBuffer.prototype.putInt24 = function(i) { - return this.putBytes( - String.fromCharCode(i >> 16 & 0xFF) + - String.fromCharCode(i >> 8 & 0xFF) + - String.fromCharCode(i & 0xFF)); -}; +UpdateCertificateValue.prototype['json'] = false; /** - * Puts a 32-bit integer in this buffer in big-endian order. - * - * @param i the 32-bit integer. - * - * @return this buffer. + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -util.ByteStringBuffer.prototype.putInt32 = function(i) { - return this.putBytes( - String.fromCharCode(i >> 24 & 0xFF) + - String.fromCharCode(i >> 16 & 0xFF) + - String.fromCharCode(i >> 8 & 0xFF) + - String.fromCharCode(i & 0xFF)); -}; +UpdateCertificateValue.prototype['keep-prev-version'] = undefined; /** - * Puts a 16-bit integer in this buffer in little-endian order. - * - * @param i the 16-bit integer. - * - * @return this buffer. + * The name of a key to use to encrypt the certificate's key (if empty, the account default protectionKey key will be used) + * @member {String} key */ -util.ByteStringBuffer.prototype.putInt16Le = function(i) { - return this.putBytes( - String.fromCharCode(i & 0xFF) + - String.fromCharCode(i >> 8 & 0xFF)); -}; +UpdateCertificateValue.prototype['key'] = undefined; /** - * Puts a 24-bit integer in this buffer in little-endian order. - * - * @param i the 24-bit integer. - * - * @return this buffer. + * Content of the certificate's private key in a Base64 format. + * @member {String} key-data */ -util.ByteStringBuffer.prototype.putInt24Le = function(i) { - return this.putBytes( - String.fromCharCode(i & 0xFF) + - String.fromCharCode(i >> 8 & 0xFF) + - String.fromCharCode(i >> 16 & 0xFF)); -}; +UpdateCertificateValue.prototype['key-data'] = undefined; /** - * Puts a 32-bit integer in this buffer in little-endian order. - * - * @param i the 32-bit integer. - * - * @return this buffer. + * Deprecated - use description + * @member {String} metadata */ -util.ByteStringBuffer.prototype.putInt32Le = function(i) { - return this.putBytes( - String.fromCharCode(i & 0xFF) + - String.fromCharCode(i >> 8 & 0xFF) + - String.fromCharCode(i >> 16 & 0xFF) + - String.fromCharCode(i >> 24 & 0xFF)); -}; +UpdateCertificateValue.prototype['metadata'] = undefined; /** - * Puts an n-bit integer in this buffer in big-endian order. - * - * @param i the n-bit integer. - * @param n the number of bits in the integer (8, 16, 24, or 32). - * - * @return this buffer. + * Certificate name + * @member {String} name */ -util.ByteStringBuffer.prototype.putInt = function(i, n) { - _checkBitsParam(n); - var bytes = ''; - do { - n -= 8; - bytes += String.fromCharCode((i >> n) & 0xFF); - } while(n > 0); - return this.putBytes(bytes); -}; +UpdateCertificateValue.prototype['name'] = undefined; /** - * Puts a signed n-bit integer in this buffer in big-endian order. Two's - * complement representation is used. - * - * @param i the n-bit integer. - * @param n the number of bits in the integer (8, 16, 24, or 32). - * - * @return this buffer. + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag */ -util.ByteStringBuffer.prototype.putSignedInt = function(i, n) { - // putInt checks n - if(i < 0) { - i += 2 << (n - 1); - } - return this.putInt(i, n); -}; +UpdateCertificateValue.prototype['rm-tag'] = undefined; /** - * Puts the given buffer into this buffer. - * - * @param buffer the buffer to put into this one. - * - * @return this buffer. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -util.ByteStringBuffer.prototype.putBuffer = function(buffer) { - return this.putBytes(buffer.getBytes()); -}; +UpdateCertificateValue.prototype['token'] = undefined; /** - * Gets a byte from this buffer and advances the read pointer by 1. - * - * @return the byte. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -util.ByteStringBuffer.prototype.getByte = function() { - return this.data.charCodeAt(this.read++); -}; -/** - * Gets a uint16 from this buffer in big-endian order and advances the read - * pointer by 2. - * - * @return the uint16. - */ -util.ByteStringBuffer.prototype.getInt16 = function() { - var rval = ( - this.data.charCodeAt(this.read) << 8 ^ - this.data.charCodeAt(this.read + 1)); - this.read += 2; - return rval; -}; +UpdateCertificateValue.prototype['uid-token'] = undefined; +var _default = UpdateCertificateValue; +exports["default"] = _default; -/** - * Gets a uint24 from this buffer in big-endian order and advances the read - * pointer by 3. - * - * @return the uint24. - */ -util.ByteStringBuffer.prototype.getInt24 = function() { - var rval = ( - this.data.charCodeAt(this.read) << 16 ^ - this.data.charCodeAt(this.read + 1) << 8 ^ - this.data.charCodeAt(this.read + 2)); - this.read += 3; - return rval; -}; +/***/ }), -/** - * Gets a uint32 from this buffer in big-endian order and advances the read - * pointer by 4. - * - * @return the word. - */ -util.ByteStringBuffer.prototype.getInt32 = function() { - var rval = ( - this.data.charCodeAt(this.read) << 24 ^ - this.data.charCodeAt(this.read + 1) << 16 ^ - this.data.charCodeAt(this.read + 2) << 8 ^ - this.data.charCodeAt(this.read + 3)); - this.read += 4; - return rval; -}; +/***/ 49451: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** - * Gets a uint16 from this buffer in little-endian order and advances the read - * pointer by 2. - * - * @return the uint16. - */ -util.ByteStringBuffer.prototype.getInt16Le = function() { - var rval = ( - this.data.charCodeAt(this.read) ^ - this.data.charCodeAt(this.read + 1) << 8); - this.read += 2; - return rval; -}; +"use strict"; -/** - * Gets a uint24 from this buffer in little-endian order and advances the read - * pointer by 3. - * - * @return the uint24. - */ -util.ByteStringBuffer.prototype.getInt24Le = function() { - var rval = ( - this.data.charCodeAt(this.read) ^ - this.data.charCodeAt(this.read + 1) << 8 ^ - this.data.charCodeAt(this.read + 2) << 16); - this.read += 3; - return rval; -}; -/** - * Gets a uint32 from this buffer in little-endian order and advances the read - * pointer by 4. - * - * @return the word. - */ -util.ByteStringBuffer.prototype.getInt32Le = function() { - var rval = ( - this.data.charCodeAt(this.read) ^ - this.data.charCodeAt(this.read + 1) << 8 ^ - this.data.charCodeAt(this.read + 2) << 16 ^ - this.data.charCodeAt(this.read + 3) << 24); - this.read += 4; - return rval; -}; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/** - * Gets an n-bit integer from this buffer in big-endian order and advances the - * read pointer by ceil(n/8). - * - * @param n the number of bits in the integer (8, 16, 24, or 32). - * - * @return the integer. - */ -util.ByteStringBuffer.prototype.getInt = function(n) { - _checkBitsParam(n); - var rval = 0; - do { - // TODO: Use (rval * 0x100) if adding support for 33 to 53 bits. - rval = (rval << 8) + this.data.charCodeAt(this.read++); - n -= 8; - } while(n > 0); - return rval; -}; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/** - * Gets a signed n-bit integer from this buffer in big-endian order, using - * two's complement, and advances the read pointer by n/8. - * - * @param n the number of bits in the integer (8, 16, 24, or 32). - * - * @return the integer. - */ -util.ByteStringBuffer.prototype.getSignedInt = function(n) { - // getInt checks n - var x = this.getInt(n); - var max = 2 << (n - 2); - if(x >= max) { - x -= max << 1; - } - return x; -}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Reads bytes out as a binary encoded string and clears them from the - * buffer. Note that the resulting string is binary encoded (in node.js this - * encoding is referred to as `binary`, it is *not* `utf8`). - * - * @param count the number of bytes to read, undefined or null for all. - * - * @return a binary encoded string of bytes. + * The UpdateClassicKeyCertificate model module. + * @module model/UpdateClassicKeyCertificate + * @version 3.6.3 */ -util.ByteStringBuffer.prototype.getBytes = function(count) { - var rval; - if(count) { - // read count bytes - count = Math.min(this.length(), count); - rval = this.data.slice(this.read, this.read + count); - this.read += count; - } else if(count === 0) { - rval = ''; - } else { - // read all bytes, optimize to only copy when needed - rval = (this.read === 0) ? this.data : this.data.slice(this.read); - this.clear(); +var UpdateClassicKeyCertificate = /*#__PURE__*/function () { + /** + * Constructs a new UpdateClassicKeyCertificate. + * UpdateClassicKeyCertificate is a command that updates the certificate for a classic key + * @alias module:model/UpdateClassicKeyCertificate + * @param name {String} ClassicKey name + */ + function UpdateClassicKeyCertificate(name) { + _classCallCheck(this, UpdateClassicKeyCertificate); + + UpdateClassicKeyCertificate.initialize(this, name); } - return rval; -}; + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/** - * Gets a binary encoded string of the bytes from this buffer without - * modifying the read pointer. - * - * @param count the number of bytes to get, omit to get all. - * - * @return a string full of binary encoded characters. - */ -util.ByteStringBuffer.prototype.bytes = function(count) { - return (typeof(count) === 'undefined' ? - this.data.slice(this.read) : - this.data.slice(this.read, this.read + count)); -}; -/** - * Gets a byte at the given index without modifying the read pointer. - * - * @param i the byte index. - * - * @return the byte. - */ -util.ByteStringBuffer.prototype.at = function(i) { - return this.data.charCodeAt(this.read + i); -}; + _createClass(UpdateClassicKeyCertificate, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a UpdateClassicKeyCertificate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateClassicKeyCertificate} obj Optional instance to populate. + * @return {module:model/UpdateClassicKeyCertificate} The populated UpdateClassicKeyCertificate instance. + */ -/** - * Puts a byte at the given index without modifying the read pointer. - * - * @param i the byte index. - * @param b the byte to put. - * - * @return this buffer. - */ -util.ByteStringBuffer.prototype.setAt = function(i, b) { - this.data = this.data.substr(0, this.read + i) + - String.fromCharCode(b) + - this.data.substr(this.read + i + 1); - return this; -}; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateClassicKeyCertificate(); + + if (data.hasOwnProperty('cert-file-data')) { + obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + return UpdateClassicKeyCertificate; +}(); /** - * Gets the last byte without modifying the read pointer. - * - * @return the last byte. + * PEM Certificate in a Base64 format. Used for updating RSA keys' certificates. + * @member {String} cert-file-data */ -util.ByteStringBuffer.prototype.last = function() { - return this.data.charCodeAt(this.data.length - 1); -}; + +UpdateClassicKeyCertificate.prototype['cert-file-data'] = undefined; /** - * Creates a copy of this buffer. - * - * @return the copy. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -util.ByteStringBuffer.prototype.copy = function() { - var c = util.createBuffer(this.data); - c.read = this.read; - return c; -}; +UpdateClassicKeyCertificate.prototype['json'] = false; /** - * Compacts this buffer. - * - * @return this buffer. + * ClassicKey name + * @member {String} name */ -util.ByteStringBuffer.prototype.compact = function() { - if(this.read > 0) { - this.data = this.data.slice(this.read); - this.read = 0; - } - return this; -}; +UpdateClassicKeyCertificate.prototype['name'] = undefined; /** - * Clears this buffer. - * - * @return this buffer. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -util.ByteStringBuffer.prototype.clear = function() { - this.data = ''; - this.read = 0; - return this; -}; +UpdateClassicKeyCertificate.prototype['token'] = undefined; /** - * Shortens this buffer by triming bytes off of the end of this buffer. - * - * @param count the number of bytes to trim off. - * - * @return this buffer. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -util.ByteStringBuffer.prototype.truncate = function(count) { - var len = Math.max(0, this.length() - count); - this.data = this.data.substr(this.read, len); - this.read = 0; - return this; -}; + +UpdateClassicKeyCertificate.prototype['uid-token'] = undefined; +var _default = UpdateClassicKeyCertificate; +exports["default"] = _default; + +/***/ }), + +/***/ 33529: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Converts this buffer to a hexadecimal string. - * - * @return a hexadecimal string. + * The UpdateDBTarget model module. + * @module model/UpdateDBTarget + * @version 3.6.3 */ -util.ByteStringBuffer.prototype.toHex = function() { - var rval = ''; - for(var i = this.read; i < this.data.length; ++i) { - var b = this.data.charCodeAt(i); - if(b < 16) { - rval += '0'; - } - rval += b.toString(16); +var UpdateDBTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateDBTarget. + * @alias module:model/UpdateDBTarget + * @param connectionType {String} (Optional) Type of connection to mssql database [credentials/cloud-identity] + * @param dbType {String} + * @param name {String} Target name + */ + function UpdateDBTarget(connectionType, dbType, name) { + _classCallCheck(this, UpdateDBTarget); + + UpdateDBTarget.initialize(this, connectionType, dbType, name); } - return rval; -}; + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/** - * Converts this buffer to a UTF-16 string (standard JavaScript string). - * - * @return a UTF-16 string. - */ -util.ByteStringBuffer.prototype.toString = function() { - return util.decodeUtf8(this.bytes()); -}; -/** End Buffer w/BinaryString backing */ + _createClass(UpdateDBTarget, null, [{ + key: "initialize", + value: function initialize(obj, connectionType, dbType, name) { + obj['connection-type'] = connectionType; + obj['db-type'] = dbType; + obj['name'] = name; + } + /** + * Constructs a UpdateDBTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateDBTarget} obj Optional instance to populate. + * @return {module:model/UpdateDBTarget} The populated UpdateDBTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateDBTarget(); + + if (data.hasOwnProperty('DBDefinedConnectionType')) { + obj['DBDefinedConnectionType'] = _ApiClient["default"].convertToType(data['DBDefinedConnectionType'], 'String'); + } + + if (data.hasOwnProperty('azure-client-id')) { + obj['azure-client-id'] = _ApiClient["default"].convertToType(data['azure-client-id'], 'String'); + } + + if (data.hasOwnProperty('azure-client-secret')) { + obj['azure-client-secret'] = _ApiClient["default"].convertToType(data['azure-client-secret'], 'String'); + } + + if (data.hasOwnProperty('azure-tenant-id')) { + obj['azure-tenant-id'] = _ApiClient["default"].convertToType(data['azure-tenant-id'], 'String'); + } + + if (data.hasOwnProperty('cloud-service-provider')) { + obj['cloud-service-provider'] = _ApiClient["default"].convertToType(data['cloud-service-provider'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('connection-type')) { + obj['connection-type'] = _ApiClient["default"].convertToType(data['connection-type'], 'String'); + } + + if (data.hasOwnProperty('db-name')) { + obj['db-name'] = _ApiClient["default"].convertToType(data['db-name'], 'String'); + } + + if (data.hasOwnProperty('db-server-certificates')) { + obj['db-server-certificates'] = _ApiClient["default"].convertToType(data['db-server-certificates'], 'String'); + } + + if (data.hasOwnProperty('db-server-name')) { + obj['db-server-name'] = _ApiClient["default"].convertToType(data['db-server-name'], 'String'); + } + + if (data.hasOwnProperty('db-type')) { + obj['db-type'] = _ApiClient["default"].convertToType(data['db-type'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -/** Buffer w/UInt8Array backing */ + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -/** - * FIXME: Experimental. Do not use yet. - * - * Constructor for an ArrayBuffer-backed byte buffer. - * - * The buffer may be constructed from a string, an ArrayBuffer, DataView, or a - * TypedArray. - * - * If a string is given, its encoding should be provided as an option, - * otherwise it will default to 'binary'. A 'binary' string is encoded such - * that each character is one byte in length and size. - * - * If an ArrayBuffer, DataView, or TypedArray is given, it will be used - * *directly* without any copying. Note that, if a write to the buffer requires - * more space, the buffer will allocate a new backing ArrayBuffer to - * accommodate. The starting read and write offsets for the buffer may be - * given as options. - * - * @param [b] the initial bytes for this buffer. - * @param options the options to use: - * [readOffset] the starting read offset to use (default: 0). - * [writeOffset] the starting write offset to use (default: the - * length of the first parameter). - * [growSize] the minimum amount, in bytes, to grow the buffer by to - * accommodate writes (default: 1024). - * [encoding] the encoding ('binary', 'utf8', 'utf16', 'hex') for the - * first parameter, if it is a string (default: 'binary'). - */ -function DataBuffer(b, options) { - // default options - options = options || {}; + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - // pointers for read from/write to buffer - this.read = options.readOffset || 0; - this.growSize = options.growSize || 1024; + if (data.hasOwnProperty('mongodb-atlas')) { + obj['mongodb-atlas'] = _ApiClient["default"].convertToType(data['mongodb-atlas'], 'Boolean'); + } - var isArrayBuffer = util.isArrayBuffer(b); - var isArrayBufferView = util.isArrayBufferView(b); - if(isArrayBuffer || isArrayBufferView) { - // use ArrayBuffer directly - if(isArrayBuffer) { - this.data = new DataView(b); - } else { - // TODO: adjust read/write offset based on the type of view - // or specify that this must be done in the options ... that the - // offsets are byte-based - this.data = new DataView(b.buffer, b.byteOffset, b.byteLength); - } - this.write = ('writeOffset' in options ? - options.writeOffset : this.data.byteLength); - return; - } + if (data.hasOwnProperty('mongodb-atlas-api-private-key')) { + obj['mongodb-atlas-api-private-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-private-key'], 'String'); + } - // initialize to empty array buffer and add any given bytes using putBytes - this.data = new DataView(new ArrayBuffer(0)); - this.write = 0; + if (data.hasOwnProperty('mongodb-atlas-api-public-key')) { + obj['mongodb-atlas-api-public-key'] = _ApiClient["default"].convertToType(data['mongodb-atlas-api-public-key'], 'String'); + } - if(b !== null && b !== undefined) { - this.putBytes(b); - } + if (data.hasOwnProperty('mongodb-atlas-project-id')) { + obj['mongodb-atlas-project-id'] = _ApiClient["default"].convertToType(data['mongodb-atlas-project-id'], 'String'); + } - if('writeOffset' in options) { - this.write = options.writeOffset; - } -} -util.DataBuffer = DataBuffer; + if (data.hasOwnProperty('mongodb-default-auth-db')) { + obj['mongodb-default-auth-db'] = _ApiClient["default"].convertToType(data['mongodb-default-auth-db'], 'String'); + } -/** - * Gets the number of bytes in this buffer. - * - * @return the number of bytes in this buffer. - */ -util.DataBuffer.prototype.length = function() { - return this.write - this.read; -}; + if (data.hasOwnProperty('mongodb-uri-options')) { + obj['mongodb-uri-options'] = _ApiClient["default"].convertToType(data['mongodb-uri-options'], 'String'); + } -/** - * Gets whether or not this buffer is empty. - * - * @return true if this buffer is empty, false if not. - */ -util.DataBuffer.prototype.isEmpty = function() { - return this.length() <= 0; -}; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -/** - * Ensures this buffer has enough empty space to accommodate the given number - * of bytes. An optional parameter may be given that indicates a minimum - * amount to grow the buffer if necessary. If the parameter is not given, - * the buffer will be grown by some previously-specified default amount - * or heuristic. - * - * @param amount the number of bytes to accommodate. - * @param [growSize] the minimum amount, in bytes, to grow the buffer by if - * necessary. - */ -util.DataBuffer.prototype.accommodate = function(amount, growSize) { - if(this.length() >= amount) { - return this; - } - growSize = Math.max(growSize || this.growSize, amount); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - // grow buffer - var src = new Uint8Array( - this.data.buffer, this.data.byteOffset, this.data.byteLength); - var dst = new Uint8Array(this.length() + growSize); - dst.set(src); - this.data = new DataView(dst.buffer); + if (data.hasOwnProperty('oracle-service-name')) { + obj['oracle-service-name'] = _ApiClient["default"].convertToType(data['oracle-service-name'], 'String'); + } - return this; -}; + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } -/** - * Puts a byte in this buffer. - * - * @param b the byte to put. - * - * @return this buffer. - */ -util.DataBuffer.prototype.putByte = function(b) { - this.accommodate(1); - this.data.setUint8(this.write++, b); - return this; -}; + if (data.hasOwnProperty('pwd')) { + obj['pwd'] = _ApiClient["default"].convertToType(data['pwd'], 'String'); + } -/** - * Puts a byte in this buffer N times. - * - * @param b the byte to put. - * @param n the number of bytes of value b to put. - * - * @return this buffer. - */ -util.DataBuffer.prototype.fillWithByte = function(b, n) { - this.accommodate(n); - for(var i = 0; i < n; ++i) { - this.data.setUint8(b); - } - return this; -}; + if (data.hasOwnProperty('snowflake-account')) { + obj['snowflake-account'] = _ApiClient["default"].convertToType(data['snowflake-account'], 'String'); + } -/** - * Puts bytes in this buffer. The bytes may be given as a string, an - * ArrayBuffer, a DataView, or a TypedArray. - * - * @param bytes the bytes to put. - * @param [encoding] the encoding for the first parameter ('binary', 'utf8', - * 'utf16', 'hex'), if it is a string (default: 'binary'). - * - * @return this buffer. - */ -util.DataBuffer.prototype.putBytes = function(bytes, encoding) { - if(util.isArrayBufferView(bytes)) { - var src = new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.byteLength); - var len = src.byteLength - src.byteOffset; - this.accommodate(len); - var dst = new Uint8Array(this.data.buffer, this.write); - dst.set(src); - this.write += len; - return this; - } + if (data.hasOwnProperty('snowflake-api-private-key')) { + obj['snowflake-api-private-key'] = _ApiClient["default"].convertToType(data['snowflake-api-private-key'], 'String'); + } - if(util.isArrayBuffer(bytes)) { - var src = new Uint8Array(bytes); - this.accommodate(src.byteLength); - var dst = new Uint8Array(this.data.buffer); - dst.set(src, this.write); - this.write += src.byteLength; - return this; - } + if (data.hasOwnProperty('snowflake-api-private-key-password')) { + obj['snowflake-api-private-key-password'] = _ApiClient["default"].convertToType(data['snowflake-api-private-key-password'], 'String'); + } - // bytes is a util.DataBuffer or equivalent - if(bytes instanceof util.DataBuffer || - (typeof bytes === 'object' && - typeof bytes.read === 'number' && typeof bytes.write === 'number' && - util.isArrayBufferView(bytes.data))) { - var src = new Uint8Array(bytes.data.byteLength, bytes.read, bytes.length()); - this.accommodate(src.byteLength); - var dst = new Uint8Array(bytes.data.byteLength, this.write); - dst.set(src); - this.write += src.byteLength; - return this; - } + if (data.hasOwnProperty('ssl')) { + obj['ssl'] = _ApiClient["default"].convertToType(data['ssl'], 'Boolean'); + } - if(bytes instanceof util.ByteStringBuffer) { - // copy binary string and process as the same as a string parameter below - bytes = bytes.data; - encoding = 'binary'; - } + if (data.hasOwnProperty('ssl-certificate')) { + obj['ssl-certificate'] = _ApiClient["default"].convertToType(data['ssl-certificate'], 'String'); + } - // string conversion - encoding = encoding || 'binary'; - if(typeof bytes === 'string') { - var view; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - // decode from string - if(encoding === 'hex') { - this.accommodate(Math.ceil(bytes.length / 2)); - view = new Uint8Array(this.data.buffer, this.write); - this.write += util.binary.hex.decode(bytes, view, this.write); - return this; - } - if(encoding === 'base64') { - this.accommodate(Math.ceil(bytes.length / 4) * 3); - view = new Uint8Array(this.data.buffer, this.write); - this.write += util.binary.base64.decode(bytes, view, this.write); - return this; - } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } - // encode text as UTF-8 bytes - if(encoding === 'utf8') { - // encode as UTF-8 then decode string as raw binary - bytes = util.encodeUtf8(bytes); - encoding = 'binary'; - } + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } - // decode string as raw binary - if(encoding === 'binary' || encoding === 'raw') { - // one byte per character - this.accommodate(bytes.length); - view = new Uint8Array(this.data.buffer, this.write); - this.write += util.binary.raw.decode(view); - return this; - } + if (data.hasOwnProperty('user-name')) { + obj['user-name'] = _ApiClient["default"].convertToType(data['user-name'], 'String'); + } + } - // encode text as UTF-16 bytes - if(encoding === 'utf16') { - // two bytes per character - this.accommodate(bytes.length * 2); - view = new Uint16Array(this.data.buffer, this.write); - this.write += util.text.utf16.encode(view); - return this; + return obj; } + }]); - throw new Error('Invalid encoding: ' + encoding); - } + return UpdateDBTarget; +}(); +/** + * @member {String} DBDefinedConnectionType + */ - throw Error('Invalid parameter: ' + bytes); -}; +UpdateDBTarget.prototype['DBDefinedConnectionType'] = undefined; /** - * Puts the given buffer into this buffer. - * - * @param buffer the buffer to put into this one. - * - * @return this buffer. + * (Optional) Client id (relevant for \"cloud-service-provider\" only) + * @member {String} azure-client-id */ -util.DataBuffer.prototype.putBuffer = function(buffer) { - this.putBytes(buffer); - buffer.clear(); - return this; -}; +UpdateDBTarget.prototype['azure-client-id'] = undefined; /** - * Puts a string into this buffer. - * - * @param str the string to put. - * @param [encoding] the encoding for the string (default: 'utf16'). - * - * @return this buffer. + * (Optional) Client secret (relevant for \"cloud-service-provider\" only) + * @member {String} azure-client-secret */ -util.DataBuffer.prototype.putString = function(str) { - return this.putBytes(str, 'utf16'); -}; +UpdateDBTarget.prototype['azure-client-secret'] = undefined; /** - * Puts a 16-bit integer in this buffer in big-endian order. - * - * @param i the 16-bit integer. - * - * @return this buffer. + * (Optional) Tenant id (relevant for \"cloud-service-provider\" only) + * @member {String} azure-tenant-id */ -util.DataBuffer.prototype.putInt16 = function(i) { - this.accommodate(2); - this.data.setInt16(this.write, i); - this.write += 2; - return this; -}; +UpdateDBTarget.prototype['azure-tenant-id'] = undefined; /** - * Puts a 24-bit integer in this buffer in big-endian order. - * - * @param i the 24-bit integer. - * - * @return this buffer. + * (Optional) Cloud service provider (currently only supports Azure) + * @member {String} cloud-service-provider */ -util.DataBuffer.prototype.putInt24 = function(i) { - this.accommodate(3); - this.data.setInt16(this.write, i >> 8 & 0xFFFF); - this.data.setInt8(this.write, i >> 16 & 0xFF); - this.write += 3; - return this; -}; +UpdateDBTarget.prototype['cloud-service-provider'] = undefined; /** - * Puts a 32-bit integer in this buffer in big-endian order. - * - * @param i the 32-bit integer. - * - * @return this buffer. + * Deprecated - use description + * @member {String} comment */ -util.DataBuffer.prototype.putInt32 = function(i) { - this.accommodate(4); - this.data.setInt32(this.write, i); - this.write += 4; - return this; -}; +UpdateDBTarget.prototype['comment'] = undefined; /** - * Puts a 16-bit integer in this buffer in little-endian order. - * - * @param i the 16-bit integer. - * - * @return this buffer. + * (Optional) Type of connection to mssql database [credentials/cloud-identity] + * @member {String} connection-type + * @default 'credentials' */ -util.DataBuffer.prototype.putInt16Le = function(i) { - this.accommodate(2); - this.data.setInt16(this.write, i, true); - this.write += 2; - return this; -}; +UpdateDBTarget.prototype['connection-type'] = 'credentials'; /** - * Puts a 24-bit integer in this buffer in little-endian order. - * - * @param i the 24-bit integer. - * - * @return this buffer. + * @member {String} db-name */ -util.DataBuffer.prototype.putInt24Le = function(i) { - this.accommodate(3); - this.data.setInt8(this.write, i >> 16 & 0xFF); - this.data.setInt16(this.write, i >> 8 & 0xFFFF, true); - this.write += 3; - return this; -}; +UpdateDBTarget.prototype['db-name'] = undefined; /** - * Puts a 32-bit integer in this buffer in little-endian order. - * - * @param i the 32-bit integer. - * - * @return this buffer. + * (Optional) DB server certificates + * @member {String} db-server-certificates */ -util.DataBuffer.prototype.putInt32Le = function(i) { - this.accommodate(4); - this.data.setInt32(this.write, i, true); - this.write += 4; - return this; -}; +UpdateDBTarget.prototype['db-server-certificates'] = undefined; /** - * Puts an n-bit integer in this buffer in big-endian order. - * - * @param i the n-bit integer. - * @param n the number of bits in the integer (8, 16, 24, or 32). - * - * @return this buffer. + * (Optional) Server name for certificate verification + * @member {String} db-server-name */ -util.DataBuffer.prototype.putInt = function(i, n) { - _checkBitsParam(n); - this.accommodate(n / 8); - do { - n -= 8; - this.data.setInt8(this.write++, (i >> n) & 0xFF); - } while(n > 0); - return this; -}; +UpdateDBTarget.prototype['db-server-name'] = undefined; /** - * Puts a signed n-bit integer in this buffer in big-endian order. Two's - * complement representation is used. - * - * @param i the n-bit integer. - * @param n the number of bits in the integer. - * - * @return this buffer. + * @member {String} db-type */ -util.DataBuffer.prototype.putSignedInt = function(i, n) { - _checkBitsParam(n); - this.accommodate(n / 8); - if(i < 0) { - i += 2 << (n - 1); - } - return this.putInt(i, n); -}; +UpdateDBTarget.prototype['db-type'] = undefined; /** - * Gets a byte from this buffer and advances the read pointer by 1. - * - * @return the byte. + * Description of the object + * @member {String} description */ -util.DataBuffer.prototype.getByte = function() { - return this.data.getInt8(this.read++); -}; +UpdateDBTarget.prototype['description'] = undefined; /** - * Gets a uint16 from this buffer in big-endian order and advances the read - * pointer by 2. - * - * @return the uint16. + * @member {String} host */ -util.DataBuffer.prototype.getInt16 = function() { - var rval = this.data.getInt16(this.read); - this.read += 2; - return rval; -}; +UpdateDBTarget.prototype['host'] = undefined; /** - * Gets a uint24 from this buffer in big-endian order and advances the read - * pointer by 3. - * - * @return the uint24. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -util.DataBuffer.prototype.getInt24 = function() { - var rval = ( - this.data.getInt16(this.read) << 8 ^ - this.data.getInt8(this.read + 2)); - this.read += 3; - return rval; -}; +UpdateDBTarget.prototype['json'] = false; /** - * Gets a uint32 from this buffer in big-endian order and advances the read - * pointer by 4. - * - * @return the word. + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -util.DataBuffer.prototype.getInt32 = function() { - var rval = this.data.getInt32(this.read); - this.read += 4; - return rval; -}; +UpdateDBTarget.prototype['keep-prev-version'] = undefined; /** - * Gets a uint16 from this buffer in little-endian order and advances the read - * pointer by 2. - * - * @return the uint16. + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -util.DataBuffer.prototype.getInt16Le = function() { - var rval = this.data.getInt16(this.read, true); - this.read += 2; - return rval; -}; +UpdateDBTarget.prototype['key'] = undefined; /** - * Gets a uint24 from this buffer in little-endian order and advances the read - * pointer by 3. - * - * @return the uint24. + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -util.DataBuffer.prototype.getInt24Le = function() { - var rval = ( - this.data.getInt8(this.read) ^ - this.data.getInt16(this.read + 1, true) << 8); - this.read += 3; - return rval; -}; +UpdateDBTarget.prototype['max-versions'] = undefined; /** - * Gets a uint32 from this buffer in little-endian order and advances the read - * pointer by 4. - * - * @return the word. + * @member {Boolean} mongodb-atlas */ -util.DataBuffer.prototype.getInt32Le = function() { - var rval = this.data.getInt32(this.read, true); - this.read += 4; - return rval; -}; +UpdateDBTarget.prototype['mongodb-atlas'] = undefined; /** - * Gets an n-bit integer from this buffer in big-endian order and advances the - * read pointer by n/8. - * - * @param n the number of bits in the integer (8, 16, 24, or 32). - * - * @return the integer. + * MongoDB Atlas private key + * @member {String} mongodb-atlas-api-private-key */ -util.DataBuffer.prototype.getInt = function(n) { - _checkBitsParam(n); - var rval = 0; - do { - // TODO: Use (rval * 0x100) if adding support for 33 to 53 bits. - rval = (rval << 8) + this.data.getInt8(this.read++); - n -= 8; - } while(n > 0); - return rval; -}; +UpdateDBTarget.prototype['mongodb-atlas-api-private-key'] = undefined; /** - * Gets a signed n-bit integer from this buffer in big-endian order, using - * two's complement, and advances the read pointer by n/8. - * - * @param n the number of bits in the integer (8, 16, 24, or 32). - * - * @return the integer. + * MongoDB Atlas public key + * @member {String} mongodb-atlas-api-public-key */ -util.DataBuffer.prototype.getSignedInt = function(n) { - // getInt checks n - var x = this.getInt(n); - var max = 2 << (n - 2); - if(x >= max) { - x -= max << 1; - } - return x; -}; +UpdateDBTarget.prototype['mongodb-atlas-api-public-key'] = undefined; /** - * Reads bytes out as a binary encoded string and clears them from the - * buffer. - * - * @param count the number of bytes to read, undefined or null for all. - * - * @return a binary encoded string of bytes. + * MongoDB Atlas project ID + * @member {String} mongodb-atlas-project-id */ -util.DataBuffer.prototype.getBytes = function(count) { - // TODO: deprecate this method, it is poorly named and - // this.toString('binary') replaces it - // add a toTypedArray()/toArrayBuffer() function - var rval; - if(count) { - // read count bytes - count = Math.min(this.length(), count); - rval = this.data.slice(this.read, this.read + count); - this.read += count; - } else if(count === 0) { - rval = ''; - } else { - // read all bytes, optimize to only copy when needed - rval = (this.read === 0) ? this.data : this.data.slice(this.read); - this.clear(); - } - return rval; -}; +UpdateDBTarget.prototype['mongodb-atlas-project-id'] = undefined; /** - * Gets a binary encoded string of the bytes from this buffer without - * modifying the read pointer. - * - * @param count the number of bytes to get, omit to get all. - * - * @return a string full of binary encoded characters. + * MongoDB server default authentication database + * @member {String} mongodb-default-auth-db */ -util.DataBuffer.prototype.bytes = function(count) { - // TODO: deprecate this method, it is poorly named, add "getString()" - return (typeof(count) === 'undefined' ? - this.data.slice(this.read) : - this.data.slice(this.read, this.read + count)); -}; +UpdateDBTarget.prototype['mongodb-default-auth-db'] = undefined; /** - * Gets a byte at the given index without modifying the read pointer. - * - * @param i the byte index. - * - * @return the byte. + * MongoDB server URI options + * @member {String} mongodb-uri-options */ -util.DataBuffer.prototype.at = function(i) { - return this.data.getUint8(this.read + i); -}; +UpdateDBTarget.prototype['mongodb-uri-options'] = undefined; /** - * Puts a byte at the given index without modifying the read pointer. - * - * @param i the byte index. - * @param b the byte to put. - * - * @return this buffer. + * Target name + * @member {String} name */ -util.DataBuffer.prototype.setAt = function(i, b) { - this.data.setUint8(i, b); - return this; -}; +UpdateDBTarget.prototype['name'] = undefined; /** - * Gets the last byte without modifying the read pointer. - * - * @return the last byte. + * New target name + * @member {String} new-name */ -util.DataBuffer.prototype.last = function() { - return this.data.getUint8(this.write - 1); -}; +UpdateDBTarget.prototype['new-name'] = undefined; /** - * Creates a copy of this buffer. - * - * @return the copy. + * @member {String} oracle-service-name */ -util.DataBuffer.prototype.copy = function() { - return new util.DataBuffer(this); -}; +UpdateDBTarget.prototype['oracle-service-name'] = undefined; /** - * Compacts this buffer. - * - * @return this buffer. + * @member {String} port */ -util.DataBuffer.prototype.compact = function() { - if(this.read > 0) { - var src = new Uint8Array(this.data.buffer, this.read); - var dst = new Uint8Array(src.byteLength); - dst.set(src); - this.data = new DataView(dst); - this.write -= this.read; - this.read = 0; - } - return this; -}; +UpdateDBTarget.prototype['port'] = undefined; /** - * Clears this buffer. - * - * @return this buffer. + * @member {String} pwd */ -util.DataBuffer.prototype.clear = function() { - this.data = new DataView(new ArrayBuffer(0)); - this.read = this.write = 0; - return this; -}; +UpdateDBTarget.prototype['pwd'] = undefined; /** - * Shortens this buffer by triming bytes off of the end of this buffer. - * - * @param count the number of bytes to trim off. - * - * @return this buffer. + * @member {String} snowflake-account */ -util.DataBuffer.prototype.truncate = function(count) { - this.write = Math.max(0, this.length() - count); - this.read = Math.min(this.read, this.write); - return this; -}; +UpdateDBTarget.prototype['snowflake-account'] = undefined; /** - * Converts this buffer to a hexadecimal string. - * - * @return a hexadecimal string. + * RSA Private key (base64 encoded) + * @member {String} snowflake-api-private-key */ -util.DataBuffer.prototype.toHex = function() { - var rval = ''; - for(var i = this.read; i < this.data.byteLength; ++i) { - var b = this.data.getUint8(i); - if(b < 16) { - rval += '0'; - } - rval += b.toString(16); - } - return rval; -}; +UpdateDBTarget.prototype['snowflake-api-private-key'] = undefined; /** - * Converts this buffer to a string, using the given encoding. If no - * encoding is given, 'utf8' (UTF-8) is used. - * - * @param [encoding] the encoding to use: 'binary', 'utf8', 'utf16', 'hex', - * 'base64' (default: 'utf8'). - * - * @return a string representation of the bytes in this buffer. + * The Private key passphrase + * @member {String} snowflake-api-private-key-password */ -util.DataBuffer.prototype.toString = function(encoding) { - var view = new Uint8Array(this.data, this.read, this.length()); - encoding = encoding || 'utf8'; - - // encode to string - if(encoding === 'binary' || encoding === 'raw') { - return util.binary.raw.encode(view); - } - if(encoding === 'hex') { - return util.binary.hex.encode(view); - } - if(encoding === 'base64') { - return util.binary.base64.encode(view); - } - - // decode to text - if(encoding === 'utf8') { - return util.text.utf8.decode(view); - } - if(encoding === 'utf16') { - return util.text.utf16.decode(view); - } - - throw new Error('Invalid encoding: ' + encoding); -}; - -/** End Buffer w/UInt8Array backing */ +UpdateDBTarget.prototype['snowflake-api-private-key-password'] = undefined; /** - * Creates a buffer that stores bytes. A value may be given to populate the - * buffer with data. This value can either be string of encoded bytes or a - * regular string of characters. When passing a string of binary encoded - * bytes, the encoding `raw` should be given. This is also the default. When - * passing a string of characters, the encoding `utf8` should be given. - * - * @param [input] a string with encoded bytes to store in the buffer. - * @param [encoding] (default: 'raw', other: 'utf8'). + * Enable/Disable SSL [true/false] + * @member {Boolean} ssl + * @default false */ -util.createBuffer = function(input, encoding) { - // TODO: deprecate, use new ByteBuffer() instead - encoding = encoding || 'raw'; - if(input !== undefined && encoding === 'utf8') { - input = util.encodeUtf8(input); - } - return new util.ByteBuffer(input); -}; +UpdateDBTarget.prototype['ssl'] = false; /** - * Fills a string with a particular value. If you want the string to be a byte - * string, pass in String.fromCharCode(theByte). - * - * @param c the character to fill the string with, use String.fromCharCode - * to fill the string with a byte value. - * @param n the number of characters of value c to fill with. - * - * @return the filled string. + * SSL connection certificate + * @member {String} ssl-certificate */ -util.fillString = function(c, n) { - var s = ''; - while(n > 0) { - if(n & 1) { - s += c; - } - n >>>= 1; - if(n > 0) { - c += c; - } - } - return s; -}; +UpdateDBTarget.prototype['ssl-certificate'] = undefined; /** - * Performs a per byte XOR between two byte strings and returns the result as a - * string of bytes. - * - * @param s1 first string of bytes. - * @param s2 second string of bytes. - * @param n the number of bytes to XOR. - * - * @return the XOR'd result. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -util.xorBytes = function(s1, s2, n) { - var s3 = ''; - var b = ''; - var t = ''; - var i = 0; - var c = 0; - for(; n > 0; --n, ++i) { - b = s1.charCodeAt(i) ^ s2.charCodeAt(i); - if(c >= 10) { - s3 += t; - t = ''; - c = 0; - } - t += String.fromCharCode(b); - ++c; - } - s3 += t; - return s3; -}; +UpdateDBTarget.prototype['token'] = undefined; /** - * Converts a hex string into a 'binary' encoded string of bytes. - * - * @param hex the hexadecimal string to convert. - * - * @return the binary-encoded string of bytes. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -util.hexToBytes = function(hex) { - // TODO: deprecate: "Deprecated. Use util.binary.hex.decode instead." - var rval = ''; - var i = 0; - if(hex.length & 1 == 1) { - // odd number of characters, convert first character alone - i = 1; - rval += String.fromCharCode(parseInt(hex[0], 16)); - } - // convert 2 characters (1 byte) at a time - for(; i < hex.length; i += 2) { - rval += String.fromCharCode(parseInt(hex.substr(i, 2), 16)); - } - return rval; -}; +UpdateDBTarget.prototype['uid-token'] = undefined; /** - * Converts a 'binary' encoded string of bytes to hex. - * - * @param bytes the byte string to convert. - * - * @return the string of hexadecimal characters. + * Deprecated + * @member {Boolean} update-version */ -util.bytesToHex = function(bytes) { - // TODO: deprecate: "Deprecated. Use util.binary.hex.encode instead." - return util.createBuffer(bytes).toHex(); -}; +UpdateDBTarget.prototype['update-version'] = undefined; /** - * Converts an 32-bit integer to 4-big-endian byte string. - * - * @param i the integer. - * - * @return the byte string. + * @member {String} user-name */ -util.int32ToBytes = function(i) { - return ( - String.fromCharCode(i >> 24 & 0xFF) + - String.fromCharCode(i >> 16 & 0xFF) + - String.fromCharCode(i >> 8 & 0xFF) + - String.fromCharCode(i & 0xFF)); -}; - -// base64 characters, reverse mapping -var _base64 = - 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; -var _base64Idx = [ -/*43 -43 = 0*/ -/*'+', 1, 2, 3,'/' */ - 62, -1, -1, -1, 63, -/*'0','1','2','3','4','5','6','7','8','9' */ - 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, +UpdateDBTarget.prototype['user-name'] = undefined; +var _default = UpdateDBTarget; +exports["default"] = _default; -/*15, 16, 17,'=', 19, 20, 21 */ - -1, -1, -1, 64, -1, -1, -1, +/***/ }), -/*65 - 43 = 22*/ -/*'A','B','C','D','E','F','G','H','I','J','K','L','M', */ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, +/***/ 80190: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/*'N','O','P','Q','R','S','T','U','V','W','X','Y','Z' */ - 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, +"use strict"; -/*91 - 43 = 48 */ -/*48, 49, 50, 51, 52, 53 */ - -1, -1, -1, -1, -1, -1, -/*97 - 43 = 54*/ -/*'a','b','c','d','e','f','g','h','i','j','k','l','m' */ - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/*'n','o','p','q','r','s','t','u','v','w','x','y','z' */ - 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51 -]; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -// base58 characters (Bitcoin alphabet) -var _base58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/** - * Base64 encodes a 'binary' encoded string of bytes. - * - * @param input the binary encoded string of bytes to base64-encode. - * @param maxline the maximum number of encoded characters per line to use, - * defaults to none. - * - * @return the base64-encoded output. - */ -util.encode64 = function(input, maxline) { - // TODO: deprecate: "Deprecated. Use util.binary.base64.encode instead." - var line = ''; - var output = ''; - var chr1, chr2, chr3; - var i = 0; - while(i < input.length) { - chr1 = input.charCodeAt(i++); - chr2 = input.charCodeAt(i++); - chr3 = input.charCodeAt(i++); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // encode 4 character group - line += _base64.charAt(chr1 >> 2); - line += _base64.charAt(((chr1 & 3) << 4) | (chr2 >> 4)); - if(isNaN(chr2)) { - line += '=='; - } else { - line += _base64.charAt(((chr2 & 15) << 2) | (chr3 >> 6)); - line += isNaN(chr3) ? '=' : _base64.charAt(chr3 & 63); - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if(maxline && line.length > maxline) { - output += line.substr(0, maxline) + '\r\n'; - line = line.substr(maxline); - } - } - output += line; - return output; -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Base64 decodes a string into a 'binary' encoded string of bytes. - * - * @param input the base64-encoded input. - * - * @return the binary encoded string. + * The UpdateDBTargetDetails model module. + * @module model/UpdateDBTargetDetails + * @version 3.6.3 */ -util.decode64 = function(input) { - // TODO: deprecate: "Deprecated. Use util.binary.base64.decode instead." - - // remove all non-base64 characters - input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ''); +var UpdateDBTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new UpdateDBTargetDetails. + * @alias module:model/UpdateDBTargetDetails + * @param name {String} Target name + */ + function UpdateDBTargetDetails(name) { + _classCallCheck(this, UpdateDBTargetDetails); - var output = ''; - var enc1, enc2, enc3, enc4; - var i = 0; + UpdateDBTargetDetails.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - while(i < input.length) { - enc1 = _base64Idx[input.charCodeAt(i++) - 43]; - enc2 = _base64Idx[input.charCodeAt(i++) - 43]; - enc3 = _base64Idx[input.charCodeAt(i++) - 43]; - enc4 = _base64Idx[input.charCodeAt(i++) - 43]; - output += String.fromCharCode((enc1 << 2) | (enc2 >> 4)); - if(enc3 !== 64) { - // decoded at least 2 bytes - output += String.fromCharCode(((enc2 & 15) << 4) | (enc3 >> 2)); - if(enc4 !== 64) { - // decoded 3 bytes - output += String.fromCharCode(((enc3 & 3) << 6) | enc4); - } + _createClass(UpdateDBTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } - } - - return output; -}; + /** + * Constructs a UpdateDBTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateDBTargetDetails} obj Optional instance to populate. + * @return {module:model/UpdateDBTargetDetails} The populated UpdateDBTargetDetails instance. + */ -/** - * Encodes the given string of characters (a standard JavaScript - * string) as a binary encoded string where the bytes represent - * a UTF-8 encoded string of characters. Non-ASCII characters will be - * encoded as multiple bytes according to UTF-8. - * - * @param str a standard string of characters to encode. - * - * @return the binary encoded string. - */ -util.encodeUtf8 = function(str) { - return unescape(encodeURIComponent(str)); -}; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateDBTargetDetails(); -/** - * Decodes a binary encoded string that contains bytes that - * represent a UTF-8 encoded string of characters -- into a - * string of characters (a standard JavaScript string). - * - * @param str the binary encoded string to decode. - * - * @return the resulting standard string of characters. - */ -util.decodeUtf8 = function(str) { - return decodeURIComponent(escape(str)); -}; + if (data.hasOwnProperty('db_type')) { + obj['db_type'] = _ApiClient["default"].convertToType(data['db_type'], 'String'); + } -// binary encoding/decoding tools -// FIXME: Experimental. Do not use yet. -util.binary = { - raw: {}, - hex: {}, - base64: {}, - base58: {}, - baseN : { - encode: baseN.encode, - decode: baseN.decode - } -}; + if (data.hasOwnProperty('host_name')) { + obj['host_name'] = _ApiClient["default"].convertToType(data['host_name'], 'String'); + } -/** - * Encodes a Uint8Array as a binary-encoded string. This encoding uses - * a value between 0 and 255 for each character. - * - * @param bytes the Uint8Array to encode. - * - * @return the binary-encoded string. - */ -util.binary.raw.encode = function(bytes) { - return String.fromCharCode.apply(null, bytes); -}; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/** - * Decodes a binary-encoded string to a Uint8Array. This encoding uses - * a value between 0 and 255 for each character. - * - * @param str the binary-encoded string to decode. - * @param [output] an optional Uint8Array to write the output to; if it - * is too small, an exception will be thrown. - * @param [offset] the start offset for writing to the output (default: 0). - * - * @return the Uint8Array or the number of bytes written if output was given. - */ -util.binary.raw.decode = function(str, output, offset) { - var out = output; - if(!out) { - out = new Uint8Array(str.length); - } - offset = offset || 0; - var j = offset; - for(var i = 0; i < str.length; ++i) { - out[j++] = str.charCodeAt(i); - } - return output ? (j - offset) : out; -}; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -/** - * Encodes a 'binary' string, ArrayBuffer, DataView, TypedArray, or - * ByteBuffer as a string of hexadecimal characters. - * - * @param bytes the bytes to convert. - * - * @return the string of hexadecimal characters. - */ -util.binary.hex.encode = util.bytesToHex; + if (data.hasOwnProperty('mongo_db_name')) { + obj['mongo_db_name'] = _ApiClient["default"].convertToType(data['mongo_db_name'], 'String'); + } -/** - * Decodes a hex-encoded string to a Uint8Array. - * - * @param hex the hexadecimal string to convert. - * @param [output] an optional Uint8Array to write the output to; if it - * is too small, an exception will be thrown. - * @param [offset] the start offset for writing to the output (default: 0). - * - * @return the Uint8Array or the number of bytes written if output was given. - */ -util.binary.hex.decode = function(hex, output, offset) { - var out = output; - if(!out) { - out = new Uint8Array(Math.ceil(hex.length / 2)); - } - offset = offset || 0; - var i = 0, j = offset; - if(hex.length & 1) { - // odd number of characters, convert first character alone - i = 1; - out[j++] = parseInt(hex[0], 16); - } - // convert 2 characters (1 byte) at a time - for(; i < hex.length; i += 2) { - out[j++] = parseInt(hex.substr(i, 2), 16); - } - return output ? (j - offset) : out; -}; + if (data.hasOwnProperty('mongo_uri')) { + obj['mongo_uri'] = _ApiClient["default"].convertToType(data['mongo_uri'], 'String'); + } -/** - * Base64-encodes a Uint8Array. - * - * @param input the Uint8Array to encode. - * @param maxline the maximum number of encoded characters per line to use, - * defaults to none. - * - * @return the base64-encoded output string. - */ -util.binary.base64.encode = function(input, maxline) { - var line = ''; - var output = ''; - var chr1, chr2, chr3; - var i = 0; - while(i < input.byteLength) { - chr1 = input[i++]; - chr2 = input[i++]; - chr3 = input[i++]; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - // encode 4 character group - line += _base64.charAt(chr1 >> 2); - line += _base64.charAt(((chr1 & 3) << 4) | (chr2 >> 4)); - if(isNaN(chr2)) { - line += '=='; - } else { - line += _base64.charAt(((chr2 & 15) << 2) | (chr3 >> 6)); - line += isNaN(chr3) ? '=' : _base64.charAt(chr3 & 63); - } + if (data.hasOwnProperty('new-version')) { + obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); + } - if(maxline && line.length > maxline) { - output += line.substr(0, maxline) + '\r\n'; - line = line.substr(maxline); - } - } - output += line; - return output; -}; + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } -/** - * Decodes a base64-encoded string to a Uint8Array. - * - * @param input the base64-encoded input string. - * @param [output] an optional Uint8Array to write the output to; if it - * is too small, an exception will be thrown. - * @param [offset] the start offset for writing to the output (default: 0). - * - * @return the Uint8Array or the number of bytes written if output was given. - */ -util.binary.base64.decode = function(input, output, offset) { - var out = output; - if(!out) { - out = new Uint8Array(Math.ceil(input.length / 4) * 3); - } + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } - // remove all non-base64 characters - input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ''); + if (data.hasOwnProperty('pwd')) { + obj['pwd'] = _ApiClient["default"].convertToType(data['pwd'], 'String'); + } - offset = offset || 0; - var enc1, enc2, enc3, enc4; - var i = 0, j = offset; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - while(i < input.length) { - enc1 = _base64Idx[input.charCodeAt(i++) - 43]; - enc2 = _base64Idx[input.charCodeAt(i++) - 43]; - enc3 = _base64Idx[input.charCodeAt(i++) - 43]; - enc4 = _base64Idx[input.charCodeAt(i++) - 43]; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } - out[j++] = (enc1 << 2) | (enc2 >> 4); - if(enc3 !== 64) { - // decoded at least 2 bytes - out[j++] = ((enc2 & 15) << 4) | (enc3 >> 2); - if(enc4 !== 64) { - // decoded 3 bytes - out[j++] = ((enc3 & 3) << 6) | enc4; + if (data.hasOwnProperty('user_name')) { + obj['user_name'] = _ApiClient["default"].convertToType(data['user_name'], 'String'); + } } - } - } - // make sure result is the exact decoded length - return output ? (j - offset) : out.subarray(0, j); -}; + return obj; + } + }]); -// add support for base58 encoding/decoding with Bitcoin alphabet -util.binary.base58.encode = function(input, maxline) { - return util.binary.baseN.encode(input, _base58, maxline); -}; -util.binary.base58.decode = function(input, maxline) { - return util.binary.baseN.decode(input, _base58, maxline); -}; + return UpdateDBTargetDetails; +}(); +/** + * @member {String} db_type + */ -// text encoding/decoding tools -// FIXME: Experimental. Do not use yet. -util.text = { - utf8: {}, - utf16: {} -}; +UpdateDBTargetDetails.prototype['db_type'] = undefined; /** - * Encodes the given string as UTF-8 in a Uint8Array. - * - * @param str the string to encode. - * @param [output] an optional Uint8Array to write the output to; if it - * is too small, an exception will be thrown. - * @param [offset] the start offset for writing to the output (default: 0). - * - * @return the Uint8Array or the number of bytes written if output was given. + * @member {String} host_name */ -util.text.utf8.encode = function(str, output, offset) { - str = util.encodeUtf8(str); - var out = output; - if(!out) { - out = new Uint8Array(str.length); - } - offset = offset || 0; - var j = offset; - for(var i = 0; i < str.length; ++i) { - out[j++] = str.charCodeAt(i); - } - return output ? (j - offset) : out; -}; +UpdateDBTargetDetails.prototype['host_name'] = undefined; /** - * Decodes the UTF-8 contents from a Uint8Array. - * - * @param bytes the Uint8Array to decode. - * - * @return the resulting string. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -util.text.utf8.decode = function(bytes) { - return util.decodeUtf8(String.fromCharCode.apply(null, bytes)); -}; +UpdateDBTargetDetails.prototype['json'] = false; /** - * Encodes the given string as UTF-16 in a Uint8Array. - * - * @param str the string to encode. - * @param [output] an optional Uint8Array to write the output to; if it - * is too small, an exception will be thrown. - * @param [offset] the start offset for writing to the output (default: 0). - * - * @return the Uint8Array or the number of bytes written if output was given. + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -util.text.utf16.encode = function(str, output, offset) { - var out = output; - if(!out) { - out = new Uint8Array(str.length * 2); - } - var view = new Uint16Array(out.buffer); - offset = offset || 0; - var j = offset; - var k = offset; - for(var i = 0; i < str.length; ++i) { - view[k++] = str.charCodeAt(i); - j += 2; - } - return output ? (j - offset) : out; -}; +UpdateDBTargetDetails.prototype['keep-prev-version'] = undefined; /** - * Decodes the UTF-16 contents from a Uint8Array. - * - * @param bytes the Uint8Array to decode. - * - * @return the resulting string. + * @member {String} mongo_db_name */ -util.text.utf16.decode = function(bytes) { - return String.fromCharCode.apply(null, new Uint16Array(bytes.buffer)); -}; +UpdateDBTargetDetails.prototype['mongo_db_name'] = undefined; /** - * Deflates the given data using a flash interface. - * - * @param api the flash interface. - * @param bytes the data. - * @param raw true to return only raw deflate data, false to include zlib - * header and trailer. - * - * @return the deflated data as a string. + * @member {String} mongo_uri */ -util.deflate = function(api, bytes, raw) { - bytes = util.decode64(api.deflate(util.encode64(bytes)).rval); - - // strip zlib header and trailer if necessary - if(raw) { - // zlib header is 2 bytes (CMF,FLG) where FLG indicates that - // there is a 4-byte DICT (alder-32) block before the data if - // its 5th bit is set - var start = 2; - var flg = bytes.charCodeAt(1); - if(flg & 0x20) { - start = 6; - } - // zlib trailer is 4 bytes of adler-32 - bytes = bytes.substring(start, bytes.length - 4); - } - - return bytes; -}; +UpdateDBTargetDetails.prototype['mongo_uri'] = undefined; /** - * Inflates the given data using a flash interface. - * - * @param api the flash interface. - * @param bytes the data. - * @param raw true if the incoming data has no zlib header or trailer and is - * raw DEFLATE data. - * - * @return the inflated data as a string, null on error. + * Target name + * @member {String} name */ -util.inflate = function(api, bytes, raw) { - // TODO: add zlib header and trailer if necessary/possible - var rval = api.inflate(util.encode64(bytes)).rval; - return (rval === null) ? null : util.decode64(rval); -}; +UpdateDBTargetDetails.prototype['name'] = undefined; /** - * Sets a storage object. - * - * @param api the storage interface. - * @param id the storage ID to use. - * @param obj the storage object, null to remove. + * Deprecated + * @member {Boolean} new-version */ -var _setStorageObject = function(api, id, obj) { - if(!api) { - throw new Error('WebStorage not available.'); - } - - var rval; - if(obj === null) { - rval = api.removeItem(id); - } else { - // json-encode and base64-encode object - obj = util.encode64(JSON.stringify(obj)); - rval = api.setItem(id, obj); - } - - // handle potential flash error - if(typeof(rval) !== 'undefined' && rval.rval !== true) { - var error = new Error(rval.error.message); - error.id = rval.error.id; - error.name = rval.error.name; - throw error; - } -}; +UpdateDBTargetDetails.prototype['new-version'] = undefined; /** - * Gets a storage object. - * - * @param api the storage interface. - * @param id the storage ID to use. - * - * @return the storage object entry or null if none exists. + * @member {String} port */ -var _getStorageObject = function(api, id) { - if(!api) { - throw new Error('WebStorage not available.'); - } - - // get the existing entry - var rval = api.getItem(id); - - /* Note: We check api.init because we can't do (api == localStorage) - on IE because of "Class doesn't support Automation" exception. Only - the flash api has an init method so this works too, but we need a - better solution in the future. */ - - // flash returns item wrapped in an object, handle special case - if(api.init) { - if(rval.rval === null) { - if(rval.error) { - var error = new Error(rval.error.message); - error.id = rval.error.id; - error.name = rval.error.name; - throw error; - } - // no error, but also no item - rval = null; - } else { - rval = rval.rval; - } - } - - // handle decoding - if(rval !== null) { - // base64-decode and json-decode data - rval = JSON.parse(util.decode64(rval)); - } - - return rval; -}; +UpdateDBTargetDetails.prototype['port'] = undefined; /** - * Stores an item in local storage. - * - * @param api the storage interface. - * @param id the storage ID to use. - * @param key the key for the item. - * @param data the data for the item (any javascript object/primitive). + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection_key */ -var _setItem = function(api, id, key, data) { - // get storage object - var obj = _getStorageObject(api, id); - if(obj === null) { - // create a new storage object - obj = {}; - } - // update key - obj[key] = data; - - // set storage object - _setStorageObject(api, id, obj); -}; +UpdateDBTargetDetails.prototype['protection_key'] = undefined; /** - * Gets an item from local storage. - * - * @param api the storage interface. - * @param id the storage ID to use. - * @param key the key for the item. - * - * @return the item. + * @member {String} pwd */ -var _getItem = function(api, id, key) { - // get storage object - var rval = _getStorageObject(api, id); - if(rval !== null) { - // return data at key - rval = (key in rval) ? rval[key] : null; - } - - return rval; -}; +UpdateDBTargetDetails.prototype['pwd'] = undefined; /** - * Removes an item from local storage. - * - * @param api the storage interface. - * @param id the storage ID to use. - * @param key the key for the item. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -var _removeItem = function(api, id, key) { - // get storage object - var obj = _getStorageObject(api, id); - if(obj !== null && key in obj) { - // remove key - delete obj[key]; - - // see if entry has no keys remaining - var empty = true; - for(var prop in obj) { - empty = false; - break; - } - if(empty) { - // remove entry entirely if no keys are left - obj = null; - } - - // set storage object - _setStorageObject(api, id, obj); - } -}; +UpdateDBTargetDetails.prototype['token'] = undefined; /** - * Clears the local disk storage identified by the given ID. - * - * @param api the storage interface. - * @param id the storage ID to use. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -var _clearItems = function(api, id) { - _setStorageObject(api, id, null); -}; +UpdateDBTargetDetails.prototype['uid-token'] = undefined; /** - * Calls a storage function. - * - * @param func the function to call. - * @param args the arguments for the function. - * @param location the location argument. - * - * @return the return value from the function. + * @member {String} user_name */ -var _callStorageFunction = function(func, args, location) { - var rval = null; - - // default storage types - if(typeof(location) === 'undefined') { - location = ['web', 'flash']; - } - - // apply storage types in order of preference - var type; - var done = false; - var exception = null; - for(var idx in location) { - type = location[idx]; - try { - if(type === 'flash' || type === 'both') { - if(args[0] === null) { - throw new Error('Flash local storage not available.'); - } - rval = func.apply(this, args); - done = (type === 'flash'); - } - if(type === 'web' || type === 'both') { - args[0] = localStorage; - rval = func.apply(this, args); - done = true; - } - } catch(ex) { - exception = ex; - } - if(done) { - break; - } - } - if(!done) { - throw exception; - } +UpdateDBTargetDetails.prototype['user_name'] = undefined; +var _default = UpdateDBTargetDetails; +exports["default"] = _default; - return rval; -}; +/***/ }), -/** - * Stores an item on local disk. - * - * The available types of local storage include 'flash', 'web', and 'both'. - * - * The type 'flash' refers to flash local storage (SharedObject). In order - * to use flash local storage, the 'api' parameter must be valid. The type - * 'web' refers to WebStorage, if supported by the browser. The type 'both' - * refers to storing using both 'flash' and 'web', not just one or the - * other. - * - * The location array should list the storage types to use in order of - * preference: - * - * ['flash']: flash only storage - * ['web']: web only storage - * ['both']: try to store in both - * ['flash','web']: store in flash first, but if not available, 'web' - * ['web','flash']: store in web first, but if not available, 'flash' - * - * The location array defaults to: ['web', 'flash'] - * - * @param api the flash interface, null to use only WebStorage. - * @param id the storage ID to use. - * @param key the key for the item. - * @param data the data for the item (any javascript object/primitive). - * @param location an array with the preferred types of storage to use. - */ -util.setItem = function(api, id, key, data, location) { - _callStorageFunction(_setItem, arguments, location); -}; +/***/ 72131: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** - * Gets an item on local disk. - * - * Set setItem() for details on storage types. - * - * @param api the flash interface, null to use only WebStorage. - * @param id the storage ID to use. - * @param key the key for the item. - * @param location an array with the preferred types of storage to use. - * - * @return the item. - */ -util.getItem = function(api, id, key, location) { - return _callStorageFunction(_getItem, arguments, location); -}; +"use strict"; -/** - * Removes an item on local disk. - * - * Set setItem() for details on storage types. - * - * @param api the flash interface. - * @param id the storage ID to use. - * @param key the key for the item. - * @param location an array with the preferred types of storage to use. - */ -util.removeItem = function(api, id, key, location) { - _callStorageFunction(_removeItem, arguments, location); -}; -/** - * Clears the local disk storage identified by the given ID. - * - * Set setItem() for details on storage types. - * - * @param api the flash interface if flash is available. - * @param id the storage ID to use. - * @param location an array with the preferred types of storage to use. - */ -util.clearItems = function(api, id, location) { - _callStorageFunction(_clearItems, arguments, location); -}; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/** - * Check if an object is empty. - * - * Taken from: - * http://stackoverflow.com/questions/679915/how-do-i-test-for-an-empty-javascript-object-from-json/679937#679937 - * - * @param object the object to check. - */ -util.isEmpty = function(obj) { - for(var prop in obj) { - if(obj.hasOwnProperty(prop)) { - return false; - } - } - return true; -}; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/** - * Format with simple printf-style interpolation. - * - * %%: literal '%' - * %s,%o: convert next argument into a string. - * - * @param format the string to format. - * @param ... arguments to interpolate into the format string. - */ -util.format = function(format) { - var re = /%./g; - // current match - var match; - // current part - var part; - // current arg index - var argi = 0; - // collected parts to recombine later - var parts = []; - // last index found - var last = 0; - // loop while matches remain - while((match = re.exec(format))) { - part = format.substring(last, re.lastIndex - 2); - // don't add empty strings (ie, parts between %s%s) - if(part.length > 0) { - parts.push(part); - } - last = re.lastIndex; - // switch on % code - var code = match[0][1]; - switch(code) { - case 's': - case 'o': - // check if enough arguments were given - if(argi < arguments.length) { - parts.push(arguments[argi++ + 1]); - } else { - parts.push(''); - } - break; - // FIXME: do proper formating for numbers, etc - //case 'f': - //case 'd': - case '%': - parts.push('%'); - break; - default: - parts.push('<%' + code + '?>'); - } - } - // add trailing part of format string - parts.push(format.substring(last)); - return parts.join(''); -}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/** - * Formats a number. - * - * http://snipplr.com/view/5945/javascript-numberformat--ported-from-php/ - */ -util.formatNumber = function(number, decimals, dec_point, thousands_sep) { - // http://kevin.vanzonneveld.net - // + original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) - // + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) - // + bugfix by: Michael White (http://crestidg.com) - // + bugfix by: Benjamin Lupton - // + bugfix by: Allan Jensen (http://www.winternet.no) - // + revised by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) - // * example 1: number_format(1234.5678, 2, '.', ''); - // * returns 1: 1234.57 +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var n = number, c = isNaN(decimals = Math.abs(decimals)) ? 2 : decimals; - var d = dec_point === undefined ? ',' : dec_point; - var t = thousands_sep === undefined ? - '.' : thousands_sep, s = n < 0 ? '-' : ''; - var i = parseInt((n = Math.abs(+n || 0).toFixed(c)), 10) + ''; - var j = (i.length > 3) ? i.length % 3 : 0; - return s + (j ? i.substr(0, j) + t : '') + - i.substr(j).replace(/(\d{3})(?=\d)/g, '$1' + t) + - (c ? d + Math.abs(n - i).toFixed(c).slice(2) : ''); -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/** - * Formats a byte size. - * - * http://snipplr.com/view/5949/format-humanize-file-byte-size-presentation-in-javascript/ - */ -util.formatSize = function(size) { - if(size >= 1073741824) { - size = util.formatNumber(size / 1073741824, 2, '.', '') + ' GiB'; - } else if(size >= 1048576) { - size = util.formatNumber(size / 1048576, 2, '.', '') + ' MiB'; - } else if(size >= 1024) { - size = util.formatNumber(size / 1024, 0) + ' KiB'; - } else { - size = util.formatNumber(size, 0) + ' bytes'; - } - return size; -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Converts an IPv4 or IPv6 string representation into bytes (in network order). - * - * @param ip the IPv4 or IPv6 address to convert. - * - * @return the 4-byte IPv6 or 16-byte IPv6 address or null if the address can't - * be parsed. + * The UpdateDBTargetOutput model module. + * @module model/UpdateDBTargetOutput + * @version 3.6.3 */ -util.bytesFromIP = function(ip) { - if(ip.indexOf('.') !== -1) { - return util.bytesFromIPv4(ip); - } - if(ip.indexOf(':') !== -1) { - return util.bytesFromIPv6(ip); - } - return null; -}; +var UpdateDBTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateDBTargetOutput. + * @alias module:model/UpdateDBTargetOutput + */ + function UpdateDBTargetOutput() { + _classCallCheck(this, UpdateDBTargetOutput); -/** - * Converts an IPv4 string representation into bytes (in network order). - * - * @param ip the IPv4 address to convert. - * - * @return the 4-byte address or null if the address can't be parsed. - */ -util.bytesFromIPv4 = function(ip) { - ip = ip.split('.'); - if(ip.length !== 4) { - return null; - } - var b = util.createBuffer(); - for(var i = 0; i < ip.length; ++i) { - var num = parseInt(ip[i], 10); - if(isNaN(num)) { - return null; - } - b.putByte(num); + UpdateDBTargetOutput.initialize(this); } - return b.getBytes(); -}; + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/** - * Converts an IPv6 string representation into bytes (in network order). - * - * @param ip the IPv6 address to convert. - * - * @return the 16-byte address or null if the address can't be parsed. - */ -util.bytesFromIPv6 = function(ip) { - var blanks = 0; - ip = ip.split(':').filter(function(e) { - if(e.length === 0) ++blanks; - return true; - }); - var zeros = (8 - ip.length + blanks) * 2; - var b = util.createBuffer(); - for(var i = 0; i < 8; ++i) { - if(!ip[i] || ip[i].length === 0) { - b.fillWithByte(0, zeros); - zeros = 0; - continue; - } - var bytes = util.hexToBytes(ip[i]); - if(bytes.length < 2) { - b.putByte(0); - } - b.putBytes(bytes); - } - return b.getBytes(); -}; -/** - * Converts 4-bytes into an IPv4 string representation or 16-bytes into - * an IPv6 string representation. The bytes must be in network order. - * - * @param bytes the bytes to convert. - * - * @return the IPv4 or IPv6 string representation if 4 or 16 bytes, - * respectively, are given, otherwise null. - */ -util.bytesToIP = function(bytes) { - if(bytes.length === 4) { - return util.bytesToIPv4(bytes); - } - if(bytes.length === 16) { - return util.bytesToIPv6(bytes); - } - return null; -}; + _createClass(UpdateDBTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateDBTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateDBTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateDBTargetOutput} The populated UpdateDBTargetOutput instance. + */ -/** - * Converts 4-bytes into an IPv4 string representation. The bytes must be - * in network order. - * - * @param bytes the bytes to convert. - * - * @return the IPv4 string representation or null for an invalid # of bytes. - */ -util.bytesToIPv4 = function(bytes) { - if(bytes.length !== 4) { - return null; - } - var ip = []; - for(var i = 0; i < bytes.length; ++i) { - ip.push(bytes.charCodeAt(i)); - } - return ip.join('.'); -}; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateDBTargetOutput(); -/** - * Converts 16-bytes into an IPv16 string representation. The bytes must be - * in network order. - * - * @param bytes the bytes to convert. - * - * @return the IPv16 string representation or null for an invalid # of bytes. - */ -util.bytesToIPv6 = function(bytes) { - if(bytes.length !== 16) { - return null; - } - var ip = []; - var zeroGroups = []; - var zeroMaxGroup = 0; - for(var i = 0; i < bytes.length; i += 2) { - var hex = util.bytesToHex(bytes[i] + bytes[i + 1]); - // canonicalize zero representation - while(hex[0] === '0' && hex !== '0') { - hex = hex.substr(1); - } - if(hex === '0') { - var last = zeroGroups[zeroGroups.length - 1]; - var idx = ip.length; - if(!last || idx !== last.end + 1) { - zeroGroups.push({start: idx, end: idx}); - } else { - last.end = idx; - if((last.end - last.start) > - (zeroGroups[zeroMaxGroup].end - zeroGroups[zeroMaxGroup].start)) { - zeroMaxGroup = zeroGroups.length - 1; + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); } } + + return obj; } - ip.push(hex); - } - if(zeroGroups.length > 0) { - var group = zeroGroups[zeroMaxGroup]; - // only shorten group of length > 0 - if(group.end - group.start > 0) { - ip.splice(group.start, group.end - group.start + 1, ''); - if(group.start === 0) { - ip.unshift(''); - } - if(group.end === 7) { - ip.push(''); - } - } - } - return ip.join(':'); -}; + }]); + return UpdateDBTargetOutput; +}(); /** - * Estimates the number of processes that can be run concurrently. If - * creating Web Workers, keep in mind that the main JavaScript process needs - * its own core. - * - * @param options the options to use: - * update true to force an update (not use the cached value). - * @param callback(err, max) called once the operation completes. + * @member {Number} target_id */ -util.estimateCores = function(options, callback) { - if(typeof options === 'function') { - callback = options; - options = {}; - } - options = options || {}; - if('cores' in util && !options.update) { - return callback(null, util.cores); - } - if(typeof navigator !== 'undefined' && - 'hardwareConcurrency' in navigator && - navigator.hardwareConcurrency > 0) { - util.cores = navigator.hardwareConcurrency; - return callback(null, util.cores); - } - if(typeof Worker === 'undefined') { - // workers not available - util.cores = 1; - return callback(null, util.cores); - } - if(typeof Blob === 'undefined') { - // can't estimate, default to 2 - util.cores = 2; - return callback(null, util.cores); - } - - // create worker concurrency estimation code as blob - var blobUrl = URL.createObjectURL(new Blob(['(', - function() { - self.addEventListener('message', function(e) { - // run worker for 4 ms - var st = Date.now(); - var et = st + 4; - while(Date.now() < et); - self.postMessage({st: st, et: et}); - }); - }.toString(), - ')()'], {type: 'application/javascript'})); - - // take 5 samples using 16 workers - sample([], 5, 16); - - function sample(max, samples, numWorkers) { - if(samples === 0) { - // get overlap average - var avg = Math.floor(max.reduce(function(avg, x) { - return avg + x; - }, 0) / max.length); - util.cores = Math.max(1, avg); - URL.revokeObjectURL(blobUrl); - return callback(null, util.cores); - } - map(numWorkers, function(err, results) { - max.push(reduce(numWorkers, results)); - sample(max, samples - 1, numWorkers); - }); - } - - function map(numWorkers, callback) { - var workers = []; - var results = []; - for(var i = 0; i < numWorkers; ++i) { - var worker = new Worker(blobUrl); - worker.addEventListener('message', function(e) { - results.push(e.data); - if(results.length === numWorkers) { - for(var i = 0; i < numWorkers; ++i) { - workers[i].terminate(); - } - callback(null, results); - } - }); - workers.push(worker); - } - for(var i = 0; i < numWorkers; ++i) { - workers[i].postMessage(i); - } - } - function reduce(numWorkers, results) { - // find overlapping time windows - var overlaps = []; - for(var n = 0; n < numWorkers; ++n) { - var r1 = results[n]; - var overlap = overlaps[n] = []; - for(var i = 0; i < numWorkers; ++i) { - if(n === i) { - continue; - } - var r2 = results[i]; - if((r1.st > r2.st && r1.st < r2.et) || - (r2.st > r1.st && r2.st < r1.et)) { - overlap.push(i); - } - } - } - // get maximum overlaps ... don't include overlapping worker itself - // as the main JS process was also being scheduled during the work and - // would have to be subtracted from the estimate anyway - return overlaps.reduce(function(max, overlap) { - return Math.max(max, overlap.length); - }, 0); - } -}; +UpdateDBTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateDBTargetOutput; +exports["default"] = _default; /***/ }), -/***/ 15184: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -/** - * Javascript implementation of X.509 and related components (such as - * Certification Signing Requests) of a Public Key Infrastructure. - * - * @author Dave Longley - * - * Copyright (c) 2010-2014 Digital Bazaar, Inc. - * - * The ASN.1 representation of an X.509v3 certificate is as follows - * (see RFC 2459): - * - * Certificate ::= SEQUENCE { - * tbsCertificate TBSCertificate, - * signatureAlgorithm AlgorithmIdentifier, - * signatureValue BIT STRING - * } - * - * TBSCertificate ::= SEQUENCE { - * version [0] EXPLICIT Version DEFAULT v1, - * serialNumber CertificateSerialNumber, - * signature AlgorithmIdentifier, - * issuer Name, - * validity Validity, - * subject Name, - * subjectPublicKeyInfo SubjectPublicKeyInfo, - * issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL, - * -- If present, version shall be v2 or v3 - * subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL, - * -- If present, version shall be v2 or v3 - * extensions [3] EXPLICIT Extensions OPTIONAL - * -- If present, version shall be v3 - * } - * - * Version ::= INTEGER { v1(0), v2(1), v3(2) } - * - * CertificateSerialNumber ::= INTEGER - * - * Name ::= CHOICE { - * // only one possible choice for now - * RDNSequence - * } - * - * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName - * - * RelativeDistinguishedName ::= SET OF AttributeTypeAndValue - * - * AttributeTypeAndValue ::= SEQUENCE { - * type AttributeType, - * value AttributeValue - * } - * AttributeType ::= OBJECT IDENTIFIER - * AttributeValue ::= ANY DEFINED BY AttributeType - * - * Validity ::= SEQUENCE { - * notBefore Time, - * notAfter Time - * } - * - * Time ::= CHOICE { - * utcTime UTCTime, - * generalTime GeneralizedTime - * } - * - * UniqueIdentifier ::= BIT STRING - * - * SubjectPublicKeyInfo ::= SEQUENCE { - * algorithm AlgorithmIdentifier, - * subjectPublicKey BIT STRING - * } - * - * Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension - * - * Extension ::= SEQUENCE { - * extnID OBJECT IDENTIFIER, - * critical BOOLEAN DEFAULT FALSE, - * extnValue OCTET STRING - * } - * - * The only key algorithm currently supported for PKI is RSA. - * - * RSASSA-PSS signatures are described in RFC 3447 and RFC 4055. - * - * PKCS#10 v1.7 describes certificate signing requests: - * - * CertificationRequestInfo: - * - * CertificationRequestInfo ::= SEQUENCE { - * version INTEGER { v1(0) } (v1,...), - * subject Name, - * subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }}, - * attributes [0] Attributes{{ CRIAttributes }} - * } - * - * Attributes { ATTRIBUTE:IOSet } ::= SET OF Attribute{{ IOSet }} - * - * CRIAttributes ATTRIBUTE ::= { - * ... -- add any locally defined attributes here -- } - * - * Attribute { ATTRIBUTE:IOSet } ::= SEQUENCE { - * type ATTRIBUTE.&id({IOSet}), - * values SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{@type}) - * } - * - * CertificationRequest ::= SEQUENCE { - * certificationRequestInfo CertificationRequestInfo, - * signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }}, - * signature BIT STRING - * } - */ -var forge = __nccwpck_require__(88561); -__nccwpck_require__(39445); -__nccwpck_require__(27357); -__nccwpck_require__(93537); -__nccwpck_require__(46777); -__nccwpck_require__(57220); -__nccwpck_require__(10245); -__nccwpck_require__(60492); -__nccwpck_require__(6736); -__nccwpck_require__(52804); -__nccwpck_require__(97456); - -// shortcut for asn.1 API -var asn1 = forge.asn1; - -/* Public Key Infrastructure (PKI) implementation. */ -var pki = module.exports = forge.pki = forge.pki || {}; -var oids = pki.oids; - -// short name OID mappings -var _shortNames = {}; -_shortNames['CN'] = oids['commonName']; -_shortNames['commonName'] = 'CN'; -_shortNames['C'] = oids['countryName']; -_shortNames['countryName'] = 'C'; -_shortNames['L'] = oids['localityName']; -_shortNames['localityName'] = 'L'; -_shortNames['ST'] = oids['stateOrProvinceName']; -_shortNames['stateOrProvinceName'] = 'ST'; -_shortNames['O'] = oids['organizationName']; -_shortNames['organizationName'] = 'O'; -_shortNames['OU'] = oids['organizationalUnitName']; -_shortNames['organizationalUnitName'] = 'OU'; -_shortNames['E'] = oids['emailAddress']; -_shortNames['emailAddress'] = 'E'; - -// validator for an SubjectPublicKeyInfo structure -// Note: Currently only works with an RSA public key -var publicKeyValidator = forge.pki.rsa.publicKeyValidator; - -// validator for an X.509v3 certificate -var x509CertificateValidator = { - name: 'Certificate', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'Certificate.TBSCertificate', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'tbsCertificate', - value: [{ - name: 'Certificate.TBSCertificate.version', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 0, - constructed: true, - optional: true, - value: [{ - name: 'Certificate.TBSCertificate.version.integer', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'certVersion' - }] - }, { - name: 'Certificate.TBSCertificate.serialNumber', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'certSerialNumber' - }, { - name: 'Certificate.TBSCertificate.signature', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'Certificate.TBSCertificate.signature.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'certinfoSignatureOid' - }, { - name: 'Certificate.TBSCertificate.signature.parameters', - tagClass: asn1.Class.UNIVERSAL, - optional: true, - captureAsn1: 'certinfoSignatureParams' - }] - }, { - name: 'Certificate.TBSCertificate.issuer', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'certIssuer' - }, { - name: 'Certificate.TBSCertificate.validity', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - // Note: UTC and generalized times may both appear so the capture - // names are based on their detected order, the names used below - // are only for the common case, which validity time really means - // "notBefore" and which means "notAfter" will be determined by order - value: [{ - // notBefore (Time) (UTC time case) - name: 'Certificate.TBSCertificate.validity.notBefore (utc)', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.UTCTIME, - constructed: false, - optional: true, - capture: 'certValidity1UTCTime' - }, { - // notBefore (Time) (generalized time case) - name: 'Certificate.TBSCertificate.validity.notBefore (generalized)', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.GENERALIZEDTIME, - constructed: false, - optional: true, - capture: 'certValidity2GeneralizedTime' - }, { - // notAfter (Time) (only UTC time is supported) - name: 'Certificate.TBSCertificate.validity.notAfter (utc)', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.UTCTIME, - constructed: false, - optional: true, - capture: 'certValidity3UTCTime' - }, { - // notAfter (Time) (only UTC time is supported) - name: 'Certificate.TBSCertificate.validity.notAfter (generalized)', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.GENERALIZEDTIME, - constructed: false, - optional: true, - capture: 'certValidity4GeneralizedTime' - }] - }, { - // Name (subject) (RDNSequence) - name: 'Certificate.TBSCertificate.subject', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'certSubject' - }, - // SubjectPublicKeyInfo - publicKeyValidator, - { - // issuerUniqueID (optional) - name: 'Certificate.TBSCertificate.issuerUniqueID', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 1, - constructed: true, - optional: true, - value: [{ - name: 'Certificate.TBSCertificate.issuerUniqueID.id', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.BITSTRING, - constructed: false, - // TODO: support arbitrary bit length ids - captureBitStringValue: 'certIssuerUniqueId' - }] - }, { - // subjectUniqueID (optional) - name: 'Certificate.TBSCertificate.subjectUniqueID', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 2, - constructed: true, - optional: true, - value: [{ - name: 'Certificate.TBSCertificate.subjectUniqueID.id', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.BITSTRING, - constructed: false, - // TODO: support arbitrary bit length ids - captureBitStringValue: 'certSubjectUniqueId' - }] - }, { - // Extensions (optional) - name: 'Certificate.TBSCertificate.extensions', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 3, - constructed: true, - captureAsn1: 'certExtensions', - optional: true - }] - }, { - // AlgorithmIdentifier (signature algorithm) - name: 'Certificate.signatureAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - // algorithm - name: 'Certificate.signatureAlgorithm.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'certSignatureOid' - }, { - name: 'Certificate.TBSCertificate.signature.parameters', - tagClass: asn1.Class.UNIVERSAL, - optional: true, - captureAsn1: 'certSignatureParams' - }] - }, { - // SignatureValue - name: 'Certificate.signatureValue', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.BITSTRING, - constructed: false, - captureBitStringValue: 'certSignature' - }] -}; - -var rsassaPssParameterValidator = { - name: 'rsapss', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'rsapss.hashAlgorithm', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 0, - constructed: true, - value: [{ - name: 'rsapss.hashAlgorithm.AlgorithmIdentifier', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Class.SEQUENCE, - constructed: true, - optional: true, - value: [{ - name: 'rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'hashOid' - /* parameter block omitted, for SHA1 NULL anyhow. */ - }] - }] - }, { - name: 'rsapss.maskGenAlgorithm', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 1, - constructed: true, - value: [{ - name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Class.SEQUENCE, - constructed: true, - optional: true, - value: [{ - name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'maskGenOid' - }, { - name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.params', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'maskGenHashOid' - /* parameter block omitted, for SHA1 NULL anyhow. */ - }] - }] - }] - }, { - name: 'rsapss.saltLength', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 2, - optional: true, - value: [{ - name: 'rsapss.saltLength.saltLength', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Class.INTEGER, - constructed: false, - capture: 'saltLength' - }] - }, { - name: 'rsapss.trailerField', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 3, - optional: true, - value: [{ - name: 'rsapss.trailer.trailer', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Class.INTEGER, - constructed: false, - capture: 'trailer' - }] - }] -}; - -// validator for a CertificationRequestInfo structure -var certificationRequestInfoValidator = { - name: 'CertificationRequestInfo', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'certificationRequestInfo', - value: [{ - name: 'CertificationRequestInfo.integer', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.INTEGER, - constructed: false, - capture: 'certificationRequestInfoVersion' - }, { - // Name (subject) (RDNSequence) - name: 'CertificationRequestInfo.subject', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'certificationRequestInfoSubject' - }, - // SubjectPublicKeyInfo - publicKeyValidator, - { - name: 'CertificationRequestInfo.attributes', - tagClass: asn1.Class.CONTEXT_SPECIFIC, - type: 0, - constructed: true, - optional: true, - capture: 'certificationRequestInfoAttributes', - value: [{ - name: 'CertificationRequestInfo.attributes', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - name: 'CertificationRequestInfo.attributes.type', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false - }, { - name: 'CertificationRequestInfo.attributes.value', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SET, - constructed: true - }] - }] - }] -}; - -// validator for a CertificationRequest structure -var certificationRequestValidator = { - name: 'CertificationRequest', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - captureAsn1: 'csr', - value: [ - certificationRequestInfoValidator, { - // AlgorithmIdentifier (signature algorithm) - name: 'CertificationRequest.signatureAlgorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.SEQUENCE, - constructed: true, - value: [{ - // algorithm - name: 'CertificationRequest.signatureAlgorithm.algorithm', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.OID, - constructed: false, - capture: 'csrSignatureOid' - }, { - name: 'CertificationRequest.signatureAlgorithm.parameters', - tagClass: asn1.Class.UNIVERSAL, - optional: true, - captureAsn1: 'csrSignatureParams' - }] - }, { - // signature - name: 'CertificationRequest.signature', - tagClass: asn1.Class.UNIVERSAL, - type: asn1.Type.BITSTRING, - constructed: false, - captureBitStringValue: 'csrSignature' - } - ] -}; +/***/ 8307: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** - * Converts an RDNSequence of ASN.1 DER-encoded RelativeDistinguishedName - * sets into an array with objects that have type and value properties. - * - * @param rdn the RDNSequence to convert. - * @param md a message digest to append type and value to if provided. - */ -pki.RDNAttributesAsArray = function(rdn, md) { - var rval = []; +"use strict"; - // each value in 'rdn' in is a SET of RelativeDistinguishedName - var set, attr, obj; - for(var si = 0; si < rdn.value.length; ++si) { - // get the RelativeDistinguishedName set - set = rdn.value[si]; - // each value in the SET is an AttributeTypeAndValue sequence - // containing first a type (an OID) and second a value (defined by - // the OID) - for(var i = 0; i < set.value.length; ++i) { - obj = {}; - attr = set.value[i]; - obj.type = asn1.derToOid(attr.value[0].value); - obj.value = attr.value[1].value; - obj.valueTagClass = attr.value[1].type; - // if the OID is known, get its name and short name - if(obj.type in oids) { - obj.name = oids[obj.type]; - if(obj.name in _shortNames) { - obj.shortName = _shortNames[obj.name]; - } - } - if(md) { - md.update(obj.type); - md.update(obj.value); - } - rval.push(obj); - } - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - return rval; -}; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/** - * Converts ASN.1 CRIAttributes into an array with objects that have type and - * value properties. - * - * @param attributes the CRIAttributes to convert. - */ -pki.CRIAttributesAsArray = function(attributes) { - var rval = []; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // each value in 'attributes' in is a SEQUENCE with an OID and a SET - for(var si = 0; si < attributes.length; ++si) { - // get the attribute sequence - var seq = attributes[si]; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // each value in the SEQUENCE containing first a type (an OID) and - // second a set of values (defined by the OID) - var type = asn1.derToOid(seq.value[0].value); - var values = seq.value[1].value; - for(var vi = 0; vi < values.length; ++vi) { - var obj = {}; - obj.type = type; - obj.value = values[vi].value; - obj.valueTagClass = values[vi].type; - // if the OID is known, get its name and short name - if(obj.type in oids) { - obj.name = oids[obj.type]; - if(obj.name in _shortNames) { - obj.shortName = _shortNames[obj.name]; - } - } - // parse extensions - if(obj.type === oids.extensionRequest) { - obj.extensions = []; - for(var ei = 0; ei < obj.value.length; ++ei) { - obj.extensions.push(pki.certificateExtensionFromAsn1(obj.value[ei])); - } - } - rval.push(obj); - } - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - return rval; -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Gets an issuer or subject attribute from its name, type, or short name. - * - * @param obj the issuer or subject object. - * @param options a short name string or an object with: - * shortName the short name for the attribute. - * name the name for the attribute. - * type the type for the attribute. - * - * @return the attribute. + * The UpdateDockerhubTarget model module. + * @module model/UpdateDockerhubTarget + * @version 3.6.3 */ -function _getAttribute(obj, options) { - if(typeof options === 'string') { - options = {shortName: options}; - } +var UpdateDockerhubTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateDockerhubTarget. + * @alias module:model/UpdateDockerhubTarget + * @param name {String} Target name + */ + function UpdateDockerhubTarget(name) { + _classCallCheck(this, UpdateDockerhubTarget); - var rval = null; - var attr; - for(var i = 0; rval === null && i < obj.attributes.length; ++i) { - attr = obj.attributes[i]; - if(options.type && options.type === attr.type) { - rval = attr; - } else if(options.name && options.name === attr.name) { - rval = attr; - } else if(options.shortName && options.shortName === attr.shortName) { - rval = attr; - } + UpdateDockerhubTarget.initialize(this, name); } - return rval; -} + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/** - * Converts signature parameters from ASN.1 structure. - * - * Currently only RSASSA-PSS supported. The PKCS#1 v1.5 signature scheme had - * no parameters. - * - * RSASSA-PSS-params ::= SEQUENCE { - * hashAlgorithm [0] HashAlgorithm DEFAULT - * sha1Identifier, - * maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT - * mgf1SHA1Identifier, - * saltLength [2] INTEGER DEFAULT 20, - * trailerField [3] INTEGER DEFAULT 1 - * } - * - * HashAlgorithm ::= AlgorithmIdentifier - * - * MaskGenAlgorithm ::= AlgorithmIdentifier - * - * AlgorithmIdentifer ::= SEQUENCE { - * algorithm OBJECT IDENTIFIER, - * parameters ANY DEFINED BY algorithm OPTIONAL - * } - * - * @param oid The OID specifying the signature algorithm - * @param obj The ASN.1 structure holding the parameters - * @param fillDefaults Whether to use return default values where omitted - * @return signature parameter object - */ -var _readSignatureParameters = function(oid, obj, fillDefaults) { - var params = {}; - if(oid !== oids['RSASSA-PSS']) { - return params; - } + _createClass(UpdateDockerhubTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a UpdateDockerhubTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateDockerhubTarget} obj Optional instance to populate. + * @return {module:model/UpdateDockerhubTarget} The populated UpdateDockerhubTarget instance. + */ - if(fillDefaults) { - params = { - hash: { - algorithmOid: oids['sha1'] - }, - mgf: { - algorithmOid: oids['mgf1'], - hash: { - algorithmOid: oids['sha1'] + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateDockerhubTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - }, - saltLength: 20 - }; - } - var capture = {}; - var errors = []; - if(!asn1.validate(obj, rsassaPssParameterValidator, capture, errors)) { - var error = new Error('Cannot read RSASSA-PSS parameter block.'); - error.errors = errors; - throw error; - } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - if(capture.hashOid !== undefined) { - params.hash = params.hash || {}; - params.hash.algorithmOid = asn1.derToOid(capture.hashOid); - } + if (data.hasOwnProperty('dockerhub-password')) { + obj['dockerhub-password'] = _ApiClient["default"].convertToType(data['dockerhub-password'], 'String'); + } - if(capture.maskGenOid !== undefined) { - params.mgf = params.mgf || {}; - params.mgf.algorithmOid = asn1.derToOid(capture.maskGenOid); - params.mgf.hash = params.mgf.hash || {}; - params.mgf.hash.algorithmOid = asn1.derToOid(capture.maskGenHashOid); - } + if (data.hasOwnProperty('dockerhub-username')) { + obj['dockerhub-username'] = _ApiClient["default"].convertToType(data['dockerhub-username'], 'String'); + } - if(capture.saltLength !== undefined) { - params.saltLength = capture.saltLength.charCodeAt(0); - } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - return params; -}; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -/** - * Create signature digest for OID. - * - * @param options - * signatureOid: the OID specifying the signature algorithm. - * type: a human readable type for error messages - * @return a created md instance. throws if unknown oid. - */ -var _createSignatureDigest = function(options) { - switch(oids[options.signatureOid]) { - case 'sha1WithRSAEncryption': - // deprecated alias - case 'sha1WithRSASignature': - return forge.md.sha1.create(); - case 'md5WithRSAEncryption': - return forge.md.md5.create(); - case 'sha256WithRSAEncryption': - return forge.md.sha256.create(); - case 'sha384WithRSAEncryption': - return forge.md.sha384.create(); - case 'sha512WithRSAEncryption': - return forge.md.sha512.create(); - case 'RSASSA-PSS': - return forge.md.sha256.create(); - default: - var error = new Error( - 'Could not compute ' + options.type + ' digest. ' + - 'Unknown signature OID.'); - error.signatureOid = options.signatureOid; - throw error; - } -}; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -/** - * Verify signature on certificate or CSR. - * - * @param options: - * certificate the certificate or CSR to verify. - * md the signature digest. - * signature the signature - * @return a created md instance. throws if unknown oid. - */ -var _verifySignature = function(options) { - var cert = options.certificate; - var scheme; + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - switch(cert.signatureOid) { - case oids.sha1WithRSAEncryption: - // deprecated alias - case oids.sha1WithRSASignature: - /* use PKCS#1 v1.5 padding scheme */ - break; - case oids['RSASSA-PSS']: - var hash, mgf; - - /* initialize mgf */ - hash = oids[cert.signatureParameters.mgf.hash.algorithmOid]; - if(hash === undefined || forge.md[hash] === undefined) { - var error = new Error('Unsupported MGF hash function.'); - error.oid = cert.signatureParameters.mgf.hash.algorithmOid; - error.name = hash; - throw error; - } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - mgf = oids[cert.signatureParameters.mgf.algorithmOid]; - if(mgf === undefined || forge.mgf[mgf] === undefined) { - var error = new Error('Unsupported MGF function.'); - error.oid = cert.signatureParameters.mgf.algorithmOid; - error.name = mgf; - throw error; - } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - mgf = forge.mgf[mgf].create(forge.md[hash].create()); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - /* initialize hash function */ - hash = oids[cert.signatureParameters.hash.algorithmOid]; - if(hash === undefined || forge.md[hash] === undefined) { - var error = new Error('Unsupported RSASSA-PSS hash function.'); - error.oid = cert.signatureParameters.hash.algorithmOid; - error.name = hash; - throw error; - } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } - scheme = forge.pss.create( - forge.md[hash].create(), mgf, cert.signatureParameters.saltLength - ); - break; - } + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + } - // verify signature on cert using public key - return cert.publicKey.verify( - options.md.digest().getBytes(), options.signature, scheme - ); -}; + return obj; + } + }]); + return UpdateDockerhubTarget; +}(); /** - * Converts an X.509 certificate from PEM format. - * - * Note: If the certificate is to be verified then compute hash should - * be set to true. This will scan the TBSCertificate part of the ASN.1 - * object while it is converted so it doesn't need to be converted back - * to ASN.1-DER-encoding later. - * - * @param pem the PEM-formatted certificate. - * @param computeHash true to compute the hash for verification. - * @param strict true to be strict when checking ASN.1 value lengths, false to - * allow truncated values (default: true). - * - * @return the certificate. + * Deprecated - use description + * @member {String} comment */ -pki.certificateFromPem = function(pem, computeHash, strict) { - var msg = forge.pem.decode(pem)[0]; - - if(msg.type !== 'CERTIFICATE' && - msg.type !== 'X509 CERTIFICATE' && - msg.type !== 'TRUSTED CERTIFICATE') { - var error = new Error( - 'Could not convert certificate from PEM; PEM header type ' + - 'is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".'); - error.headerType = msg.type; - throw error; - } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error( - 'Could not convert certificate from PEM; PEM is encrypted.'); - } - - // convert DER to ASN.1 object - var obj = asn1.fromDer(msg.body, strict); - return pki.certificateFromAsn1(obj, computeHash); -}; +UpdateDockerhubTarget.prototype['comment'] = undefined; /** - * Converts an X.509 certificate to PEM format. - * - * @param cert the certificate. - * @param maxline the maximum characters per line, defaults to 64. - * - * @return the PEM-formatted certificate. + * Description of the object + * @member {String} description */ -pki.certificateToPem = function(cert, maxline) { - // convert to ASN.1, then DER, then PEM-encode - var msg = { - type: 'CERTIFICATE', - body: asn1.toDer(pki.certificateToAsn1(cert)).getBytes() - }; - return forge.pem.encode(msg, {maxline: maxline}); -}; +UpdateDockerhubTarget.prototype['description'] = undefined; /** - * Converts an RSA public key from PEM format. - * - * @param pem the PEM-formatted public key. - * - * @return the public key. + * @member {String} dockerhub-password */ -pki.publicKeyFromPem = function(pem) { - var msg = forge.pem.decode(pem)[0]; - - if(msg.type !== 'PUBLIC KEY' && msg.type !== 'RSA PUBLIC KEY') { - var error = new Error('Could not convert public key from PEM; PEM header ' + - 'type is not "PUBLIC KEY" or "RSA PUBLIC KEY".'); - error.headerType = msg.type; - throw error; - } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error('Could not convert public key from PEM; PEM is encrypted.'); - } - - // convert DER to ASN.1 object - var obj = asn1.fromDer(msg.body); - - return pki.publicKeyFromAsn1(obj); -}; +UpdateDockerhubTarget.prototype['dockerhub-password'] = undefined; /** - * Converts an RSA public key to PEM format (using a SubjectPublicKeyInfo). - * - * @param key the public key. - * @param maxline the maximum characters per line, defaults to 64. - * - * @return the PEM-formatted public key. + * @member {String} dockerhub-username */ -pki.publicKeyToPem = function(key, maxline) { - // convert to ASN.1, then DER, then PEM-encode - var msg = { - type: 'PUBLIC KEY', - body: asn1.toDer(pki.publicKeyToAsn1(key)).getBytes() - }; - return forge.pem.encode(msg, {maxline: maxline}); -}; +UpdateDockerhubTarget.prototype['dockerhub-username'] = undefined; /** - * Converts an RSA public key to PEM format (using an RSAPublicKey). - * - * @param key the public key. - * @param maxline the maximum characters per line, defaults to 64. - * - * @return the PEM-formatted public key. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -pki.publicKeyToRSAPublicKeyPem = function(key, maxline) { - // convert to ASN.1, then DER, then PEM-encode - var msg = { - type: 'RSA PUBLIC KEY', - body: asn1.toDer(pki.publicKeyToRSAPublicKey(key)).getBytes() - }; - return forge.pem.encode(msg, {maxline: maxline}); -}; +UpdateDockerhubTarget.prototype['json'] = false; /** - * Gets a fingerprint for the given public key. - * - * @param options the options to use. - * [md] the message digest object to use (defaults to forge.md.sha1). - * [type] the type of fingerprint, such as 'RSAPublicKey', - * 'SubjectPublicKeyInfo' (defaults to 'RSAPublicKey'). - * [encoding] an alternative output encoding, such as 'hex' - * (defaults to none, outputs a byte buffer). - * [delimiter] the delimiter to use between bytes for 'hex' encoded - * output, eg: ':' (defaults to none). - * - * @return the fingerprint as a byte buffer or other encoding based on options. + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -pki.getPublicKeyFingerprint = function(key, options) { - options = options || {}; - var md = options.md || forge.md.sha1.create(); - var type = options.type || 'RSAPublicKey'; - - var bytes; - switch(type) { - case 'RSAPublicKey': - bytes = asn1.toDer(pki.publicKeyToRSAPublicKey(key)).getBytes(); - break; - case 'SubjectPublicKeyInfo': - bytes = asn1.toDer(pki.publicKeyToAsn1(key)).getBytes(); - break; - default: - throw new Error('Unknown fingerprint type "' + options.type + '".'); - } - - // hash public key bytes - md.start(); - md.update(bytes); - var digest = md.digest(); - if(options.encoding === 'hex') { - var hex = digest.toHex(); - if(options.delimiter) { - return hex.match(/.{2}/g).join(options.delimiter); - } - return hex; - } else if(options.encoding === 'binary') { - return digest.getBytes(); - } else if(options.encoding) { - throw new Error('Unknown encoding "' + options.encoding + '".'); - } - return digest; -}; +UpdateDockerhubTarget.prototype['keep-prev-version'] = undefined; /** - * Converts a PKCS#10 certification request (CSR) from PEM format. - * - * Note: If the certification request is to be verified then compute hash - * should be set to true. This will scan the CertificationRequestInfo part of - * the ASN.1 object while it is converted so it doesn't need to be converted - * back to ASN.1-DER-encoding later. - * - * @param pem the PEM-formatted certificate. - * @param computeHash true to compute the hash for verification. - * @param strict true to be strict when checking ASN.1 value lengths, false to - * allow truncated values (default: true). - * - * @return the certification request (CSR). + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -pki.certificationRequestFromPem = function(pem, computeHash, strict) { - var msg = forge.pem.decode(pem)[0]; - - if(msg.type !== 'CERTIFICATE REQUEST') { - var error = new Error('Could not convert certification request from PEM; ' + - 'PEM header type is not "CERTIFICATE REQUEST".'); - error.headerType = msg.type; - throw error; - } - if(msg.procType && msg.procType.type === 'ENCRYPTED') { - throw new Error('Could not convert certification request from PEM; ' + - 'PEM is encrypted.'); - } - - // convert DER to ASN.1 object - var obj = asn1.fromDer(msg.body, strict); - - return pki.certificationRequestFromAsn1(obj, computeHash); -}; +UpdateDockerhubTarget.prototype['key'] = undefined; /** - * Converts a PKCS#10 certification request (CSR) to PEM format. - * - * @param csr the certification request. - * @param maxline the maximum characters per line, defaults to 64. - * - * @return the PEM-formatted certification request. + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -pki.certificationRequestToPem = function(csr, maxline) { - // convert to ASN.1, then DER, then PEM-encode - var msg = { - type: 'CERTIFICATE REQUEST', - body: asn1.toDer(pki.certificationRequestToAsn1(csr)).getBytes() - }; - return forge.pem.encode(msg, {maxline: maxline}); -}; +UpdateDockerhubTarget.prototype['max-versions'] = undefined; /** - * Creates an empty X.509v3 RSA certificate. - * - * @return the certificate. + * Target name + * @member {String} name */ -pki.createCertificate = function() { - var cert = {}; - cert.version = 0x02; - cert.serialNumber = '00'; - cert.signatureOid = null; - cert.signature = null; - cert.siginfo = {}; - cert.siginfo.algorithmOid = null; - cert.validity = {}; - cert.validity.notBefore = new Date(); - cert.validity.notAfter = new Date(); - - cert.issuer = {}; - cert.issuer.getField = function(sn) { - return _getAttribute(cert.issuer, sn); - }; - cert.issuer.addField = function(attr) { - _fillMissingFields([attr]); - cert.issuer.attributes.push(attr); - }; - cert.issuer.attributes = []; - cert.issuer.hash = null; - - cert.subject = {}; - cert.subject.getField = function(sn) { - return _getAttribute(cert.subject, sn); - }; - cert.subject.addField = function(attr) { - _fillMissingFields([attr]); - cert.subject.attributes.push(attr); - }; - cert.subject.attributes = []; - cert.subject.hash = null; - cert.extensions = []; - cert.publicKey = null; - cert.md = null; +UpdateDockerhubTarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ - /** - * Sets the subject of this certificate. - * - * @param attrs the array of subject attributes to use. - * @param uniqueId an optional a unique ID to use. - */ - cert.setSubject = function(attrs, uniqueId) { - // set new attributes, clear hash - _fillMissingFields(attrs); - cert.subject.attributes = attrs; - delete cert.subject.uniqueId; - if(uniqueId) { - // TODO: support arbitrary bit length ids - cert.subject.uniqueId = uniqueId; - } - cert.subject.hash = null; - }; +UpdateDockerhubTarget.prototype['new-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - /** - * Sets the issuer of this certificate. - * - * @param attrs the array of issuer attributes to use. - * @param uniqueId an optional a unique ID to use. - */ - cert.setIssuer = function(attrs, uniqueId) { - // set new attributes, clear hash - _fillMissingFields(attrs); - cert.issuer.attributes = attrs; - delete cert.issuer.uniqueId; - if(uniqueId) { - // TODO: support arbitrary bit length ids - cert.issuer.uniqueId = uniqueId; - } - cert.issuer.hash = null; - }; +UpdateDockerhubTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - /** - * Sets the extensions of this certificate. - * - * @param exts the array of extensions to use. - */ - cert.setExtensions = function(exts) { - for(var i = 0; i < exts.length; ++i) { - _fillMissingExtensionFields(exts[i], {cert: cert}); - } - // set new extensions - cert.extensions = exts; - }; +UpdateDockerhubTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ - /** - * Gets an extension by its name or id. - * - * @param options the name to use or an object with: - * name the name to use. - * id the id to use. - * - * @return the extension or null if not found. - */ - cert.getExtension = function(options) { - if(typeof options === 'string') { - options = {name: options}; - } +UpdateDockerhubTarget.prototype['update-version'] = undefined; +var _default = UpdateDockerhubTarget; +exports["default"] = _default; - var rval = null; - var ext; - for(var i = 0; rval === null && i < cert.extensions.length; ++i) { - ext = cert.extensions[i]; - if(options.id && ext.id === options.id) { - rval = ext; - } else if(options.name && ext.name === options.name) { - rval = ext; - } - } - return rval; - }; +/***/ }), - /** - * Signs this certificate using the given private key. - * - * @param key the private key to sign with. - * @param md the message digest object to use (defaults to forge.md.sha1). - */ - cert.sign = function(key, md) { - // TODO: get signature OID from private key - cert.md = md || forge.md.sha1.create(); - var algorithmOid = oids[cert.md.algorithm + 'WithRSAEncryption']; - if(!algorithmOid) { - var error = new Error('Could not compute certificate digest. ' + - 'Unknown message digest algorithm OID.'); - error.algorithm = cert.md.algorithm; - throw error; - } - cert.signatureOid = cert.siginfo.algorithmOid = algorithmOid; - - // get TBSCertificate, convert to DER - cert.tbsCertificate = pki.getTBSCertificate(cert); - var bytes = asn1.toDer(cert.tbsCertificate); - - // digest and sign - cert.md.update(bytes.getBytes()); - cert.signature = key.sign(cert.md); - }; +/***/ 56962: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - /** - * Attempts verify the signature on the passed certificate using this - * certificate's public key. - * - * @param child the certificate to verify. - * - * @return true if verified, false if not. - */ - cert.verify = function(child) { - var rval = false; - - if(!cert.issued(child)) { - var issuer = child.issuer; - var subject = cert.subject; - var error = new Error( - 'The parent certificate did not issue the given child ' + - 'certificate; the child certificate\'s issuer does not match the ' + - 'parent\'s subject.'); - error.expectedIssuer = subject.attributes; - error.actualIssuer = issuer.attributes; - throw error; - } - - var md = child.md; - if(md === null) { - // create digest for OID signature types - md = _createSignatureDigest({ - signatureOid: child.signatureOid, - type: 'certificate' - }); +"use strict"; - // produce DER formatted TBSCertificate and digest it - var tbsCertificate = child.tbsCertificate || pki.getTBSCertificate(child); - var bytes = asn1.toDer(tbsCertificate); - md.update(bytes.getBytes()); - } - if(md !== null) { - rval = _verifySignature({ - certificate: cert, md: md, signature: child.signature - }); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - return rval; - }; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - /** - * Returns true if this certificate's issuer matches the passed - * certificate's subject. Note that no signature check is performed. - * - * @param parent the certificate to check. - * - * @return true if this certificate's issuer matches the passed certificate's - * subject. - */ - cert.isIssuer = function(parent) { - var rval = false; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var i = cert.issuer; - var s = parent.subject; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // compare hashes if present - if(i.hash && s.hash) { - rval = (i.hash === s.hash); - } else if(i.attributes.length === s.attributes.length) { - // all attributes are the same so issuer matches subject - rval = true; - var iattr, sattr; - for(var n = 0; rval && n < i.attributes.length; ++n) { - iattr = i.attributes[n]; - sattr = s.attributes[n]; - if(iattr.type !== sattr.type || iattr.value !== sattr.value) { - // attribute mismatch - rval = false; - } - } - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - return rval; - }; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +/** + * The UpdateDockerhubTargetOutput model module. + * @module model/UpdateDockerhubTargetOutput + * @version 3.6.3 + */ +var UpdateDockerhubTargetOutput = /*#__PURE__*/function () { /** - * Returns true if this certificate's subject matches the issuer of the - * given certificate). Note that not signature check is performed. - * - * @param child the certificate to check. - * - * @return true if this certificate's subject matches the passed - * certificate's issuer. + * Constructs a new UpdateDockerhubTargetOutput. + * @alias module:model/UpdateDockerhubTargetOutput */ - cert.issued = function(child) { - return child.isIssuer(cert); - }; + function UpdateDockerhubTargetOutput() { + _classCallCheck(this, UpdateDockerhubTargetOutput); + UpdateDockerhubTargetOutput.initialize(this); + } /** - * Generates the subjectKeyIdentifier for this certificate as byte buffer. - * - * @return the subjectKeyIdentifier for this certificate as byte buffer. + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. */ - cert.generateSubjectKeyIdentifier = function() { - /* See: 4.2.1.2 section of the the RFC3280, keyIdentifier is either: - (1) The keyIdentifier is composed of the 160-bit SHA-1 hash of the - value of the BIT STRING subjectPublicKey (excluding the tag, - length, and number of unused bits). - (2) The keyIdentifier is composed of a four bit type field with - the value 0100 followed by the least significant 60 bits of the - SHA-1 hash of the value of the BIT STRING subjectPublicKey - (excluding the tag, length, and number of unused bit string bits). - */ + _createClass(UpdateDockerhubTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateDockerhubTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateDockerhubTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateDockerhubTargetOutput} The populated UpdateDockerhubTargetOutput instance. + */ - // skipping the tag, length, and number of unused bits is the same - // as just using the RSAPublicKey (for RSA keys, which are the - // only ones supported) - return pki.getPublicKeyFingerprint(cert.publicKey, {type: 'RSAPublicKey'}); - }; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateDockerhubTargetOutput(); - /** - * Verifies the subjectKeyIdentifier extension value for this certificate - * against its public key. If no extension is found, false will be - * returned. - * - * @return true if verified, false if not. - */ - cert.verifySubjectKeyIdentifier = function() { - var oid = oids['subjectKeyIdentifier']; - for(var i = 0; i < cert.extensions.length; ++i) { - var ext = cert.extensions[i]; - if(ext.id === oid) { - var ski = cert.generateSubjectKeyIdentifier().getBytes(); - return (forge.util.hexToBytes(ext.subjectKeyIdentifier) === ski); + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } } - } - return false; - }; - - return cert; -}; - -/** - * Converts an X.509v3 RSA certificate from an ASN.1 object. - * - * Note: If the certificate is to be verified then compute hash should - * be set to true. There is currently no implementation for converting - * a certificate back to ASN.1 so the TBSCertificate part of the ASN.1 - * object needs to be scanned before the cert object is created. - * - * @param obj the asn1 representation of an X.509v3 RSA certificate. - * @param computeHash true to compute the hash for verification. - * - * @return the certificate. - */ -pki.certificateFromAsn1 = function(obj, computeHash) { - // validate certificate and capture data - var capture = {}; - var errors = []; - if(!asn1.validate(obj, x509CertificateValidator, capture, errors)) { - var error = new Error('Cannot read X.509 certificate. ' + - 'ASN.1 object is not an X509v3 Certificate.'); - error.errors = errors; - throw error; - } - - // get oid - var oid = asn1.derToOid(capture.publicKeyOid); - if(oid !== pki.oids.rsaEncryption) { - throw new Error('Cannot read public key. OID is not RSA.'); - } - - // create certificate - var cert = pki.createCertificate(); - cert.version = capture.certVersion ? - capture.certVersion.charCodeAt(0) : 0; - var serial = forge.util.createBuffer(capture.certSerialNumber); - cert.serialNumber = serial.toHex(); - cert.signatureOid = forge.asn1.derToOid(capture.certSignatureOid); - cert.signatureParameters = _readSignatureParameters( - cert.signatureOid, capture.certSignatureParams, true); - cert.siginfo.algorithmOid = forge.asn1.derToOid(capture.certinfoSignatureOid); - cert.siginfo.parameters = _readSignatureParameters(cert.siginfo.algorithmOid, - capture.certinfoSignatureParams, false); - cert.signature = capture.certSignature; - - var validity = []; - if(capture.certValidity1UTCTime !== undefined) { - validity.push(asn1.utcTimeToDate(capture.certValidity1UTCTime)); - } - if(capture.certValidity2GeneralizedTime !== undefined) { - validity.push(asn1.generalizedTimeToDate( - capture.certValidity2GeneralizedTime)); - } - if(capture.certValidity3UTCTime !== undefined) { - validity.push(asn1.utcTimeToDate(capture.certValidity3UTCTime)); - } - if(capture.certValidity4GeneralizedTime !== undefined) { - validity.push(asn1.generalizedTimeToDate( - capture.certValidity4GeneralizedTime)); - } - if(validity.length > 2) { - throw new Error('Cannot read notBefore/notAfter validity times; more ' + - 'than two times were provided in the certificate.'); - } - if(validity.length < 2) { - throw new Error('Cannot read notBefore/notAfter validity times; they ' + - 'were not provided as either UTCTime or GeneralizedTime.'); - } - cert.validity.notBefore = validity[0]; - cert.validity.notAfter = validity[1]; - - // keep TBSCertificate to preserve signature when exporting - cert.tbsCertificate = capture.tbsCertificate; - - if(computeHash) { - // create digest for OID signature type - cert.md = _createSignatureDigest({ - signatureOid: cert.signatureOid, - type: 'certificate' - }); - - // produce DER formatted TBSCertificate and digest it - var bytes = asn1.toDer(cert.tbsCertificate); - cert.md.update(bytes.getBytes()); - } - - // handle issuer, build issuer message digest - var imd = forge.md.sha1.create(); - var ibytes = asn1.toDer(capture.certIssuer); - imd.update(ibytes.getBytes()); - cert.issuer.getField = function(sn) { - return _getAttribute(cert.issuer, sn); - }; - cert.issuer.addField = function(attr) { - _fillMissingFields([attr]); - cert.issuer.attributes.push(attr); - }; - cert.issuer.attributes = pki.RDNAttributesAsArray(capture.certIssuer); - if(capture.certIssuerUniqueId) { - cert.issuer.uniqueId = capture.certIssuerUniqueId; - } - cert.issuer.hash = imd.digest().toHex(); - - // handle subject, build subject message digest - var smd = forge.md.sha1.create(); - var sbytes = asn1.toDer(capture.certSubject); - smd.update(sbytes.getBytes()); - cert.subject.getField = function(sn) { - return _getAttribute(cert.subject, sn); - }; - cert.subject.addField = function(attr) { - _fillMissingFields([attr]); - cert.subject.attributes.push(attr); - }; - cert.subject.attributes = pki.RDNAttributesAsArray(capture.certSubject); - if(capture.certSubjectUniqueId) { - cert.subject.uniqueId = capture.certSubjectUniqueId; - } - cert.subject.hash = smd.digest().toHex(); - - // handle extensions - if(capture.certExtensions) { - cert.extensions = pki.certificateExtensionsFromAsn1(capture.certExtensions); - } else { - cert.extensions = []; - } - // convert RSA public key from ASN.1 - cert.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo); - - return cert; -}; + return obj; + } + }]); + return UpdateDockerhubTargetOutput; +}(); /** - * Converts an ASN.1 extensions object (with extension sequences as its - * values) into an array of extension objects with types and values. - * - * Supported extensions: - * - * id-ce-keyUsage OBJECT IDENTIFIER ::= { id-ce 15 } - * KeyUsage ::= BIT STRING { - * digitalSignature (0), - * nonRepudiation (1), - * keyEncipherment (2), - * dataEncipherment (3), - * keyAgreement (4), - * keyCertSign (5), - * cRLSign (6), - * encipherOnly (7), - * decipherOnly (8) - * } - * - * id-ce-basicConstraints OBJECT IDENTIFIER ::= { id-ce 19 } - * BasicConstraints ::= SEQUENCE { - * cA BOOLEAN DEFAULT FALSE, - * pathLenConstraint INTEGER (0..MAX) OPTIONAL - * } - * - * subjectAltName EXTENSION ::= { - * SYNTAX GeneralNames - * IDENTIFIED BY id-ce-subjectAltName - * } - * - * GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName - * - * GeneralName ::= CHOICE { - * otherName [0] INSTANCE OF OTHER-NAME, - * rfc822Name [1] IA5String, - * dNSName [2] IA5String, - * x400Address [3] ORAddress, - * directoryName [4] Name, - * ediPartyName [5] EDIPartyName, - * uniformResourceIdentifier [6] IA5String, - * IPAddress [7] OCTET STRING, - * registeredID [8] OBJECT IDENTIFIER - * } - * - * OTHER-NAME ::= TYPE-IDENTIFIER - * - * EDIPartyName ::= SEQUENCE { - * nameAssigner [0] DirectoryString {ub-name} OPTIONAL, - * partyName [1] DirectoryString {ub-name} - * } - * - * @param exts the extensions ASN.1 with extension sequences to parse. - * - * @return the array. + * @member {Number} target_id */ -pki.certificateExtensionsFromAsn1 = function(exts) { - var rval = []; - for(var i = 0; i < exts.value.length; ++i) { - // get extension sequence - var extseq = exts.value[i]; - for(var ei = 0; ei < extseq.value.length; ++ei) { - rval.push(pki.certificateExtensionFromAsn1(extseq.value[ei])); - } - } - return rval; -}; -/** - * Parses a single certificate extension from ASN.1. - * - * @param ext the extension in ASN.1 format. - * - * @return the parsed extension as an object. - */ -pki.certificateExtensionFromAsn1 = function(ext) { - // an extension has: - // [0] extnID OBJECT IDENTIFIER - // [1] critical BOOLEAN DEFAULT FALSE - // [2] extnValue OCTET STRING - var e = {}; - e.id = asn1.derToOid(ext.value[0].value); - e.critical = false; - if(ext.value[1].type === asn1.Type.BOOLEAN) { - e.critical = (ext.value[1].value.charCodeAt(0) !== 0x00); - e.value = ext.value[2].value; - } else { - e.value = ext.value[1].value; - } - // if the oid is known, get its name - if(e.id in oids) { - e.name = oids[e.id]; - - // handle key usage - if(e.name === 'keyUsage') { - // get value as BIT STRING - var ev = asn1.fromDer(e.value); - var b2 = 0x00; - var b3 = 0x00; - if(ev.value.length > 1) { - // skip first byte, just indicates unused bits which - // will be padded with 0s anyway - // get bytes with flag bits - b2 = ev.value.charCodeAt(1); - b3 = ev.value.length > 2 ? ev.value.charCodeAt(2) : 0; - } - // set flags - e.digitalSignature = (b2 & 0x80) === 0x80; - e.nonRepudiation = (b2 & 0x40) === 0x40; - e.keyEncipherment = (b2 & 0x20) === 0x20; - e.dataEncipherment = (b2 & 0x10) === 0x10; - e.keyAgreement = (b2 & 0x08) === 0x08; - e.keyCertSign = (b2 & 0x04) === 0x04; - e.cRLSign = (b2 & 0x02) === 0x02; - e.encipherOnly = (b2 & 0x01) === 0x01; - e.decipherOnly = (b3 & 0x80) === 0x80; - } else if(e.name === 'basicConstraints') { - // handle basic constraints - // get value as SEQUENCE - var ev = asn1.fromDer(e.value); - // get cA BOOLEAN flag (defaults to false) - if(ev.value.length > 0 && ev.value[0].type === asn1.Type.BOOLEAN) { - e.cA = (ev.value[0].value.charCodeAt(0) !== 0x00); - } else { - e.cA = false; - } - // get path length constraint - var value = null; - if(ev.value.length > 0 && ev.value[0].type === asn1.Type.INTEGER) { - value = ev.value[0].value; - } else if(ev.value.length > 1) { - value = ev.value[1].value; - } - if(value !== null) { - e.pathLenConstraint = asn1.derToInteger(value); - } - } else if(e.name === 'extKeyUsage') { - // handle extKeyUsage - // value is a SEQUENCE of OIDs - var ev = asn1.fromDer(e.value); - for(var vi = 0; vi < ev.value.length; ++vi) { - var oid = asn1.derToOid(ev.value[vi].value); - if(oid in oids) { - e[oids[oid]] = true; - } else { - e[oid] = true; - } - } - } else if(e.name === 'nsCertType') { - // handle nsCertType - // get value as BIT STRING - var ev = asn1.fromDer(e.value); - var b2 = 0x00; - if(ev.value.length > 1) { - // skip first byte, just indicates unused bits which - // will be padded with 0s anyway - // get bytes with flag bits - b2 = ev.value.charCodeAt(1); - } - // set flags - e.client = (b2 & 0x80) === 0x80; - e.server = (b2 & 0x40) === 0x40; - e.email = (b2 & 0x20) === 0x20; - e.objsign = (b2 & 0x10) === 0x10; - e.reserved = (b2 & 0x08) === 0x08; - e.sslCA = (b2 & 0x04) === 0x04; - e.emailCA = (b2 & 0x02) === 0x02; - e.objCA = (b2 & 0x01) === 0x01; - } else if( - e.name === 'subjectAltName' || - e.name === 'issuerAltName') { - // handle subjectAltName/issuerAltName - e.altNames = []; - - // ev is a SYNTAX SEQUENCE - var gn; - var ev = asn1.fromDer(e.value); - for(var n = 0; n < ev.value.length; ++n) { - // get GeneralName - gn = ev.value[n]; - - var altName = { - type: gn.type, - value: gn.value - }; - e.altNames.push(altName); - - // Note: Support for types 1,2,6,7,8 - switch(gn.type) { - // rfc822Name - case 1: - // dNSName - case 2: - // uniformResourceIdentifier (URI) - case 6: - break; - // IPAddress - case 7: - // convert to IPv4/IPv6 string representation - altName.ip = forge.util.bytesToIP(gn.value); - break; - // registeredID - case 8: - altName.oid = asn1.derToOid(gn.value); - break; - default: - // unsupported - } - } - } else if(e.name === 'subjectKeyIdentifier') { - // value is an OCTETSTRING w/the hash of the key-type specific - // public key structure (eg: RSAPublicKey) - var ev = asn1.fromDer(e.value); - e.subjectKeyIdentifier = forge.util.bytesToHex(ev.value); - } - } - return e; -}; +UpdateDockerhubTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateDockerhubTargetOutput; +exports["default"] = _default; -/** - * Converts a PKCS#10 certification request (CSR) from an ASN.1 object. - * - * Note: If the certification request is to be verified then compute hash - * should be set to true. There is currently no implementation for converting - * a certificate back to ASN.1 so the CertificationRequestInfo part of the - * ASN.1 object needs to be scanned before the csr object is created. - * - * @param obj the asn1 representation of a PKCS#10 certification request (CSR). - * @param computeHash true to compute the hash for verification. - * - * @return the certification request (CSR). - */ -pki.certificationRequestFromAsn1 = function(obj, computeHash) { - // validate certification request and capture data - var capture = {}; - var errors = []; - if(!asn1.validate(obj, certificationRequestValidator, capture, errors)) { - var error = new Error('Cannot read PKCS#10 certificate request. ' + - 'ASN.1 object is not a PKCS#10 CertificationRequest.'); - error.errors = errors; - throw error; - } +/***/ }), - // get oid - var oid = asn1.derToOid(capture.publicKeyOid); - if(oid !== pki.oids.rsaEncryption) { - throw new Error('Cannot read public key. OID is not RSA.'); - } +/***/ 54749: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // create certification request - var csr = pki.createCertificationRequest(); - csr.version = capture.csrVersion ? capture.csrVersion.charCodeAt(0) : 0; - csr.signatureOid = forge.asn1.derToOid(capture.csrSignatureOid); - csr.signatureParameters = _readSignatureParameters( - csr.signatureOid, capture.csrSignatureParams, true); - csr.siginfo.algorithmOid = forge.asn1.derToOid(capture.csrSignatureOid); - csr.siginfo.parameters = _readSignatureParameters( - csr.siginfo.algorithmOid, capture.csrSignatureParams, false); - csr.signature = capture.csrSignature; +"use strict"; - // keep CertificationRequestInfo to preserve signature when exporting - csr.certificationRequestInfo = capture.certificationRequestInfo; - if(computeHash) { - // create digest for OID signature type - csr.md = _createSignatureDigest({ - signatureOid: csr.signatureOid, - type: 'certification request' - }); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // produce DER formatted CertificationRequestInfo and digest it - var bytes = asn1.toDer(csr.certificationRequestInfo); - csr.md.update(bytes.getBytes()); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // handle subject, build subject message digest - var smd = forge.md.sha1.create(); - csr.subject.getField = function(sn) { - return _getAttribute(csr.subject, sn); - }; - csr.subject.addField = function(attr) { - _fillMissingFields([attr]); - csr.subject.attributes.push(attr); - }; - csr.subject.attributes = pki.RDNAttributesAsArray( - capture.certificationRequestInfoSubject, smd); - csr.subject.hash = smd.digest().toHex(); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // convert RSA public key from ASN.1 - csr.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // convert attributes from ASN.1 - csr.getAttribute = function(sn) { - return _getAttribute(csr, sn); - }; - csr.addAttribute = function(attr) { - _fillMissingFields([attr]); - csr.attributes.push(attr); - }; - csr.attributes = pki.CRIAttributesAsArray( - capture.certificationRequestInfoAttributes || []); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - return csr; -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Creates an empty certification request (a CSR or certificate signing - * request). Once created, its public key and attributes can be set and then - * it can be signed. - * - * @return the empty certification request. + * The UpdateEKSTarget model module. + * @module model/UpdateEKSTarget + * @version 3.6.3 */ -pki.createCertificationRequest = function() { - var csr = {}; - csr.version = 0x00; - csr.signatureOid = null; - csr.signature = null; - csr.siginfo = {}; - csr.siginfo.algorithmOid = null; - - csr.subject = {}; - csr.subject.getField = function(sn) { - return _getAttribute(csr.subject, sn); - }; - csr.subject.addField = function(attr) { - _fillMissingFields([attr]); - csr.subject.attributes.push(attr); - }; - csr.subject.attributes = []; - csr.subject.hash = null; - - csr.publicKey = null; - csr.attributes = []; - csr.getAttribute = function(sn) { - return _getAttribute(csr, sn); - }; - csr.addAttribute = function(attr) { - _fillMissingFields([attr]); - csr.attributes.push(attr); - }; - csr.md = null; - - /** - * Sets the subject of this certification request. - * - * @param attrs the array of subject attributes to use. - */ - csr.setSubject = function(attrs) { - // set new attributes - _fillMissingFields(attrs); - csr.subject.attributes = attrs; - csr.subject.hash = null; - }; - +var UpdateEKSTarget = /*#__PURE__*/function () { /** - * Sets the attributes of this certification request. - * - * @param attrs the array of attributes to use. + * Constructs a new UpdateEKSTarget. + * @alias module:model/UpdateEKSTarget + * @param eksAccessKeyId {String} Access Key ID + * @param eksClusterCaCert {String} EKS cluster CA certificate + * @param eksClusterEndpoint {String} EKS cluster URL endpoint + * @param eksClusterName {String} EKS cluster name + * @param eksSecretAccessKey {String} Secret Access Key + * @param name {String} Target name */ - csr.setAttributes = function(attrs) { - // set new attributes - _fillMissingFields(attrs); - csr.attributes = attrs; - }; - - /** - * Signs this certification request using the given private key. - * - * @param key the private key to sign with. - * @param md the message digest object to use (defaults to forge.md.sha1). - */ - csr.sign = function(key, md) { - // TODO: get signature OID from private key - csr.md = md || forge.md.sha1.create(); - var algorithmOid = oids[csr.md.algorithm + 'WithRSAEncryption']; - if(!algorithmOid) { - var error = new Error('Could not compute certification request digest. ' + - 'Unknown message digest algorithm OID.'); - error.algorithm = csr.md.algorithm; - throw error; - } - csr.signatureOid = csr.siginfo.algorithmOid = algorithmOid; - - // get CertificationRequestInfo, convert to DER - csr.certificationRequestInfo = pki.getCertificationRequestInfo(csr); - var bytes = asn1.toDer(csr.certificationRequestInfo); - - // digest and sign - csr.md.update(bytes.getBytes()); - csr.signature = key.sign(csr.md); - }; + function UpdateEKSTarget(eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name) { + _classCallCheck(this, UpdateEKSTarget); + UpdateEKSTarget.initialize(this, eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name); + } /** - * Attempts verify the signature on the passed certification request using - * its public key. - * - * A CSR that has been exported to a file in PEM format can be verified using - * OpenSSL using this command: - * - * openssl req -in -verify -noout -text - * - * @return true if verified, false if not. + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. */ - csr.verify = function() { - var rval = false; - var md = csr.md; - if(md === null) { - md = _createSignatureDigest({ - signatureOid: csr.signatureOid, - type: 'certification request' - }); - // produce DER formatted CertificationRequestInfo and digest it - var cri = csr.certificationRequestInfo || - pki.getCertificationRequestInfo(csr); - var bytes = asn1.toDer(cri); - md.update(bytes.getBytes()); + _createClass(UpdateEKSTarget, null, [{ + key: "initialize", + value: function initialize(obj, eksAccessKeyId, eksClusterCaCert, eksClusterEndpoint, eksClusterName, eksSecretAccessKey, name) { + obj['eks-access-key-id'] = eksAccessKeyId; + obj['eks-cluster-ca-cert'] = eksClusterCaCert; + obj['eks-cluster-endpoint'] = eksClusterEndpoint; + obj['eks-cluster-name'] = eksClusterName; + obj['eks-secret-access-key'] = eksSecretAccessKey; + obj['name'] = name; } + /** + * Constructs a UpdateEKSTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateEKSTarget} obj Optional instance to populate. + * @return {module:model/UpdateEKSTarget} The populated UpdateEKSTarget instance. + */ - if(md !== null) { - rval = _verifySignature({ - certificate: csr, md: md, signature: csr.signature - }); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateEKSTarget(); - return rval; - }; + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } - return csr; -}; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -/** - * Converts an X.509 subject or issuer to an ASN.1 RDNSequence. - * - * @param obj the subject or issuer (distinguished name). - * - * @return the ASN.1 RDNSequence. - */ -function _dnToAsn1(obj) { - // create an empty RDNSequence - var rval = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + if (data.hasOwnProperty('eks-access-key-id')) { + obj['eks-access-key-id'] = _ApiClient["default"].convertToType(data['eks-access-key-id'], 'String'); + } - // iterate over attributes - var attr, set; - var attrs = obj.attributes; - for(var i = 0; i < attrs.length; ++i) { - attr = attrs[i]; - var value = attr.value; + if (data.hasOwnProperty('eks-cluster-ca-cert')) { + obj['eks-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['eks-cluster-ca-cert'], 'String'); + } - // reuse tag class for attribute value if available - var valueTagClass = asn1.Type.PRINTABLESTRING; - if('valueTagClass' in attr) { - valueTagClass = attr.valueTagClass; + if (data.hasOwnProperty('eks-cluster-endpoint')) { + obj['eks-cluster-endpoint'] = _ApiClient["default"].convertToType(data['eks-cluster-endpoint'], 'String'); + } - if(valueTagClass === asn1.Type.UTF8) { - value = forge.util.encodeUtf8(value); - } - // FIXME: handle more encodings - } + if (data.hasOwnProperty('eks-cluster-name')) { + obj['eks-cluster-name'] = _ApiClient["default"].convertToType(data['eks-cluster-name'], 'String'); + } - // create a RelativeDistinguishedName set - // each value in the set is an AttributeTypeAndValue first - // containing the type (an OID) and second the value - set = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // AttributeType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(attr.type).getBytes()), - // AttributeValue - asn1.create(asn1.Class.UNIVERSAL, valueTagClass, false, value) - ]) - ]); - rval.value.push(set); - } + if (data.hasOwnProperty('eks-region')) { + obj['eks-region'] = _ApiClient["default"].convertToType(data['eks-region'], 'String'); + } - return rval; -} + if (data.hasOwnProperty('eks-secret-access-key')) { + obj['eks-secret-access-key'] = _ApiClient["default"].convertToType(data['eks-secret-access-key'], 'String'); + } -/** - * Gets all printable attributes (typically of an issuer or subject) in a - * simplified JSON format for display. - * - * @param attrs the attributes. - * - * @return the JSON for display. - */ -function _getAttributesAsJson(attrs) { - var rval = {}; - for(var i = 0; i < attrs.length; ++i) { - var attr = attrs[i]; - if(attr.shortName && ( - attr.valueTagClass === asn1.Type.UTF8 || - attr.valueTagClass === asn1.Type.PRINTABLESTRING || - attr.valueTagClass === asn1.Type.IA5STRING)) { - var value = attr.value; - if(attr.valueTagClass === asn1.Type.UTF8) { - value = forge.util.encodeUtf8(attr.value); - } - if(!(attr.shortName in rval)) { - rval[attr.shortName] = value; - } else if(forge.util.isArray(rval[attr.shortName])) { - rval[attr.shortName].push(value); - } else { - rval[attr.shortName] = [rval[attr.shortName], value]; - } - } - } - return rval; -} + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/** - * Fills in missing fields in attributes. - * - * @param attrs the attributes to fill missing fields in. - */ -function _fillMissingFields(attrs) { - var attr; - for(var i = 0; i < attrs.length; ++i) { - attr = attrs[i]; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - // populate missing name - if(typeof attr.name === 'undefined') { - if(attr.type && attr.type in pki.oids) { - attr.name = pki.oids[attr.type]; - } else if(attr.shortName && attr.shortName in _shortNames) { - attr.name = pki.oids[_shortNames[attr.shortName]]; - } - } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - // populate missing type (OID) - if(typeof attr.type === 'undefined') { - if(attr.name && attr.name in pki.oids) { - attr.type = pki.oids[attr.name]; - } else { - var error = new Error('Attribute type not specified.'); - error.attribute = attr; - throw error; - } - } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - // populate missing shortname - if(typeof attr.shortName === 'undefined') { - if(attr.name && attr.name in _shortNames) { - attr.shortName = _shortNames[attr.name]; - } - } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - // convert extensions to value - if(attr.type === oids.extensionRequest) { - attr.valueConstructed = true; - attr.valueTagClass = asn1.Type.SEQUENCE; - if(!attr.value && attr.extensions) { - attr.value = []; - for(var ei = 0; ei < attr.extensions.length; ++ei) { - attr.value.push(pki.certificateExtensionToAsn1( - _fillMissingExtensionFields(attr.extensions[ei]))); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - } - } - if(typeof attr.value === 'undefined') { - var error = new Error('Attribute value not specified.'); - error.attribute = attr; - throw error; - } - } -} + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -/** - * Fills in missing fields in certificate extensions. - * - * @param e the extension. - * @param [options] the options to use. - * [cert] the certificate the extensions are for. - * - * @return the extension. - */ -function _fillMissingExtensionFields(e, options) { - options = options || {}; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } - // populate missing name - if(typeof e.name === 'undefined') { - if(e.id && e.id in pki.oids) { - e.name = pki.oids[e.id]; - } - } + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } - // populate missing id - if(typeof e.id === 'undefined') { - if(e.name && e.name in pki.oids) { - e.id = pki.oids[e.name]; - } else { - var error = new Error('Extension ID not specified.'); - error.extension = e; - throw error; - } - } - - if(typeof e.value !== 'undefined') { - return e; - } - - // handle missing value: - - // value is a BIT STRING - if(e.name === 'keyUsage') { - // build flags - var unused = 0; - var b2 = 0x00; - var b3 = 0x00; - if(e.digitalSignature) { - b2 |= 0x80; - unused = 7; - } - if(e.nonRepudiation) { - b2 |= 0x40; - unused = 6; - } - if(e.keyEncipherment) { - b2 |= 0x20; - unused = 5; - } - if(e.dataEncipherment) { - b2 |= 0x10; - unused = 4; - } - if(e.keyAgreement) { - b2 |= 0x08; - unused = 3; - } - if(e.keyCertSign) { - b2 |= 0x04; - unused = 2; - } - if(e.cRLSign) { - b2 |= 0x02; - unused = 1; - } - if(e.encipherOnly) { - b2 |= 0x01; - unused = 0; - } - if(e.decipherOnly) { - b3 |= 0x80; - unused = 7; - } - - // create bit string - var value = String.fromCharCode(unused); - if(b3 !== 0) { - value += String.fromCharCode(b2) + String.fromCharCode(b3); - } else if(b2 !== 0) { - value += String.fromCharCode(b2); - } - e.value = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, value); - } else if(e.name === 'basicConstraints') { - // basicConstraints is a SEQUENCE - e.value = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - // cA BOOLEAN flag defaults to false - if(e.cA) { - e.value.value.push(asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.BOOLEAN, false, - String.fromCharCode(0xFF))); - } - if('pathLenConstraint' in e) { - e.value.value.push(asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(e.pathLenConstraint).getBytes())); - } - } else if(e.name === 'extKeyUsage') { - // extKeyUsage is a SEQUENCE of OIDs - e.value = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - var seq = e.value.value; - for(var key in e) { - if(e[key] !== true) { - continue; - } - // key is name in OID map - if(key in oids) { - seq.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, - false, asn1.oidToDer(oids[key]).getBytes())); - } else if(key.indexOf('.') !== -1) { - // assume key is an OID - seq.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, - false, asn1.oidToDer(key).getBytes())); - } - } - } else if(e.name === 'nsCertType') { - // nsCertType is a BIT STRING - // build flags - var unused = 0; - var b2 = 0x00; - - if(e.client) { - b2 |= 0x80; - unused = 7; - } - if(e.server) { - b2 |= 0x40; - unused = 6; - } - if(e.email) { - b2 |= 0x20; - unused = 5; - } - if(e.objsign) { - b2 |= 0x10; - unused = 4; - } - if(e.reserved) { - b2 |= 0x08; - unused = 3; - } - if(e.sslCA) { - b2 |= 0x04; - unused = 2; - } - if(e.emailCA) { - b2 |= 0x02; - unused = 1; - } - if(e.objCA) { - b2 |= 0x01; - unused = 0; - } - - // create bit string - var value = String.fromCharCode(unused); - if(b2 !== 0) { - value += String.fromCharCode(b2); - } - e.value = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, value); - } else if(e.name === 'subjectAltName' || e.name === 'issuerAltName') { - // SYNTAX SEQUENCE - e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - - var altName; - for(var n = 0; n < e.altNames.length; ++n) { - altName = e.altNames[n]; - var value = altName.value; - // handle IP - if(altName.type === 7 && altName.ip) { - value = forge.util.bytesFromIP(altName.ip); - if(value === null) { - var error = new Error( - 'Extension "ip" value is not a valid IPv4 or IPv6 address.'); - error.extension = e; - throw error; - } - } else if(altName.type === 8) { - // handle OID - if(altName.oid) { - value = asn1.oidToDer(asn1.oidToDer(altName.oid)); - } else { - // deprecated ... convert value to OID - value = asn1.oidToDer(value); - } - } - e.value.value.push(asn1.create( - asn1.Class.CONTEXT_SPECIFIC, altName.type, false, - value)); - } - } else if(e.name === 'nsComment' && options.cert) { - // sanity check value is ASCII (req'd) and not too big - if(!(/^[\x00-\x7F]*$/.test(e.comment)) || - (e.comment.length < 1) || (e.comment.length > 128)) { - throw new Error('Invalid "nsComment" content.'); - } - // IA5STRING opaque comment - e.value = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.IA5STRING, false, e.comment); - } else if(e.name === 'subjectKeyIdentifier' && options.cert) { - var ski = options.cert.generateSubjectKeyIdentifier(); - e.subjectKeyIdentifier = ski.toHex(); - // OCTETSTRING w/digest - e.value = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, ski.getBytes()); - } else if(e.name === 'authorityKeyIdentifier' && options.cert) { - // SYNTAX SEQUENCE - e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - var seq = e.value.value; - - if(e.keyIdentifier) { - var keyIdentifier = (e.keyIdentifier === true ? - options.cert.generateSubjectKeyIdentifier().getBytes() : - e.keyIdentifier); - seq.push( - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, false, keyIdentifier)); - } - - if(e.authorityCertIssuer) { - var authorityCertIssuer = [ - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 4, true, [ - _dnToAsn1(e.authorityCertIssuer === true ? - options.cert.issuer : e.authorityCertIssuer) - ]) - ]; - seq.push( - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, authorityCertIssuer)); - } - - if(e.serialNumber) { - var serialNumber = forge.util.hexToBytes(e.serialNumber === true ? - options.cert.serialNumber : e.serialNumber); - seq.push( - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, false, serialNumber)); - } - } else if(e.name === 'cRLDistributionPoints') { - e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - var seq = e.value.value; - - // Create sub SEQUENCE of DistributionPointName - var subSeq = asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - - // Create fullName CHOICE - var fullNameGeneralNames = asn1.create( - asn1.Class.CONTEXT_SPECIFIC, 0, true, []); - var altName; - for(var n = 0; n < e.altNames.length; ++n) { - altName = e.altNames[n]; - var value = altName.value; - // handle IP - if(altName.type === 7 && altName.ip) { - value = forge.util.bytesFromIP(altName.ip); - if(value === null) { - var error = new Error( - 'Extension "ip" value is not a valid IPv4 or IPv6 address.'); - error.extension = e; - throw error; - } - } else if(altName.type === 8) { - // handle OID - if(altName.oid) { - value = asn1.oidToDer(asn1.oidToDer(altName.oid)); - } else { - // deprecated ... convert value to OID - value = asn1.oidToDer(value); + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); } } - fullNameGeneralNames.value.push(asn1.create( - asn1.Class.CONTEXT_SPECIFIC, altName.type, false, - value)); - } - - // Add to the parent SEQUENCE - subSeq.value.push(asn1.create( - asn1.Class.CONTEXT_SPECIFIC, 0, true, [fullNameGeneralNames])); - seq.push(subSeq); - } - - // ensure value has been defined by now - if(typeof e.value === 'undefined') { - var error = new Error('Extension value not specified.'); - error.extension = e; - throw error; - } - return e; -} + return obj; + } + }]); + return UpdateEKSTarget; +}(); /** - * Convert signature parameters object to ASN.1 - * - * @param {String} oid Signature algorithm OID - * @param params The signature parametrs object - * @return ASN.1 object representing signature parameters + * Deprecated - use description + * @member {String} comment */ -function _signatureParametersToAsn1(oid, params) { - switch(oid) { - case oids['RSASSA-PSS']: - var parts = []; - - if(params.hash.algorithmOid !== undefined) { - parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(params.hash.algorithmOid).getBytes()), - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ]) - ])); - } - - if(params.mgf.algorithmOid !== undefined) { - parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(params.mgf.algorithmOid).getBytes()), - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(params.mgf.hash.algorithmOid).getBytes()), - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') - ]) - ]) - ])); - } - - if(params.saltLength !== undefined) { - parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(params.saltLength).getBytes()) - ])); - } - - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, parts); - default: - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, ''); - } -} +UpdateEKSTarget.prototype['comment'] = undefined; /** - * Converts a certification request's attributes to an ASN.1 set of - * CRIAttributes. - * - * @param csr certification request. - * - * @return the ASN.1 set of CRIAttributes. + * Description of the object + * @member {String} description */ -function _CRIAttributesToAsn1(csr) { - // create an empty context-specific container - var rval = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, []); - // no attributes, return empty container - if(csr.attributes.length === 0) { - return rval; - } +UpdateEKSTarget.prototype['description'] = undefined; +/** + * Access Key ID + * @member {String} eks-access-key-id + */ - // each attribute has a sequence with a type and a set of values - var attrs = csr.attributes; - for(var i = 0; i < attrs.length; ++i) { - var attr = attrs[i]; - var value = attr.value; +UpdateEKSTarget.prototype['eks-access-key-id'] = undefined; +/** + * EKS cluster CA certificate + * @member {String} eks-cluster-ca-cert + */ - // reuse tag class for attribute value if available - var valueTagClass = asn1.Type.UTF8; - if('valueTagClass' in attr) { - valueTagClass = attr.valueTagClass; - } - if(valueTagClass === asn1.Type.UTF8) { - value = forge.util.encodeUtf8(value); - } - var valueConstructed = false; - if('valueConstructed' in attr) { - valueConstructed = attr.valueConstructed; - } - // FIXME: handle more encodings +UpdateEKSTarget.prototype['eks-cluster-ca-cert'] = undefined; +/** + * EKS cluster URL endpoint + * @member {String} eks-cluster-endpoint + */ - // create a RelativeDistinguishedName set - // each value in the set is an AttributeTypeAndValue first - // containing the type (an OID) and second the value - var seq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // AttributeType - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(attr.type).getBytes()), - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ - // AttributeValue - asn1.create( - asn1.Class.UNIVERSAL, valueTagClass, valueConstructed, value) - ]) - ]); - rval.value.push(seq); - } +UpdateEKSTarget.prototype['eks-cluster-endpoint'] = undefined; +/** + * EKS cluster name + * @member {String} eks-cluster-name + */ - return rval; -} +UpdateEKSTarget.prototype['eks-cluster-name'] = undefined; +/** + * Region + * @member {String} eks-region + * @default 'us-east-2' + */ -var jan_1_1950 = new Date('1950-01-01T00:00:00Z'); -var jan_1_2050 = new Date('2050-01-01T00:00:00Z'); +UpdateEKSTarget.prototype['eks-region'] = 'us-east-2'; +/** + * Secret Access Key + * @member {String} eks-secret-access-key + */ +UpdateEKSTarget.prototype['eks-secret-access-key'] = undefined; /** - * Converts a Date object to ASN.1 - * Handles the different format before and after 1st January 2050 - * - * @param date date object. - * - * @return the ASN.1 object representing the date. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -function _dateToAsn1(date) { - if(date >= jan_1_1950 && date < jan_1_2050) { - return asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.UTCTIME, false, - asn1.dateToUtcTime(date)); - } else { - return asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.GENERALIZEDTIME, false, - asn1.dateToGeneralizedTime(date)); - } -} +UpdateEKSTarget.prototype['json'] = false; /** - * Gets the ASN.1 TBSCertificate part of an X.509v3 certificate. - * - * @param cert the certificate. - * - * @return the asn1 TBSCertificate. + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -pki.getTBSCertificate = function(cert) { - // TBSCertificate - var notBefore = _dateToAsn1(cert.validity.notBefore); - var notAfter = _dateToAsn1(cert.validity.notAfter); - var tbs = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // version - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ - // integer - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(cert.version).getBytes()) - ]), - // serialNumber - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - forge.util.hexToBytes(cert.serialNumber)), - // signature - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(cert.siginfo.algorithmOid).getBytes()), - // parameters - _signatureParametersToAsn1( - cert.siginfo.algorithmOid, cert.siginfo.parameters) - ]), - // issuer - _dnToAsn1(cert.issuer), - // validity - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - notBefore, - notAfter - ]), - // subject - _dnToAsn1(cert.subject), - // SubjectPublicKeyInfo - pki.publicKeyToAsn1(cert.publicKey) - ]); - - if(cert.issuer.uniqueId) { - // issuerUniqueID (optional) - tbs.value.push( - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, - // TODO: support arbitrary bit length ids - String.fromCharCode(0x00) + - cert.issuer.uniqueId - ) - ]) - ); - } - if(cert.subject.uniqueId) { - // subjectUniqueID (optional) - tbs.value.push( - asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, true, [ - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, - // TODO: support arbitrary bit length ids - String.fromCharCode(0x00) + - cert.subject.uniqueId - ) - ]) - ); - } - if(cert.extensions.length > 0) { - // extensions (optional) - tbs.value.push(pki.certificateExtensionsToAsn1(cert.extensions)); - } +UpdateEKSTarget.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - return tbs; -}; +UpdateEKSTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ +UpdateEKSTarget.prototype['max-versions'] = undefined; /** - * Gets the ASN.1 CertificationRequestInfo part of a - * PKCS#10 CertificationRequest. - * - * @param csr the certification request. - * - * @return the asn1 CertificationRequestInfo. + * Target name + * @member {String} name */ -pki.getCertificationRequestInfo = function(csr) { - // CertificationRequestInfo - var cri = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // version - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, - asn1.integerToDer(csr.version).getBytes()), - // subject - _dnToAsn1(csr.subject), - // SubjectPublicKeyInfo - pki.publicKeyToAsn1(csr.publicKey), - // attributes - _CRIAttributesToAsn1(csr) - ]); - return cri; -}; +UpdateEKSTarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ +UpdateEKSTarget.prototype['new-name'] = undefined; /** - * Converts a DistinguishedName (subject or issuer) to an ASN.1 object. - * - * @param dn the DistinguishedName. - * - * @return the asn1 representation of a DistinguishedName. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -pki.distinguishedNameToAsn1 = function(dn) { - return _dnToAsn1(dn); -}; +UpdateEKSTarget.prototype['token'] = undefined; /** - * Converts an X.509v3 RSA certificate to an ASN.1 object. - * - * @param cert the certificate. - * - * @return the asn1 representation of an X.509v3 RSA certificate. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -pki.certificateToAsn1 = function(cert) { - // prefer cached TBSCertificate over generating one - var tbsCertificate = cert.tbsCertificate || pki.getTBSCertificate(cert); - // Certificate - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // TBSCertificate - tbsCertificate, - // AlgorithmIdentifier (signature algorithm) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(cert.signatureOid).getBytes()), - // parameters - _signatureParametersToAsn1(cert.signatureOid, cert.signatureParameters) - ]), - // SignatureValue - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, - String.fromCharCode(0x00) + cert.signature) - ]); -}; +UpdateEKSTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ +UpdateEKSTarget.prototype['update-version'] = undefined; /** - * Converts X.509v3 certificate extensions to ASN.1. - * - * @param exts the extensions to convert. - * - * @return the extensions in ASN.1 format. + * @member {Boolean} use-gw-cloud-identity */ -pki.certificateExtensionsToAsn1 = function(exts) { - // create top-level extension container - var rval = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 3, true, []); - // create extension sequence (stores a sequence for each extension) - var seq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); - rval.value.push(seq); +UpdateEKSTarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = UpdateEKSTarget; +exports["default"] = _default; - for(var i = 0; i < exts.length; ++i) { - seq.value.push(pki.certificateExtensionToAsn1(exts[i])); - } +/***/ }), - return rval; -}; +/***/ 69048: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** - * Converts a single certificate extension to ASN.1. - * - * @param ext the extension to convert. - * - * @return the extension in ASN.1 format. - */ -pki.certificateExtensionToAsn1 = function(ext) { - // create a sequence for each extension - var extseq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); +"use strict"; - // extnID (OID) - extseq.value.push(asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(ext.id).getBytes())); - // critical defaults to false - if(ext.critical) { - // critical BOOLEAN DEFAULT FALSE - extseq.value.push(asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.BOOLEAN, false, - String.fromCharCode(0xFF))); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - var value = ext.value; - if(typeof ext.value !== 'string') { - // value is asn.1 - value = asn1.toDer(value).getBytes(); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // extnValue (OCTET STRING) - extseq.value.push(asn1.create( - asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, value)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - return extseq; -}; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/** - * Converts a PKCS#10 certification request to an ASN.1 object. - * - * @param csr the certification request. - * - * @return the asn1 representation of a certification request. - */ -pki.certificationRequestToAsn1 = function(csr) { - // prefer cached CertificationRequestInfo over generating one - var cri = csr.certificationRequestInfo || - pki.getCertificationRequestInfo(csr); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // Certificate - return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // CertificationRequestInfo - cri, - // AlgorithmIdentifier (signature algorithm) - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ - // algorithm - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, - asn1.oidToDer(csr.signatureOid).getBytes()), - // parameters - _signatureParametersToAsn1(csr.signatureOid, csr.signatureParameters) - ]), - // signature - asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, - String.fromCharCode(0x00) + csr.signature) - ]); -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Creates a CA store. - * - * @param certs an optional array of certificate objects or PEM-formatted - * certificate strings to add to the CA store. - * - * @return the CA store. + * The UpdateEKSTargetOutput model module. + * @module model/UpdateEKSTargetOutput + * @version 3.6.3 */ -pki.createCaStore = function(certs) { - // create CA store - var caStore = { - // stored certificates - certs: {} - }; - +var UpdateEKSTargetOutput = /*#__PURE__*/function () { /** - * Gets the certificate that issued the passed certificate or its - * 'parent'. - * - * @param cert the certificate to get the parent for. - * - * @return the parent certificate or null if none was found. + * Constructs a new UpdateEKSTargetOutput. + * @alias module:model/UpdateEKSTargetOutput */ - caStore.getIssuer = function(cert) { - var rval = getBySubject(cert.issuer); - - // see if there are multiple matches - /*if(forge.util.isArray(rval)) { - // TODO: resolve multiple matches by checking - // authorityKey/subjectKey/issuerUniqueID/other identifiers, etc. - // FIXME: or alternatively do authority key mapping - // if possible (X.509v1 certs can't work?) - throw new Error('Resolving multiple issuer matches not implemented yet.'); - }*/ - - return rval; - }; + function UpdateEKSTargetOutput() { + _classCallCheck(this, UpdateEKSTargetOutput); + UpdateEKSTargetOutput.initialize(this); + } /** - * Adds a trusted certificate to the store. - * - * @param cert the certificate to add as a trusted certificate (either a - * pki.certificate object or a PEM-formatted certificate). + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. */ - caStore.addCertificate = function(cert) { - // convert from pem if necessary - if(typeof cert === 'string') { - cert = forge.pki.certificateFromPem(cert); - } - - ensureSubjectHasHash(cert.subject); - - if(!caStore.hasCertificate(cert)) { // avoid duplicate certificates in store - if(cert.subject.hash in caStore.certs) { - // subject hash already exists, append to array - var tmp = caStore.certs[cert.subject.hash]; - if(!forge.util.isArray(tmp)) { - tmp = [tmp]; - } - tmp.push(cert); - caStore.certs[cert.subject.hash] = tmp; - } else { - caStore.certs[cert.subject.hash] = cert; - } - } - }; - /** - * Checks to see if the given certificate is in the store. - * - * @param cert the certificate to check (either a pki.certificate or a - * PEM-formatted certificate). - * - * @return true if the certificate is in the store, false if not. - */ - caStore.hasCertificate = function(cert) { - // convert from pem if necessary - if(typeof cert === 'string') { - cert = forge.pki.certificateFromPem(cert); - } - var match = getBySubject(cert.subject); - if(!match) { - return false; - } - if(!forge.util.isArray(match)) { - match = [match]; - } - // compare DER-encoding of certificates - var der1 = asn1.toDer(pki.certificateToAsn1(cert)).getBytes(); - for(var i = 0; i < match.length; ++i) { - var der2 = asn1.toDer(pki.certificateToAsn1(match[i])).getBytes(); - if(der1 === der2) { - return true; - } - } - return false; - }; + _createClass(UpdateEKSTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateEKSTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateEKSTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateEKSTargetOutput} The populated UpdateEKSTargetOutput instance. + */ - /** - * Lists all of the certificates kept in the store. - * - * @return an array of all of the pki.certificate objects in the store. - */ - caStore.listAllCertificates = function() { - var certList = []; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateEKSTargetOutput(); - for(var hash in caStore.certs) { - if(caStore.certs.hasOwnProperty(hash)) { - var value = caStore.certs[hash]; - if(!forge.util.isArray(value)) { - certList.push(value); - } else { - for(var i = 0; i < value.length; ++i) { - certList.push(value[i]); - } + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); } } + + return obj; } + }]); - return certList; - }; + return UpdateEKSTargetOutput; +}(); +/** + * @member {Number} target_id + */ - /** - * Removes a certificate from the store. - * - * @param cert the certificate to remove (either a pki.certificate or a - * PEM-formatted certificate). - * - * @return the certificate that was removed or null if the certificate - * wasn't in store. - */ - caStore.removeCertificate = function(cert) { - var result; - // convert from pem if necessary - if(typeof cert === 'string') { - cert = forge.pki.certificateFromPem(cert); - } - ensureSubjectHasHash(cert.subject); - if(!caStore.hasCertificate(cert)) { - return null; - } +UpdateEKSTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateEKSTargetOutput; +exports["default"] = _default; - var match = getBySubject(cert.subject); +/***/ }), - if(!forge.util.isArray(match)) { - result = caStore.certs[cert.subject.hash]; - delete caStore.certs[cert.subject.hash]; - return result; - } +/***/ 69923: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // compare DER-encoding of certificates - var der1 = asn1.toDer(pki.certificateToAsn1(cert)).getBytes(); - for(var i = 0; i < match.length; ++i) { - var der2 = asn1.toDer(pki.certificateToAsn1(match[i])).getBytes(); - if(der1 === der2) { - result = match[i]; - match.splice(i, 1); - } - } - if(match.length === 0) { - delete caStore.certs[cert.subject.hash]; - } +"use strict"; - return result; - }; - function getBySubject(subject) { - ensureSubjectHasHash(subject); - return caStore.certs[subject.hash] || null; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - function ensureSubjectHasHash(subject) { - // produce subject hash if it doesn't exist - if(!subject.hash) { - var md = forge.md.sha1.create(); - subject.attributes = pki.RDNAttributesAsArray(_dnToAsn1(subject), md); - subject.hash = md.digest().toHex(); - } - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // auto-add passed in certs - if(certs) { - // parse PEM-formatted certificates as necessary - for(var i = 0; i < certs.length; ++i) { - var cert = certs[i]; - caStore.addCertificate(cert); - } - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - return caStore; -}; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/** - * Certificate verification errors, based on TLS. - */ -pki.certificateError = { - bad_certificate: 'forge.pki.BadCertificate', - unsupported_certificate: 'forge.pki.UnsupportedCertificate', - certificate_revoked: 'forge.pki.CertificateRevoked', - certificate_expired: 'forge.pki.CertificateExpired', - certificate_unknown: 'forge.pki.CertificateUnknown', - unknown_ca: 'forge.pki.UnknownCertificateAuthority' -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Verifies a certificate chain against the given Certificate Authority store - * with an optional custom verify callback. - * - * @param caStore a certificate store to verify against. - * @param chain the certificate chain to verify, with the root or highest - * authority at the end (an array of certificates). - * @param options a callback to be called for every certificate in the chain or - * an object with: - * verify a callback to be called for every certificate in the - * chain - * validityCheckDate the date against which the certificate - * validity period should be checked. Pass null to not check - * the validity period. By default, the current date is used. - * - * The verify callback has the following signature: - * - * verified - Set to true if certificate was verified, otherwise the - * pki.certificateError for why the certificate failed. - * depth - The current index in the chain, where 0 is the end point's cert. - * certs - The certificate chain, *NOTE* an empty chain indicates an anonymous - * end point. - * - * The function returns true on success and on failure either the appropriate - * pki.certificateError or an object with 'error' set to the appropriate - * pki.certificateError and 'message' set to a custom error message. - * - * @return true if successful, error thrown if not. + * The UpdateEventForwarder model module. + * @module model/UpdateEventForwarder + * @version 3.6.3 */ -pki.verifyCertificateChain = function(caStore, chain, options) { - /* From: RFC3280 - Internet X.509 Public Key Infrastructure Certificate - Section 6: Certification Path Validation - See inline parentheticals related to this particular implementation. +var UpdateEventForwarder = /*#__PURE__*/function () { + /** + * Constructs a new UpdateEventForwarder. + * updateEventForwarder is a command that updates an event forwarder [Deprecated - please use event-forwarder-update-* command] + * @alias module:model/UpdateEventForwarder + * @param name {String} EventForwarder name + */ + function UpdateEventForwarder(name) { + _classCallCheck(this, UpdateEventForwarder); - The primary goal of path validation is to verify the binding between - a subject distinguished name or a subject alternative name and subject - public key, as represented in the end entity certificate, based on the - public key of the trust anchor. This requires obtaining a sequence of - certificates that support that binding. That sequence should be provided - in the passed 'chain'. The trust anchor should be in the given CA - store. The 'end entity' certificate is the certificate provided by the - end point (typically a server) and is the first in the chain. - - To meet this goal, the path validation process verifies, among other - things, that a prospective certification path (a sequence of n - certificates or a 'chain') satisfies the following conditions: - - (a) for all x in {1, ..., n-1}, the subject of certificate x is - the issuer of certificate x+1; - - (b) certificate 1 is issued by the trust anchor; - - (c) certificate n is the certificate to be validated; and - - (d) for all x in {1, ..., n}, the certificate was valid at the - time in question. - - Note that here 'n' is index 0 in the chain and 1 is the last certificate - in the chain and it must be signed by a certificate in the connection's - CA store. - - The path validation process also determines the set of certificate - policies that are valid for this path, based on the certificate policies - extension, policy mapping extension, policy constraints extension, and - inhibit any-policy extension. - - Note: Policy mapping extension not supported (Not Required). - - Note: If the certificate has an unsupported critical extension, then it - must be rejected. - - Note: A certificate is self-issued if the DNs that appear in the subject - and issuer fields are identical and are not empty. - - The path validation algorithm assumes the following seven inputs are - provided to the path processing logic. What this specific implementation - will use is provided parenthetically: - - (a) a prospective certification path of length n (the 'chain') - (b) the current date/time: ('now'). - (c) user-initial-policy-set: A set of certificate policy identifiers - naming the policies that are acceptable to the certificate user. - The user-initial-policy-set contains the special value any-policy - if the user is not concerned about certificate policy - (Not implemented. Any policy is accepted). - (d) trust anchor information, describing a CA that serves as a trust - anchor for the certification path. The trust anchor information - includes: - - (1) the trusted issuer name, - (2) the trusted public key algorithm, - (3) the trusted public key, and - (4) optionally, the trusted public key parameters associated - with the public key. - - (Trust anchors are provided via certificates in the CA store). - - The trust anchor information may be provided to the path processing - procedure in the form of a self-signed certificate. The trusted anchor - information is trusted because it was delivered to the path processing - procedure by some trustworthy out-of-band procedure. If the trusted - public key algorithm requires parameters, then the parameters are - provided along with the trusted public key (No parameters used in this - implementation). - - (e) initial-policy-mapping-inhibit, which indicates if policy mapping is - allowed in the certification path. - (Not implemented, no policy checking) - - (f) initial-explicit-policy, which indicates if the path must be valid - for at least one of the certificate policies in the user-initial- - policy-set. - (Not implemented, no policy checking) - - (g) initial-any-policy-inhibit, which indicates whether the - anyPolicy OID should be processed if it is included in a - certificate. - (Not implemented, so any policy is valid provided that it is - not marked as critical) */ - - /* Basic Path Processing: - - For each certificate in the 'chain', the following is checked: - - 1. The certificate validity period includes the current time. - 2. The certificate was signed by its parent (where the parent is either - the next in the chain or from the CA store). Allow processing to - continue to the next step if no parent is found but the certificate is - in the CA store. - 3. TODO: The certificate has not been revoked. - 4. The certificate issuer name matches the parent's subject name. - 5. TODO: If the certificate is self-issued and not the final certificate - in the chain, skip this step, otherwise verify that the subject name - is within one of the permitted subtrees of X.500 distinguished names - and that each of the alternative names in the subjectAltName extension - (critical or non-critical) is within one of the permitted subtrees for - that name type. - 6. TODO: If the certificate is self-issued and not the final certificate - in the chain, skip this step, otherwise verify that the subject name - is not within one of the excluded subtrees for X.500 distinguished - names and none of the subjectAltName extension names are excluded for - that name type. - 7. The other steps in the algorithm for basic path processing involve - handling the policy extension which is not presently supported in this - implementation. Instead, if a critical policy extension is found, the - certificate is rejected as not supported. - 8. If the certificate is not the first or if its the only certificate in - the chain (having no parent from the CA store or is self-signed) and it - has a critical key usage extension, verify that the keyCertSign bit is - set. If the key usage extension exists, verify that the basic - constraints extension exists. If the basic constraints extension exists, - verify that the cA flag is set. If pathLenConstraint is set, ensure that - the number of certificates that precede in the chain (come earlier - in the chain as implemented below), excluding the very first in the - chain (typically the end-entity one), isn't greater than the - pathLenConstraint. This constraint limits the number of intermediate - CAs that may appear below a CA before only end-entity certificates - may be issued. */ - - // if a verify callback is passed as the third parameter, package it within - // the options object. This is to support a legacy function signature that - // expected the verify callback as the third parameter. - if(typeof options === 'function') { - options = {verify: options}; + UpdateEventForwarder.initialize(this, name); } - options = options || {}; + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // copy cert chain references to another array to protect against changes - // in verify callback - chain = chain.slice(0); - var certs = chain.slice(0); - - var validityCheckDate = options.validityCheckDate; - // if no validityCheckDate is specified, default to the current date. Make - // sure to maintain the value null because it indicates that the validity - // period should not be checked. - if(typeof validityCheckDate === 'undefined') { - validityCheckDate = new Date(); - } - - // verify each cert in the chain using its parent, where the parent - // is either the next in the chain or from the CA store - var first = true; - var error = null; - var depth = 0; - do { - var cert = chain.shift(); - var parent = null; - var selfSigned = false; - - if(validityCheckDate) { - // 1. check valid time - if(validityCheckDate < cert.validity.notBefore || - validityCheckDate > cert.validity.notAfter) { - error = { - message: 'Certificate is not valid yet or has expired.', - error: pki.certificateError.certificate_expired, - notBefore: cert.validity.notBefore, - notAfter: cert.validity.notAfter, - // TODO: we might want to reconsider renaming 'now' to - // 'validityCheckDate' should this API be changed in the future. - now: validityCheckDate - }; - } + + _createClass(UpdateEventForwarder, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } + /** + * Constructs a UpdateEventForwarder from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateEventForwarder} obj Optional instance to populate. + * @return {module:model/UpdateEventForwarder} The populated UpdateEventForwarder instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateEventForwarder(); - // 2. verify with parent from chain or CA store - if(error === null) { - parent = chain[0] || caStore.getIssuer(cert); - if(parent === null) { - // check for self-signed cert - if(cert.isIssuer(cert)) { - selfSigned = true; - parent = cert; + if (data.hasOwnProperty('admin-name')) { + obj['admin-name'] = _ApiClient["default"].convertToType(data['admin-name'], 'String'); } - } - if(parent) { - // FIXME: current CA store implementation might have multiple - // certificates where the issuer can't be determined from the - // certificate (happens rarely with, eg: old certificates) so normalize - // by always putting parents into an array - // TODO: there's may be an extreme degenerate case currently uncovered - // where an old intermediate certificate seems to have a matching parent - // but none of the parents actually verify ... but the intermediate - // is in the CA and it should pass this check; needs investigation - var parents = parent; - if(!forge.util.isArray(parents)) { - parents = [parents]; + if (data.hasOwnProperty('auth-type')) { + obj['auth-type'] = _ApiClient["default"].convertToType(data['auth-type'], 'String'); } - // try to verify with each possible parent (typically only one) - var verified = false; - while(!verified && parents.length > 0) { - parent = parents.shift(); - try { - verified = parent.verify(cert); - } catch(ex) { - // failure to verify, don't care why, try next one - } + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); } - if(!verified) { - error = { - message: 'Certificate signature is invalid.', - error: pki.certificateError.bad_certificate - }; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - } - if(error === null && (!parent || selfSigned) && - !caStore.hasCertificate(cert)) { - // no parent issuer and certificate itself is not trusted - error = { - message: 'Certificate is not trusted.', - error: pki.certificateError.unknown_ca - }; - } - } + if (data.hasOwnProperty('email-to')) { + obj['email-to'] = _ApiClient["default"].convertToType(data['email-to'], 'String'); + } - // TODO: 3. check revoked + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'String'); + } - // 4. check for matching issuer/subject - if(error === null && parent && !cert.isIssuer(parent)) { - // parent is not issuer - error = { - message: 'Certificate issuer is invalid.', - error: pki.certificateError.bad_certificate - }; - } + if (data.hasOwnProperty('event-source-locations')) { + obj['event-source-locations'] = _ApiClient["default"].convertToType(data['event-source-locations'], ['String']); + } - // 5. TODO: check names with permitted names tree + if (data.hasOwnProperty('event-types')) { + obj['event-types'] = _ApiClient["default"].convertToType(data['event-types'], ['String']); + } - // 6. TODO: check names against excluded names tree + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } - // 7. check for unsupported critical extensions - if(error === null) { - // supported extensions - var se = { - keyUsage: true, - basicConstraints: true - }; - for(var i = 0; error === null && i < cert.extensions.length; ++i) { - var ext = cert.extensions[i]; - if(ext.critical && !(ext.name in se)) { - error = { - message: - 'Certificate has an unsupported critical extension.', - error: pki.certificateError.unsupported_certificate - }; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - } - } - // 8. check for CA if cert is not first or is the only certificate - // remaining in chain with no parent or is self-signed - if(error === null && - (!first || (chain.length === 0 && (!parent || selfSigned)))) { - // first check keyUsage extension and then basic constraints - var bcExt = cert.getExtension('basicConstraints'); - var keyUsageExt = cert.getExtension('keyUsage'); - if(keyUsageExt !== null) { - // keyCertSign must be true and there must be a basic - // constraints extension - if(!keyUsageExt.keyCertSign || bcExt === null) { - // bad certificate - error = { - message: - 'Certificate keyUsage or basicConstraints conflict ' + - 'or indicate that the certificate is not a CA. ' + - 'If the certificate is the only one in the chain or ' + - 'isn\'t the first then the certificate must be a ' + - 'valid CA.', - error: pki.certificateError.bad_certificate - }; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - } - // basic constraints cA flag must be set - if(error === null && bcExt !== null && !bcExt.cA) { - // bad certificate - error = { - message: - 'Certificate basicConstraints indicates the certificate ' + - 'is not a CA.', - error: pki.certificateError.bad_certificate - }; - } - // if error is not null and keyUsage is available, then we know it - // has keyCertSign and there is a basic constraints extension too, - // which means we can check pathLenConstraint (if it exists) - if(error === null && keyUsageExt !== null && - 'pathLenConstraint' in bcExt) { - // pathLen is the maximum # of intermediate CA certs that can be - // found between the current certificate and the end-entity (depth 0) - // certificate; this number does not include the end-entity (depth 0, - // last in the chain) even if it happens to be a CA certificate itself - var pathLen = depth - 1; - if(pathLen > bcExt.pathLenConstraint) { - // pathLenConstraint violated, bad certificate - error = { - message: - 'Certificate basicConstraints pathLenConstraint violated.', - error: pki.certificateError.bad_certificate - }; + + if (data.hasOwnProperty('new-comment')) { + obj['new-comment'] = _ApiClient["default"].convertToType(data['new-comment'], 'String'); } - } - } - // call application callback - var vfd = (error === null) ? true : error.error; - var ret = options.verify ? options.verify(vfd, depth, certs) : vfd; - if(ret === true) { - // clear any set error - error = null; - } else { - // if passed basic tests, set default message and alert - if(vfd === true) { - error = { - message: 'The application rejected the certificate.', - error: pki.certificateError.bad_certificate - }; - } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - // check for custom error info - if(ret || ret === 0) { - // set custom message and error - if(typeof ret === 'object' && !forge.util.isArray(ret)) { - if(ret.message) { - error.message = ret.message; - } - if(ret.error) { - error.error = ret.error; - } - } else if(typeof ret === 'string') { - // set custom error - error.error = ret; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('user-email')) { + obj['user-email'] = _ApiClient["default"].convertToType(data['user-email'], 'String'); } } - // throw error - throw error; + return obj; } + }]); - // no longer first cert in chain - first = false; - ++depth; - } while(chain.length > 0); - - return true; -}; + return UpdateEventForwarder; +}(); +/** + * Workstation Admin Name + * @member {String} admin-name + */ -/***/ }), +UpdateEventForwarder.prototype['admin-name'] = undefined; +/** + * The authentication type to use when connecting to ServiceNow (user-pass / jwt) + * @member {String} auth-type + * @default 'user-pass' + */ -/***/ 77690: -/***/ ((module, exports, __nccwpck_require__) => { +UpdateEventForwarder.prototype['auth-type'] = 'user-pass'; +/** + * The client ID to use when connecting to ServiceNow with jwt authentication + * @member {String} client-id + */ -"use strict"; +UpdateEventForwarder.prototype['client-id'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_comment' + */ +UpdateEventForwarder.prototype['description'] = 'default_comment'; +/** + * A comma seperated list of email addresses to send event to (relevant only for \"email\" Event Forwarder) + * @member {String} email-to + */ -var crypto = __nccwpck_require__(76982); +UpdateEventForwarder.prototype['email-to'] = undefined; +/** + * Enable/Disable Event Forwarder [true/false] + * @member {String} enable + * @default 'true' + */ +UpdateEventForwarder.prototype['enable'] = 'true'; /** - * Exported function - * - * Options: - * - * - `algorithm` hash algo to be used by this instance: *'sha1', 'md5' - * - `excludeValues` {true|*false} hash object keys, values ignored - * - `encoding` hash encoding, supports 'buffer', '*hex', 'binary', 'base64' - * - `ignoreUnknown` {true|*false} ignore unknown object types - * - `replacer` optional function that replaces values before hashing - * - `respectFunctionProperties` {*true|false} consider function properties when hashing - * - `respectFunctionNames` {*true|false} consider 'name' property of functions for hashing - * - `respectType` {*true|false} Respect special properties (prototype, constructor) - * when hashing to distinguish between types - * - `unorderedArrays` {true|*false} Sort all arrays before hashing - * - `unorderedSets` {*true|false} Sort `Set` and `Map` instances before hashing - * * = default - * - * @param {object} object value to hash - * @param {object} options hashing options - * @return {string} hash value - * @api public + * Event sources + * @member {Array.} event-source-locations */ -exports = module.exports = objectHash; -function objectHash(object, options){ - options = applyDefaults(object, options); +UpdateEventForwarder.prototype['event-source-locations'] = undefined; +/** + * Event types + * @member {Array.} event-types + */ - return hash(object, options); -} +UpdateEventForwarder.prototype['event-types'] = undefined; +/** + * Workstation Host + * @member {String} host + */ +UpdateEventForwarder.prototype['host'] = undefined; /** - * Exported sugar methods - * - * @param {object} object value to hash - * @return {string} hash value - * @api public + * Set output format to JSON + * @member {Boolean} json + * @default false */ -exports.sha1 = function(object){ - return objectHash(object); -}; -exports.keys = function(object){ - return objectHash(object, {excludeValues: true, algorithm: 'sha1', encoding: 'hex'}); -}; -exports.MD5 = function(object){ - return objectHash(object, {algorithm: 'md5', encoding: 'hex'}); -}; -exports.keysMD5 = function(object){ - return objectHash(object, {algorithm: 'md5', encoding: 'hex', excludeValues: true}); -}; -// Internals -var hashes = crypto.getHashes ? crypto.getHashes().slice() : ['sha1', 'md5']; -hashes.push('passthrough'); -var encodings = ['buffer', 'hex', 'binary', 'base64']; +UpdateEventForwarder.prototype['json'] = false; +/** + * EventForwarder name + * @member {String} name + */ -function applyDefaults(object, sourceOptions){ - sourceOptions = sourceOptions || {}; +UpdateEventForwarder.prototype['name'] = undefined; +/** + * Deprecated - use description + * @member {String} new-comment + * @default 'default_comment' + */ - // create a copy rather than mutating - var options = {}; - options.algorithm = sourceOptions.algorithm || 'sha1'; - options.encoding = sourceOptions.encoding || 'hex'; - options.excludeValues = sourceOptions.excludeValues ? true : false; - options.algorithm = options.algorithm.toLowerCase(); - options.encoding = options.encoding.toLowerCase(); - options.ignoreUnknown = sourceOptions.ignoreUnknown !== true ? false : true; // default to false - options.respectType = sourceOptions.respectType === false ? false : true; // default to true - options.respectFunctionNames = sourceOptions.respectFunctionNames === false ? false : true; - options.respectFunctionProperties = sourceOptions.respectFunctionProperties === false ? false : true; - options.unorderedArrays = sourceOptions.unorderedArrays !== true ? false : true; // default to false - options.unorderedSets = sourceOptions.unorderedSets === false ? false : true; // default to false - options.unorderedObjects = sourceOptions.unorderedObjects === false ? false : true; // default to true - options.replacer = sourceOptions.replacer || undefined; - options.excludeKeys = sourceOptions.excludeKeys || undefined; +UpdateEventForwarder.prototype['new-comment'] = 'default_comment'; +/** + * New EventForwarder name + * @member {String} new-name + */ - if(typeof object === 'undefined') { - throw new Error('Object argument required.'); - } +UpdateEventForwarder.prototype['new-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - // if there is a case-insensitive match in the hashes list, accept it - // (i.e. SHA256 for sha256) - for (var i = 0; i < hashes.length; ++i) { - if (hashes[i].toLowerCase() === options.algorithm.toLowerCase()) { - options.algorithm = hashes[i]; - } - } +UpdateEventForwarder.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - if(hashes.indexOf(options.algorithm) === -1){ - throw new Error('Algorithm "' + options.algorithm + '" not supported. ' + - 'supported values: ' + hashes.join(', ')); - } +UpdateEventForwarder.prototype['uid-token'] = undefined; +/** + * The user email to use when connecting to ServiceNow with jwt authentication + * @member {String} user-email + */ - if(encodings.indexOf(options.encoding) === -1 && - options.algorithm !== 'passthrough'){ - throw new Error('Encoding "' + options.encoding + '" not supported. ' + - 'supported values: ' + encodings.join(', ')); - } +UpdateEventForwarder.prototype['user-email'] = undefined; +var _default = UpdateEventForwarder; +exports["default"] = _default; - return options; -} +/***/ }), -/** Check if the given function is a native function */ -function isNativeFunction(f) { - if ((typeof f) !== 'function') { - return false; - } - var exp = /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i; - return exp.exec(Function.prototype.toString.call(f)) != null; -} +/***/ 98909: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -function hash(object, options) { - var hashingStream; +"use strict"; - if (options.algorithm !== 'passthrough') { - hashingStream = crypto.createHash(options.algorithm); - } else { - hashingStream = new PassThrough(); - } - if (typeof hashingStream.write === 'undefined') { - hashingStream.write = hashingStream.update; - hashingStream.end = hashingStream.update; - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - var hasher = typeHasher(options, hashingStream); - hasher.dispatch(object); - if (!hashingStream.update) { - hashingStream.end(''); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (hashingStream.digest) { - return hashingStream.digest(options.encoding === 'buffer' ? undefined : options.encoding); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var buf = hashingStream.read(); - if (options.encoding === 'buffer') { - return buf; - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - return buf.toString(options.encoding); -} +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Expose streaming API - * - * @param {object} object Value to serialize - * @param {object} options Options, as for hash() - * @param {object} stream A stream to write the serializiation to - * @api public + * The UpdateGKETarget model module. + * @module model/UpdateGKETarget + * @version 3.6.3 */ -exports.writeToStream = function(object, options, stream) { - if (typeof stream === 'undefined') { - stream = options; - options = {}; - } +var UpdateGKETarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateGKETarget. + * @alias module:model/UpdateGKETarget + * @param name {String} Target name + */ + function UpdateGKETarget(name) { + _classCallCheck(this, UpdateGKETarget); - options = applyDefaults(object, options); + UpdateGKETarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - return typeHasher(options, stream).dispatch(object); -}; -function typeHasher(options, writeTo, context){ - context = context || []; - var write = function(str) { - if (writeTo.update) { - return writeTo.update(str, 'utf8'); - } else { - return writeTo.write(str, 'utf8'); + _createClass(UpdateGKETarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } - }; + /** + * Constructs a UpdateGKETarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGKETarget} obj Optional instance to populate. + * @return {module:model/UpdateGKETarget} The populated UpdateGKETarget instance. + */ - return { - dispatch: function(value){ - if (options.replacer) { - value = options.replacer(value); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGKETarget(); - var type = typeof value; - if (value === null) { - type = 'null'; - } + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } - //console.log("[DEBUG] Dispatch: ", value, "->", type, " -> ", "_" + type); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - return this['_' + type](value); - }, - _object: function(object) { - var pattern = (/\[object (.*)\]/i); - var objString = Object.prototype.toString.call(object); - var objType = pattern.exec(objString); - if (!objType) { // object type did not match [object ...] - objType = 'unknown:[' + objString + ']'; - } else { - objType = objType[1]; // take only the class name - } + if (data.hasOwnProperty('gke-account-key')) { + obj['gke-account-key'] = _ApiClient["default"].convertToType(data['gke-account-key'], 'String'); + } - objType = objType.toLowerCase(); + if (data.hasOwnProperty('gke-cluster-cert')) { + obj['gke-cluster-cert'] = _ApiClient["default"].convertToType(data['gke-cluster-cert'], 'String'); + } - var objectNumber = null; + if (data.hasOwnProperty('gke-cluster-endpoint')) { + obj['gke-cluster-endpoint'] = _ApiClient["default"].convertToType(data['gke-cluster-endpoint'], 'String'); + } - if ((objectNumber = context.indexOf(object)) >= 0) { - return this.dispatch('[CIRCULAR:' + objectNumber + ']'); - } else { - context.push(object); - } + if (data.hasOwnProperty('gke-cluster-name')) { + obj['gke-cluster-name'] = _ApiClient["default"].convertToType(data['gke-cluster-name'], 'String'); + } - if (typeof Buffer !== 'undefined' && Buffer.isBuffer && Buffer.isBuffer(object)) { - write('buffer:'); - return write(object); - } + if (data.hasOwnProperty('gke-service-account-email')) { + obj['gke-service-account-email'] = _ApiClient["default"].convertToType(data['gke-service-account-email'], 'String'); + } - if(objType !== 'object' && objType !== 'function' && objType !== 'asyncfunction') { - if(this['_' + objType]) { - this['_' + objType](object); - } else if (options.ignoreUnknown) { - return write('[' + objType + ']'); - } else { - throw new Error('Unknown object type "' + objType + '"'); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - }else{ - var keys = Object.keys(object); - if (options.unorderedObjects) { - keys = keys.sort(); + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - // Make sure to incorporate special properties, so - // Types with different prototypes will produce - // a different hash and objects derived from - // different functions (`new Foo`, `new Bar`) will - // produce different hashes. - // We never do this for native functions since some - // seem to break because of that. - if (options.respectType !== false && !isNativeFunction(object)) { - keys.splice(0, 0, 'prototype', '__proto__', 'constructor'); + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (options.excludeKeys) { - keys = keys.filter(function(key) { return !options.excludeKeys(key); }); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - write('object:' + keys.length + ':'); - var self = this; - return keys.forEach(function(key){ - self.dispatch(key); - write(':'); - if(!options.excludeValues) { - self.dispatch(object[key]); - } - write(','); - }); - } - }, - _array: function(arr, unordered){ - unordered = typeof unordered !== 'undefined' ? unordered : - options.unorderedArrays !== false; // default to options.unorderedArrays + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - var self = this; - write('array:' + arr.length + ':'); - if (!unordered || arr.length <= 1) { - return arr.forEach(function(entry) { - return self.dispatch(entry); - }); - } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - // the unordered case is a little more complicated: - // since there is no canonical ordering on objects, - // i.e. {a:1} < {a:2} and {a:1} > {a:2} are both false, - // we first serialize each entry using a PassThrough stream - // before sorting. - // also: we can’t use the same context array for all entries - // since the order of hashing should *not* matter. instead, - // we keep track of the additions to a copy of the context array - // and add all of them to the global context array when we’re done - var contextAdditions = []; - var entries = arr.map(function(entry) { - var strm = new PassThrough(); - var localContext = context.slice(); // make copy - var hasher = typeHasher(options, strm, localContext); - hasher.dispatch(entry); - // take only what was added to localContext and append it to contextAdditions - contextAdditions = contextAdditions.concat(localContext.slice(context.length)); - return strm.read().toString(); - }); - context = context.concat(contextAdditions); - entries.sort(); - return this._array(entries, false); - }, - _date: function(date){ - return write('date:' + date.toJSON()); - }, - _symbol: function(sym){ - return write('symbol:' + sym.toString()); - }, - _error: function(err){ - return write('error:' + err.toString()); - }, - _boolean: function(bool){ - return write('bool:' + bool.toString()); - }, - _string: function(string){ - write('string:' + string.length + ':'); - write(string.toString()); - }, - _function: function(fn){ - write('fn:'); - if (isNativeFunction(fn)) { - this.dispatch('[native]'); - } else { - this.dispatch(fn.toString()); - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - if (options.respectFunctionNames !== false) { - // Make sure we can still distinguish native functions - // by their name, otherwise String and Function will - // have the same hash - this.dispatch("function-name:" + String(fn.name)); - } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } - if (options.respectFunctionProperties) { - this._object(fn); - } - }, - _number: function(number){ - return write('number:' + number.toString()); - }, - _xml: function(xml){ - return write('xml:' + xml.toString()); - }, - _null: function() { - return write('Null'); - }, - _undefined: function() { - return write('Undefined'); - }, - _regexp: function(regex){ - return write('regex:' + regex.toString()); - }, - _uint8array: function(arr){ - write('uint8array:'); - return this.dispatch(Array.prototype.slice.call(arr)); - }, - _uint8clampedarray: function(arr){ - write('uint8clampedarray:'); - return this.dispatch(Array.prototype.slice.call(arr)); - }, - _int8array: function(arr){ - write('int8array:'); - return this.dispatch(Array.prototype.slice.call(arr)); - }, - _uint16array: function(arr){ - write('uint16array:'); - return this.dispatch(Array.prototype.slice.call(arr)); - }, - _int16array: function(arr){ - write('int16array:'); - return this.dispatch(Array.prototype.slice.call(arr)); - }, - _uint32array: function(arr){ - write('uint32array:'); - return this.dispatch(Array.prototype.slice.call(arr)); - }, - _int32array: function(arr){ - write('int32array:'); - return this.dispatch(Array.prototype.slice.call(arr)); - }, - _float32array: function(arr){ - write('float32array:'); - return this.dispatch(Array.prototype.slice.call(arr)); - }, - _float64array: function(arr){ - write('float64array:'); - return this.dispatch(Array.prototype.slice.call(arr)); - }, - _arraybuffer: function(arr){ - write('arraybuffer:'); - return this.dispatch(new Uint8Array(arr)); - }, - _url: function(url) { - return write('url:' + url.toString(), 'utf8'); - }, - _map: function(map) { - write('map:'); - var arr = Array.from(map); - return this._array(arr, options.unorderedSets !== false); - }, - _set: function(set) { - write('set:'); - var arr = Array.from(set); - return this._array(arr, options.unorderedSets !== false); - }, - _file: function(file) { - write('file:'); - return this.dispatch([file.name, file.size, file.type, file.lastModfied]); - }, - _blob: function() { - if (options.ignoreUnknown) { - return write('[blob]'); + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); + } } - throw Error('Hashing Blob objects is currently not supported\n' + - '(see https://github.com/puleos/object-hash/issues/26)\n' + - 'Use "options.replacer" or "options.ignoreUnknown"\n'); - }, - _domwindow: function() { return write('domwindow'); }, - _bigint: function(number){ - return write('bigint:' + number.toString()); - }, - /* Node.js standard native objects */ - _process: function() { return write('process'); }, - _timer: function() { return write('timer'); }, - _pipe: function() { return write('pipe'); }, - _tcp: function() { return write('tcp'); }, - _udp: function() { return write('udp'); }, - _tty: function() { return write('tty'); }, - _statwatcher: function() { return write('statwatcher'); }, - _securecontext: function() { return write('securecontext'); }, - _connection: function() { return write('connection'); }, - _zlib: function() { return write('zlib'); }, - _context: function() { return write('context'); }, - _nodescript: function() { return write('nodescript'); }, - _httpparser: function() { return write('httpparser'); }, - _dataview: function() { return write('dataview'); }, - _signal: function() { return write('signal'); }, - _fsevent: function() { return write('fsevent'); }, - _tlswrap: function() { return write('tlswrap'); }, - }; -} + return obj; + } + }]); -// Mini-implementation of stream.PassThrough -// We are far from having need for the full implementation, and we can -// make assumptions like "many writes, then only one final read" -// and we can ignore encoding specifics -function PassThrough() { - return { - buf: '', + return UpdateGKETarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ - write: function(b) { - this.buf += b; - }, - end: function(b) { - this.buf += b; - }, +UpdateGKETarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ - read: function() { - return this.buf; - } - }; -} +UpdateGKETarget.prototype['description'] = undefined; +/** + * GKE Service Account key file path + * @member {String} gke-account-key + */ + +UpdateGKETarget.prototype['gke-account-key'] = undefined; +/** + * GKE cluster CA certificate + * @member {String} gke-cluster-cert + */ + +UpdateGKETarget.prototype['gke-cluster-cert'] = undefined; +/** + * GKE cluster URL endpoint + * @member {String} gke-cluster-endpoint + */ + +UpdateGKETarget.prototype['gke-cluster-endpoint'] = undefined; +/** + * GKE cluster name + * @member {String} gke-cluster-name + */ + +UpdateGKETarget.prototype['gke-cluster-name'] = undefined; +/** + * GKE service account email + * @member {String} gke-service-account-email + */ + +UpdateGKETarget.prototype['gke-service-account-email'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +UpdateGKETarget.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ + +UpdateGKETarget.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +UpdateGKETarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +UpdateGKETarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +UpdateGKETarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ + +UpdateGKETarget.prototype['new-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UpdateGKETarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UpdateGKETarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ + +UpdateGKETarget.prototype['update-version'] = undefined; +/** + * @member {Boolean} use-gw-cloud-identity + */ +UpdateGKETarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = UpdateGKETarget; +exports["default"] = _default; /***/ }), -/***/ 60506: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 57048: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var hasMap = typeof Map === 'function' && Map.prototype; -var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null; -var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null; -var mapForEach = hasMap && Map.prototype.forEach; -var hasSet = typeof Set === 'function' && Set.prototype; -var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null; -var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null; -var setForEach = hasSet && Set.prototype.forEach; -var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype; -var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null; -var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype; -var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null; -var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype; -var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; -var booleanValueOf = Boolean.prototype.valueOf; -var objectToString = Object.prototype.toString; -var functionToString = Function.prototype.toString; -var $match = String.prototype.match; -var $slice = String.prototype.slice; -var $replace = String.prototype.replace; -var $toUpperCase = String.prototype.toUpperCase; -var $toLowerCase = String.prototype.toLowerCase; -var $test = RegExp.prototype.test; -var $concat = Array.prototype.concat; -var $join = Array.prototype.join; -var $arrSlice = Array.prototype.slice; -var $floor = Math.floor; -var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; -var gOPS = Object.getOwnPropertySymbols; -var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null; -var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object'; -// ie, `has-tostringtag/shams -var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol') - ? Symbol.toStringTag - : null; -var isEnumerable = Object.prototype.propertyIsEnumerable; +"use strict"; -var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ( - [].__proto__ === Array.prototype // eslint-disable-line no-proto - ? function (O) { - return O.__proto__; // eslint-disable-line no-proto - } - : null -); -function addNumericSeparator(num, str) { - if ( - num === Infinity - || num === -Infinity - || num !== num - || (num && num > -1000 && num < 1000) - || $test.call(/e/, str) - ) { - return str; - } - var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; - if (typeof num === 'number') { - var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num) - if (int !== num) { - var intStr = String(int); - var dec = $slice.call(str, intStr.length + 1); - return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, ''); - } - } - return $replace.call(str, sepRegex, '$&_'); -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var utilInspect = __nccwpck_require__(58502); -var inspectCustom = utilInspect.custom; -var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -module.exports = function inspect_(obj, options, depth, seen) { - var opts = options || {}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) { - throw new TypeError('option "quoteStyle" must be "single" or "double"'); - } - if ( - has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' - ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity - : opts.maxStringLength !== null - ) - ) { - throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'); - } - var customInspect = has(opts, 'customInspect') ? opts.customInspect : true; - if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') { - throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if ( - has(opts, 'indent') - && opts.indent !== null - && opts.indent !== '\t' - && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0) - ) { - throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); - } - if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') { - throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); - } - var numericSeparator = opts.numericSeparator; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (typeof obj === 'undefined') { - return 'undefined'; - } - if (obj === null) { - return 'null'; - } - if (typeof obj === 'boolean') { - return obj ? 'true' : 'false'; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (typeof obj === 'string') { - return inspectString(obj, opts); - } - if (typeof obj === 'number') { - if (obj === 0) { - return Infinity / obj > 0 ? '0' : '-0'; - } - var str = String(obj); - return numericSeparator ? addNumericSeparator(obj, str) : str; - } - if (typeof obj === 'bigint') { - var bigIntStr = String(obj) + 'n'; - return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; - } +/** + * The UpdateGKETargetOutput model module. + * @module model/UpdateGKETargetOutput + * @version 3.6.3 + */ +var UpdateGKETargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateGKETargetOutput. + * @alias module:model/UpdateGKETargetOutput + */ + function UpdateGKETargetOutput() { + _classCallCheck(this, UpdateGKETargetOutput); - var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; - if (typeof depth === 'undefined') { depth = 0; } - if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') { - return isArray(obj) ? '[Array]' : '[Object]'; - } + UpdateGKETargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - var indent = getIndent(opts, depth); - if (typeof seen === 'undefined') { - seen = []; - } else if (indexOf(seen, obj) >= 0) { - return '[Circular]'; - } + _createClass(UpdateGKETargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateGKETargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGKETargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateGKETargetOutput} The populated UpdateGKETargetOutput instance. + */ - function inspect(value, from, noIndent) { - if (from) { - seen = $arrSlice.call(seen); - seen.push(from); - } - if (noIndent) { - var newOpts = { - depth: opts.depth - }; - if (has(opts, 'quoteStyle')) { - newOpts.quoteStyle = opts.quoteStyle; - } - return inspect_(value, newOpts, depth + 1, seen); - } - return inspect_(value, opts, depth + 1, seen); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGKETargetOutput(); - if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable - var name = nameOf(obj); - var keys = arrObjKeys(obj, inspect); - return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : ''); - } - if (isSymbol(obj)) { - var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj); - return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString; - } - if (isElement(obj)) { - var s = '<' + $toLowerCase.call(String(obj.nodeName)); - var attrs = obj.attributes || []; - for (var i = 0; i < attrs.length; i++) { - s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); - } - s += '>'; - if (obj.childNodes && obj.childNodes.length) { s += '...'; } - s += ''; - return s; - } - if (isArray(obj)) { - if (obj.length === 0) { return '[]'; } - var xs = arrObjKeys(obj, inspect); - if (indent && !singleLineValues(xs)) { - return '[' + indentedJoin(xs, indent) + ']'; - } - return '[ ' + $join.call(xs, ', ') + ' ]'; - } - if (isError(obj)) { - var parts = arrObjKeys(obj, inspect); - if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) { - return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }'; - } - if (parts.length === 0) { return '[' + String(obj) + ']'; } - return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }'; - } - if (typeof obj === 'object' && customInspect) { - if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) { - return utilInspect(obj, { depth: maxDepth - depth }); - } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') { - return obj.inspect(); - } - } - if (isMap(obj)) { - var mapParts = []; - if (mapForEach) { - mapForEach.call(obj, function (value, key) { - mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj)); - }); - } - return collectionOf('Map', mapSize.call(obj), mapParts, indent); - } - if (isSet(obj)) { - var setParts = []; - if (setForEach) { - setForEach.call(obj, function (value) { - setParts.push(inspect(value, obj)); - }); - } - return collectionOf('Set', setSize.call(obj), setParts, indent); - } - if (isWeakMap(obj)) { - return weakCollectionOf('WeakMap'); - } - if (isWeakSet(obj)) { - return weakCollectionOf('WeakSet'); - } - if (isWeakRef(obj)) { - return weakCollectionOf('WeakRef'); - } - if (isNumber(obj)) { - return markBoxed(inspect(Number(obj))); - } - if (isBigInt(obj)) { - return markBoxed(inspect(bigIntValueOf.call(obj))); - } - if (isBoolean(obj)) { - return markBoxed(booleanValueOf.call(obj)); - } - if (isString(obj)) { - return markBoxed(inspect(String(obj))); - } - if (!isDate(obj) && !isRegExp(obj)) { - var ys = arrObjKeys(obj, inspect); - var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; - var protoTag = obj instanceof Object ? '' : 'null prototype'; - var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : ''; - var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : ''; - var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : ''); - if (ys.length === 0) { return tag + '{}'; } - if (indent) { - return tag + '{' + indentedJoin(ys, indent) + '}'; + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); } - return tag + '{ ' + $join.call(ys, ', ') + ' }'; + } + + return obj; } - return String(obj); -}; + }]); -function wrapQuotes(s, defaultStyle, opts) { - var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'"; - return quoteChar + s + quoteChar; -} + return UpdateGKETargetOutput; +}(); +/** + * @member {Number} target_id + */ -function quote(s) { - return $replace.call(String(s), /"/g, '"'); -} -function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } -function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } +UpdateGKETargetOutput.prototype['target_id'] = undefined; +var _default = UpdateGKETargetOutput; +exports["default"] = _default; -// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives -function isSymbol(obj) { - if (hasShammedSymbols) { - return obj && typeof obj === 'object' && obj instanceof Symbol; - } - if (typeof obj === 'symbol') { - return true; - } - if (!obj || typeof obj !== 'object' || !symToString) { - return false; - } - try { - symToString.call(obj); - return true; - } catch (e) {} - return false; -} +/***/ }), -function isBigInt(obj) { - if (!obj || typeof obj !== 'object' || !bigIntValueOf) { - return false; - } - try { - bigIntValueOf.call(obj); - return true; - } catch (e) {} - return false; -} +/***/ 27770: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; }; -function has(obj, key) { - return hasOwn.call(obj, key); -} +"use strict"; -function toStr(obj) { - return objectToString.call(obj); -} -function nameOf(f) { - if (f.name) { return f.name; } - var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/); - if (m) { return m[1]; } - return null; -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -function indexOf(xs, x) { - if (xs.indexOf) { return xs.indexOf(x); } - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) { return i; } - } - return -1; -} +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -function isMap(x) { - if (!mapSize || !x || typeof x !== 'object') { - return false; - } - try { - mapSize.call(x); - try { - setSize.call(x); - } catch (s) { - return true; - } - return x instanceof Map; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function isWeakMap(x) { - if (!weakMapHas || !x || typeof x !== 'object') { - return false; - } - try { - weakMapHas.call(x, weakMapHas); - try { - weakSetHas.call(x, weakSetHas); - } catch (s) { - return true; - } - return x instanceof WeakMap; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function isWeakRef(x) { - if (!weakRefDeref || !x || typeof x !== 'object') { - return false; - } - try { - weakRefDeref.call(x); - return true; - } catch (e) {} - return false; -} +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function isSet(x) { - if (!setSize || !x || typeof x !== 'object') { - return false; - } - try { - setSize.call(x); - try { - mapSize.call(x); - } catch (m) { - return true; - } - return x instanceof Set; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -function isWeakSet(x) { - if (!weakSetHas || !x || typeof x !== 'object') { - return false; - } - try { - weakSetHas.call(x, weakSetHas); - try { - weakMapHas.call(x, weakMapHas); - } catch (s) { - return true; - } - return x instanceof WeakSet; // core-js workaround, pre-v2.5.0 - } catch (e) {} - return false; -} +/** + * The UpdateGcpTarget model module. + * @module model/UpdateGcpTarget + * @version 3.6.3 + */ +var UpdateGcpTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateGcpTarget. + * @alias module:model/UpdateGcpTarget + * @param name {String} Target name + */ + function UpdateGcpTarget(name) { + _classCallCheck(this, UpdateGcpTarget); -function isElement(x) { - if (!x || typeof x !== 'object') { return false; } - if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) { - return true; + UpdateGcpTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateGcpTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } - return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function'; -} + /** + * Constructs a UpdateGcpTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGcpTarget} obj Optional instance to populate. + * @return {module:model/UpdateGcpTarget} The populated UpdateGcpTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGcpTarget(); -function inspectString(str, opts) { - if (str.length > opts.maxStringLength) { - var remaining = str.length - opts.maxStringLength; - var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); - return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer; - } - // eslint-disable-next-line no-control-regex - var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte); - return wrapQuotes(s, 'single', opts); -} + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } -function lowbyte(c) { - var n = c.charCodeAt(0); - var x = { - 8: 'b', - 9: 't', - 10: 'n', - 12: 'f', - 13: 'r' - }[n]; - if (x) { return '\\' + x; } - return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16)); -} + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -function markBoxed(str) { - return 'Object(' + str + ')'; -} + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); + } -function weakCollectionOf(type) { - return type + ' { ? }'; -} + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -function collectionOf(type, size, entries, indent) { - var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', '); - return type + ' (' + size + ') {' + joinedEntries + '}'; -} + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -function singleLineValues(xs) { - for (var i = 0; i < xs.length; i++) { - if (indexOf(xs[i], '\n') >= 0) { - return false; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - } - return true; -} -function getIndent(opts, depth) { - var baseIndent; - if (opts.indent === '\t') { - baseIndent = '\t'; - } else if (typeof opts.indent === 'number' && opts.indent > 0) { - baseIndent = $join.call(Array(opts.indent + 1), ' '); - } else { - return null; - } - return { - base: baseIndent, - prev: $join.call(Array(depth + 1), baseIndent) - }; -} + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -function indentedJoin(xs, indent) { - if (xs.length === 0) { return ''; } - var lineJoiner = '\n' + indent.prev + indent.base; - return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev; -} + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -function arrObjKeys(obj, inspect) { - var isArr = isArray(obj); - var xs = []; - if (isArr) { - xs.length = obj.length; - for (var i = 0; i < obj.length; i++) { - xs[i] = has(obj, i) ? inspect(obj[i], obj) : ''; + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - } - var syms = typeof gOPS === 'function' ? gOPS(obj) : []; - var symMap; - if (hasShammedSymbols) { - symMap = {}; - for (var k = 0; k < syms.length; k++) { - symMap['$' + syms[k]] = syms[k]; + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - } - for (var key in obj) { // eslint-disable-line no-restricted-syntax - if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue - if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue - if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) { - // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section - continue; // eslint-disable-line no-restricted-syntax, no-continue - } else if ($test.call(/[^\w$]/, key)) { - xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)); - } else { - xs.push(key + ': ' + inspect(obj[key], obj)); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - } - if (typeof gOPS === 'function') { - for (var j = 0; j < syms.length; j++) { - if (isEnumerable.call(obj, syms[j])) { - xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj)); - } + + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + + if (data.hasOwnProperty('use-gw-cloud-identity')) { + obj['use-gw-cloud-identity'] = _ApiClient["default"].convertToType(data['use-gw-cloud-identity'], 'Boolean'); } + } + + return obj; } - return xs; -} + }]); + return UpdateGcpTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ -/***/ }), -/***/ 58502: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateGcpTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ -module.exports = __nccwpck_require__(39023).inspect; +UpdateGcpTarget.prototype['description'] = undefined; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ +UpdateGcpTarget.prototype['gcp-key'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ }), +UpdateGcpTarget.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -/***/ 55560: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateGcpTarget.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -var wrappy = __nccwpck_require__(58264) -module.exports = wrappy(once) -module.exports.strict = wrappy(onceStrict) +UpdateGcpTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -once.proto = once(function () { - Object.defineProperty(Function.prototype, 'once', { - value: function () { - return once(this) - }, - configurable: true - }) +UpdateGcpTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ - Object.defineProperty(Function.prototype, 'onceStrict', { - value: function () { - return onceStrict(this) - }, - configurable: true - }) -}) +UpdateGcpTarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ -function once (fn) { - var f = function () { - if (f.called) return f.value - f.called = true - return f.value = fn.apply(this, arguments) - } - f.called = false - return f -} +UpdateGcpTarget.prototype['new-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -function onceStrict (fn) { - var f = function () { - if (f.called) - throw new Error(f.onceError) - f.called = true - return f.value = fn.apply(this, arguments) - } - var name = fn.name || 'Function wrapped with `once`' - f.onceError = name + " shouldn't be called more than once" - f.called = false - return f -} +UpdateGcpTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UpdateGcpTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ +UpdateGcpTarget.prototype['update-version'] = undefined; +/** + * @member {Boolean} use-gw-cloud-identity + */ + +UpdateGcpTarget.prototype['use-gw-cloud-identity'] = undefined; +var _default = UpdateGcpTarget; +exports["default"] = _default; /***/ }), -/***/ 12851: +/***/ 18991: /***/ ((__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.googleProtobufAnyFromProto3JSON = exports.googleProtobufAnyToProto3JSON = void 0; -const fromproto3json_1 = __nccwpck_require__(32360); -const toproto3json_1 = __nccwpck_require__(63269); -// https://github.com/protocolbuffers/protobuf/blob/ba3836703b4a9e98e474aea2bac8c5b49b6d3b5c/python/google/protobuf/json_format.py#L850 -const specialJSON = new Set([ - 'google.protobuf.Any', - 'google.protobuf.Duration', - 'google.protobuf.FieldMask', - 'google.protobuf.ListValue', - 'google.protobuf.Struct', - 'google.protobuf.Timestamp', - 'google.protobuf.Value', -]); -function googleProtobufAnyToProto3JSON(obj, options) { - // https://developers.google.com/protocol-buffers/docs/proto3#json - // If the Any contains a value that has a special JSON mapping, it will be converted as follows: - // {"@type": xxx, "value": yyy}. - // Otherwise, the value will be converted into a JSON object, and the "@type" field will be inserted - // to indicate the actual data type. - const typeName = obj.type_url.replace(/^.*\//, ''); - let type; - try { - type = obj.$type.root.lookupType(typeName); - } - catch (err) { - throw new Error(`googleProtobufAnyToProto3JSON: cannot find type ${typeName}: ${err}`); - } - const valueMessage = type.decode(obj.value); - const valueProto3JSON = (0, toproto3json_1.toProto3JSON)(valueMessage, options); - if (specialJSON.has(typeName)) { - return { - '@type': obj.type_url, - value: valueProto3JSON, - }; - } - valueProto3JSON['@type'] = obj.type_url; - return valueProto3JSON; -} -exports.googleProtobufAnyToProto3JSON = googleProtobufAnyToProto3JSON; -function googleProtobufAnyFromProto3JSON(root, json) { - // Not all possible JSON values can hold Any, only real objects. - if (json === null || typeof json !== 'object' || Array.isArray(json)) { - throw new Error('googleProtobufAnyFromProto3JSON: must be an object to decode google.protobuf.Any'); - } - const typeUrl = json['@type']; - if (!typeUrl || typeof typeUrl !== 'string') { - throw new Error('googleProtobufAnyFromProto3JSON: JSON serialization of google.protobuf.Any must contain @type field'); - } - const typeName = typeUrl.replace(/^.*\//, ''); - let type; - try { - type = root.lookupType(typeName); - } - catch (err) { - throw new Error(`googleProtobufAnyFromProto3JSON: cannot find type ${typeName}: ${err}`); - } - let value = json; - if (specialJSON.has(typeName)) { - if (!('value' in json)) { - throw new Error(`googleProtobufAnyFromProto3JSON: JSON representation of google.protobuf.Any with type ${typeName} must contain the value field`); - } - value = json.value; - } - const valueMessage = (0, fromproto3json_1.fromProto3JSON)(type, value); - if (valueMessage === null) { - return { - type_url: typeUrl, - value: null, - }; - } - const uint8array = type.encode(valueMessage).finish(); - const buffer = Buffer.from(uint8array, 0, uint8array.byteLength); - const base64 = buffer.toString('base64'); - return { - type_url: typeUrl, - value: base64, - }; -} -exports.googleProtobufAnyFromProto3JSON = googleProtobufAnyFromProto3JSON; -//# sourceMappingURL=any.js.map -/***/ }), +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/***/ 64685: -/***/ ((__unused_webpack_module, exports) => { +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -"use strict"; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -// 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.bytesFromProto3JSON = exports.bytesToProto3JSON = void 0; -function bytesToProto3JSON(obj) { - if (Buffer.isBuffer(obj)) { - return obj.toString('base64'); - } - else { - return Buffer.from(obj.buffer, 0, obj.byteLength).toString('base64'); - } -} -exports.bytesToProto3JSON = bytesToProto3JSON; -function bytesFromProto3JSON(json) { - return Buffer.from(json, 'base64'); -} -exports.bytesFromProto3JSON = bytesFromProto3JSON; -//# sourceMappingURL=bytes.js.map +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/***/ }), +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/***/ 1849: -/***/ ((__unused_webpack_module, exports) => { +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -"use strict"; +/** + * The UpdateGcpTargetOutput model module. + * @module model/UpdateGcpTargetOutput + * @version 3.6.3 + */ +var UpdateGcpTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateGcpTargetOutput. + * @alias module:model/UpdateGcpTargetOutput + */ + function UpdateGcpTargetOutput() { + _classCallCheck(this, UpdateGcpTargetOutput); -// 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.googleProtobufDurationFromProto3JSON = exports.googleProtobufDurationToProto3JSON = void 0; -function googleProtobufDurationToProto3JSON(obj) { - // seconds is an instance of Long so it won't be undefined - let durationSeconds = obj.seconds.toString(); - if (typeof obj.nanos === 'number' && obj.nanos > 0) { - // nanosStr should contain 3, 6, or 9 fractional digits. - const nanosStr = obj.nanos - .toString() - .padStart(9, '0') - .replace(/^((?:\d\d\d)+?)(?:0*)$/, '$1'); - durationSeconds += '.' + nanosStr; - } - durationSeconds += 's'; - return durationSeconds; -} -exports.googleProtobufDurationToProto3JSON = googleProtobufDurationToProto3JSON; -function googleProtobufDurationFromProto3JSON(json) { - const match = json.match(/^(\d*)(?:\.(\d*))?s$/); - if (!match) { - throw new Error(`googleProtobufDurationFromProto3JSON: incorrect value ${json} passed as google.protobuf.Duration`); - } - let seconds = 0; - let nanos = 0; - if (typeof match[1] === 'string' && match[1].length > 0) { - seconds = parseInt(match[1]); - } - if (typeof match[2] === 'string' && match[2].length > 0) { - nanos = parseInt(match[2].padEnd(9, '0')); - } - const result = {}; - if (seconds !== 0) { - result.seconds = seconds; - } - if (nanos !== 0) { - result.nanos = nanos; - } - return result; -} -exports.googleProtobufDurationFromProto3JSON = googleProtobufDurationFromProto3JSON; -//# sourceMappingURL=duration.js.map + UpdateGcpTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), -/***/ 94944: -/***/ ((__unused_webpack_module, exports) => { + _createClass(UpdateGcpTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateGcpTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGcpTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateGcpTargetOutput} The populated UpdateGcpTargetOutput instance. + */ -"use strict"; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGcpTargetOutput(); -// 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.resolveEnumValueToNumber = exports.resolveEnumValueToString = void 0; -function resolveEnumValueToString(enumType, enumValue) { - // for unknown enum values, do not fail and try to do the best we could. - // protobuf.js fromObject() will likely ignore unknown values, but at least - // we won't fail. - if (typeof enumValue === 'number') { - const value = enumType.valuesById[enumValue]; - if (typeof value === 'undefined') { - // unknown value, cannot convert to string, returning number as is - return enumValue; - } - return value; - } - if (typeof enumValue === 'string') { - // for strings, just accept what we got - return enumValue; - } - throw new Error('resolveEnumValueToString: enum value must be a string or a number'); -} -exports.resolveEnumValueToString = resolveEnumValueToString; -function resolveEnumValueToNumber(enumType, enumValue) { - if (typeof enumValue === 'number') { - // return as is - return enumValue; - } - if (typeof enumValue === 'string') { - const num = enumType.values[enumValue]; - if (typeof num === 'undefined') { - // unknown value, cannot convert to number, returning string as is - return enumValue; + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); } - return num; - } - throw new Error('resolveEnumValueToNumber: enum value must be a string or a number'); -} -exports.resolveEnumValueToNumber = resolveEnumValueToNumber; -//# sourceMappingURL=enum.js.map + } -/***/ }), + return obj; + } + }]); -/***/ 56441: -/***/ ((__unused_webpack_module, exports) => { + return UpdateGcpTargetOutput; +}(); +/** + * @member {Number} target_id + */ -"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.googleProtobufFieldMaskFromProto3JSON = exports.googleProtobufFieldMaskToProto3JSON = void 0; -function googleProtobufFieldMaskToProto3JSON(obj) { - return obj.paths.join(','); -} -exports.googleProtobufFieldMaskToProto3JSON = googleProtobufFieldMaskToProto3JSON; -function googleProtobufFieldMaskFromProto3JSON(json) { - return { - paths: json.split(','), - }; -} -exports.googleProtobufFieldMaskFromProto3JSON = googleProtobufFieldMaskFromProto3JSON; -//# sourceMappingURL=fieldmask.js.map +UpdateGcpTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateGcpTargetOutput; +exports["default"] = _default; /***/ }), -/***/ 32360: +/***/ 47511: /***/ ((__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.fromProto3JSON = exports.fromProto3JSONToInternalRepresentation = void 0; -const any_1 = __nccwpck_require__(12851); -const bytes_1 = __nccwpck_require__(64685); -const enum_1 = __nccwpck_require__(94944); -const value_1 = __nccwpck_require__(92304); -const util_1 = __nccwpck_require__(27905); -const duration_1 = __nccwpck_require__(1849); -const timestamp_1 = __nccwpck_require__(6181); -const wrappers_1 = __nccwpck_require__(18157); -const fieldmask_1 = __nccwpck_require__(56441); -function fromProto3JSONToInternalRepresentation(type, json) { - const fullyQualifiedTypeName = typeof type === 'string' ? type : (0, util_1.getFullyQualifiedTypeName)(type); - if (typeof type !== 'string' && 'values' in type) { - // type is an Enum - if (fullyQualifiedTypeName === '.google.protobuf.NullValue') { - return 'NULL_VALUE'; - } - return (0, enum_1.resolveEnumValueToString)(type, json); - } - if (typeof type !== 'string') { - type.resolveAll(); - } - if (typeof type === 'string') { - return json; - } - // Types that require special handling according to - // https://developers.google.com/protocol-buffers/docs/proto3#json - // Types that can have meaningful "null" value - if (fullyQualifiedTypeName === '.google.protobuf.Value') { - return (0, value_1.googleProtobufValueFromProto3JSON)(json); - } - if (util_1.wrapperTypes.has(fullyQualifiedTypeName)) { - if ((json !== null && typeof json === 'object') || Array.isArray(json)) { - throw new Error(`fromProto3JSONToInternalRepresentation: JSON representation for ${fullyQualifiedTypeName} expects a string, a number, or a boolean, but got ${typeof json}`); - } - return (0, wrappers_1.wrapperFromProto3JSON)(fullyQualifiedTypeName, json); - } - if (json === null) { - return null; - } - // Types that cannot be "null" - if (fullyQualifiedTypeName === '.google.protobuf.Any') { - return (0, any_1.googleProtobufAnyFromProto3JSON)(type.root, json); + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The UpdateGithubTarget model module. + * @module model/UpdateGithubTarget + * @version 3.6.3 + */ +var UpdateGithubTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateGithubTarget. + * @alias module:model/UpdateGithubTarget + * @param name {String} Target name + */ + function UpdateGithubTarget(name) { + _classCallCheck(this, UpdateGithubTarget); + + UpdateGithubTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateGithubTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } - if (fullyQualifiedTypeName === '.google.protobuf.Struct') { - if (typeof json !== 'object') { - throw new Error(`fromProto3JSONToInternalRepresentation: google.protobuf.Struct must be an object but got ${typeof json}`); + /** + * Constructs a UpdateGithubTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGithubTarget} obj Optional instance to populate. + * @return {module:model/UpdateGithubTarget} The populated UpdateGithubTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGithubTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - if (Array.isArray(json)) { - throw new Error('fromProto3JSONToInternalRepresentation: google.protobuf.Struct must be an object but got an array'); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - return (0, value_1.googleProtobufStructFromProto3JSON)(json); - } - if (fullyQualifiedTypeName === '.google.protobuf.ListValue') { - if (!Array.isArray(json)) { - throw new Error(`fromProto3JSONToInternalRepresentation: google.protobuf.ListValue must be an array but got ${typeof json}`); + + if (data.hasOwnProperty('github-app-id')) { + obj['github-app-id'] = _ApiClient["default"].convertToType(data['github-app-id'], 'Number'); } - return (0, value_1.googleProtobufListValueFromProto3JSON)(json); - } - if (fullyQualifiedTypeName === '.google.protobuf.Duration') { - if (typeof json !== 'string') { - throw new Error(`fromProto3JSONToInternalRepresentation: google.protobuf.Duration must be a string but got ${typeof json}`); + + if (data.hasOwnProperty('github-app-private-key')) { + obj['github-app-private-key'] = _ApiClient["default"].convertToType(data['github-app-private-key'], 'String'); } - return (0, duration_1.googleProtobufDurationFromProto3JSON)(json); - } - if (fullyQualifiedTypeName === '.google.protobuf.Timestamp') { - if (typeof json !== 'string') { - throw new Error(`fromProto3JSONToInternalRepresentation: google.protobuf.Timestamp must be a string but got ${typeof json}`); + + if (data.hasOwnProperty('github-base-url')) { + obj['github-base-url'] = _ApiClient["default"].convertToType(data['github-base-url'], 'String'); } - return (0, timestamp_1.googleProtobufTimestampFromProto3JSON)(json); - } - if (fullyQualifiedTypeName === '.google.protobuf.FieldMask') { - if (typeof json !== 'string') { - throw new Error(`fromProto3JSONToInternalRepresentation: google.protobuf.FieldMask must be a string but got ${typeof json}`); + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - return (0, fieldmask_1.googleProtobufFieldMaskFromProto3JSON)(json); - } - const result = {}; - for (const [key, value] of Object.entries(json)) { - const field = type.fields[key]; - if (!field) { - continue; + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - const resolvedType = field.resolvedType; - const fieldType = field.type; - if (field.repeated) { - if (value === null) { - result[key] = []; - } - else { - if (!Array.isArray(value)) { - throw new Error(`fromProto3JSONToInternalRepresentation: expected an array for field ${key}`); - } - result[key] = value.map(element => fromProto3JSONToInternalRepresentation(resolvedType || fieldType, element)); - } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - else if (field.map) { - const map = {}; - for (const [mapKey, mapValue] of Object.entries(value)) { - map[mapKey] = fromProto3JSONToInternalRepresentation(resolvedType || fieldType, mapValue); - } - result[key] = map; + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - else if (fieldType.match(/^(?:(?:(?:u?int|fixed)(?:32|64))|float|double)$/)) { - if (typeof value !== 'number' && typeof value !== 'string') { - throw new Error(`fromProto3JSONToInternalRepresentation: field ${key} of type ${field.type} cannot contain value ${value}`); - } - result[key] = value; + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - else if (fieldType === 'string') { - if (typeof value !== 'string') { - throw new Error(`fromProto3JSONToInternalRepresentation: field ${key} of type ${field.type} cannot contain value ${value}`); - } - result[key] = value; + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - else if (fieldType === 'bool') { - if (typeof value !== 'boolean') { - throw new Error(`fromProto3JSONToInternalRepresentation: field ${key} of type ${field.type} cannot contain value ${value}`); - } - result[key] = value; + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - else if (fieldType === 'bytes') { - if (typeof value !== 'string') { - throw new Error(`fromProto3JSONToInternalRepresentation: field ${key} of type ${field.type} cannot contain value ${value}`); - } - result[key] = (0, bytes_1.bytesFromProto3JSON)(value); + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - else { - // Message type - (0, util_1.assert)(resolvedType !== null, `Expected to be able to resolve type for field ${field.name}`); - const deserializedValue = fromProto3JSONToInternalRepresentation(resolvedType, value); - result[key] = deserializedValue; + + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); } + } + + return obj; } - return result; -} -exports.fromProto3JSONToInternalRepresentation = fromProto3JSONToInternalRepresentation; -function fromProto3JSON(type, json) { - const internalRepr = fromProto3JSONToInternalRepresentation(type, json); - if (internalRepr === null) { - return null; - } - // We only expect a real object here sine all special cases should be already resolved. Everything else is an internal error - (0, util_1.assert)(typeof internalRepr === 'object' && !Array.isArray(internalRepr), `fromProto3JSON: expected an object, not ${json}`); - return type.fromObject(internalRepr); -} -exports.fromProto3JSON = fromProto3JSON; -//# sourceMappingURL=fromproto3json.js.map + }]); + + return UpdateGithubTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ + + +UpdateGithubTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ + +UpdateGithubTarget.prototype['description'] = undefined; +/** + * Github app id + * @member {Number} github-app-id + */ + +UpdateGithubTarget.prototype['github-app-id'] = undefined; +/** + * App private key + * @member {String} github-app-private-key + */ + +UpdateGithubTarget.prototype['github-app-private-key'] = undefined; +/** + * Base URL + * @member {String} github-base-url + * @default 'https://api.github.com/' + */ + +UpdateGithubTarget.prototype['github-base-url'] = 'https://api.github.com/'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +UpdateGithubTarget.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ + +UpdateGithubTarget.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ + +UpdateGithubTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ + +UpdateGithubTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ + +UpdateGithubTarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ + +UpdateGithubTarget.prototype['new-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UpdateGithubTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UpdateGithubTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ + +UpdateGithubTarget.prototype['update-version'] = undefined; +var _default = UpdateGithubTarget; +exports["default"] = _default; /***/ }), -/***/ 65913: +/***/ 14926: /***/ ((__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.fromProto3JSON = exports.toProto3JSON = void 0; -var toproto3json_1 = __nccwpck_require__(63269); -Object.defineProperty(exports, "toProto3JSON", ({ enumerable: true, get: function () { return toproto3json_1.toProto3JSON; } })); -var fromproto3json_1 = __nccwpck_require__(32360); -Object.defineProperty(exports, "fromProto3JSON", ({ enumerable: true, get: function () { return fromproto3json_1.fromProto3JSON; } })); -//# sourceMappingURL=index.js.map -/***/ }), +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/***/ 6181: -/***/ ((__unused_webpack_module, exports) => { +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -"use strict"; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -// 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.googleProtobufTimestampFromProto3JSON = exports.googleProtobufTimestampToProto3JSON = void 0; -function googleProtobufTimestampToProto3JSON(obj) { - var _a; - // seconds is an instance of Long so it won't be undefined - const durationSeconds = obj.seconds; - const date = new Date(durationSeconds * 1000).toISOString(); - // Pad leading zeros if nano string length is less than 9. - let nanos = (_a = obj.nanos) === null || _a === void 0 ? void 0 : _a.toString().padStart(9, '0'); - // Trim the unsignificant zeros and keep 3, 6, or 9 decimal digits. - while (nanos && nanos.length > 3 && nanos.endsWith('000')) { - nanos = nanos.slice(0, -3); - } - return date.replace(/(?:\.\d{0,9})/, '.' + nanos); -} -exports.googleProtobufTimestampToProto3JSON = googleProtobufTimestampToProto3JSON; -function googleProtobufTimestampFromProto3JSON(json) { - const match = json.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?/); - if (!match) { - throw new Error(`googleProtobufDurationFromProto3JSON: incorrect value ${json} passed as google.protobuf.Duration`); - } - const date = new Date(json); - const millisecondsSinceEpoch = date.getTime(); - const seconds = Math.floor(millisecondsSinceEpoch / 1000); - // The fractional seconds in the JSON timestamps can go up to 9 digits (i.e. up to 1 nanosecond resolution). - // However, Javascript Date object represent any date and time to millisecond precision. - // To keep the precision, we extract the fractional seconds and append 0 until the length is equal to 9. - let nanos = 0; - const secondsFromDate = json.split('.')[1]; - if (secondsFromDate) { - nanos = parseInt(secondsFromDate.slice(0, -1).padEnd(9, '0')); - } - const result = {}; - if (seconds !== 0) { - result.seconds = seconds; - } - if (nanos !== 0) { - result.nanos = nanos; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The UpdateGithubTargetOutput model module. + * @module model/UpdateGithubTargetOutput + * @version 3.6.3 + */ +var UpdateGithubTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateGithubTargetOutput. + * @alias module:model/UpdateGithubTargetOutput + */ + function UpdateGithubTargetOutput() { + _classCallCheck(this, UpdateGithubTargetOutput); + + UpdateGithubTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateGithubTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateGithubTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGithubTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateGithubTargetOutput} The populated UpdateGithubTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGithubTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; } - return result; -} -exports.googleProtobufTimestampFromProto3JSON = googleProtobufTimestampFromProto3JSON; -//# sourceMappingURL=timestamp.js.map + }]); + + return UpdateGithubTargetOutput; +}(); +/** + * @member {Number} target_id + */ + + +UpdateGithubTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateGithubTargetOutput; +exports["default"] = _default; /***/ }), -/***/ 63269: +/***/ 90781: /***/ ((__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.toProto3JSON = void 0; -const any_1 = __nccwpck_require__(12851); -const bytes_1 = __nccwpck_require__(64685); -const util_1 = __nccwpck_require__(27905); -const enum_1 = __nccwpck_require__(94944); -const value_1 = __nccwpck_require__(92304); -const duration_1 = __nccwpck_require__(1849); -const timestamp_1 = __nccwpck_require__(6181); -const wrappers_1 = __nccwpck_require__(18157); -const fieldmask_1 = __nccwpck_require__(56441); -// Convert a single value, which might happen to be an instance of Long, to JSONValue -function convertSingleValue(value) { - var _a; - if (typeof value === 'object') { - if (((_a = value === null || value === void 0 ? void 0 : value.constructor) === null || _a === void 0 ? void 0 : _a.name) === 'Long') { - return value.toString(); - } - throw new Error(`toProto3JSON: don't know how to convert value ${value}`); - } - return value; -} -function toProto3JSON(obj, options) { - const objType = obj.$type; - if (!objType) { - throw new Error('Cannot serialize object to proto3 JSON since its .$type is unknown. Use Type.fromObject(obj) before calling toProto3JSON.'); - } - objType.resolveAll(); - const typeName = (0, util_1.getFullyQualifiedTypeName)(objType); - // Types that require special handling according to - // https://developers.google.com/protocol-buffers/docs/proto3#json - if (typeName === '.google.protobuf.Any') { - return (0, any_1.googleProtobufAnyToProto3JSON)(obj, options); - } - if (typeName === '.google.protobuf.Value') { - return (0, value_1.googleProtobufValueToProto3JSON)(obj); - } - if (typeName === '.google.protobuf.Struct') { - return (0, value_1.googleProtobufStructToProto3JSON)(obj); - } - if (typeName === '.google.protobuf.ListValue') { - return (0, value_1.googleProtobufListValueToProto3JSON)(obj); - } - if (typeName === '.google.protobuf.Duration') { - return (0, duration_1.googleProtobufDurationToProto3JSON)(obj); - } - if (typeName === '.google.protobuf.Timestamp') { - return (0, timestamp_1.googleProtobufTimestampToProto3JSON)(obj); - } - if (typeName === '.google.protobuf.FieldMask') { - return (0, fieldmask_1.googleProtobufFieldMaskToProto3JSON)(obj); - } - if (util_1.wrapperTypes.has(typeName)) { - return (0, wrappers_1.wrapperToProto3JSON)(obj); + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The UpdateGlobalSignAtlasTarget model module. + * @module model/UpdateGlobalSignAtlasTarget + * @version 3.6.3 + */ +var UpdateGlobalSignAtlasTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateGlobalSignAtlasTarget. + * @alias module:model/UpdateGlobalSignAtlasTarget + * @param apiKey {String} API Key of the GlobalSign Atlas account + * @param apiSecret {String} API Secret of the GlobalSign Atlas account + * @param name {String} Target name + */ + function UpdateGlobalSignAtlasTarget(apiKey, apiSecret, name) { + _classCallCheck(this, UpdateGlobalSignAtlasTarget); + + UpdateGlobalSignAtlasTarget.initialize(this, apiKey, apiSecret, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateGlobalSignAtlasTarget, null, [{ + key: "initialize", + value: function initialize(obj, apiKey, apiSecret, name) { + obj['api-key'] = apiKey; + obj['api-secret'] = apiSecret; + obj['name'] = name; } - const result = {}; - for (const [key, value] of Object.entries(obj)) { - const field = objType.fields[key]; - const fieldResolvedType = field.resolvedType; - const fieldFullyQualifiedTypeName = fieldResolvedType - ? (0, util_1.getFullyQualifiedTypeName)(fieldResolvedType) - : null; - if (value === null) { - result[key] = null; - continue; + /** + * Constructs a UpdateGlobalSignAtlasTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGlobalSignAtlasTarget} obj Optional instance to populate. + * @return {module:model/UpdateGlobalSignAtlasTarget} The populated UpdateGlobalSignAtlasTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGlobalSignAtlasTarget(); + + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); } - if (Array.isArray(value)) { - if (value.length === 0) { - // ignore repeated fields with no values - continue; - } - // if the repeated value has a complex type, convert it to proto3 JSON, otherwise use as is - result[key] = value.map(fieldResolvedType - ? element => { - return toProto3JSON(element, options); - } - : convertSingleValue); - continue; + + if (data.hasOwnProperty('api-secret')) { + obj['api-secret'] = _ApiClient["default"].convertToType(data['api-secret'], 'String'); } - if (field.map) { - const map = {}; - for (const [mapKey, mapValue] of Object.entries(value)) { - // if the map value has a complex type, convert it to proto3 JSON, otherwise use as is - map[mapKey] = fieldResolvedType - ? toProto3JSON(mapValue, options) - : convertSingleValue(mapValue); - } - result[key] = map; - continue; + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - if (fieldFullyQualifiedTypeName === '.google.protobuf.NullValue') { - result[key] = null; - continue; + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (fieldResolvedType && 'values' in fieldResolvedType && value !== null) { - if (options === null || options === void 0 ? void 0 : options.numericEnums) { - result[key] = (0, enum_1.resolveEnumValueToNumber)(fieldResolvedType, value); - } - else { - result[key] = (0, enum_1.resolveEnumValueToString)(fieldResolvedType, value); - } - continue; + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (fieldResolvedType) { - result[key] = toProto3JSON(value, options); - continue; + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (typeof value === 'string' || - typeof value === 'number' || - typeof value === 'boolean' || - value === null) { - if (typeof value === 'number' && !Number.isFinite(value)) { - result[key] = value.toString(); - continue; - } - result[key] = value; - continue; + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - if (Buffer.isBuffer(value) || value instanceof Uint8Array) { - result[key] = (0, bytes_1.bytesToProto3JSON)(value); - continue; + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); } - result[key] = convertSingleValue(value); - continue; - } - return result; -} -exports.toProto3JSON = toProto3JSON; -//# sourceMappingURL=toproto3json.js.map -/***/ }), + if (data.hasOwnProperty('mtls-cert-data-base64')) { + obj['mtls-cert-data-base64'] = _ApiClient["default"].convertToType(data['mtls-cert-data-base64'], 'String'); + } -/***/ 27905: -/***/ ((__unused_webpack_module, exports) => { + if (data.hasOwnProperty('mtls-key-data-base64')) { + obj['mtls-key-data-base64'] = _ApiClient["default"].convertToType(data['mtls-key-data-base64'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -// 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.assert = exports.wrapperTypes = exports.getFullyQualifiedTypeName = void 0; -function getFullyQualifiedTypeName(type) { - // We assume that the protobuf package tree cannot have cycles. - let fullyQualifiedTypeName = ''; - while (type.parent) { - fullyQualifiedTypeName = `.${type.name}${fullyQualifiedTypeName}`; - type = type.parent; - } - return fullyQualifiedTypeName; -} -exports.getFullyQualifiedTypeName = getFullyQualifiedTypeName; -exports.wrapperTypes = new Set([ - '.google.protobuf.DoubleValue', - '.google.protobuf.FloatValue', - '.google.protobuf.Int64Value', - '.google.protobuf.UInt64Value', - '.google.protobuf.Int32Value', - '.google.protobuf.UInt32Value', - '.google.protobuf.BoolValue', - '.google.protobuf.StringValue', - '.google.protobuf.BytesValue', -]); -function assert(assertion, message) { - if (!assertion) { - throw new Error(message); - } -} -exports.assert = assert; -//# sourceMappingURL=util.js.map + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); + } -/***/ 92304: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -// 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.googleProtobufValueFromProto3JSON = exports.googleProtobufListValueFromProto3JSON = exports.googleProtobufStructFromProto3JSON = exports.googleProtobufValueToProto3JSON = exports.googleProtobufListValueToProto3JSON = exports.googleProtobufStructToProto3JSON = void 0; -const util_1 = __nccwpck_require__(27905); -function googleProtobufStructToProto3JSON(obj) { - const result = {}; - const fields = obj.fields; - for (const [key, value] of Object.entries(fields)) { - result[key] = googleProtobufValueToProto3JSON(value); - } - return result; -} -exports.googleProtobufStructToProto3JSON = googleProtobufStructToProto3JSON; -function googleProtobufListValueToProto3JSON(obj) { - (0, util_1.assert)(Array.isArray(obj.values), 'ListValue internal representation must contain array of values'); - return obj.values.map(googleProtobufValueToProto3JSON); -} -exports.googleProtobufListValueToProto3JSON = googleProtobufListValueToProto3JSON; -function googleProtobufValueToProto3JSON(obj) { - if (Object.prototype.hasOwnProperty.call(obj, 'nullValue')) { - return null; - } - if (Object.prototype.hasOwnProperty.call(obj, 'numberValue') && - typeof obj.numberValue === 'number') { - if (!Number.isFinite(obj.numberValue)) { - return obj.numberValue.toString(); + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); } - return obj.numberValue; - } - if (Object.prototype.hasOwnProperty.call(obj, 'stringValue') && - typeof obj.stringValue === 'string') { - return obj.stringValue; - } - if (Object.prototype.hasOwnProperty.call(obj, 'boolValue') && - typeof obj.boolValue === 'boolean') { - return obj.boolValue; - } - if (Object.prototype.hasOwnProperty.call(obj, 'structValue') && - typeof obj.structValue === 'object') { - return googleProtobufStructToProto3JSON(obj.structValue); - } - if (Object.prototype.hasOwnProperty.call(obj, 'listValue') && - typeof obj === 'object' && - typeof obj.listValue === 'object') { - return googleProtobufListValueToProto3JSON(obj.listValue); - } - // Assuming empty Value to be null - return null; -} -exports.googleProtobufValueToProto3JSON = googleProtobufValueToProto3JSON; -function googleProtobufStructFromProto3JSON(json) { - const fields = {}; - for (const [key, value] of Object.entries(json)) { - fields[key] = googleProtobufValueFromProto3JSON(value); - } - return { fields }; -} -exports.googleProtobufStructFromProto3JSON = googleProtobufStructFromProto3JSON; -function googleProtobufListValueFromProto3JSON(json) { - return { - values: json.map(element => googleProtobufValueFromProto3JSON(element)), - }; -} -exports.googleProtobufListValueFromProto3JSON = googleProtobufListValueFromProto3JSON; -function googleProtobufValueFromProto3JSON(json) { - if (json === null) { - return { nullValue: 'NULL_VALUE' }; - } - if (typeof json === 'number') { - return { numberValue: json }; - } - if (typeof json === 'string') { - return { stringValue: json }; - } - if (typeof json === 'boolean') { - return { boolValue: json }; - } - if (Array.isArray(json)) { - return { - listValue: googleProtobufListValueFromProto3JSON(json), - }; - } - if (typeof json === 'object') { - return { - structValue: googleProtobufStructFromProto3JSON(json), - }; + } + + return obj; } - throw new Error(`googleProtobufValueFromProto3JSON: incorrect parameter type: ${typeof json}`); -} -exports.googleProtobufValueFromProto3JSON = googleProtobufValueFromProto3JSON; -//# sourceMappingURL=value.js.map + }]); -/***/ }), + return UpdateGlobalSignAtlasTarget; +}(); +/** + * API Key of the GlobalSign Atlas account + * @member {String} api-key + */ -/***/ 18157: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; +UpdateGlobalSignAtlasTarget.prototype['api-key'] = undefined; +/** + * API Secret of the GlobalSign Atlas account + * @member {String} api-secret + */ -// 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.wrapperFromProto3JSON = exports.wrapperToProto3JSON = void 0; -const bytes_1 = __nccwpck_require__(64685); -const util_1 = __nccwpck_require__(27905); -function wrapperToProto3JSON(obj) { - if (!Object.prototype.hasOwnProperty.call(obj, 'value')) { - return null; - } - if (Buffer.isBuffer(obj.value) || obj.value instanceof Uint8Array) { - return (0, bytes_1.bytesToProto3JSON)(obj.value); - } - if (typeof obj.value === 'object') { - (0, util_1.assert)(obj.value.constructor.name === 'Long', `wrapperToProto3JSON: expected to see a number, a string, a boolean, or a Long, but got ${obj.value}`); - return obj.value.toString(); - } - // JSON accept special string values "NaN", "Infinity", and "-Infinity". - if (typeof obj.value === 'number' && !Number.isFinite(obj.value)) { - return obj.value.toString(); - } - return obj.value; -} -exports.wrapperToProto3JSON = wrapperToProto3JSON; -function wrapperFromProto3JSON(typeName, json) { - if (json === null) { - return { - value: null, - }; - } - if (typeName === '.google.protobuf.BytesValue') { - if (typeof json !== 'string') { - throw new Error(`numberWrapperFromProto3JSON: expected to get a string for google.protobuf.BytesValue but got ${typeof json}`); - } - return { - value: (0, bytes_1.bytesFromProto3JSON)(json), - }; - } - return { - value: json, - }; -} -exports.wrapperFromProto3JSON = wrapperFromProto3JSON; -//# sourceMappingURL=wrappers.js.map +UpdateGlobalSignAtlasTarget.prototype['api-secret'] = undefined; +/** + * Deprecated - use description + * @member {String} comment + */ -/***/ }), +UpdateGlobalSignAtlasTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ -/***/ 6412: -/***/ ((module, exports, __nccwpck_require__) => { +UpdateGlobalSignAtlasTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -"use strict"; +UpdateGlobalSignAtlasTarget.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -var $protobuf = __nccwpck_require__(23928); -module.exports = exports = $protobuf.descriptor = $protobuf.Root.fromJSON(__nccwpck_require__(93951)).lookup(".google.protobuf"); +UpdateGlobalSignAtlasTarget.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -var Namespace = $protobuf.Namespace, - Root = $protobuf.Root, - Enum = $protobuf.Enum, - Type = $protobuf.Type, - Field = $protobuf.Field, - MapField = $protobuf.MapField, - OneOf = $protobuf.OneOf, - Service = $protobuf.Service, - Method = $protobuf.Method; +UpdateGlobalSignAtlasTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -// --- Root --- +UpdateGlobalSignAtlasTarget.prototype['max-versions'] = undefined; +/** + * Mutual TLS Certificate contents of the GlobalSign Atlas account encoded in base64, either mtls-cert-file-path or mtls-cert-data-base64 must be supplied + * @member {String} mtls-cert-data-base64 + */ +UpdateGlobalSignAtlasTarget.prototype['mtls-cert-data-base64'] = undefined; /** - * Properties of a FileDescriptorSet message. - * @interface IFileDescriptorSet - * @property {IFileDescriptorProto[]} file Files + * Mutual TLS Key contents of the GlobalSign Atlas account encoded in base64, either mtls-key-file-path or mtls-data-base64 must be supplied + * @member {String} mtls-key-data-base64 */ +UpdateGlobalSignAtlasTarget.prototype['mtls-key-data-base64'] = undefined; /** - * Properties of a FileDescriptorProto message. - * @interface IFileDescriptorProto - * @property {string} [name] File name - * @property {string} [package] Package - * @property {*} [dependency] Not supported - * @property {*} [publicDependency] Not supported - * @property {*} [weakDependency] Not supported - * @property {IDescriptorProto[]} [messageType] Nested message types - * @property {IEnumDescriptorProto[]} [enumType] Nested enums - * @property {IServiceDescriptorProto[]} [service] Nested services - * @property {IFieldDescriptorProto[]} [extension] Nested extension fields - * @property {IFileOptions} [options] Options - * @property {*} [sourceCodeInfo] Not supported - * @property {string} [syntax="proto2"] Syntax - * @property {IEdition} [edition] Edition + * Target name + * @member {String} name */ +UpdateGlobalSignAtlasTarget.prototype['name'] = undefined; /** - * Values of the Edition enum. - * @typedef IEdition - * @type {number} - * @property {number} EDITION_UNKNOWN=0 - * @property {number} EDITION_LEGACY=900 - * @property {number} EDITION_PROTO2=998 - * @property {number} EDITION_PROTO3=999 - * @property {number} EDITION_2023=1000 - * @property {number} EDITION_2024=1001 - * @property {number} EDITION_1_TEST_ONLY=1 - * @property {number} EDITION_2_TEST_ONLY=2 - * @property {number} EDITION_99997_TEST_ONLY=99997 - * @property {number} EDITION_99998_TEST_ONLY=99998 - * @property {number} EDITION_99998_TEST_ONLY=99999 - * @property {number} EDITION_MAX=2147483647 + * New target name + * @member {String} new-name */ +UpdateGlobalSignAtlasTarget.prototype['new-name'] = undefined; /** - * Properties of a FileOptions message. - * @interface IFileOptions - * @property {string} [javaPackage] - * @property {string} [javaOuterClassname] - * @property {boolean} [javaMultipleFiles] - * @property {boolean} [javaGenerateEqualsAndHash] - * @property {boolean} [javaStringCheckUtf8] - * @property {IFileOptionsOptimizeMode} [optimizeFor=1] - * @property {string} [goPackage] - * @property {boolean} [ccGenericServices] - * @property {boolean} [javaGenericServices] - * @property {boolean} [pyGenericServices] - * @property {boolean} [deprecated] - * @property {boolean} [ccEnableArenas] - * @property {string} [objcClassPrefix] - * @property {string} [csharpNamespace] + * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. + * @member {String} timeout + * @default '5m' */ +UpdateGlobalSignAtlasTarget.prototype['timeout'] = '5m'; /** - * Values of he FileOptions.OptimizeMode enum. - * @typedef IFileOptionsOptimizeMode - * @type {number} - * @property {number} SPEED=1 - * @property {number} CODE_SIZE=2 - * @property {number} LITE_RUNTIME=3 + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ +UpdateGlobalSignAtlasTarget.prototype['token'] = undefined; /** - * Creates a root from a descriptor set. - * @param {IFileDescriptorSet|Reader|Uint8Array} descriptor Descriptor - * @returns {Root} Root instance + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -Root.fromDescriptor = function fromDescriptor(descriptor) { - // Decode the descriptor message if specified as a buffer: - if (typeof descriptor.length === "number") - descriptor = exports.FileDescriptorSet.decode(descriptor); +UpdateGlobalSignAtlasTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ - var root = new Root(); +UpdateGlobalSignAtlasTarget.prototype['update-version'] = undefined; +var _default = UpdateGlobalSignAtlasTarget; +exports["default"] = _default; - if (descriptor.file) { - var fileDescriptor, - filePackage; - for (var j = 0, i; j < descriptor.file.length; ++j) { - filePackage = root; - if ((fileDescriptor = descriptor.file[j])["package"] && fileDescriptor["package"].length) - filePackage = root.define(fileDescriptor["package"]); - var edition = editionFromDescriptor(fileDescriptor); - if (fileDescriptor.name && fileDescriptor.name.length) - root.files.push(filePackage.filename = fileDescriptor.name); - if (fileDescriptor.messageType) - for (i = 0; i < fileDescriptor.messageType.length; ++i) - filePackage.add(Type.fromDescriptor(fileDescriptor.messageType[i], edition)); - if (fileDescriptor.enumType) - for (i = 0; i < fileDescriptor.enumType.length; ++i) - filePackage.add(Enum.fromDescriptor(fileDescriptor.enumType[i], edition)); - if (fileDescriptor.extension) - for (i = 0; i < fileDescriptor.extension.length; ++i) - filePackage.add(Field.fromDescriptor(fileDescriptor.extension[i], edition)); - if (fileDescriptor.service) - for (i = 0; i < fileDescriptor.service.length; ++i) - filePackage.add(Service.fromDescriptor(fileDescriptor.service[i], edition)); - var opts = fromDescriptorOptions(fileDescriptor.options, exports.FileOptions); - if (opts) { - var ks = Object.keys(opts); - for (i = 0; i < ks.length; ++i) - filePackage.setOption(ks[i], opts[ks[i]]); - } - } - } +/***/ }), - return root.resolveAll(); -}; +/***/ 89912: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** - * Converts a root to a descriptor set. - * @returns {Message} Descriptor - * @param {string} [edition="proto2"] The syntax or edition to use - */ -Root.prototype.toDescriptor = function toDescriptor(edition) { - var set = exports.FileDescriptorSet.create(); - Root_toDescriptorRecursive(this, set.file, edition); - return set; -}; +"use strict"; -// Traverses a namespace and assembles the descriptor set -function Root_toDescriptorRecursive(ns, files, edition) { - // Create a new file - var file = exports.FileDescriptorProto.create({ name: ns.filename || (ns.fullName.substring(1).replace(/\./g, "_") || "root") + ".proto" }); - editionToDescriptor(edition, file); - if (!(ns instanceof Root)) - file["package"] = ns.fullName.substring(1); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // Add nested types - for (var i = 0, nested; i < ns.nestedArray.length; ++i) - if ((nested = ns._nestedArray[i]) instanceof Type) - file.messageType.push(nested.toDescriptor(edition)); - else if (nested instanceof Enum) - file.enumType.push(nested.toDescriptor()); - else if (nested instanceof Field) - file.extension.push(nested.toDescriptor(edition)); - else if (nested instanceof Service) - file.service.push(nested.toDescriptor()); - else if (nested instanceof /* plain */ Namespace) - Root_toDescriptorRecursive(nested, files, edition); // requires new file +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // Keep package-level options - file.options = toDescriptorOptions(ns.options, exports.FileOptions); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // And keep the file only if there is at least one nested object - if (file.messageType.length + file.enumType.length + file.extension.length + file.service.length) - files.push(file); -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -// --- Type --- +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Properties of a DescriptorProto message. - * @interface IDescriptorProto - * @property {string} [name] Message type name - * @property {IFieldDescriptorProto[]} [field] Fields - * @property {IFieldDescriptorProto[]} [extension] Extension fields - * @property {IDescriptorProto[]} [nestedType] Nested message types - * @property {IEnumDescriptorProto[]} [enumType] Nested enums - * @property {IDescriptorProtoExtensionRange[]} [extensionRange] Extension ranges - * @property {IOneofDescriptorProto[]} [oneofDecl] Oneofs - * @property {IMessageOptions} [options] Not supported - * @property {IDescriptorProtoReservedRange[]} [reservedRange] Reserved ranges - * @property {string[]} [reservedName] Reserved names + * The UpdateGlobalSignAtlasTargetOutput model module. + * @module model/UpdateGlobalSignAtlasTargetOutput + * @version 3.6.3 */ +var UpdateGlobalSignAtlasTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateGlobalSignAtlasTargetOutput. + * @alias module:model/UpdateGlobalSignAtlasTargetOutput + */ + function UpdateGlobalSignAtlasTargetOutput() { + _classCallCheck(this, UpdateGlobalSignAtlasTargetOutput); + + UpdateGlobalSignAtlasTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateGlobalSignAtlasTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateGlobalSignAtlasTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGlobalSignAtlasTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateGlobalSignAtlasTargetOutput} The populated UpdateGlobalSignAtlasTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGlobalSignAtlasTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + return UpdateGlobalSignAtlasTargetOutput; +}(); /** - * Properties of a MessageOptions message. - * @interface IMessageOptions - * @property {boolean} [mapEntry=false] Whether this message is a map entry + * @member {Number} target_id */ + +UpdateGlobalSignAtlasTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateGlobalSignAtlasTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 7530: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Properties of an ExtensionRange message. - * @interface IDescriptorProtoExtensionRange - * @property {number} [start] Start field id - * @property {number} [end] End field id + * The UpdateGlobalSignTarget model module. + * @module model/UpdateGlobalSignTarget + * @version 3.6.3 */ +var UpdateGlobalSignTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateGlobalSignTarget. + * @alias module:model/UpdateGlobalSignTarget + * @param contactEmail {String} Email of the GlobalSign GCC account contact + * @param contactFirstName {String} First name of the GlobalSign GCC account contact + * @param contactLastName {String} Last name of the GlobalSign GCC account contact + * @param contactPhone {String} Telephone of the GlobalSign GCC account contact + * @param name {String} Target name + * @param password {String} Password of the GlobalSign GCC account + * @param profileId {String} Profile ID of the GlobalSign GCC account + * @param username {String} Username of the GlobalSign GCC account + */ + function UpdateGlobalSignTarget(contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username) { + _classCallCheck(this, UpdateGlobalSignTarget); + + UpdateGlobalSignTarget.initialize(this, contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateGlobalSignTarget, null, [{ + key: "initialize", + value: function initialize(obj, contactEmail, contactFirstName, contactLastName, contactPhone, name, password, profileId, username) { + obj['contact-email'] = contactEmail; + obj['contact-first-name'] = contactFirstName; + obj['contact-last-name'] = contactLastName; + obj['contact-phone'] = contactPhone; + obj['name'] = name; + obj['password'] = password; + obj['profile-id'] = profileId; + obj['username'] = username; + } + /** + * Constructs a UpdateGlobalSignTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGlobalSignTarget} obj Optional instance to populate. + * @return {module:model/UpdateGlobalSignTarget} The populated UpdateGlobalSignTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGlobalSignTarget(); + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('contact-email')) { + obj['contact-email'] = _ApiClient["default"].convertToType(data['contact-email'], 'String'); + } + + if (data.hasOwnProperty('contact-first-name')) { + obj['contact-first-name'] = _ApiClient["default"].convertToType(data['contact-first-name'], 'String'); + } + + if (data.hasOwnProperty('contact-last-name')) { + obj['contact-last-name'] = _ApiClient["default"].convertToType(data['contact-last-name'], 'String'); + } + + if (data.hasOwnProperty('contact-phone')) { + obj['contact-phone'] = _ApiClient["default"].convertToType(data['contact-phone'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('profile-id')) { + obj['profile-id'] = _ApiClient["default"].convertToType(data['profile-id'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + } + + return obj; + } + }]); + return UpdateGlobalSignTarget; +}(); /** - * Properties of a ReservedRange message. - * @interface IDescriptorProtoReservedRange - * @property {number} [start] Start field id - * @property {number} [end] End field id + * Deprecated - use description + * @member {String} comment */ -var unnamedMessageIndex = 0; +UpdateGlobalSignTarget.prototype['comment'] = undefined; /** - * Creates a type from a descriptor. - * - * Warning: this is not safe to use with editions protos, since it discards relevant file context. - * - * @param {IDescriptorProto|Reader|Uint8Array} descriptor Descriptor - * @param {string} [edition="proto2"] The syntax or edition to use - * @param {boolean} [nested=false] Whether or not this is a nested object - * @returns {Type} Type instance + * Email of the GlobalSign GCC account contact + * @member {String} contact-email */ -Type.fromDescriptor = function fromDescriptor(descriptor, edition, nested) { - // Decode the descriptor message if specified as a buffer: - if (typeof descriptor.length === "number") - descriptor = exports.DescriptorProto.decode(descriptor); - // Create the message type - var type = new Type(descriptor.name.length ? descriptor.name : "Type" + unnamedMessageIndex++, fromDescriptorOptions(descriptor.options, exports.MessageOptions)), - i; +UpdateGlobalSignTarget.prototype['contact-email'] = undefined; +/** + * First name of the GlobalSign GCC account contact + * @member {String} contact-first-name + */ - if (!nested) - type._edition = edition; +UpdateGlobalSignTarget.prototype['contact-first-name'] = undefined; +/** + * Last name of the GlobalSign GCC account contact + * @member {String} contact-last-name + */ - /* Oneofs */ if (descriptor.oneofDecl) - for (i = 0; i < descriptor.oneofDecl.length; ++i) - type.add(OneOf.fromDescriptor(descriptor.oneofDecl[i])); - /* Fields */ if (descriptor.field) - for (i = 0; i < descriptor.field.length; ++i) { - var field = Field.fromDescriptor(descriptor.field[i], edition, true); - type.add(field); - if (descriptor.field[i].hasOwnProperty("oneofIndex")) // eslint-disable-line no-prototype-builtins - type.oneofsArray[descriptor.field[i].oneofIndex].add(field); - } - /* Extension fields */ if (descriptor.extension) - for (i = 0; i < descriptor.extension.length; ++i) - type.add(Field.fromDescriptor(descriptor.extension[i], edition, true)); - /* Nested types */ if (descriptor.nestedType) - for (i = 0; i < descriptor.nestedType.length; ++i) { - type.add(Type.fromDescriptor(descriptor.nestedType[i], edition, true)); - if (descriptor.nestedType[i].options && descriptor.nestedType[i].options.mapEntry) - type.setOption("map_entry", true); - } - /* Nested enums */ if (descriptor.enumType) - for (i = 0; i < descriptor.enumType.length; ++i) - type.add(Enum.fromDescriptor(descriptor.enumType[i], edition, true)); - /* Extension ranges */ if (descriptor.extensionRange && descriptor.extensionRange.length) { - type.extensions = []; - for (i = 0; i < descriptor.extensionRange.length; ++i) - type.extensions.push([ descriptor.extensionRange[i].start, descriptor.extensionRange[i].end ]); - } - /* Reserved... */ if (descriptor.reservedRange && descriptor.reservedRange.length || descriptor.reservedName && descriptor.reservedName.length) { - type.reserved = []; - /* Ranges */ if (descriptor.reservedRange) - for (i = 0; i < descriptor.reservedRange.length; ++i) - type.reserved.push([ descriptor.reservedRange[i].start, descriptor.reservedRange[i].end ]); - /* Names */ if (descriptor.reservedName) - for (i = 0; i < descriptor.reservedName.length; ++i) - type.reserved.push(descriptor.reservedName[i]); - } +UpdateGlobalSignTarget.prototype['contact-last-name'] = undefined; +/** + * Telephone of the GlobalSign GCC account contact + * @member {String} contact-phone + */ - return type; -}; +UpdateGlobalSignTarget.prototype['contact-phone'] = undefined; +/** + * Description of the object + * @member {String} description + */ +UpdateGlobalSignTarget.prototype['description'] = undefined; /** - * Converts a type to a descriptor. - * @returns {Message} Descriptor - * @param {string} [edition="proto2"] The syntax or edition to use + * Set output format to JSON + * @member {Boolean} json + * @default false */ -Type.prototype.toDescriptor = function toDescriptor(edition) { - var descriptor = exports.DescriptorProto.create({ name: this.name }), - i; - /* Fields */ for (i = 0; i < this.fieldsArray.length; ++i) { - var fieldDescriptor; - descriptor.field.push(fieldDescriptor = this._fieldsArray[i].toDescriptor(edition)); - if (this._fieldsArray[i] instanceof MapField) { // map fields are repeated FieldNameEntry - var keyType = toDescriptorType(this._fieldsArray[i].keyType, this._fieldsArray[i].resolvedKeyType, false), - valueType = toDescriptorType(this._fieldsArray[i].type, this._fieldsArray[i].resolvedType, false), - valueTypeName = valueType === /* type */ 11 || valueType === /* enum */ 14 - ? this._fieldsArray[i].resolvedType && shortname(this.parent, this._fieldsArray[i].resolvedType) || this._fieldsArray[i].type - : undefined; - descriptor.nestedType.push(exports.DescriptorProto.create({ - name: fieldDescriptor.typeName, - field: [ - exports.FieldDescriptorProto.create({ name: "key", number: 1, label: 1, type: keyType }), // can't reference a type or enum - exports.FieldDescriptorProto.create({ name: "value", number: 2, label: 1, type: valueType, typeName: valueTypeName }) - ], - options: exports.MessageOptions.create({ mapEntry: true }) - })); - } - } - /* Oneofs */ for (i = 0; i < this.oneofsArray.length; ++i) - descriptor.oneofDecl.push(this._oneofsArray[i].toDescriptor()); - /* Nested... */ for (i = 0; i < this.nestedArray.length; ++i) { - /* Extension fields */ if (this._nestedArray[i] instanceof Field) - descriptor.field.push(this._nestedArray[i].toDescriptor(edition)); - /* Types */ else if (this._nestedArray[i] instanceof Type) - descriptor.nestedType.push(this._nestedArray[i].toDescriptor(edition)); - /* Enums */ else if (this._nestedArray[i] instanceof Enum) - descriptor.enumType.push(this._nestedArray[i].toDescriptor()); - // plain nested namespaces become packages instead in Root#toDescriptor - } - /* Extension ranges */ if (this.extensions) - for (i = 0; i < this.extensions.length; ++i) - descriptor.extensionRange.push(exports.DescriptorProto.ExtensionRange.create({ start: this.extensions[i][0], end: this.extensions[i][1] })); - /* Reserved... */ if (this.reserved) - for (i = 0; i < this.reserved.length; ++i) - /* Names */ if (typeof this.reserved[i] === "string") - descriptor.reservedName.push(this.reserved[i]); - /* Ranges */ else - descriptor.reservedRange.push(exports.DescriptorProto.ReservedRange.create({ start: this.reserved[i][0], end: this.reserved[i][1] })); +UpdateGlobalSignTarget.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ - descriptor.options = toDescriptorOptions(this.options, exports.MessageOptions); +UpdateGlobalSignTarget.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - return descriptor; -}; +UpdateGlobalSignTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -// --- Field --- +UpdateGlobalSignTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ +UpdateGlobalSignTarget.prototype['name'] = undefined; /** - * Properties of a FieldDescriptorProto message. - * @interface IFieldDescriptorProto - * @property {string} [name] Field name - * @property {number} [number] Field id - * @property {IFieldDescriptorProtoLabel} [label] Field rule - * @property {IFieldDescriptorProtoType} [type] Field basic type - * @property {string} [typeName] Field type name - * @property {string} [extendee] Extended type name - * @property {string} [defaultValue] Literal default value - * @property {number} [oneofIndex] Oneof index if part of a oneof - * @property {*} [jsonName] Not supported - * @property {IFieldOptions} [options] Field options + * New target name + * @member {String} new-name */ +UpdateGlobalSignTarget.prototype['new-name'] = undefined; /** - * Values of the FieldDescriptorProto.Label enum. - * @typedef IFieldDescriptorProtoLabel - * @type {number} - * @property {number} LABEL_OPTIONAL=1 - * @property {number} LABEL_REQUIRED=2 - * @property {number} LABEL_REPEATED=3 + * Password of the GlobalSign GCC account + * @member {String} password */ +UpdateGlobalSignTarget.prototype['password'] = undefined; /** - * Values of the FieldDescriptorProto.Type enum. - * @typedef IFieldDescriptorProtoType - * @type {number} - * @property {number} TYPE_DOUBLE=1 - * @property {number} TYPE_FLOAT=2 - * @property {number} TYPE_INT64=3 - * @property {number} TYPE_UINT64=4 - * @property {number} TYPE_INT32=5 - * @property {number} TYPE_FIXED64=6 - * @property {number} TYPE_FIXED32=7 - * @property {number} TYPE_BOOL=8 - * @property {number} TYPE_STRING=9 - * @property {number} TYPE_GROUP=10 - * @property {number} TYPE_MESSAGE=11 - * @property {number} TYPE_BYTES=12 - * @property {number} TYPE_UINT32=13 - * @property {number} TYPE_ENUM=14 - * @property {number} TYPE_SFIXED32=15 - * @property {number} TYPE_SFIXED64=16 - * @property {number} TYPE_SINT32=17 - * @property {number} TYPE_SINT64=18 + * Profile ID of the GlobalSign GCC account + * @member {String} profile-id */ +UpdateGlobalSignTarget.prototype['profile-id'] = undefined; /** - * Properties of a FieldOptions message. - * @interface IFieldOptions - * @property {boolean} [packed] Whether packed or not (defaults to `false` for proto2 and `true` for proto3) - * @property {IFieldOptionsJSType} [jstype] JavaScript value type (not used by protobuf.js) + * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. + * @member {String} timeout + * @default '5m' */ +UpdateGlobalSignTarget.prototype['timeout'] = '5m'; /** - * Values of the FieldOptions.JSType enum. - * @typedef IFieldOptionsJSType - * @type {number} - * @property {number} JS_NORMAL=0 - * @property {number} JS_STRING=1 - * @property {number} JS_NUMBER=2 + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -// copied here from parse.js -var numberRe = /^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/; +UpdateGlobalSignTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +UpdateGlobalSignTarget.prototype['uid-token'] = undefined; /** - * Creates a field from a descriptor. - * - * Warning: this is not safe to use with editions protos, since it discards relevant file context. - * - * @param {IFieldDescriptorProto|Reader|Uint8Array} descriptor Descriptor - * @param {string} [edition="proto2"] The syntax or edition to use - * @param {boolean} [nested=false] Whether or not this is a top-level object - * @returns {Field} Field instance + * Deprecated + * @member {Boolean} update-version */ -Field.fromDescriptor = function fromDescriptor(descriptor, edition, nested) { - // Decode the descriptor message if specified as a buffer: - if (typeof descriptor.length === "number") - descriptor = exports.DescriptorProto.decode(descriptor); +UpdateGlobalSignTarget.prototype['update-version'] = undefined; +/** + * Username of the GlobalSign GCC account + * @member {String} username + */ - if (typeof descriptor.number !== "number") - throw Error("missing field id"); +UpdateGlobalSignTarget.prototype['username'] = undefined; +var _default = UpdateGlobalSignTarget; +exports["default"] = _default; - // Rewire field type - var fieldType; - if (descriptor.typeName && descriptor.typeName.length) - fieldType = descriptor.typeName; - else - fieldType = fromDescriptorType(descriptor.type); +/***/ }), - // Rewire field rule - var fieldRule; - switch (descriptor.label) { - // 0 is reserved for errors - case 1: fieldRule = undefined; break; - case 2: fieldRule = "required"; break; - case 3: fieldRule = "repeated"; break; - default: throw Error("illegal label: " + descriptor.label); - } +/***/ 40415: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - var extendee = descriptor.extendee; - if (descriptor.extendee !== undefined) { - extendee = extendee.length ? extendee : undefined; - } - var field = new Field( - descriptor.name.length ? descriptor.name : "field" + descriptor.number, - descriptor.number, - fieldType, - fieldRule, - extendee - ); +"use strict"; - if (!nested) - field._edition = edition; - field.options = fromDescriptorOptions(descriptor.options, exports.FieldOptions); - if (descriptor.proto3_optional) - field.options.proto3_optional = true; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (descriptor.defaultValue && descriptor.defaultValue.length) { - var defaultValue = descriptor.defaultValue; - switch (defaultValue) { - case "true": case "TRUE": - defaultValue = true; - break; - case "false": case "FALSE": - defaultValue = false; - break; - default: - var match = numberRe.exec(defaultValue); - if (match) - defaultValue = parseInt(defaultValue); // eslint-disable-line radix - break; - } - field.setOption("default", defaultValue); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (packableDescriptorType(descriptor.type)) { - if (edition === "proto3") { // defaults to packed=true (internal preset is packed=true) - if (descriptor.options && !descriptor.options.packed) - field.setOption("packed", false); - } else if ((!edition || edition === "proto2") && descriptor.options && descriptor.options.packed) // defaults to packed=false - field.setOption("packed", true); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - return field; -}; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Converts a field to a descriptor. - * @returns {Message} Descriptor - * @param {string} [edition="proto2"] The syntax or edition to use + * The UpdateGlobalSignTargetOutput model module. + * @module model/UpdateGlobalSignTargetOutput + * @version 3.6.3 */ -Field.prototype.toDescriptor = function toDescriptor(edition) { - var descriptor = exports.FieldDescriptorProto.create({ name: this.name, number: this.id }); +var UpdateGlobalSignTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateGlobalSignTargetOutput. + * @alias module:model/UpdateGlobalSignTargetOutput + */ + function UpdateGlobalSignTargetOutput() { + _classCallCheck(this, UpdateGlobalSignTargetOutput); - if (this.map) { + UpdateGlobalSignTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - descriptor.type = 11; // message - descriptor.typeName = $protobuf.util.ucFirst(this.name); // fieldName -> FieldNameEntry (built in Type#toDescriptor) - descriptor.label = 3; // repeated - } else { + _createClass(UpdateGlobalSignTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateGlobalSignTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGlobalSignTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateGlobalSignTargetOutput} The populated UpdateGlobalSignTargetOutput instance. + */ - // Rewire field type - switch (descriptor.type = toDescriptorType(this.type, this.resolve().resolvedType, this.delimited)) { - case 10: // group - case 11: // type - case 14: // enum - descriptor.typeName = this.resolvedType ? shortname(this.parent, this.resolvedType) : this.type; - break; - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGlobalSignTargetOutput(); - // Rewire field rule - if (this.rule === "repeated") { - descriptor.label = 3; - } else if (this.required && edition === "proto2") { - descriptor.label = 2; - } else { - descriptor.label = 1; + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); } + } + + return obj; } + }]); - // Handle extension field - descriptor.extendee = this.extensionField ? this.extensionField.parent.fullName : this.extend; + return UpdateGlobalSignTargetOutput; +}(); +/** + * @member {Number} target_id + */ - // Handle part of oneof - if (this.partOf) - if ((descriptor.oneofIndex = this.parent.oneofsArray.indexOf(this.partOf)) < 0) - throw Error("missing oneof"); - if (this.options) { - descriptor.options = toDescriptorOptions(this.options, exports.FieldOptions); - if (this.options["default"] != null) - descriptor.defaultValue = String(this.options["default"]); - if (this.options.proto3_optional) - descriptor.proto3_optional = true; - } +UpdateGlobalSignTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateGlobalSignTargetOutput; +exports["default"] = _default; - if (edition === "proto3") { // defaults to packed=true - if (!this.packed) - (descriptor.options || (descriptor.options = exports.FieldOptions.create())).packed = false; - } else if ((!edition || edition === "proto2") && this.packed) // defaults to packed=false - (descriptor.options || (descriptor.options = exports.FieldOptions.create())).packed = true; +/***/ }), - return descriptor; -}; +/***/ 84692: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -// --- Enum --- +"use strict"; -/** - * Properties of an EnumDescriptorProto message. - * @interface IEnumDescriptorProto - * @property {string} [name] Enum name - * @property {IEnumValueDescriptorProto[]} [value] Enum values - * @property {IEnumOptions} [options] Enum options - */ -/** - * Properties of an EnumValueDescriptorProto message. - * @interface IEnumValueDescriptorProto - * @property {string} [name] Name - * @property {number} [number] Value - * @property {*} [options] Not supported - */ +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/** - * Properties of an EnumOptions message. - * @interface IEnumOptions - * @property {boolean} [allowAlias] Whether aliases are allowed - * @property {boolean} [deprecated] - */ +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -var unnamedEnumIndex = 0; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Creates an enum from a descriptor. - * - * Warning: this is not safe to use with editions protos, since it discards relevant file context. - * - * @param {IEnumDescriptorProto|Reader|Uint8Array} descriptor Descriptor - * @param {string} [edition="proto2"] The syntax or edition to use - * @param {boolean} [nested=false] Whether or not this is a top-level object - * @returns {Enum} Enum instance + * The UpdateGodaddyTarget model module. + * @module model/UpdateGodaddyTarget + * @version 3.6.3 */ -Enum.fromDescriptor = function fromDescriptor(descriptor, edition, nested) { +var UpdateGodaddyTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateGodaddyTarget. + * @alias module:model/UpdateGodaddyTarget + * @param apiKey {String} Key of the api credentials to the Godaddy account + * @param imapFqdn {String} ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS + * @param imapPassword {String} ImapPassword to access the IMAP service + * @param imapUsername {String} ImapUsername to access the IMAP service + * @param name {String} Target name + * @param secret {String} Secret of the api credentials to the Godaddy account + */ + function UpdateGodaddyTarget(apiKey, imapFqdn, imapPassword, imapUsername, name, secret) { + _classCallCheck(this, UpdateGodaddyTarget); - // Decode the descriptor message if specified as a buffer: - if (typeof descriptor.length === "number") - descriptor = exports.EnumDescriptorProto.decode(descriptor); + UpdateGodaddyTarget.initialize(this, apiKey, imapFqdn, imapPassword, imapUsername, name, secret); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // Construct values object - var values = {}; - if (descriptor.value) - for (var i = 0; i < descriptor.value.length; ++i) { - var name = descriptor.value[i].name, - value = descriptor.value[i].number || 0; - values[name && name.length ? name : "NAME" + value] = value; + + _createClass(UpdateGodaddyTarget, null, [{ + key: "initialize", + value: function initialize(obj, apiKey, imapFqdn, imapPassword, imapUsername, name, secret) { + obj['api-key'] = apiKey; + obj['imap-fqdn'] = imapFqdn; + obj['imap-password'] = imapPassword; + obj['imap-username'] = imapUsername; + obj['name'] = name; + obj['secret'] = secret; + } + /** + * Constructs a UpdateGodaddyTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGodaddyTarget} obj Optional instance to populate. + * @return {module:model/UpdateGodaddyTarget} The populated UpdateGodaddyTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGodaddyTarget(); + + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); } - var enm = new Enum( - descriptor.name && descriptor.name.length ? descriptor.name : "Enum" + unnamedEnumIndex++, - values, - fromDescriptorOptions(descriptor.options, exports.EnumOptions) - ); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } - if (!nested) - enm._edition = edition; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - return enm; -}; + if (data.hasOwnProperty('imap-fqdn')) { + obj['imap-fqdn'] = _ApiClient["default"].convertToType(data['imap-fqdn'], 'String'); + } -/** - * Converts an enum to a descriptor. - * @returns {Message} Descriptor - */ -Enum.prototype.toDescriptor = function toDescriptor() { + if (data.hasOwnProperty('imap-password')) { + obj['imap-password'] = _ApiClient["default"].convertToType(data['imap-password'], 'String'); + } - // Values - var values = []; - for (var i = 0, ks = Object.keys(this.values); i < ks.length; ++i) - values.push(exports.EnumValueDescriptorProto.create({ name: ks[i], number: this.values[ks[i]] })); + if (data.hasOwnProperty('imap-port')) { + obj['imap-port'] = _ApiClient["default"].convertToType(data['imap-port'], 'String'); + } - return exports.EnumDescriptorProto.create({ - name: this.name, - value: values, - options: toDescriptorOptions(this.options, exports.EnumOptions) - }); -}; + if (data.hasOwnProperty('imap-username')) { + obj['imap-username'] = _ApiClient["default"].convertToType(data['imap-username'], 'String'); + } -// --- OneOf --- + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('secret')) { + obj['secret'] = _ApiClient["default"].convertToType(data['secret'], 'String'); + } + + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + } + + return obj; + } + }]); + return UpdateGodaddyTarget; +}(); /** - * Properties of a OneofDescriptorProto message. - * @interface IOneofDescriptorProto - * @property {string} [name] Oneof name - * @property {*} [options] Not supported + * Key of the api credentials to the Godaddy account + * @member {String} api-key */ -var unnamedOneofIndex = 0; +UpdateGodaddyTarget.prototype['api-key'] = undefined; /** - * Creates a oneof from a descriptor. - * - * Warning: this is not safe to use with editions protos, since it discards relevant file context. - * - * @param {IOneofDescriptorProto|Reader|Uint8Array} descriptor Descriptor - * @returns {OneOf} OneOf instance + * Deprecated - use description + * @member {String} comment */ -OneOf.fromDescriptor = function fromDescriptor(descriptor) { - - // Decode the descriptor message if specified as a buffer: - if (typeof descriptor.length === "number") - descriptor = exports.OneofDescriptorProto.decode(descriptor); - return new OneOf( - // unnamedOneOfIndex is global, not per type, because we have no ref to a type here - descriptor.name && descriptor.name.length ? descriptor.name : "oneof" + unnamedOneofIndex++ - // fromDescriptorOptions(descriptor.options, exports.OneofOptions) - only uninterpreted_option - ); -}; +UpdateGodaddyTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ +UpdateGodaddyTarget.prototype['description'] = undefined; /** - * Converts a oneof to a descriptor. - * @returns {Message} Descriptor + * ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS + * @member {String} imap-fqdn */ -OneOf.prototype.toDescriptor = function toDescriptor() { - return exports.OneofDescriptorProto.create({ - name: this.name - // options: toDescriptorOptions(this.options, exports.OneofOptions) - only uninterpreted_option - }); -}; -// --- Service --- +UpdateGodaddyTarget.prototype['imap-fqdn'] = undefined; +/** + * ImapPassword to access the IMAP service + * @member {String} imap-password + */ +UpdateGodaddyTarget.prototype['imap-password'] = undefined; /** - * Properties of a ServiceDescriptorProto message. - * @interface IServiceDescriptorProto - * @property {string} [name] Service name - * @property {IMethodDescriptorProto[]} [method] Methods - * @property {IServiceOptions} [options] Options + * ImapPort of the IMAP service + * @member {String} imap-port + * @default '993' */ +UpdateGodaddyTarget.prototype['imap-port'] = '993'; /** - * Properties of a ServiceOptions message. - * @interface IServiceOptions - * @property {boolean} [deprecated] + * ImapUsername to access the IMAP service + * @member {String} imap-username */ -var unnamedServiceIndex = 0; +UpdateGodaddyTarget.prototype['imap-username'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ +UpdateGodaddyTarget.prototype['json'] = false; /** - * Creates a service from a descriptor. - * - * Warning: this is not safe to use with editions protos, since it discards relevant file context. - * - * @param {IServiceDescriptorProto|Reader|Uint8Array} descriptor Descriptor - * @param {string} [edition="proto2"] The syntax or edition to use - * @param {boolean} [nested=false] Whether or not this is a top-level object - * @returns {Service} Service instance + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -Service.fromDescriptor = function fromDescriptor(descriptor, edition, nested) { - // Decode the descriptor message if specified as a buffer: - if (typeof descriptor.length === "number") - descriptor = exports.ServiceDescriptorProto.decode(descriptor); +UpdateGodaddyTarget.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - var service = new Service(descriptor.name && descriptor.name.length ? descriptor.name : "Service" + unnamedServiceIndex++, fromDescriptorOptions(descriptor.options, exports.ServiceOptions)); - if (!nested) - service._edition = edition; - if (descriptor.method) - for (var i = 0; i < descriptor.method.length; ++i) - service.add(Method.fromDescriptor(descriptor.method[i])); +UpdateGodaddyTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ - return service; -}; +UpdateGodaddyTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ +UpdateGodaddyTarget.prototype['name'] = undefined; /** - * Converts a service to a descriptor. - * @returns {Message} Descriptor + * New target name + * @member {String} new-name */ -Service.prototype.toDescriptor = function toDescriptor() { - // Methods - var methods = []; - for (var i = 0; i < this.methodsArray.length; ++i) - methods.push(this._methodsArray[i].toDescriptor()); +UpdateGodaddyTarget.prototype['new-name'] = undefined; +/** + * Secret of the api credentials to the Godaddy account + * @member {String} secret + */ - return exports.ServiceDescriptorProto.create({ - name: this.name, - method: methods, - options: toDescriptorOptions(this.options, exports.ServiceOptions) - }); -}; +UpdateGodaddyTarget.prototype['secret'] = undefined; +/** + * Timeout waiting for certificate validation in Duration format (1h - 1 Hour, 20m - 20 Minutes, 33m3s - 33 Minutes and 3 Seconds), maximum 1h. + * @member {String} timeout + * @default '5m' + */ -// --- Method --- +UpdateGodaddyTarget.prototype['timeout'] = '5m'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ +UpdateGodaddyTarget.prototype['token'] = undefined; /** - * Properties of a MethodDescriptorProto message. - * @interface IMethodDescriptorProto - * @property {string} [name] Method name - * @property {string} [inputType] Request type name - * @property {string} [outputType] Response type name - * @property {IMethodOptions} [options] Not supported - * @property {boolean} [clientStreaming=false] Whether requests are streamed - * @property {boolean} [serverStreaming=false] Whether responses are streamed + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ +UpdateGodaddyTarget.prototype['uid-token'] = undefined; /** - * Properties of a MethodOptions message. - * - * Warning: this is not safe to use with editions protos, since it discards relevant file context. - * - * @interface IMethodOptions - * @property {boolean} [deprecated] + * Deprecated + * @member {Boolean} update-version */ -var unnamedMethodIndex = 0; +UpdateGodaddyTarget.prototype['update-version'] = undefined; +var _default = UpdateGodaddyTarget; +exports["default"] = _default; + +/***/ }), + +/***/ 17989: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Creates a method from a descriptor. - * @param {IMethodDescriptorProto|Reader|Uint8Array} descriptor Descriptor - * @returns {Method} Reflected method instance + * The UpdateGodaddyTargetOutput model module. + * @module model/UpdateGodaddyTargetOutput + * @version 3.6.3 */ -Method.fromDescriptor = function fromDescriptor(descriptor) { +var UpdateGodaddyTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateGodaddyTargetOutput. + * @alias module:model/UpdateGodaddyTargetOutput + */ + function UpdateGodaddyTargetOutput() { + _classCallCheck(this, UpdateGodaddyTargetOutput); - // Decode the descriptor message if specified as a buffer: - if (typeof descriptor.length === "number") - descriptor = exports.MethodDescriptorProto.decode(descriptor); + UpdateGodaddyTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - return new Method( - // unnamedMethodIndex is global, not per service, because we have no ref to a service here - descriptor.name && descriptor.name.length ? descriptor.name : "Method" + unnamedMethodIndex++, - "rpc", - descriptor.inputType, - descriptor.outputType, - Boolean(descriptor.clientStreaming), - Boolean(descriptor.serverStreaming), - fromDescriptorOptions(descriptor.options, exports.MethodOptions) - ); -}; + _createClass(UpdateGodaddyTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateGodaddyTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGodaddyTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateGodaddyTargetOutput} The populated UpdateGodaddyTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGodaddyTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } + + return obj; + } + }]); + + return UpdateGodaddyTargetOutput; +}(); /** - * Converts a method to a descriptor. - * @returns {Message} Descriptor + * @member {Number} target_id */ -Method.prototype.toDescriptor = function toDescriptor() { - return exports.MethodDescriptorProto.create({ - name: this.name, - inputType: this.resolvedRequestType ? this.resolvedRequestType.fullName : this.requestType, - outputType: this.resolvedResponseType ? this.resolvedResponseType.fullName : this.responseType, - clientStreaming: this.requestStream, - serverStreaming: this.responseStream, - options: toDescriptorOptions(this.options, exports.MethodOptions) - }); -}; -// --- utility --- -// Converts a descriptor type to a protobuf.js basic type -function fromDescriptorType(type) { - switch (type) { - // 0 is reserved for errors - case 1: return "double"; - case 2: return "float"; - case 3: return "int64"; - case 4: return "uint64"; - case 5: return "int32"; - case 6: return "fixed64"; - case 7: return "fixed32"; - case 8: return "bool"; - case 9: return "string"; - case 12: return "bytes"; - case 13: return "uint32"; - case 15: return "sfixed32"; - case 16: return "sfixed64"; - case 17: return "sint32"; - case 18: return "sint64"; - } - throw Error("illegal type: " + type); -} +UpdateGodaddyTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateGodaddyTargetOutput; +exports["default"] = _default; -// Tests if a descriptor type is packable -function packableDescriptorType(type) { - switch (type) { - case 1: // double - case 2: // float - case 3: // int64 - case 4: // uint64 - case 5: // int32 - case 6: // fixed64 - case 7: // fixed32 - case 8: // bool - case 13: // uint32 - case 14: // enum (!) - case 15: // sfixed32 - case 16: // sfixed64 - case 17: // sint32 - case 18: // sint64 - return true; - } - return false; -} +/***/ }), -// Converts a protobuf.js basic type to a descriptor type -function toDescriptorType(type, resolvedType, delimited) { - switch (type) { - // 0 is reserved for errors - case "double": return 1; - case "float": return 2; - case "int64": return 3; - case "uint64": return 4; - case "int32": return 5; - case "fixed64": return 6; - case "fixed32": return 7; - case "bool": return 8; - case "string": return 9; - case "bytes": return 12; - case "uint32": return 13; - case "sfixed32": return 15; - case "sfixed64": return 16; - case "sint32": return 17; - case "sint64": return 18; - } - if (resolvedType instanceof Enum) - return 14; - if (resolvedType instanceof Type) - return delimited ? 10 : 11; - throw Error("illegal type: " + type); -} +/***/ 59722: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -function fromDescriptorOptionsRecursive(obj, type) { - var val = {}; - for (var i = 0, field, key; i < type.fieldsArray.length; ++i) { - if ((key = (field = type._fieldsArray[i]).name) === "uninterpretedOption") continue; - if (!Object.prototype.hasOwnProperty.call(obj, key)) continue; +"use strict"; - var newKey = underScore(key); - if (field.resolvedType instanceof Type) { - val[newKey] = fromDescriptorOptionsRecursive(obj[key], field.resolvedType); - } else if(field.resolvedType instanceof Enum) { - val[newKey] = field.resolvedType.valuesById[obj[key]]; - } else { - val[newKey] = obj[key]; - } - } - return val; -} -// Converts descriptor options to an options object -function fromDescriptorOptions(options, type) { - if (!options) - return undefined; - return fromDescriptorOptionsRecursive(type.toObject(options), type); -} +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -function toDescriptorOptionsRecursive(obj, type) { - var val = {}; - var keys = Object.keys(obj); - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - var newKey = $protobuf.util.camelCase(key); - if (!Object.prototype.hasOwnProperty.call(type.fields, newKey)) continue; - var field = type.fields[newKey]; - if (field.resolvedType instanceof Type) { - val[newKey] = toDescriptorOptionsRecursive(obj[key], field.resolvedType); - } else { - val[newKey] = obj[key]; - } - if (field.repeated && !Array.isArray(val[newKey])) { - val[newKey] = [val[newKey]]; - } - } - return val; -} +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -// Converts an options object to descriptor options -function toDescriptorOptions(options, type) { - if (!options) - return undefined; - return type.fromObject(toDescriptorOptionsRecursive(options, type)); -} +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -// Calculates the shortest relative path from `from` to `to`. -function shortname(from, to) { - var fromPath = from.fullName.split("."), - toPath = to.fullName.split("."), - i = 0, - j = 0, - k = toPath.length - 1; - if (!(from instanceof Root) && to instanceof Namespace) - while (i < fromPath.length && j < k && fromPath[i] === toPath[j]) { - var other = to.lookup(fromPath[i++], true); - if (other !== null && other !== to) - break; - ++j; - } - else - for (; i < fromPath.length && j < k && fromPath[i] === toPath[j]; ++i, ++j); - return toPath.slice(j).join("."); -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -// copied here from cli/targets/proto.js -function underScore(str) { - return str.substring(0,1) - + str.substring(1) - .replace(/([A-Z])(?=[a-z]|$)/g, function($0, $1) { return "_" + $1.toLowerCase(); }); -} +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function editionFromDescriptor(fileDescriptor) { - if (fileDescriptor.syntax === "editions") { - switch(fileDescriptor.edition) { - case exports.Edition.EDITION_2023: - return "2023"; - default: - throw new Error("Unsupported edition " + fileDescriptor.edition); - } - } - if (fileDescriptor.syntax === "proto3") { - return "proto3"; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The UpdateGroup model module. + * @module model/UpdateGroup + * @version 3.6.3 + */ +var UpdateGroup = /*#__PURE__*/function () { + /** + * Constructs a new UpdateGroup. + * @alias module:model/UpdateGroup + * @param groupAlias {String} A short group alias + * @param name {String} Group name + */ + function UpdateGroup(groupAlias, name) { + _classCallCheck(this, UpdateGroup); + + UpdateGroup.initialize(this, groupAlias, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateGroup, null, [{ + key: "initialize", + value: function initialize(obj, groupAlias, name) { + obj['group-alias'] = groupAlias; + obj['name'] = name; } - return "proto2"; -} + /** + * Constructs a UpdateGroup from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGroup} obj Optional instance to populate. + * @return {module:model/UpdateGroup} The populated UpdateGroup instance. + */ -function editionToDescriptor(edition, fileDescriptor) { - if (!edition) return; - if (edition === "proto2" || edition === "proto3") { - fileDescriptor.syntax = edition; - } else { - fileDescriptor.syntax = "editions"; - switch(edition) { - case "2023": - fileDescriptor.edition = exports.Edition.EDITION_2023; - break; - default: - throw new Error("Unsupported edition " + edition); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGroup(); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - } -} -// --- exports --- + if (data.hasOwnProperty('group-alias')) { + obj['group-alias'] = _ApiClient["default"].convertToType(data['group-alias'], 'String'); + } -/** - * Reflected file descriptor set. - * @name FileDescriptorSet - * @type {Type} - * @const - * @tstype $protobuf.Type - */ + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/** - * Reflected file descriptor proto. - * @name FileDescriptorProto - * @type {Type} - * @const - * @tstype $protobuf.Type - */ + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -/** - * Reflected descriptor proto. - * @name DescriptorProto - * @type {Type} - * @property {Type} ExtensionRange - * @property {Type} ReservedRange - * @const - * @tstype $protobuf.Type & { - * ExtensionRange: $protobuf.Type, - * ReservedRange: $protobuf.Type - * } - */ + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -/** - * Reflected field descriptor proto. - * @name FieldDescriptorProto - * @type {Type} - * @property {Enum} Label - * @property {Enum} Type - * @const - * @tstype $protobuf.Type & { - * Label: $protobuf.Enum, - * Type: $protobuf.Enum - * } - */ + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -/** - * Reflected oneof descriptor proto. - * @name OneofDescriptorProto - * @type {Type} - * @const - * @tstype $protobuf.Type - */ + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -/** - * Reflected enum descriptor proto. - * @name EnumDescriptorProto - * @type {Type} - * @const - * @tstype $protobuf.Type - */ + if (data.hasOwnProperty('user-assignment')) { + obj['user-assignment'] = _ApiClient["default"].convertToType(data['user-assignment'], 'String'); + } + } -/** - * Reflected service descriptor proto. - * @name ServiceDescriptorProto - * @type {Type} - * @const - * @tstype $protobuf.Type - */ + return obj; + } + }]); + return UpdateGroup; +}(); /** - * Reflected enum value descriptor proto. - * @name EnumValueDescriptorProto - * @type {Type} - * @const - * @tstype $protobuf.Type + * Description of the object + * @member {String} description */ -/** - * Reflected method descriptor proto. - * @name MethodDescriptorProto - * @type {Type} - * @const - * @tstype $protobuf.Type - */ +UpdateGroup.prototype['description'] = undefined; /** - * Reflected file options. - * @name FileOptions - * @type {Type} - * @property {Enum} OptimizeMode - * @const - * @tstype $protobuf.Type & { - * OptimizeMode: $protobuf.Enum - * } + * A short group alias + * @member {String} group-alias */ +UpdateGroup.prototype['group-alias'] = undefined; /** - * Reflected message options. - * @name MessageOptions - * @type {Type} - * @const - * @tstype $protobuf.Type + * Set output format to JSON + * @member {Boolean} json + * @default false */ +UpdateGroup.prototype['json'] = false; /** - * Reflected field options. - * @name FieldOptions - * @type {Type} - * @property {Enum} CType - * @property {Enum} JSType - * @const - * @tstype $protobuf.Type & { - * CType: $protobuf.Enum, - * JSType: $protobuf.Enum - * } + * Group name + * @member {String} name */ +UpdateGroup.prototype['name'] = undefined; /** - * Reflected oneof options. - * @name OneofOptions - * @type {Type} - * @const - * @tstype $protobuf.Type + * Group new name + * @member {String} new-name */ +UpdateGroup.prototype['new-name'] = undefined; /** - * Reflected enum options. - * @name EnumOptions - * @type {Type} - * @const - * @tstype $protobuf.Type + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ +UpdateGroup.prototype['token'] = undefined; /** - * Reflected enum value options. - * @name EnumValueOptions - * @type {Type} - * @const - * @tstype $protobuf.Type + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ +UpdateGroup.prototype['uid-token'] = undefined; /** - * Reflected service options. - * @name ServiceOptions - * @type {Type} - * @const - * @tstype $protobuf.Type + * A json string defining the access permission assignment for this client + * @member {String} user-assignment */ +UpdateGroup.prototype['user-assignment'] = undefined; +var _default = UpdateGroup; +exports["default"] = _default; + +/***/ }), + +/***/ 63647: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + /** - * Reflected method options. - * @name MethodOptions - * @type {Type} - * @const - * @tstype $protobuf.Type + * The UpdateGroupOutput model module. + * @module model/UpdateGroupOutput + * @version 3.6.3 */ +var UpdateGroupOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateGroupOutput. + * @alias module:model/UpdateGroupOutput + */ + function UpdateGroupOutput() { + _classCallCheck(this, UpdateGroupOutput); + + UpdateGroupOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateGroupOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateGroupOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateGroupOutput} obj Optional instance to populate. + * @return {module:model/UpdateGroupOutput} The populated UpdateGroupOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateGroupOutput(); + + if (data.hasOwnProperty('group_name')) { + obj['group_name'] = _ApiClient["default"].convertToType(data['group_name'], 'String'); + } + + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + return UpdateGroupOutput; +}(); /** - * Reflected uninterpretet option. - * @name UninterpretedOption - * @type {Type} - * @property {Type} NamePart - * @const - * @tstype $protobuf.Type & { - * NamePart: $protobuf.Type - * } + * @member {String} group_name */ + +UpdateGroupOutput.prototype['group_name'] = undefined; /** - * Reflected source code info. - * @name SourceCodeInfo - * @type {Type} - * @property {Type} Location - * @const - * @tstype $protobuf.Type & { - * Location: $protobuf.Type - * } + * @member {String} id */ +UpdateGroupOutput.prototype['id'] = undefined; /** - * Reflected generated code info. - * @name GeneratedCodeInfo - * @type {Type} - * @property {Type} Annotation - * @const - * @tstype $protobuf.Type & { - * Annotation: $protobuf.Type - * } + * @member {String} name */ +UpdateGroupOutput.prototype['name'] = undefined; +var _default = UpdateGroupOutput; +exports["default"] = _default; /***/ }), -/***/ 23928: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 49094: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -// full library entry point. -module.exports = __nccwpck_require__(58513); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/***/ }), +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ 37823: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -"use strict"; -// minimal library entry point. +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -module.exports = __nccwpck_require__(88960); +/** + * The UpdateItem model module. + * @module model/UpdateItem + * @version 3.6.3 + */ +var UpdateItem = /*#__PURE__*/function () { + /** + * Constructs a new UpdateItem. + * @alias module:model/UpdateItem + * @param name {String} Current item name + */ + function UpdateItem(name) { + _classCallCheck(this, UpdateItem); + UpdateItem.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), -/***/ 60872: -/***/ ((module) => { + _createClass(UpdateItem, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a UpdateItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateItem} obj Optional instance to populate. + * @return {module:model/UpdateItem} The populated UpdateItem instance. + */ -"use strict"; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateItem(); -module.exports = common; + if (data.hasOwnProperty('ProviderType')) { + obj['ProviderType'] = _ApiClient["default"].convertToType(data['ProviderType'], 'String'); + } -var commonRe = /\/|\./; + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + } -/** - * Provides common type definitions. - * Can also be used to provide additional google types or your own custom types. - * @param {string} name Short name as in `google/protobuf/[name].proto` or full file name - * @param {Object.} json JSON definition within `google.protobuf` if a short name, otherwise the file's root definition - * @returns {undefined} - * @property {INamespace} google/protobuf/any.proto Any - * @property {INamespace} google/protobuf/duration.proto Duration - * @property {INamespace} google/protobuf/empty.proto Empty - * @property {INamespace} google/protobuf/field_mask.proto FieldMask - * @property {INamespace} google/protobuf/struct.proto Struct, Value, NullValue and ListValue - * @property {INamespace} google/protobuf/timestamp.proto Timestamp - * @property {INamespace} google/protobuf/wrappers.proto Wrappers - * @example - * // manually provides descriptor.proto (assumes google/protobuf/ namespace and .proto extension) - * protobuf.common("descriptor", descriptorJson); - * - * // manually provides a custom definition (uses my.foo namespace) - * protobuf.common("my/foo/bar.proto", myFooBarJson); - */ -function common(name, json) { - if (!commonRe.test(name)) { - name = "google/protobuf/" + name + ".proto"; - json = { nested: { google: { nested: { protobuf: { nested: json } } } } }; - } - common[name] = json; -} + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } -// Not provided because of limited use (feel free to discuss or to provide yourself): -// -// google/protobuf/descriptor.proto -// google/protobuf/source_context.proto -// google/protobuf/type.proto -// -// Stripped and pre-parsed versions of these non-bundled files are instead available as part of -// the repository or package within the google/protobuf directory. + if (data.hasOwnProperty('cert-file-data')) { + obj['cert-file-data'] = _ApiClient["default"].convertToType(data['cert-file-data'], 'String'); + } -common("any", { + if (data.hasOwnProperty('change-event')) { + obj['change-event'] = _ApiClient["default"].convertToType(data['change-event'], 'String'); + } - /** - * Properties of a google.protobuf.Any message. - * @interface IAny - * @type {Object} - * @property {string} [typeUrl] - * @property {Uint8Array} [bytes] - * @memberof common - */ - Any: { - fields: { - type_url: { - type: "string", - id: 1 - }, - value: { - type: "bytes", - id: 2 - } + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); } - } -}); -var timeType; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -common("duration", { + if (data.hasOwnProperty('host-provider')) { + obj['host-provider'] = _ApiClient["default"].convertToType(data['host-provider'], 'String'); + } - /** - * Properties of a google.protobuf.Duration message. - * @interface IDuration - * @type {Object} - * @property {number|Long} [seconds] - * @property {number} [nanos] - * @memberof common - */ - Duration: timeType = { - fields: { - seconds: { - type: "int64", - id: 1 - }, - nanos: { - type: "int32", - id: 2 - } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - } -}); -common("timestamp", { + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - /** - * Properties of a google.protobuf.Timestamp message. - * @interface ITimestamp - * @type {Object} - * @property {number|Long} [seconds] - * @property {number} [nanos] - * @memberof common - */ - Timestamp: timeType -}); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -common("empty", { + if (data.hasOwnProperty('new-metadata')) { + obj['new-metadata'] = _ApiClient["default"].convertToType(data['new-metadata'], 'String'); + } - /** - * Properties of a google.protobuf.Empty message. - * @interface IEmpty - * @memberof common - */ - Empty: { - fields: {} - } -}); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -common("struct", { + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } - /** - * Properties of a google.protobuf.Struct message. - * @interface IStruct - * @type {Object} - * @property {Object.} [fields] - * @memberof common - */ - Struct: { - fields: { - fields: { - keyType: "string", - type: "Value", - id: 1 - } + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); } - }, - /** - * Properties of a google.protobuf.Value message. - * @interface IValue - * @type {Object} - * @property {string} [kind] - * @property {0} [nullValue] - * @property {number} [numberValue] - * @property {string} [stringValue] - * @property {boolean} [boolValue] - * @property {IStruct} [structValue] - * @property {IListValue} [listValue] - * @memberof common - */ - Value: { - oneofs: { - kind: { - oneof: [ - "nullValue", - "numberValue", - "stringValue", - "boolValue", - "structValue", - "listValue" - ] - } - }, - fields: { - nullValue: { - type: "NullValue", - id: 1 - }, - numberValue: { - type: "double", - id: 2 - }, - stringValue: { - type: "string", - id: 3 - }, - boolValue: { - type: "bool", - id: 4 - }, - structValue: { - type: "Struct", - id: 5 - }, - listValue: { - type: "ListValue", - id: 6 - } + if (data.hasOwnProperty('secure-access-add-host')) { + obj['secure-access-add-host'] = _ApiClient["default"].convertToType(data['secure-access-add-host'], ['String']); } - }, - NullValue: { - values: { - NULL_VALUE: 0 + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'String'); } - }, - /** - * Properties of a google.protobuf.ListValue message. - * @interface IListValue - * @type {Object} - * @property {Array.} [values] - * @memberof common - */ - ListValue: { - fields: { - values: { - rule: "repeated", - type: "Value", - id: 1 - } + if (data.hasOwnProperty('secure-access-allow-port-forwading')) { + obj['secure-access-allow-port-forwading'] = _ApiClient["default"].convertToType(data['secure-access-allow-port-forwading'], 'Boolean'); } - } -}); -common("wrappers", { + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); + } - /** - * Properties of a google.protobuf.DoubleValue message. - * @interface IDoubleValue - * @type {Object} - * @property {number} [value] - * @memberof common - */ - DoubleValue: { - fields: { - value: { - type: "double", - id: 1 - } + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); } - }, - /** - * Properties of a google.protobuf.FloatValue message. - * @interface IFloatValue - * @type {Object} - * @property {number} [value] - * @memberof common - */ - FloatValue: { - fields: { - value: { - type: "float", - id: 1 - } + if (data.hasOwnProperty('secure-access-aws-region')) { + obj['secure-access-aws-region'] = _ApiClient["default"].convertToType(data['secure-access-aws-region'], 'String'); } - }, - /** - * Properties of a google.protobuf.Int64Value message. - * @interface IInt64Value - * @type {Object} - * @property {number|Long} [value] - * @memberof common - */ - Int64Value: { - fields: { - value: { - type: "int64", - id: 1 - } + if (data.hasOwnProperty('secure-access-bastion-api')) { + obj['secure-access-bastion-api'] = _ApiClient["default"].convertToType(data['secure-access-bastion-api'], 'String'); } - }, - /** - * Properties of a google.protobuf.UInt64Value message. - * @interface IUInt64Value - * @type {Object} - * @property {number|Long} [value] - * @memberof common - */ - UInt64Value: { - fields: { - value: { - type: "uint64", - id: 1 - } + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); } - }, - /** - * Properties of a google.protobuf.Int32Value message. - * @interface IInt32Value - * @type {Object} - * @property {number} [value] - * @memberof common - */ - Int32Value: { - fields: { - value: { - type: "int32", - id: 1 - } + if (data.hasOwnProperty('secure-access-bastion-ssh')) { + obj['secure-access-bastion-ssh'] = _ApiClient["default"].convertToType(data['secure-access-bastion-ssh'], 'String'); } - }, - /** - * Properties of a google.protobuf.UInt32Value message. - * @interface IUInt32Value - * @type {Object} - * @property {number} [value] - * @memberof common - */ - UInt32Value: { - fields: { - value: { - type: "uint32", - id: 1 - } + if (data.hasOwnProperty('secure-access-cluster-endpoint')) { + obj['secure-access-cluster-endpoint'] = _ApiClient["default"].convertToType(data['secure-access-cluster-endpoint'], 'String'); } - }, - /** - * Properties of a google.protobuf.BoolValue message. - * @interface IBoolValue - * @type {Object} - * @property {boolean} [value] - * @memberof common - */ - BoolValue: { - fields: { - value: { - type: "bool", - id: 1 - } + if (data.hasOwnProperty('secure-access-dashboard-url')) { + obj['secure-access-dashboard-url'] = _ApiClient["default"].convertToType(data['secure-access-dashboard-url'], 'String'); } - }, - /** - * Properties of a google.protobuf.StringValue message. - * @interface IStringValue - * @type {Object} - * @property {string} [value] - * @memberof common - */ - StringValue: { - fields: { - value: { - type: "string", - id: 1 - } + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); } - }, - /** - * Properties of a google.protobuf.BytesValue message. - * @interface IBytesValue - * @type {Object} - * @property {Uint8Array} [value] - * @memberof common - */ - BytesValue: { - fields: { - value: { - type: "bytes", - id: 1 - } + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); } - } -}); -common("field_mask", { + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } - /** - * Properties of a google.protobuf.FieldMask message. - * @interface IDoubleValue - * @type {Object} - * @property {number} [value] - * @memberof common - */ - FieldMask: { - fields: { - paths: { - rule: "repeated", - type: "string", - id: 1 - } + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); } - } -}); -/** - * Gets the root definition of the specified common proto file. - * - * Bundled definitions are: - * - google/protobuf/any.proto - * - google/protobuf/duration.proto - * - google/protobuf/empty.proto - * - google/protobuf/field_mask.proto - * - google/protobuf/struct.proto - * - google/protobuf/timestamp.proto - * - google/protobuf/wrappers.proto - * - * @param {string} file Proto file name - * @returns {INamespace|null} Root definition or `null` if not defined - */ -common.get = function get(file) { - return common[file] || null; -}; + if (data.hasOwnProperty('secure-access-rd-gateway-server')) { + obj['secure-access-rd-gateway-server'] = _ApiClient["default"].convertToType(data['secure-access-rd-gateway-server'], 'String'); + } + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } -/***/ 92437: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + if (data.hasOwnProperty('secure-access-rm-host')) { + obj['secure-access-rm-host'] = _ApiClient["default"].convertToType(data['secure-access-rm-host'], ['String']); + } -"use strict"; + if (data.hasOwnProperty('secure-access-ssh-creds')) { + obj['secure-access-ssh-creds'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds'], 'String'); + } -/** - * Runtime message from/to plain object converters. - * @namespace - */ -var converter = exports; + if (data.hasOwnProperty('secure-access-ssh-creds-user')) { + obj['secure-access-ssh-creds-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds-user'], 'String'); + } -var Enum = __nccwpck_require__(73528), - util = __nccwpck_require__(39609); + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } -/** - * Generates a partial value fromObject conveter. - * @param {Codegen} gen Codegen instance - * @param {Field} field Reflected field - * @param {number} fieldIndex Field index - * @param {string} prop Property reference - * @returns {Codegen} Codegen instance - * @ignore - */ -function genValuePartial_fromObject(gen, field, fieldIndex, prop) { - var defaultAlreadyEmitted = false; - /* eslint-disable no-unexpected-multiline, block-scoped-var, no-redeclare */ - if (field.resolvedType) { - if (field.resolvedType instanceof Enum) { gen - ("switch(d%s){", prop); - for (var values = field.resolvedType.values, keys = Object.keys(values), i = 0; i < keys.length; ++i) { - // enum unknown values passthrough - if (values[keys[i]] === field.typeDefault && !defaultAlreadyEmitted) { gen - ("default:") - ("if(typeof(d%s)===\"number\"){m%s=d%s;break}", prop, prop, prop); - if (!field.repeated) gen // fallback to default value only for - // arrays, to avoid leaving holes. - ("break"); // for non-repeated fields, just ignore - defaultAlreadyEmitted = true; - } - gen - ("case%j:", keys[i]) - ("case %i:", values[keys[i]]) - ("m%s=%j", prop, values[keys[i]]) - ("break"); - } gen - ("}"); - } else gen - ("if(typeof d%s!==\"object\")", prop) - ("throw TypeError(%j)", field.fullName + ": object expected") - ("m%s=types[%i].fromObject(d%s)", prop, fieldIndex, prop); - } else { - var isUnsigned = false; - switch (field.type) { - case "double": - case "float": gen - ("m%s=Number(d%s)", prop, prop); // also catches "NaN", "Infinity" - break; - case "uint32": - case "fixed32": gen - ("m%s=d%s>>>0", prop, prop); - break; - case "int32": - case "sint32": - case "sfixed32": gen - ("m%s=d%s|0", prop, prop); - break; - case "uint64": - isUnsigned = true; - // eslint-disable-next-line no-fallthrough - case "int64": - case "sint64": - case "fixed64": - case "sfixed64": gen - ("if(util.Long)") - ("(m%s=util.Long.fromValue(d%s)).unsigned=%j", prop, prop, isUnsigned) - ("else if(typeof d%s===\"string\")", prop) - ("m%s=parseInt(d%s,10)", prop, prop) - ("else if(typeof d%s===\"number\")", prop) - ("m%s=d%s", prop, prop) - ("else if(typeof d%s===\"object\")", prop) - ("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)", prop, prop, prop, isUnsigned ? "true" : ""); - break; - case "bytes": gen - ("if(typeof d%s===\"string\")", prop) - ("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)", prop, prop, prop) - ("else if(d%s.length >= 0)", prop) - ("m%s=d%s", prop, prop); - break; - case "string": gen - ("m%s=String(d%s)", prop, prop); - break; - case "bool": gen - ("m%s=Boolean(d%s)", prop, prop); - break; - /* default: gen - ("m%s=d%s", prop, prop); - break; */ + if (data.hasOwnProperty('secure-access-use-internal-bastion')) { + obj['secure-access-use-internal-bastion'] = _ApiClient["default"].convertToType(data['secure-access-use-internal-bastion'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + } + + return obj; } - return gen; - /* eslint-enable no-unexpected-multiline, block-scoped-var, no-redeclare */ -} + }]); + return UpdateItem; +}(); /** - * Generates a plain object to runtime message converter specific to the specified message type. - * @param {Type} mtype Message type - * @returns {Codegen} Codegen instance + * @member {String} ProviderType */ -converter.fromObject = function fromObject(mtype) { - /* eslint-disable no-unexpected-multiline, block-scoped-var, no-redeclare */ - var fields = mtype.fieldsArray; - var gen = util.codegen(["d"], mtype.name + "$fromObject") - ("if(d instanceof this.ctor)") - ("return d"); - if (!fields.length) return gen - ("return new this.ctor"); - gen - ("var m=new this.ctor"); - for (var i = 0; i < fields.length; ++i) { - var field = fields[i].resolve(), - prop = util.safeProp(field.name); - // Map fields - if (field.map) { gen - ("if(d%s){", prop) - ("if(typeof d%s!==\"object\")", prop) - ("throw TypeError(%j)", field.fullName + ": object expected") - ("m%s={}", prop) - ("for(var ks=Object.keys(d%s),i=0;i} add-tag + */ +UpdateItem.prototype['add-tag'] = undefined; /** - * Generates a partial value toObject converter. - * @param {Codegen} gen Codegen instance - * @param {Field} field Reflected field - * @param {number} fieldIndex Field index - * @param {string} prop Property reference - * @returns {Codegen} Codegen instance - * @ignore + * PEM Certificate in a Base64 format. Used for updating RSA keys' certificates. + * @member {String} cert-file-data */ -function genValuePartial_toObject(gen, field, fieldIndex, prop) { - /* eslint-disable no-unexpected-multiline, block-scoped-var, no-redeclare */ - if (field.resolvedType) { - if (field.resolvedType instanceof Enum) gen - ("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s", prop, fieldIndex, prop, prop, fieldIndex, prop, prop); - else gen - ("d%s=types[%i].toObject(m%s,o)", prop, fieldIndex, prop); - } else { - var isUnsigned = false; - switch (field.type) { - case "double": - case "float": gen - ("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s", prop, prop, prop, prop); - break; - case "uint64": - isUnsigned = true; - // eslint-disable-next-line no-fallthrough - case "int64": - case "sint64": - case "fixed64": - case "sfixed64": gen - ("if(typeof m%s===\"number\")", prop) - ("d%s=o.longs===String?String(m%s):m%s", prop, prop, prop) - ("else") // Long-like - ("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s", prop, prop, prop, prop, isUnsigned ? "true": "", prop); - break; - case "bytes": gen - ("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s", prop, prop, prop, prop, prop); - break; - default: gen - ("d%s=m%s", prop, prop); - break; - } - } - return gen; - /* eslint-enable no-unexpected-multiline, block-scoped-var, no-redeclare */ -} +UpdateItem.prototype['cert-file-data'] = undefined; /** - * Generates a runtime message to plain object converter specific to the specified message type. - * @param {Type} mtype Message type - * @returns {Codegen} Codegen instance + * Trigger an event when a secret value changed [true/false] (Relevant only for Static Secret) + * @member {String} change-event */ -converter.toObject = function toObject(mtype) { - /* eslint-disable no-unexpected-multiline, block-scoped-var, no-redeclare */ - var fields = mtype.fieldsArray.slice().sort(util.compareFieldsById); - if (!fields.length) - return util.codegen()("return {}"); - var gen = util.codegen(["m", "o"], mtype.name + "$toObject") - ("if(!o)") - ("o={}") - ("var d={}"); - var repeatedFields = [], - mapFields = [], - normalFields = [], - i = 0; - for (; i < fields.length; ++i) - if (!fields[i].partOf) - ( fields[i].resolve().repeated ? repeatedFields - : fields[i].map ? mapFields - : normalFields).push(fields[i]); +UpdateItem.prototype['change-event'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ - if (repeatedFields.length) { gen - ("if(o.arrays||o.defaults){"); - for (i = 0; i < repeatedFields.length; ++i) gen - ("d%s=[]", util.safeProp(repeatedFields[i].name)); - gen - ("}"); - } +UpdateItem.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ - if (mapFields.length) { gen - ("if(o.objects||o.defaults){"); - for (i = 0; i < mapFields.length; ++i) gen - ("d%s={}", util.safeProp(mapFields[i].name)); - gen - ("}"); - } +UpdateItem.prototype['description'] = 'default_metadata'; +/** + * Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret + * @member {String} host-provider + * @default 'explicit' + */ - if (normalFields.length) { gen - ("if(o.defaults){"); - for (i = 0; i < normalFields.length; ++i) { - var field = normalFields[i], - prop = util.safeProp(field.name); - if (field.resolvedType instanceof Enum) gen - ("d%s=o.enums===String?%j:%j", prop, field.resolvedType.valuesById[field.typeDefault], field.typeDefault); - else if (field.long) gen - ("if(util.Long){") - ("var n=new util.Long(%i,%i,%j)", field.typeDefault.low, field.typeDefault.high, field.typeDefault.unsigned) - ("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n", prop) - ("}else") - ("d%s=o.longs===String?%j:%i", prop, field.typeDefault.toString(), field.typeDefault.toNumber()); - else if (field.bytes) { - var arrayDefault = "[" + Array.prototype.slice.call(field.typeDefault).join(",") + "]"; - gen - ("if(o.bytes===String)d%s=%j", prop, String.fromCharCode.apply(String, field.typeDefault)) - ("else{") - ("d%s=%s", prop, arrayDefault) - ("if(o.bytes!==Array)d%s=util.newBuffer(d%s)", prop, prop) - ("}"); - } else gen - ("d%s=%j", prop, field.typeDefault); // also messages (=null) - } gen - ("}"); - } - var hasKs2 = false; - for (i = 0; i < fields.length; ++i) { - var field = fields[i], - index = mtype._fieldsArray.indexOf(field), - prop = util.safeProp(field.name); - if (field.map) { - if (!hasKs2) { hasKs2 = true; gen - ("var ks2"); - } gen - ("if(m%s&&(ks2=Object.keys(m%s)).length){", prop, prop) - ("d%s={}", prop) - ("for(var j=0;j { +UpdateItem.prototype['new-metadata'] = 'default_metadata'; +/** + * New item name + * @member {String} new-name + */ -"use strict"; +UpdateItem.prototype['new-name'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ -module.exports = decoder; +UpdateItem.prototype['rm-tag'] = undefined; +/** + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' + */ -var Enum = __nccwpck_require__(73528), - types = __nccwpck_require__(21024), - util = __nccwpck_require__(39609); +UpdateItem.prototype['rotate-after-disconnect'] = 'false'; +/** + * List of the new hosts that will be attached to SRA servers host + * @member {Array.} secure-access-add-host + */ -function missing(field) { - return "missing required '" + field.name + "'"; -} +UpdateItem.prototype['secure-access-add-host'] = undefined; +/** + * Allow providing external user for a domain users [true/false] + * @member {String} secure-access-allow-external-user + */ +UpdateItem.prototype['secure-access-allow-external-user'] = undefined; /** - * Generates a decoder specific to the specified message type. - * @param {Type} mtype Message type - * @returns {Codegen} Codegen instance + * Enable Port forwarding while using CLI access (relevant only for EKS/GKE/K8s Dynamic-Secret) + * @member {Boolean} secure-access-allow-port-forwading */ -function decoder(mtype) { - /* eslint-disable no-unexpected-multiline */ - var gen = util.codegen(["r", "l", "e"], mtype.name + "$decode") - ("if(!(r instanceof Reader))") - ("r=Reader.create(r)") - ("var c=l===undefined?r.len:r.pos+l,m=new this.ctor" + (mtype.fieldsArray.filter(function(field) { return field.map; }).length ? ",k,value" : "")) - ("while(r.pos>>3){"); - var i = 0; - for (; i < /* initializes */ mtype.fieldsArray.length; ++i) { - var field = mtype._fieldsArray[i].resolve(), - type = field.resolvedType instanceof Enum ? "int32" : field.type, - ref = "m" + util.safeProp(field.name); gen - ("case %i: {", field.id); +UpdateItem.prototype['secure-access-allow-port-forwading'] = undefined; +/** + * The AWS account id (relevant only for aws) + * @member {String} secure-access-aws-account-id + */ - // Map fields - if (field.map) { gen - ("if(%s===util.emptyObject)", ref) - ("%s={}", ref) - ("var c2 = r.uint32()+r.pos"); +UpdateItem.prototype['secure-access-aws-account-id'] = undefined; +/** + * The AWS native cli (relevant only for aws) + * @member {Boolean} secure-access-aws-native-cli + */ - if (types.defaults[field.keyType] !== undefined) gen - ("k=%j", types.defaults[field.keyType]); - else gen - ("k=null"); +UpdateItem.prototype['secure-access-aws-native-cli'] = undefined; +/** + * The AWS region (relevant only for aws) + * @member {String} secure-access-aws-region + */ - if (types.defaults[type] !== undefined) gen - ("value=%j", types.defaults[type]); - else gen - ("value=null"); +UpdateItem.prototype['secure-access-aws-region'] = undefined; +/** + * Bastion's SSH control API endpoint. E.g. https://my.bastion:9900 (relevant only for ssh cert issuer) + * @member {String} secure-access-bastion-api + */ - gen - ("while(r.pos>>3){") - ("case 1: k=r.%s(); break", field.keyType) - ("case 2:"); +UpdateItem.prototype['secure-access-bastion-api'] = undefined; +/** + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer + */ - if (types.basic[type] === undefined) gen - ("value=types[%i].decode(r,r.uint32())", i); // can't be groups - else gen - ("value=r.%s()", type); +UpdateItem.prototype['secure-access-bastion-issuer'] = undefined; +/** + * Bastion's SSH server. E.g. my.bastion:22 (relevant only for ssh cert issuer) + * @member {String} secure-access-bastion-ssh + */ - gen - ("break") - ("default:") - ("r.skipType(tag2&7)") - ("break") - ("}") - ("}"); +UpdateItem.prototype['secure-access-bastion-ssh'] = undefined; +/** + * The K8s cluster endpoint URL (relevant only for EKS/GKE/K8s Dynamic-Secret) + * @member {String} secure-access-cluster-endpoint + */ - if (types.long[field.keyType] !== undefined) gen - ("%s[typeof k===\"object\"?util.longToHash(k):k]=value", ref); - else gen - ("%s[k]=value", ref); +UpdateItem.prototype['secure-access-cluster-endpoint'] = undefined; +/** + * The K8s dashboard url (relevant only for k8s) + * @member {String} secure-access-dashboard-url + */ - // Repeated fields - } else if (field.repeated) { gen +UpdateItem.prototype['secure-access-dashboard-url'] = undefined; +/** + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name + */ - ("if(!(%s&&%s.length))", ref, ref) - ("%s=[]", ref); +UpdateItem.prototype['secure-access-db-name'] = undefined; +/** + * The DB schema (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-schema + */ - // Packable (always check for forward and backward compatiblity) - if (types.packed[type] !== undefined) gen - ("if((t&7)===2){") - ("var c2=r.uint32()+r.pos") - ("while(r.pos} secure-access-host + */ - // Non-repeated - } else if (types.basic[type] === undefined) gen(field.delimited - ? "%s=types[%i].decode(r,undefined,((t&~7)|4))" - : "%s=types[%i].decode(r,r.uint32())", ref, i); - else gen - ("%s=r.%s()", ref, type); - gen - ("break") - ("}"); - // Unknown fields - } gen - ("default:") - ("r.skipType(t&7)") - ("break") +UpdateItem.prototype['secure-access-host'] = undefined; +/** + * RD Gateway server (relevant only for rdp) + * @member {String} secure-access-rd-gateway-server + */ - ("}") - ("}"); +UpdateItem.prototype['secure-access-rd-gateway-server'] = undefined; +/** + * Required when the Dynamic Secret is used for a domain user (relevant only for RDP Dynamic-Secret) + * @member {String} secure-access-rdp-domain + */ - // Field presence - for (i = 0; i < mtype._fieldsArray.length; ++i) { - var rfield = mtype._fieldsArray[i]; - if (rfield.required) gen - ("if(!m.hasOwnProperty(%j))", rfield.name) - ("throw util.ProtocolError(%j,{instance:m})", missing(rfield)); - } +UpdateItem.prototype['secure-access-rdp-domain'] = undefined; +/** + * Override the RDP Domain username + * @member {String} secure-access-rdp-user + */ - return gen - ("return m"); - /* eslint-enable no-unexpected-multiline */ -} +UpdateItem.prototype['secure-access-rdp-user'] = undefined; +/** + * List of the existent hosts that will be removed from SRA servers host + * @member {Array.} secure-access-rm-host + */ +UpdateItem.prototype['secure-access-rm-host'] = undefined; +/** + * Secret values contains SSH Credentials, either Private Key or Password [password/private-key] (relevant only for Static-Secret or Rotated-secret) + * @member {String} secure-access-ssh-creds + */ -/***/ }), +UpdateItem.prototype['secure-access-ssh-creds'] = undefined; +/** + * SSH username to connect to target server, must be in 'Allowed Users' list (relevant only for ssh cert issuer) + * @member {String} secure-access-ssh-creds-user + */ -/***/ 67641: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateItem.prototype['secure-access-ssh-creds-user'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ -"use strict"; +UpdateItem.prototype['secure-access-url'] = undefined; +/** + * Use internal SSH Bastion + * @member {Boolean} secure-access-use-internal-bastion + */ -module.exports = encoder; +UpdateItem.prototype['secure-access-use-internal-bastion'] = undefined; +/** + * Secure browser via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-browsing + * @default false + */ -var Enum = __nccwpck_require__(73528), - types = __nccwpck_require__(21024), - util = __nccwpck_require__(39609); +UpdateItem.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion + * @member {Boolean} secure-access-web-proxy + * @default false + */ +UpdateItem.prototype['secure-access-web-proxy'] = false; /** - * Generates a partial message type encoder. - * @param {Codegen} gen Codegen instance - * @param {Field} field Reflected field - * @param {number} fieldIndex Field index - * @param {string} ref Variable reference - * @returns {Codegen} Codegen instance - * @ignore + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -function genTypePartial(gen, field, fieldIndex, ref) { - return field.delimited - ? gen("types[%i].encode(%s,w.uint32(%i)).uint32(%i)", fieldIndex, ref, (field.id << 3 | 3) >>> 0, (field.id << 3 | 4) >>> 0) - : gen("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()", fieldIndex, ref, (field.id << 3 | 2) >>> 0); -} +UpdateItem.prototype['token'] = undefined; /** - * Generates an encoder specific to the specified message type. - * @param {Type} mtype Message type - * @returns {Codegen} Codegen instance + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -function encoder(mtype) { - /* eslint-disable no-unexpected-multiline, block-scoped-var, no-redeclare */ - var gen = util.codegen(["m", "w"], mtype.name + "$encode") - ("if(!w)") - ("w=Writer.create()"); - var i, ref; +UpdateItem.prototype['uid-token'] = undefined; +var _default = UpdateItem; +exports["default"] = _default; - // "when a message is serialized its known fields should be written sequentially by field number" - var fields = /* initializes */ mtype.fieldsArray.slice().sort(util.compareFieldsById); +/***/ }), - for (var i = 0; i < fields.length; ++i) { - var field = fields[i].resolve(), - index = mtype._fieldsArray.indexOf(field), - type = field.resolvedType instanceof Enum ? "int32" : field.type, - wireType = types.basic[type]; - ref = "m" + util.safeProp(field.name); +/***/ 15651: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // Map fields - if (field.map) { - gen - ("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){", ref, field.name) // !== undefined && !== null - ("for(var ks=Object.keys(%s),i=0;i>> 0, 8 | types.mapKey[field.keyType], field.keyType); - if (wireType === undefined) gen - ("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()", index, ref); // can't be groups - else gen - (".uint32(%i).%s(%s[ks[i]]).ldelim()", 16 | wireType, type, ref); - gen - ("}") - ("}"); +"use strict"; - // Repeated fields - } else if (field.repeated) { gen - ("if(%s!=null&&%s.length){", ref, ref); // !== undefined && !== null - // Packed repeated - if (field.packed && types.packed[type] !== undefined) { gen +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - ("w.uint32(%i).fork()", (field.id << 3 | 2) >>> 0) - ("for(var i=0;i<%s.length;++i)", ref) - ("w.%s(%s[i])", type, ref) - ("w.ldelim()"); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // Non-packed - } else { gen +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - ("for(var i=0;i<%s.length;++i)", ref); - if (wireType === undefined) - genTypePartial(gen, field, index, ref + "[i]"); - else gen - ("w.uint32(%i).%s(%s[i])", (field.id << 3 | wireType) >>> 0, type, ref); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - } gen - ("}"); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - // Non-repeated - } else { - if (field.optional) gen - ("if(%s!=null&&Object.hasOwnProperty.call(m,%j))", ref, field.name); // !== undefined && !== null +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (wireType === undefined) - genTypePartial(gen, field, index, ref); - else gen - ("w.uint32(%i).%s(%s)", (field.id << 3 | wireType) >>> 0, type, ref); +/** + * The UpdateItemOutput model module. + * @module model/UpdateItemOutput + * @version 3.6.3 + */ +var UpdateItemOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateItemOutput. + * @alias module:model/UpdateItemOutput + */ + function UpdateItemOutput() { + _classCallCheck(this, UpdateItemOutput); + + UpdateItemOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateItemOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateItemOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateItemOutput} obj Optional instance to populate. + * @return {module:model/UpdateItemOutput} The populated UpdateItemOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateItemOutput(); + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); } + } + + return obj; } + }]); - return gen - ("return w"); - /* eslint-enable no-unexpected-multiline, block-scoped-var, no-redeclare */ -} + return UpdateItemOutput; +}(); +/** + * @member {Boolean} updated + */ +UpdateItemOutput.prototype['updated'] = undefined; +var _default = UpdateItemOutput; +exports["default"] = _default; + /***/ }), -/***/ 73528: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 3589: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -module.exports = Enum; -// extends ReflectionObject -var ReflectionObject = __nccwpck_require__(67946); -((Enum.prototype = Object.create(ReflectionObject.prototype)).constructor = Enum).className = "Enum"; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var Namespace = __nccwpck_require__(21946), - util = __nccwpck_require__(39609); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Constructs a new enum instance. - * @classdesc Reflected enum. - * @extends ReflectionObject - * @constructor - * @param {string} name Unique name within its namespace - * @param {Object.} [values] Enum values as an object, by name - * @param {Object.} [options] Declared options - * @param {string} [comment] The comment for this enum - * @param {Object.} [comments] The value comments for this enum - * @param {Object.>|undefined} [valuesOptions] The value options for this enum + * The UpdateLdapTarget model module. + * @module model/UpdateLdapTarget + * @version 3.6.3 */ -function Enum(name, values, options, comment, comments, valuesOptions) { - ReflectionObject.call(this, name, options); +var UpdateLdapTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateLdapTarget. + * @alias module:model/UpdateLdapTarget + * @param name {String} Target name + */ + function UpdateLdapTarget(name) { + _classCallCheck(this, UpdateLdapTarget); - if (values && typeof values !== "object") - throw TypeError("values must be an object"); + UpdateLdapTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - /** - * Enum values by id. - * @type {Object.} - */ - this.valuesById = {}; + _createClass(UpdateLdapTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Enum values by name. - * @type {Object.} + * Constructs a UpdateLdapTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateLdapTarget} obj Optional instance to populate. + * @return {module:model/UpdateLdapTarget} The populated UpdateLdapTarget instance. */ - this.values = Object.create(this.valuesById); // toJSON, marker - /** - * Enum comment text. - * @type {string|null} - */ - this.comment = comment; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateLdapTarget(); - /** - * Value comment texts, if any. - * @type {Object.} - */ - this.comments = comments || {}; + if (data.hasOwnProperty('bind-dn')) { + obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); + } - /** - * Values options, if any - * @type {Object>|undefined} - */ - this.valuesOptions = valuesOptions; + if (data.hasOwnProperty('bind-dn-password')) { + obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); + } - /** - * Resolved values features, if any - * @type {Object>|undefined} - */ - this._valuesFeatures = {}; + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } - /** - * Reserved ranges, if any. - * @type {Array.} - */ - this.reserved = undefined; // toJSON + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - // Note that values inherit valuesById on their prototype which makes them a TypeScript- - // compatible enum. This is used by pbts to write actual enum definitions that work for - // static and reflection code alike instead of emitting generic object definitions. + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - if (values) - for (var keys = Object.keys(values), i = 0; i < keys.length; ++i) - if (typeof values[keys[i]] === "number") // use forward entries only - this.valuesById[ this.values[keys[i]] = values[keys[i]] ] = keys[i]; -} + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -/** - * @override - */ -Enum.prototype._resolveFeatures = function _resolveFeatures(edition) { - edition = this._edition || edition; - ReflectionObject.prototype._resolveFeatures.call(this, edition); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - Object.keys(this.values).forEach(key => { - var parentFeaturesCopy = Object.assign({}, this._features); - this._valuesFeatures[key] = Object.assign(parentFeaturesCopy, this.valuesOptions && this.valuesOptions[key] && this.valuesOptions[key].features); - }); + if (data.hasOwnProperty('ldap-ca-cert')) { + obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); + } - return this; -}; + if (data.hasOwnProperty('ldap-url')) { + obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); + } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('server-type')) { + obj['server-type'] = _ApiClient["default"].convertToType(data['server-type'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('token-expiration')) { + obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + } + + return obj; + } + }]); + + return UpdateLdapTarget; +}(); /** - * Enum descriptor. - * @interface IEnum - * @property {Object.} values Enum values - * @property {Object.} [options] Enum options + * @member {String} bind-dn */ + +UpdateLdapTarget.prototype['bind-dn'] = undefined; /** - * Constructs an enum from an enum descriptor. - * @param {string} name Enum name - * @param {IEnum} json Enum descriptor - * @returns {Enum} Created enum - * @throws {TypeError} If arguments are invalid + * @member {String} bind-dn-password */ -Enum.fromJSON = function fromJSON(name, json) { - var enm = new Enum(name, json.values, json.options, json.comment, json.comments); - enm.reserved = json.reserved; - if (json.edition) - enm._edition = json.edition; - enm._defaultEdition = "proto3"; // For backwards-compatibility. - return enm; -}; +UpdateLdapTarget.prototype['bind-dn-password'] = undefined; /** - * Converts this enum to an enum descriptor. - * @param {IToJSONOptions} [toJSONOptions] JSON conversion options - * @returns {IEnum} Enum descriptor + * Deprecated - use description + * @member {String} comment */ -Enum.prototype.toJSON = function toJSON(toJSONOptions) { - var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false; - return util.toObject([ - "edition" , this._editionToJSON(), - "options" , this.options, - "valuesOptions" , this.valuesOptions, - "values" , this.values, - "reserved" , this.reserved && this.reserved.length ? this.reserved : undefined, - "comment" , keepComments ? this.comment : undefined, - "comments" , keepComments ? this.comments : undefined - ]); -}; +UpdateLdapTarget.prototype['comment'] = undefined; /** - * Adds a value to this enum. - * @param {string} name Value name - * @param {number} id Value id - * @param {string} [comment] Comment, if any - * @param {Object.|undefined} [options] Options, if any - * @returns {Enum} `this` - * @throws {TypeError} If arguments are invalid - * @throws {Error} If there is already a value with this name or id + * Description of the object + * @member {String} description */ -Enum.prototype.add = function add(name, id, comment, options) { - // utilized by the parser but not by .fromJSON - - if (!util.isString(name)) - throw TypeError("name must be a string"); - - if (!util.isInteger(id)) - throw TypeError("id must be an integer"); - if (this.values[name] !== undefined) - throw Error("duplicate name '" + name + "' in " + this); +UpdateLdapTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - if (this.isReservedId(id)) - throw Error("id " + id + " is reserved in " + this); +UpdateLdapTarget.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ - if (this.isReservedName(name)) - throw Error("name '" + name + "' is reserved in " + this); +UpdateLdapTarget.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - if (this.valuesById[id] !== undefined) { - if (!(this.options && this.options.allow_alias)) - throw Error("duplicate id " + id + " in " + this); - this.values[name] = id; - } else - this.valuesById[this.values[name] = id] = name; +UpdateLdapTarget.prototype['key'] = undefined; +/** + * @member {String} ldap-ca-cert + */ - if (options) { - if (this.valuesOptions === undefined) - this.valuesOptions = {}; - this.valuesOptions[name] = options || null; - } +UpdateLdapTarget.prototype['ldap-ca-cert'] = undefined; +/** + * @member {String} ldap-url + */ - this.comments[name] = comment || null; - return this; -}; +UpdateLdapTarget.prototype['ldap-url'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ +UpdateLdapTarget.prototype['max-versions'] = undefined; /** - * Removes a value from this enum - * @param {string} name Value name - * @returns {Enum} `this` - * @throws {TypeError} If arguments are invalid - * @throws {Error} If `name` is not a name of this enum + * Target name + * @member {String} name */ -Enum.prototype.remove = function remove(name) { - if (!util.isString(name)) - throw TypeError("name must be a string"); +UpdateLdapTarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ - var val = this.values[name]; - if (val == null) - throw Error("name '" + name + "' does not exist in " + this); +UpdateLdapTarget.prototype['new-name'] = undefined; +/** + * Set Ldap server type, Options:[OpenLDAP, ActiveDirectory] + * @member {String} server-type + */ - delete this.valuesById[val]; - delete this.values[name]; - delete this.comments[name]; - if (this.valuesOptions) - delete this.valuesOptions[name]; +UpdateLdapTarget.prototype['server-type'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return this; -}; +UpdateLdapTarget.prototype['token'] = undefined; +/** + * @member {String} token-expiration + */ +UpdateLdapTarget.prototype['token-expiration'] = undefined; /** - * Tests if the specified id is reserved. - * @param {number} id Id to test - * @returns {boolean} `true` if reserved, otherwise `false` + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -Enum.prototype.isReservedId = function isReservedId(id) { - return Namespace.isReservedId(this.reserved, id); -}; +UpdateLdapTarget.prototype['uid-token'] = undefined; /** - * Tests if the specified name is reserved. - * @param {string} name Name to test - * @returns {boolean} `true` if reserved, otherwise `false` + * Deprecated + * @member {Boolean} update-version */ -Enum.prototype.isReservedName = function isReservedName(name) { - return Namespace.isReservedName(this.reserved, name); -}; +UpdateLdapTarget.prototype['update-version'] = undefined; +var _default = UpdateLdapTarget; +exports["default"] = _default; /***/ }), -/***/ 30457: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 34663: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -module.exports = Field; -// extends ReflectionObject -var ReflectionObject = __nccwpck_require__(67946); -((Field.prototype = Object.create(ReflectionObject.prototype)).constructor = Field).className = "Field"; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var Enum = __nccwpck_require__(73528), - types = __nccwpck_require__(21024), - util = __nccwpck_require__(39609); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -var Type; // cyclic +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var ruleRe = /^required|optional|repeated$/; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/** - * Constructs a new message field instance. Note that {@link MapField|map fields} have their own class. - * @name Field - * @classdesc Reflected message field. - * @extends FieldBase - * @constructor - * @param {string} name Unique name within its namespace - * @param {number} id Unique id within its namespace - * @param {string} type Value type - * @param {string|Object.} [rule="optional"] Field rule - * @param {string|Object.} [extend] Extended type if different from parent - * @param {Object.} [options] Declared options - */ +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/** - * Constructs a field from a field descriptor. - * @param {string} name Field name - * @param {IField} json Field descriptor - * @returns {Field} Created field - * @throws {TypeError} If arguments are invalid - */ -Field.fromJSON = function fromJSON(name, json) { - var field = new Field(name, json.id, json.type, json.rule, json.extend, json.options, json.comment); - if (json.edition) - field._edition = json.edition; - field._defaultEdition = "proto3"; // For backwards-compatibility. - return field; -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Not an actual constructor. Use {@link Field} instead. - * @classdesc Base class of all reflected message fields. This is not an actual class but here for the sake of having consistent type definitions. - * @exports FieldBase - * @extends ReflectionObject - * @constructor - * @param {string} name Unique name within its namespace - * @param {number} id Unique id within its namespace - * @param {string} type Value type - * @param {string|Object.} [rule="optional"] Field rule - * @param {string|Object.} [extend] Extended type if different from parent - * @param {Object.} [options] Declared options - * @param {string} [comment] Comment associated with this field + * The UpdateLdapTargetDetails model module. + * @module model/UpdateLdapTargetDetails + * @version 3.6.3 */ -function Field(name, id, type, rule, extend, options, comment) { - - if (util.isObject(rule)) { - comment = extend; - options = rule; - rule = extend = undefined; - } else if (util.isObject(extend)) { - comment = options; - options = extend; - extend = undefined; - } +var UpdateLdapTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new UpdateLdapTargetDetails. + * @alias module:model/UpdateLdapTargetDetails + * @param name {String} Target name + */ + function UpdateLdapTargetDetails(name) { + _classCallCheck(this, UpdateLdapTargetDetails); - ReflectionObject.call(this, name, options); + UpdateLdapTargetDetails.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (!util.isInteger(id) || id < 0) - throw TypeError("id must be a non-negative integer"); - if (!util.isString(type)) - throw TypeError("type must be a string"); + _createClass(UpdateLdapTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a UpdateLdapTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateLdapTargetDetails} obj Optional instance to populate. + * @return {module:model/UpdateLdapTargetDetails} The populated UpdateLdapTargetDetails instance. + */ - if (rule !== undefined && !ruleRe.test(rule = rule.toString().toLowerCase())) - throw TypeError("rule must be a string rule"); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateLdapTargetDetails(); - if (extend !== undefined && !util.isString(extend)) - throw TypeError("extend must be a string"); + if (data.hasOwnProperty('bind-dn')) { + obj['bind-dn'] = _ApiClient["default"].convertToType(data['bind-dn'], 'String'); + } - /** - * Field rule, if any. - * @type {string|undefined} - */ - if (rule === "proto3_optional") { - rule = "optional"; - } - this.rule = rule && rule !== "optional" ? rule : undefined; // toJSON + if (data.hasOwnProperty('bind-dn-password')) { + obj['bind-dn-password'] = _ApiClient["default"].convertToType(data['bind-dn-password'], 'String'); + } - /** - * Field type. - * @type {string} - */ - this.type = type; // toJSON + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - /** - * Unique field id. - * @type {number} - */ - this.id = id; // toJSON, marker + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - /** - * Extended type if different from parent. - * @type {string|undefined} - */ - this.extend = extend || undefined; // toJSON + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - /** - * Whether this field is repeated. - * @type {boolean} - */ - this.repeated = rule === "repeated"; + if (data.hasOwnProperty('ldap-ca-cert')) { + obj['ldap-ca-cert'] = _ApiClient["default"].convertToType(data['ldap-ca-cert'], 'String'); + } - /** - * Whether this field is a map or not. - * @type {boolean} - */ - this.map = false; + if (data.hasOwnProperty('ldap-url')) { + obj['ldap-url'] = _ApiClient["default"].convertToType(data['ldap-url'], 'String'); + } - /** - * Message this field belongs to. - * @type {Type|null} - */ - this.message = null; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - /** - * OneOf this field belongs to, if any, - * @type {OneOf|null} - */ - this.partOf = null; + if (data.hasOwnProperty('new-version')) { + obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); + } - /** - * The field type's default value. - * @type {*} - */ - this.typeDefault = null; + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } - /** - * The field's default value on prototypes. - * @type {*} - */ - this.defaultValue = null; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - /** - * Whether this field's value should be treated as a long. - * @type {boolean} - */ - this.long = util.Long ? types.long[type] !== undefined : /* istanbul ignore next */ false; + if (data.hasOwnProperty('token-expiration')) { + obj['token-expiration'] = _ApiClient["default"].convertToType(data['token-expiration'], 'String'); + } - /** - * Whether this field's value is a buffer. - * @type {boolean} - */ - this.bytes = type === "bytes"; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - /** - * Resolved type if not a basic type. - * @type {Type|Enum|null} - */ - this.resolvedType = null; + return obj; + } + }]); - /** - * Sister-field within the extended type if a declaring extension field. - * @type {Field|null} - */ - this.extensionField = null; + return UpdateLdapTargetDetails; +}(); +/** + * @member {String} bind-dn + */ - /** - * Sister-field within the declaring namespace if an extended field. - * @type {Field|null} - */ - this.declaringField = null; - /** - * Comment for this field. - * @type {string|null} - */ - this.comment = comment; -} +UpdateLdapTargetDetails.prototype['bind-dn'] = undefined; +/** + * @member {String} bind-dn-password + */ +UpdateLdapTargetDetails.prototype['bind-dn-password'] = undefined; /** - * Determines whether this field is required. - * @name Field#required - * @type {boolean} - * @readonly + * Set output format to JSON + * @member {Boolean} json + * @default false */ -Object.defineProperty(Field.prototype, "required", { - get: function() { - return this._features.field_presence === "LEGACY_REQUIRED"; - } -}); +UpdateLdapTargetDetails.prototype['json'] = false; /** - * Determines whether this field is not required. - * @name Field#optional - * @type {boolean} - * @readonly + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -Object.defineProperty(Field.prototype, "optional", { - get: function() { - return !this.required; - } -}); +UpdateLdapTargetDetails.prototype['keep-prev-version'] = undefined; /** - * Determines whether this field uses tag-delimited encoding. In proto2 this - * corresponded to group syntax. - * @name Field#delimited - * @type {boolean} - * @readonly + * @member {String} key */ -Object.defineProperty(Field.prototype, "delimited", { - get: function() { - return this.resolvedType instanceof Type && - this._features.message_encoding === "DELIMITED"; - } -}); +UpdateLdapTargetDetails.prototype['key'] = undefined; /** - * Determines whether this field is packed. Only relevant when repeated. - * @name Field#packed - * @type {boolean} - * @readonly + * @member {String} ldap-ca-cert */ -Object.defineProperty(Field.prototype, "packed", { - get: function() { - return this._features.repeated_field_encoding === "PACKED"; - } -}); +UpdateLdapTargetDetails.prototype['ldap-ca-cert'] = undefined; /** - * Determines whether this field tracks presence. - * @name Field#hasPresence - * @type {boolean} - * @readonly + * @member {String} ldap-url + */ + +UpdateLdapTargetDetails.prototype['ldap-url'] = undefined; +/** + * Target name + * @member {String} name */ -Object.defineProperty(Field.prototype, "hasPresence", { - get: function() { - if (this.repeated || this.map) { - return false; - } - return this.partOf || // oneofs - this.declaringField || this.extensionField || // extensions - this._features.field_presence !== "IMPLICIT"; - } -}); +UpdateLdapTargetDetails.prototype['name'] = undefined; /** - * @override + * Deprecated + * @member {Boolean} new-version */ -Field.prototype.setOption = function setOption(name, value, ifNotSet) { - return ReflectionObject.prototype.setOption.call(this, name, value, ifNotSet); -}; +UpdateLdapTargetDetails.prototype['new-version'] = undefined; /** - * Field descriptor. - * @interface IField - * @property {string} [rule="optional"] Field rule - * @property {string} type Field type - * @property {number} id Field id - * @property {Object.} [options] Field options + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection_key */ +UpdateLdapTargetDetails.prototype['protection_key'] = undefined; /** - * Extension field descriptor. - * @interface IExtensionField - * @extends IField - * @property {string} extend Extended type + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ +UpdateLdapTargetDetails.prototype['token'] = undefined; /** - * Converts this field to a field descriptor. - * @param {IToJSONOptions} [toJSONOptions] JSON conversion options - * @returns {IField} Field descriptor + * @member {String} token-expiration */ -Field.prototype.toJSON = function toJSON(toJSONOptions) { - var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false; - return util.toObject([ - "edition" , this._editionToJSON(), - "rule" , this.rule !== "optional" && this.rule || undefined, - "type" , this.type, - "id" , this.id, - "extend" , this.extend, - "options" , this.options, - "comment" , keepComments ? this.comment : undefined - ]); -}; +UpdateLdapTargetDetails.prototype['token-expiration'] = undefined; /** - * Resolves this field's type references. - * @returns {Field} `this` - * @throws {Error} If any reference cannot be resolved + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -Field.prototype.resolve = function resolve() { - if (this.resolved) - return this; +UpdateLdapTargetDetails.prototype['uid-token'] = undefined; +var _default = UpdateLdapTargetDetails; +exports["default"] = _default; - if ((this.typeDefault = types.defaults[this.type]) === undefined) { // if not a basic type, resolve it - this.resolvedType = (this.declaringField ? this.declaringField.parent : this.parent).lookupTypeOrEnum(this.type); - if (this.resolvedType instanceof Type) - this.typeDefault = null; - else // instanceof Enum - this.typeDefault = this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]; // first defined - } else if (this.options && this.options.proto3_optional) { - // proto3 scalar value marked optional; should default to null - this.typeDefault = null; - } +/***/ }), - // use explicitly set default value if present - if (this.options && this.options["default"] != null) { - this.typeDefault = this.options["default"]; - if (this.resolvedType instanceof Enum && typeof this.typeDefault === "string") - this.typeDefault = this.resolvedType.values[this.typeDefault]; - } +/***/ 4912: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - // remove unnecessary options - if (this.options) { - if (this.options.packed !== undefined && this.resolvedType && !(this.resolvedType instanceof Enum)) - delete this.options.packed; - if (!Object.keys(this.options).length) - this.options = undefined; - } +"use strict"; - // convert to internal data type if necesssary - if (this.long) { - this.typeDefault = util.Long.fromNumber(this.typeDefault, this.type.charAt(0) === "u"); - /* istanbul ignore else */ - if (Object.freeze) - Object.freeze(this.typeDefault); // long instances are meant to be immutable anyway (i.e. use small int cache that even requires it) +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - } else if (this.bytes && typeof this.typeDefault === "string") { - var buf; - if (util.base64.test(this.typeDefault)) - util.base64.decode(this.typeDefault, buf = util.newBuffer(util.base64.length(this.typeDefault)), 0); - else - util.utf8.write(this.typeDefault, buf = util.newBuffer(util.utf8.length(this.typeDefault)), 0); - this.typeDefault = buf; - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // take special care of maps and repeated fields - if (this.map) - this.defaultValue = util.emptyObject; - else if (this.repeated) - this.defaultValue = util.emptyArray; - else - this.defaultValue = this.typeDefault; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // ensure proper value on prototype - if (this.parent instanceof Type) - this.parent.ctor.prototype[this.name] = this.defaultValue; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - return ReflectionObject.prototype.resolve.call(this); -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Infers field features from legacy syntax that may have been specified differently. - * in older editions. - * @param {string|undefined} edition The edition this proto is on, or undefined if pre-editions - * @returns {object} The feature values to override + * The UpdateLdapTargetOutput model module. + * @module model/UpdateLdapTargetOutput + * @version 3.6.3 */ -Field.prototype._inferLegacyProtoFeatures = function _inferLegacyProtoFeatures(edition) { - if (edition !== "proto2" && edition !== "proto3") { - return {}; - } +var UpdateLdapTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateLdapTargetOutput. + * @alias module:model/UpdateLdapTargetOutput + */ + function UpdateLdapTargetOutput() { + _classCallCheck(this, UpdateLdapTargetOutput); - var features = {}; + UpdateLdapTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (this.rule === "required") { - features.field_presence = "LEGACY_REQUIRED"; - } - if (this.parent && types.defaults[this.type] === undefined) { - // We can't use resolvedType because types may not have been resolved yet. However, - // legacy groups are always in the same scope as the field so we don't have to do a - // full scan of the tree. - var type = this.parent.get(this.type.split(".").pop()); - if (type && type instanceof Type && type.group) { - features.message_encoding = "DELIMITED"; + + _createClass(UpdateLdapTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateLdapTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateLdapTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateLdapTargetOutput} The populated UpdateLdapTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateLdapTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); } + } + + return obj; } - if (this.getOption("packed") === true) { - features.repeated_field_encoding = "PACKED"; - } else if (this.getOption("packed") === false) { - features.repeated_field_encoding = "EXPANDED"; - } - return features; -}; + }]); + return UpdateLdapTargetOutput; +}(); /** - * @override + * @member {Number} target_id */ -Field.prototype._resolveFeatures = function _resolveFeatures(edition) { - return ReflectionObject.prototype._resolveFeatures.call(this, this._edition || edition); -}; -/** - * Decorator function as returned by {@link Field.d} and {@link MapField.d} (TypeScript). - * @typedef FieldDecorator - * @type {function} - * @param {Object} prototype Target prototype - * @param {string} fieldName Field name - * @returns {undefined} - */ -/** - * Field decorator (TypeScript). - * @name Field.d - * @function - * @param {number} fieldId Field id - * @param {"double"|"float"|"int32"|"uint32"|"sint32"|"fixed32"|"sfixed32"|"int64"|"uint64"|"sint64"|"fixed64"|"sfixed64"|"string"|"bool"|"bytes"|Object} fieldType Field type - * @param {"optional"|"required"|"repeated"} [fieldRule="optional"] Field rule - * @param {T} [defaultValue] Default value - * @returns {FieldDecorator} Decorator function - * @template T extends number | number[] | Long | Long[] | string | string[] | boolean | boolean[] | Uint8Array | Uint8Array[] | Buffer | Buffer[] - */ -Field.d = function decorateField(fieldId, fieldType, fieldRule, defaultValue) { +UpdateLdapTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateLdapTargetOutput; +exports["default"] = _default; - // submessage: decorate the submessage and use its name as the type - if (typeof fieldType === "function") - fieldType = util.decorateType(fieldType).name; +/***/ }), - // enum reference: create a reflected copy of the enum and keep reuseing it - else if (fieldType && typeof fieldType === "object") - fieldType = util.decorateEnum(fieldType).name; +/***/ 26477: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - return function fieldDecorator(prototype, fieldName) { - util.decorateType(prototype.constructor) - .add(new Field(fieldName, fieldId, fieldType, fieldRule, { "default": defaultValue })); - }; -}; +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Field decorator (TypeScript). - * @name Field.d - * @function - * @param {number} fieldId Field id - * @param {Constructor|string} fieldType Field type - * @param {"optional"|"required"|"repeated"} [fieldRule="optional"] Field rule - * @returns {FieldDecorator} Decorator function - * @template T extends Message - * @variation 2 + * The UpdateLinkedTarget model module. + * @module model/UpdateLinkedTarget + * @version 3.6.3 */ -// like Field.d but without a default value +var UpdateLinkedTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateLinkedTarget. + * @alias module:model/UpdateLinkedTarget + * @param name {String} Linked Target name + */ + function UpdateLinkedTarget(name) { + _classCallCheck(this, UpdateLinkedTarget); -// Sets up cyclic dependencies (called in index-light) -Field._configure = function configure(Type_) { - Type = Type_; -}; + UpdateLinkedTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), + _createClass(UpdateLinkedTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a UpdateLinkedTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateLinkedTarget} obj Optional instance to populate. + * @return {module:model/UpdateLinkedTarget} The populated UpdateLinkedTarget instance. + */ -/***/ 35504: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateLinkedTarget(); -"use strict"; + if (data.hasOwnProperty('add-hosts')) { + obj['add-hosts'] = _ApiClient["default"].convertToType(data['add-hosts'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -var protobuf = module.exports = __nccwpck_require__(88960); + if (data.hasOwnProperty('hosts')) { + obj['hosts'] = _ApiClient["default"].convertToType(data['hosts'], 'String'); + } -protobuf.build = "light"; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('parent-target-name')) { + obj['parent-target-name'] = _ApiClient["default"].convertToType(data['parent-target-name'], 'String'); + } + + if (data.hasOwnProperty('rm-hosts')) { + obj['rm-hosts'] = _ApiClient["default"].convertToType(data['rm-hosts'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + return UpdateLinkedTarget; +}(); /** - * A node-style callback as used by {@link load} and {@link Root#load}. - * @typedef LoadCallback - * @type {function} - * @param {Error|null} error Error, if any, otherwise `null` - * @param {Root} [root] Root, if there hasn't been an error - * @returns {undefined} + * A comma seperated list of new server hosts and server descriptions joined by semicolon ';' that will be added to the Linked Target hosts. + * @member {String} add-hosts */ + +UpdateLinkedTarget.prototype['add-hosts'] = undefined; /** - * Loads one or multiple .proto or preprocessed .json files into a common root namespace and calls the callback. - * @param {string|string[]} filename One or multiple files to load - * @param {Root} root Root namespace, defaults to create a new one if omitted. - * @param {LoadCallback} callback Callback function - * @returns {undefined} - * @see {@link Root#load} + * Description of the object + * @member {String} description */ -function load(filename, root, callback) { - if (typeof root === "function") { - callback = root; - root = new protobuf.Root(); - } else if (!root) - root = new protobuf.Root(); - return root.load(filename, callback); -} +UpdateLinkedTarget.prototype['description'] = undefined; /** - * Loads one or multiple .proto or preprocessed .json files into a common root namespace and calls the callback. - * @name load - * @function - * @param {string|string[]} filename One or multiple files to load - * @param {LoadCallback} callback Callback function - * @returns {undefined} - * @see {@link Root#load} - * @variation 2 + * A comma seperated list of server hosts and server descriptions joined by semicolon ';' (i.e. 'server-dev.com;My Dev server,server-prod.com;My Prod server description') + * @member {String} hosts */ -// function load(filename:string, callback:LoadCallback):undefined +UpdateLinkedTarget.prototype['hosts'] = undefined; /** - * Loads one or multiple .proto or preprocessed .json files into a common root namespace and returns a promise. - * @name load - * @function - * @param {string|string[]} filename One or multiple files to load - * @param {Root} [root] Root namespace, defaults to create a new one if omitted. - * @returns {Promise} Promise - * @see {@link Root#load} - * @variation 3 + * Set output format to JSON + * @member {Boolean} json + * @default false */ -// function load(filename:string, [root:Root]):Promise -protobuf.load = load; +UpdateLinkedTarget.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ +UpdateLinkedTarget.prototype['keep-prev-version'] = undefined; /** - * Synchronously loads one or multiple .proto or preprocessed .json files into a common root namespace (node only). - * @param {string|string[]} filename One or multiple files to load - * @param {Root} [root] Root namespace, defaults to create a new one if omitted. - * @returns {Root} Root namespace - * @throws {Error} If synchronous fetching is not supported (i.e. in browsers) or if a file's syntax is invalid - * @see {@link Root#loadSync} + * Linked Target name + * @member {String} name */ -function loadSync(filename, root) { - if (!root) - root = new protobuf.Root(); - return root.loadSync(filename); -} -protobuf.loadSync = loadSync; +UpdateLinkedTarget.prototype['name'] = undefined; +/** + * New Linked Target name + * @member {String} new-name + */ -// Serialization -protobuf.encoder = __nccwpck_require__(67641); -protobuf.decoder = __nccwpck_require__(67682); -protobuf.verifier = __nccwpck_require__(7639); -protobuf.converter = __nccwpck_require__(92437); +UpdateLinkedTarget.prototype['new-name'] = undefined; +/** + * The parent Target name + * @member {String} parent-target-name + */ -// Reflection -protobuf.ReflectionObject = __nccwpck_require__(67946); -protobuf.Namespace = __nccwpck_require__(21946); -protobuf.Root = __nccwpck_require__(8185); -protobuf.Enum = __nccwpck_require__(73528); -protobuf.Type = __nccwpck_require__(70901); -protobuf.Field = __nccwpck_require__(30457); -protobuf.OneOf = __nccwpck_require__(84624); -protobuf.MapField = __nccwpck_require__(58791); -protobuf.Service = __nccwpck_require__(30338); -protobuf.Method = __nccwpck_require__(59988); +UpdateLinkedTarget.prototype['parent-target-name'] = undefined; +/** + * Comma separated list of existing hosts that will be removed from Linked Target hosts. + * @member {String} rm-hosts + */ -// Runtime -protobuf.Message = __nccwpck_require__(69450); -protobuf.wrappers = __nccwpck_require__(59781); +UpdateLinkedTarget.prototype['rm-hosts'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -// Utility -protobuf.types = __nccwpck_require__(21024); -protobuf.util = __nccwpck_require__(39609); +UpdateLinkedTarget.prototype['token'] = undefined; +/** + * Specifies the hosts type, relevant only when working without parent target + * @member {String} type + */ -// Set up possibly cyclic reflection dependencies -protobuf.ReflectionObject._configure(protobuf.Root); -protobuf.Namespace._configure(protobuf.Type, protobuf.Service, protobuf.Enum); -protobuf.Root._configure(protobuf.Type); -protobuf.Field._configure(protobuf.Type); +UpdateLinkedTarget.prototype['type'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +UpdateLinkedTarget.prototype['uid-token'] = undefined; +var _default = UpdateLinkedTarget; +exports["default"] = _default; /***/ }), -/***/ 88960: +/***/ 30593: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var protobuf = exports; -/** - * Build type, one of `"full"`, `"light"` or `"minimal"`. - * @name build - * @type {string} - * @const - */ -protobuf.build = "minimal"; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -// Serialization -protobuf.Writer = __nccwpck_require__(33654); -protobuf.BufferWriter = __nccwpck_require__(3751); -protobuf.Reader = __nccwpck_require__(46969); -protobuf.BufferReader = __nccwpck_require__(42423); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -// Utility -protobuf.util = __nccwpck_require__(22857); -protobuf.rpc = __nccwpck_require__(9882); -protobuf.roots = __nccwpck_require__(34460); -protobuf.configure = configure; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -/* istanbul ignore next */ /** - * Reconfigures the library according to the environment. - * @returns {undefined} + * The UpdateNativeK8STarget model module. + * @module model/UpdateNativeK8STarget + * @version 3.6.3 */ -function configure() { - protobuf.util._configure(); - protobuf.Writer._configure(protobuf.BufferWriter); - protobuf.Reader._configure(protobuf.BufferReader); -} +var UpdateNativeK8STarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateNativeK8STarget. + * @alias module:model/UpdateNativeK8STarget + * @param k8sClusterCaCert {String} K8S cluster CA certificate + * @param k8sClusterEndpoint {String} K8S cluster URL endpoint + * @param k8sClusterToken {String} K8S cluster Bearer token + * @param name {String} Target name + */ + function UpdateNativeK8STarget(k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name) { + _classCallCheck(this, UpdateNativeK8STarget); -// Set up buffer utility according to the environment -configure(); + UpdateNativeK8STarget.initialize(this, k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/***/ }), + _createClass(UpdateNativeK8STarget, null, [{ + key: "initialize", + value: function initialize(obj, k8sClusterCaCert, k8sClusterEndpoint, k8sClusterToken, name) { + obj['k8s-cluster-ca-cert'] = k8sClusterCaCert; + obj['k8s-cluster-endpoint'] = k8sClusterEndpoint; + obj['k8s-cluster-token'] = k8sClusterToken; + obj['name'] = name; + } + /** + * Constructs a UpdateNativeK8STarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateNativeK8STarget} obj Optional instance to populate. + * @return {module:model/UpdateNativeK8STarget} The populated UpdateNativeK8STarget instance. + */ -/***/ 58513: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateNativeK8STarget(); -"use strict"; + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } -var protobuf = module.exports = __nccwpck_require__(35504); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -protobuf.build = "full"; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -// Parser -protobuf.tokenize = __nccwpck_require__(580); -protobuf.parse = __nccwpck_require__(36409); -protobuf.common = __nccwpck_require__(60872); + if (data.hasOwnProperty('k8s-auth-type')) { + obj['k8s-auth-type'] = _ApiClient["default"].convertToType(data['k8s-auth-type'], 'String'); + } -// Configure parser -protobuf.Root._configure(protobuf.Type, protobuf.parse, protobuf.common); + if (data.hasOwnProperty('k8s-client-certificate')) { + obj['k8s-client-certificate'] = _ApiClient["default"].convertToType(data['k8s-client-certificate'], 'String'); + } + if (data.hasOwnProperty('k8s-client-key')) { + obj['k8s-client-key'] = _ApiClient["default"].convertToType(data['k8s-client-key'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('k8s-cluster-ca-cert')) { + obj['k8s-cluster-ca-cert'] = _ApiClient["default"].convertToType(data['k8s-cluster-ca-cert'], 'String'); + } -/***/ 58791: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('k8s-cluster-endpoint')) { + obj['k8s-cluster-endpoint'] = _ApiClient["default"].convertToType(data['k8s-cluster-endpoint'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('k8s-cluster-token')) { + obj['k8s-cluster-token'] = _ApiClient["default"].convertToType(data['k8s-cluster-token'], 'String'); + } -module.exports = MapField; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -// extends Field -var Field = __nccwpck_require__(30457); -((MapField.prototype = Object.create(Field.prototype)).constructor = MapField).className = "MapField"; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -var types = __nccwpck_require__(21024), - util = __nccwpck_require__(39609); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -/** - * Constructs a new map field instance. - * @classdesc Reflected map field. - * @extends FieldBase - * @constructor - * @param {string} name Unique name within its namespace - * @param {number} id Unique id within its namespace - * @param {string} keyType Key type - * @param {string} type Value type - * @param {Object.} [options] Declared options - * @param {string} [comment] Comment associated with this field - */ -function MapField(name, id, keyType, type, options, comment) { - Field.call(this, name, id, type, undefined, undefined, options, comment); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - /* istanbul ignore if */ - if (!util.isString(keyType)) - throw TypeError("keyType must be a string"); + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - /** - * Key type. - * @type {string} - */ - this.keyType = keyType; // toJSON, marker + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - /** - * Resolved key type if not a basic type. - * @type {ReflectionObject|null} - */ - this.resolvedKeyType = null; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } - // Overrides Field#map - this.map = true; -} + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + + if (data.hasOwnProperty('use-gw-service-account')) { + obj['use-gw-service-account'] = _ApiClient["default"].convertToType(data['use-gw-service-account'], 'Boolean'); + } + } + + return obj; + } + }]); + return UpdateNativeK8STarget; +}(); /** - * Map field descriptor. - * @interface IMapField - * @extends {IField} - * @property {string} keyType Key type + * Deprecated - use description + * @member {String} comment */ + +UpdateNativeK8STarget.prototype['comment'] = undefined; /** - * Extension map field descriptor. - * @interface IExtensionMapField - * @extends IMapField - * @property {string} extend Extended type + * Description of the object + * @member {String} description */ +UpdateNativeK8STarget.prototype['description'] = undefined; /** - * Constructs a map field from a map field descriptor. - * @param {string} name Field name - * @param {IMapField} json Map field descriptor - * @returns {MapField} Created map field - * @throws {TypeError} If arguments are invalid + * Set output format to JSON + * @member {Boolean} json + * @default false */ -MapField.fromJSON = function fromJSON(name, json) { - return new MapField(name, json.id, json.keyType, json.type, json.options, json.comment); -}; +UpdateNativeK8STarget.prototype['json'] = false; /** - * Converts this map field to a map field descriptor. - * @param {IToJSONOptions} [toJSONOptions] JSON conversion options - * @returns {IMapField} Map field descriptor + * K8S auth type [token/certificate] + * @member {String} k8s-auth-type + * @default 'token' */ -MapField.prototype.toJSON = function toJSON(toJSONOptions) { - var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false; - return util.toObject([ - "keyType" , this.keyType, - "type" , this.type, - "id" , this.id, - "extend" , this.extend, - "options" , this.options, - "comment" , keepComments ? this.comment : undefined - ]); -}; +UpdateNativeK8STarget.prototype['k8s-auth-type'] = 'token'; /** - * @override + * Content of the k8 client certificate (PEM format) in a Base64 format + * @member {String} k8s-client-certificate */ -MapField.prototype.resolve = function resolve() { - if (this.resolved) - return this; - - // Besides a value type, map fields have a key type that may be "any scalar type except for floating point types and bytes" - if (types.mapKey[this.keyType] === undefined) - throw Error("invalid key type: " + this.keyType); - - return Field.prototype.resolve.call(this); -}; +UpdateNativeK8STarget.prototype['k8s-client-certificate'] = undefined; /** - * Map field decorator (TypeScript). - * @name MapField.d - * @function - * @param {number} fieldId Field id - * @param {"int32"|"uint32"|"sint32"|"fixed32"|"sfixed32"|"int64"|"uint64"|"sint64"|"fixed64"|"sfixed64"|"bool"|"string"} fieldKeyType Field key type - * @param {"double"|"float"|"int32"|"uint32"|"sint32"|"fixed32"|"sfixed32"|"int64"|"uint64"|"sint64"|"fixed64"|"sfixed64"|"bool"|"string"|"bytes"|Object|Constructor<{}>} fieldValueType Field value type - * @returns {FieldDecorator} Decorator function - * @template T extends { [key: string]: number | Long | string | boolean | Uint8Array | Buffer | number[] | Message<{}> } + * Content of the k8 client private key (PEM format) in a Base64 format + * @member {String} k8s-client-key */ -MapField.d = function decorateMapField(fieldId, fieldKeyType, fieldValueType) { - - // submessage value: decorate the submessage and use its name as the type - if (typeof fieldValueType === "function") - fieldValueType = util.decorateType(fieldValueType).name; - - // enum reference value: create a reflected copy of the enum and keep reuseing it - else if (fieldValueType && typeof fieldValueType === "object") - fieldValueType = util.decorateEnum(fieldValueType).name; - - return function mapFieldDecorator(prototype, fieldName) { - util.decorateType(prototype.constructor) - .add(new MapField(fieldName, fieldId, fieldKeyType, fieldValueType)); - }; -}; - - -/***/ }), - -/***/ 69450: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - -module.exports = Message; - -var util = __nccwpck_require__(22857); +UpdateNativeK8STarget.prototype['k8s-client-key'] = undefined; /** - * Constructs a new message instance. - * @classdesc Abstract runtime message. - * @constructor - * @param {Properties} [properties] Properties to set - * @template T extends object = object + * K8S cluster CA certificate + * @member {String} k8s-cluster-ca-cert + * @default 'dummy_val' */ -function Message(properties) { - // not used internally - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - this[keys[i]] = properties[keys[i]]; -} +UpdateNativeK8STarget.prototype['k8s-cluster-ca-cert'] = 'dummy_val'; /** - * Reference to the reflected type. - * @name Message.$type - * @type {Type} - * @readonly + * K8S cluster URL endpoint + * @member {String} k8s-cluster-endpoint + * @default 'dummy_val' */ +UpdateNativeK8STarget.prototype['k8s-cluster-endpoint'] = 'dummy_val'; /** - * Reference to the reflected type. - * @name Message#$type - * @type {Type} - * @readonly + * K8S cluster Bearer token + * @member {String} k8s-cluster-token + * @default 'dummy_val' */ -/*eslint-disable valid-jsdoc*/ - +UpdateNativeK8STarget.prototype['k8s-cluster-token'] = 'dummy_val'; /** - * Creates a new message of this type using the specified properties. - * @param {Object.} [properties] Properties to set - * @returns {Message} Message instance - * @template T extends Message - * @this Constructor + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -Message.create = function create(properties) { - return this.$type.create(properties); -}; +UpdateNativeK8STarget.prototype['keep-prev-version'] = undefined; /** - * Encodes a message of this type. - * @param {T|Object.} message Message to encode - * @param {Writer} [writer] Writer to use - * @returns {Writer} Writer - * @template T extends Message - * @this Constructor + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -Message.encode = function encode(message, writer) { - return this.$type.encode(message, writer); -}; +UpdateNativeK8STarget.prototype['key'] = undefined; /** - * Encodes a message of this type preceeded by its length as a varint. - * @param {T|Object.} message Message to encode - * @param {Writer} [writer] Writer to use - * @returns {Writer} Writer - * @template T extends Message - * @this Constructor + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -Message.encodeDelimited = function encodeDelimited(message, writer) { - return this.$type.encodeDelimited(message, writer); -}; +UpdateNativeK8STarget.prototype['max-versions'] = undefined; /** - * Decodes a message of this type. - * @name Message.decode - * @function - * @param {Reader|Uint8Array} reader Reader or buffer to decode - * @returns {T} Decoded message - * @template T extends Message - * @this Constructor + * Target name + * @member {String} name */ -Message.decode = function decode(reader) { - return this.$type.decode(reader); -}; +UpdateNativeK8STarget.prototype['name'] = undefined; /** - * Decodes a message of this type preceeded by its length as a varint. - * @name Message.decodeDelimited - * @function - * @param {Reader|Uint8Array} reader Reader or buffer to decode - * @returns {T} Decoded message - * @template T extends Message - * @this Constructor + * New target name + * @member {String} new-name */ -Message.decodeDelimited = function decodeDelimited(reader) { - return this.$type.decodeDelimited(reader); -}; +UpdateNativeK8STarget.prototype['new-name'] = undefined; /** - * Verifies a message of this type. - * @name Message.verify - * @function - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -Message.verify = function verify(message) { - return this.$type.verify(message); -}; +UpdateNativeK8STarget.prototype['token'] = undefined; /** - * Creates a new message of this type from a plain object. Also converts values to their respective internal types. - * @param {Object.} object Plain object - * @returns {T} Message instance - * @template T extends Message - * @this Constructor + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -Message.fromObject = function fromObject(object) { - return this.$type.fromObject(object); -}; +UpdateNativeK8STarget.prototype['uid-token'] = undefined; /** - * Creates a plain object from a message of this type. Also converts values to other types if specified. - * @param {T} message Message instance - * @param {IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - * @template T extends Message - * @this Constructor + * Deprecated + * @member {Boolean} update-version */ -Message.toObject = function toObject(message, options) { - return this.$type.toObject(message, options); -}; +UpdateNativeK8STarget.prototype['update-version'] = undefined; /** - * Converts this message to JSON. - * @returns {Object.} JSON object + * Use the GW's service account + * @member {Boolean} use-gw-service-account */ -Message.prototype.toJSON = function toJSON() { - return this.$type.toObject(this, util.toJSONOptions); -}; -/*eslint-enable valid-jsdoc*/ +UpdateNativeK8STarget.prototype['use-gw-service-account'] = undefined; +var _default = UpdateNativeK8STarget; +exports["default"] = _default; /***/ }), -/***/ 59988: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 99636: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -module.exports = Method; - -// extends ReflectionObject -var ReflectionObject = __nccwpck_require__(67946); -((Method.prototype = Object.create(ReflectionObject.prototype)).constructor = Method).className = "Method"; - -var util = __nccwpck_require__(39609); - -/** - * Constructs a new service method instance. - * @classdesc Reflected service method. - * @extends ReflectionObject - * @constructor - * @param {string} name Method name - * @param {string|undefined} type Method type, usually `"rpc"` - * @param {string} requestType Request message type - * @param {string} responseType Response message type - * @param {boolean|Object.} [requestStream] Whether the request is streamed - * @param {boolean|Object.} [responseStream] Whether the response is streamed - * @param {Object.} [options] Declared options - * @param {string} [comment] The comment for this method - * @param {Object.} [parsedOptions] Declared options, properly parsed into an object - */ -function Method(name, type, requestType, responseType, requestStream, responseStream, options, comment, parsedOptions) { - - /* istanbul ignore next */ - if (util.isObject(requestStream)) { - options = requestStream; - requestStream = responseStream = undefined; - } else if (util.isObject(responseStream)) { - options = responseStream; - responseStream = undefined; - } - - /* istanbul ignore if */ - if (!(type === undefined || util.isString(type))) - throw TypeError("type must be a string"); - - /* istanbul ignore if */ - if (!util.isString(requestType)) - throw TypeError("requestType must be a string"); - - /* istanbul ignore if */ - if (!util.isString(responseType)) - throw TypeError("responseType must be a string"); - ReflectionObject.call(this, name, options); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - /** - * Method type. - * @type {string} - */ - this.type = type || "rpc"; // toJSON +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - /** - * Request type. - * @type {string} - */ - this.requestType = requestType; // toJSON, marker +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - /** - * Whether requests are streamed or not. - * @type {boolean|undefined} - */ - this.requestStream = requestStream ? true : undefined; // toJSON +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - /** - * Response type. - * @type {string} - */ - this.responseType = responseType; // toJSON +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - /** - * Whether responses are streamed or not. - * @type {boolean|undefined} - */ - this.responseStream = responseStream ? true : undefined; // toJSON +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - /** - * Resolved request type. - * @type {Type|null} - */ - this.resolvedRequestType = null; +/** + * The UpdateNativeK8STargetOutput model module. + * @module model/UpdateNativeK8STargetOutput + * @version 3.6.3 + */ +var UpdateNativeK8STargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateNativeK8STargetOutput. + * @alias module:model/UpdateNativeK8STargetOutput + */ + function UpdateNativeK8STargetOutput() { + _classCallCheck(this, UpdateNativeK8STargetOutput); - /** - * Resolved response type. - * @type {Type|null} - */ - this.resolvedResponseType = null; + UpdateNativeK8STargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - /** - * Comment for this method - * @type {string|null} - */ - this.comment = comment; + _createClass(UpdateNativeK8STargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Options properly parsed into an object + * Constructs a UpdateNativeK8STargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateNativeK8STargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateNativeK8STargetOutput} The populated UpdateNativeK8STargetOutput instance. */ - this.parsedOptions = parsedOptions; -} -/** - * Method descriptor. - * @interface IMethod - * @property {string} [type="rpc"] Method type - * @property {string} requestType Request type - * @property {string} responseType Response type - * @property {boolean} [requestStream=false] Whether requests are streamed - * @property {boolean} [responseStream=false] Whether responses are streamed - * @property {Object.} [options] Method options - * @property {string} comment Method comments - * @property {Object.} [parsedOptions] Method options properly parsed into an object - */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateNativeK8STargetOutput(); -/** - * Constructs a method from a method descriptor. - * @param {string} name Method name - * @param {IMethod} json Method descriptor - * @returns {Method} Created method - * @throws {TypeError} If arguments are invalid - */ -Method.fromJSON = function fromJSON(name, json) { - return new Method(name, json.type, json.requestType, json.responseType, json.requestStream, json.responseStream, json.options, json.comment, json.parsedOptions); -}; + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } -/** - * Converts this method to a method descriptor. - * @param {IToJSONOptions} [toJSONOptions] JSON conversion options - * @returns {IMethod} Method descriptor - */ -Method.prototype.toJSON = function toJSON(toJSONOptions) { - var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false; - return util.toObject([ - "type" , this.type !== "rpc" && /* istanbul ignore next */ this.type || undefined, - "requestType" , this.requestType, - "requestStream" , this.requestStream, - "responseType" , this.responseType, - "responseStream" , this.responseStream, - "options" , this.options, - "comment" , keepComments ? this.comment : undefined, - "parsedOptions" , this.parsedOptions, - ]); -}; + return obj; + } + }]); + return UpdateNativeK8STargetOutput; +}(); /** - * @override + * @member {Number} target_id */ -Method.prototype.resolve = function resolve() { - /* istanbul ignore if */ - if (this.resolved) - return this; - - this.resolvedRequestType = this.parent.lookupType(this.requestType); - this.resolvedResponseType = this.parent.lookupType(this.responseType); - - return ReflectionObject.prototype.resolve.call(this); -}; +UpdateNativeK8STargetOutput.prototype['target_id'] = undefined; +var _default = UpdateNativeK8STargetOutput; +exports["default"] = _default; /***/ }), -/***/ 21946: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 94701: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -module.exports = Namespace; - -// extends ReflectionObject -var ReflectionObject = __nccwpck_require__(67946); -((Namespace.prototype = Object.create(ReflectionObject.prototype)).constructor = Namespace).className = "Namespace"; -var Field = __nccwpck_require__(30457), - util = __nccwpck_require__(39609), - OneOf = __nccwpck_require__(84624); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var Type, // cyclic - Service, - Enum; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -/** - * Constructs a new namespace instance. - * @name Namespace - * @classdesc Reflected namespace. - * @extends NamespaceBase - * @constructor - * @param {string} name Namespace name - * @param {Object.} [options] Declared options - */ +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/** - * Constructs a namespace from JSON. - * @memberof Namespace - * @function - * @param {string} name Namespace name - * @param {Object.} json JSON object - * @returns {Namespace} Created namespace - * @throws {TypeError} If arguments are invalid - */ -Namespace.fromJSON = function fromJSON(name, json) { - return new Namespace(name, json.options).addJSON(json.nested); -}; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/** - * Converts an array of reflection objects to JSON. - * @memberof Namespace - * @param {ReflectionObject[]} array Object array - * @param {IToJSONOptions} [toJSONOptions] JSON conversion options - * @returns {Object.|undefined} JSON object or `undefined` when array is empty - */ -function arrayToJSON(array, toJSONOptions) { - if (!(array && array.length)) - return undefined; - var obj = {}; - for (var i = 0; i < array.length; ++i) - obj[array[i].name] = array[i].toJSON(toJSONOptions); - return obj; -} +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -Namespace.arrayToJSON = arrayToJSON; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Tests if the specified id is reserved. - * @param {Array.|undefined} reserved Array of reserved ranges and names - * @param {number} id Id to test - * @returns {boolean} `true` if reserved, otherwise `false` + * The UpdateOidcApp model module. + * @module model/UpdateOidcApp + * @version 3.6.3 */ -Namespace.isReservedId = function isReservedId(reserved, id) { - if (reserved) - for (var i = 0; i < reserved.length; ++i) - if (typeof reserved[i] !== "string" && reserved[i][0] <= id && reserved[i][1] > id) - return true; - return false; -}; +var UpdateOidcApp = /*#__PURE__*/function () { + /** + * Constructs a new UpdateOidcApp. + * @alias module:model/UpdateOidcApp + * @param name {String} OIDC application name + */ + function UpdateOidcApp(name) { + _classCallCheck(this, UpdateOidcApp); -/** - * Tests if the specified name is reserved. - * @param {Array.|undefined} reserved Array of reserved ranges and names - * @param {string} name Name to test - * @returns {boolean} `true` if reserved, otherwise `false` - */ -Namespace.isReservedName = function isReservedName(reserved, name) { - if (reserved) - for (var i = 0; i < reserved.length; ++i) - if (reserved[i] === name) - return true; - return false; -}; + UpdateOidcApp.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/** - * Not an actual constructor. Use {@link Namespace} instead. - * @classdesc Base class of all reflection objects containing nested objects. This is not an actual class but here for the sake of having consistent type definitions. - * @exports NamespaceBase - * @extends ReflectionObject - * @abstract - * @constructor - * @param {string} name Namespace name - * @param {Object.} [options] Declared options - * @see {@link Namespace} - */ -function Namespace(name, options) { - ReflectionObject.call(this, name, options); + _createClass(UpdateOidcApp, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Nested objects by name. - * @type {Object.|undefined} + * Constructs a UpdateOidcApp from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateOidcApp} obj Optional instance to populate. + * @return {module:model/UpdateOidcApp} The populated UpdateOidcApp instance. */ - this.nested = undefined; // toJSON - /** - * Cached nested objects as an array. - * @type {ReflectionObject[]|null} - * @private - */ - this._nestedArray = null; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateOidcApp(); - /** - * Cache lookup calls for any objects contains anywhere under this namespace. - * This drastically speeds up resolve for large cross-linked protos where the same - * types are looked up repeatedly. - * @type {Object.} - * @private - */ - this._lookupCache = {}; + if (data.hasOwnProperty('audience')) { + obj['audience'] = _ApiClient["default"].convertToType(data['audience'], 'String'); + } - /** - * Whether or not objects contained in this namespace need feature resolution. - * @type {boolean} - * @protected - */ - this._needsRecursiveFeatureResolution = true; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - /** - * Whether or not objects contained in this namespace need a resolve. - * @type {boolean} - * @protected - */ - this._needsRecursiveResolve = true; -} + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -function clearCache(namespace) { - namespace._nestedArray = null; - namespace._lookupCache = {}; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - // Also clear parent caches, since they include nested lookups. - var parent = namespace; - while(parent = parent.parent) { - parent._lookupCache = {}; + if (data.hasOwnProperty('permission-assignment')) { + obj['permission-assignment'] = _ApiClient["default"].convertToType(data['permission-assignment'], 'String'); + } + + if (data.hasOwnProperty('public')) { + obj['public'] = _ApiClient["default"].convertToType(data['public'], 'Boolean'); + } + + if (data.hasOwnProperty('redirect-uris')) { + obj['redirect-uris'] = _ApiClient["default"].convertToType(data['redirect-uris'], 'String'); + } + + if (data.hasOwnProperty('scopes')) { + obj['scopes'] = _ApiClient["default"].convertToType(data['scopes'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } - return namespace; -} + }]); + return UpdateOidcApp; +}(); /** - * Nested objects of this namespace as an array for iteration. - * @name NamespaceBase#nestedArray - * @type {ReflectionObject[]} - * @readonly + * A comma separated list of allowed audiences + * @member {String} audience */ -Object.defineProperty(Namespace.prototype, "nestedArray", { - get: function() { - return this._nestedArray || (this._nestedArray = util.toArray(this.nested)); - } -}); + +UpdateOidcApp.prototype['audience'] = undefined; /** - * Namespace descriptor. - * @interface INamespace - * @property {Object.} [options] Namespace options - * @property {Object.} [nested] Nested object descriptors + * Set output format to JSON + * @member {Boolean} json + * @default false */ +UpdateOidcApp.prototype['json'] = false; /** - * Any extension field descriptor. - * @typedef AnyExtensionField - * @type {IExtensionField|IExtensionMapField} + * The name of a key that used to encrypt the OIDC application (if empty, the account default protectionKey key will be used) + * @member {String} key */ +UpdateOidcApp.prototype['key'] = undefined; /** - * Any nested object descriptor. - * @typedef AnyNestedObject - * @type {IEnum|IType|IService|AnyExtensionField|INamespace|IOneOf} + * OIDC application name + * @member {String} name */ +UpdateOidcApp.prototype['name'] = undefined; /** - * Converts this namespace to a namespace descriptor. - * @param {IToJSONOptions} [toJSONOptions] JSON conversion options - * @returns {INamespace} Namespace descriptor + * A json string defining the access permission assignment for this app + * @member {String} permission-assignment */ -Namespace.prototype.toJSON = function toJSON(toJSONOptions) { - return util.toObject([ - "options" , this.options, - "nested" , arrayToJSON(this.nestedArray, toJSONOptions) - ]); -}; +UpdateOidcApp.prototype['permission-assignment'] = undefined; /** - * Adds nested objects to this namespace from nested object descriptors. - * @param {Object.} nestedJson Any nested object descriptors - * @returns {Namespace} `this` + * Set to true if the app is public (cannot keep secrets) + * @member {Boolean} public */ -Namespace.prototype.addJSON = function addJSON(nestedJson) { - var ns = this; - /* istanbul ignore else */ - if (nestedJson) { - for (var names = Object.keys(nestedJson), i = 0, nested; i < names.length; ++i) { - nested = nestedJson[names[i]]; - ns.add( // most to least likely - ( nested.fields !== undefined - ? Type.fromJSON - : nested.values !== undefined - ? Enum.fromJSON - : nested.methods !== undefined - ? Service.fromJSON - : nested.id !== undefined - ? Field.fromJSON - : Namespace.fromJSON )(names[i], nested) - ); - } - } - return this; -}; +UpdateOidcApp.prototype['public'] = undefined; /** - * Gets the nested object of the specified name. - * @param {string} name Nested object name - * @returns {ReflectionObject|null} The reflection object or `null` if it doesn't exist + * A comma separated list of allowed redirect uris + * @member {String} redirect-uris */ -Namespace.prototype.get = function get(name) { - return this.nested && this.nested[name] - || null; -}; +UpdateOidcApp.prototype['redirect-uris'] = undefined; /** - * Gets the values of the nested {@link Enum|enum} of the specified name. - * This methods differs from {@link Namespace#get|get} in that it returns an enum's values directly and throws instead of returning `null`. - * @param {string} name Nested enum name - * @returns {Object.} Enum values - * @throws {Error} If there is no such enum + * A comma separated list of allowed scopes + * @member {String} scopes + * @default 'openid' */ -Namespace.prototype.getEnum = function getEnum(name) { - if (this.nested && this.nested[name] instanceof Enum) - return this.nested[name].values; - throw Error("no such enum: " + name); -}; +UpdateOidcApp.prototype['scopes'] = 'openid'; /** - * Adds a nested object to this namespace. - * @param {ReflectionObject} object Nested object to add - * @returns {Namespace} `this` - * @throws {TypeError} If arguments are invalid - * @throws {Error} If there is already a nested object with this name + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -Namespace.prototype.add = function add(object) { - if (!(object instanceof Field && object.extend !== undefined || object instanceof Type || object instanceof OneOf || object instanceof Enum || object instanceof Service || object instanceof Namespace)) - throw TypeError("object must be a valid nested object"); +UpdateOidcApp.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - if (!this.nested) - this.nested = {}; - else { - var prev = this.get(object.name); - if (prev) { - if (prev instanceof Namespace && object instanceof Namespace && !(prev instanceof Type || prev instanceof Service)) { - // replace plain namespace but keep existing nested elements and options - var nested = prev.nestedArray; - for (var i = 0; i < nested.length; ++i) - object.add(nested[i]); - this.remove(prev); - if (!this.nested) - this.nested = {}; - object.setOptions(prev.options, true); +UpdateOidcApp.prototype['uid-token'] = undefined; +var _default = UpdateOidcApp; +exports["default"] = _default; - } else - throw Error("duplicate name '" + object.name + "' in " + this); - } - } - this.nested[object.name] = object; +/***/ }), - if (!(this instanceof Type || this instanceof Service || this instanceof Enum || this instanceof Field)) { - // This is a package or a root namespace. - if (!object._edition) { - // Make sure that some edition is set if it hasn't already been specified. - object._edition = object._defaultEdition; - } - } +/***/ 47356: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - this._needsRecursiveFeatureResolution = true; - this._needsRecursiveResolve = true; +"use strict"; - // Also clear parent caches, since they need to recurse down. - var parent = this; - while(parent = parent.parent) { - parent._needsRecursiveFeatureResolution = true; - parent._needsRecursiveResolve = true; - } - object.onAdd(this); - return clearCache(this); -}; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/** - * Removes a nested object from this namespace. - * @param {ReflectionObject} object Nested object to remove - * @returns {Namespace} `this` - * @throws {TypeError} If arguments are invalid - * @throws {Error} If `object` is not a member of this namespace - */ -Namespace.prototype.remove = function remove(object) { +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (!(object instanceof ReflectionObject)) - throw TypeError("object must be a ReflectionObject"); - if (object.parent !== this) - throw Error(object + " is not a member of " + this); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - delete this.nested[object.name]; - if (!Object.keys(this.nested).length) - this.nested = undefined; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - object.onRemove(this); - return clearCache(this); -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Defines additial namespaces within this one if not yet existing. - * @param {string|string[]} path Path to create - * @param {*} [json] Nested types to create from JSON - * @returns {Namespace} Pointer to the last namespace created or `this` if path is empty + * The UpdateOutput model module. + * @module model/UpdateOutput + * @version 3.6.3 */ -Namespace.prototype.define = function define(path, json) { +var UpdateOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateOutput. + * @alias module:model/UpdateOutput + */ + function UpdateOutput() { + _classCallCheck(this, UpdateOutput); - if (util.isString(path)) - path = path.split("."); - else if (!Array.isArray(path)) - throw TypeError("illegal path"); - if (path && path.length && path[0] === "") - throw Error("path must be relative"); + UpdateOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - var ptr = this; - while (path.length > 0) { - var part = path.shift(); - if (ptr.nested && ptr.nested[part]) { - ptr = ptr.nested[part]; - if (!(ptr instanceof Namespace)) - throw Error("path conflicts with non-namespace objects"); - } else - ptr.add(ptr = new Namespace(part)); + + _createClass(UpdateOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateOutput} obj Optional instance to populate. + * @return {module:model/UpdateOutput} The populated UpdateOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateOutput(); + + if (data.hasOwnProperty('changelog')) { + obj['changelog'] = _ApiClient["default"].convertToType(data['changelog'], 'String'); + } + + if (data.hasOwnProperty('latest')) { + obj['latest'] = _ApiClient["default"].convertToType(data['latest'], 'String'); + } + + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); + } + } + + return obj; } - if (json) - ptr.addJSON(json); - return ptr; -}; + }]); + return UpdateOutput; +}(); /** - * Resolves this namespace's and all its nested objects' type references. Useful to validate a reflection tree, but comes at a cost. - * @returns {Namespace} `this` + * @member {String} changelog */ -Namespace.prototype.resolveAll = function resolveAll() { - if (!this._needsRecursiveResolve) return this; - this._resolveFeaturesRecursive(this._edition); - var nested = this.nestedArray, i = 0; - this.resolve(); - while (i < nested.length) - if (nested[i] instanceof Namespace) - nested[i++].resolveAll(); - else - nested[i++].resolve(); - this._needsRecursiveResolve = false; - return this; -}; +UpdateOutput.prototype['changelog'] = undefined; +/** + * @member {String} latest + */ +UpdateOutput.prototype['latest'] = undefined; /** - * @override + * @member {Boolean} updated */ -Namespace.prototype._resolveFeaturesRecursive = function _resolveFeaturesRecursive(edition) { - if (!this._needsRecursiveFeatureResolution) return this; - this._needsRecursiveFeatureResolution = false; - edition = this._edition || edition; +UpdateOutput.prototype['updated'] = undefined; +var _default = UpdateOutput; +exports["default"] = _default; - ReflectionObject.prototype._resolveFeaturesRecursive.call(this, edition); - this.nestedArray.forEach(nested => { - nested._resolveFeaturesRecursive(edition); - }); - return this; -}; +/***/ }), -/** - * Recursively looks up the reflection object matching the specified path in the scope of this namespace. - * @param {string|string[]} path Path to look up - * @param {*|Array.<*>} filterTypes Filter types, any combination of the constructors of `protobuf.Type`, `protobuf.Enum`, `protobuf.Service` etc. - * @param {boolean} [parentAlreadyChecked=false] If known, whether the parent has already been checked - * @returns {ReflectionObject|null} Looked up object or `null` if none could be found - */ -Namespace.prototype.lookup = function lookup(path, filterTypes, parentAlreadyChecked) { - /* istanbul ignore next */ - if (typeof filterTypes === "boolean") { - parentAlreadyChecked = filterTypes; - filterTypes = undefined; - } else if (filterTypes && !Array.isArray(filterTypes)) - filterTypes = [ filterTypes ]; +/***/ 79264: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - if (util.isString(path) && path.length) { - if (path === ".") - return this.root; - path = path.split("."); - } else if (!path.length) - return this; +"use strict"; - var flatPath = path.join("."); - // Start at root if path is absolute - if (path[0] === "") - return this.root.lookup(path.slice(1), filterTypes); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // Early bailout for objects with matching absolute paths - var found = this.root._fullyQualifiedObjects && this.root._fullyQualifiedObjects["." + flatPath]; - if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) { - return found; - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - // Do a regular lookup at this namespace and below - found = this._lookupImpl(path, flatPath); - if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) { - return found; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (parentAlreadyChecked) - return null; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - // If there hasn't been a match, walk up the tree and look more broadly - var current = this; - while (current.parent) { - found = current.parent._lookupImpl(path, flatPath); - if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) { - return found; - } - current = current.parent; - } - return null; -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Internal helper for lookup that handles searching just at this namespace and below along with caching. - * @param {string[]} path Path to look up - * @param {string} flatPath Flattened version of the path to use as a cache key - * @returns {ReflectionObject|null} Looked up object or `null` if none could be found - * @private + * The UpdatePKICertIssuer model module. + * @module model/UpdatePKICertIssuer + * @version 3.6.3 */ -Namespace.prototype._lookupImpl = function lookup(path, flatPath) { - if(Object.prototype.hasOwnProperty.call(this._lookupCache, flatPath)) { - return this._lookupCache[flatPath]; +var UpdatePKICertIssuer = /*#__PURE__*/function () { + /** + * Constructs a new UpdatePKICertIssuer. + * @alias module:model/UpdatePKICertIssuer + * @param name {String} PKI certificate issuer name + * @param signerKeyName {String} A key to sign the certificate with, required in Private CA mode + * @param ttl {Number} The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs + */ + function UpdatePKICertIssuer(name, signerKeyName, ttl) { + _classCallCheck(this, UpdatePKICertIssuer); + + UpdatePKICertIssuer.initialize(this, name, signerKeyName, ttl); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdatePKICertIssuer, null, [{ + key: "initialize", + value: function initialize(obj, name, signerKeyName, ttl) { + obj['name'] = name; + obj['signer-key-name'] = signerKeyName; + obj['ttl'] = ttl; } + /** + * Constructs a UpdatePKICertIssuer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdatePKICertIssuer} obj Optional instance to populate. + * @return {module:model/UpdatePKICertIssuer} The populated UpdatePKICertIssuer instance. + */ - // Test if the first part matches any nested object, and if so, traverse if path contains more - var found = this.get(path[0]); - var exact = null; - if (found) { - if (path.length === 1) { - exact = found; - } else if (found instanceof Namespace) { - path = path.slice(1); - exact = found._lookupImpl(path, path.join(".")); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdatePKICertIssuer(); + + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); } - // Otherwise try each nested namespace - } else { - for (var i = 0; i < this.nestedArray.length; ++i) - if (this._nestedArray[i] instanceof Namespace && (found = this._nestedArray[i]._lookupImpl(path, flatPath))) - exact = found; - } + if (data.hasOwnProperty('allow-any-name')) { + obj['allow-any-name'] = _ApiClient["default"].convertToType(data['allow-any-name'], 'Boolean'); + } - // Set this even when null, so that when we walk up the tree we can quickly bail on repeated checks back down. - this._lookupCache[flatPath] = exact; - return exact; -}; + if (data.hasOwnProperty('allow-copy-ext-from-csr')) { + obj['allow-copy-ext-from-csr'] = _ApiClient["default"].convertToType(data['allow-copy-ext-from-csr'], 'Boolean'); + } -/** - * Looks up the reflection object at the specified path, relative to this namespace. - * @name NamespaceBase#lookup - * @function - * @param {string|string[]} path Path to look up - * @param {boolean} [parentAlreadyChecked=false] Whether the parent has already been checked - * @returns {ReflectionObject|null} Looked up object or `null` if none could be found - * @variation 2 - */ -// lookup(path: string, [parentAlreadyChecked: boolean]) + if (data.hasOwnProperty('allow-subdomains')) { + obj['allow-subdomains'] = _ApiClient["default"].convertToType(data['allow-subdomains'], 'Boolean'); + } -/** - * Looks up the {@link Type|type} at the specified path, relative to this namespace. - * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`. - * @param {string|string[]} path Path to look up - * @returns {Type} Looked up type - * @throws {Error} If `path` does not point to a type - */ -Namespace.prototype.lookupType = function lookupType(path) { - var found = this.lookup(path, [ Type ]); - if (!found) - throw Error("no such type: " + path); - return found; -}; + if (data.hasOwnProperty('allowed-domains')) { + obj['allowed-domains'] = _ApiClient["default"].convertToType(data['allowed-domains'], 'String'); + } -/** - * Looks up the values of the {@link Enum|enum} at the specified path, relative to this namespace. - * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`. - * @param {string|string[]} path Path to look up - * @returns {Enum} Looked up enum - * @throws {Error} If `path` does not point to an enum - */ -Namespace.prototype.lookupEnum = function lookupEnum(path) { - var found = this.lookup(path, [ Enum ]); - if (!found) - throw Error("no such Enum '" + path + "' in " + this); - return found; -}; + if (data.hasOwnProperty('allowed-extra-extensions')) { + obj['allowed-extra-extensions'] = _ApiClient["default"].convertToType(data['allowed-extra-extensions'], 'String'); + } -/** - * Looks up the {@link Type|type} or {@link Enum|enum} at the specified path, relative to this namespace. - * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`. - * @param {string|string[]} path Path to look up - * @returns {Type} Looked up type or enum - * @throws {Error} If `path` does not point to a type or enum - */ -Namespace.prototype.lookupTypeOrEnum = function lookupTypeOrEnum(path) { - var found = this.lookup(path, [ Type, Enum ]); - if (!found) - throw Error("no such Type or Enum '" + path + "' in " + this); - return found; -}; + if (data.hasOwnProperty('allowed-uri-sans')) { + obj['allowed-uri-sans'] = _ApiClient["default"].convertToType(data['allowed-uri-sans'], 'String'); + } -/** - * Looks up the {@link Service|service} at the specified path, relative to this namespace. - * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`. - * @param {string|string[]} path Path to look up - * @returns {Service} Looked up service - * @throws {Error} If `path` does not point to a service - */ -Namespace.prototype.lookupService = function lookupService(path) { - var found = this.lookup(path, [ Service ]); - if (!found) - throw Error("no such Service '" + path + "' in " + this); - return found; -}; + if (data.hasOwnProperty('client-flag')) { + obj['client-flag'] = _ApiClient["default"].convertToType(data['client-flag'], 'Boolean'); + } -// Sets up cyclic dependencies (called in index-light) -Namespace._configure = function(Type_, Service_, Enum_) { - Type = Type_; - Service = Service_; - Enum = Enum_; -}; + if (data.hasOwnProperty('code-signing-flag')) { + obj['code-signing-flag'] = _ApiClient["default"].convertToType(data['code-signing-flag'], 'Boolean'); + } + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('create-private-crl')) { + obj['create-private-crl'] = _ApiClient["default"].convertToType(data['create-private-crl'], 'Boolean'); + } -/***/ 67946: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('create-public-crl')) { + obj['create-public-crl'] = _ApiClient["default"].convertToType(data['create-public-crl'], 'Boolean'); + } -"use strict"; + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } -module.exports = ReflectionObject; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -ReflectionObject.className = "ReflectionObject"; + if (data.hasOwnProperty('destination-path')) { + obj['destination-path'] = _ApiClient["default"].convertToType(data['destination-path'], 'String'); + } -const OneOf = __nccwpck_require__(84624); -var util = __nccwpck_require__(39609); + if (data.hasOwnProperty('expiration-event-in')) { + obj['expiration-event-in'] = _ApiClient["default"].convertToType(data['expiration-event-in'], ['String']); + } -var Root; // cyclic + if (data.hasOwnProperty('gw-cluster-url')) { + obj['gw-cluster-url'] = _ApiClient["default"].convertToType(data['gw-cluster-url'], 'String'); + } -/* eslint-disable no-warning-comments */ -// TODO: Replace with embedded proto. -var editions2023Defaults = {enum_type: "OPEN", field_presence: "EXPLICIT", json_format: "ALLOW", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "PACKED", utf8_validation: "VERIFY"}; -var proto2Defaults = {enum_type: "CLOSED", field_presence: "EXPLICIT", json_format: "LEGACY_BEST_EFFORT", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "EXPANDED", utf8_validation: "NONE"}; -var proto3Defaults = {enum_type: "OPEN", field_presence: "IMPLICIT", json_format: "ALLOW", message_encoding: "LENGTH_PREFIXED", repeated_field_encoding: "PACKED", utf8_validation: "VERIFY"}; + if (data.hasOwnProperty('is-ca')) { + obj['is-ca'] = _ApiClient["default"].convertToType(data['is-ca'], 'Boolean'); + } -/** - * Constructs a new reflection object instance. - * @classdesc Base class of all reflection objects. - * @constructor - * @param {string} name Object name - * @param {Object.} [options] Declared options - * @abstract - */ -function ReflectionObject(name, options) { + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - if (!util.isString(name)) - throw TypeError("name must be a string"); + if (data.hasOwnProperty('key-usage')) { + obj['key-usage'] = _ApiClient["default"].convertToType(data['key-usage'], 'String'); + } - if (options && !util.isObject(options)) - throw TypeError("options must be an object"); + if (data.hasOwnProperty('locality')) { + obj['locality'] = _ApiClient["default"].convertToType(data['locality'], 'String'); + } - /** - * Options. - * @type {Object.|undefined} - */ - this.options = options; // toJSON + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } - /** - * Parsed Options. - * @type {Array.>|undefined} - */ - this.parsedOptions = null; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - /** - * Unique name within its namespace. - * @type {string} - */ - this.name = name; + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - /** - * The edition specified for this object. Only relevant for top-level objects. - * @type {string} - * @private - */ - this._edition = null; + if (data.hasOwnProperty('not-enforce-hostnames')) { + obj['not-enforce-hostnames'] = _ApiClient["default"].convertToType(data['not-enforce-hostnames'], 'Boolean'); + } - /** - * The default edition to use for this object if none is specified. For legacy reasons, - * this is proto2 except in the JSON parsing case where it was proto3. - * @type {string} - * @private - */ - this._defaultEdition = "proto2"; + if (data.hasOwnProperty('not-require-cn')) { + obj['not-require-cn'] = _ApiClient["default"].convertToType(data['not-require-cn'], 'Boolean'); + } - /** - * Resolved Features. - * @type {object} - * @private - */ - this._features = {}; + if (data.hasOwnProperty('organizational-units')) { + obj['organizational-units'] = _ApiClient["default"].convertToType(data['organizational-units'], 'String'); + } - /** - * Whether or not features have been resolved. - * @type {boolean} - * @private - */ - this._featuresResolved = false; + if (data.hasOwnProperty('organizations')) { + obj['organizations'] = _ApiClient["default"].convertToType(data['organizations'], 'String'); + } - /** - * Parent namespace. - * @type {Namespace|null} - */ - this.parent = null; + if (data.hasOwnProperty('postal-code')) { + obj['postal-code'] = _ApiClient["default"].convertToType(data['postal-code'], 'String'); + } - /** - * Whether already resolved or not. - * @type {boolean} - */ - this.resolved = false; + if (data.hasOwnProperty('protect-certificates')) { + obj['protect-certificates'] = _ApiClient["default"].convertToType(data['protect-certificates'], 'Boolean'); + } - /** - * Comment text, if any. - * @type {string|null} - */ - this.comment = null; + if (data.hasOwnProperty('province')) { + obj['province'] = _ApiClient["default"].convertToType(data['province'], 'String'); + } - /** - * Defining file name. - * @type {string|null} - */ - this.filename = null; -} + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } -Object.defineProperties(ReflectionObject.prototype, { + if (data.hasOwnProperty('server-flag')) { + obj['server-flag'] = _ApiClient["default"].convertToType(data['server-flag'], 'Boolean'); + } - /** - * Reference to the root namespace. - * @name ReflectionObject#root - * @type {Root} - * @readonly - */ - root: { - get: function() { - var ptr = this; - while (ptr.parent !== null) - ptr = ptr.parent; - return ptr; + if (data.hasOwnProperty('signer-key-name')) { + obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); } - }, - /** - * Full name including leading dot. - * @name ReflectionObject#fullName - * @type {string} - * @readonly - */ - fullName: { - get: function() { - var path = [ this.name ], - ptr = this.parent; - while (ptr) { - path.unshift(ptr.name); - ptr = ptr.parent; - } - return path.join("."); + if (data.hasOwnProperty('street-address')) { + obj['street-address'] = _ApiClient["default"].convertToType(data['street-address'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + } + + return obj; } -}); + }]); + + return UpdatePKICertIssuer; +}(); +/** + * List of the new tags that will be attached to this item + * @member {Array.} add-tag + */ + + +UpdatePKICertIssuer.prototype['add-tag'] = undefined; +/** + * If set, clients can request certificates for any CN + * @member {Boolean} allow-any-name + */ + +UpdatePKICertIssuer.prototype['allow-any-name'] = undefined; +/** + * If set, will allow copying the extra extensions from the csr file (if given) + * @member {Boolean} allow-copy-ext-from-csr + */ + +UpdatePKICertIssuer.prototype['allow-copy-ext-from-csr'] = undefined; +/** + * If set, clients can request certificates for subdomains and wildcard subdomains of the allowed domains + * @member {Boolean} allow-subdomains + */ + +UpdatePKICertIssuer.prototype['allow-subdomains'] = undefined; +/** + * A list of the allowed domains that clients can request to be included in the certificate (in a comma-delimited list) + * @member {String} allowed-domains + */ + +UpdatePKICertIssuer.prototype['allowed-domains'] = undefined; +/** + * A json string containing the allowed extra extensions for the pki cert issuer + * @member {String} allowed-extra-extensions + */ + +UpdatePKICertIssuer.prototype['allowed-extra-extensions'] = undefined; +/** + * A list of the allowed URIs that clients can request to be included in the certificate as part of the URI Subject Alternative Names (in a comma-delimited list) + * @member {String} allowed-uri-sans + */ + +UpdatePKICertIssuer.prototype['allowed-uri-sans'] = undefined; +/** + * If set, certificates will be flagged for client auth use + * @member {Boolean} client-flag + */ + +UpdatePKICertIssuer.prototype['client-flag'] = undefined; +/** + * If set, certificates will be flagged for code signing use + * @member {Boolean} code-signing-flag + */ + +UpdatePKICertIssuer.prototype['code-signing-flag'] = undefined; +/** + * A comma-separated list of countries that will be set in the issued certificate + * @member {String} country + */ + +UpdatePKICertIssuer.prototype['country'] = undefined; +/** + * Set this to allow the issuer will expose a CRL endpoint in the Gateway + * @member {Boolean} create-private-crl + */ + +UpdatePKICertIssuer.prototype['create-private-crl'] = undefined; +/** + * Set this to allow the cert issuer will expose a public CRL endpoint + * @member {Boolean} create-public-crl + */ + +UpdatePKICertIssuer.prototype['create-public-crl'] = undefined; +/** + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection + */ + +UpdatePKICertIssuer.prototype['delete_protection'] = undefined; +/** + * Description of the object + * @member {String} description + */ +UpdatePKICertIssuer.prototype['description'] = undefined; /** - * Converts this reflection object to its descriptor representation. - * @returns {Object.} Descriptor - * @abstract + * A path in which to save generated certificates + * @member {String} destination-path */ -ReflectionObject.prototype.toJSON = /* istanbul ignore next */ function toJSON() { - throw Error(); // not implemented, shouldn't happen -}; +UpdatePKICertIssuer.prototype['destination-path'] = undefined; /** - * Called when this object is added to a parent. - * @param {ReflectionObject} parent Parent added to - * @returns {undefined} + * How many days before the expiration of the certificate would you like to be notified. + * @member {Array.} expiration-event-in */ -ReflectionObject.prototype.onAdd = function onAdd(parent) { - if (this.parent && this.parent !== parent) - this.parent.remove(this); - this.parent = parent; - this.resolved = false; - var root = parent.root; - if (root instanceof Root) - root._handleAdd(this); -}; +UpdatePKICertIssuer.prototype['expiration-event-in'] = undefined; /** - * Called when this object is removed from a parent. - * @param {ReflectionObject} parent Parent removed from - * @returns {undefined} + * The GW cluster URL to issue the certificate from, required in Public CA mode or to allow CRLs on private CA + * @member {String} gw-cluster-url */ -ReflectionObject.prototype.onRemove = function onRemove(parent) { - var root = parent.root; - if (root instanceof Root) - root._handleRemove(this); - this.parent = null; - this.resolved = false; -}; +UpdatePKICertIssuer.prototype['gw-cluster-url'] = undefined; /** - * Resolves this objects type references. - * @returns {ReflectionObject} `this` + * If set, the basic constraints extension will be added to certificate + * @member {Boolean} is-ca */ -ReflectionObject.prototype.resolve = function resolve() { - if (this.resolved) - return this; - if (this.root instanceof Root) - this.resolved = true; // only if part of a root - return this; -}; +UpdatePKICertIssuer.prototype['is-ca'] = undefined; /** - * Resolves this objects editions features. - * @param {string} edition The edition we're currently resolving for. - * @returns {ReflectionObject} `this` + * Set output format to JSON + * @member {Boolean} json + * @default false */ -ReflectionObject.prototype._resolveFeaturesRecursive = function _resolveFeaturesRecursive(edition) { - return this._resolveFeatures(this._edition || edition); -}; +UpdatePKICertIssuer.prototype['json'] = false; /** - * Resolves child features from parent features - * @param {string} edition The edition we're currently resolving for. - * @returns {undefined} + * key-usage + * @member {String} key-usage + * @default 'DigitalSignature,KeyAgreement,KeyEncipherment' */ -ReflectionObject.prototype._resolveFeatures = function _resolveFeatures(edition) { - if (this._featuresResolved) { - return; - } - var defaults = {}; +UpdatePKICertIssuer.prototype['key-usage'] = 'DigitalSignature,KeyAgreement,KeyEncipherment'; +/** + * A comma-separated list of localities that will be set in the issued certificate + * @member {String} locality + */ - /* istanbul ignore if */ - if (!edition) { - throw new Error("Unknown edition for " + this.fullName); - } +UpdatePKICertIssuer.prototype['locality'] = undefined; +/** + * Deprecated - use description + * @member {String} metadata + */ - var protoFeatures = Object.assign(this.options ? Object.assign({}, this.options.features) : {}, - this._inferLegacyProtoFeatures(edition)); +UpdatePKICertIssuer.prototype['metadata'] = undefined; +/** + * PKI certificate issuer name + * @member {String} name + */ - if (this._edition) { - // For a namespace marked with a specific edition, reset defaults. - /* istanbul ignore else */ - if (edition === "proto2") { - defaults = Object.assign({}, proto2Defaults); - } else if (edition === "proto3") { - defaults = Object.assign({}, proto3Defaults); - } else if (edition === "2023") { - defaults = Object.assign({}, editions2023Defaults); - } else { - throw new Error("Unknown edition: " + edition); - } - this._features = Object.assign(defaults, protoFeatures || {}); - this._featuresResolved = true; - return; - } +UpdatePKICertIssuer.prototype['name'] = undefined; +/** + * New item name + * @member {String} new-name + */ - // fields in Oneofs aren't actually children of them, so we have to - // special-case it - /* istanbul ignore else */ - if (this.partOf instanceof OneOf) { - var lexicalParentFeaturesCopy = Object.assign({}, this.partOf._features); - this._features = Object.assign(lexicalParentFeaturesCopy, protoFeatures || {}); - } else if (this.declaringField) { - // Skip feature resolution of sister fields. - } else if (this.parent) { - var parentFeaturesCopy = Object.assign({}, this.parent._features); - this._features = Object.assign(parentFeaturesCopy, protoFeatures || {}); - } else { - throw new Error("Unable to find a parent for " + this.fullName); - } - if (this.extensionField) { - // Sister fields should have the same features as their extensions. - this.extensionField._features = this._features; - } - this._featuresResolved = true; -}; +UpdatePKICertIssuer.prototype['new-name'] = undefined; +/** + * If set, any names are allowed for CN and SANs in the certificate and not only a valid host name + * @member {Boolean} not-enforce-hostnames + */ +UpdatePKICertIssuer.prototype['not-enforce-hostnames'] = undefined; /** - * Infers features from legacy syntax that may have been specified differently. - * in older editions. - * @param {string|undefined} edition The edition this proto is on, or undefined if pre-editions - * @returns {object} The feature values to override + * If set, clients can request certificates without a CN + * @member {Boolean} not-require-cn */ -ReflectionObject.prototype._inferLegacyProtoFeatures = function _inferLegacyProtoFeatures(/*edition*/) { - return {}; -}; +UpdatePKICertIssuer.prototype['not-require-cn'] = undefined; /** - * Gets an option value. - * @param {string} name Option name - * @returns {*} Option value or `undefined` if not set + * A comma-separated list of organizational units (OU) that will be set in the issued certificate + * @member {String} organizational-units */ -ReflectionObject.prototype.getOption = function getOption(name) { - if (this.options) - return this.options[name]; - return undefined; -}; +UpdatePKICertIssuer.prototype['organizational-units'] = undefined; /** - * Sets an option. - * @param {string} name Option name - * @param {*} value Option value - * @param {boolean|undefined} [ifNotSet] Sets the option only if it isn't currently set - * @returns {ReflectionObject} `this` + * A comma-separated list of organizations (O) that will be set in the issued certificate + * @member {String} organizations */ -ReflectionObject.prototype.setOption = function setOption(name, value, ifNotSet) { - if (!this.options) - this.options = {}; - if (/^features\./.test(name)) { - util.setProperty(this.options, name, value, ifNotSet); - } else if (!ifNotSet || this.options[name] === undefined) { - if (this.getOption(name) !== value) this.resolved = false; - this.options[name] = value; - } - return this; -}; +UpdatePKICertIssuer.prototype['organizations'] = undefined; +/** + * A comma-separated list of postal codes that will be set in the issued certificate + * @member {String} postal-code + */ +UpdatePKICertIssuer.prototype['postal-code'] = undefined; /** - * Sets a parsed option. - * @param {string} name parsed Option name - * @param {*} value Option value - * @param {string} propName dot '.' delimited full path of property within the option to set. if undefined\empty, will add a new option with that value - * @returns {ReflectionObject} `this` + * Whether to protect generated certificates from deletion + * @member {Boolean} protect-certificates */ -ReflectionObject.prototype.setParsedOption = function setParsedOption(name, value, propName) { - if (!this.parsedOptions) { - this.parsedOptions = []; - } - var parsedOptions = this.parsedOptions; - if (propName) { - // If setting a sub property of an option then try to merge it - // with an existing option - var opt = parsedOptions.find(function (opt) { - return Object.prototype.hasOwnProperty.call(opt, name); - }); - if (opt) { - // If we found an existing option - just merge the property value - // (If it's a feature, will just write over) - var newValue = opt[name]; - util.setProperty(newValue, propName, value); - } else { - // otherwise, create a new option, set its property and add it to the list - opt = {}; - opt[name] = util.setProperty({}, propName, value); - parsedOptions.push(opt); - } - } else { - // Always create a new option when setting the value of the option itself - var newOpt = {}; - newOpt[name] = value; - parsedOptions.push(newOpt); - } - return this; -}; +UpdatePKICertIssuer.prototype['protect-certificates'] = undefined; +/** + * A comma-separated list of provinces that will be set in the issued certificate + * @member {String} province + */ +UpdatePKICertIssuer.prototype['province'] = undefined; /** - * Sets multiple options. - * @param {Object.} options Options to set - * @param {boolean} [ifNotSet] Sets an option only if it isn't currently set - * @returns {ReflectionObject} `this` + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag */ -ReflectionObject.prototype.setOptions = function setOptions(options, ifNotSet) { - if (options) - for (var keys = Object.keys(options), i = 0; i < keys.length; ++i) - this.setOption(keys[i], options[keys[i]], ifNotSet); - return this; -}; +UpdatePKICertIssuer.prototype['rm-tag'] = undefined; /** - * Converts this instance to its string representation. - * @returns {string} Class name[, space, full name] + * If set, certificates will be flagged for server auth use + * @member {Boolean} server-flag */ -ReflectionObject.prototype.toString = function toString() { - var className = this.constructor.className, - fullName = this.fullName; - if (fullName.length) - return className + " " + fullName; - return className; -}; +UpdatePKICertIssuer.prototype['server-flag'] = undefined; /** - * Converts the edition this object is pinned to for JSON format. - * @returns {string|undefined} The edition string for JSON representation + * A key to sign the certificate with, required in Private CA mode + * @member {String} signer-key-name + * @default 'dummy_signer_key' */ -ReflectionObject.prototype._editionToJSON = function _editionToJSON() { - if (!this._edition || this._edition === "proto3") { - // Avoid emitting proto3 since we need to default to it for backwards - // compatibility anyway. - return undefined; - } - return this._edition; -}; -// Sets up cyclic dependencies (called in index-light) -ReflectionObject._configure = function(Root_) { - Root = Root_; -}; +UpdatePKICertIssuer.prototype['signer-key-name'] = 'dummy_signer_key'; +/** + * A comma-separated list of street addresses that will be set in the issued certificate + * @member {String} street-address + */ + +UpdatePKICertIssuer.prototype['street-address'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UpdatePKICertIssuer.prototype['token'] = undefined; +/** + * The maximum requested Time To Live for issued certificates, in seconds. In case of Public CA, this is based on the CA target's supported maximum TTLs + * @member {Number} ttl + */ +UpdatePKICertIssuer.prototype['ttl'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ + +UpdatePKICertIssuer.prototype['uid-token'] = undefined; +var _default = UpdatePKICertIssuer; +exports["default"] = _default; /***/ }), -/***/ 84624: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 13449: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -module.exports = OneOf; -// extends ReflectionObject -var ReflectionObject = __nccwpck_require__(67946); -((OneOf.prototype = Object.create(ReflectionObject.prototype)).constructor = OneOf).className = "OneOf"; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var Field = __nccwpck_require__(30457), - util = __nccwpck_require__(39609); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Constructs a new oneof instance. - * @classdesc Reflected oneof. - * @extends ReflectionObject - * @constructor - * @param {string} name Oneof name - * @param {string[]|Object.} [fieldNames] Field names - * @param {Object.} [options] Declared options - * @param {string} [comment] Comment associated with this field + * The UpdatePKICertIssuerOutput model module. + * @module model/UpdatePKICertIssuerOutput + * @version 3.6.3 */ -function OneOf(name, fieldNames, options, comment) { - if (!Array.isArray(fieldNames)) { - options = fieldNames; - fieldNames = undefined; - } - ReflectionObject.call(this, name, options); +var UpdatePKICertIssuerOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdatePKICertIssuerOutput. + * @alias module:model/UpdatePKICertIssuerOutput + */ + function UpdatePKICertIssuerOutput() { + _classCallCheck(this, UpdatePKICertIssuerOutput); - /* istanbul ignore if */ - if (!(fieldNames === undefined || Array.isArray(fieldNames))) - throw TypeError("fieldNames must be an Array"); + UpdatePKICertIssuerOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - /** - * Field names that belong to this oneof. - * @type {string[]} - */ - this.oneof = fieldNames || []; // toJSON, marker + _createClass(UpdatePKICertIssuerOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Fields that belong to this oneof as an array for iteration. - * @type {Field[]} - * @readonly + * Constructs a UpdatePKICertIssuerOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdatePKICertIssuerOutput} obj Optional instance to populate. + * @return {module:model/UpdatePKICertIssuerOutput} The populated UpdatePKICertIssuerOutput instance. */ - this.fieldsArray = []; // declared readonly for conformance, possibly not yet added to parent - /** - * Comment for this field. - * @type {string|null} - */ - this.comment = comment; -} + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdatePKICertIssuerOutput(); -/** - * Oneof descriptor. - * @interface IOneOf - * @property {Array.} oneof Oneof field names - * @property {Object.} [options] Oneof options - */ + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } -/** - * Constructs a oneof from a oneof descriptor. - * @param {string} name Oneof name - * @param {IOneOf} json Oneof descriptor - * @returns {OneOf} Created oneof - * @throws {TypeError} If arguments are invalid - */ -OneOf.fromJSON = function fromJSON(name, json) { - return new OneOf(name, json.oneof, json.options, json.comment); -}; + return obj; + } + }]); + return UpdatePKICertIssuerOutput; +}(); /** - * Converts this oneof to a oneof descriptor. - * @param {IToJSONOptions} [toJSONOptions] JSON conversion options - * @returns {IOneOf} Oneof descriptor + * @member {String} name */ -OneOf.prototype.toJSON = function toJSON(toJSONOptions) { - var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false; - return util.toObject([ - "options" , this.options, - "oneof" , this.oneof, - "comment" , keepComments ? this.comment : undefined - ]); -}; -/** - * Adds the fields of the specified oneof to the parent if not already done so. - * @param {OneOf} oneof The oneof - * @returns {undefined} - * @inner - * @ignore - */ -function addFieldsToParent(oneof) { - if (oneof.parent) - for (var i = 0; i < oneof.fieldsArray.length; ++i) - if (!oneof.fieldsArray[i].parent) - oneof.parent.add(oneof.fieldsArray[i]); -} -/** - * Adds a field to this oneof and removes it from its current parent, if any. - * @param {Field} field Field to add - * @returns {OneOf} `this` - */ -OneOf.prototype.add = function add(field) { +UpdatePKICertIssuerOutput.prototype['name'] = undefined; +var _default = UpdatePKICertIssuerOutput; +exports["default"] = _default; - /* istanbul ignore if */ - if (!(field instanceof Field)) - throw TypeError("field must be a Field"); +/***/ }), - if (field.parent && field.parent !== this.parent) - field.parent.remove(field); - this.oneof.push(field.name); - this.fieldsArray.push(field); - field.partOf = this; // field.parent remains null - addFieldsToParent(this); - return this; -}; +/***/ 85764: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -/** - * Removes a field from this oneof and puts it back to the oneof's parent. - * @param {Field} field Field to remove - * @returns {OneOf} `this` - */ -OneOf.prototype.remove = function remove(field) { +"use strict"; - /* istanbul ignore if */ - if (!(field instanceof Field)) - throw TypeError("field must be a Field"); - var index = this.fieldsArray.indexOf(field); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - /* istanbul ignore if */ - if (index < 0) - throw Error(field + " is not a member of " + this); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - this.fieldsArray.splice(index, 1); - index = this.oneof.indexOf(field.name); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - /* istanbul ignore else */ - if (index > -1) // theoretical - this.oneof.splice(index, 1); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - field.partOf = null; - return this; -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * @override + * The UpdatePingTarget model module. + * @module model/UpdatePingTarget + * @version 3.6.3 */ -OneOf.prototype.onAdd = function onAdd(parent) { - ReflectionObject.prototype.onAdd.call(this, parent); - var self = this; - // Collect present fields - for (var i = 0; i < this.oneof.length; ++i) { - var field = parent.get(this.oneof[i]); - if (field && !field.partOf) { - field.partOf = self; - self.fieldsArray.push(field); +var UpdatePingTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdatePingTarget. + * @alias module:model/UpdatePingTarget + * @param name {String} Target name + */ + function UpdatePingTarget(name) { + _classCallCheck(this, UpdatePingTarget); + + UpdatePingTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdatePingTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a UpdatePingTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdatePingTarget} obj Optional instance to populate. + * @return {module:model/UpdatePingTarget} The populated UpdatePingTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdatePingTarget(); + + if (data.hasOwnProperty('administrative-port')) { + obj['administrative-port'] = _ApiClient["default"].convertToType(data['administrative-port'], 'String'); + } + + if (data.hasOwnProperty('authorization-port')) { + obj['authorization-port'] = _ApiClient["default"].convertToType(data['authorization-port'], 'String'); + } + + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } + + if (data.hasOwnProperty('ping-url')) { + obj['ping-url'] = _ApiClient["default"].convertToType(data['ping-url'], 'String'); + } + + if (data.hasOwnProperty('privileged-user')) { + obj['privileged-user'] = _ApiClient["default"].convertToType(data['privileged-user'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); } + } + + return obj; } - // Add not yet present fields - addFieldsToParent(this); -}; + }]); + return UpdatePingTarget; +}(); /** - * @override + * Ping Federate administrative port + * @member {String} administrative-port + * @default '9999' */ -OneOf.prototype.onRemove = function onRemove(parent) { - for (var i = 0, field; i < this.fieldsArray.length; ++i) - if ((field = this.fieldsArray[i]).parent) - field.parent.remove(field); - ReflectionObject.prototype.onRemove.call(this, parent); -}; + +UpdatePingTarget.prototype['administrative-port'] = '9999'; /** - * Determines whether this field corresponds to a synthetic oneof created for - * a proto3 optional field. No behavioral logic should depend on this, but it - * can be relevant for reflection. - * @name OneOf#isProto3Optional - * @type {boolean} - * @readonly + * Ping Federate authorization port + * @member {String} authorization-port + * @default '9031' */ -Object.defineProperty(OneOf.prototype, "isProto3Optional", { - get: function() { - if (this.fieldsArray == null || this.fieldsArray.length !== 1) { - return false; - } - - var field = this.fieldsArray[0]; - return field.options != null && field.options["proto3_optional"] === true; - } -}); +UpdatePingTarget.prototype['authorization-port'] = '9031'; /** - * Decorator function as returned by {@link OneOf.d} (TypeScript). - * @typedef OneOfDecorator - * @type {function} - * @param {Object} prototype Target prototype - * @param {string} oneofName OneOf name - * @returns {undefined} + * Deprecated - use description + * @member {String} comment */ +UpdatePingTarget.prototype['comment'] = undefined; /** - * OneOf decorator (TypeScript). - * @function - * @param {...string} fieldNames Field names - * @returns {OneOfDecorator} Decorator function - * @template T extends string + * Description of the object + * @member {String} description */ -OneOf.d = function decorateOneOf() { - var fieldNames = new Array(arguments.length), - index = 0; - while (index < arguments.length) - fieldNames[index] = arguments[index++]; - return function oneOfDecorator(prototype, oneofName) { - util.decorateType(prototype.constructor) - .add(new OneOf(oneofName, fieldNames)); - Object.defineProperty(prototype, oneofName, { - get: util.oneOfGetter(fieldNames), - set: util.oneOfSetter(fieldNames) - }); - }; -}; +UpdatePingTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ }), +UpdatePingTarget.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -/***/ 36409: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdatePingTarget.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -"use strict"; +UpdatePingTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -module.exports = parse; +UpdatePingTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ -parse.filename = null; -parse.defaults = { keepCase: false }; +UpdatePingTarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ -var tokenize = __nccwpck_require__(580), - Root = __nccwpck_require__(8185), - Type = __nccwpck_require__(70901), - Field = __nccwpck_require__(30457), - MapField = __nccwpck_require__(58791), - OneOf = __nccwpck_require__(84624), - Enum = __nccwpck_require__(73528), - Service = __nccwpck_require__(30338), - Method = __nccwpck_require__(59988), - ReflectionObject = __nccwpck_require__(67946), - types = __nccwpck_require__(21024), - util = __nccwpck_require__(39609); +UpdatePingTarget.prototype['new-name'] = undefined; +/** + * Ping Federate privileged user password + * @member {String} password + */ -var base10Re = /^[1-9][0-9]*$/, - base10NegRe = /^-?[1-9][0-9]*$/, - base16Re = /^0[x][0-9a-fA-F]+$/, - base16NegRe = /^-?0[x][0-9a-fA-F]+$/, - base8Re = /^0[0-7]+$/, - base8NegRe = /^-?0[0-7]+$/, - numberRe = /^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/, - nameRe = /^[a-zA-Z_][a-zA-Z_0-9]*$/, - typeRefRe = /^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/; +UpdatePingTarget.prototype['password'] = undefined; +/** + * Ping URL + * @member {String} ping-url + */ +UpdatePingTarget.prototype['ping-url'] = undefined; /** - * Result object returned from {@link parse}. - * @interface IParserResult - * @property {string|undefined} package Package name, if declared - * @property {string[]|undefined} imports Imports, if any - * @property {string[]|undefined} weakImports Weak imports, if any - * @property {Root} root Populated root instance + * Ping Federate privileged user + * @member {String} privileged-user */ +UpdatePingTarget.prototype['privileged-user'] = undefined; /** - * Options modifying the behavior of {@link parse}. - * @interface IParseOptions - * @property {boolean} [keepCase=false] Keeps field casing instead of converting to camel case - * @property {boolean} [alternateCommentMode=false] Recognize double-slash comments in addition to doc-block comments. - * @property {boolean} [preferTrailingComment=false] Use trailing comment when both leading comment and trailing comment exist. + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ +UpdatePingTarget.prototype['token'] = undefined; /** - * Options modifying the behavior of JSON serialization. - * @interface IToJSONOptions - * @property {boolean} [keepComments=false] Serializes comments. + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ +UpdatePingTarget.prototype['uid-token'] = undefined; /** - * Parses the given .proto source and returns an object with the parsed contents. - * @param {string} source Source contents - * @param {Root} root Root to populate - * @param {IParseOptions} [options] Parse options. Defaults to {@link parse.defaults} when omitted. - * @returns {IParserResult} Parser result - * @property {string} filename=null Currently processing file name for error reporting, if known - * @property {IParseOptions} defaults Default {@link IParseOptions} + * Deprecated + * @member {Boolean} update-version */ -function parse(source, root, options) { - /* eslint-disable callback-return */ - if (!(root instanceof Root)) { - options = root; - root = new Root(); - } - if (!options) - options = parse.defaults; - var preferTrailingComment = options.preferTrailingComment || false; - var tn = tokenize(source, options.alternateCommentMode || false), - next = tn.next, - push = tn.push, - peek = tn.peek, - skip = tn.skip, - cmnt = tn.cmnt; +UpdatePingTarget.prototype['update-version'] = undefined; +var _default = UpdatePingTarget; +exports["default"] = _default; - var head = true, - pkg, - imports, - weakImports, - edition = "proto2"; +/***/ }), - var ptr = root; +/***/ 54450: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - var topLevelObjects = []; - var topLevelOptions = {}; +"use strict"; - var applyCase = options.keepCase ? function(name) { return name; } : util.camelCase; - function resolveFileFeatures() { - topLevelObjects.forEach(obj => { - obj._edition = edition; - Object.keys(topLevelOptions).forEach(opt => { - if (obj.getOption(opt) !== undefined) return; - obj.setOption(opt, topLevelOptions[opt], true); - }); - }); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - /* istanbul ignore next */ - function illegal(token, name, insideTryCatch) { - var filename = parse.filename; - if (!insideTryCatch) - parse.filename = null; - return Error("illegal " + (name || "token") + " '" + token + "' (" + (filename ? filename + ", " : "") + "line " + tn.line + ")"); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - function readString() { - var values = [], - token; - do { - /* istanbul ignore if */ - if ((token = next()) !== "\"" && token !== "'") - throw illegal(token); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - values.push(next()); - skip(token); - token = peek(); - } while (token === "\"" || token === "'"); - return values.join(""); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function readValue(acceptTypeRef) { - var token = next(); - switch (token) { - case "'": - case "\"": - push(token); - return readString(); - case "true": case "TRUE": - return true; - case "false": case "FALSE": - return false; - } - try { - return parseNumber(token, /* insideTryCatch */ true); - } catch (e) { - /* istanbul ignore else */ - if (acceptTypeRef && typeRefRe.test(token)) - return token; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - /* istanbul ignore next */ - throw illegal(token, "value"); - } - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - function readRanges(target, acceptStrings) { - var token, start; - do { - if (acceptStrings && ((token = peek()) === "\"" || token === "'")) { - var str = readString(); - target.push(str); - if (edition >= 2023) { - throw illegal(str, "id"); - } - } else { - try { - target.push([ start = parseId(next()), skip("to", true) ? parseId(next()) : start ]); - } catch (err) { - if (acceptStrings && typeRefRe.test(token) && edition >= 2023) { - target.push(token); - } else { - throw err; - } - } - } - } while (skip(",", true)); - var dummy = {options: undefined}; - dummy.setOption = function(name, value) { - if (this.options === undefined) this.options = {}; - this.options[name] = value; - }; - ifBlock( - dummy, - function parseRange_block(token) { - /* istanbul ignore else */ - if (token === "option") { - parseOption(dummy, token); // skip - skip(";"); - } else - throw illegal(token); - }, - function parseRange_line() { - parseInlineOptions(dummy); // skip - }); - } +/** + * The UpdateRDPTargetDetails model module. + * @module model/UpdateRDPTargetDetails + * @version 3.6.3 + */ +var UpdateRDPTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new UpdateRDPTargetDetails. + * @alias module:model/UpdateRDPTargetDetails + * @param name {String} Target name + */ + function UpdateRDPTargetDetails(name) { + _classCallCheck(this, UpdateRDPTargetDetails); - function parseNumber(token, insideTryCatch) { - var sign = 1; - if (token.charAt(0) === "-") { - sign = -1; - token = token.substring(1); - } - switch (token) { - case "inf": case "INF": case "Inf": - return sign * Infinity; - case "nan": case "NAN": case "Nan": case "NaN": - return NaN; - case "0": - return 0; - } - if (base10Re.test(token)) - return sign * parseInt(token, 10); - if (base16Re.test(token)) - return sign * parseInt(token, 16); - if (base8Re.test(token)) - return sign * parseInt(token, 8); + UpdateRDPTargetDetails.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - /* istanbul ignore else */ - if (numberRe.test(token)) - return sign * parseFloat(token); - /* istanbul ignore next */ - throw illegal(token, "number", insideTryCatch); + _createClass(UpdateRDPTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } + /** + * Constructs a UpdateRDPTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateRDPTargetDetails} obj Optional instance to populate. + * @return {module:model/UpdateRDPTargetDetails} The populated UpdateRDPTargetDetails instance. + */ - function parseId(token, acceptNegative) { - switch (token) { - case "max": case "MAX": case "Max": - return 536870911; - case "0": - return 0; - } - - /* istanbul ignore if */ - if (!acceptNegative && token.charAt(0) === "-") - throw illegal(token, "id"); - - if (base10NegRe.test(token)) - return parseInt(token, 10); - if (base16NegRe.test(token)) - return parseInt(token, 16); - - /* istanbul ignore else */ - if (base8NegRe.test(token)) - return parseInt(token, 8); - - /* istanbul ignore next */ - throw illegal(token, "id"); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateRDPTargetDetails(); - function parsePackage() { - /* istanbul ignore if */ - if (pkg !== undefined) - throw illegal("package"); + if (data.hasOwnProperty('admin_name')) { + obj['admin_name'] = _ApiClient["default"].convertToType(data['admin_name'], 'String'); + } - pkg = next(); + if (data.hasOwnProperty('admin_pwd')) { + obj['admin_pwd'] = _ApiClient["default"].convertToType(data['admin_pwd'], 'String'); + } - /* istanbul ignore if */ - if (!typeRefRe.test(pkg)) - throw illegal(pkg, "name"); + if (data.hasOwnProperty('host_name')) { + obj['host_name'] = _ApiClient["default"].convertToType(data['host_name'], 'String'); + } - ptr = ptr.define(pkg); + if (data.hasOwnProperty('host_port')) { + obj['host_port'] = _ApiClient["default"].convertToType(data['host_port'], 'String'); + } - skip(";"); - } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - function parseImport() { - var token = peek(); - var whichImports; - switch (token) { - case "weak": - whichImports = weakImports || (weakImports = []); - next(); - break; - case "public": - next(); - // eslint-disable-next-line no-fallthrough - default: - whichImports = imports || (imports = []); - break; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - token = readString(); - skip(";"); - whichImports.push(token); - } - function parseSyntax() { - skip("="); - edition = readString(); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - /* istanbul ignore if */ - if (edition < 2023) - throw illegal(edition, "syntax"); + if (data.hasOwnProperty('new-version')) { + obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); + } - skip(";"); - } + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } - function parseEdition() { - skip("="); - edition = readString(); - const supportedEditions = ["2023"]; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - /* istanbul ignore if */ - if (!supportedEditions.includes(edition)) - throw illegal(edition, "edition"); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - skip(";"); + return obj; } + }]); + return UpdateRDPTargetDetails; +}(); +/** + * The admin name + * @member {String} admin_name + */ - function parseCommon(parent, token) { - switch (token) { - case "option": - parseOption(parent, token); - skip(";"); - return true; +UpdateRDPTargetDetails.prototype['admin_name'] = undefined; +/** + * The admin password + * @member {String} admin_pwd + */ - case "message": - parseType(parent, token); - return true; +UpdateRDPTargetDetails.prototype['admin_pwd'] = undefined; +/** + * The rdp host name + * @member {String} host_name + */ - case "enum": - parseEnum(parent, token); - return true; +UpdateRDPTargetDetails.prototype['host_name'] = undefined; +/** + * The rdp port + * @member {String} host_port + * @default '22' + */ - case "service": - parseService(parent, token); - return true; +UpdateRDPTargetDetails.prototype['host_port'] = '22'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - case "extend": - parseExtension(parent, token); - return true; - } - return false; - } +UpdateRDPTargetDetails.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ - function ifBlock(obj, fnIf, fnElse) { - var trailingLine = tn.line; - if (obj) { - if(typeof obj.comment !== "string") { - obj.comment = cmnt(); // try block-type comment - } - obj.filename = parse.filename; - } - if (skip("{", true)) { - var token; - while ((token = next()) !== "}") - fnIf(token); - skip(";", true); - } else { - if (fnElse) - fnElse(); - skip(";"); - if (obj && (typeof obj.comment !== "string" || preferTrailingComment)) - obj.comment = cmnt(trailingLine) || obj.comment; // try line-type comment - } - } +UpdateRDPTargetDetails.prototype['keep-prev-version'] = undefined; +/** + * Target name + * @member {String} name + */ - function parseType(parent, token) { +UpdateRDPTargetDetails.prototype['name'] = undefined; +/** + * Deprecated + * @member {Boolean} new-version + */ - /* istanbul ignore if */ - if (!nameRe.test(token = next())) - throw illegal(token, "type name"); +UpdateRDPTargetDetails.prototype['new-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection_key + */ - var type = new Type(token); - ifBlock(type, function parseType_block(token) { - if (parseCommon(type, token)) - return; +UpdateRDPTargetDetails.prototype['protection_key'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - switch (token) { +UpdateRDPTargetDetails.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - case "map": - parseMapField(type, token); - break; +UpdateRDPTargetDetails.prototype['uid-token'] = undefined; +var _default = UpdateRDPTargetDetails; +exports["default"] = _default; - case "required": - if (edition !== "proto2") - throw illegal(token); - /* eslint-disable no-fallthrough */ - case "repeated": - parseField(type, token); - break; +/***/ }), - case "optional": - /* istanbul ignore if */ - if (edition === "proto3") { - parseField(type, "proto3_optional"); - } else if (edition !== "proto2") { - throw illegal(token); - } else { - parseField(type, "optional"); - } - break; +/***/ 26622: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - case "oneof": - parseOneOf(type, token); - break; +"use strict"; - case "extensions": - readRanges(type.extensions || (type.extensions = [])); - break; - case "reserved": - readRanges(type.reserved || (type.reserved = []), true); - break; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - default: - /* istanbul ignore if */ - if (edition === "proto2" || !typeRefRe.test(token)) { - throw illegal(token); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - push(token); - parseField(type, "optional"); - break; - } - }); - parent.add(type); - if (parent === ptr) { - topLevelObjects.push(type); - } - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - function parseField(parent, rule, extend) { - var type = next(); - if (type === "group") { - parseGroup(parent, rule); - return; - } - // Type names can consume multiple tokens, in multiple variants: - // package.subpackage field tokens: "package.subpackage" [TYPE NAME ENDS HERE] "field" - // package . subpackage field tokens: "package" "." "subpackage" [TYPE NAME ENDS HERE] "field" - // package. subpackage field tokens: "package." "subpackage" [TYPE NAME ENDS HERE] "field" - // package .subpackage field tokens: "package" ".subpackage" [TYPE NAME ENDS HERE] "field" - // Keep reading tokens until we get a type name with no period at the end, - // and the next token does not start with a period. - while (type.endsWith(".") || peek().startsWith(".")) { - type += next(); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - /* istanbul ignore if */ - if (!typeRefRe.test(type)) - throw illegal(type, "type"); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - var name = next(); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - /* istanbul ignore if */ +/** + * The UpdateRabbitMQTarget model module. + * @module model/UpdateRabbitMQTarget + * @version 3.6.3 + */ +var UpdateRabbitMQTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateRabbitMQTarget. + * @alias module:model/UpdateRabbitMQTarget + * @param name {String} Target name + */ + function UpdateRabbitMQTarget(name) { + _classCallCheck(this, UpdateRabbitMQTarget); - if (!nameRe.test(name)) - throw illegal(name, "name"); + UpdateRabbitMQTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - name = applyCase(name); - skip("="); - var field = new Field(name, parseId(next()), type, rule, extend); + _createClass(UpdateRabbitMQTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a UpdateRabbitMQTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateRabbitMQTarget} obj Optional instance to populate. + * @return {module:model/UpdateRabbitMQTarget} The populated UpdateRabbitMQTarget instance. + */ - ifBlock(field, function parseField_block(token) { + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateRabbitMQTarget(); - /* istanbul ignore else */ - if (token === "option") { - parseOption(field, token); - skip(";"); - } else - throw illegal(token); + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } - }, function parseField_line() { - parseInlineOptions(field); - }); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - if (rule === "proto3_optional") { - // for proto3 optional fields, we create a single-member Oneof to mimic "optional" behavior - var oneof = new OneOf("_" + name); - field.setOption("proto3_optional", true); - oneof.add(field); - parent.add(oneof); - } else { - parent.add(field); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (parent === ptr) { - topLevelObjects.push(field); + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - } - function parseGroup(parent, rule) { - if (edition >= 2023) { - throw illegal("group"); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - var name = next(); - /* istanbul ignore if */ - if (!nameRe.test(name)) - throw illegal(name, "name"); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - var fieldName = util.lcFirst(name); - if (name === fieldName) - name = util.ucFirst(name); - skip("="); - var id = parseId(next()); - var type = new Type(name); - type.group = true; - var field = new Field(fieldName, id, name, rule); - field.filename = parse.filename; - ifBlock(type, function parseGroup_block(token) { - switch (token) { + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - case "option": - parseOption(type, token); - skip(";"); - break; - case "required": - case "repeated": - parseField(type, token); - break; + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - case "optional": - /* istanbul ignore if */ - if (edition === "proto3") { - parseField(type, "proto3_optional"); - } else { - parseField(type, "optional"); - } - break; + if (data.hasOwnProperty('rabbitmq-server-password')) { + obj['rabbitmq-server-password'] = _ApiClient["default"].convertToType(data['rabbitmq-server-password'], 'String'); + } - case "message": - parseType(type, token); - break; + if (data.hasOwnProperty('rabbitmq-server-uri')) { + obj['rabbitmq-server-uri'] = _ApiClient["default"].convertToType(data['rabbitmq-server-uri'], 'String'); + } - case "enum": - parseEnum(type, token); - break; + if (data.hasOwnProperty('rabbitmq-server-user')) { + obj['rabbitmq-server-user'] = _ApiClient["default"].convertToType(data['rabbitmq-server-user'], 'String'); + } - case "reserved": - readRanges(type.reserved || (type.reserved = []), true); - break; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - /* istanbul ignore next */ - default: - throw illegal(token); // there are no groups with proto3 semantics - } - }); - parent.add(type) - .add(field); - } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } - function parseMapField(parent) { - skip("<"); - var keyType = next(); + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + } - /* istanbul ignore if */ - if (types.mapKey[keyType] === undefined) - throw illegal(keyType, "type"); + return obj; + } + }]); - skip(","); - var valueType = next(); + return UpdateRabbitMQTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ - /* istanbul ignore if */ - if (!typeRefRe.test(valueType)) - throw illegal(valueType, "type"); - skip(">"); - var name = next(); +UpdateRabbitMQTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ - /* istanbul ignore if */ - if (!nameRe.test(name)) - throw illegal(name, "name"); +UpdateRabbitMQTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - skip("="); - var field = new MapField(applyCase(name), parseId(next()), keyType, valueType); - ifBlock(field, function parseMapField_block(token) { +UpdateRabbitMQTarget.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ - /* istanbul ignore else */ - if (token === "option") { - parseOption(field, token); - skip(";"); - } else - throw illegal(token); +UpdateRabbitMQTarget.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - }, function parseMapField_line() { - parseInlineOptions(field); - }); - parent.add(field); - } +UpdateRabbitMQTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ - function parseOneOf(parent, token) { +UpdateRabbitMQTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ - /* istanbul ignore if */ - if (!nameRe.test(token = next())) - throw illegal(token, "name"); +UpdateRabbitMQTarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ - var oneof = new OneOf(applyCase(token)); - ifBlock(oneof, function parseOneOf_block(token) { - if (token === "option") { - parseOption(oneof, token); - skip(";"); - } else { - push(token); - parseField(oneof, "optional"); - } - }); - parent.add(oneof); - } +UpdateRabbitMQTarget.prototype['new-name'] = undefined; +/** + * @member {String} rabbitmq-server-password + */ - function parseEnum(parent, token) { +UpdateRabbitMQTarget.prototype['rabbitmq-server-password'] = undefined; +/** + * @member {String} rabbitmq-server-uri + */ - /* istanbul ignore if */ - if (!nameRe.test(token = next())) - throw illegal(token, "name"); +UpdateRabbitMQTarget.prototype['rabbitmq-server-uri'] = undefined; +/** + * @member {String} rabbitmq-server-user + */ - var enm = new Enum(token); - ifBlock(enm, function parseEnum_block(token) { - switch(token) { - case "option": - parseOption(enm, token); - skip(";"); - break; +UpdateRabbitMQTarget.prototype['rabbitmq-server-user'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - case "reserved": - readRanges(enm.reserved || (enm.reserved = []), true); - if(enm.reserved === undefined) enm.reserved = []; - break; +UpdateRabbitMQTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - default: - parseEnumValue(enm, token); - } - }); - parent.add(enm); - if (parent === ptr) { - topLevelObjects.push(enm); - } - } +UpdateRabbitMQTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ - function parseEnumValue(parent, token) { +UpdateRabbitMQTarget.prototype['update-version'] = undefined; +var _default = UpdateRabbitMQTarget; +exports["default"] = _default; - /* istanbul ignore if */ - if (!nameRe.test(token)) - throw illegal(token, "name"); +/***/ }), - skip("="); - var value = parseId(next(), true), - dummy = { - options: undefined - }; - dummy.getOption = function(name) { - return this.options[name]; - }; - dummy.setOption = function(name, value) { - ReflectionObject.prototype.setOption.call(dummy, name, value); - }; - dummy.setParsedOption = function() { - return undefined; - }; - ifBlock(dummy, function parseEnumValue_block(token) { +/***/ 87334: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - /* istanbul ignore else */ - if (token === "option") { - parseOption(dummy, token); // skip - skip(";"); - } else - throw illegal(token); +"use strict"; - }, function parseEnumValue_line() { - parseInlineOptions(dummy); // skip - }); - parent.add(token, value, dummy.comment, dummy.parsedOptions || dummy.options); - } - function parseOption(parent, token) { - var option; - var propName; - var isOption = true; - if (token === "option") { - token = next(); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - while (token !== "=") { - if (token === "(") { - var parensValue = next(); - skip(")"); - token = "(" + parensValue + ")"; - } - if (isOption) { - isOption = false; - if (token.includes(".") && !token.includes("(")) { - var tokens = token.split("."); - option = tokens[0] + "."; - token = tokens[1]; - continue; - } - option = token; - } else { - propName = propName ? propName += token : token; - } - token = next(); - } - var name = propName ? option.concat(propName) : option; - var optionValue = parseOptionValue(parent, name); - propName = propName && propName[0] === "." ? propName.slice(1) : propName; - option = option && option[option.length - 1] === "." ? option.slice(0, -1) : option; - setParsedOption(parent, option, optionValue, propName); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - function parseOptionValue(parent, name) { - // { a: "foo" b { c: "bar" } } - if (skip("{", true)) { - var objectResult = {}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - while (!skip("}", true)) { - /* istanbul ignore if */ - if (!nameRe.test(token = next())) { - throw illegal(token, "name"); - } - if (token === null) { - throw illegal(token, "end of input"); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var value; - var propName = token; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - skip(":", true); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (peek() === "{") { - // option (my_option) = { - // repeated_value: [ "foo", "bar" ] - // }; - value = parseOptionValue(parent, name + "." + token); - } else if (peek() === "[") { - value = []; - var lastValue; - if (skip("[", true)) { - do { - lastValue = readValue(true); - value.push(lastValue); - } while (skip(",", true)); - skip("]"); - if (typeof lastValue !== "undefined") { - setOption(parent, name + "." + token, lastValue); - } - } - } else { - value = readValue(true); - setOption(parent, name + "." + token, value); - } +/** + * The UpdateRabbitMQTargetDetails model module. + * @module model/UpdateRabbitMQTargetDetails + * @version 3.6.3 + */ +var UpdateRabbitMQTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new UpdateRabbitMQTargetDetails. + * @alias module:model/UpdateRabbitMQTargetDetails + * @param name {String} Target name + */ + function UpdateRabbitMQTargetDetails(name) { + _classCallCheck(this, UpdateRabbitMQTargetDetails); - var prevValue = objectResult[propName]; + UpdateRabbitMQTargetDetails.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - if (prevValue) - value = [].concat(prevValue).concat(value); - objectResult[propName] = value; + _createClass(UpdateRabbitMQTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a UpdateRabbitMQTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateRabbitMQTargetDetails} obj Optional instance to populate. + * @return {module:model/UpdateRabbitMQTargetDetails} The populated UpdateRabbitMQTargetDetails instance. + */ - // Semicolons and commas can be optional - skip(",", true); - skip(";", true); - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateRabbitMQTargetDetails(); - return objectResult; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - var simpleValue = readValue(true); - setOption(parent, name, simpleValue); - return simpleValue; - // Does not enforce a delimiter to be universal - } - - function setOption(parent, name, value) { - if (ptr === parent && /^features\./.test(name)) { - topLevelOptions[name] = value; - return; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - if (parent.setOption) - parent.setOption(name, value); - } - - function setParsedOption(parent, name, value, propName) { - if (parent.setParsedOption) - parent.setParsedOption(name, value, propName); - } - function parseInlineOptions(parent) { - if (skip("[", true)) { - do { - parseOption(parent, "option"); - } while (skip(",", true)); - skip("]"); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - return parent; - } - - function parseService(parent, token) { - /* istanbul ignore if */ - if (!nameRe.test(token = next())) - throw illegal(token, "service name"); + if (data.hasOwnProperty('new-version')) { + obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); + } - var service = new Service(token); - ifBlock(service, function parseService_block(token) { - if (parseCommon(service, token)) { - return; - } + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } - /* istanbul ignore else */ - if (token === "rpc") - parseMethod(service, token); - else - throw illegal(token); - }); - parent.add(service); - if (parent === ptr) { - topLevelObjects.push(service); + if (data.hasOwnProperty('rabbitmq_server_password')) { + obj['rabbitmq_server_password'] = _ApiClient["default"].convertToType(data['rabbitmq_server_password'], 'String'); } - } - function parseMethod(parent, token) { - // Get the comment of the preceding line now (if one exists) in case the - // method is defined across multiple lines. - var commentText = cmnt(); + if (data.hasOwnProperty('rabbitmq_server_uri')) { + obj['rabbitmq_server_uri'] = _ApiClient["default"].convertToType(data['rabbitmq_server_uri'], 'String'); + } - var type = token; + if (data.hasOwnProperty('rabbitmq_server_user')) { + obj['rabbitmq_server_user'] = _ApiClient["default"].convertToType(data['rabbitmq_server_user'], 'String'); + } - /* istanbul ignore if */ - if (!nameRe.test(token = next())) - throw illegal(token, "name"); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - var name = token, - requestType, requestStream, - responseType, responseStream; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } - skip("("); - if (skip("stream", true)) - requestStream = true; + return obj; + } + }]); - /* istanbul ignore if */ - if (!typeRefRe.test(token = next())) - throw illegal(token); + return UpdateRabbitMQTargetDetails; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - requestType = token; - skip(")"); skip("returns"); skip("("); - if (skip("stream", true)) - responseStream = true; - /* istanbul ignore if */ - if (!typeRefRe.test(token = next())) - throw illegal(token); +UpdateRabbitMQTargetDetails.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ - responseType = token; - skip(")"); +UpdateRabbitMQTargetDetails.prototype['keep-prev-version'] = undefined; +/** + * Target name + * @member {String} name + */ - var method = new Method(name, type, requestType, responseType, requestStream, responseStream); - method.comment = commentText; - ifBlock(method, function parseMethod_block(token) { +UpdateRabbitMQTargetDetails.prototype['name'] = undefined; +/** + * Deprecated + * @member {Boolean} new-version + */ - /* istanbul ignore else */ - if (token === "option") { - parseOption(method, token); - skip(";"); - } else - throw illegal(token); +UpdateRabbitMQTargetDetails.prototype['new-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection_key + */ - }); - parent.add(method); - } +UpdateRabbitMQTargetDetails.prototype['protection_key'] = undefined; +/** + * @member {String} rabbitmq_server_password + */ - function parseExtension(parent, token) { +UpdateRabbitMQTargetDetails.prototype['rabbitmq_server_password'] = undefined; +/** + * @member {String} rabbitmq_server_uri + */ - /* istanbul ignore if */ - if (!typeRefRe.test(token = next())) - throw illegal(token, "reference"); +UpdateRabbitMQTargetDetails.prototype['rabbitmq_server_uri'] = undefined; +/** + * @member {String} rabbitmq_server_user + */ - var reference = token; - ifBlock(null, function parseExtension_block(token) { - switch (token) { +UpdateRabbitMQTargetDetails.prototype['rabbitmq_server_user'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - case "required": - case "repeated": - parseField(parent, token, reference); - break; +UpdateRabbitMQTargetDetails.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - case "optional": - /* istanbul ignore if */ - if (edition === "proto3") { - parseField(parent, "proto3_optional", reference); - } else { - parseField(parent, "optional", reference); - } - break; +UpdateRabbitMQTargetDetails.prototype['uid-token'] = undefined; +var _default = UpdateRabbitMQTargetDetails; +exports["default"] = _default; - default: - /* istanbul ignore if */ - if (edition === "proto2" || !typeRefRe.test(token)) - throw illegal(token); - push(token); - parseField(parent, "optional", reference); - break; - } - }); - } +/***/ }), - var token; - while ((token = next()) !== null) { - switch (token) { +/***/ 87403: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - case "package": +"use strict"; - /* istanbul ignore if */ - if (!head) - throw illegal(token); - parsePackage(); - break; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - case "import": +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - /* istanbul ignore if */ - if (!head) - throw illegal(token); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - parseImport(); - break; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - case "syntax": +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - /* istanbul ignore if */ - if (!head) - throw illegal(token); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - parseSyntax(); - break; +/** + * The UpdateRabbitMQTargetOutput model module. + * @module model/UpdateRabbitMQTargetOutput + * @version 3.6.3 + */ +var UpdateRabbitMQTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateRabbitMQTargetOutput. + * @alias module:model/UpdateRabbitMQTargetOutput + */ + function UpdateRabbitMQTargetOutput() { + _classCallCheck(this, UpdateRabbitMQTargetOutput); - case "edition": - /* istanbul ignore if */ - if (!head) - throw illegal(token); - parseEdition(); - break; + UpdateRabbitMQTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - case "option": - parseOption(ptr, token); - skip(";", true); - break; - default: + _createClass(UpdateRabbitMQTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateRabbitMQTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateRabbitMQTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateRabbitMQTargetOutput} The populated UpdateRabbitMQTargetOutput instance. + */ - /* istanbul ignore else */ - if (parseCommon(ptr, token)) { - head = false; - continue; - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateRabbitMQTargetOutput(); - /* istanbul ignore next */ - throw illegal(token); + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); } - } - - resolveFileFeatures(); + } - parse.filename = null; - return { - "package" : pkg, - "imports" : imports, - weakImports : weakImports, - root : root - }; -} + return obj; + } + }]); + return UpdateRabbitMQTargetOutput; +}(); /** - * Parses the given .proto source and returns an object with the parsed contents. - * @name parse - * @function - * @param {string} source Source contents - * @param {IParseOptions} [options] Parse options. Defaults to {@link parse.defaults} when omitted. - * @returns {IParserResult} Parser result - * @property {string} filename=null Currently processing file name for error reporting, if known - * @property {IParseOptions} defaults Default {@link IParseOptions} - * @variation 2 + * @member {Number} target_id */ +UpdateRabbitMQTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateRabbitMQTargetOutput; +exports["default"] = _default; + /***/ }), -/***/ 46969: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 57081: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -module.exports = Reader; -var util = __nccwpck_require__(22857); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var BufferReader; // cyclic +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -var LongBits = util.LongBits, - utf8 = util.utf8; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/* istanbul ignore next */ -function indexOutOfRange(reader, writeLength) { - return RangeError("index out of range: " + reader.pos + " + " + (writeLength || 1) + " > " + reader.len); -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Constructs a new reader instance using the specified buffer. - * @classdesc Wire format reader using `Uint8Array` if available, otherwise `Array`. - * @constructor - * @param {Uint8Array} buffer Buffer to read from + * The UpdateRole model module. + * @module model/UpdateRole + * @version 3.6.3 */ -function Reader(buffer) { +var UpdateRole = /*#__PURE__*/function () { + /** + * Constructs a new UpdateRole. + * @alias module:model/UpdateRole + * @param name {String} Role name + */ + function UpdateRole(name) { + _classCallCheck(this, UpdateRole); - /** - * Read buffer. - * @type {Uint8Array} - */ - this.buf = buffer; + UpdateRole.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - /** - * Read buffer position. - * @type {number} - */ - this.pos = 0; + _createClass(UpdateRole, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Read buffer length. - * @type {number} + * Constructs a UpdateRole from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateRole} obj Optional instance to populate. + * @return {module:model/UpdateRole} The populated UpdateRole instance. */ - this.len = buffer.length; -} -var create_array = typeof Uint8Array !== "undefined" - ? function create_typed_array(buffer) { - if (buffer instanceof Uint8Array || Array.isArray(buffer)) - return new Reader(buffer); - throw Error("illegal buffer"); - } - /* istanbul ignore next */ - : function create_array(buffer) { - if (Array.isArray(buffer)) - return new Reader(buffer); - throw Error("illegal buffer"); - }; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateRole(); -var create = function create() { - return util.Buffer - ? function create_buffer_setup(buffer) { - return (Reader.create = function create_buffer(buffer) { - return util.Buffer.isBuffer(buffer) - ? new BufferReader(buffer) - /* istanbul ignore next */ - : create_array(buffer); - })(buffer); + if (data.hasOwnProperty('analytics-access')) { + obj['analytics-access'] = _ApiClient["default"].convertToType(data['analytics-access'], 'String'); } - /* istanbul ignore next */ - : create_array; -}; -/** - * Creates a new reader using the specified buffer. - * @function - * @param {Uint8Array|Buffer} buffer Buffer to read from - * @returns {Reader|BufferReader} A {@link BufferReader} if `buffer` is a Buffer, otherwise a {@link Reader} - * @throws {Error} If `buffer` is not a valid buffer - */ -Reader.create = create(); + if (data.hasOwnProperty('audit-access')) { + obj['audit-access'] = _ApiClient["default"].convertToType(data['audit-access'], 'String'); + } -Reader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */ util.Array.prototype.slice; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -/** - * Reads a varint as an unsigned 32 bit value. - * @function - * @returns {number} Value read - */ -Reader.prototype.uint32 = (function read_uint32_setup() { - var value = 4294967295; // optimizer type-hint, tends to deopt otherwise (?!) - return function read_uint32() { - value = ( this.buf[this.pos] & 127 ) >>> 0; if (this.buf[this.pos++] < 128) return value; - value = (value | (this.buf[this.pos] & 127) << 7) >>> 0; if (this.buf[this.pos++] < 128) return value; - value = (value | (this.buf[this.pos] & 127) << 14) >>> 0; if (this.buf[this.pos++] < 128) return value; - value = (value | (this.buf[this.pos] & 127) << 21) >>> 0; if (this.buf[this.pos++] < 128) return value; - value = (value | (this.buf[this.pos] & 15) << 28) >>> 0; if (this.buf[this.pos++] < 128) return value; + if (data.hasOwnProperty('event-center-access')) { + obj['event-center-access'] = _ApiClient["default"].convertToType(data['event-center-access'], 'String'); + } - /* istanbul ignore if */ - if ((this.pos += 5) > this.len) { - this.pos = this.len; - throw indexOutOfRange(this, 10); + if (data.hasOwnProperty('event-forwarder-access')) { + obj['event-forwarder-access'] = _ApiClient["default"].convertToType(data['event-forwarder-access'], 'String'); } - return value; - }; -})(); -/** - * Reads a varint as a signed 32 bit value. - * @returns {number} Value read - */ -Reader.prototype.int32 = function read_int32() { - return this.uint32() | 0; -}; + if (data.hasOwnProperty('gw-analytics-access')) { + obj['gw-analytics-access'] = _ApiClient["default"].convertToType(data['gw-analytics-access'], 'String'); + } -/** - * Reads a zig-zag encoded varint as a signed 32 bit value. - * @returns {number} Value read - */ -Reader.prototype.sint32 = function read_sint32() { - var value = this.uint32(); - return value >>> 1 ^ -(value & 1) | 0; -}; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/* eslint-disable no-invalid-this */ + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -function readLongVarint() { - // tends to deopt with local vars for octet etc. - var bits = new LongBits(0, 0); - var i = 0; - if (this.len - this.pos > 4) { // fast route (lo) - for (; i < 4; ++i) { - // 1st..4th - bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0; - if (this.buf[this.pos++] < 128) - return bits; + if (data.hasOwnProperty('new-comment')) { + obj['new-comment'] = _ApiClient["default"].convertToType(data['new-comment'], 'String'); } - // 5th - bits.lo = (bits.lo | (this.buf[this.pos] & 127) << 28) >>> 0; - bits.hi = (bits.hi | (this.buf[this.pos] & 127) >> 4) >>> 0; - if (this.buf[this.pos++] < 128) - return bits; - i = 0; - } else { - for (; i < 3; ++i) { - /* istanbul ignore if */ - if (this.pos >= this.len) - throw indexOutOfRange(this); - // 1st..3th - bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0; - if (this.buf[this.pos++] < 128) - return bits; + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - // 4th - bits.lo = (bits.lo | (this.buf[this.pos++] & 127) << i * 7) >>> 0; - return bits; - } - if (this.len - this.pos > 4) { // fast route (hi) - for (; i < 5; ++i) { - // 6th..10th - bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0; - if (this.buf[this.pos++] < 128) - return bits; + + if (data.hasOwnProperty('sra-reports-access')) { + obj['sra-reports-access'] = _ApiClient["default"].convertToType(data['sra-reports-access'], 'String'); } - } else { - for (; i < 5; ++i) { - /* istanbul ignore if */ - if (this.pos >= this.len) - throw indexOutOfRange(this); - // 6th..10th - bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0; - if (this.buf[this.pos++] < 128) - return bits; + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - } - /* istanbul ignore next */ - throw Error("invalid varint encoding"); -} -/* eslint-enable no-invalid-this */ + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('usage-reports-access')) { + obj['usage-reports-access'] = _ApiClient["default"].convertToType(data['usage-reports-access'], 'String'); + } + } + return obj; + } + }]); + + return UpdateRole; +}(); /** - * Reads a varint as a signed 64 bit value. - * @name Reader#int64 - * @function - * @returns {Long} Value read + * Allow this role to view analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. + * @member {String} analytics-access */ + +UpdateRole.prototype['analytics-access'] = undefined; /** - * Reads a varint as an unsigned 64 bit value. - * @name Reader#uint64 - * @function - * @returns {Long} Value read + * Allow this role to view audit logs. Currently only 'none', 'own' and 'all' values are supported, allowing associated auth methods to view audit logs produced by the same auth methods. + * @member {String} audit-access */ +UpdateRole.prototype['audit-access'] = undefined; /** - * Reads a zig-zag encoded varint as a signed 64 bit value. - * @name Reader#sint64 - * @function - * @returns {Long} Value read + * Description of the object + * @member {String} description + * @default 'default_comment' */ +UpdateRole.prototype['description'] = 'default_comment'; /** - * Reads a varint as a boolean. - * @returns {boolean} Value read + * Allow this role to view Event Center. Currently only 'none', 'own' and 'all' values are supported + * @member {String} event-center-access */ -Reader.prototype.bool = function read_bool() { - return this.uint32() !== 0; -}; - -function readFixed32_end(buf, end) { // note that this uses `end`, not `pos` - return (buf[end - 4] - | buf[end - 3] << 8 - | buf[end - 2] << 16 - | buf[end - 1] << 24) >>> 0; -} +UpdateRole.prototype['event-center-access'] = undefined; /** - * Reads fixed 32 bits as an unsigned 32 bit integer. - * @returns {number} Value read + * Allow this role to manage Event Forwarders. Currently only 'none' and 'all' values are supported. + * @member {String} event-forwarder-access */ -Reader.prototype.fixed32 = function read_fixed32() { - - /* istanbul ignore if */ - if (this.pos + 4 > this.len) - throw indexOutOfRange(this, 4); - - return readFixed32_end(this.buf, this.pos += 4); -}; +UpdateRole.prototype['event-forwarder-access'] = undefined; /** - * Reads fixed 32 bits as a signed 32 bit integer. - * @returns {number} Value read + * Allow this role to view gw analytics. Currently only 'none', 'own', 'all' values are supported, allowing associated auth methods to view reports produced by the same auth methods. + * @member {String} gw-analytics-access */ -Reader.prototype.sfixed32 = function read_sfixed32() { - - /* istanbul ignore if */ - if (this.pos + 4 > this.len) - throw indexOutOfRange(this, 4); - - return readFixed32_end(this.buf, this.pos += 4) | 0; -}; - -/* eslint-disable no-invalid-this */ - -function readFixed64(/* this: Reader */) { - - /* istanbul ignore if */ - if (this.pos + 8 > this.len) - throw indexOutOfRange(this, 8); - - return new LongBits(readFixed32_end(this.buf, this.pos += 4), readFixed32_end(this.buf, this.pos += 4)); -} - -/* eslint-enable no-invalid-this */ +UpdateRole.prototype['gw-analytics-access'] = undefined; /** - * Reads fixed 64 bits. - * @name Reader#fixed64 - * @function - * @returns {Long} Value read + * Set output format to JSON + * @member {Boolean} json + * @default false */ +UpdateRole.prototype['json'] = false; /** - * Reads zig-zag encoded fixed 64 bits. - * @name Reader#sfixed64 - * @function - * @returns {Long} Value read + * Role name + * @member {String} name */ +UpdateRole.prototype['name'] = undefined; /** - * Reads a float (32 bit) as a number. - * @function - * @returns {number} Value read + * Deprecated - use description + * @member {String} new-comment + * @default 'default_comment' */ -Reader.prototype.float = function read_float() { - - /* istanbul ignore if */ - if (this.pos + 4 > this.len) - throw indexOutOfRange(this, 4); - - var value = util.float.readFloatLE(this.buf, this.pos); - this.pos += 4; - return value; -}; +UpdateRole.prototype['new-comment'] = 'default_comment'; /** - * Reads a double (64 bit float) as a number. - * @function - * @returns {number} Value read + * New Role name + * @member {String} new-name */ -Reader.prototype.double = function read_double() { - - /* istanbul ignore if */ - if (this.pos + 8 > this.len) - throw indexOutOfRange(this, 4); - - var value = util.float.readDoubleLE(this.buf, this.pos); - this.pos += 8; - return value; -}; +UpdateRole.prototype['new-name'] = undefined; /** - * Reads a sequence of bytes preceeded by its length as a varint. - * @returns {Uint8Array} Value read + * Allow this role to view SRA Clusters. Currently only 'none', 'own', 'all' values are supported. + * @member {String} sra-reports-access */ -Reader.prototype.bytes = function read_bytes() { - var length = this.uint32(), - start = this.pos, - end = this.pos + length; - - /* istanbul ignore if */ - if (end > this.len) - throw indexOutOfRange(this, length); - - this.pos += length; - if (Array.isArray(this.buf)) // plain array - return this.buf.slice(start, end); - - if (start === end) { // fix for IE 10/Win8 and others' subarray returning array of size 1 - var nativeBuffer = util.Buffer; - return nativeBuffer - ? nativeBuffer.alloc(0) - : new this.buf.constructor(0); - } - return this._slice.call(this.buf, start, end); -}; +UpdateRole.prototype['sra-reports-access'] = undefined; /** - * Reads a string preceeded by its byte length as a varint. - * @returns {string} Value read + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -Reader.prototype.string = function read_string() { - var bytes = this.bytes(); - return utf8.read(bytes, 0, bytes.length); -}; +UpdateRole.prototype['token'] = undefined; /** - * Skips the specified number of bytes if specified, otherwise skips a varint. - * @param {number} [length] Length if known, otherwise a varint is assumed - * @returns {Reader} `this` + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -Reader.prototype.skip = function skip(length) { - if (typeof length === "number") { - /* istanbul ignore if */ - if (this.pos + length > this.len) - throw indexOutOfRange(this, length); - this.pos += length; - } else { - do { - /* istanbul ignore if */ - if (this.pos >= this.len) - throw indexOutOfRange(this); - } while (this.buf[this.pos++] & 128); - } - return this; -}; +UpdateRole.prototype['uid-token'] = undefined; /** - * Skips the next element of the specified wire type. - * @param {number} wireType Wire type received - * @returns {Reader} `this` + * Allow this role to view Usage Report. Currently only 'none' and 'all' values are supported. + * @member {String} usage-reports-access */ -Reader.prototype.skipType = function(wireType) { - switch (wireType) { - case 0: - this.skip(); - break; - case 1: - this.skip(8); - break; - case 2: - this.skip(this.uint32()); - break; - case 3: - while ((wireType = this.uint32() & 7) !== 4) { - this.skipType(wireType); - } - break; - case 5: - this.skip(4); - break; - - /* istanbul ignore next */ - default: - throw Error("invalid wire type " + wireType + " at offset " + this.pos); - } - return this; -}; - -Reader._configure = function(BufferReader_) { - BufferReader = BufferReader_; - Reader.create = create(); - BufferReader._configure(); - - var fn = util.Long ? "toLong" : /* istanbul ignore next */ "toNumber"; - util.merge(Reader.prototype, { - - int64: function read_int64() { - return readLongVarint.call(this)[fn](false); - }, - - uint64: function read_uint64() { - return readLongVarint.call(this)[fn](true); - }, - sint64: function read_sint64() { - return readLongVarint.call(this).zzDecode()[fn](false); - }, +UpdateRole.prototype['usage-reports-access'] = undefined; +var _default = UpdateRole; +exports["default"] = _default; - fixed64: function read_fixed64() { - return readFixed64.call(this)[fn](true); - }, +/***/ }), - sfixed64: function read_sfixed64() { - return readFixed64.call(this)[fn](false); - } +/***/ 99836: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - }); -}; +"use strict"; -/***/ }), +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/***/ 42423: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -"use strict"; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -module.exports = BufferReader; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -// extends Reader -var Reader = __nccwpck_require__(46969); -(BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var util = __nccwpck_require__(22857); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Constructs a new buffer reader instance. - * @classdesc Wire format reader using node buffers. - * @extends Reader - * @constructor - * @param {Buffer} buffer Buffer to read from + * The UpdateRoleOutput model module. + * @module model/UpdateRoleOutput + * @version 3.6.3 */ -function BufferReader(buffer) { - Reader.call(this, buffer); +var UpdateRoleOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateRoleOutput. + * @alias module:model/UpdateRoleOutput + */ + function UpdateRoleOutput() { + _classCallCheck(this, UpdateRoleOutput); + + UpdateRoleOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + _createClass(UpdateRoleOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} /** - * Read buffer. - * @name BufferReader#buf - * @type {Buffer} + * Constructs a UpdateRoleOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateRoleOutput} obj Optional instance to populate. + * @return {module:model/UpdateRoleOutput} The populated UpdateRoleOutput instance. */ -} -BufferReader._configure = function () { - /* istanbul ignore else */ - if (util.Buffer) - BufferReader.prototype._slice = util.Buffer.prototype.slice; -}; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateRoleOutput(); + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); + } + } -/** - * @override - */ -BufferReader.prototype.string = function read_string_buffer() { - var len = this.uint32(); // modifies pos - return this.buf.utf8Slice - ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + len, this.len)) - : this.buf.toString("utf-8", this.pos, this.pos = Math.min(this.pos + len, this.len)); -}; + return obj; + } + }]); + return UpdateRoleOutput; +}(); /** - * Reads a sequence of bytes preceeded by its length as a varint. - * @name BufferReader#bytes - * @function - * @returns {Buffer} Value read + * @member {Boolean} updated */ -BufferReader._configure(); +UpdateRoleOutput.prototype['updated'] = undefined; +var _default = UpdateRoleOutput; +exports["default"] = _default; /***/ }), -/***/ 8185: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 64696: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -module.exports = Root; -// extends Namespace -var Namespace = __nccwpck_require__(21946); -((Root.prototype = Object.create(Namespace.prototype)).constructor = Root).className = "Root"; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var Field = __nccwpck_require__(30457), - Enum = __nccwpck_require__(73528), - OneOf = __nccwpck_require__(84624), - util = __nccwpck_require__(39609); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -var Type, // cyclic - parse, // might be excluded - common; // " +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Constructs a new root namespace instance. - * @classdesc Root namespace wrapping all types, enums, services, sub-namespaces etc. that belong together. - * @extends NamespaceBase - * @constructor - * @param {Object.} [options] Top level options + * The UpdateRotatedSecret model module. + * @module model/UpdateRotatedSecret + * @version 3.6.3 */ -function Root(options) { - Namespace.call(this, "", options); - - /** - * Deferred extension fields. - * @type {Field[]} - */ - this.deferred = []; +var UpdateRotatedSecret = /*#__PURE__*/function () { + /** + * Constructs a new UpdateRotatedSecret. + * updateRotatedSecret is a command that updates rotated secret. [Deprecated: Use rotated-secret update commands] + * @alias module:model/UpdateRotatedSecret + * @param name {String} Secret name + */ + function UpdateRotatedSecret(name) { + _classCallCheck(this, UpdateRotatedSecret); - /** - * Resolved file names of loaded files. - * @type {string[]} - */ - this.files = []; + UpdateRotatedSecret.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - /** - * Edition, defaults to proto2 if unspecified. - * @type {string} - * @private - */ - this._edition = "proto2"; + _createClass(UpdateRotatedSecret, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Global lookup cache of fully qualified names. - * @type {Object.} - * @private + * Constructs a UpdateRotatedSecret from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateRotatedSecret} obj Optional instance to populate. + * @return {module:model/UpdateRotatedSecret} The populated UpdateRotatedSecret instance. */ - this._fullyQualifiedObjects = {}; -} -/** - * Loads a namespace descriptor into a root namespace. - * @param {INamespace} json Namespace descriptor - * @param {Root} [root] Root namespace, defaults to create a new one if omitted - * @returns {Root} Root namespace - */ -Root.fromJSON = function fromJSON(json, root) { - if (!root) - root = new Root(); - if (json.options) - root.setOptions(json.options); - return root.addJSON(json.nested).resolveAll(); -}; - -/** - * Resolves the path of an imported file, relative to the importing origin. - * This method exists so you can override it with your own logic in case your imports are scattered over multiple directories. - * @function - * @param {string} origin The file name of the importing file - * @param {string} target The file name being imported - * @returns {string|null} Resolved path to `target` or `null` to skip the file - */ -Root.prototype.resolvePath = util.path.resolve; - -/** - * Fetch content from file path or url - * This method exists so you can override it with your own logic. - * @function - * @param {string} path File path or url - * @param {FetchCallback} callback Callback function - * @returns {undefined} - */ -Root.prototype.fetch = util.fetch; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateRotatedSecret(); -// A symbol-like function to safely signal synchronous loading -/* istanbul ignore next */ -function SYNC() {} // eslint-disable-line no-empty-function + if (data.hasOwnProperty('ProviderType')) { + obj['ProviderType'] = _ApiClient["default"].convertToType(data['ProviderType'], 'String'); + } -/** - * Loads one or multiple .proto or preprocessed .json files into this root namespace and calls the callback. - * @param {string|string[]} filename Names of one or multiple files to load - * @param {IParseOptions} options Parse options - * @param {LoadCallback} callback Callback function - * @returns {undefined} - */ -Root.prototype.load = function load(filename, options, callback) { - if (typeof options === "function") { - callback = options; - options = undefined; - } - var self = this; - if (!callback) { - return util.asPromise(load, self, filename, options); - } + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } - var sync = callback === SYNC; // undocumented + if (data.hasOwnProperty('api-id')) { + obj['api-id'] = _ApiClient["default"].convertToType(data['api-id'], 'String'); + } - // Finishes loading by calling the callback (exactly once) - function finish(err, root) { - /* istanbul ignore if */ - if (!callback) { - return; + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); } - if (sync) { - throw err; + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'String'); } - if (root) { - root.resolveAll(); + + if (data.hasOwnProperty('aws-region')) { + obj['aws-region'] = _ApiClient["default"].convertToType(data['aws-region'], 'String'); } - var cb = callback; - callback = null; - cb(err, root); - } - // Bundled definition existence checking - function getBundledFileName(filename) { - var idx = filename.lastIndexOf("google/protobuf/"); - if (idx > -1) { - var altname = filename.substring(idx); - if (altname in common) return altname; + if (data.hasOwnProperty('custom-payload')) { + obj['custom-payload'] = _ApiClient["default"].convertToType(data['custom-payload'], 'String'); } - return null; - } - // Processes a single file - function process(filename, source) { - try { - if (util.isString(source) && source.charAt(0) === "{") - source = JSON.parse(source); - if (!util.isString(source)) - self.setOptions(source.options).addJSON(source.nested); - else { - parse.filename = filename; - var parsed = parse(source, self, options), - resolved, - i = 0; - if (parsed.imports) - for (; i < parsed.imports.length; ++i) - if (resolved = getBundledFileName(parsed.imports[i]) || self.resolvePath(filename, parsed.imports[i])) - fetch(resolved); - if (parsed.weakImports) - for (i = 0; i < parsed.weakImports.length; ++i) - if (resolved = getBundledFileName(parsed.weakImports[i]) || self.resolvePath(filename, parsed.weakImports[i])) - fetch(resolved, true); - } - } catch (err) { - finish(err); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - if (!sync && !queued) { - finish(null, self); // only once anyway + + if (data.hasOwnProperty('gcp-key')) { + obj['gcp-key'] = _ApiClient["default"].convertToType(data['gcp-key'], 'String'); } - } - // Fetches a single file - function fetch(filename, weak) { - filename = getBundledFileName(filename) || filename; + if (data.hasOwnProperty('grace-rotation')) { + obj['grace-rotation'] = _ApiClient["default"].convertToType(data['grace-rotation'], 'String'); + } - // Skip if already loaded / attempted - if (self.files.indexOf(filename) > -1) { - return; + if (data.hasOwnProperty('host-provider')) { + obj['host-provider'] = _ApiClient["default"].convertToType(data['host-provider'], 'String'); } - self.files.push(filename); - // Shortcut bundled definitions - if (filename in common) { - if (sync) { - process(filename, common[filename]); - } else { - ++queued; - setTimeout(function() { - --queued; - process(filename, common[filename]); - }); - } - return; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - // Otherwise fetch from disk or network - if (sync) { - var source; - try { - source = util.fs.readFileSync(filename).toString("utf8"); - } catch (err) { - if (!weak) - finish(err); - return; - } - process(filename, source); - } else { - ++queued; - self.fetch(filename, function(err, source) { - --queued; - /* istanbul ignore if */ - if (!callback) { - return; // terminated meanwhile - } - if (err) { - /* istanbul ignore else */ - if (!weak) - finish(err); - else if (!queued) // can't be covered reliably - finish(null, self); - return; - } - process(filename, source); - }); + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); } - } - var queued = 0; - // Assembling the root namespace doesn't require working type - // references anymore, so we can load everything in parallel - if (util.isString(filename)) { - filename = [ filename ]; - } - for (var i = 0, resolved; i < filename.length; ++i) - if (resolved = self.resolvePath("", filename[i])) - fetch(resolved); - if (sync) { - self.resolveAll(); - return self; - } - if (!queued) { - finish(null, self); - } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - return self; -}; -// function load(filename:string, options:IParseOptions, callback:LoadCallback):undefined + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -/** - * Loads one or multiple .proto or preprocessed .json files into this root namespace and calls the callback. - * @function Root#load - * @param {string|string[]} filename Names of one or multiple files to load - * @param {LoadCallback} callback Callback function - * @returns {undefined} - * @variation 2 - */ -// function load(filename:string, callback:LoadCallback):undefined + if (data.hasOwnProperty('new-metadata')) { + obj['new-metadata'] = _ApiClient["default"].convertToType(data['new-metadata'], 'String'); + } -/** - * Loads one or multiple .proto or preprocessed .json files into this root namespace and returns a promise. - * @function Root#load - * @param {string|string[]} filename Names of one or multiple files to load - * @param {IParseOptions} [options] Parse options. Defaults to {@link parse.defaults} when omitted. - * @returns {Promise} Promise - * @variation 3 - */ -// function load(filename:string, [options:IParseOptions]):Promise + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -/** - * Synchronously loads one or multiple .proto or preprocessed .json files into this root namespace (node only). - * @function Root#loadSync - * @param {string|string[]} filename Names of one or multiple files to load - * @param {IParseOptions} [options] Parse options. Defaults to {@link parse.defaults} when omitted. - * @returns {Root} Root namespace - * @throws {Error} If synchronous fetching is not supported (i.e. in browsers) or if a file's syntax is invalid - */ -Root.prototype.loadSync = function loadSync(filename, options) { - if (!util.isNode) - throw Error("not supported"); - return this.load(filename, options, SYNC); -}; + if (data.hasOwnProperty('new-version')) { + obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); + } -/** - * @override - */ -Root.prototype.resolveAll = function resolveAll() { - if (!this._needsRecursiveResolve) return this; + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); + } - if (this.deferred.length) - throw Error("unresolvable extensions: " + this.deferred.map(function(field) { - return "'extend " + field.extend + "' in " + field.parent.fullName; - }).join(", ")); - return Namespace.prototype.resolveAll.call(this); -}; + if (data.hasOwnProperty('rotate-after-disconnect')) { + obj['rotate-after-disconnect'] = _ApiClient["default"].convertToType(data['rotate-after-disconnect'], 'String'); + } -// only uppercased (and thus conflict-free) children are exposed, see below -var exposeRe = /^[A-Z]/; + if (data.hasOwnProperty('rotated-password')) { + obj['rotated-password'] = _ApiClient["default"].convertToType(data['rotated-password'], 'String'); + } -/** - * Handles a deferred declaring extension field by creating a sister field to represent it within its extended type. - * @param {Root} root Root instance - * @param {Field} field Declaring extension field witin the declaring type - * @returns {boolean} `true` if successfully added to the extended type, `false` otherwise - * @inner - * @ignore - */ -function tryHandleExtension(root, field) { - var extendedType = field.parent.lookup(field.extend); - if (extendedType) { - var sisterField = new Field(field.fullName, field.id, field.type, field.rule, undefined, field.options); - //do not allow to extend same field twice to prevent the error - if (extendedType.get(sisterField.name)) { - return true; + if (data.hasOwnProperty('rotated-username')) { + obj['rotated-username'] = _ApiClient["default"].convertToType(data['rotated-username'], 'String'); } - sisterField.declaringField = field; - field.extensionField = sisterField; - extendedType.add(sisterField); - return true; - } - return false; -} -/** - * Called when any object is added to this root or its sub-namespaces. - * @param {ReflectionObject} object Object added - * @returns {undefined} - * @private - */ -Root.prototype._handleAdd = function _handleAdd(object) { - if (object instanceof Field) { + if (data.hasOwnProperty('rotation-hour')) { + obj['rotation-hour'] = _ApiClient["default"].convertToType(data['rotation-hour'], 'Number'); + } - if (/* an extension field (implies not part of a oneof) */ object.extend !== undefined && /* not already handled */ !object.extensionField) - if (!tryHandleExtension(this, object)) - this.deferred.push(object); + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'String'); + } - } else if (object instanceof Enum) { + if (data.hasOwnProperty('rotator-creds-type')) { + obj['rotator-creds-type'] = _ApiClient["default"].convertToType(data['rotator-creds-type'], 'String'); + } - if (exposeRe.test(object.name)) - object.parent[object.name] = object.values; // expose enum values as property of its parent + if (data.hasOwnProperty('rotator-custom-cmd')) { + obj['rotator-custom-cmd'] = _ApiClient["default"].convertToType(data['rotator-custom-cmd'], 'String'); + } - } else if (!(object instanceof OneOf)) /* everything else is a namespace */ { + if (data.hasOwnProperty('same-password')) { + obj['same-password'] = _ApiClient["default"].convertToType(data['same-password'], 'String'); + } - if (object instanceof Type) // Try to handle any deferred extensions - for (var i = 0; i < this.deferred.length;) - if (tryHandleExtension(this, this.deferred[i])) - this.deferred.splice(i, 1); - else - ++i; - for (var j = 0; j < /* initializes */ object.nestedArray.length; ++j) // recurse into the namespace - this._handleAdd(object._nestedArray[j]); - if (exposeRe.test(object.name)) - object.parent[object.name] = object; // expose namespace as property of its parent - } + if (data.hasOwnProperty('secure-access-allow-external-user')) { + obj['secure-access-allow-external-user'] = _ApiClient["default"].convertToType(data['secure-access-allow-external-user'], 'Boolean'); + } - if (object instanceof Type || object instanceof Enum || object instanceof Field) { - // Only store types and enums for quick lookup during resolve. - this._fullyQualifiedObjects[object.fullName] = object; - } + if (data.hasOwnProperty('secure-access-aws-account-id')) { + obj['secure-access-aws-account-id'] = _ApiClient["default"].convertToType(data['secure-access-aws-account-id'], 'String'); + } - // The above also adds uppercased (and thus conflict-free) nested types, services and enums as - // properties of namespaces just like static code does. This allows using a .d.ts generated for - // a static module with reflection-based solutions where the condition is met. -}; + if (data.hasOwnProperty('secure-access-aws-native-cli')) { + obj['secure-access-aws-native-cli'] = _ApiClient["default"].convertToType(data['secure-access-aws-native-cli'], 'Boolean'); + } -/** - * Called when any object is removed from this root or its sub-namespaces. - * @param {ReflectionObject} object Object removed - * @returns {undefined} - * @private - */ -Root.prototype._handleRemove = function _handleRemove(object) { - if (object instanceof Field) { + if (data.hasOwnProperty('secure-access-bastion-issuer')) { + obj['secure-access-bastion-issuer'] = _ApiClient["default"].convertToType(data['secure-access-bastion-issuer'], 'String'); + } - if (/* an extension field */ object.extend !== undefined) { - if (/* already handled */ object.extensionField) { // remove its sister field - object.extensionField.parent.remove(object.extensionField); - object.extensionField = null; - } else { // cancel the extension - var index = this.deferred.indexOf(object); - /* istanbul ignore else */ - if (index > -1) - this.deferred.splice(index, 1); - } + if (data.hasOwnProperty('secure-access-db-name')) { + obj['secure-access-db-name'] = _ApiClient["default"].convertToType(data['secure-access-db-name'], 'String'); } - } else if (object instanceof Enum) { + if (data.hasOwnProperty('secure-access-db-schema')) { + obj['secure-access-db-schema'] = _ApiClient["default"].convertToType(data['secure-access-db-schema'], 'String'); + } - if (exposeRe.test(object.name)) - delete object.parent[object.name]; // unexpose enum values + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } - } else if (object instanceof Namespace) { + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } - for (var i = 0; i < /* initializes */ object.nestedArray.length; ++i) // recurse into the namespace - this._handleRemove(object._nestedArray[i]); + if (data.hasOwnProperty('secure-access-rdp-domain')) { + obj['secure-access-rdp-domain'] = _ApiClient["default"].convertToType(data['secure-access-rdp-domain'], 'String'); + } - if (exposeRe.test(object.name)) - delete object.parent[object.name]; // unexpose namespaces + if (data.hasOwnProperty('secure-access-rdp-user')) { + obj['secure-access-rdp-user'] = _ApiClient["default"].convertToType(data['secure-access-rdp-user'], 'String'); + } - } + if (data.hasOwnProperty('secure-access-url')) { + obj['secure-access-url'] = _ApiClient["default"].convertToType(data['secure-access-url'], 'String'); + } - delete this._fullyQualifiedObjects[object.fullName]; -}; + if (data.hasOwnProperty('secure-access-web')) { + obj['secure-access-web'] = _ApiClient["default"].convertToType(data['secure-access-web'], 'Boolean'); + } -// Sets up cyclic dependencies (called in index-light) -Root._configure = function(Type_, parse_, common_) { - Type = Type_; - parse = parse_; - common = common_; -}; + if (data.hasOwnProperty('secure-access-web-browsing')) { + obj['secure-access-web-browsing'] = _ApiClient["default"].convertToType(data['secure-access-web-browsing'], 'Boolean'); + } + if (data.hasOwnProperty('secure-access-web-proxy')) { + obj['secure-access-web-proxy'] = _ApiClient["default"].convertToType(data['secure-access-web-proxy'], 'Boolean'); + } -/***/ }), + if (data.hasOwnProperty('ssh-password')) { + obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); + } -/***/ 34460: -/***/ ((module) => { + if (data.hasOwnProperty('ssh-username')) { + obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('storage-account-key-name')) { + obj['storage-account-key-name'] = _ApiClient["default"].convertToType(data['storage-account-key-name'], 'String'); + } -module.exports = {}; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -/** - * Named roots. - * This is where pbjs stores generated structures (the option `-r, --root` specifies a name). - * Can also be used manually to make roots available across modules. - * @name roots - * @type {Object.} - * @example - * // pbjs -r myroot -o compiled.js ... - * - * // in another module: - * require("./compiled.js"); - * - * // in any subsequent module: - * var root = protobuf.roots["myroot"]; - */ + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + if (data.hasOwnProperty('user-attribute')) { + obj['user-attribute'] = _ApiClient["default"].convertToType(data['user-attribute'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('user-dn')) { + obj['user-dn'] = _ApiClient["default"].convertToType(data['user-dn'], 'String'); + } + } -/***/ 9882: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + return obj; + } + }]); -"use strict"; + return UpdateRotatedSecret; +}(); +/** + * @member {String} ProviderType + */ +UpdateRotatedSecret.prototype['ProviderType'] = undefined; /** - * Streaming RPC helpers. - * @namespace + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ -var rpc = exports; +UpdateRotatedSecret.prototype['add-tag'] = undefined; /** - * RPC implementation passed to {@link Service#create} performing a service request on network level, i.e. by utilizing http requests or websockets. - * @typedef RPCImpl - * @type {function} - * @param {Method|rpc.ServiceMethod,Message<{}>>} method Reflected or static method being called - * @param {Uint8Array} requestData Request data - * @param {RPCImplCallback} callback Callback function - * @returns {undefined} - * @example - * function rpcImpl(method, requestData, callback) { - * if (protobuf.util.lcFirst(method.name) !== "myMethod") // compatible with static code - * throw Error("no such method"); - * asynchronouslyObtainAResponse(requestData, function(err, responseData) { - * callback(err, responseData); - * }); - * } + * API ID to rotate + * @member {String} api-id */ +UpdateRotatedSecret.prototype['api-id'] = undefined; /** - * Node-style callback as used by {@link RPCImpl}. - * @typedef RPCImplCallback - * @type {function} - * @param {Error|null} error Error, if any, otherwise `null` - * @param {Uint8Array|null} [response] Response data or `null` to signal end of stream, if there hasn't been an error - * @returns {undefined} + * API key to rotate + * @member {String} api-key */ -rpc.Service = __nccwpck_require__(34026); - - -/***/ }), - -/***/ 34026: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - -module.exports = Service; - -var util = __nccwpck_require__(22857); - -// Extends EventEmitter -(Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service; - +UpdateRotatedSecret.prototype['api-key'] = undefined; /** - * A service method callback as used by {@link rpc.ServiceMethod|ServiceMethod}. - * - * Differs from {@link RPCImplCallback} in that it is an actual callback of a service method which may not return `response = null`. - * @typedef rpc.ServiceMethodCallback - * @template TRes extends Message - * @type {function} - * @param {Error|null} error Error, if any - * @param {TRes} [response] Response message - * @returns {undefined} + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false] + * @member {String} auto-rotate */ +UpdateRotatedSecret.prototype['auto-rotate'] = undefined; /** - * A service method part of a {@link rpc.Service} as created by {@link Service.create}. - * @typedef rpc.ServiceMethod - * @template TReq extends Message - * @template TRes extends Message - * @type {function} - * @param {TReq|Properties} request Request message or plain object - * @param {rpc.ServiceMethodCallback} [callback] Node-style callback called with the error, if any, and the response message - * @returns {Promise>} Promise if `callback` has been omitted, otherwise `undefined` + * Aws Region (relevant only for aws) + * @member {String} aws-region + * @default 'us-east-2' */ +UpdateRotatedSecret.prototype['aws-region'] = 'us-east-2'; /** - * Constructs a new RPC service instance. - * @classdesc An RPC service as returned by {@link Service#create}. - * @exports rpc.Service - * @extends util.EventEmitter - * @constructor - * @param {RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * Secret payload to be sent with rotation request (relevant only for rotator-type=custom) + * @member {String} custom-payload */ -function Service(rpcImpl, requestDelimited, responseDelimited) { - - if (typeof rpcImpl !== "function") - throw TypeError("rpcImpl must be a function"); - - util.EventEmitter.call(this); - /** - * RPC implementation. Becomes `null` once the service is ended. - * @type {RPCImpl|null} - */ - this.rpcImpl = rpcImpl; +UpdateRotatedSecret.prototype['custom-payload'] = undefined; +/** + * Description of the object + * @member {String} description + * @default 'default_metadata' + */ - /** - * Whether requests are length-delimited. - * @type {boolean} - */ - this.requestDelimited = Boolean(requestDelimited); +UpdateRotatedSecret.prototype['description'] = 'default_metadata'; +/** + * Base64-encoded service account private key text + * @member {String} gcp-key + */ - /** - * Whether responses are length-delimited. - * @type {boolean} - */ - this.responseDelimited = Boolean(responseDelimited); -} +UpdateRotatedSecret.prototype['gcp-key'] = undefined; +/** + * Create a new access key without deleting the old key from AWS for backup (relevant only for AWS) [true/false] + * @member {String} grace-rotation + */ +UpdateRotatedSecret.prototype['grace-rotation'] = undefined; /** - * Calls a service method through {@link rpc.Service#rpcImpl|rpcImpl}. - * @param {Method|rpc.ServiceMethod} method Reflected or static method - * @param {Constructor} requestCtor Request constructor - * @param {Constructor} responseCtor Response constructor - * @param {TReq|Properties} request Request message or plain object - * @param {rpc.ServiceMethodCallback} callback Service callback - * @returns {undefined} - * @template TReq extends Message - * @template TRes extends Message + * Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret + * @member {String} host-provider + * @default 'explicit' */ -Service.prototype.rpcCall = function rpcCall(method, requestCtor, responseCtor, request, callback) { - if (!request) - throw TypeError("request must be specified"); +UpdateRotatedSecret.prototype['host-provider'] = 'explicit'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - var self = this; - if (!callback) - return util.asPromise(rpcCall, self, method, requestCtor, responseCtor, request); +UpdateRotatedSecret.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ - if (!self.rpcImpl) { - setTimeout(function() { callback(Error("already ended")); }, 0); - return undefined; - } +UpdateRotatedSecret.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - try { - return self.rpcImpl( - method, - requestCtor[self.requestDelimited ? "encodeDelimited" : "encode"](request).finish(), - function rpcCallback(err, response) { +UpdateRotatedSecret.prototype['key'] = undefined; +/** + * Secret name + * @member {String} name + */ - if (err) { - self.emit("error", err, method); - return callback(err); - } +UpdateRotatedSecret.prototype['name'] = undefined; +/** + * Deprecated - use description + * @member {String} new-metadata + * @default 'default_metadata' + */ - if (response === null) { - self.end(/* endedByRPC */ true); - return undefined; - } +UpdateRotatedSecret.prototype['new-metadata'] = 'default_metadata'; +/** + * New item name + * @member {String} new-name + */ - if (!(response instanceof responseCtor)) { - try { - response = responseCtor[self.responseDelimited ? "decodeDelimited" : "decode"](response); - } catch (err) { - self.emit("error", err, method); - return callback(err); - } - } +UpdateRotatedSecret.prototype['new-name'] = undefined; +/** + * Deprecated + * @member {Boolean} new-version + */ - self.emit("data", response, method); - return callback(null, response); - } - ); - } catch (err) { - self.emit("error", err, method); - setTimeout(function() { callback(err); }, 0); - return undefined; - } -}; +UpdateRotatedSecret.prototype['new-version'] = undefined; +/** + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag + */ +UpdateRotatedSecret.prototype['rm-tag'] = undefined; /** - * Ends this service and emits the `end` event. - * @param {boolean} [endedByRPC=false] Whether the service has been ended by the RPC implementation. - * @returns {rpc.Service} `this` + * Rotate the value of the secret after SRA session ends [true/false] + * @member {String} rotate-after-disconnect + * @default 'false' */ -Service.prototype.end = function end(endedByRPC) { - if (this.rpcImpl) { - if (!endedByRPC) // signal end to rpcImpl - this.rpcImpl(null, null, null); - this.rpcImpl = null; - this.emit("end").off(); - } - return this; -}; +UpdateRotatedSecret.prototype['rotate-after-disconnect'] = 'false'; +/** + * rotated-username password + * @member {String} rotated-password + */ -/***/ }), +UpdateRotatedSecret.prototype['rotated-password'] = undefined; +/** + * username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password + * @member {String} rotated-username + */ -/***/ 30338: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateRotatedSecret.prototype['rotated-username'] = undefined; +/** + * The Hour of the rotation in UTC + * @member {Number} rotation-hour + */ -"use strict"; +UpdateRotatedSecret.prototype['rotation-hour'] = undefined; +/** + * The number of days to wait between every automatic key rotation (7-365) + * @member {String} rotation-interval + */ -module.exports = Service; +UpdateRotatedSecret.prototype['rotation-interval'] = undefined; +/** + * The credentials to connect with use-self-creds/use-target-creds + * @member {String} rotator-creds-type + * @default 'use-self-creds' + */ -// extends Namespace -var Namespace = __nccwpck_require__(21946); -((Service.prototype = Object.create(Namespace.prototype)).constructor = Service).className = "Service"; +UpdateRotatedSecret.prototype['rotator-creds-type'] = 'use-self-creds'; +/** + * \"Custom rotation command (relevant only for ssh target) + * @member {String} rotator-custom-cmd + */ -var Method = __nccwpck_require__(59988), - util = __nccwpck_require__(39609), - rpc = __nccwpck_require__(9882); +UpdateRotatedSecret.prototype['rotator-custom-cmd'] = undefined; +/** + * Rotate same password for each host from the Linked Target (relevant only for Linked Target) + * @member {String} same-password + */ +UpdateRotatedSecret.prototype['same-password'] = undefined; /** - * Constructs a new service instance. - * @classdesc Reflected service. - * @extends NamespaceBase - * @constructor - * @param {string} name Service name - * @param {Object.} [options] Service options - * @throws {TypeError} If arguments are invalid + * Allow providing external user for a domain users (relevant only for rdp) + * @member {Boolean} secure-access-allow-external-user + * @default false */ -function Service(name, options) { - Namespace.call(this, name, options); - /** - * Service methods. - * @type {Object.} - */ - this.methods = {}; // toJSON, marker +UpdateRotatedSecret.prototype['secure-access-allow-external-user'] = false; +/** + * The AWS account id (relevant only for aws) + * @member {String} secure-access-aws-account-id + */ - /** - * Cached methods as an array. - * @type {Method[]|null} - * @private - */ - this._methodsArray = null; -} +UpdateRotatedSecret.prototype['secure-access-aws-account-id'] = undefined; +/** + * The AWS native cli + * @member {Boolean} secure-access-aws-native-cli + */ +UpdateRotatedSecret.prototype['secure-access-aws-native-cli'] = undefined; /** - * Service descriptor. - * @interface IService - * @extends INamespace - * @property {Object.} methods Method descriptors + * Path to the SSH Certificate Issuer for your Akeyless Bastion + * @member {String} secure-access-bastion-issuer */ +UpdateRotatedSecret.prototype['secure-access-bastion-issuer'] = undefined; /** - * Constructs a service from a service descriptor. - * @param {string} name Service name - * @param {IService} json Service descriptor - * @returns {Service} Created service - * @throws {TypeError} If arguments are invalid + * The DB name (relevant only for DB Dynamic-Secret) + * @member {String} secure-access-db-name */ -Service.fromJSON = function fromJSON(name, json) { - var service = new Service(name, json.options); - /* istanbul ignore else */ - if (json.methods) - for (var names = Object.keys(json.methods), i = 0; i < names.length; ++i) - service.add(Method.fromJSON(names[i], json.methods[names[i]])); - if (json.nested) - service.addJSON(json.nested); - if (json.edition) - service._edition = json.edition; - service.comment = json.comment; - service._defaultEdition = "proto3"; // For backwards-compatibility. - return service; -}; +UpdateRotatedSecret.prototype['secure-access-db-name'] = undefined; /** - * Converts this service to a service descriptor. - * @param {IToJSONOptions} [toJSONOptions] JSON conversion options - * @returns {IService} Service descriptor + * The db schema (relevant only for mssql or postgresql) + * @member {String} secure-access-db-schema */ -Service.prototype.toJSON = function toJSON(toJSONOptions) { - var inherited = Namespace.prototype.toJSON.call(this, toJSONOptions); - var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false; - return util.toObject([ - "edition" , this._editionToJSON(), - "options" , inherited && inherited.options || undefined, - "methods" , Namespace.arrayToJSON(this.methodsArray, toJSONOptions) || /* istanbul ignore next */ {}, - "nested" , inherited && inherited.nested || undefined, - "comment" , keepComments ? this.comment : undefined - ]); -}; +UpdateRotatedSecret.prototype['secure-access-db-schema'] = undefined; /** - * Methods of this service as an array for iteration. - * @name Service#methodsArray - * @type {Method[]} - * @readonly + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -Object.defineProperty(Service.prototype, "methodsArray", { - get: function() { - return this._methodsArray || (this._methodsArray = util.toArray(this.methods)); - } -}); -function clearCache(service) { - service._methodsArray = null; - return service; -} +UpdateRotatedSecret.prototype['secure-access-enable'] = undefined; +/** + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host + */ +UpdateRotatedSecret.prototype['secure-access-host'] = undefined; /** - * @override + * Required when the Dynamic Secret is used for a domain user (relevant only for RDP Dynamic-Secret) + * @member {String} secure-access-rdp-domain */ -Service.prototype.get = function get(name) { - return this.methods[name] - || Namespace.prototype.get.call(this, name); -}; +UpdateRotatedSecret.prototype['secure-access-rdp-domain'] = undefined; /** - * @override + * Override the RDP Domain username (relevant only for rdp) + * @member {String} secure-access-rdp-user */ -Service.prototype.resolveAll = function resolveAll() { - if (!this._needsRecursiveResolve) return this; - Namespace.prototype.resolve.call(this); - var methods = this.methodsArray; - for (var i = 0; i < methods.length; ++i) - methods[i].resolve(); - return this; -}; +UpdateRotatedSecret.prototype['secure-access-rdp-user'] = undefined; +/** + * Destination URL to inject secrets + * @member {String} secure-access-url + */ +UpdateRotatedSecret.prototype['secure-access-url'] = undefined; /** - * @override + * Enable Web Secure Remote Access + * @member {Boolean} secure-access-web + * @default false */ -Service.prototype._resolveFeaturesRecursive = function _resolveFeaturesRecursive(edition) { - if (!this._needsRecursiveFeatureResolution) return this; - edition = this._edition || edition; +UpdateRotatedSecret.prototype['secure-access-web'] = false; +/** + * Secure browser via Akeyless Web Access Bastion (relevant only for aws or azure) + * @member {Boolean} secure-access-web-browsing + * @default false + */ - Namespace.prototype._resolveFeaturesRecursive.call(this, edition); - this.methodsArray.forEach(method => { - method._resolveFeaturesRecursive(edition); - }); - return this; -}; +UpdateRotatedSecret.prototype['secure-access-web-browsing'] = false; +/** + * Web-Proxy via Akeyless Web Access Bastion (relevant only for aws or azure) + * @member {Boolean} secure-access-web-proxy + * @default false + */ +UpdateRotatedSecret.prototype['secure-access-web-proxy'] = false; /** - * @override + * Deprecated: use RotatedPassword + * @member {String} ssh-password */ -Service.prototype.add = function add(object) { - /* istanbul ignore if */ - if (this.get(object.name)) - throw Error("duplicate name '" + object.name + "' in " + this); +UpdateRotatedSecret.prototype['ssh-password'] = undefined; +/** + * Deprecated: use RotatedUser + * @member {String} ssh-username + */ - if (object instanceof Method) { - this.methods[object.name] = object; - object.parent = this; - return clearCache(this); - } - return Namespace.prototype.add.call(this, object); -}; +UpdateRotatedSecret.prototype['ssh-username'] = undefined; +/** + * The name of the storage account key to rotate [key1/key2/kerb1/kerb2] + * @member {String} storage-account-key-name + */ +UpdateRotatedSecret.prototype['storage-account-key-name'] = undefined; /** - * @override + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -Service.prototype.remove = function remove(object) { - if (object instanceof Method) { - /* istanbul ignore if */ - if (this.methods[object.name] !== object) - throw Error(object + " is not a member of " + this); +UpdateRotatedSecret.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - delete this.methods[object.name]; - object.parent = null; - return clearCache(this); - } - return Namespace.prototype.remove.call(this, object); -}; +UpdateRotatedSecret.prototype['uid-token'] = undefined; +/** + * LDAP User Attribute, Default value \"cn\" + * @member {String} user-attribute + * @default 'cn' + */ +UpdateRotatedSecret.prototype['user-attribute'] = 'cn'; /** - * Creates a runtime service using the specified rpc implementation. - * @param {RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {rpc.Service} RPC service. Useful where requests and/or responses are streamed. + * LDAP User Base DN + * @member {String} user-dn */ -Service.prototype.create = function create(rpcImpl, requestDelimited, responseDelimited) { - var rpcService = new rpc.Service(rpcImpl, requestDelimited, responseDelimited); - for (var i = 0, method; i < /* initializes */ this.methodsArray.length; ++i) { - var methodName = util.lcFirst((method = this._methodsArray[i]).resolve().name).replace(/[^$\w_]/g, ""); - rpcService[methodName] = util.codegen(["r","c"], util.isReserved(methodName) ? methodName + "_" : methodName)("return this.rpcCall(m,q,s,r,c)")({ - m: method, - q: method.resolvedRequestType.ctor, - s: method.resolvedResponseType.ctor - }); - } - return rpcService; -}; +UpdateRotatedSecret.prototype['user-dn'] = undefined; +var _default = UpdateRotatedSecret; +exports["default"] = _default; /***/ }), -/***/ 580: -/***/ ((module) => { +/***/ 2961: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -module.exports = tokenize; -var delimRe = /[\s{}=;:[\],'"()<>]/g, - stringDoubleRe = /(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g, - stringSingleRe = /(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var setCommentRe = /^ *[*/]+ */, - setCommentAltRe = /^\s*\*?\/*/, - setCommentSplitRe = /\n/g, - whitespaceRe = /\s/, - unescapeRe = /\\(.?)/g; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -var unescapeMap = { - "0": "\0", - "r": "\r", - "n": "\n", - "t": "\t" -}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/** - * Unescapes a string. - * @param {string} str String to unescape - * @returns {string} Unescaped string - * @property {Object.} map Special characters map - * @memberof tokenize - */ -function unescape(str) { - return str.replace(unescapeRe, function($0, $1) { - switch ($1) { - case "\\": - case "": - return $1; - default: - return unescapeMap[$1] || ""; - } - }); -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -tokenize.unescape = unescape; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/** - * Gets the next token and advances. - * @typedef TokenizerHandleNext - * @type {function} - * @returns {string|null} Next token or `null` on eof - */ +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Peeks for the next token. - * @typedef TokenizerHandlePeek - * @type {function} - * @returns {string|null} Next token or `null` on eof + * The UpdateRotatedSecretOutput model module. + * @module model/UpdateRotatedSecretOutput + * @version 3.6.3 */ +var UpdateRotatedSecretOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateRotatedSecretOutput. + * @alias module:model/UpdateRotatedSecretOutput + */ + function UpdateRotatedSecretOutput() { + _classCallCheck(this, UpdateRotatedSecretOutput); -/** - * Pushes a token back to the stack. - * @typedef TokenizerHandlePush - * @type {function} - * @param {string} token Token - * @returns {undefined} - */ + UpdateRotatedSecretOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/** - * Skips the next token. - * @typedef TokenizerHandleSkip - * @type {function} - * @param {string} expected Expected token - * @param {boolean} [optional=false] If optional - * @returns {boolean} Whether the token matched - * @throws {Error} If the token didn't match and is not optional - */ -/** - * Gets the comment on the previous line or, alternatively, the line comment on the specified line. - * @typedef TokenizerHandleCmnt - * @type {function} - * @param {number} [line] Line number - * @returns {string|null} Comment text or `null` if none - */ + _createClass(UpdateRotatedSecretOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateRotatedSecretOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateRotatedSecretOutput} obj Optional instance to populate. + * @return {module:model/UpdateRotatedSecretOutput} The populated UpdateRotatedSecretOutput instance. + */ -/** - * Handle object returned from {@link tokenize}. - * @interface ITokenizerHandle - * @property {TokenizerHandleNext} next Gets the next token and advances (`null` on eof) - * @property {TokenizerHandlePeek} peek Peeks for the next token (`null` on eof) - * @property {TokenizerHandlePush} push Pushes a token back to the stack - * @property {TokenizerHandleSkip} skip Skips a token, returns its presence and advances or, if non-optional and not present, throws - * @property {TokenizerHandleCmnt} cmnt Gets the comment on the previous line or the line comment on the specified line, if any - * @property {number} line Current line number - */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateRotatedSecretOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + return UpdateRotatedSecretOutput; +}(); /** - * Tokenizes the given .proto source and returns an object with useful utility functions. - * @param {string} source Source contents - * @param {boolean} alternateCommentMode Whether we should activate alternate comment parsing mode. - * @returns {ITokenizerHandle} Tokenizer handle + * @member {String} name */ -function tokenize(source, alternateCommentMode) { - /* eslint-disable callback-return */ - source = source.toString(); - var offset = 0, - length = source.length, - line = 1, - lastCommentLine = 0, - comments = {}; - var stack = []; +UpdateRotatedSecretOutput.prototype['name'] = undefined; +var _default = UpdateRotatedSecretOutput; +exports["default"] = _default; - var stringDelim = null; +/***/ }), - /* istanbul ignore next */ - /** - * Creates an error for illegal syntax. - * @param {string} subject Subject - * @returns {Error} Error created - * @inner - */ - function illegal(subject) { - return Error("illegal " + subject + " (line " + line + ")"); - } +/***/ 42482: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - /** - * Reads a string till its end. - * @returns {string} String read - * @inner - */ - function readString() { - var re = stringDelim === "'" ? stringSingleRe : stringDoubleRe; - re.lastIndex = offset - 1; - var match = re.exec(source); - if (!match) - throw illegal("string"); - offset = re.lastIndex; - push(stringDelim); - stringDelim = null; - return unescape(match[1]); - } +"use strict"; - /** - * Gets the character at `pos` within the source. - * @param {number} pos Position - * @returns {string} Character - * @inner - */ - function charAt(pos) { - return source.charAt(pos); - } - /** - * Sets the current comment text. - * @param {number} start Start offset - * @param {number} end End offset - * @param {boolean} isLeading set if a leading comment - * @returns {undefined} - * @inner - */ - function setComment(start, end, isLeading) { - var comment = { - type: source.charAt(start++), - lineEmpty: false, - leading: isLeading, - }; - var lookback; - if (alternateCommentMode) { - lookback = 2; // alternate comment parsing: "//" or "/*" - } else { - lookback = 3; // "///" or "/**" - } - var commentOffset = start - lookback, - c; - do { - if (--commentOffset < 0 || - (c = source.charAt(commentOffset)) === "\n") { - comment.lineEmpty = true; - break; - } - } while (c === " " || c === "\t"); - var lines = source - .substring(start, end) - .split(setCommentSplitRe); - for (var i = 0; i < lines.length; ++i) - lines[i] = lines[i] - .replace(alternateCommentMode ? setCommentAltRe : setCommentRe, "") - .trim(); - comment.text = lines - .join("\n") - .trim(); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - comments[line] = comment; - lastCommentLine = line; - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - function isDoubleSlashCommentLine(startOffset) { - var endOffset = findEndOfLine(startOffset); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - // see if remaining line matches comment pattern - var lineText = source.substring(startOffset, endOffset); - var isComment = /^\s*\/\//.test(lineText); - return isComment; - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - function findEndOfLine(cursor) { - // find end of cursor's line - var endOffset = cursor; - while (endOffset < length && charAt(endOffset) !== "\n") { - endOffset++; - } - return endOffset; - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - /** - * Obtains the next token. - * @returns {string|null} Next token or `null` on eof - * @inner - */ - function next() { - if (stack.length > 0) - return stack.shift(); - if (stringDelim) - return readString(); - var repeat, - prev, - curr, - start, - isDoc, - isLeadingComment = offset === 0; - do { - if (offset === length) - return null; - repeat = false; - while (whitespaceRe.test(curr = charAt(offset))) { - if (curr === "\n") { - isLeadingComment = true; - ++line; - } - if (++offset === length) - return null; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (charAt(offset) === "/") { - if (++offset === length) { - throw illegal("comment"); - } - if (charAt(offset) === "/") { // Line - if (!alternateCommentMode) { - // check for triple-slash comment - isDoc = charAt(start = offset + 1) === "/"; +/** + * The UpdateRotationSettings model module. + * @module model/UpdateRotationSettings + * @version 3.6.3 + */ +var UpdateRotationSettings = /*#__PURE__*/function () { + /** + * Constructs a new UpdateRotationSettings. + * updateRotationSettings is a command that updates rotations settings of an existing key + * @alias module:model/UpdateRotationSettings + * @param autoRotate {Boolean} Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation + * @param name {String} Key name + */ + function UpdateRotationSettings(autoRotate, name) { + _classCallCheck(this, UpdateRotationSettings); - while (charAt(++offset) !== "\n") { - if (offset === length) { - return null; - } - } - ++offset; - if (isDoc) { - setComment(start, offset - 1, isLeadingComment); - // Trailing comment cannot not be multi-line, - // so leading comment state should be reset to handle potential next comments - isLeadingComment = true; - } - ++line; - repeat = true; - } else { - // check for double-slash comments, consolidating consecutive lines - start = offset; - isDoc = false; - if (isDoubleSlashCommentLine(offset - 1)) { - isDoc = true; - do { - offset = findEndOfLine(offset); - if (offset === length) { - break; - } - offset++; - if (!isLeadingComment) { - // Trailing comment cannot not be multi-line - break; - } - } while (isDoubleSlashCommentLine(offset)); - } else { - offset = Math.min(length, findEndOfLine(offset) + 1); - } - if (isDoc) { - setComment(start, offset, isLeadingComment); - isLeadingComment = true; - } - line++; - repeat = true; - } - } else if ((curr = charAt(offset)) === "*") { /* Block */ - // check for /** (regular comment mode) or /* (alternate comment mode) - start = offset + 1; - isDoc = alternateCommentMode || charAt(start) === "*"; - do { - if (curr === "\n") { - ++line; - } - if (++offset === length) { - throw illegal("comment"); - } - prev = curr; - curr = charAt(offset); - } while (prev !== "*" || curr !== "/"); - ++offset; - if (isDoc) { - setComment(start, offset - 2, isLeadingComment); - isLeadingComment = true; - } - repeat = true; - } else { - return "/"; - } - } - } while (repeat); + UpdateRotationSettings.initialize(this, autoRotate, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - // offset !== length if we got here - var end = offset; - delimRe.lastIndex = 0; - var delim = delimRe.test(charAt(end++)); - if (!delim) - while (end < length && !delimRe.test(charAt(end))) - ++end; - var token = source.substring(offset, offset = end); - if (token === "\"" || token === "'") - stringDelim = token; - return token; + _createClass(UpdateRotationSettings, null, [{ + key: "initialize", + value: function initialize(obj, autoRotate, name) { + obj['auto-rotate'] = autoRotate; + obj['name'] = name; } - /** - * Pushes a token back to the stack. - * @param {string} token Token - * @returns {undefined} - * @inner + * Constructs a UpdateRotationSettings from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateRotationSettings} obj Optional instance to populate. + * @return {module:model/UpdateRotationSettings} The populated UpdateRotationSettings instance. */ - function push(token) { - stack.push(token); - } - /** - * Peeks for the next token. - * @returns {string|null} Token or `null` on eof - * @inner - */ - function peek() { - if (!stack.length) { - var token = next(); - if (token === null) - return null; - push(token); + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateRotationSettings(); + + if (data.hasOwnProperty('auto-rotate')) { + obj['auto-rotate'] = _ApiClient["default"].convertToType(data['auto-rotate'], 'Boolean'); } - return stack[0]; - } - /** - * Skips a token. - * @param {string} expected Expected token - * @param {boolean} [optional=false] Whether the token is optional - * @returns {boolean} `true` when skipped, `false` if not - * @throws {Error} When a required token is not present - * @inner - */ - function skip(expected, optional) { - var actual = peek(), - equals = actual === expected; - if (equals) { - next(); - return true; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - if (!optional) - throw illegal("token '" + actual + "', '" + expected + "' expected"); - return false; - } - /** - * Gets a comment. - * @param {number} [trailingLine] Line number if looking for a trailing comment - * @returns {string|null} Comment text - * @inner - */ - function cmnt(trailingLine) { - var ret = null; - var comment; - if (trailingLine === undefined) { - comment = comments[line - 1]; - delete comments[line - 1]; - if (comment && (alternateCommentMode || comment.type === "*" || comment.lineEmpty)) { - ret = comment.leading ? comment.text : null; - } - } else { - /* istanbul ignore else */ - if (lastCommentLine < trailingLine) { - peek(); - } - comment = comments[trailingLine]; - delete comments[trailingLine]; - if (comment && !comment.lineEmpty && (alternateCommentMode || comment.type === "/")) { - ret = comment.leading ? null : comment.text; - } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } - return ret; + + if (data.hasOwnProperty('rotation-interval')) { + obj['rotation-interval'] = _ApiClient["default"].convertToType(data['rotation-interval'], 'Number'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; } + }]); + + return UpdateRotationSettings; +}(); +/** + * Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation + * @member {Boolean} auto-rotate + */ + + +UpdateRotationSettings.prototype['auto-rotate'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ + +UpdateRotationSettings.prototype['json'] = false; +/** + * Key name + * @member {String} name + */ + +UpdateRotationSettings.prototype['name'] = undefined; +/** + * The number of days to wait between every automatic key rotation (7-365) + * @member {Number} rotation-interval + */ + +UpdateRotationSettings.prototype['rotation-interval'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - return Object.defineProperty({ - next: next, - peek: peek, - push: push, - skip: skip, - cmnt: cmnt - }, "line", { - get: function() { return line; } - }); - /* eslint-enable callback-return */ -} +UpdateRotationSettings.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +UpdateRotationSettings.prototype['uid-token'] = undefined; +var _default = UpdateRotationSettings; +exports["default"] = _default; /***/ }), -/***/ 70901: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 65022: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -module.exports = Type; -// extends Namespace -var Namespace = __nccwpck_require__(21946); -((Type.prototype = Object.create(Namespace.prototype)).constructor = Type).className = "Type"; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var Enum = __nccwpck_require__(73528), - OneOf = __nccwpck_require__(84624), - Field = __nccwpck_require__(30457), - MapField = __nccwpck_require__(58791), - Service = __nccwpck_require__(30338), - Message = __nccwpck_require__(69450), - Reader = __nccwpck_require__(46969), - Writer = __nccwpck_require__(33654), - util = __nccwpck_require__(39609), - encoder = __nccwpck_require__(67641), - decoder = __nccwpck_require__(67682), - verifier = __nccwpck_require__(7639), - converter = __nccwpck_require__(92437), - wrappers = __nccwpck_require__(59781); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Constructs a new reflected message type instance. - * @classdesc Reflected message type. - * @extends NamespaceBase - * @constructor - * @param {string} name Message name - * @param {Object.} [options] Declared options + * The UpdateSSHCertIssuer model module. + * @module model/UpdateSSHCertIssuer + * @version 3.6.3 */ -function Type(name, options) { - Namespace.call(this, name, options); +var UpdateSSHCertIssuer = /*#__PURE__*/function () { + /** + * Constructs a new UpdateSSHCertIssuer. + * @alias module:model/UpdateSSHCertIssuer + * @param allowedUsers {String} Users allowed to fetch the certificate, e.g root,ubuntu + * @param name {String} SSH certificate issuer name + * @param signerKeyName {String} A key to sign the certificate with + * @param ttl {Number} The requested Time To Live for the certificate, in seconds + */ + function UpdateSSHCertIssuer(allowedUsers, name, signerKeyName, ttl) { + _classCallCheck(this, UpdateSSHCertIssuer); - /** - * Message fields. - * @type {Object.} - */ - this.fields = {}; // toJSON, marker + UpdateSSHCertIssuer.initialize(this, allowedUsers, name, signerKeyName, ttl); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - /** - * Oneofs declared within this namespace, if any. - * @type {Object.} - */ - this.oneofs = undefined; // toJSON + _createClass(UpdateSSHCertIssuer, null, [{ + key: "initialize", + value: function initialize(obj, allowedUsers, name, signerKeyName, ttl) { + obj['allowed-users'] = allowedUsers; + obj['name'] = name; + obj['signer-key-name'] = signerKeyName; + obj['ttl'] = ttl; + } /** - * Extension ranges, if any. - * @type {number[][]} + * Constructs a UpdateSSHCertIssuer from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateSSHCertIssuer} obj Optional instance to populate. + * @return {module:model/UpdateSSHCertIssuer} The populated UpdateSSHCertIssuer instance. */ - this.extensions = undefined; // toJSON - /** - * Reserved ranges, if any. - * @type {Array.} - */ - this.reserved = undefined; // toJSON + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateSSHCertIssuer(); - /*? - * Whether this type is a legacy group. - * @type {boolean|undefined} - */ - this.group = undefined; // toJSON + if (data.hasOwnProperty('ProviderType')) { + obj['ProviderType'] = _ApiClient["default"].convertToType(data['ProviderType'], 'String'); + } - /** - * Cached fields by id. - * @type {Object.|null} - * @private - */ - this._fieldsById = null; + if (data.hasOwnProperty('add-tag')) { + obj['add-tag'] = _ApiClient["default"].convertToType(data['add-tag'], ['String']); + } - /** - * Cached fields as an array. - * @type {Field[]|null} - * @private - */ - this._fieldsArray = null; + if (data.hasOwnProperty('allowed-users')) { + obj['allowed-users'] = _ApiClient["default"].convertToType(data['allowed-users'], 'String'); + } - /** - * Cached oneofs as an array. - * @type {OneOf[]|null} - * @private - */ - this._oneofsArray = null; + if (data.hasOwnProperty('delete_protection')) { + obj['delete_protection'] = _ApiClient["default"].convertToType(data['delete_protection'], 'String'); + } - /** - * Cached constructor. - * @type {Constructor<{}>} - * @private - */ - this._ctor = null; -} + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -Object.defineProperties(Type.prototype, { + if (data.hasOwnProperty('extensions')) { + obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], { + 'String': 'String' + }); + } - /** - * Message fields by id. - * @name Type#fieldsById - * @type {Object.} - * @readonly - */ - fieldsById: { - get: function() { + if (data.hasOwnProperty('host-provider')) { + obj['host-provider'] = _ApiClient["default"].convertToType(data['host-provider'], 'String'); + } - /* istanbul ignore if */ - if (this._fieldsById) - return this._fieldsById; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - this._fieldsById = {}; - for (var names = Object.keys(this.fields), i = 0; i < names.length; ++i) { - var field = this.fields[names[i]], - id = field.id; + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], 'String'); + } - /* istanbul ignore if */ - if (this._fieldsById[id]) - throw Error("duplicate id " + id + " in " + this); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - this._fieldsById[id] = field; - } - return this._fieldsById; + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); } - }, - /** - * Fields of this message as an array for iteration. - * @name Type#fieldsArray - * @type {Field[]} - * @readonly - */ - fieldsArray: { - get: function() { - return this._fieldsArray || (this._fieldsArray = util.toArray(this.fields)); + if (data.hasOwnProperty('principals')) { + obj['principals'] = _ApiClient["default"].convertToType(data['principals'], 'String'); } - }, - /** - * Oneofs of this message as an array for iteration. - * @name Type#oneofsArray - * @type {OneOf[]} - * @readonly - */ - oneofsArray: { - get: function() { - return this._oneofsArray || (this._oneofsArray = util.toArray(this.oneofs)); + if (data.hasOwnProperty('rm-tag')) { + obj['rm-tag'] = _ApiClient["default"].convertToType(data['rm-tag'], ['String']); } - }, - /** - * The registered constructor, if any registered, otherwise a generic constructor. - * Assigning a function replaces the internal constructor. If the function does not extend {@link Message} yet, its prototype will be setup accordingly and static methods will be populated. If it already extends {@link Message}, it will just replace the internal constructor. - * @name Type#ctor - * @type {Constructor<{}>} - */ - ctor: { - get: function() { - return this._ctor || (this.ctor = Type.generateConstructor(this)()); - }, - set: function(ctor) { + if (data.hasOwnProperty('secure-access-bastion-api')) { + obj['secure-access-bastion-api'] = _ApiClient["default"].convertToType(data['secure-access-bastion-api'], 'String'); + } - // Ensure proper prototype - var prototype = ctor.prototype; - if (!(prototype instanceof Message)) { - (ctor.prototype = new Message()).constructor = ctor; - util.merge(ctor.prototype, prototype); - } + if (data.hasOwnProperty('secure-access-bastion-ssh')) { + obj['secure-access-bastion-ssh'] = _ApiClient["default"].convertToType(data['secure-access-bastion-ssh'], 'String'); + } - // Classes and messages reference their reflected type - ctor.$type = ctor.prototype.$type = this; + if (data.hasOwnProperty('secure-access-enable')) { + obj['secure-access-enable'] = _ApiClient["default"].convertToType(data['secure-access-enable'], 'String'); + } - // Mix in static methods - util.merge(ctor, Message, true); + if (data.hasOwnProperty('secure-access-host')) { + obj['secure-access-host'] = _ApiClient["default"].convertToType(data['secure-access-host'], ['String']); + } - this._ctor = ctor; + if (data.hasOwnProperty('secure-access-ssh-creds-user')) { + obj['secure-access-ssh-creds-user'] = _ApiClient["default"].convertToType(data['secure-access-ssh-creds-user'], 'String'); + } - // Messages have non-enumerable default values on their prototype - var i = 0; - for (; i < /* initializes */ this.fieldsArray.length; ++i) - this._fieldsArray[i].resolve(); // ensures a proper value + if (data.hasOwnProperty('secure-access-use-internal-bastion')) { + obj['secure-access-use-internal-bastion'] = _ApiClient["default"].convertToType(data['secure-access-use-internal-bastion'], 'Boolean'); + } - // Messages have non-enumerable getters and setters for each virtual oneof field - var ctorProperties = {}; - for (i = 0; i < /* initializes */ this.oneofsArray.length; ++i) - ctorProperties[this._oneofsArray[i].resolve().name] = { - get: util.oneOfGetter(this._oneofsArray[i].oneof), - set: util.oneOfSetter(this._oneofsArray[i].oneof) - }; - if (i) - Object.defineProperties(ctor.prototype, ctorProperties); + if (data.hasOwnProperty('signer-key-name')) { + obj['signer-key-name'] = _ApiClient["default"].convertToType(data['signer-key-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('ttl')) { + obj['ttl'] = _ApiClient["default"].convertToType(data['ttl'], 'Number'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } + } + + return obj; } -}); + }]); + return UpdateSSHCertIssuer; +}(); /** - * Generates a constructor function for the specified type. - * @param {Type} mtype Message type - * @returns {Codegen} Codegen instance + * @member {String} ProviderType */ -Type.generateConstructor = function generateConstructor(mtype) { - /* eslint-disable no-unexpected-multiline */ - var gen = util.codegen(["p"], mtype.name); - // explicitly initialize mutable object/array fields so that these aren't just inherited from the prototype - for (var i = 0, field; i < mtype.fieldsArray.length; ++i) - if ((field = mtype._fieldsArray[i]).map) gen - ("this%s={}", util.safeProp(field.name)); - else if (field.repeated) gen - ("this%s=[]", util.safeProp(field.name)); - return gen - ("if(p)for(var ks=Object.keys(p),i=0;i} [oneofs] Oneof descriptors - * @property {Object.} fields Field descriptors - * @property {number[][]} [extensions] Extension ranges - * @property {Array.} [reserved] Reserved ranges - * @property {boolean} [group=false] Whether a legacy group or not + * List of the new tags that will be attached to this item + * @member {Array.} add-tag */ +UpdateSSHCertIssuer.prototype['add-tag'] = undefined; /** - * Creates a message type from a message type descriptor. - * @param {string} name Message name - * @param {IType} json Message type descriptor - * @returns {Type} Created message type + * Users allowed to fetch the certificate, e.g root,ubuntu + * @member {String} allowed-users */ -Type.fromJSON = function fromJSON(name, json) { - var type = new Type(name, json.options); - type.extensions = json.extensions; - type.reserved = json.reserved; - var names = Object.keys(json.fields), - i = 0; - for (; i < names.length; ++i) - type.add( - ( typeof json.fields[names[i]].keyType !== "undefined" - ? MapField.fromJSON - : Field.fromJSON )(names[i], json.fields[names[i]]) - ); - if (json.oneofs) - for (names = Object.keys(json.oneofs), i = 0; i < names.length; ++i) - type.add(OneOf.fromJSON(names[i], json.oneofs[names[i]])); - if (json.nested) - for (names = Object.keys(json.nested), i = 0; i < names.length; ++i) { - var nested = json.nested[names[i]]; - type.add( // most to least likely - ( nested.id !== undefined - ? Field.fromJSON - : nested.fields !== undefined - ? Type.fromJSON - : nested.values !== undefined - ? Enum.fromJSON - : nested.methods !== undefined - ? Service.fromJSON - : Namespace.fromJSON )(names[i], nested) - ); - } - if (json.extensions && json.extensions.length) - type.extensions = json.extensions; - if (json.reserved && json.reserved.length) - type.reserved = json.reserved; - if (json.group) - type.group = true; - if (json.comment) - type.comment = json.comment; - if (json.edition) - type._edition = json.edition; - type._defaultEdition = "proto3"; // For backwards-compatibility. - return type; -}; +UpdateSSHCertIssuer.prototype['allowed-users'] = undefined; /** - * Converts this message type to a message type descriptor. - * @param {IToJSONOptions} [toJSONOptions] JSON conversion options - * @returns {IType} Message type descriptor + * Protection from accidental deletion of this item [true/false] + * @member {String} delete_protection */ -Type.prototype.toJSON = function toJSON(toJSONOptions) { - var inherited = Namespace.prototype.toJSON.call(this, toJSONOptions); - var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false; - return util.toObject([ - "edition" , this._editionToJSON(), - "options" , inherited && inherited.options || undefined, - "oneofs" , Namespace.arrayToJSON(this.oneofsArray, toJSONOptions), - "fields" , Namespace.arrayToJSON(this.fieldsArray.filter(function(obj) { return !obj.declaringField; }), toJSONOptions) || {}, - "extensions" , this.extensions && this.extensions.length ? this.extensions : undefined, - "reserved" , this.reserved && this.reserved.length ? this.reserved : undefined, - "group" , this.group || undefined, - "nested" , inherited && inherited.nested || undefined, - "comment" , keepComments ? this.comment : undefined - ]); -}; +UpdateSSHCertIssuer.prototype['delete_protection'] = undefined; /** - * @override + * Description of the object + * @member {String} description */ -Type.prototype.resolveAll = function resolveAll() { - if (!this._needsRecursiveResolve) return this; - - Namespace.prototype.resolveAll.call(this); - var oneofs = this.oneofsArray; i = 0; - while (i < oneofs.length) - oneofs[i++].resolve(); - var fields = this.fieldsArray, i = 0; - while (i < fields.length) - fields[i++].resolve(); - return this; -}; +UpdateSSHCertIssuer.prototype['description'] = undefined; /** - * @override + * Signed certificates with extensions, e.g permit-port-forwarding=\\\"\\\" + * @member {Object.} extensions */ -Type.prototype._resolveFeaturesRecursive = function _resolveFeaturesRecursive(edition) { - if (!this._needsRecursiveFeatureResolution) return this; - - edition = this._edition || edition; - - Namespace.prototype._resolveFeaturesRecursive.call(this, edition); - this.oneofsArray.forEach(oneof => { - oneof._resolveFeatures(edition); - }); - this.fieldsArray.forEach(field => { - field._resolveFeatures(edition); - }); - return this; -}; +UpdateSSHCertIssuer.prototype['extensions'] = undefined; /** - * @override + * Host provider type [explicit/target], Relevant only for Secure Remote Access of ssh cert issuer and ldap rotated secret + * @member {String} host-provider + * @default 'explicit' */ -Type.prototype.get = function get(name) { - return this.fields[name] - || this.oneofs && this.oneofs[name] - || this.nested && this.nested[name] - || null; -}; +UpdateSSHCertIssuer.prototype['host-provider'] = 'explicit'; /** - * Adds a nested object to this type. - * @param {ReflectionObject} object Nested object to add - * @returns {Type} `this` - * @throws {TypeError} If arguments are invalid - * @throws {Error} If there is already a nested object with this name or, if a field, when there is already a field with this id + * Set output format to JSON + * @member {Boolean} json + * @default false */ -Type.prototype.add = function add(object) { - - if (this.get(object.name)) - throw Error("duplicate name '" + object.name + "' in " + this); - - if (object instanceof Field && object.extend === undefined) { - // NOTE: Extension fields aren't actual fields on the declaring type, but nested objects. - // The root object takes care of adding distinct sister-fields to the respective extended - // type instead. - - // avoids calling the getter if not absolutely necessary because it's called quite frequently - if (this._fieldsById ? /* istanbul ignore next */ this._fieldsById[object.id] : this.fieldsById[object.id]) - throw Error("duplicate id " + object.id + " in " + this); - if (this.isReservedId(object.id)) - throw Error("id " + object.id + " is reserved in " + this); - if (this.isReservedName(object.name)) - throw Error("name '" + object.name + "' is reserved in " + this); - - if (object.parent) - object.parent.remove(object); - this.fields[object.name] = object; - object.message = this; - object.onAdd(this); - return clearCache(this); - } - if (object instanceof OneOf) { - if (!this.oneofs) - this.oneofs = {}; - this.oneofs[object.name] = object; - object.onAdd(this); - return clearCache(this); - } - return Namespace.prototype.add.call(this, object); -}; +UpdateSSHCertIssuer.prototype['json'] = false; /** - * Removes a nested object from this type. - * @param {ReflectionObject} object Nested object to remove - * @returns {Type} `this` - * @throws {TypeError} If arguments are invalid - * @throws {Error} If `object` is not a member of this type + * Deprecated - use description + * @member {String} metadata */ -Type.prototype.remove = function remove(object) { - if (object instanceof Field && object.extend === undefined) { - // See Type#add for the reason why extension fields are excluded here. - - /* istanbul ignore if */ - if (!this.fields || this.fields[object.name] !== object) - throw Error(object + " is not a member of " + this); - - delete this.fields[object.name]; - object.parent = null; - object.onRemove(this); - return clearCache(this); - } - if (object instanceof OneOf) { - - /* istanbul ignore if */ - if (!this.oneofs || this.oneofs[object.name] !== object) - throw Error(object + " is not a member of " + this); - - delete this.oneofs[object.name]; - object.parent = null; - object.onRemove(this); - return clearCache(this); - } - return Namespace.prototype.remove.call(this, object); -}; +UpdateSSHCertIssuer.prototype['metadata'] = undefined; /** - * Tests if the specified id is reserved. - * @param {number} id Id to test - * @returns {boolean} `true` if reserved, otherwise `false` + * SSH certificate issuer name + * @member {String} name */ -Type.prototype.isReservedId = function isReservedId(id) { - return Namespace.isReservedId(this.reserved, id); -}; +UpdateSSHCertIssuer.prototype['name'] = undefined; /** - * Tests if the specified name is reserved. - * @param {string} name Name to test - * @returns {boolean} `true` if reserved, otherwise `false` + * New item name + * @member {String} new-name */ -Type.prototype.isReservedName = function isReservedName(name) { - return Namespace.isReservedName(this.reserved, name); -}; +UpdateSSHCertIssuer.prototype['new-name'] = undefined; /** - * Creates a new message of this type using the specified properties. - * @param {Object.} [properties] Properties to set - * @returns {Message<{}>} Message instance + * Signed certificates with principal, e.g example_role1,example_role2 + * @member {String} principals */ -Type.prototype.create = function create(properties) { - return new this.ctor(properties); -}; +UpdateSSHCertIssuer.prototype['principals'] = undefined; /** - * Sets up {@link Type#encode|encode}, {@link Type#decode|decode} and {@link Type#verify|verify}. - * @returns {Type} `this` + * List of the existent tags that will be removed from this item + * @member {Array.} rm-tag */ -Type.prototype.setup = function setup() { - // Sets up everything at once so that the prototype chain does not have to be re-evaluated - // multiple times (V8, soft-deopt prototype-check). - - var fullName = this.fullName, - types = []; - for (var i = 0; i < /* initializes */ this.fieldsArray.length; ++i) - types.push(this._fieldsArray[i].resolve().resolvedType); - - // Replace setup methods with type-specific generated functions - this.encode = encoder(this)({ - Writer : Writer, - types : types, - util : util - }); - this.decode = decoder(this)({ - Reader : Reader, - types : types, - util : util - }); - this.verify = verifier(this)({ - types : types, - util : util - }); - this.fromObject = converter.fromObject(this)({ - types : types, - util : util - }); - this.toObject = converter.toObject(this)({ - types : types, - util : util - }); - - // Inject custom wrappers for common types - var wrapper = wrappers[fullName]; - if (wrapper) { - var originalThis = Object.create(this); - // if (wrapper.fromObject) { - originalThis.fromObject = this.fromObject; - this.fromObject = wrapper.fromObject.bind(originalThis); - // } - // if (wrapper.toObject) { - originalThis.toObject = this.toObject; - this.toObject = wrapper.toObject.bind(originalThis); - // } - } - - return this; -}; +UpdateSSHCertIssuer.prototype['rm-tag'] = undefined; /** - * Encodes a message of this type. Does not implicitly {@link Type#verify|verify} messages. - * @param {Message<{}>|Object.} message Message instance or plain object - * @param {Writer} [writer] Writer to encode to - * @returns {Writer} writer + * Bastion's SSH control API endpoint. E.g. https://my.bastion:9900 + * @member {String} secure-access-bastion-api */ -Type.prototype.encode = function encode_setup(message, writer) { - return this.setup().encode(message, writer); // overrides this method -}; +UpdateSSHCertIssuer.prototype['secure-access-bastion-api'] = undefined; /** - * Encodes a message of this type preceeded by its byte length as a varint. Does not implicitly {@link Type#verify|verify} messages. - * @param {Message<{}>|Object.} message Message instance or plain object - * @param {Writer} [writer] Writer to encode to - * @returns {Writer} writer + * Bastion's SSH server. E.g. my.bastion:22 + * @member {String} secure-access-bastion-ssh */ -Type.prototype.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim(); -}; +UpdateSSHCertIssuer.prototype['secure-access-bastion-ssh'] = undefined; /** - * Decodes a message of this type. - * @param {Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Length of the message, if known beforehand - * @returns {Message<{}>} Decoded message - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {util.ProtocolError<{}>} If required fields are missing + * Enable/Disable secure remote access [true/false] + * @member {String} secure-access-enable */ -Type.prototype.decode = function decode_setup(reader, length) { - return this.setup().decode(reader, length); // overrides this method -}; +UpdateSSHCertIssuer.prototype['secure-access-enable'] = undefined; /** - * Decodes a message of this type preceeded by its byte length as a varint. - * @param {Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {Message<{}>} Decoded message - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {util.ProtocolError} If required fields are missing + * Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers) + * @member {Array.} secure-access-host */ -Type.prototype.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof Reader)) - reader = Reader.create(reader); - return this.decode(reader, reader.uint32()); -}; +UpdateSSHCertIssuer.prototype['secure-access-host'] = undefined; /** - * Verifies that field values are valid and that required fields are present. - * @param {Object.} message Plain object to verify - * @returns {null|string} `null` if valid, otherwise the reason why it is not + * SSH username to connect to target server, must be in 'Allowed Users' list + * @member {String} secure-access-ssh-creds-user */ -Type.prototype.verify = function verify_setup(message) { - return this.setup().verify(message); // overrides this method -}; +UpdateSSHCertIssuer.prototype['secure-access-ssh-creds-user'] = undefined; /** - * Creates a new message of this type from a plain object. Also converts values to their respective internal types. - * @param {Object.} object Plain object to convert - * @returns {Message<{}>} Message instance + * Use internal SSH Bastion + * @member {Boolean} secure-access-use-internal-bastion */ -Type.prototype.fromObject = function fromObject(object) { - return this.setup().fromObject(object); -}; +UpdateSSHCertIssuer.prototype['secure-access-use-internal-bastion'] = undefined; /** - * Conversion options as used by {@link Type#toObject} and {@link Message.toObject}. - * @interface IConversionOptions - * @property {Function} [longs] Long conversion type. - * Valid values are `String` and `Number` (the global types). - * Defaults to copy the present value, which is a possibly unsafe number without and a {@link Long} with a long library. - * @property {Function} [enums] Enum value conversion type. - * Only valid value is `String` (the global type). - * Defaults to copy the present value, which is the numeric id. - * @property {Function} [bytes] Bytes value conversion type. - * Valid values are `Array` and (a base64 encoded) `String` (the global types). - * Defaults to copy the present value, which usually is a Buffer under node and an Uint8Array in the browser. - * @property {boolean} [defaults=false] Also sets default values on the resulting object - * @property {boolean} [arrays=false] Sets empty arrays for missing repeated fields even if `defaults=false` - * @property {boolean} [objects=false] Sets empty objects for missing map fields even if `defaults=false` - * @property {boolean} [oneofs=false] Includes virtual oneof properties set to the present field's name, if any - * @property {boolean} [json=false] Performs additional JSON compatibility conversions, i.e. NaN and Infinity to strings + * A key to sign the certificate with + * @member {String} signer-key-name */ +UpdateSSHCertIssuer.prototype['signer-key-name'] = undefined; /** - * Creates a plain object from a message of this type. Also converts values to other types if specified. - * @param {Message<{}>} message Message instance - * @param {IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -Type.prototype.toObject = function toObject(message, options) { - return this.setup().toObject(message, options); -}; +UpdateSSHCertIssuer.prototype['token'] = undefined; /** - * Decorator function as returned by {@link Type.d} (TypeScript). - * @typedef TypeDecorator - * @type {function} - * @param {Constructor} target Target constructor - * @returns {undefined} - * @template T extends Message + * The requested Time To Live for the certificate, in seconds + * @member {Number} ttl */ +UpdateSSHCertIssuer.prototype['ttl'] = undefined; /** - * Type decorator (TypeScript). - * @param {string} [typeName] Type name, defaults to the constructor's name - * @returns {TypeDecorator} Decorator function - * @template T extends Message + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -Type.d = function decorateType(typeName) { - return function typeDecorator(target) { - util.decorateType(target, typeName); - }; -}; +UpdateSSHCertIssuer.prototype['uid-token'] = undefined; +var _default = UpdateSSHCertIssuer; +exports["default"] = _default; /***/ }), -/***/ 21024: +/***/ 96523: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -/** - * Common type constants. - * @namespace - */ -var types = exports; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var util = __nccwpck_require__(39609); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -var s = [ - "double", // 0 - "float", // 1 - "int32", // 2 - "uint32", // 3 - "sint32", // 4 - "fixed32", // 5 - "sfixed32", // 6 - "int64", // 7 - "uint64", // 8 - "sint64", // 9 - "fixed64", // 10 - "sfixed64", // 11 - "bool", // 12 - "string", // 13 - "bytes" // 14 -]; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function bake(values, offset) { - var i = 0, o = {}; - offset |= 0; - while (i < values.length) o[s[i + offset]] = values[i++]; - return o; -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/** - * Basic type wire types. - * @type {Object.} - * @const - * @property {number} double=1 Fixed64 wire type - * @property {number} float=5 Fixed32 wire type - * @property {number} int32=0 Varint wire type - * @property {number} uint32=0 Varint wire type - * @property {number} sint32=0 Varint wire type - * @property {number} fixed32=5 Fixed32 wire type - * @property {number} sfixed32=5 Fixed32 wire type - * @property {number} int64=0 Varint wire type - * @property {number} uint64=0 Varint wire type - * @property {number} sint64=0 Varint wire type - * @property {number} fixed64=1 Fixed64 wire type - * @property {number} sfixed64=1 Fixed64 wire type - * @property {number} bool=0 Varint wire type - * @property {number} string=2 Ldelim wire type - * @property {number} bytes=2 Ldelim wire type - */ -types.basic = bake([ - /* double */ 1, - /* float */ 5, - /* int32 */ 0, - /* uint32 */ 0, - /* sint32 */ 0, - /* fixed32 */ 5, - /* sfixed32 */ 5, - /* int64 */ 0, - /* uint64 */ 0, - /* sint64 */ 0, - /* fixed64 */ 1, - /* sfixed64 */ 1, - /* bool */ 0, - /* string */ 2, - /* bytes */ 2 -]); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -/** - * Basic type defaults. - * @type {Object.} - * @const - * @property {number} double=0 Double default - * @property {number} float=0 Float default - * @property {number} int32=0 Int32 default - * @property {number} uint32=0 Uint32 default - * @property {number} sint32=0 Sint32 default - * @property {number} fixed32=0 Fixed32 default - * @property {number} sfixed32=0 Sfixed32 default - * @property {number} int64=0 Int64 default - * @property {number} uint64=0 Uint64 default - * @property {number} sint64=0 Sint32 default - * @property {number} fixed64=0 Fixed64 default - * @property {number} sfixed64=0 Sfixed64 default - * @property {boolean} bool=false Bool default - * @property {string} string="" String default - * @property {Array.} bytes=Array(0) Bytes default - * @property {null} message=null Message default - */ -types.defaults = bake([ - /* double */ 0, - /* float */ 0, - /* int32 */ 0, - /* uint32 */ 0, - /* sint32 */ 0, - /* fixed32 */ 0, - /* sfixed32 */ 0, - /* int64 */ 0, - /* uint64 */ 0, - /* sint64 */ 0, - /* fixed64 */ 0, - /* sfixed64 */ 0, - /* bool */ false, - /* string */ "", - /* bytes */ util.emptyArray, - /* message */ null -]); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Basic long type wire types. - * @type {Object.} - * @const - * @property {number} int64=0 Varint wire type - * @property {number} uint64=0 Varint wire type - * @property {number} sint64=0 Varint wire type - * @property {number} fixed64=1 Fixed64 wire type - * @property {number} sfixed64=1 Fixed64 wire type + * The UpdateSSHCertIssuerOutput model module. + * @module model/UpdateSSHCertIssuerOutput + * @version 3.6.3 */ -types.long = bake([ - /* int64 */ 0, - /* uint64 */ 0, - /* sint64 */ 0, - /* fixed64 */ 1, - /* sfixed64 */ 1 -], 7); +var UpdateSSHCertIssuerOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateSSHCertIssuerOutput. + * @alias module:model/UpdateSSHCertIssuerOutput + */ + function UpdateSSHCertIssuerOutput() { + _classCallCheck(this, UpdateSSHCertIssuerOutput); + + UpdateSSHCertIssuerOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateSSHCertIssuerOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateSSHCertIssuerOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateSSHCertIssuerOutput} obj Optional instance to populate. + * @return {module:model/UpdateSSHCertIssuerOutput} The populated UpdateSSHCertIssuerOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateSSHCertIssuerOutput(); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + + return obj; + } + }]); + + return UpdateSSHCertIssuerOutput; +}(); /** - * Allowed types for map keys with their associated wire type. - * @type {Object.} - * @const - * @property {number} int32=0 Varint wire type - * @property {number} uint32=0 Varint wire type - * @property {number} sint32=0 Varint wire type - * @property {number} fixed32=5 Fixed32 wire type - * @property {number} sfixed32=5 Fixed32 wire type - * @property {number} int64=0 Varint wire type - * @property {number} uint64=0 Varint wire type - * @property {number} sint64=0 Varint wire type - * @property {number} fixed64=1 Fixed64 wire type - * @property {number} sfixed64=1 Fixed64 wire type - * @property {number} bool=0 Varint wire type - * @property {number} string=2 Ldelim wire type + * @member {String} name */ -types.mapKey = bake([ - /* int32 */ 0, - /* uint32 */ 0, - /* sint32 */ 0, - /* fixed32 */ 5, - /* sfixed32 */ 5, - /* int64 */ 0, - /* uint64 */ 0, - /* sint64 */ 0, - /* fixed64 */ 1, - /* sfixed64 */ 1, - /* bool */ 0, - /* string */ 2 -], 2); + + +UpdateSSHCertIssuerOutput.prototype['name'] = undefined; +var _default = UpdateSSHCertIssuerOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 72830: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Allowed types for packed repeated fields with their associated wire type. - * @type {Object.} - * @const - * @property {number} double=1 Fixed64 wire type - * @property {number} float=5 Fixed32 wire type - * @property {number} int32=0 Varint wire type - * @property {number} uint32=0 Varint wire type - * @property {number} sint32=0 Varint wire type - * @property {number} fixed32=5 Fixed32 wire type - * @property {number} sfixed32=5 Fixed32 wire type - * @property {number} int64=0 Varint wire type - * @property {number} uint64=0 Varint wire type - * @property {number} sint64=0 Varint wire type - * @property {number} fixed64=1 Fixed64 wire type - * @property {number} sfixed64=1 Fixed64 wire type - * @property {number} bool=0 Varint wire type + * The UpdateSSHTarget model module. + * @module model/UpdateSSHTarget + * @version 3.6.3 */ -types.packed = bake([ - /* double */ 1, - /* float */ 5, - /* int32 */ 0, - /* uint32 */ 0, - /* sint32 */ 0, - /* fixed32 */ 5, - /* sfixed32 */ 5, - /* int64 */ 0, - /* uint64 */ 0, - /* sint64 */ 0, - /* fixed64 */ 1, - /* sfixed64 */ 1, - /* bool */ 0 -]); +var UpdateSSHTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateSSHTarget. + * @alias module:model/UpdateSSHTarget + * @param name {String} Target name + */ + function UpdateSSHTarget(name) { + _classCallCheck(this, UpdateSSHTarget); + + UpdateSSHTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateSSHTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + /** + * Constructs a UpdateSSHTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateSSHTarget} obj Optional instance to populate. + * @return {module:model/UpdateSSHTarget} The populated UpdateSSHTarget instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateSSHTarget(); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } + + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } + + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } + + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -/***/ }), + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -/***/ 39609: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } -"use strict"; + if (data.hasOwnProperty('private-key')) { + obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); + } + if (data.hasOwnProperty('private-key-password')) { + obj['private-key-password'] = _ApiClient["default"].convertToType(data['private-key-password'], 'String'); + } -/** - * Various utility functions. - * @namespace - */ -var util = module.exports = __nccwpck_require__(22857); + if (data.hasOwnProperty('ssh-password')) { + obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); + } -var roots = __nccwpck_require__(34460); + if (data.hasOwnProperty('ssh-username')) { + obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); + } -var Type, // cyclic - Enum; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -util.codegen = __nccwpck_require__(25346); -util.fetch = __nccwpck_require__(44279); -util.path = __nccwpck_require__(66090); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + } + + return obj; + } + }]); + return UpdateSSHTarget; +}(); /** - * Node's fs module if available. - * @type {Object.} + * Description of the object + * @member {String} description */ -util.fs = util.inquire("fs"); + +UpdateSSHTarget.prototype['description'] = undefined; /** - * Converts an object's values to an array. - * @param {Object.} object Object to convert - * @returns {Array.<*>} Converted array + * SSH host name + * @member {String} host */ -util.toArray = function toArray(object) { - if (object) { - var keys = Object.keys(object), - array = new Array(keys.length), - index = 0; - while (index < keys.length) - array[index] = object[keys[index++]]; - return array; - } - return []; -}; +UpdateSSHTarget.prototype['host'] = undefined; /** - * Converts an array of keys immediately followed by their respective value to an object, omitting undefined values. - * @param {Array.<*>} array Array to convert - * @returns {Object.} Converted object + * Set output format to JSON + * @member {Boolean} json + * @default false */ -util.toObject = function toObject(array) { - var object = {}, - index = 0; - while (index < array.length) { - var key = array[index++], - val = array[index++]; - if (val !== undefined) - object[key] = val; - } - return object; -}; -var safePropBackslashRe = /\\/g, - safePropQuoteRe = /"/g; +UpdateSSHTarget.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ +UpdateSSHTarget.prototype['keep-prev-version'] = undefined; /** - * Tests whether the specified name is a reserved word in JS. - * @param {string} name Name to test - * @returns {boolean} `true` if reserved, otherwise `false` + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -util.isReserved = function isReserved(name) { - return /^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(name); -}; +UpdateSSHTarget.prototype['key'] = undefined; /** - * Returns a safe property accessor for the specified property name. - * @param {string} prop Property name - * @returns {string} Safe accessor + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions */ -util.safeProp = function safeProp(prop) { - if (!/^[$\w_]+$/.test(prop) || util.isReserved(prop)) - return "[\"" + prop.replace(safePropBackslashRe, "\\\\").replace(safePropQuoteRe, "\\\"") + "\"]"; - return "." + prop; -}; +UpdateSSHTarget.prototype['max-versions'] = undefined; /** - * Converts the first character of a string to upper case. - * @param {string} str String to convert - * @returns {string} Converted string + * Target name + * @member {String} name */ -util.ucFirst = function ucFirst(str) { - return str.charAt(0).toUpperCase() + str.substring(1); -}; -var camelCaseRe = /_([a-z])/g; +UpdateSSHTarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ +UpdateSSHTarget.prototype['new-name'] = undefined; /** - * Converts a string to camel case. - * @param {string} str String to convert - * @returns {string} Converted string + * SSH port + * @member {String} port + * @default '22' */ -util.camelCase = function camelCase(str) { - return str.substring(0, 1) - + str.substring(1) - .replace(camelCaseRe, function($0, $1) { return $1.toUpperCase(); }); -}; +UpdateSSHTarget.prototype['port'] = '22'; /** - * Compares reflected fields by id. - * @param {Field} a First field - * @param {Field} b Second field - * @returns {number} Comparison value + * SSH private key + * @member {String} private-key */ -util.compareFieldsById = function compareFieldsById(a, b) { - return a.id - b.id; -}; +UpdateSSHTarget.prototype['private-key'] = undefined; /** - * Decorator helper for types (TypeScript). - * @param {Constructor} ctor Constructor function - * @param {string} [typeName] Type name, defaults to the constructor's name - * @returns {Type} Reflected type - * @template T extends Message - * @property {Root} root Decorators root + * SSH private key password + * @member {String} private-key-password */ -util.decorateType = function decorateType(ctor, typeName) { - /* istanbul ignore if */ - if (ctor.$type) { - if (typeName && ctor.$type.name !== typeName) { - util.decorateRoot.remove(ctor.$type); - ctor.$type.name = typeName; - util.decorateRoot.add(ctor.$type); - } - return ctor.$type; - } +UpdateSSHTarget.prototype['private-key-password'] = undefined; +/** + * SSH password to rotate + * @member {String} ssh-password + */ - /* istanbul ignore next */ - if (!Type) - Type = __nccwpck_require__(70901); +UpdateSSHTarget.prototype['ssh-password'] = undefined; +/** + * SSH username + * @member {String} ssh-username + */ - var type = new Type(typeName || ctor.name); - util.decorateRoot.add(type); - type.ctor = ctor; // sets up .encode, .decode etc. - Object.defineProperty(ctor, "$type", { value: type, enumerable: false }); - Object.defineProperty(ctor.prototype, "$type", { value: type, enumerable: false }); - return type; -}; +UpdateSSHTarget.prototype['ssh-username'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -var decorateEnumIndex = 0; +UpdateSSHTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +UpdateSSHTarget.prototype['uid-token'] = undefined; /** - * Decorator helper for enums (TypeScript). - * @param {Object} object Enum object - * @returns {Enum} Reflected enum + * Deprecated + * @member {Boolean} update-version */ -util.decorateEnum = function decorateEnum(object) { - /* istanbul ignore if */ - if (object.$type) - return object.$type; +UpdateSSHTarget.prototype['update-version'] = undefined; +var _default = UpdateSSHTarget; +exports["default"] = _default; - /* istanbul ignore next */ - if (!Enum) - Enum = __nccwpck_require__(73528); +/***/ }), - var enm = new Enum("Enum" + decorateEnumIndex++, object); - util.decorateRoot.add(enm); - Object.defineProperty(object, "$type", { value: enm, enumerable: false }); - return enm; -}; +/***/ 58790: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +"use strict"; -/** - * Sets the value of a property by property path. If a value already exists, it is turned to an array - * @param {Object.} dst Destination object - * @param {string} path dot '.' delimited path of the property to set - * @param {Object} value the value to set - * @param {boolean|undefined} [ifNotSet] Sets the option only if it isn't currently set - * @returns {Object.} Destination object - */ -util.setProperty = function setProperty(dst, path, value, ifNotSet) { - function setProp(dst, path, value) { - var part = path.shift(); - if (part === "__proto__" || part === "prototype") { - return dst; - } - if (path.length > 0) { - dst[part] = setProp(dst[part] || {}, path, value); - } else { - var prevValue = dst[part]; - if (prevValue && ifNotSet) - return dst; - if (prevValue) - value = [].concat(prevValue).concat(value); - dst[part] = value; - } - return dst; - } - if (typeof dst !== "object") - throw TypeError("dst must be an object"); - if (!path) - throw TypeError("path must be specified"); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - path = path.split("."); - return setProp(dst, path, value); -}; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Decorator root (TypeScript). - * @name util.decorateRoot - * @type {Root} - * @readonly + * The UpdateSSHTargetDetails model module. + * @module model/UpdateSSHTargetDetails + * @version 3.6.3 */ -Object.defineProperty(util, "decorateRoot", { - get: function() { - return roots["decorated"] || (roots["decorated"] = new (__nccwpck_require__(8185))()); +var UpdateSSHTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new UpdateSSHTargetDetails. + * @alias module:model/UpdateSSHTargetDetails + * @param name {String} Target name + */ + function UpdateSSHTargetDetails(name) { + _classCallCheck(this, UpdateSSHTargetDetails); + + UpdateSSHTargetDetails.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateSSHTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } -}); + /** + * Constructs a UpdateSSHTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateSSHTargetDetails} obj Optional instance to populate. + * @return {module:model/UpdateSSHTargetDetails} The populated UpdateSSHTargetDetails instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateSSHTargetDetails(); -/***/ }), + if (data.hasOwnProperty('host')) { + obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String'); + } -/***/ 70994: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -"use strict"; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -module.exports = LongBits; + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var util = __nccwpck_require__(22857); + if (data.hasOwnProperty('new-version')) { + obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); + } -/** - * Constructs new long bits. - * @classdesc Helper class for working with the low and high bits of a 64 bit value. - * @memberof util - * @constructor - * @param {number} lo Low 32 bits, unsigned - * @param {number} hi High 32 bits, unsigned - */ -function LongBits(lo, hi) { + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); + } - // note that the casts below are theoretically unnecessary as of today, but older statically - // generated converter code might still call the ctor with signed 32bits. kept for compat. + if (data.hasOwnProperty('private-key')) { + obj['private-key'] = _ApiClient["default"].convertToType(data['private-key'], 'String'); + } - /** - * Low bits. - * @type {number} - */ - this.lo = lo >>> 0; + if (data.hasOwnProperty('private-key-password')) { + obj['private-key-password'] = _ApiClient["default"].convertToType(data['private-key-password'], 'String'); + } - /** - * High bits. - * @type {number} - */ - this.hi = hi >>> 0; -} + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); + } + + if (data.hasOwnProperty('ssh-password')) { + obj['ssh-password'] = _ApiClient["default"].convertToType(data['ssh-password'], 'String'); + } + + if (data.hasOwnProperty('ssh-username')) { + obj['ssh-username'] = _ApiClient["default"].convertToType(data['ssh-username'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + + return obj; + } + }]); + return UpdateSSHTargetDetails; +}(); /** - * Zero bits. - * @memberof util.LongBits - * @type {util.LongBits} + * The ssh host name + * @member {String} host */ -var zero = LongBits.zero = new LongBits(0, 0); -zero.toNumber = function() { return 0; }; -zero.zzEncode = zero.zzDecode = function() { return this; }; -zero.length = function() { return 1; }; +UpdateSSHTargetDetails.prototype['host'] = undefined; /** - * Zero hash. - * @memberof util.LongBits - * @type {string} + * Set output format to JSON + * @member {Boolean} json + * @default false */ -var zeroHash = LongBits.zeroHash = "\0\0\0\0\0\0\0\0"; +UpdateSSHTargetDetails.prototype['json'] = false; /** - * Constructs new long bits from the specified number. - * @param {number} value Value - * @returns {util.LongBits} Instance + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -LongBits.fromNumber = function fromNumber(value) { - if (value === 0) - return zero; - var sign = value < 0; - if (sign) - value = -value; - var lo = value >>> 0, - hi = (value - lo) / 4294967296 >>> 0; - if (sign) { - hi = ~hi >>> 0; - lo = ~lo >>> 0; - if (++lo > 4294967295) { - lo = 0; - if (++hi > 4294967295) - hi = 0; - } - } - return new LongBits(lo, hi); -}; +UpdateSSHTargetDetails.prototype['keep-prev-version'] = undefined; /** - * Constructs new long bits from a number, long or string. - * @param {Long|number|string} value Value - * @returns {util.LongBits} Instance + * Target name + * @member {String} name */ -LongBits.from = function from(value) { - if (typeof value === "number") - return LongBits.fromNumber(value); - if (util.isString(value)) { - /* istanbul ignore else */ - if (util.Long) - value = util.Long.fromString(value); - else - return LongBits.fromNumber(parseInt(value, 10)); - } - return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero; -}; +UpdateSSHTargetDetails.prototype['name'] = undefined; /** - * Converts this long bits to a possibly unsafe JavaScript number. - * @param {boolean} [unsigned=false] Whether unsigned or not - * @returns {number} Possibly unsafe number + * Deprecated + * @member {Boolean} new-version */ -LongBits.prototype.toNumber = function toNumber(unsigned) { - if (!unsigned && this.hi >>> 31) { - var lo = ~this.lo + 1 >>> 0, - hi = ~this.hi >>> 0; - if (!lo) - hi = hi + 1 >>> 0; - return -(lo + hi * 4294967296); - } - return this.lo + this.hi * 4294967296; -}; +UpdateSSHTargetDetails.prototype['new-version'] = undefined; /** - * Converts this long bits to a long. - * @param {boolean} [unsigned=false] Whether unsigned or not - * @returns {Long} Long + * ssh port + * @member {String} port + * @default '22' */ -LongBits.prototype.toLong = function toLong(unsigned) { - return util.Long - ? new util.Long(this.lo | 0, this.hi | 0, Boolean(unsigned)) - /* istanbul ignore next */ - : { low: this.lo | 0, high: this.hi | 0, unsigned: Boolean(unsigned) }; -}; -var charCodeAt = String.prototype.charCodeAt; +UpdateSSHTargetDetails.prototype['port'] = '22'; +/** + * ssh private key + * @member {String} private-key + */ +UpdateSSHTargetDetails.prototype['private-key'] = undefined; /** - * Constructs new long bits from the specified 8 characters long hash. - * @param {string} hash Hash - * @returns {util.LongBits} Bits + * The ssh private key password + * @member {String} private-key-password */ -LongBits.fromHash = function fromHash(hash) { - if (hash === zeroHash) - return zero; - return new LongBits( - ( charCodeAt.call(hash, 0) - | charCodeAt.call(hash, 1) << 8 - | charCodeAt.call(hash, 2) << 16 - | charCodeAt.call(hash, 3) << 24) >>> 0 - , - ( charCodeAt.call(hash, 4) - | charCodeAt.call(hash, 5) << 8 - | charCodeAt.call(hash, 6) << 16 - | charCodeAt.call(hash, 7) << 24) >>> 0 - ); -}; +UpdateSSHTargetDetails.prototype['private-key-password'] = undefined; /** - * Converts this long bits to a 8 characters long hash. - * @returns {string} Hash + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection_key */ -LongBits.prototype.toHash = function toHash() { - return String.fromCharCode( - this.lo & 255, - this.lo >>> 8 & 255, - this.lo >>> 16 & 255, - this.lo >>> 24 , - this.hi & 255, - this.hi >>> 8 & 255, - this.hi >>> 16 & 255, - this.hi >>> 24 - ); -}; +UpdateSSHTargetDetails.prototype['protection_key'] = undefined; /** - * Zig-zag encodes this long bits. - * @returns {util.LongBits} `this` + * ssh pawssword to rotate + * @member {String} ssh-password */ -LongBits.prototype.zzEncode = function zzEncode() { - var mask = this.hi >> 31; - this.hi = ((this.hi << 1 | this.lo >>> 31) ^ mask) >>> 0; - this.lo = ( this.lo << 1 ^ mask) >>> 0; - return this; -}; +UpdateSSHTargetDetails.prototype['ssh-password'] = undefined; /** - * Zig-zag decodes this long bits. - * @returns {util.LongBits} `this` + * ssh username + * @member {String} ssh-username */ -LongBits.prototype.zzDecode = function zzDecode() { - var mask = -(this.lo & 1); - this.lo = ((this.lo >>> 1 | this.hi << 31) ^ mask) >>> 0; - this.hi = ( this.hi >>> 1 ^ mask) >>> 0; - return this; -}; +UpdateSSHTargetDetails.prototype['ssh-username'] = undefined; /** - * Calculates the length of this longbits when encoded as a varint. - * @returns {number} Length + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ + +UpdateSSHTargetDetails.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -LongBits.prototype.length = function length() { - var part0 = this.lo, - part1 = (this.lo >>> 28 | this.hi << 4) >>> 0, - part2 = this.hi >>> 24; - return part2 === 0 - ? part1 === 0 - ? part0 < 16384 - ? part0 < 128 ? 1 : 2 - : part0 < 2097152 ? 3 : 4 - : part1 < 16384 - ? part1 < 128 ? 5 : 6 - : part1 < 2097152 ? 7 : 8 - : part2 < 128 ? 9 : 10; -}; +UpdateSSHTargetDetails.prototype['uid-token'] = undefined; +var _default = UpdateSSHTargetDetails; +exports["default"] = _default; /***/ }), -/***/ 22857: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 73931: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var util = exports; - -// used to return a Promise where callback is omitted -util.asPromise = __nccwpck_require__(92222); - -// converts to / from base64 encoded strings -util.base64 = __nccwpck_require__(25478); -// base class of rpc.Service -util.EventEmitter = __nccwpck_require__(32491); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -// float handling accross browsers -util.float = __nccwpck_require__(8597); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -// requires modules optionally and hides the call from bundlers -util.inquire = __nccwpck_require__(77206); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -// converts to / from utf8 encoded strings -util.utf8 = __nccwpck_require__(70958); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -// provides a node-like buffer pool in the browser -util.pool = __nccwpck_require__(56239); +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -// utility to work with the low and high bits of a 64 bit value -util.LongBits = __nccwpck_require__(70994); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Whether running within node or not. - * @memberof util - * @type {boolean} + * The UpdateSSHTargetOutput model module. + * @module model/UpdateSSHTargetOutput + * @version 3.6.3 */ -util.isNode = Boolean(typeof global !== "undefined" - && global - && global.process - && global.process.versions - && global.process.versions.node); +var UpdateSSHTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateSSHTargetOutput. + * @alias module:model/UpdateSSHTargetOutput + */ + function UpdateSSHTargetOutput() { + _classCallCheck(this, UpdateSSHTargetOutput); -/** - * Global object reference. - * @memberof util - * @type {Object} - */ -util.global = util.isNode && global - || typeof window !== "undefined" && window - || typeof self !== "undefined" && self - || this; // eslint-disable-line no-invalid-this + UpdateSSHTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/** - * An immuable empty array. - * @memberof util - * @type {Array.<*>} - * @const - */ -util.emptyArray = Object.freeze ? Object.freeze([]) : /* istanbul ignore next */ []; // used on prototypes -/** - * An immutable empty object. - * @type {Object} - * @const - */ -util.emptyObject = Object.freeze ? Object.freeze({}) : /* istanbul ignore next */ {}; // used on prototypes + _createClass(UpdateSSHTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateSSHTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateSSHTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateSSHTargetOutput} The populated UpdateSSHTargetOutput instance. + */ -/** - * Tests if the specified value is an integer. - * @function - * @param {*} value Value to test - * @returns {boolean} `true` if the value is an integer - */ -util.isInteger = Number.isInteger || /* istanbul ignore next */ function isInteger(value) { - return typeof value === "number" && isFinite(value) && Math.floor(value) === value; -}; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateSSHTargetOutput(); -/** - * Tests if the specified value is a string. - * @param {*} value Value to test - * @returns {boolean} `true` if the value is a string - */ -util.isString = function isString(value) { - return typeof value === "string" || value instanceof String; -}; + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } + } -/** - * Tests if the specified value is a non-null object. - * @param {*} value Value to test - * @returns {boolean} `true` if the value is a non-null object - */ -util.isObject = function isObject(value) { - return value && typeof value === "object"; -}; + return obj; + } + }]); + return UpdateSSHTargetOutput; +}(); /** - * Checks if a property on a message is considered to be present. - * This is an alias of {@link util.isSet}. - * @function - * @param {Object} obj Plain object or message instance - * @param {string} prop Property name - * @returns {boolean} `true` if considered to be present, otherwise `false` + * @member {Number} target_id */ -util.isset = -/** - * Checks if a property on a message is considered to be present. - * @param {Object} obj Plain object or message instance - * @param {string} prop Property name - * @returns {boolean} `true` if considered to be present, otherwise `false` - */ -util.isSet = function isSet(obj, prop) { - var value = obj[prop]; - if (value != null && obj.hasOwnProperty(prop)) // eslint-disable-line eqeqeq, no-prototype-builtins - return typeof value !== "object" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0; - return false; -}; -/** - * Any compatible Buffer instance. - * This is a minimal stand-alone definition of a Buffer instance. The actual type is that exported by node's typings. - * @interface Buffer - * @extends Uint8Array - */ +UpdateSSHTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateSSHTargetOutput; +exports["default"] = _default; + +/***/ }), + +/***/ 41539: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Node's Buffer class if available. - * @type {Constructor} + * The UpdateSalesforceTarget model module. + * @module model/UpdateSalesforceTarget + * @version 3.6.3 */ -util.Buffer = (function() { - try { - var Buffer = util.inquire("buffer").Buffer; - // refuse to use non-node buffers if not explicitly assigned (perf reasons): - return Buffer.prototype.utf8Write ? Buffer : /* istanbul ignore next */ null; - } catch (e) { - /* istanbul ignore next */ - return null; +var UpdateSalesforceTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateSalesforceTarget. + * @alias module:model/UpdateSalesforceTarget + * @param authFlow {String} type of the auth flow ('jwt' / 'user-password') + * @param clientId {String} Client ID of the oauth2 app to use for connecting to Salesforce + * @param email {String} The email of the user attached to the oauth2 app used for connecting to Salesforce + * @param name {String} Target name + * @param tenantUrl {String} Url of the Salesforce tenant + */ + function UpdateSalesforceTarget(authFlow, clientId, email, name, tenantUrl) { + _classCallCheck(this, UpdateSalesforceTarget); + + UpdateSalesforceTarget.initialize(this, authFlow, clientId, email, name, tenantUrl); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateSalesforceTarget, null, [{ + key: "initialize", + value: function initialize(obj, authFlow, clientId, email, name, tenantUrl) { + obj['auth-flow'] = authFlow; + obj['client-id'] = clientId; + obj['email'] = email; + obj['name'] = name; + obj['tenant-url'] = tenantUrl; } -})(); + /** + * Constructs a UpdateSalesforceTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateSalesforceTarget} obj Optional instance to populate. + * @return {module:model/UpdateSalesforceTarget} The populated UpdateSalesforceTarget instance. + */ -// Internal alias of or polyfull for Buffer.from. -util._Buffer_from = null; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateSalesforceTarget(); -// Internal alias of or polyfill for Buffer.allocUnsafe. -util._Buffer_allocUnsafe = null; + if (data.hasOwnProperty('app-private-key-data')) { + obj['app-private-key-data'] = _ApiClient["default"].convertToType(data['app-private-key-data'], 'String'); + } -/** - * Creates a new buffer of whatever type supported by the environment. - * @param {number|number[]} [sizeOrArray=0] Buffer size or number array - * @returns {Uint8Array|Buffer} Buffer - */ -util.newBuffer = function newBuffer(sizeOrArray) { - /* istanbul ignore next */ - return typeof sizeOrArray === "number" - ? util.Buffer - ? util._Buffer_allocUnsafe(sizeOrArray) - : new util.Array(sizeOrArray) - : util.Buffer - ? util._Buffer_from(sizeOrArray) - : typeof Uint8Array === "undefined" - ? sizeOrArray - : new Uint8Array(sizeOrArray); -}; + if (data.hasOwnProperty('auth-flow')) { + obj['auth-flow'] = _ApiClient["default"].convertToType(data['auth-flow'], 'String'); + } -/** - * Array implementation used in the browser. `Uint8Array` if supported, otherwise `Array`. - * @type {Constructor} - */ -util.Array = typeof Uint8Array !== "undefined" ? Uint8Array /* istanbul ignore next */ : Array; + if (data.hasOwnProperty('ca-cert-data')) { + obj['ca-cert-data'] = _ApiClient["default"].convertToType(data['ca-cert-data'], 'String'); + } -/** - * Any compatible Long instance. - * This is a minimal stand-alone definition of a Long instance. The actual type is that exported by long.js. - * @interface Long - * @property {number} low Low bits - * @property {number} high High bits - * @property {boolean} unsigned Whether unsigned or not - */ + if (data.hasOwnProperty('ca-cert-name')) { + obj['ca-cert-name'] = _ApiClient["default"].convertToType(data['ca-cert-name'], 'String'); + } -/** - * Long.js's Long class if available. - * @type {Constructor} - */ -util.Long = /* istanbul ignore next */ util.global.dcodeIO && /* istanbul ignore next */ util.global.dcodeIO.Long - || /* istanbul ignore next */ util.global.Long - || util.inquire("long"); + if (data.hasOwnProperty('client-id')) { + obj['client-id'] = _ApiClient["default"].convertToType(data['client-id'], 'String'); + } -/** - * Regular expression used to verify 2 bit (`bool`) map keys. - * @type {RegExp} - * @const - */ -util.key2Re = /^true|false|0|1$/; + if (data.hasOwnProperty('client-secret')) { + obj['client-secret'] = _ApiClient["default"].convertToType(data['client-secret'], 'String'); + } -/** - * Regular expression used to verify 32 bit (`int32` etc.) map keys. - * @type {RegExp} - * @const - */ -util.key32Re = /^-?(?:0|[1-9][0-9]*)$/; + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } -/** - * Regular expression used to verify 64 bit (`int64` etc.) map keys. - * @type {RegExp} - * @const - */ -util.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/; + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } -/** - * Converts a number or long to an 8 characters long hash string. - * @param {Long|number} value Value to convert - * @returns {string} Hash - */ -util.longToHash = function longToHash(value) { - return value - ? util.LongBits.from(value).toHash() - : util.LongBits.zeroHash; -}; + if (data.hasOwnProperty('email')) { + obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); + } -/** - * Converts an 8 characters long hash string to a long or number. - * @param {string} hash Hash - * @param {boolean} [unsigned=false] Whether unsigned or not - * @returns {Long|number} Original value - */ -util.longFromHash = function longFromHash(hash, unsigned) { - var bits = util.LongBits.fromHash(hash); - if (util.Long) - return util.Long.fromBits(bits.lo, bits.hi, unsigned); - return bits.toNumber(Boolean(unsigned)); -}; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/** - * Merges the properties of the source object into the destination object. - * @memberof util - * @param {Object.} dst Destination object - * @param {Object.} src Source object - * @param {boolean} [ifNotSet=false] Merges only if the key is not already set - * @returns {Object.} Destination object - */ -function merge(dst, src, ifNotSet) { // used by converters - for (var keys = Object.keys(src), i = 0; i < keys.length; ++i) - if (dst[keys[i]] === undefined || !ifNotSet) - dst[keys[i]] = src[keys[i]]; - return dst; -} + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } -util.merge = merge; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } -/** - * Converts the first character of a string to lower case. - * @param {string} str String to convert - * @returns {string} Converted string - */ -util.lcFirst = function lcFirst(str) { - return str.charAt(0).toLowerCase() + str.substring(1); -}; + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -/** - * Creates a custom error constructor. - * @memberof util - * @param {string} name Error name - * @returns {Constructor} Custom error constructor - */ -function newError(name) { + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - function CustomError(message, properties) { + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - if (!(this instanceof CustomError)) - return new CustomError(message, properties); + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } - // Error.call(this, message); - // ^ just returns a new error instance because the ctor can be called as a function + if (data.hasOwnProperty('security-token')) { + obj['security-token'] = _ApiClient["default"].convertToType(data['security-token'], 'String'); + } - Object.defineProperty(this, "message", { get: function() { return message; } }); + if (data.hasOwnProperty('tenant-url')) { + obj['tenant-url'] = _ApiClient["default"].convertToType(data['tenant-url'], 'String'); + } - /* istanbul ignore next */ - if (Error.captureStackTrace) // node - Error.captureStackTrace(this, CustomError); - else - Object.defineProperty(this, "stack", { value: new Error().stack || "" }); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - if (properties) - merge(this, properties); - } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } - CustomError.prototype = Object.create(Error.prototype, { - constructor: { - value: CustomError, - writable: true, - enumerable: false, - configurable: true, - }, - name: { - get: function get() { return name; }, - set: undefined, - enumerable: false, - // configurable: false would accurately preserve the behavior of - // the original, but I'm guessing that was not intentional. - // For an actual error subclass, this property would - // be configurable. - configurable: true, - }, - toString: { - value: function value() { return this.name + ": " + this.message; }, - writable: true, - enumerable: false, - configurable: true, - }, - }); + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + } - return CustomError; -} + return obj; + } + }]); + + return UpdateSalesforceTarget; +}(); +/** + * Base64 encoded PEM of the connected app private key (relevant for JWT auth only) + * @member {String} app-private-key-data + */ -util.newError = newError; +UpdateSalesforceTarget.prototype['app-private-key-data'] = undefined; /** - * Constructs a new protocol error. - * @classdesc Error subclass indicating a protocol specifc error. - * @memberof util - * @extends Error - * @template T extends Message - * @constructor - * @param {string} message Error message - * @param {Object.} [properties] Additional properties - * @example - * try { - * MyMessage.decode(someBuffer); // throws if required fields are missing - * } catch (e) { - * if (e instanceof ProtocolError && e.instance) - * console.log("decoded so far: " + JSON.stringify(e.instance)); - * } + * type of the auth flow ('jwt' / 'user-password') + * @member {String} auth-flow */ -util.ProtocolError = newError("ProtocolError"); +UpdateSalesforceTarget.prototype['auth-flow'] = undefined; /** - * So far decoded message instance. - * @name util.ProtocolError#instance - * @type {Message} + * Base64 encoded PEM cert to use when uploading a new key to Salesforce + * @member {String} ca-cert-data */ +UpdateSalesforceTarget.prototype['ca-cert-data'] = undefined; /** - * A OneOf getter as returned by {@link util.oneOfGetter}. - * @typedef OneOfGetter - * @type {function} - * @returns {string|undefined} Set field name, if any + * name of the certificate in Salesforce tenant to use when uploading new key + * @member {String} ca-cert-name */ +UpdateSalesforceTarget.prototype['ca-cert-name'] = undefined; /** - * Builds a getter for a oneof's present field name. - * @param {string[]} fieldNames Field names - * @returns {OneOfGetter} Unbound getter + * Client ID of the oauth2 app to use for connecting to Salesforce + * @member {String} client-id */ -util.oneOfGetter = function getOneOf(fieldNames) { - var fieldMap = {}; - for (var i = 0; i < fieldNames.length; ++i) - fieldMap[fieldNames[i]] = 1; - - /** - * @returns {string|undefined} Set field name, if any - * @this Object - * @ignore - */ - return function() { // eslint-disable-line consistent-return - for (var keys = Object.keys(this), i = keys.length - 1; i > -1; --i) - if (fieldMap[keys[i]] === 1 && this[keys[i]] !== undefined && this[keys[i]] !== null) - return keys[i]; - }; -}; +UpdateSalesforceTarget.prototype['client-id'] = undefined; /** - * A OneOf setter as returned by {@link util.oneOfSetter}. - * @typedef OneOfSetter - * @type {function} - * @param {string|undefined} value Field name - * @returns {undefined} + * Client secret of the oauth2 app to use for connecting to Salesforce (required for password flow) + * @member {String} client-secret */ +UpdateSalesforceTarget.prototype['client-secret'] = undefined; /** - * Builds a setter for a oneof's present field name. - * @param {string[]} fieldNames Field names - * @returns {OneOfSetter} Unbound setter + * Deprecated - use description + * @member {String} comment */ -util.oneOfSetter = function setOneOf(fieldNames) { - /** - * @param {string} name Field name - * @returns {undefined} - * @this Object - * @ignore - */ - return function(name) { - for (var i = 0; i < fieldNames.length; ++i) - if (fieldNames[i] !== name) - delete this[fieldNames[i]]; - }; -}; +UpdateSalesforceTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ +UpdateSalesforceTarget.prototype['description'] = undefined; /** - * Default conversion options used for {@link Message#toJSON} implementations. - * - * These options are close to proto3's JSON mapping with the exception that internal types like Any are handled just like messages. More precisely: - * - * - Longs become strings - * - Enums become string keys - * - Bytes become base64 encoded strings - * - (Sub-)Messages become plain objects - * - Maps become plain objects with all string keys - * - Repeated fields become arrays - * - NaN and Infinity for float and double fields become strings - * - * @type {IConversionOptions} - * @see https://developers.google.com/protocol-buffers/docs/proto3?hl=en#json + * The email of the user attached to the oauth2 app used for connecting to Salesforce + * @member {String} email */ -util.toJSONOptions = { - longs: String, - enums: String, - bytes: String, - json: true -}; -// Sets up buffer utility according to the environment (called in index-minimal) -util._configure = function() { - var Buffer = util.Buffer; - /* istanbul ignore if */ - if (!Buffer) { - util._Buffer_from = util._Buffer_allocUnsafe = null; - return; - } - // because node 4.x buffers are incompatible & immutable - // see: https://github.com/dcodeIO/protobuf.js/pull/665 - util._Buffer_from = Buffer.from !== Uint8Array.from && Buffer.from || - /* istanbul ignore next */ - function Buffer_from(value, encoding) { - return new Buffer(value, encoding); - }; - util._Buffer_allocUnsafe = Buffer.allocUnsafe || - /* istanbul ignore next */ - function Buffer_allocUnsafe(size) { - return new Buffer(size); - }; -}; +UpdateSalesforceTarget.prototype['email'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ +UpdateSalesforceTarget.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -/***/ }), +UpdateSalesforceTarget.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -/***/ 7639: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +UpdateSalesforceTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -"use strict"; +UpdateSalesforceTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ -module.exports = verifier; +UpdateSalesforceTarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ -var Enum = __nccwpck_require__(73528), - util = __nccwpck_require__(39609); +UpdateSalesforceTarget.prototype['new-name'] = undefined; +/** + * The password of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow) + * @member {String} password + */ -function invalid(field, expected) { - return field.name + ": " + expected + (field.repeated && expected !== "array" ? "[]" : field.map && expected !== "object" ? "{k:"+field.keyType+"}" : "") + " expected"; -} +UpdateSalesforceTarget.prototype['password'] = undefined; +/** + * The security token of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow) + * @member {String} security-token + */ +UpdateSalesforceTarget.prototype['security-token'] = undefined; /** - * Generates a partial value verifier. - * @param {Codegen} gen Codegen instance - * @param {Field} field Reflected field - * @param {number} fieldIndex Field index - * @param {string} ref Variable reference - * @returns {Codegen} Codegen instance - * @ignore + * Url of the Salesforce tenant + * @member {String} tenant-url */ -function genVerifyValue(gen, field, fieldIndex, ref) { - /* eslint-disable no-unexpected-multiline */ - if (field.resolvedType) { - if (field.resolvedType instanceof Enum) { gen - ("switch(%s){", ref) - ("default:") - ("return%j", invalid(field, "enum value")); - for (var keys = Object.keys(field.resolvedType.values), j = 0; j < keys.length; ++j) gen - ("case %i:", field.resolvedType.values[keys[j]]); - gen - ("break") - ("}"); - } else { - gen - ("{") - ("var e=types[%i].verify(%s);", fieldIndex, ref) - ("if(e)") - ("return%j+e", field.name + ".") - ("}"); - } - } else { - switch (field.type) { - case "int32": - case "uint32": - case "sint32": - case "fixed32": - case "sfixed32": gen - ("if(!util.isInteger(%s))", ref) - ("return%j", invalid(field, "integer")); - break; - case "int64": - case "uint64": - case "sint64": - case "fixed64": - case "sfixed64": gen - ("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))", ref, ref, ref, ref) - ("return%j", invalid(field, "integer|Long")); - break; - case "float": - case "double": gen - ("if(typeof %s!==\"number\")", ref) - ("return%j", invalid(field, "number")); - break; - case "bool": gen - ("if(typeof %s!==\"boolean\")", ref) - ("return%j", invalid(field, "boolean")); - break; - case "string": gen - ("if(!util.isString(%s))", ref) - ("return%j", invalid(field, "string")); - break; - case "bytes": gen - ("if(!(%s&&typeof %s.length===\"number\"||util.isString(%s)))", ref, ref, ref) - ("return%j", invalid(field, "buffer")); - break; - } - } - return gen; - /* eslint-enable no-unexpected-multiline */ -} +UpdateSalesforceTarget.prototype['tenant-url'] = undefined; /** - * Generates a partial key verifier. - * @param {Codegen} gen Codegen instance - * @param {Field} field Reflected field - * @param {string} ref Variable reference - * @returns {Codegen} Codegen instance - * @ignore + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -function genVerifyKey(gen, field, ref) { - /* eslint-disable no-unexpected-multiline */ - switch (field.keyType) { - case "int32": - case "uint32": - case "sint32": - case "fixed32": - case "sfixed32": gen - ("if(!util.key32Re.test(%s))", ref) - ("return%j", invalid(field, "integer key")); - break; - case "int64": - case "uint64": - case "sint64": - case "fixed64": - case "sfixed64": gen - ("if(!util.key64Re.test(%s))", ref) // see comment above: x is ok, d is not - ("return%j", invalid(field, "integer|Long key")); - break; - case "bool": gen - ("if(!util.key2Re.test(%s))", ref) - ("return%j", invalid(field, "boolean key")); - break; - } - return gen; - /* eslint-enable no-unexpected-multiline */ -} +UpdateSalesforceTarget.prototype['token'] = undefined; /** - * Generates a verifier specific to the specified message type. - * @param {Type} mtype Message type - * @returns {Codegen} Codegen instance + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -function verifier(mtype) { - /* eslint-disable no-unexpected-multiline */ - var gen = util.codegen(["m"], mtype.name + "$verify") - ("if(typeof m!==\"object\"||m===null)") - ("return%j", "object expected"); - var oneofs = mtype.oneofsArray, - seenFirstField = {}; - if (oneofs.length) gen - ("var p={}"); +UpdateSalesforceTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ - for (var i = 0; i < /* initializes */ mtype.fieldsArray.length; ++i) { - var field = mtype._fieldsArray[i].resolve(), - ref = "m" + util.safeProp(field.name); +UpdateSalesforceTarget.prototype['update-version'] = undefined; +var _default = UpdateSalesforceTarget; +exports["default"] = _default; - if (field.optional) gen - ("if(%s!=null&&m.hasOwnProperty(%j)){", ref, field.name); // !== undefined && !== null +/***/ }), - // map fields - if (field.map) { gen - ("if(!util.isObject(%s))", ref) - ("return%j", invalid(field, "object")) - ("var k=Object.keys(%s)", ref) - ("for(var i=0;i { - // repeated fields - } else if (field.repeated) { gen - ("if(!Array.isArray(%s))", ref) - ("return%j", invalid(field, "array")) - ("for(var i=0;i<%s.length;++i){", ref); - genVerifyValue(gen, field, i, ref + "[i]") - ("}"); +"use strict"; - // required or present fields - } else { - if (field.partOf) { - var oneofProp = util.safeProp(field.partOf.name); - if (seenFirstField[field.partOf.name] === 1) gen - ("if(p%s===1)", oneofProp) - ("return%j", field.partOf.name + ": multiple values"); - seenFirstField[field.partOf.name] = 1; - gen - ("p%s=1", oneofProp); - } - genVerifyValue(gen, field, i, ref); - } - if (field.optional) gen - ("}"); - } - return gen - ("return null"); - /* eslint-enable no-unexpected-multiline */ -} -/***/ }), +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -/***/ 59781: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -"use strict"; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/** - * Wrappers for common types. - * @type {Object.} - * @const - */ -var wrappers = exports; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var Message = __nccwpck_require__(69450); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * From object converter part of an {@link IWrapper}. - * @typedef WrapperFromObjectConverter - * @type {function} - * @param {Object.} object Plain object - * @returns {Message<{}>} Message instance - * @this Type + * The UpdateSalesforceTargetOutput model module. + * @module model/UpdateSalesforceTargetOutput + * @version 3.6.3 */ +var UpdateSalesforceTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateSalesforceTargetOutput. + * @alias module:model/UpdateSalesforceTargetOutput + */ + function UpdateSalesforceTargetOutput() { + _classCallCheck(this, UpdateSalesforceTargetOutput); -/** - * To object converter part of an {@link IWrapper}. - * @typedef WrapperToObjectConverter - * @type {function} - * @param {Message<{}>} message Message instance - * @param {IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - * @this Type - */ + UpdateSalesforceTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -/** - * Common type wrapper part of {@link wrappers}. - * @interface IWrapper - * @property {WrapperFromObjectConverter} [fromObject] From object converter - * @property {WrapperToObjectConverter} [toObject] To object converter - */ -// Custom wrapper for Any -wrappers[".google.protobuf.Any"] = { + _createClass(UpdateSalesforceTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateSalesforceTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateSalesforceTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateSalesforceTargetOutput} The populated UpdateSalesforceTargetOutput instance. + */ - fromObject: function(object) { + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateSalesforceTargetOutput(); - // unwrap value type if mapped - if (object && object["@type"]) { - // Only use fully qualified type name after the last '/' - var name = object["@type"].substring(object["@type"].lastIndexOf("/") + 1); - var type = this.lookup(name); - /* istanbul ignore else */ - if (type) { - // type_url does not accept leading "." - var type_url = object["@type"].charAt(0) === "." ? - object["@type"].slice(1) : object["@type"]; - // type_url prefix is optional, but path seperator is required - if (type_url.indexOf("/") === -1) { - type_url = "/" + type_url; - } - return this.create({ - type_url: type_url, - value: type.encode(type.fromObject(object)).finish() - }); - } + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); } + } - return this.fromObject(object); - }, + return obj; + } + }]); - toObject: function(message, options) { + return UpdateSalesforceTargetOutput; +}(); +/** + * @member {Number} target_id + */ - // Default prefix - var googleApi = "type.googleapis.com/"; - var prefix = ""; - var name = ""; - // decode value if requested and unmapped - if (options && options.json && message.type_url && message.value) { - // Only use fully qualified type name after the last '/' - name = message.type_url.substring(message.type_url.lastIndexOf("/") + 1); - // Separate the prefix used - prefix = message.type_url.substring(0, message.type_url.lastIndexOf("/") + 1); - var type = this.lookup(name); - /* istanbul ignore else */ - if (type) - message = type.decode(message.value); - } +UpdateSalesforceTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateSalesforceTargetOutput; +exports["default"] = _default; - // wrap value if unmapped - if (!(message instanceof this.ctor) && message instanceof Message) { - var object = message.$type.toObject(message, options); - var messageName = message.$type.fullName[0] === "." ? - message.$type.fullName.slice(1) : message.$type.fullName; - // Default to type.googleapis.com prefix if no prefix is used - if (prefix === "") { - prefix = googleApi; - } - name = prefix + messageName; - object["@type"] = name; - return object; - } +/***/ }), - return this.toObject(message, options); - } -}; +/***/ 89102: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +"use strict"; -/***/ }), -/***/ 33654: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -"use strict"; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -module.exports = Writer; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var util = __nccwpck_require__(22857); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var BufferWriter; // cyclic +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var LongBits = util.LongBits, - base64 = util.base64, - utf8 = util.utf8; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Constructs a new writer operation instance. - * @classdesc Scheduled writer operation. - * @constructor - * @param {function(*, Uint8Array, number)} fn Function to call - * @param {number} len Value byte length - * @param {*} val Value to write - * @ignore + * The UpdateSecretVal model module. + * @module model/UpdateSecretVal + * @version 3.6.3 */ -function Op(fn, len, val) { - - /** - * Function to call. - * @type {function(Uint8Array, number, *)} - */ - this.fn = fn; +var UpdateSecretVal = /*#__PURE__*/function () { + /** + * Constructs a new UpdateSecretVal. + * @alias module:model/UpdateSecretVal + * @param name {String} Secret name + * @param value {String} The secret value (relevant only for type 'generic') + */ + function UpdateSecretVal(name, value) { + _classCallCheck(this, UpdateSecretVal); - /** - * Value byte length. - * @type {number} - */ - this.len = len; + UpdateSecretVal.initialize(this, name, value); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - /** - * Next operation. - * @type {Writer.Op|undefined} - */ - this.next = undefined; + _createClass(UpdateSecretVal, null, [{ + key: "initialize", + value: function initialize(obj, name, value) { + obj['name'] = name; + obj['value'] = value; + } /** - * Value to write. - * @type {*} + * Constructs a UpdateSecretVal from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateSecretVal} obj Optional instance to populate. + * @return {module:model/UpdateSecretVal} The populated UpdateSecretVal instance. */ - this.val = val; // type varies -} - -/* istanbul ignore next */ -function noop() {} // eslint-disable-line no-empty-function -/** - * Constructs a new writer state instance. - * @classdesc Copied writer state. - * @memberof Writer - * @constructor - * @param {Writer} writer Writer to copy state from - * @ignore - */ -function State(writer) { + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateSecretVal(); - /** - * Current head. - * @type {Writer.Op} - */ - this.head = writer.head; + if (data.hasOwnProperty('accessibility')) { + obj['accessibility'] = _ApiClient["default"].convertToType(data['accessibility'], 'String'); + } - /** - * Current tail. - * @type {Writer.Op} - */ - this.tail = writer.tail; + if (data.hasOwnProperty('custom-field')) { + obj['custom-field'] = _ApiClient["default"].convertToType(data['custom-field'], { + 'String': 'String' + }); + } - /** - * Current buffer length. - * @type {number} - */ - this.len = writer.len; + if (data.hasOwnProperty('format')) { + obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); + } - /** - * Next state. - * @type {State|null} - */ - this.next = writer.states; -} + if (data.hasOwnProperty('inject-url')) { + obj['inject-url'] = _ApiClient["default"].convertToType(data['inject-url'], ['String']); + } -/** - * Constructs a new writer instance. - * @classdesc Wire format writer using `Uint8Array` if available, otherwise `Array`. - * @constructor - */ -function Writer() { + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - /** - * Current length. - * @type {number} - */ - this.len = 0; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - /** - * Operations head. - * @type {Object} - */ - this.head = new Op(noop, 0, 0); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - /** - * Operations tail - * @type {Object} - */ - this.tail = this.head; + if (data.hasOwnProperty('last-version')) { + obj['last-version'] = _ApiClient["default"].convertToType(data['last-version'], 'Number'); + } - /** - * Linked forked states. - * @type {Object|null} - */ - this.states = null; + if (data.hasOwnProperty('multiline')) { + obj['multiline'] = _ApiClient["default"].convertToType(data['multiline'], 'Boolean'); + } - // When a value is written, the writer calculates its byte length and puts it into a linked - // list of operations to perform when finish() is called. This both allows us to allocate - // buffers of the exact required size and reduces the amount of work we have to do compared - // to first calculating over objects and then encoding over objects. In our case, the encoding - // part is just a linked list walk calling operations with already prepared values. -} + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -var create = function create() { - return util.Buffer - ? function create_buffer_setup() { - return (Writer.create = function create_buffer() { - return new BufferWriter(); - })(); + if (data.hasOwnProperty('new-version')) { + obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); } - /* istanbul ignore next */ - : function create_array() { - return new Writer(); - }; -}; -/** - * Creates a new writer. - * @function - * @returns {BufferWriter|Writer} A {@link BufferWriter} when Buffers are supported, otherwise a {@link Writer} - */ -Writer.create = create(); + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } -/** - * Allocates a buffer of the specified size. - * @param {number} size Buffer size - * @returns {Uint8Array} Buffer - */ -Writer.alloc = function alloc(size) { - return new util.Array(size); -}; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } -// Use Uint8Array buffer pool in the browser, just like node does with buffers -/* istanbul ignore else */ -if (util.Array !== Array) - Writer.alloc = util.pool(Writer.alloc, util.Array.prototype.subarray); + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } -/** - * Pushes a new operation to the queue. - * @param {function(Uint8Array, number, *)} fn Function to call - * @param {number} len Value byte length - * @param {number} val Value to write - * @returns {Writer} `this` - * @private - */ -Writer.prototype._push = function push(fn, len, val) { - this.tail = this.tail.next = new Op(fn, len, val); - this.len += len; - return this; -}; + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } -function writeByte(val, buf, pos) { - buf[pos] = val & 255; -} + if (data.hasOwnProperty('value')) { + obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String'); + } + } -function writeVarint32(val, buf, pos) { - while (val > 127) { - buf[pos++] = val & 127 | 128; - val >>>= 7; + return obj; } - buf[pos] = val; -} + }]); + return UpdateSecretVal; +}(); /** - * Constructs a new varint writer operation instance. - * @classdesc Scheduled varint writer operation. - * @extends Op - * @constructor - * @param {number} len Value byte length - * @param {number} val Value to write - * @ignore + * for personal password manager + * @member {String} accessibility + * @default 'regular' */ -function VarintOp(len, val) { - this.len = len; - this.next = undefined; - this.val = val; -} -VarintOp.prototype = Object.create(Op.prototype); -VarintOp.prototype.fn = writeVarint32; +UpdateSecretVal.prototype['accessibility'] = 'regular'; /** - * Writes an unsigned 32 bit value as a varint. - * @param {number} value Value to write - * @returns {Writer} `this` + * For Password Management use, additional fields + * @member {Object.} custom-field */ -Writer.prototype.uint32 = function write_uint32(value) { - // here, the call to this.push has been inlined and a varint specific Op subclass is used. - // uint32 is by far the most frequently used operation and benefits significantly from this. - this.len += (this.tail = this.tail.next = new VarintOp( - (value = value >>> 0) - < 128 ? 1 - : value < 16384 ? 2 - : value < 2097152 ? 3 - : value < 268435456 ? 4 - : 5, - value)).len; - return this; -}; +UpdateSecretVal.prototype['custom-field'] = undefined; /** - * Writes a signed 32 bit value as a varint. - * @function - * @param {number} value Value to write - * @returns {Writer} `this` + * Secret format [text/json] (relevant only for type 'generic') + * @member {String} format + * @default 'text' */ -Writer.prototype.int32 = function write_int32(value) { - return value < 0 - ? this._push(writeVarint64, 10, LongBits.fromNumber(value)) // 10 bytes per spec - : this.uint32(value); -}; +UpdateSecretVal.prototype['format'] = 'text'; /** - * Writes a 32 bit value as a varint, zig-zag encoded. - * @param {number} value Value to write - * @returns {Writer} `this` + * For Password Management use, reflect the website context + * @member {Array.} inject-url */ -Writer.prototype.sint32 = function write_sint32(value) { - return this.uint32((value << 1 ^ value >> 31) >>> 0); -}; - -function writeVarint64(val, buf, pos) { - while (val.hi) { - buf[pos++] = val.lo & 127 | 128; - val.lo = (val.lo >>> 7 | val.hi << 25) >>> 0; - val.hi >>>= 7; - } - while (val.lo > 127) { - buf[pos++] = val.lo & 127 | 128; - val.lo = val.lo >>> 7; - } - buf[pos++] = val.lo; -} +UpdateSecretVal.prototype['inject-url'] = undefined; /** - * Writes an unsigned 64 bit value as a varint. - * @param {Long|number|string} value Value to write - * @returns {Writer} `this` - * @throws {TypeError} If `value` is a string and no long library is present. + * Set output format to JSON + * @member {Boolean} json + * @default false */ -Writer.prototype.uint64 = function write_uint64(value) { - var bits = LongBits.from(value); - return this._push(writeVarint64, bits.length(), bits); -}; +UpdateSecretVal.prototype['json'] = false; /** - * Writes a signed 64 bit value as a varint. - * @function - * @param {Long|number|string} value Value to write - * @returns {Writer} `this` - * @throws {TypeError} If `value` is a string and no long library is present. + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version */ -Writer.prototype.int64 = Writer.prototype.uint64; +UpdateSecretVal.prototype['keep-prev-version'] = undefined; /** - * Writes a signed 64 bit value as a varint, zig-zag encoded. - * @param {Long|number|string} value Value to write - * @returns {Writer} `this` - * @throws {TypeError} If `value` is a string and no long library is present. + * The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used) + * @member {String} key */ -Writer.prototype.sint64 = function write_sint64(value) { - var bits = LongBits.from(value).zzEncode(); - return this._push(writeVarint64, bits.length(), bits); -}; +UpdateSecretVal.prototype['key'] = undefined; /** - * Writes a boolish value as a varint. - * @param {boolean} value Value to write - * @returns {Writer} `this` + * The last version number before the update + * @member {Number} last-version */ -Writer.prototype.bool = function write_bool(value) { - return this._push(writeByte, 1, value ? 1 : 0); -}; - -function writeFixed32(val, buf, pos) { - buf[pos ] = val & 255; - buf[pos + 1] = val >>> 8 & 255; - buf[pos + 2] = val >>> 16 & 255; - buf[pos + 3] = val >>> 24; -} +UpdateSecretVal.prototype['last-version'] = undefined; /** - * Writes an unsigned 32 bit value as fixed 32 bits. - * @param {number} value Value to write - * @returns {Writer} `this` + * The provided value is a multiline value (separated by '\\n') + * @member {Boolean} multiline */ -Writer.prototype.fixed32 = function write_fixed32(value) { - return this._push(writeFixed32, 4, value >>> 0); -}; +UpdateSecretVal.prototype['multiline'] = undefined; /** - * Writes a signed 32 bit value as fixed 32 bits. - * @function - * @param {number} value Value to write - * @returns {Writer} `this` + * Secret name + * @member {String} name */ -Writer.prototype.sfixed32 = Writer.prototype.fixed32; +UpdateSecretVal.prototype['name'] = undefined; /** - * Writes an unsigned 64 bit value as fixed 64 bits. - * @param {Long|number|string} value Value to write - * @returns {Writer} `this` - * @throws {TypeError} If `value` is a string and no long library is present. + * Deprecated + * @member {Boolean} new-version */ -Writer.prototype.fixed64 = function write_fixed64(value) { - var bits = LongBits.from(value); - return this._push(writeFixed32, 4, bits.lo)._push(writeFixed32, 4, bits.hi); -}; +UpdateSecretVal.prototype['new-version'] = undefined; /** - * Writes a signed 64 bit value as fixed 64 bits. - * @function - * @param {Long|number|string} value Value to write - * @returns {Writer} `this` - * @throws {TypeError} If `value` is a string and no long library is present. + * For Password Management use, additional fields + * @member {String} password */ -Writer.prototype.sfixed64 = Writer.prototype.fixed64; +UpdateSecretVal.prototype['password'] = undefined; /** - * Writes a float (32 bit). - * @function - * @param {number} value Value to write - * @returns {Writer} `this` + * Authentication token (see `/auth` and `/configure`) + * @member {String} token */ -Writer.prototype.float = function write_float(value) { - return this._push(util.float.writeFloatLE, 4, value); -}; +UpdateSecretVal.prototype['token'] = undefined; /** - * Writes a double (64 bit float). - * @function - * @param {number} value Value to write - * @returns {Writer} `this` + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token */ -Writer.prototype.double = function write_double(value) { - return this._push(util.float.writeDoubleLE, 8, value); -}; - -var writeBytes = util.Array.prototype.set - ? function writeBytes_set(val, buf, pos) { - buf.set(val, pos); // also works for plain array values - } - /* istanbul ignore next */ - : function writeBytes_for(val, buf, pos) { - for (var i = 0; i < val.length; ++i) - buf[pos + i] = val[i]; - }; +UpdateSecretVal.prototype['uid-token'] = undefined; /** - * Writes a sequence of bytes. - * @param {Uint8Array|string} value Buffer or base64 encoded string to write - * @returns {Writer} `this` + * For Password Management use + * @member {String} username */ -Writer.prototype.bytes = function write_bytes(value) { - var len = value.length >>> 0; - if (!len) - return this._push(writeByte, 1, 0); - if (util.isString(value)) { - var buf = Writer.alloc(len = base64.length(value)); - base64.decode(value, buf, 0); - value = buf; - } - return this.uint32(len)._push(writeBytes, len, value); -}; +UpdateSecretVal.prototype['username'] = undefined; /** - * Writes a string. - * @param {string} value Value to write - * @returns {Writer} `this` + * The secret value (relevant only for type 'generic') + * @member {String} value */ -Writer.prototype.string = function write_string(value) { - var len = utf8.length(value); - return len - ? this.uint32(len)._push(utf8.write, len, value) - : this._push(writeByte, 1, 0); -}; -/** - * Forks this writer's state by pushing it to a stack. - * Calling {@link Writer#reset|reset} or {@link Writer#ldelim|ldelim} resets the writer to the previous state. - * @returns {Writer} `this` - */ -Writer.prototype.fork = function fork() { - this.states = new State(this); - this.head = this.tail = new Op(noop, 0, 0); - this.len = 0; - return this; -}; +UpdateSecretVal.prototype['value'] = undefined; +var _default = UpdateSecretVal; +exports["default"] = _default; + +/***/ }), + +/***/ 30427: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Resets this instance to the last state. - * @returns {Writer} `this` + * The UpdateSecretValOutput model module. + * @module model/UpdateSecretValOutput + * @version 3.6.3 */ -Writer.prototype.reset = function reset() { - if (this.states) { - this.head = this.states.head; - this.tail = this.states.tail; - this.len = this.states.len; - this.states = this.states.next; - } else { - this.head = this.tail = new Op(noop, 0, 0); - this.len = 0; - } - return this; -}; +var UpdateSecretValOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateSecretValOutput. + * @alias module:model/UpdateSecretValOutput + */ + function UpdateSecretValOutput() { + _classCallCheck(this, UpdateSecretValOutput); + + UpdateSecretValOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateSecretValOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateSecretValOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateSecretValOutput} obj Optional instance to populate. + * @return {module:model/UpdateSecretValOutput} The populated UpdateSecretValOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateSecretValOutput(); + + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } -/** - * Resets to the last state and appends the fork state's current write length as a varint followed by its operations. - * @returns {Writer} `this` - */ -Writer.prototype.ldelim = function ldelim() { - var head = this.head, - tail = this.tail, - len = this.len; - this.reset().uint32(len); - if (len) { - this.tail.next = head.next; // skip noop - this.tail = tail; - this.len += len; + return obj; } - return this; -}; + }]); + return UpdateSecretValOutput; +}(); /** - * Finishes the write operation. - * @returns {Uint8Array} Finished buffer + * @member {String} name */ -Writer.prototype.finish = function finish() { - var head = this.head.next, // skip noop - buf = this.constructor.alloc(this.len), - pos = 0; - while (head) { - head.fn(head.val, buf, pos); - pos += head.len; - head = head.next; - } - // this.head = this.tail = null; - return buf; -}; -Writer._configure = function(BufferWriter_) { - BufferWriter = BufferWriter_; - Writer.create = create(); - BufferWriter._configure(); -}; +UpdateSecretValOutput.prototype['name'] = undefined; +var _default = UpdateSecretValOutput; +exports["default"] = _default; /***/ }), -/***/ 3751: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 30092: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -module.exports = BufferWriter; -// extends Writer -var Writer = __nccwpck_require__(33654); -(BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var util = __nccwpck_require__(22857); +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } /** - * Constructs a new buffer writer instance. - * @classdesc Wire format writer using node buffers. - * @extends Writer - * @constructor + * The UpdateTarget model module. + * @module model/UpdateTarget + * @version 3.6.3 */ -function BufferWriter() { - Writer.call(this); -} +var UpdateTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateTarget. + * @alias module:model/UpdateTarget + * @param name {String} Target name + */ + function UpdateTarget(name) { + _classCallCheck(this, UpdateTarget); -BufferWriter._configure = function () { + UpdateTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + + + _createClass(UpdateTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } /** - * Allocates a buffer of the specified size. - * @function - * @param {number} size Buffer size - * @returns {Buffer} Buffer + * Constructs a UpdateTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateTarget} obj Optional instance to populate. + * @return {module:model/UpdateTarget} The populated UpdateTarget instance. */ - BufferWriter.alloc = util._Buffer_allocUnsafe; - BufferWriter.writeBytesBuffer = util.Buffer && util.Buffer.prototype instanceof Uint8Array && util.Buffer.prototype.set.name === "set" - ? function writeBytesBuffer_set(val, buf, pos) { - buf.set(val, pos); // faster than copy (requires node >= 4 where Buffers extend Uint8Array and set is properly inherited) - // also works for plain array values + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateTarget(); + + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - /* istanbul ignore next */ - : function writeBytesBuffer_copy(val, buf, pos) { - if (val.copy) // Buffer values - val.copy(buf, pos, 0, val.length); - else for (var i = 0; i < val.length;) // plain array values - buf[pos++] = val[i++]; - }; -}; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } -/** - * @override - */ -BufferWriter.prototype.bytes = function write_bytes_buffer(value) { - if (util.isString(value)) - value = util._Buffer_from(value, "base64"); - var len = value.length >>> 0; - this.uint32(len); - if (len) - this._push(BufferWriter.writeBytesBuffer, len, value); - return this; -}; + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } -function writeStringBuffer(val, buf, pos) { - if (val.length < 40) // plain js is faster for short strings (probably due to redundant assertions) - util.utf8.write(val, buf, pos); - else if (buf.utf8Write) - buf.utf8Write(val, pos); - else - buf.write(val, pos); -} + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } -/** - * @override - */ -BufferWriter.prototype.string = function write_string_buffer(value) { - var len = util.Buffer.byteLength(value); - this.uint32(len); - if (len) - this._push(writeStringBuffer, len, value); - return this; -}; + if (data.hasOwnProperty('new-comment')) { + obj['new-comment'] = _ApiClient["default"].convertToType(data['new-comment'], 'String'); + } + + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } + + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } + } + return obj; + } + }]); + return UpdateTarget; +}(); /** - * Finishes the write operation. - * @name BufferWriter#finish - * @function - * @returns {Buffer} Finished buffer + * Description of the object + * @member {String} description + * @default 'default_comment' */ -BufferWriter._configure(); - -/***/ }), +UpdateTarget.prototype['description'] = 'default_comment'; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -/***/ 86032: -/***/ ((module) => { +UpdateTarget.prototype['json'] = false; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -"use strict"; +UpdateTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ +UpdateTarget.prototype['name'] = undefined; +/** + * Deprecated - use description + * @member {String} new-comment + * @default 'default_comment' + */ -var replace = String.prototype.replace; -var percentTwenties = /%20/g; +UpdateTarget.prototype['new-comment'] = 'default_comment'; +/** + * New Target name + * @member {String} new-name + */ -var Format = { - RFC1738: 'RFC1738', - RFC3986: 'RFC3986' -}; +UpdateTarget.prototype['new-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -module.exports = { - 'default': Format.RFC3986, - formatters: { - RFC1738: function (value) { - return replace.call(value, percentTwenties, '+'); - }, - RFC3986: function (value) { - return String(value); - } - }, - RFC1738: Format.RFC1738, - RFC3986: Format.RFC3986 -}; +UpdateTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ +UpdateTarget.prototype['uid-token'] = undefined; +var _default = UpdateTarget; +exports["default"] = _default; /***/ }), -/***/ 40240: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 90476: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var stringify = __nccwpck_require__(71293); -var parse = __nccwpck_require__(79091); -var formats = __nccwpck_require__(86032); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -module.exports = { - formats: formats, - parse: parse, - stringify: stringify -}; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -/***/ }), +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/***/ 79091: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -"use strict"; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } +/** + * The UpdateTargetDetails model module. + * @module model/UpdateTargetDetails + * @version 3.6.3 + */ +var UpdateTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new UpdateTargetDetails. + * @alias module:model/UpdateTargetDetails + */ + function UpdateTargetDetails() { + _classCallCheck(this, UpdateTargetDetails); -var utils = __nccwpck_require__(25225); + UpdateTargetDetails.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -var has = Object.prototype.hasOwnProperty; -var isArray = Array.isArray; -var defaults = { - allowDots: false, - allowPrototypes: false, - allowSparse: false, - arrayLimit: 20, - charset: 'utf-8', - charsetSentinel: false, - comma: false, - decoder: utils.decode, - delimiter: '&', - depth: 5, - ignoreQueryPrefix: false, - interpretNumericEntities: false, - parameterLimit: 1000, - parseArrays: true, - plainObjects: false, - strictNullHandling: false -}; + _createClass(UpdateTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateTargetDetails} obj Optional instance to populate. + * @return {module:model/UpdateTargetDetails} The populated UpdateTargetDetails instance. + */ -var interpretNumericEntities = function (str) { - return str.replace(/&#(\d+);/g, function ($0, numberStr) { - return String.fromCharCode(parseInt(numberStr, 10)); - }); -}; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateTargetDetails(); -var parseArrayValue = function (val, options) { - if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { - return val.split(','); - } + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } + } - return val; -}; + return obj; + } + }]); -// This is what browsers will submit when the ✓ character occurs in an -// application/x-www-form-urlencoded body and the encoding of the page containing -// the form is iso-8859-1, or when the submitted form has an accept-charset -// attribute of iso-8859-1. Presumably also with other charsets that do not contain -// the ✓ character, such as us-ascii. -var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓') + return UpdateTargetDetails; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded. -var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓') -var parseValues = function parseQueryStringValues(str, options) { - var obj = { __proto__: null }; +UpdateTargetDetails.prototype['json'] = false; +var _default = UpdateTargetDetails; +exports["default"] = _default; - var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str; - var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit; - var parts = cleanStr.split(options.delimiter, limit); - var skipIndex = -1; // Keep track of where the utf8 sentinel was found - var i; +/***/ }), - var charset = options.charset; - if (options.charsetSentinel) { - for (i = 0; i < parts.length; ++i) { - if (parts[i].indexOf('utf8=') === 0) { - if (parts[i] === charsetSentinel) { - charset = 'utf-8'; - } else if (parts[i] === isoSentinel) { - charset = 'iso-8859-1'; - } - skipIndex = i; - i = parts.length; // The eslint settings do not allow break; - } - } - } +/***/ 78669: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - for (i = 0; i < parts.length; ++i) { - if (i === skipIndex) { - continue; - } - var part = parts[i]; +"use strict"; - var bracketEqualsPos = part.indexOf(']='); - var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1; - var key, val; - if (pos === -1) { - key = options.decoder(part, defaults.decoder, charset, 'key'); - val = options.strictNullHandling ? null : ''; - } else { - key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key'); - val = utils.maybeMap( - parseArrayValue(part.slice(pos + 1), options), - function (encodedVal) { - return options.decoder(encodedVal, defaults.decoder, charset, 'value'); - } - ); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { - val = interpretNumericEntities(val); - } +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (part.indexOf('[]=') > -1) { - val = isArray(val) ? [val] : val; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - if (has.call(obj, key)) { - obj[key] = utils.combine(obj[key], val); - } else { - obj[key] = val; - } - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - return obj; -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var parseObject = function (chain, val, options, valuesParsed) { - var leaf = valuesParsed ? val : parseArrayValue(val, options); +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - for (var i = chain.length - 1; i >= 0; --i) { - var obj; - var root = chain[i]; +/** + * The UpdateTargetDetailsOutput model module. + * @module model/UpdateTargetDetailsOutput + * @version 3.6.3 + */ +var UpdateTargetDetailsOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateTargetDetailsOutput. + * @alias module:model/UpdateTargetDetailsOutput + */ + function UpdateTargetDetailsOutput() { + _classCallCheck(this, UpdateTargetDetailsOutput); - if (root === '[]' && options.parseArrays) { - obj = [].concat(leaf); - } else { - obj = options.plainObjects ? Object.create(null) : {}; - var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root; - var index = parseInt(cleanRoot, 10); - if (!options.parseArrays && cleanRoot === '') { - obj = { 0: leaf }; - } else if ( - !isNaN(index) - && root !== cleanRoot - && String(index) === cleanRoot - && index >= 0 - && (options.parseArrays && index <= options.arrayLimit) - ) { - obj = []; - obj[index] = leaf; - } else if (cleanRoot !== '__proto__') { - obj[cleanRoot] = leaf; - } - } + UpdateTargetDetailsOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - leaf = obj; - } - return leaf; -}; + _createClass(UpdateTargetDetailsOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateTargetDetailsOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateTargetDetailsOutput} obj Optional instance to populate. + * @return {module:model/UpdateTargetDetailsOutput} The populated UpdateTargetDetailsOutput instance. + */ -var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { - if (!givenKey) { - return; - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateTargetDetailsOutput(); - // Transform dot notation to bracket notation - var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey; + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); + } + } - // The regex chunks + return obj; + } + }]); - var brackets = /(\[[^[\]]*])/; - var child = /(\[[^[\]]*])/g; + return UpdateTargetDetailsOutput; +}(); +/** + * @member {Boolean} updated + */ - // Get the parent - var segment = options.depth > 0 && brackets.exec(key); - var parent = segment ? key.slice(0, segment.index) : key; +UpdateTargetDetailsOutput.prototype['updated'] = undefined; +var _default = UpdateTargetDetailsOutput; +exports["default"] = _default; - // Stash the parent if it exists +/***/ }), - var keys = []; - if (parent) { - // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties - if (!options.plainObjects && has.call(Object.prototype, parent)) { - if (!options.allowPrototypes) { - return; - } - } +/***/ 29293: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - keys.push(parent); - } +"use strict"; - // Loop through children appending to the array until we hit depth - var i = 0; - while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) { - i += 1; - if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) { - if (!options.allowPrototypes) { - return; - } - } - keys.push(segment[1]); - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - // If there's a remainder, just add whatever is left +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (segment) { - keys.push('[' + key.slice(segment.index) + ']'); - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - return parseObject(keys, val, options, valuesParsed); -}; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var normalizeParseOptions = function normalizeParseOptions(opts) { - if (!opts) { - return defaults; - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') { - throw new TypeError('Decoder has to be a function.'); - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { - throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); - } - var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; +/** + * The UpdateTargetOutput model module. + * @module model/UpdateTargetOutput + * @version 3.6.3 + */ +var UpdateTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateTargetOutput. + * @alias module:model/UpdateTargetOutput + */ + function UpdateTargetOutput() { + _classCallCheck(this, UpdateTargetOutput); - return { - allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, - allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, - allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse, - arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit, - charset: charset, - charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, - comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma, - decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder, - delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, - // eslint-disable-next-line no-implicit-coercion, no-extra-parens - depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth, - ignoreQueryPrefix: opts.ignoreQueryPrefix === true, - interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities, - parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit, - parseArrays: opts.parseArrays !== false, - plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects, - strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling - }; -}; + UpdateTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ -module.exports = function (str, opts) { - var options = normalizeParseOptions(opts); - if (str === '' || str === null || typeof str === 'undefined') { - return options.plainObjects ? Object.create(null) : {}; - } + _createClass(UpdateTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateTargetOutput} The populated UpdateTargetOutput instance. + */ - var tempObj = typeof str === 'string' ? parseValues(str, options) : str; - var obj = options.plainObjects ? Object.create(null) : {}; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateTargetOutput(); - // Iterate over the keys and setup the new object + if (data.hasOwnProperty('updated')) { + obj['updated'] = _ApiClient["default"].convertToType(data['updated'], 'Boolean'); + } + } - var keys = Object.keys(tempObj); - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string'); - obj = utils.merge(obj, newObj, options); + return obj; } + }]); - if (options.allowSparse === true) { - return obj; - } + return UpdateTargetOutput; +}(); +/** + * @member {Boolean} updated + */ - return utils.compact(obj); -}; +UpdateTargetOutput.prototype['updated'] = undefined; +var _default = UpdateTargetOutput; +exports["default"] = _default; /***/ }), -/***/ 71293: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 54946: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var getSideChannel = __nccwpck_require__(94753); -var utils = __nccwpck_require__(25225); -var formats = __nccwpck_require__(86032); -var has = Object.prototype.hasOwnProperty; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -var arrayPrefixGenerators = { - brackets: function brackets(prefix) { - return prefix + '[]'; - }, - comma: 'comma', - indices: function indices(prefix, key) { - return prefix + '[' + key + ']'; - }, - repeat: function repeat(prefix) { - return prefix; - } -}; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -var isArray = Array.isArray; -var push = Array.prototype.push; -var pushToArray = function (arr, valueOrArray) { - push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); -}; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -var toISO = Date.prototype.toISOString; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var defaultFormat = formats['default']; -var defaults = { - addQueryPrefix: false, - allowDots: false, - charset: 'utf-8', - charsetSentinel: false, - delimiter: '&', - encode: true, - encoder: utils.encode, - encodeValuesOnly: false, - format: defaultFormat, - formatter: formats.formatters[defaultFormat], - // deprecated - indices: false, - serializeDate: function serializeDate(date) { - return toISO.call(date); - }, - skipNulls: false, - strictNullHandling: false -}; +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -var isNonNullishPrimitive = function isNonNullishPrimitive(v) { - return typeof v === 'string' - || typeof v === 'number' - || typeof v === 'boolean' - || typeof v === 'symbol' - || typeof v === 'bigint'; -}; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -var sentinel = {}; +/** + * The UpdateWebTarget model module. + * @module model/UpdateWebTarget + * @version 3.6.3 + */ +var UpdateWebTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateWebTarget. + * @alias module:model/UpdateWebTarget + * @param name {String} Target name + */ + function UpdateWebTarget(name) { + _classCallCheck(this, UpdateWebTarget); -var stringify = function stringify( - object, - prefix, - generateArrayPrefix, - commaRoundTrip, - strictNullHandling, - skipNulls, - encoder, - filter, - sort, - allowDots, - serializeDate, - format, - formatter, - encodeValuesOnly, - charset, - sideChannel -) { - var obj = object; + UpdateWebTarget.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - var tmpSc = sideChannel; - var step = 0; - var findFlag = false; - while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) { - // Where object last appeared in the ref tree - var pos = tmpSc.get(object); - step += 1; - if (typeof pos !== 'undefined') { - if (pos === step) { - throw new RangeError('Cyclic object value'); - } else { - findFlag = true; // Break while - } - } - if (typeof tmpSc.get(sentinel) === 'undefined') { - step = 0; - } - } - if (typeof filter === 'function') { - obj = filter(prefix, obj); - } else if (obj instanceof Date) { - obj = serializeDate(obj); - } else if (generateArrayPrefix === 'comma' && isArray(obj)) { - obj = utils.maybeMap(obj, function (value) { - if (value instanceof Date) { - return serializeDate(value); - } - return value; - }); + _createClass(UpdateWebTarget, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } + /** + * Constructs a UpdateWebTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateWebTarget} obj Optional instance to populate. + * @return {module:model/UpdateWebTarget} The populated UpdateWebTarget instance. + */ - if (obj === null) { - if (strictNullHandling) { - return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix; - } - - obj = ''; - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateWebTarget(); - if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) { - if (encoder) { - var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format); - return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))]; + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); } - return [formatter(prefix) + '=' + formatter(String(obj))]; - } - - var values = []; - if (typeof obj === 'undefined') { - return values; - } - - var objKeys; - if (generateArrayPrefix === 'comma' && isArray(obj)) { - // we need to join elements in - if (encodeValuesOnly && encoder) { - obj = utils.maybeMap(obj, encoder); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } - objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }]; - } else if (isArray(filter)) { - objKeys = filter; - } else { - var keys = Object.keys(obj); - objKeys = sort ? keys.sort(sort) : keys; - } - var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - for (var j = 0; j < objKeys.length; ++j) { - var key = objKeys[j]; - var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key]; + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - if (skipNulls && value === null) { - continue; + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); } - var keyPrefix = isArray(obj) - ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix - : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']'); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - sideChannel.set(object, step); - var valueSideChannel = getSideChannel(); - valueSideChannel.set(sentinel, sideChannel); - pushToArray(values, stringify( - value, - keyPrefix, - generateArrayPrefix, - commaRoundTrip, - strictNullHandling, - skipNulls, - generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder, - filter, - sort, - allowDots, - serializeDate, - format, - formatter, - encodeValuesOnly, - charset, - valueSideChannel - )); - } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - return values; -}; + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } -var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { - if (!opts) { - return defaults; - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') { - throw new TypeError('Encoder has to be a function.'); - } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } - var charset = opts.charset || defaults.charset; - if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { - throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); - } + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } - var format = formats['default']; - if (typeof opts.format !== 'undefined') { - if (!has.call(formats.formatters, opts.format)) { - throw new TypeError('Unknown format option provided.'); + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); } - format = opts.format; - } - var formatter = formats.formatters[format]; + } - var filter = defaults.filter; - if (typeof opts.filter === 'function' || isArray(opts.filter)) { - filter = opts.filter; + return obj; } + }]); - return { - addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, - allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, - charset: charset, - charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, - delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, - encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, - encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, - encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, - filter: filter, - format: format, - formatter: formatter, - serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, - skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, - sort: typeof opts.sort === 'function' ? opts.sort : null, - strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling - }; -}; - -module.exports = function (object, opts) { - var obj = object; - var options = normalizeStringifyOptions(opts); - - var objKeys; - var filter; + return UpdateWebTarget; +}(); +/** + * Deprecated - use description + * @member {String} comment + */ - if (typeof options.filter === 'function') { - filter = options.filter; - obj = filter('', obj); - } else if (isArray(options.filter)) { - filter = options.filter; - objKeys = filter; - } - var keys = []; +UpdateWebTarget.prototype['comment'] = undefined; +/** + * Description of the object + * @member {String} description + */ - if (typeof obj !== 'object' || obj === null) { - return ''; - } +UpdateWebTarget.prototype['description'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - var arrayFormat; - if (opts && opts.arrayFormat in arrayPrefixGenerators) { - arrayFormat = opts.arrayFormat; - } else if (opts && 'indices' in opts) { - arrayFormat = opts.indices ? 'indices' : 'repeat'; - } else { - arrayFormat = 'indices'; - } +UpdateWebTarget.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ - var generateArrayPrefix = arrayPrefixGenerators[arrayFormat]; - if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') { - throw new TypeError('`commaRoundTrip` must be a boolean, or absent'); - } - var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip; +UpdateWebTarget.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ - if (!objKeys) { - objKeys = Object.keys(obj); - } +UpdateWebTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ - if (options.sort) { - objKeys.sort(options.sort); - } +UpdateWebTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ - var sideChannel = getSideChannel(); - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; +UpdateWebTarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ - if (options.skipNulls && obj[key] === null) { - continue; - } - pushToArray(keys, stringify( - obj[key], - key, - generateArrayPrefix, - commaRoundTrip, - options.strictNullHandling, - options.skipNulls, - options.encode ? options.encoder : null, - options.filter, - options.sort, - options.allowDots, - options.serializeDate, - options.format, - options.formatter, - options.encodeValuesOnly, - options.charset, - sideChannel - )); - } +UpdateWebTarget.prototype['new-name'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ - var joined = keys.join(options.delimiter); - var prefix = options.addQueryPrefix === true ? '?' : ''; +UpdateWebTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ - if (options.charsetSentinel) { - if (options.charset === 'iso-8859-1') { - // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark - prefix += 'utf8=%26%2310003%3B&'; - } else { - // encodeURIComponent('✓') - prefix += 'utf8=%E2%9C%93&'; - } - } +UpdateWebTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ - return joined.length > 0 ? prefix + joined : ''; -}; +UpdateWebTarget.prototype['update-version'] = undefined; +/** + * The url + * @member {String} url + */ +UpdateWebTarget.prototype['url'] = undefined; +var _default = UpdateWebTarget; +exports["default"] = _default; /***/ }), -/***/ 25225: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 24642: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var formats = __nccwpck_require__(86032); - -var has = Object.prototype.hasOwnProperty; -var isArray = Array.isArray; - -var hexTable = (function () { - var array = []; - for (var i = 0; i < 256; ++i) { - array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); - } - - return array; -}()); - -var compactQueue = function compactQueue(queue) { - while (queue.length > 1) { - var item = queue.pop(); - var obj = item.obj[item.prop]; - - if (isArray(obj)) { - var compacted = []; - - for (var j = 0; j < obj.length; ++j) { - if (typeof obj[j] !== 'undefined') { - compacted.push(obj[j]); - } - } +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - item.obj[item.prop] = compacted; - } - } -}; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -var arrayToObject = function arrayToObject(source, options) { - var obj = options && options.plainObjects ? Object.create(null) : {}; - for (var i = 0; i < source.length; ++i) { - if (typeof source[i] !== 'undefined') { - obj[i] = source[i]; - } - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - return obj; -}; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var merge = function merge(target, source, options) { - /* eslint no-param-reassign: 0 */ - if (!source) { - return target; - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - if (typeof source !== 'object') { - if (isArray(target)) { - target.push(source); - } else if (target && typeof target === 'object') { - if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) { - target[source] = true; - } - } else { - return [target, source]; - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - return target; - } +/** + * The UpdateWebTargetDetails model module. + * @module model/UpdateWebTargetDetails + * @version 3.6.3 + */ +var UpdateWebTargetDetails = /*#__PURE__*/function () { + /** + * Constructs a new UpdateWebTargetDetails. + * @alias module:model/UpdateWebTargetDetails + * @param name {String} Target name + */ + function UpdateWebTargetDetails(name) { + _classCallCheck(this, UpdateWebTargetDetails); - if (!target || typeof target !== 'object') { - return [target].concat(source); - } + UpdateWebTargetDetails.initialize(this, name); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - var mergeTarget = target; - if (isArray(target) && !isArray(source)) { - mergeTarget = arrayToObject(target, options); - } - if (isArray(target) && isArray(source)) { - source.forEach(function (item, i) { - if (has.call(target, i)) { - var targetItem = target[i]; - if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { - target[i] = merge(targetItem, item, options); - } else { - target.push(item); - } - } else { - target[i] = item; - } - }); - return target; + _createClass(UpdateWebTargetDetails, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; } + /** + * Constructs a UpdateWebTargetDetails from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateWebTargetDetails} obj Optional instance to populate. + * @return {module:model/UpdateWebTargetDetails} The populated UpdateWebTargetDetails instance. + */ - return Object.keys(source).reduce(function (acc, key) { - var value = source[key]; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateWebTargetDetails(); - if (has.call(acc, key)) { - acc[key] = merge(acc[key], value, options); - } else { - acc[key] = value; + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); } - return acc; - }, mergeTarget); -}; - -var assign = function assignSingleSource(target, source) { - return Object.keys(source).reduce(function (acc, key) { - acc[key] = source[key]; - return acc; - }, target); -}; - -var decode = function (str, decoder, charset) { - var strWithoutPlus = str.replace(/\+/g, ' '); - if (charset === 'iso-8859-1') { - // unescape never throws, no try...catch needed: - return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); - } - // utf-8 - try { - return decodeURIComponent(strWithoutPlus); - } catch (e) { - return strWithoutPlus; - } -}; - -var encode = function encode(str, defaultEncoder, charset, kind, format) { - // This code was originally written by Brian White (mscdex) for the io.js core querystring library. - // It has been adapted here for stricter adherence to RFC 3986 - if (str.length === 0) { - return str; - } - var string = str; - if (typeof str === 'symbol') { - string = Symbol.prototype.toString.call(str); - } else if (typeof str !== 'string') { - string = String(str); - } + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - if (charset === 'iso-8859-1') { - return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { - return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; - }); - } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - var out = ''; - for (var i = 0; i < string.length; ++i) { - var c = string.charCodeAt(i); + if (data.hasOwnProperty('new-version')) { + obj['new-version'] = _ApiClient["default"].convertToType(data['new-version'], 'Boolean'); + } - if ( - c === 0x2D // - - || c === 0x2E // . - || c === 0x5F // _ - || c === 0x7E // ~ - || (c >= 0x30 && c <= 0x39) // 0-9 - || (c >= 0x41 && c <= 0x5A) // a-z - || (c >= 0x61 && c <= 0x7A) // A-Z - || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( ) - ) { - out += string.charAt(i); - continue; + if (data.hasOwnProperty('protection_key')) { + obj['protection_key'] = _ApiClient["default"].convertToType(data['protection_key'], 'String'); } - if (c < 0x80) { - out = out + hexTable[c]; - continue; + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); } - if (c < 0x800) { - out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]); - continue; + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); } - if (c < 0xD800 || c >= 0xE000) { - out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]); - continue; + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); } + } - i += 1; - c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF)); - /* eslint operator-linebreak: [2, "before"] */ - out += hexTable[0xF0 | (c >> 18)] - + hexTable[0x80 | ((c >> 12) & 0x3F)] - + hexTable[0x80 | ((c >> 6) & 0x3F)] - + hexTable[0x80 | (c & 0x3F)]; + return obj; } + }]); - return out; -}; - -var compact = function compact(value) { - var queue = [{ obj: { o: value }, prop: 'o' }]; - var refs = []; - - for (var i = 0; i < queue.length; ++i) { - var item = queue[i]; - var obj = item.obj[item.prop]; - - var keys = Object.keys(obj); - for (var j = 0; j < keys.length; ++j) { - var key = keys[j]; - var val = obj[key]; - if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) { - queue.push({ obj: obj, prop: key }); - refs.push(val); - } - } - } + return UpdateWebTargetDetails; +}(); +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ - compactQueue(queue); - return value; -}; +UpdateWebTargetDetails.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ -var isRegExp = function isRegExp(obj) { - return Object.prototype.toString.call(obj) === '[object RegExp]'; -}; +UpdateWebTargetDetails.prototype['keep-prev-version'] = undefined; +/** + * Target name + * @member {String} name + */ -var isBuffer = function isBuffer(obj) { - if (!obj || typeof obj !== 'object') { - return false; - } +UpdateWebTargetDetails.prototype['name'] = undefined; +/** + * Deprecated + * @member {Boolean} new-version + */ - return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); -}; +UpdateWebTargetDetails.prototype['new-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} protection_key + */ -var combine = function combine(a, b) { - return [].concat(a, b); -}; +UpdateWebTargetDetails.prototype['protection_key'] = undefined; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -var maybeMap = function maybeMap(val, fn) { - if (isArray(val)) { - var mapped = []; - for (var i = 0; i < val.length; i += 1) { - mapped.push(fn(val[i])); - } - return mapped; - } - return fn(val); -}; +UpdateWebTargetDetails.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -module.exports = { - arrayToObject: arrayToObject, - assign: assign, - combine: combine, - compact: compact, - decode: decode, - encode: encode, - isBuffer: isBuffer, - isRegExp: isRegExp, - maybeMap: maybeMap, - merge: merge -}; +UpdateWebTargetDetails.prototype['uid-token'] = undefined; +/** + * @member {String} url + */ +UpdateWebTargetDetails.prototype['url'] = undefined; +var _default = UpdateWebTargetDetails; +exports["default"] = _default; /***/ }), -/***/ 67842: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +/***/ 43751: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -const {PassThrough} = __nccwpck_require__(2203); -const extend = __nccwpck_require__(23860); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; -let debug = () => {}; -if ( - typeof process !== 'undefined' && - 'env' in process && - typeof process.env === 'object' && - process.env.DEBUG === 'retry-request' -) { - debug = message => { - console.log('retry-request:', message); - }; -} +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); -const DEFAULTS = { - objectMode: false, - retries: 2, +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - /* - The maximum time to delay in seconds. If retryDelayMultiplier results in a - delay greater than maxRetryDelay, retries should delay by maxRetryDelay - seconds instead. - */ - maxRetryDelay: 64, +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - /* - The multiplier by which to increase the delay time between the completion of - failed requests, and the initiation of the subsequent retrying request. - */ - retryDelayMultiplier: 2, +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - /* - The length of time to keep retrying in seconds. The last sleep period will - be shortened as necessary, so that the last retry runs at deadline (and not - considerably beyond it). The total time starting from when the initial - request is sent, after which an error will be returned, regardless of the - retrying attempts made meanwhile. +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +/** + * The UpdateWebTargetOutput model module. + * @module model/UpdateWebTargetOutput + * @version 3.6.3 + */ +var UpdateWebTargetOutput = /*#__PURE__*/function () { + /** + * Constructs a new UpdateWebTargetOutput. + * @alias module:model/UpdateWebTargetOutput */ - totalTimeout: 600, + function UpdateWebTargetOutput() { + _classCallCheck(this, UpdateWebTargetOutput); - noResponseRetries: 2, - currentRetryAttempt: 0, - shouldRetryFn: function (response) { - const retryRanges = [ - // https://en.wikipedia.org/wiki/List_of_HTTP_status_codes - // 1xx - Retry (Informational, request still processing) - // 2xx - Do not retry (Success) - // 3xx - Do not retry (Redirect) - // 4xx - Do not retry (Client errors) - // 429 - Retry ("Too Many Requests") - // 5xx - Retry (Server errors) - [100, 199], - [429, 429], - [500, 599], - ]; + UpdateWebTargetOutput.initialize(this); + } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - const statusCode = response.statusCode; - debug(`Response status: ${statusCode}`); - let range; - while ((range = retryRanges.shift())) { - if (statusCode >= range[0] && statusCode <= range[1]) { - // Not a successful status or redirect. - return true; + _createClass(UpdateWebTargetOutput, null, [{ + key: "initialize", + value: function initialize(obj) {} + /** + * Constructs a UpdateWebTargetOutput from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateWebTargetOutput} obj Optional instance to populate. + * @return {module:model/UpdateWebTargetOutput} The populated UpdateWebTargetOutput instance. + */ + + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateWebTargetOutput(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'Number'); + } } + + return obj; } - }, -}; + }]); -function retryRequest(requestOpts, opts, callback) { - if (typeof requestOpts === 'string') { - requestOpts = {url: requestOpts}; - } + return UpdateWebTargetOutput; +}(); +/** + * @member {Number} target_id + */ - const streamMode = typeof arguments[arguments.length - 1] !== 'function'; - if (typeof opts === 'function') { - callback = opts; - } +UpdateWebTargetOutput.prototype['target_id'] = undefined; +var _default = UpdateWebTargetOutput; +exports["default"] = _default; - const manualCurrentRetryAttemptWasSet = - opts && typeof opts.currentRetryAttempt === 'number'; - opts = extend({}, DEFAULTS, opts); +/***/ }), - if (typeof opts.request === 'undefined') { - throw new Error('A request library must be provided to retry-request.'); - } +/***/ 39713: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - let currentRetryAttempt = opts.currentRetryAttempt; +"use strict"; - let numNoResponseAttempts = 0; - let streamResponseHandled = false; - let retryStream; - let requestStream; - let delayStream; +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - let activeRequest; - const retryRequest = { - abort: function () { - if (activeRequest && activeRequest.abort) { - activeRequest.abort(); - } - }, - }; +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - if (streamMode) { - retryStream = new PassThrough({objectMode: opts.objectMode}); - retryStream.abort = resetStreams; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - const timeOfFirstRequest = Date.now(); - if (currentRetryAttempt > 0) { - retryAfterDelay(currentRetryAttempt); - } else { - makeRequest(); - } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (streamMode) { - return retryStream; - } else { - return retryRequest; - } +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - function resetStreams() { - delayStream = null; +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - if (requestStream) { - requestStream.abort && requestStream.abort(); - requestStream.cancel && requestStream.cancel(); +/** + * The UpdateWindowsTarget model module. + * @module model/UpdateWindowsTarget + * @version 3.6.3 + */ +var UpdateWindowsTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateWindowsTarget. + * @alias module:model/UpdateWindowsTarget + * @param hostname {String} Server hostname + * @param name {String} Target name + * @param password {String} Privileged user password + * @param username {String} Privileged username + */ + function UpdateWindowsTarget(hostname, name, password, username) { + _classCallCheck(this, UpdateWindowsTarget); - if (requestStream.destroy) { - requestStream.destroy(); - } else if (requestStream.end) { - requestStream.end(); - } - } + UpdateWindowsTarget.initialize(this, hostname, name, password, username); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - function makeRequest() { - let finishHandled = false; - currentRetryAttempt++; - debug(`Current retry attempt: ${currentRetryAttempt}`); - function handleFinish(args = []) { - if (!finishHandled) { - finishHandled = true; - retryStream.emit('complete', ...args); - } + _createClass(UpdateWindowsTarget, null, [{ + key: "initialize", + value: function initialize(obj, hostname, name, password, username) { + obj['hostname'] = hostname; + obj['name'] = name; + obj['password'] = password; + obj['username'] = username; } + /** + * Constructs a UpdateWindowsTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateWindowsTarget} obj Optional instance to populate. + * @return {module:model/UpdateWindowsTarget} The populated UpdateWindowsTarget instance. + */ - if (streamMode) { - streamResponseHandled = false; + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateWindowsTarget(); - delayStream = new PassThrough({objectMode: opts.objectMode}); - requestStream = opts.request(requestOpts); + if (data.hasOwnProperty('certificate')) { + obj['certificate'] = _ApiClient["default"].convertToType(data['certificate'], 'String'); + } - setImmediate(() => { - retryStream.emit('request'); - }); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - requestStream - // gRPC via google-cloud-node can emit an `error` as well as a `response` - // Whichever it emits, we run with-- we can't run with both. That's what - // is up with the `streamResponseHandled` tracking. - .on('error', err => { - if (streamResponseHandled) { - return; - } + if (data.hasOwnProperty('domain')) { + obj['domain'] = _ApiClient["default"].convertToType(data['domain'], 'String'); + } - streamResponseHandled = true; - onResponse(err); - }) - .on('response', (resp, body) => { - if (streamResponseHandled) { - return; - } + if (data.hasOwnProperty('hostname')) { + obj['hostname'] = _ApiClient["default"].convertToType(data['hostname'], 'String'); + } - streamResponseHandled = true; - onResponse(null, resp, body); - }) - .on('complete', (...params) => handleFinish(params)) - .on('finish', (...params) => handleFinish(params)); + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - requestStream.pipe(delayStream); - } else { - activeRequest = opts.request(requestOpts, onResponse); - } - } + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - function retryAfterDelay(currentRetryAttempt) { - if (streamMode) { - resetStreams(); - } + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - const nextRetryDelay = getNextRetryDelay({ - maxRetryDelay: opts.maxRetryDelay, - retryDelayMultiplier: opts.retryDelayMultiplier, - retryNumber: currentRetryAttempt, - timeOfFirstRequest, - totalTimeout: opts.totalTimeout, - }); - debug(`Next retry delay: ${nextRetryDelay}`); + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - if (nextRetryDelay <= 0) { - numNoResponseAttempts = opts.noResponseRetries + 1; - return; - } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - setTimeout(makeRequest, nextRetryDelay); - } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - function onResponse(err, response, body) { - // An error such as DNS resolution. - if (err) { - numNoResponseAttempts++; + if (data.hasOwnProperty('password')) { + obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String'); + } - if (numNoResponseAttempts <= opts.noResponseRetries) { - retryAfterDelay(numNoResponseAttempts); - } else { - if (streamMode) { - retryStream.emit('error', err); - retryStream.end(); - } else { - callback(err, response, body); + if (data.hasOwnProperty('port')) { + obj['port'] = _ApiClient["default"].convertToType(data['port'], 'String'); } - } - return; - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - // Send the response to see if we should try again. - // NOTE: "currentRetryAttempt" isn't accurate by default, as it counts - // the very first request sent as the first "retry". It is only accurate - // when a user provides their own "currentRetryAttempt" option at - // instantiation. - const adjustedCurrentRetryAttempt = manualCurrentRetryAttemptWasSet - ? currentRetryAttempt - : currentRetryAttempt - 1; - if ( - adjustedCurrentRetryAttempt < opts.retries && - opts.shouldRetryFn(response) - ) { - retryAfterDelay(currentRetryAttempt); - return; - } + if (data.hasOwnProperty('uid-token')) { + obj['uid-token'] = _ApiClient["default"].convertToType(data['uid-token'], 'String'); + } - // No more attempts need to be made, just continue on. - if (streamMode) { - retryStream.emit('response', response); - delayStream.pipe(retryStream); - requestStream.on('error', err => { - retryStream.destroy(err); - }); - } else { - callback(err, response, body); + if (data.hasOwnProperty('update-version')) { + obj['update-version'] = _ApiClient["default"].convertToType(data['update-version'], 'Boolean'); + } + + if (data.hasOwnProperty('use-tls')) { + obj['use-tls'] = _ApiClient["default"].convertToType(data['use-tls'], 'String'); + } + + if (data.hasOwnProperty('username')) { + obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String'); + } + } + + return obj; } - } -} + }]); -module.exports = retryRequest; + return UpdateWindowsTarget; +}(); +/** + * SSL CA certificate in base64 encoding generated from a trusted Certificate Authority (CA) + * @member {String} certificate + */ -function getNextRetryDelay(config) { - const { - maxRetryDelay, - retryDelayMultiplier, - retryNumber, - timeOfFirstRequest, - totalTimeout, - } = config; - const maxRetryDelayMs = maxRetryDelay * 1000; - const totalTimeoutMs = totalTimeout * 1000; +UpdateWindowsTarget.prototype['certificate'] = undefined; +/** + * Description of the object + * @member {String} description + */ - const jitter = Math.floor(Math.random() * 1000); - const calculatedNextRetryDelay = - Math.pow(retryDelayMultiplier, retryNumber) * 1000 + jitter; +UpdateWindowsTarget.prototype['description'] = undefined; +/** + * User domain name + * @member {String} domain + */ - const maxAllowableDelayMs = - totalTimeoutMs - (Date.now() - timeOfFirstRequest); +UpdateWindowsTarget.prototype['domain'] = undefined; +/** + * Server hostname + * @member {String} hostname + */ - return Math.min( - calculatedNextRetryDelay, - maxAllowableDelayMs, - maxRetryDelayMs - ); -} +UpdateWindowsTarget.prototype['hostname'] = undefined; +/** + * Set output format to JSON + * @member {Boolean} json + * @default false + */ -module.exports.defaults = DEFAULTS; -module.exports.getNextRetryDelay = getNextRetryDelay; +UpdateWindowsTarget.prototype['json'] = false; +/** + * Whether to keep previous version [true/false]. If not set, use default according to account settings + * @member {String} keep-prev-version + */ +UpdateWindowsTarget.prototype['keep-prev-version'] = undefined; +/** + * The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used) + * @member {String} key + */ -/***/ }), +UpdateWindowsTarget.prototype['key'] = undefined; +/** + * Set the maximum number of versions, limited by the account settings defaults. + * @member {String} max-versions + */ -/***/ 93058: -/***/ ((module, exports, __nccwpck_require__) => { +UpdateWindowsTarget.prototype['max-versions'] = undefined; +/** + * Target name + * @member {String} name + */ -/* eslint-disable node/no-deprecated-api */ -var buffer = __nccwpck_require__(20181) -var Buffer = buffer.Buffer +UpdateWindowsTarget.prototype['name'] = undefined; +/** + * New target name + * @member {String} new-name + */ -// alternative to using Object.keys for old browsers -function copyProps (src, dst) { - for (var key in src) { - dst[key] = src[key] - } -} -if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { - module.exports = buffer -} else { - // Copy properties from require('buffer') - copyProps(buffer, exports) - exports.Buffer = SafeBuffer -} +UpdateWindowsTarget.prototype['new-name'] = undefined; +/** + * Privileged user password + * @member {String} password + */ -function SafeBuffer (arg, encodingOrOffset, length) { - return Buffer(arg, encodingOrOffset, length) -} +UpdateWindowsTarget.prototype['password'] = undefined; +/** + * Server WinRM port + * @member {String} port + * @default '5986' + */ -// Copy static methods from Buffer -copyProps(Buffer, SafeBuffer) +UpdateWindowsTarget.prototype['port'] = '5986'; +/** + * Authentication token (see `/auth` and `/configure`) + * @member {String} token + */ -SafeBuffer.from = function (arg, encodingOrOffset, length) { - if (typeof arg === 'number') { - throw new TypeError('Argument must not be a number') - } - return Buffer(arg, encodingOrOffset, length) -} +UpdateWindowsTarget.prototype['token'] = undefined; +/** + * The universal identity token, Required only for universal_identity authentication + * @member {String} uid-token + */ -SafeBuffer.alloc = function (size, fill, encoding) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') - } - var buf = Buffer(size) - if (fill !== undefined) { - if (typeof encoding === 'string') { - buf.fill(fill, encoding) - } else { - buf.fill(fill) - } - } else { - buf.fill(0) - } - return buf -} +UpdateWindowsTarget.prototype['uid-token'] = undefined; +/** + * Deprecated + * @member {Boolean} update-version + */ -SafeBuffer.allocUnsafe = function (size) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') - } - return Buffer(size) -} +UpdateWindowsTarget.prototype['update-version'] = undefined; +/** + * Enable/Disable TLS for WinRM over HTTPS [true/false] + * @member {String} use-tls + * @default 'true' + */ -SafeBuffer.allocUnsafeSlow = function (size) { - if (typeof size !== 'number') { - throw new TypeError('Argument must be a number') - } - return buffer.SlowBuffer(size) -} +UpdateWindowsTarget.prototype['use-tls'] = 'true'; +/** + * Privileged username + * @member {String} username + */ +UpdateWindowsTarget.prototype['username'] = undefined; +var _default = UpdateWindowsTarget; +exports["default"] = _default; /***/ }), -/***/ 42560: +/***/ 32664: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -;(function (sax) { // wrapper for non-node envs - sax.parser = function (strict, opt) { return new SAXParser(strict, opt) } - sax.SAXParser = SAXParser - sax.SAXStream = SAXStream - sax.createStream = createStream +"use strict"; - // When we pass the MAX_BUFFER_LENGTH position, start checking for buffer overruns. - // When we check, schedule the next check for MAX_BUFFER_LENGTH - (max(buffer lengths)), - // since that's the earliest that a buffer overrun could occur. This way, checks are - // as rare as required, but as often as necessary to ensure never crossing this bound. - // Furthermore, buffers are only tested at most once per write(), so passing a very - // large string into write() might have undesirable effects, but this is manageable by - // the caller, so it is assumed to be safe. Thus, a call to write() may, in the extreme - // edge case, result in creating at most one complete copy of the string passed in. - // Set to Infinity to have unlimited buffers. - sax.MAX_BUFFER_LENGTH = 64 * 1024 - var buffers = [ - 'comment', 'sgmlDecl', 'textNode', 'tagName', 'doctype', - 'procInstName', 'procInstBody', 'entity', 'attribName', - 'attribValue', 'cdata', 'script' - ] +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; - sax.EVENTS = [ - 'text', - 'processinginstruction', - 'sgmldeclaration', - 'doctype', - 'comment', - 'opentagstart', - 'attribute', - 'opentag', - 'closetag', - 'opencdata', - 'cdata', - 'closecdata', - 'error', - 'end', - 'ready', - 'script', - 'opennamespace', - 'closenamespace' - ] +var _ApiClient = _interopRequireDefault(__nccwpck_require__(59327)); - function SAXParser (strict, opt) { - if (!(this instanceof SAXParser)) { - return new SAXParser(strict, opt) - } - - var parser = this - clearBuffers(parser) - parser.q = parser.c = '' - parser.bufferCheckPosition = sax.MAX_BUFFER_LENGTH - parser.opt = opt || {} - parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags - parser.looseCase = parser.opt.lowercase ? 'toLowerCase' : 'toUpperCase' - parser.tags = [] - parser.closed = parser.closedRoot = parser.sawRoot = false - parser.tag = parser.error = null - parser.strict = !!strict - parser.noscript = !!(strict || parser.opt.noscript) - parser.state = S.BEGIN - parser.strictEntities = parser.opt.strictEntities - parser.ENTITIES = parser.strictEntities ? Object.create(sax.XML_ENTITIES) : Object.create(sax.ENTITIES) - parser.attribList = [] - - // namespaces form a prototype chain. - // it always points at the current tag, - // which protos to its parent tag. - if (parser.opt.xmlns) { - parser.ns = Object.create(rootNS) - } - - // mostly just for error reporting - parser.trackPosition = parser.opt.position !== false - if (parser.trackPosition) { - parser.position = parser.line = parser.column = 0 - } - emit(parser, 'onready') - } - - if (!Object.create) { - Object.create = function (o) { - function F () {} - F.prototype = o - var newf = new F() - return newf - } - } - - if (!Object.keys) { - Object.keys = function (o) { - var a = [] - for (var i in o) if (o.hasOwnProperty(i)) a.push(i) - return a - } - } - - function checkBufferLength (parser) { - var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10) - var maxActual = 0 - for (var i = 0, l = buffers.length; i < l; i++) { - var len = parser[buffers[i]].length - if (len > maxAllowed) { - // Text/cdata nodes can get big, and since they're buffered, - // we can get here under normal conditions. - // Avoid issues by emitting the text node now, - // so at least it won't get any bigger. - switch (buffers[i]) { - case 'textNode': - closeText(parser) - break +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - case 'cdata': - emitNode(parser, 'oncdata', parser.cdata) - parser.cdata = '' - break +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - case 'script': - emitNode(parser, 'onscript', parser.script) - parser.script = '' - break +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - default: - error(parser, 'Max buffer length exceeded: ' + buffers[i]) - } - } - maxActual = Math.max(maxActual, len) - } - // schedule the next check for the earliest possible buffer overrun. - var m = sax.MAX_BUFFER_LENGTH - maxActual - parser.bufferCheckPosition = m + parser.position - } +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - function clearBuffers (parser) { - for (var i = 0, l = buffers.length; i < l; i++) { - parser[buffers[i]] = '' - } +/** + * The UpdateZeroSSLTarget model module. + * @module model/UpdateZeroSSLTarget + * @version 3.6.3 + */ +var UpdateZeroSSLTarget = /*#__PURE__*/function () { + /** + * Constructs a new UpdateZeroSSLTarget. + * @alias module:model/UpdateZeroSSLTarget + * @param apiKey {String} API Key of the ZeroSSLTarget account + * @param imapFqdn {String} ImapFQDN of the IMAP service, FQDN or IPv4 address. Must be FQDN if the IMAP is using TLS + * @param imapPassword {String} ImapPassword to access the IMAP service + * @param imapUsername {String} ImapUsername to access the IMAP service + * @param name {String} Target name + */ + function UpdateZeroSSLTarget(apiKey, imapFqdn, imapPassword, imapUsername, name) { + _classCallCheck(this, UpdateZeroSSLTarget); + + UpdateZeroSSLTarget.initialize(this, apiKey, imapFqdn, imapPassword, imapUsername, name); } + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ - function flushBuffers (parser) { - closeText(parser) - if (parser.cdata !== '') { - emitNode(parser, 'oncdata', parser.cdata) - parser.cdata = '' - } - if (parser.script !== '') { - emitNode(parser, 'onscript', parser.script) - parser.script = '' + + _createClass(UpdateZeroSSLTarget, null, [{ + key: "initialize", + value: function initialize(obj, apiKey, imapFqdn, imapPassword, imapUsername, name) { + obj['api-key'] = apiKey; + obj['imap-fqdn'] = imapFqdn; + obj['imap-password'] = imapPassword; + obj['imap-username'] = imapUsername; + obj['name'] = name; } - } + /** + * Constructs a UpdateZeroSSLTarget from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateZeroSSLTarget} obj Optional instance to populate. + * @return {module:model/UpdateZeroSSLTarget} The populated UpdateZeroSSLTarget instance. + */ - SAXParser.prototype = { - end: function () { end(this) }, - write: write, - resume: function () { this.error = null; return this }, - close: function () { return this.write(null) }, - flush: function () { flushBuffers(this) } - } + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateZeroSSLTarget(); - var Stream - try { - Stream = (__nccwpck_require__(2203).Stream) - } catch (ex) { - Stream = function () {} - } + if (data.hasOwnProperty('api-key')) { + obj['api-key'] = _ApiClient["default"].convertToType(data['api-key'], 'String'); + } - var streamWraps = sax.EVENTS.filter(function (ev) { - return ev !== 'error' && ev !== 'end' - }) + if (data.hasOwnProperty('comment')) { + obj['comment'] = _ApiClient["default"].convertToType(data['comment'], 'String'); + } - function createStream (strict, opt) { - return new SAXStream(strict, opt) - } + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); + } - function SAXStream (strict, opt) { - if (!(this instanceof SAXStream)) { - return new SAXStream(strict, opt) - } + if (data.hasOwnProperty('imap-fqdn')) { + obj['imap-fqdn'] = _ApiClient["default"].convertToType(data['imap-fqdn'], 'String'); + } - Stream.apply(this) + if (data.hasOwnProperty('imap-password')) { + obj['imap-password'] = _ApiClient["default"].convertToType(data['imap-password'], 'String'); + } - this._parser = new SAXParser(strict, opt) - this.writable = true - this.readable = true + if (data.hasOwnProperty('imap-port')) { + obj['imap-port'] = _ApiClient["default"].convertToType(data['imap-port'], 'String'); + } - var me = this + if (data.hasOwnProperty('imap-target-email')) { + obj['imap-target-email'] = _ApiClient["default"].convertToType(data['imap-target-email'], 'String'); + } - this._parser.onend = function () { - me.emit('end') - } + if (data.hasOwnProperty('imap-username')) { + obj['imap-username'] = _ApiClient["default"].convertToType(data['imap-username'], 'String'); + } - this._parser.onerror = function (er) { - me.emit('error', er) + if (data.hasOwnProperty('json')) { + obj['json'] = _ApiClient["default"].convertToType(data['json'], 'Boolean'); + } - // if didn't throw, then means error was handled. - // go ahead and clear error, so we can write again. - me._parser.error = null - } + if (data.hasOwnProperty('keep-prev-version')) { + obj['keep-prev-version'] = _ApiClient["default"].convertToType(data['keep-prev-version'], 'String'); + } - this._decoder = null + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } - streamWraps.forEach(function (ev) { - Object.defineProperty(me, 'on' + ev, { - get: function () { - return me._parser['on' + ev] - }, - set: function (h) { - if (!h) { - me.removeAllListeners(ev) - me._parser['on' + ev] = h - return h - } - me.on(ev, h) - }, - enumerable: true, - configurable: false - }) - }) - } + if (data.hasOwnProperty('max-versions')) { + obj['max-versions'] = _ApiClient["default"].convertToType(data['max-versions'], 'String'); + } - SAXStream.prototype = Object.create(Stream.prototype, { - constructor: { - value: SAXStream - } - }) + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } - SAXStream.prototype.write = function (data) { - if (typeof Buffer === 'function' && - typeof Buffer.isBuffer === 'function' && - Buffer.isBuffer(data)) { - if (!this._decoder) { - var SD = (__nccwpck_require__(13193).StringDecoder) - this._decoder = new SD('utf8') - } - data = this._decoder.write(data) - } + if (data.hasOwnProperty('new-name')) { + obj['new-name'] = _ApiClient["default"].convertToType(data['new-name'], 'String'); + } - this._parser.write(data.toString()) - this.emit('data', data) - return true - } + if (data.hasOwnProperty('timeout')) { + obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'String'); + } - SAXStream.prototype.end = function (chunk) { - if (chunk && chunk.length) { - this.write(chunk) - } - this._parser.end() - return true - } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } - SAXStream.prototype.on = function (ev, handler) { - var me = this - if (!me._parser['on' + ev] && streamWraps.indexOf(ev) !== -1) { - me._parser['on' + ev] = function () { - var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments) - args.splice(0, 0, ev) - me.emit.apply(me, args) - } - } - - return Stream.prototype.on.call(me, ev, handler) - } - - // character classes and tokens - var whitespace = '\r\n\t ' - - // this really needs to be replaced with character classes. - // XML allows all manner of ridiculous numbers and digits. - var number = '0124356789' - var letter = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' - - // (Letter | "_" | ":") - var quote = '\'"' - var attribEnd = whitespace + '>' - var CDATA = '[CDATA[' - var DOCTYPE = 'DOCTYPE' - var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace' - var XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/' - var rootNS = { xml: XML_NAMESPACE, xmlns: XMLNS_NAMESPACE } - - // turn all the string character sets into character class objects. - whitespace = charClass(whitespace) - number = charClass(number) - letter = charClass(letter) - - // http://www.w3.org/TR/REC-xml/#NT-NameStartChar - // This implementation works on strings, a single character at a time - // as such, it cannot ever support astral-plane characters (10000-EFFFF) - // without a significant breaking change to either this parser, or the - // JavaScript language. Implementation of an emoji-capable xml parser - // is left as an exercise for the reader. - var nameStart = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/ - - var nameBody = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/ - - var entityStart = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/ - var entityBody = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/ - - quote = charClass(quote) - attribEnd = charClass(attribEnd) - - function charClass (str) { - return str.split('').reduce(function (s, c) { - s[c] = true - return s - }, {}) - } - - function isRegExp (c) { - return Object.prototype.toString.call(c) === '[object RegExp]' - } - - function is (charclass, c) { - return isRegExp(charclass) ? !!c.match(charclass) : charclass[c] - } - - function not (charclass, c) { - return !is(charclass, c) - } - - var S = 0 - sax.STATE = { - BEGIN: S++, // leading byte order mark or whitespace - BEGIN_WHITESPACE: S++, // leading whitespace - TEXT: S++, // general stuff - TEXT_ENTITY: S++, // & and such. - OPEN_WAKA: S++, // < - SGML_DECL: S++, // - SCRIPT: S++, //